import { a as tn, b as ov, c as Qn, d as E, e as de, f as nn, g as Pf, h as Ut, } from "./chunk-JR5VT52U.mjs"; import { a as Rf, b as Re, c as F } from "./chunk-RIUMFBNJ.mjs"; var Et = {}; Rf(Et, { Children: () => bn, Component: () => Pe, Fragment: () => xn, Profiler: () => DE, PureComponent: () => zE, StrictMode: () => BE, Suspense: () => bs, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: () => $E, cloneElement: () => Sr, createContext: () => be, createElement: () => co, createFactory: () => NE, createRef: () => gv, default: () => w, forwardRef: () => De, isValidElement: () => At, lazy: () => jE, memo: () => pl, startTransition: () => rn, unstable_act: () => HE, useCallback: () => K, useContext: () => A, useDebugValue: () => WE, useDeferredValue: () => UE, useEffect: () => N, useId: () => Ti, useImperativeHandle: () => GE, useInsertionEffect: () => ft, useLayoutEffect: () => ze, useMemo: () => oe, useReducer: () => qE, useRef: () => V, useState: () => Be, useSyncExternalStore: () => vv, useTransition: () => XE, version: () => YE, }); var w = {}, ys = Symbol.for("react.element"), SE = Symbol.for("react.portal"), kE = Symbol.for("react.fragment"), CE = Symbol.for("react.strict_mode"), TE = Symbol.for("react.profiler"), EE = Symbol.for("react.provider"), RE = Symbol.for("react.context"), PE = Symbol.for("react.forward_ref"), FE = Symbol.for("react.suspense"), _E = Symbol.for("react.memo"), IE = Symbol.for("react.lazy"), sv = Symbol.iterator; function OE(e) { return e === null || typeof e != "object" ? null : ((e = (sv && e[sv]) || e["@@iterator"]), typeof e == "function" ? e : null); } var cv = { isMounted: function () { return !1; }, enqueueForceUpdate: function () {}, enqueueReplaceState: function () {}, enqueueSetState: function () {}, }, uv = Object.assign, fv = {}; function lo(e, t, n) { (this.props = e), (this.context = t), (this.refs = fv), (this.updater = n || cv); } lo.prototype.isReactComponent = {}; lo.prototype.setState = function (e, t) { if (typeof e != "object" && typeof e != "function" && e != null) throw Error( "setState(...): takes an object of state variables to update or a function which returns an object of state variables." ); this.updater.enqueueSetState(this, e, t, "setState"); }; lo.prototype.forceUpdate = function (e) { this.updater.enqueueForceUpdate(this, e, "forceUpdate"); }; function dv() {} dv.prototype = lo.prototype; function _f(e, t, n) { (this.props = e), (this.context = t), (this.refs = fv), (this.updater = n || cv); } var If = (_f.prototype = new dv()); If.constructor = _f; uv(If, lo.prototype); If.isPureReactComponent = !0; var av = Array.isArray, hv = Object.prototype.hasOwnProperty, Of = { current: null }, pv = { key: !0, ref: !0, __self: !0, __source: !0 }; function mv(e, t, n) { var r, i = {}, o = null, s = null; if (t != null) for (r in (t.ref !== void 0 && (s = t.ref), t.key !== void 0 && (o = "" + t.key), t)) hv.call(t, r) && !pv.hasOwnProperty(r) && (i[r] = t[r]); var a = arguments.length - 2; if (a === 1) i.children = n; else if (1 < a) { for (var l = Array(a), c = 0; c < a; c++) l[c] = arguments[c + 2]; i.children = l; } if (e && e.defaultProps) for (r in ((a = e.defaultProps), a)) i[r] === void 0 && (i[r] = a[r]); return { $$typeof: ys, type: e, key: o, ref: s, props: i, _owner: Of.current, }; } function ME(e, t) { return { $$typeof: ys, type: e.type, key: t, ref: e.ref, props: e.props, _owner: e._owner, }; } function Mf(e) { return typeof e == "object" && e !== null && e.$$typeof === ys; } function LE(e) { var t = { "=": "=0", ":": "=2" }; return ( "$" + e.replace(/[=:]/g, function (n) { return t[n]; }) ); } var lv = /\/+/g; function Ff(e, t) { return typeof e == "object" && e !== null && e.key != null ? LE("" + e.key) : t.toString(36); } function dl(e, t, n, r, i) { var o = typeof e; (o !== "undefined" && o !== "boolean") || (e = null); var s = !1; if (e === null) s = !0; else switch (o) { case "string": case "number": s = !0; break; case "object": switch (e.$$typeof) { case ys: case SE: s = !0; } } if (s) return ( (s = e), (i = i(s)), (e = r === "" ? "." + Ff(s, 0) : r), av(i) ? ((n = ""), e != null && (n = e.replace(lv, "$&/") + "/"), dl(i, t, n, "", function (c) { return c; })) : i != null && (Mf(i) && (i = ME( i, n + (!i.key || (s && s.key === i.key) ? "" : ("" + i.key).replace(lv, "$&/") + "/") + e )), t.push(i)), 1 ); if (((s = 0), (r = r === "" ? "." : r + ":"), av(e))) for (var a = 0; a < e.length; a++) { o = e[a]; var l = r + Ff(o, a); s += dl(o, t, n, l, i); } else if (((l = OE(e)), typeof l == "function")) for (e = l.call(e), a = 0; !(o = e.next()).done; ) (o = o.value), (l = r + Ff(o, a++)), (s += dl(o, t, n, l, i)); else if (o === "object") throw ( ((t = String(e)), Error( "Objects are not valid as a React child (found: " + (t === "[object Object]" ? "object with keys {" + Object.keys(e).join(", ") + "}" : t) + "). If you meant to render a collection of children, use an array instead." )) ); return s; } function fl(e, t, n) { if (e == null) return e; var r = [], i = 0; return ( dl(e, r, "", "", function (o) { return t.call(n, o, i++); }), r ); } function VE(e) { if (e._status === -1) { var t = e._result; (t = t()), t.then( function (n) { (e._status !== 0 && e._status !== -1) || ((e._status = 1), (e._result = n)); }, function (n) { (e._status !== 0 && e._status !== -1) || ((e._status = 2), (e._result = n)); } ), e._status === -1 && ((e._status = 0), (e._result = t)); } if (e._status === 1) return e._result.default; throw e._result; } var Vt = { current: null }, hl = { transition: null }, AE = { ReactCurrentDispatcher: Vt, ReactCurrentBatchConfig: hl, ReactCurrentOwner: Of, }; w.Children = { map: fl, forEach: function (e, t, n) { fl( e, function () { t.apply(this, arguments); }, n ); }, count: function (e) { var t = 0; return ( fl(e, function () { t++; }), t ); }, toArray: function (e) { return ( fl(e, function (t) { return t; }) || [] ); }, only: function (e) { if (!Mf(e)) throw Error( "React.Children.only expected to receive a single React element child." ); return e; }, }; w.Component = lo; w.Fragment = kE; w.Profiler = TE; w.PureComponent = _f; w.StrictMode = CE; w.Suspense = FE; w.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = AE; w.cloneElement = function (e, t, n) { if (e == null) throw Error( "React.cloneElement(...): The argument must be a React element, but you passed " + e + "." ); var r = uv({}, e.props), i = e.key, o = e.ref, s = e._owner; if (t != null) { if ( (t.ref !== void 0 && ((o = t.ref), (s = Of.current)), t.key !== void 0 && (i = "" + t.key), e.type && e.type.defaultProps) ) var a = e.type.defaultProps; for (l in t) hv.call(t, l) && !pv.hasOwnProperty(l) && (r[l] = t[l] === void 0 && a !== void 0 ? a[l] : t[l]); } var l = arguments.length - 2; if (l === 1) r.children = n; else if (1 < l) { a = Array(l); for (var c = 0; c < l; c++) a[c] = arguments[c + 2]; r.children = a; } return { $$typeof: ys, type: e.type, key: i, ref: o, props: r, _owner: s }; }; w.createContext = function (e) { return ( (e = { $$typeof: RE, _currentValue: e, _currentValue2: e, _threadCount: 0, Provider: null, Consumer: null, _defaultValue: null, _globalName: null, }), (e.Provider = { $$typeof: EE, _context: e }), (e.Consumer = e) ); }; w.createElement = mv; w.createFactory = function (e) { var t = mv.bind(null, e); return (t.type = e), t; }; w.createRef = function () { return { current: null }; }; w.forwardRef = function (e) { return { $$typeof: PE, render: e }; }; w.isValidElement = Mf; w.lazy = function (e) { return { $$typeof: IE, _payload: { _status: -1, _result: e }, _init: VE }; }; w.memo = function (e, t) { return { $$typeof: _E, type: e, compare: t === void 0 ? null : t }; }; w.startTransition = function (e) { var t = hl.transition; hl.transition = {}; try { e(); } finally { hl.transition = t; } }; w.unstable_act = function () { throw Error("act(...) is not supported in production builds of React."); }; w.useCallback = function (e, t) { return Vt.current.useCallback(e, t); }; w.useContext = function (e) { return Vt.current.useContext(e); }; w.useDebugValue = function () {}; w.useDeferredValue = function (e) { return Vt.current.useDeferredValue(e); }; w.useEffect = function (e, t) { return Vt.current.useEffect(e, t); }; w.useId = function () { return Vt.current.useId(); }; w.useImperativeHandle = function (e, t, n) { return Vt.current.useImperativeHandle(e, t, n); }; w.useInsertionEffect = function (e, t) { return Vt.current.useInsertionEffect(e, t); }; w.useLayoutEffect = function (e, t) { return Vt.current.useLayoutEffect(e, t); }; w.useMemo = function (e, t) { return Vt.current.useMemo(e, t); }; w.useReducer = function (e, t, n) { return Vt.current.useReducer(e, t, n); }; w.useRef = function (e) { return Vt.current.useRef(e); }; w.useState = function (e) { return Vt.current.useState(e); }; w.useSyncExternalStore = function (e, t, n) { return Vt.current.useSyncExternalStore(e, t, n); }; w.useTransition = function () { return Vt.current.useTransition(); }; w.version = "18.2.0"; var bn = w.Children, Pe = w.Component, xn = w.Fragment, DE = w.Profiler, zE = w.PureComponent, BE = w.StrictMode, bs = w.Suspense, $E = w.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, Sr = w.cloneElement, be = w.createContext, co = w.createElement, NE = w.createFactory, gv = w.createRef, De = w.forwardRef, At = w.isValidElement, jE = w.lazy, pl = w.memo, rn = w.startTransition, HE = w.unstable_act, K = w.useCallback, A = w.useContext, WE = w.useDebugValue, UE = w.useDeferredValue, N = w.useEffect, Ti = w.useId, GE = w.useImperativeHandle, ft = w.useInsertionEffect, ze = w.useLayoutEffect, oe = w.useMemo, qE = w.useReducer, V = w.useRef, Be = w.useState, vv = w.useSyncExternalStore, XE = w.useTransition, YE = w.version; var KE = "default" in Et ? w : Et, uo = {}, QE = KE, ZE = Symbol.for("react.element"), JE = Symbol.for("react.fragment"), eR = Object.prototype.hasOwnProperty, tR = QE.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, nR = { key: !0, ref: !0, __self: !0, __source: !0 }; function yv(e, t, n) { var r, i = {}, o = null, s = null; n !== void 0 && (o = "" + n), t.key !== void 0 && (o = "" + t.key), t.ref !== void 0 && (s = t.ref); for (r in t) eR.call(t, r) && !nR.hasOwnProperty(r) && (i[r] = t[r]); if (e && e.defaultProps) for (r in ((t = e.defaultProps), t)) i[r] === void 0 && (i[r] = t[r]); return { $$typeof: ZE, type: e, key: o, ref: s, props: i, _owner: tR.current, }; } uo.Fragment = JE; uo.jsx = yv; uo.jsxs = yv; var ot = uo.Fragment, C = uo.jsx, he = uo.jsxs; var rR = tn({ "../../../node_modules/@emotion/memoize/dist/memoize.browser.cjs.js"(e) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); function t(n) { var r = {}; return function (i) { return r[i] === void 0 && (r[i] = n(i)), r[i]; }; } e.default = t; }, }), iR = tn({ "../../../node_modules/@emotion/is-prop-valid/dist/is-prop-valid.browser.cjs.js"( e ) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); function t(o) { return o && typeof o == "object" && "default" in o ? o.default : o; } var n = t(rR()), r = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|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|download|draggable|encType|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|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|itemProp|itemScope|itemType|itemID|itemRef|on|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)-.*))$/, i = n(function (o) { return ( r.test(o) || (o.charCodeAt(0) === 111 && o.charCodeAt(1) === 110 && o.charCodeAt(2) < 91) ); }); e.default = i; }, }), _l = { skipAnimations: !1, useManualTiming: !1 }, wt = (e) => e; function oR(e) { let t = new Set(), n = new Set(), r = !1, i = !1, o = new WeakSet(), s = { delta: 0, timestamp: 0, isProcessing: !1 }; function a(c) { o.has(c) && (l.schedule(c), e()), c(s); } let l = { schedule: (c, u = !1, f = !1) => { let m = f && r ? t : n; return u && o.add(c), m.has(c) || m.add(c), c; }, cancel: (c) => { n.delete(c), o.delete(c); }, process: (c) => { if (((s = c), r)) { i = !0; return; } (r = !0), ([t, n] = [n, t]), n.clear(), t.forEach(a), (r = !1), i && ((i = !1), l.process(c)); }, }; return l; } var Ss = [ "read", "resolveKeyframes", "update", "preRender", "render", "postRender", ], sR = 40; function Hy(e, t) { let n = !1, r = !0, i = { delta: 0, timestamp: 0, isProcessing: !1 }, o = () => (n = !0), s = Ss.reduce((h, p) => ((h[p] = oR(o)), h), {}), { read: a, resolveKeyframes: l, update: c, preRender: u, render: f, postRender: d, } = s, m = () => { let h = _l.useManualTiming ? i.timestamp : performance.now(); (n = !1), (i.delta = r ? 1e3 / 60 : Math.max(Math.min(h - i.timestamp, sR), 1)), (i.timestamp = h), (i.isProcessing = !0), a.process(i), l.process(i), c.process(i), u.process(i), f.process(i), d.process(i), (i.isProcessing = !1), n && t && ((r = !1), e(m)); }, y = () => { (n = !0), (r = !0), i.isProcessing || e(m); }; return { schedule: Ss.reduce((h, p) => { let v = s[p]; return (h[p] = (x, k = !1, S = !1) => (n || y(), v.schedule(x, k, S))), h; }, {}), cancel: (h) => { for (let p = 0; p < Ss.length; p++) s[Ss[p]].cancel(h); }, state: i, steps: s, }; } var { schedule: Q, cancel: Dt, state: Xe, steps: yl, } = Hy(typeof requestAnimationFrame < "u" ? requestAnimationFrame : wt, !0), Wy = (e, t, n) => (((1 - 3 * n + 3 * t) * e + (3 * n - 6 * t)) * e + 3 * t) * e, aR = 1e-7, lR = 12; function cR(e, t, n, r, i) { let o, s, a = 0; do (s = t + (n - t) / 2), (o = Wy(s, r, i) - e), o > 0 ? (n = s) : (t = s); while (Math.abs(o) > aR && ++a < lR); return s; } function xo(e, t, n, r) { if (e === t && n === r) return wt; let i = (o) => cR(o, 0, 1, e, n); return (o) => (o === 0 || o === 1 ? o : Wy(i(o), t, r)); } var pd = (e) => (t) => t <= 0.5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, md = (e) => (t) => 1 - e(1 - t), gd = xo(0.33, 1.53, 0.69, 0.99), Il = md(gd), vd = pd(Il), yd = (e) => (e *= 2) < 1 ? 0.5 * Il(e) : 0.5 * (2 - Math.pow(2, -10 * (e - 1))), Ol = (e) => 1 - Math.sin(Math.acos(e)), bd = md(Ol), xd = pd(Ol), wo = wt, on = wt, Cr = (e, t, n) => (n > t ? t : n < e ? e : n), As = (e) => ({ test: (t) => typeof t == "string" && t.endsWith(e) && t.split(" ").length === 1, parse: parseFloat, transform: (t) => `${t}${e}`, }), Ur = As("deg"), Zn = As("%"), Z = As("px"), uR = As("vh"), fR = As("vw"), bv = { ...Zn, parse: (e) => Zn.parse(e) / 100, transform: (e) => Zn.transform(e * 100), }, So = { test: (e) => typeof e == "number", parse: parseFloat, transform: (e) => e, }, _s = { ...So, transform: (e) => Cr(0, 1, e) }, ml = { ...So, default: 1 }, Ts = (e) => Math.round(e * 1e5) / 1e5, wd = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu; function dR(e) { return e == null; } var hR = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, Sd = (e, t) => (n) => !!( (typeof n == "string" && hR.test(n) && n.startsWith(e)) || (t && !dR(n) && Object.prototype.hasOwnProperty.call(n, t)) ), Uy = (e, t, n) => (r) => { if (typeof r != "string") return r; let [i, o, s, a] = r.match(wd); return { [e]: parseFloat(i), [t]: parseFloat(o), [n]: parseFloat(s), alpha: a !== void 0 ? parseFloat(a) : 1, }; }, pR = (e) => Cr(0, 255, e), Lf = { ...So, transform: (e) => Math.round(pR(e)) }, Fi = { test: Sd("rgb", "red"), parse: Uy("red", "green", "blue"), transform: ({ red: e, green: t, blue: n, alpha: r = 1 }) => "rgba(" + Lf.transform(e) + ", " + Lf.transform(t) + ", " + Lf.transform(n) + ", " + Ts(_s.transform(r)) + ")", }; function mR(e) { let t = "", n = "", r = "", i = ""; return ( e.length > 5 ? ((t = e.substring(1, 3)), (n = e.substring(3, 5)), (r = e.substring(5, 7)), (i = e.substring(7, 9))) : ((t = e.substring(1, 2)), (n = e.substring(2, 3)), (r = e.substring(3, 4)), (i = e.substring(4, 5)), (t += t), (n += n), (r += r), (i += i)), { red: parseInt(t, 16), green: parseInt(n, 16), blue: parseInt(r, 16), alpha: i ? parseInt(i, 16) / 255 : 1, } ); } var qf = { test: Sd("#"), parse: mR, transform: Fi.transform }, fo = { test: Sd("hsl", "hue"), parse: Uy("hue", "saturation", "lightness"), transform: ({ hue: e, saturation: t, lightness: n, alpha: r = 1 }) => "hsla(" + Math.round(e) + ", " + Zn.transform(Ts(t)) + ", " + Zn.transform(Ts(n)) + ", " + Ts(_s.transform(r)) + ")", }, xt = { test: (e) => Fi.test(e) || qf.test(e) || fo.test(e), parse: (e) => Fi.test(e) ? Fi.parse(e) : fo.test(e) ? fo.parse(e) : qf.parse(e), transform: (e) => typeof e == "string" ? e : e.hasOwnProperty("red") ? Fi.transform(e) : fo.transform(e), }, gR = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu; function vR(e) { var t, n; return ( isNaN(e) && typeof e == "string" && (((t = e.match(wd)) === null || t === void 0 ? void 0 : t.length) || 0) + (((n = e.match(gR)) === null || n === void 0 ? void 0 : n.length) || 0) > 0 ); } var Gy = "number", qy = "color", yR = "var", bR = "var(", xv = "${}", xR = /var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu; function Is(e) { let t = e.toString(), n = [], r = { color: [], number: [], var: [] }, i = [], o = 0, a = t .replace( xR, (l) => ( xt.test(l) ? (r.color.push(o), i.push(qy), n.push(xt.parse(l))) : l.startsWith(bR) ? (r.var.push(o), i.push(yR), n.push(l)) : (r.number.push(o), i.push(Gy), n.push(parseFloat(l))), ++o, xv ) ) .split(xv); return { values: n, split: a, indexes: r, types: i }; } function Xy(e) { return Is(e).values; } function Yy(e) { let { split: t, types: n } = Is(e), r = t.length; return (i) => { let o = ""; for (let s = 0; s < r; s++) if (((o += t[s]), i[s] !== void 0)) { let a = n[s]; a === Gy ? (o += Ts(i[s])) : a === qy ? (o += xt.transform(i[s])) : (o += i[s]); } return o; }; } var wR = (e) => (typeof e == "number" ? 0 : e); function SR(e) { let t = Xy(e); return Yy(e)(t.map(wR)); } var Tr = { test: vR, parse: Xy, createTransformer: Yy, getAnimatableNone: SR }, Vn = (e) => e * 1e3, Jn = (e) => e / 1e3, Vf = 0.001, kR = 0.01, wv = 10, CR = 0.05, TR = 1; function Ky({ duration: e = 800, bounce: t = 0.25, velocity: n = 0, mass: r = 1, }) { let i, o; wo(e <= Vn(wv), "Spring duration must be 10 seconds or less"); let s = 1 - t; (s = Cr(CR, TR, s)), (e = Cr(kR, wv, Jn(e))), s < 1 ? ((i = (c) => { let u = c * s, f = u * e, d = u - n, m = Xf(c, s), y = Math.exp(-f); return Vf - (d / m) * y; }), (o = (c) => { let f = c * s * e, d = f * n + n, m = Math.pow(s, 2) * Math.pow(c, 2) * e, y = Math.exp(-f), g = Xf(Math.pow(c, 2), s); return ((-i(c) + Vf > 0 ? -1 : 1) * ((d - m) * y)) / g; })) : ((i = (c) => { let u = Math.exp(-c * e), f = (c - n) * e + 1; return -Vf + u * f; }), (o = (c) => { let u = Math.exp(-c * e), f = (n - c) * (e * e); return u * f; })); let a = 5 / e, l = RR(i, o, a); if (((e = Vn(e)), isNaN(l))) return { stiffness: 100, damping: 10, duration: e }; { let c = Math.pow(l, 2) * r; return { stiffness: c, damping: s * 2 * Math.sqrt(r * c), duration: e }; } } var ER = 12; function RR(e, t, n) { let r = n; for (let i = 1; i < ER; i++) r = r - e(r) / t(r); return r; } function Xf(e, t) { return e * Math.sqrt(1 - t * t); } function kd(e, t) { return t ? e * (1e3 / t) : 0; } var PR = 5; function Qy(e, t, n) { let r = Math.max(t - PR, 0); return kd(n - e(r), t - r); } var FR = ["duration", "bounce"], _R = ["stiffness", "damping", "mass"]; function Sv(e, t) { return t.some((n) => e[n] !== void 0); } function IR(e) { let t = { velocity: 0, stiffness: 100, damping: 10, mass: 1, isResolvedFromDuration: !1, ...e, }; if (!Sv(e, _R) && Sv(e, FR)) { let n = Ky(e); (t = { ...t, ...n, mass: 1 }), (t.isResolvedFromDuration = !0); } return t; } function Ds({ keyframes: e, restDelta: t, restSpeed: n, ...r }) { let i = e[0], o = e[e.length - 1], s = { done: !1, value: i }, { stiffness: a, damping: l, mass: c, duration: u, velocity: f, isResolvedFromDuration: d, } = IR({ ...r, velocity: -Jn(r.velocity || 0) }), m = f || 0, y = l / (2 * Math.sqrt(a * c)), g = o - i, b = Jn(Math.sqrt(a / c)), h = Math.abs(g) < 5; n || (n = h ? 0.01 : 2), t || (t = h ? 0.005 : 0.5); let p; if (y < 1) { let v = Xf(b, y); p = (x) => { let k = Math.exp(-y * b * x); return ( o - k * (((m + y * b * g) / v) * Math.sin(v * x) + g * Math.cos(v * x)) ); }; } else if (y === 1) p = (v) => o - Math.exp(-b * v) * (g + (m + b * g) * v); else { let v = b * Math.sqrt(y * y - 1); p = (x) => { let k = Math.exp(-y * b * x), S = Math.min(v * x, 300); return ( o - (k * ((m + y * b * g) * Math.sinh(S) + v * g * Math.cosh(S))) / v ); }; } return { calculatedDuration: (d && u) || null, next: (v) => { let x = p(v); if (d) s.done = v >= u; else { let k = 0; y < 1 && (k = v === 0 ? Vn(m) : Qy(p, v, x)); let S = Math.abs(k) <= n, T = Math.abs(o - x) <= t; s.done = S && T; } return (s.value = s.done ? o : x), s; }, }; } function Yf({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: r = 325, bounceDamping: i = 10, bounceStiffness: o = 500, modifyTarget: s, min: a, max: l, restDelta: c = 0.5, restSpeed: u, }) { let f = e[0], d = { done: !1, value: f }, m = (R) => (a !== void 0 && R < a) || (l !== void 0 && R > l), y = (R) => a === void 0 ? l : l === void 0 || Math.abs(a - R) < Math.abs(l - R) ? a : l, g = n * t, b = f + g, h = s === void 0 ? b : s(b); h !== b && (g = h - f); let p = (R) => -g * Math.exp(-R / r), v = (R) => h + p(R), x = (R) => { let O = p(R), I = v(R); (d.done = Math.abs(O) <= c), (d.value = d.done ? h : I); }, k, S, T = (R) => { m(d.value) && ((k = R), (S = Ds({ keyframes: [d.value, y(d.value)], velocity: Qy(v, R, d.value), damping: i, stiffness: o, restDelta: c, restSpeed: u, }))); }; return ( T(0), { calculatedDuration: null, next: (R) => { let O = !1; return ( !S && k === void 0 && ((O = !0), x(R), T(R)), k !== void 0 && R >= k ? S.next(R - k) : (!O && x(R), d) ); }, } ); } var Zy = xo(0.42, 0, 1, 1), Jy = xo(0, 0, 0.58, 1), Cd = xo(0.42, 0, 0.58, 1), OR = (e, t) => (n) => t(e(n)), er = (...e) => e.reduce(OR), Er = (e, t, n) => { let r = t - e; return r === 0 ? 1 : (n - e) / r; }, Oe = (e, t, n) => e + (t - e) * n; function Af(e, t, n) { return ( n < 0 && (n += 1), n > 1 && (n -= 1), n < 1 / 6 ? e + (t - e) * 6 * n : n < 1 / 2 ? t : n < 2 / 3 ? e + (t - e) * (2 / 3 - n) * 6 : e ); } function MR({ hue: e, saturation: t, lightness: n, alpha: r }) { (e /= 360), (t /= 100), (n /= 100); let i = 0, o = 0, s = 0; if (!t) i = o = s = n; else { let a = n < 0.5 ? n * (1 + t) : n + t - n * t, l = 2 * n - a; (i = Af(l, a, e + 1 / 3)), (o = Af(l, a, e)), (s = Af(l, a, e - 1 / 3)); } return { red: Math.round(i * 255), green: Math.round(o * 255), blue: Math.round(s * 255), alpha: r, }; } function kl(e, t) { return (n) => (n > 0 ? t : e); } var Df = (e, t, n) => { let r = e * e, i = n * (t * t - r) + r; return i < 0 ? 0 : Math.sqrt(i); }, LR = [qf, Fi, fo], VR = (e) => LR.find((t) => t.test(e)); function kv(e) { let t = VR(e); if ( (wo( !!t, `'${e}' is not an animatable color. Use the equivalent color code instead.` ), !t) ) return !1; let n = t.parse(e); return t === fo && (n = MR(n)), n; } var Cv = (e, t) => { let n = kv(e), r = kv(t); if (!n || !r) return kl(e, t); let i = { ...n }; return (o) => ( (i.red = Df(n.red, r.red, o)), (i.green = Df(n.green, r.green, o)), (i.blue = Df(n.blue, r.blue, o)), (i.alpha = Oe(n.alpha, r.alpha, o)), Fi.transform(i) ); }, e0 = (e) => (t) => typeof t == "string" && t.startsWith(e), t0 = e0("--"), AR = e0("var(--"), Td = (e) => (AR(e) ? DR.test(e.split("/*")[0].trim()) : !1), DR = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu, Kf = new Set(["none", "hidden"]); function zR(e, t) { return Kf.has(e) ? (n) => (n <= 0 ? e : t) : (n) => (n >= 1 ? t : e); } function BR(e, t) { return (n) => Oe(e, t, n); } function Ed(e) { return typeof e == "number" ? BR : typeof e == "string" ? Td(e) ? kl : xt.test(e) ? Cv : jR : Array.isArray(e) ? n0 : typeof e == "object" ? xt.test(e) ? Cv : $R : kl; } function n0(e, t) { let n = [...e], r = n.length, i = e.map((o, s) => Ed(o)(o, t[s])); return (o) => { for (let s = 0; s < r; s++) n[s] = i[s](o); return n; }; } function $R(e, t) { let n = { ...e, ...t }, r = {}; for (let i in n) e[i] !== void 0 && t[i] !== void 0 && (r[i] = Ed(e[i])(e[i], t[i])); return (i) => { for (let o in r) n[o] = r[o](i); return n; }; } function NR(e, t) { var n; let r = [], i = { color: 0, var: 0, number: 0 }; for (let o = 0; o < t.values.length; o++) { let s = t.types[o], a = e.indexes[s][i[s]], l = (n = e.values[a]) !== null && n !== void 0 ? n : 0; (r[o] = l), i[s]++; } return r; } var jR = (e, t) => { let n = Tr.createTransformer(t), r = Is(e), i = Is(t); return r.indexes.var.length === i.indexes.var.length && r.indexes.color.length === i.indexes.color.length && r.indexes.number.length >= i.indexes.number.length ? (Kf.has(e) && !i.values.length) || (Kf.has(t) && !r.values.length) ? zR(e, t) : er(n0(NR(r, i), i.values), n) : (wo( !0, `Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.` ), kl(e, t)); }; function Rd(e, t, n) { return typeof e == "number" && typeof t == "number" && typeof n == "number" ? Oe(e, t, n) : Ed(e)(e, t); } function HR(e, t, n) { let r = [], i = n || Rd, o = e.length - 1; for (let s = 0; s < o; s++) { let a = i(e[s], e[s + 1]); if (t) { let l = Array.isArray(t) ? t[s] || wt : t; a = er(l, a); } r.push(a); } return r; } function ko(e, t, { clamp: n = !0, ease: r, mixer: i } = {}) { let o = e.length; if ( (on(o === t.length, "Both input and output ranges must be the same length"), o === 1) ) return () => t[0]; if (o === 2 && e[0] === e[1]) return () => t[1]; e[0] > e[o - 1] && ((e = [...e].reverse()), (t = [...t].reverse())); let s = HR(t, r, i), a = s.length, l = (c) => { let u = 0; if (a > 1) for (; u < e.length - 2 && !(c < e[u + 1]); u++); let f = Er(e[u], e[u + 1], c); return s[u](f); }; return n ? (c) => l(Cr(e[0], e[o - 1], c)) : l; } var r0 = (e) => Array.isArray(e) && typeof e[0] != "number", Pd = (e) => Array.isArray(e) && typeof e[0] == "number", Tv = { linear: wt, easeIn: Zy, easeInOut: Cd, easeOut: Jy, circIn: Ol, circInOut: xd, circOut: bd, backIn: Il, backInOut: vd, backOut: gd, anticipate: yd, }, Qf = (e) => { if (Pd(e)) { on( e.length === 4, "Cubic bezier arrays must contain four numerical values." ); let [t, n, r, i] = e; return xo(t, n, r, i); } else if (typeof e == "string") return on(Tv[e] !== void 0, `Invalid easing type '${e}'`), Tv[e]; return e; }; function i0(e, t) { let n = e[e.length - 1]; for (let r = 1; r <= t; r++) { let i = Er(0, t, r); e.push(Oe(n, 1, i)); } } function Fd(e) { let t = [0]; return i0(t, e.length - 1), t; } function WR(e, t) { return e.map((n) => n * t); } function UR(e, t) { return e.map(() => t || Cd).splice(0, e.length - 1); } function Os({ duration: e = 300, keyframes: t, times: n, ease: r = "easeInOut", }) { let i = r0(r) ? r.map(Qf) : Qf(r), o = { done: !1, value: t[0] }, s = WR(n && n.length === t.length ? n : Fd(t), e), a = ko(s, t, { ease: Array.isArray(i) ? i : UR(t, i) }); return { calculatedDuration: e, next: (l) => ((o.value = a(l)), (o.done = l >= e), o), }; } var zs = [ "transformPerspective", "x", "y", "z", "translateX", "translateY", "translateZ", "scale", "scaleX", "scaleY", "rotate", "rotateX", "rotateY", "rotateZ", "skew", "skewX", "skewY", ], qr = new Set(zs), GR = new Set([ "width", "height", "top", "left", "right", "bottom", "x", "y", "translateX", "translateY", ]), Ev = (e) => e === So || e === Z, Rv = (e, t) => parseFloat(e.split(", ")[t]), Pv = (e, t) => (n, { transform: r }) => { if (r === "none" || !r) return 0; let i = r.match(/^matrix3d\((.+)\)$/u); if (i) return Rv(i[1], t); { let o = r.match(/^matrix\((.+)\)$/u); return o ? Rv(o[1], e) : 0; } }, qR = new Set(["x", "y", "z"]), XR = zs.filter((e) => !qR.has(e)); function YR(e) { let t = []; return ( XR.forEach((n) => { let r = e.getValue(n); r !== void 0 && (t.push([n, r.get()]), r.set(n.startsWith("scale") ? 1 : 0)); }), t ); } var vo = { width: ({ x: e }, { paddingLeft: t = "0", paddingRight: n = "0" }) => e.max - e.min - parseFloat(t) - parseFloat(n), height: ({ y: e }, { paddingTop: t = "0", paddingBottom: n = "0" }) => e.max - e.min - parseFloat(t) - parseFloat(n), top: (e, { top: t }) => parseFloat(t), left: (e, { left: t }) => parseFloat(t), bottom: ({ y: e }, { top: t }) => parseFloat(t) + (e.max - e.min), right: ({ x: e }, { left: t }) => parseFloat(t) + (e.max - e.min), x: Pv(4, 13), y: Pv(5, 14), }; vo.translateX = vo.x; vo.translateY = vo.y; var _i = new Set(), Zf = !1, Jf = !1; function o0() { if (Jf) { let e = Array.from(_i).filter((r) => r.needsMeasurement), t = new Set(e.map((r) => r.element)), n = new Map(); t.forEach((r) => { let i = YR(r); i.length && (n.set(r, i), r.render()); }), e.forEach((r) => r.measureInitialState()), t.forEach((r) => { r.render(); let i = n.get(r); i && i.forEach(([o, s]) => { var a; (a = r.getValue(o)) === null || a === void 0 || a.set(s); }); }), e.forEach((r) => r.measureEndState()), e.forEach((r) => { r.suspendedScrollY !== void 0 && F.scrollTo(0, r.suspendedScrollY); }); } (Jf = !1), (Zf = !1), _i.forEach((e) => e.complete()), _i.clear(); } function s0() { _i.forEach((e) => { e.readKeyframes(), e.needsMeasurement && (Jf = !0); }); } function KR() { s0(), o0(); } var _d = class { constructor(e, t, n, r, i, o = !1) { (this.isComplete = !1), (this.isAsync = !1), (this.needsMeasurement = !1), (this.isScheduled = !1), (this.unresolvedKeyframes = [...e]), (this.onComplete = t), (this.name = n), (this.motionValue = r), (this.element = i), (this.isAsync = o); } scheduleResolve() { (this.isScheduled = !0), this.isAsync ? (_i.add(this), Zf || ((Zf = !0), Q.read(s0), Q.resolveKeyframes(o0))) : (this.readKeyframes(), this.complete()); } readKeyframes() { let { unresolvedKeyframes: e, name: t, element: n, motionValue: r, } = this; for (let i = 0; i < e.length; i++) if (e[i] === null) if (i === 0) { let o = r?.get(), s = e[e.length - 1]; if (o !== void 0) e[0] = o; else if (n && t) { let a = n.readValue(t, s); a != null && (e[0] = a); } e[0] === void 0 && (e[0] = s), r && o === void 0 && r.set(e[0]); } else e[i] = e[i - 1]; } setFinalKeyframe() {} measureInitialState() {} renderEndStyles() {} measureEndState() {} complete() { (this.isComplete = !0), this.onComplete(this.unresolvedKeyframes, this.finalKeyframe), _i.delete(this); } cancel() { this.isComplete || ((this.isScheduled = !1), _i.delete(this)); } resume() { this.isComplete || this.scheduleResolve(); } }, bl; function QR() { bl = void 0; } var tr = { now: () => ( bl === void 0 && tr.set( Xe.isProcessing || _l.useManualTiming ? Xe.timestamp : performance.now() ), bl ), set: (e) => { (bl = e), queueMicrotask(QR); }, }, Cl = { current: !1 }; function Ml(e) { return typeof e == "function"; } var Fv = (e, t) => t === "zIndex" ? !1 : !!( typeof e == "number" || Array.isArray(e) || (typeof e == "string" && (Tr.test(e) || e === "0") && !e.startsWith("url(")) ); function ZR(e) { let t = e[0]; if (e.length === 1) return !0; for (let n = 0; n < e.length; n++) if (e[n] !== t) return !0; } function JR(e, t, n, r) { let i = e[0]; if (i === null) return !1; if (t === "display" || t === "visibility") return !0; let o = e[e.length - 1], s = Fv(i, t), a = Fv(o, t); return ( wo( s === a, `You are trying to animate ${t} from "${i}" to "${o}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${o} via the \`style\` property.` ), !s || !a ? !1 : ZR(e) || ((n === "spring" || Ml(n)) && r) ); } var eP = (e) => e !== null; function Ll(e, { repeat: t, repeatType: n = "loop" }, r) { let i = e.filter(eP), o = t && n !== "loop" && t % 2 === 1 ? 0 : i.length - 1; return !o || r === void 0 ? i[o] : r; } var tP = 40, a0 = class { constructor({ autoplay: e = !0, delay: t = 0, type: n = "keyframes", repeat: r = 0, repeatDelay: i = 0, repeatType: o = "loop", ...s }) { (this.isStopped = !1), (this.hasAttemptedResolve = !1), (this.createdAt = tr.now()), (this.options = { autoplay: e, delay: t, type: n, repeat: r, repeatDelay: i, repeatType: o, ...s, }), this.updateFinishedPromise(); } calcStartTime() { return this.resolvedAt ? this.resolvedAt - this.createdAt > tP ? this.resolvedAt : this.createdAt : this.createdAt; } get resolved() { return ( !this._resolved && !this.hasAttemptedResolve && KR(), this._resolved ); } onKeyframesResolved(e, t) { (this.resolvedAt = tr.now()), (this.hasAttemptedResolve = !0); let { name: n, type: r, velocity: i, delay: o, onComplete: s, onUpdate: a, isGenerator: l, } = this.options; if (!l && !JR(e, n, r, i)) if (Cl.current || !o) { a?.(Ll(e, this.options, t)), s?.(), this.resolveFinishedPromise(); return; } else this.options.duration = 0; let c = this.initPlayback(e, t); c !== !1 && ((this._resolved = { keyframes: e, finalKeyframe: t, ...c }), this.onPostResolved()); } onPostResolved() {} then(e, t) { return this.currentFinishedPromise.then(e, t); } updateFinishedPromise() { this.currentFinishedPromise = new Promise((e) => { this.resolveFinishedPromise = e; }); } }, ed = 2e4; function l0(e) { let t = 0, n = 50, r = e.next(t); for (; !r.done && t < ed; ) (t += n), (r = e.next(t)); return t >= ed ? 1 / 0 : t; } var nP = (e) => { let t = ({ timestamp: n }) => e(n); return { start: () => Q.update(t, !0), stop: () => Dt(t), now: () => (Xe.isProcessing ? Xe.timestamp : tr.now()), }; }, rP = { decay: Yf, inertia: Yf, tween: Os, keyframes: Os, spring: Ds }, iP = (e) => e / 100, Vl = class extends a0 { constructor(e) { super(e), (this.holdTime = null), (this.cancelTime = null), (this.currentTime = 0), (this.playbackSpeed = 1), (this.pendingPlayState = "running"), (this.startTime = null), (this.state = "idle"), (this.stop = () => { if ( (this.resolver.cancel(), (this.isStopped = !0), this.state === "idle") ) return; this.teardown(); let { onStop: a } = this.options; a && a(); }); let { name: t, motionValue: n, element: r, keyframes: i } = this.options, o = r?.KeyframeResolver || _d, s = (a, l) => this.onKeyframesResolved(a, l); (this.resolver = new o(i, s, t, n, r)), this.resolver.scheduleResolve(); } initPlayback(e) { let { type: t = "keyframes", repeat: n = 0, repeatDelay: r = 0, repeatType: i, velocity: o = 0, } = this.options, s = Ml(t) ? t : rP[t] || Os, a, l; s !== Os && typeof e[0] != "number" && ((a = er(iP, Rd(e[0], e[1]))), (e = [0, 100])); let c = s({ ...this.options, keyframes: e }); i === "mirror" && (l = s({ ...this.options, keyframes: [...e].reverse(), velocity: -o })), c.calculatedDuration === null && (c.calculatedDuration = l0(c)); let { calculatedDuration: u } = c, f = u + r, d = f * (n + 1) - r; return { generator: c, mirroredGenerator: l, mapPercentToKeyframes: a, calculatedDuration: u, resolvedDuration: f, totalDuration: d, }; } onPostResolved() { let { autoplay: e = !0 } = this.options; this.play(), this.pendingPlayState === "paused" || !e ? this.pause() : (this.state = this.pendingPlayState); } tick(e, t = !1) { let { resolved: n } = this; if (!n) { let { keyframes: T } = this.options; return { done: !0, value: T[T.length - 1] }; } let { finalKeyframe: r, generator: i, mirroredGenerator: o, mapPercentToKeyframes: s, keyframes: a, calculatedDuration: l, totalDuration: c, resolvedDuration: u, } = n; if (this.startTime === null) return i.next(0); let { delay: f, repeat: d, repeatType: m, repeatDelay: y, onUpdate: g, } = this.options; this.speed > 0 ? (this.startTime = Math.min(this.startTime, e)) : this.speed < 0 && (this.startTime = Math.min(e - c / this.speed, this.startTime)), t ? (this.currentTime = e) : this.holdTime !== null ? (this.currentTime = this.holdTime) : (this.currentTime = Math.round(e - this.startTime) * this.speed); let b = this.currentTime - f * (this.speed >= 0 ? 1 : -1), h = this.speed >= 0 ? b < 0 : b > c; (this.currentTime = Math.max(b, 0)), this.state === "finished" && this.holdTime === null && (this.currentTime = c); let p = this.currentTime, v = i; if (d) { let T = Math.min(this.currentTime, c) / u, R = Math.floor(T), O = T % 1; !O && T >= 1 && (O = 1), O === 1 && R--, (R = Math.min(R, d + 1)), !!(R % 2) && (m === "reverse" ? ((O = 1 - O), y && (O -= y / u)) : m === "mirror" && (v = o)), (p = Cr(0, 1, O) * u); } let x = h ? { done: !1, value: a[0] } : v.next(p); s && (x.value = s(x.value)); let { done: k } = x; !h && l !== null && (k = this.speed >= 0 ? this.currentTime >= c : this.currentTime <= 0); let S = this.holdTime === null && (this.state === "finished" || (this.state === "running" && k)); return ( S && r !== void 0 && (x.value = Ll(a, this.options, r)), g && g(x.value), S && this.finish(), x ); } get duration() { let { resolved: e } = this; return e ? Jn(e.calculatedDuration) : 0; } get time() { return Jn(this.currentTime); } set time(e) { (e = Vn(e)), (this.currentTime = e), this.holdTime !== null || this.speed === 0 ? (this.holdTime = e) : this.driver && (this.startTime = this.driver.now() - e / this.speed); } get speed() { return this.playbackSpeed; } set speed(e) { let t = this.playbackSpeed !== e; (this.playbackSpeed = e), t && (this.time = Jn(this.currentTime)); } play() { if ( (this.resolver.isScheduled || this.resolver.resume(), !this._resolved) ) { this.pendingPlayState = "running"; return; } if (this.isStopped) return; let { driver: e = nP, onPlay: t, startTime: n } = this.options; this.driver || (this.driver = e((i) => this.tick(i))), t && t(); let r = this.driver.now(); this.holdTime !== null ? (this.startTime = r - this.holdTime) : this.startTime ? this.state === "finished" && (this.startTime = r) : (this.startTime = n ?? this.calcStartTime()), this.state === "finished" && this.updateFinishedPromise(), (this.cancelTime = this.startTime), (this.holdTime = null), (this.state = "running"), this.driver.start(); } pause() { var e; if (!this._resolved) { this.pendingPlayState = "paused"; return; } (this.state = "paused"), (this.holdTime = (e = this.currentTime) !== null && e !== void 0 ? e : 0); } complete() { this.state !== "running" && this.play(), (this.pendingPlayState = this.state = "finished"), (this.holdTime = null); } finish() { this.teardown(), (this.state = "finished"); let { onComplete: e } = this.options; e && e(); } cancel() { this.cancelTime !== null && this.tick(this.cancelTime), this.teardown(), this.updateFinishedPromise(); } teardown() { (this.state = "idle"), this.stopDriver(), this.resolveFinishedPromise(), this.updateFinishedPromise(), (this.startTime = this.cancelTime = null), this.resolver.cancel(); } stopDriver() { this.driver && (this.driver.stop(), (this.driver = void 0)); } sample(e) { return (this.startTime = 0), this.tick(e, !0); } }; function Id(e) { return new Vl(e); } var c0 = (e) => /^0[^.\s]+$/u.test(e); function oP(e) { return typeof e == "number" ? e === 0 : e !== null ? e === "none" || e === "0" || c0(e) : !0; } var u0 = (e) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e), sP = /^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u; function aP(e) { let t = sP.exec(e); if (!t) return [,]; let [, n, r, i] = t; return [`--${n ?? r}`, i]; } var lP = 4; function f0(e, t, n = 1) { on( n <= lP, `Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.` ); let [r, i] = aP(e); if (!r) return; let o = F.getComputedStyle(t).getPropertyValue(r); if (o) { let s = o.trim(); return u0(s) ? parseFloat(s) : s; } return Td(i) ? f0(i, t, n + 1) : i; } var d0 = (e) => (t) => t.test(e), cP = { test: (e) => e === "auto", parse: (e) => e }, h0 = [So, Z, Zn, Ur, fR, uR, cP], _v = (e) => h0.find(d0(e)), uP = new Set(["brightness", "contrast", "saturate", "opacity"]); function fP(e) { let [t, n] = e.slice(0, -1).split("("); if (t === "drop-shadow") return e; let [r] = n.match(wd) || []; if (!r) return e; let i = n.replace(r, ""), o = uP.has(t) ? 1 : 0; return r !== n && (o *= 100), t + "(" + o + i + ")"; } var dP = /\b([a-z-]*)\(.*?\)/gu, td = { ...Tr, getAnimatableNone: (e) => { let t = e.match(dP); return t ? t.map(fP).join(" ") : e; }, }, hP = { borderWidth: Z, borderTopWidth: Z, borderRightWidth: Z, borderBottomWidth: Z, borderLeftWidth: Z, borderRadius: Z, radius: Z, borderTopLeftRadius: Z, borderTopRightRadius: Z, borderBottomRightRadius: Z, borderBottomLeftRadius: Z, width: Z, maxWidth: Z, height: Z, maxHeight: Z, top: Z, right: Z, bottom: Z, left: Z, padding: Z, paddingTop: Z, paddingRight: Z, paddingBottom: Z, paddingLeft: Z, margin: Z, marginTop: Z, marginRight: Z, marginBottom: Z, marginLeft: Z, backgroundPositionX: Z, backgroundPositionY: Z, }, pP = { rotate: Ur, rotateX: Ur, rotateY: Ur, rotateZ: Ur, scale: ml, scaleX: ml, scaleY: ml, scaleZ: ml, skew: Ur, skewX: Ur, skewY: Ur, distance: Z, translateX: Z, translateY: Z, translateZ: Z, x: Z, y: Z, z: Z, perspective: Z, transformPerspective: Z, opacity: _s, originX: bv, originY: bv, originZ: Z, }, Iv = { ...So, transform: Math.round }, Od = { ...hP, ...pP, zIndex: Iv, size: Z, fillOpacity: _s, strokeOpacity: _s, numOctaves: Iv, }, mP = { ...Od, color: xt, backgroundColor: xt, outlineColor: xt, fill: xt, stroke: xt, borderColor: xt, borderTopColor: xt, borderRightColor: xt, borderBottomColor: xt, borderLeftColor: xt, filter: td, WebkitFilter: td, }, Md = (e) => mP[e]; function p0(e, t) { let n = Md(e); return ( n !== td && (n = Tr), n.getAnimatableNone ? n.getAnimatableNone(t) : void 0 ); } var gP = new Set(["auto", "none", "0"]); function vP(e, t, n) { let r = 0, i; for (; r < e.length && !i; ) { let o = e[r]; typeof o == "string" && !gP.has(o) && Is(o).values.length && (i = e[r]), r++; } if (i && n) for (let o of t) e[o] = p0(n, i); } var m0 = class extends _d { constructor(e, t, n, r, i) { super(e, t, n, r, i, !0); } readKeyframes() { let { unresolvedKeyframes: e, element: t, name: n } = this; if (!t || !t.current) return; super.readKeyframes(); for (let a = 0; a < e.length; a++) { let l = e[a]; if (typeof l == "string" && ((l = l.trim()), Td(l))) { let c = f0(l, t.current); c !== void 0 && (e[a] = c), a === e.length - 1 && (this.finalKeyframe = l); } } if ((this.resolveNoneKeyframes(), !GR.has(n) || e.length !== 2)) return; let [r, i] = e, o = _v(r), s = _v(i); if (o !== s) if (Ev(o) && Ev(s)) for (let a = 0; a < e.length; a++) { let l = e[a]; typeof l == "string" && (e[a] = parseFloat(l)); } else this.needsMeasurement = !0; } resolveNoneKeyframes() { let { unresolvedKeyframes: e, name: t } = this, n = []; for (let r = 0; r < e.length; r++) oP(e[r]) && n.push(r); n.length && vP(e, n, t); } measureInitialState() { let { element: e, unresolvedKeyframes: t, name: n } = this; if (!e || !e.current) return; n === "height" && (this.suspendedScrollY = F.pageYOffset), (this.measuredOrigin = vo[n]( e.measureViewportBox(), F.getComputedStyle(e.current) )), (t[0] = this.measuredOrigin); let r = t[t.length - 1]; r !== void 0 && e.getValue(n, r).jump(r, !1); } measureEndState() { var e; let { element: t, name: n, unresolvedKeyframes: r } = this; if (!t || !t.current) return; let i = t.getValue(n); i && i.jump(this.measuredOrigin, !1); let o = r.length - 1, s = r[o]; (r[o] = vo[n](t.measureViewportBox(), F.getComputedStyle(t.current))), s !== null && this.finalKeyframe === void 0 && (this.finalKeyframe = s), !((e = this.removedTransforms) === null || e === void 0) && e.length && this.removedTransforms.forEach(([a, l]) => { t.getValue(a).set(l); }), this.resolveNoneKeyframes(); } }, g0 = new Set(["opacity", "clipPath", "filter", "transform"]), yP = 10, bP = (e, t) => { let n = "", r = Math.max(Math.round(t / yP), 2); for (let i = 0; i < r; i++) n += e(Er(0, r - 1, i)) + ", "; return `linear(${n.substring(0, n.length - 2)})`; }; function Ld(e) { let t; return () => (t === void 0 && (t = e()), t); } var xP = { linearEasing: void 0 }; function wP(e, t) { let n = Ld(e); return () => { var r; return (r = xP[t]) !== null && r !== void 0 ? r : n(); }; } var Tl = wP(() => { try { document .createElement("div") .animate({ opacity: 0 }, { easing: "linear(0, 1)" }); } catch { return !1; } return !0; }, "linearEasing"); function v0(e) { return !!( (typeof e == "function" && Tl()) || !e || (typeof e == "string" && (e in nd || Tl())) || Pd(e) || (Array.isArray(e) && e.every(v0)) ); } var ks = ([e, t, n, r]) => `cubic-bezier(${e}, ${t}, ${n}, ${r})`, nd = { linear: "linear", ease: "ease", easeIn: "ease-in", easeOut: "ease-out", easeInOut: "ease-in-out", circIn: ks([0, 0.65, 0.55, 1]), circOut: ks([0.55, 0, 1, 0.45]), backIn: ks([0.31, 0.01, 0.66, -0.59]), backOut: ks([0.33, 1.53, 0.69, 0.99]), }; function y0(e, t) { if (e) return typeof e == "function" && Tl() ? bP(e, t) : Pd(e) ? ks(e) : Array.isArray(e) ? e.map((n) => y0(n, t) || nd.easeOut) : nd[e]; } function SP( e, t, n, { delay: r = 0, duration: i = 300, repeat: o = 0, repeatType: s = "loop", ease: a, times: l, } = {} ) { let c = { [t]: n }; l && (c.offset = l); let u = y0(a, i); return ( Array.isArray(u) && (c.easing = u), e.animate(c, { delay: r, duration: i, easing: Array.isArray(u) ? "linear" : u, fill: "both", iterations: o + 1, direction: s === "reverse" ? "alternate" : "normal", }) ); } function Ov(e, t) { (e.timeline = t), (e.onfinish = null); } var kP = Ld(() => Object.hasOwnProperty.call(Element.prototype, "animate")), El = 10, CP = 2e4; function TP(e) { return Ml(e.type) || e.type === "spring" || !v0(e.ease); } function EP(e, t) { let n = new Vl({ ...t, keyframes: e, repeat: 0, delay: 0, isGenerator: !0 }), r = { done: !1, value: e[0] }, i = [], o = 0; for (; !r.done && o < CP; ) (r = n.sample(o)), i.push(r.value), (o += El); return { times: void 0, keyframes: i, duration: o - El, ease: "linear" }; } var b0 = { anticipate: yd, backInOut: vd, circInOut: xd }; function RP(e) { return e in b0; } var rd = class extends a0 { constructor(e) { super(e); let { name: t, motionValue: n, element: r, keyframes: i } = this.options; (this.resolver = new m0( i, (o, s) => this.onKeyframesResolved(o, s), t, n, r )), this.resolver.scheduleResolve(); } initPlayback(e, t) { var n; let { duration: r = 300, times: i, ease: o, type: s, motionValue: a, name: l, startTime: c, } = this.options; if (!(!((n = a.owner) === null || n === void 0) && n.current)) return !1; if ( (typeof o == "string" && Tl() && RP(o) && (o = b0[o]), TP(this.options)) ) { let { onComplete: f, onUpdate: d, motionValue: m, element: y, ...g } = this.options, b = EP(e, g); (e = b.keyframes), e.length === 1 && (e[1] = e[0]), (r = b.duration), (i = b.times), (o = b.ease), (s = "keyframes"); } let u = SP(a.owner.current, l, e, { ...this.options, duration: r, times: i, ease: o, }); return ( (u.startTime = c ?? this.calcStartTime()), this.pendingTimeline ? (Ov(u, this.pendingTimeline), (this.pendingTimeline = void 0)) : (u.onfinish = () => { let { onComplete: f } = this.options; a.set(Ll(e, this.options, t)), f && f(), this.cancel(), this.resolveFinishedPromise(); }), { animation: u, duration: r, times: i, type: s, ease: o, keyframes: e } ); } get duration() { let { resolved: e } = this; if (!e) return 0; let { duration: t } = e; return Jn(t); } get time() { let { resolved: e } = this; if (!e) return 0; let { animation: t } = e; return Jn(t.currentTime || 0); } set time(e) { let { resolved: t } = this; if (!t) return; let { animation: n } = t; n.currentTime = Vn(e); } get speed() { let { resolved: e } = this; if (!e) return 1; let { animation: t } = e; return t.playbackRate; } set speed(e) { let { resolved: t } = this; if (!t) return; let { animation: n } = t; n.playbackRate = e; } get state() { let { resolved: e } = this; if (!e) return "idle"; let { animation: t } = e; return t.playState; } get startTime() { let { resolved: e } = this; if (!e) return null; let { animation: t } = e; return t.startTime; } attachTimeline(e) { if (!this._resolved) this.pendingTimeline = e; else { let { resolved: t } = this; if (!t) return wt; let { animation: n } = t; Ov(n, e); } return wt; } play() { if (this.isStopped) return; let { resolved: e } = this; if (!e) return; let { animation: t } = e; t.playState === "finished" && this.updateFinishedPromise(), t.play(); } pause() { let { resolved: e } = this; if (!e) return; let { animation: t } = e; t.pause(); } stop() { if ((this.resolver.cancel(), (this.isStopped = !0), this.state === "idle")) return; this.resolveFinishedPromise(), this.updateFinishedPromise(); let { resolved: e } = this; if (!e) return; let { animation: t, keyframes: n, duration: r, type: i, ease: o, times: s, } = e; if (t.playState === "idle" || t.playState === "finished") return; if (this.time) { let { motionValue: l, onUpdate: c, onComplete: u, element: f, ...d } = this.options, m = new Vl({ ...d, keyframes: n, duration: r, type: i, ease: o, times: s, isGenerator: !0, }), y = Vn(this.time); l.setWithVelocity(m.sample(y - El).value, m.sample(y).value, El); } let { onStop: a } = this.options; a && a(), this.cancel(); } complete() { let { resolved: e } = this; e && e.animation.finish(); } cancel() { let { resolved: e } = this; e && e.animation.cancel(); } static supports(e) { let { motionValue: t, name: n, repeatDelay: r, repeatType: i, damping: o, type: s, } = e; return ( kP() && n && g0.has(n) && t && t.owner && t.owner.current instanceof HTMLElement && !t.owner.getProps().onUpdate && !r && i !== "mirror" && o !== 0 && s !== "inertia" ); } }; function Vd(e, t) { e.indexOf(t) === -1 && e.push(t); } function Al(e, t) { let n = e.indexOf(t); n > -1 && e.splice(n, 1); } function PP([...e], t, n) { let r = t < 0 ? e.length + t : t; if (r >= 0 && r < e.length) { let i = n < 0 ? e.length + n : n, [o] = e.splice(t, 1); e.splice(i, 0, o); } return e; } var Ad = class { constructor() { this.subscriptions = []; } add(e) { return Vd(this.subscriptions, e), () => Al(this.subscriptions, e); } notify(e, t, n) { let r = this.subscriptions.length; if (r) if (r === 1) this.subscriptions[0](e, t, n); else for (let i = 0; i < r; i++) { let o = this.subscriptions[i]; o && o(e, t, n); } } getSize() { return this.subscriptions.length; } clear() { this.subscriptions.length = 0; } }, Mv = 30, FP = (e) => !isNaN(parseFloat(e)), Es = { current: void 0 }, Dl = class { constructor(e, t = {}) { (this.version = "11.11.7"), (this.canTrackVelocity = null), (this.events = {}), (this.updateAndNotify = (n, r = !0) => { let i = tr.now(); this.updatedAt !== i && this.setPrevFrameValue(), (this.prev = this.current), this.setCurrent(n), this.current !== this.prev && this.events.change && this.events.change.notify(this.current), r && this.events.renderRequest && this.events.renderRequest.notify(this.current); }), (this.hasAnimated = !1), this.setCurrent(e), (this.owner = t.owner); } setCurrent(e) { (this.current = e), (this.updatedAt = tr.now()), this.canTrackVelocity === null && e !== void 0 && (this.canTrackVelocity = FP(this.current)); } setPrevFrameValue(e = this.current) { (this.prevFrameValue = e), (this.prevUpdatedAt = this.updatedAt); } onChange(e) { return this.on("change", e); } on(e, t) { this.events[e] || (this.events[e] = new Ad()); let n = this.events[e].add(t); return e === "change" ? () => { n(), Q.read(() => { this.events.change.getSize() || this.stop(); }); } : n; } clearListeners() { for (let e in this.events) this.events[e].clear(); } attach(e, t) { (this.passiveEffect = e), (this.stopPassiveEffect = t); } set(e, t = !0) { !t || !this.passiveEffect ? this.updateAndNotify(e, t) : this.passiveEffect(e, this.updateAndNotify); } setWithVelocity(e, t, n) { this.set(t), (this.prev = void 0), (this.prevFrameValue = e), (this.prevUpdatedAt = this.updatedAt - n); } jump(e, t = !0) { this.updateAndNotify(e), (this.prev = e), (this.prevUpdatedAt = this.prevFrameValue = void 0), t && this.stop(), this.stopPassiveEffect && this.stopPassiveEffect(); } get() { return Es.current && Es.current.push(this), this.current; } getPrevious() { return this.prev; } getVelocity() { let e = tr.now(); if ( !this.canTrackVelocity || this.prevFrameValue === void 0 || e - this.updatedAt > Mv ) return 0; let t = Math.min(this.updatedAt - this.prevUpdatedAt, Mv); return kd(parseFloat(this.current) - parseFloat(this.prevFrameValue), t); } start(e) { return ( this.stop(), new Promise((t) => { (this.hasAnimated = !0), (this.animation = e(t)), this.events.animationStart && this.events.animationStart.notify(); }).then(() => { this.events.animationComplete && this.events.animationComplete.notify(), this.clearAnimation(); }) ); } stop() { this.animation && (this.animation.stop(), this.events.animationCancel && this.events.animationCancel.notify()), this.clearAnimation(); } isAnimating() { return !!this.animation; } clearAnimation() { delete this.animation; } destroy() { this.clearListeners(), this.stop(), this.stopPassiveEffect && this.stopPassiveEffect(); } }; function Ye(e, t) { return new Dl(e, t); } var zl = (e) => e.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(), _P = "framerAppearId", Bl = "data-" + zl(_P), $e = (e) => !!(e && e.getVelocity); function Lv(e) { let t = [{}, {}]; return ( e?.values.forEach((n, r) => { (t[0][r] = n.get()), (t[1][r] = n.getVelocity()); }), t ); } function Dd(e, t, n, r) { if (typeof t == "function") { let [i, o] = Lv(r); t = t(n !== void 0 ? n : e.custom, i, o); } if ( (typeof t == "string" && (t = e.variants && e.variants[t]), typeof t == "function") ) { let [i, o] = Lv(r); t = t(n !== void 0 ? n : e.custom, i, o); } return t; } function $l(e, t, n) { let r = e.getProps(); return Dd(r, t, n !== void 0 ? n : r.custom, e); } var IP = { type: "spring", stiffness: 500, damping: 25, restSpeed: 10 }, OP = (e) => ({ type: "spring", stiffness: 550, damping: e === 0 ? 2 * Math.sqrt(550) : 30, restSpeed: 10, }), MP = { type: "keyframes", duration: 0.8 }, LP = { type: "keyframes", ease: [0.25, 0.1, 0.35, 1], duration: 0.3 }, VP = (e, { keyframes: t }) => t.length > 2 ? MP : qr.has(e) ? e.startsWith("scale") ? OP(t[1]) : IP : LP; function zd(e, t) { return e ? e[t] || e.default || e : void 0; } var x0 = Ld(() => F.ScrollTimeline !== void 0), w0 = class { constructor(e) { (this.stop = () => this.runAll("stop")), (this.animations = e.filter(Boolean)); } then(e, t) { return Promise.all(this.animations).then(e).catch(t); } getAll(e) { return this.animations[0][e]; } setAll(e, t) { for (let n = 0; n < this.animations.length; n++) this.animations[n][e] = t; } attachTimeline(e, t) { let n = this.animations.map((r) => x0() && r.attachTimeline ? r.attachTimeline(e) : t(r) ); return () => { n.forEach((r, i) => { r && r(), this.animations[i].stop(); }); }; } get time() { return this.getAll("time"); } set time(e) { this.setAll("time", e); } get speed() { return this.getAll("speed"); } set speed(e) { this.setAll("speed", e); } get startTime() { return this.getAll("startTime"); } get duration() { let e = 0; for (let t = 0; t < this.animations.length; t++) e = Math.max(e, this.animations[t].duration); return e; } runAll(e) { this.animations.forEach((t) => t[e]()); } play() { this.runAll("play"); } pause() { this.runAll("pause"); } cancel() { this.runAll("cancel"); } complete() { this.runAll("complete"); } }; function AP({ when: e, delay: t, delayChildren: n, staggerChildren: r, staggerDirection: i, repeat: o, repeatType: s, repeatDelay: a, from: l, elapsed: c, ...u }) { return !!Object.keys(u).length; } var Bd = (e, t, n, r = {}, i, o) => (s) => { let a = zd(r, e) || {}, l = a.delay || r.delay || 0, { elapsed: c = 0 } = r; c = c - Vn(l); let u = { keyframes: Array.isArray(n) ? n : [null, n], ease: "easeOut", velocity: t.getVelocity(), ...a, delay: -c, onUpdate: (d) => { t.set(d), a.onUpdate && a.onUpdate(d); }, onComplete: () => { s(), a.onComplete && a.onComplete(); }, name: e, motionValue: t, element: o ? void 0 : i, }; AP(a) || (u = { ...u, ...VP(e, u) }), u.duration && (u.duration = Vn(u.duration)), u.repeatDelay && (u.repeatDelay = Vn(u.repeatDelay)), u.from !== void 0 && (u.keyframes[0] = u.from); let f = !1; if ( ((u.type === !1 || (u.duration === 0 && !u.repeatDelay)) && ((u.duration = 0), u.delay === 0 && (f = !0)), (Cl.current || _l.skipAnimations) && ((f = !0), (u.duration = 0), (u.delay = 0)), f && !o && t.get() !== void 0) ) { let d = Ll(u.keyframes, a); if (d !== void 0) return ( Q.update(() => { u.onUpdate(d), u.onComplete(); }), new w0([]) ); } return !o && rd.supports(u) ? new rd(u) : new Vl(u); }, id = (e) => Array.isArray(e), DP = (e) => !!(e && typeof e == "object" && e.mix && e.toValue), zP = (e) => (id(e) ? e[e.length - 1] || 0 : e); function BP(e, t, n) { e.hasValue(t) ? e.getValue(t).set(n) : e.addValue(t, Ye(n)); } function $d(e, t) { let n = $l(e, t), { transitionEnd: r = {}, transition: i = {}, ...o } = n || {}; o = { ...o, ...r }; for (let s in o) { let a = zP(o[s]); BP(e, s, a); } } function S0(e) { return e.props[Bl]; } function $P(e) { return !!($e(e) && e.add); } function k0(e) { if (qr.has(e)) return "transform"; if (g0.has(e)) return zl(e); } function od(e, t) { var n; if (!e.applyWillChange) return; let r = e.getValue("willChange"); if ($P(r)) return r.add(t); !(!((n = e.props.style) === null || n === void 0) && n.willChange) && k0(t) && e.setStaticValue("willChange", "transform"); } function NP({ protectedKeys: e, needsAnimating: t }, n) { let r = e.hasOwnProperty(n) && t[n] !== !0; return (t[n] = !1), r; } function Nd(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) { var o; let { transition: s = e.getDefaultTransition(), transitionEnd: a, ...l } = t; r && (s = r); let c = [], u = i && e.animationState && e.animationState.getState()[i]; for (let f in l) { let d = e.getValue( f, (o = e.latestValues[f]) !== null && o !== void 0 ? o : null ), m = l[f]; if (m === void 0 || (u && NP(u, f))) continue; let y = { delay: n, ...zd(s || {}, f) }, g = !1; if (F.MotionHandoffAnimation) { let h = S0(e); if (h) { let p = F.MotionHandoffAnimation(h, f, Q); p !== null && ((y.startTime = p), (g = !0)); } } od(e, f), d.start( Bd(f, d, m, e.shouldReduceMotion && qr.has(f) ? { type: !1 } : y, e, g) ); let b = d.animation; b && c.push(b); } return ( a && Promise.all(c).then(() => { Q.update(() => { a && $d(e, a); }); }), c ); } function sd(e, t, n = {}) { var r; let i = $l( e, t, n.type === "exit" ? (r = e.presenceContext) === null || r === void 0 ? void 0 : r.custom : void 0 ), { transition: o = e.getDefaultTransition() || {} } = i || {}; n.transitionOverride && (o = n.transitionOverride); let s = i ? () => Promise.all(Nd(e, i, n)) : () => Promise.resolve(), a = e.variantChildren && e.variantChildren.size ? (c = 0) => { let { delayChildren: u = 0, staggerChildren: f, staggerDirection: d, } = o; return jP(e, t, u + c, f, d, n); } : () => Promise.resolve(), { when: l } = o; if (l) { let [c, u] = l === "beforeChildren" ? [s, a] : [a, s]; return c().then(() => u()); } else return Promise.all([s(), a(n.delay)]); } function jP(e, t, n = 0, r = 0, i = 1, o) { let s = [], a = (e.variantChildren.size - 1) * r, l = i === 1 ? (c = 0) => c * r : (c = 0) => a - c * r; return ( Array.from(e.variantChildren) .sort(HP) .forEach((c, u) => { c.notify("AnimationStart", t), s.push( sd(c, t, { ...o, delay: n + l(u) }).then(() => c.notify("AnimationComplete", t) ) ); }), Promise.all(s) ); } function HP(e, t) { return e.sortNodePosition(t); } function jd(e, t, n = {}) { e.notify("AnimationStart", t); let r; if (Array.isArray(t)) { let i = t.map((o) => sd(e, o, n)); r = Promise.all(i); } else if (typeof t == "string") r = sd(e, t, n); else { let i = typeof t == "function" ? $l(e, t, n.custom) : t; r = Promise.all(Nd(e, i, n)); } return r.then(() => { e.notify("AnimationComplete", t); }); } function Ms(e) { return e !== null && typeof e == "object" && typeof e.start == "function"; } function C0(e, t) { if (!Array.isArray(t)) return !1; let n = t.length; if (n !== e.length) return !1; for (let r = 0; r < n; r++) if (t[r] !== e[r]) return !1; return !0; } function Ls(e) { return typeof e == "string" || Array.isArray(e); } var Hd = [ "animate", "whileInView", "whileFocus", "whileHover", "whileTap", "whileDrag", "exit", ], Wd = ["initial", ...Hd], WP = Wd.length; function T0(e) { if (!e) return; if (!e.isControllingVariants) { let n = e.parent ? T0(e.parent) || {} : {}; return e.props.initial !== void 0 && (n.initial = e.props.initial), n; } let t = {}; for (let n = 0; n < WP; n++) { let r = Wd[n], i = e.props[r]; (Ls(i) || i === !1) && (t[r] = i); } return t; } var UP = [...Hd].reverse(), GP = Hd.length; function qP(e) { return (t) => Promise.all(t.map(({ animation: n, options: r }) => jd(e, n, r))); } function XP(e) { let t = qP(e), n = Vv(), r = !0, i = (l) => (c, u) => { var f; let d = $l( e, u, l === "exit" ? (f = e.presenceContext) === null || f === void 0 ? void 0 : f.custom : void 0 ); if (d) { let { transition: m, transitionEnd: y, ...g } = d; c = { ...c, ...g, ...y }; } return c; }; function o(l) { t = l(e); } function s(l) { let { props: c } = e, u = T0(e.parent) || {}, f = [], d = new Set(), m = {}, y = 1 / 0; for (let b = 0; b < GP; b++) { let h = UP[b], p = n[h], v = c[h] !== void 0 ? c[h] : u[h], x = Ls(v), k = h === l ? p.isActive : null; k === !1 && (y = b); let S = v === u[h] && v !== c[h] && x; if ( (S && r && e.manuallyAnimateOnMount && (S = !1), (p.protectedKeys = { ...m }), (!p.isActive && k === null) || (!v && !p.prevProp) || Ms(v) || typeof v == "boolean") ) continue; let T = YP(p.prevProp, v), R = T || (h === l && p.isActive && !S && x) || (b > y && x), O = !1, I = Array.isArray(v) ? v : [v], j = I.reduce(i(h), {}); k === !1 && (j = {}); let { prevResolvedValues: z = {} } = p, $ = { ...z, ...j }, ie = (U) => { (R = !0), d.has(U) && ((O = !0), d.delete(U)), (p.needsAnimating[U] = !0); let J = e.getValue(U); J && (J.liveStyle = !1); }; for (let U in $) { let J = j[U], ae = z[U]; if (m.hasOwnProperty(U)) continue; let W = !1; id(J) && id(ae) ? (W = !C0(J, ae)) : (W = J !== ae), W ? J != null ? ie(U) : d.add(U) : J !== void 0 && d.has(U) ? ie(U) : (p.protectedKeys[U] = !0); } (p.prevProp = v), (p.prevResolvedValues = j), p.isActive && (m = { ...m, ...j }), r && e.blockInitialAnimation && (R = !1), R && (!(S && T) || O) && f.push(...I.map((U) => ({ animation: U, options: { type: h } }))); } if (d.size) { let b = {}; d.forEach((h) => { let p = e.getBaseTarget(h), v = e.getValue(h); v && (v.liveStyle = !0), (b[h] = p ?? null); }), f.push({ animation: b }); } let g = !!f.length; return ( r && (c.initial === !1 || c.initial === c.animate) && !e.manuallyAnimateOnMount && (g = !1), (r = !1), g ? t(f) : Promise.resolve() ); } function a(l, c) { var u; if (n[l].isActive === c) return Promise.resolve(); (u = e.variantChildren) === null || u === void 0 || u.forEach((d) => { var m; return (m = d.animationState) === null || m === void 0 ? void 0 : m.setActive(l, c); }), (n[l].isActive = c); let f = s(l); for (let d in n) n[d].protectedKeys = {}; return f; } return { animateChanges: s, setActive: a, setAnimateFunction: o, getState: () => n, reset: () => { (n = Vv()), (r = !0); }, }; } function YP(e, t) { return typeof t == "string" ? t !== e : Array.isArray(t) ? !C0(t, e) : !1; } function Ei(e = !1) { return { isActive: e, protectedKeys: {}, needsAnimating: {}, prevResolvedValues: {}, }; } function Vv() { return { animate: Ei(!0), whileInView: Ei(), whileHover: Ei(), whileTap: Ei(), whileDrag: Ei(), whileFocus: Ei(), exit: Ei(), }; } var Xr = class { constructor(e) { (this.isMounted = !1), (this.node = e); } update() {} }, KP = class extends Xr { constructor(e) { super(e), e.animationState || (e.animationState = XP(e)); } updateAnimationControlsSubscription() { let { animate: e } = this.node.getProps(); Ms(e) && (this.unmountControls = e.subscribe(this.node)); } mount() { this.updateAnimationControlsSubscription(); } update() { let { animate: e } = this.node.getProps(), { animate: t } = this.node.prevProps || {}; e !== t && this.updateAnimationControlsSubscription(); } unmount() { var e; this.node.animationState.reset(), (e = this.unmountControls) === null || e === void 0 || e.call(this); } }, QP = 0, ZP = class extends Xr { constructor() { super(...arguments), (this.id = QP++); } update() { if (!this.node.presenceContext) return; let { isPresent: e, onExitComplete: t } = this.node.presenceContext, { isPresent: n } = this.node.prevPresenceContext || {}; if (!this.node.animationState || e === n) return; let r = this.node.animationState.setActive("exit", !e); t && !e && r.then(() => t(this.id)); } mount() { let { register: e } = this.node.presenceContext || {}; e && (this.unmount = e(this.id)); } unmount() {} }, Nl = { animation: { Feature: KP }, exit: { Feature: ZP } }, E0 = (e) => e.pointerType === "mouse" ? typeof e.button != "number" || e.button <= 0 : e.isPrimary !== !1; function jl(e, t = "page") { return { point: { x: e[`${t}X`], y: e[`${t}Y`] } }; } var R0 = (e) => (t) => E0(t) && e(t, jl(t)); function kr(e, t, n, r = { passive: !0 }) { return e.addEventListener(t, n, r), () => e.removeEventListener(t, n); } function nr(e, t, n, r) { return kr(e, t, R0(n), r); } var ad = (e, t) => Math.abs(e - t); function P0(e, t) { let n = ad(e.x, t.x), r = ad(e.y, t.y); return Math.sqrt(n ** 2 + r ** 2); } function F0(e) { let t = null; return () => { let n = () => { t = null; }; return t === null ? ((t = e), n) : !1; }; } var Av = F0("dragHorizontal"), Dv = F0("dragVertical"); function _0(e) { let t = !1; if (e === "y") t = Dv(); else if (e === "x") t = Av(); else { let n = Av(), r = Dv(); n && r ? (t = () => { n(), r(); }) : (n && n(), r && r()); } return t; } function Ud() { let e = _0(!0); return e ? (e(), !1) : !0; } var I0 = 1e-4, JP = 1 - I0, eF = 1 + I0, O0 = 0.01, tF = 0 - O0, nF = 0 + O0; function Gt(e) { return e.max - e.min; } function rF(e, t, n) { return Math.abs(e - t) <= n; } function zv(e, t, n, r = 0.5) { (e.origin = r), (e.originPoint = Oe(t.min, t.max, e.origin)), (e.scale = Gt(n) / Gt(t)), (e.translate = Oe(n.min, n.max, e.origin) - e.originPoint), ((e.scale >= JP && e.scale <= eF) || isNaN(e.scale)) && (e.scale = 1), ((e.translate >= tF && e.translate <= nF) || isNaN(e.translate)) && (e.translate = 0); } function Rs(e, t, n, r) { zv(e.x, t.x, n.x, r ? r.originX : void 0), zv(e.y, t.y, n.y, r ? r.originY : void 0); } function Bv(e, t, n) { (e.min = n.min + t.min), (e.max = e.min + Gt(t)); } function iF(e, t, n) { Bv(e.x, t.x, n.x), Bv(e.y, t.y, n.y); } function $v(e, t, n) { (e.min = t.min - n.min), (e.max = e.min + Gt(t)); } function Ps(e, t, n) { $v(e.x, t.x, n.x), $v(e.y, t.y, n.y); } var Nv = () => ({ translate: 0, scale: 1, origin: 0, originPoint: 0 }), ho = () => ({ x: Nv(), y: Nv() }), jv = () => ({ min: 0, max: 0 }), He = () => ({ x: jv(), y: jv() }), Co = be(null); function Gd() { let e = A(Co); if (e === null) return [!0, null]; let { isPresent: t, onExitComplete: n, register: r } = e, i = Ti(); N(() => r(i), []); let o = K(() => n && n(i), [i, n]); return !t && n ? [!1, o] : [!0]; } var Vs = be({}), Hl = be({}), Rl = {}; function qd(e) { Object.assign(Rl, e); } var oF = (e, t) => e.depth - t.depth, M0 = class { constructor() { (this.children = []), (this.isDirty = !1); } add(e) { Vd(this.children, e), (this.isDirty = !0); } remove(e) { Al(this.children, e), (this.isDirty = !0); } forEach(e) { this.isDirty && this.children.sort(oF), (this.isDirty = !1), this.children.forEach(e); } }; function Rt(e) { let t = $e(e) ? e.get() : e; return DP(t) ? t.toValue() : t; } function L0(e, t) { let n = tr.now(), r = ({ timestamp: i }) => { let o = i - n; o >= t && (Dt(r), e(o - t)); }; return Q.read(r, !0), () => Dt(r); } var Rr = be({ transformPagePoint: (e) => e, isStatic: !1, reducedMotion: "never", }), Bs = be({}), Wl = typeof F < "u", Yr = Wl ? ze : N, V0 = be({ strict: !1 }), { schedule: Xd, cancel: ZN } = Hy(queueMicrotask, !1); function po(e) { return ( e && typeof e == "object" && Object.prototype.hasOwnProperty.call(e, "current") ); } function sF(e, t, n, r, i) { var o, s; let { visualElement: a } = A(Bs), l = A(V0), c = A(Co), u = A(Rr).reducedMotion, f = V(); (r = r || l.renderer), !f.current && r && (f.current = r(e, { visualState: t, parent: a, props: n, presenceContext: c, blockInitialAnimation: c ? c.initial === !1 : !1, reducedMotionConfig: u, })); let d = f.current, m = A(Hl); d && !d.projection && i && (d.type === "html" || d.type === "svg") && aF(f.current, n, i, m), ft(() => { d && d.update(n, c); }); let y = n[Bl], g = V( !!y && !( !((o = F.MotionHandoffIsComplete) === null || o === void 0) && o.call(F, y) ) && ((s = F.MotionHasOptimisedAnimation) === null || s === void 0 ? void 0 : s.call(F, y)) ); return ( Yr(() => { d && ((F.MotionIsMounted = !0), d.updateFeatures(), Xd.render(d.render), g.current && d.animationState && d.animationState.animateChanges()); }), N(() => { d && (!g.current && d.animationState && d.animationState.animateChanges(), g.current && (queueMicrotask(() => { var b; (b = F.MotionHandoffMarkAsComplete) === null || b === void 0 || b.call(F, y); }), (g.current = !1))); }), d ); } function aF(e, t, n, r) { let { layoutId: i, layout: o, drag: s, dragConstraints: a, layoutScroll: l, layoutRoot: c, } = t; (e.projection = new n( e.latestValues, t["data-framer-portal-id"] ? void 0 : A0(e.parent) )), e.projection.setOptions({ layoutId: i, layout: o, alwaysMeasureLayout: !!s || (a && po(a)), visualElement: e, animationType: typeof o == "string" ? o : "both", initialPromotionConfig: r, layoutScroll: l, layoutRoot: c, }); } function A0(e) { if (e) return e.options.allowProjection !== !1 ? e.projection : A0(e.parent); } function lF(e, t, n) { return K( (r) => { r && e.mount && e.mount(r), t && (r ? t.mount(r) : t.unmount()), n && (typeof n == "function" ? n(r) : po(n) && (n.current = r)); }, [t] ); } function Ul(e) { return Ms(e.animate) || Wd.some((t) => Ls(e[t])); } function D0(e) { return !!(Ul(e) || e.variants); } function cF(e, t) { if (Ul(e)) { let { initial: n, animate: r } = e; return { initial: n === !1 || Ls(n) ? n : void 0, animate: Ls(r) ? r : void 0, }; } return e.inherit !== !1 ? t : {}; } function uF(e) { let { initial: t, animate: n } = cF(e, A(Bs)); return oe(() => ({ initial: t, animate: n }), [Hv(t), Hv(n)]); } function Hv(e) { return Array.isArray(e) ? e.join(" ") : e; } var Wv = { animation: [ "animate", "variants", "whileHover", "whileTap", "exit", "whileInView", "whileFocus", "whileDrag", ], exit: ["exit"], drag: ["drag", "dragControls"], focus: ["whileFocus"], hover: ["whileHover", "onHoverStart", "onHoverEnd"], tap: ["whileTap", "onTap", "onTapStart", "onTapCancel"], pan: ["onPan", "onPanStart", "onPanSessionStart", "onPanEnd"], inView: ["whileInView", "onViewportEnter", "onViewportLeave"], layout: ["layout", "layoutId"], }, yo = {}; for (let e in Wv) yo[e] = { isEnabled: (t) => Wv[e].some((n) => !!t[n]) }; function fF(e) { for (let t in e) yo[t] = { ...yo[t], ...e[t] }; } var Yd = Symbol.for("motionComponentSymbol"); function z0({ preloadedFeatures: e, createVisualElement: t, useRender: n, useVisualState: r, Component: i, }) { e && fF(e); function o(a, l) { let c, u = { ...A(Rr), ...a, layoutId: dF(a) }, { isStatic: f } = u, d = uF(a), m = r(a, f); if (!f && Wl) { hF(u, e); let y = pF(u); (c = y.MeasureLayout), (d.visualElement = sF(i, m, u, t, y.ProjectionNode)); } return he(Bs.Provider, { value: d, children: [ c && d.visualElement ? C(c, { visualElement: d.visualElement, ...u }) : null, n(i, a, lF(m, d.visualElement, l), m, f, d.visualElement), ], }); } let s = De(o); return (s[Yd] = i), s; } function dF({ layoutId: e }) { let t = A(Vs).id; return t && e !== void 0 ? t + "-" + e : e; } function hF(e, t) { let n = A(V0).strict; } function pF(e) { let { drag: t, layout: n } = yo; if (!t && !n) return {}; let r = { ...t, ...n }; return { MeasureLayout: t?.isEnabled(e) || n?.isEnabled(e) ? r.MeasureLayout : void 0, ProjectionNode: r.ProjectionNode, }; } function ir(e) { let t = V(null); return t.current === null && (t.current = e()), t.current; } function mF( { applyWillChange: e = !1, scrapeMotionValuesFromProps: t, createRenderState: n, onMount: r, }, i, o, s, a ) { let l = { latestValues: gF(i, o, s, a ? !1 : e, t), renderState: n() }; return r && (l.mount = (c) => r(i, c, l)), l; } var Gl = (e) => (t, n) => { let r = A(Bs), i = A(Co), o = () => mF(e, t, r, i, n); return n ? o() : ir(o); }; function Uv(e, t, n) { let r = Array.isArray(t) ? t : [t]; for (let i = 0; i < r.length; i++) { let o = Dd(e, r[i]); if (o) { let { transitionEnd: s, transition: a, ...l } = o; n(l, s); } } } function gF(e, t, n, r, i) { var o; let s = {}, a = r && ((o = e.style) === null || o === void 0 ? void 0 : o.willChange) === void 0, l = i(e, {}); for (let g in l) s[g] = Rt(l[g]); let { initial: c, animate: u } = e, f = Ul(e), d = D0(e); t && d && !f && e.inherit !== !1 && (c === void 0 && (c = t.initial), u === void 0 && (u = t.animate)); let m = n ? n.initial === !1 : !1; m = m || c === !1; let y = m ? u : c; return ( y && typeof y != "boolean" && !Ms(y) && Uv(e, y, (g, b) => { for (let h in g) { let p = g[h]; if (Array.isArray(p)) { let v = m ? p.length - 1 : 0; p = p[v]; } p !== null && (s[h] = p); } for (let h in b) s[h] = b[h]; }), a && u && c !== !1 && !Ms(u) && Uv(e, u, (g) => { for (let b in g) if (k0(b)) { s.willChange = "transform"; return; } }), s ); } var B0 = (e, t) => (t && typeof e == "number" ? t.transform(e) : e), vF = { x: "translateX", y: "translateY", z: "translateZ", transformPerspective: "perspective", }, yF = zs.length; function $0(e, t, n) { let r = "", i = !0; for (let o = 0; o < yF; o++) { let s = zs[o], a = e[s]; if (a === void 0) continue; let l = !0; if ( (typeof a == "number" ? (l = a === (s.startsWith("scale") ? 1 : 0)) : (l = parseFloat(a) === 0), !l || n) ) { let c = B0(a, Od[s]); if (!l) { i = !1; let u = vF[s] || s; r += `${u}(${c}) `; } n && (t[s] = c); } } return (r = r.trim()), n ? (r = n(t, i ? "" : r)) : i && (r = "none"), r; } var bF = new Set([ "animate", "exit", "variants", "initial", "style", "values", "variants", "transition", "transformTemplate", "custom", "inherit", "onBeforeLayoutMeasure", "onAnimationStart", "onAnimationComplete", "onUpdate", "onDragStart", "onDrag", "onDragEnd", "onMeasureDragConstraints", "onDirectionLock", "onDragTransitionEnd", "_dragX", "_dragY", "onHoverStart", "onHoverEnd", "onViewportEnter", "onViewportLeave", "globalTapTarget", "ignoreStrict", "viewport", ]); function bo(e) { return ( e.startsWith("while") || (e.startsWith("drag") && e !== "draggable") || e.startsWith("layout") || e.startsWith("onTap") || e.startsWith("onPan") || e.startsWith("onLayout") || bF.has(e) ); } var N0 = (e) => !bo(e); function j0(e) { e && (N0 = (t) => (t.startsWith("on") ? !bo(t) : e(t))); } try { j0(iR().default); } catch {} function H0(e, t, n) { let r = {}; for (let i in e) (i === "values" && typeof e.values == "object") || ((N0(i) || (n === !0 && bo(i)) || (!t && !bo(i)) || (e.draggable && i.startsWith("onDrag"))) && (r[i] = e[i])); return r; } var rr = new WeakMap(), Pl = { current: null }, Kd = { current: !1 }; function W0() { if (((Kd.current = !0), !!Wl)) if (F.matchMedia) { let e = F.matchMedia("(prefers-reduced-motion)"), t = () => (Pl.current = e.matches); e.addListener(t), t(); } else Pl.current = !1; } function xF(e, t, n) { for (let r in t) { let i = t[r], o = n[r]; if ($e(i)) e.addValue(r, i); else if ($e(o)) e.addValue(r, Ye(i, { owner: e })); else if (o !== i) if (e.hasValue(r)) { let s = e.getValue(r); s.liveStyle === !0 ? s.jump(i) : s.hasAnimated || s.set(i); } else { let s = e.getStaticValue(r); e.addValue(r, Ye(s !== void 0 ? s : i, { owner: e })); } } for (let r in n) t[r] === void 0 && e.removeValue(r); return t; } var wF = [...h0, xt, Tr], SF = (e) => wF.find(d0(e)), Gv = [ "AnimationStart", "AnimationComplete", "Update", "BeforeLayoutMeasure", "LayoutMeasure", "LayoutAnimationStart", "LayoutAnimationComplete", ], Qd = class { scrapeMotionValuesFromProps(e, t, n) { return {}; } constructor( { parent: e, props: t, presenceContext: n, reducedMotionConfig: r, blockInitialAnimation: i, visualState: o, }, s = {} ) { (this.applyWillChange = !1), (this.current = null), (this.children = new Set()), (this.isVariantNode = !1), (this.isControllingVariants = !1), (this.shouldReduceMotion = null), (this.values = new Map()), (this.KeyframeResolver = _d), (this.features = {}), (this.valueSubscriptions = new Map()), (this.prevMotionValues = {}), (this.events = {}), (this.propEventSubscriptions = {}), (this.notifyUpdate = () => this.notify("Update", this.latestValues)), (this.render = () => { this.current && (this.triggerBuild(), this.renderInstance( this.current, this.renderState, this.props.style, this.projection )); }), (this.renderScheduledAt = 0), (this.scheduleRender = () => { let f = tr.now(); this.renderScheduledAt < f && ((this.renderScheduledAt = f), Q.render(this.render, !1, !0)); }); let { latestValues: a, renderState: l } = o; (this.latestValues = a), (this.baseTarget = { ...a }), (this.initialValues = t.initial ? { ...a } : {}), (this.renderState = l), (this.parent = e), (this.props = t), (this.presenceContext = n), (this.depth = e ? e.depth + 1 : 0), (this.reducedMotionConfig = r), (this.options = s), (this.blockInitialAnimation = !!i), (this.isControllingVariants = Ul(t)), (this.isVariantNode = D0(t)), this.isVariantNode && (this.variantChildren = new Set()), (this.manuallyAnimateOnMount = !!(e && e.current)); let { willChange: c, ...u } = this.scrapeMotionValuesFromProps( t, {}, this ); for (let f in u) { let d = u[f]; a[f] !== void 0 && $e(d) && d.set(a[f], !1); } } mount(e) { (this.current = e), rr.set(e, this), this.projection && !this.projection.instance && this.projection.mount(e), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((t, n) => this.bindToMotionValue(n, t)), Kd.current || W0(), (this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 : Pl.current), this.parent && this.parent.children.add(this), this.update(this.props, this.presenceContext); } unmount() { rr.delete(this.current), this.projection && this.projection.unmount(), Dt(this.notifyUpdate), Dt(this.render), this.valueSubscriptions.forEach((e) => e()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent && this.parent.children.delete(this); for (let e in this.events) this.events[e].clear(); for (let e in this.features) { let t = this.features[e]; t && (t.unmount(), (t.isMounted = !1)); } this.current = null; } bindToMotionValue(e, t) { this.valueSubscriptions.has(e) && this.valueSubscriptions.get(e)(); let n = qr.has(e), r = t.on("change", (s) => { (this.latestValues[e] = s), this.props.onUpdate && Q.preRender(this.notifyUpdate), n && this.projection && (this.projection.isTransformDirty = !0); }), i = t.on("renderRequest", this.scheduleRender), o; F.MotionCheckAppearSync && (o = F.MotionCheckAppearSync(this, e, t)), this.valueSubscriptions.set(e, () => { r(), i(), o && o(), t.owner && t.stop(); }); } sortNodePosition(e) { return !this.current || !this.sortInstanceNodePosition || this.type !== e.type ? 0 : this.sortInstanceNodePosition(this.current, e.current); } updateFeatures() { let e = "animation"; for (e in yo) { let t = yo[e]; if (!t) continue; let { isEnabled: n, Feature: r } = t; if ( (!this.features[e] && r && n(this.props) && (this.features[e] = new r(this)), this.features[e]) ) { let i = this.features[e]; i.isMounted ? i.update() : (i.mount(), (i.isMounted = !0)); } } } triggerBuild() { this.build(this.renderState, this.latestValues, this.props); } measureViewportBox() { return this.current ? this.measureInstanceViewportBox(this.current, this.props) : He(); } getStaticValue(e) { return this.latestValues[e]; } setStaticValue(e, t) { this.latestValues[e] = t; } update(e, t) { (e.transformTemplate || this.props.transformTemplate) && this.scheduleRender(), (this.prevProps = this.props), (this.props = e), (this.prevPresenceContext = this.presenceContext), (this.presenceContext = t); for (let n = 0; n < Gv.length; n++) { let r = Gv[n]; this.propEventSubscriptions[r] && (this.propEventSubscriptions[r](), delete this.propEventSubscriptions[r]); let i = "on" + r, o = e[i]; o && (this.propEventSubscriptions[r] = this.on(r, o)); } (this.prevMotionValues = xF( this, this.scrapeMotionValuesFromProps(e, this.prevProps, this), this.prevMotionValues )), this.handleChildMotionValue && this.handleChildMotionValue(); } getProps() { return this.props; } getVariant(e) { return this.props.variants ? this.props.variants[e] : void 0; } getDefaultTransition() { return this.props.transition; } getTransformPagePoint() { return this.props.transformPagePoint; } getClosestVariantNode() { return this.isVariantNode ? this : this.parent ? this.parent.getClosestVariantNode() : void 0; } addVariantChild(e) { let t = this.getClosestVariantNode(); if (t) return ( t.variantChildren && t.variantChildren.add(e), () => t.variantChildren.delete(e) ); } addValue(e, t) { let n = this.values.get(e); t !== n && (n && this.removeValue(e), this.bindToMotionValue(e, t), this.values.set(e, t), (this.latestValues[e] = t.get())); } removeValue(e) { this.values.delete(e); let t = this.valueSubscriptions.get(e); t && (t(), this.valueSubscriptions.delete(e)), delete this.latestValues[e], this.removeValueFromRenderState(e, this.renderState); } hasValue(e) { return this.values.has(e); } getValue(e, t) { if (this.props.values && this.props.values[e]) return this.props.values[e]; let n = this.values.get(e); return ( n === void 0 && t !== void 0 && ((n = Ye(t === null ? void 0 : t, { owner: this })), this.addValue(e, n)), n ); } readValue(e, t) { var n; let r = this.latestValues[e] !== void 0 || !this.current ? this.latestValues[e] : (n = this.getBaseTargetFromProps(this.props, e)) !== null && n !== void 0 ? n : this.readValueFromInstance(this.current, e, this.options); return ( r != null && (typeof r == "string" && (u0(r) || c0(r)) ? (r = parseFloat(r)) : !SF(r) && Tr.test(t) && (r = p0(e, t)), this.setBaseTarget(e, $e(r) ? r.get() : r)), $e(r) ? r.get() : r ); } setBaseTarget(e, t) { this.baseTarget[e] = t; } getBaseTarget(e) { var t; let { initial: n } = this.props, r; if (typeof n == "string" || typeof n == "object") { let o = Dd( this.props, n, (t = this.presenceContext) === null || t === void 0 ? void 0 : t.custom ); o && (r = o[e]); } if (n && r !== void 0) return r; let i = this.getBaseTargetFromProps(this.props, e); return i !== void 0 && !$e(i) ? i : this.initialValues[e] !== void 0 && r === void 0 ? void 0 : this.baseTarget[e]; } on(e, t) { return ( this.events[e] || (this.events[e] = new Ad()), this.events[e].add(t) ); } notify(e, ...t) { this.events[e] && this.events[e].notify(...t); } }; function kF(e) { if (typeof Proxy > "u") return e; let t = new Map(), n = (...r) => e(...r); return new Proxy(n, { get: (r, i) => i === "create" ? e : (t.has(i) || t.set(i, e(i)), t.get(i)), }); } var U0 = class { constructor( e, t, { transformPagePoint: n, contextWindow: r, dragSnapToOrigin: i = !1 } = {} ) { if ( ((this.startEvent = null), (this.lastMoveEvent = null), (this.lastMoveEventInfo = null), (this.handlers = {}), (this.contextWindow = F), (this.updatePoint = () => { if (!(this.lastMoveEvent && this.lastMoveEventInfo)) return; let u = Bf(this.lastMoveEventInfo, this.history), f = this.startEvent !== null, d = P0(u.offset, { x: 0, y: 0 }) >= 3; if (!f && !d) return; let { point: m } = u, { timestamp: y } = Xe; this.history.push({ ...m, timestamp: y }); let { onStart: g, onMove: b } = this.handlers; f || (g && g(this.lastMoveEvent, u), (this.startEvent = this.lastMoveEvent)), b && b(this.lastMoveEvent, u); }), (this.handlePointerMove = (u, f) => { (this.lastMoveEvent = u), (this.lastMoveEventInfo = zf(f, this.transformPagePoint)), Q.update(this.updatePoint, !0); }), (this.handlePointerUp = (u, f) => { this.end(); let { onEnd: d, onSessionEnd: m, resumeAnimation: y } = this.handlers; if ( (this.dragSnapToOrigin && y && y(), !(this.lastMoveEvent && this.lastMoveEventInfo)) ) return; let g = Bf( u.type === "pointercancel" ? this.lastMoveEventInfo : zf(f, this.transformPagePoint), this.history ); this.startEvent && d && d(u, g), m && m(u, g); }), !E0(e)) ) return; (this.dragSnapToOrigin = i), (this.handlers = t), (this.transformPagePoint = n), (this.contextWindow = r || F); let o = jl(e), s = zf(o, this.transformPagePoint), { point: a } = s, { timestamp: l } = Xe; this.history = [{ ...a, timestamp: l }]; let { onSessionStart: c } = t; c && c(e, Bf(s, this.history)), (this.removeListeners = er( nr(this.contextWindow, "pointermove", this.handlePointerMove), nr(this.contextWindow, "pointerup", this.handlePointerUp), nr(this.contextWindow, "pointercancel", this.handlePointerUp) )); } updateHandlers(e) { this.handlers = e; } end() { this.removeListeners && this.removeListeners(), Dt(this.updatePoint); } }; function zf(e, t) { return t ? { point: t(e.point) } : e; } function qv(e, t) { return { x: e.x - t.x, y: e.y - t.y }; } function Bf({ point: e }, t) { return { point: e, delta: qv(e, G0(t)), offset: qv(e, CF(t)), velocity: TF(t, 0.1), }; } function CF(e) { return e[0]; } function G0(e) { return e[e.length - 1]; } function TF(e, t) { if (e.length < 2) return { x: 0, y: 0 }; let n = e.length - 1, r = null, i = G0(e); for (; n >= 0 && ((r = e[n]), !(i.timestamp - r.timestamp > Vn(t))); ) n--; if (!r) return { x: 0, y: 0 }; let o = Jn(i.timestamp - r.timestamp); if (o === 0) return { x: 0, y: 0 }; let s = { x: (i.x - r.x) / o, y: (i.y - r.y) / o }; return s.x === 1 / 0 && (s.x = 0), s.y === 1 / 0 && (s.y = 0), s; } function EF(e, { min: t, max: n }, r) { return ( t !== void 0 && e < t ? (e = r ? Oe(t, e, r.min) : Math.max(e, t)) : n !== void 0 && e > n && (e = r ? Oe(n, e, r.max) : Math.min(e, n)), e ); } function Xv(e, t, n) { return { min: t !== void 0 ? e.min + t : void 0, max: n !== void 0 ? e.max + n - (e.max - e.min) : void 0, }; } function RF(e, { top: t, left: n, bottom: r, right: i }) { return { x: Xv(e.x, n, i), y: Xv(e.y, t, r) }; } function Yv(e, t) { let n = t.min - e.min, r = t.max - e.max; return t.max - t.min < e.max - e.min && ([n, r] = [r, n]), { min: n, max: r }; } function PF(e, t) { return { x: Yv(e.x, t.x), y: Yv(e.y, t.y) }; } function FF(e, t) { let n = 0.5, r = Gt(e), i = Gt(t); return ( i > r ? (n = Er(t.min, t.max - r, e.min)) : r > i && (n = Er(e.min, e.max - i, t.min)), Cr(0, 1, n) ); } function _F(e, t) { let n = {}; return ( t.min !== void 0 && (n.min = t.min - e.min), t.max !== void 0 && (n.max = t.max - e.min), n ); } var ld = 0.35; function IF(e = ld) { return ( e === !1 ? (e = 0) : e === !0 && (e = ld), { x: Kv(e, "left", "right"), y: Kv(e, "top", "bottom") } ); } function Kv(e, t, n) { return { min: Qv(e, t), max: Qv(e, n) }; } function Qv(e, t) { return typeof e == "number" ? e : e[t] || 0; } function Sn(e) { return [e("x"), e("y")]; } function q0({ top: e, left: t, right: n, bottom: r }) { return { x: { min: t, max: n }, y: { min: e, max: r } }; } function OF({ x: e, y: t }) { return { top: t.min, right: e.max, bottom: t.max, left: e.min }; } function MF(e, t) { if (!t) return e; let n = t({ x: e.left, y: e.top }), r = t({ x: e.right, y: e.bottom }); return { top: n.y, left: n.x, bottom: r.y, right: r.x }; } function $f(e) { return e === void 0 || e === 1; } function cd({ scale: e, scaleX: t, scaleY: n }) { return !$f(e) || !$f(t) || !$f(n); } function Ri(e) { return ( cd(e) || X0(e) || e.z || e.rotate || e.rotateX || e.rotateY || e.skewX || e.skewY ); } function X0(e) { return Zv(e.x) || Zv(e.y); } function Zv(e) { return e && e !== "0%"; } function Fl(e, t, n) { let r = e - n, i = t * r; return n + i; } function Jv(e, t, n, r, i) { return i !== void 0 && (e = Fl(e, i, r)), Fl(e, n, r) + t; } function ud(e, t = 0, n = 1, r, i) { (e.min = Jv(e.min, t, n, r, i)), (e.max = Jv(e.max, t, n, r, i)); } function Y0(e, { x: t, y: n }) { ud(e.x, t.translate, t.scale, t.originPoint), ud(e.y, n.translate, n.scale, n.originPoint); } var ey = 0.999999999999, ty = 1.0000000000001; function LF(e, t, n, r = !1) { let i = n.length; if (!i) return; t.x = t.y = 1; let o, s; for (let a = 0; a < i; a++) { (o = n[a]), (s = o.projectionDelta); let { visualElement: l } = o.options; (l && l.props.style && l.props.style.display === "contents") || (r && o.options.layoutScroll && o.scroll && o !== o.root && go(e, { x: -o.scroll.offset.x, y: -o.scroll.offset.y }), s && ((t.x *= s.x.scale), (t.y *= s.y.scale), Y0(e, s)), r && Ri(o.latestValues) && go(e, o.latestValues)); } t.x < ty && t.x > ey && (t.x = 1), t.y < ty && t.y > ey && (t.y = 1); } function mo(e, t) { (e.min = e.min + t), (e.max = e.max + t); } function ny(e, t, n, r, i = 0.5) { let o = Oe(e.min, e.max, i); ud(e, t, n, o, r); } function go(e, t) { ny(e.x, t.x, t.scaleX, t.scale, t.originX), ny(e.y, t.y, t.scaleY, t.scale, t.originY); } function K0(e, t) { return q0(MF(e.getBoundingClientRect(), t)); } function VF(e, t, n) { let r = K0(e, n), { scroll: i } = t; return i && (mo(r.x, i.offset.x), mo(r.y, i.offset.y)), r; } var Q0 = ({ current: e }) => (e ? e.ownerDocument.defaultView : null), AF = new WeakMap(), DF = class { constructor(e) { (this.openGlobalLock = null), (this.isDragging = !1), (this.currentDirection = null), (this.originPoint = { x: 0, y: 0 }), (this.constraints = !1), (this.hasMutatedConstraints = !1), (this.elastic = He()), (this.visualElement = e); } start(e, { snapToCursor: t = !1 } = {}) { let { presenceContext: n } = this.visualElement; if (n && n.isPresent === !1) return; let r = (c) => { let { dragSnapToOrigin: u } = this.getProps(); u ? this.pauseAnimation() : this.stopAnimation(), t && this.snapToCursor(jl(c, "page").point); }, i = (c, u) => { let { drag: f, dragPropagation: d, onDragStart: m } = this.getProps(); if ( f && !d && (this.openGlobalLock && this.openGlobalLock(), (this.openGlobalLock = _0(f)), !this.openGlobalLock) ) return; (this.isDragging = !0), (this.currentDirection = null), this.resolveConstraints(), this.visualElement.projection && ((this.visualElement.projection.isAnimationBlocked = !0), (this.visualElement.projection.target = void 0)), Sn((g) => { let b = this.getAxisMotionValue(g).get() || 0; if (Zn.test(b)) { let { projection: h } = this.visualElement; if (h && h.layout) { let p = h.layout.layoutBox[g]; p && (b = Gt(p) * (parseFloat(b) / 100)); } } this.originPoint[g] = b; }), m && Q.postRender(() => m(c, u)), od(this.visualElement, "transform"); let { animationState: y } = this.visualElement; y && y.setActive("whileDrag", !0); }, o = (c, u) => { let { dragPropagation: f, dragDirectionLock: d, onDirectionLock: m, onDrag: y, } = this.getProps(); if (!f && !this.openGlobalLock) return; let { offset: g } = u; if (d && this.currentDirection === null) { (this.currentDirection = zF(g)), this.currentDirection !== null && m && m(this.currentDirection); return; } this.updateAxis("x", u.point, g), this.updateAxis("y", u.point, g), this.visualElement.render(), y && y(c, u); }, s = (c, u) => this.stop(c, u), a = () => Sn((c) => { var u; return ( this.getAnimationState(c) === "paused" && ((u = this.getAxisMotionValue(c).animation) === null || u === void 0 ? void 0 : u.play()) ); }), { dragSnapToOrigin: l } = this.getProps(); this.panSession = new U0( e, { onSessionStart: r, onStart: i, onMove: o, onSessionEnd: s, resumeAnimation: a, }, { transformPagePoint: this.visualElement.getTransformPagePoint(), dragSnapToOrigin: l, contextWindow: Q0(this.visualElement), } ); } stop(e, t) { let n = this.isDragging; if ((this.cancel(), !n)) return; let { velocity: r } = t; this.startAnimation(r); let { onDragEnd: i } = this.getProps(); i && Q.postRender(() => i(e, t)); } cancel() { this.isDragging = !1; let { projection: e, animationState: t } = this.visualElement; e && (e.isAnimationBlocked = !1), this.panSession && this.panSession.end(), (this.panSession = void 0); let { dragPropagation: n } = this.getProps(); !n && this.openGlobalLock && (this.openGlobalLock(), (this.openGlobalLock = null)), t && t.setActive("whileDrag", !1); } updateAxis(e, t, n) { let { drag: r } = this.getProps(); if (!n || !gl(e, r, this.currentDirection)) return; let i = this.getAxisMotionValue(e), o = this.originPoint[e] + n[e]; this.constraints && this.constraints[e] && (o = EF(o, this.constraints[e], this.elastic[e])), i.set(o); } resolveConstraints() { var e; let { dragConstraints: t, dragElastic: n } = this.getProps(), r = this.visualElement.projection && !this.visualElement.projection.layout ? this.visualElement.projection.measure(!1) : (e = this.visualElement.projection) === null || e === void 0 ? void 0 : e.layout, i = this.constraints; t && po(t) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : t && r ? (this.constraints = RF(r.layoutBox, t)) : (this.constraints = !1), (this.elastic = IF(n)), i !== this.constraints && r && this.constraints && !this.hasMutatedConstraints && Sn((o) => { this.constraints !== !1 && this.getAxisMotionValue(o) && (this.constraints[o] = _F(r.layoutBox[o], this.constraints[o])); }); } resolveRefConstraints() { let { dragConstraints: e, onMeasureDragConstraints: t } = this.getProps(); if (!e || !po(e)) return !1; let n = e.current; on( n !== null, "If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop." ); let { projection: r } = this.visualElement; if (!r || !r.layout) return !1; let i = VF(n, r.root, this.visualElement.getTransformPagePoint()), o = PF(r.layout.layoutBox, i); if (t) { let s = t(OF(o)); (this.hasMutatedConstraints = !!s), s && (o = q0(s)); } return o; } startAnimation(e) { let { drag: t, dragMomentum: n, dragElastic: r, dragTransition: i, dragSnapToOrigin: o, onDragTransitionEnd: s, } = this.getProps(), a = this.constraints || {}, l = Sn((c) => { if (!gl(c, t, this.currentDirection)) return; let u = (a && a[c]) || {}; o && (u = { min: 0, max: 0 }); let f = r ? 200 : 1e6, d = r ? 40 : 1e7, m = { type: "inertia", velocity: n ? e[c] : 0, bounceStiffness: f, bounceDamping: d, timeConstant: 750, restDelta: 1, restSpeed: 10, ...i, ...u, }; return this.startAxisValueAnimation(c, m); }); return Promise.all(l).then(s); } startAxisValueAnimation(e, t) { let n = this.getAxisMotionValue(e); return ( od(this.visualElement, e), n.start(Bd(e, n, 0, t, this.visualElement, !1)) ); } stopAnimation() { Sn((e) => this.getAxisMotionValue(e).stop()); } pauseAnimation() { Sn((e) => { var t; return (t = this.getAxisMotionValue(e).animation) === null || t === void 0 ? void 0 : t.pause(); }); } getAnimationState(e) { var t; return (t = this.getAxisMotionValue(e).animation) === null || t === void 0 ? void 0 : t.state; } getAxisMotionValue(e) { let t = `_drag${e.toUpperCase()}`, n = this.visualElement.getProps(), r = n[t]; return ( r || this.visualElement.getValue(e, (n.initial ? n.initial[e] : void 0) || 0) ); } snapToCursor(e) { Sn((t) => { let { drag: n } = this.getProps(); if (!gl(t, n, this.currentDirection)) return; let { projection: r } = this.visualElement, i = this.getAxisMotionValue(t); if (r && r.layout) { let { min: o, max: s } = r.layout.layoutBox[t]; i.set(e[t] - Oe(o, s, 0.5)); } }); } scalePositionWithinConstraints() { if (!this.visualElement.current) return; let { drag: e, dragConstraints: t } = this.getProps(), { projection: n } = this.visualElement; if (!po(t) || !n || !this.constraints) return; this.stopAnimation(); let r = { x: 0, y: 0 }; Sn((o) => { let s = this.getAxisMotionValue(o); if (s && this.constraints !== !1) { let a = s.get(); r[o] = FF({ min: a, max: a }, this.constraints[o]); } }); let { transformTemplate: i } = this.visualElement.getProps(); (this.visualElement.current.style.transform = i ? i({}, "") : "none"), n.root && n.root.updateScroll(), n.updateLayout(), this.resolveConstraints(), Sn((o) => { if (!gl(o, e, null)) return; let s = this.getAxisMotionValue(o), { min: a, max: l } = this.constraints[o]; s.set(Oe(a, l, r[o])); }); } addListeners() { if (!this.visualElement.current) return; AF.set(this.visualElement, this); let e = this.visualElement.current, t = nr(e, "pointerdown", (a) => { let { drag: l, dragListener: c = !0 } = this.getProps(); l && c && this.start(a); }), n = () => { let { dragConstraints: a } = this.getProps(); po(a) && a.current && (this.constraints = this.resolveRefConstraints()); }, { projection: r } = this.visualElement, i = r.addEventListener("measure", n); r && !r.layout && (r.root && r.root.updateScroll(), r.updateLayout()), Q.read(n); let o = kr(F, "resize", () => this.scalePositionWithinConstraints()), s = r.addEventListener( "didUpdate", ({ delta: a, hasLayoutChanged: l }) => { this.isDragging && l && (Sn((c) => { let u = this.getAxisMotionValue(c); u && ((this.originPoint[c] += a[c].translate), u.set(u.get() + a[c].translate)); }), this.visualElement.render()); } ); return () => { o(), t(), i(), s && s(); }; } getProps() { let e = this.visualElement.getProps(), { drag: t = !1, dragDirectionLock: n = !1, dragPropagation: r = !1, dragConstraints: i = !1, dragElastic: o = ld, dragMomentum: s = !0, } = e; return { ...e, drag: t, dragDirectionLock: n, dragPropagation: r, dragConstraints: i, dragElastic: o, dragMomentum: s, }; } }; function gl(e, t, n) { return (t === !0 || t === e) && (n === null || n === e); } function zF(e, t = 10) { let n = null; return Math.abs(e.y) > t ? (n = "y") : Math.abs(e.x) > t && (n = "x"), n; } var BF = class extends Xr { constructor(e) { super(e), (this.removeGroupControls = wt), (this.removeListeners = wt), (this.controls = new DF(e)); } mount() { let { dragControls: e } = this.node.getProps(); e && (this.removeGroupControls = e.subscribe(this.controls)), (this.removeListeners = this.controls.addListeners() || wt); } unmount() { this.removeGroupControls(), this.removeListeners(); } }, ry = (e) => (t, n) => { e && Q.postRender(() => e(t, n)); }, $F = class extends Xr { constructor() { super(...arguments), (this.removePointerDownListener = wt); } onPointerDown(e) { this.session = new U0(e, this.createPanHandlers(), { transformPagePoint: this.node.getTransformPagePoint(), contextWindow: Q0(this.node), }); } createPanHandlers() { let { onPanSessionStart: e, onPanStart: t, onPan: n, onPanEnd: r, } = this.node.getProps(); return { onSessionStart: ry(e), onStart: ry(t), onMove: n, onEnd: (i, o) => { delete this.session, r && Q.postRender(() => r(i, o)); }, }; } mount() { this.removePointerDownListener = nr( this.node.current, "pointerdown", (e) => this.onPointerDown(e) ); } update() { this.session && this.session.updateHandlers(this.createPanHandlers()); } unmount() { this.removePointerDownListener(), this.session && this.session.end(); } }, xl = { hasAnimatedSinceResize: !0, hasEverUpdated: !1 }; function iy(e, t) { return t.max === t.min ? 0 : (e / (t.max - t.min)) * 100; } var xs = { correct: (e, t) => { if (!t.target) return e; if (typeof e == "string") if (Z.test(e)) e = parseFloat(e); else return e; let n = iy(e, t.target.x), r = iy(e, t.target.y); return `${n}% ${r}%`; }, }, NF = { correct: (e, { treeScale: t, projectionDelta: n }) => { let r = e, i = Tr.parse(e); if (i.length > 5) return r; let o = Tr.createTransformer(e), s = typeof i[0] != "number" ? 1 : 0, a = n.x.scale * t.x, l = n.y.scale * t.y; (i[0 + s] /= a), (i[1 + s] /= l); let c = Oe(a, l, 0.5); return ( typeof i[2 + s] == "number" && (i[2 + s] /= c), typeof i[3 + s] == "number" && (i[3 + s] /= c), o(i) ); }, }, jF = class extends Pe { componentDidMount() { let { visualElement: e, layoutGroup: t, switchLayoutGroup: n, layoutId: r, } = this.props, { projection: i } = e; qd(HF), i && (t.group && t.group.add(i), n && n.register && r && n.register(i), i.root.didUpdate(), i.addEventListener("animationComplete", () => { this.safeToRemove(); }), i.setOptions({ ...i.options, onExitComplete: () => this.safeToRemove(), })), (xl.hasEverUpdated = !0); } getSnapshotBeforeUpdate(e) { let { layoutDependency: t, visualElement: n, drag: r, isPresent: i, } = this.props, o = n.projection; return ( o && ((o.isPresent = i), r || e.layoutDependency !== t || t === void 0 ? o.willUpdate() : this.safeToRemove(), e.isPresent !== i && (i ? o.promote() : o.relegate() || Q.postRender(() => { let s = o.getStack(); (!s || !s.members.length) && this.safeToRemove(); }))), null ); } componentDidUpdate() { let { projection: e } = this.props.visualElement; e && (e.root.didUpdate(), Xd.postRender(() => { !e.currentAnimation && e.isLead() && this.safeToRemove(); })); } componentWillUnmount() { let { visualElement: e, layoutGroup: t, switchLayoutGroup: n, } = this.props, { projection: r } = e; r && (r.scheduleCheckAfterUnmount(), t && t.group && t.group.remove(r), n && n.deregister && n.deregister(r)); } safeToRemove() { let { safeToRemove: e } = this.props; e && e(); } render() { return null; } }; function Z0(e) { let [t, n] = Gd(), r = A(Vs); return C(jF, { ...e, layoutGroup: r, switchLayoutGroup: A(Hl), isPresent: t, safeToRemove: n, }); } var HF = { borderRadius: { ...xs, applyTo: [ "borderTopLeftRadius", "borderTopRightRadius", "borderBottomLeftRadius", "borderBottomRightRadius", ], }, borderTopLeftRadius: xs, borderTopRightRadius: xs, borderBottomLeftRadius: xs, borderBottomRightRadius: xs, boxShadow: NF, }, J0 = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], WF = J0.length, oy = (e) => (typeof e == "string" ? parseFloat(e) : e), sy = (e) => typeof e == "number" || Z.test(e); function UF(e, t, n, r, i, o) { i ? ((e.opacity = Oe(0, n.opacity !== void 0 ? n.opacity : 1, GF(r))), (e.opacityExit = Oe(t.opacity !== void 0 ? t.opacity : 1, 0, qF(r)))) : o && (e.opacity = Oe( t.opacity !== void 0 ? t.opacity : 1, n.opacity !== void 0 ? n.opacity : 1, r )); for (let s = 0; s < WF; s++) { let a = `border${J0[s]}Radius`, l = ay(t, a), c = ay(n, a); if (l === void 0 && c === void 0) continue; l || (l = 0), c || (c = 0), l === 0 || c === 0 || sy(l) === sy(c) ? ((e[a] = Math.max(Oe(oy(l), oy(c), r), 0)), (Zn.test(c) || Zn.test(l)) && (e[a] += "%")) : (e[a] = c); } (t.rotate || n.rotate) && (e.rotate = Oe(t.rotate || 0, n.rotate || 0, r)); } function ay(e, t) { return e[t] !== void 0 ? e[t] : e.borderRadius; } var GF = eb(0, 0.5, bd), qF = eb(0.5, 0.95, wt); function eb(e, t, n) { return (r) => (r < e ? 0 : r > t ? 1 : n(Er(e, t, r))); } function ly(e, t) { (e.min = t.min), (e.max = t.max); } function wn(e, t) { ly(e.x, t.x), ly(e.y, t.y); } function cy(e, t) { (e.translate = t.translate), (e.scale = t.scale), (e.originPoint = t.originPoint), (e.origin = t.origin); } function uy(e, t, n, r, i) { return ( (e -= t), (e = Fl(e, 1 / n, r)), i !== void 0 && (e = Fl(e, 1 / i, r)), e ); } function XF(e, t = 0, n = 1, r = 0.5, i, o = e, s = e) { if ( (Zn.test(t) && ((t = parseFloat(t)), (t = Oe(s.min, s.max, t / 100) - s.min)), typeof t != "number") ) return; let a = Oe(o.min, o.max, r); e === o && (a -= t), (e.min = uy(e.min, t, n, a, i)), (e.max = uy(e.max, t, n, a, i)); } function fy(e, t, [n, r, i], o, s) { XF(e, t[n], t[r], t[i], t.scale, o, s); } var YF = ["x", "scaleX", "originX"], KF = ["y", "scaleY", "originY"]; function dy(e, t, n, r) { fy(e.x, t, YF, n ? n.x : void 0, r ? r.x : void 0), fy(e.y, t, KF, n ? n.y : void 0, r ? r.y : void 0); } function hy(e) { return e.translate === 0 && e.scale === 1; } function tb(e) { return hy(e.x) && hy(e.y); } function py(e, t) { return e.min === t.min && e.max === t.max; } function QF(e, t) { return py(e.x, t.x) && py(e.y, t.y); } function my(e, t) { return ( Math.round(e.min) === Math.round(t.min) && Math.round(e.max) === Math.round(t.max) ); } function nb(e, t) { return my(e.x, t.x) && my(e.y, t.y); } function gy(e) { return Gt(e.x) / Gt(e.y); } function vy(e, t) { return ( e.translate === t.translate && e.scale === t.scale && e.originPoint === t.originPoint ); } var ZF = class { constructor() { this.members = []; } add(e) { Vd(this.members, e), e.scheduleRender(); } remove(e) { if ( (Al(this.members, e), e === this.prevLead && (this.prevLead = void 0), e === this.lead) ) { let t = this.members[this.members.length - 1]; t && this.promote(t); } } relegate(e) { let t = this.members.findIndex((r) => e === r); if (t === 0) return !1; let n; for (let r = t; r >= 0; r--) { let i = this.members[r]; if (i.isPresent !== !1) { n = i; break; } } return n ? (this.promote(n), !0) : !1; } promote(e, t) { let n = this.lead; if (e !== n && ((this.prevLead = n), (this.lead = e), e.show(), n)) { n.instance && n.scheduleRender(), e.scheduleRender(), (e.resumeFrom = n), t && (e.resumeFrom.preserveOpacity = !0), n.snapshot && ((e.snapshot = n.snapshot), (e.snapshot.latestValues = n.animationValues || n.latestValues)), e.root && e.root.isUpdating && (e.isLayoutDirty = !0); let { crossfade: r } = e.options; r === !1 && n.hide(); } } exitAnimationComplete() { this.members.forEach((e) => { let { options: t, resumingFrom: n } = e; t.onExitComplete && t.onExitComplete(), n && n.options.onExitComplete && n.options.onExitComplete(); }); } scheduleRender() { this.members.forEach((e) => { e.instance && e.scheduleRender(!1); }); } removeLeadSnapshot() { this.lead && this.lead.snapshot && (this.lead.snapshot = void 0); } }; function JF(e, t, n) { let r = "", i = e.x.translate / t.x, o = e.y.translate / t.y, s = n?.z || 0; if ( ((i || o || s) && (r = `translate3d(${i}px, ${o}px, ${s}px) `), (t.x !== 1 || t.y !== 1) && (r += `scale(${1 / t.x}, ${1 / t.y}) `), n) ) { let { transformPerspective: c, rotate: u, rotateX: f, rotateY: d, skewX: m, skewY: y, } = n; c && (r = `perspective(${c}px) ${r}`), u && (r += `rotate(${u}deg) `), f && (r += `rotateX(${f}deg) `), d && (r += `rotateY(${d}deg) `), m && (r += `skewX(${m}deg) `), y && (r += `skewY(${y}deg) `); } let a = e.x.scale * t.x, l = e.y.scale * t.y; return (a !== 1 || l !== 1) && (r += `scale(${a}, ${l})`), r || "none"; } function rb(e) { return e instanceof SVGElement && e.tagName !== "svg"; } function ib(e, t, n) { let r = $e(e) ? e : Ye(e); return r.start(Bd("", r, t, n)), r.animation; } var Pi = { type: "projectionFrame", totalNodes: 0, resolvedTargetDeltas: 0, recalculatedProjection: 0, }, Cs = typeof F < "u" && F.MotionDebug !== void 0, Nf = ["", "X", "Y", "Z"], e_ = { visibility: "hidden" }, yy = 1e3, t_ = 0; function jf(e, t, n, r) { let { latestValues: i } = t; i[e] && ((n[e] = i[e]), t.setStaticValue(e, 0), r && (r[e] = 0)); } function ob(e) { if (((e.hasCheckedOptimisedAppear = !0), e.root === e)) return; let { visualElement: t } = e.options; if (!t) return; let n = S0(t); if (F.MotionHasOptimisedAnimation(n, "transform")) { let { layout: i, layoutId: o } = e.options; F.MotionCancelOptimisedAnimation(n, "transform", Q, !(i || o)); } let { parent: r } = e; r && !r.hasCheckedOptimisedAppear && ob(r); } function sb({ attachResizeListener: e, defaultParent: t, measureScroll: n, checkIsScrollRoot: r, resetTransform: i, }) { return class { constructor(s = {}, a = t?.()) { (this.id = t_++), (this.animationId = 0), (this.children = new Set()), (this.options = {}), (this.isTreeAnimating = !1), (this.isAnimationBlocked = !1), (this.isLayoutDirty = !1), (this.isProjectionDirty = !1), (this.isSharedProjectionDirty = !1), (this.isTransformDirty = !1), (this.updateManuallyBlocked = !1), (this.updateBlockedByResize = !1), (this.isUpdating = !1), (this.isSVG = !1), (this.needsReset = !1), (this.shouldResetTransform = !1), (this.hasCheckedOptimisedAppear = !1), (this.treeScale = { x: 1, y: 1 }), (this.eventHandlers = new Map()), (this.hasTreeAnimated = !1), (this.updateScheduled = !1), (this.scheduleUpdate = () => this.update()), (this.projectionUpdateScheduled = !1), (this.checkUpdateFailed = () => { this.isUpdating && ((this.isUpdating = !1), this.clearAllSnapshots()); }), (this.updateProjection = () => { (this.projectionUpdateScheduled = !1), Cs && (Pi.totalNodes = Pi.resolvedTargetDeltas = Pi.recalculatedProjection = 0), this.nodes.forEach(i_), this.nodes.forEach(c_), this.nodes.forEach(u_), this.nodes.forEach(o_), Cs && F.MotionDebug.record(Pi); }), (this.resolvedRelativeTargetAt = 0), (this.hasProjected = !1), (this.isVisible = !0), (this.animationProgress = 0), (this.sharedNodes = new Map()), (this.latestValues = s), (this.root = a ? a.root || a : this), (this.path = a ? [...a.path, a] : []), (this.parent = a), (this.depth = a ? a.depth + 1 : 0); for (let l = 0; l < this.path.length; l++) this.path[l].shouldResetTransform = !0; this.root === this && (this.nodes = new M0()); } addEventListener(s, a) { return ( this.eventHandlers.has(s) || this.eventHandlers.set(s, new Ad()), this.eventHandlers.get(s).add(a) ); } notifyListeners(s, ...a) { let l = this.eventHandlers.get(s); l && l.notify(...a); } hasListeners(s) { return this.eventHandlers.has(s); } mount(s, a = this.root.hasTreeAnimated) { if (this.instance) return; (this.isSVG = rb(s)), (this.instance = s); let { layoutId: l, layout: c, visualElement: u } = this.options; if ( (u && !u.current && u.mount(s), this.root.nodes.add(this), this.parent && this.parent.children.add(this), a && (c || l) && (this.isLayoutDirty = !0), e) ) { let f, d = () => (this.root.updateBlockedByResize = !1); e(s, () => { (this.root.updateBlockedByResize = !0), f && f(), (f = L0(d, 250)), xl.hasAnimatedSinceResize && ((xl.hasAnimatedSinceResize = !1), this.nodes.forEach(xy)); }); } l && this.root.registerSharedNode(l, this), this.options.animate !== !1 && u && (l || c) && this.addEventListener( "didUpdate", ({ delta: f, hasLayoutChanged: d, hasRelativeTargetChanged: m, layout: y, }) => { if (this.isTreeAnimationBlocked()) { (this.target = void 0), (this.relativeTarget = void 0); return; } let g = this.options.transition || u.getDefaultTransition() || m_, { onLayoutAnimationStart: b, onLayoutAnimationComplete: h } = u.getProps(), p = !this.targetLayout || !nb(this.targetLayout, y) || m, v = !d && m; if ( this.options.layoutRoot || (this.resumeFrom && this.resumeFrom.instance) || v || (d && (p || !this.currentAnimation)) ) { this.resumeFrom && ((this.resumingFrom = this.resumeFrom), (this.resumingFrom.resumingFrom = void 0)), this.setAnimationOrigin(f, v); let x = { ...zd(g, "layout"), onPlay: b, onComplete: h }; (u.shouldReduceMotion || this.options.layoutRoot) && ((x.delay = 0), (x.type = !1)), this.startAnimation(x); } else d || xy(this), this.isLead() && this.options.onExitComplete && this.options.onExitComplete(); this.targetLayout = y; } ); } unmount() { this.options.layoutId && this.willUpdate(), this.root.nodes.remove(this); let s = this.getStack(); s && s.remove(this), this.parent && this.parent.children.delete(this), (this.instance = void 0), Dt(this.updateProjection); } blockUpdate() { this.updateManuallyBlocked = !0; } unblockUpdate() { this.updateManuallyBlocked = !1; } isUpdateBlocked() { return this.updateManuallyBlocked || this.updateBlockedByResize; } isTreeAnimationBlocked() { return ( this.isAnimationBlocked || (this.parent && this.parent.isTreeAnimationBlocked()) || !1 ); } startUpdate() { this.isUpdateBlocked() || ((this.isUpdating = !0), this.nodes && this.nodes.forEach(f_), this.animationId++); } getTransformTemplate() { let { visualElement: s } = this.options; return s && s.getProps().transformTemplate; } willUpdate(s = !0) { if (((this.root.hasTreeAnimated = !0), this.root.isUpdateBlocked())) { this.options.onExitComplete && this.options.onExitComplete(); return; } if ( (F.MotionCancelOptimisedAnimation && !this.hasCheckedOptimisedAppear && ob(this), !this.root.isUpdating && this.root.startUpdate(), this.isLayoutDirty) ) return; this.isLayoutDirty = !0; for (let u = 0; u < this.path.length; u++) { let f = this.path[u]; (f.shouldResetTransform = !0), f.updateScroll("snapshot"), f.options.layoutRoot && f.willUpdate(!1); } let { layoutId: a, layout: l } = this.options; if (a === void 0 && !l) return; let c = this.getTransformTemplate(); (this.prevTransformTemplateValue = c ? c(this.latestValues, "") : void 0), this.updateSnapshot(), s && this.notifyListeners("willUpdate"); } update() { if (((this.updateScheduled = !1), this.isUpdateBlocked())) { this.unblockUpdate(), this.clearAllSnapshots(), this.nodes.forEach(by); return; } this.isUpdating || this.nodes.forEach(a_), (this.isUpdating = !1), this.nodes.forEach(l_), this.nodes.forEach(n_), this.nodes.forEach(r_), this.clearAllSnapshots(); let a = tr.now(); (Xe.delta = Cr(0, 1e3 / 60, a - Xe.timestamp)), (Xe.timestamp = a), (Xe.isProcessing = !0), yl.update.process(Xe), yl.preRender.process(Xe), yl.render.process(Xe), (Xe.isProcessing = !1); } didUpdate() { this.updateScheduled || ((this.updateScheduled = !0), Xd.read(this.scheduleUpdate)); } clearAllSnapshots() { this.nodes.forEach(s_), this.sharedNodes.forEach(d_); } scheduleUpdateProjection() { this.projectionUpdateScheduled || ((this.projectionUpdateScheduled = !0), Q.preRender(this.updateProjection, !1, !0)); } scheduleCheckAfterUnmount() { Q.postRender(() => { this.isLayoutDirty ? this.root.didUpdate() : this.root.checkUpdateFailed(); }); } updateSnapshot() { this.snapshot || !this.instance || (this.snapshot = this.measure()); } updateLayout() { if ( !this.instance || (this.updateScroll(), !(this.options.alwaysMeasureLayout && this.isLead()) && !this.isLayoutDirty) ) return; if (this.resumeFrom && !this.resumeFrom.instance) for (let l = 0; l < this.path.length; l++) this.path[l].updateScroll(); let s = this.layout; (this.layout = this.measure(!1)), (this.layoutCorrected = He()), (this.isLayoutDirty = !1), (this.projectionDelta = void 0), this.notifyListeners("measure", this.layout.layoutBox); let { visualElement: a } = this.options; a && a.notify( "LayoutMeasure", this.layout.layoutBox, s ? s.layoutBox : void 0 ); } updateScroll(s = "measure") { let a = !!(this.options.layoutScroll && this.instance); if ( (this.scroll && this.scroll.animationId === this.root.animationId && this.scroll.phase === s && (a = !1), a) ) { let l = r(this.instance); this.scroll = { animationId: this.root.animationId, phase: s, isRoot: l, offset: n(this.instance), wasRoot: this.scroll ? this.scroll.isRoot : l, }; } } resetTransform() { if (!i) return; let s = this.isLayoutDirty || this.shouldResetTransform || this.options.alwaysMeasureLayout, a = this.projectionDelta && !tb(this.projectionDelta), l = this.getTransformTemplate(), c = l ? l(this.latestValues, "") : void 0, u = c !== this.prevTransformTemplateValue; s && (a || Ri(this.latestValues) || u) && (i(this.instance, c), (this.shouldResetTransform = !1), this.scheduleRender()); } measure(s = !0) { let a = this.measurePageBox(), l = this.removeElementScroll(a); return ( s && (l = this.removeTransform(l)), g_(l), { animationId: this.root.animationId, measuredBox: a, layoutBox: l, latestValues: {}, source: this.id, } ); } measurePageBox() { var s; let { visualElement: a } = this.options; if (!a) return He(); let l = a.measureViewportBox(); if ( !( ((s = this.scroll) === null || s === void 0 ? void 0 : s.wasRoot) || this.path.some(v_) ) ) { let { scroll: u } = this.root; u && (mo(l.x, u.offset.x), mo(l.y, u.offset.y)); } return l; } removeElementScroll(s) { var a; let l = He(); if ( (wn(l, s), !((a = this.scroll) === null || a === void 0) && a.wasRoot) ) return l; for (let c = 0; c < this.path.length; c++) { let u = this.path[c], { scroll: f, options: d } = u; u !== this.root && f && d.layoutScroll && (f.wasRoot && wn(l, s), mo(l.x, f.offset.x), mo(l.y, f.offset.y)); } return l; } applyTransform(s, a = !1) { let l = He(); wn(l, s); for (let c = 0; c < this.path.length; c++) { let u = this.path[c]; !a && u.options.layoutScroll && u.scroll && u !== u.root && go(l, { x: -u.scroll.offset.x, y: -u.scroll.offset.y }), Ri(u.latestValues) && go(l, u.latestValues); } return Ri(this.latestValues) && go(l, this.latestValues), l; } removeTransform(s) { let a = He(); wn(a, s); for (let l = 0; l < this.path.length; l++) { let c = this.path[l]; if (!c.instance || !Ri(c.latestValues)) continue; cd(c.latestValues) && c.updateSnapshot(); let u = He(), f = c.measurePageBox(); wn(u, f), dy(a, c.latestValues, c.snapshot ? c.snapshot.layoutBox : void 0, u); } return Ri(this.latestValues) && dy(a, this.latestValues), a; } setTargetDelta(s) { (this.targetDelta = s), this.root.scheduleUpdateProjection(), (this.isProjectionDirty = !0); } setOptions(s) { this.options = { ...this.options, ...s, crossfade: s.crossfade !== void 0 ? s.crossfade : !0, }; } clearMeasurements() { (this.scroll = void 0), (this.layout = void 0), (this.snapshot = void 0), (this.prevTransformTemplateValue = void 0), (this.targetDelta = void 0), (this.target = void 0), (this.isLayoutDirty = !1); } forceRelativeParentToResolveTarget() { this.relativeParent && this.relativeParent.resolvedRelativeTargetAt !== Xe.timestamp && this.relativeParent.resolveTargetDelta(!0); } resolveTargetDelta(s = !1) { var a; let l = this.getLead(); this.isProjectionDirty || (this.isProjectionDirty = l.isProjectionDirty), this.isTransformDirty || (this.isTransformDirty = l.isTransformDirty), this.isSharedProjectionDirty || (this.isSharedProjectionDirty = l.isSharedProjectionDirty); let c = !!this.resumingFrom || this !== l; if ( !( s || (c && this.isSharedProjectionDirty) || this.isProjectionDirty || (!((a = this.parent) === null || a === void 0) && a.isProjectionDirty) || this.attemptToResolveRelativeTarget || this.root.updateBlockedByResize ) ) return; let { layout: f, layoutId: d } = this.options; if (!(!this.layout || !(f || d))) { if ( ((this.resolvedRelativeTargetAt = Xe.timestamp), !this.targetDelta && !this.relativeTarget) ) { let m = this.getClosestProjectingParent(); m && m.layout && this.animationProgress !== 1 ? ((this.relativeParent = m), this.forceRelativeParentToResolveTarget(), (this.relativeTarget = He()), (this.relativeTargetOrigin = He()), Ps( this.relativeTargetOrigin, this.layout.layoutBox, m.layout.layoutBox ), wn(this.relativeTarget, this.relativeTargetOrigin)) : (this.relativeParent = this.relativeTarget = void 0); } if (!(!this.relativeTarget && !this.targetDelta)) { if ( (this.target || ((this.target = He()), (this.targetWithTransforms = He())), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), iF( this.target, this.relativeTarget, this.relativeParent.target )) : this.targetDelta ? (this.resumingFrom ? (this.target = this.applyTransform(this.layout.layoutBox)) : wn(this.target, this.layout.layoutBox), Y0(this.target, this.targetDelta)) : wn(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget) ) { this.attemptToResolveRelativeTarget = !1; let m = this.getClosestProjectingParent(); m && !!m.resumingFrom == !!this.resumingFrom && !m.options.layoutScroll && m.target && this.animationProgress !== 1 ? ((this.relativeParent = m), this.forceRelativeParentToResolveTarget(), (this.relativeTarget = He()), (this.relativeTargetOrigin = He()), Ps(this.relativeTargetOrigin, this.target, m.target), wn(this.relativeTarget, this.relativeTargetOrigin)) : (this.relativeParent = this.relativeTarget = void 0); } Cs && Pi.resolvedTargetDeltas++; } } } getClosestProjectingParent() { if ( !( !this.parent || cd(this.parent.latestValues) || X0(this.parent.latestValues) ) ) return this.parent.isProjecting() ? this.parent : this.parent.getClosestProjectingParent(); } isProjecting() { return !!( (this.relativeTarget || this.targetDelta || this.options.layoutRoot) && this.layout ); } calcProjection() { var s; let a = this.getLead(), l = !!this.resumingFrom || this !== a, c = !0; if ( ((this.isProjectionDirty || (!((s = this.parent) === null || s === void 0) && s.isProjectionDirty)) && (c = !1), l && (this.isSharedProjectionDirty || this.isTransformDirty) && (c = !1), this.resolvedRelativeTargetAt === Xe.timestamp && (c = !1), c) ) return; let { layout: u, layoutId: f } = this.options; if ( ((this.isTreeAnimating = !!( (this.parent && this.parent.isTreeAnimating) || this.currentAnimation || this.pendingAnimation )), this.isTreeAnimating || (this.targetDelta = this.relativeTarget = void 0), !this.layout || !(u || f)) ) return; wn(this.layoutCorrected, this.layout.layoutBox); let d = this.treeScale.x, m = this.treeScale.y; LF(this.layoutCorrected, this.treeScale, this.path, l), a.layout && !a.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && ((a.target = a.layout.layoutBox), (a.targetWithTransforms = He())); let { target: y } = a; if (!y) { this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender()); return; } !this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (cy(this.prevProjectionDelta.x, this.projectionDelta.x), cy(this.prevProjectionDelta.y, this.projectionDelta.y)), Rs(this.projectionDelta, this.layoutCorrected, y, this.latestValues), (this.treeScale.x !== d || this.treeScale.y !== m || !vy(this.projectionDelta.x, this.prevProjectionDelta.x) || !vy(this.projectionDelta.y, this.prevProjectionDelta.y)) && ((this.hasProjected = !0), this.scheduleRender(), this.notifyListeners("projectionUpdate", y)), Cs && Pi.recalculatedProjection++; } hide() { this.isVisible = !1; } show() { this.isVisible = !0; } scheduleRender(s = !0) { var a; if ( ((a = this.options.visualElement) === null || a === void 0 || a.scheduleRender(), s) ) { let l = this.getStack(); l && l.scheduleRender(); } this.resumingFrom && !this.resumingFrom.instance && (this.resumingFrom = void 0); } createProjectionDeltas() { (this.prevProjectionDelta = ho()), (this.projectionDelta = ho()), (this.projectionDeltaWithTransform = ho()); } setAnimationOrigin(s, a = !1) { let l = this.snapshot, c = l ? l.latestValues : {}, u = { ...this.latestValues }, f = ho(); (!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), (this.attemptToResolveRelativeTarget = !a); let d = He(), m = l ? l.source : void 0, y = this.layout ? this.layout.source : void 0, g = m !== y, b = this.getStack(), h = !b || b.members.length <= 1, p = !!(g && !h && this.options.crossfade === !0 && !this.path.some(p_)); this.animationProgress = 0; let v; (this.mixTargetDelta = (x) => { let k = x / 1e3; wy(f.x, s.x, k), wy(f.y, s.y, k), this.setTargetDelta(f), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (Ps(d, this.layout.layoutBox, this.relativeParent.layout.layoutBox), h_(this.relativeTarget, this.relativeTargetOrigin, d, k), v && QF(this.relativeTarget, v) && (this.isProjectionDirty = !1), v || (v = He()), wn(v, this.relativeTarget)), g && ((this.animationValues = u), UF(u, c, this.latestValues, k, p, h)), this.root.scheduleUpdateProjection(), this.scheduleRender(), (this.animationProgress = k); }), this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0); } startAnimation(s) { this.notifyListeners("animationStart"), this.currentAnimation && this.currentAnimation.stop(), this.resumingFrom && this.resumingFrom.currentAnimation && this.resumingFrom.currentAnimation.stop(), this.pendingAnimation && (Dt(this.pendingAnimation), (this.pendingAnimation = void 0)), (this.pendingAnimation = Q.update(() => { (xl.hasAnimatedSinceResize = !0), (this.currentAnimation = ib(0, yy, { ...s, onUpdate: (a) => { this.mixTargetDelta(a), s.onUpdate && s.onUpdate(a); }, onComplete: () => { s.onComplete && s.onComplete(), this.completeAnimation(); }, })), this.resumingFrom && (this.resumingFrom.currentAnimation = this.currentAnimation), (this.pendingAnimation = void 0); })); } completeAnimation() { this.resumingFrom && ((this.resumingFrom.currentAnimation = void 0), (this.resumingFrom.preserveOpacity = void 0)); let s = this.getStack(); s && s.exitAnimationComplete(), (this.resumingFrom = this.currentAnimation = this.animationValues = void 0), this.notifyListeners("animationComplete"); } finishAnimation() { this.currentAnimation && (this.mixTargetDelta && this.mixTargetDelta(yy), this.currentAnimation.stop()), this.completeAnimation(); } applyTransformsToTarget() { let s = this.getLead(), { targetWithTransforms: a, target: l, layout: c, latestValues: u } = s; if (!(!a || !l || !c)) { if ( this !== s && this.layout && c && ab(this.options.animationType, this.layout.layoutBox, c.layoutBox) ) { l = this.target || He(); let f = Gt(this.layout.layoutBox.x); (l.x.min = s.target.x.min), (l.x.max = l.x.min + f); let d = Gt(this.layout.layoutBox.y); (l.y.min = s.target.y.min), (l.y.max = l.y.min + d); } wn(a, l), go(a, u), Rs(this.projectionDeltaWithTransform, this.layoutCorrected, a, u); } } registerSharedNode(s, a) { this.sharedNodes.has(s) || this.sharedNodes.set(s, new ZF()), this.sharedNodes.get(s).add(a); let c = a.options.initialPromotionConfig; a.promote({ transition: c ? c.transition : void 0, preserveFollowOpacity: c && c.shouldPreserveFollowOpacity ? c.shouldPreserveFollowOpacity(a) : void 0, }); } isLead() { let s = this.getStack(); return s ? s.lead === this : !0; } getLead() { var s; let { layoutId: a } = this.options; return a ? ((s = this.getStack()) === null || s === void 0 ? void 0 : s.lead) || this : this; } getPrevLead() { var s; let { layoutId: a } = this.options; return a ? (s = this.getStack()) === null || s === void 0 ? void 0 : s.prevLead : void 0; } getStack() { let { layoutId: s } = this.options; if (s) return this.root.sharedNodes.get(s); } promote({ needsReset: s, transition: a, preserveFollowOpacity: l } = {}) { let c = this.getStack(); c && c.promote(this, l), s && ((this.projectionDelta = void 0), (this.needsReset = !0)), a && this.setOptions({ transition: a }); } relegate() { let s = this.getStack(); return s ? s.relegate(this) : !1; } resetSkewAndRotation() { let { visualElement: s } = this.options; if (!s) return; let a = !1, { latestValues: l } = s; if ( ((l.z || l.rotate || l.rotateX || l.rotateY || l.rotateZ || l.skewX || l.skewY) && (a = !0), !a) ) return; let c = {}; l.z && jf("z", s, c, this.animationValues); for (let u = 0; u < Nf.length; u++) jf(`rotate${Nf[u]}`, s, c, this.animationValues), jf(`skew${Nf[u]}`, s, c, this.animationValues); s.render(); for (let u in c) s.setStaticValue(u, c[u]), this.animationValues && (this.animationValues[u] = c[u]); s.scheduleRender(); } getProjectionStyles(s) { var a, l; if (!this.instance || this.isSVG) return; if (!this.isVisible) return e_; let c = { visibility: "" }, u = this.getTransformTemplate(); if (this.needsReset) return ( (this.needsReset = !1), (c.opacity = ""), (c.pointerEvents = Rt(s?.pointerEvents) || ""), (c.transform = u ? u(this.latestValues, "") : "none"), c ); let f = this.getLead(); if (!this.projectionDelta || !this.layout || !f.target) { let g = {}; return ( this.options.layoutId && ((g.opacity = this.latestValues.opacity !== void 0 ? this.latestValues.opacity : 1), (g.pointerEvents = Rt(s?.pointerEvents) || "")), this.hasProjected && !Ri(this.latestValues) && ((g.transform = u ? u({}, "") : "none"), (this.hasProjected = !1)), g ); } let d = f.animationValues || f.latestValues; this.applyTransformsToTarget(), (c.transform = JF( this.projectionDeltaWithTransform, this.treeScale, d )), u && (c.transform = u(d, c.transform)); let { x: m, y } = this.projectionDelta; (c.transformOrigin = `${m.origin * 100}% ${y.origin * 100}% 0`), f.animationValues ? (c.opacity = f === this ? (l = (a = d.opacity) !== null && a !== void 0 ? a : this.latestValues.opacity) !== null && l !== void 0 ? l : 1 : this.preserveOpacity ? this.latestValues.opacity : d.opacityExit) : (c.opacity = f === this ? d.opacity !== void 0 ? d.opacity : "" : d.opacityExit !== void 0 ? d.opacityExit : 0); for (let g in Rl) { if (d[g] === void 0) continue; let { correct: b, applyTo: h } = Rl[g], p = c.transform === "none" ? d[g] : b(d[g], f); if (h) { let v = h.length; for (let x = 0; x < v; x++) c[h[x]] = p; } else c[g] = p; } return ( this.options.layoutId && (c.pointerEvents = f === this ? Rt(s?.pointerEvents) || "" : "none"), c ); } clearSnapshot() { this.resumeFrom = this.snapshot = void 0; } resetTree() { this.root.nodes.forEach((s) => { var a; return (a = s.currentAnimation) === null || a === void 0 ? void 0 : a.stop(); }), this.root.nodes.forEach(by), this.root.sharedNodes.clear(); } }; } function n_(e) { e.updateLayout(); } function r_(e) { var t; let n = ((t = e.resumeFrom) === null || t === void 0 ? void 0 : t.snapshot) || e.snapshot; if (e.isLead() && e.layout && n && e.hasListeners("didUpdate")) { let { layoutBox: r, measuredBox: i } = e.layout, { animationType: o } = e.options, s = n.source !== e.layout.source; o === "size" ? Sn((f) => { let d = s ? n.measuredBox[f] : n.layoutBox[f], m = Gt(d); (d.min = r[f].min), (d.max = d.min + m); }) : ab(o, n.layoutBox, r) && Sn((f) => { let d = s ? n.measuredBox[f] : n.layoutBox[f], m = Gt(r[f]); (d.max = d.min + m), e.relativeTarget && !e.currentAnimation && ((e.isProjectionDirty = !0), (e.relativeTarget[f].max = e.relativeTarget[f].min + m)); }); let a = ho(); Rs(a, r, n.layoutBox); let l = ho(); s ? Rs(l, e.applyTransform(i, !0), n.measuredBox) : Rs(l, r, n.layoutBox); let c = !tb(a), u = !1; if (!e.resumeFrom) { let f = e.getClosestProjectingParent(); if (f && !f.resumeFrom) { let { snapshot: d, layout: m } = f; if (d && m) { let y = He(); Ps(y, n.layoutBox, d.layoutBox); let g = He(); Ps(g, r, m.layoutBox), nb(y, g) || (u = !0), f.options.layoutRoot && ((e.relativeTarget = g), (e.relativeTargetOrigin = y), (e.relativeParent = f)); } } } e.notifyListeners("didUpdate", { layout: r, snapshot: n, delta: l, layoutDelta: a, hasLayoutChanged: c, hasRelativeTargetChanged: u, }); } else if (e.isLead()) { let { onExitComplete: r } = e.options; r && r(); } e.options.transition = void 0; } function i_(e) { Cs && Pi.totalNodes++, e.parent && (e.isProjecting() || (e.isProjectionDirty = e.parent.isProjectionDirty), e.isSharedProjectionDirty || (e.isSharedProjectionDirty = !!( e.isProjectionDirty || e.parent.isProjectionDirty || e.parent.isSharedProjectionDirty )), e.isTransformDirty || (e.isTransformDirty = e.parent.isTransformDirty)); } function o_(e) { e.isProjectionDirty = e.isSharedProjectionDirty = e.isTransformDirty = !1; } function s_(e) { e.clearSnapshot(); } function by(e) { e.clearMeasurements(); } function a_(e) { e.isLayoutDirty = !1; } function l_(e) { let { visualElement: t } = e.options; t && t.getProps().onBeforeLayoutMeasure && t.notify("BeforeLayoutMeasure"), e.resetTransform(); } function xy(e) { e.finishAnimation(), (e.targetDelta = e.relativeTarget = e.target = void 0), (e.isProjectionDirty = !0); } function c_(e) { e.resolveTargetDelta(); } function u_(e) { e.calcProjection(); } function f_(e) { e.resetSkewAndRotation(); } function d_(e) { e.removeLeadSnapshot(); } function wy(e, t, n) { (e.translate = Oe(t.translate, 0, n)), (e.scale = Oe(t.scale, 1, n)), (e.origin = t.origin), (e.originPoint = t.originPoint); } function Sy(e, t, n, r) { (e.min = Oe(t.min, n.min, r)), (e.max = Oe(t.max, n.max, r)); } function h_(e, t, n, r) { Sy(e.x, t.x, n.x, r), Sy(e.y, t.y, n.y, r); } function p_(e) { return e.animationValues && e.animationValues.opacityExit !== void 0; } var m_ = { duration: 0.45, ease: [0.4, 0, 0.1, 1] }, ky = (e) => typeof Re < "u" && Re.userAgent && Re.userAgent.toLowerCase().includes(e), Cy = ky("applewebkit/") && !ky("chrome/") ? Math.round : wt; function Ty(e) { (e.min = Cy(e.min)), (e.max = Cy(e.max)); } function g_(e) { Ty(e.x), Ty(e.y); } function ab(e, t, n) { return ( e === "position" || (e === "preserve-aspect" && !rF(gy(t), gy(n), 0.2)) ); } function v_(e) { var t; return ( e !== e.root && ((t = e.scroll) === null || t === void 0 ? void 0 : t.wasRoot) ); } var y_ = sb({ attachResizeListener: (e, t) => kr(e, "resize", t), measureScroll: () => ({ x: document.documentElement.scrollLeft || document.body.scrollLeft, y: document.documentElement.scrollTop || document.body.scrollTop, }), checkIsScrollRoot: () => !0, }), Ii = { current: void 0 }, lb = sb({ measureScroll: (e) => ({ x: e.scrollLeft, y: e.scrollTop }), defaultParent: () => { if (!Ii.current) { let e = new y_({}); e.mount(F), e.setOptions({ layoutScroll: !0 }), (Ii.current = e); } return Ii.current; }, resetTransform: (e, t) => { e.style.transform = t !== void 0 ? t : "none"; }, checkIsScrollRoot: (e) => F.getComputedStyle(e).position === "fixed", }), cb = { pan: { Feature: $F }, drag: { Feature: BF, ProjectionNode: lb, MeasureLayout: Z0 }, }; function Ey(e, t) { let n = t ? "pointerenter" : "pointerleave", r = t ? "onHoverStart" : "onHoverEnd", i = (o, s) => { if (o.pointerType === "touch" || Ud()) return; let a = e.getProps(); e.animationState && a.whileHover && e.animationState.setActive("whileHover", t); let l = a[r]; l && Q.postRender(() => l(o, s)); }; return nr(e.current, n, i, { passive: !e.getProps()[r] }); } var b_ = class extends Xr { mount() { this.unmount = er(Ey(this.node, !0), Ey(this.node, !1)); } unmount() {} }, x_ = class extends Xr { constructor() { super(...arguments), (this.isActive = !1); } onFocus() { let e = !1; try { e = this.node.current.matches(":focus-visible"); } catch { e = !0; } !e || !this.node.animationState || (this.node.animationState.setActive("whileFocus", !0), (this.isActive = !0)); } onBlur() { !this.isActive || !this.node.animationState || (this.node.animationState.setActive("whileFocus", !1), (this.isActive = !1)); } mount() { this.unmount = er( kr(this.node.current, "focus", () => this.onFocus()), kr(this.node.current, "blur", () => this.onBlur()) ); } unmount() {} }, ub = (e, t) => (t ? (e === t ? !0 : ub(e, t.parentElement)) : !1); function Hf(e, t) { if (!t) return; let n = new PointerEvent("pointer" + e); t(n, jl(n)); } var w_ = class extends Xr { constructor() { super(...arguments), (this.removeStartListeners = wt), (this.removeEndListeners = wt), (this.removeAccessibleListeners = wt), (this.startPointerPress = (e, t) => { if (this.isPressing) return; this.removeEndListeners(); let n = this.node.getProps(), i = nr( F, "pointerup", (s, a) => { if (!this.checkPressEnd()) return; let { onTap: l, onTapCancel: c, globalTapTarget: u, } = this.node.getProps(), f = !u && !ub(this.node.current, s.target) ? c : l; f && Q.update(() => f(s, a)); }, { passive: !(n.onTap || n.onPointerUp) } ), o = nr(F, "pointercancel", (s, a) => this.cancelPress(s, a), { passive: !(n.onTapCancel || n.onPointerCancel), }); (this.removeEndListeners = er(i, o)), this.startPress(e, t); }), (this.startAccessiblePress = () => { let e = (i) => { if (i.key !== "Enter" || this.isPressing) return; let o = (s) => { s.key !== "Enter" || !this.checkPressEnd() || Hf("up", (a, l) => { let { onTap: c } = this.node.getProps(); c && Q.postRender(() => c(a, l)); }); }; this.removeEndListeners(), (this.removeEndListeners = kr(this.node.current, "keyup", o)), Hf("down", (s, a) => { this.startPress(s, a); }); }, t = kr(this.node.current, "keydown", e), n = () => { this.isPressing && Hf("cancel", (i, o) => this.cancelPress(i, o)); }, r = kr(this.node.current, "blur", n); this.removeAccessibleListeners = er(t, r); }); } startPress(e, t) { this.isPressing = !0; let { onTapStart: n, whileTap: r } = this.node.getProps(); r && this.node.animationState && this.node.animationState.setActive("whileTap", !0), n && Q.postRender(() => n(e, t)); } checkPressEnd() { return ( this.removeEndListeners(), (this.isPressing = !1), this.node.getProps().whileTap && this.node.animationState && this.node.animationState.setActive("whileTap", !1), !Ud() ); } cancelPress(e, t) { if (!this.checkPressEnd()) return; let { onTapCancel: n } = this.node.getProps(); n && Q.postRender(() => n(e, t)); } mount() { let e = this.node.getProps(), t = nr( e.globalTapTarget ? F : this.node.current, "pointerdown", this.startPointerPress, { passive: !(e.onTapStart || e.onPointerStart) } ), n = kr(this.node.current, "focus", this.startAccessiblePress); this.removeStartListeners = er(t, n); } unmount() { this.removeStartListeners(), this.removeEndListeners(), this.removeAccessibleListeners(); } }, fd = new WeakMap(), Wf = new WeakMap(), S_ = (e) => { let t = fd.get(e.target); t && t(e); }, k_ = (e) => { e.forEach(S_); }; function C_({ root: e, ...t }) { let n = e || document; Wf.has(n) || Wf.set(n, {}); let r = Wf.get(n), i = JSON.stringify(t); return r[i] || (r[i] = new IntersectionObserver(k_, { root: e, ...t })), r[i]; } function T_(e, t, n) { let r = C_(t); return ( fd.set(e, n), r.observe(e), () => { fd.delete(e), r.unobserve(e); } ); } var E_ = { some: 0, all: 1 }, R_ = class extends Xr { constructor() { super(...arguments), (this.hasEnteredView = !1), (this.isInView = !1); } startObserver() { this.unmount(); let { viewport: e = {} } = this.node.getProps(), { root: t, margin: n, amount: r = "some", once: i } = e, o = { root: t ? t.current : void 0, rootMargin: n, threshold: typeof r == "number" ? r : E_[r], }, s = (a) => { let { isIntersecting: l } = a; if ( this.isInView === l || ((this.isInView = l), i && !l && this.hasEnteredView) ) return; l && (this.hasEnteredView = !0), this.node.animationState && this.node.animationState.setActive("whileInView", l); let { onViewportEnter: c, onViewportLeave: u } = this.node.getProps(), f = l ? c : u; f && f(a); }; return T_(this.node.current, o, s); } mount() { this.startObserver(); } update() { if (typeof IntersectionObserver > "u") return; let { props: e, prevProps: t } = this.node; ["amount", "margin", "root"].some(P_(e, t)) && this.startObserver(); } unmount() {} }; function P_({ viewport: e = {} }, { viewport: t = {} } = {}) { return (n) => e[n] !== t[n]; } var fb = { inView: { Feature: R_ }, tap: { Feature: w_ }, focus: { Feature: x_ }, hover: { Feature: b_ }, }, db = { layout: { ProjectionNode: lb, MeasureLayout: Z0 } }, F_ = [ "animate", "circle", "defs", "desc", "ellipse", "g", "image", "line", "filter", "marker", "mask", "metadata", "path", "pattern", "polygon", "polyline", "rect", "stop", "switch", "symbol", "svg", "text", "tspan", "use", "view", ]; function Zd(e) { return typeof e != "string" || e.includes("-") ? !1 : !!(F_.indexOf(e) > -1 || /[A-Z]/u.test(e)); } function hb(e, { style: t, vars: n }, r, i) { Object.assign(e.style, t, i && i.getProjectionStyles(r)); for (let o in n) e.style.setProperty(o, n[o]); } var pb = new Set([ "baseFrequency", "diffuseConstant", "kernelMatrix", "kernelUnitLength", "keySplines", "keyTimes", "limitingConeAngle", "markerHeight", "markerWidth", "numOctaves", "targetX", "targetY", "surfaceScale", "specularConstant", "specularExponent", "stdDeviation", "tableValues", "viewBox", "gradientTransform", "pathLength", "startOffset", "textLength", "lengthAdjust", ]); function mb(e, t, n, r) { hb(e, t, void 0, r); for (let i in t.attrs) e.setAttribute(pb.has(i) ? i : zl(i), t.attrs[i]); } function gb(e, { layout: t, layoutId: n }) { return ( qr.has(e) || e.startsWith("origin") || ((t || n !== void 0) && (!!Rl[e] || e === "opacity")) ); } function Jd(e, t, n) { var r; let { style: i } = e, o = {}; for (let s in i) ($e(i[s]) || (t.style && $e(t.style[s])) || gb(s, e) || ((r = n?.getValue(s)) === null || r === void 0 ? void 0 : r.liveStyle) !== void 0) && (o[s] = i[s]); return ( n && i && typeof i.willChange == "string" && (n.applyWillChange = !1), o ); } function vb(e, t, n) { let r = Jd(e, t, n); for (let i in e) if ($e(e[i]) || $e(t[i])) { let o = zs.indexOf(i) !== -1 ? "attr" + i.charAt(0).toUpperCase() + i.substring(1) : i; r[o] = e[i]; } return r; } var eh = () => ({ style: {}, transform: {}, transformOrigin: {}, vars: {} }), yb = () => ({ ...eh(), attrs: {} }); function th(e, t, n) { let { style: r, vars: i, transformOrigin: o } = e, s = !1, a = !1; for (let l in t) { let c = t[l]; if (qr.has(l)) { s = !0; continue; } else if (t0(l)) { i[l] = c; continue; } else { let u = B0(c, Od[l]); l.startsWith("origin") ? ((a = !0), (o[l] = u)) : (r[l] = u); } } if ( (t.transform || (s || n ? (r.transform = $0(t, e.transform, n)) : r.transform && (r.transform = "none")), a) ) { let { originX: l = "50%", originY: c = "50%", originZ: u = 0 } = o; r.transformOrigin = `${l} ${c} ${u}`; } } function Ry(e, t, n) { return typeof e == "string" ? e : Z.transform(t + n * e); } function __(e, t, n) { let r = Ry(t, e.x, e.width), i = Ry(n, e.y, e.height); return `${r} ${i}`; } var I_ = { offset: "stroke-dashoffset", array: "stroke-dasharray" }, O_ = { offset: "strokeDashoffset", array: "strokeDasharray" }; function M_(e, t, n = 1, r = 0, i = !0) { e.pathLength = 1; let o = i ? I_ : O_; e[o.offset] = Z.transform(-r); let s = Z.transform(t), a = Z.transform(n); e[o.array] = `${s} ${a}`; } function nh( e, { attrX: t, attrY: n, attrScale: r, originX: i, originY: o, pathLength: s, pathSpacing: a = 1, pathOffset: l = 0, ...c }, u, f ) { if ((th(e, c, f), u)) { e.style.viewBox && (e.attrs.viewBox = e.style.viewBox); return; } (e.attrs = e.style), (e.style = {}); let { attrs: d, style: m, dimensions: y } = e; d.transform && (y && (m.transform = d.transform), delete d.transform), y && (i !== void 0 || o !== void 0 || m.transform) && (m.transformOrigin = __( y, i !== void 0 ? i : 0.5, o !== void 0 ? o : 0.5 )), t !== void 0 && (d.x = t), n !== void 0 && (d.y = n), r !== void 0 && (d.scale = r), s !== void 0 && M_(d, s, a, l, !1); } var rh = (e) => typeof e == "string" && e.toLowerCase() === "svg", L_ = { useVisualState: Gl({ scrapeMotionValuesFromProps: vb, createRenderState: yb, onMount: (e, t, { renderState: n, latestValues: r }) => { Q.read(() => { try { n.dimensions = typeof t.getBBox == "function" ? t.getBBox() : t.getBoundingClientRect(); } catch { n.dimensions = { x: 0, y: 0, width: 0, height: 0 }; } }), Q.render(() => { nh(n, r, rh(t.tagName), e.transformTemplate), mb(t, n); }); }, }), }, V_ = { useVisualState: Gl({ applyWillChange: !0, scrapeMotionValuesFromProps: Jd, createRenderState: eh, }), }; function bb(e, t, n) { for (let r in t) !$e(t[r]) && !gb(r, n) && (e[r] = t[r]); } function A_({ transformTemplate: e }, t) { return oe(() => { let n = eh(); return th(n, t, e), Object.assign({}, n.vars, n.style); }, [t]); } function D_(e, t) { let n = e.style || {}, r = {}; return bb(r, n, e), Object.assign(r, A_(e, t)), r; } function z_(e, t) { let n = {}, r = D_(e, t); return ( e.drag && e.dragListener !== !1 && ((n.draggable = !1), (r.userSelect = r.WebkitUserSelect = r.WebkitTouchCallout = "none"), (r.touchAction = e.drag === !0 ? "none" : `pan-${e.drag === "x" ? "y" : "x"}`)), e.tabIndex === void 0 && (e.onTap || e.onTapStart || e.whileTap) && (n.tabIndex = 0), (n.style = r), n ); } function B_(e, t, n, r) { let i = oe(() => { let o = yb(); return ( nh(o, t, rh(r), e.transformTemplate), { ...o.attrs, style: { ...o.style } } ); }, [t]); if (e.style) { let o = {}; bb(o, e.style, e), (i.style = { ...o, ...i.style }); } return i; } function $_(e = !1) { return (n, r, i, { latestValues: o }, s) => { let l = (Zd(n) ? B_ : z_)(r, o, s, n), c = H0(r, typeof n == "string", e), u = n !== xn ? { ...c, ...l, ref: i } : {}, { children: f } = r, d = oe(() => ($e(f) ? f.get() : f), [f]); return co(n, { ...u, children: d }); }; } function N_(e, t) { return function (r, { forwardMotionProps: i } = { forwardMotionProps: !1 }) { let s = { ...(Zd(r) ? L_ : V_), preloadedFeatures: e, useRender: $_(i), createVisualElement: t, Component: r, }; return z0(s); }; } var xb = class extends Qd { constructor() { super(...arguments), (this.KeyframeResolver = m0); } sortInstanceNodePosition(e, t) { return e.compareDocumentPosition(t) & 2 ? 1 : -1; } getBaseTargetFromProps(e, t) { return e.style ? e.style[t] : void 0; } removeValueFromRenderState(e, { vars: t, style: n }) { delete t[e], delete n[e]; } }; function j_(e) { return F.getComputedStyle(e); } var wb = class extends xb { constructor() { super(...arguments), (this.type = "html"), (this.applyWillChange = !0), (this.renderInstance = hb); } readValueFromInstance(e, t) { if (qr.has(t)) { let n = Md(t); return (n && n.default) || 0; } else { let n = j_(e), r = (t0(t) ? n.getPropertyValue(t) : n[t]) || 0; return typeof r == "string" ? r.trim() : r; } } measureInstanceViewportBox(e, { transformPagePoint: t }) { return K0(e, t); } build(e, t, n) { th(e, t, n.transformTemplate); } scrapeMotionValuesFromProps(e, t, n) { return Jd(e, t, n); } handleChildMotionValue() { this.childSubscription && (this.childSubscription(), delete this.childSubscription); let { children: e } = this.props; $e(e) && (this.childSubscription = e.on("change", (t) => { this.current && (this.current.textContent = `${t}`); })); } }, Sb = class extends xb { constructor() { super(...arguments), (this.type = "svg"), (this.isSVGTag = !1), (this.measureInstanceViewportBox = He); } getBaseTargetFromProps(e, t) { return e[t]; } readValueFromInstance(e, t) { if (qr.has(t)) { let n = Md(t); return (n && n.default) || 0; } return (t = pb.has(t) ? t : zl(t)), e.getAttribute(t); } scrapeMotionValuesFromProps(e, t, n) { return vb(e, t, n); } build(e, t, n) { nh(e, t, this.isSVGTag, n.transformTemplate); } renderInstance(e, t, n, r) { mb(e, t, n, r); } mount(e) { (this.isSVGTag = rh(e.tagName)), super.mount(e); } }, ih = (e, t) => (Zd(e) ? new Sb(t) : new wb(t, { allowProjection: e !== xn })), H_ = N_({ ...Nl, ...fb, ...cb, ...db }, ih), sn = kF(H_); var W_ = class extends Pe { getSnapshotBeforeUpdate(e) { let t = this.props.childRef.current; if (t && e.isPresent && !this.props.isPresent) { let n = this.props.sizeRef.current; (n.height = t.offsetHeight || 0), (n.width = t.offsetWidth || 0), (n.top = t.offsetTop), (n.left = t.offsetLeft); } return null; } componentDidUpdate() {} render() { return this.props.children; } }; function U_({ children: e, isPresent: t }) { let n = Ti(), r = V(null), i = V({ width: 0, height: 0, top: 0, left: 0 }), { nonce: o } = A(Rr); return ( ft(() => { let { width: s, height: a, top: l, left: c } = i.current; if (t || !r.current || !s || !a) return; r.current.dataset.motionPopId = n; let u = document.createElement("style"); return ( o && (u.nonce = o), document.head.appendChild(u), u.sheet && u.sheet.insertRule(` [data-motion-pop-id="${n}"] { position: absolute !important; width: ${s}px !important; height: ${a}px !important; top: ${l}px !important; left: ${c}px !important; } `), () => { document.head.removeChild(u); } ); }, [t]), C(W_, { isPresent: t, childRef: r, sizeRef: i, children: Sr(e, { ref: r }), }) ); } var G_ = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: i, presenceAffectsLayout: o, mode: s, }) => { let a = ir(q_), l = Ti(), c = K( (f) => { a.set(f, !0); for (let d of a.values()) if (!d) return; r && r(); }, [a, r] ), u = oe( () => ({ id: l, initial: t, isPresent: n, custom: i, onExitComplete: c, register: (f) => (a.set(f, !1), () => a.delete(f)), }), o ? [Math.random(), c] : [n, c] ); return ( oe(() => { a.forEach((f, d) => a.set(d, !1)); }, [n]), N(() => { !n && !a.size && r && r(); }, [n]), s === "popLayout" && (e = C(U_, { isPresent: n, children: e })), C(Co.Provider, { value: u, children: e }) ); }; function q_() { return new Map(); } var vl = (e) => e.key || ""; function Py(e) { let t = []; return ( bn.forEach(e, (n) => { At(n) && t.push(n); }), t ); } var oh = ({ children: e, exitBeforeEnter: t, custom: n, initial: r = !0, onExitComplete: i, presenceAffectsLayout: o = !0, mode: s = "sync", }) => { on(!t, "Replace exitBeforeEnter with mode='wait'"); let a = oe(() => Py(e), [e]), l = a.map(vl), c = V(!0), u = V(a), f = ir(() => new Map()), [d, m] = Be(a), [y, g] = Be(a); Yr(() => { (c.current = !1), (u.current = a); for (let p = 0; p < y.length; p++) { let v = vl(y[p]); l.includes(v) ? f.delete(v) : f.get(v) !== !0 && f.set(v, !1); } }, [y, l.length, l.join("-")]); let b = []; if (a !== d) { let p = [...a]; for (let v = 0; v < y.length; v++) { let x = y[v], k = vl(x); l.includes(k) || (p.splice(v, 0, x), b.push(x)); } s === "wait" && b.length && (p = b), g(Py(p)), m(a); return; } let { forceRender: h } = A(Vs); return C(ot, { children: y.map((p) => { let v = vl(p), x = a === y || l.includes(v), k = () => { if (f.has(v)) f.set(v, !0); else return; let S = !0; f.forEach((T) => { T || (S = !1); }), S && (h?.(), g(u.current), i && i()); }; return C( G_, { isPresent: x, initial: !c.current || r ? void 0 : !1, custom: x ? void 0 : n, presenceAffectsLayout: o, mode: s, onExitComplete: x ? void 0 : k, children: p, }, v ); }), }); }; function kb({ children: e, isValidProp: t, ...n }) { t && j0(t), (n = { ...A(Rr), ...n }), (n.isStatic = ir(() => n.isStatic)); let r = oe( () => n, [JSON.stringify(n.transition), n.transformPagePoint, n.reducedMotion] ); return C(Rr.Provider, { value: r, children: e }); } var Cb = be(null); function X_() { let e = V(!1); return ( Yr( () => ( (e.current = !0), () => { e.current = !1; } ), [] ), e ); } function sh() { let e = X_(), [t, n] = Be(0), r = K(() => { e.current && n(t + 1); }, [t]); return [K(() => Q.postRender(r), [r]), t]; } var Y_ = (e) => !e.isLayoutDirty && e.willUpdate(!1); function Fy() { let e = new Set(), t = new WeakMap(), n = () => e.forEach(Y_); return { add: (r) => { e.add(r), t.set(r, r.addEventListener("willUpdate", n)); }, remove: (r) => { e.delete(r); let i = t.get(r); i && (i(), t.delete(r)), n(); }, dirty: n, }; } var Tb = (e) => e === !0, K_ = (e) => Tb(e === !0) || e === "id", Eb = ({ children: e, id: t, inherit: n = !0 }) => { let r = A(Vs), i = A(Cb), [o, s] = sh(), a = V(null), l = r.id || i; a.current === null && (K_(n) && l && (t = t ? l + "-" + t : l), (a.current = { id: t, group: (Tb(n) && r.group) || Fy() })); let c = oe(() => ({ ...a.current, forceRender: o }), [s]); return C(Vs.Provider, { value: c, children: e }); }, Q_ = { renderer: ih, ...Nl }, Rb = { renderer: ih, ...Nl, ...fb }, Z_ = { ...Rb, ...cb, ...db }; function or(e) { let t = ir(() => Ye(e)), { isStatic: n } = A(Rr); if (n) { let [, r] = Be(e); N(() => t.on("change", r), []); } return t; } function Pb(e, t) { let n = or(t()), r = () => n.set(t()); return ( r(), Yr(() => { let i = () => Q.preRender(r, !1, !0), o = e.map((s) => s.on("change", i)); return () => { o.forEach((s) => s()), Dt(r); }; }), n ); } var J_ = (e) => e && typeof e == "object" && e.mix, eI = (e) => (J_(e) ? e.mix : void 0); function $s(...e) { let t = !Array.isArray(e[0]), n = t ? 0 : -1, r = e[0 + n], i = e[1 + n], o = e[2 + n], s = e[3 + n], a = ko(i, o, { mixer: eI(o[0]), ...s }); return t ? a(r) : a; } function tI(e) { (Es.current = []), e(); let t = Pb(Es.current, e); return (Es.current = void 0), t; } function zt(e, t, n, r) { if (typeof e == "function") return tI(e); let i = typeof t == "function" ? t : $s(t, n, r); return Array.isArray(e) ? _y(e, i) : _y([e], ([o]) => i(o)); } function _y(e, t) { let n = ir(() => []); return Pb(e, () => { n.length = 0; let r = e.length; for (let i = 0; i < r; i++) n[i] = e[i].get(); return t(n); }); } function Iy(e) { return typeof e == "number" ? e : parseFloat(e); } function ah(e, t = {}) { let { isStatic: n } = A(Rr), r = V(null), i = or($e(e) ? Iy(e.get()) : e), o = V(i.get()), s = V(() => {}), a = () => { let c = r.current; c && c.time === 0 && c.sample(Xe.delta), l(), (r.current = Id({ keyframes: [i.get(), o.current], velocity: i.getVelocity(), type: "spring", restDelta: 0.001, restSpeed: 0.01, ...t, onUpdate: s.current, })); }, l = () => { r.current && r.current.stop(); }; return ( ft( () => i.attach( (c, u) => n ? u(c) : ((o.current = c), (s.current = u), Q.update(a), i.get()), l ), [JSON.stringify(t)] ), Yr(() => { if ($e(e)) return e.on("change", (c) => i.set(Iy(c))); }, [i]), i ); } function lh(e, t, n) { var r; if (typeof e == "string") { let i = document; t && (on(!!t.current, "Scope provided, but no element detected."), (i = t.current)), n ? (((r = n[e]) !== null && r !== void 0) || (n[e] = i.querySelectorAll(e)), (e = n[e])) : (e = i.querySelectorAll(e)); } else e instanceof Element && (e = [e]); return Array.from(e || []); } var wl = new WeakMap(), Gr; function nI(e, t) { if (t) { let { inlineSize: n, blockSize: r } = t[0]; return { width: n, height: r }; } else return e instanceof SVGElement && "getBBox" in e ? e.getBBox() : { width: e.offsetWidth, height: e.offsetHeight }; } function rI({ target: e, contentRect: t, borderBoxSize: n }) { var r; (r = wl.get(e)) === null || r === void 0 || r.forEach((i) => { i({ target: e, contentSize: t, get size() { return nI(e, n); }, }); }); } function iI(e) { e.forEach(rI); } function oI() { typeof ResizeObserver > "u" || (Gr = new ResizeObserver(iI)); } function sI(e, t) { Gr || oI(); let n = lh(e); return ( n.forEach((r) => { let i = wl.get(r); i || ((i = new Set()), wl.set(r, i)), i.add(t), Gr?.observe(r); }), () => { n.forEach((r) => { let i = wl.get(r); i?.delete(t), i?.size || Gr?.unobserve(r); }); } ); } var Sl = new Set(), Fs; function aI() { (Fs = () => { let e = { width: F.innerWidth, height: F.innerHeight }, t = { target: F, size: e, contentSize: e }; Sl.forEach((n) => n(t)); }), F.addEventListener("resize", Fs); } function lI(e) { return ( Sl.add(e), Fs || aI(), () => { Sl.delete(e), !Sl.size && Fs && (Fs = void 0); } ); } function cI(e, t) { return typeof e == "function" ? lI(e) : sI(e, t); } var uI = 50, Oy = () => ({ current: 0, offset: [], progress: 0, scrollLength: 0, targetOffset: 0, targetLength: 0, containerLength: 0, velocity: 0, }), fI = () => ({ time: 0, x: Oy(), y: Oy() }), dI = { x: { length: "Width", position: "Left" }, y: { length: "Height", position: "Top" }, }; function My(e, t, n, r) { let i = n[t], { length: o, position: s } = dI[t], a = i.current, l = n.time; (i.current = e[`scroll${s}`]), (i.scrollLength = e[`scroll${o}`] - e[`client${o}`]), (i.offset.length = 0), (i.offset[0] = 0), (i.offset[1] = i.scrollLength), (i.progress = Er(0, i.scrollLength, i.current)); let c = r - l; i.velocity = c > uI ? 0 : kd(i.current - a, c); } function hI(e, t, n) { My(e, "x", t, n), My(e, "y", t, n), (t.time = n); } function pI(e, t) { let n = { x: 0, y: 0 }, r = e; for (; r && r !== t; ) if (r instanceof HTMLElement) (n.x += r.offsetLeft), (n.y += r.offsetTop), (r = r.offsetParent); else if (r.tagName === "svg") { let i = r.getBoundingClientRect(); r = r.parentElement; let o = r.getBoundingClientRect(); (n.x += i.left - o.left), (n.y += i.top - o.top); } else if (r instanceof SVGGraphicsElement) { let { x: i, y: o } = r.getBBox(); (n.x += i), (n.y += o); let s = null, a = r.parentNode; for (; !s; ) a.tagName === "svg" && (s = a), (a = r.parentNode); r = s; } else break; return n; } var mI = { Enter: [ [0, 1], [1, 1], ], Exit: [ [0, 0], [1, 0], ], Any: [ [1, 0], [0, 1], ], All: [ [0, 0], [1, 1], ], }, dd = { start: 0, center: 0.5, end: 1 }; function Ly(e, t, n = 0) { let r = 0; if ((e in dd && (e = dd[e]), typeof e == "string")) { let i = parseFloat(e); e.endsWith("px") ? (r = i) : e.endsWith("%") ? (e = i / 100) : e.endsWith("vw") ? (r = (i / 100) * document.documentElement.clientWidth) : e.endsWith("vh") ? (r = (i / 100) * document.documentElement.clientHeight) : (e = i); } return typeof e == "number" && (r = t * e), n + r; } var gI = [0, 0]; function vI(e, t, n, r) { let i = Array.isArray(e) ? e : gI, o = 0, s = 0; return ( typeof e == "number" ? (i = [e, e]) : typeof e == "string" && ((e = e.trim()), e.includes(" ") ? (i = e.split(" ")) : (i = [e, dd[e] ? e : "0"])), (o = Ly(i[0], n, r)), (s = Ly(i[1], t)), o - s ); } var yI = { x: 0, y: 0 }; function bI(e) { return "getBBox" in e && e.tagName !== "svg" ? e.getBBox() : { width: e.clientWidth, height: e.clientHeight }; } function xI(e, t, n) { let { offset: r = mI.All } = n, { target: i = e, axis: o = "y" } = n, s = o === "y" ? "height" : "width", a = i !== e ? pI(i, e) : yI, l = i === e ? { width: e.scrollWidth, height: e.scrollHeight } : bI(i), c = { width: e.clientWidth, height: e.clientHeight }; t[o].offset.length = 0; let u = !t[o].interpolate, f = r.length; for (let d = 0; d < f; d++) { let m = vI(r[d], c[s], l[s], a[o]); !u && m !== t[o].interpolatorOffsets[d] && (u = !0), (t[o].offset[d] = m); } u && ((t[o].interpolate = ko(t[o].offset, Fd(r))), (t[o].interpolatorOffsets = [...t[o].offset])), (t[o].progress = t[o].interpolate(t[o].current)); } function wI(e, t = e, n) { if (((n.x.targetOffset = 0), (n.y.targetOffset = 0), t !== e)) { let r = t; for (; r && r !== e; ) (n.x.targetOffset += r.offsetLeft), (n.y.targetOffset += r.offsetTop), (r = r.offsetParent); } (n.x.targetLength = t === e ? t.scrollWidth : t.clientWidth), (n.y.targetLength = t === e ? t.scrollHeight : t.clientHeight), (n.x.containerLength = e.clientWidth), (n.y.containerLength = e.clientHeight); } function SI(e, t, n, r = {}) { return { measure: () => wI(e, r.target, n), update: (i) => { hI(e, n, i), (r.offset || r.target) && xI(e, n, r); }, notify: () => t(n), }; } var ws = new WeakMap(), Vy = new WeakMap(), Uf = new WeakMap(), Ay = (e) => (e === document.documentElement ? F : e); function Kr(e, { container: t = document.documentElement, ...n } = {}) { let r = Uf.get(t); r || ((r = new Set()), Uf.set(t, r)); let i = fI(), o = SI(t, e, i, n); if ((r.add(o), !ws.has(t))) { let a = () => { for (let d of r) d.measure(); }, l = () => { for (let d of r) d.update(Xe.timestamp); }, c = () => { for (let d of r) d.notify(); }, u = () => { Q.read(a, !1, !0), Q.read(l, !1, !0), Q.update(c, !1, !0); }; ws.set(t, u); let f = Ay(t); F.addEventListener("resize", u, { passive: !0 }), t !== document.documentElement && Vy.set(t, cI(t, u)), f.addEventListener("scroll", u, { passive: !0 }); } let s = ws.get(t); return ( Q.read(s, !1, !0), () => { var a; Dt(s); let l = Uf.get(t); if (!l || (l.delete(o), l.size)) return; let c = ws.get(t); ws.delete(t), c && (Ay(t).removeEventListener("scroll", c), (a = Vy.get(t)) === null || a === void 0 || a(), F.removeEventListener("resize", c)); } ); } function Fb(e, t) { let n, r = () => { let { currentTime: i } = t, s = (i === null ? 0 : i.value) / 100; n !== s && e(s), (n = s); }; return Q.update(r, !0), () => Dt(r); } function kI({ source: e, container: t, axis: n = "y" }) { e && (t = e); let r = { value: 0 }, i = Kr( (o) => { r.value = o[n].progress * 100; }, { container: t, axis: n } ); return { currentTime: r, cancel: i }; } var Gf = new Map(); function _b({ source: e, container: t = document.documentElement, axis: n = "y", } = {}) { e && (t = e), Gf.has(t) || Gf.set(t, {}); let r = Gf.get(t); return ( r[n] || (r[n] = x0() ? new ScrollTimeline({ source: t, axis: n }) : kI({ source: t, axis: n })), r[n] ); } function CI(e) { return e.length === 2; } function Ib(e) { return e && (e.target || e.offset); } function TI(e, t) { return CI(e) || Ib(t) ? Kr((n) => { e(n[t.axis].progress, n); }, t) : Fb(e, _b(t)); } function EI(e, t) { if (Ib(t)) return ( e.pause(), Kr((n) => { e.time = e.duration * n[t.axis].progress; }, t) ); { let n = _b(t); return e.attachTimeline( n, (r) => ( r.pause(), Fb((i) => { r.time = r.duration * i; }, n) ) ); } } function Ob(e, { axis: t = "y", ...n } = {}) { let r = { axis: t, ...n }; return typeof e == "function" ? TI(e, r) : EI(e, r); } function Dy(e, t) { wo( !!(!t || t.current), `You have defined a ${e} options but the provided ref is not yet hydrated, probably because it's defined higher up the tree. Try calling useScroll() in the same component as the ref, or setting its \`layoutEffect: false\` option.` ); } var RI = () => ({ scrollX: Ye(0), scrollY: Ye(0), scrollXProgress: Ye(0), scrollYProgress: Ye(0), }); function Mb({ container: e, target: t, layoutEffect: n = !0, ...r } = {}) { let i = ir(RI); return ( (n ? Yr : N)( () => ( Dy("target", t), Dy("container", e), Ob( (s, { x: a, y: l }) => { i.scrollX.set(a.current), i.scrollXProgress.set(a.progress), i.scrollY.set(l.current), i.scrollYProgress.set(l.progress); }, { ...r, container: e?.current || void 0, target: t?.current || void 0, } ) ), [e, t, JSON.stringify(r.offset)] ), i ); } function Lb() { !Kd.current && W0(); let [e] = Be(Pl.current); return e; } function Oi() { let e = Lb(), { reducedMotion: t } = A(Rr); return t === "never" ? !1 : t === "always" ? !0 : e; } function PI(e) { e.values.forEach((t) => t.stop()); } function hd(e, t) { [...t].reverse().forEach((r) => { let i = e.getVariant(r); i && $d(e, i), e.variantChildren && e.variantChildren.forEach((o) => { hd(o, t); }); }); } function FI(e, t) { if (Array.isArray(t)) return hd(e, t); if (typeof t == "string") return hd(e, [t]); $d(e, t); } function Vb() { let e = !1, t = new Set(), n = { subscribe(r) { return t.add(r), () => void t.delete(r); }, start(r, i) { on( e, "controls.start() should only be called after a component has mounted. Consider calling within a useEffect hook." ); let o = []; return ( t.forEach((s) => { o.push(jd(s, r, { transitionOverride: i })); }), Promise.all(o) ); }, set(r) { return ( on( e, "controls.set() should only be called after a component has mounted. Consider calling within a useEffect hook." ), t.forEach((i) => { FI(i, r); }) ); }, stop() { t.forEach((r) => { PI(r); }); }, mount() { return ( (e = !0), () => { (e = !1), n.stop(); } ); }, }; return n; } var Ab = (e, t, n) => { let r = t - e; return ((((n - e) % r) + r) % r) + e; }; function _I(e, t = 100, n) { let r = n({ ...e, keyframes: [0, t] }), i = Math.min(l0(r), ed); return { type: "keyframes", ease: (o) => r.next(i * o).value / t, duration: Jn(i), }; } function ch(e) { return typeof e == "object" && !Array.isArray(e); } function Db(e, t, n, r) { return typeof e == "string" && ch(t) ? lh(e, n, r) : e instanceof NodeList ? Array.from(e) : Array.isArray(e) ? e : [e]; } function zy(e, t, n, r) { var i; return typeof t == "number" ? t : t.startsWith("-") || t.startsWith("+") ? Math.max(0, e + parseFloat(t)) : t === "<" ? n : (i = r.get(t)) !== null && i !== void 0 ? i : e; } function II(e, t) { return r0(e) ? e[Ab(0, e.length, t)] : e; } function OI(e, t, n) { for (let r = 0; r < e.length; r++) { let i = e[r]; i.at > t && i.at < n && (Al(e, i), r--); } } function MI(e, t, n, r, i, o) { OI(e, i, o); for (let s = 0; s < t.length; s++) e.push({ value: t[s], at: Oe(i, o, r[s]), easing: II(n, s) }); } function LI(e, t) { return e.at === t.at ? e.value === null ? 1 : t.value === null ? -1 : 0 : e.at - t.at; } var VI = "easeInOut"; function AI(e, { defaultTransition: t = {}, ...n } = {}, r, i) { let o = t.duration || 0.3, s = new Map(), a = new Map(), l = {}, c = new Map(), u = 0, f = 0, d = 0; for (let m = 0; m < e.length; m++) { let y = e[m]; if (typeof y == "string") { c.set(y, f); continue; } else if (!Array.isArray(y)) { c.set(y.name, zy(f, y.at, u, c)); continue; } let [g, b, h = {}] = y; h.at !== void 0 && (f = zy(f, h.at, u, c)); let p = 0, v = (x, k, S, T = 0, R = 0) => { let O = DI(x), { delay: I = 0, times: j = Fd(O), type: z = "keyframes", ...$ } = k, { ease: ie = t.ease || "easeOut", duration: H } = k, X = typeof I == "function" ? I(T, R) : I, U = O.length, J = Ml(z) ? z : i?.[z]; if (U <= 2 && J) { let ce = 100; if (U === 2 && $I(O)) { let Je = O[1] - O[0]; ce = Math.abs(Je); } let fe = { ...$ }; H !== void 0 && (fe.duration = Vn(H)); let ee = _I(fe, ce, J); (ie = ee.ease), (H = ee.duration); } H ?? (H = o); let ae = f + X, W = ae + H; j.length === 1 && j[0] === 0 && (j[1] = 1); let me = j.length - O.length; me > 0 && i0(j, me), O.length === 1 && O.unshift(null), MI(S, O, ie, j, ae, W), (p = Math.max(X + H, p)), (d = Math.max(W, d)); }; if ($e(g)) { let x = By(g, a); v(b, h, $y("default", x)); } else { let x = Db(g, b, r, l), k = x.length; for (let S = 0; S < k; S++) { (b = b), (h = h); let T = x[S], R = By(T, a); for (let O in b) v(b[O], zI(h, O), $y(O, R), S, k); } } (u = f), (f += p); } return ( a.forEach((m, y) => { for (let g in m) { let b = m[g]; b.sort(LI); let h = [], p = [], v = []; for (let k = 0; k < b.length; k++) { let { at: S, value: T, easing: R } = b[k]; h.push(T), p.push(Er(0, d, S)), v.push(R || "easeOut"); } p[0] !== 0 && (p.unshift(0), h.unshift(h[0]), v.unshift(VI)), p[p.length - 1] !== 1 && (p.push(1), h.push(null)), s.has(y) || s.set(y, { keyframes: {}, transition: {} }); let x = s.get(y); (x.keyframes[g] = h), (x.transition[g] = { ...t, duration: d, ease: v, times: p, ...n }); } }), s ); } function By(e, t) { return !t.has(e) && t.set(e, {}), t.get(e); } function $y(e, t) { return t[e] || (t[e] = []), t[e]; } function DI(e) { return Array.isArray(e) ? e : [e]; } function zI(e, t) { return e && e[t] ? { ...e, ...e[t] } : { ...e }; } var BI = (e) => typeof e == "number", $I = (e) => e.every(BI); function NI(e, t) { return e in t; } var jI = class extends Qd { constructor() { super(...arguments), (this.type = "object"); } readValueFromInstance(e, t) { if (NI(t, e)) { let n = e[t]; if (typeof n == "string" || typeof n == "number") return n; } } getBaseTargetFromProps() {} removeValueFromRenderState(e, t) { delete t.output[e]; } measureInstanceViewportBox() { return He(); } build(e, t) { Object.assign(e.output, t); } renderInstance(e, { output: t }) { Object.assign(e, t); } sortInstanceNodePosition() { return 0; } }; function HI(e) { let t = { presenceContext: null, props: {}, visualState: { renderState: { transform: {}, transformOrigin: {}, style: {}, vars: {}, attrs: {}, }, latestValues: {}, }, }, n = rb(e) ? new Sb(t) : new wb(t); n.mount(e), rr.set(e, n); } function WI(e) { let t = { presenceContext: null, props: {}, visualState: { renderState: { output: {} }, latestValues: {} }, }, n = new jI(t); n.mount(e), rr.set(e, n); } function UI(e, t) { return $e(e) || typeof e == "number" || (typeof e == "string" && !ch(t)); } function zb(e, t, n, r) { let i = []; if (UI(e, t)) i.push(ib(e, (ch(t) && t.default) || t, n && (n.default || n))); else { let o = Db(e, t, r), s = o.length; on(!!s, "No valid elements provided."); for (let a = 0; a < s; a++) { let l = o[a], c = l instanceof Element ? HI : WI; rr.has(l) || c(l); let u = rr.get(l), f = { ...n }; "delay" in f && typeof f.delay == "function" && (f.delay = f.delay(a, s)), i.push(...Nd(u, { ...t, transition: f }, {})); } } return i; } function GI(e, t, n) { let r = []; return ( AI(e, t, n, { spring: Ds }).forEach( ({ keyframes: o, transition: s }, a) => { r.push(...zb(a, o, s)); } ), r ); } function qI(e) { return Array.isArray(e) && Array.isArray(e[0]); } function Bb(e) { function t(n, r, i) { let o = []; qI(n) ? (o = GI(n, r, e)) : (o = zb(n, r, i, e)); let s = new w0(o); return e && e.animations.push(s), s; } return t; } var sr = Bb(); function $b() { let e = ir(Vb); return Yr(e.mount, []), e; } var Nb = $b; var XI = { some: 0, all: 1 }; function ql(e, t, { root: n, margin: r, amount: i = "some" } = {}) { let o = lh(e), s = new WeakMap(), a = (c) => { c.forEach((u) => { let f = s.get(u.target); if (u.isIntersecting !== !!f) if (u.isIntersecting) { let d = t(u); typeof d == "function" ? s.set(u.target, d) : l.unobserve(u.target); } else f && (f(u), s.delete(u.target)); }); }, l = new IntersectionObserver(a, { root: n, rootMargin: r, threshold: typeof i == "number" ? i : XI[i], }); return o.forEach((c) => l.observe(c)), () => l.disconnect(); } function YI(e, { root: t, margin: n, amount: r, once: i = !1 } = {}) { let [o, s] = Be(!1); return ( N(() => { if (!e.current || (i && o)) return; let a = () => (s(!0), i ? void 0 : () => s(!1)), l = { root: (t && t.current) || void 0, margin: n, amount: r }; return ql(e.current, a, l); }, [t, e, n, i, r]), o ); } function Xl(e) { return e !== null && typeof e == "object" && Yd in e; } function uh(e) { if (Xl(e)) return e[Yd]; } function fh() { return KI; } function KI(e) { Ii.current && ((Ii.current.isUpdating = !1), Ii.current.blockUpdate(), e && e()); } function jb() { let [e, t] = sh(), n = fh(), r = V(); return ( N(() => { Q.postRender(() => Q.postRender(() => { t === r.current && (Cl.current = !1); }) ); }, [t]), (i) => { n(() => { (Cl.current = !0), e(), i(), (r.current = t + 1); }); } ); } function Hb() { return K(() => { let t = Ii.current; t && t.resetTree(); }, []); } var Ny = () => ({}); var $6 = Gl({ scrapeMotionValuesFromProps: Ny, createRenderState: Ny }); var Wb = {}; ov(Wb, { Group: () => JI, Item: () => rO }); var Ub = be(null); function QI(e, t, n, r) { if (!r) return e; let i = e.findIndex((u) => u.value === t); if (i === -1) return e; let o = r > 0 ? 1 : -1, s = e[i + o]; if (!s) return e; let a = e[i], l = s.layout, c = Oe(l.min, l.max, 0.5); return (o === 1 && a.layout.max + n > c) || (o === -1 && a.layout.min + n < c) ? PP(e, i, i + o) : e; } function ZI( { children: e, as: t = "ul", axis: n = "y", onReorder: r, values: i, ...o }, s ) { let a = ir(() => sn[t]), l = [], c = V(!1); on(!!i, "Reorder.Group must be provided a values prop"); let u = { axis: n, registerItem: (f, d) => { let m = l.findIndex((y) => f === y.value); m !== -1 ? (l[m].layout = d[n]) : l.push({ value: f, layout: d[n] }), l.sort(tO); }, updateOrder: (f, d, m) => { if (c.current) return; let y = QI(l, f, d, m); l !== y && ((c.current = !0), r(y.map(eO).filter((g) => i.indexOf(g) !== -1))); }, }; return ( N(() => { c.current = !1; }), C(a, { ...o, ref: s, ignoreStrict: !0, children: C(Ub.Provider, { value: u, children: e }), }) ); } var JI = De(ZI); function eO(e) { return e.value; } function tO(e, t) { return e.layout.min - t.layout.min; } function jy(e, t = 0) { return $e(e) ? e : or(t); } function nO( { children: e, style: t = {}, value: n, as: r = "li", onDrag: i, layout: o = !0, ...s }, a ) { let l = ir(() => sn[r]), c = A(Ub), u = { x: jy(t.x), y: jy(t.y) }, f = zt([u.x, u.y], ([g, b]) => (g || b ? 1 : "unset")); on(!!c, "Reorder.Item must be a child of Reorder.Group"); let { axis: d, registerItem: m, updateOrder: y } = c; return C(l, { drag: d, ...s, dragSnapToOrigin: !0, style: { ...t, x: u.x, y: u.y, zIndex: f }, layout: o, onDrag: (g, b) => { let { velocity: h } = b; h[d] && y(n, u[d].get(), h[d]), i && i(g, b); }, onLayoutMeasure: (g) => m(n, g), ref: a, ignoreStrict: !0, children: e, }); } var rO = De(nO); function iO(e, t) { if (e === "first") return 0; { let n = t - 1; return e === "last" ? n : n / 2; } } function dh(e = 0.1, { startDelay: t = 0, from: n = 0, ease: r } = {}) { return (i, o) => { let s = typeof n == "number" ? n : iO(n, o), a = Math.abs(s - i), l = e * a; if (r) { let c = o * e; l = Qf(r)(l / c) * c; } return t + l; }; } var oO = Ss.reduce((e, t) => ((e[t] = (n) => Dt(n)), e), {}); var $M = {}; Rf($M, { __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: () => PM, createPortal: () => FM, createRoot: () => _M, default: () => l1, findDOMNode: () => IM, flushSync: () => OM, hydrate: () => MM, hydrateRoot: () => LM, render: () => VM, unmountComponentAtNode: () => AM, unstable_batchedUpdates: () => DM, unstable_renderSubtreeIntoContainer: () => zM, version: () => BM, }); var ec = {}; Rf(ec, { default: () => te, unstable_IdlePriority: () => lO, unstable_ImmediatePriority: () => cO, unstable_LowPriority: () => uO, unstable_NormalPriority: () => fO, unstable_Profiling: () => dO, unstable_UserBlockingPriority: () => hO, unstable_cancelCallback: () => pO, unstable_continueExecution: () => mO, unstable_forceFrameRate: () => gO, unstable_getCurrentPriorityLevel: () => vO, unstable_getFirstCallbackNode: () => yO, unstable_next: () => bO, unstable_now: () => aO, unstable_pauseExecution: () => xO, unstable_requestPaint: () => wO, unstable_runWithPriority: () => SO, unstable_scheduleCallback: () => kO, unstable_shouldYield: () => CO, unstable_wrapCallback: () => TO, }); var te = {}; function gh(e, t) { var n = e.length; e.push(t); e: for (; 0 < n; ) { var r = (n - 1) >>> 1, i = e[r]; if (!(0 < Yl(i, t))) break e; (e[r] = t), (e[n] = i), (n = r); } } function An(e) { return e.length === 0 ? null : e[0]; } function Ql(e) { if (e.length === 0) return null; var t = e[0], n = e.pop(); if (n !== t) { e[0] = n; e: for (var r = 0, i = e.length, o = i >>> 1; r < o; ) { var s = 2 * (r + 1) - 1, a = e[s], l = s + 1, c = e[l]; if (0 > Yl(a, n)) l < i && 0 > Yl(c, a) ? ((e[r] = c), (e[l] = n), (r = l)) : ((e[r] = a), (e[s] = n), (r = s)); else { if (!(l < i && 0 > Yl(c, n))) break e; (e[r] = c), (e[l] = n), (r = l); } } } return t; } function Yl(e, t) { var n = e.sortIndex - t.sortIndex; return n !== 0 ? n : e.id - t.id; } typeof performance == "object" && typeof performance.now == "function" ? ((Gb = performance), (te.unstable_now = function () { return Gb.now(); })) : ((hh = Date), (qb = hh.now()), (te.unstable_now = function () { return hh.now() - qb; })); var Gb, hh, qb, ar = [], Qr = [], sO = 1, kn = null, Pt = 3, Zl = !1, Mi = !1, js = !1, Kb = typeof setTimeout == "function" ? setTimeout : null, Qb = typeof clearTimeout == "function" ? clearTimeout : null, Xb = typeof setImmediate < "u" ? setImmediate : null; typeof Re < "u" && Re.scheduling !== void 0 && Re.scheduling.isInputPending !== void 0 && Re.scheduling.isInputPending.bind(Re.scheduling); function vh(e) { for (var t = An(Qr); t !== null; ) { if (t.callback === null) Ql(Qr); else { if (!(t.startTime <= e)) break; Ql(Qr), (t.sortIndex = t.expirationTime), gh(ar, t); } t = An(Qr); } } function yh(e) { if (((js = !1), vh(e), !Mi)) if (An(ar) !== null) (Mi = !0), xh(bh); else { var t = An(Qr); t !== null && wh(yh, t.startTime - e); } } function bh(e, t) { (Mi = !1), js && ((js = !1), Qb(Hs), (Hs = -1)), (Zl = !0); var n = Pt; try { for ( vh(t), kn = An(ar); kn !== null && (!(kn.expirationTime > t) || (e && !ex())); ) { var r = kn.callback; if (typeof r == "function") { (kn.callback = null), (Pt = kn.priorityLevel); var i = r(kn.expirationTime <= t); (t = te.unstable_now()), typeof i == "function" ? (kn.callback = i) : kn === An(ar) && Ql(ar), vh(t); } else Ql(ar); kn = An(ar); } if (kn !== null) var o = !0; else { var s = An(Qr); s !== null && wh(yh, s.startTime - t), (o = !1); } return o; } finally { (kn = null), (Pt = n), (Zl = !1); } } var Jl = !1, Kl = null, Hs = -1, Zb = 5, Jb = -1; function ex() { return !(te.unstable_now() - Jb < Zb); } function ph() { if (Kl !== null) { var e = te.unstable_now(); Jb = e; var t = !0; try { t = Kl(!0, e); } finally { t ? Ns() : ((Jl = !1), (Kl = null)); } } else Jl = !1; } var Ns; typeof Xb == "function" ? (Ns = function () { Xb(ph); }) : typeof MessageChannel < "u" ? ((mh = new MessageChannel()), (Yb = mh.port2), (mh.port1.onmessage = ph), (Ns = function () { Yb.postMessage(null); })) : (Ns = function () { Kb(ph, 0); }); var mh, Yb; function xh(e) { (Kl = e), Jl || ((Jl = !0), Ns()); } function wh(e, t) { Hs = Kb(function () { e(te.unstable_now()); }, t); } te.unstable_IdlePriority = 5; te.unstable_ImmediatePriority = 1; te.unstable_LowPriority = 4; te.unstable_NormalPriority = 3; te.unstable_Profiling = null; te.unstable_UserBlockingPriority = 2; te.unstable_cancelCallback = function (e) { e.callback = null; }; te.unstable_continueExecution = function () { Mi || Zl || ((Mi = !0), xh(bh)); }; te.unstable_forceFrameRate = function (e) { 0 > e || 125 < e ? console.error( "forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported" ) : (Zb = 0 < e ? Math.floor(1e3 / e) : 5); }; te.unstable_getCurrentPriorityLevel = function () { return Pt; }; te.unstable_getFirstCallbackNode = function () { return An(ar); }; te.unstable_next = function (e) { switch (Pt) { case 1: case 2: case 3: var t = 3; break; default: t = Pt; } var n = Pt; Pt = t; try { return e(); } finally { Pt = n; } }; te.unstable_pauseExecution = function () {}; te.unstable_requestPaint = function () {}; te.unstable_runWithPriority = function (e, t) { switch (e) { case 1: case 2: case 3: case 4: case 5: break; default: e = 3; } var n = Pt; Pt = e; try { return t(); } finally { Pt = n; } }; te.unstable_scheduleCallback = function (e, t, n) { var r = te.unstable_now(); switch ( (typeof n == "object" && n !== null ? ((n = n.delay), (n = typeof n == "number" && 0 < n ? r + n : r)) : (n = r), e) ) { case 1: var i = -1; break; case 2: i = 250; break; case 5: i = 1073741823; break; case 4: i = 1e4; break; default: i = 5e3; } return ( (i = n + i), (e = { id: sO++, callback: t, priorityLevel: e, startTime: n, expirationTime: i, sortIndex: -1, }), n > r ? ((e.sortIndex = n), gh(Qr, e), An(ar) === null && e === An(Qr) && (js ? (Qb(Hs), (Hs = -1)) : (js = !0), wh(yh, n - r))) : ((e.sortIndex = i), gh(ar, e), Mi || Zl || ((Mi = !0), xh(bh))), e ); }; te.unstable_shouldYield = ex; te.unstable_wrapCallback = function (e) { var t = Pt; return function () { var n = Pt; Pt = t; try { return e.apply(this, arguments); } finally { Pt = n; } }; }; var aO = te.unstable_now, lO = te.unstable_IdlePriority, cO = te.unstable_ImmediatePriority, uO = te.unstable_LowPriority, fO = te.unstable_NormalPriority, dO = te.unstable_Profiling, hO = te.unstable_UserBlockingPriority, pO = te.unstable_cancelCallback, mO = te.unstable_continueExecution, gO = te.unstable_forceFrameRate, vO = te.unstable_getCurrentPriorityLevel, yO = te.unstable_getFirstCallbackNode, bO = te.unstable_next, xO = te.unstable_pauseExecution, wO = te.unstable_requestPaint, SO = te.unstable_runWithPriority, kO = te.unstable_scheduleCallback, CO = te.unstable_shouldYield, TO = te.unstable_wrapCallback; var EO = "default" in Et ? w : Et, RO = "default" in ec ? te : ec, fn = {}, aw = EO, un = RO; function M(e) { for ( var t = "https://reactjs.org/docs/error-decoder.html?invariant=" + e, n = 1; n < arguments.length; n++ ) t += "&args[]=" + encodeURIComponent(arguments[n]); return ( "Minified React error #" + e + "; visit " + t + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings." ); } var lw = new Set(), fa = {}; function Gi(e, t) { Uo(e, t), Uo(e + "Capture", t); } function Uo(e, t) { for (fa[e] = t, e = 0; e < t.length; e++) lw.add(t[e]); } var Mr = !( typeof F > "u" || typeof F.document > "u" || typeof F.document.createElement > "u" ), Wh = Object.prototype.hasOwnProperty, PO = /^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/, tx = {}, nx = {}; function FO(e) { return Wh.call(nx, e) ? !0 : Wh.call(tx, e) ? !1 : PO.test(e) ? (nx[e] = !0) : ((tx[e] = !0), !1); } function _O(e, t, n, r) { if (n !== null && n.type === 0) return !1; switch (typeof t) { case "function": case "symbol": return !0; case "boolean": return r ? !1 : n !== null ? !n.acceptsBooleans : ((e = e.toLowerCase().slice(0, 5)), e !== "data-" && e !== "aria-"); default: return !1; } } function IO(e, t, n, r) { if (t === null || typeof t > "u" || _O(e, t, n, r)) return !0; if (r) return !1; if (n !== null) switch (n.type) { case 3: return !t; case 4: return t === !1; case 5: return isNaN(t); case 6: return isNaN(t) || 1 > t; } return !1; } function Nt(e, t, n, r, i, o, s) { (this.acceptsBooleans = t === 2 || t === 3 || t === 4), (this.attributeName = r), (this.attributeNamespace = i), (this.mustUseProperty = n), (this.propertyName = e), (this.type = t), (this.sanitizeURL = o), (this.removeEmptyString = s); } var Ct = {}; "children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style" .split(" ") .forEach(function (e) { Ct[e] = new Nt(e, 0, !1, e, null, !1, !1); }); [ ["acceptCharset", "accept-charset"], ["className", "class"], ["htmlFor", "for"], ["httpEquiv", "http-equiv"], ].forEach(function (e) { var t = e[0]; Ct[t] = new Nt(t, 1, !1, e[1], null, !1, !1); }); ["contentEditable", "draggable", "spellCheck", "value"].forEach(function (e) { Ct[e] = new Nt(e, 2, !1, e.toLowerCase(), null, !1, !1); }); [ "autoReverse", "externalResourcesRequired", "focusable", "preserveAlpha", ].forEach(function (e) { Ct[e] = new Nt(e, 2, !1, e, null, !1, !1); }); "allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope" .split(" ") .forEach(function (e) { Ct[e] = new Nt(e, 3, !1, e.toLowerCase(), null, !1, !1); }); ["checked", "multiple", "muted", "selected"].forEach(function (e) { Ct[e] = new Nt(e, 3, !0, e, null, !1, !1); }); ["capture", "download"].forEach(function (e) { Ct[e] = new Nt(e, 4, !1, e, null, !1, !1); }); ["cols", "rows", "size", "span"].forEach(function (e) { Ct[e] = new Nt(e, 6, !1, e, null, !1, !1); }); ["rowSpan", "start"].forEach(function (e) { Ct[e] = new Nt(e, 5, !1, e.toLowerCase(), null, !1, !1); }); var Vp = /[\-:]([a-z])/g; function Ap(e) { return e[1].toUpperCase(); } "accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height" .split(" ") .forEach(function (e) { var t = e.replace(Vp, Ap); Ct[t] = new Nt(t, 1, !1, e, null, !1, !1); }); "xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type" .split(" ") .forEach(function (e) { var t = e.replace(Vp, Ap); Ct[t] = new Nt(t, 1, !1, e, "http://www.w3.org/1999/xlink", !1, !1); }); ["xml:base", "xml:lang", "xml:space"].forEach(function (e) { var t = e.replace(Vp, Ap); Ct[t] = new Nt(t, 1, !1, e, "http://www.w3.org/XML/1998/namespace", !1, !1); }); ["tabIndex", "crossOrigin"].forEach(function (e) { Ct[e] = new Nt(e, 1, !1, e.toLowerCase(), null, !1, !1); }); Ct.xlinkHref = new Nt( "xlinkHref", 1, !1, "xlink:href", "http://www.w3.org/1999/xlink", !0, !1 ); ["src", "href", "action", "formAction"].forEach(function (e) { Ct[e] = new Nt(e, 1, !1, e.toLowerCase(), null, !0, !0); }); function Dp(e, t, n, r) { var i = Ct.hasOwnProperty(t) ? Ct[t] : null; (i !== null ? i.type !== 0 : r || !(2 < t.length) || (t[0] !== "o" && t[0] !== "O") || (t[1] !== "n" && t[1] !== "N")) && (IO(t, n, i, r) && (n = null), r || i === null ? FO(t) && (n === null ? e.removeAttribute(t) : e.setAttribute(t, "" + n)) : i.mustUseProperty ? (e[i.propertyName] = n === null ? i.type !== 3 && "" : n) : ((t = i.attributeName), (r = i.attributeNamespace), n === null ? e.removeAttribute(t) : ((i = i.type), (n = i === 3 || (i === 4 && n === !0) ? "" : "" + n), r ? e.setAttributeNS(r, t, n) : e.setAttribute(t, n)))); } var Dr = aw.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, tc = Symbol.for("react.element"), Ro = Symbol.for("react.portal"), Po = Symbol.for("react.fragment"), zp = Symbol.for("react.strict_mode"), Uh = Symbol.for("react.profiler"), cw = Symbol.for("react.provider"), uw = Symbol.for("react.context"), Bp = Symbol.for("react.forward_ref"), Gh = Symbol.for("react.suspense"), qh = Symbol.for("react.suspense_list"), $p = Symbol.for("react.memo"), Jr = Symbol.for("react.lazy"); Symbol.for("react.scope"); Symbol.for("react.debug_trace_mode"); var fw = Symbol.for("react.offscreen"); Symbol.for("react.legacy_hidden"); Symbol.for("react.cache"); Symbol.for("react.tracing_marker"); var rx = Symbol.iterator; function Ws(e) { return e === null || typeof e != "object" ? null : ((e = (rx && e[rx]) || e["@@iterator"]), typeof e == "function" ? e : null); } var Sh, Ge = Object.assign; function Zs(e) { if (Sh === void 0) try { throw Error(); } catch (n) { var t = n.stack.trim().match(/\n( *(at )?)/); Sh = (t && t[1]) || ""; } return ( ` ` + Sh + e ); } var kh = !1; function Ch(e, t) { if (!e || kh) return ""; kh = !0; var n = Error.prepareStackTrace; Error.prepareStackTrace = void 0; try { if (t) if ( ((t = function () { throw Error(); }), Object.defineProperty(t.prototype, "props", { set: function () { throw Error(); }, }), typeof Reflect == "object" && Reflect.construct) ) { try { Reflect.construct(t, []); } catch (c) { var r = c; } Reflect.construct(e, [], t); } else { try { t.call(); } catch (c) { r = c; } e.call(t.prototype); } else { try { throw Error(); } catch (c) { r = c; } e(); } } catch (c) { if (c && r && typeof c.stack == "string") { for ( var i = c.stack.split(` `), o = r.stack.split(` `), s = i.length - 1, a = o.length - 1; 1 <= s && 0 <= a && i[s] !== o[a]; ) a--; for (; 1 <= s && 0 <= a; s--, a--) if (i[s] !== o[a]) { if (s !== 1 || a !== 1) do if ((s--, a--, 0 > a || i[s] !== o[a])) { var l = ` ` + i[s].replace(" at new ", " at "); return ( e.displayName && l.includes("") && (l = l.replace("", e.displayName)), l ); } while (1 <= s && 0 <= a); break; } } } finally { (kh = !1), (Error.prepareStackTrace = n); } return (e = e ? e.displayName || e.name : "") ? Zs(e) : ""; } function OO(e) { switch (e.tag) { case 5: return Zs(e.type); case 16: return Zs("Lazy"); case 13: return Zs("Suspense"); case 19: return Zs("SuspenseList"); case 0: case 2: case 15: return (e = Ch(e.type, !1)), e; case 11: return (e = Ch(e.type.render, !1)), e; case 1: return (e = Ch(e.type, !0)), e; default: return ""; } } function Xh(e) { if (e == null) return null; if (typeof e == "function") return e.displayName || e.name || null; if (typeof e == "string") return e; switch (e) { case Po: return "Fragment"; case Ro: return "Portal"; case Uh: return "Profiler"; case zp: return "StrictMode"; case Gh: return "Suspense"; case qh: return "SuspenseList"; } if (typeof e == "object") switch (e.$$typeof) { case uw: return (e.displayName || "Context") + ".Consumer"; case cw: return (e._context.displayName || "Context") + ".Provider"; case Bp: var t = e.render; return ( (e = e.displayName), e || ((e = t.displayName || t.name || ""), (e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef")), e ); case $p: return ( (t = e.displayName || null), t !== null ? t : Xh(e.type) || "Memo" ); case Jr: (t = e._payload), (e = e._init); try { return Xh(e(t)); } catch {} } return null; } function MO(e) { var t = e.type; switch (e.tag) { case 24: return "Cache"; case 9: return (t.displayName || "Context") + ".Consumer"; case 10: return (t._context.displayName || "Context") + ".Provider"; case 18: return "DehydratedFragment"; case 11: return ( (e = t.render), (e = e.displayName || e.name || ""), t.displayName || (e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef") ); case 7: return "Fragment"; case 5: return t; case 4: return "Portal"; case 3: return "Root"; case 6: return "Text"; case 16: return Xh(t); case 8: return t === zp ? "StrictMode" : "Mode"; case 22: return "Offscreen"; case 12: return "Profiler"; case 21: return "Scope"; case 13: return "Suspense"; case 19: return "SuspenseList"; case 25: return "TracingMarker"; case 1: case 0: case 17: case 2: case 14: case 15: if (typeof t == "function") return t.displayName || t.name || null; if (typeof t == "string") return t; } return null; } function hi(e) { switch (typeof e) { case "boolean": case "number": case "string": case "undefined": return e; case "object": return e; default: return ""; } } function dw(e) { var t = e.type; return ( (e = e.nodeName) && e.toLowerCase() === "input" && (t === "checkbox" || t === "radio") ); } function LO(e) { var t = dw(e) ? "checked" : "value", n = Object.getOwnPropertyDescriptor(e.constructor.prototype, t), r = "" + e[t]; if ( !e.hasOwnProperty(t) && typeof n < "u" && typeof n.get == "function" && typeof n.set == "function" ) { var i = n.get, o = n.set; return ( Object.defineProperty(e, t, { configurable: !0, get: function () { return i.call(this); }, set: function (s) { (r = "" + s), o.call(this, s); }, }), Object.defineProperty(e, t, { enumerable: n.enumerable }), { getValue: function () { return r; }, setValue: function (s) { r = "" + s; }, stopTracking: function () { (e._valueTracker = null), delete e[t]; }, } ); } } function nc(e) { e._valueTracker || (e._valueTracker = LO(e)); } function hw(e) { if (!e) return !1; var t = e._valueTracker; if (!t) return !0; var n = t.getValue(), r = ""; return ( e && (r = dw(e) ? (e.checked ? "true" : "false") : e.value), (e = r), e !== n && (t.setValue(e), !0) ); } function _c(e) { if (((e = e || (typeof document < "u" ? document : void 0)), typeof e > "u")) return null; try { return e.activeElement || e.body; } catch { return e.body; } } function Yh(e, t) { var n = t.checked; return Ge({}, t, { defaultChecked: void 0, defaultValue: void 0, value: void 0, checked: n ?? e._wrapperState.initialChecked, }); } function ix(e, t) { var n = t.defaultValue == null ? "" : t.defaultValue, r = t.checked != null ? t.checked : t.defaultChecked; (n = hi(t.value != null ? t.value : n)), (e._wrapperState = { initialChecked: r, initialValue: n, controlled: t.type === "checkbox" || t.type === "radio" ? t.checked != null : t.value != null, }); } function pw(e, t) { (t = t.checked), t != null && Dp(e, "checked", t, !1); } function Kh(e, t) { pw(e, t); var n = hi(t.value), r = t.type; if (n != null) r === "number" ? ((n === 0 && e.value === "") || e.value != n) && (e.value = "" + n) : e.value !== "" + n && (e.value = "" + n); else if (r === "submit" || r === "reset") { e.removeAttribute("value"); return; } t.hasOwnProperty("value") ? Qh(e, t.type, n) : t.hasOwnProperty("defaultValue") && Qh(e, t.type, hi(t.defaultValue)), t.checked == null && t.defaultChecked != null && (e.defaultChecked = !!t.defaultChecked); } function ox(e, t, n) { if (t.hasOwnProperty("value") || t.hasOwnProperty("defaultValue")) { var r = t.type; if ( !( (r !== "submit" && r !== "reset") || (t.value !== void 0 && t.value !== null) ) ) return; (t = "" + e._wrapperState.initialValue), n || t === e.value || (e.value = t), (e.defaultValue = t); } (n = e.name), n !== "" && (e.name = ""), (e.defaultChecked = !!e._wrapperState.initialChecked), n !== "" && (e.name = n); } function Qh(e, t, n) { (t === "number" && _c(e.ownerDocument) === e) || (n == null ? (e.defaultValue = "" + e._wrapperState.initialValue) : e.defaultValue !== "" + n && (e.defaultValue = "" + n)); } var Js = Array.isArray; function Bo(e, t, n, r) { if (((e = e.options), t)) { t = {}; for (var i = 0; i < n.length; i++) t["$" + n[i]] = !0; for (n = 0; n < e.length; n++) (i = t.hasOwnProperty("$" + e[n].value)), e[n].selected !== i && (e[n].selected = i), i && r && (e[n].defaultSelected = !0); } else { for (n = "" + hi(n), t = null, i = 0; i < e.length; i++) { if (e[i].value === n) { (e[i].selected = !0), r && (e[i].defaultSelected = !0); return; } t !== null || e[i].disabled || (t = e[i]); } t !== null && (t.selected = !0); } } function Zh(e, t) { if (t.dangerouslySetInnerHTML != null) throw Error(M(91)); return Ge({}, t, { value: void 0, defaultValue: void 0, children: "" + e._wrapperState.initialValue, }); } function sx(e, t) { var n = t.value; if (n == null) { if (((n = t.children), (t = t.defaultValue), n != null)) { if (t != null) throw Error(M(92)); if (Js(n)) { if (1 < n.length) throw Error(M(93)); n = n[0]; } t = n; } t == null && (t = ""), (n = t); } e._wrapperState = { initialValue: hi(n) }; } function mw(e, t) { var n = hi(t.value), r = hi(t.defaultValue); n != null && ((n = "" + n), n !== e.value && (e.value = n), t.defaultValue == null && e.defaultValue !== n && (e.defaultValue = n)), r != null && (e.defaultValue = "" + r); } function ax(e) { var t = e.textContent; t === e._wrapperState.initialValue && t !== "" && t !== null && (e.value = t); } function gw(e) { switch (e) { case "svg": return "http://www.w3.org/2000/svg"; case "math": return "http://www.w3.org/1998/Math/MathML"; default: return "http://www.w3.org/1999/xhtml"; } } function Jh(e, t) { return e == null || e === "http://www.w3.org/1999/xhtml" ? gw(t) : e === "http://www.w3.org/2000/svg" && t === "foreignObject" ? "http://www.w3.org/1999/xhtml" : e; } var rc, vw = (function (e) { return typeof MSApp < "u" && MSApp.execUnsafeLocalFunction ? function (t, n, r, i) { MSApp.execUnsafeLocalFunction(function () { return e(t, n, r, i); }); } : e; })(function (e, t) { if (e.namespaceURI !== "http://www.w3.org/2000/svg" || "innerHTML" in e) e.innerHTML = t; else { for ( rc = rc || document.createElement("div"), rc.innerHTML = "" + t.valueOf().toString() + "", t = rc.firstChild; e.firstChild; ) e.removeChild(e.firstChild); for (; t.firstChild; ) e.appendChild(t.firstChild); } }); function da(e, t) { if (t) { var n = e.firstChild; if (n && n === e.lastChild && n.nodeType === 3) { n.nodeValue = t; return; } } e.textContent = t; } var na = { animationIterationCount: !0, aspectRatio: !0, borderImageOutset: !0, borderImageSlice: !0, borderImageWidth: !0, boxFlex: !0, boxFlexGroup: !0, boxOrdinalGroup: !0, columnCount: !0, columns: !0, flex: !0, flexGrow: !0, flexPositive: !0, flexShrink: !0, flexNegative: !0, flexOrder: !0, gridArea: !0, gridRow: !0, gridRowEnd: !0, gridRowSpan: !0, gridRowStart: !0, gridColumn: !0, gridColumnEnd: !0, gridColumnSpan: !0, gridColumnStart: !0, fontWeight: !0, lineClamp: !0, lineHeight: !0, opacity: !0, order: !0, orphans: !0, tabSize: !0, widows: !0, zIndex: !0, zoom: !0, fillOpacity: !0, floodOpacity: !0, stopOpacity: !0, strokeDasharray: !0, strokeDashoffset: !0, strokeMiterlimit: !0, strokeOpacity: !0, strokeWidth: !0, }, VO = ["Webkit", "ms", "Moz", "O"]; Object.keys(na).forEach(function (e) { VO.forEach(function (t) { (t = t + e.charAt(0).toUpperCase() + e.substring(1)), (na[t] = na[e]); }); }); function yw(e, t, n) { return t == null || typeof t == "boolean" || t === "" ? "" : n || typeof t != "number" || t === 0 || (na.hasOwnProperty(e) && na[e]) ? ("" + t).trim() : t + "px"; } function bw(e, t) { e = e.style; for (var n in t) if (t.hasOwnProperty(n)) { var r = n.indexOf("--") === 0, i = yw(n, t[n], r); n === "float" && (n = "cssFloat"), r ? e.setProperty(n, i) : (e[n] = i); } } var AO = Ge( { menuitem: !0 }, { area: !0, base: !0, br: !0, col: !0, embed: !0, hr: !0, img: !0, input: !0, keygen: !0, link: !0, meta: !0, param: !0, source: !0, track: !0, wbr: !0, } ); function ep(e, t) { if (t) { if (AO[e] && (t.children != null || t.dangerouslySetInnerHTML != null)) throw Error(M(137, e)); if (t.dangerouslySetInnerHTML != null) { if (t.children != null) throw Error(M(60)); if ( typeof t.dangerouslySetInnerHTML != "object" || !("__html" in t.dangerouslySetInnerHTML) ) throw Error(M(61)); } if (t.style != null && typeof t.style != "object") throw Error(M(62)); } } function tp(e, t) { if (e.indexOf("-") === -1) return typeof t.is == "string"; switch (e) { case "annotation-xml": case "color-profile": case "font-face": case "font-face-src": case "font-face-uri": case "font-face-format": case "font-face-name": case "missing-glyph": return !1; default: return !0; } } var np = null; function Np(e) { return ( (e = e.target || e.srcElement || F), e.correspondingUseElement && (e = e.correspondingUseElement), e.nodeType === 3 ? e.parentNode : e ); } var rp = null, $o = null, No = null; function lx(e) { if ((e = _a(e))) { if (typeof rp != "function") throw Error(M(280)); var t = e.stateNode; t && ((t = iu(t)), rp(e.stateNode, e.type, t)); } } function xw(e) { $o ? (No ? No.push(e) : (No = [e])) : ($o = e); } function ww() { if ($o) { var e = $o, t = No; if (((No = $o = null), lx(e), t)) for (e = 0; e < t.length; e++) lx(t[e]); } } function Sw(e, t) { return e(t); } function kw() {} var Th = !1; function Cw(e, t, n) { if (Th) return e(t, n); Th = !0; try { return Sw(e, t, n); } finally { (Th = !1), ($o !== null || No !== null) && (kw(), ww()); } } function ha(e, t) { var n = e.stateNode; if (n === null) return null; var r = iu(n); if (r === null) return null; n = r[t]; e: switch (t) { case "onClick": case "onClickCapture": case "onDoubleClick": case "onDoubleClickCapture": case "onMouseDown": case "onMouseDownCapture": case "onMouseMove": case "onMouseMoveCapture": case "onMouseUp": case "onMouseUpCapture": case "onMouseEnter": (r = !r.disabled) || ((e = e.type), (r = !( e === "button" || e === "input" || e === "select" || e === "textarea" ))), (e = !r); break e; default: e = !1; } if (e) return null; if (n && typeof n != "function") throw Error(M(231, t, typeof n)); return n; } var ip = !1; if (Mr) try { (To = {}), Object.defineProperty(To, "passive", { get: function () { ip = !0; }, }), F.addEventListener("test", To, To), F.removeEventListener("test", To, To); } catch { ip = !1; } var To; function DO(e, t, n, r, i, o, s, a, l) { var c = Array.prototype.slice.call(arguments, 3); try { t.apply(n, c); } catch (u) { this.onError(u); } } var ra = !1, Ic = null, Oc = !1, op = null, zO = { onError: function (e) { (ra = !0), (Ic = e); }, }; function BO(e, t, n, r, i, o, s, a, l) { (ra = !1), (Ic = null), DO.apply(zO, arguments); } function $O(e, t, n, r, i, o, s, a, l) { if ((BO.apply(this, arguments), ra)) { if (!ra) throw Error(M(198)); var c = Ic; (ra = !1), (Ic = null), Oc || ((Oc = !0), (op = c)); } } function qi(e) { var t = e, n = e; if (e.alternate) for (; t.return; ) t = t.return; else { e = t; do (t = e), 4098 & t.flags && (n = t.return), (e = t.return); while (e); } return t.tag === 3 ? n : null; } function Tw(e) { if (e.tag === 13) { var t = e.memoizedState; if ( (t === null && ((e = e.alternate), e !== null && (t = e.memoizedState)), t !== null) ) return t.dehydrated; } return null; } function cx(e) { if (qi(e) !== e) throw Error(M(188)); } function NO(e) { var t = e.alternate; if (!t) { if (((t = qi(e)), t === null)) throw Error(M(188)); return t !== e ? null : e; } for (var n = e, r = t; ; ) { var i = n.return; if (i === null) break; var o = i.alternate; if (o === null) { if (((r = i.return), r !== null)) { n = r; continue; } break; } if (i.child === o.child) { for (o = i.child; o; ) { if (o === n) return cx(i), e; if (o === r) return cx(i), t; o = o.sibling; } throw Error(M(188)); } if (n.return !== r.return) (n = i), (r = o); else { for (var s = !1, a = i.child; a; ) { if (a === n) { (s = !0), (n = i), (r = o); break; } if (a === r) { (s = !0), (r = i), (n = o); break; } a = a.sibling; } if (!s) { for (a = o.child; a; ) { if (a === n) { (s = !0), (n = o), (r = i); break; } if (a === r) { (s = !0), (r = o), (n = i); break; } a = a.sibling; } if (!s) throw Error(M(189)); } } if (n.alternate !== r) throw Error(M(190)); } if (n.tag !== 3) throw Error(M(188)); return n.stateNode.current === n ? e : t; } function Ew(e) { return (e = NO(e)), e !== null ? Rw(e) : null; } function Rw(e) { if (e.tag === 5 || e.tag === 6) return e; for (e = e.child; e !== null; ) { var t = Rw(e); if (t !== null) return t; e = e.sibling; } return null; } var Pw = un.unstable_scheduleCallback, ux = un.unstable_cancelCallback, jO = un.unstable_shouldYield, HO = un.unstable_requestPaint, tt = un.unstable_now, WO = un.unstable_getCurrentPriorityLevel, jp = un.unstable_ImmediatePriority, Fw = un.unstable_UserBlockingPriority, Mc = un.unstable_NormalPriority, UO = un.unstable_LowPriority, _w = un.unstable_IdlePriority, eu = null, fr = null; function GO(e) { if (fr && typeof fr.onCommitFiberRoot == "function") try { fr.onCommitFiberRoot(eu, e, void 0, (128 & e.current.flags) === 128); } catch {} } var Nn = Math.clz32 ? Math.clz32 : YO, qO = Math.log, XO = Math.LN2; function YO(e) { return (e >>>= 0), e === 0 ? 32 : (31 - ((qO(e) / XO) | 0)) | 0; } var ic = 64, oc = 4194304; function ea(e) { switch (e & -e) { case 1: return 1; case 2: return 2; case 4: return 4; case 8: return 8; case 16: return 16; case 32: return 32; case 64: case 128: case 256: case 512: case 1024: case 2048: case 4096: case 8192: case 16384: case 32768: case 65536: case 131072: case 262144: case 524288: case 1048576: case 2097152: return 4194240 & e; case 4194304: case 8388608: case 16777216: case 33554432: case 67108864: return 130023424 & e; case 134217728: return 134217728; case 268435456: return 268435456; case 536870912: return 536870912; case 1073741824: return 1073741824; default: return e; } } function Lc(e, t) { var n = e.pendingLanes; if (n === 0) return 0; var r = 0, i = e.suspendedLanes, o = e.pingedLanes, s = 268435455 & n; if (s !== 0) { var a = s & ~i; a !== 0 ? (r = ea(a)) : ((o &= s), o !== 0 && (r = ea(o))); } else (s = n & ~i), s !== 0 ? (r = ea(s)) : o !== 0 && (r = ea(o)); if (r === 0) return 0; if ( t !== 0 && t !== r && !(t & i) && ((i = r & -r), (o = t & -t), i >= o || (i === 16 && (4194240 & o) !== 0)) ) return t; if ((4 & r && (r |= 16 & n), (t = e.entangledLanes), t !== 0)) for (e = e.entanglements, t &= r; 0 < t; ) (n = 31 - Nn(t)), (i = 1 << n), (r |= e[n]), (t &= ~i); return r; } function KO(e, t) { switch (e) { case 1: case 2: case 4: return t + 250; case 8: case 16: case 32: case 64: case 128: case 256: case 512: case 1024: case 2048: case 4096: case 8192: case 16384: case 32768: case 65536: case 131072: case 262144: case 524288: case 1048576: case 2097152: return t + 5e3; case 4194304: case 8388608: case 16777216: case 33554432: case 67108864: return -1; case 134217728: case 268435456: case 536870912: case 1073741824: return -1; default: return -1; } } function QO(e, t) { for ( var n = e.suspendedLanes, r = e.pingedLanes, i = e.expirationTimes, o = e.pendingLanes; 0 < o; ) { var s = 31 - Nn(o), a = 1 << s, l = i[s]; l === -1 ? (a & n && !(a & r)) || (i[s] = KO(a, t)) : l <= t && (e.expiredLanes |= a), (o &= ~a); } } function sp(e) { return ( (e = -1073741825 & e.pendingLanes), e !== 0 ? e : 1073741824 & e ? 1073741824 : 0 ); } function Iw() { var e = ic; return (ic <<= 1), !(4194240 & ic) && (ic = 64), e; } function Eh(e) { for (var t = [], n = 0; 31 > n; n++) t.push(e); return t; } function Pa(e, t, n) { (e.pendingLanes |= t), t !== 536870912 && ((e.suspendedLanes = 0), (e.pingedLanes = 0)), (e = e.eventTimes), (t = 31 - Nn(t)), (e[t] = n); } function ZO(e, t) { var n = e.pendingLanes & ~t; (e.pendingLanes = t), (e.suspendedLanes = 0), (e.pingedLanes = 0), (e.expiredLanes &= t), (e.mutableReadLanes &= t), (e.entangledLanes &= t), (t = e.entanglements); var r = e.eventTimes; for (e = e.expirationTimes; 0 < n; ) { var i = 31 - Nn(n), o = 1 << i; (t[i] = 0), (r[i] = -1), (e[i] = -1), (n &= ~o); } } function Hp(e, t) { var n = (e.entangledLanes |= t); for (e = e.entanglements; n; ) { var r = 31 - Nn(n), i = 1 << r; (i & t) | (e[r] & t) && (e[r] |= t), (n &= ~i); } } var Ce = 0; function Ow(e) { return (e &= -e), 1 < e ? (4 < e ? (268435455 & e ? 16 : 536870912) : 4) : 1; } var Mw, Wp, Lw, Vw, Aw, ap = !1, sc = [], oi = null, si = null, ai = null, pa = new Map(), ma = new Map(), ti = [], JO = "mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split( " " ); function fx(e, t) { switch (e) { case "focusin": case "focusout": oi = null; break; case "dragenter": case "dragleave": si = null; break; case "mouseover": case "mouseout": ai = null; break; case "pointerover": case "pointerout": pa.delete(t.pointerId); break; case "gotpointercapture": case "lostpointercapture": ma.delete(t.pointerId); } } function Us(e, t, n, r, i, o) { return e === null || e.nativeEvent !== o ? ((e = { blockedOn: t, domEventName: n, eventSystemFlags: r, nativeEvent: o, targetContainers: [i], }), t !== null && ((t = _a(t)), t !== null && Wp(t)), e) : ((e.eventSystemFlags |= r), (t = e.targetContainers), i !== null && t.indexOf(i) === -1 && t.push(i), e); } function e2(e, t, n, r, i) { switch (t) { case "focusin": return (oi = Us(oi, e, t, n, r, i)), !0; case "dragenter": return (si = Us(si, e, t, n, r, i)), !0; case "mouseover": return (ai = Us(ai, e, t, n, r, i)), !0; case "pointerover": var o = i.pointerId; return pa.set(o, Us(pa.get(o) || null, e, t, n, r, i)), !0; case "gotpointercapture": return ( (o = i.pointerId), ma.set(o, Us(ma.get(o) || null, e, t, n, r, i)), !0 ); } return !1; } function Dw(e) { var t = Ai(e.target); if (t !== null) { var n = qi(t); if (n !== null) { if (((t = n.tag), t === 13)) { if (((t = Tw(n)), t !== null)) { (e.blockedOn = t), Aw(e.priority, function () { Lw(n); }); return; } } else if (t === 3 && n.stateNode.current.memoizedState.isDehydrated) { e.blockedOn = n.tag === 3 ? n.stateNode.containerInfo : null; return; } } } e.blockedOn = null; } function xc(e) { if (e.blockedOn !== null) return !1; for (var t = e.targetContainers; 0 < t.length; ) { var n = lp(e.domEventName, e.eventSystemFlags, t[0], e.nativeEvent); if (n !== null) return (t = _a(n)), t !== null && Wp(t), (e.blockedOn = n), !1; n = e.nativeEvent; var r = new n.constructor(n.type, n); (np = r), n.target.dispatchEvent(r), (np = null), t.shift(); } return !0; } function dx(e, t, n) { xc(e) && n.delete(t); } function t2() { (ap = !1), oi !== null && xc(oi) && (oi = null), si !== null && xc(si) && (si = null), ai !== null && xc(ai) && (ai = null), pa.forEach(dx), ma.forEach(dx); } function Gs(e, t) { e.blockedOn === t && ((e.blockedOn = null), ap || ((ap = !0), un.unstable_scheduleCallback(un.unstable_NormalPriority, t2))); } function ga(e) { function t(i) { return Gs(i, e); } if (0 < sc.length) { Gs(sc[0], e); for (var n = 1; n < sc.length; n++) { var r = sc[n]; r.blockedOn === e && (r.blockedOn = null); } } for ( oi !== null && Gs(oi, e), si !== null && Gs(si, e), ai !== null && Gs(ai, e), pa.forEach(t), ma.forEach(t), n = 0; n < ti.length; n++ ) (r = ti[n]), r.blockedOn === e && (r.blockedOn = null); for (; 0 < ti.length && ((n = ti[0]), n.blockedOn === null); ) Dw(n), n.blockedOn === null && ti.shift(); } var jo = Dr.ReactCurrentBatchConfig, Vc = !0; function n2(e, t, n, r) { var i = Ce, o = jo.transition; jo.transition = null; try { (Ce = 1), Up(e, t, n, r); } finally { (Ce = i), (jo.transition = o); } } function r2(e, t, n, r) { var i = Ce, o = jo.transition; jo.transition = null; try { (Ce = 4), Up(e, t, n, r); } finally { (Ce = i), (jo.transition = o); } } function Up(e, t, n, r) { if (Vc) { var i = lp(e, t, n, r); if (i === null) Mh(e, t, r, Ac, n), fx(e, r); else if (e2(i, e, t, n, r)) r.stopPropagation(); else if ((fx(e, r), 4 & t && -1 < JO.indexOf(e))) { for (; i !== null; ) { var o = _a(i); if ( (o !== null && Mw(o), (o = lp(e, t, n, r)), o === null && Mh(e, t, r, Ac, n), o === i) ) break; i = o; } i !== null && r.stopPropagation(); } else Mh(e, t, r, null, n); } } var Ac = null; function lp(e, t, n, r) { if (((Ac = null), (e = Np(r)), (e = Ai(e)), e !== null)) if (((t = qi(e)), t === null)) e = null; else if (((n = t.tag), n === 13)) { if (((e = Tw(t)), e !== null)) return e; e = null; } else if (n === 3) { if (t.stateNode.current.memoizedState.isDehydrated) return t.tag === 3 ? t.stateNode.containerInfo : null; e = null; } else t !== e && (e = null); return (Ac = e), null; } function zw(e) { switch (e) { case "cancel": case "click": case "close": case "contextmenu": case "copy": case "cut": case "auxclick": case "dblclick": case "dragend": case "dragstart": case "drop": case "focusin": case "focusout": case "input": case "invalid": case "keydown": case "keypress": case "keyup": case "mousedown": case "mouseup": case "paste": case "pause": case "play": case "pointercancel": case "pointerdown": case "pointerup": case "ratechange": case "reset": case "resize": case "seeked": case "submit": case "touchcancel": case "touchend": case "touchstart": case "volumechange": case "change": case "selectionchange": case "textInput": case "compositionstart": case "compositionend": case "compositionupdate": case "beforeblur": case "afterblur": case "beforeinput": case "blur": case "fullscreenchange": case "focus": case "hashchange": case "popstate": case "select": case "selectstart": return 1; case "drag": case "dragenter": case "dragexit": case "dragleave": case "dragover": case "mousemove": case "mouseout": case "mouseover": case "pointermove": case "pointerout": case "pointerover": case "scroll": case "toggle": case "touchmove": case "wheel": case "mouseenter": case "mouseleave": case "pointerenter": case "pointerleave": return 4; case "message": switch (WO()) { case jp: return 1; case Fw: return 4; case Mc: case UO: return 16; case _w: return 536870912; default: return 16; } default: return 16; } } var ri = null, Gp = null, wc = null; function Bw() { if (wc) return wc; var e, t, n = Gp, r = n.length, i = "value" in ri ? ri.value : ri.textContent, o = i.length; for (e = 0; e < r && n[e] === i[e]; e++); var s = r - e; for (t = 1; t <= s && n[r - t] === i[o - t]; t++); return (wc = i.slice(e, 1 < t ? 1 - t : void 0)); } function Sc(e) { var t = e.keyCode; return ( "charCode" in e ? ((e = e.charCode), e === 0 && t === 13 && (e = 13)) : (e = t), e === 10 && (e = 13), 32 <= e || e === 13 ? e : 0 ); } function ac() { return !0; } function hx() { return !1; } function dn(e) { function t(n, r, i, o, s) { (this._reactName = n), (this._targetInst = i), (this.type = r), (this.nativeEvent = o), (this.target = s), (this.currentTarget = null); for (var a in e) e.hasOwnProperty(a) && ((n = e[a]), (this[a] = n ? n(o) : o[a])); return ( (this.isDefaultPrevented = ( o.defaultPrevented != null ? o.defaultPrevented : o.returnValue === !1 ) ? ac : hx), (this.isPropagationStopped = hx), this ); } return ( Ge(t.prototype, { preventDefault: function () { this.defaultPrevented = !0; var n = this.nativeEvent; n && (n.preventDefault ? n.preventDefault() : typeof n.returnValue != "unknown" && (n.returnValue = !1), (this.isDefaultPrevented = ac)); }, stopPropagation: function () { var n = this.nativeEvent; n && (n.stopPropagation ? n.stopPropagation() : typeof n.cancelBubble != "unknown" && (n.cancelBubble = !0), (this.isPropagationStopped = ac)); }, persist: function () {}, isPersistent: ac, }), t ); } var Rh, Ph, qs, Zo = { eventPhase: 0, bubbles: 0, cancelable: 0, timeStamp: function (e) { return e.timeStamp || Date.now(); }, defaultPrevented: 0, isTrusted: 0, }, qp = dn(Zo), Fa = Ge({}, Zo, { view: 0, detail: 0 }), i2 = dn(Fa), tu = Ge({}, Fa, { screenX: 0, screenY: 0, clientX: 0, clientY: 0, pageX: 0, pageY: 0, ctrlKey: 0, shiftKey: 0, altKey: 0, metaKey: 0, getModifierState: Xp, button: 0, buttons: 0, relatedTarget: function (e) { return e.relatedTarget === void 0 ? e.fromElement === e.srcElement ? e.toElement : e.fromElement : e.relatedTarget; }, movementX: function (e) { return "movementX" in e ? e.movementX : (e !== qs && (qs && e.type === "mousemove" ? ((Rh = e.screenX - qs.screenX), (Ph = e.screenY - qs.screenY)) : (Ph = Rh = 0), (qs = e)), Rh); }, movementY: function (e) { return "movementY" in e ? e.movementY : Ph; }, }), px = dn(tu), o2 = Ge({}, tu, { dataTransfer: 0 }), s2 = dn(o2), a2 = Ge({}, Fa, { relatedTarget: 0 }), Fh = dn(a2), l2 = Ge({}, Zo, { animationName: 0, elapsedTime: 0, pseudoElement: 0 }), c2 = dn(l2), u2 = Ge({}, Zo, { clipboardData: function (e) { return "clipboardData" in e ? e.clipboardData : F.clipboardData; }, }), f2 = dn(u2), d2 = Ge({}, Zo, { data: 0 }), mx = dn(d2), h2 = { Esc: "Escape", Spacebar: " ", Left: "ArrowLeft", Up: "ArrowUp", Right: "ArrowRight", Down: "ArrowDown", Del: "Delete", Win: "OS", Menu: "ContextMenu", Apps: "ContextMenu", Scroll: "ScrollLock", MozPrintableKey: "Unidentified", }, p2 = { 8: "Backspace", 9: "Tab", 12: "Clear", 13: "Enter", 16: "Shift", 17: "Control", 18: "Alt", 19: "Pause", 20: "CapsLock", 27: "Escape", 32: " ", 33: "PageUp", 34: "PageDown", 35: "End", 36: "Home", 37: "ArrowLeft", 38: "ArrowUp", 39: "ArrowRight", 40: "ArrowDown", 45: "Insert", 46: "Delete", 112: "F1", 113: "F2", 114: "F3", 115: "F4", 116: "F5", 117: "F6", 118: "F7", 119: "F8", 120: "F9", 121: "F10", 122: "F11", 123: "F12", 144: "NumLock", 145: "ScrollLock", 224: "Meta", }, m2 = { Alt: "altKey", Control: "ctrlKey", Meta: "metaKey", Shift: "shiftKey", }; function g2(e) { var t = this.nativeEvent; return t.getModifierState ? t.getModifierState(e) : !!(e = m2[e]) && !!t[e]; } function Xp() { return g2; } var v2 = Ge({}, Fa, { key: function (e) { if (e.key) { var t = h2[e.key] || e.key; if (t !== "Unidentified") return t; } return e.type === "keypress" ? ((e = Sc(e)), e === 13 ? "Enter" : String.fromCharCode(e)) : e.type === "keydown" || e.type === "keyup" ? p2[e.keyCode] || "Unidentified" : ""; }, code: 0, location: 0, ctrlKey: 0, shiftKey: 0, altKey: 0, metaKey: 0, repeat: 0, locale: 0, getModifierState: Xp, charCode: function (e) { return e.type === "keypress" ? Sc(e) : 0; }, keyCode: function (e) { return e.type === "keydown" || e.type === "keyup" ? e.keyCode : 0; }, which: function (e) { return e.type === "keypress" ? Sc(e) : e.type === "keydown" || e.type === "keyup" ? e.keyCode : 0; }, }), y2 = dn(v2), b2 = Ge({}, tu, { pointerId: 0, width: 0, height: 0, pressure: 0, tangentialPressure: 0, tiltX: 0, tiltY: 0, twist: 0, pointerType: 0, isPrimary: 0, }), gx = dn(b2), x2 = Ge({}, Fa, { touches: 0, targetTouches: 0, changedTouches: 0, altKey: 0, metaKey: 0, ctrlKey: 0, shiftKey: 0, getModifierState: Xp, }), w2 = dn(x2), S2 = Ge({}, Zo, { propertyName: 0, elapsedTime: 0, pseudoElement: 0 }), k2 = dn(S2), C2 = Ge({}, tu, { deltaX: function (e) { return "deltaX" in e ? e.deltaX : "wheelDeltaX" in e ? -e.wheelDeltaX : 0; }, deltaY: function (e) { return "deltaY" in e ? e.deltaY : "wheelDeltaY" in e ? -e.wheelDeltaY : "wheelDelta" in e ? -e.wheelDelta : 0; }, deltaZ: 0, deltaMode: 0, }), T2 = dn(C2), E2 = [9, 13, 27, 32], Yp = Mr && "CompositionEvent" in F, ia = null; Mr && "documentMode" in document && (ia = document.documentMode); var R2 = Mr && "TextEvent" in F && !ia, $w = Mr && (!Yp || (ia && 8 < ia && 11 >= ia)), vx = String.fromCharCode(32), yx = !1; function Nw(e, t) { switch (e) { case "keyup": return E2.indexOf(t.keyCode) !== -1; case "keydown": return t.keyCode !== 229; case "keypress": case "mousedown": case "focusout": return !0; default: return !1; } } function jw(e) { return (e = e.detail), typeof e == "object" && "data" in e ? e.data : null; } var Fo = !1; function P2(e, t) { switch (e) { case "compositionend": return jw(t); case "keypress": return t.which !== 32 ? null : ((yx = !0), vx); case "textInput": return (e = t.data), e === vx && yx ? null : e; default: return null; } } function F2(e, t) { if (Fo) return e === "compositionend" || (!Yp && Nw(e, t)) ? ((e = Bw()), (wc = Gp = ri = null), (Fo = !1), e) : null; switch (e) { case "paste": return null; case "keypress": if (!(t.ctrlKey || t.altKey || t.metaKey) || (t.ctrlKey && t.altKey)) { if (t.char && 1 < t.char.length) return t.char; if (t.which) return String.fromCharCode(t.which); } return null; case "compositionend": return $w && t.locale !== "ko" ? null : t.data; default: return null; } } var _2 = { color: !0, date: !0, datetime: !0, "datetime-local": !0, email: !0, month: !0, number: !0, password: !0, range: !0, search: !0, tel: !0, text: !0, time: !0, url: !0, week: !0, }; function bx(e) { var t = e && e.nodeName && e.nodeName.toLowerCase(); return t === "input" ? !!_2[e.type] : t === "textarea"; } function Hw(e, t, n, r) { xw(r), (t = Dc(t, "onChange")), 0 < t.length && ((n = new qp("onChange", "change", null, n, r)), e.push({ event: n, listeners: t })); } var oa = null, va = null; function I2(e) { eS(e, 0); } function nu(e) { var t = Oo(e); if (hw(t)) return e; } function O2(e, t) { if (e === "change") return t; } var Ww = !1; Mr && (Mr ? ((cc = "oninput" in document), cc || ((_h = document.createElement("div")), _h.setAttribute("oninput", "return;"), (cc = typeof _h.oninput == "function")), (lc = cc)) : (lc = !1), (Ww = lc && (!document.documentMode || 9 < document.documentMode))); var lc, cc, _h; function xx() { oa && (oa.detachEvent("onpropertychange", Uw), (va = oa = null)); } function Uw(e) { if (e.propertyName === "value" && nu(va)) { var t = []; Hw(t, va, e, Np(e)), Cw(I2, t); } } function M2(e, t, n) { e === "focusin" ? (xx(), (oa = t), (va = n), oa.attachEvent("onpropertychange", Uw)) : e === "focusout" && xx(); } function L2(e) { if (e === "selectionchange" || e === "keyup" || e === "keydown") return nu(va); } function V2(e, t) { if (e === "click") return nu(t); } function A2(e, t) { if (e === "input" || e === "change") return nu(t); } function D2(e, t) { return (e === t && (e !== 0 || 1 / e === 1 / t)) || (e !== e && t !== t); } var Hn = typeof Object.is == "function" ? Object.is : D2; function ya(e, t) { if (Hn(e, t)) return !0; if (typeof e != "object" || e === null || typeof t != "object" || t === null) return !1; var n = Object.keys(e), r = Object.keys(t); if (n.length !== r.length) return !1; for (r = 0; r < n.length; r++) { var i = n[r]; if (!Wh.call(t, i) || !Hn(e[i], t[i])) return !1; } return !0; } function wx(e) { for (; e && e.firstChild; ) e = e.firstChild; return e; } function Sx(e, t) { var n = wx(e); e = 0; for (var r; n; ) { if (n.nodeType === 3) { if (((r = e + n.textContent.length), e <= t && r >= t)) return { node: n, offset: t - e }; e = r; } e: { for (; n; ) { if (n.nextSibling) { n = n.nextSibling; break e; } n = n.parentNode; } n = void 0; } n = wx(n); } } function Gw(e, t) { return ( !(!e || !t) && (e === t || ((!e || e.nodeType !== 3) && (t && t.nodeType === 3 ? Gw(e, t.parentNode) : "contains" in e ? e.contains(t) : !!e.compareDocumentPosition && !!(16 & e.compareDocumentPosition(t))))) ); } function qw() { for (var e = F, t = _c(); t instanceof e.HTMLIFrameElement; ) { try { var n = typeof t.contentWindow.location.href == "string"; } catch { n = !1; } if (!n) break; (e = t.contentWindow), (t = _c(e.document)); } return t; } function Kp(e) { var t = e && e.nodeName && e.nodeName.toLowerCase(); return ( t && ((t === "input" && (e.type === "text" || e.type === "search" || e.type === "tel" || e.type === "url" || e.type === "password")) || t === "textarea" || e.contentEditable === "true") ); } function z2(e) { var t = qw(), n = e.focusedElem, r = e.selectionRange; if ( t !== n && n && n.ownerDocument && Gw(n.ownerDocument.documentElement, n) ) { if (r !== null && Kp(n)) { if ( ((t = r.start), (e = r.end), e === void 0 && (e = t), "selectionStart" in n) ) (n.selectionStart = t), (n.selectionEnd = Math.min(e, n.value.length)); else if ( ((e = ((t = n.ownerDocument || document) && t.defaultView) || F), e.getSelection) ) { e = e.getSelection(); var i = n.textContent.length, o = Math.min(r.start, i); (r = r.end === void 0 ? o : Math.min(r.end, i)), !e.extend && o > r && ((i = r), (r = o), (o = i)), (i = Sx(n, o)); var s = Sx(n, r); i && s && (e.rangeCount !== 1 || e.anchorNode !== i.node || e.anchorOffset !== i.offset || e.focusNode !== s.node || e.focusOffset !== s.offset) && ((t = t.createRange()), t.setStart(i.node, i.offset), e.removeAllRanges(), o > r ? (e.addRange(t), e.extend(s.node, s.offset)) : (t.setEnd(s.node, s.offset), e.addRange(t))); } } for (t = [], e = n; (e = e.parentNode); ) e.nodeType === 1 && t.push({ element: e, left: e.scrollLeft, top: e.scrollTop }); for (typeof n.focus == "function" && n.focus(), n = 0; n < t.length; n++) (e = t[n]), (e.element.scrollLeft = e.left), (e.element.scrollTop = e.top); } } var B2 = Mr && "documentMode" in document && 11 >= document.documentMode, _o = null, cp = null, sa = null, up = !1; function kx(e, t, n) { var r = n.window === n ? n.document : n.nodeType === 9 ? n : n.ownerDocument; up || _o == null || _o !== _c(r) || ((r = _o), "selectionStart" in r && Kp(r) ? (r = { start: r.selectionStart, end: r.selectionEnd }) : ((r = ( (r.ownerDocument && r.ownerDocument.defaultView) || F ).getSelection()), (r = { anchorNode: r.anchorNode, anchorOffset: r.anchorOffset, focusNode: r.focusNode, focusOffset: r.focusOffset, })), (sa && ya(sa, r)) || ((sa = r), (r = Dc(cp, "onSelect")), 0 < r.length && ((t = new qp("onSelect", "select", null, t, n)), e.push({ event: t, listeners: r }), (t.target = _o)))); } function uc(e, t) { var n = {}; return ( (n[e.toLowerCase()] = t.toLowerCase()), (n["Webkit" + e] = "webkit" + t), (n["Moz" + e] = "moz" + t), n ); } var Io = { animationend: uc("Animation", "AnimationEnd"), animationiteration: uc("Animation", "AnimationIteration"), animationstart: uc("Animation", "AnimationStart"), transitionend: uc("Transition", "TransitionEnd"), }, Ih = {}, Xw = {}; Mr && ((Xw = document.createElement("div").style), "AnimationEvent" in F || (delete Io.animationend.animation, delete Io.animationiteration.animation, delete Io.animationstart.animation), "TransitionEvent" in F || delete Io.transitionend.transition); function ru(e) { if (Ih[e]) return Ih[e]; if (!Io[e]) return e; var t, n = Io[e]; for (t in n) if (n.hasOwnProperty(t) && t in Xw) return (Ih[e] = n[t]); return e; } var Yw = ru("animationend"), Kw = ru("animationiteration"), Qw = ru("animationstart"), Zw = ru("transitionend"), Jw = new Map(), Cx = "abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split( " " ); function mi(e, t) { Jw.set(e, t), Gi(t, [e]); } for (fc = 0; fc < Cx.length; fc++) (dc = Cx[fc]), (Tx = dc.toLowerCase()), (Ex = dc[0].toUpperCase() + dc.slice(1)), mi(Tx, "on" + Ex); var dc, Tx, Ex, fc; mi(Yw, "onAnimationEnd"); mi(Kw, "onAnimationIteration"); mi(Qw, "onAnimationStart"); mi("dblclick", "onDoubleClick"); mi("focusin", "onFocus"); mi("focusout", "onBlur"); mi(Zw, "onTransitionEnd"); Uo("onMouseEnter", ["mouseout", "mouseover"]); Uo("onMouseLeave", ["mouseout", "mouseover"]); Uo("onPointerEnter", ["pointerout", "pointerover"]); Uo("onPointerLeave", ["pointerout", "pointerover"]); Gi( "onChange", "change click focusin focusout input keydown keyup selectionchange".split(" ") ); Gi( "onSelect", "focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split( " " ) ); Gi("onBeforeInput", ["compositionend", "keypress", "textInput", "paste"]); Gi( "onCompositionEnd", "compositionend focusout keydown keypress keyup mousedown".split(" ") ); Gi( "onCompositionStart", "compositionstart focusout keydown keypress keyup mousedown".split(" ") ); Gi( "onCompositionUpdate", "compositionupdate focusout keydown keypress keyup mousedown".split(" ") ); var ta = "abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split( " " ), $2 = new Set("cancel close invalid load scroll toggle".split(" ").concat(ta)); function Rx(e, t, n) { var r = e.type || "unknown-event"; (e.currentTarget = n), $O(r, t, void 0, e), (e.currentTarget = null); } function eS(e, t) { t = (4 & t) !== 0; for (var n = 0; n < e.length; n++) { var r = e[n], i = r.event; r = r.listeners; e: { var o = void 0; if (t) for (var s = r.length - 1; 0 <= s; s--) { var a = r[s], l = a.instance, c = a.currentTarget; if (((a = a.listener), l !== o && i.isPropagationStopped())) break e; Rx(i, a, c), (o = l); } else for (s = 0; s < r.length; s++) { if ( ((a = r[s]), (l = a.instance), (c = a.currentTarget), (a = a.listener), l !== o && i.isPropagationStopped()) ) break e; Rx(i, a, c), (o = l); } } } if (Oc) throw ((e = op), (Oc = !1), (op = null), e); } function Me(e, t) { var n = t[mp]; n === void 0 && (n = t[mp] = new Set()); var r = e + "__bubble"; n.has(r) || (tS(t, e, 2, !1), n.add(r)); } function Oh(e, t, n) { var r = 0; t && (r |= 4), tS(n, e, r, t); } var hc = "_reactListening" + Math.random().toString(36).slice(2); function ba(e) { if (!e[hc]) { (e[hc] = !0), lw.forEach(function (n) { n !== "selectionchange" && ($2.has(n) || Oh(n, !1, e), Oh(n, !0, e)); }); var t = e.nodeType === 9 ? e : e.ownerDocument; t === null || t[hc] || ((t[hc] = !0), Oh("selectionchange", !1, t)); } } function tS(e, t, n, r) { switch (zw(t)) { case 1: var i = n2; break; case 4: i = r2; break; default: i = Up; } (n = i.bind(null, t, n, e)), (i = void 0), !ip || (t !== "touchstart" && t !== "touchmove" && t !== "wheel") || (i = !0), r ? i !== void 0 ? e.addEventListener(t, n, { capture: !0, passive: i }) : e.addEventListener(t, n, !0) : i !== void 0 ? e.addEventListener(t, n, { passive: i }) : e.addEventListener(t, n, !1); } function Mh(e, t, n, r, i) { var o = r; if (!(1 & t) && !(2 & t) && r !== null) e: for (;;) { if (r === null) return; var s = r.tag; if (s === 3 || s === 4) { var a = r.stateNode.containerInfo; if (a === i || (a.nodeType === 8 && a.parentNode === i)) break; if (s === 4) for (s = r.return; s !== null; ) { var l = s.tag; if ( (l === 3 || l === 4) && ((l = s.stateNode.containerInfo), l === i || (l.nodeType === 8 && l.parentNode === i)) ) return; s = s.return; } for (; a !== null; ) { if (((s = Ai(a)), s === null)) return; if (((l = s.tag), l === 5 || l === 6)) { r = o = s; continue e; } a = a.parentNode; } } r = r.return; } Cw(function () { var c = o, u = Np(n), f = []; e: { var d = Jw.get(e); if (d !== void 0) { var m = qp, y = e; switch (e) { case "keypress": if (Sc(n) === 0) break e; case "keydown": case "keyup": m = y2; break; case "focusin": (y = "focus"), (m = Fh); break; case "focusout": (y = "blur"), (m = Fh); break; case "beforeblur": case "afterblur": m = Fh; break; case "click": if (n.button === 2) break e; case "auxclick": case "dblclick": case "mousedown": case "mousemove": case "mouseup": case "mouseout": case "mouseover": case "contextmenu": m = px; break; case "drag": case "dragend": case "dragenter": case "dragexit": case "dragleave": case "dragover": case "dragstart": case "drop": m = s2; break; case "touchcancel": case "touchend": case "touchmove": case "touchstart": m = w2; break; case Yw: case Kw: case Qw: m = c2; break; case Zw: m = k2; break; case "scroll": m = i2; break; case "wheel": m = T2; break; case "copy": case "cut": case "paste": m = f2; break; case "gotpointercapture": case "lostpointercapture": case "pointercancel": case "pointerdown": case "pointermove": case "pointerout": case "pointerover": case "pointerup": m = gx; } var g = (4 & t) !== 0, b = !g && e === "scroll", h = g ? (d !== null ? d + "Capture" : null) : d; g = []; for (var p, v = c; v !== null; ) { p = v; var x = p.stateNode; if ( (p.tag === 5 && x !== null && ((p = x), h !== null && ((x = ha(v, h)), x != null && g.push(xa(v, x, p)))), b) ) break; v = v.return; } 0 < g.length && ((d = new m(d, y, null, n, u)), f.push({ event: d, listeners: g })); } } if (!(7 & t)) { if ( ((d = e === "mouseover" || e === "pointerover"), (m = e === "mouseout" || e === "pointerout"), (!d || n === np || !(y = n.relatedTarget || n.fromElement) || (!Ai(y) && !y[Lr])) && (m || d) && ((d = u.window === u ? u : (d = u.ownerDocument) ? d.defaultView || d.parentWindow : F), m ? ((y = n.relatedTarget || n.toElement), (m = c), (y = y ? Ai(y) : null), y !== null && ((b = qi(y)), y !== b || (y.tag !== 5 && y.tag !== 6)) && (y = null)) : ((m = null), (y = c)), m !== y)) ) { if ( ((g = px), (x = "onMouseLeave"), (h = "onMouseEnter"), (v = "mouse"), (e !== "pointerout" && e !== "pointerover") || ((g = gx), (x = "onPointerLeave"), (h = "onPointerEnter"), (v = "pointer")), (b = m == null ? d : Oo(m)), (p = y == null ? d : Oo(y)), (d = new g(x, v + "leave", m, n, u)), (d.target = b), (d.relatedTarget = p), (x = null), Ai(u) === c && ((g = new g(h, v + "enter", y, n, u)), (g.target = p), (g.relatedTarget = b), (x = g)), (b = x), m && y) ) e: { for (g = m, h = y, v = 0, p = g; p; p = Eo(p)) v++; for (p = 0, x = h; x; x = Eo(x)) p++; for (; 0 < v - p; ) (g = Eo(g)), v--; for (; 0 < p - v; ) (h = Eo(h)), p--; for (; v--; ) { if (g === h || (h !== null && g === h.alternate)) break e; (g = Eo(g)), (h = Eo(h)); } g = null; } else g = null; m !== null && Px(f, d, m, g, !1), y !== null && b !== null && Px(f, b, y, g, !0); } if ( ((d = c ? Oo(c) : F), (m = d.nodeName && d.nodeName.toLowerCase()), m === "select" || (m === "input" && d.type === "file")) ) var k = O2; else if (bx(d)) if (Ww) k = A2; else { k = L2; var S = M2; } else (m = d.nodeName) && m.toLowerCase() === "input" && (d.type === "checkbox" || d.type === "radio") && (k = V2); switch ( (k && (k = k(e, c)) ? Hw(f, k, n, u) : (S && S(e, d, c), e === "focusout" && (S = d._wrapperState) && S.controlled && d.type === "number" && Qh(d, "number", d.value)), (S = c ? Oo(c) : F), e) ) { case "focusin": (bx(S) || S.contentEditable === "true") && ((_o = S), (cp = c), (sa = null)); break; case "focusout": sa = cp = _o = null; break; case "mousedown": up = !0; break; case "contextmenu": case "mouseup": case "dragend": (up = !1), kx(f, n, u); break; case "selectionchange": if (B2) break; case "keydown": case "keyup": kx(f, n, u); } var T; if (Yp) e: { switch (e) { case "compositionstart": var R = "onCompositionStart"; break e; case "compositionend": R = "onCompositionEnd"; break e; case "compositionupdate": R = "onCompositionUpdate"; break e; } R = void 0; } else Fo ? Nw(e, n) && (R = "onCompositionEnd") : e === "keydown" && n.keyCode === 229 && (R = "onCompositionStart"); R && ($w && n.locale !== "ko" && (Fo || R !== "onCompositionStart" ? R === "onCompositionEnd" && Fo && (T = Bw()) : ((ri = u), (Gp = "value" in ri ? ri.value : ri.textContent), (Fo = !0))), (S = Dc(c, R)), 0 < S.length && ((R = new mx(R, e, null, n, u)), f.push({ event: R, listeners: S }), T ? (R.data = T) : ((T = jw(n)), T !== null && (R.data = T)))), (T = R2 ? P2(e, n) : F2(e, n)) && ((c = Dc(c, "onBeforeInput")), 0 < c.length && ((u = new mx("onBeforeInput", "beforeinput", null, n, u)), f.push({ event: u, listeners: c }), (u.data = T))); } eS(f, t); }); } function xa(e, t, n) { return { instance: e, listener: t, currentTarget: n }; } function Dc(e, t) { for (var n = t + "Capture", r = []; e !== null; ) { var i = e, o = i.stateNode; i.tag === 5 && o !== null && ((i = o), (o = ha(e, n)), o != null && r.unshift(xa(e, o, i)), (o = ha(e, t)), o != null && r.push(xa(e, o, i))), (e = e.return); } return r; } function Eo(e) { if (e === null) return null; do e = e.return; while (e && e.tag !== 5); return e || null; } function Px(e, t, n, r, i) { for (var o = t._reactName, s = []; n !== null && n !== r; ) { var a = n, l = a.alternate, c = a.stateNode; if (l !== null && l === r) break; a.tag === 5 && c !== null && ((a = c), i ? ((l = ha(n, o)), l != null && s.unshift(xa(n, l, a))) : i || ((l = ha(n, o)), l != null && s.push(xa(n, l, a)))), (n = n.return); } s.length !== 0 && e.push({ event: t, listeners: s }); } var N2 = /\r\n?/g, j2 = /\u0000|\uFFFD/g; function Fx(e) { return (typeof e == "string" ? e : "" + e) .replace( N2, ` ` ) .replace(j2, ""); } function pc(e, t, n) { if (((t = Fx(t)), Fx(e) !== t && n)) throw Error(M(425)); } function zc() {} var fp = null, dp = null; function hp(e, t) { return ( e === "textarea" || e === "noscript" || typeof t.children == "string" || typeof t.children == "number" || (typeof t.dangerouslySetInnerHTML == "object" && t.dangerouslySetInnerHTML !== null && t.dangerouslySetInnerHTML.__html != null) ); } var pp = typeof setTimeout == "function" ? setTimeout : void 0, H2 = typeof clearTimeout == "function" ? clearTimeout : void 0, _x = typeof Promise == "function" ? Promise : void 0, W2 = typeof queueMicrotask == "function" ? queueMicrotask : typeof _x < "u" ? function (e) { return _x.resolve(null).then(e).catch(U2); } : pp; function U2(e) { setTimeout(function () { throw e; }); } function Lh(e, t) { var n = t, r = 0; do { var i = n.nextSibling; if ((e.removeChild(n), i && i.nodeType === 8)) if (((n = i.data), n === "/$")) { if (r === 0) { e.removeChild(i), ga(t); return; } r--; } else (n !== "$" && n !== "$?" && n !== "$!") || r++; n = i; } while (n); ga(t); } function li(e) { for (; e != null; e = e.nextSibling) { var t = e.nodeType; if (t === 1 || t === 3) break; if (t === 8) { if (((t = e.data), t === "$" || t === "$!" || t === "$?")) break; if (t === "/$") return null; } } return e; } function Ix(e) { e = e.previousSibling; for (var t = 0; e; ) { if (e.nodeType === 8) { var n = e.data; if (n === "$" || n === "$!" || n === "$?") { if (t === 0) return e; t--; } else n === "/$" && t++; } e = e.previousSibling; } return null; } var Jo = Math.random().toString(36).slice(2), ur = "__reactFiber$" + Jo, wa = "__reactProps$" + Jo, Lr = "__reactContainer$" + Jo, mp = "__reactEvents$" + Jo, G2 = "__reactListeners$" + Jo, q2 = "__reactHandles$" + Jo; function Ai(e) { var t = e[ur]; if (t) return t; for (var n = e.parentNode; n; ) { if ((t = n[Lr] || n[ur])) { if ( ((n = t.alternate), t.child !== null || (n !== null && n.child !== null)) ) for (e = Ix(e); e !== null; ) { if ((n = e[ur])) return n; e = Ix(e); } return t; } (e = n), (n = e.parentNode); } return null; } function _a(e) { return ( (e = e[ur] || e[Lr]), !e || (e.tag !== 5 && e.tag !== 6 && e.tag !== 13 && e.tag !== 3) ? null : e ); } function Oo(e) { if (e.tag === 5 || e.tag === 6) return e.stateNode; throw Error(M(33)); } function iu(e) { return e[wa] || null; } var gp = [], Mo = -1; function gi(e) { return { current: e }; } function Le(e) { 0 > Mo || ((e.current = gp[Mo]), (gp[Mo] = null), Mo--); } function Fe(e, t) { Mo++, (gp[Mo] = e.current), (e.current = t); } var pi = {}, Ot = gi(pi), Yt = gi(!1), Ni = pi; function Go(e, t) { var n = e.type.contextTypes; if (!n) return pi; var r = e.stateNode; if (r && r.__reactInternalMemoizedUnmaskedChildContext === t) return r.__reactInternalMemoizedMaskedChildContext; var i, o = {}; for (i in n) o[i] = t[i]; return ( r && ((e = e.stateNode), (e.__reactInternalMemoizedUnmaskedChildContext = t), (e.__reactInternalMemoizedMaskedChildContext = o)), o ); } function Kt(e) { return (e = e.childContextTypes), e != null; } function Bc() { Le(Yt), Le(Ot); } function Ox(e, t, n) { if (Ot.current !== pi) throw Error(M(168)); Fe(Ot, t), Fe(Yt, n); } function nS(e, t, n) { var r = e.stateNode; if (((t = t.childContextTypes), typeof r.getChildContext != "function")) return n; r = r.getChildContext(); for (var i in r) if (!(i in t)) throw Error(M(108, MO(e) || "Unknown", i)); return Ge({}, n, r); } function $c(e) { return ( (e = ((e = e.stateNode) && e.__reactInternalMemoizedMergedChildContext) || pi), (Ni = Ot.current), Fe(Ot, e), Fe(Yt, Yt.current), !0 ); } function Mx(e, t, n) { var r = e.stateNode; if (!r) throw Error(M(169)); n ? ((e = nS(e, t, Ni)), (r.__reactInternalMemoizedMergedChildContext = e), Le(Yt), Le(Ot), Fe(Ot, e)) : Le(Yt), Fe(Yt, n); } var Fr = null, ou = !1, Vh = !1; function rS(e) { Fr === null ? (Fr = [e]) : Fr.push(e); } function X2(e) { (ou = !0), rS(e); } function vi() { if (!Vh && Fr !== null) { Vh = !0; var e = 0, t = Ce; try { var n = Fr; for (Ce = 1; e < n.length; e++) { var r = n[e]; do r = r(!0); while (r !== null); } (Fr = null), (ou = !1); } catch (i) { throw (Fr !== null && (Fr = Fr.slice(e + 1)), Pw(jp, vi), i); } finally { (Ce = t), (Vh = !1); } } return null; } var Lo = [], Vo = 0, Nc = null, jc = 0, Cn = [], Tn = 0, ji = null, _r = 1, Ir = ""; function Li(e, t) { (Lo[Vo++] = jc), (Lo[Vo++] = Nc), (Nc = e), (jc = t); } function iS(e, t, n) { (Cn[Tn++] = _r), (Cn[Tn++] = Ir), (Cn[Tn++] = ji), (ji = e); var r = _r; e = Ir; var i = 32 - Nn(r) - 1; (r &= ~(1 << i)), (n += 1); var o = 32 - Nn(t) + i; if (30 < o) { var s = i - (i % 5); (o = (r & ((1 << s) - 1)).toString(32)), (r >>= s), (i -= s), (_r = (1 << (32 - Nn(t) + i)) | (n << i) | r), (Ir = o + e); } else (_r = (1 << o) | (n << i) | r), (Ir = e); } function Qp(e) { e.return !== null && (Li(e, 1), iS(e, 1, 0)); } function Zp(e) { for (; e === Nc; ) (Nc = Lo[--Vo]), (Lo[Vo] = null), (jc = Lo[--Vo]), (Lo[Vo] = null); for (; e === ji; ) (ji = Cn[--Tn]), (Cn[Tn] = null), (Ir = Cn[--Tn]), (Cn[Tn] = null), (_r = Cn[--Tn]), (Cn[Tn] = null); } var cn = null, ln = null, Ne = !1, $n = null; function oS(e, t) { var n = En(5, null, null, 0); (n.elementType = "DELETED"), (n.stateNode = t), (n.return = e), (t = e.deletions), t === null ? ((e.deletions = [n]), (e.flags |= 16)) : t.push(n); } function Lx(e, t) { switch (e.tag) { case 5: var n = e.type; return ( (t = t.nodeType !== 1 || n.toLowerCase() !== t.nodeName.toLowerCase() ? null : t), t !== null && ((e.stateNode = t), (cn = e), (ln = li(t.firstChild)), !0) ); case 6: return ( (t = e.pendingProps === "" || t.nodeType !== 3 ? null : t), t !== null && ((e.stateNode = t), (cn = e), (ln = null), !0) ); case 13: return ( (t = t.nodeType !== 8 ? null : t), t !== null && ((n = ji !== null ? { id: _r, overflow: Ir } : null), (e.memoizedState = { dehydrated: t, treeContext: n, retryLane: 1073741824, }), (n = En(18, null, null, 0)), (n.stateNode = t), (n.return = e), (e.child = n), (cn = e), (ln = null), !0) ); default: return !1; } } function vp(e) { return (1 & e.mode) !== 0 && (128 & e.flags) === 0; } function yp(e) { if (Ne) { var t = ln; if (t) { var n = t; if (!Lx(e, t)) { if (vp(e)) throw Error(M(418)); t = li(n.nextSibling); var r = cn; t && Lx(e, t) ? oS(r, n) : ((e.flags = (-4097 & e.flags) | 2), (Ne = !1), (cn = e)); } } else { if (vp(e)) throw Error(M(418)); (e.flags = (-4097 & e.flags) | 2), (Ne = !1), (cn = e); } } } function Vx(e) { for (e = e.return; e !== null && e.tag !== 5 && e.tag !== 3 && e.tag !== 13; ) e = e.return; cn = e; } function mc(e) { if (e !== cn) return !1; if (!Ne) return Vx(e), (Ne = !0), !1; var t; if ( ((t = e.tag !== 3) && !(t = e.tag !== 5) && ((t = e.type), (t = t !== "head" && t !== "body" && !hp(e.type, e.memoizedProps))), t && (t = ln)) ) { if (vp(e)) throw (sS(), Error(M(418))); for (; t; ) oS(e, t), (t = li(t.nextSibling)); } if ((Vx(e), e.tag === 13)) { if (((e = e.memoizedState), (e = e !== null ? e.dehydrated : null), !e)) throw Error(M(317)); e: { for (e = e.nextSibling, t = 0; e; ) { if (e.nodeType === 8) { var n = e.data; if (n === "/$") { if (t === 0) { ln = li(e.nextSibling); break e; } t--; } else (n !== "$" && n !== "$!" && n !== "$?") || t++; } e = e.nextSibling; } ln = null; } } else ln = cn ? li(e.stateNode.nextSibling) : null; return !0; } function sS() { for (var e = ln; e; ) e = li(e.nextSibling); } function qo() { (ln = cn = null), (Ne = !1); } function Jp(e) { $n === null ? ($n = [e]) : $n.push(e); } var Y2 = Dr.ReactCurrentBatchConfig; function zn(e, t) { if (e && e.defaultProps) { (t = Ge({}, t)), (e = e.defaultProps); for (var n in e) t[n] === void 0 && (t[n] = e[n]); return t; } return t; } var Hc = gi(null), Wc = null, Ao = null, em = null; function tm() { em = Ao = Wc = null; } function nm(e) { var t = Hc.current; Le(Hc), (e._currentValue = t); } function bp(e, t, n) { for (; e !== null; ) { var r = e.alternate; if ( ((e.childLanes & t) !== t ? ((e.childLanes |= t), r !== null && (r.childLanes |= t)) : r !== null && (r.childLanes & t) !== t && (r.childLanes |= t), e === n) ) break; e = e.return; } } function Ho(e, t) { (Wc = e), (em = Ao = null), (e = e.dependencies), e !== null && e.firstContext !== null && (e.lanes & t && (Xt = !0), (e.firstContext = null)); } function Pn(e) { var t = e._currentValue; if (em !== e) if (((e = { context: e, memoizedValue: t, next: null }), Ao === null)) { if (Wc === null) throw Error(M(308)); (Ao = e), (Wc.dependencies = { lanes: 0, firstContext: e }); } else Ao = Ao.next = e; return t; } var Di = null; function rm(e) { Di === null ? (Di = [e]) : Di.push(e); } function aS(e, t, n, r) { var i = t.interleaved; return ( i === null ? ((n.next = n), rm(t)) : ((n.next = i.next), (i.next = n)), (t.interleaved = n), Vr(e, r) ); } function Vr(e, t) { e.lanes |= t; var n = e.alternate; for (n !== null && (n.lanes |= t), n = e, e = e.return; e !== null; ) (e.childLanes |= t), (n = e.alternate), n !== null && (n.childLanes |= t), (n = e), (e = e.return); return n.tag === 3 ? n.stateNode : null; } var ei = !1; function im(e) { e.updateQueue = { baseState: e.memoizedState, firstBaseUpdate: null, lastBaseUpdate: null, shared: { pending: null, interleaved: null, lanes: 0 }, effects: null, }; } function lS(e, t) { (e = e.updateQueue), t.updateQueue === e && (t.updateQueue = { baseState: e.baseState, firstBaseUpdate: e.firstBaseUpdate, lastBaseUpdate: e.lastBaseUpdate, shared: e.shared, effects: e.effects, }); } function Or(e, t) { return { eventTime: e, lane: t, tag: 0, payload: null, callback: null, next: null, }; } function ci(e, t, n) { var r = e.updateQueue; if (r === null) return null; if (((r = r.shared), 2 & xe)) { var i = r.pending; return ( i === null ? (t.next = t) : ((t.next = i.next), (i.next = t)), (r.pending = t), Vr(e, n) ); } return ( (i = r.interleaved), i === null ? ((t.next = t), rm(r)) : ((t.next = i.next), (i.next = t)), (r.interleaved = t), Vr(e, n) ); } function kc(e, t, n) { if ( ((t = t.updateQueue), t !== null && ((t = t.shared), (4194240 & n) !== 0)) ) { var r = t.lanes; (r &= e.pendingLanes), (n |= r), (t.lanes = n), Hp(e, n); } } function Ax(e, t) { var n = e.updateQueue, r = e.alternate; if (r === null || ((r = r.updateQueue), n !== r)) (e = n.lastBaseUpdate), e === null ? (n.firstBaseUpdate = t) : (e.next = t), (n.lastBaseUpdate = t); else { var i = null, o = null; if (((n = n.firstBaseUpdate), n !== null)) { do { var s = { eventTime: n.eventTime, lane: n.lane, tag: n.tag, payload: n.payload, callback: n.callback, next: null, }; o === null ? (i = o = s) : (o = o.next = s), (n = n.next); } while (n !== null); o === null ? (i = o = t) : (o = o.next = t); } else i = o = t; (n = { baseState: r.baseState, firstBaseUpdate: i, lastBaseUpdate: o, shared: r.shared, effects: r.effects, }), (e.updateQueue = n); } } function Uc(e, t, n, r) { var i = e.updateQueue; ei = !1; var o = i.firstBaseUpdate, s = i.lastBaseUpdate, a = i.shared.pending; if (a !== null) { i.shared.pending = null; var l = a, c = l.next; (l.next = null), s === null ? (o = c) : (s.next = c), (s = l); var u = e.alternate; u !== null && ((u = u.updateQueue), (a = u.lastBaseUpdate), a !== s && (a === null ? (u.firstBaseUpdate = c) : (a.next = c), (u.lastBaseUpdate = l))); } if (o !== null) { var f = i.baseState; (s = 0), (u = c = l = null), (a = o); do { var d = a.lane, m = a.eventTime; if ((r & d) === d) { u !== null && (u = u.next = { eventTime: m, lane: 0, tag: a.tag, payload: a.payload, callback: a.callback, next: null, }); e: { var y = e, g = a; switch (((d = t), (m = n), g.tag)) { case 1: if (((y = g.payload), typeof y == "function")) { f = y.call(m, f, d); break e; } f = y; break e; case 3: y.flags = (-65537 & y.flags) | 128; case 0: if ( ((y = g.payload), (d = typeof y == "function" ? y.call(m, f, d) : y), d == null) ) break e; f = Ge({}, f, d); break e; case 2: ei = !0; } } a.callback !== null && a.lane !== 0 && ((e.flags |= 64), (d = i.effects), d === null ? (i.effects = [a]) : d.push(a)); } else (m = { eventTime: m, lane: d, tag: a.tag, payload: a.payload, callback: a.callback, next: null, }), u === null ? ((c = u = m), (l = f)) : (u = u.next = m), (s |= d); if (((a = a.next), a === null)) { if (((a = i.shared.pending), a === null)) break; (d = a), (a = d.next), (d.next = null), (i.lastBaseUpdate = d), (i.shared.pending = null); } } while (1); if ( (u === null && (l = f), (i.baseState = l), (i.firstBaseUpdate = c), (i.lastBaseUpdate = u), (t = i.shared.interleaved), t !== null) ) { i = t; do (s |= i.lane), (i = i.next); while (i !== t); } else o === null && (i.shared.lanes = 0); (Wi |= s), (e.lanes = s), (e.memoizedState = f); } } function Dx(e, t, n) { if (((e = t.effects), (t.effects = null), e !== null)) for (t = 0; t < e.length; t++) { var r = e[t], i = r.callback; if (i !== null) { if (((r.callback = null), (r = n), typeof i != "function")) throw Error(M(191, i)); i.call(r); } } } var cS = new aw.Component().refs; function xp(e, t, n, r) { (t = e.memoizedState), (n = n(r, t)), (n = n == null ? t : Ge({}, t, n)), (e.memoizedState = n), e.lanes === 0 && (e.updateQueue.baseState = n); } var su = { isMounted: function (e) { return !!(e = e._reactInternals) && qi(e) === e; }, enqueueSetState: function (e, t, n) { e = e._reactInternals; var r = $t(), i = fi(e), o = Or(r, i); (o.payload = t), n != null && (o.callback = n), (t = ci(e, o, i)), t !== null && (jn(t, e, i, r), kc(t, e, i)); }, enqueueReplaceState: function (e, t, n) { e = e._reactInternals; var r = $t(), i = fi(e), o = Or(r, i); (o.tag = 1), (o.payload = t), n != null && (o.callback = n), (t = ci(e, o, i)), t !== null && (jn(t, e, i, r), kc(t, e, i)); }, enqueueForceUpdate: function (e, t) { e = e._reactInternals; var n = $t(), r = fi(e), i = Or(n, r); (i.tag = 2), t != null && (i.callback = t), (t = ci(e, i, r)), t !== null && (jn(t, e, r, n), kc(t, e, r)); }, }; function zx(e, t, n, r, i, o, s) { return ( (e = e.stateNode), typeof e.shouldComponentUpdate == "function" ? e.shouldComponentUpdate(r, o, s) : !t.prototype || !t.prototype.isPureReactComponent || !ya(n, r) || !ya(i, o) ); } function uS(e, t, n) { var r = !1, i = pi, o = t.contextType; return ( typeof o == "object" && o !== null ? (o = Pn(o)) : ((i = Kt(t) ? Ni : Ot.current), (r = t.contextTypes), (o = (r = r != null) ? Go(e, i) : pi)), (t = new t(n, o)), (e.memoizedState = t.state !== null && t.state !== void 0 ? t.state : null), (t.updater = su), (e.stateNode = t), (t._reactInternals = e), r && ((e = e.stateNode), (e.__reactInternalMemoizedUnmaskedChildContext = i), (e.__reactInternalMemoizedMaskedChildContext = o)), t ); } function Bx(e, t, n, r) { (e = t.state), typeof t.componentWillReceiveProps == "function" && t.componentWillReceiveProps(n, r), typeof t.UNSAFE_componentWillReceiveProps == "function" && t.UNSAFE_componentWillReceiveProps(n, r), t.state !== e && su.enqueueReplaceState(t, t.state, null); } function wp(e, t, n, r) { var i = e.stateNode; (i.props = n), (i.state = e.memoizedState), (i.refs = cS), im(e); var o = t.contextType; typeof o == "object" && o !== null ? (i.context = Pn(o)) : ((o = Kt(t) ? Ni : Ot.current), (i.context = Go(e, o))), (i.state = e.memoizedState), (o = t.getDerivedStateFromProps), typeof o == "function" && (xp(e, t, o, n), (i.state = e.memoizedState)), typeof t.getDerivedStateFromProps == "function" || typeof i.getSnapshotBeforeUpdate == "function" || (typeof i.UNSAFE_componentWillMount != "function" && typeof i.componentWillMount != "function") || ((t = i.state), typeof i.componentWillMount == "function" && i.componentWillMount(), typeof i.UNSAFE_componentWillMount == "function" && i.UNSAFE_componentWillMount(), t !== i.state && su.enqueueReplaceState(i, i.state, null), Uc(e, n, i, r), (i.state = e.memoizedState)), typeof i.componentDidMount == "function" && (e.flags |= 4194308); } function Xs(e, t, n) { if ( ((e = n.ref), e !== null && typeof e != "function" && typeof e != "object") ) { if (n._owner) { if (((n = n._owner), n)) { if (n.tag !== 1) throw Error(M(309)); var r = n.stateNode; } if (!r) throw Error(M(147, e)); var i = r, o = "" + e; return t !== null && t.ref !== null && typeof t.ref == "function" && t.ref._stringRef === o ? t.ref : ((t = function (s) { var a = i.refs; a === cS && (a = i.refs = {}), s === null ? delete a[o] : (a[o] = s); }), (t._stringRef = o), t); } if (typeof e != "string") throw Error(M(284)); if (!n._owner) throw Error(M(290, e)); } return e; } function gc(e, t) { throw ( ((e = Object.prototype.toString.call(t)), Error( M( 31, e === "[object Object]" ? "object with keys {" + Object.keys(t).join(", ") + "}" : e ) )) ); } function $x(e) { var t = e._init; return t(e._payload); } function fS(e) { function t(h, p) { if (e) { var v = h.deletions; v === null ? ((h.deletions = [p]), (h.flags |= 16)) : v.push(p); } } function n(h, p) { if (!e) return null; for (; p !== null; ) t(h, p), (p = p.sibling); return null; } function r(h, p) { for (h = new Map(); p !== null; ) p.key !== null ? h.set(p.key, p) : h.set(p.index, p), (p = p.sibling); return h; } function i(h, p) { return (h = di(h, p)), (h.index = 0), (h.sibling = null), h; } function o(h, p, v) { return ( (h.index = v), e ? ((v = h.alternate), v !== null ? ((v = v.index), v < p ? ((h.flags |= 2), p) : v) : ((h.flags |= 2), p)) : ((h.flags |= 1048576), p) ); } function s(h) { return e && h.alternate === null && (h.flags |= 2), h; } function a(h, p, v, x) { return p === null || p.tag !== 6 ? ((p = jh(v, h.mode, x)), (p.return = h), p) : ((p = i(p, v)), (p.return = h), p); } function l(h, p, v, x) { var k = v.type; return k === Po ? u(h, p, v.props.children, x, v.key) : p !== null && (p.elementType === k || (typeof k == "object" && k !== null && k.$$typeof === Jr && $x(k) === p.type)) ? ((x = i(p, v.props)), (x.ref = Xs(h, p, v)), (x.return = h), x) : ((x = Fc(v.type, v.key, v.props, null, h.mode, x)), (x.ref = Xs(h, p, v)), (x.return = h), x); } function c(h, p, v, x) { return p === null || p.tag !== 4 || p.stateNode.containerInfo !== v.containerInfo || p.stateNode.implementation !== v.implementation ? ((p = Hh(v, h.mode, x)), (p.return = h), p) : ((p = i(p, v.children || [])), (p.return = h), p); } function u(h, p, v, x, k) { return p === null || p.tag !== 7 ? ((p = $i(v, h.mode, x, k)), (p.return = h), p) : ((p = i(p, v)), (p.return = h), p); } function f(h, p, v) { if ((typeof p == "string" && p !== "") || typeof p == "number") return (p = jh("" + p, h.mode, v)), (p.return = h), p; if (typeof p == "object" && p !== null) { switch (p.$$typeof) { case tc: return ( (v = Fc(p.type, p.key, p.props, null, h.mode, v)), (v.ref = Xs(h, null, p)), (v.return = h), v ); case Ro: return (p = Hh(p, h.mode, v)), (p.return = h), p; case Jr: var x = p._init; return f(h, x(p._payload), v); } if (Js(p) || Ws(p)) return (p = $i(p, h.mode, v, null)), (p.return = h), p; gc(h, p); } return null; } function d(h, p, v, x) { var k = p !== null ? p.key : null; if ((typeof v == "string" && v !== "") || typeof v == "number") return k !== null ? null : a(h, p, "" + v, x); if (typeof v == "object" && v !== null) { switch (v.$$typeof) { case tc: return v.key === k ? l(h, p, v, x) : null; case Ro: return v.key === k ? c(h, p, v, x) : null; case Jr: return (k = v._init), d(h, p, k(v._payload), x); } if (Js(v) || Ws(v)) return k !== null ? null : u(h, p, v, x, null); gc(h, v); } return null; } function m(h, p, v, x, k) { if ((typeof x == "string" && x !== "") || typeof x == "number") return (h = h.get(v) || null), a(p, h, "" + x, k); if (typeof x == "object" && x !== null) { switch (x.$$typeof) { case tc: return (h = h.get(x.key === null ? v : x.key) || null), l(p, h, x, k); case Ro: return (h = h.get(x.key === null ? v : x.key) || null), c(p, h, x, k); case Jr: var S = x._init; return m(h, p, v, S(x._payload), k); } if (Js(x) || Ws(x)) return (h = h.get(v) || null), u(p, h, x, k, null); gc(p, x); } return null; } function y(h, p, v, x) { for ( var k = null, S = null, T = p, R = (p = 0), O = null; T !== null && R < v.length; R++ ) { T.index > R ? ((O = T), (T = null)) : (O = T.sibling); var I = d(h, T, v[R], x); if (I === null) { T === null && (T = O); break; } e && T && I.alternate === null && t(h, T), (p = o(I, p, R)), S === null ? (k = I) : (S.sibling = I), (S = I), (T = O); } if (R === v.length) return n(h, T), Ne && Li(h, R), k; if (T === null) { for (; R < v.length; R++) (T = f(h, v[R], x)), T !== null && ((p = o(T, p, R)), S === null ? (k = T) : (S.sibling = T), (S = T)); return Ne && Li(h, R), k; } for (T = r(h, T); R < v.length; R++) (O = m(T, h, R, v[R], x)), O !== null && (e && O.alternate !== null && T.delete(O.key === null ? R : O.key), (p = o(O, p, R)), S === null ? (k = O) : (S.sibling = O), (S = O)); return ( e && T.forEach(function (j) { return t(h, j); }), Ne && Li(h, R), k ); } function g(h, p, v, x) { var k = Ws(v); if (typeof k != "function") throw Error(M(150)); if (((v = k.call(v)), v == null)) throw Error(M(151)); for ( var S = (k = null), T = p, R = (p = 0), O = null, I = v.next(); T !== null && !I.done; R++, I = v.next() ) { T.index > R ? ((O = T), (T = null)) : (O = T.sibling); var j = d(h, T, I.value, x); if (j === null) { T === null && (T = O); break; } e && T && j.alternate === null && t(h, T), (p = o(j, p, R)), S === null ? (k = j) : (S.sibling = j), (S = j), (T = O); } if (I.done) return n(h, T), Ne && Li(h, R), k; if (T === null) { for (; !I.done; R++, I = v.next()) (I = f(h, I.value, x)), I !== null && ((p = o(I, p, R)), S === null ? (k = I) : (S.sibling = I), (S = I)); return Ne && Li(h, R), k; } for (T = r(h, T); !I.done; R++, I = v.next()) (I = m(T, h, R, I.value, x)), I !== null && (e && I.alternate !== null && T.delete(I.key === null ? R : I.key), (p = o(I, p, R)), S === null ? (k = I) : (S.sibling = I), (S = I)); return ( e && T.forEach(function (z) { return t(h, z); }), Ne && Li(h, R), k ); } function b(h, p, v, x) { if ( (typeof v == "object" && v !== null && v.type === Po && v.key === null && (v = v.props.children), typeof v == "object" && v !== null) ) { switch (v.$$typeof) { case tc: e: { for (var k = v.key, S = p; S !== null; ) { if (S.key === k) { if (((k = v.type), k === Po)) { if (S.tag === 7) { n(h, S.sibling), (p = i(S, v.props.children)), (p.return = h), (h = p); break e; } } else if ( S.elementType === k || (typeof k == "object" && k !== null && k.$$typeof === Jr && $x(k) === S.type) ) { n(h, S.sibling), (p = i(S, v.props)), (p.ref = Xs(h, S, v)), (p.return = h), (h = p); break e; } n(h, S); break; } t(h, S), (S = S.sibling); } v.type === Po ? ((p = $i(v.props.children, h.mode, x, v.key)), (p.return = h), (h = p)) : ((x = Fc(v.type, v.key, v.props, null, h.mode, x)), (x.ref = Xs(h, p, v)), (x.return = h), (h = x)); } return s(h); case Ro: e: { for (S = v.key; p !== null; ) { if (p.key === S) { if ( p.tag === 4 && p.stateNode.containerInfo === v.containerInfo && p.stateNode.implementation === v.implementation ) { n(h, p.sibling), (p = i(p, v.children || [])), (p.return = h), (h = p); break e; } n(h, p); break; } t(h, p), (p = p.sibling); } (p = Hh(v, h.mode, x)), (p.return = h), (h = p); } return s(h); case Jr: return (S = v._init), b(h, p, S(v._payload), x); } if (Js(v)) return y(h, p, v, x); if (Ws(v)) return g(h, p, v, x); gc(h, v); } return (typeof v == "string" && v !== "") || typeof v == "number" ? ((v = "" + v), p !== null && p.tag === 6 ? (n(h, p.sibling), (p = i(p, v)), (p.return = h), (h = p)) : (n(h, p), (p = jh(v, h.mode, x)), (p.return = h), (h = p)), s(h)) : n(h, p); } return b; } var Xo = fS(!0), dS = fS(!1), Ia = {}, dr = gi(Ia), Sa = gi(Ia), ka = gi(Ia); function zi(e) { if (e === Ia) throw Error(M(174)); return e; } function om(e, t) { switch ((Fe(ka, t), Fe(Sa, e), Fe(dr, Ia), (e = t.nodeType), e)) { case 9: case 11: t = (t = t.documentElement) ? t.namespaceURI : Jh(null, ""); break; default: (e = e === 8 ? t.parentNode : t), (t = e.namespaceURI || null), (e = e.tagName), (t = Jh(t, e)); } Le(dr), Fe(dr, t); } function Yo() { Le(dr), Le(Sa), Le(ka); } function hS(e) { zi(ka.current); var t = zi(dr.current), n = Jh(t, e.type); t !== n && (Fe(Sa, e), Fe(dr, n)); } function sm(e) { Sa.current === e && (Le(dr), Le(Sa)); } var We = gi(0); function Gc(e) { for (var t = e; t !== null; ) { if (t.tag === 13) { var n = t.memoizedState; if ( n !== null && ((n = n.dehydrated), n === null || n.data === "$?" || n.data === "$!") ) return t; } else if (t.tag === 19 && t.memoizedProps.revealOrder !== void 0) { if (128 & t.flags) return t; } else if (t.child !== null) { (t.child.return = t), (t = t.child); continue; } if (t === e) break; for (; t.sibling === null; ) { if (t.return === null || t.return === e) return null; t = t.return; } (t.sibling.return = t.return), (t = t.sibling); } return null; } var Ah = []; function am() { for (var e = 0; e < Ah.length; e++) Ah[e]._workInProgressVersionPrimary = null; Ah.length = 0; } var Cc = Dr.ReactCurrentDispatcher, Dh = Dr.ReactCurrentBatchConfig, Hi = 0, Ue = null, st = null, dt = null, qc = !1, aa = !1, Ca = 0, K2 = 0; function Ft() { throw Error(M(321)); } function lm(e, t) { if (t === null) return !1; for (var n = 0; n < t.length && n < e.length; n++) if (!Hn(e[n], t[n])) return !1; return !0; } function cm(e, t, n, r, i, o) { if ( ((Hi = o), (Ue = t), (t.memoizedState = null), (t.updateQueue = null), (t.lanes = 0), (Cc.current = e === null || e.memoizedState === null ? eM : tM), (e = n(r, i)), aa) ) { o = 0; do { if (((aa = !1), (Ca = 0), 25 <= o)) throw Error(M(301)); (o += 1), (dt = st = null), (t.updateQueue = null), (Cc.current = nM), (e = n(r, i)); } while (aa); } if ( ((Cc.current = Xc), (t = st !== null && st.next !== null), (Hi = 0), (dt = st = Ue = null), (qc = !1), t) ) throw Error(M(300)); return e; } function um() { var e = Ca !== 0; return (Ca = 0), e; } function cr() { var e = { memoizedState: null, baseState: null, baseQueue: null, queue: null, next: null, }; return dt === null ? (Ue.memoizedState = dt = e) : (dt = dt.next = e), dt; } function Fn() { if (st === null) { var e = Ue.alternate; e = e !== null ? e.memoizedState : null; } else e = st.next; var t = dt === null ? Ue.memoizedState : dt.next; if (t !== null) (dt = t), (st = e); else { if (e === null) throw Error(M(310)); (st = e), (e = { memoizedState: st.memoizedState, baseState: st.baseState, baseQueue: st.baseQueue, queue: st.queue, next: null, }), dt === null ? (Ue.memoizedState = dt = e) : (dt = dt.next = e); } return dt; } function Ta(e, t) { return typeof t == "function" ? t(e) : t; } function zh(e) { var t = Fn(), n = t.queue; if (n === null) throw Error(M(311)); n.lastRenderedReducer = e; var r = st, i = r.baseQueue, o = n.pending; if (o !== null) { if (i !== null) { var s = i.next; (i.next = o.next), (o.next = s); } (r.baseQueue = i = o), (n.pending = null); } if (i !== null) { (o = i.next), (r = r.baseState); var a = (s = null), l = null, c = o; do { var u = c.lane; if ((Hi & u) === u) l !== null && (l = l.next = { lane: 0, action: c.action, hasEagerState: c.hasEagerState, eagerState: c.eagerState, next: null, }), (r = c.hasEagerState ? c.eagerState : e(r, c.action)); else { var f = { lane: u, action: c.action, hasEagerState: c.hasEagerState, eagerState: c.eagerState, next: null, }; l === null ? ((a = l = f), (s = r)) : (l = l.next = f), (Ue.lanes |= u), (Wi |= u); } c = c.next; } while (c !== null && c !== o); l === null ? (s = r) : (l.next = a), Hn(r, t.memoizedState) || (Xt = !0), (t.memoizedState = r), (t.baseState = s), (t.baseQueue = l), (n.lastRenderedState = r); } if (((e = n.interleaved), e !== null)) { i = e; do (o = i.lane), (Ue.lanes |= o), (Wi |= o), (i = i.next); while (i !== e); } else i === null && (n.lanes = 0); return [t.memoizedState, n.dispatch]; } function Bh(e) { var t = Fn(), n = t.queue; if (n === null) throw Error(M(311)); n.lastRenderedReducer = e; var r = n.dispatch, i = n.pending, o = t.memoizedState; if (i !== null) { n.pending = null; var s = (i = i.next); do (o = e(o, s.action)), (s = s.next); while (s !== i); Hn(o, t.memoizedState) || (Xt = !0), (t.memoizedState = o), t.baseQueue === null && (t.baseState = o), (n.lastRenderedState = o); } return [o, r]; } function pS() {} function mS(e, t) { var n = Ue, r = Fn(), i = t(), o = !Hn(r.memoizedState, i); if ( (o && ((r.memoizedState = i), (Xt = !0)), (r = r.queue), fm(yS.bind(null, n, r, e), [e]), r.getSnapshot !== t || o || (dt !== null && 1 & dt.memoizedState.tag)) ) { if ( ((n.flags |= 2048), Ea(9, vS.bind(null, n, r, i, t), void 0, null), ht === null) ) throw Error(M(349)); 30 & Hi || gS(n, t, i); } return i; } function gS(e, t, n) { (e.flags |= 16384), (e = { getSnapshot: t, value: n }), (t = Ue.updateQueue), t === null ? ((t = { lastEffect: null, stores: null }), (Ue.updateQueue = t), (t.stores = [e])) : ((n = t.stores), n === null ? (t.stores = [e]) : n.push(e)); } function vS(e, t, n, r) { (t.value = n), (t.getSnapshot = r), bS(t) && xS(e); } function yS(e, t, n) { return n(function () { bS(t) && xS(e); }); } function bS(e) { var t = e.getSnapshot; e = e.value; try { var n = t(); return !Hn(e, n); } catch { return !0; } } function xS(e) { var t = Vr(e, 1); t !== null && jn(t, e, 1, -1); } function Nx(e) { var t = cr(); return ( typeof e == "function" && (e = e()), (t.memoizedState = t.baseState = e), (e = { pending: null, interleaved: null, lanes: 0, dispatch: null, lastRenderedReducer: Ta, lastRenderedState: e, }), (t.queue = e), (e = e.dispatch = J2.bind(null, Ue, e)), [t.memoizedState, e] ); } function Ea(e, t, n, r) { return ( (e = { tag: e, create: t, destroy: n, deps: r, next: null }), (t = Ue.updateQueue), t === null ? ((t = { lastEffect: null, stores: null }), (Ue.updateQueue = t), (t.lastEffect = e.next = e)) : ((n = t.lastEffect), n === null ? (t.lastEffect = e.next = e) : ((r = n.next), (n.next = e), (e.next = r), (t.lastEffect = e))), e ); } function wS() { return Fn().memoizedState; } function Tc(e, t, n, r) { var i = cr(); (Ue.flags |= e), (i.memoizedState = Ea(1 | t, n, void 0, r === void 0 ? null : r)); } function au(e, t, n, r) { var i = Fn(); r = r === void 0 ? null : r; var o = void 0; if (st !== null) { var s = st.memoizedState; if (((o = s.destroy), r !== null && lm(r, s.deps))) { i.memoizedState = Ea(t, n, o, r); return; } } (Ue.flags |= e), (i.memoizedState = Ea(1 | t, n, o, r)); } function jx(e, t) { return Tc(8390656, 8, e, t); } function fm(e, t) { return au(2048, 8, e, t); } function SS(e, t) { return au(4, 2, e, t); } function kS(e, t) { return au(4, 4, e, t); } function CS(e, t) { return typeof t == "function" ? ((e = e()), t(e), function () { t(null); }) : t != null ? ((e = e()), (t.current = e), function () { t.current = null; }) : void 0; } function TS(e, t, n) { return ( (n = n != null ? n.concat([e]) : null), au(4, 4, CS.bind(null, t, e), n) ); } function dm() {} function ES(e, t) { var n = Fn(); t = t === void 0 ? null : t; var r = n.memoizedState; return r !== null && t !== null && lm(t, r[1]) ? r[0] : ((n.memoizedState = [e, t]), e); } function RS(e, t) { var n = Fn(); t = t === void 0 ? null : t; var r = n.memoizedState; return r !== null && t !== null && lm(t, r[1]) ? r[0] : ((e = e()), (n.memoizedState = [e, t]), e); } function PS(e, t, n) { return 21 & Hi ? (Hn(n, t) || ((n = Iw()), (Ue.lanes |= n), (Wi |= n), (e.baseState = !0)), t) : (e.baseState && ((e.baseState = !1), (Xt = !0)), (e.memoizedState = n)); } function Q2(e, t) { var n = Ce; (Ce = n !== 0 && 4 > n ? n : 4), e(!0); var r = Dh.transition; Dh.transition = {}; try { e(!1), t(); } finally { (Ce = n), (Dh.transition = r); } } function FS() { return Fn().memoizedState; } function Z2(e, t, n) { var r = fi(e); if ( ((n = { lane: r, action: n, hasEagerState: !1, eagerState: null, next: null, }), _S(e)) ) IS(t, n); else if (((n = aS(e, t, n, r)), n !== null)) { var i = $t(); jn(n, e, r, i), OS(n, t, r); } } function J2(e, t, n) { var r = fi(e), i = { lane: r, action: n, hasEagerState: !1, eagerState: null, next: null }; if (_S(e)) IS(t, i); else { var o = e.alternate; if ( e.lanes === 0 && (o === null || o.lanes === 0) && ((o = t.lastRenderedReducer), o !== null) ) try { var s = t.lastRenderedState, a = o(s, n); if (((i.hasEagerState = !0), (i.eagerState = a), Hn(a, s))) { var l = t.interleaved; l === null ? ((i.next = i), rm(t)) : ((i.next = l.next), (l.next = i)), (t.interleaved = i); return; } } catch {} (n = aS(e, t, i, r)), n !== null && ((i = $t()), jn(n, e, r, i), OS(n, t, r)); } } function _S(e) { var t = e.alternate; return e === Ue || (t !== null && t === Ue); } function IS(e, t) { aa = qc = !0; var n = e.pending; n === null ? (t.next = t) : ((t.next = n.next), (n.next = t)), (e.pending = t); } function OS(e, t, n) { if (4194240 & n) { var r = t.lanes; (r &= e.pendingLanes), (n |= r), (t.lanes = n), Hp(e, n); } } var Xc = { readContext: Pn, useCallback: Ft, useContext: Ft, useEffect: Ft, useImperativeHandle: Ft, useInsertionEffect: Ft, useLayoutEffect: Ft, useMemo: Ft, useReducer: Ft, useRef: Ft, useState: Ft, useDebugValue: Ft, useDeferredValue: Ft, useTransition: Ft, useMutableSource: Ft, useSyncExternalStore: Ft, useId: Ft, unstable_isNewReconciler: !1, }, eM = { readContext: Pn, useCallback: function (e, t) { return (cr().memoizedState = [e, t === void 0 ? null : t]), e; }, useContext: Pn, useEffect: jx, useImperativeHandle: function (e, t, n) { return ( (n = n != null ? n.concat([e]) : null), Tc(4194308, 4, CS.bind(null, t, e), n) ); }, useLayoutEffect: function (e, t) { return Tc(4194308, 4, e, t); }, useInsertionEffect: function (e, t) { return Tc(4, 2, e, t); }, useMemo: function (e, t) { var n = cr(); return ( (t = t === void 0 ? null : t), (e = e()), (n.memoizedState = [e, t]), e ); }, useReducer: function (e, t, n) { var r = cr(); return ( (t = n !== void 0 ? n(t) : t), (r.memoizedState = r.baseState = t), (e = { pending: null, interleaved: null, lanes: 0, dispatch: null, lastRenderedReducer: e, lastRenderedState: t, }), (r.queue = e), (e = e.dispatch = Z2.bind(null, Ue, e)), [r.memoizedState, e] ); }, useRef: function (e) { var t = cr(); return (e = { current: e }), (t.memoizedState = e); }, useState: Nx, useDebugValue: dm, useDeferredValue: function (e) { return (cr().memoizedState = e); }, useTransition: function () { var e = Nx(!1), t = e[0]; return (e = Q2.bind(null, e[1])), (cr().memoizedState = e), [t, e]; }, useMutableSource: function () {}, useSyncExternalStore: function (e, t, n) { var r = Ue, i = cr(); if (Ne) { if (n === void 0) throw Error(M(407)); n = n(); } else { if (((n = t()), ht === null)) throw Error(M(349)); 30 & Hi || gS(r, t, n); } i.memoizedState = n; var o = { value: n, getSnapshot: t }; return ( (i.queue = o), jx(yS.bind(null, r, o, e), [e]), (r.flags |= 2048), Ea(9, vS.bind(null, r, o, n, t), void 0, null), n ); }, useId: function () { var e = cr(), t = ht.identifierPrefix; if (Ne) { var n = Ir, r = _r; (n = (r & ~(1 << (32 - Nn(r) - 1))).toString(32) + n), (t = ":" + t + "R" + n), (n = Ca++), 0 < n && (t += "H" + n.toString(32)), (t += ":"); } else (n = K2++), (t = ":" + t + "r" + n.toString(32) + ":"); return (e.memoizedState = t); }, unstable_isNewReconciler: !1, }, tM = { readContext: Pn, useCallback: ES, useContext: Pn, useEffect: fm, useImperativeHandle: TS, useInsertionEffect: SS, useLayoutEffect: kS, useMemo: RS, useReducer: zh, useRef: wS, useState: function () { return zh(Ta); }, useDebugValue: dm, useDeferredValue: function (e) { var t = Fn(); return PS(t, st.memoizedState, e); }, useTransition: function () { var e = zh(Ta)[0], t = Fn().memoizedState; return [e, t]; }, useMutableSource: pS, useSyncExternalStore: mS, useId: FS, unstable_isNewReconciler: !1, }, nM = { readContext: Pn, useCallback: ES, useContext: Pn, useEffect: fm, useImperativeHandle: TS, useInsertionEffect: SS, useLayoutEffect: kS, useMemo: RS, useReducer: Bh, useRef: wS, useState: function () { return Bh(Ta); }, useDebugValue: dm, useDeferredValue: function (e) { var t = Fn(); return st === null ? (t.memoizedState = e) : PS(t, st.memoizedState, e); }, useTransition: function () { var e = Bh(Ta)[0], t = Fn().memoizedState; return [e, t]; }, useMutableSource: pS, useSyncExternalStore: mS, useId: FS, unstable_isNewReconciler: !1, }; function Ko(e, t) { try { var n = "", r = t; do (n += OO(r)), (r = r.return); while (r); var i = n; } catch (o) { i = ` Error generating stack: ` + o.message + ` ` + o.stack; } return { value: e, source: t, stack: i, digest: null }; } function $h(e, t, n) { return { value: e, source: null, stack: n ?? null, digest: t ?? null }; } function Sp(e, t) { try { console.error(t.value); } catch (n) { setTimeout(function () { throw n; }); } } var rM = typeof WeakMap == "function" ? WeakMap : Map; function MS(e, t, n) { (n = Or(-1, n)), (n.tag = 3), (n.payload = { element: null }); var r = t.value; return ( (n.callback = function () { Kc || ((Kc = !0), (Ip = r)), Sp(e, t); }), n ); } function LS(e, t, n) { (n = Or(-1, n)), (n.tag = 3); var r = e.type.getDerivedStateFromError; if (typeof r == "function") { var i = t.value; (n.payload = function () { return r(i); }), (n.callback = function () { Sp(e, t); }); } var o = e.stateNode; return ( o !== null && typeof o.componentDidCatch == "function" && (n.callback = function () { Sp(e, t), typeof r != "function" && (ui === null ? (ui = new Set([this])) : ui.add(this)); var s = t.stack; this.componentDidCatch(t.value, { componentStack: s !== null ? s : "", }); }), n ); } function Hx(e, t, n) { var r = e.pingCache; if (r === null) { r = e.pingCache = new rM(); var i = new Set(); r.set(t, i); } else (i = r.get(t)), i === void 0 && ((i = new Set()), r.set(t, i)); i.has(n) || (i.add(n), (e = vM.bind(null, e, t, n)), t.then(e, e)); } function Wx(e) { do { var t; if ( ((t = e.tag === 13) && ((t = e.memoizedState), (t = t === null || t.dehydrated !== null)), t) ) return e; e = e.return; } while (e !== null); return null; } function Ux(e, t, n, r, i) { return 1 & e.mode ? ((e.flags |= 65536), (e.lanes = i), e) : (e === t ? (e.flags |= 65536) : ((e.flags |= 128), (n.flags |= 131072), (n.flags &= -52805), n.tag === 1 && (n.alternate === null ? (n.tag = 17) : ((t = Or(-1, 1)), (t.tag = 2), ci(n, t, 1))), (n.lanes |= 1)), e); } var iM = Dr.ReactCurrentOwner, Xt = !1; function Bt(e, t, n, r) { t.child = e === null ? dS(t, null, n, r) : Xo(t, e.child, n, r); } function Gx(e, t, n, r, i) { n = n.render; var o = t.ref; return ( Ho(t, i), (r = cm(e, t, n, r, o, i)), (n = um()), e !== null && !Xt ? ((t.updateQueue = e.updateQueue), (t.flags &= -2053), (e.lanes &= ~i), Ar(e, t, i)) : (Ne && n && Qp(t), (t.flags |= 1), Bt(e, t, r, i), t.child) ); } function qx(e, t, n, r, i) { if (e === null) { var o = n.type; return typeof o == "function" && !xm(o) && o.defaultProps === void 0 && n.compare === null && n.defaultProps === void 0 ? ((t.tag = 15), (t.type = o), VS(e, t, o, r, i)) : ((e = Fc(n.type, null, r, t, t.mode, i)), (e.ref = t.ref), (e.return = t), (t.child = e)); } if (((o = e.child), !(e.lanes & i))) { var s = o.memoizedProps; if ( ((n = n.compare), (n = n !== null ? n : ya), n(s, r) && e.ref === t.ref) ) return Ar(e, t, i); } return ( (t.flags |= 1), (e = di(o, r)), (e.ref = t.ref), (e.return = t), (t.child = e) ); } function VS(e, t, n, r, i) { if (e !== null) { var o = e.memoizedProps; if (ya(o, r) && e.ref === t.ref) { if (((Xt = !1), (t.pendingProps = r = o), (e.lanes & i) === 0)) return (t.lanes = e.lanes), Ar(e, t, i); 131072 & e.flags && (Xt = !0); } } return kp(e, t, n, r, i); } function AS(e, t, n) { var r = t.pendingProps, i = r.children, o = e !== null ? e.memoizedState : null; if (r.mode === "hidden") if (!(1 & t.mode)) (t.memoizedState = { baseLanes: 0, cachePool: null, transitions: null }), Fe(zo, an), (an |= n); else { if (!(1073741824 & n)) return ( (e = o !== null ? o.baseLanes | n : n), (t.lanes = t.childLanes = 1073741824), (t.memoizedState = { baseLanes: e, cachePool: null, transitions: null, }), (t.updateQueue = null), Fe(zo, an), (an |= e), null ); (t.memoizedState = { baseLanes: 0, cachePool: null, transitions: null }), (r = o !== null ? o.baseLanes : n), Fe(zo, an), (an |= r); } else o !== null ? ((r = o.baseLanes | n), (t.memoizedState = null)) : (r = n), Fe(zo, an), (an |= r); return Bt(e, t, i, n), t.child; } function DS(e, t) { var n = t.ref; ((e === null && n !== null) || (e !== null && e.ref !== n)) && ((t.flags |= 512), (t.flags |= 2097152)); } function kp(e, t, n, r, i) { var o = Kt(n) ? Ni : Ot.current; return ( (o = Go(t, o)), Ho(t, i), (n = cm(e, t, n, r, o, i)), (r = um()), e !== null && !Xt ? ((t.updateQueue = e.updateQueue), (t.flags &= -2053), (e.lanes &= ~i), Ar(e, t, i)) : (Ne && r && Qp(t), (t.flags |= 1), Bt(e, t, n, i), t.child) ); } function Xx(e, t, n, r, i) { if (Kt(n)) { var o = !0; $c(t); } else o = !1; if ((Ho(t, i), t.stateNode === null)) Ec(e, t), uS(t, n, r), wp(t, n, r, i), (r = !0); else if (e === null) { var s = t.stateNode, a = t.memoizedProps; s.props = a; var l = s.context, c = n.contextType; typeof c == "object" && c !== null ? (c = Pn(c)) : ((c = Kt(n) ? Ni : Ot.current), (c = Go(t, c))); var u = n.getDerivedStateFromProps, f = typeof u == "function" || typeof s.getSnapshotBeforeUpdate == "function"; f || (typeof s.UNSAFE_componentWillReceiveProps != "function" && typeof s.componentWillReceiveProps != "function") || ((a !== r || l !== c) && Bx(t, s, r, c)), (ei = !1); var d = t.memoizedState; (s.state = d), Uc(t, r, s, i), (l = t.memoizedState), a !== r || d !== l || Yt.current || ei ? (typeof u == "function" && (xp(t, n, u, r), (l = t.memoizedState)), (a = ei || zx(t, n, a, r, d, l, c)) ? (f || (typeof s.UNSAFE_componentWillMount != "function" && typeof s.componentWillMount != "function") || (typeof s.componentWillMount == "function" && s.componentWillMount(), typeof s.UNSAFE_componentWillMount == "function" && s.UNSAFE_componentWillMount()), typeof s.componentDidMount == "function" && (t.flags |= 4194308)) : (typeof s.componentDidMount == "function" && (t.flags |= 4194308), (t.memoizedProps = r), (t.memoizedState = l)), (s.props = r), (s.state = l), (s.context = c), (r = a)) : (typeof s.componentDidMount == "function" && (t.flags |= 4194308), (r = !1)); } else { (s = t.stateNode), lS(e, t), (a = t.memoizedProps), (c = t.type === t.elementType ? a : zn(t.type, a)), (s.props = c), (f = t.pendingProps), (d = s.context), (l = n.contextType), typeof l == "object" && l !== null ? (l = Pn(l)) : ((l = Kt(n) ? Ni : Ot.current), (l = Go(t, l))); var m = n.getDerivedStateFromProps; (u = typeof m == "function" || typeof s.getSnapshotBeforeUpdate == "function") || (typeof s.UNSAFE_componentWillReceiveProps != "function" && typeof s.componentWillReceiveProps != "function") || ((a !== f || d !== l) && Bx(t, s, r, l)), (ei = !1), (d = t.memoizedState), (s.state = d), Uc(t, r, s, i); var y = t.memoizedState; a !== f || d !== y || Yt.current || ei ? (typeof m == "function" && (xp(t, n, m, r), (y = t.memoizedState)), (c = ei || zx(t, n, c, r, d, y, l) || !1) ? (u || (typeof s.UNSAFE_componentWillUpdate != "function" && typeof s.componentWillUpdate != "function") || (typeof s.componentWillUpdate == "function" && s.componentWillUpdate(r, y, l), typeof s.UNSAFE_componentWillUpdate == "function" && s.UNSAFE_componentWillUpdate(r, y, l)), typeof s.componentDidUpdate == "function" && (t.flags |= 4), typeof s.getSnapshotBeforeUpdate == "function" && (t.flags |= 1024)) : (typeof s.componentDidUpdate != "function" || (a === e.memoizedProps && d === e.memoizedState) || (t.flags |= 4), typeof s.getSnapshotBeforeUpdate != "function" || (a === e.memoizedProps && d === e.memoizedState) || (t.flags |= 1024), (t.memoizedProps = r), (t.memoizedState = y)), (s.props = r), (s.state = y), (s.context = l), (r = c)) : (typeof s.componentDidUpdate != "function" || (a === e.memoizedProps && d === e.memoizedState) || (t.flags |= 4), typeof s.getSnapshotBeforeUpdate != "function" || (a === e.memoizedProps && d === e.memoizedState) || (t.flags |= 1024), (r = !1)); } return Cp(e, t, n, r, o, i); } function Cp(e, t, n, r, i, o) { DS(e, t); var s = (128 & t.flags) !== 0; if (!r && !s) return i && Mx(t, n, !1), Ar(e, t, o); (r = t.stateNode), (iM.current = t); var a = s && typeof n.getDerivedStateFromError != "function" ? null : r.render(); return ( (t.flags |= 1), e !== null && s ? ((t.child = Xo(t, e.child, null, o)), (t.child = Xo(t, null, a, o))) : Bt(e, t, a, o), (t.memoizedState = r.state), i && Mx(t, n, !0), t.child ); } function zS(e) { var t = e.stateNode; t.pendingContext ? Ox(e, t.pendingContext, t.pendingContext !== t.context) : t.context && Ox(e, t.context, !1), om(e, t.containerInfo); } function Yx(e, t, n, r, i) { return qo(), Jp(i), (t.flags |= 256), Bt(e, t, n, r), t.child; } var Tp = { dehydrated: null, treeContext: null, retryLane: 0 }; function Ep(e) { return { baseLanes: e, cachePool: null, transitions: null }; } function BS(e, t, n) { var r, i = t.pendingProps, o = We.current, s = !1, a = (128 & t.flags) !== 0; if ( ((r = a) || (r = (e === null || e.memoizedState !== null) && (2 & o) !== 0), r ? ((s = !0), (t.flags &= -129)) : (e !== null && e.memoizedState === null) || (o |= 1), Fe(We, 1 & o), e === null) ) return ( yp(t), (e = t.memoizedState), e !== null && ((e = e.dehydrated), e !== null) ? (1 & t.mode ? e.data === "$!" ? (t.lanes = 8) : (t.lanes = 1073741824) : (t.lanes = 1), null) : ((a = i.children), (e = i.fallback), s ? ((i = t.mode), (s = t.child), (a = { mode: "hidden", children: a }), !(1 & i) && s !== null ? ((s.childLanes = 0), (s.pendingProps = a)) : (s = uu(a, i, 0, null)), (e = $i(e, i, n, null)), (s.return = t), (e.return = t), (s.sibling = e), (t.child = s), (t.child.memoizedState = Ep(n)), (t.memoizedState = Tp), e) : hm(t, a)) ); if (((o = e.memoizedState), o !== null && ((r = o.dehydrated), r !== null))) return oM(e, t, a, i, r, o, n); if (s) { (s = i.fallback), (a = t.mode), (o = e.child), (r = o.sibling); var l = { mode: "hidden", children: i.children }; return ( !(1 & a) && t.child !== o ? ((i = t.child), (i.childLanes = 0), (i.pendingProps = l), (t.deletions = null)) : ((i = di(o, l)), (i.subtreeFlags = 14680064 & o.subtreeFlags)), r !== null ? (s = di(r, s)) : ((s = $i(s, a, n, null)), (s.flags |= 2)), (s.return = t), (i.return = t), (i.sibling = s), (t.child = i), (i = s), (s = t.child), (a = e.child.memoizedState), (a = a === null ? Ep(n) : { baseLanes: a.baseLanes | n, cachePool: null, transitions: a.transitions, }), (s.memoizedState = a), (s.childLanes = e.childLanes & ~n), (t.memoizedState = Tp), i ); } return ( (s = e.child), (e = s.sibling), (i = di(s, { mode: "visible", children: i.children })), !(1 & t.mode) && (i.lanes = n), (i.return = t), (i.sibling = null), e !== null && ((n = t.deletions), n === null ? ((t.deletions = [e]), (t.flags |= 16)) : n.push(e)), (t.child = i), (t.memoizedState = null), i ); } function hm(e, t) { return ( (t = uu({ mode: "visible", children: t }, e.mode, 0, null)), (t.return = e), (e.child = t) ); } function vc(e, t, n, r) { return ( r !== null && Jp(r), Xo(t, e.child, null, n), (e = hm(t, t.pendingProps.children)), (e.flags |= 2), (t.memoizedState = null), e ); } function oM(e, t, n, r, i, o, s) { if (n) return 256 & t.flags ? ((t.flags &= -257), (r = $h(Error(M(422)))), vc(e, t, s, r)) : t.memoizedState !== null ? ((t.child = e.child), (t.flags |= 128), null) : ((o = r.fallback), (i = t.mode), (r = uu({ mode: "visible", children: r.children }, i, 0, null)), (o = $i(o, i, s, null)), (o.flags |= 2), (r.return = t), (o.return = t), (r.sibling = o), (t.child = r), 1 & t.mode && Xo(t, e.child, null, s), (t.child.memoizedState = Ep(s)), (t.memoizedState = Tp), o); if (!(1 & t.mode)) return vc(e, t, s, null); if (i.data === "$!") { if (((r = i.nextSibling && i.nextSibling.dataset), r)) var a = r.dgst; return (r = a), (o = Error(M(419))), (r = $h(o, r, void 0)), vc(e, t, s, r); } if (((a = (s & e.childLanes) !== 0), Xt || a)) { if (((r = ht), r !== null)) { switch (s & -s) { case 4: i = 2; break; case 16: i = 8; break; case 64: case 128: case 256: case 512: case 1024: case 2048: case 4096: case 8192: case 16384: case 32768: case 65536: case 131072: case 262144: case 524288: case 1048576: case 2097152: case 4194304: case 8388608: case 16777216: case 33554432: case 67108864: i = 32; break; case 536870912: i = 268435456; break; default: i = 0; } (i = i & (r.suspendedLanes | s) ? 0 : i), i !== 0 && i !== o.retryLane && ((o.retryLane = i), Vr(e, i), jn(r, e, i, -1)); } return bm(), (r = $h(Error(M(421)))), vc(e, t, s, r); } return i.data === "$?" ? ((t.flags |= 128), (t.child = e.child), (t = yM.bind(null, e)), (i._reactRetry = t), null) : ((e = o.treeContext), (ln = li(i.nextSibling)), (cn = t), (Ne = !0), ($n = null), e !== null && ((Cn[Tn++] = _r), (Cn[Tn++] = Ir), (Cn[Tn++] = ji), (_r = e.id), (Ir = e.overflow), (ji = t)), (t = hm(t, r.children)), (t.flags |= 4096), t); } function Kx(e, t, n) { e.lanes |= t; var r = e.alternate; r !== null && (r.lanes |= t), bp(e.return, t, n); } function Nh(e, t, n, r, i) { var o = e.memoizedState; o === null ? (e.memoizedState = { isBackwards: t, rendering: null, renderingStartTime: 0, last: r, tail: n, tailMode: i, }) : ((o.isBackwards = t), (o.rendering = null), (o.renderingStartTime = 0), (o.last = r), (o.tail = n), (o.tailMode = i)); } function $S(e, t, n) { var r = t.pendingProps, i = r.revealOrder, o = r.tail; if ((Bt(e, t, r.children, n), (r = We.current), 2 & r)) (r = (1 & r) | 2), (t.flags |= 128); else { if (e !== null && 128 & e.flags) e: for (e = t.child; e !== null; ) { if (e.tag === 13) e.memoizedState !== null && Kx(e, n, t); else if (e.tag === 19) Kx(e, n, t); else if (e.child !== null) { (e.child.return = e), (e = e.child); continue; } if (e === t) break e; for (; e.sibling === null; ) { if (e.return === null || e.return === t) break e; e = e.return; } (e.sibling.return = e.return), (e = e.sibling); } r &= 1; } if ((Fe(We, r), !(1 & t.mode))) t.memoizedState = null; else switch (i) { case "forwards": for (n = t.child, i = null; n !== null; ) (e = n.alternate), e !== null && Gc(e) === null && (i = n), (n = n.sibling); (n = i), n === null ? ((i = t.child), (t.child = null)) : ((i = n.sibling), (n.sibling = null)), Nh(t, !1, i, n, o); break; case "backwards": for (n = null, i = t.child, t.child = null; i !== null; ) { if (((e = i.alternate), e !== null && Gc(e) === null)) { t.child = i; break; } (e = i.sibling), (i.sibling = n), (n = i), (i = e); } Nh(t, !0, n, null, o); break; case "together": Nh(t, !1, null, null, void 0); break; default: t.memoizedState = null; } return t.child; } function Ec(e, t) { !(1 & t.mode) && e !== null && ((e.alternate = null), (t.alternate = null), (t.flags |= 2)); } function Ar(e, t, n) { if ( (e !== null && (t.dependencies = e.dependencies), (Wi |= t.lanes), !(n & t.childLanes)) ) return null; if (e !== null && t.child !== e.child) throw Error(M(153)); if (t.child !== null) { for ( e = t.child, n = di(e, e.pendingProps), t.child = n, n.return = t; e.sibling !== null; ) (e = e.sibling), (n = n.sibling = di(e, e.pendingProps)), (n.return = t); n.sibling = null; } return t.child; } function sM(e, t, n) { switch (t.tag) { case 3: zS(t), qo(); break; case 5: hS(t); break; case 1: Kt(t.type) && $c(t); break; case 4: om(t, t.stateNode.containerInfo); break; case 10: var r = t.type._context, i = t.memoizedProps.value; Fe(Hc, r._currentValue), (r._currentValue = i); break; case 13: if (((r = t.memoizedState), r !== null)) return r.dehydrated !== null ? (Fe(We, 1 & We.current), (t.flags |= 128), null) : n & t.child.childLanes ? BS(e, t, n) : (Fe(We, 1 & We.current), (e = Ar(e, t, n)), e !== null ? e.sibling : null); Fe(We, 1 & We.current); break; case 19: if (((r = (n & t.childLanes) !== 0), 128 & e.flags)) { if (r) return $S(e, t, n); t.flags |= 128; } if ( ((i = t.memoizedState), i !== null && ((i.rendering = null), (i.tail = null), (i.lastEffect = null)), Fe(We, We.current), r) ) break; return null; case 22: case 23: return (t.lanes = 0), AS(e, t, n); } return Ar(e, t, n); } var NS, Rp, jS, HS; NS = function (e, t) { for (var n = t.child; n !== null; ) { if (n.tag === 5 || n.tag === 6) e.appendChild(n.stateNode); else if (n.tag !== 4 && n.child !== null) { (n.child.return = n), (n = n.child); continue; } if (n === t) break; for (; n.sibling === null; ) { if (n.return === null || n.return === t) return; n = n.return; } (n.sibling.return = n.return), (n = n.sibling); } }; Rp = function () {}; jS = function (e, t, n, r) { var i = e.memoizedProps; if (i !== r) { (e = t.stateNode), zi(dr.current); var o = null; switch (n) { case "input": (i = Yh(e, i)), (r = Yh(e, r)), (o = []); break; case "select": (i = Ge({}, i, { value: void 0 })), (r = Ge({}, r, { value: void 0 })), (o = []); break; case "textarea": (i = Zh(e, i)), (r = Zh(e, r)), (o = []); break; default: typeof i.onClick != "function" && typeof r.onClick == "function" && (e.onclick = zc); } ep(n, r); var s; n = null; for (c in i) if (!r.hasOwnProperty(c) && i.hasOwnProperty(c) && i[c] != null) if (c === "style") { var a = i[c]; for (s in a) a.hasOwnProperty(s) && (n || (n = {}), (n[s] = "")); } else c !== "dangerouslySetInnerHTML" && c !== "children" && c !== "suppressContentEditableWarning" && c !== "suppressHydrationWarning" && c !== "autoFocus" && (fa.hasOwnProperty(c) ? o || (o = []) : (o = o || []).push(c, null)); for (c in r) { var l = r[c]; if ( ((a = i?.[c]), r.hasOwnProperty(c) && l !== a && (l != null || a != null)) ) if (c === "style") if (a) { for (s in a) !a.hasOwnProperty(s) || (l && l.hasOwnProperty(s)) || (n || (n = {}), (n[s] = "")); for (s in l) l.hasOwnProperty(s) && a[s] !== l[s] && (n || (n = {}), (n[s] = l[s])); } else n || (o || (o = []), o.push(c, n)), (n = l); else c === "dangerouslySetInnerHTML" ? ((l = l ? l.__html : void 0), (a = a ? a.__html : void 0), l != null && a !== l && (o = o || []).push(c, l)) : c === "children" ? (typeof l != "string" && typeof l != "number") || (o = o || []).push(c, "" + l) : c !== "suppressContentEditableWarning" && c !== "suppressHydrationWarning" && (fa.hasOwnProperty(c) ? (l != null && c === "onScroll" && Me("scroll", e), o || a === l || (o = [])) : (o = o || []).push(c, l)); } n && (o = o || []).push("style", n); var c = o; (t.updateQueue = c) && (t.flags |= 4); } }; HS = function (e, t, n, r) { n !== r && (t.flags |= 4); }; function Ys(e, t) { if (!Ne) switch (e.tailMode) { case "hidden": t = e.tail; for (var n = null; t !== null; ) t.alternate !== null && (n = t), (t = t.sibling); n === null ? (e.tail = null) : (n.sibling = null); break; case "collapsed": n = e.tail; for (var r = null; n !== null; ) n.alternate !== null && (r = n), (n = n.sibling); r === null ? t || e.tail === null ? (e.tail = null) : (e.tail.sibling = null) : (r.sibling = null); } } function _t(e) { var t = e.alternate !== null && e.alternate.child === e.child, n = 0, r = 0; if (t) for (var i = e.child; i !== null; ) (n |= i.lanes | i.childLanes), (r |= 14680064 & i.subtreeFlags), (r |= 14680064 & i.flags), (i.return = e), (i = i.sibling); else for (i = e.child; i !== null; ) (n |= i.lanes | i.childLanes), (r |= i.subtreeFlags), (r |= i.flags), (i.return = e), (i = i.sibling); return (e.subtreeFlags |= r), (e.childLanes = n), t; } function aM(e, t, n) { var r = t.pendingProps; switch ((Zp(t), t.tag)) { case 2: case 16: case 15: case 0: case 11: case 7: case 8: case 12: case 9: case 14: return _t(t), null; case 1: return Kt(t.type) && Bc(), _t(t), null; case 3: return ( (r = t.stateNode), Yo(), Le(Yt), Le(Ot), am(), r.pendingContext && ((r.context = r.pendingContext), (r.pendingContext = null)), (e !== null && e.child !== null) || (mc(t) ? (t.flags |= 4) : e === null || (e.memoizedState.isDehydrated && !(256 & t.flags)) || ((t.flags |= 1024), $n !== null && (Lp($n), ($n = null)))), Rp(e, t), _t(t), null ); case 5: sm(t); var i = zi(ka.current); if (((n = t.type), e !== null && t.stateNode != null)) jS(e, t, n, r, i), e.ref !== t.ref && ((t.flags |= 512), (t.flags |= 2097152)); else { if (!r) { if (t.stateNode === null) throw Error(M(166)); return _t(t), null; } if (((e = zi(dr.current)), mc(t))) { (r = t.stateNode), (n = t.type); var o = t.memoizedProps; switch (((r[ur] = t), (r[wa] = o), (e = (1 & t.mode) !== 0), n)) { case "dialog": Me("cancel", r), Me("close", r); break; case "iframe": case "object": case "embed": Me("load", r); break; case "video": case "audio": for (i = 0; i < ta.length; i++) Me(ta[i], r); break; case "source": Me("error", r); break; case "img": case "image": case "link": Me("error", r), Me("load", r); break; case "details": Me("toggle", r); break; case "input": ix(r, o), Me("invalid", r); break; case "select": (r._wrapperState = { wasMultiple: !!o.multiple }), Me("invalid", r); break; case "textarea": sx(r, o), Me("invalid", r); } ep(n, o), (i = null); for (var s in o) if (o.hasOwnProperty(s)) { var a = o[s]; s === "children" ? typeof a == "string" ? r.textContent !== a && (o.suppressHydrationWarning !== !0 && pc(r.textContent, a, e), (i = ["children", a])) : typeof a == "number" && r.textContent !== "" + a && (o.suppressHydrationWarning !== !0 && pc(r.textContent, a, e), (i = ["children", "" + a])) : fa.hasOwnProperty(s) && a != null && s === "onScroll" && Me("scroll", r); } switch (n) { case "input": nc(r), ox(r, o, !0); break; case "textarea": nc(r), ax(r); break; case "select": case "option": break; default: typeof o.onClick == "function" && (r.onclick = zc); } (r = i), (t.updateQueue = r), r !== null && (t.flags |= 4); } else { (s = i.nodeType === 9 ? i : i.ownerDocument), e === "http://www.w3.org/1999/xhtml" && (e = gw(n)), e === "http://www.w3.org/1999/xhtml" ? n === "script" ? ((e = s.createElement("div")), (e.innerHTML = ""), (e = e.removeChild(e.firstChild))) : typeof r.is == "string" ? (e = s.createElement(n, { is: r.is })) : ((e = s.createElement(n)), n === "select" && ((s = e), r.multiple ? (s.multiple = !0) : r.size && (s.size = r.size))) : (e = s.createElementNS(e, n)), (e[ur] = t), (e[wa] = r), NS(e, t, !1, !1), (t.stateNode = e); e: { switch (((s = tp(n, r)), n)) { case "dialog": Me("cancel", e), Me("close", e), (i = r); break; case "iframe": case "object": case "embed": Me("load", e), (i = r); break; case "video": case "audio": for (i = 0; i < ta.length; i++) Me(ta[i], e); i = r; break; case "source": Me("error", e), (i = r); break; case "img": case "image": case "link": Me("error", e), Me("load", e), (i = r); break; case "details": Me("toggle", e), (i = r); break; case "input": ix(e, r), (i = Yh(e, r)), Me("invalid", e); break; case "option": i = r; break; case "select": (e._wrapperState = { wasMultiple: !!r.multiple }), (i = Ge({}, r, { value: void 0 })), Me("invalid", e); break; case "textarea": sx(e, r), (i = Zh(e, r)), Me("invalid", e); break; default: i = r; } ep(n, i), (a = i); for (o in a) if (a.hasOwnProperty(o)) { var l = a[o]; o === "style" ? bw(e, l) : o === "dangerouslySetInnerHTML" ? ((l = l ? l.__html : void 0), l != null && vw(e, l)) : o === "children" ? typeof l == "string" ? (n !== "textarea" || l !== "") && da(e, l) : typeof l == "number" && da(e, "" + l) : o !== "suppressContentEditableWarning" && o !== "suppressHydrationWarning" && o !== "autoFocus" && (fa.hasOwnProperty(o) ? l != null && o === "onScroll" && Me("scroll", e) : l != null && Dp(e, o, l, s)); } switch (n) { case "input": nc(e), ox(e, r, !1); break; case "textarea": nc(e), ax(e); break; case "option": r.value != null && e.setAttribute("value", "" + hi(r.value)); break; case "select": (e.multiple = !!r.multiple), (o = r.value), o != null ? Bo(e, !!r.multiple, o, !1) : r.defaultValue != null && Bo(e, !!r.multiple, r.defaultValue, !0); break; default: typeof i.onClick == "function" && (e.onclick = zc); } switch (n) { case "button": case "input": case "select": case "textarea": r = !!r.autoFocus; break e; case "img": r = !0; break e; default: r = !1; } } r && (t.flags |= 4); } t.ref !== null && ((t.flags |= 512), (t.flags |= 2097152)); } return _t(t), null; case 6: if (e && t.stateNode != null) HS(e, t, e.memoizedProps, r); else { if (typeof r != "string" && t.stateNode === null) throw Error(M(166)); if (((n = zi(ka.current)), zi(dr.current), mc(t))) { if ( ((r = t.stateNode), (n = t.memoizedProps), (r[ur] = t), (o = r.nodeValue !== n) && ((e = cn), e !== null)) ) switch (e.tag) { case 3: pc(r.nodeValue, n, (1 & e.mode) !== 0); break; case 5: e.memoizedProps.suppressHydrationWarning !== !0 && pc(r.nodeValue, n, (1 & e.mode) !== 0); } o && (t.flags |= 4); } else (r = (n.nodeType === 9 ? n : n.ownerDocument).createTextNode(r)), (r[ur] = t), (t.stateNode = r); } return _t(t), null; case 13: if ( (Le(We), (r = t.memoizedState), e === null || (e.memoizedState !== null && e.memoizedState.dehydrated !== null)) ) { if (Ne && ln !== null && 1 & t.mode && !(128 & t.flags)) sS(), qo(), (t.flags |= 98560), (o = !1); else if (((o = mc(t)), r !== null && r.dehydrated !== null)) { if (e === null) { if (!o) throw Error(M(318)); if ( ((o = t.memoizedState), (o = o !== null ? o.dehydrated : null), !o) ) throw Error(M(317)); o[ur] = t; } else qo(), !(128 & t.flags) && (t.memoizedState = null), (t.flags |= 4); _t(t), (o = !1); } else $n !== null && (Lp($n), ($n = null)), (o = !0); if (!o) return 65536 & t.flags ? t : null; } return 128 & t.flags ? ((t.lanes = n), t) : ((r = r !== null), r !== (e !== null && e.memoizedState !== null) && r && ((t.child.flags |= 8192), 1 & t.mode && (e === null || 1 & We.current ? at === 0 && (at = 3) : bm())), t.updateQueue !== null && (t.flags |= 4), _t(t), null); case 4: return ( Yo(), Rp(e, t), e === null && ba(t.stateNode.containerInfo), _t(t), null ); case 10: return nm(t.type._context), _t(t), null; case 17: return Kt(t.type) && Bc(), _t(t), null; case 19: if ((Le(We), (o = t.memoizedState), o === null)) return _t(t), null; if (((r = (128 & t.flags) !== 0), (s = o.rendering), s === null)) if (r) Ys(o, !1); else { if (at !== 0 || (e !== null && 128 & e.flags)) for (e = t.child; e !== null; ) { if (((s = Gc(e)), s !== null)) { for ( t.flags |= 128, Ys(o, !1), r = s.updateQueue, r !== null && ((t.updateQueue = r), (t.flags |= 4)), t.subtreeFlags = 0, r = n, n = t.child; n !== null; ) (o = n), (e = r), (o.flags &= 14680066), (s = o.alternate), s === null ? ((o.childLanes = 0), (o.lanes = e), (o.child = null), (o.subtreeFlags = 0), (o.memoizedProps = null), (o.memoizedState = null), (o.updateQueue = null), (o.dependencies = null), (o.stateNode = null)) : ((o.childLanes = s.childLanes), (o.lanes = s.lanes), (o.child = s.child), (o.subtreeFlags = 0), (o.deletions = null), (o.memoizedProps = s.memoizedProps), (o.memoizedState = s.memoizedState), (o.updateQueue = s.updateQueue), (o.type = s.type), (e = s.dependencies), (o.dependencies = e === null ? null : { lanes: e.lanes, firstContext: e.firstContext, })), (n = n.sibling); return Fe(We, (1 & We.current) | 2), t.child; } e = e.sibling; } o.tail !== null && tt() > Qo && ((t.flags |= 128), (r = !0), Ys(o, !1), (t.lanes = 4194304)); } else { if (!r) if (((e = Gc(s)), e !== null)) { if ( ((t.flags |= 128), (r = !0), (n = e.updateQueue), n !== null && ((t.updateQueue = n), (t.flags |= 4)), Ys(o, !0), o.tail === null && o.tailMode === "hidden" && !s.alternate && !Ne) ) return _t(t), null; } else 2 * tt() - o.renderingStartTime > Qo && n !== 1073741824 && ((t.flags |= 128), (r = !0), Ys(o, !1), (t.lanes = 4194304)); o.isBackwards ? ((s.sibling = t.child), (t.child = s)) : ((n = o.last), n !== null ? (n.sibling = s) : (t.child = s), (o.last = s)); } return o.tail !== null ? ((t = o.tail), (o.rendering = t), (o.tail = t.sibling), (o.renderingStartTime = tt()), (t.sibling = null), (n = We.current), Fe(We, r ? (1 & n) | 2 : 1 & n), t) : (_t(t), null); case 22: case 23: return ( ym(), (r = t.memoizedState !== null), e !== null && (e.memoizedState !== null) !== r && (t.flags |= 8192), r && 1 & t.mode ? 1073741824 & an && (_t(t), 6 & t.subtreeFlags && (t.flags |= 8192)) : _t(t), null ); case 24: return null; case 25: return null; } throw Error(M(156, t.tag)); } function lM(e, t) { switch ((Zp(t), t.tag)) { case 1: return ( Kt(t.type) && Bc(), (e = t.flags), 65536 & e ? ((t.flags = (-65537 & e) | 128), t) : null ); case 3: return ( Yo(), Le(Yt), Le(Ot), am(), (e = t.flags), 65536 & e && !(128 & e) ? ((t.flags = (-65537 & e) | 128), t) : null ); case 5: return sm(t), null; case 13: if ( (Le(We), (e = t.memoizedState), e !== null && e.dehydrated !== null) ) { if (t.alternate === null) throw Error(M(340)); qo(); } return ( (e = t.flags), 65536 & e ? ((t.flags = (-65537 & e) | 128), t) : null ); case 19: return Le(We), null; case 4: return Yo(), null; case 10: return nm(t.type._context), null; case 22: case 23: return ym(), null; case 24: return null; default: return null; } } var yc = !1, It = !1, cM = typeof WeakSet == "function" ? WeakSet : Set, B = null; function Do(e, t) { var n = e.ref; if (n !== null) if (typeof n == "function") try { n(null); } catch (r) { Ke(e, t, r); } else n.current = null; } function WS(e, t, n) { try { n(); } catch (r) { Ke(e, t, r); } } var Qx = !1; function uM(e, t) { if (((fp = Vc), (e = qw()), Kp(e))) { if ("selectionStart" in e) var n = { start: e.selectionStart, end: e.selectionEnd }; else e: { n = ((n = e.ownerDocument) && n.defaultView) || F; var r = n.getSelection && n.getSelection(); if (r && r.rangeCount !== 0) { n = r.anchorNode; var i = r.anchorOffset, o = r.focusNode; r = r.focusOffset; try { n.nodeType, o.nodeType; } catch { n = null; break e; } var s = 0, a = -1, l = -1, c = 0, u = 0, f = e, d = null; t: for (;;) { for ( var m; f !== n || (i !== 0 && f.nodeType !== 3) || (a = s + i), f !== o || (r !== 0 && f.nodeType !== 3) || (l = s + r), f.nodeType === 3 && (s += f.nodeValue.length), (m = f.firstChild) !== null; ) (d = f), (f = m); for (;;) { if (f === e) break t; if ( (d === n && ++c === i && (a = s), d === o && ++u === r && (l = s), (m = f.nextSibling) !== null) ) break; (f = d), (d = f.parentNode); } f = m; } n = a === -1 || l === -1 ? null : { start: a, end: l }; } else n = null; } n = n || { start: 0, end: 0 }; } else n = null; for (dp = { focusedElem: e, selectionRange: n }, Vc = !1, B = t; B !== null; ) if (((t = B), (e = t.child), (1028 & t.subtreeFlags) !== 0 && e !== null)) (e.return = t), (B = e); else for (; B !== null; ) { t = B; try { var y = t.alternate; if (1024 & t.flags) switch (t.tag) { case 0: case 11: case 15: break; case 1: if (y !== null) { var g = y.memoizedProps, b = y.memoizedState, h = t.stateNode, p = h.getSnapshotBeforeUpdate( t.elementType === t.type ? g : zn(t.type, g), b ); h.__reactInternalSnapshotBeforeUpdate = p; } break; case 3: var v = t.stateNode.containerInfo; v.nodeType === 1 ? (v.textContent = "") : v.nodeType === 9 && v.documentElement && v.removeChild(v.documentElement); break; case 5: case 6: case 4: case 17: break; default: throw Error(M(163)); } } catch (x) { Ke(t, t.return, x); } if (((e = t.sibling), e !== null)) { (e.return = t.return), (B = e); break; } B = t.return; } return (y = Qx), (Qx = !1), y; } function la(e, t, n) { var r = t.updateQueue; if (((r = r !== null ? r.lastEffect : null), r !== null)) { var i = (r = r.next); do { if ((i.tag & e) === e) { var o = i.destroy; (i.destroy = void 0), o !== void 0 && WS(t, n, o); } i = i.next; } while (i !== r); } } function lu(e, t) { if ( ((t = t.updateQueue), (t = t !== null ? t.lastEffect : null), t !== null) ) { var n = (t = t.next); do { if ((n.tag & e) === e) { var r = n.create; n.destroy = r(); } n = n.next; } while (n !== t); } } function Pp(e) { var t = e.ref; if (t !== null) { var n = e.stateNode; switch (e.tag) { case 5: e = n; break; default: e = n; } typeof t == "function" ? t(e) : (t.current = e); } } function US(e) { var t = e.alternate; t !== null && ((e.alternate = null), US(t)), (e.child = null), (e.deletions = null), (e.sibling = null), e.tag === 5 && ((t = e.stateNode), t !== null && (delete t[ur], delete t[wa], delete t[mp], delete t[G2], delete t[q2])), (e.stateNode = null), (e.return = null), (e.dependencies = null), (e.memoizedProps = null), (e.memoizedState = null), (e.pendingProps = null), (e.stateNode = null), (e.updateQueue = null); } function GS(e) { return e.tag === 5 || e.tag === 3 || e.tag === 4; } function Zx(e) { e: for (;;) { for (; e.sibling === null; ) { if (e.return === null || GS(e.return)) return null; e = e.return; } for ( e.sibling.return = e.return, e = e.sibling; e.tag !== 5 && e.tag !== 6 && e.tag !== 18; ) { if (2 & e.flags || e.child === null || e.tag === 4) continue e; (e.child.return = e), (e = e.child); } if (!(2 & e.flags)) return e.stateNode; } } function Fp(e, t, n) { var r = e.tag; if (r === 5 || r === 6) (e = e.stateNode), t ? n.nodeType === 8 ? n.parentNode.insertBefore(e, t) : n.insertBefore(e, t) : (n.nodeType === 8 ? ((t = n.parentNode), t.insertBefore(e, n)) : ((t = n), t.appendChild(e)), (n = n._reactRootContainer), n != null || t.onclick !== null || (t.onclick = zc)); else if (r !== 4 && ((e = e.child), e !== null)) for (Fp(e, t, n), e = e.sibling; e !== null; ) Fp(e, t, n), (e = e.sibling); } function _p(e, t, n) { var r = e.tag; if (r === 5 || r === 6) (e = e.stateNode), t ? n.insertBefore(e, t) : n.appendChild(e); else if (r !== 4 && ((e = e.child), e !== null)) for (_p(e, t, n), e = e.sibling; e !== null; ) _p(e, t, n), (e = e.sibling); } var St = null, Bn = !1; function Zr(e, t, n) { for (n = n.child; n !== null; ) qS(e, t, n), (n = n.sibling); } function qS(e, t, n) { if (fr && typeof fr.onCommitFiberUnmount == "function") try { fr.onCommitFiberUnmount(eu, n); } catch {} switch (n.tag) { case 5: It || Do(n, t); case 6: var r = St, i = Bn; (St = null), Zr(e, t, n), (St = r), (Bn = i), St !== null && (Bn ? ((e = St), (n = n.stateNode), e.nodeType === 8 ? e.parentNode.removeChild(n) : e.removeChild(n)) : St.removeChild(n.stateNode)); break; case 18: St !== null && (Bn ? ((e = St), (n = n.stateNode), e.nodeType === 8 ? Lh(e.parentNode, n) : e.nodeType === 1 && Lh(e, n), ga(e)) : Lh(St, n.stateNode)); break; case 4: (r = St), (i = Bn), (St = n.stateNode.containerInfo), (Bn = !0), Zr(e, t, n), (St = r), (Bn = i); break; case 0: case 11: case 14: case 15: if ( !It && ((r = n.updateQueue), r !== null && ((r = r.lastEffect), r !== null)) ) { i = r = r.next; do { var o = i, s = o.destroy; (o = o.tag), s !== void 0 && (2 & o || 4 & o) && WS(n, t, s), (i = i.next); } while (i !== r); } Zr(e, t, n); break; case 1: if ( !It && (Do(n, t), (r = n.stateNode), typeof r.componentWillUnmount == "function") ) try { (r.props = n.memoizedProps), (r.state = n.memoizedState), r.componentWillUnmount(); } catch (a) { Ke(n, t, a); } Zr(e, t, n); break; case 21: Zr(e, t, n); break; case 22: 1 & n.mode ? ((It = (r = It) || n.memoizedState !== null), Zr(e, t, n), (It = r)) : Zr(e, t, n); break; default: Zr(e, t, n); } } function Jx(e) { var t = e.updateQueue; if (t !== null) { e.updateQueue = null; var n = e.stateNode; n === null && (n = e.stateNode = new cM()), t.forEach(function (r) { var i = bM.bind(null, e, r); n.has(r) || (n.add(r), r.then(i, i)); }); } } function Dn(e, t) { var n = t.deletions; if (n !== null) for (var r = 0; r < n.length; r++) { var i = n[r]; try { var o = e, s = t, a = s; e: for (; a !== null; ) { switch (a.tag) { case 5: (St = a.stateNode), (Bn = !1); break e; case 3: (St = a.stateNode.containerInfo), (Bn = !0); break e; case 4: (St = a.stateNode.containerInfo), (Bn = !0); break e; } a = a.return; } if (St === null) throw Error(M(160)); qS(o, s, i), (St = null), (Bn = !1); var l = i.alternate; l !== null && (l.return = null), (i.return = null); } catch (c) { Ke(i, t, c); } } if (12854 & t.subtreeFlags) for (t = t.child; t !== null; ) XS(t, e), (t = t.sibling); } function XS(e, t) { var n = e.alternate, r = e.flags; switch (e.tag) { case 0: case 11: case 14: case 15: if ((Dn(t, e), lr(e), 4 & r)) { try { la(3, e, e.return), lu(3, e); } catch (g) { Ke(e, e.return, g); } try { la(5, e, e.return); } catch (g) { Ke(e, e.return, g); } } break; case 1: Dn(t, e), lr(e), 512 & r && n !== null && Do(n, n.return); break; case 5: if ( (Dn(t, e), lr(e), 512 & r && n !== null && Do(n, n.return), 32 & e.flags) ) { var i = e.stateNode; try { da(i, ""); } catch (g) { Ke(e, e.return, g); } } if (4 & r && ((i = e.stateNode), i != null)) { var o = e.memoizedProps, s = n !== null ? n.memoizedProps : o, a = e.type, l = e.updateQueue; if (((e.updateQueue = null), l !== null)) try { a === "input" && o.type === "radio" && o.name != null && pw(i, o), tp(a, s); var c = tp(a, o); for (s = 0; s < l.length; s += 2) { var u = l[s], f = l[s + 1]; u === "style" ? bw(i, f) : u === "dangerouslySetInnerHTML" ? vw(i, f) : u === "children" ? da(i, f) : Dp(i, u, f, c); } switch (a) { case "input": Kh(i, o); break; case "textarea": mw(i, o); break; case "select": var d = i._wrapperState.wasMultiple; i._wrapperState.wasMultiple = !!o.multiple; var m = o.value; m != null ? Bo(i, !!o.multiple, m, !1) : d !== !!o.multiple && (o.defaultValue != null ? Bo(i, !!o.multiple, o.defaultValue, !0) : Bo(i, !!o.multiple, o.multiple ? [] : "", !1)); } i[wa] = o; } catch (g) { Ke(e, e.return, g); } } break; case 6: if ((Dn(t, e), lr(e), 4 & r)) { if (e.stateNode === null) throw Error(M(162)); (i = e.stateNode), (o = e.memoizedProps); try { i.nodeValue = o; } catch (g) { Ke(e, e.return, g); } } break; case 3: if ( (Dn(t, e), lr(e), 4 & r && n !== null && n.memoizedState.isDehydrated) ) try { ga(t.containerInfo); } catch (g) { Ke(e, e.return, g); } break; case 4: Dn(t, e), lr(e); break; case 13: Dn(t, e), lr(e), (i = e.child), 8192 & i.flags && ((o = i.memoizedState !== null), (i.stateNode.isHidden = o), !o || (i.alternate !== null && i.alternate.memoizedState !== null) || (gm = tt())), 4 & r && Jx(e); break; case 22: if ( ((u = n !== null && n.memoizedState !== null), 1 & e.mode ? ((It = (c = It) || u), Dn(t, e), (It = c)) : Dn(t, e), lr(e), 8192 & r) ) { if ( ((c = e.memoizedState !== null), (e.stateNode.isHidden = c) && !u && 1 & e.mode) ) for (B = e, u = e.child; u !== null; ) { for (f = B = u; B !== null; ) { switch (((d = B), (m = d.child), d.tag)) { case 0: case 11: case 14: case 15: la(4, d, d.return); break; case 1: Do(d, d.return); var y = d.stateNode; if (typeof y.componentWillUnmount == "function") { (r = d), (n = d.return); try { (t = r), (y.props = t.memoizedProps), (y.state = t.memoizedState), y.componentWillUnmount(); } catch (g) { Ke(r, n, g); } } break; case 5: Do(d, d.return); break; case 22: if (d.memoizedState !== null) { tw(f); continue; } } m !== null ? ((m.return = d), (B = m)) : tw(f); } u = u.sibling; } e: for (u = null, f = e; ; ) { if (f.tag === 5) { if (u === null) { u = f; try { (i = f.stateNode), c ? ((o = i.style), typeof o.setProperty == "function" ? o.setProperty("display", "none", "important") : (o.display = "none")) : ((a = f.stateNode), (l = f.memoizedProps.style), (s = l != null && l.hasOwnProperty("display") ? l.display : null), (a.style.display = yw("display", s))); } catch (g) { Ke(e, e.return, g); } } } else if (f.tag === 6) { if (u === null) try { f.stateNode.nodeValue = c ? "" : f.memoizedProps; } catch (g) { Ke(e, e.return, g); } } else if ( ((f.tag !== 22 && f.tag !== 23) || f.memoizedState === null || f === e) && f.child !== null ) { (f.child.return = f), (f = f.child); continue; } if (f === e) break e; for (; f.sibling === null; ) { if (f.return === null || f.return === e) break e; u === f && (u = null), (f = f.return); } u === f && (u = null), (f.sibling.return = f.return), (f = f.sibling); } } break; case 19: Dn(t, e), lr(e), 4 & r && Jx(e); break; case 21: break; default: Dn(t, e), lr(e); } } function lr(e) { var t = e.flags; if (2 & t) { try { e: { for (var n = e.return; n !== null; ) { if (GS(n)) { var r = n; break e; } n = n.return; } throw Error(M(160)); } switch (r.tag) { case 5: var i = r.stateNode; 32 & r.flags && (da(i, ""), (r.flags &= -33)); var o = Zx(e); _p(e, o, i); break; case 3: case 4: var s = r.stateNode.containerInfo, a = Zx(e); Fp(e, a, s); break; default: throw Error(M(161)); } } catch (l) { Ke(e, e.return, l); } e.flags &= -3; } 4096 & t && (e.flags &= -4097); } function fM(e, t, n) { (B = e), YS(e, t, n); } function YS(e, t, n) { for (var r = (1 & e.mode) !== 0; B !== null; ) { var i = B, o = i.child; if (i.tag === 22 && r) { var s = i.memoizedState !== null || yc; if (!s) { var a = i.alternate, l = (a !== null && a.memoizedState !== null) || It; a = yc; var c = It; if (((yc = s), (It = l) && !c)) for (B = i; B !== null; ) (s = B), (l = s.child), s.tag === 22 && s.memoizedState !== null ? nw(i) : l !== null ? ((l.return = s), (B = l)) : nw(i); for (; o !== null; ) (B = o), YS(o, t, n), (o = o.sibling); (B = i), (yc = a), (It = c); } ew(e, t, n); } else 8772 & i.subtreeFlags && o !== null ? ((o.return = i), (B = o)) : ew(e, t, n); } } function ew(e) { for (; B !== null; ) { var t = B; if (8772 & t.flags) { var n = t.alternate; try { if (8772 & t.flags) switch (t.tag) { case 0: case 11: case 15: It || lu(5, t); break; case 1: var r = t.stateNode; if (4 & t.flags && !It) if (n === null) r.componentDidMount(); else { var i = t.elementType === t.type ? n.memoizedProps : zn(t.type, n.memoizedProps); r.componentDidUpdate( i, n.memoizedState, r.__reactInternalSnapshotBeforeUpdate ); } var o = t.updateQueue; o !== null && Dx(t, o, r); break; case 3: var s = t.updateQueue; if (s !== null) { if (((n = null), t.child !== null)) switch (t.child.tag) { case 5: n = t.child.stateNode; break; case 1: n = t.child.stateNode; } Dx(t, s, n); } break; case 5: var a = t.stateNode; if (n === null && 4 & t.flags) { n = a; var l = t.memoizedProps; switch (t.type) { case "button": case "input": case "select": case "textarea": l.autoFocus && n.focus(); break; case "img": l.src && (n.src = l.src); } } break; case 6: break; case 4: break; case 12: break; case 13: if (t.memoizedState === null) { var c = t.alternate; if (c !== null) { var u = c.memoizedState; if (u !== null) { var f = u.dehydrated; f !== null && ga(f); } } } break; case 19: case 17: case 21: case 22: case 23: case 25: break; default: throw Error(M(163)); } It || (512 & t.flags && Pp(t)); } catch (d) { Ke(t, t.return, d); } } if (t === e) { B = null; break; } if (((n = t.sibling), n !== null)) { (n.return = t.return), (B = n); break; } B = t.return; } } function tw(e) { for (; B !== null; ) { var t = B; if (t === e) { B = null; break; } var n = t.sibling; if (n !== null) { (n.return = t.return), (B = n); break; } B = t.return; } } function nw(e) { for (; B !== null; ) { var t = B; try { switch (t.tag) { case 0: case 11: case 15: var n = t.return; try { lu(4, t); } catch (l) { Ke(t, n, l); } break; case 1: var r = t.stateNode; if (typeof r.componentDidMount == "function") { var i = t.return; try { r.componentDidMount(); } catch (l) { Ke(t, i, l); } } var o = t.return; try { Pp(t); } catch (l) { Ke(t, o, l); } break; case 5: var s = t.return; try { Pp(t); } catch (l) { Ke(t, s, l); } } } catch (l) { Ke(t, t.return, l); } if (t === e) { B = null; break; } var a = t.sibling; if (a !== null) { (a.return = t.return), (B = a); break; } B = t.return; } } var dM = Math.ceil, Yc = Dr.ReactCurrentDispatcher, pm = Dr.ReactCurrentOwner, Rn = Dr.ReactCurrentBatchConfig, xe = 0, ht = null, rt = null, kt = 0, an = 0, zo = gi(0), at = 0, Ra = null, Wi = 0, cu = 0, mm = 0, ca = null, qt = null, gm = 0, Qo = 1 / 0, Pr = null, Kc = !1, Ip = null, ui = null, bc = !1, ii = null, Qc = 0, ua = 0, Op = null, Rc = -1, Pc = 0; function $t() { return 6 & xe ? tt() : Rc !== -1 ? Rc : (Rc = tt()); } function fi(e) { return 1 & e.mode ? 2 & xe && kt !== 0 ? kt & -kt : Y2.transition !== null ? (Pc === 0 && (Pc = Iw()), Pc) : ((e = Ce), e !== 0 || ((e = F.event), (e = e === void 0 ? 16 : zw(e.type))), e) : 1; } function jn(e, t, n, r) { if (50 < ua) throw ((ua = 0), (Op = null), Error(M(185))); Pa(e, n, r), (2 & xe && e === ht) || (e === ht && (!(2 & xe) && (cu |= n), at === 4 && ni(e, kt)), Qt(e, r), n === 1 && xe === 0 && !(1 & t.mode) && ((Qo = tt() + 500), ou && vi())); } function Qt(e, t) { var n = e.callbackNode; QO(e, t); var r = Lc(e, e === ht ? kt : 0); if (r === 0) n !== null && ux(n), (e.callbackNode = null), (e.callbackPriority = 0); else if (((t = r & -r), e.callbackPriority !== t)) { if ((n != null && ux(n), t === 1)) e.tag === 0 ? X2(rw.bind(null, e)) : rS(rw.bind(null, e)), W2(function () { !(6 & xe) && vi(); }), (n = null); else { switch (Ow(r)) { case 1: n = jp; break; case 4: n = Fw; break; case 16: n = Mc; break; case 536870912: n = _w; break; default: n = Mc; } n = r1(n, KS.bind(null, e)); } (e.callbackPriority = t), (e.callbackNode = n); } } function KS(e, t) { if (((Rc = -1), (Pc = 0), 6 & xe)) throw Error(M(327)); var n = e.callbackNode; if (Wo() && e.callbackNode !== n) return null; var r = Lc(e, e === ht ? kt : 0); if (r === 0) return null; if (30 & r || r & e.expiredLanes || t) t = Zc(e, r); else { t = r; var i = xe; xe |= 2; var o = ZS(); (ht === e && kt === t) || ((Pr = null), (Qo = tt() + 500), Bi(e, t)); do try { mM(); break; } catch (a) { QS(e, a); } while (1); tm(), (Yc.current = o), (xe = i), rt !== null ? (t = 0) : ((ht = null), (kt = 0), (t = at)); } if (t !== 0) { if ( (t === 2 && ((i = sp(e)), i !== 0 && ((r = i), (t = Mp(e, i)))), t === 1) ) throw ((n = Ra), Bi(e, 0), ni(e, r), Qt(e, tt()), n); if (t === 6) ni(e, r); else { if ( ((i = e.current.alternate), !(30 & r) && !hM(i) && ((t = Zc(e, r)), t === 2 && ((o = sp(e)), o !== 0 && ((r = o), (t = Mp(e, o)))), t === 1)) ) throw ((n = Ra), Bi(e, 0), ni(e, r), Qt(e, tt()), n); switch (((e.finishedWork = i), (e.finishedLanes = r), t)) { case 0: case 1: throw Error(M(345)); case 2: Vi(e, qt, Pr); break; case 3: if ( (ni(e, r), (130023424 & r) === r && ((t = gm + 500 - tt()), 10 < t)) ) { if (Lc(e, 0) !== 0) break; if (((i = e.suspendedLanes), (i & r) !== r)) { $t(), (e.pingedLanes |= e.suspendedLanes & i); break; } e.timeoutHandle = pp(Vi.bind(null, e, qt, Pr), t); break; } Vi(e, qt, Pr); break; case 4: if ((ni(e, r), (4194240 & r) === r)) break; for (t = e.eventTimes, i = -1; 0 < r; ) { var s = 31 - Nn(r); (o = 1 << s), (s = t[s]), s > i && (i = s), (r &= ~o); } if ( ((r = i), (r = tt() - r), (r = (120 > r ? 120 : 480 > r ? 480 : 1080 > r ? 1080 : 1920 > r ? 1920 : 3e3 > r ? 3e3 : 4320 > r ? 4320 : 1960 * dM(r / 1960)) - r), 10 < r) ) { e.timeoutHandle = pp(Vi.bind(null, e, qt, Pr), r); break; } Vi(e, qt, Pr); break; case 5: Vi(e, qt, Pr); break; default: throw Error(M(329)); } } } return Qt(e, tt()), e.callbackNode === n ? KS.bind(null, e) : null; } function Mp(e, t) { var n = ca; return ( e.current.memoizedState.isDehydrated && (Bi(e, t).flags |= 256), (e = Zc(e, t)), e !== 2 && ((t = qt), (qt = n), t !== null && Lp(t)), e ); } function Lp(e) { qt === null ? (qt = e) : qt.push.apply(qt, e); } function hM(e) { for (var t = e; ; ) { if (16384 & t.flags) { var n = t.updateQueue; if (n !== null && ((n = n.stores), n !== null)) for (var r = 0; r < n.length; r++) { var i = n[r], o = i.getSnapshot; i = i.value; try { if (!Hn(o(), i)) return !1; } catch { return !1; } } } if (((n = t.child), 16384 & t.subtreeFlags && n !== null)) (n.return = t), (t = n); else { if (t === e) break; for (; t.sibling === null; ) { if (t.return === null || t.return === e) return !0; t = t.return; } (t.sibling.return = t.return), (t = t.sibling); } } return !0; } function ni(e, t) { for ( t &= ~mm, t &= ~cu, e.suspendedLanes |= t, e.pingedLanes &= ~t, e = e.expirationTimes; 0 < t; ) { var n = 31 - Nn(t), r = 1 << n; (e[n] = -1), (t &= ~r); } } function rw(e) { if (6 & xe) throw Error(M(327)); Wo(); var t = Lc(e, 0); if (!(1 & t)) return Qt(e, tt()), null; var n = Zc(e, t); if (e.tag !== 0 && n === 2) { var r = sp(e); r !== 0 && ((t = r), (n = Mp(e, r))); } if (n === 1) throw ((n = Ra), Bi(e, 0), ni(e, t), Qt(e, tt()), n); if (n === 6) throw Error(M(345)); return ( (e.finishedWork = e.current.alternate), (e.finishedLanes = t), Vi(e, qt, Pr), Qt(e, tt()), null ); } function vm(e, t) { var n = xe; xe |= 1; try { return e(t); } finally { (xe = n), xe === 0 && ((Qo = tt() + 500), ou && vi()); } } function Ui(e) { ii !== null && ii.tag === 0 && !(6 & xe) && Wo(); var t = xe; xe |= 1; var n = Rn.transition, r = Ce; try { if (((Rn.transition = null), (Ce = 1), e)) return e(); } finally { (Ce = r), (Rn.transition = n), (xe = t), !(6 & xe) && vi(); } } function ym() { (an = zo.current), Le(zo); } function Bi(e, t) { (e.finishedWork = null), (e.finishedLanes = 0); var n = e.timeoutHandle; if ((n !== -1 && ((e.timeoutHandle = -1), H2(n)), rt !== null)) for (n = rt.return; n !== null; ) { var r = n; switch ((Zp(r), r.tag)) { case 1: (r = r.type.childContextTypes), r != null && Bc(); break; case 3: Yo(), Le(Yt), Le(Ot), am(); break; case 5: sm(r); break; case 4: Yo(); break; case 13: Le(We); break; case 19: Le(We); break; case 10: nm(r.type._context); break; case 22: case 23: ym(); } n = n.return; } if ( ((ht = e), (rt = e = di(e.current, null)), (kt = an = t), (at = 0), (Ra = null), (mm = cu = Wi = 0), (qt = ca = null), Di !== null) ) { for (t = 0; t < Di.length; t++) if (((n = Di[t]), (r = n.interleaved), r !== null)) { n.interleaved = null; var i = r.next, o = n.pending; if (o !== null) { var s = o.next; (o.next = i), (r.next = s); } n.pending = r; } Di = null; } return e; } function QS(e, t) { do { var n = rt; try { if ((tm(), (Cc.current = Xc), qc)) { for (var r = Ue.memoizedState; r !== null; ) { var i = r.queue; i !== null && (i.pending = null), (r = r.next); } qc = !1; } if ( ((Hi = 0), (dt = st = Ue = null), (aa = !1), (Ca = 0), (pm.current = null), n === null || n.return === null) ) { (at = 1), (Ra = t), (rt = null); break; } e: { var o = e, s = n.return, a = n, l = t; if ( ((t = kt), (a.flags |= 32768), l !== null && typeof l == "object" && typeof l.then == "function") ) { var c = l, u = a, f = u.tag; if (!(1 & u.mode) && (f === 0 || f === 11 || f === 15)) { var d = u.alternate; d ? ((u.updateQueue = d.updateQueue), (u.memoizedState = d.memoizedState), (u.lanes = d.lanes)) : ((u.updateQueue = null), (u.memoizedState = null)); } var m = Wx(s); if (m !== null) { (m.flags &= -257), Ux(m, s, a, o, t), 1 & m.mode && Hx(o, c, t), (t = m), (l = c); var y = t.updateQueue; if (y === null) { var g = new Set(); g.add(l), (t.updateQueue = g); } else y.add(l); break e; } if (!(1 & t)) { Hx(o, c, t), bm(); break e; } l = Error(M(426)); } else if (Ne && 1 & a.mode) { var b = Wx(s); if (b !== null) { !(65536 & b.flags) && (b.flags |= 256), Ux(b, s, a, o, t), Jp(Ko(l, a)); break e; } } (o = l = Ko(l, a)), at !== 4 && (at = 2), ca === null ? (ca = [o]) : ca.push(o), (o = s); do { switch (o.tag) { case 3: (o.flags |= 65536), (t &= -t), (o.lanes |= t); var h = MS(o, l, t); Ax(o, h); break e; case 1: a = l; var p = o.type, v = o.stateNode; if ( !(128 & o.flags) && (typeof p.getDerivedStateFromError == "function" || (v !== null && typeof v.componentDidCatch == "function" && (ui === null || !ui.has(v)))) ) { (o.flags |= 65536), (t &= -t), (o.lanes |= t); var x = LS(o, a, t); Ax(o, x); break e; } } o = o.return; } while (o !== null); } e1(n); } catch (k) { (t = k), rt === n && n !== null && (rt = n = n.return); continue; } break; } while (1); } function ZS() { var e = Yc.current; return (Yc.current = Xc), e === null ? Xc : e; } function bm() { (at !== 0 && at !== 3 && at !== 2) || (at = 4), ht === null || (!(268435455 & Wi) && !(268435455 & cu)) || ni(ht, kt); } function Zc(e, t) { var n = xe; xe |= 2; var r = ZS(); (ht === e && kt === t) || ((Pr = null), Bi(e, t)); do try { pM(); break; } catch (i) { QS(e, i); } while (1); if ((tm(), (xe = n), (Yc.current = r), rt !== null)) throw Error(M(261)); return (ht = null), (kt = 0), at; } function pM() { for (; rt !== null; ) JS(rt); } function mM() { for (; rt !== null && !jO(); ) JS(rt); } function JS(e) { var t = n1(e.alternate, e, an); (e.memoizedProps = e.pendingProps), t === null ? e1(e) : (rt = t), (pm.current = null); } function e1(e) { var t = e; do { var n = t.alternate; if (((e = t.return), 32768 & t.flags)) { if (((n = lM(n, t)), n !== null)) { (n.flags &= 32767), (rt = n); return; } if (e === null) { (at = 6), (rt = null); return; } (e.flags |= 32768), (e.subtreeFlags = 0), (e.deletions = null); } else if (((n = aM(n, t, an)), n !== null)) { rt = n; return; } if (((t = t.sibling), t !== null)) { rt = t; return; } rt = t = e; } while (t !== null); at === 0 && (at = 5); } function Vi(e, t, n) { var r = Ce, i = Rn.transition; try { (Rn.transition = null), (Ce = 1), gM(e, t, n, r); } finally { (Rn.transition = i), (Ce = r); } return null; } function gM(e, t, n, r) { do Wo(); while (ii !== null); if (6 & xe) throw Error(M(327)); n = e.finishedWork; var i = e.finishedLanes; if (n === null) return null; if (((e.finishedWork = null), (e.finishedLanes = 0), n === e.current)) throw Error(M(177)); (e.callbackNode = null), (e.callbackPriority = 0); var o = n.lanes | n.childLanes; if ( (ZO(e, o), e === ht && ((rt = ht = null), (kt = 0)), (!(2064 & n.subtreeFlags) && !(2064 & n.flags)) || bc || ((bc = !0), r1(Mc, function () { return Wo(), null; })), (o = (15990 & n.flags) !== 0), 15990 & n.subtreeFlags || o) ) { (o = Rn.transition), (Rn.transition = null); var s = Ce; Ce = 1; var a = xe; (xe |= 4), (pm.current = null), uM(e, n), XS(n, e), z2(dp), (Vc = !!fp), (dp = fp = null), (e.current = n), fM(n, e, i), HO(), (xe = a), (Ce = s), (Rn.transition = o); } else e.current = n; if ( (bc && ((bc = !1), (ii = e), (Qc = i)), (o = e.pendingLanes), o === 0 && (ui = null), GO(n.stateNode, r), Qt(e, tt()), t !== null) ) for (r = e.onRecoverableError, n = 0; n < t.length; n++) (i = t[n]), r(i.value, { componentStack: i.stack, digest: i.digest }); if (Kc) throw ((Kc = !1), (e = Ip), (Ip = null), e); return ( 1 & Qc && e.tag !== 0 && Wo(), (o = e.pendingLanes), 1 & o ? (e === Op ? ua++ : ((ua = 0), (Op = e))) : (ua = 0), vi(), null ); } function Wo() { if (ii !== null) { var e = Ow(Qc), t = Rn.transition, n = Ce; try { if (((Rn.transition = null), (Ce = 16 > e ? 16 : e), ii === null)) var r = !1; else { if (((e = ii), (ii = null), (Qc = 0), 6 & xe)) throw Error(M(331)); var i = xe; for (xe |= 4, B = e.current; B !== null; ) { var o = B, s = o.child; if (16 & B.flags) { var a = o.deletions; if (a !== null) { for (var l = 0; l < a.length; l++) { var c = a[l]; for (B = c; B !== null; ) { var u = B; switch (u.tag) { case 0: case 11: case 15: la(8, u, o); } var f = u.child; if (f !== null) (f.return = u), (B = f); else for (; B !== null; ) { u = B; var d = u.sibling, m = u.return; if ((US(u), u === c)) { B = null; break; } if (d !== null) { (d.return = m), (B = d); break; } B = m; } } } var y = o.alternate; if (y !== null) { var g = y.child; if (g !== null) { y.child = null; do { var b = g.sibling; (g.sibling = null), (g = b); } while (g !== null); } } B = o; } } if (2064 & o.subtreeFlags && s !== null) (s.return = o), (B = s); else e: for (; B !== null; ) { if (((o = B), 2048 & o.flags)) switch (o.tag) { case 0: case 11: case 15: la(9, o, o.return); } var h = o.sibling; if (h !== null) { (h.return = o.return), (B = h); break e; } B = o.return; } } var p = e.current; for (B = p; B !== null; ) { s = B; var v = s.child; if (2064 & s.subtreeFlags && v !== null) (v.return = s), (B = v); else e: for (s = p; B !== null; ) { if (((a = B), 2048 & a.flags)) try { switch (a.tag) { case 0: case 11: case 15: lu(9, a); } } catch (k) { Ke(a, a.return, k); } if (a === s) { B = null; break e; } var x = a.sibling; if (x !== null) { (x.return = a.return), (B = x); break e; } B = a.return; } } if ( ((xe = i), vi(), fr && typeof fr.onPostCommitFiberRoot == "function") ) try { fr.onPostCommitFiberRoot(eu, e); } catch {} r = !0; } return r; } finally { (Ce = n), (Rn.transition = t); } } return !1; } function iw(e, t, n) { (t = Ko(n, t)), (t = MS(e, t, 1)), (e = ci(e, t, 1)), (t = $t()), e !== null && (Pa(e, 1, t), Qt(e, t)); } function Ke(e, t, n) { if (e.tag === 3) iw(e, e, n); else for (; t !== null; ) { if (t.tag === 3) { iw(t, e, n); break; } if (t.tag === 1) { var r = t.stateNode; if ( typeof t.type.getDerivedStateFromError == "function" || (typeof r.componentDidCatch == "function" && (ui === null || !ui.has(r))) ) { (e = Ko(n, e)), (e = LS(t, e, 1)), (t = ci(t, e, 1)), (e = $t()), t !== null && (Pa(t, 1, e), Qt(t, e)); break; } } t = t.return; } } function vM(e, t, n) { var r = e.pingCache; r !== null && r.delete(t), (t = $t()), (e.pingedLanes |= e.suspendedLanes & n), ht === e && (kt & n) === n && (at === 4 || (at === 3 && (130023424 & kt) === kt && 500 > tt() - gm) ? Bi(e, 0) : (mm |= n)), Qt(e, t); } function t1(e, t) { t === 0 && (1 & e.mode ? ((t = oc), (oc <<= 1), !(130023424 & oc) && (oc = 4194304)) : (t = 1)); var n = $t(); (e = Vr(e, t)), e !== null && (Pa(e, t, n), Qt(e, n)); } function yM(e) { var t = e.memoizedState, n = 0; t !== null && (n = t.retryLane), t1(e, n); } function bM(e, t) { var n = 0; switch (e.tag) { case 13: var r = e.stateNode, i = e.memoizedState; i !== null && (n = i.retryLane); break; case 19: r = e.stateNode; break; default: throw Error(M(314)); } r !== null && r.delete(t), t1(e, n); } var n1; n1 = function (e, t, n) { if (e !== null) if (e.memoizedProps !== t.pendingProps || Yt.current) Xt = !0; else { if (!(e.lanes & n) && !(128 & t.flags)) return (Xt = !1), sM(e, t, n); Xt = (131072 & e.flags) !== 0; } else (Xt = !1), Ne && 1048576 & t.flags && iS(t, jc, t.index); switch (((t.lanes = 0), t.tag)) { case 2: var r = t.type; Ec(e, t), (e = t.pendingProps); var i = Go(t, Ot.current); Ho(t, n), (i = cm(null, t, r, e, i, n)); var o = um(); return ( (t.flags |= 1), typeof i == "object" && i !== null && typeof i.render == "function" && i.$$typeof === void 0 ? ((t.tag = 1), (t.memoizedState = null), (t.updateQueue = null), Kt(r) ? ((o = !0), $c(t)) : (o = !1), (t.memoizedState = i.state !== null && i.state !== void 0 ? i.state : null), im(t), (i.updater = su), (t.stateNode = i), (i._reactInternals = t), wp(t, r, e, n), (t = Cp(null, t, r, !0, o, n))) : ((t.tag = 0), Ne && o && Qp(t), Bt(null, t, i, n), (t = t.child)), t ); case 16: r = t.elementType; e: { switch ( (Ec(e, t), (e = t.pendingProps), (i = r._init), (r = i(r._payload)), (t.type = r), (i = t.tag = wM(r)), (e = zn(r, e)), i) ) { case 0: t = kp(null, t, r, e, n); break e; case 1: t = Xx(null, t, r, e, n); break e; case 11: t = Gx(null, t, r, e, n); break e; case 14: t = qx(null, t, r, zn(r.type, e), n); break e; } throw Error(M(306, r, "")); } return t; case 0: return ( (r = t.type), (i = t.pendingProps), (i = t.elementType === r ? i : zn(r, i)), kp(e, t, r, i, n) ); case 1: return ( (r = t.type), (i = t.pendingProps), (i = t.elementType === r ? i : zn(r, i)), Xx(e, t, r, i, n) ); case 3: e: { if ((zS(t), e === null)) throw Error(M(387)); (r = t.pendingProps), (o = t.memoizedState), (i = o.element), lS(e, t), Uc(t, r, null, n); var s = t.memoizedState; if (((r = s.element), o.isDehydrated)) { if ( ((o = { element: r, isDehydrated: !1, cache: s.cache, pendingSuspenseBoundaries: s.pendingSuspenseBoundaries, transitions: s.transitions, }), (t.updateQueue.baseState = o), (t.memoizedState = o), 256 & t.flags) ) { (i = Ko(Error(M(423)), t)), (t = Yx(e, t, r, n, i)); break e; } if (r !== i) { (i = Ko(Error(M(424)), t)), (t = Yx(e, t, r, n, i)); break e; } for ( ln = li(t.stateNode.containerInfo.firstChild), cn = t, Ne = !0, $n = null, n = dS(t, null, r, n), t.child = n; n; ) (n.flags = (-3 & n.flags) | 4096), (n = n.sibling); } else { if ((qo(), r === i)) { t = Ar(e, t, n); break e; } Bt(e, t, r, n); } t = t.child; } return t; case 5: return ( hS(t), e === null && yp(t), (r = t.type), (i = t.pendingProps), (o = e !== null ? e.memoizedProps : null), (s = i.children), hp(r, i) ? (s = null) : o !== null && hp(r, o) && (t.flags |= 32), DS(e, t), Bt(e, t, s, n), t.child ); case 6: return e === null && yp(t), null; case 13: return BS(e, t, n); case 4: return ( om(t, t.stateNode.containerInfo), (r = t.pendingProps), e === null ? (t.child = Xo(t, null, r, n)) : Bt(e, t, r, n), t.child ); case 11: return ( (r = t.type), (i = t.pendingProps), (i = t.elementType === r ? i : zn(r, i)), Gx(e, t, r, i, n) ); case 7: return Bt(e, t, t.pendingProps, n), t.child; case 8: return Bt(e, t, t.pendingProps.children, n), t.child; case 12: return Bt(e, t, t.pendingProps.children, n), t.child; case 10: e: { if ( ((r = t.type._context), (i = t.pendingProps), (o = t.memoizedProps), (s = i.value), Fe(Hc, r._currentValue), (r._currentValue = s), o !== null) ) if (Hn(o.value, s)) { if (o.children === i.children && !Yt.current) { t = Ar(e, t, n); break e; } } else for (o = t.child, o !== null && (o.return = t); o !== null; ) { var a = o.dependencies; if (a !== null) { s = o.child; for (var l = a.firstContext; l !== null; ) { if (l.context === r) { if (o.tag === 1) { (l = Or(-1, n & -n)), (l.tag = 2); var c = o.updateQueue; if (c !== null) { c = c.shared; var u = c.pending; u === null ? (l.next = l) : ((l.next = u.next), (u.next = l)), (c.pending = l); } } (o.lanes |= n), (l = o.alternate), l !== null && (l.lanes |= n), bp(o.return, n, t), (a.lanes |= n); break; } l = l.next; } } else if (o.tag === 10) s = o.type === t.type ? null : o.child; else if (o.tag === 18) { if (((s = o.return), s === null)) throw Error(M(341)); (s.lanes |= n), (a = s.alternate), a !== null && (a.lanes |= n), bp(s, n, t), (s = o.sibling); } else s = o.child; if (s !== null) s.return = o; else for (s = o; s !== null; ) { if (s === t) { s = null; break; } if (((o = s.sibling), o !== null)) { (o.return = s.return), (s = o); break; } s = s.return; } o = s; } Bt(e, t, i.children, n), (t = t.child); } return t; case 9: return ( (i = t.type), (r = t.pendingProps.children), Ho(t, n), (i = Pn(i)), (r = r(i)), (t.flags |= 1), Bt(e, t, r, n), t.child ); case 14: return ( (r = t.type), (i = zn(r, t.pendingProps)), (i = zn(r.type, i)), qx(e, t, r, i, n) ); case 15: return VS(e, t, t.type, t.pendingProps, n); case 17: return ( (r = t.type), (i = t.pendingProps), (i = t.elementType === r ? i : zn(r, i)), Ec(e, t), (t.tag = 1), Kt(r) ? ((e = !0), $c(t)) : (e = !1), Ho(t, n), uS(t, r, i), wp(t, r, i, n), Cp(null, t, r, !0, e, n) ); case 19: return $S(e, t, n); case 22: return AS(e, t, n); } throw Error(M(156, t.tag)); }; function r1(e, t) { return Pw(e, t); } function xM(e, t, n, r) { (this.tag = e), (this.key = n), (this.sibling = this.child = this.return = this.stateNode = this.type = this.elementType = null), (this.index = 0), (this.ref = null), (this.pendingProps = t), (this.dependencies = this.memoizedState = this.updateQueue = this.memoizedProps = null), (this.mode = r), (this.subtreeFlags = this.flags = 0), (this.deletions = null), (this.childLanes = this.lanes = 0), (this.alternate = null); } function En(e, t, n, r) { return new xM(e, t, n, r); } function xm(e) { return (e = e.prototype), !(!e || !e.isReactComponent); } function wM(e) { if (typeof e == "function") return xm(e) ? 1 : 0; if (e != null) { if (((e = e.$$typeof), e === Bp)) return 11; if (e === $p) return 14; } return 2; } function di(e, t) { var n = e.alternate; return ( n === null ? ((n = En(e.tag, t, e.key, e.mode)), (n.elementType = e.elementType), (n.type = e.type), (n.stateNode = e.stateNode), (n.alternate = e), (e.alternate = n)) : ((n.pendingProps = t), (n.type = e.type), (n.flags = 0), (n.subtreeFlags = 0), (n.deletions = null)), (n.flags = 14680064 & e.flags), (n.childLanes = e.childLanes), (n.lanes = e.lanes), (n.child = e.child), (n.memoizedProps = e.memoizedProps), (n.memoizedState = e.memoizedState), (n.updateQueue = e.updateQueue), (t = e.dependencies), (n.dependencies = t === null ? null : { lanes: t.lanes, firstContext: t.firstContext }), (n.sibling = e.sibling), (n.index = e.index), (n.ref = e.ref), n ); } function Fc(e, t, n, r, i, o) { var s = 2; if (((r = e), typeof e == "function")) xm(e) && (s = 1); else if (typeof e == "string") s = 5; else e: switch (e) { case Po: return $i(n.children, i, o, t); case zp: (s = 8), (i |= 8); break; case Uh: return ( (e = En(12, n, t, 2 | i)), (e.elementType = Uh), (e.lanes = o), e ); case Gh: return (e = En(13, n, t, i)), (e.elementType = Gh), (e.lanes = o), e; case qh: return (e = En(19, n, t, i)), (e.elementType = qh), (e.lanes = o), e; case fw: return uu(n, i, o, t); default: if (typeof e == "object" && e !== null) switch (e.$$typeof) { case cw: s = 10; break e; case uw: s = 9; break e; case Bp: s = 11; break e; case $p: s = 14; break e; case Jr: (s = 16), (r = null); break e; } throw Error(M(130, e == null ? e : typeof e, "")); } return ( (t = En(s, n, t, i)), (t.elementType = e), (t.type = r), (t.lanes = o), t ); } function $i(e, t, n, r) { return (e = En(7, e, r, t)), (e.lanes = n), e; } function uu(e, t, n, r) { return ( (e = En(22, e, r, t)), (e.elementType = fw), (e.lanes = n), (e.stateNode = { isHidden: !1 }), e ); } function jh(e, t, n) { return (e = En(6, e, null, t)), (e.lanes = n), e; } function Hh(e, t, n) { return ( (t = En(4, e.children !== null ? e.children : [], e.key, t)), (t.lanes = n), (t.stateNode = { containerInfo: e.containerInfo, pendingChildren: null, implementation: e.implementation, }), t ); } function SM(e, t, n, r, i) { (this.tag = t), (this.containerInfo = e), (this.finishedWork = this.pingCache = this.current = this.pendingChildren = null), (this.timeoutHandle = -1), (this.callbackNode = this.pendingContext = this.context = null), (this.callbackPriority = 0), (this.eventTimes = Eh(0)), (this.expirationTimes = Eh(-1)), (this.entangledLanes = this.finishedLanes = this.mutableReadLanes = this.expiredLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = 0), (this.entanglements = Eh(0)), (this.identifierPrefix = r), (this.onRecoverableError = i), (this.mutableSourceEagerHydrationData = null); } function wm(e, t, n, r, i, o, s, a, l) { return ( (e = new SM(e, t, n, a, l)), t === 1 ? ((t = 1), o === !0 && (t |= 8)) : (t = 0), (o = En(3, null, null, t)), (e.current = o), (o.stateNode = e), (o.memoizedState = { element: r, isDehydrated: n, cache: null, transitions: null, pendingSuspenseBoundaries: null, }), im(o), e ); } function kM(e, t, n) { var r = 3 < arguments.length && arguments[3] !== void 0 ? arguments[3] : null; return { $$typeof: Ro, key: r == null ? null : "" + r, children: e, containerInfo: t, implementation: n, }; } function i1(e) { if (!e) return pi; e = e._reactInternals; e: { if (qi(e) !== e || e.tag !== 1) throw Error(M(170)); var t = e; do { switch (t.tag) { case 3: t = t.stateNode.context; break e; case 1: if (Kt(t.type)) { t = t.stateNode.__reactInternalMemoizedMergedChildContext; break e; } } t = t.return; } while (t !== null); throw Error(M(171)); } if (e.tag === 1) { var n = e.type; if (Kt(n)) return nS(e, n, t); } return t; } function o1(e, t, n, r, i, o, s, a, l) { return ( (e = wm(n, r, !0, e, i, o, s, a, l)), (e.context = i1(null)), (n = e.current), (r = $t()), (i = fi(n)), (o = Or(r, i)), (o.callback = t ?? null), ci(n, o, i), (e.current.lanes = i), Pa(e, i, r), Qt(e, r), e ); } function fu(e, t, n, r) { var i = t.current, o = $t(), s = fi(i); return ( (n = i1(n)), t.context === null ? (t.context = n) : (t.pendingContext = n), (t = Or(o, s)), (t.payload = { element: e }), (r = r === void 0 ? null : r), r !== null && (t.callback = r), (e = ci(i, t, s)), e !== null && (jn(e, i, s, o), kc(e, i, s)), s ); } function Jc(e) { if (((e = e.current), !e.child)) return null; switch (e.child.tag) { case 5: return e.child.stateNode; default: return e.child.stateNode; } } function ow(e, t) { if (((e = e.memoizedState), e !== null && e.dehydrated !== null)) { var n = e.retryLane; e.retryLane = n !== 0 && n < t ? n : t; } } function Sm(e, t) { ow(e, t), (e = e.alternate) && ow(e, t); } function CM() { return null; } var s1 = typeof reportError == "function" ? reportError : function (e) { console.error(e); }; function km(e) { this._internalRoot = e; } du.prototype.render = km.prototype.render = function (e) { var t = this._internalRoot; if (t === null) throw Error(M(409)); fu(e, t, null, null); }; du.prototype.unmount = km.prototype.unmount = function () { var e = this._internalRoot; if (e !== null) { this._internalRoot = null; var t = e.containerInfo; Ui(function () { fu(null, e, null, null); }), (t[Lr] = null); } }; function du(e) { this._internalRoot = e; } du.prototype.unstable_scheduleHydration = function (e) { if (e) { var t = Vw(); e = { blockedOn: null, target: e, priority: t }; for (var n = 0; n < ti.length && t !== 0 && t < ti[n].priority; n++); ti.splice(n, 0, e), n === 0 && Dw(e); } }; function Cm(e) { return !(!e || (e.nodeType !== 1 && e.nodeType !== 9 && e.nodeType !== 11)); } function hu(e) { return !( !e || (e.nodeType !== 1 && e.nodeType !== 9 && e.nodeType !== 11 && (e.nodeType !== 8 || e.nodeValue !== " react-mount-point-unstable ")) ); } function sw() {} function TM(e, t, n, r, i) { if (i) { if (typeof r == "function") { var o = r; r = function () { var c = Jc(s); o.call(c); }; } var s = o1(t, r, e, 0, null, !1, !1, "", sw); return ( (e._reactRootContainer = s), (e[Lr] = s.current), ba(e.nodeType === 8 ? e.parentNode : e), Ui(), s ); } for (; (i = e.lastChild); ) e.removeChild(i); if (typeof r == "function") { var a = r; r = function () { var c = Jc(l); a.call(c); }; } var l = wm(e, 0, !1, null, null, !1, !1, "", sw); return ( (e._reactRootContainer = l), (e[Lr] = l.current), ba(e.nodeType === 8 ? e.parentNode : e), Ui(function () { fu(t, l, n, r); }), l ); } function pu(e, t, n, r, i) { var o = n._reactRootContainer; if (o) { var s = o; if (typeof i == "function") { var a = i; i = function () { var l = Jc(s); a.call(l); }; } fu(t, s, e, i); } else s = TM(n, t, e, i, r); return Jc(s); } Mw = function (e) { switch (e.tag) { case 3: var t = e.stateNode; if (t.current.memoizedState.isDehydrated) { var n = ea(t.pendingLanes); n !== 0 && (Hp(t, 1 | n), Qt(t, tt()), !(6 & xe) && ((Qo = tt() + 500), vi())); } break; case 13: Ui(function () { var r = Vr(e, 1); if (r !== null) { var i = $t(); jn(r, e, 1, i); } }), Sm(e, 1); } }; Wp = function (e) { if (e.tag === 13) { var t = Vr(e, 134217728); if (t !== null) { var n = $t(); jn(t, e, 134217728, n); } Sm(e, 134217728); } }; Lw = function (e) { if (e.tag === 13) { var t = fi(e), n = Vr(e, t); if (n !== null) { var r = $t(); jn(n, e, t, r); } Sm(e, t); } }; Vw = function () { return Ce; }; Aw = function (e, t) { var n = Ce; try { return (Ce = e), t(); } finally { Ce = n; } }; rp = function (e, t, n) { switch (t) { case "input": if ((Kh(e, n), (t = n.name), n.type === "radio" && t != null)) { for (n = e; n.parentNode; ) n = n.parentNode; for ( n = n.querySelectorAll( "input[name=" + JSON.stringify("" + t) + '][type="radio"]' ), t = 0; t < n.length; t++ ) { var r = n[t]; if (r !== e && r.form === e.form) { var i = iu(r); if (!i) throw Error(M(90)); hw(r), Kh(r, i); } } } break; case "textarea": mw(e, n); break; case "select": (t = n.value), t != null && Bo(e, !!n.multiple, t, !1); } }; Sw = vm; kw = Ui; var EM = { usingClientEntryPoint: !1, Events: [_a, Oo, iu, xw, ww, vm] }, Ks = { findFiberByHostInstance: Ai, bundleType: 0, version: "18.2.0", rendererPackageName: "react-dom", }, RM = { bundleType: Ks.bundleType, version: Ks.version, rendererPackageName: Ks.rendererPackageName, rendererConfig: Ks.rendererConfig, overrideHookState: null, overrideHookStateDeletePath: null, overrideHookStateRenamePath: null, overrideProps: null, overridePropsDeletePath: null, overridePropsRenamePath: null, setErrorHandler: null, setSuspenseHandler: null, scheduleUpdate: null, currentDispatcherRef: Dr.ReactCurrentDispatcher, findHostInstanceByFiber: function (e) { return (e = Ew(e)), e === null ? null : e.stateNode; }, findFiberByHostInstance: Ks.findFiberByHostInstance || CM, findHostInstancesForRefresh: null, scheduleRefresh: null, scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, reconcilerVersion: "18.2.0-next-9e3b772b8-20220608", }; if ( typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && ((Qs = __REACT_DEVTOOLS_GLOBAL_HOOK__), !Qs.isDisabled && Qs.supportsFiber) ) try { (eu = Qs.inject(RM)), (fr = Qs); } catch {} var Qs; fn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = EM; fn.createPortal = function (e, t) { var n = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null; if (!Cm(t)) throw Error(M(200)); return kM(e, t, null, n); }; fn.createRoot = function (e, t) { if (!Cm(e)) throw Error(M(299)); var n = !1, r = "", i = s1; return ( t != null && (t.unstable_strictMode === !0 && (n = !0), t.identifierPrefix !== void 0 && (r = t.identifierPrefix), t.onRecoverableError !== void 0 && (i = t.onRecoverableError)), (t = wm(e, 1, !1, null, null, n, !1, r, i)), (e[Lr] = t.current), ba(e.nodeType === 8 ? e.parentNode : e), new km(t) ); }; fn.findDOMNode = function (e) { if (e == null) return null; if (e.nodeType === 1) return e; var t = e._reactInternals; if (t === void 0) throw typeof e.render == "function" ? Error(M(188)) : ((e = Object.keys(e).join(",")), Error(M(268, e))); return (e = Ew(t)), (e = e === null ? null : e.stateNode), e; }; fn.flushSync = function (e) { return Ui(e); }; fn.hydrate = function (e, t, n) { if (!hu(t)) throw Error(M(200)); return pu(null, e, t, !0, n); }; fn.hydrateRoot = function (e, t, n) { if (!Cm(e)) throw Error(M(405)); var r = (n != null && n.hydratedSources) || null, i = !1, o = "", s = s1; if ( (n != null && (n.unstable_strictMode === !0 && (i = !0), n.identifierPrefix !== void 0 && (o = n.identifierPrefix), n.onRecoverableError !== void 0 && (s = n.onRecoverableError)), (t = o1(t, null, e, 1, n ?? null, i, !1, o, s)), (e[Lr] = t.current), ba(e), r) ) for (e = 0; e < r.length; e++) (n = r[e]), (i = n._getVersion), (i = i(n._source)), t.mutableSourceEagerHydrationData == null ? (t.mutableSourceEagerHydrationData = [n, i]) : t.mutableSourceEagerHydrationData.push(n, i); return new du(t); }; fn.render = function (e, t, n) { if (!hu(t)) throw Error(M(200)); return pu(null, e, t, !1, n); }; fn.unmountComponentAtNode = function (e) { if (!hu(e)) throw Error(M(40)); return ( !!e._reactRootContainer && (Ui(function () { pu(null, null, e, !1, function () { (e._reactRootContainer = null), (e[Lr] = null); }); }), !0) ); }; fn.unstable_batchedUpdates = vm; fn.unstable_renderSubtreeIntoContainer = function (e, t, n, r) { if (!hu(n)) throw Error(M(200)); if (e == null || e._reactInternals === void 0) throw Error(M(38)); return pu(e, t, n, !1, r); }; fn.version = "18.2.0-next-9e3b772b8-20220608"; function a1() { if ( typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE == "function" ) try { __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a1); } catch (e) { console.error(e); } } a1(); var hn = fn, l1 = hn, PM = hn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, FM = hn.createPortal, _M = hn.createRoot, IM = hn.findDOMNode, OM = hn.flushSync, MM = hn.hydrate, LM = hn.hydrateRoot, VM = hn.render, AM = hn.unmountComponentAtNode, DM = hn.unstable_batchedUpdates, zM = hn.unstable_renderSubtreeIntoContainer, BM = hn.version; var NM = tn({ "../../../node_modules/hsluv/dist/hsluv.cjs"(e) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }), (e.Hsluv = void 0); var t = class { constructor() { (this.hex = "#000000"), (this.rgb_r = 0), (this.rgb_g = 0), (this.rgb_b = 0), (this.xyz_x = 0), (this.xyz_y = 0), (this.xyz_z = 0), (this.luv_l = 0), (this.luv_u = 0), (this.luv_v = 0), (this.lch_l = 0), (this.lch_c = 0), (this.lch_h = 0), (this.hsluv_h = 0), (this.hsluv_s = 0), (this.hsluv_l = 0), (this.hpluv_h = 0), (this.hpluv_p = 0), (this.hpluv_l = 0), (this.r0s = 0), (this.r0i = 0), (this.r1s = 0), (this.r1i = 0), (this.g0s = 0), (this.g0i = 0), (this.g1s = 0), (this.g1i = 0), (this.b0s = 0), (this.b0i = 0), (this.b1s = 0), (this.b1i = 0); } static fromLinear(n) { return n <= 0.0031308 ? 12.92 * n : 1.055 * Math.pow(n, 1 / 2.4) - 0.055; } static toLinear(n) { return n > 0.04045 ? Math.pow((n + 0.055) / 1.055, 2.4) : n / 12.92; } static yToL(n) { return n <= t.epsilon ? (n / t.refY) * t.kappa : 116 * Math.pow(n / t.refY, 1 / 3) - 16; } static lToY(n) { return n <= 8 ? (t.refY * n) / t.kappa : t.refY * Math.pow((n + 16) / 116, 3); } static rgbChannelToHex(n) { let r = Math.round(n * 255), i = r % 16, o = ((r - i) / 16) | 0; return t.hexChars.charAt(o) + t.hexChars.charAt(i); } static hexToRgbChannel(n, r) { let i = t.hexChars.indexOf(n.charAt(r)), o = t.hexChars.indexOf(n.charAt(r + 1)); return (i * 16 + o) / 255; } static distanceFromOriginAngle(n, r, i) { let o = r / (Math.sin(i) - n * Math.cos(i)); return o < 0 ? 1 / 0 : o; } static distanceFromOrigin(n, r) { return Math.abs(r) / Math.sqrt(Math.pow(n, 2) + 1); } static min6(n, r, i, o, s, a) { return Math.min( n, Math.min(r, Math.min(i, Math.min(o, Math.min(s, a)))) ); } rgbToHex() { (this.hex = "#"), (this.hex += t.rgbChannelToHex(this.rgb_r)), (this.hex += t.rgbChannelToHex(this.rgb_g)), (this.hex += t.rgbChannelToHex(this.rgb_b)); } hexToRgb() { (this.hex = this.hex.toLowerCase()), (this.rgb_r = t.hexToRgbChannel(this.hex, 1)), (this.rgb_g = t.hexToRgbChannel(this.hex, 3)), (this.rgb_b = t.hexToRgbChannel(this.hex, 5)); } xyzToRgb() { (this.rgb_r = t.fromLinear( t.m_r0 * this.xyz_x + t.m_r1 * this.xyz_y + t.m_r2 * this.xyz_z )), (this.rgb_g = t.fromLinear( t.m_g0 * this.xyz_x + t.m_g1 * this.xyz_y + t.m_g2 * this.xyz_z )), (this.rgb_b = t.fromLinear( t.m_b0 * this.xyz_x + t.m_b1 * this.xyz_y + t.m_b2 * this.xyz_z )); } rgbToXyz() { let n = t.toLinear(this.rgb_r), r = t.toLinear(this.rgb_g), i = t.toLinear(this.rgb_b); (this.xyz_x = 0.41239079926595 * n + 0.35758433938387 * r + 0.18048078840183 * i), (this.xyz_y = 0.21263900587151 * n + 0.71516867876775 * r + 0.072192315360733 * i), (this.xyz_z = 0.019330818715591 * n + 0.11919477979462 * r + 0.95053215224966 * i); } xyzToLuv() { let n = this.xyz_x + 15 * this.xyz_y + 3 * this.xyz_z, r = 4 * this.xyz_x, i = 9 * this.xyz_y; n !== 0 ? ((r /= n), (i /= n)) : ((r = NaN), (i = NaN)), (this.luv_l = t.yToL(this.xyz_y)), this.luv_l === 0 ? ((this.luv_u = 0), (this.luv_v = 0)) : ((this.luv_u = 13 * this.luv_l * (r - t.refU)), (this.luv_v = 13 * this.luv_l * (i - t.refV))); } luvToXyz() { if (this.luv_l === 0) { (this.xyz_x = 0), (this.xyz_y = 0), (this.xyz_z = 0); return; } let n = this.luv_u / (13 * this.luv_l) + t.refU, r = this.luv_v / (13 * this.luv_l) + t.refV; (this.xyz_y = t.lToY(this.luv_l)), (this.xyz_x = 0 - (9 * this.xyz_y * n) / ((n - 4) * r - n * r)), (this.xyz_z = (9 * this.xyz_y - 15 * r * this.xyz_y - r * this.xyz_x) / (3 * r)); } luvToLch() { if ( ((this.lch_l = this.luv_l), (this.lch_c = Math.sqrt( this.luv_u * this.luv_u + this.luv_v * this.luv_v )), this.lch_c < 1e-8) ) this.lch_h = 0; else { let n = Math.atan2(this.luv_v, this.luv_u); (this.lch_h = (n * 180) / Math.PI), this.lch_h < 0 && (this.lch_h = 360 + this.lch_h); } } lchToLuv() { let n = (this.lch_h / 180) * Math.PI; (this.luv_l = this.lch_l), (this.luv_u = Math.cos(n) * this.lch_c), (this.luv_v = Math.sin(n) * this.lch_c); } calculateBoundingLines(n) { let r = Math.pow(n + 16, 3) / 1560896, i = r > t.epsilon ? r : n / t.kappa, o = i * (284517 * t.m_r0 - 94839 * t.m_r2), s = i * (838422 * t.m_r2 + 769860 * t.m_r1 + 731718 * t.m_r0), a = i * (632260 * t.m_r2 - 126452 * t.m_r1), l = i * (284517 * t.m_g0 - 94839 * t.m_g2), c = i * (838422 * t.m_g2 + 769860 * t.m_g1 + 731718 * t.m_g0), u = i * (632260 * t.m_g2 - 126452 * t.m_g1), f = i * (284517 * t.m_b0 - 94839 * t.m_b2), d = i * (838422 * t.m_b2 + 769860 * t.m_b1 + 731718 * t.m_b0), m = i * (632260 * t.m_b2 - 126452 * t.m_b1); (this.r0s = o / a), (this.r0i = (s * n) / a), (this.r1s = o / (a + 126452)), (this.r1i = ((s - 769860) * n) / (a + 126452)), (this.g0s = l / u), (this.g0i = (c * n) / u), (this.g1s = l / (u + 126452)), (this.g1i = ((c - 769860) * n) / (u + 126452)), (this.b0s = f / m), (this.b0i = (d * n) / m), (this.b1s = f / (m + 126452)), (this.b1i = ((d - 769860) * n) / (m + 126452)); } calcMaxChromaHpluv() { let n = t.distanceFromOrigin(this.r0s, this.r0i), r = t.distanceFromOrigin(this.r1s, this.r1i), i = t.distanceFromOrigin(this.g0s, this.g0i), o = t.distanceFromOrigin(this.g1s, this.g1i), s = t.distanceFromOrigin(this.b0s, this.b0i), a = t.distanceFromOrigin(this.b1s, this.b1i); return t.min6(n, r, i, o, s, a); } calcMaxChromaHsluv(n) { let r = (n / 360) * Math.PI * 2, i = t.distanceFromOriginAngle(this.r0s, this.r0i, r), o = t.distanceFromOriginAngle(this.r1s, this.r1i, r), s = t.distanceFromOriginAngle(this.g0s, this.g0i, r), a = t.distanceFromOriginAngle(this.g1s, this.g1i, r), l = t.distanceFromOriginAngle(this.b0s, this.b0i, r), c = t.distanceFromOriginAngle(this.b1s, this.b1i, r); return t.min6(i, o, s, a, l, c); } hsluvToLch() { if (this.hsluv_l > 99.9999999) (this.lch_l = 100), (this.lch_c = 0); else if (this.hsluv_l < 1e-8) (this.lch_l = 0), (this.lch_c = 0); else { (this.lch_l = this.hsluv_l), this.calculateBoundingLines(this.hsluv_l); let n = this.calcMaxChromaHsluv(this.hsluv_h); this.lch_c = (n / 100) * this.hsluv_s; } this.lch_h = this.hsluv_h; } lchToHsluv() { if (this.lch_l > 99.9999999) (this.hsluv_s = 0), (this.hsluv_l = 100); else if (this.lch_l < 1e-8) (this.hsluv_s = 0), (this.hsluv_l = 0); else { this.calculateBoundingLines(this.lch_l); let n = this.calcMaxChromaHsluv(this.lch_h); (this.hsluv_s = (this.lch_c / n) * 100), (this.hsluv_l = this.lch_l); } this.hsluv_h = this.lch_h; } hpluvToLch() { if (this.hpluv_l > 99.9999999) (this.lch_l = 100), (this.lch_c = 0); else if (this.hpluv_l < 1e-8) (this.lch_l = 0), (this.lch_c = 0); else { (this.lch_l = this.hpluv_l), this.calculateBoundingLines(this.hpluv_l); let n = this.calcMaxChromaHpluv(); this.lch_c = (n / 100) * this.hpluv_p; } this.lch_h = this.hpluv_h; } lchToHpluv() { if (this.lch_l > 99.9999999) (this.hpluv_p = 0), (this.hpluv_l = 100); else if (this.lch_l < 1e-8) (this.hpluv_p = 0), (this.hpluv_l = 0); else { this.calculateBoundingLines(this.lch_l); let n = this.calcMaxChromaHpluv(); (this.hpluv_p = (this.lch_c / n) * 100), (this.hpluv_l = this.lch_l); } this.hpluv_h = this.lch_h; } hsluvToRgb() { this.hsluvToLch(), this.lchToLuv(), this.luvToXyz(), this.xyzToRgb(); } hpluvToRgb() { this.hpluvToLch(), this.lchToLuv(), this.luvToXyz(), this.xyzToRgb(); } hsluvToHex() { this.hsluvToRgb(), this.rgbToHex(); } hpluvToHex() { this.hpluvToRgb(), this.rgbToHex(); } rgbToHsluv() { this.rgbToXyz(), this.xyzToLuv(), this.luvToLch(), this.lchToHpluv(), this.lchToHsluv(); } rgbToHpluv() { this.rgbToXyz(), this.xyzToLuv(), this.luvToLch(), this.lchToHpluv(), this.lchToHpluv(); } hexToHsluv() { this.hexToRgb(), this.rgbToHsluv(); } hexToHpluv() { this.hexToRgb(), this.rgbToHpluv(); } }; (e.Hsluv = t), (t.hexChars = "0123456789abcdef"), (t.refY = 1), (t.refU = 0.19783000664283), (t.refV = 0.46831999493879), (t.kappa = 903.2962962), (t.epsilon = 0.0088564516), (t.m_r0 = 3.240969941904521), (t.m_r1 = -1.537383177570093), (t.m_r2 = -0.498610760293), (t.m_g0 = -0.96924363628087), (t.m_g1 = 1.87596750150772), (t.m_g2 = 0.041555057407175), (t.m_b0 = 0.055630079696993), (t.m_b1 = -0.20397695888897), (t.m_b2 = 1.056971514242878); }, }), jM = tn({ "../../../node_modules/eventemitter3/index.js"(e, t) { "use strict"; var n = Object.prototype.hasOwnProperty, r = "~"; function i() {} Object.create && ((i.prototype = Object.create(null)), new i().__proto__ || (r = !1)); function o(c, u, f) { (this.fn = c), (this.context = u), (this.once = f || !1); } function s(c, u, f, d, m) { if (typeof f != "function") throw new TypeError("The listener must be a function"); var y = new o(f, d || c, m), g = r ? r + u : u; return ( c._events[g] ? c._events[g].fn ? (c._events[g] = [c._events[g], y]) : c._events[g].push(y) : ((c._events[g] = y), c._eventsCount++), c ); } function a(c, u) { --c._eventsCount === 0 ? (c._events = new i()) : delete c._events[u]; } function l() { (this._events = new i()), (this._eventsCount = 0); } (l.prototype.eventNames = function () { var u = [], f, d; if (this._eventsCount === 0) return u; for (d in (f = this._events)) n.call(f, d) && u.push(r ? d.slice(1) : d); return Object.getOwnPropertySymbols ? u.concat(Object.getOwnPropertySymbols(f)) : u; }), (l.prototype.listeners = function (u) { var f = r ? r + u : u, d = this._events[f]; if (!d) return []; if (d.fn) return [d.fn]; for (var m = 0, y = d.length, g = new Array(y); m < y; m++) g[m] = d[m].fn; return g; }), (l.prototype.listenerCount = function (u) { var f = r ? r + u : u, d = this._events[f]; return d ? (d.fn ? 1 : d.length) : 0; }), (l.prototype.emit = function (u, f, d, m, y, g) { var b = r ? r + u : u; if (!this._events[b]) return !1; var h = this._events[b], p = arguments.length, v, x; if (h.fn) { switch ((h.once && this.removeListener(u, h.fn, void 0, !0), p)) { case 1: return h.fn.call(h.context), !0; case 2: return h.fn.call(h.context, f), !0; case 3: return h.fn.call(h.context, f, d), !0; case 4: return h.fn.call(h.context, f, d, m), !0; case 5: return h.fn.call(h.context, f, d, m, y), !0; case 6: return h.fn.call(h.context, f, d, m, y, g), !0; } for (x = 1, v = new Array(p - 1); x < p; x++) v[x - 1] = arguments[x]; h.fn.apply(h.context, v); } else { var k = h.length, S; for (x = 0; x < k; x++) switch ( (h[x].once && this.removeListener(u, h[x].fn, void 0, !0), p) ) { case 1: h[x].fn.call(h[x].context); break; case 2: h[x].fn.call(h[x].context, f); break; case 3: h[x].fn.call(h[x].context, f, d); break; case 4: h[x].fn.call(h[x].context, f, d, m); break; default: if (!v) for (S = 1, v = new Array(p - 1); S < p; S++) v[S - 1] = arguments[S]; h[x].fn.apply(h[x].context, v); } } return !0; }), (l.prototype.on = function (u, f, d) { return s(this, u, f, d, !1); }), (l.prototype.once = function (u, f, d) { return s(this, u, f, d, !0); }), (l.prototype.removeListener = function (u, f, d, m) { var y = r ? r + u : u; if (!this._events[y]) return this; if (!f) return a(this, y), this; var g = this._events[y]; if (g.fn) g.fn === f && (!m || g.once) && (!d || g.context === d) && a(this, y); else { for (var b = 0, h = [], p = g.length; b < p; b++) (g[b].fn !== f || (m && !g[b].once) || (d && g[b].context !== d)) && h.push(g[b]); h.length ? (this._events[y] = h.length === 1 ? h[0] : h) : a(this, y); } return this; }), (l.prototype.removeAllListeners = function (u) { var f; return ( u ? ((f = r ? r + u : u), this._events[f] && a(this, f)) : ((this._events = new i()), (this._eventsCount = 0)), this ); }), (l.prototype.off = l.prototype.removeListener), (l.prototype.addListener = l.prototype.on), (l.prefixed = r), (l.EventEmitter = l), typeof t < "u" && (t.exports = l); }, }), bg = tn({ "../../../node_modules/process/browser.js"(e, t) { var n = (t.exports = {}), r, i; function o() { throw new Error("setTimeout has not been defined"); } function s() { throw new Error("clearTimeout has not been defined"); } (function () { try { typeof setTimeout == "function" ? (r = setTimeout) : (r = o); } catch { r = o; } try { typeof clearTimeout == "function" ? (i = clearTimeout) : (i = s); } catch { i = s; } })(); function a(h) { if (r === setTimeout) return setTimeout(h, 0); if ((r === o || !r) && setTimeout) return (r = setTimeout), setTimeout(h, 0); try { return r(h, 0); } catch { try { return r.call(null, h, 0); } catch { return r.call(this, h, 0); } } } function l(h) { if (i === clearTimeout) return clearTimeout(h); if ((i === s || !i) && clearTimeout) return (i = clearTimeout), clearTimeout(h); try { return i(h); } catch { try { return i.call(null, h); } catch { return i.call(this, h); } } } var c = [], u = !1, f, d = -1; function m() { !u || !f || ((u = !1), f.length ? (c = f.concat(c)) : (d = -1), c.length && y()); } function y() { if (!u) { var h = a(m); u = !0; for (var p = c.length; p; ) { for (f = c, c = []; ++d < p; ) f && f[d].run(); (d = -1), (p = c.length); } (f = null), (u = !1), l(h); } } n.nextTick = function (h) { var p = new Array(arguments.length - 1); if (arguments.length > 1) for (var v = 1; v < arguments.length; v++) p[v - 1] = arguments[v]; c.push(new g(h, p)), c.length === 1 && !u && a(y); }; function g(h, p) { (this.fun = h), (this.array = p); } (g.prototype.run = function () { this.fun.apply(null, this.array); }), (n.title = "browser"), (n.browser = !0), (n.env = {}), (n.argv = []), (n.version = ""), (n.versions = {}); function b() {} (n.on = b), (n.addListener = b), (n.once = b), (n.off = b), (n.removeListener = b), (n.removeAllListeners = b), (n.emit = b), (n.prependListener = b), (n.prependOnceListener = b), (n.listeners = function (h) { return []; }), (n.binding = function (h) { throw new Error("process.binding is not supported"); }), (n.cwd = function () { return "/"; }), (n.chdir = function (h) { throw new Error("process.chdir is not supported"); }), (n.umask = function () { return 0; }); }, }), HM = tn({ "../../../node_modules/@juggle/resize-observer/lib/exports/resize-observer.umd.js"( e, t ) { (function (n, r) { typeof e == "object" && typeof t < "u" ? r(e) : typeof define == "function" && define.amd ? define(["exports"], r) : ((n = typeof globalThis < "u" ? globalThis : n || self), r((n.ResizeObserver = {}))); })(e, function (n) { "use strict"; var r = [], i = function () { return r.some(function (P) { return P.activeTargets.length > 0; }); }, o = function () { return r.some(function (P) { return P.skippedTargets.length > 0; }); }, s = "ResizeObserver loop completed with undelivered notifications.", a = function () { var P; typeof ErrorEvent == "function" ? (P = new ErrorEvent("error", { message: s })) : ((P = document.createEvent("Event")), P.initEvent("error", !1, !1), (P.message = s)), F.dispatchEvent(P); }, l; (function (P) { (P.BORDER_BOX = "border-box"), (P.CONTENT_BOX = "content-box"), (P.DEVICE_PIXEL_CONTENT_BOX = "device-pixel-content-box"); })(l || (l = {})); var c = function (P) { return Object.freeze(P); }, u = (function () { function P(_, L) { (this.inlineSize = _), (this.blockSize = L), c(this); } return P; })(), f = (function () { function P(_, L, G, ve) { return ( (this.x = _), (this.y = L), (this.width = G), (this.height = ve), (this.top = this.y), (this.left = this.x), (this.bottom = this.top + this.height), (this.right = this.left + this.width), c(this) ); } return ( (P.prototype.toJSON = function () { var _ = this, L = _.x, G = _.y, ve = _.top, Lt = _.right, bt = _.bottom, et = _.left, wr = _.width, en = _.height; return { x: L, y: G, top: ve, right: Lt, bottom: bt, left: et, width: wr, height: en, }; }), (P.fromRect = function (_) { return new P(_.x, _.y, _.width, _.height); }), P ); })(), d = function (P) { return P instanceof SVGElement && "getBBox" in P; }, m = function (P) { if (d(P)) { var _ = P.getBBox(), L = _.width, G = _.height; return !L && !G; } var ve = P, Lt = ve.offsetWidth, bt = ve.offsetHeight; return !(Lt || bt || P.getClientRects().length); }, y = function (P) { var _, L; if (P instanceof Element) return !0; var G = (L = (_ = P) === null || _ === void 0 ? void 0 : _.ownerDocument) === null || L === void 0 ? void 0 : L.defaultView; return !!(G && P instanceof G.Element); }, g = function (P) { switch (P.tagName) { case "INPUT": if (P.type !== "image") break; case "VIDEO": case "AUDIO": case "EMBED": case "OBJECT": case "CANVAS": case "IFRAME": case "IMG": return !0; } return !1; }, b = typeof F < "u" ? F : {}, h = new WeakMap(), p = /auto|scroll/, v = /^tb|vertical/, x = /msie|trident/i.test(b.navigator && b.navigator.userAgent), k = function (P) { return parseFloat(P || "0"); }, S = function (P, _, L) { return ( P === void 0 && (P = 0), _ === void 0 && (_ = 0), L === void 0 && (L = !1), new u((L ? _ : P) || 0, (L ? P : _) || 0) ); }, T = c({ devicePixelContentBoxSize: S(), borderBoxSize: S(), contentBoxSize: S(), contentRect: new f(0, 0, 0, 0), }), R = function (P, _) { if ((_ === void 0 && (_ = !1), h.has(P) && !_)) return h.get(P); if (m(P)) return h.set(P, T), T; var L = getComputedStyle(P), G = d(P) && P.ownerSVGElement && P.getBBox(), ve = !x && L.boxSizing === "border-box", Lt = v.test(L.writingMode || ""), bt = !G && p.test(L.overflowY || ""), et = !G && p.test(L.overflowX || ""), wr = G ? 0 : k(L.paddingTop), en = G ? 0 : k(L.paddingRight), Ci = G ? 0 : k(L.paddingBottom), ao = G ? 0 : k(L.paddingLeft), pE = G ? 0 : k(L.borderTopWidth), mE = G ? 0 : k(L.borderRightWidth), gE = G ? 0 : k(L.borderBottomWidth), vE = G ? 0 : k(L.borderLeftWidth), ev = ao + en, tv = wr + Ci, Tf = vE + mE, Ef = pE + gE, nv = et ? P.offsetHeight - Ef - P.clientHeight : 0, rv = bt ? P.offsetWidth - Tf - P.clientWidth : 0, yE = ve ? ev + Tf : 0, bE = ve ? tv + Ef : 0, cl = G ? G.width : k(L.width) - yE - rv, ul = G ? G.height : k(L.height) - bE - nv, xE = cl + ev + rv + Tf, wE = ul + tv + nv + Ef, iv = c({ devicePixelContentBoxSize: S( Math.round(cl * devicePixelRatio), Math.round(ul * devicePixelRatio), Lt ), borderBoxSize: S(xE, wE, Lt), contentBoxSize: S(cl, ul, Lt), contentRect: new f(ao, wr, cl, ul), }); return h.set(P, iv), iv; }, O = function (P, _, L) { var G = R(P, L), ve = G.borderBoxSize, Lt = G.contentBoxSize, bt = G.devicePixelContentBoxSize; switch (_) { case l.DEVICE_PIXEL_CONTENT_BOX: return bt; case l.BORDER_BOX: return ve; default: return Lt; } }, I = (function () { function P(_) { var L = R(_); (this.target = _), (this.contentRect = L.contentRect), (this.borderBoxSize = c([L.borderBoxSize])), (this.contentBoxSize = c([L.contentBoxSize])), (this.devicePixelContentBoxSize = c([ L.devicePixelContentBoxSize, ])); } return P; })(), j = function (P) { if (m(P)) return 1 / 0; for (var _ = 0, L = P.parentNode; L; ) (_ += 1), (L = L.parentNode); return _; }, z = function () { var P = 1 / 0, _ = []; r.forEach(function (bt) { if (bt.activeTargets.length !== 0) { var et = []; bt.activeTargets.forEach(function (en) { var Ci = new I(en.target), ao = j(en.target); et.push(Ci), (en.lastReportedSize = O(en.target, en.observedBox)), ao < P && (P = ao); }), _.push(function () { bt.callback.call(bt.observer, et, bt.observer); }), bt.activeTargets.splice(0, bt.activeTargets.length); } }); for (var L = 0, G = _; L < G.length; L++) { var ve = G[L]; ve(); } return P; }, $ = function (P) { r.forEach(function (L) { L.activeTargets.splice(0, L.activeTargets.length), L.skippedTargets.splice(0, L.skippedTargets.length), L.observationTargets.forEach(function (ve) { ve.isActive() && (j(ve.target) > P ? L.activeTargets.push(ve) : L.skippedTargets.push(ve)); }); }); }, ie = function () { var P = 0; for ($(P); i(); ) (P = z()), $(P); return o() && a(), P > 0; }, H, X = [], U = function () { return X.splice(0).forEach(function (P) { return P(); }); }, J = function (P) { if (!H) { var _ = 0, L = document.createTextNode(""), G = { characterData: !0 }; new MutationObserver(function () { return U(); }).observe(L, G), (H = function () { L.textContent = "" + (_ ? _-- : _++); }); } X.push(P), H(); }, ae = function (P) { J(function () { requestAnimationFrame(P); }); }, W = 0, me = function () { return !!W; }, ce = 250, fe = { attributes: !0, characterData: !0, childList: !0, subtree: !0, }, ee = [ "resize", "load", "transitionend", "animationend", "animationstart", "animationiteration", "keyup", "keydown", "mouseup", "mousedown", "mouseover", "mouseout", "blur", "focus", ], Je = function (P) { return P === void 0 && (P = 0), Date.now() + P; }, Ie = !1, yt = (function () { function P() { var _ = this; (this.stopped = !0), (this.listener = function () { return _.schedule(); }); } return ( (P.prototype.run = function (_) { var L = this; if ((_ === void 0 && (_ = ce), !Ie)) { Ie = !0; var G = Je(_); ae(function () { var ve = !1; try { ve = ie(); } finally { if (((Ie = !1), (_ = G - Je()), !me())) return; ve ? L.run(1e3) : _ > 0 ? L.run(_) : L.start(); } }); } }), (P.prototype.schedule = function () { this.stop(), this.run(); }), (P.prototype.observe = function () { var _ = this, L = function () { return _.observer && _.observer.observe(document.body, fe); }; document.body ? L() : b.addEventListener("DOMContentLoaded", L); }), (P.prototype.start = function () { var _ = this; this.stopped && ((this.stopped = !1), (this.observer = new MutationObserver(this.listener)), this.observe(), ee.forEach(function (L) { return b.addEventListener(L, _.listener, !0); })); }), (P.prototype.stop = function () { var _ = this; this.stopped || (this.observer && this.observer.disconnect(), ee.forEach(function (L) { return b.removeEventListener(L, _.listener, !0); }), (this.stopped = !0)); }), P ); })(), ke = new yt(), Jt = function (P) { !W && P > 0 && ke.start(), (W += P), !W && ke.stop(); }, Mn = function (P) { return !d(P) && !g(P) && getComputedStyle(P).display === "inline"; }, Ln = (function () { function P(_, L) { (this.target = _), (this.observedBox = L || l.CONTENT_BOX), (this.lastReportedSize = { inlineSize: 0, blockSize: 0 }); } return ( (P.prototype.isActive = function () { var _ = O(this.target, this.observedBox, !0); return ( Mn(this.target) && (this.lastReportedSize = _), this.lastReportedSize.inlineSize !== _.inlineSize || this.lastReportedSize.blockSize !== _.blockSize ); }), P ); })(), ge = (function () { function P(_, L) { (this.activeTargets = []), (this.skippedTargets = []), (this.observationTargets = []), (this.observer = _), (this.callback = L); } return P; })(), Kn = new WeakMap(), ut = function (P, _) { for (var L = 0; L < P.length; L += 1) if (P[L].target === _) return L; return -1; }, yn = (function () { function P() {} return ( (P.connect = function (_, L) { var G = new ge(_, L); Kn.set(_, G); }), (P.observe = function (_, L, G) { var ve = Kn.get(_), Lt = ve.observationTargets.length === 0; ut(ve.observationTargets, L) < 0 && (Lt && r.push(ve), ve.observationTargets.push(new Ln(L, G && G.box)), Jt(1), ke.schedule()); }), (P.unobserve = function (_, L) { var G = Kn.get(_), ve = ut(G.observationTargets, L), Lt = G.observationTargets.length === 1; ve >= 0 && (Lt && r.splice(r.indexOf(G), 1), G.observationTargets.splice(ve, 1), Jt(-1)); }), (P.disconnect = function (_) { var L = this, G = Kn.get(_); G.observationTargets.slice().forEach(function (ve) { return L.unobserve(_, ve.target); }), G.activeTargets.splice(0, G.activeTargets.length); }), P ); })(), ll = (function () { function P(_) { if (arguments.length === 0) throw new TypeError( "Failed to construct 'ResizeObserver': 1 argument required, but only 0 present." ); if (typeof _ != "function") throw new TypeError( "Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function." ); yn.connect(this, _); } return ( (P.prototype.observe = function (_, L) { if (arguments.length === 0) throw new TypeError( "Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present." ); if (!y(_)) throw new TypeError( "Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element" ); yn.observe(this, _, L); }), (P.prototype.unobserve = function (_) { if (arguments.length === 0) throw new TypeError( "Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present." ); if (!y(_)) throw new TypeError( "Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element" ); yn.unobserve(this, _); }), (P.prototype.disconnect = function () { yn.disconnect(this); }), (P.toString = function () { return "function ResizeObserver () { [polyfill code] }"; }), P ); })(); (n.ResizeObserver = ll), (n.ResizeObserverEntry = I), (n.ResizeObserverSize = u), Object.defineProperty(n, "__esModule", { value: !0 }); }); }, }), WM = tn({ "../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js"( e ) { "use strict"; var t = typeof Symbol == "function" && Symbol.for, n = t ? Symbol.for("react.element") : 60103, r = t ? Symbol.for("react.portal") : 60106, i = t ? Symbol.for("react.fragment") : 60107, o = t ? Symbol.for("react.strict_mode") : 60108, s = t ? Symbol.for("react.profiler") : 60114, a = t ? Symbol.for("react.provider") : 60109, l = t ? Symbol.for("react.context") : 60110, c = t ? Symbol.for("react.async_mode") : 60111, u = t ? Symbol.for("react.concurrent_mode") : 60111, f = t ? Symbol.for("react.forward_ref") : 60112, d = t ? Symbol.for("react.suspense") : 60113, m = t ? Symbol.for("react.suspense_list") : 60120, y = t ? Symbol.for("react.memo") : 60115, g = t ? Symbol.for("react.lazy") : 60116, b = t ? Symbol.for("react.block") : 60121, h = t ? Symbol.for("react.fundamental") : 60117, p = t ? Symbol.for("react.responder") : 60118, v = t ? Symbol.for("react.scope") : 60119; function x(S) { if (typeof S == "object" && S !== null) { var T = S.$$typeof; switch (T) { case n: switch (((S = S.type), S)) { case c: case u: case i: case s: case o: case d: return S; default: switch (((S = S && S.$$typeof), S)) { case l: case f: case g: case y: case a: return S; default: return T; } } case r: return T; } } } function k(S) { return x(S) === u; } (e.AsyncMode = c), (e.ConcurrentMode = u), (e.ContextConsumer = l), (e.ContextProvider = a), (e.Element = n), (e.ForwardRef = f), (e.Fragment = i), (e.Lazy = g), (e.Memo = y), (e.Portal = r), (e.Profiler = s), (e.StrictMode = o), (e.Suspense = d), (e.isAsyncMode = function (S) { return k(S) || x(S) === c; }), (e.isConcurrentMode = k), (e.isContextConsumer = function (S) { return x(S) === l; }), (e.isContextProvider = function (S) { return x(S) === a; }), (e.isElement = function (S) { return typeof S == "object" && S !== null && S.$$typeof === n; }), (e.isForwardRef = function (S) { return x(S) === f; }), (e.isFragment = function (S) { return x(S) === i; }), (e.isLazy = function (S) { return x(S) === g; }), (e.isMemo = function (S) { return x(S) === y; }), (e.isPortal = function (S) { return x(S) === r; }), (e.isProfiler = function (S) { return x(S) === s; }), (e.isStrictMode = function (S) { return x(S) === o; }), (e.isSuspense = function (S) { return x(S) === d; }), (e.isValidElementType = function (S) { return ( typeof S == "string" || typeof S == "function" || S === i || S === u || S === s || S === o || S === d || S === m || (typeof S == "object" && S !== null && (S.$$typeof === g || S.$$typeof === y || S.$$typeof === a || S.$$typeof === l || S.$$typeof === f || S.$$typeof === h || S.$$typeof === p || S.$$typeof === v || S.$$typeof === b)) ); }), (e.typeOf = x); }, }), UM = tn({ "../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js"( e, t ) { "use strict"; t.exports = WM(); }, }), ff = tn({ "../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js"( e, t ) { "use strict"; var n = UM(), r = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0, }, i = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0, }, o = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0, }, s = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0, }, a = {}; (a[n.ForwardRef] = o), (a[n.Memo] = s); function l(b) { return n.isMemo(b) ? s : a[b.$$typeof] || r; } var c = Object.defineProperty, u = Object.getOwnPropertyNames, f = Object.getOwnPropertySymbols, d = Object.getOwnPropertyDescriptor, m = Object.getPrototypeOf, y = Object.prototype; function g(b, h, p) { if (typeof h != "string") { if (y) { var v = m(h); v && v !== y && g(b, v, p); } var x = u(h); f && (x = x.concat(f(h))); for (var k = l(b), S = l(h), T = 0; T < x.length; ++T) { var R = x[T]; if (!i[R] && !(p && p[R]) && !(S && S[R]) && !(k && k[R])) { var O = d(h, R); try { c(b, R, O); } catch {} } } } return b; } t.exports = g; }, }), GM = tn({ "../../../node_modules/archy/index.js"(e, t) { t.exports = function n(r, i, o) { i === void 0 && (i = ""), o || (o = {}); var s = function (u) { var f = { "\u2502": "|", "\u2514": "`", "\u251C": "+", "\u2500": "-", "\u252C": "-", }; return o.unicode === !1 ? f[u] : u; }; typeof r == "string" && (r = { label: r }); var a = r.nodes || [], l = (r.label || "").split(` `), c = ` ` + i + (a.length ? s("\u2502") : " ") + " "; return ( i + l.join(c) + ` ` + a .map(function (u, f) { var d = f === a.length - 1, m = u.nodes && u.nodes.length, y = i + (d ? " " : s("\u2502")) + " "; return ( i + s(d ? "\u2514" : "\u251C") + s("\u2500") + s(m ? "\u252C" : "\u2500") + " " + n(u, y, o).slice(i.length + 2) ); }) .join("") ); }; }, }), qM = tn({ "../../../node_modules/fontfaceobserver/fontfaceobserver.standalone.js"( e, t ) { (function () { function n(h, p) { document.addEventListener ? h.addEventListener("scroll", p, !1) : h.attachEvent("scroll", p); } function r(h) { document.body ? h() : document.addEventListener ? document.addEventListener("DOMContentLoaded", function p() { document.removeEventListener("DOMContentLoaded", p), h(); }) : document.attachEvent("onreadystatechange", function p() { (document.readyState == "interactive" || document.readyState == "complete") && (document.detachEvent("onreadystatechange", p), h()); }); } function i(h) { (this.a = document.createElement("div")), this.a.setAttribute("aria-hidden", "true"), this.a.appendChild(document.createTextNode(h)), (this.b = document.createElement("span")), (this.c = document.createElement("span")), (this.h = document.createElement("span")), (this.f = document.createElement("span")), (this.g = -1), (this.b.style.cssText = "max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;"), (this.c.style.cssText = "max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;"), (this.f.style.cssText = "max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;"), (this.h.style.cssText = "display:inline-block;width:200%;height:200%;font-size:16px;max-width:none;"), this.b.appendChild(this.h), this.c.appendChild(this.f), this.a.appendChild(this.b), this.a.appendChild(this.c); } function o(h, p) { h.a.style.cssText = "max-width:none;min-width:20px;min-height:20px;display:inline-block;overflow:hidden;position:absolute;width:auto;margin:0;padding:0;top:-999px;white-space:nowrap;font-synthesis:none;font:" + p + ";"; } function s(h) { var p = h.a.offsetWidth, v = p + 100; return ( (h.f.style.width = v + "px"), (h.c.scrollLeft = v), (h.b.scrollLeft = h.b.scrollWidth + 100), h.g !== p ? ((h.g = p), !0) : !1 ); } function a(h, p) { function v() { var k = x; s(k) && k.a.parentNode && p(k.g); } var x = h; n(h.b, v), n(h.c, v), s(h); } function l(h, p) { var v = p || {}; (this.family = h), (this.style = v.style || "normal"), (this.weight = v.weight || "normal"), (this.stretch = v.stretch || "normal"); } var c = null, u = null, f = null, d = null; function m() { if (u === null) if (y() && /Apple/.test(F.navigator.vendor)) { var h = /AppleWebKit\/([0-9]+)(?:\.([0-9]+))(?:\.([0-9]+))/.exec( F.navigator.userAgent ); u = !!h && 603 > parseInt(h[1], 10); } else u = !1; return u; } function y() { return d === null && (d = !!document.fonts), d; } function g() { if (f === null) { var h = document.createElement("div"); try { h.style.font = "condensed 100px sans-serif"; } catch {} f = h.style.font !== ""; } return f; } function b(h, p) { return [h.style, h.weight, g() ? h.stretch : "", "100px", p].join( " " ); } (l.prototype.load = function (h, p) { var v = this, x = h || "BESbswy", k = 0, S = p || 3e3, T = new Date().getTime(); return new Promise(function (R, O) { if (y() && !m()) { var I = new Promise(function (z, $) { function ie() { new Date().getTime() - T >= S ? $(Error("" + S + "ms timeout exceeded")) : document.fonts .load(b(v, '"' + v.family + '"'), x) .then(function (H) { 1 <= H.length ? z() : setTimeout(ie, 25); }, $); } ie(); }), j = new Promise(function (z, $) { k = setTimeout(function () { $(Error("" + S + "ms timeout exceeded")); }, S); }); Promise.race([j, I]).then(function () { clearTimeout(k), R(v); }, O); } else r(function () { function z() { var ee; (ee = (U != -1 && J != -1) || (U != -1 && ae != -1) || (J != -1 && ae != -1)) && ((ee = U != J && U != ae && J != ae) || (c === null && ((ee = /AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec( F.navigator.userAgent )), (c = !!ee && (536 > parseInt(ee[1], 10) || (parseInt(ee[1], 10) === 536 && 11 >= parseInt(ee[2], 10))))), (ee = c && ((U == W && J == W && ae == W) || (U == me && J == me && ae == me) || (U == ce && J == ce && ae == ce)))), (ee = !ee)), ee && (fe.parentNode && fe.parentNode.removeChild(fe), clearTimeout(k), R(v)); } function $() { if (new Date().getTime() - T >= S) fe.parentNode && fe.parentNode.removeChild(fe), O(Error("" + S + "ms timeout exceeded")); else { var ee = document.hidden; (ee === !0 || ee === void 0) && ((U = ie.a.offsetWidth), (J = H.a.offsetWidth), (ae = X.a.offsetWidth), z()), (k = setTimeout($, 50)); } } var ie = new i(x), H = new i(x), X = new i(x), U = -1, J = -1, ae = -1, W = -1, me = -1, ce = -1, fe = document.createElement("div"); (fe.dir = "ltr"), o(ie, b(v, "sans-serif")), o(H, b(v, "serif")), o(X, b(v, "monospace")), fe.appendChild(ie.a), fe.appendChild(H.a), fe.appendChild(X.a), document.body.appendChild(fe), (W = ie.a.offsetWidth), (me = H.a.offsetWidth), (ce = X.a.offsetWidth), $(), a(ie, function (ee) { (U = ee), z(); }), o(ie, b(v, '"' + v.family + '",sans-serif')), a(H, function (ee) { (J = ee), z(); }), o(H, b(v, '"' + v.family + '",serif')), a(X, function (ee) { (ae = ee), z(); }), o(X, b(v, '"' + v.family + '",monospace')); }); }); }), typeof t == "object" ? (t.exports = l) : ((F.FontFaceObserver = l), (F.FontFaceObserver.prototype.load = l.prototype.load)); })(); }, }); function Jm(e, t) { let n = { style: t }; return w.isValidElement(e) ? w.cloneElement(e, n) : w.createElement(e, n); } var XM = class extends Error {}, Pu = class extends Error {}, YM = class extends Pe { constructor(e) { super(e), (this.state = { error: void 0, forceUpdateKey: e.forceUpdateKey }); } static getDerivedStateFromError(e) { return { error: e }; } static getDerivedStateFromProps(e, t) { if (e.forceUpdateKey !== t.forceUpdateKey) { let n = { forceUpdateKey: e.forceUpdateKey }; return t.error && (n.error = void 0), n; } return null; } render() { if (this.state.error === void 0) return this.props.children; if (!(this.state.error instanceof XM)) { let n = new Pu(); throw ((n.cause = this.state.error), n); } let { notFoundPage: e, defaultPageStyle: t } = this.props; if (!e) throw this.state.error; return Jm(e, t); } }, KM = ":([a-z]\\w*)", ro = new RegExp(KM, "gi"); function Qk(e, t) { return e.replace(ro, (n, r) => { let i = t[r]; return typeof i != "string" || i.length === 0 ? n : encodeURIComponent(i); }); } function Zk(e, t) { if (!e.startsWith("/") || !t.startsWith("/")) throw new Error("from/to paths are expected to be absolute"); let [n] = c1(e), [r, i] = c1(t), o = QM(n, r); return ( o === "" && (o = "."), !o.startsWith(".") && !o.startsWith("/") && (o = "./" + o), o + "/" + i ); } function c1(e) { let t = e.lastIndexOf("/"); return [e.substring(0, t + 1), e.substring(t + 1)]; } var Tm = 46, rs = 47, Si = (e, t) => e.charCodeAt(t), u1 = (e, t) => e.lastIndexOf(t), os = (e, t, n) => e.slice(t, n); function QM(e, t) { if (e === t || ((e = "/" + d1(e)), (t = "/" + d1(t)), e === t)) return ""; let n = 1, r = e.length, i = r - n, o = 1, s = t.length - o, a = i < s ? i : s, l = -1, c = 0; for (; c < a; c++) { let f = Si(e, n + c); if (f !== Si(t, o + c)) break; f === rs && (l = c); } if (c === a) if (s > a) { if (Si(t, o + c) === rs) return os(t, o + c + 1); if (c === 0) return os(t, o + c); } else i > a && (Si(e, n + c) === rs ? (l = c) : c === 0 && (l = 0)); let u = ""; for (c = n + l + 1; c <= r; ++c) (c === r || Si(e, c) === rs) && (u += u.length === 0 ? ".." : "/.."); return `${u}${os(t, o + l)}`; } var ZM = !1, mu = "/", f1 = (e) => e === rs; function d1(e) { let t = "", n = 0, r = -1, i = 0, o = 0; for (let s = 0; s <= e.length; ++s) { if (s < e.length) o = Si(e, s); else { if (f1(o)) break; o = rs; } if (f1(o)) { if (!(r === s - 1 || i === 1)) if (i === 2) { if ( t.length < 2 || n !== 2 || Si(t, t.length - 1) !== Tm || Si(t, t.length - 2) !== Tm ) { if (t.length > 2) { let a = u1(t, mu); a === -1 ? ((t = ""), (n = 0)) : ((t = os(t, 0, a)), (n = t.length - 1 - u1(t, mu))), (r = s), (i = 0); continue; } else if (t.length !== 0) { (t = ""), (n = 0), (r = s), (i = 0); continue; } } ZM && ((t += t.length > 0 ? `${mu}..` : ".."), (n = 2)); } else t.length > 0 ? (t += `${mu}${os(e, r + 1, s)}`) : (t = os(e, r + 1, s)), (n = s - r - 1); (r = s), (i = 0); } else o === Tm && i !== -1 ? ++i : (i = -1); } return t; } function Jk(e) { let t = typeof F < "u" ? F.location.search : ""; return t ? JM(t, e) : e; } function JM(e, t) { let n = t.indexOf("#"), r = n === -1 ? t : t.substring(0, n), i = n === -1 ? "" : t.substring(n), o = r.indexOf("?"); if (o === -1) return r + e + i; let s = new URLSearchParams(e), a = r.substring(o + 1), l = new URLSearchParams(a); for (let [c, u] of s) l.has(c) || l.append(c, u); return r.substring(0, o + 1) + l.toString() + i; } function Na(e) { return typeof e == "object" && e !== null && !Array.isArray(e); } function to(e) { return typeof e == "string"; } var eL = "preload"; function eC(e) { return typeof e == "object" && e !== null && !w.isValidElement(e) && eL in e; } function oH(e) { let t = w.lazy(e), n, r, i = w.forwardRef(function (s, a) { return w.createElement(r ?? t, a ? { ref: a, ...s } : s); }); return ( (i.preload = () => (n || (n = e().then((o) => ((r = o.default), r))), n)), i ); } function xg(e, t) { if (t && e) return e.elements && t in e.elements ? e.elements[t] : t; } function tL(e) { return /bot|-google|google-|yandex|ia_archiver/iu.test(e); } function tC(e) { if ("scheduler" in F) { if ("yield" in scheduler) return scheduler.yield(e); if ("postTask" in scheduler) return scheduler.postTask(() => {}, e); } return e?.priority === "user-blocking" ? Promise.resolve() : new Promise((t) => { setTimeout(t); }); } async function nL(e, t) { return await tC(t), e(); } function as(e) { return new Promise((t) => { setTimeout(t, 100), requestAnimationFrame(() => { nL(t, e); }); }); } function nC(e, t, n, r = ze) { r(() => { let i = async (s) => (await as(n), s()), o = i(e); return () => { (async () => { let s = await o; s && i(s); })(); }; }, t); } var Bu = () => {}, rL = []; async function iL(e, t, n, r, i, o, s) { var a, l, c; let u = e, f = !1, d = { ...o }, m = Array.from(u.matchAll(ro)), y = await Promise.all( m.map(async (p) => { var v; let x = p?.[0], k = p?.[1]; if (!x || !k) throw new Error( "Failed to replace path variables: unexpected regex match group" ); let S = o[k]; if (!S || !to(S)) throw new Error(`No slug found for path variable ${k}`); let T = await ((v = s?.[i]) === null || v === void 0 ? void 0 : v.call(s)); if (!T || !t) return S; let R = await T.getRecordIdBySlug(S, t); if (!R) return S; let O = await T.getSlugByRecordId(R, n); if (!O) { f = !0; let I = await T.getSlugByRecordId(R, r); return I && (d[k] = I), I ?? S; } return (d[k] = O), O; }) ), g = 0, b = "", h = !1; for (let p = 0; p < m.length; p++) { let v = m[p], x = y[p]; !v || !x || ((b += u.substring(g, v.index)), (g = ((a = v.index) !== null && a !== void 0 ? a : 0) + ((c = (l = v[0]) === null || l === void 0 ? void 0 : l.length) !== null && c !== void 0 ? c : 0)), (b += y[p]), (h = !0)); } return h && (u = b), { path: u, pathVariables: d, isMissingInLocale: f }; } async function oL({ currentLocale: e, nextLocale: t, defaultLocale: n, route: r, pathVariables: i, collectionUtils: o, preserveQueryParams: s, }) { let { path: a } = r, l = { path: a, pathVariables: i, isMissingInLocale: !1 }; if (!a) return l; if (i && r.collectionId) try { l = await iL(a, e, t, n, r.collectionId, i, o); } catch {} return ( t.slug && (l.path = "/" + t.slug + l.path), s && l.path && (l.path = Jk(l.path)), l ); } function sL(e, t, { global: n, routes: r }) { var i; return ((i = r[e]) === null || i === void 0 ? void 0 : i[t]) || n; } var aL = { global: void 0, routes: {} }, rC = w.createContext(aL); function cH({ children: e, value: t }) { return C(rC.Provider, { value: t, children: e }); } function lL() { return w.useContext(rC); } var Em = 10, cL = 1e4; function uL(e) { let t = Em, n = e.next(0), r = [n.value]; for (; !n.done && t < cL; ) (n = e.next(t)), r.push(n.value), (t += Em); return ( r.length === 1 && r.push(n.value), { easing: `linear(${r.join(",")})`, duration: t - Em } ); } var jr = (e) => `--view-transition-${e}`; function eg(e) { return [parseFloat(e), e.endsWith("px") ? "px" : "%"]; } function iC(e) { let { innerWidth: t, innerHeight: n } = F, [r, i] = eg(e.x), [o, s] = eg(e.y); return { x: i === "px" ? r : t * (r / 100), y: s === "px" ? o : n * (o / 100), }; } var fL = { makeKeyframe: (e, t, n) => { let r = 0; return ( ((n === "exit" && e.angularDirection === "clockwise" && t === "start") || (n === "exit" && e.angularDirection === "counter-clockwise" && t === "end") || (n === "enter" && e.angularDirection === "counter-clockwise" && t === "start") || (n === "enter" && e.angularDirection === "clockwise" && t === "end")) && (r = (e.sweepAngle / 360) * 100), `${jr("conic-offset")}: ${r}%;` ); }, makeStyles: (e, t) => { let n = `var(${jr("conic-offset")})`, r = (t === "exit" && e.angularDirection === "clockwise") || (t === "enter" && e.angularDirection === "counter-clockwise"), i = r ? "transparent" : "black", o = r ? "black" : "transparent", s = "conic-gradient(from "; return ( (s += `${e.angle}deg at ${e.x} ${e.y}, `), (s += `${i} 0%, ${i} ${n}, `), (s += `${o} ${n}, ${o} 100%)`), `mask-image: ${s}; -webkit-mask-image: ${s};` ); }, makePropertyRules: () => ` @property ${jr("conic-offset")} { syntax: ''; initial-value: 0%; inherits: false; } `, }, dL = { makeKeyframe: (e, t) => { let { x: n, y: r } = iC(e); return t === "start" ? `clip-path: circle(0 at ${n}px ${r}px);` : `clip-path: circle(${Math.hypot( Math.max(n, F.innerWidth - n), Math.max(r, F.innerHeight - r) )}px at ${n}px ${r}px);`; }, }, hL = { makeKeyframe: (e, t) => { let { x: n, y: r } = iC(e), i = F.innerHeight - r, o = F.innerWidth - n; return t === "start" ? `clip-path: inset(${r}px ${o}px ${i}px ${n}px round ${e.round}px);` : "clip-path: inset(0 round 0);"; }, }, pL = { makeKeyframe: (e, t, n) => { let [, r] = eg(e.width), i = `0${r}`; return ( ((t === "start" && n === "exit") || (t === "end" && n === "enter")) && (i = e.width), `${jr("blinds-width")}: ${i};` ); }, makeStyles: (e, t) => { let n = `var(${jr("blinds-width")})`, r = t === "exit" ? "transparent" : "black", i = t === "exit" ? "black" : "transparent", o = "repeating-linear-gradient("; return ( (o += e.angle + 90 + "deg, "), (o += `${r} 0px, ${r} ${n}, `), (o += `${i} ${n}, ${i} ${e.width})`), `mask-image: ${o}; -webkit-mask-image: ${o};` ); }, makePropertyRules: () => ` @property ${jr("blinds-width")} { syntax: ''; initial-value: 0px; inherits: false; } `, }, mL = { makeKeyframe: (e, t, n) => { let r = (t === "start" && n === "exit") || (t === "end" && n === "enter") ? 1 : 0; return `${jr("wipe-offset")}: ${r};`; }, makeStyles: (e, t) => { let n = `var(${jr("wipe-offset")})`, r = t === "exit" ? "transparent" : "black", i = t === "exit" ? "black" : "transparent", o = "linear-gradient("; return ( (o += e.angle + 90 + "deg, "), (o += `${r} calc(calc(0% - ${e.width}) + calc(calc(100% + ${e.width}) * ${n})), `), (o += `${i} calc(calc(100% + ${e.width}) * ${n}))`), `mask-image: ${o}; -webkit-mask-image: ${o};` ); }, makePropertyRules: () => ` @property ${jr("wipe-offset")} { syntax: ''; initial-value: 0; inherits: false; } `, }, gL = { circle: dL, conic: fL, inset: hL, blinds: pL, wipe: mL }, vL = { opacity: 1, x: "0px", y: "0px", scale: 1, rotate: 0, rotateX: 0, rotateY: 0, mask: void 0, }; function h1(e, t, n, r) { var i; let o = ` opacity: ${e.opacity}; transform: translate(${e.x}, ${e.y}) scale(${e.scale}) rotateX(${e.rotateX}deg) rotateY(${e.rotateY}deg) rotateZ(${e.rotate}deg); `; return ( e.mask && (o += ((i = r?.makeKeyframe) === null || i === void 0 ? void 0 : i.call(r, e.mask, t, n)) || ""), o ); } function yL(e) { return e ? gL[e] : void 0; } function p1(e, { transition: t, ...n }) { var r; let i = "view-transition-" + e, o = { duration: "0s", easing: "linear" }; if (t.type === "tween") (o.duration = t.duration + "s"), (o.easing = `cubic-bezier(${t.ease.join(",")})`); else if (bL(t)) { let { easing: c, duration: u } = uL( Ds({ keyframes: [0, 1], ...xL(t), restDelta: 0.001, restSpeed: 1e-4 }) ); (o.duration = u + "ms"), (o.easing = c); } let s = yL((r = n?.mask) === null || r === void 0 ? void 0 : r.type), a = h1(n, "start", e, s), l = h1({ ...vL, mask: n.mask }, "end", e, s); return ( e === "exit" && ([a, l] = [l, a]), ` ${n.mask && s?.makePropertyRules ? s.makePropertyRules(n.mask) : ""} @keyframes ${i} { 0% { ${a} } 100% { ${l} } } ::view-transition-${e === "enter" ? "new" : "old"}(root) { animation-name: ${i}; animation-duration: ${o.duration}; animation-delay: ${t.delay}s; animation-timing-function: ${o.easing}; animation-fill-mode: both; ${n.mask && s?.makeStyles ? s.makeStyles(n.mask, e) : ""} } ` ); } function bL(e) { return e.type === "spring"; } function xL(e) { return e.durationBasedSpring ? { duration: e.duration, bounce: e.bounce } : { stiffness: e.stiffness, damping: e.damping, mass: e.mass }; } var oC = "view-transition-styles", wL = { x: "0px", y: "0px", scale: 1, opacity: 1, rotate3d: !1, rotate: 0, rotateX: 0, rotateY: 0, mask: void 0, transition: { type: "tween", delay: 0, duration: 0.2, ease: [0.27, 0, 0.51, 1], stiffness: 400, damping: 30, mass: 1, }, }; function SL({ exit: e = wL, enter: t }) { let n = document.createElement("style"); n.id = oC; let r = ` @media (prefers-reduced-motion) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } } `; (e.mask || t.mask || e.opacity || t.opacity || e.transition.delay || t.transition.delay) && (r += ` ::view-transition-old(*), ::view-transition-new(*) { mix-blend-mode: normal; } `), (r += ` ::view-transition-old(*), ::view-transition-new(*) { backface-visibility: hidden; } `), (r += p1("exit", e)), (r += p1("enter", t)), (n.textContent = r), document.head.appendChild(n); } var kL = (() => typeof F < "u" ? F.requestIdleCallback || F.setTimeout : setTimeout)(); function CL() { kL(() => { Q.render(() => { performance.mark("framer-vt-remove"); let e = document.getElementById(oC); e && document.head.removeChild(e); }); }); } var m1 = () => {}; function TL() { return !!document.startViewTransition; } function EL(e) { return new Promise((t) => { Q.render(() => { performance.mark("framer-vt-style"), SL(e), t(); }); }); } async function g1(e, t, n) { if (!TL()) { e(); return; } if ((await EL(t), n?.aborted)) return; performance.mark("framer-vt"); let r = document.startViewTransition(async () => { performance.mark("framer-vt-freeze"), !n?.aborted && (n?.addEventListener("abort", () => r.skipTransition()), await e()); }); return ( r.updateCallbackDone .then(() => { performance.mark("framer-vt-unfreeze"); }) .catch(m1), Promise.all([r.ready, r.finished]) .then(() => { performance.mark("framer-vt-finished"), CL(); }) .catch(m1), r ); } function sC() { let e = lL(), t = V(void 0); return ( N(() => { t.current && (t.current(), (t.current = void 0)); }), K( (n, r, i, o, s) => { let a = sL(n, r, e); if (a) { let l = new Promise((f) => { t.current = f; }), c = async () => { i(), await l; }, u = async () => ( await as({ priority: "user-blocking", signal: s }).catch(Bu), g1(c, a, s) ); return o ? u() : g1(c, a); } else return i(); }, [e] ) ); } function aC(e) { let t = `${e}-start`, n = `${e}-end`, r = V(void 0); return ( nC( () => { r.current && (r.current(), (r.current = void 0)); }, void 0, { priority: "user-blocking" } ), K(() => { let i = new Promise((o) => { r.current = o; }); return ( performance.mark(t), i .finally(() => { performance.mark(n), performance.measure(e, t, n); }) .catch((o) => { console.error(o); }) ); }, [e, t, n]) ); } async function v1( e, t, { currentRoutePath: n, currentPathVariables: r, hash: i, pathVariables: o, localeId: s, preserveQueryParams: a, }, l = !1, c = !1 ) { let { path: u } = t; if (u) try { let f = wg(t, { currentRoutePath: n, currentPathVariables: r, hash: i, pathVariables: o, preserveQueryParams: a, }), d = lC({ routeId: e, hash: i, pathVariables: o, localeId: s }, f, l, c); l || (await d); } catch {} } function RL(e) { let t = "routeId"; return Na(e) && to(e[t]); } function PL(e, t, n = !1) { performance.mark("framer-history-replace"), (n ? F.history.__proto__.replaceState : F.history.replaceState).call( F.history, e, "", t ); } var gu = !0, y1 = (() => { if (typeof Re > "u") return !1; let e = Re.userAgent, t = e.indexOf("Chrome/"), n = +e.slice(t + 7, e.indexOf(".", t)); return n > 101 && n < 128; })(); async function lC(e, t, n = !1, r = !1) { if ( (n && (await as({ priority: "user-blocking" })), performance.mark("framer-history-push"), !r) ) { F.history.pushState(e, "", t); return; } let i = !1, o; gu && ((o = () => { var s; if (((i = !0), y1)) return; let a = "Popstate called after intercept(). Please report this to the Framer team."; console.error(a), (s = F.__framer_events) === null || s === void 0 || s.push([ "published_site_load_recoverable_error", { message: a, userAgent: Re.userAgent }, ]); }), F.addEventListener("popstate", o, { once: !0 })), y1 && gu ? F.history.__proto__.pushState.call(F.history, e, "", t) : F.history.pushState(e, "", t), gu && queueMicrotask(() => { i || ((gu = !1), F.removeEventListener("popstate", o)); }); } function FL({ disabled: e, routeId: t, initialPathVariables: n, initialLocaleId: r, }) { ze(() => { e || (performance.mark("framer-history-set-initial-state"), PL({ routeId: t, pathVariables: n, localeId: r }, void 0, !0)); }, []); } function _L(e, t) { let n = sC(), r = aC("framer-route-change-popstate"), i = V(void 0), o = K( async ({ state: a }) => { var l, c, u, f, d, m; if ( (!((l = F.navigation) === null || l === void 0) && l.transition && ((u = (c = F.navigation) === null || c === void 0 ? void 0 : c.transition) === null || u === void 0 ? void 0 : u.navigationType) !== "traverse") || !Na(a) ) return; let { routeId: y, hash: g, pathVariables: b, localeId: h } = a; if (!to(y)) return; r(); let p = () => { t( y, to(h) ? h : void 0, to(g) ? g : void 0, Na(b) ? b : void 0, !1, !0 ); }, v = await n(e.current, y, p, !1); v ? v.updateCallbackDone .then( (f = i.current) === null || f === void 0 ? void 0 : f.resolve ) .catch( (d = i.current) === null || d === void 0 ? void 0 : d.reject ) : (m = i.current) === null || m === void 0 || m.resolve(); }, [e, r, t, n] ), s = K((a) => { a.navigationType === "traverse" && a.intercept({ async handler() { await new Promise((l, c) => { i.current = { resolve: l, reject: c }; }); }, scroll: "after-transition", }); }, []); N(() => { var a; return ( F.addEventListener("popstate", o), (a = F.navigation) === null || a === void 0 || a.addEventListener("navigate", s), () => { var l; F.removeEventListener("popstate", o), (l = F.navigation) === null || l === void 0 || l.removeEventListener("navigate", s); } ); }, [o, s]); } function IL(e, t, n) { let r = xg(t, e); if (!r) return; let i = Object.assign({}, t?.elements, n); return r.replace(ro, (o, s) => { var a; return String((a = i[s]) !== null && a !== void 0 ? a : o); }); } function wg( e, { currentRoutePath: t, currentPathVariables: n, hash: r, pathVariables: i, hashVariables: o, relative: s = !0, preserveQueryParams: a, } ) { var l; let c = t ?? "/"; n && (c = c.replace(ro, (y, g) => String(n[g] || y))); let f = (l = e?.path) !== null && l !== void 0 ? l : "/"; i && (f = f.replace(ro, (y, g) => String(i[g] || y))); let d = IL(r, e, o), m = c === f && d; return ( s && (f = Zk(c, f)), (a || m) && (f = Jk(f)), d && (f = `${f}#${d}`), f ); } async function OL(e, t, n) { if (!e.path || !t) return !1; let i = `${n.slug ? `/${n.slug}` : ""}${Qk(e.path, t)}`; return (await fetch(i, { method: "HEAD", redirect: "manual" })).type === "opaqueredirect" ? ((F.location.href = F.location.origin + i), !0) : !1; } async function ML(e) { let t = await oL(e); if (t) { try { localStorage.setItem("preferredLocale", e.nextLocale.code); } catch {} try { if (!to(t.path)) throw new Error("Expected result.path to be a string"); if ( t.isMissingInLocale && (await OL(e.route, t.pathVariables, e.nextLocale)) ) return; } catch {} return t; } } function LL() { let e = V(Promise.resolve()), t = V(), n = K((r) => { if (r.navigationType === "traverse") return; let i = t.current; i?.signal.addEventListener("abort", () => { i.abort("user aborted"); }), r.intercept({ handler: () => e.current }); }, []); return K( (r, i, o) => { if (!F.navigation) { i(); return; } (e.current = r), (t.current = o), F.navigation.addEventListener("navigate", n), i(!0), r.catch(Bu).finally(() => { F.navigation.removeEventListener("navigate", n); }); }, [n] ); } function Br(e, t, n) { try { performance.measure(e, t, n); } catch (r) { console.warn(`Could not measure ${e}`, r); } } var Un = !1; function dH() { (Un = !0), performance.mark("framer-hydration-start"); } var b1 = !1, x1 = !1, w1 = !1; function VL() { let e = "framer-hydration-router"; ft(() => { b1 || !Un || ((b1 = !0), performance.mark(`${e}-insertion-effect`)); }, []), ze(() => { x1 || !Un || ((x1 = !0), performance.mark(`${e}-layout-effect`)); }, []), N(() => { w1 || !Un || ((w1 = !0), performance.mark(`${e}-effect`)); }, []); } var S1 = !1, k1 = !1, C1 = !1; function AL() { let e = "framer-hydration-", t = `${e}layout-effects-end`, n = `${e}effects-end`, r = `${e}browser-render-start`, i = `${e}render-end`; return ( ft(() => { S1 || !Un || ((S1 = !0), performance.mark(i), Br(`${e}render`, `${e}start`, i), performance.mark(`${e}insertion-effects-start`)); }, []), ze(() => { k1 || !Un || ((k1 = !0), performance.mark(`${e}layout-effects-start`), requestAnimationFrame(() => { var o, s, a; performance.mark(r), Br( `${e}uho`, (s = (o = performance.getEntriesByName(n)[0]) === null || o === void 0 ? void 0 : o.name) !== null && s !== void 0 ? s : (a = performance.getEntriesByName(t)[0]) === null || a === void 0 ? void 0 : a.name, r ); })); }, []), N(() => { var o; if (C1 || !Un) return; C1 = !0; let s = `${e}effects-start`; performance.mark(s), ((o = performance.getEntriesByName(r)[0]) === null || o === void 0 ? void 0 : o.name) || (Br(`${e}commit`, t, s), performance.mark(`${e}effects-sync`)); }, []), null ); } var T1 = !1, E1 = !1, R1 = !1, P1 = !1; function DL() { let e = "framer-hydration-", t = `${e}layout-effects-end`, n = `${e}effects-end`, r = `${e}browser-render-start`, i = `${e}start`, o = `${e}insertion-effects-end`, s = `${e}first-paint`, a = `${e}browser-raf-end`; return ( ft(() => { T1 || !Un || ((T1 = !0), performance.mark(o), Br(`${e}insertion-effects`, `${e}insertion-effects-start`, o)); }, []), ze(() => { E1 || !Un || ((E1 = !0), performance.mark(t), Br(`${e}layout-effects`, `${e}layout-effects-start`, t), requestAnimationFrame(() => { performance.mark(a), Br(`${e}raf`, r, a); })); }, []), N(() => { var l, c, u; R1 || !Un || ((R1 = !0), performance.mark(n), Br( `${e}effects`, (c = (l = performance.getEntriesByName(s)[0]) === null || l === void 0 ? void 0 : l.name) !== null && c !== void 0 ? c : (u = performance.getEntriesByName(`${e}effects-start`)[0]) === null || u === void 0 ? void 0 : u.name, n )); }, []), nC( () => { P1 || !Un || ((P1 = !0), performance.mark(s), Br(`${e}time-to-first-paint`, i, s), queueMicrotask(() => { Br(`${e}browser-render`, a, s); })); }, [], { priority: "user-blocking" } ), null ); } function zL() { return AL(), null; } function BL() { return DL(), null; } var F1 = { Start: zL, End: BL }, za = [ "mousedown", "mouseup", "touchcancel", "touchend", "touchstart", "auxclick", "dblclick", "pointercancel", "pointerdown", "pointerup", "dragend", "dragstart", "drop", "compositionend", "compositionstart", "keydown", "keypress", "keyup", "input", "textInput", "copy", "cut", "paste", "click", "change", "contextmenu", "reset", ], cC = (e) => { var t, n; !( (n = (t = e.target) === null || t === void 0 ? void 0 : t.closest) === null || n === void 0 ) && n.call(t, "#main") && (e.stopPropagation(), performance.mark("framer-react-event-handling-prevented")); }, uC = !1; function pH() { if (!za) return; (uC = !0), performance.mark("framer-react-event-handling-start"); let e = { capture: !0 }; za.forEach((t) => document.body.addEventListener(t, cC, e)); } function $L() { return ( N(() => { if (!uC || !za) return; let e = { capture: !0 }; za.forEach((t) => document.body.removeEventListener(t, cC, e)), (za = void 0), performance.mark("framer-react-event-handling-end"); }, []), null ); } var Sg = !1; function gH() { Sg = !0; } function NL() { Sg = !1; } function jL() { let e = V(typeof F > "u" || Sg); return ( N(() => { e.current = !1; }, []), e ); } function HL(e, t) { if (e.routeId !== t.routeId) return !1; if (e.pathVariables === t.pathVariables) return !0; let n = e.pathVariables || {}, r = t.pathVariables || {}; return n.length === r.length && Object.keys(n).every((i) => n[i] === r[i]); } function fC(e) { return w.useCallback((t) => e[t], [e]); } var kg = (() => w.createContext({}))(); function WL({ api: e, children: t }) { return C(kg.Provider, { value: e, children: t }); } function Ja() { return w.useContext(kg); } function UL({ routes: e, children: t }) { let n = fC(e); return C(kg.Provider, { value: { getRoute: n }, children: t }); } var GL = class extends Pe { constructor() { super(...arguments), (this.state = { error: void 0 }); } static getDerivedStateFromError(e) { return ( e instanceof Pu || console.error("Derived error in SuspenseErrorBoundary", e), { error: e } ); } componentDidCatch(e, t) { var n; if (e instanceof Pu) return; let r = t?.componentStack; if ( (console.error("Caught error in SuspenseErrorBoundary", e, r), typeof F < "u") ) { let i = e instanceof Error && typeof e.stack == "string" ? e.stack : null; (n = F.__framer_events) === null || n === void 0 || n.push([ "published_site_load_recoverable_error", { message: String(e), stack: i, componentStack: i ? void 0 : r }, ]); } } render() { if (this.state.error === void 0) return this.props.children; if (this.state.error instanceof Pu) throw this.state.error.cause; return ( (F.__framer_STPD_OPT_OUT__ = !0), C(bs, { children: this.props.fallbackChildren }) ); } }, qL = (() => (typeof F < "u" ? new Promise(() => {}) : null))(); function XL() { if (typeof F > "u" || F.__framer_STPD_OPT_OUT__) return null; throw qL; } function dC({ children: e }) { return C(GL, { fallbackChildren: e, children: C(bs, { fallback: C(XL, {}), children: e }), }); } var _1 = "default"; function YL() { let [e, t] = w.useState(0); return [e, w.useCallback(() => t((n) => n + 1), [])]; } var KL = async () => {}, QL = { activeLocale: null, locales: [], setLocale: KL }, hC = w.createContext(QL); function ZL() { return w.useContext(hC); } function I1(e, t, n) { let r = e && document.getElementById(e); if (r) { nV(r, t); return; } n || F.scrollTo(0, 0); } function JL(e) { let t = V([]); return ( ze(() => { var n; !((n = t.current) === null || n === void 0) && n.length && (t.current.forEach((r) => r()), (t.current = [])); }, [e]), K((n) => { t.current.push(n); }, []) ); } function eV(e) { let t = LL(), n = aC("framer-route-change"), r = V(void 0); return K( async (i, o, s = !0) => { var a; if ((NL(), !e)) return ( await o?.(), i(), n(), new Promise((m) => { m(); }) ); (a = r.current) === null || a === void 0 || a.abort(); let l = s ? new AbortController() : void 0; r.current = l; let c = l?.signal, u = n(); if (!o) return (r.current = void 0), i(c), u; i(c), await as({ priority: "user-visible", signal: c }).catch(Bu), await as({ priority: "user-visible", signal: c }).catch(Bu); let f, d = new Promise((m, y) => { (f = m), c?.aborted ? y() : c?.addEventListener("abort", y); }); return ( t(d, o, l), u.then(() => { f(); }) ); }, [e, n, t] ); } function tV({ defaultPageStyle: e, disableHistory: t, initialPathVariables: n, initialRoute: r, notFoundPage: i, collectionUtils: o, routes: s, initialLocaleId: a, locales: l = rL, preserveQueryParams: c = !1, enableAsyncURLUpdates: u = !1, }) { VL(), FL({ disabled: t, routeId: r, initialPathVariables: n, initialLocaleId: a, }); let f = sC(), [d, m] = YL(), y = JL(d), g = eV(u), b = V(r), h = V(n), p = V(a), v = p.current, x = oe(() => { var X; return (X = l.find(({ id: U }) => (v ? U === v : U === _1))) !== null && X !== void 0 ? X : null; }, [v, l]), k = oe( () => ({ activeLocale: x, locales: l, setLocale: async (X) => { let U; to(X) ? (U = X) : Na(X) && (U = X.id); let J = l.find(({ id: ce }) => ce === _1), ae = l.find(({ id: ce }) => ce === U); if (!ae) return; let W = b.current, me = s[W]; if (me) try { let ce = await ML({ currentLocale: x, nextLocale: ae, route: me, routeId: W, defaultLocale: J, pathVariables: h.current, collectionUtils: o, preserveQueryParams: c, }); if (!ce) return; let fe = h.current, ee = RL(F.history.state) ? F.history.state.paginationInfo : void 0, Je = ce.path; (h.current = ce.pathVariables), (p.current = ae.id), g( () => { f(W, W, () => rn(m), u); }, async (yt = !1) => { if (Je) return lC( { routeId: W, pathVariables: fe, localeId: ae.id, paginationInfo: ee, }, Je, !1, yt ); }, !1 ); } catch {} }, }), [x, o, u, m, l, c, s, g, f] ), S = K( (X, U, J, ae, W = !1, me = !1, ce) => { let fe = b.current; if ( ((b.current = X), (h.current = ae), (p.current = U), y(() => { I1(J, W, me); }), me) ) { rn(m); return; } g((ee) => { f(fe, X, () => rn(m), u, ee); }, ce); }, [u, m, y, g, f] ); _L(b, S); let T = K( async (X, U, J, ae) => { var W, me; let ce = s[X]; if (J) { let ke = new Set(), Jt = (W = ce?.path) !== null && W !== void 0 ? W : "/"; for (let Mn of Jt.matchAll(ro)) { let Ln = Mn[1]; if (Ln === void 0) throw new Error( "A matching path variable should not be undefined" ); ke.add(Ln); } J = Object.fromEntries( Object.entries(J).filter(([Mn]) => ke.has(Mn)) ); } let fe = xg(ce, U), ee = h.current, Je = p.current; if ( HL( { routeId: b.current, pathVariables: ee }, { routeId: X, pathVariables: J } ) ) { I1(fe, ae, !1); let ke = s[X]; if ( ((me = F.history.state) === null || me === void 0 ? void 0 : me.hash) === U || t || !ke ) return; let Jt = v1( X, ke, { currentRoutePath: ke.path, currentPathVariables: ee, pathVariables: J, hash: U, localeId: Je, preserveQueryParams: c, }, u ); return u ? void 0 : await Jt; } if (!ce) return; let Ie = s[b.current]; S( X, Je, fe, J, ae, !1, t ? void 0 : async (ke = !1) => v1( X, ce, { currentRoutePath: Ie?.path, currentPathVariables: ee, hash: U, pathVariables: J, localeId: Je, preserveQueryParams: c, }, !1, ke ) ); }, [s, S, t, c, u] ), R = fC(s), O = b.current, I = h.current, j = oe( () => ({ navigate: T, getRoute: R, currentRouteId: O, currentPathVariables: I, routes: s, collectionUtils: o, preserveQueryParams: c, }), [T, R, O, I, s, o, c] ), z = s[b.current]; if (!z) throw new Error(`Router cannot find route for ${b.current}`); let $ = !x || !z.includedLocales || z.includedLocales.includes(x.id), ie = z.path && I ? Qk(z.path, I) : z.path, H = String(v) + ie; return C(WL, { api: j, children: C(hC.Provider, { value: k, children: he(dC, { children: [ C(YM, { notFoundPage: i, defaultPageStyle: e, forceUpdateKey: d, children: he( xn, { children: [C(F1.Start, {}), $ ? Jm(z.page, e) : i && Jm(i, e)], }, H ), }), C($L, {}), C(F1.End, {}), ], }), }), }); } function nV(e, t) { let n = t ? { behavior: "smooth", block: "start", inline: "nearest" } : void 0; e.scrollIntoView(n); } var vu, Rm, O1; function rV(e) { if (O1 !== e) { vu = {}; for (let [t, { path: n }] of Object.entries(e)) n && (vu[n] = { path: n, depth: iV(n), routeId: t }); (Rm = Object.values(vu)), Rm.sort(({ depth: t }, { depth: n }) => n - t), (O1 = e); } return [vu, Rm]; } function pC(e, t, n = !0, r = []) { let [i, o] = rV(e), s, a, l = t; if (r.length > 0) { let d = l.split("/").find(Boolean); if ( (d && ((s = r.find(({ slug: m }) => m === d)), s && ((a = s.id), (l = l.substring(s.slug.length + 1)))), !a) ) { let m = r.find(({ slug: y }) => y === ""); m && (a = m.id); } } let c = i[l]; if (c) { let d = M1(l, c.path); if (d.isMatch) return { routeId: c.routeId, localeId: a, pathVariables: d.pathVariables, }; } for (let { path: d, routeId: m } of o) { let y = M1(l, d); if (y.isMatch) return { routeId: m, localeId: a, pathVariables: y.pathVariables }; } if (!n) throw new Error("No exact match found for path"); let u = i["/"]; if (u) return { routeId: u.routeId, localeId: a }; let f = Object.keys(e)[0]; if (!f) throw new Error("Router should not have undefined routes"); return { routeId: f, localeId: a }; } function iV(e) { let t = e.replace(/^\/|\/$/gu, ""); return t === "" ? 0 : t.split("/").length; } function M1(e, t) { let n = [], i = oV(t).replace(ro, (c, u) => (n.push(u), "([^/]+)")), o = new RegExp(i + "$"), s = e.match(o); if (!s) return { isMatch: !1 }; if (s.length === 1) return { isMatch: !0 }; let a = {}, l = s.slice(1); for (let c = 0; c < n.length; ++c) { let u = n[c]; if (u === void 0) continue; let f = l[c], d = a[u]; if (d) { if (d !== f) return { isMatch: !1 }; continue; } if (f === void 0) throw new Error("Path variable values cannot be undefined"); a[u] = f; } return { isMatch: !0, pathVariables: a }; } function oV(e) { return e.replace(/[|\\{}()[\]^$+*?.]/gu, "\\$&").replace(/-/gu, "\\x2d"); } var sV = "page"; function L1(e) { return Na(e) && sV in e && e.page !== void 0; } var aV = (() => w.createContext(void 0))(); function df() { var e; let t = Ja(), n = A(aV), r = n ?? t.currentRouteId; if (!r) return; let i = (e = t.getRoute) === null || e === void 0 ? void 0 : e.call(t, r); if (i) return { ...i, id: r, pathVariables: n ? void 0 : t.currentPathVariables }; } var Cg = (() => typeof F < "u" && !tL(Re.userAgent))(); function lV(e, t = !0) { let { getRoute: n } = Ja(); N(() => { if (!(!n || !t || !Cg)) for (let r of e) mC(n(r)); }, [e, n, t]); } async function mC(e) { if (!Cg || !e) return; let t = e.page; if (!(!t || !eC(t))) { await tC(); try { await t.preload(); } catch {} } } var V1 = new Set(); function ja(e, ...t) { V1.has(e) || (V1.add(e), console.warn(e, ...t)); } function cV(e, t, n) { let r = n ? `, use ${n} instead` : "", i = `Deprecation warning: ${e} will be removed in version ${t}${r}.`; ja(i); } var gC = class { constructor() { E(this, "observers", new Set()), E(this, "transactions", {}); } add(e) { this.observers.add(e); let t = !1; return () => { t || ((t = !0), this.remove(e)); }; } remove(e) { this.observers.delete(e); } notify(e, t) { if (t) { let n = this.transactions[t] || e; (n.value = e.value), (this.transactions[t] = n); } else this.callObservers(e); } finishTransaction(e) { let t = this.transactions[e]; return delete this.transactions[e], this.callObservers(t, e); } callObservers(e, t) { let n = []; return ( new Set(this.observers).forEach((r) => { typeof r == "function" ? r(e, t) : (r.update(e, t), n.push(r.finish)); }), n ); } }, lt = (() => { function e(t) { return ( cV( "Animatable()", "2.0.0", "the new animation API (https://www.framer.com/api/animation/)" ), Gn(t) ? t : new fV(t) ); } return ( (e.transaction = (t) => { let n = Math.random(), r = new Set(); t((s, a) => { s.set(a, n), r.add(s); }, n); let o = []; r.forEach((s) => { o.push(...s.finishTransaction(n)); }), o.forEach((s) => { s(n); }); }), (e.getNumber = (t, n = 0) => e.get(t, n)), (e.get = (t, n) => (t == null ? n : Gn(t) ? t.get() : t)), (e.objectToValues = (t) => { if (!t) return t; let n = {}; for (let r in t) { let i = t[r]; Gn(i) ? (n[r] = i.get()) : (n[r] = i); } return n; }), e ); })(), A1 = "onUpdate", D1 = "finishTransaction"; function Gn(e) { return ( e !== null && typeof e == "object" && A1 in e && e[A1] instanceof Function && D1 in e && e[D1] instanceof Function ); } function uV(e, t) { return { interpolate(n, r) { let i = n.get(), o = r.get(), s = lt(i); return (a) => { let l = t.interpolate(i, o)(a); return s.set(l), s; }; }, difference(n, r) { let i = n.get(); return t.difference(i, r.get()); }, }; } var fV = class { constructor(e) { (this.value = e), E(this, "observers", new gC()); } static interpolationFor(e, t) { if (Gn(e)) return uV(e, t); } get() { return this.value; } set(e, t) { let n = this.value; Gn(e) && (e = e.get()), (this.value = e); let r = { value: e, oldValue: n }; this.observers.notify(r, t); } finishTransaction(e) { return this.observers.finishTransaction(e); } onUpdate(e) { return this.observers.add(e); } }; function yu(e, t) { let r = 10 ** Math.round(Math.abs(t)); return Math.round(e * r) / r; } function z1(e, t) { return t === 0 ? Math.round(e) : ((t -= t | 0), t < 0 && (t = 1 - t), Math.round(e - t) + t); } function gn(e, t) { return { x: e, y: t }; } ((e) => { (e.add = (...i) => i.reduce((o, s) => ({ x: o.x + s.x, y: o.y + s.y }), { x: 0, y: 0 })), (e.subtract = (i, o) => ({ x: i.x - o.x, y: i.y - o.y })), (e.multiply = (i, o) => ({ x: i.x * o, y: i.y * o })), (e.divide = (i, o) => ({ x: i.x / o, y: i.y / o })), (e.absolute = (i) => ({ x: Math.abs(i.x), y: Math.abs(i.y) })), (e.reverse = (i) => ({ x: i.x * -1, y: i.y * -1 })), (e.pixelAligned = (i, o = { x: 0, y: 0 }) => ({ x: z1(i.x, o.x), y: z1(i.y, o.y), })), (e.distance = (i, o) => { let s = Math.abs(i.x - o.x), a = Math.abs(i.y - o.y); return Math.sqrt(s * s + a * a); }), (e.angle = (i, o) => (Math.atan2(o.y - i.y, o.x - i.x) * 180) / Math.PI - 90), (e.angleFromX = (i, o) => (Math.atan2(o.y - i.y, o.x - i.x) * 180) / Math.PI), (e.isEqual = (i, o) => i.x === o.x && i.y === o.y), (e.rotationNormalizer = () => { let i; return (o) => { typeof i != "number" && (i = o); let s = i - o, a = Math.abs(s) + 180, l = Math.floor(a / 360); return s < 180 && (o -= l * 360), s > 180 && (o += l * 360), (i = o), o; }; }); function t(i, o) { return { x: (i.x + o.x) / 2, y: (i.y + o.y) / 2 }; } e.center = t; function n(i) { let o = 0, s = 0; i.forEach((c) => { (o += c.x), (s += c.y); }); let a = o / i.length, l = s / i.length; return { x: a, y: l }; } e.centroid = n; function r(i) { let o = e.centroid(i), s = new Map(); for (let a = 0; a < i.length; a++) { let l = i[a]; s.set(l, Math.atan2(l.x - o.x, l.y - o.y)); } return i.sort((a, l) => s.get(a) - s.get(l)); } e.sortClockwise = r; })(gn || (gn = {})); var tg = { aliceblue: "f0f8ff", antiquewhite: "faebd7", aqua: "0ff", aquamarine: "7fffd4", azure: "f0ffff", beige: "f5f5dc", bisque: "ffe4c4", black: "000", blanchedalmond: "ffebcd", blue: "00f", blueviolet: "8a2be2", brown: "a52a2a", burlywood: "deb887", burntsienna: "ea7e5d", cadetblue: "5f9ea0", chartreuse: "7fff00", chocolate: "d2691e", coral: "ff7f50", cornflowerblue: "6495ed", cornsilk: "fff8dc", crimson: "dc143c", cyan: "0ff", darkblue: "00008b", darkcyan: "008b8b", darkgoldenrod: "b8860b", darkgray: "a9a9a9", darkgreen: "006400", darkgrey: "a9a9a9", darkkhaki: "bdb76b", darkmagenta: "8b008b", darkolivegreen: "556b2f", darkorange: "ff8c00", darkorchid: "9932cc", darkred: "8b0000", darksalmon: "e9967a", darkseagreen: "8fbc8f", darkslateblue: "483d8b", darkslategray: "2f4f4f", darkslategrey: "2f4f4f", darkturquoise: "00ced1", darkviolet: "9400d3", deeppink: "ff1493", deepskyblue: "00bfff", dimgray: "696969", dimgrey: "696969", dodgerblue: "1e90ff", firebrick: "b22222", floralwhite: "fffaf0", forestgreen: "228b22", fuchsia: "f0f", gainsboro: "dcdcdc", ghostwhite: "f8f8ff", gold: "ffd700", goldenrod: "daa520", gray: "808080", green: "008000", greenyellow: "adff2f", grey: "808080", honeydew: "f0fff0", hotpink: "ff69b4", indianred: "cd5c5c", indigo: "4b0082", ivory: "fffff0", khaki: "f0e68c", lavender: "e6e6fa", lavenderblush: "fff0f5", lawngreen: "7cfc00", lemonchiffon: "fffacd", lightblue: "add8e6", lightcoral: "f08080", lightcyan: "e0ffff", lightgoldenrodyellow: "fafad2", lightgray: "d3d3d3", lightgreen: "90ee90", lightgrey: "d3d3d3", lightpink: "ffb6c1", lightsalmon: "ffa07a", lightseagreen: "20b2aa", lightskyblue: "87cefa", lightslategray: "789", lightslategrey: "789", lightsteelblue: "b0c4de", lightyellow: "ffffe0", lime: "0f0", limegreen: "32cd32", linen: "faf0e6", magenta: "f0f", maroon: "800000", mediumaquamarine: "66cdaa", mediumblue: "0000cd", mediumorchid: "ba55d3", mediumpurple: "9370db", mediumseagreen: "3cb371", mediumslateblue: "7b68ee", mediumspringgreen: "00fa9a", mediumturquoise: "48d1cc", mediumvioletred: "c71585", midnightblue: "191970", mintcream: "f5fffa", mistyrose: "ffe4e1", moccasin: "ffe4b5", navajowhite: "ffdead", navy: "000080", oldlace: "fdf5e6", olive: "808000", olivedrab: "6b8e23", orange: "ffa500", orangered: "ff4500", orchid: "da70d6", palegoldenrod: "eee8aa", palegreen: "98fb98", paleturquoise: "afeeee", palevioletred: "db7093", papayawhip: "ffefd5", peachpuff: "ffdab9", peru: "cd853f", pink: "ffc0cb", plum: "dda0dd", powderblue: "b0e0e6", purple: "800080", rebeccapurple: "663399", red: "f00", rosybrown: "bc8f8f", royalblue: "4169e1", saddlebrown: "8b4513", salmon: "fa8072", sandybrown: "f4a460", seagreen: "2e8b57", seashell: "fff5ee", sienna: "a0522d", silver: "c0c0c0", skyblue: "87ceeb", slateblue: "6a5acd", slategray: "708090", slategrey: "708090", snow: "fffafa", springgreen: "00ff7f", steelblue: "4682b4", tan: "d2b48c", teal: "008080", thistle: "d8bfd8", tomato: "ff6347", turquoise: "40e0d0", violet: "ee82ee", wheat: "f5deb3", white: "fff", whitesmoke: "f5f5f5", yellow: "ff0", yellowgreen: "9acd32", }; function yi(e, t, n, r = !1) { let [i, o] = t, [s, a] = n, l = o - i; if (l === 0) return (a + s) / 2; let c = a - s; if (c === 0) return s; let u = s + ((e - i) / l) * c; if (r === !0) if (s < a) { if (u < s) return s; if (u > a) return a; } else { if (u > s) return s; if (u < a) return a; } return u; } function ss(e) { return !isNaN(e) && isFinite(e); } function bi(e) { let t = ng(e); return t !== void 0 ? (e.includes("%") ? t / 100 : t) : 0; } function ng(e) { let t = /\d?\.?\d+/u.exec(e); return t ? Number(t[0]) : void 0; } var dV = (() => NM().Hsluv)(), Zt = new dV(); function hV(e, t, n) { return ( (Zt.rgb_r = e / 255), (Zt.rgb_g = t / 255), (Zt.rgb_b = n / 255), Zt.rgbToHsluv(), { h: Zt.hsluv_h, s: Zt.hsluv_s, l: Zt.hsluv_l } ); } function pV(e, t, n, r = 1) { return ( (Zt.hsluv_h = e), (Zt.hsluv_s = t), (Zt.hsluv_l = n), Zt.hsluvToRgb(), { r: Zt.rgb_r * 255, g: Zt.rgb_g * 255, b: Zt.rgb_b * 255, a: r } ); } function bu(e, t, n, r) { let i = Math.round(e), o = Math.round(t * 100), s = Math.round(n * 100); return r === void 0 || r === 1 ? "hsv(" + i + ", " + o + "%, " + s + "%)" : "hsva(" + i + ", " + o + "%, " + s + "%, " + r + ")"; } function mV(e, t, n) { return { r: ss(e) ? Ht(e, 255) * 255 : 0, g: ss(t) ? Ht(t, 255) * 255 : 0, b: ss(n) ? Ht(n, 255) * 255 : 0, }; } function B1(e, t, n, r) { let i = [ Fm(Math.round(e).toString(16)), Fm(Math.round(t).toString(16)), Fm(Math.round(n).toString(16)), ]; return r && i[0].charAt(0) === i[0].charAt(1) && i[1].charAt(0) === i[1].charAt(1) && i[2].charAt(0) === i[2].charAt(1) ? i[0].charAt(0) + i[1].charAt(0) + i[2].charAt(0) : i.join(""); } function Tg(e, t, n) { let r, i, o = Ht(e, 255), s = Ht(t, 255), a = Ht(n, 255), l = Math.max(o, s, a), c = Math.min(o, s, a), u = (i = r = (l + c) / 2); if (l === c) u = i = 0; else { let f = l - c; switch (((i = r > 0.5 ? f / (2 - l - c) : f / (l + c)), l)) { case o: u = (s - a) / f + (s < a ? 6 : 0); break; case s: u = (a - o) / f + 2; break; case a: u = (o - s) / f + 4; break; } u /= 6; } return { h: u * 360, s: i, l: r }; } function Pm(e, t, n) { return ( n < 0 && (n += 1), n > 1 && (n -= 1), n < 1 / 6 ? e + (t - e) * 6 * n : n < 1 / 2 ? t : n < 2 / 3 ? e + (t - e) * (2 / 3 - n) * 6 : e ); } function gV(e, t, n) { let r, i, o; if ( ((e = Ht(e, 360)), (t = Ht(t * 100, 100)), (n = Ht(n * 100, 100)), t === 0) ) r = i = o = n; else { let s = n < 0.5 ? n * (1 + t) : n + t - n * t, a = 2 * n - s; (r = Pm(a, s, e + 1 / 3)), (i = Pm(a, s, e)), (o = Pm(a, s, e - 1 / 3)); } return { r: r * 255, g: i * 255, b: o * 255 }; } function $1(e, t, n) { (e = Ht(e, 255)), (t = Ht(t, 255)), (n = Ht(n, 255)); let r = Math.max(e, t, n), i = Math.min(e, t, n), o = r - i, s, a = r === 0 ? 0 : o / r, l = r; if (r === i) s = 0; else { switch (r) { case e: s = (t - n) / o + (t < n ? 6 : 0); break; case t: s = (n - e) / o + 2; break; case n: s = (e - t) / o + 4; break; } s /= 6; } return { h: s, s: a, v: l }; } function vV(e, t, n) { (e = Ht(e, 360) * 6), (t = Ht(t * 100, 100)), (n = Ht(n * 100, 100)); let r = Math.floor(e), i = e - r, o = n * (1 - t), s = n * (1 - i * t), a = n * (1 - (1 - i) * t), l = r % 6, c = [n, s, o, o, a, n][l], u = [a, n, n, s, o, o][l], f = [o, o, a, n, n, s][l]; return { r: c * 255, g: u * 255, b: f * 255 }; } function Ht(e, t) { let n, r; if ( (typeof t == "string" ? (n = parseFloat(t)) : (n = t), typeof e == "string") ) { yV(e) && (e = "100%"); let i = bV(e); (r = Math.min(n, Math.max(0, parseFloat(e)))), i && (r = Math.floor(r * n) / 100); } else r = e; return Math.abs(r - n) < 1e-6 ? 1 : (r % n) / n; } function yV(e) { return typeof e == "string" && e.includes(".") && parseFloat(e) === 1; } function bV(e) { return typeof e == "string" && e.includes("%"); } function Fm(e) { return e.length === 1 ? "0" + e : "" + e; } var hr = (() => { let e = "[-\\+]?\\d+%?", n = "(?:" + "[-\\+]?\\d*\\.\\d+%?" + ")|(?:" + e + ")", r = "[\\s|\\(]+(" + n + ")[,|\\s]+(" + n + ")[,|\\s]+(" + n + ")\\s*\\)?", i = "[\\s|\\(]+(" + n + ")[,|\\s]+(" + n + ")[,|\\s]+(" + n + ")[,|\\s]+(" + n + ")\\s*\\)?"; return { rgb: new RegExp("rgb" + r), rgba: new RegExp("rgba" + i), hsl: new RegExp("hsl" + r), hsla: new RegExp("hsla" + i), hsv: new RegExp("hsv" + r), hsva: new RegExp("hsva" + i), hex3: /^([\da-f])([\da-f])([\da-f])$/iu, hex6: /^([\da-f]{2})([\da-f]{2})([\da-f]{2})$/iu, hex4: /^#?([\da-f])([\da-f])([\da-f])([\da-f])$/iu, hex8: /^#?([\da-f]{2})([\da-f]{2})([\da-f]{2})([\da-f]{2})$/iu, }; })(); function Eg(e) { if (e.includes("gradient(") || e.includes("var(")) return !1; let t = /^[\s,#]+/u, n = e.replace(t, "").trimEnd().toLowerCase(), r = tg[n]; if ((r && (n = r), n === "transparent")) return { r: 0, g: 0, b: 0, a: 0, format: "name" }; let i; return (i = hr.rgb.exec(n)) ? { r: parseInt(i[1] ?? ""), g: parseInt(i[2] ?? ""), b: parseInt(i[3] ?? ""), a: 1, format: "rgb", } : (i = hr.rgba.exec(n)) ? { r: parseInt(i[1] ?? ""), g: parseInt(i[2] ?? ""), b: parseInt(i[3] ?? ""), a: parseFloat(i[4] ?? ""), format: "rgb", } : (i = hr.hsl.exec(n)) ? { h: parseInt(i[1] ?? ""), s: bi(i[2] ?? ""), l: bi(i[3] ?? ""), a: 1, format: "hsl", } : (i = hr.hsla.exec(n)) ? { h: parseInt(i[1] ?? ""), s: bi(i[2] ?? ""), l: bi(i[3] ?? ""), a: parseFloat(i[4] ?? ""), format: "hsl", } : (i = hr.hsv.exec(n)) ? { h: parseInt(i[1] ?? ""), s: bi(i[2] ?? ""), v: bi(i[3] ?? ""), a: 1, format: "hsv", } : (i = hr.hsva.exec(n)) ? { h: parseInt(i[1] ?? ""), s: bi(i[2] ?? ""), v: bi(i[3] ?? ""), a: parseFloat(i[4] ?? ""), format: "hsv", } : (i = hr.hex8.exec(n)) ? { r: mn(i[1] ?? ""), g: mn(i[2] ?? ""), b: mn(i[3] ?? ""), a: N1(i[4] ?? ""), format: r ? "name" : "hex", } : (i = hr.hex6.exec(n)) ? { r: mn(i[1] ?? ""), g: mn(i[2] ?? ""), b: mn(i[3] ?? ""), a: 1, format: r ? "name" : "hex", } : (i = hr.hex4.exec(n)) ? { r: mn(`${i[1]}${i[1]}`), g: mn(`${i[2]}${i[2]}`), b: mn(`${i[3]}${i[3]}`), a: N1(i[4] + "" + i[4]), format: r ? "name" : "hex", } : (i = hr.hex3.exec(n)) ? { r: mn(`${i[1]}${i[1]}`), g: mn(`${i[2]}${i[2]}`), b: mn(`${i[3]}${i[3]}`), a: 1, format: r ? "name" : "hex", } : !1; } function mn(e) { return parseInt(e, 16); } function N1(e) { return mn(e) / 255; } var j1 = new Map(), Y = (() => { function e(o, s, a, l) { if (typeof o == "string") { let u = j1.get(o); return ( u || ((u = t(o)), u === void 0 ? { ...e("black"), isValid: !1 } : (j1.set(o, u), u)) ); } let c = t(o, s, a, l); return c !== void 0 ? c : { ...e("black"), isValid: !1 }; } function t(o, s, a, l) { if (o === "") return; let c = xV(o, s, a, l); if (c) { let u = { r: c.r, g: c.g, b: c.b, a: c.a, h: c.h, s: c.s, l: c.l, initialValue: typeof o == "string" && c.format !== "hsv" ? o : void 0, roundA: Math.round(100 * c.a) / 100, format: c.format, mix: e.mix, toValue: () => e.toRgbString(u), }; return u; } else return; } let n = { isRGB(o) { return o === "rgb" || o === "rgba"; }, isHSL(o) { return o === "hsl" || o === "hsla"; }, }; (e.inspect = (o, s) => o.format === "hsl" ? `<${o.constructor.name} h:${o.h} s:${o.s} l:${o.l} a:${o.a}>` : o.format === "hex" || o.format === "name" ? `<${o.constructor.name} "${s}">` : `<${o.constructor.name} r:${o.r} g:${o.g} b:${o.b} a:${o.a}>`), (e.isColor = (o) => typeof o == "string" ? e.isColorString(o) : e.isColorObject(o)), (e.isColorString = (o) => (typeof o == "string" ? Eg(o) !== !1 : !1)), (e.isColorObject = (o) => o && typeof o != "string" && typeof o.r == "number" && typeof o.g == "number" && typeof o.b == "number" && typeof o.h == "number" && typeof o.s == "number" && typeof o.l == "number" && typeof o.a == "number" && typeof o.roundA == "number" && typeof o.format == "string"), (e.toString = (o) => e.toRgbString(o)), (e.toHex = (o, s = !1) => B1(o.r, o.g, o.b, s)), (e.toHexString = (o, s = !1) => `#${e.toHex(o, s)}`), (e.toRgbString = (o) => o.a === 1 ? "rgb(" + Math.round(o.r) + ", " + Math.round(o.g) + ", " + Math.round(o.b) + ")" : "rgba(" + Math.round(o.r) + ", " + Math.round(o.g) + ", " + Math.round(o.b) + ", " + o.roundA + ")"), (e.toHusl = (o) => ({ ...hV(o.r, o.g, o.b), a: o.roundA })), (e.toHslString = (o) => { let s = e.toHsl(o), a = Math.round(s.h), l = Math.round(s.s * 100), c = Math.round(s.l * 100); return o.a === 1 ? "hsl(" + a + ", " + l + "%, " + c + "%)" : "hsla(" + a + ", " + l + "%, " + c + "%, " + o.roundA + ")"; }), (e.toHsv = (o) => { let s = $1(o.r, o.g, o.b); return { h: s.h * 360, s: s.s, v: s.v, a: o.a }; }), (e.toHsvString = (o) => { let s = $1(o.r, o.g, o.b), a = Math.round(s.h * 360), l = Math.round(s.s * 100), c = Math.round(s.v * 100); return o.a === 1 ? "hsv(" + a + ", " + l + "%, " + c + "%)" : "hsva(" + a + ", " + l + "%, " + c + "%, " + o.roundA + ")"; }), (e.toName = (o) => { if (o.a === 0) return "transparent"; if (o.a < 1) return !1; let s = B1(o.r, o.g, o.b, !0); for (let a of Object.keys(tg)) if (tg[a] === s) return a; return !1; }), (e.toHsl = (o) => ({ h: Math.round(o.h), s: o.s, l: o.l, a: o.a })), (e.toRgb = (o) => ({ r: Math.round(o.r), g: Math.round(o.g), b: Math.round(o.b), a: o.a, })), (e.brighten = (o, s = 10) => { let a = e.toRgb(o); return ( (a.r = Math.max( 0, Math.min(255, a.r - Math.round(255 * -(s / 100))) )), (a.g = Math.max( 0, Math.min(255, a.g - Math.round(255 * -(s / 100))) )), (a.b = Math.max( 0, Math.min(255, a.b - Math.round(255 * -(s / 100))) )), e(a) ); }), (e.lighten = (o, s = 10) => { let a = e.toHsl(o); return (a.l += s / 100), (a.l = Math.min(1, Math.max(0, a.l))), e(a); }), (e.darken = (o, s = 10) => { let a = e.toHsl(o); return (a.l -= s / 100), (a.l = Math.min(1, Math.max(0, a.l))), e(a); }), (e.saturate = (o, s = 10) => { let a = e.toHsl(o); return (a.s += s / 100), (a.s = Math.min(1, Math.max(0, a.s))), e(a); }), (e.desaturate = (o, s = 10) => { let a = e.toHsl(o); return (a.s -= s / 100), (a.s = Math.min(1, Math.max(0, a.s))), e(a); }), (e.grayscale = (o) => e.desaturate(o, 100)), (e.hueRotate = (o, s) => { let a = e.toHsl(o); return (a.h += s), (a.h = a.h > 360 ? a.h - 360 : a.h), e(a); }), (e.alpha = (o, s = 1) => e({ r: o.r, g: o.g, b: o.b, a: s })), (e.transparent = (o) => e.alpha(o, 0)), (e.multiplyAlpha = (o, s = 1) => e({ r: o.r, g: o.g, b: o.b, a: o.a * s })), (e.interpolate = (o, s, a = "rgb") => { if (!e.isColorObject(o) || !e.isColorObject(s)) throw new TypeError( "Both arguments for Color.interpolate must be Color objects" ); return (l) => e.mixAsColor(o, s, l, !1, a); }), (e.mix = (o, s, { model: a = "rgb" } = {}) => { let l = typeof o == "string" ? e(o) : o, c = e.interpolate(l, s, a); return (u) => e.toRgbString(c(u)); }), (e.mixAsColor = (o, s, a = 0.5, l = !1, c = "rgb") => { let u = null; if (n.isRGB(c)) u = e({ r: yi(a, [0, 1], [o.r, s.r], l), g: yi(a, [0, 1], [o.g, s.g], l), b: yi(a, [0, 1], [o.b, s.b], l), a: yi(a, [0, 1], [o.a, s.a], l), }); else { let f, d; n.isHSL(c) ? ((f = e.toHsl(o)), (d = e.toHsl(s))) : ((f = e.toHusl(o)), (d = e.toHusl(s))), f.s === 0 ? (f.h = d.h) : d.s === 0 && (d.h = f.h); let m = f.h, y = d.h, g = y - m; g > 180 ? (g = y - 360 - m) : g < -180 && (g = y + 360 - m); let b = { h: yi(a, [0, 1], [m, m + g], l), s: yi(a, [0, 1], [f.s, d.s], l), l: yi(a, [0, 1], [f.l, d.l], l), a: yi(a, [0, 1], [o.a, s.a], l), }; n.isHSL(c) ? (u = e(b)) : (u = e(pV(b.h, b.s, b.l, b.a))); } return u; }), (e.random = (o = 1) => { function s() { return Math.floor(Math.random() * 255); } return e("rgba(" + s() + ", " + s() + ", " + s() + ", " + o + ")"); }), (e.grey = (o = 0.5, s = 1) => ( (o = Math.floor(o * 255)), e("rgba(" + o + ", " + o + ", " + o + ", " + s + ")") )), (e.gray = e.grey), (e.rgbToHsl = (o, s, a) => Tg(o, s, a)), (e.isValidColorProperty = (o, s) => !!( (o.toLowerCase().slice(-5) === "color" || o === "fill" || o === "stroke") && typeof s == "string" && e.isColorString(s) )), (e.difference = (o, s) => { let a = (o.r + s.r) / 2, l = o.r - s.r, c = o.g - s.g, u = o.b - s.b, f = Math.pow(l, 2), d = Math.pow(c, 2), m = Math.pow(u, 2); return Math.sqrt(2 * f + 4 * d + 3 * m + (a * (f - m)) / 256); }), (e.equal = (o, s, a = 0.1) => !( Math.abs(o.r - s.r) >= a || Math.abs(o.g - s.g) >= a || Math.abs(o.b - s.b) >= a || Math.abs(o.a - s.a) * 256 >= a )); let r = ko([0, 255], [0, 1]); function i(o) { o = r(o); let s = Math.abs(o); return s < 0.04045 ? o / 12.92 : (Math.sign(o) || 1) * Math.pow((s + 0.055) / 1.055, 2.4); } return ( (e.luminance = (o) => { let { r: s, g: a, b: l } = e.toRgb(o); return 0.2126 * i(s) + 0.7152 * i(a) + 0.0722 * i(l); }), (e.contrast = (o, s) => { let a = e.luminance(o), l = e.luminance(s); return (Math.max(a, l) + 0.05) / (Math.min(a, l) + 0.05); }), e ); })(); function xV(e, t, n, r = 1) { let i; return ( typeof e == "number" && !Number.isNaN(e) && typeof t == "number" && !Number.isNaN(t) && typeof n == "number" && !Number.isNaN(n) ? (i = rg({ r: e, g: t, b: n, a: r })) : typeof e == "string" ? (i = wV(e)) : typeof e == "object" && (e.hasOwnProperty("r") && e.hasOwnProperty("g") && e.hasOwnProperty("b") ? (i = rg(e)) : (i = vC(e))), i ); } function wV(e) { let t = Eg(e); if (t) return t.format === "hsl" ? vC(t) : t.format === "hsv" ? SV(t) : rg(t); } function SV(e) { let t = vV(e.h, e.s, e.v); return { ...Tg(t.r, t.g, t.b), ...t, format: "rgb", a: e.a !== void 0 ? yC(e.a) : 1, }; } function rg(e) { let t = mV(e.r, e.g, e.b); return { ...Tg(t.r, t.g, t.b), ...t, format: "rgb", a: e.a !== void 0 ? yC(e.a) : 1, }; } function vC(e) { let t, n, r, i = { r: 0, g: 0, b: 0 }, o = { h: 0, s: 0, l: 0 }; return ( (t = ss(e.h) ? e.h : 0), (t = (t + 360) % 360), (n = ss(e.s) ? e.s : 1), typeof e.s == "string" && (n = ng(e.s)), (r = ss(e.l) ? e.l : 0.5), typeof e.l == "string" && (r = ng(e.l)), (i = gV(t, n, r)), (o = { h: t, s: n, l: r }), { ...i, ...o, a: e.a === void 0 ? 1 : e.a, format: "hsl" } ); } function yC(e) { return ( (e = parseFloat(e)), e < 0 && (e = 0), (isNaN(e) || e > 1) && (e = 1), e ); } var H1 = (e) => e instanceof Dl; var kV = (() => jM().EventEmitter)(), CV = class { constructor() { E(this, "_emitter", new kV()); } eventNames() { return this._emitter.eventNames(); } eventListeners() { let e = {}; for (let t of this._emitter.eventNames()) e[t] = this._emitter.listeners(t); return e; } on(e, t) { this.addEventListener(e, t, !1, !1, this); } off(e, t) { this.removeEventListeners(e, t); } once(e, t) { this.addEventListener(e, t, !0, !1, this); } unique(e, t) { this.addEventListener(e, t, !1, !0, this); } addEventListener(e, t, n, r, i) { if (r) { for (let o of this._emitter.eventNames()) if (t === this._emitter.listeners(o)) return; } n === !0 ? this._emitter.once(e, t, i) : this._emitter.addListener(e, t, i); } removeEventListeners(e, t) { e ? this._emitter.removeListener(e, t) : this.removeAllEventListeners(); } removeAllEventListeners() { this._emitter.removeAllListeners(); } countEventListeners(e, t) { if (e) return this._emitter.listeners(e).length; { let n = 0; for (let r of this._emitter.eventNames()) n += this._emitter.listeners(r).length; return n; } } emit(e, ...t) { this._emitter.emit(e, ...t); } }, TV = { addEventListener: () => {}, removeEventListener: () => {}, dispatchEvent: () => !1, ResizeObserver: void 0, onpointerdown: !1, onpointermove: !1, onpointerup: !1, ontouchstart: !1, ontouchmove: !1, ontouchend: !1, onmousedown: !1, onmousemove: !1, onmouseup: !1, devicePixelRatio: 1, scrollX: 0, scrollY: 0, location: { href: "" }, document: { cookie: "" }, setTimeout: () => 0, clearTimeout: () => {}, setInterval: () => 0, clearInterval: () => {}, requestAnimationFrame: () => 0, cancelAnimationFrame: () => {}, requestIdleCallback: () => 0, getSelection: () => null, matchMedia: (e) => ({ matches: !1, media: e, onchange: () => {}, addEventListener: () => {}, removeEventListener: () => {}, addListener: () => {}, removeListener: () => {}, dispatchEvent: () => !1, }), innerHeight: 0, innerWidth: 0, SVGSVGElement: {}, open: function (e, t, n) {}, }, ct = typeof F > "u" ? TV : F, EV = (e) => { setTimeout(e, 1 / 60); }, RV = (() => ct.requestAnimationFrame || EV)(), W1 = (e) => RV(e), Oa = (() => 1 / 60)(), PV = class extends CV { constructor(e = !1) { super(), E(this, "_started", !1), E(this, "_frame", 0), E(this, "_frameTasks", []), E(this, "tick", () => { this._started && (W1(this.tick), this.emit("update", this._frame, Oa), this.emit("render", this._frame, Oa), this._processFrameTasks(), this._frame++); }), e && this.start(); } addFrameTask(e) { this._frameTasks.push(e); } _processFrameTasks() { var e; let t = this._frameTasks, n = t.length; if (n !== 0) { for (let r = 0; r < n; r++) (e = t[r]) == null || e.call(t); t.length = 0; } } static set TimeStep(e) { Oa = e; } static get TimeStep() { return Oa; } start() { return this._started ? this : ((this._frame = 0), (this._started = !0), W1(this.tick), this); } stop() { return (this._started = !1), this; } get frame() { return this._frame; } get time() { return this._frame * Oa; } }, bC = new PV(), ig = { target: "PREVIEW", zoom: 1 }; var pe = { canvas: "CANVAS", export: "EXPORT", thumbnail: "THUMBNAIL", preview: "PREVIEW", current: () => ig.target, hasRestrictions: () => { let e = ig.target; return e === "CANVAS" || e === "EXPORT"; }, }; var xu = (e) => ({ correct: (t, { delta: n, treeScale: r }) => { if ((typeof t == "string" && (t = parseFloat(t)), t === 0)) return "0px"; let i = t; return ( n && r && ((i = Math.round(t / n[e].scale / r[e])), (i = Math.max(i, 1))), i + "px" ); }, }); qd({ borderTopWidth: xu("y"), borderLeftWidth: xu("x"), borderRightWidth: xu("x"), borderBottomWidth: xu("y"), }); function D(e, ...t) { var n, r; if (e) return; let i = Error("Assertion Error" + (t.length > 0 ? ": " + t.join(" ") : "")); if (i.stack) try { let o = i.stack.split(` `); (n = o[1]) != null && n.includes("assert") ? (o.splice(1, 1), (i.stack = o.join(` `))) : (r = o[0]) != null && r.includes("assert") && (o.splice(0, 1), (i.stack = o.join(` `))); } catch {} throw i; } function Se(e, t) { throw ( t || new Error( e ? `Unexpected value: ${e}` : "Application entered invalid state" ) ); } var ls = w.createContext({ getLayoutId: (e) => null, persistLayoutIdCache: () => {}, top: !1, enabled: !0, }); function FV({ children: e }) { if (A(ls).top) return C(ot, { children: e }); let n = V({ byId: {}, byName: {}, byLastId: {}, byPossibleId: {}, byLastName: {}, byLayoutId: {}, count: { byId: {}, byName: {} }, }), r = V({ byId: {}, byName: {}, byLastId: {}, byPossibleId: {}, byLastName: {}, byLayoutId: {}, }), i = V(new Set()).current, o = K(({ id: l, name: c, duplicatedFrom: u }) => { if (!l) return null; let f = c ? "byName" : "byId", d = n.current[f][l]; if (d) return d; let m = c || l; if ( !u && !i.has(m) && (!n.current.byLayoutId[m] || n.current.byLayoutId[m] === m) ) return ( n.current.count[f][m] === void 0 && ((n.current.count[f][m] = 0), (n.current.byLayoutId[m] = m), (r.current[f][l] = m)), i.add(m), m ); let y; if (u?.length) for (let S = u.length - 1; S >= 0; S--) { let T = u[S]; D(!!T, "duplicatedId must be defined"); let R = n.current[f][T], O = n.current.byLastId[T]; if (O && !y) { let z = n.current.byLayoutId[O], $ = !z || z === c; O && !i.has(O) && (!c || $) && (y = [O, T]); } let I = R ? n.current.byLayoutId[R] : void 0, j = !I || I === c; if (R && !i.has(R) && (!c || j)) return ( (r.current[f][l] = R), (r.current.byLastId[T] = R), i.add(R), R ); } let g = n.current.byLastId[l]; if (g && !i.has(g)) return i.add(g), (r.current.byId[l] = g), g; if (y) { let [S, T] = y; return (r.current[f][l] = S), (r.current.byLastId[T] = S), i.add(S), S; } let b = n.current.byPossibleId[l]; if (b && !i.has(b)) return i.add(b), (r.current.byId[l] = b), b; let h = u?.[0], p = c || h || l, v = (n.current.count[f][p] ?? -1) + 1, { layoutId: x, value: k } = _V(p, v, i); if ( ((n.current.count[f][p] = k), (r.current[f][l] = x), u?.length && !c) ) { let S = u[u.length - 1]; if ((S && (r.current.byLastId[S] = x), u.length > 1)) for (let T = 0; T < u.length - 1; T++) { let R = u[T]; R !== void 0 && (r.current.byPossibleId[R] || (r.current.byPossibleId[R] = x)); } } return (r.current.byLayoutId[x] = m), i.add(x), x; }, []), s = K(() => { (n.current = { byId: { ...n.current.byId, ...r.current.byId }, byLastId: { ...n.current.byLastId, ...r.current.byLastId }, byPossibleId: { ...n.current.byPossibleId, ...r.current.byPossibleId }, byName: { ...n.current.byName, ...r.current.byName }, byLastName: { ...n.current.byLastName, ...r.current.byLastName }, byLayoutId: { ...n.current.byLayoutId, ...r.current.byLayoutId }, count: { ...n.current.count, byName: {} }, }), (r.current = { byId: {}, byName: {}, byLastId: {}, byPossibleId: {}, byLastName: {}, byLayoutId: {}, }), i.clear(); }, []), a = V({ getLayoutId: o, persistLayoutIdCache: s, top: !0, enabled: !0, }).current; return C(ls.Provider, { value: a, children: e }); } function _V(e, t, n) { let r = t, i = r ? `${e}-${r}` : e; for (; n.has(i); ) r++, (i = `${e}-${r}`); return { layoutId: i, value: r }; } function IV({ enabled: e = !0, ...t }) { let n = A(ls), r = oe(() => ({ ...n, enabled: e }), [e]); return C(ls.Provider, { ...t, value: r }); } function vt(e) { let t = V(null); return t.current === null && (t.current = e()), t.current; } var OV = { background: void 0, display: "flex", flexDirection: "column", justifyContent: "center", alignItems: "center", lineHeight: "1.4em", textOverflow: "ellipsis", overflow: "hidden", minHeight: 0, width: "100%", height: "100%", }, MV = (() => ({ ...OV, border: "1px solid rgba(149, 149, 149, 0.15)", borderRadius: 6, fontSize: "12px", backgroundColor: "rgba(149, 149, 149, 0.1)", color: "#a5a5a5", }))(), xC = { overflow: "hidden", whiteSpace: "nowrap", textOverflow: "ellipsis", maxWidth: "100%", flexShrink: 0, padding: "0 10px", }, LV = (() => ({ ...xC, fontWeight: 500 }))(), VV = (() => ({ ...xC, whiteSpace: "pre", maxHeight: "calc(50% - calc(20px * var(--framerInternalCanvas-canvasPlaceholderContentScaleFactor, 1)))", WebkitMaskImage: "linear-gradient(to bottom, black 80%, transparent 100%)", }))(); function BH(e) { let { error: t, file: n } = e, r = n ? `Error in ${AV(n)}` : "Error", i = t instanceof Error ? t.message : "" + t; return he("div", { style: MV, children: [ C("div", { className: "text", style: LV, children: r }), i && C("div", { className: "text", style: VV, children: i }), ], }); } function AV(e) { return e.startsWith("./") ? e.replace("./", "") : e; } function re(e) { return typeof e == "number" && isFinite(e); } function DV(e) { return !e || (!Object.keys(e).length && e.constructor === Object); } function Fu(e) { return typeof e != "string" && typeof e != "number"; } function _u(e) { return e !== null && typeof e < "u" && typeof e != "boolean" && !DV(e); } function zV(e) { return e * (Math.PI / 180); } var In = (() => { function e(t, n) { return { a: t, b: n }; } return ( (e.offset = (t, n) => { let r = gn.angleFromX(t.a, t.b), i = zV(r), o = n * Math.sin(i), s = n * Math.cos(i); return e( { x: t.a.x + o, y: t.a.y - s }, { x: t.b.x + o, y: t.b.y - s } ); }), (e.intersection = (t, n, r) => { let i = t.a.x, o = t.a.y, s = t.b.x, a = t.b.y, l = n.a.x, c = n.a.y, u = n.b.x, f = n.b.y, d = (u - l) * (c - o) - (f - c) * (l - i), m = (u - l) * (a - o) - (f - c) * (s - i), y = (s - i) * (c - o) - (a - o) * (l - i); if ((d === 0 && m === 0) || m === 0) return null; let g = d / m, b = y / m; return r && (g < 0 || g > 1 || b < 0 || b > 1) ? null : { x: i + g * (s - i), y: o + g * (a - o) }; }), (e.intersectionAngle = (t, n) => { let r = t.b.x - t.a.x, i = t.b.y - t.a.y, o = n.b.x - n.a.x, s = n.b.y - n.a.y; return Math.atan2(r * s - i * o, r * o + i * s) * (180 / Math.PI); }), (e.isOrthogonal = (t) => t.a.x === t.b.x || t.a.y === t.b.y), (e.perpendicular = (t, n) => { let r = t.a.x - t.b.x, i = t.a.y - t.b.y, o = gn(n.x - i, n.y + r); return e(o, n); }), (e.projectPoint = (t, n) => { let r = e.perpendicular(t, n); return e.intersection(t, r); }), (e.pointAtPercentDistance = (t, n) => { let r = e.distance(t), i = (n * r) / r; return { x: i * t.b.x + (1 - i) * t.a.x, y: i * t.b.y + (1 - i) * t.a.y, }; }), (e.distance = (t) => gn.distance(t.a, t.b)), e ); })(), ne = { equals: function (e, t) { return e === t ? !0 : !e || !t ? !1 : e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height; }, atOrigin: (e) => ({ ...e, x: 0, y: 0 }), fromTwoPoints: (e, t) => ({ x: Math.min(e.x, t.x), y: Math.min(e.y, t.y), width: Math.abs(e.x - t.x), height: Math.abs(e.y - t.y), }), fromRect: (e) => ({ x: e.left, y: e.top, width: e.right - e.left, height: e.bottom - e.top, }), multiply: (e, t) => ({ x: e.x * t, y: e.y * t, width: e.width * t, height: e.height * t, }), divide: (e, t) => ne.multiply(e, 1 / t), offset: (e, t) => { let n = typeof t.x == "number" ? t.x : 0, r = typeof t.y == "number" ? t.y : 0; return { ...e, x: e.x + n, y: e.y + r }; }, inflate: (e, t) => { if (t === 0) return e; let n = 2 * t; return { x: e.x - t, y: e.y - t, width: e.width + n, height: e.height + n, }; }, pixelAligned: (e) => { let t = Math.round(e.x), n = Math.round(e.y), r = Math.round(e.x + e.width), i = Math.round(e.y + e.height), o = Math.max(r - t, 0), s = Math.max(i - n, 0); return { x: t, y: n, width: o, height: s }; }, halfPixelAligned: (e) => { let t = Math.round(e.x * 2) / 2, n = Math.round(e.y * 2) / 2, r = Math.round((e.x + e.width) * 2) / 2, i = Math.round((e.y + e.height) * 2) / 2, o = Math.max(r - t, 1), s = Math.max(i - n, 1); return { x: t, y: n, width: o, height: s }; }, round: (e, t = 0) => { let n = yu(e.x, t), r = yu(e.y, t), i = yu(e.width, t), o = yu(e.height, t); return { x: n, y: r, width: i, height: o }; }, roundToOutside: (e) => { let t = Math.floor(e.x), n = Math.floor(e.y), r = Math.ceil(e.x + e.width), i = Math.ceil(e.y + e.height), o = Math.max(r - t, 0), s = Math.max(i - n, 0); return { x: t, y: n, width: o, height: s }; }, minX: (e) => e.x, maxX: (e) => e.x + e.width, minY: (e) => e.y, maxY: (e) => e.y + e.height, positions: (e) => ({ minX: e.x, midX: e.x + e.width / 2, maxX: ne.maxX(e), minY: e.y, midY: e.y + e.height / 2, maxY: ne.maxY(e), }), center: (e) => ({ x: e.x + e.width / 2, y: e.y + e.height / 2 }), boundingRectFromPoints: (e) => { let t = 1 / 0, n = -1 / 0, r = 1 / 0, i = -1 / 0; for (let o = 0; o < e.length; o++) { let s = e[o]; (t = Math.min(t, s.x)), (n = Math.max(n, s.x)), (r = Math.min(r, s.y)), (i = Math.max(i, s.y)); } return { x: t, y: r, width: n - t, height: i - r }; }, fromPoints: (e) => { let [t, n, r, i] = e, { x: o, y: s } = t, a = gn.distance(t, n), l = gn.distance(t, i); return { x: o, y: s, width: a, height: l }; }, merge: (...e) => { let t = { x: Math.min(...e.map(ne.minX)), y: Math.min(...e.map(ne.minY)), }, n = { x: Math.max(...e.map(ne.maxX)), y: Math.max(...e.map(ne.maxY)) }; return ne.fromTwoPoints(t, n); }, intersection: (e, t) => { let n = Math.max(e.x, t.x), r = Math.min(e.x + e.width, t.x + t.width), i = Math.max(e.y, t.y), o = Math.min(e.y + e.height, t.y + t.height); return { x: n, y: i, width: r - n, height: o - i }; }, points: (e) => [ { x: ne.minX(e), y: ne.minY(e) }, { x: ne.minX(e), y: ne.maxY(e) }, { x: ne.maxX(e), y: ne.minY(e) }, { x: ne.maxX(e), y: ne.maxY(e) }, ], pointsAtOrigin: (e) => [ { x: 0, y: 0 }, { x: e.width, y: 0 }, { x: e.width, y: e.height }, { x: 0, y: e.height }, ], transform: (e, t) => { let { x: n, y: r } = t.transformPoint({ x: e.x, y: e.y }), { x: i, y: o } = t.transformPoint({ x: e.x + e.width, y: e.y }), { x: s, y: a } = t.transformPoint({ x: e.x + e.width, y: e.y + e.height, }), { x: l, y: c } = t.transformPoint({ x: e.x, y: e.y + e.height }), u = Math.min(n, i, s, l), f = Math.max(n, i, s, l) - u, d = Math.min(r, o, a, c), m = Math.max(r, o, a, c) - d; return { x: u, y: d, width: f, height: m }; }, containsPoint: (e, t) => !( t.x < ne.minX(e) || t.x > ne.maxX(e) || t.y < ne.minY(e) || t.y > ne.maxY(e) || isNaN(e.x) || isNaN(e.y) ), containsRect: (e, t) => { for (let n of ne.points(t)) if (!ne.containsPoint(e, n)) return !1; return !0; }, toCSS: (e) => ({ display: "block", transform: `translate(${e.x}px, ${e.y}px)`, width: `${e.width}px`, height: `${e.height}px`, }), inset: (e, t) => ({ x: e.x + t, y: e.y + t, width: Math.max(0, e.width - 2 * t), height: Math.max(0, e.height - 2 * t), }), intersects: (e, t) => !( t.x >= ne.maxX(e) || ne.maxX(t) <= e.x || t.y >= ne.maxY(e) || ne.maxY(t) <= e.y ), overlapHorizontally: (e, t) => { let n = ne.maxX(e), r = ne.maxX(t); return n > t.x && r > e.x; }, overlapVertically: (e, t) => { let n = ne.maxY(e), r = ne.maxY(t); return n > t.y && r > e.y; }, doesNotIntersect: (e, t) => t.find((n) => ne.intersects(n, e)) === void 0, isEqual: (e, t) => ne.equals(e, t), cornerPoints: (e) => { let t = e.x, n = e.x + e.width, r = e.y, i = e.y + e.height; return [ { x: t, y: r }, { x: n, y: r }, { x: n, y: i }, { x: t, y: i }, ]; }, midPoints: (e) => { let t = e.x, n = e.x + e.width / 2, r = e.x + e.width, i = e.y, o = e.y + e.height / 2, s = e.y + e.height; return [ { x: n, y: i }, { x: r, y: o }, { x: n, y: s }, { x: t, y: o }, ]; }, pointDistance: (e, t) => { let n = 0, r = 0; return ( t.x < e.x ? (n = e.x - t.x) : t.x > ne.maxX(e) && (n = t.x - ne.maxX(e)), t.y < e.y ? (r = e.y - t.y) : t.y > ne.maxY(e) && (r = t.y - ne.maxY(e)), gn.distance({ x: n, y: r }, { x: 0, y: 0 }) ); }, fromAny: (e, t = { x: 0, y: 0, width: 0, height: 0 }) => ({ x: e.x || t.x, y: e.y || t.y, width: e.width || t.width, height: e.height || t.height, }), delta: (e, t) => { let n = { x: ne.minX(e), y: ne.minY(e) }, r = { x: ne.minX(t), y: ne.minY(t) }; return { x: n.x - r.x, y: n.y - r.y }; }, withMinSize: (e, t) => { let { width: n, height: r } = t, i = e.width - n, o = e.height - r; return { width: Math.max(e.width, n), height: Math.max(e.height, r), x: e.width < n ? e.x + i / 2 : e.x, y: e.height < r ? e.y + o / 2 : e.y, }; }, anyPointsOutsideRect: (e, t) => { let n = ne.minX(e), r = ne.minY(e), i = ne.maxX(e), o = ne.maxY(e); for (let s of t) if (s.x < n || s.x > i || s.y < r || s.y > o) return !0; return !1; }, edges: (e) => { let [t, n, r, i] = ne.cornerPoints(e); return [In(t, n), In(n, r), In(r, i), In(i, t)]; }, rebaseRectOnto: (e, t, n, r) => { let i = { ...e }; switch (n) { case "bottom": case "top": switch (r) { case "start": i.x = t.x; break; case "center": i.x = t.x + t.width / 2 - e.width / 2; break; case "end": i.x = t.x + t.width - e.width; break; default: Se(r); } break; case "left": i.x = t.x - e.width; break; case "right": i.x = t.x + t.width; break; default: Se(n); } switch (n) { case "left": case "right": switch (r) { case "start": i.y = t.y; break; case "center": i.y = t.y + t.height / 2 - e.height / 2; break; case "end": i.y = t.y + t.height - e.height; break; default: Se(r); } break; case "top": i.y = t.y - e.height; break; case "bottom": i.y = t.y + t.height; break; default: Se(n); } return i; }, }; var wC = { quickfix: (e) => ( (e.widthType === 2 || e.heightType === 2) && (e.aspectRatio = null), re(e.aspectRatio) && (e.left && e.right && (e.widthType = 0), e.top && e.bottom && (e.heightType = 0), e.left && e.right && e.top && e.bottom && (e.bottom = !1), e.widthType !== 0 && e.heightType !== 0 && (e.heightType = 0)), e.left && e.right && ((e.fixedSize || e.widthType === 2 || re(e.maxWidth)) && (e.right = !1), (e.widthType = 0)), e.top && e.bottom && ((e.fixedSize || e.heightType === 2 || re(e.maxHeight)) && (e.bottom = !1), (e.heightType = 0)), e ), }; function $u(e) { if (typeof e == "string") { let t = e.trim(); if (t === "auto") return 2; if (t.endsWith("fr")) return 3; if (t.endsWith("%")) return 1; if (t.endsWith("vw") || t.endsWith("vh")) return 4; } return 0; } var SC = { fromProperties: (e) => { let { left: t, right: n, top: r, bottom: i, width: o, height: s, centerX: a, centerY: l, aspectRatio: c, autoSize: u, } = e, f = wC.quickfix({ left: re(t) || Gn(t), right: re(n) || Gn(n), top: re(r) || Gn(r), bottom: re(i) || Gn(i), widthType: $u(o), heightType: $u(s), aspectRatio: c || null, fixedSize: u === !0, }), d = null, m = null, y = 0, g = 0; if (f.widthType !== 0 && typeof o == "string") { let p = parseFloat(o); o.endsWith("fr") ? ((y = 3), (d = p)) : o === "auto" ? (y = 2) : ((y = 1), (d = p / 100)); } else o !== void 0 && typeof o != "string" && (d = lt.getNumber(o)); if (f.heightType !== 0 && typeof s == "string") { let p = parseFloat(s); s.endsWith("fr") ? ((g = 3), (m = p)) : s === "auto" ? (g = 2) : ((g = 1), (m = parseFloat(s) / 100)); } else s !== void 0 && typeof s != "string" && (m = lt.getNumber(s)); let b = 0.5, h = 0.5; return ( a && (b = parseFloat(a) / 100), l && (h = parseFloat(l) / 100), { left: f.left ? lt.getNumber(t) : null, right: f.right ? lt.getNumber(n) : null, top: f.top ? lt.getNumber(r) : null, bottom: f.bottom ? lt.getNumber(i) : null, widthType: y, heightType: g, width: d, height: m, aspectRatio: f.aspectRatio || null, centerAnchorX: b, centerAnchorY: h, } ); }, toSize: (e, t, n, r) => { let i = null, o = null, s = t?.sizing ? lt.getNumber(t?.sizing.width) : null, a = t?.sizing ? lt.getNumber(t?.sizing.height) : null, l = U1(e.left, e.right); if (s && re(l)) i = s - l; else if (n && e.widthType === 2) i = n.width; else if (re(e.width)) switch (e.widthType) { case 0: i = e.width; break; case 3: i = r ? (r.freeSpaceInParent.width / r.freeSpaceUnitDivisor.width) * e.width : null; break; case 1: case 4: s && (i = s * e.width); break; case 2: break; default: Se(e.widthType); } let c = U1(e.top, e.bottom); if (a && re(c)) o = a - c; else if (n && e.heightType === 2) o = n.height; else if (re(e.height)) switch (e.heightType) { case 0: o = e.height; break; case 3: o = r ? (r.freeSpaceInParent.height / r.freeSpaceUnitDivisor.height) * e.height : null; break; case 1: case 4: a && (o = a * e.height); break; case 2: break; default: Se(e.heightType); } return HV(i, o, e, { height: a ?? 0, width: s ?? 0 }, t?.viewport); }, toRect: (e, t = null, n = null, r = !1, i = null) => { let o = e.left || 0, s = e.top || 0, { width: a, height: l } = SC.toSize(e, t, n, i), c = t?.positioning ?? null, u = c ? lt.getNumber(c.width) : null, f = c ? lt.getNumber(c.height) : null; e.left !== null ? (o = e.left) : u && e.right !== null ? (o = u - e.right - a) : u && (o = e.centerAnchorX * u - a / 2), e.top !== null ? (s = e.top) : f && e.bottom !== null ? (s = f - e.bottom - l) : f && (s = e.centerAnchorY * f - l / 2); let d = { x: o, y: s, width: a, height: l }; return r ? ne.pixelAligned(d) : d; }, }, BV = 200, $V = 200; function Nu(e, t, n, r) { if (typeof t == "string") { if (t.endsWith("%") && n) switch (e) { case "maxWidth": case "minWidth": return (parseFloat(t) / 100) * n.width; case "maxHeight": case "minHeight": return (parseFloat(t) / 100) * n.height; default: break; } if (t.endsWith("vh") && r) switch (e) { case "maxWidth": case "minWidth": return (parseFloat(t) / 100) * r.width; case "maxHeight": case "minHeight": return (parseFloat(t) / 100) * r.height; default: break; } return parseFloat(t); } return t; } function NV(e, t, n, r) { return ( t.minHeight && (e = Math.max(Nu("minHeight", t.minHeight, n, r), e)), t.maxHeight && (e = Math.min(Nu("maxHeight", t.maxHeight, n, r), e)), e ); } function jV(e, t, n, r) { return ( t.minWidth && (e = Math.max(Nu("minWidth", t.minWidth, n, r), e)), t.maxWidth && (e = Math.min(Nu("maxWidth", t.maxWidth, n, r), e)), e ); } function HV(e, t, n, r, i) { let o = jV(re(e) ? e : BV, n, r, i), s = NV(re(t) ? t : $V, n, r, i); return ( re(n.aspectRatio) && n.aspectRatio > 0 && (re(n.left) && re(n.right) ? (s = o / n.aspectRatio) : re(n.top) && re(n.bottom) ? (o = s * n.aspectRatio) : n.widthType !== 0 ? (s = o / n.aspectRatio) : (o = s * n.aspectRatio)), { width: o, height: s } ); } function U1(e, t) { return !re(e) || !re(t) ? null : e + t; } function WV(e) { return ( typeof e.right == "string" || typeof e.bottom == "string" || (typeof e.left == "string" && (!e.center || e.center === "y")) || (typeof e.top == "string" && (!e.center || e.center === "x")) ); } function el(e) { return !e._constraints || WV(e) ? !1 : e._constraints.enabled; } function UV(e) { let { size: t } = e, { width: n, height: r } = e; return ( re(t) && (n === void 0 && (n = t), r === void 0 && (r = t)), re(n) && re(r) ? { width: n, height: r } : null ); } function GV(e) { let t = UV(e); if (t === null) return null; let { left: n, top: r } = e; return re(n) && re(r) ? { x: n, y: r, ...t } : null; } function Ha(e, t, n = !0) { if (e.positionFixed || e.positionAbsolute) return null; let r = t === 1 || t === 2; if (!el(e) || r) return GV(e); let i = qV(e), o = XV(t), s = o ? { sizing: o, positioning: o, viewport: null } : null; return SC.toRect(i, s, null, n, null); } function qV(e) { let { left: t, right: n, top: r, bottom: i, center: o, _constraints: s, size: a, } = e, { width: l, height: c } = e; l === void 0 && (l = a), c === void 0 && (c = a); let { aspectRatio: u, autoSize: f } = s, d = wC.quickfix({ left: re(t), right: re(n), top: re(r), bottom: re(i), widthType: $u(l), heightType: $u(c), aspectRatio: u || null, fixedSize: f === !0, }), m = null, y = null, g = 0, b = 0; if (d.widthType !== 0 && typeof l == "string") { let v = parseFloat(l); l.endsWith("fr") ? ((g = 3), (m = v)) : l === "auto" ? (g = 2) : ((g = 1), (m = v / 100)); } else l !== void 0 && typeof l != "string" && (m = l); if (d.heightType !== 0 && typeof c == "string") { let v = parseFloat(c); c.endsWith("fr") ? ((b = 3), (y = v)) : c === "auto" ? (b = 2) : ((b = 1), (y = parseFloat(c) / 100)); } else c !== void 0 && typeof c != "string" && (y = c); let h = 0.5, p = 0.5; return ( (o === !0 || o === "x") && ((d.left = !1), typeof t == "string" && (h = parseFloat(t) / 100)), (o === !0 || o === "y") && ((d.top = !1), typeof r == "string" && (p = parseFloat(r) / 100)), { left: d.left ? t : null, right: d.right ? n : null, top: d.top ? r : null, bottom: d.bottom ? i : null, widthType: g, heightType: b, width: m, height: y, aspectRatio: d.aspectRatio || null, centerAnchorX: h, centerAnchorY: p, minHeight: e.minHeight, maxHeight: e.maxHeight, minWidth: e.minWidth, maxWidth: e.maxWidth, } ); } var kC = w.createContext({ parentSize: 0 }); function XV(e) { return e === 0 || e === 1 || e === 2 ? null : e; } function tl() { return w.useContext(kC).parentSize; } function CC(e) { return typeof e == "object"; } var YV = (e) => { let t = tl(), { parentSize: n, children: r } = e, i = w.useMemo(() => ({ parentSize: n }), [KV(n), QV(n)]); return t === 1 ? r ? C(ot, { children: r }) : null : C(kC.Provider, { value: i, children: r }); }; function KV(e) { return CC(e) ? e.width : e; } function QV(e) { return CC(e) ? e.height : e; } function ZV(e, t) { return C(YV, { parentSize: t, children: e }); } function JV(e) { let t = tl(); return Ha(e, t, !0); } function TC({ width: e, height: t }) { return ( e === "auto" || e === "min-content" || t === "auto" || t === "min-content" ); } var eA = ((e) => ( (e.Boolean = "boolean"), (e.Number = "number"), (e.String = "string"), (e.RichText = "richtext"), (e.FusedNumber = "fusednumber"), (e.Enum = "enum"), (e.SegmentedEnum = "segmentedenum"), (e.Color = "color"), (e.Image = "image"), (e.ResponsiveImage = "responsiveimage"), (e.File = "file"), (e.ComponentInstance = "componentinstance"), (e.Array = "array"), (e.EventHandler = "eventhandler"), (e.Transition = "transition"), (e.BoxShadow = "boxshadow"), (e.Link = "link"), (e.Date = "date"), (e.Object = "object"), (e.Font = "font"), (e.PageScope = "pagescope"), (e.ScrollSectionRef = "scrollsectionref"), (e.CustomCursor = "customcursor"), (e.Border = "border"), (e.Cursor = "cursor"), (e.Padding = "padding"), (e.BorderRadius = "borderradius"), (e.CollectionReference = "collectionreference"), (e.MultiCollectionReference = "multicollectionreference"), e ))(eA || {}), _m; function tA() { if (_m !== void 0) return _m; let e = document.createElement("div"); Object.assign(e.style, { position: "absolute", display: "flex", flexDirection: "column", rowGap: "1px", }), e.appendChild(document.createElement("div")), e.appendChild(document.createElement("div")), document.body.appendChild(e); let t = e.scrollHeight === 1; return e.parentNode && e.parentNode.removeChild(e), (_m = t), t; } var io = "flexbox-gap-not-supported", G1 = !1; function WH() { G1 || ((G1 = !0), !tA() && document.body.classList.add(io)); } var nA = ` [data-framer-component-type="DeprecatedRichText"] p, [data-framer-component-type="DeprecatedRichText"] div, [data-framer-component-type="DeprecatedRichText"] h1, [data-framer-component-type="DeprecatedRichText"] h2, [data-framer-component-type="DeprecatedRichText"] h3, [data-framer-component-type="DeprecatedRichText"] h4, [data-framer-component-type="DeprecatedRichText"] h5, [data-framer-component-type="DeprecatedRichText"] h6, [data-framer-component-type="DeprecatedRichText"] li, [data-framer-component-type="DeprecatedRichText"] ol, [data-framer-component-type="DeprecatedRichText"] ul, [data-framer-component-type="DeprecatedRichText"] span:not([data-text-fill]) { font-family: var(--framer-font-family, Inter, Inter Placeholder, sans-serif); font-style: var(--framer-font-style, normal); font-weight: var(--framer-font-weight, 400); color: var(--framer-text-color, #000); font-size: var(--framer-font-size, 16px); letter-spacing: var(--framer-letter-spacing, 0); text-transform: var(--framer-text-transform, none); text-decoration: var(--framer-text-decoration, none); line-height: var(--framer-line-height, 1.2em); text-align: var(--framer-text-alignment, start); } `, rA = ` [data-framer-component-type="DeprecatedRichText"] p:not(:first-child), [data-framer-component-type="DeprecatedRichText"] div:not(:first-child), [data-framer-component-type="DeprecatedRichText"] h1:not(:first-child), [data-framer-component-type="DeprecatedRichText"] h2:not(:first-child), [data-framer-component-type="DeprecatedRichText"] h3:not(:first-child), [data-framer-component-type="DeprecatedRichText"] h4:not(:first-child), [data-framer-component-type="DeprecatedRichText"] h5:not(:first-child), [data-framer-component-type="DeprecatedRichText"] h6:not(:first-child), [data-framer-component-type="DeprecatedRichText"] ol:not(:first-child), [data-framer-component-type="DeprecatedRichText"] ul:not(:first-child), [data-framer-component-type="DeprecatedRichText"] .framer-image:not(:first-child) { margin-top: var(--framer-paragraph-spacing, 0); } `, iA = ` [data-framer-component-type="DeprecatedRichText"] span[data-text-fill] { display: inline-block; background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; } `, oA = ` [data-framer-component-type="DeprecatedRichText"] a, [data-framer-component-type="DeprecatedRichText"] a span:not([data-text-fill]) { font-family: var(--framer-link-font-family, var(--framer-font-family, Inter, Inter Placeholder, sans-serif)); font-style: var(--framer-link-font-style, var(--framer-font-style, normal)); font-weight: var(--framer-link-font-weight, var(--framer-font-weight, 400)); color: var(--framer-link-text-color, var(--framer-text-color, #000)); font-size: var(--framer-link-font-size, var(--framer-font-size, 16px)); text-transform: var(--framer-link-text-transform, var(--framer-text-transform, none)); text-decoration: var(--framer-link-text-decoration, var(--framer-text-decoration, none)); } `, sA = ` [data-framer-component-type="DeprecatedRichText"] a:hover, [data-framer-component-type="DeprecatedRichText"] a:hover span:not([data-text-fill]) { font-family: var(--framer-link-hover-font-family, var(--framer-link-font-family, var(--framer-font-family, Inter, Inter Placeholder, sans-serif))); font-style: var(--framer-link-hover-font-style, var(--framer-link-font-style, var(--framer-font-style, normal))); font-weight: var(--framer-link-hover-font-weight, var(--framer-link-font-weight, var(--framer-font-weight, 400))); color: var(--framer-link-hover-text-color, var(--framer-link-text-color, var(--framer-text-color, #000))); font-size: var(--framer-link-hover-font-size, var(--framer-link-font-size, var(--framer-font-size, 16px))); text-transform: var(--framer-link-hover-text-transform, var(--framer-link-text-transform, var(--framer-text-transform, none))); text-decoration: var(--framer-link-hover-text-decoration, var(--framer-link-text-decoration, var(--framer-text-decoration, none))); } `, aA = ` a[data-framer-page-link-current], a[data-framer-page-link-current] span:not([data-text-fill]):not([data-nested-link]) { font-family: var(--framer-link-current-font-family, var(--framer-link-font-family, var(--framer-font-family, Inter, Inter Placeholder, sans-serif))); font-style: var(--framer-link-current-font-style, var(--framer-link-font-style, var(--framer-font-style, normal))); font-weight: var(--framer-link-current-font-weight, var(--framer-link-font-weight, var(--framer-font-weight, 400))); color: var(--framer-link-current-text-color, var(--framer-link-text-color, var(--framer-text-color, #000))); font-size: var(--framer-link-current-font-size, var(--framer-link-font-size, var(--framer-font-size, 16px))); text-transform: var(--framer-link-current-text-transform, var(--framer-link-text-transform, var(--framer-text-transform, none))); text-decoration: var(--framer-link-current-text-decoration, var(--framer-link-text-decoration, var(--framer-text-decoration, none))); } `, lA = ` a[data-framer-page-link-current]:hover, a[data-framer-page-link-current]:hover span:not([data-text-fill]):not([data-nested-link]) { font-family: var(--framer-link-hover-font-family, var(--framer-link-current-font-family, var(--framer-link-font-family, var(--framer-font-family, Inter, Inter Placeholder, sans-serif)))); font-style: var(--framer-link-hover-font-style, var(--framer-link-current-font-style, var(--framer-link-font-style, var(--framer-font-style, normal)))); font-weight: var(--framer-link-hover-font-weight, var(--framer-link-current-font-weight, var(--framer-link-font-weight, var(--framer-font-weight, 400)))); color: var(--framer-link-hover-text-color, var(--framer-link-current-text-color, var(--framer-link-text-color, var(--framer-text-color, #000)))); font-size: var(--framer-link-hover-font-size, var(--framer-link-current-font-size, var(--framer-link-font-size, var(--framer-font-size, 16px)))); text-transform: var(--framer-link-hover-text-transform, var(--framer-link-current-text-transform, var(--framer-link-text-transform, var(--framer-text-transform, none)))); text-decoration: var(--framer-link-hover-text-decoration, var(--framer-link-current-text-decoration, var(--framer-link-text-decoration, var(--framer-text-decoration, none)))); } `, cA = ` [data-framer-component-type="DeprecatedRichText"] strong { font-weight: bolder; } `, uA = ` [data-framer-component-type="DeprecatedRichText"] em { font-style: italic; } `, fA = ` [data-framer-component-type="DeprecatedRichText"] .framer-image { display: block; max-width: 100%; height: auto; } `, dA = ` [data-framer-component-type="DeprecatedRichText"] p, [data-framer-component-type="DeprecatedRichText"] div, [data-framer-component-type="DeprecatedRichText"] h1, [data-framer-component-type="DeprecatedRichText"] h2, [data-framer-component-type="DeprecatedRichText"] h3, [data-framer-component-type="DeprecatedRichText"] h4, [data-framer-component-type="DeprecatedRichText"] h5, [data-framer-component-type="DeprecatedRichText"] h6 { margin: 0; padding: 0; } `, hA = ` [data-framer-component-type="DeprecatedRichText"] .text-styles-preset-reset { --framer-font-family: Inter, Inter Placeholder, sans-serif; --framer-font-style: normal; --framer-font-weight: 500; --framer-text-color: #000; --framer-font-size: 16px; --framer-letter-spacing: 0; --framer-text-transform: none; --framer-text-decoration: none; --framer-line-height: 1.2em; --framer-text-alignment: start; --framer-font-open-type-features: normal; --font-variation-settings: normal; } `, pA = ` [data-framer-component-type="DeprecatedRichText"] ul, [data-framer-component-type="DeprecatedRichText"] ol { display: table; width: 100%; padding-left: 0; margin: 0; } `, mA = ` [data-framer-component-type="DeprecatedRichText"] li { display: table-row; counter-increment: list-item; list-style: none; } `, gA = ` [data-framer-component-type="DeprecatedRichText"] ol > li::before { display: table-cell; width: 2.25ch; box-sizing: border-box; padding-right: 0.75ch; content: counter(list-item) "."; white-space: nowrap; } `, vA = ` [data-framer-component-type="DeprecatedRichText"] ul > li::before { display: table-cell; width: 2.25ch; box-sizing: border-box; padding-right: 0.75ch; content: "\u2022"; } `, yA = [ '[data-framer-component-type="DeprecatedRichText"] { cursor: inherit; }', hA, dA, nA, rA, iA, oA, sA, aA, lA, cA, uA, fA, pA, mA, gA, vA, ], bA = [ ` p.framer-text, div.framer-text, h1.framer-text, h2.framer-text, h3.framer-text, h4.framer-text, h5.framer-text, h6.framer-text, ol.framer-text, ul.framer-text { margin: 0; padding: 0; } `, ` p.framer-text, div.framer-text, h1.framer-text, h2.framer-text, h3.framer-text, h4.framer-text, h5.framer-text, h6.framer-text, li.framer-text, ol.framer-text, ul.framer-text, span.framer-text:not([data-text-fill]) { font-family: var(--framer-blockquote-font-family, var(--framer-font-family, Inter, Inter Placeholder, sans-serif)); font-style: var(--framer-blockquote-font-style, var(--framer-font-style, normal)); font-weight: var(--framer-blockquote-font-weight, var(--framer-font-weight, 400)); color: var(--framer-blockquote-text-color, var(--framer-text-color, #000)); font-size: calc(var(--framer-blockquote-font-size, var(--framer-font-size, 16px)) * var(--framer-font-size-scale, 1)); letter-spacing: var(--framer-blockquote-letter-spacing, var(--framer-letter-spacing, 0)); text-transform: var(--framer-blockquote-text-transform, var(--framer-text-transform, none)); text-decoration: var(--framer-blockquote-text-decoration, var(--framer-text-decoration, none)); line-height: var(--framer-blockquote-line-height, var(--framer-line-height, 1.2em)); text-align: var(--framer-blockquote-text-alignment, var(--framer-text-alignment, start)); -webkit-text-stroke-width: var(--framer-text-stroke-width, initial); -webkit-text-stroke-color: var(--framer-text-stroke-color, initial); -moz-font-feature-settings: var(--framer-font-open-type-features, initial); -webkit-font-feature-settings: var(--framer-font-open-type-features, initial); font-feature-settings: var(--framer-font-open-type-features, initial); font-variation-settings: var(--framer-font-variation-axes, normal); text-wrap: var(--framer-text-wrap-override, var(--framer-text-wrap)); } `, ` .framer-fit-text .framer-text { white-space: nowrap; white-space-collapse: preserve; } `, ` strong.framer-text { font-family: var(--framer-blockquote-font-family-bold, var(--framer-font-family-bold)); font-style: var(--framer-blockquote-font-style-bold, var(--framer-font-style-bold)); font-weight: var(--framer-blockquote-font-weight-bold, var(--framer-font-weight-bold, bolder)); font-variation-settings: var(--framer-blockquote-font-variation-axes-bold, var(--framer-font-variation-axes-bold)); } `, ` em.framer-text { font-family: var(--framer-blockquote-font-family-italic, var(--framer-font-family-italic)); font-style: var(--framer-blockquote-font-style-italic, var(--framer-font-style-italic, italic)); font-weight: var(--framer-blockquote-font-weight-italic, var(--framer-font-weight-italic)); font-variation-settings: var(--framer-blockquote-font-variation-axes-italic, var(--framer-font-variation-axes-italic)); } `, ` em.framer-text > strong.framer-text { font-family: var(--framer-blockquote-font-family-bold-italic, var(--framer-font-family-bold-italic)); font-style: var(--framer-blockquote-font-style-bold-italic, var(--framer-font-style-bold-italic, italic)); font-weight: var(--framer-blockquote-font-weight-bold-italic, var(--framer-font-weight-bold-italic, bolder)); font-variation-settings: var(--framer-blockquote-font-variation-axes-bold-italic, var(--framer-font-variation-axes-bold-italic)); } `, ` p.framer-text:not(:first-child), div.framer-text:not(:first-child), h1.framer-text:not(:first-child), h2.framer-text:not(:first-child), h3.framer-text:not(:first-child), h4.framer-text:not(:first-child), h5.framer-text:not(:first-child), h6.framer-text:not(:first-child), ol.framer-text:not(:first-child), ul.framer-text:not(:first-child), blockquote.framer-text:not(:first-child), .framer-image.framer-text:not(:first-child) { margin-top: var(--framer-blockquote-paragraph-spacing, var(--framer-paragraph-spacing, 0)); } `, ` li.framer-text > ul.framer-text:nth-child(2), li.framer-text > ol.framer-text:nth-child(2) { margin-top: 0; } `, ` .framer-text[data-text-fill] { display: inline-block; background-clip: text; -webkit-background-clip: text; /* make this a transparent color if you want to visualise the clipping */ -webkit-text-fill-color: transparent; padding: max(0em, calc(calc(1.3em - var(--framer-blockquote-line-height, var(--framer-line-height, 1.3em))) / 2)); margin: min(0em, calc(calc(1.3em - var(--framer-blockquote-line-height, var(--framer-line-height, 1.3em))) / -2)); } `, ` code.framer-text, code.framer-text span.framer-text:not([data-text-fill]) { font-family: var(--framer-code-font-family, var(--framer-font-family, Inter, Inter Placeholder, sans-serif)); font-style: var(--framer-blockquote-font-style, var(--framer-code-font-style, var(--framer-font-style, normal))); font-weight: var(--framer-blockquote-font-weight, var(--framer-code-font-weight, var(--framer-font-weight, 400))); color: var(--framer-blockquote-text-color, var(--framer-code-text-color, var(--framer-text-color, #000))); font-size: calc(var(--framer-blockquote-font-size, var(--framer-font-size, 16px)) * var(--framer-font-size-scale, 1)); letter-spacing: var(--framer-blockquote-letter-spacing, var(--framer-letter-spacing, 0)); line-height: var(--framer-blockquote-line-height, var(--framer-line-height, 1.2em)); } `, ` blockquote.framer-text { margin-block-start: initial; margin-block-end: initial; margin-inline-start: initial; margin-inline-end: initial; unicode-bidi: initial; } `, ` a.framer-text, a.framer-text span.framer-text:not([data-text-fill]), span.framer-text[data-nested-link], span.framer-text[data-nested-link] span.framer-text:not([data-text-fill]) { font-family: var(--framer-blockquote-font-family, var(--framer-link-font-family, var(--framer-font-family, Inter, Inter Placeholder, sans-serif))); font-style: var(--framer-blockquote-font-style, var(--framer-link-font-style, var(--framer-font-style, normal))); font-weight: var(--framer-blockquote-font-weight, var(--framer-link-font-weight, var(--framer-font-weight, 400))); color: var(--framer-blockquote-text-color, var(--framer-link-text-color, var(--framer-text-color, #000))); font-size: calc(var(--framer-blockquote-font-size, var(--framer-font-size, 16px)) * var(--framer-font-size-scale, 1)); text-transform: var(--framer-blockquote-text-transform, var(--framer-link-text-transform, var(--framer-text-transform, none))); text-decoration: var(--framer-blockquote-text-decoration, var(--framer-link-text-decoration, var(--framer-text-decoration, none))); /* Cursor inherit to overwrite the user agent stylesheet on rich text links. */ cursor: var(--framer-custom-cursors, pointer); } `, ` code.framer-text a.framer-text, code.framer-text a.framer-text span.framer-text:not([data-text-fill]), code.framer-text span.framer-text[data-nested-link], code.framer-text span.framer-text[data-nested-link] span.framer-text:not([data-text-fill]) { font-family: var(--framer-code-font-family, var(--framer-font-family, Inter, Inter Placeholder, sans-serif)); font-style: var(--framer-blockquote-font-style, var(--framer-code-font-style, var(--framer-font-style, normal))); font-weight: var(--framer-blockquote-font-weight, var(--framer-code-font-weight, var(--framer-font-weight, 400))); color: var(--framer-blockquote-text-color, var(--framer-link-text-color, var(--framer-code-text-color, var(--framer-text-color, #000)))); font-size: calc(var(--framer-blockquote-font-size, var(--framer-font-size, 16px)) * var(--framer-font-size-scale, 1)); } `, ` a.framer-text:hover, a.framer-text:hover span.framer-text:not([data-text-fill]), span.framer-text[data-nested-link]:hover, span.framer-text[data-nested-link]:hover span.framer-text:not([data-text-fill]) { font-family: var(--framer-link-hover-font-family, var(--framer-blockquote-font-family, var(--framer-link-font-family, var(--framer-font-family, Inter, Inter Placeholder, sans-serif)))); font-style: var(--framer-link-hover-font-style, var(--framer-blockquote-font-style, var(--framer-link-font-style, var(--framer-font-style, normal)))); font-weight: var(--framer-link-hover-font-weight, var(--framer-blockquote-font-weight, var(--framer-link-font-weight, var(--framer-font-weight, 400)))); color: var(--framer-link-hover-text-color, var(--framer-blockquote-text-color, var(--framer-link-text-color, var(--framer-text-color, #000)))); font-size: calc(var(--framer-link-hover-font-size, var(--framer-blockquote-font-size, var(--framer-font-size, 16px))) * var(--framer-font-size-scale, 1)); text-transform: var(--framer-link-hover-text-transform, var(--framer-blockquote-text-transform, var(--framer-link-text-transform, var(--framer-text-transform, none)))); text-decoration: var(--framer-link-hover-text-decoration, var(--framer-blockquote-text-decoration, var(--framer-link-text-decoration, var(--framer-text-decoration, none)))); } `, ` code.framer-text a.framer-text:hover, code.framer-text a.framer-text:hover span.framer-text:not([data-text-fill]), code.framer-text span.framer-text[data-nested-link]:hover, code.framer-text span.framer-text[data-nested-link]:hover span.framer-text:not([data-text-fill]) { font-family: var(var(--framer-code-font-family, var(--framer-font-family, Inter, Inter Placeholder, sans-serif))); font-style: var(--framer-blockquote-font-style, var(--framer-code-font-style, var(--framer-font-style, normal))); font-weight: var(--framer-blockquote-font-weight, var(--framer-code-font-weight, var(--framer-font-weight, 400))); color: var(--framer-link-hover-text-color, var(--framer-blockquote-text-color, var(--framer-link-text-color, var(--framer-code-text-color, var(--framer-text-color, #000))))); font-size: calc(var(--framer-link-hover-font-size, var(--framer-blockquote-font-size, var(--framer-link-font-size, var(--framer-font-size, 16px)))) * var(--framer-font-size-scale, 1)); } `, ` a.framer-text[data-framer-page-link-current], a.framer-text[data-framer-page-link-current] span.framer-text:not([data-text-fill]), span.framer-text[data-framer-page-link-current], span.framer-text[data-framer-page-link-current] span.framer-text:not([data-text-fill]) { font-family: var(--framer-link-current-font-family, var(--framer-link-font-family, var(--framer-font-family, Inter, Inter Placeholder, sans-serif))); font-style: var(--framer-link-current-font-style, var(--framer-link-font-style, var(--framer-font-style, normal))); font-weight: var(--framer-link-current-font-weight, var(--framer-link-font-weight, var(--framer-font-weight, 400))); color: var(--framer-link-current-text-color, var(--framer-link-text-color, var(--framer-text-color, #000))); font-size: calc(var(--framer-link-current-font-size, var(--framer-link-font-size, var(--framer-font-size, 16px))) * var(--framer-font-size-scale, 1)); text-transform: var(--framer-link-current-text-transform, var(--framer-link-text-transform, var(--framer-text-transform, none))); text-decoration: var(--framer-link-current-text-decoration, var(--framer-link-text-decoration, var(--framer-text-decoration, none))); } `, ` code.framer-text a.framer-text[data-framer-page-link-current], code.framer-text a.framer-text[data-framer-page-link-current] span.framer-text:not([data-text-fill]), code.framer-text span.framer-text[data-framer-page-link-current], code.framer-text span.framer-text[data-framer-page-link-current] span.framer-text:not([data-text-fill]) { font-family: var(--framer-code-font-family, var(--framer-font-family, Inter, Inter Placeholder, sans-serif)); font-style: var(--framer-code-font-style, var(--framer-font-style, normal)); font-weight: var(--framer-code-font-weight, var(--framer-font-weight, 400)); color: var(--framer-link-current-text-color, var(--framer-link-text-color, var(--framer-code-text-color, var(--framer-text-color, #000)))); font-size: calc(var(--framer-link-current-font-size, var(--framer-link-font-size, var(--framer-font-size, 16px))) * var(--framer-font-size-scale, 1)); } `, ` a.framer-text[data-framer-page-link-current]:hover, a.framer-text[data-framer-page-link-current]:hover span.framer-text:not([data-text-fill]), span.framer-text[data-framer-page-link-current]:hover, span.framer-text[data-framer-page-link-current]:hover span.framer-text:not([data-text-fill]) { font-family: var(--framer-link-hover-font-family, var(--framer-link-current-font-family, var(--framer-link-font-family, var(--framer-font-family, Inter, Inter Placeholder, sans-serif)))); font-style: var(--framer-link-hover-font-style, var(--framer-link-current-font-style, var(--framer-link-font-style, var(--framer-font-style, normal)))); font-weight: var(--framer-link-hover-font-weight, var(--framer-link-current-font-weight, var(--framer-link-font-weight, var(--framer-font-weight, 400)))); color: var(--framer-link-hover-text-color, var(--framer-link-current-text-color, var(--framer-link-text-color, var(--framer-text-color, #000)))); font-size: calc(var(--framer-link-hover-font-size, var(--framer-link-current-font-size, var(--framer-link-font-size, var(--framer-font-size, 16px)))) * var(--framer-font-size-scale, 1)); text-transform: var(--framer-link-hover-text-transform, var(--framer-link-current-text-transform, var(--framer-link-text-transform, var(--framer-text-transform, none)))); text-decoration: var(--framer-link-hover-text-decoration, var(--framer-link-current-text-decoration, var(--framer-link-text-decoration, var(--framer-text-decoration, none)))); } `, ` code.framer-text a.framer-text[data-framer-page-link-current]:hover, code.framer-text a.framer-text[data-framer-page-link-current]:hover span.framer-text:not([data-text-fill]), code.framer-text span.framer-text[data-framer-page-link-current]:hover, code.framer-text span.framer-text[data-framer-page-link-current]:hover span.framer-text:not([data-text-fill]) { font-family: var(--framer-code-font-family, var(--framer-font-family, Inter, Inter Placeholder, sans-serif)); font-style: var(--framer-code-font-style, var(--framer-font-style, normal)); font-weight: var(--framer-code-font-weight, var(--framer-font-weight, 400)); color: var(--framer-link-hover-text-color, var(--framer-link-current-text-color, var(--framer-link-text-color, var(--framer-code-text-color, var(--framer-text-color, #000))))); font-size: calc(var(--framer-link-hover-font-size, var(--framer-link-current-font-size, var(--framer-link-font-size, var(--framer-font-size, 16px)))) * var(--framer-font-size-scale, 1)); } `, ` .framer-image.framer-text { display: block; max-width: 100%; height: auto; } `, ` .text-styles-preset-reset.framer-text { --framer-font-family: Inter, Inter Placeholder, sans-serif; --framer-font-style: normal; --framer-font-weight: 500; --framer-text-color: #000; --framer-font-size: 16px; --framer-letter-spacing: 0; --framer-text-transform: none; --framer-text-decoration: none; --framer-line-height: 1.2em; --framer-text-alignment: start; --framer-font-open-type-features: normal; } `, ` ol.framer-text { --list-style-type: decimal; } `, ` ul.framer-text, ol.framer-text { display: table; width: 100%; } `, ` li.framer-text { display: table-row; counter-increment: list-item; list-style: none; } `, ` ol.framer-text > li.framer-text::before { display: table-cell; width: 2.25ch; box-sizing: border-box; padding-inline-end: 0.75ch; content: counter(list-item, var(--list-style-type)) "."; white-space: nowrap; } `, ` ul.framer-text > li.framer-text::before { display: table-cell; width: 2.25ch; box-sizing: border-box; padding-inline-end: 0.75ch; content: "\u2022"; } `, ` .framer-text-module[style*="aspect-ratio"] > :first-child { width: 100%; } `, ` @supports not (aspect-ratio: 1) { .framer-text-module[style*="aspect-ratio"] { position: relative; } } `, ` @supports not (aspect-ratio: 1) { .framer-text-module[style*="aspect-ratio"]::before { content: ""; display: block; padding-bottom: calc(100% / calc(var(--aspect-ratio))); } } `, ` @supports not (aspect-ratio: 1) { .framer-text-module[style*="aspect-ratio"] > :first-child { position: absolute; top: 0; left: 0; height: 100%; } } `, ], xA = new Set(), Im; function EC(e, t, n = xA) { if (!(!e || n.has(e) || typeof document > "u")) { if ((n.add(e), !t)) { if (!Im) { let r = document.createElement("style"); if ( (r.setAttribute("type", "text/css"), r.setAttribute("data-framer-css", "true"), !document.head) ) { console.warn( "not injecting CSS: the document is missing a element" ); return; } if ((document.head.appendChild(r), r.sheet)) Im = r.sheet; else { console.warn( "not injecting CSS: injected