diff --git a/main.js b/main.js index c8706df..d78c652 100644 --- a/main.js +++ b/main.js @@ -1,10 +1,10 @@ -/*! For license information please see main.aa787733.js.LICENSE.txt */ +/*! For license information please see main.f0354cce.js.LICENSE.txt */ ! function() { try { var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self ? self : {}, n = (new e.Error).stack; - n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "b30361bd-9977-5eb2-abab-40f9b5a39f7f") + n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "032c1ac3-6566-59d2-b43b-c485cfb20905") } catch (e) {} }(); (() => { @@ -75,17 +75,17 @@ var i = g.hasOwnProperty(t) ? g[t] : null; (null !== i ? 0 !== i.type : r || !(2 < t.length) || "o" !== t[0] && "O" !== t[0] || "n" !== t[1] && "N" !== t[1]) && (function(e, t, n, r) { if (null === t || "undefined" === typeof t || function(e, t, n, r) { - if (null !== n && 0 === n.type) return !1; - switch (typeof t) { - case "function": - case "symbol": - return !0; - case "boolean": - return !r && (null !== n ? !n.acceptsBooleans : "data-" !== (e = e.toLowerCase().slice(0, 5)) && "aria-" !== e); - default: - return !1 - } - }(e, t, n, r)) return !0; + if (null !== n && 0 === n.type) return !1; + switch (typeof t) { + case "function": + case "symbol": + return !0; + case "boolean": + return !r && (null !== n ? !n.acceptsBooleans : "data-" !== (e = e.toLowerCase().slice(0, 5)) && "aria-" !== e); + default: + return !1 + } + }(e, t, n, r)) return !0; if (r) return !1; if (null !== n) switch (n.type) { case 3: @@ -118,8 +118,8 @@ })); var b = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, x = Symbol.for("react.element"), - k = Symbol.for("react.portal"), - w = Symbol.for("react.fragment"), + w = Symbol.for("react.portal"), + k = Symbol.for("react.fragment"), S = Symbol.for("react.strict_mode"), E = Symbol.for("react.profiler"), O = Symbol.for("react.provider"), @@ -158,12 +158,12 @@ try { if (t) if (t = function() { + throw Error() + }, Object.defineProperty(t.prototype, "props", { + set: function() { throw Error() - }, Object.defineProperty(t.prototype, "props", { - set: function() { - throw Error() - } - }), "object" === typeof Reflect && Reflect.construct) { + } + }), "object" === typeof Reflect && Reflect.construct) { try { Reflect.construct(t, []) } catch (c) { @@ -235,9 +235,9 @@ if ("function" === typeof e) return e.displayName || e.name || null; if ("string" === typeof e) return e; switch (e) { - case w: - return "Fragment"; case k: + return "Fragment"; + case w: return "Portal"; case E: return "Profiler"; @@ -635,27 +635,27 @@ function xe(e) { return (e = e.target || e.srcElement || window).correspondingUseElement && (e = e.correspondingUseElement), 3 === e.nodeType ? e.parentNode : e } - var ke = null, - we = null, + var we = null, + ke = null, Se = null; function Ee(e) { if (e = _i(e)) { - if ("function" !== typeof ke) throw Error(a(280)); + if ("function" !== typeof we) throw Error(a(280)); var t = e.stateNode; - t && (t = xi(t), ke(e.stateNode, e.type, t)) + t && (t = xi(t), we(e.stateNode, e.type, t)) } } function Oe(e) { - we ? Se ? Se.push(e) : Se = [e] : we = e + ke ? Se ? Se.push(e) : Se = [e] : ke = e } function Ie() { - if (we) { - var e = we, + if (ke) { + var e = ke, t = Se; - if (Se = we = null, Ee(e), t) + if (Se = ke = null, Ee(e), t) for (e = 0; e < t.length; e++) Ee(t[e]) } } @@ -673,7 +673,7 @@ try { return Ce(e, t, n) } finally { - Pe = !1, (null !== we || null !== Se) && (Ae(), Ie()) + Pe = !1, (null !== ke || null !== Se) && (Ae(), Ie()) } } @@ -985,7 +985,7 @@ function bt(e) { return 1 < (e &= -e) ? 4 < e ? 0 !== (268435455 & e) ? 16 : 536870912 : 4 : 1 } - var xt, kt, wt, St, Et, Ot = !1, + var xt, wt, kt, St, Et, Ot = !1, It = [], Ct = null, At = null, @@ -1026,7 +1026,7 @@ eventSystemFlags: r, nativeEvent: a, targetContainers: [i] - }, null !== t && (null !== (t = _i(t)) && kt(t)), e) : (e.eventSystemFlags |= r, t = e.targetContainers, null !== i && -1 === t.indexOf(i) && t.push(i), e) + }, null !== t && (null !== (t = _i(t)) && wt(t)), e) : (e.eventSystemFlags |= r, t = e.targetContainers, null !== i && -1 === t.indexOf(i) && t.push(i), e) } function Mt(e) { @@ -1036,7 +1036,7 @@ if (null !== n) if (13 === (t = n.tag)) { if (null !== (t = Ge(n))) return e.blockedOn = t, void Et(e.priority, (function() { - wt(n) + kt(n) })) } else if (3 === t && n.stateNode.current.memoizedState.isDehydrated) return void(e.blockedOn = 3 === n.tag ? n.stateNode.containerInfo : null) } @@ -1047,7 +1047,7 @@ if (null !== e.blockedOn) return !1; for (var t = e.targetContainers; 0 < t.length;) { var n = Yt(e.domEventName, e.eventSystemFlags, t[0], e.nativeEvent); - if (null !== n) return null !== (t = _i(n)) && kt(t), e.blockedOn = n, !1; + if (null !== n) return null !== (t = _i(n)) && wt(t), e.blockedOn = n, !1; var r = new(n = e.nativeEvent).constructor(n.type, n); be = r, n.target.dispatchEvent(r), be = null, t.shift() } @@ -1110,21 +1110,21 @@ var i = Yt(e, t, n, r); if (null === i) $r(e, t, r, Kt, n), Nt(e, r); else if (function(e, t, n, r, i) { - switch (t) { - case "focusin": - return Ct = jt(Ct, e, t, n, r, i), !0; - case "dragenter": - return At = jt(At, e, t, n, r, i), !0; - case "mouseover": - return Pt = jt(Pt, e, t, n, r, i), !0; - case "pointerover": - var a = i.pointerId; - return Tt.set(a, jt(Tt.get(a) || null, e, t, n, r, i)), !0; - case "gotpointercapture": - return a = i.pointerId, Rt.set(a, jt(Rt.get(a) || null, e, t, n, r, i)), !0 - } - return !1 - }(i, e, t, n, r)) r.stopPropagation(); + switch (t) { + case "focusin": + return Ct = jt(Ct, e, t, n, r, i), !0; + case "dragenter": + return At = jt(At, e, t, n, r, i), !0; + case "mouseover": + return Pt = jt(Pt, e, t, n, r, i), !0; + case "pointerover": + var a = i.pointerId; + return Tt.set(a, jt(Tt.get(a) || null, e, t, n, r, i)), !0; + case "gotpointercapture": + return a = i.pointerId, Rt.set(a, jt(Rt.get(a) || null, e, t, n, r, i)), !0 + } + return !1 + }(i, e, t, n, r)) r.stopPropagation(); else if (Nt(e, r), 4 & t && -1 < Lt.indexOf(e)) { for (; null !== i;) { var a = _i(i); @@ -1141,12 +1141,12 @@ if (Kt = null, null !== (e = yi(e = xe(r)))) if (null === (t = Be(e))) e = null; else if (13 === (n = t.tag)) { - if (null !== (e = Ge(t))) return e; - e = null - } else if (3 === n) { - if (t.stateNode.current.memoizedState.isDehydrated) return 3 === t.tag ? t.stateNode.containerInfo : null; - e = null - } else t !== e && (e = null); + if (null !== (e = Ge(t))) return e; + e = null + } else if (3 === n) { + if (t.stateNode.current.memoizedState.isDehydrated) return 3 === t.tag ? t.stateNode.containerInfo : null; + e = null + } else t !== e && (e = null); return Kt = e, null } @@ -1365,7 +1365,7 @@ Scroll: "ScrollLock", MozPrintableKey: "Unidentified" }, - kn = { + wn = { 8: "Backspace", 9: "Tab", 12: "Clear", @@ -1403,7 +1403,7 @@ 145: "ScrollLock", 224: "Meta" }, - wn = { + kn = { Alt: "altKey", Control: "ctrlKey", Meta: "metaKey", @@ -1412,7 +1412,7 @@ function Sn(e) { var t = this.nativeEvent; - return t.getModifierState ? t.getModifierState(e) : !!(e = wn[e]) && !!t[e] + return t.getModifierState ? t.getModifierState(e) : !!(e = kn[e]) && !!t[e] } function En() { @@ -1424,7 +1424,7 @@ var t = xn[e.key] || e.key; if ("Unidentified" !== t) return t } - return "keypress" === e.type ? 13 === (e = tn(e)) ? "Enter" : String.fromCharCode(e) : "keydown" === e.type || "keyup" === e.type ? kn[e.keyCode] || "Unidentified" : "" + return "keypress" === e.type ? 13 === (e = tn(e)) ? "Enter" : String.fromCharCode(e) : "keydown" === e.type || "keyup" === e.type ? wn[e.keyCode] || "Unidentified" : "" }, code: 0, location: 0, @@ -1671,13 +1671,13 @@ if (null !== r && hr(n)) if (t = r.start, void 0 === (e = r.end) && (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 || window).getSelection) { - e = e.getSelection(); - var i = n.textContent.length, - a = Math.min(r.start, i); - r = void 0 === r.end ? a : Math.min(r.end, i), !e.extend && a > r && (i = r, r = a, a = i), i = ur(n, a); - var o = ur(n, r); - i && o && (1 !== e.rangeCount || e.anchorNode !== i.node || e.anchorOffset !== i.offset || e.focusNode !== o.node || e.focusOffset !== o.offset) && ((t = t.createRange()).setStart(i.node, i.offset), e.removeAllRanges(), a > r ? (e.addRange(t), e.extend(o.node, o.offset)) : (t.setEnd(o.node, o.offset), e.addRange(t))) - } + e = e.getSelection(); + var i = n.textContent.length, + a = Math.min(r.start, i); + r = void 0 === r.end ? a : Math.min(r.end, i), !e.extend && a > r && (i = r, r = a, a = i), i = ur(n, a); + var o = ur(n, r); + i && o && (1 !== e.rangeCount || e.anchorNode !== i.node || e.anchorOffset !== i.offset || e.focusNode !== o.node || e.focusOffset !== o.offset) && ((t = t.createRange()).setStart(i.node, i.offset), e.removeAllRanges(), a > r ? (e.addRange(t), e.extend(o.node, o.offset)) : (t.setEnd(o.node, o.offset), e.addRange(t))) + } for (t = [], e = n; e = e.parentNode;) 1 === e.nodeType && t.push({ element: e, left: e.scrollLeft, @@ -1712,24 +1712,24 @@ var n = {}; return n[e.toLowerCase()] = t.toLowerCase(), n["Webkit" + e] = "webkit" + t, n["Moz" + e] = "moz" + t, n } - var kr = { + var wr = { animationend: xr("Animation", "AnimationEnd"), animationiteration: xr("Animation", "AnimationIteration"), animationstart: xr("Animation", "AnimationStart"), transitionend: xr("Transition", "TransitionEnd") }, - wr = {}, + kr = {}, Sr = {}; function Er(e) { - if (wr[e]) return wr[e]; - if (!kr[e]) return e; - var t, n = kr[e]; + if (kr[e]) return kr[e]; + if (!wr[e]) return e; + var t, n = wr[e]; for (t in n) - if (n.hasOwnProperty(t) && t in Sr) return wr[e] = n[t]; + if (n.hasOwnProperty(t) && t in Sr) return kr[e] = n[t]; return e } - u && (Sr = document.createElement("div").style, "AnimationEvent" in window || (delete kr.animationend.animation, delete kr.animationiteration.animation, delete kr.animationstart.animation), "TransitionEvent" in window || delete kr.transitionend.transition); + u && (Sr = document.createElement("div").style, "AnimationEvent" in window || (delete wr.animationend.animation, delete wr.animationiteration.animation, delete wr.animationstart.animation), "TransitionEvent" in window || delete wr.transitionend.transition); var Or = Er("animationend"), Ir = Er("animationiteration"), Cr = Er("animationstart"), @@ -1776,10 +1776,10 @@ if (s = s.listener, l !== a && i.isPropagationStopped()) break e; Mr(i, s, c), a = l } else - for (o = 0; o < r.length; o++) { - if (l = (s = r[o]).instance, c = s.currentTarget, s = s.listener, l !== a && i.isPropagationStopped()) break e; - Mr(i, s, c), a = l - } + for (o = 0; o < r.length; o++) { + if (l = (s = r[o]).instance, c = s.currentTarget, s = s.listener, l !== a && i.isPropagationStopped()) break e; + Mr(i, s, c), a = l + } } } if (Fe) throw e = ze, Fe = !1, ze = null, e @@ -1956,9 +1956,9 @@ for (p = c, f = 0, h = u = l; h; h = Hr(h)) f++; for (h = 0, m = p; m; m = Hr(m)) h++; for (; 0 < f - h;) u = Hr(u), - f--; + f--; for (; 0 < h - f;) p = Hr(p), - h--; + h--; for (; f--;) { if (u === p || null !== p && u === p.alternate) break e; u = Hr(u), p = Hr(p) @@ -2198,8 +2198,8 @@ function xi(e) { return e[hi] || null } - var ki = [], - wi = -1; + var wi = [], + ki = -1; function Si(e) { return { @@ -2208,11 +2208,11 @@ } function Ei(e) { - 0 > wi || (e.current = ki[wi], ki[wi] = null, wi--) + 0 > ki || (e.current = wi[ki], wi[ki] = null, ki--) } function Oi(e, t) { - wi++, ki[wi] = e.current, e.current = t + ki++, wi[ki] = e.current, e.current = t } var Ii = {}, Ci = Si(Ii), @@ -2441,12 +2441,12 @@ ba = _a = ya = null } - function ka(e) { + function wa(e) { var t = va.current; Ei(va), e._currentValue = t } - function wa(e, t, n) { + function ka(e, t, n) { for (; null !== e;) { var r = e.alternate; if ((e.childLanes & t) !== t ? (e.childLanes |= t, null !== r && (r.childLanes |= t)) : null !== r && (r.childLanes & t) !== t && (r.childLanes |= t), e === n) break; @@ -2462,10 +2462,10 @@ var t = e._currentValue; if (ba !== e) if (e = { - context: e, - memoizedValue: t, - next: null - }, null === _a) { + context: e, + memoizedValue: t, + next: null + }, null === _a) { if (null === ya) throw Error(a(308)); _a = e, ya.dependencies = { lanes: 0, @@ -2780,7 +2780,7 @@ function c(e, t, n, r) { var a = n.type; - return a === w ? d(e, t, n.props.children, r, n.key) : null !== t && (t.elementType === a || "object" === typeof a && null !== a && a.$$typeof === R && Ka(a) === t.type) ? ((r = i(t, n.props)).ref = Wa(e, t, n), r.return = e, r) : ((r = Lc(n.type, n.key, n.props, null, e.mode, r)).ref = Wa(e, t, n), r.return = e, r) + return a === k ? d(e, t, n.props.children, r, n.key) : null !== t && (t.elementType === a || "object" === typeof a && null !== a && a.$$typeof === R && Ka(a) === t.type) ? ((r = i(t, n.props)).ref = Wa(e, t, n), r.return = e, r) : ((r = Lc(n.type, n.key, n.props, null, e.mode, r)).ref = Wa(e, t, n), r.return = e, r) } function u(e, t, n, r) { @@ -2797,7 +2797,7 @@ switch (t.$$typeof) { case x: return (n = Lc(t.type, t.key, t.props, null, e.mode, n)).ref = Wa(e, null, t), n.return = e, n; - case k: + case w: return (t = Fc(t, e.mode, n)).return = e, t; case R: return p(e, (0, t._init)(t._payload), n) @@ -2815,7 +2815,7 @@ switch (n.$$typeof) { case x: return n.key === i ? c(e, t, n, r) : null; - case k: + case w: return n.key === i ? u(e, t, n, r) : null; case R: return h(e, t, (i = n._init)(n._payload), r) @@ -2832,7 +2832,7 @@ switch (r.$$typeof) { case x: return c(t, e = e.get(null === r.key ? n : r.key) || null, r, i); - case k: + case w: return u(t, e = e.get(null === r.key ? n : r.key) || null, r, i); case R: return f(e, t, n, (0, r._init)(r._payload), i) @@ -2888,13 +2888,13 @@ })), ia && Xi(i, g), u } return function e(r, a, o, l) { - if ("object" === typeof o && null !== o && o.type === w && null === o.key && (o = o.props.children), "object" === typeof o && null !== o) { + if ("object" === typeof o && null !== o && o.type === k && null === o.key && (o = o.props.children), "object" === typeof o && null !== o) { switch (o.$$typeof) { case x: e: { for (var c = o.key, u = a; null !== u;) { if (u.key === c) { - if ((c = o.type) === w) { + if ((c = o.type) === k) { if (7 === u.tag) { n(r, u.sibling), (a = i(u, o.props.children)).return = r, r = a; break e @@ -2908,10 +2908,10 @@ } t(r, u), u = u.sibling } - o.type === w ? ((a = Nc(o.props.children, r.mode, l, o.key)).return = r, r = a) : ((l = Lc(o.type, o.key, o.props, null, r.mode, l)).ref = Wa(r, a, o), l.return = r, r = l) + o.type === k ? ((a = Nc(o.props.children, r.mode, l, o.key)).return = r, r = a) : ((l = Lc(o.type, o.key, o.props, null, r.mode, l)).ref = Wa(r, a, o), l.return = r, r = l) } return s(r); - case k: + case w: e: { for (u = o.key; null !== a;) { if (a.key === u) { @@ -2924,7 +2924,7 @@ } t(r, a), a = a.sibling }(a = Fc(o, r.mode, l)).return = r, - r = a + r = a } return s(r); case R: @@ -3014,11 +3014,11 @@ bo = 0, xo = 0; - function ko() { + function wo() { throw Error(a(321)) } - function wo(e, t) { + function ko(e, t) { if (null === t) return !1; for (var n = 0; n < t.length && n < e.length; n++) if (!sr(e[n], t[n])) return !1; @@ -3238,7 +3238,7 @@ var a = void 0; if (null !== go) { var o = go.memoizedState; - if (a = o.destroy, null !== r && wo(r, o.deps)) return void(i.memoizedState = zo(t, n, a, r)) + if (a = o.destroy, null !== r && ko(r, o.deps)) return void(i.memoizedState = zo(t, n, a, r)) } mo.flags |= e, i.memoizedState = zo(1 | t, n, a, r) } @@ -3277,14 +3277,14 @@ var n = Io(); t = void 0 === t ? null : t; var r = n.memoizedState; - return null !== r && null !== t && wo(t, r[1]) ? r[0] : (n.memoizedState = [e, t], e) + return null !== r && null !== t && ko(t, r[1]) ? r[0] : (n.memoizedState = [e, t], e) } function Zo(e, t) { var n = Io(); t = void 0 === t ? null : t; var r = n.memoizedState; - return null !== r && null !== t && wo(t, r[1]) ? r[0] : (e = e(), n.memoizedState = [e, t], e) + return null !== r && null !== t && ko(t, r[1]) ? r[0] : (e = e(), n.memoizedState = [e, t], e) } function Xo(e, t, n) { @@ -3310,12 +3310,12 @@ function ts(e, t, n) { var r = tc(e); if (n = { - lane: r, - action: n, - hasEagerState: !1, - eagerState: null, - next: null - }, rs(e)) is(t, n); + lane: r, + action: n, + hasEagerState: !1, + eagerState: null, + next: null + }, rs(e)) is(t, n); else if (null !== (n = Ca(e, t, n, r))) { nc(n, e, r, ec()), as(n, t, r) } @@ -3364,22 +3364,22 @@ } var os = { readContext: Ea, - useCallback: ko, - useContext: ko, - useEffect: ko, - useImperativeHandle: ko, - useInsertionEffect: ko, - useLayoutEffect: ko, - useMemo: ko, - useReducer: ko, - useRef: ko, - useState: ko, - useDebugValue: ko, - useDeferredValue: ko, - useTransition: ko, - useMutableSource: ko, - useSyncExternalStore: ko, - useId: ko, + useCallback: wo, + useContext: wo, + useEffect: wo, + useImperativeHandle: wo, + useInsertionEffect: wo, + useLayoutEffect: wo, + useMemo: wo, + useReducer: wo, + useRef: wo, + useState: wo, + useDebugValue: wo, + useDeferredValue: wo, + useTransition: wo, + useMutableSource: wo, + useSyncExternalStore: wo, + useId: wo, unstable_isNewReconciler: !1 }, ss = { @@ -3610,13 +3610,13 @@ t.child = null === e ? Za(t, null, n, r) : Qa(t, e.child, n, r) } - function ks(e, t, n, r, i) { + function ws(e, t, n, r, i) { n = n.render; var a = t.ref; return Sa(t, i), r = So(e, t, n, r, a, i), n = Eo(), null === e || bs ? (ia && n && ea(t), t.flags |= 1, xs(e, t, r, i), t.child) : (t.updateQueue = e.updateQueue, t.flags &= -2053, e.lanes &= ~i, $s(e, t, i)) } - function ws(e, t, n, r, i) { + function ks(e, t, n, r, i) { if (null === e) { var a = n.type; return "function" !== typeof a || Rc(a) || void 0 !== a.defaultProps || null !== n.compare || void 0 !== n.defaultProps ? ((e = Lc(n.type, null, r, t, t.mode, i)).ref = t.ref, e.return = t, t.child = e) : (t.tag = 15, t.type = a, Ss(e, t, a, r, i)) @@ -3829,7 +3829,7 @@ function Vs(e, t, n) { e.lanes |= t; var r = e.alternate; - null !== r && (r.lanes |= t), wa(e.return, t, n) + null !== r && (r.lanes |= t), ka(e.return, t, n) } function Us(e, t, n, r, i) { @@ -4133,7 +4133,7 @@ case 4: return io(), null === e && Br(t.stateNode.containerInfo), Ws(t), null; case 10: - return ka(t.type._context), Ws(t), null; + return wa(t.type._context), Ws(t), null; case 19: if (Ei(so), null === (o = t.memoizedState)) return Ws(t), null; if (r = 0 !== (128 & t.flags), null === (l = o.rendering)) @@ -4189,7 +4189,7 @@ case 4: return io(), null; case 10: - return ka(t.type._context), null; + return wa(t.type._context), null; case 22: case 23: return dc(), null; @@ -4247,7 +4247,7 @@ for (a in l) !l.hasOwnProperty(a) || c && c.hasOwnProperty(a) || (n || (n = {}), n[a] = ""); for (a in c) c.hasOwnProperty(a) && l[a] !== c[a] && (n || (n = {}), n[a] = c[a]) } else n || (o || (o = []), o.push(u, n)), n = c; - else "dangerouslySetInnerHTML" === u ? (c = c ? c.__html : void 0, l = l ? l.__html : void 0, null != c && l !== c && (o = o || []).push(u, c)) : "children" === u ? "string" !== typeof c && "number" !== typeof c || (o = o || []).push(u, "" + c) : "suppressContentEditableWarning" !== u && "suppressHydrationWarning" !== u && (s.hasOwnProperty(u) ? (null != c && "onScroll" === u && zr("scroll", e), o || l === c || (o = [])) : (o = o || []).push(u, c)) + else "dangerouslySetInnerHTML" === u ? (c = c ? c.__html : void 0, l = l ? l.__html : void 0, null != c && l !== c && (o = o || []).push(u, c)) : "children" === u ? "string" !== typeof c && "number" !== typeof c || (o = o || []).push(u, "" + c) : "suppressContentEditableWarning" !== u && "suppressHydrationWarning" !== u && (s.hasOwnProperty(u) ? (null != c && "onScroll" === u && zr("scroll", e), o || l === c || (o = [])) : (o = o || []).push(u, c)) } n && (o = o || []).push("style", n); var u = o; @@ -4669,7 +4669,7 @@ s = Ys; var c = Qs; if (Ys = o, (Qs = l) && !c) - for (Xs = i; null !== Xs;) l = (o = Xs).child, 22 === o.tag && null !== o.memoizedState ? kl(i) : null !== l ? (l.return = o, Xs = l) : kl(i); + for (Xs = i; null !== Xs;) l = (o = Xs).child, 22 === o.tag && null !== o.memoizedState ? wl(i) : null !== l ? (l.return = o, Xs = l) : wl(i); for (; null !== a;) Xs = a, _l(a, t, n), a = a.sibling; Xs = i, Ys = s, Qs = c } @@ -4786,7 +4786,7 @@ } } - function kl(e) { + function wl(e) { for (; null !== Xs;) { var t = Xs; try { @@ -4841,7 +4841,7 @@ Xs = t.return } } - var wl, Sl = Math.ceil, + var kl, Sl = Math.ceil, El = b.ReactCurrentDispatcher, Ol = b.ReactCurrentOwner, Il = b.ReactCurrentBatchConfig, @@ -4926,7 +4926,7 @@ function ic(e, t) { if (Xl = -1, Jl = 0, 0 !== (6 & Cl)) throw Error(a(327)); var n = e.callbackNode; - if (kc() && e.callbackNode !== n) return null; + if (wc() && e.callbackNode !== n) return null; var r = pt(e, e === Al ? Tl : 0); if (0 === r) return null; if (0 !== (30 & r) || 0 !== (r & e.expiredLanes) || t) t = gc(e, r); @@ -4948,33 +4948,33 @@ if (6 === t) sc(e, r); else { if (i = e.current.alternate, 0 === (30 & r) && ! function(e) { - for (var t = e;;) { - if (16384 & t.flags) { - var n = t.updateQueue; - if (null !== n && null !== (n = n.stores)) - for (var r = 0; r < n.length; r++) { - var i = n[r], - a = i.getSnapshot; - i = i.value; - try { - if (!sr(a(), i)) return !1 - } catch (s) { - return !1 - } + for (var t = e;;) { + if (16384 & t.flags) { + var n = t.updateQueue; + if (null !== n && null !== (n = n.stores)) + for (var r = 0; r < n.length; r++) { + var i = n[r], + a = i.getSnapshot; + i = i.value; + try { + if (!sr(a(), i)) return !1 + } catch (s) { + return !1 } - } - if (n = t.child, 16384 & t.subtreeFlags && null !== n) n.return = t, t = n; - else { - if (t === e) break; - for (; null === t.sibling;) { - if (null === t.return || t.return === e) return !0; - t = t.return } - t.sibling.return = t.return, t = t.sibling - } } - return !0 - }(i) && (2 === (t = gc(e, r)) && (0 !== (o = ft(e)) && (r = o, t = ac(e, o))), 1 === t)) throw n = Nl, pc(e, 0), sc(e, r), rc(e, Ze()), n; + if (n = t.child, 16384 & t.subtreeFlags && null !== n) n.return = t, t = n; + else { + if (t === e) break; + for (; null === t.sibling;) { + if (null === t.return || t.return === e) return !0; + t = t.return + } + t.sibling.return = t.return, t = t.sibling + } + } + return !0 + }(i) && (2 === (t = gc(e, r)) && (0 !== (o = ft(e)) && (r = o, t = ac(e, o))), 1 === t)) throw n = Nl, pc(e, 0), sc(e, r), rc(e, Ze()), n; switch (e.finishedWork = i, e.finishedLanes = r, t) { case 0: case 1: @@ -5034,7 +5034,7 @@ function lc(e) { if (0 !== (6 & Cl)) throw Error(a(327)); - kc(); + wc(); var t = pt(e, 0); if (0 === (1 & t)) return rc(e, Ze()), null; var n = gc(e, t); @@ -5058,7 +5058,7 @@ } function uc(e) { - null !== Kl && 0 === Kl.tag && 0 === (6 & Cl) && kc(); + null !== Kl && 0 === Kl.tag && 0 === (6 & Cl) && wc(); var t = Cl; Cl |= 1; var n = Il.transition, @@ -5098,7 +5098,7 @@ Ei(so); break; case 10: - ka(r.type._context); + wa(r.type._context); break; case 22: case 23: @@ -5174,8 +5174,8 @@ } o = c = us(c, l), 4 !== Ll && (Ll = 2), - null === zl ? zl = [o] : zl.push(o), - o = s;do { + null === zl ? zl = [o] : zl.push(o), + o = s;do { switch (o.tag) { case 3: o.flags |= 65536, t &= -t, o.lanes |= t, ja(o, fs(0, c, t)); @@ -5233,7 +5233,7 @@ } function _c(e) { - var t = wl(e.alternate, e, Rl); + var t = kl(e.alternate, e, Rl); e.memoizedProps = e.pendingProps, null === t ? bc(e) : Pl = t, Ol.current = null } @@ -5261,7 +5261,7 @@ Il.transition = null, _t = 1, function(e, t, n, r) { do { - kc() + wc() } while (null !== Kl); if (0 !== (6 & Cl)) throw Error(a(327)); n = e.finishedWork; @@ -5271,17 +5271,17 @@ e.callbackNode = null, e.callbackPriority = 0; var o = n.lanes | n.childLanes; if (function(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 - ot(n), - a = 1 << i; - t[i] = 0, r[i] = -1, e[i] = -1, n &= ~a - } - }(e, o), e === Al && (Pl = Al = null, Tl = 0), 0 === (2064 & n.subtreeFlags) && 0 === (2064 & n.flags) || Hl || (Hl = !0, Ac(tt, (function() { - return kc(), null - }))), o = 0 !== (15990 & n.flags), 0 !== (15990 & n.subtreeFlags) || o) { + 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 - ot(n), + a = 1 << i; + t[i] = 0, r[i] = -1, e[i] = -1, n &= ~a + } + }(e, o), e === Al && (Pl = Al = null, Tl = 0), 0 === (2064 & n.subtreeFlags) && 0 === (2064 & n.flags) || Hl || (Hl = !0, Ac(tt, (function() { + return wc(), null + }))), o = 0 !== (15990 & n.flags), 0 !== (15990 & n.subtreeFlags) || o) { o = Il.transition, Il.transition = null; var s = _t; _t = 1; @@ -5334,9 +5334,9 @@ } } else n = null; for (ti = { - focusedElem: e, - selectionRange: n - }, $t = !1, Xs = t; null !== Xs;) + focusedElem: e, + selectionRange: n + }, $t = !1, Xs = t; null !== Xs;) if (e = (t = Xs).child, 0 !== (1028 & t.subtreeFlags) && null !== e) e.return = t, Xs = e; else for (; null !== Xs;) { @@ -5381,16 +5381,16 @@ }(e, n), gl(n, e), fr(ti), $t = !!ei, ti = ei = null, e.current = n, yl(n, e, i), Qe(), Cl = l, _t = s, Il.transition = o } else e.current = n; if (Hl && (Hl = !1, Kl = e, Yl = i), o = e.pendingLanes, 0 === o && (Wl = null), function(e) { - if (at && "function" === typeof at.onCommitFiberRoot) try { - at.onCommitFiberRoot(it, e, void 0, 128 === (128 & e.current.flags)) - } catch (t) {} - }(n.stateNode), rc(e, Ze()), null !== t) + if (at && "function" === typeof at.onCommitFiberRoot) try { + at.onCommitFiberRoot(it, e, void 0, 128 === (128 & e.current.flags)) + } catch (t) {} + }(n.stateNode), rc(e, Ze()), null !== t) for (r = e.onRecoverableError, n = 0; n < t.length; n++) i = t[n], r(i.value, { componentStack: i.stack, digest: i.digest }); if ($l) throw $l = !1, e = ql, ql = null, e; - 0 !== (1 & Yl) && 0 !== e.tag && kc(), o = e.pendingLanes, 0 !== (1 & o) ? e === Zl ? Ql++ : (Ql = 0, Zl = e) : Ql = 0, Bi() + 0 !== (1 & Yl) && 0 !== e.tag && wc(), o = e.pendingLanes, 0 !== (1 & o) ? e === Zl ? Ql++ : (Ql = 0, Zl = e) : Ql = 0, Bi() }(e, t, n, r) } finally { Il.transition = i, _t = r @@ -5398,7 +5398,7 @@ return null } - function kc() { + function wc() { if (null !== Kl) { var e = bt(Yl), t = Il.transition, @@ -5484,8 +5484,8 @@ case 15: rl(9, l) } - } catch (k) { - Sc(l, l.return, k) + } catch (w) { + Sc(l, l.return, w) } if (l === s) { Xs = null; @@ -5501,7 +5501,7 @@ } if (Cl = i, Bi(), at && "function" === typeof at.onPostCommitFiberRoot) try { at.onPostCommitFiberRoot(it, e) - } catch (k) {} + } catch (w) {} r = !0 } return r @@ -5512,16 +5512,16 @@ return !1 } - function wc(e, t, n) { + function kc(e, t, n) { e = La(e, t = fs(0, t = us(n, t), 1), 1), t = ec(), null !== e && (vt(e, 1, t), rc(e, t)) } function Sc(e, t, n) { - if (3 === e.tag) wc(e, e, n); + if (3 === e.tag) kc(e, e, n); else for (; null !== t;) { if (3 === t.tag) { - wc(t, e, n); + kc(t, e, n); break } if (1 === t.tag) { @@ -5598,39 +5598,39 @@ if (r = e, "function" === typeof e) Rc(e) && (s = 1); else if ("string" === typeof e) s = 5; else e: switch (e) { - case w: - return Nc(n.children, i, o, t); - case S: - s = 8, i |= 8; - break; - case E: - return (e = Tc(12, n, t, 2 | i)).elementType = E, e.lanes = o, e; - case A: - return (e = Tc(13, n, t, i)).elementType = A, e.lanes = o, e; - case P: - return (e = Tc(19, n, t, i)).elementType = P, e.lanes = o, e; - case D: - return jc(n, i, o, t); - default: - if ("object" === typeof e && null !== e) switch (e.$$typeof) { - case O: - s = 10; - break e; - case I: - s = 9; - break e; - case C: - s = 11; - break e; - case T: - s = 14; - break e; - case R: - s = 16, r = null; - break e - } - throw Error(a(130, null == e ? e : typeof e, "")) - } + case k: + return Nc(n.children, i, o, t); + case S: + s = 8, i |= 8; + break; + case E: + return (e = Tc(12, n, t, 2 | i)).elementType = E, e.lanes = o, e; + case A: + return (e = Tc(13, n, t, i)).elementType = A, e.lanes = o, e; + case P: + return (e = Tc(19, n, t, i)).elementType = P, e.lanes = o, e; + case D: + return jc(n, i, o, t); + default: + if ("object" === typeof e && null !== e) switch (e.$$typeof) { + case O: + s = 10; + break e; + case I: + s = 9; + break e; + case C: + s = 11; + break e; + case T: + s = 14; + break e; + case R: + s = 16, r = null; + break e + } + throw Error(a(130, null == e ? e : typeof e, "")) + } return (t = Tc(s, n, t, i)).elementType = e, t.type = r, t.lanes = o, t } @@ -5673,7 +5673,7 @@ function Uc(e, t, n) { var r = 3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : null; return { - $$typeof: k, + $$typeof: w, key: null == r ? null : "" + r, children: e, containerInfo: t, @@ -5734,7 +5734,7 @@ function Hc(e, t) { Wc(e, t), (e = e.alternate) && Wc(e, t) } - wl = function(e, t, n) { + kl = function(e, t, n) { if (null !== e) if (e.memoizedProps !== t.pendingProps || Ai.current) bs = !0; else { @@ -5790,13 +5790,13 @@ r = t.elementType; e: { switch (Gs(e, t), e = t.pendingProps, r = (i = r._init)(r._payload), t.type = r, i = t.tag = function(e) { - if ("function" === typeof e) return Rc(e) ? 1 : 0; - if (void 0 !== e && null !== e) { - if ((e = e.$$typeof) === C) return 11; - if (e === T) return 14 - } - return 2 - }(r), e = ga(r, e), i) { + if ("function" === typeof e) return Rc(e) ? 1 : 0; + if (void 0 !== e && null !== e) { + if ((e = e.$$typeof) === C) return 11; + if (e === T) return 14 + } + return 2 + }(r), e = ga(r, e), i) { case 0: t = Is(null, t, r, e, n); break e; @@ -5804,10 +5804,10 @@ t = Cs(null, t, r, e, n); break e; case 11: - t = ks(null, t, r, e, n); + t = ws(null, t, r, e, n); break e; case 14: - t = ws(null, t, r, ga(r.type, e), n); + t = ks(null, t, r, ga(r.type, e), n); break e } throw Error(a(306, r, "")) @@ -5820,18 +5820,18 @@ case 3: e: { if (Ps(t), null === e) throw Error(a(387));r = t.pendingProps, - i = (o = t.memoizedState).element, - Ra(e, t), - Ma(t, r, null, n); + i = (o = t.memoizedState).element, + Ra(e, t), + Ma(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) { + element: r, + isDehydrated: !1, + cache: s.cache, + pendingSuspenseBoundaries: s.pendingSuspenseBoundaries, + transitions: s.transitions + }, t.updateQueue.baseState = o, t.memoizedState = o, 256 & t.flags) { t = Ts(e, t, r, n, i = us(Error(a(423)), t)); break e } @@ -5859,7 +5859,7 @@ case 4: return ro(t, t.stateNode.containerInfo), r = t.pendingProps, null === e ? t.child = Qa(t, null, r, n) : xs(e, t, r, n), t.child; case 11: - return r = t.type, i = t.pendingProps, ks(e, t, r, i = t.elementType === r ? i : ga(r, i), n); + return r = t.type, i = t.pendingProps, ws(e, t, r, i = t.elementType === r ? i : ga(r, i), n); case 7: return xs(e, t, t.pendingProps, n), t.child; case 8: @@ -5888,7 +5888,7 @@ null === d ? c.next = c : (c.next = d.next, d.next = c), u.pending = c } } - o.lanes |= n, null !== (c = o.alternate) && (c.lanes |= n), wa(o.return, n, t), l.lanes |= n; + o.lanes |= n, null !== (c = o.alternate) && (c.lanes |= n), ka(o.return, n, t), l.lanes |= n; break } c = c.next @@ -5896,7 +5896,7 @@ } else if (10 === o.tag) s = o.type === t.type ? null : o.child; else if (18 === o.tag) { if (null === (s = o.return)) throw Error(a(341)); - s.lanes |= n, null !== (l = s.alternate) && (l.lanes |= n), wa(s, n, t), s = o.sibling + s.lanes |= n, null !== (l = s.alternate) && (l.lanes |= n), ka(s, n, t), s = o.sibling } else s = o.child; if (null !== s) s.return = o; else @@ -5914,13 +5914,13 @@ o = s } xs(e, t, i.children, n), - t = t.child + t = t.child } return t; case 9: return i = t.type, r = t.pendingProps.children, Sa(t, n), r = r(i = Ea(i)), t.flags |= 1, xs(e, t, r, n), t.child; case 14: - return i = ga(r = t.type, t.pendingProps), ws(e, t, r, i = ga(r.type, i), n); + return i = ga(r = t.type, t.pendingProps), ks(e, t, r, i = ga(r.type, i), n); case 15: return Ss(e, t, t.type, t.pendingProps, n); case 17: @@ -6035,13 +6035,13 @@ } })), Hc(e, 1) } - }, kt = function(e) { + }, wt = function(e) { if (13 === e.tag) { var t = Aa(e, 134217728); if (null !== t) nc(t, e, 134217728, ec()); Hc(e, 134217728) } - }, wt = function(e) { + }, kt = function(e) { if (13 === e.tag) { var t = tc(e), n = Aa(e, t); @@ -6057,7 +6057,7 @@ } finally { _t = n } - }, ke = function(e, t, n) { + }, we = function(e, t, n) { switch (t) { case "input": if (X(e, n), t = n.name, "radio" === n.type && null != t) { @@ -6262,8 +6262,8 @@ var b = _.prototype = new y; b.constructor = _, m(b, v.prototype), b.isPureReactComponent = !0; var x = Array.isArray, - k = Object.prototype.hasOwnProperty, - w = { + w = Object.prototype.hasOwnProperty, + k = { current: null }, S = { @@ -6278,7 +6278,7 @@ o = null, s = null; if (null != t) - for (i in void 0 !== t.ref && (s = t.ref), void 0 !== t.key && (o = "" + t.key), t) k.call(t, i) && !S.hasOwnProperty(i) && (a[i] = t[i]); + for (i in void 0 !== t.ref && (s = t.ref), void 0 !== t.key && (o = "" + t.key), t) w.call(t, i) && !S.hasOwnProperty(i) && (a[i] = t[i]); var l = arguments.length - 2; if (1 === l) a.children = r; else if (1 < l) { @@ -6293,7 +6293,7 @@ key: o, ref: s, props: a, - _owner: w.current + _owner: k.current } } @@ -6348,10 +6348,10 @@ var u = a + C(s = e[c], c); l += A(s, t, i, u, o) } else if (u = function(e) { - return null === e || "object" !== typeof e ? null : "function" === typeof(e = h && e[h] || e["@@iterator"]) ? e : null - }(e), "function" === typeof u) - for (e = u.call(e), c = 0; !(s = e.next()).done;) l += A(s = s.value, t, i, u = a + C(s, c++), o); - else if ("object" === s) throw t = String(e), Error("Objects are not valid as a React child (found: " + ("[object Object]" === t ? "object with keys {" + Object.keys(e).join(", ") + "}" : t) + "). If you meant to render a collection of children, use an array instead."); + return null === e || "object" !== typeof e ? null : "function" === typeof(e = h && e[h] || e["@@iterator"]) ? e : null + }(e), "function" === typeof u) + for (e = u.call(e), c = 0; !(s = e.next()).done;) l += A(s = s.value, t, i, u = a + C(s, c++), o); + else if ("object" === s) throw t = String(e), Error("Objects are not valid as a React child (found: " + ("[object Object]" === t ? "object with keys {" + Object.keys(e).join(", ") + "}" : t) + "). If you meant to render a collection of children, use an array instead."); return l } @@ -6385,7 +6385,7 @@ L = { ReactCurrentDispatcher: R, ReactCurrentBatchConfig: D, - ReactCurrentOwner: w + ReactCurrentOwner: k }; t.Children = { map: P, @@ -6416,8 +6416,8 @@ o = e.ref, s = e._owner; if (null != t) { - if (void 0 !== t.ref && (o = t.ref, s = w.current), void 0 !== t.key && (a = "" + t.key), e.type && e.type.defaultProps) var l = e.type.defaultProps; - for (c in t) k.call(t, c) && !S.hasOwnProperty(c) && (i[c] = void 0 === t[c] && void 0 !== l ? l[c] : t[c]) + if (void 0 !== t.ref && (o = t.ref, s = k.current), void 0 !== t.key && (a = "" + t.key), e.type && e.type.defaultProps) var l = e.type.defaultProps; + for (c in t) w.call(t, c) && !S.hasOwnProperty(c) && (i[c] = void 0 === t[c] && void 0 !== l ? l[c] : t[c]) } var c = arguments.length - 2; if (1 === c) i.children = r; @@ -6603,14 +6603,14 @@ function x(e) { if (g = !1, b(e), !m) - if (null !== r(c)) m = !0, D(k); + if (null !== r(c)) m = !0, D(w); else { var t = r(u); null !== t && L(x, t.startTime - e) } } - function k(e, n) { + function w(e, n) { m = !1, g && (g = !1, y(O), O = -1), f = !0; var a = h; try { @@ -6634,7 +6634,7 @@ } } "undefined" !== typeof navigator && void 0 !== navigator.scheduling && void 0 !== navigator.scheduling.isInputPending && navigator.scheduling.isInputPending.bind(navigator.scheduling); - var w, S = !1, + var k, S = !1, E = null, O = -1, I = 5, @@ -6652,25 +6652,25 @@ try { n = E(!0, e) } finally { - n ? w() : (S = !1, E = null) + n ? k() : (S = !1, E = null) } } else S = !1 } - if ("function" === typeof _) w = function() { + if ("function" === typeof _) k = function() { _(P) }; else if ("undefined" !== typeof MessageChannel) { var T = new MessageChannel, R = T.port2; - T.port1.onmessage = P, w = function() { + T.port1.onmessage = P, k = function() { R.postMessage(null) } - } else w = function() { + } else k = function() { v(P, 0) }; function D(e) { - E = e, S || (S = !0, w()) + E = e, S || (S = !0, k()) } function L(e, n) { @@ -6681,7 +6681,7 @@ t.unstable_IdlePriority = 5, t.unstable_ImmediatePriority = 1, t.unstable_LowPriority = 4, t.unstable_NormalPriority = 3, t.unstable_Profiling = null, t.unstable_UserBlockingPriority = 2, t.unstable_cancelCallback = function(e) { e.callback = null }, t.unstable_continueExecution = function() { - m || f || (m = !0, D(k)) + m || f || (m = !0, D(w)) }, t.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") : I = 0 < e ? Math.floor(1e3 / e) : 5 }, t.unstable_getCurrentPriorityLevel = function() { @@ -6748,7 +6748,7 @@ startTime: a, expirationTime: s = a + s, sortIndex: -1 - }, a > o ? (e.sortIndex = a, n(u, e), null === r(c) && e === r(u) && (g ? (y(O), O = -1) : g = !0, L(x, a - o))) : (e.sortIndex = s, n(c, e), m || f || (m = !0, D(k))), e + }, a > o ? (e.sortIndex = a, n(u, e), null === r(c) && e === r(u) && (g ? (y(O), O = -1) : g = !0, L(x, a - o))) : (e.sortIndex = s, n(c, e), m || f || (m = !0, D(w))), e }, t.unstable_shouldYield = A, t.unstable_wrapCallback = function(e) { var t = h; return function() { @@ -6933,12 +6933,12 @@ } } - function k(e) { + function w(e) { return x(e) === d } t.AsyncMode = u, t.ConcurrentMode = d, t.ContextConsumer = c, t.ContextProvider = l, t.Element = r, t.ForwardRef = p, t.Fragment = a, t.Lazy = g, t.Memo = m, t.Portal = i, t.Profiler = s, t.StrictMode = o, t.Suspense = h, t.isAsyncMode = function(e) { - return k(e) || x(e) === u - }, t.isConcurrentMode = k, t.isContextConsumer = function(e) { + return w(e) || x(e) === u + }, t.isConcurrentMode = w, t.isContextConsumer = function(e) { return x(e) === c }, t.isContextProvider = function(e) { return x(e) === l @@ -7377,7 +7377,8 @@ value: !0 }), t.dialog = void 0, t.dialog = { SHOW_OPEN_DIALOG: "dialog@show-open-dialog", - SHOW_LIBRARY_FOLDER_DIALOG: "dialog@show-library-folder" + SHOW_LIBRARY_FOLDER_DIALOG: "dialog@show-library-folder", + SHOW_FILESYSTEM_DIALOG: "dialog@show-filesystem" } }, 8762: function(e, t, n) { @@ -7897,8 +7898,8 @@ "use strict"; var n; Object.defineProperty(t, "__esModule", { - value: !0 - }), t.AnalyticsEventName = void 0, + value: !0 + }), t.AnalyticsEventName = void 0, function(e) { e.APP_OPEN = "App:Open", e.APP_CLOSE = "App:Close", e.APP_SIGNEDIN = "App:SignedIn", e.APP_SIGNEDOUT = "App:SignedOut", e.APP_API_ERROR = "App:Api:Error", e.APP_INSTALL_START = "App:Install:Start", e.APP_INSTALL_STOP = "App:Install:Stop", e.APP_INSTALL_SUCCESS = "App:Install:Success", e.APP_INSTALL_ERROR = "App:Install:Error", e.APP_VERIFY_START = "App:Verify:Start", e.APP_VERIFY_STOP = "App:Verify:Stop", e.APP_VERIFY_SUCCESS = "App:Verify:Success", e.APP_VERIFY_ERROR = "App:Verify:Error", e.APP_UPDATE_START = "App:Update:Start", e.APP_UPDATE_STOP = "App:Update:Stop", e.APP_UPDATE_SUCCESS = "App:Update:Success", e.APP_UPDATE_ERROR = "App:Update:Error", e.APP_UNINSTALL_START = "App:Uninstall:Start", e.APP_UNINSTALL_SUCCESS = "App:Uninstall:Success", e.APP_UNINSTALL_ERROR = "App:Uninstall:Error", e.APP_LAUNCH_START = "App:Launch:Start", e.APP_LAUNCH_STOP = "App:Launch:Stop", e.APP_LAUNCH_ERROR = "App:Launch:Error", e.OLD_APP_LAUNCH_START = "App:Launcher:Start", e.OLD_APP_LAUNCH_STOP = "App:Launcher:Stop", e.OLD_APP_LAUNCH_ERROR = "App:Launcher:Error" }(n || (t.AnalyticsEventName = n = {})) @@ -7907,8 +7908,8 @@ "use strict"; var n; Object.defineProperty(t, "__esModule", { - value: !0 - }), t.AutoUpdateDialogStates = void 0, + value: !0 + }), t.AutoUpdateDialogStates = void 0, function(e) { e.AVAILABLE = "available", e.NOT_AVAILABLE = "not-available", e.QUIT_GAME = "quit-game", e.ERROR = "error" }(n || (t.AutoUpdateDialogStates = n = {})) @@ -7917,8 +7918,8 @@ "use strict"; var n; Object.defineProperty(t, "__esModule", { - value: !0 - }), t.ConnectionMode = void 0, + value: !0 + }), t.ConnectionMode = void 0, function(e) { e.ONLINE = "online", e.OFFLINE = "offline", e.NO_CONNECTION = "no-connection" }(n || (t.ConnectionMode = n = {})) @@ -7938,10 +7939,10 @@ }; class n extends Error { constructor({ - message: e = "Unknown Error", - code: r = t.errorsNames.ERR_UNKNOWN, - payload: i = null - }) { + message: e = "Unknown Error", + code: r = t.errorsNames.ERR_UNKNOWN, + payload: i = null + }) { super(e), Object.setPrototypeOf(this, n.prototype), this.code = r, this.payload = i } } @@ -7972,7 +7973,7 @@ "use strict"; Object.defineProperty(t, "__esModule", { value: !0 - }), t.CancelError = t.Error21Error = t.NetworkDefaultError = t.NetworkTooManyFilesFailedError = t.NetworkFailedToRecieveHandshakeError = t.NetworkCouldNotResolveHostError = t.ExceptionU00Error = t.InvalidArgumentTypeError = t.P4KError = t.IOError = t.FixPermissionError = t.BasePackGenericError = t.DownloadUnsuccessfullError = t.PatcherGenericError = t.BasePackP4kCorruptedError = t.PatcherUnknownNetworkError = t.RetrieveManifestError = t.Pk4CorruptedError = t.FileInUseError = t.WritePermissionsError = t.DiskFullError = t.NotMappedError = t.MDFileHeaderNotFoundError = t.InvalidMDFileHeaderError = t.InvalidMDFileError = t.InstallerError = t.LauncherSpecificInstallerErrorsCodes = t.InstallerErrorsNames = t.InitialDownloadErrorsNames = t.PatcherErrorsNames = void 0; + }), t.CancelError = t.Error21Error = t.NetworkDefaultError = t.NetworkTooManyFilesFailedError = t.NetworkFailedToRecieveHandshakeError = t.NetworkCouldNotResolveHostError = t.ExceptionU00Error = t.InvalidArgumentTypeError = t.P4KError = t.IOError = t.InstallerSupportPermissionError = t.CreateDirectoryError = t.FixPermissionError = t.BasePackGenericError = t.DownloadUnsuccessfullError = t.PatcherGenericError = t.BasePackP4kCorruptedError = t.PatcherUnknownNetworkError = t.RetrieveManifestError = t.Pk4CorruptedError = t.FileInUseError = t.WritePermissionsError = t.DiskFullError = t.NotMappedError = t.MDFileHeaderNotFoundError = t.InvalidMDFileHeaderError = t.InvalidMDFileError = t.InstallerError = t.LauncherSpecificInstallerErrorsCodes = t.InstallerErrorsNames = t.InitialDownloadErrorsNames = t.PatcherErrorsNames = void 0; const r = n(2700); t.PatcherErrorsNames = { ERR_DISK_FULL: "DiskFullError", @@ -8001,13 +8002,17 @@ ERR_NOT_MAPPED_ERRORS: "NotMappedErrors" }, t.InstallerErrorsNames = Object.assign(Object.assign(Object.assign({}, t.PatcherErrorsNames), t.InitialDownloadErrorsNames), { ERR_INSTALL_UNKNOWN: "GenericInstallerError", + ERR_CREATE_DIRECTORY: "CreateDirectoryError", + ERR_INSTALLER_SUPPORT_PERMISSION: "InstallerSupportPermission", ERR_FIX_PERMISSIONS: "FixPermissionsError", ERR_CANCEL_FAIL: "CancelFailError" }); t.LauncherSpecificInstallerErrorsCodes = Object.assign(Object.assign({ ERR_INSTALL_UNKNOWN: "2000", ERR_FIX_PERMISSIONS: "2001", - ERR_CANCEL_FAIL: "2002" + ERR_CANCEL_FAIL: "2002", + ERR_CREATE_DIRECTORY: "2003", + ERR_INSTALLER_SUPPORT_PERMISSION: "2004" }, { ERR_DISK_FULL: "5000", ERR_WRITE_PERMISSION: "5001", @@ -8036,10 +8041,10 @@ }); class i extends r.GenericError { constructor({ - message: e, - code: n = t.LauncherSpecificInstallerErrorsCodes.ERR_INSTALL_UNKNOWN, - payload: r - }) { + message: e, + code: n = t.LauncherSpecificInstallerErrorsCodes.ERR_INSTALL_UNKNOWN, + payload: r + }) { super({ message: e, code: n, @@ -8194,6 +8199,26 @@ } } t.FixPermissionError = m; + class g extends i { + constructor(e, n) { + super({ + message: e, + code: t.LauncherSpecificInstallerErrorsCodes.ERR_CREATE_DIRECTORY, + payload: n + }), Object.setPrototypeOf(this, g.prototype) + } + } + t.CreateDirectoryError = g; + class v extends i { + constructor(e, n) { + super({ + message: e, + code: t.LauncherSpecificInstallerErrorsCodes.ERR_INSTALLER_SUPPORT_PERMISSION, + payload: n + }), Object.setPrototypeOf(this, v.prototype) + } + } + t.InstallerSupportPermissionError = v; t.IOError = class extends i { constructor(e, n) { super({ @@ -8297,7 +8322,7 @@ message: n, payload: i } = e; - switch (console.log(e), t) { + switch (t) { case r.InstallerErrorsNames.ERR_INVALID_MD_FILE: return new r.InvalidMDFileError(n, i); case r.InstallerErrorsNames.ERR_INVALID_MD_FILE_HEADER: @@ -8328,6 +8353,10 @@ return new r.BasePackGenericError(n, i); case r.InstallerErrorsNames.ERR_FIX_PERMISSIONS: return new r.FixPermissionError(n, i); + case r.InstallerErrorsNames.ERR_CREATE_DIRECTORY: + return new r.CreateDirectoryError(n, i); + case r.InstallerErrorsNames.ERR_INSTALLER_SUPPORT_PERMISSION: + return new r.InstallerSupportPermissionError(n, i); case r.InstallerErrorsNames.ERR_IO_ERROR: return new r.IOError(n, i); case r.InstallerErrorsNames.ERR_P4K_ERROR: @@ -8371,10 +8400,10 @@ }; class i extends r.GenericError { constructor({ - message: e, - code: n = t.LauncherSpecificLaunchErrorCodes.ERR_LAUNCH_UNKNOWN, - payload: r - }) { + message: e, + code: n = t.LauncherSpecificLaunchErrorCodes.ERR_LAUNCH_UNKNOWN, + payload: r + }) { super({ message: e, code: n, @@ -8474,8 +8503,8 @@ "use strict"; var n, r, i; Object.defineProperty(t, "__esModule", { - value: !0 - }), t.InstallerOptions = t.InstallationStatus = t.InstallationType = void 0, + value: !0 + }), t.InstallerOptions = t.InstallationStatus = t.InstallationType = void 0, function(e) { e.INSTALL = "install", e.VERIFY = "verify", e.UPDATE = "update" }(n || (t.InstallationType = n = {})), @@ -8496,8 +8525,8 @@ "use strict"; var n; Object.defineProperty(t, "__esModule", { - value: !0 - }), t.GameChannelStatus = void 0, + value: !0 + }), t.GameChannelStatus = void 0, function(e) { e.AVAILABLE = "available", e.INSTALLED = "installed", e.RUNNING = "running", e.UNINSTALLING = "uninstalling", e.UPDATE_AVAILABLE = "update-available" }(n || (t.GameChannelStatus = n = {})) @@ -8512,8 +8541,8 @@ "use strict"; var n, r, i; Object.defineProperty(t, "__esModule", { - value: !0 - }), t.SystemStatusOrder = t.RSISystemName = t.RSISystemStatus = void 0, + value: !0 + }), t.SystemStatusOrder = t.RSISystemName = t.RSISystemStatus = void 0, function(e) { e.MAJOR = "major", e.PARTIAL = "partial", e.DEGRADED = "degraded", e.MAINTENANCE = "maintenance", e.OPERATIONAL = "operational" }(n || (t.RSISystemStatus = n = {})), @@ -8602,7 +8631,7 @@ "use strict"; n.d(t, { A4: () => _, - Ht: () => k, + Ht: () => w, Kp: () => s, PN: () => o, Rm: () => u, @@ -8743,7 +8772,7 @@ return n && r.length > n ? r.slice(1) : r } - function k(e, t, n = 0) { + function w(e, t, n = 0) { const r = [t, ...e]; return n && r.length > n ? r.slice(0, -1) : r } @@ -8763,9 +8792,9 @@ return t }, o = ({ - client: e, - children: t - }) => (r.useEffect((() => (e.mount(), () => { + client: e, + children: t + }) => (r.useEffect((() => (e.mount(), () => { e.unmount() })), [e]), r.createElement(i.Provider, { value: e @@ -8800,7 +8829,7 @@ var o = {}; e = e || [null, t({}), t([]), t(t)]; for (var s = 2 & i && r; - "object" == typeof s && !~e.indexOf(s); s = t(s)) Object.getOwnPropertyNames(s).forEach((e => o[e] = () => r[e])); + "object" == typeof s && !~e.indexOf(s); s = t(s)) Object.getOwnPropertyNames(s).forEach((e => o[e] = () => r[e])); return o.default = () => r, n.d(a, o), a } })(), n.d = (e, t) => { @@ -8952,8 +8981,18 @@ dialog_warning_logout_game_running_text: "Do you really want to log out of your account while the game is running? Progress might be lost.", dialog_warning_logout_confirm: "Logout", dialog_warning_logout_error: "An error occured while logging out. Your session might have expired try login again", + dialog_warning_duplicate_library_title: "Game Library Already Exists", + dialog_warning_duplicate_library_content: "A Library already exists at the location that you chose. Please select a different location and try again", + dialog_warning_delete_game_library_title: "Delete Game Library", + dialog_warning_delete_game_library_location: "Do you really want to delete the following Game Library?", + dialog_warning_delete_game_library_games: "The following game(s) currently use this library:", + dialog_warning_delete_game_library_content: "The default library will be used instead. Please make sure to move your game folders in the right location.", + dialog_warning_set_default_library_title: "Change Default Library", + dialog_warning_set_default_library_content: "Do you really want to set the following Library as the default location for any new installation?", + dialog_action_set_default_library: "SET AS DEFAULT", dialog_action_cancel: "Cancel", dialog_action_confirm: "Confirm", + dialog_action_proceed: "PROCEED", dialog_action_acknowledge: "Acknowledge", dialog_action_ok: "OK", dialog_action_retry: "Retry", @@ -8964,6 +9003,8 @@ dialog_action_install: "Install Game", dialog_action_relaunch: "Relaunch", dialog_action_discard: "Discard", + dialog_action_delete: "DELETE", + dialog_action_browse_library: "browse library", dialog_action_cancel_download: "Cancel download", dialog_warning_back_launcher: "Go back to Launcher", dialog_warning_exit_app_title: "Exit App", @@ -8987,6 +9028,7 @@ dialog_start_installation_title: "Install {{game}} - {{channel}}", dialog_start_installation_content_location: "The game will be installed at the following location:", dialog_start_installation_content_location_settings: "You can change the game location in the Game Settings.", + dialog_start_installation_content_location_close_popover: "Please close this dialog if you need to change the game installation location first.", dialog_start_installation_action_go_to_settings: "Game Settings", dialog_start_installation_action_install: "Install", dialog_launch_check_update_available_title: "Game version update", @@ -8997,7 +9039,13 @@ dialog_discover_skip: "Skip", dialog_debug_cache_clear_title: "Clear Launcher Cache", dialog_debug_cache_clear_content: "This action will clear the Launcher cache and log you out, do you really want to proceed?", - dialog_debug_cache_clear_button: "Proceed" + dialog_debug_cache_clear_button: "Proceed", + dialog_warning_change_game_title_dialog: "Change game location", + dialog_warning_change_game_question_dialog: "{{game}} - {{channel}} is already installed at the current location. Do you want to change the game library?", + dialog_warning_change_installed_game_question_dialog: "Are you sure you want to change this library location?", + dialog_warning_change_game_current_dialog: "Current:", + dialog_warning_change_game_new_dialog: "New:", + dialog_warning_change_game_warn_dialog: "If you wish to proceed, make sure to move your files to the new location and verify or reinstall the game at the new location." }, discover: { step_done_label: "Enter Now", @@ -9047,7 +9095,9 @@ download_toast_uninstall_fail: "{{game}} - {{channel}} could not be uninstalled", download_type_install: "Installation", download_type_update: "Update", - download_type_verify: "Verify" + download_type_verify: "Verify", + download_toast_fix_permission_success: "Permissions fixed. Please verify the game to proceed.", + download_toast_fix_permission_fail: "Failed to fix permissions for {{game}} - {{channel}}. Please try again." }, errors: { error_game_package_missing_title: "Missing a game package", @@ -9073,10 +9123,16 @@ error_session_expired: "Your session has expired. Please confirm your password again.", error_wrong_credentials: "You may have entered the wrong credentials, the account does not exist, or has not been activated.", error_max_login_attempt: "Maximum number of failed login attempts exceeded.", - error_wrong_mfa_code: "Two-factor authentication failed. You may have entered and incorrect or expired code.", + error_wrong_mfa_code: "Two-factor authentication failed. You may have entered an incorrect or expired code.", error_captcha_required: "Captcha verification is required.", error_game_error_code: "Game error code: {{ code }}", error_installer_error_code: "Error code: {{ code }}", + error_installer_support_permission_title: "Insufficient Permission", + error_installer_support_permission_content: "You must give the Launcher permission to perform the installation process on your system.", + error_installer_create_directory_title: "Unable to Create Folder", + error_installer_create_directory_content_1: "Something went wrong while trying to create the channel folder.", + error_installer_create_directory_content_2: "Please consider creating the channel folder manually and try again. The folder must be created on the following path: ", + error_installer_more_info_content: "Find more information on the <0>Knowledge base.", error_installer_basepack_invalid_title: "Basepack - Invalid Files", error_installer_basepack_invalid_content: "Something went wrong while downloading the game, please try again.", error_installer_disc_full_title: "Insufficient Disk Space", @@ -9149,6 +9205,7 @@ sign_in_create_account: "Create one!", sign_in_submit: "Sign in", sign_in_loading: "Signing in\u2026", + sign_in_prerelease: "This is a prerelease version of the RSI Launcher", sign_in_mfa_title: "We need to verify your identity", sign_in_mfa_subtitle: "Protecting your account is important to us. We sent an authentication code to the email address attached to your account.", sign_in_mfa_code_label: "Authentification code", @@ -9212,15 +9269,18 @@ settings_games_title: "Games", settings_download_title: "Download", settings_dev_title: "Dev / QA", + settings_storage_title: "Storage", settings_nav_items_application: "Application", settings_nav_items_accessibility: "Accessibility", settings_nav_items_games: "Games", settings_nav_items_about: "About", settings_nav_items_download: "Download", + settings_nav_items_storage: "Storage", settings_nav_items_dev: "DEV \ud83d\ude80", settings_about_logo_alt: "Cloud Imperium\xa9", settings_about_copyright: "\xa9 2012 - {{year}} Cloud Imperium Rights LLC and Cloud Imperium Rights Ltd", settings_about_launcher_version: "Launcher version:", + settings_about_launcher_preversion: "(prerelease)", settings_application_window_behavior_title: "Window Behavior", settings_application_window_behavior_description: "This option will allow you to quit the app when the window is closed.", settings_application_window_behavior_close_to_quit: "Enable close-to-quit", @@ -9251,7 +9311,7 @@ settings_games_installation_library_folder_success: "Path updated", settings_games_installation_library_folder_change: "Change", settings_games_installation_library_folder_label: "RSI Library Location", - settings_games_game_files_title: "Game Files", + settings_games_game_files_title: "Installation", settings_games_game_files_description: "Install/Uninstall this game channel or verify if the game files are installed correctly on your computer.", settings_games_game_files_verify_files: "Verify Game", settings_games_game_files_verifying_files: "Verifying game", @@ -9268,16 +9328,21 @@ settings_common_saved: "Saved", settings_download_main_title: "Bandwidth usage", settings_download_main_content: "Adjust the bandwidth usage of the download to optimize your internet speed", + settings_storage_main_title: "Default Library", + settings_storage_main_description: "This is where new games and environments will be installed by default.", + settings_storage_default_library_folder_label: "Game Library Location", + settings_storage_additional_libs_title: "Additional Libraries", + settings_storage_additional_libs_description: "Create Libraries in one or multiple drives", + settings_storage_add_additional_libraries: "ADD NEW LIBRARY", settings_download_concurrent_title: "Concurrent Download", settings_download_concurrent_desc: "Adjust the maximum number of simultaneous downloads allowed at once, optimizing your download experience to match your preferences and network capabilities.", settings_download_speed_title: "Download Speed Limit", settings_download_speed_desc: "Regulate download speed by setting a cap on the data transfer rate per second for each concurrent download connection.", - settings_download_speed_unlimited: "Unlimited", settings_application_discover_behavior_title: "Discover Behavior", settings_application_discover_behavior_description: "The discover is only displayed at the first visit (or by clicking the Discover button in RSI menu). This option will allow you to re-enable Discover on load for testing purpose.", settings_application_discover_behavior_isDiscoverDone: "isDiscoverDone", settings_games_launch_command_line: "Additional command line arguments", - settings_games_launch_disclaimer: "This action will apply the next time you\u2019ll launch the game", + settings_games_launch_disclaimer: "This action will apply the next time you will launch the game", settings_games_launch_hostname: "Universe Host", settings_games_launch_port: "Universe Port", settings_games_launch_executable: "Executable", @@ -9286,7 +9351,17 @@ settings_games_launch_eac_description: "Easy Anti-Cheat is an anti-cheat service used by numerous popular games, countering cheating and the use of unauthorized third party software in multiplayer PC games.", settings_games_launch_eac_informative: "You need to set the right executable above to enable EAC bypass", settings_games_launch_eac_disable: "Enable Easy Anti-Cheat bypass", - settings_games_launch_default: "Default:" + settings_games_launch_default: "Default:", + settings_games_info_move_directory: "If your game is already installed at a different location, please move your game folder to the following Game Library location", + settings_gmaes_info_complete_path: "Complete path: ", + settings_games_manage_game_libraries: "Manage game libraries", + settings_games_game_location_title: "Game Location", + settings_games_game_location_description: "Select the library where you want this game to be installed", + settings_action_set_default: "Set as Default", + settings_action_delete_library: "Delete Library", + settings_toast_delete_lib_success: "Library has been deleted", + settings_toast_default_lib_updated: "Default library has been updated", + settings_toast_lib_added: "A new library has been created" }, status: { status_title: "RSI Status", @@ -9376,8 +9451,18 @@ dialog_warning_logout_game_running_text: "\xcates-vous s\xfbr de vouloir vous d\xe9connecter lorsque le jeu est en cours d'ex\xe9cution? Les progr\xe8s pourraient \xeatre perdus.", dialog_warning_logout_confirm: "Quitter", dialog_warning_logout_error: "Une erreur est apparue lorsque vous avez essay\xe9 de vous d\xe9connecter. Votre session pourrait \xeatre expir\xe9e. Essayez de vous connecter \xe0 nouveau.", + dialog_warning_duplicate_library_title: "La biblioth\xe8que de jeux existe d\xe9j\xe0", + dialog_warning_duplicate_library_content: "Une biblioth\xe8que existe d\xe9j\xe0 \xe0 l'emplacement que vous avez choisi. Veuillez s\xe9lectionner un autre emplacement et r\xe9essayer.", + dialog_warning_delete_game_library_title: "Supprimer la biblioth\xe8que de jeux", + dialog_warning_delete_game_library_location: "Voulez-vous vraiment supprimer la biblioth\xe8que de jeux suivante ?", + dialog_warning_delete_game_library_games: "Le(s) jeu(x) suivant(s) utilisent actuellement cette biblioth\xe8que:", + dialog_warning_delete_game_library_content: "La biblioth\xe8que par d\xe9faut sera utilis\xe9e \xe0 la place. Veuillez vous assurer de d\xe9placer vos dossiers de jeu au bon emplacement.", + dialog_warning_set_default_library_title: "Changer la biblioth\xe8que par d\xe9faut", + dialog_warning_set_default_library_content: "Voulez-vous vraiment d\xe9finir la biblioth\xe8que suivante comme emplacement par d\xe9faut pour toute nouvelle installation ?", + dialog_action_set_default_library: "DEFINIR COMME PAR D\xc9FAUT", dialog_action_cancel: " Annuler", dialog_action_confirm: "Confirmer", + dialog_action_proceed: "CONTINUER", dialog_action_acknowledge: "Affirmer", dialog_action_ok: "OK", dialog_action_close: "Fermer", @@ -9387,6 +9472,9 @@ dialog_action_verify: "Verify", dialog_action_install: "Installer le jeu", dialog_action_relaunch: "Relancer", + dialog_action_delete: "SUPPRIMER", + dialog_action_browse_library: "parcourir la biblioth\xe8que", + dialog_action_cancel_download: "Annuler le t\xe9l\xe9chargement", dialog_warning_back_launcher: "Retour vers le launcher", dialog_warning_exit_app_title: "Quitter l'application", dialog_warning_exit_app_text: "\xcates-vous s\xfbr de vouloir quitter l'application lorsque le jeu est en cours d'ex\xe9cution? Les progr\xe8s pourraient \xeatre perdus.", @@ -9407,6 +9495,7 @@ dialog_start_installation_title: "Installation {{game}} - {{channel}}", dialog_start_installation_content_location: "Le jeu va \xeatre install\xe9 \xe0 l'emplacement suivant:", dialog_start_installation_content_location_settings: "Vous pouvez changer l'emplacement du jeu dans les param\xe8tres de jeu.", + dialog_start_installation_content_location_close_popover: "Veuillez fermer cette bo\xeete de dialogue si vous devez d'abord modifier l'emplacement d'installation du jeu.", dialog_start_installation_action_go_to_settings: "Param\xe8tres de Jeu", dialog_start_installation_action_install: "Installer", dialog_launch_check_update_available_title: "Mise \xe0 jour du jeu", @@ -9417,7 +9506,13 @@ dialog_discover_skip: "Passer", dialog_debug_cache_clear_title: "Vider le cache du Launcher", dialog_debug_cache_clear_content: "Cette action va vider le cache du Launcher et vous d\xe9connecter, voulez-vous vraiment continuer ?", - dialog_debug_cache_clear_button: "Continuer" + dialog_debug_cache_clear_button: "Continuer", + dialog_warning_change_game_title_dialog: "Modifier l'emplacement du jeu", + dialog_warning_change_game_question_dialog: "{{game}} - {{channel}} est d\xe9j\xe0 install\xe9 \xe0 l'emplacement actuel. Voulez-vous changer la biblioth\xe8que du jeu?", + dialog_warning_change_installed_game_question_dialog: "\xcates-vous s\xfbr de vouloir changer l'emplacement de cette biblioth\xe8que?", + dialog_warning_change_game_current_dialog: "Actuel:", + dialog_warning_change_game_new_dialog: "Nouveau:", + dialog_warning_change_game_warn_dialog: "Si vous souhaitez continuer, assurez-vous de d\xe9placer vos fichiers vers le nouvel emplacement et de v\xe9rifier ou r\xe9installer le jeu \xe0 cet endroit." }, discover: { step_done_label: "Enter Now", @@ -9466,7 +9561,9 @@ download_toast_uninstall_fail: "{{game}} - {{channel}} n'a pas pu \xeatre d\xe9sinstall\xe9", download_type_install: "Installation", download_type_update: "Mise \xe0 jour", - download_type_verify: "V\xe9rification" + download_type_verify: "V\xe9rification", + download_toast_fix_permission_success: "Permissions corrig\xe9es. Veuillez v\xe9rifier le jeu pour continuer.", + download_toast_fix_permission_fail: "Impossible de corriger les autorisations pour {{game}} - {{channel}}. Veuillez r\xe9essayer." }, errors: { error_game_package_missing_title: "Il manque un package de jeu", @@ -9486,6 +9583,12 @@ error_wrong_mfa_code: "Le code n'est pas valide ou est d\xe9j\xe0 utilis\xe9.", error_captcha_required: "La v\xe9rification Captcha est obligatoire", error_installer_error_code: "Code d'erreur : {{ code }}", + error_installer_support_permission_title: "Autorisation Insuffisante", + error_installer_support_permission_content: "Vous devez donner au lanceur l\u2019autorisation d\u2019effectuer le processus d\u2019installation sur votre syst\xe8me.", + error_installer_create_directory_title: "Impossible de cr\xe9er le dossier de cha\xeene", + error_installer_create_directory_content_1: "Une erreur s'est produite lors de la tentative de cr\xe9ation du dossier de cha\xeene.", + error_installer_create_directory_content_2: "Veuillez envisager de cr\xe9er le dossier de cha\xeene manuellement et r\xe9essayer. Le dossier doit \xeatre cr\xe9\xe9 sur le chemin suivant: ", + error_installer_more_info_content: "Trouvez plus d'informations sur le <0>Knowledge base.", error_installer_basepack_invalid_title: "Basepack - Fichiers Invalides", error_installer_basepack_invalid_content: "Quelque chose s'est mal pass\xe9 lors du t\xe9l\xe9chargement du jeu, veuillez r\xe9essayer.", error_installer_disc_full_title: "Espace disque insuffisant", @@ -9558,6 +9661,7 @@ sign_in_create_account: "Cr\xe9er un compte.", sign_in_submit: "Connexion", sign_in_loading: "Connexion en cours\u2026", + sign_in_prerelease: "This is a prerelease version of the RSI Launcher", sign_in_mfa_title: "Nous devons v\xe9rifier votre identit\xe9", sign_in_mfa_subtitle: "La protection de votre compte est importante pour nous. Nous avons envoy\xe9 un code d'authentification sur la bo\xeete mail attach\xe9e \xe0 votre compte.", sign_in_mfa_code_label: "Code d'authentification", @@ -9619,16 +9723,19 @@ settings_application_title: "Application", settings_games_title: "Jeux", settings_download_title: "T\xe9l\xe9chargement", + settings_storage_title: "Stockage", settings_nav_items_application: "Application", settings_nav_items_accessibility: "Accessibilit\xe9", settings_dev_title: "Dev / QA", settings_nav_items_games: "Jeux", settings_nav_items_about: "\xc0 propos", settings_nav_items_download: "T\xe9l\xe9chargement", + settings_nav_items_storage: "Stockage", settings_nav_items_dev: "DEV \ud83d\ude80", settings_about_logo_alt: "Cloud Imperium\xa9", settings_about_copyright: "\xa9 2012 - {{year}} Cloud Imperium Rights LLC et Cloud Imperium Rights Ltd", settings_about_launcher_version: "Version du Launcher :", + settings_about_launcher_preversion: "(pr\xe9version)", settings_application_window_behavior_title: "Comportement de la fen\xeatre", settings_application_window_behavior_description: "Cette option vous permettra de quitter l'application lorsque la fen\xeatre sera ferm\xe9e.", settings_application_window_behavior_close_to_quit: "Activer la fermeture proche", @@ -9659,7 +9766,7 @@ settings_games_installation_library_folder_success: "Chemin mis \xe0 jour", settings_games_installation_library_folder_change: "Modifier", settings_games_installation_library_folder_label: "Emplacement de la biblioth\xe8que RSI", - settings_games_game_files_title: "Fichiers du jeu", + settings_games_game_files_title: "Installation", settings_games_game_files_description: "V\xe9rifiez si les fichiers du jeu sont correctement install\xe9s. Si le jeu n'est pas encore install\xe9, cela installera le jeu.", settings_games_game_files_verify_files: "V\xe9rifier", settings_games_game_files_verifying_files: "V\xe9rification en cours", @@ -9676,6 +9783,12 @@ settings_common_saved: "Enregistr\xe9", settings_download_main_title: "Utilisation de la bande passante", settings_download_main_content: "Ajustez l'utilisation de la bande passante du t\xe9l\xe9chargement pour optimiser votre vitesse Internet", + settings_storage_main_title: "Biblioth\xe8que par d\xe9faut", + settings_storage_main_description: "C'est ici que de nouveaux jeux et environnements seront install\xe9s par d\xe9faut.", + settings_storage_default_library_folder_label: "Emplacement du jeu", + settings_storage_additional_libs_title: "Biblioth\xe8ques suppl\xe9mentaires", + settings_storage_additional_libs_description: "Cr\xe9er des biblioth\xe8ques sur un ou plusieurs disques", + settings_storage_add_additional_libraries: "AJOUTER UNE NOUVELLE BIBLIOTH\xc8QUE", settings_download_concurrent_title: "T\xe9l\xe9chargement simultan\xe9", settings_download_concurrent_desc: "Ajustez le nombre maximum de t\xe9l\xe9chargements simultan\xe9s autoris\xe9s \xe0 la fois, en optimisant votre exp\xe9rience de t\xe9l\xe9chargement en fonction de vos pr\xe9f\xe9rences et des capacit\xe9s de votre r\xe9seau.", settings_download_speed_title: "Limitation de vitesse de t\xe9l\xe9chargement", @@ -9691,7 +9804,17 @@ settings_games_launch_eac_description: "Easy Anti-Cheat est un service anti-triche utilis\xe9 par de nombreux jeux populaires, luttant contre la triche et l'utilisation de logiciels tiers non autoris\xe9s dans les jeux PC multijoueurs.", settings_games_launch_eac_informative: "Vous devez d\xe9finir le bon ex\xe9cutable ci-dessus pour activer le contournement EAC", settings_games_launch_eac_disable: "Activer Easy Anti-Cheat bypass", - settings_games_launch_default: "Default:" + settings_games_launch_default: "Default:", + settings_games_info_move_directory: "Si votre jeu est d\xe9j\xe0 install\xe9 \xe0 un autre emplacement, veuillez d\xe9placer le dossier de votre jeu vers l'emplacement suivant de la biblioth\xe8que de jeux.", + settings_games_info_complete_path: "Chemin complet : ", + settings_games_manage_game_libraries: "G\xe9rer les biblioth\xe8ques de jeux", + settings_games_game_location_title: "Emplacement du jeu", + settings_games_game_location_description: "S\xe9lectionnez la biblioth\xe8que o\xf9 vous souhaitez installer ce jeu", + settings_action_set_default: "D\xe9finir comme par d\xe9faut", + settings_action_delete_library: "Supprimer la biblioth\xe8que", + settings_toast_delete_lib_success: "La biblioth\xe8que a \xe9t\xe9 supprim\xe9e", + settings_toast_default_lib_updated: "La biblioth\xe8que par d\xe9faut a \xe9t\xe9 mise \xe0 jour", + settings_toast_lib_added: "Une nouvelle biblioth\xe8que a \xe9t\xe9 cr\xe9\xe9e" }, status: { status_title: "RSI Status", @@ -9716,829 +9839,877 @@ tray_logout: "Se d\xe9connecter", tray_quit: "Quitter l'application" } - }, - SC_TOOLBOX_LOCALIZATION_ZHCN_MAP = { - agreements: { - agreement_fetch_info_error: "暂时无法从服务器获取协议,请稍等一分钟后再试。", - agreement_declined: "协议被拒绝" - }, - appHeader: { - app_header_menu: "菜单", - app_header_volume: "音量", - app_header_volume_mute: "静音", - app_header_volume_unmute: "取消静音", - app_header_account: "账户", - app_header_account_name: "用户名", - app_header_account_moniker: "@社区昵称", - app_header_menu_get_help: "获取帮助", - app_header_menu_spectrum: "光谱", - app_header_menu_issue_council: "问题理事会", - app_header_menu_discover: "探索启动器", - app_header_menu_exit_the_app: "退出程序", - app_header_menu_settings: "设置", - app_header_actions_download: "下载", - app_header_actions_menu_rsi_status: "RSI 状态", - app_header_actions_menu_rsi_account: "RSI 账户", - app_header_actions_menu_log_out: "登出", - app_header_loading: "正在进入宇宙…" - }, - autoUpdate: { - auto_update_dialog_close: "关闭", - auto_update_dialog_title: "有可用的更新", - auto_update_dialog_sub_title: "版本{{version}}", - auto_update_dialog_no_update_content: "您当前正在运行的就是 RSI 启动器的最新版本。<0/>感谢您保持更新!", - auto_update_dialog_no_update_action_primary_label: "继续", - auto_update_dialog_update_available_content: "有新的 RSI 启动器版本可安装。程序将会关闭并重新启动。", - auto_update_dialog_update_available_action_primary_label: "安装并重新启动", - auto_update_dialog_update_available_action_secondary_label: "稍后安装", - auto_update_dialog_update_install_failed_content: "无法更新至最新版本的启动器,请重新安装或联系<0>客户支持", - auto_update_dialog_update_install_failed_action_primary_label: "重新安装", - auto_update_dialog_update_install_failed_action_secondary_label: "稍后安装", - auto_update_dialog_update_quit_game_content: "游戏会话当前正在运行。如果你想要安装新版本启动器,将会关闭当前游戏会话,当前游戏进度可能会丢失", - auto_update_dialog_update_quit_game_action_primary_label: "退出游戏并安装", - auto_update_dialog_update_quit_game_action_secondary_label: "稍后再试", - auto_update_toast_update_installed: "成功安装新版本启动器" - }, - connection: { - connection_title: "离线模式", - connection_offline_information: "你目前处于离线状态,某些功能暂不可用。当你的网络恢复,你将自动重连。", - connection_offline_trying_to_reconnect: "正在尝试重新连接", - connection_toast_connection_available: "重连成功", - connection_toast_action_continue_offline: "继续处于离线状态", - connection_toast_warning_lost_connection_title: "你目前处于离线状态", - connection_toast_warning_lost_connection_content: "你似乎处于离线状态。当你的网络恢复,你将自动重连。你可以在离线模式下继续使用启动器。", - connection_toast_warning_lost_connection_remaining: "距离登出还有的离线时间" - }, - contextMenu: { - context_menu_copy: "复制", - context_menu_paste: "粘贴", - context_menu_cut: "剪切", - context_menu_select_all: "全选" - }, - dialog: { - dialog_warning_logout_title: "登出", - dialog_warning_logout_text: "你确定要登出账户吗?", - dialog_warning_logout_game_running_text: "你确定要在游戏运行时登出账户吗?当前游戏进度可能会丢失。", - dialog_warning_logout_confirm: "登出", - dialog_warning_logout_error: "登出时发生错误。你的会话可能已经过期。请尝试重新登录。", - dialog_action_cancel: "取消", - dialog_action_confirm: "确认", - dialog_action_acknowledge: "我已知悉", - dialog_action_ok: "OK", - dialog_action_retry: "再次尝试", - dialog_action_close: "关闭", - dialog_action_accept: "同意", - dialog_action_decline: "拒绝", - dialog_action_verify: "验证文件", - dialog_action_install: "安装游戏", - dialog_action_relaunch: "重新启动", - dialog_action_discard: "放弃", - dialog_action_cancel_download: "取消下载", - dialog_warning_back_launcher: "返回启动器", - dialog_warning_exit_app_title: "退出程序", - dialog_warning_exit_app_text: "你确定要退出该应用程序吗?", - dialog_warning_exit_app_checkbox: "不再显示", - dialog_warning_exit_app_confirm: "退出程序", - dialog_warning_exit_app_game_running_text: "你无法在游戏运行时退出该应用程序。", - dialog_warning_uninstall_title: "卸载 {{game}} - {{channel}}", - dialog_warning_uninstall_text: "你确定要从你的电脑卸载该游戏吗?请注意,你的电脑上的所有用户都会卸载该游戏文件。", - dialog_warning_uninstall_userFolder_checkbox: "保留用户文件夹(按键绑定和设置偏好)", - dialog_warning_uninstall_userFolder_checkbox_description: "目录位置:{{path}}", - dialog_warning_uninstall_confirm: "卸载游戏", - dialog_settings_reset_title: "重置设置", - dialog_settings_reset_content: "你确定要重置你的游戏设置吗?", - dialog_settings_reset_button: "重置至默认", - dialog_settings_game_not_installed_title: "游戏未安装", - dialog_settings_game_not_installed_content: "当前你尝试验证文件的位置并未安装游戏。请先安装游戏后重试。", - dialog_cancel_installation_title: "取消下载", - dialog_cancel_installation_content: "你确定要取消下载{{info}}吗?", - dialog_cancel_installation_content_keep_files_downloaded: "保留已下载的文件", - dialog_start_installation_title: "安装 {{game}} - {{channel}}", - dialog_start_installation_content_location: "游戏将安装在以下位置", - dialog_start_installation_content_location_settings: "你可以在游戏设置中更改游戏位置", - dialog_start_installation_action_go_to_settings: "游戏设置", - dialog_start_installation_action_install: "安装", - dialog_launch_check_update_available_title: "游戏版本更新", - dialog_launch_check_update_available_content: "一个新的游戏版本 {{game}} - {{channel}} 可用。请更新后再进入游戏。", - dialog_discover_title: "启动器更新了 UI !", - dialog_discover_content: "RSI 启动器的外观焕然一新!我准备了一个小旅程带你去看看有什么变化。", - dialog_discover_start: "开启旅程", - dialog_discover_skip: "跳过", - dialog_debug_cache_clear_title: "清除启动器缓存", - dialog_debug_cache_clear_content: "此操作将清除启动器缓存并退出登录,你确定要继续吗?", - dialog_debug_cache_clear_button: "继续" - }, - discover: { - step_done_label: "立即进入", - step_menu_title: "启动器应用菜单", - step_menu_description: "在此菜单中可快速访设置和其他有用的资源,例如:支持、光谱和问题理事会。", - step_status_title: "状态", - step_status_description: "在此可查看 RSI 各项服务的状态。如果有任何性能问题或服务中断,你可以在此处看到。", - step_download_title: "下载管理", - step_download_description: "查看下载/更新进度、暂停当前下载或快速访问下载设置。", - "step_user-profile_title": "用户档案", - "step_user-profile_description": "查看当前登录的账户。使用此菜单可快速访问你的 RSI 账户界面。如果你需要切换账号,可在此登出。", - step_last_title: "启动器发展", - step_last_description: "RSI 启动器会随着时间的推移不断发展。请随时在问题理事会向我们反馈问题。感谢你对我们开发的支持。" - }, - download: { - download_empty: "下载队列中没有下载任务。", - download_phase: "阶段", - download_status: "状态", - download_speed: "速度", - download_left: "剩余", - download_files_left: "剩余文件", - download_title: "下载任务", - download_settings: "下载设置", - download_play: "开始", - download_pause: "暂停", - download_initializing: "正在初始化…", - download_update_manifest: "正在下载更新文件清单", - download_manifest: "正在下载文件清单", - downloaded_update_manifest: "更新文件清单已下载", - download_analysing_install: "正在验证安装文件", - download_checking_files: "正在验证文件 - 需要几分钟", - download_base_pack: "正在下载基础文件包", - download_updating_game_files: "正在更新游戏文件", - download_updating_game_content: "正在更新游戏内容", - download_completed: "完成", - download_waiting: "正在排队", - download_cancelling: "正在取消", - download_resume: "继续", - download_cancel: "取消", - download_remove: "移除", - download_error: "错误", - download_toast_install_success: "安装已完成", - download_toast_update_success: "更新已完成", - download_toast_verify_success: "文件验证已完成", - download_toast_install_cancel_success: "下载已取消", - download_toast_uninstall_success: "{{game}} - {{channel}} 已卸载", - download_toast_uninstall_fail: "{{game}} - {{channel}} 无法卸载", - download_type_install: "安装", - download_type_update: "更新", - download_type_verify: "验证文件" - }, - errors: { - error_game_package_missing_title: "没有游戏资格包", - error_game_package_missing_subtitle: "你需要购买一个游戏资格包以登录访问游戏。", - error_game_package_missing_retry: "重试登录", - error_game_package_missing_support: "客户支持", - error_sign_in_offline_header_title: "你当前处于离线状态", - error_sign_in_offline_header_subtitle: "无法连接至我们的服务器。请检查你的网络并重试。", - error_sign_in_offline_content_title: "为什么我不能进入离线模式?", - error_sign_in_offline_content_description: "你无法进入离线模式可能由以下原因之一造成:", - error_sign_in_offline_content_description_first: "你还未选择 \u201c记住密码\u201d", - error_sign_in_offline_content_description_second: "你的设备信任期限已过", - error_sign_in_offline_content_description_third: "你在过去的30天内未登录过", - error_sign_in_offline_exit: "退出", - error_sign_in_offline_retry: "重试", - error_internal_error: "内部错误", - error_not_authenticated: "你未通过身份验证", - error_invalid_claims: "无效声明", - error_authentication_mfa: "身份验证需要mfa", - error_sign_in_failed: "登入失败。你可能输入了错误的凭证。", - error_sign_in_not_authorized: "你没有权限访问此版本的 RSI 启动器。请从<0>该网页下载公众版本。", - error_captcha_invalid: "验证码无效", - error_session_expired: "你的会话已过期。请再次确认你的密码。", - error_wrong_credentials: "你可能输入了错误的凭证、账户不存在或账户未激活。", - error_max_login_attempt: "已超过登入失败的最大次数。", - error_wrong_mfa_code: "双重验证失败。你可能输入了错误的或过期的验证码。", - error_captcha_required: "需要验证验证码。", - error_game_error_code: "游戏错误代码:{{ code }}", - error_installer_error_code: "错误代码:{{ code }}", - error_installer_basepack_invalid_title: "基础文件包 - 文件无效", - error_installer_basepack_invalid_content: "下载游戏时出现错误,请重试。", - error_installer_disc_full_title: "磁盘空间不足", - error_installer_disc_full_content: "你的磁盘没有足够的可用空间。请清理出空间或将目录移动至空间更大的磁盘。", - error_installer_permissions_title: "文件系统权限错误", - error_installer_permissions_content: "修补程序在写入时遇到权限问题。请检查目录权限并重试。", - error_installer_permissions_action: "修复权限", - error_installer_file_in_use_title: "文件被占用", - error_installer_file_in_use_content: "游戏文件正在被占用。请关闭你打开的游戏文件后重试。", - error_installer_pk4_corrupted_title: "游戏文件已损坏", - error_installer_pk4_corrupted_content: "你的游戏文件已损坏且无法恢复。", - error_installer_retrieve_manifest_title: "无法获取更新文件清单", - error_installer_retrieve_manifest_content: "获取更新文件清单时发生网络错误。请检查你的网络连接-并重启启动器后重试。", - error_installer_unknown_network_title: "未知网络错误", - error_installer_unknown_network_content: "请检查你的网络并重试。", - error_installer_base_p4k_corrupted_title: "基础文件包验证错误", - error_installer_base_p4k_corrupted_content: "基础文件包验证失败。", - error_installer_init_download_title: "下载初始化 - 基础文件包 - 错误", - error_installer_patcher_title: "数据修补程序错误", - error_installer_title: "安装程序错误", - error_installer_patcher_generic_content: "安装时出现错误。可在<0>知识库中查阅更多相关信息。", - error_installer_generic_content: "安装时出现错误。", - error_report_bug: "如果问题依然存在,请<0>汇报漏洞。请同时附上你的<1>日志文件。", - error_generic_title: "启动器错误", - error_generic_content: "出现错误。", - error_os_requirements_title: "未达到最低配置要求", - error_os_requirements_text: "你的电脑未达到运行 {{ game }} 的<0>最低配置要求", - error_cpu_requirements_title: "检测到不支持的硬件", - error_cpu_requirements_text: "游戏需要一个支持 AVX 指令集的 CPU 才能运行。", - error_launch_account_not_found_title: "复制你的账户到 PTU ", - error_launch_account_not_found_content: "想要游玩公共测试宇宙(PTU),你需要复制账户到 PTU。请按照以下步骤<0>这里并重试。", - error_launch_unknown_title: "启动器 - 未知错误", - error_launch_unknown_content: "启动游戏时出现错误。请验证游戏文件完整性。", - error_launch_error_code: "游戏错误代码:{{ code }}", - error_launch_no_game_files_title: "启动器 - 未找到游戏文件", - error_launch_no_game_files_content: "启动游戏时出现错误。无法检索到游戏文件。请验证游戏文件完整性。", - error_launch_EAC_title: "启动器 - EAC 错误", - error_launch_EAC_content: "启动游戏时出现错误。EAC 检测到文件损坏。请验证游戏文件完整性。", - error_launch_game_crash_title: "{{game}} 意外停止运行", - error_launch_game_crash_content_1: "游戏运行时出现错误。", - error_launch_game_crash_content_2: "请尝试重新启动游戏。如果问题依然存在,请验证你的安装文件。", - error_launch_game_running_title: "游戏正在运行", - error_launch_game_running_content: "游戏已经处于运行状态", - error_launch_check_update_unavailable_title: "检查游戏版本失败", - error_launch_check_update_unavailable_content: "检查游戏版本时出现错误。", - error_api_denied_request_title: "API 拒绝请求", - error_api_denied_request_content: "出现错误。你的会话似乎已过期或被拒绝。你已登出,请重试。", - error_api_validation_failed: "API 请求验证失败", - error_api_too_many_requests_title: "请求过多", - error_api_too_many_requests_content: "API 当前过载。请稍等几分钟后重试。", - error_api_unavailable: "API 不可用。请稍等几分钟后重试。", - error_api_internal_server_error: "我们的服务器遇到困难。请稍等几分钟后重试。", - error_api_auth_expired_content: "你的会话已过期。请再次确认你的密码。", - error_api_auth_expired_title: "会话已过期", - error_api_platform_auth_title: "平台验证错误", - error_api_platform_auth_content: "无法在 {{id}} 平台进行验证 {{error}}", - error_network_issue_title: "网络问题", - error_network_issue_content: "无法建立网络连接。请检查你的网络状态后尝试重新连接。" - }, - form: { - sign_in_title: "登入 RSI 启动器", - sign_in_email: "邮箱", - sign_in_password: "密码", - sign_in_remember_me: "记住密码", - sign_in_forgot_password: "忘记密码?", - sign_in_captcha: "验证码", - sign_in_captcha_refresh: "刷新", - sign_in_captcha_help: "输入上方图像中的文本。", - sign_in_no_account: "没有账户?", - sign_in_create_account: "创建一个!", - sign_in_submit: "登入", - sign_in_loading: "正在登入…", - sign_in_mfa_title: "我们需要验证你的身份", - sign_in_mfa_subtitle: "保护你的账户对于我们来说是非常重要的。我们向你账户绑定的邮箱发送了验证码。", - sign_in_mfa_code_label: "验证码", - sign_in_mfa_code_help: "输入发送到你的邮箱的代码或验证器中的代码。或者使用备用代码。", - sign_in_mfa_device_label: "设备名称", - sign_in_mfa_device_help: "为你当前设备输入一个名称。", - sign_in_mfa_duration_label: "信任这个设备", - sign_in_mfa_duration_help: "允许设备在选定的时间内跳过MFA验证。如果这是一个共享或公共设备,我们建议你选择“仅当前会话”。", - sign_in_mfa_session: "仅当前会话", - sign_in_mfa_day: "一天", - sign_in_mfa_week: "一周", - sign_in_mfa_month: "一个月", - sign_in_mfa_year: "一年", - sign_in_mfa_back_sign_in: "返回", - sign_in_mfa_submit: "验证身份", - error_field_is_required: "必须输入该字段", - error_email_field_is_required: "需要输入一个邮箱地址", - error_password_field_is_required: "需要输入密码", - error_code_required: "你必须输入你的代码", - error_device_required: "你必须输入你的设备名称", - error_device_min_length: "你的设备名称最少需要3个字符", - text_field_show_password: "显示密码", - text_field_hide_password: "隐藏密码" - }, - gamePage: { - game_page_title: "进入<0/><1>{{name}} 宇宙", - game_page_nav_title: "游戏", - game_page_nav_title_one: "游戏", - game_page_nav_title_other: "游戏", - game_page_game_is_running: "游戏正在运行", - game_page_installing: "正在安装…", - game_page_installing_paused: "安装已暂停", - game_page_updating: "正在更新…", - game_page_updating_paused: "更新已暂停", - game_page_verifying: "正在验证文件…", - game_page_uninstalling: "正在卸载", - game_page_verifying_paused: "验证已暂停", - game_page_update_game: "更新游戏", - game_page_launch_game: "启动游戏", - game_page_install_game: "安装游戏", - game_page_waiting_in_queue: "正在排队", - game_page_channels: "游戏环境", - game_page_settings: "游戏设置", - game_page_settings_verify: "验证游戏文件", - game_page_settings_uninstall: "卸载游戏", - game_page_update_game_is_available: "了解 {{version}} 新内容,<0>请查看补丁说明", - game_page_game_is_not_available_offline: "你目前处于离线状态。运行 {{game}} 需要网络连接。", - game_page_status_under_maintenance: "我们正在对其中一项服务进行维护。", - game_page_status_issue: "我们正在解决一个问题。请自行承担风险。", - game_page_status_more_information: "想要获取更多信息请查阅<0>状态页面", - game_page_cards_empty: "目前没有可用的内容", - game_page_cards_loading: "正在加载内容。", - game_page_cards_tab_community: "社区", - "game_page_cards_tab_comm-links": "通讯链接", - "game_page_cards_tab_new-citizens": "新手指南", - "game_page_cards_tab_patch-notes": "补丁说明", - game_page_card_button_label: "查看更多" - }, - settingsPage: { - settings_about_title: "关于", - settings_application_title: "程序", - settings_games_title: "游戏", - settings_download_title: "下载", - settings_dev_title: "Dev / QA", - settings_nav_items_application: "程序", - settings_nav_items_accessibility: "辅助功能", - settings_nav_items_games: "游戏", - settings_nav_items_about: "关于", - settings_nav_items_download: "下载", - settings_nav_items_dev: "DEV \ud83d\ude80", - settings_about_logo_alt: "CloudImperium©", - settings_about_copyright: "© 2012 - {{year}} Cloud Imperium Rights LLC and Cloud Imperium Rights Ltd", - settings_about_launcher_version: "启动器版本", - settings_application_window_behavior_title: "窗口行为", - settings_application_window_behavior_description: "此选项允许你在关闭窗口时退出该程序。", - settings_application_window_behavior_close_to_quit: "启用 关闭窗口直接退出程序", - settings_application_debug_tools_title: "启动器调试工具", - settings_application_debug_tools_description: "如果你在使用启动器时遇到问题,清除缓存可能可以解决问题。你还需要找到你的日志文件,这可在你向问题理事会报告启动器问题时提供帮助。", - settings_application_debug_tools_label: "调试工具", - settings_application_debug_tools_button_clear_cache: "清除缓存", - settings_application_debug_tools_button_get_logs: "获取日志文件", - settings_application_debug_tools_button_cache_clear_success: "缓存已清除", - settings_accessibility_title: "辅助功能", - settings_accessibility_reduce_motion_title: "动画减弱", - settings_accessibility_reduce_motion_description: "减弱启动器中的动画。例如:背景视频、图标动画和页面过渡动画。", - settings_accessibility_reduce_motion_system_sync_title: "与操作系统同步", - settings_accessibility_reduce_motion_system_sync_description: "跟随操作系统的动画减弱设置偏好", - settings_accessibility_reduce_motion_background_video_toggle_title: "禁用背景视频", - settings_accessibility_reduce_motion_background_video_toggle_description: "将背景视频替换成一张静态图片", - settings_accessibility_reduce_motion_unessential_animation_toggle_title: "禁用非必要动画", - settings_accessibility_reduce_motion_unessential_animation_toggle_description: "装饰性图标、标志、光标交互...", - settings_accessibility_reduce_motion_transition_effects_toggle_title: "禁用页面过渡效果", - settings_accessibility_reduce_motion_transition_effects_toggle_description: "各部分(页面、选项卡...)之间的过渡动画", - settings_accessibility_reduce_motion_information_enabled: "操作系统的动画减弱已启用。", - settings_accessibility_reduce_motion_information_disabled: "操作系统的动画减弱已停用。", - settings_accessibility_reduce_motion_information_restart_link_label: "下次启动才会应用当前更改。现在重新启动。", - settings_games_installation_title: "游戏位置", - settings_games_installation_description: "这是你的游戏文件夹的路径。", - settings_games_installation_information: "如果你的游戏已经安装在其他位置,在这里选择位置,然后点击验证文件。", - settings_games_installation_path_title: "游戏位置完整路径", - settings_games_installation_library_folder_success: "路径已更新", - settings_games_installation_library_folder_change: "更改", - settings_games_installation_library_folder_label: "RSI 目录位置", - settings_games_game_files_title: "游戏文件", - settings_games_game_files_description: "安装/卸载此游戏频道或验证已安装的游戏文件完整性。", - settings_games_game_files_verify_files: "验证游戏文件", - settings_games_game_files_verifying_files: "正在验证游戏文件", - settings_games_game_files_install_files: "安装游戏", - settings_games_game_files_installing_files: "正在安装", - settings_games_game_files_uninstall_files: "卸载游戏", - settings_games_game_files_uninstalling_files: "正在卸载", - settings_games_game_files_process_paused: "已暂停", - settings_common_reset: "重置所有更改", - settings_common_reset_confirmation: "此游戏频道的更改已被重置", - settings_common_accordion_open_all: "全部展开", - settings_common_accordion_close_all: "全部折叠", - settings_common_back: "返回", - settings_common_saved: "已保存", - settings_download_main_title: "带宽使用", - settings_download_main_content: "调整下行带宽以优化网速", - settings_download_concurrent_title: "同时下载数", - settings_download_concurrent_desc: "调整同时下载的最大文件数。优化你的下载体验以匹配你的偏好和网络。", - settings_download_speed_title: "限制下载速度", - settings_download_speed_desc: "通过为每个并发下载连接设置每秒数据传输速率上限来调节下载速度。", - settings_download_speed_unlimited: "无限制", - settings_application_discover_behavior_title: "探索行为", - settings_application_discover_behavior_description: "启动器探索仅在首次进入启动器时显示(或通过点击 RSI 菜单中的 探索 按钮)。此选项将允许您在负载时重新启用 探索 以进行测试。", - settings_application_discover_behavior_isDiscoverDone: "isDiscoverDone", - settings_games_launch_command_line: "其他命令行参数", - settings_games_launch_disclaimer: "此操作将在你下次\u2019ll启动游戏时应用", - settings_games_launch_hostname: "宇宙 Host", - settings_games_launch_port: "宇宙端口", - settings_games_launch_executable: "可执行", - settings_games_launch_launch_options: "启动器选项", - settings_games_launch_eac_title: "Easy Anti-Cheat", - settings_games_launch_eac_description: "Easy Anti-Cheat 是许多流行游戏使用的反作弊服务。用于在多人PC游戏中阻止作弊和未授权的第三方软件的使用。", - settings_games_launch_eac_informative: "你需要在上面设置正确的可执行文件以启用 绕过EAC", - settings_games_launch_eac_disable: "启用 绕过Easy Anti-Cheat", - settings_games_launch_default: "默认:" - }, - status: { - status_title: "RSI 状态", - status_empty: "无状态可用。", - status_last_updated: "最后一次更新 {{time}}", - status_last_updated_empty: "当前无可用数据。", - status_more_information: "更多信息", - status_major: "完全中断", - status_partial: "部分中断", - status_degraded: "性能下降", - status_maintenance: "正在维护", - status_operational: "正常运行" - }, - tray: { - tray_website: "访问网站", - tray_report_bug: "汇报漏洞", - tray_spectrum: "光谱", - tray_community_hub: "社区中心", - tray_support: "支持", - tray_mute: "静音", - tray_unmute: "取消静音", - tray_logout: "登出", - tray_quit: "退出" - } - - }, - SC_TOOLBOX_LOCALIZATION_ZHTW_MAP = { - agreements: { - agreement_fetch_info_error: "暫時無法從伺服器取得協議,請稍等一分鐘後再試。", - agreement_declined: "協議被拒絕" - }, - appHeader: { - app_header_menu: "選單", - app_header_volume: "音量", - app_header_volume_mute: "靜音", - app_header_volume_unmute: "取消靜音", - app_header_account: "帳戶", - app_header_account_name: "使用者名稱", - app_header_account_moniker: "@社群暱稱", - app_header_menu_get_help: "取得幫助", - app_header_menu_spectrum: "Spectrum", - app_header_menu_issue_council: "問題與建議中心", - app_header_menu_discover: "探索啟動器功能", - app_header_menu_exit_the_app: "關閉程式", - app_header_menu_settings: "設定", - app_header_actions_download: "下載", - app_header_actions_menu_rsi_status: "RSI 狀態", - app_header_actions_menu_rsi_account: "RSI 帳戶", - app_header_actions_menu_log_out: "登出", - app_header_loading: "正在進入宇宙…" - }, - autoUpdate: { - auto_update_dialog_close: "關閉", - auto_update_dialog_title: "有更新等待安裝", - auto_update_dialog_sub_title: "版本{{version}}", - auto_update_dialog_no_update_content: "您目前正在執行的就是 RSI 啟動器的最新版本。<0/>感謝您保持更新!", - auto_update_dialog_no_update_action_primary_label: "繼續", - auto_update_dialog_update_available_content: "有新的 RSI 啟動器版本可安裝。程式將會關閉並重新啟動。", - auto_update_dialog_update_available_action_primary_label: "安裝並重新啟動", - auto_update_dialog_update_available_action_secondary_label: "稍後安裝", - auto_update_dialog_update_install_failed_content: "無法更新至最新版本的啟動器,請重新安裝或聯繫<0>客戶支援", - auto_update_dialog_update_install_failed_action_primary_label: "重新安裝", - auto_update_dialog_update_install_failed_action_secondary_label: "稍後安裝", - auto_update_dialog_update_quit_game_content: "遊戲工作階段目前正在執行。如果你想要安裝新版本啟動器,將會關閉目前遊戲工作階段,正在進行的遊戲進度可能會遺失", - auto_update_dialog_update_quit_game_action_primary_label: "退出遊戲並安裝", - auto_update_dialog_update_quit_game_action_secondary_label: "稍後再試", - auto_update_toast_update_installed: "成功安裝新版本啟動器" - }, - contextMenu: { - context_menu_copy: "複製", - context_menu_paste: "貼上", - context_menu_cut: "剪下", - context_menu_select_all: "全選" - }, - dialog: { - dialog_warning_logout_title: "登出", - dialog_warning_logout_text: "你確定要登出帳戶嗎?", - dialog_warning_logout_game_running_text: "你確定要在遊戲執行時登出帳戶嗎?正在進行的遊戲進度可能會遺失。", - dialog_warning_logout_confirm: "登出", - dialog_warning_logout_error: "登出時發生錯誤。你的工作階段可能已經過期。請嘗試重新登入。", - dialog_action_cancel: "取消", - dialog_action_confirm: "確認", - dialog_action_acknowledge: "我已了解", - dialog_action_ok: "OK", - dialog_action_retry: "再次嘗試", - dialog_action_close: "關閉", - dialog_action_accept: "同意", - dialog_action_decline: "拒絕", - dialog_action_verify: "驗證文件", - dialog_action_install: "安裝遊戲", - dialog_action_relaunch: "重新啟動", - dialog_action_discard: "放棄", - dialog_action_cancel_download: "取消下載", - dialog_warning_back_launcher: "返回啟動器", - dialog_warning_exit_app_title: "關閉程式", - dialog_warning_exit_app_text: "你確定要退出應用程式嗎?", - dialog_warning_exit_app_checkbox: "不再顯示", - dialog_warning_exit_app_game_running_text: "你確定要在遊戲執行時退出應用程式嗎?", - dialog_warning_exit_app_confirm: "關閉程式", - dialog_warning_uninstall_title: "移除 {{game}} - {{channel}}", - dialog_warning_uninstall_text: "你確定要從你的電腦移除該遊戲嗎?請注意,你的電腦上的所有使用者都會移除該遊戲文件。", - dialog_warning_uninstall_userFolder_checkbox: "保留使用者資料夾(按鍵綁定和設定偏好)", - dialog_warning_uninstall_userFolder_checkbox_description: "目錄位置:{{path}}", - dialog_warning_uninstall_confirm: "移除遊戲", - dialog_settings_reset_title: "重設設定", - dialog_settings_reset_content: "你確定要重設你的遊戲設定嗎?", - dialog_settings_reset_button: "復原預設", - dialog_settings_game_not_installed_title: "尚未安裝遊戲", - dialog_settings_game_not_installed_content: "目前你嘗試驗證文件的位置並未安裝遊戲。請先安裝遊戲後重試。", - dialog_cancel_installation_title: "取消下載", - dialog_cancel_installation_content: "你確定要取消下載{{info}}嗎?", - dialog_cancel_installation_content_keep_files_downloaded: "保留已下載的文件", - dialog_start_installation_title: "安裝 {{game}} - {{channel}}", - dialog_start_installation_content_location: "遊戲將安裝在以下位置", - dialog_start_installation_content_location_settings: "你可以在遊戲設定中更改遊戲位置", - dialog_start_installation_action_go_to_settings: "遊戲設定", - dialog_start_installation_action_install: "安裝", - dialog_launch_check_update_available_title: "遊戲版本更新", - dialog_launch_check_update_available_content: "一個新的遊戲版本 {{game}} - {{channel}} 可安裝。請更新後再進入遊戲。", - dialog_discover_title: "啟動器更新了 UI !", - dialog_discover_content: "RSI 啟動器的外觀現在已經煥然一新!我們準備了一小段旅程來引領你去看看有什麼樣的改變。", - dialog_discover_start: "開始旅程", - dialog_discover_skip: "跳過", - dialog_debug_cache_clear_title: "清除啟動器快取", - dialog_debug_cache_clear_content: "此操作將清除啟動器快取並退出登入,你確定要繼續嗎?", - dialog_debug_cache_clear_button: "繼續" - }, - discover: { - step_done_label: "立即進入", - step_menu_title: "啟動器應用選單", - step_menu_description: "在此選單中可快速訪設定和其他有用的資源,例如:支援、Spectrum和問題與建議中心。", - step_status_title: "狀態", - step_status_description: "在此可查看 RSI 各項服務的狀態。如果有任何性能問題或服務中斷,你可以在此處看到。", - step_download_title: "下載管理", - step_download_description: "查看下載/更新進度、暫停目前下載或快速更改下載設定。", - "step_user-profile_title": "使用者檔案", - "step_user-profile_description": "查看目前登入的帳戶。使用此選單能夠快速瀏覽你的 RSI 帳戶介面。如果你需要切換帳號,可以在此處進行登出。", - step_last_title: "啟動器路線圖", - step_last_description: "RSI 啟動器會隨著時間的推移不斷發展。請隨時在問題與建議中心向我們回饋問題。感謝你對我們開發的支援。" - }, - download: { - download_empty: "下載佇列中沒有下載任務。", - download_phase: "階段", - download_status: "狀態", - download_speed: "速度", - download_left: "剩餘", - download_files_left: "剩餘文件", - download_title: "下載任務", - download_settings: "下載設定", - download_play: "開始", - download_pause: "暫停", - download_initializing: "正在初始化…", - download_update_manifest: "正在下載更新文件清單", - download_manifest: "正在下載文件清單", - downloaded_update_manifest: "更新文件清單已下載", - download_analysing_install: "正在驗證安裝文件", - download_checking_files: "正在驗證文件 - 需要幾分鐘", - download_base_pack: "正在下載基礎文件包", - download_updating_game_files: "正在更新遊戲文件", - download_updating_game_content: "正在更新遊戲內容", - download_completed: "完成", - download_waiting: "正在排隊", - download_cancelling: "正在取消", - download_resume: "繼續", - download_cancel: "取消", - download_remove: "移除", - download_error: "錯誤", - download_toast_install_success: "安裝已完成", - download_toast_update_success: "更新已完成", - download_toast_verify_success: "文件驗證已完成", - download_toast_install_cancel_success: "下載已取消", - download_toast_uninstall_success: "{{game}} - {{channel}} 已移除", - download_toast_uninstall_fail: "{{game}} - {{channel}} 無法移除", - download_type_install: "安裝", - download_type_update: "更新", - download_type_verify: "驗證文件" - }, - errors: { - error_game_package_missing_title: "沒有遊戲資格包", - error_game_package_missing_subtitle: "你需要購買一個遊戲資格包才能夠登入遊戲。", - error_game_package_missing_retry: "重新登入", - error_game_package_missing_support: "客戶支援", - error_internal_error: "內部錯誤", - error_not_authenticated: "你未通過身份驗證", - error_invalid_claims: "無效宣告", - error_authentication_mfa: "身份驗證需要mfa", - error_sign_in_failed: "登入失敗。你可能輸入了錯誤的憑證。", - error_sign_in_not_authorized: "你沒有登入權限。", - error_captcha_invalid: "驗證碼無效", - error_session_expired: "你的工作階段已過期。請再次確認你的密碼。", - error_wrong_credentials: "你可能輸入了錯誤的憑證、帳戶不存在或帳戶未啟用(1032)", - error_max_login_attempt: "已超過登入失敗的最大次數。(1034)", - error_wrong_mfa_code: "雙重驗證失敗。你可能輸入了錯誤的或過期的驗證碼(1037)", - error_captcha_required: "登入失敗。你可能輸入了錯誤的憑證。", - error_installer_basepack_invalid_title: "基礎文件包 - 文件無效", - error_installer_basepack_invalid_content: "下載遊戲時出現錯誤,請重試。錯誤代碼:{{code}}", - error_installer_disc_full_title: "磁碟空間不足", - error_installer_disc_full_content: "你的磁碟沒有足夠的可用空間。請清理出空間或將目錄移動至空間更大的磁碟。錯誤代碼:{{code}}", - error_installer_permissions_title: "文件系統權限錯誤", - error_installer_permissions_content: "修補程式在寫入時遇到權限問題。請檢查目錄權限並重試。錯誤代碼:{{code}}", - error_installer_permissions_action: "修復權限", - error_installer_file_in_use_title: "文件被佔用", - error_installer_file_in_use_content: "遊戲文件正在被佔用。請關閉你打開的遊戲文件後重試。錯誤代碼:{{code}}", - error_installer_pk4_corrupted_title: "遊戲文件已損壞", - error_installer_pk4_corrupted_content: "你的遊戲文件已損壞且無法復原。錯誤代碼:{{code}}", - error_installer_retrieve_manifest_title: "無法取得更新文件清單", - error_installer_retrieve_manifest_content: "取得更新文件清單時發生網路錯誤。請檢查你的網路連接-並重啟啟動器後重試。錯誤代碼:{{code}}", - error_installer_unknown_network_title: "未知網路錯誤", - error_installer_unknown_network_content: "請檢查你的網路並重試。錯誤代碼:{{code}}", - error_installer_base_p4k_corrupted_title: "基礎文件包驗證錯誤", - error_installer_base_p4k_corrupted_content: "基礎文件包驗證失敗,請重試。如果問題依然存在,請<0>回報漏洞。別忘了附上你的<1>日誌檔案。", - error_installer_init_download_title: "下載初始化 - 基礎文件包 - 錯誤", - error_installer_patcher_title: "資料修補程式錯誤", - error_installer_title: "安裝程式錯誤", - error_installer_patcher_generic_content: "安裝時出現錯誤。可在<0>知識庫中查閱更多相關資訊。如果問題依然存在,請<1>回報漏洞。請同時附上你的<2>日誌檔案。錯誤代碼:{{code}}", - error_installer_generic_content: "安裝時出現錯誤。如果問題依然存在,請<0>回報漏洞。請同時附上你的<1>日誌檔案。錯誤代碼:{{code}}", - error_generic_title: "啟動器錯誤", - error_generic_content: "出現錯誤。如果問題依然存在,請<0>回報漏洞。請同時附上你的<1>日誌檔案。錯誤代碼:{{code}}", - error_os_requirements_title: "未達到最低配置要求", - error_os_requirements_text: "你的電腦未達到執行 {{ game }} 的<0>最低配置要求", - error_cpu_requirements_title: "檢測到不支援的硬體", - error_cpu_requirements_text: "遊戲需要一個支援 AVX 指令集的 CPU 才能執行。", - error_launch_account_not_found_title: "將你的帳戶複製到 PTU ", - error_launch_account_not_found_content: "想要遊玩公共測試宇宙(PTU),你需要複製帳戶到 PTU。請按照以下步驟<0>這裡並重試。錯誤代碼:{{code}}", - error_launch_game_title: "{{game}} 意外停止執行", - error_launch_game_content: "嘗試重新啟動遊戲。如果問題依然存在,請驗證你的安裝文件。", - error_launch_unknown_title: "啟動器 - 未知錯誤", - error_launch_unknown_content: "啟動遊戲時出現錯誤。請驗證遊戲文件完整性。<2> 如果問題依然存在,請<0>回報漏洞。請同時附上你的<1>日誌檔案。錯誤代碼:{{code}}", - error_launch_no_game_files_title: "啟動器 - 未找到遊戲文件", - error_launch_no_game_files_content: "啟動遊戲時出現錯誤。無法檢索到遊戲文件。請驗證遊戲文件完整性。錯誤代碼:{{code}}", - error_launch_EAC_title: "啟動器 - EAC 錯誤", - error_launch_EAC_content: "啟動遊戲時出現錯誤。EAC 檢測到文件損壞。請驗證遊戲文件完整性。錯誤代碼:{{code}}", - error_launch_game_crash_title: "遊戲錯誤", - error_launch_game_crash_content: "遊戲執行時出現錯誤。如果問題依然存在,請<0>回報漏洞。請同時附上你的<1>日誌檔案。錯誤代碼:{{code}}", - error_launch_game_running_title: "遊戲正在執行", - error_launch_game_running_content: "遊戲已經處於執行狀態", - error_launch_check_update_unavailable_title: "檢查遊戲版本失敗", - error_launch_check_update_unavailable_content: "檢查遊戲版本時出現錯誤。如果問題依然存在,請<0>回報漏洞。請同時附上你的<1>日誌檔案。錯誤代碼:{{code}}", - error_api_denied_request_title: "API 拒絕請求", - error_api_denied_request_content: "出現錯誤。你的工作階段似乎已過期或被拒絕。你已登出,請重試。", - error_api_validation_failed: "API 請求驗證失敗", - error_api_too_many_requests_title: "請求過多", - error_api_too_many_requests_content: "API 目前過載。請稍等幾分鐘後重試。", - error_api_unavailable: "API 不可用。請稍等幾分鐘後重試。", - error_api_internal_server_error: "我們的伺服器遇到困難。請稍等幾分鐘後重試。", - error_api_auth_expired_content: "你的工作階段已過期。請再次確認你的密碼。", - error_api_auth_expired_title: "工作階段已過期", - error_api_platform_auth_title: "平台驗證錯誤", - error_api_platform_auth_content: "無法在 {{id}} 平台進行驗證 {{error}}", - error_network_issue_title: "網路問題", - error_network_issue_content: "無法建立網路連接。請檢查你的網路狀態後嘗試重新連接。" - }, - form: { - sign_in_title: "登入 RSI 啟動器", - sign_in_email: "電子信箱", - sign_in_password: "密碼", - sign_in_remember_me: "記住密碼", - sign_in_forgot_password: "忘記密碼?", - sign_in_captcha: "驗證碼", - sign_in_captcha_refresh: "重新整理", - sign_in_captcha_help: "輸入上方圖像中的文字。", - sign_in_no_account: "沒有帳戶?", - sign_in_create_account: "建立一個!", - sign_in_submit: "登入", - sign_in_loading: "正在登入…", - sign_in_mfa_title: "我們需要驗證你的身份", - sign_in_mfa_subtitle: "保護你的帳戶對於我們來說是非常重要的。我們向你帳戶綁定的電子信箱發送了驗證碼。", - sign_in_mfa_code_label: "驗證碼", - sign_in_mfa_code_help: "輸入發送到你的電子信箱的程式碼或驗證器中的程式碼。或者使用備用程式碼。", - sign_in_mfa_device_label: "裝置名稱", - sign_in_mfa_device_help: "為你目前裝置輸入一個名稱。", - sign_in_mfa_duration_label: "信任這個裝置", - sign_in_mfa_duration_help: "允許裝置在選定的時間內跳過MFA驗證。如果這是一個共享或公共裝置,我們建議你選擇“僅目前工作階段”。", - sign_in_mfa_session: "僅目前工作階段", - sign_in_mfa_day: "一天", - sign_in_mfa_week: "一週", - sign_in_mfa_month: "一個月", - sign_in_mfa_year: "一年", - sign_in_mfa_back_sign_in: "返回", - sign_in_mfa_submit: "驗證身份", - error_field_is_required: "必須輸入該欄位", - error_email_field_is_required: "需要輸入一個電子信箱地址", - error_password_field_is_required: "需要輸入密碼", - error_code_required: "你必須輸入你的程式碼", - error_device_required: "你必須輸入你的裝置名稱", - error_device_min_length: "你的裝置名稱最少需要3個字元", - text_field_show_password: "顯示密碼", - text_field_hide_password: "隱藏密碼" - }, - gamePage: { - game_page_title: "進入<0/><1>{{name}} 宇宙", - game_page_nav_title: "遊戲", - game_page_nav_title_one: "遊戲", - game_page_nav_title_other: "遊戲", - game_page_game_is_running: "遊戲正在執行", - game_page_installing: "正在安裝…", - game_page_installing_paused: "安裝已暫停", - game_page_updating: "正在更新…", - game_page_updating_paused: "更新已暫停", - game_page_verifying: "正在驗證文件…", - game_page_uninstalling: "正在移除", - game_page_verifying_paused: "驗證已暫停", - game_page_update_game: "更新遊戲", - game_page_launch_game: "啟動遊戲", - game_page_install_game: "安裝遊戲", - game_page_waiting_in_queue: "正在排隊", - game_page_channels: "遊戲環境", - game_page_settings: "遊戲設定", - game_page_settings_verify: "驗證遊戲文件", - game_page_settings_uninstall: "移除遊戲", - game_page_update_game_is_available: "了解 {{version}} 新內容,<0>請查看補丁說明", - game_page_status_under_maintenance: "我們正在對其中一項服務進行維護。", - game_page_status_issue: "我們正在解決一個問題。請自行承擔風險。", - game_page_status_more_information: "想要取得更多資訊請查閱<0>狀態頁面", - game_page_cards_empty: "目前沒有可用的內容", - game_page_cards_loading: "正在載入內容。", - game_page_cards_tab_community: "社群", - "game_page_cards_tab_comm-links": "通訊連結", - "game_page_cards_tab_new-citizens": "新手指南", - "game_page_cards_tab_patch-notes": "補丁說明", - game_page_card_button_label: "查看更多" - }, - settingsPage: { - settings_about_title: "關於啟動器", - settings_application_title: "一般設定", - settings_games_title: "遊戲檔案", - settings_download_title: "下載設定", - settings_dev_title: "Dev / QA", - settings_nav_items_application: "程式", - settings_nav_items_accessibility: "輔助功能", - settings_nav_items_games: "遊戲", - settings_nav_items_about: "關於", - settings_nav_items_download: "下載", - settings_nav_items_dev: "DEV \ud83d\ude80", - settings_about_logo_alt: "CloudImperium©", - settings_about_copyright: "© 2012 - {{year}} Cloud Imperium Rights LLC and Cloud Imperium Rights Ltd", - settings_about_launcher_version: "啟動器版本", - settings_application_window_behavior_title: "關閉設定", - settings_application_window_behavior_description: "此功能將會停用啟動器最小化,並在你關閉視窗後直接關閉啟動器。", - settings_application_window_behavior_close_to_quit: "啟用 關閉視窗直接關閉程式", - settings_application_debug_tools_title: "啟動器除錯工具", - settings_application_debug_tools_description: "如果你在使用啟動器時遇到問題,清除快取可能可以解決問題。你還需要找到你的日誌檔案,這可在你向問題與建議中心報告啟動器問題時提供幫助。", - settings_application_debug_tools_label: "除錯工具", - settings_application_debug_tools_button_clear_cache: "清除快取", - settings_application_debug_tools_button_get_logs: "取得日誌檔案", - settings_application_debug_tools_button_cache_clear_success: "快取已清除", - settings_accessibility_title: "輔助功能", - settings_accessibility_reduce_motion_title: "減少動畫效果", - settings_accessibility_reduce_motion_description: "減少啟動器中的動畫效果。例如:背景影片、圖示動畫和頁面轉換動畫。", - settings_accessibility_reduce_motion_system_sync_title: "與系統同步", - settings_accessibility_reduce_motion_system_sync_description: "與系統的動畫減少設定同步", - settings_accessibility_reduce_motion_background_video_toggle_title: "停用背景影片", - settings_accessibility_reduce_motion_background_video_toggle_description: "使用靜態圖片取代背景影片", - settings_accessibility_reduce_motion_unessential_animation_toggle_title: "停用非必要動畫", - settings_accessibility_reduce_motion_unessential_animation_toggle_description: "裝飾性圖示、標誌、游標互動...", - settings_accessibility_reduce_motion_transition_effects_toggle_title: "停用頁面轉換效果", - settings_accessibility_reduce_motion_transition_effects_toggle_description: "各部分(頁面、頁籤...)之間的過渡動畫", - settings_accessibility_reduce_motion_information_enabled: "系統的動畫減少已啟用。", - settings_accessibility_reduce_motion_information_restart_link_label: "下次啟動時才會套用目前變更。立刻重新啟動。", - settings_games_installation_title: "遊戲位置", - settings_games_installation_description: "這是你的遊戲資料夾的路徑。", - settings_games_installation_information: "如果你的遊戲已經安裝在其他位置,在這裡選擇位置,然後點擊驗證文件。", - settings_games_installation_path_title: "遊戲位置完整路徑", - settings_games_installation_library_folder_success: "路徑已更新", - settings_games_installation_library_folder_change: "更改", - settings_games_installation_library_folder_label: "RSI 目錄位置", - settings_games_game_files_title: "遊戲文件", - settings_games_game_files_description: "安裝/移除此遊戲頻道或驗證已安裝的遊戲文件完整性。", - settings_games_game_files_verify_files: "驗證遊戲文件", - settings_games_game_files_verifying_files: "正在驗證遊戲文件", - settings_games_game_files_install_files: "安裝遊戲", - settings_games_game_files_installing_files: "正在安裝", - settings_games_game_files_uninstall_files: "移除遊戲", - settings_games_game_files_uninstalling_files: "正在移除", - settings_games_game_files_process_paused: "已暫停", - settings_common_reset: "重設所有更改", - settings_common_reset_confirmation: "此遊戲頻道的更改已被重設", - settings_common_accordion_open_all: "展開全部", - settings_common_accordion_close_all: "收起全部", - settings_common_back: "返回", - settings_common_saved: "已儲存", - settings_download_main_title: "下載限制", - settings_download_main_content: "調整下載速度來改善網路速率", - settings_download_concurrent_title: "同時下載數", - settings_download_concurrent_desc: "調整同時下載的最大文件數。提升你的下載體驗來匹配你的個人習慣和網路環境。", - settings_download_speed_title: "限制下載速度", - settings_download_speed_desc: "設定每秒資料傳輸速率上限以調節下載速率。", - settings_application_discover_behavior_title: "探索功能", - settings_application_discover_behavior_description: "啟動器探索僅在首次進入啟動器時顯示(或透過點擊 RSI 選單中的 探索 按鈕)。此選項將允許您在負載時重新啟用 探索 以進行測試。", - settings_application_discover_behavior_isDiscoverDone: "isDiscoverDone", - settings_games_launch_command_line: "其他命令列參數", - settings_games_launch_disclaimer: "此操作將在你下次\u2019ll啟動遊戲時應用", - settings_games_launch_hostname: "宇宙 Host", - settings_games_launch_port: "宇宙埠", - settings_games_launch_executable: "可執行", - settings_games_launch_launch_options: "啟動器選項" - }, - status: { - status_title: "RSI 伺服器狀態", - status_empty: "暫無狀態可顯示。", - status_last_updated: "最後更新於 {{time}}", - status_last_updated_empty: "目前沒有資料。", - status_more_information: "更多資訊", - status_major: "完全斷線", - status_partial: "部分斷線", - status_degraded: "性能較差", - status_maintenance: "正在維護", - status_operational: "正常執行" - }, - tray: { - tray_website: "瀏覽網站", - tray_report_bug: "回報漏洞", - tray_spectrum: "Spectrum", - tray_community_hub: "社群中心", - tray_support: "支援", - tray_mute: "靜音", - tray_unmute: "取消靜音", - tray_logout: "登出", - tray_quit: "退出" - } }; + const SC_TOOLBOX_LOCALIZATION_ZHCN_MAP = { + agreements: { + agreement_fetch_info_error: "暂时无法从服务器获取协议,请稍等一分钟后再试。", + agreement_declined: "协议被拒绝" + }, + appHeader: { + app_header_menu: "菜单", + app_header_volume: "音量", + app_header_volume_mute: "静音", + app_header_volume_unmute: "取消静音", + app_header_account: "账户", + app_header_account_name: "用户名", + app_header_account_moniker: "@社区昵称", + app_header_menu_get_help: "获取帮助", + app_header_menu_spectrum: "光谱", + app_header_menu_issue_council: "问题理事会", + app_header_menu_discover: "探索启动器", + app_header_menu_exit_the_app: "退出程序", + app_header_menu_settings: "设置", + app_header_actions_download: "下载", + app_header_actions_menu_rsi_status: "RSI 状态", + app_header_actions_menu_rsi_account: "RSI 账户", + app_header_actions_menu_log_out: "登出", + app_header_loading: "正在进入宇宙…" + }, + autoUpdate: { + auto_update_dialog_close: "关闭", + auto_update_dialog_title: "有可用的更新", + auto_update_dialog_sub_title: "版本{{version}}", + auto_update_dialog_no_update_content: "您当前正在运行的就是 RSI 启动器的最新版本。<0/>感谢您保持更新!", + auto_update_dialog_no_update_action_primary_label: "继续", + auto_update_dialog_update_available_content: "有新的 RSI 启动器版本可安装。程序将会关闭并重新启动。", + auto_update_dialog_update_available_action_primary_label: "安装并重新启动", + auto_update_dialog_update_available_action_secondary_label: "稍后安装", + auto_update_dialog_update_install_failed_content: "无法更新至最新版本的启动器,请重新安装或联系<0>客户支持", + auto_update_dialog_update_install_failed_action_primary_label: "重新安装", + auto_update_dialog_update_install_failed_action_secondary_label: "稍后安装", + auto_update_dialog_update_quit_game_content: "游戏会话当前正在运行。如果你想要安装新版本启动器,将会关闭当前游戏会话,当前游戏进度可能会丢失", + auto_update_dialog_update_quit_game_action_primary_label: "退出游戏并安装", + auto_update_dialog_update_quit_game_action_secondary_label: "稍后再试", + auto_update_toast_update_installed: "成功安装新版本启动器" + }, + connection: { + connection_title: "离线模式", + connection_offline_information: "你目前处于离线状态,某些功能暂不可用。当你的网络恢复,你将自动重连。", + connection_offline_trying_to_reconnect: "正在尝试重新连接", + connection_toast_connection_available: "重连成功", + connection_toast_action_continue_offline: "继续处于离线状态", + connection_toast_warning_lost_connection_title: "你目前处于离线状态", + connection_toast_warning_lost_connection_content: "你似乎处于离线状态。当你的网络恢复,你将自动重连。你可以在离线模式下继续使用启动器。", + connection_toast_warning_lost_connection_remaining: "距离登出还有的离线时间" + }, + contextMenu: { + context_menu_copy: "复制", + context_menu_paste: "粘贴", + context_menu_cut: "剪切", + context_menu_select_all: "全选" + }, + dialog: { + dialog_warning_logout_title: "登出", + dialog_warning_logout_text: "你确定要登出账户吗?", + dialog_warning_logout_game_running_text: "你确定要在游戏运行时登出账户吗?当前游戏进度可能会丢失。", + dialog_warning_logout_confirm: "登出", + dialog_warning_logout_error: "登出时发生错误。你的会话可能已经过期。请尝试重新登录。", + dialog_warning_duplicate_library_title: "游戏库已存在", + dialog_warning_duplicate_library_content: "你当前选择的位置已存在一个游戏库,请选择其他位置后重试", + dialog_warning_delete_game_library_title: "删除游戏库", + dialog_warning_delete_game_library_location: "你确定要删除以下游戏库?", + dialog_warning_delete_game_library_games: "以下游戏当前使用此游戏库:", + dialog_warning_delete_game_library_content: "将会使用默认游戏库。请确保将游戏文件夹移动到正确的位置。", + dialog_warning_set_default_library_title: "更改默认游戏库", + dialog_warning_set_default_library_content: "你确定要将以下游戏库设置为新安装游戏的默认位置?", + dialog_action_set_default_library: "设置为默认", + dialog_action_cancel: "取消", + dialog_action_confirm: "确认", + dialog_action_proceed: "继续", + dialog_action_acknowledge: "我已知悉", + dialog_action_ok: "OK", + dialog_action_retry: "再次尝试", + dialog_action_close: "关闭", + dialog_action_accept: "同意", + dialog_action_decline: "拒绝", + dialog_action_verify: "验证文件", + dialog_action_install: "安装游戏", + dialog_action_relaunch: "重新启动", + dialog_action_discard: "放弃", + dialog_action_delete: "删除", + dialog_action_browse_library: "浏览游戏库", + dialog_action_cancel_download: "取消下载", + dialog_warning_back_launcher: "返回启动器", + dialog_warning_exit_app_title: "退出程序", + dialog_warning_exit_app_text: "你确定要退出该应用程序吗?", + dialog_warning_exit_app_checkbox: "不再显示", + dialog_warning_exit_app_confirm: "退出程序", + dialog_warning_exit_app_game_running_text: "你无法在游戏运行时退出该应用程序。", + dialog_warning_uninstall_title: "卸载 {{game}} - {{channel}}", + dialog_warning_uninstall_text: "你确定要从你的电脑卸载该游戏吗?请注意,你的电脑上的所有用户都会卸载该游戏文件。", + dialog_warning_uninstall_userFolder_checkbox: "保留用户文件夹(按键绑定和设置偏好)", + dialog_warning_uninstall_userFolder_checkbox_description: "目录位置:{{path}}", + dialog_warning_uninstall_confirm: "卸载游戏", + dialog_settings_reset_title: "重置设置", + dialog_settings_reset_content: "你确定要重置你的游戏设置吗?", + dialog_settings_reset_button: "重置至默认", + dialog_settings_game_not_installed_title: "游戏未安装", + dialog_settings_game_not_installed_content: "当前你尝试验证文件的位置并未安装游戏。请先安装游戏后重试。", + dialog_cancel_installation_title: "取消下载", + dialog_cancel_installation_content: "你确定要取消下载{{info}}吗?", + dialog_cancel_installation_content_keep_files_downloaded: "保留已下载的文件", + dialog_start_installation_title: "安装 {{game}} - {{channel}}", + dialog_start_installation_content_location: "游戏将安装在以下位置", + dialog_start_installation_content_location_settings: "你可以在游戏设置中更改游戏位置", + dialog_start_installation_content_location_close_popover: "如果你需要先更改游戏安装位置,请关闭此对话框。", + dialog_start_installation_action_go_to_settings: "游戏设置", + dialog_start_installation_action_install: "安装", + dialog_launch_check_update_available_title: "游戏版本更新", + dialog_launch_check_update_available_content: "一个新的游戏版本 {{game}} - {{channel}} 可用。请更新后再进入游戏。", + dialog_discover_title: "启动器更新了 UI !", + dialog_discover_content: "RSI 启动器的外观焕然一新!我准备了一个小旅程带你去看看有什么变化。", + dialog_discover_start: "开启旅程", + dialog_discover_skip: "跳过", + dialog_debug_cache_clear_title: "清除启动器缓存", + dialog_debug_cache_clear_content: "此操作将清除启动器缓存并退出登录,你确定要继续吗?", + dialog_debug_cache_clear_button: "继续", + dialog_warning_change_game_title_dialog: "更改游戏位置", + dialog_warning_change_game_question_dialog: "{{game}} - {{channel}} 已安装至当前位置。你想要更改游戏库吗?is already installed at the current location. Do you want to change the game library?", + dialog_warning_change_installed_game_question_dialog: "你确定要更改此游戏库的位置?", + dialog_warning_change_game_current_dialog: "当前:", + dialog_warning_change_game_new_dialog: "新:", + dialog_warning_change_game_warn_dialog: "如要继续,请确保将文件移动到新位置,并在新位置验证文件或重新安装游戏。" + }, + discover: { + step_done_label: "立即进入", + step_menu_title: "启动器应用菜单", + step_menu_description: "在此菜单中可快速访设置和其他有用的资源,例如:支持、光谱和问题理事会。", + step_status_title: "状态", + step_status_description: "在此可查看 RSI 各项服务的状态。如果有任何性能问题或服务中断,你可以在此处看到。", + step_download_title: "下载管理", + step_download_description: "查看下载/更新进度、暂停当前下载或快速访问下载设置。", + "step_user-profile_title": "用户档案", + "step_user-profile_description": "查看当前登录的账户。使用此菜单可快速访问你的 RSI 账户界面。如果你需要切换账号,可在此登出。", + step_last_title: "启动器发展", + step_last_description: "RSI 启动器会随着时间的推移不断发展。请随时在问题理事会向我们反馈问题。感谢你对我们开发的支持。" + }, + download: { + download_empty: "下载队列中没有下载任务。", + download_phase: "阶段", + download_status: "状态", + download_speed: "速度", + download_left: "剩余", + download_files_left: "剩余文件", + download_title: "下载任务", + download_settings: "下载设置", + download_play: "开始", + download_pause: "暂停", + download_initializing: "正在初始化…", + download_update_manifest: "正在下载更新文件清单", + download_manifest: "正在下载文件清单", + downloaded_update_manifest: "更新文件清单已下载", + download_analysing_install: "正在验证安装文件", + download_checking_files: "正在验证文件 - 需要几分钟", + download_base_pack: "正在下载基础文件包", + download_updating_game_files: "正在更新游戏文件", + download_updating_game_content: "正在更新游戏内容", + download_completed: "完成", + download_waiting: "正在排队", + download_cancelling: "正在取消", + download_resume: "继续", + download_cancel: "取消", + download_remove: "移除", + download_error: "错误", + download_toast_install_success: "安装已完成", + download_toast_update_success: "更新已完成", + download_toast_verify_success: "文件验证已完成", + download_toast_install_cancel_success: "下载已取消", + download_toast_uninstall_success: "{{game}} - {{channel}} 已卸载", + download_toast_uninstall_fail: "{{game}} - {{channel}} 无法卸载", + download_type_install: "安装", + download_type_update: "更新", + download_type_verify: "验证文件", + download_toast_fix_permission_success: "权限已修复。请验证游戏文件以继续。", + download_toast_fix_permission_fail: "修复 {{game}} - {{channel}} 权限失败。请重试。" + }, + errors: { + error_game_package_missing_title: "没有游戏资格包", + error_game_package_missing_subtitle: "你需要购买一个游戏资格包以登录访问游戏。", + error_game_package_missing_retry: "重试登录", + error_game_package_missing_support: "客户支持", + error_sign_in_offline_header_title: "你当前处于离线状态", + error_sign_in_offline_header_subtitle: "无法连接至我们的服务器。请检查你的网络并重试。", + error_sign_in_offline_content_title: "为什么我不能进入离线模式?", + error_sign_in_offline_content_description: "你无法进入离线模式可能由以下原因之一造成:", + error_sign_in_offline_content_description_first: "你还未选择 \u201c记住密码\u201d", + error_sign_in_offline_content_description_second: "你的设备信任期限已过", + error_sign_in_offline_content_description_third: "你在过去的30天内未登录过", + error_sign_in_offline_exit: "退出", + error_sign_in_offline_retry: "重试", + error_internal_error: "内部错误", + error_not_authenticated: "你未通过身份验证", + error_invalid_claims: "无效声明", + error_authentication_mfa: "身份验证需要mfa", + error_sign_in_failed: "登入失败。你可能输入了错误的凭证。", + error_sign_in_not_authorized: "你没有权限访问此版本的 RSI 启动器。请从<0>该网页下载公众版本。", + error_captcha_invalid: "验证码无效", + error_session_expired: "你的会话已过期。请再次确认你的密码。", + error_wrong_credentials: "你可能输入了错误的凭证、账户不存在或账户未激活。", + error_max_login_attempt: "已超过登入失败的最大次数。", + error_wrong_mfa_code: "双重验证失败。你可能输入了一个错误或过期的验证码。", + error_captcha_required: "需要验证验证码。", + error_game_error_code: "游戏错误代码:{{ code }}", + error_installer_error_code: "错误代码:{{ code }}", + error_installer_support_permission_title: "权限不足", + error_installer_support_permission_content: "你需要授予启动器权限才能在你的系统上执行安装操作。", + error_installer_create_directory_title: "无法创建文件夹", + error_installer_create_directory_content_1: "创建频道文件夹时出现错误。", + error_installer_create_directory_content_2: "请手动创建频道文件夹,后重试。必须在以下路径上创建文件夹:", + error_installer_more_info_content: "可在<0>知识库中查阅更多相关信息。", + error_installer_basepack_invalid_title: "基础文件包 - 文件无效", + error_installer_basepack_invalid_content: "下载游戏时出现错误,请重试。", + error_installer_disc_full_title: "磁盘空间不足", + error_installer_disc_full_content: "你的磁盘没有足够的可用空间。请清理出空间或将目录移动至空间更大的磁盘。", + error_installer_permissions_title: "文件系统权限错误", + error_installer_permissions_content: "修补程序在写入时遇到权限问题。请检查目录权限并重试。", + error_installer_permissions_action: "修复权限", + error_installer_file_in_use_title: "文件被占用", + error_installer_file_in_use_content: "游戏文件正在被占用。请关闭你打开的游戏文件后重试。", + error_installer_pk4_corrupted_title: "游戏文件已损坏", + error_installer_pk4_corrupted_content: "你的游戏文件已损坏且无法恢复。", + error_installer_retrieve_manifest_title: "无法获取更新文件清单", + error_installer_retrieve_manifest_content: "获取更新文件清单时发生网络错误。请检查你的网络连接-并重启启动器后重试。", + error_installer_unknown_network_title: "未知网络错误", + error_installer_unknown_network_content: "请检查你的网络并重试。", + error_installer_base_p4k_corrupted_title: "基础文件包验证错误", + error_installer_base_p4k_corrupted_content: "基础文件包验证失败。", + error_installer_init_download_title: "下载初始化 - 基础文件包 - 错误", + error_installer_patcher_title: "数据修补程序错误", + error_installer_title: "安装程序错误", + error_installer_patcher_generic_content: "安装时出现错误。可在<0>知识库中查阅更多相关信息。", + error_installer_generic_content: "安装时出现错误。", + error_report_bug: "如果问题依然存在,请<0>汇报漏洞。请同时附上你的<1>日志文件。", + error_generic_title: "启动器错误", + error_generic_content: "出现错误。", + error_os_requirements_title: "未达到最低配置要求", + error_os_requirements_text: "你的电脑未达到运行 {{ game }} 的<0>最低配置要求", + error_cpu_requirements_title: "检测到不支持的硬件", + error_cpu_requirements_text: "游戏需要一个支持 AVX 指令集的 CPU 才能运行。", + error_launch_account_not_found_title: "复制你的账户到 PTU ", + error_launch_account_not_found_content: "想要游玩公共测试宇宙(PTU),你需要复制账户到 PTU。请按照以下步骤<0>这里并重试。", + error_launch_unknown_title: "启动器 - 未知错误", + error_launch_unknown_content: "启动游戏时出现错误。请验证游戏文件完整性。", + error_launch_error_code: "游戏错误代码:{{ code }}", + error_launch_no_game_files_title: "启动器 - 未找到游戏文件", + error_launch_no_game_files_content: "启动游戏时出现错误。无法检索到游戏文件。请验证游戏文件完整性。", + error_launch_EAC_title: "启动器 - EAC 错误", + error_launch_EAC_content: "启动游戏时出现错误。EAC 检测到文件损坏。请验证游戏文件完整性。", + error_launch_game_crash_title: "{{game}} 意外停止运行", + error_launch_game_crash_content_1: "游戏运行时出现错误。", + error_launch_game_crash_content_2: "请尝试重新启动游戏。如果问题依然存在,请验证你的安装文件。", + error_launch_game_running_title: "游戏正在运行", + error_launch_game_running_content: "游戏已经处于运行状态", + error_launch_check_update_unavailable_title: "检查游戏版本失败", + error_launch_check_update_unavailable_content: "检查游戏版本时出现错误。", + error_api_denied_request_title: "API 拒绝请求", + error_api_denied_request_content: "出现错误。你的会话似乎已过期或被拒绝。你已登出,请重试。", + error_api_validation_failed: "API 请求验证失败", + error_api_too_many_requests_title: "请求过多", + error_api_too_many_requests_content: "API 当前过载。请稍等几分钟后重试。", + error_api_unavailable: "API 不可用。请稍等几分钟后重试。", + error_api_internal_server_error: "我们的服务器遇到困难。请稍等几分钟后重试。", + error_api_auth_expired_content: "你的会话已过期。请再次确认你的密码。", + error_api_auth_expired_title: "会话已过期", + error_api_platform_auth_title: "平台验证错误", + error_api_platform_auth_content: "无法在 {{id}} 平台进行验证 {{error}}", + error_network_issue_title: "网络问题", + error_network_issue_content: "无法建立网络连接。请检查你的网络状态后尝试重新连接。" + }, + form: { + sign_in_title: "登入 RSI 启动器", + sign_in_email: "邮箱", + sign_in_password: "密码", + sign_in_remember_me: "记住密码", + sign_in_forgot_password: "忘记密码?", + sign_in_captcha: "验证码", + sign_in_captcha_refresh: "刷新", + sign_in_captcha_help: "输入上方图像中的文本。", + sign_in_no_account: "没有账户?", + sign_in_create_account: "创建一个!", + sign_in_submit: "登入", + sign_in_loading: "正在登入…", + sign_in_prerelease: "这是RSI启动器的抢先发布版本", + sign_in_mfa_title: "我们需要验证你的身份", + sign_in_mfa_subtitle: "保护你的账户对于我们来说是非常重要的。我们向你账户绑定的邮箱发送了验证码。", + sign_in_mfa_code_label: "验证码", + sign_in_mfa_code_help: "输入发送到你的邮箱的代码或验证器中的代码。或者使用备用代码。", + sign_in_mfa_device_label: "设备名称", + sign_in_mfa_device_help: "为你当前设备输入一个名称。", + sign_in_mfa_duration_label: "信任这个设备", + sign_in_mfa_duration_help: "允许设备在选定的时间内跳过MFA验证。如果这是一个共享或公共设备,我们建议你选择“仅当前会话”。", + sign_in_mfa_session: "仅当前会话", + sign_in_mfa_day: "一天", + sign_in_mfa_week: "一周", + sign_in_mfa_month: "一个月", + sign_in_mfa_year: "一年", + sign_in_mfa_back_sign_in: "返回", + sign_in_mfa_submit: "验证身份", + error_field_is_required: "必须输入该字段", + error_email_field_is_required: "需要输入一个邮箱地址", + error_password_field_is_required: "需要输入密码", + error_code_required: "你必须输入你的代码", + error_device_required: "你必须输入你的设备名称", + error_device_min_length: "你的设备名称最少需要3个字符", + text_field_show_password: "显示密码", + text_field_hide_password: "隐藏密码" + }, + gamePage: { + game_page_title: "进入<0/><1>{{name}} 宇宙", + game_page_nav_title: "游戏", + game_page_nav_title_one: "游戏", + game_page_nav_title_other: "游戏", + game_page_game_is_running: "游戏正在运行", + game_page_installing: "正在安装…", + game_page_installing_paused: "安装已暂停", + game_page_updating: "正在更新…", + game_page_updating_paused: "更新已暂停", + game_page_verifying: "正在验证文件…", + game_page_uninstalling: "正在卸载", + game_page_verifying_paused: "验证已暂停", + game_page_update_game: "更新游戏", + game_page_launch_game: "启动游戏", + game_page_install_game: "安装游戏", + game_page_waiting_in_queue: "正在排队", + game_page_channels: "游戏环境", + game_page_settings: "游戏设置", + game_page_settings_verify: "验证游戏文件", + game_page_settings_uninstall: "卸载游戏", + game_page_update_game_is_available: "了解 {{version}} 新内容,<0>请查看补丁说明", + game_page_game_is_not_available_offline: "你目前处于离线状态。运行 {{game}} 需要网络连接。", + game_page_status_under_maintenance: "我们正在对其中一项服务进行维护。", + game_page_status_issue: "我们正在解决一个问题。请自行承担风险。", + game_page_status_more_information: "想要获取更多信息请查阅<0>状态页面", + game_page_cards_empty: "目前没有可用的内容", + game_page_cards_loading: "正在加载内容。", + game_page_cards_tab_community: "社区", + "game_page_cards_tab_comm-links": "通讯链接", + "game_page_cards_tab_new-citizens": "新手指南", + "game_page_cards_tab_patch-notes": "补丁说明", + game_page_card_button_label: "查看更多" + }, + settingsPage: { + settings_about_title: "关于", + settings_application_title: "程序", + settings_games_title: "游戏", + settings_download_title: "下载", + settings_dev_title: "Dev / QA", + settings_storage_title: "存储空间", + settings_nav_items_application: "程序", + settings_nav_items_accessibility: "辅助功能", + settings_nav_items_games: "游戏", + settings_nav_items_about: "关于", + settings_nav_items_download: "下载", + settings_nav_items_storage: "存储空间", + settings_nav_items_dev: "DEV \ud83d\ude80", + settings_about_logo_alt: "CloudImperium©", + settings_about_copyright: "© 2012 - {{year}} Cloud Imperium Rights LLC and Cloud Imperium Rights Ltd", + settings_about_launcher_version: "启动器版本", + settings_about_launcher_preversion: "(抢先版)", + settings_application_window_behavior_title: "窗口行为", + settings_application_window_behavior_description: "此选项允许你在关闭窗口时退出该程序。", + settings_application_window_behavior_close_to_quit: "启用 关闭窗口直接退出程序", + settings_application_debug_tools_title: "启动器调试工具", + settings_application_debug_tools_description: "如果你在使用启动器时遇到问题,清除缓存可能可以解决问题。你还需要找到你的日志文件,这可在你向问题理事会报告启动器问题时提供帮助。", + settings_application_debug_tools_label: "调试工具", + settings_application_debug_tools_button_clear_cache: "清除缓存", + settings_application_debug_tools_button_get_logs: "获取日志文件", + settings_application_debug_tools_button_cache_clear_success: "缓存已清除", + settings_accessibility_title: "辅助功能", + settings_accessibility_reduce_motion_title: "动画减弱", + settings_accessibility_reduce_motion_description: "减弱启动器中的动画。例如:背景视频、图标动画和页面过渡动画。", + settings_accessibility_reduce_motion_system_sync_title: "与操作系统同步", + settings_accessibility_reduce_motion_system_sync_description: "跟随操作系统的动画减弱设置偏好", + settings_accessibility_reduce_motion_background_video_toggle_title: "禁用背景视频", + settings_accessibility_reduce_motion_background_video_toggle_description: "将背景视频替换成一张静态图片", + settings_accessibility_reduce_motion_unessential_animation_toggle_title: "禁用非必要动画", + settings_accessibility_reduce_motion_unessential_animation_toggle_description: "装饰性图标、标志、光标交互...", + settings_accessibility_reduce_motion_transition_effects_toggle_title: "禁用页面过渡效果", + settings_accessibility_reduce_motion_transition_effects_toggle_description: "各部分(页面、选项卡...)之间的过渡动画", + settings_accessibility_reduce_motion_information_enabled: "操作系统的动画减弱已启用。", + settings_accessibility_reduce_motion_information_disabled: "操作系统的动画减弱已停用。", + settings_accessibility_reduce_motion_information_restart_link_label: "下次启动才会应用当前更改。现在重新启动。", + settings_games_installation_title: "游戏位置", + settings_games_installation_description: "这是你的游戏文件夹的路径。", + settings_games_installation_information: "如果你的游戏已经安装在其他位置,在这里选择位置,然后点击验证文件。", + settings_games_installation_path_title: "游戏位置完整路径", + settings_games_installation_library_folder_success: "路径已更新", + settings_games_installation_library_folder_change: "更改", + settings_games_installation_library_folder_label: "RSI 目录位置", + settings_games_game_files_title: "安装位置", + settings_games_game_files_description: "安装/卸载此游戏频道或验证已安装的游戏文件完整性。", + settings_games_game_files_verify_files: "验证游戏文件", + settings_games_game_files_verifying_files: "正在验证游戏文件", + settings_games_game_files_install_files: "安装游戏", + settings_games_game_files_installing_files: "正在安装", + settings_games_game_files_uninstall_files: "卸载游戏", + settings_games_game_files_uninstalling_files: "正在卸载", + settings_games_game_files_process_paused: "已暂停", + settings_common_reset: "重置所有更改", + settings_common_reset_confirmation: "此游戏频道的更改已被重置", + settings_common_accordion_open_all: "全部展开", + settings_common_accordion_close_all: "全部折叠", + settings_common_back: "返回", + settings_common_saved: "已保存", + settings_download_main_title: "带宽使用", + settings_download_main_content: "调整下行带宽以优化网速", + settings_storage_main_title: "默认游戏库", + settings_storage_main_description: "默认情况下,新游戏和环境将安装在此处。", + settings_storage_default_library_folder_label: "游戏库位置", + settings_storage_additional_libs_title: "其他游戏库", + settings_storage_additional_libs_description: "在一个或多个驱动器中创建库", + settings_storage_add_additional_libraries: "添加新游戏库", + settings_download_concurrent_title: "同时下载数", + settings_download_concurrent_desc: "调整同时下载的最大文件数。优化你的下载体验以匹配你的偏好和网络。", + settings_download_speed_title: "限制下载速度", + settings_download_speed_desc: "通过为每个并发下载连接设置每秒数据传输速率上限来调节下载速度。", + settings_download_speed_unlimited: "无限制", + settings_application_discover_behavior_title: "探索行为", + settings_application_discover_behavior_description: "启动器探索仅在首次进入启动器时显示(或通过点击 RSI 菜单中的 探索 按钮)。此选项将允许您在负载时重新启用 探索 以进行测试。", + settings_application_discover_behavior_isDiscoverDone: "isDiscoverDone", + settings_games_launch_command_line: "其他命令行参数", + settings_games_launch_disclaimer: "此操作将在你下次启动游戏时应用", + settings_games_launch_hostname: "宇宙 Host", + settings_games_launch_port: "宇宙端口", + settings_games_launch_executable: "可执行", + settings_games_launch_launch_options: "启动器选项", + settings_games_launch_eac_title: "Easy Anti-Cheat", + settings_games_launch_eac_description: "Easy Anti-Cheat 是许多流行游戏使用的反作弊服务。用于在多人PC游戏中阻止作弊和未授权的第三方软件的使用。", + settings_games_launch_eac_informative: "你需要在上面设置正确的可执行文件以启用 绕过EAC", + settings_games_launch_eac_disable: "启用 绕过Easy Anti-Cheat", + settings_games_launch_default: "默认:", + settings_games_info_move_directory: "如果你的游戏已安装在其他位置,请将你的游戏文件夹移动到以下游戏库位置", + settings_gmaes_info_complete_path: "完整路径:", + settings_games_manage_game_libraries: "管理游戏库", + settings_games_game_location_title: "游戏位置", + settings_games_game_location_description: "选择要安装此游戏的游戏库", + settings_action_set_default: "设置为默认", + settings_action_delete_library: "删除游戏库", + settings_toast_delete_lib_success: "游戏库已删除", + settings_toast_default_lib_updated: "默认游戏库已更新", + settings_toast_lib_added: "一个新的游戏库已创建" + }, + status: { + status_title: "RSI 状态", + status_empty: "无状态可用。", + status_last_updated: "最后一次更新 {{time}}", + status_last_updated_empty: "当前无可用数据。", + status_more_information: "更多信息", + status_major: "完全中断", + status_partial: "部分中断", + status_degraded: "性能下降", + status_maintenance: "正在维护", + status_operational: "正常运行" + }, + tray: { + tray_website: "访问网站", + tray_report_bug: "汇报漏洞", + tray_spectrum: "光谱", + tray_community_hub: "社区中心", + tray_support: "支持", + tray_mute: "静音", + tray_unmute: "取消静音", + tray_logout: "登出", + tray_quit: "退出" + } + }; + + const SC_TOOLBOX_LOCALIZATION_ZHTW_MAP = { + agreements: { + agreement_fetch_info_error: "暫時無法從伺服器取得協議,請稍等一分鐘後再試。", + agreement_declined: "協議被拒絕" + }, + appHeader: { + app_header_menu: "選單", + app_header_volume: "音量", + app_header_volume_mute: "靜音", + app_header_volume_unmute: "取消靜音", + app_header_account: "帳戶", + app_header_account_name: "使用者名稱", + app_header_account_moniker: "@社群暱稱", + app_header_menu_get_help: "取得幫助", + app_header_menu_spectrum: "Spectrum", + app_header_menu_issue_council: "問題與建議中心", + app_header_menu_discover: "探索啟動器功能", + app_header_menu_exit_the_app: "關閉程式", + app_header_menu_settings: "設定", + app_header_actions_download: "下載", + app_header_actions_menu_rsi_status: "RSI 狀態", + app_header_actions_menu_rsi_account: "RSI 帳戶", + app_header_actions_menu_log_out: "登出", + app_header_loading: "正在進入宇宙…" + }, + autoUpdate: { + auto_update_dialog_close: "關閉", + auto_update_dialog_title: "有更新等待安裝", + auto_update_dialog_sub_title: "版本{{version}}", + auto_update_dialog_no_update_content: "您目前正在執行的就是 RSI 啟動器的最新版本。<0/>感謝您保持更新!", + auto_update_dialog_no_update_action_primary_label: "繼續", + auto_update_dialog_update_available_content: "有新的 RSI 啟動器版本可安裝。程式將會關閉並重新啟動。", + auto_update_dialog_update_available_action_primary_label: "安裝並重新啟動", + auto_update_dialog_update_available_action_secondary_label: "稍後安裝", + auto_update_dialog_update_install_failed_content: "無法更新至最新版本的啟動器,請重新安裝或聯繫<0>客戶支援", + auto_update_dialog_update_install_failed_action_primary_label: "重新安裝", + auto_update_dialog_update_install_failed_action_secondary_label: "稍後安裝", + auto_update_dialog_update_quit_game_content: "遊戲工作階段目前正在執行。如果你想要安裝新版本啟動器,將會關閉目前遊戲工作階段,正在進行的遊戲進度可能會遺失", + auto_update_dialog_update_quit_game_action_primary_label: "退出遊戲並安裝", + auto_update_dialog_update_quit_game_action_secondary_label: "稍後再試", + auto_update_toast_update_installed: "成功安裝新版本啟動器" + }, + contextMenu: { + context_menu_copy: "複製", + context_menu_paste: "貼上", + context_menu_cut: "剪下", + context_menu_select_all: "全選" + }, + dialog: { + dialog_warning_logout_title: "登出", + dialog_warning_logout_text: "你確定要登出帳戶嗎?", + dialog_warning_logout_game_running_text: "你確定要在遊戲執行時登出帳戶嗎?正在進行的遊戲進度可能會遺失。", + dialog_warning_logout_confirm: "登出", + dialog_warning_logout_error: "登出時發生錯誤。你的工作階段可能已經過期。請嘗試重新登入。", + dialog_action_cancel: "取消", + dialog_action_confirm: "確認", + dialog_action_acknowledge: "我已了解", + dialog_action_ok: "OK", + dialog_action_retry: "再次嘗試", + dialog_action_close: "關閉", + dialog_action_accept: "同意", + dialog_action_decline: "拒絕", + dialog_action_verify: "驗證文件", + dialog_action_install: "安裝遊戲", + dialog_action_relaunch: "重新啟動", + dialog_action_discard: "放棄", + dialog_action_cancel_download: "取消下載", + dialog_warning_back_launcher: "返回啟動器", + dialog_warning_exit_app_title: "關閉程式", + dialog_warning_exit_app_text: "你確定要退出應用程式嗎?", + dialog_warning_exit_app_checkbox: "不再顯示", + dialog_warning_exit_app_game_running_text: "你確定要在遊戲執行時退出應用程式嗎?", + dialog_warning_exit_app_confirm: "關閉程式", + dialog_warning_uninstall_title: "移除 {{game}} - {{channel}}", + dialog_warning_uninstall_text: "你確定要從你的電腦移除該遊戲嗎?請注意,你的電腦上的所有使用者都會移除該遊戲文件。", + dialog_warning_uninstall_userFolder_checkbox: "保留使用者資料夾(按鍵綁定和設定偏好)", + dialog_warning_uninstall_userFolder_checkbox_description: "目錄位置:{{path}}", + dialog_warning_uninstall_confirm: "移除遊戲", + dialog_settings_reset_title: "重設設定", + dialog_settings_reset_content: "你確定要重設你的遊戲設定嗎?", + dialog_settings_reset_button: "復原預設", + dialog_settings_game_not_installed_title: "尚未安裝遊戲", + dialog_settings_game_not_installed_content: "目前你嘗試驗證文件的位置並未安裝遊戲。請先安裝遊戲後重試。", + dialog_cancel_installation_title: "取消下載", + dialog_cancel_installation_content: "你確定要取消下載{{info}}嗎?", + dialog_cancel_installation_content_keep_files_downloaded: "保留已下載的文件", + dialog_start_installation_title: "安裝 {{game}} - {{channel}}", + dialog_start_installation_content_location: "遊戲將安裝在以下位置", + dialog_start_installation_content_location_settings: "你可以在遊戲設定中更改遊戲位置", + dialog_start_installation_action_go_to_settings: "遊戲設定", + dialog_start_installation_action_install: "安裝", + dialog_launch_check_update_available_title: "遊戲版本更新", + dialog_launch_check_update_available_content: "一個新的遊戲版本 {{game}} - {{channel}} 可安裝。請更新後再進入遊戲。", + dialog_discover_title: "啟動器更新了 UI !", + dialog_discover_content: "RSI 啟動器的外觀現在已經煥然一新!我們準備了一小段旅程來引領你去看看有什麼樣的改變。", + dialog_discover_start: "開始旅程", + dialog_discover_skip: "跳過", + dialog_debug_cache_clear_title: "清除啟動器快取", + dialog_debug_cache_clear_content: "此操作將清除啟動器快取並退出登入,你確定要繼續嗎?", + dialog_debug_cache_clear_button: "繼續" + }, + discover: { + step_done_label: "立即進入", + step_menu_title: "啟動器應用選單", + step_menu_description: "在此選單中可快速訪設定和其他有用的資源,例如:支援、Spectrum和問題與建議中心。", + step_status_title: "狀態", + step_status_description: "在此可查看 RSI 各項服務的狀態。如果有任何性能問題或服務中斷,你可以在此處看到。", + step_download_title: "下載管理", + step_download_description: "查看下載/更新進度、暫停目前下載或快速更改下載設定。", + "step_user-profile_title": "使用者檔案", + "step_user-profile_description": "查看目前登入的帳戶。使用此選單能夠快速瀏覽你的 RSI 帳戶介面。如果你需要切換帳號,可以在此處進行登出。", + step_last_title: "啟動器路線圖", + step_last_description: "RSI 啟動器會隨著時間的推移不斷發展。請隨時在問題與建議中心向我們回饋問題。感謝你對我們開發的支援。" + }, + download: { + download_empty: "下載佇列中沒有下載任務。", + download_phase: "階段", + download_status: "狀態", + download_speed: "速度", + download_left: "剩餘", + download_files_left: "剩餘文件", + download_title: "下載任務", + download_settings: "下載設定", + download_play: "開始", + download_pause: "暫停", + download_initializing: "正在初始化…", + download_update_manifest: "正在下載更新文件清單", + download_manifest: "正在下載文件清單", + downloaded_update_manifest: "更新文件清單已下載", + download_analysing_install: "正在驗證安裝文件", + download_checking_files: "正在驗證文件 - 需要幾分鐘", + download_base_pack: "正在下載基礎文件包", + download_updating_game_files: "正在更新遊戲文件", + download_updating_game_content: "正在更新遊戲內容", + download_completed: "完成", + download_waiting: "正在排隊", + download_cancelling: "正在取消", + download_resume: "繼續", + download_cancel: "取消", + download_remove: "移除", + download_error: "錯誤", + download_toast_install_success: "安裝已完成", + download_toast_update_success: "更新已完成", + download_toast_verify_success: "文件驗證已完成", + download_toast_install_cancel_success: "下載已取消", + download_toast_uninstall_success: "{{game}} - {{channel}} 已移除", + download_toast_uninstall_fail: "{{game}} - {{channel}} 無法移除", + download_type_install: "安裝", + download_type_update: "更新", + download_type_verify: "驗證文件" + }, + errors: { + error_game_package_missing_title: "沒有遊戲資格包", + error_game_package_missing_subtitle: "你需要購買一個遊戲資格包才能夠登入遊戲。", + error_game_package_missing_retry: "重新登入", + error_game_package_missing_support: "客戶支援", + error_internal_error: "內部錯誤", + error_not_authenticated: "你未通過身份驗證", + error_invalid_claims: "無效宣告", + error_authentication_mfa: "身份驗證需要mfa", + error_sign_in_failed: "登入失敗。你可能輸入了錯誤的憑證。", + error_sign_in_not_authorized: "你沒有登入權限。", + error_captcha_invalid: "驗證碼無效", + error_session_expired: "你的工作階段已過期。請再次確認你的密碼。", + error_wrong_credentials: "你可能輸入了錯誤的憑證、帳戶不存在或帳戶未啟用(1032)", + error_max_login_attempt: "已超過登入失敗的最大次數。(1034)", + error_wrong_mfa_code: "雙重驗證失敗。你可能輸入了錯誤的或過期的驗證碼(1037)", + error_captcha_required: "登入失敗。你可能輸入了錯誤的憑證。", + error_installer_basepack_invalid_title: "基礎文件包 - 文件無效", + error_installer_basepack_invalid_content: "下載遊戲時出現錯誤,請重試。錯誤代碼:{{code}}", + error_installer_disc_full_title: "磁碟空間不足", + error_installer_disc_full_content: "你的磁碟沒有足夠的可用空間。請清理出空間或將目錄移動至空間更大的磁碟。錯誤代碼:{{code}}", + error_installer_permissions_title: "文件系統權限錯誤", + error_installer_permissions_content: "修補程式在寫入時遇到權限問題。請檢查目錄權限並重試。錯誤代碼:{{code}}", + error_installer_permissions_action: "修復權限", + error_installer_file_in_use_title: "文件被佔用", + error_installer_file_in_use_content: "遊戲文件正在被佔用。請關閉你打開的遊戲文件後重試。錯誤代碼:{{code}}", + error_installer_pk4_corrupted_title: "遊戲文件已損壞", + error_installer_pk4_corrupted_content: "你的遊戲文件已損壞且無法復原。錯誤代碼:{{code}}", + error_installer_retrieve_manifest_title: "無法取得更新文件清單", + error_installer_retrieve_manifest_content: "取得更新文件清單時發生網路錯誤。請檢查你的網路連接-並重啟啟動器後重試。錯誤代碼:{{code}}", + error_installer_unknown_network_title: "未知網路錯誤", + error_installer_unknown_network_content: "請檢查你的網路並重試。錯誤代碼:{{code}}", + error_installer_base_p4k_corrupted_title: "基礎文件包驗證錯誤", + error_installer_base_p4k_corrupted_content: "基礎文件包驗證失敗,請重試。如果問題依然存在,請<0>回報漏洞。別忘了附上你的<1>日誌檔案。", + error_installer_init_download_title: "下載初始化 - 基礎文件包 - 錯誤", + error_installer_patcher_title: "資料修補程式錯誤", + error_installer_title: "安裝程式錯誤", + error_installer_patcher_generic_content: "安裝時出現錯誤。可在<0>知識庫中查閱更多相關資訊。如果問題依然存在,請<1>回報漏洞。請同時附上你的<2>日誌檔案。錯誤代碼:{{code}}", + error_installer_generic_content: "安裝時出現錯誤。如果問題依然存在,請<0>回報漏洞。請同時附上你的<1>日誌檔案。錯誤代碼:{{code}}", + error_generic_title: "啟動器錯誤", + error_generic_content: "出現錯誤。如果問題依然存在,請<0>回報漏洞。請同時附上你的<1>日誌檔案。錯誤代碼:{{code}}", + error_os_requirements_title: "未達到最低配置要求", + error_os_requirements_text: "你的電腦未達到執行 {{ game }} 的<0>最低配置要求", + error_cpu_requirements_title: "檢測到不支援的硬體", + error_cpu_requirements_text: "遊戲需要一個支援 AVX 指令集的 CPU 才能執行。", + error_launch_account_not_found_title: "將你的帳戶複製到 PTU ", + error_launch_account_not_found_content: "想要遊玩公共測試宇宙(PTU),你需要複製帳戶到 PTU。請按照以下步驟<0>這裡並重試。錯誤代碼:{{code}}", + error_launch_game_title: "{{game}} 意外停止執行", + error_launch_game_content: "嘗試重新啟動遊戲。如果問題依然存在,請驗證你的安裝文件。", + error_launch_unknown_title: "啟動器 - 未知錯誤", + error_launch_unknown_content: "啟動遊戲時出現錯誤。請驗證遊戲文件完整性。<2> 如果問題依然存在,請<0>回報漏洞。請同時附上你的<1>日誌檔案。錯誤代碼:{{code}}", + error_launch_no_game_files_title: "啟動器 - 未找到遊戲文件", + error_launch_no_game_files_content: "啟動遊戲時出現錯誤。無法檢索到遊戲文件。請驗證遊戲文件完整性。錯誤代碼:{{code}}", + error_launch_EAC_title: "啟動器 - EAC 錯誤", + error_launch_EAC_content: "啟動遊戲時出現錯誤。EAC 檢測到文件損壞。請驗證遊戲文件完整性。錯誤代碼:{{code}}", + error_launch_game_crash_title: "遊戲錯誤", + error_launch_game_crash_content: "遊戲執行時出現錯誤。如果問題依然存在,請<0>回報漏洞。請同時附上你的<1>日誌檔案。錯誤代碼:{{code}}", + error_launch_game_running_title: "遊戲正在執行", + error_launch_game_running_content: "遊戲已經處於執行狀態", + error_launch_check_update_unavailable_title: "檢查遊戲版本失敗", + error_launch_check_update_unavailable_content: "檢查遊戲版本時出現錯誤。如果問題依然存在,請<0>回報漏洞。請同時附上你的<1>日誌檔案。錯誤代碼:{{code}}", + error_api_denied_request_title: "API 拒絕請求", + error_api_denied_request_content: "出現錯誤。你的工作階段似乎已過期或被拒絕。你已登出,請重試。", + error_api_validation_failed: "API 請求驗證失敗", + error_api_too_many_requests_title: "請求過多", + error_api_too_many_requests_content: "API 目前過載。請稍等幾分鐘後重試。", + error_api_unavailable: "API 不可用。請稍等幾分鐘後重試。", + error_api_internal_server_error: "我們的伺服器遇到困難。請稍等幾分鐘後重試。", + error_api_auth_expired_content: "你的工作階段已過期。請再次確認你的密碼。", + error_api_auth_expired_title: "工作階段已過期", + error_api_platform_auth_title: "平台驗證錯誤", + error_api_platform_auth_content: "無法在 {{id}} 平台進行驗證 {{error}}", + error_network_issue_title: "網路問題", + error_network_issue_content: "無法建立網路連接。請檢查你的網路狀態後嘗試重新連接。" + }, + form: { + sign_in_title: "登入 RSI 啟動器", + sign_in_email: "電子信箱", + sign_in_password: "密碼", + sign_in_remember_me: "記住密碼", + sign_in_forgot_password: "忘記密碼?", + sign_in_captcha: "驗證碼", + sign_in_captcha_refresh: "重新整理", + sign_in_captcha_help: "輸入上方圖像中的文字。", + sign_in_no_account: "沒有帳戶?", + sign_in_create_account: "建立一個!", + sign_in_submit: "登入", + sign_in_loading: "正在登入…", + sign_in_mfa_title: "我們需要驗證你的身份", + sign_in_mfa_subtitle: "保護你的帳戶對於我們來說是非常重要的。我們向你帳戶綁定的電子信箱發送了驗證碼。", + sign_in_mfa_code_label: "驗證碼", + sign_in_mfa_code_help: "輸入發送到你的電子信箱的程式碼或驗證器中的程式碼。或者使用備用程式碼。", + sign_in_mfa_device_label: "裝置名稱", + sign_in_mfa_device_help: "為你目前裝置輸入一個名稱。", + sign_in_mfa_duration_label: "信任這個裝置", + sign_in_mfa_duration_help: "允許裝置在選定的時間內跳過MFA驗證。如果這是一個共享或公共裝置,我們建議你選擇“僅目前工作階段”。", + sign_in_mfa_session: "僅目前工作階段", + sign_in_mfa_day: "一天", + sign_in_mfa_week: "一週", + sign_in_mfa_month: "一個月", + sign_in_mfa_year: "一年", + sign_in_mfa_back_sign_in: "返回", + sign_in_mfa_submit: "驗證身份", + error_field_is_required: "必須輸入該欄位", + error_email_field_is_required: "需要輸入一個電子信箱地址", + error_password_field_is_required: "需要輸入密碼", + error_code_required: "你必須輸入你的程式碼", + error_device_required: "你必須輸入你的裝置名稱", + error_device_min_length: "你的裝置名稱最少需要3個字元", + text_field_show_password: "顯示密碼", + text_field_hide_password: "隱藏密碼" + }, + gamePage: { + game_page_title: "進入<0/><1>{{name}} 宇宙", + game_page_nav_title: "遊戲", + game_page_nav_title_one: "遊戲", + game_page_nav_title_other: "遊戲", + game_page_game_is_running: "遊戲正在執行", + game_page_installing: "正在安裝…", + game_page_installing_paused: "安裝已暫停", + game_page_updating: "正在更新…", + game_page_updating_paused: "更新已暫停", + game_page_verifying: "正在驗證文件…", + game_page_uninstalling: "正在移除", + game_page_verifying_paused: "驗證已暫停", + game_page_update_game: "更新遊戲", + game_page_launch_game: "啟動遊戲", + game_page_install_game: "安裝遊戲", + game_page_waiting_in_queue: "正在排隊", + game_page_channels: "遊戲環境", + game_page_settings: "遊戲設定", + game_page_settings_verify: "驗證遊戲文件", + game_page_settings_uninstall: "移除遊戲", + game_page_update_game_is_available: "了解 {{version}} 新內容,<0>請查看補丁說明", + game_page_status_under_maintenance: "我們正在對其中一項服務進行維護。", + game_page_status_issue: "我們正在解決一個問題。請自行承擔風險。", + game_page_status_more_information: "想要取得更多資訊請查閱<0>狀態頁面", + game_page_cards_empty: "目前沒有可用的內容", + game_page_cards_loading: "正在載入內容。", + game_page_cards_tab_community: "社群", + "game_page_cards_tab_comm-links": "通訊連結", + "game_page_cards_tab_new-citizens": "新手指南", + "game_page_cards_tab_patch-notes": "補丁說明", + game_page_card_button_label: "查看更多" + }, + settingsPage: { + settings_about_title: "關於啟動器", + settings_application_title: "一般設定", + settings_games_title: "遊戲檔案", + settings_download_title: "下載設定", + settings_dev_title: "Dev / QA", + settings_nav_items_application: "程式", + settings_nav_items_accessibility: "輔助功能", + settings_nav_items_games: "遊戲", + settings_nav_items_about: "關於", + settings_nav_items_download: "下載", + settings_nav_items_dev: "DEV \ud83d\ude80", + settings_about_logo_alt: "CloudImperium©", + settings_about_copyright: "© 2012 - {{year}} Cloud Imperium Rights LLC and Cloud Imperium Rights Ltd", + settings_about_launcher_version: "啟動器版本", + settings_application_window_behavior_title: "關閉設定", + settings_application_window_behavior_description: "此功能將會停用啟動器最小化,並在你關閉視窗後直接關閉啟動器。", + settings_application_window_behavior_close_to_quit: "啟用 關閉視窗直接關閉程式", + settings_application_debug_tools_title: "啟動器除錯工具", + settings_application_debug_tools_description: "如果你在使用啟動器時遇到問題,清除快取可能可以解決問題。你還需要找到你的日誌檔案,這可在你向問題與建議中心報告啟動器問題時提供幫助。", + settings_application_debug_tools_label: "除錯工具", + settings_application_debug_tools_button_clear_cache: "清除快取", + settings_application_debug_tools_button_get_logs: "取得日誌檔案", + settings_application_debug_tools_button_cache_clear_success: "快取已清除", + settings_accessibility_title: "輔助功能", + settings_accessibility_reduce_motion_title: "減少動畫效果", + settings_accessibility_reduce_motion_description: "減少啟動器中的動畫效果。例如:背景影片、圖示動畫和頁面轉換動畫。", + settings_accessibility_reduce_motion_system_sync_title: "與系統同步", + settings_accessibility_reduce_motion_system_sync_description: "與系統的動畫減少設定同步", + settings_accessibility_reduce_motion_background_video_toggle_title: "停用背景影片", + settings_accessibility_reduce_motion_background_video_toggle_description: "使用靜態圖片取代背景影片", + settings_accessibility_reduce_motion_unessential_animation_toggle_title: "停用非必要動畫", + settings_accessibility_reduce_motion_unessential_animation_toggle_description: "裝飾性圖示、標誌、游標互動...", + settings_accessibility_reduce_motion_transition_effects_toggle_title: "停用頁面轉換效果", + settings_accessibility_reduce_motion_transition_effects_toggle_description: "各部分(頁面、頁籤...)之間的過渡動畫", + settings_accessibility_reduce_motion_information_enabled: "系統的動畫減少已啟用。", + settings_accessibility_reduce_motion_information_restart_link_label: "下次啟動時才會套用目前變更。立刻重新啟動。", + settings_games_installation_title: "遊戲位置", + settings_games_installation_description: "這是你的遊戲資料夾的路徑。", + settings_games_installation_information: "如果你的遊戲已經安裝在其他位置,在這裡選擇位置,然後點擊驗證文件。", + settings_games_installation_path_title: "遊戲位置完整路徑", + settings_games_installation_library_folder_success: "路徑已更新", + settings_games_installation_library_folder_change: "更改", + settings_games_installation_library_folder_label: "RSI 目錄位置", + settings_games_game_files_title: "遊戲文件", + settings_games_game_files_description: "安裝/移除此遊戲頻道或驗證已安裝的遊戲文件完整性。", + settings_games_game_files_verify_files: "驗證遊戲文件", + settings_games_game_files_verifying_files: "正在驗證遊戲文件", + settings_games_game_files_install_files: "安裝遊戲", + settings_games_game_files_installing_files: "正在安裝", + settings_games_game_files_uninstall_files: "移除遊戲", + settings_games_game_files_uninstalling_files: "正在移除", + settings_games_game_files_process_paused: "已暫停", + settings_common_reset: "重設所有更改", + settings_common_reset_confirmation: "此遊戲頻道的更改已被重設", + settings_common_accordion_open_all: "展開全部", + settings_common_accordion_close_all: "收起全部", + settings_common_back: "返回", + settings_common_saved: "已儲存", + settings_download_main_title: "下載限制", + settings_download_main_content: "調整下載速度來改善網路速率", + settings_download_concurrent_title: "同時下載數", + settings_download_concurrent_desc: "調整同時下載的最大文件數。提升你的下載體驗來匹配你的個人習慣和網路環境。", + settings_download_speed_title: "限制下載速度", + settings_download_speed_desc: "設定每秒資料傳輸速率上限以調節下載速率。", + settings_application_discover_behavior_title: "探索功能", + settings_application_discover_behavior_description: "啟動器探索僅在首次進入啟動器時顯示(或透過點擊 RSI 選單中的 探索 按鈕)。此選項將允許您在負載時重新啟用 探索 以進行測試。", + settings_application_discover_behavior_isDiscoverDone: "isDiscoverDone", + settings_games_launch_command_line: "其他命令列參數", + settings_games_launch_disclaimer: "此操作將在你下次\u2019ll啟動遊戲時應用", + settings_games_launch_hostname: "宇宙 Host", + settings_games_launch_port: "宇宙埠", + settings_games_launch_executable: "可執行", + settings_games_launch_launch_options: "啟動器選項" + }, + status: { + status_title: "RSI 伺服器狀態", + status_empty: "暫無狀態可顯示。", + status_last_updated: "最後更新於 {{time}}", + status_last_updated_empty: "目前沒有資料。", + status_more_information: "更多資訊", + status_major: "完全斷線", + status_partial: "部分斷線", + status_degraded: "性能較差", + status_maintenance: "正在維護", + status_operational: "正常執行" + }, + tray: { + tray_website: "瀏覽網站", + tray_report_bug: "回報漏洞", + tray_spectrum: "Spectrum", + tray_community_hub: "社群中心", + tray_support: "支援", + tray_mute: "靜音", + tray_unmute: "取消靜音", + tray_logout: "登出", + tray_quit: "退出" + } + }; + function r(e) { return r = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) { return typeof e @@ -10781,14 +10952,14 @@ }]), e }(); - function k() { + function w() { var e, t, n = new Promise((function(n, r) { e = n, t = r })); return n.resolve = e, n.reject = t, n } - function w(e) { + function k(e) { return null == e ? "" : "" + e } @@ -11173,9 +11344,9 @@ _ = Object.prototype.toString.apply(g), b = ["[object Number]", "[object Function]", "[object RegExp]"], x = void 0 !== t.joinArrays ? t.joinArrays : this.options.joinArrays, - k = !this.i18nFormat || this.i18nFormat.handleAsObject, - w = "string" !== typeof g && "boolean" !== typeof g && "number" !== typeof g; - if (k && g && w && b.indexOf(_) < 0 && ("string" !== typeof x || "[object Array]" !== _)) { + w = !this.i18nFormat || this.i18nFormat.handleAsObject, + k = "string" !== typeof g && "boolean" !== typeof g && "number" !== typeof g; + if (w && g && k && b.indexOf(_) < 0 && ("string" !== typeof x || "[object Array]" !== _)) { if (!t.returnObjects && !this.options.returnObjects) { this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!"); var S = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(v, g, B(B({}, t), {}, { @@ -11196,7 +11367,7 @@ })), O[C] === A && (O[C] = g[C]) } g = O } - } else if (k && "string" === typeof x && "[object Array]" === _)(g = g.join(x)) && (g = this.extendTranslation(g, e, t, i)); + } else if (w && "string" === typeof x && "[object Array]" === _)(g = g.join(x)) && (g = this.extendTranslation(g, e, t, i)); else { var P = !1, T = !1, @@ -11771,13 +11942,13 @@ var l = d(e, i, r); a = "string" === typeof l ? l : "" } else if (r && r.hasOwnProperty(n)) a = ""; - else { - if (p) { - a = i[0]; - continue - } - s.logger.warn("missed to pass in variable ".concat(n, " for interpolating ").concat(e)), a = "" - } else "string" === typeof a || s.useRawValueToEscape || (a = w(a)); + else { + if (p) { + a = i[0]; + continue + } + s.logger.warn("missed to pass in variable ".concat(n, " for interpolating ").concat(e)), a = "" + } else "string" === typeof a || s.useRawValueToEscape || (a = k(a)); var c = t.safeValue(a); if (e = e.replace(i[0], c), p ? (t.regex.lastIndex += a.length, t.regex.lastIndex -= i[0].length) : t.regex.lastIndex = 0, ++o >= s.maxReplaces) break } @@ -11816,7 +11987,7 @@ n[1] = u.shift(), l = u, c = !0 } if ((r = t(s.call(this, n[1].trim(), i), i)) && n[0] === e && "string" !== typeof r) return r; - "string" !== typeof r && (r = w(r)), r || (this.logger.warn("missed to resolve ".concat(n[1], " for nesting ").concat(e)), r = ""), c && (r = l.reduce((function(e, t) { + "string" !== typeof r && (r = k(r)), r || (this.logger.warn("missed to resolve ".concat(n[1], " for nesting ").concat(e)), r = ""), c && (r = l.reduce((function(e, t) { return a.format(e, t, o.lng, te(te({}, o), {}, { interpolationkey: n[1].trim() })) @@ -12054,9 +12225,9 @@ o = i.k; a[o] = a[o] || [], r && (a[o] = a[o].concat(n)), r || a[o].push(n) }(n.loaded, [i], a), - function(e, t) { - void 0 !== e.pending[t] && (delete e.pending[t], e.pendingCount--) - }(n, e), t && n.errors.push(t), 0 !== n.pendingCount || n.done || (Object.keys(n.loaded).forEach((function(e) { + function(e, t) { + void 0 !== e.pending[t] && (delete e.pending[t], e.pendingCount--) + }(n, e), t && n.errors.push(t), 0 !== n.pendingCount || n.done || (Object.keys(n.loaded).forEach((function(e) { o[e] || (o[e] = {}); var t = n.loaded[e]; t.length && t.forEach((function(t) { @@ -12296,8 +12467,8 @@ var e, r = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, a = arguments.length > 1 ? arguments[1] : void 0; if (i(this, n), e = t.call(this), D && x.call(l(e)), e.options = pe(r), e.services = {}, e.logger = b, e.modules = { - external: [] - }, ve(l(e)), a && !e.isInitialized && !r.isClone) { + external: [] + }, ve(l(e)), a && !e.isInitialized && !r.isClone) { if (!e.options.initImmediate) return e.init(r, a), d(e, l(e)); setTimeout((function() { e.init(r, a) @@ -12358,7 +12529,7 @@ return (n = e.store)[t].apply(n, arguments), e } })); - var d = k(), + var d = w(), p = function() { var t = function(t, r) { e.isInitialized && !e.initializedStoreOnce && e.logger.warn("init: i18next is already initialized. You should call init just once!"), e.isInitialized = !0, e.options.isClone || e.logger.log("initialized", e.options), e.emit("initialized", e.options), d.resolve(r), n(t, r) @@ -12400,7 +12571,7 @@ }, { key: "reloadResources", value: function(e, t, n) { - var r = k(); + var r = w(); return e || (e = this.languages), t || (t = this.options.ns), n || (n = ge), this.services.backendConnector.reload(e, t, (function(e) { r.resolve(), n(e) })), r @@ -12429,7 +12600,7 @@ value: function(e, t) { var n = this; this.isLanguageChangingTo = e; - var r = k(); + var r = w(); this.emit("languageChanging", e); var i = function(e) { n.language = e, n.languages = n.services.languageUtils.toResolveHierarchy(e), n.resolvedLanguage = void 0, n.setResolvedLanguage(e) @@ -12509,7 +12680,7 @@ key: "loadNamespaces", value: function(e, t) { var n = this, - r = k(); + r = w(); return this.options.ns ? ("string" === typeof e && (e = [e]), e.forEach((function(e) { n.options.ns.indexOf(e) < 0 && n.options.ns.push(e) })), this.loadResources((function(e) { @@ -12519,7 +12690,7 @@ }, { key: "loadLanguages", value: function(e, t) { - var n = k(); + var n = w(); "string" === typeof e && (e = [e]); var r = this.options.preload || [], i = e.filter((function(e) { @@ -12591,7 +12762,7 @@ }, xe(e) } - function ke(e) { + function we(e) { var t = function(e, t) { if ("object" !== xe(e) || null === e) return e; var n = e[Symbol.toPrimitive]; @@ -12605,8 +12776,8 @@ return "symbol" === xe(t) ? t : String(t) } - function we(e, t, n) { - return (t = ke(t)) in e ? Object.defineProperty(e, t, { + function ke(e, t, n) { + return (t = we(t)) in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, @@ -12706,9 +12877,9 @@ return a < 0 ? (r.push(f), r) : ((c = i[a]).children.push(f), r) } if (u && (a++, "tag" === (n = Pe(s)).type && t.components[n.name] && (n.type = "component", o = !0), n.voidElement || o || !h || "<" === h || n.children.push({ - type: "text", - content: e.slice(p, e.indexOf("<", p)) - }), 0 === a && r.push(n), (c = i[a - 1]) && c.children.push(n), i[a] = n), (!u || n.voidElement) && (a > -1 && (n.voidElement || n.name === s.slice(2, -1)) && (a--, n = -1 === a ? r : i[a]), !o && "<" !== h && h)) { + type: "text", + content: e.slice(p, e.indexOf("<", p)) + }), 0 === a && r.push(n), (c = i[a - 1]) && c.children.push(n), i[a] = n), (!u || n.voidElement) && (a > -1 && (n.voidElement || n.name === s.slice(2, -1)) && (a--, n = -1 === a ? r : i[a]), !o && "<" !== h && h)) { c = -1 === a ? r : i[a].children; var m = e.indexOf("<", p), g = e.slice(p, -1 === m ? void 0 : m); @@ -12818,7 +12989,7 @@ for (var t = 1; t < arguments.length; t++) { var n = null != arguments[t] ? arguments[t] : {}; t % 2 ? We(Object(n), !0).forEach((function(t) { - we(e, t, n[t]) + ke(e, t, n[t]) })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : We(Object(n)).forEach((function(t) { Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t)) })) @@ -12863,7 +13034,7 @@ for (var t = 1; t < arguments.length; t++) { var n = null != arguments[t] ? arguments[t] : {}; t % 2 ? et(Object(n), !0).forEach((function(t) { - we(e, t, n[t]) + ke(e, t, n[t]) })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : et(Object(n)).forEach((function(t) { Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t)) })) @@ -12900,10 +13071,10 @@ else if (s || o && 0 === a) if (e.props.i18nIsDynamicList) n += "<".concat(r, ">"); else if (o && 1 === a && "string" === typeof s) n += "<".concat(e.type, ">").concat(s, ""); - else { - var l = at(s, t); - n += "<".concat(r, ">").concat(l, "") - } else n += "<".concat(r, ">") + else { + var l = at(s, t); + n += "<".concat(r, ">").concat(l, "") + } else n += "<".concat(r, ">") } else if (null === e) Me("Trans: the passed in value is invalid - seems you passed in a null child."); else if ("object" === xe(e)) { var c = e.format, @@ -12965,15 +13136,15 @@ b = s && "object" === xe(v) && v.dummy && !y, x = "object" === xe(e) && null !== e && Object.hasOwnProperty.call(e, i.name); if ("string" === typeof v) { - var k = n.services.interpolator.interpolate(v, u, n.language); - t.push(k) + var w = n.services.interpolator.interpolate(v, u, n.language); + t.push(w) } else if (nt(v) || _) { p(v, d(v, i, l), t, f) } else if (b) { - var w = h(c, i.children, l); + var k = h(c, i.children, l); t.push((0, Ee.cloneElement)(v, tt(tt({}, v.props), {}, { key: f - }), w)) + }), k)) } else if (Number.isNaN(parseFloat(i.name))) { if (x) p(v, d(v, i, l), t, f, i.voidElement); else if (r.transSupportBasicHtmlNodes && o.indexOf(i.name) > -1) @@ -13043,8 +13214,8 @@ _ = "string" === typeof _ ? [_] : _ || ["translation"]; var b = c || at(t, y) || y.transEmptyNodeValue || i, x = y.hashTransKey, - k = i || (x ? x(b) : b), - w = l ? s.interpolation : { + w = i || (x ? x(b) : b), + k = l ? s.interpolation : { interpolation: tt(tt({}, s.interpolation), {}, { prefix: "#$?", suffix: "?$#" @@ -13052,11 +13223,11 @@ }, S = tt(tt(tt(tt({}, s), {}, { count: n - }, l), w), {}, { + }, l), k), {}, { defaultValue: b, ns: _ }), - E = ot(u || t, k ? v(k, S) : b, g, y, S, f), + E = ot(u || t, w ? v(w, S) : b, g, y, S, f), O = void 0 !== r ? r : y.defaultTransParent; return O ? (0, Ee.createElement)(O, m, E) : E } @@ -13064,7 +13235,7 @@ function lt(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; - r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, ke(r.key), r) + r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, we(r.key), r) } } var ct = { @@ -13074,9 +13245,9 @@ var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; Ye = He(He({}, Ye), e) }(e.options.react), - function(e) { - Ke = e - }(e) + function(e) { + Ke = e + }(e) } }; var ut = (0, Ee.createContext)(), @@ -13142,7 +13313,7 @@ for (var t = 1; t < arguments.length; t++) { var n = null != arguments[t] ? arguments[t] : {}; t % 2 ? ht(Object(n), !0).forEach((function(t) { - we(e, t, n[t]) + ke(e, t, n[t]) })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : ht(Object(n)).forEach((function(t) { Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t)) })) @@ -13223,7 +13394,7 @@ for (var t = 1; t < arguments.length; t++) { var n = null != arguments[t] ? arguments[t] : {}; t % 2 ? vt(Object(n), !0).forEach((function(t) { - we(e, t, n[t]) + ke(e, t, n[t]) })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : vt(Object(n)).forEach((function(t) { Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t)) })) @@ -13280,8 +13451,8 @@ x.current && y(f) } return x.current = !0, h || u || Ve(o, p, (function() { - x.current && y(f) - })), h && b && b !== _ && x.current && y(f), e && o && o.on(e, n), t && o && o.store.on(t, n), + x.current && y(f) + })), h && b && b !== _ && x.current && y(f), e && o && o.on(e, n), t && o && o.store.on(t, n), function() { x.current = !1, e && o && e.split(" ").forEach((function(e) { return o.off(e, n) @@ -13290,13 +13461,13 @@ })) } }), [o, _]); - var k = (0, Ee.useRef)(!0); + var w = (0, Ee.useRef)(!0); (0, Ee.useEffect)((function() { - x.current && !k.current && y(f), k.current = !1 + x.current && !w.current && y(f), w.current = !1 }), [o, d]); - var w = [v, o, h]; - if (w.t = v, w.i18n = o, w.ready = h, h) return w; - if (!h && !u) return w; + var k = [v, o, h]; + if (k.t = v, k.i18n = o, k.ready = h, h) return k; + if (!h && !u) return k; throw new Promise((function(e) { Ve(o, p, (function() { e() @@ -13317,24 +13488,24 @@ returnNull: !1 }); const xt = _e, - kt = "8.34.0", - wt = globalThis; + wt = "8.34.0", + kt = globalThis; function St(e, t, n) { - const r = n || wt, + const r = n || kt, i = r.__SENTRY__ = r.__SENTRY__ || {}, - a = i[kt] = i[kt] || {}; + a = i[wt] = i[wt] || {}; return a[e] || (a[e] = t()) } const Et = "production"; function Ot() { - return It(wt), wt + return It(kt), kt } function It(e) { const t = e.__SENTRY__ = e.__SENTRY__ || {}; - return t.version = t.version || kt, t[kt] = t[kt] || {} + return t.version = t.version || wt, t[wt] = t[wt] || {} } const Ct = Object.prototype.toString; @@ -13397,7 +13568,7 @@ function Vt(e) { return !("object" !== typeof e || null === e || !e.__isVue && !e._isVue) } - const Ut = wt; + const Ut = kt; function Bt(e, t = {}) { if (!e) return ""; @@ -13452,8 +13623,8 @@ Wt = {}; function Ht(e) { - if (!("console" in wt)) return e(); - const t = wt.console, + if (!("console" in kt)) return e(); + const t = kt.console, n = {}, r = Object.keys(Wt); r.forEach((e => { @@ -13482,7 +13653,7 @@ return $t ? qt.forEach((n => { t[n] = (...t) => { e && Ht((() => { - wt.console[n](`Sentry Logger [${n}]:`, ...t) + kt.console[n](`Sentry Logger [${n}]:`, ...t) })) } })) : qt.forEach((e => { @@ -13589,14 +13760,14 @@ function ln(e, t) { if (function(e) { - if (!jt(e)) return !1; - try { - const t = Object.getPrototypeOf(e).constructor.name; - return !t || "Object" === t - } catch (t) { - return !0 - } - }(e)) { + if (!jt(e)) return !1; + try { + const t = Object.getPrototypeOf(e).constructor.name; + return !t || "Object" === t + } catch (t) { + return !0 + } + }(e)) { const n = t.get(e); if (void 0 !== n) return n; const r = {}; @@ -13616,7 +13787,7 @@ } function cn() { - const e = wt, + const e = kt, t = e.crypto || e.msCrypto; let n = () => 16 * Math.random(); try { @@ -13625,7 +13796,7 @@ const e = new Uint8Array(1); return t.getRandomValues(e), e[0] }) - } catch (eo) {} + } catch (vM) {} return ([1e7] + 1e3 + 4e3 + 8e3 + 1e11).replace(/[018]/g, (e => (e ^ (15 & n()) >> e / 4).toString(16))) } @@ -13655,11 +13826,11 @@ if (!n) return; const r = n.mechanism; if (n.mechanism = { - type: "generic", - handled: !0, - ...r, - ...t - }, t && "data" in t) { + type: "generic", + handled: !0, + ...r, + ...t + }, t && "data" in t) { const e = { ...r && r.data, ...t.data @@ -13693,7 +13864,7 @@ const yn = function() { const { performance: e - } = wt; + } = kt; if (!e || !e.now) return vn; const t = Date.now() - e.now(), n = void 0 == e.timeOrigin ? t : e.timeOrigin; @@ -13703,7 +13874,7 @@ (() => { const { performance: e - } = wt; + } = kt; if (!e || !e.now) return void(_n = "none"); const t = 36e5, n = e.now(), @@ -13758,14 +13929,14 @@ } t.release && (e.release = t.release), t.environment && (e.environment = t.environment), !e.ipAddress && t.ipAddress && (e.ipAddress = t.ipAddress), !e.userAgent && t.userAgent && (e.userAgent = t.userAgent), "number" === typeof t.errors && (e.errors = t.errors), t.status && (e.status = t.status) } - const kn = "_sentrySpan"; + const wn = "_sentrySpan"; - function wn(e, t) { - t ? en(e, kn, t) : delete e[kn] + function kn(e, t) { + t ? en(e, wn, t) : delete e[wn] } function Sn(e) { - return e[kn] + return e[wn] } class En { constructor() { @@ -13783,7 +13954,7 @@ ...this._sdkProcessingMetadata }, e._propagationContext = { ...this._propagationContext - }, e._client = this._client, e._lastEventId = this._lastEventId, wn(e, Sn(this)), e + }, e._client = this._client, e._lastEventId = this._lastEventId, kn(e, Sn(this)), e } setClient(e) { this._client = e @@ -13889,7 +14060,7 @@ }, o && Object.keys(o).length && (this._user = o), l && (this._level = l), c.length && (this._fingerprint = c), u && (this._propagationContext = u), r && (this._requestSession = r), this } clear() { - return this._breadcrumbs = [], this._tags = {}, this._extra = {}, this._user = {}, this._contexts = {}, this._level = void 0, this._transactionName = void 0, this._fingerprint = void 0, this._requestSession = void 0, this._session = void 0, wn(this, void 0), this._attachments = [], this._propagationContext = gn(), this._notifyScopeListeners(), this + return this._breadcrumbs = [], this._tags = {}, this._extra = {}, this._user = {}, this._contexts = {}, this._level = void 0, this._transactionName = void 0, this._fingerprint = void 0, this._requestSession = void 0, this._session = void 0, kn(this, void 0), this._attachments = [], this._propagationContext = gn(), this._notifyScopeListeners(), this } addBreadcrumb(e, t) { const n = "number" === typeof t ? t : 100; @@ -14379,17 +14550,17 @@ function cr(e) { if (function(e) { - return "function" === typeof e.getSpanJSON - }(e)) return e.getSpanJSON(); + return "function" === typeof e.getSpanJSON + }(e)) return e.getSpanJSON(); try { const { spanId: t, traceId: n } = e.spanContext(); if (function(e) { - const t = e; - return !!t.attributes && !!t.startTime && !!t.name && !!t.endTime && !!t.status - }(e)) { + const t = e; + return !!t.attributes && !!t.startTime && !!t.name && !!t.endTime && !!t.status + }(e)) { const { attributes: r, startTime: i, @@ -14470,12 +14641,12 @@ const d = c["sentry.source"], p = l.description; return "url" !== d && p && (n.transaction = p), - function(e) { - if ("boolean" === typeof __SENTRY_TRACING__ && !__SENTRY_TRACING__) return !1; - const t = jn(), - n = e || t && t.getOptions(); - return !!n && (n.enableTracing || "tracesSampleRate" in n || "tracesSampler" in n) - }() && (n.sampled = String(ur(r))), t.emit("createDsc", n, r), n + function(e) { + if ("boolean" === typeof __SENTRY_TRACING__ && !__SENTRY_TRACING__) return !1; + const t = jn(), + n = e || t && t.getOptions(); + return !!n && (n.enableTracing || "tracesSampleRate" in n || "tracesSampler" in n) + }() && (n.sampled = String(ur(r))), t.emit("createDsc", n, r), n } function vr(e, t) { @@ -14516,17 +14687,17 @@ o && (e.level = o); s && "transaction" !== e.type && (e.transaction = s) }(e, t), r && function(e, t) { - e.contexts = { - trace: or(t), - ...e.contexts - }, e.sdkProcessingMetadata = { - dynamicSamplingContext: gr(t), - ...e.sdkProcessingMetadata - }; - const n = hr(t), - r = cr(n).description; - r && !e.transaction && "transaction" === e.type && (e.transaction = r) - }(e, r), + e.contexts = { + trace: or(t), + ...e.contexts + }, e.sdkProcessingMetadata = { + dynamicSamplingContext: gr(t), + ...e.sdkProcessingMetadata + }; + const n = hr(t), + r = cr(n).description; + r && !e.transaction && "transaction" === e.type && (e.transaction = r) + }(e, r), function(e, t) { e.fingerprint = e.fingerprint ? mn(e.fingerprint) : [], t && (e.fingerprint = e.fingerprint.concat(t)); e.fingerprint && !e.fingerprint.length && delete e.fingerprint @@ -14599,10 +14770,10 @@ const s = e.request; s && s.url && (s.url = Yt(s.url, a)) }(l, e), - function(e, t) { - t.length > 0 && (e.sdk = e.sdk || {}, e.sdk.integrations = [...e.sdk.integrations || [], ...t]) - }(l, c), i && i.emit("applyFrameMetadata", t), void 0 === t.type && function(e, t) { - const n = wt._sentryDebugIds; + function(e, t) { + t.length > 0 && (e.sdk = e.sdk || {}, e.sdk.integrations = [...e.sdk.integrations || [], ...t]) + }(l, c), i && i.emit("applyFrameMetadata", t), void 0 === t.type && function(e, t) { + const n = kt._sentryDebugIds; if (!n) return; let r; const i = xr.get(t); @@ -14697,19 +14868,19 @@ } const xr = new WeakMap; - function kr(e) { + function wr(e) { if (e) return function(e) { return e instanceof On || "function" === typeof e }(e) || function(e) { - return Object.keys(e).some((e => wr.includes(e))) + return Object.keys(e).some((e => kr.includes(e))) }(e) ? { captureContext: e } : e } - const wr = ["user", "level", "extra", "contexts", "tags", "fingerprint", "requestSession", "propagationContext"]; + const kr = ["user", "level", "extra", "contexts", "tags", "fingerprint", "requestSession", "propagationContext"]; function Sr(e, t) { - return Dn().captureException(e, kr(t)) + return Dn().captureException(e, wr(t)) } function Er(e, t) { @@ -14726,7 +14897,7 @@ } = t && t.getOptions() || {}, { userAgent: o - } = wt.navigator || {}, + } = kt.navigator || {}, s = bn({ release: i, environment: a, @@ -14830,44 +15001,44 @@ }(e, i); return function(e, t) { if (t.ignoreInternal && function(e) { + try { + return "SentryError" === e.exception.values[0].type + } catch (t) {} + return !1 + }(e)) return Xn && Kt.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${dn(e)}`), !0; + if (function(e, t) { + if (e.type || !t || !t.length) return !1; + return function(e) { + const t = []; + e.message && t.push(e.message); + let n; try { - return "SentryError" === e.exception.values[0].type - } catch (t) {} - return !1 - }(e)) return Xn && Kt.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${dn(e)}`), !0; - if (function(e, t) { - if (e.type || !t || !t.length) return !1; - return function(e) { - const t = []; - e.message && t.push(e.message); - let n; - try { - n = e.exception.values[e.exception.values.length - 1] - } catch (r) {} - n && n.value && (t.push(n.value), n.type && t.push(`${n.type}: ${n.value}`)); - return t - }(e).some((e => Xt(e, t))) - }(e, t.ignoreErrors)) return Xn && Kt.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${dn(e)}`), !0; + n = e.exception.values[e.exception.values.length - 1] + } catch (r) {} + n && n.value && (t.push(n.value), n.type && t.push(`${n.type}: ${n.value}`)); + return t + }(e).some((e => Xt(e, t))) + }(e, t.ignoreErrors)) return Xn && Kt.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${dn(e)}`), !0; if (function(e) { - if (e.type) return !1; - if (!e.exception || !e.exception.values || 0 === e.exception.values.length) return !1; - return !e.message && !e.exception.values.some((e => e.stacktrace || e.type && "Error" !== e.type || e.value)) - }(e)) return Xn && Kt.warn(`Event dropped due to not having an error message, error type or stacktrace.\nEvent: ${dn(e)}`), !0; + if (e.type) return !1; + if (!e.exception || !e.exception.values || 0 === e.exception.values.length) return !1; + return !e.message && !e.exception.values.some((e => e.stacktrace || e.type && "Error" !== e.type || e.value)) + }(e)) return Xn && Kt.warn(`Event dropped due to not having an error message, error type or stacktrace.\nEvent: ${dn(e)}`), !0; if (function(e, t) { - if ("transaction" !== e.type || !t || !t.length) return !1; - const n = e.transaction; - return !!n && Xt(n, t) - }(e, t.ignoreTransactions)) return Xn && Kt.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${dn(e)}`), !0; + if ("transaction" !== e.type || !t || !t.length) return !1; + const n = e.transaction; + return !!n && Xt(n, t) + }(e, t.ignoreTransactions)) return Xn && Kt.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${dn(e)}`), !0; if (function(e, t) { - if (!t || !t.length) return !1; - const n = jr(e); - return !!n && Xt(n, t) - }(e, t.denyUrls)) return Xn && Kt.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${dn(e)}.\nUrl: ${jr(e)}`), !0; + if (!t || !t.length) return !1; + const n = jr(e); + return !!n && Xt(n, t) + }(e, t.denyUrls)) return Xn && Kt.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${dn(e)}.\nUrl: ${jr(e)}`), !0; if (! function(e, t) { - if (!t || !t.length) return !0; - const n = jr(e); - return !n || Xt(n, t) - }(e, t.allowUrls)) return Xn && Kt.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${dn(e)}.\nUrl: ${jr(e)}`), !0; + if (!t || !t.length) return !0; + const n = jr(e); + return !n || Xt(n, t) + }(e, t.allowUrls)) return Xn && Kt.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${dn(e)}.\nUrl: ${jr(e)}`), !0; return !1 }(t, a) ? null : t } @@ -14886,7 +15057,7 @@ } return null }(n) : null - } catch (_u) { + } catch (gc) { return Xn && Kt.error(`Cannot extract url for event ${dn(e)}`), null } } @@ -14916,28 +15087,28 @@ if (t.type) return t; try { if (function(e, t) { - if (!t) return !1; - if (function(e, t) { - const n = e.message, - r = t.message; - if (!n && !r) return !1; - if (n && !r || !n && r) return !1; - if (n !== r) return !1; - if (!Br(e, t)) return !1; - if (!Ur(e, t)) return !1; - return !0 - }(e, t)) return !0; - if (function(e, t) { - const n = Gr(t), - r = Gr(e); - if (!n || !r) return !1; - if (n.type !== r.type || n.value !== r.value) return !1; - if (!Br(e, t)) return !1; - if (!Ur(e, t)) return !1; - return !0 - }(e, t)) return !0; - return !1 - }(t, e)) return Xn && Kt.warn("Event dropped due to being a duplicate of previously captured event."), null + if (!t) return !1; + if (function(e, t) { + const n = e.message, + r = t.message; + if (!n && !r) return !1; + if (n && !r || !n && r) return !1; + if (n !== r) return !1; + if (!Br(e, t)) return !1; + if (!Ur(e, t)) return !1; + return !0 + }(e, t)) return !0; + if (function(e, t) { + const n = Gr(t), + r = Gr(e); + if (!n || !r) return !1; + if (n.type !== r.type || n.value !== r.value) return !1; + if (!Br(e, t)) return !1; + if (!Ur(e, t)) return !1; + return !0 + }(e, t)) return !0; + return !1 + }(t, e)) return Xn && Kt.warn("Event dropped due to being a duplicate of previously captured event."), null } catch (n) {} return e = t } @@ -15036,16 +15207,16 @@ }) }(e) : Hr(e); if (t && function(e) { - if (!$t) return !0; - const { - port: t, - projectId: n, - protocol: r - } = e; - return !["protocol", "publicKey", "host", "projectId"].find((t => !e[t] && (Kt.error(`Invalid Sentry Dsn: ${t} missing`), !0))) && (n.match(/^\d+$/) ? function(e) { - return "http" === e || "https" === e - }(r) ? !t || !isNaN(parseInt(t, 10)) || (Kt.error(`Invalid Sentry Dsn: Invalid port ${t}`), !1) : (Kt.error(`Invalid Sentry Dsn: Invalid protocol ${r}`), !1) : (Kt.error(`Invalid Sentry Dsn: Invalid projectId ${n}`), !1)) - }(t)) return t + if (!$t) return !0; + const { + port: t, + projectId: n, + protocol: r + } = e; + return !["protocol", "publicKey", "host", "projectId"].find((t => !e[t] && (Kt.error(`Invalid Sentry Dsn: ${t} missing`), !0))) && (n.match(/^\d+$/) ? function(e) { + return "http" === e || "https" === e + }(r) ? !t || !isNaN(parseInt(t, 10)) || (Kt.error(`Invalid Sentry Dsn: Invalid port ${t}`), !1) : (Kt.error(`Invalid Sentry Dsn: Invalid protocol ${r}`), !1) : (Kt.error(`Invalid Sentry Dsn: Invalid projectId ${n}`), !1)) + }(t)) return t } function Yr(e) { @@ -15068,7 +15239,7 @@ function Zr(e, t, n) { return t || `${function(e){return`${Yr(e)}${e.projectId}/envelope/`}(e)}?${Qr(e,n)}` } - const Xr = wt; + const Xr = kt; function Jr() { if (!("fetch" in Xr)) return !1; @@ -15102,8 +15273,8 @@ $t && Kt.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${Gn(i)}\nError:`, r) } } - const oi = wt; - const si = wt; + const oi = kt; + const si = kt; let li; function ci(e) { @@ -15113,11 +15284,11 @@ function ui() { if (! function() { - const e = oi.chrome, - t = e && e.app && e.app.runtime, - n = "history" in oi && !!oi.history.pushState && !!oi.history.replaceState; - return !t && n - }()) return; + const e = oi.chrome, + t = e && e.app && e.app.runtime, + n = "history" in oi && !!oi.history.pushState && !!oi.history.replaceState; + return !t && n + }()) return; const e = si.onpopstate; function t(e) { @@ -15140,9 +15311,9 @@ r = li; li = n; if (ai("history", { - from: r, - to: n - }), e) try { + from: r, + to: n + }), e) try { return e.apply(this, t) } catch (i) {} }, Jt(si.history, "pushState", t), Jt(si.history, "replaceState", t) @@ -15166,7 +15337,7 @@ } function fi(e) { - return wt.__SENTRY__ && wt.__SENTRY__.encodePolyfill ? wt.__SENTRY__.encodePolyfill(e) : (new TextEncoder).encode(e) + return kt.__SENTRY__ && kt.__SENTRY__.encodePolyfill ? kt.__SENTRY__.encodePolyfill(e) : (new TextEncoder).encode(e) } function mi(e) { @@ -15278,8 +15449,8 @@ }, e] ]) } - const ki = "Not capturing exception because it's already been captured."; - class wi { + const wi = "Not capturing exception because it's already been captured."; + class ki { constructor(e) { if (this._options = e, this._integrations = {}, this._numProcessing = 0, this._outcomes = {}, this._hooks = {}, this._eventProcessors = [], e.dsn ? this._dsn = Kr(e.dsn) : Xn && Kt.warn("No DSN provided, client will not send events."), this._dsn) { const t = Zr(this._dsn, e.tunnel, e._metadata ? e._metadata.sdk : void 0); @@ -15293,7 +15464,7 @@ } captureException(e, t, n) { const r = cn(); - if (fn(e)) return Xn && Kt.log(ki), r; + if (fn(e)) return Xn && Kt.log(wi), r; const i = { event_id: r, ...t @@ -15311,7 +15482,7 @@ } captureEvent(e, t, n) { const r = cn(); - if (t && t.originalException && fn(t.originalException)) return Xn && Kt.log(ki), r; + if (t && t.originalException && fn(t.originalException)) return Xn && Kt.log(wi), r; const i = { event_id: r, ...t @@ -15351,8 +15522,8 @@ } init() { (this._isEnabled() || this._options.integrations.some((({ - name: e - }) => e.startsWith("Spotlight")))) && this._setupIntegrations() + name: e + }) => e.startsWith("Spotlight")))) && this._setupIntegrations() } getIntegrationByName(e) { return this._integrations[e] @@ -15635,9 +15806,9 @@ name: `sentry.javascript.${t}`, packages: n.map((e => ({ name: `${r}:@sentry/${e}`, - version: kt + version: wt }))), - version: kt + version: wt }), e._metadata = i } const Ii = "undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__; @@ -15811,7 +15982,7 @@ } return `Object captured as ${r} with keys: ${n}` } - const zi = wt; + const zi = kt; let Vi = 0; function Ui() { @@ -15859,7 +16030,7 @@ } catch (a) {} return r } - class $i extends wi { + class $i extends ki { constructor(e) { const t = { parentSpanIsAlwaysRootSpan: !0, @@ -15967,17 +16138,17 @@ } }(n); if (function(e, t) { - return "keypress" === e && (!t || !t.tagName || "INPUT" !== t.tagName && "TEXTAREA" !== t.tagName && !t.isContentEditable) - }(n.type, r)) return; + return "keypress" === e && (!t || !t.tagName || "INPUT" !== t.tagName && "TEXTAREA" !== t.tagName && !t.isContentEditable) + }(n.type, r)) return; en(n, "_sentryCaptured", !0), r && !r._sentryId && en(r, "_sentryId", cn()); const i = "keypress" === n.type ? "input" : n.type; if (! function(e) { - if (e.type !== Wi) return !1; - try { - if (!e.target || e.target._sentryId !== Hi) return !1 - } catch (t) {} - return !0 - }(n)) { + if (e.type !== Wi) return !1; + try { + if (!e.target || e.target._sentryId !== Hi) return !1 + } catch (t) {} + return !0 + }(n)) { e({ event: n, name: i, @@ -16002,7 +16173,7 @@ if (Dt(e)) return e; try { return e.toString() - } catch (t) {} + } catch (Cs) {} return }(n[1]); if (!i || !a) return e.apply(t, n); @@ -16065,8 +16236,8 @@ } function ea() { - "console" in wt && qt.forEach((function(e) { - e in wt.console && Jt(wt.console, e, (function(t) { + "console" in kt && qt.forEach((function(e) { + e in kt.console && Jt(kt.console, e, (function(t) { return Wt[e] = t, function(...t) { ai("console", { @@ -16074,7 +16245,7 @@ level: e }); const n = Wt[e]; - n && n.apply(wt.console, t) + n && n.apply(kt.console, t) } })) })) @@ -16094,7 +16265,7 @@ $t && Kt.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ", n) } return e - }() || Jt(wt, "fetch", (function(t) { + }() || Jt(kt, "fetch", (function(t) { return function(...n) { const { method: r, @@ -16128,7 +16299,7 @@ ...a }); const o = (new Error).stack; - return t.apply(wt, n).then((async t => (e ? e(t) : ai("fetch", { + return t.apply(kt, n).then((async t => (e ? e(t) : ai("fetch", { ...a, endTimestamp: 1e3 * yn(), response: t @@ -16481,7 +16652,7 @@ let ga = null; function va() { - ga = wt.onerror, wt.onerror = function(e, t, n, r, i) { + ga = kt.onerror, kt.onerror = function(e, t, n, r, i) { const a = { column: r, error: i, @@ -16490,15 +16661,15 @@ url: t }; return ai("error", a), !(!ga || ga.__SENTRY_LOADER__) && ga.apply(this, arguments) - }, wt.onerror.__SENTRY_INSTRUMENTED__ = !0 + }, kt.onerror.__SENTRY_INSTRUMENTED__ = !0 } let ya = null; function _a() { - ya = wt.onunhandledrejection, wt.onunhandledrejection = function(e) { + ya = kt.onunhandledrejection, kt.onunhandledrejection = function(e) { const t = e; return ai("unhandledrejection", t), !(ya && !ya.__SENTRY_LOADER__) || ya.apply(this, arguments) - }, wt.onunhandledrejection.__SENTRY_INSTRUMENTED__ = !0 + }, kt.onunhandledrejection.__SENTRY_INSTRUMENTED__ = !0 } const ba = (e = {}) => { const t = { @@ -16520,7 +16691,7 @@ const { stackParser: n, attachStacktrace: r - } = ka(); + } = wa(); if (jn() !== e || Ui()) return; const { msg: i, @@ -16539,7 +16710,7 @@ d = Dt(t) && t.length > 0 ? t : function() { try { return Ut.document.location.href - } catch (_u) { + } catch (gc) { return "" } }(); @@ -16568,14 +16739,14 @@ const { stackParser: n, attachStacktrace: r - } = ka(); + } = wa(); if (jn() !== e || Ui()) return; const i = function(e) { if (Nt(e)) return e; try { if ("reason" in e) return e.reason; if ("detail" in e && "reason" in e.detail) return e.detail.reason - } catch (t) {} + } catch (Cs) {} return e }(t), a = Nt(i) ? { @@ -16603,14 +16774,14 @@ Ii && Kt.log(`Global Handler attached: ${e}`) } - function ka() { + function wa() { const e = jn(); return e && e.getOptions() || { stackParser: () => [], attachStacktrace: !1 } } - const wa = () => ({ + const ka = () => ({ name: "HttpContext", preprocessEvent(e) { if (!zi.navigator && !zi.location && !zi.document) return; @@ -16822,11 +16993,11 @@ for (const s of t.split(";")) "metric_bucket" === s && n && !n.split(";").includes("custom") || (i[s] = r + o); else i.all = r + o } else o ? i.all = r + function(e, t = Date.now()) { - const n = parseInt(`${e}`, 10); - if (!isNaN(n)) return 1e3 * n; - const r = Date.parse(`${e}`); - return isNaN(r) ? 6e4 : r - t - }(o, r) : 429 === t && (i.all = r + 6e4); + const n = parseInt(`${e}`, 10); + if (!isNaN(n)) return 1e3 * n; + const r = Date.parse(`${e}`); + return isNaN(r) ? 6e4 : r - t + }(o, r) : 429 === t && (i.all = r + 6e4); return i } @@ -16836,16 +17007,16 @@ send: function(i) { const a = []; if (hi(i, ((t, n) => { - const i = yi(n); - if (function(e, t, n = Date.now()) { - return function(e, t) { - return e[t] || e.all || 0 - }(e, t) > n - }(r, i)) { - const r = $a(t, n); - e.recordDroppedEvent("ratelimit_backoff", i, r) - } else a.push(t) - })), 0 === a.length) return Yn({}); + const i = yi(n); + if (function(e, t, n = Date.now()) { + return function(e, t) { + return e[t] || e.all || 0 + }(e, t) > n + }(r, i)) { + const r = $a(t, n); + e.recordDroppedEvent("ratelimit_backoff", i, r) + } else a.push(t) + })), 0 === a.length) return Yn({}); const o = di(i[0], a), s = t => { hi(o, ((n, r) => { @@ -16902,7 +17073,7 @@ function Wa(e = {}) { const t = function(e = {}) { const t = { - defaultIntegrations: [Nr(), zr(), da(), ca(), ba(), Ca(), Vr(), wa()], + defaultIntegrations: [Nr(), zr(), da(), ca(), ba(), Ca(), Vr(), ka()], release: "string" === typeof __SENTRY_RELEASE__ ? __SENTRY_RELEASE__ : zi.SENTRY_RELEASE && zi.SENTRY_RELEASE.id ? zi.SENTRY_RELEASE.id : void 0, autoSessionTracking: !0, sendClientReports: !0 @@ -16913,15 +17084,15 @@ } }(e); if (function() { - const e = "undefined" !== typeof zi.window && zi; - if (!e) return !1; - const t = e[e.chrome ? "chrome" : "browser"], - n = t && t.runtime && t.runtime.id, - r = zi.location && zi.location.href || "", - i = !!n && zi === zi.top && ["chrome-extension:", "moz-extension:", "ms-browser-extension:", "safari-web-extension:"].some((e => r.startsWith(`${e}//`))), - a = "undefined" !== typeof e.nw; - return !!n && !i && !a - }()) return void Ht((() => { + const e = "undefined" !== typeof zi.window && zi; + if (!e) return !1; + const t = e[e.chrome ? "chrome" : "browser"], + n = t && t.runtime && t.runtime.id, + r = zi.location && zi.location.href || "", + i = !!n && zi === zi.top && ["chrome-extension:", "moz-extension:", "ms-browser-extension:", "safari-web-extension:"].some((e => r.startsWith(`${e}//`))), + a = "undefined" !== typeof e.nw; + return !!n && !i && !a + }()) return void Ht((() => { console.error("[Sentry] You cannot run Sentry this way in a browser extension, check: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/") })); Ii && (Jr() || Kt.warn("No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill.")); @@ -16938,9 +17109,9 @@ Or({ ignoreDuration: !0 }), Ar(), ci((({ - from: e, - to: t - }) => { + from: e, + to: t + }) => { void 0 !== e && e !== t && (Or({ ignoreDuration: !0 }), Ar()) @@ -16955,9 +17126,9 @@ r = n && n.getDsn(); if (!r) return void(Ii && Kt.error("DSN not configured for showReportDialog call")); if (t && (e.user = { - ...t.getUser(), - ...e.user - }), !e.eventId) { + ...t.getUser(), + ...e.user + }), !e.eventId) { const t = Ln().lastEventId(); t && (e.eventId = t) } @@ -16999,9 +17170,9 @@ componentStack: t }, n) { if (function(e) { - const t = e.match(/^([^.]+)/); - return null !== t && parseInt(t[0]) >= 17 - }(Ee.version) && At(e) && t) { + const t = e.match(/^([^.]+)/); + return null !== t && parseInt(t[0]) >= 17 + }(Ee.version) && At(e) && t) { const n = new Error(e.message); n.name = `React ErrorBoundary ${e.name}`, n.stack = t, function(e, t) { @@ -17121,14 +17292,36 @@ i.type = "text/css", "top" === n && r.firstChild ? r.insertBefore(i, r.firstChild) : r.appendChild(i), i.styleSheet ? i.styleSheet.cssText = e : i.appendChild(document.createTextNode(e)) } } - eo('@import url("https://cdn.robertsspaceindustries.com/static/fonts/univia-pro-typekit/font.css");@import url("https://cdn.robertsspaceindustries.com/static/fonts/bai-jamjuree/font.css");@layer sol{@layer reset, tokens, defaults, components, utilities, themes;@layer reset{*,:after,:before{box-sizing:border-box}:root{font-family:system-ui,sans-serif;line-height:1.5}body{line-height:inherit;margin:0;min-block-size:100vh;min-block-size:100dvh}a{color:inherit;text-decoration:inherit}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,ol,p,pre,ul{margin:0}h1,h2,h3,h4,h5,h6,p{font:inherit;overflow-wrap:break-word}ol,ul{list-style:none;padding:0}table{border-collapse:collapse;border-spacing:0}pre{white-space:pre-wrap}hr{block-size:0;border:0;border-block-start:1px solid;color:inherit}abbr[title]{text-decoration:underline dotted}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:initial}sub{bottom:-.25em}sup{top:-.5em}summary{display:list-item}audio,canvas,embed,iframe,img,object,svg,video{display:block;max-inline-size:100%;vertical-align:middle}canvas,img,svg,video{block-size:auto}audio{block-size:100%}audio:not([controls]),source{display:none}picture{display:contents}iframe{border:0;color-scheme:normal}fieldset{border:0;margin:0}fieldset,legend{padding:0}button,input,select,textarea{border:0;color:inherit;font:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{appearance:button;background-color:initial;background-image:none}textarea{resize:vertical;resize:block}progress{vertical-align:initial}[hidden]:not([hidden=until-found]){display:none}}@layer tokens{:root,[data-sol-theme]{--sol-border-0:0px;--sol-border-1:1px;--sol-border-2:2px;--sol-radius-0:0px;--sol-radius-4:4px;--sol-radius-8:8px;--sol-radius-16:16px;--sol-radius-24:24px;--sol-radius-rounded:9999px;--sol-radius-circle:50%;--sol-clip-radius-0:none;--sol-clip-radius-4:inset(0 round var(--sol-radius-4));--sol-clip-radius-8:inset(0 round var(--sol-radius-8));--sol-clip-radius-16:inset(0 round var(--sol-radius-16));--sol-clip-radius-24:inset(0 round var(--sol-radius-24));--sol-clip-radius-rounded:inset(0 round var(--sol-radius-rounded));--sol-clip-radius-circle:inset(0 round var(--sol-radius-circle));--sol-color-primary-1:#0a1d29;--sol-color-primary-1-rgb:10 29 41;--sol-color-primary-2:#0f2c3e;--sol-color-primary-2-rgb:15 44 62;--sol-color-primary-3:#143a52;--sol-color-primary-3-rgb:20 58 82;--sol-color-primary-4:#194967;--sol-color-primary-4-rgb:25 73 103;--sol-color-primary-5:#1e577b;--sol-color-primary-5-rgb:30 87 123;--sol-color-primary-6:#2875a4;--sol-color-primary-6-rgb:40 117 164;--sol-color-primary-7:#6fb2dc;--sol-color-primary-7-rgb:111 178 220;--sol-color-primary-8:#add4eb;--sol-color-primary-8-rgb:173 212 235;--sol-color-neutral-1:#000;--sol-color-neutral-1-rgb:0 0 0;--sol-color-neutral-2:#586774;--sol-color-neutral-2-rgb:88 103 116;--sol-color-neutral-3:#b0bac0;--sol-color-neutral-3-rgb:176 186 192;--sol-color-neutral-4:#fff;--sol-color-neutral-4-rgb:255 255 255;--sol-color-accent-1:#54adf7;--sol-color-accent-1-rgb:84 173 247;--sol-color-accent-2:#6db9f8;--sol-color-accent-2-rgb:109 185 248;--sol-color-accent-3:#9ed0fa;--sol-color-accent-3-rgb:158 208 250;--sol-color-positive-1:#85c6a2;--sol-color-positive-1-rgb:133 198 162;--sol-color-positive-2:#a8d6bd;--sol-color-positive-2-rgb:168 214 189;--sol-color-positive-3:#cbe7d8;--sol-color-positive-3-rgb:203 231 216;--sol-color-notice-1:#e99449;--sol-color-notice-1-rgb:233 148 73;--sol-color-notice-2:#eeaf77;--sol-color-notice-2-rgb:238 175 119;--sol-color-notice-3:#f4c9a4;--sol-color-notice-3-rgb:244 201 164;--sol-color-negative-1:#ff8080;--sol-color-negative-1-rgb:255 128 128;--sol-color-negative-2:#f99;--sol-color-negative-2-rgb:255 153 153;--sol-color-negative-3:#ffb3b3;--sol-color-negative-3-rgb:255 179 179;--sol-color-highlight-1:#8186e4;--sol-color-highlight-1-rgb:129 134 228;--sol-color-highlight-2:#abafed;--sol-color-highlight-2-rgb:171 175 237;--sol-color-highlight-3:#d5d7f6;--sol-color-highlight-3-rgb:213 215 246;--sol-color-background:var(--sol-color-primary-1);--sol-color-focused:var(--sol-color-primary-7);--sol-color-overlay:rgba(var(--sol-color-neutral-1-rgb)/0.7);--sol-color-surface-0:var(--sol-color-primary-1);--sol-color-surface-1:var(--sol-color-primary-2);--sol-color-surface-2:var(--sol-color-primary-3);--sol-color-surface-3:var(--sol-color-primary-4);--sol-color-surface-0-hovered:var(--sol-color-primary-2);--sol-color-surface-0-pressed:var(--sol-color-primary-3);--sol-color-surface-1-hovered:var(--sol-color-primary-3);--sol-color-surface-1-pressed:var(--sol-color-primary-4);--sol-color-surface-2-hovered:var(--sol-color-primary-4);--sol-color-surface-2-pressed:var(--sol-color-primary-5);--sol-color-surface-3-hovered:var(--sol-color-primary-5);--sol-color-surface-3-pressed:var(--sol-color-primary-6);--sol-color-interactive:var(--sol-color-accent-1);--sol-color-interactive-hovered:var(--sol-color-accent-3);--sol-color-interactive-pressed:var(--sol-color-accent-2);--sol-color-interactive-selected:var(--sol-color-neutral-4);--sol-color-interactive-contrast:var(--sol-color-neutral-1);--sol-color-interactive-opacity:rgba(var(--sol-color-neutral-1-rgb)/0);--sol-color-interactive-opacity-hovered:rgba(var(--sol-color-neutral-1-rgb)/0.4);--sol-color-interactive-opacity-pressed:rgba(var(--sol-color-neutral-1-rgb)/0.4);--sol-color-interactive-opacity-selected:rgba(var(--sol-color-neutral-1-rgb)/0.6);--sol-color-interactive-negative:var(--sol-color-negative-1);--sol-color-interactive-negative-hovered:var(--sol-color-negative-3);--sol-color-interactive-negative-pressed:var(--sol-color-negative-2);--sol-color-interactive-negative-selected:var(--sol-color-neutral-4);--sol-color-interactive-notice:var(--sol-color-notice-1);--sol-color-interactive-notice-hovered:var(--sol-color-notice-3);--sol-color-interactive-notice-pressed:var(--sol-color-notice-2);--sol-color-interactive-notice-selected:var(--sol-color-neutral-4);--sol-color-interactive-positive:var(--sol-color-positive-1);--sol-color-interactive-positive-hovered:var(--sol-color-positive-3);--sol-color-interactive-positive-pressed:var(--sol-color-positive-2);--sol-color-interactive-positive-selected:var(--sol-color-neutral-4);--sol-color-interactive-neutral:var(--sol-color-neutral-4);--sol-color-interactive-neutral-hovered:var(--sol-color-neutral-4);--sol-color-interactive-neutral-pressed:var(--sol-color-neutral-3);--sol-color-interactive-neutral-selected:var(--sol-color-neutral-4);--sol-color-status-informative:var(--sol-color-primary-7);--sol-color-status-informative-fill:var(--sol-color-primary-6);--sol-color-status-informative-fill-contrast:var(--sol-color-neutral-4);--sol-color-status-positive:var(--sol-color-positive-2);--sol-color-status-positive-fill:var(--sol-color-positive-1);--sol-color-status-positive-fill-contrast:var(--sol-color-neutral-1);--sol-color-status-notice:var(--sol-color-notice-3);--sol-color-status-notice-fill:var(--sol-color-notice-1);--sol-color-status-notice-fill-contrast:var(--sol-color-neutral-1);--sol-color-status-negative:var(--sol-color-negative-3);--sol-color-status-negative-fill:var(--sol-color-negative-1);--sol-color-status-negative-fill-contrast:var(--sol-color-neutral-1);--sol-color-status-highlight:var(--sol-color-highlight-3);--sol-color-status-highlight-fill:var(--sol-color-highlight-1);--sol-color-status-highlight-fill-contrast:var(--sol-color-neutral-1);--sol-color-status-neutral:var(--sol-color-neutral-3);--sol-color-status-neutral-fill:var(--sol-color-neutral-2);--sol-color-status-neutral-fill-contrast:var(--sol-color-neutral-4);--sol-color-foreground:var(--sol-color-neutral-4);--sol-color-foreground-weak:var(--sol-color-primary-8);--sol-color-foreground-weaker:var(--sol-color-neutral-3);--sol-color-foreground-highlight:var(--sol-color-primary-7);--sol-font-family-primary:univia-pro,system-ui,sans-serif;--sol-font-family-secondary:"Bai Jamjuree",system-ui,sans-serif;--sol-font-offset-primary:-0.075em;--sol-font-offset-secondary:-0.04em;--sol-font-size-050:0.5rem;--sol-font-size-0625:0.625rem;--sol-font-size-075:0.75rem;--sol-font-size-0875:0.875rem;--sol-font-size-100:1rem;--sol-font-size-125:1.25rem;--sol-font-size-150:1.5rem;--sol-font-size-200:2rem;--sol-font-size-250:2.5rem;--sol-line-height-075:0.75rem;--sol-line-height-100:1rem;--sol-line-height-125:1.25rem;--sol-line-height-150:1.5rem;--sol-line-height-200:2rem;--sol-line-height-250:2.5rem;--sol-line-height-300:3rem;--sol-letter-spacing-none:0em;--sol-letter-spacing-normal:0.005em;--sol-letter-spacing-button:0.02em;--sol-font-weight-4:400;--sol-font-weight-6:600;--sol-font-weight-7:700;--sol-font-style-normal:normal;--sol-font-style-italic:italic;--sol-text-decoration-none:none;--sol-text-decoration-underline:underline;--sol-text-decoration-strikethrough:line-through;--sol-text-transform-none:none;--sol-text-transform-lowercase:lowercase;--sol-text-transform-uppercase:uppercase;--sol-text-heading-l-font-size:var(--sol-font-size-250);--sol-text-heading-l-line-height:var(--sol-line-height-300);--sol-text-heading-l-font-offset:var(--sol-font-offset-primary);--sol-text-heading-l:var(--sol-font-weight-6) var(--sol-text-heading-l-font-size) /var(--sol-text-heading-l-line-height) var(--sol-font-family-primary);--sol-text-heading-m-font-size:var(--sol-font-size-200);--sol-text-heading-m-line-height:var(--sol-line-height-250);--sol-text-heading-m-font-offset:var(--sol-font-offset-primary);--sol-text-heading-m:var(--sol-font-weight-6) var(--sol-text-heading-m-font-size) /var(--sol-text-heading-m-line-height) var(--sol-font-family-primary);--sol-text-heading-s-font-size:var(--sol-font-size-150);--sol-text-heading-s-line-height:var(--sol-line-height-200);--sol-text-heading-s-font-offset:var(--sol-font-offset-primary);--sol-text-heading-s:var(--sol-font-weight-6) var(--sol-text-heading-s-font-size) /var(--sol-text-heading-s-line-height) var(--sol-font-family-primary);--sol-text-heading-xs-font-size:var(--sol-font-size-125);--sol-text-heading-xs-line-height:var(--sol-line-height-150);--sol-text-heading-xs-font-offset:var(--sol-font-offset-primary);--sol-text-heading-xs:var(--sol-font-weight-6) var(--sol-text-heading-xs-font-size) /var(--sol-text-heading-xs-line-height) var(--sol-font-family-primary);--sol-text-emphasis-l-font-size:var(--sol-font-size-150);--sol-text-emphasis-l-line-height:var(--sol-line-height-200);--sol-text-emphasis-l-font-offset:var(--sol-font-offset-primary);--sol-text-emphasis-l:var(--sol-font-weight-6) var(--sol-text-emphasis-l-font-size) /var(--sol-text-emphasis-l-line-height) var(--sol-font-family-primary);--sol-text-emphasis-m-font-size:var(--sol-font-size-125);--sol-text-emphasis-m-line-height:var(--sol-line-height-150);--sol-text-emphasis-m-font-offset:var(--sol-font-offset-primary);--sol-text-emphasis-m:var(--sol-font-weight-6) var(--sol-text-emphasis-m-font-size) /var(--sol-text-emphasis-m-line-height) var(--sol-font-family-primary);--sol-text-emphasis-s-font-size:var(--sol-font-size-100);--sol-text-emphasis-s-line-height:var(--sol-line-height-150);--sol-text-emphasis-s-font-offset:var(--sol-font-offset-primary);--sol-text-emphasis-s:var(--sol-font-weight-6) var(--sol-text-emphasis-s-font-size) /var(--sol-text-emphasis-s-line-height) var(--sol-font-family-primary);--sol-text-body-l-font-size:var(--sol-font-size-125);--sol-text-body-l-line-height:var(--sol-line-height-150);--sol-text-body-l-font-offset:var(--sol-font-offset-secondary);--sol-text-body-l:var(--sol-font-weight-4) var(--sol-text-body-l-font-size) /var(--sol-text-body-l-line-height) var(--sol-font-family-secondary);--sol-text-body-l-bold-font-size:var(--sol-font-size-125);--sol-text-body-l-bold-line-height:var(--sol-line-height-150);--sol-text-body-l-bold-font-offset:var(--sol-font-offset-secondary);--sol-text-body-l-bold:var(--sol-font-weight-7) var(--sol-text-body-l-bold-font-size) /var(--sol-text-body-l-bold-line-height) var(--sol-font-family-secondary);--sol-text-body-m-font-size:var(--sol-font-size-100);--sol-text-body-m-line-height:var(--sol-line-height-150);--sol-text-body-m-font-offset:var(--sol-font-offset-secondary);--sol-text-body-m:var(--sol-font-weight-4) var(--sol-text-body-m-font-size) /var(--sol-text-body-m-line-height) var(--sol-font-family-secondary);--sol-text-body-m-bold-font-size:var(--sol-font-size-100);--sol-text-body-m-bold-line-height:var(--sol-line-height-150);--sol-text-body-m-bold-font-offset:var(--sol-font-offset-secondary);--sol-text-body-m-bold:var(--sol-font-weight-7) var(--sol-text-body-m-bold-font-size) /var(--sol-text-body-m-bold-line-height) var(--sol-font-family-secondary);--sol-text-body-s-font-size:var(--sol-font-size-0875);--sol-text-body-s-line-height:var(--sol-line-height-125);--sol-text-body-s-font-offset:var(--sol-font-offset-secondary);--sol-text-body-s:var(--sol-font-weight-4) var(--sol-text-body-s-font-size) /var(--sol-text-body-s-line-height) var(--sol-font-family-secondary);--sol-text-body-s-bold-font-size:var(--sol-font-size-0875);--sol-text-body-s-bold-line-height:var(--sol-line-height-125);--sol-text-body-s-bold-font-offset:var(--sol-font-offset-secondary);--sol-text-body-s-bold:var(--sol-font-weight-7) var(--sol-text-body-s-bold-font-size) /var(--sol-text-body-s-bold-line-height) var(--sol-font-family-secondary);--sol-text-body-xs-font-size:var(--sol-font-size-075);--sol-text-body-xs-line-height:var(--sol-line-height-100);--sol-text-body-xs-font-offset:var(--sol-font-offset-secondary);--sol-text-body-xs:var(--sol-font-weight-4) var(--sol-text-body-xs-font-size) /var(--sol-text-body-xs-line-height) var(--sol-font-family-secondary);--sol-text-body-xs-bold-font-size:var(--sol-font-size-075);--sol-text-body-xs-bold-line-height:var(--sol-line-height-100);--sol-text-body-xs-bold-font-offset:var(--sol-font-offset-secondary);--sol-text-body-xs-bold:var(--sol-font-weight-7) var(--sol-text-body-xs-bold-font-size) /var(--sol-text-body-xs-bold-line-height) var(--sol-font-family-secondary);--sol-text-body-xxs-font-size:var(--sol-font-size-0625);--sol-text-body-xxs-line-height:var(--sol-line-height-100);--sol-text-body-xxs-font-offset:var(--sol-font-offset-secondary);--sol-text-body-xxs:var(--sol-font-weight-4) var(--sol-text-body-xxs-font-size) /var(--sol-text-body-xxs-line-height) var(--sol-font-family-secondary);--sol-text-body-xxs-bold-font-size:var(--sol-font-size-0625);--sol-text-body-xxs-bold-line-height:var(--sol-line-height-100);--sol-text-body-xxs-bold-font-offset:var(--sol-font-offset-secondary);--sol-text-body-xxs-bold:var(--sol-font-weight-7) var(--sol-text-body-xxs-bold-font-size) /var(--sol-text-body-xxs-bold-line-height) var(--sol-font-family-secondary);--sol-text-button-m-font-size:var(--sol-font-size-100);--sol-text-button-m-line-height:var(--sol-line-height-150);--sol-text-button-m-font-offset:var(--sol-font-offset-primary);--sol-text-button-m:var(--sol-font-weight-6) var(--sol-text-button-m-font-size) /var(--sol-text-button-m-line-height) var(--sol-font-family-primary);--sol-text-button-s-font-size:var(--sol-font-size-0875);--sol-text-button-s-line-height:var(--sol-line-height-125);--sol-text-button-s-font-offset:var(--sol-font-offset-primary);--sol-text-button-s:var(--sol-font-weight-6) var(--sol-text-button-s-font-size) /var(--sol-text-button-s-line-height) var(--sol-font-family-primary);--sol-text-label-m-font-size:var(--sol-font-size-100);--sol-text-label-m-line-height:var(--sol-line-height-150);--sol-text-label-m-font-offset:var(--sol-font-offset-secondary);--sol-text-label-m:var(--sol-font-weight-4) var(--sol-text-label-m-font-size) /var(--sol-text-label-m-line-height) var(--sol-font-family-secondary);--sol-text-label-s-font-size:var(--sol-font-size-075);--sol-text-label-s-line-height:var(--sol-line-height-100);--sol-text-label-s-font-offset:var(--sol-font-offset-secondary);--sol-text-label-s:var(--sol-font-weight-4) var(--sol-text-label-s-font-size) /var(--sol-text-label-s-line-height) var(--sol-font-family-secondary);--sol-text-label-xs-font-size:var(--sol-font-size-0625);--sol-text-label-xs-line-height:var(--sol-line-height-075);--sol-text-label-xs-font-offset:var(--sol-font-offset-secondary);--sol-text-label-xs:var(--sol-font-weight-4) var(--sol-text-label-xs-font-size) /var(--sol-text-label-xs-line-height) var(--sol-font-family-secondary);--sol-motion-0:0s;--sol-motion-150:150ms;--sol-motion-200:200ms;--sol-motion-250:250ms;--sol-motion-300:300ms;--sol-motion-350:350ms;--sol-motion-500:500ms;--sol-motion-1000:1000ms;--sol-motion-1500:1500ms;--sol-motion-4000:4000ms;--sol-motion-linear:cubic-bezier(0,0,1,1);--sol-motion-ease:cubic-bezier(0.25,0.1,0.25,1);--sol-motion-ease-in:cubic-bezier(0.42,0,1,1);--sol-motion-ease-out:cubic-bezier(.39,.01,.2,.98);--sol-motion-ease-in-out:cubic-bezier(.31,.01,.61,.99);--sol-motion-anim-wipe-duration:var(--sol-motion-1500);--sol-motion-anim-wipe-easing:cubic-bezier(.93,0,.5,.96);--sol-motion-angle:45deg;--sol-motion-spin:sol-motion-spin var(--sol-motion-500) var(--sol-motion-linear) infinite}@keyframes sol-motion-fade-in{0%{opacity:0;pointer-events:none;user-select:none}to{opacity:1;pointer-events:auto;transform:translate(0);user-select:auto}}@keyframes sol-motion-fade-out{to{opacity:0}}@keyframes sol-motion-spin{to{transform:rotate(1turn)}}:root,[data-sol-theme]{--sol-default-background:var(--sol-color-background);--sol-default-foreground:var(--sol-color-foreground);--sol-default-font-family:var(--sol-font-family-secondary);--sol-cursor-interactive:pointer;--sol-cursor-link:pointer;--sol-cursor-disabled:default;--sol-cursor-text:text;--sol-focus-width:2px;--sol-focus-offset:1px;--sol-focus-color:var(--sol-color-focused);--sol-scrollbar-track:var(--sol-color-surface-1);--sol-scrollbar-track-hovered:var(--sol-color-surface-1);--sol-scrollbar-track-pressed:var(--sol-color-surface-1);--sol-scrollbar-thumb:var(--sol-color-surface-3);--sol-scrollbar-thumb-hovered:var(--sol-color-surface-3);--sol-scrollbar-thumb-pressed:var(--sol-color-surface-3);--sol-scrollbar-width:var(--sol-size-100);--sol-scrollbar-border:var(--sol-size-025);--sol-scrollbar-radius:var(--sol-radius-rounded);--sol-z-actions:70;--sol-z-tutorial:60;--sol-z-tooltip:50;--sol-z-toasts:40;--sol-z-menu:30;--sol-z-popover:20;--sol-z-dialog:10;--sol-shadow-0:none;--sol-shadow-050:0 0 var(--sol-size-050) rgb(var(--sol-color-neutral-1-rgb)/0.4);--sol-shadow-100:0 0 var(--sol-size-100) rgb(var(--sol-color-neutral-1-rgb)/0.4);--sol-shadow-150:0 0 var(--sol-size-150) rgb(var(--sol-color-neutral-1-rgb)/0.4);--sol-size-0:0rem;--sol-size-0125:0.125rem;--sol-size-025:0.25rem;--sol-size-050:0.5rem;--sol-size-075:0.75rem;--sol-size-100:1rem;--sol-size-125:1.25rem;--sol-size-150:1.5rem;--sol-size-200:2rem;--sol-size-250:2.5rem;--sol-size-300:3rem;--sol-size-350:3.5rem;--sol-size-400:4rem;--sol-size-450:4.5rem;--sol-size-500:5rem;--sol-size-550:5.5rem;--sol-size-600:6rem;--sol-size-full:100%;--sol-size-three-quarters:75%;--sol-size-half:50%;--sol-size-quarter:25%;--sol-size-third:33.3333333333%;--sol-size-two-thirds:66.6666666667%;accent-color:var(--sol-color-accent-1);color-scheme:dark}}@layer defaults{:root,[data-sol-theme]{color:var(--sol-default-foreground);font-family:var(--sol-default-font-family)}.sol-theme-root[data-sol-theme],:root{background:var(--sol-default-background)}:focus{outline:var(--sol-focus-width) solid var(--sol-focus-color);outline-offset:var(--sol-focus-offset)}:focus:not(:focus-visible){outline:none}:focus-visible{outline:var(--sol-focus-width) solid var(--sol-focus-color);outline-offset:var(--sol-focus-offset)}a{cursor:var(--sol-cursor-link)}[role=button],[role=option],button,label,select,summary{cursor:var(--sol-cursor-interactive)}:disabled,a:not([href]){cursor:var(--sol-cursor-disabled)}@property --_track-color{syntax:"";inherits:true;initial-value:#0000}@property --_thumb-color{syntax:"";inherits:true;initial-value:#0000}@supports not selector(::-webkit-scrollbar){*{scrollbar-color:var(--sol-scrollbar-thumb) var(--sol-scrollbar-track);scrollbar-width:thin}}::-webkit-resizer,::-webkit-scrollbar-corner{background-color:initial}::-webkit-scrollbar,::-webkit-scrollbar-thumb,::-webkit-scrollbar-track,::-webkit-scrollbar-track-piece{background-clip:padding-box;border:var(--sol-scrollbar-border) solid #0000;border-radius:var(--sol-scrollbar-radius);height:var(--sol-scrollbar-width);width:var(--sol-scrollbar-width)}::-webkit-scrollbar-track,::-webkit-scrollbar-track-piece{background-color:var(--_track-color)}::-webkit-scrollbar-track-piece:hover,::-webkit-scrollbar-track:hover{--_track-color:var(--sol-scrollbar-track-hovered)}::-webkit-scrollbar-track-piece:active,::-webkit-scrollbar-track:active{background-color:var(--sol-scrollbar-track-pressed)}::-webkit-scrollbar-thumb{background-color:var(--sol-scrollbar-thumb)}::-webkit-scrollbar-thumb:hover{background-color:var(--sol-scrollbar-thumb-hovered)}::-webkit-scrollbar-thumb:active{background-color:var(--sol-scrollbar-thumb-pressed)}[data-sol-scrollbar-background=true]{--_track-color:var(--sol-scrollbar-track);--_thumb-color:var(--sol-scrollbar-thumb)}[data-sol-scrollbar-hidden=true]{transition:--_thumb-color var(--sol-motion-250)}[data-sol-scrollbar-hidden=true]::-webkit-scrollbar-thumb{background-color:var(--_thumb-color)}[data-sol-scrollbar-hidden=true]:hover{--_thumb-color:var(--sol-scrollbar-thumb-hovered)}:root{--sol-prefers-reduced-motion:reduce}@media (prefers-reduced-motion:no-preference){:root{--sol-prefers-reduced-motion:no-preference}}}@layer utilities{.sol-u-animation-wipe{--_in:wipeIn calc(var(--sol-motion-anim-wipe-duration)/2) var(--sol-motion-anim-wipe-easing) forwards;--_out:wipeOut calc(var(--sol-motion-anim-wipe-duration)/2) var(--sol-motion-anim-wipe-easing) forwards;--_in-rtl:wipeInRtL calc(var(--sol-motion-anim-wipe-duration)/2) var(--sol-motion-anim-wipe-easing) forwards;--_out-rtl:wipeOutRtL calc(var(--sol-motion-anim-wipe-duration)/2) var(--sol-motion-anim-wipe-easing) forwards;--_extra-width:60%;--_angle:25deg;--_background:var(--sol-color-surface-0);--_pos-out-left:translateX(calc(-100% - var(--_extra-width)/2)) skew(calc(var(--_angle)*-1));--_pos-out-mid:translateX(calc(var(--_extra-width)/-2.2)) skew(calc(var(--_angle)*-1));--_pos-out-right:translateX(calc(100% + var(--_extra-width)/2)) skew(calc(var(--_angle)*-1));overflow-x:hidden}.sol-u-animation-wipe:before{background:var(--_background);content:"";filter:brightness(1.1);height:100%;left:0;opacity:1;pointer-events:none;position:absolute;top:0;transform:var(--_pos-out-left);user-select:none;width:calc(100% + var(--_extra-width));will-change:transform;z-index:10}.sol-u-animation-wipe[data-sol-animation-wipe=in]:before{animation:var(--_in)}.sol-u-animation-wipe[data-sol-animation-wipe=out]:before{animation:var(--_out)}.sol-u-animation-wipe[data-sol-animation-wipe=in-rtl]:before{animation:var(--_in-rtl)}.sol-u-animation-wipe[data-sol-animation-wipe=out-rtl]:before{animation:var(--_out-rtl)}@keyframes wipeIn{0%{opacity:1;transform:var(--_pos-out-left)}to{transform:var(--_pos-out-mid)}}@keyframes wipeInRtL{0%{opacity:1;transform:var(--_pos-out-right)}to{transform:var(--_pos-out-mid)}}@keyframes wipeOut{0%{opacity:1;transform:var(--_pos-out-mid)}to{transform:var(--_pos-out-right)}}@keyframes wipeOutRtL{0%{opacity:1;transform:var(--_pos-out-mid)}to{transform:var(--_pos-out-left)}}.sol-u-app-version{color:var(--sol-color-foreground-weak);font:var(--sol-text-body-xs);inset-block-end:var(--sol-size-050);inset-inline-start:var(--sol-size-050);position:fixed;z-index:var(--sol-z-actions)}.sol-u-background-surface-0{background-color:var(--sol-color-surface-0)}.sol-u-color-surface-0{color:var(--sol-color-surface-0)}.sol-u-background-surface-1{background-color:var(--sol-color-surface-1)}.sol-u-color-surface-1{color:var(--sol-color-surface-1)}.sol-u-background-surface-2{background-color:var(--sol-color-surface-2)}.sol-u-color-surface-2{color:var(--sol-color-surface-2)}.sol-u-background-surface-3{background-color:var(--sol-color-surface-3)}.sol-u-color-surface-3{color:var(--sol-color-surface-3)}.sol-u-background-status-informative{background-color:var(--sol-color-status-informative)}.sol-u-color-status-informative{color:var(--sol-color-status-informative)}.sol-u-background-status-informative-fill{background-color:var(--sol-color-status-informative-fill)}.sol-u-color-status-informative-fill{color:var(--sol-color-status-informative-fill)}.sol-u-background-status-informative-fill-contrast{background-color:var(--sol-color-status-informative-fill-contrast)}.sol-u-color-status-informative-fill-contrast{color:var(--sol-color-status-informative-fill-contrast)}.sol-u-background-status-positive{background-color:var(--sol-color-status-positive)}.sol-u-color-status-positive{color:var(--sol-color-status-positive)}.sol-u-background-status-positive-fill{background-color:var(--sol-color-status-positive-fill)}.sol-u-color-status-positive-fill{color:var(--sol-color-status-positive-fill)}.sol-u-background-status-positive-fill-contrast{background-color:var(--sol-color-status-positive-fill-contrast)}.sol-u-color-status-positive-fill-contrast{color:var(--sol-color-status-positive-fill-contrast)}.sol-u-background-status-notice{background-color:var(--sol-color-status-notice)}.sol-u-color-status-notice{color:var(--sol-color-status-notice)}.sol-u-background-status-notice-fill{background-color:var(--sol-color-status-notice-fill)}.sol-u-color-status-notice-fill{color:var(--sol-color-status-notice-fill)}.sol-u-background-status-notice-fill-contrast{background-color:var(--sol-color-status-notice-fill-contrast)}.sol-u-color-status-notice-fill-contrast{color:var(--sol-color-status-notice-fill-contrast)}.sol-u-background-status-negative{background-color:var(--sol-color-status-negative)}.sol-u-color-status-negative{color:var(--sol-color-status-negative)}.sol-u-background-status-negative-fill{background-color:var(--sol-color-status-negative-fill)}.sol-u-color-status-negative-fill{color:var(--sol-color-status-negative-fill)}.sol-u-background-status-negative-fill-contrast{background-color:var(--sol-color-status-negative-fill-contrast)}.sol-u-color-status-negative-fill-contrast{color:var(--sol-color-status-negative-fill-contrast)}.sol-u-background-status-highlight{background-color:var(--sol-color-status-highlight)}.sol-u-color-status-highlight{color:var(--sol-color-status-highlight)}.sol-u-background-status-highlight-fill{background-color:var(--sol-color-status-highlight-fill)}.sol-u-color-status-highlight-fill{color:var(--sol-color-status-highlight-fill)}.sol-u-background-status-highlight-fill-contrast{background-color:var(--sol-color-status-highlight-fill-contrast)}.sol-u-color-status-highlight-fill-contrast{color:var(--sol-color-status-highlight-fill-contrast)}.sol-u-background-status-neutral{background-color:var(--sol-color-status-neutral)}.sol-u-color-status-neutral{color:var(--sol-color-status-neutral)}.sol-u-background-status-neutral-fill{background-color:var(--sol-color-status-neutral-fill)}.sol-u-color-status-neutral-fill{color:var(--sol-color-status-neutral-fill)}.sol-u-background-status-neutral-fill-contrast{background-color:var(--sol-color-status-neutral-fill-contrast)}.sol-u-color-status-neutral-fill-contrast{color:var(--sol-color-status-neutral-fill-contrast)}.sol-u-background-foreground{background-color:var(--sol-color-foreground)}.sol-u-color-foreground{color:var(--sol-color-foreground)}.sol-u-background-foreground-weak{background-color:var(--sol-color-foreground-weak)}.sol-u-color-foreground-weak{color:var(--sol-color-foreground-weak)}.sol-u-background-foreground-weaker{background-color:var(--sol-color-foreground-weaker)}.sol-u-color-foreground-weaker{color:var(--sol-color-foreground-weaker)}.sol-u-background-foreground-highlight{background-color:var(--sol-color-foreground-highlight)}.sol-u-color-foreground-highlight{color:var(--sol-color-foreground-highlight)}.sol-u-display-none{display:none}.sol-u-display-block{display:block}.sol-u-display-inline{display:inline}.sol-u-display-inline-block{display:inline-block}.sol-u-display-flex{display:flex}.sol-u-display-inline-flex{display:inline-flex}.sol-u-display-grid{display:grid}.sol-u-display-inline-grid{display:inline-grid}.sol-u-display-contents{display:contents}.sol-u-disable-selection{cursor:default;user-select:none}.sol-u-disable-selection :is(a,img):not([draggable=true]){-webkit-user-drag:none}.sol-u-enable-selection{cursor:var(--sol-cursor-text);user-select:text}.sol-u-gap-0{gap:var(--sol-size-0)}.sol-u-gap-0125{gap:var(--sol-size-0125)}.sol-u-gap-025{gap:var(--sol-size-025)}.sol-u-gap-050{gap:var(--sol-size-050)}.sol-u-gap-075{gap:var(--sol-size-075)}.sol-u-gap-100{gap:var(--sol-size-100)}.sol-u-gap-125{gap:var(--sol-size-125)}.sol-u-gap-150{gap:var(--sol-size-150)}.sol-u-gap-200{gap:var(--sol-size-200)}.sol-u-gap-250{gap:var(--sol-size-250)}.sol-u-gap-300{gap:var(--sol-size-300)}.sol-u-gap-350{gap:var(--sol-size-350)}.sol-u-gap-400{gap:var(--sol-size-400)}.sol-u-gap-450{gap:var(--sol-size-450)}.sol-u-gap-500{gap:var(--sol-size-500)}.sol-u-gap-550{gap:var(--sol-size-550)}.sol-u-gap-600{gap:var(--sol-size-600)}.sol-u-padding-0{padding:var(--sol-size-0)}.sol-u-padding-0125{padding:var(--sol-size-0125)}.sol-u-padding-025{padding:var(--sol-size-025)}.sol-u-padding-050{padding:var(--sol-size-050)}.sol-u-padding-075{padding:var(--sol-size-075)}.sol-u-padding-100{padding:var(--sol-size-100)}.sol-u-padding-125{padding:var(--sol-size-125)}.sol-u-padding-150{padding:var(--sol-size-150)}.sol-u-padding-200{padding:var(--sol-size-200)}.sol-u-padding-250{padding:var(--sol-size-250)}.sol-u-padding-300{padding:var(--sol-size-300)}.sol-u-padding-350{padding:var(--sol-size-350)}.sol-u-padding-400{padding:var(--sol-size-400)}.sol-u-padding-450{padding:var(--sol-size-450)}.sol-u-padding-500{padding:var(--sol-size-500)}.sol-u-padding-550{padding:var(--sol-size-550)}.sol-u-padding-600{padding:var(--sol-size-600)}.sol-u-padding-b-0{padding-block:var(--sol-size-0)}.sol-u-padding-b-0125{padding-block:var(--sol-size-0125)}.sol-u-padding-b-025{padding-block:var(--sol-size-025)}.sol-u-padding-b-050{padding-block:var(--sol-size-050)}.sol-u-padding-b-075{padding-block:var(--sol-size-075)}.sol-u-padding-b-100{padding-block:var(--sol-size-100)}.sol-u-padding-b-125{padding-block:var(--sol-size-125)}.sol-u-padding-b-150{padding-block:var(--sol-size-150)}.sol-u-padding-b-200{padding-block:var(--sol-size-200)}.sol-u-padding-b-250{padding-block:var(--sol-size-250)}.sol-u-padding-b-300{padding-block:var(--sol-size-300)}.sol-u-padding-b-350{padding-block:var(--sol-size-350)}.sol-u-padding-b-400{padding-block:var(--sol-size-400)}.sol-u-padding-b-450{padding-block:var(--sol-size-450)}.sol-u-padding-b-500{padding-block:var(--sol-size-500)}.sol-u-padding-b-550{padding-block:var(--sol-size-550)}.sol-u-padding-b-600{padding-block:var(--sol-size-600)}.sol-u-padding-bs-0{padding-block-start:var(--sol-size-0)}.sol-u-padding-bs-0125{padding-block-start:var(--sol-size-0125)}.sol-u-padding-bs-025{padding-block-start:var(--sol-size-025)}.sol-u-padding-bs-050{padding-block-start:var(--sol-size-050)}.sol-u-padding-bs-075{padding-block-start:var(--sol-size-075)}.sol-u-padding-bs-100{padding-block-start:var(--sol-size-100)}.sol-u-padding-bs-125{padding-block-start:var(--sol-size-125)}.sol-u-padding-bs-150{padding-block-start:var(--sol-size-150)}.sol-u-padding-bs-200{padding-block-start:var(--sol-size-200)}.sol-u-padding-bs-250{padding-block-start:var(--sol-size-250)}.sol-u-padding-bs-300{padding-block-start:var(--sol-size-300)}.sol-u-padding-bs-350{padding-block-start:var(--sol-size-350)}.sol-u-padding-bs-400{padding-block-start:var(--sol-size-400)}.sol-u-padding-bs-450{padding-block-start:var(--sol-size-450)}.sol-u-padding-bs-500{padding-block-start:var(--sol-size-500)}.sol-u-padding-bs-550{padding-block-start:var(--sol-size-550)}.sol-u-padding-bs-600{padding-block-start:var(--sol-size-600)}.sol-u-padding-be-0{padding-block-end:var(--sol-size-0)}.sol-u-padding-be-0125{padding-block-end:var(--sol-size-0125)}.sol-u-padding-be-025{padding-block-end:var(--sol-size-025)}.sol-u-padding-be-050{padding-block-end:var(--sol-size-050)}.sol-u-padding-be-075{padding-block-end:var(--sol-size-075)}.sol-u-padding-be-100{padding-block-end:var(--sol-size-100)}.sol-u-padding-be-125{padding-block-end:var(--sol-size-125)}.sol-u-padding-be-150{padding-block-end:var(--sol-size-150)}.sol-u-padding-be-200{padding-block-end:var(--sol-size-200)}.sol-u-padding-be-250{padding-block-end:var(--sol-size-250)}.sol-u-padding-be-300{padding-block-end:var(--sol-size-300)}.sol-u-padding-be-350{padding-block-end:var(--sol-size-350)}.sol-u-padding-be-400{padding-block-end:var(--sol-size-400)}.sol-u-padding-be-450{padding-block-end:var(--sol-size-450)}.sol-u-padding-be-500{padding-block-end:var(--sol-size-500)}.sol-u-padding-be-550{padding-block-end:var(--sol-size-550)}.sol-u-padding-be-600{padding-block-end:var(--sol-size-600)}.sol-u-padding-i-0{padding-inline:var(--sol-size-0)}.sol-u-padding-i-0125{padding-inline:var(--sol-size-0125)}.sol-u-padding-i-025{padding-inline:var(--sol-size-025)}.sol-u-padding-i-050{padding-inline:var(--sol-size-050)}.sol-u-padding-i-075{padding-inline:var(--sol-size-075)}.sol-u-padding-i-100{padding-inline:var(--sol-size-100)}.sol-u-padding-i-125{padding-inline:var(--sol-size-125)}.sol-u-padding-i-150{padding-inline:var(--sol-size-150)}.sol-u-padding-i-200{padding-inline:var(--sol-size-200)}.sol-u-padding-i-250{padding-inline:var(--sol-size-250)}.sol-u-padding-i-300{padding-inline:var(--sol-size-300)}.sol-u-padding-i-350{padding-inline:var(--sol-size-350)}.sol-u-padding-i-400{padding-inline:var(--sol-size-400)}.sol-u-padding-i-450{padding-inline:var(--sol-size-450)}.sol-u-padding-i-500{padding-inline:var(--sol-size-500)}.sol-u-padding-i-550{padding-inline:var(--sol-size-550)}.sol-u-padding-i-600{padding-inline:var(--sol-size-600)}.sol-u-padding-is-0{padding-inline-start:var(--sol-size-0)}.sol-u-padding-is-0125{padding-inline-start:var(--sol-size-0125)}.sol-u-padding-is-025{padding-inline-start:var(--sol-size-025)}.sol-u-padding-is-050{padding-inline-start:var(--sol-size-050)}.sol-u-padding-is-075{padding-inline-start:var(--sol-size-075)}.sol-u-padding-is-100{padding-inline-start:var(--sol-size-100)}.sol-u-padding-is-125{padding-inline-start:var(--sol-size-125)}.sol-u-padding-is-150{padding-inline-start:var(--sol-size-150)}.sol-u-padding-is-200{padding-inline-start:var(--sol-size-200)}.sol-u-padding-is-250{padding-inline-start:var(--sol-size-250)}.sol-u-padding-is-300{padding-inline-start:var(--sol-size-300)}.sol-u-padding-is-350{padding-inline-start:var(--sol-size-350)}.sol-u-padding-is-400{padding-inline-start:var(--sol-size-400)}.sol-u-padding-is-450{padding-inline-start:var(--sol-size-450)}.sol-u-padding-is-500{padding-inline-start:var(--sol-size-500)}.sol-u-padding-is-550{padding-inline-start:var(--sol-size-550)}.sol-u-padding-is-600{padding-inline-start:var(--sol-size-600)}.sol-u-padding-ie-0{padding-inline-end:var(--sol-size-0)}.sol-u-padding-ie-0125{padding-inline-end:var(--sol-size-0125)}.sol-u-padding-ie-025{padding-inline-end:var(--sol-size-025)}.sol-u-padding-ie-050{padding-inline-end:var(--sol-size-050)}.sol-u-padding-ie-075{padding-inline-end:var(--sol-size-075)}.sol-u-padding-ie-100{padding-inline-end:var(--sol-size-100)}.sol-u-padding-ie-125{padding-inline-end:var(--sol-size-125)}.sol-u-padding-ie-150{padding-inline-end:var(--sol-size-150)}.sol-u-padding-ie-200{padding-inline-end:var(--sol-size-200)}.sol-u-padding-ie-250{padding-inline-end:var(--sol-size-250)}.sol-u-padding-ie-300{padding-inline-end:var(--sol-size-300)}.sol-u-padding-ie-350{padding-inline-end:var(--sol-size-350)}.sol-u-padding-ie-400{padding-inline-end:var(--sol-size-400)}.sol-u-padding-ie-450{padding-inline-end:var(--sol-size-450)}.sol-u-padding-ie-500{padding-inline-end:var(--sol-size-500)}.sol-u-padding-ie-550{padding-inline-end:var(--sol-size-550)}.sol-u-padding-ie-600{padding-inline-end:var(--sol-size-600)}.sol-u-margin-0{margin:var(--sol-size-0)}.sol-u-margin-0125{margin:var(--sol-size-0125)}.sol-u-margin-025{margin:var(--sol-size-025)}.sol-u-margin-050{margin:var(--sol-size-050)}.sol-u-margin-075{margin:var(--sol-size-075)}.sol-u-margin-100{margin:var(--sol-size-100)}.sol-u-margin-125{margin:var(--sol-size-125)}.sol-u-margin-150{margin:var(--sol-size-150)}.sol-u-margin-200{margin:var(--sol-size-200)}.sol-u-margin-250{margin:var(--sol-size-250)}.sol-u-margin-300{margin:var(--sol-size-300)}.sol-u-margin-350{margin:var(--sol-size-350)}.sol-u-margin-400{margin:var(--sol-size-400)}.sol-u-margin-450{margin:var(--sol-size-450)}.sol-u-margin-500{margin:var(--sol-size-500)}.sol-u-margin-550{margin:var(--sol-size-550)}.sol-u-margin-600{margin:var(--sol-size-600)}.sol-u-margin-b-0{margin-block:var(--sol-size-0)}.sol-u-margin-b-0125{margin-block:var(--sol-size-0125)}.sol-u-margin-b-025{margin-block:var(--sol-size-025)}.sol-u-margin-b-050{margin-block:var(--sol-size-050)}.sol-u-margin-b-075{margin-block:var(--sol-size-075)}.sol-u-margin-b-100{margin-block:var(--sol-size-100)}.sol-u-margin-b-125{margin-block:var(--sol-size-125)}.sol-u-margin-b-150{margin-block:var(--sol-size-150)}.sol-u-margin-b-200{margin-block:var(--sol-size-200)}.sol-u-margin-b-250{margin-block:var(--sol-size-250)}.sol-u-margin-b-300{margin-block:var(--sol-size-300)}.sol-u-margin-b-350{margin-block:var(--sol-size-350)}.sol-u-margin-b-400{margin-block:var(--sol-size-400)}.sol-u-margin-b-450{margin-block:var(--sol-size-450)}.sol-u-margin-b-500{margin-block:var(--sol-size-500)}.sol-u-margin-b-550{margin-block:var(--sol-size-550)}.sol-u-margin-b-600{margin-block:var(--sol-size-600)}.sol-u-margin-bs-0{margin-block-start:var(--sol-size-0)}.sol-u-margin-bs-0125{margin-block-start:var(--sol-size-0125)}.sol-u-margin-bs-025{margin-block-start:var(--sol-size-025)}.sol-u-margin-bs-050{margin-block-start:var(--sol-size-050)}.sol-u-margin-bs-075{margin-block-start:var(--sol-size-075)}.sol-u-margin-bs-100{margin-block-start:var(--sol-size-100)}.sol-u-margin-bs-125{margin-block-start:var(--sol-size-125)}.sol-u-margin-bs-150{margin-block-start:var(--sol-size-150)}.sol-u-margin-bs-200{margin-block-start:var(--sol-size-200)}.sol-u-margin-bs-250{margin-block-start:var(--sol-size-250)}.sol-u-margin-bs-300{margin-block-start:var(--sol-size-300)}.sol-u-margin-bs-350{margin-block-start:var(--sol-size-350)}.sol-u-margin-bs-400{margin-block-start:var(--sol-size-400)}.sol-u-margin-bs-450{margin-block-start:var(--sol-size-450)}.sol-u-margin-bs-500{margin-block-start:var(--sol-size-500)}.sol-u-margin-bs-550{margin-block-start:var(--sol-size-550)}.sol-u-margin-bs-600{margin-block-start:var(--sol-size-600)}.sol-u-margin-be-0{margin-block-end:var(--sol-size-0)}.sol-u-margin-be-0125{margin-block-end:var(--sol-size-0125)}.sol-u-margin-be-025{margin-block-end:var(--sol-size-025)}.sol-u-margin-be-050{margin-block-end:var(--sol-size-050)}.sol-u-margin-be-075{margin-block-end:var(--sol-size-075)}.sol-u-margin-be-100{margin-block-end:var(--sol-size-100)}.sol-u-margin-be-125{margin-block-end:var(--sol-size-125)}.sol-u-margin-be-150{margin-block-end:var(--sol-size-150)}.sol-u-margin-be-200{margin-block-end:var(--sol-size-200)}.sol-u-margin-be-250{margin-block-end:var(--sol-size-250)}.sol-u-margin-be-300{margin-block-end:var(--sol-size-300)}.sol-u-margin-be-350{margin-block-end:var(--sol-size-350)}.sol-u-margin-be-400{margin-block-end:var(--sol-size-400)}.sol-u-margin-be-450{margin-block-end:var(--sol-size-450)}.sol-u-margin-be-500{margin-block-end:var(--sol-size-500)}.sol-u-margin-be-550{margin-block-end:var(--sol-size-550)}.sol-u-margin-be-600{margin-block-end:var(--sol-size-600)}.sol-u-margin-i-0{margin-inline:var(--sol-size-0)}.sol-u-margin-i-0125{margin-inline:var(--sol-size-0125)}.sol-u-margin-i-025{margin-inline:var(--sol-size-025)}.sol-u-margin-i-050{margin-inline:var(--sol-size-050)}.sol-u-margin-i-075{margin-inline:var(--sol-size-075)}.sol-u-margin-i-100{margin-inline:var(--sol-size-100)}.sol-u-margin-i-125{margin-inline:var(--sol-size-125)}.sol-u-margin-i-150{margin-inline:var(--sol-size-150)}.sol-u-margin-i-200{margin-inline:var(--sol-size-200)}.sol-u-margin-i-250{margin-inline:var(--sol-size-250)}.sol-u-margin-i-300{margin-inline:var(--sol-size-300)}.sol-u-margin-i-350{margin-inline:var(--sol-size-350)}.sol-u-margin-i-400{margin-inline:var(--sol-size-400)}.sol-u-margin-i-450{margin-inline:var(--sol-size-450)}.sol-u-margin-i-500{margin-inline:var(--sol-size-500)}.sol-u-margin-i-550{margin-inline:var(--sol-size-550)}.sol-u-margin-i-600{margin-inline:var(--sol-size-600)}.sol-u-margin-is-0{margin-inline-start:var(--sol-size-0)}.sol-u-margin-is-0125{margin-inline-start:var(--sol-size-0125)}.sol-u-margin-is-025{margin-inline-start:var(--sol-size-025)}.sol-u-margin-is-050{margin-inline-start:var(--sol-size-050)}.sol-u-margin-is-075{margin-inline-start:var(--sol-size-075)}.sol-u-margin-is-100{margin-inline-start:var(--sol-size-100)}.sol-u-margin-is-125{margin-inline-start:var(--sol-size-125)}.sol-u-margin-is-150{margin-inline-start:var(--sol-size-150)}.sol-u-margin-is-200{margin-inline-start:var(--sol-size-200)}.sol-u-margin-is-250{margin-inline-start:var(--sol-size-250)}.sol-u-margin-is-300{margin-inline-start:var(--sol-size-300)}.sol-u-margin-is-350{margin-inline-start:var(--sol-size-350)}.sol-u-margin-is-400{margin-inline-start:var(--sol-size-400)}.sol-u-margin-is-450{margin-inline-start:var(--sol-size-450)}.sol-u-margin-is-500{margin-inline-start:var(--sol-size-500)}.sol-u-margin-is-550{margin-inline-start:var(--sol-size-550)}.sol-u-margin-is-600{margin-inline-start:var(--sol-size-600)}.sol-u-margin-ie-0{margin-inline-end:var(--sol-size-0)}.sol-u-margin-ie-0125{margin-inline-end:var(--sol-size-0125)}.sol-u-margin-ie-025{margin-inline-end:var(--sol-size-025)}.sol-u-margin-ie-050{margin-inline-end:var(--sol-size-050)}.sol-u-margin-ie-075{margin-inline-end:var(--sol-size-075)}.sol-u-margin-ie-100{margin-inline-end:var(--sol-size-100)}.sol-u-margin-ie-125{margin-inline-end:var(--sol-size-125)}.sol-u-margin-ie-150{margin-inline-end:var(--sol-size-150)}.sol-u-margin-ie-200{margin-inline-end:var(--sol-size-200)}.sol-u-margin-ie-250{margin-inline-end:var(--sol-size-250)}.sol-u-margin-ie-300{margin-inline-end:var(--sol-size-300)}.sol-u-margin-ie-350{margin-inline-end:var(--sol-size-350)}.sol-u-margin-ie-400{margin-inline-end:var(--sol-size-400)}.sol-u-margin-ie-450{margin-inline-end:var(--sol-size-450)}.sol-u-margin-ie-500{margin-inline-end:var(--sol-size-500)}.sol-u-margin-ie-550{margin-inline-end:var(--sol-size-550)}.sol-u-margin-ie-600{margin-inline-end:var(--sol-size-600)}.sol-u-margin-auto{margin:auto}.sol-u-margin-b-auto{margin-block:auto}.sol-u-margin-bs-auto{margin-block-start:auto}.sol-u-margin-be-auto{margin-block-end:auto}.sol-u-margin-i-auto{margin-inline:auto}.sol-u-margin-is-auto{margin-inline-start:auto}.sol-u-margin-ie-auto{margin-inline-end:auto}.sol-u-text-align-start{text-align:start}.sol-u-text-align-center{text-align:center}.sol-u-text-align-end{text-align:end}.sol-u-text-decoration-none{text-decoration:var(--sol-text-decoration-none)}.sol-u-text-decoration-underline{text-decoration:var(--sol-text-decoration-underline)}.sol-u-text-decoration-strikethrough{text-decoration:var(--sol-text-decoration-strikethrough)}.sol-u-font-style-normal{font-style:var(--sol-font-style-normal)}.sol-u-font-style-italic{font-style:var(--sol-font-style-italic)}.sol-u-text-transform-none{text-transform:var(--sol-text-transform-none)}.sol-u-text-transform-lowercase{text-transform:var(--sol-text-transform-lowercase)}.sol-u-text-transform-uppercase{text-transform:var(--sol-text-transform-uppercase)}.sol-u-text-truncate{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@supports (display:-webkit-box){.sol-u-text-truncate[style*="--sol-u-text-truncate"],[style*="--sol-u-text-truncate"] .sol-u-text-truncate{-webkit-box-orient:vertical;-webkit-line-clamp:var(--sol-u-text-truncate,1);display:-webkit-box;white-space:normal}}.sol-u-transition-floating{--_offset:var(--sol-u-transition-floating-offset,var(--sol-size-050));--_in:var(--sol-u-transition-floating-in,var(--sol-motion-250) var(--sol-motion-ease-out));--_out:var(--sol-u-transition-floating-out,var(--sol-motion-250) var(--sol-motion-ease))}.sol-u-transition-floating[data-sol-status=open]{transition:var(--_in);transition-property:opacity,transform}.sol-u-transition-floating[data-sol-status=close]{transition:var(--_out);transition-property:opacity,transform}.sol-u-transition-floating[data-sol-status=close],.sol-u-transition-floating[data-sol-status=initial]{opacity:0}@container style(--sol-prefers-reduced-motion: no-preference){.sol-u-transition-floating[data-sol-status=close][data-sol-placement^=top],.sol-u-transition-floating[data-sol-status=initial][data-sol-placement^=top]{transform:translateY(var(--_offset))}.sol-u-transition-floating[data-sol-status=close][data-sol-placement^=bottom],.sol-u-transition-floating[data-sol-status=initial][data-sol-placement^=bottom]{transform:translateY(calc(var(--_offset)*-1))}.sol-u-transition-floating[data-sol-status=close][data-sol-placement^=left],.sol-u-transition-floating[data-sol-status=initial][data-sol-placement^=left]{transform:translateX(var(--_offset))}.sol-u-transition-floating[data-sol-status=close][data-sol-placement^=right],.sol-u-transition-floating[data-sol-status=initial][data-sol-placement^=right]{transform:translateX(calc(var(--_offset)*-1))}}.sol-u-hide-visually:not(:focus,:active,:focus-within,.sol-u-show-visually){block-size:1px;border:0;clip-path:inset(50%);inline-size:1px;overflow:hidden;position:absolute;white-space:nowrap}}}'), "undefined" != typeof globalThis ? globalThis : "undefined" != typeof window ? window : "undefined" != typeof n.g ? n.g : "undefined" != typeof self && self; - var to, no, ro, io, ao, oo, so, lo, co = { + + function to(e) { + if (e.__esModule) return e; + var t = e.default; + if ("function" == typeof t) { + var n = function e() { + return this instanceof e ? Reflect.construct(t, arguments, this.constructor) : t.apply(this, arguments) + }; + n.prototype = t.prototype + } else n = {}; + return Object.defineProperty(n, "__esModule", { + value: !0 + }), Object.keys(e).forEach((function(t) { + var r = Object.getOwnPropertyDescriptor(e, t); + Object.defineProperty(n, t, r.get ? r : { + enumerable: !0, + get: function() { + return e[t] + } + }) + })), n + } + eo('@import url("https://cdn.robertsspaceindustries.com/static/fonts/univia-pro-typekit/font.css");@import url("https://cdn.robertsspaceindustries.com/static/fonts/bai-jamjuree/font.css");@layer sol{@layer reset, tokens, defaults, components, utilities, themes;@layer reset{*,:after,:before{box-sizing:border-box}:root{font-family:system-ui,sans-serif;line-height:1.5}body{line-height:inherit;margin:0;min-block-size:100vh;min-block-size:100dvh}a{color:inherit;text-decoration:inherit}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,ol,p,pre,ul{margin:0}h1,h2,h3,h4,h5,h6,p{font:inherit;overflow-wrap:break-word}ol,ul{list-style:none;padding:0}table{border-collapse:collapse;border-spacing:0}pre{white-space:pre-wrap}hr{block-size:0;border:0;border-block-start:1px solid;color:inherit}abbr[title]{text-decoration:underline dotted}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:initial}sub{bottom:-.25em}sup{top:-.5em}summary{display:list-item}audio,canvas,embed,iframe,img,object,svg,video{display:block;max-inline-size:100%;vertical-align:middle}canvas,img,svg,video{block-size:auto}audio{block-size:100%}audio:not([controls]),source{display:none}picture{display:contents}iframe{border:0;color-scheme:normal}fieldset{border:0;margin:0}fieldset,legend{padding:0}button,input,select,textarea{border:0;color:inherit;font:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{appearance:button;background-color:initial;background-image:none}textarea{resize:vertical;resize:block}progress{vertical-align:initial}[hidden]:not([hidden=until-found]){display:none}}@layer tokens{:root,[data-sol-theme]{--sol-border-0:0px;--sol-border-1:1px;--sol-border-2:2px;--sol-radius-0:0px;--sol-radius-4:4px;--sol-radius-8:8px;--sol-radius-16:16px;--sol-radius-24:24px;--sol-radius-rounded:9999px;--sol-radius-circle:50%;--sol-clip-radius-0:none;--sol-clip-radius-4:inset(0 round var(--sol-radius-4));--sol-clip-radius-8:inset(0 round var(--sol-radius-8));--sol-clip-radius-16:inset(0 round var(--sol-radius-16));--sol-clip-radius-24:inset(0 round var(--sol-radius-24));--sol-clip-radius-rounded:inset(0 round var(--sol-radius-rounded));--sol-clip-radius-circle:inset(0 round var(--sol-radius-circle));--sol-color-primary-1:#0a1d29;--sol-color-primary-1-rgb:10 29 41;--sol-color-primary-2:#0f2c3e;--sol-color-primary-2-rgb:15 44 62;--sol-color-primary-3:#143a52;--sol-color-primary-3-rgb:20 58 82;--sol-color-primary-4:#194967;--sol-color-primary-4-rgb:25 73 103;--sol-color-primary-5:#1e577b;--sol-color-primary-5-rgb:30 87 123;--sol-color-primary-6:#2875a4;--sol-color-primary-6-rgb:40 117 164;--sol-color-primary-7:#6fb2dc;--sol-color-primary-7-rgb:111 178 220;--sol-color-primary-8:#add4eb;--sol-color-primary-8-rgb:173 212 235;--sol-color-neutral-1:#000;--sol-color-neutral-1-rgb:0 0 0;--sol-color-neutral-2:#586774;--sol-color-neutral-2-rgb:88 103 116;--sol-color-neutral-3:#b0bac0;--sol-color-neutral-3-rgb:176 186 192;--sol-color-neutral-4:#fff;--sol-color-neutral-4-rgb:255 255 255;--sol-color-accent-1:#54adf7;--sol-color-accent-1-rgb:84 173 247;--sol-color-accent-2:#6db9f8;--sol-color-accent-2-rgb:109 185 248;--sol-color-accent-3:#9ed0fa;--sol-color-accent-3-rgb:158 208 250;--sol-color-positive-1:#85c6a2;--sol-color-positive-1-rgb:133 198 162;--sol-color-positive-2:#a8d6bd;--sol-color-positive-2-rgb:168 214 189;--sol-color-positive-3:#cbe7d8;--sol-color-positive-3-rgb:203 231 216;--sol-color-notice-1:#e99449;--sol-color-notice-1-rgb:233 148 73;--sol-color-notice-2:#eeaf77;--sol-color-notice-2-rgb:238 175 119;--sol-color-notice-3:#f4c9a4;--sol-color-notice-3-rgb:244 201 164;--sol-color-negative-1:#ff8080;--sol-color-negative-1-rgb:255 128 128;--sol-color-negative-2:#f99;--sol-color-negative-2-rgb:255 153 153;--sol-color-negative-3:#ffb3b3;--sol-color-negative-3-rgb:255 179 179;--sol-color-highlight-1:#8186e4;--sol-color-highlight-1-rgb:129 134 228;--sol-color-highlight-2:#abafed;--sol-color-highlight-2-rgb:171 175 237;--sol-color-highlight-3:#d5d7f6;--sol-color-highlight-3-rgb:213 215 246;--sol-color-background:var(--sol-color-primary-1);--sol-color-focused:var(--sol-color-primary-7);--sol-color-overlay:rgba(var(--sol-color-neutral-1-rgb)/0.7);--sol-color-surface-0:var(--sol-color-primary-1);--sol-color-surface-1:var(--sol-color-primary-2);--sol-color-surface-2:var(--sol-color-primary-3);--sol-color-surface-3:var(--sol-color-primary-4);--sol-color-surface-0-hovered:var(--sol-color-primary-2);--sol-color-surface-0-pressed:var(--sol-color-primary-3);--sol-color-surface-1-hovered:var(--sol-color-primary-3);--sol-color-surface-1-pressed:var(--sol-color-primary-4);--sol-color-surface-2-hovered:var(--sol-color-primary-4);--sol-color-surface-2-pressed:var(--sol-color-primary-5);--sol-color-surface-3-hovered:var(--sol-color-primary-5);--sol-color-surface-3-pressed:var(--sol-color-primary-6);--sol-color-interactive:var(--sol-color-accent-1);--sol-color-interactive-hovered:var(--sol-color-accent-3);--sol-color-interactive-pressed:var(--sol-color-accent-2);--sol-color-interactive-selected:var(--sol-color-neutral-4);--sol-color-interactive-contrast:var(--sol-color-neutral-1);--sol-color-interactive-opacity:rgba(var(--sol-color-neutral-1-rgb)/0);--sol-color-interactive-opacity-hovered:rgba(var(--sol-color-neutral-1-rgb)/0.4);--sol-color-interactive-opacity-pressed:rgba(var(--sol-color-neutral-1-rgb)/0.4);--sol-color-interactive-opacity-selected:rgba(var(--sol-color-neutral-1-rgb)/0.6);--sol-color-interactive-negative:var(--sol-color-negative-1);--sol-color-interactive-negative-hovered:var(--sol-color-negative-3);--sol-color-interactive-negative-pressed:var(--sol-color-negative-2);--sol-color-interactive-negative-selected:var(--sol-color-neutral-4);--sol-color-interactive-notice:var(--sol-color-notice-1);--sol-color-interactive-notice-hovered:var(--sol-color-notice-3);--sol-color-interactive-notice-pressed:var(--sol-color-notice-2);--sol-color-interactive-notice-selected:var(--sol-color-neutral-4);--sol-color-interactive-positive:var(--sol-color-positive-1);--sol-color-interactive-positive-hovered:var(--sol-color-positive-3);--sol-color-interactive-positive-pressed:var(--sol-color-positive-2);--sol-color-interactive-positive-selected:var(--sol-color-neutral-4);--sol-color-interactive-neutral:var(--sol-color-neutral-4);--sol-color-interactive-neutral-hovered:var(--sol-color-neutral-4);--sol-color-interactive-neutral-pressed:var(--sol-color-neutral-3);--sol-color-interactive-neutral-selected:var(--sol-color-neutral-4);--sol-color-status-informative:var(--sol-color-primary-7);--sol-color-status-informative-fill:var(--sol-color-primary-6);--sol-color-status-informative-fill-contrast:var(--sol-color-neutral-4);--sol-color-status-positive:var(--sol-color-positive-2);--sol-color-status-positive-fill:var(--sol-color-positive-1);--sol-color-status-positive-fill-contrast:var(--sol-color-neutral-1);--sol-color-status-notice:var(--sol-color-notice-3);--sol-color-status-notice-fill:var(--sol-color-notice-1);--sol-color-status-notice-fill-contrast:var(--sol-color-neutral-1);--sol-color-status-negative:var(--sol-color-negative-3);--sol-color-status-negative-fill:var(--sol-color-negative-1);--sol-color-status-negative-fill-contrast:var(--sol-color-neutral-1);--sol-color-status-highlight:var(--sol-color-highlight-3);--sol-color-status-highlight-fill:var(--sol-color-highlight-1);--sol-color-status-highlight-fill-contrast:var(--sol-color-neutral-1);--sol-color-status-neutral:var(--sol-color-neutral-3);--sol-color-status-neutral-fill:var(--sol-color-neutral-2);--sol-color-status-neutral-fill-contrast:var(--sol-color-neutral-4);--sol-color-foreground:var(--sol-color-neutral-4);--sol-color-foreground-weak:var(--sol-color-primary-8);--sol-color-foreground-weaker:var(--sol-color-neutral-3);--sol-color-foreground-highlight:var(--sol-color-primary-7);--sol-font-family-primary:univia-pro,system-ui,sans-serif;--sol-font-family-secondary:"Bai Jamjuree",system-ui,sans-serif;--sol-font-offset-primary:-0.075em;--sol-font-offset-secondary:-0.04em;--sol-font-size-050:0.5rem;--sol-font-size-0625:0.625rem;--sol-font-size-075:0.75rem;--sol-font-size-0875:0.875rem;--sol-font-size-100:1rem;--sol-font-size-125:1.25rem;--sol-font-size-150:1.5rem;--sol-font-size-200:2rem;--sol-font-size-250:2.5rem;--sol-line-height-075:0.75rem;--sol-line-height-100:1rem;--sol-line-height-125:1.25rem;--sol-line-height-150:1.5rem;--sol-line-height-200:2rem;--sol-line-height-250:2.5rem;--sol-line-height-300:3rem;--sol-letter-spacing-none:0em;--sol-letter-spacing-normal:0.005em;--sol-letter-spacing-button:0.02em;--sol-font-weight-4:400;--sol-font-weight-6:600;--sol-font-weight-7:700;--sol-font-style-normal:normal;--sol-font-style-italic:italic;--sol-text-decoration-none:none;--sol-text-decoration-underline:underline;--sol-text-decoration-strikethrough:line-through;--sol-text-transform-none:none;--sol-text-transform-lowercase:lowercase;--sol-text-transform-uppercase:uppercase;--sol-text-heading-l-font-size:var(--sol-font-size-250);--sol-text-heading-l-line-height:var(--sol-line-height-300);--sol-text-heading-l-font-offset:var(--sol-font-offset-primary);--sol-text-heading-l:var(--sol-font-weight-6) var(--sol-text-heading-l-font-size) /var(--sol-text-heading-l-line-height) var(--sol-font-family-primary);--sol-text-heading-m-font-size:var(--sol-font-size-200);--sol-text-heading-m-line-height:var(--sol-line-height-250);--sol-text-heading-m-font-offset:var(--sol-font-offset-primary);--sol-text-heading-m:var(--sol-font-weight-6) var(--sol-text-heading-m-font-size) /var(--sol-text-heading-m-line-height) var(--sol-font-family-primary);--sol-text-heading-s-font-size:var(--sol-font-size-150);--sol-text-heading-s-line-height:var(--sol-line-height-200);--sol-text-heading-s-font-offset:var(--sol-font-offset-primary);--sol-text-heading-s:var(--sol-font-weight-6) var(--sol-text-heading-s-font-size) /var(--sol-text-heading-s-line-height) var(--sol-font-family-primary);--sol-text-heading-xs-font-size:var(--sol-font-size-125);--sol-text-heading-xs-line-height:var(--sol-line-height-150);--sol-text-heading-xs-font-offset:var(--sol-font-offset-primary);--sol-text-heading-xs:var(--sol-font-weight-6) var(--sol-text-heading-xs-font-size) /var(--sol-text-heading-xs-line-height) var(--sol-font-family-primary);--sol-text-emphasis-l-font-size:var(--sol-font-size-150);--sol-text-emphasis-l-line-height:var(--sol-line-height-200);--sol-text-emphasis-l-font-offset:var(--sol-font-offset-primary);--sol-text-emphasis-l:var(--sol-font-weight-6) var(--sol-text-emphasis-l-font-size) /var(--sol-text-emphasis-l-line-height) var(--sol-font-family-primary);--sol-text-emphasis-m-font-size:var(--sol-font-size-125);--sol-text-emphasis-m-line-height:var(--sol-line-height-150);--sol-text-emphasis-m-font-offset:var(--sol-font-offset-primary);--sol-text-emphasis-m:var(--sol-font-weight-6) var(--sol-text-emphasis-m-font-size) /var(--sol-text-emphasis-m-line-height) var(--sol-font-family-primary);--sol-text-emphasis-s-font-size:var(--sol-font-size-100);--sol-text-emphasis-s-line-height:var(--sol-line-height-150);--sol-text-emphasis-s-font-offset:var(--sol-font-offset-primary);--sol-text-emphasis-s:var(--sol-font-weight-6) var(--sol-text-emphasis-s-font-size) /var(--sol-text-emphasis-s-line-height) var(--sol-font-family-primary);--sol-text-body-l-font-size:var(--sol-font-size-125);--sol-text-body-l-line-height:var(--sol-line-height-150);--sol-text-body-l-font-offset:var(--sol-font-offset-secondary);--sol-text-body-l:var(--sol-font-weight-4) var(--sol-text-body-l-font-size) /var(--sol-text-body-l-line-height) var(--sol-font-family-secondary);--sol-text-body-l-bold-font-size:var(--sol-font-size-125);--sol-text-body-l-bold-line-height:var(--sol-line-height-150);--sol-text-body-l-bold-font-offset:var(--sol-font-offset-secondary);--sol-text-body-l-bold:var(--sol-font-weight-7) var(--sol-text-body-l-bold-font-size) /var(--sol-text-body-l-bold-line-height) var(--sol-font-family-secondary);--sol-text-body-m-font-size:var(--sol-font-size-100);--sol-text-body-m-line-height:var(--sol-line-height-150);--sol-text-body-m-font-offset:var(--sol-font-offset-secondary);--sol-text-body-m:var(--sol-font-weight-4) var(--sol-text-body-m-font-size) /var(--sol-text-body-m-line-height) var(--sol-font-family-secondary);--sol-text-body-m-bold-font-size:var(--sol-font-size-100);--sol-text-body-m-bold-line-height:var(--sol-line-height-150);--sol-text-body-m-bold-font-offset:var(--sol-font-offset-secondary);--sol-text-body-m-bold:var(--sol-font-weight-7) var(--sol-text-body-m-bold-font-size) /var(--sol-text-body-m-bold-line-height) var(--sol-font-family-secondary);--sol-text-body-s-font-size:var(--sol-font-size-0875);--sol-text-body-s-line-height:var(--sol-line-height-125);--sol-text-body-s-font-offset:var(--sol-font-offset-secondary);--sol-text-body-s:var(--sol-font-weight-4) var(--sol-text-body-s-font-size) /var(--sol-text-body-s-line-height) var(--sol-font-family-secondary);--sol-text-body-s-bold-font-size:var(--sol-font-size-0875);--sol-text-body-s-bold-line-height:var(--sol-line-height-125);--sol-text-body-s-bold-font-offset:var(--sol-font-offset-secondary);--sol-text-body-s-bold:var(--sol-font-weight-7) var(--sol-text-body-s-bold-font-size) /var(--sol-text-body-s-bold-line-height) var(--sol-font-family-secondary);--sol-text-body-xs-font-size:var(--sol-font-size-075);--sol-text-body-xs-line-height:var(--sol-line-height-100);--sol-text-body-xs-font-offset:var(--sol-font-offset-secondary);--sol-text-body-xs:var(--sol-font-weight-4) var(--sol-text-body-xs-font-size) /var(--sol-text-body-xs-line-height) var(--sol-font-family-secondary);--sol-text-body-xs-bold-font-size:var(--sol-font-size-075);--sol-text-body-xs-bold-line-height:var(--sol-line-height-100);--sol-text-body-xs-bold-font-offset:var(--sol-font-offset-secondary);--sol-text-body-xs-bold:var(--sol-font-weight-7) var(--sol-text-body-xs-bold-font-size) /var(--sol-text-body-xs-bold-line-height) var(--sol-font-family-secondary);--sol-text-body-xxs-font-size:var(--sol-font-size-0625);--sol-text-body-xxs-line-height:var(--sol-line-height-100);--sol-text-body-xxs-font-offset:var(--sol-font-offset-secondary);--sol-text-body-xxs:var(--sol-font-weight-4) var(--sol-text-body-xxs-font-size) /var(--sol-text-body-xxs-line-height) var(--sol-font-family-secondary);--sol-text-body-xxs-bold-font-size:var(--sol-font-size-0625);--sol-text-body-xxs-bold-line-height:var(--sol-line-height-100);--sol-text-body-xxs-bold-font-offset:var(--sol-font-offset-secondary);--sol-text-body-xxs-bold:var(--sol-font-weight-7) var(--sol-text-body-xxs-bold-font-size) /var(--sol-text-body-xxs-bold-line-height) var(--sol-font-family-secondary);--sol-text-button-m-font-size:var(--sol-font-size-100);--sol-text-button-m-line-height:var(--sol-line-height-150);--sol-text-button-m-font-offset:var(--sol-font-offset-primary);--sol-text-button-m:var(--sol-font-weight-6) var(--sol-text-button-m-font-size) /var(--sol-text-button-m-line-height) var(--sol-font-family-primary);--sol-text-button-s-font-size:var(--sol-font-size-0875);--sol-text-button-s-line-height:var(--sol-line-height-125);--sol-text-button-s-font-offset:var(--sol-font-offset-primary);--sol-text-button-s:var(--sol-font-weight-6) var(--sol-text-button-s-font-size) /var(--sol-text-button-s-line-height) var(--sol-font-family-primary);--sol-text-label-m-font-size:var(--sol-font-size-100);--sol-text-label-m-line-height:var(--sol-line-height-150);--sol-text-label-m-font-offset:var(--sol-font-offset-secondary);--sol-text-label-m:var(--sol-font-weight-4) var(--sol-text-label-m-font-size) /var(--sol-text-label-m-line-height) var(--sol-font-family-secondary);--sol-text-label-s-font-size:var(--sol-font-size-075);--sol-text-label-s-line-height:var(--sol-line-height-100);--sol-text-label-s-font-offset:var(--sol-font-offset-secondary);--sol-text-label-s:var(--sol-font-weight-4) var(--sol-text-label-s-font-size) /var(--sol-text-label-s-line-height) var(--sol-font-family-secondary);--sol-text-label-xs-font-size:var(--sol-font-size-0625);--sol-text-label-xs-line-height:var(--sol-line-height-075);--sol-text-label-xs-font-offset:var(--sol-font-offset-secondary);--sol-text-label-xs:var(--sol-font-weight-4) var(--sol-text-label-xs-font-size) /var(--sol-text-label-xs-line-height) var(--sol-font-family-secondary);--sol-motion-0:0s;--sol-motion-150:150ms;--sol-motion-200:200ms;--sol-motion-250:250ms;--sol-motion-300:300ms;--sol-motion-350:350ms;--sol-motion-500:500ms;--sol-motion-1000:1000ms;--sol-motion-1500:1500ms;--sol-motion-4000:4000ms;--sol-motion-linear:cubic-bezier(0,0,1,1);--sol-motion-ease:cubic-bezier(0.25,0.1,0.25,1);--sol-motion-ease-in:cubic-bezier(0.42,0,1,1);--sol-motion-ease-out:cubic-bezier(.39,.01,.2,.98);--sol-motion-ease-in-out:cubic-bezier(.31,.01,.61,.99);--sol-motion-anim-wipe-duration:var(--sol-motion-1500);--sol-motion-anim-wipe-easing:cubic-bezier(.93,0,.5,.96);--sol-motion-angle:45deg;--sol-motion-spin:sol-motion-spin var(--sol-motion-500) var(--sol-motion-linear) infinite}@keyframes sol-motion-fade-in{0%{opacity:0;pointer-events:none;user-select:none}to{opacity:1;pointer-events:auto;transform:translate(0);user-select:auto}}@keyframes sol-motion-fade-in-swipe-up{0%{opacity:0;transform:translateY(var(--sol-size-050))}to{opacity:1;transform:translateY(0)}}@keyframes sol-motion-fade-out{to{opacity:0}}@keyframes sol-motion-fade-out-swipe{to{opacity:0;transform:translateY(var(--sol-size-050))}}@keyframes sol-motion-spin{to{transform:rotate(1turn)}}:root,[data-sol-theme]{--sol-default-background:var(--sol-color-background);--sol-default-foreground:var(--sol-color-foreground);--sol-default-font-family:var(--sol-font-family-secondary);--sol-cursor-interactive:pointer;--sol-cursor-link:pointer;--sol-cursor-disabled:default;--sol-cursor-text:text;--sol-focus-width:2px;--sol-focus-offset:1px;--sol-focus-color:var(--sol-color-focused);--sol-scrollbar-track:var(--sol-color-surface-1);--sol-scrollbar-track-hovered:var(--sol-color-surface-1);--sol-scrollbar-track-pressed:var(--sol-color-surface-1);--sol-scrollbar-thumb:var(--sol-color-surface-3);--sol-scrollbar-thumb-hovered:var(--sol-color-surface-3);--sol-scrollbar-thumb-pressed:var(--sol-color-surface-3);--sol-scrollbar-width:var(--sol-size-100);--sol-scrollbar-border:var(--sol-size-025);--sol-scrollbar-radius:var(--sol-radius-rounded);--sol-z-actions:70;--sol-z-tutorial:60;--sol-z-tooltip:50;--sol-z-toasts:40;--sol-z-menu:30;--sol-z-popover:20;--sol-z-dialog:10;--sol-shadow-0:none;--sol-shadow-050:0 0 var(--sol-size-050) rgb(var(--sol-color-neutral-1-rgb)/0.4);--sol-shadow-100:0 0 var(--sol-size-100) rgb(var(--sol-color-neutral-1-rgb)/0.4);--sol-shadow-150:0 0 var(--sol-size-150) rgb(var(--sol-color-neutral-1-rgb)/0.4);--sol-size-0:0rem;--sol-size-0125:0.125rem;--sol-size-025:0.25rem;--sol-size-050:0.5rem;--sol-size-075:0.75rem;--sol-size-100:1rem;--sol-size-125:1.25rem;--sol-size-150:1.5rem;--sol-size-200:2rem;--sol-size-250:2.5rem;--sol-size-300:3rem;--sol-size-350:3.5rem;--sol-size-400:4rem;--sol-size-450:4.5rem;--sol-size-500:5rem;--sol-size-550:5.5rem;--sol-size-600:6rem;--sol-size-full:100%;--sol-size-three-quarters:75%;--sol-size-half:50%;--sol-size-quarter:25%;--sol-size-third:33.3333333333%;--sol-size-two-thirds:66.6666666667%;accent-color:var(--sol-color-accent-1);color-scheme:dark}}@layer defaults{:root,[data-sol-theme]{color:var(--sol-default-foreground);font-family:var(--sol-default-font-family)}.sol-theme-root[data-sol-theme],:root{background:var(--sol-default-background)}:focus{outline:var(--sol-focus-width) solid var(--sol-focus-color);outline-offset:var(--sol-focus-offset)}:focus:not(:focus-visible){outline:none}:focus-visible{outline:var(--sol-focus-width) solid var(--sol-focus-color);outline-offset:var(--sol-focus-offset)}a{cursor:var(--sol-cursor-link)}[role=button],[role=option],button,label,select,summary{cursor:var(--sol-cursor-interactive)}:disabled,a:not([href]){cursor:var(--sol-cursor-disabled)}@property --_track-color{syntax:"";inherits:true;initial-value:#0000}@property --_thumb-color{syntax:"";inherits:true;initial-value:#0000}@supports not selector(::-webkit-scrollbar){*{scrollbar-color:var(--sol-scrollbar-thumb) var(--sol-scrollbar-track);scrollbar-width:thin}}::-webkit-resizer,::-webkit-scrollbar-corner{background-color:initial}::-webkit-scrollbar,::-webkit-scrollbar-thumb,::-webkit-scrollbar-track,::-webkit-scrollbar-track-piece{background-clip:padding-box;border:var(--sol-scrollbar-border) solid #0000;border-radius:var(--sol-scrollbar-radius);height:var(--sol-scrollbar-width);width:var(--sol-scrollbar-width)}::-webkit-scrollbar-track,::-webkit-scrollbar-track-piece{background-color:var(--_track-color)}::-webkit-scrollbar-track-piece:hover,::-webkit-scrollbar-track:hover{--_track-color:var(--sol-scrollbar-track-hovered)}::-webkit-scrollbar-track-piece:active,::-webkit-scrollbar-track:active{background-color:var(--sol-scrollbar-track-pressed)}::-webkit-scrollbar-thumb{background-color:var(--sol-scrollbar-thumb)}::-webkit-scrollbar-thumb:hover{background-color:var(--sol-scrollbar-thumb-hovered)}::-webkit-scrollbar-thumb:active{background-color:var(--sol-scrollbar-thumb-pressed)}[data-sol-scrollbar-background=true]{--_track-color:var(--sol-scrollbar-track);--_thumb-color:var(--sol-scrollbar-thumb)}[data-sol-scrollbar-hidden=true]{transition:--_thumb-color var(--sol-motion-250)}[data-sol-scrollbar-hidden=true]::-webkit-scrollbar-thumb{background-color:var(--_thumb-color)}[data-sol-scrollbar-hidden=true]:hover{--_thumb-color:var(--sol-scrollbar-thumb-hovered)}:root{--sol-prefers-reduced-motion:reduce}@media (prefers-reduced-motion:no-preference){:root{--sol-prefers-reduced-motion:no-preference}}}@layer utilities{.sol-u-animation-wipe{--_in:wipeIn calc(var(--sol-motion-anim-wipe-duration)/2) var(--sol-motion-anim-wipe-easing) forwards;--_out:wipeOut calc(var(--sol-motion-anim-wipe-duration)/2) var(--sol-motion-anim-wipe-easing) forwards;--_in-rtl:wipeInRtL calc(var(--sol-motion-anim-wipe-duration)/2) var(--sol-motion-anim-wipe-easing) forwards;--_out-rtl:wipeOutRtL calc(var(--sol-motion-anim-wipe-duration)/2) var(--sol-motion-anim-wipe-easing) forwards;--_extra-width:60%;--_angle:25deg;--_background:var(--sol-color-surface-0);--_pos-out-left:translateX(calc(-100% - var(--_extra-width)/2)) skew(calc(var(--_angle)*-1));--_pos-out-mid:translateX(calc(var(--_extra-width)/-2.2)) skew(calc(var(--_angle)*-1));--_pos-out-right:translateX(calc(100% + var(--_extra-width)/2)) skew(calc(var(--_angle)*-1));overflow-x:hidden}.sol-u-animation-wipe:before{background:var(--_background);content:"";filter:brightness(1.1);height:100%;left:0;opacity:1;pointer-events:none;position:absolute;top:0;transform:var(--_pos-out-left);user-select:none;width:calc(100% + var(--_extra-width));will-change:transform;z-index:10}.sol-u-animation-wipe[data-sol-animation-wipe=in]:before{animation:var(--_in)}.sol-u-animation-wipe[data-sol-animation-wipe=out]:before{animation:var(--_out)}.sol-u-animation-wipe[data-sol-animation-wipe=in-rtl]:before{animation:var(--_in-rtl)}.sol-u-animation-wipe[data-sol-animation-wipe=out-rtl]:before{animation:var(--_out-rtl)}@keyframes wipeIn{0%{opacity:1;transform:var(--_pos-out-left)}to{transform:var(--_pos-out-mid)}}@keyframes wipeInRtL{0%{opacity:1;transform:var(--_pos-out-right)}to{transform:var(--_pos-out-mid)}}@keyframes wipeOut{0%{opacity:1;transform:var(--_pos-out-mid)}to{transform:var(--_pos-out-right)}}@keyframes wipeOutRtL{0%{opacity:1;transform:var(--_pos-out-mid)}to{transform:var(--_pos-out-left)}}.sol-u-app-version{color:var(--sol-color-foreground-weak);font:var(--sol-text-body-xs);inset-block-end:var(--sol-size-050);inset-inline-start:var(--sol-size-050);position:fixed;z-index:var(--sol-z-actions)}.sol-u-app-version span{color:var(--sol-color-status-notice);font-weight:var(--sol-font-weight-7)}.sol-u-app-version,.sol-u-app-version span{animation:sol-motion-fade-in-swipe-up var(--sol-motion-350) var(--sol-motion-ease-out) forwards;opacity:0}.sol-u-background-surface-0{background-color:var(--sol-color-surface-0)}.sol-u-color-surface-0{color:var(--sol-color-surface-0)}.sol-u-background-surface-1{background-color:var(--sol-color-surface-1)}.sol-u-color-surface-1{color:var(--sol-color-surface-1)}.sol-u-background-surface-2{background-color:var(--sol-color-surface-2)}.sol-u-color-surface-2{color:var(--sol-color-surface-2)}.sol-u-background-surface-3{background-color:var(--sol-color-surface-3)}.sol-u-color-surface-3{color:var(--sol-color-surface-3)}.sol-u-background-status-informative{background-color:var(--sol-color-status-informative)}.sol-u-color-status-informative{color:var(--sol-color-status-informative)}.sol-u-background-status-informative-fill{background-color:var(--sol-color-status-informative-fill)}.sol-u-color-status-informative-fill{color:var(--sol-color-status-informative-fill)}.sol-u-background-status-informative-fill-contrast{background-color:var(--sol-color-status-informative-fill-contrast)}.sol-u-color-status-informative-fill-contrast{color:var(--sol-color-status-informative-fill-contrast)}.sol-u-background-status-positive{background-color:var(--sol-color-status-positive)}.sol-u-color-status-positive{color:var(--sol-color-status-positive)}.sol-u-background-status-positive-fill{background-color:var(--sol-color-status-positive-fill)}.sol-u-color-status-positive-fill{color:var(--sol-color-status-positive-fill)}.sol-u-background-status-positive-fill-contrast{background-color:var(--sol-color-status-positive-fill-contrast)}.sol-u-color-status-positive-fill-contrast{color:var(--sol-color-status-positive-fill-contrast)}.sol-u-background-status-notice{background-color:var(--sol-color-status-notice)}.sol-u-color-status-notice{color:var(--sol-color-status-notice)}.sol-u-background-status-notice-fill{background-color:var(--sol-color-status-notice-fill)}.sol-u-color-status-notice-fill{color:var(--sol-color-status-notice-fill)}.sol-u-background-status-notice-fill-contrast{background-color:var(--sol-color-status-notice-fill-contrast)}.sol-u-color-status-notice-fill-contrast{color:var(--sol-color-status-notice-fill-contrast)}.sol-u-background-status-negative{background-color:var(--sol-color-status-negative)}.sol-u-color-status-negative{color:var(--sol-color-status-negative)}.sol-u-background-status-negative-fill{background-color:var(--sol-color-status-negative-fill)}.sol-u-color-status-negative-fill{color:var(--sol-color-status-negative-fill)}.sol-u-background-status-negative-fill-contrast{background-color:var(--sol-color-status-negative-fill-contrast)}.sol-u-color-status-negative-fill-contrast{color:var(--sol-color-status-negative-fill-contrast)}.sol-u-background-status-highlight{background-color:var(--sol-color-status-highlight)}.sol-u-color-status-highlight{color:var(--sol-color-status-highlight)}.sol-u-background-status-highlight-fill{background-color:var(--sol-color-status-highlight-fill)}.sol-u-color-status-highlight-fill{color:var(--sol-color-status-highlight-fill)}.sol-u-background-status-highlight-fill-contrast{background-color:var(--sol-color-status-highlight-fill-contrast)}.sol-u-color-status-highlight-fill-contrast{color:var(--sol-color-status-highlight-fill-contrast)}.sol-u-background-status-neutral{background-color:var(--sol-color-status-neutral)}.sol-u-color-status-neutral{color:var(--sol-color-status-neutral)}.sol-u-background-status-neutral-fill{background-color:var(--sol-color-status-neutral-fill)}.sol-u-color-status-neutral-fill{color:var(--sol-color-status-neutral-fill)}.sol-u-background-status-neutral-fill-contrast{background-color:var(--sol-color-status-neutral-fill-contrast)}.sol-u-color-status-neutral-fill-contrast{color:var(--sol-color-status-neutral-fill-contrast)}.sol-u-background-foreground{background-color:var(--sol-color-foreground)}.sol-u-color-foreground{color:var(--sol-color-foreground)}.sol-u-background-foreground-weak{background-color:var(--sol-color-foreground-weak)}.sol-u-color-foreground-weak{color:var(--sol-color-foreground-weak)}.sol-u-background-foreground-weaker{background-color:var(--sol-color-foreground-weaker)}.sol-u-color-foreground-weaker{color:var(--sol-color-foreground-weaker)}.sol-u-background-foreground-highlight{background-color:var(--sol-color-foreground-highlight)}.sol-u-color-foreground-highlight{color:var(--sol-color-foreground-highlight)}.sol-u-display-none{display:none}.sol-u-display-block{display:block}.sol-u-display-inline{display:inline}.sol-u-display-inline-block{display:inline-block}.sol-u-display-flex{display:flex}.sol-u-display-inline-flex{display:inline-flex}.sol-u-display-grid{display:grid}.sol-u-display-inline-grid{display:inline-grid}.sol-u-display-contents{display:contents}.sol-u-disable-selection{cursor:default;user-select:none}.sol-u-disable-selection :is(a,img):not([draggable=true]){-webkit-user-drag:none}.sol-u-enable-selection{cursor:var(--sol-cursor-text);user-select:text}.sol-u-gap-0{gap:var(--sol-size-0)}.sol-u-gap-0125{gap:var(--sol-size-0125)}.sol-u-gap-025{gap:var(--sol-size-025)}.sol-u-gap-050{gap:var(--sol-size-050)}.sol-u-gap-075{gap:var(--sol-size-075)}.sol-u-gap-100{gap:var(--sol-size-100)}.sol-u-gap-125{gap:var(--sol-size-125)}.sol-u-gap-150{gap:var(--sol-size-150)}.sol-u-gap-200{gap:var(--sol-size-200)}.sol-u-gap-250{gap:var(--sol-size-250)}.sol-u-gap-300{gap:var(--sol-size-300)}.sol-u-gap-350{gap:var(--sol-size-350)}.sol-u-gap-400{gap:var(--sol-size-400)}.sol-u-gap-450{gap:var(--sol-size-450)}.sol-u-gap-500{gap:var(--sol-size-500)}.sol-u-gap-550{gap:var(--sol-size-550)}.sol-u-gap-600{gap:var(--sol-size-600)}.sol-u-padding-0{padding:var(--sol-size-0)}.sol-u-padding-0125{padding:var(--sol-size-0125)}.sol-u-padding-025{padding:var(--sol-size-025)}.sol-u-padding-050{padding:var(--sol-size-050)}.sol-u-padding-075{padding:var(--sol-size-075)}.sol-u-padding-100{padding:var(--sol-size-100)}.sol-u-padding-125{padding:var(--sol-size-125)}.sol-u-padding-150{padding:var(--sol-size-150)}.sol-u-padding-200{padding:var(--sol-size-200)}.sol-u-padding-250{padding:var(--sol-size-250)}.sol-u-padding-300{padding:var(--sol-size-300)}.sol-u-padding-350{padding:var(--sol-size-350)}.sol-u-padding-400{padding:var(--sol-size-400)}.sol-u-padding-450{padding:var(--sol-size-450)}.sol-u-padding-500{padding:var(--sol-size-500)}.sol-u-padding-550{padding:var(--sol-size-550)}.sol-u-padding-600{padding:var(--sol-size-600)}.sol-u-padding-b-0{padding-block:var(--sol-size-0)}.sol-u-padding-b-0125{padding-block:var(--sol-size-0125)}.sol-u-padding-b-025{padding-block:var(--sol-size-025)}.sol-u-padding-b-050{padding-block:var(--sol-size-050)}.sol-u-padding-b-075{padding-block:var(--sol-size-075)}.sol-u-padding-b-100{padding-block:var(--sol-size-100)}.sol-u-padding-b-125{padding-block:var(--sol-size-125)}.sol-u-padding-b-150{padding-block:var(--sol-size-150)}.sol-u-padding-b-200{padding-block:var(--sol-size-200)}.sol-u-padding-b-250{padding-block:var(--sol-size-250)}.sol-u-padding-b-300{padding-block:var(--sol-size-300)}.sol-u-padding-b-350{padding-block:var(--sol-size-350)}.sol-u-padding-b-400{padding-block:var(--sol-size-400)}.sol-u-padding-b-450{padding-block:var(--sol-size-450)}.sol-u-padding-b-500{padding-block:var(--sol-size-500)}.sol-u-padding-b-550{padding-block:var(--sol-size-550)}.sol-u-padding-b-600{padding-block:var(--sol-size-600)}.sol-u-padding-bs-0{padding-block-start:var(--sol-size-0)}.sol-u-padding-bs-0125{padding-block-start:var(--sol-size-0125)}.sol-u-padding-bs-025{padding-block-start:var(--sol-size-025)}.sol-u-padding-bs-050{padding-block-start:var(--sol-size-050)}.sol-u-padding-bs-075{padding-block-start:var(--sol-size-075)}.sol-u-padding-bs-100{padding-block-start:var(--sol-size-100)}.sol-u-padding-bs-125{padding-block-start:var(--sol-size-125)}.sol-u-padding-bs-150{padding-block-start:var(--sol-size-150)}.sol-u-padding-bs-200{padding-block-start:var(--sol-size-200)}.sol-u-padding-bs-250{padding-block-start:var(--sol-size-250)}.sol-u-padding-bs-300{padding-block-start:var(--sol-size-300)}.sol-u-padding-bs-350{padding-block-start:var(--sol-size-350)}.sol-u-padding-bs-400{padding-block-start:var(--sol-size-400)}.sol-u-padding-bs-450{padding-block-start:var(--sol-size-450)}.sol-u-padding-bs-500{padding-block-start:var(--sol-size-500)}.sol-u-padding-bs-550{padding-block-start:var(--sol-size-550)}.sol-u-padding-bs-600{padding-block-start:var(--sol-size-600)}.sol-u-padding-be-0{padding-block-end:var(--sol-size-0)}.sol-u-padding-be-0125{padding-block-end:var(--sol-size-0125)}.sol-u-padding-be-025{padding-block-end:var(--sol-size-025)}.sol-u-padding-be-050{padding-block-end:var(--sol-size-050)}.sol-u-padding-be-075{padding-block-end:var(--sol-size-075)}.sol-u-padding-be-100{padding-block-end:var(--sol-size-100)}.sol-u-padding-be-125{padding-block-end:var(--sol-size-125)}.sol-u-padding-be-150{padding-block-end:var(--sol-size-150)}.sol-u-padding-be-200{padding-block-end:var(--sol-size-200)}.sol-u-padding-be-250{padding-block-end:var(--sol-size-250)}.sol-u-padding-be-300{padding-block-end:var(--sol-size-300)}.sol-u-padding-be-350{padding-block-end:var(--sol-size-350)}.sol-u-padding-be-400{padding-block-end:var(--sol-size-400)}.sol-u-padding-be-450{padding-block-end:var(--sol-size-450)}.sol-u-padding-be-500{padding-block-end:var(--sol-size-500)}.sol-u-padding-be-550{padding-block-end:var(--sol-size-550)}.sol-u-padding-be-600{padding-block-end:var(--sol-size-600)}.sol-u-padding-i-0{padding-inline:var(--sol-size-0)}.sol-u-padding-i-0125{padding-inline:var(--sol-size-0125)}.sol-u-padding-i-025{padding-inline:var(--sol-size-025)}.sol-u-padding-i-050{padding-inline:var(--sol-size-050)}.sol-u-padding-i-075{padding-inline:var(--sol-size-075)}.sol-u-padding-i-100{padding-inline:var(--sol-size-100)}.sol-u-padding-i-125{padding-inline:var(--sol-size-125)}.sol-u-padding-i-150{padding-inline:var(--sol-size-150)}.sol-u-padding-i-200{padding-inline:var(--sol-size-200)}.sol-u-padding-i-250{padding-inline:var(--sol-size-250)}.sol-u-padding-i-300{padding-inline:var(--sol-size-300)}.sol-u-padding-i-350{padding-inline:var(--sol-size-350)}.sol-u-padding-i-400{padding-inline:var(--sol-size-400)}.sol-u-padding-i-450{padding-inline:var(--sol-size-450)}.sol-u-padding-i-500{padding-inline:var(--sol-size-500)}.sol-u-padding-i-550{padding-inline:var(--sol-size-550)}.sol-u-padding-i-600{padding-inline:var(--sol-size-600)}.sol-u-padding-is-0{padding-inline-start:var(--sol-size-0)}.sol-u-padding-is-0125{padding-inline-start:var(--sol-size-0125)}.sol-u-padding-is-025{padding-inline-start:var(--sol-size-025)}.sol-u-padding-is-050{padding-inline-start:var(--sol-size-050)}.sol-u-padding-is-075{padding-inline-start:var(--sol-size-075)}.sol-u-padding-is-100{padding-inline-start:var(--sol-size-100)}.sol-u-padding-is-125{padding-inline-start:var(--sol-size-125)}.sol-u-padding-is-150{padding-inline-start:var(--sol-size-150)}.sol-u-padding-is-200{padding-inline-start:var(--sol-size-200)}.sol-u-padding-is-250{padding-inline-start:var(--sol-size-250)}.sol-u-padding-is-300{padding-inline-start:var(--sol-size-300)}.sol-u-padding-is-350{padding-inline-start:var(--sol-size-350)}.sol-u-padding-is-400{padding-inline-start:var(--sol-size-400)}.sol-u-padding-is-450{padding-inline-start:var(--sol-size-450)}.sol-u-padding-is-500{padding-inline-start:var(--sol-size-500)}.sol-u-padding-is-550{padding-inline-start:var(--sol-size-550)}.sol-u-padding-is-600{padding-inline-start:var(--sol-size-600)}.sol-u-padding-ie-0{padding-inline-end:var(--sol-size-0)}.sol-u-padding-ie-0125{padding-inline-end:var(--sol-size-0125)}.sol-u-padding-ie-025{padding-inline-end:var(--sol-size-025)}.sol-u-padding-ie-050{padding-inline-end:var(--sol-size-050)}.sol-u-padding-ie-075{padding-inline-end:var(--sol-size-075)}.sol-u-padding-ie-100{padding-inline-end:var(--sol-size-100)}.sol-u-padding-ie-125{padding-inline-end:var(--sol-size-125)}.sol-u-padding-ie-150{padding-inline-end:var(--sol-size-150)}.sol-u-padding-ie-200{padding-inline-end:var(--sol-size-200)}.sol-u-padding-ie-250{padding-inline-end:var(--sol-size-250)}.sol-u-padding-ie-300{padding-inline-end:var(--sol-size-300)}.sol-u-padding-ie-350{padding-inline-end:var(--sol-size-350)}.sol-u-padding-ie-400{padding-inline-end:var(--sol-size-400)}.sol-u-padding-ie-450{padding-inline-end:var(--sol-size-450)}.sol-u-padding-ie-500{padding-inline-end:var(--sol-size-500)}.sol-u-padding-ie-550{padding-inline-end:var(--sol-size-550)}.sol-u-padding-ie-600{padding-inline-end:var(--sol-size-600)}.sol-u-margin-0{margin:var(--sol-size-0)}.sol-u-margin-0125{margin:var(--sol-size-0125)}.sol-u-margin-025{margin:var(--sol-size-025)}.sol-u-margin-050{margin:var(--sol-size-050)}.sol-u-margin-075{margin:var(--sol-size-075)}.sol-u-margin-100{margin:var(--sol-size-100)}.sol-u-margin-125{margin:var(--sol-size-125)}.sol-u-margin-150{margin:var(--sol-size-150)}.sol-u-margin-200{margin:var(--sol-size-200)}.sol-u-margin-250{margin:var(--sol-size-250)}.sol-u-margin-300{margin:var(--sol-size-300)}.sol-u-margin-350{margin:var(--sol-size-350)}.sol-u-margin-400{margin:var(--sol-size-400)}.sol-u-margin-450{margin:var(--sol-size-450)}.sol-u-margin-500{margin:var(--sol-size-500)}.sol-u-margin-550{margin:var(--sol-size-550)}.sol-u-margin-600{margin:var(--sol-size-600)}.sol-u-margin-b-0{margin-block:var(--sol-size-0)}.sol-u-margin-b-0125{margin-block:var(--sol-size-0125)}.sol-u-margin-b-025{margin-block:var(--sol-size-025)}.sol-u-margin-b-050{margin-block:var(--sol-size-050)}.sol-u-margin-b-075{margin-block:var(--sol-size-075)}.sol-u-margin-b-100{margin-block:var(--sol-size-100)}.sol-u-margin-b-125{margin-block:var(--sol-size-125)}.sol-u-margin-b-150{margin-block:var(--sol-size-150)}.sol-u-margin-b-200{margin-block:var(--sol-size-200)}.sol-u-margin-b-250{margin-block:var(--sol-size-250)}.sol-u-margin-b-300{margin-block:var(--sol-size-300)}.sol-u-margin-b-350{margin-block:var(--sol-size-350)}.sol-u-margin-b-400{margin-block:var(--sol-size-400)}.sol-u-margin-b-450{margin-block:var(--sol-size-450)}.sol-u-margin-b-500{margin-block:var(--sol-size-500)}.sol-u-margin-b-550{margin-block:var(--sol-size-550)}.sol-u-margin-b-600{margin-block:var(--sol-size-600)}.sol-u-margin-bs-0{margin-block-start:var(--sol-size-0)}.sol-u-margin-bs-0125{margin-block-start:var(--sol-size-0125)}.sol-u-margin-bs-025{margin-block-start:var(--sol-size-025)}.sol-u-margin-bs-050{margin-block-start:var(--sol-size-050)}.sol-u-margin-bs-075{margin-block-start:var(--sol-size-075)}.sol-u-margin-bs-100{margin-block-start:var(--sol-size-100)}.sol-u-margin-bs-125{margin-block-start:var(--sol-size-125)}.sol-u-margin-bs-150{margin-block-start:var(--sol-size-150)}.sol-u-margin-bs-200{margin-block-start:var(--sol-size-200)}.sol-u-margin-bs-250{margin-block-start:var(--sol-size-250)}.sol-u-margin-bs-300{margin-block-start:var(--sol-size-300)}.sol-u-margin-bs-350{margin-block-start:var(--sol-size-350)}.sol-u-margin-bs-400{margin-block-start:var(--sol-size-400)}.sol-u-margin-bs-450{margin-block-start:var(--sol-size-450)}.sol-u-margin-bs-500{margin-block-start:var(--sol-size-500)}.sol-u-margin-bs-550{margin-block-start:var(--sol-size-550)}.sol-u-margin-bs-600{margin-block-start:var(--sol-size-600)}.sol-u-margin-be-0{margin-block-end:var(--sol-size-0)}.sol-u-margin-be-0125{margin-block-end:var(--sol-size-0125)}.sol-u-margin-be-025{margin-block-end:var(--sol-size-025)}.sol-u-margin-be-050{margin-block-end:var(--sol-size-050)}.sol-u-margin-be-075{margin-block-end:var(--sol-size-075)}.sol-u-margin-be-100{margin-block-end:var(--sol-size-100)}.sol-u-margin-be-125{margin-block-end:var(--sol-size-125)}.sol-u-margin-be-150{margin-block-end:var(--sol-size-150)}.sol-u-margin-be-200{margin-block-end:var(--sol-size-200)}.sol-u-margin-be-250{margin-block-end:var(--sol-size-250)}.sol-u-margin-be-300{margin-block-end:var(--sol-size-300)}.sol-u-margin-be-350{margin-block-end:var(--sol-size-350)}.sol-u-margin-be-400{margin-block-end:var(--sol-size-400)}.sol-u-margin-be-450{margin-block-end:var(--sol-size-450)}.sol-u-margin-be-500{margin-block-end:var(--sol-size-500)}.sol-u-margin-be-550{margin-block-end:var(--sol-size-550)}.sol-u-margin-be-600{margin-block-end:var(--sol-size-600)}.sol-u-margin-i-0{margin-inline:var(--sol-size-0)}.sol-u-margin-i-0125{margin-inline:var(--sol-size-0125)}.sol-u-margin-i-025{margin-inline:var(--sol-size-025)}.sol-u-margin-i-050{margin-inline:var(--sol-size-050)}.sol-u-margin-i-075{margin-inline:var(--sol-size-075)}.sol-u-margin-i-100{margin-inline:var(--sol-size-100)}.sol-u-margin-i-125{margin-inline:var(--sol-size-125)}.sol-u-margin-i-150{margin-inline:var(--sol-size-150)}.sol-u-margin-i-200{margin-inline:var(--sol-size-200)}.sol-u-margin-i-250{margin-inline:var(--sol-size-250)}.sol-u-margin-i-300{margin-inline:var(--sol-size-300)}.sol-u-margin-i-350{margin-inline:var(--sol-size-350)}.sol-u-margin-i-400{margin-inline:var(--sol-size-400)}.sol-u-margin-i-450{margin-inline:var(--sol-size-450)}.sol-u-margin-i-500{margin-inline:var(--sol-size-500)}.sol-u-margin-i-550{margin-inline:var(--sol-size-550)}.sol-u-margin-i-600{margin-inline:var(--sol-size-600)}.sol-u-margin-is-0{margin-inline-start:var(--sol-size-0)}.sol-u-margin-is-0125{margin-inline-start:var(--sol-size-0125)}.sol-u-margin-is-025{margin-inline-start:var(--sol-size-025)}.sol-u-margin-is-050{margin-inline-start:var(--sol-size-050)}.sol-u-margin-is-075{margin-inline-start:var(--sol-size-075)}.sol-u-margin-is-100{margin-inline-start:var(--sol-size-100)}.sol-u-margin-is-125{margin-inline-start:var(--sol-size-125)}.sol-u-margin-is-150{margin-inline-start:var(--sol-size-150)}.sol-u-margin-is-200{margin-inline-start:var(--sol-size-200)}.sol-u-margin-is-250{margin-inline-start:var(--sol-size-250)}.sol-u-margin-is-300{margin-inline-start:var(--sol-size-300)}.sol-u-margin-is-350{margin-inline-start:var(--sol-size-350)}.sol-u-margin-is-400{margin-inline-start:var(--sol-size-400)}.sol-u-margin-is-450{margin-inline-start:var(--sol-size-450)}.sol-u-margin-is-500{margin-inline-start:var(--sol-size-500)}.sol-u-margin-is-550{margin-inline-start:var(--sol-size-550)}.sol-u-margin-is-600{margin-inline-start:var(--sol-size-600)}.sol-u-margin-ie-0{margin-inline-end:var(--sol-size-0)}.sol-u-margin-ie-0125{margin-inline-end:var(--sol-size-0125)}.sol-u-margin-ie-025{margin-inline-end:var(--sol-size-025)}.sol-u-margin-ie-050{margin-inline-end:var(--sol-size-050)}.sol-u-margin-ie-075{margin-inline-end:var(--sol-size-075)}.sol-u-margin-ie-100{margin-inline-end:var(--sol-size-100)}.sol-u-margin-ie-125{margin-inline-end:var(--sol-size-125)}.sol-u-margin-ie-150{margin-inline-end:var(--sol-size-150)}.sol-u-margin-ie-200{margin-inline-end:var(--sol-size-200)}.sol-u-margin-ie-250{margin-inline-end:var(--sol-size-250)}.sol-u-margin-ie-300{margin-inline-end:var(--sol-size-300)}.sol-u-margin-ie-350{margin-inline-end:var(--sol-size-350)}.sol-u-margin-ie-400{margin-inline-end:var(--sol-size-400)}.sol-u-margin-ie-450{margin-inline-end:var(--sol-size-450)}.sol-u-margin-ie-500{margin-inline-end:var(--sol-size-500)}.sol-u-margin-ie-550{margin-inline-end:var(--sol-size-550)}.sol-u-margin-ie-600{margin-inline-end:var(--sol-size-600)}.sol-u-margin-auto{margin:auto}.sol-u-margin-b-auto{margin-block:auto}.sol-u-margin-bs-auto{margin-block-start:auto}.sol-u-margin-be-auto{margin-block-end:auto}.sol-u-margin-i-auto{margin-inline:auto}.sol-u-margin-is-auto{margin-inline-start:auto}.sol-u-margin-ie-auto{margin-inline-end:auto}.sol-u-text-align-start{text-align:start}.sol-u-text-align-center{text-align:center}.sol-u-text-align-end{text-align:end}.sol-u-text-decoration-none{text-decoration:var(--sol-text-decoration-none)}.sol-u-text-decoration-underline{text-decoration:var(--sol-text-decoration-underline)}.sol-u-text-decoration-strikethrough{text-decoration:var(--sol-text-decoration-strikethrough)}.sol-u-font-style-normal{font-style:var(--sol-font-style-normal)}.sol-u-font-style-italic{font-style:var(--sol-font-style-italic)}.sol-u-text-transform-none{text-transform:var(--sol-text-transform-none)}.sol-u-text-transform-lowercase{text-transform:var(--sol-text-transform-lowercase)}.sol-u-text-transform-uppercase{text-transform:var(--sol-text-transform-uppercase)}.sol-u-text-truncate{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@supports (display:-webkit-box){.sol-u-text-truncate[style*="--sol-u-text-truncate"],[style*="--sol-u-text-truncate"] .sol-u-text-truncate{-webkit-box-orient:vertical;-webkit-line-clamp:var(--sol-u-text-truncate,1);display:-webkit-box;white-space:normal}}.sol-u-transition-floating{--_offset:var(--sol-u-transition-floating-offset,var(--sol-size-050));--_in:var(--sol-u-transition-floating-in,var(--sol-motion-250) var(--sol-motion-ease-out));--_out:var(--sol-u-transition-floating-out,var(--sol-motion-250) var(--sol-motion-ease))}.sol-u-transition-floating[data-sol-status=open]{transition:var(--_in);transition-property:opacity,transform}.sol-u-transition-floating[data-sol-status=close]{transition:var(--_out);transition-property:opacity,transform}.sol-u-transition-floating[data-sol-status=close],.sol-u-transition-floating[data-sol-status=initial]{opacity:0}@container style(--sol-prefers-reduced-motion: no-preference){.sol-u-transition-floating[data-sol-status=close][data-sol-placement^=top],.sol-u-transition-floating[data-sol-status=initial][data-sol-placement^=top]{transform:translateY(var(--_offset))}.sol-u-transition-floating[data-sol-status=close][data-sol-placement^=bottom],.sol-u-transition-floating[data-sol-status=initial][data-sol-placement^=bottom]{transform:translateY(calc(var(--_offset)*-1))}.sol-u-transition-floating[data-sol-status=close][data-sol-placement^=left],.sol-u-transition-floating[data-sol-status=initial][data-sol-placement^=left]{transform:translateX(var(--_offset))}.sol-u-transition-floating[data-sol-status=close][data-sol-placement^=right],.sol-u-transition-floating[data-sol-status=initial][data-sol-placement^=right]{transform:translateX(calc(var(--_offset)*-1))}}.sol-u-hide-visually:not(:focus,:active,:focus-within,.sol-u-show-visually){block-size:1px;border:0;clip-path:inset(50%);inline-size:1px;overflow:hidden;position:absolute;white-space:nowrap}}}'), "undefined" != typeof globalThis ? globalThis : "undefined" != typeof window ? window : "undefined" != typeof n.g ? n.g : "undefined" != typeof self && self; + var no = { exports: {} }, - uo = {}; - co.exports = function() { - if (to) return uo; - to = 1; + ro = {}; + no.exports = function() { + if (up) return ro; + up = 1; var e = Symbol.for("react.element"), t = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, @@ -17156,13 +17349,18 @@ _owner: r.current } } - return uo.Fragment = t, uo.jsx = a, uo.jsxs = a, uo + return ro.Fragment = t, ro.jsx = a, ro.jsxs = a, ro }(); - var po = co.exports; + var io = no.exports; eo('@layer sol.components{.sol-c-accordion{--_radius:var(--sol-radius-8);--_duration:var(--sol-motion-350)}.sol-c-accordion__actions{align-self:center;display:flex;gap:var(--sol-size-050);justify-content:flex-end;padding:var(--sol-size-050)}.sol-c-accordion__items{border-radius:var(--_radius);overflow:hidden}.sol-c-accordion__item{background:var(--sol-color-surface-1);color:var(--sol-color-foreground)}.sol-c-accordion__header{--_background:var(--sol-color-surface-2);--sol-focus-offset:calc(var(--sol-focus-width)*-1);align-items:center;background:#0000 none;cursor:var(--sol-cursor-interactive);display:flex;gap:var(--sol-size-100);inline-size:100%;padding-block:var(--sol-size-100);padding-inline:var(--sol-size-150);position:relative;text-align:start;transition:border-radius var(--sol-motion-250) var(--sol-motion-ease-in);z-index:1}.sol-c-accordion__header:after{background-color:var(--_background);content:"";display:block;inset:0;position:absolute;transition:background-color var(--sol-motion-250) var(--sol-motion-ease-in);z-index:-1}.sol-c-accordion__item:first-child .sol-c-accordion__header{border-start-end-radius:var(--_radius);border-start-start-radius:var(--_radius)}.sol-c-accordion__item:last-child .sol-c-accordion__header[aria-expanded=false]{border-end-end-radius:var(--_radius);border-end-start-radius:var(--_radius)}.sol-c-accordion__item:not(:first-child) .sol-c-accordion__header:after{box-shadow:inset 0 var(--sol-border-1) 0 0 var(--sol-color-surface-3)}.sol-c-accordion__header:hover{--_background:var(--sol-color-surface-2-hovered)}.sol-c-accordion__header:active{--_background:var(--sol-color-surface-2-pressed)}.sol-c-accordion__icon{margin-inline-start:auto;transition:opacity var(--sol-motion-250) var(--sol-motion-ease-in)}.sol-c-accordion__icon--plus{inset-block:0;inset-inline-end:var(--sol-size-150);margin-block:auto;position:absolute}.sol-c-accordion__header[aria-expanded=false] .sol-c-accordion__icon--minus,.sol-c-accordion__header[aria-expanded=true] .sol-c-accordion__icon--plus{opacity:0}@container style(--sol-prefers-reduced-motion: no-preference){.sol-c-accordion__content{display:grid;grid-template-rows:1fr;overflow:hidden;transition:grid-template-rows var(--_duration) var(--sol-motion-ease-out)}.sol-c-accordion__content[hidden]{display:grid;grid-template-rows:0fr}}.sol-c-accordion__wrapper{min-height:0;padding-inline:var(--sol-size-250);transition:visibility var(--_duration)}.sol-c-accordion__wrapper:after,.sol-c-accordion__wrapper:before{block-size:var(--sol-size-250);content:"";display:block}.sol-c-accordion__content[hidden] .sol-c-accordion__wrapper{visibility:hidden}}'); - let ho = (0, Ee.createContext)(null); + let ao = (0, Ee.createContext)(null), + oo = () => { + let e = (0, Ee.useContext)(ao); + if (!e) throw Error("Accordion components must be wrapped in "); + return e + }; eo('@layer sol.components{.sol-c-button{--_color-default:var(--sol-color-interactive);--_color-hovered:var(--sol-color-interactive-hovered);--_color-pressed:var(--sol-color-interactive-pressed);--_color-selected:var(--sol-color-interactive-selected);--_color-contrast:var(--sol-color-interactive-contrast);--_background:var(--_color-default);--_background-hovered:var(--_color-hovered);--_background-pressed:var(--_color-pressed);--_background-selected:var(--_color-selected);--_foreground:var(--_color-contrast);--_foreground-hovered:var(--_foreground);--_foreground-pressed:var(--_foreground);--_foreground-selected:var(--_foreground);--_size:var(--sol-c-button-size,var(--sol-size-250));--_padding:var(--sol-c-button-padding,var(--sol-size-050) var(--sol-size-075));--_gap:var(--sol-c-button-gap,var(--sol-size-050));--_duration:var(--sol-motion-250);--_duration-enter:var(--sol-motion-250);--_duration-leave:var(--sol-motion-150);--_easing-enter:var(--sol-motion-ease-in);--_easing-leave:var(--sol-motion-ease-out);align-items:center;border-radius:var(--sol-radius-4);color:var(--_foreground);cursor:var(--sol-cursor-interactive);display:inline-flex;gap:var(--_gap);justify-content:center;min-height:var(--_size);min-width:var(--_size);overflow:hidden;padding:var(--_padding);position:relative;text-align:center;transition-duration:var(--_duration);transition-property:background-color,color,opacity;user-select:none}.sol-c-button,.sol-c-button:before{background-color:var(--_background)}.sol-c-button:before{content:"";display:block;inset:0;opacity:0;position:absolute;transition-duration:var(--_duration-leave);transition-property:background-color,opacity;transition-timing-function:var(--_easing-leave);z-index:1}@container style(--sol-prefers-reduced-motion: no-preference){.sol-c-button:before{transform:scale(2) skewX(-45deg) translateX(-100%);transition-delay:0s,0s,var(--_duration-leave);transition-duration:var(--_duration-leave),var(--_duration-leave),0s;transition-property:background-color,opacity,transform}.sol-c-button:active:before,.sol-c-button:hover:before,.sol-c-button[aria-expanded=true]:before,.sol-c-button[aria-pressed=true]:before,[data-sol-button-group]:active:not(:has(.sol-c-button:active)) .sol-c-button--controlled:before,[data-sol-button-group]:hover:not(:has(.sol-c-button:hover)) .sol-c-button--controlled:before{transform:scale(2) skewX(-45deg) translateX(0)}}.sol-c-button:hover:before,.sol-c-button[aria-expanded=true]:before,.sol-c-button[aria-pressed=true]:before,[data-sol-button-group]:hover:not(:has(.sol-c-button:hover)) .sol-c-button--controlled:before{opacity:1;transition-duration:var(--_duration-enter);transition-timing-function:var(--_easing-enter)}@container style(--sol-prefers-reduced-motion: no-preference){.sol-c-button:hover:before,.sol-c-button[aria-expanded=true]:before,.sol-c-button[aria-pressed=true]:before,[data-sol-button-group]:hover:not(:has(.sol-c-button:hover)) .sol-c-button--controlled:before{transition-delay:0s;transition-duration:var(--_duration-enter),0s,var(--_duration-enter)}}.sol-c-button[aria-expanded=true],.sol-c-button[aria-pressed=true]{color:var(--_foreground-selected)}.sol-c-button[aria-expanded=true]:before,.sol-c-button[aria-pressed=true]:before{background-color:var(--_background-selected)}.sol-c-button:hover,[data-sol-button-group]:hover:not(:has(.sol-c-button:hover)) .sol-c-button--controlled{color:var(--_foreground-hovered)}.sol-c-button:hover:before,[data-sol-button-group]:hover:not(:has(.sol-c-button:hover)) .sol-c-button--controlled:before{background-color:var(--_background-hovered)}.sol-c-button:active,[data-sol-button-group]:active:not(:has(.sol-c-button:active)) .sol-c-button--controlled{color:var(--_foreground-pressed)}.sol-c-button:active:before,[data-sol-button-group]:active:not(:has(.sol-c-button:active)) .sol-c-button--controlled:before{background-color:var(--_background-pressed)}.sol-c-button:disabled,.sol-c-button[aria-disabled=true]{opacity:.4;pointer-events:none}.sol-c-button--align-start{justify-content:flex-start;text-align:start}.sol-c-button--align-end{justify-content:flex-end;text-align:end}.sol-c-button--full-width{display:flex;inline-size:100%}.sol-c-button--negative{--_color-default:var(--sol-color-interactive-negative);--_color-hovered:var(--sol-color-interactive-negative-hovered);--_color-pressed:var(--sol-color-interactive-negative-pressed);--_color-selected:var(--sol-color-interactive-negative-selected)}.sol-c-button--notice{--_color-default:var(--sol-color-interactive-notice);--_color-hovered:var(--sol-color-interactive-notice-hovered);--_color-pressed:var(--sol-color-interactive-notice-pressed);--_color-selected:var(--sol-color-interactive-notice-selected)}.sol-c-button--positive{--_color-default:var(--sol-color-interactive-positive);--_color-hovered:var(--sol-color-interactive-positive-hovered);--_color-pressed:var(--sol-color-interactive-positive-pressed);--_color-selected:var(--sol-color-interactive-positive-selected)}.sol-c-button--monochrome,.sol-c-button--plain{--_background:var(--sol-color-interactive-opacity);--_background-hovered:var(--sol-color-interactive-opacity-hovered);--_background-pressed:var(--sol-color-interactive-opacity-pressed);--_background-selected:var(--sol-color-interactive-opacity-selected);background:#0000}.sol-c-button--monochrome:before,.sol-c-button--plain:before{background-color:var(--_background)}.sol-c-button--monochrome.sol-c-button:before,.sol-c-button--plain.sol-c-button:before{opacity:1;transform:none;transition:background-color var(--_duration)}.sol-c-button--monochrome{--_foreground:var(--sol-color-interactive-neutral);--_foreground-hovered:var(--sol-color-interactive-neutral-hovered);--_foreground-pressed:var(--sol-color-interactive-neutral-pressed);--_foreground-selected:var(--sol-color-interactive-neutral-selected)}.sol-c-button--plain{--_foreground:var(--_color-default);--_foreground-hovered:var(--_color-hovered);--_foreground-pressed:var(--_color-pressed);--_foreground-selected:var(--_color-selected)}.sol-c-button--small{--_size:var(--sol-c-button-size,var(--sol-size-150));--_padding:var(--sol-c-button-padding,var(--sol-size-0125) var(--sol-size-025));--_gap:var(--sol-c-button-gap,var(--sol-size-025))}.sol-c-button--large{--_size:var(--sol-c-button--size,var(--sol-size-300));--_padding:var(--sol-c-button-padding,var(--sol-size-050) var(--sol-size-100))}.sol-c-button__content{align-items:center;display:flex;gap:var(--_gap);min-inline-size:0}.sol-c-button__content,.sol-c-button__icon{position:relative;z-index:2}.sol-c-button--align-start .sol-c-button__icon--end{margin-inline-start:auto}.sol-c-button--align-end .sol-c-button__icon--start{margin-inline-end:auto}.sol-c-button__loading{align-items:center;display:flex;inset:0;justify-content:center;pointer-events:none;position:absolute;z-index:3}.sol-c-button__content,.sol-c-button__icon{transition:opacity var(--_duration)}.sol-c-button__content[hidden],.sol-c-button__icon[hidden]{display:block;opacity:0}}'); - let fo = e => { + let so = e => { var { title: t, titleId: n @@ -17212,7 +17410,7 @@ d: "M8.75 1.75V7h5.594v.006a.75.75 0 0 1 0 1.488V8.5H8.75v5.875h-.01a.75.75 0 0 1-1.48 0h-.01V8.5h-5.5c.001 0 0 0 0 0h-.094v-.006a.75.75 0 0 1 0-1.488V7H7.25V1.75a.75.75 0 0 1 1.5 0Z" })) }, - mo = e => { + lo = e => { var { title: t, titleId: n @@ -17262,7 +17460,7 @@ d: "M14 4.75a.74.74 0 0 1-.163.466l.006.005-7.007 7.011a.747.747 0 0 1-1.139.01L2.182 8.724l.002-.002A.75.75 0 0 1 3.24 7.665l.012.01a.755.755 0 0 1 .05.051l2.96 2.962 6.418-6.423a.747.747 0 0 1 .087-.087l.017-.017.001.002A.75.75 0 0 1 14 4.75Z" })) }, - go = e => { + co = e => { var { title: t, titleId: n @@ -17316,7 +17514,7 @@ clipRule: "evenodd" })) }, - vo = e => { + uo = e => { var { title: t, titleId: n @@ -17373,7 +17571,7 @@ pathLength: 1 })) }, - yo = e => { + po = e => { var { title: t, titleId: n @@ -17423,7 +17621,7 @@ d: "M12.006 2.8a.742.742 0 0 0 .232-.68.762.762 0 0 0-.884-.608.766.766 0 0 0-.328.14h-.001L4.05 7.403a.745.745 0 0 0-.056 1.147l.01.009a.758.758 0 0 0 .04.033l6.965 5.744c.166.13.385.191.61.152a.745.745 0 0 0 .33-1.335L5.702 8l6.256-5.158a.759.759 0 0 0 .04-.033l.009-.009Z" })) }, - _o = e => { + ho = e => { var { title: t, titleId: n @@ -17473,7 +17671,57 @@ d: "m1.186 2.288.002-.001a.78.78 0 0 1 1.1-1.1l.001-.002.035.035a.772.772 0 0 1 .017.017l5.66 5.66 5.71-5.711.002.002a.78.78 0 0 1 1.1 1.1l.002.001-.035.035a.973.973 0 0 1-.017.017L9.104 8l5.69 5.69h-.002a.78.78 0 1 1-1.155 1.05L8.002 9.103l-5.69 5.69H2.31a.78.78 0 1 1-1.05-1.155L6.898 8 1.186 2.288Z" })) }, - bo = e => { + fo = e => { + var { + title: t, + titleId: n + } = e, r = function(e, t) { + if (null == e) return {}; + var n, r, i = function(e, t) { + if (null == e) return {}; + var n, r, i = {}, + a = Object.keys(e); + for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) >= 0 || (i[n] = e[n]); + return i + }(e, t); + if (Object.getOwnPropertySymbols) { + var a = Object.getOwnPropertySymbols(e); + for (r = 0; r < a.length; r++) n = a[r], !(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n) && (i[n] = e[n]) + } + return i + }(e, ["title", "titleId"]); + return Ee.createElement("svg", function(e) { + for (var t = 1; t < arguments.length; t++) { + var n = null != arguments[t] ? arguments[t] : {}, + r = Object.keys(n); + "function" == typeof Object.getOwnPropertySymbols && (r = r.concat(Object.getOwnPropertySymbols(n).filter((function(e) { + return Object.getOwnPropertyDescriptor(n, e).enumerable + })))), r.forEach((function(t) { + var r; + r = n[t], t in e ? Object.defineProperty(e, t, { + value: r, + enumerable: !0, + configurable: !0, + writable: !0 + }) : e[t] = r + })) + } + return e + }({ + xmlns: "http://www.w3.org/2000/svg", + width: 16, + height: 16, + fill: "currentColor", + viewBox: "0 0 16 16", + focusable: !1, + "aria-labelledby": n + }, r), t ? Ee.createElement("title", { + id: n + }, t) : null, Ee.createElement("path", { + d: "M7 8a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Zm0 5.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Zm0-11a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0ZM12 8a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Zm0 5.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Zm0-11a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Z" + })) + }, + mo = e => { var { title: t, titleId: n @@ -17527,7 +17775,7 @@ d: "M8.75 11a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0Zm-1.5-6a.75.75 0 0 1 1.5 0v3.75a.75.75 0 0 1-1.5 0V5Z" })) }, - xo = e => { + go = e => { var { title: t, titleId: n @@ -17577,7 +17825,7 @@ d: "M13.199 12.006c.168.183.42.279.68.232a.762.762 0 0 0 .609-.884.767.767 0 0 0-.141-.329L8.598 4.05a.745.745 0 0 0-1.148-.056l-.008.01a.763.763 0 0 0-.033.04l-5.744 6.965a.772.772 0 0 0-.153.61.745.745 0 0 0 1.335.33L8 5.702l5.159 6.256.033.04.008.009Z" })) }, - ko = e => { + vo = e => { var { title: t, titleId: n @@ -17627,7 +17875,7 @@ d: "M2.8 3.994a.742.742 0 0 0-.68-.232.762.762 0 0 0-.608.884c.02.123.07.235.14.328l5.751 6.976a.745.745 0 0 0 1.147.056l.009-.01a.764.764 0 0 0 .032-.04l5.745-6.966a.772.772 0 0 0 .152-.61.745.745 0 0 0-1.335-.33L8 10.3 2.84 4.042a.762.762 0 0 0-.032-.04L2.8 3.995Z" })) }, - wo = e => { + yo = e => { var { title: t, titleId: n @@ -17681,7 +17929,7 @@ clipRule: "evenodd" })) }, - So = e => { + _o = e => { var { title: t, titleId: n @@ -17733,7 +17981,7 @@ d: "M13.769 1.313h-4.05a.732.732 0 0 0-.583.21.727.727 0 0 0 .553 1.243h2.314L7.822 6.931v.001a.727.727 0 0 0 .03 1 .734.734 0 0 0 1.003.029h.001l4.182-4.164v2.305a.72.72 0 0 0 .213.55.734.734 0 0 0 1.246-.58V2.039a.732.732 0 0 0-.728-.725Z" })) }, - Eo = e => { + bo = e => { var { title: t, titleId: n @@ -17790,7 +18038,7 @@ type: "rotate" }))) }, - Oo = e => { + xo = e => { var { title: t, titleId: n @@ -17840,7 +18088,7 @@ d: "M2.773 8.75h-.016A.761.761 0 0 1 2 8a.76.76 0 0 1 .757-.75h10.309v.016a.799.799 0 0 1 .16-.016c.428 0 .774.336.774.75s-.346.75-.773.75a.799.799 0 0 1-.161-.016v.016H2.773Z" })) }, - Io = e => { + wo = e => { var { title: t, titleId: n @@ -17890,7 +18138,7 @@ d: "M13.065 15a.967.967 0 0 1-.684-1.65l.967-.968a.967.967 0 1 1 1.37 1.368l-.968.967a.967.967 0 0 1-.683.283h-.002Zm-5.452 0a.967.967 0 0 1-.683-1.65l6.418-6.42a.967.967 0 1 1 1.37 1.367l-6.42 6.42a.967.967 0 0 1-.683.283h-.002Zm-5.646 0a.967.967 0 0 1-.684-1.65L13.347 1.283a.968.968 0 0 1 1.368 1.367L2.65 14.717a.967.967 0 0 1-.683.283Z" })) }, - Co = e => { + ko = e => { var { title: t, titleId: n @@ -17946,7 +18194,7 @@ clipRule: "evenodd" })) }, - Ao = e => { + So = e => { var { title: t, titleId: n @@ -18000,7 +18248,7 @@ d: "m6.778 10.864-1.495 1.103A7.293 7.293 0 0 0 8 12.5c2.991 0 5.572-1.908 6.785-4.082a.857.857 0 0 0 0-.836 7.855 7.855 0 0 0-1.275-1.683l-1.222.9c.388.37.726.776 1 1.201C12.23 9.642 10.221 11 8 11a5.62 5.62 0 0 1-1.222-.136Z" })) }, - Po = e => { + Eo = e => { var { title: t, titleId: n @@ -18054,7 +18302,7 @@ clipRule: "evenodd" })) }, - To = e => { + Oo = e => { var { title: t, titleId: n @@ -18108,7 +18356,7 @@ d: "M12.724 5.072a.71.71 0 0 1 .231.17v.002c.331.36.594.789.773 1.26A4.2 4.2 0 0 1 14 7.995a4.2 4.2 0 0 1-.272 1.49c-.179.472-.442.9-.773 1.261a.71.71 0 0 1-.23.169.66.66 0 0 1-.273.06.682.682 0 0 1-.503-.228.786.786 0 0 1-.155-.252.841.841 0 0 1 .154-.849 2.36 2.36 0 0 0 .463-.758 2.526 2.526 0 0 0 0-1.788 2.36 2.36 0 0 0-.463-.758.788.788 0 0 1-.154-.253.842.842 0 0 1 .155-.848.712.712 0 0 1 .23-.168.66.66 0 0 1 .545 0Z" })) }, - Ro = e => { + Io = e => { var { title: t, titleId: n @@ -18164,7 +18412,7 @@ clipRule: "evenodd" })) }, - Do = e => { + Co = e => { var { title: t, titleId: n @@ -18219,7 +18467,7 @@ })) }; - function Lo() { + function Ao() { for (var e, t, n = 0, r = ""; n < arguments.length;)(e = arguments[n++]) && (t = function e(t) { var n, r, i = ""; if ("string" == typeof t || "number" == typeof t) i += t; @@ -18232,20 +18480,20 @@ }(e)) && (r && (r += " "), r += t); return r } - let No = e => (0, Ee.forwardRef)(e), - jo = (...e) => t => e.forEach((e => { + let Po = e => (0, Ee.forwardRef)(e), + To = (...e) => t => e.forEach((e => { ((e, t) => { if (null != e) { if ("function" == typeof e) return void e(t); try { e.current = t - } catch (Re) { + } catch (n) { throw Error(`Cannot assign value '${t}' to ref '${e}'`) } } })(e, t) })), - Mo = (...e) => { + Ro = (...e) => { let t = { ...e[0] }; @@ -18259,41 +18507,41 @@ ...i } : "o" === e[0] && "n" === e[1] && e.charCodeAt(2) >= 65 && 90 >= e.charCodeAt(2) && "function" == typeof n && "function" == typeof i ? t[e] = (...e) => { n(...e), i(...e) - } : t[e] = "ref" === e ? jo(n, i) : i ?? n + } : t[e] = "ref" === e ? To(n, i) : i ?? n } } return t }, - Fo = (e, t = []) => { + Do = (e, t = []) => { let n = (0, Ee.useRef)(e); return (0, Ee.useEffect)((() => { n.current = e })), (0, Ee.useCallback)(((...e) => n.current?.(...e)), t) }, - zo = ({ - value: e, - defaultValue: t, - onChange: n, - shouldUpdate: r = ((e, t) => e !== t) - }) => { - let i = Fo(n, []), - a = Fo(r), + Lo = ({ + value: e, + defaultValue: t, + onChange: n, + shouldUpdate: r = ((e, t) => e !== t) + }) => { + let i = Do(n, []), + a = Do(r), [o, s] = (0, Ee.useState)(t), l = void 0 !== e, c = l ? e : o, - u = Fo((e => { + u = Do((e => { let t = "function" == typeof e ? e(c) : e; a(c, t) && (l || s(t), i(t)) }), [l, i, c, a]); return [c, u, l] }, - Vo = "undefined" != typeof document ? Ee.useLayoutEffect : Ee.useEffect; + No = "undefined" != typeof document ? Ee.useLayoutEffect : Ee.useEffect; - function Uo(e, t, n) { + function jo(e, t, n) { return e[t] ? e[t][0] ? e[t][0][n] : e[t][n] : "contentBoxSize" === t ? e.contentRect["inlineSize" === n ? "width" : "height"] : void 0 } - function Bo(e) { + function Mo(e) { void 0 === e && (e = {}); var t, n, r, i, a, o, s = e.onResize, l = (0, Ee.useRef)(void 0); @@ -18319,26 +18567,26 @@ }), g = (t = (0, Ee.useCallback)((function(t) { return u.current && u.current.box === e.box && u.current.round === c || (u.current = { - box: e.box, - round: c, - instance: new ResizeObserver((function(t) { - var n = t[0], - r = "border-box" === e.box ? "borderBoxSize" : "device-pixel-content-box" === e.box ? "devicePixelContentBoxSize" : "contentBoxSize", - i = Uo(n, r, "inlineSize"), - a = Uo(n, r, "blockSize"), - o = i ? c(i) : void 0, - s = a ? c(a) : void 0; - if (m.current.width !== o || m.current.height !== s) { - var u = { - width: o, - height: s - }; - m.current.width = o, m.current.height = s, l.current ? l.current(u) : f.current || h(u) - } - })) - }), u.current.instance.observe(t, { - box: e.box - }), + box: e.box, + round: c, + instance: new ResizeObserver((function(t) { + var n = t[0], + r = "border-box" === e.box ? "borderBoxSize" : "device-pixel-content-box" === e.box ? "devicePixelContentBoxSize" : "contentBoxSize", + i = jo(n, r, "inlineSize"), + a = jo(n, r, "blockSize"), + o = i ? c(i) : void 0, + s = a ? c(a) : void 0; + if (m.current.width !== o || m.current.height !== s) { + var u = { + width: o, + height: s + }; + m.current.width = o, m.current.height = s, l.current ? l.current(u) : f.current || h(u) + } + })) + }), u.current.instance.observe(t, { + box: e.box + }), function() { u.current && u.current.instance.unobserve(t) } @@ -18368,10 +18616,10 @@ } }), [g, p.width, p.height]) } - let Go = ({ - content: e, - ref: t - } = {}) => { + let Fo = ({ + content: e, + ref: t + } = {}) => { let [n, r] = (0, Ee.useState)({ block: !1, inline: !1 @@ -18387,7 +18635,7 @@ }) } }), [o]); - return Bo({ + return Mo({ ref: o, onResize: s }), (0, Ee.useEffect)(s, [e, s]), (0, Ee.useMemo)((() => ({ @@ -18396,26 +18644,26 @@ ...n })), [i, o, n]) }, - $o = e => { + zo = e => { let t = (0, Ee.useId)(); return e ?? t }, - qo = "loading", - Wo = "loaded", - Ho = "error", - Ko = ({ - crossOrigin: e, - src: t, - srcSet: n - }) => { - let [r, i] = (0, Ee.useState)(qo); + Vo = "loading", + Uo = "loaded", + Bo = "error", + Go = ({ + crossOrigin: e, + src: t, + srcSet: n + }) => { + let [r, i] = (0, Ee.useState)(Vo); return (0, Ee.useEffect)((() => { - if (!t && !n) return void i(Ho); + if (!t && !n) return void i(Bo); let r = () => { - i(Wo) + i(Uo) }, a = () => { - i(Ho) + i(Bo) }, o = new Image; return e && (o.crossOrigin = e), t && (o.src = t), n && (o.srcset = n), o.addEventListener("load", r), o.addEventListener("error", a), () => { @@ -18423,12 +18671,12 @@ } }), [e, t, n]), r }, - Yo = (0, Ee.createContext)(void 0), - Qo = Yo.Provider; - var Zo = { + $o = (0, Ee.createContext)(void 0), + qo = $o.Provider; + var Wo = { exports: {} }; - oo = Zo.exports, "undefined" != typeof navigator && (Zo.exports = function() { + lp = Wo.exports, "undefined" != typeof navigator && (Wo.exports = function() { var e, t, n, r, i, a, o, s, l, c, u = "", d = !1, p = function() { @@ -18449,57 +18697,57 @@ this.audios = [], this.audioFactory = e, this._volume = 1, this._isMuted = !1 } return e.prototype = { - addAudio: function(e) { - this.audios.push(e) - }, - pause: function() { - var e, t = this.audios.length; - for (e = 0; e < t; e += 1) this.audios[e].pause() - }, - resume: function() { - var e, t = this.audios.length; - for (e = 0; e < t; e += 1) this.audios[e].resume() - }, - setRate: function(e) { - var t, n = this.audios.length; - for (t = 0; t < n; t += 1) this.audios[t].setRate(e) - }, - createAudio: function(e) { - return this.audioFactory ? this.audioFactory(e) : window.Howl ? new window.Howl({ - src: [e] - }) : { - isPlaying: !1, - play: function() { - this.isPlaying = !0 - }, - seek: function() { - this.isPlaying = !1 - }, - playing: function() {}, - rate: function() {}, - setVolume: function() {} - } - }, - setAudioFactory: function(e) { - this.audioFactory = e - }, - setVolume: function(e) { - this._volume = e, this._updateVolume() - }, - mute: function() { - this._isMuted = !0, this._updateVolume() - }, - unmute: function() { - this._isMuted = !1, this._updateVolume() - }, - getVolume: function() { - return this._volume - }, - _updateVolume: function() { - var e, t = this.audios.length; - for (e = 0; e < t; e += 1) this.audios[e].volume(this._volume * (this._isMuted ? 0 : 1)) + addAudio: function(e) { + this.audios.push(e) + }, + pause: function() { + var e, t = this.audios.length; + for (e = 0; e < t; e += 1) this.audios[e].pause() + }, + resume: function() { + var e, t = this.audios.length; + for (e = 0; e < t; e += 1) this.audios[e].resume() + }, + setRate: function(e) { + var t, n = this.audios.length; + for (t = 0; t < n; t += 1) this.audios[t].setRate(e) + }, + createAudio: function(e) { + return this.audioFactory ? this.audioFactory(e) : window.Howl ? new window.Howl({ + src: [e] + }) : { + isPlaying: !1, + play: function() { + this.isPlaying = !0 + }, + seek: function() { + this.isPlaying = !1 + }, + playing: function() {}, + rate: function() {}, + setVolume: function() {} } }, + setAudioFactory: function(e) { + this.audioFactory = e + }, + setVolume: function(e) { + this._volume = e, this._updateVolume() + }, + mute: function() { + this._isMuted = !0, this._updateVolume() + }, + unmute: function() { + this._isMuted = !1, this._updateVolume() + }, + getVolume: function() { + return this._volume + }, + _updateVolume: function() { + var e, t = this.audios.length; + for (e = 0; e < t; e += 1) this.audios[e].volume(this._volume * (this._isMuted ? 0 : 1)) + } + }, function() { return new e } @@ -18533,8 +18781,8 @@ _ = null, b = "", x = /^((?!chrome|android).)*safari/i.test(navigator.userAgent), - k = Math.pow, - w = Math.sqrt, + w = Math.pow, + k = Math.sqrt, S = Math.floor, E = Math.min, O = 150, @@ -18684,255 +18932,255 @@ return e = t, i }((function(e) { if (a.dataManager || (a.dataManager = function() { - function e(i, a) { - var o, s, l, c, u, d, p = i.length; - for (s = 0; s < p; s += 1) - if ("ks" in (o = i[s]) && !o.completed) { - if (o.completed = !0, o.hasMask) { - var h = o.masksProperties; - for (l = 0, c = h.length; l < c; l += 1) - if (h[l].pt.k.i) r(h[l].pt.k); - else - for (u = 0, d = h[l].pt.k.length; u < d; u += 1) h[l].pt.k[u].s && r(h[l].pt.k[u].s[0]), h[l].pt.k[u].e && r(h[l].pt.k[u].e[0]) - } - 0 === o.ty ? (o.layers = t(o.refId, a), e(o.layers, a)) : 4 === o.ty ? n(o.shapes) : 5 === o.ty && 0 === o.t.a.length && o.t.p + function e(i, a) { + var o, s, l, c, u, d, p = i.length; + for (s = 0; s < p; s += 1) + if ("ks" in (o = i[s]) && !o.completed) { + if (o.completed = !0, o.hasMask) { + var h = o.masksProperties; + for (l = 0, c = h.length; l < c; l += 1) + if (h[l].pt.k.i) r(h[l].pt.k); + else + for (u = 0, d = h[l].pt.k.length; u < d; u += 1) h[l].pt.k[u].s && r(h[l].pt.k[u].s[0]), h[l].pt.k[u].e && r(h[l].pt.k[u].e[0]) } - } + 0 === o.ty ? (o.layers = t(o.refId, a), e(o.layers, a)) : 4 === o.ty ? n(o.shapes) : 5 === o.ty && 0 === o.t.a.length && o.t.p + } + } - function t(e, t) { - var n = function(e, t) { - for (var n = 0, r = t.length; n < r;) { - if (t[n].id === e) return t[n]; - n += 1 - } - return null - }(e, t); - return n ? n.layers.__used ? JSON.parse(JSON.stringify(n.layers)) : (n.layers.__used = !0, n.layers) : null - } + function t(e, t) { + var n = function(e, t) { + for (var n = 0, r = t.length; n < r;) { + if (t[n].id === e) return t[n]; + n += 1 + } + return null + }(e, t); + return n ? n.layers.__used ? JSON.parse(JSON.stringify(n.layers)) : (n.layers.__used = !0, n.layers) : null + } - function n(e) { - var t, i, a; - for (t = e.length - 1; t >= 0; t -= 1) - if ("sh" === e[t].ty) - if (e[t].ks.k.i) r(e[t].ks.k); - else - for (i = 0, a = e[t].ks.k.length; i < a; i += 1) e[t].ks.k[i].s && r(e[t].ks.k[i].s[0]), e[t].ks.k[i].e && r(e[t].ks.k[i].e[0]); + function n(e) { + var t, i, a; + for (t = e.length - 1; t >= 0; t -= 1) + if ("sh" === e[t].ty) + if (e[t].ks.k.i) r(e[t].ks.k); + else + for (i = 0, a = e[t].ks.k.length; i < a; i += 1) e[t].ks.k[i].s && r(e[t].ks.k[i].s[0]), e[t].ks.k[i].e && r(e[t].ks.k[i].e[0]); else "gr" === e[t].ty && n(e[t].it) - } + } - function r(e) { - var t, n = e.i.length; - for (t = 0; t < n; t += 1) e.i[t][0] += e.v[t][0], e.i[t][1] += e.v[t][1], e.o[t][0] += e.v[t][0], e.o[t][1] += e.v[t][1] - } + function r(e) { + var t, n = e.i.length; + for (t = 0; t < n; t += 1) e.i[t][0] += e.v[t][0], e.i[t][1] += e.v[t][1], e.o[t][0] += e.v[t][0], e.o[t][1] += e.v[t][1] + } - function i(e, t) { - var n = t ? t.split(".") : [100, 100, 100]; - return e[0] > n[0] || !(n[0] > e[0]) && (e[1] > n[1] || !(n[1] > e[1]) && (e[2] > n[2] || !(n[2] > e[2]) && null)) - } - var a, o = function() { - var e = [4, 4, 14]; + function i(e, t) { + var n = t ? t.split(".") : [100, 100, 100]; + return e[0] > n[0] || !(n[0] > e[0]) && (e[1] > n[1] || !(n[1] > e[1]) && (e[2] > n[2] || !(n[2] > e[2]) && null)) + } + var a, o = function() { + var e = [4, 4, 14]; - function t(e) { - var t, n = e.length; - for (t = 0; t < n; t += 1) 5 === e[t].ty && function(e) { - var t = e.t.d; - e.t.d = { - k: [{ - s: t, - t: 0 - }] + function t(e) { + var t, n = e.length; + for (t = 0; t < n; t += 1) 5 === e[t].ty && function(e) { + var t = e.t.d; + e.t.d = { + k: [{ + s: t, + t: 0 + }] + } + }(e[t]) + } + return function(n) { + if (i(e, n.v) && (t(n.layers), n.assets)) { + var r, a = n.assets.length; + for (r = 0; r < a; r += 1) n.assets[r].layers && t(n.assets[r].layers) + } + } + }(), + s = (a = [4, 7, 99], function(e) { + if (e.chars && !i(a, e.v)) { + var t, r = e.chars.length; + for (t = 0; t < r; t += 1) { + var o = e.chars[t]; + o.data && o.data.shapes && (n(o.data.shapes), o.data.ip = 0, o.data.op = 99999, o.data.st = 0, o.data.sr = 1, o.data.ks = { + p: { + k: [0, 0], + a: 0 + }, + s: { + k: [100, 100], + a: 0 + }, + a: { + k: [0, 0], + a: 0 + }, + r: { + k: 0, + a: 0 + }, + o: { + k: 100, + a: 0 } - }(e[t]) + }, e.chars[t].t || (o.data.shapes.push({ + ty: "no" + }), o.data.shapes[0].it.push({ + p: { + k: [0, 0], + a: 0 + }, + s: { + k: [100, 100], + a: 0 + }, + a: { + k: [0, 0], + a: 0 + }, + r: { + k: 0, + a: 0 + }, + o: { + k: 100, + a: 0 + }, + sk: { + k: 0, + a: 0 + }, + sa: { + k: 0, + a: 0 + }, + ty: "tr" + }))) } - return function(n) { - if (i(e, n.v) && (t(n.layers), n.assets)) { - var r, a = n.assets.length; - for (r = 0; r < a; r += 1) n.assets[r].layers && t(n.assets[r].layers) - } - } - }(), - s = (a = [4, 7, 99], function(e) { - if (e.chars && !i(a, e.v)) { - var t, r = e.chars.length; - for (t = 0; t < r; t += 1) { - var o = e.chars[t]; - o.data && o.data.shapes && (n(o.data.shapes), o.data.ip = 0, o.data.op = 99999, o.data.st = 0, o.data.sr = 1, o.data.ks = { - p: { - k: [0, 0], - a: 0 - }, - s: { - k: [100, 100], - a: 0 - }, - a: { - k: [0, 0], - a: 0 - }, - r: { - k: 0, - a: 0 - }, - o: { - k: 100, - a: 0 - } - }, e.chars[t].t || (o.data.shapes.push({ - ty: "no" - }), o.data.shapes[0].it.push({ - p: { - k: [0, 0], - a: 0 - }, - s: { - k: [100, 100], - a: 0 - }, - a: { - k: [0, 0], - a: 0 - }, - r: { - k: 0, - a: 0 - }, - o: { - k: 100, - a: 0 - }, - sk: { - k: 0, - a: 0 - }, - sa: { - k: 0, - a: 0 - }, - ty: "tr" - }))) - } - } - }), - l = function() { - var e = [5, 7, 15]; + } + }), + l = function() { + var e = [5, 7, 15]; - function t(e) { - var t, n = e.length; - for (t = 0; t < n; t += 1) 5 === e[t].ty && function(e) { - var t = e.t.p; - "number" == typeof t.a && (t.a = { - a: 0, - k: t.a - }), "number" == typeof t.p && (t.p = { - a: 0, - k: t.p - }), "number" == typeof t.r && (t.r = { - a: 0, - k: t.r - }) - }(e[t]) + function t(e) { + var t, n = e.length; + for (t = 0; t < n; t += 1) 5 === e[t].ty && function(e) { + var t = e.t.p; + "number" == typeof t.a && (t.a = { + a: 0, + k: t.a + }), "number" == typeof t.p && (t.p = { + a: 0, + k: t.p + }), "number" == typeof t.r && (t.r = { + a: 0, + k: t.r + }) + }(e[t]) + } + return function(n) { + if (i(e, n.v) && (t(n.layers), n.assets)) { + var r, a = n.assets.length; + for (r = 0; r < a; r += 1) n.assets[r].layers && t(n.assets[r].layers) } - return function(n) { - if (i(e, n.v) && (t(n.layers), n.assets)) { - var r, a = n.assets.length; - for (r = 0; r < a; r += 1) n.assets[r].layers && t(n.assets[r].layers) - } - } - }(), - c = function() { - var e = [4, 1, 9]; + } + }(), + c = function() { + var e = [4, 1, 9]; - function t(e) { - var t, n = e.length; - for (t = 0; t < n; t += 1) 4 === e[t].ty && function e(t) { - var n, r, i, a = t.length; - for (n = 0; n < a; n += 1) - if ("gr" === t[n].ty) e(t[n].it); - else if ("fl" === t[n].ty || "st" === t[n].ty) + function t(e) { + var t, n = e.length; + for (t = 0; t < n; t += 1) 4 === e[t].ty && function e(t) { + var n, r, i, a = t.length; + for (n = 0; n < a; n += 1) + if ("gr" === t[n].ty) e(t[n].it); + else if ("fl" === t[n].ty || "st" === t[n].ty) if (t[n].c.k && t[n].c.k[0].i) for (r = 0, i = t[n].c.k.length; r < i; r += 1) t[n].c.k[r].s && (t[n].c.k[r].s[0] /= 255, t[n].c.k[r].s[1] /= 255, t[n].c.k[r].s[2] /= 255, t[n].c.k[r].s[3] /= 255), t[n].c.k[r].e && (t[n].c.k[r].e[0] /= 255, t[n].c.k[r].e[1] /= 255, t[n].c.k[r].e[2] /= 255, t[n].c.k[r].e[3] /= 255); else t[n].c.k[0] /= 255, t[n].c.k[1] /= 255, t[n].c.k[2] /= 255, t[n].c.k[3] /= 255 - }(e[t].shapes) - } - return function(n) { - if (i(e, n.v) && (t(n.layers), n.assets)) { - var r, a = n.assets.length; - for (r = 0; r < a; r += 1) n.assets[r].layers && t(n.assets[r].layers) - } - } - }(), - u = function() { - var e = [4, 4, 18]; - - function t(e) { - var t, n, r, i, a, o, s = e.length; - for (n = 0; n < s; n += 1) { - if ((t = e[n]).hasMask) { - var l = t.masksProperties; - for (r = 0, i = l.length; r < i; r += 1) - if (l[r].pt.k.i) l[r].pt.k.c = l[r].cl; - else - for (a = 0, o = l[r].pt.k.length; a < o; a += 1) l[r].pt.k[a].s && (l[r].pt.k[a].s[0].c = l[r].cl), l[r].pt.k[a].e && (l[r].pt.k[a].e[0].c = l[r].cl) - } - 4 === t.ty && function e(t) { - var n, r, i; - for (n = t.length - 1; n >= 0; n -= 1) - if ("sh" === t[n].ty) - if (t[n].ks.k.i) t[n].ks.k.c = t[n].closed; - else - for (r = 0, i = t[n].ks.k.length; r < i; r += 1) t[n].ks.k[r].s && (t[n].ks.k[r].s[0].c = t[n].closed), t[n].ks.k[r].e && (t[n].ks.k[r].e[0].c = t[n].closed); - else "gr" === t[n].ty && e(t[n].it) - }(t.shapes) - } - } - return function(n) { - if (i(e, n.v) && (t(n.layers), n.assets)) { - var r, a = n.assets.length; - for (r = 0; r < a; r += 1) n.assets[r].layers && t(n.assets[r].layers) - } - } - }(), - d = { - completeData: function(n) { - n.__complete || (c(n), o(n), s(n), l(n), u(n), e(n.layers, n.assets), function(n, r) { - if (n) { - var i = 0, - a = n.length; - for (i = 0; i < a; i += 1) 1 === n[i].t && (n[i].data.layers = t(n[i].data.refId, r), e(n[i].data.layers, r)) - } - }(n.chars, n.assets), n.__complete = !0) - } - }; - return d.checkColors = c, d.checkChars = s, d.checkPathProperties = l, d.checkShapes = u, d.completeLayers = e, d - }()), a.assetLoader || (a.assetLoader = function() { - function e(e) { - var t = e.getResponseHeader("content-type"); - return t && "json" === e.responseType && -1 !== t.indexOf("json") || e.response && "object" === q(e.response) ? e.response : e.response && "string" == typeof e.response ? JSON.parse(e.response) : e.responseText ? JSON.parse(e.responseText) : null - } - return { - load: function(t, n, r, i) { - var a, o = new XMLHttpRequest; - try { - o.responseType = "json" - } catch (e) {} - o.onreadystatechange = function() { - if (4 === o.readyState) - if (200 === o.status) r(a = e(o)); - else try { - a = e(o), r(a) - } catch (e) { - i && i(e) - } - }; - try { - o.open("GET", t, !0) - } catch (e) { - o.open("GET", n + "/" + t, !0) - } - o.send() + }(e[t].shapes) } + return function(n) { + if (i(e, n.v) && (t(n.layers), n.assets)) { + var r, a = n.assets.length; + for (r = 0; r < a; r += 1) n.assets[r].layers && t(n.assets[r].layers) + } + } + }(), + u = function() { + var e = [4, 4, 18]; + + function t(e) { + var t, n, r, i, a, o, s = e.length; + for (n = 0; n < s; n += 1) { + if ((t = e[n]).hasMask) { + var l = t.masksProperties; + for (r = 0, i = l.length; r < i; r += 1) + if (l[r].pt.k.i) l[r].pt.k.c = l[r].cl; + else + for (a = 0, o = l[r].pt.k.length; a < o; a += 1) l[r].pt.k[a].s && (l[r].pt.k[a].s[0].c = l[r].cl), l[r].pt.k[a].e && (l[r].pt.k[a].e[0].c = l[r].cl) + } + 4 === t.ty && function e(t) { + var n, r, i; + for (n = t.length - 1; n >= 0; n -= 1) + if ("sh" === t[n].ty) + if (t[n].ks.k.i) t[n].ks.k.c = t[n].closed; + else + for (r = 0, i = t[n].ks.k.length; r < i; r += 1) t[n].ks.k[r].s && (t[n].ks.k[r].s[0].c = t[n].closed), t[n].ks.k[r].e && (t[n].ks.k[r].e[0].c = t[n].closed); + else "gr" === t[n].ty && e(t[n].it) + }(t.shapes) + } + } + return function(n) { + if (i(e, n.v) && (t(n.layers), n.assets)) { + var r, a = n.assets.length; + for (r = 0; r < a; r += 1) n.assets[r].layers && t(n.assets[r].layers) + } + } + }(), + d = { + completeData: function(n) { + n.__complete || (c(n), o(n), s(n), l(n), u(n), e(n.layers, n.assets), function(n, r) { + if (n) { + var i = 0, + a = n.length; + for (i = 0; i < a; i += 1) 1 === n[i].t && (n[i].data.layers = t(n[i].data.refId, r), e(n[i].data.layers, r)) + } + }(n.chars, n.assets), n.__complete = !0) + } + }; + return d.checkColors = c, d.checkChars = s, d.checkPathProperties = l, d.checkShapes = u, d.completeLayers = e, d + }()), a.assetLoader || (a.assetLoader = function() { + function e(e) { + var t = e.getResponseHeader("content-type"); + return t && "json" === e.responseType && -1 !== t.indexOf("json") || e.response && "object" === q(e.response) ? e.response : e.response && "string" == typeof e.response ? JSON.parse(e.response) : e.responseText ? JSON.parse(e.responseText) : null + } + return { + load: function(t, n, r, i) { + var a, o = new XMLHttpRequest; + try { + o.responseType = "json" + } catch (e) {} + o.onreadystatechange = function() { + if (4 === o.readyState) + if (200 === o.status) r(a = e(o)); + else try { + a = e(o), r(a) + } catch (e) { + i && i(e) + } + }; + try { + o.open("GET", t, !0) + } catch (e) { + o.open("GET", n + "/" + t, !0) + } + o.send() } - }()), "loadAnimation" === e.data.type) a.assetLoader.load(e.data.path, e.data.fullPath, (function(t) { + } + }()), "loadAnimation" === e.data.type) a.assetLoader.load(e.data.path, e.data.fullPath, (function(t) { a.dataManager.completeData(t), a.postMessage({ id: e.data.id, payload: t, @@ -19626,8 +19874,8 @@ h = [], f = re.newElement(); for (i = 0, o = n.length; i < u; i += 1) { - for (a = 0, l = i / (u - 1), c = 0; a < o; a += 1) s = k(1 - l, 3) * e[a] + 3 * k(1 - l, 2) * l * n[a] + 3 * (1 - l) * k(l, 2) * r[a] + k(l, 3) * t[a], p[a] = s, null !== h[a] && (c += k(p[a] - h[a], 2)), h[a] = p[a]; - c && (d += c = w(c)), f.percents[i] = l, f.lengths[i] = d + for (a = 0, l = i / (u - 1), c = 0; a < o; a += 1) s = w(1 - l, 3) * e[a] + 3 * w(1 - l, 2) * l * n[a] + 3 * (1 - l) * w(l, 2) * r[a] + w(l, 3) * t[a], p[a] = s, null !== h[a] && (c += w(p[a] - h[a], 2)), h[a] = p[a]; + c && (d += c = k(c)), f.percents[i] = l, f.lengths[i] = d } return f.addedLength = d, f }; @@ -19648,8 +19896,8 @@ 2 === t.length && (t[0] !== r[0] || t[1] !== r[1]) && n(t[0], t[1], r[0], r[1], t[0] + o[0], t[1] + o[1]) && n(t[0], t[1], r[0], r[1], r[0] + s[0], r[1] + s[1]) && (g = 2); var b = new i(g); for (c = 0, d = o.length; c < g; c += 1) { - for (u = 0, m = v(d), h = c / (g - 1), f = 0; u < d; u += 1) p = k(1 - h, 3) * t[u] + 3 * k(1 - h, 2) * h * (t[u] + o[u]) + 3 * (1 - h) * k(h, 2) * (r[u] + s[u]) + k(h, 3) * r[u], m[u] = p, null !== _ && (f += k(m[u] - _[u], 2)); - y += f = w(f), b.points[c] = new a(f, m), _ = m + for (u = 0, m = v(d), h = c / (g - 1), f = 0; u < d; u += 1) p = w(1 - h, 3) * t[u] + 3 * w(1 - h, 2) * h * (t[u] + o[u]) + 3 * (1 - h) * w(h, 2) * (r[u] + s[u]) + w(h, 3) * r[u], m[u] = p, null !== _ && (f += w(m[u] - _[u], 2)); + y += f = k(f), b.points[c] = new a(f, m), _ = m } b.segmentLength = y, e[l] = b } @@ -19697,8 +19945,8 @@ _ = d * d * d, b = f * f * m, x = d * f * m + f * d * m + f * f * p, - k = d * d * m + f * d * p + d * f * p, - w = d * d * p, + w = d * d * m + f * d * p + d * f * p, + k = d * d * p, S = f * m * m, E = d * m * m + f * p * m + f * m * p, O = d * p * m + f * p * p + d * m * p, @@ -19707,7 +19955,7 @@ A = p * m * m + m * p * m + m * m * p, P = p * p * m + m * p * p + p * m * p, T = p * p * p; - for (u = 0; u < h; u += 1) l[4 * u] = t.round(1e3 * (g * e[u] + v * r[u] + y * i[u] + _ * n[u])) / 1e3, l[4 * u + 1] = t.round(1e3 * (b * e[u] + x * r[u] + k * i[u] + w * n[u])) / 1e3, l[4 * u + 2] = t.round(1e3 * (S * e[u] + E * r[u] + O * i[u] + I * n[u])) / 1e3, l[4 * u + 3] = t.round(1e3 * (C * e[u] + A * r[u] + P * i[u] + T * n[u])) / 1e3; + for (u = 0; u < h; u += 1) l[4 * u] = t.round(1e3 * (g * e[u] + v * r[u] + y * i[u] + _ * n[u])) / 1e3, l[4 * u + 1] = t.round(1e3 * (b * e[u] + x * r[u] + w * i[u] + k * n[u])) / 1e3, l[4 * u + 2] = t.round(1e3 * (S * e[u] + E * r[u] + O * i[u] + I * n[u])) / 1e3, l[4 * u + 3] = t.round(1e3 * (C * e[u] + A * r[u] + P * i[u] + T * n[u])) / 1e3; return l }, getPointInSegment: function(e, n, r, i, a, o) { @@ -19729,7 +19977,7 @@ oe = Math.abs; function se(e, t) { - var n, r, i, a, o, s, l, c, u, d, p, h, f, m, v, y, _, b, x, k, w, S, E, O, C, A, P, T, R = this.offsetTime; + var n, r, i, a, o, s, l, c, u, d, p, h, f, m, v, y, _, b, x, w, k, S, E, O, C, A, P, T, R = this.offsetTime; "multidimensional" === this.propType && (U = g("float32", this.pv.length)); for (var D = t.lastIndex, L = D, N = this.keyframes.length - 1, j = !0; j;) { if (B = this.keyframes[L], G = this.keyframes[L + 1], L === N - 1 && e >= G.t - R) { @@ -19768,7 +20016,7 @@ } t._lastPoint = Y, t._lastAddedLength = te - z.points[Y].partialLength, t._lastKeyframeIndex = L } - } else if (N = B.s.length, Z = G.s || B.e, this.sh && 1 !== B.h) e >= M ? (U[0] = Z[0], U[1] = Z[1], U[2] = Z[2]) : e <= F ? (U[0] = B.s[0], U[1] = B.s[1], U[2] = B.s[2]) : (b = U, k = (n = le(B.s), r = le(Z), i = (e - F) / (M - F), u = [], d = n[0], p = n[1], h = n[2], f = n[3], m = r[0], v = r[1], (o = d * m + p * v + h * (y = r[2]) + f * (_ = r[3])) < 0 && (o = -o, m = -m, v = -v, y = -y, _ = -_), 1 - o > 1e-6 ? (s = Math.sin(a = Math.acos(o)), l = Math.sin((1 - i) * a) / s, c = Math.sin(i * a) / s) : (l = 1 - i, c = i), u[0] = l * d + c * m, u[1] = l * p + c * v, u[2] = l * h + c * y, u[3] = l * f + c * _, x = u)[0], w = x[1], S = x[2], E = x[3], b[0] = Math.atan2(2 * w * E - 2 * k * S, 1 - 2 * w * w - 2 * S * S) / I, b[1] = Math.asin(2 * k * w + 2 * S * E) / I, b[2] = Math.atan2(2 * k * E - 2 * w * S, 1 - 2 * k * k - 2 * S * S) / I); + } else if (N = B.s.length, Z = G.s || B.e, this.sh && 1 !== B.h) e >= M ? (U[0] = Z[0], U[1] = Z[1], U[2] = Z[2]) : e <= F ? (U[0] = B.s[0], U[1] = B.s[1], U[2] = B.s[2]) : (b = U, w = (n = le(B.s), r = le(Z), i = (e - F) / (M - F), u = [], d = n[0], p = n[1], h = n[2], f = n[3], m = r[0], v = r[1], (o = d * m + p * v + h * (y = r[2]) + f * (_ = r[3])) < 0 && (o = -o, m = -m, v = -v, y = -y, _ = -_), 1 - o > 1e-6 ? (s = Math.sin(a = Math.acos(o)), l = Math.sin((1 - i) * a) / s, c = Math.sin(i * a) / s) : (l = 1 - i, c = i), u[0] = l * d + c * m, u[1] = l * p + c * v, u[2] = l * h + c * y, u[3] = l * f + c * _, x = u)[0], k = x[1], S = x[2], E = x[3], b[0] = Math.atan2(2 * k * E - 2 * w * S, 1 - 2 * k * k - 2 * S * S) / I, b[1] = Math.asin(2 * w * k + 2 * S * E) / I, b[2] = Math.atan2(2 * w * E - 2 * k * S, 1 - 2 * w * w - 2 * S * S) / I); else for (L = 0; L < N; L += 1) 1 !== B.h && (e >= M ? H = 1 : e < F ? H = 0 : (B.o.x.constructor === Array ? ($.__fnct || ($.__fnct = []), $.__fnct[L] ? Q = $.__fnct[L] : (O = void 0 === B.o.x[L] ? B.o.x[0] : B.o.x[L], C = void 0 === B.o.y[L] ? B.o.y[0] : B.o.y[L], A = void 0 === B.i.x[L] ? B.i.x[0] : B.i.x[L], P = void 0 === B.i.y[L] ? B.i.y[0] : B.i.y[L], Q = ee.getBezierEasing(O, C, A, P).get, $.__fnct[L] = Q)) : $.__fnct ? Q = $.__fnct : (O = B.o.x, C = B.o.y, A = B.i.x, P = B.i.y, Q = ee.getBezierEasing(O, C, A, P).get, B.keyframeMetadata = Q), H = Q((e - F) / (M - F)))), Z = G.s || B.e, T = 1 === B.h ? B.s[L] : B.s[L] + (Z[L] - B.s[L]) * H, "multidimensional" === this.propType ? U[L] = T : U = T; return t.lastIndex = D, U @@ -19945,20 +20193,20 @@ return r }, t); - function ke() { + function we() { this._length = 0, this._maxLength = 4, this.shapes = v(this._maxLength) } - ke.prototype.addShape = function(e) { + we.prototype.addShape = function(e) { this._length === this._maxLength && (this.shapes = this.shapes.concat(v(this._maxLength)), this._maxLength *= 2), this.shapes[this._length] = e, this._length += 1 - }, ke.prototype.releaseShapes = function() { + }, we.prototype.releaseShapes = function() { var e; for (e = 0; e < this._length; e += 1) xe.release(this.shapes[e]); this._length = 0 }; - var we = (n = 0, r = 4, i = v(4), { + var ke = (n = 0, r = 4, i = v(4), { newShapeCollection: function() { var e; - return n ? e = i[n -= 1] : e = new ke, e + return n ? e = i[n -= 1] : e = new we, e }, release: function(e) { var t, a = e._length; @@ -20016,7 +20264,7 @@ function a(e, t, r) { this.propType = "shape", this.comp = e.comp, this.container = e, this.elem = e, this.data = t, this.k = !1, this.kf = !1, this._mdf = !1; var i = 3 === r ? t.pt.k : t.ks.k; - this.v = xe.clone(i), this.pv = xe.clone(this.v), this.localShapeCollection = we.newShapeCollection(), this.paths = this.localShapeCollection, this.paths.addShape(this.v), this.reset = n, this.effectsSequence = [] + this.v = xe.clone(i), this.pv = xe.clone(this.v), this.localShapeCollection = ke.newShapeCollection(), this.paths = this.localShapeCollection, this.paths.addShape(this.v), this.reset = n, this.effectsSequence = [] } function o(e) { @@ -20026,7 +20274,7 @@ function s(e, r, i) { this.propType = "shape", this.comp = e.comp, this.elem = e, this.container = e, this.offsetTime = e.data.st, this.keyframes = 3 === i ? r.pt.k : r.ks.k, this.keyframesMetadata = [], this.k = !0, this.kf = !0; var a = this.keyframes[0].s[0].i.length; - this.v = xe.newElement(), this.v.setPathData(this.keyframes[0].s[0].c, a), this.pv = xe.clone(this.v), this.localShapeCollection = we.newShapeCollection(), this.paths = this.localShapeCollection, this.paths.addShape(this.v), this.lastFrame = -999999, this.reset = n, this._caching = { + this.v = xe.newElement(), this.v.setPathData(this.keyframes[0].s[0].c, a), this.pv = xe.clone(this.v), this.localShapeCollection = ke.newShapeCollection(), this.paths = this.localShapeCollection, this.paths.addShape(this.v), this.lastFrame = -999999, this.reset = n, this._caching = { lastFrame: -999999, lastIndex: 0 }, this.effectsSequence = [t.bind(this)] @@ -20034,7 +20282,7 @@ a.prototype.interpolateShape = e, a.prototype.getValue = i, a.prototype.setVValue = r, a.prototype.addEffect = o, s.prototype.getValue = i, s.prototype.interpolateShape = e, s.prototype.setVValue = r, s.prototype.addEffect = o; var l = function() { function e(e, t) { - this.v = xe.newElement(), this.v.setPathData(!0, 4), this.localShapeCollection = we.newShapeCollection(), this.paths = this.localShapeCollection, this.localShapeCollection.addShape(this.v), this.d = t.d, this.elem = e, this.comp = e.comp, this.frameId = -1, this.initDynamicPropertyContainer(e), this.p = ve.getProp(e, t.p, 1, 0, this), this.s = ve.getProp(e, t.s, 1, 0, this), this.dynamicProperties.length ? this.k = !0 : (this.k = !1, this.convertEllToPath()) + this.v = xe.newElement(), this.v.setPathData(!0, 4), this.localShapeCollection = ke.newShapeCollection(), this.paths = this.localShapeCollection, this.localShapeCollection.addShape(this.v), this.d = t.d, this.elem = e, this.comp = e.comp, this.frameId = -1, this.initDynamicPropertyContainer(e), this.p = ve.getProp(e, t.p, 1, 0, this), this.s = ve.getProp(e, t.s, 1, 0, this), this.dynamicProperties.length ? this.k = !0 : (this.k = !1, this.convertEllToPath()) } return e.prototype = { reset: n, @@ -20054,7 +20302,7 @@ }(), c = function() { function e(e, t) { - this.v = xe.newElement(), this.v.setPathData(!0, 0), this.elem = e, this.comp = e.comp, this.data = t, this.frameId = -1, this.d = t.d, this.initDynamicPropertyContainer(e), 1 === t.sy ? (this.ir = ve.getProp(e, t.ir, 0, 0, this), this.is = ve.getProp(e, t.is, 0, .01, this), this.convertToPath = this.convertStarToPath) : this.convertToPath = this.convertPolygonToPath, this.pt = ve.getProp(e, t.pt, 0, 0, this), this.p = ve.getProp(e, t.p, 1, 0, this), this.r = ve.getProp(e, t.r, 0, I, this), this.or = ve.getProp(e, t.or, 0, 0, this), this.os = ve.getProp(e, t.os, 0, .01, this), this.localShapeCollection = we.newShapeCollection(), this.localShapeCollection.addShape(this.v), this.paths = this.localShapeCollection, this.dynamicProperties.length ? this.k = !0 : (this.k = !1, this.convertToPath()) + this.v = xe.newElement(), this.v.setPathData(!0, 0), this.elem = e, this.comp = e.comp, this.data = t, this.frameId = -1, this.d = t.d, this.initDynamicPropertyContainer(e), 1 === t.sy ? (this.ir = ve.getProp(e, t.ir, 0, 0, this), this.is = ve.getProp(e, t.is, 0, .01, this), this.convertToPath = this.convertStarToPath) : this.convertToPath = this.convertPolygonToPath, this.pt = ve.getProp(e, t.pt, 0, 0, this), this.p = ve.getProp(e, t.p, 1, 0, this), this.r = ve.getProp(e, t.r, 0, I, this), this.or = ve.getProp(e, t.or, 0, 0, this), this.os = ve.getProp(e, t.os, 0, .01, this), this.localShapeCollection = ke.newShapeCollection(), this.localShapeCollection.addShape(this.v), this.paths = this.localShapeCollection, this.dynamicProperties.length ? this.k = !0 : (this.k = !1, this.convertToPath()) } return e.prototype = { reset: n, @@ -20104,7 +20352,7 @@ }(), u = function() { function e(e, t) { - this.v = xe.newElement(), this.v.c = !0, this.localShapeCollection = we.newShapeCollection(), this.localShapeCollection.addShape(this.v), this.paths = this.localShapeCollection, this.elem = e, this.comp = e.comp, this.frameId = -1, this.d = t.d, this.initDynamicPropertyContainer(e), this.p = ve.getProp(e, t.p, 1, 0, this), this.s = ve.getProp(e, t.s, 1, 0, this), this.r = ve.getProp(e, t.r, 0, 0, this), this.dynamicProperties.length ? this.k = !0 : (this.k = !1, this.convertRectToPath()) + this.v = xe.newElement(), this.v.c = !0, this.localShapeCollection = ke.newShapeCollection(), this.localShapeCollection.addShape(this.v), this.paths = this.localShapeCollection, this.elem = e, this.comp = e.comp, this.frameId = -1, this.d = t.d, this.initDynamicPropertyContainer(e), this.p = ve.getProp(e, t.p, 1, 0, this), this.s = ve.getProp(e, t.s, 1, 0, this), this.r = ve.getProp(e, t.r, 0, 0, this), this.dynamicProperties.length ? this.k = !0 : (this.k = !1, this.convertRectToPath()) } return e.prototype = { convertRectToPath: function() { @@ -20208,8 +20456,8 @@ _ = g[2], b = g[3], x = g[4], - k = g[5], - w = g[6], + w = g[5], + k = g[6], S = g[7], E = g[8], O = g[9], @@ -20219,7 +20467,7 @@ P = g[13], T = g[14], R = g[15]; - return g[0] = v * e + y * i + _ * l + b * p, g[1] = v * t + y * a + _ * c + b * h, g[2] = v * n + y * o + _ * u + b * f, g[3] = v * r + y * s + _ * d + b * m, g[4] = x * e + k * i + w * l + S * p, g[5] = x * t + k * a + w * c + S * h, g[6] = x * n + k * o + w * u + S * f, g[7] = x * r + k * s + w * d + S * m, g[8] = E * e + O * i + I * l + C * p, g[9] = E * t + O * a + I * c + C * h, g[10] = E * n + O * o + I * u + C * f, g[11] = E * r + O * s + I * d + C * m, g[12] = A * e + P * i + T * l + R * p, g[13] = A * t + P * a + T * c + R * h, g[14] = A * n + P * o + T * u + R * f, g[15] = A * r + P * s + T * d + R * m, this._identityCalculated = !1, this + return g[0] = v * e + y * i + _ * l + b * p, g[1] = v * t + y * a + _ * c + b * h, g[2] = v * n + y * o + _ * u + b * f, g[3] = v * r + y * s + _ * d + b * m, g[4] = x * e + w * i + k * l + S * p, g[5] = x * t + w * a + k * c + S * h, g[6] = x * n + w * o + k * u + S * f, g[7] = x * r + w * s + k * d + S * m, g[8] = E * e + O * i + I * l + C * p, g[9] = E * t + O * a + I * c + C * h, g[10] = E * n + O * o + I * u + C * f, g[11] = E * r + O * s + I * d + C * m, g[12] = A * e + P * i + T * l + R * p, g[13] = A * t + P * a + T * c + R * h, g[14] = A * n + P * o + T * u + R * f, g[15] = A * r + P * s + T * d + R * m, this._identityCalculated = !1, this } function v(e) { @@ -20250,7 +20498,7 @@ for (t = 0; t < 16; t += 1) this.props[t] = e[t] } - function k(e, t, n) { + function w(e, t, n) { return { x: e * this.props[0] + t * this.props[4] + n * this.props[8] + this.props[12], y: e * this.props[1] + t * this.props[5] + n * this.props[9] + this.props[13], @@ -20258,7 +20506,7 @@ } } - function w(e, t, n) { + function k(e, t, n) { return e * this.props[0] + t * this.props[4] + n * this.props[8] + this.props[12] } @@ -20332,7 +20580,7 @@ return "matrix(" + D(e[0]) + "," + D(e[1]) + "," + D(e[4]) + "," + D(e[5]) + "," + D(e[12]) + "," + D(e[13]) + ")" } return function() { - this.reset = i, this.rotate = a, this.rotateX = o, this.rotateY = s, this.rotateZ = l, this.skew = u, this.skewFromAxis = d, this.shear = c, this.scale = p, this.setTransform = h, this.translate = f, this.transform = m, this.multiply = v, this.applyToPoint = k, this.applyToX = w, this.applyToY = S, this.applyToZ = E, this.applyToPointArray = P, this.applyToTriplePoints = A, this.applyToPointStringified = T, this.toCSS = R, this.to2dCSS = L, this.clone = b, this.cloneFromProps = x, this.equals = _, this.inversePoints = C, this.inversePoint = I, this.getInverseMatrix = O, this._t = this.transform, this.isIdentity = y, this._identity = !0, this._identityCalculated = !1, this.props = g("float32", 16), this.reset() + this.reset = i, this.rotate = a, this.rotateX = o, this.rotateY = s, this.rotateZ = l, this.skew = u, this.skewFromAxis = d, this.shear = c, this.scale = p, this.setTransform = h, this.translate = f, this.transform = m, this.multiply = v, this.applyToPoint = w, this.applyToX = k, this.applyToY = S, this.applyToZ = E, this.applyToPointArray = P, this.applyToTriplePoints = A, this.applyToPointStringified = T, this.toCSS = R, this.to2dCSS = L, this.clone = b, this.cloneFromProps = x, this.equals = _, this.inversePoints = C, this.inversePoint = I, this.getInverseMatrix = O, this._t = this.transform, this.isIdentity = y, this._identity = !0, this._identityCalculated = !1, this.props = g("float32", 16), this.reset() } }(); @@ -20410,7 +20658,7 @@ "complete" === document.readyState && (clearInterval(Re), Ce()) }), 100); try { - "object" !== Oe(oo) && (window.bodymovin = Ie) + "object" !== Oe(lp) && (window.bodymovin = Ie) } catch (e) {} var De = (o = {}, (a = {}).registerModifier = function(e, t) { o[e] || (o[e] = t) @@ -20429,7 +20677,7 @@ var t = { shape: e.sh, data: e, - localShapeCollection: we.newShapeCollection() + localShapeCollection: ke.newShapeCollection() }; this.shapes.push(t), this.addShapeToModifier(t), this._isAnimated && e.setAsAnimated() } @@ -20497,8 +20745,8 @@ for (l = r - 1; l >= 0; l -= 1) if ((f = this.shapes[l]).shape._mdf) { for ((m = f.localShapeCollection).releaseShapes(), 2 === this.m && r > 1 ? (g = this.calculateShapeEdges(a, o, f.totalShapeLength, b, i), b += f.totalShapeLength) : g = [ - [y, _] - ], u = g.length, c = 0; c < u; c += 1) { + [y, _] + ], u = g.length, c = 0; c < u; c += 1) { y = g[c][0], _ = g[c][1], v.length = 0, _ <= 1 ? v.push({ s: f.totalShapeLength * y, e: f.totalShapeLength * _ @@ -20516,8 +20764,8 @@ if (v[0].s !== v[0].e) { if (v.length > 1) if (f.shape.paths.shapes[f.shape.paths._length - 1].c) { - var k = x.pop(); - this.addPaths(x, m), x = this.addShapes(f, v[1], k) + var w = x.pop(); + this.addPaths(x, m), x = this.addShapes(f, v[1], w) } else this.addPaths(x, m), x = this.addShapes(f, v[1]); this.addPaths(x, m) } @@ -20587,8 +20835,8 @@ function t(e, t, n) { if (this.elem = e, this.frameId = -1, this.propType = "transform", this.data = t, this.v = new Ee, this.pre = new Ee, this.appliedTransformations = 0, this.initDynamicPropertyContainer(n || e), t.p && t.p.s ? (this.px = ve.getProp(e, t.p.x, 0, 0, this), this.py = ve.getProp(e, t.p.y, 0, 0, this), t.p.z && (this.pz = ve.getProp(e, t.p.z, 0, 0, this))) : this.p = ve.getProp(e, t.p || { - k: [0, 0, 0] - }, 1, 0, this), t.rx) { + k: [0, 0, 0] + }, 1, 0, this), t.rx) { if (this.rx = ve.getProp(e, t.rx, 0, I, this), this.ry = ve.getProp(e, t.ry, 0, I, this), this.rz = ve.getProp(e, t.rz, 0, I, this), t.or.k[0].ti) { var r, i = t.or.k.length; for (r = 0; r < i; r += 1) t.or.k[r].to = null, t.or.k[r].ti = null @@ -20688,14 +20936,14 @@ r = n, n = i } for (var a = function(e, t, n) { - if (0 === e) return []; - var r = t * t - 4 * e * n; - if (r < 0) return []; - var i = -t / (2 * e); - if (0 === r) return [i]; - var a = Math.sqrt(r) / (2 * e); - return [i - a, i + a] - }(3 * e.a[t], 2 * e.b[t], e.c[t]), o = 0; o < a.length; o += 1) + if (0 === e) return []; + var r = t * t - 4 * e * n; + if (r < 0) return []; + var i = -t / (2 * e); + if (0 === r) return [i]; + var a = Math.sqrt(r) / (2 * e); + return [i - a, i + a] + }(3 * e.a[t], 2 * e.b[t], e.c[t]), o = 0; o < a.length; o += 1) if (a[o] > 0 && a[o] < 1) { var s = e.point(a[o])[t]; s < n ? n = s : s > r && (r = s) @@ -21383,11 +21631,11 @@ this.p = ve.getProp(t, e.v, 0, 0, n) } - function kt() { + function wt() { this.p = {} } - function wt(e, t) { + function kt(e, t) { var n, r, i = e.ef || []; this.effectElements = []; var a = i.length; @@ -21446,10 +21694,10 @@ r = new bt(a[n], t, this); break; case 5: - r = new wt(a[n], t); + r = new kt(a[n], t); break; default: - r = new kt(a[n]) + r = new wt(a[n]) } r && this.effectElements.push(r) } @@ -21468,7 +21716,7 @@ (this.baseElement || this.layerElement).style["mix-blend-mode"] = e }, initBaseData: function(e, t, n) { - this.globalData = t, this.comp = n, this.data = e, this.layerId = N(), this.data.sr || (this.data.sr = 1), this.effectsManager = new wt(this.data, this, this.dynamicProperties) + this.globalData = t, this.comp = n, this.data = e, this.layerId = N(), this.data.sr || (this.data.sr = 1), this.effectsManager = new kt(this.data, this, this.dynamicProperties) }, getType: function() { return this.type @@ -21622,19 +21870,19 @@ }, r.appendChild(h); else { if (o += 1, h.setAttribute("fill", "s" === a[d].mode ? "#000000" : "#ffffff"), h.setAttribute("clip-rule", "nonzero"), 0 !== a[d].x.k ? (c = "mask", u = "mask", b = ve.getProp(this.element, a[d].x, 0, null, this.element), x = N(), (y = $("filter")).setAttribute("id", x), (_ = $("feMorphology")).setAttribute("operator", "erode"), _.setAttribute("in", "SourceGraphic"), _.setAttribute("radius", "0"), y.appendChild(_), r.appendChild(y), h.setAttribute("stroke", "s" === a[d].mode ? "#000000" : "#ffffff")) : (_ = null, b = null), this.storedData[d] = { - elem: h, - x: b, - expan: _, - lastPath: "", - lastOperator: "", - filterId: x, - lastRadius: 0 - }, "i" === a[d].mode) { + elem: h, + x: b, + expan: _, + lastPath: "", + lastOperator: "", + filterId: x, + lastRadius: 0 + }, "i" === a[d].mode) { m = s.length; - var d, h, f, m, g, y, _, b, x, k = $("g"); - for (f = 0; f < m; f += 1) k.appendChild(s[f]); - var w = $("mask"); - w.setAttribute("mask-type", "alpha"), w.setAttribute("id", l + "_" + o), w.appendChild(h), r.appendChild(w), k.setAttribute("mask", "url(" + p() + "#" + l + "_" + o + ")"), s.length = 0, s.push(k) + var d, h, f, m, g, y, _, b, x, w = $("g"); + for (f = 0; f < m; f += 1) w.appendChild(s[f]); + var k = $("mask"); + k.setAttribute("mask-type", "alpha"), k.setAttribute("id", l + "_" + o), k.appendChild(h), r.appendChild(k), w.setAttribute("mask", "url(" + p() + "#" + l + "_" + o + ")"), s.length = 0, s.push(w) } else s.push(h); a[d].inv && !this.solidPath && (this.solidPath = this.createLayerSolidPath()), this.viewData[d] = { elem: h, @@ -22358,35 +22606,35 @@ e.fWeight = f.weight, e.fStyle = f.style, e.finalSize = e.s, e.finalText = this.buildFinalText(e.t), v = e.finalText.length, e.finalLineHeight = e.lh; var m = e.tr / 1e3 * e.finalSize; if (e.sz) - for (var g, v, y, _, b, x, k, w, S, E, O = !0, I = e.sz[0], C = e.sz[1]; O;) { + for (var g, v, y, _, b, x, w, k, S, E, O = !0, I = e.sz[0], C = e.sz[1]; O;) { S = 0, u = 0, v = (E = this.buildFinalText(e.t)).length, m = e.tr / 1e3 * e.finalSize; var A = -1; - for (g = 0; g < v; g += 1) w = E[g].charCodeAt(0), y = !1, " " === E[g] ? A = g : (13 === w || 3 === w) && (u = 0, y = !0, S += e.finalLineHeight || 1.2 * e.finalSize), t.chars ? (k = t.getCharData(E[g], p.fStyle, p.fFamily), h = y ? 0 : k.w * e.finalSize / 100) : h = t.measureText(E[g], e.f, e.finalSize), u + h > I && " " !== E[g] ? (-1 === A ? v += 1 : g = A, S += e.finalLineHeight || 1.2 * e.finalSize, E.splice(g, A === g ? 1 : 0, "\r"), A = -1, u = 0) : u += h + m; + for (g = 0; g < v; g += 1) k = E[g].charCodeAt(0), y = !1, " " === E[g] ? A = g : (13 === k || 3 === k) && (u = 0, y = !0, S += e.finalLineHeight || 1.2 * e.finalSize), t.chars ? (w = t.getCharData(E[g], p.fStyle, p.fFamily), h = y ? 0 : w.w * e.finalSize / 100) : h = t.measureText(E[g], e.f, e.finalSize), u + h > I && " " !== E[g] ? (-1 === A ? v += 1 : g = A, S += e.finalLineHeight || 1.2 * e.finalSize, E.splice(g, A === g ? 1 : 0, "\r"), A = -1, u = 0) : u += h + m; S += p.ascent * e.finalSize / 100, this.canResize && e.finalSize > this.minimumFontSize && C < S ? (e.finalSize -= 1, e.finalLineHeight = e.finalSize * e.lh / e.s) : (e.finalText = E, v = e.finalText.length, O = !1) } u = -m, h = 0; var P = 0; for (g = 0; g < v; g += 1) - if (y = !1, 13 === (w = (D = e.finalText[g]).charCodeAt(0)) || 3 === w ? (P = 0, c.push(u), d = u > d ? u : d, u = -2 * m, _ = "", y = !0, l += 1) : _ = D, t.chars ? (k = t.getCharData(D, p.fStyle, t.getFontByName(e.f).fFamily), h = y ? 0 : k.w * e.finalSize / 100) : h = t.measureText(_, e.f, e.finalSize), " " === D ? P += h + m : (u += h + m + P, P = 0), r.push({ - l: h, - an: h, - add: o, - n: y, - anIndexes: [], - val: _, - line: l, - animatorJustifyOffset: 0 - }), 2 == a) { + if (y = !1, 13 === (k = (D = e.finalText[g]).charCodeAt(0)) || 3 === k ? (P = 0, c.push(u), d = u > d ? u : d, u = -2 * m, _ = "", y = !0, l += 1) : _ = D, t.chars ? (w = t.getCharData(D, p.fStyle, t.getFontByName(e.f).fFamily), h = y ? 0 : w.w * e.finalSize / 100) : h = t.measureText(_, e.f, e.finalSize), " " === D ? P += h + m : (u += h + m + P, P = 0), r.push({ + l: h, + an: h, + add: o, + n: y, + anIndexes: [], + val: _, + line: l, + animatorJustifyOffset: 0 + }), 2 == a) { if (o += h, "" === _ || " " === _ || g === v - 1) { for (("" === _ || " " === _) && (o -= h); s <= g;) r[s].an = o, r[s].ind = i, r[s].extra = h, s += 1; i += 1, o = 0 } } else if (3 == a) { - if (o += h, "" === _ || g === v - 1) { - for ("" === _ && (o -= h); s <= g;) r[s].an = o, r[s].ind = i, r[s].extra = h, s += 1; - o = 0, i += 1 - } - } else r[i].ind = i, r[i].extra = 0, i += 1; + if (o += h, "" === _ || g === v - 1) { + for ("" === _ && (o -= h); s <= g;) r[s].an = o, r[s].ind = i, r[s].extra = h, s += 1; + o = 0, i += 1 + } + } else r[i].ind = i, r[i].extra = 0, i += 1; if (e.l = r, d = u > d ? u : d, c.push(u), e.sz) e.boxWidth = e.sz[0], e.justifyOffset = 0; else switch (e.boxWidth = d, e.j) { case 1: @@ -22546,17 +22794,17 @@ var n, r, i, a, o, s, l, c, u, d, p, h, f, m, g, v, y, _ = this._moreOptions.alignment.v, b = this._animatorsData, x = this._textData, - k = this.mHelper, - w = this._renderType, + w = this.mHelper, + k = this._renderType, S = this.renderedLetters.length, E = e.l; if (this._hasMaskedPath) { if (W = this._pathData.m, !this._pathData.n || this._pathData._mdf) { var O, I, C, A, P, T, R, D, L, N, j, M, U, B, G, $, q, W, H, K = W.v; for (this._pathData.r.v && (K = K.reverse()), P = { - tLength: 0, - segments: [] - }, A = K._length - 1, $ = 0, C = 0; C < A; C += 1) H = ae.buildBezierData(K.v[C], K.v[C + 1], [K.o[C][0] - K.v[C][0], K.o[C][1] - K.v[C][1]], [K.i[C + 1][0] - K.v[C + 1][0], K.i[C + 1][1] - K.v[C + 1][1]]), P.tLength += H.segmentLength, P.segments.push(H), $ += H.segmentLength; + tLength: 0, + segments: [] + }, A = K._length - 1, $ = 0, C = 0; C < A; C += 1) H = ae.buildBezierData(K.v[C], K.v[C + 1], [K.o[C][0] - K.v[C][0], K.o[C][1] - K.v[C][1]], [K.i[C + 1][0] - K.v[C + 1][0], K.i[C + 1][1] - K.v[C + 1][1]]), P.tLength += H.segmentLength, P.segments.push(H), $ += H.segmentLength; C = A, W.v.c && (H = ae.buildBezierData(K.v[C], K.v[0], [K.o[C][0] - K.v[C][0], K.o[C][1] - K.v[C][1]], [K.i[0][0] - K.v[0][0], K.i[0][1] - K.v[0][1]]), P.tLength += H.segmentLength, P.segments.push(H), $ += H.segmentLength), this._pathData.pi = P } if (P = this._pathData.pi, T = this._pathData.f.v, j = 0, N = 1, D = 0, L = !0, B = P.segments, T < 0 && W.v.c) @@ -22590,7 +22838,7 @@ } for (ie && (ie += oe); le < C;) E[le].animatorJustifyOffset = ie, le += 1 } for (C = 0; C < A; C += 1) { - if (k.reset(), u = 1, E[C].n) O = 0, I += e.yOffset + (Q ? 1 : 0), T = X, Q = !1, this._hasMaskedPath && (N = ee, M = (U = B[j = J].points)[N - 1], G = (R = U[N]).partialLength, D = 0), ne = "", v = "", m = "", y = "", re = this.defaultPropsArray; + if (w.reset(), u = 1, E[C].n) O = 0, I += e.yOffset + (Q ? 1 : 0), T = X, Q = !1, this._hasMaskedPath && (N = ee, M = (U = B[j = J].points)[N - 1], G = (R = U[N]).partialLength, D = 0), ne = "", v = "", m = "", y = "", re = this.defaultPropsArray; else { if (this._hasMaskedPath) { if (te !== E[C].line) { @@ -22606,14 +22854,14 @@ Z !== E[C].ind && (E[Z] && (T += E[Z].extra), T += E[C].an / 2, Z = E[C].ind), T += _[0] * E[C].an * .005; var ue = 0; for (r = 0; r < i; r += 1)(n = b[r].a).p.propType && ((o = b[r].s.getMult(E[C].anIndexes[r], x.a[r].s.totalChars)).length ? ue += n.p.v[0] * o[0] : ue += n.p.v[0] * o), n.a.propType && ((o = b[r].s.getMult(E[C].anIndexes[r], x.a[r].s.totalChars)).length ? ue += n.a.v[0] * o[0] : ue += n.a.v[0] * o); - for (L = !0, this._pathData.a.v && (T = .5 * E[0].an + ($ - this._pathData.f.v - .5 * E[0].an - .5 * E[E.length - 1].an) * Z / (A - 1) + this._pathData.f.v); L;) D + G >= T + ue || !U ? (q = (T + ue - D) / R.partialLength, l = M.point[0] + (R.point[0] - M.point[0]) * q, c = M.point[1] + (R.point[1] - M.point[1]) * q, k.translate(-_[0] * E[C].an * .005, -_[1] * Y * .01), L = !1) : U && (D += R.partialLength, (N += 1) >= U.length && (N = 0, B[j += 1] ? U = B[j].points : W.v.c ? (N = 0, U = B[j = 0].points) : (D -= R.partialLength, U = null)), U && (M = R, G = (R = U[N]).partialLength)); - s = E[C].an / 2 - E[C].add, k.translate(-s, 0, 0) - } else s = E[C].an / 2 - E[C].add, k.translate(-s, 0, 0), k.translate(-_[0] * E[C].an * .005, -_[1] * Y * .01, 0); + for (L = !0, this._pathData.a.v && (T = .5 * E[0].an + ($ - this._pathData.f.v - .5 * E[0].an - .5 * E[E.length - 1].an) * Z / (A - 1) + this._pathData.f.v); L;) D + G >= T + ue || !U ? (q = (T + ue - D) / R.partialLength, l = M.point[0] + (R.point[0] - M.point[0]) * q, c = M.point[1] + (R.point[1] - M.point[1]) * q, w.translate(-_[0] * E[C].an * .005, -_[1] * Y * .01), L = !1) : U && (D += R.partialLength, (N += 1) >= U.length && (N = 0, B[j += 1] ? U = B[j].points : W.v.c ? (N = 0, U = B[j = 0].points) : (D -= R.partialLength, U = null)), U && (M = R, G = (R = U[N]).partialLength)); + s = E[C].an / 2 - E[C].add, w.translate(-s, 0, 0) + } else s = E[C].an / 2 - E[C].add, w.translate(-s, 0, 0), w.translate(-_[0] * E[C].an * .005, -_[1] * Y * .01, 0); for (r = 0; r < i; r += 1)(n = b[r].a).t.propType && (o = b[r].s.getMult(E[C].anIndexes[r], x.a[r].s.totalChars), (0 !== O || 0 !== e.j) && (this._hasMaskedPath ? o.length ? T += n.t.v * o[0] : T += n.t.v * o : o.length ? O += n.t.v * o[0] : O += n.t.v * o)); - for (e.strokeWidthAnim && (p = e.sw || 0), e.strokeColorAnim && (d = e.sc ? [e.sc[0], e.sc[1], e.sc[2]] : [0, 0, 0]), e.fillColorAnim && e.fc && (h = [e.fc[0], e.fc[1], e.fc[2]]), r = 0; r < i; r += 1)(n = b[r].a).a.propType && ((o = b[r].s.getMult(E[C].anIndexes[r], x.a[r].s.totalChars)).length ? k.translate(-n.a.v[0] * o[0], -n.a.v[1] * o[1], n.a.v[2] * o[2]) : k.translate(-n.a.v[0] * o, -n.a.v[1] * o, n.a.v[2] * o)); - for (r = 0; r < i; r += 1)(n = b[r].a).s.propType && ((o = b[r].s.getMult(E[C].anIndexes[r], x.a[r].s.totalChars)).length ? k.scale(1 + (n.s.v[0] - 1) * o[0], 1 + (n.s.v[1] - 1) * o[1], 1) : k.scale(1 + (n.s.v[0] - 1) * o, 1 + (n.s.v[1] - 1) * o, 1)); + for (e.strokeWidthAnim && (p = e.sw || 0), e.strokeColorAnim && (d = e.sc ? [e.sc[0], e.sc[1], e.sc[2]] : [0, 0, 0]), e.fillColorAnim && e.fc && (h = [e.fc[0], e.fc[1], e.fc[2]]), r = 0; r < i; r += 1)(n = b[r].a).a.propType && ((o = b[r].s.getMult(E[C].anIndexes[r], x.a[r].s.totalChars)).length ? w.translate(-n.a.v[0] * o[0], -n.a.v[1] * o[1], n.a.v[2] * o[2]) : w.translate(-n.a.v[0] * o, -n.a.v[1] * o, n.a.v[2] * o)); + for (r = 0; r < i; r += 1)(n = b[r].a).s.propType && ((o = b[r].s.getMult(E[C].anIndexes[r], x.a[r].s.totalChars)).length ? w.scale(1 + (n.s.v[0] - 1) * o[0], 1 + (n.s.v[1] - 1) * o[1], 1) : w.scale(1 + (n.s.v[0] - 1) * o, 1 + (n.s.v[1] - 1) * o, 1)); for (r = 0; r < i; r += 1) { - if (n = b[r].a, o = b[r].s.getMult(E[C].anIndexes[r], x.a[r].s.totalChars), n.sk.propType && (o.length ? k.skewFromAxis(-n.sk.v * o[0], n.sa.v * o[1]) : k.skewFromAxis(-n.sk.v * o, n.sa.v * o)), n.r.propType && (o.length ? k.rotateZ(-n.r.v * o[2]) : k.rotateZ(-n.r.v * o)), n.ry.propType && (o.length ? k.rotateY(n.ry.v * o[1]) : k.rotateY(n.ry.v * o)), n.rx.propType && (o.length ? k.rotateX(n.rx.v * o[0]) : k.rotateX(n.rx.v * o)), n.o.propType && (o.length ? u += (n.o.v * o[0] - u) * o[0] : u += (n.o.v * o - u) * o), e.strokeWidthAnim && n.sw.propType && (o.length ? p += n.sw.v * o[0] : p += n.sw.v * o), e.strokeColorAnim && n.sc.propType) + if (n = b[r].a, o = b[r].s.getMult(E[C].anIndexes[r], x.a[r].s.totalChars), n.sk.propType && (o.length ? w.skewFromAxis(-n.sk.v * o[0], n.sa.v * o[1]) : w.skewFromAxis(-n.sk.v * o, n.sa.v * o)), n.r.propType && (o.length ? w.rotateZ(-n.r.v * o[2]) : w.rotateZ(-n.r.v * o)), n.ry.propType && (o.length ? w.rotateY(n.ry.v * o[1]) : w.rotateY(n.ry.v * o)), n.rx.propType && (o.length ? w.rotateX(n.rx.v * o[0]) : w.rotateX(n.rx.v * o)), n.o.propType && (o.length ? u += (n.o.v * o[0] - u) * o[0] : u += (n.o.v * o - u) * o), e.strokeWidthAnim && n.sw.propType && (o.length ? p += n.sw.v * o[0] : p += n.sw.v * o), e.strokeColorAnim && n.sc.propType) for (f = 0; f < 3; f += 1) o.length ? d[f] += (n.sc.v[f] - d[f]) * o[0] : d[f] += (n.sc.v[f] - d[f]) * o; if (e.fillColorAnim && e.fc) { if (n.fc.propType) @@ -22621,24 +22869,24 @@ n.fh.propType && (h = o.length ? V(h, n.fh.v * o[0]) : V(h, n.fh.v * o)), n.fs.propType && (h = o.length ? F(h, n.fs.v * o[0]) : F(h, n.fs.v * o)), n.fb.propType && (h = o.length ? z(h, n.fb.v * o[0]) : z(h, n.fb.v * o)) } } - for (r = 0; r < i; r += 1)(n = b[r].a).p.propType && (o = b[r].s.getMult(E[C].anIndexes[r], x.a[r].s.totalChars), this._hasMaskedPath ? o.length ? k.translate(0, n.p.v[1] * o[0], -n.p.v[2] * o[1]) : k.translate(0, n.p.v[1] * o, -n.p.v[2] * o) : o.length ? k.translate(n.p.v[0] * o[0], n.p.v[1] * o[1], -n.p.v[2] * o[2]) : k.translate(n.p.v[0] * o, n.p.v[1] * o, -n.p.v[2] * o)); + for (r = 0; r < i; r += 1)(n = b[r].a).p.propType && (o = b[r].s.getMult(E[C].anIndexes[r], x.a[r].s.totalChars), this._hasMaskedPath ? o.length ? w.translate(0, n.p.v[1] * o[0], -n.p.v[2] * o[1]) : w.translate(0, n.p.v[1] * o, -n.p.v[2] * o) : o.length ? w.translate(n.p.v[0] * o[0], n.p.v[1] * o[1], -n.p.v[2] * o[2]) : w.translate(n.p.v[0] * o, n.p.v[1] * o, -n.p.v[2] * o)); if (e.strokeWidthAnim && (m = p < 0 ? 0 : p), e.strokeColorAnim && (g = "rgb(" + Math.round(255 * d[0]) + "," + Math.round(255 * d[1]) + "," + Math.round(255 * d[2]) + ")"), e.fillColorAnim && e.fc && (v = "rgb(" + Math.round(255 * h[0]) + "," + Math.round(255 * h[1]) + "," + Math.round(255 * h[2]) + ")"), this._hasMaskedPath) { - if (k.translate(0, -e.ls), k.translate(0, _[1] * Y * .01 + I, 0), this._pathData.p.v) { + if (w.translate(0, -e.ls), w.translate(0, _[1] * Y * .01 + I, 0), this._pathData.p.v) { var de = 180 * Math.atan((R.point[1] - M.point[1]) / (R.point[0] - M.point[0])) / Math.PI; - R.point[0] < M.point[0] && (de += 180), k.rotate(-de * Math.PI / 180) + R.point[0] < M.point[0] && (de += 180), w.rotate(-de * Math.PI / 180) } - k.translate(l, c, 0), T -= _[0] * E[C].an * .005, E[C + 1] && Z !== E[C + 1].ind && (T += E[C].an / 2 + .001 * e.tr * e.finalSize) + w.translate(l, c, 0), T -= _[0] * E[C].an * .005, E[C + 1] && Z !== E[C + 1].ind && (T += E[C].an / 2 + .001 * e.tr * e.finalSize) } else { - switch (k.translate(O, I, 0), e.ps && k.translate(e.ps[0], e.ps[1] + e.ascent, 0), e.j) { + switch (w.translate(O, I, 0), e.ps && w.translate(e.ps[0], e.ps[1] + e.ascent, 0), e.j) { case 1: - k.translate(E[C].animatorJustifyOffset + e.justifyOffset + (e.boxWidth - e.lineWidths[E[C].line]), 0, 0); + w.translate(E[C].animatorJustifyOffset + e.justifyOffset + (e.boxWidth - e.lineWidths[E[C].line]), 0, 0); break; case 2: - k.translate(E[C].animatorJustifyOffset + e.justifyOffset + (e.boxWidth - e.lineWidths[E[C].line]) / 2, 0, 0) + w.translate(E[C].animatorJustifyOffset + e.justifyOffset + (e.boxWidth - e.lineWidths[E[C].line]) / 2, 0, 0) } - k.translate(0, -e.ls), k.translate(s, 0, 0), k.translate(_[0] * E[C].an * .005, _[1] * Y * .01, 0), O += E[C].l + .001 * e.tr * e.finalSize + w.translate(0, -e.ls), w.translate(s, 0, 0), w.translate(_[0] * E[C].an * .005, _[1] * Y * .01, 0), O += E[C].l + .001 * e.tr * e.finalSize } - "html" === w ? ne = k.toCSS() : "svg" === w ? ne = k.to2dCSS() : re = [k.props[0], k.props[1], k.props[2], k.props[3], k.props[4], k.props[5], k.props[6], k.props[7], k.props[8], k.props[9], k.props[10], k.props[11], k.props[12], k.props[13], k.props[14], k.props[15]], y = u + "html" === k ? ne = w.toCSS() : "svg" === k ? ne = w.to2dCSS() : re = [w.props[0], w.props[1], w.props[2], w.props[3], w.props[4], w.props[5], w.props[6], w.props[7], w.props[8], w.props[9], w.props[10], w.props[11], w.props[12], w.props[13], w.props[14], w.props[15]], y = u } S <= C ? (a = new sn(y, m, g, v, ne, re), this.renderedLetters.push(a), S += 1, this.lettersChangedFlag = !0) : (a = this.renderedLetters[C], this.lettersChangedFlag = a.update(y, m, g, v, ne, re) || this.lettersChangedFlag) } @@ -22784,10 +23032,10 @@ var p = this.textSpans.length; for (f = 0; f < m; f += 1) { if (this.textSpans[f] || (this.textSpans[f] = { - span: null, - childSpan: null, - glyph: null - }), !a || !s || 0 === f) { + span: null, + childSpan: null, + glyph: null + }), !a || !s || 0 === f) { if (g = p > f ? this.textSpans[f].span : $(a ? "g" : "text"), p <= f) { if (g.setAttribute("stroke-linecap", "butt"), g.setAttribute("stroke-linejoin", "round"), g.setAttribute("stroke-miterlimit", "4"), this.textSpans[f].span = g, a) { var h = $("g"); @@ -22812,25 +23060,25 @@ } s && g && g.setAttribute("d", "") } else { - var k = this.textContainer, - w = "start"; + var w = this.textContainer, + k = "start"; switch (e.j) { case 1: - w = "end"; + k = "end"; break; case 2: - w = "middle"; + k = "middle"; break; default: - w = "start" + k = "start" } - k.setAttribute("text-anchor", w), k.setAttribute("letter-spacing", d); + w.setAttribute("text-anchor", k), w.setAttribute("letter-spacing", d); var S = this.buildTextContents(e.finalText); - for (f = 0, m = S.length, c = e.ps ? e.ps[1] + e.ascent : 0; f < m; f += 1)(g = this.textSpans[f].span || $("tspan")).textContent = S[f], g.setAttribute("x", 0), g.setAttribute("y", c), g.style.display = "inherit", k.appendChild(g), this.textSpans[f] || (this.textSpans[f] = { + for (f = 0, m = S.length, c = e.ps ? e.ps[1] + e.ascent : 0; f < m; f += 1)(g = this.textSpans[f].span || $("tspan")).textContent = S[f], g.setAttribute("x", 0), g.setAttribute("y", c), g.style.display = "inherit", w.appendChild(g), this.textSpans[f] || (this.textSpans[f] = { span: null, glyph: null }), this.textSpans[f].span = g, c += e.finalLineHeight; - this.layerElement.appendChild(k) + this.layerElement.appendChild(w) } for (; f < this.textSpans.length;) this.textSpans[f].span.style.display = "none", f += 1; this._sizeChanged = !0 @@ -22969,30 +23217,30 @@ return new _n(e, this.globalData, this) }, Q.svg = bn, De.registerModifier("tm", Ne), De.registerModifier("pb", je), De.registerModifier("rp", Fe), De.registerModifier("rd", ze), De.registerModifier("zz", et), De.registerModifier("op", ct), Ie }()); - var Xo = (so = Zo.exports) && so.__esModule && Object.prototype.hasOwnProperty.call(so, "default") ? so.default : so; - let Jo = (0, Ee.createContext)(null), - es = ({ - children: e, - ...t - }) => { + var Ho = (cp = Wo.exports) && cp.__esModule && Object.prototype.hasOwnProperty.call(cp, "default") ? cp.default : cp; + let Ko = (0, Ee.createContext)(null), + Yo = ({ + children: e, + ...t + }) => { let n = (({ - direction: e, - reduceMotion: t - }) => ((0, Ee.useEffect)((() => { + direction: e, + reduceMotion: t + }) => ((0, Ee.useEffect)((() => { e ? document.documentElement.setAttribute("dir", e) : document.documentElement.removeAttribute("dir"), t ? (document.documentElement.style.setProperty("--sol-prefers-reduced-motion", t.unessentialAnimationsDisabled ? "reduce" : "no-preference"), document.documentElement.style.setProperty("--sol-motion-transition-effects", t.wipeAnimationsDisabled ? "disabled" : "enabled"), document.documentElement.style.setProperty("--sol-motion-anim-wipe-duration", t.wipeAnimationsDisabled ? "0" : "var(--sol-motion-1500)")) : document.documentElement.style.removeProperty("--sol-prefers-reduced-motion") }), [e, t]), (0, Ee.useMemo)((() => ({ direction: e, reduceMotion: t })), [e, t])))(t); - return (0, Ee.createElement)(Jo.Provider, { + return (0, Ee.createElement)(Ko.Provider, { value: n }, e) }, - ts = () => (0, Ee.useContext)(Jo) ?? {}, - ns = "loading", - rs = "loaded", - is = "error", - as = (e, { + Qo = () => (0, Ee.useContext)(Ko) ?? {}, + Zo = "loading", + Xo = "loaded", + Jo = "error", + es = (e, { bounce: t, loop: n = !0, isPlaying: r = !0, @@ -23008,12 +23256,12 @@ let h = (0, Ee.useRef)(), f = (0, Ee.useRef)(null), m = (0, Ee.useRef)(!1), - g = ts().reduceMotion?.unessentialAnimationsDisabled, - [v, y] = (0, Ee.useState)(ns), - _ = !e || g && !a || v === is; + g = Qo().reduceMotion?.unessentialAnimationsDisabled, + [v, y] = (0, Ee.useState)(Zo), + _ = !e || g && !a || v === Jo; (0, Ee.useEffect)((() => { if (!f.current || !e || _) return; - h.current = Xo.loadAnimation({ + h.current = Ho.loadAnimation({ ..."string" == typeof e ? { path: e } : { @@ -23028,10 +23276,10 @@ } }); let r = () => { - y(is), o && o() + y(Jo), o && o() }, i = () => { - y(rs), s && s() + y(Xo), s && s() }, a = () => { if (m.current) return h.current?.stop(), m.current = !1, void(d && d()); @@ -23047,32 +23295,32 @@ x = (0, Ee.useCallback)((() => { h.current?.pause(), u && u() }), [u]), - k = (0, Ee.useCallback)((() => { + w = (0, Ee.useCallback)((() => { h.current && i ? m.current = !0 : (h.current?.stop(), d && d()) }), [d, i]); - (0, Ee.useEffect)((() => v === rs && r ? b() : k()), [r, g, b, v, k]); - let w = (0, Ee.useCallback)((({ - children: e, - ...t - }) => (0, Ee.createElement)("span", { + (0, Ee.useEffect)((() => v === Xo && r ? b() : w()), [r, g, b, v, w]); + let k = (0, Ee.useCallback)((({ + children: e, + ...t + }) => (0, Ee.createElement)("span", { children: _ ? e : null, ref: _ ? void 0 : f, ...t })), [_]); - return (0, Ee.useMemo)((() => Object.assign(w, { - Animation: w, + return (0, Ee.useMemo)((() => Object.assign(k, { + Animation: k, animation: h, ref: f, start: b, pause: x, - stop: k - })), [w, x, b, k]) + stop: w + })), [k, x, b, w]) }, - os = (...e) => (0, Ee.useMemo)((() => jo(...e)), e), - ss = ({ - ref: e, - onScroll: t - } = {}) => { + ts = (...e) => (0, Ee.useMemo)((() => To(...e)), e), + ns = ({ + ref: e, + onScroll: t + } = {}) => { let [n, r] = (0, Ee.useState)({ blockStart: !0, blockEnd: !1, @@ -23113,7 +23361,7 @@ inlineEnd: d }) }), [t, a]); - return Bo({ + return Mo({ ref: a, onResize: o }), (0, Ee.useEffect)((() => { @@ -23126,51 +23374,51 @@ ...n })), [a, n]) }, - ls = e => { + rs = e => { let { name: t } = e, n = (0, Ee.useMemo)((() => ({ "data-sol-theme": t - })), [t]), r = (0, Ee.useCallback)((e => Mo(e, n)), [n]); + })), [t]), r = (0, Ee.useCallback)((e => Ro(e, n)), [n]); return (0, Ee.useMemo)((() => ({ ...e, props: n, getProps: r })), [e, n, r]) }, - cs = (0, Ee.createContext)(null), - us = ({ - children: e, - ...t - }) => { - let n = null === (0, Ee.useContext)(cs), - r = ls(t); - return Vo((() => { + is = (0, Ee.createContext)(null), + as = ({ + children: e, + ...t + }) => { + let n = null === (0, Ee.useContext)(is), + r = rs(t); + return No((() => { if (n) return Object.entries(r.props).forEach((([e, t]) => document.documentElement.setAttribute(e, String(t)))), () => Object.keys(r.props).forEach((e => document.documentElement.removeAttribute(e))) - }), [n, r.props]), (0, Ee.createElement)(cs.Provider, { + }), [n, r.props]), (0, Ee.createElement)(is.Provider, { value: r }, "function" == typeof e ? e(r) : e) }, - ds = () => { - let e = ls({}); - return (0, Ee.useContext)(cs) ?? e + os = () => { + let e = rs({}); + return (0, Ee.useContext)(is) ?? e }, - ps = (0, Ee.forwardRef)((({ - children: e, - disabled: t, - external: n, - href: r, - onClick: i, - ...a - }, o) => { - let s = (0, Ee.useContext)(Yo) ?? "a"; - return t ? po.jsx("a", { + ss = (0, Ee.forwardRef)((({ + children: e, + disabled: t, + external: n, + href: r, + onClick: i, + ...a + }, o) => { + let s = (0, Ee.useContext)($o) ?? "a"; + return t ? io.jsx("a", { "aria-disabled": "true", ref: o, role: "link", ...a, children: e - }) : po.jsx(s, { + }) : io.jsx(s, { href: r, onClick: i, ref: o, @@ -23180,16 +23428,16 @@ children: e }) })), - hs = (0, Ee.forwardRef)((({ - decorative: e, - disabled: t, - disableFocus: n, - loading: r, - ...i - }, a) => { + ls = (0, Ee.forwardRef)((({ + decorative: e, + disabled: t, + disableFocus: n, + loading: r, + ...i + }, a) => { let o = !!r, s = t ?? o; - if ((e => "href" in e)(i)) return po.jsx(ps, { + if ((e => "href" in e)(i)) return io.jsx(ss, { "aria-busy": !!o || void 0, disabled: s, ref: a, @@ -23200,7 +23448,7 @@ onClick: l, ...c } = i; - return po.jsx(e ? "span" : "button", { + return io.jsx(e ? "span" : "button", { "aria-busy": !!o || void 0, "aria-disabled": !!s || void 0, onClick: s ? void 0 : l, @@ -23211,33 +23459,33 @@ }) })); eo("@layer sol.components{.sol-c-icon{--_size:var(--sol-c-icon-size,var(--sol-size-100));display:inline-block;flex-shrink:0;height:var(--_size);width:var(--_size)}.sol-c-icon,.sol-c-icon [fill]:not([fill=none]){fill:currentColor}.sol-c-icon [stroke]:not([stroke=none]){stroke:currentColor}}"); - let fs = (0, Ee.forwardRef)((({ - isPlaying: e, - source: t, - ...n - }, r) => { + let cs = (0, Ee.forwardRef)((({ + isPlaying: e, + source: t, + ...n + }, r) => { let { ref: i - } = as(t, { + } = es(t, { isPlaying: e }); - return po.jsx("span", { - ref: jo(i, r), + return io.jsx("span", { + ref: To(i, r), ...n }) })), - ms = (0, Ee.forwardRef)((({ - className: e, - color: t, - size: n, - source: r, - style: i, - isPlaying: a = !0, - ...o - }, s) => { + us = (0, Ee.forwardRef)((({ + className: e, + color: t, + size: n, + source: r, + style: i, + isPlaying: a = !0, + ...o + }, s) => { let l = { "aria-hidden": !0, - className: Lo("sol-c-icon", t && `sol-u-color-${t}`, e), + className: Ao("sol-c-icon", t && `sol-u-color-${t}`, e), ref: s, style: { ...n && { @@ -23247,9 +23495,9 @@ }, ...o }; - return (0, Ee.isValidElement)(r) ? (0, Ee.cloneElement)(r, l) : "function" == typeof r ? po.jsx(r, { + return (0, Ee.isValidElement)(r) ? (0, Ee.cloneElement)(r, l) : "function" == typeof r ? io.jsx(r, { ...l - }) : po.jsx(fs, { + }) : io.jsx(cs, { isPlaying: a, source: r, ...l, @@ -23257,25 +23505,25 @@ }) })); eo("@layer sol.components{.sol-c-text{--_font-offset:var(--sol-font-offset-primary);font-family:var(--sol-font-family-primary);font-variant-numeric:tabular-nums;letter-spacing:var(--sol-letter-spacing-normal)}.sol-c-text--offset{inset-block-start:var(--_font-offset,0);position:relative}.sol-c-text--heading-l{font:var(--sol-text-heading-l)}.sol-c-text--heading-m{font:var(--sol-text-heading-m)}.sol-c-text--heading-s{font:var(--sol-text-heading-s)}.sol-c-text--heading-xs{font:var(--sol-text-heading-xs)}.sol-c-text--emphasis-l{font:var(--sol-text-emphasis-l)}.sol-c-text--emphasis-m{font:var(--sol-text-emphasis-m)}.sol-c-text--emphasis-s{font:var(--sol-text-emphasis-s)}.sol-c-text--body-l{font:var(--sol-text-body-l)}.sol-c-text--body-l-bold{font:var(--sol-text-body-l-bold)}.sol-c-text--body-m{font:var(--sol-text-body-m)}.sol-c-text--body-m-bold{font:var(--sol-text-body-m-bold)}.sol-c-text--body-s{font:var(--sol-text-body-s)}.sol-c-text--body-s-bold{font:var(--sol-text-body-s-bold)}.sol-c-text--body-xs{font:var(--sol-text-body-xs)}.sol-c-text--body-xs-bold{font:var(--sol-text-body-xs-bold)}.sol-c-text--body-xxs{font:var(--sol-text-body-xxs)}.sol-c-text--body-xxs-bold{font:var(--sol-text-body-xxs-bold)}.sol-c-text--button-m{font:var(--sol-text-button-m)}.sol-c-text--button-s{font:var(--sol-text-button-s)}.sol-c-text--label-m{font:var(--sol-text-label-m)}.sol-c-text--label-s{font:var(--sol-text-label-s)}.sol-c-text--label-xs{font:var(--sol-text-label-xs)}.sol-c-text--body,.sol-c-text--label{--_font-offset:var(--sol-font-offset-secondary)}.sol-c-text--button{letter-spacing:var(--sol-letter-spacing-button)}.sol-c-text :is(h1,h2,h3,p,ul,ol,blockquote,pre,table):not(:first-child):not([class*=sol-c-]){margin-block-start:var(--sol-size-150)}.sol-c-text h1:not([class*=sol-c-]){font:var(--sol-text-body-l)}.sol-c-text h2:not([class*=sol-c-]){font:var(--sol-text-body-m)}.sol-c-text h3:not([class*=sol-c-]){font:var(--sol-text-body-s)}.sol-c-text :is(b,strong):not([class*=sol-c-]){font-weight:var(--sol-font-weight-6)}.sol-c-text :is(h1,h2,h3):not([class*=sol-c-]),.sol-c-text.sol-c-text--body :is(b,strong):not([class*=sol-c-]){font-weight:var(--sol-font-weight-7)}.sol-c-text a:not([class*=sol-c-]){border-radius:var(--sol-radius-4);color:var(--sol-color-interactive);cursor:var(--sol-cursor-link);text-decoration:underline;transition:color var(--sol-motion-250)}.sol-c-text a:not([class*=sol-c-]):hover{color:var(--sol-color-interactive-hovered)}.sol-c-text a:not([class*=sol-c-]):active{color:var(--sol-color-interactive-pressed)}.sol-c-text :is(ul,ol):not([class*=sol-c-]){margin-inline-start:var(--sol-size-150)}.sol-c-text :is(ul,ol):not([class*=sol-c-]) :is(ul,ol):not(:first-child){margin-block-start:0}.sol-c-text :is(ul,ol):not([class*=sol-c-]) li,.sol-c-text :is(ul,ol):not([class*=sol-c-]):not(:first-child)+:is(ul,ol){margin-block:var(--sol-size-050)}.sol-c-text ul:not([class*=sol-c-]){list-style-type:disc}.sol-c-text ol:not([class*=sol-c-]){list-style-type:decimal}.sol-c-text blockquote:not([class*=sol-c-]){border-inline-start:var(--sol-border-2) solid var(--sol-color-accent-1);padding-inline-start:var(--sol-size-100)}.sol-c-text pre:not([class*=sol-c-]){background-color:var(--sol-color-surface-2);border-radius:var(--sol-radius-4);padding:var(--sol-size-100)}.sol-c-text table[style*=background-color]:not([class*=sol-c-]){background-color:var(--sol-color-surface-2)!important;border-radius:var(--sol-radius-4)}.sol-c-text table[style*=background-color]:not([class*=sol-c-]) td{color:inherit!important;padding:var(--sol-size-100)}.sol-c-text table[style*=background-color]:not([class*=sol-c-]) [style*=color]{color:inherit!important}.sol-c-text hr:not([class*=sol-c-]){block-size:0;border-block-start-width:var(--sol-border-1);color:var(--sol-color-surface-3);margin-block:var(--sol-size-150)}}"); - let gs = No((({ - align: e, - as: t, - children: n, - className: r, - color: i, - decoration: a, - italic: o, - style: s, - multiline: l, - offset: c, - transform: u, - truncate: d, - variant: p = "body-m", - visuallyHidden: h, - ...f - }, m) => { + let ds = Po((({ + align: e, + as: t, + children: n, + className: r, + color: i, + decoration: a, + italic: o, + style: s, + multiline: l, + offset: c, + transform: u, + truncate: d, + variant: p = "body-m", + visuallyHidden: h, + ...f + }, m) => { let g = (0, Ee.useMemo)((() => t || (h && !l ? "span" : l ? "div" : "p")), [t, l, h]), - v = Lo("sol-c-text", `sol-c-text--${p.split("-").shift()}`, `sol-c-text--${p}`, l && "sol-c-text--multiline", c && "sol-c-text--offset", e && `sol-u-text-align-${e}`, i && `sol-u-color-${i}`, a && `sol-u-text-decoration-${a}`, o && (o ? "sol-u-font-style-italic" : "sol-u-font-style-normal"), u && `sol-u-text-transform-${u}`, d && "sol-u-text-truncate", h && "sol-u-hide-visually", r), + v = Ao("sol-c-text", `sol-c-text--${p.split("-").shift()}`, `sol-c-text--${p}`, l && "sol-c-text--multiline", c && "sol-c-text--offset", e && `sol-u-text-align-${e}`, i && `sol-u-color-${i}`, a && `sol-u-text-decoration-${a}`, o && (o ? "sol-u-font-style-italic" : "sol-u-font-style-normal"), u && `sol-u-text-transform-${u}`, d && "sol-u-text-truncate", h && "sol-u-hide-visually", r), y = { ...d && "number" == typeof d && d > 1 && { "--sol-u-text-truncate": d @@ -23289,36 +23537,36 @@ ...f }, n) })), - vs = "center", - ys = "default", - _s = "medium", - bs = "default", - xs = (0, Ee.forwardRef)((({ - align: e = vs, - children: t, - className: n, - color: r = ys, - controlled: i, - disableOffset: a, - endIcon: o, - fullWidth: s, - loading: l, - loadingIcon: c = Eo, - loadingIconAnimation: u = !0, - onMouseEnter: d, - onMouseLeave: p, - selected: h, - size: f = _s, - icon: m, - iconAnimation: g = !0, - uppercase: v, - variant: y = bs, - ..._ - }, b) => { - let [x, k] = (0, Ee.useState)(!1), w = (0, Ee.useCallback)((e => { - k(!0), d?.(e) + ps = "center", + hs = "default", + fs = "medium", + ms = "default", + gs = (0, Ee.forwardRef)((({ + align: e = ps, + children: t, + className: n, + color: r = hs, + controlled: i, + disableOffset: a, + endIcon: o, + fullWidth: s, + loading: l, + loadingIcon: c = bo, + loadingIconAnimation: u = !0, + onMouseEnter: d, + onMouseLeave: p, + selected: h, + size: f = fs, + icon: m, + iconAnimation: g = !0, + uppercase: v, + variant: y = ms, + ..._ + }, b) => { + let [x, w] = (0, Ee.useState)(!1), k = (0, Ee.useCallback)((e => { + w(!0), d?.(e) }), [d]), S = (0, Ee.useCallback)((e => { - k(!1), p?.(e) + w(!1), p?.(e) }), [p]), E = "string" == typeof l, O = l && c ? c : m, I = (0, Ee.useMemo)((() => { if (l) switch (u) { case "hover": @@ -23344,24 +23592,24 @@ case "small": return "button-s" } - }), [f]), A = Lo("sol-c-button", e && e !== vs && `sol-c-button--align-${e}`, r && r !== ys && `sol-c-button--${r}`, i && "sol-c-button--controlled", s && "sol-c-button--full-width", f && f !== _s && `sol-c-button--${f}`, y && y !== bs && `sol-c-button--${y}`, n); - return po.jsxs(hs, { + }), [f]), A = Ao("sol-c-button", e && e !== ps && `sol-c-button--align-${e}`, r && r !== hs && `sol-c-button--${r}`, i && "sol-c-button--controlled", s && "sol-c-button--full-width", f && f !== fs && `sol-c-button--${f}`, y && y !== ms && `sol-c-button--${y}`, n); + return io.jsxs(ls, { "aria-pressed": h, className: A, loading: !!l, - onMouseEnter: w, + onMouseEnter: k, onMouseLeave: S, ref: b, ..._, - children: [O && po.jsx(ms, { + children: [O && io.jsx(us, { className: "sol-c-button__icon sol-c-button__icon--start", isPlaying: I, source: O - }), E && po.jsx("span", { + }), E && io.jsx("span", { className: "sol-u-hide-visually", role: "status", children: l - }), t && po.jsx(gs, { + }), t && io.jsx(ds, { "aria-hidden": E, as: "span", className: "sol-c-button__content", @@ -23369,18 +23617,18 @@ transform: v || "default" === y ? "uppercase" : void 0, variant: C, children: t - }), o && po.jsx(ms, { + }), o && io.jsx(us, { className: "sol-c-button__icon sol-c-button__icon--end", source: o })] }) })), - ks = e => "object" == typeof e && null != e && 1 === e.nodeType, - ws = (e, t) => (!t || "hidden" !== e) && "visible" !== e && "clip" !== e, - Ss = (e, t) => { + vs = e => "object" == typeof e && null != e && 1 === e.nodeType, + ys = (e, t) => (!t || "hidden" !== e) && "visible" !== e && "clip" !== e, + _s = (e, t) => { if (e.clientHeight < e.scrollHeight || e.clientWidth < e.scrollWidth) { let n = getComputedStyle(e, null); - return ws(n.overflowY, t) || ws(n.overflowX, t) || (e => { + return ys(n.overflowY, t) || ys(n.overflowX, t) || (e => { let t = (e => { if (!e.ownerDocument || !e.ownerDocument.defaultView) return null; try { @@ -23394,12 +23642,12 @@ } return !1 }, - Es = (e, t, n, r, i, a, o, s) => a < e && o > t || a > e && o < t ? 0 : a <= e && s <= n || o >= t && s >= n ? a - e - r : o > t && s < n || a < e && s > n ? o - t + i : 0, - Os = e => { + bs = (e, t, n, r, i, a, o, s) => a < e && o > t || a > e && o < t ? 0 : a <= e && s <= n || o >= t && s >= n ? a - e - r : o > t && s < n || a < e && s > n ? o - t + i : 0, + xs = e => { let t = e.parentElement; return null == t ? e.getRootNode().host || null : t }, - Is = (e, t) => { + ws = (e, t) => { var n, r, i, a; if ("undefined" == typeof document) return []; let { @@ -23409,16 +23657,16 @@ boundary: c, skipOverflowHiddenElements: u } = t, d = "function" == typeof c ? c : e => e !== c; - if (!ks(e)) throw TypeError("Invalid target"); + if (!vs(e)) throw TypeError("Invalid target"); let p = document.scrollingElement || document.documentElement, h = [], f = e; - for (; ks(f) && d(f);) { - if ((f = Os(f)) === p) { + for (; vs(f) && d(f);) { + if ((f = xs(f)) === p) { h.push(f); break } - null != f && f === document.body && Ss(f) && !Ss(document.documentElement) || null != f && Ss(f, u) && h.push(f) + null != f && f === document.body && _s(f) && !_s(document.documentElement) || null != f && _s(f, u) && h.push(f) } let m = null != (r = null == (n = window.visualViewport) ? void 0 : n.width) ? r : innerWidth, g = null != (a = null == (i = window.visualViewport) ? void 0 : i.height) ? a : innerHeight, @@ -23430,8 +23678,8 @@ height: _, width: b, top: x, - right: k, - bottom: w, + right: w, + bottom: k, left: S } = e.getBoundingClientRect(), { @@ -23448,8 +23696,8 @@ left: parseFloat(t.scrollMarginLeft) || 0 } })(e), - A = "start" === s || "nearest" === s ? x - E : "end" === s ? w + I : x + _ / 2 - E + I, - P = "center" === l ? S + b / 2 - C + O : "end" === l ? k + O : S - C, + A = "start" === s || "nearest" === s ? x - E : "end" === s ? k + I : x + _ / 2 - E + I, + P = "center" === l ? S + b / 2 - C + O : "end" === l ? w + O : S - C, T = []; for (let R = 0; R < h.length; R++) { let e = h[R], @@ -23461,7 +23709,7 @@ bottom: a, left: c } = e.getBoundingClientRect(); - if ("if-needed" === o && x >= 0 && S >= 0 && w <= g && k <= m && x >= r && w <= a && S >= c && k <= i) break; + if ("if-needed" === o && x >= 0 && S >= 0 && k <= g && w <= m && x >= r && k <= a && S >= c && w <= i) break; let u = getComputedStyle(e), d = parseInt(u.borderLeftWidth, 10), f = parseInt(u.borderTopWidth, 10), @@ -23473,9 +23721,9 @@ L = "offsetHeight" in e ? e.offsetHeight - e.clientHeight - f - O : 0, N = "offsetWidth" in e ? 0 === e.offsetWidth ? 0 : n / e.offsetWidth : 0, j = "offsetHeight" in e ? 0 === e.offsetHeight ? 0 : t / e.offsetHeight : 0; - if (p === e) I = "start" === s ? A : "end" === s ? A - g : "nearest" === s ? Es(y, y + g, g, f, O, y + A, y + A + _, _) : A - g / 2, C = "start" === l ? P : "center" === l ? P - m / 2 : "end" === l ? P - m : Es(v, v + m, m, d, E, v + P, v + P + b, b), I = Math.max(0, I + y), C = Math.max(0, C + v); + if (p === e) I = "start" === s ? A : "end" === s ? A - g : "nearest" === s ? bs(y, y + g, g, f, O, y + A, y + A + _, _) : A - g / 2, C = "start" === l ? P : "center" === l ? P - m / 2 : "end" === l ? P - m : bs(v, v + m, m, d, E, v + P, v + P + b, b), I = Math.max(0, I + y), C = Math.max(0, C + v); else { - I = "start" === s ? A - r - f : "end" === s ? A - a + O + L : "nearest" === s ? Es(r, a, t, f, O + L, A, A + _, _) : A - (r + t / 2) + L / 2, C = "start" === l ? P - c - d : "center" === l ? P - (c + n / 2) + D / 2 : "end" === l ? P - i + E + D : Es(c, i, n, d, E + D, P, P + b, b); + I = "start" === s ? A - r - f : "end" === s ? A - a + O + L : "nearest" === s ? bs(r, a, t, f, O + L, A, A + _, _) : A - (r + t / 2) + L / 2, C = "start" === l ? P - c - d : "center" === l ? P - (c + n / 2) + D / 2 : "end" === l ? P - i + E + D : bs(c, i, n, d, E + D, P, P + b, b); let { scrollLeft: o, scrollTop: u @@ -23490,19 +23738,19 @@ } return T }, - Cs = (0, Ee.forwardRef)((({ - children: e, - className: t, - id: n, - keepMounted: r, - open: i, - onOpenChange: a, - prefix: o, - scrollIntoView: s, - suffix: l, - title: c, - ...u - }, d) => { + ks = (0, Ee.forwardRef)((({ + children: e, + className: t, + id: n, + keepMounted: r, + open: i, + onOpenChange: a, + prefix: o, + scrollIntoView: s, + suffix: l, + title: c, + ...u + }, d) => { let p = (0, Ee.useRef)(null), h = (0, Ee.useRef)(null), f = (0, Ee.useId)(), @@ -23512,23 +23760,19 @@ register: v, toggle: y, unregister: _ - } = (() => { - let e = (0, Ee.useContext)(ho); - if (!e) throw Error("Accordion components must be wrapped in "); - return e - })(), + } = oo(), b = g(m), - [x, k] = (0, Ee.useState)(!!i); + [x, w] = (0, Ee.useState)(!!i); (0, Ee.useLayoutEffect)((() => (v(m, i), () => _(m))), [m, i, v, _]), (0, Ee.useEffect)((() => { - b && (k(!0), s && p.current && function(e, t) { + b && (w(!0), s && p.current && function(e, t) { if (!e.isConnected || !(e => { - let t = e; - for (; t && t.parentNode;) { - if (t.parentNode === document) return !0; - t = t.parentNode instanceof ShadowRoot ? t.parentNode.host : t.parentNode - } - return !1 - })(e)) return; + let t = e; + for (; t && t.parentNode;) { + if (t.parentNode === document) return !0; + t = t.parentNode instanceof ShadowRoot ? t.parentNode.host : t.parentNode + } + return !1 + })(e)) return; let n = (e => { let t = window.getComputedStyle(e); return { @@ -23538,20 +23782,20 @@ left: parseFloat(t.scrollMarginLeft) || 0 } })(e); - if ("object" == typeof t && "function" == typeof t.behavior) return t.behavior(Is(e, t)); + if ("object" == typeof t && "function" == typeof t.behavior) return t.behavior(ws(e, t)); let r = "boolean" == typeof t || null == t ? void 0 : t.behavior; for (let { - el: i, - top: a, - left: o - } - of Is(e, (e => !1 === e ? { - block: "end", - inline: "nearest" - } : e === Object(e) && 0 !== Object.keys(e).length ? e : { - block: "start", - inline: "nearest" - })(t))) { + el: i, + top: a, + left: o + } + of ws(e, (e => !1 === e ? { + block: "end", + inline: "nearest" + } : e === Object(e) && 0 !== Object.keys(e).length ? e : { + block: "start", + inline: "nearest" + })(t))) { let e = a - n.top + n.bottom, t = o - n.left + n.right; i.scroll({ @@ -23565,31 +23809,31 @@ scrollMode: "if-needed" })), a?.(b) }), [b, a, s]); - let w = (0, Ee.useCallback)((() => y(m)), [m, y]), + let k = (0, Ee.useCallback)((() => y(m)), [m, y]), S = (0, Ee.useCallback)((() => { y(m, !1), h.current?.focus() }), [m, y]), E = (0, Ee.useCallback)((() => { - b || k(!1) + b || w(!1) }), [b]), - O = os(p, d), - I = Lo("sol-c-accordion__item", b && "sol-c-accordion__item--open", t); - return po.jsxs("div", { + O = ts(p, d), + I = Ao("sol-c-accordion__item", b && "sol-c-accordion__item--open", t); + return io.jsxs("div", { className: I, id: m, ref: O, ...u, - children: [po.jsxs("button", { + children: [io.jsxs("button", { "aria-controls": m + "-content", "aria-expanded": b, className: "sol-c-accordion__header", id: m + "-header", - onClick: w, + onClick: k, type: "button", ref: h, children: ["function" == typeof o ? o({ isOpen: b - }) : o, po.jsx(gs, { + }) : o, io.jsx(ds, { as: "span", className: "sol-c-accordion__title", offset: !0, @@ -23599,19 +23843,19 @@ }) : c }), "function" == typeof l ? l({ isOpen: b - }) : l, po.jsx(fo, { + }) : l, io.jsx(so, { className: "sol-c-accordion__icon sol-c-accordion__icon--plus" - }), po.jsx(Oo, { + }), io.jsx(xo, { className: "sol-c-accordion__icon sol-c-accordion__icon--minus" })] - }), po.jsx("div", { + }), io.jsx("div", { "aria-labelledby": m + "-header", className: "sol-c-accordion__content", hidden: !b, id: m + "-content", role: "region", onTransitionEnd: E, - children: (r || x) && po.jsx("div", { + children: (r || x) && io.jsx("div", { className: "sol-c-accordion__wrapper", children: "function" == typeof e ? e({ close: S, @@ -23621,21 +23865,21 @@ })] }) })), - As = (0, Ee.forwardRef)((({ - className: e, - closeAll: t, - children: n, - openAll: r, - ...i - }, a) => { + Ss = (0, Ee.forwardRef)((({ + className: e, + closeAll: t, + children: n, + openAll: r, + ...i + }, a) => { let o = (() => { let [e, t] = (0, Ee.useState)({}), n = (0, Ee.useCallback)(((e, n) => t((t => ({ ...t, [e]: n ?? !1 })))), []), r = (0, Ee.useCallback)((e => t((({ - [e]: t, - ...n - }) => n))), []), i = (0, Ee.useCallback)((t => !!e[t]), [e]), a = (0, Ee.useCallback)(((e, n) => t((t => ({ + [e]: t, + ...n + }) => n))), []), i = (0, Ee.useCallback)((t => !!e[t]), [e]), a = (0, Ee.useCallback)(((e, n) => t((t => ({ ...t, [e]: n ?? !t[e] })))), []), o = (0, Ee.useCallback)((t => Object.entries(e).forEach((([e, n]) => a(e, t ?? !n)))), [e, a]); @@ -23651,23 +23895,23 @@ openAll: () => o(!0) })), [i, e, n, a, o, r]) })(), - s = Lo("sol-c-accordion", e); - return po.jsx(ho.Provider, { + s = Ao("sol-c-accordion", e); + return io.jsx(ao.Provider, { value: o, - children: po.jsxs("div", { + children: io.jsxs("div", { className: s, ref: a, ...i, - children: [o.size > 2 && po.jsxs("div", { + children: [o.size > 2 && io.jsxs("div", { className: "sol-c-accordion__actions", - children: [r && po.jsx(xs, { + children: [r && io.jsx(gs, { className: "sol-c-accordion__action", disabled: o.allOpen, onClick: o.openAll, size: "small", variant: "plain", children: r - }), t && po.jsx(xs, { + }), t && io.jsx(gs, { className: "sol-c-accordion__action", disabled: o.allClosed, onClick: o.closeAll, @@ -23675,7 +23919,7 @@ variant: "plain", children: t })] - }), po.jsx("div", { + }), io.jsx("div", { className: "sol-c-accordion__items", children: n })] @@ -23683,46 +23927,46 @@ }) })); eo("@layer sol.components{.sol-c-app-header{-webkit-app-region:drag;background:var(--sol-color-surface-1);box-shadow:var(--sol-shadow-100);padding:var(--sol-size-050);position:relative}.sol-c-app-header>*{-webkit-app-region:no-drag;opacity:0}.sol-c-app-header>:first-child{animation:sol-motion-fade-in var(--sol-motion-350) var(--sol-motion-ease-out) forwards;animation-delay:.4s}.sol-c-app-header>:nth-child(2){animation:sol-motion-fade-in var(--sol-motion-350) var(--sol-motion-ease-out) forwards;animation-delay:.5s}.sol-c-app-header>:nth-child(3){animation:sol-motion-fade-in var(--sol-motion-350) var(--sol-motion-ease-out) forwards;animation-delay:.6s}.sol-c-app-header>:nth-child(4){animation:sol-motion-fade-in var(--sol-motion-350) var(--sol-motion-ease-out) forwards;animation-delay:.7s}.sol-c-app-header>:nth-child(5){animation:sol-motion-fade-in var(--sol-motion-350) var(--sol-motion-ease-out) forwards;animation-delay:.8s}.sol-c-app-header>:nth-child(6){animation:sol-motion-fade-in var(--sol-motion-350) var(--sol-motion-ease-out) forwards;animation-delay:.9s}.sol-c-app-header>:nth-child(7){animation:sol-motion-fade-in var(--sol-motion-350) var(--sol-motion-ease-out) forwards;animation-delay:1s}.sol-c-app-header>:nth-child(8){animation:sol-motion-fade-in var(--sol-motion-350) var(--sol-motion-ease-out) forwards;animation-delay:1.1s}.sol-c-app-header>:nth-child(9){animation:sol-motion-fade-in var(--sol-motion-350) var(--sol-motion-ease-out) forwards;animation-delay:1.2s}.sol-c-app-header>:nth-child(10){animation:sol-motion-fade-in var(--sol-motion-350) var(--sol-motion-ease-out) forwards;animation-delay:1.3s}[data-sol-dialog] .sol-c-app-header{-webkit-app-region:no-drag}.sol-c-app-header__actions{-webkit-app-region:drag;margin-inline-start:auto}.sol-c-app-header__item{-webkit-app-region:no-drag;position:relative;z-index:1}.sol-c-app-header__item--always-on-top{z-index:var(--sol-z-actions)}.sol-c-app-header__separator{background-color:var(--sol-color-surface-2);block-size:100%;inline-size:var(--sol-border-1)}.sol-c-app-header__item--rsi-logo .sol-c-icon{transition:transform var(--sol-motion-250) var(--sol-motion-ease-out),opacity var(--sol-motion-250) var(--sol-motion-ease-out)}.sol-c-app-header__item--rsi-logo .sol-c-icon--arrow-up{opacity:0;position:absolute;right:0;transform:translateY(calc(var(--sol-size-075)*-1))}.sol-c-app-header__item--rsi-logo[aria-expanded=true] .sol-c-icon--arrow-down{opacity:0;transform:translateY(var(--sol-size-075))}.sol-c-app-header__item--rsi-logo[aria-expanded=true] .sol-c-icon--arrow-up{opacity:1;transform:translateY(0)}}"), eo("@layer sol.components{.sol-c-stack{display:flex;gap:var(--sol-c-stack-gap);min-inline-size:0}.sol-c-stack--align-start{align-items:flex-start}.sol-c-stack--align-center{align-items:center}.sol-c-stack--align-end{align-items:flex-end}.sol-c-stack--align-stretch{align-items:stretch}.sol-c-stack--align-baseline{align-items:baseline}.sol-c-stack--justify-start{justify-content:flex-start}.sol-c-stack--justify-center{justify-content:center}.sol-c-stack--justify-end{justify-content:flex-end}.sol-c-stack--justify-space-between{justify-content:space-between}.sol-c-stack--justify-space-around{justify-content:space-around}.sol-c-stack--justify-space-evenly{justify-content:space-evenly}.sol-c-stack--vertical{flex-direction:column}.sol-c-stack--reverse{flex-direction:row-reverse}.sol-c-stack--reverse.sol-c-stack--vertical{flex-direction:column-reverse}.sol-c-stack--wrap{flex-wrap:wrap}.sol-c-stack__item{flex:0 0 auto}.sol-c-stack__item--start{align-self:flex-start}.sol-c-stack__item--center{align-self:center}.sol-c-stack__item--end{align-self:flex-end}.sol-c-stack__item--stretch{align-self:stretch}.sol-c-stack__item--baseline{align-self:baseline}.sol-c-stack__item--fill{flex:1 1 auto}}"); - No((({ - align: e, - as: t = "div", - className: n, - children: r, - fill: i, - ...a - }, o) => { - let s = Lo("sol-c-stack__item", e && `sol-c-stack__item--${e}`, i && "sol-c-stack__item--fill", n); + Po((({ + align: e, + as: t = "div", + className: n, + children: r, + fill: i, + ...a + }, o) => { + let s = Ao("sol-c-stack__item", e && `sol-c-stack__item--${e}`, i && "sol-c-stack__item--fill", n); return (0, Ee.createElement)(t, { className: s, ref: o, ...a }, r) })); - let Ps = No((({ - align: e, - as: t = "div", - children: n, - className: r, - gap: i, - justify: a, - reverse: o, - vertical: s, - wrap: l, - ...c - }, u) => { - let d = Lo("sol-c-stack", e && `sol-c-stack--align-${e}`, a && `sol-c-stack--justify-${a}`, o && "sol-c-stack--reverse", s && "sol-c-stack--vertical", l && "sol-c-stack--wrap", i && `sol-u-gap-${i}`, r); + let Es = Po((({ + align: e, + as: t = "div", + children: n, + className: r, + gap: i, + justify: a, + reverse: o, + vertical: s, + wrap: l, + ...c + }, u) => { + let d = Ao("sol-c-stack", e && `sol-c-stack--align-${e}`, a && `sol-c-stack--justify-${a}`, o && "sol-c-stack--reverse", s && "sol-c-stack--vertical", l && "sol-c-stack--wrap", i && `sol-u-gap-${i}`, r); return (0, Ee.createElement)(t, { className: d, ref: u, ...c }, n) })), - Ts = (0, Ee.forwardRef)((({ - className: e, - ...t - }, n) => { - let r = Lo("sol-c-app-header__actions", e); - return po.jsx(Ps, { + Os = (0, Ee.forwardRef)((({ + className: e, + ...t + }, n) => { + let r = Ao("sol-c-app-header__actions", e); + return io.jsx(Es, { align: "center", className: r, justify: "end", @@ -23731,23 +23975,23 @@ ...t }) })), - Rs = (0, Ee.forwardRef)((({ - alwaysOnTop: e, - children: t, - className: n, - hasAvatar: r, - label: i, - style: a, - ...o - }, s) => { - let l = Lo("sol-c-app-header__item", e && "sol-c-app-header__item--always-on-top", r && "sol-c-app-header__item--avatar", n), + Is = (0, Ee.forwardRef)((({ + alwaysOnTop: e, + children: t, + className: n, + hasAvatar: r, + label: i, + style: a, + ...o + }, s) => { + let l = Ao("sol-c-app-header__item", e && "sol-c-app-header__item--always-on-top", r && "sol-c-app-header__item--avatar", n), c = { ...r && { "--sol-c-button-padding": "var(--sol-size-025)" }, ...a }; - return po.jsx(xs, { + return io.jsx(gs, { "aria-label": t && i ? i : void 0, className: l, disableOffset: !!t, @@ -23759,86 +24003,86 @@ children: t ?? i }) })), - Ds = No((({ - as: e = "div", - className: t, - ...n - }, r) => { - let i = Lo("sol-c-app-header__separator", t); - return po.jsx(e, { + Cs = Po((({ + as: e = "div", + className: t, + ...n + }, r) => { + let i = Ao("sol-c-app-header__separator", t); + return io.jsx(e, { "aria-hidden": "true", className: i, ref: r, ...n }) })), - Ls = (0, Ee.forwardRef)((({ - actions: e, - children: t, - className: n, - ...r - }, i) => { - let a = Lo("sol-c-app-header", n); - return po.jsxs(Ps, { + As = (0, Ee.forwardRef)((({ + actions: e, + children: t, + className: n, + ...r + }, i) => { + let a = Ao("sol-c-app-header", n); + return io.jsxs(Es, { as: "header", className: a, gap: "050", ref: i, ...r, - children: [t, e && po.jsx(Ts, { + children: [t, e && io.jsx(Os, { children: e })] }) })); eo("@layer sol.components{.sol-c-app-layout{background:var(--sol-color-background);block-size:100vh;block-size:100dvh;display:flex;flex-direction:column;position:relative}.sol-c-app-layout__header{flex:0;position:relative;z-index:var(--sol-z-header)}.sol-c-app-layout__main{display:flex;flex:1;flex-direction:column;min-block-size:0;overflow:auto;position:relative;z-index:var(--sol-z-main)}}"); - let Ns = (0, Ee.forwardRef)((({ - children: e, - className: t, - header: n, - ...r - }, i) => { - let a = Lo("sol-c-app-layout", t); - return po.jsxs("div", { + let Ps = (0, Ee.forwardRef)((({ + children: e, + className: t, + header: n, + ...r + }, i) => { + let a = Ao("sol-c-app-layout", t); + return io.jsxs("div", { className: a, ref: i, ...r, children: [n && (0, Ee.cloneElement)(n, { className: "sol-c-app-layout__header" - }), po.jsx("main", { + }), io.jsx("main", { className: "sol-c-app-layout__main", children: e })] }) })); eo("@layer sol.components{.sol-c-avatar{--_size:var(--sol-c-avatar-size,var(--sol-size-200));background-color:var(--sol-color-surface-2);border:var(--sol-border-1) solid;border-radius:var(--sol-radius-4);display:inline-block;height:var(--_size);overflow:hidden;position:relative;width:var(--_size)}.sol-c-avatar__image{display:block;height:100%;inset:0;object-fit:cover;opacity:0;position:absolute;transition:opacity var(--sol-motion-250);width:100%}.sol-c-avatar__image--loaded{opacity:1}}"); - let js = No((({ - as: e = "span", - alt: t, - className: n, - src: r, - srcSet: i, - ...a - }, o) => { - let s = Ko({ + let Ts = Po((({ + as: e = "span", + alt: t, + className: n, + src: r, + srcSet: i, + ...a + }, o) => { + let s = Go({ src: r, srcSet: i }), - l = Lo("sol-c-avatar", n); - return po.jsx(e, { + l = Ao("sol-c-avatar", n); + return io.jsx(e, { className: l, - "aria-label": r && s !== Ho ? void 0 : t, + "aria-label": r && s !== Bo ? void 0 : t, ref: o, ...a, - children: r && s !== Ho && po.jsx("img", { + children: r && s !== Bo && io.jsx("img", { alt: t ?? "", - className: Lo("sol-c-avatar__image", s === Wo && "sol-c-avatar__image--loaded"), + className: Ao("sol-c-avatar__image", s === Uo && "sol-c-avatar__image--loaded"), src: r, srcSet: i }) }) })); eo("@layer sol.components{.sol-c-card{--_background-color:var(--sol-color-surface-0);--_border-color:var(--sol-color-surface-2);--_border-radius:var(--sol-radius-8);--_border-width:var(--sol-border-1);--_width:13rem;--_height:18rem;--_media-width:22.375rem;--_overlay-offset:var(--sol-size-150);--_content-width:calc(100% - var(--_media-width) - var(--_border-width));--_background-mask:var(\n --sol-c-card-background-mask,url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cpath stroke='%23000' d='M55.5 32.5v2.492a7.5 7.5 0 0 1-2.419 5.517L38.958 53.517a7.5 7.5 0 0 1-5.08 1.983H8A7.5 7.5 0 0 1 .5 48V8A7.5 7.5 0 0 1 8 .5h40A7.5 7.5 0 0 1 55.5 8v24.5Z'/%3E%3C/svg%3E\") 24 fill\n );--_border-mask:var(--sol-c-card-border-mask,url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cpath fill='none' stroke='%23000' d='M55.5 32.5v2.492a7.5 7.5 0 0 1-2.419 5.517L38.958 53.517a7.5 7.5 0 0 1-5.08 1.983H8A7.5 7.5 0 0 1 .5 48V8A7.5 7.5 0 0 1 8 .5h40A7.5 7.5 0 0 1 55.5 8v24.5Z'/%3E%3C/svg%3E\") 24 fill);--_light-color:var(--sol-color-accent-1);--_light-angle:var(--sol-motion-angle);--_light-size:var(--sol-size-500);border-radius:var(--_border-radius);cursor:var(--sol-cursor-link);inline-size:var(--_width);position:relative}.sol-c-card:after,.sol-c-card:before{border:var(--_border-width) solid;color:var(--_border-color);content:\"\";inset:0;position:absolute;transition:color var(--sol-motion-250) var(--sol-motion-ease)}.sol-c-card:before{border-block-end:0;border-start-end-radius:var(--_border-radius);border-start-start-radius:var(--_border-radius);inset-block-end:50%;z-index:2}.sol-c-card:after{border-block-start:0;border-end-end-radius:var(--_border-radius);border-end-start-radius:var(--_border-radius);inset-block-start:50%;z-index:4}@supports ((-webkit-mask-box-image:var(--_border-mask )) or (mask-border:var(--_border-mask ))){.sol-c-card:after,.sol-c-card:before{-webkit-mask-box-image:var(--_border-mask);border:none;inset-block:0;mask-border:var(--_border-mask);pointer-events:none}.sol-c-card:before{background:linear-gradient(currentColor 50%,#0000 0)}.sol-c-card:after{background:linear-gradient(#0000 50%,currentColor 0)}}.sol-c-card:hover{--_border-color:var(--sol-color-interactive-hovered);--_background-color:var(--sol-color-surface-0-hovered)}.sol-c-card:active{--_border-color:var(--sol-color-interactive-pressed);--_background-color:var(--sol-color-surface-0-pressed)}.sol-c-card:focus,.sol-c-card:focus-within{outline:var(--sol-focus-width) solid var(--sol-focus-color);outline-offset:var(--sol-focus-offset)}.sol-c-card--wide{--_width:35.5rem}.sol-c-card--offline{--_width:auto}.sol-c-card__wrapper{-webkit-mask-box-image:var(--_background-mask);background:var(--_background-color);border-radius:var(--_border-radius);display:flex;mask-border:var(--_background-mask);min-block-size:var(--_height);overflow:hidden;padding:var(--_border-width);transition:background-color var(--sol-motion-250) var(--sol-motion-ease)}.sol-c-card__content{align-items:flex-start;display:flex;flex:1;flex-direction:column;overflow:hidden;padding:var(--sol-size-150);position:relative;z-index:1}@container style(--sol-prefers-reduced-motion: no-preference){.sol-c-card__content:before{--_a:calc(var(--_height)/cos(var(--_light-angle)));--_b:calc(var(--_light-size)*tan(var(--_light-angle)));--_c:calc(var(--_light-size)*cos(var(--_light-angle)));--_light-width:calc(var(--_a) + var(--_b));background:linear-gradient(to right,var(--_light-color),#0000);content:\"\";height:var(--_light-size);left:50%;opacity:0;position:absolute;top:50%;transform:translate(calc(-100% - var(--_c)),-50%) rotate(calc(var(--_light-angle)*-1));width:var(--_light-width);z-index:-1}.sol-c-card:hover .sol-c-card__content:before{animation:sol-c-card-sweep var(--sol-motion-500) var(--sol-motion-linear) both}}@keyframes sol-c-card-sweep{50%{opacity:.4}to{opacity:0;transform:translate(calc(var(--_c)),-50%) rotate(calc(var(--_light-angle)*-1))}}.sol-c-card__heading{margin-block-end:auto}.sol-c-card__link{outline:none}.sol-c-card__media{inline-size:var(--_media-width);overflow:hidden;position:relative}.sol-c-card__media .sol-c-card__image{left:0;position:absolute;top:0}@supports (object-fit:cover){.sol-c-card__media .sol-c-card__image{height:100%;object-fit:cover;width:100%}}.sol-c-card__overlay{-webkit-mask-box-image:var(--_background-mask);clip-path:inset(0 0 0 var(--_content-width));inset:0;inset-block-start:calc(var(--_overlay-offset)*-1);mask-border:var(--_background-mask);overflow:hidden;pointer-events:none;position:absolute;z-index:3}.sol-c-card__overlay .sol-c-card__image{inline-size:calc(var(--_media-width) + var(--_overlay-offset)*2 + var(--_border-width)*2);inset-inline-end:calc(var(--_overlay-offset)*-1);max-inline-size:none;position:absolute;top:0}[dir=rtl] .sol-c-card__overlay{clip-path:inset(0 var(--_content-width) 0 0)}.sol-c-card__image{opacity:0;transition-duration:var(--sol-motion-250);transition-property:opacity}@container style(--sol-prefers-reduced-motion: no-preference){.sol-c-card__image{transform:scale(1.05);transition-property:opacity,transform}}.sol-c-card__image--loaded{opacity:1;transform:scale(1)}.sol-c-card__offline-icon.sol-c-icon{color:var(--sol-color-surface-3);height:var(--sol-size-600);margin:auto 13rem;position:relative;width:var(--sol-size-600)}}"); - var Ms = { + var Rs = { v: "5.9.0", fr: 29.9700012207031, ip: 0, @@ -26260,32 +26504,32 @@ markers: [] }; - function Fs(e) { - return Vs(e) ? (e.nodeName || "").toLowerCase() : "#document" + function Ds(e) { + return Ns(e) ? (e.nodeName || "").toLowerCase() : "#document" } - function zs(e) { + function Ls(e) { var t; return (null == e || null == (t = e.ownerDocument) ? void 0 : t.defaultView) || window } - function Vs(e) { - return e instanceof Node || e instanceof zs(e).Node + function Ns(e) { + return e instanceof Node || e instanceof Ls(e).Node } - function Us(e) { - return e instanceof Element || e instanceof zs(e).Element + function js(e) { + return e instanceof Element || e instanceof Ls(e).Element } - function Bs(e) { - return e instanceof HTMLElement || e instanceof zs(e).HTMLElement + function Ms(e) { + return e instanceof HTMLElement || e instanceof Ls(e).HTMLElement } - function Gs(e) { - return "undefined" != typeof ShadowRoot && (e instanceof ShadowRoot || e instanceof zs(e).ShadowRoot) + function Fs(e) { + return "undefined" != typeof ShadowRoot && (e instanceof ShadowRoot || e instanceof Ls(e).ShadowRoot) } - function $s(e) { + function zs(e) { let t = e.activeElement; for (; null != (null == (n = t) || null == (r = n.shadowRoot) ? void 0 : r.activeElement);) { var n, r; @@ -26294,11 +26538,11 @@ return t } - function qs(e, t) { + function Vs(e, t) { if (!e || !t) return !1; let n = t.getRootNode && t.getRootNode(); if (e.contains(t)) return !0; - if (n && Gs(n)) { + if (n && Fs(n)) { let n = t; for (; n;) { if (e === n) return !0; @@ -26308,26 +26552,26 @@ return !1 } - function Ws() { + function Us() { let e = navigator.userAgentData; return null != e && e.platform ? e.platform : navigator.platform } - function Hs(e) { - return 0 === e.mozInputSource && !!e.isTrusted || (Qs() && e.pointerType ? "click" === e.type && 1 === e.buttons : 0 === e.detail && !e.pointerType) + function Bs(e) { + return 0 === e.mozInputSource && !!e.isTrusted || (qs() && e.pointerType ? "click" === e.type && 1 === e.buttons : 0 === e.detail && !e.pointerType) } - function Ks(e) { - return !Qs() && 0 === e.width && 0 === e.height || 1 === e.width && 1 === e.height && 0 === e.pressure && 0 === e.detail && "mouse" === e.pointerType || e.width < 1 && e.height < 1 && 0 === e.pressure && 0 === e.detail + function Gs(e) { + return !qs() && 0 === e.width && 0 === e.height || 1 === e.width && 1 === e.height && 0 === e.pressure && 0 === e.detail && "mouse" === e.pointerType || e.width < 1 && e.height < 1 && 0 === e.pressure && 0 === e.detail } - function Ys() { + function $s() { return /apple/i.test(navigator.vendor) } - function Qs() { + function qs() { let e = /android/i; - return e.test(Ws()) || e.test(function() { + return e.test(Us()) || e.test(function() { let e = navigator.userAgentData; return e && Array.isArray(e.brands) ? e.brands.map((e => { let { @@ -26339,88 +26583,88 @@ }()) } - function Zs() { - return Ws().toLowerCase().startsWith("mac") && !navigator.maxTouchPoints + function Ws() { + return Us().toLowerCase().startsWith("mac") && !navigator.maxTouchPoints } - function Xs(e, t) { + function Hs(e, t) { let n = ["mouse", "pen"]; return t || n.push("", void 0), n.includes(e) } - function Js(e) { + function Ks(e) { return (null == e ? void 0 : e.ownerDocument) || document } - function el(e, t) { + function Ys(e, t) { return null != t && ("composedPath" in e ? e.composedPath().includes(t) : null != e.target && t.contains(e.target)) } - function tl(e) { + function Qs(e) { return "composedPath" in e ? e.composedPath()[0] : e.target } - function nl(e) { - return Bs(e) && e.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])") + function Zs(e) { + return Ms(e) && e.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])") } - function rl(e) { + function Xs(e) { e.preventDefault(), e.stopPropagation() } eo("@layer sol.components{.sol-c-tooltip{--_background:var(--sol-c-tooltip-background,var(--sol-color-surface-2));--_arrow-size:var(--sol-c-tooltip-size,var(--sol-size-100));--sol-u-transition-floating-offset:var(--sol-size-025);background:var(--_background);border-radius:var(--sol-radius-4);filter:drop-shadow(var(--sol-shadow-050));inline-size:max-content;max-inline-size:17.5rem;padding:var(--sol-size-050);z-index:var(--sol-z-tooltip)}.sol-c-tooltip:not(.sol-c-tooltip--interactive){pointer-events:none}.sol-c-tooltip__arrow{fill:var(--_background);height:var(--_arrow-size);width:var(--_arrow-size)}}"); - let il = Math.floor, - al = Math.min, - ol = Math.max, - sl = Math.round, - ll = Math.floor, - cl = e => ({ + let Js = Math.floor, + el = Math.min, + tl = Math.max, + nl = Math.round, + rl = Math.floor, + il = e => ({ x: e, y: e }), - ul = { + al = { left: "right", right: "left", bottom: "top", top: "bottom" }, - dl = { + ol = { start: "end", end: "start" }; - function pl(e, t) { + function sl(e, t) { return "function" == typeof e ? e(t) : e } - function hl(e) { + function ll(e) { return e.split("-")[0] } - function fl(e) { + function cl(e) { return e.split("-")[1] } - function ml(e) { + function ul(e) { return "x" === e ? "y" : "x" } - function gl(e) { + function dl(e) { return "y" === e ? "height" : "width" } - function vl(e) { - return ["top", "bottom"].includes(hl(e)) ? "y" : "x" + function pl(e) { + return ["top", "bottom"].includes(ll(e)) ? "y" : "x" } - function yl(e) { - return e.replace(/start|end/g, (e => dl[e])) + function hl(e) { + return e.replace(/start|end/g, (e => ol[e])) } - function _l(e) { - return e.replace(/left|right|bottom|top/g, (e => ul[e])) + function fl(e) { + return e.replace(/left|right|bottom|top/g, (e => al[e])) } - function bl(e) { + function ml(e) { return "number" != typeof e ? { top: 0, right: 0, @@ -26435,7 +26679,7 @@ } } - function xl(e) { + function gl(e) { return { ...e, top: e.y, @@ -26445,15 +26689,15 @@ } } - function kl(e, t, n) { + function vl(e, t, n) { let r, { reference: i, floating: a } = e, - o = vl(t), - s = ml(vl(t)), - l = gl(s), - c = hl(t), + o = pl(t), + s = ul(pl(t)), + l = dl(s), + c = ll(t), u = "y" === o, d = i.x + i.width / 2 - a.width / 2, p = i.y + i.height / 2 - a.height / 2, @@ -26489,7 +26733,7 @@ y: i.y } } - switch (fl(t)) { + switch (cl(t)) { case "start": r[s] -= h * (n && u ? -1 : 1); break; @@ -26498,7 +26742,7 @@ } return r } - async function wl(e, t) { + async function yl(e, t) { var n; void 0 === t && (t = {}); let { @@ -26514,7 +26758,7 @@ elementContext: d = "floating", altBoundary: p = !1, padding: h = 0 - } = pl(t, e), f = bl(h), m = s[p ? "floating" === d ? "reference" : "floating" : d], g = xl(await a.getClippingRect({ + } = sl(t, e), f = ml(h), m = s[p ? "floating" === d ? "reference" : "floating" : d], g = gl(await a.getClippingRect({ element: null == (n = await (null == a.isElement ? void 0 : a.isElement(m))) || n ? m : m.contextElement || await (null == a.getDocumentElement ? void 0 : a.getDocumentElement(s.floating)), boundary: c, rootBoundary: u, @@ -26526,7 +26770,7 @@ } : o.reference, y = await (null == a.getOffsetParent ? void 0 : a.getOffsetParent(s.floating)), _ = await (null == a.isElement ? void 0 : a.isElement(y)) && await (null == a.getScale ? void 0 : a.getScale(y)) || { x: 1, y: 1 - }, b = xl(a.convertOffsetParentRelativeRectToViewportRelativeRect ? await a.convertOffsetParentRelativeRectToViewportRelativeRect({ + }, b = gl(a.convertOffsetParentRelativeRectToViewportRelativeRect ? await a.convertOffsetParentRelativeRectToViewportRelativeRect({ rect: v, offsetParent: y, strategy: l @@ -26538,7 +26782,7 @@ right: (b.right - g.right + f.right) / _.x } } - let Sl = e => ({ + let _l = e => ({ name: "arrow", options: e, async fn(t) { @@ -26552,15 +26796,15 @@ } = t, { element: l, padding: c = 0 - } = pl(e, t) || {}; + } = sl(e, t) || {}; if (null == l) return {}; - let u = bl(c), + let u = ml(c), d = { x: n, y: r }, - p = ml(vl(i)), - h = gl(p), + p = ul(pl(i)), + h = dl(p), f = await o.getDimensions(l), m = "y" === p, g = m ? "clientHeight" : "clientWidth", @@ -26570,12 +26814,12 @@ b = _ ? _[g] : 0; b && await (null == o.isElement ? void 0 : o.isElement(_)) || (b = s.floating[g] || a.floating[h]); let x = b / 2 - f[h] / 2 - 1, - k = al(u[m ? "top" : "left"], x), - w = al(u[m ? "bottom" : "right"], x), - S = b - f[h] - w, + w = el(u[m ? "top" : "left"], x), + k = el(u[m ? "bottom" : "right"], x), + S = b - f[h] - k, E = b / 2 - f[h] / 2 + (v / 2 - y / 2), - O = ol(k, al(E, S)), - I = null != fl(i) && E != O && a.reference[h] / 2 - (E < k ? k : w) - f[h] / 2 < 0 ? E < k ? k - E : S - E : 0; + O = tl(w, el(E, S)), + I = null != cl(i) && E != O && a.reference[h] / 2 - (E < w ? w : k) - f[h] / 2 < 0 ? E < w ? w - E : S - E : 0; return { [p]: d[p] - I, data: { @@ -26585,7 +26829,7 @@ } } }); - let El = function(e) { + let bl = function(e) { return void 0 === e && (e = 0), { name: "offset", options: e, @@ -26598,7 +26842,7 @@ placement: n, platform: r, elements: i - } = e, a = await (null == r.isRTL ? void 0 : r.isRTL(i.floating)), o = hl(n), s = fl(n), l = "y" === vl(n), c = ["left", "top"].includes(o) ? -1 : 1, u = a && l ? -1 : 1, d = pl(t, e), { + } = e, a = await (null == r.isRTL ? void 0 : r.isRTL(i.floating)), o = ll(n), s = cl(n), l = "y" === pl(n), c = ["left", "top"].includes(o) ? -1 : 1, u = a && l ? -1 : 1, d = sl(t, e), { mainAxis: p, crossAxis: h, alignmentAxis: f @@ -26628,7 +26872,7 @@ } } }, - Ol = function(e) { + xl = function(e) { return void 0 === e && (e = {}), { name: "shift", options: e, @@ -26653,20 +26897,20 @@ } }, ...l - } = pl(e, t), c = { + } = sl(e, t), c = { x: n, y: r - }, u = await wl(t, l), d = vl(hl(i)), p = ml(d), h = c[p], f = c[d]; + }, u = await yl(t, l), d = pl(ll(i)), p = ul(d), h = c[p], f = c[d]; if (a) { let e = h + u["y" === p ? "top" : "left"], t = h - u["y" === p ? "bottom" : "right"]; - h = ol(e, al(h, t)) + h = tl(e, el(h, t)) } if (o) { let e = "y" === d ? "bottom" : "right", t = f + u["y" === d ? "top" : "left"], n = f - u[e]; - f = ol(t, al(f, n)) + f = tl(t, el(f, n)) } let m = s.fn({ ...t, @@ -26683,7 +26927,7 @@ } } }, - Il = function(e) { + wl = function(e) { return void 0 === e && (e = {}), { name: "size", options: e, @@ -26697,11 +26941,11 @@ { apply: l = (() => {}), ...c - } = pl(e, t), - u = await wl(t, c), - d = hl(i), - p = fl(i), - h = "y" === vl(i), + } = sl(e, t), + u = await yl(t, c), + d = ll(i), + p = cl(i), + h = "y" === pl(i), { width: f, height: m @@ -26714,17 +26958,17 @@ b = v; if (h) { let e = f - u.left - u.right; - b = p || y ? al(v, e) : e + b = p || y ? el(v, e) : e } else { let e = m - u.top - u.bottom; - _ = p || y ? al(g, e) : e + _ = p || y ? el(g, e) : e } if (y && !p) { - let e = ol(u.left, 0), - t = ol(u.right, 0), - n = ol(u.top, 0), - r = ol(u.bottom, 0); - h ? b = f - 2 * (0 !== e || 0 !== t ? e + t : ol(u.left, u.right)) : _ = m - 2 * (0 !== n || 0 !== r ? n + r : ol(u.top, u.bottom)) + let e = tl(u.left, 0), + t = tl(u.right, 0), + n = tl(u.top, 0), + r = tl(u.bottom, 0); + h ? b = f - 2 * (0 !== e || 0 !== t ? e + t : tl(u.left, u.right)) : _ = m - 2 * (0 !== n || 0 !== r ? n + r : tl(u.top, u.bottom)) } await l({ ...t, @@ -26741,66 +26985,66 @@ } }; - function Cl(e) { - return Tl(e) ? (e.nodeName || "").toLowerCase() : "#document" + function kl(e) { + return Ol(e) ? (e.nodeName || "").toLowerCase() : "#document" } - function Al(e) { + function Sl(e) { var t; return (null == e || null == (t = e.ownerDocument) ? void 0 : t.defaultView) || window } - function Pl(e) { + function El(e) { var t; - return null == (t = (Tl(e) ? e.ownerDocument : e.document) || window.document) ? void 0 : t.documentElement + return null == (t = (Ol(e) ? e.ownerDocument : e.document) || window.document) ? void 0 : t.documentElement } - function Tl(e) { - return e instanceof Node || e instanceof Al(e).Node + function Ol(e) { + return e instanceof Node || e instanceof Sl(e).Node } - function Rl(e) { - return e instanceof Element || e instanceof Al(e).Element + function Il(e) { + return e instanceof Element || e instanceof Sl(e).Element } - function Dl(e) { - return e instanceof HTMLElement || e instanceof Al(e).HTMLElement + function Cl(e) { + return e instanceof HTMLElement || e instanceof Sl(e).HTMLElement } - function Ll(e) { - return "undefined" != typeof ShadowRoot && (e instanceof ShadowRoot || e instanceof Al(e).ShadowRoot) + function Al(e) { + return "undefined" != typeof ShadowRoot && (e instanceof ShadowRoot || e instanceof Sl(e).ShadowRoot) } - function Nl(e) { + function Pl(e) { let { overflow: t, overflowX: n, overflowY: r, display: i - } = zl(e); + } = Ll(e); return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !["inline", "contents"].includes(i) } - function jl(e) { - let t = Ml(), - n = zl(e); + function Tl(e) { + let t = Rl(), + n = Ll(e); return "none" !== n.transform || "none" !== n.perspective || !!n.containerType && "normal" !== n.containerType || !t && !!n.backdropFilter && "none" !== n.backdropFilter || !t && !!n.filter && "none" !== n.filter || ["transform", "perspective", "filter"].some((e => (n.willChange || "").includes(e))) || ["paint", "layout", "strict", "content"].some((e => (n.contain || "").includes(e))) } - function Ml() { + function Rl() { return "undefined" != typeof CSS && !!CSS.supports && CSS.supports("-webkit-backdrop-filter", "none") } - function Fl(e) { - return ["html", "body", "#document"].includes(Cl(e)) + function Dl(e) { + return ["html", "body", "#document"].includes(kl(e)) } - function zl(e) { - return Al(e).getComputedStyle(e) + function Ll(e) { + return Sl(e).getComputedStyle(e) } - function Vl(e) { - return Rl(e) ? { + function Nl(e) { + return Il(e) ? { scrollLeft: e.scrollLeft, scrollTop: e.scrollTop } : { @@ -26809,32 +27053,32 @@ } } - function Ul(e) { - if ("html" === Cl(e)) return e; - let t = e.assignedSlot || e.parentNode || Ll(e) && e.host || Pl(e); - return Ll(t) ? t.host : t + function jl(e) { + if ("html" === kl(e)) return e; + let t = e.assignedSlot || e.parentNode || Al(e) && e.host || El(e); + return Al(t) ? t.host : t } - function Bl(e, t) { + function Ml(e, t) { var n; void 0 === t && (t = []); let r = function e(t) { - let n = Ul(t); - return Fl(n) ? t.ownerDocument ? t.ownerDocument.body : t.body : Dl(n) && Nl(n) ? n : e(n) + let n = jl(t); + return Dl(n) ? t.ownerDocument ? t.ownerDocument.body : t.body : Cl(n) && Pl(n) ? n : e(n) }(e), i = r === (null == (n = e.ownerDocument) ? void 0 : n.body), - a = Al(r); - return i ? t.concat(a, a.visualViewport || [], Nl(r) ? r : []) : t.concat(r, Bl(r)) + a = Sl(r); + return i ? t.concat(a, a.visualViewport || [], Pl(r) ? r : []) : t.concat(r, Ml(r)) } - function Gl(e) { - let t = zl(e), + function Fl(e) { + let t = Ll(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, - i = Dl(e), + i = Cl(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, - s = sl(n) !== a || sl(r) !== o; + s = nl(n) !== a || nl(r) !== o; return s && (n = a, r = o), { width: n, height: r, @@ -26842,62 +27086,62 @@ } } - function $l(e) { - return Rl(e) ? e : e.contextElement + function zl(e) { + return Il(e) ? e : e.contextElement } - function ql(e) { - let t = $l(e); - if (!Dl(t)) return cl(1); + function Vl(e) { + let t = zl(e); + if (!Cl(t)) return il(1); let n = t.getBoundingClientRect(), { width: r, height: i, $: a - } = Gl(t), - o = (a ? sl(n.width) : n.width) / r, - s = (a ? sl(n.height) : n.height) / i; + } = Fl(t), + o = (a ? nl(n.width) : n.width) / r, + s = (a ? nl(n.height) : n.height) / i; return o && Number.isFinite(o) || (o = 1), s && Number.isFinite(s) || (s = 1), { x: o, y: s } } - let Wl = cl(0); + let Ul = il(0); - function Hl(e) { - let t = Al(e); - return Ml() && t.visualViewport ? { + function Bl(e) { + let t = Sl(e); + return Rl() && t.visualViewport ? { x: t.visualViewport.offsetLeft, y: t.visualViewport.offsetTop - } : Wl + } : Ul } - function Kl(e, t, n, r) { + function Gl(e, t, n, r) { var i; void 0 === t && (t = !1), void 0 === n && (n = !1); let a = e.getBoundingClientRect(), - o = $l(e), - s = cl(1); - t && (r ? Rl(r) && (s = ql(r)) : s = ql(e)); - let l = (void 0 === (i = n) && (i = !1), !r || i && r !== Al(o) || !i ? cl(0) : Hl(o)), + o = zl(e), + s = il(1); + t && (r ? Il(r) && (s = Vl(r)) : s = Vl(e)); + let l = (void 0 === (i = n) && (i = !1), !r || i && r !== Sl(o) || !i ? il(0) : Bl(o)), c = (a.left + l.x) / s.x, u = (a.top + l.y) / s.y, d = a.width / s.x, p = a.height / s.y; if (o) { - let e = Al(o), - t = r && Rl(r) ? Al(r) : r, + let e = Sl(o), + t = r && Il(r) ? Sl(r) : r, n = e.frameElement; for (; n && r && t !== e;) { - let e = ql(n), + let e = Vl(n), t = n.getBoundingClientRect(), - r = zl(n), + r = Ll(n), i = t.left + (n.clientLeft + parseFloat(r.paddingLeft)) * e.x, a = t.top + (n.clientTop + parseFloat(r.paddingTop)) * e.y; - c *= e.x, u *= e.y, d *= e.x, p *= e.y, c += i, u += a, n = Al(n).frameElement + c *= e.x, u *= e.y, d *= e.x, p *= e.y, c += i, u += a, n = Sl(n).frameElement } } - return xl({ + return gl({ width: d, height: p, x: c, @@ -26905,15 +27149,15 @@ }) } - function Yl(e) { - return Kl(Pl(e)).left + Vl(e).scrollLeft + function $l(e) { + return Gl(El(e)).left + Nl(e).scrollLeft } - function Ql(e, t, n) { + function ql(e, t, n) { let r; if ("viewport" === t) r = function(e, t) { - let n = Al(e), - r = Pl(e), + let n = Sl(e), + r = El(e), i = n.visualViewport, a = r.clientWidth, o = r.clientHeight, @@ -26921,7 +27165,7 @@ l = 0; if (i) { a = i.width, o = i.height; - let e = Ml(); + let e = Rl(); (!e || e && "fixed" === t) && (s = i.offsetLeft, l = i.offsetTop) } return { @@ -26932,25 +27176,25 @@ } }(e, n); else if ("document" === t) r = function(e) { - let t = Pl(e), - n = Vl(e), + let t = El(e), + n = Nl(e), r = e.ownerDocument.body, - i = ol(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), - a = ol(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight), - o = -n.scrollLeft + Yl(e), + i = tl(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), + a = tl(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight), + o = -n.scrollLeft + $l(e), s = -n.scrollTop; - return "rtl" === zl(r).direction && (o += ol(t.clientWidth, r.clientWidth) - i), { + return "rtl" === Ll(r).direction && (o += tl(t.clientWidth, r.clientWidth) - i), { width: i, height: a, x: o, y: s } - }(Pl(e)); - else if (Rl(t)) r = function(e, t) { - let n = Kl(e, !0, "fixed" === t), + }(El(e)); + else if (Il(t)) r = function(e, t) { + let n = Gl(e, !0, "fixed" === t), r = n.top + e.clientTop, i = n.left + e.clientLeft, - a = Dl(e) ? ql(e) : cl(1); + a = Cl(e) ? Vl(e) : il(1); return { width: e.clientWidth * a.x, height: e.clientHeight * a.y, @@ -26959,51 +27203,51 @@ } }(t, n); else { - let n = Hl(e); + let n = Bl(e); r = { ...t, x: t.x - n.x, y: t.y - n.y } } - return xl(r) + return gl(r) } - function Zl(e, t) { - return Dl(e) && "fixed" !== zl(e).position ? t ? t(e) : e.offsetParent : null + function Wl(e, t) { + return Cl(e) && "fixed" !== Ll(e).position ? t ? t(e) : e.offsetParent : null } - function Xl(e, t) { - let n = Al(e); - if (!Dl(e)) return n; - let r = Zl(e, t); - for (; r && ["table", "td", "th"].includes(Cl(r)) && "static" === zl(r).position;) r = Zl(r, t); - return r && ("html" === Cl(r) || "body" === Cl(r) && "static" === zl(r).position && !jl(r)) ? n : r || function(e) { - let t = Ul(e); - for (; Dl(t) && !Fl(t);) { - if (jl(t)) return t; - t = Ul(t) + function Hl(e, t) { + let n = Sl(e); + if (!Cl(e)) return n; + let r = Wl(e, t); + for (; r && ["table", "td", "th"].includes(kl(r)) && "static" === Ll(r).position;) r = Wl(r, t); + return r && ("html" === kl(r) || "body" === kl(r) && "static" === Ll(r).position && !Tl(r)) ? n : r || function(e) { + let t = jl(e); + for (; Cl(t) && !Dl(t);) { + if (Tl(t)) return t; + t = jl(t) } return null }(e) || n } - let Jl = { + let Kl = { convertOffsetParentRelativeRectToViewportRelativeRect: function(e) { let { rect: t, offsetParent: n, strategy: r - } = e, i = Dl(n), a = Pl(n); + } = e, i = Cl(n), a = El(n); if (n === a) return t; let o = { scrollLeft: 0, scrollTop: 0 }, - s = cl(1), - l = cl(0); - if ((i || !i && "fixed" !== r) && (("body" !== Cl(n) || Nl(a)) && (o = Vl(n)), Dl(n))) { - let e = Kl(n); - s = ql(n), l.x = e.x + n.clientLeft, l.y = e.y + n.clientTop + s = il(1), + l = il(0); + if ((i || !i && "fixed" !== r) && (("body" !== kl(n) || Pl(a)) && (o = Nl(n)), Cl(n))) { + let e = Gl(n); + s = Vl(n), l.x = e.x + n.clientLeft, l.y = e.y + n.clientTop } return { width: t.width * s.x, @@ -27012,7 +27256,7 @@ y: t.y * s.y - o.scrollTop * s.y + l.y } }, - getDocumentElement: Pl, + getDocumentElement: El, getClippingRect: function(e) { let { element: t, @@ -27022,25 +27266,25 @@ } = e, a = "clippingAncestors" === n ? function(e, t) { let n = t.get(e); if (n) return n; - let r = Bl(e).filter((e => Rl(e) && "body" !== Cl(e))), + let r = Ml(e).filter((e => Il(e) && "body" !== kl(e))), i = null, - a = "fixed" === zl(e).position, - o = a ? Ul(e) : e; - for (; Rl(o) && !Fl(o);) { - let t = zl(o), - n = jl(o); + a = "fixed" === Ll(e).position, + o = a ? jl(e) : e; + for (; Il(o) && !Dl(o);) { + let t = Ll(o), + n = Tl(o); n || "fixed" !== t.position || (i = null); - let s = a ? !n && !i : !n && "static" === t.position && !!i && ["absolute", "fixed"].includes(i.position) || Nl(o) && !n && function e(t, n) { - let r = Ul(t); - return !(r === n || !Rl(r) || Fl(r)) && ("fixed" === zl(r).position || e(r, n)) + let s = a ? !n && !i : !n && "static" === t.position && !!i && ["absolute", "fixed"].includes(i.position) || Pl(o) && !n && function e(t, n) { + let r = jl(t); + return !(r === n || !Il(r) || Dl(r)) && ("fixed" === Ll(r).position || e(r, n)) }(e, o); - s ? r = r.filter((e => e !== o)) : i = t, o = Ul(o) + s ? r = r.filter((e => e !== o)) : i = t, o = jl(o) } return t.set(e, r), r }(t, this._c) : [].concat(n), o = [...a, r], s = o[0], l = o.reduce(((e, n) => { - let r = Ql(t, n, i); - return e.top = ol(r.top, e.top), e.right = al(r.right, e.right), e.bottom = al(r.bottom, e.bottom), e.left = ol(r.left, e.left), e - }), Ql(t, s, i)); + let r = ql(t, n, i); + return e.top = tl(r.top, e.top), e.right = el(r.right, e.right), e.bottom = el(r.bottom, e.bottom), e.left = tl(r.left, e.left), e + }), ql(t, s, i)); return { width: l.right - l.left, height: l.bottom - l.top, @@ -27048,29 +27292,29 @@ y: l.top } }, - getOffsetParent: Xl, + getOffsetParent: Hl, getElementRects: async function(e) { let { reference: t, floating: n, strategy: r - } = e, i = this.getOffsetParent || Xl, a = this.getDimensions; + } = e, i = this.getOffsetParent || Hl, a = this.getDimensions; return { reference: function(e, t, n) { - let r = Dl(t), - i = Pl(t), + let r = Cl(t), + i = El(t), a = "fixed" === n, - o = Kl(e, !0, a, t), + o = Gl(e, !0, a, t), s = { scrollLeft: 0, scrollTop: 0 }, - l = cl(0); + l = il(0); if (r || !r && !a) - if (("body" !== Cl(t) || Nl(i)) && (s = Vl(t)), r) { - let e = Kl(t, !0, a, t); + if (("body" !== kl(t) || Pl(i)) && (s = Nl(t)), r) { + let e = Gl(t, !0, a, t); l.x = e.x + t.clientLeft, l.y = e.y + t.clientTop - } else i && (l.x = Yl(i)); + } else i && (l.x = $l(i)); return { x: o.left + s.scrollLeft - l.x, y: o.top + s.scrollTop - l.y, @@ -27089,16 +27333,16 @@ return Array.from(e.getClientRects()) }, getDimensions: function(e) { - return Gl(e) + return Fl(e) }, - getScale: ql, - isElement: Rl, + getScale: Vl, + isElement: Il, isRTL: function(e) { - return "rtl" === zl(e).direction + return "rtl" === Ll(e).direction } }; - function ec(e, t, n, r) { + function Yl(e, t, n, r) { let i; void 0 === r && (r = {}); let { @@ -27107,7 +27351,7 @@ elementResize: s = "function" == typeof ResizeObserver, layoutShift: l = "function" == typeof IntersectionObserver, animationFrame: c = !1 - } = r, u = $l(e), d = a || o ? [...u ? Bl(u) : [], ...Bl(t)] : []; + } = r, u = zl(e), d = a || o ? [...u ? Ml(u) : [], ...Ml(t)] : []; d.forEach((e => { a && e.addEventListener("scroll", n, { passive: !0 @@ -27115,7 +27359,7 @@ })); let p = u && l ? function(e, t) { let n, r = null, - i = Pl(e); + i = El(e); function a() { clearTimeout(n), r && r.disconnect(), r = null @@ -27130,8 +27374,8 @@ } = e.getBoundingClientRect(); if (s || t(), !d || !p) return; let h = { - rootMargin: -ll(u) + "px " + -ll(i.clientWidth - (c + d)) + "px " + -ll(i.clientHeight - (u + p)) + "px " + -ll(c) + "px", - threshold: ol(0, al(1, l)) || 1 + rootMargin: -rl(u) + "px " + -rl(i.clientWidth - (c + d)) + "px " + -rl(i.clientHeight - (u + p)) + "px " + -rl(c) + "px", + threshold: tl(0, el(1, l)) || 1 }, f = !0; @@ -27164,9 +27408,9 @@ f && f.observe(t) }))), n() })), u && !c && f.observe(u), f.observe(t)); - let m = c ? Kl(e) : null; + let m = c ? Gl(e) : null; return c && function t() { - let r = Kl(e); + let r = Gl(e); m && (r.x !== m.x || r.y !== m.y || r.width !== m.width || r.height !== m.height) && n(), m = r, i = requestAnimationFrame(t) }(), n(), () => { d.forEach((e => { @@ -27174,10 +27418,10 @@ })), p && p(), f && f.disconnect(), f = null, c && cancelAnimationFrame(i) } } - let tc = (e, t, n) => { + let Ql = (e, t, n) => { let r = new Map, i = { - platform: Jl, + platform: Kl, ...n }, a = { @@ -27197,7 +27441,7 @@ }), { x: u, y: d - } = kl(c, r, l), p = r, h = {}, f = 0; + } = vl(c, r, l), p = r, h = {}, f = 0; for (let m = 0; m < s.length; m++) { let { name: n, @@ -27234,7 +27478,7 @@ }) : _.rects), ({ x: u, y: d - } = kl(c, p, l))), m = -1) + } = vl(c, p, l))), m = -1) } return { x: u, @@ -27248,7 +27492,7 @@ platform: a }) }, - nc = e => ({ + Zl = e => ({ name: "arrow", options: e, fn(t) { @@ -27257,20 +27501,20 @@ padding: r } = "function" == typeof e ? e(t) : e; if (n && {}.hasOwnProperty.call(n, "current")) { - if (null != n.current) return Sl({ + if (null != n.current) return _l({ element: n.current, padding: r }).fn(t) - } else if (n) return Sl({ + } else if (n) return _l({ element: n, padding: r }).fn(t); return {} } }); - var rc = "undefined" != typeof document ? Ee.useLayoutEffect : Ee.useEffect; + var Xl = "undefined" != typeof document ? Ee.useLayoutEffect : Ee.useEffect; - function ic(e, t) { + function Jl(e, t) { let n, r, i; if (e === t) return !0; if (typeof e != typeof t) return !1; @@ -27279,7 +27523,7 @@ if (Array.isArray(e)) { if ((n = e.length) != t.length) return !1; for (r = n; 0 != r--;) - if (!ic(e[r], t[r])) return !1; + if (!Jl(e[r], t[r])) return !1; return !0 } if ((n = (i = Object.keys(e)).length) !== Object.keys(t).length) return !1; @@ -27287,38 +27531,38 @@ if (!{}.hasOwnProperty.call(t, i[r])) return !1; for (r = n; 0 != r--;) { let n = i[r]; - if (("_owner" !== n || !e.$$typeof) && !ic(e[n], t[n])) return !1 + if (("_owner" !== n || !e.$$typeof) && !Jl(e[n], t[n])) return !1 } return !0 } return e != e && t != t } - function ac(e) { + function ec(e) { if ("undefined" == typeof window) return 1; return (e.ownerDocument.defaultView || window).devicePixelRatio || 1 } - function oc(e, t) { - let n = ac(e); + function tc(e, t) { + let n = ec(e); return Math.round(t * n) / n } - function sc(e) { + function nc(e) { let t = Ee.useRef(e); - return rc((() => { + return Xl((() => { t.current = e })), t } - var lc = 'input,select,textarea,a[href],button,[tabindex]:not(slot),audio[controls],video[controls],[contenteditable]:not([contenteditable="false"]),details>summary:first-of-type,details', - cc = "undefined" == typeof Element, - uc = cc ? function() {} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, - dc = !cc && Element.prototype.getRootNode ? function(e) { + var rc = 'input,select,textarea,a[href],button,[tabindex]:not(slot),audio[controls],video[controls],[contenteditable]:not([contenteditable="false"]),details>summary:first-of-type,details', + ic = "undefined" == typeof Element, + ac = ic ? function() {} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, + oc = !ic && Element.prototype.getRootNode ? function(e) { return e.getRootNode() } : function(e) { return e.ownerDocument }, - pc = function e(t, n, r) { + sc = function e(t, n, r) { for (var i = [], a = Array.from(t); a.length;) { var o = a.shift(); if ("SLOT" === o.tagName) { @@ -27329,7 +27573,7 @@ candidates: l }) } else { - uc.call(o, lc) && r.filter(o) && (n || !t.includes(o)) && i.push(o); + ac.call(o, rc) && r.filter(o) && (n || !t.includes(o)) && i.push(o); var c = o.shadowRoot || "function" == typeof r.getShadowRoot && r.getShadowRoot(o), u = !r.shadowRootFilter || r.shadowRootFilter(o); if (c && u) { @@ -27343,52 +27587,52 @@ } return i }, - hc = function(e, t) { + lc = function(e, t) { return e.tabIndex < 0 && (t || /^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName) || e.isContentEditable) && isNaN(parseInt(e.getAttribute("tabindex"), 10)) ? 0 : e.tabIndex }, - fc = function(e, t) { + cc = function(e, t) { return e.tabIndex === t.tabIndex ? e.documentOrder - t.documentOrder : e.tabIndex - t.tabIndex }, - mc = function(e) { + uc = function(e) { return "INPUT" === e.tagName }, - gc = function(e) { + dc = function(e) { var t = e.getBoundingClientRect(), n = t.width, r = t.height; return 0 === n && 0 === r }, - vc = function(e, t) { + pc = function(e, t) { var n = t.displayCheck, r = t.getShadowRoot; if ("hidden" === getComputedStyle(e).visibility) return !0; - var i = uc.call(e, "details>summary:first-of-type") ? e.parentElement : e; - if (uc.call(i, "details:not([open]) *")) return !0; + var i = ac.call(e, "details>summary:first-of-type") ? e.parentElement : e; + if (ac.call(i, "details:not([open]) *")) return !0; if (n && "full" !== n && "legacy-full" !== n) { - if ("non-zero-area" === n) return gc(e) + if ("non-zero-area" === n) return dc(e) } else { if ("function" == typeof r) { for (var a = e; e;) { var o = e.parentElement, - s = dc(e); - if (o && !o.shadowRoot && !0 === r(o)) return gc(e); + s = oc(e); + if (o && !o.shadowRoot && !0 === r(o)) return dc(e); e = e.assignedSlot ? e.assignedSlot : o || s === e.ownerDocument ? o : s.host } e = a } if (function(e) { - for (var t, n, r = dc(e).host, i = !!(null !== (t = r) && void 0 !== t && t.ownerDocument.contains(r) || e.ownerDocument.contains(e)); !i && r;) i = !(null === (n = r = dc(r).host) || void 0 === n || !n.ownerDocument.contains(r)); - return i - }(e)) return !e.getClientRects().length; + for (var t, n, r = oc(e).host, i = !!(null !== (t = r) && void 0 !== t && t.ownerDocument.contains(r) || e.ownerDocument.contains(e)); !i && r;) i = !(null === (n = r = oc(r).host) || void 0 === n || !n.ownerDocument.contains(r)); + return i + }(e)) return !e.getClientRects().length; if ("legacy-full" !== n) return !0 } return !1 }, - yc = function(e, t) { + hc = function(e, t) { var n, r, i; - return !(mc(n = t) && "radio" === n.type && ! function(e) { + return !(uc(n = t) && "radio" === n.type && ! function(e) { if (!e.name) return !0; - var t, n = e.form || dc(e), + var t, n = e.form || oc(e), r = function(e) { return n.querySelectorAll('input[type="radio"][name="' + e + '"]') }; @@ -27403,7 +27647,7 @@ if (e[n].checked && e[n].form === t) return e[n] }(t, e.form); return !i || i === e - }(n) || 0 > hc(t)) && (r = e, !((i = t).disabled || mc(i) && "hidden" === i.type || vc(i, r) || "DETAILS" === i.tagName && Array.prototype.slice.apply(i.children).some((function(e) { + }(n) || 0 > lc(t)) && (r = e, !((i = t).disabled || uc(i) && "hidden" === i.type || pc(i, r) || "DETAILS" === i.tagName && Array.prototype.slice.apply(i.children).some((function(e) { return "SUMMARY" === e.tagName })) || function(e) { if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName)) @@ -27411,7 +27655,7 @@ if ("FIELDSET" === t.tagName && t.disabled) { for (var n = 0; n < t.children.length; n++) { var r = t.children.item(n); - if ("LEGEND" === r.tagName) return !!uc.call(t, "fieldset[disabled] *") || !r.contains(e) + if ("LEGEND" === r.tagName) return !!ac.call(t, "fieldset[disabled] *") || !r.contains(e) } return !0 } @@ -27420,17 +27664,17 @@ return !1 }(i))) }, - _c = function(e) { + fc = function(e) { var t = parseInt(e.getAttribute("tabindex"), 10); return !!isNaN(t) || t >= 0 }, - bc = function e(t) { + mc = function e(t) { var n = [], r = []; return t.forEach((function(t, i) { var a = !!t.scopeParent, o = a ? t.scopeParent : t, - s = hc(o, a), + s = lc(o, a), l = a ? e(t.candidates) : o; 0 === s ? a ? n.push.apply(n, l) : n.push(o) : r.push({ documentOrder: i, @@ -27439,70 +27683,70 @@ isScope: a, content: l }) - })), r.sort(fc).reduce((function(e, t) { + })), r.sort(cc).reduce((function(e, t) { return t.isScope ? e.push.apply(e, t.content) : e.push(t.content), e }), []).concat(n) }, - xc = function(e, t) { - return bc((t = t || {}).getShadowRoot ? pc([e], t.includeContainer, { - filter: yc.bind(null, t), + gc = function(e, t) { + return mc((t = t || {}).getShadowRoot ? sc([e], t.includeContainer, { + filter: hc.bind(null, t), flatten: !1, getShadowRoot: t.getShadowRoot, - shadowRootFilter: _c + shadowRootFilter: fc }) : function(e, t, n) { - var r = Array.prototype.slice.apply(e.querySelectorAll(lc)); - return t && uc.call(e, lc) && r.unshift(e), r.filter(n) - }(e, t.includeContainer, yc.bind(null, t))) + var r = Array.prototype.slice.apply(e.querySelectorAll(rc)); + return t && ac.call(e, rc) && r.unshift(e), r.filter(n) + }(e, t.includeContainer, hc.bind(null, t))) }; - function kc(e) { + function vc(e) { return Ee.useMemo((() => e.every((e => null == e)) ? null : t => { e.forEach((e => { "function" == typeof e ? e(t) : null != e && (e.current = t) })) }), e) } - let wc = Oe["useInsertionEffect".toString()] || (e => e()); + let yc = Oe["useInsertionEffect".toString()] || (e => e()); - function Sc(e) { + function _c(e) { let t = Ee.useRef((() => { 0 })); - return wc((() => { + return yc((() => { t.current = e })), Ee.useCallback((function() { for (var e = arguments.length, n = Array(e), r = 0; r < e; r++) n[r] = arguments[r]; return null == t.current ? void 0 : t.current(...n) }), []) } - let Ec = "ArrowUp", - Oc = "ArrowDown", - Ic = "ArrowLeft", - Cc = "ArrowRight"; + let bc = "ArrowUp", + xc = "ArrowDown", + wc = "ArrowLeft", + kc = "ArrowRight"; - function Ac(e, t, n) { + function Sc(e, t, n) { return Math.floor(e / t) !== n } - function Pc(e, t) { + function Ec(e, t) { return t < 0 || t >= e.current.length } - function Tc(e, t) { - return Dc(e, { + function Oc(e, t) { + return Cc(e, { disabledIndices: t }) } - function Rc(e, t) { - return Dc(e, { + function Ic(e, t) { + return Cc(e, { decrement: !0, startingIndex: e.current.length, disabledIndices: t }) } - function Dc(e, t) { + function Cc(e, t) { let { startingIndex: n = -1, decrement: r = !1, @@ -27517,28 +27761,28 @@ } while (l >= 0 && l <= o.length - 1 && s(l)); return l } - let Lc = 0; + let Ac = 0; - function Nc(e, t) { + function Pc(e, t) { void 0 === t && (t = {}); let { preventScroll: n = !1, cancelPrevious: r = !0, sync: i = !1 } = t; - r && cancelAnimationFrame(Lc); + r && cancelAnimationFrame(Ac); let a = () => null == e ? void 0 : e.focus({ preventScroll: n }); - i ? a() : Lc = requestAnimationFrame(a) + i ? a() : Ac = requestAnimationFrame(a) } - var jc = "undefined" != typeof document ? Ee.useLayoutEffect : Ee.useEffect; + var Tc = "undefined" != typeof document ? Ee.useLayoutEffect : Ee.useEffect; - function Mc(e, t) { + function Rc(e, t) { let n = e.compareDocumentPosition(t); return n & Node.DOCUMENT_POSITION_FOLLOWING || n & Node.DOCUMENT_POSITION_CONTAINED_BY ? -1 : n & Node.DOCUMENT_POSITION_PRECEDING || n & Node.DOCUMENT_POSITION_CONTAINS ? 1 : 0 } - let Fc = Ee.createContext({ + let Dc = Ee.createContext({ register: () => {}, unregister: () => {}, map: new Map, @@ -27547,7 +27791,7 @@ } }); - function zc(e) { + function Lc(e) { let { children: t, elementsRef: n, @@ -27560,9 +27804,9 @@ return n.delete(e), n })) }), []); - return jc((() => { + return Tc((() => { let e = new Map(i); - Array.from(e.keys()).sort(Mc).forEach(((t, n) => { + Array.from(e.keys()).sort(Rc).forEach(((t, n) => { e.set(t, n) })), ! function(e, t) { if (e.size !== t.size) return !1; @@ -27570,7 +27814,7 @@ if (r !== t.get(n)) return !1; return !0 }(i, e) && a(e) - }), [i]), Ee.createElement(Fc.Provider, { + }), [i]), Ee.createElement(Dc.Provider, { value: Ee.useMemo((() => ({ register: o, unregister: s, @@ -27581,7 +27825,7 @@ }, t) } - function Vc(e) { + function Nc(e) { let { label: t } = void 0 === e ? {} : e, [n, r] = Ee.useState(null), i = Ee.useRef(null), { @@ -27590,19 +27834,19 @@ map: s, elementsRef: l, labelsRef: c - } = Ee.useContext(Fc), u = Ee.useCallback((e => { + } = Ee.useContext(Dc), u = Ee.useCallback((e => { if (i.current = e, null !== n && (l.current[n] = e, c)) { var r; let i = void 0 !== t; c.current[n] = i ? t : null != (r = null == e ? void 0 : e.textContent) ? r : null } }), [n, l, c, t]); - return jc((() => { + return Tc((() => { let e = i.current; if (e) return a(e), () => { o(e) } - }), [a, o]), jc((() => { + }), [a, o]), Tc((() => { let e = i.current ? s.get(i.current) : null; null != e && r(e) }), [s]), Ee.useMemo((() => ({ @@ -27611,8 +27855,8 @@ })), [n, u]) } - function Uc() { - return (Uc = Object.assign ? Object.assign.bind() : function(e) { + function jc() { + return (jc = Object.assign ? Object.assign.bind() : function(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t]; for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]) @@ -27620,18 +27864,18 @@ return e }).apply(this, arguments) } - let Bc = !1, - Gc = 0, - $c = () => "floating-ui-" + Gc++, - qc = Oe["useId".toString()] || function() { - let [e, t] = Ee.useState((() => Bc ? $c() : void 0)); - return jc((() => { - null == e && t($c()) + let Mc = !1, + Fc = 0, + zc = () => "floating-ui-" + Fc++, + Vc = Oe["useId".toString()] || function() { + let [e, t] = Ee.useState((() => Mc ? zc() : void 0)); + return Tc((() => { + null == e && t(zc()) }), []), Ee.useEffect((() => { - Bc || (Bc = !0) + Mc || (Mc = !0) }), []), e }, - Wc = Ee.forwardRef((function(e, t) { + Uc = Ee.forwardRef((function(e, t) { let { context: { placement: n, @@ -27654,37 +27898,37 @@ ...h } = {}, ...f - } = e, m = qc(); + } = e, m = Vc(); if (!r) return null; l *= 2; let g = l / 2, v = a / 2 * (-s / 8 + 1), y = o / 2 * s / 4, [_, b] = n.split("-"), - x = Jl.isRTL(r), - k = !!d, - w = c && "end" === b ? "right" : "left"; - c && x && (w = "end" === b ? "left" : "right"); + x = Kl.isRTL(r), + w = !!d, + k = c && "end" === b ? "right" : "left"; + c && x && (k = "end" === b ? "left" : "right"); let S = null != (null == i ? void 0 : i.x) ? c || i.x : "", E = null != (null == i ? void 0 : i.y) ? c || i.y : "", O = d || "M0,0 H" + a + " L" + (a - v) + "," + (o - y) + " Q" + a / 2 + "," + o + " " + v + "," + (o - y) + " Z"; - return Ee.createElement("svg", Uc({}, f, { + return Ee.createElement("svg", jc({}, f, { "aria-hidden": !0, ref: t, - width: k ? a : a + l, + width: w ? a : a + l, height: a, viewBox: "0 0 " + a + " " + (o > a ? o : a), style: { position: "absolute", pointerEvents: "none", - [w]: S, + [k]: S, [c && "end" === b ? "bottom" : "top"]: E, - [_]: "top" === _ || "bottom" === _ || k ? "100%" : "calc(100% - " + l / 2 + "px)", + [_]: "top" === _ || "bottom" === _ || w ? "100%" : "calc(100% - " + l / 2 + "px)", transform: "" + { - top: k ? "rotate(180deg)" : "", - left: k ? "rotate(90deg)" : "rotate(-90deg)", - bottom: k ? "" : "rotate(180deg)", - right: k ? "rotate(-90deg)" : "rotate(90deg)" + top: w ? "rotate(180deg)" : "", + left: w ? "rotate(90deg)" : "rotate(-90deg)", + bottom: w ? "" : "rotate(180deg)", + right: w ? "rotate(-90deg)" : "rotate(90deg)" } [_] + (null != p ? p : ""), ...h } @@ -27701,13 +27945,13 @@ id: m }, Ee.createElement("rect", { x: -g, - y: g * (k ? -1 : 1), + y: g * (w ? -1 : 1), width: a + l, height: a }))) })); - function Hc() { + function Bc() { let e = new Map; return { emit(t, n) { @@ -27723,20 +27967,20 @@ } } } - let Kc = Ee.createContext(null), - Yc = Ee.createContext(null), - Qc = () => { + let Gc = Ee.createContext(null), + $c = Ee.createContext(null), + qc = () => { var e; - return (null == (e = Ee.useContext(Kc)) ? void 0 : e.id) || null + return (null == (e = Ee.useContext(Gc)) ? void 0 : e.id) || null }, - Zc = () => Ee.useContext(Yc); + Wc = () => Ee.useContext($c); - function Xc(e) { - let t = qc(), - n = Zc(), - r = Qc(), + function Hc(e) { + let t = Vc(), + n = Wc(), + r = qc(), i = e || r; - return jc((() => { + return Tc((() => { let e = { id: t, parentId: i @@ -27747,12 +27991,12 @@ }), [n, t, i]), t } - function Jc(e) { + function Kc(e) { let { children: t, id: n - } = e, r = Qc(); - return Ee.createElement(Kc.Provider, { + } = e, r = qc(); + return Ee.createElement(Gc.Provider, { value: Ee.useMemo((() => ({ id: n, parentId: r @@ -27760,15 +28004,15 @@ }, t) } - function eu(e) { + function Yc(e) { let { children: t } = e, n = Ee.useRef([]), r = Ee.useCallback((e => { n.current = [...n.current, e] }), []), i = Ee.useCallback((e => { n.current = n.current.filter((t => t !== e)) - }), []), a = Ee.useState((() => Hc()))[0]; - return Ee.createElement(Yc.Provider, { + }), []), a = Ee.useState((() => Bc()))[0]; + return Ee.createElement($c.Provider, { value: Ee.useMemo((() => ({ nodesRef: n, addNode: r, @@ -27778,23 +28022,23 @@ }, t) } - function tu(e) { + function Qc(e) { return "data-floating-ui-" + e } - function nu(e) { + function Zc(e) { let t = (0, Ee.useRef)(e); - return jc((() => { + return Tc((() => { t.current = e })), t } - let ru = tu("safe-polygon"); + let Xc = Qc("safe-polygon"); - function iu(e, t, n) { - return n && !Xs(n) ? 0 : "number" == typeof e ? e : null == e ? void 0 : e[t] + function Jc(e, t, n) { + return n && !Hs(n) ? 0 : "number" == typeof e ? e : null == e ? void 0 : e[t] } - function au(e, t) { + function eu(e, t) { let n = e.filter((e => { var n; return e.parentId === t && (null == (n = e.context) ? void 0 : n.open) @@ -27809,77 +28053,77 @@ })), n = n.concat(r); return n } - let ou = new WeakMap, - su = new WeakSet, - lu = {}, - cu = 0, - uu = e => e && (e.host || uu(e.parentNode)); + let tu = new WeakMap, + nu = new WeakSet, + ru = {}, + iu = 0, + au = e => e && (e.host || au(e.parentNode)); - function du(e, t, n) { + function ou(e, t, n) { void 0 === t && (t = !1), void 0 === n && (n = !1); - let r = Js(e[0]).body; + let r = Ks(e[0]).body; return function(e, t, n, r) { let i = "data-floating-ui-inert", a = r ? "inert" : n ? "aria-hidden" : null, o = ((e, t) => t.map((t => { if (e.contains(t)) return t; - let n = uu(t); + let n = au(t); return e.contains(n) ? n : null })).filter((e => null != e)))(t, e), s = new Set, l = new Set(o), c = []; - lu[i] || (lu[i] = new WeakMap); - let u = lu[i]; + ru[i] || (ru[i] = new WeakMap); + let u = ru[i]; return o.forEach((function e(t) { - t && !s.has(t) && (s.add(t), t.parentNode && e(t.parentNode)) - })), + t && !s.has(t) && (s.add(t), t.parentNode && e(t.parentNode)) + })), function e(t) { !t || l.has(t) || Array.prototype.forEach.call(t.children, (t => { if (s.has(t)) e(t); else { let e = a ? t.getAttribute(a) : null, n = null !== e && "false" !== e, - r = (ou.get(t) || 0) + 1, + r = (tu.get(t) || 0) + 1, o = (u.get(t) || 0) + 1; - ou.set(t, r), u.set(t, o), c.push(t), 1 === r && n && su.add(t), 1 === o && t.setAttribute(i, ""), !n && a && t.setAttribute(a, "true") + tu.set(t, r), u.set(t, o), c.push(t), 1 === r && n && nu.add(t), 1 === o && t.setAttribute(i, ""), !n && a && t.setAttribute(a, "true") } })) - }(t), s.clear(), cu++, () => { - c.forEach((e => { - let t = (ou.get(e) || 0) - 1, - n = (u.get(e) || 0) - 1; - ou.set(e, t), u.set(e, n), t || (!su.has(e) && a && e.removeAttribute(a), su.delete(e)), n || e.removeAttribute(i) - })), --cu || (ou = new WeakMap, ou = new WeakMap, su = new WeakSet, lu = {}) - } + }(t), s.clear(), iu++, () => { + c.forEach((e => { + let t = (tu.get(e) || 0) - 1, + n = (u.get(e) || 0) - 1; + tu.set(e, t), u.set(e, n), t || (!nu.has(e) && a && e.removeAttribute(a), nu.delete(e)), n || e.removeAttribute(i) + })), --iu || (tu = new WeakMap, tu = new WeakMap, nu = new WeakSet, ru = {}) + } }(e.concat(Array.from(r.querySelectorAll("[aria-live]"))), r, t, n) } - let pu = () => ({ + let su = () => ({ getShadowRoot: !0, displayCheck: "function" == typeof ResizeObserver && ResizeObserver.toString().includes("[native code]") ? "full" : "none" }); - function hu(e, t) { - let n = xc(e, pu()); + function lu(e, t) { + let n = gc(e, su()); "prev" === t && n.reverse(); - let r = n.indexOf($s(Js(e))); + let r = n.indexOf(zs(Ks(e))); return n.slice(r + 1)[0] } - function fu() { - return hu(document.body, "next") + function cu() { + return lu(document.body, "next") } - function mu() { - return hu(document.body, "prev") + function uu() { + return lu(document.body, "prev") } - function gu(e, t) { + function du(e, t) { let n = t || e.currentTarget, r = e.relatedTarget; - return !r || !qs(n, r) + return !r || !Vs(n, r) } - let vu = { + let pu = { border: 0, clip: "rect(0 0 0 0)", height: "1px", @@ -27893,27 +28137,27 @@ left: 0 }; - function yu(e) { + function hu(e) { "Tab" === e.key && (e.target, clearTimeout(undefined)) } - let _u = Ee.forwardRef((function(e, t) { + let fu = Ee.forwardRef((function(e, t) { let [n, r] = Ee.useState(); - jc((() => (Ys() && r("button"), document.addEventListener("keydown", yu), () => { - document.removeEventListener("keydown", yu) + Tc((() => ($s() && r("button"), document.addEventListener("keydown", hu), () => { + document.removeEventListener("keydown", hu) })), []); let i = { ref: t, tabIndex: 0, role: n, "aria-hidden": !n || void 0, - [tu("focus-guard")]: "", - style: vu + [Qc("focus-guard")]: "", + style: pu }; - return Ee.createElement("span", Uc({}, e, i)) + return Ee.createElement("span", jc({}, e, i)) })), - bu = Ee.createContext(null); + mu = Ee.createContext(null); - function xu(e) { + function gu(e) { let { children: t, id: n, @@ -27923,15 +28167,15 @@ let { id: t, root: n - } = void 0 === e ? {} : e, [r, i] = Ee.useState(null), a = qc(), o = ku(), s = Ee.useMemo((() => ({ + } = void 0 === e ? {} : e, [r, i] = Ee.useState(null), a = Vc(), o = vu(), s = Ee.useMemo((() => ({ id: t, root: n, portalContext: o, uniqueId: a })), [t, n, o, a]), l = Ee.useRef(); - return jc((() => () => { + return Tc((() => () => { null == r || r.remove() - }), [r, s]), jc((() => { + }), [r, s]), Tc((() => { if (l.current === s) return; l.current = s; let { @@ -27939,13 +28183,13 @@ root: t, portalContext: n, uniqueId: r - } = s, a = e ? document.getElementById(e) : null, o = tu("portal"); + } = s, a = e ? document.getElementById(e) : null, o = Qc("portal"); if (a) { let e = document.createElement("div"); e.id = r, e.setAttribute(o, ""), a.appendChild(e), i(e) } else { let a = t || (null == n ? void 0 : n.portalNode); - a && !Us(a) && (a = a.current), a = a || document.body; + a && !js(a) && (a = a.current), a = a || document.body; let s = null; e && ((s = document.createElement("div")).id = e, a.appendChild(s)); let l = document.createElement("div"); @@ -27962,20 +28206,20 @@ }; function e(e) { - if (a && gu(e)) { + if (a && du(e)) { ("focusin" === e.type ? function(e) { e.querySelectorAll("[data-tabindex]").forEach((e => { let t = e.dataset.tabindex; delete e.dataset.tabindex, t ? e.setAttribute("tabindex", t) : e.removeAttribute("tabindex") })) } : function(e) { - xc(e, pu()).forEach((e => { + gc(e, su()).forEach((e => { e.dataset.tabindex = e.getAttribute("tabindex") || "", e.setAttribute("tabindex", "-1") })) })(a) } } - }), [a, i, null == o ? void 0 : o.modal]), Ee.createElement(bu.Provider, { + }), [a, i, null == o ? void 0 : o.modal]), Ee.createElement(mu.Provider, { value: Ee.useMemo((() => ({ preserveTabOrder: i, beforeOutsideRef: l, @@ -27985,46 +28229,46 @@ portalNode: a, setFocusManagerState: s })), [i, a]) - }, p && a && Ee.createElement(_u, { + }, p && a && Ee.createElement(fu, { "data-type": "outside", ref: l, onFocus: e => { - if (gu(e, a)) { + if (du(e, a)) { var t; null == (t = u.current) || t.focus() } else { - let e = mu() || (null == o ? void 0 : o.refs.domReference.current); + let e = uu() || (null == o ? void 0 : o.refs.domReference.current); null == e || e.focus() } } }), p && a && Ee.createElement("span", { "aria-owns": a.id, - style: vu - }), a && (0, Xa.createPortal)(t, a), p && a && Ee.createElement(_u, { + style: pu + }), a && (0, Xa.createPortal)(t, a), p && a && Ee.createElement(fu, { "data-type": "outside", ref: c, onFocus: e => { - if (gu(e, a)) { + if (du(e, a)) { var t; null == (t = d.current) || t.focus() } else { - let t = fu() || (null == o ? void 0 : o.refs.domReference.current); + let t = cu() || (null == o ? void 0 : o.refs.domReference.current); null == t || t.focus(), (null == o ? void 0 : o.closeOnFocusOut) && (null == o || o.onOpenChange(!1, e.nativeEvent)) } } })) } - let ku = () => Ee.useContext(bu), - wu = Ee.forwardRef((function(e, t) { - return Ee.createElement("button", Uc({}, e, { + let vu = () => Ee.useContext(mu), + yu = Ee.forwardRef((function(e, t) { + return Ee.createElement("button", jc({}, e, { type: "button", ref: t, tabIndex: -1, - style: vu + style: pu })) })); - function Su(e) { + function _u(e) { let { context: t, children: n, @@ -28047,15 +28291,15 @@ domReference: v, floating: y } - } = t, _ = "number" == typeof o && o < 0, b = "combobox" === (null == v ? void 0 : v.getAttribute("role")) && nl(v) && _, x = !b && l, k = !("undefined" != typeof HTMLElement && "inert" in HTMLElement.prototype) || a, w = nu(i), S = nu(o), E = nu(s), O = Zc(), I = ku(), C = Ee.useRef(null), A = Ee.useRef(null), P = Ee.useRef(!1), T = Ee.useRef(null), R = Ee.useRef(!1), D = null != I, L = Ee.useCallback((function(e) { - return void 0 === e && (e = y), e ? xc(e, pu()) : [] + } = t, _ = "number" == typeof o && o < 0, b = "combobox" === (null == v ? void 0 : v.getAttribute("role")) && Zs(v) && _, x = !b && l, w = !("undefined" != typeof HTMLElement && "inert" in HTMLElement.prototype) || a, k = Zc(i), S = Zc(o), E = Zc(s), O = Wc(), I = vu(), C = Ee.useRef(null), A = Ee.useRef(null), P = Ee.useRef(!1), T = Ee.useRef(null), R = Ee.useRef(!1), D = null != I, L = Ee.useCallback((function(e) { + return void 0 === e && (e = y), e ? gc(e, su()) : [] }), [y]), N = Ee.useCallback((e => { let t = L(e); - return w.current.map((e => v && "reference" === e ? v : y && "floating" === e ? y : t)).filter(Boolean).flat() - }), [v, y, w, L]); + return k.current.map((e => v && "reference" === e ? v : y && "floating" === e ? y : t)).filter(Boolean).flat() + }), [v, y, k, L]); function j(e) { - return !r && c && x ? Ee.createElement(wu, { + return !r && c && x ? Ee.createElement(yu, { ref: "start" === e ? C : A, onClick: e => f(!1, e.nativeEvent) }, "string" == typeof c ? c : "Dismiss") : null @@ -28065,18 +28309,18 @@ function e(e) { if ("Tab" === e.key) { - qs(y, $s(Js(y))) && 0 === L().length && !b && rl(e); + Vs(y, zs(Ks(y))) && 0 === L().length && !b && Xs(e); let t = N(), - n = tl(e); - "reference" === w.current[0] && n === v && (rl(e), e.shiftKey ? Nc(t[t.length - 1]) : Nc(t[1])), "floating" === w.current[1] && n === y && e.shiftKey && (rl(e), Nc(t[0])) + n = Qs(e); + "reference" === k.current[0] && n === v && (Xs(e), e.shiftKey ? Pc(t[t.length - 1]) : Pc(t[1])), "floating" === k.current[1] && n === y && e.shiftKey && (Xs(e), Pc(t[0])) } } - let t = Js(y); + let t = Ks(y); return t.addEventListener("keydown", e), () => { t.removeEventListener("keydown", e) } - }), [r, v, y, x, w, p, b, L, N]), Ee.useEffect((() => { - if (!r && u && y && Bs(v)) return v.addEventListener("focusout", t), v.addEventListener("pointerdown", e), x || y.addEventListener("focusout", t), () => { + }), [r, v, y, x, k, p, b, L, N]), Ee.useEffect((() => { + if (!r && u && y && Ms(v)) return v.addEventListener("focusout", t), v.addEventListener("pointerdown", e), x || y.addEventListener("focusout", t), () => { v.removeEventListener("focusout", t), v.removeEventListener("pointerdown", e), x || y.removeEventListener("focusout", t) }; @@ -28089,9 +28333,9 @@ function t(e) { let t = e.relatedTarget; queueMicrotask((() => { - let n = !(qs(v, t) || qs(y, t) || qs(t, y) || qs(null == I ? void 0 : I.portalNode, t) || null != t && t.hasAttribute(tu("focus-guard")) || O && (au(O.nodesRef.current, h).find((e => { + let n = !(Vs(v, t) || Vs(y, t) || Vs(t, y) || Vs(null == I ? void 0 : I.portalNode, t) || null != t && t.hasAttribute(Qc("focus-guard")) || O && (eu(O.nodesRef.current, h).find((e => { var n, r; - return qs(null == (n = e.context) ? void 0 : n.elements.floating, t) || qs(null == (r = e.context) ? void 0 : r.elements.domReference, t) + return Vs(null == (n = e.context) ? void 0 : n.elements.floating, t) || Vs(null == (r = e.context) ? void 0 : r.elements.domReference, t) })) || function(e, t) { var n; let r = [], @@ -28111,31 +28355,31 @@ }), [r, v, y, x, h, O, I, f, u]), Ee.useEffect((() => { var e; if (r) return; - let t = Array.from((null == I || null == (e = I.portalNode) ? void 0 : e.querySelectorAll("[" + tu("portal") + "]")) || []); + let t = Array.from((null == I || null == (e = I.portalNode) ? void 0 : e.querySelectorAll("[" + Qc("portal") + "]")) || []); if (y) { - let e = [y, ...t, C.current, A.current, w.current.includes("reference") || b ? v : null].filter((e => null != e)), - n = l || b ? du(e, k, !k) : du(e); + let e = [y, ...t, C.current, A.current, k.current.includes("reference") || b ? v : null].filter((e => null != e)), + n = l || b ? ou(e, w, !w) : ou(e); return () => { n() } } - }), [r, v, y, l, w, I, b, k]), jc((() => { + }), [r, v, y, l, k, I, b, w]), Tc((() => { if (r || !y) return; - let e = $s(Js(y)); + let e = zs(Ks(y)); queueMicrotask((() => { let t = N(y), n = S.current, r = ("number" == typeof n ? t[n] : n.current) || y, - i = qs(y, e); - _ || i || !d || Nc(r, { + i = Vs(y, e); + _ || i || !d || Pc(r, { preventScroll: r === y }) })) - }), [r, d, y, _, N, S]), jc((() => { + }), [r, d, y, _, N, S]), Tc((() => { if (r || !y) return; let e = !1, - t = Js(y), - n = $s(t), + t = Ks(y), + n = zs(t), i = g.current; function a(t) { @@ -28144,21 +28388,21 @@ event: r, nested: i } = t; - "escape-key" === n && p.domReference.current && (T.current = p.domReference.current), "hover" === n && "mouseleave" === r.type && (P.current = !0), "outside-press" === n && (i ? (P.current = !1, e = !0) : P.current = !(Hs(r) || Ks(r))) + "escape-key" === n && p.domReference.current && (T.current = p.domReference.current), "hover" === n && "mouseleave" === r.type && (P.current = !0), "outside-press" === n && (i ? (P.current = !1, e = !0) : P.current = !(Bs(r) || Gs(r))) } return T.current = n, m.on("openchange", a), () => { m.off("openchange", a); - let r = $s(t), - o = qs(y, r) || O && au(O.nodesRef.current, h).some((e => { + let r = zs(t), + o = Vs(y, r) || O && eu(O.nodesRef.current, h).some((e => { var t; - return qs(null == (t = e.context) ? void 0 : t.elements.floating, r) + return Vs(null == (t = e.context) ? void 0 : t.elements.floating, r) })); - (o || i.openEvent && ["click", "mousedown"].includes(i.openEvent.type)) && p.domReference.current && (T.current = p.domReference.current), E.current && Bs(T.current) && !P.current && (n === r || r === t.body || o) && Nc(T.current, { + (o || i.openEvent && ["click", "mousedown"].includes(i.openEvent.type)) && p.domReference.current && (T.current = p.domReference.current), E.current && Ms(T.current) && !P.current && (n === r || r === t.body || o) && Pc(T.current, { cancelPrevious: !1, preventScroll: e }) } - }), [r, y, E, g, p, m, O, h]), jc((() => { + }), [r, y, E, g, p, m, O, h]), Tc((() => { if (!r && I) return I.setFocusManagerState({ modal: x, closeOnFocusOut: u, @@ -28168,11 +28412,11 @@ }), () => { I.setFocusManagerState(null) } - }), [r, I, x, d, f, p, u]), jc((() => { + }), [r, I, x, d, f, p, u]), Tc((() => { if (r || !y || "function" != typeof MutationObserver || _) return; let e = () => { let e = y.getAttribute("tabindex"); - w.current.includes("floating") || $s(Js(y)) !== p.domReference.current && 0 === L().length ? "0" !== e && y.setAttribute("tabindex", "0") : "-1" !== e && y.setAttribute("tabindex", "-1") + k.current.includes("floating") || zs(Ks(y)) !== p.domReference.current && 0 === L().length ? "0" !== e && y.setAttribute("tabindex", "0") : "-1" !== e && y.setAttribute("tabindex", "-1") }; e(); let t = new MutationObserver(e); @@ -28183,32 +28427,32 @@ }), () => { t.disconnect() } - }), [r, y, p, w, L, _]); - let M = !r && k && (D || x); - return Ee.createElement(Ee.Fragment, null, M && Ee.createElement(_u, { + }), [r, y, p, k, L, _]); + let M = !r && w && (D || x); + return Ee.createElement(Ee.Fragment, null, M && Ee.createElement(fu, { "data-type": "inside", ref: null == I ? void 0 : I.beforeInsideRef, onFocus: e => { if (x) { let e = N(); - Nc("reference" === i[0] ? e[0] : e[e.length - 1]) + Pc("reference" === i[0] ? e[0] : e[e.length - 1]) } else if (null != I && I.preserveTabOrder && I.portalNode) - if (P.current = !1, gu(e, I.portalNode)) { - let e = fu() || v; + if (P.current = !1, du(e, I.portalNode)) { + let e = cu() || v; null == e || e.focus() } else { var t; null == (t = I.beforeOutsideRef.current) || t.focus() } } - }), !b && j("start"), n, j("end"), M && Ee.createElement(_u, { + }), !b && j("start"), n, j("end"), M && Ee.createElement(fu, { "data-type": "inside", ref: null == I ? void 0 : I.afterInsideRef, onFocus: e => { - if (x) Nc(N()[0]); + if (x) Pc(N()[0]); else if (null != I && I.preserveTabOrder && I.portalNode) - if (u && (P.current = !0), gu(e, I.portalNode)) { - let e = mu() || v; + if (u && (P.current = !0), du(e, I.portalNode)) { + let e = uu() || v; null == e || e.focus() } else { var t; @@ -28217,16 +28461,16 @@ } })) } - let Eu = new Set, - Ou = Ee.forwardRef((function(e, t) { + let bu = new Set, + xu = Ee.forwardRef((function(e, t) { let { lockScroll: n = !1, ...r - } = e, i = qc(); - return jc((() => { + } = e, i = Vc(); + return Tc((() => { if (!n) return; - Eu.add(i); - let e = /iP(hone|ad|od)|iOS/.test(Ws()), + bu.add(i); + let e = /iP(hone|ad|od)|iOS/.test(Us()), t = document.body.style, r = Math.round(document.documentElement.getBoundingClientRect().left) + document.documentElement.scrollLeft ? "paddingLeft" : "paddingRight", a = window.innerWidth - document.documentElement.clientWidth, @@ -28244,7 +28488,7 @@ }) } return () => { - Eu.delete(i), 0 === Eu.size && (Object.assign(t, { + bu.delete(i), 0 === bu.size && (Object.assign(t, { overflow: "", [r]: "" }), e && (Object.assign(t, { @@ -28254,7 +28498,7 @@ right: "" }), window.scrollTo(o, s))) } - }), [i, n]), Ee.createElement("div", Uc({ + }), [i, n]), Ee.createElement("div", jc({ ref: t }, r, { style: { @@ -28269,11 +28513,11 @@ })) })); - function Iu(e) { - return Bs(e.target) && "BUTTON" === e.target.tagName + function wu(e) { + return Ms(e.target) && "BUTTON" === e.target.tagName } - function Cu(e, t) { + function ku(e, t) { void 0 === t && (t = {}); let { open: n, @@ -28295,31 +28539,31 @@ d.current = e.pointerType }, onMouseDown(e) { - 0 !== e.button || Xs(d.current, !0) && c || "click" === s || (!n || !l || i.current.openEvent && "mousedown" !== i.current.openEvent.type ? (e.preventDefault(), r(!0, e.nativeEvent, "click")) : r(!1, e.nativeEvent, "click")) + 0 !== e.button || Hs(d.current, !0) && c || "click" === s || (!n || !l || i.current.openEvent && "mousedown" !== i.current.openEvent.type ? (e.preventDefault(), r(!0, e.nativeEvent, "click")) : r(!1, e.nativeEvent, "click")) }, onClick(e) { - "mousedown" === s && d.current ? d.current = void 0 : Xs(d.current, !0) && c || (!n || !l || i.current.openEvent && "click" !== i.current.openEvent.type ? r(!0, e.nativeEvent, "click") : r(!1, e.nativeEvent, "click")) + "mousedown" === s && d.current ? d.current = void 0 : Hs(d.current, !0) && c || (!n || !l || i.current.openEvent && "click" !== i.current.openEvent.type ? r(!0, e.nativeEvent, "click") : r(!1, e.nativeEvent, "click")) }, onKeyDown(e) { - d.current = void 0, e.defaultPrevented || !u || Iu(e) || (" " !== e.key || nl(a) || (e.preventDefault(), p.current = !0), "Enter" === e.key && r(!n || !l, e.nativeEvent, "click")) + d.current = void 0, e.defaultPrevented || !u || wu(e) || (" " !== e.key || Zs(a) || (e.preventDefault(), p.current = !0), "Enter" === e.key && r(!n || !l, e.nativeEvent, "click")) }, onKeyUp(e) { - !e.defaultPrevented && u && !Iu(e) && !nl(a) && " " === e.key && p.current && (p.current = !1, r(!n || !l, e.nativeEvent, "click")) + !e.defaultPrevented && u && !wu(e) && !Zs(a) && " " === e.key && p.current && (p.current = !1, r(!n || !l, e.nativeEvent, "click")) } } } : {}), [o, i, s, c, u, a, l, n, r]) } - let Au = { + let Su = { pointerdown: "onPointerDown", mousedown: "onMouseDown", click: "onClick" }, - Pu = { + Eu = { pointerdown: "onPointerDownCapture", mousedown: "onMouseDownCapture", click: "onClickCapture" }, - Tu = e => { + Ou = e => { var t, n; return { escapeKey: "boolean" == typeof e ? e : null != (t = null == e ? void 0 : e.escapeKey) && t, @@ -28327,7 +28571,7 @@ } }; - function Ru(e, t) { + function Iu(e, t) { void 0 === t && (t = {}); let { open: n, @@ -28349,80 +28593,80 @@ ancestorScroll: m = !1, bubbles: g, capture: v - } = t, y = Zc(), _ = Sc("function" == typeof d ? d : () => !1), b = "function" == typeof d ? _ : d, x = Ee.useRef(!1), k = Ee.useRef(!1), { - escapeKey: w, + } = t, y = Wc(), _ = _c("function" == typeof d ? d : () => !1), b = "function" == typeof d ? _ : d, x = Ee.useRef(!1), w = Ee.useRef(!1), { + escapeKey: k, outsidePress: S - } = Tu(g), { + } = Ou(g), { escapeKey: E, outsidePress: O - } = Tu(v), I = Sc((e => { + } = Ou(v), I = _c((e => { if (!n || !c || !u || "Escape" !== e.key) return; - let t = y ? au(y.nodesRef.current, i) : []; - if (!w && (e.stopPropagation(), t.length > 0)) { + let t = y ? eu(y.nodesRef.current, i) : []; + if (!k && (e.stopPropagation(), t.length > 0)) { let e = !0; if (t.forEach((t => { - var n; - null == (n = t.context) || !n.open || t.context.dataRef.current.__escapeKeyBubbles || (e = !1) - })), !e) return + var n; + null == (n = t.context) || !n.open || t.context.dataRef.current.__escapeKeyBubbles || (e = !1) + })), !e) return } r(!1, "nativeEvent" in e ? e.nativeEvent : e, "escape-key") - })), C = Sc((e => { + })), C = _c((e => { var t; let n = () => { var t; - I(e), null == (t = tl(e)) || t.removeEventListener("keydown", n) + I(e), null == (t = Qs(e)) || t.removeEventListener("keydown", n) }; - null == (t = tl(e)) || t.addEventListener("keydown", n) - })), A = Sc((e => { + null == (t = Qs(e)) || t.addEventListener("keydown", n) + })), A = _c((e => { let t = x.current; x.current = !1; - let n = k.current; - if (k.current = !1, "click" === p && n || t || "function" == typeof b && !b(e)) return; - let a = tl(e), - l = "[" + tu("inert") + "]", - c = Js(s).querySelectorAll(l), - u = Us(a) ? a : null; - for (; u && !["html", "body", "#document"].includes(Fs(u));) { + let n = w.current; + if (w.current = !1, "click" === p && n || t || "function" == typeof b && !b(e)) return; + let a = Qs(e), + l = "[" + Qc("inert") + "]", + c = Ks(s).querySelectorAll(l), + u = js(a) ? a : null; + for (; u && !["html", "body", "#document"].includes(Ds(u));) { let e = function(e) { var t; - if ("html" === Fs(e)) return e; - let n = e.assignedSlot || e.parentNode || Gs(e) && e.host || (null == (t = (Vs(e) ? e.ownerDocument : e.document) || window.document) ? void 0 : t.documentElement); - return Gs(n) ? n.host : n + if ("html" === Ds(e)) return e; + let n = e.assignedSlot || e.parentNode || Fs(e) && e.host || (null == (t = (Ns(e) ? e.ownerDocument : e.document) || window.document) ? void 0 : t.documentElement); + return Fs(n) ? n.host : n }(u); - if (e === Js(s).body || !Us(e)) break; + if (e === Ks(s).body || !js(e)) break; u = e } - if (c.length && Us(a) && !a.matches("html,body") && !qs(a, s) && Array.from(c).every((e => !qs(u, e)))) return; - if (Bs(a) && s) { + if (c.length && js(a) && !a.matches("html,body") && !Vs(a, s) && Array.from(c).every((e => !Vs(u, e)))) return; + if (Ms(a) && s) { let t = a.clientWidth > 0 && a.scrollWidth > a.clientWidth, n = a.clientHeight > 0 && a.scrollHeight > a.clientHeight, r = n && e.offsetX > a.clientWidth; if (n) { - "rtl" === zs(a).getComputedStyle(a).direction && (r = e.offsetX <= a.offsetWidth - a.clientWidth) + "rtl" === Ls(a).getComputedStyle(a).direction && (r = e.offsetX <= a.offsetWidth - a.clientWidth) } if (r || t && e.offsetY > a.clientHeight) return } - let d = y && au(y.nodesRef.current, i).some((t => { + let d = y && eu(y.nodesRef.current, i).some((t => { var n; - return el(e, null == (n = t.context) ? void 0 : n.elements.floating) + return Ys(e, null == (n = t.context) ? void 0 : n.elements.floating) })); - if (el(e, s) || el(e, o) || d) return; - let h = y ? au(y.nodesRef.current, i) : []; + if (Ys(e, s) || Ys(e, o) || d) return; + let h = y ? eu(y.nodesRef.current, i) : []; if (h.length > 0) { let e = !0; if (h.forEach((t => { - var n; - null == (n = t.context) || !n.open || t.context.dataRef.current.__outsidePressBubbles || (e = !1) - })), !e) return + var n; + null == (n = t.context) || !n.open || t.context.dataRef.current.__outsidePressBubbles || (e = !1) + })), !e) return } r(!1, e, "outside-press") - })), P = Sc((e => { + })), P = _c((e => { var t; let n = () => { var t; - A(e), null == (t = tl(e)) || t.removeEventListener(p, n) + A(e), null == (t = Qs(e)) || t.removeEventListener(p, n) }; - null == (t = tl(e)) || t.addEventListener(p, n) + null == (t = Qs(e)) || t.addEventListener(p, n) })); return Ee.useEffect((() => { if (!n || !c) return; @@ -28430,11 +28674,11 @@ function e(e) { r(!1, e, "ancestor-scroll") } - l.current.__escapeKeyBubbles = w, l.current.__outsidePressBubbles = S; - let t = Js(s); + l.current.__escapeKeyBubbles = k, l.current.__outsidePressBubbles = S; + let t = Ks(s); u && t.addEventListener("keydown", E ? C : I, E), b && t.addEventListener(p, O ? P : A, O); let i = []; - return m && (Us(o) && (i = Bl(o)), Us(s) && (i = i.concat(Bl(s))), !Us(a) && a && a.contextElement && (i = i.concat(Bl(a.contextElement)))), (i = i.filter((e => { + return m && (js(o) && (i = Ml(o)), js(s) && (i = i.concat(Ml(s))), !js(a) && a && a.contextElement && (i = i.concat(Ml(a.contextElement)))), (i = i.filter((e => { var n; return e !== (null == (n = t.defaultView) ? void 0 : n.visualViewport) }))).forEach((t => { @@ -28446,31 +28690,31 @@ t.removeEventListener("scroll", e) })) } - }), [l, s, o, a, u, b, p, n, r, m, c, w, S, I, E, C, A, O, P]), Ee.useEffect((() => { + }), [l, s, o, a, u, b, p, n, r, m, c, k, S, I, E, C, A, O, P]), Ee.useEffect((() => { x.current = !1 }), [b, p]), Ee.useMemo((() => c ? { reference: { onKeyDown: I, - [Au[f]]: e => { + [Su[f]]: e => { h && r(!1, e.nativeEvent, "reference-press") } }, floating: { onKeyDown: I, onMouseDown() { - k.current = !0 + w.current = !0 }, onMouseUp() { - k.current = !0 + w.current = !0 }, - [Pu[p]]: () => { + [Eu[p]]: () => { x.current = !0 } } } : {}), [c, h, p, f, r, I]) } - function Du(e) { + function Cu(e) { var t; void 0 === e && (e = {}); let { @@ -28500,46 +28744,46 @@ middlewareData: {}, isPositioned: !1 }), [p, h] = Ee.useState(r); - ic(p, r) || h(r); + Jl(p, r) || h(r); let [f, m] = Ee.useState(null), [g, v] = Ee.useState(null), y = Ee.useCallback((e => { - e != k.current && (k.current = e, m(e)) + e != w.current && (w.current = e, m(e)) }), [m]), _ = Ee.useCallback((e => { - e !== w.current && (w.current = e, v(e)) - }), [v]), b = a || f, x = o || g, k = Ee.useRef(null), w = Ee.useRef(null), S = Ee.useRef(u), E = sc(l), O = sc(i), I = Ee.useCallback((() => { - if (!k.current || !w.current) return; + e !== k.current && (k.current = e, v(e)) + }), [v]), b = a || f, x = o || g, w = Ee.useRef(null), k = Ee.useRef(null), S = Ee.useRef(u), E = nc(l), O = nc(i), I = Ee.useCallback((() => { + if (!w.current || !k.current) return; let e = { placement: t, strategy: n, middleware: p }; - O.current && (e.platform = O.current), tc(k.current, w.current, e).then((e => { + O.current && (e.platform = O.current), Ql(w.current, k.current, e).then((e => { let t = { ...e, isPositioned: !0 }; - C.current && !ic(S.current, t) && (S.current = t, Xa.flushSync((() => { + C.current && !Jl(S.current, t) && (S.current = t, Xa.flushSync((() => { d(t) }))) })) }), [p, t, n, O]); - rc((() => { + Xl((() => { !1 === c && S.current.isPositioned && (S.current.isPositioned = !1, d((e => ({ ...e, isPositioned: !1 })))) }), [c]); let C = Ee.useRef(!1); - rc((() => (C.current = !0, () => { + Xl((() => (C.current = !0, () => { C.current = !1 - })), []), rc((() => { - if (b && (k.current = b), x && (w.current = x), b && x) { + })), []), Xl((() => { + if (b && (w.current = b), x && (k.current = x), b && x) { if (E.current) return E.current(b, x, I); I() } }), [b, x, I, E]); let A = Ee.useMemo((() => ({ - reference: k, - floating: w, + reference: w, + floating: k, setReference: y, setFloating: _ })), [y, _]), @@ -28554,12 +28798,12 @@ top: 0 }; if (!P.floating) return e; - let t = oc(P.floating, u.x), - r = oc(P.floating, u.y); + let t = tc(P.floating, u.x), + r = tc(P.floating, u.y); return s ? { ...e, transform: "translate(" + t + "px, " + r + "px)", - ...ac(P.floating) >= 1.5 && { + ...ec(P.floating) >= 1.5 && { willChange: "transform" } } : { @@ -28575,21 +28819,21 @@ elements: P, floatingStyles: T })), [u, I, A, P, T]) - }(e), c = Zc(), u = null != Qc(), d = Sc(((e, t, n) => { + }(e), c = Wc(), u = null != qc(), d = _c(((e, t, n) => { e && (h.current.openEvent = t), f.emit("openchange", { open: e, event: t, reason: n, nested: u }), null == r || r(e, t, n) - })), p = Ee.useRef(null), h = Ee.useRef({}), f = Ee.useState((() => Hc()))[0], m = qc(), g = Ee.useCallback((e => { - let t = Us(e) ? { + })), p = Ee.useRef(null), h = Ee.useRef({}), f = Ee.useState((() => Bc()))[0], m = Vc(), g = Ee.useCallback((e => { + let t = js(e) ? { getBoundingClientRect: () => e.getBoundingClientRect(), contextElement: e } : e; l.refs.setReference(t) }), [l.refs]), v = Ee.useCallback((e => { - (Us(e) || null === e) && (p.current = e, o(e)), (Us(l.refs.reference.current) || null === l.refs.reference.current || null !== e && !Us(e)) && l.refs.setReference(e) + (js(e) || null === e) && (p.current = e, o(e)), (js(l.refs.reference.current) || null === l.refs.reference.current || null !== e && !js(e)) && l.refs.setReference(e) }), [l.refs]), y = Ee.useMemo((() => ({ ...l.refs, setReference: v, @@ -28609,7 +28853,7 @@ open: n, onOpenChange: d })), [l, i, m, f, n, d, y, _]); - return jc((() => { + return Tc((() => { let e = null == c ? void 0 : c.nodesRef.current.find((e => e.id === i)); e && (e.context = b) })), Ee.useMemo((() => ({ @@ -28620,7 +28864,7 @@ })), [l, y, _, b]) } - function Lu(e, t, n) { + function Au(e, t, n) { let r = new Map; return { ..."floating" === n && { @@ -28638,21 +28882,21 @@ } } - function Nu(e) { + function Pu(e) { void 0 === e && (e = []); let t = e, - n = Ee.useCallback((t => Lu(t, e, "reference")), t), - r = Ee.useCallback((t => Lu(t, e, "floating")), t), - i = Ee.useCallback((t => Lu(t, e, "item")), e.map((e => null == e ? void 0 : e.item))); + n = Ee.useCallback((t => Au(t, e, "reference")), t), + r = Ee.useCallback((t => Au(t, e, "floating")), t), + i = Ee.useCallback((t => Au(t, e, "item")), e.map((e => null == e ? void 0 : e.item))); return Ee.useMemo((() => ({ getReferenceProps: n, getFloatingProps: r, getItemProps: i })), [n, r, i]) } - let ju = !1; + let Tu = !1; - function Mu(e, t, n) { + function Ru(e, t, n) { switch (e) { case "vertical": return t; @@ -28663,19 +28907,19 @@ } } - function Fu(e, t) { - return Mu(t, e === Ec || e === Oc, e === Ic || e === Cc) + function Du(e, t) { + return Ru(t, e === bc || e === xc, e === wc || e === kc) } - function zu(e, t, n) { - return Mu(t, e === Oc, n ? e === Ic : e === Cc) || "Enter" === e || " " == e || "" === e + function Lu(e, t, n) { + return Ru(t, e === xc, n ? e === wc : e === kc) || "Enter" === e || " " == e || "" === e } - function Vu(e, t, n) { - return Mu(t, n ? e === Cc : e === Ic, e === Ec) + function Nu(e, t, n) { + return Ru(t, n ? e === kc : e === wc, e === bc) } - function Uu(e, t) { + function ju(e, t) { let { open: n, onOpenChange: r, @@ -28700,15 +28944,15 @@ openOnArrowKeyDown: _ = !0, disabledIndices: b, orientation: x = "vertical", - cols: k = 1, - scrollItemIntoView: w = !0, + cols: w = 1, + scrollItemIntoView: k = !0, virtualItemRef: S - } = t, E = Qc(), O = Zc(), I = Sc(c), C = Ee.useRef(v), A = Ee.useRef(null != d ? d : -1), P = Ee.useRef(null), T = Ee.useRef(!0), R = Ee.useRef(I), D = Ee.useRef(!!o), L = Ee.useRef(!1), N = Ee.useRef(!1), j = nu(b), M = nu(n), F = nu(w), [z, V] = Ee.useState(), [U, B] = Ee.useState(), G = Sc((function(e, t, n) { + } = t, E = qc(), O = Wc(), I = _c(c), C = Ee.useRef(v), A = Ee.useRef(null != d ? d : -1), P = Ee.useRef(null), T = Ee.useRef(!0), R = Ee.useRef(I), D = Ee.useRef(!!o), L = Ee.useRef(!1), N = Ee.useRef(!1), j = Zc(b), M = Zc(n), F = Zc(k), [z, V] = Ee.useState(), [U, B] = Ee.useState(), G = _c((function(e, t, n) { void 0 === n && (n = !1); let r = e.current[t.current]; - r && (g ? (V(r.id), null == O || O.events.emit("virtualfocus", r), S && (S.current = r)) : Nc(r, { + r && (g ? (V(r.id), null == O || O.events.emit("virtualfocus", r), S && (S.current = r)) : Pc(r, { preventScroll: !0, - sync: !(!Zs() || !Ys()) && (ju || L.current) + sync: !(!Ws() || !$s()) && (Tu || L.current) }), requestAnimationFrame((() => { let e = F.current; e && r && (n || !T.current) && (null == r.scrollIntoView || r.scrollIntoView("boolean" == typeof e ? { @@ -28717,15 +28961,15 @@ } : e)) }))) })); - jc((() => { + Tc((() => { document.createElement("div").focus({ get preventScroll() { - return ju = !0, !1 + return Tu = !0, !1 } }) - }), []), jc((() => { + }), []), Tc((() => { u && (n && o ? C.current && null != d && (N.current = !0, I(d)) : D.current && (A.current = -1, R.current(null))) - }), [u, n, o, d, I]), jc((() => { + }), [u, n, o, d, I]), Tc((() => { if (u && n && o) if (null == l) { if (L.current = !1, null == d && (D.current && (A.current = -1, G(s, A)), !D.current && C.current && (null != P.current || !0 === C.current && null == P.current))) { @@ -28736,22 +28980,22 @@ (e ? requestAnimationFrame : queueMicrotask)(t) } e++ - } else A.current = null == P.current || zu(P.current, x, m) || f ? Tc(s, j.current) : Rc(s, j.current), P.current = null, I(A.current) + } else A.current = null == P.current || Lu(P.current, x, m) || f ? Oc(s, j.current) : Ic(s, j.current), P.current = null, I(A.current) }; t() } - } else Pc(s, l) || (A.current = l, G(s, A, N.current), N.current = !1) - }), [u, n, o, l, d, f, s, x, m, I, G, j]), jc((() => { + } else Ec(s, l) || (A.current = l, G(s, A, N.current), N.current = !1) + }), [u, n, o, l, d, f, s, x, m, I, G, j]), Tc((() => { var e, t; if (!u || o || !O || g || !D.current) return; let n = O.nodesRef.current, r = null == (e = n.find((e => e.id === E))) || null == (t = e.context) ? void 0 : t.elements.floating, - i = $s(Js(o)), - a = n.some((e => e.context && qs(e.context.elements.floating, i))); + i = zs(Ks(o)), + a = n.some((e => e.context && Vs(e.context.elements.floating, i))); r && !a && T.current && r.focus({ preventScroll: !0 }) - }), [u, o, O, E, g]), jc((() => { + }), [u, o, O, E, g]), Tc((() => { if (u && O && g && !E) return O.events.on("virtualfocus", e), () => { O.events.off("virtualfocus", e) }; @@ -28759,9 +29003,9 @@ function e(e) { B(e.id), S && (S.current = e) } - }), [u, O, g, E, S]), jc((() => { + }), [u, O, g, E, S]), Tc((() => { R.current = I, D.current = !!o - })), jc((() => { + })), Tc((() => { n || (P.current = null) }), [n]); let $ = null != l, @@ -28796,7 +29040,7 @@ let { pointerType: t } = e; - T.current && "touch" !== t && (A.current = -1, G(s, A), I(null), g || Nc(i.floating.current, { + T.current && "touch" !== t && (A.current = -1, G(s, A), I(null), g || Pc(i.floating.current, { preventScroll: !0 })) } @@ -28810,108 +29054,108 @@ function t(t) { if (T.current = !1, L.current = !0, !M.current && t.currentTarget === i.floating.current) return; - if (f && Vu(t.key, x, m)) return rl(t), r(!1, t.nativeEvent, "list-navigation"), void(Bs(a) && !g && a.focus()); + if (f && Nu(t.key, x, m)) return Xs(t), r(!1, t.nativeEvent, "list-navigation"), void(Ms(a) && !g && a.focus()); let o = A.current, - l = Tc(s, e), - c = Rc(s, e); - if ("Home" === t.key && (rl(t), A.current = l, I(A.current)), "End" === t.key && (rl(t), A.current = c, I(A.current)), (!(k > 1) || (A.current = function(e, t) { - let { - event: n, - orientation: r, - loop: i, - cols: a, + l = Oc(s, e), + c = Ic(s, e); + if ("Home" === t.key && (Xs(t), A.current = l, I(A.current)), "End" === t.key && (Xs(t), A.current = c, I(A.current)), (!(w > 1) || (A.current = function(e, t) { + let { + event: n, + orientation: r, + loop: i, + cols: a, + disabledIndices: o, + minIndex: s, + maxIndex: l, + prevIndex: c, + stopEvent: u = !1 + } = t, d = c; + if (n.key === bc) { + if (u && Xs(n), -1 === c) d = l; + else if (d = Cc(e, { + startingIndex: d, + amount: a, + decrement: !0, + disabledIndices: o + }), i && (c - a < s || d < 0)) { + let e = c % a, + t = l % a, + n = l - (t - e); + d = t === e ? l : t > e ? n : n - a + } + Ec(e, d) && (d = c) + } + if (n.key === xc && (u && Xs(n), -1 === c ? d = s : (d = Cc(e, { + startingIndex: c, + amount: a, + disabledIndices: o + }), i && c + a > l && (d = Cc(e, { + startingIndex: c % a - a, + amount: a, + disabledIndices: o + }))), Ec(e, d) && (d = c)), "both" === r) { + let t = Js(c / a); + n.key === kc && (u && Xs(n), c % a != a - 1 ? (d = Cc(e, { + startingIndex: c, + disabledIndices: o + }), i && Sc(d, a, t) && (d = Cc(e, { + startingIndex: c - c % a - 1, + disabledIndices: o + }))) : i && (d = Cc(e, { + startingIndex: c - c % a - 1, + disabledIndices: o + })), Sc(d, a, t) && (d = c)), n.key === wc && (u && Xs(n), c % a != 0 ? (d = Cc(e, { + startingIndex: c, disabledIndices: o, - minIndex: s, - maxIndex: l, - prevIndex: c, - stopEvent: u = !1 - } = t, d = c; - if (n.key === Ec) { - if (u && rl(n), -1 === c) d = l; - else if (d = Dc(e, { - startingIndex: d, - amount: a, - decrement: !0, - disabledIndices: o - }), i && (c - a < s || d < 0)) { - let e = c % a, - t = l % a, - n = l - (t - e); - d = t === e ? l : t > e ? n : n - a - } - Pc(e, d) && (d = c) - } - if (n.key === Oc && (u && rl(n), -1 === c ? d = s : (d = Dc(e, { - startingIndex: c, - amount: a, - disabledIndices: o - }), i && c + a > l && (d = Dc(e, { - startingIndex: c % a - a, - amount: a, - disabledIndices: o - }))), Pc(e, d) && (d = c)), "both" === r) { - let t = il(c / a); - n.key === Cc && (u && rl(n), c % a != a - 1 ? (d = Dc(e, { - startingIndex: c, - disabledIndices: o - }), i && Ac(d, a, t) && (d = Dc(e, { - startingIndex: c - c % a - 1, - disabledIndices: o - }))) : i && (d = Dc(e, { - startingIndex: c - c % a - 1, - disabledIndices: o - })), Ac(d, a, t) && (d = c)), n.key === Ic && (u && rl(n), c % a != 0 ? (d = Dc(e, { - startingIndex: c, - disabledIndices: o, - decrement: !0 - }), i && Ac(d, a, t) && (d = Dc(e, { - startingIndex: c + (a - c % a), - decrement: !0, - disabledIndices: o - }))) : i && (d = Dc(e, { - startingIndex: c + (a - c % a), - decrement: !0, - disabledIndices: o - })), Ac(d, a, t) && (d = c)); - let r = il(l / a) === t; - Pc(e, d) && (d = i && r ? n.key === Ic ? l : Dc(e, { - startingIndex: c - c % a - 1, - disabledIndices: o - }) : c) - } - return d - }(s, { - event: t, - orientation: x, - loop: h, - cols: k, - disabledIndices: e, - minIndex: l, - maxIndex: c, - prevIndex: A.current, - stopEvent: !0 - }), I(A.current), "both" !== x)) && Fu(t.key, x)) { - if (rl(t), n && !g && $s(t.currentTarget.ownerDocument) === t.currentTarget) return A.current = zu(t.key, x, m) ? l : c, void I(A.current); - zu(t.key, x, m) ? A.current = h ? o >= c ? p && o !== s.current.length ? -1 : l : Dc(s, { + decrement: !0 + }), i && Sc(d, a, t) && (d = Cc(e, { + startingIndex: c + (a - c % a), + decrement: !0, + disabledIndices: o + }))) : i && (d = Cc(e, { + startingIndex: c + (a - c % a), + decrement: !0, + disabledIndices: o + })), Sc(d, a, t) && (d = c)); + let r = Js(l / a) === t; + Ec(e, d) && (d = i && r ? n.key === wc ? l : Cc(e, { + startingIndex: c - c % a - 1, + disabledIndices: o + }) : c) + } + return d + }(s, { + event: t, + orientation: x, + loop: h, + cols: w, + disabledIndices: e, + minIndex: l, + maxIndex: c, + prevIndex: A.current, + stopEvent: !0 + }), I(A.current), "both" !== x)) && Du(t.key, x)) { + if (Xs(t), n && !g && zs(t.currentTarget.ownerDocument) === t.currentTarget) return A.current = Lu(t.key, x, m) ? l : c, void I(A.current); + Lu(t.key, x, m) ? A.current = h ? o >= c ? p && o !== s.current.length ? -1 : l : Cc(s, { startingIndex: o, disabledIndices: e - }) : Math.min(c, Dc(s, { + }) : Math.min(c, Cc(s, { startingIndex: o, disabledIndices: e - })) : A.current = h ? o <= l ? p && -1 !== o ? s.current.length : c : Dc(s, { + })) : A.current = h ? o <= l ? p && -1 !== o ? s.current.length : c : Cc(s, { startingIndex: o, decrement: !0, disabledIndices: e - }) : Math.max(l, Dc(s, { + }) : Math.max(l, Cc(s, { startingIndex: o, decrement: !0, disabledIndices: e - })), Pc(s, A.current) ? I(null) : I(A.current) + })), Ec(s, A.current) ? I(null) : I(A.current) } } function o(e) { - "auto" === v && Hs(e.nativeEvent) && (C.current = !0) + "auto" === v && Bs(e.nativeEvent) && (C.current = !0) } let l = g && n && $ && { "aria-activedescendant": U || z @@ -28924,14 +29168,14 @@ var a, o, l, u, p, h; T.current = !1; let v = 0 === i.key.indexOf("Arrow"), - y = (a = i.key, Mu(x, m ? a === Ic : a === Cc, a === Oc)), - b = Vu(i.key, x, m), - k = Fu(i.key, x), - w = (f ? y : k) || "Enter" === i.key || "" === i.key.trim(); + y = (a = i.key, Ru(x, m ? a === wc : a === kc, a === xc)), + b = Nu(i.key, x, m), + w = Du(i.key, x), + k = (f ? y : w) || "Enter" === i.key || "" === i.key.trim(); if (g && n) { let e, n, r = null == O ? void 0 : O.nodesRef.current.find((e => null == e.parentId)), a = O && r ? (o = O.nodesRef.current, l = r.id, n = -1, function t(r, i) { - i > n && (e = r, n = i), au(o, r).forEach((e => { + i > n && (e = r, n = i), eu(o, r).forEach((e => { t(e.id, i + 1) })) }(l, 0), o.find((t => t.id === e))) : null; @@ -28943,22 +29187,22 @@ if (y || b) { let t = (null == (u = a.context) ? void 0 : u.elements.domReference) === i.currentTarget, n = b && !t ? null == (p = a.context) ? void 0 : p.elements.domReference : y ? c : null; - n && (rl(i), n.dispatchEvent(e), B(void 0)) + n && (Xs(i), n.dispatchEvent(e), B(void 0)) } - if (k && a.context && a.context.open && a.parentId && i.currentTarget !== a.context.elements.domReference) return rl(i), void(null == (h = a.context.elements.domReference) || h.dispatchEvent(e)) + if (w && a.context && a.context.open && a.parentId && i.currentTarget !== a.context.elements.domReference) return Xs(i), void(null == (h = a.context.elements.domReference) || h.dispatchEvent(e)) } return t(i) } if (n || _ || !v) { - if (w && (P.current = f && k ? null : i.key), f) return void(y && (rl(i), n ? (A.current = Tc(s, e), I(A.current)) : r(!0, i.nativeEvent, "list-navigation"))); - k && (null != d && (A.current = d), rl(i), !n && _ ? r(!0, i.nativeEvent, "list-navigation") : t(i), n && I(A.current)) + if (k && (P.current = f && w ? null : i.key), f) return void(y && (Xs(i), n ? (A.current = Oc(s, e), I(A.current)) : r(!0, i.nativeEvent, "list-navigation"))); + w && (null != d && (A.current = d), Xs(i), !n && _ ? r(!0, i.nativeEvent, "list-navigation") : t(i), n && I(A.current)) } }, onFocus() { n && I(null) }, onPointerDown: function(e) { - C.current = v, "auto" === v && Ks(e.nativeEvent) && (C.current = !0) + C.current = v, "auto" === v && Gs(e.nativeEvent) && (C.current = !0) }, onMouseDown: o, onClick: o @@ -28973,10 +29217,10 @@ }, item: q } - }), [a, i, z, U, j, M, s, u, x, m, g, n, $, f, d, _, p, k, h, v, I, r, q, O, S]) + }), [a, i, z, U, j, M, s, u, x, m, g, n, $, f, d, _, p, w, h, v, I, r, q, O, S]) } - function Bu(e, t) { + function Mu(e, t) { void 0 === t && (t = {}); let { open: n, @@ -28984,7 +29228,7 @@ } = e, { enabled: i = !0, role: a = "dialog" - } = t, o = qc(); + } = t, o = Vc(); return Ee.useMemo((() => { if (!i) return {}; let e = { @@ -29020,7 +29264,7 @@ }), [i, a, n, r, o]) } - function Gu(e, t) { + function Fu(e, t) { void 0 === t && (t = {}); let { open: n, @@ -29038,9 +29282,9 @@ } }), [e, t]), n }(n, a); - return jc((() => { + return Tc((() => { o && !u && c("unmounted") - }), [o, u]), jc((() => { + }), [o, u]), Tc((() => { if (r) { if (n) { c("initial"); @@ -29059,7 +29303,7 @@ } } - function $u(e, t) { + function zu(e, t) { var n; let { open: r, @@ -29074,10 +29318,10 @@ resetMs: d = 750, ignoreKeys: p = [], selectedIndex: h = null - } = t, f = Ee.useRef(), m = Ee.useRef(""), g = Ee.useRef(null != (n = null != h ? h : o) ? n : -1), v = Ee.useRef(null), y = Sc(s), _ = Sc(l), b = nu(u), x = nu(p); - return jc((() => { + } = t, f = Ee.useRef(), m = Ee.useRef(""), g = Ee.useRef(null != (n = null != h ? h : o) ? n : -1), v = Ee.useRef(null), y = _c(s), _ = _c(l), b = Zc(u), x = Zc(p); + return Tc((() => { r && (clearTimeout(f.current), v.current = null, m.current = "") - }), [r]), jc((() => { + }), [r]), Tc((() => { var e; r && "" === m.current && (g.current = null != (e = null != h ? h : o) ? e : -1) }), [r, h, o]), Ee.useMemo((() => { @@ -29094,8 +29338,8 @@ function n(n) { let i = a.current; - if (m.current.length > 0 && " " !== m.current[0] && (-1 === t(i, i, m.current) ? e(!1) : " " === n.key && rl(n)), null == i || x.current.includes(n.key) || 1 !== n.key.length || n.ctrlKey || n.metaKey || n.altKey) return; - r && " " !== n.key && (rl(n), e(!0)); + if (m.current.length > 0 && " " !== m.current[0] && (-1 === t(i, i, m.current) ? e(!1) : " " === n.key && Xs(n)), null == i || x.current.includes(n.key) || 1 !== n.key.length || n.ctrlKey || n.metaKey || n.altKey) return; + r && " " !== n.key && (Xs(n), e(!0)); let o = i.every((e => { var t, n; return !e || (null == (t = e[0]) ? void 0 : t.toLocaleLowerCase()) !== (null == (n = e[1]) ? void 0 : n.toLocaleLowerCase()) @@ -29120,7 +29364,7 @@ }), [c, r, i, a, d, x, b, y, _]) } - function qu(e, t) { + function Vu(e, t) { let [n, r] = e, i = !1, a = t.length; for (let o = 0, s = a - 1; o < a; s = o++) { let [e, a] = t[o] || [0, 0], [l, c] = t[s] || [0, 0]; @@ -29128,35 +29372,35 @@ } return i } - let Wu = { + let Uu = { none: 0, small: 8, medium: 12, large: 16 }, - Hu = (0, Ee.forwardRef)((({ - children: e, - className: t, - content: n, - interactive: r = !0, - offset: i = "medium", - placement: a = "top", - style: o, - title: s, - ...l - }, c) => { + Bu = (0, Ee.forwardRef)((({ + children: e, + className: t, + content: n, + interactive: r = !0, + offset: i = "medium", + placement: a = "top", + style: o, + title: s, + ...l + }, c) => { var u; let [d, p] = (0, Ee.useState)(!1), h = (0, Ee.useRef)(null), { floatingStyles: f, refs: m, context: g, placement: v - } = Du({ + } = Cu({ open: d, onOpenChange: p, placement: a, - whileElementsMounted: ec, - middleware: [nc({ + whileElementsMounted: Yl, + middleware: [Zl({ element: h }), { name: "flip", @@ -29181,12 +29425,12 @@ fallbackAxisSideDirection: g = "none", flipAlignment: v = !0, ...y - } = pl(u, e), _ = hl(a), b = hl(l) === l, x = await (null == c.isRTL ? void 0 : c.isRTL(d.floating)), k = f || (b || !v ? [_l(l)] : function(e) { - let t = _l(e); - return [yl(e), t, yl(t)] + } = sl(u, e), _ = ll(a), b = ll(l) === l, x = await (null == c.isRTL ? void 0 : c.isRTL(d.floating)), w = f || (b || !v ? [fl(l)] : function(e) { + let t = fl(e); + return [hl(e), t, hl(t)] }(l)); - f || "none" === g || k.push(... function(e, t, n, r) { - let i = fl(e), + f || "none" === g || w.push(... function(e, t, n, r) { + let i = cl(e), a = function(e, t, n) { let r = ["left", "right"], i = ["right", "left"]; @@ -29200,30 +29444,30 @@ default: return [] } - }(hl(e), "start" === n, r); - return i && (a = a.map((e => e + "-" + i)), t && (a = a.concat(a.map(yl)))), a + }(ll(e), "start" === n, r); + return i && (a = a.map((e => e + "-" + i)), t && (a = a.concat(a.map(hl)))), a }(l, v, g, x)); - let w = [l, ...k], - S = await wl(e, y), + let k = [l, ...w], + S = await yl(e, y), E = [], O = (null == (t = o.flip) ? void 0 : t.overflows) || []; if (p && E.push(S[_]), h) { let e = function(e, t, n) { void 0 === n && (n = !1); - let r = fl(e), - i = ml(vl(e)), - a = gl(i), + let r = cl(e), + i = ul(pl(e)), + a = dl(i), o = "x" === i ? r === (n ? "end" : "start") ? "right" : "left" : "start" === r ? "bottom" : "top"; - return t.reference[a] > t.floating[a] && (o = _l(o)), [o, _l(o)] + return t.reference[a] > t.floating[a] && (o = fl(o)), [o, fl(o)] }(a, s, x); E.push(S[e[0]], S[e[1]]) } if (O = [...O, { - placement: a, - overflows: E - }], !E.every((e => e <= 0))) { + placement: a, + overflows: E + }], !E.every((e => e <= 0))) { let e = ((null == (n = o.flip) ? void 0 : n.index) || 0) + 1, - t = w[e]; + t = k[e]; if (t) return { data: { index: e, @@ -29251,14 +29495,14 @@ } return {} } - }, El(Wu[i]), Ol({ - padding: Wu[i] + }, bl(Uu[i]), xl({ + padding: Uu[i] })], transform: !1 }), { getReferenceProps: y, getFloatingProps: _ - } = Nu([Ru(g), function(e, t) { + } = Pu([Iu(g), function(e, t) { void 0 === t && (t = {}); let { open: n, @@ -29275,10 +29519,10 @@ } = t, u = Ee.useRef(!1), d = Ee.useRef(), p = Ee.useRef(!0); return Ee.useEffect((() => { if (!l) return; - let e = zs(s); + let e = Ls(s); function t() { - !n && Bs(s) && s === $s(Js(s)) && (u.current = !0) + !n && Ms(s) && s === zs(Ks(s)) && (u.current = !0) } function r() { @@ -29303,30 +29547,30 @@ }), []), Ee.useMemo((() => l ? { reference: { onPointerDown(e) { - Ks(e.nativeEvent) || (p.current = !1) + Gs(e.nativeEvent) || (p.current = !1) }, onMouseLeave() { u.current = !1 }, onFocus(e) { if (u.current) return; - let t = tl(e.nativeEvent); - if (c && Us(t)) try { - if (Ys() && Zs()) throw Error(); + let t = Qs(e.nativeEvent); + if (c && js(t)) try { + if ($s() && Ws()) throw Error(); if (!t.matches(":focus-visible")) return } catch (e) { - if (!p.current && !nl(t)) return + if (!p.current && !Zs(t)) return } r(!0, e.nativeEvent, "focus") }, onBlur(e) { u.current = !1; let t = e.relatedTarget, - n = Us(t) && t.hasAttribute(tu("focus-guard")) && "outside" === t.getAttribute("data-type"); + n = js(t) && t.hasAttribute(Qc("focus-guard")) && "outside" === t.getAttribute("data-type"); d.current = window.setTimeout((() => { - let i = $s(s ? s.ownerDocument : document); + let i = zs(s ? s.ownerDocument : document); if (t || i !== s) { - if (qs(a.floating.current, t) || qs(s, t) || n) return; + if (Vs(a.floating.current, t) || Vs(s, t) || n) return; r(!1, e.nativeEvent, "focus") } })) @@ -29352,7 +29596,7 @@ mouseOnly: p = !1, restMs: h = 0, move: f = !0 - } = t, m = Zc(), g = Qc(), v = nu(d), y = nu(u), _ = Ee.useRef(), b = Ee.useRef(), x = Ee.useRef(), k = Ee.useRef(), w = Ee.useRef(!0), S = Ee.useRef(!1), E = Ee.useRef((() => {})), O = Ee.useCallback((() => { + } = t, m = Wc(), g = qc(), v = Zc(d), y = Zc(u), _ = Ee.useRef(), b = Ee.useRef(), x = Ee.useRef(), w = Ee.useRef(), k = Ee.useRef(!0), S = Ee.useRef(!1), E = Ee.useRef((() => {})), O = Ee.useCallback((() => { var e; let t = null == (e = i.current.openEvent) ? void 0 : e.type; return (null == t ? void 0 : t.includes("mouse")) && "mousedown" !== t @@ -29366,7 +29610,7 @@ let { open: t } = e; - t || (clearTimeout(b.current), clearTimeout(k.current), w.current = !0) + t || (clearTimeout(b.current), clearTimeout(w.current), k.current = !0) } }), [c, a]), Ee.useEffect((() => { if (!c || !v.current || !n) return; @@ -29374,14 +29618,14 @@ function e(e) { O() && r(!1, e, "hover") } - let t = Js(s).documentElement; + let t = Ks(s).documentElement; return t.addEventListener("mouseleave", e), () => { t.removeEventListener("mouseleave", e) } }), [s, n, r, c, v, i, O]); let I = Ee.useCallback((function(e, t, n) { void 0 === t && (t = !0), void 0 === n && (n = "hover"); - let i = iu(y.current, "close", _.current); + let i = Jc(y.current, "close", _.current); i && !x.current ? (clearTimeout(b.current), b.current = setTimeout((() => r(!1, e, n)), i)) : t && (clearTimeout(b.current), r(!1, e, n)) }), [y, r]), C = Ee.useCallback((() => { @@ -29389,12 +29633,12 @@ }), []), A = Ee.useCallback((() => { if (S.current) { - let e = Js(l.floating.current).body; - e.style.pointerEvents = "", e.removeAttribute(ru), S.current = !1 + let e = Ks(l.floating.current).body; + e.style.pointerEvents = "", e.removeAttribute(Xc), S.current = !1 } }), [l]); return Ee.useEffect((() => { - if (c && Us(o)) return n && o.addEventListener("mouseleave", u), null == s || s.addEventListener("mouseleave", u), f && o.addEventListener("mousemove", a, { + if (c && js(o)) return n && o.addEventListener("mouseleave", u), null == s || s.addEventListener("mouseleave", u), f && o.addEventListener("mousemove", a, { once: !0 }), o.addEventListener("mouseenter", a), o.addEventListener("mouseleave", l), () => { n && o.removeEventListener("mouseleave", u), null == s || s.removeEventListener("mouseleave", u), f && o.removeEventListener("mousemove", a), o.removeEventListener("mouseenter", a), o.removeEventListener("mouseleave", l) @@ -29405,8 +29649,8 @@ } function a(e) { - if (clearTimeout(b.current), w.current = !1, p && !Xs(_.current) || h > 0 && 0 === iu(y.current, "open")) return; - let t = iu(y.current, "open", _.current); + if (clearTimeout(b.current), k.current = !1, p && !Hs(_.current) || h > 0 && 0 === Jc(y.current, "open")) return; + let t = Jc(y.current, "open", _.current); t ? b.current = setTimeout((() => { r(!0, e, "hover") }), t) : r(!0, e, "hover") @@ -29415,8 +29659,8 @@ function l(r) { if (t()) return; E.current(); - let i = Js(s); - if (clearTimeout(k.current), v.current) { + let i = Ks(s); + if (clearTimeout(w.current), v.current) { n || clearTimeout(b.current), x.current = v.current({ ...e, tree: m, @@ -29430,7 +29674,7 @@ return i.addEventListener("mousemove", t), void(E.current = () => { i.removeEventListener("mousemove", t) }) - }("touch" !== _.current || !qs(s, r.relatedTarget)) && I(r) + }("touch" !== _.current || !Vs(s, r.relatedTarget)) && I(r) } function u(n) { @@ -29444,21 +29688,21 @@ } })(n) } - }), [o, s, c, e, p, h, f, I, C, A, r, n, m, y, v, i]), jc((() => { + }), [o, s, c, e, p, h, f, I, C, A, r, n, m, y, v, i]), Tc((() => { var e, t, r; if (c && n && null != (e = v.current) && e.__options.blockPointerEvents && O()) { - let e = Js(s).body; - if (e.setAttribute(ru, ""), e.style.pointerEvents = "none", S.current = !0, Us(o) && s) { + let e = Ks(s).body; + if (e.setAttribute(Xc, ""), e.style.pointerEvents = "none", S.current = !0, js(o) && s) { let e = null == m || null == (t = m.nodesRef.current.find((e => e.id === g))) || null == (r = t.context) ? void 0 : r.elements.floating; return e && (e.style.pointerEvents = ""), o.style.pointerEvents = "auto", s.style.pointerEvents = "auto", () => { o.style.pointerEvents = "", s.style.pointerEvents = "" } } } - }), [c, n, g, s, o, m, v, i, O]), jc((() => { + }), [c, n, g, s, o, m, v, i, O]), Tc((() => { n || (_.current = void 0, C(), A()) }), [n, C, A]), Ee.useEffect((() => () => { - C(), clearTimeout(b.current), clearTimeout(k.current), A() + C(), clearTimeout(b.current), clearTimeout(w.current), A() }), [c, o, C, A]), Ee.useMemo((() => { if (!c) return {}; @@ -29470,8 +29714,8 @@ onPointerDown: e, onPointerEnter: e, onMouseMove(e) { - n || 0 === h || (clearTimeout(k.current), k.current = setTimeout((() => { - w.current || r(!0, e.nativeEvent, "hover") + n || 0 === h || (clearTimeout(w.current), w.current = setTimeout((() => { + k.current || r(!0, e.nativeEvent, "hover") }), h)) } }, @@ -29512,31 +29756,31 @@ let { clientX: g, clientY: v - } = e, y = [g, v], _ = tl(e), b = "mouseleave" === e.type, x = qs(d.floating, _), k = qs(d.domReference, _), w = d.domReference.getBoundingClientRect(), S = d.floating.getBoundingClientRect(), E = u.split("-")[0], O = r > S.right - S.width / 2, I = c > S.bottom - S.height / 2, C = y[0] >= w.x && y[0] <= w.x + w.width && y[1] >= w.y && y[1] <= w.y + w.height, A = S.width > w.width, P = S.height > w.height, T = (A ? w : S).left, R = (A ? w : S).right, D = (P ? w : S).top, L = (P ? w : S).bottom; + } = e, y = [g, v], _ = Qs(e), b = "mouseleave" === e.type, x = Vs(d.floating, _), w = Vs(d.domReference, _), k = d.domReference.getBoundingClientRect(), S = d.floating.getBoundingClientRect(), E = u.split("-")[0], O = r > S.right - S.width / 2, I = c > S.bottom - S.height / 2, C = y[0] >= k.x && y[0] <= k.x + k.width && y[1] >= k.y && y[1] <= k.y + k.height, A = S.width > k.width, P = S.height > k.height, T = (A ? k : S).left, R = (A ? k : S).right, D = (P ? k : S).top, L = (P ? k : S).bottom; if (x && (a = !0, !b)) return; - if (k && (a = !1), k && !b) return void(a = !0); - if (b && Us(e.relatedTarget) && qs(d.floating, e.relatedTarget) || f && au(f.nodesRef.current, h).some((e => { - let { - context: t - } = e; - return null == t ? void 0 : t.open - }))) return; - if ("top" === E && c >= w.bottom - 1 || "bottom" === E && c <= w.top + 1 || "left" === E && r >= w.right - 1 || "right" === E && r <= w.left + 1) return m(); + if (w && (a = !1), w && !b) return void(a = !0); + if (b && js(e.relatedTarget) && Vs(d.floating, e.relatedTarget) || f && eu(f.nodesRef.current, h).some((e => { + let { + context: t + } = e; + return null == t ? void 0 : t.open + }))) return; + if ("top" === E && c >= k.bottom - 1 || "bottom" === E && c <= k.top + 1 || "left" === E && r >= k.right - 1 || "right" === E && r <= k.left + 1) return m(); let N = []; switch (E) { case "top": N = [ - [T, w.top + 1], + [T, k.top + 1], [T, S.bottom - 1], [R, S.bottom - 1], - [R, w.top + 1] + [R, k.top + 1] ]; break; case "bottom": N = [ [T, S.top + 1], - [T, w.bottom - 1], - [R, w.bottom - 1], + [T, k.bottom - 1], + [R, k.bottom - 1], [R, S.top + 1] ]; break; @@ -29544,19 +29788,19 @@ N = [ [S.right - 1, L], [S.right - 1, D], - [w.left + 1, D], - [w.left + 1, L] + [k.left + 1, D], + [k.left + 1, L] ]; break; case "right": N = [ - [w.right - 1, L], - [w.right - 1, D], + [k.right - 1, L], + [k.right - 1, D], [S.left + 1, D], [S.left + 1, L] ] } - if (!qu([g, v], N)) { + if (!Vu([g, v], N)) { if (a && !C) return m(); if (!b && i) { let t = function(e, t) { @@ -29569,7 +29813,7 @@ }(e.clientX, e.clientY); if (null !== t && t < .1) return m() } - qu([g, v], function(e) { + Vu([g, v], function(e) { let [t, r] = e; switch (E) { case "top": { @@ -29594,9 +29838,9 @@ } case "left": return [...[ - [I || P ? S.right - n : S.left, S.top], - [I ? P ? S.right - n : S.left : S.right - n, S.bottom] - ], + [I || P ? S.right - n : S.left, S.top], + [I ? P ? S.right - n : S.left : S.right - n, S.bottom] + ], [t + n + 1, P ? r + n / 2 : I ? r + 4 * n : r - 4 * n], [t + n + 1, P ? r - n / 2 : I ? r + 4 * n : r - 4 * n] ]; @@ -29619,19 +29863,19 @@ blockPointerEvents: r }, c }() : null - }), Bu(g, { + }), Mu(g, { role: "tooltip" })]), { isMounted: b, status: x - } = Gu(g), k = e.ref, w = kc([m.setReference, k, c]), { + } = Fu(g), w = e.ref, k = vc([m.setReference, w, c]), { name: S - } = ds(), E = Lo("sol-c-tooltip sol-u-transition-floating", r && "sol-c-tooltip--interactive", t); - return po.jsxs(po.Fragment, { + } = os(), E = Ao("sol-c-tooltip sol-u-transition-floating", r && "sol-c-tooltip--interactive", t); + return io.jsxs(io.Fragment, { children: [(0, Ee.cloneElement)(e, y({ - ref: w - })), b && po.jsx(xu, { - children: po.jsxs(gs, { + ref: k + })), b && io.jsx(gu, { + children: io.jsxs(ds, { as: "div", className: E, "data-sol-placement": v, @@ -29645,13 +29889,13 @@ color: "foreground-weak", variant: "body-s", ..._(l), - children: [s && po.jsx(gs, { + children: [s && io.jsx(ds, { className: "sol-c-tooltip__title", color: "foreground", variant: "emphasis-s", offset: !0, children: s - }), n, po.jsx(Wc, { + }), n, io.jsx(Uc, { className: "sol-c-tooltip__arrow", context: g, ref: h, @@ -29661,85 +29905,85 @@ })] }) })), - Ku = (0, Ee.forwardRef)((({ - enabled: e = !0, - children: t, - ...n - }, r) => e ? po.jsx(Hu, { + Gu = (0, Ee.forwardRef)((({ + enabled: e = !0, + children: t, + ...n + }, r) => e ? io.jsx(Bu, { ref: r, ...n, children: t }) : t)), - Yu = No((({ - as: e = "article", - className: t, - excerpt: n, - external: r, - href: i, - icon: a, - id: o, - image: s, - label: l, - onClick: c, - overlay: u, - subtitle: d, - title: p, - isOffline: h, - ...f - }, m) => { - let g = Ko({ + $u = Po((({ + as: e = "article", + className: t, + excerpt: n, + external: r, + href: i, + icon: a, + id: o, + image: s, + label: l, + onClick: c, + overlay: u, + subtitle: d, + title: p, + isOffline: h, + ...f + }, m) => { + let g = Go({ ..."string" == typeof s ? { src: s } : s }), - v = Ko({ + v = Go({ ..."string" == typeof u ? { src: u } : u }), y = (0, Ee.useRef)(null), - _ = $o(o), + _ = zo(o), { ref: b, hasOverflow: x - } = Go({ + } = Fo({ content: p }), - k = (0, Ee.useCallback)((e => { + w = (0, Ee.useCallback)((e => { y.current?.click(), c?.(e) }), [c]), - w = Lo("sol-c-card", h && "sol-c-card--offline", s && "sol-c-card--wide", t); - return po.jsxs(e, { - className: w, + k = Ao("sol-c-card", h && "sol-c-card--offline", s && "sol-c-card--wide", t); + return io.jsxs(e, { + className: k, "data-sol-button-group": !0, id: o, - onClick: k, + onClick: w, ref: m, ...f, - children: [po.jsxs("div", { + children: [io.jsxs("div", { className: "sol-c-card__wrapper", - children: [!h && po.jsxs(po.Fragment, { - children: [po.jsxs(Ps, { + children: [!h && io.jsxs(io.Fragment, { + children: [io.jsxs(Es, { className: "sol-c-card__content", gap: "150", vertical: !0, justify: "end", - children: [po.jsxs(Ps, { + children: [io.jsxs(Es, { className: "sol-c-card__heading", gap: "025", vertical: !0, - children: [po.jsx(Ku, { + children: [io.jsx(Gu, { content: p, placement: "right", interactive: !1, enabled: x, - children: po.jsx(gs, { + children: io.jsx(ds, { className: "sol-c-card__title", color: "foreground", ref: b, variant: "heading-xs", truncate: 3, - children: po.jsx(ps, { + children: io.jsx(ss, { "aria-describedby": l ? _ + "-button" : void 0, className: "sol-c-card__link", external: r, @@ -29748,48 +29992,48 @@ children: p }) }) - }), d && po.jsx(gs, { + }), d && io.jsx(ds, { className: "sol-c-card__subtitle", color: "foreground-weak", variant: "body-xxs", children: d })] - }), n && po.jsx(gs, { + }), n && io.jsx(ds, { className: "sol-c-card__excerpt", color: "foreground-weak", variant: "body-xs", truncate: 5, children: n - }), l && po.jsx(xs, { + }), l && io.jsx(gs, { "aria-hidden": "true", className: "sol-c-card__button", controlled: !0, decorative: !0, - icon: r ? So : a, + icon: r ? _o : a, id: _ + "-button", size: "small", variant: "plain", children: l })] - }), s && po.jsx("div", { + }), s && io.jsx("div", { className: "sol-c-card__media", - children: po.jsx("img", { - className: Lo("sol-c-card__image", g === Wo && "sol-c-card__image--loaded"), + children: io.jsx("img", { + className: Ao("sol-c-card__image", g === Uo && "sol-c-card__image--loaded"), ..."string" == typeof s ? { src: s } : s, alt: "" }) })] - }), h && po.jsx(ms, { - source: Ms, + }), h && io.jsx(us, { + source: Rs, className: "sol-c-card__offline-icon" })] - }), s && u && !h && po.jsx("div", { + }), s && u && !h && io.jsx("div", { "aria-hidden": "true", className: "sol-c-card__overlay", - children: po.jsx("img", { - className: Lo("sol-c-card__image", v === Wo && "sol-c-card__image--loaded"), + children: io.jsx("img", { + className: Ao("sol-c-card__image", v === Uo && "sol-c-card__image--loaded"), ..."string" == typeof u ? { src: u } : u, @@ -29799,50 +30043,50 @@ }) })); eo('@layer sol.components{.sol-c-choice{display:inline-flex;gap:var(--sol-size-150);position:relative;transition:opacity var(--sol-motion-250)}.sol-c-choice--disabled{opacity:.2;pointer-events:none}.sol-c-choice__wrapper{--_background:var(--sol-color-surface-0);--_foreground:var(--sol-color-interactive);--_border-width:var(--sol-border-1);cursor:var(--sol-cursor-interactive);display:flex;gap:var(--sol-size-100)}.sol-c-choice__wrapper:hover{--_foreground:var(--sol-color-interactive-hovered)}.sol-c-choice__wrapper:active{--_foreground:var(--sol-color-interactive-pressed)}.sol-c-choice__input{align-items:center;appearance:none;background-color:var(--_background);block-size:var(--sol-size-150);border-radius:var(--sol-radius-4);box-shadow:inset 0 0 0 var(--_border-width) currentColor;color:var(--_foreground);display:flex;flex-shrink:0;inline-size:var(--sol-size-150);justify-content:center;pointer-events:none;transition-duration:var(--sol-motion-250);transition-property:background-color,box-shadow,color;user-select:none}.sol-c-choice__icon{height:var(--sol-size-100);margin:var(--sol-size-025);pointer-events:none;position:absolute;width:var(--sol-size-100)}.sol-c-choice--checkbox{--sol-focus-offset:0}.sol-c-choice--checkbox .sol-c-choice__wrapper:active .sol-c-choice__input:not(:checked,:indeterminate),.sol-c-choice--checkbox .sol-c-choice__wrapper:not(:active) .sol-c-choice__input:is(:checked,:indeterminate){--_background:var(--_foreground)}.sol-c-choice--checkbox .sol-c-choice__wrapper:active .sol-c-choice__input:is(:checked,:indeterminate){--_background:var(--sol-color-surface-2)}.sol-c-choice--checkbox .sol-c-choice__icon{color:var(--sol-color-interactive);transition:opacity var(--sol-motion-250) var(--sol-motion-ease-out)}.sol-c-choice--checkbox .sol-c-choice__icon--check path{stroke:currentColor;stroke-dasharray:1;stroke-dashoffset:1;transition-duration:var(--sol-motion-250);transition-property:stroke}@container style(--sol-prefers-reduced-motion: no-preference){.sol-c-choice--checkbox .sol-c-choice__icon--check path{transition-property:stroke,stroke-dashoffset}}.sol-c-choice--checkbox .sol-c-choice__wrapper:not(:active) .sol-c-choice__input:is(:checked,:indeterminate)~.sol-c-choice__icon{color:var(--sol-color-interactive-contrast)}.sol-c-choice--checkbox .sol-c-choice__wrapper:not(:active) .sol-c-choice__input:checked:not(:indeterminate)~.sol-c-choice__icon--check path{stroke-dashoffset:0}.sol-c-choice--checkbox .sol-c-choice__input:not(:indeterminate)~.sol-c-choice__icon--indeterminate{opacity:0}.sol-c-choice--radio{--sol-focus-offset:0}.sol-c-choice--radio .sol-c-choice__input{border-radius:var(--sol-radius-circle)}.sol-c-choice--radio .sol-c-choice__input:before{background-color:currentColor;border-radius:inherit;content:"";display:block;height:var(--sol-size-075);opacity:0;transform:scale(0);transition-duration:var(--sol-motion-250);transition-property:opacity,transform;width:var(--sol-size-075)}.sol-c-choice--radio .sol-c-choice__input:checked{--_border-width:var(--sol-border-2)}.sol-c-choice--radio .sol-c-choice__input:checked:before{opacity:1;transform:scale(1)}.sol-c-choice--toggle .sol-c-choice__input{border-radius:var(--sol-radius-rounded);inline-size:var(--sol-size-250)}.sol-c-choice--toggle .sol-c-choice__input:checked{background:var(--_foreground)}.sol-c-choice--toggle .sol-c-choice__icon{background:var(--_foreground);border-radius:var(--sol-radius-circle);color:var(--sol-color-interactive-contrast);opacity:0;padding:var(--sol-size-025);transform:translateX(calc(var(--_translate, 0%)*var(--_translate-direction, 1)));transition-duration:var(--sol-motion-250);transition-property:background-color,opacity;transition-timing-function:var(--sol-motion-ease-out)}@container style(--sol-prefers-reduced-motion: no-preference){.sol-c-choice--toggle .sol-c-choice__icon{transition-property:background-color,opacity,transform}}.sol-c-choice--toggle .sol-c-choice__icon--check{background:var(--sol-color-surface-0);color:var(--sol-color-foreground)}.sol-c-choice--toggle .sol-c-choice__input:checked~.sol-c-choice__icon{--_translate:100%}[dir=rtl] .sol-c-choice--toggle{--_translate-direction:-1}.sol-c-choice--toggle .sol-c-choice__input:checked~.sol-c-choice__icon--check,.sol-c-choice--toggle .sol-c-choice__input:not(:checked)~.sol-c-choice__icon--cross{opacity:1}.sol-c-choice__label{user-select:none}.sol-c-choice__feedback{padding-block:var(--sol-size-025);pointer-events:none;user-select:none}}'), eo("@layer sol.components{.sol-c-inline-message{--_icon-size:var(--sol-size-100);--_line-height:var(--sol-text-body-xs-line-height)}.sol-c-inline-message a:not([class]){color:inherit;cursor:var(--sol-cursor-interactive);text-decoration:underline}.sol-c-inline-message a:not([class]):hover{text-decoration:none}.sol-c-inline-message__icon{--sol-c-icon-size:var(--_icon-size);margin-block:calc((var(--_line-height) - var(--_icon-size))/2)}}"); - let Qu = No((({ - children: e, - className: t, - icon: n = bo, - type: r = "informative", - ...i - }, a) => { - let o = Lo("sol-c-inline-message", `sol-u-color-status-${r}`, t); - return po.jsxs(Ps, { + let qu = Po((({ + children: e, + className: t, + icon: n = mo, + type: r = "informative", + ...i + }, a) => { + let o = Ao("sol-c-inline-message", `sol-u-color-status-${r}`, t); + return io.jsxs(Es, { className: o, gap: "050", ref: a, ...i, - children: [n && po.jsx(ms, { + children: [n && io.jsx(us, { className: "sol-c-inline-message__icon", source: n - }), po.jsx(gs, { + }), io.jsx(ds, { variant: "body-xs", children: e })] }) })), - Zu = (0, Ee.createContext)(null), - Xu = e => (0, Ee.useContext)(Zu)?.getProps(e) ?? e; - eo("@layer sol.components{.sol-c-field-group__header,.sol-c-field-group__messages{max-inline-size:32.5rem}.sol-c-field-group__header,.sol-c-field-group__messages:not(:last-child){margin-block-end:var(--sol-size-050)}:not(.sol-c-field-group__header)+.sol-c-field-group__messages{margin-block-start:var(--sol-size-050)}}"); - let Ju = (0, Ee.createContext)(null), - ed = () => { - let e = (0, Ee.useContext)(Ju); + Wu = (0, Ee.createContext)(null), + Hu = e => (0, Ee.useContext)(Wu)?.getProps(e) ?? e; + eo("@layer sol.components{.sol-c-field-group__header,.sol-c-field-group__messages{max-inline-size:43.75rem}.sol-c-field-group__header,.sol-c-field-group__messages:not(:last-child){margin-block-end:var(--sol-size-050)}:not(.sol-c-field-group__header)+.sol-c-field-group__messages{margin-block-start:var(--sol-size-050)}}"); + let Ku = (0, Ee.createContext)(null), + Yu = () => { + let e = (0, Ee.useContext)(Ku); if (!e) throw Error("FieldGroup components must be wrapped in "); return e }, - td = (0, Ee.forwardRef)((({ - className: e, - id: t, - ...n - }, r) => { - let i = $o(t), + Qu = (0, Ee.forwardRef)((({ + className: e, + id: t, + ...n + }, r) => { + let i = zo(t), { registerMessage: a, unregisterMessage: o - } = ed(); + } = Yu(); (0, Ee.useLayoutEffect)((() => (a(i), () => o(i))), [i, a, o]); - let s = Lo("sol-c-choice-group__help", e); - return po.jsx(gs, { + let s = Ao("sol-c-choice-group__help", e); + return io.jsx(ds, { className: s, color: "foreground-weak", id: i, @@ -29851,19 +30095,19 @@ ...n }) })), - nd = (0, Ee.forwardRef)((({ - className: e, - id: t, - ...n - }, r) => { - let i = $o(t), + Zu = (0, Ee.forwardRef)((({ + className: e, + id: t, + ...n + }, r) => { + let i = zo(t), { registerMessage: a, unregisterMessage: o - } = ed(); + } = Yu(); (0, Ee.useLayoutEffect)((() => (a(i), () => o(i))), [i, a, o]); - let s = Lo("sol-c-choice-group__feedback", e); - return po.jsx(Qu, { + let s = Ao("sol-c-choice-group__feedback", e); + return io.jsx(qu, { "aria-live": "polite", className: s, id: i, @@ -29872,31 +30116,31 @@ ...n }) })), - rd = (0, Ee.forwardRef)((({ - className: e, - ...t - }, n) => po.jsx(Ps, { - className: Lo("sol-c-field-group__messages", e), + Xu = (0, Ee.forwardRef)((({ + className: e, + ...t + }, n) => io.jsx(Es, { + className: Ao("sol-c-field-group__messages", e), gap: "100", ref: n, vertical: !0, ...t }))), - id = (0, Ee.forwardRef)((({ - "aria-describedby": e, - "aria-labelledby": t, - children: n, - className: r, - description: i, - error: a, - information: o, - help: s, - id: l, - title: c, - gap: u = "100", - ...d - }, p) => { - let h = $o(l), + Ju = (0, Ee.forwardRef)((({ + "aria-describedby": e, + "aria-labelledby": t, + children: n, + className: r, + description: i, + error: a, + information: o, + help: s, + id: l, + title: c, + gap: u = "100", + ...d + }, p) => { + let h = zo(l), f = (() => { let [e, t] = (0, Ee.useState)([]), n = (0, Ee.useCallback)((e => t((t => [...t, e]))), []), r = (0, Ee.useCallback)((e => t((t => t.filter((t => t !== e))))), []); return (0, Ee.useMemo)((() => ({ @@ -29908,7 +30152,7 @@ { messagesId: m } = f, - g = Lo("sol-c-field-group", r), + g = Ao("sol-c-field-group", r), v = (0, Ee.useMemo)((() => { let t = e ? [e] : []; return i && t.push(`${h}-description`), m && t.push(...m), t.join(" ") @@ -29917,9 +30161,9 @@ let e = t ? [t] : []; return c && e.push(`${h}-title`), e.join(" ") }), [t, h, c]); - return po.jsx(Ju.Provider, { + return io.jsx(Ku.Provider, { value: f, - children: po.jsxs(Ps, { + children: io.jsxs(Es, { align: "start", "aria-describedby": v, "aria-labelledby": y, @@ -29930,98 +30174,98 @@ role: "group", vertical: !0, ...d, - children: [(c || i) && po.jsxs(Ps, { + children: [(c || i) && io.jsxs(Es, { className: "sol-c-field-group__header", gap: "050", vertical: !0, - children: [c && po.jsx(gs, { + children: [c && io.jsx(ds, { className: "sol-c-field-group__title", color: "foreground", id: h + "-title", variant: "emphasis-s", children: c - }), i && po.jsx(gs, { + }), i && io.jsx(ds, { className: "sol-c-field-group__description", color: "foreground-weak", id: h + "-description", variant: "body-m", children: i })] - }), n, (a || o || s) && po.jsxs(rd, { - children: [a && po.jsx(nd, { + }), n, (a || o || s) && io.jsxs(Xu, { + children: [a && io.jsx(Zu, { children: a - }), o && po.jsx(nd, { + }), o && io.jsx(Zu, { type: "informative", children: o - }), s && po.jsx(td, { + }), s && io.jsx(Qu, { children: s })] })] }) }) })), - ad = No((({ - as: e = "div", - className: t, - disabled: n, - required: r, - children: i, - visuallyHiddenLabel: a, - description: o, - defaultChecked: s, - checked: l, - indeterminate: c, - name: u, - value: d, - onBlur: p, - onChange: h, - onFocus: f, - success: m, - warning: g, - error: v, - type: y = "checkbox", - inputProps: _ = {}, - inputRef: b, - ...x - }, k) => { - let w = Lo("sol-c-choice", n && "sol-c-choice--disabled", `sol-c-choice--${y}`, t), - S = (0, Ee.useMemo)((() => po.jsxs(gs, { + ed = Po((({ + as: e = "div", + className: t, + disabled: n, + required: r, + children: i, + visuallyHiddenLabel: a, + description: o, + defaultChecked: s, + checked: l, + indeterminate: c, + name: u, + value: d, + onBlur: p, + onChange: h, + onFocus: f, + success: m, + warning: g, + error: v, + type: y = "checkbox", + inputProps: _ = {}, + inputRef: b, + ...x + }, w) => { + let k = Ao("sol-c-choice", n && "sol-c-choice--disabled", `sol-c-choice--${y}`, t), + S = (0, Ee.useMemo)((() => io.jsxs(ds, { as: "span", className: "sol-c-choice__label", color: "foreground", variant: "label-m", visuallyHidden: a, - children: [i, r && po.jsx("span", { + children: [i, r && io.jsx("span", { "aria-hidden": "true", children: "*" })] })), [i, r, a]), E = !!c && "checkbox" === y, O = (0, Ee.useRef)(null), - I = (0, Ee.useMemo)((() => v ? po.jsx(Qu, { + I = (0, Ee.useMemo)((() => v ? io.jsx(qu, { className: "sol-c-choice__feedback", type: "negative", children: v - }) : m ? po.jsx(Qu, { + }) : m ? io.jsx(qu, { className: "sol-c-choice__feedback", - icon: go, + icon: co, type: "positive", children: m - }) : g ? po.jsx(Qu, { + }) : g ? io.jsx(qu, { className: "sol-c-choice__feedback", - icon: Do, + icon: Co, type: "notice", children: g }) : null), [v, m, g]); return (0, Ee.useLayoutEffect)((() => { O.current && (O.current.indeterminate = E) - }), [E]), po.jsxs(e, { - className: w, - ref: k, + }), [E]), io.jsxs(e, { + className: k, + ref: w, ...x, - children: [po.jsxs("label", { + children: [io.jsxs("label", { className: "sol-c-choice__wrapper", - children: [(0, Ee.createElement)("input", Xu(Mo(_, { + children: [(0, Ee.createElement)("input", Hu(Ro(_, { "aria-checked": E ? "mixed" : l ? "true" : "false", "aria-required": !!r || void 0, checked: l, @@ -30032,19 +30276,19 @@ onBlur: p, onChange: h, onFocus: f, - ref: jo(O, b), + ref: To(O, b), role: "toggle" === y ? "switch" : void 0, type: "toggle" === y ? "checkbox" : y, value: d - }))), "radio" !== y && po.jsx(vo, { + }))), "radio" !== y && io.jsx(uo, { className: "sol-c-choice__icon sol-c-choice__icon--check" - }), "checkbox" === y && po.jsx(Oo, { + }), "checkbox" === y && io.jsx(xo, { className: "sol-c-choice__icon sol-c-choice__icon--indeterminate" - }), "toggle" === y && po.jsx(_o, { + }), "toggle" === y && io.jsx(ho, { className: "sol-c-choice__icon sol-c-choice__icon--cross" - }), o ? po.jsxs(Ps, { + }), o ? io.jsxs(Es, { vertical: !0, - children: [S, po.jsx(gs, { + children: [S, io.jsx(ds, { as: "span", className: "sol-c-choice__description", color: "foreground-weak", @@ -30055,65 +30299,65 @@ }), I] }) })), - od = ({ - condition: e, - children: t, - wrap: n - }) => e ? (0, Ee.cloneElement)(n(t)) : t; + td = ({ + condition: e, + children: t, + wrap: n + }) => e ? (0, Ee.cloneElement)(n(t)) : t; eo('@layer sol.components{.sol-c-dialog{--_overlay-duration:var(--sol-motion-150);--_element-duration:var(--sol-motion-250);display:flex;flex-direction:column;padding:var(--sol-size-150);transition:opacity var(--sol-motion-ease-out);z-index:var(--sol-z-dialog)}.sol-c-dialog[data-sol-status=close]:before,.sol-c-dialog[data-sol-status=open]:before{transition-duration:var(--_overlay-duration)}.sol-c-dialog[data-sol-status=close]:before,.sol-c-dialog[data-sol-status=initial]:before{opacity:0}.sol-c-dialog[data-sol-status=close]:before{transition-delay:calc(var(--_element-duration) - var(--_overlay-duration))}.sol-c-dialog--overlay:before{background:var(--sol-color-overlay);content:"";display:block;inset:0;position:absolute}.sol-c-dialog__element{background:var(--sol-color-surface-1);border-radius:var(--sol-radius-8);box-shadow:var(--sol-shadow-200);color:var(--sol-color-foreground);display:flex;flex-direction:column;flex-shrink:1;inline-size:100%;margin:auto;max-inline-size:35rem;min-block-size:14.5rem;transition-property:opacity,transform;transition-timing-function:var(--sol-motion-ease-out)}.sol-c-dialog__element:focus,.sol-c-dialog__element:focus-visible{outline:none}.sol-c-dialog[data-sol-status=initial] .sol-c-dialog__element{opacity:0}@container style(--sol-prefers-reduced-motion: no-preference){.sol-c-dialog[data-sol-status=initial] .sol-c-dialog__element{transform:translateY(var(--sol-size-200))}}.sol-c-dialog[data-sol-status=open] .sol-c-dialog__element{opacity:1;transform:translateY(0);transition-delay:var(--_overlay-duration);transition-duration:var(--_element-duration);transition-timing-function:var(--sol-motion-ease-out)}.sol-c-dialog[data-sol-status=close] .sol-c-dialog__element{opacity:0;transition-duration:var(--_element-duration);transition-timing-function:var(--sol-motion-ease)}@container style(--sol-prefers-reduced-motion: no-preference){.sol-c-dialog[data-sol-status=close] .sol-c-dialog__element{transform:translateY(calc(var(--sol-size-200)*-1))}}.sol-c-dialog__header{background:var(--sol-color-surface-2);border-start-end-radius:inherit;border-start-start-radius:inherit;flex:0;padding:var(--sol-size-100);padding-inline-start:var(--sol-size-150)}.sol-c-dialog__close{align-self:flex-start}.sol-c-dialog__close--wide-click{--_wide-size:calc(var(--sol-size-150)*2 + var(--sol-size-075));height:var(--_wide-size);margin:calc(var(--sol-size-100)*-1);margin-inline-start:auto;padding:0;width:var(--_wide-size)}.sol-c-dialog__close--wide-click:before{border-radius:var(--sol-radius-4);height:var(--sol-size-150);margin:auto;width:var(--sol-size-150)}.sol-c-dialog__wrapper{display:flex;flex:1;overflow:hidden;position:relative}.sol-c-dialog__wrapper:after,.sol-c-dialog__wrapper:before{background:linear-gradient(var(--sol-color-primary-1),#0000);block-size:var(--sol-size-150);content:"";display:block;inline-size:100%;opacity:0;pointer-events:none;position:absolute;transition:opacity var(--sol-motion-250);z-index:2}.sol-c-dialog__wrapper:before{inset-block-start:0}.sol-c-dialog__wrapper:after{inset-block-end:0;transform:scale(-1)}.sol-c-dialog__wrapper[data-sol-scroll-end=false]:after,.sol-c-dialog__wrapper[data-sol-scroll-start=false]:before{opacity:.6}.sol-c-dialog__content{flex:1;overflow:auto;padding:var(--sol-size-150);position:relative;scroll-padding-block:var(--sol-size-150);z-index:1}.sol-c-dialog--has-actions .sol-c-dialog__content{padding-block-end:0}.sol-c-dialog:not(.sol-c-dialog--has-actions) .sol-c-dialog__content{border-end-end-radius:inherit;border-end-start-radius:inherit}.sol-c-dialog__actions{flex:0;padding:var(--sol-size-150)}}'); - let sd = (0, Ee.createContext)(null), - ld = () => { - let e = (0, Ee.useContext)(sd); + let nd = (0, Ee.createContext)(null), + rd = () => { + let e = (0, Ee.useContext)(nd); if (!e) throw Error("Dialog components must be wrapped in "); return e }, - cd = (No((({ - as: e = "p", - id: t, - onClick: n, - ...r - }, i) => { + id = (Po((({ + as: e = "p", + id: t, + onClick: n, + ...r + }, i) => { let { setDescriptionId: a - } = ld(), o = (0, Ee.useId)(); - return Vo((() => (a(t ?? o), () => a(void 0))), [t, o, a]), po.jsx(e, { + } = rd(), o = (0, Ee.useId)(); + return No((() => (a(t ?? o), () => a(void 0))), [t, o, a]), io.jsx(e, { id: t ?? o, ref: i, ...r }) })), ({ - actions: e, - children: t, - onScrollToEnd: n, - type: r - }) => { + actions: e, + children: t, + onScrollToEnd: n, + type: r + }) => { let { setIsOpen: i - } = ld(), { + } = rd(), { ref: a, blockStart: o, blockEnd: s, once: { blockEnd: l } - } = ss({ + } = ns({ onScroll({ - blockEnd: e - }) { + blockEnd: e + }) { e && n && n() } }), c = (0, Ee.useCallback)((({ - close: e, - onClick: t - }) => n => { + close: e, + onClick: t + }) => n => { n.stopPropagation(), e && i(!1), t && t(n) }), [i]), u = (0, Ee.useCallback)((() => i(!1)), [i]); - return po.jsxs(po.Fragment, { - children: [t && po.jsx("div", { + return io.jsxs(io.Fragment, { + children: [t && io.jsx("div", { className: "sol-c-dialog__wrapper", "data-sol-scroll-start": o, "data-sol-scroll-end": s, - children: po.jsx(gs, { + children: io.jsx(ds, { className: "sol-c-dialog__content", color: "foreground-weak", multiline: !0, @@ -30122,21 +30366,21 @@ close: u }) : t }) - }), e && po.jsx(Ps, { + }), e && io.jsx(Es, { className: "sol-c-dialog__actions", gap: "100", justify: "end", children: ("function" == typeof e ? e({ hasScrolled: l }) : e).map((({ - className: e, - close: t = !0, - disabledUntilScrolled: n, - label: i, - onClick: a, - ...o - }, s, u) => po.jsx(xs, { - className: Lo("sol-c-dialog__action", e), + className: e, + close: t = !0, + disabledUntilScrolled: n, + label: i, + onClick: a, + ...o + }, s, u) => io.jsx(gs, { + className: Ao("sol-c-dialog__action", e), color: r, disabled: n && !l, onClick: c({ @@ -30151,42 +30395,42 @@ })] }) }), - ud = (0, Ee.forwardRef)((({ - actions: e, - alert: t, - children: n, - className: r, - close: i = true, - defaultOpen: a, - open: o, - onScrollToEnd: s, - onOpenChange: l, - overlay: c = true, - title: u, - trigger: d, - type: p, - ...h - }, f) => { + ad = (0, Ee.forwardRef)((({ + actions: e, + alert: t, + children: n, + className: r, + close: i = true, + defaultOpen: a, + open: o, + onScrollToEnd: s, + onOpenChange: l, + overlay: c = true, + title: u, + trigger: d, + type: p, + ...h + }, f) => { let m = (0, Ee.useId)(), g = (({ - alert: e = !1, - defaultOpen: t, - open: n, - onOpenChange: r - } = {}) => { - let [i, a] = (0, Ee.useState)(t), [o, s] = (0, Ee.useState)(), l = n ?? i, c = r ?? a, u = Xc(), d = Du({ + alert: e = !1, + defaultOpen: t, + open: n, + onOpenChange: r + } = {}) => { + let [i, a] = (0, Ee.useState)(t), [o, s] = (0, Ee.useState)(), l = n ?? i, c = r ?? a, u = Hc(), d = Cu({ open: l, onOpenChange: c, nodeId: u }), { context: p - } = d, h = Nu([Cu(p), Ru(p, { + } = d, h = Pu([ku(p), Iu(p, { bubbles: !1, enabled: !e - }), Bu(p, { + }), Mu(p, { role: e ? "alertdialog" : "dialog" - })]), f = Gu(p); - return Vo((() => (l ? document.body.setAttribute("data-sol-dialog", "") : document.body.removeAttribute("data-sol-dialog"), () => { + })]), f = Fu(p); + return No((() => (l ? document.body.setAttribute("data-sol-dialog", "") : document.body.removeAttribute("data-sol-dialog"), () => { document.body.removeAttribute("data-sol-dialog") })), [l]), (0, Ee.useMemo)((() => ({ isOpen: l, @@ -30210,27 +30454,27 @@ getReferenceProps: _, getFloatingProps: b, isMounted: x, - isOpen: k, - setIsOpen: w, + isOpen: w, + setIsOpen: k, status: S, descriptionId: E, nodeId: O } = g, - I = kc([v.setReference, ...d ? [d.ref] : [], f]), + I = vc([v.setReference, ...d ? [d.ref] : [], f]), { name: C - } = ds(), - A = Lo("sol-c-dialog", e && "sol-c-dialog--has-actions", c && "sol-c-dialog--overlay", r); - return po.jsx(sd.Provider, { + } = os(), + A = Ao("sol-c-dialog", e && "sol-c-dialog--has-actions", c && "sol-c-dialog--overlay", r); + return io.jsx(nd.Provider, { value: g, - children: po.jsxs(Jc, { + children: io.jsxs(Kc, { id: O, children: [d && (0, Ee.cloneElement)("function" == typeof d ? d({ - isOpen: k + isOpen: w }) : d, _({ ref: I - })), x && po.jsx(xu, { - children: po.jsx(Ou, { + })), x && io.jsx(gu, { + children: io.jsx(xu, { className: A, "data-sol-status": S, "data-sol-theme": C, @@ -30238,33 +30482,33 @@ style: { overflow: "hidden" }, - children: po.jsx(Su, { + children: io.jsx(_u, { context: y, - children: po.jsxs("div", { + children: io.jsxs("div", { "aria-labelledby": u ? m : void 0, "aria-describedby": E, className: "sol-c-dialog__element", ref: v.setFloating, ...b(h), - children: [(i || u) && po.jsxs(Ps, { + children: [(i || u) && io.jsxs(Es, { className: "sol-c-dialog__header", gap: "100", - children: [u && po.jsx(gs, { + children: [u && io.jsx(ds, { className: "sol-c-dialog__title", color: "foreground", id: m, offset: !0, variant: "heading-xs", children: u - }), i && po.jsx(xs, { + }), i && io.jsx(gs, { "aria-label": "string" == typeof i ? i : "Close", className: "sol-c-dialog__close sol-c-dialog__close--wide-click", - icon: _o, - onClick: () => w(!1), + icon: ho, + onClick: () => k(!1), size: "small", variant: "monochrome" })] - }), po.jsx(cd, { + }), io.jsx(id, { actions: e, onScrollToEnd: s, type: p, @@ -30277,40 +30521,40 @@ }) }) })), - dd = (0, Ee.forwardRef)(((e, t) => null == Qc() ? po.jsx(eu, { - children: po.jsx(ud, { + od = (0, Ee.forwardRef)(((e, t) => null == qc() ? io.jsx(Yc, { + children: io.jsx(ad, { ref: t, ...e }) - }) : po.jsx(ud, { + }) : io.jsx(ad, { ref: t, ...e }))); eo("@layer sol.components{.sol-c-divider{block-size:0;border-block-start-width:var(--sol-border-1);color:var(--sol-color-surface-3)}}"); - let pd = (0, Ee.forwardRef)((({ - className: e, - color: t, - spacing: n, - ...r - }, i) => { - let a = Lo("sol-c-divider", t && `sol-u-color-${t}`, n && `sol-u-margin-b-${n}`, e); - return po.jsx("hr", { + let sd = (0, Ee.forwardRef)((({ + className: e, + color: t, + spacing: n, + ...r + }, i) => { + let a = Ao("sol-c-divider", t && `sol-u-color-${t}`, n && `sol-u-margin-b-${n}`, e); + return io.jsx("hr", { className: a, ref: i, ...r }) })); - eo('@layer sol.components{.sol-c-download-progress{align-items:center;display:grid;grid:"header header" " bar actions" "stats stats "/1fr auto}.sol-c-download-progress__header{grid-area:header;margin-block-end:var(--sol-size-025)}.sol-c-download-progress__title{flex:1}.sol-c-download-progress__subtitle{flex-shrink:0}.sol-c-download-progress__bar{grid-area:bar}.sol-c-download-progress__stats{grid-area:stats;margin-block-start:var(--sol-size-025)}.sol-c-download-progress__stat{flex-basis:33.3333333333%}.sol-c-download-progress__stat--fill,.sol-c-download-progress__stat:only-child{flex:1 1 100%}.sol-c-download-progress__actions{grid-area:actions;margin-inline-start:var(--sol-size-050)}}'), eo('@layer sol.components{.sol-c-progress{--_background:var(--sol-color-surface-1);--_foreground:var(--sol-c-progress-color,var(--sol-color-status-informative));--_radius:var(--sol-radius-8);appearance:none;background:var(--_background) none;block-size:var(--sol-size-050);border:0;border-radius:var(--_radius);color:var(--_foreground);display:block;inline-size:100%;overflow:hidden;transition:color var(--sol-motion-250)}.sol-c-progress::-webkit-progress-bar{background:#0000}.sol-c-progress--disabled{background-image:linear-gradient(135deg,var(--sol-color-surface-3) 25%,var(--sol-color-surface-3-hovered) 25% 50%,var(--sol-color-surface-3) 50% 75%,var(--sol-color-surface-3-hovered) 75%);background-size:40px 40px}.sol-c-progress--disabled::-moz-progress-bar{width:0}.sol-c-progress::-webkit-progress-value{background:currentColor;border-radius:var(--_radius)}.sol-c-progress::-moz-progress-bar{background:currentColor;border-radius:var(--_radius)}.sol-c-progress:not(.sol-c-progress--disabled):indeterminate{overflow:hidden;position:relative}.sol-c-progress:not(.sol-c-progress--disabled):indeterminate:before{animation:progress-indeterminate var(--sol-motion-1000) var(--sol-motion-ease-in) infinite;background:currentColor;border-radius:var(--_radius);content:"";inset:0;position:absolute;width:20%}.sol-c-progress:not(.sol-c-progress--disabled):indeterminate::-moz-progress-bar{animation:progress-indeterminate var(--sol-motion-1000) var(--sol-motion-ease-in) infinite;width:20%}@keyframes progress-indeterminate{0%{margin-inline-start:-20%}to{margin-inline-start:100%}}}'); - let hd = (0, Ee.forwardRef)((({ - className: e, - disabled: t, - max: n = 100, - value: r, - status: i, - ...a - }, o) => { - let s = Lo("sol-c-progress", t && "sol-c-progress--disabled", i && `sol-u-color-status-${i}`, e); - return po.jsx("progress", { + eo('@layer sol.components{.sol-c-download-progress{align-items:center;display:grid;grid:"header header" "bar actions" "stats stats "/1fr auto}.sol-c-download-progress__header{grid-area:header;margin-block-end:var(--sol-size-025)}.sol-c-download-progress__title{flex:1}.sol-c-download-progress__subtitle{flex-shrink:0}.sol-c-download-progress__bar{grid-area:bar}.sol-c-download-progress__stats{grid-area:stats;margin-block-start:var(--sol-size-025)}.sol-c-download-progress__stat{flex-basis:33.3333333333%}.sol-c-download-progress__stat--fill,.sol-c-download-progress__stat:only-child{flex:1 1 100%}.sol-c-download-progress__actions{grid-area:actions;margin-inline-start:var(--sol-size-050)}.sol-c-download-progress--draggable{border:1px solid var(--sol-color-surface-3);border-radius:var(--sol-radius-4);grid:"drag header header" "drag bar actions" "drag stats stats "/auto 1fr auto;padding:var(--sol-size-075) var(--sol-size-050);position:relative}.sol-c-download-progress--draggable:before{background-color:var(--sol-color-surface-2-pressed);border-radius:var(--sol-radius-4);box-shadow:var(--sol-shadow-100);content:"";height:100%;opacity:0;pointer-events:none;position:absolute;user-select:none;width:100%;z-index:0}.sol-c-download-progress--draggable .sol-c-download-progress__drag-handle,.sol-c-download-progress--draggable:before{transition:all var(--sol-motion-150) var(--sol-motion-ease-out)}.sol-c-download-progress--draggable>*{z-index:1}.sol-c-download-progress--draggable.sortable-chosen{border-color:#0000}.sol-c-download-progress--draggable.sortable-chosen:before{opacity:1}.sol-c-download-progress--draggable.sortable-chosen .sol-c-download-progress__drag-handle{background-color:var(--sol-color-surface-0-pressed)}.sol-c-download-progress__drag-handle{border-radius:var(--sol-radius-4);color:var(--sol-color-interactive);cursor:grab;grid-area:drag;height:var(--sol-size-150);margin-inline-end:var(--sol-size-050);padding:var(--sol-size-025);width:var(--sol-size-150)}}'), eo('@layer sol.components{.sol-c-progress{--_background:var(--sol-color-surface-1);--_foreground:var(--sol-c-progress-color,var(--sol-color-status-informative));--_radius:var(--sol-radius-8);appearance:none;background:var(--_background) none;block-size:var(--sol-size-050);border:0;border-radius:var(--_radius);color:var(--_foreground);display:block;inline-size:100%;overflow:hidden;transition:color var(--sol-motion-250)}.sol-c-progress::-webkit-progress-bar{background:#0000}.sol-c-progress--disabled{background-image:linear-gradient(135deg,var(--sol-color-surface-3) 25%,var(--sol-color-surface-3-hovered) 25% 50%,var(--sol-color-surface-3) 50% 75%,var(--sol-color-surface-3-hovered) 75%);background-size:40px 40px}.sol-c-progress--disabled::-moz-progress-bar{width:0}.sol-c-progress::-webkit-progress-value{background:currentColor;border-radius:var(--_radius)}.sol-c-progress::-moz-progress-bar{background:currentColor;border-radius:var(--_radius)}.sol-c-progress:not(.sol-c-progress--disabled):indeterminate{overflow:hidden;position:relative}.sol-c-progress:not(.sol-c-progress--disabled):indeterminate:before{animation:progress-indeterminate var(--sol-motion-1000) var(--sol-motion-ease-in) infinite;background:currentColor;border-radius:var(--_radius);content:"";inset:0;position:absolute;width:20%}.sol-c-progress:not(.sol-c-progress--disabled):indeterminate::-moz-progress-bar{animation:progress-indeterminate var(--sol-motion-1000) var(--sol-motion-ease-in) infinite;width:20%}@keyframes progress-indeterminate{0%{margin-inline-start:-20%}to{margin-inline-start:100%}}}'); + let ld = (0, Ee.forwardRef)((({ + className: e, + disabled: t, + max: n = 100, + value: r, + status: i, + ...a + }, o) => { + let s = Ao("sol-c-progress", t && "sol-c-progress--disabled", i && `sol-u-color-status-${i}`, e); + return io.jsx("progress", { className: s, max: n, ref: o, @@ -30318,90 +30562,93 @@ ...a }) })), - fd = No((({ - actions: e, - as: t = "div", - state: n = "in-progress", - className: r, - id: i, - progress: a, - stats: o, - subtitle: s, - title: l, - ...c - }, u) => { - let d = $o(i), - p = Lo("sol-c-download-progress", r), - h = "completed" === n, - f = "error" === n, - m = l || s, - g = o && 0 !== o.length, - v = e && 0 !== e.length, - y = [l && d + "-title", s && d + "-subtitle"].filter(Boolean).join(" "); - return po.jsxs(t, { - className: p, - id: d, - ref: u, - ...c, - children: [m && po.jsxs(Ps, { + cd = Po((({ + actions: e, + as: t = "div", + state: n = "in-progress", + className: r, + id: i, + progress: a, + stats: o, + subtitle: s, + title: l, + isDraggable: c, + ...u + }, d) => { + let p = zo(i), + h = Ao("sol-c-download-progress", c && "sol-c-download-progress--draggable", r), + f = "completed" === n, + m = "error" === n, + g = l || s, + v = o && 0 !== o.length, + y = e && 0 !== e.length, + _ = [l && p + "-title", s && p + "-subtitle"].filter(Boolean).join(" "); + return io.jsxs(t, { + className: h, + id: p, + ref: d, + ...u, + children: [c && io.jsx(fo, { + className: "sol-c-download-progress__drag-handle" + }), g && io.jsxs(Es, { className: "sol-c-download-progress__header", gap: "050", justify: "space-between", - children: [l && po.jsx(gs, { + children: [l && io.jsx(ds, { color: "foreground-weak", className: "sol-c-download-progress__title", - id: d + "-title", + id: p + "-title", variant: "body-s", truncate: !0, children: l - }), s && po.jsx(gs, { + }), s && io.jsx(ds, { color: "foreground-weak", className: "sol-c-download-progress__subtitle", - id: d + "-subtitle", + id: p + "-subtitle", variant: "body-s", truncate: !0, children: s })] - }), po.jsx(hd, { - "aria-labelledby": y, - className: Lo("sol-c-download-progress__bar", (v || m) && "sol-u-margin-bs-050", (v || g) && "sol-u-margin-be-050"), + }), io.jsx(ld, { + "aria-labelledby": _, + className: Ao("sol-c-download-progress__bar", (y || g) && "sol-u-margin-bs-050", (y || v) && "sol-u-margin-be-050"), disabled: "paused" === n, - value: h || f ? 100 : "waiting" === n ? 0 : a, - status: h ? "positive" : f ? "negative" : void 0 - }), g && po.jsx(Ps, { + value: f || m ? 100 : "waiting" === n ? 0 : a, + status: f ? "positive" : m ? "negative" : void 0 + }), v && io.jsx(Es, { as: "ul", className: "sol-c-download-progress__stats", gap: "050", children: o.map((({ - fill: e, - label: t, - value: n - }, r) => po.jsxs(gs, { + fill: e, + label: t, + value: n + }, r) => io.jsxs(ds, { as: "li", - className: Lo("sol-c-download-progress__stat", e && "sol-c-download-progress__stat--fill"), + className: Ao("sol-c-download-progress__stat", e && "sol-c-download-progress__stat--fill"), color: "foreground-weak", variant: "body-xxs", truncate: !0, - children: [po.jsx("strong", { + children: [io.jsx("strong", { className: "sol-c-download-progress__label", children: t }), ": ", n] }, r))) - }), v && po.jsx(Ps, { + }), y && io.jsx(Es, { gap: "050", className: "sol-c-download-progress__actions", children: e.map((({ - className: e, - label: t, - tooltip: n, - ...r - }, i) => po.jsx(Ku, { + className: e, + label: t, + tooltip: n, + ...r + }, i) => io.jsx(Gu, { content: n, enabled: !!n, interactive: !1, - children: po.jsx(xs, { + children: io.jsx(gs, { "aria-label": t, - className: Lo("sol-c-download-progress__action", e), + className: Ao("sol-c-download-progress__action", e), size: "small", variant: "plain", ...r @@ -30410,21 +30657,2091 @@ })] }) })); - eo('@layer sol.components{.sol-c-field{--_max-inline-size:32.5rem;--_gap-block:var(--sol-size-050);--_gap-inline:var(--sol-size-150);display:flex;flex-direction:column;gap:var(--_gap-block);inline-size:100%;max-inline-size:var(--_max-inline-size)}.sol-c-field__feedback,.sol-c-field__label{transition:opacity var(--sol-motion-250)}.sol-c-field--disabled .sol-c-field__feedback,.sol-c-field--disabled .sol-c-field__label{opacity:.4}.sol-c-field__label{cursor:var(--sol-cursor-interactive)}.sol-c-field--horizontal{align-items:center;display:grid;gap:0;grid:"label ........" "content feedback" "help ........"/minmax(0,var(--_max-inline-size)) minmax(25%,1fr);max-inline-size:none}.sol-c-field--horizontal .sol-c-field__label{grid-area:label;margin-block-end:var(--_gap-block)}.sol-c-field--horizontal .sol-c-field__content{grid-area:content}.sol-c-field--horizontal .sol-c-field__feedback{grid-area:feedback;margin-inline-start:var(--_gap-inline)}.sol-c-field--horizontal .sol-c-field__help{grid-area:help;margin-block-start:var(--_gap-block)}}'); - let md = (0, Ee.createContext)(null), - gd = () => (0, Ee.useContext)(md), - vd = (0, Ee.forwardRef)((({ - className: e, - id: t, - ...n - }, r) => { + eo("@layer components{.sol-c-download-progress-group .sol-c-download-progress--draggable:not(:first-child){margin-block-start:var(--sol-size-100)}}"); + var ud = { + exports: {} + }; + + function dd(e, t) { + var n = Object.keys(e); + if (Object.getOwnPropertySymbols) { + var r = Object.getOwnPropertySymbols(e); + t && (r = r.filter((function(t) { + return Object.getOwnPropertyDescriptor(e, t).enumerable + }))), n.push.apply(n, r) + } + return n + } + + function pd(e) { + for (var t = 1; t < arguments.length; t++) { + var n = null != arguments[t] ? arguments[t] : {}; + t % 2 ? dd(Object(n), !0).forEach((function(t) { + var r; + r = n[t], t in e ? Object.defineProperty(e, t, { + value: r, + enumerable: !0, + configurable: !0, + writable: !0 + }) : e[t] = r + })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : dd(Object(n)).forEach((function(t) { + Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t)) + })) + } + return e + } + + function hd(e) { + return (hd = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) { + return typeof e + } : function(e) { + return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e + })(e) + } + + function fd() { + return (fd = Object.assign || function(e) { + for (var t = 1; t < arguments.length; t++) { + var n = arguments[t]; + for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]) + } + return e + }).apply(this, arguments) + } + + function md(e, t) { + (null == t || t > e.length) && (t = e.length); + for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n]; + return r + } + + function gd(e) { + if ("undefined" != typeof window && window.navigator) return !!navigator.userAgent.match(e) + } + var vd = gd(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), + yd = gd(/Edge/i), + _d = gd(/firefox/i), + bd = gd(/safari/i) && !gd(/chrome/i) && !gd(/android/i), + xd = gd(/iP(ad|od|hone)/i), + wd = gd(/chrome/i) && gd(/android/i), + kd = { + capture: !1, + passive: !1 + }; + + function Sd(e, t, n) { + e.addEventListener(t, n, !vd && kd) + } + + function Ed(e, t, n) { + e.removeEventListener(t, n, !vd && kd) + } + + function Od(e, t) { + if (t) { + if (">" === t[0] && (t = t.substring(1)), e) try { + if (e.matches) return e.matches(t); + if (e.msMatchesSelector) return e.msMatchesSelector(t); + if (e.webkitMatchesSelector) return e.webkitMatchesSelector(t) + } catch (e) {} + return !1 + } + } + + function Id(e) { + return e.host && e !== document && e.host.nodeType ? e.host : e.parentNode + } + + function Cd(e, t, n, r) { + if (e) { + n = n || document; + do { + if (null != t && (">" === t[0] ? e.parentNode === n && Od(e, t) : Od(e, t)) || r && e === n) return e; + if (e === n) break + } while (e = Id(e)) + } + return null + } + var Ad = /\s+/g; + + function Pd(e, t, n) { + if (e && t) + if (e.classList) e.classList[n ? "add" : "remove"](t); + else { + var r = (" " + e.className + " ").replace(Ad, " ").replace(" " + t + " ", " "); + e.className = (r + (n ? " " + t : "")).replace(Ad, " ") + } + } + + function Td(e, t, n) { + var r = e && e.style; + if (r) { + if (void 0 === n) return document.defaultView && document.defaultView.getComputedStyle ? n = document.defaultView.getComputedStyle(e, "") : e.currentStyle && (n = e.currentStyle), void 0 === t ? n : n[t]; + t in r || -1 !== t.indexOf("webkit") || (t = "-webkit-" + t), r[t] = n + ("string" == typeof n ? "" : "px") + } + } + + function Rd(e, t) { + var n = ""; + if ("string" == typeof e) n = e; + else + do { + var r = Td(e, "transform"); + r && "none" !== r && (n = r + " " + n) + } while (!t && (e = e.parentNode)); + var i = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix; + return i && new i(n) + } + + function Dd(e, t, n) { + if (e) { + var r = e.getElementsByTagName(t), + i = 0, + a = r.length; + if (n) + for (; i < a; i++) n(r[i], i); + return r + } + return [] + } + + function Ld() { + return document.scrollingElement || document.documentElement + } + + function Nd(e, t, n, r, i) { + if (e.getBoundingClientRect || e === window) { + if (e !== window && e.parentNode && e !== Ld() ? (o = (a = e.getBoundingClientRect()).top, s = a.left, l = a.bottom, c = a.right, u = a.height, d = a.width) : (o = 0, s = 0, l = window.innerHeight, c = window.innerWidth, u = window.innerHeight, d = window.innerWidth), (t || n) && e !== window && (i = i || e.parentNode, !vd)) + do { + if (i && i.getBoundingClientRect && ("none" !== Td(i, "transform") || n && "static" !== Td(i, "position"))) { + var a, o, s, l, c, u, d, p = i.getBoundingClientRect(); + o -= p.top + parseInt(Td(i, "border-top-width")), s -= p.left + parseInt(Td(i, "border-left-width")), l = o + a.height, c = s + a.width; + break + } + } while (i = i.parentNode); + if (r && e !== window) { + var h = Rd(i || e), + f = h && h.a, + m = h && h.d; + h && (l = (o /= m) + (u /= m), c = (s /= f) + (d /= f)) + } + return { + top: o, + left: s, + bottom: l, + right: c, + width: d, + height: u + } + } + } + + function jd(e, t, n) { + for (var r = Ud(e, !0), i = Nd(e)[t]; r;) { + var a = Nd(r)[n]; + if (!("top" === n || "left" === n ? i >= a : i <= a)) return r; + if (r === Ld()) break; + r = Ud(r, !1) + } + return !1 + } + + function Md(e, t, n, r) { + for (var i = 0, a = 0, o = e.children; a < o.length;) { + if ("none" !== o[a].style.display && o[a] !== th.ghost && (r || o[a] !== th.dragged) && Cd(o[a], n.draggable, e, !1)) { + if (i === t) return o[a]; + i++ + } + a++ + } + return null + } + + function Fd(e, t) { + for (var n = e.lastElementChild; n && (n === th.ghost || "none" === Td(n, "display") || t && !Od(n, t));) n = n.previousElementSibling; + return n || null + } + + function zd(e, t) { + var n = 0; + if (!e || !e.parentNode) return -1; + for (; e = e.previousElementSibling;) "TEMPLATE" !== e.nodeName.toUpperCase() && e !== th.clone && (!t || Od(e, t)) && n++; + return n + } + + function Vd(e) { + var t = 0, + n = 0, + r = Ld(); + if (e) + do { + var i = Rd(e), + a = i.a, + o = i.d; + t += e.scrollLeft * a, n += e.scrollTop * o + } while (e !== r && (e = e.parentNode)); + return [t, n] + } + + function Ud(e, t) { + if (!e || !e.getBoundingClientRect) return Ld(); + var n = e, + r = !1; + do { + if (n.clientWidth < n.scrollWidth || n.clientHeight < n.scrollHeight) { + var i = Td(n); + if (n.clientWidth < n.scrollWidth && ("auto" == i.overflowX || "scroll" == i.overflowX) || n.clientHeight < n.scrollHeight && ("auto" == i.overflowY || "scroll" == i.overflowY)) { + if (!n.getBoundingClientRect || n === document.body) return Ld(); + if (r || t) return n; + r = !0 + } + } + } while (n = n.parentNode); + return Ld() + } + + function Bd(e, t) { + return Math.round(e.top) === Math.round(t.top) && Math.round(e.left) === Math.round(t.left) && Math.round(e.height) === Math.round(t.height) && Math.round(e.width) === Math.round(t.width) + } + + function Gd(e, t) { + return function() { + if (!dp) { + var n = arguments; + 1 === n.length ? e.call(this, n[0]) : e.apply(this, n), dp = setTimeout((function() { + dp = void 0 + }), t) + } + } + } + + function $d(e, t, n) { + e.scrollLeft += t, e.scrollTop += n + } + + function qd(e) { + var t = window.Polymer, + n = window.jQuery || window.Zepto; + return t && t.dom ? t.dom(e).cloneNode(!0) : n ? n(e).clone(!0)[0] : e.cloneNode(!0) + } + + function Wd(e, t) { + Td(e, "position", "absolute"), Td(e, "top", t.top), Td(e, "left", t.left), Td(e, "width", t.width), Td(e, "height", t.height) + } + + function Hd(e) { + Td(e, "position", ""), Td(e, "top", ""), Td(e, "left", ""), Td(e, "width", ""), Td(e, "height", "") + } + + function Kd(e, t, n) { + var r = {}; + return Array.from(e.children).forEach((function(i) { + if (Cd(i, t.draggable, e, !1) && !i.animated && i !== n) { + var a, o, s, l, c = Nd(i); + r.left = Math.min(null !== (a = r.left) && void 0 !== a ? a : 1 / 0, c.left), r.top = Math.min(null !== (o = r.top) && void 0 !== o ? o : 1 / 0, c.top), r.right = Math.max(null !== (s = r.right) && void 0 !== s ? s : -1 / 0, c.right), r.bottom = Math.max(null !== (l = r.bottom) && void 0 !== l ? l : -1 / 0, c.bottom) + } + })), r.width = r.right - r.left, r.height = r.bottom - r.top, r.x = r.left, r.y = r.top, r + } + var Yd = "Sortable" + (new Date).getTime(), + Qd = [], + Zd = { + initializeByDefault: !0 + }, + Xd = { + mount: function(e) { + for (var t in Zd) !Zd.hasOwnProperty(t) || t in e || (e[t] = Zd[t]); + Qd.forEach((function(t) { + if (t.pluginName === e.pluginName) throw "Sortable: Cannot mount plugin ".concat(e.pluginName, " more than once") + })), Qd.push(e) + }, + pluginEvent: function(e, t, n) { + var r = this; + this.eventCanceled = !1, n.cancel = function() { + r.eventCanceled = !0 + }; + var i = e + "Global"; + Qd.forEach((function(r) { + t[r.pluginName] && (t[r.pluginName][i] && t[r.pluginName][i](pd({ + sortable: t + }, n)), t.options[r.pluginName] && t[r.pluginName][e] && t[r.pluginName][e](pd({ + sortable: t + }, n))) + })) + }, + initializePlugins: function(e, t, n, r) { + for (var i in Qd.forEach((function(r) { + var i = r.pluginName; + if (e.options[i] || r.initializeByDefault) { + var a = new r(e, t, e.options); + a.sortable = e, a.options = e.options, e[i] = a, fd(n, a.defaults) + } + })), e.options) + if (e.options.hasOwnProperty(i)) { + var a = this.modifyOption(e, i, e.options[i]); + void 0 !== a && (e.options[i] = a) + } + }, + getEventProperties: function(e, t) { + var n = {}; + return Qd.forEach((function(r) { + "function" == typeof r.eventProperties && fd(n, r.eventProperties.call(t[r.pluginName], e)) + })), n + }, + modifyOption: function(e, t, n) { + var r; + return Qd.forEach((function(i) { + e[i.pluginName] && i.optionListeners && "function" == typeof i.optionListeners[t] && (r = i.optionListeners[t].call(e[i.pluginName], n)) + })), r + } + }; + + function Jd(e) { + var t = e.sortable, + n = e.rootEl, + r = e.name, + i = e.targetEl, + a = e.cloneEl, + o = e.toEl, + s = e.fromEl, + l = e.oldIndex, + c = e.newIndex, + u = e.oldDraggableIndex, + d = e.newDraggableIndex, + p = e.originalEvent, + h = e.putSortable, + f = e.extraEventProperties; + if (t = t || n && n[Yd]) { + var m, g = t.options, + v = "on" + r.charAt(0).toUpperCase() + r.substr(1); + !window.CustomEvent || vd || yd ? (m = document.createEvent("Event")).initEvent(r, !0, !0) : m = new CustomEvent(r, { + bubbles: !0, + cancelable: !0 + }), m.to = o || n, m.from = s || n, m.item = i || n, m.clone = a, m.oldIndex = l, m.newIndex = c, m.oldDraggableIndex = u, m.newDraggableIndex = d, m.originalEvent = p, m.pullMode = h ? h.lastPutMode : void 0; + var y = pd(pd({}, f), Xd.getEventProperties(r, t)); + for (var _ in y) m[_] = y[_]; + n && n.dispatchEvent(m), g[v] && g[v].call(t, m) + } + } + var ep = ["evt"], + tp = function(e, t) { + var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {}, + r = n.evt, + i = function(e, t) { + if (null == e) return {}; + var n, r, i = function(e, t) { + if (null == e) return {}; + var n, r, i = {}, + a = Object.keys(e); + for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) >= 0 || (i[n] = e[n]); + return i + }(e, t); + if (Object.getOwnPropertySymbols) { + var a = Object.getOwnPropertySymbols(e); + for (r = 0; r < a.length; r++) n = a[r], !(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n) && (i[n] = e[n]) + } + return i + }(n, ep); + Xd.pluginEvent.bind(th)(e, t, pd({ + dragEl: pp, + parentEl: hp, + ghostEl: fp, + rootEl: mp, + nextEl: gp, + lastDownEl: vp, + cloneEl: yp, + cloneHidden: _p, + dragStarted: Rp, + putSortable: Ep, + activeSortable: th.active, + originalEvent: r, + oldIndex: bp, + oldDraggableIndex: wp, + newIndex: xp, + newDraggableIndex: kp, + hideGhostForTarget: Zp, + unhideGhostForTarget: Xp, + cloneNowHidden: function() { + _p = !0 + }, + cloneNowShown: function() { + _p = !1 + }, + dispatchSortableEvent: function(e) { + np({ + sortable: t, + name: e, + originalEvent: r + }) + } + }, i)) + }; + + function np(e) { + Jd(pd({ + putSortable: Ep, + cloneEl: yp, + targetEl: pp, + rootEl: mp, + oldIndex: bp, + oldDraggableIndex: wp, + newIndex: xp, + newDraggableIndex: kp + }, e)) + } + var rp, ip, ap, op, sp, lp, cp, up, dp, pp, hp, fp, mp, gp, vp, yp, _p, bp, xp, wp, kp, Sp, Ep, Op, Ip, Cp, Ap, Pp, Tp, Rp, Dp, Lp, Np, jp, Mp = !1, + Fp = !1, + zp = [], + Vp = !1, + Up = !1, + Bp = [], + Gp = !1, + $p = [], + qp = "undefined" != typeof document, + Wp = yd || vd ? "cssFloat" : "float", + Hp = qp && !wd && !xd && "draggable" in document.createElement("div"), + Kp = function() { + if (qp) { + if (vd) return !1; + var e = document.createElement("x"); + return e.style.cssText = "pointer-events:auto", "auto" === e.style.pointerEvents + } + }(), + Yp = function(e, t) { + var n = Td(e), + r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), + i = Md(e, 0, t), + a = Md(e, 1, t), + o = i && Td(i), + s = a && Td(a), + l = o && parseInt(o.marginLeft) + parseInt(o.marginRight) + Nd(i).width, + c = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + Nd(a).width; + if ("flex" === n.display) return "column" === n.flexDirection || "column-reverse" === n.flexDirection ? "vertical" : "horizontal"; + if ("grid" === n.display) return n.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal"; + if (i && o.float && "none" !== o.float) { + var u = "left" === o.float ? "left" : "right"; + return !a || "both" !== s.clear && s.clear !== u ? "horizontal" : "vertical" + } + return i && ("block" === o.display || "flex" === o.display || "table" === o.display || "grid" === o.display || l >= r && "none" === n[Wp] || a && "none" === n[Wp] && l + c > r) ? "vertical" : "horizontal" + }, + Qp = function(e) { + function t(e, n) { + return function(r, i, a, o) { + var s = r.options.group.name && i.options.group.name && r.options.group.name === i.options.group.name; + if (null == e && (n || s)) return !0; + if (null == e || !1 === e) return !1; + if (n && "clone" === e) return e; + if ("function" == typeof e) return t(e(r, i, a, o), n)(r, i, a, o); + var l = (n ? r : i).options.group.name; + return !0 === e || "string" == typeof e && e === l || e.join && e.indexOf(l) > -1 + } + } + var n = {}, + r = e.group; + r && "object" == hd(r) || (r = { + name: r + }), n.name = r.name, n.checkPull = t(r.pull, !0), n.checkPut = t(r.put), n.revertClone = r.revertClone, e.group = n + }, + Zp = function() { + !Kp && fp && Td(fp, "display", "none") + }, + Xp = function() { + !Kp && fp && Td(fp, "display", "") + }; + qp && !wd && document.addEventListener("click", (function(e) { + if (Fp) return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), Fp = !1, !1 + }), !0); + var Jp = function(e) { + if (pp) { + var t = function(e, t) { + var n; + return zp.some((function(r) { + var i = r[Yd].options.emptyInsertThreshold; + if (i && !Fd(r)) { + var a = Nd(r), + o = e >= a.left - i && e <= a.right + i, + s = t >= a.top - i && t <= a.bottom + i; + if (o && s) return n = r + } + })), n + }((e = e.touches ? e.touches[0] : e).clientX, e.clientY); + if (t) { + var n = {}; + for (var r in e) e.hasOwnProperty(r) && (n[r] = e[r]); + n.target = n.rootEl = t, n.preventDefault = void 0, n.stopPropagation = void 0, t[Yd]._onDragOver(n) + } + } + }, + eh = function(e) { + pp && pp.parentNode[Yd]._isOutsideThisEl(e.target) + }; + + function th(e, t) { + if (!e || !e.nodeType || 1 !== e.nodeType) throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e)); + this.el = e, this.options = t = fd({}, t), e[Yd] = this; + var n, r, i = { + group: null, + sort: !0, + disabled: !1, + store: null, + handle: null, + draggable: /^[uo]l$/i.test(e.nodeName) ? ">li" : ">*", + swapThreshold: 1, + invertSwap: !1, + invertedSwapThreshold: null, + removeCloneOnHide: !0, + direction: function() { + return Yp(e, this.options) + }, + ghostClass: "sortable-ghost", + chosenClass: "sortable-chosen", + dragClass: "sortable-drag", + ignore: "a, img", + filter: null, + preventOnFilter: !0, + animation: 0, + easing: null, + setData: function(e, t) { + e.setData("Text", t.textContent) + }, + dropBubble: !1, + dragoverBubble: !1, + dataIdAttr: "data-id", + delay: 0, + delayOnTouchOnly: !1, + touchStartThreshold: (Number.parseInt ? Number : window).parseInt(window.devicePixelRatio, 10) || 1, + forceFallback: !1, + fallbackClass: "sortable-fallback", + fallbackOnBody: !1, + fallbackTolerance: 0, + fallbackOffset: { + x: 0, + y: 0 + }, + supportPointer: !1 !== th.supportPointer && "PointerEvent" in window && !bd, + emptyInsertThreshold: 5 + }; + for (var a in Xd.initializePlugins(this, e, i), i) a in t || (t[a] = i[a]); + for (var o in Qp(t), this) "_" === o.charAt(0) && "function" == typeof this[o] && (this[o] = this[o].bind(this)); + this.nativeDraggable = !t.forceFallback && Hp, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? Sd(e, "pointerdown", this._onTapStart) : (Sd(e, "mousedown", this._onTapStart), Sd(e, "touchstart", this._onTapStart)), this.nativeDraggable && (Sd(e, "dragover", this), Sd(e, "dragenter", this)), zp.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), fd(this, (r = [], { + captureAnimationState: function() { + r = [], this.options.animation && [].slice.call(this.el.children).forEach((function(e) { + if ("none" !== Td(e, "display") && e !== th.ghost) { + r.push({ + target: e, + rect: Nd(e) + }); + var t = pd({}, r[r.length - 1].rect); + if (e.thisAnimationDuration) { + var n = Rd(e, !0); + n && (t.top -= n.f, t.left -= n.e) + } + e.fromRect = t + } + })) + }, + addAnimationState: function(e) { + r.push(e) + }, + removeAnimationState: function(e) { + r.splice(function(e, t) { + for (var n in e) + if (e.hasOwnProperty(n)) + for (var r in t) + if (t.hasOwnProperty(r) && t[r] === e[n][r]) return Number(n); + return -1 + }(r, { + target: e + }), 1) + }, + animateAll: function(e) { + var t = this; + if (!this.options.animation) return clearTimeout(n), void("function" == typeof e && e()); + var i = !1, + a = 0; + r.forEach((function(e) { + var n, r = 0, + o = e.target, + s = o.fromRect, + l = Nd(o), + c = o.prevFromRect, + u = o.prevToRect, + d = e.rect, + p = Rd(o, !0); + p && (l.top -= p.f, l.left -= p.e), o.toRect = l, o.thisAnimationDuration && Bd(c, l) && !Bd(s, l) && (d.top - l.top) / (d.left - l.left) == (s.top - l.top) / (s.left - l.left) && (n = t.options, r = Math.sqrt(Math.pow(c.top - d.top, 2) + Math.pow(c.left - d.left, 2)) / Math.sqrt(Math.pow(c.top - u.top, 2) + Math.pow(c.left - u.left, 2)) * n.animation), Bd(l, s) || (o.prevFromRect = s, o.prevToRect = l, r || (r = t.options.animation), t.animate(o, d, l, r)), r && (i = !0, a = Math.max(a, r), clearTimeout(o.animationResetTimer), o.animationResetTimer = setTimeout((function() { + o.animationTime = 0, o.prevFromRect = null, o.fromRect = null, o.prevToRect = null, o.thisAnimationDuration = null + }), r), o.thisAnimationDuration = r) + })), clearTimeout(n), i ? n = setTimeout((function() { + "function" == typeof e && e() + }), a) : "function" == typeof e && e(), r = [] + }, + animate: function(e, t, n, r) { + if (r) { + Td(e, "transition", ""), Td(e, "transform", ""); + var i = Rd(this.el), + a = i && i.a, + o = i && i.d, + s = (t.left - n.left) / (a || 1), + l = (t.top - n.top) / (o || 1); + e.animatingX = !!s, e.animatingY = !!l, Td(e, "transform", "translate3d(" + s + "px," + l + "px,0)"), this.forRepaintDummy = e.offsetWidth, Td(e, "transition", "transform " + r + "ms" + (this.options.easing ? " " + this.options.easing : "")), Td(e, "transform", "translate3d(0,0,0)"), "number" == typeof e.animated && clearTimeout(e.animated), e.animated = setTimeout((function() { + Td(e, "transition", ""), Td(e, "transform", ""), e.animated = !1, e.animatingX = !1, e.animatingY = !1 + }), r) + } + } + })) + } + + function nh(e, t, n, r, i, a, o, s) { + var l, c, u = e[Yd], + d = u.options.onMove; + return !window.CustomEvent || vd || yd ? (l = document.createEvent("Event")).initEvent("move", !0, !0) : l = new CustomEvent("move", { + bubbles: !0, + cancelable: !0 + }), l.to = t, l.from = e, l.dragged = n, l.draggedRect = r, l.related = i || t, l.relatedRect = a || Nd(t), l.willInsertAfter = s, l.originalEvent = o, e.dispatchEvent(l), d && (c = d.call(u, l, o)), c + } + + function rh(e) { + e.draggable = !1 + } + + function ih() { + Gp = !1 + } + + function ah(e) { + return setTimeout(e, 0) + } + + function oh(e) { + return clearTimeout(e) + } + th.prototype = { + constructor: th, + _isOutsideThisEl: function(e) { + this.el.contains(e) || e === this.el || (Dp = null) + }, + _getDirection: function(e, t) { + return "function" == typeof this.options.direction ? this.options.direction.call(this, e, t, pp) : this.options.direction + }, + _onTapStart: function(e) { + if (e.cancelable) { + var t = this, + n = this.el, + r = this.options, + i = r.preventOnFilter, + a = e.type, + o = e.touches && e.touches[0] || e.pointerType && "touch" === e.pointerType && e, + s = (o || e).target, + l = e.target.shadowRoot && (e.path && e.path[0] || e.composedPath && e.composedPath()[0]) || s, + c = r.filter; + if (function(e) { + $p.length = 0; + for (var t = e.getElementsByTagName("input"), n = t.length; n--;) { + var r = t[n]; + r.checked && $p.push(r) + } + }(n), !(pp || /mousedown|pointerdown/.test(a) && 0 !== e.button || r.disabled || l.isContentEditable || !this.nativeDraggable && bd && s && "SELECT" === s.tagName.toUpperCase() || (s = Cd(s, r.draggable, n, !1)) && s.animated) && vp !== s) { + if (bp = zd(s), wp = zd(s, r.draggable), "function" == typeof c) { + if (c.call(this, e, s, this)) return np({ + sortable: t, + rootEl: l, + name: "filter", + targetEl: s, + toEl: n, + fromEl: n + }), tp("filter", t, { + evt: e + }), void(i && e.cancelable && e.preventDefault()) + } else if (c && (c = c.split(",").some((function(r) { + if (r = Cd(l, r.trim(), n, !1)) return np({ + sortable: t, + rootEl: r, + name: "filter", + targetEl: s, + fromEl: n, + toEl: n + }), tp("filter", t, { + evt: e + }), !0 + })))) return void(i && e.cancelable && e.preventDefault()); + (!r.handle || Cd(l, r.handle, n, !1)) && this._prepareDragStart(e, o, s) + } + } + }, + _prepareDragStart: function(e, t, n) { + var r, i = this, + a = i.el, + o = i.options, + s = a.ownerDocument; + if (n && !pp && n.parentNode === a) { + var l = Nd(n); + if (mp = a, hp = (pp = n).parentNode, gp = pp.nextSibling, vp = n, Sp = o.group, th.dragged = pp, Pp = (Op = { + target: pp, + clientX: (t || e).clientX, + clientY: (t || e).clientY + }).clientX - l.left, Tp = Op.clientY - l.top, this._lastX = (t || e).clientX, this._lastY = (t || e).clientY, pp.style["will-change"] = "all", r = function() { + tp("delayEnded", i, { + evt: e + }), th.eventCanceled ? i._onDrop() : (i._disableDelayedDragEvents(), !_d && i.nativeDraggable && (pp.draggable = !0), i._triggerDragStart(e, t), np({ + sortable: i, + name: "choose", + originalEvent: e + }), Pd(pp, o.chosenClass, !0)) + }, o.ignore.split(",").forEach((function(e) { + Dd(pp, e.trim(), rh) + })), Sd(s, "dragover", Jp), Sd(s, "mousemove", Jp), Sd(s, "touchmove", Jp), Sd(s, "mouseup", i._onDrop), Sd(s, "touchend", i._onDrop), Sd(s, "touchcancel", i._onDrop), _d && this.nativeDraggable && (this.options.touchStartThreshold = 4, pp.draggable = !0), tp("delayStart", this, { + evt: e + }), !o.delay || o.delayOnTouchOnly && !t || this.nativeDraggable && (yd || vd)) r(); + else { + if (th.eventCanceled) return void this._onDrop(); + Sd(s, "mouseup", i._disableDelayedDrag), Sd(s, "touchend", i._disableDelayedDrag), Sd(s, "touchcancel", i._disableDelayedDrag), Sd(s, "mousemove", i._delayedDragTouchMoveHandler), Sd(s, "touchmove", i._delayedDragTouchMoveHandler), o.supportPointer && Sd(s, "pointermove", i._delayedDragTouchMoveHandler), i._dragStartTimer = setTimeout(r, o.delay) + } + } + }, + _delayedDragTouchMoveHandler: function(e) { + var t = e.touches ? e.touches[0] : e; + Math.max(Math.abs(t.clientX - this._lastX), Math.abs(t.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1)) && this._disableDelayedDrag() + }, + _disableDelayedDrag: function() { + pp && rh(pp), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents() + }, + _disableDelayedDragEvents: function() { + var e = this.el.ownerDocument; + Ed(e, "mouseup", this._disableDelayedDrag), Ed(e, "touchend", this._disableDelayedDrag), Ed(e, "touchcancel", this._disableDelayedDrag), Ed(e, "mousemove", this._delayedDragTouchMoveHandler), Ed(e, "touchmove", this._delayedDragTouchMoveHandler), Ed(e, "pointermove", this._delayedDragTouchMoveHandler) + }, + _triggerDragStart: function(e, t) { + t = t || "touch" == e.pointerType && e, !this.nativeDraggable || t ? this.options.supportPointer ? Sd(document, "pointermove", this._onTouchMove) : Sd(document, t ? "touchmove" : "mousemove", this._onTouchMove) : (Sd(pp, "dragend", this), Sd(mp, "dragstart", this._onDragStart)); + try { + document.selection ? ah((function() { + document.selection.empty() + })) : window.getSelection().removeAllRanges() + } catch (e) {} + }, + _dragStarted: function(e, t) { + if (Mp = !1, mp && pp) { + tp("dragStarted", this, { + evt: t + }), this.nativeDraggable && Sd(document, "dragover", eh); + var n = this.options; + e || Pd(pp, n.dragClass, !1), Pd(pp, n.ghostClass, !0), th.active = this, e && this._appendGhost(), np({ + sortable: this, + name: "start", + originalEvent: t + }) + } else this._nulling() + }, + _emulateDragOver: function() { + if (Ip) { + this._lastX = Ip.clientX, this._lastY = Ip.clientY, Zp(); + for (var e = document.elementFromPoint(Ip.clientX, Ip.clientY), t = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(Ip.clientX, Ip.clientY)) !== t;) t = e; + if (pp.parentNode[Yd]._isOutsideThisEl(e), t) + do { + if (t[Yd] && t[Yd]._onDragOver({ + clientX: Ip.clientX, + clientY: Ip.clientY, + target: e, + rootEl: t + }) && !this.options.dragoverBubble) break; + e = t + } while (t = Id(t)); + Xp() + } + }, + _onTouchMove: function(e) { + if (Op) { + var t = this.options, + n = t.fallbackTolerance, + r = t.fallbackOffset, + i = e.touches ? e.touches[0] : e, + a = fp && Rd(fp, !0), + o = fp && a && a.a, + s = fp && a && a.d, + l = xd && jp && Vd(jp), + c = (i.clientX - Op.clientX + r.x) / (o || 1) + (l ? l[0] - Bp[0] : 0) / (o || 1), + u = (i.clientY - Op.clientY + r.y) / (s || 1) + (l ? l[1] - Bp[1] : 0) / (s || 1); + if (!th.active && !Mp) { + if (n && Math.max(Math.abs(i.clientX - this._lastX), Math.abs(i.clientY - this._lastY)) < n) return; + this._onDragStart(e, !0) + } + if (fp) { + a ? (a.e += c - (Cp || 0), a.f += u - (Ap || 0)) : a = { + a: 1, + b: 0, + c: 0, + d: 1, + e: c, + f: u + }; + var d = "matrix(".concat(a.a, ",").concat(a.b, ",").concat(a.c, ",").concat(a.d, ",").concat(a.e, ",").concat(a.f, ")"); + Td(fp, "webkitTransform", d), Td(fp, "mozTransform", d), Td(fp, "msTransform", d), Td(fp, "transform", d), Cp = c, Ap = u, Ip = i + } + e.cancelable && e.preventDefault() + } + }, + _appendGhost: function() { + if (!fp) { + var e = this.options.fallbackOnBody ? document.body : mp, + t = Nd(pp, !0, xd, !0, e), + n = this.options; + if (xd) { + for (jp = e; + "static" === Td(jp, "position") && "none" === Td(jp, "transform") && jp !== document;) jp = jp.parentNode; + jp !== document.body && jp !== document.documentElement ? (jp === document && (jp = Ld()), t.top += jp.scrollTop, t.left += jp.scrollLeft) : jp = Ld(), Bp = Vd(jp) + } + Pd(fp = pp.cloneNode(!0), n.ghostClass, !1), Pd(fp, n.fallbackClass, !0), Pd(fp, n.dragClass, !0), Td(fp, "transition", ""), Td(fp, "transform", ""), Td(fp, "box-sizing", "border-box"), Td(fp, "margin", 0), Td(fp, "top", t.top), Td(fp, "left", t.left), Td(fp, "width", t.width), Td(fp, "height", t.height), Td(fp, "opacity", "0.8"), Td(fp, "position", xd ? "absolute" : "fixed"), Td(fp, "zIndex", "100000"), Td(fp, "pointerEvents", "none"), th.ghost = fp, e.appendChild(fp), Td(fp, "transform-origin", Pp / parseInt(fp.style.width) * 100 + "% " + Tp / parseInt(fp.style.height) * 100 + "%") + } + }, + _onDragStart: function(e, t) { + var n = this, + r = e.dataTransfer, + i = n.options; + tp("dragStart", this, { + evt: e + }), th.eventCanceled ? this._onDrop() : (tp("setupClone", this), th.eventCanceled || ((yp = qd(pp)).removeAttribute("id"), yp.draggable = !1, yp.style["will-change"] = "", this._hideClone(), Pd(yp, this.options.chosenClass, !1), th.clone = yp), n.cloneId = ah((function() { + tp("clone", n), th.eventCanceled || (n.options.removeCloneOnHide || mp.insertBefore(yp, pp), n._hideClone(), np({ + sortable: n, + name: "clone" + })) + })), t || Pd(pp, i.dragClass, !0), t ? (Fp = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (Ed(document, "mouseup", n._onDrop), Ed(document, "touchend", n._onDrop), Ed(document, "touchcancel", n._onDrop), r && (r.effectAllowed = "move", i.setData && i.setData.call(n, r, pp)), Sd(document, "drop", n), Td(pp, "transform", "translateZ(0)")), Mp = !0, n._dragStartId = ah(n._dragStarted.bind(n, t, e)), Sd(document, "selectstart", n), Rp = !0, bd && Td(document.body, "user-select", "none")) + }, + _onDragOver: function(e) { + var t, n, r, i, a = this.el, + o = e.target, + s = this.options, + l = s.group, + c = th.active, + u = Sp === l, + d = s.sort, + p = Ep || c, + h = this, + f = !1; + if (!Gp) { + if (void 0 !== e.preventDefault && e.cancelable && e.preventDefault(), o = Cd(o, s.draggable, a, !0), N("dragOver"), th.eventCanceled) return f; + if (pp.contains(e.target) || o.animated && o.animatingX && o.animatingY || h._ignoreWhileAnimating === o) return M(!1); + if (Fp = !1, c && !s.disabled && (u ? d || (r = hp !== mp) : Ep === this || (this.lastPutMode = Sp.checkPull(this, c, pp, e)) && l.checkPut(this, c, pp, e))) { + if (i = "vertical" === this._getDirection(e, o), t = Nd(pp), N("dragOverValid"), th.eventCanceled) return f; + if (r) return hp = mp, j(), this._hideClone(), N("revert"), th.eventCanceled || (gp ? mp.insertBefore(pp, gp) : mp.appendChild(pp)), M(!0); + var m = Fd(a, s.draggable); + if (m && (v = i, y = Nd(Fd(this.el, this.options.draggable)), _ = Kd(this.el, this.options, fp), !(v ? e.clientX > _.right + 10 || e.clientY > y.bottom && e.clientX > y.left : e.clientY > _.bottom + 10 || e.clientX > y.right && e.clientY > y.top) || m.animated)) { + if (m && (b = i, x = Nd(Md(this.el, 0, this.options, !0)), w = Kd(this.el, this.options, fp), b ? e.clientX < w.left - 10 || e.clientY < x.top && e.clientX < x.right : e.clientY < w.top - 10 || e.clientY < x.bottom && e.clientX < x.left)) { + var g = Md(a, 0, s, !0); + if (g === pp) return M(!1); + if (n = Nd(o = g), !1 !== nh(mp, a, pp, t, o, n, e, !1)) return j(), a.insertBefore(pp, g), hp = a, F(), M(!0) + } else if (o.parentNode === a) { + n = Nd(o); + var v, y, _, b, x, w, k, S, E, O = pp.parentNode !== a, + I = ! function(e, t, n) { + var r = n ? e.left : e.top, + i = n ? e.right : e.bottom, + a = n ? e.width : e.height, + o = n ? t.left : t.top, + s = n ? t.right : t.bottom, + l = n ? t.width : t.height; + return r === o || i === s || r + a / 2 === o + l / 2 + }(pp.animated && pp.toRect || t, o.animated && o.toRect || n, i), + C = i ? "top" : "left", + A = jd(o, "top", "top") || jd(pp, "top", "top"), + P = A ? A.scrollTop : void 0; + if (Dp !== o && (S = n[C], Vp = !1, Up = !I && s.invertSwap || O), 0 !== (E = function(e, t, n, r, i, a, o, s) { + var l = r ? e.clientY : e.clientX, + c = r ? n.height : n.width, + u = r ? n.top : n.left, + d = r ? n.bottom : n.right, + p = !1; + if (!o) + if (s && Np < c * i) { + if (!Vp && (1 === Lp ? l > u + c * a / 2 : l < d - c * a / 2) && (Vp = !0), Vp) p = !0; + else if (1 === Lp ? l < u + Np : l > d - Np) return -Lp + } else if (l > u + c * (1 - i) / 2 && l < d - c * (1 - i) / 2) return zd(pp) < zd(t) ? 1 : -1; + return (p = p || o) && (l < u + c * a / 2 || l > d - c * a / 2) ? l > u + c / 2 ? 1 : -1 : 0 + }(e, o, n, i, I ? 1 : s.swapThreshold, null == s.invertedSwapThreshold ? s.swapThreshold : s.invertedSwapThreshold, Up, Dp === o))) { + var T = zd(pp); + do { + T -= E, k = hp.children[T] + } while (k && ("none" === Td(k, "display") || k === fp)) + } + if (0 === E || k === o) return M(!1); + Dp = o, Lp = E; + var R = o.nextElementSibling, + D = !1, + L = nh(mp, a, pp, t, o, n, e, D = 1 === E); + if (!1 !== L) return (1 === L || -1 === L) && (D = 1 === L), Gp = !0, setTimeout(ih, 30), j(), D && !R ? a.appendChild(pp) : o.parentNode.insertBefore(pp, D ? R : o), A && $d(A, 0, P - A.scrollTop), hp = pp.parentNode, void 0 === S || Up || (Np = Math.abs(S - Nd(o)[C])), F(), M(!0) + } + } else { + if (m === pp) return M(!1); + if (m && a === e.target && (o = m), o && (n = Nd(o)), !1 !== nh(mp, a, pp, t, o, n, e, !!o)) return j(), m && m.nextSibling ? a.insertBefore(pp, m.nextSibling) : a.appendChild(pp), hp = a, F(), M(!0) + } + if (a.contains(pp)) return M(!1) + } + return !1 + } + + function N(s, l) { + tp(s, h, pd({ + evt: e, + isOwner: u, + axis: i ? "vertical" : "horizontal", + revert: r, + dragRect: t, + targetRect: n, + canSort: d, + fromSortable: p, + target: o, + completed: M, + onMove: function(n, r) { + return nh(mp, a, pp, t, n, Nd(n), e, r) + }, + changed: F + }, l)) + } + + function j() { + N("dragOverAnimationCapture"), h.captureAnimationState(), h !== p && p.captureAnimationState() + } + + function M(t) { + return N("dragOverCompleted", { + insertion: t + }), t && (u ? c._hideClone() : c._showClone(h), h !== p && (Pd(pp, Ep ? Ep.options.ghostClass : c.options.ghostClass, !1), Pd(pp, s.ghostClass, !0)), Ep !== h && h !== th.active ? Ep = h : h === th.active && Ep && (Ep = null), p === h && (h._ignoreWhileAnimating = o), h.animateAll((function() { + N("dragOverAnimationComplete"), h._ignoreWhileAnimating = null + })), h !== p && (p.animateAll(), p._ignoreWhileAnimating = null)), (o !== pp || pp.animated) && (o !== a || o.animated) || (Dp = null), s.dragoverBubble || e.rootEl || o === document || (pp.parentNode[Yd]._isOutsideThisEl(e.target), t || Jp(e)), !s.dragoverBubble && e.stopPropagation && e.stopPropagation(), f = !0 + } + + function F() { + xp = zd(pp), kp = zd(pp, s.draggable), np({ + sortable: h, + name: "change", + toEl: a, + newIndex: xp, + newDraggableIndex: kp, + originalEvent: e + }) + } + }, + _ignoreWhileAnimating: null, + _offMoveEvents: function() { + Ed(document, "mousemove", this._onTouchMove), Ed(document, "touchmove", this._onTouchMove), Ed(document, "pointermove", this._onTouchMove), Ed(document, "dragover", Jp), Ed(document, "mousemove", Jp), Ed(document, "touchmove", Jp) + }, + _offUpEvents: function() { + var e = this.el.ownerDocument; + Ed(e, "mouseup", this._onDrop), Ed(e, "touchend", this._onDrop), Ed(e, "pointerup", this._onDrop), Ed(e, "touchcancel", this._onDrop), Ed(document, "selectstart", this) + }, + _onDrop: function(e) { + var t = this.el, + n = this.options; + xp = zd(pp), kp = zd(pp, n.draggable), tp("drop", this, { + evt: e + }), hp = pp && pp.parentNode, xp = zd(pp), kp = zd(pp, n.draggable), th.eventCanceled || (Mp = !1, Up = !1, Vp = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), oh(this.cloneId), oh(this._dragStartId), this.nativeDraggable && (Ed(document, "drop", this), Ed(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), bd && Td(document.body, "user-select", ""), Td(pp, "transform", ""), e && (Rp && (e.cancelable && e.preventDefault(), n.dropBubble || e.stopPropagation()), fp && fp.parentNode && fp.parentNode.removeChild(fp), (mp === hp || Ep && "clone" !== Ep.lastPutMode) && yp && yp.parentNode && yp.parentNode.removeChild(yp), pp && (this.nativeDraggable && Ed(pp, "dragend", this), rh(pp), pp.style["will-change"] = "", Rp && !Mp && Pd(pp, Ep ? Ep.options.ghostClass : this.options.ghostClass, !1), Pd(pp, this.options.chosenClass, !1), np({ + sortable: this, + name: "unchoose", + toEl: hp, + newIndex: null, + newDraggableIndex: null, + originalEvent: e + }), mp !== hp ? (xp >= 0 && (np({ + rootEl: hp, + name: "add", + toEl: hp, + fromEl: mp, + originalEvent: e + }), np({ + sortable: this, + name: "remove", + toEl: hp, + originalEvent: e + }), np({ + rootEl: hp, + name: "sort", + toEl: hp, + fromEl: mp, + originalEvent: e + }), np({ + sortable: this, + name: "sort", + toEl: hp, + originalEvent: e + })), Ep && Ep.save()) : xp !== bp && xp >= 0 && (np({ + sortable: this, + name: "update", + toEl: hp, + originalEvent: e + }), np({ + sortable: this, + name: "sort", + toEl: hp, + originalEvent: e + })), th.active && ((null == xp || -1 === xp) && (xp = bp, kp = wp), np({ + sortable: this, + name: "end", + toEl: hp, + originalEvent: e + }), this.save())))), this._nulling() + }, + _nulling: function() { + tp("nulling", this), mp = pp = hp = fp = gp = yp = vp = _p = Op = Ip = Rp = xp = kp = bp = wp = Dp = Lp = Ep = Sp = th.dragged = th.ghost = th.clone = th.active = null, $p.forEach((function(e) { + e.checked = !0 + })), $p.length = Cp = Ap = 0 + }, + handleEvent: function(e) { + switch (e.type) { + case "drop": + case "dragend": + this._onDrop(e); + break; + case "dragenter": + case "dragover": + pp && (this._onDragOver(e), e.dataTransfer && (e.dataTransfer.dropEffect = "move"), e.cancelable && e.preventDefault()); + break; + case "selectstart": + e.preventDefault() + } + }, + toArray: function() { + for (var e, t = [], n = this.el.children, r = 0, i = n.length, a = this.options; r < i; r++) Cd(e = n[r], a.draggable, this.el, !1) && t.push(e.getAttribute(a.dataIdAttr) || function(e) { + for (var t = e.tagName + e.className + e.src + e.href + e.textContent, n = t.length, r = 0; n--;) r += t.charCodeAt(n); + return r.toString(36) + }(e)); + return t + }, + sort: function(e, t) { + var n = {}, + r = this.el; + this.toArray().forEach((function(e, t) { + var i = r.children[t]; + Cd(i, this.options.draggable, r, !1) && (n[e] = i) + }), this), t && this.captureAnimationState(), e.forEach((function(e) { + n[e] && (r.removeChild(n[e]), r.appendChild(n[e])) + })), t && this.animateAll() + }, + save: function() { + var e = this.options.store; + e && e.set && e.set(this) + }, + closest: function(e, t) { + return Cd(e, t || this.options.draggable, this.el, !1) + }, + option: function(e, t) { + var n = this.options; + if (void 0 === t) return n[e]; + var r = Xd.modifyOption(this, e, t); + n[e] = void 0 !== r ? r : t, "group" === e && Qp(n) + }, + destroy: function() { + tp("destroy", this); + var e = this.el; + e[Yd] = null, Ed(e, "mousedown", this._onTapStart), Ed(e, "touchstart", this._onTapStart), Ed(e, "pointerdown", this._onTapStart), this.nativeDraggable && (Ed(e, "dragover", this), Ed(e, "dragenter", this)), Array.prototype.forEach.call(e.querySelectorAll("[draggable]"), (function(e) { + e.removeAttribute("draggable") + })), this._onDrop(), this._disableDelayedDragEvents(), zp.splice(zp.indexOf(this.el), 1), this.el = null + }, + _hideClone: function() { + _p || (tp("hideClone", this), th.eventCanceled || (Td(yp, "display", "none"), this.options.removeCloneOnHide && yp.parentNode && yp.parentNode.removeChild(yp), _p = !0)) + }, + _showClone: function(e) { + if ("clone" === e.lastPutMode) { + if (_p) { + if (tp("showClone", this), th.eventCanceled) return; + pp.parentNode != mp || this.options.group.revertClone ? gp ? mp.insertBefore(yp, gp) : mp.appendChild(yp) : mp.insertBefore(yp, pp), this.options.group.revertClone && this.animate(pp, yp), Td(yp, "display", ""), _p = !1 + } + } else this._hideClone() + } + }, qp && Sd(document, "touchmove", (function(e) { + (th.active || Mp) && e.cancelable && e.preventDefault() + })), th.utils = { + on: Sd, + off: Ed, + css: Td, + find: Dd, + is: function(e, t) { + return !!Cd(e, t, e, !1) + }, + extend: function(e, t) { + if (e && t) + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + return e + }, + throttle: Gd, + closest: Cd, + toggleClass: Pd, + clone: qd, + index: zd, + nextTick: ah, + cancelNextTick: oh, + detectDirection: Yp, + getChild: Md, + expando: Yd + }, th.get = function(e) { + return e[Yd] + }, th.mount = function() { + for (var e = arguments.length, t = Array(e), n = 0; n < e; n++) t[n] = arguments[n]; + t[0].constructor === Array && (t = t[0]), t.forEach((function(e) { + if (!e.prototype || !e.prototype.constructor) throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(e)); + e.utils && (th.utils = pd(pd({}, th.utils), e.utils)), Xd.mount(e) + })) + }, th.create = function(e, t) { + return new th(e, t) + }, th.version = "1.15.3"; + var sh, lh, ch, uh, dh, ph, hh = [], + fh = !1; + + function mh() { + hh.forEach((function(e) { + clearInterval(e.pid) + })), hh = [] + } + + function gh() { + clearInterval(ph) + } + var vh = Gd((function(e, t, n, r) { + if (t.scroll) { + var i, a = (e.touches ? e.touches[0] : e).clientX, + o = (e.touches ? e.touches[0] : e).clientY, + s = t.scrollSensitivity, + l = t.scrollSpeed, + c = Ld(), + u = !1; + lh !== n && (lh = n, mh(), sh = t.scroll, i = t.scrollFn, !0 === sh && (sh = Ud(n, !0))); + var d = 0, + p = sh; + do { + var h = p, + f = Nd(h), + m = f.top, + g = f.bottom, + v = f.left, + y = f.right, + _ = f.width, + b = f.height, + x = void 0, + w = void 0, + k = h.scrollWidth, + S = h.scrollHeight, + E = Td(h), + O = h.scrollLeft, + I = h.scrollTop; + h === c ? (x = _ < k && ("auto" === E.overflowX || "scroll" === E.overflowX || "visible" === E.overflowX), w = b < S && ("auto" === E.overflowY || "scroll" === E.overflowY || "visible" === E.overflowY)) : (x = _ < k && ("auto" === E.overflowX || "scroll" === E.overflowX), w = b < S && ("auto" === E.overflowY || "scroll" === E.overflowY)); + var C = x && (Math.abs(y - a) <= s && O + _ < k) - (Math.abs(v - a) <= s && !!O), + A = w && (Math.abs(g - o) <= s && I + b < S) - (Math.abs(m - o) <= s && !!I); + if (!hh[d]) + for (var P = 0; P <= d; P++) hh[P] || (hh[P] = {}); + (hh[d].vx != C || hh[d].vy != A || hh[d].el !== h) && (hh[d].el = h, hh[d].vx = C, hh[d].vy = A, clearInterval(hh[d].pid), (0 != C || 0 != A) && (u = !0, hh[d].pid = setInterval(function() { + r && 0 === this.layer && th.active._onTouchMove(dh); + var t = hh[this.layer].vy ? hh[this.layer].vy * l : 0, + n = hh[this.layer].vx ? hh[this.layer].vx * l : 0; + ("function" != typeof i || "continue" === i.call(th.dragged.parentNode[Yd], n, t, e, dh, hh[this.layer].el)) && $d(hh[this.layer].el, n, t) + }.bind({ + layer: d + }), 24))), d++ + } while (t.bubbleScroll && p !== c && (p = Ud(p, !1))); + fh = u + } + }), 30), + yh = function(e) { + var t = e.originalEvent, + n = e.putSortable, + r = e.dragEl, + i = e.activeSortable, + a = e.dispatchSortableEvent, + o = e.hideGhostForTarget, + s = e.unhideGhostForTarget; + if (t) { + var l = n || i; + o(); + var c = t.changedTouches && t.changedTouches.length ? t.changedTouches[0] : t, + u = document.elementFromPoint(c.clientX, c.clientY); + s(), l && !l.el.contains(u) && (a("spill"), this.onSpill({ + dragEl: r, + putSortable: n + })) + } + }; + + function _h() {} + + function bh() {} + _h.prototype = { + startIndex: null, + dragStart: function(e) { + var t = e.oldDraggableIndex; + this.startIndex = t + }, + onSpill: function(e) { + var t = e.dragEl, + n = e.putSortable; + this.sortable.captureAnimationState(), n && n.captureAnimationState(); + var r = Md(this.sortable.el, this.startIndex, this.options); + r ? this.sortable.el.insertBefore(t, r) : this.sortable.el.appendChild(t), this.sortable.animateAll(), n && n.animateAll() + }, + drop: yh + }, fd(_h, { + pluginName: "revertOnSpill" + }), bh.prototype = { + onSpill: function(e) { + var t = e.dragEl, + n = e.putSortable || this.sortable; + n.captureAnimationState(), t.parentNode && t.parentNode.removeChild(t), n.animateAll() + }, + drop: yh + }, fd(bh, { + pluginName: "removeOnSpill" + }); + var xh, wh, kh, Sh, Eh, Oh, Ih = [], + Ch = [], + Ah = !1, + Ph = !1, + Th = !1; + + function Rh(e, t) { + Ch.forEach((function(n, r) { + var i = t.children[n.sortableIndex + (e ? Number(r) : 0)]; + i ? t.insertBefore(n, i) : t.appendChild(n) + })) + } + + function Dh() { + Ih.forEach((function(e) { + e !== Sh && e.parentNode && e.parentNode.removeChild(e) + })) + } + th.mount(new function() { + function e() { + for (var e in this.defaults = { + scroll: !0, + forceAutoScrollFallback: !1, + scrollSensitivity: 30, + scrollSpeed: 10, + bubbleScroll: !0 + }, this) "_" === e.charAt(0) && "function" == typeof this[e] && (this[e] = this[e].bind(this)) + } + return e.prototype = { + dragStarted: function(e) { + var t = e.originalEvent; + this.sortable.nativeDraggable ? Sd(document, "dragover", this._handleAutoScroll) : this.options.supportPointer ? Sd(document, "pointermove", this._handleFallbackAutoScroll) : t.touches ? Sd(document, "touchmove", this._handleFallbackAutoScroll) : Sd(document, "mousemove", this._handleFallbackAutoScroll) + }, + dragOverCompleted: function(e) { + var t = e.originalEvent; + this.options.dragOverBubble || t.rootEl || this._handleAutoScroll(t) + }, + drop: function() { + this.sortable.nativeDraggable ? Ed(document, "dragover", this._handleAutoScroll) : (Ed(document, "pointermove", this._handleFallbackAutoScroll), Ed(document, "touchmove", this._handleFallbackAutoScroll), Ed(document, "mousemove", this._handleFallbackAutoScroll)), gh(), mh(), clearTimeout(dp), dp = void 0 + }, + nulling: function() { + dh = lh = sh = fh = ph = ch = uh = null, hh.length = 0 + }, + _handleFallbackAutoScroll: function(e) { + this._handleAutoScroll(e, !0) + }, + _handleAutoScroll: function(e, t) { + var n = this, + r = (e.touches ? e.touches[0] : e).clientX, + i = (e.touches ? e.touches[0] : e).clientY, + a = document.elementFromPoint(r, i); + if (dh = e, t || this.options.forceAutoScrollFallback || yd || vd || bd) { + vh(e, this.options, a, t); + var o = Ud(a, !0); + fh && (!ph || r !== ch || i !== uh) && (ph && gh(), ph = setInterval((function() { + var a = Ud(document.elementFromPoint(r, i), !0); + a !== o && (o = a, mh()), vh(e, n.options, a, t) + }), 10), ch = r, uh = i) + } else { + if (!this.options.bubbleScroll || Ud(a, !0) === Ld()) return void mh(); + vh(e, this.options, Ud(a, !1), !1) + } + } + }, fd(e, { + pluginName: "scroll", + initializeByDefault: !0 + }) + }), th.mount(bh, _h); + var Lh = to(Object.freeze({ + __proto__: null, + MultiDrag: function() { + function e(e) { + for (var t in this) "_" === t.charAt(0) && "function" == typeof this[t] && (this[t] = this[t].bind(this)); + e.options.avoidImplicitDeselect || (e.options.supportPointer ? Sd(document, "pointerup", this._deselectMultiDrag) : (Sd(document, "mouseup", this._deselectMultiDrag), Sd(document, "touchend", this._deselectMultiDrag))), Sd(document, "keydown", this._checkKeyDown), Sd(document, "keyup", this._checkKeyUp), this.defaults = { + selectedClass: "sortable-selected", + multiDragKey: null, + avoidImplicitDeselect: !1, + setData: function(t, n) { + var r = ""; + Ih.length && kh === e ? Ih.forEach((function(e, t) { + r += (t ? ", " : "") + e.textContent + })) : r = n.textContent, t.setData("Text", r) + } + } + } + return e.prototype = { + multiDragKeyDown: !1, + isMultiDrag: !1, + delayStartGlobal: function(e) { + Sh = e.dragEl + }, + delayEnded: function() { + this.isMultiDrag = ~Ih.indexOf(Sh) + }, + setupClone: function(e) { + var t = e.sortable, + n = e.cancel; + if (this.isMultiDrag) { + for (var r = 0; r < Ih.length; r++) Ch.push(qd(Ih[r])), Ch[r].sortableIndex = Ih[r].sortableIndex, Ch[r].draggable = !1, Ch[r].style["will-change"] = "", Pd(Ch[r], this.options.selectedClass, !1), Ih[r] === Sh && Pd(Ch[r], this.options.chosenClass, !1); + t._hideClone(), n() + } + }, + clone: function(e) { + var t = e.sortable, + n = e.rootEl, + r = e.dispatchSortableEvent, + i = e.cancel; + this.isMultiDrag && !this.options.removeCloneOnHide && Ih.length && kh === t && (Rh(!0, n), r("clone"), i()) + }, + showClone: function(e) { + var t = e.cloneNowShown, + n = e.rootEl, + r = e.cancel; + this.isMultiDrag && (Rh(!1, n), Ch.forEach((function(e) { + Td(e, "display", "") + })), t(), Oh = !1, r()) + }, + hideClone: function(e) { + var t = this; + e.sortable; + var n = e.cloneNowHidden, + r = e.cancel; + this.isMultiDrag && (Ch.forEach((function(e) { + Td(e, "display", "none"), t.options.removeCloneOnHide && e.parentNode && e.parentNode.removeChild(e) + })), n(), Oh = !0, r()) + }, + dragStartGlobal: function(e) { + e.sortable, !this.isMultiDrag && kh && kh.multiDrag._deselectMultiDrag(), Ih.forEach((function(e) { + e.sortableIndex = zd(e) + })), Ih = Ih.sort((function(e, t) { + return e.sortableIndex - t.sortableIndex + })), Th = !0 + }, + dragStarted: function(e) { + var t = this, + n = e.sortable; + if (this.isMultiDrag) { + if (this.options.sort && (n.captureAnimationState(), this.options.animation)) { + Ih.forEach((function(e) { + e !== Sh && Td(e, "position", "absolute") + })); + var r = Nd(Sh, !1, !0, !0); + Ih.forEach((function(e) { + e !== Sh && Wd(e, r) + })), Ph = !0, Ah = !0 + } + n.animateAll((function() { + Ph = !1, Ah = !1, t.options.animation && Ih.forEach((function(e) { + Hd(e) + })), t.options.sort && Dh() + })) + } + }, + dragOver: function(e) { + var t = e.target, + n = e.completed, + r = e.cancel; + Ph && ~Ih.indexOf(t) && (n(!1), r()) + }, + revert: function(e) { + var t, n = e.fromSortable, + r = e.rootEl, + i = e.sortable, + a = e.dragRect; + Ih.length > 1 && (Ih.forEach((function(e) { + i.addAnimationState({ + target: e, + rect: Ph ? Nd(e) : a + }), Hd(e), e.fromRect = a, n.removeAnimationState(e) + })), Ph = !1, t = !this.options.removeCloneOnHide, Ih.forEach((function(e, n) { + var i = r.children[e.sortableIndex + (t ? Number(n) : 0)]; + i ? r.insertBefore(e, i) : r.appendChild(e) + }))) + }, + dragOverCompleted: function(e) { + var t = e.sortable, + n = e.isOwner, + r = e.insertion, + i = e.activeSortable, + a = e.parentEl, + o = e.putSortable, + s = this.options; + if (r) { + if (n && i._hideClone(), Ah = !1, s.animation && Ih.length > 1 && (Ph || !n && !i.options.sort && !o)) { + var l = Nd(Sh, !1, !0, !0); + Ih.forEach((function(e) { + e !== Sh && (Wd(e, l), a.appendChild(e)) + })), Ph = !0 + } + if (!n) + if (Ph || Dh(), Ih.length > 1) { + var c = Oh; + i._showClone(t), i.options.animation && !Oh && c && Ch.forEach((function(e) { + i.addAnimationState({ + target: e, + rect: Eh + }), e.fromRect = Eh, e.thisAnimationDuration = null + })) + } else i._showClone(t) + } + }, + dragOverAnimationCapture: function(e) { + var t = e.dragRect, + n = e.isOwner, + r = e.activeSortable; + if (Ih.forEach((function(e) { + e.thisAnimationDuration = null + })), r.options.animation && !n && r.multiDrag.isMultiDrag) { + Eh = fd({}, t); + var i = Rd(Sh, !0); + Eh.top -= i.f, Eh.left -= i.e + } + }, + dragOverAnimationComplete: function() { + Ph && (Ph = !1, Dh()) + }, + drop: function(e) { + var t = e.originalEvent, + n = e.rootEl, + r = e.parentEl, + i = e.sortable, + a = e.dispatchSortableEvent, + o = e.oldIndex, + s = e.putSortable, + l = s || this.sortable; + if (t) { + var c = this.options, + u = r.children; + if (!Th) + if (c.multiDragKey && !this.multiDragKeyDown && this._deselectMultiDrag(), Pd(Sh, c.selectedClass, !~Ih.indexOf(Sh)), ~Ih.indexOf(Sh)) Ih.splice(Ih.indexOf(Sh), 1), wh = null, Jd({ + sortable: i, + rootEl: n, + name: "deselect", + targetEl: Sh, + originalEvent: t + }); + else { + if (Ih.push(Sh), Jd({ + sortable: i, + rootEl: n, + name: "select", + targetEl: Sh, + originalEvent: t + }), t.shiftKey && wh && i.el.contains(wh)) { + var d, p, h = zd(wh), + f = zd(Sh); + if (~h && ~f && h !== f) + for (f > h ? (p = h, d = f) : (p = f, d = h + 1); p < d; p++) ~Ih.indexOf(u[p]) || (Pd(u[p], c.selectedClass, !0), Ih.push(u[p]), Jd({ + sortable: i, + rootEl: n, + name: "select", + targetEl: u[p], + originalEvent: t + })) + } else wh = Sh; + kh = l + } if (Th && this.isMultiDrag) { + if (Ph = !1, (r[Yd].options.sort || r !== n) && Ih.length > 1) { + var m = Nd(Sh), + g = zd(Sh, ":not(." + this.options.selectedClass + ")"); + if (!Ah && c.animation && (Sh.thisAnimationDuration = null), l.captureAnimationState(), !Ah && (c.animation && (Sh.fromRect = m, Ih.forEach((function(e) { + if (e.thisAnimationDuration = null, e !== Sh) { + var t = Ph ? Nd(e) : m; + e.fromRect = t, l.addAnimationState({ + target: e, + rect: t + }) + } + }))), Dh(), Ih.forEach((function(e) { + u[g] ? r.insertBefore(e, u[g]) : r.appendChild(e), g++ + })), o === zd(Sh))) { + var v = !1; + Ih.forEach((function(e) { + e.sortableIndex === zd(e) || (v = !0) + })), v && (a("update"), a("sort")) + } + Ih.forEach((function(e) { + Hd(e) + })), l.animateAll() + } + kh = l + }(n === r || s && "clone" !== s.lastPutMode) && Ch.forEach((function(e) { + e.parentNode && e.parentNode.removeChild(e) + })) + } + }, + nullingGlobal: function() { + this.isMultiDrag = Th = !1, Ch.length = 0 + }, + destroyGlobal: function() { + this._deselectMultiDrag(), Ed(document, "pointerup", this._deselectMultiDrag), Ed(document, "mouseup", this._deselectMultiDrag), Ed(document, "touchend", this._deselectMultiDrag), Ed(document, "keydown", this._checkKeyDown), Ed(document, "keyup", this._checkKeyUp) + }, + _deselectMultiDrag: function(e) { + if (!(void 0 !== Th && Th || kh !== this.sortable || e && Cd(e.target, this.options.draggable, this.sortable.el, !1)) && (!e || 0 === e.button)) + for (; Ih.length;) { + var t = Ih[0]; + Pd(t, this.options.selectedClass, !1), Ih.shift(), Jd({ + sortable: this.sortable, + rootEl: this.sortable.el, + name: "deselect", + targetEl: t, + originalEvent: e + }) + } + }, + _checkKeyDown: function(e) { + e.key === this.options.multiDragKey && (this.multiDragKeyDown = !0) + }, + _checkKeyUp: function(e) { + e.key === this.options.multiDragKey && (this.multiDragKeyDown = !1) + } + }, fd(e, { + pluginName: "multiDrag", + utils: { + select: function(e) { + var t = e.parentNode[Yd]; + !t || !t.options.multiDrag || ~Ih.indexOf(e) || (kh && kh !== t && (kh.multiDrag._deselectMultiDrag(), kh = t), Pd(e, t.options.selectedClass, !0), Ih.push(e)) + }, + deselect: function(e) { + var t = e.parentNode[Yd], + n = Ih.indexOf(e); + t && t.options.multiDrag && ~n && (Pd(e, t.options.selectedClass, !1), Ih.splice(n, 1)) + } + }, + eventProperties: function() { + var e, t = this, + n = [], + r = []; + return Ih.forEach((function(e) { + var i; + n.push({ + multiDragElement: e, + index: e.sortableIndex + }), i = Ph && e !== Sh ? -1 : Ph ? zd(e, ":not(." + t.options.selectedClass + ")") : zd(e), r.push({ + multiDragElement: e, + index: i + }) + })), { + items: function(e) { + if (Array.isArray(e)) return md(e) + }(e = Ih) || function(e) { + if ("undefined" != typeof Symbol && null != e[Symbol.iterator] || null != e["@@iterator"]) return Array.from(e) + }(e) || function(e, t) { + if (e) { + if ("string" == typeof e) return md(e, t); + var n = Object.prototype.toString.call(e).slice(8, -1); + if ("Object" === n && e.constructor && (n = e.constructor.name), "Map" === n || "Set" === n) return Array.from(e); + if ("Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return md(e, t) + } + }(e) || function() { + throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.") + }(), + clones: [].concat(Ch), + oldIndicies: n, + newIndicies: r + } + }, + optionListeners: { + multiDragKey: function(e) { + return "ctrl" === (e = e.toLowerCase()) ? e = "Control" : e.length > 1 && (e = e.charAt(0).toUpperCase() + e.substr(1)), e + } + } + }) + }, + Sortable: th, + Swap: function() { + function e() { + this.defaults = { + swapClass: "sortable-swap-highlight" + } + } + return e.prototype = { + dragStart: function(e) { + xh = e.dragEl + }, + dragOverValid: function(e) { + var t = e.completed, + n = e.target, + r = e.onMove, + i = e.activeSortable, + a = e.changed, + o = e.cancel; + if (i.options.swap) { + var s = this.sortable.el, + l = this.options; + if (n && n !== s) { + var c = xh; + !1 !== r(n) ? (Pd(n, l.swapClass, !0), xh = n) : xh = null, c && c !== xh && Pd(c, l.swapClass, !1) + } + a(), t(!0), o() + } + }, + drop: function(e) { + var t, n, r, i, a, o = e.activeSortable, + s = e.putSortable, + l = e.dragEl, + c = s || this.sortable, + u = this.options; + xh && Pd(xh, u.swapClass, !1), xh && (u.swap || s && s.options.swap) && l !== xh && (c.captureAnimationState(), c !== o && o.captureAnimationState(), t = xh, i = l.parentNode, a = t.parentNode, !i || !a || i.isEqualNode(t) || a.isEqualNode(l) || (n = zd(l), r = zd(t), i.isEqualNode(a) && n < r && r++, i.insertBefore(t, i.children[n]), a.insertBefore(l, a.children[r])), c.animateAll(), c !== o && o.animateAll()) + }, + nulling: function() { + xh = null + } + }, fd(e, { + pluginName: "swap", + eventProperties: function() { + return { + swapItem: xh + } + } + }) + }, + default: th + })), + Nh = { + exports: {} + }; + ! function() { + var e = {}.hasOwnProperty; + + function t() { + for (var n = [], r = 0; r < arguments.length; r++) { + var i = arguments[r]; + if (i) { + var a = typeof i; + if ("string" === a || "number" === a) n.push(i); + else if (Array.isArray(i)) { + if (i.length) { + var o = t.apply(null, i); + o && n.push(o) + } + } else if ("object" === a) + if (i.toString === Object.prototype.toString) + for (var s in i) e.call(i, s) && i[s] && n.push(s); + else n.push(i.toString()) + } + } + return n.join(" ") + } + Nh.exports ? (t.default = t, Nh.exports = t) : window.classNames = t + }(); + var jh = Nh.exports, + Mh = "Invariant failed", + Fh = to(Object.freeze({ + __proto__: null, + default: function(e, t) { + if (!e) throw Error(Mh) + } + })); + ! function(e) { + var t, n, r = Ee; + + function i(e) { + return e && e.__esModule ? e.default : e + } + + function a(e, t, n, r) { + Object.defineProperty(e, t, { + get: n, + set: r, + enumerable: !0, + configurable: !0 + }) + } + + function o(e) { + null !== e.parentElement && e.parentElement.removeChild(e) + } + + function s(e) { + e.forEach((e => o(e.element))) + } + + function l(e) { + e.forEach((e => { + ! function(e, t, n) { + let r = e.children[n] || null; + e.insertBefore(t, r) + }(e.parentElement, e.element, e.oldIndex) + })) + } + + function c(e, t) { + let n = p(e), + r = { + parentElement: e.from + }, + i = []; + switch (n) { + case "normal": + i = [{ + element: e.item, + newIndex: e.newIndex, + oldIndex: e.oldIndex, + parentElement: e.from + }]; + break; + case "swap": + i = [{ + element: e.item, + oldIndex: e.oldIndex, + newIndex: e.newIndex, + ...r + }, { + element: e.swapItem, + oldIndex: e.newIndex, + newIndex: e.oldIndex, + ...r + }]; + break; + case "multidrag": + i = e.oldIndicies.map(((t, n) => ({ + element: t.multiDragElement, + oldIndex: t.index, + newIndex: e.newIndicies[n].index, + ...r + }))) + } + let a = function(e, t) { + return e.map((e => ({ + ...e, + item: t[e.oldIndex] + }))).sort(((e, t) => e.oldIndex - t.oldIndex)) + }(i, t); + return a + } + + function u(e, t) { + let n = [...t]; + return e.concat().reverse().forEach((e => n.splice(e.oldIndex, 1))), n + } + + function d(e, t, n, r) { + let i = [...t]; + return e.forEach((e => { + let t = r && n && r(e.item, n); + i.splice(e.newIndex, 0, t || e.item) + })), i + } + + function p(e) { + return e.oldIndicies && e.oldIndicies.length > 0 ? "multidrag" : e.swapItem ? "swap" : "normal" + } + a(e.exports, "Sortable", (() => $882b6d93070905b3$re_export$Sortable)), a(e.exports, "Direction", (() => $882b6d93070905b3$re_export$Direction)), a(e.exports, "DOMRect", (() => $882b6d93070905b3$re_export$DOMRect)), a(e.exports, "GroupOptions", (() => $882b6d93070905b3$re_export$GroupOptions)), a(e.exports, "MoveEvent", (() => $882b6d93070905b3$re_export$MoveEvent)), a(e.exports, "Options", (() => $882b6d93070905b3$re_export$Options)), a(e.exports, "PullResult", (() => $882b6d93070905b3$re_export$PullResult)), a(e.exports, "PutResult", (() => $882b6d93070905b3$re_export$PutResult)), a(e.exports, "SortableEvent", (() => $882b6d93070905b3$re_export$SortableEvent)), a(e.exports, "SortableOptions", (() => $882b6d93070905b3$re_export$SortableOptions)), a(e.exports, "Utils", (() => $882b6d93070905b3$re_export$Utils)), a(e.exports, "ReactSortable", (() => f)); + let h = { + dragging: null + }; + class f extends r.Component { + static defaultProps = { + clone: e => e + }; + constructor(e) { + super(e), this.ref = (0, r.createRef)(); + let t = [...e.list].map((e => Object.assign(e, { + chosen: !1, + selected: !1 + }))); + e.setList(t, this.sortable, h), i(Fh)(!e.plugins, '\nPlugins prop is no longer supported.\nInstead, mount it with "Sortable.mount(new MultiDrag())"\nPlease read the updated README.md at https://github.com/SortableJS/react-sortablejs.\n ') + } + componentDidMount() { + if (null === this.ref.current) return; + let e = this.makeOptions(); + i(Lh).create(this.ref.current, e) + } + componentDidUpdate(e) { + e.disabled !== this.props.disabled && this.sortable && this.sortable.option("disabled", this.props.disabled) + } + render() { + let { + tag: e, + style: t, + className: n, + id: i + } = this.props, a = e && null !== e ? e : "div"; + return (0, r.createElement)(a, { + ref: this.ref, + style: t, + className: n, + id: i + }, this.getChildren()) + } + getChildren() { + let { + children: e, + dataIdAttr: t, + selectedClass: n = "sortable-selected", + chosenClass: a = "sortable-chosen", + dragClass: o = "sortable-drag", + fallbackClass: s = "sortable-falback", + ghostClass: l = "sortable-ghost", + swapClass: c = "sortable-swap-highlight", + filter: u = "sortable-filter", + list: d + } = this.props; + if (!e || null == e) return null; + let p = t || "data-id"; + return r.Children.map(e, ((e, t) => { + if (void 0 === e) return; + let o = d[t] || {}, + { + className: s + } = e.props, + l = "string" == typeof u && { + [u.replace(".", "")]: !!o.filtered + }, + c = i(jh)(s, { + [n]: o.selected, + [a]: o.chosen, + ...l + }); + return (0, r.cloneElement)(e, { + [p]: e.key, + className: c + }) + })) + } + get sortable() { + let e = this.ref.current; + if (null === e) return null; + let t = Object.keys(e).find((e => e.includes("Sortable"))); + return t ? e[t] : null + } + makeOptions() { + let e = function(e) { + let { + list: t, + setList: n, + children: r, + tag: i, + style: a, + className: o, + clone: s, + onAdd: l, + onChange: c, + onChoose: u, + onClone: d, + onEnd: p, + onFilter: h, + onRemove: f, + onSort: m, + onStart: g, + onUnchoose: v, + onUpdate: y, + onMove: _, + onSpill: b, + onSelect: x, + onDeselect: w, + ...k + } = e; + return k + }(this.props); + return ["onAdd", "onChoose", "onDeselect", "onEnd", "onRemove", "onSelect", "onSpill", "onStart", "onUnchoose", "onUpdate"].forEach((t => e[t] = this.prepareOnHandlerPropAndDOM(t))), ["onChange", "onClone", "onFilter", "onSort"].forEach((t => e[t] = this.prepareOnHandlerProp(t))), { + ...e, + onMove: (e, t) => { + let { + onMove: n + } = this.props, r = e.willInsertAfter || -1; + if (!n) return r; + let i = n(e, t, this.sortable, h); + return void 0 !== i && i + } + } + } + prepareOnHandlerPropAndDOM(e) { + return t => { + this.callOnHandlerProp(t, e), this[e](t) + } + } + prepareOnHandlerProp(e) { + return t => { + this.callOnHandlerProp(t, e) + } + } + callOnHandlerProp(e, t) { + let n = this.props[t]; + n && n(e, this.sortable, h) + } + onAdd(e) { + let { + list: t, + setList: n, + clone: r + } = this.props, i = c(e, [...h.dragging.props.list]); + s(i), n(d(i, t, e, r).map((e => Object.assign(e, { + selected: !1 + }))), this.sortable, h) + } + onRemove(e) { + let { + list: t, + setList: n + } = this.props, r = p(e), a = c(e, t); + l(a); + let o = [...t]; + if ("clone" !== e.pullMode) o = u(a, o); + else { + let t = a; + switch (r) { + case "multidrag": + t = a.map(((t, n) => ({ + ...t, + element: e.clones[n] + }))); + break; + case "normal": + t = a.map((t => ({ + ...t, + element: e.clone + }))); + break; + default: + i(Fh)(!0, `mode "${r}" cannot clone. Please remove "props.clone" from when using the "${r}" plugin`) + } + s(t), a.forEach((t => { + let n = t.oldIndex, + r = this.props.clone(t.item, e); + o.splice(n, 1, r) + })) + } + n(o = o.map((e => Object.assign(e, { + selected: !1 + }))), this.sortable, h) + } + onUpdate(e) { + let { + list: t, + setList: n + } = this.props, r = c(e, t); + s(r), l(r); + let i = function(e, t) { + return d(e, u(e, t)) + }(r, t); + return n(i, this.sortable, h) + } + onStart() { + h.dragging = this + } + onEnd() { + h.dragging = null + } + onChoose(e) { + let { + list: t, + setList: n + } = this.props, r = t.map(((t, n) => { + let r = t; + return n === e.oldIndex && (r = Object.assign(t, { + chosen: !0 + })), r + })); + n(r, this.sortable, h) + } + onUnchoose(e) { + let { + list: t, + setList: n + } = this.props, r = t.map(((t, n) => { + let r = t; + return n === e.oldIndex && (r = Object.assign(r, { + chosen: !1 + })), r + })); + n(r, this.sortable, h) + } + onSpill(e) { + let { + removeOnSpill: t, + revertOnSpill: n + } = this.props; + t && !n && o(e.item) + } + onSelect(e) { + let { + list: t, + setList: n + } = this.props, r = t.map((e => Object.assign(e, { + selected: !1 + }))); + e.newIndicies.forEach((t => { + let n = t.index; + if (-1 === n) return console.log(`"${e.type}" had indice of "${t.index}", which is probably -1 and doesn't usually happen here.`), void console.log(e); + r[n].selected = !0 + })), n(r, this.sortable, h) + } + onDeselect(e) { + let { + list: t, + setList: n + } = this.props, r = t.map((e => Object.assign(e, { + selected: !1 + }))); + e.newIndicies.forEach((e => { + let t = e.index; - 1 !== t && (r[t].selected = !0) + })), n(r, this.sortable, h) + } + } + t = e.exports, Object.keys(n = {}).forEach((function(e) { + "default" === e || "__esModule" === e || t.hasOwnProperty(e) || Object.defineProperty(t, e, { + enumerable: !0, + get: function() { + return n[e] + } + }) + })) + }(ud); + var zh = ud.exports; + Po((({ + children: e, + className: t, + draggable: n = !1, + items: r, + onManualItemsReorder: i, + ...a + }, o) => { + let [s, l] = (0, Ee.useState)(r), [c] = (0, Ee.useState)((() => { + let e = new Image; + return e.src = "data:image/gif;base64,R0lGODlhAQABAIAAAAUEBAAAACwAAAAAAQABAAACAkQBADs=", e + })), u = Ao("sol-c-download-progress-group", t); + return (0, Ee.useEffect)((() => { + s !== r && i?.(s) + }), [s]), s && io.jsx(zh.ReactSortable, { + list: s, + setList: l, + className: u, + tag: "ul", + animation: 150, + setData: (e, t) => { + e.setData("text/plain", t.id), e.setDragImage(c, 0, 0) + }, + handle: ".sol-c-download-progress__drag-handle", + children: s?.map(((e, t) => io.jsxs(io.Fragment, { + children: [!n && 0 !== t && io.jsx(sd, { + spacing: "100", + className: "sol-u-padding-0" + }), (0, Ee.createElement)(cd, { + ...e, + key: `DownloadProgress-${t}`, + as: "li", + isDraggable: n + })] + }))) + }) + })); + eo('@layer sol.components{.sol-c-field{--_max-inline-size:43.75rem;--_gap-block:var(--sol-size-050);--_gap-inline:var(--sol-size-150);display:flex;flex-direction:column;gap:var(--_gap-block);inline-size:100%;max-inline-size:var(--_max-inline-size)}.sol-c-field__feedback,.sol-c-field__label{transition:opacity var(--sol-motion-250)}.sol-c-field--disabled .sol-c-field__feedback,.sol-c-field--disabled .sol-c-field__label{opacity:.4}.sol-c-field__label{cursor:var(--sol-cursor-interactive)}.sol-c-field--horizontal{align-items:center;display:grid;gap:0;grid:"label ........" "content feedback" "help ........"/minmax(0,var(--_max-inline-size)) minmax(25%,1fr);max-inline-size:none}.sol-c-field--horizontal .sol-c-field__label{grid-area:label;margin-block-end:var(--_gap-block)}.sol-c-field--horizontal .sol-c-field__content{grid-area:content}.sol-c-field--horizontal .sol-c-field__feedback{grid-area:feedback;margin-inline-start:var(--_gap-inline)}.sol-c-field--horizontal .sol-c-field__help{grid-area:help;margin-block-start:var(--_gap-block)}}'); + let Vh = (0, Ee.createContext)(null), + Uh = () => (0, Ee.useContext)(Vh), + Bh = (0, Ee.forwardRef)((({ + className: e, + id: t, + ...n + }, r) => { let { feedbackId: i, setHasFeedback: a - } = gd(); + } = Uh(); (0, Ee.useLayoutEffect)((() => (a(!0, t), () => a(!1))), [t, a]); - let o = Lo("sol-c-field__feedback", e); - return po.jsx(Qu, { + let o = Ao("sol-c-field__feedback", e); + return io.jsx(qu, { "aria-live": "polite", className: o, id: i, @@ -30433,18 +32750,18 @@ ...n }) })), - yd = (0, Ee.forwardRef)((({ - className: e, - id: t, - ...n - }, r) => { + Gh = (0, Ee.forwardRef)((({ + className: e, + id: t, + ...n + }, r) => { let { helpId: i, setHasHelp: a - } = gd(); + } = Uh(); (0, Ee.useLayoutEffect)((() => (a(!0, t), () => a(!1))), [t, a]); - let o = Lo("sol-c-field__help", e); - return po.jsx(gs, { + let o = Ao("sol-c-field__help", e); + return io.jsx(ds, { className: o, color: "foreground-weak", id: i, @@ -30453,32 +32770,32 @@ ...n }) })), - _d = (0, Ee.forwardRef)((({ - children: e, - className: t, - id: n, - disabled: r, - invalid: i, - required: a, - label: o, - labelType: s, - necessityIndicator: l, - horizontal: c, - error: u, - help: d, - success: p, - warning: h, - ...f - }, m) => { + $h = (0, Ee.forwardRef)((({ + children: e, + className: t, + id: n, + disabled: r, + invalid: i, + required: a, + label: o, + labelType: s, + necessityIndicator: l, + horizontal: c, + error: u, + help: d, + success: p, + warning: h, + ...f + }, m) => { let g = (({ - id: e, - disabled: t = !1, - invalid: n = !1, - required: r = !1, - label: i, - labelType: a = "floating", - necessityIndicator: o - }) => { + id: e, + disabled: t = !1, + invalid: n = !1, + required: r = !1, + label: i, + labelType: a = "floating", + necessityIndicator: o + }) => { let s = (0, Ee.useId)(), [l = (e ? `${e}-input` : s), c] = (0, Ee.useState)(), [u = `${e??l}-feedback`, d] = (0, Ee.useState)(), @@ -30487,8 +32804,8 @@ [m = t, g] = (0, Ee.useState)(), [v = n, y] = (0, Ee.useState)(), [_ = r, b] = (0, Ee.useState)(), - [x, k] = (0, Ee.useState)(!1), - [w, S] = (0, Ee.useState)(!1), + [x, w] = (0, Ee.useState)(!1), + [k, S] = (0, Ee.useState)(!1), [E, O] = (0, Ee.useState)(null), [I, C] = (0, Ee.useState)("label"), A = (0, Ee.useMemo)((() => "label" !== I ? { @@ -30502,8 +32819,8 @@ P = E || "floating" !== a ? a : "classic", T = (0, Ee.useCallback)((e => { let t = e ? [e] : []; - return x && t.push(u), w && t.push(p), t.length ? t.join(" ") : void 0 - }), [u, x, w, p]), + return x && t.push(u), k && t.push(p), t.length ? t.join(" ") : void 0 + }), [u, x, k, p]), R = (0, Ee.useCallback)((e => { let t = e ? [e] : []; return "label" !== I && t.push(f, l), t.length ? t.join(" ") : void 0 @@ -30514,7 +32831,7 @@ helpId: p, labelId: f, hasFeedback: x, - hasHelp: w, + hasHelp: k, isDisabled: m, isInvalid: v, isRequired: _, @@ -30527,7 +32844,7 @@ setInputRef: O, setLabelElementType: C, setHasFeedback: (e, t) => { - k(e), d(t) + w(e), d(t) }, setHasHelp: (e, t) => { S(e), h(t) @@ -30537,7 +32854,7 @@ setIsRequired: b, getDescribedby: T, getLabelledby: R - })), [l, u, p, f, x, w, m, v, _, i, I, P, A, o, T, R]) + })), [l, u, p, f, x, k, m, v, _, i, I, P, A, o, T, R]) })({ id: n, disabled: r, @@ -30553,22 +32870,22 @@ isRequired: _, labelType: b, labelElementType: x, - labelProps: k + labelProps: w } = g, - w = Lo("sol-c-field", c && "sol-c-field--horizontal", v && "sol-c-field--disabled", y && "sol-c-field--invalid", _ && "sol-c-field--required", t), - S = (0, Ee.useMemo)((() => "floating" !== b && o ? po.jsxs(Ps, { + k = Ao("sol-c-field", c && "sol-c-field--horizontal", v && "sol-c-field--disabled", y && "sol-c-field--invalid", _ && "sol-c-field--required", t), + S = (0, Ee.useMemo)((() => "floating" !== b && o ? io.jsxs(Es, { as: x, align: "baseline", - className: Lo("sol-c-field__label", "hidden" === b && "sol-u-hide-visually"), + className: Ao("sol-c-field__label", "hidden" === b && "sol-u-hide-visually"), gap: "025", wrap: !0, - ...k, - children: [po.jsx(gs, { + ...w, + children: [io.jsx(ds, { as: "span", color: "foreground-weak", variant: "label-m", children: o - }), l && po.jsxs(gs, { + }), l && io.jsxs(ds, { "aria-hidden": !!_ || void 0, as: "span", color: "foreground-weak", @@ -30576,57 +32893,57 @@ transform: "lowercase", children: ["(", l, ")"] })] - }) : null), [_, x, o, k, b, l]), - E = (0, Ee.useMemo)((() => u ? po.jsx(vd, { + }) : null), [_, x, o, w, b, l]), + E = (0, Ee.useMemo)((() => u ? io.jsx(Bh, { children: u - }) : p ? po.jsx(vd, { - icon: go, + }) : p ? io.jsx(Bh, { + icon: co, type: "positive", children: p - }) : h ? po.jsx(vd, { - icon: Do, + }) : h ? io.jsx(Bh, { + icon: Co, type: "notice", children: h }) : null), [u, p, h]); - return po.jsx(md.Provider, { + return io.jsx(Vh.Provider, { value: g, - children: po.jsxs("div", { - className: w, + children: io.jsxs("div", { + className: k, id: n, ref: m, ...f, - children: [S, po.jsx(Ps, { + children: [S, io.jsx(Es, { className: "sol-c-field__content", gap: "100", children: e - }), E, d && po.jsx(yd, { + }), E, d && io.jsx(Gh, { children: d })] }) }) })); eo("@layer sol.components{.sol-c-game-button{--_background-color:rgba(var(--sol-color-primary-1-rgb)/0.8);--_border-color:var(--sol-color-accent-1);--_foreground-color:var(--sol-color-neutral-4);--_border-radius:var(--sol-radius-8);--_border-width:var(--sol-border-2);--_hologram-color:var(--sol-color-accent-1);--_hologram-offset:0;--_hologram-opacity:0;--_glow-color:var(--sol-color-neutral-4);--_glow-speed:var(--sol-motion-4000);--_glow-state:running;--_glow-opacity:1;--_light-color:var(--sol-color-accent-1);--_background-mask:var(--sol-c-game-button-background-mask,url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cpath d='M55 32.5V35a7 7 0 0 1-2.26 5.14l-14.12 13A7 7 0 0 1 33.88 55H8a7 7 0 0 1-7-7V8a7 7 0 0 1 7-7h40a7 7 0 0 1 7 7v24.5Z'/%3E%3C/svg%3E\") 24 fill);--_border-mask:var(--sol-c-game-button-border-mask,url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2' d='M55 32.5V35a7 7 0 0 1-2.26 5.14l-14.12 13A7 7 0 0 1 33.88 55H8a7 7 0 0 1-7-7V8a7 7 0 0 1 7-7h40a7 7 0 0 1 7 7v24.5Z'/%3E%3C/svg%3E\") 24 fill);border-radius:var(--_border-radius);color:var(--_border-color);cursor:var(--sol-cursor-interactive);display:flex;position:relative;transition-duration:var(--sol-motion-250);transition-property:color,opacity,transform;transition-timing-function:var(--sol-motion-ease);user-select:none}.sol-c-game-button:hover{--_border-color:var(--sol-color-accent-3);--_hologram-offset:var(--sol-size-025);--_hologram-opacity:1}.sol-c-game-button--pressed,.sol-c-game-button:active{--_border-color:var(--sol-color-accent-2);--_hologram-offset:0;--_hologram-opacity:0}.sol-c-game-button:disabled,.sol-c-game-button[aria-disabled=true]{opacity:.4;pointer-events:none}.sol-c-game-button[aria-busy=true]{--_background-color:rgba(var(--sol-color-primary-5-rgb)/0.8)}.sol-c-game-button:disabled,.sol-c-game-button:hover,.sol-c-game-button[aria-busy=true],.sol-c-game-button[aria-disabled=true]{--_glow-opacity:0;--_glow-state:paused}.sol-c-game-button__wrapper{-webkit-mask-box-image:var(--_background-mask);align-items:center;background:var(--_background-color);block-size:3.5rem;border-radius:inherit;color:var(--_foreground-color);display:flex;flex:1;gap:var(--sol-size-050);inline-size:18.5rem;justify-content:center;mask-border:var(--_background-mask);overflow:hidden;padding:0 var(--sol-size-150);position:relative;transition-duration:var(--sol-motion-250);transition-property:background-color,color,transform;transition-timing-function:var(--sol-motion-ease);z-index:2}@container style(--sol-prefers-reduced-motion: no-preference){.sol-c-game-button__wrapper{transform:translate(var(--_hologram-offset),calc(var(--_hologram-offset)*-1))}.sol-c-game-button--released .sol-c-game-button__wrapper:before{animation:sol-c-game-button-sweep var(--sol-motion-500) var(--sol-motion-linear);animation-delay:0;height:2rem;width:13rem}.sol-c-game-button--released .sol-c-game-button__wrapper:before,.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-button__wrapper:before{background:linear-gradient(to right,var(--_light-color),#0000) no-repeat 50%;content:\"\";opacity:0;position:absolute;transform:translateX(-100%) rotate(calc(var(--sol-motion-angle)*-1))}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-button__wrapper:before{animation:sol-c-game-button-sweep var(--sol-motion-500) var(--sol-motion-linear);animation-delay:.9s;height:4rem;width:17rem}}@keyframes sol-c-game-button-sweep{50%{opacity:.4}to{opacity:0;transform:translateX(100%) rotate(calc(var(--sol-motion-angle)*-1))}}.sol-c-game-button__icon{--sol-c-icon-size:var(--sol-size-125);position:relative;z-index:3}.sol-c-game-button__label{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;font:var(--sol-text-button-m);position:relative;text-transform:var(--sol-text-transform-uppercase);top:var(--sol-text-button-m-font-offset);z-index:3}.sol-c-game-button__border{border:var(--_border-width) solid;border-radius:inherit;inset:0;overflow:hidden;position:absolute;z-index:4}@container style(--sol-prefers-reduced-motion: no-preference){.sol-c-game-button__border{transform:translate(var(--_hologram-offset),calc(var(--_hologram-offset)*-1));transition:transform var(--sol-motion-250) var(--sol-motion-ease)}}@supports ((-webkit-mask-box-image:var(--_border-mask )) or (mask-border:var(--_border-mask ))){.sol-c-game-button__border{-webkit-mask-box-image:var(--_border-mask);background:currentColor;border:0;mask-border:var(--_border-mask)}@container style(--sol-prefers-reduced-motion: no-preference){@supports (offset-path:inset(0 round var(--_border-radius ))){.sol-c-game-button__border:before{animation:sol-c-game-button-glow var(--_glow-speed) var(--sol-motion-linear) infinite var(--_glow-state);backface-visibility:hidden;background:radial-gradient(farthest-side,var(--_glow-color),#0000);content:\"\";display:block;height:3.5rem;offset-distance:0;offset-path:inset(0 round var(--_border-radius));offset-rotate:0deg;opacity:var(--_glow-opacity);position:absolute;transition:opacity var(--sol-motion-250) var(--sol-motion-ease);width:11.625rem}}}@keyframes sol-c-game-button-glow{to{offset-distance:100%}}}.sol-c-game-button__holo{display:none}@container style(--sol-prefers-reduced-motion: no-preference){.sol-c-game-button__holo{border:var(--_border-width) solid;border-radius:inherit;color:var(--_hologram-color);display:block;filter:blur(2px);inset:0;opacity:var(--_hologram-opacity);position:absolute;transform:translate(calc(var(--_hologram-offset)*-1),var(--_hologram-offset));transition-duration:var(--sol-motion-250);transition-property:opacity,transform;transition-timing-function:var(--sol-motion-ease);z-index:1}@supports ((-webkit-mask-box-image:var(--_border-mask )) or (mask-border:var(--_border-mask ))){.sol-c-game-button__holo{border:0}.sol-c-game-button__holo:before{-webkit-mask-box-image:var(--_border-mask);background:currentColor;content:\"\";inset:0;mask-border:var(--_border-mask);position:absolute}}}}"); - let bd = (0, Ee.forwardRef)((({ - children: e, - className: t, - icon: n, - iconAnimation: r = !0, - loading: i, - loadingIcon: a = Eo, - loadingIconAnimation: o = !0, - onKeyDown: s, - onKeyUp: l, - onMouseDown: c, - onMouseEnter: u, - onMouseLeave: d, - onMouseUp: p, - ...h - }, f) => { + let qh = (0, Ee.forwardRef)((({ + children: e, + className: t, + icon: n, + iconAnimation: r = !0, + loading: i, + loadingIcon: a = bo, + loadingIconAnimation: o = !0, + onKeyDown: s, + onKeyUp: l, + onMouseDown: c, + onMouseEnter: u, + onMouseLeave: d, + onMouseUp: p, + ...h + }, f) => { let [m, g] = (0, Ee.useState)(!1), [v, y] = (0, Ee.useState)(!1), [_, b] = (0, Ee.useState)(!1), x = (0, Ee.useCallback)((e => { ("Space" === e.code || "Enter" === e.code) && (y(!1), g(!0)), s && s(e) - }), [s]), k = (0, Ee.useCallback)((e => { + }), [s]), w = (0, Ee.useCallback)((e => { ("Space" === e.code || "Enter" === e.code) && (y(!0), g(!1)), l && l(e) - }), [l]), w = (0, Ee.useCallback)((e => { + }), [l]), k = (0, Ee.useCallback)((e => { y(!1), g(!0), c?.(e) }), [c]), S = (0, Ee.useCallback)((e => { b(!0), u?.(e) @@ -30651,46 +32968,46 @@ default: return r } - }), [r, _, i, o]), A = Lo("sol-c-game-button", m && "sol-c-game-button--pressed", v && "sol-c-game-button--released", t); - return po.jsxs(hs, { + }), [r, _, i, o]), A = Ao("sol-c-game-button", m && "sol-c-game-button--pressed", v && "sol-c-game-button--released", t); + return io.jsxs(ls, { className: A, loading: i, onKeyDown: x, - onKeyUp: k, - onMouseDown: w, + onKeyUp: w, + onMouseDown: k, onMouseEnter: S, onMouseLeave: E, onMouseUp: O, ref: f, ...h, - children: [po.jsx("span", { + children: [io.jsx("span", { "aria-hidden": "true", className: "sol-c-game-button__border" - }), po.jsxs("span", { + }), io.jsxs("span", { className: "sol-c-game-button__wrapper", - children: [I && po.jsx(ms, { + children: [I && io.jsx(us, { className: "sol-c-game-button__icon", isPlaying: C, source: I - }), po.jsx("span", { + }), io.jsx("span", { className: "sol-c-game-button__label", children: e })] - }), po.jsx("span", { + }), io.jsx("span", { "aria-hidden": "true", className: "sol-c-game-button__holo" })] }) })); eo('@layer sol.components{.sol-c-game-page{display:flex;flex:1 0 auto;flex-direction:column;overflow:hidden;position:relative;z-index:1}.sol-c-game-page__navigation{inset-block-start:0;inset-inline-start:0;position:absolute;z-index:2}.sol-c-game-page__wrapper{--sol-c-game-page-background:6 17 25;--_background:var(--sol-c-game-page-background,var(--sol-color-primary-1-rgb));--_gradient:rgb(var(--_background)/1) 0%,rgb(var(--_background)/0.991615) 11.79%,rgb(var(--_background)/0.967585) 21.38%,rgb(var(--_background)/0.9296) 29.12%,rgb(var(--_background)/0.879348) 35.34%,rgb(var(--_background)/0.818519) 40.37%,rgb(var(--_background)/0.7488) 44.56%,rgb(var(--_background)/0.671881) 48.24%,rgb(var(--_background)/0.589452) 51.76%,rgb(var(--_background)/0.5032) 55.44%,rgb(var(--_background)/0.414815) 59.63%,rgb(var(--_background)/0.325985) 64.66%,rgb(var(--_background)/0.2384) 70.88%,rgb(var(--_background)/0.153748) 78.62%,rgb(var(--_background)/0.0737185) 88.21%,rgb(var(--_background)/0) 100%;--_padding-inline:var(--sol-size-550) var(--sol-size-200);--_gutter-size:var(--sol-size-500);--_content-overflow-indicator-size:var(--sol-size-100);--_content-padding-inline-start:var(--_content-overflow-indicator-size);--_content-padding-inline-end:var(--sol-size-200);--_content-gap:var(--sol-size-200);background:rgb(var(--_background));column-gap:var(--_gutter-size);display:grid;flex:1;grid:"header header " 1fr "title tabs " auto "actions content" 23.5rem/18.5rem minmax(0,1fr);padding-block:0 var(--sol-size-250);padding-inline:var(--_padding-inline);position:relative;z-index:1}.sol-c-game-page__header{--_padding-inline:var(--sol-size-200) var(--sol-size-550);display:flex;grid-area:header;padding-block:var(--sol-size-250);padding-inline:var(--_padding-inline)}.sol-c-game-page__logo{display:block;flex:1;margin:auto;max-inline-size:35vw}.sol-c-game-page__logo svg{display:block;height:100%;width:100%}.sol-c-game-page__title{align-self:end;grid-area:title}.sol-c-game-page__tabs{align-self:end;display:flex;flex-wrap:wrap;grid-area:tabs;padding-block:var(--sol-size-050);position:relative}.sol-c-game-page__tab .sol-c-text:after,.sol-c-game-page__tabs-indicator{--_indicator-color:var(--sol-color-interactive-selected);background:var(--_indicator-color);block-size:var(--sol-border-2);inset-block-end:0;inset-inline:0;opacity:0;position:absolute;top:calc(100% - var(--sol-size-050) - var(--sol-border-2));transition:all var(--sol-motion-250) var(--sol-motion-ease);width:0}.sol-c-game-page__tabs-indicator{--_tab-color:var(--sol-color-foreground-weak)}.sol-c-game-page__tab .sol-c-text{position:relative}.sol-c-game-page__tab .sol-c-text:after{background:var(--_tab-color);content:"";top:calc(var(--sol-border-2) + var(--sol-size-200))}.sol-c-game-page__tab{align-items:center;color:var(--_tab-color);cursor:var(--sol-cursor-interactive);display:flex;gap:var(--sol-size-050);padding-block:var(--sol-size-075);padding-inline:var(--sol-size-075);position:relative;transition:color var(--sol-motion-250) var(--sol-motion-ease);white-space:nowrap}.sol-c-game-page__tab:not([dir=rtl]):first-child{padding-left:0}.sol-c-game-page__tab[aria-current=true],.sol-c-game-page__tab[aria-pressed=true]{--_tab-color:var(--sol-color-interactive-selected)}.sol-c-game-page__tab[aria-current=true]:hover~.sol-c-game-page__tabs-indicator,.sol-c-game-page__tab[aria-pressed=true]:hover~.sol-c-game-page__tabs-indicator{background:var(--sol-color-interactive-hovered)}.sol-c-game-page__tab:hover{--_tab-color:var(--sol-color-interactive-hovered)}.sol-c-game-page__tab:active{--_tab-color:var(--sol-color-interactive-pressed)}@container style(--sol-prefers-reduced-motion: reduce){.sol-c-game-page__tab .sol-c-text:after{width:100%}.sol-c-game-page__tab:not([dir=rtl]):last-child{padding-right:0}.sol-c-game-page__tab[aria-current=true] .sol-c-text:after,.sol-c-game-page__tab[aria-pressed=true] .sol-c-text:after{opacity:1}}.sol-c-game-page__actions{grid-area:actions;padding-block-start:var(--sol-size-100)}.sol-c-game-page__channel-selector .sol-c-field__content>.sol-c-input{gap:0;padding-right:0}.sol-c-game-page__channel-selector .sol-c-field__content .sol-c-input__separator{margin-left:var(--sol-size-100)}.sol-c-game-page__channel-selector .sol-c-field__content .sol-c-input__suffix .sol-c-button{cursor:pointer;display:block;padding:var(--sol-size-075) var(--sol-size-100)}.sol-c-game-page__channel-selector .sol-c-field__content .sol-c-input__suffix .sol-c-button:before{border-radius:var(--sol-radius-4);height:var(--sol-size-150);margin:auto;width:var(--sol-size-150)}.sol-c-game-page__channel-selector .sol-c-field__content .sol-c-input__suffix .sol-c-button .sol-c-icon{margin-top:-1px}@container style(--sol-prefers-reduced-motion: no-preference){.sol-c-game-page__channel-selector .sol-c-field__content .sol-c-input__suffix .sol-c-button .sol-c-icon,.sol-c-game-page__channel-selector .sol-c-field__content .sol-c-input__suffix .sol-c-button:before{transition:all var(--sol-motion-250) var(--sol-motion-ease)}.sol-c-game-page__channel-selector .sol-c-field__content .sol-c-input__suffix .sol-c-button:hover .sol-c-icon{transform:rotate(90deg)}}.sol-c-game-page__content{align-self:flex-start;display:flex;flex:1;grid-area:content;position:relative}.sol-c-game-page__content[data-sol-scroll-start]:before{--_border:linear-gradient(#0000,var(--sol-color-accent-1) 25% 75%,#0000) no-repeat left /var(--sol-border-1) 100%;--_shadow:radial-gradient(100% 50% at 0% 50%,rgb(var(--sol-color-primary-1-rgb)/0.7),#0000);background:var(--_border),var(--_shadow);content:"";inline-size:var(--_content-overflow-indicator-size);inset-block-end:var(--sol-size-100);inset-block-start:var(--sol-size-150);inset-inline-start:calc(var(--_content-padding-inline-start)*-1);opacity:0;position:absolute;transition:opacity var(--sol-motion-250);z-index:2}.sol-c-game-page__content[data-sol-scroll-start=false]:before{opacity:1}[dir=rtl] .sol-c-game-page__content[data-sol-scroll-start]:before{transform:scaleX(-1)}.sol-c-game-page__cards{display:flex;gap:var(--_content-gap);margin-inline-end:calc(var(--_content-padding-inline-end)*-1);margin-inline-start:calc(var(--_content-padding-inline-start)*-1);overflow:hidden;overflow-x:auto;overscroll-behavior-x:contain;padding-block-end:var(--sol-size-150);padding-block-start:var(--sol-size-300);padding-inline-end:var(--_content-padding-inline-end);padding-inline-start:var(--_content-padding-inline-start);position:relative;scroll-padding-inline-end:var(--_content-padding-inline-end);scroll-padding-inline-start:var(--_content-padding-inline-start);z-index:1}.sol-c-game-page__cards::-webkit-scrollbar-button:end:increment,.sol-c-game-page__cards::-webkit-scrollbar-button:start:decrement{display:block}.sol-c-game-page__cards::-webkit-scrollbar-button:end:decrement,.sol-c-game-page__cards::-webkit-scrollbar-button:start:increment{display:none}.sol-c-game-page__cards::-webkit-scrollbar-button:decrement,[dir=rtl] .sol-c-game-page__cards::-webkit-scrollbar-button:increment{width:calc(var(--_content-padding-inline-start) - var(--sol-scrollbar-border))}.sol-c-game-page__cards::-webkit-scrollbar-button:increment,[dir=rtl] .sol-c-game-page__cards::-webkit-scrollbar-button:decrement{width:calc(var(--_content-padding-inline-end) - var(--sol-scrollbar-border))}.sol-c-game-page__card{display:flex;flex:0 0 auto;flex-direction:column}.sol-c-game-page__empty{margin-block:auto;padding-block:var(--sol-size-300)}.sol-c-game-page__background{inset-block-start:0;inset-inline:0;padding-top:42.8571428571%;position:absolute;z-index:-1}.sol-c-game-page__background:before{background:linear-gradient(to top,var(--_gradient));content:"";inset:0;position:absolute;z-index:1}.sol-c-game-page__image,.sol-c-game-page__video{height:100%;left:0;object-fit:cover;object-position:top;position:absolute;top:0;width:100%}.sol-c-game-page__image{animation:sol-motion-fade-in var(--sol-motion-300) var(--sol-motion-ease-out) forwards;opacity:0}.sol-c-game-page__video{display:none;opacity:0}.sol-c-game-page__video--is-loaded{animation:sol-motion-fade-in var(--sol-motion-500) linear forwards;display:block}}@container style(--sol-motion-transition-effects: enabled){.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__actions,.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__card,.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__content,.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__logo,.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__navigation,.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__tab,.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__title,.sol-c-game-page[data-sol-animation-gamepage=is-init] .sol-c-game-page__actions,.sol-c-game-page[data-sol-animation-gamepage=is-init] .sol-c-game-page__card,.sol-c-game-page[data-sol-animation-gamepage=is-init] .sol-c-game-page__content,.sol-c-game-page[data-sol-animation-gamepage=is-init] .sol-c-game-page__logo,.sol-c-game-page[data-sol-animation-gamepage=is-init] .sol-c-game-page__navigation,.sol-c-game-page[data-sol-animation-gamepage=is-init] .sol-c-game-page__tab,.sol-c-game-page[data-sol-animation-gamepage=is-init] .sol-c-game-page__title{opacity:0}.sol-c-game-page[data-sol-animation-gamepage=is-entering]{--_anim-base-delay:0s}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__actions,.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__card,.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__content,.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__logo,.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__navigation,.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__tab,.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__tabs-indicator,.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__title{animation:sol-motion-fade-in var(--sol-motion-500) var(--sol-motion-ease-out) forwards;opacity:0}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__logo{animation-delay:var(--_anim-base-delay)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__navigation{animation-delay:calc(var(--_anim-base-delay) + .3s);transform:translateX(-20px)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__title{animation-delay:calc(var(--_anim-base-delay) + .5s);transform:translateX(-10px)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__actions{animation-delay:calc(var(--_anim-base-delay) + .6s);transform:translateX(-15px)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__tab{transform:translateY(5px)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__tab:first-child{animation-delay:calc(var(--_anim-base-delay) + .7s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__tab:nth-child(2){animation-delay:calc(var(--_anim-base-delay) + .8s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__tab:nth-child(3){animation-delay:calc(var(--_anim-base-delay) + .9s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__tab:nth-child(4){animation-delay:calc(var(--_anim-base-delay) + 1s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__tab:nth-child(5){animation-delay:calc(var(--_anim-base-delay) + 1.1s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__tab:nth-child(6){animation-delay:calc(var(--_anim-base-delay) + 1.2s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__tab:nth-child(7){animation-delay:calc(var(--_anim-base-delay) + 1.3s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__tab:nth-child(8){animation-delay:calc(var(--_anim-base-delay) + 1.4s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__tab:nth-child(9){animation-delay:calc(var(--_anim-base-delay) + 1.5s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__tab:nth-child(10){animation-delay:calc(var(--_anim-base-delay) + 1.6s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__tabs-indicator{animation-delay:calc(var(--_anim-base-delay) + 1.1s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__content{animation-delay:calc(var(--_anim-base-delay) + .7s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__card{transform:translateY(20px)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__card:first-child{animation-delay:calc(var(--_anim-base-delay) + .8s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__card:nth-child(2){animation-delay:calc(var(--_anim-base-delay) + .9s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__card:nth-child(3){animation-delay:calc(var(--_anim-base-delay) + 1s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__card:nth-child(4){animation-delay:calc(var(--_anim-base-delay) + 1.1s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__card:nth-child(5){animation-delay:calc(var(--_anim-base-delay) + 1.2s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__card:nth-child(6){animation-delay:calc(var(--_anim-base-delay) + 1.3s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__card:nth-child(7){animation-delay:calc(var(--_anim-base-delay) + 1.4s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__card:nth-child(8){animation-delay:calc(var(--_anim-base-delay) + 1.5s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__card:nth-child(9){animation-delay:calc(var(--_anim-base-delay) + 1.6s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__card:nth-child(10){animation-delay:calc(var(--_anim-base-delay) + 1.7s)}.sol-c-game-page[data-sol-animation-gamepage=is-entered]{--_anim-base-delay:0s}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__actions,.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__card,.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__content,.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__logo,.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__navigation,.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__tab,.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__tabs-indicator,.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__title{animation:sol-motion-fade-in var(--sol-motion-300) var(--sol-motion-ease-out) forwards;opacity:0}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__logo{animation-delay:var(--_anim-base-delay)}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__title{animation-delay:calc(var(--_anim-base-delay) + .2s);transform:translateX(-10px)}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__actions{animation-delay:calc(var(--_anim-base-delay) + .3s);transform:translateX(-15px)}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__tab{transform:translateY(5px)}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__tab:first-child{animation-delay:calc(var(--_anim-base-delay) + .2s)}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__tab:nth-child(2){animation-delay:calc(var(--_anim-base-delay) + .3s)}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__tab:nth-child(3){animation-delay:calc(var(--_anim-base-delay) + .4s)}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__tab:nth-child(4){animation-delay:calc(var(--_anim-base-delay) + .5s)}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__tab:nth-child(5){animation-delay:calc(var(--_anim-base-delay) + .6s)}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__tab:nth-child(6){animation-delay:calc(var(--_anim-base-delay) + .7s)}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__tab:nth-child(7){animation-delay:calc(var(--_anim-base-delay) + .8s)}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__tab:nth-child(8){animation-delay:calc(var(--_anim-base-delay) + .9s)}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__tab:nth-child(9){animation-delay:calc(var(--_anim-base-delay) + 1s)}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__tab:nth-child(10){animation-delay:calc(var(--_anim-base-delay) + 1.1s)}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__content,.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__tabs-indicator{animation-delay:0}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__card{transform:translateY(20px)}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__card:first-child{animation-delay:0s}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__card:nth-child(2){animation-delay:.1s}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__card:nth-child(3){animation-delay:.2s}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__card:nth-child(4){animation-delay:.3s}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__card:nth-child(5){animation-delay:.4s}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__card:nth-child(6){animation-delay:.5s}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__card:nth-child(7){animation-delay:.6s}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__card:nth-child(8){animation-delay:.7s}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__card:nth-child(9){animation-delay:.8s}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__card:nth-child(10){animation-delay:.9s}}'); - let xd = No((({ - children: e, - className: t, - title: n, - ...r - }, i) => { - let a = Lo("sol-c-game-page__actions", t); - return po.jsx(Ps, { + let Wh = Po((({ + children: e, + className: t, + title: n, + ...r + }, i) => { + let a = Ao("sol-c-game-page__actions", t); + return io.jsx(Es, { className: a, gap: "150", ref: i, @@ -30699,30 +33016,30 @@ children: e }) })), - kd = No((({ - as: e = "div", - className: t, - image: n, - video: r, - ...i - }, a) => { - let o = Lo("sol-c-game-page__background", t), + Hh = Po((({ + as: e = "div", + className: t, + image: n, + video: r, + ...i + }, a) => { + let o = Ao("sol-c-game-page__background", t), [s, l] = (0, Ee.useState)(!0), c = (0, Ee.useRef)(null); return (0, Ee.useEffect)((() => { s || c.current?.play() - }), [s]), po.jsxs(e, { + }), [s]), io.jsxs(e, { "aria-hidden": "true", className: o, ref: a, ...i, - children: [n && po.jsx("img", { + children: [n && io.jsx("img", { alt: "", className: "sol-c-game-page__image", ..."string" == typeof n ? { src: n } : n - }), r && po.jsx("video", { + }), r && io.jsx("video", { ref: c, className: "sol-c-game-page__video " + (s ? "" : "sol-c-game-page__video--is-loaded"), disableRemotePlayback: !0, @@ -30733,30 +33050,30 @@ preload: "auto", src: "string" == typeof r ? r : void 0, onCanPlayThrough: () => l(!1), - children: Array.isArray(r) && r.map(((e, t) => po.jsx("source", { + children: Array.isArray(r) && r.map(((e, t) => io.jsx("source", { ...e }, t))) })] }) })), - wd = No((({ - as: e = "div", - children: t, - className: n, - empty: r, - ...i - }, a) => { + Kh = Po((({ + as: e = "div", + children: t, + className: n, + empty: r, + ...i + }, a) => { let { ref: o, inlineStart: s, inlineEnd: l - } = ss(); + } = ns(); (({ - ref: e, - scrollSpeed: t = .9, - scrollMomentum: n = 0, - minimumVelocity: r = .05 - } = {}) => { + ref: e, + scrollSpeed: t = .9, + scrollMomentum: n = 0, + minimumVelocity: r = .05 + } = {}) => { let i = (0, Ee.useRef)(null), a = e || i, o = (0, Ee.useRef)({ @@ -30774,12 +33091,12 @@ s.current && cancelAnimationFrame(s.current); let i = Math.round(r.scrollWidth - r.clientWidth) > 0, c = e.deltaY * t; - i ? (e.preventDefault(), r.scrollBy({ + i ? (r.scrollBy({ left: c, behavior: Math.abs(c) > 50 && 0 === n ? "smooth" : "auto" }), o.current.x = c) : i || 0 === n || (r.scrollTop += c, o.current.y = c), 0 !== n && (s.current = requestAnimationFrame(l)) }), [t, n, l, a]); - Bo({ + Mo({ ref: a, onResize: c }), (0, Ee.useEffect)((() => { @@ -30795,13 +33112,13 @@ scrollMomentum: .95, scrollSpeed: .2 }), (({ - decay: e = .85, - isEnabled: t, - minimumVelocity: n = .05, - mouseButton: r = "left", - ref: i, - safeDistance: a = 10 - } = {}) => { + decay: e = .85, + isEnabled: t, + minimumVelocity: n = .05, + mouseButton: r = "left", + ref: i, + safeDistance: a = 10 + } = {}) => { let o = (0, Ee.useRef)(null), s = i || o, l = (0, Ee.useMemo)((() => { @@ -30829,7 +33146,7 @@ y: 0 }), f = (0, Ee.useRef)(null); - Vo((() => { + No((() => { let r = s.current; if (!r || !t) return; let i = () => { @@ -30871,53 +33188,53 @@ isEnabled: !!t, ref: o }); - let c = Lo("sol-c-game-page__content", n); - return po.jsx(e, { + let c = Ao("sol-c-game-page__content", n); + return io.jsx(e, { className: c, "data-sol-scroll-start": s, "data-sol-scroll-end": l, ref: a, ...i, - children: t ? po.jsx("ul", { + children: t ? io.jsx("ul", { className: "sol-c-game-page__cards", "data-sol-scrollbar-hidden": "true", ref: o, - children: Ee.Children.map(t, ((e, t) => po.jsx("li", { + children: Ee.Children.map(t, ((e, t) => io.jsx("li", { className: "sol-c-game-page__card", children: e }, t))) - }) : r && po.jsx(gs, { + }) : r && io.jsx(ds, { className: "sol-c-game-page__empty", variant: "heading-xs", children: r }) }) })), - Sd = No((({ - as: e = "div", - animation: t, - playLottie: n = !1, - className: r, - logo: i, - ...a - }, o) => { - let s = Lo("sol-c-game-page__header", r), + Yh = Po((({ + as: e = "div", + animation: t, + playLottie: n = !1, + className: r, + logo: i, + ...a + }, o) => { + let s = Ao("sol-c-game-page__header", r), [l, c] = (0, Ee.useState)(!1); (0, Ee.useEffect)((() => { n && c(!0) }), [n]); - let u = as(t, { + let u = es(t, { loop: !1, isPlaying: l }); - return po.jsx(e, { + return io.jsx(e, { "aria-hidden": "true", className: s, ref: o, ...a, - children: po.jsx(u, { + children: io.jsx(u, { className: "sol-c-game-page__logo", - children: i && po.jsx("img", { + children: i && io.jsx("img", { alt: "Game logo", src: i }) @@ -30925,25 +33242,25 @@ }) })); eo("@layer sol.components{.sol-c-tag{align-items:center;background:var(--sol-color-surface-1);border-radius:var(--sol-radius-4);color:var(--sol-color-foregroud);display:inline-flex;justify-content:center;max-inline-size:100%;min-inline-size:var(--sol-size-150);padding-block:var(--sol-size-025);padding-inline:var(--sol-size-050)}}"); - let Ed = No((({ - as: e = "p", - children: t, - className: n, - status: r, - ...i - }, a) => { + let Qh = Po((({ + as: e = "p", + children: t, + className: n, + status: r, + ...i + }, a) => { let { ref: o, hasOverflow: s - } = Go(), l = Lo("sol-c-tag", r && `sol-u-background-status-${r}-fill sol-u-color-status-${r}-fill-contrast`, n); - return po.jsx(Ku, { + } = Fo(), l = Ao("sol-c-tag", r && `sol-u-background-status-${r}-fill sol-u-color-status-${r}-fill-contrast`, n); + return io.jsx(Gu, { content: t, enabled: s, - children: po.jsx(e, { + children: io.jsx(e, { className: l, ref: a, ...i, - children: po.jsx(gs, { + children: io.jsx(ds, { as: "span", className: "sol-c-tag__label", ref: o, @@ -30954,101 +33271,101 @@ }) }) })), - Od = No((({ - className: e, - status: t, - title: n, - ...r - }, i) => { - let a = Lo("sol-c-game-page__message", e), - o = po.jsx(gs, { + Zh = Po((({ + className: e, + status: t, + title: n, + ...r + }, i) => { + let a = Ao("sol-c-game-page__message", e), + o = io.jsx(ds, { className: a, ref: i, color: "foreground-weak", variant: "body-s", ...r }); - return n ? po.jsxs(Ps, { + return n ? io.jsxs(Es, { gap: "050", vertical: !0, align: "start", - children: [po.jsx(Ed, { + children: [io.jsx(Qh, { as: "h2", status: t, children: n }), o] }) : o })), - Id = (0, Ee.forwardRef)((({ - active: e, - className: t, - icon: n, - label: r, - ...i - }, a) => { - let o = Lo("sol-c-game-page__tab", t), + Xh = (0, Ee.forwardRef)((({ + active: e, + className: t, + icon: n, + label: r, + ...i + }, a) => { + let o = Ao("sol-c-game-page__tab", t), s = { [i.href ? "aria-current" : "aria-pressed"]: !!e || void 0, className: o, ref: a, ...i }; - return po.jsxs(hs, { + return io.jsxs(ls, { ...s, - children: [r && po.jsx(gs, { + children: [r && io.jsx(ds, { as: "span", variant: "button-m", children: r - }), n && po.jsx(ms, { + }), n && io.jsx(us, { source: n })] }) })); - var Cd = Object.defineProperty, - Ad = {}; + var Jh = Object.defineProperty, + ef = {}; ((e, t) => { - for (var n in t) Cd(e, n, { + for (var n in t) Jh(e, n, { get: t[n], enumerable: !0 }) - })(Ad, { - assign: () => op, - colors: () => rp, - createStringInterpolator: () => no, - skipAnimation: () => ip, - to: () => ro, - willAdvance: () => ap + })(ef, { + assign: () => Rf, + colors: () => Af, + createStringInterpolator: () => ip, + skipAnimation: () => Pf, + to: () => ap, + willAdvance: () => Tf }); - var Pd = Wd(), - Td = e => Bd(e, Pd), - Rd = Wd(); - Td.write = e => Bd(e, Rd); - var Dd = Wd(); - Td.onStart = e => Bd(e, Dd); - var Ld = Wd(); - Td.onFrame = e => Bd(e, Ld); - var Nd = Wd(); - Td.onFinish = e => Bd(e, Nd); - var jd = []; - Td.setTimeout = (e, t) => { - let n = Td.now() + t, + var tf = yf(), + nf = e => ff(e, tf), + rf = yf(); + nf.write = e => ff(e, rf); + var af = yf(); + nf.onStart = e => ff(e, af); + var of = yf(); + nf.onFrame = e => ff(e, of); + var sf = yf(); + nf.onFinish = e => ff(e, sf); + var lf = []; + nf.setTimeout = (e, t) => { + let n = nf.now() + t, r = () => { - let e = jd.findIndex((e => e.cancel == r)); - ~e && jd.splice(e, 1), Vd -= ~e ? 1 : 0 + let e = lf.findIndex((e => e.cancel == r)); + ~e && lf.splice(e, 1), pf -= ~e ? 1 : 0 }, i = { time: n, handler: e, cancel: r }; - return jd.splice(Md(n), 0, i), Vd += 1, Gd(), i + return lf.splice(cf(n), 0, i), pf += 1, mf(), i }; - var Md = e => ~(~jd.findIndex((t => t.time > e)) || ~jd.length); - Td.cancel = e => { - Dd.delete(e), Ld.delete(e), Nd.delete(e), Pd.delete(e), Rd.delete(e) - }, Td.sync = e => { - Ud = !0, Td.batchedUpdates(e), Ud = !1 - }, Td.throttle = e => { + var cf = e => ~(~lf.findIndex((t => t.time > e)) || ~lf.length); + nf.cancel = e => { + af.delete(e), of.delete(e), sf.delete(e), tf.delete(e), rf.delete(e) + }, nf.sync = e => { + hf = !0, nf.batchedUpdates(e), hf = !1 + }, nf.throttle = e => { let t; function n() { @@ -31060,65 +33377,65 @@ } function r(...e) { - t = e, Td.onStart(n) + t = e, nf.onStart(n) } return r.handler = e, r.cancel = () => { - Dd.delete(n), t = null + af.delete(n), t = null }, r }; - var Fd = "undefined" != typeof window ? window.requestAnimationFrame : () => {}; - Td.use = e => Fd = e, Td.now = "undefined" != typeof performance ? () => performance.now() : Date.now, Td.batchedUpdates = e => e(), Td.catch = console.error, Td.frameLoop = "always", Td.advance = () => { - "demand" !== Td.frameLoop ? console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand") : qd() + var uf = "undefined" != typeof window ? window.requestAnimationFrame : () => {}; + nf.use = e => uf = e, nf.now = "undefined" != typeof performance ? () => performance.now() : Date.now, nf.batchedUpdates = e => e(), nf.catch = console.error, nf.frameLoop = "always", nf.advance = () => { + "demand" !== nf.frameLoop ? console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand") : vf() }; - var zd = -1, - Vd = 0, - Ud = !1; + var df = -1, + pf = 0, + hf = !1; - function Bd(e, t) { - Ud ? (t.delete(e), e(0)) : (t.add(e), Gd()) + function ff(e, t) { + hf ? (t.delete(e), e(0)) : (t.add(e), mf()) } - function Gd() { - zd < 0 && (zd = 0, "demand" !== Td.frameLoop && Fd($d)) + function mf() { + df < 0 && (df = 0, "demand" !== nf.frameLoop && uf(gf)) } - function $d() { - ~zd && (Fd($d), Td.batchedUpdates(qd)) + function gf() { + ~df && (uf(gf), nf.batchedUpdates(vf)) } - function qd() { - let e = zd; - zd = Td.now(); - let t = Md(zd); - t && (Hd(jd.splice(0, t), (e => e.handler())), Vd -= t), Vd ? (Dd.flush(), Pd.flush(e ? Math.min(64, zd - e) : 16.667), Ld.flush(), Rd.flush(), Nd.flush()) : zd = -1 + function vf() { + let e = df; + df = nf.now(); + let t = cf(df); + t && (_f(lf.splice(0, t), (e => e.handler())), pf -= t), pf ? (af.flush(), tf.flush(e ? Math.min(64, df - e) : 16.667), of.flush(), rf.flush(), sf.flush()) : df = -1 } - function Wd() { + function yf() { let e = new Set, t = e; return { add(n) { - Vd += t != e || e.has(n) ? 0 : 1, e.add(n) + pf += t != e || e.has(n) ? 0 : 1, e.add(n) }, - delete: n => (Vd -= t == e && e.has(n) ? 1 : 0, e.delete(n)), + delete: n => (pf -= t == e && e.has(n) ? 1 : 0, e.delete(n)), flush(n) { - t.size && (e = new Set, Vd -= t.size, Hd(t, (t => t(n) && e.add(t))), Vd += e.size, t = e) + t.size && (e = new Set, pf -= t.size, _f(t, (t => t(n) && e.add(t))), pf += e.size, t = e) } } } - function Hd(e, t) { + function _f(e, t) { e.forEach((e => { try { t(e) } catch (e) { - Td.catch(e) + nf.catch(e) } })) } - function Kd() {} - var Yd = { + function bf() {} + var xf = { arr: Array.isArray, obj: e => !!e && "Object" === e.constructor.name, fun: e => "function" == typeof e, @@ -31127,145 +33444,145 @@ und: e => void 0 === e }; - function Qd(e, t) { - if (Yd.arr(e)) { - if (!Yd.arr(t) || e.length !== t.length) return !1; + function wf(e, t) { + if (xf.arr(e)) { + if (!xf.arr(t) || e.length !== t.length) return !1; for (let n = 0; n < e.length; n++) if (e[n] !== t[n]) return !1; return !0 } return e === t } - var Zd = (e, t) => e.forEach(t); + var kf = (e, t) => e.forEach(t); - function Xd(e, t, n) { - if (Yd.arr(e)) + function Sf(e, t, n) { + if (xf.arr(e)) for (let r = 0; r < e.length; r++) t.call(n, e[r], `${r}`); else for (let r in e) e.hasOwnProperty(r) && t.call(n, e[r], r) } - var Jd = e => Yd.und(e) ? [] : Yd.arr(e) ? e : [e]; + var Ef = e => xf.und(e) ? [] : xf.arr(e) ? e : [e]; - function ep(e, t) { + function Of(e, t) { if (e.size) { let n = Array.from(e); - e.clear(), Zd(n, t) + e.clear(), kf(n, t) } } - var tp = (e, ...t) => ep(e, (e => e(...t))), - np = () => "undefined" == typeof window || !window.navigator || /ServerSideRendering|^Deno\//.test(window.navigator.userAgent), - rp = null, - ip = !1, - ap = Kd, - op = e => { - e.to && (ro = e.to), e.now && (Td.now = e.now), void 0 !== e.colors && (rp = e.colors), null != e.skipAnimation && (ip = e.skipAnimation), e.createStringInterpolator && (no = e.createStringInterpolator), e.requestAnimationFrame && Td.use(e.requestAnimationFrame), e.batchedUpdates && (Td.batchedUpdates = e.batchedUpdates), e.willAdvance && (ap = e.willAdvance), e.frameLoop && (Td.frameLoop = e.frameLoop) + var If = (e, ...t) => Of(e, (e => e(...t))), + Cf = () => "undefined" == typeof window || !window.navigator || /ServerSideRendering|^Deno\//.test(window.navigator.userAgent), + Af = null, + Pf = !1, + Tf = bf, + Rf = e => { + e.to && (ap = e.to), e.now && (nf.now = e.now), void 0 !== e.colors && (Af = e.colors), null != e.skipAnimation && (Pf = e.skipAnimation), e.createStringInterpolator && (ip = e.createStringInterpolator), e.requestAnimationFrame && nf.use(e.requestAnimationFrame), e.batchedUpdates && (nf.batchedUpdates = e.batchedUpdates), e.willAdvance && (Tf = e.willAdvance), e.frameLoop && (nf.frameLoop = e.frameLoop) }, - sp = new Set, - lp = [], - cp = [], - up = 0, - dp = { + Df = new Set, + Lf = [], + Nf = [], + jf = 0, + Mf = { get idle() { - return !sp.size && !lp.length + return !Df.size && !Lf.length }, start(e) { - up > e.priority ? (sp.add(e), Td.onStart(pp)) : (hp(e), Td(mp)) + jf > e.priority ? (Df.add(e), nf.onStart(Ff)) : (zf(e), nf(Uf)) }, - advance: mp, + advance: Uf, sort(e) { - if (up) Td.onFrame((() => dp.sort(e))); + if (jf) nf.onFrame((() => Mf.sort(e))); else { - let t = lp.indexOf(e); - ~t && (lp.splice(t, 1), fp(e)) + let t = Lf.indexOf(e); + ~t && (Lf.splice(t, 1), Vf(e)) } }, clear() { - lp = [], sp.clear() + Lf = [], Df.clear() } }; - function pp() { - sp.forEach(hp), sp.clear(), Td(mp) + function Ff() { + Df.forEach(zf), Df.clear(), nf(Uf) } - function hp(e) { - lp.includes(e) || fp(e) + function zf(e) { + Lf.includes(e) || Vf(e) } - function fp(e) { - lp.splice(function(e, t) { + function Vf(e) { + Lf.splice(function(e, t) { let n = e.findIndex(t); return n < 0 ? e.length : n - }(lp, (t => t.priority > e.priority)), 0, e) + }(Lf, (t => t.priority > e.priority)), 0, e) } - function mp(e) { - let t = cp; - for (let n = 0; n < lp.length; n++) { - let r = lp[n]; - up = r.priority, r.idle || (ap(r), r.advance(e), r.idle || t.push(r)) + function Uf(e) { + let t = Nf; + for (let n = 0; n < Lf.length; n++) { + let r = Lf[n]; + jf = r.priority, r.idle || (Tf(r), r.advance(e), r.idle || t.push(r)) } - return up = 0, (cp = lp).length = 0, (lp = t).length > 0 + return jf = 0, (Nf = Lf).length = 0, (Lf = t).length > 0 } - var gp = "[-+]?\\d*\\.?\\d+", - vp = gp + "%"; + var Bf = "[-+]?\\d*\\.?\\d+", + Gf = Bf + "%"; - function yp(...e) { + function $f(...e) { return "\\(\\s*(" + e.join(")\\s*,\\s*(") + ")\\s*\\)" } - var _p = RegExp("rgb" + yp(gp, gp, gp)), - bp = RegExp("rgba" + yp(gp, gp, gp, gp)), - xp = RegExp("hsl" + yp(gp, vp, vp)), - kp = RegExp("hsla" + yp(gp, vp, vp, gp)), - wp = /^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, - Sp = /^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, - Ep = /^#([0-9a-fA-F]{6})$/, - Op = /^#([0-9a-fA-F]{8})$/; + var qf = RegExp("rgb" + $f(Bf, Bf, Bf)), + Wf = RegExp("rgba" + $f(Bf, Bf, Bf, Bf)), + Hf = RegExp("hsl" + $f(Bf, Gf, Gf)), + Kf = RegExp("hsla" + $f(Bf, Gf, Gf, Bf)), + Yf = /^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, + Qf = /^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, + Zf = /^#([0-9a-fA-F]{6})$/, + Xf = /^#([0-9a-fA-F]{8})$/; - function Ip(e, t, n) { + function Jf(e, t, n) { return n < 0 && (n += 1), n > 1 && (n -= 1), n < 1 / 6 ? e + 6 * (t - e) * n : n < .5 ? t : n < 2 / 3 ? e + (t - e) * (2 / 3 - n) * 6 : e } - function Cp(e, t, n) { + function em(e, t, n) { let r = n < .5 ? n * (1 + t) : n + t - n * t, i = 2 * n - r, - a = Ip(i, r, e + 1 / 3), - o = Ip(i, r, e), - s = Ip(i, r, e - 1 / 3); + a = Jf(i, r, e + 1 / 3), + o = Jf(i, r, e), + s = Jf(i, r, e - 1 / 3); return Math.round(255 * a) << 24 | Math.round(255 * o) << 16 | Math.round(255 * s) << 8 } - function Ap(e) { + function tm(e) { let t = parseInt(e, 10); return t < 0 ? 0 : t > 255 ? 255 : t } - function Pp(e) { + function nm(e) { return (parseFloat(e) % 360 + 360) % 360 / 360 } - function Tp(e) { + function rm(e) { let t = parseFloat(e); return t < 0 ? 0 : t > 1 ? 255 : Math.round(255 * t) } - function Rp(e) { + function im(e) { let t = parseFloat(e); return t < 0 ? 0 : t > 100 ? 1 : t / 100 } - function Dp(e) { - let t, n = "number" == typeof e ? e >>> 0 === e && e >= 0 && e <= 4294967295 ? e : null : (t = Ep.exec(e)) ? parseInt(t[1] + "ff", 16) >>> 0 : rp && void 0 !== rp[e] ? rp[e] : (t = _p.exec(e)) ? (Ap(t[1]) << 24 | Ap(t[2]) << 16 | Ap(t[3]) << 8 | 255) >>> 0 : (t = bp.exec(e)) ? (Ap(t[1]) << 24 | Ap(t[2]) << 16 | Ap(t[3]) << 8 | Tp(t[4])) >>> 0 : (t = wp.exec(e)) ? parseInt(t[1] + t[1] + t[2] + t[2] + t[3] + t[3] + "ff", 16) >>> 0 : (t = Op.exec(e)) ? parseInt(t[1], 16) >>> 0 : (t = Sp.exec(e)) ? parseInt(t[1] + t[1] + t[2] + t[2] + t[3] + t[3] + t[4] + t[4], 16) >>> 0 : (t = xp.exec(e)) ? (255 | Cp(Pp(t[1]), Rp(t[2]), Rp(t[3]))) >>> 0 : (t = kp.exec(e)) ? (Cp(Pp(t[1]), Rp(t[2]), Rp(t[3])) | Tp(t[4])) >>> 0 : null; + function am(e) { + let t, n = "number" == typeof e ? e >>> 0 === e && e >= 0 && e <= 4294967295 ? e : null : (t = Zf.exec(e)) ? parseInt(t[1] + "ff", 16) >>> 0 : Af && void 0 !== Af[e] ? Af[e] : (t = qf.exec(e)) ? (tm(t[1]) << 24 | tm(t[2]) << 16 | tm(t[3]) << 8 | 255) >>> 0 : (t = Wf.exec(e)) ? (tm(t[1]) << 24 | tm(t[2]) << 16 | tm(t[3]) << 8 | rm(t[4])) >>> 0 : (t = Yf.exec(e)) ? parseInt(t[1] + t[1] + t[2] + t[2] + t[3] + t[3] + "ff", 16) >>> 0 : (t = Xf.exec(e)) ? parseInt(t[1], 16) >>> 0 : (t = Qf.exec(e)) ? parseInt(t[1] + t[1] + t[2] + t[2] + t[3] + t[3] + t[4] + t[4], 16) >>> 0 : (t = Hf.exec(e)) ? (255 | em(nm(t[1]), im(t[2]), im(t[3]))) >>> 0 : (t = Kf.exec(e)) ? (em(nm(t[1]), im(t[2]), im(t[3])) | rm(t[4])) >>> 0 : null; return null === n ? e : (n = n || 0, `rgba(${(4278190080&n)>>>24}, ${(16711680&n)>>>16}, ${(65280&n)>>>8}, ${(255&n)/255})`) } - var Lp = (e, t, n) => { - if (Yd.fun(e)) return e; - if (Yd.arr(e)) return Lp({ + var om = (e, t, n) => { + if (xf.fun(e)) return e; + if (xf.arr(e)) return om({ range: e, output: t, extrapolate: n }); - if (Yd.str(e.output[0])) return no(e); + if (xf.str(e.output[0])) return ip(e); let r = e.output, i = e.range || [0, 1], a = e.extrapolateLeft || e.extrapolate || "extend", @@ -31290,111 +33607,111 @@ }(t, i[n], i[n + 1], r[n], r[n + 1], s, a, o, e.map) } }, - Np = Symbol.for("FluidValue.get"), - jp = Symbol.for("FluidValue.observers"), - Mp = e => !(!e || !e[Np]), - Fp = e => e && e[Np] ? e[Np]() : e, - zp = e => e[jp] || null; + sm = Symbol.for("FluidValue.get"), + lm = Symbol.for("FluidValue.observers"), + cm = e => !(!e || !e[sm]), + um = e => e && e[sm] ? e[sm]() : e, + dm = e => e[lm] || null; - function Vp(e, t) { - let n = e[jp]; + function pm(e, t) { + let n = e[lm]; n && n.forEach((e => { e.eventObserved ? e.eventObserved(t) : e(t) })) } - var Up = class { + var hm = class { constructor(e) { if (!e && !(e = this.get)) throw Error("Unknown getter"); - Bp(this, e) + fm(this, e) } }, - Bp = (e, t) => qp(e, Np, t); + fm = (e, t) => vm(e, sm, t); - function Gp(e, t) { - if (e[Np]) { - let n = e[jp]; - n || qp(e, jp, n = new Set), !n.has(t) && (n.add(t), e.observerAdded && e.observerAdded(n.size, t)) + function mm(e, t) { + if (e[sm]) { + let n = e[lm]; + n || vm(e, lm, n = new Set), !n.has(t) && (n.add(t), e.observerAdded && e.observerAdded(n.size, t)) } return t } - function $p(e, t) { - let n = e[jp]; + function gm(e, t) { + let n = e[lm]; if (n && n.has(t)) { let r = n.size - 1; - r ? n.delete(t) : e[jp] = null, e.observerRemoved && e.observerRemoved(r, t) + r ? n.delete(t) : e[lm] = null, e.observerRemoved && e.observerRemoved(r, t) } } - var qp = (e, t, n) => Object.defineProperty(e, t, { + var vm = (e, t, n) => Object.defineProperty(e, t, { value: n, writable: !0, configurable: !0 }), - Wp = /[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, - Hp = /(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi, - Kp = RegExp(`(${Wp.source})(%|[a-z]+)`, "i"), - Yp = /rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi, - Qp = /var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/, - Zp = e => { - let [t, n] = Xp(e); - if (!t || np()) return e; + ym = /[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, + _m = /(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi, + bm = RegExp(`(${ym.source})(%|[a-z]+)`, "i"), + xm = /rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi, + wm = /var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/, + km = e => { + let [t, n] = Sm(e); + if (!t || Cf()) return e; let r = window.getComputedStyle(document.documentElement).getPropertyValue(t); if (r) return r.trim(); if (n && n.startsWith("--")) { let e = window.getComputedStyle(document.documentElement).getPropertyValue(n); if (e) return e } else { - if (n && Qp.test(n)) return Zp(n); + if (n && wm.test(n)) return km(n); if (n) return n } return e }, - Xp = e => { - let t = Qp.exec(e); + Sm = e => { + let t = wm.exec(e); if (!t) return [, ]; let [, n, r] = t; return [n, r] }, - Jp = (e, t, n, r, i) => `rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`, - eh = e => { - io || (io = rp ? RegExp(`(${Object.keys(rp).join("|")})(?!\\w)`, "g") : /^\b$/); - let t = e.output.map((e => Fp(e).replace(Qp, Zp).replace(Hp, Dp).replace(io, Dp))), - n = t.map((e => e.match(Wp).map(Number))), + Em = (e, t, n, r, i) => `rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`, + Om = e => { + op || (op = Af ? RegExp(`(${Object.keys(Af).join("|")})(?!\\w)`, "g") : /^\b$/); + let t = e.output.map((e => um(e).replace(wm, km).replace(_m, am).replace(op, am))), + n = t.map((e => e.match(ym).map(Number))), r = n[0].map(((e, t) => n.map((e => { if (!(t in e)) throw Error('The arity of each "output" value must be equal'); return e[t] })))), - i = r.map((t => Lp({ + i = r.map((t => om({ ...e, output: t }))); return e => { - let n = !Kp.test(t[0]) && t.find((e => Kp.test(e)))?.replace(Wp, ""), + let n = !bm.test(t[0]) && t.find((e => bm.test(e)))?.replace(ym, ""), r = 0; - return t[0].replace(Wp, (() => `${i[r++](e)}${n||""}`)).replace(Yp, Jp) + return t[0].replace(ym, (() => `${i[r++](e)}${n||""}`)).replace(xm, Em) } }, - th = "react-spring: ", - nh = e => { + Im = "react-spring: ", + Cm = e => { let t = !1; - if ("function" != typeof e) throw TypeError(`${th}once requires a function parameter`); + if ("function" != typeof e) throw TypeError(`${Im}once requires a function parameter`); return (...n) => { t || (e(...n), t = !0) } }, - rh = nh(console.warn), - ih = nh(console.warn); + Am = Cm(console.warn), + Pm = Cm(console.warn); - function ah(e) { - return Yd.str(e) && ("#" == e[0] || /\d/.test(e) || !np() && Qp.test(e) || e in (rp || {})) + function Tm(e) { + return xf.str(e) && ("#" == e[0] || /\d/.test(e) || !Cf() && wm.test(e) || e in (Af || {})) } - var oh = np() ? Ee.useEffect : Ee.useLayoutEffect; + var Rm = Cf() ? Ee.useEffect : Ee.useLayoutEffect; - function sh() { + function Dm() { let e = (0, Ee.useState)()[1], t = (() => { let e = (0, Ee.useRef)(!1); - return oh((() => (e.current = !0, () => { + return Rm((() => (e.current = !0, () => { e.current = !1 })), []), e })(); @@ -31402,37 +33719,37 @@ t.current && e(Math.random()) } } - var lh = e => (0, Ee.useEffect)(e, ch), - ch = []; + var Lm = e => (0, Ee.useEffect)(e, Nm), + Nm = []; - function uh(e) { + function jm(e) { let t = (0, Ee.useRef)(); return (0, Ee.useEffect)((() => { t.current = e })), t.current } - var dh = Symbol.for("Animated:node"), - ph = e => e && e[dh], - hh = (e, t) => ((e, t, n) => Object.defineProperty(e, t, { + var Mm = Symbol.for("Animated:node"), + Fm = e => e && e[Mm], + zm = (e, t) => ((e, t, n) => Object.defineProperty(e, t, { value: n, writable: !0, configurable: !0 - }))(e, dh, t), - fh = e => e && e[dh] && e[dh].getPayload(), - mh = class { + }))(e, Mm, t), + Vm = e => e && e[Mm] && e[Mm].getPayload(), + Um = class { constructor() { - hh(this, this) + zm(this, this) } getPayload() { return this.payload || [] } }, - gh = class extends mh { + Bm = class extends Um { constructor(e) { - super(), this._value = e, this.done = !0, this.durationProgress = 0, Yd.num(this._value) && (this.lastPosition = this._value) + super(), this._value = e, this.done = !0, this.durationProgress = 0, xf.num(this._value) && (this.lastPosition = this._value) } static create(e) { - return new gh(e) + return new Bm(e) } getPayload() { return [this] @@ -31441,30 +33758,30 @@ return this._value } setValue(e, t) { - return Yd.num(e) && (this.lastPosition = e, t && (e = Math.round(e / t) * t, this.done && (this.lastPosition = e))), this._value !== e && (this._value = e, !0) + return xf.num(e) && (this.lastPosition = e, t && (e = Math.round(e / t) * t, this.done && (this.lastPosition = e))), this._value !== e && (this._value = e, !0) } reset() { let { done: e } = this; - this.done = !1, Yd.num(this._value) && (this.elapsedTime = 0, this.durationProgress = 0, this.lastPosition = this._value, e && (this.lastVelocity = null), this.v0 = null) + this.done = !1, xf.num(this._value) && (this.elapsedTime = 0, this.durationProgress = 0, this.lastPosition = this._value, e && (this.lastVelocity = null), this.v0 = null) } }, - vh = class extends gh { + Gm = class extends Bm { constructor(e) { - super(0), this._string = null, this._toString = Lp({ + super(0), this._string = null, this._toString = om({ output: [e, e] }) } static create(e) { - return new vh(e) + return new Gm(e) } getValue() { let e = this._string; return null == e ? this._string = this._toString(this._value) : e } setValue(e) { - if (Yd.str(e)) { + if (xf.str(e)) { if (e == this._string) return !1; this._string = e, this._value = 1 } else { @@ -31474,92 +33791,92 @@ return !0 } reset(e) { - e && (this._toString = Lp({ + e && (this._toString = om({ output: [this.getValue(), e] })), this._value = 0, super.reset() } }, - yh = { + $m = { dependencies: null }, - _h = class extends mh { + qm = class extends Um { constructor(e) { super(), this.source = e, this.setValue(e) } getValue(e) { let t = {}; - return Xd(this.source, ((n, r) => { - (e => !!e && e[dh] === e)(n) ? t[r] = n.getValue(e): Mp(n) ? t[r] = Fp(n) : e || (t[r] = n) + return Sf(this.source, ((n, r) => { + (e => !!e && e[Mm] === e)(n) ? t[r] = n.getValue(e): cm(n) ? t[r] = um(n) : e || (t[r] = n) })), t } setValue(e) { this.source = e, this.payload = this._makePayload(e) } reset() { - this.payload && Zd(this.payload, (e => e.reset())) + this.payload && kf(this.payload, (e => e.reset())) } _makePayload(e) { if (e) { let t = new Set; - return Xd(e, this._addToPayload, t), Array.from(t) + return Sf(e, this._addToPayload, t), Array.from(t) } } _addToPayload(e) { - yh.dependencies && Mp(e) && yh.dependencies.add(e); - let t = fh(e); - t && Zd(t, (e => this.add(e))) + $m.dependencies && cm(e) && $m.dependencies.add(e); + let t = Vm(e); + t && kf(t, (e => this.add(e))) } }, - bh = class extends _h { + Wm = class extends qm { constructor(e) { super(e) } static create(e) { - return new bh(e) + return new Wm(e) } getValue() { return this.source.map((e => e.getValue())) } setValue(e) { let t = this.getPayload(); - return e.length == t.length ? t.map(((t, n) => t.setValue(e[n]))).some(Boolean) : (super.setValue(e.map(xh)), !0) + return e.length == t.length ? t.map(((t, n) => t.setValue(e[n]))).some(Boolean) : (super.setValue(e.map(Hm)), !0) } }; - function xh(e) { - return (ah(e) ? vh : gh).create(e) + function Hm(e) { + return (Tm(e) ? Gm : Bm).create(e) } - function kh(e) { - let t = ph(e); - return t ? t.constructor : Yd.arr(e) ? bh : ah(e) ? vh : gh + function Km(e) { + let t = Fm(e); + return t ? t.constructor : xf.arr(e) ? Wm : Tm(e) ? Gm : Bm } - var wh = (e, t) => { - let n = !Yd.fun(e) || e.prototype && e.prototype.isReactComponent; + var Ym = (e, t) => { + let n = !xf.fun(e) || e.prototype && e.prototype.isReactComponent; return (0, Ee.forwardRef)(((r, i) => { let a = (0, Ee.useRef)(null), o = n && (0, Ee.useCallback)((e => { - a.current = (i && (Yd.fun(i) ? i(e) : i.current = e), e) + a.current = (i && (xf.fun(i) ? i(e) : i.current = e), e) }), [i]), [s, l] = function(e, t) { let n = new Set; - return yh.dependencies = n, e.style && (e = { + return $m.dependencies = n, e.style && (e = { ...e, style: t.createAnimatedStyle(e.style) - }), e = new _h(e), yh.dependencies = null, [e, n] + }), e = new qm(e), $m.dependencies = null, [e, n] }(r, t), - c = sh(), + c = Dm(), u = () => { let e = a.current; n && !e || !1 === (!!e && t.applyAnimatedValues(e, s.getValue(!0))) && c() }, - d = new Sh(u, l), + d = new Qm(u, l), p = (0, Ee.useRef)(); - oh((() => (p.current = d, Zd(l, (e => Gp(e, d))), () => { - p.current && (Zd(p.current.deps, (e => $p(e, p.current))), Td.cancel(p.current.update)) - }))), (0, Ee.useEffect)(u, []), lh((() => () => { + Rm((() => (p.current = d, kf(l, (e => mm(e, d))), () => { + p.current && (kf(p.current.deps, (e => gm(e, p.current))), nf.cancel(p.current.update)) + }))), (0, Ee.useEffect)(u, []), Lm((() => () => { let e = p.current; - Zd(e.deps, (t => $p(t, e))) + kf(e.deps, (t => gm(t, e))) })); let h = t.getComponentProps(s.getValue()); return Ee.createElement(e, { @@ -31568,36 +33885,36 @@ }) })) }, - Sh = class { + Qm = class { constructor(e, t) { this.update = e, this.deps = t } eventObserved(e) { - "change" == e.type && Td.write(this.update) + "change" == e.type && nf.write(this.update) } }, - Eh = Symbol.for("AnimatedComponent"), - Oh = e => Yd.str(e) ? e : e && Yd.str(e.displayName) ? e.displayName : Yd.fun(e) && e.name || null; + Zm = Symbol.for("AnimatedComponent"), + Xm = e => xf.str(e) ? e : e && xf.str(e.displayName) ? e.displayName : xf.fun(e) && e.name || null; - function Ih(e, ...t) { - return Yd.fun(e) ? e(...t) : e + function Jm(e, ...t) { + return xf.fun(e) ? e(...t) : e } - var Ch = (e, t) => !0 === e || !!(t && e && (Yd.fun(e) ? e(t) : Jd(e).includes(t))), - Ah = (e, t) => Yd.obj(e) ? t && e[t] : e, - Ph = (e, t) => !0 === e.default ? e[t] : e.default ? e.default[t] : void 0, - Th = e => e, - Rh = (e, t = Th) => { - let n = Dh; + var eg = (e, t) => !0 === e || !!(t && e && (xf.fun(e) ? e(t) : Ef(e).includes(t))), + tg = (e, t) => xf.obj(e) ? t && e[t] : e, + ng = (e, t) => !0 === e.default ? e[t] : e.default ? e.default[t] : void 0, + rg = e => e, + ig = (e, t = rg) => { + let n = ag; e.default && !0 !== e.default && (n = Object.keys(e = e.default)); let r = {}; for (let i of n) { let n = t(e[i], i); - Yd.und(n) || (r[i] = n) + xf.und(n) || (r[i] = n) } return r }, - Dh = ["config", "onProps", "onStart", "onChange", "onPause", "onResume", "onRest"], - Lh = { + ag = ["config", "onProps", "onStart", "onChange", "onPause", "onResume", "onRest"], + og = { config: 1, from: 1, to: 1, @@ -31632,49 +33949,49 @@ parentId: 1 }; - function Nh(e) { + function sg(e) { let t = function(e) { let t = {}, n = 0; - if (Xd(e, ((e, r) => { - !Lh[r] && (t[r] = e, n++) - })), n) return t + if (Sf(e, ((e, r) => { + !og[r] && (t[r] = e, n++) + })), n) return t }(e); if (t) { let n = { to: t }; - return Xd(e, ((e, r) => r in t || (n[r] = e))), n + return Sf(e, ((e, r) => r in t || (n[r] = e))), n } return { ...e } } - function jh(e) { - return e = Fp(e), Yd.arr(e) ? e.map(jh) : ah(e) ? Ad.createStringInterpolator({ + function lg(e) { + return e = um(e), xf.arr(e) ? e.map(lg) : Tm(e) ? ef.createStringInterpolator({ range: [0, 1], output: [e, e] })(1) : e } - function Mh(e) { + function cg(e) { for (let t in e) return !0; return !1 } - function Fh(e) { - return Yd.fun(e) || Yd.arr(e) && Yd.obj(e[0]) + function ug(e) { + return xf.fun(e) || xf.arr(e) && xf.obj(e[0]) } - function zh(e, t) { + function dg(e, t) { e.ref?.delete(e), t?.delete(e) } - function Vh(e, t) { + function pg(e, t) { t && e.ref !== t && (e.ref?.delete(e), t.add(e), e.ref = t) } - var Uh = { + var hg = { tension: 170, friction: 26, mass: 1, @@ -31683,15 +34000,15 @@ clamp: !1 }; - function Bh(e, t) { - if (Yd.und(t.decay)) { - let n = !Yd.und(t.tension) || !Yd.und(t.friction); - !n && Yd.und(t.frequency) && Yd.und(t.damping) && Yd.und(t.mass) || (e.duration = void 0, e.decay = void 0), n && (e.frequency = void 0) + function fg(e, t) { + if (xf.und(t.decay)) { + let n = !xf.und(t.tension) || !xf.und(t.friction); + !n && xf.und(t.frequency) && xf.und(t.damping) && xf.und(t.mass) || (e.duration = void 0, e.decay = void 0), n && (e.frequency = void 0) } else e.duration = void 0 } - var Gh = []; + var mg = []; - function $h(e, { + function gg(e, { key: t, props: n, defaultProps: r, @@ -31699,20 +34016,20 @@ actions: a }) { return new Promise(((o, s) => { - let l, c, u = Ch(n.cancel ?? r?.cancel, t); + let l, c, u = eg(n.cancel ?? r?.cancel, t); if (u) h(); else { - Yd.und(n.pause) || (i.paused = Ch(n.pause, t)); + xf.und(n.pause) || (i.paused = eg(n.pause, t)); let e = r?.pause; - !0 !== e && (e = i.paused || Ch(e, t)), l = Ih(n.delay || 0, t), e ? (i.resumeQueue.add(p), a.pause()) : (a.resume(), p()) + !0 !== e && (e = i.paused || eg(e, t)), l = Jm(n.delay || 0, t), e ? (i.resumeQueue.add(p), a.pause()) : (a.resume(), p()) } function d() { - i.resumeQueue.add(p), i.timeouts.delete(c), c.cancel(), l = c.time - Td.now() + i.resumeQueue.add(p), i.timeouts.delete(c), c.cancel(), l = c.time - nf.now() } function p() { - l > 0 && !Ad.skipAnimation ? (i.delayed = !0, c = Td.setTimeout(h, l), i.pauseQueue.add(d), i.timeouts.add(c)) : h() + l > 0 && !ef.skipAnimation ? (i.delayed = !0, c = nf.setTimeout(h, l), i.pauseQueue.add(d), i.timeouts.add(c)) : h() } function h() { @@ -31729,25 +34046,25 @@ } })) } - var qh = (e, t) => 1 == t.length ? t[0] : t.some((e => e.cancelled)) ? Kh(e.get()) : t.every((e => e.noop)) ? Wh(e.get()) : Hh(e.get(), t.every((e => e.finished))), - Wh = e => ({ + var vg = (e, t) => 1 == t.length ? t[0] : t.some((e => e.cancelled)) ? bg(e.get()) : t.every((e => e.noop)) ? yg(e.get()) : _g(e.get(), t.every((e => e.finished))), + yg = e => ({ value: e, noop: !0, finished: !0, cancelled: !1 }), - Hh = (e, t, n = !1) => ({ + _g = (e, t, n = !1) => ({ value: e, finished: t, cancelled: n }), - Kh = e => ({ + bg = e => ({ value: e, cancelled: !0, finished: !1 }); - function Yh(e, t, n, r) { + function xg(e, t, n, r) { let { callId: i, parentId: a, @@ -31759,26 +34076,26 @@ return a || e !== s || t.reset ? n.promise = (async () => { let c, u, d; n.asyncId = i, n.asyncTo = e; - let p = Rh(t, ((e, t) => "onRest" === t ? void 0 : e)), + let p = ig(t, ((e, t) => "onRest" === t ? void 0 : e)), h = new Promise(((e, t) => (c = e, u = t))), f = e => { - let t = i <= (n.cancelId || 0) && Kh(r) || i !== n.asyncId && Hh(r, !1); + let t = i <= (n.cancelId || 0) && bg(r) || i !== n.asyncId && _g(r, !1); if (t) throw e.result = t, u(e), e }, m = (e, t) => { - let a = new Zh, - o = new Xh; + let a = new kg, + o = new Sg; return (async () => { - if (Ad.skipAnimation) throw Qh(n), o.result = Hh(r, !1), u(o), o; + if (ef.skipAnimation) throw wg(n), o.result = _g(r, !1), u(o), o; f(a); - let s = Yd.obj(e) ? { + let s = xf.obj(e) ? { ...e } : { ...t, to: e }; - s.parentId = i, Xd(p, ((e, t) => { - Yd.und(s[t]) && (s[t] = e) + s.parentId = i, Sf(p, ((e, t) => { + xf.und(s[t]) && (s[t] = e) })); let l = await r.start(s); return f(a), n.paused && await new Promise((e => { @@ -31786,45 +34103,45 @@ })), l })() }; - if (Ad.skipAnimation) return Qh(n), Hh(r, !1); + if (ef.skipAnimation) return wg(n), _g(r, !1); try { let t; - t = Yd.arr(e) ? (async e => { + t = xf.arr(e) ? (async e => { for (let t of e) await m(t) - })(e) : Promise.resolve(e(m, r.stop.bind(r))), await Promise.all([t.then(c), h]), d = Hh(r.get(), !0, !1) + })(e) : Promise.resolve(e(m, r.stop.bind(r))), await Promise.all([t.then(c), h]), d = _g(r.get(), !0, !1) } catch (e) { - if (e instanceof Zh) d = e.result; + if (e instanceof kg) d = e.result; else { - if (!(e instanceof Xh)) throw e; + if (!(e instanceof Sg)) throw e; d = e.result } } finally { i == n.asyncId && (n.asyncId = a, n.asyncTo = a ? s : void 0, n.promise = a ? l : void 0) } - return Yd.fun(o) && Td.batchedUpdates((() => { + return xf.fun(o) && nf.batchedUpdates((() => { o(d, r, r.item) })), d })() : l } - function Qh(e, t) { - ep(e.timeouts, (e => e.cancel())), e.pauseQueue.clear(), e.resumeQueue.clear(), e.asyncId = e.asyncTo = e.promise = void 0, t && (e.cancelId = t) + function wg(e, t) { + Of(e.timeouts, (e => e.cancel())), e.pauseQueue.clear(), e.resumeQueue.clear(), e.asyncId = e.asyncTo = e.promise = void 0, t && (e.cancelId = t) } - var Zh = class extends Error { + var kg = class extends Error { constructor() { super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.") } }, - Xh = class extends Error { + Sg = class extends Error { constructor() { super("SkipAnimationSignal") } }, - Jh = e => e instanceof tf, - ef = 1, - tf = class extends Up { + Eg = e => e instanceof Ig, + Og = 1, + Ig = class extends hm { constructor() { - super(...arguments), this.id = ef++, this._priority = 0 + super(...arguments), this.id = Og++, this._priority = 0 } get priority() { return this._priority @@ -31833,14 +34150,14 @@ this._priority != e && (this._priority = e, this._onPriorityChange(e)) } get() { - let e = ph(this); + let e = Fm(this); return e && e.getValue() } to(...e) { - return Ad.to(this, e) + return ef.to(this, e) } interpolate(...e) { - return rh(`${th}The "interpolate" function is deprecated in v9 (use "to" instead)`), Ad.to(this, e) + return Am(`${Im}The "interpolate" function is deprecated in v9 (use "to" instead)`), ef.to(this, e) } toJSON() { return this.get() @@ -31854,7 +34171,7 @@ _attach() {} _detach() {} _onChange(e, t = !1) { - Vp(this, { + pm(this, { type: "change", parent: this, value: e, @@ -31862,63 +34179,63 @@ }) } _onPriorityChange(e) { - this.idle || dp.sort(this), Vp(this, { + this.idle || Mf.sort(this), pm(this, { type: "priority", parent: this, priority: e }) } }, - nf = Symbol.for("SpringPhase"), - rf = e => (1 & e[nf]) > 0, - af = e => (2 & e[nf]) > 0, - of = e => (4 & e[nf]) > 0, - sf = (e, t) => t ? e[nf] |= 3 : e[nf] &= -3, - lf = (e, t) => t ? e[nf] |= 4 : e[nf] &= -5, - cf = class extends tf { + Cg = Symbol.for("SpringPhase"), + Ag = e => (1 & e[Cg]) > 0, + Pg = e => (2 & e[Cg]) > 0, + Tg = e => (4 & e[Cg]) > 0, + Rg = (e, t) => t ? e[Cg] |= 3 : e[Cg] &= -3, + Dg = (e, t) => t ? e[Cg] |= 4 : e[Cg] &= -5, + Lg = class extends Ig { constructor(e, t) { if (super(), this.animation = new class { - constructor() { - this.changed = !1, this.values = Gh, this.toValues = null, this.fromValues = Gh, this.config = new class { - constructor() { - this.velocity = 0, Object.assign(this, Uh) - } - }, this.immediate = !1 - } - }, this.defaultProps = {}, this._state = { - paused: !1, - delayed: !1, - pauseQueue: new Set, - resumeQueue: new Set, - timeouts: new Set - }, this._pendingCalls = new Set, this._lastCallId = 0, this._lastToId = 0, this._memoizedDuration = 0, !Yd.und(e) || !Yd.und(t)) { - let n = Yd.obj(e) ? { + constructor() { + this.changed = !1, this.values = mg, this.toValues = null, this.fromValues = mg, this.config = new class { + constructor() { + this.velocity = 0, Object.assign(this, hg) + } + }, this.immediate = !1 + } + }, this.defaultProps = {}, this._state = { + paused: !1, + delayed: !1, + pauseQueue: new Set, + resumeQueue: new Set, + timeouts: new Set + }, this._pendingCalls = new Set, this._lastCallId = 0, this._lastToId = 0, this._memoizedDuration = 0, !xf.und(e) || !xf.und(t)) { + let n = xf.obj(e) ? { ...e } : { ...t, from: e }; - Yd.und(n.default) && (n.default = !0), this.start(n) + xf.und(n.default) && (n.default = !0), this.start(n) } } get idle() { - return !(af(this) || this._state.asyncTo) || of(this) + return !(Pg(this) || this._state.asyncTo) || Tg(this) } get goal() { - return Fp(this.animation.to) + return um(this.animation.to) } get velocity() { - let e = ph(this); - return e instanceof gh ? e.lastVelocity || 0 : e.getPayload().map((e => e.lastVelocity || 0)) + let e = Fm(this); + return e instanceof Bm ? e.lastVelocity || 0 : e.getPayload().map((e => e.lastVelocity || 0)) } get hasAnimated() { - return rf(this) + return Ag(this) } get isAnimating() { - return af(this) + return Pg(this) } get isPaused() { - return of(this) + return Tg(this) } get isDelayed() { return this._state.delayed @@ -31933,10 +34250,10 @@ { config: a } = r, - o = fh(r.to); - !o && Mp(r.to) && (i = Jd(Fp(r.to))), r.values.forEach(((s, l) => { + o = Vm(r.to); + !o && cm(r.to) && (i = Ef(um(r.to))), r.values.forEach(((s, l) => { if (s.done) return; - let c = s.constructor == vh ? 1 : o ? o[l].lastPosition : i[l], + let c = s.constructor == Gm ? 1 : o ? o[l].lastPosition : i[l], u = r.immediate, d = c; if (!u) { @@ -31944,9 +34261,9 @@ if (d = s.lastPosition, a.tension <= 0) return void(s.done = !0); let n = s.elapsedTime += e, i = r.fromValues[l], - o = null != s.v0 ? s.v0 : s.v0 = Yd.arr(a.velocity) ? a.velocity[l] : a.velocity, + o = null != s.v0 ? s.v0 : s.v0 = xf.arr(a.velocity) ? a.velocity[l] : a.velocity, p = a.precision || (i == c ? .005 : Math.min(1, .001 * Math.abs(c - i))); - if (Yd.und(a.duration)) + if (xf.und(a.duration)) if (a.decay) { let e = !0 === a.decay ? .998 : a.decay, r = Math.exp(-(1 - e) * n); @@ -31955,7 +34272,7 @@ t = null == s.lastVelocity ? o : s.lastVelocity; let n = a.restVelocity || p / 10, r = a.clamp ? 0 : a.bounce, - l = !Yd.und(r), + l = !xf.und(r), h = i == c ? s.v0 > 0 : i < c, f = Math.ceil(e / 1); for (let e = 0; e < f && (Math.abs(t) > n || !(u = Math.abs(c - d) <= p)); ++e) { @@ -31970,15 +34287,15 @@ } o && !o[l].done && (u = !1), u ? s.done = !0 : t = !1, s.setValue(d, a.round) && (n = !0) })); - let s = ph(this), + let s = Fm(this), l = s.getValue(); if (t) { - let e = Fp(r.to); + let e = um(r.to); l === e && !n || a.decay ? n && a.decay && this._onChange(l) : (s.setValue(e), this._onChange(e)), this._stop() } else n && this._onChange(l) } set(e) { - return Td.batchedUpdates((() => { + return nf.batchedUpdates((() => { this._stop(), this._focus(e), this._set(e) })), this } @@ -31993,12 +34310,12 @@ }) } finish() { - if (af(this)) { + if (Pg(this)) { let { to: e, config: t } = this.animation; - Td.batchedUpdates((() => { + nf.batchedUpdates((() => { this._onStart(), t.decay || this._set(e, !1), this._stop() })) } @@ -32009,16 +34326,16 @@ } start(e, t) { let n; - return Yd.und(e) ? (n = this.queue || [], this.queue = []) : n = [Yd.obj(e) ? e : { + return xf.und(e) ? (n = this.queue || [], this.queue = []) : n = [xf.obj(e) ? e : { ...t, to: e - }], Promise.all(n.map((e => this._update(e)))).then((e => qh(this, e))) + }], Promise.all(n.map((e => this._update(e)))).then((e => vg(this, e))) } stop(e) { let { to: t } = this.animation; - return this._focus(this.get()), Qh(this._state, e && this._lastCallId), Td.batchedUpdates((() => this._stop(t, e))), this + return this._focus(this.get()), wg(this._state, e && this._lastCallId), nf.batchedUpdates((() => this._stop(t, e))), this } reset() { this._update({ @@ -32034,52 +34351,52 @@ to: n, from: r } = e; - (null == (n = Yd.obj(n) ? n[t] : n) || Fh(n)) && (n = void 0), null == (r = Yd.obj(r) ? r[t] : r) && (r = void 0); + (null == (n = xf.obj(n) ? n[t] : n) || ug(n)) && (n = void 0), null == (r = xf.obj(r) ? r[t] : r) && (r = void 0); let i = { to: n, from: r }; - return rf(this) || (e.reverse && ([n, r] = [r, n]), r = Fp(r), Yd.und(r) ? ph(this) || this._set(n) : this._set(r)), i + return Ag(this) || (e.reverse && ([n, r] = [r, n]), r = um(r), xf.und(r) ? Fm(this) || this._set(n) : this._set(r)), i } _update({ - ...e - }, t) { + ...e + }, t) { let { key: n, defaultProps: r } = this; - e.default && Object.assign(r, Rh(e, ((e, t) => /^on/.test(t) ? Ah(e, n) : e))), mf(this, e, "onProps"), gf(this, "onProps", e, this); + e.default && Object.assign(r, ig(e, ((e, t) => /^on/.test(t) ? tg(e, n) : e))), Vg(this, e, "onProps"), Ug(this, "onProps", e, this); let i = this._prepareNode(e); if (Object.isFrozen(this)) throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?"); let a = this._state; - return $h(++this._lastCallId, { + return gg(++this._lastCallId, { key: n, props: e, defaultProps: r, state: a, actions: { pause: () => { - of(this) || (lf(this, !0), tp(a.pauseQueue), gf(this, "onPause", Hh(this, uf(this, this.animation.to)), this)) + Tg(this) || (Dg(this, !0), If(a.pauseQueue), Ug(this, "onPause", _g(this, Ng(this, this.animation.to)), this)) }, resume: () => { - of(this) && (lf(this, !1), af(this) && this._resume(), tp(a.resumeQueue), gf(this, "onResume", Hh(this, uf(this, this.animation.to)), this)) + Tg(this) && (Dg(this, !1), Pg(this) && this._resume(), If(a.resumeQueue), Ug(this, "onResume", _g(this, Ng(this, this.animation.to)), this)) }, start: this._merge.bind(this, i) } }).then((n => { if (e.loop && n.finished && (!t || !n.noop)) { - let t = df(e); + let t = jg(e); if (t) return this._update(t, !0) } return n })) } _merge(e, t, n) { - if (t.cancel) return this.stop(!0), n(Kh(this)); - let r = !Yd.und(e.to), - i = !Yd.und(e.from); + if (t.cancel) return this.stop(!0), n(bg(this)); + let r = !xf.und(e.to), + i = !xf.und(e.from); if (r || i) { - if (!(t.callId > this._lastToId)) return n(Kh(this)); + if (!(t.callId > this._lastToId)) return n(bg(this)); this._lastToId = t.callId } let { @@ -32093,12 +34410,12 @@ to: u = l, from: d = c } = e; - i && !r && (!t.default || Yd.und(u)) && (u = d), t.reverse && ([u, d] = [d, u]); - let p = !Qd(d, c); - p && (s.from = d), d = Fp(d); - let h = !Qd(u, l); + i && !r && (!t.default || xf.und(u)) && (u = d), t.reverse && ([u, d] = [d, u]); + let p = !wf(d, c); + p && (s.from = d), d = um(d); + let h = !wf(u, l); h && this._focus(u); - let f = Fh(t.to), + let f = ug(t.to), { config: m } = s, @@ -32107,130 +34424,130 @@ velocity: v } = m; (r || i) && (m.velocity = 0), t.config && !f && function(e, t, n) { - for (let o in n && (Bh(n = { - ...n - }, t), t = { - ...n, - ...t - }), Bh(e, t), Object.assign(e, t), Uh) null == e[o] && (e[o] = Uh[o]); + for (let o in n && (fg(n = { + ...n + }, t), t = { + ...n, + ...t + }), fg(e, t), Object.assign(e, t), hg) null == e[o] && (e[o] = hg[o]); let { frequency: r, damping: i } = e, { mass: a } = e; - Yd.und(r) || (r < .01 && (r = .01), i < 0 && (i = 0), e.tension = Math.pow(2 * Math.PI / r, 2) * a, e.friction = 4 * Math.PI * i * a / r) - }(m, Ih(t.config, a), t.config !== o.config ? Ih(o.config, a) : void 0); - let y = ph(this); - if (!y || Yd.und(u)) return n(Hh(this, !0)); - let _ = Yd.und(t.reset) ? i && !t.default : !Yd.und(d) && Ch(t.reset, a), + xf.und(r) || (r < .01 && (r = .01), i < 0 && (i = 0), e.tension = Math.pow(2 * Math.PI / r, 2) * a, e.friction = 4 * Math.PI * i * a / r) + }(m, Jm(t.config, a), t.config !== o.config ? Jm(o.config, a) : void 0); + let y = Fm(this); + if (!y || xf.und(u)) return n(_g(this, !0)); + let _ = xf.und(t.reset) ? i && !t.default : !xf.und(d) && eg(t.reset, a), b = _ ? d : this.get(), - x = jh(u), - k = Yd.num(x) || Yd.arr(x) || ah(x), - w = !f && (!k || Ch(o.immediate || t.immediate, a)); + x = lg(u), + w = xf.num(x) || xf.arr(x) || Tm(x), + k = !f && (!w || eg(o.immediate || t.immediate, a)); if (h) { - let e = kh(u); + let e = Km(u); if (e !== y.constructor) { - if (!w) throw Error(`Cannot animate between ${y.constructor.name} and ${e.name}, as the "to" prop suggests`); + if (!k) throw Error(`Cannot animate between ${y.constructor.name} and ${e.name}, as the "to" prop suggests`); y = this._set(x) } } let S = y.constructor, - E = Mp(u), + E = cm(u), O = !1; if (!E) { - let e = _ || !rf(this) && p; - (h || e) && (E = !(O = Qd(jh(b), x))), (Qd(s.immediate, w) || w) && Qd(m.decay, g) && Qd(m.velocity, v) || (E = !0) + let e = _ || !Ag(this) && p; + (h || e) && (E = !(O = wf(lg(b), x))), (wf(s.immediate, k) || k) && wf(m.decay, g) && wf(m.velocity, v) || (E = !0) } - if (O && af(this) && (s.changed && !_ ? E = !0 : E || this._stop(l)), !f && ((E || Mp(l)) && (s.values = y.getPayload(), s.toValues = Mp(u) ? null : S == vh ? [1] : Jd(x)), s.immediate == w || (s.immediate = w, w || _ || this._set(l)), E)) { + if (O && Pg(this) && (s.changed && !_ ? E = !0 : E || this._stop(l)), !f && ((E || cm(l)) && (s.values = y.getPayload(), s.toValues = cm(u) ? null : S == Gm ? [1] : Ef(x)), s.immediate == k || (s.immediate = k, k || _ || this._set(l)), E)) { let { onRest: e } = s; - Zd(ff, (e => mf(this, t, e))); - let r = Hh(this, uf(this, l)); - tp(this._pendingCalls, r), this._pendingCalls.add(n), s.changed && Td.batchedUpdates((() => { - s.changed = !_, e?.(r, this), _ ? Ih(o.onRest, r) : s.onStart?.(r, this) + kf(zg, (e => Vg(this, t, e))); + let r = _g(this, Ng(this, l)); + If(this._pendingCalls, r), this._pendingCalls.add(n), s.changed && nf.batchedUpdates((() => { + s.changed = !_, e?.(r, this), _ ? Jm(o.onRest, r) : s.onStart?.(r, this) })) } - _ && this._set(b), f ? n(Yh(t.to, t, this._state, this)) : E ? this._start() : af(this) && !h ? this._pendingCalls.add(n) : n(Wh(b)) + _ && this._set(b), f ? n(xg(t.to, t, this._state, this)) : E ? this._start() : Pg(this) && !h ? this._pendingCalls.add(n) : n(yg(b)) } _focus(e) { let t = this.animation; - e !== t.to && (zp(this) && this._detach(), t.to = e, zp(this) && this._attach()) + e !== t.to && (dm(this) && this._detach(), t.to = e, dm(this) && this._attach()) } _attach() { let e = 0, { to: t } = this.animation; - Mp(t) && (Gp(t, this), Jh(t) && (e = t.priority + 1)), this.priority = e + cm(t) && (mm(t, this), Eg(t) && (e = t.priority + 1)), this.priority = e } _detach() { let { to: e } = this.animation; - Mp(e) && $p(e, this) + cm(e) && gm(e, this) } _set(e, t = !0) { - let n = Fp(e); - if (!Yd.und(n)) { - let e = ph(this); - if (!e || !Qd(n, e.getValue())) { - let r = kh(n); - e && e.constructor == r ? e.setValue(n) : hh(this, r.create(n)), e && Td.batchedUpdates((() => { + let n = um(e); + if (!xf.und(n)) { + let e = Fm(this); + if (!e || !wf(n, e.getValue())) { + let r = Km(n); + e && e.constructor == r ? e.setValue(n) : zm(this, r.create(n)), e && nf.batchedUpdates((() => { this._onChange(n, t) })) } } - return ph(this) + return Fm(this) } _onStart() { let e = this.animation; - e.changed || (e.changed = !0, gf(this, "onStart", Hh(this, uf(this, e.to)), this)) + e.changed || (e.changed = !0, Ug(this, "onStart", _g(this, Ng(this, e.to)), this)) } _onChange(e, t) { - t || (this._onStart(), Ih(this.animation.onChange, e, this)), Ih(this.defaultProps.onChange, e, this), super._onChange(e, t) + t || (this._onStart(), Jm(this.animation.onChange, e, this)), Jm(this.defaultProps.onChange, e, this), super._onChange(e, t) } _start() { let e = this.animation; - ph(this).reset(Fp(e.to)), e.immediate || (e.fromValues = e.values.map((e => e.lastPosition))), af(this) || (sf(this, !0), of(this) || this._resume()) + Fm(this).reset(um(e.to)), e.immediate || (e.fromValues = e.values.map((e => e.lastPosition))), Pg(this) || (Rg(this, !0), Tg(this) || this._resume()) } _resume() { - Ad.skipAnimation ? this.finish() : dp.start(this) + ef.skipAnimation ? this.finish() : Mf.start(this) } _stop(e, t) { - if (af(this)) { - sf(this, !1); + if (Pg(this)) { + Rg(this, !1); let n = this.animation; - Zd(n.values, (e => { + kf(n.values, (e => { e.done = !0 - })), n.toValues && (n.onChange = n.onPause = n.onResume = void 0), Vp(this, { + })), n.toValues && (n.onChange = n.onPause = n.onResume = void 0), pm(this, { type: "idle", parent: this }); - let r = t ? Kh(this.get()) : Hh(this.get(), uf(this, e ?? n.to)); - tp(this._pendingCalls, r), n.changed && (n.changed = !1, gf(this, "onRest", r, this)) + let r = t ? bg(this.get()) : _g(this.get(), Ng(this, e ?? n.to)); + If(this._pendingCalls, r), n.changed && (n.changed = !1, Ug(this, "onRest", r, this)) } } }; - function uf(e, t) { - let n = jh(t); - return Qd(jh(e.get()), n) + function Ng(e, t) { + let n = lg(t); + return wf(lg(e.get()), n) } - function df(e, t = e.loop, n = e.to) { - let r = Ih(t); + function jg(e, t = e.loop, n = e.to) { + let r = Jm(t); if (r) { - let i = !0 !== r && Nh(r), + let i = !0 !== r && sg(r), a = (i || e).reverse, o = !i || i.reset; - return pf({ + return Mg({ ...e, loop: t, default: !1, pause: void 0, - to: !a || Fh(n) ? n : void 0, + to: !a || ug(n) ? n : void 0, from: o ? e.from : void 0, reset: o, ...i @@ -32238,31 +34555,31 @@ } } - function pf(e) { + function Mg(e) { let { to: t, from: n - } = e = Nh(e), r = new Set; - return Yd.obj(t) && hf(t, r), Yd.obj(n) && hf(n, r), e.keys = r.size ? Array.from(r) : null, e + } = e = sg(e), r = new Set; + return xf.obj(t) && Fg(t, r), xf.obj(n) && Fg(n, r), e.keys = r.size ? Array.from(r) : null, e } - function hf(e, t) { - Xd(e, ((e, n) => null != e && t.add(n))) + function Fg(e, t) { + Sf(e, ((e, n) => null != e && t.add(n))) } - var ff = ["onStart", "onRest", "onChange", "onPause", "onResume"]; + var zg = ["onStart", "onRest", "onChange", "onPause", "onResume"]; - function mf(e, t, n) { - e.animation[n] = t[n] !== Ph(t, n) ? Ah(t[n], e.key) : void 0 + function Vg(e, t, n) { + e.animation[n] = t[n] !== ng(t, n) ? tg(t[n], e.key) : void 0 } - function gf(e, t, ...n) { + function Ug(e, t, ...n) { e.animation[t]?.(...n), e.defaultProps[t]?.(...n) } - var vf = ["onStart", "onChange", "onRest"], - yf = 1, - _f = class { + var Bg = ["onStart", "onChange", "onRest"], + Gg = 1, + $g = class { constructor(e, t) { - this.id = yf++, this.springs = {}, this.queue = [], this._lastAsyncId = 0, this._active = new Set, this._changed = new Set, this._started = !1, this._state = { + this.id = Gg++, this.springs = {}, this.queue = [], this._lastAsyncId = 0, this._active = new Set, this._changed = new Set, this._started = !1, this._state = { paused: !1, pauseQueue: new Set, resumeQueue: new Set, @@ -32292,47 +34609,47 @@ set(e) { for (let t in e) { let n = e[t]; - Yd.und(n) || this.springs[t].set(n) + xf.und(n) || this.springs[t].set(n) } } update(e) { - return e && this.queue.push(pf(e)), this + return e && this.queue.push(Mg(e)), this } start(e) { let { queue: t } = this; - return e ? t = Jd(e).map(pf) : this.queue = [], this._flush ? this._flush(this, t) : (Of(this, t), bf(this, t)) + return e ? t = Ef(e).map(Mg) : this.queue = [], this._flush ? this._flush(this, t) : (Zg(this, t), qg(this, t)) } stop(e, t) { if (!!e !== e && (t = e), t) { let n = this.springs; - Zd(Jd(t), (t => n[t].stop(!!e))) - } else Qh(this._state, this._lastAsyncId), this.each((t => t.stop(!!e))); + kf(Ef(t), (t => n[t].stop(!!e))) + } else wg(this._state, this._lastAsyncId), this.each((t => t.stop(!!e))); return this } pause(e) { - if (Yd.und(e)) this.start({ + if (xf.und(e)) this.start({ pause: !0 }); else { let t = this.springs; - Zd(Jd(e), (e => t[e].pause())) + kf(Ef(e), (e => t[e].pause())) } return this } resume(e) { - if (Yd.und(e)) this.start({ + if (xf.und(e)) this.start({ pause: !1 }); else { let t = this.springs; - Zd(Jd(e), (e => t[e].resume())) + kf(Ef(e), (e => t[e].resume())) } return this } each(e) { - Xd(this.springs, e) + Sf(this.springs, e) } _onFrame() { let { @@ -32340,14 +34657,14 @@ onChange: t, onRest: n } = this._events, r = this._active.size > 0, i = this._changed.size > 0; - (r && !this._started || i && !this._started) && (this._started = !0, ep(e, (([e, t]) => { + (r && !this._started || i && !this._started) && (this._started = !0, Of(e, (([e, t]) => { t.value = this.get(), e(t, this, this._item) }))); let a = !r && this._started, o = i || a && n.size ? this.get() : null; - i && t.size && ep(t, (([e, t]) => { + i && t.size && Of(t, (([e, t]) => { t.value = o, e(t, this, this._item) - })), a && (this._started = !1, ep(n, (([e, t]) => { + })), a && (this._started = !1, Of(n, (([e, t]) => { t.value = o, e(t, this, this._item) }))) } @@ -32357,14 +34674,14 @@ if ("idle" != e.type) return; this._active.delete(e.parent) } - Td.onFrame(this._onFrame) + nf.onFrame(this._onFrame) } }; - function bf(e, t) { - return Promise.all(t.map((t => xf(e, t)))).then((t => qh(e, t))) + function qg(e, t) { + return Promise.all(t.map((t => Wg(e, t)))).then((t => vg(e, t))) } - async function xf(e, t, n) { + async function Wg(e, t, n) { let { keys: r, to: i, @@ -32372,17 +34689,17 @@ loop: o, onRest: s, onResolve: l - } = t, c = Yd.obj(t.default) && t.default; + } = t, c = xf.obj(t.default) && t.default; o && (t.loop = !1), !1 === i && (t.to = null), !1 === a && (t.from = null); - let u = Yd.arr(i) || Yd.fun(i) ? i : void 0; - u ? (t.to = void 0, t.onRest = void 0, c && (c.onRest = void 0)) : Zd(vf, (n => { + let u = xf.arr(i) || xf.fun(i) ? i : void 0; + u ? (t.to = void 0, t.onRest = void 0, c && (c.onRest = void 0)) : kf(Bg, (n => { let r = t[n]; - if (Yd.fun(r)) { + if (xf.fun(r)) { let i = e._events[n]; t[n] = ({ - finished: e, - cancelled: t - }) => { + finished: e, + cancelled: t + }) => { let n = i.get(r); n ? (e || (n.finished = !1), t && (n.cancelled = !0)) : i.set(r, { value: null, @@ -32393,69 +34710,69 @@ } })); let d = e._state; - !d.paused === t.pause ? (d.paused = t.pause, tp(t.pause ? d.pauseQueue : d.resumeQueue)) : d.paused && (t.pause = !0); + !d.paused === t.pause ? (d.paused = t.pause, If(t.pause ? d.pauseQueue : d.resumeQueue)) : d.paused && (t.pause = !0); let p = (r || Object.keys(e.springs)).map((n => e.springs[n].start(t))), - h = !0 === t.cancel || !0 === Ph(t, "cancel"); - (u || h && d.asyncId) && p.push($h(++e._lastAsyncId, { + h = !0 === t.cancel || !0 === ng(t, "cancel"); + (u || h && d.asyncId) && p.push(gg(++e._lastAsyncId, { props: t, state: d, actions: { - pause: Kd, - resume: Kd, + pause: bf, + resume: bf, start(t, n) { - h ? (Qh(d, e._lastAsyncId), n(Kh(e))) : (t.onRest = s, n(Yh(u, t, d, e))) + h ? (wg(d, e._lastAsyncId), n(bg(e))) : (t.onRest = s, n(xg(u, t, d, e))) } } })), d.paused && await new Promise((e => { d.resumeQueue.add(e) })); - let f = qh(e, await Promise.all(p)); + let f = vg(e, await Promise.all(p)); if (o && f.finished && (!n || !f.noop)) { - let n = df(t, o, i); - if (n) return Of(e, [n]), xf(e, n, !0) + let n = jg(t, o, i); + if (n) return Zg(e, [n]), Wg(e, n, !0) } - return l && Td.batchedUpdates((() => l(f, e, e.item))), f + return l && nf.batchedUpdates((() => l(f, e, e.item))), f } - function kf(e, t) { + function Hg(e, t) { let n = { ...e.springs }; - return t && Zd(Jd(t), (e => { - Yd.und(e.keys) && (e = pf(e)), Yd.obj(e.to) || (e = { + return t && kf(Ef(t), (e => { + xf.und(e.keys) && (e = Mg(e)), xf.obj(e.to) || (e = { ...e, to: void 0 - }), Ef(n, e, (e => Sf(e))) - })), wf(e, n), n + }), Qg(n, e, (e => Yg(e))) + })), Kg(e, n), n } - function wf(e, t) { - Xd(t, ((t, n) => { - e.springs[n] || (e.springs[n] = t, Gp(t, e)) + function Kg(e, t) { + Sf(t, ((t, n) => { + e.springs[n] || (e.springs[n] = t, mm(t, e)) })) } - function Sf(e, t) { - let n = new cf; - return n.key = e, t && Gp(n, t), n + function Yg(e, t) { + let n = new Lg; + return n.key = e, t && mm(n, t), n } - function Ef(e, t, n) { - t.keys && Zd(t.keys, (r => { + function Qg(e, t, n) { + t.keys && kf(t.keys, (r => { (e[r] || (e[r] = n(r)))._prepareNode(t) })) } - function Of(e, t) { - Zd(t, (t => { - Ef(e.springs, t, (t => Sf(t, e))) + function Zg(e, t) { + kf(t, (t => { + Qg(e.springs, t, (t => Yg(t, e))) })) } - var If = ({ - children: e, - ...t - }) => { - let n = (0, Ee.useContext)(Cf), + var Xg = ({ + children: e, + ...t + }) => { + let n = (0, Ee.useContext)(Jg), r = t.pause || !!n.pause, i = t.immediate || !!n.immediate; t = function(e, t) { @@ -32484,20 +34801,20 @@ })), [r, i]); let { Provider: a - } = Cf; + } = Jg; return Ee.createElement(a, { value: t }, e) }, - Cf = (Object.assign(If, Ee.createContext({})), If.Provider._context = If, If.Consumer._context = If, If); - If.Provider = Cf.Provider, If.Consumer = Cf.Consumer; - var Af = () => { + Jg = (Object.assign(Xg, Ee.createContext({})), Xg.Provider._context = Xg, Xg.Consumer._context = Xg, Xg); + Xg.Provider = Jg.Provider, Xg.Consumer = Jg.Consumer; + var ev = () => { let e = [], t = function(t) { - ih(`${th}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`); + Pm(`${Im}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`); let r = []; - return Zd(e, ((e, i) => { - if (Yd.und(t)) r.push(e.start()); + return kf(e, ((e, i) => { + if (xf.und(t)) r.push(e.start()); else { let a = n(t, e, i); a && r.push(e.start(a)) @@ -32510,95 +34827,95 @@ let n = e.indexOf(t); ~n && e.splice(n, 1) }, t.pause = function() { - return Zd(e, (e => e.pause(...arguments))), this + return kf(e, (e => e.pause(...arguments))), this }, t.resume = function() { - return Zd(e, (e => e.resume(...arguments))), this + return kf(e, (e => e.resume(...arguments))), this }, t.set = function(t) { - Zd(e, ((e, n) => { - let r = Yd.fun(t) ? t(n, e) : t; + kf(e, ((e, n) => { + let r = xf.fun(t) ? t(n, e) : t; r && e.set(r) })) }, t.start = function(t) { let n = []; - return Zd(e, ((e, r) => { - if (Yd.und(t)) n.push(e.start()); + return kf(e, ((e, r) => { + if (xf.und(t)) n.push(e.start()); else { let i = this._getProps(t, e, r); i && n.push(e.start(i)) } })), n }, t.stop = function() { - return Zd(e, (e => e.stop(...arguments))), this + return kf(e, (e => e.stop(...arguments))), this }, t.update = function(t) { - return Zd(e, ((e, n) => e.update(this._getProps(t, e, n)))), this + return kf(e, ((e, n) => e.update(this._getProps(t, e, n)))), this }; let n = function(e, t, n) { - return Yd.fun(e) ? e(n, t) : e + return xf.fun(e) ? e(n, t) : e }; return t._getProps = n, t }; - function Pf(e, t) { - let n = Yd.fun(e), + function tv(e, t) { + let n = xf.fun(e), [ [r], i ] = function(e, t, n) { - let r = Yd.fun(t) && t; + let r = xf.fun(t) && t; r && !n && (n = []); - let i = (0, Ee.useMemo)((() => r || 3 == arguments.length ? Af() : void 0), []), + let i = (0, Ee.useMemo)((() => r || 3 == arguments.length ? ev() : void 0), []), a = (0, Ee.useRef)(0), - o = sh(), + o = Dm(), s = (0, Ee.useMemo)((() => ({ ctrls: [], queue: [], flush(e, t) { - let n = kf(e, t), + let n = Hg(e, t), r = a.current > 0 && !s.queue.length && !Object.keys(n).some((t => !e.springs[t])); - return r ? bf(e, t) : new Promise((r => { - wf(e, n), s.queue.push((() => { - r(bf(e, t)) + return r ? qg(e, t) : new Promise((r => { + Kg(e, n), s.queue.push((() => { + r(qg(e, t)) })), o() })) } })), []), l = (0, Ee.useRef)([...s.ctrls]), c = [], - u = uh(e) || 0; + u = jm(e) || 0; function d(e, n) { for (let i = e; i < n; i++) { - let e = l.current[i] || (l.current[i] = new _f(null, s.flush)), + let e = l.current[i] || (l.current[i] = new $g(null, s.flush)), n = r ? r(i, e) : t[i]; n && (c[i] = function(e) { - let t = pf(e); - return Yd.und(t.default) && (t.default = Rh(t)), t + let t = Mg(e); + return xf.und(t.default) && (t.default = ig(t)), t }(n)) } }(0, Ee.useMemo)((() => { - Zd(l.current.slice(e, u), (e => { - zh(e, i), e.stop(!0) + kf(l.current.slice(e, u), (e => { + dg(e, i), e.stop(!0) })), l.current.length = e, d(u, e) }), [e]), (0, Ee.useMemo)((() => { d(0, Math.min(u, e)) }), n); - let p = l.current.map(((e, t) => kf(e, c[t]))), - h = (0, Ee.useContext)(If), - f = uh(h), - m = h !== f && Mh(h); - oh((() => { + let p = l.current.map(((e, t) => Hg(e, c[t]))), + h = (0, Ee.useContext)(Xg), + f = jm(h), + m = h !== f && cg(h); + Rm((() => { a.current++, s.ctrls = l.current; let { queue: e } = s; - e.length && (s.queue = [], Zd(e, (e => e()))), Zd(l.current, ((e, t) => { + e.length && (s.queue = [], kf(e, (e => e()))), kf(l.current, ((e, t) => { i?.add(e), m && e.start({ default: h }); let n = c[t]; - n && (Vh(e, n.ref), e.ref ? e.queue.push(n) : e.start(n)) + n && (pg(e, n.ref), e.ref ? e.queue.push(n) : e.start(n)) })) - })), lh((() => () => { - Zd(s.ctrls, (e => e.stop(!0))) + })), Lm((() => () => { + kf(s.ctrls, (e => e.stop(!0))) })); let g = p.map((e => ({ ...e @@ -32607,66 +34924,66 @@ }(1, n ? e : [e], n ? t || [] : t); return n || 2 == arguments.length ? [r, i] : r } - var Tf = 1, - Rf = class extends tf { + var nv = 1, + rv = class extends Ig { constructor(e, t) { - super(), this.source = e, this.idle = !0, this._active = new Set, this.calc = Lp(...t); + super(), this.source = e, this.idle = !0, this._active = new Set, this.calc = om(...t); let n = this._get(), - r = kh(n); - hh(this, r.create(n)) + r = Km(n); + zm(this, r.create(n)) } advance(e) { let t = this._get(); - Qd(t, this.get()) || (ph(this).setValue(t), this._onChange(t, this.idle)), !this.idle && Lf(this._active) && Nf(this) + wf(t, this.get()) || (Fm(this).setValue(t), this._onChange(t, this.idle)), !this.idle && av(this._active) && ov(this) } _get() { - let e = Yd.arr(this.source) ? this.source.map(Fp) : Jd(Fp(this.source)); + let e = xf.arr(this.source) ? this.source.map(um) : Ef(um(this.source)); return this.calc(...e) } _start() { - this.idle && !Lf(this._active) && (this.idle = !1, Zd(fh(this), (e => { + this.idle && !av(this._active) && (this.idle = !1, kf(Vm(this), (e => { e.done = !1 - })), Ad.skipAnimation ? (Td.batchedUpdates((() => this.advance())), Nf(this)) : dp.start(this)) + })), ef.skipAnimation ? (nf.batchedUpdates((() => this.advance())), ov(this)) : Mf.start(this)) } _attach() { let e = 1; - Zd(Jd(this.source), (t => { - Mp(t) && Gp(t, this), Jh(t) && (t.idle || this._active.add(t), e = Math.max(e, t.priority + 1)) + kf(Ef(this.source), (t => { + cm(t) && mm(t, this), Eg(t) && (t.idle || this._active.add(t), e = Math.max(e, t.priority + 1)) })), this.priority = e, this._start() } _detach() { - Zd(Jd(this.source), (e => { - Mp(e) && $p(e, this) - })), this._active.clear(), Nf(this) + kf(Ef(this.source), (e => { + cm(e) && gm(e, this) + })), this._active.clear(), ov(this) } eventObserved(e) { - "change" == e.type ? e.idle ? this.advance() : (this._active.add(e.parent), this._start()) : "idle" == e.type ? this._active.delete(e.parent) : "priority" == e.type && (this.priority = Jd(this.source).reduce(((e, t) => Math.max(e, (Jh(t) ? t.priority : 0) + 1)), 0)) + "change" == e.type ? e.idle ? this.advance() : (this._active.add(e.parent), this._start()) : "idle" == e.type ? this._active.delete(e.parent) : "priority" == e.type && (this.priority = Ef(this.source).reduce(((e, t) => Math.max(e, (Eg(t) ? t.priority : 0) + 1)), 0)) } }; - function Df(e) { + function iv(e) { return !1 !== e.idle } - function Lf(e) { - return !e.size || Array.from(e).every(Df) + function av(e) { + return !e.size || Array.from(e).every(iv) } - function Nf(e) { - e.idle || (e.idle = !0, Zd(fh(e), (e => { + function ov(e) { + e.idle || (e.idle = !0, kf(Vm(e), (e => { e.done = !0 - })), Vp(e, { + })), pm(e, { type: "idle", parent: e })) } - Ad.assign({ - createStringInterpolator: eh, - to: (e, t) => new Rf(e, t) + ef.assign({ + createStringInterpolator: Om, + to: (e, t) => new rv(e, t) }); - var jf = /^--/, - Mf = {}, - Ff = { + var sv = /^--/, + lv = {}, + cv = { animationIterationCount: !0, borderImageOutset: !0, borderImageSlice: !0, @@ -32709,33 +35026,33 @@ strokeOpacity: !0, strokeWidth: !0 }, - zf = ["Webkit", "Ms", "Moz", "O"]; - Ff = Object.keys(Ff).reduce(((e, t) => (zf.forEach((n => e[((e, t) => e + t.charAt(0).toUpperCase() + t.substring(1))(n, t)] = e[t])), e)), Ff); - var Vf = /^(matrix|translate|scale|rotate|skew)/, - Uf = /^(translate)/, - Bf = /^(rotate|skew)/, - Gf = (e, t) => Yd.num(e) && 0 !== e ? e + t : e, - $f = (e, t) => Yd.arr(e) ? e.every((e => $f(e, t))) : Yd.num(e) ? e === t : parseFloat(e) === t, - qf = class extends _h { + uv = ["Webkit", "Ms", "Moz", "O"]; + cv = Object.keys(cv).reduce(((e, t) => (uv.forEach((n => e[((e, t) => e + t.charAt(0).toUpperCase() + t.substring(1))(n, t)] = e[t])), e)), cv); + var dv = /^(matrix|translate|scale|rotate|skew)/, + pv = /^(translate)/, + hv = /^(rotate|skew)/, + fv = (e, t) => xf.num(e) && 0 !== e ? e + t : e, + mv = (e, t) => xf.arr(e) ? e.every((e => mv(e, t))) : xf.num(e) ? e === t : parseFloat(e) === t, + gv = class extends qm { constructor({ - x: e, - y: t, - z: n, - ...r - }) { + x: e, + y: t, + z: n, + ...r + }) { let i = [], a = []; - (e || t || n) && (i.push([e || 0, t || 0, n || 0]), a.push((e => [`translate3d(${e.map((e=>Gf(e,"px"))).join(",")})`, $f(e, 0)]))), Xd(r, ((e, t) => { + (e || t || n) && (i.push([e || 0, t || 0, n || 0]), a.push((e => [`translate3d(${e.map((e=>fv(e,"px"))).join(",")})`, mv(e, 0)]))), Sf(r, ((e, t) => { if ("transform" === t) i.push([e || ""]), a.push((e => [e, "" === e])); - else if (Vf.test(t)) { - if (delete r[t], Yd.und(e)) return; - let n = Uf.test(t) ? "px" : Bf.test(t) ? "deg" : ""; - i.push(Jd(e)), a.push("rotate3d" === t ? ([e, t, r, i]) => [`rotate3d(${e},${t},${r},${Gf(i,n)})`, $f(i, 0)] : e => [`${t}(${e.map((e=>Gf(e,n))).join(",")})`, $f(e, t.startsWith("scale") ? 1 : 0)]) + else if (dv.test(t)) { + if (delete r[t], xf.und(e)) return; + let n = pv.test(t) ? "px" : hv.test(t) ? "deg" : ""; + i.push(Ef(e)), a.push("rotate3d" === t ? ([e, t, r, i]) => [`rotate3d(${e},${t},${r},${fv(i,n)})`, mv(i, 0)] : e => [`${t}(${e.map((e=>fv(e,n))).join(",")})`, mv(e, t.startsWith("scale") ? 1 : 0)]) } - })), i.length && (r.transform = new Wf(i, a)), super(r) + })), i.length && (r.transform = new vv(i, a)), super(r) } }, - Wf = class extends Up { + vv = class extends hm { constructor(e, t) { super(), this.inputs = e, this.transforms = t, this._value = null } @@ -32745,25 +35062,25 @@ _get() { let e = "", t = !0; - return Zd(this.inputs, ((n, r) => { - let i = Fp(n[0]), - [a, o] = this.transforms[r](Yd.arr(i) ? i : n.map(Fp)); + return kf(this.inputs, ((n, r) => { + let i = um(n[0]), + [a, o] = this.transforms[r](xf.arr(i) ? i : n.map(um)); e += " " + a, t = t && o })), t ? "none" : e } observerAdded(e) { - 1 == e && Zd(this.inputs, (e => Zd(e, (e => Mp(e) && Gp(e, this))))) + 1 == e && kf(this.inputs, (e => kf(e, (e => cm(e) && mm(e, this))))) } observerRemoved(e) { - 0 == e && Zd(this.inputs, (e => Zd(e, (e => Mp(e) && $p(e, this))))) + 0 == e && kf(this.inputs, (e => kf(e, (e => cm(e) && gm(e, this))))) } eventObserved(e) { - "change" == e.type && (this._value = null), Vp(this, e) + "change" == e.type && (this._value = null), pm(this, e) } }; - Ad.assign({ + ef.assign({ batchedUpdates: Xa.unstable_batchedUpdates, - createStringInterpolator: eh, + createStringInterpolator: Om, colors: { transparent: 0, aliceblue: 4042850303, @@ -32917,9 +35234,9 @@ yellowgreen: 2597139199 } }); - var Hf = ((e, { + var yv = ((e, { applyAnimatedValues: t = (() => !1), - createAnimatedStyle: n = (e => new _h(e)), + createAnimatedStyle: n = (e => new qm(e)), getComponentProps: r = (e => e) } = {}) => { let i = { @@ -32928,11 +35245,11 @@ getComponentProps: r }, a = e => { - let t = Oh(e) || "Anonymous"; - return (e = Yd.str(e) ? a[e] || (a[e] = wh(e, i)) : e[Eh] || (e[Eh] = wh(e, i))).displayName = `Animated(${t})`, e + let t = Xm(e) || "Anonymous"; + return (e = xf.str(e) ? a[e] || (a[e] = Ym(e, i)) : e[Zm] || (e[Zm] = Ym(e, i))).displayName = `Animated(${t})`, e }; - return Xd(e, ((t, n) => { - Yd.arr(e) && (n = Oh(t)), a[n] = a(t) + return Sf(e, ((t, n) => { + xf.arr(e) && (n = Xm(t)), a[n] = a(t) })), { animated: a } @@ -32949,32 +35266,32 @@ ...l } = t, c = Object.values(l), - u = Object.keys(l).map((t => n || e.hasAttribute(t) ? t : Mf[t] || (Mf[t] = t.replace(/([A-Z])/g, (e => "-" + e.toLowerCase()))))); + u = Object.keys(l).map((t => n || e.hasAttribute(t) ? t : lv[t] || (lv[t] = t.replace(/([A-Z])/g, (e => "-" + e.toLowerCase()))))); for (let p in void 0 !== i && (e.textContent = i), r) if (r.hasOwnProperty(p)) { var d; - let t = null == (d = r[p]) || "boolean" == typeof d || "" === d ? "" : "number" != typeof d || 0 === d || jf.test(p) || Ff.hasOwnProperty(p) && Ff[p] ? ("" + d).trim() : d + "px"; - jf.test(p) ? e.style.setProperty(p, t) : e.style[p] = t + let t = null == (d = r[p]) || "boolean" == typeof d || "" === d ? "" : "number" != typeof d || 0 === d || sv.test(p) || cv.hasOwnProperty(p) && cv[p] ? ("" + d).trim() : d + "px"; + sv.test(p) ? e.style.setProperty(p, t) : e.style[p] = t } u.forEach(((t, n) => { e.setAttribute(t, c[n]) })), void 0 !== a && (e.scrollTop = a), void 0 !== o && (e.scrollLeft = o), void 0 !== s && e.setAttribute("viewBox", s) }, - createAnimatedStyle: e => new qf(e), + createAnimatedStyle: e => new gv(e), getComponentProps: ({ - scrollTop: e, - scrollLeft: t, - ...n - }) => n + scrollTop: e, + scrollLeft: t, + ...n + }) => n }).animated; - let Kf = No((({ - as: e = "nav", - children: t, - className: n, - ...r - }, i) => { - let [a, o] = (0, Ee.useState)(!1), s = Lo("sol-c-game-page__tabs", n), l = (0, Ee.useRef)(null), { + let _v = Po((({ + as: e = "nav", + children: t, + className: n, + ...r + }, i) => { + let [a, o] = (0, Ee.useState)(!1), s = Ao("sol-c-game-page__tabs", n), l = (0, Ee.useRef)(null), { unessentialAnimationsDisabled: c - } = ts().reduceMotion, [u] = Pf((() => ({ + } = Qo().reduceMotion, [u] = tv((() => ({ from: { width: 0, left: 0, @@ -33004,23 +35321,23 @@ duration: 100 } })), [t]); - return po.jsxs(e, { + return io.jsxs(e, { className: s, - ref: jo(l, i), + ref: To(l, i), ...r, - children: [t, !c && po.jsx(Hf.div, { + children: [t, !c && io.jsx(yv.div, { "aria-hidden": "true", className: "sol-c-game-page__tabs-indicator", style: u })] }) })), - Yf = No((({ - className: e, - ...t - }, n) => { - let r = Lo("sol-c-game-page__title", e); - return po.jsx(gs, { + bv = Po((({ + className: e, + ...t + }, n) => { + let r = Ao("sol-c-game-page__title", e); + return io.jsx(ds, { as: "h1", className: r, ref: n, @@ -33029,84 +35346,84 @@ ...t }) })), - Qf = No((({ - as: e = "div", - children: t, - className: n, - navigation: r, - theme: i, - ...a - }, o) => { - let s = Lo("sol-c-game-page", n); - return po.jsxs(e, { + xv = Po((({ + as: e = "div", + children: t, + className: n, + navigation: r, + theme: i, + ...a + }, o) => { + let s = Ao("sol-c-game-page", n); + return io.jsxs(e, { className: s, ref: o, ...a, - children: [r && po.jsx("div", { + children: [r && io.jsx("div", { className: "sol-c-game-page__navigation", children: r - }), i ? po.jsx(us, { + }), i ? io.jsx(as, { name: i, children: ({ - getProps: e - }) => po.jsx("div", { + getProps: e + }) => io.jsx("div", { ...e({ className: "sol-c-game-page__wrapper" }), children: t }) - }) : po.jsx("div", { + }) : io.jsx("div", { className: "sol-c-game-page__wrapper", children: t })] }) })); eo("@layer sol.components{.sol-c-game-switcher{inline-size:5.5rem;overflow:hidden;position:relative;z-index:1}.sol-c-game-switcher:after,.sol-c-game-switcher:before{content:\"\";display:block}.sol-c-game-switcher:before{background:var(--sol-color-surface-0);inset:0;-webkit-mask:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='88'%3E%3Cpath d='M88 88V0c0 9.1-4.68 17.58-12.4 22.42L14.98 60.51A32 32 0 0 0 0 87.6v.4h88Z'/%3E%3C/svg%3E\") bottom right/100% auto no-repeat,linear-gradient(#000,#000);mask:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='88'%3E%3Cpath d='M88 88V0c0 9.1-4.68 17.58-12.4 22.42L14.98 60.51A32 32 0 0 0 0 87.6v.4h88Z'/%3E%3C/svg%3E\") bottom right/100% auto no-repeat,linear-gradient(#000,#000);-webkit-mask-composite:xor;mask-composite:exclude;position:absolute;z-index:-1}[dir=rtl] .sol-c-game-switcher:before{transform:scaleX(-1)}.sol-c-game-switcher:after{padding-block-start:100%}.sol-c-game-switcher__title{padding:var(--sol-size-100) var(--sol-size-050) 0}.sol-c-game-switcher__item{--sol-focus-offset:0;--_background:var(--sol-color-surface-0);align-items:center;border-radius:var(--sol-radius-4);color:var(--sol-color-interactive);cursor:var(--sol-cursor-interactive);display:flex;height:var(--sol-size-450);justify-content:center;margin:var(--sol-size-025) var(--sol-size-050);padding:var(--sol-size-075);position:relative;transition:color var(--sol-motion-250);width:var(--sol-size-450)}.sol-c-game-switcher__item:hover{color:var(--sol-color-interactive-hovered)}.sol-c-game-switcher__item:active,.sol-c-game-switcher__item[aria-current=true]:not(:hover){color:var(--sol-color-interactive-pressed)}.sol-c-game-switcher__item:after,.sol-c-game-switcher__item:before{content:\"\";display:block}.sol-c-game-switcher__item:before{background-color:var(--_background);border-radius:inherit;inset:0;opacity:0;position:absolute;transition-duration:var(--sol-motion-250);transition-property:background-color,opacity,transform;z-index:1}@container style(--sol-prefers-reduced-motion: no-preference){.sol-c-game-switcher__item:before{transform:scaleY(.2222222222)}}.sol-c-game-switcher__item[style*=sol-c-game-switcher-logo]:after{background:currentColor;height:var(--sol-size-300);-webkit-mask:var(--sol-c-game-switcher-logo);mask:var(--sol-c-game-switcher-logo);-webkit-mask-position:center;mask-position:center;-webkit-mask-size:contain;mask-size:contain;position:relative;width:var(--sol-size-300);z-index:2}.sol-c-game-switcher__item:hover:before,.sol-c-game-switcher__item[aria-current=true]:before{opacity:1;transform:scaleY(1)}.sol-c-game-switcher__item:hover{--_background:var(--sol-color-surface-0-hovered)}.sol-c-game-switcher__item:active:before{--_background:var(--sol-color-surface-0-pressed)}.sol-c-game-switcher__item[aria-current=true]:before{--_background:var(--sol-color-surface-2)}.sol-c-game-switcher__item[aria-current=true]:hover:before{--_background:var(--sol-color-surface-2-hovered)}.sol-c-game-switcher__item[aria-current=true]:active:before{--_background:var(--sol-color-surface-2-pressed)}.sol-c-game-switcher__item:disabled,.sol-c-game-switcher__item[aria-disabled=true]{opacity:.2;pointer-events:none}.sol-c-game-switcher__fallback{position:relative;z-index:2}.sol-c-game-switcher__indicator{background:var(--sol-color-interactive-pressed);border-end-end-radius:var(--sol-radius-4);border-start-end-radius:var(--sol-radius-4);inline-size:var(--sol-border-2);inset-inline-start:0;opacity:0;position:absolute}}"); - let Zf = (0, Ee.forwardRef)((({ - active: e, - className: t, - logo: n, - name: r, - ...i - }, a) => { - let o = Lo("sol-c-game-switcher__item", t), - s = Ko({ + let wv = (0, Ee.forwardRef)((({ + active: e, + className: t, + logo: n, + name: r, + ...i + }, a) => { + let o = Ao("sol-c-game-switcher__item", t), + s = Go({ src: n }); - return po.jsxs(hs, { + return io.jsxs(ls, { "aria-current": e ? "true" : void 0, className: o, ref: a, ...i, style: { - "--sol-c-game-switcher-logo": n && s === Wo ? `url("${n}")` : void 0 + "--sol-c-game-switcher-logo": n && s === Uo ? `url("${n}")` : void 0 }, - children: [(!n || s === Ho) && po.jsx(gs, { + children: [(!n || s === Bo) && io.jsx(ds, { "aria-hidden": "true", className: "sol-c-game-switcher__fallback", offset: !0, variant: "heading-l", children: r.slice(0, 2).toLocaleUpperCase() - }), po.jsx("span", { + }), io.jsx("span", { className: "sol-u-hide-visually", children: r })] }) })), - Xf = No((({ - as: e = "nav", - children: t, - className: n, - id: r, - items: i, - title: a, - ...o - }, s) => { - let l = $o(r) + "-label", - c = Lo("sol-c-game-switcher", n), + kv = Po((({ + as: e = "nav", + children: t, + className: n, + id: r, + items: i, + title: a, + ...o + }, s) => { + let l = zo(r) + "-label", + c = Ao("sol-c-game-switcher", n), u = (0, Ee.useRef)(null), [d, p] = (0, Ee.useState)(!1), - [h] = Pf((() => ({ + [h] = tv((() => ({ from: { height: 0, top: 0, @@ -33127,12 +35444,12 @@ })) } })), [t]); - return po.jsxs(e, { + return io.jsxs(e, { "aria-labelledby": a ? l : void 0, className: c, - ref: jo(u, s), + ref: To(u, s), ...o, - children: [a && po.jsx(gs, { + children: [a && io.jsx(ds, { align: "center", className: "sol-c-game-switcher__title", id: l, @@ -33140,9 +35457,9 @@ transform: "uppercase", truncate: !0, children: a - }), i?.map(((e, t) => e.name && po.jsx(Zf, { + }), i?.map(((e, t) => e.name && io.jsx(wv, { ...e - }, t))), t, po.jsx(Hf.div, { + }, t))), t, io.jsx(yv.div, { "aria-hidden": "true", className: "sol-c-game-switcher__indicator", style: h @@ -33150,8 +35467,8 @@ }) })); - function Jf() { - return (Jf = Object.assign ? Object.assign.bind() : function(e) { + function Sv() { + return (Sv = Object.assign ? Object.assign.bind() : function(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t]; for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]) @@ -33160,12 +35477,12 @@ }).apply(this, arguments) } eo('@layer sol.components{.sol-c-input{--_background-color:var(--sol-color-surface-0);--_border-color:var(--sol-color-interactive);--_border-width:var(--sol-border-1);--_block-size:var(--sol-size-300);--_icon-size:var(--sol-size-100);--_padding:var(--sol-size-100);--_separator-color:var(--sol-color-surface-2);--_separator-size:var(--sol-size-150);--_separator-width:var(--sol-border-1);align-items:flex-start;background:var(--_background-color);border-radius:var(--sol-radius-4);display:flex;flex:1;gap:var(--_padding);padding-inline:var(--_padding);position:relative}.sol-c-input:before{border:var(--_border-width) solid var(--_border-color);border-radius:inherit;content:"";inset:0;pointer-events:none;position:absolute;transition:border-color var(--sol-motion-250);z-index:3}.sol-c-input:hover{--_border-color:var(--sol-color-interactive-hovered)}.sol-c-input:has(.sol-c-input__element:focus){--_border-color:var(--sol-color-interactive-pressed);--_border-width:var(--sol-focus-width)}.sol-c-input--disabled{opacity:.4;pointer-events:none}.sol-c-input--invalid{--_border-color:var(--sol-color-interactive-negative)}.sol-c-input--invalid:hover{--_border-color:var(--sol-color-interactive-negative-hovered)}.sol-c-input--invalid:has(.sol-c-input__element:focus){--_border-color:var(--sol-color-interactive-negative-pressed)}.sol-c-input--has-start-icon,.sol-c-input:has(.sol-c-input__icon--start){--_offset-start:calc(var(--_icon-size) + var(--_padding))}.sol-c-input--has-end-icon,.sol-c-input:has(.sol-c-input__icon--end){--_offset-end:calc(var(--_padding) + var(--_icon-size))}.sol-c-input__element{align-items:center;background:#0000 none;border:0;border-radius:0;box-shadow:none;display:flex;flex:1;font:var(--sol-text-label-m);inline-size:100%;margin-block:0;margin-inline-end:calc((var(--_padding) + var(--_offset-end, 0px))*-1);margin-inline-start:calc((var(--_padding) + var(--_offset-start, 0px))*-1);min-block-size:var(--_block-size);padding-block:var(--sol-size-025);padding-inline-end:calc(var(--_padding) + var(--_offset-end, 0px));padding-inline-start:calc(var(--_padding) + var(--_offset-start, 0px));position:relative;text-align:start;text-overflow:ellipsis}.sol-c-input__element:is(textarea){block-size:calc(var(--_block-size)*2);padding-block:var(--sol-size-075);resize:vertical;scroll-padding-block:var(--sol-size-075)}.sol-c-input__element:is(select){appearance:none}.sol-c-input__element:is(select) optgroup,.sol-c-input__element:is(select) optgroup:checked,.sol-c-input__element:is(select) option,.sol-c-input__element:is(select) option:checked{background:var(--sol-color-surface-0)}.sol-c-input__element[type=number]{appearance:textfield}.sol-c-input__element[type=number]::-webkit-inner-spin-button,.sol-c-input__element[type=number]::-webkit-outer-spin-button{appearance:none;margin:0}.sol-c-input__element:is(button)[data-placeholder]:empty:before{content:attr(data-placeholder);display:block;pointer-events:none}.sol-c-input__element:is(button)[data-placeholder]:before,.sol-c-input__element:is(input,textarea)::placeholder,.sol-c-input__element:is(select):has(option[value=""]:not(:empty):checked){color:var(--sol-color-foreground-weak);opacity:1;transition:opacity var(--sol-motion-250)}.sol-c-input__element:focus,.sol-c-input__element:focus-visible{outline:none}.sol-c-input__floating{--_label-size:var(--sol-text-label-xs-line-height);--_label-offset:calc(var(--_label-size)/2);display:flex;flex:1;position:relative}.sol-c-input__floating .sol-c-input__element{padding-block-start:calc(var(--_label-offset) + var(--_label-size))}.sol-c-input__floating .sol-c-input__element:not(:focus):is(input,textarea)::placeholder,.sol-c-input__floating .sol-c-input__element:not(:focus):is(select):has(option[value=""]:not(:empty):checked),.sol-c-input__floating .sol-c-input__element:not(:focus,[aria-expanded=true]):is(button)[data-placeholder]:before{opacity:0}.sol-c-input__label{inset-block-start:var(--_label-offset);inset-inline:0;pointer-events:none;position:absolute;z-index:2}.sol-c-input__label:before{background:var(--_background-color);content:"";inset:calc((var(--_label-offset) - var(--_border-width))*-1) 0;opacity:.8;position:absolute;z-index:-1}.sol-c-input__label-indicator,.sol-c-input__label-text{font:var(--sol-text-label-xs)}.sol-c-input__floating:has(.sol-c-input__element:not(:focus):is(input,textarea)[placeholder]:placeholder-shown,.sol-c-input__element:not(:focus):is(select) option[value=""]:not(:empty):checked,.sol-c-input__element:not(:focus):is(select) option:empty:checked,.sol-c-input__element:not(:focus,[aria-expanded=true]):is(button):empty) .sol-c-input__label{inset-block-start:calc(var(--_block-size)/2 - var(--sol-text-label-m-line-height)/2)}.sol-c-input__floating:has(.sol-c-input__element:not(:focus):is(input,textarea)[placeholder]:placeholder-shown,.sol-c-input__element:not(:focus):is(select) option[value=""]:not(:empty):checked,.sol-c-input__element:not(:focus):is(select) option:empty:checked,.sol-c-input__element:not(:focus,[aria-expanded=true]):is(button):empty) .sol-c-input__label-text{font:var(--sol-text-label-m)}.sol-c-input__floating:has(.sol-c-input__element:not(:focus):is(input,textarea)[placeholder]:placeholder-shown,.sol-c-input__element:not(:focus):is(select) option[value=""]:not(:empty):checked,.sol-c-input__element:not(:focus):is(select) option:empty:checked,.sol-c-input__element:not(:focus,[aria-expanded=true]):is(button):empty) .sol-c-input__label-indicator{font:var(--sol-text-label-s)}@container style(--sol-prefers-reduced-motion: no-preference){.sol-c-input__label{transition:inset-block-start var(--sol-motion-250)}.sol-c-input__label-indicator,.sol-c-input__label-text{transition-duration:var(--sol-motion-250);transition-property:font-size,line-height}}.sol-c-input__icon{--sol-c-icon-size:var(--_icon-size);margin-block:calc((var(--_block-size) - var(--_icon-size))/2);pointer-events:none}.sol-c-input__icon--resize{bottom:var(--sol-size-025);color:var(--sol-color-primary-6);height:var(--sol-size-075);margin:0;position:absolute;right:calc(var(--sol-size-075)*-1);width:var(--sol-size-075)}.sol-c-input__prefix,.sol-c-input__suffix{align-items:center;display:flex;min-block-size:var(--_block-size);position:relative}.sol-c-input__separator{background:var(--_separator-color);block-size:var(--_separator-size);inline-size:var(--_separator-width);margin-block:calc((var(--_block-size) - var(--_separator-size))/2)}}'); - var em = function(e, t) { + var Ev = function(e, t) { "function" != typeof e ? e.current = t : e(t) }, - tm = function() {}, - nm = ["cacheMeasurements", "maxRows", "minRows", "onChange", "onHeightChange"], - rm = Ee.forwardRef((function(e, t) { + Ov = function() {}, + Iv = ["cacheMeasurements", "maxRows", "minRows", "onChange", "onHeightChange"], + Cv = Ee.forwardRef((function(e, t) { e.cacheMeasurements, e.maxRows, e.minRows; var n = e.onChange; e.onHeightChange; @@ -33177,51 +35494,51 @@ if (t.indexOf(r) >= 0) continue; n[r] = e[r] } return n - }(e, nm); + }(e, Iv); r.value; var i = function(e, t) { var n = (0, Ee.useRef)(); return (0, Ee.useCallback)((function(r) { - e.current = r, n.current && em(n.current, null), n.current = t, t && em(t, r) + e.current = r, n.current && Ev(n.current, null), n.current = t, t && Ev(t, r) }), [t]) }(Ee.useRef(null), t); - return Ee.useRef(0), Ee.useRef(), Ee.createElement("textarea", Jf({}, r, { - onChange: void 0 === n ? tm : n, + return Ee.useRef(0), Ee.useRef(), Ee.createElement("textarea", Sv({}, r, { + onChange: void 0 === n ? Ov : n, ref: i })) })); - let im = (0, Ee.forwardRef)((({ - as: e, - className: t, - id: n, - "aria-describedby": r, - "aria-labelledby": i, - disabled: a, - invalid: o, - required: s, - placeholder: l = " ", - type: c, - endIcon: u, - icon: d, - prefix: p, - suffix: h, - showPasswordLabel: f = "Show password", - hidePasswordLabel: m = "Hide password", - wrapperProps: g, - ...v - }, y) => { + let Av = (0, Ee.forwardRef)((({ + as: e, + className: t, + id: n, + "aria-describedby": r, + "aria-labelledby": i, + disabled: a, + invalid: o, + required: s, + placeholder: l = " ", + type: c, + endIcon: u, + icon: d, + prefix: p, + suffix: h, + showPasswordLabel: f = "Show password", + hidePasswordLabel: m = "Hide password", + wrapperProps: g, + ...v + }, y) => { let _ = (0, Ee.useRef)(null), b = (0, Ee.useId)(), - x = gd(), - [k, w] = (0, Ee.useState)(!1), + x = Uh(), + [w, k] = (0, Ee.useState)(!1), S = x?.inputId ?? n ?? b, - E = os(y, _); + E = ts(y, _); (0, Ee.useLayoutEffect)((() => { x && _.current && (x.setInputRef(_.current), x.setInputId(S), null != a && x.setIsDisabled(a), null != o && x.setIsInvalid(o), null != s && x.setIsRequired(s), "button" === e && x.setLabelElementType("span")) }), [e, a, x, S, o, s]), (0, Ee.useEffect)((() => { if ("password" === c && _.current) { let e = _.current.form, - t = () => w(!1); + t = () => k(!1); return e?.addEventListener("submit", t), () => e?.removeEventListener("submit", t) } }), [c]); @@ -33230,19 +35547,19 @@ C = x?.isRequired ?? s, A = x?.getDescribedby(r) ?? r, P = x?.getLabelledby(i) ?? i, - T = (0, Ee.useMemo)((() => x ? po.jsxs(Ps, { + T = (0, Ee.useMemo)((() => x ? io.jsxs(Es, { align: "baseline", as: x.labelElementType, className: "sol-c-input__label", gap: "025", ...x.labelProps, - children: [po.jsx(gs, { + children: [io.jsx(ds, { as: "span", className: "sol-c-input__label-text", color: "foreground-weak", truncate: !0, children: x.label - }), x.necessityIndicator && po.jsxs(gs, { + }), x.necessityIndicator && io.jsxs(ds, { "aria-hidden": !!C || void 0, as: "span", className: "sol-c-input__label-indicator", @@ -33251,20 +35568,20 @@ children: ["(", x.necessityIndicator, ")"] })] }) : null), [x, C]), - R = (0, Ee.useMemo)((() => "password" === c ? po.jsxs(po.Fragment, { - children: [po.jsx(xs, { - "aria-label": k ? m : f, + R = (0, Ee.useMemo)((() => "password" === c ? io.jsxs(io.Fragment, { + children: [io.jsx(gs, { + "aria-label": w ? m : f, color: I ? "negative" : void 0, - icon: k ? Ao : Co, - onClick: () => w(!k), + icon: w ? So : ko, + onClick: () => k(!w), size: "small", variant: "plain" }), h] - }) : h), [m, I, k, f, h, c]), - D = "select" === e ? ko : u, - L = Lo("sol-c-input", D && "sol-c-input--has-end-icon", d && "sol-c-input--has-start-icon", O && "sol-c-input--disabled", I && "sol-c-input--invalid", C && "sol-c-input--required", g?.className), - N = Lo("sol-c-input__element", t), - j = (0, Ee.createElement)(e ? "textarea" === e ? rm : e : "input", { + }) : h), [m, I, w, f, h, c]), + D = "select" === e ? vo : u, + L = Ao("sol-c-input", D && "sol-c-input--has-end-icon", d && "sol-c-input--has-start-icon", O && "sol-c-input--disabled", I && "sol-c-input--invalid", C && "sol-c-input--required", g?.className), + N = Ao("sol-c-input__element", t), + j = (0, Ee.createElement)(e ? "textarea" === e ? Cv : e : "input", { "aria-describedby": A, "aria-labelledby": P, "aria-required": !!C || void 0, @@ -33276,35 +35593,35 @@ placeholder: l, "data-placeholder": l, ref: E, - type: "password" === c && k ? "text" : c, + type: "password" === c && w ? "text" : c, ...v }); - return po.jsxs("div", { + return io.jsxs("div", { ...g, className: L, - children: [p && po.jsx(gs, { + children: [p && io.jsx(ds, { className: "sol-c-input__prefix", color: "foreground-weak", variant: "label-m", children: p - }), p && d && po.jsx("span", { + }), p && d && io.jsx("span", { "aria-hidden": !0, className: "sol-c-input__separator" - }), d && po.jsx(ms, { + }), d && io.jsx(us, { className: "sol-c-input__icon sol-c-input__icon--start", source: d - }), x && x.label && "floating" === x.labelType ? po.jsxs("div", { + }), x && x.label && "floating" === x.labelType ? io.jsxs("div", { className: "sol-c-input__floating", - children: [T, j, "textarea" === e && po.jsx(Io, { + children: [T, j, "textarea" === e && io.jsx(wo, { className: "sol-c-input__icon sol-c-input__icon--resize" })] - }) : j, D && po.jsx(ms, { + }) : j, D && io.jsx(us, { className: "sol-c-input__icon sol-c-input__icon--end", source: D - }), D && R && po.jsx("span", { + }), D && R && io.jsx("span", { "aria-hidden": !0, className: "sol-c-input__separator" - }), R && po.jsx(gs, { + }), R && io.jsx(ds, { className: "sol-c-input__suffix", color: "foreground-weak", variant: "label-m", @@ -33313,27 +35630,27 @@ }) })); eo("@layer sol.components{.sol-c-link{--_gap:var(--sol-size-025);border-radius:var(--sol-radius-4);cursor:var(--sol-cursor-interactive);text-decoration:underline}.sol-c-link:not(.sol-c-link--inherit){color:var(--sol-color-interactive);transition:color var(--sol-motion-250)}.sol-c-link:not(.sol-c-link--inherit):hover{color:var(--sol-color-interactive-hovered)}.sol-c-link:not(.sol-c-link--inherit):active{color:var(--sol-color-interactive-pressed)}.sol-c-link--inherit:hover{text-decoration:none}.sol-c-link--external{cursor:var(--sol-cursor-link)}.sol-c-link__icon{position:relative;top:-.125em}.sol-c-link__icon--start{margin-right:var(--_gap)}.sol-c-link__icon--end{margin-left:var(--_gap)}.sol-c-link__orphan{display:inline;white-space:nowrap}}"); - let am = No((({ - children: e, - className: t, - external: n, - icon: r, - startIcon: i, - inherit: a, - ...o - }, s) => { - let l = Lo("sol-c-link", n && "sol-c-link--external", a && "sol-c-link--inherit", t); - return po.jsxs(ps, { + let Pv = Po((({ + children: e, + className: t, + external: n, + icon: r, + startIcon: i, + inherit: a, + ...o + }, s) => { + let l = Ao("sol-c-link", n && "sol-c-link--external", a && "sol-c-link--inherit", t); + return io.jsxs(ss, { className: l, external: n, ref: s, ...o, - children: [i && po.jsx(ms, { + children: [i && io.jsx(us, { className: "sol-c-link__icon sol-c-link__icon--start", source: i - }), e, r && po.jsxs("span", { + }), e, r && io.jsxs("span", { className: "sol-c-link__orphan", - children: ["\ufeff", po.jsx(ms, { + children: ["\ufeff", io.jsx(us, { className: "sol-c-link__icon sol-c-link__icon--end", source: r })] @@ -33341,45 +35658,45 @@ }) })); eo('@layer sol.components{.sol-c-listbox{--_background:var(--sol-color-surface-2);--_divider-width:var(--sol-border-1);--_divider-color:var(--sol-color-surface-3);background:var(--_background);border-radius:var(--sol-radius-4);box-shadow:var(--sol-shadow-050);color:var(--sol-color-foreground);inline-size:max-content;max-block-size:var(--sol-c-listbox-available-height,18rem);max-block-size:min(18rem,var(--sol-c-listbox-available-height,0px));overflow:auto}.sol-c-listbox:focus,.sol-c-listbox:focus-visible{outline:none}.sol-c-listbox,[data-sol-listbox-overlay]{z-index:var(--sol-z-menu)}.sol-c-listbox__group:not(:last-child),.sol-c-listbox__item:not(:last-child):after{border-block-end:var(--_divider-width) solid var(--_divider-color)}.sol-c-listbox__label{padding:var(--sol-size-075) var(--sol-size-100)}.sol-c-listbox__item{--_foreground:#0000;--sol-focus-offset:calc(var(--sol-focus-width)*-1);align-items:center;border-radius:var(--sol-radius-4);cursor:var(--sol-cursor-interactive);display:flex;gap:var(--sol-size-050);margin:0 var(--sol-size-050);min-block-size:var(--sol-size-300);min-inline-size:0;padding:var(--sol-size-025) var(--sol-size-050);position:relative;user-select:none;z-index:1}.sol-c-listbox__item:after,.sol-c-listbox__item:before{content:"";display:block;inset:0 calc(var(--sol-size-050)*-1);position:absolute;z-index:-1}.sol-c-listbox__item:before{background:var(--_background);border-inline-start:var(--sol-border-2) solid var(--_foreground);transition:background var(--sol-motion-250)}.sol-c-listbox__item:disabled,.sol-c-listbox__item[aria-disabled=true]{pointer-events:none}.sol-c-listbox__item:disabled>*,.sol-c-listbox__item[aria-disabled=true]>*{opacity:.4}.sol-c-listbox__item:disabled:focus,.sol-c-listbox__item:disabled:focus-visible,.sol-c-listbox__item[aria-disabled=true]:focus,.sol-c-listbox__item[aria-disabled=true]:focus-visible{outline:none}.sol-c-listbox__item:hover{--_background:var(--sol-color-surface-2-hovered)}.sol-c-listbox__item:active{--_background:var(--sol-color-surface-2-pressed)}.sol-c-listbox__item[aria-selected=true]{--_background:var(--sol-color-surface-3);--_foreground:var(--sol-color-interactive)}.sol-c-listbox__item[aria-selected=true]:hover{--_background:var(--sol-color-surface-3-hovered);--_foreground:var(--sol-color-interactive-hovered)}.sol-c-listbox__item[aria-selected=true]:active{--_background:var(--sol-color-surface-3-pressed);--_foreground:var(--sol-color-interactive-pressed)}.sol-c-listbox__icon{--sol-c-icon-size:var(--sol-size-100);margin-inline-start:auto}}'); - let om = { + let Tv = { none: 0, small: 8, medium: 12, large: 16 }, - sm = (0, Ee.createContext)(null), - lm = () => { - let e = (0, Ee.useContext)(sm); + Rv = (0, Ee.createContext)(null), + Dv = () => { + let e = (0, Ee.useContext)(Rv); if (!e) throw Error("Listbox components must be wrapped in "); return e }, - cm = ((0, Ee.forwardRef)((({ - children: e, - className: t, - label: n, - ...r - }, i) => { + Lv = ((0, Ee.forwardRef)((({ + children: e, + className: t, + label: n, + ...r + }, i) => { let a = (0, Ee.useId)(), { isMounted: o - } = lm(); - if (!o) return po.jsx(po.Fragment, { + } = Dv(); + if (!o) return io.jsx(io.Fragment, { children: e }); - let s = Lo("sol-c-listbox__group", t); - return po.jsxs("li", { + let s = Ao("sol-c-listbox__group", t); + return io.jsxs("li", { className: s, ref: i, role: "presentation", ...r, - children: [po.jsx(gs, { + children: [io.jsx(ds, { id: a, "aria-hidden": "true", className: "sol-c-listbox__label", color: "foreground-highlight", variant: "body-s-bold", children: n - }), po.jsx("ul", { + }), io.jsx("ul", { "aria-labelledby": a, className: "sol-c-listbox__items", role: "group", @@ -33387,14 +35704,14 @@ })] }) })), (0, Ee.memo)((0, Ee.forwardRef)((({ - children: e, - active: t, - disabled: n, - selected: r, - getItemProps: i, - onSelect: a, - ...o - }, s) => po.jsxs("li", { + children: e, + active: t, + disabled: n, + selected: r, + getItemProps: i, + onSelect: a, + ...o + }, s) => io.jsxs("li", { "aria-selected": r, "aria-disabled": n, ref: s, @@ -33410,32 +35727,32 @@ } }), ...o, - children: [po.jsx(gs, { + children: [io.jsx(ds, { as: "span", className: "sol-c-listbox__content", color: "foreground", truncate: !0, variant: "label-m", children: e - }), r && po.jsx(ms, { + }), r && io.jsx(us, { className: "sol-c-listbox__icon", color: "foreground", - source: mo + source: lo })] }))))), - um = (0, Ee.forwardRef)((({ - children: e, - className: t, - disabled: n = !1, - id: r, - label: i, - value: a, - ...o - }, s) => { + Nv = (0, Ee.forwardRef)((({ + children: e, + className: t, + disabled: n = !1, + id: r, + label: i, + value: a, + ...o + }, s) => { let { ref: l, index: c - } = Vc({ + } = Nc({ label: n ? null : i }), { getItemProps: u, @@ -33448,117 +35765,117 @@ setLabel: v, allowEmpty: y, isMounted: _ - } = lm(); - Vo((() => { + } = Dv(); + No((() => { a === m && c !== p && (h(c), v(e ?? i)) }), [e, c, m, i, p, v, h, a]); let b = (0, Ee.useCallback)((() => { n || (c === p && y ? (h(null), g(""), v("")) : (h(c), g(a), v(e ?? i)), f(!1)) }), [y, e, n, c, i, p, v, f, h, g, a]), - x = kc([s, l]); - if (!_) return po.jsx("li", { + x = vc([s, l]); + if (!_) return io.jsx("li", { ref: x, children: i }); - let k = !n && c === p, - w = !n && c === d, - S = Lo("sol-c-listbox__item", w && "sol-c-listbox__item--active", t); - return po.jsx(cm, { + let w = !n && c === p, + k = !n && c === d, + S = Ao("sol-c-listbox__item", k && "sol-c-listbox__item--active", t); + return io.jsx(Lv, { className: S, ref: x, - active: w, + active: k, disabled: n, - selected: k, + selected: w, getItemProps: u, onSelect: b, ...o, children: e ?? i }) })), - dm = (0, Ee.forwardRef)((({ - allowEmpty: e, - anchor: t, - children: n, - className: r, - defaultValue: i = "", - loop: a = !0, - name: o, - offset: s = "small", - onChange: l, - onValueChange: c, - overlay: u = !1, - placement: d = "bottom-start", - style: p, - trigger: h, - value: f, - empty: m = "", - ...g - }, v) => { + jv = (0, Ee.forwardRef)((({ + allowEmpty: e, + anchor: t, + children: n, + className: r, + defaultValue: i = "", + loop: a = !0, + name: o, + offset: s = "small", + onChange: l, + onValueChange: c, + overlay: u = !1, + placement: d = "bottom-start", + style: p, + trigger: h, + value: f, + empty: m = "", + ...g + }, v) => { let y = (({ - allowEmpty: e, - anchor: t, - loop: n, - offset: r = "small", - placement: i, - value: a, - defaultValue: o, - onValueChange: s - } = {}) => { - let [l, c] = zo({ + allowEmpty: e, + anchor: t, + loop: n, + offset: r = "small", + placement: i, + value: a, + defaultValue: o, + onValueChange: s + } = {}) => { + let [l, c] = Lo({ value: a, defaultValue: o, onChange: s - }), [u, d] = (0, Ee.useState)(!1), [p, h] = (0, Ee.useState)(null), [f, m] = (0, Ee.useState)(null), [g, v] = (0, Ee.useState)(null), y = (0, Ee.useRef)([]), _ = (0, Ee.useRef)([]), b = Du({ + }), [u, d] = (0, Ee.useState)(!1), [p, h] = (0, Ee.useState)(null), [f, m] = (0, Ee.useState)(null), [g, v] = (0, Ee.useState)(null), y = (0, Ee.useRef)([]), _ = (0, Ee.useRef)([]), b = Cu({ open: u, onOpenChange: d, placement: i, - whileElementsMounted: ec, - middleware: [El({ - mainAxis: om[r], + whileElementsMounted: Yl, + middleware: [bl({ + mainAxis: Tv[r], alignmentAxis: 0 - }), Ol({ - padding: om[r] - }), Il({ + }), xl({ + padding: Tv[r] + }), wl({ apply({ - availableHeight: e, - availableWidth: t, - elements: n, - rects: r - }) { + availableHeight: e, + availableWidth: t, + elements: n, + rects: r + }) { n.floating.style.setProperty("--sol-c-listbox-available-height", `${e}px`), Object.assign(n.floating.style, { maxInlineSize: `${t}px`, inlineSize: `${r.reference.width}px` }) }, - padding: om[r] + padding: Tv[r] })], transform: !1 }), { context: x, refs: { - setPositionReference: k + setPositionReference: w } } = b; (0, Ee.useEffect)((() => { - t && k(t) - }), [t, k]), (0, Ee.useEffect)((() => { + t && w(t) + }), [t, w]), (0, Ee.useEffect)((() => { e && !l && (h(null), m(null), v(null)) }), [e, l]); - let w = Nu([Cu(x), Ru(x), Bu(x, { + let k = Pu([ku(x), Iu(x), Mu(x, { role: "listbox" - }), Uu(x, { + }), ju(x, { listRef: y, activeIndex: p, selectedIndex: f, onNavigate: h, loop: n - }), $u(x, { + }), zu(x, { listRef: _, activeIndex: p, selectedIndex: f, onMatch: h })]), - S = Gu(x); + S = Fu(x); return (0, Ee.useMemo)((() => ({ isOpen: u, setIsOpen: d, @@ -33573,9 +35890,9 @@ value: l, setValue: c, ...b, - ...w, + ...k, ...S - })), [u, e, p, f, g, l, c, b, w, S]) + })), [u, e, p, f, g, l, c, b, k, S]) })({ allowEmpty: e, anchor: t, @@ -33597,8 +35914,8 @@ floatingStyles: _, refs: b, context: x, - placement: k, - getReferenceProps: w, + placement: w, + getReferenceProps: k, getFloatingProps: S, isOpen: E, value: O, @@ -33608,35 +35925,35 @@ elementsRef: P, labelsRef: T } = y, - R = kc([v, b.setReference, h.ref]), + R = vc([v, b.setReference, h.ref]), { name: D - } = ds(), - L = Lo("sol-c-listbox", "sol-u-transition-floating", r); - return po.jsx(zc, { + } = os(), + L = Ao("sol-c-listbox", "sol-u-transition-floating", r); + return io.jsx(Lc, { elementsRef: P, labelsRef: T, - children: po.jsxs(sm.Provider, { + children: io.jsxs(Rv.Provider, { value: y, children: [(0, Ee.cloneElement)("function" == typeof h ? h({ isOpen: E, label: I, value: O - }) : h, w({ + }) : h, k({ ref: R - }), h.props?.children || I || m), C ? po.jsx(xu, { - children: po.jsx(od, { + }), h.props?.children || I || m), C ? io.jsx(gu, { + children: io.jsx(td, { condition: u, - wrap: e => po.jsx(Ou, { + wrap: e => io.jsx(xu, { "data-sol-listbox-overlay": !0, children: e }), - children: po.jsx(Su, { + children: io.jsx(_u, { context: x, modal: !1, - children: po.jsx("ul", { + children: io.jsx("ul", { className: L, - "data-sol-placement": k, + "data-sol-placement": w, "data-sol-status": A, "data-sol-theme": D, ref: b.setFloating, @@ -33650,10 +35967,10 @@ }) }) }) - }) : po.jsx("ul", { + }) : io.jsx("ul", { hidden: !0, children: n - }), o && po.jsx("input", { + }), o && io.jsx("input", { type: "hidden", name: o, value: O @@ -33661,8 +35978,32 @@ }) }) })); + eo("@layer sol.components{.sol-c-library{align-items:center;background-color:var(--sol-color-surface-2);border-inline-start:var(--sol-size-025) solid var(--sol-color-status-informative);clip-path:var(--sol-clip-radius-8);display:flex;max-width:700px;padding:var(--sol-size-075) var(--sol-size-100);width:100%}.sol-c-library__path{flex:1;padding-right:var(--sol-size-100)}.sol-c-library__children{flex:0}}"); + let Mv = (0, Ee.forwardRef)((({ + path: e, + children: t, + className: n, + ...r + }, i) => io.jsxs("div", { + ref: i, + className: "sol-c-library", + ...r, + children: [io.jsx(ds, { + className: "sol-c-library__path", + color: "foreground-weak", + variant: "body-s", + children: e + }), io.jsx("div", { + children: io.jsx(Es, { + className: "sol-c-library__children", + gap: "100", + align: "center", + children: t + }) + })] + }))); eo("@layer sol.components{.sol-c-loading{background:var(--sol-c-loading-background,var(--sol-color-surface-1));color:var(--sol-c-loading-foreground,var(--sol-color-foreground-highlight));flex:1;position:relative}.sol-c-loading__animation{width:19.25rem}}"); - var pm = { + var Fv = { v: "5.9.0", fr: 29.9700012207031, ip: 0, @@ -42720,20 +45061,20 @@ }], markers: [] }; - let hm = No((({ - as: e = "div", - children: t, - handleAnimWipeTrigger: n, - className: r, - ...i - }, a) => { - let o = Lo("sol-c-loading", r); + let zv = Po((({ + as: e = "div", + children: t, + handleAnimWipeTrigger: n, + className: r, + ...i + }, a) => { + let o = Ao("sol-c-loading", r); n?.(); - let s = as(pm, { + let s = es(Fv, { loop: !1, forcePlay: !0 }); - return po.jsxs(Ps, { + return io.jsxs(Es, { align: "center", className: o, gap: "150", @@ -42741,9 +45082,9 @@ vertical: !0, ref: a, ...i, - children: [po.jsx(s, { + children: [io.jsx(s, { className: "sol-c-loading__animation" - }), t && po.jsx(gs, { + }), t && io.jsx(ds, { align: "center", className: "sol-c-loading__text", variant: "body-l", @@ -42752,44 +45093,44 @@ }) })); eo("@layer sol.components{.sol-c-menu{background:var(--sol-color-surface-2);border-radius:var(--sol-radius-4);box-shadow:var(--sol-shadow-100);color:var(--sol-color-foreground);display:flex;flex-direction:column;gap:var(--sol-size-025);inline-size:max-content;overflow:auto;padding:var(--sol-size-050)}.sol-c-menu :disabled:focus,.sol-c-menu :disabled:focus-visible,.sol-c-menu [aria-disabled=true]:focus,.sol-c-menu [aria-disabled=true]:focus-visible,.sol-c-menu:focus,.sol-c-menu:focus-visible{outline:none}.sol-c-menu,[data-sol-menu-overlay]{z-index:var(--sol-z-menu)}.sol-c-menu__title{max-inline-size:25rem;padding:var(--sol-size-075);word-break:break-all}}"); - let fm = { + let Vv = { none: 0, small: 8, medium: 12, large: 16 }, - mm = (0, Ee.createContext)(null), - gm = () => { - let e = (0, Ee.useContext)(mm); + Uv = (0, Ee.createContext)(null), + Bv = () => { + let e = (0, Ee.useContext)(Uv); if (!e) throw Error("Menu components must be wrapped in "); return e }, - vm = (0, Ee.forwardRef)((({ - className: e, - close: t = !0, - disabled: n, - label: r, - onClick: i, - ...a - }, o) => { + Gv = (0, Ee.forwardRef)((({ + className: e, + close: t = !0, + disabled: n, + label: r, + onClick: i, + ...a + }, o) => { let { ref: s, index: l - } = Vc({ + } = Nc({ label: n ? null : r }), { getItemProps: c, activeIndex: u, setIsOpen: d - } = gm(), p = Lo("sol-c-menu__item", e), h = (0, Ee.useCallback)((e => { + } = Bv(), p = Ao("sol-c-menu__item", e), h = (0, Ee.useCallback)((e => { t && d(!1), i && i(e) }), [t, i, d]); - return po.jsx(xs, { + return io.jsx(gs, { align: "start", className: p, disabled: n, fullWidth: !0, - ref: kc([s, o]), + ref: vc([s, o]), role: "menuitem", tabIndex: n || l !== u ? -1 : 0, variant: "plain", @@ -42800,79 +45141,79 @@ children: r }) })), - ym = No((({ - className: e, - close: t = !1, - onClick: n, - subtitle: r, - title: i, - ...a - }, o) => { - let s = Lo("sol-c-menu__title", e), + $v = Po((({ + className: e, + close: t = !1, + onClick: n, + subtitle: r, + title: i, + ...a + }, o) => { + let s = Ao("sol-c-menu__title", e), { setIsOpen: l - } = gm(), + } = Bv(), c = (0, Ee.useCallback)((e => { t && l(!1), n && n(e) }), [t, n, l]); - return po.jsxs(Ps, { + return io.jsxs(Es, { "aria-disabled": "true", className: s, onClick: c, ref: o, vertical: !0, ...a, - children: [po.jsx(gs, { + children: [io.jsx(ds, { offset: !0, variant: "emphasis-m", truncate: 1, children: i - }), r && po.jsx(gs, { + }), r && io.jsx(ds, { color: "foreground-weak", variant: "body-xs", children: r })] }) })), - _m = (0, Ee.forwardRef)((({ - anchor: e, - children: t, - className: n, - offset: r = "small", - overlay: i = !1, - placement: a = "bottom-start", - loop: o = !0, - style: s, - trigger: l, - ...c - }, u) => { + qv = (0, Ee.forwardRef)((({ + anchor: e, + children: t, + className: n, + offset: r = "small", + overlay: i = !1, + placement: a = "bottom-start", + loop: o = !0, + style: s, + trigger: l, + ...c + }, u) => { let d = (({ - anchor: e, - loop: t, - offset: n = "small", - placement: r - } = {}) => { - let [i, a] = (0, Ee.useState)(null), [o, s] = (0, Ee.useState)(!1), l = (0, Ee.useRef)([]), c = (0, Ee.useRef)([]), u = Du({ + anchor: e, + loop: t, + offset: n = "small", + placement: r + } = {}) => { + let [i, a] = (0, Ee.useState)(null), [o, s] = (0, Ee.useState)(!1), l = (0, Ee.useRef)([]), c = (0, Ee.useRef)([]), u = Cu({ open: o, onOpenChange: s, placement: r, - whileElementsMounted: ec, - middleware: [El({ - mainAxis: fm[n], + whileElementsMounted: Yl, + middleware: [bl({ + mainAxis: Vv[n], alignmentAxis: 0 - }), Il({ + }), wl({ apply({ - availableWidth: e, - availableHeight: t, - elements: n, - rects: r - }) { + availableWidth: e, + availableHeight: t, + elements: n, + rects: r + }) { Object.assign(n.floating.style, { maxInlineSize: `${e}px`, maxBlockSize: `${t}px` }) }, - padding: fm[n] + padding: Vv[n] })], transform: !1 }), { @@ -42884,20 +45225,20 @@ (0, Ee.useEffect)((() => { e && p(e) }), [e, p]); - let h = Nu([Cu(d), Ru(d), Uu(d, { + let h = Pu([ku(d), Iu(d), ju(d, { activeIndex: i, listRef: l, loop: t, onNavigate: a - }), $u(d, { + }), zu(d, { activeIndex: i, enabled: o, listRef: c, onMatch: a - }), Bu(d, { + }), Mu(d, { role: "menu" })]), - f = Gu(d); + f = Fu(d); return (0, Ee.useMemo)((() => ({ isOpen: o, setIsOpen: s, @@ -42925,35 +45266,35 @@ isMounted: _, status: b, elementsRef: x, - labelsRef: k + labelsRef: w } = d, - w = kc([h.setReference, l.ref, u]), + k = vc([h.setReference, l.ref, u]), { name: S - } = ds(), - E = Lo("sol-c-menu sol-u-transition-floating", n); - return po.jsx(zc, { + } = os(), + E = Ao("sol-c-menu sol-u-transition-floating", n); + return io.jsx(Lc, { elementsRef: x, - labelsRef: k, - children: po.jsxs(mm.Provider, { + labelsRef: w, + children: io.jsxs(Uv.Provider, { value: d, children: [(0, Ee.cloneElement)("function" == typeof l ? l({ isOpen: y }) : l, g({ - ref: w - })), _ && po.jsx(xu, { - children: po.jsx(od, { + ref: k + })), _ && io.jsx(gu, { + children: io.jsx(td, { condition: i, - wrap: e => po.jsx(Ou, { + wrap: e => io.jsx(xu, { "data-sol-menu-overlay": !0, children: e }), - children: po.jsx(Su, { + children: io.jsx(_u, { context: f, visuallyHiddenDismiss: !0, initialFocus: -1, modal: !1, - children: po.jsx("div", { + children: io.jsx("div", { className: E, "data-sol-placement": m, "data-sol-status": b, @@ -42973,95 +45314,95 @@ }) })); eo("@layer sol.components{.sol-c-popover{background:var(--sol-color-surface-2);border-radius:var(--sol-radius-4);box-shadow:var(--sol-shadow-100);display:flex;flex-direction:column;gap:var(--sol-size-100);inline-size:max-content;max-inline-size:36rem;min-inline-size:26.25rem;overflow:auto;padding:var(--sol-size-125)}.sol-c-popover:focus,.sol-c-popover:focus-visible{outline:none}.sol-c-popover,[data-sol-popover-overlay]{z-index:var(--sol-z-popover)}.sol-c-popover--full-width{inline-size:100%}.sol-c-popover__title{flex:1}.sol-c-popover__footer{border-block-start:var(--sol-border-1) solid var(--sol-color-surface-3);padding-block-start:var(--sol-size-100)}}"); - let bm = { + let Wv = { none: 0, small: 8, medium: 12, large: 16 }, - xm = (0, Ee.createContext)(null), - km = () => { - let e = (0, Ee.useContext)(xm); + Hv = (0, Ee.createContext)(null), + Kv = () => { + let e = (0, Ee.useContext)(Hv); if (!e) throw Error("Popover components must be wrapped in "); return e }, - wm = (No((({ - as: e = "p", - id: t, - onClick: n, - ...r - }, i) => { + Yv = (Po((({ + as: e = "p", + id: t, + onClick: n, + ...r + }, i) => { let { setDescriptionId: a - } = km(), o = $o(t); - return Vo((() => (a(o), () => a(void 0))), [o, a]), po.jsx(e, { + } = Kv(), o = zo(t); + return No((() => (a(o), () => a(void 0))), [o, a]), io.jsx(e, { id: o, ref: i, ...r }) - })), No((({ - as: e = "p", - id: t, - onClick: n, - ...r - }, i) => { + })), Po((({ + as: e = "p", + id: t, + onClick: n, + ...r + }, i) => { let { setLabelId: a - } = km(), o = $o(t); - return Vo((() => (a(o), () => a(void 0))), [o, a]), po.jsx(e, { + } = Kv(), o = zo(t); + return No((() => (a(o), () => a(void 0))), [o, a]), io.jsx(e, { id: o, ref: i, ...r }) }))), - Sm = (0, Ee.forwardRef)((({ - anchor: e, - children: t, - className: n, - close: r, - defaultOpen: i, - footer: a, - fullWidth: o, - modal: s = !0, - offset: l = "small", - open: c, - onOpenChange: u, - overlay: d = !1, - placement: p = "bottom-start", - style: h, - title: f, - trigger: m, - ...g - }, v) => { + Qv = (0, Ee.forwardRef)((({ + anchor: e, + children: t, + className: n, + close: r, + defaultOpen: i, + footer: a, + fullWidth: o, + modal: s = !0, + offset: l = "small", + open: c, + onOpenChange: u, + overlay: d = !1, + placement: p = "bottom-start", + style: h, + title: f, + trigger: m, + ...g + }, v) => { let y = (({ - anchor: e, - defaultOpen: t, - offset: n = "small", - open: r, - onOpenChange: i, - placement: a - } = {}) => { - let [o, s] = (0, Ee.useState)(t), [l, c] = (0, Ee.useState)(), [u, d] = (0, Ee.useState)(), p = r ?? o, h = i ?? s, f = Xc(), m = Du({ + anchor: e, + defaultOpen: t, + offset: n = "small", + open: r, + onOpenChange: i, + placement: a + } = {}) => { + let [o, s] = (0, Ee.useState)(t), [l, c] = (0, Ee.useState)(), [u, d] = (0, Ee.useState)(), p = r ?? o, h = i ?? s, f = Hc(), m = Cu({ open: p, onOpenChange: h, nodeId: f, placement: a, - whileElementsMounted: ec, - middleware: [El({ - mainAxis: bm[n], + whileElementsMounted: Yl, + middleware: [bl({ + mainAxis: Wv[n], alignmentAxis: 0 - }), Ol({ - padding: bm[n] - }), Il({ + }), xl({ + padding: Wv[n] + }), wl({ apply({ - availableHeight: e, - elements: t - }) { + availableHeight: e, + elements: t + }) { Object.assign(t.floating.style, { maxBlockSize: `${e}px` }) }, - padding: bm[n] + padding: Wv[n] })], transform: !1 }), { @@ -43073,11 +45414,11 @@ (0, Ee.useEffect)((() => { e && v(e) }), [e, v]); - let y = Nu([Cu(g), Ru(g, { + let y = Pu([ku(g), Iu(g, { bubbles: !1, outsidePress: e => !e.target.closest("[data-sol-popover-ignore]") - }), Bu(g)]), - _ = Gu(g); + }), Mu(g)]), + _ = Fu(g); return (0, Ee.useMemo)((() => ({ isOpen: p, setIsOpen: h, @@ -43102,8 +45443,8 @@ floatingStyles: _, refs: b, context: x, - placement: k, - getReferenceProps: w, + placement: w, + getReferenceProps: k, getFloatingProps: S, isMounted: E, isOpen: O, @@ -43113,34 +45454,34 @@ descriptionId: P, nodeId: T } = y, - R = kc([b.setReference, (m ?? t).ref, v]), + R = vc([b.setReference, (m ?? t).ref, v]), { name: D - } = ds(), - L = Lo("sol-c-popover sol-u-transition-floating", o && "sol-c-popover--full-width", n); - return po.jsx(xm.Provider, { + } = os(), + L = Ao("sol-c-popover sol-u-transition-floating", o && "sol-c-popover--full-width", n); + return io.jsx(Hv.Provider, { value: y, - children: po.jsxs(Jc, { + children: io.jsxs(Kc, { id: T, children: [(0, Ee.cloneElement)("function" == typeof m ? m({ isOpen: O - }) : m, w({ + }) : m, k({ ref: R - })), E && po.jsx(xu, { - children: po.jsx(od, { + })), E && io.jsx(gu, { + children: io.jsx(td, { condition: d, - wrap: e => po.jsx(Ou, { + wrap: e => io.jsx(xu, { "data-sol-popover-overlay": !0, children: e }), - children: po.jsx(Su, { + children: io.jsx(_u, { context: x, modal: s, - children: po.jsxs("div", { + children: io.jsxs("div", { "aria-labelledby": A, "aria-describedby": P, className: L, - "data-sol-placement": k, + "data-sol-placement": w, "data-sol-status": C, "data-sol-theme": D, ref: b.setFloating, @@ -43149,33 +45490,33 @@ ...h }, ...S(g), - children: [(r || f) && po.jsxs(Ps, { + children: [(r || f) && io.jsxs(Es, { align: "start", className: "sol-c-popover__header", gap: "050", justify: "end", - children: [f && po.jsx(gs, { - as: wm, + children: [f && io.jsx(ds, { + as: Yv, className: "sol-c-popover__title", color: "foreground", offset: !0, variant: "emphasis-m", children: f - }), r && po.jsx(xs, { + }), r && io.jsx(gs, { "aria-label": "string" == typeof r ? r : "Close", className: "sol-c-popover__close", - icon: _o, + icon: ho, onClick: () => I(!1), size: "small", variant: "monochrome" })] - }), po.jsx(gs, { + }), io.jsx(ds, { className: "sol-c-popover__content", color: "foreground-weak", variant: "body-s", multiline: !0, children: t - }), a && po.jsx(Ps, { + }), a && io.jsx(Es, { align: "center", className: "sol-c-popover__footer", gap: "100", @@ -43189,55 +45530,55 @@ }) }) })), - Em = (0, Ee.forwardRef)(((e, t) => null == Qc() ? po.jsx(eu, { - children: po.jsx(Sm, { + Zv = (0, Ee.forwardRef)(((e, t) => null == qc() ? io.jsx(Yc, { + children: io.jsx(Qv, { ref: t, ...e }) - }) : po.jsx(Sm, { + }) : io.jsx(Qv, { ref: t, ...e }))); eo("@layer sol.components{.sol-c-rsi-logo{--_size:var(--sol-c-rsi-logo-size,var(--sol-size-100));fill:currentColor;block-size:var(--_size);display:inline-block;flex-shrink:0}}"); - let Om = ({ - className: e, - ...t - }) => { - let n = Lo("sol-c-rsi-logo", e); - return po.jsxs("svg", { + let Xv = ({ + className: e, + ...t + }) => { + let n = Ao("sol-c-rsi-logo", e); + return io.jsxs("svg", { className: n, xmlns: "http://www.w3.org/2000/svg", height: "16", fill: "currentColor", viewBox: "0 0 216 80", ...t, - children: [po.jsx("path", { + children: [io.jsx("path", { d: "M80.53 0c5.2 0 8.5 3.67 7.57 8.26l-.16.63L82.5 28.4a15.11 15.11 0 0 1-7.42 9.25l-.8.4-15.88 7.37 3.47 13.77a3.2 3.2 0 0 0 2.56 2.13l.46.03H75.3L70.21 80H53.77c-3.81 0-7.53-2.69-8.72-5.99l-.2-.62-4.98-19.3-13.9 6.5L20.62 80H0L21.78 0h58.75Zm69.93 0-.01.04-5.1 18.53-.02.07h-.02l-30.95-.07c-1.85 0-3.24.65-3.7 2.38-.41 1.54.09 2.74 1.5 3.75l.58.37 33.07 20.48c3.15 1.93 4.97 6.24 4.42 9.71l-.14.69-4.74 17.44c-.87 3.37-4.61 6.25-8.52 6.58l-.73.03H94.46l5.1-18.64h25.09c1.85 0 3.24-1.19 3.58-2.27.42-1.27.18-2.27-1.22-3.33l-.5-.35L93.2 34.6c-3.15-1.94-4.97-6.25-4.43-9.72l.15-.69 4.74-17.55c.87-3.36 4.5-6.25 8.3-6.58l.72-.03L150.43 0h.03Zm24.29 0 20.68.04L173.47 80h-20.91L174.66.04h.08l.01-.04ZM88.68 61.48 83.64 80h-3.37l5.01-18.52h3.4Zm-6.73 0L76.73 80h-3.6l5.27-18.49.01-.03h3.54Zm13.87 0L90.64 80H87l5.19-18.52h3.63ZM61.14 18.52H37.43l-5.07 18.92L60.33 24.1c2.3-1.1 3.11-2.4 3.46-3.5.46-1.42-.8-2.08-2.65-2.08ZM171.05 0 166 18.52h-3.35L167.73 0h3.32Zm-7.14 0-5.04 18.52h-3.37L160.6 0h3.3Zm-6.8 0-.02.04h.1l-5.21 18.42-.02.06h-3.6l.01-.06L153.5.04V0h3.61Z" - }), po.jsx("path", { + }), io.jsx("path", { d: "M200.57 7.74C200.57 2.42 203 0 208.3 0s7.7 2.43 7.7 7.74c0 5.31-2.41 7.74-7.71 7.74s-7.72-2.43-7.72-7.74Zm14.27 0c0-4.54-2.06-6.6-6.57-6.6-4.5 0-6.56 2.05-6.56 6.6 0 4.53 2.05 6.58 6.56 6.58 4.52 0 6.56-2.05 6.56-6.58Zm-3.45-1.32c0 1.52-.4 2.14-1.56 2.36l1.74 2.78c.09.08.05.17-.08.17h-1.44c-.18 0-.25-.04-.32-.18l-1.7-2.65h-.87v2.67c0 .13-.01.14-.12.14h-1.4c-.13 0-.14-.02-.14-.14V4.03c0-.08.03-.12.12-.12.93-.08 1.92-.1 2.8-.1 2.21 0 2.97.6 2.97 2.61Zm-4.23-1.17v2.4h1.08c1.11 0 1.45-.2 1.45-1.17 0-1-.34-1.23-1.45-1.23h-1.08Z" })] }) }; eo("@layer sol.components{.sol-c-select{cursor:var(--sol-cursor-interactive)}}"); - let Im = (0, Ee.forwardRef)((({ - children: e, - description: t, - label: n, - ...r - }, i) => po.jsx(um, { + let Jv = (0, Ee.forwardRef)((({ + children: e, + description: t, + label: n, + ...r + }, i) => io.jsx(Nv, { label: n, ref: i, ...r, - children: t ? po.jsxs(Ps, { + children: t ? io.jsxs(Es, { as: "span", vertical: !0, - children: [po.jsx(gs, { + children: [io.jsx(ds, { as: "span", color: "foreground", variant: "label-m", truncate: !0, children: e ?? n - }), t && po.jsx(gs, { + }), t && io.jsx(ds, { as: "span", color: "foreground-weak", variant: "body-xs", @@ -43246,36 +45587,36 @@ })] }) : e ?? n }))), - Cm = (0, Ee.forwardRef)((({ - allowEmpty: e, - children: t, - className: n, - defaultValue: r, - empty: i, - listboxProps: a, - name: o, - onChange: s, - onValueChange: l, - value: c, - wrapperProps: u, - ...d - }, p) => { - let h = Lo("sol-c-select", n), + ey = (0, Ee.forwardRef)((({ + allowEmpty: e, + children: t, + className: n, + defaultValue: r, + empty: i, + listboxProps: a, + name: o, + onChange: s, + onValueChange: l, + value: c, + wrapperProps: u, + ...d + }, p) => { + let h = Ao("sol-c-select", n), [f, m] = (0, Ee.useState)(null); - return po.jsx(dm, { + return io.jsx(jv, { trigger: ({ - isOpen: e - }) => po.jsx(im, { + isOpen: e + }) => io.jsx(Av, { as: "button", className: h, type: "button", - endIcon: e ? xo : ko, - wrapperProps: Mo({ + endIcon: e ? go : vo, + wrapperProps: Ro({ ref: m }, u), ...d }), - ...Mo({ + ...Ro({ anchor: f, allowEmpty: e, defaultValue: r, @@ -43290,18 +45631,18 @@ }) })); eo('@layer sol.components{.sol-c-settings{border-block-start:var(--sol-border-1) solid var(--sol-color-surface-3);display:flex;flex:1;overflow:hidden}.sol-c-settings__navigation{background:var(--sol-color-surface-1);display:flex;flex:1 0 auto;flex-direction:column;gap:var(--sol-size-100);inline-size:25%;max-inline-size:25rem;min-inline-size:17.5rem;overflow:auto;padding:var(--sol-size-250);padding-inline:clamp(var(--sol-size-200),2.5vw,var(--sol-size-250))}.sol-c-settings__header{align-items:center;display:flex;gap:var(--sol-size-100);margin-block-end:var(--sol-size-300)}.sol-c-settings__header:has(.sol-c-settings__back):has(.sol-c-settings__label):before{background:var(--sol-color-surface-3);block-size:var(--sol-size-300);content:"";inline-size:var(--sol-border-1)}.sol-c-settings__back{order:-1}.sol-c-settings__label{padding-inline-start:var(--sol-size-075)}.sol-c-settings__content{flex:1;overflow:auto;padding:var(--sol-size-250)}@supports (scrollbar-gutter:stable) and (selector(::-webkit-scrollbar)){.sol-c-settings__content{padding-inline-end:calc(var(--sol-size-250) - var(--sol-scrollbar-width));scrollbar-gutter:stable}}.sol-c-settings__title{margin-block-end:var(--sol-size-300)}@container style(--sol-motion-transition-effects: enabled){.sol-c-settings__back,.sol-c-settings__content>*,.sol-c-settings__header,.sol-c-settings__item,.sol-c-settings__navigation,.sol-c-settings__navigation>*{animation:sol-motion-fade-in var(--sol-motion-350) var(--sol-motion-ease-out) forwards;animation-delay:calc(var(--sol-motion-anim-wipe-duration)/2);opacity:0}.sol-c-settings__back,.sol-c-settings__navigation,.sol-c-settings__navigation>*{transform:translateX(calc(var(--sol-size-125)*-1))}.sol-c-settings__back{animation-delay:calc(.1s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings__item{opacity:0}.sol-c-settings__item:first-child{animation-delay:calc(.1s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings__item:nth-child(2){animation-delay:calc(.2s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings__item:nth-child(3){animation-delay:calc(.3s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings__item:nth-child(4){animation-delay:calc(.4s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings__item:nth-child(5){animation-delay:calc(.5s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings__item:nth-child(6){animation-delay:calc(.6s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings__item:nth-child(7){animation-delay:calc(.7s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings__item:nth-child(8){animation-delay:calc(.8s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings__item:nth-child(9){animation-delay:calc(.9s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings__item:nth-child(10){animation-delay:calc(1s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings__content>*{animation:sol-motion-fade-in var(--sol-motion-350) var(--sol-motion-ease-out) forwards;opacity:0;transform:translateY(var(--sol-size-075))}.sol-c-settings[data-animation-fade=true] .sol-c-settings__content>:first-child{animation-delay:calc(.4s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings[data-animation-fade=true] .sol-c-settings__content>:nth-child(2){animation-delay:calc(.5s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings[data-animation-fade=true] .sol-c-settings__content>:nth-child(3){animation-delay:calc(.6s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings[data-animation-fade=true] .sol-c-settings__content>:nth-child(4){animation-delay:calc(.7s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings[data-animation-fade=true] .sol-c-settings__content>:nth-child(5){animation-delay:calc(.8s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings[data-animation-fade=true] .sol-c-settings__content>:nth-child(6){animation-delay:calc(.9s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings[data-animation-fade=true] .sol-c-settings__content>:nth-child(7){animation-delay:calc(1s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings[data-animation-fade=true] .sol-c-settings__content>:nth-child(8){animation-delay:calc(1.1s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings[data-animation-fade=true] .sol-c-settings__content>:nth-child(9){animation-delay:calc(1.2s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings[data-animation-fade=true] .sol-c-settings__content>:nth-child(10){animation-delay:calc(1.3s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings[data-animation-fade=true] .sol-c-settings__navigation>:first-child{animation-delay:calc(.2s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings[data-animation-fade=true] .sol-c-settings__navigation>:nth-child(2){animation-delay:calc(.3s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings[data-animation-fade=true] .sol-c-settings__navigation>:nth-child(3){animation-delay:calc(.4s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings[data-animation-fade=true] .sol-c-settings__navigation>:nth-child(4){animation-delay:calc(.5s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings[data-animation-fade=true] .sol-c-settings__navigation>:nth-child(5){animation-delay:calc(.6s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings[data-animation-fade=true] .sol-c-settings__navigation>:nth-child(6){animation-delay:calc(.7s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings[data-animation-fade=true] .sol-c-settings__navigation>:nth-child(7){animation-delay:calc(.8s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings[data-animation-fade=true] .sol-c-settings__navigation>:nth-child(8){animation-delay:calc(.9s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings[data-animation-fade=true] .sol-c-settings__navigation>:nth-child(9){animation-delay:calc(1s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings[data-animation-fade=true] .sol-c-settings__navigation>:nth-child(10){animation-delay:calc(1.1s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings__content>:first-child,.sol-c-settings__navigation>:first-child{animation-delay:.1s}.sol-c-settings__content>:nth-child(2),.sol-c-settings__navigation>:nth-child(2){animation-delay:.2s}.sol-c-settings__content>:nth-child(3),.sol-c-settings__navigation>:nth-child(3){animation-delay:.3s}.sol-c-settings__content>:nth-child(4),.sol-c-settings__navigation>:nth-child(4){animation-delay:.4s}.sol-c-settings__content>:nth-child(5),.sol-c-settings__navigation>:nth-child(5){animation-delay:.5s}.sol-c-settings__content>:nth-child(6),.sol-c-settings__navigation>:nth-child(6){animation-delay:.6s}.sol-c-settings__content>:nth-child(7),.sol-c-settings__navigation>:nth-child(7){animation-delay:.7s}.sol-c-settings__content>:nth-child(8),.sol-c-settings__navigation>:nth-child(8){animation-delay:.8s}.sol-c-settings__content>:nth-child(9),.sol-c-settings__navigation>:nth-child(9){animation-delay:.9s}.sol-c-settings__content>:nth-child(10),.sol-c-settings__navigation>:nth-child(10){animation-delay:1s}}}'); - let Am = (0, Ee.forwardRef)((({ - children: e, - className: t, - title: n, - ...r - }, i) => { - let a = Lo("sol-c-settings__content", t); - return po.jsxs("div", { + let ty = (0, Ee.forwardRef)((({ + children: e, + className: t, + title: n, + ...r + }, i) => { + let a = Ao("sol-c-settings__content", t); + return io.jsxs("div", { className: a, ref: i, ...r, - children: [n && po.jsx(gs, { + children: [n && io.jsx(ds, { as: "h1", className: "sol-c-settings__title", variant: "heading-m", @@ -43309,32 +45650,32 @@ }), e] }) })), - Pm = (0, Ee.forwardRef)((({ - back: e, - children: t, - className: n, - title: r, - backCallback: i, - ...a - }, o) => { - let s = Lo("sol-c-settings__navigation", n); - return po.jsxs("div", { + ny = (0, Ee.forwardRef)((({ + back: e, + children: t, + className: n, + title: r, + backCallback: i, + ...a + }, o) => { + let s = Ao("sol-c-settings__navigation", n); + return io.jsxs("div", { className: s, ref: o, ...a, - children: [(e || r) && po.jsxs("div", { + children: [(e || r) && io.jsxs("div", { className: "sol-c-settings__header", - children: [e && po.jsx(xs, { + children: [e && io.jsx(gs, { "aria-label": e.label, className: "sol-c-settings__back", - icon: yo, + icon: po, size: "large", variant: "monochrome", onClick: e => { e.preventDefault(), i?.() }, ...e - }), r && po.jsx(gs, { + }), r && io.jsx(ds, { className: "sol-c-settings__label", offset: !0, variant: "heading-s", @@ -43343,14 +45684,14 @@ }), t] }) })), - Tm = (0, Ee.forwardRef)((({ - children: e, - className: t, - active: n, - ...r - }, i) => { - let a = Lo("sol-c-settings__item", t); - return po.jsx(xs, { + ry = (0, Ee.forwardRef)((({ + children: e, + className: t, + active: n, + ...r + }, i) => { + let a = Ao("sol-c-settings__item", t); + return io.jsx(gs, { "aria-current": n ? "true" : void 0, className: a, fullWidth: !0, @@ -43363,18 +45704,18 @@ children: e }) })), - Rm = No((({ - as: e = "div", - children: t, - className: n, - ...r - }, i) => { - let a = Lo("sol-c-settings", n), + iy = Po((({ + as: e = "div", + children: t, + className: n, + ...r + }, i) => { + let a = Ao("sol-c-settings", n), [o, s] = (0, Ee.useState)(!0); return (0, Ee.useEffect)((() => { let e = setTimeout((() => s(!1)), 2e3); return () => clearTimeout(e) - }), []), po.jsx(e, { + }), []), io.jsx(e, { className: a, "data-animation-fade": o, ref: i, @@ -43383,45 +45724,45 @@ }) })); eo('@layer sol.components{.sol-c-sign-in{background-color:var(--sol-color-surface-1);display:flex;flex:1;overflow:hidden}.sol-c-sign-in:before{background-color:var(--sol-color-surface-3);content:"";display:block;height:var(--sol-border-1);left:0;position:absolute;top:0;width:100%;z-index:1}.sol-c-sign-in__logo{box-sizing:initial;padding-left:var(--sol-size-500);padding-right:var(--sol-size-400)}}.sol-c-sign-in__content-wrapper{flex:1;position:relative}.sol-c-sign-in__content-wrapper:before{background-color:var(--sol-color-surface-3);content:"";display:block;height:100%;left:0;position:absolute;top:0;width:var(--sol-border-1);z-index:1}.sol-c-sign-in__content{display:flex;flex:0 0 auto;flex-direction:column;height:100%;justify-content:space-around}.sol-c-sign-in__wrapper{border-radius:inherit;display:flex;flex:1;overflow:hidden;position:relative}.sol-c-sign-in__wrapper:after{background:linear-gradient(#0000,var(--sol-color-primary-1));block-size:var(--sol-size-150);content:"";display:block;inline-size:100%;inset-block-end:0;opacity:0;pointer-events:none;position:absolute;transition:opacity var(--sol-motion-250);z-index:2}.sol-c-sign-in__wrapper[data-sol-scroll-end=false]:after{opacity:.6}.sol-c-sign-in__content--has-footer .sol-c-sign-in__wrapper{border-end-end-radius:0;border-end-start-radius:0}.sol-c-sign-in__wrapper .sol-c-field{max-inline-size:none}.sol-c-sign-in__container{flex:1;overflow:auto;padding:var(--sol-size-250);position:relative;z-index:1}@supports (scrollbar-gutter:stable) and (selector(::-webkit-scrollbar)){.sol-c-sign-in__container{padding-inline-end:calc(var(--sol-size-250) - var(--sol-scrollbar-width));scrollbar-gutter:stable}}.sol-c-sign-in__content--has-footer .sol-c-sign-in__container{padding-block-end:0}.sol-c-sign-in__footer{flex:0;padding:var(--sol-size-250)}.sol-c-sign-in__footer>:only-child{margin-inline-start:auto}.sol-c-sign-in__footer .footer__sign-up .sol-c-link{display:block}.sol-c-sign-in{--_anim-base-delay:0.5s}.sol-c-sign-in:before,.sol-c-sign-in__content,.sol-c-sign-in__content-wrapper:before,.sol-c-sign-in__footer,.sol-c-sign-in__logo{animation:sol-motion-fade-in var(--sol-motion-300) var(--sol-motion-ease-out) forwards;opacity:0}.sol-c-sign-in__logo{animation-delay:var(--_anim-base-delay);animation-duration:var(--sol-motion-500);transform:translateX(-20px)}.sol-c-sign-in:before{animation-delay:calc(var(--_anim-base-delay) + .1s)}.sol-c-sign-in__content-wrapper:before{animation-delay:calc(var(--_anim-base-delay) + .15s)}.sol-c-sign-in__content{animation-delay:calc(var(--_anim-base-delay) + .3s)}.sol-c-sign-in__footer{animation-delay:calc(var(--_anim-base-delay) + .4s);transform:translateY(10px)}'); - let Dm = No((({ - as: e = "div", - children: t, - className: n, - footer: r, - subtitle: i, - title: a, - ...o - }, s) => { - let l = Lo("sol-c-sign-in__content", r && "sol-c-sign-in__content--has-footer", n), + let ay = Po((({ + as: e = "div", + children: t, + className: n, + footer: r, + subtitle: i, + title: a, + ...o + }, s) => { + let l = Ao("sol-c-sign-in__content", r && "sol-c-sign-in__content--has-footer", n), c = (0, Ee.useRef)(null), { blockEnd: u - } = ss({ + } = ns({ ref: c }); - return po.jsxs(e, { + return io.jsxs(e, { className: l, ref: s, ...o, - children: [po.jsx("div", { + children: [io.jsx("div", { className: "sol-c-sign-in__wrapper", "data-sol-scroll-end": u, - children: po.jsxs(Ps, { + children: io.jsxs(Es, { className: "sol-c-sign-in__container", gap: "150", ref: c, vertical: !0, - children: [(a || i) && po.jsxs(Ps, { + children: [(a || i) && io.jsxs(Es, { className: "sol-c-sign-in__header", gap: "050", vertical: !0, - children: [a && po.jsx(gs, { + children: [a && io.jsx(ds, { as: "h1", className: "sol-c-sign-in__title", color: "foreground", variant: "heading-s", children: a - }), i && po.jsx(gs, { + }), i && io.jsx(ds, { className: "sol-c-sign-in__subtitle", color: "foreground-weak", variant: "body-m", @@ -43429,7 +45770,7 @@ })] }), t] }) - }), r && po.jsx(Ps, { + }), r && io.jsx(Es, { align: "center", justify: "space-between", className: "sol-c-sign-in__footer", @@ -43437,94 +45778,94 @@ })] }) })), - Lm = No((({ - as: e = "div", - children: t, - className: n, - ...r - }, i) => { - let a = Lo("sol-c-sign-in", n); - return po.jsxs(e, { + oy = Po((({ + as: e = "div", + children: t, + className: n, + ...r + }, i) => { + let a = Ao("sol-c-sign-in", n); + return io.jsxs(e, { className: a, ref: i, ...r, - children: [po.jsx("svg", { + children: [io.jsx("svg", { className: "sol-c-sign-in__logo", width: "256", height: "125", viewBox: "0 0 256 125", xmlns: "http://www.w3.org/2000/svg", - children: po.jsxs("g", { + children: io.jsxs("g", { fill: "#BCBEC0", - children: [po.jsx("path", { + children: [io.jsx("path", { d: "M243.265 6.429c0-4.42 1.993-6.431 6.368-6.431s6.369 2.02 6.369 6.43-1.994 6.442-6.369 6.442-6.368-2.021-6.368-6.441Zm11.773 0c0-3.768-1.695-5.48-5.415-5.48-3.72 0-5.419 1.698-5.419 5.48 0 3.781 1.695 5.48 5.419 5.48 3.723 0 5.415-1.713 5.415-5.48Zm-2.84-1.09c0 1.263-.332 1.78-1.293 1.965l1.443 2.309c.069.07.034.139-.07.139h-1.192c-.149 0-.205-.035-.264-.15l-1.407-2.204h-.711v2.229c0 .104-.01.114-.104.114h-1.158c-.104 0-.114-.024-.114-.114V3.352c0-.07.024-.104.104-.104.766-.07 1.581-.08 2.312-.08 1.82 0 2.451.493 2.451 2.17h.003Zm-3.494-.976v1.996h.894c.916 0 1.193-.173 1.193-.975s-.274-1.021-1.193-1.021h-.894Z" - }), po.jsx("path", { + }), io.jsx("path", { d: "m7.053 124.984-2.621-3.302H3.26v3.302H1.502v-8.792h5.7c.6 0 1.012.132 1.244.41.236.278.35.715.35 1.299v2.059c0 .597-.117 1.021-.35 1.298-.235.278-.658.41-1.244.41h-.704L9.5 124.97H7.053v.014Zm.014-6.555c0-.247-.045-.424-.146-.525-.087-.087-.218-.132-.395-.132H3.26v2.396h3.266c.177 0 .308-.045.409-.146.087-.1.132-.277.132-.524v-1.069ZM19.415 124.547c-.218.292-.69.438-1.407.438h-4.774c-.718 0-1.186-.146-1.408-.438-.218-.292-.336-.847-.336-1.635v-4.615c0-.788.118-1.344.336-1.636.219-.305.704-.451 1.408-.451h4.774c.717 0 1.185.146 1.407.451.219.306.337.848.337 1.636v4.615c0 .788-.118 1.343-.337 1.635Zm-1.449-6.733h-4.715v5.49h4.715v-5.49ZM27.968 124.998c.717 0 1.244-.146 1.567-.438.322-.291.482-.729.482-1.284v-1.125c0-.966-.382-1.518-1.144-1.681.731-.146 1.098-.642 1.098-1.476v-1.066c0-.597-.117-1.021-.35-1.298-.235-.278-.644-.424-1.244-.424h-5.713v8.792H27.968Zm.218-3.667c.104.132.146.32.146.615h.014v.67c0 .292-.046.496-.146.597-.1.101-.25.16-.454.16h-3.31v-2.191h3.31c.204 0 .35.045.44.146v.003Zm-.059-3.549c.104.101.16.264.16.483v.847c0 .219-.045.379-.146.469-.087.087-.236.132-.409.132h-3.31v-2.045h3.31c.177 0 .309.028.395.118v-.004Z" - }), po.jsx("path", { + }), io.jsx("path", { d: "M32.669 124.984v-8.778h6.926v1.517h-5.141v1.914h3.002v1.534h-3.002v2.132h5.2v1.681h-6.986Z" - }), po.jsx("path", { + }), io.jsx("path", { d: "m45.104 121.682 2.621 3.302v-.014h2.448l-3.003-3.302h.704c.586 0 1.012-.132 1.245-.41.236-.277.35-.701.35-1.298v-2.059c0-.584-.118-1.021-.35-1.299-.236-.278-.645-.41-1.245-.41h-5.7v8.792h1.758v-3.302h1.172Zm2.49-3.781c.103.1.145.278.145.524v1.066c0 .247-.045.424-.132.524-.104.101-.236.146-.409.146h-3.266v-2.396h3.266c.177 0 .309.045.395.132v.004Z" - }), po.jsx("path", { + }), io.jsx("path", { d: "M55.272 117.8v7.185h-1.789V117.8H50.51v-1.59h7.762v1.59h-3.002.003ZM65.42 124.999c.717 0 1.185-.146 1.42-.452.236-.305.35-.847.337-1.635V121.7c0-.788-.104-1.344-.336-1.636-.236-.305-.704-.451-1.422-.451h-3.924v-1.84h3.983v1.066l1.598-.511v-.191c0-.715-.117-1.212-.35-1.503-.236-.292-.704-.438-1.39-.438h-3.692c-.704 0-1.186.146-1.407.452-.219.291-.337.847-.337 1.635v.979c0 .789.118 1.33.337 1.636.218.305.69.451 1.407.451h3.91v1.959H61.25v-1.094l-1.612.451v.25c0 .788.118 1.344.35 1.636.236.305.704.451 1.421.451h4.015l-.004-.003ZM81.914 124.546c-.235.305-.703.451-1.42.451h-4.016c-.717 0-1.185-.146-1.42-.451-.237-.292-.351-.847-.351-1.636v-.25l1.612-.451v1.094h4.32v-1.959h-3.91c-.719 0-1.186-.146-1.422-.451-.236-.306-.337-.847-.337-1.636v-.979c0-.788.118-1.344.337-1.635.218-.306.703-.452 1.421-.452h3.692c.69 0 1.158.146 1.39.438.236.292.35.788.35 1.503v.191l-1.598.511v-1.066h-3.997v1.84h3.925c.717 0 1.185.146 1.421.452.236.291.336.847.336 1.635v1.212c0 .788-.104 1.33-.336 1.635l.003.004Z" - }), po.jsx("path", { + }), io.jsx("path", { d: "M90.82 121.581c.586 0 1.013-.132 1.245-.41.236-.278.35-.715.35-1.316v-1.958c0-.583-.118-1.021-.35-1.299-.236-.278-.645-.41-1.245-.41h-5.699v8.792h1.758v-3.402h3.941v.003Zm-.294-3.681c.104.101.145.278.145.525v.948c0 .25-.045.423-.131.524-.087.101-.236.146-.41.146h-3.265v-2.278h3.266c.176 0 .308.045.395.132v.003ZM99.491 124.984l-.776-1.913h-3.852l-.763 1.913h-1.785l3.706-8.792h1.713l3.751 8.792h-1.994Zm-2.68-6.719-1.303 3.184h2.548l-1.245-3.184Z" - }), po.jsx("path", { + }), io.jsx("path", { d: "M108.452 124.984c.704 0 1.172-.146 1.408-.438.236-.292.35-.847.336-1.649v-1.039l-1.785-.496v1.941h-3.81v-5.49h3.81v1.695l1.785-.379v-.833c0-.788-.118-1.33-.336-1.636-.236-.305-.69-.451-1.408-.451h-3.882c-.718 0-1.203.146-1.422.451-.218.292-.336.848-.336 1.636v4.615c0 .788.118 1.343.336 1.635.236.292.704.438 1.422.438h3.882ZM113.053 124.984v-8.778h6.926v1.517h-5.141v1.914h3.002v1.534h-3.002v2.132h5.2v1.681h-6.985ZM133.867 119.273c.028.364.028.687.028.965v4.747h-1.64v-8.792h1.29l4.583 5.17c.121.142.222.257.298.351.042.052.08.093.111.132l.028.027c-.007-.229-.011-.423-.017-.587-.007-.232-.014-.399-.014-.493v-4.614h1.626v8.792h-1.29l-4.791-5.417-.035-.045a.966.966 0 0 0-.038-.049c-.042-.052-.097-.118-.146-.184l.007-.003ZM127.437 116.206h1.785v8.792h-1.785v-8.792Z" - }), po.jsx("path", { + }), io.jsx("path", { d: "M147.152 124.998c1.303 0 2.239-.233 2.798-.701.953-.803 1.435-2.046 1.435-3.754 0-1.372-.323-2.438-.967-3.198-.645-.76-1.599-1.139-2.871-1.139h-4.319v8.792h3.924Zm.395-7.202c.617 0 1.113.233 1.467.688.367.451.54 1.125.54 2.017 0 1.007-.218 1.723-.644 2.146-.423.424-1.127.643-2.08.643h-1.817v-5.49h2.534v-.004Z" - }), po.jsx("path", { + }), io.jsx("path", { d: "M161.154 124.547c-.218.291-.69.437-1.407.437h-4.101c-.718 0-1.172-.146-1.408-.437-.236-.292-.336-.848-.336-1.636v-6.705h1.785v7.097h4.042v-7.097h1.772v6.705c-.014.788-.132 1.344-.35 1.636h.003ZM170.119 124.999c.718 0 1.186-.146 1.422-.452.236-.305.336-.847.322-1.635V121.7c0-.788-.104-1.344-.336-1.636-.236-.305-.704-.451-1.421-.451h-3.925v-1.84h3.997v1.066l1.599-.511v-.191c0-.715-.118-1.212-.351-1.503-.235-.292-.703-.438-1.39-.438h-3.692c-.704 0-1.185.146-1.407.452-.219.291-.337.847-.337 1.635v.979c0 .789.118 1.33.337 1.636.218.305.69.451 1.407.451h3.911v1.959h-4.306v-1.094l-1.612.451v.25c0 .788.118 1.344.35 1.636.236.305.704.451 1.421.451h4.015l-.004-.003ZM178.027 117.8v7.185h-1.785V117.8h-2.975v-1.59h7.762v1.59h-3.002Z" - }), po.jsx("path", { + }), io.jsx("path", { d: "m185.529 121.682 2.621 3.302v-.014h2.447l-3.002-3.302h.704c.586 0 1.012-.132 1.245-.41.232-.277.35-.701.35-1.298v-2.059c0-.584-.118-1.021-.35-1.299-.236-.278-.645-.41-1.245-.41H182.6v8.792h1.757v-3.302h1.172Zm2.503-3.781c.104.1.146.278.146.524v1.066c0 .247-.045.424-.132.524-.087.101-.236.146-.409.146h-3.266v-2.396h3.266c.177 0 .308.045.395.132v.004Z" - }), po.jsx("path", { + }), io.jsx("path", { d: "M194.491 116.206h-1.785v8.792h1.785v-8.792ZM197.538 116.206v8.778h6.986v-1.681h-5.201v-2.132h3.003v-1.534h-3.003v-1.914h5.142v-1.517h-6.927ZM214.047 124.547c-.236.305-.704.451-1.422.451h-4.014c-.718 0-1.186-.146-1.422-.451-.235-.292-.336-.847-.336-1.636v-.25l1.612-.451v1.094h4.306v-1.959h-3.911c-.717 0-1.185-.146-1.407-.451-.219-.306-.336-.847-.336-1.636v-.979c0-.788.117-1.344.336-1.635.218-.306.704-.452 1.407-.452h3.692c.69 0 1.158.146 1.391.438.235.292.35.788.35 1.503v.191l-1.598.511v-1.066h-3.998v1.84h3.911c.717 0 1.186.146 1.421.452.236.291.337.847.337 1.635v1.212c.027.788-.087 1.33-.323 1.635l.004.004Z" - }), po.jsx("path", { + }), io.jsx("path", { d: "M79.692 81.754c-1.712 0-3.28-1.3-3.706-2.893l-4.264-18.327 19.511-9.813c4.7-2.309 8.684-7.07 10.106-12.85l6.694-25.98C109.749 5.386 105.617.042 98.926.042H26.758L-.002 106.567h25.339l6.548-25.834 17.078-8.66 6.122 25.688c1.144 4.761 5.977 8.806 10.955 8.806h20.211l6.254-24.827H79.69v.014h.003ZM39.706 49.71l.191-.774 6.064-24.199h29.325c2.27 0 3.838.861 3.28 2.747-.427 1.444-1.422 3.184-4.279 4.614l-34.58 17.612Z" - }), po.jsx("path", { + }), io.jsx("path", { d: "M96.582 81.754h4.292l-6.327 24.827h-4.364l6.385-24.786.014-.045v.004ZM104.975 81.754l-6.267 24.827h4.205l6.313-24.827H104.975ZM113.323 81.754l-6.268 24.827h4.41l6.268-24.827h-4.41Z", fill: "#FFA000" - }), po.jsx("path", { + }), io.jsx("path", { d: "m138.443 33.399 40.704 27.282c4.129 2.746 6.399 9.097 5.273 13.875l-5.831 23.237c-1.127 4.76-6.254 8.806-11.382 8.806h-51.249l6.268-24.827h30.892c2.271 0 3.984-1.59 4.41-3.039.572-1.885.132-3.316-2.139-4.906l-40.998-27.72c-4.129-2.746-6.417-9.097-5.273-13.858l5.831-23.382c1.144-4.76 6.122-8.806 11.104-8.806L184.86.002l-.014.059-6.268 24.681-.014.087h-.027l-38.097-.087c-2.27 0-3.983.861-4.555 3.17-.572 2.323.277 4.046 2.562 5.49l-.004-.003Z" - }), po.jsx("path", { + }), io.jsx("path", { d: "M193.458.057h-.104l.013-.059h-4.395l-.014.06-6.241 24.68-.013.087h4.392l.014-.087 6.348-24.68ZM201.851.057l-6.227 24.68h-4.16l6.299-24.68h4.088ZM203.972 24.738 210.213.057h-4.115l-6.268 24.68h4.146-.004Z", fill: "#FFA000" - }), po.jsx("path", { + }), io.jsx("path", { d: "m214.709.057.014-.059 25.338.06-26.905 106.526h-25.62L214.608.057h.104-.003Z" })] }) - }), po.jsx("div", { + }), io.jsx("div", { className: "sol-c-sign-in__content-wrapper", children: t })] }) })); eo('@layer sol.components{.sol-c-slider{--_thumb-size:var(--sol-c-slider-thumb-size,var(--sol-size-050));--_track-size:var(--sol-c-slider-track-size,var(--sol-size-025));--_size:var(--sol-c-slider-size,100%);--_background-color:var(--sol-color-surface-3);--_foreground-color:var(--sol-color-interactive);--_thumb-opacity:1;--_background-position:right;appearance:none;background:#0000;display:inline-block;inline-size:var(--_size);min-block-size:var(--_thumb-size);transition:opacity var(--sol-motion-250)}.sol-c-slider[style*="--sol-c-slider-progress"]{--_thumb-opacity:0}[dir=rtl] .sol-c-slider{--_background-position:left}.sol-c-slider::-webkit-slider-runnable-track{background:var(--_foreground-color) linear-gradient(var(--_background-color),var(--_background-color)) no-repeat var(--_background-position)/calc(100% - var(--sol-c-slider-progress, 0%));block-size:var(--_track-size);border-radius:var(--sol-radius-8);-webkit-transition:background-color var(--sol-motion-250);transition:background-color var(--sol-motion-250)}.sol-c-slider::-webkit-slider-thumb{appearance:none;background-color:var(--_foreground-color);border:0;border-radius:var(--sol-radius-circle);box-shadow:var(--sol-shadow-200);height:var(--_thumb-size);margin-block-start:calc(var(--_thumb-size)/2*-1 - var(--_track-size)/2*-1);opacity:var(--_thumb-opacity);-webkit-transition:background-color var(--sol-motion-250),opacity var(--sol-motion-250);transition:background-color var(--sol-motion-250),opacity var(--sol-motion-250);width:var(--_thumb-size)}.sol-c-slider::-moz-range-track{background:var(--_foreground-color) linear-gradient(var(--_background-color),var(--_background-color)) no-repeat var(--_background-position)/calc(100% - var(--sol-c-slider-progress, 0%));block-size:var(--_track-size);border-radius:var(--sol-radius-8);-moz-transition:background-color var(--sol-motion-250);transition:background-color var(--sol-motion-250)}.sol-c-slider::-moz-range-thumb{appearance:none;background-color:var(--_foreground-color);border:0;border-radius:var(--sol-radius-circle);box-shadow:var(--sol-shadow-200);height:var(--_thumb-size);opacity:var(--_thumb-opacity);-moz-transition:background-color var(--sol-motion-250),opacity var(--sol-motion-250);transition:background-color var(--sol-motion-250),opacity var(--sol-motion-250);width:var(--_thumb-size)}.sol-c-slider:hover{--_foreground-color:var(--sol-color-interactive-hovered);--_thumb-opacity:1}.sol-c-slider:active{--_foreground-color:var(--sol-color-interactive-pressed);--_thumb-opacity:1}.sol-c-slider:focus,.sol-c-slider:focus-visible{outline:none}.sol-c-slider:focus-visible{--_thumb-opacity:1}.sol-c-slider:focus-visible::-webkit-slider-thumb{outline:var(--sol-focus-width) solid var(--sol-focus-color);outline-offset:var(--sol-focus-offset)}.sol-c-slider:focus-visible::-moz-range-thumb{outline:var(--sol-focus-width) solid var(--sol-focus-color);outline-offset:var(--sol-focus-offset)}.sol-c-slider:disabled{opacity:.2;pointer-events:none}}'); - let Nm = (e, t) => t < e ? e : e + (t - e) / 2, - jm = (0, Ee.forwardRef)((({ - className: e, - defaultValue: t, - max: n = 100, - min: r = 0, - style: i, - onChange: a, - onValueChange: o, - showProgress: s = !1, - value: l, - ...c - }, u) => { - let [d, p] = zo({ + let sy = (e, t) => t < e ? e : e + (t - e) / 2, + ly = (0, Ee.forwardRef)((({ + className: e, + defaultValue: t, + max: n = 100, + min: r = 0, + style: i, + onChange: a, + onValueChange: o, + showProgress: s = !1, + value: l, + ...c + }, u) => { + let [d, p] = Lo({ value: l, - defaultValue: t ?? Nm(r, n), + defaultValue: t ?? sy(r, n), onChange: o }), h = (0, Ee.useCallback)((e => { p(parseFloat(e.target.value)), a && a(e) - }), [a, p]), f = (d - r) / (n - r) * 100, m = Lo("sol-c-slider", e), g = { + }), [a, p]), f = (d - r) / (n - r) * 100, m = Ao("sol-c-slider", e), g = { ...s && { "--sol-c-slider-progress": `${f}%` }, ...i }; - return po.jsx("input", { + return io.jsx("input", { className: m, max: n, min: r, @@ -43537,24 +45878,24 @@ }) })); eo("@layer sol.components{.sol-c-toast{--_border:var(--sol-size-075);--_color:var(--sol-color-status-informative);--_padding:var(--sol-size-100);align-items:flex-start;background-color:var(--sol-color-surface-1);border-inline-start:var(--_border) solid var(--_color);border-radius:var(--sol-radius-8);display:flex;filter:drop-shadow(var(--sol-shadow-100));gap:var(--_padding);padding:var(--_padding);position:relative;transition:border-color var(--sol-motion-250)}.sol-c-toast--negative{--_color:var(--sol-color-status-negative)}.sol-c-toast--notice{--_color:var(--sol-color-status-notice)}.sol-c-toast--positive{--_color:var(--sol-color-status-positive)}.sol-c-toast__icon{color:var(--_color)}.sol-c-toast__close{margin-inline-start:auto}}"); - let Mm = "informative", - Fm = (0, Ee.forwardRef)((({ - actions: e, - children: t, - className: n, - close: r = true, - closeOnClick: i = true, - closeOnEsc: a = true, - duration: o = 4e3, - icon: s, - id: l, - onClick: c, - onClose: u, - pauseOnBlur: d = true, - title: p, - type: h = Mm, - ...f - }, m) => { + let cy = "informative", + uy = (0, Ee.forwardRef)((({ + actions: e, + children: t, + className: n, + close: r = true, + closeOnClick: i = true, + closeOnEsc: a = true, + duration: o = 4e3, + icon: s, + id: l, + onClick: c, + onClose: u, + pauseOnBlur: d = true, + title: p, + type: h = cy, + ...f + }, m) => { let g = (0, Ee.useId)(), v = l ?? g, y = v + "-label", @@ -43562,9 +45903,9 @@ { pause: b, resume: x, - clear: k + clear: w } = ((e, t = 1 / 0, n = !0) => { - let r = Fo(e), + let r = Do(e), i = (0, Ee.useRef)(null), a = (0, Ee.useRef)(null), o = (0, Ee.useRef)(t), @@ -43585,9 +45926,9 @@ resume: c })), [s, l, c]) })((() => u && u(v)), o, !d || (document.hasFocus() ?? !0)), - w = (0, Ee.useCallback)((() => { - u && u(v), k() - }), [k, v, u]); + k = (0, Ee.useCallback)((() => { + u && u(v), w() + }), [w, v, u]); (0, Ee.useEffect)((() => { if (d) return window.addEventListener("blur", b), window.addEventListener("focus", x), () => { window.removeEventListener("blur", b), window.removeEventListener("focus", x) @@ -43595,17 +45936,17 @@ }), [b, d, x]), (0, Ee.useEffect)((() => { if (a && u) { let e = e => { - ("Escape" === e.key || "Esc" === e.key) && w() + ("Escape" === e.key || "Esc" === e.key) && k() }; return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e) } - }), [w, a, v, u]); + }), [k, a, v, u]); let S = (0, Ee.useCallback)((e => { - c && c(e), i && w() - }), [w, i, c]), + c && c(e), i && k() + }), [k, i, c]), E = (0, Ee.useCallback)((e => { - e.stopPropagation(), w() - }), [w]), + e.stopPropagation(), k() + }), [k]), O = (0, Ee.useCallback)((() => { b() }), [b]), @@ -43613,15 +45954,15 @@ x() }), [x]), C = (0, Ee.useCallback)((({ - close: e, - onClick: t - }) => n => { - n.stopPropagation(), e && w(), t && t(n) - }), [w]), - A = Lo("sol-c-toast", h && h !== Mm && `sol-c-toast--${h}`, n), + close: e, + onClick: t + }) => n => { + n.stopPropagation(), e && k(), t && t(n) + }), [k]), + A = Ao("sol-c-toast", h && h !== cy && `sol-c-toast--${h}`, n), P = p || !p && t, T = t && p; - return po.jsxs("div", { + return io.jsxs("div", { "aria-describedby": T ? _ : void 0, "aria-labelledby": P ? y : void 0, className: A, @@ -43631,47 +45972,47 @@ onMouseEnter: O, onMouseLeave: I, ...f, - children: [s && po.jsx(ms, { + children: [s && io.jsx(us, { className: "sol-c-toast__icon", size: "150", source: s - }), (p || t || e) && po.jsxs(Ps, { + }), (p || t || e) && io.jsxs(Es, { className: "sol-c-toast__container", gap: "075", vertical: !0, - children: [(p || t) && po.jsxs(Ps, { + children: [(p || t) && io.jsxs(Es, { gap: "025", vertical: !0, - children: [P && po.jsx(gs, { + children: [P && io.jsx(ds, { className: "sol-c-toast__title", color: "foreground", id: y, offset: !0, variant: "emphasis-m", children: p ?? t - }), T && po.jsx(gs, { + }), T && io.jsx(ds, { className: "sol-c-toast__content", color: "foreground-weak", id: _, variant: "body-s", children: t })] - }), e && po.jsx(Ps, { + }), e && io.jsx(Es, { align: "center", className: "sol-c-toast__actions", gap: "050", wrap: !0, children: e.map((({ - close: e = !0, - label: t, - onClick: n, - ...r - }, i) => po.jsx(xs, { + close: e = !0, + label: t, + onClick: n, + ...r + }, i) => io.jsx(gs, { color: "informative" !== h ? h : "default", size: "medium", variant: i > 0 ? "monochrome" : "default", ...r, - className: Lo("sol-c-toast__action", r.className), + className: Ao("sol-c-toast__action", r.className), onClick: C({ close: e, onClick: n @@ -43679,10 +46020,10 @@ children: t }, i))) })] - }), r && po.jsx(xs, { + }), r && io.jsx(gs, { "aria-label": "string" == typeof r ? r : "Close", className: "sol-c-toast__close", - icon: _o, + icon: ho, onClick: E, size: "small", variant: "monochrome" @@ -43690,18 +46031,18 @@ }) })); eo('@layer sol.components{.sol-c-toasts{align-items:flex-end;display:flex;flex-direction:column;inset:0;justify-content:flex-end;overflow:hidden;padding:var(--sol-size-100);pointer-events:none;position:fixed;z-index:var(--sol-z-toasts)}.sol-c-toasts__wrapper{flex:0 0 auto;inline-size:100%;max-inline-size:31rem}.sol-c-toasts__wrapper>*{pointer-events:auto}.sol-c-toasts__wrapper:before{content:"";display:block;height:var(--sol-size-100)}}'); - let zm = (0, Ee.forwardRef)((({ - className: e, - style: t, - toasts: n, - component: r = Fm, - ...i - }, a) => { + let dy = (0, Ee.forwardRef)((({ + className: e, + style: t, + toasts: n, + component: r = uy, + ...i + }, a) => { let o = (0, Ee.useMemo)((() => new WeakMap), []), [s, l] = (0, Ee.useState)(0); - Vo((() => l(document.querySelector(".sol-c-app-header")?.clientHeight ?? 0)), []); + No((() => l(document.querySelector(".sol-c-app-header")?.clientHeight ?? 0)), []); let c = function(e, t, n) { - let r = Yd.fun(t) && t, + let r = xf.fun(t) && t, { reset: i, sort: a, @@ -43712,18 +46053,18 @@ ref: u, config: d } = r ? r() : t, - p = (0, Ee.useMemo)((() => r || 3 == arguments.length ? Af() : void 0), []), - h = Jd(e), + p = (0, Ee.useMemo)((() => r || 3 == arguments.length ? ev() : void 0), []), + h = Ef(e), f = [], m = (0, Ee.useRef)(null), g = i ? null : m.current; - oh((() => { + Rm((() => { m.current = f - })), lh((() => (Zd(f, (e => { + })), Lm((() => (kf(f, (e => { p?.add(e.ctrl), e.ctrl.ref = p })), () => { - Zd(m.current, (e => { - e.expired && clearTimeout(e.expirationId), zh(e.ctrl, p), e.ctrl.stop(!0) + kf(m.current, (e => { + e.expired && clearTimeout(e.expirationId), dg(e.ctrl, p), e.ctrl.stop(!0) })) }))); let v = function(e, { @@ -43734,35 +46075,35 @@ let t = new Set; return e.map((e => { let n = r && r.find((n => n.item === e && "leave" !== n.phase && !t.has(n))); - return n ? (t.add(n), n.key) : Tf++ + return n ? (t.add(n), n.key) : nv++ })) } - return Yd.und(n) ? e : Yd.fun(n) ? e.map(n) : Jd(n) + return xf.und(n) ? e : xf.fun(n) ? e.map(n) : Ef(n) }(h, r ? r() : t, g), y = i && m.current || []; - oh((() => Zd(y, (({ - ctrl: e, - item: t, - key: n - }) => { - zh(e, p), Ih(c, t, n) + Rm((() => kf(y, (({ + ctrl: e, + item: t, + key: n + }) => { + dg(e, p), Jm(c, t, n) })))); let _ = []; - if (g && Zd(g, ((e, t) => { - e.expired ? (clearTimeout(e.expirationId), y.push(e)) : ~(t = _[t] = v.indexOf(e.key)) && (f[t] = e) - })), Zd(h, ((e, t) => { - f[t] || (f[t] = { - key: v[t], - item: e, - phase: "mount", - ctrl: new _f - }, f[t].ctrl.item = e) - })), _.length) { + if (g && kf(g, ((e, t) => { + e.expired ? (clearTimeout(e.expirationId), y.push(e)) : ~(t = _[t] = v.indexOf(e.key)) && (f[t] = e) + })), kf(h, ((e, t) => { + f[t] || (f[t] = { + key: v[t], + item: e, + phase: "mount", + ctrl: new $g + }, f[t].ctrl.item = e) + })), _.length) { let e = -1, { leave: n } = r ? r() : t; - Zd(_, ((t, r) => { + kf(_, ((t, r) => { let i = g[r]; ~t ? (e = f.indexOf(i), f[e] = { ...i, @@ -43770,18 +46111,18 @@ }) : n && f.splice(++e, 0, i) })) } - Yd.fun(a) && f.sort(((e, t) => a(e.item, t.item))); + xf.fun(a) && f.sort(((e, t) => a(e.item, t.item))); let b = -o, - x = sh(), - k = Rh(t), - w = new Map, + x = Dm(), + w = ig(t), + k = new Map, S = (0, Ee.useRef)(new Map), E = (0, Ee.useRef)(!1); - Zd(f, ((e, n) => { + kf(f, ((e, n) => { let i, a, c = e.key, p = e.phase, h = r ? r() : t, - f = Ih(h.delay || 0, c); + f = Jm(h.delay || 0, c); if ("mount" == p) i = h.enter, a = "enter"; else { let e = 0 > v.indexOf(c); @@ -43796,31 +46137,31 @@ i = h.enter, a = "enter" } } - if (i = Ih(i, e.item, n), !(i = Yd.obj(i) ? Nh(i) : { - to: i - }).config) { - let t = d || k.config; - i.config = Ih(t, e.item, n, a) + if (i = Jm(i, e.item, n), !(i = xf.obj(i) ? sg(i) : { + to: i + }).config) { + let t = d || w.config; + i.config = Jm(t, e.item, n, a) } b += o; let y = { - ...k, + ...w, delay: f + b, ref: u, immediate: h.immediate, reset: !1, ...i }; - if ("enter" == a && Yd.und(y.from)) { + if ("enter" == a && xf.und(y.from)) { let i = r ? r() : t, - a = Yd.und(i.initial) || g ? i.from : i.initial; - y.from = Ih(a, e.item, n) + a = xf.und(i.initial) || g ? i.from : i.initial; + y.from = Jm(a, e.item, n) } let { onResolve: _ } = y; y.onResolve = e => { - Ih(_, e); + Jm(_, e); let t = m.current, n = t.find((e => e.key === c)); if (n) { @@ -43828,7 +46169,7 @@ if (n.ctrl.idle) { let e = t.every((e => e.ctrl.idle)); if ("leave" == n.phase) { - let t = Ih(s, n.item); + let t = Jm(s, n.item); if (!1 !== t) { let r = !0 === t ? 0 : t; if (n.expired = !0, !e && r > 0) return void(r <= 2147483647 && (n.expirationId = setTimeout(x, r))) @@ -43838,53 +46179,53 @@ } } }; - let O = kf(e.ctrl, y); + let O = Hg(e.ctrl, y); "leave" === a && l ? S.current.set(e, { phase: a, springs: O, payload: y - }) : w.set(e, { + }) : k.set(e, { phase: a, springs: O, payload: y }) })); - let O = (0, Ee.useContext)(If), - I = uh(O), - C = O !== I && Mh(O); - oh((() => { - C && Zd(f, (e => { + let O = (0, Ee.useContext)(Xg), + I = jm(O), + C = O !== I && cg(O); + Rm((() => { + C && kf(f, (e => { e.ctrl.start({ default: O }) })) - }), [O]), Zd(w, ((e, t) => { + }), [O]), kf(k, ((e, t) => { if (S.current.size) { let e = f.findIndex((e => e.key === t.key)); f.splice(e, 1) } - })), oh((() => { - Zd(S.current.size ? S.current : w, (({ - phase: e, - payload: t - }, n) => { + })), Rm((() => { + kf(S.current.size ? S.current : k, (({ + phase: e, + payload: t + }, n) => { let { ctrl: r } = n; n.phase = e, p?.add(r), C && "enter" == e && r.start({ default: O - }), t && (Vh(r, t.ref), !r.ref && !p || E.current ? (r.start(t), E.current && (E.current = !1)) : r.update(t)) + }), t && (pg(r, t.ref), !r.ref && !p || E.current ? (r.start(t), E.current && (E.current = !1)) : r.update(t)) })) }), void 0); let A = e => Ee.createElement(Ee.Fragment, null, f.map(((t, n) => { let { springs: r - } = w.get(t) || t.ctrl, i = e({ + } = k.get(t) || t.ctrl, i = e({ ...r }, t.item, t, n); return i && i.type ? Ee.createElement(i.type, { ...i.props, - key: Yd.str(t.key) || Yd.num(t.key) ? t.key : t.ctrl.id, + key: xf.str(t.key) || xf.num(t.key) ? t.key : t.ctrl.id, ref: i.ref }) : i }))); @@ -43915,22 +46256,22 @@ friction: 30 } }), - u = Lo("sol-c-toasts", e), + u = Ao("sol-c-toasts", e), d = { ...t, top: s }; - return po.jsx("ul", { + return io.jsx("ul", { "aria-live": "polite", className: u, ref: a, style: d, ...i, - children: c(((e, t) => po.jsx(Hf.li, { + children: c(((e, t) => io.jsx(yv.li, { className: "sol-c-toasts__wrapper", ref: e => e && o.set(t, e), style: e, - children: po.jsx(r, { + children: io.jsx(r, { role: "status", ...t }) @@ -43938,20 +46279,20 @@ }) })); eo("@layer sol.components{.sol-c-tutorial{background:var(--sol-color-surface-2);border-radius:var(--sol-radius-4);box-shadow:var(--sol-shadow-100);inline-size:30rem;min-block-size:10rem;padding:var(--sol-size-100)}.sol-c-tutorial__footer{margin-block-start:auto}#walktour-portal{color:var(--sol-color-overlay);z-index:var(--sol-z-tutorial)!important}#walktour-tooltip-container{outline:none}}"); - let Vm = ({ - targetInfo: e, - disableMaskInteraction: t, - padding: n, - radius: r, - tourRoot: i, - close: a, - disableCloseOnClick: o, - maskId: s - }) => { + let py = ({ + targetInfo: e, + disableMaskInteraction: t, + padding: n, + radius: r, + tourRoot: i, + close: a, + disableCloseOnClick: o, + maskId: s + }) => { let { width: l, height: c - } = Bo({ + } = Mo({ ref: i }), u = `clip-path-${s}`, d = (0, Ee.useMemo)((() => { if (!e) return ""; @@ -43967,20 +46308,20 @@ } = e, s = o - n, u = a - n, d = a + i + n, p = o + t + n, h = l || 0, f = c || 0; return r > 0 ? `M 0, 0\n L 0, ${f}\n L ${u}, ${f}\n L ${u}, ${s+r}\n Q ${u}, ${s}, ${u+r}, ${s}\n L ${d-r}, ${s}\n Q ${d}, ${s}, ${d}, ${s+r}\n L ${d}, ${p-r}\n Q ${d}, ${p}, ${d-r}, ${p}\n L ${u+r}, ${p}\n Q ${u}, ${p}, ${u}, ${p-r}\n L ${u}, ${f}\n L ${h}, ${f}\n L ${h}, 0` : `M 0, 0\n L 0, ${f}\n L ${u}, ${f}\n L ${u}, ${s}\n L ${d}, ${s}\n L ${d}, ${p}\n L ${u}, ${p}\n L ${u}, ${f}\n L ${h}, ${f}\n L ${h}, 0` }), [c, l, n, r, e]); - return po.jsxs("svg", { + return io.jsxs("svg", { style: { height: c, width: l, pointerEvents: t ? "auto" : "none" }, - children: [e && po.jsx("defs", { - children: po.jsx("clipPath", { + children: [e && io.jsx("defs", { + children: io.jsx("clipPath", { id: u, - children: po.jsx("path", { + children: io.jsx("path", { d: d }) }) - }), po.jsx("rect", { + }), io.jsx("rect", { onClick: o ? void 0 : a, x: 0, y: 0, @@ -43992,54 +46333,54 @@ })] }) }, - Um = ({ - allSteps: e, - close: t, - counterSeparator: n, - doneLabel: r, - next: i, - nextLabel: a, - skipLabel: o, - stepContent: { - title: s, - description: l - }, - stepIndex: c - }) => { + hy = ({ + allSteps: e, + close: t, + counterSeparator: n, + doneLabel: r, + next: i, + nextLabel: a, + skipLabel: o, + stepContent: { + title: s, + description: l + }, + stepIndex: c + }) => { let u = c === e.length - 1; - return po.jsxs(Ps, { + return io.jsxs(Es, { className: "sol-c-tutorial", vertical: !0, gap: "050", - children: [po.jsxs(Ps, { + children: [io.jsxs(Es, { className: "sol-c-tutorial__content", gap: "025", vertical: !0, - children: [po.jsx(gs, { + children: [io.jsx(ds, { as: "h2", color: "foreground", variant: "emphasis-m", children: s - }), l && po.jsx(gs, { + }), l && io.jsx(ds, { color: "foreground-weak", className: "sol-u-margin-bs-050", variant: "body-s", children: l })] - }), po.jsxs(Ps, { + }), io.jsxs(Es, { align: "center", className: "sol-c-tutorial__footer", gap: "050", - children: [po.jsxs(gs, { + children: [io.jsxs(ds, { className: "sol-c-tutorial__counter sol-u-margin-ie-auto", color: "foreground-weak", variant: "body-xs", children: [c + 1, n, e.length] - }), !u && po.jsx(xs, { + }), !u && io.jsx(gs, { onClick: () => t(), variant: "plain", children: o - }), po.jsx(xs, { + }), io.jsx(gs, { onClick: () => { u ? t() : i() }, @@ -44048,29 +46389,29 @@ })] }) }, - Bm = 'a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, [tabindex]:not([tabindex^="-"]):not([disabled]), [contenteditable]'; + fy = 'a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, [tabindex]:not([tabindex^="-"]):not([disabled]), [contenteditable]'; - function Gm(e) { + function my(e) { return { x: e.scrollLeft, y: e.scrollTop } } - function $m(e, t) { - let n = Gm(e); + function gy(e, t) { + let n = my(e); return { x: t.x + n.x, y: t.y + n.y } } - function qm(e, t) { + function vy(e, t) { if (t && e) { - if (ng(e)) return $m(e, t); + if (Cy(e)) return gy(e, t); { - let n = eg(e); - return $m(e, { + let n = Oy(e); + return gy(e, { x: t.x - n.x, y: t.y - n.y }) @@ -44078,49 +46419,49 @@ } } - function Wm(e, t, n) { + function yy(e, t, n) { return { x: e.x + t.width / 2 - n.width / 2, y: e.y + t.height / 2 - n.height / 2 } } - function Hm(e, t, n, r, i) { + function _y(e, t, n, r, i) { if (!e || !t || !n) return; - let a = r || eg(t), - o = i || eg(n), - s = tg(t), - l = tg(n), + let a = r || Oy(t), + o = i || Oy(n), + s = Iy(t), + l = Iy(n), { coords: c, dims: u - } = rg(a, s, o, l); - return Wm(c, u, lg(e)) + } = Ay(a, s, o, l); + return yy(c, u, Ly(e)) } - function Km(e, t, n) { + function by(e, t, n) { if (!e) return; - return Wm(n || ug(e), lg(e), t ? tg(t) : { + return yy(n || jy(e), Ly(e), t ? Iy(t) : { height: 0, width: 0 }) } - function Ym(e, t, n, r) { - let i = Km(e, t), + function xy(e, t, n, r) { + let i = by(e, t), a = i, - o = a => !r || hg(e, n) && hg(e, t, a, !0) ? i : Km(e, t, fg(e, Hm(e, t, n, a))); + o = a => !r || zy(e, n) && zy(e, t, a, !0) ? i : by(e, t, Vy(e, _y(e, t, n, a))); return (e, t, n, r) => { - if (t.orientation === ao.CENTER) return n === r.length - 1 && void 0 === e ? t : e; + if (t.orientation === sp.CENTER) return n === r.length - 1 && void 0 === e ? t : e; if (void 0 === e) return a = o(t.coords), t; { let n = o(t.coords); - return Jm(n, t.coords) > Jm(a, e.coords) ? e : (a = n, t) + return Ey(n, t.coords) > Ey(a, e.coords) ? e : (a = n, t) } } } - function Qm(e) { + function wy(e) { let { target: t, tooltip: n, @@ -44132,50 +46473,50 @@ disableAutoScroll: l, allowForeignTarget: c, selector: u - } = e, d = t ? Km(s, n, fg(s, function(e, t) { - let n = tg(t); - return Wm(eg(t), n, lg(e)) - }(s, t))) : Km(s, n), p = qm(s, d); + } = e, d = t ? by(s, n, Vy(s, function(e, t) { + let n = Iy(t); + return yy(Oy(t), n, Ly(e)) + }(s, t))) : by(s, n), p = vy(s, d); if (!n || !s) return; if (!t) return { orientation: null, coords: p }; - let h = c && sg(s, u), + let h = c && Dy(s, u), f = l || h, m = function(e, t, n, r, i) { let a; if (!e || !t) return; - let o = tg(t), - s = eg(e), - l = tg(e), + let o = Iy(t), + s = Oy(e), + l = Iy(e), c = s.x - (o.width - l.width) / 2, u = s.y - (o.height - l.height) / 2, d = s.x + l.width + n + r, p = s.y + l.height + n + r, h = s.x - o.width - n - r, f = s.y - o.height - n - r, - m = Wm(s, l, o), + m = yy(s, l, o), g = [{ - orientation: ao.EAST, + orientation: sp.EAST, coords: { x: d, y: u } }, { - orientation: ao.SOUTH, + orientation: sp.SOUTH, coords: { x: c, y: p } }, { - orientation: ao.WEST, + orientation: sp.WEST, coords: { x: h, y: u } }, { - orientation: ao.NORTH, + orientation: sp.NORTH, coords: { x: c, y: f @@ -44187,49 +46528,49 @@ r = s.x - n, i = s.y - n; a = [{ - orientation: ao.EASTNORTH, + orientation: sp.EASTNORTH, coords: { x: d, y: i } }, { - orientation: ao.EASTSOUTH, + orientation: sp.EASTSOUTH, coords: { x: d, y: t } }, { - orientation: ao.SOUTHEAST, + orientation: sp.SOUTHEAST, coords: { x: e, y: p } }, { - orientation: ao.SOUTHWEST, + orientation: sp.SOUTHWEST, coords: { x: r, y: p } }, { - orientation: ao.WESTSOUTH, + orientation: sp.WESTSOUTH, coords: { x: h, y: t } }, { - orientation: ao.WESTNORTH, + orientation: sp.WESTNORTH, coords: { x: h, y: i } }, { - orientation: ao.NORTHWEST, + orientation: sp.NORTHWEST, coords: { x: r, y: f } }, { - orientation: ao.NORTHEAST, + orientation: sp.NORTHEAST, coords: { x: e, y: f @@ -44237,22 +46578,22 @@ }] } return [...g, ...a, { - orientation: ao.CENTER, + orientation: sp.CENTER, coords: m }] }(t, n, r, i), g = o || (e => function(e, t, n, r, i) { if (1 === e.length) return e[0]; { - if (i) return e.reduce(Ym(t, n, r, !1), void 0); - let a = lg(t), - o = dg(t), - s = ug(t), - l = pg(t), - c = tg(n), - u = tg(r), - d = eg(r), - p = e => rg(e, c, d, u), + if (i) return e.reduce(xy(t, n, r, !1), void 0); + let a = Ly(t), + o = My(t), + s = jy(t), + l = Fy(t), + c = Iy(n), + u = Iy(r), + d = Oy(r), + p = e => Ay(e, c, d, u), h = e.filter((e => { let t = e.coords; return !(t.x < o.x || t.y < o.y || t.x + c.width > l.x || t.y + c.height > l.y) @@ -44262,7 +46603,7 @@ { dims: n } = p(t); - return ig(n, a) + return Py(n, a) })), m = f.filter((e => { let t = e.coords, @@ -44270,10 +46611,10 @@ dims: n, coords: r } = p(t); - return ag(n, a, r, s) + return Ty(n, a, r, s) })), g = m.length > 0 ? m : f; - return (g.length > 0 ? g : h).reduce(Ym(t, n, r, !0), void 0) + return (g.length > 0 ? g : h).reduce(xy(t, n, r, !0), void 0) } }(e, s, n, t, f)), v = g(function(e, t) { @@ -44285,19 +46626,19 @@ } }(m, a)); if (!v) return { - orientation: ao.CENTER, + orientation: sp.CENTER, coords: p }; let y = { orientation: v.orientation, - coords: qm(s, v.coords) + coords: vy(s, v.coords) }; return h ? { orientation: y.orientation, coords: function(e, t, n, r) { if (!e) return t; - let i = Gm(e), - a = lg(e), + let i = my(e), + a = Ly(e), o = i.x + a.width, s = i.y + a.height, l = i.x + r, @@ -44310,23 +46651,23 @@ x: p, y: h } - }(s, y.coords, tg(n), r + i) + }(s, y.coords, Iy(n), r + i) } : y } - function Zm(e) { + function ky(e) { return !!e && (!!e.x || 0 === e.x) && (!!e.y || 0 === e.y) } - function Xm(e) { + function Sy(e) { return !!e && (!!e.height || 0 === e.height) && (!!e.width || 0 === e.height) && !(e.height < 0) && !(e.width < 0) } - function Jm(e, t) { - if (Zm(e) && Zm(t)) return Math.sqrt(Math.pow(Math.abs(e.x - t.x), 2) + Math.pow(Math.abs(e.y - t.y), 2)) + function Ey(e, t) { + if (ky(e) && ky(t)) return Math.sqrt(Math.pow(Math.abs(e.x - t.x), 2) + Math.pow(Math.abs(e.y - t.y), 2)) } - function eg(e) { + function Oy(e) { if (!e) return; let t = e.getBoundingClientRect(); return { @@ -44335,7 +46676,7 @@ } } - function tg(e) { + function Iy(e) { if (!e) return; let t = e.getBoundingClientRect(); return { @@ -44344,11 +46685,11 @@ } } - function ng(e) { + function Cy(e) { return e.isSameNode(document.body) || e.isSameNode(document.scrollingElement) || e.isSameNode(document.documentElement) } - function rg(e, t, n, r) { + function Ay(e, t, n, r) { let i = (e, t) => ({ left: e.x, right: e.x + t.width, @@ -44373,32 +46714,32 @@ } } - function ig(e, t) { - return !(!Xm(e) || !Xm(t)) && e.height <= t.height && e.width <= t.width + function Py(e, t) { + return !(!Sy(e) || !Sy(t)) && e.height <= t.height && e.width <= t.width } - function ag(e, t, n, r) { - if (!Xm(e) || !Xm(t)) return !1; - let i = Zm(n) ? n : { + function Ty(e, t, n, r) { + if (!Sy(e) || !Sy(t)) return !1; + let i = ky(n) ? n : { x: 0, y: 0 }, - a = Zm(r) ? r : { + a = ky(r) ? r : { x: 0, y: 0 }, - o = ig(e, t), + o = Py(e, t), s = i.x >= a.x && i.x + e.width <= a.x + t.width, l = i.y >= a.y && i.y + e.height <= a.y + t.height; return o && s && l } - function og(e, t, n) { + function Ry(e, t, n) { if (t) { let e = function(e, t) { - let n = e.querySelectorAll(Bm), + let n = e.querySelectorAll(fy), r = []; - return t && e.matches(Bm) && r.push(e), n.length > 0 && n.forEach((e => r.push(e))), r + return t && e.matches(fy) && r.push(e), n.length > 0 && n.forEach((e => r.push(e))), r }(t, n); if (e.length > 0) return { start: e[0], @@ -44411,70 +46752,70 @@ } } - function sg(e, t) { + function Dy(e, t) { return !e.querySelector(t) } - function lg(e) { + function Ly(e) { return { width: e.clientWidth, height: e.clientHeight } } - function cg(e) { + function Ny(e) { return { width: e.scrollWidth, height: e.scrollHeight } } - function ug(e) { - return ng(e) ? { + function jy(e) { + return Cy(e) ? { x: 0, y: 0 - } : eg(e) + } : Oy(e) } - function dg(e) { - let t = Gm(e), - n = ug(e); + function My(e) { + let t = my(e), + n = jy(e); return { x: n.x - t.x, y: n.y - t.y } } - function pg(e) { - let t = dg(e), + function Fy(e) { + let t = My(e), { width: n, height: r - } = cg(e); + } = Ny(e); return { x: t.x + n, y: t.y + r } } - function hg(e, t, n, r) { + function zy(e, t, n, r) { if (!e || !t) return !1; - let i = n && (r ? qm(e, n) : n) || qm(e, eg(t)), - a = tg(t), - o = qm(e, ug(e)); - return ag(a, lg(e), i, o) + let i = n && (r ? vy(e, n) : n) || vy(e, Oy(t)), + a = Iy(t), + o = vy(e, jy(e)); + return Ty(a, Ly(e), i, o) } - function fg(e, t) { - let n = lg(e), - r = dg(e), - i = pg(e), + function Vy(e, t) { + let n = Ly(e), + r = My(e), + i = Fy(e), a = i.x - n.width, o = i.y - n.height; return t.x < r.x ? t.x = r.x : t.x > a ? t.x = a : t.x = t.x, t.y < r.y ? t.y = r.y : t.y > o ? t.y = o : t.y = t.y, t } - function mg(e) { + function Uy(e) { let { targetInfo: t, disableMaskInteraction: n, @@ -44487,17 +46828,17 @@ } = e, { width: c, height: u - } = cg(a), d = `clip-path-${l}`; - return po.jsxs("svg", { + } = Ny(a), d = `clip-path-${l}`; + return io.jsxs("svg", { style: { height: u, width: c, pointerEvents: n ? "auto" : "none" }, - children: [t && po.jsx("defs", { - children: po.jsx("clipPath", { + children: [t && io.jsx("defs", { + children: io.jsx("clipPath", { id: d, - children: po.jsx("path", { + children: io.jsx("path", { d: (e => { if (!e) return ""; let { @@ -44508,7 +46849,7 @@ })(t) }) }) - }), po.jsx("rect", { + }), io.jsx("rect", { onClick: s ? void 0 : o, x: 0, y: 0, @@ -44520,8 +46861,8 @@ clipPath: t ? `url(#${d})` : void 0 })] }) - }(lo = ao || (ao = {})).EAST = "east", lo.SOUTH = "south", lo.WEST = "west", lo.NORTH = "north", lo.CENTER = "center", lo.EASTNORTH = "east-north", lo.EASTSOUTH = "east-south", lo.SOUTHEAST = "south-east", lo.SOUTHWEST = "south-west", lo.WESTSOUTH = "west-south", lo.WESTNORTH = "west-north", lo.NORTHWEST = "north-west", lo.NORTHEAST = "north-east"; - let gg = { + }(rp = sp || (sp = {})).EAST = "east", rp.SOUTH = "south", rp.WEST = "west", rp.NORTH = "north", rp.CENTER = "center", rp.EASTNORTH = "east-north", rp.EASTSOUTH = "east-south", rp.SOUTHEAST = "south-east", rp.SOUTHWEST = "south-west", rp.WESTSOUTH = "west-south", rp.WESTNORTH = "west-north", rp.NORTHWEST = "north-west", rp.NORTHEAST = "north-east"; + let By = { cursor: "pointer", padding: "4px 16px", textAlign: "center", @@ -44532,7 +46873,7 @@ fontSize: 14, margin: 4 }, - vg = { + Gy = { tooltip: { display: "flex", flexDirection: "column", @@ -44560,32 +46901,32 @@ margin: 4 }, primaryButton: { - ...gg, + ...By, backgroundColor: "#0084ff", color: "#ffffff" }, secondaryButton: { - ...gg, + ...By, backgroundColor: "#8400ff", color: "#fff", border: "solid 1px #8400ff" }, tertiaryButton: { - ...gg, + ...By, marginRight: "auto", backgroundColor: "transparent", color: "#025c53", border: "solid 1px #025c53" }, disabledButton: { - ...gg, + ...By, backgroundColor: "#bebebe", color: "#989898", cursor: "default" } }; - function yg(e) { + function $y(e) { let { next: t, prev: n, @@ -44607,22 +46948,22 @@ allSteps: g, styles: v } = { - styles: vg, + styles: Gy, ...e }, y = { ...v.tooltip }, _ = void 0 !== d ? d : 0 === m, b = void 0 !== u ? u : m + 1 === g.length; - return po.jsxs("div", { + return io.jsxs("div", { style: y, - children: [o ? o(i, e) : i && po.jsx("div", { + children: [o ? o(i, e) : i && io.jsx("div", { style: v.title, children: i - }), s ? s(a, e) : po.jsx("div", { + }), s ? s(a, e) : io.jsx("div", { style: v.description, children: a - }), l ? l(e) : po.jsxs("div", { + }), l ? l(e) : io.jsxs("div", { style: v.footer, - children: [po.jsx("button", { + children: [io.jsx("button", { onClick: () => r(), style: { ...v.tertiaryButton, @@ -44630,7 +46971,7 @@ }, disabled: c, children: f || "close" - }), po.jsx("button", { + }), io.jsx("button", { onClick: n, disabled: _, style: { @@ -44638,7 +46979,7 @@ ..._ && v.disabledButton }, children: h || "prev" - }), po.jsx("button", { + }), io.jsx("button", { onClick: () => t(), disabled: b, style: { @@ -44651,11 +46992,11 @@ }) } - function _g(e, t) { + function qy(e, t) { return `${e}${t?`-${t}`:""}` } - function bg(e) { + function Wy(e) { let { start: t, end: n, @@ -44668,7 +47009,7 @@ } } - function xg(e) { + function Hy(e) { let { root: t, tooltip: n, @@ -44677,19 +47018,19 @@ allowForeignTarget: a, selector: o } = e; - return !!t && !!n && !!r && !i && (a && o ? !sg(t, o) : function(e) { + return !!t && !!n && !!r && !i && (a && o ? !Dy(t, o) : function(e) { let { root: t, tooltip: n, tooltipPosition: r, target: i } = e; - return !hg(t, n, r) || !hg(t, i) && ig(tg(i), lg(t)) + return !zy(t, n, r) || !zy(t, i) && Py(Iy(i), Ly(t)) }({ ...e })) } - let kg = { + let Ky = { maskPadding: 5, maskRadius: 0, tooltipSeparation: 10, @@ -44700,17 +47041,17 @@ renderTolerance: 2, updateInterval: 500 }, - wg = e => { + Yy = e => { let { steps: t, initialStepIndex: n, isOpen: r - } = e, i = void 0 !== r, [a, o] = (0, Ee.useState)(void 0 == r), [s, l] = (0, Ee.useState)(void 0), [c, u] = (0, Ee.useState)(void 0), [d, p] = (0, Ee.useState)(n || 0), [h, f] = (0, Ee.useState)(void 0), m = (0, Ee.useRef)([]), g = (0, Ee.useRef)(void 0), v = (0, Ee.useRef)(void 0), y = (0, Ee.useRef)(void 0), _ = (0, Ee.useRef)(void 0), b = t[d], x = i ? r : a, k = { - ...kg, + } = e, i = void 0 !== r, [a, o] = (0, Ee.useState)(void 0 == r), [s, l] = (0, Ee.useState)(void 0), [c, u] = (0, Ee.useState)(void 0), [d, p] = (0, Ee.useState)(n || 0), [h, f] = (0, Ee.useState)(void 0), m = (0, Ee.useRef)([]), g = (0, Ee.useRef)(void 0), v = (0, Ee.useRef)(void 0), y = (0, Ee.useRef)(void 0), _ = (0, Ee.useRef)(void 0), b = t[d], x = i ? r : a, w = { + ...Ky, ...e, ...b }, { - selector: w, + selector: k, maskPadding: S, maskRadius: E, disableMaskInteraction: O, @@ -44743,19 +47084,19 @@ nextOnTargetClick: J, validateNextOnTargetClick: ee, renderMask: te - } = k; + } = w; (0, Ee.useEffect)((() => ie), []), (0, Ee.useEffect)((() => { let e; D && (e = document.querySelector(D)), e || (e = function e(t) { let n = (e, t) => getComputedStyle(e, null).getPropertyValue(t); - return !t || ng(t) ? function() { + return !t || Cy(t) ? function() { let e = window.pageYOffset; return document.documentElement.scrollTop = e + 1, window.pageXOffset > e ? (document.documentElement.scrollTop = e, document.documentElement) : document.scrollingElement || document.body }() : /(auto|scroll)/.test(n(t, "overflow") + n(t, "overflow-y") + n(t, "overflow-x")) ? t : e(t.parentElement) }(v.current)), !1 !== x && e !== h && f(e) }), [D, v.current, x]), (0, Ee.useEffect)((() => { Z && console.log(`walktour debug (${U?`${U}, `:""}${d}):`, { - "options:": k, + "options:": w, "tour logic:": oe, "previous state/vars:": { isOpenState: a, @@ -44773,12 +47114,12 @@ let e = g.current; if (!h || !e) return l(null), u(null), y.current = null, void(_.current = null); let t = X ? document : h, - n = () => t.querySelector(w), + n = () => t.querySelector(k), r = n(), - i = qm(h, eg(r)), - a = tg(r), + i = vy(h, Oy(r)), + a = Iy(r), o = W ? 0 : S, - s = Qm({ + s = wy({ target: r, tooltip: e, padding: o, @@ -44788,7 +47129,7 @@ getPositionFromCandidates: B, disableAutoScroll: V, allowForeignTarget: X, - selector: w + selector: k }); l(r), u(s), y.current = i, _.current = a; let c = ((e, t, n) => { @@ -44797,17 +47138,17 @@ let { start: o, end: s - } = og(e, e), { + } = Ry(e, e), { start: l, end: c - } = og(void 0, t, !0); - t && !n && l && c && (i = l, r = c, a = bg({ + } = Ry(void 0, t, !0); + t && !n && l && c && (i = l, r = c, a = Wy({ start: l, end: c, beforeStart: s, afterEnd: o }), t.addEventListener("keydown", a)); - let u = bg({ + let u = Wy({ start: o, end: s, beforeStart: r, @@ -44818,25 +47159,25 @@ t && t.removeEventListener("keydown", a), e.removeEventListener("keydown", u) } })(e, r, O); - if (m.current.push(c), xg({ - disableAutoScroll: V, - allowForeignTarget: X, - selector: w, - root: h, - target: r, - tooltip: e, - tooltipPosition: s.coords - }) && function(e, t, n) { - if (!e || !t) return; - if ("scrollBehavior" in document.documentElement.style && !n) { - let n = { - top: t.y, - left: t.x, - behavior: "smooth" - }; - e.scrollTo(n) - } else e.scrollTop = t.y, e.scrollLeft = t.x - }(h, Hm(h, e, r, s.coords, i), Q), !Y) { + if (m.current.push(c), Hy({ + disableAutoScroll: V, + allowForeignTarget: X, + selector: k, + root: h, + target: r, + tooltip: e, + tooltipPosition: s.coords + }) && function(e, t, n) { + if (!e || !t) return; + if ("scrollBehavior" in document.documentElement.style && !n) { + let n = { + top: t.y, + left: t.x, + behavior: "smooth" + }; + e.scrollTo(n) + } else e.scrollTop = t.y, e.scrollLeft = t.x + }(h, _y(h, e, r, s.coords, i), Q), !Y) { let t = () => { let t = n(); (function(e) { @@ -44854,16 +47195,16 @@ } = e; if (!n && !r && !i) return !1; if (!n && r && i || n && !r && !i) return !0; - let o = tg(n), - s = qm(t, eg(n)), + let o = Iy(n), + s = vy(t, Oy(n)), l = function(e, t) { - if (Xm(e) && Xm(t)) return Math.abs(e.height * e.width - t.height * t.width) + if (Sy(e) && Sy(t)) return Math.abs(e.height * e.width - t.height * t.width) }(o, i) > a, - c = Jm(s, r) > a; + c = Ey(s, r) > a; return l || c }({ ...e - }) || xg({ + }) || Hy({ ...e }) || function(e) { let { @@ -44872,7 +47213,7 @@ tooltip: r, tooltipPosition: i } = e; - return !(t || !n || !r) && 0 !== Jm(Qm({ + return !(t || !n || !r) && 0 !== Ey(wy({ ...e }).coords, i) }({ @@ -44888,7 +47229,7 @@ targetCoords: y.current, targetDims: _.current, allowForeignTarget: X, - selector: w, + selector: k, getPositionFromCandidates: B, orientationPreferences: P, padding: o, @@ -44916,7 +47257,7 @@ customSetListener: H, customRemoveListener: K }); - if (m.current.push(i), G && (r || w)) { + if (m.current.push(i), G && (r || k)) { let e = function(e, t) { let n = window.setInterval(e, t); return () => window.clearInterval(n) @@ -44953,7 +47294,7 @@ })(e), goToStep: re, stepContent: { - ...k + ...w }, stepIndex: d, allSteps: t, @@ -44999,19 +47340,19 @@ transition: A, pointerEvents: "auto" }, - ue = te || mg, - de = () => po.jsx("div", { + ue = te || Uy, + de = () => io.jsx("div", { ref: e => v.current = e, - id: _g("walktour-portal", U), + id: qy("walktour-portal", U), style: le, - children: h && po.jsxs(po.Fragment, { - children: [!W && po.jsx(ue, { - maskId: _g("walktour-mask", U), + children: h && io.jsxs(io.Fragment, { + children: [!W && io.jsx(ue, { + maskId: qy("walktour-mask", U), targetInfo: function(e, t) { if (!e || !t) return; - let n = tg(t); + let n = Iy(t); return { - coords: qm(e, eg(t)), + coords: vy(e, Oy(t)), dims: n } }(h, s), @@ -45021,73 +47362,73 @@ radius: E, tourRoot: h, close: oe.close - }), po.jsx("div", { + }), io.jsx("div", { ref: e => g.current = e, - id: _g("walktour-tooltip-container", U), + id: qy("walktour-tooltip-container", U), style: ce, onKeyDown: se, tabIndex: 0, - children: T ? T(oe) : po.jsx(yg, { + children: T ? T(oe) : io.jsx($y, { ...oe }) })] }) }); - return h ? (0, Xa.createPortal)(de(), ng(h) ? document.body : h) : de() + return h ? (0, Xa.createPortal)(de(), Cy(h) ? document.body : h) : de() }, - Sg = (e, t) => (t ? { - bottom: ao.SOUTH, - "bottom-end": ao.SOUTHWEST, - "bottom-start": ao.SOUTHEAST, - left: ao.EAST, - "left-end": ao.EASTSOUTH, - "left-start": ao.EASTNORTH, - right: ao.WEST, - "right-end": ao.WESTSOUTH, - "right-start": ao.WESTNORTH, - top: ao.NORTH, - "top-end": ao.NORTHWEST, - "top-start": ao.NORTHEAST + Qy = (e, t) => (t ? { + bottom: sp.SOUTH, + "bottom-end": sp.SOUTHWEST, + "bottom-start": sp.SOUTHEAST, + left: sp.EAST, + "left-end": sp.EASTSOUTH, + "left-start": sp.EASTNORTH, + right: sp.WEST, + "right-end": sp.WESTSOUTH, + "right-start": sp.WESTNORTH, + top: sp.NORTH, + "top-end": sp.NORTHWEST, + "top-start": sp.NORTHEAST } : { - bottom: ao.SOUTH, - "bottom-end": ao.SOUTHEAST, - "bottom-start": ao.SOUTHWEST, - left: ao.WEST, - "left-end": ao.WESTSOUTH, - "left-start": ao.WESTNORTH, - right: ao.EAST, - "right-end": ao.EASTSOUTH, - "right-start": ao.EASTNORTH, - top: ao.NORTH, - "top-end": ao.NORTHEAST, - "top-start": ao.NORTHWEST + bottom: sp.SOUTH, + "bottom-end": sp.SOUTHEAST, + "bottom-start": sp.SOUTHWEST, + left: sp.WEST, + "left-end": sp.WESTSOUTH, + "left-start": sp.WESTNORTH, + right: sp.EAST, + "right-end": sp.EASTSOUTH, + "right-start": sp.EASTNORTH, + top: sp.NORTH, + "top-end": sp.NORTHEAST, + "top-start": sp.NORTHWEST })[e], - Eg = (e, t) => e.map((({ - selector: e, - title: n, - description: r, - placement: i = "bottom-start", - padding: a = 4 - }) => ({ + Zy = (e, t) => e.map((({ + selector: e, + title: n, + description: r, + placement: i = "bottom-start", + padding: a = 4 + }) => ({ selector: e ?? "sol-tutorial-fullscreen", title: n, description: r, maskPadding: a, - orientationPreferences: [Sg(i, t)] + orientationPreferences: [Qy(i, t)] }))), - Og = ({ - children: e, - counterSeparator: t = " of ", - doneLabel: n = "Done", - nextLabel: r = "Next", - onOpenChange: i, - open: a = !1, - skipLabel: o = "Skip", - steps: s - }) => { + Xy = ({ + children: e, + counterSeparator: t = " of ", + doneLabel: n = "Done", + nextLabel: r = "Next", + onOpenChange: i, + open: a = !1, + skipLabel: o = "Skip", + steps: s + }) => { let { direction: l = "ltr" - } = ts(), [c, u] = zo({ + } = Qo(), [c, u] = Lo({ value: a, onChange: i }), d = { @@ -45096,43 +47437,43 @@ nextLabel: r, skipLabel: o }; - return po.jsxs(po.Fragment, { - children: [po.jsx(wg, { - customTooltipRenderer: e => po.jsx(Um, { + return io.jsxs(io.Fragment, { + children: [io.jsx(Yy, { + customTooltipRenderer: e => io.jsx(hy, { ...d, ...e }), disableMaskInteraction: !0, disableCloseOnClick: !0, maskRadius: 4, - renderMask: e => po.jsx(Vm, { + renderMask: e => io.jsx(py, { ...e }), isOpen: c, customCloseFunc: ({ - close: e - }) => { + close: e + }) => { e(!0), u(!1), i?.(!1) }, tooltipSeparation: 4, - steps: Eg(s, "rtl" === l) + steps: Zy(s, "rtl" === l) }), e] }) }, - Ig = No((({ - buttonRef: e, - className: t, - disabled: n, - label: r = "Volume", - muteLabel: i = "Mute", - onChange: a, - sliderRef: o, - unmuteLabel: s = "Unmute", - value: l = 0, - ...c - }, u) => { + Jy = Po((({ + buttonRef: e, + className: t, + disabled: n, + label: r = "Volume", + muteLabel: i = "Mute", + onChange: a, + sliderRef: o, + unmuteLabel: s = "Unmute", + value: l = 0, + ...c + }, u) => { let d = (0, Ee.useId)(), - [p, h] = zo({ + [p, h] = Lo({ value: l, onChange: a }), @@ -45144,23 +47485,23 @@ y = (0, Ee.useMemo)((() => { switch (!0) { case p >= 50: - return Ro; + return Io; case p >= 25: - return To; + return Oo; case p >= 1: - return Po; + return Eo; default: - return wo + return yo } }), [p]), - _ = Lo("sol-c-volume-slider", t); - return po.jsxs(Ps, { + _ = Ao("sol-c-volume-slider", t); + return io.jsxs(Es, { align: "center", className: _, gap: "025", ref: u, ...c, - children: [po.jsx(xs, { + children: [io.jsx(gs, { "aria-controls": d, "aria-label": 0 === p ? s : i, className: "sol-c-volume-slider__button", @@ -45170,7 +47511,7 @@ size: "small", icon: y, variant: "plain" - }), po.jsx(jm, { + }), io.jsx(ly, { id: d, "aria-label": r, "aria-valuetext": `${p}%`, @@ -45188,56 +47529,56 @@ })] }) })); - const Cg = Object.prototype.toString; + const e_ = Object.prototype.toString; - function Ag(e) { - switch (Cg.call(e)) { + function t_(e) { + switch (e_.call(e)) { case "[object Error]": case "[object Exception]": case "[object DOMException]": return !0; default: - return zg(e, Error) + return d_(e, Error) } } - function Pg(e, t) { - return Cg.call(e) === `[object ${t}]` + function n_(e, t) { + return e_.call(e) === `[object ${t}]` } - function Tg(e) { - return Pg(e, "ErrorEvent") + function r_(e) { + return n_(e, "ErrorEvent") } - function Rg(e) { - return Pg(e, "DOMError") + function i_(e) { + return n_(e, "DOMError") } - function Dg(e) { - return Pg(e, "String") + function a_(e) { + return n_(e, "String") } - function Lg(e) { + function o_(e) { return "object" === typeof e && null !== e && "__sentry_template_string__" in e && "__sentry_template_values__" in e } - function Ng(e) { - return null === e || Lg(e) || "object" !== typeof e && "function" !== typeof e + function s_(e) { + return null === e || o_(e) || "object" !== typeof e && "function" !== typeof e } - function jg(e) { - return Pg(e, "Object") + function l_(e) { + return n_(e, "Object") } - function Mg(e) { - return "undefined" !== typeof Event && zg(e, Event) + function c_(e) { + return "undefined" !== typeof Event && d_(e, Event) } - function Fg(e) { + function u_(e) { return Boolean(e && e.then && "function" === typeof e.then) } - function zg(e, t) { + function d_(e, t) { try { return e instanceof t } catch (n) { @@ -45245,21 +47586,21 @@ } } - function Vg(e) { + function p_(e) { return !("object" !== typeof e || null === e || !e.__isVue && !e._isVue) } - const Ug = "8.33.1", - Bg = globalThis; + const h_ = "8.33.1", + f_ = globalThis; - function Gg(e, t, n) { - const r = n || Bg, + function m_(e, t, n) { + const r = n || f_, i = r.__SENTRY__ = r.__SENTRY__ || {}, - a = i[Ug] = i[Ug] || {}; + a = i[h_] = i[h_] || {}; return a[e] || (a[e] = t()) } - const $g = Bg; + const g_ = f_; - function qg(e, t = {}) { + function v_(e, t = {}) { if (!e) return ""; try { let n = e; @@ -45272,18 +47613,18 @@ let c; const u = Array.isArray(t) ? t : t.keyAttrs, d = !Array.isArray(t) && t.maxStringLength || 80; - for (; n && a++ < r && (c = Wg(n, u), !("html" === c || a > 1 && o + i.length * l + c.length >= d));) i.push(c), o += c.length, n = n.parentNode; + for (; n && a++ < r && (c = y_(n, u), !("html" === c || a > 1 && o + i.length * l + c.length >= d));) i.push(c), o += c.length, n = n.parentNode; return i.reverse().join(s) } catch (n) { return "" } } - function Wg(e, t) { + function y_(e, t) { const n = e, r = []; if (!n || !n.tagName) return ""; - if ($g.HTMLElement && n instanceof HTMLElement && n.dataset) { + if (g_.HTMLElement && n instanceof HTMLElement && n.dataset) { if (n.dataset.sentryComponent) return n.dataset.sentryComponent; if (n.dataset.sentryElement) return n.dataset.sentryElement } @@ -45295,7 +47636,7 @@ else { n.id && r.push(`#${n.id}`); const e = n.className; - if (e && Dg(e)) { + if (e && a_(e)) { const t = e.split(/\s+/); for (const e of t) r.push(`.${e}`) } @@ -45308,16 +47649,16 @@ return r.join("") } - function Hg() { + function __() { try { - return $g.document.location.href - } catch (_u) { + return g_.document.location.href + } catch (gc) { return "" } } - function Kg(e) { - if (!$g.HTMLElement) return null; + function b_(e) { + if (!g_.HTMLElement) return null; let t = e; for (let n = 0; n < 5; n++) { if (!t) return null; @@ -45329,17 +47670,17 @@ } return null } - const Yg = "undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__, - Qg = ["debug", "info", "warn", "error", "log", "assert", "trace"], - Zg = {}; + const x_ = "undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__, + w_ = ["debug", "info", "warn", "error", "log", "assert", "trace"], + k_ = {}; - function Xg(e) { - if (!("console" in Bg)) return e(); - const t = Bg.console, + function S_(e) { + if (!("console" in f_)) return e(); + const t = f_.console, n = {}, - r = Object.keys(Zg); + r = Object.keys(k_); r.forEach((e => { - const r = Zg[e]; + const r = k_[e]; n[e] = t[e], t[e] = r })); try { @@ -45350,7 +47691,7 @@ })) } } - const Jg = Gg("logger", (function() { + const E_ = m_("logger", (function() { let e = !1; const t = { enable: () => { @@ -45361,28 +47702,28 @@ }, isEnabled: () => e }; - return Yg ? Qg.forEach((n => { + return x_ ? w_.forEach((n => { t[n] = (...t) => { - e && Xg((() => { - Bg.console[n](`Sentry Logger [${n}]:`, ...t) + e && S_((() => { + f_.console[n](`Sentry Logger [${n}]:`, ...t) })) } - })) : Qg.forEach((e => { + })) : w_.forEach((e => { t[e] = () => {} })), t })); - function ev(e, t = 0) { + function O_(e, t = 0) { return "string" !== typeof e || 0 === t || e.length <= t ? e : `${e.slice(0,t)}...` } - function tv(e, t) { + function I_(e, t) { if (!Array.isArray(e)) return ""; const n = []; for (let i = 0; i < e.length; i++) { const t = e[i]; try { - Vg(t) ? n.push("[VueViewModel]") : n.push(String(t)) + p_(t) ? n.push("[VueViewModel]") : n.push(String(t)) } catch (r) { n.push("[value cannot be serialized]") } @@ -45390,22 +47731,22 @@ return n.join(t) } - function nv(e, t, n = !1) { - return !!Dg(e) && (Pg(t, "RegExp") ? t.test(e) : !!Dg(t) && (n ? e === t : e.includes(t))) + function C_(e, t, n = !1) { + return !!a_(e) && (n_(t, "RegExp") ? t.test(e) : !!a_(t) && (n ? e === t : e.includes(t))) } - function rv(e, t = [], n = !1) { - return t.some((t => nv(e, t, n))) + function A_(e, t = [], n = !1) { + return t.some((t => C_(e, t, n))) } - function iv(e, t, n) { + function P_(e, t, n) { if (!(t in e)) return; const r = e[t], i = n(r); - "function" === typeof i && ov(i, r), e[t] = i + "function" === typeof i && R_(i, r), e[t] = i } - function av(e, t, n) { + function T_(e, t, n) { try { Object.defineProperty(e, t, { value: n, @@ -45413,50 +47754,50 @@ configurable: !0 }) } catch (r) { - Yg && Jg.log(`Failed to add non-enumerable property "${t}" to object`, e) + x_ && E_.log(`Failed to add non-enumerable property "${t}" to object`, e) } } - function ov(e, t) { + function R_(e, t) { try { const n = t.prototype || {}; - e.prototype = t.prototype = n, av(e, "__sentry_original__", t) + e.prototype = t.prototype = n, T_(e, "__sentry_original__", t) } catch (n) {} } - function sv(e) { + function D_(e) { return e.__sentry_original__ } - function lv(e) { - if (Ag(e)) return { + function L_(e) { + if (t_(e)) return { message: e.message, name: e.name, stack: e.stack, - ...uv(e) + ...j_(e) }; - if (Mg(e)) { + if (c_(e)) { const t = { type: e.type, - target: cv(e.target), - currentTarget: cv(e.currentTarget), - ...uv(e) + target: N_(e.target), + currentTarget: N_(e.currentTarget), + ...j_(e) }; - return "undefined" !== typeof CustomEvent && zg(e, CustomEvent) && (t.detail = e.detail), t + return "undefined" !== typeof CustomEvent && d_(e, CustomEvent) && (t.detail = e.detail), t } return e } - function cv(e) { + function N_(e) { try { - return t = e, "undefined" !== typeof Element && zg(t, Element) ? qg(e) : Object.prototype.toString.call(e) + return t = e, "undefined" !== typeof Element && d_(t, Element) ? v_(e) : Object.prototype.toString.call(e) } catch (n) { return "" } var t } - function uv(e) { + function j_(e) { if ("object" === typeof e && null !== e) { const t = {}; for (const n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); @@ -45465,25 +47806,25 @@ return {} } - function dv(e) { - return pv(e, new Map) + function M_(e) { + return F_(e, new Map) } - function pv(e, t) { + function F_(e, t) { if (function(e) { - if (!jg(e)) return !1; - try { - const t = Object.getPrototypeOf(e).constructor.name; - return !t || "Object" === t - } catch (t) { - return !0 - } - }(e)) { + if (!l_(e)) return !1; + try { + const t = Object.getPrototypeOf(e).constructor.name; + return !t || "Object" === t + } catch (t) { + return !0 + } + }(e)) { const n = t.get(e); if (void 0 !== n) return n; const r = {}; t.set(e, r); - for (const i of Object.getOwnPropertyNames(e)) "undefined" !== typeof e[i] && (r[i] = pv(e[i], t)); + for (const i of Object.getOwnPropertyNames(e)) "undefined" !== typeof e[i] && (r[i] = F_(e[i], t)); return r } if (Array.isArray(e)) { @@ -45491,54 +47832,54 @@ if (void 0 !== n) return n; const r = []; return t.set(e, r), e.forEach((e => { - r.push(pv(e, t)) + r.push(F_(e, t)) })), r } return e } - const hv = "baggage", - fv = "sentry-", - mv = /^sentry-/; + const z_ = "baggage", + V_ = "sentry-", + U_ = /^sentry-/; - function gv(e) { + function B_(e) { const t = function(e) { - if (!e || !Dg(e) && !Array.isArray(e)) return; + if (!e || !a_(e) && !Array.isArray(e)) return; if (Array.isArray(e)) return e.reduce(((e, t) => { - const n = yv(t); + const n = $_(t); return Object.entries(n).forEach((([t, n]) => { e[t] = n })), e }), {}); - return yv(e) + return $_(e) }(e); if (!t) return; const n = Object.entries(t).reduce(((e, [t, n]) => { - if (t.match(mv)) { - e[t.slice(fv.length)] = n + if (t.match(U_)) { + e[t.slice(V_.length)] = n } return e }), {}); return Object.keys(n).length > 0 ? n : void 0 } - function vv(e) { + function G_(e) { if (!e) return; return function(e) { if (0 === Object.keys(e).length) return; return Object.entries(e).reduce(((e, [t, n], r) => { const i = `${encodeURIComponent(t)}=${encodeURIComponent(n)}`, a = 0 === r ? i : `${e},${i}`; - return a.length > 8192 ? (Yg && Jg.warn(`Not adding key: ${t} with val: ${n} to baggage header due to exceeding baggage size limits.`), e) : a + return a.length > 8192 ? (x_ && E_.warn(`Not adding key: ${t} with val: ${n} to baggage header due to exceeding baggage size limits.`), e) : a }), "") - }(Object.entries(e).reduce(((e, [t, n]) => (n && (e[`${fv}${t}`] = n), e)), {})) + }(Object.entries(e).reduce(((e, [t, n]) => (n && (e[`${V_}${t}`] = n), e)), {})) } - function yv(e) { + function $_(e) { return e.split(",").map((e => e.split("=").map((e => decodeURIComponent(e.trim()))))).reduce(((e, [t, n]) => (t && n && (e[t] = n), e)), {}) } - function _v() { - const e = Bg, + function q_() { + const e = f_, t = e.crypto || e.msCrypto; let n = () => 16 * Math.random(); try { @@ -45547,41 +47888,41 @@ const e = new Uint8Array(1); return t.getRandomValues(e), e[0] }) - } catch (eo) {} + } catch (vM) {} return ([1e7] + 1e3 + 4e3 + 8e3 + 1e11).replace(/[018]/g, (e => (e ^ (15 & n()) >> e / 4).toString(16))) } - function bv(e) { + function W_(e) { return e.exception && e.exception.values ? e.exception.values[0] : void 0 } - function xv(e) { + function H_(e) { const { message: t, event_id: n } = e; if (t) return t; - const r = bv(e); + const r = W_(e); return r ? r.type && r.value ? `${r.type}: ${r.value}` : r.type || r.value || n || "" : n || "" } - function kv(e, t, n) { + function K_(e, t, n) { const r = e.exception = e.exception || {}, i = r.values = r.values || [], a = i[0] = i[0] || {}; a.value || (a.value = t || ""), a.type || (a.type = n || "Error") } - function wv(e, t) { - const n = bv(e); + function Y_(e, t) { + const n = W_(e); if (!n) return; const r = n.mechanism; if (n.mechanism = { - type: "generic", - handled: !0, - ...r, - ...t - }, t && "data" in t) { + type: "generic", + handled: !0, + ...r, + ...t + }, t && "data" in t) { const e = { ...r && r.data, ...t.data @@ -45590,23 +47931,23 @@ } } - function Sv(e) { + function Q_(e) { if (e && e.__sentry_captured__) return !0; try { - av(e, "__sentry_captured__", !0) + T_(e, "__sentry_captured__", !0) } catch (t) {} return !1 } - function Ev(e) { + function Z_(e) { return Array.isArray(e) ? e : [e] } - const Ov = new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$"); + const X_ = new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$"); - function Iv(e, t) { + function J_(e, t) { const n = function(e) { if (!e) return; - const t = e.match(Ov); + const t = e.match(X_); if (!t) return; let n; return "1" === t[3] ? n = !0 : "0" === t[3] && (n = !1), { @@ -45615,47 +47956,47 @@ parentSpanId: t[2] } }(e), - r = gv(t), + r = B_(t), { traceId: i, parentSpanId: a, parentSampled: o } = n || {}; return n ? { - traceId: i || _v(), - parentSpanId: a || _v().substring(16), - spanId: _v().substring(16), + traceId: i || q_(), + parentSpanId: a || q_().substring(16), + spanId: q_().substring(16), sampled: o, dsc: r || {} } : { - traceId: i || _v(), - spanId: _v().substring(16) + traceId: i || q_(), + spanId: q_().substring(16) } } - function Cv(e = _v(), t = _v().substring(16), n) { + function eb(e = q_(), t = q_().substring(16), n) { let r = ""; return void 0 !== n && (r = n ? "-1" : "-0"), `${e}-${t}${r}` } - function Av() { + function tb() { return Date.now() / 1e3 } - const Pv = function() { + const nb = function() { const { performance: e - } = Bg; - if (!e || !e.now) return Av; + } = f_; + if (!e || !e.now) return tb; const t = Date.now() - e.now(), n = void 0 == e.timeOrigin ? t : e.timeOrigin; return () => (n + e.now()) / 1e3 }(); - let Tv; - const Rv = (() => { + let rb; + const ib = (() => { const { performance: e - } = Bg; - if (!e || !e.now) return void(Tv = "none"); + } = f_; + if (!e || !e.now) return void(rb = "none"); const t = 36e5, n = e.now(), r = Date.now(), @@ -45663,29 +48004,29 @@ a = i < t, o = e.timing && e.timing.navigationStart, s = "number" === typeof o ? Math.abs(o + n - r) : t; - return a || s < t ? i <= s ? (Tv = "timeOrigin", e.timeOrigin) : (Tv = "navigationStart", o) : (Tv = "dateNow", r) + return a || s < t ? i <= s ? (rb = "timeOrigin", e.timeOrigin) : (rb = "navigationStart", o) : (rb = "dateNow", r) })(); - function Dv() { - return Lv(Bg), Bg + function ab() { + return ob(f_), f_ } - function Lv(e) { + function ob(e) { const t = e.__SENTRY__ = e.__SENTRY__ || {}; - return t.version = t.version || Ug, t[Ug] = t[Ug] || {} + return t.version = t.version || h_, t[h_] = t[h_] || {} } - function Nv() { + function sb() { return { - traceId: _v(), - spanId: _v().substring(16) + traceId: q_(), + spanId: q_().substring(16) } } - function jv(e) { - const t = Pv(), + function lb(e) { + const t = nb(), n = { - sid: _v(), + sid: q_(), init: !0, timestamp: t, started: t, @@ -45694,7 +48035,7 @@ errors: 0, ignoreDuration: !1, toJSON: () => function(e) { - return dv({ + return M_({ sid: `${e.sid}`, init: e.init, started: new Date(1e3 * e.started).toISOString(), @@ -45713,11 +48054,11 @@ }) }(n) }; - return e && Mv(n, e), n + return e && cb(n, e), n } - function Mv(e, t = {}) { - if (t.user && (!e.ipAddress && t.user.ip_address && (e.ipAddress = t.user.ip_address), e.did || t.did || (e.did = t.user.id || t.user.email || t.user.username)), e.timestamp = t.timestamp || Pv(), t.abnormal_mechanism && (e.abnormal_mechanism = t.abnormal_mechanism), t.ignoreDuration && (e.ignoreDuration = t.ignoreDuration), t.sid && (e.sid = 32 === t.sid.length ? t.sid : _v()), void 0 !== t.init && (e.init = t.init), !e.did && t.did && (e.did = `${t.did}`), "number" === typeof t.started && (e.started = t.started), e.ignoreDuration) e.duration = void 0; + function cb(e, t = {}) { + if (t.user && (!e.ipAddress && t.user.ip_address && (e.ipAddress = t.user.ip_address), e.did || t.did || (e.did = t.user.id || t.user.email || t.user.username)), e.timestamp = t.timestamp || nb(), t.abnormal_mechanism && (e.abnormal_mechanism = t.abnormal_mechanism), t.ignoreDuration && (e.ignoreDuration = t.ignoreDuration), t.sid && (e.sid = 32 === t.sid.length ? t.sid : q_()), void 0 !== t.init && (e.init = t.init), !e.did && t.did && (e.did = `${t.did}`), "number" === typeof t.started && (e.started = t.started), e.ignoreDuration) e.duration = void 0; else if ("number" === typeof t.duration) e.duration = t.duration; else { const t = e.timestamp - e.started; @@ -45725,21 +48066,21 @@ } t.release && (e.release = t.release), t.environment && (e.environment = t.environment), !e.ipAddress && t.ipAddress && (e.ipAddress = t.ipAddress), !e.userAgent && t.userAgent && (e.userAgent = t.userAgent), "number" === typeof t.errors && (e.errors = t.errors), t.status && (e.status = t.status) } - const Fv = "_sentrySpan"; + const ub = "_sentrySpan"; - function zv(e, t) { - t ? av(e, Fv, t) : delete e[Fv] + function db(e, t) { + t ? T_(e, ub, t) : delete e[ub] } - function Vv(e) { - return e[Fv] + function pb(e) { + return e[ub] } - class Uv { + class hb { constructor() { - this._notifyingListeners = !1, this._scopeListeners = [], this._eventProcessors = [], this._breadcrumbs = [], this._attachments = [], this._user = {}, this._tags = {}, this._extra = {}, this._contexts = {}, this._sdkProcessingMetadata = {}, this._propagationContext = Nv() + this._notifyingListeners = !1, this._scopeListeners = [], this._eventProcessors = [], this._breadcrumbs = [], this._attachments = [], this._user = {}, this._tags = {}, this._extra = {}, this._contexts = {}, this._sdkProcessingMetadata = {}, this._propagationContext = sb() } clone() { - const e = new Uv; + const e = new hb; return e._breadcrumbs = [...this._breadcrumbs], e._tags = { ...this._tags }, e._extra = { @@ -45750,7 +48091,7 @@ ...this._sdkProcessingMetadata }, e._propagationContext = { ...this._propagationContext - }, e._client = this._client, e._lastEventId = this._lastEventId, zv(e, Vv(this)), e + }, e._client = this._client, e._lastEventId = this._lastEventId, db(e, pb(this)), e } setClient(e) { this._client = e @@ -45776,7 +48117,7 @@ id: void 0, ip_address: void 0, username: void 0 - }, this._session && Mv(this._session, { + }, this._session && cb(this._session, { user: e }), this._notifyScopeListeners(), this } @@ -45834,7 +48175,7 @@ update(e) { if (!e) return this; const t = "function" === typeof e ? e(this) : e, - [n, r] = t instanceof Bv ? [t.getScopeData(), t.getRequestSession()] : jg(t) ? [e, e.requestSession] : [], + [n, r] = t instanceof fb ? [t.getScopeData(), t.getRequestSession()] : l_(t) ? [e, e.requestSession] : [], { tags: i, extra: a, @@ -45856,13 +48197,13 @@ }, o && Object.keys(o).length && (this._user = o), l && (this._level = l), c.length && (this._fingerprint = c), u && (this._propagationContext = u), r && (this._requestSession = r), this } clear() { - return this._breadcrumbs = [], this._tags = {}, this._extra = {}, this._user = {}, this._contexts = {}, this._level = void 0, this._transactionName = void 0, this._fingerprint = void 0, this._requestSession = void 0, this._session = void 0, zv(this, void 0), this._attachments = [], this._propagationContext = Nv(), this._notifyScopeListeners(), this + return this._breadcrumbs = [], this._tags = {}, this._extra = {}, this._user = {}, this._contexts = {}, this._level = void 0, this._transactionName = void 0, this._fingerprint = void 0, this._requestSession = void 0, this._session = void 0, db(this, void 0), this._attachments = [], this._propagationContext = sb(), this._notifyScopeListeners(), this } addBreadcrumb(e, t) { const n = "number" === typeof t ? t : 100; if (n <= 0) return this; const r = { - timestamp: Av(), + timestamp: tb(), ...e }, i = this._breadcrumbs; @@ -45894,7 +48235,7 @@ propagationContext: this._propagationContext, sdkProcessingMetadata: this._sdkProcessingMetadata, transactionName: this._transactionName, - span: Vv(this) + span: pb(this) } } setSDKProcessingMetadata(e) { @@ -45910,8 +48251,8 @@ return this._propagationContext } captureException(e, t) { - const n = t && t.event_id ? t.event_id : _v(); - if (!this._client) return Jg.warn("No client configured on scope - will not capture exception!"), n; + const n = t && t.event_id ? t.event_id : q_(); + if (!this._client) return E_.warn("No client configured on scope - will not capture exception!"), n; const r = new Error("Sentry syntheticException"); return this._client.captureException(e, { originalException: e, @@ -45921,8 +48262,8 @@ }, this), n } captureMessage(e, t, n) { - const r = n && n.event_id ? n.event_id : _v(); - if (!this._client) return Jg.warn("No client configured on scope - will not capture message!"), r; + const r = n && n.event_id ? n.event_id : q_(); + if (!this._client) return E_.warn("No client configured on scope - will not capture message!"), r; const i = new Error(e); return this._client.captureMessage(e, t, { originalException: e, @@ -45932,11 +48273,11 @@ }, this), r } captureEvent(e, t) { - const n = t && t.event_id ? t.event_id : _v(); + const n = t && t.event_id ? t.event_id : q_(); return this._client ? (this._client.captureEvent(e, { ...t, event_id: n - }, this), n) : (Jg.warn("No client configured on scope - will not capture event!"), n) + }, this), n) : (E_.warn("No client configured on scope - will not capture event!"), n) } _notifyScopeListeners() { this._notifyingListeners || (this._notifyingListeners = !0, this._scopeListeners.forEach((e => { @@ -45944,11 +48285,11 @@ })), this._notifyingListeners = !1) } } - const Bv = Uv; - class Gv { + const fb = hb; + class mb { constructor(e, t) { let n, r; - n = e || new Bv, r = t || new Bv, this._stack = [{ + n = e || new fb, r = t || new fb, this._stack = [{ scope: n }], this._isolationScope = r } @@ -45960,7 +48301,7 @@ } catch (r) { throw this._popScope(), r } - return Fg(n) ? n.then((e => (this._popScope(), e)), (e => { + return u_(n) ? n.then((e => (this._popScope(), e)), (e => { throw this._popScope(), e })) : (this._popScope(), n) } @@ -45988,46 +48329,46 @@ } } - function $v() { - const e = Lv(Dv()); - return e.stack = e.stack || new Gv(Gg("defaultCurrentScope", (() => new Bv)), Gg("defaultIsolationScope", (() => new Bv))) + function gb() { + const e = ob(ab()); + return e.stack = e.stack || new mb(m_("defaultCurrentScope", (() => new fb)), m_("defaultIsolationScope", (() => new fb))) } - function qv(e) { - return $v().withScope(e) + function vb(e) { + return gb().withScope(e) } - function Wv(e, t) { - const n = $v(); + function yb(e, t) { + const n = gb(); return n.withScope((() => (n.getStackTop().scope = e, t(e)))) } - function Hv(e) { - return $v().withScope((() => e($v().getIsolationScope()))) + function _b(e) { + return gb().withScope((() => e(gb().getIsolationScope()))) } - function Kv(e) { - const t = Lv(e); + function bb(e) { + const t = ob(e); return t.acs ? t.acs : { - withIsolationScope: Hv, - withScope: qv, - withSetScope: Wv, - withSetIsolationScope: (e, t) => Hv(t), - getCurrentScope: () => $v().getScope(), - getIsolationScope: () => $v().getIsolationScope() + withIsolationScope: _b, + withScope: vb, + withSetScope: yb, + withSetIsolationScope: (e, t) => _b(t), + getCurrentScope: () => gb().getScope(), + getIsolationScope: () => gb().getIsolationScope() } } - function Yv() { - return Kv(Dv()).getCurrentScope() + function xb() { + return bb(ab()).getCurrentScope() } - function Qv() { - return Kv(Dv()).getIsolationScope() + function wb() { + return bb(ab()).getIsolationScope() } - function Zv(...e) { - const t = Kv(Dv()); + function kb(...e) { + const t = bb(ab()); if (2 === e.length) { const [n, r] = e; return n ? t.withSetScope(n, r) : t.withScope(r) @@ -46035,30 +48376,30 @@ return t.withScope(e[0]) } - function Xv() { - return Yv().getClient() + function Sb() { + return xb().getClient() } - const Jv = "_sentryMetrics"; + const Eb = "_sentryMetrics"; - function ey(e) { - const t = e[Jv]; + function Ob(e) { + const t = e[Eb]; if (!t) return; const n = {}; for (const [, [r, i]] of t) { - (n[r] || (n[r] = [])).push(dv(i)) + (n[r] || (n[r] = [])).push(M_(i)) } return n } - const ty = "sentry.source", - ny = "sentry.sample_rate", - ry = "sentry.op", - iy = "sentry.origin", - ay = "sentry.idle_span_finish_reason", - oy = "sentry.measurement_unit", - sy = "sentry.measurement_value", - ly = "sentry.exclusive_time"; + const Ib = "sentry.source", + Cb = "sentry.sample_rate", + Ab = "sentry.op", + Pb = "sentry.origin", + Tb = "sentry.idle_span_finish_reason", + Rb = "sentry.measurement_unit", + Db = "sentry.measurement_value", + Lb = "sentry.exclusive_time"; - function cy(e, t) { + function Nb(e, t) { e.setAttribute("http.response.status_code", t); const n = function(e) { if (e < 400 && e >= 100) return { @@ -46124,7 +48465,7 @@ "unknown_error" !== n.message && e.setStatus(n) } - function uy(e) { + function jb(e) { const { spanId: t, traceId: n @@ -46134,8 +48475,8 @@ parent_span_id: a, status: o, origin: s - } = my(e); - return dv({ + } = Ub(e); + return M_({ parent_span_id: a, span_id: t, trace_id: n, @@ -46146,49 +48487,49 @@ }) } - function dy(e) { + function Mb(e) { const { spanId: t, traceId: n } = e.spanContext(), { parent_span_id: r - } = my(e); - return dv({ + } = Ub(e); + return M_({ parent_span_id: r, span_id: t, trace_id: n }) } - function py(e) { + function Fb(e) { const { traceId: t, spanId: n } = e.spanContext(); - return Cv(t, n, gy(e)) + return eb(t, n, Bb(e)) } - function hy(e) { - return "number" === typeof e ? fy(e) : Array.isArray(e) ? e[0] + e[1] / 1e9 : e instanceof Date ? fy(e.getTime()) : Pv() + function zb(e) { + return "number" === typeof e ? Vb(e) : Array.isArray(e) ? e[0] + e[1] / 1e9 : e instanceof Date ? Vb(e.getTime()) : nb() } - function fy(e) { + function Vb(e) { return e > 9999999999 ? e / 1e3 : e } - function my(e) { + function Ub(e) { if (function(e) { - return "function" === typeof e.getSpanJSON - }(e)) return e.getSpanJSON(); + return "function" === typeof e.getSpanJSON + }(e)) return e.getSpanJSON(); try { const { spanId: t, traceId: n } = e.spanContext(); if (function(e) { - const t = e; - return !!t.attributes && !!t.startTime && !!t.name && !!t.endTime && !!t.status - }(e)) { + const t = e; + return !!t.attributes && !!t.startTime && !!t.name && !!t.endTime && !!t.status + }(e)) { const { attributes: r, startTime: i, @@ -46197,18 +48538,18 @@ parentSpanId: s, status: l } = e; - return dv({ + return M_({ span_id: t, trace_id: n, data: r, description: a, parent_span_id: s, - start_timestamp: hy(i), - timestamp: hy(o) || void 0, - status: vy(l), - op: r[ry], - origin: r[iy], - _metrics_summary: ey(e) + start_timestamp: zb(i), + timestamp: zb(o) || void 0, + status: Gb(l), + op: r[Ab], + origin: r[Pb], + _metrics_summary: Ob(e) }) } return { @@ -46220,64 +48561,64 @@ } } - function gy(e) { + function Bb(e) { const { traceFlags: t } = e.spanContext(); return 1 === t } - function vy(e) { + function Gb(e) { if (e && 0 !== e.code) return 1 === e.code ? "ok" : e.message || "unknown_error" } - const yy = "_sentryChildSpans", - _y = "_sentryRootSpan"; + const $b = "_sentryChildSpans", + qb = "_sentryRootSpan"; - function by(e, t) { - const n = e[_y] || e; - av(t, _y, n), e[yy] ? e[yy].add(t) : av(e, yy, new Set([t])) + function Wb(e, t) { + const n = e[qb] || e; + T_(t, qb, n), e[$b] ? e[$b].add(t) : T_(e, $b, new Set([t])) } - function xy(e) { + function Hb(e) { const t = new Set; return function e(n) { - if (!t.has(n) && gy(n)) { + if (!t.has(n) && Bb(n)) { t.add(n); - const r = n[yy] ? Array.from(n[yy]) : []; + const r = n[$b] ? Array.from(n[$b]) : []; for (const t of r) e(t) } }(e), Array.from(t) } - function ky(e) { - return e[_y] || e + function Kb(e) { + return e[qb] || e } - function wy() { - const e = Kv(Dv()); - return e.getActiveSpan ? e.getActiveSpan() : Vv(Yv()) + function Yb() { + const e = bb(ab()); + return e.getActiveSpan ? e.getActiveSpan() : pb(xb()) } - function Sy(e) { + function Qb(e) { if ("boolean" === typeof __SENTRY_TRACING__ && !__SENTRY_TRACING__) return !1; - const t = Xv(), + const t = Sb(), n = e || t && t.getOptions(); return !!n && (n.enableTracing || "tracesSampleRate" in n || "tracesSampler" in n) } - const Ey = "production", - Oy = "_frozenDsc"; + const Zb = "production", + Xb = "_frozenDsc"; - function Iy(e, t) { - av(e, Oy, t) + function Jb(e, t) { + T_(e, Xb, t) } - function Cy(e, t) { + function ex(e, t) { const n = t.getOptions(), { publicKey: r } = t.getDsn() || {}, - i = dv({ - environment: n.environment || Ey, + i = M_({ + environment: n.environment || Zb, release: n.release, public_key: r, trace_id: e @@ -46285,36 +48626,36 @@ return t.emit("createDsc", i), i } - function Ay(e) { - const t = Xv(); + function tx(e) { + const t = Sb(); if (!t) return {}; - const n = Cy(my(e).trace_id || "", t), - r = ky(e), - i = r[Oy]; + const n = ex(Ub(e).trace_id || "", t), + r = Kb(e), + i = r[Xb]; if (i) return i; const a = r.spanContext().traceState, o = a && a.get("sentry.dsc"), - s = o && gv(o); + s = o && B_(o); if (s) return s; - const l = my(r), + const l = Ub(r), c = l.data || {}, - u = c[ny]; + u = c[Cb]; null != u && (n.sample_rate = `${u}`); - const d = c[ty], + const d = c[Ib], p = l.description; - return "url" !== d && p && (n.transaction = p), Sy() && (n.sampled = String(gy(r))), t.emit("createDsc", n, r), n + return "url" !== d && p && (n.transaction = p), Qb() && (n.sampled = String(Bb(r))), t.emit("createDsc", n, r), n } - const Py = "undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__; + const nx = "undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__; - function Ty(e) { + function rx(e) { if ("boolean" === typeof e) return Number(e); const t = "string" === typeof e ? parseFloat(e) : e; if (!("number" !== typeof t || isNaN(t) || t < 0 || t > 1)) return t; - Py && Jg.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`) + nx && E_.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`) } - class Ry { + class ix { constructor(e = {}) { - this._traceId = e.traceId || _v(), this._spanId = e.spanId || _v().substring(16) + this._traceId = e.traceId || q_(), this._spanId = e.spanId || q_().substring(16) } spanContext() { return { @@ -46350,9 +48691,9 @@ } recordException(e, t) {} } - const Dy = /^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/; + const ax = /^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/; - function Ly(e, t = !1) { + function ox(e, t = !1) { const { host: n, path: r, @@ -46365,7 +48706,7 @@ return `${s}://${l}${t&&i?`:${i}`:""}@${n}${a?`:${a}`:""}/${r?`${r}/`:r}${o}` } - function Ny(e) { + function sx(e) { return { protocol: e.protocol, publicKey: e.publicKey || "", @@ -46377,10 +48718,10 @@ } } - function jy(e) { + function lx(e) { const t = "string" === typeof e ? function(e) { - const t = Dy.exec(e); - if (!t) return void Xg((() => { + const t = ax.exec(e); + if (!t) return void S_((() => { console.error(`Invalid Sentry Dsn: ${e}`) })); const [n, r, i = "", a = "", o = "", s = ""] = t.slice(1); @@ -46391,7 +48732,7 @@ const e = c.match(/^\d+/); e && (c = e[0]) } - return Ny({ + return sx({ host: a, pass: i, path: l, @@ -46400,24 +48741,24 @@ protocol: n, publicKey: r }) - }(e) : Ny(e); + }(e) : sx(e); if (t && function(e) { - if (!Yg) return !0; - const { - port: t, - projectId: n, - protocol: r - } = e; - return !["protocol", "publicKey", "host", "projectId"].find((t => !e[t] && (Jg.error(`Invalid Sentry Dsn: ${t} missing`), !0))) && (n.match(/^\d+$/) ? function(e) { - return "http" === e || "https" === e - }(r) ? !t || !isNaN(parseInt(t, 10)) || (Jg.error(`Invalid Sentry Dsn: Invalid port ${t}`), !1) : (Jg.error(`Invalid Sentry Dsn: Invalid protocol ${r}`), !1) : (Jg.error(`Invalid Sentry Dsn: Invalid projectId ${n}`), !1)) - }(t)) return t + if (!x_) return !0; + const { + port: t, + projectId: n, + protocol: r + } = e; + return !["protocol", "publicKey", "host", "projectId"].find((t => !e[t] && (E_.error(`Invalid Sentry Dsn: ${t} missing`), !0))) && (n.match(/^\d+$/) ? function(e) { + return "http" === e || "https" === e + }(r) ? !t || !isNaN(parseInt(t, 10)) || (E_.error(`Invalid Sentry Dsn: Invalid port ${t}`), !1) : (E_.error(`Invalid Sentry Dsn: Invalid protocol ${r}`), !1) : (E_.error(`Invalid Sentry Dsn: Invalid projectId ${n}`), !1)) + }(t)) return t } - const My = "?", - Fy = /\(error: (.*)\)/, - zy = /captureMessage|captureException/; + const cx = "?", + ux = /\(error: (.*)\)/, + dx = /captureMessage|captureException/; - function Vy(...e) { + function px(...e) { const t = e.sort(((e, t) => e[0] - t[0])).map((e => e[1])); return (e, n = 0, r = 0) => { const i = [], @@ -46425,7 +48766,7 @@ for (let o = n; o < a.length; o++) { const e = a[o]; if (e.length > 1024) continue; - const n = Fy.test(e) ? e.replace(Fy, "$1") : e; + const n = ux.test(e) ? e.replace(ux, "$1") : e; if (!n.match(/\S*Error: /)) { for (const e of t) { const t = e(n); @@ -46437,34 +48778,34 @@ if (i.length >= 50 + r) break } } - return Uy(i.slice(r)) + return hx(i.slice(r)) } } - function Uy(e) { + function hx(e) { if (!e.length) return []; const t = Array.from(e); - return /sentryWrapped/.test(By(t).function || "") && t.pop(), t.reverse(), zy.test(By(t).function || "") && (t.pop(), zy.test(By(t).function || "") && t.pop()), t.slice(0, 50).map((e => ({ + return /sentryWrapped/.test(fx(t).function || "") && t.pop(), t.reverse(), dx.test(fx(t).function || "") && (t.pop(), dx.test(fx(t).function || "") && t.pop()), t.slice(0, 50).map((e => ({ ...e, - filename: e.filename || By(t).filename, - function: e.function || My + filename: e.filename || fx(t).filename, + function: e.function || cx }))) } - function By(e) { + function fx(e) { return e[e.length - 1] || {} } - const Gy = ""; + const mx = ""; - function $y(e) { + function gx(e) { try { - return e && "function" === typeof e && e.name || Gy + return e && "function" === typeof e && e.name || mx } catch (t) { - return Gy + return mx } } - function qy(e) { + function vx(e) { const t = e.exception; if (t) { const e = []; @@ -46478,9 +48819,9 @@ } } - function Wy(e, t = 100, n = 1 / 0) { + function yx(e, t = 100, n = 1 / 0) { try { - return Ky("", e, t, n) + return bx("", e, t, n) } catch (r) { return { ERROR: `**non-serializable** (${r})` @@ -46488,16 +48829,16 @@ } } - function Hy(e, t = 3, n = 102400) { - const r = Wy(e, t); + function _x(e, t = 3, n = 102400) { + const r = yx(e, t); return i = r, function(e) { return ~-encodeURI(e).split(/%..|./).length - }(JSON.stringify(i)) > n ? Hy(e, t - 1, n) : r; + }(JSON.stringify(i)) > n ? _x(e, t - 1, n) : r; var i } - function Ky(e, t, n = 1 / 0, r = 1 / 0, i = function() { + function bx(e, t, n = 1 / 0, r = 1 / 0, i = function() { const e = "function" === typeof WeakSet, t = e ? new WeakSet : []; return [function(n) { @@ -46524,10 +48865,10 @@ if ("undefined" !== typeof global && t === global) return "[Global]"; if ("undefined" !== typeof window && t === window) return "[Window]"; if ("undefined" !== typeof document && t === document) return "[Document]"; - if (Vg(t)) return "[VueViewModel]"; - if (jg(n = t) && "nativeEvent" in n && "preventDefault" in n && "stopPropagation" in n) return "[SyntheticEvent]"; + if (p_(t)) return "[VueViewModel]"; + if (l_(n = t) && "nativeEvent" in n && "preventDefault" in n && "stopPropagation" in n) return "[SyntheticEvent]"; if ("number" === typeof t && !Number.isFinite(t)) return `[${t}]`; - if ("function" === typeof t) return `[Function: ${$y(t)}]`; + if ("function" === typeof t) return `[Function: ${gx(t)}]`; if ("symbol" === typeof t) return `[${String(t)}]`; if ("bigint" === typeof t) return `[BigInt: ${String(t)}]`; const r = function(e) { @@ -46547,11 +48888,11 @@ if (a(t)) return "[Circular ~]"; const c = t; if (c && "function" === typeof c.toJSON) try { - return Ky("", c.toJSON(), l - 1, r, i) + return bx("", c.toJSON(), l - 1, r, i) } catch (h) {} const u = Array.isArray(t) ? [] : {}; let d = 0; - const p = lv(t); + const p = L_(t); for (const f in p) { if (!Object.prototype.hasOwnProperty.call(p, f)) continue; if (d >= r) { @@ -46559,21 +48900,21 @@ break } const e = p[f]; - u[f] = Ky(f, e, l - 1, r, i), d++ + u[f] = bx(f, e, l - 1, r, i), d++ } return o(t), u } - function Yy(e, t = []) { + function xx(e, t = []) { return [e, t] } - function Qy(e, t) { + function wx(e, t) { const [n, r] = e; return [n, [...r, t]] } - function Zy(e, t) { + function kx(e, t) { const n = e[1]; for (const r of n) { if (t(r, r[0].type)) return !0 @@ -46581,16 +48922,16 @@ return !1 } - function Xy(e) { - return Bg.__SENTRY__ && Bg.__SENTRY__.encodePolyfill ? Bg.__SENTRY__.encodePolyfill(e) : (new TextEncoder).encode(e) + function Sx(e) { + return f_.__SENTRY__ && f_.__SENTRY__.encodePolyfill ? f_.__SENTRY__.encodePolyfill(e) : (new TextEncoder).encode(e) } - function Jy(e) { + function Ex(e) { const [t, n] = e; let r = JSON.stringify(t); function i(e) { - "string" === typeof r ? r = "string" === typeof e ? r + e : [Xy(r), e] : r.push("string" === typeof e ? Xy(e) : e) + "string" === typeof r ? r = "string" === typeof e ? r + e : [Sx(r), e] : r.push("string" === typeof e ? Sx(e) : e) } for (const o of n) { const [e, t] = o; @@ -46600,7 +48941,7 @@ try { e = JSON.stringify(t) } catch (a) { - e = JSON.stringify(Wy(t)) + e = JSON.stringify(yx(t)) } i(e) } @@ -46614,15 +48955,15 @@ }(r) } - function e_(e) { + function Ox(e) { return [{ type: "span" }, e] } - function t_(e) { - const t = "string" === typeof e.data ? Xy(e.data) : e.data; - return [dv({ + function Ix(e) { + const t = "string" === typeof e.data ? Sx(e.data) : e.data; + return [M_({ type: "attachment", length: t.length, filename: e.filename, @@ -46630,7 +48971,7 @@ attachment_type: e.attachmentType }), t] } - const n_ = { + const Cx = { session: "session", sessions: "session", attachment: "attachment", @@ -46648,11 +48989,11 @@ statsd: "metric_bucket" }; - function r_(e) { - return n_[e] + function Ax(e) { + return Cx[e] } - function i_(e) { + function Px(e) { if (!e || !e.sdk) return; const { name: t, @@ -46664,7 +49005,7 @@ } } - function a_(e, t, n, r) { + function Tx(e, t, n, r) { const i = e.sdkProcessingMetadata && e.sdkProcessingMetadata.dynamicSamplingContext; return { event_id: e.event_id, @@ -46673,43 +49014,43 @@ sdk: t }, ...!!n && r && { - dsn: Ly(r) + dsn: ox(r) }, ...i && { - trace: dv({ + trace: M_({ ...i }) } } } - function o_(e) { + function Rx(e) { if (!e || 0 === e.length) return; const t = {}; return e.forEach((e => { const n = e.attributes || {}, - r = n[oy], - i = n[sy]; + r = n[Rb], + i = n[Db]; "string" === typeof r && "number" === typeof i && (t[e.name] = { value: i, unit: r }) })), t } - const s_ = "_sentryScope", - l_ = "_sentryIsolationScope"; + const Dx = "_sentryScope", + Lx = "_sentryIsolationScope"; - function c_(e) { + function Nx(e) { return { - scope: e[s_], - isolationScope: e[l_] + scope: e[Dx], + isolationScope: e[Lx] } } - class u_ { + class jx { constructor(e = {}) { - this._traceId = e.traceId || _v(), this._spanId = e.spanId || _v().substring(16), this._startTime = e.startTimestamp || Pv(), this._attributes = {}, this.setAttributes({ - [iy]: "manual", - [ry]: e.op, + this._traceId = e.traceId || q_(), this._spanId = e.spanId || q_().substring(16), this._startTime = e.startTimestamp || nb(), this._attributes = {}, this.setAttributes({ + [Pb]: "manual", + [Ab]: e.op, ...e.attributes }), this._name = e.name, e.parentSpanId && (this._parentSpanId = e.parentSpanId), "sampled" in e && (this._sampled = e.sampled), e.endTimestamp && (this._endTime = e.endTimestamp), this._events = [], this._isStandaloneSpan = e.isStandalone, this._endTime && this._onSpanEnded() } @@ -46739,7 +49080,7 @@ return Object.keys(e).forEach((t => this.setAttribute(t, e[t]))), this } updateStartTime(e) { - this._startTime = hy(e) + this._startTime = zb(e) } setStatus(e) { return this._status = e, this @@ -46748,47 +49089,47 @@ return this._name = e, this } end(e) { - this._endTime || (this._endTime = hy(e), function(e) { - if (!Py) return; + this._endTime || (this._endTime = zb(e), function(e) { + if (!nx) return; const { description: t = "< unknown name >", op: n = "< unknown op >" - } = my(e), { + } = Ub(e), { spanId: r - } = e.spanContext(), i = `[Tracing] Finishing "${n}" ${ky(e)===e?"root ":""}span "${t}" with ID ${r}`; - Jg.log(i) + } = e.spanContext(), i = `[Tracing] Finishing "${n}" ${Kb(e)===e?"root ":""}span "${t}" with ID ${r}`; + E_.log(i) }(this), this._onSpanEnded()) } getSpanJSON() { - return dv({ + return M_({ data: this._attributes, description: this._name, - op: this._attributes[ry], + op: this._attributes[Ab], parent_span_id: this._parentSpanId, span_id: this._spanId, start_timestamp: this._startTime, - status: vy(this._status), + status: Gb(this._status), timestamp: this._endTime, trace_id: this._traceId, - origin: this._attributes[iy], - _metrics_summary: ey(this), + origin: this._attributes[Pb], + _metrics_summary: Ob(this), profile_id: this._attributes["sentry.profile_id"], - exclusive_time: this._attributes[ly], - measurements: o_(this._events), - is_segment: this._isStandaloneSpan && ky(this) === this || void 0, - segment_id: this._isStandaloneSpan ? ky(this).spanContext().spanId : void 0 + exclusive_time: this._attributes[Lb], + measurements: Rx(this._events), + is_segment: this._isStandaloneSpan && Kb(this) === this || void 0, + segment_id: this._isStandaloneSpan ? Kb(this).spanContext().spanId : void 0 }) } isRecording() { return !this._endTime && !!this._sampled } addEvent(e, t, n) { - Py && Jg.log("[Tracing] Adding an event to span:", e); - const r = d_(t) ? t : n || Pv(), - i = d_(t) ? {} : t || {}, + nx && E_.log("[Tracing] Adding an event to span:", e); + const r = Mx(t) ? t : n || nb(), + i = Mx(t) ? {} : t || {}, a = { name: e, - time: hy(r), + time: zb(r), attributes: i }; return this._events.push(a), this @@ -46797,20 +49138,20 @@ return !!this._isStandaloneSpan } _onSpanEnded() { - const e = Xv(); + const e = Sb(); e && e.emit("spanEnd", this); - if (!(this._isStandaloneSpan || this === ky(this))) return; + if (!(this._isStandaloneSpan || this === Kb(this))) return; if (this._isStandaloneSpan) return void(this._sampled ? function(e) { - const t = Xv(); + const t = Sb(); if (!t) return; const n = e[1]; if (!n || 0 === n.length) return void t.recordDroppedEvent("before_send", "span"); const r = t.getTransport(); r && r.send(e).then(null, (e => { - Py && Jg.error("Error while sending span:", e) + nx && E_.error("Error while sending span:", e) })) }(function(e, t) { - const n = Ay(e[0]), + const n = tx(e[0]), r = t && t.getDsn(), i = t && t.getOptions().tunnel, a = { @@ -46821,38 +49162,38 @@ trace: n }, ...!!i && r && { - dsn: Ly(r) + dsn: ox(r) } }, o = t && t.getOptions().beforeSendSpan, - s = o ? e => o(my(e)) : e => my(e), + s = o ? e => o(Ub(e)) : e => Ub(e), l = []; for (const c of e) { const e = s(c); - e && l.push(e_(e)) + e && l.push(Ox(e)) } - return Yy(a, l) - }([this], e)) : (Py && Jg.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."), e && e.recordDroppedEvent("sample_rate", "span"))); + return xx(a, l) + }([this], e)) : (nx && E_.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."), e && e.recordDroppedEvent("sample_rate", "span"))); const t = this._convertSpanToTransaction(); if (t) { - (c_(this).scope || Yv()).captureEvent(t) + (Nx(this).scope || xb()).captureEvent(t) } } _convertSpanToTransaction() { - if (!p_(my(this))) return; - this._name || (Py && Jg.warn("Transaction has no name, falling back to ``."), this._name = ""); + if (!Fx(Ub(this))) return; + this._name || (nx && E_.warn("Transaction has no name, falling back to ``."), this._name = ""); const { scope: e, isolationScope: t - } = c_(this), n = (e || Yv()).getClient() || Xv(); - if (!0 !== this._sampled) return Py && Jg.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."), void(n && n.recordDroppedEvent("sample_rate", "transaction")); - const r = xy(this).filter((e => e !== this && ! function(e) { - return e instanceof u_ && e.isStandaloneSpan() - }(e))).map((e => my(e))).filter(p_), - i = this._attributes[ty], + } = Nx(this), n = (e || xb()).getClient() || Sb(); + if (!0 !== this._sampled) return nx && E_.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."), void(n && n.recordDroppedEvent("sample_rate", "transaction")); + const r = Hb(this).filter((e => e !== this && ! function(e) { + return e instanceof jx && e.isStandaloneSpan() + }(e))).map((e => Ub(e))).filter(Fx), + i = this._attributes[Ib], a = { contexts: { - trace: uy(this) + trace: jb(this) }, spans: r.length > 1e3 ? r.sort(((e, t) => e.start_timestamp - t.start_timestamp)).slice(0, 1e3) : r, start_timestamp: this._startTime, @@ -46862,43 +49203,43 @@ sdkProcessingMetadata: { capturedSpanScope: e, capturedSpanIsolationScope: t, - ...dv({ - dynamicSamplingContext: Ay(this) + ...M_({ + dynamicSamplingContext: tx(this) }) }, - _metrics_summary: ey(this), + _metrics_summary: Ob(this), ...i && { transaction_info: { source: i } } }, - o = o_(this._events); - return o && Object.keys(o).length && (Py && Jg.log("[Measurements] Adding measurements to transaction event", JSON.stringify(o, void 0, 2)), a.measurements = o), a + o = Rx(this._events); + return o && Object.keys(o).length && (nx && E_.log("[Measurements] Adding measurements to transaction event", JSON.stringify(o, void 0, 2)), a.measurements = o), a } } - function d_(e) { + function Mx(e) { return e && "number" === typeof e || e instanceof Date || Array.isArray(e) } - function p_(e) { + function Fx(e) { return !!e.start_timestamp && !!e.timestamp && !!e.span_id && !!e.trace_id } - const h_ = "__SENTRY_SUPPRESS_TRACING__"; + const zx = "__SENTRY_SUPPRESS_TRACING__"; - function f_(e) { - const t = y_(); + function Vx(e) { + const t = $x(); if (t.startInactiveSpan) return t.startInactiveSpan(e); - const n = v_(e), + const n = Gx(e), { forceTransaction: r, parentSpan: i } = e; - return (e.scope ? t => Zv(e.scope, t) : void 0 !== i ? e => m_(i, e) : e => e())((() => { - const t = Yv(), - i = b_(t); - return e.onlyIfParent && !i ? new Ry : g_({ + return (e.scope ? t => kb(e.scope, t) : void 0 !== i ? e => Ux(i, e) : e => e())((() => { + const t = xb(), + i = Wx(t); + return e.onlyIfParent && !i ? new ix : Bx({ parentSpan: i, spanArguments: n, forceTransaction: r, @@ -46907,49 +49248,49 @@ })) } - function m_(e, t) { - const n = y_(); - return n.withActiveSpan ? n.withActiveSpan(e, t) : Zv((n => (zv(n, e || void 0), t(n)))) + function Ux(e, t) { + const n = $x(); + return n.withActiveSpan ? n.withActiveSpan(e, t) : kb((n => (db(n, e || void 0), t(n)))) } - function g_({ - parentSpan: e, - spanArguments: t, - forceTransaction: n, - scope: r - }) { - if (!Sy()) return new Ry; - const i = Qv(); + function Bx({ + parentSpan: e, + spanArguments: t, + forceTransaction: n, + scope: r + }) { + if (!Qb()) return new ix; + const i = wb(); let a; if (e && !n) a = function(e, t, n) { const { spanId: r, traceId: i - } = e.spanContext(), a = !t.getScopeData().sdkProcessingMetadata[h_] && gy(e), o = a ? new u_({ + } = e.spanContext(), a = !t.getScopeData().sdkProcessingMetadata[zx] && Bb(e), o = a ? new jx({ ...n, parentSpanId: r, traceId: i, sampled: a - }) : new Ry({ + }) : new ix({ traceId: i }); - by(e, o); - const s = Xv(); + Wb(e, o); + const s = Sb(); s && (s.emit("spanStart", o), n.endTimestamp && s.emit("spanEnd", o)); return o - }(e, r, t), by(e, a); + }(e, r, t), Wb(e, a); else if (e) { - const n = Ay(e), + const n = tx(e), { traceId: i, spanId: o } = e.spanContext(), - s = gy(e); - a = __({ + s = Bb(e); + a = qx({ traceId: i, parentSpanId: o, ...t - }, r, s), Iy(a, n) + }, r, s), Jb(a, n) } else { const { traceId: e, @@ -46960,36 +49301,36 @@ ...i.getPropagationContext(), ...r.getPropagationContext() }; - a = __({ + a = qx({ traceId: e, parentSpanId: o, ...t - }, r, s), n && Iy(a, n) + }, r, s), n && Jb(a, n) } return function(e) { - if (!Py) return; + if (!nx) return; + const { + description: t = "< unknown name >", + op: n = "< unknown op >", + parent_span_id: r + } = Ub(e), { + spanId: i + } = e.spanContext(), a = Bb(e), o = Kb(e), s = o === e, l = `[Tracing] Starting ${a?"sampled":"unsampled"} ${s?"root ":""}span`, c = [`op: ${n}`, `name: ${t}`, `ID: ${i}`]; + if (r && c.push(`parent ID: ${r}`), !s) { const { - description: t = "< unknown name >", - op: n = "< unknown op >", - parent_span_id: r - } = my(e), { - spanId: i - } = e.spanContext(), a = gy(e), o = ky(e), s = o === e, l = `[Tracing] Starting ${a?"sampled":"unsampled"} ${s?"root ":""}span`, c = [`op: ${n}`, `name: ${t}`, `ID: ${i}`]; - if (r && c.push(`parent ID: ${r}`), !s) { - const { - op: e, - description: t - } = my(o); - c.push(`root ID: ${o.spanContext().spanId}`), e && c.push(`root op: ${e}`), t && c.push(`root description: ${t}`) - } - Jg.log(`${l}\n ${c.join("\n ")}`) - }(a), + op: e, + description: t + } = Ub(o); + c.push(`root ID: ${o.spanContext().spanId}`), e && c.push(`root op: ${e}`), t && c.push(`root description: ${t}`) + } + E_.log(`${l}\n ${c.join("\n ")}`) + }(a), function(e, t, n) { - e && (av(e, l_, n), av(e, s_, t)) + e && (T_(e, Lx, n), T_(e, Dx, t)) }(a, r, i), a } - function v_(e) { + function Gx(e) { const t = { isStandalone: (e.experimental || {}).standalone, ...e @@ -46998,28 +49339,28 @@ const n = { ...t }; - return n.startTimestamp = hy(e.startTime), delete n.startTime, n + return n.startTimestamp = zb(e.startTime), delete n.startTime, n } return t } - function y_() { - return Kv(Dv()) + function $x() { + return bb(ab()) } - function __(e, t, n) { - const r = Xv(), + function qx(e, t, n) { + const r = Sb(), i = r && r.getOptions() || {}, { name: a = "", attributes: o } = e, - [s, l] = t.getScopeData().sdkProcessingMetadata[h_] ? [!1] : function(e, t) { - if (!Sy(e)) return [!1]; + [s, l] = t.getScopeData().sdkProcessingMetadata[zx] ? [!1] : function(e, t) { + if (!Qb(e)) return [!1]; let n; n = "function" === typeof e.tracesSampler ? e.tracesSampler(t) : void 0 !== t.parentSampled ? t.parentSampled : "undefined" !== typeof e.tracesSampleRate ? e.tracesSampleRate : 1; - const r = Ty(n); - return void 0 === r ? (Py && Jg.warn("[Tracing] Discarding transaction because of invalid sample rate."), [!1]) : r ? Math.random() < r ? [!0, r] : (Py && Jg.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(n)})`), [!1, r]) : (Py && Jg.log("[Tracing] Discarding transaction because " + ("function" === typeof e.tracesSampler ? "tracesSampler returned 0 or false" : "a negative sampling decision was inherited or tracesSampleRate is set to 0")), [!1, r]) + const r = rx(n); + return void 0 === r ? (nx && E_.warn("[Tracing] Discarding transaction because of invalid sample rate."), [!1]) : r ? Math.random() < r ? [!0, r] : (nx && E_.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(n)})`), [!1, r]) : (nx && E_.log("[Tracing] Discarding transaction because " + ("function" === typeof e.tracesSampler ? "tracesSampler returned 0 or false" : "a negative sampling decision was inherited or tracesSampleRate is set to 0")), [!1, r]) }(i, { name: a, parentSampled: n, @@ -47029,25 +49370,25 @@ parentSampled: n } }), - c = new u_({ + c = new jx({ ...e, attributes: { - [ty]: "custom", + [Ib]: "custom", ...e.attributes }, sampled: s }); - return void 0 !== l && c.setAttribute(ny, l), r && r.emit("spanStart", c), c + return void 0 !== l && c.setAttribute(Cb, l), r && r.emit("spanStart", c), c } - function b_(e) { - const t = Vv(e); + function Wx(e) { + const t = pb(e); if (!t) return; - const n = Xv(); - return (n ? n.getOptions() : {}).parentSpanIsAlwaysRootSpan ? ky(t) : t + const n = Sb(); + return (n ? n.getOptions() : {}).parentSpanIsAlwaysRootSpan ? Kb(t) : t } - function x_(e) { + function Hx(e) { if (!e) return {}; const t = e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/); if (!t) return {}; @@ -47062,10 +49403,10 @@ relative: t[5] + n + r } } - const k_ = "undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__, - w_ = Bg; + const Kx = "undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__, + Yx = f_; - function S_(e) { + function Qx(e) { let t, n = e[0], r = 1; for (; r < e.length;) { @@ -47076,21 +49417,21 @@ } return n } - const E_ = (e, t, n, r) => { + const Zx = (e, t, n, r) => { let i, a; return o => { t.value >= 0 && (o || r) && (a = t.value - (i || 0), (a || void 0 === i) && (i = t.value, t.delta = a, t.rating = ((e, t) => e > t[1] ? "poor" : e > t[0] ? "needs-improvement" : "good")(t.value, n), e(t))) } }, - O_ = () => w_.performance && performance.getEntriesByType && performance.getEntriesByType("navigation")[0], - I_ = () => { - const e = O_(); + Xx = () => Yx.performance && performance.getEntriesByType && performance.getEntriesByType("navigation")[0], + Jx = () => { + const e = Xx(); return e && e.activationStart || 0 }, - C_ = (e, t) => { - const n = O_(); + ew = (e, t) => { + const n = Xx(); let r = "navigate"; - n && (w_.document && w_.document.prerendering || I_() > 0 ? r = "prerender" : w_.document && w_.document.wasDiscarded ? r = "restore" : n.type && (r = n.type.replace(/_/g, "-"))); + n && (Yx.document && Yx.document.prerendering || Jx() > 0 ? r = "prerender" : Yx.document && Yx.document.wasDiscarded ? r = "restore" : n.type && (r = n.type.replace(/_/g, "-"))); return { name: e, value: "undefined" === typeof t ? -1 : t, @@ -47101,7 +49442,7 @@ navigationType: r } }, - A_ = (e, t, n) => { + tw = (e, t, n) => { try { if (PerformanceObserver.supportedEntryTypes.includes(e)) { const r = new PerformanceObserver((e => { @@ -47116,47 +49457,47 @@ } } catch (r) {} }, - P_ = e => { + nw = e => { const t = t => { - ("pagehide" === t.type || w_.document && "hidden" === w_.document.visibilityState) && e(t) + ("pagehide" === t.type || Yx.document && "hidden" === Yx.document.visibilityState) && e(t) }; - w_.document && (addEventListener("visibilitychange", t, !0), addEventListener("pagehide", t, !0)) + Yx.document && (addEventListener("visibilitychange", t, !0), addEventListener("pagehide", t, !0)) }, - T_ = e => { + rw = e => { let t = !1; return n => { t || (e(n), t = !0) } }; - let R_ = -1; - const D_ = e => { - "hidden" === w_.document.visibilityState && R_ > -1 && (R_ = "visibilitychange" === e.type ? e.timeStamp : 0, removeEventListener("visibilitychange", D_, !0), removeEventListener("prerenderingchange", D_, !0)) + let iw = -1; + const aw = e => { + "hidden" === Yx.document.visibilityState && iw > -1 && (iw = "visibilitychange" === e.type ? e.timeStamp : 0, removeEventListener("visibilitychange", aw, !0), removeEventListener("prerenderingchange", aw, !0)) }, - L_ = () => (w_.document && R_ < 0 && (R_ = "hidden" !== w_.document.visibilityState || w_.document.prerendering ? 1 / 0 : 0, addEventListener("visibilitychange", D_, !0), addEventListener("prerenderingchange", D_, !0)), { + ow = () => (Yx.document && iw < 0 && (iw = "hidden" !== Yx.document.visibilityState || Yx.document.prerendering ? 1 / 0 : 0, addEventListener("visibilitychange", aw, !0), addEventListener("prerenderingchange", aw, !0)), { get firstHiddenTime() { - return R_ + return iw } }), - N_ = e => { - w_.document && w_.document.prerendering ? addEventListener("prerenderingchange", (() => e()), !0) : e() + sw = e => { + Yx.document && Yx.document.prerendering ? addEventListener("prerenderingchange", (() => e()), !0) : e() }, - j_ = [1800, 3e3], - M_ = [.1, .25], - F_ = (e, t = {}) => { + lw = [1800, 3e3], + cw = [.1, .25], + uw = (e, t = {}) => { ((e, t = {}) => { - N_((() => { - const n = L_(), - r = C_("FCP"); + sw((() => { + const n = ow(), + r = ew("FCP"); let i; - const a = A_("paint", (e => { + const a = tw("paint", (e => { e.forEach((e => { - "first-contentful-paint" === e.name && (a.disconnect(), e.startTime < n.firstHiddenTime && (r.value = Math.max(e.startTime - I_(), 0), r.entries.push(e), i(!0))) + "first-contentful-paint" === e.name && (a.disconnect(), e.startTime < n.firstHiddenTime && (r.value = Math.max(e.startTime - Jx(), 0), r.entries.push(e), i(!0))) })) })); - a && (i = E_(e, r, j_, t.reportAllChanges)) + a && (i = Zx(e, r, lw, t.reportAllChanges)) })) - })(T_((() => { - const n = C_("CLS", 0); + })(rw((() => { + const n = ew("CLS", 0); let r, i = 0, a = []; const o = e => { @@ -47168,37 +49509,37 @@ } })), i > n.value && (n.value = i, n.entries = a, r()) }, - s = A_("layout-shift", o); - s && (r = E_(e, n, M_, t.reportAllChanges), P_((() => { + s = tw("layout-shift", o); + s && (r = Zx(e, n, cw, t.reportAllChanges), nw((() => { o(s.takeRecords()), r(!0) })), setTimeout(r, 0)) }))) }, - z_ = [100, 300]; - let V_ = 0, - U_ = 1 / 0, - B_ = 0; - const G_ = e => { + dw = [100, 300]; + let pw = 0, + hw = 1 / 0, + fw = 0; + const mw = e => { e.forEach((e => { - e.interactionId && (U_ = Math.min(U_, e.interactionId), B_ = Math.max(B_, e.interactionId), V_ = B_ ? (B_ - U_) / 7 + 1 : 0) + e.interactionId && (hw = Math.min(hw, e.interactionId), fw = Math.max(fw, e.interactionId), pw = fw ? (fw - hw) / 7 + 1 : 0) })) }; - let $_; - const q_ = () => { - "interactionCount" in performance || $_ || ($_ = A_("event", G_, { + let gw; + const vw = () => { + "interactionCount" in performance || gw || (gw = tw("event", mw, { type: "event", buffered: !0, durationThreshold: 0 })) }, - W_ = [200, 500], - H_ = () => ($_ ? V_ : performance.interactionCount || 0) - 0, - K_ = [], - Y_ = {}, - Q_ = e => { - const t = K_[K_.length - 1], - n = Y_[e.interactionId]; - if (n || K_.length < 10 || t && e.duration > t.latency) { + yw = [200, 500], + _w = () => (gw ? pw : performance.interactionCount || 0) - 0, + bw = [], + xw = {}, + ww = e => { + const t = bw[bw.length - 1], + n = xw[e.interactionId]; + if (n || bw.length < 10 || t && e.duration > t.latency) { if (n) n.entries.push(e), n.latency = Math.max(n.latency, e.duration); else { const t = { @@ -47206,104 +49547,104 @@ latency: e.duration, entries: [e] }; - Y_[t.id] = t, K_.push(t) + xw[t.id] = t, bw.push(t) } - K_.sort(((e, t) => t.latency - e.latency)), K_.splice(10).forEach((e => { - delete Y_[e.id] + bw.sort(((e, t) => t.latency - e.latency)), bw.splice(10).forEach((e => { + delete xw[e.id] })) } }, - Z_ = (e, t = {}) => { - N_((() => { - q_(); - const n = C_("INP"); + kw = (e, t = {}) => { + sw((() => { + vw(); + const n = ew("INP"); let r; const i = e => { e.forEach((e => { - if (e.interactionId && Q_(e), "first-input" === e.entryType) { - !K_.some((t => t.entries.some((t => e.duration === t.duration && e.startTime === t.startTime)))) && Q_(e) + if (e.interactionId && ww(e), "first-input" === e.entryType) { + !bw.some((t => t.entries.some((t => e.duration === t.duration && e.startTime === t.startTime)))) && ww(e) } })); const t = (() => { - const e = Math.min(K_.length - 1, Math.floor(H_() / 50)); - return K_[e] + const e = Math.min(bw.length - 1, Math.floor(_w() / 50)); + return bw[e] })(); t && t.latency !== n.value && (n.value = t.latency, n.entries = t.entries, r()) }, - a = A_("event", i, { + a = tw("event", i, { durationThreshold: null != t.durationThreshold ? t.durationThreshold : 40 }); - r = E_(e, n, W_, t.reportAllChanges), a && ("PerformanceEventTiming" in w_ && "interactionId" in PerformanceEventTiming.prototype && a.observe({ + r = Zx(e, n, yw, t.reportAllChanges), a && ("PerformanceEventTiming" in Yx && "interactionId" in PerformanceEventTiming.prototype && a.observe({ type: "first-input", buffered: !0 - }), P_((() => { - i(a.takeRecords()), n.value < 0 && H_() > 0 && (n.value = 0, n.entries = []), r(!0) + }), nw((() => { + i(a.takeRecords()), n.value < 0 && _w() > 0 && (n.value = 0, n.entries = []), r(!0) }))) })) }, - X_ = [2500, 4e3], - J_ = {}, - eb = [800, 1800], - tb = e => { - w_.document && w_.document.prerendering ? N_((() => tb(e))) : w_.document && "complete" !== w_.document.readyState ? addEventListener("load", (() => tb(e)), !0) : setTimeout(e, 0) + Sw = [2500, 4e3], + Ew = {}, + Ow = [800, 1800], + Iw = e => { + Yx.document && Yx.document.prerendering ? sw((() => Iw(e))) : Yx.document && "complete" !== Yx.document.readyState ? addEventListener("load", (() => Iw(e)), !0) : setTimeout(e, 0) }, - nb = {}, - rb = {}; - let ib, ab, ob, sb, lb; + Cw = {}, + Aw = {}; + let Pw, Tw, Rw, Dw, Lw; - function cb(e, t = !1) { - return bb("cls", e, mb, ib, t) + function Nw(e, t = !1) { + return Ww("cls", e, Uw, Pw, t) } - function ub(e, t = !1) { - return bb("lcp", e, vb, ob, t) + function jw(e, t = !1) { + return Ww("lcp", e, Gw, Rw, t) } - function db(e) { - return bb("fid", e, gb, ab) + function Mw(e) { + return Ww("fid", e, Bw, Tw) } - function pb(e) { - return bb("inp", e, _b, lb) + function Fw(e) { + return Ww("inp", e, qw, Lw) } - function hb(e, t) { - return xb(e, t), rb[e] || (! function(e) { + function zw(e, t) { + return Hw(e, t), Aw[e] || (! function(e) { const t = {}; "event" === e && (t.durationThreshold = 0); - A_(e, (t => { - fb(e, { + tw(e, (t => { + Vw(e, { entries: t }) }), t) - }(e), rb[e] = !0), kb(e, t) + }(e), Aw[e] = !0), Kw(e, t) } - function fb(e, t) { - const n = nb[e]; + function Vw(e, t) { + const n = Cw[e]; if (n && n.length) for (const i of n) try { i(t) } catch (r) { - k_ && Jg.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${$y(i)}\nError:`, r) + Kx && E_.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${gx(i)}\nError:`, r) } } - function mb() { - return F_((e => { - fb("cls", { + function Uw() { + return uw((e => { + Vw("cls", { metric: e - }), ib = e + }), Pw = e }), { reportAllChanges: !0 }) } - function gb() { + function Bw() { return ((e, t = {}) => { - N_((() => { - const n = L_(), - r = C_("FID"); + sw((() => { + const n = ow(), + r = ew("FID"); let i; const a = e => { e.startTime < n.firstHiddenTime && (r.value = e.processingStart - e.startTime, r.entries.push(e), i(!0)) @@ -47311,105 +49652,105 @@ o = e => { e.forEach(a) }, - s = A_("first-input", o); - i = E_(e, r, z_, t.reportAllChanges), s && P_(T_((() => { + s = tw("first-input", o); + i = Zx(e, r, dw, t.reportAllChanges), s && nw(rw((() => { o(s.takeRecords()), s.disconnect() }))) })) })((e => { - fb("fid", { + Vw("fid", { metric: e - }), ab = e + }), Tw = e })) } - function vb() { + function Gw() { return ((e, t = {}) => { - N_((() => { - const n = L_(), - r = C_("LCP"); + sw((() => { + const n = ow(), + r = ew("LCP"); let i; const a = e => { const t = e[e.length - 1]; - t && t.startTime < n.firstHiddenTime && (r.value = Math.max(t.startTime - I_(), 0), r.entries = [t], i()) + t && t.startTime < n.firstHiddenTime && (r.value = Math.max(t.startTime - Jx(), 0), r.entries = [t], i()) }, - o = A_("largest-contentful-paint", a); + o = tw("largest-contentful-paint", a); if (o) { - i = E_(e, r, X_, t.reportAllChanges); - const n = T_((() => { - J_[r.id] || (a(o.takeRecords()), o.disconnect(), J_[r.id] = !0, i(!0)) + i = Zx(e, r, Sw, t.reportAllChanges); + const n = rw((() => { + Ew[r.id] || (a(o.takeRecords()), o.disconnect(), Ew[r.id] = !0, i(!0)) })); ["keydown", "click"].forEach((e => { - w_.document && addEventListener(e, (() => setTimeout(n, 0)), !0) - })), P_(n) + Yx.document && addEventListener(e, (() => setTimeout(n, 0)), !0) + })), nw(n) } })) })((e => { - fb("lcp", { + Vw("lcp", { metric: e - }), ob = e + }), Rw = e }), { reportAllChanges: !0 }) } - function yb() { + function $w() { return ((e, t = {}) => { - const n = C_("TTFB"), - r = E_(e, n, eb, t.reportAllChanges); - tb((() => { - const e = O_(); + const n = ew("TTFB"), + r = Zx(e, n, Ow, t.reportAllChanges); + Iw((() => { + const e = Xx(); if (e) { const t = e.responseStart; if (t <= 0 || t > performance.now()) return; - n.value = Math.max(t - I_(), 0), n.entries = [e], r(!0) + n.value = Math.max(t - Jx(), 0), n.entries = [e], r(!0) } })) })((e => { - fb("ttfb", { + Vw("ttfb", { metric: e - }), sb = e + }), Dw = e })) } - function _b() { - return Z_((e => { - fb("inp", { + function qw() { + return kw((e => { + Vw("inp", { metric: e - }), lb = e + }), Lw = e })) } - function bb(e, t, n, r, i = !1) { + function Ww(e, t, n, r, i = !1) { let a; - return xb(e, t), rb[e] || (a = n(), rb[e] = !0), r && t({ + return Hw(e, t), Aw[e] || (a = n(), Aw[e] = !0), r && t({ metric: r - }), kb(e, t, i ? a : void 0) + }), Kw(e, t, i ? a : void 0) } - function xb(e, t) { - nb[e] = nb[e] || [], nb[e].push(t) + function Hw(e, t) { + Cw[e] = Cw[e] || [], Cw[e].push(t) } - function kb(e, t, n) { + function Kw(e, t, n) { return () => { n && n(); - const r = nb[e]; + const r = Cw[e]; if (!r) return; const i = r.indexOf(t); - 1 !== i && r.splice(i, 1) } } - function wb(e) { + function Yw(e) { return "number" === typeof e && isFinite(e) } - function Sb(e, t, n, { + function Qw(e, t, n, { ...r }) { - const i = my(e).start_timestamp; - return i && i > t && "function" === typeof e.updateStartTime && e.updateStartTime(t), m_(e, (() => { - const e = f_({ + const i = Ub(e).start_timestamp; + return i && i > t && "function" === typeof e.updateStartTime && e.updateStartTime(t), Ux(e, (() => { + const e = Vx({ startTime: t, ...r }); @@ -47417,8 +49758,8 @@ })) } - function Eb(e) { - const t = Xv(); + function Zw(e) { + const t = Sb(); if (!t) return; const { name: n, @@ -47428,12 +49769,12 @@ } = e, { release: o, environment: s - } = t.getOptions(), l = t.getIntegrationByName("Replay"), c = l && l.getReplayId(), u = Yv(), d = u.getUser(), p = void 0 !== d ? d.email || d.id || d.ip_address : void 0; + } = t.getOptions(), l = t.getIntegrationByName("Replay"), c = l && l.getReplayId(), u = xb(), d = u.getUser(), p = void 0 !== d ? d.email || d.id || d.ip_address : void 0; let h; try { h = u.getScopeData().contexts.profile.profile_id } catch (f) {} - return f_({ + return Vx({ name: n, attributes: { release: o, @@ -47442,7 +49783,7 @@ profile_id: h || void 0, replay_id: c || void 0, transaction: r, - "user_agent.original": w_.navigator && w_.navigator.userAgent, + "user_agent.original": Yx.navigator && Yx.navigator.userAgent, ...i }, startTime: a, @@ -47452,119 +49793,119 @@ }) } - function Ob() { - return w_ && w_.addEventListener && w_.performance + function Xw() { + return Yx && Yx.addEventListener && Yx.performance } - function Ib(e) { + function Jw(e) { return e / 1e3 } - function Cb() { + function ek() { let e, t, n = 0; if (! function() { - try { - return S_([PerformanceObserver, "access", e => e.supportedEntryTypes, "optionalAccess", e => e.includes, "call", e => e("layout-shift")]) - } catch (e) { - return !1 - } - }()) return; + try { + return Qx([PerformanceObserver, "access", e => e.supportedEntryTypes, "optionalAccess", e => e.includes, "call", e => e("layout-shift")]) + } catch (e) { + return !1 + } + }()) return; let r = !1; function i() { r || (r = !0, t && function(e, t, n) { - k_ && Jg.log(`Sending CLS span (${e})`); - const r = Ib((Rv || 0) + (S_([t, "optionalAccess", e => e.startTime]) || 0)), - i = Yv().getScopeData().transactionName, - a = t ? qg(S_([t, "access", e => e.sources, "access", e => e[0], "optionalAccess", e => e.node])) : "Layout shift", - o = dv({ - [iy]: "auto.http.browser.cls", - [ry]: "ui.webvital.cls", - [ly]: S_([t, "optionalAccess", e => e.duration]) || 0, + Kx && E_.log(`Sending CLS span (${e})`); + const r = Jw((ib || 0) + (Qx([t, "optionalAccess", e => e.startTime]) || 0)), + i = xb().getScopeData().transactionName, + a = t ? v_(Qx([t, "access", e => e.sources, "access", e => e[0], "optionalAccess", e => e.node])) : "Layout shift", + o = M_({ + [Pb]: "auto.http.browser.cls", + [Ab]: "ui.webvital.cls", + [Lb]: Qx([t, "optionalAccess", e => e.duration]) || 0, "sentry.pageload.span_id": n }), - s = Eb({ + s = Zw({ name: a, transaction: i, attributes: o, startTime: r }); - S_([s, "optionalAccess", e => e.addEvent, "call", t => t("cls", { - [oy]: "", - [sy]: e - })]), S_([s, "optionalAccess", e => e.end, "call", e => e(r)]) + Qx([s, "optionalAccess", e => e.addEvent, "call", t => t("cls", { + [Rb]: "", + [Db]: e + })]), Qx([s, "optionalAccess", e => e.end, "call", e => e(r)]) }(n, e, t), a()) } - const a = cb((({ - metric: t - }) => { + const a = Nw((({ + metric: t + }) => { const r = t.entries[t.entries.length - 1]; r && (n = t.value, e = r) }), !0); - P_((() => { + nw((() => { i() })), setTimeout((() => { - const e = S_([Xv(), "optionalAccess", e => e.on, "call", t => t("startNavigationSpan", (() => { + const e = Qx([Sb(), "optionalAccess", e => e.on, "call", t => t("startNavigationSpan", (() => { i(), e && e() }))]), - n = wy(), - r = n && ky(n), - a = r && my(r); + n = Yb(), + r = n && Kb(n), + a = r && Ub(r); a && "pageload" === a.op && (t = r.spanContext().spanId) }), 0) } - let Ab, Pb, Tb = 0, - Rb = {}; + let tk, nk, rk = 0, + ik = {}; - function Db({ - recordClsStandaloneSpans: e - }) { - const t = Ob(); - if (t && Rv) { - t.mark && w_.performance.mark("sentry-tracing-init"); - const n = db((({ - metric: e - }) => { + function ak({ + recordClsStandaloneSpans: e + }) { + const t = Xw(); + if (t && ib) { + t.mark && Yx.performance.mark("sentry-tracing-init"); + const n = Mw((({ + metric: e + }) => { const t = e.entries[e.entries.length - 1]; if (!t) return; - const n = Ib(Rv), - r = Ib(t.startTime); - k_ && Jg.log("[Measurements] Adding FID"), Rb.fid = { + const n = Jw(ib), + r = Jw(t.startTime); + Kx && E_.log("[Measurements] Adding FID"), ik.fid = { value: e.value, unit: "millisecond" - }, Rb["mark.fid"] = { + }, ik["mark.fid"] = { value: n + r, unit: "second" } })), - r = ub((({ - metric: e - }) => { + r = jw((({ + metric: e + }) => { const t = e.entries[e.entries.length - 1]; - t && (k_ && Jg.log("[Measurements] Adding LCP"), Rb.lcp = { + t && (Kx && E_.log("[Measurements] Adding LCP"), ik.lcp = { value: e.value, unit: "millisecond" - }, Ab = t) + }, tk = t) }), !0), i = function() { return e = ({ - metric: e - }) => { - e.entries[e.entries.length - 1] && (k_ && Jg.log("[Measurements] Adding TTFB"), Rb.ttfb = { + metric: e + }) => { + e.entries[e.entries.length - 1] && (Kx && E_.log("[Measurements] Adding TTFB"), ik.ttfb = { value: e.value, unit: "millisecond" }) - }, bb("ttfb", e, yb, sb); + }, Ww("ttfb", e, $w, Dw); var e }(), - a = e ? Cb() : cb((({ - metric: e - }) => { + a = e ? ek() : Nw((({ + metric: e + }) => { const t = e.entries[e.entries.length - 1]; - t && (k_ && Jg.log(`[Measurements] Adding CLS ${e.value}`), Rb.cls = { + t && (Kx && E_.log(`[Measurements] Adding CLS ${e.value}`), ik.cls = { value: e.value, unit: "" - }, Pb = t) + }, nk = t) }), !0); return () => { n(), r(), i(), a && a() @@ -47573,185 +49914,185 @@ return () => {} } - function Lb(e, t) { - const n = Ob(); - if (!n || !w_.performance.getEntries || !Rv) return; - k_ && Jg.log("[Tracing] Adding & adjusting spans using Performance API"); - const r = Ib(Rv), + function ok(e, t) { + const n = Xw(); + if (!n || !Yx.performance.getEntries || !ib) return; + Kx && E_.log("[Tracing] Adding & adjusting spans using Performance API"); + const r = Jw(ib), i = n.getEntries(), { op: a, start_timestamp: o - } = my(e); - if (i.slice(Tb).forEach((t => { - const n = Ib(t.startTime), - i = Ib(Math.max(0, t.duration)); - if (!("navigation" === a && o && r + n < o)) switch (t.entryType) { - case "navigation": - ! function(e, t, n) { - ["unloadEvent", "redirect", "domContentLoadedEvent", "loadEvent", "connect"].forEach((r => { - Nb(e, t, r, n) - })), Nb(e, t, "secureConnection", n, "TLS/SSL", "connectEnd"), Nb(e, t, "fetch", n, "cache", "domainLookupStart"), Nb(e, t, "domainLookup", n, "DNS"), - function(e, t, n) { - const r = n + Ib(t.requestStart), - i = n + Ib(t.responseEnd), - a = n + Ib(t.responseStart); - t.responseEnd && (Sb(e, r, i, { - op: "browser.request", - name: t.name, - attributes: { - [iy]: "auto.ui.browser.metrics" - } - }), Sb(e, a, i, { - op: "browser.response", - name: t.name, - attributes: { - [iy]: "auto.ui.browser.metrics" - } - })) - }(e, t, n) - }(e, t, r); - break; - case "mark": - case "paint": - case "measure": { - ! function(e, t, n, r, i) { - const a = O_(), - o = Ib(a ? a.requestStart : 0), - s = i + Math.max(n, o), - l = i + n, - c = l + r, - u = { - [iy]: "auto.resource.browser.metrics" - }; - s !== l && (u["sentry.browser.measure_happened_before_request"] = !0, u["sentry.browser.measure_start_time"] = s); - Sb(e, s, c, { - name: t.name, - op: t.entryType, - attributes: u - }) - }(e, t, n, i, r); - const a = L_(), - o = t.startTime < a.firstHiddenTime; - "first-paint" === t.name && o && (k_ && Jg.log("[Measurements] Adding FP"), Rb.fp = { - value: t.startTime, - unit: "millisecond" - }), "first-contentful-paint" === t.name && o && (k_ && Jg.log("[Measurements] Adding FCP"), Rb.fcp = { - value: t.startTime, - unit: "millisecond" - }); - break - } - case "resource": - ! function(e, t, n, r, i, a) { - if ("xmlhttprequest" === t.initiatorType || "fetch" === t.initiatorType) return; - const o = x_(n), - s = { - [iy]: "auto.resource.browser.metrics" - }; - jb(s, t, "transferSize", "http.response_transfer_size"), jb(s, t, "encodedBodySize", "http.response_content_length"), jb(s, t, "decodedBodySize", "http.decoded_response_content_length"), "renderBlockingStatus" in t && (s["resource.render_blocking_status"] = t.renderBlockingStatus); - o.protocol && (s["url.scheme"] = o.protocol.split(":").pop()); - o.host && (s["server.address"] = o.host); - s["url.same_origin"] = n.includes(w_.location.origin); - const l = a + r, - c = l + i; - Sb(e, l, c, { - name: n.replace(w_.location.origin, ""), - op: t.initiatorType ? `resource.${t.initiatorType}` : "resource.other", - attributes: s - }) - }(e, t, t.name, n, i, r) + } = Ub(e); + if (i.slice(rk).forEach((t => { + const n = Jw(t.startTime), + i = Jw(Math.max(0, t.duration)); + if (!("navigation" === a && o && r + n < o)) switch (t.entryType) { + case "navigation": + ! function(e, t, n) { + ["unloadEvent", "redirect", "domContentLoadedEvent", "loadEvent", "connect"].forEach((r => { + sk(e, t, r, n) + })), sk(e, t, "secureConnection", n, "TLS/SSL", "connectEnd"), sk(e, t, "fetch", n, "cache", "domainLookupStart"), sk(e, t, "domainLookup", n, "DNS"), + function(e, t, n) { + const r = n + Jw(t.requestStart), + i = n + Jw(t.responseEnd), + a = n + Jw(t.responseStart); + t.responseEnd && (Qw(e, r, i, { + op: "browser.request", + name: t.name, + attributes: { + [Pb]: "auto.ui.browser.metrics" + } + }), Qw(e, a, i, { + op: "browser.response", + name: t.name, + attributes: { + [Pb]: "auto.ui.browser.metrics" + } + })) + }(e, t, n) + }(e, t, r); + break; + case "mark": + case "paint": + case "measure": { + ! function(e, t, n, r, i) { + const a = Xx(), + o = Jw(a ? a.requestStart : 0), + s = i + Math.max(n, o), + l = i + n, + c = l + r, + u = { + [Pb]: "auto.resource.browser.metrics" + }; + s !== l && (u["sentry.browser.measure_happened_before_request"] = !0, u["sentry.browser.measure_start_time"] = s); + Qw(e, s, c, { + name: t.name, + op: t.entryType, + attributes: u + }) + }(e, t, n, i, r); + const a = ow(), + o = t.startTime < a.firstHiddenTime; + "first-paint" === t.name && o && (Kx && E_.log("[Measurements] Adding FP"), ik.fp = { + value: t.startTime, + unit: "millisecond" + }), "first-contentful-paint" === t.name && o && (Kx && E_.log("[Measurements] Adding FCP"), ik.fcp = { + value: t.startTime, + unit: "millisecond" + }); + break } - })), Tb = Math.max(i.length - 1, 0), function(e) { - const t = w_.navigator; - if (!t) return; - const n = t.connection; - n && (n.effectiveType && e.setAttribute("effectiveConnectionType", n.effectiveType), n.type && e.setAttribute("connectionType", n.type), wb(n.rtt) && (Rb["connection.rtt"] = { - value: n.rtt, - unit: "millisecond" - })); - wb(t.deviceMemory) && e.setAttribute("deviceMemory", `${t.deviceMemory} GB`); - wb(t.hardwareConcurrency) && e.setAttribute("hardwareConcurrency", String(t.hardwareConcurrency)) - }(e), "pageload" === a) { + case "resource": + ! function(e, t, n, r, i, a) { + if ("xmlhttprequest" === t.initiatorType || "fetch" === t.initiatorType) return; + const o = Hx(n), + s = { + [Pb]: "auto.resource.browser.metrics" + }; + lk(s, t, "transferSize", "http.response_transfer_size"), lk(s, t, "encodedBodySize", "http.response_content_length"), lk(s, t, "decodedBodySize", "http.decoded_response_content_length"), "renderBlockingStatus" in t && (s["resource.render_blocking_status"] = t.renderBlockingStatus); + o.protocol && (s["url.scheme"] = o.protocol.split(":").pop()); + o.host && (s["server.address"] = o.host); + s["url.same_origin"] = n.includes(Yx.location.origin); + const l = a + r, + c = l + i; + Qw(e, l, c, { + name: n.replace(Yx.location.origin, ""), + op: t.initiatorType ? `resource.${t.initiatorType}` : "resource.other", + attributes: s + }) + }(e, t, t.name, n, i, r) + } + })), rk = Math.max(i.length - 1, 0), function(e) { + const t = Yx.navigator; + if (!t) return; + const n = t.connection; + n && (n.effectiveType && e.setAttribute("effectiveConnectionType", n.effectiveType), n.type && e.setAttribute("connectionType", n.type), Yw(n.rtt) && (ik["connection.rtt"] = { + value: n.rtt, + unit: "millisecond" + })); + Yw(t.deviceMemory) && e.setAttribute("deviceMemory", `${t.deviceMemory} GB`); + Yw(t.hardwareConcurrency) && e.setAttribute("hardwareConcurrency", String(t.hardwareConcurrency)) + }(e), "pageload" === a) { ! function(e) { - const t = O_(); + const t = Xx(); if (!t) return; const { responseStart: n, requestStart: r } = t; - r <= n && (k_ && Jg.log("[Measurements] Adding TTFB Request Time"), e["ttfb.requestTime"] = { + r <= n && (Kx && E_.log("[Measurements] Adding TTFB Request Time"), e["ttfb.requestTime"] = { value: n - r, unit: "millisecond" }) - }(Rb); - const n = Rb["mark.fid"]; - n && Rb.fid && (Sb(e, n.value, n.value + Ib(Rb.fid.value), { - name: "first input delay", - op: "ui.action", - attributes: { - [iy]: "auto.ui.browser.metrics" - } - }), delete Rb["mark.fid"]), "fcp" in Rb && t.recordClsOnPageloadSpan || delete Rb.cls, Object.entries(Rb).forEach((([e, t]) => { - ! function(e, t, n, r = wy()) { - const i = r && ky(r); - i && i.addEvent(e, { - [sy]: t, - [oy]: n - }) - }(e, t.value, t.unit) - })), e.setAttribute("performance.timeOrigin", r), e.setAttribute("performance.activationStart", I_()), + }(ik); + const n = ik["mark.fid"]; + n && ik.fid && (Qw(e, n.value, n.value + Jw(ik.fid.value), { + name: "first input delay", + op: "ui.action", + attributes: { + [Pb]: "auto.ui.browser.metrics" + } + }), delete ik["mark.fid"]), "fcp" in ik && t.recordClsOnPageloadSpan || delete ik.cls, Object.entries(ik).forEach((([e, t]) => { + ! function(e, t, n, r = Yb()) { + const i = r && Kb(r); + i && i.addEvent(e, { + [Db]: t, + [Rb]: n + }) + }(e, t.value, t.unit) + })), e.setAttribute("performance.timeOrigin", r), e.setAttribute("performance.activationStart", Jx()), function(e) { - Ab && (k_ && Jg.log("[Measurements] Adding LCP Data"), Ab.element && e.setAttribute("lcp.element", qg(Ab.element)), Ab.id && e.setAttribute("lcp.id", Ab.id), Ab.url && e.setAttribute("lcp.url", Ab.url.trim().slice(0, 200)), e.setAttribute("lcp.size", Ab.size)); - Pb && Pb.sources && (k_ && Jg.log("[Measurements] Adding CLS Data"), Pb.sources.forEach(((t, n) => e.setAttribute(`cls.source.${n+1}`, qg(t.node))))) + tk && (Kx && E_.log("[Measurements] Adding LCP Data"), tk.element && e.setAttribute("lcp.element", v_(tk.element)), tk.id && e.setAttribute("lcp.id", tk.id), tk.url && e.setAttribute("lcp.url", tk.url.trim().slice(0, 200)), e.setAttribute("lcp.size", tk.size)); + nk && nk.sources && (Kx && E_.log("[Measurements] Adding CLS Data"), nk.sources.forEach(((t, n) => e.setAttribute(`cls.source.${n+1}`, v_(t.node))))) }(e) } - Ab = void 0, Pb = void 0, Rb = {} + tk = void 0, nk = void 0, ik = {} } - function Nb(e, t, n, r, i, a) { + function sk(e, t, n, r, i, a) { const o = a ? t[a] : t[`${n}End`], s = t[`${n}Start`]; - s && o && Sb(e, r + Ib(s), r + Ib(o), { + s && o && Qw(e, r + Jw(s), r + Jw(o), { op: `browser.${i||n}`, name: t.name, attributes: { - [iy]: "auto.ui.browser.metrics" + [Pb]: "auto.ui.browser.metrics" } }) } - function jb(e, t, n, r) { + function lk(e, t, n, r) { const i = t[n]; null != i && i < 2147483647 && (e[r] = i) } - const Mb = [], - Fb = new Map; + const ck = [], + uk = new Map; - function zb() { - if (Ob() && Rv) { - const e = pb((({ - metric: e - }) => { + function dk() { + if (Xw() && ib) { + const e = Fw((({ + metric: e + }) => { if (void 0 == e.value) return; - const t = e.entries.find((t => t.duration === e.value && Vb[t.name])); + const t = e.entries.find((t => t.duration === e.value && pk[t.name])); if (!t) return; const { interactionId: n - } = t, r = Vb[t.name], i = Ib(Rv + t.startTime), a = Ib(e.value), o = wy(), s = o ? ky(o) : void 0, l = (null != n ? Fb.get(n) : void 0) || s, c = l ? my(l).description : Yv().getScopeData().transactionName, u = Eb({ - name: qg(t.target), + } = t, r = pk[t.name], i = Jw(ib + t.startTime), a = Jw(e.value), o = Yb(), s = o ? Kb(o) : void 0, l = (null != n ? uk.get(n) : void 0) || s, c = l ? Ub(l).description : xb().getScopeData().transactionName, u = Zw({ + name: v_(t.target), transaction: c, - attributes: dv({ - [iy]: "auto.http.browser.inp", - [ry]: `ui.interaction.${r}`, - [ly]: t.duration + attributes: M_({ + [Pb]: "auto.http.browser.inp", + [Ab]: `ui.interaction.${r}`, + [Lb]: t.duration }), startTime: i }); - S_([u, "optionalAccess", e => e.addEvent, "call", t => t("inp", { - [oy]: "millisecond", - [sy]: e.value - })]), S_([u, "optionalAccess", e => e.end, "call", e => e(i + a)]) + Qx([u, "optionalAccess", e => e.addEvent, "call", t => t("inp", { + [Rb]: "millisecond", + [Db]: e.value + })]), Qx([u, "optionalAccess", e => e.end, "call", e => e(i + a)]) })); return () => { e() @@ -47759,7 +50100,7 @@ } return () => {} } - const Vb = { + const pk = { click: "click", pointerdown: "click", pointerup: "click", @@ -47787,51 +50128,51 @@ keypress: "press", input: "press" }; - const Ub = {}, - Bb = {}; + const hk = {}, + fk = {}; - function Gb(e, t) { - Ub[e] = Ub[e] || [], Ub[e].push(t) + function mk(e, t) { + hk[e] = hk[e] || [], hk[e].push(t) } - function $b(e, t) { - Bb[e] || (t(), Bb[e] = !0) + function gk(e, t) { + fk[e] || (t(), fk[e] = !0) } - function qb(e, t) { - const n = e && Ub[e]; + function vk(e, t) { + const n = e && hk[e]; if (n) for (const i of n) try { i(t) } catch (r) { - Yg && Jg.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${$y(i)}\nError:`, r) + x_ && E_.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${gx(i)}\nError:`, r) } } - const Wb = Bg; - let Hb; + const yk = f_; + let _k; - function Kb(e) { + function bk(e) { const t = "history"; - Gb(t, e), $b(t, Yb) + mk(t, e), gk(t, xk) } - function Yb() { + function xk() { if (! function() { - const e = Wb.chrome, - t = e && e.app && e.app.runtime, - n = "history" in Wb && !!Wb.history.pushState && !!Wb.history.replaceState; - return !t && n - }()) return; - const e = w_.onpopstate; + const e = yk.chrome, + t = e && e.app && e.app.runtime, + n = "history" in yk && !!yk.history.pushState && !!yk.history.replaceState; + return !t && n + }()) return; + const e = Yx.onpopstate; function t(e) { return function(...t) { const n = t.length > 2 ? t[2] : void 0; if (n) { - const e = Hb, + const e = _k, t = String(n); - Hb = t; - qb("history", { + _k = t; + vk("history", { from: e, to: t }) @@ -47839,43 +50180,43 @@ return e.apply(this, t) } } - w_.onpopstate = function(...t) { - const n = w_.location.href, - r = Hb; - Hb = n; - if (qb("history", { - from: r, - to: n - }), e) try { + Yx.onpopstate = function(...t) { + const n = Yx.location.href, + r = _k; + _k = n; + if (vk("history", { + from: r, + to: n + }), e) try { return e.apply(this, t) } catch (i) {} - }, iv(w_.history, "pushState", t), iv(w_.history, "replaceState", t) + }, P_(Yx.history, "pushState", t), P_(Yx.history, "replaceState", t) } - const Qb = { + const wk = { idleTimeout: 1e3, finalTimeout: 3e4, childSpanTimeout: 15e3 }; - function Zb(e, t = {}) { + function kk(e, t = {}) { const n = new Map; let r, i = !1, a = "externalFinish", o = !t.disableAutoFinish; const s = [], { - idleTimeout: l = Qb.idleTimeout, - finalTimeout: c = Qb.finalTimeout, - childSpanTimeout: u = Qb.childSpanTimeout, + idleTimeout: l = wk.idleTimeout, + finalTimeout: c = wk.finalTimeout, + childSpanTimeout: u = wk.childSpanTimeout, beforeSpanEnd: d } = t, - p = Xv(); - if (!p || !Sy()) return new Ry; - const h = Yv(), - f = wy(), + p = Sb(); + if (!p || !Qb()) return new ix; + const h = xb(), + f = Yb(), m = function(e) { - const t = f_(e); - return zv(Yv(), t), Py && Jg.log("[Tracing] Started span is an idle span"), t + const t = Vx(e); + return db(xb(), t), nx && E_.log("[Tracing] Started span is an idle span"), t }(e); function g() { @@ -47895,54 +50236,54 @@ } function _(e) { - i = !0, n.clear(), s.forEach((e => e())), zv(h, f); - const t = my(m), + i = !0, n.clear(), s.forEach((e => e())), db(h, f); + const t = Ub(m), { start_timestamp: r } = t; if (!r) return; - (t.data || {})[ay] || m.setAttribute(ay, a), Jg.log(`[Tracing] Idle span "${t.op}" finished`); - const o = xy(m).filter((e => e !== m)); + (t.data || {})[Tb] || m.setAttribute(Tb, a), E_.log(`[Tracing] Idle span "${t.op}" finished`); + const o = Hb(m).filter((e => e !== m)); let u = 0; o.forEach((t => { t.isRecording() && (t.setStatus({ code: 2, message: "cancelled" - }), t.end(e), Py && Jg.log("[Tracing] Cancelling span since span ended early", JSON.stringify(t, void 0, 2))); - const n = my(t), + }), t.end(e), nx && E_.log("[Tracing] Cancelling span since span ended early", JSON.stringify(t, void 0, 2))); + const n = Ub(t), { timestamp: r = 0, start_timestamp: i = 0 } = n, a = i <= e, o = r - i <= (c + l) / 1e3; - if (Py) { + if (nx) { const e = JSON.stringify(t, void 0, 2); - a ? o || Jg.log("[Tracing] Discarding span since it finished after idle span final timeout", e) : Jg.log("[Tracing] Discarding span since it happened after idle span was finished", e) + a ? o || E_.log("[Tracing] Discarding span since it finished after idle span final timeout", e) : E_.log("[Tracing] Discarding span since it happened after idle span was finished", e) } o && a || (! function(e, t) { - e[yy] && e[yy].delete(t) + e[$b] && e[$b].delete(t) }(m, t), u++) })), u > 0 && m.setAttribute("sentry.idle_span_discarded_spans", u) } return m.end = new Proxy(m.end, { apply(e, t, n) { d && d(m); - const [r, ...i] = n, a = hy(r || Pv()), o = xy(m).filter((e => e !== m)); + const [r, ...i] = n, a = zb(r || nb()), o = Hb(m).filter((e => e !== m)); if (!o.length) return _(a), Reflect.apply(e, t, [a, ...i]); - const s = o.map((e => my(e).timestamp)).filter((e => !!e)), + const s = o.map((e => Ub(e).timestamp)).filter((e => !!e)), l = s.length ? Math.max(...s) : void 0, - u = my(m).start_timestamp, + u = Ub(m).start_timestamp, p = Math.min(u ? u + c / 1e3 : 1 / 0, Math.max(u || -1 / 0, Math.min(a, l || 1 / 0))); return _(p), Reflect.apply(e, t, [p, ...i]) } }), s.push(p.on("spanStart", (e => { - if (i || e === m || my(e).timestamp) return; + if (i || e === m || Ub(e).timestamp) return; var t; - xy(m).includes(e) && (t = e.spanContext().spanId, g(), n.set(t, !0), y(Pv() + u / 1e3)) + Hb(m).includes(e) && (t = e.spanContext().spanId, g(), n.set(t, !0), y(nb() + u / 1e3)) }))), s.push(p.on("spanEnd", (e => { var t; - i || (t = e.spanContext().spanId, n.has(t) && n.delete(t), 0 === n.size && v(Pv() + l / 1e3)) + i || (t = e.spanContext().spanId, n.has(t) && n.delete(t), 0 === n.size && v(nb() + l / 1e3)) }))), s.push(p.on("idleSpanEnableAutoFinish", (e => { e === m && (o = !0, v(), n.size && y()) }))), t.disableAutoFinish || v(), setTimeout((() => { @@ -47952,15 +50293,15 @@ }), a = "finalTimeout", m.end()) }), c), m } - let Xb = null; + let Sk = null; - function Jb(e) { + function Ek(e) { const t = "error"; - Gb(t, e), $b(t, ex) + mk(t, e), gk(t, Ok) } - function ex() { - Xb = Bg.onerror, Bg.onerror = function(e, t, n, r, i) { + function Ok() { + Sk = f_.onerror, f_.onerror = function(e, t, n, r, i) { const a = { column: r, error: i, @@ -47968,57 +50309,57 @@ msg: e, url: t }; - return qb("error", a), !(!Xb || Xb.__SENTRY_LOADER__) && Xb.apply(this, arguments) - }, Bg.onerror.__SENTRY_INSTRUMENTED__ = !0 + return vk("error", a), !(!Sk || Sk.__SENTRY_LOADER__) && Sk.apply(this, arguments) + }, f_.onerror.__SENTRY_INSTRUMENTED__ = !0 } - let tx = null; + let Ik = null; - function nx(e) { + function Ck(e) { const t = "unhandledrejection"; - Gb(t, e), $b(t, rx) + mk(t, e), gk(t, Ak) } - function rx() { - tx = Bg.onunhandledrejection, Bg.onunhandledrejection = function(e) { + function Ak() { + Ik = f_.onunhandledrejection, f_.onunhandledrejection = function(e) { const t = e; - return qb("unhandledrejection", t), !(tx && !tx.__SENTRY_LOADER__) || tx.apply(this, arguments) - }, Bg.onunhandledrejection.__SENTRY_INSTRUMENTED__ = !0 + return vk("unhandledrejection", t), !(Ik && !Ik.__SENTRY_LOADER__) || Ik.apply(this, arguments) + }, f_.onunhandledrejection.__SENTRY_INSTRUMENTED__ = !0 } - let ix = !1; + let Pk = !1; - function ax() { - const e = wy(), - t = e && ky(e); + function Tk() { + const e = Yb(), + t = e && Kb(e); if (t) { const e = "internal_error"; - Py && Jg.log(`[Tracing] Root span: ${e} -> Global error occured`), t.setStatus({ + nx && E_.log(`[Tracing] Root span: ${e} -> Global error occured`), t.setStatus({ code: 2, message: e }) } } - ax.tag = "sentry_tracingErrorCallback"; - const ox = "undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__; - var sx; + Tk.tag = "sentry_tracingErrorCallback"; + const Rk = "undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__; + var Dk; - function lx(e) { - return new ux((t => { + function Lk(e) { + return new jk((t => { t(e) })) } - function cx(e) { - return new ux(((t, n) => { + function Nk(e) { + return new jk(((t, n) => { n(e) })) }! function(e) { e[e.PENDING = 0] = "PENDING"; e[e.RESOLVED = 1] = "RESOLVED"; e[e.REJECTED = 2] = "REJECTED" - }(sx || (sx = {})); - class ux { + }(Dk || (Dk = {})); + class jk { constructor(e) { - ux.prototype.__init.call(this), ux.prototype.__init2.call(this), ux.prototype.__init3.call(this), ux.prototype.__init4.call(this), this._state = sx.PENDING, this._handlers = []; + jk.prototype.__init.call(this), jk.prototype.__init2.call(this), jk.prototype.__init3.call(this), jk.prototype.__init4.call(this), this._state = Dk.PENDING, this._handlers = []; try { e(this._resolve, this._reject) } catch (t) { @@ -48026,7 +50367,7 @@ } } then(e, t) { - return new ux(((n, r) => { + return new jk(((n, r) => { this._handlers.push([!1, t => { if (e) try { n(e(t)) @@ -48044,7 +50385,7 @@ } catch (e) { return this.then((e => e), e) } finally(e) { - return new ux(((t, n) => { + return new jk(((t, n) => { let r, i; return this.then((t => { i = !1, r = t, e && e() @@ -48057,44 +50398,44 @@ } __init() { this._resolve = e => { - this._setResult(sx.RESOLVED, e) + this._setResult(Dk.RESOLVED, e) } } __init2() { this._reject = e => { - this._setResult(sx.REJECTED, e) + this._setResult(Dk.REJECTED, e) } } __init3() { this._setResult = (e, t) => { - this._state === sx.PENDING && (Fg(t) ? t.then(this._resolve, this._reject) : (this._state = e, this._value = t, this._executeHandlers())) + this._state === Dk.PENDING && (u_(t) ? t.then(this._resolve, this._reject) : (this._state = e, this._value = t, this._executeHandlers())) } } __init4() { this._executeHandlers = () => { - if (this._state === sx.PENDING) return; + if (this._state === Dk.PENDING) return; const e = this._handlers.slice(); this._handlers = [], e.forEach((e => { - e[0] || (this._state === sx.RESOLVED && e[1](this._value), this._state === sx.REJECTED && e[2](this._value), e[0] = !0) + e[0] || (this._state === Dk.RESOLVED && e[1](this._value), this._state === Dk.REJECTED && e[2](this._value), e[0] = !0) })) } } } - function dx(e, t, n, r = 0) { - return new ux(((i, a) => { + function Mk(e, t, n, r = 0) { + return new jk(((i, a) => { const o = e[r]; if (null === t || "function" !== typeof o) i(t); else { const s = o({ ...t }, n); - Py && o.id && null === s && Jg.log(`Event processor "${o.id}" dropped event`), Fg(s) ? s.then((t => dx(e, t, n, r + 1).then(i))).then(null, a) : dx(e, s, n, r + 1).then(i).then(null, a) + nx && o.id && null === s && E_.log(`Event processor "${o.id}" dropped event`), u_(s) ? s.then((t => Mk(e, t, n, r + 1).then(i))).then(null, a) : Mk(e, s, n, r + 1).then(i).then(null, a) } })) } - function px(e, t) { + function Fk(e, t) { const { fingerprint: n, span: r, @@ -48109,22 +50450,22 @@ contexts: a, level: o, transactionName: s - } = t, l = dv(n); + } = t, l = M_(n); l && Object.keys(l).length && (e.extra = { ...l, ...e.extra }); - const c = dv(r); + const c = M_(r); c && Object.keys(c).length && (e.tags = { ...c, ...e.tags }); - const u = dv(i); + const u = M_(i); u && Object.keys(u).length && (e.user = { ...u, ...e.user }); - const d = dv(a); + const d = M_(a); d && Object.keys(d).length && (e.contexts = { ...d, ...e.contexts @@ -48132,19 +50473,19 @@ o && (e.level = o); s && "transaction" !== e.type && (e.transaction = s) }(e, t), r && function(e, t) { - e.contexts = { - trace: dy(t), - ...e.contexts - }, e.sdkProcessingMetadata = { - dynamicSamplingContext: Ay(t), - ...e.sdkProcessingMetadata - }; - const n = ky(t), - r = my(n).description; - r && !e.transaction && "transaction" === e.type && (e.transaction = r) - }(e, r), + e.contexts = { + trace: Mb(t), + ...e.contexts + }, e.sdkProcessingMetadata = { + dynamicSamplingContext: tx(t), + ...e.sdkProcessingMetadata + }; + const n = Kb(t), + r = Ub(n).description; + r && !e.transaction && "transaction" === e.type && (e.transaction = r) + }(e, r), function(e, t) { - e.fingerprint = e.fingerprint ? Ev(e.fingerprint) : [], t && (e.fingerprint = e.fingerprint.concat(t)); + e.fingerprint = e.fingerprint ? Z_(e.fingerprint) : [], t && (e.fingerprint = e.fingerprint.concat(t)); e.fingerprint && !e.fingerprint.length && delete e.fingerprint }(e, n), function(e, t) { @@ -48159,7 +50500,7 @@ }(e, a) } - function hx(e, t) { + function zk(e, t) { const { extra: n, tags: r, @@ -48175,13 +50516,13 @@ transactionName: h, span: f } = t; - fx(e, "extra", n), fx(e, "tags", r), fx(e, "user", i), fx(e, "contexts", a), fx(e, "sdkProcessingMetadata", s), o && (e.level = o), h && (e.transactionName = h), f && (e.span = f), l.length && (e.breadcrumbs = [...e.breadcrumbs, ...l]), c.length && (e.fingerprint = [...e.fingerprint, ...c]), u.length && (e.eventProcessors = [...e.eventProcessors, ...u]), d.length && (e.attachments = [...e.attachments, ...d]), e.propagationContext = { + Vk(e, "extra", n), Vk(e, "tags", r), Vk(e, "user", i), Vk(e, "contexts", a), Vk(e, "sdkProcessingMetadata", s), o && (e.level = o), h && (e.transactionName = h), f && (e.span = f), l.length && (e.breadcrumbs = [...e.breadcrumbs, ...l]), c.length && (e.fingerprint = [...e.fingerprint, ...c]), u.length && (e.eventProcessors = [...e.eventProcessors, ...u]), d.length && (e.attachments = [...e.attachments, ...d]), e.propagationContext = { ...e.propagationContext, ...p } } - function fx(e, t, n) { + function Vk(e, t, n) { if (n && Object.keys(n).length) { e[t] = { ...e[t] @@ -48190,14 +50531,14 @@ } } - function mx(e, t, n, r, i, a) { + function Uk(e, t, n, r, i, a) { const { normalizeDepth: o = 3, normalizeMaxBreadth: s = 1e3 } = e, l = { ...t, - event_id: t.event_id || n.event_id || _v(), - timestamp: t.timestamp || Av() + event_id: t.event_id || n.event_id || q_(), + timestamp: t.timestamp || tb() }, c = n.integrations || e.integrations.map((e => e.name)); ! function(e, t) { const { @@ -48206,23 +50547,23 @@ dist: i, maxValueLength: a = 250 } = t; - "environment" in e || (e.environment = "environment" in t ? n : Ey); + "environment" in e || (e.environment = "environment" in t ? n : Zb); void 0 === e.release && void 0 !== r && (e.release = r); void 0 === e.dist && void 0 !== i && (e.dist = i); - e.message && (e.message = ev(e.message, a)); + e.message && (e.message = O_(e.message, a)); const o = e.exception && e.exception.values && e.exception.values[0]; - o && o.value && (o.value = ev(o.value, a)); + o && o.value && (o.value = O_(o.value, a)); const s = e.request; - s && s.url && (s.url = ev(s.url, a)) + s && s.url && (s.url = O_(s.url, a)) }(l, e), - function(e, t) { - t.length > 0 && (e.sdk = e.sdk || {}, e.sdk.integrations = [...e.sdk.integrations || [], ...t]) - }(l, c), i && i.emit("applyFrameMetadata", t), void 0 === t.type && function(e, t) { - const n = Bg._sentryDebugIds; + function(e, t) { + t.length > 0 && (e.sdk = e.sdk || {}, e.sdk.integrations = [...e.sdk.integrations || [], ...t]) + }(l, c), i && i.emit("applyFrameMetadata", t), void 0 === t.type && function(e, t) { + const n = f_._sentryDebugIds; if (!n) return; let r; - const i = gx.get(t); - i ? r = i : (r = new Map, gx.set(t, r)); + const i = Bk.get(t); + i ? r = i : (r = new Map, Bk.set(t, r)); const a = Object.entries(n).reduce(((e, [n, i]) => { let a; const o = r.get(n); @@ -48246,21 +50587,21 @@ }(l, e.stackParser); const u = function(e, t) { if (!t) return e; - const n = e ? e.clone() : new Bv; + const n = e ? e.clone() : new fb; return n.update(t), n }(r, n.captureContext); - n.mechanism && wv(l, n.mechanism); + n.mechanism && Y_(l, n.mechanism); const d = i ? i.getEventProcessors() : [], - p = Gg("globalScope", (() => new Bv)).getScopeData(); + p = m_("globalScope", (() => new fb)).getScopeData(); if (a) { - hx(p, a.getScopeData()) + zk(p, a.getScopeData()) } if (u) { - hx(p, u.getScopeData()) + zk(p, u.getScopeData()) } const h = [...n.attachments || [], ...p.attachments]; - h.length && (n.attachments = h), px(l, p); - return dx([...d, ...p.eventProcessors], l, n).then((e => (e && function(e) { + h.length && (n.attachments = h), Fk(l, p); + return Mk([...d, ...p.eventProcessors], l, n).then((e => (e && function(e) { const t = {}; try { e.exception.values.forEach((e => { @@ -48287,63 +50628,63 @@ breadcrumbs: e.breadcrumbs.map((e => ({ ...e, ...e.data && { - data: Wy(e.data, t, n) + data: yx(e.data, t, n) } }))) }, ...e.user && { - user: Wy(e.user, t, n) + user: yx(e.user, t, n) }, ...e.contexts && { - contexts: Wy(e.contexts, t, n) + contexts: yx(e.contexts, t, n) }, ...e.extra && { - extra: Wy(e.extra, t, n) + extra: yx(e.extra, t, n) } }; - e.contexts && e.contexts.trace && r.contexts && (r.contexts.trace = e.contexts.trace, e.contexts.trace.data && (r.contexts.trace.data = Wy(e.contexts.trace.data, t, n))); + e.contexts && e.contexts.trace && r.contexts && (r.contexts.trace = e.contexts.trace, e.contexts.trace.data && (r.contexts.trace.data = yx(e.contexts.trace.data, t, n))); e.spans && (r.spans = e.spans.map((e => ({ ...e, ...e.data && { - data: Wy(e.data, t, n) + data: yx(e.data, t, n) } })))); return r }(e, o, s) : e))) } - const gx = new WeakMap; + const Bk = new WeakMap; - function vx(e) { + function Gk(e) { if (e) return function(e) { - return e instanceof Bv || "function" === typeof e + return e instanceof fb || "function" === typeof e }(e) || function(e) { - return Object.keys(e).some((e => yx.includes(e))) + return Object.keys(e).some((e => $k.includes(e))) }(e) ? { captureContext: e } : e } - const yx = ["user", "level", "extra", "contexts", "tags", "fingerprint", "requestSession", "propagationContext"]; + const $k = ["user", "level", "extra", "contexts", "tags", "fingerprint", "requestSession", "propagationContext"]; - function _x(e, t) { - return Yv().captureException(e, vx(t)) + function qk(e, t) { + return xb().captureException(e, Gk(t)) } - function bx(e, t) { - return Yv().captureEvent(e, t) + function Wk(e, t) { + return xb().captureEvent(e, t) } - function xx(e) { - const t = Xv(), - n = Qv(), - r = Yv(), + function Hk(e) { + const t = Sb(), + n = wb(), + r = xb(), { release: i, - environment: a = Ey + environment: a = Zb } = t && t.getOptions() || {}, { userAgent: o - } = Bg.navigator || {}, - s = jv({ + } = f_.navigator || {}, + s = lb({ release: i, environment: a, user: r.getUser() || n.getUser(), @@ -48353,14 +50694,14 @@ ...e }), l = n.getSession(); - return l && "ok" === l.status && Mv(l, { + return l && "ok" === l.status && cb(l, { status: "exited" - }), kx(), n.setSession(s), r.setSession(s), s + }), Kk(), n.setSession(s), r.setSession(s), s } - function kx() { - const e = Qv(), - t = Yv(), + function Kk() { + const e = wb(), + t = xb(), n = t.getSession() || e.getSession(); n && function(e, t) { let n = {}; @@ -48368,40 +50709,40 @@ status: t } : "ok" === e.status && (n = { status: "exited" - }), Mv(e, n) - }(n), wx(), e.setSession(), t.setSession() + }), cb(e, n) + }(n), Yk(), e.setSession(), t.setSession() } - function wx() { - const e = Qv(), - t = Yv(), - n = Xv(), + function Yk() { + const e = wb(), + t = xb(), + n = Sb(), r = t.getSession() || e.getSession(); r && n && n.captureSession(r) } - function Sx(e = !1) { - e ? kx() : wx() + function Qk(e = !1) { + e ? Kk() : Yk() } - const Ex = Bg; - let Ox = 0; + const Zk = f_; + let Xk = 0; - function Ix() { - return Ox > 0 + function Jk() { + return Xk > 0 } - function Cx() { - Ox++, setTimeout((() => { - Ox-- + function eS() { + Xk++, setTimeout((() => { + Xk-- })) } - function Ax(e, t = {}, n) { + function tS(e, t = {}, n) { if ("function" !== typeof e) return e; try { const t = e.__sentry_wrapped__; if (t) return "function" === typeof t ? t : e; - if (sv(e)) return e + if (D_(e)) return e } catch (i) { return e } @@ -48409,21 +50750,21 @@ const r = Array.prototype.slice.call(arguments); try { n && "function" === typeof n && n.apply(this, arguments); - const i = r.map((e => Ax(e, t))); + const i = r.map((e => tS(e, t))); return e.apply(this, i) } catch (Yo) { - throw Cx(), Zv((n => { - n.addEventProcessor((e => (t.mechanism && (kv(e, void 0, void 0), wv(e, t.mechanism)), e.extra = { + throw eS(), kb((n => { + n.addEventProcessor((e => (t.mechanism && (K_(e, void 0, void 0), Y_(e, t.mechanism)), e.extra = { ...e.extra, arguments: r - }, e))), _x(Yo) + }, e))), qk(Yo) })), Yo } }; try { for (const t in e) Object.prototype.hasOwnProperty.call(e, t) && (r[t] = e[t]) } catch (a) {} - ov(r, e), av(e, "__sentry_wrapped__", r); + R_(r, e), T_(e, "__sentry_wrapped__", r); try { Object.getOwnPropertyDescriptor(r, "name").configurable && Object.defineProperty(r, "name", { get: () => e.name @@ -48431,40 +50772,40 @@ } catch (a) {} return r } - const Px = "__sentry_xhr_v3__"; + const nS = "__sentry_xhr_v3__"; - function Tx(e) { - Gb("xhr", e), $b("xhr", Rx) + function rS(e) { + mk("xhr", e), gk("xhr", iS) } - function Rx() { - if (!w_.XMLHttpRequest) return; + function iS() { + if (!Yx.XMLHttpRequest) return; const e = XMLHttpRequest.prototype; e.open = new Proxy(e.open, { apply(e, t, n) { - const r = 1e3 * Pv(), - i = Dg(n[0]) ? n[0].toUpperCase() : void 0, + const r = 1e3 * nb(), + i = a_(n[0]) ? n[0].toUpperCase() : void 0, a = function(e) { - if (Dg(e)) return e; + if (a_(e)) return e; try { return e.toString() - } catch (t) {} + } catch (Cs) {} return }(n[1]); if (!i || !a) return e.apply(t, n); - t[Px] = { + t[nS] = { method: i, url: a, request_headers: {} }, "POST" === i && a.match(/sentry_key/) && (t.__sentry_own_request__ = !0); const o = () => { - const e = t[Px]; + const e = t[nS]; if (e && 4 === t.readyState) { try { e.status_code = t.status } catch (n) {} - qb("xhr", { - endTimestamp: 1e3 * Pv(), + vk("xhr", { + endTimestamp: 1e3 * nb(), startTimestamp: r, xhr: t }) @@ -48474,34 +50815,34 @@ apply: (e, t, n) => (o(), e.apply(t, n)) }) : t.addEventListener("readystatechange", o), t.setRequestHeader = new Proxy(t.setRequestHeader, { apply(e, t, n) { - const [r, i] = n, a = t[Px]; - return a && Dg(r) && Dg(i) && (a.request_headers[r.toLowerCase()] = i), e.apply(t, n) + const [r, i] = n, a = t[nS]; + return a && a_(r) && a_(i) && (a.request_headers[r.toLowerCase()] = i), e.apply(t, n) } }), e.apply(t, n) } }), e.send = new Proxy(e.send, { apply(e, t, n) { - const r = t[Px]; + const r = t[nS]; if (!r) return e.apply(t, n); void 0 !== n[0] && (r.body = n[0]); - return qb("xhr", { - startTimestamp: 1e3 * Pv(), + return vk("xhr", { + startTimestamp: 1e3 * nb(), xhr: t }), e.apply(t, n) } }) } - function Dx(e, t, n, r, i = "auto.http.browser") { + function aS(e, t, n, r, i = "auto.http.browser") { if (!e.fetchData) return; - const a = Sy() && t(e.fetchData.url); + const a = Qb() && t(e.fetchData.url); if (e.endTimestamp && a) { const t = e.fetchData.__span; if (!t) return; const n = r[t]; return void(n && (! function(e, t) { if (t.response) { - cy(e, t.response.status); + Nb(e, t.response.status); const n = t.response && t.response.headers && t.response.headers.get("content-length"); if (n) { const t = parseInt(n); @@ -48514,8 +50855,8 @@ e.end() }(n, e), delete r[t])) } - const o = Yv(), - s = Xv(), + const o = xb(), + s = Sb(), { method: l, url: c @@ -48527,9 +50868,9 @@ return } }(c), - d = u ? x_(u).host : void 0, - p = !!wy(), - h = a && p ? f_({ + d = u ? Hx(u).host : void 0, + p = !!Yb(), + h = a && p ? Vx({ name: `${l} ${c}`, attributes: { url: c, @@ -48537,16 +50878,16 @@ "http.method": l, "http.url": u, "server.address": d, - [iy]: i, - [ry]: "http.client" + [Pb]: i, + [Ab]: "http.client" } - }) : new Ry; + }) : new ix; if (e.fetchData.__span = h.spanContext().spanId, r[h.spanContext().spanId] = h, n(e.fetchData.url) && s) { const t = e.args[0]; e.args[1] = e.args[1] || {}; const n = e.args[1]; n.headers = function(e, t, n, r, i) { - const a = Qv(), + const a = wb(), { traceId: o, spanId: s, @@ -48556,17 +50897,17 @@ ...a.getPropagationContext(), ...n.getPropagationContext() }, - u = i ? py(i) : Cv(o, s, l), - d = vv(c || (i ? Ay(i) : Cy(o, t))), - p = r.headers || ("undefined" !== typeof Request && zg(e, Request) ? e.headers : void 0); + u = i ? Fb(i) : eb(o, s, l), + d = G_(c || (i ? tx(i) : ex(o, t))), + p = r.headers || ("undefined" !== typeof Request && d_(e, Request) ? e.headers : void 0); if (p) { - if ("undefined" !== typeof Headers && zg(p, Headers)) { + if ("undefined" !== typeof Headers && d_(p, Headers)) { const e = new Headers(p); - return e.append("sentry-trace", u), d && e.append(hv, d), e + return e.append("sentry-trace", u), d && e.append(z_, d), e } if (Array.isArray(p)) { const e = [...p, ["sentry-trace", u]]; - return d && e.push([hv, d]), e + return d && e.push([z_, d]), e } { const e = "baggage" in p ? p.baggage : void 0, t = []; @@ -48581,14 +50922,14 @@ "sentry-trace": u, baggage: d } - }(t, s, o, n, Sy() && p ? h : void 0) + }(t, s, o, n, Qb() && p ? h : void 0) } return h } - const Lx = Bg; + const oS = f_; - function Nx() { - if (!("fetch" in Lx)) return !1; + function sS() { + if (!("fetch" in oS)) return !1; try { return new Headers, new Request("http://www.example.com"), new Response, !0 } catch (e) { @@ -48596,30 +50937,30 @@ } } - function jx(e) { + function lS(e) { return e && /^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString()) } - function Mx(e, t) { + function cS(e, t) { const n = "fetch"; - Gb(n, e), $b(n, (() => Fx(void 0, t))) + mk(n, e), gk(n, (() => uS(void 0, t))) } - function Fx(e, t = !1) { + function uS(e, t = !1) { t && ! function() { if ("string" === typeof EdgeRuntime) return !0; - if (!Nx()) return !1; - if (jx(Lx.fetch)) return !0; + if (!sS()) return !1; + if (lS(oS.fetch)) return !0; let e = !1; - const t = Lx.document; + const t = oS.document; if (t && "function" === typeof t.createElement) try { const n = t.createElement("iframe"); - n.hidden = !0, t.head.appendChild(n), n.contentWindow && n.contentWindow.fetch && (e = jx(n.contentWindow.fetch)), t.head.removeChild(n) + n.hidden = !0, t.head.appendChild(n), n.contentWindow && n.contentWindow.fetch && (e = lS(n.contentWindow.fetch)), t.head.removeChild(n) } catch (n) { - Yg && Jg.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ", n) + x_ && E_.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ", n) } return e - }() || iv(Bg, "fetch", (function(t) { + }() || P_(f_, "fetch", (function(t) { return function(...n) { const { method: r, @@ -48632,14 +50973,14 @@ if (2 === e.length) { const [t, n] = e; return { - url: Ux(t), - method: Vx(n, "method") ? String(n.method).toUpperCase() : "GET" + url: hS(t), + method: pS(n, "method") ? String(n.method).toUpperCase() : "GET" } } const t = e[0]; return { - url: Ux(t), - method: Vx(t, "method") ? String(t.method).toUpperCase() : "GET" + url: hS(t), + method: pS(t, "method") ? String(t.method).toUpperCase() : "GET" } }(n), a = { args: n, @@ -48647,28 +50988,28 @@ method: r, url: i }, - startTimestamp: 1e3 * Pv() + startTimestamp: 1e3 * nb() }; - e || qb("fetch", { + e || vk("fetch", { ...a }); const o = (new Error).stack; - return t.apply(Bg, n).then((async t => (e ? e(t) : qb("fetch", { + return t.apply(f_, n).then((async t => (e ? e(t) : vk("fetch", { ...a, - endTimestamp: 1e3 * Pv(), + endTimestamp: 1e3 * nb(), response: t }), t)), (e => { - throw qb("fetch", { + throw vk("fetch", { ...a, - endTimestamp: 1e3 * Pv(), + endTimestamp: 1e3 * nb(), error: e - }), Ag(e) && void 0 === e.stack && (e.stack = o, av(e, "framesToPop", 1)), e + }), t_(e) && void 0 === e.stack && (e.stack = o, T_(e, "framesToPop", 1)), e })) } })) } - function zx(e) { + function dS(e) { let t; try { t = e.clone() @@ -48701,29 +51042,29 @@ clearTimeout(a), i.releaseLock(), r.cancel().then(null, (() => {})) } }(t, (() => { - qb("fetch-body-resolved", { - endTimestamp: 1e3 * Pv(), + vk("fetch-body-resolved", { + endTimestamp: 1e3 * nb(), response: e }) })) } - function Vx(e, t) { + function pS(e, t) { return !!e && "object" === typeof e && !!e[t] } - function Ux(e) { - return "string" === typeof e ? e : e ? Vx(e, "url") ? e.url : e.toString ? e.toString() : "" : "" + function hS(e) { + return "string" === typeof e ? e : e ? pS(e, "url") ? e.url : e.toString ? e.toString() : "" : "" } - const Bx = new WeakMap, - Gx = new Map, - $x = { + const fS = new WeakMap, + mS = new Map, + gS = { traceFetch: !0, traceXHR: !0, enableHTTPTimings: !0 }; - function qx(e, t) { + function vS(e, t) { const { traceFetch: n, traceXHR: r, @@ -48731,11 +51072,11 @@ enableHTTPTimings: a, tracePropagationTargets: o } = { - traceFetch: $x.traceFetch, - traceXHR: $x.traceXHR, + traceFetch: gS.traceFetch, + traceXHR: gS.traceXHR, ...t }, s = "function" === typeof i ? i : e => !0, l = e => function(e, t) { - const n = Ex.location && Ex.location.href; + const n = Zk.location && Zk.location.href; if (n) { let i, a; try { @@ -48744,52 +51085,52 @@ return !1 } const o = i.origin === a; - return t ? rv(i.toString(), t) || o && rv(i.pathname, t) : o + return t ? A_(i.toString(), t) || o && A_(i.pathname, t) : o } { const n = !!e.match(/^\/(?!\/)/); - return t ? rv(e, t) : n + return t ? A_(e, t) : n } }(e, o), c = {}; n && (e.addEventProcessor((e => ("transaction" === e.type && e.spans && e.spans.forEach((e => { if ("http.client" === e.op) { - const t = Gx.get(e.span_id); - t && (e.timestamp = t / 1e3, Gx.delete(e.span_id)) + const t = mS.get(e.span_id); + t && (e.timestamp = t / 1e3, mS.delete(e.span_id)) } })), e))), function(e) { const t = "fetch-body-resolved"; - Gb(t, e), $b(t, (() => Fx(zx))) + mk(t, e), gk(t, (() => uS(dS))) }((e => { if (e.response) { - const t = Bx.get(e.response); - t && e.endTimestamp && Gx.set(t, e.endTimestamp) + const t = fS.get(e.response); + t && e.endTimestamp && mS.set(t, e.endTimestamp) } - })), Mx((e => { - const t = Dx(e, s, l, c); - if (e.response && e.fetchData.__span && Bx.set(e.response, e.fetchData.__span), t) { - const n = Kx(e.fetchData.url), - r = n ? x_(n).host : void 0; + })), cS((e => { + const t = aS(e, s, l, c); + if (e.response && e.fetchData.__span && fS.set(e.response, e.fetchData.__span), t) { + const n = bS(e.fetchData.url), + r = n ? Hx(n).host : void 0; t.setAttributes({ "http.url": n, "server.address": r }) } - a && t && Wx(t) - }))), r && Tx((e => { + a && t && yS(t) + }))), r && rS((e => { const t = function(e, t, n, r) { const i = e.xhr, - a = i && i[Px]; + a = i && i[nS]; if (!i || i.__sentry_own_request__ || !a) return; - const o = Sy() && t(a.url); + const o = Qb() && t(a.url); if (e.endTimestamp && o) { const e = i.__sentry_xhr_span_id__; if (!e) return; const t = r[e]; - return void(t && void 0 !== a.status_code && (cy(t, a.status_code), t.end(), delete r[e])) + return void(t && void 0 !== a.status_code && (Nb(t, a.status_code), t.end(), delete r[e])) } - const s = Kx(a.url), - l = s ? x_(s).host : void 0, - c = !!wy(), - u = o && c ? f_({ + const s = bS(a.url), + l = s ? Hx(s).host : void 0, + c = !!Yb(), + u = o && c ? Vx({ name: `${a.method} ${a.url}`, attributes: { type: "xhr", @@ -48797,15 +51138,15 @@ "http.url": s, url: a.url, "server.address": l, - [iy]: "auto.http.browser", - [ry]: "http.client" + [Pb]: "auto.http.browser", + [Ab]: "http.client" } - }) : new Ry; + }) : new ix; i.__sentry_xhr_span_id__ = u.spanContext().spanId, r[i.__sentry_xhr_span_id__] = u; - const d = Xv(); + const d = Sb(); i.setRequestHeader && n(a.url) && d && function(e, t, n) { - const r = Yv(), - i = Qv(), + const r = xb(), + i = wb(), { traceId: a, spanId: o, @@ -48815,32 +51156,32 @@ ...i.getPropagationContext(), ...r.getPropagationContext() }, - c = n && Sy() ? py(n) : Cv(a, o, s), - u = vv(l || (n ? Ay(n) : Cy(a, t))); + c = n && Qb() ? Fb(n) : eb(a, o, s), + u = G_(l || (n ? tx(n) : ex(a, t))); ! function(e, t, n) { try { - e.setRequestHeader("sentry-trace", t), n && e.setRequestHeader(hv, n) - } catch (eo) {} + e.setRequestHeader("sentry-trace", t), n && e.setRequestHeader(z_, n) + } catch (vM) {} }(e, c, u) - }(i, d, Sy() && c ? u : void 0); + }(i, d, Qb() && c ? u : void 0); return u }(e, s, l, c); - a && t && Wx(t) + a && t && yS(t) })) } - function Wx(e) { + function yS(e) { const { url: t - } = my(e).data || {}; + } = Ub(e).data || {}; if (!t || "string" !== typeof t) return; - const n = hb("resource", (({ - entries: r - }) => { + const n = zw("resource", (({ + entries: r + }) => { r.forEach((r => { if (function(e) { - return "resource" === e.entryType && "initiatorType" in e && "string" === typeof e.nextHopProtocol && ("fetch" === e.initiatorType || "xmlhttprequest" === e.initiatorType) - }(r) && r.name.endsWith(t)) { + return "resource" === e.entryType && "initiatorType" in e && "string" === typeof e.nextHopProtocol && ("fetch" === e.initiatorType || "xmlhttprequest" === e.initiatorType) + }(r) && r.name.endsWith(t)) { (function(e) { const { name: t, @@ -48866,17 +51207,17 @@ version: n } }(e.nextHopProtocol), r = []; - if (r.push(["network.protocol.version", n], ["network.protocol.name", t]), !Rv) return r; - return [...r, ["http.request.redirect_start", Hx(e.redirectStart)], - ["http.request.fetch_start", Hx(e.fetchStart)], - ["http.request.domain_lookup_start", Hx(e.domainLookupStart)], - ["http.request.domain_lookup_end", Hx(e.domainLookupEnd)], - ["http.request.connect_start", Hx(e.connectStart)], - ["http.request.secure_connection_start", Hx(e.secureConnectionStart)], - ["http.request.connection_end", Hx(e.connectEnd)], - ["http.request.request_start", Hx(e.requestStart)], - ["http.request.response_start", Hx(e.responseStart)], - ["http.request.response_end", Hx(e.responseEnd)] + if (r.push(["network.protocol.version", n], ["network.protocol.name", t]), !ib) return r; + return [...r, ["http.request.redirect_start", _S(e.redirectStart)], + ["http.request.fetch_start", _S(e.fetchStart)], + ["http.request.domain_lookup_start", _S(e.domainLookupStart)], + ["http.request.domain_lookup_end", _S(e.domainLookupEnd)], + ["http.request.connect_start", _S(e.connectStart)], + ["http.request.secure_connection_start", _S(e.secureConnectionStart)], + ["http.request.connection_end", _S(e.connectEnd)], + ["http.request.request_start", _S(e.requestStart)], + ["http.request.response_start", _S(e.responseStart)], + ["http.request.response_end", _S(e.responseEnd)] ] })(r).forEach((t => e.setAttribute(...t))), setTimeout(n) } @@ -48884,19 +51225,19 @@ })) } - function Hx(e = 0) { - return ((Rv || performance.timeOrigin) + e) / 1e3 + function _S(e = 0) { + return ((ib || performance.timeOrigin) + e) / 1e3 } - function Kx(e) { + function bS(e) { try { - return new URL(e, Ex.location.origin).href - } catch (t) { + return new URL(e, Zk.location.origin).href + } catch (Cs) { return } } - const Yx = { - ...Qb, + const xS = { + ...wk, instrumentNavigation: !0, instrumentPageLoad: !0, markBackgroundSpan: !0, @@ -48904,60 +51245,60 @@ enableLongAnimationFrame: !0, enableInp: !0, _experiments: {}, - ...$x + ...gS }; - function Qx(e) { - const t = (n = `meta[name=${e}]`, $g.document && $g.document.querySelector ? $g.document.querySelector(n) : null); + function wS(e) { + const t = (n = `meta[name=${e}]`, g_.document && g_.document.querySelector ? g_.document.querySelector(n) : null); var n; return t ? t.getAttribute("content") : void 0 } - const Zx = 100; + const kS = 100; - function Xx(e, t) { - const n = Xv(), - r = Qv(); + function SS(e, t) { + const n = Sb(), + r = wb(); if (!n) return; const { beforeBreadcrumb: i = null, - maxBreadcrumbs: a = Zx + maxBreadcrumbs: a = kS } = n.getOptions(); if (a <= 0) return; const o = { - timestamp: Av(), + timestamp: tb(), ...e }, - s = i ? Xg((() => i(o, t))) : o; + s = i ? S_((() => i(o, t))) : o; null !== s && (n.emit && n.emit("beforeAddBreadcrumb", s, t), r.addBreadcrumb(s, a)) } - function Jx(e, t) { + function ES(e, t) { const n = t && t.getDsn(), r = t && t.getOptions().tunnel; return function(e, t) { return !!t && e.includes(t.host) }(e, n) || function(e, t) { if (!t) return !1; - return ek(e) === ek(t) + return OS(e) === OS(t) }(e, r) } - function ek(e) { + function OS(e) { return "/" === e[e.length - 1] ? e.slice(0, -1) : e } - const tk = ["fatal", "error", "warning", "log", "info", "debug"]; + const IS = ["fatal", "error", "warning", "log", "info", "debug"]; - function nk(e) { - return "warn" === e ? "warning" : tk.includes(e) ? e : "log" + function CS(e) { + return "warn" === e ? "warning" : IS.includes(e) ? e : "log" } - function rk(e, t, n = Date.now()) { + function AS(e, t, n = Date.now()) { return function(e, t) { return e[t] || e.all || 0 }(e, t) > n } - function ik(e, { + function PS(e, { statusCode: t, headers: n }, r = Date.now()) { @@ -48973,60 +51314,60 @@ for (const s of t.split(";")) "metric_bucket" === s && n && !n.split(";").includes("custom") || (i[s] = r + o); else i.all = r + o } else o ? i.all = r + function(e, t = Date.now()) { - const n = parseInt(`${e}`, 10); - if (!isNaN(n)) return 1e3 * n; - const r = Date.parse(`${e}`); - return isNaN(r) ? 6e4 : r - t - }(o, r) : 429 === t && (i.all = r + 6e4); + const n = parseInt(`${e}`, 10); + if (!isNaN(n)) return 1e3 * n; + const r = Date.parse(`${e}`); + return isNaN(r) ? 6e4 : r - t + }(o, r) : 429 === t && (i.all = r + 6e4); return i } - function ak() { + function TS() { return !("undefined" !== typeof __SENTRY_BROWSER_BUNDLE__ && __SENTRY_BROWSER_BUNDLE__) && "[object process]" === Object.prototype.toString.call("undefined" !== typeof process ? process : 0) } - function ok() { - return "undefined" !== typeof window && (!ak() || void 0 !== Bg.process && "renderer" === Bg.process.type) + function RS() { + return "undefined" !== typeof window && (!TS() || void 0 !== f_.process && "renderer" === f_.process.type) } - const sk = {}; + const DS = {}; - function lk(e) { - const t = sk[e]; + function LS(e) { + const t = DS[e]; if (t) return t; - let n = w_[e]; - if (jx(n)) return sk[e] = n.bind(w_); - const r = w_.document; + let n = Yx[e]; + if (lS(n)) return DS[e] = n.bind(Yx); + const r = Yx.document; if (r && "function" === typeof r.createElement) try { const t = r.createElement("iframe"); t.hidden = !0, r.head.appendChild(t); const i = t.contentWindow; i && i[e] && (n = i[e]), r.head.removeChild(t) } catch (i) { - k_ && Jg.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `, i) + Kx && E_.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `, i) } - return n ? sk[e] = n.bind(w_) : n + return n ? DS[e] = n.bind(Yx) : n } - function ck(e) { - sk[e] = void 0 + function NS(e) { + DS[e] = void 0 } - function uk(...e) { - return lk("setTimeout")(...e) + function jS(...e) { + return LS("setTimeout")(...e) } - let dk, pk, hk; + let MS, FS, zS; - function fk(e) { - Gb("dom", e), $b("dom", mk) + function VS(e) { + mk("dom", e), gk("dom", US) } - function mk() { - if (!w_.document) return; - const e = qb.bind(null, "dom"), - t = gk(e, !0); - w_.document.addEventListener("click", t, !1), w_.document.addEventListener("keypress", t, !1), ["EventTarget", "Node"].forEach((t => { - const n = w_[t] && w_[t].prototype; - n && n.hasOwnProperty && n.hasOwnProperty("addEventListener") && (iv(n, "addEventListener", (function(t) { + function US() { + if (!Yx.document) return; + const e = vk.bind(null, "dom"), + t = BS(e, !0); + Yx.document.addEventListener("click", t, !1), Yx.document.addEventListener("keypress", t, !1), ["EventTarget", "Node"].forEach((t => { + const n = Yx[t] && Yx[t].prototype; + n && n.hasOwnProperty && n.hasOwnProperty("addEventListener") && (P_(n, "addEventListener", (function(t) { return function(n, r, i) { if ("click" === n || "keypress" == n) try { const r = this, @@ -49035,14 +51376,14 @@ refCount: 0 }; if (!o.handler) { - const r = gk(e); + const r = BS(e); o.handler = r, t.call(this, n, r, i) } o.refCount++ } catch (a) {} return t.call(this, n, r, i) } - })), iv(n, "removeEventListener", (function(e) { + })), P_(n, "removeEventListener", (function(e) { return function(t, n, r) { if ("click" === t || "keypress" == t) try { const n = this, @@ -49056,7 +51397,7 @@ })) } - function gk(e, t = !1) { + function BS(e, t = !1) { return n => { if (!n || n._sentryCaptured) return; const r = function(e) { @@ -49067,41 +51408,41 @@ } }(n); if (function(e, t) { - return "keypress" === e && (!t || !t.tagName || "INPUT" !== t.tagName && "TEXTAREA" !== t.tagName && !t.isContentEditable) - }(n.type, r)) return; - av(n, "_sentryCaptured", !0), r && !r._sentryId && av(r, "_sentryId", _v()); + return "keypress" === e && (!t || !t.tagName || "INPUT" !== t.tagName && "TEXTAREA" !== t.tagName && !t.isContentEditable) + }(n.type, r)) return; + T_(n, "_sentryCaptured", !0), r && !r._sentryId && T_(r, "_sentryId", q_()); const i = "keypress" === n.type ? "input" : n.type; if (! function(e) { - if (e.type !== pk) return !1; - try { - if (!e.target || e.target._sentryId !== hk) return !1 - } catch (t) {} - return !0 - }(n)) { + if (e.type !== FS) return !1; + try { + if (!e.target || e.target._sentryId !== zS) return !1 + } catch (t) {} + return !0 + }(n)) { e({ event: n, name: i, global: t - }), pk = n.type, hk = r ? r._sentryId : void 0 + }), FS = n.type, zS = r ? r._sentryId : void 0 } - clearTimeout(dk), dk = w_.setTimeout((() => { - hk = void 0, pk = void 0 + clearTimeout(MS), MS = Yx.setTimeout((() => { + zS = void 0, FS = void 0 }), 1e3) } } - const vk = Bg, - yk = "sentryReplaySession", - _k = "Unable to send Replay", - bk = 15e4, - xk = 5e3, - kk = 2e7, - wk = 36e5; + const GS = f_, + $S = "sentryReplaySession", + qS = "Unable to send Replay", + WS = 15e4, + HS = 5e3, + KS = 2e7, + YS = 36e5; - function Sk(e, t) { + function QS(e, t) { return null != e ? e : t() } - function Ek(e) { + function ZS(e) { let t, n = e[0], r = 1; for (; r < e.length;) { @@ -49112,33 +51453,33 @@ } return n } - var Ok; + var XS; - function Ik(e) { - const t = Ek([e, "optionalAccess", e => e.host]); - return Boolean(Ek([t, "optionalAccess", e => e.shadowRoot]) === e) + function JS(e) { + const t = ZS([e, "optionalAccess", e => e.host]); + return Boolean(ZS([t, "optionalAccess", e => e.shadowRoot]) === e) } - function Ck(e) { + function eE(e) { return "[object ShadowRoot]" === Object.prototype.toString.call(e) } - function Ak(e) { + function tE(e) { try { const n = e.rules || e.cssRules; - return n ? ((t = Array.from(n, Pk).join("")).includes(" background-clip: text;") && !t.includes(" -webkit-background-clip: text;") && (t = t.replace(" background-clip: text;", " -webkit-background-clip: text; background-clip: text;")), t) : null + return n ? ((t = Array.from(n, nE).join("")).includes(" background-clip: text;") && !t.includes(" -webkit-background-clip: text;") && (t = t.replace(" background-clip: text;", " -webkit-background-clip: text; background-clip: text;")), t) : null } catch (n) { return null } var t } - function Pk(e) { + function nE(e) { let t; if (function(e) { - return "styleSheet" in e - }(e)) try { - t = Ak(e.styleSheet) || function(e) { + return "styleSheet" in e + }(e)) try { + t = tE(e.styleSheet) || function(e) { const { cssText: t } = e; @@ -49147,22 +51488,22 @@ return "" === e.layerName ? n.push("layer") : e.layerName && n.push(`layer(${e.layerName})`), e.supportsText && n.push(`supports(${e.supportsText})`), e.media.length && n.push(e.media.mediaText), n.join(" ") + ";" }(e) } catch (n) {} else if (function(e) { - return "selectorText" in e - }(e) && e.selectorText.includes(":")) return function(e) { + return "selectorText" in e + }(e) && e.selectorText.includes(":")) return function(e) { const t = /(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm; return e.replace(t, "$1\\$2") }(e.cssText); return t || e.cssText }! function(e) { e[e.Document = 0] = "Document", e[e.DocumentType = 1] = "DocumentType", e[e.Element = 2] = "Element", e[e.Text = 3] = "Text", e[e.CDATA = 4] = "CDATA", e[e.Comment = 5] = "Comment" - }(Ok || (Ok = {})); - class Tk { + }(XS || (XS = {})); + class rE { constructor() { this.idNodeMap = new Map, this.nodeMetaMap = new WeakMap } getId(e) { if (!e) return -1; - return Sk(Ek([this, "access", e => e.getMeta, "call", t => t(e), "optionalAccess", e => e.id]), (() => -1)) + return QS(ZS([this, "access", e => e.getMeta, "call", t => t(e), "optionalAccess", e => e.id]), (() => -1)) } getNode(e) { return this.idNodeMap.get(e) || null @@ -49200,55 +51541,55 @@ } } - function Rk({ - maskInputOptions: e, - tagName: t, - type: n - }) { + function iE({ + maskInputOptions: e, + tagName: t, + type: n + }) { return "OPTION" === t && (t = "SELECT"), Boolean(e[t.toLowerCase()] || n && e[n] || "password" === n || "INPUT" === t && !n && e.text) } - function Dk({ - isMasked: e, - element: t, - value: n, - maskInputFn: r - }) { + function aE({ + isMasked: e, + element: t, + value: n, + maskInputFn: r + }) { let i = n || ""; return e ? (r && (i = r(i, t)), "*".repeat(i.length)) : i } - function Lk(e) { + function oE(e) { return e.toLowerCase() } - function Nk(e) { + function sE(e) { return e.toUpperCase() } - const jk = "__rrweb_original__"; + const lE = "__rrweb_original__"; - function Mk(e) { + function cE(e) { const t = e.type; - return e.hasAttribute("data-rr-is-password") ? "password" : t ? Lk(t) : null + return e.hasAttribute("data-rr-is-password") ? "password" : t ? oE(t) : null } - function Fk(e, t, n) { + function uE(e, t, n) { return "INPUT" !== t || "radio" !== n && "checkbox" !== n ? e.value : e.getAttribute("value") || "" } - function zk(e, t) { + function dE(e, t) { let n; try { - n = new URL(e, Sk(t, (() => window.location.href))) + n = new URL(e, QS(t, (() => window.location.href))) } catch (r) { return null } - return Sk(Ek([n.pathname.match(/\.([0-9a-z]+)(?:$)/i), "optionalAccess", e => e[1]]), (() => null)) + return QS(ZS([n.pathname.match(/\.([0-9a-z]+)(?:$)/i), "optionalAccess", e => e[1]]), (() => null)) } - const Vk = {}; + const pE = {}; - function Uk(e) { - const t = Vk[e]; + function hE(e) { + const t = pE[e]; if (t) return t; const n = window.document; let r = window[e]; @@ -49258,35 +51599,35 @@ const i = t.contentWindow; i && i[e] && (r = i[e]), n.head.removeChild(t) } catch (i) {} - return Vk[e] = r.bind(window) + return pE[e] = r.bind(window) } - function Bk(...e) { - return Uk("setTimeout")(...e) + function fE(...e) { + return hE("setTimeout")(...e) } - function Gk(...e) { - return Uk("clearTimeout")(...e) + function mE(...e) { + return hE("clearTimeout")(...e) } - let $k = 1; - const qk = new RegExp("[^a-z0-9-_:]"); + let gE = 1; + const vE = new RegExp("[^a-z0-9-_:]"); - function Wk() { - return $k++ + function yE() { + return gE++ } - let Hk, Kk; - const Yk = /url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm, - Qk = /^(?:[a-z+]+:)?\/\//i, - Zk = /^www\..*/i, - Xk = /^(data:)([^,]*),(.*)/i; + let _E, bE; + const xE = /url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm, + wE = /^(?:[a-z+]+:)?\/\//i, + kE = /^www\..*/i, + SE = /^(data:)([^,]*),(.*)/i; - function Jk(e, t) { - return (e || "").replace(Yk, ((e, n, r, i, a, o) => { + function EE(e, t) { + return (e || "").replace(xE, ((e, n, r, i, a, o) => { const s = r || a || o, l = n || i || ""; if (!s) return e; - if (Qk.test(s) || Zk.test(s)) return `url(${l}${s}${l})`; - if (Xk.test(s)) return `url(${l}${s}${l})`; + if (wE.test(s) || kE.test(s)) return `url(${l}${s}${l})`; + if (SE.test(s)) return `url(${l}${s}${l})`; if ("/" === s[0]) return `url(${l}${function(e){let t="";return t=e.indexOf("//")>-1?e.split("/").slice(0,3).join("/"):e.split("/")[0],t=t.split("?")[0],t}(t)+s}${l})`; const c = t.split("/"), u = s.split("/"); @@ -49295,26 +51636,26 @@ return `url(${l}${c.join("/")}${l})` })) } - const ew = /^[^ \t\n\r\u000c]+/, - tw = /^[, \t\n\r\u000c]+/; + const OE = /^[^ \t\n\r\u000c]+/, + IE = /^[, \t\n\r\u000c]+/; - function nw(e, t) { + function CE(e, t) { if (!t || "" === t.trim()) return t; const n = e.createElement("a"); return n.href = t, n.href } - function rw(e) { + function AE(e) { return Boolean("svg" === e.tagName || e.ownerSVGElement) } - function iw() { + function PE() { const e = document.createElement("a"); return e.href = "", e.href } - function aw(e, t, n, r, i, a) { - return r ? "src" === n || "href" === n && ("use" !== t || "#" !== r[0]) || "xlink:href" === n && "#" !== r[0] ? nw(e, r) : "background" !== n || "table" !== t && "td" !== t && "th" !== t ? "srcset" === n ? function(e, t) { + function TE(e, t, n, r, i, a) { + return r ? "src" === n || "href" === n && ("use" !== t || "#" !== r[0]) || "xlink:href" === n && "#" !== r[0] ? CE(e, r) : "background" !== n || "table" !== t && "td" !== t && "th" !== t ? "srcset" === n ? function(e, t) { if ("" === t.trim()) return t; let n = 0; @@ -49324,12 +51665,12 @@ return i ? (r = i[0], n += r.length, r) : "" } const i = []; - for (; r(tw), !(n >= t.length);) { - let a = r(ew); - if ("," === a.slice(-1)) a = nw(e, a.substring(0, a.length - 1)), i.push(a); + for (; r(IE), !(n >= t.length);) { + let a = r(OE); + if ("," === a.slice(-1)) a = CE(e, a.substring(0, a.length - 1)), i.push(a); else { let r = ""; - a = nw(e, a); + a = CE(e, a); let o = !1; for (;;) { const e = t.charAt(n); @@ -49350,18 +51691,18 @@ } } return i.join(", ") - }(e, r) : "style" === n ? Jk(r, iw()) : "object" === t && "data" === n ? nw(e, r) : "function" === typeof a ? a(n, r, i) : r : nw(e, r) : r + }(e, r) : "style" === n ? EE(r, PE()) : "object" === t && "data" === n ? CE(e, r) : "function" === typeof a ? a(n, r, i) : r : CE(e, r) : r } - function ow(e, t, n) { + function RE(e, t, n) { return ("video" === e || "audio" === e) && "autoplay" === t } - function sw(e, t, n = 1 / 0, r = 0) { - return e ? e.nodeType !== e.ELEMENT_NODE || r > n ? -1 : t(e) ? r : sw(e.parentNode, t, n, r + 1) : -1 + function DE(e, t, n = 1 / 0, r = 0) { + return e ? e.nodeType !== e.ELEMENT_NODE || r > n ? -1 : t(e) ? r : DE(e.parentNode, t, n, r + 1) : -1 } - function lw(e, t) { + function LE(e, t) { return n => { const r = n; if (null === r) return !1; @@ -49377,13 +51718,13 @@ return !1 }(r, e)) return !0; return !(!t || !r.matches(t)) - } catch (i) { + } catch (Cs) { return !1 } } } - function cw(e, t, n, r, i, a) { + function NE(e, t, n, r, i, a) { try { const o = e.nodeType === e.ELEMENT_NODE ? e : e.parentElement; if (null === o) return !1; @@ -49394,18 +51735,18 @@ let s = -1, l = -1; if (a) { - if (l = sw(o, lw(r, i)), l < 0) return !0; - s = sw(o, lw(t, n), l >= 0 ? l : 1 / 0) + if (l = DE(o, LE(r, i)), l < 0) return !0; + s = DE(o, LE(t, n), l >= 0 ? l : 1 / 0) } else { - if (s = sw(o, lw(t, n)), s < 0) return !1; - l = sw(o, lw(r, i), s >= 0 ? s : 1 / 0) + if (s = DE(o, LE(t, n)), s < 0) return !1; + l = DE(o, LE(r, i), s >= 0 ? s : 1 / 0) } return s >= 0 ? !(l >= 0) || s <= l : !(l >= 0) && !!a } catch (o) {} return !!a } - function uw(e, t) { + function jE(e, t) { const { doc: n, mirror: r, @@ -49427,7 +51768,7 @@ recordCanvas: _, keepIframeSrcFn: b, newlyAddedElement: x = !1 - } = t, k = function(e, t) { + } = t, w = function(e, t) { if (!t.hasNode(e)) return; const n = t.getId(e); return 1 === n ? void 0 : n @@ -49435,16 +51776,16 @@ switch (e.nodeType) { case e.DOCUMENT_NODE: return "CSS1Compat" !== e.compatMode ? { - type: Ok.Document, + type: XS.Document, childNodes: [], compatMode: e.compatMode } : { - type: Ok.Document, + type: XS.Document, childNodes: [] }; case e.DOCUMENT_TYPE_NODE: return { - type: Ok.DocumentType, name: e.name, publicId: e.publicId, systemId: e.systemId, rootId: k + type: XS.DocumentType, name: e.name, publicId: e.publicId, systemId: e.systemId, rootId: w }; case e.ELEMENT_NODE: return function(e, t) { @@ -49481,105 +51822,105 @@ if (n) return e.matches(n) } catch (i) {} return !1 - }(e, r, i, a), k = function(e) { + }(e, r, i, a), w = function(e) { if (e instanceof HTMLFormElement) return "form"; - const t = Lk(e.tagName); - return qk.test(t) ? "div" : t + const t = oE(e.tagName); + return vE.test(t) ? "div" : t }(e); - let w = {}; + let k = {}; const S = e.attributes.length; for (let I = 0; I < S; I++) { const t = e.attributes[I]; - t.name && !ow(k, t.name, t.value) && (w[t.name] = aw(n, k, Lk(t.name), t.value, e, l)) + t.name && !RE(w, t.name, t.value) && (k[t.name] = TE(n, w, oE(t.name), t.value, e, l)) } - if ("link" === k && o) { + if ("link" === w && o) { const t = Array.from(n.styleSheets).find((t => t.href === e.href)); let r = null; - t && (r = Ak(t)), r && (delete w.rel, delete w.href, w._cssText = Jk(r, t.href)) + t && (r = tE(t)), r && (delete k.rel, delete k.href, k._cssText = EE(r, t.href)) } - if ("style" === k && e.sheet && !(e.innerText || e.textContent || "").trim().length) { - const t = Ak(e.sheet); - t && (w._cssText = Jk(t, iw())) + if ("style" === w && e.sheet && !(e.innerText || e.textContent || "").trim().length) { + const t = tE(e.sheet); + t && (k._cssText = EE(t, PE())) } - if ("input" === k || "textarea" === k || "select" === k || "option" === k) { + if ("input" === w || "textarea" === w || "select" === w || "option" === w) { const t = e, - n = Mk(t), - r = Fk(t, Nk(k), n), + n = cE(t), + r = uE(t, sE(w), n), i = t.checked; if ("submit" !== n && "button" !== n && r) { - const e = cw(t, v, _, y, b, Rk({ + const e = NE(t, v, _, y, b, iE({ type: n, - tagName: Nk(k), + tagName: sE(w), maskInputOptions: s })); - w.value = Dk({ + k.value = aE({ isMasked: e, element: t, value: r, maskInputFn: c }) } - i && (w.checked = i) + i && (k.checked = i) } - "option" === k && (e.selected && !s.select ? w.selected = !0 : delete w.selected); - if ("canvas" === k && p) + "option" === w && (e.selected && !s.select ? k.selected = !0 : delete k.selected); + if ("canvas" === w && p) if ("2d" === e.__context)(function(e) { const t = e.getContext("2d"); if (!t) return !0; for (let n = 0; n < e.width; n += 50) for (let r = 0; r < e.height; r += 50) { const i = t.getImageData, - a = jk in i ? i[jk] : i; + a = lE in i ? i[lE] : i; if (new Uint32Array(a.call(t, n, r, Math.min(50, e.width - n), Math.min(50, e.height - r)).data.buffer).some((e => 0 !== e))) return !1 } return !0 - })(e) || (w.rr_dataURL = e.toDataURL(u.type, u.quality)); + })(e) || (k.rr_dataURL = e.toDataURL(u.type, u.quality)); else if (!("__context" in e)) { - const t = e.toDataURL(u.type, u.quality), - n = document.createElement("canvas"); - n.width = e.width, n.height = e.height; - t !== n.toDataURL(u.type, u.quality) && (w.rr_dataURL = t) - } - if ("img" === k && d) { - Hk || (Hk = n.createElement("canvas"), Kk = Hk.getContext("2d")); + const t = e.toDataURL(u.type, u.quality), + n = document.createElement("canvas"); + n.width = e.width, n.height = e.height; + t !== n.toDataURL(u.type, u.quality) && (k.rr_dataURL = t) + } + if ("img" === w && d) { + _E || (_E = n.createElement("canvas"), bE = _E.getContext("2d")); const t = e, r = t.crossOrigin; t.crossOrigin = "anonymous"; const i = () => { t.removeEventListener("load", i); try { - Hk.width = t.naturalWidth, Hk.height = t.naturalHeight, Kk.drawImage(t, 0, 0), w.rr_dataURL = Hk.toDataURL(u.type, u.quality) + _E.width = t.naturalWidth, _E.height = t.naturalHeight, bE.drawImage(t, 0, 0), k.rr_dataURL = _E.toDataURL(u.type, u.quality) } catch (e) { console.warn(`Cannot inline img src=${t.currentSrc}! Error: ${e}`) } - r ? w.crossOrigin = r : t.removeAttribute("crossorigin") + r ? k.crossOrigin = r : t.removeAttribute("crossorigin") }; t.complete && 0 !== t.naturalWidth ? i() : t.addEventListener("load", i) } - "audio" !== k && "video" !== k || (w.rr_mediaState = e.paused ? "paused" : "played", w.rr_mediaCurrentTime = e.currentTime); - f || (e.scrollLeft && (w.rr_scrollLeft = e.scrollLeft), e.scrollTop && (w.rr_scrollTop = e.scrollTop)); + "audio" !== w && "video" !== w || (k.rr_mediaState = e.paused ? "paused" : "played", k.rr_mediaCurrentTime = e.currentTime); + f || (e.scrollLeft && (k.rr_scrollLeft = e.scrollLeft), e.scrollTop && (k.rr_scrollTop = e.scrollTop)); if (x) { const { width: t, height: n } = e.getBoundingClientRect(); - w = { - class: w.class, + k = { + class: k.class, rr_width: `${t}px`, rr_height: `${n}px` } } - "iframe" !== k || h(w.src) || (x || e.contentDocument || (w.rr_src = w.src), delete w.src); + "iframe" !== w || h(k.src) || (x || e.contentDocument || (k.rr_src = k.src), delete k.src); let E; try { - customElements.get(k) && (E = !0) + customElements.get(w) && (E = !0) } catch (O) {} return { - type: Ok.Element, - tagName: k, - attributes: w, + type: XS.Element, + tagName: w, + attributes: k, childNodes: [], - isSVG: rw(e) || void 0, + isSVG: AE(e) || void 0, needBlock: x, rootId: m, isCustom: E @@ -49598,7 +51939,7 @@ recordCanvas: _, keepIframeSrcFn: b, newlyAddedElement: x, - rootId: k, + rootId: w, maskAllText: s, maskTextClass: c, unmaskTextClass: u, @@ -49624,19 +51965,19 @@ m = "TEXTAREA" === d || void 0; if (h && p) { try { - e.nextSibling || e.previousSibling || Ek([e, "access", e => e.parentNode, "access", e => e.sheet, "optionalAccess", e => e.cssRules]) && (p = Ak(e.parentNode.sheet)) + e.nextSibling || e.previousSibling || ZS([e, "access", e => e.parentNode, "access", e => e.sheet, "optionalAccess", e => e.cssRules]) && (p = tE(e.parentNode.sheet)) } catch (v) { console.warn(`Cannot get CSS styles from text's parentNode. Error: ${v}`, e) } - p = Jk(p, iw()) + p = EE(p, PE()) } f && (p = "SCRIPT_PLACEHOLDER"); - const g = cw(e, r, a, i, o, n); + const g = NE(e, r, a, i, o, n); h || f || m || !p || !g || (p = s ? s(p, e.parentElement) : p.replace(/[\S]/g, "*")); m && p && (l.textarea || g) && (p = c ? c(p, e.parentNode) : p.replace(/[\S]/g, "*")); if ("OPTION" === d && p) { - p = Dk({ - isMasked: cw(e, r, a, i, o, Rk({ + p = aE({ + isMasked: NE(e, r, a, i, o, iE({ type: null, tagName: d, maskInputOptions: l @@ -49647,7 +51988,7 @@ }) } return { - type: Ok.Text, + type: XS.Text, textContent: p || "", isStyle: h, rootId: u @@ -49661,26 +52002,26 @@ maskTextFn: m, maskInputOptions: f, maskInputFn: g, - rootId: k + rootId: w }); case e.CDATA_SECTION_NODE: return { - type: Ok.CDATA, textContent: "", rootId: k + type: XS.CDATA, textContent: "", rootId: w }; case e.COMMENT_NODE: return { - type: Ok.Comment, textContent: e.textContent || "", rootId: k + type: XS.Comment, textContent: e.textContent || "", rootId: w }; default: return !1 } } - function dw(e) { + function ME(e) { return void 0 === e || null === e ? "" : e.toLowerCase() } - function pw(e, t) { + function FE(e, t) { const { doc: n, mirror: r, @@ -49702,8 +52043,8 @@ dataURLOptions: _ = {}, inlineImages: b = !1, recordCanvas: x = !1, - onSerialize: k, - onIframeLoad: w, + onSerialize: w, + onIframeLoad: k, iframeLoadTimeout: S = 5e3, onStylesheetLoad: E, stylesheetLoadTimeout: O = 5e3, @@ -49713,7 +52054,7 @@ let { preserveWhiteSpace: A = !0 } = t; - const P = uw(e, { + const P = jE(e, { doc: n, mirror: r, blockClass: i, @@ -49738,34 +52079,34 @@ if (!P) return console.warn(e, "not serialized"), null; let T; T = r.hasNode(e) ? r.getId(e) : ! function(e, t) { - if (t.comment && e.type === Ok.Comment) return !0; - if (e.type === Ok.Element) { - if (t.script && ("script" === e.tagName || "link" === e.tagName && ("preload" === e.attributes.rel || "modulepreload" === e.attributes.rel) && "script" === e.attributes.as || "link" === e.tagName && "prefetch" === e.attributes.rel && "string" === typeof e.attributes.href && "js" === zk(e.attributes.href))) return !0; - if (t.headFavicon && ("link" === e.tagName && "shortcut icon" === e.attributes.rel || "meta" === e.tagName && (dw(e.attributes.name).match(/^msapplication-tile(image|color)$/) || "application-name" === dw(e.attributes.name) || "icon" === dw(e.attributes.rel) || "apple-touch-icon" === dw(e.attributes.rel) || "shortcut icon" === dw(e.attributes.rel)))) return !0; + if (t.comment && e.type === XS.Comment) return !0; + if (e.type === XS.Element) { + if (t.script && ("script" === e.tagName || "link" === e.tagName && ("preload" === e.attributes.rel || "modulepreload" === e.attributes.rel) && "script" === e.attributes.as || "link" === e.tagName && "prefetch" === e.attributes.rel && "string" === typeof e.attributes.href && "js" === dE(e.attributes.href))) return !0; + if (t.headFavicon && ("link" === e.tagName && "shortcut icon" === e.attributes.rel || "meta" === e.tagName && (ME(e.attributes.name).match(/^msapplication-tile(image|color)$/) || "application-name" === ME(e.attributes.name) || "icon" === ME(e.attributes.rel) || "apple-touch-icon" === ME(e.attributes.rel) || "shortcut icon" === ME(e.attributes.rel)))) return !0; if ("meta" === e.tagName) { - if (t.headMetaDescKeywords && dw(e.attributes.name).match(/^description|keywords$/)) return !0; - if (t.headMetaSocial && (dw(e.attributes.property).match(/^(og|twitter|fb):/) || dw(e.attributes.name).match(/^(og|twitter):/) || "pinterest" === dw(e.attributes.name))) return !0; - if (t.headMetaRobots && ("robots" === dw(e.attributes.name) || "googlebot" === dw(e.attributes.name) || "bingbot" === dw(e.attributes.name))) return !0; + if (t.headMetaDescKeywords && ME(e.attributes.name).match(/^description|keywords$/)) return !0; + if (t.headMetaSocial && (ME(e.attributes.property).match(/^(og|twitter|fb):/) || ME(e.attributes.name).match(/^(og|twitter):/) || "pinterest" === ME(e.attributes.name))) return !0; + if (t.headMetaRobots && ("robots" === ME(e.attributes.name) || "googlebot" === ME(e.attributes.name) || "bingbot" === ME(e.attributes.name))) return !0; if (t.headMetaHttpEquiv && void 0 !== e.attributes["http-equiv"]) return !0; - if (t.headMetaAuthorship && ("author" === dw(e.attributes.name) || "generator" === dw(e.attributes.name) || "framework" === dw(e.attributes.name) || "publisher" === dw(e.attributes.name) || "progid" === dw(e.attributes.name) || dw(e.attributes.property).match(/^article:/) || dw(e.attributes.property).match(/^product:/))) return !0; - if (t.headMetaVerification && ("google-site-verification" === dw(e.attributes.name) || "yandex-verification" === dw(e.attributes.name) || "csrf-token" === dw(e.attributes.name) || "p:domain_verify" === dw(e.attributes.name) || "verify-v1" === dw(e.attributes.name) || "verification" === dw(e.attributes.name) || "shopify-checkout-api-token" === dw(e.attributes.name))) return !0 + if (t.headMetaAuthorship && ("author" === ME(e.attributes.name) || "generator" === ME(e.attributes.name) || "framework" === ME(e.attributes.name) || "publisher" === ME(e.attributes.name) || "progid" === ME(e.attributes.name) || ME(e.attributes.property).match(/^article:/) || ME(e.attributes.property).match(/^product:/))) return !0; + if (t.headMetaVerification && ("google-site-verification" === ME(e.attributes.name) || "yandex-verification" === ME(e.attributes.name) || "csrf-token" === ME(e.attributes.name) || "p:domain_verify" === ME(e.attributes.name) || "verify-v1" === ME(e.attributes.name) || "verification" === ME(e.attributes.name) || "shopify-checkout-api-token" === ME(e.attributes.name))) return !0 } } return !1 - }(P, y) && (A || P.type !== Ok.Text || P.isStyle || P.textContent.replace(/^\s+|\s+$/gm, "").length) ? Wk() : -2; + }(P, y) && (A || P.type !== XS.Text || P.isStyle || P.textContent.replace(/^\s+|\s+$/gm, "").length) ? yE() : -2; const R = Object.assign(P, { id: T }); if (r.add(e, R), -2 === T) return null; - k && k(e); + w && w(e); let D = !p; - if (R.type === Ok.Element) { + if (R.type === XS.Element) { D = D && !R.needBlock, delete R.needBlock; const t = e.shadowRoot; - t && Ck(t) && (R.isShadowHost = !0) + t && eE(t) && (R.isShadowHost = !0) } - if ((R.type === Ok.Document || R.type === Ok.Element) && D) { - y.headWhitespace && R.type === Ok.Element && "head" === R.tagName && (A = !1); + if ((R.type === XS.Document || R.type === XS.Element) && D) { + y.headWhitespace && R.type === XS.Element && "head" === R.tagName && (A = !1); const t = { doc: n, mirror: r, @@ -49788,26 +52129,26 @@ inlineImages: b, recordCanvas: x, preserveWhiteSpace: A, - onSerialize: k, - onIframeLoad: w, + onSerialize: w, + onIframeLoad: k, iframeLoadTimeout: S, onStylesheetLoad: E, stylesheetLoadTimeout: O, keepIframeSrcFn: I }; for (const n of Array.from(e.childNodes)) { - const e = pw(n, t); + const e = FE(n, t); e && R.childNodes.push(e) } if (function(e) { - return e.nodeType === e.ELEMENT_NODE - }(e) && e.shadowRoot) + return e.nodeType === e.ELEMENT_NODE + }(e) && e.shadowRoot) for (const n of Array.from(e.shadowRoot.childNodes)) { - const r = pw(n, t); - r && (Ck(e.shadowRoot) && (r.isShadow = !0), R.childNodes.push(r)) + const r = FE(n, t); + r && (eE(e.shadowRoot) && (r.isShadow = !0), R.childNodes.push(r)) } } - return e.parentNode && Ik(e.parentNode) && Ck(e.parentNode) && (R.isShadow = !0), R.type === Ok.Element && "iframe" === R.tagName && function(e, t, n) { + return e.parentNode && JS(e.parentNode) && eE(e.parentNode) && (R.isShadow = !0), R.type === XS.Element && "iframe" === R.tagName && function(e, t, n) { const r = e.contentWindow; if (!r) return; let i, a = !1; @@ -49817,20 +52158,20 @@ return } if ("complete" !== i) { - const r = Bk((() => { + const r = fE((() => { a || (t(), a = !0) }), n); return void e.addEventListener("load", (() => { - Gk(r), a = !0, t() + mE(r), a = !0, t() })) } const o = "about:blank"; - if (r.location.href !== o || e.src === o || "" === e.src) return Bk(t, 0), e.addEventListener("load", t); + if (r.location.href !== o || e.src === o || "" === e.src) return fE(t, 0), e.addEventListener("load", t); e.addEventListener("load", t) }(e, (() => { const t = e.contentDocument; - if (t && w) { - const n = pw(t, { + if (t && k) { + const n = FE(t, { doc: t, mirror: r, blockClass: i, @@ -49852,16 +52193,16 @@ inlineImages: b, recordCanvas: x, preserveWhiteSpace: A, - onSerialize: k, - onIframeLoad: w, + onSerialize: w, + onIframeLoad: k, iframeLoadTimeout: S, onStylesheetLoad: E, stylesheetLoadTimeout: O, keepIframeSrcFn: I }); - n && w(e, n) + n && k(e, n) } - }), S), R.type === Ok.Element && "link" === R.tagName && "string" === typeof R.attributes.rel && ("stylesheet" === R.attributes.rel || "preload" === R.attributes.rel && "string" === typeof R.attributes.href && "css" === zk(R.attributes.href)) && function(e, t, n) { + }), S), R.type === XS.Element && "link" === R.tagName && "string" === typeof R.attributes.rel && ("stylesheet" === R.attributes.rel || "preload" === R.attributes.rel && "string" === typeof R.attributes.href && "css" === dE(R.attributes.href)) && function(e, t, n) { let r, i = !1; try { r = e.sheet @@ -49869,15 +52210,15 @@ return } if (r) return; - const a = Bk((() => { + const a = fE((() => { i || (t(), i = !0) }), n); e.addEventListener("load", (() => { - Gk(a), i = !0, t() + mE(a), i = !0, t() })) }(e, (() => { if (E) { - const t = pw(e, { + const t = FE(e, { doc: n, mirror: r, blockClass: i, @@ -49899,8 +52240,8 @@ inlineImages: b, recordCanvas: x, preserveWhiteSpace: A, - onSerialize: k, - onIframeLoad: w, + onSerialize: w, + onIframeLoad: k, iframeLoadTimeout: S, onStylesheetLoad: E, stylesheetLoadTimeout: O, @@ -49911,7 +52252,7 @@ }), O), R } - function hw(e) { + function zE(e) { let t, n = e[0], r = 1; for (; r < e.length;) { @@ -49923,28 +52264,28 @@ return n } - function fw(e, t, n = document) { + function VE(e, t, n = document) { const r = { capture: !0, passive: !0 }; return n.addEventListener(e, t, r), () => n.removeEventListener(e, t, r) } - const mw = "Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording."; - let gw = { + const UE = "Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording."; + let BE = { map: {}, - getId: () => (console.error(mw), -1), - getNode: () => (console.error(mw), null), + getId: () => (console.error(UE), -1), + getNode: () => (console.error(UE), null), removeNodeFromMap() { - console.error(mw) + console.error(UE) }, - has: () => (console.error(mw), !1), + has: () => (console.error(UE), !1), reset() { - console.error(mw) + console.error(UE) } }; - function vw(e, t, n = {}) { + function GE(e, t, n = {}) { let r = null, i = 0; return function(...a) { @@ -49953,25 +52294,25 @@ const s = t - (o - i), l = this; s <= 0 || s > t ? (r && (! function(...e) { - Mw("clearTimeout")(...e) - }(r), r = null), i = o, e.apply(l, a)) : r || !1 === n.trailing || (r = Fw((() => { + cO("clearTimeout")(...e) + }(r), r = null), i = o, e.apply(l, a)) : r || !1 === n.trailing || (r = uO((() => { i = !1 === n.leading ? 0 : Date.now(), r = null, e.apply(l, a) }), s)) } } - function yw(e, t, n, r, i = window) { + function $E(e, t, n, r, i = window) { const a = i.Object.getOwnPropertyDescriptor(e, t); return i.Object.defineProperty(e, t, r ? n : { set(e) { - Fw((() => { + uO((() => { n.set.call(this, e) }), 0), a && a.set && a.set.call(this, e) } - }), () => yw(e, t, a || {}, !0) + }), () => $E(e, t, a || {}, !0) } - function _w(e, t, n) { + function qE(e, t, n) { try { if (!(t in e)) return () => {}; const r = e[t], @@ -49984,77 +52325,77 @@ })), e[t] = i, () => { e[t] = r } - } catch (r) { + } catch (Cs) { return () => {} } } - "undefined" !== typeof window && window.Proxy && window.Reflect && (gw = new Proxy(gw, { - get: (e, t, n) => ("map" === t && console.error(mw), Reflect.get(e, t, n)) + "undefined" !== typeof window && window.Proxy && window.Reflect && (BE = new Proxy(BE, { + get: (e, t, n) => ("map" === t && console.error(UE), Reflect.get(e, t, n)) })); - let bw = Date.now; + let WE = Date.now; - function xw(e) { + function HE(e) { const t = e.document; return { - left: t.scrollingElement ? t.scrollingElement.scrollLeft : void 0 !== e.pageXOffset ? e.pageXOffset : hw([t, "optionalAccess", e => e.documentElement, "access", e => e.scrollLeft]) || hw([t, "optionalAccess", e => e.body, "optionalAccess", e => e.parentElement, "optionalAccess", e => e.scrollLeft]) || hw([t, "optionalAccess", e => e.body, "optionalAccess", e => e.scrollLeft]) || 0, - top: t.scrollingElement ? t.scrollingElement.scrollTop : void 0 !== e.pageYOffset ? e.pageYOffset : hw([t, "optionalAccess", e => e.documentElement, "access", e => e.scrollTop]) || hw([t, "optionalAccess", e => e.body, "optionalAccess", e => e.parentElement, "optionalAccess", e => e.scrollTop]) || hw([t, "optionalAccess", e => e.body, "optionalAccess", e => e.scrollTop]) || 0 + left: t.scrollingElement ? t.scrollingElement.scrollLeft : void 0 !== e.pageXOffset ? e.pageXOffset : zE([t, "optionalAccess", e => e.documentElement, "access", e => e.scrollLeft]) || zE([t, "optionalAccess", e => e.body, "optionalAccess", e => e.parentElement, "optionalAccess", e => e.scrollLeft]) || zE([t, "optionalAccess", e => e.body, "optionalAccess", e => e.scrollLeft]) || 0, + top: t.scrollingElement ? t.scrollingElement.scrollTop : void 0 !== e.pageYOffset ? e.pageYOffset : zE([t, "optionalAccess", e => e.documentElement, "access", e => e.scrollTop]) || zE([t, "optionalAccess", e => e.body, "optionalAccess", e => e.parentElement, "optionalAccess", e => e.scrollTop]) || zE([t, "optionalAccess", e => e.body, "optionalAccess", e => e.scrollTop]) || 0 } } - function kw() { + function KE() { return window.innerHeight || document.documentElement && document.documentElement.clientHeight || document.body && document.body.clientHeight } - function ww() { + function YE() { return window.innerWidth || document.documentElement && document.documentElement.clientWidth || document.body && document.body.clientWidth } - function Sw(e) { + function QE(e) { if (!e) return null; return e.nodeType === e.ELEMENT_NODE ? e : e.parentElement } - function Ew(e, t, n, r, i) { + function ZE(e, t, n, r, i) { if (!e) return !1; - const a = Sw(e); + const a = QE(e); if (!a) return !1; - const o = lw(t, n); + const o = LE(t, n); if (!i) { const e = r && a.matches(r); return o(a) && !e } - const s = sw(a, o); + const s = DE(a, o); let l = -1; - return !(s < 0) && (r && (l = sw(a, lw(null, r))), s > -1 && l < 0 || s < l) + return !(s < 0) && (r && (l = DE(a, LE(null, r))), s > -1 && l < 0 || s < l) } - function Ow(e, t) { + function XE(e, t) { return -2 === t.getId(e) } - function Iw(e, t) { - if (Ik(e)) return !1; + function JE(e, t) { + if (JS(e)) return !1; const n = t.getId(e); - return !t.has(n) || (!e.parentNode || e.parentNode.nodeType !== e.DOCUMENT_NODE) && (!e.parentNode || Iw(e.parentNode, t)) + return !t.has(n) || (!e.parentNode || e.parentNode.nodeType !== e.DOCUMENT_NODE) && (!e.parentNode || JE(e.parentNode, t)) } - function Cw(e) { + function eO(e) { return Boolean(e.changedTouches) } - function Aw(e, t) { + function tO(e, t) { return Boolean("IFRAME" === e.nodeName && t.getMeta(e)) } - function Pw(e, t) { + function nO(e, t) { return Boolean("LINK" === e.nodeName && e.nodeType === e.ELEMENT_NODE && e.getAttribute && "stylesheet" === e.getAttribute("rel") && t.getMeta(e)) } - function Tw(e) { - return Boolean(hw([e, "optionalAccess", e => e.shadowRoot])) + function rO(e) { + return Boolean(zE([e, "optionalAccess", e => e.shadowRoot])) } - /[1-9][0-9]{12}/.test(Date.now().toString()) || (bw = () => (new Date).getTime()); - class Rw { + /[1-9][0-9]{12}/.test(Date.now().toString()) || (WE = () => (new Date).getTime()); + class iO { constructor() { this.id = 1, this.styleIDMap = new WeakMap, this.idStyleMap = new Map } @@ -50081,30 +52422,30 @@ } } - function Dw(e) { + function aO(e) { let t = null; - return hw([e, "access", e => e.getRootNode, "optionalCall", e => e(), "optionalAccess", e => e.nodeType]) === Node.DOCUMENT_FRAGMENT_NODE && e.getRootNode().host && (t = e.getRootNode().host), t + return zE([e, "access", e => e.getRootNode, "optionalCall", e => e(), "optionalAccess", e => e.nodeType]) === Node.DOCUMENT_FRAGMENT_NODE && e.getRootNode().host && (t = e.getRootNode().host), t } - function Lw(e) { + function oO(e) { const t = e.ownerDocument; if (!t) return !1; const n = function(e) { let t, n = e; - for (; t = Dw(n);) n = t; + for (; t = aO(n);) n = t; return n }(e); return t.contains(n) } - function Nw(e) { + function sO(e) { const t = e.ownerDocument; - return !!t && (t.contains(e) || Lw(e)) + return !!t && (t.contains(e) || oO(e)) } - const jw = {}; + const lO = {}; - function Mw(e) { - const t = jw[e]; + function cO(e) { + const t = lO[e]; if (t) return t; const n = window.document; let r = window[e]; @@ -50114,18 +52455,18 @@ const i = t.contentWindow; i && i[e] && (r = i[e]), n.head.removeChild(t) } catch (i) {} - return jw[e] = r.bind(window) + return lO[e] = r.bind(window) } - function Fw(...e) { - return Mw("setTimeout")(...e) + function uO(...e) { + return cO("setTimeout")(...e) } - var zw = (e => (e[e.DomContentLoaded = 0] = "DomContentLoaded", e[e.Load = 1] = "Load", e[e.FullSnapshot = 2] = "FullSnapshot", e[e.IncrementalSnapshot = 3] = "IncrementalSnapshot", e[e.Meta = 4] = "Meta", e[e.Custom = 5] = "Custom", e[e.Plugin = 6] = "Plugin", e))(zw || {}), - Vw = (e => (e[e.Mutation = 0] = "Mutation", e[e.MouseMove = 1] = "MouseMove", e[e.MouseInteraction = 2] = "MouseInteraction", e[e.Scroll = 3] = "Scroll", e[e.ViewportResize = 4] = "ViewportResize", e[e.Input = 5] = "Input", e[e.TouchMove = 6] = "TouchMove", e[e.MediaInteraction = 7] = "MediaInteraction", e[e.StyleSheetRule = 8] = "StyleSheetRule", e[e.CanvasMutation = 9] = "CanvasMutation", e[e.Font = 10] = "Font", e[e.Log = 11] = "Log", e[e.Drag = 12] = "Drag", e[e.StyleDeclaration = 13] = "StyleDeclaration", e[e.Selection = 14] = "Selection", e[e.AdoptedStyleSheet = 15] = "AdoptedStyleSheet", e[e.CustomElement = 16] = "CustomElement", e))(Vw || {}), - Uw = (e => (e[e.MouseUp = 0] = "MouseUp", e[e.MouseDown = 1] = "MouseDown", e[e.Click = 2] = "Click", e[e.ContextMenu = 3] = "ContextMenu", e[e.DblClick = 4] = "DblClick", e[e.Focus = 5] = "Focus", e[e.Blur = 6] = "Blur", e[e.TouchStart = 7] = "TouchStart", e[e.TouchMove_Departed = 8] = "TouchMove_Departed", e[e.TouchEnd = 9] = "TouchEnd", e[e.TouchCancel = 10] = "TouchCancel", e))(Uw || {}), - Bw = (e => (e[e.Mouse = 0] = "Mouse", e[e.Pen = 1] = "Pen", e[e.Touch = 2] = "Touch", e))(Bw || {}); + var dO = (e => (e[e.DomContentLoaded = 0] = "DomContentLoaded", e[e.Load = 1] = "Load", e[e.FullSnapshot = 2] = "FullSnapshot", e[e.IncrementalSnapshot = 3] = "IncrementalSnapshot", e[e.Meta = 4] = "Meta", e[e.Custom = 5] = "Custom", e[e.Plugin = 6] = "Plugin", e))(dO || {}), + pO = (e => (e[e.Mutation = 0] = "Mutation", e[e.MouseMove = 1] = "MouseMove", e[e.MouseInteraction = 2] = "MouseInteraction", e[e.Scroll = 3] = "Scroll", e[e.ViewportResize = 4] = "ViewportResize", e[e.Input = 5] = "Input", e[e.TouchMove = 6] = "TouchMove", e[e.MediaInteraction = 7] = "MediaInteraction", e[e.StyleSheetRule = 8] = "StyleSheetRule", e[e.CanvasMutation = 9] = "CanvasMutation", e[e.Font = 10] = "Font", e[e.Log = 11] = "Log", e[e.Drag = 12] = "Drag", e[e.StyleDeclaration = 13] = "StyleDeclaration", e[e.Selection = 14] = "Selection", e[e.AdoptedStyleSheet = 15] = "AdoptedStyleSheet", e[e.CustomElement = 16] = "CustomElement", e))(pO || {}), + hO = (e => (e[e.MouseUp = 0] = "MouseUp", e[e.MouseDown = 1] = "MouseDown", e[e.Click = 2] = "Click", e[e.ContextMenu = 3] = "ContextMenu", e[e.DblClick = 4] = "DblClick", e[e.Focus = 5] = "Focus", e[e.Blur = 6] = "Blur", e[e.TouchStart = 7] = "TouchStart", e[e.TouchMove_Departed = 8] = "TouchMove_Departed", e[e.TouchEnd = 9] = "TouchEnd", e[e.TouchCancel = 10] = "TouchCancel", e))(hO || {}), + fO = (e => (e[e.Mouse = 0] = "Mouse", e[e.Pen = 1] = "Pen", e[e.Touch = 2] = "Touch", e))(fO || {}); - function Gw(e) { + function mO(e) { let t, n = e[0], r = 1; for (; r < e.length;) { @@ -50137,17 +52478,17 @@ return n } - function $w(e) { + function gO(e) { return "__ln" in e } - class qw { + class vO { constructor() { this.length = 0, this.head = null, this.tail = null } get(e) { if (e >= this.length) throw new Error("Position outside of list range"); let t = this.head; - for (let n = 0; n < e; n++) t = Gw([t, "optionalAccess", e => e.next]) || null; + for (let n = 0; n < e; n++) t = mO([t, "optionalAccess", e => e.next]) || null; return t } addNode(e) { @@ -50156,10 +52497,10 @@ previous: null, next: null }; - if (e.__ln = t, e.previousSibling && $w(e.previousSibling)) { + if (e.__ln = t, e.previousSibling && gO(e.previousSibling)) { const n = e.previousSibling.__ln.next; t.next = n, t.previous = e.previousSibling.__ln, e.previousSibling.__ln.next = t, n && (n.previous = t) - } else if (e.nextSibling && $w(e.nextSibling) && e.nextSibling.__ln.previous) { + } else if (e.nextSibling && gO(e.nextSibling) && e.nextSibling.__ln.previous) { const n = e.nextSibling.__ln.previous; t.previous = n, t.next = e.nextSibling.__ln, e.nextSibling.__ln.previous = t, n && (n.next = t) } else this.head && (this.head.previous = t), t.next = this.head, this.head = t; @@ -50170,8 +52511,8 @@ this.head && (t.previous ? (t.previous.next = t.next, t.next ? t.next.previous = t.previous : this.tail = t.previous) : (this.head = t.next, this.head ? this.head.previous = null : this.tail = null), e.__ln && delete e.__ln, this.length--) } } - const Ww = (e, t) => `${e}@${t}`; - class Hw { + const yO = (e, t) => `${e}@${t}`; + class _O { constructor() { this.frozen = !1, this.locked = !1, this.texts = [], this.attributes = [], this.attributeMap = new WeakMap, this.removes = [], this.mapRemoves = [], this.movedMap = {}, this.addedSet = new Set, this.movedSet = new Set, this.droppedSet = new Set, this.processMutations = e => { e.forEach(this.processMutation), this.emit() @@ -50179,7 +52520,7 @@ if (this.frozen || this.locked) return; const e = [], t = new Set, - n = new qw, + n = new vO, r = e => { let t = e, n = -2; @@ -50187,11 +52528,11 @@ return n }, i = i => { - if (!i.parentNode || !Nw(i)) return; - const a = Ik(i.parentNode) ? this.mirror.getId(Dw(i)) : this.mirror.getId(i.parentNode), + if (!i.parentNode || !sO(i)) return; + const a = JS(i.parentNode) ? this.mirror.getId(aO(i)) : this.mirror.getId(i.parentNode), o = r(i); if (-1 === a || -1 === o) return n.addNode(i); - const s = pw(i, { + const s = FE(i, { doc: this.doc, mirror: this.mirror, blockClass: this.blockClass, @@ -50214,10 +52555,10 @@ recordCanvas: this.recordCanvas, inlineImages: this.inlineImages, onSerialize: e => { - Aw(e, this.mirror) && !Ew(e, this.blockClass, this.blockSelector, this.unblockSelector, !1) && this.iframeManager.addIframe(e), Pw(e, this.mirror) && this.stylesheetManager.trackLinkElement(e), Tw(i) && this.shadowDomManager.addShadowRoot(i.shadowRoot, this.doc) + tO(e, this.mirror) && !ZE(e, this.blockClass, this.blockSelector, this.unblockSelector, !1) && this.iframeManager.addIframe(e), nO(e, this.mirror) && this.stylesheetManager.trackLinkElement(e), rO(i) && this.shadowDomManager.addShadowRoot(i.shadowRoot, this.doc) }, onIframeLoad: (e, t) => { - Ew(e, this.blockClass, this.blockSelector, this.unblockSelector, !1) || (this.iframeManager.attachIframe(e, t), e.contentWindow && this.canvasManager.addWindow(e.contentWindow), this.shadowDomManager.observeAttachShadow(e)) + ZE(e, this.blockClass, this.blockSelector, this.unblockSelector, !1) || (this.iframeManager.attachIframe(e, t), e.contentWindow && this.canvasManager.addWindow(e.contentWindow), this.shadowDomManager.observeAttachShadow(e)) }, onStylesheetLoad: (e, t) => { this.stylesheetManager.attachLinkElement(e, t) @@ -50230,8 +52571,8 @@ }), t.add(s.id)) }; for (; this.mapRemoves.length;) this.mirror.removeNodeFromMap(this.mapRemoves.shift()); - for (const s of this.movedSet) Yw(this.removes, s, this.mirror) && !this.movedSet.has(s.parentNode) || i(s); - for (const s of this.addedSet) Zw(this.droppedSet, s) || Yw(this.removes, s, this.mirror) ? Zw(this.movedSet, s) ? i(s) : this.droppedSet.add(s) : i(s); + for (const s of this.movedSet) xO(this.removes, s, this.mirror) && !this.movedSet.has(s.parentNode) || i(s); + for (const s of this.addedSet) kO(this.droppedSet, s) || xO(this.removes, s, this.mirror) ? kO(this.movedSet, s) ? i(s) : this.droppedSet.add(s) : i(s); let a = null; for (; n.length;) { let e = null; @@ -50292,11 +52633,11 @@ }; (o.texts.length || o.attributes.length || o.removes.length || o.adds.length) && (this.texts = [], this.attributes = [], this.attributeMap = new WeakMap, this.removes = [], this.addedSet = new Set, this.movedSet = new Set, this.droppedSet = new Set, this.movedMap = {}, this.mutationCb(o)) }, this.processMutation = e => { - if (!Ow(e.target, this.mirror)) switch (e.type) { + if (!XE(e.target, this.mirror)) switch (e.type) { case "characterData": { const t = e.target.textContent; - Ew(e.target, this.blockClass, this.blockSelector, this.unblockSelector, !1) || t === e.oldValue || this.texts.push({ - value: cw(e.target, this.maskTextClass, this.maskTextSelector, this.unmaskTextClass, this.unmaskTextSelector, this.maskAllText) && t ? this.maskTextFn ? this.maskTextFn(t, Sw(e.target)) : t.replace(/[\S]/g, "*") : t, + ZE(e.target, this.blockClass, this.blockSelector, this.unblockSelector, !1) || t === e.oldValue || this.texts.push({ + value: NE(e.target, this.maskTextClass, this.maskTextSelector, this.unmaskTextClass, this.unmaskTextSelector, this.maskAllText) && t ? this.maskTextFn ? this.maskTextFn(t, QE(e.target)) : t.replace(/[\S]/g, "*") : t, node: e.target }); break @@ -50306,33 +52647,33 @@ let r = e.attributeName, i = e.target.getAttribute(r); if ("value" === r) { - const t = Mk(n), + const t = cE(n), r = n.tagName; - i = Fk(n, r, t); - const a = Rk({ + i = uE(n, r, t); + const a = iE({ maskInputOptions: this.maskInputOptions, tagName: r, type: t }); - i = Dk({ - isMasked: cw(e.target, this.maskTextClass, this.maskTextSelector, this.unmaskTextClass, this.unmaskTextSelector, a), + i = aE({ + isMasked: NE(e.target, this.maskTextClass, this.maskTextSelector, this.unmaskTextClass, this.unmaskTextSelector, a), element: n, value: i, maskInputFn: this.maskInputFn }) } - if (Ew(e.target, this.blockClass, this.blockSelector, this.unblockSelector, !1) || i === e.oldValue) return; + if (ZE(e.target, this.blockClass, this.blockSelector, this.unblockSelector, !1) || i === e.oldValue) return; let a = this.attributeMap.get(e.target); if ("IFRAME" === n.tagName && "src" === r && !this.keepIframeSrcFn(i)) { if (n.contentDocument) return; r = "rr_src" } if (a || (a = { - node: e.target, - attributes: {}, - styleDiff: {}, - _unchangedStyles: {} - }, this.attributes.push(a), this.attributeMap.set(e.target, a)), "type" === r && "INPUT" === n.tagName && "password" === (e.oldValue || "").toLowerCase() && n.setAttribute("data-rr-is-password", "true"), !ow(n.tagName, r) && (a.attributes[r] = aw(this.doc, Lk(n.tagName), Lk(r), i, n, this.maskAttributeFn), "style" === r)) { + node: e.target, + attributes: {}, + styleDiff: {}, + _unchangedStyles: {} + }, this.attributes.push(a), this.attributeMap.set(e.target, a)), "type" === r && "INPUT" === n.tagName && "password" === (e.oldValue || "").toLowerCase() && n.setAttribute("data-rr-is-password", "true"), !RE(n.tagName, r) && (a.attributes[r] = TE(this.doc, oE(n.tagName), oE(r), i, n, this.maskAttributeFn), "style" === r)) { if (!this.unattachedDoc) try { this.unattachedDoc = document.implementation.createHTMLDocument() } catch (t) { @@ -50350,28 +52691,28 @@ break } case "childList": - if (Ew(e.target, this.blockClass, this.blockSelector, this.unblockSelector, !0)) return; + if (ZE(e.target, this.blockClass, this.blockSelector, this.unblockSelector, !0)) return; e.addedNodes.forEach((t => this.genAdds(t, e.target))), e.removedNodes.forEach((t => { const n = this.mirror.getId(t), - r = Ik(e.target) ? this.mirror.getId(e.target.host) : this.mirror.getId(e.target); - Ew(e.target, this.blockClass, this.blockSelector, this.unblockSelector, !1) || Ow(t, this.mirror) || ! function(e, t) { + r = JS(e.target) ? this.mirror.getId(e.target.host) : this.mirror.getId(e.target); + ZE(e.target, this.blockClass, this.blockSelector, this.unblockSelector, !1) || XE(t, this.mirror) || ! function(e, t) { return -1 !== t.getId(e) - }(t, this.mirror) || (this.addedSet.has(t) ? (Kw(this.addedSet, t), this.droppedSet.add(t)) : this.addedSet.has(e.target) && -1 === n || Iw(e.target, this.mirror) || (this.movedSet.has(t) && this.movedMap[Ww(n, r)] ? Kw(this.movedSet, t) : this.removes.push({ + }(t, this.mirror) || (this.addedSet.has(t) ? (bO(this.addedSet, t), this.droppedSet.add(t)) : this.addedSet.has(e.target) && -1 === n || JE(e.target, this.mirror) || (this.movedSet.has(t) && this.movedMap[yO(n, r)] ? bO(this.movedSet, t) : this.removes.push({ parentId: r, id: n, - isShadow: !(!Ik(e.target) || !Ck(e.target)) || void 0 + isShadow: !(!JS(e.target) || !eE(e.target)) || void 0 })), this.mapRemoves.push(t)) })) } }, this.genAdds = (e, t) => { if (!this.processedNodeManager.inOtherBuffer(e, this) && !this.addedSet.has(e) && !this.movedSet.has(e)) { if (this.mirror.hasNode(e)) { - if (Ow(e, this.mirror)) return; + if (XE(e, this.mirror)) return; this.movedSet.add(e); let n = null; - t && this.mirror.hasNode(t) && (n = this.mirror.getId(t)), n && -1 !== n && (this.movedMap[Ww(this.mirror.getId(e), n)] = !0) + t && this.mirror.hasNode(t) && (n = this.mirror.getId(t)), n && -1 !== n && (this.movedMap[yO(this.mirror.getId(e), n)] = !0) } else this.addedSet.add(e), this.droppedSet.delete(e); - Ew(e, this.blockClass, this.blockSelector, this.unblockSelector, !1) || (e.childNodes.forEach((e => this.genAdds(e))), Tw(e) && e.shadowRoot.childNodes.forEach((t => { + ZE(e, this.blockClass, this.blockSelector, this.unblockSelector, !1) || (e.childNodes.forEach((e => this.genAdds(e))), rO(e) && e.shadowRoot.childNodes.forEach((t => { this.processedNodeManager.add(t, this), this.genAdds(t, e) }))) } @@ -50402,55 +52743,55 @@ } } - function Kw(e, t) { - e.delete(t), t.childNodes.forEach((t => Kw(e, t))) + function bO(e, t) { + e.delete(t), t.childNodes.forEach((t => bO(e, t))) } - function Yw(e, t, n) { - return 0 !== e.length && Qw(e, t, n) + function xO(e, t, n) { + return 0 !== e.length && wO(e, t, n) } - function Qw(e, t, n) { + function wO(e, t, n) { const { parentNode: r } = t; if (!r) return !1; const i = n.getId(r); - return !!e.some((e => e.id === i)) || Qw(e, r, n) + return !!e.some((e => e.id === i)) || wO(e, r, n) } - function Zw(e, t) { - return 0 !== e.size && Xw(e, t) + function kO(e, t) { + return 0 !== e.size && SO(e, t) } - function Xw(e, t) { + function SO(e, t) { const { parentNode: n } = t; - return !!n && (!!e.has(n) || Xw(e, n)) + return !!n && (!!e.has(n) || SO(e, n)) } - let Jw; + let EO; - function eS(e) { - Jw = e + function OO(e) { + EO = e } - function tS() { - Jw = void 0 + function IO() { + EO = void 0 } - const nS = e => { - if (!Jw) return e; + const CO = e => { + if (!EO) return e; return (...t) => { try { return e(...t) } catch (n) { - if (Jw && !0 === Jw(n)) return () => {}; + if (EO && !0 === EO(n)) return () => {}; throw n } } }; - function rS(e) { + function AO(e) { let t, n = e[0], r = 1; for (; r < e.length;) { @@ -50461,25 +52802,25 @@ } return n } - const iS = []; + const PO = []; - function aS(e) { + function TO(e) { try { if ("composedPath" in e) { const t = e.composedPath(); if (t.length) return t[0] } else if ("path" in e && e.path.length) return e.path[0] - } catch (t) {} + } catch (Cs) {} return e && e.target } - function oS(e, t) { - const n = new Hw; - iS.push(n), n.init(e); + function RO(e, t) { + const n = new _O; + PO.push(n), n.init(e); let r = window.MutationObserver || window.__rrMutationObserver; - const i = rS([window, "optionalAccess", e => e.Zone, "optionalAccess", e => e.__symbol__, "optionalCall", e => e("MutationObserver")]); + const i = AO([window, "optionalAccess", e => e.Zone, "optionalAccess", e => e.__symbol__, "optionalCall", e => e("MutationObserver")]); i && window[i] && (r = window[i]); - const a = new r(nS((t => { + const a = new r(CO((t => { e.onMutation && !1 === e.onMutation(t) || n.processMutations.bind(n)(t) }))); return a.observe(t, { @@ -50492,49 +52833,49 @@ }), a } - function sS({ - mouseInteractionCb: e, - doc: t, - mirror: n, - blockClass: r, - blockSelector: i, - unblockSelector: a, - sampling: o - }) { + function DO({ + mouseInteractionCb: e, + doc: t, + mirror: n, + blockClass: r, + blockSelector: i, + unblockSelector: a, + sampling: o + }) { if (!1 === o.mouseInteraction) return () => {}; const s = !0 === o.mouseInteraction || void 0 === o.mouseInteraction ? {} : o.mouseInteraction, l = []; let c = null; - return Object.keys(Uw).filter((e => Number.isNaN(Number(e)) && !e.endsWith("_Departed") && !1 !== s[e])).forEach((o => { - let s = Lk(o); + return Object.keys(hO).filter((e => Number.isNaN(Number(e)) && !e.endsWith("_Departed") && !1 !== s[e])).forEach((o => { + let s = oE(o); const u = (t => o => { - const s = aS(o); - if (Ew(s, r, i, a, !0)) return; + const s = TO(o); + if (ZE(s, r, i, a, !0)) return; let l = null, u = t; if ("pointerType" in o) { switch (o.pointerType) { case "mouse": - l = Bw.Mouse; + l = fO.Mouse; break; case "touch": - l = Bw.Touch; + l = fO.Touch; break; case "pen": - l = Bw.Pen + l = fO.Pen } - l === Bw.Touch ? Uw[t] === Uw.MouseDown ? u = "TouchStart" : Uw[t] === Uw.MouseUp && (u = "TouchEnd") : Bw.Pen - } else Cw(o) && (l = Bw.Touch); - null !== l ? (c = l, (u.startsWith("Touch") && l === Bw.Touch || u.startsWith("Mouse") && l === Bw.Mouse) && (l = null)) : Uw[t] === Uw.Click && (l = c, c = null); - const d = Cw(o) ? o.changedTouches[0] : o; + l === fO.Touch ? hO[t] === hO.MouseDown ? u = "TouchStart" : hO[t] === hO.MouseUp && (u = "TouchEnd") : fO.Pen + } else eO(o) && (l = fO.Touch); + null !== l ? (c = l, (u.startsWith("Touch") && l === fO.Touch || u.startsWith("Mouse") && l === fO.Mouse) && (l = null)) : hO[t] === hO.Click && (l = c, c = null); + const d = eO(o) ? o.changedTouches[0] : o; if (!d) return; const p = n.getId(s), { clientX: h, clientY: f } = d; - nS(e)({ - type: Uw[u], + CO(e)({ + type: hO[u], id: p, x: h, y: f, @@ -50543,36 +52884,36 @@ } }) })(o); - if (window.PointerEvent) switch (Uw[o]) { - case Uw.MouseDown: - case Uw.MouseUp: + if (window.PointerEvent) switch (hO[o]) { + case hO.MouseDown: + case hO.MouseUp: s = s.replace("mouse", "pointer"); break; - case Uw.TouchStart: - case Uw.TouchEnd: + case hO.TouchStart: + case hO.TouchEnd: return } - l.push(fw(s, u, t)) - })), nS((() => { + l.push(VE(s, u, t)) + })), CO((() => { l.forEach((e => e())) })) } - function lS({ - scrollCb: e, - doc: t, - mirror: n, - blockClass: r, - blockSelector: i, - unblockSelector: a, - sampling: o - }) { - const s = nS(vw(nS((o => { - const s = aS(o); - if (!s || Ew(s, r, i, a, !0)) return; + function LO({ + scrollCb: e, + doc: t, + mirror: n, + blockClass: r, + blockSelector: i, + unblockSelector: a, + sampling: o + }) { + const s = CO(GE(CO((o => { + const s = TO(o); + if (!s || ZE(s, r, i, a, !0)) return; const l = n.getId(s); if (s === t && t.defaultView) { - const n = xw(t.defaultView); + const n = HE(t.defaultView); e({ id: l, x: n.left, @@ -50584,47 +52925,47 @@ y: s.scrollTop }) })), o.scroll || 100)); - return fw("scroll", s, t) + return VE("scroll", s, t) } - const cS = ["INPUT", "TEXTAREA", "SELECT"], - uS = new WeakMap; + const NO = ["INPUT", "TEXTAREA", "SELECT"], + jO = new WeakMap; - function dS({ - inputCb: e, - doc: t, - mirror: n, - blockClass: r, - blockSelector: i, - unblockSelector: a, - ignoreClass: o, - ignoreSelector: s, - maskInputOptions: l, - maskInputFn: c, - sampling: u, - userTriggeredOnInput: d, - maskTextClass: p, - unmaskTextClass: h, - maskTextSelector: f, - unmaskTextSelector: m - }) { + function MO({ + inputCb: e, + doc: t, + mirror: n, + blockClass: r, + blockSelector: i, + unblockSelector: a, + ignoreClass: o, + ignoreSelector: s, + maskInputOptions: l, + maskInputFn: c, + sampling: u, + userTriggeredOnInput: d, + maskTextClass: p, + unmaskTextClass: h, + maskTextSelector: f, + unmaskTextSelector: m + }) { function g(e) { - let n = aS(e); + let n = TO(e); const u = e.isTrusted, - g = n && Nk(n.tagName); - if ("OPTION" === g && (n = n.parentElement), !n || !g || cS.indexOf(g) < 0 || Ew(n, r, i, a, !0)) return; + g = n && sE(n.tagName); + if ("OPTION" === g && (n = n.parentElement), !n || !g || NO.indexOf(g) < 0 || ZE(n, r, i, a, !0)) return; const y = n; if (y.classList.contains(o) || s && y.matches(s)) return; - const _ = Mk(n); - let b = Fk(y, g, _), + const _ = cE(n); + let b = uE(y, g, _), x = !1; - const k = Rk({ + const w = iE({ maskInputOptions: l, tagName: g, type: _ }), - w = cw(n, p, f, h, m, k); - "radio" !== _ && "checkbox" !== _ || (x = n.checked), b = Dk({ - isMasked: w, + k = NE(n, p, f, h, m, w); + "radio" !== _ && "checkbox" !== _ || (x = n.checked), b = aE({ + isMasked: k, element: n, value: b, maskInputFn: c @@ -50639,10 +52980,10 @@ const S = n.name; "radio" === _ && S && x && t.querySelectorAll(`input[type="radio"][name="${S}"]`).forEach((e => { if (e !== n) { - const t = Dk({ - isMasked: w, + const t = aE({ + isMasked: k, element: e, - value: Fk(e, g, _), + value: uE(e, g, _), maskInputFn: c }); v(e, d ? { @@ -50658,17 +52999,17 @@ } function v(t, r) { - const i = uS.get(t); + const i = jO.get(t); if (!i || i.text !== r.text || i.isChecked !== r.isChecked) { - uS.set(t, r); + jO.set(t, r); const i = n.getId(t); - nS(e)({ + CO(e)({ ...r, id: i }) } } - const y = ("last" === u.input ? ["change"] : ["input", "change"]).map((e => fw(e, nS(g), t))), + const y = ("last" === u.input ? ["change"] : ["input", "change"]).map((e => VE(e, CO(g), t))), _ = t.defaultView; if (!_) return () => { y.forEach((e => e())) @@ -50682,21 +53023,21 @@ [_.HTMLSelectElement.prototype, "selectedIndex"], [_.HTMLOptionElement.prototype, "selected"] ]; - return b && b.set && y.push(...x.map((e => yw(e[0], e[1], { + return b && b.set && y.push(...x.map((e => $E(e[0], e[1], { set() { - nS(g)({ + CO(g)({ target: this, isTrusted: !1 }) } - }, !1, _)))), nS((() => { + }, !1, _)))), CO((() => { y.forEach((e => e())) })) } - function pS(e) { + function FO(e) { return function(e, t) { - if (gS("CSSGroupingRule") && e.parentRule instanceof CSSGroupingRule || gS("CSSMediaRule") && e.parentRule instanceof CSSMediaRule || gS("CSSSupportsRule") && e.parentRule instanceof CSSSupportsRule || gS("CSSConditionRule") && e.parentRule instanceof CSSConditionRule) { + if (BO("CSSGroupingRule") && e.parentRule instanceof CSSGroupingRule || BO("CSSMediaRule") && e.parentRule instanceof CSSMediaRule || BO("CSSSupportsRule") && e.parentRule instanceof CSSSupportsRule || BO("CSSConditionRule") && e.parentRule instanceof CSSConditionRule) { const n = Array.from(e.parentRule.cssRules).indexOf(e); t.unshift(n) } else if (e.parentStyleSheet) { @@ -50707,7 +53048,7 @@ }(e, []) } - function hS(e, t, n) { + function zO(e, t, n) { let r, i; return e ? (e.ownerNode ? r = t.getId(e.ownerNode) : i = n.getId(e), { styleId: i, @@ -50715,28 +53056,28 @@ }) : {} } - function fS({ - mirror: e, - stylesheetManager: t - }, n) { + function VO({ + mirror: e, + stylesheetManager: t + }, n) { let r = null; r = "#document" === n.nodeName ? e.getId(n) : e.getId(n.host); - const i = "#document" === n.nodeName ? rS([n, "access", e => e.defaultView, "optionalAccess", e => e.Document]) : rS([n, "access", e => e.ownerDocument, "optionalAccess", e => e.defaultView, "optionalAccess", e => e.ShadowRoot]), - a = rS([i, "optionalAccess", e => e.prototype]) ? Object.getOwnPropertyDescriptor(rS([i, "optionalAccess", e => e.prototype]), "adoptedStyleSheets") : void 0; + const i = "#document" === n.nodeName ? AO([n, "access", e => e.defaultView, "optionalAccess", e => e.Document]) : AO([n, "access", e => e.ownerDocument, "optionalAccess", e => e.defaultView, "optionalAccess", e => e.ShadowRoot]), + a = AO([i, "optionalAccess", e => e.prototype]) ? Object.getOwnPropertyDescriptor(AO([i, "optionalAccess", e => e.prototype]), "adoptedStyleSheets") : void 0; return null !== r && -1 !== r && i && a ? (Object.defineProperty(n, "adoptedStyleSheets", { configurable: a.configurable, enumerable: a.enumerable, get() { - return rS([a, "access", e => e.get, "optionalAccess", e => e.call, "call", e => e(this)]) + return AO([a, "access", e => e.get, "optionalAccess", e => e.call, "call", e => e(this)]) }, set(e) { - const n = rS([a, "access", e => e.set, "optionalAccess", e => e.call, "call", t => t(this, e)]); + const n = AO([a, "access", e => e.set, "optionalAccess", e => e.call, "call", t => t(this, e)]); if (null !== r && -1 !== r) try { t.adoptStyleSheets(e, r) } catch (i) {} return n } - }), nS((() => { + }), CO((() => { Object.defineProperty(n, "adoptedStyleSheets", { configurable: a.configurable, enumerable: a.enumerable, @@ -50746,57 +53087,57 @@ }))) : () => {} } - function mS(e, t = {}) { + function UO(e, t = {}) { const n = e.doc.defaultView; if (!n) return () => {}; let r; - e.recordDOM && (r = oS(e, e.doc)); + e.recordDOM && (r = RO(e, e.doc)); const i = function({ - mousemoveCb: e, - sampling: t, - doc: n, - mirror: r - }) { + mousemoveCb: e, + sampling: t, + doc: n, + mirror: r + }) { if (!1 === t.mousemove) return () => {}; const i = "number" === typeof t.mousemove ? t.mousemove : 50, a = "number" === typeof t.mousemoveCallback ? t.mousemoveCallback : 500; let o, s = []; - const l = vw(nS((t => { + const l = GE(CO((t => { const n = Date.now() - o; e(s.map((e => (e.timeOffset -= n, e))), t), s = [], o = null })), a), - c = nS(vw(nS((e => { - const t = aS(e), + c = CO(GE(CO((e => { + const t = TO(e), { clientX: n, clientY: i - } = Cw(e) ? e.changedTouches[0] : e; - o || (o = bw()), s.push({ + } = eO(e) ? e.changedTouches[0] : e; + o || (o = WE()), s.push({ x: n, y: i, id: r.getId(t), - timeOffset: bw() - o - }), l("undefined" !== typeof DragEvent && e instanceof DragEvent ? Vw.Drag : e instanceof MouseEvent ? Vw.MouseMove : Vw.TouchMove) + timeOffset: WE() - o + }), l("undefined" !== typeof DragEvent && e instanceof DragEvent ? pO.Drag : e instanceof MouseEvent ? pO.MouseMove : pO.TouchMove) })), i, { trailing: !1 })), - u = [fw("mousemove", c, n), fw("touchmove", c, n), fw("drag", c, n)]; - return nS((() => { + u = [VE("mousemove", c, n), VE("touchmove", c, n), VE("drag", c, n)]; + return CO((() => { u.forEach((e => e())) })) }(e), - a = sS(e), - o = lS(e), + a = DO(e), + o = LO(e), s = function({ - viewportResizeCb: e - }, { - win: t - }) { + viewportResizeCb: e + }, { + win: t + }) { let n = -1, r = -1; - return fw("resize", nS(vw(nS((() => { - const t = kw(), - i = ww(); + return VE("resize", CO(GE(CO((() => { + const t = KE(), + i = YE(); n === t && r === i || (e({ width: Number(i), height: Number(t) @@ -50805,19 +53146,19 @@ }(e, { win: n }), - l = dS(e), + l = MO(e), c = function({ - mediaInteractionCb: e, - blockClass: t, - blockSelector: n, - unblockSelector: r, - mirror: i, - sampling: a, - doc: o - }) { - const s = nS((o => vw(nS((a => { - const s = aS(a); - if (!s || Ew(s, t, n, r, !0)) return; + mediaInteractionCb: e, + blockClass: t, + blockSelector: n, + unblockSelector: r, + mirror: i, + sampling: a, + doc: o + }) { + const s = CO((o => GE(CO((a => { + const s = TO(a); + if (!s || ZE(s, t, n, r, !0)) return; const { currentTime: l, volume: c, @@ -50833,8 +53174,8 @@ playbackRate: d }) })), a.media || 500))), - l = [fw("play", s(0), o), fw("pause", s(1), o), fw("seeked", s(2), o), fw("volumechange", s(3), o), fw("ratechange", s(4), o)]; - return nS((() => { + l = [VE("play", s(0), o), VE("pause", s(1), o), VE("seeked", s(2), o), VE("volumechange", s(3), o), VE("ratechange", s(4), o)]; + return CO((() => { l.forEach((e => e())) })) }(e); @@ -50843,20 +53184,20 @@ p = () => {}, h = () => {}; e.recordDOM && (u = function({ - styleSheetRuleCb: e, - mirror: t, - stylesheetManager: n - }, { - win: r - }) { + styleSheetRuleCb: e, + mirror: t, + stylesheetManager: n + }, { + win: r + }) { if (!r.CSSStyleSheet || !r.CSSStyleSheet.prototype) return () => {}; const i = r.CSSStyleSheet.prototype.insertRule; r.CSSStyleSheet.prototype.insertRule = new Proxy(i, { - apply: nS(((r, i, a) => { + apply: CO(((r, i, a) => { const [o, s] = a, { id: l, styleId: c - } = hS(i, t, n.styleMirror); + } = zO(i, t, n.styleMirror); return (l && -1 !== l || c && -1 !== c) && e({ id: l, styleId: c, @@ -50870,11 +53211,11 @@ const a = r.CSSStyleSheet.prototype.deleteRule; let o, s; r.CSSStyleSheet.prototype.deleteRule = new Proxy(a, { - apply: nS(((r, i, a) => { + apply: CO(((r, i, a) => { const [o] = a, { id: s, styleId: l - } = hS(i, t, n.styleMirror); + } = zO(i, t, n.styleMirror); return (s && -1 !== s || l && -1 !== l) && e({ id: s, styleId: l, @@ -50884,11 +53225,11 @@ }), r.apply(i, a) })) }), r.CSSStyleSheet.prototype.replace && (o = r.CSSStyleSheet.prototype.replace, r.CSSStyleSheet.prototype.replace = new Proxy(o, { - apply: nS(((r, i, a) => { + apply: CO(((r, i, a) => { const [o] = a, { id: s, styleId: l - } = hS(i, t, n.styleMirror); + } = zO(i, t, n.styleMirror); return (s && -1 !== s || l && -1 !== l) && e({ id: s, styleId: l, @@ -50896,11 +53237,11 @@ }), r.apply(i, a) })) })), r.CSSStyleSheet.prototype.replaceSync && (s = r.CSSStyleSheet.prototype.replaceSync, r.CSSStyleSheet.prototype.replaceSync = new Proxy(s, { - apply: nS(((r, i, a) => { + apply: CO(((r, i, a) => { const [o] = a, { id: s, styleId: l - } = hS(i, t, n.styleMirror); + } = zO(i, t, n.styleMirror); return (s && -1 !== s || l && -1 !== l) && e({ id: s, styleId: l, @@ -50909,66 +53250,66 @@ })) })); const l = {}; - vS("CSSGroupingRule") ? l.CSSGroupingRule = r.CSSGroupingRule : (vS("CSSMediaRule") && (l.CSSMediaRule = r.CSSMediaRule), vS("CSSConditionRule") && (l.CSSConditionRule = r.CSSConditionRule), vS("CSSSupportsRule") && (l.CSSSupportsRule = r.CSSSupportsRule)); + GO("CSSGroupingRule") ? l.CSSGroupingRule = r.CSSGroupingRule : (GO("CSSMediaRule") && (l.CSSMediaRule = r.CSSMediaRule), GO("CSSConditionRule") && (l.CSSConditionRule = r.CSSConditionRule), GO("CSSSupportsRule") && (l.CSSSupportsRule = r.CSSSupportsRule)); const c = {}; return Object.entries(l).forEach((([r, i]) => { c[r] = { insertRule: i.prototype.insertRule, deleteRule: i.prototype.deleteRule }, i.prototype.insertRule = new Proxy(c[r].insertRule, { - apply: nS(((r, i, a) => { + apply: CO(((r, i, a) => { const [o, s] = a, { id: l, styleId: c - } = hS(i.parentStyleSheet, t, n.styleMirror); + } = zO(i.parentStyleSheet, t, n.styleMirror); return (l && -1 !== l || c && -1 !== c) && e({ id: l, styleId: c, adds: [{ rule: o, - index: [...pS(i), s || 0] + index: [...FO(i), s || 0] }] }), r.apply(i, a) })) }), i.prototype.deleteRule = new Proxy(c[r].deleteRule, { - apply: nS(((r, i, a) => { + apply: CO(((r, i, a) => { const [o] = a, { id: s, styleId: l - } = hS(i.parentStyleSheet, t, n.styleMirror); + } = zO(i.parentStyleSheet, t, n.styleMirror); return (s && -1 !== s || l && -1 !== l) && e({ id: s, styleId: l, removes: [{ - index: [...pS(i), o] + index: [...FO(i), o] }] }), r.apply(i, a) })) }) - })), nS((() => { + })), CO((() => { r.CSSStyleSheet.prototype.insertRule = i, r.CSSStyleSheet.prototype.deleteRule = a, o && (r.CSSStyleSheet.prototype.replace = o), s && (r.CSSStyleSheet.prototype.replaceSync = s), Object.entries(l).forEach((([e, t]) => { t.prototype.insertRule = c[e].insertRule, t.prototype.deleteRule = c[e].deleteRule })) })) }(e, { win: n - }), d = fS(e, e.doc), p = function({ - styleDeclarationCb: e, - mirror: t, - ignoreCSSAttributes: n, - stylesheetManager: r - }, { - win: i - }) { + }), d = VO(e, e.doc), p = function({ + styleDeclarationCb: e, + mirror: t, + ignoreCSSAttributes: n, + stylesheetManager: r + }, { + win: i + }) { const a = i.CSSStyleDeclaration.prototype.setProperty; i.CSSStyleDeclaration.prototype.setProperty = new Proxy(a, { - apply: nS(((i, o, s) => { + apply: CO(((i, o, s) => { const [l, c, u] = s; if (n.has(l)) return a.apply(o, [l, c, u]); const { id: d, styleId: p - } = hS(rS([o, "access", e => e.parentRule, "optionalAccess", e => e.parentStyleSheet]), t, r.styleMirror); + } = zO(AO([o, "access", e => e.parentRule, "optionalAccess", e => e.parentStyleSheet]), t, r.styleMirror); return (d && -1 !== d || p && -1 !== p) && e({ id: d, styleId: p, @@ -50977,37 +53318,37 @@ value: c, priority: u }, - index: pS(o.parentRule) + index: FO(o.parentRule) }), i.apply(o, s) })) }); const o = i.CSSStyleDeclaration.prototype.removeProperty; return i.CSSStyleDeclaration.prototype.removeProperty = new Proxy(o, { - apply: nS(((i, a, s) => { + apply: CO(((i, a, s) => { const [l] = s; if (n.has(l)) return o.apply(a, [l]); const { id: c, styleId: u - } = hS(rS([a, "access", e => e.parentRule, "optionalAccess", e => e.parentStyleSheet]), t, r.styleMirror); + } = zO(AO([a, "access", e => e.parentRule, "optionalAccess", e => e.parentStyleSheet]), t, r.styleMirror); return (c && -1 !== c || u && -1 !== u) && e({ id: c, styleId: u, remove: { property: l }, - index: pS(a.parentRule) + index: FO(a.parentRule) }), i.apply(a, s) })) - }), nS((() => { + }), CO((() => { i.CSSStyleDeclaration.prototype.setProperty = a, i.CSSStyleDeclaration.prototype.removeProperty = o })) }(e, { win: n }), e.collectFonts && (h = function({ - fontCb: e, - doc: t - }) { + fontCb: e, + doc: t + }) { const n = t.defaultView; if (!n) return () => {}; const r = [], @@ -51022,9 +53363,9 @@ fontSource: "string" === typeof t ? t : JSON.stringify(Array.from(new Uint8Array(t))) }), r }; - const o = _w(t.fonts, "add", (function(t) { + const o = qE(t.fonts, "add", (function(t) { return function(n) { - return Fw(nS((() => { + return uO(CO((() => { const t = i.get(n); t && (e(t), i.delete(n)) })), 0), t.apply(this, [n]) @@ -51032,7 +53373,7 @@ })); return r.push((() => { n.FontFace = a - })), r.push(o), nS((() => { + })), r.push(o), CO((() => { r.forEach((e => e())) })) }(e))); @@ -51046,9 +53387,9 @@ selectionCb: o } = e; let s = !0; - const l = nS((() => { + const l = CO((() => { const e = t.getSelection(); - if (!e || s && rS([e, "optionalAccess", e => e.isCollapsed])) return; + if (!e || s && AO([e, "optionalAccess", e => e.isCollapsed])) return; s = e.isCollapsed || !1; const l = [], c = e.rangeCount || 0; @@ -51060,7 +53401,7 @@ endContainer: u, endOffset: d } = o; - Ew(s, r, i, a, !0) || Ew(u, r, i, a, !0) || l.push({ + ZE(s, r, i, a, !0) || ZE(u, r, i, a, !0) || l.push({ start: n.getId(s), startOffset: c, end: n.getId(u), @@ -51071,14 +53412,14 @@ ranges: l }) })); - return l(), fw("selectionchange", l) + return l(), VE("selectionchange", l) }(e), m = function({ - doc: e, - customElementCb: t - }) { + doc: e, + customElementCb: t + }) { const n = e.defaultView; - return n && n.customElements ? _w(n.customElements, "define", (function(e) { + return n && n.customElements ? qE(n.customElements, "define", (function(e) { return function(n, r, i) { try { t({ @@ -51093,19 +53434,19 @@ }(e), g = []; for (const v of e.plugins) g.push(v.observer(v.callback, n, v.options)); - return nS((() => { - iS.forEach((e => e.reset())), rS([r, "optionalAccess", e => e.disconnect, "call", e => e()]), i(), a(), o(), s(), l(), c(), u(), d(), p(), h(), f(), m(), g.forEach((e => e())) + return CO((() => { + PO.forEach((e => e.reset())), AO([r, "optionalAccess", e => e.disconnect, "call", e => e()]), i(), a(), o(), s(), l(), c(), u(), d(), p(), h(), f(), m(), g.forEach((e => e())) })) } - function gS(e) { + function BO(e) { return "undefined" !== typeof window[e] } - function vS(e) { + function GO(e) { return Boolean("undefined" !== typeof window[e] && window[e].prototype && "insertRule" in window[e].prototype && "deleteRule" in window[e].prototype) } - class yS { + class $O { constructor(e) { this.generateIdFn = e, this.iframeIdToRemoteIdMap = new WeakMap, this.iframeRemoteIdToIdMap = new WeakMap } @@ -51144,7 +53485,7 @@ } } - function _S(e) { + function qO(e) { let t, n = e[0], r = 1; for (; r < e.length;) { @@ -51155,17 +53496,17 @@ } return n } - class bS { + class WO { constructor() { - this.crossOriginIframeMirror = new yS(Wk), this.crossOriginIframeRootIdMap = new WeakMap + this.crossOriginIframeMirror = new $O(yE), this.crossOriginIframeRootIdMap = new WeakMap } addIframe() {} addLoadListener() {} attachIframe() {} } - class xS { + class HO { constructor(e) { - this.iframes = new WeakMap, this.crossOriginIframeMap = new WeakMap, this.crossOriginIframeMirror = new yS(Wk), this.crossOriginIframeRootIdMap = new WeakMap, this.mutationCb = e.mutationCb, this.wrappedEmit = e.wrappedEmit, this.stylesheetManager = e.stylesheetManager, this.recordCrossOriginIframes = e.recordCrossOriginIframes, this.crossOriginIframeStyleMirror = new yS(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)), this.mirror = e.mirror, this.recordCrossOriginIframes && window.addEventListener("message", this.handleMessage.bind(this)) + this.iframes = new WeakMap, this.crossOriginIframeMap = new WeakMap, this.crossOriginIframeMirror = new $O(yE), this.crossOriginIframeRootIdMap = new WeakMap, this.mutationCb = e.mutationCb, this.wrappedEmit = e.wrappedEmit, this.stylesheetManager = e.stylesheetManager, this.recordCrossOriginIframes = e.recordCrossOriginIframes, this.crossOriginIframeStyleMirror = new $O(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)), this.mirror = e.mirror, this.recordCrossOriginIframes && window.addEventListener("message", this.handleMessage.bind(this)) } addIframe(e) { this.iframes.set(e, !0), e.contentWindow && this.crossOriginIframeMap.set(e.contentWindow, e) @@ -51184,7 +53525,7 @@ texts: [], attributes: [], isAttachIframe: !0 - }), _S([this, "access", e => e.loadListener, "optionalCall", t => t(e)]), e.contentDocument && e.contentDocument.adoptedStyleSheets && e.contentDocument.adoptedStyleSheets.length > 0 && this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets, this.mirror.getId(e.contentDocument)) + }), qO([this, "access", e => e.loadListener, "optionalCall", t => t(e)]), e.contentDocument && e.contentDocument.adoptedStyleSheets && e.contentDocument.adoptedStyleSheets.length > 0 && this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets, this.mirror.getId(e.contentDocument)) } handleMessage(e) { const t = e; @@ -51197,14 +53538,14 @@ } transformCrossOriginEvent(e, t) { switch (t.type) { - case zw.FullSnapshot: { + case dO.FullSnapshot: { this.crossOriginIframeMirror.reset(e), this.crossOriginIframeStyleMirror.reset(e), this.replaceIdOnNode(t.data.node, e); const n = t.data.node.id; return this.crossOriginIframeRootIdMap.set(e, n), this.patchRootIdOnNode(t.data.node, n), { timestamp: t.timestamp, - type: zw.IncrementalSnapshot, + type: dO.IncrementalSnapshot, data: { - source: Vw.Mutation, + source: pO.Mutation, adds: [{ parentId: this.mirror.getId(e), nextId: null, @@ -51217,17 +53558,17 @@ } } } - case zw.Meta: - case zw.Load: - case zw.DomContentLoaded: + case dO.Meta: + case dO.Load: + case dO.DomContentLoaded: return !1; - case zw.Plugin: + case dO.Plugin: return t; - case zw.Custom: + case dO.Custom: return this.replaceIds(t.data.payload, e, ["id", "parentId", "previousId", "nextId"]), t; - case zw.IncrementalSnapshot: + case dO.IncrementalSnapshot: switch (t.data.source) { - case Vw.Mutation: + case pO.Mutation: return t.data.adds.forEach((t => { this.replaceIds(t, e, ["parentId", "nextId", "previousId"]), this.replaceIdOnNode(t.node, e); const n = this.crossOriginIframeRootIdMap.get(e); @@ -51239,31 +53580,31 @@ })), t.data.texts.forEach((t => { this.replaceIds(t, e, ["id"]) })), t; - case Vw.Drag: - case Vw.TouchMove: - case Vw.MouseMove: + case pO.Drag: + case pO.TouchMove: + case pO.MouseMove: return t.data.positions.forEach((t => { this.replaceIds(t, e, ["id"]) })), t; - case Vw.ViewportResize: + case pO.ViewportResize: return !1; - case Vw.MediaInteraction: - case Vw.MouseInteraction: - case Vw.Scroll: - case Vw.CanvasMutation: - case Vw.Input: + case pO.MediaInteraction: + case pO.MouseInteraction: + case pO.Scroll: + case pO.CanvasMutation: + case pO.Input: return this.replaceIds(t.data, e, ["id"]), t; - case Vw.StyleSheetRule: - case Vw.StyleDeclaration: + case pO.StyleSheetRule: + case pO.StyleDeclaration: return this.replaceIds(t.data, e, ["id"]), this.replaceStyleIds(t.data, e, ["styleId"]), t; - case Vw.Font: + case pO.Font: return t; - case Vw.Selection: + case pO.Selection: return t.data.ranges.forEach((t => { this.replaceIds(t, e, ["start", "end"]) })), t; - case Vw.AdoptedStyleSheet: - return this.replaceIds(t.data, e, ["id"]), this.replaceStyleIds(t.data, e, ["styleIds"]), _S([t, "access", e => e.data, "access", e => e.styles, "optionalAccess", e => e.forEach, "call", t => t((t => { + case pO.AdoptedStyleSheet: + return this.replaceIds(t.data, e, ["id"]), this.replaceStyleIds(t.data, e, ["styleIds"]), qO([t, "access", e => e.data, "access", e => e.styles, "optionalAccess", e => e.forEach, "call", t => t((t => { this.replaceStyleIds(t, e, ["styleId"]) }))]), t } @@ -51286,18 +53627,18 @@ })) } patchRootIdOnNode(e, t) { - e.type === Ok.Document || e.rootId || (e.rootId = t), "childNodes" in e && e.childNodes.forEach((e => { + e.type === XS.Document || e.rootId || (e.rootId = t), "childNodes" in e && e.childNodes.forEach((e => { this.patchRootIdOnNode(e, t) })) } } - class kS { + class KO { init() {} addShadowRoot() {} observeAttachShadow() {} reset() {} } - class wS { + class YO { constructor(e) { this.shadowDoms = new WeakSet, this.restoreHandlers = [], this.mutationCb = e.mutationCb, this.scrollCb = e.scrollCb, this.bypassOptions = e.bypassOptions, this.mirror = e.mirror, this.init() } @@ -51305,23 +53646,23 @@ this.reset(), this.patchAttachShadow(Element, document) } addShadowRoot(e, t) { - if (!Ck(e)) return; + if (!eE(e)) return; if (this.shadowDoms.has(e)) return; this.shadowDoms.add(e), this.bypassOptions.canvasManager.addShadowRoot(e); - const n = oS({ + const n = RO({ ...this.bypassOptions, doc: t, mutationCb: this.mutationCb, mirror: this.mirror, shadowDomManager: this }, e); - this.restoreHandlers.push((() => n.disconnect())), this.restoreHandlers.push(lS({ + this.restoreHandlers.push((() => n.disconnect())), this.restoreHandlers.push(LO({ ...this.bypassOptions, scrollCb: this.scrollCb, doc: e, mirror: this.mirror - })), Fw((() => { - e.adoptedStyleSheets && e.adoptedStyleSheets.length > 0 && this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets, this.mirror.getId(e.host)), this.restoreHandlers.push(fS({ + })), uO((() => { + e.adoptedStyleSheets && e.adoptedStyleSheets.length > 0 && this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets, this.mirror.getId(e.host)), this.restoreHandlers.push(VO({ mirror: this.mirror, stylesheetManager: this.bypassOptions.stylesheetManager }, e)) @@ -51332,10 +53673,10 @@ } patchAttachShadow(e, t) { const n = this; - this.restoreHandlers.push(_w(e.prototype, "attachShadow", (function(e) { + this.restoreHandlers.push(qE(e.prototype, "attachShadow", (function(e) { return function(r) { const i = e.call(this, r); - return this.shadowRoot && Nw(this) && n.addShadowRoot(this.shadowRoot, t), i + return this.shadowRoot && sO(this) && n.addShadowRoot(this.shadowRoot, t), i } }))) } @@ -51347,7 +53688,7 @@ })), this.restoreHandlers = [], this.shadowDoms = new WeakSet, this.bypassOptions.canvasManager.resetShadowRoots() } } - class SS { + class QO { reset() {} freeze() {} unfreeze() {} @@ -51358,9 +53699,9 @@ addShadowRoot() {} resetShadowRoots() {} } - class ES { + class ZO { constructor(e) { - this.trackedLinkElements = new WeakSet, this.styleMirror = new Rw, this.mutationCb = e.mutationCb, this.adoptedStyleSheetCb = e.adoptedStyleSheetCb + this.trackedLinkElements = new WeakSet, this.styleMirror = new iO, this.mutationCb = e.mutationCb, this.adoptedStyleSheetCb = e.adoptedStyleSheetCb } attachLinkElement(e, t) { "_cssText" in t.attributes && this.mutationCb({ @@ -51388,7 +53729,7 @@ this.styleMirror.has(i) ? e = this.styleMirror.getId(i) : (e = this.styleMirror.add(i), r.push({ styleId: e, rules: Array.from(i.rules || CSSRule, ((e, t) => ({ - rule: Pk(e), + rule: nE(e), index: t }))) })), n.styleIds.push(e) @@ -51400,13 +53741,13 @@ } trackStylesheetInLinkElement(e) {} } - class OS { + class XO { constructor() { this.nodeMap = new WeakMap, this.loop = !0, this.periodicallyClear() } periodicallyClear() { ! function(...e) { - Mw("requestAnimationFrame")(...e) + cO("requestAnimationFrame")(...e) }((() => { this.clear(), this.loop && this.periodicallyClear() })) @@ -51425,18 +53766,18 @@ this.loop = !1 } } - let IS, CS; + let JO, eI; try { if (2 !== Array.from([1], (e => 2 * e))[0]) { const e = document.createElement("iframe"); - document.body.appendChild(e), Array.from = S_([e, "access", e => e.contentWindow, "optionalAccess", e => e.Array, "access", e => e.from]) || Array.from, document.body.removeChild(e) + document.body.appendChild(e), Array.from = Qx([e, "access", e => e.contentWindow, "optionalAccess", e => e.Array, "access", e => e.from]) || Array.from, document.body.removeChild(e) } - } catch (sF) { - console.debug("Unable to override Array.from", sF) + } catch (MV) { + console.debug("Unable to override Array.from", MV) } - const AS = new Tk; + const tI = new rE; - function PS(e = {}) { + function nI(e = {}) { const { emit: t, checkoutEveryNms: n, @@ -51459,8 +53800,8 @@ maskInputFn: _, maskTextFn: b, maxCanvasSize: x = null, - packFn: k, - sampling: w = {}, + packFn: w, + sampling: k = {}, dataURLOptions: S = {}, mousemoveWait: E, recordDOM: O = !0, @@ -51477,7 +53818,7 @@ onMutation: M, getCanvasManager: F } = e; - eS(j); + OO(j); const z = !C || window.parent === window; let V = !1; if (!z) try { @@ -51486,7 +53827,7 @@ V = !0 } if (z && !t) throw new Error("emit function is required"); - void 0 !== E && void 0 === w.mousemove && (w.mousemove = E), AS.reset(); + void 0 !== E && void 0 === k.mousemove && (k.mousemove = E), tI.reset(); const U = !0 === m ? { color: !0, date: !0, @@ -51532,11 +53873,11 @@ let $ = 0; const q = e => { for (const t of D || []) t.eventProcessor && (e = t.eventProcessor(e)); - return k && !V && (e = k(e)), e + return w && !V && (e = w(e)), e }; - IS = (e, i) => { + JO = (e, i) => { const a = e; - if (a.timestamp = bw(), !S_([iS, "access", e => e[0], "optionalAccess", e => e.isFrozen, "call", e => e()]) || a.type === zw.FullSnapshot || a.type === zw.IncrementalSnapshot && a.data.source === Vw.Mutation || iS.forEach((e => e.unfreeze())), z) S_([t, "optionalCall", e => e(q(a), i)]); + if (a.timestamp = WE(), !Qx([PO, "access", e => e[0], "optionalAccess", e => e.isFrozen, "call", e => e()]) || a.type === dO.FullSnapshot || a.type === dO.IncrementalSnapshot && a.data.source === pO.Mutation || PO.forEach((e => e.unfreeze())), z) Qx([t, "optionalCall", e => e(q(a), i)]); else if (V) { const e = { type: "rrweb", @@ -51546,9 +53887,9 @@ }; window.parent.postMessage(e, "*") } - if (a.type === zw.FullSnapshot) G = a, $ = 0; - else if (a.type === zw.IncrementalSnapshot) { - if (a.data.source === Vw.Mutation && a.data.isAttachIframe) return; + if (a.type === dO.FullSnapshot) G = a, $ = 0; + else if (a.type === dO.IncrementalSnapshot) { + if (a.data.source === pO.Mutation && a.data.isAttachIframe) return; $++; const e = r && $ >= r, t = n && G && a.timestamp - G.timestamp > n; @@ -51556,64 +53897,64 @@ } }; const W = e => { - IS({ - type: zw.IncrementalSnapshot, + JO({ + type: dO.IncrementalSnapshot, data: { - source: Vw.Mutation, + source: pO.Mutation, ...e } }) }, - H = e => IS({ - type: zw.IncrementalSnapshot, + H = e => JO({ + type: dO.IncrementalSnapshot, data: { - source: Vw.Scroll, + source: pO.Scroll, ...e } }), - K = e => IS({ - type: zw.IncrementalSnapshot, + K = e => JO({ + type: dO.IncrementalSnapshot, data: { - source: Vw.CanvasMutation, + source: pO.CanvasMutation, ...e } }), - Y = new ES({ + Y = new ZO({ mutationCb: W, - adoptedStyleSheetCb: e => IS({ - type: zw.IncrementalSnapshot, + adoptedStyleSheetCb: e => JO({ + type: dO.IncrementalSnapshot, data: { - source: Vw.AdoptedStyleSheet, + source: pO.AdoptedStyleSheet, ...e } }) }), - Q = "boolean" === typeof __RRWEB_EXCLUDE_IFRAME__ && __RRWEB_EXCLUDE_IFRAME__ ? new bS : new xS({ - mirror: AS, + Q = "boolean" === typeof __RRWEB_EXCLUDE_IFRAME__ && __RRWEB_EXCLUDE_IFRAME__ ? new WO : new HO({ + mirror: tI, mutationCb: W, stylesheetManager: Y, recordCrossOriginIframes: C, - wrappedEmit: IS + wrappedEmit: JO }); for (const re of D || []) re.getMirror && re.getMirror({ - nodeMirror: AS, + nodeMirror: tI, crossOriginIframeMirror: Q.crossOriginIframeMirror, crossOriginIframeStyleMirror: Q.crossOriginIframeStyleMirror }); - const Z = new OS, + const Z = new XO, X = function(e, t) { try { - return e ? e(t) : new SS - } catch (n) { - return console.warn("Unable to initialize CanvasManager"), new SS + return e ? e(t) : new QO + } catch (Cs) { + return console.warn("Unable to initialize CanvasManager"), new QO } }(F, { - mirror: AS, + mirror: tI, win: window, - mutationCb: e => IS({ - type: zw.IncrementalSnapshot, + mutationCb: e => JO({ + type: dO.IncrementalSnapshot, data: { - source: Vw.CanvasMutation, + source: pO.CanvasMutation, ...e } }), @@ -51622,11 +53963,11 @@ blockSelector: a, unblockSelector: o, maxCanvasSize: x, - sampling: w.canvas, + sampling: k.canvas, dataURLOptions: S, errorHandler: j }), - J = "boolean" === typeof __RRWEB_EXCLUDE_SHADOW_DOM__ && __RRWEB_EXCLUDE_SHADOW_DOM__ ? new kS : new wS({ + J = "boolean" === typeof __RRWEB_EXCLUDE_SHADOW_DOM__ && __RRWEB_EXCLUDE_SHADOW_DOM__ ? new KO : new YO({ mutationCb: W, scrollCb: H, bypassOptions: { @@ -51647,7 +53988,7 @@ maskInputFn: _, recordCanvas: I, inlineImages: R, - sampling: w, + sampling: k, slimDOMOptions: B, iframeManager: Q, stylesheetManager: Y, @@ -51655,21 +53996,21 @@ keepIframeSrcFn: L, processedNodeManager: Z }, - mirror: AS + mirror: tI }), ee = (e = !1) => { if (!O) return; - IS({ - type: zw.Meta, + JO({ + type: dO.Meta, data: { href: window.location.href, - width: ww(), - height: kw() + width: YE(), + height: KE() } - }, e), Y.reset(), J.init(), iS.forEach((e => e.lock())); + }, e), Y.reset(), J.init(), PO.forEach((e => e.lock())); const t = function(e, t) { const { - mirror: n = new Tk, + mirror: n = new rE, blockClass: r = "rr-block", blockSelector: i = null, unblockSelector: a = null, @@ -51689,13 +54030,13 @@ dataURLOptions: _, preserveWhiteSpace: b, onSerialize: x, - onIframeLoad: k, - iframeLoadTimeout: w, + onIframeLoad: w, + iframeLoadTimeout: k, onStylesheetLoad: S, stylesheetLoadTimeout: E, keepIframeSrcFn: O = (() => !1) } = t || {}; - return pw(e, { + return FE(e, { doc: e, mirror: n, blockClass: r, @@ -51745,15 +54086,15 @@ recordCanvas: h, preserveWhiteSpace: b, onSerialize: x, - onIframeLoad: k, - iframeLoadTimeout: w, + onIframeLoad: w, + iframeLoadTimeout: k, onStylesheetLoad: S, stylesheetLoadTimeout: E, keepIframeSrcFn: O, newlyAddedElement: !1 }) }(document, { - mirror: AS, + mirror: tI, blockClass: i, blockSelector: a, unblockSelector: o, @@ -51772,7 +54113,7 @@ recordCanvas: I, inlineImages: R, onSerialize: e => { - Aw(e, AS) && Q.addIframe(e), Pw(e, AS) && Y.trackLinkElement(e), Tw(e) && J.addShadowRoot(e.shadowRoot, document) + tO(e, tI) && Q.addIframe(e), nO(e, tI) && Y.trackLinkElement(e), rO(e) && J.addShadowRoot(e.shadowRoot, document) }, onIframeLoad: (e, t) => { Q.attachIframe(e, t), e.contentWindow && X.addWindow(e.contentWindow), J.observeAttachShadow(e) @@ -51783,92 +54124,92 @@ keepIframeSrcFn: L }); if (!t) return console.warn("Failed to snapshot the document"); - IS({ - type: zw.FullSnapshot, + JO({ + type: dO.FullSnapshot, data: { node: t, - initialOffset: xw(window) + initialOffset: HE(window) } - }), iS.forEach((e => e.unlock())), document.adoptedStyleSheets && document.adoptedStyleSheets.length > 0 && Y.adoptStyleSheets(document.adoptedStyleSheets, AS.getId(document)) + }), PO.forEach((e => e.unlock())), document.adoptedStyleSheets && document.adoptedStyleSheets.length > 0 && Y.adoptStyleSheets(document.adoptedStyleSheets, tI.getId(document)) }; - CS = ee; + eI = ee; try { const e = [], - t = e => nS(mS)({ + t = e => CO(UO)({ onMutation: M, mutationCb: W, - mousemoveCb: (e, t) => IS({ - type: zw.IncrementalSnapshot, + mousemoveCb: (e, t) => JO({ + type: dO.IncrementalSnapshot, data: { source: t, positions: e } }), - mouseInteractionCb: e => IS({ - type: zw.IncrementalSnapshot, + mouseInteractionCb: e => JO({ + type: dO.IncrementalSnapshot, data: { - source: Vw.MouseInteraction, + source: pO.MouseInteraction, ...e } }), scrollCb: H, - viewportResizeCb: e => IS({ - type: zw.IncrementalSnapshot, + viewportResizeCb: e => JO({ + type: dO.IncrementalSnapshot, data: { - source: Vw.ViewportResize, + source: pO.ViewportResize, ...e } }), - inputCb: e => IS({ - type: zw.IncrementalSnapshot, + inputCb: e => JO({ + type: dO.IncrementalSnapshot, data: { - source: Vw.Input, + source: pO.Input, ...e } }), - mediaInteractionCb: e => IS({ - type: zw.IncrementalSnapshot, + mediaInteractionCb: e => JO({ + type: dO.IncrementalSnapshot, data: { - source: Vw.MediaInteraction, + source: pO.MediaInteraction, ...e } }), - styleSheetRuleCb: e => IS({ - type: zw.IncrementalSnapshot, + styleSheetRuleCb: e => JO({ + type: dO.IncrementalSnapshot, data: { - source: Vw.StyleSheetRule, + source: pO.StyleSheetRule, ...e } }), - styleDeclarationCb: e => IS({ - type: zw.IncrementalSnapshot, + styleDeclarationCb: e => JO({ + type: dO.IncrementalSnapshot, data: { - source: Vw.StyleDeclaration, + source: pO.StyleDeclaration, ...e } }), canvasMutationCb: K, - fontCb: e => IS({ - type: zw.IncrementalSnapshot, + fontCb: e => JO({ + type: dO.IncrementalSnapshot, data: { - source: Vw.Font, + source: pO.Font, ...e } }), selectionCb: e => { - IS({ - type: zw.IncrementalSnapshot, + JO({ + type: dO.IncrementalSnapshot, data: { - source: Vw.Selection, + source: pO.Selection, ...e } }) }, customElementCb: e => { - IS({ - type: zw.IncrementalSnapshot, + JO({ + type: dO.IncrementalSnapshot, data: { - source: Vw.CustomElement, + source: pO.CustomElement, ...e } }) @@ -51883,7 +54224,7 @@ unmaskTextSelector: h, maskInputOptions: U, inlineStylesheet: f, - sampling: w, + sampling: k, recordDOM: O, recordCanvas: I, inlineImages: R, @@ -51898,18 +54239,18 @@ unblockSelector: o, slimDOMOptions: B, dataURLOptions: S, - mirror: AS, + mirror: tI, iframeManager: Q, stylesheetManager: Y, shadowDomManager: J, processedNodeManager: Z, canvasManager: X, ignoreCSSAttributes: N, - plugins: S_([D, "optionalAccess", e => e.filter, "call", e => e((e => e.observer)), "optionalAccess", e => e.map, "call", e => e((e => ({ + plugins: Qx([D, "optionalAccess", e => e.filter, "call", e => e((e => e.observer)), "optionalAccess", e => e.map, "call", e => e((e => ({ observer: e.observer, options: e.options, - callback: t => IS({ - type: zw.Plugin, + callback: t => JO({ + type: dO.Plugin, data: { plugin: e.name, payload: t @@ -51927,44 +54268,44 @@ const n = () => { ee(), e.push(t(document)) }; - return "interactive" === document.readyState || "complete" === document.readyState ? n() : (e.push(fw("DOMContentLoaded", (() => { - IS({ - type: zw.DomContentLoaded, + return "interactive" === document.readyState || "complete" === document.readyState ? n() : (e.push(VE("DOMContentLoaded", (() => { + JO({ + type: dO.DomContentLoaded, data: {} }), "DOMContentLoaded" === A && n() - }))), e.push(fw("load", (() => { - IS({ - type: zw.Load, + }))), e.push(VE("load", (() => { + JO({ + type: dO.Load, data: {} }), "load" === A && n() }), window))), () => { - e.forEach((e => e())), Z.destroy(), CS = void 0, tS() + e.forEach((e => e())), Z.destroy(), eI = void 0, IO() } } catch (ne) { console.warn(ne) } } - PS.mirror = AS, PS.takeFullSnapshot = function(e) { - if (!CS) throw new Error("please take full snapshot after start recording"); - CS(e) + nI.mirror = tI, nI.takeFullSnapshot = function(e) { + if (!eI) throw new Error("please take full snapshot after start recording"); + eI(e) }; - const TS = "undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__, - RS = ["info", "warn", "error", "log"], - DS = "[Replay] "; + const rI = "undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__, + iI = ["info", "warn", "error", "log"], + aI = "[Replay] "; - function LS(e, t = "info") { - Xx({ + function oI(e, t = "info") { + SS({ category: "console", data: { logger: "replay" }, level: t, - message: `${DS}${e}` + message: `${aI}${e}` }, { level: t }) } - const NS = function() { + const sI = function() { let e = !1, t = !1; const n = { @@ -51974,75 +54315,75 @@ e = n.captureExceptions, t = n.traceInternals } }; - return TS ? (RS.forEach((e => { + return rI ? (iI.forEach((e => { n[e] = (...n) => { - Jg[e](DS, ...n), t && LS(n.join(""), nk(e)) + E_[e](aI, ...n), t && oI(n.join(""), CS(e)) } })), n.exception = (r, ...i) => { - i.length && n.error && n.error(...i), Jg.error(DS, r), e ? _x(r) : t && LS(r, "error") + i.length && n.error && n.error(...i), E_.error(aI, r), e ? qk(r) : t && oI(r, "error") }, n.infoTick = (...e) => { - Jg.info(DS, ...e), t && setTimeout((() => LS(e[0])), 0) - }) : RS.forEach((e => { + E_.info(aI, ...e), t && setTimeout((() => oI(e[0])), 0) + }) : iI.forEach((e => { n[e] = () => {} })), n }(); - function jS(e) { + function lI(e) { return e > 9999999999 ? e : 1e3 * e } - function MS(e) { + function cI(e) { return e > 9999999999 ? e / 1e3 : e } - function FS(e, t) { + function uI(e, t) { "sentry.transaction" !== t.category && (["ui.click", "ui.input"].includes(t.category) ? e.triggerUserActivity() : e.checkAndHandleExpiredSession(), e.addUpdate((() => (e.throttledAddEvent({ - type: zw.Custom, + type: dO.Custom, timestamp: 1e3 * (t.timestamp || 0), data: { tag: "breadcrumb", - payload: Wy(t, 10, 1e3) + payload: yx(t, 10, 1e3) } }), "console" === t.category)))) } - function zS(e) { + function dI(e) { return e.closest("button,a") || e } - function VS(e) { - const t = US(e); - return t && t instanceof Element ? zS(t) : t + function pI(e) { + const t = hI(e); + return t && t instanceof Element ? dI(t) : t } - function US(e) { + function hI(e) { return function(e) { return "object" === typeof e && !!e && "target" in e }(e) ? e.target : e } - let BS; + let fI; - function GS(e) { - return BS || (BS = [], iv(vk, "open", (function(e) { + function mI(e) { + return fI || (fI = [], P_(GS, "open", (function(e) { return function(...t) { - if (BS) try { - BS.forEach((e => e())) + if (fI) try { + fI.forEach((e => e())) } catch (n) {} - return e.apply(vk, t) + return e.apply(GS, t) } - }))), BS.push(e), () => { - const t = BS ? BS.indexOf(e) : -1; - t > -1 && BS.splice(t, 1) + }))), fI.push(e), () => { + const t = fI ? fI.indexOf(e) : -1; + t > -1 && fI.splice(t, 1) } } - const $S = new Set([Vw.Mutation, Vw.StyleSheetRule, Vw.StyleDeclaration, Vw.AdoptedStyleSheet, Vw.CanvasMutation, Vw.Selection, Vw.MediaInteraction]); - class qS { - constructor(e, t, n = FS) { + const gI = new Set([pO.Mutation, pO.StyleSheetRule, pO.StyleDeclaration, pO.AdoptedStyleSheet, pO.CanvasMutation, pO.Selection, pO.MediaInteraction]); + class vI { + constructor(e, t, n = uI) { this._lastMutation = 0, this._lastScroll = 0, this._clicks = [], this._timeout = t.timeout / 1e3, this._threshold = t.threshold / 1e3, this._scollTimeout = t.scrollTimeout / 1e3, this._replay = e, this._ignoreSelector = t.ignoreSelector, this._addBreadcrumbEvent = n } addListeners() { - const e = GS((() => { - this._lastMutation = HS() + const e = mI((() => { + this._lastMutation = _I() })); this._teardown = () => { e(), this._clicks = [], this._lastMutation = 0, this._lastScroll = 0 @@ -52053,16 +54394,16 @@ } handleClick(e, t) { if (function(e, t) { - if (!WS.includes(e.tagName)) return !0; - if ("INPUT" === e.tagName && !["submit", "button"].includes(e.getAttribute("type") || "")) return !0; - if ("A" === e.tagName && (e.hasAttribute("download") || e.hasAttribute("target") && "_self" !== e.getAttribute("target"))) return !0; - if (t && e.matches(t)) return !0; - return !1 - }(t, this._ignoreSelector) || ! function(e) { - return !(!e.data || "number" !== typeof e.data.nodeId || !e.timestamp) - }(e)) return; + if (!yI.includes(e.tagName)) return !0; + if ("INPUT" === e.tagName && !["submit", "button"].includes(e.getAttribute("type") || "")) return !0; + if ("A" === e.tagName && (e.hasAttribute("download") || e.hasAttribute("target") && "_self" !== e.getAttribute("target"))) return !0; + if (t && e.matches(t)) return !0; + return !1 + }(t, this._ignoreSelector) || ! function(e) { + return !(!e.data || "number" !== typeof e.data.nodeId || !e.timestamp) + }(e)) return; const n = { - timestamp: MS(e.timestamp), + timestamp: cI(e.timestamp), clickBreadcrumb: e, clickCount: 0, node: t @@ -52070,13 +54411,13 @@ this._clicks.some((e => e.node === n.node && Math.abs(e.timestamp - n.timestamp) < 1)) || (this._clicks.push(n), 1 === this._clicks.length && this._scheduleCheckClicks()) } registerMutation(e = Date.now()) { - this._lastMutation = MS(e) + this._lastMutation = cI(e) } registerScroll(e = Date.now()) { - this._lastScroll = MS(e) + this._lastScroll = cI(e) } registerClick(e) { - const t = zS(e); + const t = dI(e); this._handleMultiClick(t) } _handleMultiClick(e) { @@ -52089,7 +54430,7 @@ } _checkClicks() { const e = [], - t = HS(); + t = _I(); this._clicks.forEach((n => { !n.mutationAfter && this._lastMutation && (n.mutationAfter = n.timestamp <= this._lastMutation ? this._lastMutation - n.timestamp : void 0), !n.scrollAfter && this._lastScroll && (n.scrollAfter = n.timestamp <= this._lastScroll ? this._lastScroll - n.timestamp : void 0), n.timestamp + this._timeout <= t && e.push(n) })); @@ -52118,7 +54459,7 @@ category: "ui.slowClickDetected", data: { ...o.data, - url: vk.location.href, + url: GS.location.href, route: t.getCurrentRoute(), timeAfterClickMs: n, endReason: r, @@ -52134,7 +54475,7 @@ category: "ui.multiClick", data: { ...o.data, - url: vk.location.href, + url: GS.location.href, route: t.getCurrentRoute(), clickCount: a, metric: !0 @@ -52144,58 +54485,58 @@ } } _scheduleCheckClicks() { - this._checkClickTimeout && clearTimeout(this._checkClickTimeout), this._checkClickTimeout = uk((() => this._checkClicks()), 1e3) + this._checkClickTimeout && clearTimeout(this._checkClickTimeout), this._checkClickTimeout = jS((() => this._checkClicks()), 1e3) } } - const WS = ["A", "BUTTON", "INPUT"]; + const yI = ["A", "BUTTON", "INPUT"]; - function HS() { + function _I() { return Date.now() / 1e3 } - function KS(e, t) { + function bI(e, t) { try { if (! function(e) { - return 3 === e.type - }(t)) return; + return 3 === e.type + }(t)) return; const { source: n } = t.data; - if ($S.has(n) && e.registerMutation(t.timestamp), n === Vw.Scroll && e.registerScroll(t.timestamp), function(e) { - return e.data.source === Vw.MouseInteraction - }(t)) { + if (gI.has(n) && e.registerMutation(t.timestamp), n === pO.Scroll && e.registerScroll(t.timestamp), function(e) { + return e.data.source === pO.MouseInteraction + }(t)) { const { type: n, id: r - } = t.data, i = PS.mirror.getNode(r); - i instanceof HTMLElement && n === Uw.Click && e.registerClick(i) + } = t.data, i = nI.mirror.getNode(r); + i instanceof HTMLElement && n === hO.Click && e.registerClick(i) } } catch (n) {} } - function YS(e) { + function xI(e) { return { timestamp: Date.now() / 1e3, type: "default", ...e } } - var QS; + var wI; ! function(e) { e[e.Document = 0] = "Document", e[e.DocumentType = 1] = "DocumentType", e[e.Element = 2] = "Element", e[e.Text = 3] = "Text", e[e.CDATA = 4] = "CDATA", e[e.Comment = 5] = "Comment" - }(QS || (QS = {})); - const ZS = new Set(["id", "class", "aria-label", "role", "name", "alt", "title", "data-test-id", "data-testid", "disabled", "aria-disabled", "data-sentry-component"]); + }(wI || (wI = {})); + const kI = new Set(["id", "class", "aria-label", "role", "name", "alt", "title", "data-test-id", "data-testid", "disabled", "aria-disabled", "data-sentry-component"]); - function XS(e) { + function SI(e) { const t = {}; !e["data-sentry-component"] && e["data-sentry-element"] && (e["data-sentry-component"] = e["data-sentry-element"]); for (const n in e) - if (ZS.has(n)) { + if (kI.has(n)) { let r = n; "data-testid" !== n && "data-test-id" !== n || (r = "testId"), t[r] = e[n] } return t } - const JS = e => t => { + const EI = e => t => { if (!e.isEnabled()) return; const n = function(e) { const { @@ -52205,7 +54546,7 @@ const t = "click" === e.name; let n, r = null; try { - r = t ? VS(e.event) : US(e.event), n = qg(r, { + r = t ? pI(e.event) : hI(e.event), n = v_(r, { maxStringLength: 200 }) || "" } catch (i) { @@ -52216,9 +54557,9 @@ message: n } }(e); - return YS({ + return xI({ category: `ui.${e.name}`, - ...eE(t, n) + ...OI(t, n) }) }(t); if (!n) return; @@ -52226,15 +54567,15 @@ i = r ? t.event : void 0; !(r && e.clickDetector && i && i.target) || i.altKey || i.metaKey || i.ctrlKey || i.shiftKey || function(e, t, n) { e.handleClick(t, n) - }(e.clickDetector, n, VS(t.event)), FS(e, n) + }(e.clickDetector, n, pI(t.event)), uI(e, n) }; - function eE(e, t) { - const n = PS.mirror.getId(e), - r = n && PS.mirror.getNode(n), - i = r && PS.mirror.getMeta(r), + function OI(e, t) { + const n = nI.mirror.getId(e), + r = n && nI.mirror.getNode(n), + i = r && nI.mirror.getMeta(r), a = i && function(e) { - return e.type === QS.Element + return e.type === wI.Element }(i) ? i : null; return { message: t, @@ -52243,14 +54584,14 @@ node: { id: n, tagName: a.tagName, - textContent: Array.from(a.childNodes).map((e => e.type === QS.Text && e.textContent)).filter(Boolean).map((e => e.trim())).join(""), - attributes: XS(a.attributes) + textContent: Array.from(a.childNodes).map((e => e.type === wI.Text && e.textContent)).filter(Boolean).map((e => e.trim())).join(""), + attributes: SI(a.attributes) } } : {} } } - function tE(e, t) { + function II(e, t) { if (!e.isEnabled()) return; e.updateUserActivity(); const n = function(e) { @@ -52263,16 +54604,16 @@ target: o } = e; if (!o || function(e) { - return "INPUT" === e.tagName || "TEXTAREA" === e.tagName || e.isContentEditable - }(o) || !a) return null; + return "INPUT" === e.tagName || "TEXTAREA" === e.tagName || e.isContentEditable + }(o) || !a) return null; const s = t || r || i, l = 1 === a.length; if (!s && l) return null; - const c = qg(o, { + const c = v_(o, { maxStringLength: 200 }) || "", - u = eE(o, c); - return YS({ + u = OI(o, c); + return xI({ category: "ui.keyDown", message: c, data: { @@ -52285,9 +54626,9 @@ } }) }(t); - n && FS(e, n) + n && uI(e, n) } - const nE = { + const CI = { resource: function(e) { const { entryType: t, @@ -52303,8 +54644,8 @@ if (["fetch", "xmlhttprequest"].includes(n)) return null; return { type: `${t}.${n}`, - start: aE(a), - end: aE(i), + start: TI(a), + end: TI(i), name: r, data: { size: c, @@ -52320,7 +54661,7 @@ entryType: n, name: r, startTime: i - } = e, a = aE(i); + } = e, a = TI(i); return { type: n, name: r, @@ -52350,8 +54691,8 @@ if (0 === i) return null; return { type: `${t}.${m}`, - start: aE(h), - end: aE(a), + start: TI(h), + end: TI(a), name: n, data: { size: f, @@ -52370,64 +54711,64 @@ } }; - function rE(e, t) { + function AI(e, t) { return ({ - metric: n - }) => { + metric: n + }) => { t.replayPerformanceEntries.push(e(n)) } } - function iE(e) { - const t = nE[e.entryType]; + function PI(e) { + const t = CI[e.entryType]; return t ? t(e) : null } - function aE(e) { - return ((Rv || vk.performance.timeOrigin) + e) / 1e3 + function TI(e) { + return ((ib || GS.performance.timeOrigin) + e) / 1e3 } - function oE(e) { + function RI(e) { const t = e.entries[e.entries.length - 1]; - return dE(e, "largest-contentful-paint", t && t.element ? [t.element] : void 0) + return MI(e, "largest-contentful-paint", t && t.element ? [t.element] : void 0) } - function sE(e) { + function DI(e) { return void 0 !== e.sources } - function lE(e) { + function LI(e) { const t = [], n = []; for (const r of e.entries) - if (sE(r)) { + if (DI(r)) { const e = []; for (const t of r.sources) if (t.node) { n.push(t.node); - const r = PS.mirror.getId(t.node); + const r = nI.mirror.getId(t.node); r && e.push(r) } t.push({ value: r.value, nodeIds: e.length ? e : void 0 }) - } return dE(e, "cumulative-layout-shift", n, t) + } return MI(e, "cumulative-layout-shift", n, t) } - function cE(e) { + function NI(e) { const t = e.entries[e.entries.length - 1]; - return dE(e, "first-input-delay", t && t.target ? [t.target] : void 0) + return MI(e, "first-input-delay", t && t.target ? [t.target] : void 0) } - function uE(e) { + function jI(e) { const t = e.entries[e.entries.length - 1]; - return dE(e, "interaction-to-next-paint", t && t.target ? [t.target] : void 0) + return MI(e, "interaction-to-next-paint", t && t.target ? [t.target] : void 0) } - function dE(e, t, n, r) { + function MI(e, t, n, r) { const i = e.value, a = e.rating, - o = aE(i); + o = TI(i); return { type: "web-vital", name: t, @@ -52437,17 +54778,17 @@ value: i, size: i, rating: a, - nodeIds: n ? n.map((e => PS.mirror.getId(e))) : void 0, + nodeIds: n ? n.map((e => nI.mirror.getId(e))) : void 0, attributions: r } } } - class pE extends Error { + class FI extends Error { constructor() { super("Event buffer exceeded maximum size of 20000000.") } } - class hE { + class zI { constructor() { this.events = [], this._totalSize = 0, this.hasCheckout = !1 } @@ -52462,7 +54803,7 @@ } async addEvent(e) { const t = JSON.stringify(e).length; - if (this._totalSize += t, this._totalSize > kk) throw new pE; + if (this._totalSize += t, this._totalSize > KS) throw new FI; this.events.push(e) } finish() { @@ -52476,18 +54817,18 @@ } getEarliestTimestamp() { const e = this.events.map((e => e.timestamp)).sort()[0]; - return e ? jS(e) : null + return e ? lI(e) : null } } - class fE { + class VI { constructor(e) { this._worker = e, this._id = 0 } ensureReady() { return this._ensureReadyPromise || (this._ensureReadyPromise = new Promise(((e, t) => { this._worker.addEventListener("message", (({ - data: n - }) => { + data: n + }) => { n.success ? e() : t() }), { once: !0 @@ -52499,17 +54840,17 @@ }))), this._ensureReadyPromise } destroy() { - TS && NS.info("Destroying compression worker"), this._worker.terminate() + rI && sI.info("Destroying compression worker"), this._worker.terminate() } postMessage(e, t) { const n = this._getAndIncrementId(); return new Promise(((r, i) => { const a = ({ - data: t - }) => { + data: t + }) => { const o = t; if (o.method === e && o.id === n) { - if (this._worker.removeEventListener("message", a), !o.success) return TS && NS.error("Error in compression worker: ", o.response), void i(new Error("Error in compression worker")); + if (this._worker.removeEventListener("message", a), !o.success) return rI && sI.error("Error in compression worker: ", o.response), void i(new Error("Error in compression worker")); r(o.response) } }; @@ -52524,9 +54865,9 @@ return this._id++ } } - class mE { + class UI { constructor(e) { - this._worker = new fE(e), this._earliestTimestamp = null, this._totalSize = 0, this.hasCheckout = !1 + this._worker = new VI(e), this._earliestTimestamp = null, this._totalSize = 0, this.hasCheckout = !1 } get hasEvents() { return !!this._earliestTimestamp @@ -52541,17 +54882,17 @@ this._worker.destroy() } addEvent(e) { - const t = jS(e.timestamp); + const t = lI(e.timestamp); (!this._earliestTimestamp || t < this._earliestTimestamp) && (this._earliestTimestamp = t); const n = JSON.stringify(e); - return this._totalSize += n.length, this._totalSize > kk ? Promise.reject(new pE) : this._sendEventToWorker(n) + return this._totalSize += n.length, this._totalSize > KS ? Promise.reject(new FI) : this._sendEventToWorker(n) } finish() { return this._finishRequest() } clear() { this._earliestTimestamp = null, this._totalSize = 0, this.hasCheckout = !1, this._worker.postMessage("clear").then(null, (e => { - TS && NS.exception(e, 'Sending "clear" message to worker failed', e) + rI && sI.exception(e, 'Sending "clear" message to worker failed', e) })) } getEarliestTimestamp() { @@ -52565,9 +54906,9 @@ return this._earliestTimestamp = null, this._totalSize = 0, e } } - class gE { + class BI { constructor(e) { - this._fallback = new hE, this._compression = new mE(e), this._used = this._fallback, this._ensureWorkerIsLoadedPromise = this._ensureWorkerIsLoaded() + this._fallback = new zI, this._compression = new UI(e), this._used = this._fallback, this._ensureWorkerIsLoadedPromise = this._ensureWorkerIsLoaded() } get type() { return this._used.type @@ -52603,7 +54944,7 @@ try { await this._compression.ensureReady() } catch (e) { - return void(TS && NS.exception(e, "Failed to load the compression worker, falling back to simple buffer")) + return void(rI && sI.exception(e, "Failed to load the compression worker, falling back to simple buffer")) } await this._switchToCompressionWorker() } @@ -52617,15 +54958,15 @@ try { await Promise.all(n) } catch (r) { - TS && NS.exception(r, "Failed to add events when switching buffers.") + rI && sI.exception(r, "Failed to add events when switching buffers.") } } } - function vE({ - useCompression: e, - workerUrl: t - }) { + function GI({ + useCompression: e, + workerUrl: t + }) { if (e && window.Worker) { const e = function(e) { try { @@ -52637,43 +54978,43 @@ return "" }(); if (!t) return; - TS && NS.info("Using compression worker" + (e ? ` from ${e}` : "")); + rI && sI.info("Using compression worker" + (e ? ` from ${e}` : "")); const n = new Worker(t); - return new gE(n) + return new BI(n) } catch (t) { - TS && NS.exception(t, "Failed to create compression worker") + rI && sI.exception(t, "Failed to create compression worker") } }(t); if (e) return e } - return TS && NS.info("Using simple buffer"), new hE + return rI && sI.info("Using simple buffer"), new zI } - function yE() { + function $I() { try { - return "sessionStorage" in vk && !!vk.sessionStorage + return "sessionStorage" in GS && !!GS.sessionStorage } catch (e) { return !1 } } - function _E(e) { + function qI(e) { ! function() { - if (!yE()) return; + if (!$I()) return; try { - vk.sessionStorage.removeItem(yk) + GS.sessionStorage.removeItem($S) } catch (e) {} }(), e.session = void 0 } - function bE(e) { + function WI(e) { return void 0 !== e && Math.random() < e } - function xE(e) { + function HI(e) { const t = Date.now(); return { - id: e.id || _v(), + id: e.id || q_(), started: e.started || t, lastActivity: e.lastActivity || t, segmentId: e.segmentId || 0, @@ -52682,129 +55023,129 @@ } } - function kE(e) { - if (yE()) try { - vk.sessionStorage.setItem(yk, JSON.stringify(e)) + function KI(e) { + if ($I()) try { + GS.sessionStorage.setItem($S, JSON.stringify(e)) } catch (t) {} } - function wE({ - sessionSampleRate: e, - allowBuffering: t, - stickySession: n = !1 - }, { - previousSessionId: r - } = {}) { + function YI({ + sessionSampleRate: e, + allowBuffering: t, + stickySession: n = !1 + }, { + previousSessionId: r + } = {}) { const i = function(e, t) { - return bE(e) ? "session" : !!t && "buffer" + return WI(e) ? "session" : !!t && "buffer" }(e, t), - a = xE({ + a = HI({ sampled: i, previousSessionId: r }); - return n && kE(a), a + return n && KI(a), a } - function SE(e, t, n = +new Date) { + function QI(e, t, n = +new Date) { return null === e || void 0 === t || t < 0 || 0 !== t && e + t <= n } - function EE(e, { + function ZI(e, { maxReplayDuration: t, sessionIdleExpire: n, targetTime: r = Date.now() }) { - return SE(e.started, t, r) || SE(e.lastActivity, n, r) + return QI(e.started, t, r) || QI(e.lastActivity, n, r) } - function OE(e, { + function XI(e, { sessionIdleExpire: t, maxReplayDuration: n }) { - return !!EE(e, { + return !!ZI(e, { sessionIdleExpire: t, maxReplayDuration: n }) && ("buffer" !== e.sampled || 0 !== e.segmentId) } - function IE({ - sessionIdleExpire: e, - maxReplayDuration: t, - previousSessionId: n - }, r) { + function JI({ + sessionIdleExpire: e, + maxReplayDuration: t, + previousSessionId: n + }, r) { const i = r.stickySession && function() { - if (!yE()) return null; + if (!$I()) return null; try { - const e = vk.sessionStorage.getItem(yk); + const e = GS.sessionStorage.getItem($S); if (!e) return null; const t = JSON.parse(e); - return TS && NS.infoTick("Loading existing session"), xE(t) + return rI && sI.infoTick("Loading existing session"), HI(t) } catch (e) { return null } }(); - return i ? OE(i, { + return i ? XI(i, { sessionIdleExpire: e, maxReplayDuration: t - }) ? (TS && NS.infoTick("Session in sessionStorage is expired, creating new one..."), wE(r, { + }) ? (rI && sI.infoTick("Session in sessionStorage is expired, creating new one..."), YI(r, { previousSessionId: i.id - })) : i : (TS && NS.infoTick("Creating new session"), wE(r, { + })) : i : (rI && sI.infoTick("Creating new session"), YI(r, { previousSessionId: n })) } - function CE(e, t, n) { - return !!PE(e, t) && (AE(e, t, n), !0) + function eC(e, t, n) { + return !!nC(e, t) && (tC(e, t, n), !0) } - async function AE(e, t, n) { + async function tC(e, t, n) { if (!e.eventBuffer) return null; try { n && "buffer" === e.recordingMode && e.eventBuffer.clear(), n && (e.eventBuffer.hasCheckout = !0); const r = function(e, t) { try { if ("function" === typeof t && function(e) { - return e.type === zw.Custom - }(e)) return t(e) + return e.type === dO.Custom + }(e)) return t(e) } catch (n) { - return TS && NS.exception(n, "An error occured in the `beforeAddRecordingEvent` callback, skipping the event..."), null + return rI && sI.exception(n, "An error occured in the `beforeAddRecordingEvent` callback, skipping the event..."), null } return e }(t, e.getOptions().beforeAddRecordingEvent); if (!r) return; return await e.eventBuffer.addEvent(r) } catch (r) { - const t = r && r instanceof pE ? "addEventSizeExceeded" : "addEvent"; + const t = r && r instanceof FI ? "addEventSizeExceeded" : "addEvent"; e.handleException(r), await e.stop({ reason: t }); - const n = Xv(); + const n = Sb(); n && n.recordDroppedEvent("internal_sdk_error", "replay") } } - function PE(e, t) { + function nC(e, t) { if (!e.eventBuffer || e.isPaused() || !e.isEnabled()) return !1; - const n = jS(t.timestamp); - return !(n + e.timeouts.sessionIdlePause < Date.now()) && (!(n > e.getContext().initialTimestamp + e.getOptions().maxReplayDuration) || (TS && NS.infoTick(`Skipping event with timestamp ${n} because it is after maxReplayDuration`), !1)) + const n = lI(t.timestamp); + return !(n + e.timeouts.sessionIdlePause < Date.now()) && (!(n > e.getContext().initialTimestamp + e.getOptions().maxReplayDuration) || (rI && sI.infoTick(`Skipping event with timestamp ${n} because it is after maxReplayDuration`), !1)) } - function TE(e) { + function rC(e) { return !e.type } - function RE(e) { + function iC(e) { return "transaction" === e.type } - function DE(e) { + function aC(e) { return "feedback" === e.type } - function LE(e) { + function oC(e) { return (t, n) => { - if (!e.isEnabled() || !TE(t) && !RE(t)) return; + if (!e.isEnabled() || !rC(t) && !iC(t)) return; const r = n && n.statusCode; - !r || r < 200 || r >= 300 || (RE(t) ? function(e, t) { + !r || r < 200 || r >= 300 || (iC(t) ? function(e, t) { const n = e.getContext(); t.contexts && t.contexts.trace && t.contexts.trace.trace_id && n.traceIds.size < 100 && n.traceIds.add(t.contexts.trace.trace_id) }(e, t) : function(e, t) { @@ -52815,23 +55156,23 @@ beforeErrorSampling: r } = e.getOptions(); if ("function" === typeof r && !r(t)) return; - uk((() => { + jS((() => { e.sendBufferedReplayOrFlush() })) }(e, t)) } } - function NE(e) { + function sC(e) { return t => { - e.isEnabled() && TE(t) && function(e, t) { + e.isEnabled() && rC(t) && function(e, t) { const n = t.exception && t.exception.values && t.exception.values[0] && t.exception.values[0].value; if ("string" !== typeof n) return; if (n.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/) || n.match(/(does not match server-rendered HTML|Hydration failed because)/i)) { - FS(e, YS({ + uI(e, xI({ category: "replay.hydrate-error", data: { - url: Hg() + url: __() } })) } @@ -52839,26 +55180,26 @@ } } - function jE(e) { - const t = Xv(); + function lC(e) { + const t = Sb(); t && t.on("beforeAddBreadcrumb", (t => function(e, t) { - if (!e.isEnabled() || !ME(t)) return; + if (!e.isEnabled() || !cC(t)) return; const n = function(e) { - if (!ME(e) || ["fetch", "xhr", "sentry.event", "sentry.transaction"].includes(e.category) || e.category.startsWith("ui.")) return null; + if (!cC(e) || ["fetch", "xhr", "sentry.event", "sentry.transaction"].includes(e.category) || e.category.startsWith("ui.")) return null; if ("console" === e.category) return function(e) { const t = e.data && e.data.arguments; - if (!Array.isArray(t) || 0 === t.length) return YS(e); + if (!Array.isArray(t) || 0 === t.length) return xI(e); let n = !1; const r = t.map((e => { if (!e) return e; - if ("string" === typeof e) return e.length > xk ? (n = !0, `${e.slice(0,xk)}\u2026`) : e; + if ("string" === typeof e) return e.length > HS ? (n = !0, `${e.slice(0,HS)}\u2026`) : e; if ("object" === typeof e) try { - const t = Wy(e, 7); - return JSON.stringify(t).length > xk ? (n = !0, `${JSON.stringify(t,null,2).slice(0,xk)}\u2026`) : t + const t = yx(e, 7); + return JSON.stringify(t).length > HS ? (n = !0, `${JSON.stringify(t,null,2).slice(0,HS)}\u2026`) : t } catch (t) {} return e })); - return YS({ + return xI({ ...e, data: { ...e.data, @@ -52871,28 +55212,28 @@ } }) }(e); - return YS(e) + return xI(e) }(t); - n && FS(e, n) + n && uI(e, n) }(e, t))) } - function ME(e) { + function cC(e) { return !!e.category } - function FE(e) { + function uC(e) { return Object.assign(((t, n) => { if (!e.isEnabled() || e.isPaused()) return t; if (function(e) { - return "replay_event" === e.type - }(t)) return delete t.breadcrumbs, t; - if (!TE(t) && !RE(t) && !DE(t)) return t; + return "replay_event" === e.type + }(t)) return delete t.breadcrumbs, t; + if (!rC(t) && !iC(t) && !aC(t)) return t; if (!e.checkAndHandleExpiredSession()) return t; - if (DE(t)) return e.flush(), t.contexts.feedback.replay_id = e.getSessionId(), + if (aC(t)) return e.flush(), t.contexts.feedback.replay_id = e.getSessionId(), function(e, t) { e.triggerUserActivity(), e.addUpdate((() => !t.timestamp || (e.throttledAddEvent({ - type: zw.Custom, + type: dO.Custom, timestamp: 1e3 * t.timestamp, data: { tag: "breadcrumb", @@ -52908,10 +55249,10 @@ }), !1))) }(e, t), t; if (function(e, t) { - return !(e.type || !e.exception || !e.exception.values || !e.exception.values.length) && !(!t.originalException || !t.originalException.__rrweb__) - }(t, n) && !e.getOptions()._experiments.captureExceptions) return TS && NS.log("Ignoring error from rrweb internals", t), null; + return !(e.type || !e.exception || !e.exception.values || !e.exception.values.length) && !(!t.originalException || !t.originalException.__rrweb__) + }(t, n) && !e.getOptions()._experiments.captureExceptions) return rI && sI.log("Ignoring error from rrweb internals", t), null; const r = function(e, t) { - return "buffer" === e.recordingMode && t.message !== _k && !(!t.exception || t.type) && bE(e.getOptions().errorSampleRate) + return "buffer" === e.recordingMode && t.message !== qS && !(!t.exception || t.type) && WI(e.getOptions().errorSampleRate) }(e, t); return (r || "session" === e.recordingMode) && (t.tags = { ...t.tags, @@ -52922,16 +55263,16 @@ }) } - function zE(e, t) { + function dC(e, t) { return t.map((({ - type: t, - start: n, - end: r, - name: i, - data: a - }) => { + type: t, + start: n, + end: r, + name: i, + data: a + }) => { const o = e.throttledAddEvent({ - type: zw.Custom, + type: dO.Custom, timestamp: n, data: { tag: "performanceSpan", @@ -52948,7 +55289,7 @@ })) } - function VE(e) { + function pC(e) { return t => { if (!e.isEnabled()) return; const n = function(e) { @@ -52966,24 +55307,24 @@ } } }(t); - null !== n && (e.getContext().urls.push(n.name), e.triggerUserActivity(), e.addUpdate((() => (zE(e, [n]), !1)))) + null !== n && (e.getContext().urls.push(n.name), e.triggerUserActivity(), e.addUpdate((() => (dC(e, [n]), !1)))) } } - function UE(e, t) { + function hC(e, t) { e.isEnabled() && null !== t && (function(e, t) { - return (!TS || !e.getOptions()._experiments.traceInternals) && Jx(t, Xv()) - }(e, t.name) || e.addUpdate((() => (zE(e, [t]), !0)))) + return (!rI || !e.getOptions()._experiments.traceInternals) && ES(t, Sb()) + }(e, t.name) || e.addUpdate((() => (dC(e, [t]), !0)))) } - function BE(e) { + function fC(e) { if (!e) return; const t = new TextEncoder; try { if ("string" === typeof e) return t.encode(e).length; if (e instanceof URLSearchParams) return t.encode(e.toString()).length; if (e instanceof FormData) { - const n = QE(e); + const n = wC(e); return t.encode(n).length } if (e instanceof Blob) return e.size; @@ -52991,25 +55332,25 @@ } catch (n) {} } - function GE(e) { + function mC(e) { if (!e) return; const t = parseInt(e, 10); return isNaN(t) ? void 0 : t } - function $E(e) { + function gC(e) { try { if ("string" === typeof e) return [e]; if (e instanceof URLSearchParams) return [e.toString()]; - if (e instanceof FormData) return [QE(e)]; + if (e instanceof FormData) return [wC(e)]; if (!e) return [void 0] } catch (t) { - return TS && NS.exception(t, "Failed to serialize body", e), [void 0, "BODY_PARSE_ERROR"] + return rI && sI.exception(t, "Failed to serialize body", e), [void 0, "BODY_PARSE_ERROR"] } - return TS && NS.info("Skipping network body because of body type", e), [void 0, "UNPARSEABLE_BODY_TYPE"] + return rI && sI.info("Skipping network body because of body type", e), [void 0, "UNPARSEABLE_BODY_TYPE"] } - function qE(e, t) { + function vC(e, t) { if (!e) return { headers: {}, size: void 0, @@ -53024,7 +55365,7 @@ return n.warnings = [...r, t], e._meta = n, e } - function WE(e, t) { + function yC(e, t) { if (!t) return null; const { startTimestamp: n, @@ -53040,7 +55381,7 @@ start: n / 1e3, end: r / 1e3, name: i, - data: dv({ + data: M_({ method: a, statusCode: o, request: s, @@ -53049,7 +55390,7 @@ } } - function HE(e) { + function _C(e) { return { headers: {}, size: e, @@ -53059,7 +55400,7 @@ } } - function KE(e, t, n) { + function bC(e, t, n) { if (!t && 0 === Object.keys(e).length) return; if (!t) return { headers: e @@ -53079,14 +55420,14 @@ if (!e || "string" !== typeof e) return { body: e }; - const t = e.length > bk, + const t = e.length > WS, n = function(e) { const t = e[0], n = e[e.length - 1]; return "[" === t && "]" === n || "{" === t && "}" === n }(e); if (t) { - const t = e.slice(0, bk); + const t = e.slice(0, WS); return n ? { body: t, warnings: ["MAYBE_JSON_TRUNCATED"] @@ -53099,7 +55440,7 @@ return { body: JSON.parse(e) } - } catch (r) {} + } catch (Cs) {} return { body: e } @@ -53109,29 +55450,29 @@ }), r } - function YE(e, t) { + function xC(e, t) { return Object.entries(e).reduce(((n, [r, i]) => { const a = r.toLowerCase(); return t.includes(a) && e[r] && (n[a] = i), n }), {}) } - function QE(e) { + function wC(e) { return new URLSearchParams(e).toString() } - function ZE(e, t) { - const n = function(e, t = vk.document.baseURI) { - if (e.startsWith("http://") || e.startsWith("https://") || e.startsWith(vk.location.origin)) return e; + function kC(e, t) { + const n = function(e, t = GS.document.baseURI) { + if (e.startsWith("http://") || e.startsWith("https://") || e.startsWith(GS.location.origin)) return e; const n = new URL(e, t); if (n.origin !== new URL(t).origin) return e; const r = n.href; if (!e.endsWith("/") && r.endsWith("/")) return r.slice(0, -1); return r }(e); - return rv(n, t) + return A_(n, t) } - async function XE(e, t, n) { + async function SC(e, t, n) { try { const r = await async function(e, t, n) { const r = Date.now(), @@ -53146,52 +55487,52 @@ request_body_size: c, response_body_size: u } = e.data, - d = ZE(o, n.networkDetailAllowUrls) && !ZE(o, n.networkDetailDenyUrls), + d = kC(o, n.networkDetailAllowUrls) && !kC(o, n.networkDetailDenyUrls), p = d ? function({ - networkCaptureBodies: e, - networkRequestHeaders: t - }, n, r) { + networkCaptureBodies: e, + networkRequestHeaders: t + }, n, r) { const i = n ? function(e, t) { - if (1 === e.length && "string" !== typeof e[0]) return tO(e[0], t); - if (2 === e.length) return tO(e[1], t); + if (1 === e.length && "string" !== typeof e[0]) return IC(e[0], t); + if (2 === e.length) return IC(e[1], t); return {} }(n, t) : {}; - if (!e) return KE(i, r, void 0); - const a = JE(n), - [o, s] = $E(a), - l = KE(i, r, o); - if (s) return qE(l, s); + if (!e) return bC(i, r, void 0); + const a = EC(n), + [o, s] = gC(a), + l = bC(i, r, o); + if (s) return vC(l, s); return l - }(n, t.input, c) : HE(c), + }(n, t.input, c) : _C(c), h = await async function(e, { networkCaptureBodies: t, networkResponseHeaders: n }, r, i) { - if (!e && void 0 !== i) return HE(i); - const a = r ? eO(r.headers, n) : {}; - if (!r || !t && void 0 !== i) return KE(a, i, void 0); + if (!e && void 0 !== i) return _C(i); + const a = r ? OC(r.headers, n) : {}; + if (!r || !t && void 0 !== i) return bC(a, i, void 0); const [o, s] = await async function(e) { const t = function(e) { try { return e.clone() } catch (t) { - TS && NS.exception(t, "Failed to clone response body") + rI && sI.exception(t, "Failed to clone response body") } }(e); if (!t) return [void 0, "BODY_PARSE_ERROR"]; try { const e = await - function(e) { - return new Promise(((t, n) => { - const r = uk((() => n(new Error("Timeout while trying to read response body"))), 500); - (async function(e) { - return await e.text() - })(e).then((e => t(e)), (e => n(e))).finally((() => clearTimeout(r))) - })) - }(t); + function(e) { + return new Promise(((t, n) => { + const r = jS((() => n(new Error("Timeout while trying to read response body"))), 500); + (async function(e) { + return await e.text() + })(e).then((e => t(e)), (e => n(e))).finally((() => clearTimeout(r))) + })) + }(t); return [e] } catch (n) { - return TS && NS.exception(n, "Failed to get text body from response"), [void 0, "BODY_PARSE_ERROR"] + return rI && sI.exception(n, "Failed to get text body from response"), [void 0, "BODY_PARSE_ERROR"] } }(r), l = function(e, { networkCaptureBodies: t, @@ -53200,10 +55541,10 @@ headers: i }) { try { - const a = e && e.length && void 0 === n ? BE(e) : n; - return r ? KE(i, a, t ? e : void 0) : HE(a) + const a = e && e.length && void 0 === n ? fC(e) : n; + return r ? bC(i, a, t ? e : void 0) : _C(a) } catch (a) { - return TS && NS.exception(a, "Failed to serialize response body"), KE(i, n, void 0) + return rI && sI.exception(a, "Failed to serialize response body"), bC(i, n, void 0) } }(o, { networkCaptureBodies: t, @@ -53211,7 +55552,7 @@ captureDetails: e, headers: a }); - if (s) return qE(l, s); + if (s) return vC(l, s); return l }(d, n, t.response, u); return { @@ -53223,30 +55564,30 @@ request: p, response: h } - }(e, t, n), i = WE("resource.fetch", r); - UE(n.replay, i) + }(e, t, n), i = yC("resource.fetch", r); + hC(n.replay, i) } catch (r) { - TS && NS.exception(r, "Failed to capture fetch breadcrumb") + rI && sI.exception(r, "Failed to capture fetch breadcrumb") } } - function JE(e = []) { + function EC(e = []) { if (2 === e.length && "object" === typeof e[1]) return e[1].body } - function eO(e, t) { + function OC(e, t) { const n = {}; return t.forEach((t => { e.get(t) && (n[t] = e.get(t)) })), n } - function tO(e, t) { + function IC(e, t) { if (!e) return {}; const n = e.headers; - return n ? n instanceof Headers ? eO(n, t) : Array.isArray(n) ? {} : YE(n, t) : {} + return n ? n instanceof Headers ? OC(n, t) : Array.isArray(n) ? {} : xC(n, t) : {} } - async function nO(e, t, n) { + async function CC(e, t, n) { try { const r = function(e, t, n) { const r = Date.now(), @@ -53264,20 +55605,20 @@ response_body_size: p } = e.data; if (!l) return null; - if (!s || !ZE(l, n.networkDetailAllowUrls) || ZE(l, n.networkDetailDenyUrls)) { + if (!s || !kC(l, n.networkDetailAllowUrls) || kC(l, n.networkDetailDenyUrls)) { return { startTimestamp: i, endTimestamp: a, url: l, method: c, statusCode: u, - request: HE(d), - response: HE(p) + request: _C(d), + response: _C(p) } } - const h = s[Px], - f = h ? YE(h.request_headers, n.networkRequestHeaders) : {}, - m = YE(function(e) { + const h = s[nS], + f = h ? xC(h.request_headers, n.networkRequestHeaders) : {}, + m = xC(function(e) { const t = e.getAllResponseHeaders(); if (!t) return {}; return t.split("\r\n").reduce(((e, t) => { @@ -53285,7 +55626,7 @@ return r && (e[n.toLowerCase()] = r), e }), {}) }(s), n.networkResponseHeaders), - [g, v] = n.networkCaptureBodies ? $E(o) : [void 0], + [g, v] = n.networkCaptureBodies ? gC(o) : [void 0], [y, _] = n.networkCaptureBodies ? function(e) { const t = []; try { @@ -53301,53 +55642,53 @@ if ("json" === t && e && "object" === typeof e) return [JSON.stringify(e)]; if (!e) return [void 0] } catch (n) { - return TS && NS.exception(n, "Failed to serialize body", e), [void 0, "BODY_PARSE_ERROR"] + return rI && sI.exception(n, "Failed to serialize body", e), [void 0, "BODY_PARSE_ERROR"] } - return TS && NS.info("Skipping network body because of body type", e), [void 0, "UNPARSEABLE_BODY_TYPE"] + return rI && sI.info("Skipping network body because of body type", e), [void 0, "UNPARSEABLE_BODY_TYPE"] }(e.response, e.responseType) } catch (n) { t.push(n) } - return TS && NS.warn("Failed to get xhr response body", ...t), [void 0] + return rI && sI.warn("Failed to get xhr response body", ...t), [void 0] }(s) : [void 0], - b = KE(f, d, g), - x = KE(m, p, y); + b = bC(f, d, g), + x = bC(m, p, y); return { startTimestamp: i, endTimestamp: a, url: l, method: c, statusCode: u, - request: v ? qE(b, v) : b, - response: _ ? qE(x, _) : x + request: v ? vC(b, v) : b, + response: _ ? vC(x, _) : x } }(e, t, n), - i = WE("resource.xhr", r); - UE(n.replay, i) + i = yC("resource.xhr", r); + hC(n.replay, i) } catch (r) { - TS && NS.exception(r, "Failed to capture xhr breadcrumb") + rI && sI.exception(r, "Failed to capture xhr breadcrumb") } } - function rO(e, t) { + function AC(e, t) { const { xhr: n, input: r } = t; if (!n) return; - const i = BE(r), - a = n.getResponseHeader("content-length") ? GE(n.getResponseHeader("content-length")) : function(e, t) { + const i = fC(r), + a = n.getResponseHeader("content-length") ? mC(n.getResponseHeader("content-length")) : function(e, t) { try { - return BE("json" === t && e && "object" === typeof e ? JSON.stringify(e) : e) - } catch (n) { + return fC("json" === t && e && "object" === typeof e ? JSON.stringify(e) : e) + } catch (Cs) { return } }(n.response, n.responseType); void 0 !== i && (e.data.request_body_size = i), void 0 !== a && (e.data.response_body_size = a) } - function iO(e) { - const t = Xv(); + function PC(e) { + const t = Sb(); try { const { networkDetailAllowUrls: n, @@ -53370,7 +55711,7 @@ return "xhr" === e.category })(t) && function(e) { return e && e.xhr - }(n) && (rO(t, n), nO(t, n, e)), + }(n) && (AC(t, n), CC(t, n, e)), function(e) { return "fetch" === e.category }(t) && function(e) { @@ -53379,22 +55720,22 @@ const { input: n, response: r - } = t, i = BE(n ? JE(n) : void 0), a = r ? GE(r.headers.get("content-length")) : void 0; + } = t, i = fC(n ? EC(n) : void 0), a = r ? mC(r.headers.get("content-length")) : void 0; void 0 !== i && (e.data.request_body_size = i), void 0 !== a && (e.data.response_body_size = a) - }(t, n), XE(t, n, e)) + }(t, n), SC(t, n, e)) } catch (r) { - TS && NS.exception(r, "Error when enriching network breadcrumb") + rI && sI.exception(r, "Error when enriching network breadcrumb") } }(s, e, t))) - } catch (n) {} + } catch (Cs) {} } - function aO(e) { - const t = Xv(); - fk(JS(e)), Kb(VE(e)), jE(e), iO(e); - const n = FE(e); + function TC(e) { + const t = Sb(); + VS(EI(e)), bk(pC(e)), lC(e), PC(e); + const n = uC(e); var r; - r = n, Qv().addEventProcessor(r), t && (t.on("beforeSendEvent", NE(e)), t.on("afterSendEvent", LE(e)), t.on("createDsc", (t => { + r = n, wb().addEventProcessor(r), t && (t.on("beforeSendEvent", sC(e)), t.on("afterSendEvent", oC(e)), t.on("createDsc", (t => { const n = e.getSessionId(); if (n && e.isEnabled() && "session" === e.recordingMode) { e.checkAndHandleExpiredSession() && (t.replay_id = n) @@ -53409,7 +55750,7 @@ }))) } - function oO(e) { + function RC(e) { const { jsHeapSizeLimit: t, totalJSHeapSize: n, @@ -53430,62 +55771,62 @@ } } - function sO(e) { + function DC(e) { let t = !1; return (n, r) => { - if (!e.checkAndHandleExpiredSession()) return void(TS && NS.warn("Received replay event after session expired.")); + if (!e.checkAndHandleExpiredSession()) return void(rI && sI.warn("Received replay event after session expired.")); const i = r || !t; - t = !0, e.clickDetector && KS(e.clickDetector, n), e.addUpdate((() => { - if ("buffer" === e.recordingMode && i && e.setInitialState(), !CE(e, n, i)) return !0; + t = !0, e.clickDetector && bI(e.clickDetector, n), e.addUpdate((() => { + if ("buffer" === e.recordingMode && i && e.setInitialState(), !eC(e, n, i)) return !0; if (!i) return !1; const t = e.session; if (function(e, t) { - if (!t || !e.session || 0 !== e.session.segmentId) return; - CE(e, function(e) { - const t = e.getOptions(); - return { - type: zw.Custom, - timestamp: Date.now(), - data: { - tag: "options", - payload: { - shouldRecordCanvas: e.isRecordingCanvas(), - sessionSampleRate: t.sessionSampleRate, - errorSampleRate: t.errorSampleRate, - useCompressionOption: t.useCompression, - blockAllMedia: t.blockAllMedia, - maskAllText: t.maskAllText, - maskAllInputs: t.maskAllInputs, - useCompression: !!e.eventBuffer && "worker" === e.eventBuffer.type, - networkDetailHasUrls: t.networkDetailAllowUrls.length > 0, - networkCaptureBodies: t.networkCaptureBodies, - networkRequestHasHeaders: t.networkRequestHeaders.length > 0, - networkResponseHasHeaders: t.networkResponseHeaders.length > 0 - } + if (!t || !e.session || 0 !== e.session.segmentId) return; + eC(e, function(e) { + const t = e.getOptions(); + return { + type: dO.Custom, + timestamp: Date.now(), + data: { + tag: "options", + payload: { + shouldRecordCanvas: e.isRecordingCanvas(), + sessionSampleRate: t.sessionSampleRate, + errorSampleRate: t.errorSampleRate, + useCompressionOption: t.useCompression, + blockAllMedia: t.blockAllMedia, + maskAllText: t.maskAllText, + maskAllInputs: t.maskAllInputs, + useCompression: !!e.eventBuffer && "worker" === e.eventBuffer.type, + networkDetailHasUrls: t.networkDetailAllowUrls.length > 0, + networkCaptureBodies: t.networkCaptureBodies, + networkRequestHasHeaders: t.networkRequestHeaders.length > 0, + networkResponseHasHeaders: t.networkResponseHeaders.length > 0 } } - }(e), !1) - }(e, i), t && t.previousSessionId) return !0; + } + }(e), !1) + }(e, i), t && t.previousSessionId) return !0; if ("buffer" === e.recordingMode && t && e.eventBuffer) { const n = e.eventBuffer.getEarliestTimestamp(); - n && (TS && NS.info(`Updating session start time to earliest event in buffer to ${new Date(n)}`), t.started = n, e.getOptions().stickySession && kE(t)) + n && (rI && sI.info(`Updating session start time to earliest event in buffer to ${new Date(n)}`), t.started = n, e.getOptions().stickySession && KI(t)) } return "session" === e.recordingMode && e.flush(), !0 })) } } - async function lO({ - recordingData: e, - replayId: t, - segmentId: n, - eventContext: r, - timestamp: i, - session: a - }) { + async function LC({ + recordingData: e, + replayId: t, + segmentId: n, + eventContext: r, + timestamp: i, + session: a + }) { const o = function({ - recordingData: e, - headers: t - }) { + recordingData: e, + headers: t + }) { let n; const r = `${JSON.stringify(t)}\n`; if ("string" === typeof e) n = `${r}${e}`; @@ -53506,11 +55847,11 @@ traceIds: c, initialTimestamp: u } = r, - d = Xv(), - p = Yv(), + d = Sb(), + p = xb(), h = d && d.getTransport(), f = d && d.getDsn(); - if (!d || !h || !f || !a.sampled) return lx({}); + if (!d || !h || !f || !a.sampled) return Lk({}); const m = { type: "replay_event", replay_start_timestamp: u / 1e3, @@ -53523,17 +55864,17 @@ replay_type: a.sampled }, g = await async function({ - client: e, - scope: t, - replayId: n, - event: r - }) { + client: e, + scope: t, + replayId: n, + event: r + }) { const i = { event_id: n, integrations: "object" !== typeof e._integrations || null === e._integrations || Array.isArray(e._integrations) ? void 0 : Object.keys(e._integrations) }; e.emit("preprocessEvent", r, i); - const a = await mx(e.getOptions(), r, i, t, e, Qv()); + const a = await Uk(e.getOptions(), r, i, t, e, wb()); if (!a) return null; a.platform = a.platform || "javascript"; const o = e.getSdkMetadata(), @@ -53552,10 +55893,10 @@ replayId: t, event: m }); - if (!g) return d.recordDroppedEvent("event_processor", "replay", m), TS && NS.info("An event processor returned `null`, will not send event."), lx({}); + if (!g) return d.recordDroppedEvent("event_processor", "replay", m), rI && sI.info("An event processor returned `null`, will not send event."), Lk({}); delete g.sdkProcessingMetadata; const v = function(e, t, n, r) { - return Yy(a_(e, i_(e), r, n), [ + return xx(Tx(e, Px(e), r, n), [ [{ type: "replay_event" }, e], @@ -53568,29 +55909,29 @@ let y; try { y = await h.send(v) - } catch (sF) { - const t = new Error(_k); + } catch (MV) { + const t = new Error(qS); try { - t.cause = sF + t.cause = MV } catch (b) {} throw t } - if ("number" === typeof y.statusCode && (y.statusCode < 200 || y.statusCode >= 300)) throw new cO(y.statusCode); - const _ = ik({}, y); - if (rk(_, "replay")) throw new uO(_); + if ("number" === typeof y.statusCode && (y.statusCode < 200 || y.statusCode >= 300)) throw new NC(y.statusCode); + const _ = PS({}, y); + if (AS(_, "replay")) throw new jC(_); return y } - class cO extends Error { + class NC extends Error { constructor(e) { super(`Transport returned status code ${e}`) } } - class uO extends Error { + class jC extends Error { constructor(e) { super("Rate limit hit"), this.rateLimits = e } } - async function dO(e, t = { + async function MC(e, t = { count: 0, interval: 5e3 }) { @@ -53600,22 +55941,22 @@ } = e; var i, a; if (n.length) try { - return await lO(e), !0 - } catch (sF) { - if (sF instanceof cO || sF instanceof uO) throw sF; + return await LC(e), !0 + } catch (MV) { + if (MV instanceof NC || MV instanceof jC) throw MV; if (i = "Replays", a = { - _retryCount: t.count - }, Qv().setContext(i, a), r && r(sF), t.count >= 3) { - const e = new Error(`${_k} - max retries exceeded`); + _retryCount: t.count + }, wb().setContext(i, a), r && r(MV), t.count >= 3) { + const e = new Error(`${qS} - max retries exceeded`); try { - e.cause = sF + e.cause = MV } catch (o) {} throw e } return t.interval *= ++t.count, new Promise(((r, i) => { - uk((async () => { + jS((async () => { try { - await dO(e, t), r(!0) + await MC(e, t), r(!0) } catch (n) { i(n) } @@ -53623,33 +55964,33 @@ })) } } - const pO = "__THROTTLED"; + const FC = "__THROTTLED"; - function hO(e, t, n) { + function zC(e, t, n) { const r = new Map; let i = !1; return (...a) => { const o = Math.floor(Date.now() / 1e3); if ((e => { - const t = e - n; - r.forEach(((e, n) => { - n < t && r.delete(n) - })) - })(o), [...r.values()].reduce(((e, t) => e + t), 0) >= t) { + const t = e - n; + r.forEach(((e, n) => { + n < t && r.delete(n) + })) + })(o), [...r.values()].reduce(((e, t) => e + t), 0) >= t) { const e = i; - return i = !0, e ? "__SKIPPED" : pO + return i = !0, e ? "__SKIPPED" : FC } i = !1; const s = r.get(o) || 0; return r.set(o, s + 1), e(...a) } } - class fO { + class VC { constructor({ - options: e, - recordingOptions: t - }) { - fO.prototype.__init.call(this), fO.prototype.__init2.call(this), fO.prototype.__init3.call(this), fO.prototype.__init4.call(this), fO.prototype.__init5.call(this), fO.prototype.__init6.call(this), this.eventBuffer = null, this.performanceEntries = [], this.replayPerformanceEntries = [], this.recordingMode = "session", this.timeouts = { + options: e, + recordingOptions: t + }) { + VC.prototype.__init.call(this), VC.prototype.__init2.call(this), VC.prototype.__init3.call(this), VC.prototype.__init4.call(this), VC.prototype.__init5.call(this), VC.prototype.__init6.call(this), this.eventBuffer = null, this.performanceEntries = [], this.replayPerformanceEntries = [], this.recordingMode = "session", this.timeouts = { sessionIdlePause: 3e5, sessionIdleExpire: 9e5 }, this._lastActivity = Date.now(), this._isEnabled = !1, this._isPaused = !1, this._requiresManualStart = !1, this._hasInitializedCoreListeners = !1, this._context = { @@ -53671,15 +56012,15 @@ } function c() { - return i && clearTimeout(i), i = uk(s, t), o && void 0 === a && (a = uk(s, o)), r + return i && clearTimeout(i), i = jS(s, t), o && void 0 === a && (a = jS(s, o)), r } return c.cancel = l, c.flush = function() { return void 0 !== i || void 0 !== a ? s() : r }, c }((() => this._flush()), this._options.flushMinDelay, { maxWait: this._options.flushMaxDelay - }), this._throttledAddEvent = hO(((e, t) => function(e, t, n) { - return PE(e, t) ? AE(e, t, n) : Promise.resolve(null) + }), this._throttledAddEvent = zC(((e, t) => function(e, t, n) { + return nC(e, t) ? tC(e, t, n) : Promise.resolve(null) }(this, e, t)), 300, 5); const { slowClickTimeout: n, @@ -53690,9 +56031,9 @@ scrollTimeout: 300, ignoreSelector: r ? r.join(",") : "" } : void 0; - if (i && (this.clickDetector = new qS(this, i)), TS) { + if (i && (this.clickDetector = new vI(this, i)), rI) { const t = e._experiments; - NS.setConfig({ + sI.setConfig({ captureExceptions: !!t.captureExceptions, traceInternals: !!t.traceInternals }) @@ -53714,20 +56055,20 @@ return this._options } handleException(e) { - TS && NS.exception(e), this._options.onError && this._options.onError(e) + rI && sI.exception(e), this._options.onError && this._options.onError(e) } initializeSampling(e) { const { errorSampleRate: t, sessionSampleRate: n } = this._options, r = t <= 0 && n <= 0; - this._requiresManualStart = r, r || (this._initializeSessionForSampling(e), this.session ? !1 !== this.session.sampled && (this.recordingMode = "buffer" === this.session.sampled && 0 === this.session.segmentId ? "buffer" : "session", TS && NS.infoTick(`Starting replay in ${this.recordingMode} mode`), this._initializeRecording()) : TS && NS.exception(new Error("Unable to initialize and create session"))) + this._requiresManualStart = r, r || (this._initializeSessionForSampling(e), this.session ? !1 !== this.session.sampled && (this.recordingMode = "buffer" === this.session.sampled && 0 === this.session.segmentId ? "buffer" : "session", rI && sI.infoTick(`Starting replay in ${this.recordingMode} mode`), this._initializeRecording()) : rI && sI.exception(new Error("Unable to initialize and create session"))) } start() { - if (this._isEnabled && "session" === this.recordingMode) return void(TS && NS.info("Recording is already in progress")); - if (this._isEnabled && "buffer" === this.recordingMode) return void(TS && NS.info("Buffering is in progress, call `flush()` to save the replay")); - TS && NS.infoTick("Starting replay in session mode"), this._updateUserActivity(); - const e = IE({ + if (this._isEnabled && "session" === this.recordingMode) return void(rI && sI.info("Recording is already in progress")); + if (this._isEnabled && "buffer" === this.recordingMode) return void(rI && sI.info("Buffering is in progress, call `flush()` to save the replay")); + rI && sI.infoTick("Starting replay in session mode"), this._updateUserActivity(); + const e = JI({ maxReplayDuration: this._options.maxReplayDuration, sessionIdleExpire: this.timeouts.sessionIdleExpire }, { @@ -53738,9 +56079,9 @@ this.session = e, this._initializeRecording() } startBuffering() { - if (this._isEnabled) return void(TS && NS.info("Buffering is in progress, call `flush()` to save the replay")); - TS && NS.infoTick("Starting replay in buffer mode"); - const e = IE({ + if (this._isEnabled) return void(rI && sI.info("Buffering is in progress, call `flush()` to save the replay")); + rI && sI.infoTick("Starting replay in buffer mode"); + const e = JI({ sessionIdleExpire: this.timeouts.sessionIdleExpire, maxReplayDuration: this._options.maxReplayDuration }, { @@ -53753,14 +56094,14 @@ startRecording() { try { const e = this._canvas; - this._stopRecording = PS({ + this._stopRecording = nI({ ...this._recordingOptions, ..."buffer" === this.recordingMode ? { checkoutEveryNms: 6e4 } : this._options._experiments.continuousCheckout && { checkoutEveryNms: Math.max(36e4, this._options._experiments.continuousCheckout) }, - emit: sO(this), + emit: DC(this), onMutation: this._onMutationHandler, ...e ? { recordCanvas: e.recordCanvas, @@ -53769,44 +56110,44 @@ dataURLOptions: e.dataURLOptions } : {} }) - } catch (sF) { - this.handleException(sF) + } catch (MV) { + this.handleException(MV) } } stopRecording() { try { return this._stopRecording && (this._stopRecording(), this._stopRecording = void 0), !0 - } catch (sF) { - return this.handleException(sF), !1 + } catch (MV) { + return this.handleException(MV), !1 } } async stop({ - forceFlush: e = !1, - reason: t - } = {}) { + forceFlush: e = !1, + reason: t + } = {}) { if (this._isEnabled) { this._isEnabled = !1; try { - TS && NS.info("Stopping Replay" + (t ? ` triggered by ${t}` : "")), this._removeListeners(), this.stopRecording(), this._debouncedFlush.cancel(), e && await this._flush({ + rI && sI.info("Stopping Replay" + (t ? ` triggered by ${t}` : "")), this._removeListeners(), this.stopRecording(), this._debouncedFlush.cancel(), e && await this._flush({ force: !0 - }), this.eventBuffer && this.eventBuffer.destroy(), this.eventBuffer = null, _E(this) - } catch (sF) { - this.handleException(sF) + }), this.eventBuffer && this.eventBuffer.destroy(), this.eventBuffer = null, qI(this) + } catch (MV) { + this.handleException(MV) } } } pause() { - this._isPaused || (this._isPaused = !0, this.stopRecording(), TS && NS.info("Pausing replay")) + this._isPaused || (this._isPaused = !0, this.stopRecording(), rI && sI.info("Pausing replay")) } resume() { - this._isPaused && this._checkSession() && (this._isPaused = !1, this.startRecording(), TS && NS.info("Resuming replay")) + this._isPaused && this._checkSession() && (this._isPaused = !1, this.startRecording(), rI && sI.info("Resuming replay")) } async sendBufferedReplayOrFlush({ - continueRecording: e = !0 - } = {}) { + continueRecording: e = !0 + } = {}) { if ("session" === this.recordingMode) return this.flushImmediate(); const t = Date.now(); - TS && NS.info("Converting buffer to session"), await this.flushImmediate(); + rI && sI.info("Converting buffer to session"), await this.flushImmediate(); const n = this.stopRecording(); e && n && "session" !== this.recordingMode && (this.recordingMode = "session", this.session && (this._updateUserActivity(t), this._updateSessionActivity(t), this._maybeSaveSession()), this.startRecording()) } @@ -53840,21 +56181,21 @@ return this.session && this.session.id } checkAndHandleExpiredSession() { - if (!(this._lastActivity && SE(this._lastActivity, this.timeouts.sessionIdlePause) && this.session && "session" === this.session.sampled)) return !!this._checkSession(); + if (!(this._lastActivity && QI(this._lastActivity, this.timeouts.sessionIdlePause) && this.session && "session" === this.session.sampled)) return !!this._checkSession(); this.pause() } setInitialState() { - const e = `${vk.location.pathname}${vk.location.hash}${vk.location.search}`, - t = `${vk.location.origin}${e}`; + const e = `${GS.location.pathname}${GS.location.hash}${GS.location.search}`, + t = `${GS.location.origin}${e}`; this.performanceEntries = [], this.replayPerformanceEntries = [], this._clearContext(), this._context.initialUrl = t, this._context.initialTimestamp = Date.now(), this._context.urls.push(t) } throttledAddEvent(e, t) { const n = this._throttledAddEvent(e, t); - if (n === pO) { - const e = YS({ + if (n === FC) { + const e = xI({ category: "replay.throttled" }); - this.addUpdate((() => !CE(this, { + this.addUpdate((() => !eC(this, { type: 5, timestamp: e.timestamp || 0, data: { @@ -53867,20 +56208,20 @@ return n } getCurrentRoute() { - const e = this.lastActiveSpan || wy(), - t = e && ky(e), - n = (t && my(t).data || {})[ty]; - if (t && n && ["route", "custom"].includes(n)) return my(t).description + const e = this.lastActiveSpan || Yb(), + t = e && Kb(e), + n = (t && Ub(t).data || {})[Ib]; + if (t && n && ["route", "custom"].includes(n)) return Ub(t).description } _initializeRecording() { - this.setInitialState(), this._updateSessionActivity(), this.eventBuffer = vE({ + this.setInitialState(), this._updateSessionActivity(), this.eventBuffer = GI({ useCompression: this._options.useCompression, workerUrl: this._options.workerUrl }), this._removeListeners(), this._addListeners(), this._isEnabled = !0, this._isPaused = !1, this.startRecording() } _initializeSessionForSampling(e) { const t = this._options.errorSampleRate > 0, - n = IE({ + n = JI({ sessionIdleExpire: this.timeouts.sessionIdleExpire, maxReplayDuration: this._options.maxReplayDuration, previousSessionId: e @@ -53894,7 +56235,7 @@ _checkSession() { if (!this.session) return !1; const e = this.session; - return !OE(e, { + return !XI(e, { sessionIdleExpire: this.timeouts.sessionIdleExpire, maxReplayDuration: this._options.maxReplayDuration }) || (this._refreshSession(e), !1) @@ -53906,9 +56247,9 @@ } _addListeners() { try { - vk.document.addEventListener("visibilitychange", this._handleVisibilityChange), vk.addEventListener("blur", this._handleWindowBlur), vk.addEventListener("focus", this._handleWindowFocus), vk.addEventListener("keydown", this._handleKeyboardEvent), this.clickDetector && this.clickDetector.addListeners(), this._hasInitializedCoreListeners || (aO(this), this._hasInitializedCoreListeners = !0) - } catch (sF) { - this.handleException(sF) + GS.document.addEventListener("visibilitychange", this._handleVisibilityChange), GS.addEventListener("blur", this._handleWindowBlur), GS.addEventListener("focus", this._handleWindowFocus), GS.addEventListener("keydown", this._handleKeyboardEvent), this.clickDetector && this.clickDetector.addListeners(), this._hasInitializedCoreListeners || (TC(this), this._hasInitializedCoreListeners = !0) + } catch (MV) { + this.handleException(MV) } this._performanceCleanupCallback = function(e) { function t(t) { @@ -53916,33 +56257,33 @@ } function n({ - entries: e - }) { + entries: e + }) { e.forEach(t) } const r = []; return ["navigation", "paint", "resource"].forEach((e => { - r.push(hb(e, n)) - })), r.push(ub(rE(oE, e)), cb(rE(lE, e)), db(rE(cE, e)), pb(rE(uE, e))), () => { + r.push(zw(e, n)) + })), r.push(jw(AI(RI, e)), Nw(AI(LI, e)), Mw(AI(NI, e)), Fw(AI(jI, e))), () => { r.forEach((e => e())) } }(this) } _removeListeners() { try { - vk.document.removeEventListener("visibilitychange", this._handleVisibilityChange), vk.removeEventListener("blur", this._handleWindowBlur), vk.removeEventListener("focus", this._handleWindowFocus), vk.removeEventListener("keydown", this._handleKeyboardEvent), this.clickDetector && this.clickDetector.removeListeners(), this._performanceCleanupCallback && this._performanceCleanupCallback() - } catch (sF) { - this.handleException(sF) + GS.document.removeEventListener("visibilitychange", this._handleVisibilityChange), GS.removeEventListener("blur", this._handleWindowBlur), GS.removeEventListener("focus", this._handleWindowFocus), GS.removeEventListener("keydown", this._handleKeyboardEvent), this.clickDetector && this.clickDetector.removeListeners(), this._performanceCleanupCallback && this._performanceCleanupCallback() + } catch (MV) { + this.handleException(MV) } } __init() { this._handleVisibilityChange = () => { - "visible" === vk.document.visibilityState ? this._doChangeToForegroundTasks() : this._doChangeToBackgroundTasks() + "visible" === GS.document.visibilityState ? this._doChangeToForegroundTasks() : this._doChangeToBackgroundTasks() } } __init2() { this._handleWindowBlur = () => { - const e = YS({ + const e = xI({ category: "ui.blur" }); this._doChangeToBackgroundTasks(e) @@ -53950,7 +56291,7 @@ } __init3() { this._handleWindowFocus = () => { - const e = YS({ + const e = xI({ category: "ui.focus" }); this._doChangeToForegroundTasks(e) @@ -53958,19 +56299,19 @@ } __init4() { this._handleKeyboardEvent = e => { - tE(this, e) + II(this, e) } } _doChangeToBackgroundTasks(e) { if (!this.session) return; - EE(this.session, { + ZI(this.session, { maxReplayDuration: this._options.maxReplayDuration, sessionIdleExpire: this.timeouts.sessionIdleExpire }) || (e && this._createCustomBreadcrumb(e), this.conditionalFlush()) } _doChangeToForegroundTasks(e) { if (!this.session) return; - this.checkAndHandleExpiredSession() ? e && this._createCustomBreadcrumb(e) : TS && NS.info("Document has become active, but session has expired") + this.checkAndHandleExpiredSession() ? e && this._createCustomBreadcrumb(e) : rI && sI.info("Document has become active, but session has expired") } _updateUserActivity(e = Date.now()) { this._lastActivity = e @@ -53981,7 +56322,7 @@ _createCustomBreadcrumb(e) { this.addUpdate((() => { this.throttledAddEvent({ - type: zw.Custom, + type: dO.Custom, timestamp: e.timestamp || 0, data: { tag: "breadcrumb", @@ -53991,9 +56332,9 @@ })) } _addPerformanceEntries() { - const e = (t = this.performanceEntries, t.map(iE).filter(Boolean)).concat(this.replayPerformanceEntries); + const e = (t = this.performanceEntries, t.map(PI).filter(Boolean)).concat(this.replayPerformanceEntries); var t; - return this.performanceEntries = [], this.replayPerformanceEntries = [], Promise.all(zE(this, e)) + return this.performanceEntries = [], this.replayPerformanceEntries = [], Promise.all(dC(this, e)) } _clearContext() { this._context.errorIds.clear(), this._context.traceIds.clear(), this._context.urls = [] @@ -54022,12 +56363,12 @@ const e = this.getSessionId(); if (this.session && this.eventBuffer && e) { if (await this._addPerformanceEntries(), this.eventBuffer && this.eventBuffer.hasEvents && (await async function(e) { - try { - return Promise.all(zE(e, [oO(vk.performance.memory)])) - } catch (t) { - return [] - } - }(this), this.eventBuffer && e === this.getSessionId())) try { + try { + return Promise.all(dC(e, [RC(GS.performance.memory)])) + } catch (t) { + return [] + } + }(this), this.eventBuffer && e === this.getSessionId())) try { this._updateInitialTimestampFromEventBuffer(); const t = Date.now(); if (t - this._context.initialTimestamp > this._options.maxReplayDuration + 3e4) throw new Error("Session is too long, not sending replay"); @@ -54035,7 +56376,7 @@ r = this.session.segmentId++; this._maybeSaveSession(); const i = await this.eventBuffer.finish(); - await dO({ + await MC({ replayId: e, recordingData: i, segmentId: r, @@ -54044,46 +56385,46 @@ timestamp: t, onError: e => this.handleException(e) }) - } catch (sF) { - this.handleException(sF), this.stop({ + } catch (MV) { + this.handleException(MV), this.stop({ reason: "sendReplay" }); - const t = Xv(); + const t = Sb(); if (t) { - const n = sF instanceof uO ? "ratelimit_backoff" : "send_error"; + const n = MV instanceof jC ? "ratelimit_backoff" : "send_error"; t.recordDroppedEvent(n, "replay") } } - } else TS && NS.error("No session or eventBuffer found to flush.") + } else rI && sI.error("No session or eventBuffer found to flush.") } __init5() { this._flush = async ({ - force: e = !1 - } = {}) => { + force: e = !1 + } = {}) => { if (!this._isEnabled && !e) return; - if (!this.checkAndHandleExpiredSession()) return void(TS && NS.error("Attempting to finish replay event after session expired.")); + if (!this.checkAndHandleExpiredSession()) return void(rI && sI.error("Attempting to finish replay event after session expired.")); if (!this.session) return; const t = this.session.started, n = Date.now() - t; this._debouncedFlush.cancel(); const r = n < this._options.minReplayDuration, i = n > this._options.maxReplayDuration + 5e3; - if (r || i) return TS && NS.info(`Session duration (${Math.floor(n/1e3)}s) is too ${r?"short":"long"}, not sending replay.`), void(r && this._debouncedFlush()); + if (r || i) return rI && sI.info(`Session duration (${Math.floor(n/1e3)}s) is too ${r?"short":"long"}, not sending replay.`), void(r && this._debouncedFlush()); const a = this.eventBuffer; - a && 0 === this.session.segmentId && !a.hasCheckout && TS && NS.info("Flushing initial segment without checkout."); + a && 0 === this.session.segmentId && !a.hasCheckout && rI && sI.info("Flushing initial segment without checkout."); const o = !!this._flushLock; this._flushLock || (this._flushLock = this._runFlush()); try { await this._flushLock - } catch (sF) { - this.handleException(sF) + } catch (MV) { + this.handleException(MV) } finally { this._flushLock = void 0, o && this._debouncedFlush() } } } _maybeSaveSession() { - this.session && this._options.stickySession && kE(this.session) + this.session && this._options.stickySession && KI(this.session) } __init6() { this._onMutationHandler = e => { @@ -54091,7 +56432,7 @@ n = this._options.mutationLimit, r = n && t > n; if (t > this._options.mutationBreadcrumbLimit || r) { - const e = YS({ + const e = xI({ category: "replay.mutations", data: { count: t, @@ -54108,138 +56449,138 @@ } } - function mO(e, t) { + function UC(e, t) { return [...e, ...t].join(",") } - const gO = 'img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]', - vO = ["content-length", "content-type", "accept"]; - let yO = !1; - class _O { + const BC = 'img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]', + GC = ["content-length", "content-type", "accept"]; + let $C = !1; + class qC { static __initStatic() { this.id = "Replay" } constructor({ - flushMinDelay: e = 5e3, - flushMaxDelay: t = 5500, - minReplayDuration: n = 4999, - maxReplayDuration: r = 36e5, - stickySession: i = !0, - useCompression: a = !0, - workerUrl: o, - _experiments: s = {}, - maskAllText: l = !0, - maskAllInputs: c = !0, - blockAllMedia: u = !0, - mutationBreadcrumbLimit: d = 750, - mutationLimit: p = 1e4, - slowClickTimeout: h = 7e3, - slowClickIgnoreSelectors: f = [], - networkDetailAllowUrls: m = [], - networkDetailDenyUrls: g = [], - networkCaptureBodies: v = !0, - networkRequestHeaders: y = [], - networkResponseHeaders: _ = [], - mask: b = [], - maskAttributes: x = ["title", "placeholder"], - unmask: k = [], - block: w = [], - unblock: S = [], - ignore: E = [], - maskFn: O, - beforeAddRecordingEvent: I, - beforeErrorSampling: C - } = {}) { - this.name = _O.id; + flushMinDelay: e = 5e3, + flushMaxDelay: t = 5500, + minReplayDuration: n = 4999, + maxReplayDuration: r = 36e5, + stickySession: i = !0, + useCompression: a = !0, + workerUrl: o, + _experiments: s = {}, + maskAllText: l = !0, + maskAllInputs: c = !0, + blockAllMedia: u = !0, + mutationBreadcrumbLimit: d = 750, + mutationLimit: p = 1e4, + slowClickTimeout: h = 7e3, + slowClickIgnoreSelectors: f = [], + networkDetailAllowUrls: m = [], + networkDetailDenyUrls: g = [], + networkCaptureBodies: v = !0, + networkRequestHeaders: y = [], + networkResponseHeaders: _ = [], + mask: b = [], + maskAttributes: x = ["title", "placeholder"], + unmask: w = [], + block: k = [], + unblock: S = [], + ignore: E = [], + maskFn: O, + beforeAddRecordingEvent: I, + beforeErrorSampling: C + } = {}) { + this.name = qC.id; const A = function({ - mask: e, - unmask: t, - block: n, - unblock: r, - ignore: i - }) { + mask: e, + unmask: t, + block: n, + unblock: r, + ignore: i + }) { return { - maskTextSelector: mO(e, [".sentry-mask", "[data-sentry-mask]"]), - unmaskTextSelector: mO(t, []), - blockSelector: mO(n, [".sentry-block", "[data-sentry-block]", 'base[href="/"]']), - unblockSelector: mO(r, []), - ignoreSelector: mO(i, [".sentry-ignore", "[data-sentry-ignore]", 'input[type="file"]']) + maskTextSelector: UC(e, [".sentry-mask", "[data-sentry-mask]"]), + unmaskTextSelector: UC(t, []), + blockSelector: UC(n, [".sentry-block", "[data-sentry-block]", 'base[href="/"]']), + unblockSelector: UC(r, []), + ignoreSelector: UC(i, [".sentry-ignore", "[data-sentry-ignore]", 'input[type="file"]']) } }({ mask: b, - unmask: k, - block: w, + unmask: w, + block: k, unblock: S, ignore: E }); if (this._recordingOptions = { - maskAllInputs: c, + maskAllInputs: c, + maskAllText: l, + maskInputOptions: { + password: !0 + }, + maskTextFn: O, + maskInputFn: O, + maskAttributeFn: (e, t, n) => function({ + el: e, + key: t, + maskAttributes: n, + maskAllText: r, + privacyOptions: i, + value: a + }) { + return r ? i.unmaskTextSelector && e.matches(i.unmaskTextSelector) ? a : n.includes(t) || "value" === t && "INPUT" === e.tagName && ["submit", "button"].includes(e.getAttribute("type") || "") ? a.replace(/[\S]/g, "*") : a : a + }({ + maskAttributes: x, maskAllText: l, - maskInputOptions: { - password: !0 - }, - maskTextFn: O, - maskInputFn: O, - maskAttributeFn: (e, t, n) => function({ - el: e, - key: t, - maskAttributes: n, - maskAllText: r, - privacyOptions: i, - value: a - }) { - return r ? i.unmaskTextSelector && e.matches(i.unmaskTextSelector) ? a : n.includes(t) || "value" === t && "INPUT" === e.tagName && ["submit", "button"].includes(e.getAttribute("type") || "") ? a.replace(/[\S]/g, "*") : a : a - }({ - maskAttributes: x, - maskAllText: l, - privacyOptions: A, - key: e, - value: t, - el: n - }), - ...A, - slimDOMOptions: "all", - inlineStylesheet: !0, - inlineImages: !1, - collectFonts: !0, - errorHandler: e => { - try { - e.__rrweb__ = !0 - } catch (t) {} - } - }, this._initialOptions = { - flushMinDelay: e, - flushMaxDelay: t, - minReplayDuration: Math.min(n, 15e3), - maxReplayDuration: Math.min(r, wk), - stickySession: i, - useCompression: a, - workerUrl: o, - blockAllMedia: u, - maskAllInputs: c, - maskAllText: l, - mutationBreadcrumbLimit: d, - mutationLimit: p, - slowClickTimeout: h, - slowClickIgnoreSelectors: f, - networkDetailAllowUrls: m, - networkDetailDenyUrls: g, - networkCaptureBodies: v, - networkRequestHeaders: bO(y), - networkResponseHeaders: bO(_), - beforeAddRecordingEvent: I, - beforeErrorSampling: C, - _experiments: s - }, this._initialOptions.blockAllMedia && (this._recordingOptions.blockSelector = this._recordingOptions.blockSelector ? `${this._recordingOptions.blockSelector},${gO}` : gO), this._isInitialized && ok()) throw new Error("Multiple Sentry Session Replay instances are not supported"); + privacyOptions: A, + key: e, + value: t, + el: n + }), + ...A, + slimDOMOptions: "all", + inlineStylesheet: !0, + inlineImages: !1, + collectFonts: !0, + errorHandler: e => { + try { + e.__rrweb__ = !0 + } catch (t) {} + } + }, this._initialOptions = { + flushMinDelay: e, + flushMaxDelay: t, + minReplayDuration: Math.min(n, 15e3), + maxReplayDuration: Math.min(r, YS), + stickySession: i, + useCompression: a, + workerUrl: o, + blockAllMedia: u, + maskAllInputs: c, + maskAllText: l, + mutationBreadcrumbLimit: d, + mutationLimit: p, + slowClickTimeout: h, + slowClickIgnoreSelectors: f, + networkDetailAllowUrls: m, + networkDetailDenyUrls: g, + networkCaptureBodies: v, + networkRequestHeaders: WC(y), + networkResponseHeaders: WC(_), + beforeAddRecordingEvent: I, + beforeErrorSampling: C, + _experiments: s + }, this._initialOptions.blockAllMedia && (this._recordingOptions.blockSelector = this._recordingOptions.blockSelector ? `${this._recordingOptions.blockSelector},${BC}` : BC), this._isInitialized && RS()) throw new Error("Multiple Sentry Session Replay instances are not supported"); this._isInitialized = !0 } get _isInitialized() { - return yO + return $C } set _isInitialized(e) { - yO = e + $C = e } afterAllSetup(e) { - ok() && !this._replay && (this._setup(e), this._initialize(e)) + RS() && !this._replay && (this._setup(e), this._initialize(e)) } start() { this._replay && this._replay.start() @@ -54267,18 +56608,18 @@ r = { sessionSampleRate: 0, errorSampleRate: 0, - ...dv(e) + ...M_(e) }, - i = Ty(n.replaysSessionSampleRate), - a = Ty(n.replaysOnErrorSampleRate); - null == i && null == a && Xg((() => { + i = rx(n.replaysSessionSampleRate), + a = rx(n.replaysOnErrorSampleRate); + null == i && null == a && S_((() => { console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.") })); null != i && (r.sessionSampleRate = i); null != a && (r.errorSampleRate = a); return r }(this._initialOptions, e); - this._replay = new fO({ + this._replay = new VC({ options: t, recordingOptions: this._recordingOptions }) @@ -54292,19 +56633,19 @@ } } - function bO(e) { - return [...vO, ...e.map((e => e.toLowerCase()))] + function WC(e) { + return [...GC, ...e.map((e => e.toLowerCase()))] } - _O.__initStatic(); - const xO = []; + qC.__initStatic(); + const HC = []; - function kO(e) { + function KC(e) { const t = e.defaultIntegrations || [], n = e.integrations; let r; t.forEach((e => { e.isDefaultInstance = !0 - })), r = Array.isArray(n) ? [...t, ...n] : "function" === typeof n ? Ev(n(t)) : t; + })), r = Array.isArray(n) ? [...t, ...n] : "function" === typeof n ? Z_(n(t)) : t; const i = function(e) { const t = {}; return e.forEach((e => { @@ -54322,14 +56663,14 @@ return i } - function wO(e, t) { + function YC(e, t) { for (const n of t) n && n.afterAllSetup && n.afterAllSetup(e) } - function SO(e, t, n) { - if (n[t.name]) Py && Jg.log(`Integration skipped because it was already installed: ${t.name}`); + function QC(e, t, n) { + if (n[t.name]) nx && E_.log(`Integration skipped because it was already installed: ${t.name}`); else { - if (n[t.name] = t, -1 === xO.indexOf(t.name) && "function" === typeof t.setupOnce && (t.setupOnce(), xO.push(t.name)), t.setup && "function" === typeof t.setup && t.setup(e), "function" === typeof t.preprocessEvent) { + if (n[t.name] = t, -1 === HC.indexOf(t.name) && "function" === typeof t.setupOnce && (t.setupOnce(), HC.push(t.name)), t.setup && "function" === typeof t.setup && t.setup(e), "function" === typeof t.preprocessEvent) { const n = t.preprocessEvent.bind(t); e.on("preprocessEvent", ((t, r) => n(t, r, e))) } @@ -54340,39 +56681,39 @@ }); e.addEventProcessor(r) } - Py && Jg.log(`Integration installed: ${t.name}`) + nx && E_.log(`Integration installed: ${t.name}`) } } - function EO() { - const e = Qv().getScopeData(); - return hx(e, Yv().getScopeData()), e.eventProcessors = [], e + function ZC() { + const e = wb().getScopeData(); + return zk(e, xb().getScopeData()), e.eventProcessors = [], e } - var OO; + var XC; ! function(e) { e[e.Classic = 1] = "Classic", e[e.Protocol = 2] = "Protocol", e[e.Both = 3] = "Both" - }(OO || (OO = {})); - var IO; + }(XC || (XC = {})); + var JC; ! function(e) { e.RENDERER_START = "sentry-electron.renderer-start", e.EVENT = "sentry-electron.event", e.SCOPE = "sentry-electron.scope", e.ENVELOPE = "sentry-electron.envelope", e.STATUS = "sentry-electron.status", e.ADD_METRIC = "sentry-electron.add-metric" - }(IO || (IO = {})); + }(JC || (JC = {})); - function CO(e) { + function eA(e) { return `sentry-ipc://${e}/sentry_key` } - let AO; + let tA; - function PO() { - return AO || (AO = function() { + function nA() { + return tA || (tA = function() { if (window.__SENTRY_IPC__) return window.__SENTRY_IPC__; { - Jg.log("IPC was not configured in preload script, falling back to custom protocol and fetch"); + E_.log("IPC was not configured in preload script, falling back to custom protocol and fetch"); const e = { - "sentry-electron-renderer-id": window.__SENTRY_RENDERER_ID__ = _v() + "sentry-electron-renderer-id": window.__SENTRY_RENDERER_ID__ = q_() }; return { sendRendererStart: () => { - fetch(CO(IO.RENDERER_START), { + fetch(eA(JC.RENDERER_START), { method: "POST", body: "", headers: e @@ -54381,28 +56722,28 @@ })) }, sendScope: t => { - fetch(CO(IO.SCOPE), { + fetch(eA(JC.SCOPE), { method: "POST", body: t, headers: e }).catch((() => {})) }, sendEvent: t => { - fetch(CO(IO.EVENT), { + fetch(eA(JC.EVENT), { method: "POST", body: t, headers: e }).catch((() => {})) }, sendEnvelope: t => { - fetch(CO(IO.ENVELOPE), { + fetch(eA(JC.ENVELOPE), { method: "POST", body: t, headers: e }).catch((() => {})) }, sendStatus: t => { - fetch(CO(IO.STATUS), { + fetch(eA(JC.STATUS), { method: "POST", body: JSON.stringify({ status: t @@ -54411,7 +56752,7 @@ }).catch((() => {})) }, sendAddMetric: t => { - fetch(CO(IO.ADD_METRIC), { + fetch(eA(JC.ADD_METRIC), { method: "POST", body: JSON.stringify(t), headers: e @@ -54419,31 +56760,31 @@ } } } - }(), AO.sendRendererStart()), AO + }(), tA.sendRendererStart()), tA } - const TO = () => ({ + const rA = () => ({ name: "ScopeToMain", setup() { - const e = PO(); + const e = nA(); var t; t = (t, n) => { - e.sendScope(JSON.stringify(Wy(t, 20, 2e3))), n.clearBreadcrumbs(), n.clearAttachments() - }, Qv().addScopeListener((e => { - const n = EO(); + e.sendScope(JSON.stringify(yx(t, 20, 2e3))), n.clearBreadcrumbs(), n.clearAttachments() + }, wb().addScopeListener((e => { + const n = ZC(); t(n, e) - })), Yv().addScopeListener((e => { - const n = EO(); + })), xb().addScopeListener((e => { + const n = ZC(); t(n, e) })) } }); - class RO extends Error { + class iA extends Error { constructor(e, t = "warn") { super(e), this.message = e, this.name = new.target.prototype.constructor.name, Object.setPrototypeOf(this, new.target.prototype), this.logLevel = t } } - function DO(e) { + function aA(e) { const t = []; function n(e) { @@ -54452,19 +56793,19 @@ return { $: t, add: function(r) { - if (!(void 0 === e || t.length < e)) return cx(new RO("Not adding Promise because buffer limit was reached.")); + if (!(void 0 === e || t.length < e)) return Nk(new iA("Not adding Promise because buffer limit was reached.")); const i = r(); return -1 === t.indexOf(i) && t.push(i), i.then((() => n(i))).then(null, (() => n(i).then(null, (() => {})))), i }, drain: function(e) { - return new ux(((n, r) => { + return new jk(((n, r) => { let i = t.length; if (!i) return n(!0); const a = setTimeout((() => { e && e > 0 && n(!1) }), e); t.forEach((e => { - lx(e).then((() => { + Lk(e).then((() => { --i || (clearTimeout(a), n(!0)) }), r) })) @@ -54473,31 +56814,31 @@ } } - function LO(e, t, n = DO(e.bufferSize || 64)) { + function oA(e, t, n = aA(e.bufferSize || 64)) { let r = {}; return { send: function(i) { const a = []; - if (Zy(i, ((t, n) => { - const i = r_(n); - if (rk(r, i)) { - const r = NO(t, n); - e.recordDroppedEvent("ratelimit_backoff", i, r) - } else a.push(t) - })), 0 === a.length) return lx({}); - const o = Yy(i[0], a), + if (kx(i, ((t, n) => { + const i = Ax(n); + if (AS(r, i)) { + const r = sA(t, n); + e.recordDroppedEvent("ratelimit_backoff", i, r) + } else a.push(t) + })), 0 === a.length) return Lk({}); + const o = xx(i[0], a), s = t => { - Zy(o, ((n, r) => { - const i = NO(n, r); - e.recordDroppedEvent(t, r_(r), i) + kx(o, ((n, r) => { + const i = sA(n, r); + e.recordDroppedEvent(t, Ax(r), i) })) }; return n.add((() => t({ - body: Jy(o) - }).then((e => (void 0 !== e.statusCode && (e.statusCode < 200 || e.statusCode >= 300) && Py && Jg.warn(`Sentry responded with status code ${e.statusCode} to sent event.`), r = ik(r, e), e)), (e => { + body: Ex(o) + }).then((e => (void 0 !== e.statusCode && (e.statusCode < 200 || e.statusCode >= 300) && nx && E_.warn(`Sentry responded with status code ${e.statusCode} to sent event.`), r = PS(r, e), e)), (e => { throw s("network_error"), e })))).then((e => e), (e => { - if (e instanceof RO) return Py && Jg.error("Skipped sending event because buffer is full."), s("queue_overflow"), lx({}); + if (e instanceof iA) return nx && E_.error("Skipped sending event because buffer is full."), s("queue_overflow"), Lk({}); throw e })) }, @@ -54505,18 +56846,18 @@ } } - function NO(e, t) { + function sA(e, t) { if ("event" === t || "transaction" === t) return Array.isArray(e) ? e[1] : void 0 } - function jO(e) { - const t = PO(); - return LO(e, (async e => (t.sendEnvelope(e.body), { + function lA(e) { + const t = nA(); + return oA(e, (async e => (t.sendEnvelope(e.body), { statusCode: 200 }))) } - const MO = [/^Script error\.?$/, /^Javascript error: Script error\.? on line 0$/, /^ResizeObserver loop completed with undelivered notifications.$/, /^Cannot redefine property: googletag$/, "undefined is not an object (evaluating 'a.L')", 'can\'t redefine non-configurable property "solana"', "vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)", "Can't find variable: _AutofillCallbackHandler"], - FO = (e = {}) => ({ + const cA = [/^Script error\.?$/, /^Javascript error: Script error\.? on line 0$/, /^ResizeObserver loop completed with undelivered notifications.$/, /^Cannot redefine property: googletag$/, "undefined is not an object (evaluating 'a.L')", 'can\'t redefine non-configurable property "solana"', "vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)", "Can't find variable: _AutofillCallbackHandler"], + uA = (e = {}) => ({ name: "InboundFilters", processEvent(t, n, r) { const i = r.getOptions(), @@ -54524,57 +56865,57 @@ return { allowUrls: [...e.allowUrls || [], ...t.allowUrls || []], denyUrls: [...e.denyUrls || [], ...t.denyUrls || []], - ignoreErrors: [...e.ignoreErrors || [], ...t.ignoreErrors || [], ...e.disableErrorDefaults ? [] : MO], + ignoreErrors: [...e.ignoreErrors || [], ...t.ignoreErrors || [], ...e.disableErrorDefaults ? [] : cA], ignoreTransactions: [...e.ignoreTransactions || [], ...t.ignoreTransactions || []], ignoreInternal: void 0 === e.ignoreInternal || e.ignoreInternal } }(e, i); return function(e, t) { if (t.ignoreInternal && function(e) { + try { + return "SentryError" === e.exception.values[0].type + } catch (t) {} + return !1 + }(e)) return nx && E_.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${H_(e)}`), !0; + if (function(e, t) { + if (e.type || !t || !t.length) return !1; + return function(e) { + const t = []; + e.message && t.push(e.message); + let n; try { - return "SentryError" === e.exception.values[0].type - } catch (t) {} - return !1 - }(e)) return Py && Jg.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${xv(e)}`), !0; - if (function(e, t) { - if (e.type || !t || !t.length) return !1; - return function(e) { - const t = []; - e.message && t.push(e.message); - let n; - try { - n = e.exception.values[e.exception.values.length - 1] - } catch (r) {} - n && n.value && (t.push(n.value), n.type && t.push(`${n.type}: ${n.value}`)); - return t - }(e).some((e => rv(e, t))) - }(e, t.ignoreErrors)) return Py && Jg.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${xv(e)}`), !0; + n = e.exception.values[e.exception.values.length - 1] + } catch (r) {} + n && n.value && (t.push(n.value), n.type && t.push(`${n.type}: ${n.value}`)); + return t + }(e).some((e => A_(e, t))) + }(e, t.ignoreErrors)) return nx && E_.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${H_(e)}`), !0; if (function(e) { - if (e.type) return !1; - if (!e.exception || !e.exception.values || 0 === e.exception.values.length) return !1; - return !e.message && !e.exception.values.some((e => e.stacktrace || e.type && "Error" !== e.type || e.value)) - }(e)) return Py && Jg.warn(`Event dropped due to not having an error message, error type or stacktrace.\nEvent: ${xv(e)}`), !0; + if (e.type) return !1; + if (!e.exception || !e.exception.values || 0 === e.exception.values.length) return !1; + return !e.message && !e.exception.values.some((e => e.stacktrace || e.type && "Error" !== e.type || e.value)) + }(e)) return nx && E_.warn(`Event dropped due to not having an error message, error type or stacktrace.\nEvent: ${H_(e)}`), !0; if (function(e, t) { - if ("transaction" !== e.type || !t || !t.length) return !1; - const n = e.transaction; - return !!n && rv(n, t) - }(e, t.ignoreTransactions)) return Py && Jg.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${xv(e)}`), !0; + if ("transaction" !== e.type || !t || !t.length) return !1; + const n = e.transaction; + return !!n && A_(n, t) + }(e, t.ignoreTransactions)) return nx && E_.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${H_(e)}`), !0; if (function(e, t) { - if (!t || !t.length) return !1; - const n = zO(e); - return !!n && rv(n, t) - }(e, t.denyUrls)) return Py && Jg.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${xv(e)}.\nUrl: ${zO(e)}`), !0; + if (!t || !t.length) return !1; + const n = dA(e); + return !!n && A_(n, t) + }(e, t.denyUrls)) return nx && E_.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${H_(e)}.\nUrl: ${dA(e)}`), !0; if (! function(e, t) { - if (!t || !t.length) return !0; - const n = zO(e); - return !n || rv(n, t) - }(e, t.allowUrls)) return Py && Jg.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${xv(e)}.\nUrl: ${zO(e)}`), !0; + if (!t || !t.length) return !0; + const n = dA(e); + return !n || A_(n, t) + }(e, t.allowUrls)) return nx && E_.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${H_(e)}.\nUrl: ${dA(e)}`), !0; return !1 }(t, a) ? null : t } }); - function zO(e) { + function dA(e) { try { let n; try { @@ -54587,29 +56928,29 @@ } return null }(n) : null - } catch (_u) { - return Py && Jg.error(`Cannot extract url for event ${xv(e)}`), null + } catch (gc) { + return nx && E_.error(`Cannot extract url for event ${H_(e)}`), null } } - let VO; - const UO = new WeakMap, - BO = () => ({ + let pA; + const hA = new WeakMap, + fA = () => ({ name: "FunctionToString", setupOnce() { - VO = Function.prototype.toString; + pA = Function.prototype.toString; try { Function.prototype.toString = function(...e) { - const t = sv(this), - n = UO.has(Xv()) && void 0 !== t ? t : this; - return VO.apply(n, e) + const t = D_(this), + n = hA.has(Sb()) && void 0 !== t ? t : this; + return pA.apply(n, e) } } catch (e) {} }, setup(e) { - UO.set(e, !0) + hA.set(e, !0) } }), - GO = () => { + mA = () => { let e; return { name: "Dedupe", @@ -54617,37 +56958,37 @@ if (t.type) return t; try { if (function(e, t) { - if (!t) return !1; - if (function(e, t) { - const n = e.message, - r = t.message; - if (!n && !r) return !1; - if (n && !r || !n && r) return !1; - if (n !== r) return !1; - if (!qO(e, t)) return !1; - if (!$O(e, t)) return !1; - return !0 - }(e, t)) return !0; - if (function(e, t) { - const n = WO(t), - r = WO(e); - if (!n || !r) return !1; - if (n.type !== r.type || n.value !== r.value) return !1; - if (!qO(e, t)) return !1; - if (!$O(e, t)) return !1; - return !0 - }(e, t)) return !0; - return !1 - }(t, e)) return Py && Jg.warn("Event dropped due to being a duplicate of previously captured event."), null + if (!t) return !1; + if (function(e, t) { + const n = e.message, + r = t.message; + if (!n && !r) return !1; + if (n && !r || !n && r) return !1; + if (n !== r) return !1; + if (!vA(e, t)) return !1; + if (!gA(e, t)) return !1; + return !0 + }(e, t)) return !0; + if (function(e, t) { + const n = yA(t), + r = yA(e); + if (!n || !r) return !1; + if (n.type !== r.type || n.value !== r.value) return !1; + if (!vA(e, t)) return !1; + if (!gA(e, t)) return !1; + return !0 + }(e, t)) return !0; + return !1 + }(t, e)) return nx && E_.warn("Event dropped due to being a duplicate of previously captured event."), null } catch (n) {} return e = t } } }; - function $O(e, t) { - let n = qy(e), - r = qy(t); + function gA(e, t) { + let n = vx(e), + r = vx(t); if (!n && !r) return !0; if (n && !r || !n && r) return !1; if (r.length !== n.length) return !1; @@ -54659,7 +57000,7 @@ return !0 } - function qO(e, t) { + function vA(e, t) { let n = e.fingerprint, r = t.fingerprint; if (!n && !r) return !0; @@ -54671,28 +57012,28 @@ } } - function WO(e) { + function yA(e) { return e.exception && e.exception.values && e.exception.values[0] } - function HO(e, t) { - !0 === t.debug && (Py ? Jg.enable() : Xg((() => { + function _A(e, t) { + !0 === t.debug && (nx ? E_.enable() : S_((() => { console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.") }))); - Yv().update(t.initialScope); + xb().update(t.initialScope); const n = new e(t); return function(e) { - Yv().setClient(e) + xb().setClient(e) }(n), n.init(), n } - function KO(e) { + function bA(e) { const t = e.protocol ? `${e.protocol}:` : "", n = e.port ? `:${e.port}` : ""; return `${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/` } - function YO(e, t) { + function xA(e, t) { return n = { sentry_key: e.publicKey, sentry_version: "7", @@ -54703,14 +57044,14 @@ var n } - function QO(e, t, n) { - return t || `${function(e){return`${KO(e)}${e.projectId}/envelope/`}(e)}?${YO(e,n)}` + function wA(e, t, n) { + return t || `${function(e){return`${bA(e)}${e.projectId}/envelope/`}(e)}?${xA(e,n)}` } - const ZO = "Not capturing exception because it's already been captured."; - class XO { + const kA = "Not capturing exception because it's already been captured."; + class SA { constructor(e) { - if (this._options = e, this._integrations = {}, this._numProcessing = 0, this._outcomes = {}, this._hooks = {}, this._eventProcessors = [], e.dsn ? this._dsn = jy(e.dsn) : Py && Jg.warn("No DSN provided, client will not send events."), this._dsn) { - const t = QO(this._dsn, e.tunnel, e._metadata ? e._metadata.sdk : void 0); + if (this._options = e, this._integrations = {}, this._numProcessing = 0, this._outcomes = {}, this._hooks = {}, this._eventProcessors = [], e.dsn ? this._dsn = lx(e.dsn) : nx && E_.warn("No DSN provided, client will not send events."), this._dsn) { + const t = wA(this._dsn, e.tunnel, e._metadata ? e._metadata.sdk : void 0); this._transport = e.transport({ tunnel: this._options.tunnel, recordDroppedEvent: this.recordDroppedEvent.bind(this), @@ -54720,8 +57061,8 @@ } } captureException(e, t, n) { - const r = _v(); - if (Sv(e)) return Py && Jg.log(ZO), r; + const r = q_(); + if (Q_(e)) return nx && E_.log(kA), r; const i = { event_id: r, ...t @@ -54730,16 +57071,16 @@ } captureMessage(e, t, n, r) { const i = { - event_id: _v(), + event_id: q_(), ...n }, - a = Lg(e) ? e : String(e), - o = Ng(e) ? this.eventFromMessage(a, t, i) : this.eventFromException(e, i); + a = o_(e) ? e : String(e), + o = s_(e) ? this.eventFromMessage(a, t, i) : this.eventFromException(e, i); return this._process(o.then((e => this._captureEvent(e, i, r)))), i.event_id } captureEvent(e, t, n) { - const r = _v(); - if (t && t.originalException && Sv(t.originalException)) return Py && Jg.log(ZO), r; + const r = q_(); + if (t && t.originalException && Q_(t.originalException)) return nx && E_.log(kA), r; const i = { event_id: r, ...t @@ -54748,7 +57089,7 @@ return this._process(this._captureEvent(e, i, a || n)), i.event_id } captureSession(e) { - "string" !== typeof e.release ? Py && Jg.warn("Discarded session because of missing or non-string release") : (this.sendSession(e), Mv(e, { + "string" !== typeof e.release ? nx && E_.warn("Discarded session because of missing or non-string release") : (this.sendSession(e), cb(e, { init: !1 })) } @@ -54766,7 +57107,7 @@ } flush(e) { const t = this._transport; - return t ? (this.emit("flush"), this._isClientDoneProcessing(e).then((n => t.flush(e).then((e => n && e))))) : lx(!0) + return t ? (this.emit("flush"), this._isClientDoneProcessing(e).then((n => t.flush(e).then((e => n && e))))) : Lk(!0) } close(e) { return this.flush(e).then((e => (this.getOptions().enabled = !1, this.emit("close"), e))) @@ -54779,45 +57120,45 @@ } init() { (this._isEnabled() || this._options.integrations.some((({ - name: e - }) => e.startsWith("Spotlight")))) && this._setupIntegrations() + name: e + }) => e.startsWith("Spotlight")))) && this._setupIntegrations() } getIntegrationByName(e) { return this._integrations[e] } addIntegration(e) { const t = this._integrations[e.name]; - SO(this, e, this._integrations), t || wO(this, [e]) + QC(this, e, this._integrations), t || YC(this, [e]) } sendEvent(e, t = {}) { this.emit("beforeSendEvent", e, t); let n = function(e, t, n, r) { - const i = i_(n), + const i = Px(n), a = e.type && "replay_event" !== e.type ? e.type : "event"; ! function(e, t) { t && (e.sdk = e.sdk || {}, e.sdk.name = e.sdk.name || t.name, e.sdk.version = e.sdk.version || t.version, e.sdk.integrations = [...e.sdk.integrations || [], ...t.integrations || []], e.sdk.packages = [...e.sdk.packages || [], ...t.packages || []]) }(e, n && n.sdk); - const o = a_(e, i, r, t); - return delete e.sdkProcessingMetadata, Yy(o, [ + const o = Tx(e, i, r, t); + return delete e.sdkProcessingMetadata, xx(o, [ [{ type: a }, e] ]) }(e, this._dsn, this._options._metadata, this._options.tunnel); - for (const i of t.attachments || []) n = Qy(n, t_(i)); + for (const i of t.attachments || []) n = wx(n, Ix(i)); const r = this.sendEnvelope(n); r && r.then((t => this.emit("afterSendEvent", e, t)), null) } sendSession(e) { const t = function(e, t, n, r) { - const i = i_(n); - return Yy({ + const i = Px(n); + return xx({ sent_at: (new Date).toISOString(), ...i && { sdk: i }, ...!!r && t && { - dsn: Ly(t) + dsn: ox(t) } }, ["aggregates" in e ? [{ type: "sessions" @@ -54831,7 +57172,7 @@ if (this._options.sendClientReports) { const r = "number" === typeof n ? n : 1, i = `${e}:${t}`; - Py && Jg.log(`Recording outcome: "${i}"${r>1?` (${r} times)`:""}`), this._outcomes[i] = (this._outcomes[i] || 0) + r + nx && E_.log(`Recording outcome: "${i}"${r>1?` (${r} times)`:""}`), this._outcomes[i] = (this._outcomes[i] || 0) + r } } on(e, t) { @@ -54846,7 +57187,7 @@ n && n.forEach((e => e(...t))) } sendEnvelope(e) { - return this.emit("beforeEnvelope", e), this._isEnabled() && this._transport ? this._transport.send(e).then(null, (e => (Py && Jg.error("Error while sending event:", e), e))) : (Py && Jg.error("Transport disabled"), lx({})) + return this.emit("beforeEnvelope", e), this._isEnabled() && this._transport ? this._transport.send(e).then(null, (e => (nx && E_.error("Error while sending event:", e), e))) : (nx && E_.error("Transport disabled"), Lk({})) } _setupIntegrations() { const { @@ -54855,9 +57196,9 @@ this._integrations = function(e, t) { const n = {}; return t.forEach((t => { - t && SO(e, t, n) + t && QC(e, t, n) })), n - }(this, e), wO(this, e) + }(this, e), YC(this, e) } _updateSessionFromEvent(e, t) { let n = !1, @@ -54874,7 +57215,7 @@ } } const a = "ok" === e.status; - (a && 0 === e.errors || a && n) && (Mv(e, { + (a && 0 === e.errors || a && n) && (cb(e, { ...n && { status: "crashed" }, @@ -54882,7 +57223,7 @@ }), this.captureSession(e)) } _isClientDoneProcessing(e) { - return new ux((t => { + return new jk((t => { let n = 0; const r = setInterval((() => { 0 == this._numProcessing ? (clearInterval(r), t(!0)) : (n += 1, e && n >= e && (clearInterval(r), t(!1))) @@ -54892,10 +57233,10 @@ _isEnabled() { return !1 !== this.getOptions().enabled && void 0 !== this._transport } - _prepareEvent(e, t, n, r = Qv()) { + _prepareEvent(e, t, n, r = wb()) { const i = this.getOptions(), a = Object.keys(this._integrations); - return !t.integrations && a.length > 0 && (t.integrations = a), this.emit("preprocessEvent", e, t), e.type || r.setLastEventId(e.event_id || t.event_id), mx(i, e, t, n, this, r).then((e => { + return !t.integrations && a.length > 0 && (t.integrations = a), this.emit("preprocessEvent", e, t), e.type || r.setLastEventId(e.event_id || t.event_id), Uk(i, e, t, n, this, r).then((e => { if (null === e) return e; const t = { ...r.getPropagationContext(), @@ -54909,14 +57250,14 @@ dsc: a } = t; e.contexts = { - trace: dv({ + trace: M_({ trace_id: n, span_id: r, parent_span_id: i }), ...e.contexts }; - const o = a || Cy(n, this); + const o = a || ex(n, this); e.sdkProcessingMetadata = { dynamicSamplingContext: o, ...e.sdkProcessingMetadata @@ -54927,9 +57268,9 @@ } _captureEvent(e, t = {}, n) { return this._processEvent(e, t, n).then((e => e.event_id), (e => { - if (Py) { + if (nx) { const t = e; - "log" === t.logLevel ? Jg.log(t.message) : Jg.warn(t) + "log" === t.logLevel ? E_.log(t.message) : E_.warn(t) } })) } @@ -54938,16 +57279,16 @@ { sampleRate: i } = r, - a = eI(e), - o = JO(e), + a = OA(e), + o = EA(e), s = e.type || "error", l = `before send for type \`${s}\``, - c = "undefined" === typeof i ? void 0 : Ty(i); - if (o && "number" === typeof c && Math.random() > c) return this.recordDroppedEvent("sample_rate", "error", e), cx(new RO(`Discarding event because it's not included in the random sample (sampling rate = ${i})`, "log")); + c = "undefined" === typeof i ? void 0 : rx(i); + if (o && "number" === typeof c && Math.random() > c) return this.recordDroppedEvent("sample_rate", "error", e), Nk(new iA(`Discarding event because it's not included in the random sample (sampling rate = ${i})`, "log")); const u = "replay_event" === s ? "replay" : s, d = (e.sdkProcessingMetadata || {}).capturedSpanIsolationScope; return this._prepareEvent(e, t, n, d).then((n => { - if (null === n) throw this.recordDroppedEvent("event_processor", u, e), new RO("An event processor returned `null`, will not send event.", "log"); + if (null === n) throw this.recordDroppedEvent("event_processor", u, e), new iA("An event processor returned `null`, will not send event.", "log"); if (t.data && !0 === t.data.__sentry__) return n; const i = function(e, t, n, r) { const { @@ -54955,8 +57296,8 @@ beforeSendTransaction: a, beforeSendSpan: o } = t; - if (JO(n) && i) return i(n, r); - if (eI(n)) { + if (EA(n) && i) return i(n, r); + if (OA(n)) { if (n.spans && o) { const t = []; for (const r of n.spans) { @@ -54980,13 +57321,13 @@ }(this, r, n, t); return function(e, t) { const n = `${t} must return \`null\` or a valid event.`; - if (Fg(e)) return e.then((e => { - if (!jg(e) && null !== e) throw new RO(n); + if (u_(e)) return e.then((e => { + if (!l_(e) && null !== e) throw new iA(n); return e }), (e => { - throw new RO(`${t} rejected with ${e}`) + throw new iA(`${t} rejected with ${e}`) })); - if (!jg(e) && null !== e) throw new RO(n); + if (!l_(e) && null !== e) throw new iA(n); return e }(i, l) })).then((r => { @@ -54995,7 +57336,7 @@ const t = 1 + (e.spans || []).length; this.recordDroppedEvent("before_send", "span", t) } - throw new RO(`${l} returned \`null\`, will not send event.`, "log") + throw new iA(`${l} returned \`null\`, will not send event.`, "log") } const i = n && n.getSession(); if (!a && i && this._updateSessionFromEvent(i, r), a) { @@ -55012,13 +57353,13 @@ } return this.sendEvent(r, t), r })).then(null, (e => { - if (e instanceof RO) throw e; + if (e instanceof iA) throw e; throw this.captureException(e, { data: { __sentry__: !0 }, originalException: e - }), new RO(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`) + }), new iA(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`) })) } _process(e) { @@ -55036,18 +57377,18 @@ })) } _flushOutcomes() { - Py && Jg.log("Flushing outcomes..."); + nx && E_.log("Flushing outcomes..."); const e = this._clearOutcomes(); - if (0 === e.length) return void(Py && Jg.log("No outcomes to send")); - if (!this._dsn) return void(Py && Jg.log("No dsn provided, will not send outcomes")); - Py && Jg.log("Sending outcomes:", e); - const t = (n = e, Yy((r = this._options.tunnel && Ly(this._dsn)) ? { + if (0 === e.length) return void(nx && E_.log("No outcomes to send")); + if (!this._dsn) return void(nx && E_.log("No dsn provided, will not send outcomes")); + nx && E_.log("Sending outcomes:", e); + const t = (n = e, xx((r = this._options.tunnel && ox(this._dsn)) ? { dsn: r } : {}, [ [{ type: "client_report" }, { - timestamp: i || Av(), + timestamp: i || tb(), discarded_events: n }] ])); @@ -55056,27 +57397,27 @@ } } - function JO(e) { + function EA(e) { return void 0 === e.type } - function eI(e) { + function OA(e) { return "transaction" === e.type } - function tI(e, t) { - const n = iI(e, t), + function IA(e, t) { + const n = PA(e, t), r = { type: t && t.name, - value: oI(t) + value: RA(t) }; return n.length && (r.stacktrace = { frames: n }), void 0 === r.type && "" === r.value && (r.value = "Unrecoverable error caught"), r } - function nI(e, t, n, r) { - const i = Xv(), + function CA(e, t, n, r) { + const i = Sb(), a = i && i.getOptions().normalizeDepth, o = function(e) { for (const t in e) @@ -55086,19 +57427,19 @@ } return }(t), s = { - __serialized__: Hy(t, a) + __serialized__: _x(t, a) }; if (o) return { exception: { - values: [tI(e, o)] + values: [IA(e, o)] }, extra: s }; const l = { exception: { values: [{ - type: Mg(t) ? t.constructor.name : r ? "UnhandledRejection" : "Error", - value: cI(t, { + type: c_(t) ? t.constructor.name : r ? "UnhandledRejection" : "Error", + value: NA(t, { isUnhandledRejection: r }) }] @@ -55106,7 +57447,7 @@ extra: s }; if (n) { - const t = iI(e, n); + const t = PA(e, n); t.length && (l.exception.values[0].stacktrace = { frames: t }) @@ -55114,18 +57455,18 @@ return l } - function rI(e, t) { + function AA(e, t) { return { exception: { - values: [tI(e, t)] + values: [IA(e, t)] } } } - function iI(e, t) { + function PA(e, t) { const n = t.stacktrace || t.stack || "", r = function(e) { - if (e && aI.test(e.message)) return 1; + if (e && TA.test(e.message)) return 1; return 0 }(t), i = function(e) { @@ -55137,46 +57478,46 @@ } catch (a) {} return [] } - const aI = /Minified React error #\d+;/i; + const TA = /Minified React error #\d+;/i; - function oI(e) { + function RA(e) { const t = e && e.message; return t ? t.error && "string" === typeof t.error.message ? t.error.message : t : "No error message" } - function sI(e, t, n, r, i) { + function DA(e, t, n, r, i) { let a; - if (Tg(t) && t.error) { - return rI(e, t.error) + if (r_(t) && t.error) { + return AA(e, t.error) } - if (Rg(t) || Pg(t, "DOMException")) { + if (i_(t) || n_(t, "DOMException")) { const i = t; - if ("stack" in t) a = rI(e, t); + if ("stack" in t) a = AA(e, t); else { - const t = i.name || (Rg(i) ? "DOMError" : "DOMException"), + const t = i.name || (i_(i) ? "DOMError" : "DOMException"), o = i.message ? `${t}: ${i.message}` : t; - a = lI(e, o, n, r), kv(a, o) + a = LA(e, o, n, r), K_(a, o) } return "code" in i && (a.tags = { ...a.tags, "DOMException.code": `${i.code}` }), a } - if (Ag(t)) return rI(e, t); - if (jg(t) || Mg(t)) { - return a = nI(e, t, n, i), wv(a, { + if (t_(t)) return AA(e, t); + if (l_(t) || c_(t)) { + return a = CA(e, t, n, i), Y_(a, { synthetic: !0 }), a } - return a = lI(e, t, n, r), kv(a, `${t}`, void 0), wv(a, { + return a = LA(e, t, n, r), K_(a, `${t}`, void 0), Y_(a, { synthetic: !0 }), a } - function lI(e, t, n, r) { + function LA(e, t, n, r) { const i = {}; if (r && n) { - const r = iI(e, n); + const r = PA(e, n); r.length && (i.exception = { values: [{ value: t, @@ -55186,7 +57527,7 @@ }] }) } - if (Lg(t)) { + if (o_(t)) { const { __sentry_template_string__: e, __sentry_template_values__: n @@ -55199,29 +57540,29 @@ return i.message = t, i } - function cI(e, { + function NA(e, { isUnhandledRejection: t }) { const n = function(e, t = 40) { - const n = Object.keys(lv(e)); + const n = Object.keys(L_(e)); n.sort(); const r = n[0]; if (!r) return "[object has no keys]"; - if (r.length >= t) return ev(r, t); + if (r.length >= t) return O_(r, t); for (let i = n.length; i > 0; i--) { const e = n.slice(0, i).join(", "); - if (!(e.length > t)) return i === n.length ? e : ev(e, t) + if (!(e.length > t)) return i === n.length ? e : O_(e, t) } return "" }(e), r = t ? "promise rejection" : "exception"; - if (Tg(e)) return `Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``; - if (Mg(e)) { + if (r_(e)) return `Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``; + if (c_(e)) { return `Event \`${function(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(t){}}(e)}\` (type=${e.type}) captured as ${r}` } return `Object captured as ${r} with keys: ${n}` } - class uI extends XO { + class jA extends SA { constructor(e) { const t = { parentSpanIsAlwaysRootSpan: !0, @@ -55233,28 +57574,28 @@ name: `sentry.javascript.${t}`, packages: n.map((e => ({ name: `${r}:@sentry/${e}`, - version: Ug + version: h_ }))), - version: Ug + version: h_ }), e._metadata = i - }(t, "browser", ["browser"], Ex.SENTRY_SDK_SOURCE || "npm"), super(t), t.sendClientReports && Ex.document && Ex.document.addEventListener("visibilitychange", (() => { - "hidden" === Ex.document.visibilityState && this._flushOutcomes() + }(t, "browser", ["browser"], Zk.SENTRY_SDK_SOURCE || "npm"), super(t), t.sendClientReports && Zk.document && Zk.document.addEventListener("visibilitychange", (() => { + "hidden" === Zk.document.visibilityState && this._flushOutcomes() })) } eventFromException(e, t) { return function(e, t, n, r) { - const i = sI(e, t, n && n.syntheticException || void 0, r); - return wv(i), i.level = "error", n && n.event_id && (i.event_id = n.event_id), lx(i) + const i = DA(e, t, n && n.syntheticException || void 0, r); + return Y_(i), i.level = "error", n && n.event_id && (i.event_id = n.event_id), Lk(i) }(this._options.stackParser, e, t, this._options.attachStacktrace) } eventFromMessage(e, t = "info", n) { return function(e, t, n = "info", r, i) { - const a = lI(e, t, r && r.syntheticException || void 0, i); - return a.level = n, r && r.event_id && (a.event_id = r.event_id), lx(a) + const a = LA(e, t, r && r.syntheticException || void 0, i); + return a.level = n, r && r.event_id && (a.event_id = r.event_id), Lk(a) }(this._options.stackParser, e, t, n, this._options.attachStacktrace) } captureUserFeedback(e) { - if (!this._isEnabled()) return void(ox && Jg.warn("SDK not enabled, will not capture user feedback.")); + if (!this._isEnabled()) return void(Rk && E_.warn("SDK not enabled, will not capture user feedback.")); const t = function(e, { metadata: t, tunnel: n, @@ -55270,7 +57611,7 @@ } }, ...!!n && !!r && { - dsn: Ly(r) + dsn: ox(r) } }, a = function(e) { @@ -55278,7 +57619,7 @@ type: "user_report" }, e] }(e); - return Yy(i, [a]) + return xx(i, [a]) }(e, { metadata: this.getSdkMetadata(), dsn: this.getDsn(), @@ -55291,27 +57632,27 @@ } } - function dI() { - "console" in Bg && Qg.forEach((function(e) { - e in Bg.console && iv(Bg.console, e, (function(t) { - return Zg[e] = t, + function MA() { + "console" in f_ && w_.forEach((function(e) { + e in f_.console && P_(f_.console, e, (function(t) { + return k_[e] = t, function(...t) { - qb("console", { + vk("console", { args: t, level: e }); - const n = Zg[e]; - n && n.apply(Bg.console, t) + const n = k_[e]; + n && n.apply(f_.console, t) } })) })) } - function pI(e) { + function FA(e) { return void 0 === e ? void 0 : e >= 400 && e < 500 ? "warning" : e >= 500 ? "error" : void 0 } - const hI = 1024, - fI = (e = {}) => { + const zA = 1024, + VA = (e = {}) => { const t = { console: !0, dom: !0, @@ -55326,43 +57667,43 @@ setup(e) { t.console && function(e) { const t = "console"; - Gb(t, e), $b(t, dI) + mk(t, e), gk(t, MA) }(function(e) { return function(t) { - if (Xv() !== e) return; + if (Sb() !== e) return; const n = { category: "console", data: { arguments: t.args, logger: "console" }, - level: nk(t.level), - message: tv(t.args, " ") + level: CS(t.level), + message: I_(t.args, " ") }; if ("assert" === t.level) { if (!1 !== t.args[0]) return; - n.message = `Assertion failed: ${tv(t.args.slice(1)," ")||"console.assert"}`, n.data.arguments = t.args.slice(1) + n.message = `Assertion failed: ${I_(t.args.slice(1)," ")||"console.assert"}`, n.data.arguments = t.args.slice(1) } - Xx(n, { + SS(n, { input: t.args, level: t.level }) } - }(e)), t.dom && fk(function(e, t) { + }(e)), t.dom && VS(function(e, t) { return function(n) { - if (Xv() !== e) return; + if (Sb() !== e) return; let r, i, a = "object" === typeof t ? t.serializeAttribute : void 0, o = "object" === typeof t && "number" === typeof t.maxStringLength ? t.maxStringLength : void 0; - o && o > hI && (ox && Jg.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${o} was configured. Sentry will use 1024 instead.`), o = hI), "string" === typeof a && (a = [a]); + o && o > zA && (Rk && E_.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${o} was configured. Sentry will use 1024 instead.`), o = zA), "string" === typeof a && (a = [a]); try { const e = n.event, t = function(e) { return !!e && !!e.target }(e) ? e.target : e; - r = qg(t, { + r = v_(t, { keyAttrs: a, maxStringLength: o - }), i = Kg(t) + }), i = b_(t) } catch (l) { r = "" } @@ -55373,19 +57714,19 @@ }; i && (s.data = { "ui.component_name": i - }), Xx(s, { + }), SS(s, { event: n.event, name: n.name, global: n.global }) } - }(e, t.dom)), t.xhr && Tx(function(e) { + }(e, t.dom)), t.xhr && rS(function(e) { return function(t) { - if (Xv() !== e) return; + if (Sb() !== e) return; const { startTimestamp: n, endTimestamp: r - } = t, i = t.xhr[Px]; + } = t, i = t.xhr[nS]; if (!n || !r || !i) return; const { method: a, @@ -55402,23 +57743,23 @@ startTimestamp: n, endTimestamp: r }; - Xx({ + SS({ category: "xhr", data: c, type: "http", - level: pI(s) + level: FA(s) }, u) } - }(e)), t.fetch && Mx(function(e) { + }(e)), t.fetch && cS(function(e) { return function(t) { - if (Xv() !== e) return; + if (Sb() !== e) return; const { startTimestamp: n, endTimestamp: r } = t; if (r && (!t.fetchData.url.match(/sentry_key/) || "POST" !== t.fetchData.method)) if (t.error) { - Xx({ + SS({ category: "fetch", data: t.fetchData, level: "error", @@ -55441,23 +57782,23 @@ startTimestamp: n, endTimestamp: r }; - Xx({ + SS({ category: "fetch", data: i, type: "http", - level: pI(i.status_code) + level: FA(i.status_code) }, a) } } - }(e)), t.history && Kb(function(e) { + }(e)), t.history && bk(function(e) { return function(t) { - if (Xv() !== e) return; + if (Sb() !== e) return; let n = t.from, r = t.to; - const i = x_(Ex.location.href); - let a = n ? x_(n) : void 0; - const o = x_(r); - a && a.path || (a = i), i.protocol === o.protocol && i.host === o.host && (r = o.relative), i.protocol === a.protocol && i.host === a.host && (n = a.relative), Xx({ + const i = Hx(Zk.location.href); + let a = n ? Hx(n) : void 0; + const o = Hx(r); + a && a.path || (a = i), i.protocol === o.protocol && i.host === o.host && (r = o.relative), i.protocol === a.protocol && i.host === a.host && (n = a.relative), SS({ category: "navigation", data: { from: n, @@ -55467,11 +57808,11 @@ } }(e)), t.sentry && e.on("beforeSendEvent", function(e) { return function(t) { - Xv() === e && Xx({ + Sb() === e && SS({ category: "sentry." + ("transaction" === t.type ? "transaction" : "event"), event_id: t.event_id, level: t.level, - message: xv(t) + message: H_(t) }, { event: t }) @@ -55480,8 +57821,8 @@ } } }; - const mI = ["EventTarget", "Window", "Node", "ApplicationCache", "AudioTrackList", "BroadcastChannel", "ChannelMergerNode", "CryptoOperation", "EventSource", "FileReader", "HTMLUnknownElement", "IDBDatabase", "IDBRequest", "IDBTransaction", "KeyOperation", "MediaController", "MessagePort", "ModalWindow", "Notification", "SVGElementInstance", "Screen", "SharedWorker", "TextTrack", "TextTrackCue", "TextTrackList", "WebSocket", "WebSocketWorker", "Worker", "XMLHttpRequest", "XMLHttpRequestEventTarget", "XMLHttpRequestUpload"], - gI = (e = {}) => { + const UA = ["EventTarget", "Window", "Node", "ApplicationCache", "AudioTrackList", "BroadcastChannel", "ChannelMergerNode", "CryptoOperation", "EventSource", "FileReader", "HTMLUnknownElement", "IDBDatabase", "IDBRequest", "IDBTransaction", "KeyOperation", "MediaController", "MessagePort", "ModalWindow", "Notification", "SVGElementInstance", "Screen", "SharedWorker", "TextTrack", "TextTrackCue", "TextTrackList", "WebSocket", "WebSocketWorker", "Worker", "XMLHttpRequest", "XMLHttpRequestEventTarget", "XMLHttpRequestUpload"], + BA = (e = {}) => { const t = { XMLHttpRequest: !0, eventTarget: !0, @@ -55493,22 +57834,22 @@ return { name: "BrowserApiErrors", setupOnce() { - t.setTimeout && iv(Ex, "setTimeout", vI), t.setInterval && iv(Ex, "setInterval", vI), t.requestAnimationFrame && iv(Ex, "requestAnimationFrame", yI), t.XMLHttpRequest && "XMLHttpRequest" in Ex && iv(XMLHttpRequest.prototype, "send", _I); + t.setTimeout && P_(Zk, "setTimeout", GA), t.setInterval && P_(Zk, "setInterval", GA), t.requestAnimationFrame && P_(Zk, "requestAnimationFrame", $A), t.XMLHttpRequest && "XMLHttpRequest" in Zk && P_(XMLHttpRequest.prototype, "send", qA); const e = t.eventTarget; if (e) { - (Array.isArray(e) ? e : mI).forEach(bI) + (Array.isArray(e) ? e : UA).forEach(WA) } } } }; - function vI(e) { + function GA(e) { return function(...t) { const n = t[0]; - return t[0] = Ax(n, { + return t[0] = tS(n, { mechanism: { data: { - function: $y(e) + function: gx(e) }, handled: !1, type: "instrument" @@ -55517,13 +57858,13 @@ } } - function yI(e) { + function $A(e) { return function(t) { - return e.apply(this, [Ax(t, { + return e.apply(this, [tS(t, { mechanism: { data: { function: "requestAnimationFrame", - handler: $y(e) + handler: gx(e) }, handled: !1, type: "instrument" @@ -55532,51 +57873,51 @@ } } - function _I(e) { + function qA(e) { return function(...t) { const n = this; return ["onload", "onerror", "onprogress", "onreadystatechange"].forEach((e => { - e in n && "function" === typeof n[e] && iv(n, e, (function(t) { + e in n && "function" === typeof n[e] && P_(n, e, (function(t) { const n = { mechanism: { data: { function: e, - handler: $y(t) + handler: gx(t) }, handled: !1, type: "instrument" } }, - r = sv(t); - return r && (n.mechanism.data.handler = $y(r)), Ax(t, n) + r = D_(t); + return r && (n.mechanism.data.handler = gx(r)), tS(t, n) })) })), e.apply(this, t) } } - function bI(e) { - const t = Ex, + function WA(e) { + const t = Zk, n = t[e] && t[e].prototype; - n && n.hasOwnProperty && n.hasOwnProperty("addEventListener") && (iv(n, "addEventListener", (function(t) { + n && n.hasOwnProperty && n.hasOwnProperty("addEventListener") && (P_(n, "addEventListener", (function(t) { return function(n, r, i) { try { - "function" === typeof r.handleEvent && (r.handleEvent = Ax(r.handleEvent, { + "function" === typeof r.handleEvent && (r.handleEvent = tS(r.handleEvent, { mechanism: { data: { function: "handleEvent", - handler: $y(r), + handler: gx(r), target: e }, handled: !1, type: "instrument" } })) - } catch (sF) {} - return t.apply(this, [n, Ax(r, { + } catch (MV) {} + return t.apply(this, [n, tS(r, { mechanism: { data: { function: "addEventListener", - handler: $y(r), + handler: gx(r), target: e }, handled: !1, @@ -55584,7 +57925,7 @@ } }), i]) } - })), iv(n, "removeEventListener", (function(e) { + })), P_(n, "removeEventListener", (function(e) { return function(t, n, r) { const i = n; try { @@ -55595,7 +57936,7 @@ } }))) } - const xI = (e = {}) => { + const HA = (e = {}) => { const t = { onerror: !0, onunhandledrejection: !0, @@ -55608,12 +57949,12 @@ }, setup(e) { t.onerror && (! function(e) { - Jb((t => { + Ek((t => { const { stackParser: n, attachStacktrace: r - } = wI(); - if (Xv() !== e || Ix()) return; + } = YA(); + if (Sb() !== e || Jk()) return; const { msg: i, url: a, @@ -55628,17 +57969,17 @@ l = s.frames = s.frames || [], c = isNaN(parseInt(r, 10)) ? void 0 : r, u = isNaN(parseInt(n, 10)) ? void 0 : n, - d = Dg(t) && t.length > 0 ? t : Hg(); + d = a_(t) && t.length > 0 ? t : __(); 0 === l.length && l.push({ colno: c, filename: d, - function: My, + function: cx, in_app: !0, lineno: u }); return e - }(sI(n, l || i, void 0, r, !1), a, o, s); - c.level = "error", bx(c, { + }(DA(n, l || i, void 0, r, !1), a, o, s); + c.level = "error", Wk(c, { originalException: l, mechanism: { handled: !1, @@ -55646,30 +57987,30 @@ } }) })) - }(e), kI("onerror")), t.onunhandledrejection && (! function(e) { - nx((t => { + }(e), KA("onerror")), t.onunhandledrejection && (! function(e) { + Ck((t => { const { stackParser: n, attachStacktrace: r - } = wI(); - if (Xv() !== e || Ix()) return; + } = YA(); + if (Sb() !== e || Jk()) return; const i = function(e) { - if (Ng(e)) return e; + if (s_(e)) return e; try { if ("reason" in e) return e.reason; if ("detail" in e && "reason" in e.detail) return e.detail.reason - } catch (t) {} + } catch (Cs) {} return e }(t), - a = Ng(i) ? { + a = s_(i) ? { exception: { values: [{ type: "UnhandledRejection", value: `Non-Error promise rejection captured with value: ${String(i)}` }] } - } : sI(n, i, void 0, r, !0); - a.level = "error", bx(a, { + } : DA(n, i, void 0, r, !0); + a.level = "error", Wk(a, { originalException: i, mechanism: { handled: !1, @@ -55677,33 +58018,33 @@ } }) })) - }(e), kI("onunhandledrejection")) + }(e), KA("onunhandledrejection")) } } }; - function kI(e) { - ox && Jg.log(`Global Handler attached: ${e}`) + function KA(e) { + Rk && E_.log(`Global Handler attached: ${e}`) } - function wI() { - const e = Xv(); + function YA() { + const e = Sb(); return e && e.getOptions() || { stackParser: () => [], attachStacktrace: !1 } } - const SI = () => ({ + const QA = () => ({ name: "HttpContext", preprocessEvent(e) { - if (!Ex.navigator && !Ex.location && !Ex.document) return; - const t = e.request && e.request.url || Ex.location && Ex.location.href, + if (!Zk.navigator && !Zk.location && !Zk.document) return; + const t = e.request && e.request.url || Zk.location && Zk.location.href, { referrer: n - } = Ex.document || {}, + } = Zk.document || {}, { userAgent: r - } = Ex.navigator || {}, + } = Zk.navigator || {}, i = { ...e.request && e.request.headers, ...n && { @@ -55724,33 +58065,33 @@ } }); - function EI(e, t, n = 250, r, i, a, o) { - if (!a.exception || !a.exception.values || !o || !zg(o.originalException, Error)) return; + function ZA(e, t, n = 250, r, i, a, o) { + if (!a.exception || !a.exception.values || !o || !d_(o.originalException, Error)) return; const s = a.exception.values.length > 0 ? a.exception.values[a.exception.values.length - 1] : void 0; var l, c; - s && (a.exception.values = (l = OI(e, t, i, o.originalException, r, a.exception.values, s, 0), c = n, l.map((e => (e.value && (e.value = ev(e.value, c)), e))))) + s && (a.exception.values = (l = XA(e, t, i, o.originalException, r, a.exception.values, s, 0), c = n, l.map((e => (e.value && (e.value = O_(e.value, c)), e))))) } - function OI(e, t, n, r, i, a, o, s) { + function XA(e, t, n, r, i, a, o, s) { if (a.length >= n + 1) return a; let l = [...a]; - if (zg(r[i], Error)) { - II(o, s); + if (d_(r[i], Error)) { + JA(o, s); const a = e(t, r[i]), c = l.length; - CI(a, i, c, s), l = OI(e, t, n, r[i], i, [a, ...l], a, c) + eP(a, i, c, s), l = XA(e, t, n, r[i], i, [a, ...l], a, c) } return Array.isArray(r.errors) && r.errors.forEach(((r, a) => { - if (zg(r, Error)) { - II(o, s); + if (d_(r, Error)) { + JA(o, s); const c = e(t, r), u = l.length; - CI(c, `errors[${a}]`, u, s), l = OI(e, t, n, r, i, [c, ...l], c, u) + eP(c, `errors[${a}]`, u, s), l = XA(e, t, n, r, i, [c, ...l], c, u) } })), l } - function II(e, t) { + function JA(e, t) { e.mechanism = e.mechanism || { type: "generic", handled: !0 @@ -55763,7 +58104,7 @@ } } - function CI(e, t, n, r) { + function eP(e, t, n, r) { e.mechanism = e.mechanism || { type: "generic", handled: !0 @@ -55775,69 +58116,69 @@ parent_id: r } } - const AI = (e = {}) => { + const tP = (e = {}) => { const t = e.limit || 5, n = e.key || "cause"; return { name: "LinkedErrors", preprocessEvent(e, r, i) { const a = i.getOptions(); - EI(tI, a.stackParser, a.maxValueLength, n, t, e, r) + ZA(IA, a.stackParser, a.maxValueLength, n, t, e, r) } } }; - function PI(e, t, n, r) { + function nP(e, t, n, r) { const i = { filename: e, - function: "" === t ? My : t, + function: "" === t ? cx : t, in_app: !0 }; return void 0 !== n && (i.lineno = n), void 0 !== r && (i.colno = r), i } - const TI = /^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i, - RI = /^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i, - DI = /\((\S*)(?::(\d+))(?::(\d+))\)/, - LI = [30, e => { - const t = TI.exec(e); + const rP = /^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i, + iP = /^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i, + aP = /\((\S*)(?::(\d+))(?::(\d+))\)/, + oP = [30, e => { + const t = rP.exec(e); if (t) { const [, e, n, r] = t; - return PI(e, My, +n, +r) + return nP(e, cx, +n, +r) } - const n = RI.exec(e); + const n = iP.exec(e); if (n) { if (n[2] && 0 === n[2].indexOf("eval")) { - const e = DI.exec(n[2]); + const e = aP.exec(n[2]); e && (n[2] = e[1], n[3] = e[2], n[4] = e[3]) } - const [e, t] = FI(n[1] || My, n[2]); - return PI(t, e, n[3] ? +n[3] : void 0, n[4] ? +n[4] : void 0) + const [e, t] = uP(n[1] || cx, n[2]); + return nP(t, e, n[3] ? +n[3] : void 0, n[4] ? +n[4] : void 0) } }], - NI = /^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i, - jI = /(\S+) line (\d+)(?: > eval line \d+)* > eval/i, - MI = Vy(...[LI, [50, e => { - const t = NI.exec(e); + sP = /^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i, + lP = /(\S+) line (\d+)(?: > eval line \d+)* > eval/i, + cP = px(...[oP, [50, e => { + const t = sP.exec(e); if (t) { if (t[3] && t[3].indexOf(" > eval") > -1) { - const e = jI.exec(t[3]); + const e = lP.exec(t[3]); e && (t[1] = t[1] || "eval", t[3] = e[1], t[4] = e[2], t[5] = "") } let e = t[3], - n = t[1] || My; - return [n, e] = FI(n, e), PI(e, n, t[4] ? +t[4] : void 0, t[5] ? +t[5] : void 0) + n = t[1] || cx; + return [n, e] = uP(n, e), nP(e, n, t[4] ? +t[4] : void 0, t[5] ? +t[5] : void 0) } }]]), - FI = (e, t) => { + uP = (e, t) => { const n = -1 !== e.indexOf("safari-extension"), r = -1 !== e.indexOf("safari-web-extension"); - return n || r ? [-1 !== e.indexOf("@") ? e.split("@")[0] : My, n ? `safari-extension:${t}` : `safari-web-extension:${t}`] : [e, t] + return n || r ? [-1 !== e.indexOf("@") ? e.split("@")[0] : cx, n ? `safari-extension:${t}` : `safari-web-extension:${t}`] : [e, t] }; - function zI(e, t = lk("fetch")) { + function dP(e, t = LS("fetch")) { let n = 0, r = 0; - return LO(e, (function(i) { + return oA(e, (function(i) { const a = i.body.length; n += a, r++; const o = { @@ -55848,7 +58189,7 @@ keepalive: n <= 6e4 && r < 15, ...e.fetchOptions }; - if (!t) return ck("fetch"), cx("No fetch implementation available"); + if (!t) return NS("fetch"), Nk("No fetch implementation available"); try { return t(e.url, o).then((e => (n -= a, r--, { statusCode: e.status, @@ -55858,20 +58199,20 @@ } }))) } catch (s) { - return ck("fetch"), n -= a, r--, cx(s) + return NS("fetch"), n -= a, r--, Nk(s) } })) } - function VI(e) { - return [FO(), BO(), gI(), fI(), xI(), AI(), GO(), SI()] + function pP(e) { + return [uA(), fA(), BA(), VA(), HA(), tP(), mA(), QA()] } - function UI(e = {}) { + function hP(e = {}) { const t = function(e = {}) { const t = { - defaultIntegrations: VI(), - release: "string" === typeof __SENTRY_RELEASE__ ? __SENTRY_RELEASE__ : Ex.SENTRY_RELEASE && Ex.SENTRY_RELEASE.id ? Ex.SENTRY_RELEASE.id : void 0, + defaultIntegrations: pP(), + release: "string" === typeof __SENTRY_RELEASE__ ? __SENTRY_RELEASE__ : Zk.SENTRY_RELEASE && Zk.SENTRY_RELEASE.id ? Zk.SENTRY_RELEASE.id : void 0, autoSessionTracking: !0, sendClientReports: !0 }; @@ -55881,46 +58222,46 @@ } }(e); if (function() { - const e = "undefined" !== typeof Ex.window && Ex; - if (!e) return !1; - const t = e[e.chrome ? "chrome" : "browser"], - n = t && t.runtime && t.runtime.id, - r = Ex.location && Ex.location.href || "", - i = !!n && Ex === Ex.top && ["chrome-extension:", "moz-extension:", "ms-browser-extension:", "safari-web-extension:"].some((e => r.startsWith(`${e}//`))), - a = "undefined" !== typeof e.nw; - return !!n && !i && !a - }()) return void Xg((() => { + const e = "undefined" !== typeof Zk.window && Zk; + if (!e) return !1; + const t = e[e.chrome ? "chrome" : "browser"], + n = t && t.runtime && t.runtime.id, + r = Zk.location && Zk.location.href || "", + i = !!n && Zk === Zk.top && ["chrome-extension:", "moz-extension:", "ms-browser-extension:", "safari-web-extension:"].some((e => r.startsWith(`${e}//`))), + a = "undefined" !== typeof e.nw; + return !!n && !i && !a + }()) return void S_((() => { console.error("[Sentry] You cannot run Sentry this way in a browser extension, check: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/") })); - ox && (Nx() || Jg.warn("No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill.")); + Rk && (sS() || E_.warn("No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill.")); const n = { ...t, - stackParser: (r = t.stackParser || MI, Array.isArray(r) ? Vy(...r) : r), - integrations: kO(t), - transport: t.transport || zI + stackParser: (r = t.stackParser || cP, Array.isArray(r) ? px(...r) : r), + integrations: KC(t), + transport: t.transport || dP }; var r; - const i = HO(uI, n); + const i = _A(jA, n); return t.autoSessionTracking && function() { - if ("undefined" === typeof Ex.document) return void(ox && Jg.warn("Session tracking in non-browser environment with @sentry/browser is not supported.")); - xx({ + if ("undefined" === typeof Zk.document) return void(Rk && E_.warn("Session tracking in non-browser environment with @sentry/browser is not supported.")); + Hk({ ignoreDuration: !0 - }), Sx(), Kb((({ - from: e, - to: t - }) => { - void 0 !== e && e !== t && (xx({ + }), Qk(), bk((({ + from: e, + to: t + }) => { + void 0 !== e && e !== t && (Hk({ ignoreDuration: !0 - }), Sx()) + }), Qk()) })) }(), i } - function BI(e, t = !1) { + function fP(e, t = !1) { return !(t || e && !e.startsWith("/") && !e.match(/^[A-Z]:/) && !e.startsWith(".") && !e.match(/^[a-zA-Z]([a-zA-Z0-9.\-+])*:\/\//)) && void 0 !== e && !e.includes("node_modules/") } - function GI(e) { + function mP(e) { const t = /^\s*[-]{4,}$/, n = /at (?:async )?(?:(.+?)\s+\()?(?:(.+):(\d+):(\d+)?|([^)]+))\)?/; return r => { @@ -55937,16 +58278,16 @@ } a = void 0 } - n && (a = t, o = n), "" === n && (o = void 0, r = void 0), void 0 === r && (o = o || My, r = a ? `${a}.${o}` : o); + n && (a = t, o = n), "" === n && (o = void 0, r = void 0), void 0 === r && (o = o || cx, r = a ? `${a}.${o}` : o); let s = i[2] && i[2].startsWith("file://") ? i[2].slice(7) : i[2]; const l = "native" === i[5]; return s && s.match(/\/[A-Z]:/) && (s = s.slice(1)), s || !i[5] || l || (s = i[5]), { filename: s, module: e ? e(s) : void 0, function: r, - lineno: $I(i[3]), - colno: $I(i[4]), - in_app: BI(s || "", l) + lineno: gP(i[3]), + colno: gP(i[4]), + in_app: fP(s || "", l) } } if (r.match(t)) return { @@ -55955,403 +58296,281 @@ } } - function $I(e) { + function gP(e) { return parseInt(e || "", 10) || void 0 } - const [, qI] = LI, [, WI] = [90, GI(HI)]; - var HI; - const KI = (e, t = 0) => { + const [, vP] = oP, [, yP] = [90, mP(_P)]; + var _P; + const bP = (e, t = 0) => { const n = []; for (const r of e.split("\n").slice(t)) { - const e = qI(r), - t = WI(r); - if (e && !1 !== t?.in_app ? n.push(e) : t && n.push(dv(t)), n.length >= 50) break + const e = vP(r), + t = yP(r); + if (e && !1 !== t?.in_app ? n.push(e) : t && n.push(M_(t)), n.length >= 50) break } - return Uy(n) + return hx(n) }; - var YI = n(2222), - QI = n(4499); - const ZI = () => { - var e; - const { - t: t - } = bt("settingsPage"); - return (0, QI.jsx)(Am, { - title: t("settings_about_title"), - children: (0, QI.jsxs)(gs, { - color: "foreground-weak", - variant: "body-m", - multiline: !0, - children: [(0, QI.jsx)("img", { - src: `${YI.configuration.assets.directory}/logos/cig-logo.svg`, - alt: t("settings_about_logo_alt"), - width: "120" - }), (0, QI.jsx)("p", { - children: t("settings_about_copyright", { - year: (new Date).getFullYear() - }) - }), (0, QI.jsx)("hr", {}), (0, QI.jsxs)("p", { - children: [(0, QI.jsx)("strong", { - children: t("settings_about_launcher_version") - }), " ", null !== (e = "2.1.1") ? e : "\u2013"] - })] - }) - }) - }, - XI = e => ({ - ...e, - media: void 0 - }), - JI = e => ({ - ...e, - publish_start: void 0, - time_created: void 0 - }), - eC = (e, t) => { - const n = new Date(e.publish_start || 0).getTime(); - return new Date(t.publish_start || 0).getTime() - n - }, - tC = (e, t) => (e.weight || 0) - (t.weight || 0), - nC = (e, t) => e.weight - t.weight, - rC = e => ({ - ...e, - publish_start: e.publish_start ? e.publish_start + " UTC" : void 0, - time_created: e.time_created ? e.time_created + " UTC" : void 0 - }), - iC = (e, t = "div") => (0, Ee.createElement)(t, { - dangerouslySetInnerHTML: { - __html: e - } - }), - aC = { - year: 31536e6, - month: 2628e6, - day: 864e5, - hour: 36e5, - minute: 6e4, - second: 1e3 - }, - oC = (e, t) => e + (Math.floor(Math.random() * t) + 1), - sC = (e, t = "short", { - showTime: n = !0, - ...r - } = {}) => { - const i = new Date(e); - switch (t) { - case "short": - case "long": - return new Intl.DateTimeFormat("default", { - dateStyle: t, - ...r, - ...n && { - timeStyle: "short" - } - }).format(i); - case "relative": - return ((e, t = new Date, n = {}) => { - const r = e.getTime() - t.getTime(); - for (const [i, a] of Object.entries(aC)) - if (Math.abs(r) > a || "second" === i) return new Intl.RelativeTimeFormat("default", { - numeric: "auto", - localeMatcher: "lookup", - ...n - }).format(Math.round(r / a), i) - })(i, new Date, r) - } - }, - lC = e => { - if ("string" === typeof e || "number" === typeof e) return e.toString(); - if (!(0, Ee.isValidElement)(e)) return ""; - if ("function" === typeof e.type && e.type.prototype instanceof Ee.Component) { - const t = new e.type(e.props).render(); - return lC(t) - } - if ("function" === typeof e.type) { - const t = e.type(e.props); - return lC(t) - } - const { - children: t - } = e.props; - return Array.isArray(t) ? t.map((e => lC(e))).join("") : lC(t) - }, - cC = () => window.launcherAPI, - uC = (e, t) => t.find((({ - id: t - }) => t === e)), - dC = e => { - let t = e; - return t.includes("\\\\") && (t = t.replace("\\\\", "\\")), t.endsWith("\\") || (t = `${t}\\`), t - }, - pC = 2e3, - hC = { - [YI.RSISystemStatus.MAJOR]: "negative", - [YI.RSISystemStatus.PARTIAL]: "notice", - [YI.RSISystemStatus.DEGRADED]: "highlight", - [YI.RSISystemStatus.MAINTENANCE]: "neutral", - [YI.RSISystemStatus.OPERATIONAL]: "positive" - }, - fC = e => hC[e], - mC = "1000", - gC = "1001", - vC = "1002", - yC = "1003", - _C = "1004", - bC = "1005", - xC = "1006", - kC = "1007", - wC = "1008", - SC = "1009", - EC = "1010", - OC = "1011", - IC = "1012", - CC = "1013", - AC = "1014", - PC = "1015", - TC = "1016", - RC = "1017", - DC = "1018", - LC = "1019", - NC = "1020", - jC = "1021", - MC = "1022", - FC = "ErrWrongPassword_email", - zC = "ErrMultiStepRequired", - VC = "ErrMultiStepWrongCode", - UC = "ErrNotAuthenticated", - BC = "ErrClaimsInvalid", - GC = "ErrMaxThrottleLogin", - $C = "errAuthExpired", - qC = "ErrCaptchaRequiredLauncher", - WC = "ErrInvalidChallengeCode", - HC = "ErrDeprecatedApi", - KC = "ErrAgreementsRequired", - YC = "ErrExpiredToken", - QC = "ErrToken", - ZC = "ErrNoGamePackage", - XC = "ErrValidationFailed", - JC = "ErrAccountNotFound"; - class eA extends Error { + var xP = n(2222); + const wP = "1000", + kP = "1001", + SP = "1002", + EP = "1003", + OP = "1004", + IP = "1005", + CP = "1006", + AP = "1007", + PP = "1008", + TP = "1009", + RP = "1010", + DP = "1011", + LP = "1012", + NP = "1013", + jP = "1014", + MP = "1015", + FP = "1016", + zP = "1017", + VP = "1018", + UP = "1019", + BP = "1020", + GP = "1021", + $P = "1022", + qP = "ErrWrongPassword_email", + WP = "ErrMultiStepRequired", + HP = "ErrMultiStepWrongCode", + KP = "ErrNotAuthenticated", + YP = "ErrClaimsInvalid", + QP = "ErrMaxThrottleLogin", + ZP = "errAuthExpired", + XP = "ErrCaptchaRequiredLauncher", + JP = "ErrInvalidChallengeCode", + eT = "ErrDeprecatedApi", + tT = "ErrAgreementsRequired", + nT = "ErrExpiredToken", + rT = "ErrToken", + iT = "ErrNoGamePackage", + aT = "ErrValidationFailed", + oT = "ErrAccountNotFound"; + class sT extends Error { constructor({ - message: e = "Unknown Error", - code: t = mC, - payload: n = null, - environment: r - }) { - super(e), this.code = void 0, this.payload = void 0, this.environment = void 0, Object.setPrototypeOf(this, eA.prototype), this.code = t, this.payload = n, this.environment = r, window.launcherAPI.log.error("Internal error:", t, n) + message: e = "Unknown Error", + code: t = wP, + payload: n = null, + environment: r + }) { + super(e), this.code = void 0, this.payload = void 0, this.environment = void 0, Object.setPrototypeOf(this, sT.prototype), this.code = t, this.payload = n, this.environment = r, window.launcherAPI.log.error("Internal error:", t, n) } } - class tA extends eA { + class lT extends sT { constructor(e, t, n) { super({ message: e, - code: yC, + code: EP, payload: t, environment: n - }), Object.setPrototypeOf(this, tA.prototype) + }), Object.setPrototypeOf(this, lT.prototype) } } - class nA extends eA { + class cT extends sT { constructor(e, t = null, n) { super({ message: e, - code: _C, + code: OP, payload: t, environment: n - }), Object.setPrototypeOf(this, nA.prototype) + }), Object.setPrototypeOf(this, cT.prototype) } } - class rA extends eA { + class uT extends sT { constructor(e, t = null, n) { super({ message: e, - code: SC, + code: TP, payload: t, environment: n - }), Object.setPrototypeOf(this, rA.prototype) + }), Object.setPrototypeOf(this, uT.prototype) } } - class iA extends eA { + class dT extends sT { constructor(e, t = null, n) { super({ message: e, - code: kC, + code: AP, payload: t, environment: n - }), Object.setPrototypeOf(this, iA.prototype) + }), Object.setPrototypeOf(this, dT.prototype) } } - class aA extends eA { + class pT extends sT { constructor(e, t = null, n) { super({ message: e, - code: xC, + code: CP, payload: t, environment: n - }), Object.setPrototypeOf(this, aA.prototype) + }), Object.setPrototypeOf(this, pT.prototype) } } - class oA extends eA { + class hT extends sT { constructor(e, t = null, n) { super({ message: e, - code: wC, + code: PP, payload: t, environment: n - }), Object.setPrototypeOf(this, oA.prototype) + }), Object.setPrototypeOf(this, hT.prototype) } } - class sA extends eA { + class fT extends sT { constructor(e, t, n) { super({ message: e, - code: EC, + code: RP, payload: t, environment: n - }), Object.setPrototypeOf(this, sA.prototype) + }), Object.setPrototypeOf(this, fT.prototype) } } - class lA extends eA { + class mT extends sT { constructor(e, t = null, n) { super({ message: e, - code: OC, + code: DP, payload: t, environment: n - }), Object.setPrototypeOf(this, lA.prototype) + }), Object.setPrototypeOf(this, mT.prototype) } } - class cA extends eA { + class gT extends sT { constructor(e, t = null, n) { super({ message: e, - code: CC, + code: NP, payload: t, environment: n - }), Object.setPrototypeOf(this, cA.prototype) + }), Object.setPrototypeOf(this, gT.prototype) } } - class uA extends eA { + class vT extends sT { constructor(e, t = null, n) { super({ message: e, - code: AC, + code: jP, payload: t, environment: n - }), Object.setPrototypeOf(this, uA.prototype) + }), Object.setPrototypeOf(this, vT.prototype) } } - class dA extends eA { + class yT extends sT { constructor(e, t = null, n) { super({ message: e, - code: PC, + code: MP, payload: t, environment: n - }), Object.setPrototypeOf(this, dA.prototype) + }), Object.setPrototypeOf(this, yT.prototype) } } - class pA extends eA { + class _T extends sT { constructor(e, t = null, n) { super({ message: e, - code: TC, + code: FP, payload: t, environment: n - }), Object.setPrototypeOf(this, pA.prototype) + }), Object.setPrototypeOf(this, _T.prototype) } } - class hA extends eA { + class bT extends sT { constructor(e, t = null, n) { super({ message: e, - code: vC, + code: SP, payload: t, environment: n - }), Object.setPrototypeOf(this, hA.prototype) + }), Object.setPrototypeOf(this, bT.prototype) } } - class fA extends eA { + class xT extends sT { constructor(e, t = null, n) { super({ message: e, - code: jC, + code: GP, payload: t, environment: n - }), Object.setPrototypeOf(this, fA.prototype) + }), Object.setPrototypeOf(this, xT.prototype) } } - class mA extends eA { + class wT extends sT { constructor(e, t = null, n) { super({ message: e, - code: MC, + code: $P, payload: t, environment: n - }), Object.setPrototypeOf(this, mA.prototype) + }), Object.setPrototypeOf(this, wT.prototype) } } - class gA extends eA { + class kT extends sT { constructor(e, t = null, n) { super({ message: e, - code: RC, + code: zP, payload: t, environment: n - }), Object.setPrototypeOf(this, gA.prototype) + }), Object.setPrototypeOf(this, kT.prototype) } } - class vA extends eA { + class ST extends sT { constructor(e, t = null, n) { super({ message: e, - code: DC, + code: VP, payload: t, environment: n - }), Object.setPrototypeOf(this, vA.prototype) + }), Object.setPrototypeOf(this, ST.prototype) } } - class yA extends eA { + class ET extends sT { constructor(e, t = null, n) { super({ message: e, - code: LC, + code: UP, payload: t, environment: n - }), Object.setPrototypeOf(this, yA.prototype) + }), Object.setPrototypeOf(this, ET.prototype) } } - class _A extends eA { + class OT extends sT { constructor(e, t = null, n) { super({ message: e, - code: IC, + code: LP, payload: t, environment: n - }), Object.setPrototypeOf(this, _A.prototype) + }), Object.setPrototypeOf(this, OT.prototype) } } - class bA extends eA { + class IT extends sT { constructor(e, t = null, n) { super({ message: e, - code: NC, + code: BP, payload: t, environment: n - }), Object.setPrototypeOf(this, bA.prototype) + }), Object.setPrototypeOf(this, IT.prototype) } } - class xA extends eA { + class CT extends sT { constructor(e, t = null, n) { super({ message: e, - code: bC, + code: IP, payload: t, environment: n - }), Object.setPrototypeOf(this, xA.prototype) + }), Object.setPrototypeOf(this, CT.prototype) } } - class kA { + class AT { constructor(e) { this.baseUrl = void 0, this.baseUrl = e } @@ -56359,16 +58578,16 @@ return "image/png" === e.headers.get("content-type") } async handleResponse(e) { - if (429 === e.status) throw new vA(xt.t("error_api_too_many_requests_content", { + if (429 === e.status) throw new ST(xt.t("error_api_too_many_requests_content", { ns: "errors" }), e, null); - if (503 === e.status) throw new yA(xt.t("error_api_unavailable", { + if (503 === e.status) throw new ET(xt.t("error_api_unavailable", { ns: "errors" }), e, null); - if (e.status >= 500 && e.status < 600) throw new bA(xt.t("error_api_internal_server_error", { + if (e.status >= 500 && e.status < 600) throw new IT(xt.t("error_api_internal_server_error", { ns: "errors" }), e, null); - if (403 === e.status || 401 === e.status) throw new gA(xt.t("error_api_denied_request_content", { + if (403 === e.status || 401 === e.status) throw new kT(xt.t("error_api_denied_request_content", { ns: "errors" }), e, null); if (!e.ok) throw new Error(`Request failed with status: ${e.status}`); @@ -56390,8 +58609,8 @@ "GET" !== t && (s.body = JSON.stringify(n)); try { l = await fetch(a, s) - } catch (sF) { - throw new xA("Could not connect to server", sF, null) + } catch (MV) { + throw new CT("Could not connect to server", MV, null) } return this.handleResponse(l) } @@ -56402,65 +58621,65 @@ return this.handleRequest(e, "POST", t, n, r) } } - const wA = ({ - rsiApiResult: e, - environment: t - }) => { + const PT = ({ + rsiApiResult: e, + environment: t + }) => { switch (e.code) { - case UC: - return new aA(xt.t("error_not_authenticated", { + case KP: + return new pT(xt.t("error_not_authenticated", { ns: "errors" }), e, t); - case GC: - return new oA(xt.t("error_max_login_attempt", { + case QP: + return new hT(xt.t("error_max_login_attempt", { ns: "errors" }), e, t); - case BC: - return new iA(xt.t("error_invalid_claims", { + case YP: + return new dT(xt.t("error_invalid_claims", { ns: "errors" }), e, t); - case zC: - return new tA(xt.t("error_authentication_mfa", { + case WP: + return new lT(xt.t("error_authentication_mfa", { ns: "errors" }), e, t); - case VC: - return new nA(xt.t("error_wrong_mfa_code", { + case HP: + return new cT(xt.t("error_wrong_mfa_code", { ns: "errors" }), e, t); - case qC: - return new sA(xt.t("error_captcha_required", { + case XP: + return new fT(xt.t("error_captcha_required", { ns: "errors" }), e, t); - case WC: - return new lA(xt.t("error_captcha_invalid", { + case JP: + return new mT(xt.t("error_captcha_invalid", { ns: "errors" }), e, t); - case $C: - return new rA(xt.t("error_session_expired", { + case ZP: + return new uT(xt.t("error_session_expired", { ns: "errors" }), e, t); - case KC: - return new cA(e.msg, e, t); - case YC: - return new uA(e.msg, e, t); - case QC: - return new dA(e.msg, e, t); - case ZC: - return new pA(e.msg, e, t); - case FC: - return new hA(xt.t("error_wrong_credentials", { + case tT: + return new gT(e.msg, e, t); + case nT: + return new vT(e.msg, e, t); + case rT: + return new yT(e.msg, e, t); + case iT: + return new _T(e.msg, e, t); + case qP: + return new bT(xt.t("error_wrong_credentials", { ns: "errors" }), e, t); - case XC: - return new fA(xt.t("error_api_validation_failed", { + case aT: + return new xT(xt.t("error_api_validation_failed", { ns: "errors" }), e, t); - case JC: - return new mA(xt.t("error_api_validation_failed", { + case oT: + return new wT(xt.t("error_api_validation_failed", { ns: "errors" }), e, t); default: - return new eA({ + return new sT({ message: e.msg, code: e.code, payload: e, @@ -56468,7 +58687,7 @@ }) } }, - SA = { + TT = { ACCOUNT_CHECK: "account/check", ACCOUNT_CLAIMS: "account/claims", AGREEMENTS_ACCEPT: "agreements/accept", @@ -56488,10 +58707,10 @@ WARNINGS_GET: "warnings/get", WARNINGS: "warnings" }, - EA = { + RT = { STATUS_PAGE: "index" }; - class OA extends kA { + class DT extends AT { set session(e) { this._session = e } @@ -56514,35 +58733,35 @@ return this._endpoints } constructor() { - super(OA.BASE_URL), this._platformEnv = null, this._session = null, this._device = null, this._endpoints = void 0, this._endpoints = SA, this.init() + super(DT.BASE_URL), this._platformEnv = null, this._session = null, this._device = null, this._endpoints = void 0, this._endpoints = TT, this.init() } async init() { const [e, t, n] = await Promise.all([window.launcherAPI.store.getValueFromStore("session"), window.launcherAPI.store.getValueFromStore("device"), window.launcherAPI.game.getGlobalConfig()]); this._session = e, this._device = t, this._platformEnv = n.environment } static getInstance() { - return OA.instance || (OA.instance = new OA), OA.instance + return DT.instance || (DT.instance = new DT), DT.instance } async call({ - platformId: e = this._platformEnv, - endpoint: t, - payload: n, - session: r = this._session, - device: i = this._device, - options: a - }) { + platformId: e = this._platformEnv, + endpoint: t, + payload: n, + session: r = this._session, + device: i = this._device, + options: a + }) { const o = this.handleSession(r, i); this.handleUrl(e); try { const r = await this.post(t, n, o, a); - if (r.code === HC) throw new _A("Launcher update required.", HC, e); + if (r.code === eT) throw new OT("Launcher update required.", eT, e); if (r.success) return r; - throw wA({ + throw PT({ rsiApiResult: r, environment: e }) - } catch (sF) { - throw sF instanceof rA && (this._session = null, this._device = null), sF + } catch (MV) { + throw MV instanceof uT && (this._session = null, this._device = null), MV } } handleSession(e, t) { @@ -56556,27 +58775,27 @@ }), n } handleUrl(e) { - this.baseUrl = `${OA.BASE_URL}${e?`+${e}`:""}` + this.baseUrl = `${DT.BASE_URL}${e?`+${e}`:""}` } async callImage({ - endpoint: e, - payload: t = {}, - session: n = this._session, - device: r = this._device, - options: i - }) { + endpoint: e, + payload: t = {}, + session: n = this._session, + device: r = this._device, + options: i + }) { try { const a = this.handleSession(n, r), o = await this.post(e, t, a, i), s = await o.arrayBuffer(); return window.btoa(String.fromCharCode(...new Uint8Array(s))) - } catch (sF) { - throw sF + } catch (MV) { + throw MV } } } - OA.instance = void 0, OA.BASE_URL = "rsi"; - class IA { + DT.instance = void 0, DT.BASE_URL = "rsi"; + class LT { constructor() { this.retryCount = 3 } @@ -56587,7 +58806,7 @@ return await e() } catch (i) { var r; - if (console.error(`[ApiRequester] request number ${n} failed`, i), n++, (i instanceof uA || i instanceof dA) && null !== t && void 0 !== t && t.refreshClaims && (console.error("[ApiRequester] claims expired - refresh engaged", i), await t.refreshClaims()), n > (null !== (r = null === t || void 0 === t ? void 0 : t.numberOfRetry) && void 0 !== r ? r : this.retryCount) || this.isUnsafeError(i)) throw i + if (console.error(`[ApiRequester] request number ${n} failed`, i), n++, (i instanceof vT || i instanceof yT) && null !== t && void 0 !== t && t.refreshClaims && (console.error("[ApiRequester] claims expired - refresh engaged", i), await t.refreshClaims()), n > (null !== (r = null === t || void 0 === t ? void 0 : t.numberOfRetry) && void 0 !== r ? r : this.retryCount) || this.isUnsafeError(i)) throw i } await this.delay(500 * n) } @@ -56596,10 +58815,10 @@ return new Promise((t => setTimeout(t, e))) } isUnsafeError(e) { - return e instanceof vA || e instanceof gA || e instanceof _A || e instanceof xA + return e instanceof ST || e instanceof kT || e instanceof OT || e instanceof CT } } - class CA extends IA { + class NT extends LT { constructor(e) { super(), this.client = e } @@ -56640,11 +58859,11 @@ })).data } } - let AA; + let jT; ! function(e) { e.SESSION = "session", e.DAY = "day", e.WEEK = "week", e.MONTH = "month", e.YEAR = "year" - }(AA || (AA = {})); - const PA = { + }(jT || (jT = {})); + const MT = { 1: "Staff", 4: "Backer", 5: "Subscriber", @@ -56657,47 +58876,56 @@ 2028: "PTU - Wave 1 - 3.20", 2282: "EAC_BYPASS" }; - let TA, RA; + let FT, zT; - function DA(e) { - return Object.keys(PA).find((t => PA[t] === e)) + function VT(e) { + return Object.keys(MT).find((t => MT[t] === e)) } - function LA({ - badges: e - }, t) { - const n = Object.values(e).map(DA).filter((e => void 0 !== e)); + function UT({ + badges: e + }, t) { + const n = Object.values(e).map(VT).filter((e => void 0 !== e)); for (const r of t) { - const e = DA(r); + const e = VT(r); if (void 0 === e || !n.includes(e)) return !1 } return !0 } - function NA({ - badges: e - }, t) { - const n = Object.values(e).map(DA).filter((e => void 0 !== e)); + function BT({ + badges: e + }, t) { + const n = Object.values(e).map(VT).filter((e => void 0 !== e)); for (const r of t) { - const e = DA(r); + const e = VT(r); if (void 0 !== e && n.includes(e)) return !0 } return !1 }! function(e) { e.COMM_LINKS = "Comm-Links", e.PATCH_NOTES = "Patch-Notes" - }(TA || (TA = {})), - function(e) { - e.EULA = "eula", e.TOS = "tos", e.DISCLAIMER = "disclaimer" - }(RA || (RA = {})); - const jA = ({ - session_name: e, - session_id: t - }) => ({ + }(FT || (FT = {})), + function(e) { + e.EULA = "eula", e.TOS = "tos", e.DISCLAIMER = "disclaimer" + }(zT || (zT = {})); + const GT = { + year: 31536e6, + month: 2628e6, + day: 864e5, + hour: 36e5, + minute: 6e4, + second: 1e3 + }, + $T = (e, t) => e + (Math.floor(Math.random() * t) + 1), + qT = ({ + session_name: e, + session_id: t + }) => ({ cookie: e, key: `X-${e}`, value: t }), - MA = (e, t) => { + WT = (e, t) => { return { username: t, heapAccountId: e.account_id, @@ -56705,16 +58933,16 @@ displayName: e.displayname, nickname: e.nickname, avatar: e.avatar, - privileged: (n = e, NA(n, ["Staff", "QA", "Game Master", "EAC_BYPASS"])) + privileged: (n = e, BT(n, ["Staff", "QA", "Game Master", "EAC_BYPASS"])) }; var n }, - FA = ({ - device_header: e, - device_id: t, - duration: n - }) => { - const r = zA(n); + HT = ({ + device_header: e, + device_id: t, + duration: n + }) => { + const r = KT(n); return { cookie: "_rsi_device", key: e, @@ -56723,38 +58951,38 @@ expires: r ? Date.now() + r : void 0 } }, - zA = e => ({ - [AA.SESSION]: void 0, - [AA.DAY]: aC.day, - [AA.WEEK]: 7 * aC.day, - [AA.MONTH]: aC.month, - [AA.YEAR]: aC.year + KT = e => ({ + [jT.SESSION]: void 0, + [jT.DAY]: GT.day, + [jT.WEEK]: 7 * GT.day, + [jT.MONTH]: GT.month, + [jT.YEAR]: GT.year } [e]); - class VA { + class YT { constructor(e) { this.success = void 0, this.message = void 0, this.success = e.success, this.message = e.message || null } static success() { - return new VA({ + return new YT({ success: !0 }) } static fail(e) { - return new VA({ + return new YT({ success: !1, message: e }) } } - class UA extends Error { + class QT extends Error { constructor(e, t) { super(e), this.result = void 0, Object.defineProperty(this, "name", { value: "AuthorizationError", writable: !0 - }), Error.captureStackTrace(this, UA), this.result = t + }), Error.captureStackTrace(this, QT), this.result = t } } - class BA extends IA { + class ZT extends LT { constructor(e, t) { super(), this.client = e, this.policy = t } @@ -56771,12 +58999,12 @@ } } async signIn({ - username: e, - password: t, - captcha: n, - remember: r, - launcherVersion: i - }) { + username: e, + password: t, + captcha: n, + remember: r, + launcherVersion: i + }) { try { const a = await this.client.call({ endpoint: this.client.endpoints.SIGN_IN, @@ -56790,27 +59018,27 @@ }); if (a.success) { await this.verifyPolicy(a.data); - const t = MA(a.data, e), - n = jA(a.data); + const t = WT(a.data, e), + n = qT(a.data); return this.client.session = n, { identity: t, session: n } } - throw wA({ + throw PT({ rsiApiResult: a, environment: this.client.platformEnv }) } catch (a) { - throw a instanceof sA && (this.client.session = jA(a.payload.data)), a instanceof tA && (this.client.session = jA(a.payload.data), this.client.device = FA(a.payload.data)), a instanceof UA && (this.client.session = null, this.client.device = null), a + throw a instanceof fT && (this.client.session = qT(a.payload.data)), a instanceof lT && (this.client.session = qT(a.payload.data), this.client.device = HT(a.payload.data)), a instanceof QT && (this.client.session = null, this.client.device = null), a } } async signInMfa({ - username: e, - codeMfa: t, - deviceName: n, - duration: r - }) { + username: e, + codeMfa: t, + deviceName: n, + duration: r + }) { const i = await this.client.call({ endpoint: this.client.endpoints.SIGN_IN_MULTISTEP, payload: { @@ -56823,9 +59051,9 @@ if (i.success) { var a, o; await this.verifyPolicy(i.data); - const t = MA(i.data, e), - n = jA(i.data), - s = FA({ + const t = WT(i.data, e), + n = qT(i.data), + s = HT({ device_id: null === (a = this.client.device) || void 0 === a ? void 0 : a.value, device_header: null === (o = this.client.device) || void 0 === o ? void 0 : o.key, duration: r @@ -56836,7 +59064,7 @@ device: s } } - throw wA({ + throw PT({ rsiApiResult: i, environment: this.client.platformEnv }) @@ -56849,7 +59077,7 @@ claims: await this.getAccountClaims() } }); - return jA(t.data) + return qT(t.data) } async getAccountClaims() { return (await this.client.call({ @@ -56863,7 +59091,7 @@ if (t.includes("-rc.")) return this.policy.verify("signin:release-candidate", e) } } - class GA extends IA { + class XT extends LT { constructor(e) { super(), this.client = e } @@ -56906,7 +59134,7 @@ } } } - class $A extends IA { + class JT extends LT { set gameClaims(e) { this._gameClaims = e } @@ -56934,16 +59162,16 @@ name: n, channels: r } = e, i = Object.values(r).map((({ - id: e, - name: t, - version: n, - versionLabel: r, - platformId: i, - servicesEndpoint: a, - nid: o, - network: s, - installDir: l - }) => ({ + id: e, + name: t, + version: n, + versionLabel: r, + platformId: i, + servicesEndpoint: a, + nid: o, + network: s, + installDir: l + }) => ({ id: e, name: null !== t && void 0 !== t ? t : e, version: n, @@ -56953,7 +59181,7 @@ nid: o, network: s, installDir: l, - status: YI.GameChannelStatus.AVAILABLE + status: xP.GameChannelStatus.AVAILABLE }))); return { id: t, @@ -56964,9 +59192,9 @@ return e } async getRelease({ - gameId: e, - channelId: t - }) { + gameId: e, + channelId: t + }) { this.gameClaims || await this.getGameClaims(); return (await this.operationWithBasicRetry((async () => await this.client.call({ endpoint: this.client.endpoints.GAMES_RELEASE, @@ -57003,16 +59231,16 @@ this.gameClaims = e.data } } - class qA extends kA { + class eR extends AT { constructor() { - super(qA.BASE_URL), this._endpoints = void 0, this._endpoints = EA + super(eR.BASE_URL), this._endpoints = void 0, this._endpoints = RT } async getStatus() { return await this.get(this._endpoints.STATUS_PAGE) } } - qA.BASE_URL = "status"; - class WA { + eR.BASE_URL = "status"; + class tR { constructor(...e) { this.handlers = void 0, this.name = "AnyPermissionEvaluator", this.handlers = (null !== e && void 0 !== e ? e : []).slice() } @@ -57028,40 +59256,40 @@ const r = n.find((e => e.result.success)); if (r) return r.result; const i = n.map((e => `[${e.handlerName}] ${e.result.message}`)).join("\n"); - return VA.fail(`At least one permission evaluator must succeed. Evaluation results:\n${i}`) + return YT.fail(`At least one permission evaluator must succeed. Evaluation results:\n${i}`) } } - class HA { + class nR { constructor() { this.name = "IsStaffPermissionEvaluator" } evaluate(e) { return e.badges && function(e) { - return LA(e, ["Staff"]) - }(e) ? VA.success() : VA.fail() + return UT(e, ["Staff"]) + }(e) ? YT.success() : YT.fail() } } - class KA { + class rR { constructor() { this.name = "IsQAPermissionEvaluator" } evaluate(e) { return e.badges && function(e) { - return LA(e, ["QA"]) - }(e) ? VA.success() : VA.fail() + return UT(e, ["QA"]) + }(e) ? YT.success() : YT.fail() } } - class YA { + class iR { constructor() { this.name = "IsEvocatiPermissionEvaluator" } evaluate(e) { return e.badges && function(e) { - return LA(e, ["Evocati Test Flight"]) - }(e) ? VA.success() : VA.fail() + return UT(e, ["Evocati Test Flight"]) + }(e) ? YT.success() : YT.fail() } } - class QA { + class aR { constructor(e) { this.evaluators = new Map; for (const t of e) this.evaluators.set(t[0], t[1]) @@ -57072,7 +59300,7 @@ } async verify(e, t) { const n = await this.evaluate(e, t); - if (!n.success) throw new UA(`Permission '${e}' verification failed`, n) + if (!n.success) throw new QT(`Permission '${e}' verification failed`, n) } notNullEvaluator(e) { const t = this.evaluators.get(e); @@ -57080,21 +59308,21 @@ return t } } - const ZA = new class { + const oR = new class { constructor() { - this.authentication = void 0, this.content = void 0, this.policy = void 0, this.games = void 0, this.rsi = void 0, this.agreements = void 0, this.status = void 0, this.rsi = OA.getInstance(), this.content = new GA(this.rsi), this.policy = function() { - const e = new HA, - t = new KA, - n = new YA, - r = new WA(e, t), + this.authentication = void 0, this.content = void 0, this.policy = void 0, this.games = void 0, this.rsi = void 0, this.agreements = void 0, this.status = void 0, this.rsi = DT.getInstance(), this.content = new XT(this.rsi), this.policy = function() { + const e = new nR, + t = new rR, + n = new iR, + r = new tR(e, t), i = new Map([ - ["signin:release-candidate", new WA(r, n)] + ["signin:release-candidate", new tR(r, n)] ]); - return new QA(i) - }(), this.authentication = new BA(this.rsi, this.policy), this.games = new $A(this.rsi), this.agreements = new CA(this.rsi), this.status = new qA + return new aR(i) + }(), this.authentication = new ZT(this.rsi, this.policy), this.games = new JT(this.rsi), this.agreements = new NT(this.rsi), this.status = new eR } }; - class XA { + class sR { constructor(e) { this.isMuted = void 0, this.gain = void 0, this.gainNode = void 0, this.soundList = void 0, this.trackList = void 0, this.soundMap = void 0, this.trackMap = void 0, this.trackTitleList = void 0, this.soundRoot = void 0, this.currentBgTrack = void 0, this.audioContext = new AudioContext, this.isMuted = !1, this.gain = e.volume / 100, this.soundList = e.sounds, this.trackList = e.musics, this.soundMap = new Map(Object.entries(e.sounds)), this.trackMap = new Map(Object.entries(e.musics)), this.trackTitleList = Object.keys(e.musics), this.currentBgTrack = null, this.gainNode = this.audioContext.createGain(), this.gainNode.connect(this.audioContext.destination), this.gainNode.gain.value = e.volume / 100; const t = document.getElementById("SoundRoot"); @@ -57148,36 +59376,36 @@ this.playBackgroundTrack(!0) } } - let JA; + let lR; ! function(e) { e.DISPLAY_WARNING_DIALOG = "displayWarningDialog", e.DISPLAY_ACKNOWLEDGE_DIALOG = "displayAcknowledgeDialog", e.DISPLAY_INLINE_MESSAGE = "displayInlineMessage", e.EXECUTE_CALLBACK = "executeCallback" - }(JA || (JA = {})); - const eP = async e => { - const t = Wj.getState().dialog, + }(lR || (lR = {})); + const cR = async e => { + const t = jz.getState().dialog, n = Array.isArray(e) ? e : [e]; for (const { - handler: r, - error: i - } + handler: r, + error: i + } of n) { if (r.skip) return; switch (r.type) { - case JA.DISPLAY_WARNING_DIALOG: + case lR.DISPLAY_WARNING_DIALOG: return void await t.actions.showWarningDialogErrorOccured(r.args); - case JA.DISPLAY_ACKNOWLEDGE_DIALOG: + case lR.DISPLAY_ACKNOWLEDGE_DIALOG: return void await t.actions.showAcknowledgeDialogErrorOccured(r.args); - case JA.EXECUTE_CALLBACK: + case lR.EXECUTE_CALLBACK: return void await r.args.callback(); default: console.error("error", i.message) } } - }, tP = e => { + }, uR = e => { switch (e.code) { - case YI.errorsCodes.ERR_LOGOUT_FAILED: + case xP.errorsCodes.ERR_LOGOUT_FAILED: return { handler: { - type: JA.DISPLAY_ACKNOWLEDGE_DIALOG, + type: lR.DISPLAY_ACKNOWLEDGE_DIALOG, args: { title: xt.t("dialog_warning_logout_title", { ns: "dialog" @@ -57188,10 +59416,10 @@ } }, error: e }; - case YI.errorsCodes.ERR_DISPLAY_AGREEMENT: + case xP.errorsCodes.ERR_DISPLAY_AGREEMENT: return { handler: { - type: JA.DISPLAY_ACKNOWLEDGE_DIALOG, + type: lR.DISPLAY_ACKNOWLEDGE_DIALOG, args: { content: xt.t("agreement_fetch_info_error", { ns: "agreements" @@ -57202,23 +59430,23 @@ default: return { handler: { - type: JA.DISPLAY_ACKNOWLEDGE_DIALOG, + type: lR.DISPLAY_ACKNOWLEDGE_DIALOG, args: {} }, error: e } } }; - var nP = n(1438), - rP = n.n(nP); - const iP = (e, t) => { + var dR = n(1438), + pR = n.n(dR); + const hR = (e, t) => { let n = { ...t, - speed: e.info.speed > 0 ? rP().format(e.info.speed, { + speed: e.info.speed > 0 ? pR().format(e.info.speed, { decimalPlaces: 1 }) : "0" }; switch (e.phase) { - case YI.ipcEvents.installer.INSTALLER_RETRIEVE_REMOTE_FILE_START: + case xP.ipcEvents.installer.INSTALLER_RETRIEVE_REMOTE_FILE_START: n = { ...n, currentPhase: xt.t("download_update_manifest", { @@ -57226,7 +59454,7 @@ }) }; break; - case YI.ipcEvents.installer.INSTALLER_RETRIEVE_REMOTE_FILE_PROGRESS: { + case xP.ipcEvents.installer.INSTALLER_RETRIEVE_REMOTE_FILE_PROGRESS: { const t = e.info.total > 0 && e.info.total < 161061273600; n = { ...n, @@ -57239,8 +59467,8 @@ percentage: t ? e.info.downloaded / e.info.total * 100 : 0 } } - break; - case YI.ipcEvents.installer.INSTALLER_RETRIEVE_REMOTE_FILE_END: + break; + case xP.ipcEvents.installer.INSTALLER_RETRIEVE_REMOTE_FILE_END: n = { ...n, currentPhase: xt.t("downloaded_update_manifest", { @@ -57248,7 +59476,7 @@ }) }; break; - case YI.ipcEvents.installer.COMPUTE_FILE_LIST_DIFFERENCE_START: + case xP.ipcEvents.installer.COMPUTE_FILE_LIST_DIFFERENCE_START: n = { ...n, currentPhase: xt.t("download_analysing_install", { @@ -57256,16 +59484,16 @@ }) }; break; - case YI.ipcEvents.installer.COMPUTE_FILE_LIST_DIFFERENCE_END: - case YI.ipcEvents.installer.INSTALLER_UPDATE_LOOSE_FILE_START: + case xP.ipcEvents.installer.COMPUTE_FILE_LIST_DIFFERENCE_END: + case xP.ipcEvents.installer.INSTALLER_UPDATE_LOOSE_FILE_START: break; - case YI.ipcEvents.installer.INSTALLER_UPDATE_LOOSE_FILE_END: + case xP.ipcEvents.installer.INSTALLER_UPDATE_LOOSE_FILE_END: n = { ...n, isPausable: !1 }; break; - case YI.ipcEvents.installer.INSTALLER_UPDATE_PK4_START: + case xP.ipcEvents.installer.INSTALLER_UPDATE_PK4_START: n = { ...n, isPausable: !1, @@ -57277,7 +59505,7 @@ }) }; break; - case YI.ipcEvents.installer.INSTALLER_UPDATE_PK4_END: + case xP.ipcEvents.installer.INSTALLER_UPDATE_PK4_END: n = { ...n, isPausable: !1, @@ -57285,7 +59513,7 @@ progressUndeterminate: !1 }; break; - case YI.ipcEvents.installer.INSTALLER_DOWNLOAD_PROGRESS: { + case xP.ipcEvents.installer.INSTALLER_DOWNLOAD_PROGRESS: { const t = e.info.total > 0 && e.info.total < 161061273600; n = { ...n, @@ -57301,8 +59529,8 @@ filesTotal: 1 } } - break; - case YI.ipcEvents.installer.INSTALLER_UPDATE_LOOSE_FILE_PROGRESS: { + break; + case xP.ipcEvents.installer.INSTALLER_UPDATE_LOOSE_FILE_PROGRESS: { const r = e.info.total > 0 && e.info.total < 161061273600 && e.info.filesTotal > 0; n = { ...n, @@ -57318,16 +59546,16 @@ isPausable: (null === t || void 0 === t ? void 0 : t.filesDone) !== (null === t || void 0 === t ? void 0 : t.filesTotal) } } - break; - case YI.ipcEvents.installer.INSTALLER_UPDATE_FILE_P4K_START: break; - case YI.ipcEvents.installer.INSTALLER_UPDATE_FILE_P4K_END: + case xP.ipcEvents.installer.INSTALLER_UPDATE_FILE_P4K_START: + break; + case xP.ipcEvents.installer.INSTALLER_UPDATE_FILE_P4K_END: n = { ...n, isPausable: !1 }; break; - case YI.ipcEvents.installer.INSTALLER_UPDATE_FILE_P4K_PROGRESS: { + case xP.ipcEvents.installer.INSTALLER_UPDATE_FILE_P4K_PROGRESS: { const r = e.info.total > 0 && e.info.total < 161061273600 && e.info.filesTotal > 0; n = { ...n, @@ -57346,2877 +59574,166 @@ } return n }, - aP = (e, t) => e.find((e => e.game.gameId === t.gameId && e.game.channelId === t.channelId)), - oP = (e, t) => e.find((e => e.gameId === t.gameId && e.channelId === t.channelId)), - sP = e => e.find((e => e.status === YI.InstallationStatus.IN_PROGRESS || e.status === YI.InstallationStatus.PAUSED || e.status === YI.InstallationStatus.CANCELLING)), - lP = e => e.find((e => e.status === YI.InstallationStatus.CANCELLING)), - cP = (e, t) => `${e.gameId}-${e.channelId}` === `${t.gameId}-${t.channelId}`, - uP = (e, t) => e.filter((e => !cP(e.game, t))), - dP = async (e, t) => { + fR = (e, t) => e.find((e => e.game.gameId === t.gameId && e.game.channelId === t.channelId)), + mR = (e, t) => e.find((e => e.gameId === t.gameId && e.channelId === t.channelId)), + gR = e => e.find((e => e.status === xP.InstallationStatus.IN_PROGRESS || e.status === xP.InstallationStatus.PAUSED || e.status === xP.InstallationStatus.CANCELLING)), + vR = e => e.find((e => e.status === xP.InstallationStatus.CANCELLING)), + yR = (e, t) => `${e.gameId}-${e.channelId}` === `${t.gameId}-${t.channelId}`, + _R = (e, t) => e.filter((e => !yR(e.game, t))), + bR = async (e, t) => { const { application: n, agreements: r - } = Wj.getState(), i = await n.actions.isMinimumWindowsVersion(), a = await n.actions.isRespectingCPUCapabilites(); + } = jz.getState(), i = await n.actions.isMinimumWindowsVersion(), a = await n.actions.isRespectingCPUCapabilites(); console.log("[Requirement] OS check : ", i), console.log("[Requirement] CPU check : ", a); return !!await r.actions.checkAgreements() - }, pP = (e, t, n, r) => e.map((e => cP(e.game, t) ? { + }, xR = (e, t, n, r) => e.map((e => yR(e.game, t) ? { ...e, status: n, options: null !== r && void 0 !== r ? r : e.options - } : e)), hP = () => ({ - queryKey: ["library"], - queryFn: async () => ZA.games.getLibrary() - }), fP = (e, t) => ({ - queryKey: ["games", e, t], - queryFn: async () => ZA.games.getRelease({ - gameId: e, - channelId: t - }) - }), mP = (e, t) => ({ - queryKey: [`platformContent-${e}-${t}`], - queryFn: async () => ZA.content.getContent(e, t), - enabled: !Wj.getState().application.isWindowMinimized || !Wj.getState().application.actions.isOffline(), - select: e => ({ - commLinks: e.commLinks.map(rC), - patchNotes: e.patchNotes.map(rC), - launcherCards: e.launcherCards.map(rC) - }), - refetchInterval: oC(YI.configuration.requestPollingInterval.gamePageContent.base, YI.configuration.requestPollingInterval.gamePageContent.window), - refetchOnWindowFocus: !1, - staleTime: 0, - gcTime: 0 - }); - var gP = n(5391); - var vP = function() { - let e = [], - t = 0, - n = e => { - e() - }, - r = e => { - e() - }; - const i = r => { - t ? e.push(r) : (0, gP.A4)((() => { - n(r) - })) - }, - a = () => { - const t = e; - e = [], t.length && (0, gP.A4)((() => { - r((() => { - t.forEach((e => { - n(e) - })) - })) - })) - }; - return { - batch: e => { - let n; - t++; - try { - n = e() - } finally { - t--, t || a() - } - return n - }, - batchCalls: e => (...t) => { - i((() => { - e(...t) - })) - }, - schedule: i, - setNotifyFunction: e => { - n = e - }, - setBatchNotifyFunction: e => { - r = e - } - } - }(), - yP = n(8974), - _P = new class extends yP.l { - #r; - #t; - #n; - constructor() { - super(), this.#n = e => { - if (!gP.sk && window.addEventListener) { - const t = () => e(); - return window.addEventListener("visibilitychange", t, !1), () => { - window.removeEventListener("visibilitychange", t) - } - } - } - } - onSubscribe() { - this.#t || this.setEventListener(this.#n) - } - onUnsubscribe() { - this.hasListeners() || (this.#t?.(), this.#t = void 0) - } - setEventListener(e) { - this.#n = e, this.#t?.(), this.#t = e((e => { - "boolean" === typeof e ? this.setFocused(e) : this.onFocus() - })) - } - setFocused(e) { - this.#r !== e && (this.#r = e, this.onFocus()) - } - onFocus() { - this.listeners.forEach((e => { - e() - })) - } - isFocused() { - return "boolean" === typeof this.#r ? this.#r : "hidden" !== globalThis.document?.visibilityState - } + } : e)); + var wR = n(4499); + const kR = e => ({ + ...e, + media: void 0 + }), + SR = e => ({ + ...e, + publish_start: void 0, + time_created: void 0 + }), + ER = (e, t) => { + const n = new Date(e.publish_start || 0).getTime(); + return new Date(t.publish_start || 0).getTime() - n }, - bP = n(1901); - - function xP(e) { - return Math.min(1e3 * 2 ** e, 3e4) - } - - function kP(e) { - return "online" !== (e ?? "online") || bP.N.isOnline() - } - var wP = class { - constructor(e) { - this.revert = e?.revert, this.silent = e?.silent - } - }; - - function SP(e) { - return e instanceof wP - } - - function EP(e) { - let t, n, r, i = !1, - a = 0, - o = !1; - const s = new Promise(((e, t) => { - n = e, r = t - })), - l = () => !_P.isFocused() || "always" !== e.networkMode && !bP.N.isOnline(), - c = r => { - o || (o = !0, e.onSuccess?.(r), t?.(), n(r)) - }, - u = n => { - o || (o = !0, e.onError?.(n), t?.(), r(n)) - }, - d = () => new Promise((n => { - t = e => { - const t = o || !l(); - return t && n(e), t - }, e.onPause?.() - })).then((() => { - t = void 0, o || e.onContinue?.() - })), - p = () => { - if (o) return; - let t; - try { - t = e.fn() - } catch (n) { - t = Promise.reject(n) - } - Promise.resolve(t).then(c).catch((t => { - if (o) return; - const n = e.retry ?? (gP.sk ? 0 : 3), - r = e.retryDelay ?? xP, - s = "function" === typeof r ? r(a, t) : r, - c = !0 === n || "number" === typeof n && a < n || "function" === typeof n && n(a, t); - !i && c ? (a++, e.onFail?.(a, t), (0, gP._v)(s).then((() => { - if (l()) return d() - })).then((() => { - i ? u(t) : p() - }))) : u(t) - })) - }; - return kP(e.networkMode) ? p() : d().then(p), { - promise: s, - cancel: t => { - o || (u(new wP(t)), e.abort?.()) - }, - continue: () => { - const e = t?.(); - return e ? s : Promise.resolve() - }, - cancelRetry: () => { - i = !0 - }, - continueRetry: () => { - i = !1 - } - } - } - var OP = class { - #i; - destroy() { - this.clearGcTimeout() - } - scheduleGc() { - this.clearGcTimeout(), (0, gP.PN)(this.gcTime) && (this.#i = setTimeout((() => { - this.optionalRemove() - }), this.gcTime)) - } - updateGcTime(e) { - this.gcTime = Math.max(this.gcTime || 0, e ?? (gP.sk ? 1 / 0 : 3e5)) - } - clearGcTimeout() { - this.#i && (clearTimeout(this.#i), this.#i = void 0) - } - }, - IP = class extends OP { - constructor(e) { - super(), this.#a = !1, this.#o = e.defaultOptions, this.#s(e.options), this.#l = [], this.#c = e.cache, this.queryKey = e.queryKey, this.queryHash = e.queryHash, this.#u = e.state || function(e) { - const t = "function" === typeof e.initialData ? e.initialData() : e.initialData, - n = "undefined" !== typeof t, - r = n ? "function" === typeof e.initialDataUpdatedAt ? e.initialDataUpdatedAt() : e.initialDataUpdatedAt : 0; - return { - data: t, - dataUpdateCount: 0, - dataUpdatedAt: n ? r ?? Date.now() : 0, - error: null, - errorUpdateCount: 0, - errorUpdatedAt: 0, - fetchFailureCount: 0, - fetchFailureReason: null, - fetchMeta: null, - isInvalidated: !1, - status: n ? "success" : "pending", - fetchStatus: "idle" - } - }(this.options), this.state = this.#u, this.scheduleGc() - } - #u; - #d; - #c; - #p; - #h; - #l; - #o; - #a; - get meta() { - return this.options.meta - } - #s(e) { - this.options = { - ...this.#o, - ...e - }, this.updateGcTime(this.options.gcTime) - } - optionalRemove() { - this.#l.length || "idle" !== this.state.fetchStatus || this.#c.remove(this) - } - setData(e, t) { - const n = (0, gP.oE)(this.state.data, e, this.options); - return this.#f({ - data: n, - type: "success", - dataUpdatedAt: t?.updatedAt, - manual: t?.manual - }), n - } - setState(e, t) { - this.#f({ - type: "setState", - state: e, - setStateOptions: t - }) - } - cancel(e) { - const t = this.#p; - return this.#h?.cancel(e), t ? t.then(gP.ZT).catch(gP.ZT) : Promise.resolve() - } - destroy() { - super.destroy(), this.cancel({ - silent: !0 - }) - } - reset() { - this.destroy(), this.setState(this.#u) - } - isActive() { - return this.#l.some((e => !1 !== e.options.enabled)) - } - isDisabled() { - return this.getObserversCount() > 0 && !this.isActive() - } - isStale() { - return this.state.isInvalidated || !this.state.dataUpdatedAt || this.#l.some((e => e.getCurrentResult().isStale)) - } - isStaleByTime(e = 0) { - return this.state.isInvalidated || !this.state.dataUpdatedAt || !(0, gP.Kp)(this.state.dataUpdatedAt, e) - } - onFocus() { - const e = this.#l.find((e => e.shouldFetchOnWindowFocus())); - e?.refetch({ - cancelRefetch: !1 - }), this.#h?.continue() - } - onOnline() { - const e = this.#l.find((e => e.shouldFetchOnReconnect())); - e?.refetch({ - cancelRefetch: !1 - }), this.#h?.continue() - } - addObserver(e) { - this.#l.includes(e) || (this.#l.push(e), this.clearGcTimeout(), this.#c.notify({ - type: "observerAdded", - query: this, - observer: e - })) - } - removeObserver(e) { - this.#l.includes(e) && (this.#l = this.#l.filter((t => t !== e)), this.#l.length || (this.#h && (this.#a ? this.#h.cancel({ - revert: !0 - }) : this.#h.cancelRetry()), this.scheduleGc()), this.#c.notify({ - type: "observerRemoved", - query: this, - observer: e - })) - } - getObserversCount() { - return this.#l.length - } - invalidate() { - this.state.isInvalidated || this.#f({ - type: "invalidate" - }) - } - fetch(e, t) { - if ("idle" !== this.state.fetchStatus) - if (this.state.dataUpdatedAt && t?.cancelRefetch) this.cancel({ - silent: !0 - }); - else if (this.#p) return this.#h?.continueRetry(), this.#p; - if (e && this.#s(e), !this.options.queryFn) { - const e = this.#l.find((e => e.options.queryFn)); - e && this.#s(e.options) - } - const n = new AbortController, - r = { - queryKey: this.queryKey, - meta: this.meta - }, - i = e => { - Object.defineProperty(e, "signal", { - enumerable: !0, - get: () => (this.#a = !0, n.signal) - }) - }; - i(r); - const a = { - fetchOptions: t, - options: this.options, - queryKey: this.queryKey, - state: this.state, - fetchFn: () => this.options.queryFn ? (this.#a = !1, this.options.persister ? this.options.persister(this.options.queryFn, r, this) : this.options.queryFn(r)) : Promise.reject(new Error(`Missing queryFn: '${this.options.queryHash}'`)) - }; - i(a), this.options.behavior?.onFetch(a, this), this.#d = this.state, "idle" !== this.state.fetchStatus && this.state.fetchMeta === a.fetchOptions?.meta || this.#f({ - type: "fetch", - meta: a.fetchOptions?.meta - }); - const o = e => { - SP(e) && e.silent || this.#f({ - type: "error", - error: e - }), SP(e) || (this.#c.config.onError?.(e, this), this.#c.config.onSettled?.(this.state.data, e, this)), this.isFetchingOptimistic || this.scheduleGc(), this.isFetchingOptimistic = !1 - }; - return this.#h = EP({ - fn: a.fetchFn, - abort: n.abort.bind(n), - onSuccess: e => { - "undefined" !== typeof e ? (this.setData(e), this.#c.config.onSuccess?.(e, this), this.#c.config.onSettled?.(e, this.state.error, this), this.isFetchingOptimistic || this.scheduleGc(), this.isFetchingOptimistic = !1) : o(new Error(`${this.queryHash} data is undefined`)) - }, - onError: o, - onFail: (e, t) => { - this.#f({ - type: "failed", - failureCount: e, - error: t - }) - }, - onPause: () => { - this.#f({ - type: "pause" - }) - }, - onContinue: () => { - this.#f({ - type: "continue" - }) - }, - retry: a.options.retry, - retryDelay: a.options.retryDelay, - networkMode: a.options.networkMode - }), this.#p = this.#h.promise, this.#p - } - #f(e) { - this.state = (t => { - switch (e.type) { - case "failed": - return { - ...t, fetchFailureCount: e.failureCount, fetchFailureReason: e.error - }; - case "pause": - return { - ...t, fetchStatus: "paused" - }; - case "continue": - return { - ...t, fetchStatus: "fetching" - }; - case "fetch": - return { - ...t, fetchFailureCount: 0, fetchFailureReason: null, fetchMeta: e.meta ?? null, fetchStatus: kP(this.options.networkMode) ? "fetching" : "paused", ...!t.dataUpdatedAt && { - error: null, - status: "pending" - } - }; - case "success": - return { - ...t, data: e.data, dataUpdateCount: t.dataUpdateCount + 1, dataUpdatedAt: e.dataUpdatedAt ?? Date.now(), error: null, isInvalidated: !1, status: "success", ...!e.manual && { - fetchStatus: "idle", - fetchFailureCount: 0, - fetchFailureReason: null - } - }; - case "error": - const n = e.error; - return SP(n) && n.revert && this.#d ? { - ...this.#d, - fetchStatus: "idle" - } : { - ...t, - error: n, - errorUpdateCount: t.errorUpdateCount + 1, - errorUpdatedAt: Date.now(), - fetchFailureCount: t.fetchFailureCount + 1, - fetchFailureReason: n, - fetchStatus: "idle", - status: "error" - }; - case "invalidate": - return { - ...t, isInvalidated: !0 - }; - case "setState": - return { - ...t, ...e.state - } - } - })(this.state), vP.batch((() => { - this.#l.forEach((e => { - e.onQueryUpdate() - })), this.#c.notify({ - query: this, - type: "updated", - action: e - }) - })) - } - }; - var CP = class extends yP.l { - constructor(e = {}) { - super(), this.config = e, this.#m = new Map - } - #m; - build(e, t, n) { - const r = t.queryKey, - i = t.queryHash ?? (0, gP.Rm)(r, t); - let a = this.get(i); - return a || (a = new IP({ - cache: this, - queryKey: r, - queryHash: i, - options: e.defaultQueryOptions(t), - state: n, - defaultOptions: e.getQueryDefaults(r) - }), this.add(a)), a - } - add(e) { - this.#m.has(e.queryHash) || (this.#m.set(e.queryHash, e), this.notify({ - type: "added", - query: e - })) - } - remove(e) { - const t = this.#m.get(e.queryHash); - t && (e.destroy(), t === e && this.#m.delete(e.queryHash), this.notify({ - type: "removed", - query: e - })) - } - clear() { - vP.batch((() => { - this.getAll().forEach((e => { - this.remove(e) - })) - })) - } - get(e) { - return this.#m.get(e) - } - getAll() { - return [...this.#m.values()] - } - find(e) { - const t = { - exact: !0, - ...e - }; - return this.getAll().find((e => (0, gP._x)(t, e))) - } - findAll(e = {}) { - const t = this.getAll(); - return Object.keys(e).length > 0 ? t.filter((t => (0, gP._x)(e, t))) : t - } - notify(e) { - vP.batch((() => { - this.listeners.forEach((t => { - t(e) - })) - })) - } - onFocus() { - vP.batch((() => { - this.getAll().forEach((e => { - e.onFocus() - })) - })) - } - onOnline() { - vP.batch((() => { - this.getAll().forEach((e => { - e.onOnline() - })) - })) - } - }, - AP = class extends OP { - constructor(e) { - super(), this.mutationId = e.mutationId, this.#o = e.defaultOptions, this.#g = e.mutationCache, this.#l = [], this.state = e.state || { - context: void 0, - data: void 0, - error: null, - failureCount: 0, - failureReason: null, - isPaused: !1, - status: "idle", - variables: void 0, - submittedAt: 0 - }, this.setOptions(e.options), this.scheduleGc() - } - #l; - #o; - #g; - #h; - setOptions(e) { - this.options = { - ...this.#o, - ...e - }, this.updateGcTime(this.options.gcTime) - } - get meta() { - return this.options.meta - } - addObserver(e) { - this.#l.includes(e) || (this.#l.push(e), this.clearGcTimeout(), this.#g.notify({ - type: "observerAdded", - mutation: this, - observer: e - })) - } - removeObserver(e) { - this.#l = this.#l.filter((t => t !== e)), this.scheduleGc(), this.#g.notify({ - type: "observerRemoved", - mutation: this, - observer: e - }) - } - optionalRemove() { - this.#l.length || ("pending" === this.state.status ? this.scheduleGc() : this.#g.remove(this)) - } - continue () { - return this.#h?.continue() ?? this.execute(this.state.variables) - } - async execute(e) { - const t = () => (this.#h = EP({ - fn: () => this.options.mutationFn ? this.options.mutationFn(e) : Promise.reject(new Error("No mutationFn found")), - onFail: (e, t) => { - this.#f({ - type: "failed", - failureCount: e, - error: t - }) - }, - onPause: () => { - this.#f({ - type: "pause" - }) - }, - onContinue: () => { - this.#f({ - type: "continue" - }) - }, - retry: this.options.retry ?? 0, - retryDelay: this.options.retryDelay, - networkMode: this.options.networkMode - }), this.#h.promise), - n = "pending" === this.state.status; - try { - if (!n) { - this.#f({ - type: "pending", - variables: e - }), await (this.#g.config.onMutate?.(e, this)); - const t = await (this.options.onMutate?.(e)); - t !== this.state.context && this.#f({ - type: "pending", - context: t, - variables: e - }) - } - const r = await t(); - return await (this.#g.config.onSuccess?.(r, e, this.state.context, this)), await (this.options.onSuccess?.(r, e, this.state.context)), await (this.#g.config.onSettled?.(r, null, this.state.variables, this.state.context, this)), await (this.options.onSettled?.(r, null, e, this.state.context)), this.#f({ - type: "success", - data: r - }), r - } catch (r) { - try { - throw await (this.#g.config.onError?.(r, e, this.state.context, this)), await (this.options.onError?.(r, e, this.state.context)), await (this.#g.config.onSettled?.(void 0, r, this.state.variables, this.state.context, this)), await (this.options.onSettled?.(void 0, r, e, this.state.context)), r - } finally { - this.#f({ - type: "error", - error: r - }) - } - } - } - #f(e) { - this.state = (t => { - switch (e.type) { - case "failed": - return { - ...t, failureCount: e.failureCount, failureReason: e.error - }; - case "pause": - return { - ...t, isPaused: !0 - }; - case "continue": - return { - ...t, isPaused: !1 - }; - case "pending": - return { - ...t, context: e.context, data: void 0, failureCount: 0, failureReason: null, error: null, isPaused: !kP(this.options.networkMode), status: "pending", variables: e.variables, submittedAt: Date.now() - }; - case "success": - return { - ...t, data: e.data, failureCount: 0, failureReason: null, error: null, status: "success", isPaused: !1 - }; - case "error": - return { - ...t, data: void 0, error: e.error, failureCount: t.failureCount + 1, failureReason: e.error, isPaused: !1, status: "error" - } - } - })(this.state), vP.batch((() => { - this.#l.forEach((t => { - t.onMutationUpdate(e) - })), this.#g.notify({ - mutation: this, - type: "updated", - action: e - }) - })) - } - }; - var PP = class extends yP.l { - constructor(e = {}) { - super(), this.config = e, this.#v = [], this.#y = 0 - } - #v; - #y; - #_; - build(e, t, n) { - const r = new AP({ - mutationCache: this, - mutationId: ++this.#y, - options: e.defaultMutationOptions(t), - state: n - }); - return this.add(r), r - } - add(e) { - this.#v.push(e), this.notify({ - type: "added", - mutation: e - }) - } - remove(e) { - this.#v = this.#v.filter((t => t !== e)), this.notify({ - type: "removed", - mutation: e - }) - } - clear() { - vP.batch((() => { - this.#v.forEach((e => { - this.remove(e) - })) - })) - } - getAll() { - return this.#v - } - find(e) { - const t = { - exact: !0, - ...e - }; - return this.#v.find((e => (0, gP.X7)(t, e))) - } - findAll(e = {}) { - return this.#v.filter((t => (0, gP.X7)(e, t))) - } - notify(e) { - vP.batch((() => { - this.listeners.forEach((t => { - t(e) - })) - })) - } - resumePausedMutations() { - return this.#_ = (this.#_ ?? Promise.resolve()).then((() => { - const e = this.#v.filter((e => e.state.isPaused)); - return vP.batch((() => e.reduce(((e, t) => e.then((() => t.continue().catch(gP.ZT)))), Promise.resolve()))) - })).then((() => { - this.#_ = void 0 - })), this.#_ - } - }; - - function TP(e) { - return { - onFetch: (t, n) => { - const r = async () => { - const n = t.options, - r = t.fetchOptions?.meta?.fetchMore?.direction, - i = t.state.data?.pages || [], - a = t.state.data?.pageParams || [], - o = { - pages: [], - pageParams: [] - }; - let s = !1; - const l = t.options.queryFn || (() => Promise.reject(new Error(`Missing queryFn: '${t.options.queryHash}'`))), - c = async (e, n, r) => { - if (s) return Promise.reject(); - if (null == n && e.pages.length) return Promise.resolve(e); - const i = { - queryKey: t.queryKey, - pageParam: n, - direction: r ? "backward" : "forward", - meta: t.options.meta - }; - var a; - a = i, Object.defineProperty(a, "signal", { - enumerable: !0, - get: () => (t.signal.aborted ? s = !0 : t.signal.addEventListener("abort", (() => { - s = !0 - })), t.signal) - }); - const o = await l(i), - { - maxPages: c - } = t.options, - u = r ? gP.Ht : gP.VX; - return { - pages: u(e.pages, o, c), - pageParams: u(e.pageParams, n, c) - } - }; - let u; - if (r && i.length) { - const e = "backward" === r, - t = { - pages: i, - pageParams: a - }, - o = (e ? DP : RP)(n, t); - u = await c(t, o, e) - } else { - u = await c(o, a[0] ?? n.initialPageParam); - const t = e ?? i.length; - for (let e = 1; e < t; e++) { - const e = RP(n, u); - u = await c(u, e) - } - } - return u - }; - t.options.persister ? t.fetchFn = () => t.options.persister?.(r, { - queryKey: t.queryKey, - meta: t.options.meta, - signal: t.signal - }, n) : t.fetchFn = r - } - } - } - - function RP(e, { - pages: t, - pageParams: n - }) { - const r = t.length - 1; - return e.getNextPageParam(t[r], t, n[r], n) - } - - function DP(e, { - pages: t, - pageParams: n - }) { - return e.getPreviousPageParam?.(t[0], t, n[0], n) - } - const LP = async e => { - var t; - if (!(e instanceof eA || e instanceof UA)) return; - if (!NP(e)) return; - const { - application: { - platformMaster: n - }, - user: { - identity: r - } - } = Wj.getState(), i = e instanceof UA ? gC : e.code, a = e instanceof UA ? n : null !== (t = e.environment) && void 0 !== t ? t : n; - window.launcherAPI.analytics.setAnalyticsEvent(YI.AnalyticsEventName.APP_API_ERROR, { - ErrorCode: i, - ErrorMessage: e.message, - ...r, - Environment: a - }) - }, NP = e => { - if (e instanceof gA || e instanceof vA || e instanceof rA || e instanceof pA || e instanceof UA) return !0; - const { - application: { - connection: t - } - } = Wj.getState(); - return e instanceof xA && t.mode === YI.ConnectionMode.ONLINE - }, jP = async (e = { - clearDevice: !1 - }) => { - var t; - const n = Wj.getState().application, - r = Wj.getState().authentication, - i = Wj.getState().user, - a = (null === (t = i.device) || void 0 === t ? void 0 : t.duration) === AA.SESSION || (null === e || void 0 === e ? void 0 : e.clearDevice); - try { - (i.sessions[n.platformMaster] && Object.keys(i.sessions[n.platformMaster] || {}).length > 0 ? i.sessions[n.platformMaster] : null) && (ZA.games.clearClaims(), await ZA.authentication.signOut({ - clearDevice: a - })) - } catch (o) { - if (o instanceof Error && !n.actions.isOffline()) { - const e = new YI.GenericError({ - code: YI.errorsNames.ERR_LOGOUT_FAILED, - message: `[Logout] Error: Failed ${o}`, - payload: null - }); - throw await eP(tP(e)), o - } - } finally { - FP.clear(), r.actions.resetAuthentication(), n.actions.resetApplication(), i.actions.resetUser(e), cC().authentication.setSignOut() - } - }, MP = async e => { - switch (!0) { - case e instanceof gA: - await jP(), await Wj.getState().dialog.actions.showAcknowledgeDialogErrorOccured({ - title: xt.t("error_api_denied_request_title", { - ns: "errors" - }), - content: e.message - }); - break; - case e instanceof vA: - await jP(), await Wj.getState().dialog.actions.showAcknowledgeDialogErrorOccured({ - title: xt.t("error_api_too_many_requests_title", { - ns: "errors" - }), - content: e.message - }); - break; - case e instanceof xA: - const { - application: { - connection: t, - actions: n - } - } = Wj.getState(); - if (t.mode === YI.ConnectionMode.NO_CONNECTION) return; - n.checkConnection(); - break; - case e instanceof rA: - await jP(), await Wj.getState().dialog.actions.showAcknowledgeDialogErrorOccured({ - title: xt.t("error_api_auth_expired_title", { - ns: "errors" - }), - content: e.message - }); - break; - case e instanceof uA: - case e instanceof hA: - case e instanceof tA: - case e instanceof pA: - case e instanceof UA: - case e instanceof nA: - case e instanceof sA: - case e instanceof lA: - break; - case e instanceof aA: - await jP(), await Wj.getState().dialog.actions.showAcknowledgeDialogErrorOccured({ - title: xt.t("error_generic_title", { - ns: "errors" - }), - content: e.message - }); - break; - case e instanceof oA: - case e instanceof cA: - break; - default: - await Wj.getState().dialog.actions.showAcknowledgeDialogErrorOccured({ - title: xt.t("error_generic_title", { - ns: "errors" - }), - content: e.message - }) - } - }, FP = new class { - #b; - #g; - #o; - #x; - #k; - #w; - #S; - #E; - constructor(e = {}) { - this.#b = e.queryCache || new CP, this.#g = e.mutationCache || new PP, this.#o = e.defaultOptions || {}, this.#x = new Map, this.#k = new Map, this.#w = 0 - } - mount() { - this.#w++, 1 === this.#w && (this.#S = _P.subscribe((() => { - _P.isFocused() && (this.resumePausedMutations(), this.#b.onFocus()) - })), this.#E = bP.N.subscribe((() => { - bP.N.isOnline() && (this.resumePausedMutations(), this.#b.onOnline()) - }))) - } - unmount() { - this.#w--, 0 === this.#w && (this.#S?.(), this.#S = void 0, this.#E?.(), this.#E = void 0) - } - isFetching(e) { - return this.#b.findAll({ - ...e, - fetchStatus: "fetching" - }).length - } - isMutating(e) { - return this.#g.findAll({ - ...e, - status: "pending" - }).length - } - getQueryData(e) { - return this.#b.find({ - queryKey: e - })?.state.data - } - ensureQueryData(e) { - const t = this.getQueryData(e.queryKey); - return void 0 !== t ? Promise.resolve(t) : this.fetchQuery(e) - } - getQueriesData(e) { - return this.getQueryCache().findAll(e).map((({ - queryKey: e, - state: t - }) => [e, t.data])) - } - setQueryData(e, t, n) { - const r = this.#b.find({ - queryKey: e - })?.state.data, - i = (0, gP.SE)(t, r); - if ("undefined" === typeof i) return; - const a = this.defaultQueryOptions({ - queryKey: e - }); - return this.#b.build(this, a).setData(i, { - ...n, - manual: !0 - }) - } - setQueriesData(e, t, n) { - return vP.batch((() => this.getQueryCache().findAll(e).map((({ - queryKey: e - }) => [e, this.setQueryData(e, t, n)])))) - } - getQueryState(e) { - return this.#b.find({ - queryKey: e - })?.state - } - removeQueries(e) { - const t = this.#b; - vP.batch((() => { - t.findAll(e).forEach((e => { - t.remove(e) - })) - })) - } - resetQueries(e, t) { - const n = this.#b, - r = { - type: "active", - ...e - }; - return vP.batch((() => (n.findAll(e).forEach((e => { - e.reset() - })), this.refetchQueries(r, t)))) - } - cancelQueries(e = {}, t = {}) { - const n = { - revert: !0, - ...t - }, - r = vP.batch((() => this.#b.findAll(e).map((e => e.cancel(n))))); - return Promise.all(r).then(gP.ZT).catch(gP.ZT) - } - invalidateQueries(e = {}, t = {}) { - return vP.batch((() => { - if (this.#b.findAll(e).forEach((e => { - e.invalidate() - })), "none" === e.refetchType) return Promise.resolve(); - const n = { - ...e, - type: e.refetchType ?? e.type ?? "active" - }; - return this.refetchQueries(n, t) - })) - } - refetchQueries(e = {}, t) { - const n = { - ...t, - cancelRefetch: t?.cancelRefetch ?? !0 - }, - r = vP.batch((() => this.#b.findAll(e).filter((e => !e.isDisabled())).map((e => { - let t = e.fetch(void 0, n); - return n.throwOnError || (t = t.catch(gP.ZT)), "paused" === e.state.fetchStatus ? Promise.resolve() : t - })))); - return Promise.all(r).then(gP.ZT) - } - fetchQuery(e) { - const t = this.defaultQueryOptions(e); - "undefined" === typeof t.retry && (t.retry = !1); - const n = this.#b.build(this, t); - return n.isStaleByTime(t.staleTime) ? n.fetch(t) : Promise.resolve(n.state.data) - } - prefetchQuery(e) { - return this.fetchQuery(e).then(gP.ZT).catch(gP.ZT) - } - fetchInfiniteQuery(e) { - return e.behavior = TP(e.pages), this.fetchQuery(e) - } - prefetchInfiniteQuery(e) { - return this.fetchInfiniteQuery(e).then(gP.ZT).catch(gP.ZT) - } - resumePausedMutations() { - return this.#g.resumePausedMutations() - } - getQueryCache() { - return this.#b - } - getMutationCache() { - return this.#g - } - getDefaultOptions() { - return this.#o - } - setDefaultOptions(e) { - this.#o = e - } - setQueryDefaults(e, t) { - this.#x.set((0, gP.Ym)(e), { - queryKey: e, - defaultOptions: t - }) - } - getQueryDefaults(e) { - const t = [...this.#x.values()]; - let n = {}; - return t.forEach((t => { - (0, gP.to)(e, t.queryKey) && (n = { - ...n, - ...t.defaultOptions - }) - })), n - } - setMutationDefaults(e, t) { - this.#k.set((0, gP.Ym)(e), { - mutationKey: e, - defaultOptions: t - }) - } - getMutationDefaults(e) { - const t = [...this.#k.values()]; - let n = {}; - return t.forEach((t => { - (0, gP.to)(e, t.mutationKey) && (n = { - ...n, - ...t.defaultOptions - }) - })), n - } - defaultQueryOptions(e) { - if (e?._defaulted) return e; - const t = { - ...this.#o.queries, - ...e?.queryKey && this.getQueryDefaults(e.queryKey), - ...e, - _defaulted: !0 - }; - return t.queryHash || (t.queryHash = (0, gP.Rm)(t.queryKey, t)), "undefined" === typeof t.refetchOnReconnect && (t.refetchOnReconnect = "always" !== t.networkMode), "undefined" === typeof t.throwOnError && (t.throwOnError = !!t.suspense), "undefined" === typeof t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t - } - defaultMutationOptions(e) { - return e?._defaulted ? e : { - ...this.#o.mutations, - ...e?.mutationKey && this.getMutationDefaults(e.mutationKey), - ...e, - _defaulted: !0 - } - } - clear() { - this.#b.clear(), this.#g.clear() - } - }({ - defaultOptions: { - queries: { - gcTime: 12e5, - staleTime: 3e5, - networkMode: "online", - refetchOnReconnect: "always" - } - }, - mutationCache: new PP({ - onError: async e => { - await LP(e), await MP(e), window.launcherAPI.log.error("[Mutation] Error: ", e) + OR = (e, t) => (e.weight || 0) - (t.weight || 0), + IR = (e, t) => e.weight - t.weight, + CR = e => ({ + ...e, + publish_start: e.publish_start ? e.publish_start + " UTC" : void 0, + time_created: e.time_created ? e.time_created + " UTC" : void 0 + }), + AR = (e, t = "div") => (0, Ee.createElement)(t, { + dangerouslySetInnerHTML: { + __html: e } }), - queryCache: new CP({ - onError: async e => { - await LP(e), await MP(e), window.launcherAPI.log.error("[Query] Error: ", e) - } - }) - }), zP = (e, t) => ({ - agreements: { - warningHasBeenAccepted: !1, - actions: { - checkWarnings: async () => { - const n = t(); - try { - const t = await FP.fetchQuery({ - queryKey: ["warnings"], - queryFn: async () => ZA.agreements.getWarnings() - }), - r = t ? t[0] : null; - if (!(r && r.id && !n.agreements.warningHasBeenAccepted)) return !0; - const i = await FP.fetchQuery((e => ({ - queryKey: ["warningInfo"], - queryFn: async () => ZA.agreements.getWarningInfo(e) - }))(r.id)), - { - title: a, - body: o - } = i, - s = await n.dialog.actions.showWarningsDialog(a, o); - return e((e => ({ - agreements: { - ...e.agreements, - warningHasBeenAccepted: s.resolved - } - }))), s.resolved - } catch (r) { - return console.error("[Warnings] warnings error", r), !1 - } - }, - checkAgreements: async () => { - const e = t(); - try { - const t = await FP.fetchQuery({ - queryKey: ["agreements"], - queryFn: async () => ZA.agreements.checkAgreements() - }); - return t.auth ? await e.agreements.actions.checkWarnings() : t.auth - } catch (n) { - return n instanceof cA && e.agreements.actions.checkAgreementsFailure(n) - } - }, - checkAgreementsFailure: async e => { - var n; - const r = null !== (n = e.payload.data.agreements) && void 0 !== n ? n : [], - i = t(); - try { - const e = [RA.EULA, RA.TOS, RA.DISCLAIMER].map((e => r.filter((t => t.type === e)))).reduce(((e, t) => e.concat(t)), []); - return await i.agreements.actions.displayAgreement(e) - } catch (a) { - return console.error("[Agreements] - error", a), !1 - } - }, - displayAgreement: async n => { - const r = t(), - [i, ...a] = n; - e((e => ({ - installer: { - ...e.installer, - isDownloadPopoverOpened: !1 + PR = (e, t = "short", { + showTime: n = !0, + ...r + } = {}) => { + const i = new Date(e); + switch (t) { + case "short": + case "long": + return new Intl.DateTimeFormat("default", { + dateStyle: t, + ...r, + ...n && { + timeStyle: "short" } - }))); - try { - const e = await FP.fetchQuery(((e, t) => ({ - queryKey: ["agreementInfo"], - queryFn: async () => ZA.agreements.getAgreementInfo(e, t) - }))(i.id, i.type)), - { - title: t, - subtitle: n, - body: o - } = e, - s = await r.dialog.actions.showAgreementsDialog(t, n, o); - if (s.resolved) { - await FP.fetchQuery(((e, t) => ({ - queryKey: ["agreementAccept"], - queryFn: async () => ZA.agreements.acceptAgreement(e, t) - }))(i.id, i.type)); - const e = a; - return e.length > 0 ? await r.agreements.actions.displayAgreement(e) : await r.agreements.actions.checkWarnings() - } - return s.resolved - } catch (o) { - if (o instanceof Error) { - const e = new YI.GenericError({ - code: YI.errorsNames.ERR_DISPLAY_AGREEMENT, - message: `[Agreement] displaying agreements error ${o}`, - payload: { - error: o - } - }); - await eP(tP(e)) - } - return console.error("[Agreements] - error displaying agreements", o), !1 - } - } + }).format(i); + case "relative": + return ((e, t = new Date, n = {}) => { + const r = e.getTime() - t.getTime(); + for (const [i, a] of Object.entries(GT)) + if (Math.abs(r) > a || "second" === i) return new Intl.RelativeTimeFormat("default", { + numeric: "auto", + localeMatcher: "lookup", + ...n + }).format(Math.round(r / a), i) + })(i, new Date, r) } - } - }); - let VP = e => { - var { - title: t, - titleId: n - } = e, r = function(e, t) { - if (null == e) return {}; - var n, r, i = function(e, t) { - if (null == e) return {}; - var n, r, i = {}, - a = Object.keys(e); - for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) >= 0 || (i[n] = e[n]); - return i - }(e, t); - if (Object.getOwnPropertySymbols) { - var a = Object.getOwnPropertySymbols(e); - for (r = 0; r < a.length; r++) n = a[r], !(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n) && (i[n] = e[n]) - } - return i - }(e, ["title", "titleId"]); - return Ee.createElement("svg", function(e) { - for (var t = 1; t < arguments.length; t++) { - var n = null != arguments[t] ? arguments[t] : {}, - r = Object.keys(n); - "function" == typeof Object.getOwnPropertySymbols && (r = r.concat(Object.getOwnPropertySymbols(n).filter((function(e) { - return Object.getOwnPropertyDescriptor(n, e).enumerable - })))), r.forEach((function(t) { - var r; - r = n[t], t in e ? Object.defineProperty(e, t, { - value: r, - enumerable: !0, - configurable: !0, - writable: !0 - }) : e[t] = r - })) - } - return e - }({ - xmlns: "http://www.w3.org/2000/svg", - width: 16, - height: 16, - fill: "currentColor", - viewBox: "0 0 16 16", - focusable: !1, - "aria-labelledby": n - }, r), t ? Ee.createElement("title", { - id: n - }, t) : null, Ee.createElement("path", { - d: "m1.216 8.511 2.936 2.936a.748.748 0 0 0 1.326-.48.748.748 0 0 0-.247-.557L3.554 8.733h10.821v-.01a.75.75 0 0 0 0-1.48v-.01H3.555L5.23 5.556a.75.75 0 1 0-1.08-1.037L1.217 7.455a.748.748 0 0 0 0 1.056Z" - })) }, - UP = e => { - var { - title: t, - titleId: n - } = e, r = function(e, t) { - if (null == e) return {}; - var n, r, i = function(e, t) { - if (null == e) return {}; - var n, r, i = {}, - a = Object.keys(e); - for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) >= 0 || (i[n] = e[n]); - return i - }(e, t); - if (Object.getOwnPropertySymbols) { - var a = Object.getOwnPropertySymbols(e); - for (r = 0; r < a.length; r++) n = a[r], !(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n) && (i[n] = e[n]) - } - return i - }(e, ["title", "titleId"]); - return Ee.createElement("svg", function(e) { - for (var t = 1; t < arguments.length; t++) { - var n = null != arguments[t] ? arguments[t] : {}, - r = Object.keys(n); - "function" == typeof Object.getOwnPropertySymbols && (r = r.concat(Object.getOwnPropertySymbols(n).filter((function(e) { - return Object.getOwnPropertyDescriptor(n, e).enumerable - })))), r.forEach((function(t) { - var r; - r = n[t], t in e ? Object.defineProperty(e, t, { - value: r, - enumerable: !0, - configurable: !0, - writable: !0 - }) : e[t] = r - })) - } - return e - }({ - xmlns: "http://www.w3.org/2000/svg", - width: 16, - height: 16, - fill: "currentColor", - viewBox: "0 0 16 16", - focusable: !1, - "aria-labelledby": n - }, r), t ? Ee.createElement("title", { - id: n - }, t) : null, Ee.createElement("path", { - d: "M8.782 11.124a1.002 1.002 0 0 1-1.564 0L3.226 6.15c-.532-.663-.064-1.65.782-1.65h7.984c.846 0 1.314.987.782 1.65l-3.992 4.974Z" - })) - }, - BP = e => { - var { - title: t, - titleId: n - } = e, r = function(e, t) { - if (null == e) return {}; - var n, r, i = function(e, t) { - if (null == e) return {}; - var n, r, i = {}, - a = Object.keys(e); - for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) >= 0 || (i[n] = e[n]); - return i - }(e, t); - if (Object.getOwnPropertySymbols) { - var a = Object.getOwnPropertySymbols(e); - for (r = 0; r < a.length; r++) n = a[r], !(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n) && (i[n] = e[n]) - } - return i - }(e, ["title", "titleId"]); - return Ee.createElement("svg", function(e) { - for (var t = 1; t < arguments.length; t++) { - var n = null != arguments[t] ? arguments[t] : {}, - r = Object.keys(n); - "function" == typeof Object.getOwnPropertySymbols && (r = r.concat(Object.getOwnPropertySymbols(n).filter((function(e) { - return Object.getOwnPropertyDescriptor(n, e).enumerable - })))), r.forEach((function(t) { - var r; - r = n[t], t in e ? Object.defineProperty(e, t, { - value: r, - enumerable: !0, - configurable: !0, - writable: !0 - }) : e[t] = r - })) - } - return e - }({ - xmlns: "http://www.w3.org/2000/svg", - width: 16, - height: 16, - fill: "currentColor", - viewBox: "0 0 16 16", - focusable: !1, - "aria-labelledby": n - }, r), t ? Ee.createElement("title", { - id: n - }, t) : null, Ee.createElement("path", { - d: "M8.782 4.876a1.002 1.002 0 0 0-1.564 0L3.226 9.85c-.532.662-.064 1.65.782 1.65h7.984c.846 0 1.314-.988.782-1.65L8.782 4.876Z" - })) - }, - GP = e => { - var { - title: t, - titleId: n - } = e, r = function(e, t) { - if (null == e) return {}; - var n, r, i = function(e, t) { - if (null == e) return {}; - var n, r, i = {}, - a = Object.keys(e); - for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) >= 0 || (i[n] = e[n]); - return i - }(e, t); - if (Object.getOwnPropertySymbols) { - var a = Object.getOwnPropertySymbols(e); - for (r = 0; r < a.length; r++) n = a[r], !(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n) && (i[n] = e[n]) - } - return i - }(e, ["title", "titleId"]); - return Ee.createElement("svg", function(e) { - for (var t = 1; t < arguments.length; t++) { - var n = null != arguments[t] ? arguments[t] : {}, - r = Object.keys(n); - "function" == typeof Object.getOwnPropertySymbols && (r = r.concat(Object.getOwnPropertySymbols(n).filter((function(e) { - return Object.getOwnPropertyDescriptor(n, e).enumerable - })))), r.forEach((function(t) { - var r; - r = n[t], t in e ? Object.defineProperty(e, t, { - value: r, - enumerable: !0, - configurable: !0, - writable: !0 - }) : e[t] = r - })) - } - return e - }({ - xmlns: "http://www.w3.org/2000/svg", - width: 16, - height: 16, - fill: "currentColor", - viewBox: "0 0 16 16", - focusable: !1, - "aria-labelledby": n - }, r), t ? Ee.createElement("title", { - id: n - }, t) : null, Ee.createElement("path", { - d: "m8.182 1.444 2.23 2.35a.749.749 0 0 1-.002 1.145l-2.4 2.278a.748.748 0 0 1-1.312-.515.748.748 0 0 1 .26-.55l1.177-1.116c-2.425.182-3.462 1.14-3.945 2.018-.523.95-.504 1.968-.494 2.512a17.117 17.117 0 0 1 .002.143v.013a.18.18 0 0 1 0 .01v.009a.75.75 0 0 1-1.5 0l-.003-.13c-.014-.514-.053-1.946.68-3.28.784-1.424 2.347-2.598 5.229-2.796L7.076 2.452a.75.75 0 1 1 1.106-1.008ZM7.829 14.56l-2.23-2.35a.749.749 0 0 1-.064-1.082l.001-.001a.778.778 0 0 1 .065-.062L8 8.787a.748.748 0 0 1 1.312.515.748.748 0 0 1-.26.55l-1.177 1.117c2.425-.183 3.462-1.14 3.945-2.019.523-.95.504-1.968.494-2.511a15.313 15.313 0 0 1-.002-.144v-.013a.306.306 0 0 1 0-.018.75.75 0 0 1 1.5 0c0 .032 0 .076.002.13.014.514.054 1.945-.68 3.28-.783 1.423-2.347 2.597-5.228 2.796l1.028 1.082a.75.75 0 1 1-1.106 1.008Z" - })) - }, - $P = e => { - var { - title: t, - titleId: n - } = e, r = function(e, t) { - if (null == e) return {}; - var n, r, i = function(e, t) { - if (null == e) return {}; - var n, r, i = {}, - a = Object.keys(e); - for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) >= 0 || (i[n] = e[n]); - return i - }(e, t); - if (Object.getOwnPropertySymbols) { - var a = Object.getOwnPropertySymbols(e); - for (r = 0; r < a.length; r++) n = a[r], !(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n) && (i[n] = e[n]) - } - return i - }(e, ["title", "titleId"]); - return Ee.createElement("svg", function(e) { - for (var t = 1; t < arguments.length; t++) { - var n = null != arguments[t] ? arguments[t] : {}, - r = Object.keys(n); - "function" == typeof Object.getOwnPropertySymbols && (r = r.concat(Object.getOwnPropertySymbols(n).filter((function(e) { - return Object.getOwnPropertyDescriptor(n, e).enumerable - })))), r.forEach((function(t) { - var r; - r = n[t], t in e ? Object.defineProperty(e, t, { - value: r, - enumerable: !0, - configurable: !0, - writable: !0 - }) : e[t] = r - })) - } - return e - }({ - xmlns: "http://www.w3.org/2000/svg", - width: 16, - height: 16, - fill: "currentColor", - viewBox: "0 0 16 16", - focusable: !1, - "aria-labelledby": n - }, r), t ? Ee.createElement("title", { - id: n - }, t) : null, Ee.createElement("path", { - fillRule: "evenodd", - d: "M3.068 12.967a7 7 0 1 0 9.864-9.934 7 7 0 0 0-9.864 9.934Zm.549-1.644a5.5 5.5 0 0 1 7.706-7.706l-7.706 7.706Zm1.06 1.06 7.707-7.705a5.5 5.5 0 0 1-7.706 7.706Z", - clipRule: "evenodd" - })) - }, - qP = e => { - var { - title: t, - titleId: n - } = e, r = function(e, t) { - if (null == e) return {}; - var n, r, i = function(e, t) { - if (null == e) return {}; - var n, r, i = {}, - a = Object.keys(e); - for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) >= 0 || (i[n] = e[n]); - return i - }(e, t); - if (Object.getOwnPropertySymbols) { - var a = Object.getOwnPropertySymbols(e); - for (r = 0; r < a.length; r++) n = a[r], !(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n) && (i[n] = e[n]) - } - return i - }(e, ["title", "titleId"]); - return Ee.createElement("svg", function(e) { - for (var t = 1; t < arguments.length; t++) { - var n = null != arguments[t] ? arguments[t] : {}, - r = Object.keys(n); - "function" == typeof Object.getOwnPropertySymbols && (r = r.concat(Object.getOwnPropertySymbols(n).filter((function(e) { - return Object.getOwnPropertyDescriptor(n, e).enumerable - })))), r.forEach((function(t) { - var r; - r = n[t], t in e ? Object.defineProperty(e, t, { - value: r, - enumerable: !0, - configurable: !0, - writable: !0 - }) : e[t] = r - })) - } - return e - }({ - xmlns: "http://www.w3.org/2000/svg", - width: 16, - height: 16, - fill: "currentColor", - viewBox: "0 0 16 16", - focusable: !1, - "aria-labelledby": n - }, r), t ? Ee.createElement("title", { - id: n - }, t) : null, Ee.createElement("path", { - d: "m1.186 2.288.002-.001a.78.78 0 0 1 1.1-1.1l.001-.002.035.035a.772.772 0 0 1 .017.017l5.66 5.66 5.71-5.711.002.002a.78.78 0 0 1 1.1 1.1l.002.001-.035.035a.973.973 0 0 1-.017.017L9.104 8l5.69 5.69h-.002a.78.78 0 1 1-1.155 1.05L8.002 9.103l-5.69 5.69H2.31a.78.78 0 1 1-1.05-1.155L6.898 8 1.186 2.288Z" - })) - }, - WP = e => { - var { - title: t, - titleId: n - } = e, r = function(e, t) { - if (null == e) return {}; - var n, r, i = function(e, t) { - if (null == e) return {}; - var n, r, i = {}, - a = Object.keys(e); - for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) >= 0 || (i[n] = e[n]); - return i - }(e, t); - if (Object.getOwnPropertySymbols) { - var a = Object.getOwnPropertySymbols(e); - for (r = 0; r < a.length; r++) n = a[r], !(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n) && (i[n] = e[n]) - } - return i - }(e, ["title", "titleId"]); - return Ee.createElement("svg", function(e) { - for (var t = 1; t < arguments.length; t++) { - var n = null != arguments[t] ? arguments[t] : {}, - r = Object.keys(n); - "function" == typeof Object.getOwnPropertySymbols && (r = r.concat(Object.getOwnPropertySymbols(n).filter((function(e) { - return Object.getOwnPropertyDescriptor(n, e).enumerable - })))), r.forEach((function(t) { - var r; - r = n[t], t in e ? Object.defineProperty(e, t, { - value: r, - enumerable: !0, - configurable: !0, - writable: !0 - }) : e[t] = r - })) - } - return e - }({ - xmlns: "http://www.w3.org/2000/svg", - width: 16, - height: 16, - fill: "currentColor", - viewBox: "0 0 16 16", - focusable: !1, - "aria-labelledby": n - }, r), t ? Ee.createElement("title", { - id: n - }, t) : null, Ee.createElement("path", { - fillRule: "evenodd", - d: "M2.5 3.8v6h8.815a2 2 0 0 1 1.302.481l.883.758V3.8h-11ZM15 3.3a1 1 0 0 0-1-1H2a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h9.315a.5.5 0 0 1 .325.12l2.535 2.172a.5.5 0 0 0 .825-.38V3.3Z", - clipRule: "evenodd" - })) - }, - HP = e => { - var { - title: t, - titleId: n - } = e, r = function(e, t) { - if (null == e) return {}; - var n, r, i = function(e, t) { - if (null == e) return {}; - var n, r, i = {}, - a = Object.keys(e); - for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) >= 0 || (i[n] = e[n]); - return i - }(e, t); - if (Object.getOwnPropertySymbols) { - var a = Object.getOwnPropertySymbols(e); - for (r = 0; r < a.length; r++) n = a[r], !(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n) && (i[n] = e[n]) - } - return i - }(e, ["title", "titleId"]); - return Ee.createElement("svg", function(e) { - for (var t = 1; t < arguments.length; t++) { - var n = null != arguments[t] ? arguments[t] : {}, - r = Object.keys(n); - "function" == typeof Object.getOwnPropertySymbols && (r = r.concat(Object.getOwnPropertySymbols(n).filter((function(e) { - return Object.getOwnPropertyDescriptor(n, e).enumerable - })))), r.forEach((function(t) { - var r; - r = n[t], t in e ? Object.defineProperty(e, t, { - value: r, - enumerable: !0, - configurable: !0, - writable: !0 - }) : e[t] = r - })) - } - return e - }({ - xmlns: "http://www.w3.org/2000/svg", - width: 16, - height: 16, - fill: "currentColor", - viewBox: "0 0 16 16", - focusable: !1, - "aria-labelledby": n - }, r), t ? Ee.createElement("title", { - id: n - }, t) : null, Ee.createElement("path", { - d: "M14.25 15a.75.75 0 0 0 0-1.5H1.75a.75.75 0 0 0 0 1.5h12.5ZM8 1a.75.75 0 0 1 .749.703h.001v7.712l1.677-1.678a.75.75 0 1 1 1.037 1.08l-2.936 2.935a.748.748 0 0 1-1.055 0L4.536 8.816a.748.748 0 0 1 .48-1.325.75.75 0 0 1 .557.246L7.25 9.415V1.703h.001A.75.75 0 0 1 8 1Z" - })) - }, - KP = e => { - var { - title: t, - titleId: n - } = e, r = function(e, t) { - if (null == e) return {}; - var n, r, i = function(e, t) { - if (null == e) return {}; - var n, r, i = {}, - a = Object.keys(e); - for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) >= 0 || (i[n] = e[n]); - return i - }(e, t); - if (Object.getOwnPropertySymbols) { - var a = Object.getOwnPropertySymbols(e); - for (r = 0; r < a.length; r++) n = a[r], !(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n) && (i[n] = e[n]) - } - return i - }(e, ["title", "titleId"]); - return Ee.createElement("svg", function(e) { - for (var t = 1; t < arguments.length; t++) { - var n = null != arguments[t] ? arguments[t] : {}, - r = Object.keys(n); - "function" == typeof Object.getOwnPropertySymbols && (r = r.concat(Object.getOwnPropertySymbols(n).filter((function(e) { - return Object.getOwnPropertyDescriptor(n, e).enumerable - })))), r.forEach((function(t) { - var r; - r = n[t], t in e ? Object.defineProperty(e, t, { - value: r, - enumerable: !0, - configurable: !0, - writable: !0 - }) : e[t] = r - })) - } - return e - }({ - xmlns: "http://www.w3.org/2000/svg", - width: 16, - height: 16, - fill: "currentColor", - viewBox: "0 0 16 16", - focusable: !1, - "aria-labelledby": n - }, r), t ? Ee.createElement("title", { - id: n - }, t) : null, Ee.createElement("path", { - fillRule: "evenodd", - d: "M8 13.5a5.5 5.5 0 1 0 0-11 5.5 5.5 0 0 0 0 11ZM8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14Z", - clipRule: "evenodd" - }), Ee.createElement("path", { - d: "M8.75 11a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0Zm-1.5-6a.75.75 0 0 1 1.5 0v3.75a.75.75 0 0 1-1.5 0V5Z" - })) - }, - YP = e => { - var { - title: t, - titleId: n - } = e, r = function(e, t) { - if (null == e) return {}; - var n, r, i = function(e, t) { - if (null == e) return {}; - var n, r, i = {}, - a = Object.keys(e); - for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) >= 0 || (i[n] = e[n]); - return i - }(e, t); - if (Object.getOwnPropertySymbols) { - var a = Object.getOwnPropertySymbols(e); - for (r = 0; r < a.length; r++) n = a[r], !(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n) && (i[n] = e[n]) - } - return i - }(e, ["title", "titleId"]); - return Ee.createElement("svg", function(e) { - for (var t = 1; t < arguments.length; t++) { - var n = null != arguments[t] ? arguments[t] : {}, - r = Object.keys(n); - "function" == typeof Object.getOwnPropertySymbols && (r = r.concat(Object.getOwnPropertySymbols(n).filter((function(e) { - return Object.getOwnPropertyDescriptor(n, e).enumerable - })))), r.forEach((function(t) { - var r; - r = n[t], t in e ? Object.defineProperty(e, t, { - value: r, - enumerable: !0, - configurable: !0, - writable: !0 - }) : e[t] = r - })) - } - return e - }({ - xmlns: "http://www.w3.org/2000/svg", - width: 16, - height: 16, - fill: "currentColor", - viewBox: "0 0 16 16", - focusable: !1, - "aria-labelledby": n - }, r), t ? Ee.createElement("title", { - id: n - }, t) : null, Ee.createElement("path", { - d: "M7.25 5a.75.75 0 1 1 1.5 0 .75.75 0 0 1-1.5 0ZM8 11.75a.75.75 0 0 0 .75-.75V7.25a.75.75 0 0 0-1.5 0V11c0 .414.336.75.75.75Z" - }), Ee.createElement("path", { - fillRule: "evenodd", - d: "M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14Zm0-1.5a5.5 5.5 0 1 0 0-11 5.5 5.5 0 0 0 0 11Z", - clipRule: "evenodd" - })) - }, - QP = e => { - var { - title: t, - titleId: n - } = e, r = function(e, t) { - if (null == e) return {}; - var n, r, i = function(e, t) { - if (null == e) return {}; - var n, r, i = {}, - a = Object.keys(e); - for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) >= 0 || (i[n] = e[n]); - return i - }(e, t); - if (Object.getOwnPropertySymbols) { - var a = Object.getOwnPropertySymbols(e); - for (r = 0; r < a.length; r++) n = a[r], !(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n) && (i[n] = e[n]) - } - return i - }(e, ["title", "titleId"]); - return Ee.createElement("svg", function(e) { - for (var t = 1; t < arguments.length; t++) { - var n = null != arguments[t] ? arguments[t] : {}, - r = Object.keys(n); - "function" == typeof Object.getOwnPropertySymbols && (r = r.concat(Object.getOwnPropertySymbols(n).filter((function(e) { - return Object.getOwnPropertyDescriptor(n, e).enumerable - })))), r.forEach((function(t) { - var r; - r = n[t], t in e ? Object.defineProperty(e, t, { - value: r, - enumerable: !0, - configurable: !0, - writable: !0 - }) : e[t] = r - })) - } - return e - }({ - xmlns: "http://www.w3.org/2000/svg", - width: 16, - height: 16, - fill: "currentColor", - viewBox: "0 0 16 16", - focusable: !1, - "aria-labelledby": n - }, r), t ? Ee.createElement("title", { - id: n - }, t) : null, Ee.createElement("path", { - d: "M7.25 1h1.5v3.519l.6-.598A.75.75 0 1 1 10.387 5l-1.86 1.856a.748.748 0 0 1-1.055 0L5.463 5a.748.748 0 0 1 .481-1.326c.22 0 .419.095.556.247l.75.598V.999Zm5.25 10.75a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0Z" - }), Ee.createElement("path", { - fillRule: "evenodd", - d: "M2.5 3.75c0-.69.56-1.25 1.25-1.25H6V1H3.75A2.75 2.75 0 0 0 1 3.75v8.5A2.75 2.75 0 0 0 3.75 15h8.5A2.75 2.75 0 0 0 15 12.25v-8.5A2.75 2.75 0 0 0 12.25 1H10v1.5h2.25c.69 0 1.25.56 1.25 1.25V8.5h-11V3.75Zm0 6.25v2.25c0 .69.56 1.25 1.25 1.25h8.5c.69 0 1.25-.56 1.25-1.25V10h-11Z", - clipRule: "evenodd" - })) - }, - ZP = e => { - var { - title: t, - titleId: n - } = e, r = function(e, t) { - if (null == e) return {}; - var n, r, i = function(e, t) { - if (null == e) return {}; - var n, r, i = {}, - a = Object.keys(e); - for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) >= 0 || (i[n] = e[n]); - return i - }(e, t); - if (Object.getOwnPropertySymbols) { - var a = Object.getOwnPropertySymbols(e); - for (r = 0; r < a.length; r++) n = a[r], !(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n) && (i[n] = e[n]) - } - return i - }(e, ["title", "titleId"]); - return Ee.createElement("svg", function(e) { - for (var t = 1; t < arguments.length; t++) { - var n = null != arguments[t] ? arguments[t] : {}, - r = Object.keys(n); - "function" == typeof Object.getOwnPropertySymbols && (r = r.concat(Object.getOwnPropertySymbols(n).filter((function(e) { - return Object.getOwnPropertyDescriptor(n, e).enumerable - })))), r.forEach((function(t) { - var r; - r = n[t], t in e ? Object.defineProperty(e, t, { - value: r, - enumerable: !0, - configurable: !0, - writable: !0 - }) : e[t] = r - })) - } - return e - }({ - xmlns: "http://www.w3.org/2000/svg", - width: 16, - height: 16, - fill: "currentColor", - viewBox: "0 0 16 16", - focusable: !1, - "aria-labelledby": n - }, r), t ? Ee.createElement("title", { - id: n - }, t) : null, Ee.createElement("path", { - d: "M1.716 13.5a.75.75 0 0 0 0 1.5H14.25a.75.75 0 1 0-.023-1.5H1.716Z" - })) - }, - XP = e => { - var { - title: t, - titleId: n - } = e, r = function(e, t) { - if (null == e) return {}; - var n, r, i = function(e, t) { - if (null == e) return {}; - var n, r, i = {}, - a = Object.keys(e); - for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) >= 0 || (i[n] = e[n]); - return i - }(e, t); - if (Object.getOwnPropertySymbols) { - var a = Object.getOwnPropertySymbols(e); - for (r = 0; r < a.length; r++) n = a[r], !(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n) && (i[n] = e[n]) - } - return i - }(e, ["title", "titleId"]); - return Ee.createElement("svg", function(e) { - for (var t = 1; t < arguments.length; t++) { - var n = null != arguments[t] ? arguments[t] : {}, - r = Object.keys(n); - "function" == typeof Object.getOwnPropertySymbols && (r = r.concat(Object.getOwnPropertySymbols(n).filter((function(e) { - return Object.getOwnPropertyDescriptor(n, e).enumerable - })))), r.forEach((function(t) { - var r; - r = n[t], t in e ? Object.defineProperty(e, t, { - value: r, - enumerable: !0, - configurable: !0, - writable: !0 - }) : e[t] = r - })) - } - return e - }({ - xmlns: "http://www.w3.org/2000/svg", - width: 16, - height: 16, - fill: "currentColor", - viewBox: "0 0 16 16", - focusable: !1, - "aria-labelledby": n - }, r), t ? Ee.createElement("title", { - id: n - }, t) : null, Ee.createElement("path", { - d: "M2.475 3.137a.974.974 0 0 0-.975.971v9.23c0 .537.437.972.975.972h9.267a.974.974 0 0 0 .976-.972V8.45a.73.73 0 0 0-.732-.729.73.73 0 0 0-.73.76l-.001 4.372H2.963V4.594h3.902v-.002a.73.73 0 0 0 .67-.727.73.73 0 0 0-.67-.726v-.002h-4.39Z" - }), Ee.createElement("path", { - d: "M13.769 1.313h-4.05a.732.732 0 0 0-.583.21.727.727 0 0 0 .553 1.243h2.314L7.822 6.931v.001a.727.727 0 0 0 .03 1 .734.734 0 0 0 1.003.029h.001l4.182-4.164v2.305a.72.72 0 0 0 .213.55.734.734 0 0 0 1.246-.58V2.039a.732.732 0 0 0-.728-.725Z" - })) - }, - JP = e => { - var { - title: t, - titleId: n - } = e, r = function(e, t) { - if (null == e) return {}; - var n, r, i = function(e, t) { - if (null == e) return {}; - var n, r, i = {}, - a = Object.keys(e); - for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) >= 0 || (i[n] = e[n]); - return i - }(e, t); - if (Object.getOwnPropertySymbols) { - var a = Object.getOwnPropertySymbols(e); - for (r = 0; r < a.length; r++) n = a[r], !(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n) && (i[n] = e[n]) - } - return i - }(e, ["title", "titleId"]); - return Ee.createElement("svg", function(e) { - for (var t = 1; t < arguments.length; t++) { - var n = null != arguments[t] ? arguments[t] : {}, - r = Object.keys(n); - "function" == typeof Object.getOwnPropertySymbols && (r = r.concat(Object.getOwnPropertySymbols(n).filter((function(e) { - return Object.getOwnPropertyDescriptor(n, e).enumerable - })))), r.forEach((function(t) { - var r; - r = n[t], t in e ? Object.defineProperty(e, t, { - value: r, - enumerable: !0, - configurable: !0, - writable: !0 - }) : e[t] = r - })) - } - return e - }({ - xmlns: "http://www.w3.org/2000/svg", - width: 16, - height: 16, - fill: "currentColor", - viewBox: "0 0 16 16", - focusable: !1, - "aria-labelledby": n - }, r), t ? Ee.createElement("title", { - id: n - }, t) : null, Ee.createElement("path", { - d: "M3 2a1 1 0 0 1 2 0v12a1 1 0 1 1-2 0V2Zm8 0a1 1 0 1 1 2 0v12a1 1 0 1 1-2 0V2Z" - })) - }, - eT = e => { - var { - title: t, - titleId: n - } = e, r = function(e, t) { - if (null == e) return {}; - var n, r, i = function(e, t) { - if (null == e) return {}; - var n, r, i = {}, - a = Object.keys(e); - for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) >= 0 || (i[n] = e[n]); - return i - }(e, t); - if (Object.getOwnPropertySymbols) { - var a = Object.getOwnPropertySymbols(e); - for (r = 0; r < a.length; r++) n = a[r], !(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n) && (i[n] = e[n]) - } - return i - }(e, ["title", "titleId"]); - return Ee.createElement("svg", function(e) { - for (var t = 1; t < arguments.length; t++) { - var n = null != arguments[t] ? arguments[t] : {}, - r = Object.keys(n); - "function" == typeof Object.getOwnPropertySymbols && (r = r.concat(Object.getOwnPropertySymbols(n).filter((function(e) { - return Object.getOwnPropertyDescriptor(n, e).enumerable - })))), r.forEach((function(t) { - var r; - r = n[t], t in e ? Object.defineProperty(e, t, { - value: r, - enumerable: !0, - configurable: !0, - writable: !0 - }) : e[t] = r - })) - } - return e - }({ - xmlns: "http://www.w3.org/2000/svg", - width: 16, - height: 16, - fill: "currentColor", - viewBox: "0 0 16 16", - focusable: !1, - "aria-labelledby": n - }, r), t ? Ee.createElement("title", { - id: n - }, t) : null, Ee.createElement("path", { - fillRule: "evenodd", - d: "M3.01 2.715v10.57L12.588 8 3.01 2.715Zm10.9 4.307a1.105 1.105 0 0 1 0 1.956L3.272 14.847c-.788.435-1.773-.109-1.773-.978V2.13c0-.87.985-1.413 1.773-.978l10.636 5.869Z", - clipRule: "evenodd" - })) - }, - tT = e => { - var { - title: t, - titleId: n - } = e, r = function(e, t) { - if (null == e) return {}; - var n, r, i = function(e, t) { - if (null == e) return {}; - var n, r, i = {}, - a = Object.keys(e); - for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) >= 0 || (i[n] = e[n]); - return i - }(e, t); - if (Object.getOwnPropertySymbols) { - var a = Object.getOwnPropertySymbols(e); - for (r = 0; r < a.length; r++) n = a[r], !(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n) && (i[n] = e[n]) - } - return i - }(e, ["title", "titleId"]); - return Ee.createElement("svg", function(e) { - for (var t = 1; t < arguments.length; t++) { - var n = null != arguments[t] ? arguments[t] : {}, - r = Object.keys(n); - "function" == typeof Object.getOwnPropertySymbols && (r = r.concat(Object.getOwnPropertySymbols(n).filter((function(e) { - return Object.getOwnPropertyDescriptor(n, e).enumerable - })))), r.forEach((function(t) { - var r; - r = n[t], t in e ? Object.defineProperty(e, t, { - value: r, - enumerable: !0, - configurable: !0, - writable: !0 - }) : e[t] = r - })) - } - return e - }({ - xmlns: "http://www.w3.org/2000/svg", - width: 16, - height: 16, - fill: "currentColor", - viewBox: "0 0 16 16", - focusable: !1, - "aria-labelledby": n - }, r), t ? Ee.createElement("title", { - id: n - }, t) : null, Ee.createElement("path", { - d: "M2.5 8a5.5 5.5 0 0 1 9.938-3.25H11.25a.75.75 0 0 0 0 1.5h3A.75.75 0 0 0 15 5.5v-3a.75.75 0 0 0-1.5 0v1.17a7 7 0 1 0 1.41 5.45.75.75 0 1 0-1.48-.24A5.502 5.502 0 0 1 2.5 8Z" - })) - }, - nT = e => { - var { - title: t, - titleId: n - } = e, r = function(e, t) { - if (null == e) return {}; - var n, r, i = function(e, t) { - if (null == e) return {}; - var n, r, i = {}, - a = Object.keys(e); - for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) >= 0 || (i[n] = e[n]); - return i - }(e, t); - if (Object.getOwnPropertySymbols) { - var a = Object.getOwnPropertySymbols(e); - for (r = 0; r < a.length; r++) n = a[r], !(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n) && (i[n] = e[n]) - } - return i - }(e, ["title", "titleId"]); - return Ee.createElement("svg", function(e) { - for (var t = 1; t < arguments.length; t++) { - var n = null != arguments[t] ? arguments[t] : {}, - r = Object.keys(n); - "function" == typeof Object.getOwnPropertySymbols && (r = r.concat(Object.getOwnPropertySymbols(n).filter((function(e) { - return Object.getOwnPropertyDescriptor(n, e).enumerable - })))), r.forEach((function(t) { - var r; - r = n[t], t in e ? Object.defineProperty(e, t, { - value: r, - enumerable: !0, - configurable: !0, - writable: !0 - }) : e[t] = r - })) - } - return e - }({ - xmlns: "http://www.w3.org/2000/svg", - width: 16, - height: 16, - fill: "currentColor", - viewBox: "0 0 16 16", - focusable: !1, - "aria-labelledby": n - }, r), t ? Ee.createElement("title", { - id: n - }, t) : null, Ee.createElement("path", { - fillRule: "evenodd", - d: "m7.334 3.874-.782.295a4.088 4.088 0 0 0-1.151.66l-.648.533-1.32-.455-.396.687 1.056.917-.135.825a4.1 4.1 0 0 0-.06.664c0 .208.021.426.06.664l.135.825-1.056.917.396.688 1.32-.455.648.532c.335.274.723.498 1.151.66l.782.295.268 1.374h.793l.268-1.374.782-.295a4.09 4.09 0 0 0 1.15-.66l.649-.532 1.32.455.396-.688-1.056-.917.135-.825c.038-.238.06-.456.06-.664 0-.208-.022-.426-.06-.664l-.135-.825 1.056-.917-.397-.687-1.319.455-.648-.532a4.088 4.088 0 0 0-1.151-.66l-.782-.296L8.395 2.5h-.793l-.268 1.374Zm2.641-1.108L9.71 1.404A.5.5 0 0 0 9.219 1H6.778a.5.5 0 0 0-.49.404L6.02 2.766a5.588 5.588 0 0 0-1.572.904l-1.307-.45a.5.5 0 0 0-.596.222l-1.22 2.116a.5.5 0 0 0 .105.627l1.047.91c-.048.295-.08.596-.08.905 0 .309.032.61.08.905l-1.047.91a.5.5 0 0 0-.105.627l1.22 2.116a.5.5 0 0 0 .596.223l1.307-.451a5.59 5.59 0 0 0 1.572.904l.266 1.362a.5.5 0 0 0 .49.404H9.22a.5.5 0 0 0 .49-.404l.266-1.362a5.59 5.59 0 0 0 1.573-.904l1.306.45a.5.5 0 0 0 .596-.222l1.22-2.116a.5.5 0 0 0-.104-.627l-1.047-.91c.048-.295.08-.596.08-.905 0-.309-.032-.61-.08-.905l1.047-.91a.5.5 0 0 0 .105-.627l-1.22-2.116a.5.5 0 0 0-.597-.223l-1.306.451a5.587 5.587 0 0 0-1.573-.904Z", - clipRule: "evenodd" - }), Ee.createElement("path", { - fillRule: "evenodd", - d: "M9 8a1 1 0 1 0-2 0 1 1 0 0 0 2 0Zm1.5 0a2.5 2.5 0 1 0-5 0 2.5 2.5 0 0 0 5 0Z", - clipRule: "evenodd" - })) - }, - rT = e => { - var { - title: t, - titleId: n - } = e, r = function(e, t) { - if (null == e) return {}; - var n, r, i = function(e, t) { - if (null == e) return {}; - var n, r, i = {}, - a = Object.keys(e); - for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) >= 0 || (i[n] = e[n]); - return i - }(e, t); - if (Object.getOwnPropertySymbols) { - var a = Object.getOwnPropertySymbols(e); - for (r = 0; r < a.length; r++) n = a[r], !(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n) && (i[n] = e[n]) - } - return i - }(e, ["title", "titleId"]); - return Ee.createElement("svg", function(e) { - for (var t = 1; t < arguments.length; t++) { - var n = null != arguments[t] ? arguments[t] : {}, - r = Object.keys(n); - "function" == typeof Object.getOwnPropertySymbols && (r = r.concat(Object.getOwnPropertySymbols(n).filter((function(e) { - return Object.getOwnPropertyDescriptor(n, e).enumerable - })))), r.forEach((function(t) { - var r; - r = n[t], t in e ? Object.defineProperty(e, t, { - value: r, - enumerable: !0, - configurable: !0, - writable: !0 - }) : e[t] = r - })) - } - return e - }({ - xmlns: "http://www.w3.org/2000/svg", - width: 16, - height: 16, - fill: "currentColor", - viewBox: "0 0 16 16", - focusable: !1, - "aria-labelledby": n - }, r), t ? Ee.createElement("title", { - id: n - }, t) : null, Ee.createElement("path", { - fillRule: "evenodd", - d: "M8 3.184 2.675 13.431h10.65L8 3.184Zm.887-1.545a1 1 0 0 0-1.775 0L.965 13.47a1 1 0 0 0 .887 1.461h12.296a1 1 0 0 0 .887-1.46L8.887 1.638Z", - clipRule: "evenodd" - }), Ee.createElement("path", { - d: "M8.75 12.181a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0Zm-1.5-5.5a.75.75 0 1 1 1.5 0v3.25a.75.75 0 0 1-1.5 0v-3.25Z" - })) - }, - iT = e => { - var { - title: t, - titleId: n - } = e, r = function(e, t) { - if (null == e) return {}; - var n, r, i = function(e, t) { - if (null == e) return {}; - var n, r, i = {}, - a = Object.keys(e); - for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) >= 0 || (i[n] = e[n]); - return i - }(e, t); - if (Object.getOwnPropertySymbols) { - var a = Object.getOwnPropertySymbols(e); - for (r = 0; r < a.length; r++) n = a[r], !(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n) && (i[n] = e[n]) - } - return i - }(e, ["title", "titleId"]); - return Ee.createElement("svg", function(e) { - for (var t = 1; t < arguments.length; t++) { - var n = null != arguments[t] ? arguments[t] : {}, - r = Object.keys(n); - "function" == typeof Object.getOwnPropertySymbols && (r = r.concat(Object.getOwnPropertySymbols(n).filter((function(e) { - return Object.getOwnPropertyDescriptor(n, e).enumerable - })))), r.forEach((function(t) { - var r; - r = n[t], t in e ? Object.defineProperty(e, t, { - value: r, - enumerable: !0, - configurable: !0, - writable: !0 - }) : e[t] = r - })) - } - return e - }({ - xmlns: "http://www.w3.org/2000/svg", - width: 16, - height: 16, - fill: "currentColor", - viewBox: "0 0 16 16", - focusable: !1, - "aria-labelledby": n - }, r), t ? Ee.createElement("title", { - id: n - }, t) : null, Ee.createElement("path", { - d: "M4.276 1.623a.75.75 0 0 1 1.053.13l.413.53a10.692 10.692 0 0 1 2.31-.251c2.531 0 4.857.883 6.685 2.357a.709.709 0 0 1 .088 1.003c-.273.336-.773.367-1.113.099a9.115 9.115 0 0 0-5.66-1.96c-.43 0-.853.03-1.267.088l1.202 1.54h.078c1.792 0 3.437.626 4.73 1.672.299.242.322.68.08.978-.279.343-.792.364-1.142.095a5.999 5.999 0 0 0-2.486-1.129l2.937 3.764A.75.75 0 0 1 11 11.46L4.146 2.676a.75.75 0 0 1 .13-1.053ZM1.257 4.48a10.672 10.672 0 0 1 1.79-1.201l.939 1.203c-.605.3-1.17.665-1.69 1.086-.337.273-.838.248-1.115-.085a.709.709 0 0 1 .076-1.003Zm3.759 1.323a7.529 7.529 0 0 0-1.761 1.094c-.296.246-.313.683-.067.978.283.34.796.354 1.143.08a6.017 6.017 0 0 1 1.644-.923l-.96-1.23Zm2.036 2.609a4.386 4.386 0 0 0-1.808.928c-.27.23-.273.634-.045.908.297.356.852.335 1.232.067A2.886 2.886 0 0 1 8.1 9.787h.024L7.052 8.412ZM8 13.5a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z" - })) - }; - const aT = ({ - launcherVersion: e = "unknown", - patcherVersion: t = "unknown", - platformMaster: n = "prod", - isGameRunning: r = !1, - isAppInitialized: i = !1, - isWindowMinimized: a = !1, - isDiscoverStarted: o = !1, - isDownloadPopoverOpened: s = !1, - isStatusPopoverOpened: l = !1, - isConnectionPopoverOpened: c = !1, - nonOperationalStatus: u, - connection: d = { - mode: navigator.onLine ? YI.ConnectionMode.ONLINE : YI.ConnectionMode.NO_CONNECTION, - needToBeCheck: !1 - }, - animations: p = { - appLayoutWipe: { - isAnimating: !0, - animType: "out" - }, - gamePageEntering: { - isAnimating: !1, - animState: "" - } + TR = e => { + if ("string" === typeof e || "number" === typeof e) return e.toString(); + if (!(0, Ee.isValidElement)(e)) return ""; + if ("function" === typeof e.type && e.type.prototype instanceof Ee.Component) { + const t = new e.type(e.props).render(); + return TR(t) } - }) => ({ - launcherVersion: e, - patcherVersion: t, - platformMaster: n, - isAppInitialized: i, - isWindowMinimized: a, - isDiscoverStarted: o, - isGameRunning: r, - isDownloadPopoverOpened: s, - isStatusPopoverOpened: l, - isConnectionPopoverOpened: c, - nonOperationalStatus: u, - connection: d, - animations: p - }), - oT = (e, t) => ({ - application: { - ...aT({}), - actions: { - initializeApplication: async () => { - const { - launcherVersion: t, - patcherVersion: n, - environment: r - } = await window.launcherAPI.game.getGlobalConfig(), i = await window.launcherAPI.game.isGameProcessRunning(), a = await window.launcherAPI.store.getValueFromStore("application.connection.lastTimeOnline"), o = aT({ - launcherVersion: t, - patcherVersion: n, - platformMaster: r, - isGameRunning: i, - isAppInitialized: !0, - connection: { - mode: a ? YI.ConnectionMode.NO_CONNECTION : YI.ConnectionMode.ONLINE, - lastTimeOnline: a, - needToBeCheck: !0 - } - }); - e((e => ({ - application: { - ...e.application, - ...o - } - }))) - }, - toggleDownloadPopoverOpened: () => { - const { - application: e - } = t(); - e.actions.setDownloadPopoverOpened(!e.isDownloadPopoverOpened) - }, - setDownloadPopoverOpened: n => { - const { - installer: r - } = t(); - n || r.actions.clearCompletedInstallations(), e((e => ({ - application: { - ...e.application, - isDownloadPopoverOpened: n - } - }))) - }, - setStatusPopoverOpened: t => { - e((e => ({ - application: { - ...e.application, - isStatusPopoverOpened: t - } - }))) - }, - setConnectionPopoverOpened: n => { - const { - application: { - connection: r - } - } = t(); - n && r.mode === YI.ConnectionMode.ONLINE || e((e => ({ - application: { - ...e.application, - isConnectionPopoverOpened: n - } - }))) - }, - setCloseAllPopovers: () => { - const { - application: e - } = t(); - e.actions.setDownloadPopoverOpened(!1), e.actions.setStatusPopoverOpened(!1), e.actions.setConnectionPopoverOpened(!1) - }, - setNonOperationalStatus: t => { - e((e => ({ - application: { - ...e.application, - nonOperationalStatus: t - } - }))) - }, - setWindowMinimized: t => { - e((e => ({ - application: { - ...e.application, - isWindowMinimized: t - } - }))) - }, - resetApplication: () => e((e => ({ - application: { - ...e.application, - ...aT({}), - launcherVersion: e.application.launcherVersion, - patcherVersion: e.application.patcherVersion, - platformMaster: e.application.platformMaster - } - }))), - isMinimumWindowsVersion: async () => { - const e = t(), - { - osMetMinimumRequirements: n - } = await window.launcherAPI.game.getGlobalConfig(); - return n || (await e.dialog.actions.showOsRequirementsDialog(e.library.channelSelected), !1) - }, - isRespectingCPUCapabilites: async () => { - const e = t(), - { - cpuMetRequirements: n - } = await window.launcherAPI.game.getGlobalConfig(); - return n || (await e.dialog.actions.showCpuRequirementsDialog(), !1) - }, - isOffline: () => { - const { - application: { - connection: e - } - } = t(); - return e.mode !== YI.ConnectionMode.ONLINE - }, - isOfflineSessionValid: () => { - const { - application: { - connection: { - lastTimeOnline: e - } - } - } = t(); - return (null !== e && void 0 !== e ? e : -1) + YI.configuration.authenticationExpiry > Date.now() - }, - getRemainingTimeOfOfflineSession: () => { - const { - application: { - connection: { - lastTimeOnline: e - } - }, - user: { - device: n - } - } = t(); - if (!(n && (void 0 !== n.expires || n.duration !== AA.SESSION)) || void 0 === e) return; - const r = e + YI.configuration.authenticationExpiry, - i = n.expires; - return sC(new Date(i < r ? i : r).toDateString(), "relative", {}) - }, - checkConnection: () => { - const { - connectivity: e - } = window.launcherAPI; - e.checkConnection() - }, - setAnimatingAppLayoutWipe: (t, n) => { - e((e => ({ - application: { - ...e.application, - animations: { - appLayoutWipe: { - animType: t, - isAnimating: n || !1 - } - } - } - }))) - }, - setAnimatingGamePageEntering: (t, n) => { - e((e => ({ - application: { - ...e.application, - animations: { - gamePageEntering: { - isAnimating: t, - animState: n || "" - } - } - } - }))) - }, - setDiscoverStarted: t => { - e((e => ({ - application: { - ...e.application, - isDiscoverStarted: null !== t && void 0 !== t ? t : e.application.isDiscoverStarted - } - }))) - }, - setConnectionAvailable: () => { - const { - application: { - connection: n - }, - toasts: r - } = t(); - n.mode !== YI.ConnectionMode.ONLINE && n.mode !== YI.ConnectionMode.OFFLINE && (e((e => ({ - application: { - ...e.application, - connection: { - mode: YI.ConnectionMode.ONLINE, - lastTimeOnline: void 0, - needToBeCheck: !1 - } - } - }))), window.launcherAPI.store.setValueToStore("application.connection.lastTimeOnline", null), r.actions.add({ - type: "positive", - title: _e.t("connection_toast_connection_available", { - ns: "connection" - }) - })) - }, - setConnectionUnavailable: async () => { - var n; - const { - application: { - actions: r, - connection: i - }, - user: a - } = t(); - if (i.mode === YI.ConnectionMode.NO_CONNECTION && !i.needToBeCheck) return; - if (i.mode === YI.ConnectionMode.OFFLINE) return; - const o = null !== (n = i.lastTimeOnline) && void 0 !== n ? n : Date.now(); - e((e => ({ - application: { - ...e.application, - connection: { - mode: YI.ConnectionMode.NO_CONNECTION, - lastTimeOnline: o, - needToBeCheck: !1 - } - } - }))), window.launcherAPI.store.setValueToStore("application.connection.lastTimeOnline", o), a.actions.isLoggedIn() && (r.setCloseAllPopovers(), r.setLostConnectionToast(), r.setConnectionPopoverOpened(!0)) - }, - setLostConnectionToast: () => { - const { - application: { - actions: e - }, - toasts: n - } = t(), r = e.getRemainingTimeOfOfflineSession(); - n.actions.add({ - duration: 6e3, - type: "informative", - icon: YP, - title: _e.t("connection_toast_warning_lost_connection_title", { - ns: "connection" - }), - children: (0, QI.jsxs)(Ps, { - gap: "100", - vertical: !0, - children: [(0, QI.jsx)(gs, { - as: "span", - children: _e.t("connection_toast_warning_lost_connection_content", { - ns: "connection" - }) - }), r && (0, QI.jsxs)(gs, { - as: "span", - children: [_e.t("connection_toast_warning_lost_connection_remaining", { - ns: "connection" - }), (0, QI.jsx)(gs, { - as: "span", - variant: "body-m-bold", - children: " " + e.getRemainingTimeOfOfflineSession() - })] - })] - }), - actions: [{ - close: !0, - label: _e.t("connection_toast_action_continue_offline", { - ns: "connection" - }) - }] - }) - }, - setConnection: n => { - const { - application: { - connection: r - } - } = t(); - r.mode !== n.mode && e((e => ({ - application: { - ...e.application, - connection: { - ...n, - needToBeCheck: !1 - } - } - }))) - } - } + if ("function" === typeof e.type) { + const t = e.type(e.props); + return TR(t) } - }), - sT = (e, t) => ({ - authentication: { - captcha: null, - actions: { - initializeAuthentication: async () => { - e((e => ({ - authentication: { - ...e.authentication, - captcha: null - } - }))) - }, - fetchCaptcha: async () => { - const t = await ZA.authentication.getCaptcha(); - e((e => ({ - authentication: { - ...e.authentication, - captcha: t - } - }))) - }, - resetAuthentication: () => e((e => ({ - authentication: { - ...e.authentication, - captcha: null - } - }))) - } - } - }), - lT = "autoUpdate", - cT = (e, t = {}) => xt.t(e, { - ns: lT, - ...t - }), - uT = (e, t) => { - var n; const { - closeDialog: r - } = e.autoUpdate.actions, i = null === (n = window.launcherAPI.autoUpdate) || void 0 === n ? void 0 : n.updateAndRestart, a = { - open: !0, - alert: !0, - close: cT("auto_update_dialog_close"), - title: cT("auto_update_dialog_title"), - onOpenChange: () => { - r() - } - }; - switch (t.state) { - case YI.AutoUpdateDialogStates.AVAILABLE: - return { - ...a, children: (0, QI.jsxs)(QI.Fragment, { - children: [(0, QI.jsx)(gs, { - variant: "emphasis-s", - as: "h4", - children: cT("auto_update_dialog_sub_title", { - version: t.updateInfo.version - }) - }), (0, QI.jsx)(ft, { - i18nKey: "auto_update_dialog_update_available_content", - t: xt.t, - ns: lT, - components: [(0, QI.jsx)("br", {})] - })] - }), actions: [{ - label: cT("auto_update_dialog_update_available_action_secondary_label") - }, { - label: cT("auto_update_dialog_update_available_action_primary_label"), - onClick: () => i() - }] - }; - case YI.AutoUpdateDialogStates.ERROR: - return { - ...a, type: "negative", children: (0, QI.jsxs)(QI.Fragment, { - children: [(0, QI.jsx)(gs, { - variant: "emphasis-s", - as: "h4", - children: cT("auto_update_dialog_sub_title", { - version: t.updateInfo.version - }) - }), (0, QI.jsx)(ft, { - i18nKey: "auto_update_dialog_update_install_failed_content", - t: xt.t, - ns: lT, - components: [(0, QI.jsx)(am, { - href: YI.configuration.supportUrl, - external: !0 - })] - })] - }), actions: [{ - label: cT("auto_update_dialog_update_install_failed_action_secondary_label") - }, { - label: cT("auto_update_dialog_update_install_failed_action_primary_label"), - onClick: () => i() - }] - }; - case YI.AutoUpdateDialogStates.QUIT_GAME: - return { - ...a, type: "negative", children: (0, QI.jsxs)(QI.Fragment, { - children: [(0, QI.jsx)(gs, { - variant: "emphasis-s", - as: "h4", - children: cT("auto_update_dialog_sub_title", { - version: t.updateInfo.version - }) - }), cT("auto_update_dialog_update_quit_game_content")] - }), actions: [{ - label: cT("auto_update_dialog_update_quit_game_action_secondary_label") - }, { - label: cT("auto_update_dialog_update_quit_game_action_primary_label"), - onClick: () => i(!0) - }] - }; - default: - return { - ...a, children: (0, QI.jsxs)(QI.Fragment, { - children: [(0, QI.jsx)(gs, { - variant: "emphasis-s", - as: "h4", - children: cT("auto_update_dialog_sub_title", { - version: t.updateInfo.version - }) - }), (0, QI.jsx)(ft, { - i18nKey: "auto_update_dialog_no_update_content", - t: xt.t, - ns: lT, - components: [(0, QI.jsx)("br", {})] - })] - }), actions: [{ - label: cT("auto_update_dialog_no_update_action_primary_label") - }] - } - } + children: t + } = e.props; + return Array.isArray(t) ? t.map((e => TR(e))).join("") : TR(t) }, - dT = { - dialog: {} + RR = () => window.launcherAPI, + DR = (e, t) => t.find((({ + id: t + }) => t === e)), + LR = e => { + let t = e; + return t.includes("\\\\") && (t = t.replace("\\\\", "\\")), t.endsWith("\\") || (t = `${t}\\`), t }, - pT = (e, t) => ({ - autoUpdate: { - ...dT, - actions: { - async closeDialog() { - var n; - const r = t(); - null === (n = window.launcherAPI.autoUpdate) || void 0 === n || n.dismissUpdate(), e({ - autoUpdate: { - ...r.autoUpdate, - dialog: {} - } - }) - }, - displayDialog(n) { - const r = t(); - e({ - autoUpdate: { - ...r.autoUpdate, - dialog: uT(r, n) - } - }) - } + NR = 2e3, + jR = { + [xP.RSISystemStatus.MAJOR]: "negative", + [xP.RSISystemStatus.PARTIAL]: "notice", + [xP.RSISystemStatus.DEGRADED]: "highlight", + [xP.RSISystemStatus.MAINTENANCE]: "neutral", + [xP.RSISystemStatus.OPERATIONAL]: "positive" + }, + MR = e => jR[e], + FR = window.envVars.reviewAppRootUrl, + zR = e => { + var t; + const n = xP.configuration.env, + r = jz.getState().application.platformMaster; + return ("reviewapp" === r ? FR : null !== (t = n[r].rootUrl) && void 0 !== t ? t : xP.configuration.rootUrl) + e + }, + VR = e => e / 1e3, + UR = (0, Ee.createContext)({}), + BR = ({ + children: e + }) => { + const { + window: { + onSetHideWindowSuccessFul: t, + onSetShowWindowSuccessFul: n } - } - }), - hT = ({ - children: e - }) => { - const t = Wj((e => e.application)), - n = Wj((e => e.settings)), - r = Wj((e => e.window)), - i = Wj((e => e.user)), - { - t: a - } = bt("discover"), - o = i.actions.isLoggedIn(), - s = t.isDiscoverStarted, - l = Number(getComputedStyle(document.body).getPropertyValue("--sol-motion-anim-wipe-duration").match(/\d+/)); + } = window.launcherAPI, r = jz.getState().application, [i, a] = (0, Ee.useState)(!1); return (0, Ee.useEffect)((() => { - if (!n.appSettings.isDiscoverDone && o) { - const e = setTimeout((() => { - r.actions.openDiscover() - }), l); - return () => clearTimeout(e) + const e = t((() => { + a(!0), r.actions.setWindowMinimized(!0) + })), + i = n((() => { + a(!1), r.actions.setWindowMinimized(!1) + })); + return () => { + e(), i() } - }), [o]), (0, QI.jsx)(QI.Fragment, { - children: (0, QI.jsx)(Og, { - open: s, - onOpenChange: e => { - e || (t.actions.setDiscoverStarted(!1), n.actions.saveApplicationSettings({ - name: "isDiscoverDone", - value: !0 - })) - }, - doneLabel: a("step_done_label"), - steps: [{ - selector: '[data-sol-discover="menu"]', - title: a("step_menu_title"), - description: a("step_menu_description") - }, { - selector: '[data-sol-discover="status"]', - title: a("step_status_title"), - description: a("step_status_description"), - placement: "bottom-end" - }, { - selector: '[data-sol-discover="download"]', - title: a("step_download_title"), - description: a("step_download_description"), - placement: "bottom-end" - }, { - selector: '[data-sol-discover="user-profile"]', - title: a("step_user-profile_title"), - description: a("step_user-profile_description"), - placement: "bottom-end" - }, { - title: a("step_last_title"), - description: a("step_last_description") - }], - children: e - }) - }) - }, - fT = JSON.parse('{"v":"5.9.0","fr":29.9700012207031,"ip":0,"op":180.00000733155,"w":16,"h":16,"nm":"wifi-off","ddd":0,"assets":[{"id":"comp_0","nm":"wifi-off_export","fr":29.9700012207031,"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Bar","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[8.16,6.619,0],"ix":2,"l":2},"a":{"a":0,"k":[4.162,5.114,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0]],"o":[[0,0],[0,0]],"v":[[-3.412,-4.365],[3.412,4.365]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1.5,"ix":5},"lc":2,"lj":1,"ml":10,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[4.162,5.114],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0.5],"y":[1]},"o":{"x":[0.5],"y":[0]},"t":140,"s":[0]},{"t":150.000006109625,"s":[100]}],"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.5],"y":[1]},"o":{"x":[0.5],"y":[0]},"t":18,"s":[0]},{"t":28.0000011404634,"s":[100]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":0,"op":180.00000733155,"st":0,"bm":0},{"ddd":0,"ind":2,"ty":0,"nm":"Waves 6","refId":"comp_1","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[8,8,0],"ix":2,"l":2},"a":{"a":0,"k":[8,8,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"hasMask":true,"masksProperties":[{"inv":false,"mode":"a","pt":{"a":0,"k":{"i":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"v":[[5.938,0.188],[-5.5,2.875],[2.593,9.624],[4.941,5.621],[2.142,2.005],[3.63,1.404],[12.72,12.599],[16.149,12.425],[18.625,6.812],[21.938,0.188]],"c":true},"ix":1},"o":{"a":0,"k":100,"ix":3},"x":{"a":0,"k":0,"ix":4},"nm":"Mask 1"}],"w":16,"h":16,"ip":20.0000008146167,"op":142.000005783779,"st":0,"bm":0},{"ddd":0,"ind":3,"ty":4,"nm":"Waves 9","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[7.936,6.288,0],"ix":2,"l":2},"a":{"a":0,"k":[9.982,7.286,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[-2.4,0],[-1.681,-1.372]],"o":[[1.7,-1.436],[2.339,0],[0,0]],"v":[[-6.232,1.151],[0.064,-1.151],[6.232,1.044]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1.5,"ix":5},"lc":2,"lj":1,"ml":10,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[9.982,4.901],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0.47],"y":[1]},"o":{"x":[0.53],"y":[0]},"t":149,"s":[0]},{"t":154.000006272549,"s":[100]}],"ix":1},"e":{"a":0,"k":100,"ix":2},"o":{"a":0,"k":0,"ix":3},"m":2,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":142.000005783779,"op":229.000009327361,"st":142.000005783779,"bm":0},{"ddd":0,"ind":4,"ty":4,"nm":"Waves 3","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[7.936,6.288,0],"ix":2,"l":2},"a":{"a":0,"k":[9.982,7.286,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[-2.4,0],[-1.681,-1.372]],"o":[[1.7,-1.436],[2.339,0],[0,0]],"v":[[-6.232,1.151],[0.064,-1.151],[6.232,1.044]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1.5,"ix":5},"lc":2,"lj":1,"ml":10,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[9.982,4.901],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.5],"y":[1]},"o":{"x":[0.5],"y":[0]},"t":12,"s":[0]},{"t":17.0000006924242,"s":[100]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":2,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":0,"op":20.0000008146167,"st":0,"bm":0},{"ddd":0,"ind":5,"ty":0,"nm":"Waves 5","refId":"comp_2","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[8,8,0],"ix":2,"l":2},"a":{"a":0,"k":[8,8,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"hasMask":true,"masksProperties":[{"inv":false,"mode":"a","pt":{"a":0,"k":{"i":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"v":[[1.188,5.5],[2.438,10.875],[6.938,8.281],[4.75,4.906],[6.188,4.25],[13.938,16],[14,11.375],[15.812,6.125],[16,0]],"c":true},"ix":1},"o":{"a":0,"k":100,"ix":3},"x":{"a":0,"k":0,"ix":4},"nm":"Mask 1"}],"w":16,"h":16,"ip":22.0000008960784,"op":144.00000586524,"st":0,"bm":0},{"ddd":0,"ind":6,"ty":4,"nm":"Waves 8","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[7.936,6.288,0],"ix":2,"l":2},"a":{"a":0,"k":[9.982,7.286,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[-1.599,0],[-1.144,-0.948]],"o":[[1.143,-0.945],[1.602,0],[0,0]],"v":[[-4.212,0.755],[-0.003,-0.758],[4.212,0.758]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1.5,"ix":5},"lc":2,"lj":1,"ml":10,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[10.049,7.659],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 2","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":0,"k":100,"ix":2},"o":{"a":0,"k":0,"ix":3},"m":2,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0.47],"y":[1]},"o":{"x":[0.53],"y":[0]},"t":152,"s":[0]},{"t":157.000006394741,"s":[100]}],"ix":1},"e":{"a":0,"k":100,"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":3,"nm":"Trim Paths 2","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":144.00000586524,"op":229.000009327361,"st":144.00000586524,"bm":0},{"ddd":0,"ind":7,"ty":4,"nm":"Waves 2","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[7.936,6.288,0],"ix":2,"l":2},"a":{"a":0,"k":[9.982,7.286,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[-1.599,0],[-1.144,-0.948]],"o":[[1.143,-0.945],[1.602,0],[0,0]],"v":[[-4.212,0.755],[-0.003,-0.758],[4.212,0.758]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1.5,"ix":5},"lc":2,"lj":1,"ml":10,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[10.049,7.659],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 2","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.5],"y":[1]},"o":{"x":[0.5],"y":[0]},"t":8,"s":[0]},{"t":13.0000005295009,"s":[100]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":2,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":0,"op":22.0000008960784,"st":0,"bm":0},{"ddd":0,"ind":8,"ty":0,"nm":"Waves 4","refId":"comp_3","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[8,8,0],"ix":2,"l":2},"a":{"a":0,"k":[8,8,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"hasMask":true,"masksProperties":[{"inv":false,"mode":"a","pt":{"a":0,"k":{"i":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"v":[[2.562,9.125],[4.938,12.5],[9.998,11.721],[6.481,7.588],[7.843,7.154],[14,14.75],[16,0]],"c":true},"ix":1},"o":{"a":0,"k":100,"ix":3},"x":{"a":0,"k":0,"ix":4},"nm":"Mask 1"}],"w":16,"h":16,"ip":24.00000097754,"op":146.000005946702,"st":0,"bm":0},{"ddd":0,"ind":9,"ty":4,"nm":"Waves 7","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[7.936,6.288,0],"ix":2,"l":2},"a":{"a":0,"k":[9.982,7.286,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[-0.804,0],[-0.577,-0.439]],"o":[[0.585,-0.463],[0.78,0],[0,0]],"v":[[-2.102,0.37],[0.026,-0.37],[2.102,0.33]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1.5,"ix":5},"lc":2,"lj":1,"ml":10,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[10.021,10.452],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 3","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":0,"k":100,"ix":2},"o":{"a":0,"k":0,"ix":3},"m":2,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0.47],"y":[1]},"o":{"x":[0.53],"y":[0]},"t":156,"s":[0]},{"t":161.000006557664,"s":[100]}],"ix":1},"e":{"a":0,"k":100,"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":3,"nm":"Trim Paths 2","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":146.000005946702,"op":229.000009327361,"st":146.000005946702,"bm":0},{"ddd":0,"ind":10,"ty":4,"nm":"Waves","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[7.936,6.288,0],"ix":2,"l":2},"a":{"a":0,"k":[9.982,7.286,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[-0.804,0],[-0.577,-0.439]],"o":[[0.585,-0.463],[0.78,0],[0,0]],"v":[[-2.102,0.37],[0.026,-0.37],[2.102,0.33]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1.5,"ix":5},"lc":2,"lj":1,"ml":10,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[10.021,10.452],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 3","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.5],"y":[1]},"o":{"x":[0.5],"y":[0]},"t":4,"s":[0]},{"t":9.00000036657752,"s":[100]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":2,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":0,"op":24.00000097754,"st":0,"bm":0},{"ddd":0,"ind":11,"ty":4,"nm":"Circle","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[8,12.513,0],"ix":2,"l":2},"a":{"a":0,"k":[1.237,1.237,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":0,"s":[0,0,100]},{"i":{"x":[0.49,0.49,0.49],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":5,"s":[100,100,100]},{"i":{"x":[0.49,0.49,0.49],"y":[1,1,1]},"o":{"x":[0.51,0.51,0.51],"y":[0,0,0]},"t":160,"s":[100,100,100]},{"t":166.000006761319,"s":[0,0,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,-0.545],[0.545,0],[0,0.545],[-0.545,0]],"o":[[0,0.545],[-0.545,0],[0,-0.545],[0.545,0]],"v":[[0.987,0],[0,0.987],[-0.987,0],[0,-0.987]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[1.237,1.237],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":180.00000733155,"st":0,"bm":0}]},{"id":"comp_1","nm":"Waves 6","fr":29.9700012207031,"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Waves 6","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[7.936,6.288,0],"ix":2,"l":2},"a":{"a":0,"k":[9.982,7.286,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[-2.4,0],[-1.681,-1.372]],"o":[[1.7,-1.436],[2.339,0],[0,0]],"v":[[-6.232,1.151],[0.064,-1.151],[6.232,1.044]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1.5,"ix":5},"lc":2,"lj":1,"ml":10,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[9.982,4.901],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":0,"k":100,"ix":2},"o":{"a":0,"k":0,"ix":3},"m":2,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":-1.00000004073083,"op":181.000007372281,"st":0,"bm":0}]},{"id":"comp_2","nm":"Waves 5","fr":29.9700012207031,"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Waves 5","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[7.936,6.288,0],"ix":2,"l":2},"a":{"a":0,"k":[9.982,7.286,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[-1.599,0],[-1.144,-0.948]],"o":[[1.143,-0.945],[1.602,0],[0,0]],"v":[[-4.212,0.755],[-0.003,-0.758],[4.212,0.758]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1.5,"ix":5},"lc":2,"lj":1,"ml":10,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[10.049,7.659],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 2","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":0,"k":100,"ix":2},"o":{"a":0,"k":0,"ix":3},"m":2,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":0,"op":180.00000733155,"st":0,"bm":0}]},{"id":"comp_3","nm":"Waves 4","fr":29.9700012207031,"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Waves 4","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[7.936,6.288,0],"ix":2,"l":2},"a":{"a":0,"k":[9.982,7.286,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[-0.804,0],[-0.577,-0.439]],"o":[[0.585,-0.463],[0.78,0],[0,0]],"v":[[-2.102,0.37],[0.026,-0.37],[2.102,0.33]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1.5,"ix":5},"lc":2,"lj":1,"ml":10,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[10.021,10.452],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 3","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":0,"k":100,"ix":2},"o":{"a":0,"k":0,"ix":3},"m":2,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":-3.00000012219251,"op":181.000007372281,"st":0,"bm":0}]}],"layers":[{"ddd":0,"ind":1,"ty":0,"nm":"wifi-off_content","refId":"comp_0","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":60,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":62,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":64,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":66,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":68,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":70,"s":[10]},{"t":72.0000029326201,"s":[100]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[8,8,0],"ix":2,"l":2},"a":{"a":0,"k":[8,8,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"w":16,"h":16,"ip":0,"op":180.00000733155,"st":0,"bm":0}],"markers":[]}'), - mT = () => { - const { - t: e - } = bt("connection"), t = Wj((e => e.application)), { - reduceMotion: { - unessentialAnimationsDisabled: n - } - } = ts(); - return (0, QI.jsx)(Em, { - title: e("connection_title"), - offset: "large", - placement: "bottom-end", - trigger: (0, QI.jsx)(Rs, { - "data-test-id": "connection", - icon: (0, QI.jsx)(ms, { - source: n ? iT : fT - }) - }), - open: t.isConnectionPopoverOpened, - onOpenChange: e => { - t.actions.setConnectionPopoverOpened(e) + }), [r.actions, t, n]), (0, wR.jsx)(UR.Provider, { + value: { + isMinimized: i }, - footer: (0, QI.jsx)(QI.Fragment, { - children: t.connection.mode === YI.ConnectionMode.NO_CONNECTION && (0, QI.jsx)(xs, { - size: "small", - variant: "plain", - loading: !0, - disabled: !0, - children: e("connection_offline_trying_to_reconnect") - }) - }), - children: (0, QI.jsx)(Ps, { - vertical: !0, - gap: "100", - children: e("connection_offline_information") - }) + children: e }) - }, - gT = JSON.parse('{"v":"5.9.0","fr":30,"ip":0,"op":90,"w":16,"h":16,"nm":"download - option 2","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":1,"nm":"Dark Royal Blue Solid 1","td":1,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[8,8,0],"ix":2,"l":2},"a":{"a":0,"k":[8,8,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"hasMask":true,"masksProperties":[{"inv":false,"mode":"a","pt":{"a":0,"k":{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[0,0.031],[0,14.5],[16,14.5],[16,0.031]],"c":true},"ix":1},"o":{"a":0,"k":100,"ix":3},"x":{"a":0,"k":0,"ix":4},"nm":"Mask 1"}],"sw":16,"sh":16,"sc":"#0a1d29","ip":0,"op":90,"st":0,"bm":0},{"ddd":0,"ind":2,"ty":4,"nm":"Arrow Outlines","tt":1,"sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":22,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":23,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":30,"s":[0]},{"t":31,"s":[100]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.41,"y":1},"o":{"x":0.01,"y":0},"t":0,"s":[8,6.484,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.75,"y":1},"o":{"x":0.01,"y":0},"t":29,"s":[8,21.484,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.75,"y":1},"o":{"x":0.46,"y":0},"t":30,"s":[8,-5.516,0],"to":[0,0,0],"ti":[0,0,0]},{"t":45,"s":[8,6.484,0]}],"ix":2,"l":2},"a":{"a":0,"k":[3.983,5.734,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-0.398,0],[-0.025,-0.392],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[-0.22,0],[0,-0.414],[0.164,-0.137],[0,0],[0.206,0],[0.135,0.134],[0,0],[0,0.231],[-0.414,0],[-0.138,-0.151],[0,0],[0,0],[0,0]],"o":[[0.398,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0.137,-0.151],[0.414,0],[0,0.231],[0,0],[-0.135,0.135],[-0.206,0],[0,0],[-0.164,-0.137],[0,-0.414],[0.22,0],[0,0],[0,0],[0,0],[0.025,-0.392]],"v":[[0,-5.484],[0.749,-4.781],[0.75,-4.781],[0.75,-4.736],[0.75,-4.734],[0.75,-4.732],[0.75,2.93],[2.427,1.253],[2.983,1.007],[3.733,1.757],[3.464,2.331],[0.528,5.268],[0,5.484],[-0.527,5.268],[-3.464,2.331],[-3.733,1.757],[-2.983,1.007],[-2.427,1.253],[-0.75,2.93],[-0.75,-4.781],[-0.749,-4.781]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[3.983,5.734],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":90,"st":-28,"bm":0},{"ddd":0,"ind":3,"ty":4,"nm":"Base Outlines","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[8,14.25,0],"ix":2,"l":2},"a":{"a":0,"k":[7.25,1,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0.414],[0.414,0],[0,0],[0,-0.414],[-0.414,0]],"o":[[0.414,0],[0,-0.414],[0,0],[-0.414,0],[0,0.414],[0,0]],"v":[[6.25,0.75],[7,0],[6.25,-0.75],[-6.25,-0.75],[-7,0],[-6.25,0.75]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[7.25,1],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":90,"st":0,"bm":0}],"markers":[]}'); + }; - function vT() { - return vT = Object.assign ? Object.assign.bind() : function(e) { + function GR() { + return GR = Object.assign ? Object.assign.bind() : function(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t]; for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]) } return e - }, vT.apply(this, arguments) + }, GR.apply(this, arguments) } - var yT; + var $R; ! function(e) { e.Pop = "POP", e.Push = "PUSH", e.Replace = "REPLACE" - }(yT || (yT = {})); - const _T = "popstate"; + }($R || ($R = {})); + const qR = "popstate"; - function bT(e, t) { + function WR(e, t) { if (!1 === e || null === e || "undefined" === typeof e) throw new Error(t) } - function xT(e, t) { + function HR(e, t) { if (!e) { "undefined" !== typeof console && console.warn(t); try { @@ -60225,7 +59742,7 @@ } } - function kT(e, t) { + function KR(e, t) { return { usr: e.state, key: e.key, @@ -60233,18 +59750,18 @@ } } - function wT(e, t, n, r) { - return void 0 === n && (n = null), vT({ + function YR(e, t, n, r) { + return void 0 === n && (n = null), GR({ pathname: "string" === typeof e ? e : e.pathname, search: "", hash: "" - }, "string" === typeof t ? ET(t) : t, { + }, "string" === typeof t ? ZR(t) : t, { state: n, key: t && t.key || r || Math.random().toString(36).substr(2, 8) }) } - function ST(e) { + function QR(e) { let { pathname: t = "/", search: n = "", @@ -60253,7 +59770,7 @@ return n && "?" !== n && (t += "?" === n.charAt(0) ? n : "?" + n), r && "#" !== r && (t += "#" === r.charAt(0) ? r : "#" + r), t } - function ET(e) { + function ZR(e) { let t = {}; if (e) { let n = e.indexOf("#"); @@ -60264,12 +59781,12 @@ return t } - function OT(e, t, n, r) { + function XR(e, t, n, r) { void 0 === r && (r = {}); let { window: i = document.defaultView, v5Compat: a = !1 - } = r, o = i.history, s = yT.Pop, l = null, c = u(); + } = r, o = i.history, s = $R.Pop, l = null, c = u(); function u() { return (o.state || { @@ -60278,7 +59795,7 @@ } function d() { - s = yT.Pop; + s = $R.Pop; let e = u(), t = null == e ? null : e - c; c = e, l && l({ @@ -60290,10 +59807,10 @@ function p(e) { let t = "null" !== i.location.origin ? i.location.origin : i.location.href, - n = "string" === typeof e ? e : ST(e); - return bT(t, "No window.location.(origin|href) available to create URL for href: " + n), new URL(n, t) + n = "string" === typeof e ? e : QR(e); + return WR(t, "No window.location.(origin|href) available to create URL for href: " + n), new URL(n, t) } - null == c && (c = 0, o.replaceState(vT({}, o.state, { + null == c && (c = 0, o.replaceState(GR({}, o.state, { idx: c }), "")); let h = { @@ -60305,8 +59822,8 @@ }, listen(e) { if (l) throw new Error("A history only accepts one active listener"); - return i.addEventListener(_T, d), l = e, () => { - i.removeEventListener(_T, d), l = null + return i.addEventListener(qR, d), l = e, () => { + i.removeEventListener(qR, d), l = null } }, createHref: e => t(i, e), @@ -60320,10 +59837,10 @@ } }, push: function(e, t) { - s = yT.Push; - let r = wT(h.location, e, t); + s = $R.Push; + let r = YR(h.location, e, t); n && n(r, e), c = u() + 1; - let d = kT(r, c), + let d = KR(r, c), p = h.createHref(r); try { o.pushState(d, "", p) @@ -60338,10 +59855,10 @@ }) }, replace: function(e, t) { - s = yT.Replace; - let r = wT(h.location, e, t); + s = $R.Replace; + let r = YR(h.location, e, t); n && n(r, e), c = u(); - let i = kT(r, c), + let i = KR(r, c), d = h.createHref(r); o.replaceState(i, "", d), a && l && l({ action: s, @@ -60353,38 +59870,38 @@ }; return h } - var IT; + var JR; ! function(e) { e.data = "data", e.deferred = "deferred", e.redirect = "redirect", e.error = "error" - }(IT || (IT = {})); - const CT = new Set(["lazy", "caseSensitive", "path", "id", "index", "children"]); + }(JR || (JR = {})); + const eD = new Set(["lazy", "caseSensitive", "path", "id", "index", "children"]); - function AT(e, t, n, r) { + function tD(e, t, n, r) { return void 0 === n && (n = []), void 0 === r && (r = {}), e.map(((e, i) => { let a = [...n, i], o = "string" === typeof e.id ? e.id : a.join("-"); - if (bT(!0 !== e.index || !e.children, "Cannot specify children on an index route"), bT(!r[o], 'Found a route id collision on id "' + o + "\". Route id's must be globally unique within Data Router usages"), function(e) { - return !0 === e.index - }(e)) { - let n = vT({}, e, t(e), { + if (WR(!0 !== e.index || !e.children, "Cannot specify children on an index route"), WR(!r[o], 'Found a route id collision on id "' + o + "\". Route id's must be globally unique within Data Router usages"), function(e) { + return !0 === e.index + }(e)) { + let n = GR({}, e, t(e), { id: o }); return r[o] = n, n } { - let n = vT({}, e, t(e), { + let n = GR({}, e, t(e), { id: o, children: void 0 }); - return r[o] = n, e.children && (n.children = AT(e.children, t, a, r)), n + return r[o] = n, e.children && (n.children = tD(e.children, t, a, r)), n } })) } - function PT(e, t, n) { + function nD(e, t, n) { void 0 === n && (n = "/"); - let r = VT(("string" === typeof t ? ET(t) : t).pathname || "/", n); + let r = pD(("string" === typeof t ? ZR(t) : t).pathname || "/", n); if (null == r) return null; - let i = TT(e); + let i = rD(e); ! function(e) { e.sort(((e, t) => e.score !== t.score ? t.score - e.score : function(e, t) { let n = e.length === t.length && e.slice(0, -1).every(((e, n) => e === t[n])); @@ -60392,11 +59909,11 @@ }(e.routesMeta.map((e => e.childrenIndex)), t.routesMeta.map((e => e.childrenIndex))))) }(i); let a = null; - for (let o = 0; null == a && o < i.length; ++o) a = jT(i[o], zT(r)); + for (let o = 0; null == a && o < i.length; ++o) a = lD(i[o], dD(r)); return a } - function TT(e, t, n, r) { + function rD(e, t, n, r) { void 0 === t && (t = []), void 0 === n && (n = []), void 0 === r && (r = ""); let i = (e, i, a) => { let o = { @@ -60405,42 +59922,42 @@ childrenIndex: i, route: e }; - o.relativePath.startsWith("/") && (bT(o.relativePath.startsWith(r), 'Absolute route path "' + o.relativePath + '" nested under path "' + r + '" is not valid. An absolute child route path must start with the combined path of all its parent routes.'), o.relativePath = o.relativePath.slice(r.length)); - let s = $T([r, o.relativePath]), + o.relativePath.startsWith("/") && (WR(o.relativePath.startsWith(r), 'Absolute route path "' + o.relativePath + '" nested under path "' + r + '" is not valid. An absolute child route path must start with the combined path of all its parent routes.'), o.relativePath = o.relativePath.slice(r.length)); + let s = gD([r, o.relativePath]), l = n.concat(o); - e.children && e.children.length > 0 && (bT(!0 !== e.index, 'Index routes must not have child routes. Please remove all child routes from route path "' + s + '".'), TT(e.children, t, l, s)), (null != e.path || e.index) && t.push({ + e.children && e.children.length > 0 && (WR(!0 !== e.index, 'Index routes must not have child routes. Please remove all child routes from route path "' + s + '".'), rD(e.children, t, l, s)), (null != e.path || e.index) && t.push({ path: s, - score: NT(s, e.index), + score: sD(s, e.index), routesMeta: l }) }; return e.forEach(((e, t) => { var n; if ("" !== e.path && null != (n = e.path) && n.includes("?")) - for (let r of RT(e.path)) i(e, t, r); + for (let r of iD(e.path)) i(e, t, r); else i(e, t) })), t } - function RT(e) { + function iD(e) { let t = e.split("/"); if (0 === t.length) return []; let [n, ...r] = t, i = n.endsWith("?"), a = n.replace(/\?$/, ""); if (0 === r.length) return i ? [a, ""] : [a]; - let o = RT(r.join("/")), + let o = iD(r.join("/")), s = []; return s.push(...o.map((e => "" === e ? a : [a, e].join("/")))), i && s.push(...o), s.map((t => e.startsWith("/") && "" === t ? "/" : t)) } - const DT = /^:\w+$/, - LT = e => "*" === e; + const aD = /^:\w+$/, + oD = e => "*" === e; - function NT(e, t) { + function sD(e, t) { let n = e.split("/"), r = n.length; - return n.some(LT) && (r += -2), t && (r += 2), n.filter((e => !LT(e))).reduce(((e, t) => e + (DT.test(t) ? 3 : "" === t ? 1 : 10)), r) + return n.some(oD) && (r += -2), t && (r += 2), n.filter((e => !oD(e))).reduce(((e, t) => e + (aD.test(t) ? 3 : "" === t ? 1 : 10)), r) } - function jT(e, t) { + function lD(e, t) { let { routesMeta: n } = e, r = {}, i = "/", a = []; @@ -60448,7 +59965,7 @@ let e = n[o], s = o === n.length - 1, l = "/" === i ? t : t.slice(i.length) || "/", - c = FT({ + c = uD({ path: e.relativePath, caseSensitive: e.caseSensitive, end: s @@ -60458,18 +59975,18 @@ let u = e.route; a.push({ params: r, - pathname: $T([i, c.pathname]), - pathnameBase: qT($T([i, c.pathnameBase])), + pathname: gD([i, c.pathname]), + pathnameBase: vD(gD([i, c.pathnameBase])), route: u - }), "/" !== c.pathnameBase && (i = $T([i, c.pathnameBase])) + }), "/" !== c.pathnameBase && (i = gD([i, c.pathnameBase])) } return a } - function MT(e, t) { + function cD(e, t) { void 0 === t && (t = {}); let n = e; - n.endsWith("*") && "*" !== n && !n.endsWith("/*") && (xT(!1, 'Route path "' + n + '" will be treated as if it were "' + n.replace(/\*$/, "/*") + '" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "' + n.replace(/\*$/, "/*") + '".'), n = n.replace(/\*$/, "/*")); + n.endsWith("*") && "*" !== n && !n.endsWith("/*") && (HR(!1, 'Route path "' + n + '" will be treated as if it were "' + n.replace(/\*$/, "/*") + '" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "' + n.replace(/\*$/, "/*") + '".'), n = n.replace(/\*$/, "/*")); const r = n.startsWith("/") ? "/" : "", i = e => null == e ? "" : "string" === typeof e ? e : String(e); return r + n.split(/\/+/).map(((e, n, r) => { @@ -60480,13 +59997,13 @@ if (a) { const [, e, n] = a; let r = t[e]; - return bT("?" === n || null != r, 'Missing ":' + e + '" param'), i(r) + return WR("?" === n || null != r, 'Missing ":' + e + '" param'), i(r) } return e.replace(/\?$/g, "") })).filter((e => !!e)).join("/") } - function FT(e, t) { + function uD(e, t) { "string" === typeof e && (e = { path: e, caseSensitive: !1, @@ -60495,7 +60012,7 @@ let [n, r] = function(e, t, n) { void 0 === t && (t = !1); void 0 === n && (n = !0); - xT("*" === e || !e.endsWith("*") || e.endsWith("/*"), 'Route path "' + e + '" will be treated as if it were "' + e.replace(/\*$/, "/*") + '" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "' + e.replace(/\*$/, "/*") + '".'); + HR("*" === e || !e.endsWith("*") || e.endsWith("/*"), 'Route path "' + e + '" will be treated as if it were "' + e.replace(/\*$/, "/*") + '" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "' + e.replace(/\*$/, "/*") + '".'); let r = [], i = "^" + e.replace(/\/*\*?$/, "").replace(/^\/*/, "/").replace(/[\\.*+^${}|()[\]]/g, "\\$&").replace(/\/:(\w+)(\?)?/g, ((e, t, n) => (r.push({ paramName: t, @@ -60526,7 +60043,7 @@ try { return decodeURIComponent(e) } catch (n) { - return xT(!1, 'The value for the URL param "' + t + '" will not be decoded because the string "' + e + '" is a malformed URL segment. This is probably due to a bad percent encoding (' + n + ")."), e + return HR(!1, 'The value for the URL param "' + t + '" will not be decoded because the string "' + e + '" is a malformed URL segment. This is probably due to a bad percent encoding (' + n + ")."), e } }(l || "", r), e }), {}), @@ -60536,15 +60053,15 @@ } } - function zT(e) { + function dD(e) { try { return decodeURI(e) } catch (t) { - return xT(!1, 'The URL path "' + e + '" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding (' + t + ")."), e + return HR(!1, 'The URL path "' + e + '" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding (' + t + ")."), e } } - function VT(e, t) { + function pD(e, t) { if ("/" === t) return e; if (!e.toLowerCase().startsWith(t.toLowerCase())) return null; let n = t.endsWith("/") ? t.length - 1 : t.length, @@ -60552,17 +60069,17 @@ return r && "/" !== r ? null : e.slice(n) || "/" } - function UT(e, t, n, r) { + function hD(e, t, n, r) { return "Cannot include a '" + e + "' character in a manually specified `to." + t + "` field [" + JSON.stringify(r) + "]. Please separate it out to the `to." + n + '` field. Alternatively you may provide the full path as a string in and the router will parse it for you.' } - function BT(e) { + function fD(e) { return e.filter(((e, t) => 0 === t || e.route.path && e.route.path.length > 0)) } - function GT(e, t, n, r) { + function mD(e, t, n, r) { let i; - void 0 === r && (r = !1), "string" === typeof e ? i = ET(e) : (i = vT({}, e), bT(!i.pathname || !i.pathname.includes("?"), UT("?", "pathname", "search", i)), bT(!i.pathname || !i.pathname.includes("#"), UT("#", "pathname", "hash", i)), bT(!i.search || !i.search.includes("#"), UT("#", "search", "hash", i))); + void 0 === r && (r = !1), "string" === typeof e ? i = ZR(e) : (i = GR({}, e), WR(!i.pathname || !i.pathname.includes("?"), hD("?", "pathname", "search", i)), WR(!i.pathname || !i.pathname.includes("#"), hD("#", "pathname", "hash", i)), WR(!i.search || !i.search.includes("#"), hD("#", "search", "hash", i))); let a, o = "" === e || "" === i.pathname, s = o ? "/" : i.pathname; if (null == s) a = n; @@ -60591,7 +60108,7 @@ pathname: n, search: r = "", hash: i = "" - } = "string" === typeof e ? ET(e) : e, a = n ? n.startsWith("/") ? n : function(e, t) { + } = "string" === typeof e ? ZR(e) : e, a = n ? n.startsWith("/") ? n : function(e, t) { let n = t.replace(/\/+$/, "").split("/"); return e.split("/").forEach((e => { ".." === e ? n.length > 1 && n.pop() : "." !== e && n.push(e) @@ -60599,46 +60116,46 @@ }(n, t) : t; return { pathname: a, - search: WT(r), - hash: HT(i) + search: yD(r), + hash: _D(i) } }(i, a), c = s && "/" !== s && s.endsWith("/"), u = (o || "." === s) && n.endsWith("/"); return l.pathname.endsWith("/") || !c && !u || (l.pathname += "/"), l } - const $T = e => e.join("/").replace(/\/\/+/g, "/"), - qT = e => e.replace(/\/+$/, "").replace(/^\/*/, "/"), - WT = e => e && "?" !== e ? e.startsWith("?") ? e : "?" + e : "", - HT = e => e && "#" !== e ? e.startsWith("#") ? e : "#" + e : ""; - class KT extends Error {} - const YT = function(e, t) { + const gD = e => e.join("/").replace(/\/\/+/g, "/"), + vD = e => e.replace(/\/+$/, "").replace(/^\/*/, "/"), + yD = e => e && "?" !== e ? e.startsWith("?") ? e : "?" + e : "", + _D = e => e && "#" !== e ? e.startsWith("#") ? e : "#" + e : ""; + class bD extends Error {} + const xD = function(e, t) { void 0 === t && (t = 302); let n = t; "number" === typeof n ? n = { status: n } : "undefined" === typeof n.status && (n.status = 302); let r = new Headers(n.headers); - return r.set("Location", e), new Response(null, vT({}, n, { + return r.set("Location", e), new Response(null, GR({}, n, { headers: r })) }; - class QT { + class wD { constructor(e, t, n, r) { void 0 === r && (r = !1), this.status = e, this.statusText = t || "", this.internal = r, n instanceof Error ? (this.data = n.toString(), this.error = n) : this.data = n } } - function ZT(e) { + function kD(e) { return null != e && "number" === typeof e.status && "string" === typeof e.statusText && "boolean" === typeof e.internal && "data" in e } - const XT = ["post", "put", "patch", "delete"], - JT = new Set(XT), - eR = ["get", ...XT], - tR = new Set(eR), - nR = new Set([301, 302, 303, 307, 308]), - rR = new Set([307, 308]), - iR = { + const SD = ["post", "put", "patch", "delete"], + ED = new Set(SD), + OD = ["get", ...SD], + ID = new Set(OD), + CD = new Set([301, 302, 303, 307, 308]), + AD = new Set([307, 308]), + PD = { state: "idle", location: void 0, formMethod: void 0, @@ -60648,7 +60165,7 @@ json: void 0, text: void 0 }, - aR = { + TD = { state: "idle", data: void 0, formMethod: void 0, @@ -60658,34 +60175,34 @@ json: void 0, text: void 0 }, - oR = { + RD = { state: "unblocked", proceed: void 0, reset: void 0, location: void 0 }, - sR = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, - lR = e => ({ + DD = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, + LD = e => ({ hasErrorBoundary: Boolean(e.hasErrorBoundary) }), - cR = "remix-router-transitions"; + ND = "remix-router-transitions"; - function uR(e) { + function jD(e) { const t = e.window ? e.window : "undefined" !== typeof window ? window : void 0, n = "undefined" !== typeof t && "undefined" !== typeof t.document && "undefined" !== typeof t.document.createElement, r = !n; let i; - if (bT(e.routes.length > 0, "You must provide a non-empty routes array to createRouter"), e.mapRouteProperties) i = e.mapRouteProperties; + if (WR(e.routes.length > 0, "You must provide a non-empty routes array to createRouter"), e.mapRouteProperties) i = e.mapRouteProperties; else if (e.detectErrorBoundary) { let t = e.detectErrorBoundary; i = e => ({ hasErrorBoundary: t(e) }) - } else i = lR; + } else i = LD; let a, o = {}, - s = AT(e.routes, i, void 0, o), + s = tD(e.routes, i, void 0, o), l = e.basename || "/", - c = vT({ + c = GR({ v7_fetcherPersist: !1, v7_normalizeFormMethod: !1, v7_prependBasename: !1 @@ -60696,16 +60213,16 @@ h = null, f = null, m = null != e.hydrationData, - g = PT(s, e.history.location, l), + g = nD(s, e.history.location, l), v = null; if (null == g) { - let t = IR(404, { + let t = JD(404, { pathname: e.history.location.pathname }), { matches: n, route: r - } = OR(s); + } = XD(s); g = n, v = { [r.id]: t } @@ -60716,7 +60233,7 @@ location: e.history.location, matches: g, initialized: b, - navigation: iR, + navigation: PD, restoreScrollPosition: null == e.hydrationData && null, preventScrollReset: !1, revalidation: "idle", @@ -60726,8 +60243,8 @@ fetchers: new Map, blockers: new Map }, - k = yT.Pop, - w = !1, + w = $R.Pop, + k = !1, S = !1, E = new Map, O = null, @@ -60748,7 +60265,7 @@ U = !1; function B(e, t) { - void 0 === t && (t = {}), x = vT({}, x, e); + void 0 === t && (t = {}), x = GR({}, x, e); let n = [], r = []; c.v7_fetcherPersist && x.fetchers.forEach(((e, t) => { @@ -60765,13 +60282,13 @@ let l, { flushSync: c } = void 0 === r ? {} : r, - u = null != x.actionData && null != x.navigation.formMethod && NR(x.navigation.formMethod) && "loading" === x.navigation.state && !0 !== (null == (i = t.state) ? void 0 : i._isRedirect); + u = null != x.actionData && null != x.navigation.formMethod && sL(x.navigation.formMethod) && "loading" === x.navigation.state && !0 !== (null == (i = t.state) ? void 0 : i._isRedirect); l = n.actionData ? Object.keys(n.actionData).length > 0 ? n.actionData : null : u ? x.actionData : null; - let d = n.loaderData ? SR(x.loaderData, n.loaderData, n.matches || [], n.errors) : x.loaderData, + let d = n.loaderData ? QD(x.loaderData, n.loaderData, n.matches || [], n.errors) : x.loaderData, p = x.blockers; - p.size > 0 && (p = new Map(p), p.forEach(((e, t) => p.set(t, oR)))); - let h, f = !0 === w || null != x.navigation.formMethod && NR(x.navigation.formMethod) && !0 !== (null == (o = t.state) ? void 0 : o._isRedirect); - if (a && (s = a, a = void 0), I || k === yT.Pop || (k === yT.Push ? e.history.push(t, t.state) : k === yT.Replace && e.history.replace(t, t.state)), k === yT.Pop) { + p.size > 0 && (p = new Map(p), p.forEach(((e, t) => p.set(t, RD)))); + let h, f = !0 === k || null != x.navigation.formMethod && sL(x.navigation.formMethod) && !0 !== (null == (o = t.state) ? void 0 : o._isRedirect); + if (a && (s = a, a = void 0), I || w === $R.Pop || (w === $R.Push ? e.history.push(t, t.state) : w === $R.Replace && e.history.replace(t, t.state)), w === $R.Pop) { let e = E.get(x.location.pathname); e && e.has(t.pathname) ? h = { currentLocation: x.location, @@ -60787,13 +60304,13 @@ nextLocation: t } } - B(vT({}, n, { + B(GR({}, n, { actionData: l, loaderData: d, - historyAction: k, + historyAction: w, location: t, initialized: !0, - navigation: iR, + navigation: PD, revalidation: "idle", restoreScrollPosition: se(t, n.matches || x.matches), preventScrollReset: f, @@ -60801,28 +60318,28 @@ }), { viewTransitionOpts: h, flushSync: !0 === c - }), k = yT.Pop, w = !1, S = !1, I = !1, C = !1, A = [], P = [] + }), w = $R.Pop, k = !1, S = !1, I = !1, C = !1, A = [], P = [] } async function $(t, n, r) { - _ && _.abort(), _ = null, k = t, I = !0 === (r && r.startUninterruptedRevalidation), + _ && _.abort(), _ = null, w = t, I = !0 === (r && r.startUninterruptedRevalidation), function(e, t) { if (p && f) { let n = oe(e, t); p[n] = f() } - }(x.location, x.matches), w = !0 === (r && r.preventScrollReset), S = !0 === (r && r.enableViewTransition); + }(x.location, x.matches), k = !0 === (r && r.preventScrollReset), S = !0 === (r && r.enableViewTransition); let c = a || s, u = r && r.overrideNavigation, - d = PT(c, n, l), + d = nD(c, n, l), h = !0 === (r && r.flushSync); if (!d) { - let e = IR(404, { + let e = JD(404, { pathname: n.pathname }), { matches: t, route: r - } = OR(c); + } = XD(c); return ae(), void G(n, { matches: t, loaderData: {}, @@ -60834,22 +60351,22 @@ }) } if (x.initialized && !C && function(e, t) { - if (e.pathname !== t.pathname || e.search !== t.search) return !1; - if ("" === e.hash) return "" !== t.hash; - if (e.hash === t.hash) return !0; - if ("" !== t.hash) return !0; - return !1 - }(x.location, n) && !(r && r.submission && NR(r.submission.formMethod))) return void G(n, { + if (e.pathname !== t.pathname || e.search !== t.search) return !1; + if ("" === e.hash) return "" !== t.hash; + if (e.hash === t.hash) return !0; + if ("" !== t.hash) return !0; + return !1 + }(x.location, n) && !(r && r.submission && sL(r.submission.formMethod))) return void G(n, { matches: d }, { flushSync: h }); _ = new AbortController; - let m, g, v = _R(e.history, n, _.signal, r && r.submission); + let m, g, v = qD(e.history, n, _.signal, r && r.submission); if (r && r.pendingError) g = { - [ER(d).route.id]: r.pendingError + [ZD(d).route.id]: r.pendingError }; - else if (r && r.submission && NR(r.submission.formMethod)) { + else if (r && r.submission && sL(r.submission.formMethod)) { let e = await async function(e, t, n, r, a) { void 0 === a && (a = {}); H(); @@ -60871,20 +60388,20 @@ }, { flushSync: !0 === a.flushSync }); - let u = zR(r, t); + let u = dL(r, t); if (u.route.action || u.route.lazy) { - if (s = await yR("action", e, u, r, o, i, l), e.signal.aborted) return { + if (s = await $D("action", e, u, r, o, i, l), e.signal.aborted) return { shortCircuited: !0 } } else s = { - type: IT.error, - error: IR(405, { + type: JR.error, + error: JD(405, { method: e.method, pathname: t.pathname, routeId: u.route.id }) }; - if (RR(s)) { + if (iL(s)) { let e; return e = a && null != a.replace ? a.replace : s.location === x.location.pathname + x.location.search, await q(x, s, { submission: n, @@ -60893,16 +60410,16 @@ shortCircuited: !0 } } - if (TR(s)) { - let e = ER(r, u.route.id); - return !0 !== (a && a.replace) && (k = yT.Push), { + if (rL(s)) { + let e = ZD(r, u.route.id); + return !0 !== (a && a.replace) && (w = $R.Push), { pendingActionData: {}, pendingActionError: { [e.route.id]: s.error } } } - if (PR(s)) throw IR(400, { + if (nL(s)) throw JD(400, { type: "defer-action" }); return { @@ -60915,7 +60432,7 @@ flushSync: h }); if (e.shortCircuited) return; - m = e.pendingActionData, g = e.pendingActionError, u = UR(n, r.submission), h = !1, v = new Request(v.url, { + m = e.pendingActionData, g = e.pendingActionError, u = hL(n, r.submission), h = !1, v = new Request(v.url, { signal: v.signal }) } @@ -60924,13 +60441,13 @@ loaderData: b, errors: E } = await async function(t, n, r, i, o, c, u, d, p, h) { - let f = i || UR(n, o), - m = o || c || VR(f), + let f = i || hL(n, o), + m = o || c || pL(f), g = a || s, - [v, y] = fR(e.history, x, r, m, n, C, A, P, F, j, N, g, l, p, h); + [v, y] = VD(e.history, x, r, m, n, C, A, P, F, j, N, g, l, p, h); if (ae((e => !(r && r.some((t => t.route.id === e))) || v && v.some((t => t.route.id === e)))), D = ++R, 0 === v.length && 0 === y.length) { let e = ee(); - return G(n, vT({ + return G(n, GR({ matches: r, loaderData: {}, errors: h || null @@ -60947,11 +60464,11 @@ if (!I) { y.forEach((e => { let t = x.fetchers.get(e.key), - n = BR(void 0, t ? t.data : void 0); + n = fL(void 0, t ? t.data : void 0); x.fetchers.set(e.key, n) })); let e = p || x.actionData; - B(vT({ + B(GR({ navigation: f }, e ? 0 === Object.keys(e).length ? { actionData: null @@ -60969,8 +60486,8 @@ let b = () => y.forEach((e => X(e.key))); _ && _.signal.addEventListener("abort", b); let { - results: k, - loaderResults: w, + results: w, + loaderResults: k, fetcherResults: S } = await W(x.matches, r, v, y, t); if (t.signal.aborted) return { @@ -60978,7 +60495,7 @@ }; _ && _.signal.removeEventListener("abort", b); y.forEach((e => T.delete(e.key))); - let E = CR(k); + let E = eL(w); if (E) { if (E.idx >= v.length) { let e = y[E.idx - v.length].key; @@ -60993,7 +60510,7 @@ let { loaderData: O, errors: L - } = wR(x, r, v, w, h, y, S, z); + } = YD(x, r, v, k, h, y, S, z); z.forEach(((e, t) => { e.subscribe((n => { (n || e.done) && z.delete(t) @@ -61002,14 +60519,14 @@ let M = ee(), V = te(D), U = M || V || y.length > 0; - return vT({ + return GR({ loaderData: O, errors: L }, U ? { fetchers: new Map(x.fetchers) } : {}) }(v, n, d, u, r && r.submission, r && r.fetcherSubmission, r && r.replace, h, m, g); - y || (_ = null, G(n, vT({ + y || (_ = null, G(n, GR({ matches: d }, m ? { actionData: m @@ -61025,55 +60542,55 @@ replace: c } = void 0 === a ? {} : a; i.revalidate && (C = !0); - let u = wT(r.location, i.location, { + let u = YR(r.location, i.location, { _isRedirect: !0 }); - if (bT(u, "Expected a location on the redirect navigation"), n) { + if (WR(u, "Expected a location on the redirect navigation"), n) { let n = !1; if (i.reloadDocument) n = !0; - else if (sR.test(i.location)) { + else if (DD.test(i.location)) { const r = e.history.createURL(i.location); - n = r.origin !== t.location.origin || null == VT(r.pathname, l) + n = r.origin !== t.location.origin || null == pD(r.pathname, l) } if (n) return void(c ? t.location.replace(i.location) : t.location.assign(i.location)) } _ = null; - let d = !0 === c ? yT.Replace : yT.Push, + let d = !0 === c ? $R.Replace : $R.Push, { formMethod: p, formAction: h, formEncType: f } = r.navigation; - !o && !s && p && h && f && (o = VR(r.navigation)); + !o && !s && p && h && f && (o = pL(r.navigation)); let m = o || s; - if (rR.has(i.status) && m && NR(m.formMethod)) await $(d, u, { - submission: vT({}, m, { + if (AD.has(i.status) && m && sL(m.formMethod)) await $(d, u, { + submission: GR({}, m, { formAction: i.location }), - preventScrollReset: w + preventScrollReset: k }); else { - let e = UR(u, o); + let e = hL(u, o); await $(d, u, { overrideNavigation: e, fetcherSubmission: s, - preventScrollReset: w + preventScrollReset: k }) } } async function W(t, n, r, a, s) { - let c = await Promise.all([...r.map((e => yR("loader", s, e, n, o, i, l))), ...a.map((t => { - if (t.matches && t.match && t.controller) return yR("loader", _R(e.history, t.path, t.controller.signal), t.match, t.matches, o, i, l); + let c = await Promise.all([...r.map((e => $D("loader", s, e, n, o, i, l))), ...a.map((t => { + if (t.matches && t.match && t.controller) return $D("loader", qD(e.history, t.path, t.controller.signal), t.match, t.matches, o, i, l); return { - type: IT.error, - error: IR(404, { + type: JR.error, + error: JD(404, { pathname: t.path }) } }))]), u = c.slice(0, r.length), d = c.slice(r.length); - return await Promise.all([jR(t, r, u, u.map((() => s.signal)), !1, x.loaderData), jR(t, a.map((e => e.match)), d, a.map((e => e.controller ? e.controller.signal : null)), !0)]), { + return await Promise.all([lL(t, r, u, u.map((() => s.signal)), !1, x.loaderData), lL(t, a.map((e => e.match)), d, a.map((e => e.controller ? e.controller.signal : null)), !0)]), { results: c, loaderResults: u, fetcherResults: d @@ -61096,7 +60613,7 @@ function Y(e, t, n, r) { void 0 === r && (r = {}); - let i = ER(x.matches, t); + let i = ZD(x.matches, t); Z(e), B({ errors: { [i.route.id]: n @@ -61108,7 +60625,7 @@ } function Q(e) { - return c.v7_fetcherPersist && (M.set(e, (M.get(e) || 0) + 1), F.has(e) && F.delete(e)), x.fetchers.get(e) || aR + return c.v7_fetcherPersist && (M.set(e, (M.get(e) || 0) + 1), F.has(e) && F.delete(e)), x.fetchers.get(e) || TD } function Z(e) { @@ -61118,12 +60635,12 @@ function X(e) { let t = T.get(e); - bT(t, "Expected fetch controller: " + e), t.abort(), T.delete(e) + WR(t, "Expected fetch controller: " + e), t.abort(), T.delete(e) } function J(e) { for (let t of e) { - let e = GR(Q(t).data); + let e = mL(Q(t).data); x.fetchers.set(t, e) } } @@ -61133,7 +60650,7 @@ t = !1; for (let n of N) { let r = x.fetchers.get(n); - bT(r, "Expected fetcher: " + n), "loading" === r.state && (N.delete(n), e.push(n), t = !0) + WR(r, "Expected fetcher: " + n), "loading" === r.state && (N.delete(n), e.push(n), t = !0) } return J(e), t } @@ -61143,7 +60660,7 @@ for (let [n, r] of L) if (r < e) { let e = x.fetchers.get(n); - bT(e, "Expected fetcher: " + n), "loading" === e.state && (X(n), L.delete(n), t.push(n)) + WR(e, "Expected fetcher: " + n), "loading" === e.state && (X(n), L.delete(n), t.push(n)) } return J(t), t.length > 0 } @@ -61152,8 +60669,8 @@ } function re(e, t) { - let n = x.blockers.get(e) || oR; - bT("unblocked" === n.state && "blocked" === t.state || "blocked" === n.state && "blocked" === t.state || "blocked" === n.state && "proceeding" === t.state || "blocked" === n.state && "unblocked" === t.state || "proceeding" === n.state && "unblocked" === t.state, "Invalid blocker state transition: " + n.state + " -> " + t.state); + let n = x.blockers.get(e) || RD; + WR("unblocked" === n.state && "blocked" === t.state || "blocked" === n.state && "blocked" === t.state || "blocked" === n.state && "proceeding" === t.state || "blocked" === n.state && "unblocked" === t.state || "proceeding" === n.state && "unblocked" === t.state, "Invalid blocker state transition: " + n.state + " -> " + t.state); let r = new Map(x.blockers); r.set(e, t), B({ blockers: r @@ -61167,7 +60684,7 @@ historyAction: r } = e; if (0 === V.size) return; - V.size > 1 && xT(!1, "A router only supports one blocker at a time"); + V.size > 1 && HR(!1, "A router only supports one blocker at a time"); let i = Array.from(V.entries()), [a, o] = i[i.length - 1], s = x.blockers.get(a); @@ -61229,40 +60746,40 @@ }, initialize: function() { if (u = e.history.listen((t => { - let { - action: n, - location: r, - delta: i - } = t; - if (U) return void(U = !1); - xT(0 === V.size || null != i, "You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL."); - let a = ie({ - currentLocation: x.location, - nextLocation: r, - historyAction: n - }); - return a && null != i ? (U = !0, e.history.go(-1 * i), void re(a, { - state: "blocked", - location: r, - proceed() { - re(a, { - state: "proceeding", - proceed: void 0, - reset: void 0, - location: r - }), e.history.go(i) - }, - reset() { - let e = new Map(x.blockers); - e.set(a, oR), B({ - blockers: e - }) - } - })) : $(n, r) - })), n) { + let { + action: n, + location: r, + delta: i + } = t; + if (U) return void(U = !1); + HR(0 === V.size || null != i, "You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL."); + let a = ie({ + currentLocation: x.location, + nextLocation: r, + historyAction: n + }); + return a && null != i ? (U = !0, e.history.go(-1 * i), void re(a, { + state: "blocked", + location: r, + proceed() { + re(a, { + state: "proceeding", + proceed: void 0, + reset: void 0, + location: r + }), e.history.go(i) + }, + reset() { + let e = new Map(x.blockers); + e.set(a, RD), B({ + blockers: e + }) + } + })) : $(n, r) + })), n) { ! function(e, t) { try { - let n = e.sessionStorage.getItem(cR); + let n = e.sessionStorage.getItem(ND); if (n) { let e = JSON.parse(n); for (let [n, r] of Object.entries(e || {})) r && Array.isArray(r) && t.set(n, new Set(r || [])) @@ -61274,21 +60791,21 @@ let r = {}; for (let [e, n] of t) r[e] = [...n]; try { - e.sessionStorage.setItem(cR, JSON.stringify(r)) + e.sessionStorage.setItem(ND, JSON.stringify(r)) } catch (n) { - xT(!1, "Failed to save applied view transitions in sessionStorage (" + n + ").") + HR(!1, "Failed to save applied view transitions in sessionStorage (" + n + ").") } } }(t, E); t.addEventListener("pagehide", e), O = () => t.removeEventListener("pagehide", e) } - return x.initialized || $(yT.Pop, x.location), y + return x.initialized || $($R.Pop, x.location), y }, subscribe: function(e) { return d.add(e), () => d.delete(e) }, enableScrollRestoration: function(e, t, n) { - if (p = e, f = t, h = n || null, !m && x.navigation === iR) { + if (p = e, f = t, h = n || null, !m && x.navigation === PD) { m = !0; let e = se(x.location, x.matches); null != e && B({ @@ -61301,18 +60818,18 @@ }, navigate: async function t(n, r) { if ("number" === typeof n) return void e.history.go(n); - let i = dR(x.location, x.matches, l, c.v7_prependBasename, n, null == r ? void 0 : r.fromRouteId, null == r ? void 0 : r.relative), + let i = MD(x.location, x.matches, l, c.v7_prependBasename, n, null == r ? void 0 : r.fromRouteId, null == r ? void 0 : r.relative), { path: a, submission: o, error: s - } = pR(c.v7_normalizeFormMethod, !1, i, r), + } = FD(c.v7_normalizeFormMethod, !1, i, r), u = x.location, - d = wT(x.location, a, r && r.state); - d = vT({}, d, e.history.encodeLocation(d)); + d = YR(x.location, a, r && r.state); + d = GR({}, d, e.history.encodeLocation(d)); let p = r && null != r.replace ? r.replace : void 0, - h = yT.Push; - !0 === p ? h = yT.Replace : !1 === p || null != o && NR(o.formMethod) && o.formAction === x.location.pathname + x.location.search && (h = yT.Replace); + h = $R.Push; + !0 === p ? h = $R.Replace : !1 === p || null != o && sL(o.formMethod) && o.formAction === x.location.pathname + x.location.search && (h = $R.Replace); let f = r && "preventScrollReset" in r ? !0 === r.preventScrollReset : void 0, m = !0 === (r && r.unstable_flushSync), g = ie({ @@ -61341,7 +60858,7 @@ }, reset() { let e = new Map(x.blockers); - e.set(g, oR), B({ + e.set(g, RD), B({ blockers: e }) } @@ -61352,9 +60869,9 @@ T.has(t) && X(t); let p = !0 === (d && d.unstable_flushSync), h = a || s, - f = dR(x.location, x.matches, l, c.v7_prependBasename, u, n, null == d ? void 0 : d.relative), - m = PT(h, f, l); - if (!m) return void Y(t, n, IR(404, { + f = MD(x.location, x.matches, l, c.v7_prependBasename, u, n, null == d ? void 0 : d.relative), + m = nD(h, f, l); + if (!m) return void Y(t, n, JD(404, { pathname: f }), { flushSync: p @@ -61363,14 +60880,14 @@ path: g, submission: v, error: y - } = pR(c.v7_normalizeFormMethod, !0, f, d); + } = FD(c.v7_normalizeFormMethod, !0, f, d); if (y) return void Y(t, n, y, { flushSync: p }); - let b = zR(m, g); - w = !0 === (d && d.preventScrollReset), v && NR(v.formMethod) ? async function(t, n, r, c, u, d, p) { + let b = dL(m, g); + k = !0 === (d && d.preventScrollReset), v && sL(v.formMethod) ? async function(t, n, r, c, u, d, p) { if (H(), j.delete(t), !c.route.action && !c.route.lazy) { - let e = IR(405, { + let e = JD(405, { method: p.formMethod, pathname: r, routeId: n @@ -61396,35 +60913,35 @@ flushSync: d }); let f = new AbortController, - m = _R(e.history, r, f.signal, p); + m = qD(e.history, r, f.signal, p); T.set(t, f); let g = R, - v = await yR("action", m, c, u, o, i, l); + v = await $D("action", m, c, u, o, i, l); if (m.signal.aborted) return void(T.get(t) === f && T.delete(t)); - if (F.has(t)) return void K(t, GR(void 0)); - if (RR(v)) return T.delete(t), D > g ? void K(t, GR(void 0)) : (N.add(t), K(t, BR(p)), q(x, v, { + if (F.has(t)) return void K(t, mL(void 0)); + if (iL(v)) return T.delete(t), D > g ? void K(t, mL(void 0)) : (N.add(t), K(t, fL(p)), q(x, v, { fetcherSubmission: p })); - if (TR(v)) return void Y(t, n, v.error); - if (PR(v)) throw IR(400, { + if (rL(v)) return void Y(t, n, v.error); + if (nL(v)) throw JD(400, { type: "defer-action" }); let y = x.navigation.location || x.location, - b = _R(e.history, y, f.signal), - w = a || s, - S = "idle" !== x.navigation.state ? PT(w, x.navigation.location, l) : x.matches; - bT(S, "Didn't find any matches after fetcher action"); + b = qD(e.history, y, f.signal), + k = a || s, + S = "idle" !== x.navigation.state ? nD(k, x.navigation.location, l) : x.matches; + WR(S, "Didn't find any matches after fetcher action"); let E = ++R; L.set(t, E); - let O = BR(p, v.data); + let O = fL(p, v.data); x.fetchers.set(t, O); - let [I, M] = fR(e.history, x, S, p, y, C, A, P, F, j, N, w, l, { + let [I, M] = VD(e.history, x, S, p, y, C, A, P, F, j, N, k, l, { [c.route.id]: v.data }, void 0); M.filter((e => e.key !== t)).forEach((e => { let t = e.key, n = x.fetchers.get(t), - r = BR(void 0, n ? n.data : void 0); + r = fL(void 0, n ? n.data : void 0); x.fetchers.set(t, r), T.has(t) && X(t), e.controller && T.set(t, e.controller) })), B({ fetchers: new Map(x.fetchers) @@ -61438,7 +60955,7 @@ } = await W(x.matches, S, I, M, b); if (f.signal.aborted) return; f.signal.removeEventListener("abort", V), L.delete(t), T.delete(t), M.forEach((e => T.delete(e.key))); - let Z = CR(U); + let Z = eL(U); if (Z) { if (Z.idx >= I.length) { let e = M[Z.idx - I.length].key; @@ -61449,19 +60966,19 @@ let { loaderData: J, errors: ee - } = wR(x, x.matches, I, $, void 0, M, Q, z); + } = YD(x, x.matches, I, $, void 0, M, Q, z); if (x.fetchers.has(t)) { - let e = GR(v.data); + let e = mL(v.data); x.fetchers.set(t, e) } - te(E), "loading" === x.navigation.state && E > D ? (bT(k, "Expected pending action"), _ && _.abort(), G(x.navigation.location, { + te(E), "loading" === x.navigation.state && E > D ? (WR(w, "Expected pending action"), _ && _.abort(), G(x.navigation.location, { matches: S, loaderData: J, errors: ee, fetchers: new Map(x.fetchers) })) : (B({ errors: ee, - loaderData: SR(x.loaderData, J, S, ee), + loaderData: QD(x.loaderData, J, S, ee), fetchers: new Map(x.fetchers) }), C = !1) }(t, n, g, b, m, p, v): (j.set(t, { @@ -61469,27 +60986,27 @@ path: g }), async function(t, n, r, a, s, c, u) { let d = x.fetchers.get(t); - K(t, BR(u, d ? d.data : void 0), { + K(t, fL(u, d ? d.data : void 0), { flushSync: c }); let p = new AbortController, - h = _R(e.history, r, p.signal); + h = qD(e.history, r, p.signal); T.set(t, p); let f = R, - m = await yR("loader", h, a, s, o, i, l); - PR(m) && (m = await MR(m, h.signal, !0) || m); + m = await $D("loader", h, a, s, o, i, l); + nL(m) && (m = await cL(m, h.signal, !0) || m); T.get(t) === p && T.delete(t); if (h.signal.aborted) return; - if (F.has(t)) return void K(t, GR(void 0)); - if (RR(m)) return D > f ? void K(t, GR(void 0)) : (N.add(t), void await q(x, m)); - if (TR(m)) return void Y(t, n, m.error); - bT(!PR(m), "Unhandled fetcher deferred data"), K(t, GR(m.data)) + if (F.has(t)) return void K(t, mL(void 0)); + if (iL(m)) return D > f ? void K(t, mL(void 0)) : (N.add(t), void await q(x, m)); + if (rL(m)) return void Y(t, n, m.error); + WR(!nL(m), "Unhandled fetcher deferred data"), K(t, mL(m.data)) }(t, n, g, b, m, p, v)) }, revalidate: function() { H(), B({ revalidation: "loading" - }), "submitting" !== x.navigation.state && ("idle" !== x.navigation.state ? $(k || x.historyAction, x.navigation.location, { + }), "submitting" !== x.navigation.state && ("idle" !== x.navigation.state ? $(w || x.historyAction, x.navigation.location, { overrideNavigation: x.navigation }) : $(x.historyAction, x.location, { startUninterruptedRevalidation: !0 @@ -61511,20 +61028,20 @@ u && u(), O && O(), d.clear(), _ && _.abort(), x.fetchers.forEach(((e, t) => Z(t))), x.blockers.forEach(((e, t) => ne(t))) }, getBlocker: function(e, t) { - let n = x.blockers.get(e) || oR; + let n = x.blockers.get(e) || RD; return V.get(e) !== t && V.set(e, t), n }, deleteBlocker: ne, _internalFetchControllers: T, _internalActiveDeferreds: z, _internalSetRoutes: function(e) { - o = {}, a = AT(e, i, void 0, o) + o = {}, a = tD(e, i, void 0, o) } }, y } Symbol("deferred"); - function dR(e, t, n, r, i, a, o) { + function MD(e, t, n, r, i, a, o) { let s, l; if (a) { s = []; @@ -61534,34 +61051,34 @@ break } } else s = t, l = t[t.length - 1]; - let c = GT(i || ".", BT(s).map((e => e.pathnameBase)), VT(e.pathname, n) || e.pathname, "path" === o); - return null == i && (c.search = e.search, c.hash = e.hash), null != i && "" !== i && "." !== i || !l || !l.route.index || FR(c.search) || (c.search = c.search ? c.search.replace(/^\?/, "?index&") : "?index"), r && "/" !== n && (c.pathname = "/" === c.pathname ? n : $T([n, c.pathname])), ST(c) + let c = mD(i || ".", fD(s).map((e => e.pathnameBase)), pD(e.pathname, n) || e.pathname, "path" === o); + return null == i && (c.search = e.search, c.hash = e.hash), null != i && "" !== i && "." !== i || !l || !l.route.index || uL(c.search) || (c.search = c.search ? c.search.replace(/^\?/, "?index&") : "?index"), r && "/" !== n && (c.pathname = "/" === c.pathname ? n : gD([n, c.pathname])), QR(c) } - function pR(e, t, n, r) { + function FD(e, t, n, r) { if (!r || ! function(e) { - return null != e && ("formData" in e && null != e.formData || "body" in e && void 0 !== e.body) - }(r)) return { + return null != e && ("formData" in e && null != e.formData || "body" in e && void 0 !== e.body) + }(r)) return { path: n }; - if (r.formMethod && !LR(r.formMethod)) return { + if (r.formMethod && !oL(r.formMethod)) return { path: n, - error: IR(405, { + error: JD(405, { method: r.formMethod }) }; let i, a, o = () => ({ path: n, - error: IR(400, { + error: JD(400, { type: "invalid-body" }) }), s = r.formMethod || "get", l = e ? s.toUpperCase() : s.toLowerCase(), - c = AR(n); + c = tL(n); if (void 0 !== r.body) { if ("text/plain" === r.formEncType) { - if (!NR(l)) return o(); + if (!sL(l)) return o(); let e = "string" === typeof r.body ? r.body : r.body instanceof FormData || r.body instanceof URLSearchParams ? Array.from(r.body.entries()).reduce(((e, t) => { let [n, r] = t; return "" + e + n + "=" + r + "\n" @@ -61579,7 +61096,7 @@ } } if ("application/json" === r.formEncType) { - if (!NR(l)) return o(); + if (!sL(l)) return o(); try { let e = "string" === typeof r.body ? JSON.parse(r.body) : r.body; return { @@ -61598,15 +61115,15 @@ } } } - if (bT("function" === typeof FormData, "FormData is not available in this environment"), r.formData) i = bR(r.formData), a = r.formData; - else if (r.body instanceof FormData) i = bR(r.body), a = r.body; - else if (r.body instanceof URLSearchParams) i = r.body, a = xR(i); + if (WR("function" === typeof FormData, "FormData is not available in this environment"), r.formData) i = WD(r.formData), a = r.formData; + else if (r.body instanceof FormData) i = WD(r.body), a = r.body; + else if (r.body instanceof URLSearchParams) i = r.body, a = HD(i); else if (null == r.body) i = new URLSearchParams, a = new FormData; else try { - i = new URLSearchParams(r.body), a = xR(i) - } catch (p) { - return o() - } + i = new URLSearchParams(r.body), a = HD(i) + } catch (p) { + return o() + } let u = { formMethod: l, formAction: c, @@ -61615,18 +61132,18 @@ json: void 0, text: void 0 }; - if (NR(u.formMethod)) return { + if (sL(u.formMethod)) return { path: n, submission: u }; - let d = ET(n); - return t && d.search && FR(d.search) && i.append("index", ""), d.search = "?" + i, { - path: ST(d), + let d = ZR(n); + return t && d.search && uL(d.search) && i.append("index", ""), d.search = "?" + i, { + path: QR(d), submission: u } } - function hR(e, t) { + function zD(e, t) { let n = e; if (t) { let r = e.findIndex((e => e.route.id === t)); @@ -61635,35 +61152,35 @@ return n } - function fR(e, t, n, r, i, a, o, s, l, c, u, d, p, h, f) { + function VD(e, t, n, r, i, a, o, s, l, c, u, d, p, h, f) { let m = f ? Object.values(f)[0] : h ? Object.values(h)[0] : void 0, g = e.createURL(t.location), v = e.createURL(i), y = f ? Object.keys(f)[0] : void 0, - _ = hR(n, y).filter(((e, n) => { + _ = zD(n, y).filter(((e, n) => { if (e.route.lazy) return !0; if (null == e.route.loader) return !1; if (function(e, t, n) { - let r = !t || n.route.id !== t.route.id, - i = void 0 === e[n.route.id]; - return r || i - }(t.loaderData, t.matches[n], e) || o.some((t => t === e.route.id))) return !0; + let r = !t || n.route.id !== t.route.id, + i = void 0 === e[n.route.id]; + return r || i + }(t.loaderData, t.matches[n], e) || o.some((t => t === e.route.id))) return !0; let i = t.matches[n], s = e; - return gR(e, vT({ + return BD(e, GR({ currentUrl: g, currentParams: i.params, nextUrl: v, nextParams: s.params }, r, { actionResult: m, - defaultShouldRevalidate: a || g.pathname + g.search === v.pathname + v.search || g.search !== v.search || mR(i, s) + defaultShouldRevalidate: a || g.pathname + g.search === v.pathname + v.search || g.search !== v.search || UD(i, s) })) })), b = []; return c.forEach(((e, i) => { if (!n.some((t => t.route.id === e.routeId)) || l.has(i)) return; - let o = PT(d, e.path, p); + let o = nD(d, e.path, p); if (!o) return void b.push({ key: i, routeId: e.routeId, @@ -61673,9 +61190,9 @@ controller: null }); let c = t.fetchers.get(i), - h = zR(o, e.path), + h = dL(o, e.path), f = !1; - f = !u.has(i) && (!!s.includes(i) || (c && "idle" !== c.state && void 0 === c.data ? a : gR(h, vT({ + f = !u.has(i) && (!!s.includes(i) || (c && "idle" !== c.state && void 0 === c.data ? a : BD(h, GR({ currentUrl: g, currentParams: t.matches[t.matches.length - 1].params, nextUrl: v, @@ -61694,34 +61211,34 @@ })), [_, b] } - function mR(e, t) { + function UD(e, t) { let n = e.route.path; return e.pathname !== t.pathname || null != n && n.endsWith("*") && e.params["*"] !== t.params["*"] } - function gR(e, t) { + function BD(e, t) { if (e.route.shouldRevalidate) { let n = e.route.shouldRevalidate(t); if ("boolean" === typeof n) return n } return t.defaultShouldRevalidate } - async function vR(e, t, n) { + async function GD(e, t, n) { if (!e.lazy) return; let r = await e.lazy(); if (!e.lazy) return; let i = n[e.id]; - bT(i, "No route found in manifest"); + WR(i, "No route found in manifest"); let a = {}; for (let o in r) { let e = void 0 !== i[o] && "hasErrorBoundary" !== o; - xT(!e, 'Route "' + i.id + '" has a static property "' + o + '" defined but its lazy function is also returning a value for this property. The lazy route property "' + o + '" will be ignored.'), e || CT.has(o) || (a[o] = r[o]) + HR(!e, 'Route "' + i.id + '" has a static property "' + o + '" defined but its lazy function is also returning a value for this property. The lazy route property "' + o + '" will be ignored.'), e || eD.has(o) || (a[o] = r[o]) } - Object.assign(i, a), Object.assign(i, vT({}, t(i), { + Object.assign(i, a), Object.assign(i, GR({}, t(i), { lazy: void 0 })) } - async function yR(e, t, n, r, i, a, o, s) { + async function $D(e, t, n, r, i, a, o, s) { let l, c, u; void 0 === s && (s = {}); let d = e => { @@ -61738,22 +61255,22 @@ if (r) { let e, t = await Promise.all([d(r).catch((t => { e = t - })), vR(n.route, a, i)]); + })), GD(n.route, a, i)]); if (e) throw e; c = t[0] } else { - if (await vR(n.route, a, i), r = n.route[e], !r) { + if (await GD(n.route, a, i), r = n.route[e], !r) { if ("action" === e) { let e = new URL(t.url), r = e.pathname + e.search; - throw IR(405, { + throw JD(405, { method: t.method, pathname: r, routeId: n.route.id }) } return { - type: IT.data, + type: JR.data, data: void 0 } } @@ -61762,33 +61279,33 @@ else { if (!r) { let e = new URL(t.url); - throw IR(404, { + throw JD(404, { pathname: e.pathname + e.search }) } c = await d(r) } - bT(void 0 !== c, "You defined " + ("action" === e ? "an action" : "a loader") + ' for route "' + n.route.id + "\" but didn't return anything from your `" + e + "` function. Please return a value or `null`.") + WR(void 0 !== c, "You defined " + ("action" === e ? "an action" : "a loader") + ' for route "' + n.route.id + "\" but didn't return anything from your `" + e + "` function. Please return a value or `null`.") } catch (f) { - l = IT.error, c = f + l = JR.error, c = f } finally { u && t.signal.removeEventListener("abort", u) } - if (DR(c)) { + if (aL(c)) { let e, i = c.status; - if (nR.has(i)) { + if (CD.has(i)) { let e = c.headers.get("Location"); - if (bT(e, "Redirects returned/thrown from loaders/actions must have a Location header"), sR.test(e)) { + if (WR(e, "Redirects returned/thrown from loaders/actions must have a Location header"), DD.test(e)) { if (!s.isStaticRequest) { let n = new URL(t.url), r = e.startsWith("//") ? new URL(n.protocol + e) : new URL(e), - i = null != VT(r.pathname, o); + i = null != pD(r.pathname, o); r.origin === n.origin && i && (e = r.pathname + r.search + r.hash) } - } else e = dR(new URL(t.url), r.slice(0, r.indexOf(n) + 1), o, !0, e); + } else e = MD(new URL(t.url), r.slice(0, r.indexOf(n) + 1), o, !0, e); if (s.isStaticRequest) throw c.headers.set("Location", e), c; return { - type: IT.redirect, + type: JR.redirect, status: i, location: e, revalidate: null !== c.headers.get("X-Remix-Revalidate"), @@ -61797,81 +61314,81 @@ } if (s.isRouteRequest) { throw { - type: l === IT.error ? IT.error : IT.data, + type: l === JR.error ? JR.error : JR.data, response: c } } let a = c.headers.get("Content-Type"); - return e = a && /\bapplication\/json\b/.test(a) ? await c.json() : await c.text(), l === IT.error ? { + return e = a && /\bapplication\/json\b/.test(a) ? await c.json() : await c.text(), l === JR.error ? { type: l, - error: new QT(i, c.statusText, e), + error: new wD(i, c.statusText, e), headers: c.headers } : { - type: IT.data, + type: JR.data, data: e, statusCode: c.status, headers: c.headers } } - return l === IT.error ? { + return l === JR.error ? { type: l, error: c } : function(e) { let t = e; return t && "object" === typeof t && "object" === typeof t.data && "function" === typeof t.subscribe && "function" === typeof t.cancel && "function" === typeof t.resolveData }(c) ? { - type: IT.deferred, + type: JR.deferred, deferredData: c, statusCode: null == (p = c.init) ? void 0 : p.status, headers: (null == (h = c.init) ? void 0 : h.headers) && new Headers(c.init.headers) } : { - type: IT.data, + type: JR.data, data: c }; var p, h } - function _R(e, t, n, r) { - let i = e.createURL(AR(t)).toString(), + function qD(e, t, n, r) { + let i = e.createURL(tL(t)).toString(), a = { signal: n }; - if (r && NR(r.formMethod)) { + if (r && sL(r.formMethod)) { let { formMethod: e, formEncType: t } = r; a.method = e.toUpperCase(), "application/json" === t ? (a.headers = new Headers({ "Content-Type": t - }), a.body = JSON.stringify(r.json)) : "text/plain" === t ? a.body = r.text : "application/x-www-form-urlencoded" === t && r.formData ? a.body = bR(r.formData) : a.body = r.formData + }), a.body = JSON.stringify(r.json)) : "text/plain" === t ? a.body = r.text : "application/x-www-form-urlencoded" === t && r.formData ? a.body = WD(r.formData) : a.body = r.formData } return new Request(i, a) } - function bR(e) { + function WD(e) { let t = new URLSearchParams; for (let [n, r] of e.entries()) t.append(n, "string" === typeof r ? r : r.name); return t } - function xR(e) { + function HD(e) { let t = new FormData; for (let [n, r] of e.entries()) t.append(n, r); return t } - function kR(e, t, n, r, i) { + function KD(e, t, n, r, i) { let a, o = {}, s = null, l = !1, c = {}; return n.forEach(((n, u) => { let d = t[u].route.id; - if (bT(!RR(n), "Cannot handle redirect results in processLoaderData"), TR(n)) { - let t = ER(e, d), + if (WR(!iL(n), "Cannot handle redirect results in processLoaderData"), rL(n)) { + let t = ZD(e, d), i = n.error; - r && (i = Object.values(r)[0], r = void 0), s = s || {}, null == s[t.route.id] && (s[t.route.id] = i), o[d] = void 0, l || (l = !0, a = ZT(n.error) ? n.error.status : 500), n.headers && (c[d] = n.headers) - } else PR(n) ? (i.set(d, n.deferredData), o[d] = n.deferredData.data) : o[d] = n.data, null == n.statusCode || 200 === n.statusCode || l || (a = n.statusCode), n.headers && (c[d] = n.headers) + r && (i = Object.values(r)[0], r = void 0), s = s || {}, null == s[t.route.id] && (s[t.route.id] = i), o[d] = void 0, l || (l = !0, a = kD(n.error) ? n.error.status : 500), n.headers && (c[d] = n.headers) + } else nL(n) ? (i.set(d, n.deferredData), o[d] = n.deferredData.data) : o[d] = n.data, null == n.statusCode || 200 === n.statusCode || l || (a = n.statusCode), n.headers && (c[d] = n.headers) })), r && (s = r, o[Object.keys(r)[0]] = void 0), { loaderData: o, errors: s, @@ -61880,31 +61397,31 @@ } } - function wR(e, t, n, r, i, a, o, s) { + function YD(e, t, n, r, i, a, o, s) { let { loaderData: l, errors: c - } = kR(t, n, r, i, s); + } = KD(t, n, r, i, s); for (let u = 0; u < a.length; u++) { let { key: t, match: n, controller: r } = a[u]; - bT(void 0 !== o && void 0 !== o[u], "Did not find corresponding fetcher result"); + WR(void 0 !== o && void 0 !== o[u], "Did not find corresponding fetcher result"); let i = o[u]; if (!r || !r.signal.aborted) - if (TR(i)) { - let r = ER(e.matches, null == n ? void 0 : n.route.id); - c && c[r.route.id] || (c = vT({}, c, { + if (rL(i)) { + let r = ZD(e.matches, null == n ? void 0 : n.route.id); + c && c[r.route.id] || (c = GR({}, c, { [r.route.id]: i.error })), e.fetchers.delete(t) - } else if (RR(i)) bT(!1, "Unhandled fetcher revalidation redirect"); - else if (PR(i)) bT(!1, "Unhandled fetcher deferred data"); - else { - let n = GR(i.data); - e.fetchers.set(t, n) - } + } else if (iL(i)) WR(!1, "Unhandled fetcher revalidation redirect"); + else if (nL(i)) WR(!1, "Unhandled fetcher deferred data"); + else { + let n = mL(i.data); + e.fetchers.set(t, n) + } } return { loaderData: l, @@ -61912,8 +61429,8 @@ } } - function SR(e, t, n, r) { - let i = vT({}, t); + function QD(e, t, n, r) { + let i = GR({}, t); for (let a of n) { let n = a.route.id; if (t.hasOwnProperty(n) ? void 0 !== t[n] && (i[n] = t[n]) : void 0 !== e[n] && a.route.loader && (i[n] = e[n]), r && r.hasOwnProperty(n)) break @@ -61921,12 +61438,12 @@ return i } - function ER(e, t) { + function ZD(e, t) { let n = t ? e.slice(0, e.findIndex((e => e.route.id === t)) + 1) : [...e]; return n.reverse().find((e => !0 === e.route.hasErrorBoundary)) || e[0] } - function OR(e) { + function XD(e) { let t = 1 === e.length ? e[0] : e.find((e => e.index || !e.path || "/" === e.path)) || { id: "__shim-error-route__" }; @@ -61941,102 +61458,102 @@ } } - function IR(e, t) { + function JD(e, t) { let { pathname: n, routeId: r, method: i, type: a } = void 0 === t ? {} : t, o = "Unknown Server Error", s = "Unknown @remix-run/router error"; - return 400 === e ? (o = "Bad Request", i && n && r ? s = "You made a " + i + ' request to "' + n + '" but did not provide a `loader` for route "' + r + '", so there is no way to handle the request.' : "defer-action" === a ? s = "defer() is not supported in actions" : "invalid-body" === a && (s = "Unable to encode submission body")) : 403 === e ? (o = "Forbidden", s = 'Route "' + r + '" does not match URL "' + n + '"') : 404 === e ? (o = "Not Found", s = 'No route matches URL "' + n + '"') : 405 === e && (o = "Method Not Allowed", i && n && r ? s = "You made a " + i.toUpperCase() + ' request to "' + n + '" but did not provide an `action` for route "' + r + '", so there is no way to handle the request.' : i && (s = 'Invalid request method "' + i.toUpperCase() + '"')), new QT(e || 500, o, new Error(s), !0) + return 400 === e ? (o = "Bad Request", i && n && r ? s = "You made a " + i + ' request to "' + n + '" but did not provide a `loader` for route "' + r + '", so there is no way to handle the request.' : "defer-action" === a ? s = "defer() is not supported in actions" : "invalid-body" === a && (s = "Unable to encode submission body")) : 403 === e ? (o = "Forbidden", s = 'Route "' + r + '" does not match URL "' + n + '"') : 404 === e ? (o = "Not Found", s = 'No route matches URL "' + n + '"') : 405 === e && (o = "Method Not Allowed", i && n && r ? s = "You made a " + i.toUpperCase() + ' request to "' + n + '" but did not provide an `action` for route "' + r + '", so there is no way to handle the request.' : i && (s = 'Invalid request method "' + i.toUpperCase() + '"')), new wD(e || 500, o, new Error(s), !0) } - function CR(e) { + function eL(e) { for (let t = e.length - 1; t >= 0; t--) { let n = e[t]; - if (RR(n)) return { + if (iL(n)) return { result: n, idx: t } } } - function AR(e) { - return ST(vT({}, "string" === typeof e ? ET(e) : e, { + function tL(e) { + return QR(GR({}, "string" === typeof e ? ZR(e) : e, { hash: "" })) } - function PR(e) { - return e.type === IT.deferred + function nL(e) { + return e.type === JR.deferred } - function TR(e) { - return e.type === IT.error + function rL(e) { + return e.type === JR.error } - function RR(e) { - return (e && e.type) === IT.redirect + function iL(e) { + return (e && e.type) === JR.redirect } - function DR(e) { + function aL(e) { return null != e && "number" === typeof e.status && "string" === typeof e.statusText && "object" === typeof e.headers && "undefined" !== typeof e.body } - function LR(e) { - return tR.has(e.toLowerCase()) + function oL(e) { + return ID.has(e.toLowerCase()) } - function NR(e) { - return JT.has(e.toLowerCase()) + function sL(e) { + return ED.has(e.toLowerCase()) } - async function jR(e, t, n, r, i, a) { + async function lL(e, t, n, r, i, a) { for (let o = 0; o < n.length; o++) { let s = n[o], l = t[o]; if (!l) continue; let c = e.find((e => e.route.id === l.route.id)), - u = null != c && !mR(c, l) && void 0 !== (a && a[l.route.id]); - if (PR(s) && (i || u)) { + u = null != c && !UD(c, l) && void 0 !== (a && a[l.route.id]); + if (nL(s) && (i || u)) { let e = r[o]; - bT(e, "Expected an AbortSignal for revalidating fetcher deferred result"), await MR(s, e, i).then((e => { + WR(e, "Expected an AbortSignal for revalidating fetcher deferred result"), await cL(s, e, i).then((e => { e && (n[o] = e || n[o]) })) } } } - async function MR(e, t, n) { + async function cL(e, t, n) { if (void 0 === n && (n = !1), !await e.deferredData.resolveData(t)) { if (n) try { return { - type: IT.data, + type: JR.data, data: e.deferredData.unwrappedData } } catch (r) { return { - type: IT.error, + type: JR.error, error: r } } return { - type: IT.data, + type: JR.data, data: e.deferredData.data } } } - function FR(e) { + function uL(e) { return new URLSearchParams(e).getAll("index").some((e => "" === e)) } - function zR(e, t) { - let n = "string" === typeof t ? ET(t).search : t.search; - if (e[e.length - 1].route.index && FR(n || "")) return e[e.length - 1]; - let r = BT(e); + function dL(e, t) { + let n = "string" === typeof t ? ZR(t).search : t.search; + if (e[e.length - 1].route.index && uL(n || "")) return e[e.length - 1]; + let r = fD(e); return r[r.length - 1] } - function VR(e) { + function pL(e) { let { formMethod: t, formAction: n, @@ -62069,7 +61586,7 @@ } : void 0 } - function UR(e, t) { + function hL(e, t) { if (t) { return { state: "loading", @@ -62094,7 +61611,7 @@ } } - function BR(e, t) { + function fL(e, t) { if (e) { return { state: "loading", @@ -62119,7 +61636,7 @@ } } - function GR(e) { + function mL(e) { return { state: "idle", formMethod: void 0, @@ -62132,149 +61649,149 @@ } } - function $R() { - return $R = Object.assign ? Object.assign.bind() : function(e) { + function gL() { + return gL = Object.assign ? Object.assign.bind() : function(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t]; for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]) } return e - }, $R.apply(this, arguments) + }, gL.apply(this, arguments) } - const qR = Ee.createContext(null); - const WR = Ee.createContext(null); - const HR = Ee.createContext(null); - const KR = Ee.createContext(null); - const YR = Ee.createContext({ + const vL = Ee.createContext(null); + const yL = Ee.createContext(null); + const _L = Ee.createContext(null); + const bL = Ee.createContext(null); + const xL = Ee.createContext({ outlet: null, matches: [], isDataRoute: !1 }); - const QR = Ee.createContext(null); + const wL = Ee.createContext(null); - function ZR() { - return null != Ee.useContext(KR) + function kL() { + return null != Ee.useContext(bL) } - function XR() { - return ZR() || bT(!1), Ee.useContext(KR).location + function SL() { + return kL() || WR(!1), Ee.useContext(bL).location } - function JR(e) { - Ee.useContext(HR).static || Ee.useLayoutEffect(e) + function EL(e) { + Ee.useContext(_L).static || Ee.useLayoutEffect(e) } - function eD() { + function OL() { let { isDataRoute: e - } = Ee.useContext(YR); + } = Ee.useContext(xL); return e ? function() { let { router: e - } = pD(uD.UseNavigateStable), t = fD(dD.UseNavigateStable), n = Ee.useRef(!1); - JR((() => { + } = FL(jL.UseNavigateStable), t = VL(ML.UseNavigateStable), n = Ee.useRef(!1); + EL((() => { n.current = !0 })); let r = Ee.useCallback((function(r, i) { - void 0 === i && (i = {}), n.current && ("number" === typeof r ? e.navigate(r) : e.navigate(r, $R({ + void 0 === i && (i = {}), n.current && ("number" === typeof r ? e.navigate(r) : e.navigate(r, gL({ fromRouteId: t }, i))) }), [e, t]); return r }() : function() { - ZR() || bT(!1); - let e = Ee.useContext(qR), + kL() || WR(!1); + let e = Ee.useContext(vL), { basename: t, navigator: n - } = Ee.useContext(HR), + } = Ee.useContext(_L), { matches: r - } = Ee.useContext(YR), + } = Ee.useContext(xL), { pathname: i - } = XR(), - a = JSON.stringify(BT(r).map((e => e.pathnameBase))), + } = SL(), + a = JSON.stringify(fD(r).map((e => e.pathnameBase))), o = Ee.useRef(!1); - JR((() => { + EL((() => { o.current = !0 })); let s = Ee.useCallback((function(r, s) { if (void 0 === s && (s = {}), !o.current) return; if ("number" === typeof r) return void n.go(r); - let l = GT(r, JSON.parse(a), i, "path" === s.relative); - null == e && "/" !== t && (l.pathname = "/" === l.pathname ? t : $T([t, l.pathname])), (s.replace ? n.replace : n.push)(l, s.state, s) + let l = mD(r, JSON.parse(a), i, "path" === s.relative); + null == e && "/" !== t && (l.pathname = "/" === l.pathname ? t : gD([t, l.pathname])), (s.replace ? n.replace : n.push)(l, s.state, s) }), [t, n, a, i, e]); return s }() } - const tD = Ee.createContext(null); + const IL = Ee.createContext(null); - function nD() { + function CL() { let { matches: e - } = Ee.useContext(YR), t = e[e.length - 1]; + } = Ee.useContext(xL), t = e[e.length - 1]; return t ? t.params : {} } - function rD(e, t) { + function AL(e, t) { let { relative: n } = void 0 === t ? {} : t, { matches: r - } = Ee.useContext(YR), { + } = Ee.useContext(xL), { pathname: i - } = XR(), a = JSON.stringify(BT(r).map((e => e.pathnameBase))); - return Ee.useMemo((() => GT(e, JSON.parse(a), i, "path" === n)), [e, a, i, n]) + } = SL(), a = JSON.stringify(fD(r).map((e => e.pathnameBase))); + return Ee.useMemo((() => mD(e, JSON.parse(a), i, "path" === n)), [e, a, i, n]) } - function iD(e, t, n) { - ZR() || bT(!1); + function PL(e, t, n) { + kL() || WR(!1); let { navigator: r - } = Ee.useContext(HR), { + } = Ee.useContext(_L), { matches: i - } = Ee.useContext(YR), a = i[i.length - 1], o = a ? a.params : {}, s = (a && a.pathname, a ? a.pathnameBase : "/"); + } = Ee.useContext(xL), a = i[i.length - 1], o = a ? a.params : {}, s = (a && a.pathname, a ? a.pathnameBase : "/"); a && a.route; - let l, c = XR(); + let l, c = SL(); if (t) { var u; - let e = "string" === typeof t ? ET(t) : t; - "/" === s || (null == (u = e.pathname) ? void 0 : u.startsWith(s)) || bT(!1), l = e + let e = "string" === typeof t ? ZR(t) : t; + "/" === s || (null == (u = e.pathname) ? void 0 : u.startsWith(s)) || WR(!1), l = e } else l = c; let d = l.pathname || "/", - p = PT(e, { + p = nD(e, { pathname: "/" === s ? d : d.slice(s.length) || "/" }); - let h = cD(p && p.map((e => Object.assign({}, e, { + let h = NL(p && p.map((e => Object.assign({}, e, { params: Object.assign({}, o, e.params), - pathname: $T([s, r.encodeLocation ? r.encodeLocation(e.pathname).pathname : e.pathname]), - pathnameBase: "/" === e.pathnameBase ? s : $T([s, r.encodeLocation ? r.encodeLocation(e.pathnameBase).pathname : e.pathnameBase]) + pathname: gD([s, r.encodeLocation ? r.encodeLocation(e.pathname).pathname : e.pathname]), + pathnameBase: "/" === e.pathnameBase ? s : gD([s, r.encodeLocation ? r.encodeLocation(e.pathnameBase).pathname : e.pathnameBase]) }))), i, n); - return t && h ? Ee.createElement(KR.Provider, { + return t && h ? Ee.createElement(bL.Provider, { value: { - location: $R({ + location: gL({ pathname: "/", search: "", hash: "", state: null, key: "default" }, l), - navigationType: yT.Pop + navigationType: $R.Pop } }, h) : h } - function aD() { + function TL() { let e = function() { var e; - let t = Ee.useContext(QR), - n = hD(dD.UseRouteError), - r = fD(dD.UseRouteError); + let t = Ee.useContext(wL), + n = zL(ML.UseRouteError), + r = VL(ML.UseRouteError); if (t) return t; return null == (e = n.errors) ? void 0 : e[r] }(), - t = ZT(e) ? e.status + " " + e.statusText : e instanceof Error ? e.message : JSON.stringify(e), + t = kD(e) ? e.status + " " + e.statusText : e instanceof Error ? e.message : JSON.stringify(e), n = e instanceof Error ? e.stack : null, r = "rgba(200,200,200, 0.5)", i = { @@ -62289,8 +61806,8 @@ style: i }, n) : null, null) } - const oD = Ee.createElement(aD, null); - class sD extends Ee.Component { + const RL = Ee.createElement(TL, null); + class DL extends Ee.Component { constructor(e) { super(e), this.state = { location: e.location, @@ -62318,27 +61835,27 @@ console.error("React Router caught the following error during render", e, t) } render() { - return this.state.error ? Ee.createElement(YR.Provider, { + return this.state.error ? Ee.createElement(xL.Provider, { value: this.props.routeContext - }, Ee.createElement(QR.Provider, { + }, Ee.createElement(wL.Provider, { value: this.state.error, children: this.props.component })) : this.props.children } } - function lD(e) { + function LL(e) { let { routeContext: t, match: n, children: r - } = e, i = Ee.useContext(qR); - return i && i.static && i.staticContext && (n.route.errorElement || n.route.ErrorBoundary) && (i.staticContext._deepestRenderedBoundaryId = n.route.id), Ee.createElement(YR.Provider, { + } = e, i = Ee.useContext(vL); + return i && i.static && i.staticContext && (n.route.errorElement || n.route.ErrorBoundary) && (i.staticContext._deepestRenderedBoundaryId = n.route.id), Ee.createElement(xL.Provider, { value: t }, r) } - function cD(e, t, n) { + function NL(e, t, n) { var r; if (void 0 === t && (t = []), void 0 === n && (n = null), null == e) { var i; @@ -62349,16 +61866,16 @@ o = null == (r = n) ? void 0 : r.errors; if (null != o) { let e = a.findIndex((e => e.route.id && (null == o ? void 0 : o[e.route.id]))); - e >= 0 || bT(!1), a = a.slice(0, Math.min(a.length, e + 1)) + e >= 0 || WR(!1), a = a.slice(0, Math.min(a.length, e + 1)) } return a.reduceRight(((e, r, i) => { let s = r.route.id ? null == o ? void 0 : o[r.route.id] : null, l = null; - n && (l = r.route.errorElement || oD); + n && (l = r.route.errorElement || RL); let c = t.concat(a.slice(0, i + 1)), u = () => { let t; - return t = s ? l : r.route.Component ? Ee.createElement(r.route.Component, null) : r.route.element ? r.route.element : e, Ee.createElement(lD, { + return t = s ? l : r.route.Component ? Ee.createElement(r.route.Component, null) : r.route.element ? r.route.element : e, Ee.createElement(LL, { match: r, routeContext: { outlet: e, @@ -62368,7 +61885,7 @@ children: t }) }; - return n && (r.route.ErrorBoundary || r.route.errorElement || 0 === i) ? Ee.createElement(sD, { + return n && (r.route.ErrorBoundary || r.route.errorElement || 0 === i) ? Ee.createElement(DL, { location: n.location, revalidation: n.revalidation, component: l, @@ -62382,46 +61899,46 @@ }) : u() }), null) } - var uD = function(e) { + var jL = function(e) { return e.UseBlocker = "useBlocker", e.UseRevalidator = "useRevalidator", e.UseNavigateStable = "useNavigate", e - }(uD || {}), - dD = function(e) { + }(jL || {}), + ML = function(e) { return e.UseBlocker = "useBlocker", e.UseLoaderData = "useLoaderData", e.UseActionData = "useActionData", e.UseRouteError = "useRouteError", e.UseNavigation = "useNavigation", e.UseRouteLoaderData = "useRouteLoaderData", e.UseMatches = "useMatches", e.UseRevalidator = "useRevalidator", e.UseNavigateStable = "useNavigate", e.UseRouteId = "useRouteId", e - }(dD || {}); + }(ML || {}); - function pD(e) { - let t = Ee.useContext(qR); - return t || bT(!1), t + function FL(e) { + let t = Ee.useContext(vL); + return t || WR(!1), t } - function hD(e) { - let t = Ee.useContext(WR); - return t || bT(!1), t + function zL(e) { + let t = Ee.useContext(yL); + return t || WR(!1), t } - function fD(e) { + function VL(e) { let t = function(e) { - let t = Ee.useContext(YR); - return t || bT(!1), t + let t = Ee.useContext(xL); + return t || WR(!1), t }(), n = t.matches[t.matches.length - 1]; - return n.route.id || bT(!1), n.route.id + return n.route.id || WR(!1), n.route.id } Oe.startTransition; - function mD(e) { + function UL(e) { let { to: t, replace: n, state: r, relative: i } = e; - ZR() || bT(!1); + kL() || WR(!1); let { matches: a - } = Ee.useContext(YR), { + } = Ee.useContext(xL), { pathname: o - } = XR(), s = eD(), l = GT(t, BT(a).map((e => e.pathnameBase)), o, "path" === i), c = JSON.stringify(l); + } = SL(), s = OL(), l = mD(t, fD(a).map((e => e.pathnameBase)), o, "path" === i), c = JSON.stringify(l); return Ee.useEffect((() => s(JSON.parse(c), { replace: n, state: r, @@ -62429,32 +61946,32 @@ })), [s, c, i, n, r]), null } - function gD(e) { + function BL(e) { return function(e) { - let t = Ee.useContext(YR).outlet; - return t ? Ee.createElement(tD.Provider, { + let t = Ee.useContext(xL).outlet; + return t ? Ee.createElement(IL.Provider, { value: e }, t) : t }(e.context) } - function vD(e) { + function GL(e) { let { basename: t = "/", children: n = null, location: r, - navigationType: i = yT.Pop, + navigationType: i = $R.Pop, navigator: a, static: o = !1 } = e; - ZR() && bT(!1); + kL() && WR(!1); let s = t.replace(/^\/*/, "/"), l = Ee.useMemo((() => ({ basename: s, navigator: a, static: o })), [s, a, o]); - "string" === typeof r && (r = ET(r)); + "string" === typeof r && (r = ZR(r)); let { pathname: c = "/", search: u = "", @@ -62462,7 +61979,7 @@ state: p = null, key: h = "default" } = r, f = Ee.useMemo((() => { - let e = VT(c, s); + let e = pD(c, s); return null == e ? null : { location: { pathname: e, @@ -62474,15 +61991,15 @@ navigationType: i } }), [s, c, u, d, p, h, i]); - return null == f ? null : Ee.createElement(HR.Provider, { + return null == f ? null : Ee.createElement(_L.Provider, { value: l - }, Ee.createElement(KR.Provider, { + }, Ee.createElement(bL.Provider, { children: n, value: f })) } new Promise((() => {})); - class yD extends Ee.Component { + class $L extends Ee.Component { constructor(e) { super(e), this.state = { error: null @@ -62537,7 +62054,7 @@ } } - function _D(e) { + function qL(e) { let t = { hasErrorBoundary: null != e.ErrorBoundary || null != e.errorElement }; @@ -62549,38 +62066,4345 @@ ErrorBoundary: void 0 }), t } - const bD = ({ - labelItem: e - }) => { + var WL = e => "checkbox" === e.type, + HL = e => e instanceof Date, + KL = e => null == e; + const YL = e => "object" === typeof e; + var QL = e => !KL(e) && !Array.isArray(e) && YL(e) && !HL(e), + ZL = e => QL(e) && e.target ? WL(e.target) ? e.target.checked : e.target.value : e, + XL = (e, t) => e.has((e => e.substring(0, e.search(/\.\d+(\.|$)/)) || e)(t)), + JL = e => Array.isArray(e) ? e.filter(Boolean) : [], + eN = e => void 0 === e, + tN = (e, t, n) => { + if (!t || !QL(e)) return n; + const r = JL(t.split(/[,[\].]+?/)).reduce(((e, t) => KL(e) ? e : e[t]), e); + return eN(r) || r === e ? eN(e[t]) ? n : e[t] : r + }; + const nN = "blur", + rN = "focusout", + iN = "change", + aN = "onBlur", + oN = "onChange", + sN = "onSubmit", + lN = "onTouched", + cN = "all", + uN = "max", + dN = "min", + pN = "maxLength", + hN = "minLength", + fN = "pattern", + mN = "required", + gN = "validate", + vN = Ee.createContext(null), + yN = () => Ee.useContext(vN); + var _N = (e, t, n, r = !0) => { + const i = { + defaultValues: t._defaultValues + }; + for (const a in e) Object.defineProperty(i, a, { + get: () => { + const i = a; + return t._proxyFormState[i] !== cN && (t._proxyFormState[i] = !r || cN), n && (n[i] = !0), e[i] + } + }); + return i + }, + bN = e => QL(e) && !Object.keys(e).length, + xN = (e, t, n, r) => { + n(e); + const { + name: i, + ...a + } = e; + return bN(a) || Object.keys(a).length >= Object.keys(t).length || Object.keys(a).find((e => t[e] === (!r || cN))) + }, + wN = e => Array.isArray(e) ? e : [e], + kN = (e, t, n) => n && t ? e === t : !e || !t || e === t || wN(e).some((e => e && (e.startsWith(t) || t.startsWith(e)))); + + function SN(e) { + const t = Ee.useRef(e); + t.current = e, Ee.useEffect((() => { + const n = !e.disabled && t.current.subject.subscribe({ + next: t.current.next + }); + return () => { + n && n.unsubscribe() + } + }), [e.disabled]) + } + var EN = e => "string" === typeof e, + ON = (e, t, n, r, i) => EN(e) ? (r && t.watch.add(e), tN(n, e, i)) : Array.isArray(e) ? e.map((e => (r && t.watch.add(e), tN(n, e)))) : (r && (t.watchAll = !0), n), + IN = "undefined" !== typeof window && "undefined" !== typeof window.HTMLElement && "undefined" !== typeof document; + + function CN(e) { + let t; + const n = Array.isArray(e); + if (e instanceof Date) t = new Date(e); + else if (e instanceof Set) t = new Set(e); + else { + if (IN && (e instanceof Blob || e instanceof FileList) || !n && !QL(e)) return e; + if (t = n ? [] : {}, Array.isArray(e) || (e => { + const t = e.constructor && e.constructor.prototype; + return QL(t) && t.hasOwnProperty("isPrototypeOf") + })(e)) + for (const n in e) t[n] = CN(e[n]); + else t = e + } + return t + } + + function AN(e) { + const t = yN(), + { + name: n, + control: r = t.control, + shouldUnregister: i + } = e, + a = XL(r._names.array, n), + o = function(e) { + const t = yN(), + { + control: n = t.control, + name: r, + defaultValue: i, + disabled: a, + exact: o + } = e || {}, + s = Ee.useRef(r); + s.current = r, SN({ + disabled: a, + subject: n._subjects.watch, + next: e => { + kN(s.current, e.name, o) && c(CN(ON(s.current, n._names, e.values || n._formValues, !1, i))) + } + }); + const [l, c] = Ee.useState(n._getWatch(r, i)); + return Ee.useEffect((() => n._removeUnmounted())), l + }({ + control: r, + name: n, + defaultValue: tN(r._formValues, n, tN(r._defaultValues, n, e.defaultValue)), + exact: !0 + }), + s = function(e) { + const t = yN(), + { + control: n = t.control, + disabled: r, + name: i, + exact: a + } = e || {}, + [o, s] = Ee.useState(n._formState), + l = Ee.useRef(!0), + c = Ee.useRef({ + isDirty: !1, + isLoading: !1, + dirtyFields: !1, + touchedFields: !1, + isValidating: !1, + isValid: !1, + errors: !1 + }), + u = Ee.useRef(i); + return u.current = i, SN({ + disabled: r, + next: e => l.current && kN(u.current, e.name, a) && xN(e, c.current, n._updateFormState) && s({ + ...n._formState, + ...e + }), + subject: n._subjects.state + }), Ee.useEffect((() => { + l.current = !0; + const e = n._proxyFormState.isDirty && n._getDirty(); + return e !== n._formState.isDirty && n._subjects.state.next({ + isDirty: e + }), c.current.isValid && n._updateValid(!0), () => { + l.current = !1 + } + }), [n]), _N(o, n, c.current, !1) + }({ + control: r, + name: n + }), + l = Ee.useRef(r.register(n, { + ...e.rules, + value: o + })); + return Ee.useEffect((() => { + const e = (e, t) => { + const n = tN(r._fields, e); + n && (n._f.mount = t) + }; + return e(n, !0), () => { + const t = r._options.shouldUnregister || i; + (a ? t && !r._stateFlags.action : t) ? r.unregister(n): e(n, !1) + } + }), [n, r, a, i]), { + field: { + name: n, + value: o, + onChange: Ee.useCallback((e => l.current.onChange({ + target: { + value: ZL(e), + name: n + }, + type: iN + })), [n]), + onBlur: Ee.useCallback((() => l.current.onBlur({ + target: { + value: tN(r._formValues, n), + name: n + }, + type: nN + })), [n, r]), + ref: e => { + const t = tN(r._fields, n); + t && e && (t._f.ref = { + focus: () => e.focus(), + select: () => e.select(), + setCustomValidity: t => e.setCustomValidity(t), + reportValidity: () => e.reportValidity() + }) + } + }, + formState: s, + fieldState: Object.defineProperties({}, { + invalid: { + enumerable: !0, + get: () => !!tN(s.errors, n) + }, + isDirty: { + enumerable: !0, + get: () => !!tN(s.dirtyFields, n) + }, + isTouched: { + enumerable: !0, + get: () => !!tN(s.touchedFields, n) + }, + error: { + enumerable: !0, + get: () => tN(s.errors, n) + } + }) + } + } + var PN = (e, t, n, r, i) => t ? { + ...n[e], + types: { + ...n[e] && n[e].types ? n[e].types : {}, + [r]: i || !0 + } + } : {}, + TN = e => /^\w*$/.test(e), + RN = e => JL(e.replace(/["|']|\]/g, "").split(/\.|\[/)); + + function DN(e, t, n) { + let r = -1; + const i = TN(t) ? [t] : RN(t), + a = i.length, + o = a - 1; + for (; ++r < a;) { + const t = i[r]; + let a = n; + if (r !== o) { + const n = e[t]; + a = QL(n) || Array.isArray(n) ? n : isNaN(+i[r + 1]) ? {} : [] + } + e[t] = a, e = e[t] + } + return e + } + const LN = (e, t, n) => { + for (const r of n || Object.keys(e)) { + const n = tN(e, r); + if (n) { + const { + _f: e, + ...r + } = n; + if (e && t(e.name)) { + if (e.ref.focus) { + e.ref.focus(); + break + } + if (e.refs && e.refs[0].focus) { + e.refs[0].focus(); + break + } + } else QL(r) && LN(r, t) + } + } + }; + var NN = e => ({ + isOnSubmit: !e || e === sN, + isOnBlur: e === aN, + isOnChange: e === oN, + isOnAll: e === cN, + isOnTouch: e === lN + }), + jN = (e, t, n) => !n && (t.watchAll || t.watch.has(e) || [...t.watch].some((t => e.startsWith(t) && /^\.\w+/.test(e.slice(t.length))))), + MN = (e, t, n) => { + const r = JL(tN(e, n)); + return DN(r, "root", t[n]), DN(e, n, r), e + }, + FN = e => "boolean" === typeof e, + zN = e => "file" === e.type, + VN = e => "function" === typeof e, + UN = e => { + if (!IN) return !1; + const t = e ? e.ownerDocument : 0; + return e instanceof(t && t.defaultView ? t.defaultView.HTMLElement : HTMLElement) + }, + BN = e => EN(e) || Ee.isValidElement(e), + GN = e => "radio" === e.type, + $N = e => e instanceof RegExp; + const qN = { + value: !1, + isValid: !1 + }, + WN = { + value: !0, + isValid: !0 + }; + var HN = e => { + if (Array.isArray(e)) { + if (e.length > 1) { + const t = e.filter((e => e && e.checked && !e.disabled)).map((e => e.value)); + return { + value: t, + isValid: !!t.length + } + } + return e[0].checked && !e[0].disabled ? e[0].attributes && !eN(e[0].attributes.value) ? eN(e[0].value) || "" === e[0].value ? WN : { + value: e[0].value, + isValid: !0 + } : WN : qN + } + return qN + }; + const KN = { + isValid: !1, + value: null + }; + var YN = e => Array.isArray(e) ? e.reduce(((e, t) => t && t.checked && !t.disabled ? { + isValid: !0, + value: t.value + } : e), KN) : KN; + + function QN(e, t, n = "validate") { + if (BN(e) || Array.isArray(e) && e.every(BN) || FN(e) && !e) return { + type: n, + message: BN(e) ? e : "", + ref: t + } + } + var ZN = e => QL(e) && !$N(e) ? e : { + value: e, + message: "" + }, + XN = async (e, t, n, r, i) => { + const { + ref: a, + refs: o, + required: s, + maxLength: l, + minLength: c, + min: u, + max: d, + pattern: p, + validate: h, + name: f, + valueAsNumber: m, + mount: g, + disabled: v + } = e._f, y = tN(t, f); + if (!g || v) return {}; + const _ = o ? o[0] : a, + b = e => { + r && _.reportValidity && (_.setCustomValidity(FN(e) ? "" : e || ""), _.reportValidity()) + }, + x = {}, + w = GN(a), + k = WL(a), + S = w || k, + E = (m || zN(a)) && eN(a.value) && eN(y) || UN(a) && "" === a.value || "" === y || Array.isArray(y) && !y.length, + O = PN.bind(null, f, n, x), + I = (e, t, n, r = pN, i = hN) => { + const o = e ? t : n; + x[f] = { + type: e ? r : i, + message: o, + ref: a, + ...O(e ? r : i, o) + } + }; + if (i ? !Array.isArray(y) || !y.length : s && (!S && (E || KL(y)) || FN(y) && !y || k && !HN(o).isValid || w && !YN(o).isValid)) { + const { + value: e, + message: t + } = BN(s) ? { + value: !!s, + message: s + } : ZN(s); + if (e && (x[f] = { + type: mN, + message: t, + ref: _, + ...O(mN, t) + }, !n)) return b(t), x + } + if (!E && (!KL(u) || !KL(d))) { + let e, t; + const r = ZN(d), + i = ZN(u); + if (KL(y) || isNaN(y)) { + const n = a.valueAsDate || new Date(y), + o = e => new Date((new Date).toDateString() + " " + e), + s = "time" == a.type, + l = "week" == a.type; + EN(r.value) && y && (e = s ? o(y) > o(r.value) : l ? y > r.value : n > new Date(r.value)), EN(i.value) && y && (t = s ? o(y) < o(i.value) : l ? y < i.value : n < new Date(i.value)) + } else { + const n = a.valueAsNumber || (y ? +y : y); + KL(r.value) || (e = n > r.value), KL(i.value) || (t = n < i.value) + } + if ((e || t) && (I(!!e, r.message, i.message, uN, dN), !n)) return b(x[f].message), x + } + if ((l || c) && !E && (EN(y) || i && Array.isArray(y))) { + const e = ZN(l), + t = ZN(c), + r = !KL(e.value) && y.length > e.value, + i = !KL(t.value) && y.length < t.value; + if ((r || i) && (I(r, e.message, t.message), !n)) return b(x[f].message), x + } + if (p && !E && EN(y)) { + const { + value: e, + message: t + } = ZN(p); + if ($N(e) && !y.match(e) && (x[f] = { + type: fN, + message: t, + ref: a, + ...O(fN, t) + }, !n)) return b(t), x + } + if (h) + if (VN(h)) { + const e = QN(await h(y, t), _); + if (e && (x[f] = { + ...e, + ...O(gN, e.message) + }, !n)) return b(e.message), x + } else if (QL(h)) { + let e = {}; + for (const r in h) { + if (!bN(e) && !n) break; + const i = QN(await h[r](y, t), _, r); + i && (e = { + ...i, + ...O(r, i.message) + }, b(i.message), n && (x[f] = e)) + } + if (!bN(e) && (x[f] = { + ref: _, + ...e + }, !n)) return x + } + return b(!0), x + }; + + function JN(e, t) { + const n = Array.isArray(t) ? t : TN(t) ? [t] : RN(t), + r = 1 === n.length ? e : function(e, t) { + const n = t.slice(0, -1).length; + let r = 0; + for (; r < n;) e = eN(e) ? r++ : e[t[r++]]; + return e + }(e, n), + i = n.length - 1, + a = n[i]; + return r && delete r[a], 0 !== i && (QL(r) && bN(r) || Array.isArray(r) && function(e) { + for (const t in e) + if (!eN(e[t])) return !1; + return !0 + }(r)) && JN(e, n.slice(0, -1)), e + } + + function ej() { + let e = []; + return { + get observers() { + return e + }, + next: t => { + for (const n of e) n.next(t) + }, + subscribe: t => (e.push(t), { + unsubscribe: () => { + e = e.filter((e => e !== t)) + } + }), + unsubscribe: () => { + e = [] + } + } + } + var tj = e => KL(e) || !YL(e); + + function nj(e, t) { + if (tj(e) || tj(t)) return e === t; + if (HL(e) && HL(t)) return e.getTime() === t.getTime(); + const n = Object.keys(e), + r = Object.keys(t); + if (n.length !== r.length) return !1; + for (const i of n) { + const n = e[i]; + if (!r.includes(i)) return !1; + if ("ref" !== i) { + const e = t[i]; + if (HL(n) && HL(e) || QL(n) && QL(e) || Array.isArray(n) && Array.isArray(e) ? !nj(n, e) : n !== e) return !1 + } + } + return !0 + } + var rj = e => "select-multiple" === e.type, + ij = e => UN(e) && e.isConnected, + aj = e => { + for (const t in e) + if (VN(e[t])) return !0; + return !1 + }; + + function oj(e, t = {}) { + const n = Array.isArray(e); + if (QL(e) || n) + for (const r in e) Array.isArray(e[r]) || QL(e[r]) && !aj(e[r]) ? (t[r] = Array.isArray(e[r]) ? [] : {}, oj(e[r], t[r])) : KL(e[r]) || (t[r] = !0); + return t + } + + function sj(e, t, n) { + const r = Array.isArray(e); + if (QL(e) || r) + for (const i in e) Array.isArray(e[i]) || QL(e[i]) && !aj(e[i]) ? eN(t) || tj(n[i]) ? n[i] = Array.isArray(e[i]) ? oj(e[i], []) : { + ...oj(e[i]) + } : sj(e[i], KL(t) ? {} : t[i], n[i]) : nj(e[i], t[i]) ? delete n[i] : n[i] = !0; + return n + } + var lj = (e, t) => sj(e, t, oj(t)), + cj = (e, { + valueAsNumber: t, + valueAsDate: n, + setValueAs: r + }) => eN(e) ? e : t ? "" === e ? NaN : e ? +e : e : n && EN(e) ? new Date(e) : r ? r(e) : e; + + function uj(e) { + const t = e.ref; + if (!(e.refs ? e.refs.every((e => e.disabled)) : t.disabled)) return zN(t) ? t.files : GN(t) ? YN(e.refs).value : rj(t) ? [...t.selectedOptions].map((({ + value: e + }) => e)) : WL(t) ? HN(e.refs).value : cj(eN(t.value) ? e.ref.value : t.value, e) + } + var dj = e => eN(e) ? e : $N(e) ? e.source : QL(e) ? $N(e.value) ? e.value.source : e.value : e; + + function pj(e, t, n) { + const r = tN(e, n); + if (r || TN(n)) return { + error: r, + name: n + }; + const i = n.split("."); + for (; i.length;) { + const r = i.join("."), + a = tN(t, r), + o = tN(e, r); + if (a && !Array.isArray(a) && n !== r) return { + name: n + }; + if (o && o.type) return { + name: r, + error: o + }; + i.pop() + } + return { + name: n + } + } + const hj = { + mode: sN, + reValidateMode: oN, + shouldFocusError: !0 + }; + + function fj(e = {}, t) { + let n = { + ...hj, + ...e + }; + const r = e.resetOptions && e.resetOptions.keepDirtyValues; + let i, a = { + submitCount: 0, + isDirty: !1, + isLoading: !0, + isValidating: !1, + isSubmitted: !1, + isSubmitting: !1, + isSubmitSuccessful: !1, + isValid: !1, + touchedFields: {}, + dirtyFields: {}, + errors: {} + }, + o = {}, + s = QL(n.defaultValues) && CN(n.defaultValues) || {}, + l = n.shouldUnregister ? {} : CN(s), + c = { + action: !1, + mount: !1, + watch: !1 + }, + u = { + mount: new Set, + unMount: new Set, + array: new Set, + watch: new Set + }, + d = 0; + const p = { + isDirty: !1, + dirtyFields: !1, + touchedFields: !1, + isValidating: !1, + isValid: !1, + errors: !1 + }, + h = { + watch: ej(), + array: ej(), + state: ej() + }, + f = NN(n.mode), + m = NN(n.reValidateMode), + g = n.criteriaMode === cN, + v = async e => { + if (p.isValid || e) { + const e = n.resolver ? bN((await w()).errors) : await k(o, !0); + e !== a.isValid && (a.isValid = e, h.state.next({ + isValid: e + })) + } + }, y = e => p.isValidating && h.state.next({ + isValidating: e + }), _ = (e, t, n, r) => { + const i = tN(o, e); + if (i) { + const a = tN(l, e, eN(n) ? tN(s, e) : n); + eN(a) || r && r.defaultChecked || t ? DN(l, e, t ? a : uj(i._f)) : O(e, a), c.mount && v() + } + }, b = (e, t, n, r, i) => { + let o = !1, + l = !1; + const c = { + name: e + }; + if (!n || r) { + p.isDirty && (l = a.isDirty, a.isDirty = c.isDirty = S(), o = l !== c.isDirty); + const n = nj(tN(s, e), t); + l = tN(a.dirtyFields, e), n ? JN(a.dirtyFields, e) : DN(a.dirtyFields, e, !0), c.dirtyFields = a.dirtyFields, o = o || p.dirtyFields && l !== !n + } + if (n) { + const t = tN(a.touchedFields, e); + t || (DN(a.touchedFields, e, n), c.touchedFields = a.touchedFields, o = o || p.touchedFields && t !== n) + } + return o && i && h.state.next(c), o ? c : {} + }, x = (t, n, r, o) => { + const s = tN(a.errors, t), + l = p.isValid && FN(n) && a.isValid !== n; + var c; + if (e.delayError && r ? (c = () => ((e, t) => { + DN(a.errors, e, t), h.state.next({ + errors: a.errors + }) + })(t, r), i = e => { + clearTimeout(d), d = window.setTimeout(c, e) + }, i(e.delayError)) : (clearTimeout(d), i = null, r ? DN(a.errors, t, r) : JN(a.errors, t)), (r ? !nj(s, r) : s) || !bN(o) || l) { + const e = { + ...o, + ...l && FN(n) ? { + isValid: n + } : {}, + errors: a.errors, + name: t + }; + a = { + ...a, + ...e + }, h.state.next(e) + } + y(!1) + }, w = async e => await n.resolver(l, n.context, ((e, t, n, r) => { + const i = {}; + for (const a of e) { + const e = tN(t, a); + e && DN(i, a, e._f) + } + return { + criteriaMode: n, + names: [...e], + fields: i, + shouldUseNativeValidation: r + } + })(e || u.mount, o, n.criteriaMode, n.shouldUseNativeValidation)), k = async (e, t, r = { + valid: !0 + }) => { + for (const i in e) { + const o = e[i]; + if (o) { + const { + _f: e, + ...i + } = o; + if (e) { + const i = u.array.has(e.name), + s = await XN(o, l, g, n.shouldUseNativeValidation, i); + if (s[e.name] && (r.valid = !1, t)) break; + !t && (tN(s, e.name) ? i ? MN(a.errors, s, e.name) : DN(a.errors, e.name, s[e.name]) : JN(a.errors, e.name)) + } + i && await k(i, t, r) + } + } + return r.valid + }, S = (e, t) => (e && t && DN(l, e, t), !nj(T(), s)), E = (e, t, n) => ON(e, u, { + ...c.mount ? l : eN(t) ? s : EN(e) ? { + [e]: t + } : t + }, n, t), O = (e, t, n = {}) => { + const r = tN(o, e); + let i = t; + if (r) { + const n = r._f; + n && (!n.disabled && DN(l, e, cj(t, n)), i = UN(n.ref) && KL(t) ? "" : t, rj(n.ref) ? [...n.ref.options].forEach((e => e.selected = i.includes(e.value))) : n.refs ? WL(n.ref) ? n.refs.length > 1 ? n.refs.forEach((e => (!e.defaultChecked || !e.disabled) && (e.checked = Array.isArray(i) ? !!i.find((t => t === e.value)) : i === e.value))) : n.refs[0] && (n.refs[0].checked = !!i) : n.refs.forEach((e => e.checked = e.value === i)) : zN(n.ref) ? n.ref.value = "" : (n.ref.value = i, n.ref.type || h.watch.next({ + name: e + }))) + }(n.shouldDirty || n.shouldTouch) && b(e, i, n.shouldTouch, n.shouldDirty, !0), n.shouldValidate && P(e) + }, I = (e, t, n) => { + for (const r in t) { + const i = t[r], + a = `${e}.${r}`, + s = tN(o, a); + !u.array.has(e) && tj(i) && (!s || s._f) || HL(i) ? O(a, i, n) : I(a, i, n) + } + }, C = (e, n, r = {}) => { + const i = tN(o, e), + d = u.array.has(e), + f = CN(n); + DN(l, e, f), d ? (h.array.next({ + name: e, + values: l + }), (p.isDirty || p.dirtyFields) && r.shouldDirty && (a.dirtyFields = lj(s, l), h.state.next({ + name: e, + dirtyFields: a.dirtyFields, + isDirty: S(e, f) + }))) : !i || i._f || KL(f) ? O(e, f, r) : I(e, f, r), jN(e, u) && h.state.next({}), h.watch.next({ + name: e + }), !c.mount && t() + }, A = async e => { + const t = e.target; + let r = t.name; + const s = tN(o, r); + if (s) { + let d, _; + const S = t.type ? uj(s._f) : ZL(e), + E = e.type === nN || e.type === rN, + O = !((c = s._f).mount && (c.required || c.min || c.max || c.maxLength || c.minLength || c.pattern || c.validate)) && !n.resolver && !tN(a.errors, r) && !s._f.deps || ((e, t, n, r, i) => !i.isOnAll && (!n && i.isOnTouch ? !(t || e) : (n ? r.isOnBlur : i.isOnBlur) ? !e : !(n ? r.isOnChange : i.isOnChange) || e))(E, tN(a.touchedFields, r), a.isSubmitted, m, f), + I = jN(r, u, E); + DN(l, r, S), E ? (s._f.onBlur && s._f.onBlur(e), i && i(0)) : s._f.onChange && s._f.onChange(e); + const C = b(r, S, E, !1), + A = !bN(C) || I; + if (!E && h.watch.next({ + name: r, + type: e.type + }), O) return p.isValid && v(), A && h.state.next({ + name: r, + ...I ? {} : C + }); + if (!E && I && h.state.next({}), y(!0), n.resolver) { + const { + errors: e + } = await w([r]), t = pj(a.errors, o, r), n = pj(e, o, t.name || r); + d = n.error, r = n.name, _ = bN(e) + } else d = (await XN(s, l, g, n.shouldUseNativeValidation))[r], d ? _ = !1 : p.isValid && (_ = await k(o, !0)); + s._f.deps && P(s._f.deps), x(r, _, d, C) + } + var c + }, P = async (e, t = {}) => { + let r, i; + const s = wN(e); + if (y(!0), n.resolver) { + const t = await (async e => { + const { + errors: t + } = await w(); + if (e) + for (const n of e) { + const e = tN(t, n); + e ? DN(a.errors, n, e) : JN(a.errors, n) + } else a.errors = t; + return t + })(eN(e) ? e : s); + r = bN(t), i = e ? !s.some((e => tN(t, e))) : r + } else e ? (i = (await Promise.all(s.map((async e => { + const t = tN(o, e); + return await k(t && t._f ? { + [e]: t + } : t) + })))).every(Boolean), (i || a.isValid) && v()) : i = r = await k(o); + return h.state.next({ + ...!EN(e) || p.isValid && r !== a.isValid ? {} : { + name: e + }, + ...n.resolver || !e ? { + isValid: r + } : {}, + errors: a.errors, + isValidating: !1 + }), t.shouldFocus && !i && LN(o, (e => e && tN(a.errors, e)), e ? s : u.mount), i + }, T = e => { + const t = { + ...s, + ...c.mount ? l : {} + }; + return eN(e) ? t : EN(e) ? tN(t, e) : e.map((e => tN(t, e))) + }, R = (e, t) => ({ + invalid: !!tN((t || a).errors, e), + isDirty: !!tN((t || a).dirtyFields, e), + isTouched: !!tN((t || a).touchedFields, e), + error: tN((t || a).errors, e) + }), D = (e, t = {}) => { + for (const r of e ? wN(e) : u.mount) u.mount.delete(r), u.array.delete(r), tN(o, r) && (t.keepValue || (JN(o, r), JN(l, r)), !t.keepError && JN(a.errors, r), !t.keepDirty && JN(a.dirtyFields, r), !t.keepTouched && JN(a.touchedFields, r), !n.shouldUnregister && !t.keepDefaultValue && JN(s, r)); + h.watch.next({}), h.state.next({ + ...a, + ...t.keepDirty ? { + isDirty: S() + } : {} + }), !t.keepIsValid && v() + }, L = (e, t = {}) => { + let r = tN(o, e); + const i = FN(t.disabled); + return DN(o, e, { + ...r || {}, + _f: { + ...r && r._f ? r._f : { + ref: { + name: e + } + }, + name: e, + mount: !0, + ...t + } + }), u.mount.add(e), r ? i && DN(l, e, t.disabled ? void 0 : tN(l, e, uj(r._f))) : _(e, !0, t.value), { + ...i ? { + disabled: t.disabled + } : {}, + ...n.shouldUseNativeValidation ? { + required: !!t.required, + min: dj(t.min), + max: dj(t.max), + minLength: dj(t.minLength), + maxLength: dj(t.maxLength), + pattern: dj(t.pattern) + } : {}, + name: e, + onChange: A, + onBlur: A, + ref: i => { + if (i) { + L(e, t), r = tN(o, e); + const n = eN(i.value) && i.querySelectorAll && i.querySelectorAll("input,select,textarea")[0] || i, + a = (e => GN(e) || WL(e))(n), + l = r._f.refs || []; + if (a ? l.find((e => e === n)) : n === r._f.ref) return; + DN(o, e, { + _f: { + ...r._f, + ...a ? { + refs: [...l.filter(ij), n, ...Array.isArray(tN(s, e)) ? [{}] : []], + ref: { + type: n.type, + name: e + } + } : { + ref: n + } + } + }), _(e, !1, void 0, n) + } else r = tN(o, e, {}), r._f && (r._f.mount = !1), (n.shouldUnregister || t.shouldUnregister) && (!XL(u.array, e) || !c.action) && u.unMount.add(e) + } + } + }, N = () => n.shouldFocusError && LN(o, (e => e && tN(a.errors, e)), u.mount), j = (n, i = {}) => { + const d = n || s, + f = CN(d), + m = n && !bN(n) ? f : s; + if (i.keepDefaultValues || (s = d), !i.keepValues) { + if (i.keepDirtyValues || r) + for (const e of u.mount) tN(a.dirtyFields, e) ? DN(m, e, tN(l, e)) : C(e, tN(m, e)); + else { + if (IN && eN(n)) + for (const e of u.mount) { + const t = tN(o, e); + if (t && t._f) { + const e = Array.isArray(t._f.refs) ? t._f.refs[0] : t._f.ref; + if (UN(e)) { + const t = e.closest("form"); + if (t) { + t.reset(); + break + } + } + } + } + o = {} + } + l = e.shouldUnregister ? i.keepDefaultValues ? CN(s) : {} : f, h.array.next({ + values: m + }), h.watch.next({ + values: m + }) + } + u = { + mount: new Set, + unMount: new Set, + array: new Set, + watch: new Set, + watchAll: !1, + focus: "" + }, !c.mount && t(), c.mount = !p.isValid || !!i.keepIsValid, c.watch = !!e.shouldUnregister, h.state.next({ + submitCount: i.keepSubmitCount ? a.submitCount : 0, + isDirty: i.keepDirty || i.keepDirtyValues ? a.isDirty : !(!i.keepDefaultValues || nj(n, s)), + isSubmitted: !!i.keepIsSubmitted && a.isSubmitted, + dirtyFields: i.keepDirty || i.keepDirtyValues ? a.dirtyFields : i.keepDefaultValues && n ? lj(s, n) : {}, + touchedFields: i.keepTouched ? a.touchedFields : {}, + errors: i.keepErrors ? a.errors : {}, + isSubmitting: !1, + isSubmitSuccessful: !1 + }) + }, M = (e, t) => j(VN(e) ? e(l) : e, t); + return VN(n.defaultValues) && n.defaultValues().then((e => { + M(e, n.resetOptions), h.state.next({ + isLoading: !1 + }) + })), { + control: { + register: L, + unregister: D, + getFieldState: R, + _executeSchema: w, + _focusError: N, + _getWatch: E, + _getDirty: S, + _updateValid: v, + _removeUnmounted: () => { + for (const e of u.unMount) { + const t = tN(o, e); + t && (t._f.refs ? t._f.refs.every((e => !ij(e))) : !ij(t._f.ref)) && D(e) + } + u.unMount = new Set + }, + _updateFieldArray: (e, t = [], n, r, i = !0, u = !0) => { + if (r && n) { + if (c.action = !0, u && Array.isArray(tN(o, e))) { + const t = n(tN(o, e), r.argA, r.argB); + i && DN(o, e, t) + } + if (u && Array.isArray(tN(a.errors, e))) { + const t = n(tN(a.errors, e), r.argA, r.argB); + i && DN(a.errors, e, t), ((e, t) => { + !JL(tN(e, t)).length && JN(e, t) + })(a.errors, e) + } + if (p.touchedFields && u && Array.isArray(tN(a.touchedFields, e))) { + const t = n(tN(a.touchedFields, e), r.argA, r.argB); + i && DN(a.touchedFields, e, t) + } + p.dirtyFields && (a.dirtyFields = lj(s, l)), h.state.next({ + name: e, + isDirty: S(e, t), + dirtyFields: a.dirtyFields, + errors: a.errors, + isValid: a.isValid + }) + } else DN(l, e, t) + }, + _getFieldArray: t => JL(tN(c.mount ? l : s, t, e.shouldUnregister ? tN(s, t, []) : [])), + _reset: j, + _updateFormState: e => { + a = { + ...a, + ...e + } + }, + _subjects: h, + _proxyFormState: p, + get _fields() { + return o + }, + get _formValues() { + return l + }, + get _stateFlags() { + return c + }, + set _stateFlags(e) { + c = e + }, + get _defaultValues() { + return s + }, + get _names() { + return u + }, + set _names(e) { + u = e + }, + get _formState() { + return a + }, + set _formState(e) { + a = e + }, + get _options() { + return n + }, + set _options(e) { + n = { + ...n, + ...e + } + } + }, + trigger: P, + register: L, + handleSubmit: (e, t) => async r => { + r && (r.preventDefault && r.preventDefault(), r.persist && r.persist()); + let i = CN(l); + if (h.state.next({ + isSubmitting: !0 + }), n.resolver) { + const { + errors: e, + values: t + } = await w(); + a.errors = e, i = t + } else await k(o); + bN(a.errors) ? (h.state.next({ + errors: {} + }), await e(i, r)) : (t && await t({ + ...a.errors + }, r), N()), h.state.next({ + isSubmitted: !0, + isSubmitting: !1, + isSubmitSuccessful: bN(a.errors), + submitCount: a.submitCount + 1, + errors: a.errors + }) + }, + watch: (e, t) => VN(e) ? h.watch.subscribe({ + next: n => e(E(void 0, t), n) + }) : E(e, t, !0), + setValue: C, + getValues: T, + reset: M, + resetField: (e, t = {}) => { + tN(o, e) && (eN(t.defaultValue) ? C(e, tN(s, e)) : (C(e, t.defaultValue), DN(s, e, t.defaultValue)), t.keepTouched || JN(a.touchedFields, e), t.keepDirty || (JN(a.dirtyFields, e), a.isDirty = t.defaultValue ? S(e, tN(s, e)) : S()), t.keepError || (JN(a.errors, e), p.isValid && v()), h.state.next({ + ...a + })) + }, + clearErrors: e => { + e ? wN(e).forEach((e => JN(a.errors, e))) : a.errors = {}, h.state.next({ + errors: a.errors + }) + }, + unregister: D, + setError: (e, t, n) => { + const r = (tN(o, e, { + _f: {} + })._f || {}).ref; + DN(a.errors, e, { + ...t, + ref: r + }), h.state.next({ + name: e, + errors: a.errors, + isValid: !1 + }), n && n.shouldFocus && r && r.focus && r.focus() + }, + setFocus: (e, t = {}) => { + const n = tN(o, e), + r = n && n._f; + if (r) { + const e = r.refs ? r.refs[0] : r.ref; + e.focus && (e.focus(), t.shouldSelect && e.select()) + } + }, + getFieldState: R + } + } + + function mj(e = {}) { + const t = Ee.useRef(), + [n, r] = Ee.useState({ + isDirty: !1, + isValidating: !1, + isLoading: !0, + isSubmitted: !1, + isSubmitting: !1, + isSubmitSuccessful: !1, + isValid: !1, + submitCount: 0, + dirtyFields: {}, + touchedFields: {}, + errors: {}, + defaultValues: VN(e.defaultValues) ? void 0 : e.defaultValues + }); + t.current || (t.current = { + ...fj(e, (() => r((e => ({ + ...e + }))))), + formState: n + }); + const i = t.current.control; + return i._options = e, SN({ + subject: i._subjects.state, + next: e => { + xN(e, i._proxyFormState, i._updateFormState, !0) && r({ + ...i._formState + }) + } + }), Ee.useEffect((() => { + i._stateFlags.mount || (i._updateValid(), i._stateFlags.mount = !0), i._stateFlags.watch && (i._stateFlags.watch = !1, i._subjects.state.next({})), i._removeUnmounted() + })), Ee.useEffect((() => { + e.values && !nj(e.values, i._defaultValues) && i._reset(e.values, i._options.resetOptions) + }), [e.values, i]), Ee.useEffect((() => { + n.submitCount && i._focusError() + }), [i, n.submitCount]), t.current.formState = _N(n, i), t.current + } + var gj = n(5391); + var vj = function() { + let e = [], + t = 0, + n = e => { + e() + }, + r = e => { + e() + }; + const i = r => { + t ? e.push(r) : (0, gj.A4)((() => { + n(r) + })) + }, + a = () => { + const t = e; + e = [], t.length && (0, gj.A4)((() => { + r((() => { + t.forEach((e => { + n(e) + })) + })) + })) + }; + return { + batch: e => { + let n; + t++; + try { + n = e() + } finally { + t--, t || a() + } + return n + }, + batchCalls: e => (...t) => { + i((() => { + e(...t) + })) + }, + schedule: i, + setNotifyFunction: e => { + n = e + }, + setBatchNotifyFunction: e => { + r = e + } + } + }(), + yj = class { + #r; + destroy() { + this.clearGcTimeout() + } + scheduleGc() { + this.clearGcTimeout(), (0, gj.PN)(this.gcTime) && (this.#r = setTimeout((() => { + this.optionalRemove() + }), this.gcTime)) + } + updateGcTime(e) { + this.gcTime = Math.max(this.gcTime || 0, e ?? (gj.sk ? 1 / 0 : 3e5)) + } + clearGcTimeout() { + this.#r && (clearTimeout(this.#r), this.#r = void 0) + } + }, + _j = n(8974), + bj = new class extends _j.l { + #i; + #t; + #n; + constructor() { + super(), this.#n = e => { + if (!gj.sk && window.addEventListener) { + const t = () => e(); + return window.addEventListener("visibilitychange", t, !1), () => { + window.removeEventListener("visibilitychange", t) + } + } + } + } + onSubscribe() { + this.#t || this.setEventListener(this.#n) + } + onUnsubscribe() { + this.hasListeners() || (this.#t?.(), this.#t = void 0) + } + setEventListener(e) { + this.#n = e, this.#t?.(), this.#t = e((e => { + "boolean" === typeof e ? this.setFocused(e) : this.onFocus() + })) + } + setFocused(e) { + this.#i !== e && (this.#i = e, this.onFocus()) + } + onFocus() { + this.listeners.forEach((e => { + e() + })) + } + isFocused() { + return "boolean" === typeof this.#i ? this.#i : "hidden" !== globalThis.document?.visibilityState + } + }, + xj = n(1901); + + function wj(e) { + return Math.min(1e3 * 2 ** e, 3e4) + } + + function kj(e) { + return "online" !== (e ?? "online") || xj.N.isOnline() + } + var Sj = class { + constructor(e) { + this.revert = e?.revert, this.silent = e?.silent + } + }; + + function Ej(e) { + return e instanceof Sj + } + + function Oj(e) { + let t, n, r, i = !1, + a = 0, + o = !1; + const s = new Promise(((e, t) => { + n = e, r = t + })), + l = () => !bj.isFocused() || "always" !== e.networkMode && !xj.N.isOnline(), + c = r => { + o || (o = !0, e.onSuccess?.(r), t?.(), n(r)) + }, + u = n => { + o || (o = !0, e.onError?.(n), t?.(), r(n)) + }, + d = () => new Promise((n => { + t = e => { + const t = o || !l(); + return t && n(e), t + }, e.onPause?.() + })).then((() => { + t = void 0, o || e.onContinue?.() + })), + p = () => { + if (o) return; + let t; + try { + t = e.fn() + } catch (n) { + t = Promise.reject(n) + } + Promise.resolve(t).then(c).catch((t => { + if (o) return; + const n = e.retry ?? (gj.sk ? 0 : 3), + r = e.retryDelay ?? wj, + s = "function" === typeof r ? r(a, t) : r, + c = !0 === n || "number" === typeof n && a < n || "function" === typeof n && n(a, t); + !i && c ? (a++, e.onFail?.(a, t), (0, gj._v)(s).then((() => { + if (l()) return d() + })).then((() => { + i ? u(t) : p() + }))) : u(t) + })) + }; + return kj(e.networkMode) ? p() : d().then(p), { + promise: s, + cancel: t => { + o || (u(new Sj(t)), e.abort?.()) + }, + continue: () => { + const e = t?.(); + return e ? s : Promise.resolve() + }, + cancelRetry: () => { + i = !0 + }, + continueRetry: () => { + i = !1 + } + } + } + var Ij = class extends yj { + constructor(e) { + super(), this.mutationId = e.mutationId, this.#a = e.defaultOptions, this.#o = e.mutationCache, this.#s = [], this.state = e.state || { + context: void 0, + data: void 0, + error: null, + failureCount: 0, + failureReason: null, + isPaused: !1, + status: "idle", + variables: void 0, + submittedAt: 0 + }, this.setOptions(e.options), this.scheduleGc() + } + #s; + #a; + #o; + #l; + setOptions(e) { + this.options = { + ...this.#a, + ...e + }, this.updateGcTime(this.options.gcTime) + } + get meta() { + return this.options.meta + } + addObserver(e) { + this.#s.includes(e) || (this.#s.push(e), this.clearGcTimeout(), this.#o.notify({ + type: "observerAdded", + mutation: this, + observer: e + })) + } + removeObserver(e) { + this.#s = this.#s.filter((t => t !== e)), this.scheduleGc(), this.#o.notify({ + type: "observerRemoved", + mutation: this, + observer: e + }) + } + optionalRemove() { + this.#s.length || ("pending" === this.state.status ? this.scheduleGc() : this.#o.remove(this)) + } + continue () { + return this.#l?.continue() ?? this.execute(this.state.variables) + } + async execute(e) { + const t = () => (this.#l = Oj({ + fn: () => this.options.mutationFn ? this.options.mutationFn(e) : Promise.reject(new Error("No mutationFn found")), + onFail: (e, t) => { + this.#c({ + type: "failed", + failureCount: e, + error: t + }) + }, + onPause: () => { + this.#c({ + type: "pause" + }) + }, + onContinue: () => { + this.#c({ + type: "continue" + }) + }, + retry: this.options.retry ?? 0, + retryDelay: this.options.retryDelay, + networkMode: this.options.networkMode + }), this.#l.promise), + n = "pending" === this.state.status; + try { + if (!n) { + this.#c({ + type: "pending", + variables: e + }), await (this.#o.config.onMutate?.(e, this)); + const t = await (this.options.onMutate?.(e)); + t !== this.state.context && this.#c({ + type: "pending", + context: t, + variables: e + }) + } + const r = await t(); + return await (this.#o.config.onSuccess?.(r, e, this.state.context, this)), await (this.options.onSuccess?.(r, e, this.state.context)), await (this.#o.config.onSettled?.(r, null, this.state.variables, this.state.context, this)), await (this.options.onSettled?.(r, null, e, this.state.context)), this.#c({ + type: "success", + data: r + }), r + } catch (r) { + try { + throw await (this.#o.config.onError?.(r, e, this.state.context, this)), await (this.options.onError?.(r, e, this.state.context)), await (this.#o.config.onSettled?.(void 0, r, this.state.variables, this.state.context, this)), await (this.options.onSettled?.(void 0, r, e, this.state.context)), r + } finally { + this.#c({ + type: "error", + error: r + }) + } + } + } + #c(e) { + this.state = (t => { + switch (e.type) { + case "failed": + return { + ...t, failureCount: e.failureCount, failureReason: e.error + }; + case "pause": + return { + ...t, isPaused: !0 + }; + case "continue": + return { + ...t, isPaused: !1 + }; + case "pending": + return { + ...t, context: e.context, data: void 0, failureCount: 0, failureReason: null, error: null, isPaused: !kj(this.options.networkMode), status: "pending", variables: e.variables, submittedAt: Date.now() + }; + case "success": + return { + ...t, data: e.data, failureCount: 0, failureReason: null, error: null, status: "success", isPaused: !1 + }; + case "error": + return { + ...t, data: void 0, error: e.error, failureCount: t.failureCount + 1, failureReason: e.error, isPaused: !1, status: "error" + } + } + })(this.state), vj.batch((() => { + this.#s.forEach((t => { + t.onMutationUpdate(e) + })), this.#o.notify({ + mutation: this, + type: "updated", + action: e + }) + })) + } + }; + var Cj = class extends _j.l { + constructor(e, t) { + super(), this.#u = void 0, this.#d = e, this.setOptions(t), this.bindMethods(), this.#p() + } + #d; + #u; + #h; + #f; + bindMethods() { + this.mutate = this.mutate.bind(this), this.reset = this.reset.bind(this) + } + setOptions(e) { + const t = this.options; + this.options = this.#d.defaultMutationOptions(e), (0, gj.VS)(t, this.options) || this.#d.getMutationCache().notify({ + type: "observerOptionsUpdated", + mutation: this.#h, + observer: this + }), this.#h?.setOptions(this.options) + } + onUnsubscribe() { + this.hasListeners() || this.#h?.removeObserver(this) + } + onMutationUpdate(e) { + this.#p(), this.#m(e) + } + getCurrentResult() { + return this.#u + } + reset() { + this.#h = void 0, this.#p(), this.#m() + } + mutate(e, t) { + return this.#f = t, this.#h?.removeObserver(this), this.#h = this.#d.getMutationCache().build(this.#d, this.options), this.#h.addObserver(this), this.#h.execute(e) + } + #p() { + const e = this.#h?.state ?? { + context: void 0, + data: void 0, + error: null, + failureCount: 0, + failureReason: null, + isPaused: !1, + status: "idle", + variables: void 0, + submittedAt: 0 + }; + this.#u = { + ...e, + isPending: "pending" === e.status, + isSuccess: "success" === e.status, + isError: "error" === e.status, + isIdle: "idle" === e.status, + mutate: this.mutate, + reset: this.reset + } + } + #m(e) { + vj.batch((() => { + this.#f && this.hasListeners() && ("success" === e?.type ? (this.#f.onSuccess?.(e.data, this.#u.variables, this.#u.context), this.#f.onSettled?.(e.data, null, this.#u.variables, this.#u.context)) : "error" === e?.type && (this.#f.onError?.(e.error, this.#u.variables, this.#u.context), this.#f.onSettled?.(void 0, e.error, this.#u.variables, this.#u.context))), this.listeners.forEach((e => { + e(this.#u) + })) + })) + } + }, + Aj = n(3713); + + function Pj(e, t) { + return "function" === typeof e ? e(...t) : !!e + } + + function Tj(e, t) { + const n = (0, Aj.NL)(t), + [r] = Ee.useState((() => new Cj(n, e))); + Ee.useEffect((() => { + r.setOptions(e) + }), [r, e]); + const i = Ee.useSyncExternalStore(Ee.useCallback((e => r.subscribe(vj.batchCalls(e))), [r]), (() => r.getCurrentResult()), (() => r.getCurrentResult())), + a = Ee.useCallback(((e, t) => { + r.mutate(e, t).catch(Rj) + }), [r]); + if (i.error && Pj(r.options.throwOnError, [i.error])) throw i.error; + return { + ...i, + mutate: a, + mutateAsync: i.mutate + } + } + + function Rj() {} + const Dj = { + cancelOnUnmount: !0, + cancelOnConditionChange: !0 + }, + Lj = (e, t, n, r = Dj) => { + const i = { + ...Dj, + ...r || {} + }, + a = (0, Ee.useRef)(), + o = (0, Ee.useRef)(e), + [s, l] = (0, Ee.useState)(!1), + c = (e => { + const t = (0, Ee.useRef)(); + return (0, Ee.useEffect)((() => (t.current = e, () => { + t.current = void 0 + }))), t.current + })(n), + u = (0, Ee.useCallback)((() => { + a.current && (clearTimeout(a.current), l(!0)) + }), []); + return (0, Ee.useEffect)((() => { + var t; + "function" === typeof(t = e) && t.constructor && t.call && t.apply && (o.current = e) + }), [e]), (0, Ee.useEffect)((() => { + n && "number" === typeof t && (a.current = setTimeout((() => { + o.current() + }), t)) + }), [n, t]), (0, Ee.useEffect)((() => { + c && n !== c && i.cancelOnConditionChange && u() + }), [n, r]), (0, Ee.useEffect)((() => () => { + i.cancelOnUnmount && u() + }), []), [s, u] + }, + Nj = [{ + id: "website", + action: () => window.open(xP.configuration.websiteUrl, "_blank") + }, { + id: "report_bug", + action: () => window.open(xP.configuration.issueCouncilUrl, "_blank") + }, { + id: "spectrum", + action: () => window.open(xP.configuration.spectrumUrl, "_blank") + }, { + id: "community_hub", + action: () => window.open(xP.configuration.communityHubUrl, "_blank") + }, { + id: "support", + action: () => window.open(xP.configuration.supportUrl, "_blank") + }], + jj = () => { + const { + t: e + } = bt("tray"), { + tray: { + onMenuItemClicked: t, + updateMenu: n + } + } = RR(), { + isMinimized: r + } = (() => { + const e = (0, Ee.useContext)(UR); + if (!e) throw new Error("useTheme must be used within a ThemeProvider"); + return e + })(), { + exitLauncher: i, + logoutLauncher: a + } = jz((e => e.window.actions)), { + identity: o + } = jz((e => e.user)), { + volume: s, + actions: { + mute: l, + unmute: c + } + } = jz((e => e.soundSystem)), u = 0 === s, d = !!o, p = (0, Ee.useMemo)((() => [...Nj, { + id: "logout", + action: a, + visible: d + }, { + id: "mute", + action: l, + visible: !u && !r + }, { + id: "unmute", + action: c, + visible: u && !r + }, { + id: "quit", + action: i + }]), [i, r, u, d, a, l, c]), h = p.map((({ + action: t, + id: n, + visible: r + }) => ({ + id: n, + label: e(`tray_${n}`), + visible: r + }))); + n(h), (0, Ee.useEffect)((() => { + const e = t((e => { + var t; + return null === (t = p.find((t => t.id === e))) || void 0 === t ? void 0 : t.action() + })); + return e + }), [p, t]) + }, + Mj = () => ({ + queryKey: ["library"], + queryFn: async () => oR.games.getLibrary() + }), + Fj = (e, t) => ({ + queryKey: ["games", e, t], + queryFn: async () => oR.games.getRelease({ + gameId: e, + channelId: t + }) + }), + zj = (e, t) => ({ + queryKey: [`platformContent-${e}-${t}`], + queryFn: async () => oR.content.getContent(e, t), + enabled: !jz.getState().application.isWindowMinimized || !jz.getState().application.actions.isOffline(), + select: e => ({ + commLinks: e.commLinks.map(CR), + patchNotes: e.patchNotes.map(CR), + launcherCards: e.launcherCards.map(CR) + }), + refetchInterval: $T(xP.configuration.requestPollingInterval.gamePageContent.base, xP.configuration.requestPollingInterval.gamePageContent.window), + refetchOnWindowFocus: !1, + staleTime: 0, + gcTime: 0 + }); + var Vj = class extends yj { + constructor(e) { + super(), this.#g = !1, this.#a = e.defaultOptions, this.#v(e.options), this.#s = [], this.#y = e.cache, this.queryKey = e.queryKey, this.queryHash = e.queryHash, this.#_ = e.state || function(e) { + const t = "function" === typeof e.initialData ? e.initialData() : e.initialData, + n = "undefined" !== typeof t, + r = n ? "function" === typeof e.initialDataUpdatedAt ? e.initialDataUpdatedAt() : e.initialDataUpdatedAt : 0; + return { + data: t, + dataUpdateCount: 0, + dataUpdatedAt: n ? r ?? Date.now() : 0, + error: null, + errorUpdateCount: 0, + errorUpdatedAt: 0, + fetchFailureCount: 0, + fetchFailureReason: null, + fetchMeta: null, + isInvalidated: !1, + status: n ? "success" : "pending", + fetchStatus: "idle" + } + }(this.options), this.state = this.#_, this.scheduleGc() + } + #_; + #b; + #y; + #x; + #l; + #s; + #a; + #g; + get meta() { + return this.options.meta + } + #v(e) { + this.options = { + ...this.#a, + ...e + }, this.updateGcTime(this.options.gcTime) + } + optionalRemove() { + this.#s.length || "idle" !== this.state.fetchStatus || this.#y.remove(this) + } + setData(e, t) { + const n = (0, gj.oE)(this.state.data, e, this.options); + return this.#c({ + data: n, + type: "success", + dataUpdatedAt: t?.updatedAt, + manual: t?.manual + }), n + } + setState(e, t) { + this.#c({ + type: "setState", + state: e, + setStateOptions: t + }) + } + cancel(e) { + const t = this.#x; + return this.#l?.cancel(e), t ? t.then(gj.ZT).catch(gj.ZT) : Promise.resolve() + } + destroy() { + super.destroy(), this.cancel({ + silent: !0 + }) + } + reset() { + this.destroy(), this.setState(this.#_) + } + isActive() { + return this.#s.some((e => !1 !== e.options.enabled)) + } + isDisabled() { + return this.getObserversCount() > 0 && !this.isActive() + } + isStale() { + return this.state.isInvalidated || !this.state.dataUpdatedAt || this.#s.some((e => e.getCurrentResult().isStale)) + } + isStaleByTime(e = 0) { + return this.state.isInvalidated || !this.state.dataUpdatedAt || !(0, gj.Kp)(this.state.dataUpdatedAt, e) + } + onFocus() { + const e = this.#s.find((e => e.shouldFetchOnWindowFocus())); + e?.refetch({ + cancelRefetch: !1 + }), this.#l?.continue() + } + onOnline() { + const e = this.#s.find((e => e.shouldFetchOnReconnect())); + e?.refetch({ + cancelRefetch: !1 + }), this.#l?.continue() + } + addObserver(e) { + this.#s.includes(e) || (this.#s.push(e), this.clearGcTimeout(), this.#y.notify({ + type: "observerAdded", + query: this, + observer: e + })) + } + removeObserver(e) { + this.#s.includes(e) && (this.#s = this.#s.filter((t => t !== e)), this.#s.length || (this.#l && (this.#g ? this.#l.cancel({ + revert: !0 + }) : this.#l.cancelRetry()), this.scheduleGc()), this.#y.notify({ + type: "observerRemoved", + query: this, + observer: e + })) + } + getObserversCount() { + return this.#s.length + } + invalidate() { + this.state.isInvalidated || this.#c({ + type: "invalidate" + }) + } + fetch(e, t) { + if ("idle" !== this.state.fetchStatus) + if (this.state.dataUpdatedAt && t?.cancelRefetch) this.cancel({ + silent: !0 + }); + else if (this.#x) return this.#l?.continueRetry(), this.#x; + if (e && this.#v(e), !this.options.queryFn) { + const e = this.#s.find((e => e.options.queryFn)); + e && this.#v(e.options) + } + const n = new AbortController, + r = { + queryKey: this.queryKey, + meta: this.meta + }, + i = e => { + Object.defineProperty(e, "signal", { + enumerable: !0, + get: () => (this.#g = !0, n.signal) + }) + }; + i(r); + const a = { + fetchOptions: t, + options: this.options, + queryKey: this.queryKey, + state: this.state, + fetchFn: () => this.options.queryFn ? (this.#g = !1, this.options.persister ? this.options.persister(this.options.queryFn, r, this) : this.options.queryFn(r)) : Promise.reject(new Error(`Missing queryFn: '${this.options.queryHash}'`)) + }; + i(a), this.options.behavior?.onFetch(a, this), this.#b = this.state, "idle" !== this.state.fetchStatus && this.state.fetchMeta === a.fetchOptions?.meta || this.#c({ + type: "fetch", + meta: a.fetchOptions?.meta + }); + const o = e => { + Ej(e) && e.silent || this.#c({ + type: "error", + error: e + }), Ej(e) || (this.#y.config.onError?.(e, this), this.#y.config.onSettled?.(this.state.data, e, this)), this.isFetchingOptimistic || this.scheduleGc(), this.isFetchingOptimistic = !1 + }; + return this.#l = Oj({ + fn: a.fetchFn, + abort: n.abort.bind(n), + onSuccess: e => { + "undefined" !== typeof e ? (this.setData(e), this.#y.config.onSuccess?.(e, this), this.#y.config.onSettled?.(e, this.state.error, this), this.isFetchingOptimistic || this.scheduleGc(), this.isFetchingOptimistic = !1) : o(new Error(`${this.queryHash} data is undefined`)) + }, + onError: o, + onFail: (e, t) => { + this.#c({ + type: "failed", + failureCount: e, + error: t + }) + }, + onPause: () => { + this.#c({ + type: "pause" + }) + }, + onContinue: () => { + this.#c({ + type: "continue" + }) + }, + retry: a.options.retry, + retryDelay: a.options.retryDelay, + networkMode: a.options.networkMode + }), this.#x = this.#l.promise, this.#x + } + #c(e) { + this.state = (t => { + switch (e.type) { + case "failed": + return { + ...t, fetchFailureCount: e.failureCount, fetchFailureReason: e.error + }; + case "pause": + return { + ...t, fetchStatus: "paused" + }; + case "continue": + return { + ...t, fetchStatus: "fetching" + }; + case "fetch": + return { + ...t, fetchFailureCount: 0, fetchFailureReason: null, fetchMeta: e.meta ?? null, fetchStatus: kj(this.options.networkMode) ? "fetching" : "paused", ...!t.dataUpdatedAt && { + error: null, + status: "pending" + } + }; + case "success": + return { + ...t, data: e.data, dataUpdateCount: t.dataUpdateCount + 1, dataUpdatedAt: e.dataUpdatedAt ?? Date.now(), error: null, isInvalidated: !1, status: "success", ...!e.manual && { + fetchStatus: "idle", + fetchFailureCount: 0, + fetchFailureReason: null + } + }; + case "error": + const n = e.error; + return Ej(n) && n.revert && this.#b ? { + ...this.#b, + fetchStatus: "idle" + } : { + ...t, + error: n, + errorUpdateCount: t.errorUpdateCount + 1, + errorUpdatedAt: Date.now(), + fetchFailureCount: t.fetchFailureCount + 1, + fetchFailureReason: n, + fetchStatus: "idle", + status: "error" + }; + case "invalidate": + return { + ...t, isInvalidated: !0 + }; + case "setState": + return { + ...t, ...e.state + } + } + })(this.state), vj.batch((() => { + this.#s.forEach((e => { + e.onQueryUpdate() + })), this.#y.notify({ + query: this, + type: "updated", + action: e + }) + })) + } + }; + var Uj = class extends _j.l { + constructor(e = {}) { + super(), this.config = e, this.#w = new Map + } + #w; + build(e, t, n) { + const r = t.queryKey, + i = t.queryHash ?? (0, gj.Rm)(r, t); + let a = this.get(i); + return a || (a = new Vj({ + cache: this, + queryKey: r, + queryHash: i, + options: e.defaultQueryOptions(t), + state: n, + defaultOptions: e.getQueryDefaults(r) + }), this.add(a)), a + } + add(e) { + this.#w.has(e.queryHash) || (this.#w.set(e.queryHash, e), this.notify({ + type: "added", + query: e + })) + } + remove(e) { + const t = this.#w.get(e.queryHash); + t && (e.destroy(), t === e && this.#w.delete(e.queryHash), this.notify({ + type: "removed", + query: e + })) + } + clear() { + vj.batch((() => { + this.getAll().forEach((e => { + this.remove(e) + })) + })) + } + get(e) { + return this.#w.get(e) + } + getAll() { + return [...this.#w.values()] + } + find(e) { + const t = { + exact: !0, + ...e + }; + return this.getAll().find((e => (0, gj._x)(t, e))) + } + findAll(e = {}) { + const t = this.getAll(); + return Object.keys(e).length > 0 ? t.filter((t => (0, gj._x)(e, t))) : t + } + notify(e) { + vj.batch((() => { + this.listeners.forEach((t => { + t(e) + })) + })) + } + onFocus() { + vj.batch((() => { + this.getAll().forEach((e => { + e.onFocus() + })) + })) + } + onOnline() { + vj.batch((() => { + this.getAll().forEach((e => { + e.onOnline() + })) + })) + } + }, + Bj = class extends _j.l { + constructor(e = {}) { + super(), this.config = e, this.#k = [], this.#S = 0 + } + #k; + #S; + #E; + build(e, t, n) { + const r = new Ij({ + mutationCache: this, + mutationId: ++this.#S, + options: e.defaultMutationOptions(t), + state: n + }); + return this.add(r), r + } + add(e) { + this.#k.push(e), this.notify({ + type: "added", + mutation: e + }) + } + remove(e) { + this.#k = this.#k.filter((t => t !== e)), this.notify({ + type: "removed", + mutation: e + }) + } + clear() { + vj.batch((() => { + this.#k.forEach((e => { + this.remove(e) + })) + })) + } + getAll() { + return this.#k + } + find(e) { + const t = { + exact: !0, + ...e + }; + return this.#k.find((e => (0, gj.X7)(t, e))) + } + findAll(e = {}) { + return this.#k.filter((t => (0, gj.X7)(e, t))) + } + notify(e) { + vj.batch((() => { + this.listeners.forEach((t => { + t(e) + })) + })) + } + resumePausedMutations() { + return this.#E = (this.#E ?? Promise.resolve()).then((() => { + const e = this.#k.filter((e => e.state.isPaused)); + return vj.batch((() => e.reduce(((e, t) => e.then((() => t.continue().catch(gj.ZT)))), Promise.resolve()))) + })).then((() => { + this.#E = void 0 + })), this.#E + } + }; + + function Gj(e) { + return { + onFetch: (t, n) => { + const r = async () => { + const n = t.options, + r = t.fetchOptions?.meta?.fetchMore?.direction, + i = t.state.data?.pages || [], + a = t.state.data?.pageParams || [], + o = { + pages: [], + pageParams: [] + }; + let s = !1; + const l = t.options.queryFn || (() => Promise.reject(new Error(`Missing queryFn: '${t.options.queryHash}'`))), + c = async (e, n, r) => { + if (s) return Promise.reject(); + if (null == n && e.pages.length) return Promise.resolve(e); + const i = { + queryKey: t.queryKey, + pageParam: n, + direction: r ? "backward" : "forward", + meta: t.options.meta + }; + var a; + a = i, Object.defineProperty(a, "signal", { + enumerable: !0, + get: () => (t.signal.aborted ? s = !0 : t.signal.addEventListener("abort", (() => { + s = !0 + })), t.signal) + }); + const o = await l(i), + { + maxPages: c + } = t.options, + u = r ? gj.Ht : gj.VX; + return { + pages: u(e.pages, o, c), + pageParams: u(e.pageParams, n, c) + } + }; + let u; + if (r && i.length) { + const e = "backward" === r, + t = { + pages: i, + pageParams: a + }, + o = (e ? qj : $j)(n, t); + u = await c(t, o, e) + } else { + u = await c(o, a[0] ?? n.initialPageParam); + const t = e ?? i.length; + for (let e = 1; e < t; e++) { + const e = $j(n, u); + u = await c(u, e) + } + } + return u + }; + t.options.persister ? t.fetchFn = () => t.options.persister?.(r, { + queryKey: t.queryKey, + meta: t.options.meta, + signal: t.signal + }, n) : t.fetchFn = r + } + } + } + + function $j(e, { + pages: t, + pageParams: n + }) { + const r = t.length - 1; + return e.getNextPageParam(t[r], t, n[r], n) + } + + function qj(e, { + pages: t, + pageParams: n + }) { + return e.getPreviousPageParam?.(t[0], t, n[0], n) + } + const Wj = async e => { + var t; + if (!(e instanceof sT || e instanceof QT)) return; + if (!Hj(e)) return; + const { + application: { + platformMaster: n + }, + user: { + identity: r + } + } = jz.getState(), i = e instanceof QT ? kP : e.code, a = e instanceof QT ? n : null !== (t = e.environment) && void 0 !== t ? t : n; + window.launcherAPI.analytics.setAnalyticsEvent(xP.AnalyticsEventName.APP_API_ERROR, { + ErrorCode: i, + ErrorMessage: e.message, + ...r, + Environment: a + }) + }, Hj = e => { + if (e instanceof kT || e instanceof ST || e instanceof uT || e instanceof _T || e instanceof QT) return !0; + const { + application: { + connection: t + } + } = jz.getState(); + return e instanceof CT && t.mode === xP.ConnectionMode.ONLINE + }, Kj = async (e = { + clearDevice: !1 + }) => { + var t; + const n = jz.getState().application, + r = jz.getState().authentication, + i = jz.getState().user, + a = (null === (t = i.device) || void 0 === t ? void 0 : t.duration) === jT.SESSION || (null === e || void 0 === e ? void 0 : e.clearDevice); + try { + (i.sessions[n.platformMaster] && Object.keys(i.sessions[n.platformMaster] || {}).length > 0 ? i.sessions[n.platformMaster] : null) && (oR.games.clearClaims(), await oR.authentication.signOut({ + clearDevice: a + })) + } catch (o) { + if (o instanceof Error && !n.actions.isOffline()) { + const e = new xP.GenericError({ + code: xP.errorsNames.ERR_LOGOUT_FAILED, + message: `[Logout] Error: Failed ${o}`, + payload: null + }); + throw await cR(uR(e)), o + } + } finally { + Qj.clear(), r.actions.resetAuthentication(), n.actions.resetApplication(), i.actions.resetUser(e), RR().authentication.setSignOut() + } + }, Yj = async e => { + switch (!0) { + case e instanceof kT: + await Kj(), await jz.getState().dialog.actions.showAcknowledgeDialogErrorOccured({ + title: xt.t("error_api_denied_request_title", { + ns: "errors" + }), + content: e.message + }); + break; + case e instanceof ST: + await Kj(), await jz.getState().dialog.actions.showAcknowledgeDialogErrorOccured({ + title: xt.t("error_api_too_many_requests_title", { + ns: "errors" + }), + content: e.message + }); + break; + case e instanceof CT: + const { + application: { + connection: t, + actions: n + } + } = jz.getState(); + if (t.mode === xP.ConnectionMode.NO_CONNECTION) return; + n.checkConnection(); + break; + case e instanceof uT: + await Kj(), await jz.getState().dialog.actions.showAcknowledgeDialogErrorOccured({ + title: xt.t("error_api_auth_expired_title", { + ns: "errors" + }), + content: e.message + }); + break; + case e instanceof vT: + case e instanceof bT: + case e instanceof lT: + case e instanceof _T: + case e instanceof QT: + case e instanceof cT: + case e instanceof fT: + case e instanceof mT: + break; + case e instanceof pT: + await Kj(), await jz.getState().dialog.actions.showAcknowledgeDialogErrorOccured({ + title: xt.t("error_generic_title", { + ns: "errors" + }), + content: e.message + }); + break; + case e instanceof hT: + case e instanceof gT: + break; + default: + await jz.getState().dialog.actions.showAcknowledgeDialogErrorOccured({ + title: xt.t("error_generic_title", { + ns: "errors" + }), + content: e.message + }) + } + }, Qj = new class { + #O; + #o; + #a; + #I; + #C; + #A; + #P; + #T; + constructor(e = {}) { + this.#O = e.queryCache || new Uj, this.#o = e.mutationCache || new Bj, this.#a = e.defaultOptions || {}, this.#I = new Map, this.#C = new Map, this.#A = 0 + } + mount() { + this.#A++, 1 === this.#A && (this.#P = bj.subscribe((() => { + bj.isFocused() && (this.resumePausedMutations(), this.#O.onFocus()) + })), this.#T = xj.N.subscribe((() => { + xj.N.isOnline() && (this.resumePausedMutations(), this.#O.onOnline()) + }))) + } + unmount() { + this.#A--, 0 === this.#A && (this.#P?.(), this.#P = void 0, this.#T?.(), this.#T = void 0) + } + isFetching(e) { + return this.#O.findAll({ + ...e, + fetchStatus: "fetching" + }).length + } + isMutating(e) { + return this.#o.findAll({ + ...e, + status: "pending" + }).length + } + getQueryData(e) { + return this.#O.find({ + queryKey: e + })?.state.data + } + ensureQueryData(e) { + const t = this.getQueryData(e.queryKey); + return void 0 !== t ? Promise.resolve(t) : this.fetchQuery(e) + } + getQueriesData(e) { + return this.getQueryCache().findAll(e).map((({ + queryKey: e, + state: t + }) => [e, t.data])) + } + setQueryData(e, t, n) { + const r = this.#O.find({ + queryKey: e + })?.state.data, + i = (0, gj.SE)(t, r); + if ("undefined" === typeof i) return; + const a = this.defaultQueryOptions({ + queryKey: e + }); + return this.#O.build(this, a).setData(i, { + ...n, + manual: !0 + }) + } + setQueriesData(e, t, n) { + return vj.batch((() => this.getQueryCache().findAll(e).map((({ + queryKey: e + }) => [e, this.setQueryData(e, t, n)])))) + } + getQueryState(e) { + return this.#O.find({ + queryKey: e + })?.state + } + removeQueries(e) { + const t = this.#O; + vj.batch((() => { + t.findAll(e).forEach((e => { + t.remove(e) + })) + })) + } + resetQueries(e, t) { + const n = this.#O, + r = { + type: "active", + ...e + }; + return vj.batch((() => (n.findAll(e).forEach((e => { + e.reset() + })), this.refetchQueries(r, t)))) + } + cancelQueries(e = {}, t = {}) { + const n = { + revert: !0, + ...t + }, + r = vj.batch((() => this.#O.findAll(e).map((e => e.cancel(n))))); + return Promise.all(r).then(gj.ZT).catch(gj.ZT) + } + invalidateQueries(e = {}, t = {}) { + return vj.batch((() => { + if (this.#O.findAll(e).forEach((e => { + e.invalidate() + })), "none" === e.refetchType) return Promise.resolve(); + const n = { + ...e, + type: e.refetchType ?? e.type ?? "active" + }; + return this.refetchQueries(n, t) + })) + } + refetchQueries(e = {}, t) { + const n = { + ...t, + cancelRefetch: t?.cancelRefetch ?? !0 + }, + r = vj.batch((() => this.#O.findAll(e).filter((e => !e.isDisabled())).map((e => { + let t = e.fetch(void 0, n); + return n.throwOnError || (t = t.catch(gj.ZT)), "paused" === e.state.fetchStatus ? Promise.resolve() : t + })))); + return Promise.all(r).then(gj.ZT) + } + fetchQuery(e) { + const t = this.defaultQueryOptions(e); + "undefined" === typeof t.retry && (t.retry = !1); + const n = this.#O.build(this, t); + return n.isStaleByTime(t.staleTime) ? n.fetch(t) : Promise.resolve(n.state.data) + } + prefetchQuery(e) { + return this.fetchQuery(e).then(gj.ZT).catch(gj.ZT) + } + fetchInfiniteQuery(e) { + return e.behavior = Gj(e.pages), this.fetchQuery(e) + } + prefetchInfiniteQuery(e) { + return this.fetchInfiniteQuery(e).then(gj.ZT).catch(gj.ZT) + } + resumePausedMutations() { + return this.#o.resumePausedMutations() + } + getQueryCache() { + return this.#O + } + getMutationCache() { + return this.#o + } + getDefaultOptions() { + return this.#a + } + setDefaultOptions(e) { + this.#a = e + } + setQueryDefaults(e, t) { + this.#I.set((0, gj.Ym)(e), { + queryKey: e, + defaultOptions: t + }) + } + getQueryDefaults(e) { + const t = [...this.#I.values()]; + let n = {}; + return t.forEach((t => { + (0, gj.to)(e, t.queryKey) && (n = { + ...n, + ...t.defaultOptions + }) + })), n + } + setMutationDefaults(e, t) { + this.#C.set((0, gj.Ym)(e), { + mutationKey: e, + defaultOptions: t + }) + } + getMutationDefaults(e) { + const t = [...this.#C.values()]; + let n = {}; + return t.forEach((t => { + (0, gj.to)(e, t.mutationKey) && (n = { + ...n, + ...t.defaultOptions + }) + })), n + } + defaultQueryOptions(e) { + if (e?._defaulted) return e; + const t = { + ...this.#a.queries, + ...e?.queryKey && this.getQueryDefaults(e.queryKey), + ...e, + _defaulted: !0 + }; + return t.queryHash || (t.queryHash = (0, gj.Rm)(t.queryKey, t)), "undefined" === typeof t.refetchOnReconnect && (t.refetchOnReconnect = "always" !== t.networkMode), "undefined" === typeof t.throwOnError && (t.throwOnError = !!t.suspense), "undefined" === typeof t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t + } + defaultMutationOptions(e) { + return e?._defaulted ? e : { + ...this.#a.mutations, + ...e?.mutationKey && this.getMutationDefaults(e.mutationKey), + ...e, + _defaulted: !0 + } + } + clear() { + this.#O.clear(), this.#o.clear() + } + }({ + defaultOptions: { + queries: { + gcTime: 12e5, + staleTime: 3e5, + networkMode: "online", + refetchOnReconnect: "always" + } + }, + mutationCache: new Bj({ + onError: async e => { + await Wj(e), await Yj(e), window.launcherAPI.log.error("[Mutation] Error: ", e) + } + }), + queryCache: new Uj({ + onError: async e => { + await Wj(e), await Yj(e), window.launcherAPI.log.error("[Query] Error: ", e) + } + }) + }), Zj = (e, t) => ({ + agreements: { + warningHasBeenAccepted: !1, + actions: { + checkWarnings: async () => { + const n = t(); + try { + const t = await Qj.fetchQuery({ + queryKey: ["warnings"], + queryFn: async () => oR.agreements.getWarnings() + }), + r = t ? t[0] : null; + if (!(r && r.id && !n.agreements.warningHasBeenAccepted)) return !0; + const i = await Qj.fetchQuery((e => ({ + queryKey: ["warningInfo"], + queryFn: async () => oR.agreements.getWarningInfo(e) + }))(r.id)), + { + title: a, + body: o + } = i, + s = await n.dialog.actions.showWarningsDialog(a, o); + return e((e => ({ + agreements: { + ...e.agreements, + warningHasBeenAccepted: s.resolved + } + }))), s.resolved + } catch (r) { + return console.error("[Warnings] warnings error", r), !1 + } + }, + checkAgreements: async () => { + const e = t(); + try { + const t = await Qj.fetchQuery({ + queryKey: ["agreements"], + queryFn: async () => oR.agreements.checkAgreements() + }); + return t.auth ? await e.agreements.actions.checkWarnings() : t.auth + } catch (n) { + return n instanceof gT && e.agreements.actions.checkAgreementsFailure(n) + } + }, + checkAgreementsFailure: async e => { + var n; + const r = null !== (n = e.payload.data.agreements) && void 0 !== n ? n : [], + i = t(); + try { + const e = [zT.EULA, zT.TOS, zT.DISCLAIMER].map((e => r.filter((t => t.type === e)))).reduce(((e, t) => e.concat(t)), []); + return await i.agreements.actions.displayAgreement(e) + } catch (a) { + return console.error("[Agreements] - error", a), !1 + } + }, + displayAgreement: async n => { + const r = t(), + [i, ...a] = n; + e((e => ({ + installer: { + ...e.installer, + isDownloadPopoverOpened: !1 + } + }))); + try { + const e = await Qj.fetchQuery(((e, t) => ({ + queryKey: ["agreementInfo"], + queryFn: async () => oR.agreements.getAgreementInfo(e, t) + }))(i.id, i.type)), + { + title: t, + subtitle: n, + body: o + } = e, + s = await r.dialog.actions.showAgreementsDialog(t, n, o); + if (s.resolved) { + await Qj.fetchQuery(((e, t) => ({ + queryKey: ["agreementAccept"], + queryFn: async () => oR.agreements.acceptAgreement(e, t) + }))(i.id, i.type)); + const e = a; + return e.length > 0 ? await r.agreements.actions.displayAgreement(e) : await r.agreements.actions.checkWarnings() + } + return s.resolved + } catch (o) { + if (o instanceof Error) { + const e = new xP.GenericError({ + code: xP.errorsNames.ERR_DISPLAY_AGREEMENT, + message: `[Agreement] displaying agreements error ${o}`, + payload: { + error: o + } + }); + await cR(uR(e)) + } + return console.error("[Agreements] - error displaying agreements", o), !1 + } + } + } + } + }); + let Xj = e => { + var { + title: t, + titleId: n + } = e, r = function(e, t) { + if (null == e) return {}; + var n, r, i = function(e, t) { + if (null == e) return {}; + var n, r, i = {}, + a = Object.keys(e); + for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) >= 0 || (i[n] = e[n]); + return i + }(e, t); + if (Object.getOwnPropertySymbols) { + var a = Object.getOwnPropertySymbols(e); + for (r = 0; r < a.length; r++) n = a[r], !(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n) && (i[n] = e[n]) + } + return i + }(e, ["title", "titleId"]); + return Ee.createElement("svg", function(e) { + for (var t = 1; t < arguments.length; t++) { + var n = null != arguments[t] ? arguments[t] : {}, + r = Object.keys(n); + "function" == typeof Object.getOwnPropertySymbols && (r = r.concat(Object.getOwnPropertySymbols(n).filter((function(e) { + return Object.getOwnPropertyDescriptor(n, e).enumerable + })))), r.forEach((function(t) { + var r; + r = n[t], t in e ? Object.defineProperty(e, t, { + value: r, + enumerable: !0, + configurable: !0, + writable: !0 + }) : e[t] = r + })) + } + return e + }({ + xmlns: "http://www.w3.org/2000/svg", + width: 16, + height: 16, + fill: "currentColor", + viewBox: "0 0 16 16", + focusable: !1, + "aria-labelledby": n + }, r), t ? Ee.createElement("title", { + id: n + }, t) : null, Ee.createElement("path", { + d: "M8.75 1.75V7h5.594v.006a.75.75 0 0 1 0 1.488V8.5H8.75v5.875h-.01a.75.75 0 0 1-1.48 0h-.01V8.5h-5.5c.001 0 0 0 0 0h-.094v-.006a.75.75 0 0 1 0-1.488V7H7.25V1.75a.75.75 0 0 1 1.5 0Z" + })) + }, + Jj = e => { + var { + title: t, + titleId: n + } = e, r = function(e, t) { + if (null == e) return {}; + var n, r, i = function(e, t) { + if (null == e) return {}; + var n, r, i = {}, + a = Object.keys(e); + for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) >= 0 || (i[n] = e[n]); + return i + }(e, t); + if (Object.getOwnPropertySymbols) { + var a = Object.getOwnPropertySymbols(e); + for (r = 0; r < a.length; r++) n = a[r], !(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n) && (i[n] = e[n]) + } + return i + }(e, ["title", "titleId"]); + return Ee.createElement("svg", function(e) { + for (var t = 1; t < arguments.length; t++) { + var n = null != arguments[t] ? arguments[t] : {}, + r = Object.keys(n); + "function" == typeof Object.getOwnPropertySymbols && (r = r.concat(Object.getOwnPropertySymbols(n).filter((function(e) { + return Object.getOwnPropertyDescriptor(n, e).enumerable + })))), r.forEach((function(t) { + var r; + r = n[t], t in e ? Object.defineProperty(e, t, { + value: r, + enumerable: !0, + configurable: !0, + writable: !0 + }) : e[t] = r + })) + } + return e + }({ + xmlns: "http://www.w3.org/2000/svg", + width: 16, + height: 16, + fill: "currentColor", + viewBox: "0 0 16 16", + focusable: !1, + "aria-labelledby": n + }, r), t ? Ee.createElement("title", { + id: n + }, t) : null, Ee.createElement("path", { + d: "m1.216 8.511 2.936 2.936a.748.748 0 0 0 1.326-.48.748.748 0 0 0-.247-.557L3.554 8.733h10.821v-.01a.75.75 0 0 0 0-1.48v-.01H3.555L5.23 5.556a.75.75 0 1 0-1.08-1.037L1.217 7.455a.748.748 0 0 0 0 1.056Z" + })) + }, + eM = e => { + var { + title: t, + titleId: n + } = e, r = function(e, t) { + if (null == e) return {}; + var n, r, i = function(e, t) { + if (null == e) return {}; + var n, r, i = {}, + a = Object.keys(e); + for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) >= 0 || (i[n] = e[n]); + return i + }(e, t); + if (Object.getOwnPropertySymbols) { + var a = Object.getOwnPropertySymbols(e); + for (r = 0; r < a.length; r++) n = a[r], !(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n) && (i[n] = e[n]) + } + return i + }(e, ["title", "titleId"]); + return Ee.createElement("svg", function(e) { + for (var t = 1; t < arguments.length; t++) { + var n = null != arguments[t] ? arguments[t] : {}, + r = Object.keys(n); + "function" == typeof Object.getOwnPropertySymbols && (r = r.concat(Object.getOwnPropertySymbols(n).filter((function(e) { + return Object.getOwnPropertyDescriptor(n, e).enumerable + })))), r.forEach((function(t) { + var r; + r = n[t], t in e ? Object.defineProperty(e, t, { + value: r, + enumerable: !0, + configurable: !0, + writable: !0 + }) : e[t] = r + })) + } + return e + }({ + xmlns: "http://www.w3.org/2000/svg", + width: 16, + height: 16, + fill: "currentColor", + viewBox: "0 0 16 16", + focusable: !1, + "aria-labelledby": n + }, r), t ? Ee.createElement("title", { + id: n + }, t) : null, Ee.createElement("path", { + d: "M8.782 11.124a1.002 1.002 0 0 1-1.564 0L3.226 6.15c-.532-.663-.064-1.65.782-1.65h7.984c.846 0 1.314.987.782 1.65l-3.992 4.974Z" + })) + }, + tM = e => { + var { + title: t, + titleId: n + } = e, r = function(e, t) { + if (null == e) return {}; + var n, r, i = function(e, t) { + if (null == e) return {}; + var n, r, i = {}, + a = Object.keys(e); + for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) >= 0 || (i[n] = e[n]); + return i + }(e, t); + if (Object.getOwnPropertySymbols) { + var a = Object.getOwnPropertySymbols(e); + for (r = 0; r < a.length; r++) n = a[r], !(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n) && (i[n] = e[n]) + } + return i + }(e, ["title", "titleId"]); + return Ee.createElement("svg", function(e) { + for (var t = 1; t < arguments.length; t++) { + var n = null != arguments[t] ? arguments[t] : {}, + r = Object.keys(n); + "function" == typeof Object.getOwnPropertySymbols && (r = r.concat(Object.getOwnPropertySymbols(n).filter((function(e) { + return Object.getOwnPropertyDescriptor(n, e).enumerable + })))), r.forEach((function(t) { + var r; + r = n[t], t in e ? Object.defineProperty(e, t, { + value: r, + enumerable: !0, + configurable: !0, + writable: !0 + }) : e[t] = r + })) + } + return e + }({ + xmlns: "http://www.w3.org/2000/svg", + width: 16, + height: 16, + fill: "currentColor", + viewBox: "0 0 16 16", + focusable: !1, + "aria-labelledby": n + }, r), t ? Ee.createElement("title", { + id: n + }, t) : null, Ee.createElement("path", { + d: "M8.782 4.876a1.002 1.002 0 0 0-1.564 0L3.226 9.85c-.532.662-.064 1.65.782 1.65h7.984c.846 0 1.314-.988.782-1.65L8.782 4.876Z" + })) + }, + nM = e => { + var { + title: t, + titleId: n + } = e, r = function(e, t) { + if (null == e) return {}; + var n, r, i = function(e, t) { + if (null == e) return {}; + var n, r, i = {}, + a = Object.keys(e); + for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) >= 0 || (i[n] = e[n]); + return i + }(e, t); + if (Object.getOwnPropertySymbols) { + var a = Object.getOwnPropertySymbols(e); + for (r = 0; r < a.length; r++) n = a[r], !(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n) && (i[n] = e[n]) + } + return i + }(e, ["title", "titleId"]); + return Ee.createElement("svg", function(e) { + for (var t = 1; t < arguments.length; t++) { + var n = null != arguments[t] ? arguments[t] : {}, + r = Object.keys(n); + "function" == typeof Object.getOwnPropertySymbols && (r = r.concat(Object.getOwnPropertySymbols(n).filter((function(e) { + return Object.getOwnPropertyDescriptor(n, e).enumerable + })))), r.forEach((function(t) { + var r; + r = n[t], t in e ? Object.defineProperty(e, t, { + value: r, + enumerable: !0, + configurable: !0, + writable: !0 + }) : e[t] = r + })) + } + return e + }({ + xmlns: "http://www.w3.org/2000/svg", + width: 16, + height: 16, + fill: "currentColor", + viewBox: "0 0 16 16", + focusable: !1, + "aria-labelledby": n + }, r), t ? Ee.createElement("title", { + id: n + }, t) : null, Ee.createElement("path", { + d: "m8.182 1.444 2.23 2.35a.749.749 0 0 1-.002 1.145l-2.4 2.278a.748.748 0 0 1-1.312-.515.748.748 0 0 1 .26-.55l1.177-1.116c-2.425.182-3.462 1.14-3.945 2.018-.523.95-.504 1.968-.494 2.512a17.117 17.117 0 0 1 .002.143v.013a.18.18 0 0 1 0 .01v.009a.75.75 0 0 1-1.5 0l-.003-.13c-.014-.514-.053-1.946.68-3.28.784-1.424 2.347-2.598 5.229-2.796L7.076 2.452a.75.75 0 1 1 1.106-1.008ZM7.829 14.56l-2.23-2.35a.749.749 0 0 1-.064-1.082l.001-.001a.778.778 0 0 1 .065-.062L8 8.787a.748.748 0 0 1 1.312.515.748.748 0 0 1-.26.55l-1.177 1.117c2.425-.183 3.462-1.14 3.945-2.019.523-.95.504-1.968.494-2.511a15.313 15.313 0 0 1-.002-.144v-.013a.306.306 0 0 1 0-.018.75.75 0 0 1 1.5 0c0 .032 0 .076.002.13.014.514.054 1.945-.68 3.28-.783 1.423-2.347 2.597-5.228 2.796l1.028 1.082a.75.75 0 1 1-1.106 1.008Z" + })) + }, + rM = e => { + var { + title: t, + titleId: n + } = e, r = function(e, t) { + if (null == e) return {}; + var n, r, i = function(e, t) { + if (null == e) return {}; + var n, r, i = {}, + a = Object.keys(e); + for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) >= 0 || (i[n] = e[n]); + return i + }(e, t); + if (Object.getOwnPropertySymbols) { + var a = Object.getOwnPropertySymbols(e); + for (r = 0; r < a.length; r++) n = a[r], !(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n) && (i[n] = e[n]) + } + return i + }(e, ["title", "titleId"]); + return Ee.createElement("svg", function(e) { + for (var t = 1; t < arguments.length; t++) { + var n = null != arguments[t] ? arguments[t] : {}, + r = Object.keys(n); + "function" == typeof Object.getOwnPropertySymbols && (r = r.concat(Object.getOwnPropertySymbols(n).filter((function(e) { + return Object.getOwnPropertyDescriptor(n, e).enumerable + })))), r.forEach((function(t) { + var r; + r = n[t], t in e ? Object.defineProperty(e, t, { + value: r, + enumerable: !0, + configurable: !0, + writable: !0 + }) : e[t] = r + })) + } + return e + }({ + xmlns: "http://www.w3.org/2000/svg", + width: 16, + height: 16, + fill: "currentColor", + viewBox: "0 0 16 16", + focusable: !1, + "aria-labelledby": n + }, r), t ? Ee.createElement("title", { + id: n + }, t) : null, Ee.createElement("path", { + fillRule: "evenodd", + d: "M3.068 12.967a7 7 0 1 0 9.864-9.934 7 7 0 0 0-9.864 9.934Zm.549-1.644a5.5 5.5 0 0 1 7.706-7.706l-7.706 7.706Zm1.06 1.06 7.707-7.705a5.5 5.5 0 0 1-7.706 7.706Z", + clipRule: "evenodd" + })) + }, + iM = e => { + var { + title: t, + titleId: n + } = e, r = function(e, t) { + if (null == e) return {}; + var n, r, i = function(e, t) { + if (null == e) return {}; + var n, r, i = {}, + a = Object.keys(e); + for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) >= 0 || (i[n] = e[n]); + return i + }(e, t); + if (Object.getOwnPropertySymbols) { + var a = Object.getOwnPropertySymbols(e); + for (r = 0; r < a.length; r++) n = a[r], !(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n) && (i[n] = e[n]) + } + return i + }(e, ["title", "titleId"]); + return Ee.createElement("svg", function(e) { + for (var t = 1; t < arguments.length; t++) { + var n = null != arguments[t] ? arguments[t] : {}, + r = Object.keys(n); + "function" == typeof Object.getOwnPropertySymbols && (r = r.concat(Object.getOwnPropertySymbols(n).filter((function(e) { + return Object.getOwnPropertyDescriptor(n, e).enumerable + })))), r.forEach((function(t) { + var r; + r = n[t], t in e ? Object.defineProperty(e, t, { + value: r, + enumerable: !0, + configurable: !0, + writable: !0 + }) : e[t] = r + })) + } + return e + }({ + xmlns: "http://www.w3.org/2000/svg", + width: 16, + height: 16, + fill: "currentColor", + viewBox: "0 0 16 16", + focusable: !1, + "aria-labelledby": n + }, r), t ? Ee.createElement("title", { + id: n + }, t) : null, Ee.createElement("path", { + d: "m1.186 2.288.002-.001a.78.78 0 0 1 1.1-1.1l.001-.002.035.035a.772.772 0 0 1 .017.017l5.66 5.66 5.71-5.711.002.002a.78.78 0 0 1 1.1 1.1l.002.001-.035.035a.973.973 0 0 1-.017.017L9.104 8l5.69 5.69h-.002a.78.78 0 1 1-1.155 1.05L8.002 9.103l-5.69 5.69H2.31a.78.78 0 1 1-1.05-1.155L6.898 8 1.186 2.288Z" + })) + }, + aM = e => { + var { + title: t, + titleId: n + } = e, r = function(e, t) { + if (null == e) return {}; + var n, r, i = function(e, t) { + if (null == e) return {}; + var n, r, i = {}, + a = Object.keys(e); + for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) >= 0 || (i[n] = e[n]); + return i + }(e, t); + if (Object.getOwnPropertySymbols) { + var a = Object.getOwnPropertySymbols(e); + for (r = 0; r < a.length; r++) n = a[r], !(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n) && (i[n] = e[n]) + } + return i + }(e, ["title", "titleId"]); + return Ee.createElement("svg", function(e) { + for (var t = 1; t < arguments.length; t++) { + var n = null != arguments[t] ? arguments[t] : {}, + r = Object.keys(n); + "function" == typeof Object.getOwnPropertySymbols && (r = r.concat(Object.getOwnPropertySymbols(n).filter((function(e) { + return Object.getOwnPropertyDescriptor(n, e).enumerable + })))), r.forEach((function(t) { + var r; + r = n[t], t in e ? Object.defineProperty(e, t, { + value: r, + enumerable: !0, + configurable: !0, + writable: !0 + }) : e[t] = r + })) + } + return e + }({ + xmlns: "http://www.w3.org/2000/svg", + width: 16, + height: 16, + fill: "currentColor", + viewBox: "0 0 16 16", + focusable: !1, + "aria-labelledby": n + }, r), t ? Ee.createElement("title", { + id: n + }, t) : null, Ee.createElement("path", { + fillRule: "evenodd", + d: "M2.5 3.8v6h8.815a2 2 0 0 1 1.302.481l.883.758V3.8h-11ZM15 3.3a1 1 0 0 0-1-1H2a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h9.315a.5.5 0 0 1 .325.12l2.535 2.172a.5.5 0 0 0 .825-.38V3.3Z", + clipRule: "evenodd" + })) + }, + oM = e => { + var { + title: t, + titleId: n + } = e, r = function(e, t) { + if (null == e) return {}; + var n, r, i = function(e, t) { + if (null == e) return {}; + var n, r, i = {}, + a = Object.keys(e); + for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) >= 0 || (i[n] = e[n]); + return i + }(e, t); + if (Object.getOwnPropertySymbols) { + var a = Object.getOwnPropertySymbols(e); + for (r = 0; r < a.length; r++) n = a[r], !(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n) && (i[n] = e[n]) + } + return i + }(e, ["title", "titleId"]); + return Ee.createElement("svg", function(e) { + for (var t = 1; t < arguments.length; t++) { + var n = null != arguments[t] ? arguments[t] : {}, + r = Object.keys(n); + "function" == typeof Object.getOwnPropertySymbols && (r = r.concat(Object.getOwnPropertySymbols(n).filter((function(e) { + return Object.getOwnPropertyDescriptor(n, e).enumerable + })))), r.forEach((function(t) { + var r; + r = n[t], t in e ? Object.defineProperty(e, t, { + value: r, + enumerable: !0, + configurable: !0, + writable: !0 + }) : e[t] = r + })) + } + return e + }({ + xmlns: "http://www.w3.org/2000/svg", + width: 16, + height: 16, + fill: "currentColor", + viewBox: "0 0 16 16", + focusable: !1, + "aria-labelledby": n + }, r), t ? Ee.createElement("title", { + id: n + }, t) : null, Ee.createElement("path", { + d: "M14.25 15a.75.75 0 0 0 0-1.5H1.75a.75.75 0 0 0 0 1.5h12.5ZM8 1a.75.75 0 0 1 .749.703h.001v7.712l1.677-1.678a.75.75 0 1 1 1.037 1.08l-2.936 2.935a.748.748 0 0 1-1.055 0L4.536 8.816a.748.748 0 0 1 .48-1.325.75.75 0 0 1 .557.246L7.25 9.415V1.703h.001A.75.75 0 0 1 8 1Z" + })) + }, + sM = e => { + var { + title: t, + titleId: n + } = e, r = function(e, t) { + if (null == e) return {}; + var n, r, i = function(e, t) { + if (null == e) return {}; + var n, r, i = {}, + a = Object.keys(e); + for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) >= 0 || (i[n] = e[n]); + return i + }(e, t); + if (Object.getOwnPropertySymbols) { + var a = Object.getOwnPropertySymbols(e); + for (r = 0; r < a.length; r++) n = a[r], !(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n) && (i[n] = e[n]) + } + return i + }(e, ["title", "titleId"]); + return Ee.createElement("svg", function(e) { + for (var t = 1; t < arguments.length; t++) { + var n = null != arguments[t] ? arguments[t] : {}, + r = Object.keys(n); + "function" == typeof Object.getOwnPropertySymbols && (r = r.concat(Object.getOwnPropertySymbols(n).filter((function(e) { + return Object.getOwnPropertyDescriptor(n, e).enumerable + })))), r.forEach((function(t) { + var r; + r = n[t], t in e ? Object.defineProperty(e, t, { + value: r, + enumerable: !0, + configurable: !0, + writable: !0 + }) : e[t] = r + })) + } + return e + }({ + xmlns: "http://www.w3.org/2000/svg", + width: 16, + height: 16, + fill: "currentColor", + viewBox: "0 0 16 16", + focusable: !1, + "aria-labelledby": n + }, r), t ? Ee.createElement("title", { + id: n + }, t) : null, Ee.createElement("path", { + fillRule: "evenodd", + d: "M8 13.5a5.5 5.5 0 1 0 0-11 5.5 5.5 0 0 0 0 11ZM8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14Z", + clipRule: "evenodd" + }), Ee.createElement("path", { + d: "M8.75 11a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0Zm-1.5-6a.75.75 0 0 1 1.5 0v3.75a.75.75 0 0 1-1.5 0V5Z" + })) + }, + lM = e => { + var { + title: t, + titleId: n + } = e, r = function(e, t) { + if (null == e) return {}; + var n, r, i = function(e, t) { + if (null == e) return {}; + var n, r, i = {}, + a = Object.keys(e); + for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) >= 0 || (i[n] = e[n]); + return i + }(e, t); + if (Object.getOwnPropertySymbols) { + var a = Object.getOwnPropertySymbols(e); + for (r = 0; r < a.length; r++) n = a[r], !(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n) && (i[n] = e[n]) + } + return i + }(e, ["title", "titleId"]); + return Ee.createElement("svg", function(e) { + for (var t = 1; t < arguments.length; t++) { + var n = null != arguments[t] ? arguments[t] : {}, + r = Object.keys(n); + "function" == typeof Object.getOwnPropertySymbols && (r = r.concat(Object.getOwnPropertySymbols(n).filter((function(e) { + return Object.getOwnPropertyDescriptor(n, e).enumerable + })))), r.forEach((function(t) { + var r; + r = n[t], t in e ? Object.defineProperty(e, t, { + value: r, + enumerable: !0, + configurable: !0, + writable: !0 + }) : e[t] = r + })) + } + return e + }({ + xmlns: "http://www.w3.org/2000/svg", + width: 16, + height: 16, + fill: "currentColor", + viewBox: "0 0 16 16", + focusable: !1, + "aria-labelledby": n + }, r), t ? Ee.createElement("title", { + id: n + }, t) : null, Ee.createElement("path", { + d: "M7.25 5a.75.75 0 1 1 1.5 0 .75.75 0 0 1-1.5 0ZM8 11.75a.75.75 0 0 0 .75-.75V7.25a.75.75 0 0 0-1.5 0V11c0 .414.336.75.75.75Z" + }), Ee.createElement("path", { + fillRule: "evenodd", + d: "M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14Zm0-1.5a5.5 5.5 0 1 0 0-11 5.5 5.5 0 0 0 0 11Z", + clipRule: "evenodd" + })) + }, + cM = e => { + var { + title: t, + titleId: n + } = e, r = function(e, t) { + if (null == e) return {}; + var n, r, i = function(e, t) { + if (null == e) return {}; + var n, r, i = {}, + a = Object.keys(e); + for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) >= 0 || (i[n] = e[n]); + return i + }(e, t); + if (Object.getOwnPropertySymbols) { + var a = Object.getOwnPropertySymbols(e); + for (r = 0; r < a.length; r++) n = a[r], !(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n) && (i[n] = e[n]) + } + return i + }(e, ["title", "titleId"]); + return Ee.createElement("svg", function(e) { + for (var t = 1; t < arguments.length; t++) { + var n = null != arguments[t] ? arguments[t] : {}, + r = Object.keys(n); + "function" == typeof Object.getOwnPropertySymbols && (r = r.concat(Object.getOwnPropertySymbols(n).filter((function(e) { + return Object.getOwnPropertyDescriptor(n, e).enumerable + })))), r.forEach((function(t) { + var r; + r = n[t], t in e ? Object.defineProperty(e, t, { + value: r, + enumerable: !0, + configurable: !0, + writable: !0 + }) : e[t] = r + })) + } + return e + }({ + xmlns: "http://www.w3.org/2000/svg", + width: 16, + height: 16, + fill: "currentColor", + viewBox: "0 0 16 16", + focusable: !1, + "aria-labelledby": n + }, r), t ? Ee.createElement("title", { + id: n + }, t) : null, Ee.createElement("path", { + d: "M7.25 1h1.5v3.519l.6-.598A.75.75 0 1 1 10.387 5l-1.86 1.856a.748.748 0 0 1-1.055 0L5.463 5a.748.748 0 0 1 .481-1.326c.22 0 .419.095.556.247l.75.598V.999Zm5.25 10.75a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0Z" + }), Ee.createElement("path", { + fillRule: "evenodd", + d: "M2.5 3.75c0-.69.56-1.25 1.25-1.25H6V1H3.75A2.75 2.75 0 0 0 1 3.75v8.5A2.75 2.75 0 0 0 3.75 15h8.5A2.75 2.75 0 0 0 15 12.25v-8.5A2.75 2.75 0 0 0 12.25 1H10v1.5h2.25c.69 0 1.25.56 1.25 1.25V8.5h-11V3.75Zm0 6.25v2.25c0 .69.56 1.25 1.25 1.25h8.5c.69 0 1.25-.56 1.25-1.25V10h-11Z", + clipRule: "evenodd" + })) + }, + uM = e => { + var { + title: t, + titleId: n + } = e, r = function(e, t) { + if (null == e) return {}; + var n, r, i = function(e, t) { + if (null == e) return {}; + var n, r, i = {}, + a = Object.keys(e); + for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) >= 0 || (i[n] = e[n]); + return i + }(e, t); + if (Object.getOwnPropertySymbols) { + var a = Object.getOwnPropertySymbols(e); + for (r = 0; r < a.length; r++) n = a[r], !(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n) && (i[n] = e[n]) + } + return i + }(e, ["title", "titleId"]); + return Ee.createElement("svg", function(e) { + for (var t = 1; t < arguments.length; t++) { + var n = null != arguments[t] ? arguments[t] : {}, + r = Object.keys(n); + "function" == typeof Object.getOwnPropertySymbols && (r = r.concat(Object.getOwnPropertySymbols(n).filter((function(e) { + return Object.getOwnPropertyDescriptor(n, e).enumerable + })))), r.forEach((function(t) { + var r; + r = n[t], t in e ? Object.defineProperty(e, t, { + value: r, + enumerable: !0, + configurable: !0, + writable: !0 + }) : e[t] = r + })) + } + return e + }({ + xmlns: "http://www.w3.org/2000/svg", + width: 16, + height: 16, + fill: "currentColor", + viewBox: "0 0 16 16", + focusable: !1, + "aria-labelledby": n + }, r), t ? Ee.createElement("title", { + id: n + }, t) : null, Ee.createElement("path", { + d: "M1.716 13.5a.75.75 0 0 0 0 1.5H14.25a.75.75 0 1 0-.023-1.5H1.716Z" + })) + }, + dM = e => { + var { + title: t, + titleId: n + } = e, r = function(e, t) { + if (null == e) return {}; + var n, r, i = function(e, t) { + if (null == e) return {}; + var n, r, i = {}, + a = Object.keys(e); + for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) >= 0 || (i[n] = e[n]); + return i + }(e, t); + if (Object.getOwnPropertySymbols) { + var a = Object.getOwnPropertySymbols(e); + for (r = 0; r < a.length; r++) n = a[r], !(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n) && (i[n] = e[n]) + } + return i + }(e, ["title", "titleId"]); + return Ee.createElement("svg", function(e) { + for (var t = 1; t < arguments.length; t++) { + var n = null != arguments[t] ? arguments[t] : {}, + r = Object.keys(n); + "function" == typeof Object.getOwnPropertySymbols && (r = r.concat(Object.getOwnPropertySymbols(n).filter((function(e) { + return Object.getOwnPropertyDescriptor(n, e).enumerable + })))), r.forEach((function(t) { + var r; + r = n[t], t in e ? Object.defineProperty(e, t, { + value: r, + enumerable: !0, + configurable: !0, + writable: !0 + }) : e[t] = r + })) + } + return e + }({ + xmlns: "http://www.w3.org/2000/svg", + width: 16, + height: 16, + fill: "none", + viewBox: "0 0 16 16", + focusable: !1, + "aria-labelledby": n + }, r), t ? Ee.createElement("title", { + id: n + }, t) : null, Ee.createElement("path", { + fill: "currentColor", + d: "M9.5 8a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0ZM4 8a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0ZM15 8a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Z" + })) + }, + pM = e => { + var { + title: t, + titleId: n + } = e, r = function(e, t) { + if (null == e) return {}; + var n, r, i = function(e, t) { + if (null == e) return {}; + var n, r, i = {}, + a = Object.keys(e); + for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) >= 0 || (i[n] = e[n]); + return i + }(e, t); + if (Object.getOwnPropertySymbols) { + var a = Object.getOwnPropertySymbols(e); + for (r = 0; r < a.length; r++) n = a[r], !(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n) && (i[n] = e[n]) + } + return i + }(e, ["title", "titleId"]); + return Ee.createElement("svg", function(e) { + for (var t = 1; t < arguments.length; t++) { + var n = null != arguments[t] ? arguments[t] : {}, + r = Object.keys(n); + "function" == typeof Object.getOwnPropertySymbols && (r = r.concat(Object.getOwnPropertySymbols(n).filter((function(e) { + return Object.getOwnPropertyDescriptor(n, e).enumerable + })))), r.forEach((function(t) { + var r; + r = n[t], t in e ? Object.defineProperty(e, t, { + value: r, + enumerable: !0, + configurable: !0, + writable: !0 + }) : e[t] = r + })) + } + return e + }({ + xmlns: "http://www.w3.org/2000/svg", + width: 16, + height: 16, + fill: "currentColor", + viewBox: "0 0 16 16", + focusable: !1, + "aria-labelledby": n + }, r), t ? Ee.createElement("title", { + id: n + }, t) : null, Ee.createElement("path", { + d: "M2.475 3.137a.974.974 0 0 0-.975.971v9.23c0 .537.437.972.975.972h9.267a.974.974 0 0 0 .976-.972V8.45a.73.73 0 0 0-.732-.729.73.73 0 0 0-.73.76l-.001 4.372H2.963V4.594h3.902v-.002a.73.73 0 0 0 .67-.727.73.73 0 0 0-.67-.726v-.002h-4.39Z" + }), Ee.createElement("path", { + d: "M13.769 1.313h-4.05a.732.732 0 0 0-.583.21.727.727 0 0 0 .553 1.243h2.314L7.822 6.931v.001a.727.727 0 0 0 .03 1 .734.734 0 0 0 1.003.029h.001l4.182-4.164v2.305a.72.72 0 0 0 .213.55.734.734 0 0 0 1.246-.58V2.039a.732.732 0 0 0-.728-.725Z" + })) + }, + hM = e => { + var { + title: t, + titleId: n + } = e, r = function(e, t) { + if (null == e) return {}; + var n, r, i = function(e, t) { + if (null == e) return {}; + var n, r, i = {}, + a = Object.keys(e); + for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) >= 0 || (i[n] = e[n]); + return i + }(e, t); + if (Object.getOwnPropertySymbols) { + var a = Object.getOwnPropertySymbols(e); + for (r = 0; r < a.length; r++) n = a[r], !(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n) && (i[n] = e[n]) + } + return i + }(e, ["title", "titleId"]); + return Ee.createElement("svg", function(e) { + for (var t = 1; t < arguments.length; t++) { + var n = null != arguments[t] ? arguments[t] : {}, + r = Object.keys(n); + "function" == typeof Object.getOwnPropertySymbols && (r = r.concat(Object.getOwnPropertySymbols(n).filter((function(e) { + return Object.getOwnPropertyDescriptor(n, e).enumerable + })))), r.forEach((function(t) { + var r; + r = n[t], t in e ? Object.defineProperty(e, t, { + value: r, + enumerable: !0, + configurable: !0, + writable: !0 + }) : e[t] = r + })) + } + return e + }({ + xmlns: "http://www.w3.org/2000/svg", + width: 16, + height: 16, + fill: "currentColor", + viewBox: "0 0 16 16", + focusable: !1, + "aria-labelledby": n + }, r), t ? Ee.createElement("title", { + id: n + }, t) : null, Ee.createElement("path", { + d: "M3 2a1 1 0 0 1 2 0v12a1 1 0 1 1-2 0V2Zm8 0a1 1 0 1 1 2 0v12a1 1 0 1 1-2 0V2Z" + })) + }, + fM = e => { + var { + title: t, + titleId: n + } = e, r = function(e, t) { + if (null == e) return {}; + var n, r, i = function(e, t) { + if (null == e) return {}; + var n, r, i = {}, + a = Object.keys(e); + for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) >= 0 || (i[n] = e[n]); + return i + }(e, t); + if (Object.getOwnPropertySymbols) { + var a = Object.getOwnPropertySymbols(e); + for (r = 0; r < a.length; r++) n = a[r], !(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n) && (i[n] = e[n]) + } + return i + }(e, ["title", "titleId"]); + return Ee.createElement("svg", function(e) { + for (var t = 1; t < arguments.length; t++) { + var n = null != arguments[t] ? arguments[t] : {}, + r = Object.keys(n); + "function" == typeof Object.getOwnPropertySymbols && (r = r.concat(Object.getOwnPropertySymbols(n).filter((function(e) { + return Object.getOwnPropertyDescriptor(n, e).enumerable + })))), r.forEach((function(t) { + var r; + r = n[t], t in e ? Object.defineProperty(e, t, { + value: r, + enumerable: !0, + configurable: !0, + writable: !0 + }) : e[t] = r + })) + } + return e + }({ + xmlns: "http://www.w3.org/2000/svg", + width: 16, + height: 16, + fill: "currentColor", + viewBox: "0 0 16 16", + focusable: !1, + "aria-labelledby": n + }, r), t ? Ee.createElement("title", { + id: n + }, t) : null, Ee.createElement("path", { + fillRule: "evenodd", + d: "M3.01 2.715v10.57L12.588 8 3.01 2.715Zm10.9 4.307a1.105 1.105 0 0 1 0 1.956L3.272 14.847c-.788.435-1.773-.109-1.773-.978V2.13c0-.87.985-1.413 1.773-.978l10.636 5.869Z", + clipRule: "evenodd" + })) + }, + mM = e => { + var { + title: t, + titleId: n + } = e, r = function(e, t) { + if (null == e) return {}; + var n, r, i = function(e, t) { + if (null == e) return {}; + var n, r, i = {}, + a = Object.keys(e); + for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) >= 0 || (i[n] = e[n]); + return i + }(e, t); + if (Object.getOwnPropertySymbols) { + var a = Object.getOwnPropertySymbols(e); + for (r = 0; r < a.length; r++) n = a[r], !(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n) && (i[n] = e[n]) + } + return i + }(e, ["title", "titleId"]); + return Ee.createElement("svg", function(e) { + for (var t = 1; t < arguments.length; t++) { + var n = null != arguments[t] ? arguments[t] : {}, + r = Object.keys(n); + "function" == typeof Object.getOwnPropertySymbols && (r = r.concat(Object.getOwnPropertySymbols(n).filter((function(e) { + return Object.getOwnPropertyDescriptor(n, e).enumerable + })))), r.forEach((function(t) { + var r; + r = n[t], t in e ? Object.defineProperty(e, t, { + value: r, + enumerable: !0, + configurable: !0, + writable: !0 + }) : e[t] = r + })) + } + return e + }({ + xmlns: "http://www.w3.org/2000/svg", + width: 16, + height: 16, + fill: "currentColor", + viewBox: "0 0 16 16", + focusable: !1, + "aria-labelledby": n + }, r), t ? Ee.createElement("title", { + id: n + }, t) : null, Ee.createElement("path", { + d: "M2.5 8a5.5 5.5 0 0 1 9.938-3.25H11.25a.75.75 0 0 0 0 1.5h3A.75.75 0 0 0 15 5.5v-3a.75.75 0 0 0-1.5 0v1.17a7 7 0 1 0 1.41 5.45.75.75 0 1 0-1.48-.24A5.502 5.502 0 0 1 2.5 8Z" + })) + }, + gM = e => { + var { + title: t, + titleId: n + } = e, r = function(e, t) { + if (null == e) return {}; + var n, r, i = function(e, t) { + if (null == e) return {}; + var n, r, i = {}, + a = Object.keys(e); + for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) >= 0 || (i[n] = e[n]); + return i + }(e, t); + if (Object.getOwnPropertySymbols) { + var a = Object.getOwnPropertySymbols(e); + for (r = 0; r < a.length; r++) n = a[r], !(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n) && (i[n] = e[n]) + } + return i + }(e, ["title", "titleId"]); + return Ee.createElement("svg", function(e) { + for (var t = 1; t < arguments.length; t++) { + var n = null != arguments[t] ? arguments[t] : {}, + r = Object.keys(n); + "function" == typeof Object.getOwnPropertySymbols && (r = r.concat(Object.getOwnPropertySymbols(n).filter((function(e) { + return Object.getOwnPropertyDescriptor(n, e).enumerable + })))), r.forEach((function(t) { + var r; + r = n[t], t in e ? Object.defineProperty(e, t, { + value: r, + enumerable: !0, + configurable: !0, + writable: !0 + }) : e[t] = r + })) + } + return e + }({ + xmlns: "http://www.w3.org/2000/svg", + width: 16, + height: 16, + fill: "currentColor", + viewBox: "0 0 16 16", + focusable: !1, + "aria-labelledby": n + }, r), t ? Ee.createElement("title", { + id: n + }, t) : null, Ee.createElement("path", { + fillRule: "evenodd", + d: "m7.334 3.874-.782.295a4.088 4.088 0 0 0-1.151.66l-.648.533-1.32-.455-.396.687 1.056.917-.135.825a4.1 4.1 0 0 0-.06.664c0 .208.021.426.06.664l.135.825-1.056.917.396.688 1.32-.455.648.532c.335.274.723.498 1.151.66l.782.295.268 1.374h.793l.268-1.374.782-.295a4.09 4.09 0 0 0 1.15-.66l.649-.532 1.32.455.396-.688-1.056-.917.135-.825c.038-.238.06-.456.06-.664 0-.208-.022-.426-.06-.664l-.135-.825 1.056-.917-.397-.687-1.319.455-.648-.532a4.088 4.088 0 0 0-1.151-.66l-.782-.296L8.395 2.5h-.793l-.268 1.374Zm2.641-1.108L9.71 1.404A.5.5 0 0 0 9.219 1H6.778a.5.5 0 0 0-.49.404L6.02 2.766a5.588 5.588 0 0 0-1.572.904l-1.307-.45a.5.5 0 0 0-.596.222l-1.22 2.116a.5.5 0 0 0 .105.627l1.047.91c-.048.295-.08.596-.08.905 0 .309.032.61.08.905l-1.047.91a.5.5 0 0 0-.105.627l1.22 2.116a.5.5 0 0 0 .596.223l1.307-.451a5.59 5.59 0 0 0 1.572.904l.266 1.362a.5.5 0 0 0 .49.404H9.22a.5.5 0 0 0 .49-.404l.266-1.362a5.59 5.59 0 0 0 1.573-.904l1.306.45a.5.5 0 0 0 .596-.222l1.22-2.116a.5.5 0 0 0-.104-.627l-1.047-.91c.048-.295.08-.596.08-.905 0-.309-.032-.61-.08-.905l1.047-.91a.5.5 0 0 0 .105-.627l-1.22-2.116a.5.5 0 0 0-.597-.223l-1.306.451a5.587 5.587 0 0 0-1.573-.904Z", + clipRule: "evenodd" + }), Ee.createElement("path", { + fillRule: "evenodd", + d: "M9 8a1 1 0 1 0-2 0 1 1 0 0 0 2 0Zm1.5 0a2.5 2.5 0 1 0-5 0 2.5 2.5 0 0 0 5 0Z", + clipRule: "evenodd" + })) + }, + vM = e => { + var { + title: t, + titleId: n + } = e, r = function(e, t) { + if (null == e) return {}; + var n, r, i = function(e, t) { + if (null == e) return {}; + var n, r, i = {}, + a = Object.keys(e); + for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) >= 0 || (i[n] = e[n]); + return i + }(e, t); + if (Object.getOwnPropertySymbols) { + var a = Object.getOwnPropertySymbols(e); + for (r = 0; r < a.length; r++) n = a[r], !(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n) && (i[n] = e[n]) + } + return i + }(e, ["title", "titleId"]); + return Ee.createElement("svg", function(e) { + for (var t = 1; t < arguments.length; t++) { + var n = null != arguments[t] ? arguments[t] : {}, + r = Object.keys(n); + "function" == typeof Object.getOwnPropertySymbols && (r = r.concat(Object.getOwnPropertySymbols(n).filter((function(e) { + return Object.getOwnPropertyDescriptor(n, e).enumerable + })))), r.forEach((function(t) { + var r; + r = n[t], t in e ? Object.defineProperty(e, t, { + value: r, + enumerable: !0, + configurable: !0, + writable: !0 + }) : e[t] = r + })) + } + return e + }({ + xmlns: "http://www.w3.org/2000/svg", + width: 16, + height: 16, + fill: "none", + viewBox: "0 0 16 16", + focusable: !1, + "aria-labelledby": n + }, r), t ? Ee.createElement("title", { + id: n + }, t) : null, Ee.createElement("path", { + fill: "currentColor", + fillRule: "evenodd", + d: "M3.5 3.5v2h9v-2h-9ZM3 2a1 1 0 0 0-1 1v3a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V3a1 1 0 0 0-1-1H3ZM3.5 10.5v2h9v-2h-9ZM3 9a1 1 0 0 0-1 1v3a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1H3Z", + clipRule: "evenodd" + })) + }, + yM = e => { + var { + title: t, + titleId: n + } = e, r = function(e, t) { + if (null == e) return {}; + var n, r, i = function(e, t) { + if (null == e) return {}; + var n, r, i = {}, + a = Object.keys(e); + for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) >= 0 || (i[n] = e[n]); + return i + }(e, t); + if (Object.getOwnPropertySymbols) { + var a = Object.getOwnPropertySymbols(e); + for (r = 0; r < a.length; r++) n = a[r], !(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n) && (i[n] = e[n]) + } + return i + }(e, ["title", "titleId"]); + return Ee.createElement("svg", function(e) { + for (var t = 1; t < arguments.length; t++) { + var n = null != arguments[t] ? arguments[t] : {}, + r = Object.keys(n); + "function" == typeof Object.getOwnPropertySymbols && (r = r.concat(Object.getOwnPropertySymbols(n).filter((function(e) { + return Object.getOwnPropertyDescriptor(n, e).enumerable + })))), r.forEach((function(t) { + var r; + r = n[t], t in e ? Object.defineProperty(e, t, { + value: r, + enumerable: !0, + configurable: !0, + writable: !0 + }) : e[t] = r + })) + } + return e + }({ + xmlns: "http://www.w3.org/2000/svg", + width: 16, + height: 16, + fill: "currentColor", + viewBox: "0 0 16 16", + focusable: !1, + "aria-labelledby": n + }, r), t ? Ee.createElement("title", { + id: n + }, t) : null, Ee.createElement("path", { + fillRule: "evenodd", + d: "M8 3.184 2.675 13.431h10.65L8 3.184Zm.887-1.545a1 1 0 0 0-1.775 0L.965 13.47a1 1 0 0 0 .887 1.461h12.296a1 1 0 0 0 .887-1.46L8.887 1.638Z", + clipRule: "evenodd" + }), Ee.createElement("path", { + d: "M8.75 12.181a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0Zm-1.5-5.5a.75.75 0 1 1 1.5 0v3.25a.75.75 0 0 1-1.5 0v-3.25Z" + })) + }, + _M = e => { + var { + title: t, + titleId: n + } = e, r = function(e, t) { + if (null == e) return {}; + var n, r, i = function(e, t) { + if (null == e) return {}; + var n, r, i = {}, + a = Object.keys(e); + for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) >= 0 || (i[n] = e[n]); + return i + }(e, t); + if (Object.getOwnPropertySymbols) { + var a = Object.getOwnPropertySymbols(e); + for (r = 0; r < a.length; r++) n = a[r], !(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n) && (i[n] = e[n]) + } + return i + }(e, ["title", "titleId"]); + return Ee.createElement("svg", function(e) { + for (var t = 1; t < arguments.length; t++) { + var n = null != arguments[t] ? arguments[t] : {}, + r = Object.keys(n); + "function" == typeof Object.getOwnPropertySymbols && (r = r.concat(Object.getOwnPropertySymbols(n).filter((function(e) { + return Object.getOwnPropertyDescriptor(n, e).enumerable + })))), r.forEach((function(t) { + var r; + r = n[t], t in e ? Object.defineProperty(e, t, { + value: r, + enumerable: !0, + configurable: !0, + writable: !0 + }) : e[t] = r + })) + } + return e + }({ + xmlns: "http://www.w3.org/2000/svg", + width: 16, + height: 16, + fill: "currentColor", + viewBox: "0 0 16 16", + focusable: !1, + "aria-labelledby": n + }, r), t ? Ee.createElement("title", { + id: n + }, t) : null, Ee.createElement("path", { + d: "M4.276 1.623a.75.75 0 0 1 1.053.13l.413.53a10.692 10.692 0 0 1 2.31-.251c2.531 0 4.857.883 6.685 2.357a.709.709 0 0 1 .088 1.003c-.273.336-.773.367-1.113.099a9.115 9.115 0 0 0-5.66-1.96c-.43 0-.853.03-1.267.088l1.202 1.54h.078c1.792 0 3.437.626 4.73 1.672.299.242.322.68.08.978-.279.343-.792.364-1.142.095a5.999 5.999 0 0 0-2.486-1.129l2.937 3.764A.75.75 0 0 1 11 11.46L4.146 2.676a.75.75 0 0 1 .13-1.053ZM1.257 4.48a10.672 10.672 0 0 1 1.79-1.201l.939 1.203c-.605.3-1.17.665-1.69 1.086-.337.273-.838.248-1.115-.085a.709.709 0 0 1 .076-1.003Zm3.759 1.323a7.529 7.529 0 0 0-1.761 1.094c-.296.246-.313.683-.067.978.283.34.796.354 1.143.08a6.017 6.017 0 0 1 1.644-.923l-.96-1.23Zm2.036 2.609a4.386 4.386 0 0 0-1.808.928c-.27.23-.273.634-.045.908.297.356.852.335 1.232.067A2.886 2.886 0 0 1 8.1 9.787h.024L7.052 8.412ZM8 13.5a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z" + })) + }; + const bM = ({ + launcherVersion: e = "unknown", + patcherVersion: t = "unknown", + platformMaster: n = "prod", + isGameRunning: r = !1, + isAppInitialized: i = !1, + isWindowMinimized: a = !1, + isDiscoverStarted: o = !1, + isDownloadPopoverOpened: s = !1, + isStatusPopoverOpened: l = !1, + isConnectionPopoverOpened: c = !1, + nonOperationalStatus: u, + connection: d = { + mode: navigator.onLine ? xP.ConnectionMode.ONLINE : xP.ConnectionMode.NO_CONNECTION, + needToBeCheck: !1 + }, + animations: p = { + appLayoutWipe: { + isAnimating: !0, + animType: "out" + }, + gamePageEntering: { + isAnimating: !1, + animState: "" + } + } + }) => ({ + launcherVersion: e, + patcherVersion: t, + platformMaster: n, + isAppInitialized: i, + isWindowMinimized: a, + isDiscoverStarted: o, + isGameRunning: r, + isDownloadPopoverOpened: s, + isStatusPopoverOpened: l, + isConnectionPopoverOpened: c, + nonOperationalStatus: u, + connection: d, + animations: p + }), + xM = (e, t) => ({ + application: { + ...bM({}), + actions: { + initializeApplication: async () => { + const { + launcherVersion: t, + patcherVersion: n, + environment: r + } = await window.launcherAPI.game.getGlobalConfig(), i = await window.launcherAPI.game.isGameProcessRunning(), a = await window.launcherAPI.store.getValueFromStore("application.connection.lastTimeOnline"), o = bM({ + launcherVersion: t, + patcherVersion: n, + platformMaster: r, + isGameRunning: i, + isAppInitialized: !0, + connection: { + mode: a ? xP.ConnectionMode.NO_CONNECTION : xP.ConnectionMode.ONLINE, + lastTimeOnline: a, + needToBeCheck: !0 + } + }); + e((e => ({ + application: { + ...e.application, + ...o + } + }))) + }, + toggleDownloadPopoverOpened: () => { + const { + application: e + } = t(); + e.actions.setDownloadPopoverOpened(!e.isDownloadPopoverOpened) + }, + setDownloadPopoverOpened: n => { + const { + installer: r + } = t(); + n || r.actions.clearCompletedInstallations(), e((e => ({ + application: { + ...e.application, + isDownloadPopoverOpened: n + } + }))) + }, + setStatusPopoverOpened: t => { + e((e => ({ + application: { + ...e.application, + isStatusPopoverOpened: t + } + }))) + }, + setConnectionPopoverOpened: n => { + const { + application: { + connection: r + } + } = t(); + n && r.mode === xP.ConnectionMode.ONLINE || e((e => ({ + application: { + ...e.application, + isConnectionPopoverOpened: n + } + }))) + }, + setCloseAllPopovers: () => { + const { + application: e + } = t(); + e.actions.setDownloadPopoverOpened(!1), e.actions.setStatusPopoverOpened(!1), e.actions.setConnectionPopoverOpened(!1) + }, + setNonOperationalStatus: t => { + e((e => ({ + application: { + ...e.application, + nonOperationalStatus: t + } + }))) + }, + setWindowMinimized: t => { + e((e => ({ + application: { + ...e.application, + isWindowMinimized: t + } + }))) + }, + resetApplication: () => e((e => ({ + application: { + ...e.application, + ...bM({}), + launcherVersion: e.application.launcherVersion, + patcherVersion: e.application.patcherVersion, + platformMaster: e.application.platformMaster + } + }))), + isMinimumWindowsVersion: async () => { + const e = t(), + { + osMetMinimumRequirements: n + } = await window.launcherAPI.game.getGlobalConfig(); + return n || (await e.dialog.actions.showOsRequirementsDialog(e.library.channelSelected), !1) + }, + isRespectingCPUCapabilites: async () => { + const e = t(), + { + cpuMetRequirements: n + } = await window.launcherAPI.game.getGlobalConfig(); + return n || (await e.dialog.actions.showCpuRequirementsDialog(), !1) + }, + isOffline: () => { + const { + application: { + connection: e + } + } = t(); + return e.mode !== xP.ConnectionMode.ONLINE + }, + isOfflineSessionValid: () => { + const { + application: { + connection: { + lastTimeOnline: e + } + } + } = t(); + return (null !== e && void 0 !== e ? e : -1) + xP.configuration.authenticationExpiry > Date.now() + }, + getRemainingTimeOfOfflineSession: () => { + const { + application: { + connection: { + lastTimeOnline: e + } + }, + user: { + device: n + } + } = t(); + if (!(n && (void 0 !== n.expires || n.duration !== jT.SESSION)) || void 0 === e) return; + const r = e + xP.configuration.authenticationExpiry, + i = n.expires; + return PR(new Date(i < r ? i : r).toDateString(), "relative", {}) + }, + checkConnection: () => { + const { + connectivity: e + } = window.launcherAPI; + e.checkConnection() + }, + setAnimatingAppLayoutWipe: (t, n) => { + e((e => ({ + application: { + ...e.application, + animations: { + appLayoutWipe: { + animType: t, + isAnimating: n || !1 + } + } + } + }))) + }, + setAnimatingGamePageEntering: (t, n) => { + e((e => ({ + application: { + ...e.application, + animations: { + gamePageEntering: { + isAnimating: t, + animState: n || "" + } + } + } + }))) + }, + setDiscoverStarted: t => { + e((e => ({ + application: { + ...e.application, + isDiscoverStarted: null !== t && void 0 !== t ? t : e.application.isDiscoverStarted + } + }))) + }, + setConnectionAvailable: () => { + const { + application: { + connection: n + }, + toasts: r + } = t(); + n.mode !== xP.ConnectionMode.ONLINE && n.mode !== xP.ConnectionMode.OFFLINE && (e((e => ({ + application: { + ...e.application, + connection: { + mode: xP.ConnectionMode.ONLINE, + lastTimeOnline: void 0, + needToBeCheck: !1 + } + } + }))), window.launcherAPI.store.setValueToStore("application.connection.lastTimeOnline", null), r.actions.add({ + type: "positive", + title: _e.t("connection_toast_connection_available", { + ns: "connection" + }) + })) + }, + setConnectionUnavailable: async () => { + var n; + const { + application: { + actions: r, + connection: i + }, + user: a + } = t(); + if (i.mode === xP.ConnectionMode.NO_CONNECTION && !i.needToBeCheck) return; + if (i.mode === xP.ConnectionMode.OFFLINE) return; + const o = null !== (n = i.lastTimeOnline) && void 0 !== n ? n : Date.now(); + e((e => ({ + application: { + ...e.application, + connection: { + mode: xP.ConnectionMode.NO_CONNECTION, + lastTimeOnline: o, + needToBeCheck: !1 + } + } + }))), window.launcherAPI.store.setValueToStore("application.connection.lastTimeOnline", o), a.actions.isLoggedIn() && (r.setCloseAllPopovers(), r.setLostConnectionToast(), r.setConnectionPopoverOpened(!0)) + }, + setLostConnectionToast: () => { + const { + application: { + actions: e + }, + toasts: n + } = t(), r = e.getRemainingTimeOfOfflineSession(); + n.actions.add({ + duration: 6e3, + type: "informative", + icon: lM, + title: _e.t("connection_toast_warning_lost_connection_title", { + ns: "connection" + }), + children: (0, wR.jsxs)(Es, { + gap: "100", + vertical: !0, + children: [(0, wR.jsx)(ds, { + as: "span", + children: _e.t("connection_toast_warning_lost_connection_content", { + ns: "connection" + }) + }), r && (0, wR.jsxs)(ds, { + as: "span", + children: [_e.t("connection_toast_warning_lost_connection_remaining", { + ns: "connection" + }), (0, wR.jsx)(ds, { + as: "span", + variant: "body-m-bold", + children: " " + e.getRemainingTimeOfOfflineSession() + })] + })] + }), + actions: [{ + close: !0, + label: _e.t("connection_toast_action_continue_offline", { + ns: "connection" + }) + }] + }) + }, + setConnection: n => { + const { + application: { + connection: r + } + } = t(); + r.mode !== n.mode && e((e => ({ + application: { + ...e.application, + connection: { + ...n, + needToBeCheck: !1 + } + } + }))) + } + } + } + }), + wM = (e, t) => ({ + authentication: { + captcha: null, + actions: { + initializeAuthentication: async () => { + e((e => ({ + authentication: { + ...e.authentication, + captcha: null + } + }))) + }, + fetchCaptcha: async () => { + const t = await oR.authentication.getCaptcha(); + e((e => ({ + authentication: { + ...e.authentication, + captcha: t + } + }))) + }, + resetAuthentication: () => e((e => ({ + authentication: { + ...e.authentication, + captcha: null + } + }))) + } + } + }), + kM = "autoUpdate", + SM = (e, t = {}) => xt.t(e, { + ns: kM, + ...t + }), + EM = (e, t) => { + var n; + const { + closeDialog: r + } = e.autoUpdate.actions, i = null === (n = window.launcherAPI.autoUpdate) || void 0 === n ? void 0 : n.updateAndRestart, a = { + open: !0, + alert: !0, + close: SM("auto_update_dialog_close"), + title: SM("auto_update_dialog_title"), + onOpenChange: () => { + r() + } + }; + switch (t.state) { + case xP.AutoUpdateDialogStates.AVAILABLE: + return { + ...a, children: (0, wR.jsxs)(wR.Fragment, { + children: [(0, wR.jsx)(ds, { + variant: "emphasis-s", + as: "h4", + children: SM("auto_update_dialog_sub_title", { + version: t.updateInfo.version + }) + }), (0, wR.jsx)(ft, { + i18nKey: "auto_update_dialog_update_available_content", + t: xt.t, + ns: kM, + components: [(0, wR.jsx)("br", {})] + })] + }), actions: [{ + label: SM("auto_update_dialog_update_available_action_secondary_label") + }, { + label: SM("auto_update_dialog_update_available_action_primary_label"), + onClick: () => i() + }] + }; + case xP.AutoUpdateDialogStates.ERROR: + return { + ...a, type: "negative", children: (0, wR.jsxs)(wR.Fragment, { + children: [(0, wR.jsx)(ds, { + variant: "emphasis-s", + as: "h4", + children: SM("auto_update_dialog_sub_title", { + version: t.updateInfo.version + }) + }), (0, wR.jsx)(ft, { + i18nKey: "auto_update_dialog_update_install_failed_content", + t: xt.t, + ns: kM, + components: [(0, wR.jsx)(Pv, { + href: xP.configuration.supportUrl, + external: !0 + })] + })] + }), actions: [{ + label: SM("auto_update_dialog_update_install_failed_action_secondary_label") + }, { + label: SM("auto_update_dialog_update_install_failed_action_primary_label"), + onClick: () => i() + }] + }; + case xP.AutoUpdateDialogStates.QUIT_GAME: + return { + ...a, type: "negative", children: (0, wR.jsxs)(wR.Fragment, { + children: [(0, wR.jsx)(ds, { + variant: "emphasis-s", + as: "h4", + children: SM("auto_update_dialog_sub_title", { + version: t.updateInfo.version + }) + }), SM("auto_update_dialog_update_quit_game_content")] + }), actions: [{ + label: SM("auto_update_dialog_update_quit_game_action_secondary_label") + }, { + label: SM("auto_update_dialog_update_quit_game_action_primary_label"), + onClick: () => i(!0) + }] + }; + default: + return { + ...a, children: (0, wR.jsxs)(wR.Fragment, { + children: [(0, wR.jsx)(ds, { + variant: "emphasis-s", + as: "h4", + children: SM("auto_update_dialog_sub_title", { + version: t.updateInfo.version + }) + }), (0, wR.jsx)(ft, { + i18nKey: "auto_update_dialog_no_update_content", + t: xt.t, + ns: kM, + components: [(0, wR.jsx)("br", {})] + })] + }), actions: [{ + label: SM("auto_update_dialog_no_update_action_primary_label") + }] + } + } + }, + OM = { + dialog: {} + }, + IM = (e, t) => ({ + autoUpdate: { + ...OM, + actions: { + async closeDialog() { + var n; + const r = t(); + null === (n = window.launcherAPI.autoUpdate) || void 0 === n || n.dismissUpdate(), e({ + autoUpdate: { + ...r.autoUpdate, + dialog: {} + } + }) + }, + displayDialog(n) { + const r = t(); + e({ + autoUpdate: { + ...r.autoUpdate, + dialog: EM(r, n) + } + }) + } + } + } + }), + CM = ({ + children: e + }) => { + const t = jz((e => e.application)), + n = jz((e => e.settings)), + r = jz((e => e.window)), + i = jz((e => e.user)), + { + t: a + } = bt("discover"), + o = i.actions.isLoggedIn(), + s = t.isDiscoverStarted, + l = Number(getComputedStyle(document.body).getPropertyValue("--sol-motion-anim-wipe-duration").match(/\d+/)); + return (0, Ee.useEffect)((() => { + if (!n.appSettings.isDiscoverDone && o) { + const e = setTimeout((() => { + r.actions.openDiscover() + }), l); + return () => clearTimeout(e) + } + }), [o]), (0, wR.jsx)(wR.Fragment, { + children: (0, wR.jsx)(Xy, { + open: s, + onOpenChange: e => { + e || (t.actions.setDiscoverStarted(!1), n.actions.saveApplicationSettings({ + name: "isDiscoverDone", + value: !0 + })) + }, + doneLabel: a("step_done_label"), + steps: [{ + selector: '[data-sol-discover="menu"]', + title: a("step_menu_title"), + description: a("step_menu_description") + }, { + selector: '[data-sol-discover="status"]', + title: a("step_status_title"), + description: a("step_status_description"), + placement: "bottom-end" + }, { + selector: '[data-sol-discover="download"]', + title: a("step_download_title"), + description: a("step_download_description"), + placement: "bottom-end" + }, { + selector: '[data-sol-discover="user-profile"]', + title: a("step_user-profile_title"), + description: a("step_user-profile_description"), + placement: "bottom-end" + }, { + title: a("step_last_title"), + description: a("step_last_description") + }], + children: e + }) + }) + }, + AM = JSON.parse('{"v":"5.9.0","fr":29.9700012207031,"ip":0,"op":180.00000733155,"w":16,"h":16,"nm":"wifi-off","ddd":0,"assets":[{"id":"comp_0","nm":"wifi-off_export","fr":29.9700012207031,"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Bar","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[8.16,6.619,0],"ix":2,"l":2},"a":{"a":0,"k":[4.162,5.114,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0]],"o":[[0,0],[0,0]],"v":[[-3.412,-4.365],[3.412,4.365]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1.5,"ix":5},"lc":2,"lj":1,"ml":10,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[4.162,5.114],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0.5],"y":[1]},"o":{"x":[0.5],"y":[0]},"t":140,"s":[0]},{"t":150.000006109625,"s":[100]}],"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.5],"y":[1]},"o":{"x":[0.5],"y":[0]},"t":18,"s":[0]},{"t":28.0000011404634,"s":[100]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":0,"op":180.00000733155,"st":0,"bm":0},{"ddd":0,"ind":2,"ty":0,"nm":"Waves 6","refId":"comp_1","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[8,8,0],"ix":2,"l":2},"a":{"a":0,"k":[8,8,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"hasMask":true,"masksProperties":[{"inv":false,"mode":"a","pt":{"a":0,"k":{"i":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"v":[[5.938,0.188],[-5.5,2.875],[2.593,9.624],[4.941,5.621],[2.142,2.005],[3.63,1.404],[12.72,12.599],[16.149,12.425],[18.625,6.812],[21.938,0.188]],"c":true},"ix":1},"o":{"a":0,"k":100,"ix":3},"x":{"a":0,"k":0,"ix":4},"nm":"Mask 1"}],"w":16,"h":16,"ip":20.0000008146167,"op":142.000005783779,"st":0,"bm":0},{"ddd":0,"ind":3,"ty":4,"nm":"Waves 9","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[7.936,6.288,0],"ix":2,"l":2},"a":{"a":0,"k":[9.982,7.286,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[-2.4,0],[-1.681,-1.372]],"o":[[1.7,-1.436],[2.339,0],[0,0]],"v":[[-6.232,1.151],[0.064,-1.151],[6.232,1.044]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1.5,"ix":5},"lc":2,"lj":1,"ml":10,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[9.982,4.901],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0.47],"y":[1]},"o":{"x":[0.53],"y":[0]},"t":149,"s":[0]},{"t":154.000006272549,"s":[100]}],"ix":1},"e":{"a":0,"k":100,"ix":2},"o":{"a":0,"k":0,"ix":3},"m":2,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":142.000005783779,"op":229.000009327361,"st":142.000005783779,"bm":0},{"ddd":0,"ind":4,"ty":4,"nm":"Waves 3","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[7.936,6.288,0],"ix":2,"l":2},"a":{"a":0,"k":[9.982,7.286,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[-2.4,0],[-1.681,-1.372]],"o":[[1.7,-1.436],[2.339,0],[0,0]],"v":[[-6.232,1.151],[0.064,-1.151],[6.232,1.044]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1.5,"ix":5},"lc":2,"lj":1,"ml":10,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[9.982,4.901],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.5],"y":[1]},"o":{"x":[0.5],"y":[0]},"t":12,"s":[0]},{"t":17.0000006924242,"s":[100]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":2,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":0,"op":20.0000008146167,"st":0,"bm":0},{"ddd":0,"ind":5,"ty":0,"nm":"Waves 5","refId":"comp_2","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[8,8,0],"ix":2,"l":2},"a":{"a":0,"k":[8,8,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"hasMask":true,"masksProperties":[{"inv":false,"mode":"a","pt":{"a":0,"k":{"i":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"v":[[1.188,5.5],[2.438,10.875],[6.938,8.281],[4.75,4.906],[6.188,4.25],[13.938,16],[14,11.375],[15.812,6.125],[16,0]],"c":true},"ix":1},"o":{"a":0,"k":100,"ix":3},"x":{"a":0,"k":0,"ix":4},"nm":"Mask 1"}],"w":16,"h":16,"ip":22.0000008960784,"op":144.00000586524,"st":0,"bm":0},{"ddd":0,"ind":6,"ty":4,"nm":"Waves 8","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[7.936,6.288,0],"ix":2,"l":2},"a":{"a":0,"k":[9.982,7.286,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[-1.599,0],[-1.144,-0.948]],"o":[[1.143,-0.945],[1.602,0],[0,0]],"v":[[-4.212,0.755],[-0.003,-0.758],[4.212,0.758]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1.5,"ix":5},"lc":2,"lj":1,"ml":10,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[10.049,7.659],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 2","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":0,"k":100,"ix":2},"o":{"a":0,"k":0,"ix":3},"m":2,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0.47],"y":[1]},"o":{"x":[0.53],"y":[0]},"t":152,"s":[0]},{"t":157.000006394741,"s":[100]}],"ix":1},"e":{"a":0,"k":100,"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":3,"nm":"Trim Paths 2","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":144.00000586524,"op":229.000009327361,"st":144.00000586524,"bm":0},{"ddd":0,"ind":7,"ty":4,"nm":"Waves 2","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[7.936,6.288,0],"ix":2,"l":2},"a":{"a":0,"k":[9.982,7.286,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[-1.599,0],[-1.144,-0.948]],"o":[[1.143,-0.945],[1.602,0],[0,0]],"v":[[-4.212,0.755],[-0.003,-0.758],[4.212,0.758]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1.5,"ix":5},"lc":2,"lj":1,"ml":10,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[10.049,7.659],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 2","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.5],"y":[1]},"o":{"x":[0.5],"y":[0]},"t":8,"s":[0]},{"t":13.0000005295009,"s":[100]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":2,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":0,"op":22.0000008960784,"st":0,"bm":0},{"ddd":0,"ind":8,"ty":0,"nm":"Waves 4","refId":"comp_3","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[8,8,0],"ix":2,"l":2},"a":{"a":0,"k":[8,8,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"hasMask":true,"masksProperties":[{"inv":false,"mode":"a","pt":{"a":0,"k":{"i":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"v":[[2.562,9.125],[4.938,12.5],[9.998,11.721],[6.481,7.588],[7.843,7.154],[14,14.75],[16,0]],"c":true},"ix":1},"o":{"a":0,"k":100,"ix":3},"x":{"a":0,"k":0,"ix":4},"nm":"Mask 1"}],"w":16,"h":16,"ip":24.00000097754,"op":146.000005946702,"st":0,"bm":0},{"ddd":0,"ind":9,"ty":4,"nm":"Waves 7","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[7.936,6.288,0],"ix":2,"l":2},"a":{"a":0,"k":[9.982,7.286,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[-0.804,0],[-0.577,-0.439]],"o":[[0.585,-0.463],[0.78,0],[0,0]],"v":[[-2.102,0.37],[0.026,-0.37],[2.102,0.33]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1.5,"ix":5},"lc":2,"lj":1,"ml":10,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[10.021,10.452],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 3","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":0,"k":100,"ix":2},"o":{"a":0,"k":0,"ix":3},"m":2,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0.47],"y":[1]},"o":{"x":[0.53],"y":[0]},"t":156,"s":[0]},{"t":161.000006557664,"s":[100]}],"ix":1},"e":{"a":0,"k":100,"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":3,"nm":"Trim Paths 2","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":146.000005946702,"op":229.000009327361,"st":146.000005946702,"bm":0},{"ddd":0,"ind":10,"ty":4,"nm":"Waves","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[7.936,6.288,0],"ix":2,"l":2},"a":{"a":0,"k":[9.982,7.286,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[-0.804,0],[-0.577,-0.439]],"o":[[0.585,-0.463],[0.78,0],[0,0]],"v":[[-2.102,0.37],[0.026,-0.37],[2.102,0.33]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1.5,"ix":5},"lc":2,"lj":1,"ml":10,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[10.021,10.452],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 3","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.5],"y":[1]},"o":{"x":[0.5],"y":[0]},"t":4,"s":[0]},{"t":9.00000036657752,"s":[100]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":2,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":0,"op":24.00000097754,"st":0,"bm":0},{"ddd":0,"ind":11,"ty":4,"nm":"Circle","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[8,12.513,0],"ix":2,"l":2},"a":{"a":0,"k":[1.237,1.237,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":0,"s":[0,0,100]},{"i":{"x":[0.49,0.49,0.49],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":5,"s":[100,100,100]},{"i":{"x":[0.49,0.49,0.49],"y":[1,1,1]},"o":{"x":[0.51,0.51,0.51],"y":[0,0,0]},"t":160,"s":[100,100,100]},{"t":166.000006761319,"s":[0,0,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,-0.545],[0.545,0],[0,0.545],[-0.545,0]],"o":[[0,0.545],[-0.545,0],[0,-0.545],[0.545,0]],"v":[[0.987,0],[0,0.987],[-0.987,0],[0,-0.987]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[1.237,1.237],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":180.00000733155,"st":0,"bm":0}]},{"id":"comp_1","nm":"Waves 6","fr":29.9700012207031,"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Waves 6","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[7.936,6.288,0],"ix":2,"l":2},"a":{"a":0,"k":[9.982,7.286,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[-2.4,0],[-1.681,-1.372]],"o":[[1.7,-1.436],[2.339,0],[0,0]],"v":[[-6.232,1.151],[0.064,-1.151],[6.232,1.044]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1.5,"ix":5},"lc":2,"lj":1,"ml":10,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[9.982,4.901],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":0,"k":100,"ix":2},"o":{"a":0,"k":0,"ix":3},"m":2,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":-1.00000004073083,"op":181.000007372281,"st":0,"bm":0}]},{"id":"comp_2","nm":"Waves 5","fr":29.9700012207031,"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Waves 5","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[7.936,6.288,0],"ix":2,"l":2},"a":{"a":0,"k":[9.982,7.286,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[-1.599,0],[-1.144,-0.948]],"o":[[1.143,-0.945],[1.602,0],[0,0]],"v":[[-4.212,0.755],[-0.003,-0.758],[4.212,0.758]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1.5,"ix":5},"lc":2,"lj":1,"ml":10,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[10.049,7.659],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 2","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":0,"k":100,"ix":2},"o":{"a":0,"k":0,"ix":3},"m":2,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":0,"op":180.00000733155,"st":0,"bm":0}]},{"id":"comp_3","nm":"Waves 4","fr":29.9700012207031,"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Waves 4","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[7.936,6.288,0],"ix":2,"l":2},"a":{"a":0,"k":[9.982,7.286,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[-0.804,0],[-0.577,-0.439]],"o":[[0.585,-0.463],[0.78,0],[0,0]],"v":[[-2.102,0.37],[0.026,-0.37],[2.102,0.33]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1.5,"ix":5},"lc":2,"lj":1,"ml":10,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[10.021,10.452],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 3","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":0,"k":100,"ix":2},"o":{"a":0,"k":0,"ix":3},"m":2,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":-3.00000012219251,"op":181.000007372281,"st":0,"bm":0}]}],"layers":[{"ddd":0,"ind":1,"ty":0,"nm":"wifi-off_content","refId":"comp_0","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":60,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":62,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":64,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":66,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":68,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":70,"s":[10]},{"t":72.0000029326201,"s":[100]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[8,8,0],"ix":2,"l":2},"a":{"a":0,"k":[8,8,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"w":16,"h":16,"ip":0,"op":180.00000733155,"st":0,"bm":0}],"markers":[]}'), + PM = () => { + const { + t: e + } = bt("connection"), t = jz((e => e.application)), { + reduceMotion: { + unessentialAnimationsDisabled: n + } + } = Qo(); + return (0, wR.jsx)(Zv, { + title: e("connection_title"), + offset: "large", + placement: "bottom-end", + trigger: (0, wR.jsx)(Is, { + "data-test-id": "connection", + icon: (0, wR.jsx)(us, { + source: n ? _M : AM + }) + }), + open: t.isConnectionPopoverOpened, + onOpenChange: e => { + t.actions.setConnectionPopoverOpened(e) + }, + footer: (0, wR.jsx)(wR.Fragment, { + children: t.connection.mode === xP.ConnectionMode.NO_CONNECTION && (0, wR.jsx)(gs, { + size: "small", + variant: "plain", + loading: !0, + disabled: !0, + children: e("connection_offline_trying_to_reconnect") + }) + }), + children: (0, wR.jsx)(Es, { + vertical: !0, + gap: "100", + children: e("connection_offline_information") + }) + }) + }, + TM = JSON.parse('{"v":"5.9.0","fr":30,"ip":0,"op":90,"w":16,"h":16,"nm":"download - option 2","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":1,"nm":"Dark Royal Blue Solid 1","td":1,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[8,8,0],"ix":2,"l":2},"a":{"a":0,"k":[8,8,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"hasMask":true,"masksProperties":[{"inv":false,"mode":"a","pt":{"a":0,"k":{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[0,0.031],[0,14.5],[16,14.5],[16,0.031]],"c":true},"ix":1},"o":{"a":0,"k":100,"ix":3},"x":{"a":0,"k":0,"ix":4},"nm":"Mask 1"}],"sw":16,"sh":16,"sc":"#0a1d29","ip":0,"op":90,"st":0,"bm":0},{"ddd":0,"ind":2,"ty":4,"nm":"Arrow Outlines","tt":1,"sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":22,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":23,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":30,"s":[0]},{"t":31,"s":[100]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.41,"y":1},"o":{"x":0.01,"y":0},"t":0,"s":[8,6.484,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.75,"y":1},"o":{"x":0.01,"y":0},"t":29,"s":[8,21.484,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.75,"y":1},"o":{"x":0.46,"y":0},"t":30,"s":[8,-5.516,0],"to":[0,0,0],"ti":[0,0,0]},{"t":45,"s":[8,6.484,0]}],"ix":2,"l":2},"a":{"a":0,"k":[3.983,5.734,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-0.398,0],[-0.025,-0.392],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[-0.22,0],[0,-0.414],[0.164,-0.137],[0,0],[0.206,0],[0.135,0.134],[0,0],[0,0.231],[-0.414,0],[-0.138,-0.151],[0,0],[0,0],[0,0]],"o":[[0.398,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0.137,-0.151],[0.414,0],[0,0.231],[0,0],[-0.135,0.135],[-0.206,0],[0,0],[-0.164,-0.137],[0,-0.414],[0.22,0],[0,0],[0,0],[0,0],[0.025,-0.392]],"v":[[0,-5.484],[0.749,-4.781],[0.75,-4.781],[0.75,-4.736],[0.75,-4.734],[0.75,-4.732],[0.75,2.93],[2.427,1.253],[2.983,1.007],[3.733,1.757],[3.464,2.331],[0.528,5.268],[0,5.484],[-0.527,5.268],[-3.464,2.331],[-3.733,1.757],[-2.983,1.007],[-2.427,1.253],[-0.75,2.93],[-0.75,-4.781],[-0.749,-4.781]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[3.983,5.734],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":90,"st":-28,"bm":0},{"ddd":0,"ind":3,"ty":4,"nm":"Base Outlines","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[8,14.25,0],"ix":2,"l":2},"a":{"a":0,"k":[7.25,1,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0.414],[0.414,0],[0,0],[0,-0.414],[-0.414,0]],"o":[[0.414,0],[0,-0.414],[0,0],[-0.414,0],[0,0.414],[0,0]],"v":[[6.25,0.75],[7,0],[6.25,-0.75],[-6.25,-0.75],[-7,0],[-6.25,0.75]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[7.25,1],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":90,"st":0,"bm":0}],"markers":[]}'), + RM = ({ + labelItem: e + }) => { var t; const [n, r] = (0, Ee.useState)(!1), { t: i - } = bt("download"), a = eD(), o = Wj((e => e.installer)), s = Wj((e => e.application)), { + } = bt("download"), a = OL(), o = jz((e => e.installer)), s = jz((e => e.application)), { reduceMotion: { wipeAnimationsDisabled: l, unessentialAnimationsDisabled: c } - } = ts(), u = (0, Ee.useMemo)((() => o.installations.find((e => e.status === YI.InstallationStatus.IN_PROGRESS || e.status === YI.InstallationStatus.PAUSED))), [o.installations]), { + } = Qo(), u = (0, Ee.useMemo)((() => o.installations.find((e => e.status === xP.InstallationStatus.IN_PROGRESS || e.status === xP.InstallationStatus.PAUSED))), [o.installations]), { isOffline: d } = (0, Ee.useMemo)((() => ({ - isOffline: s.connection.mode !== YI.ConnectionMode.ONLINE + isOffline: s.connection.mode !== xP.ConnectionMode.ONLINE })), [s.connection]), p = e => { s.actions.setDownloadPopoverOpened(e) }, h = (0, Ee.useCallback)((e => { var t, n, r, a; - return e.status === YI.InstallationStatus.COMPLETED ? [{ + return e.status === xP.InstallationStatus.COMPLETED ? [{ label: i("download_status"), value: i("download_completed") - }] : e.status === YI.InstallationStatus.WAITING ? [{ + }] : e.status === xP.InstallationStatus.WAITING ? [{ label: i("download_status"), value: i("download_waiting") - }] : e.status === YI.InstallationStatus.CANCELLING ? [{ + }] : e.status === xP.InstallationStatus.CANCELLING ? [{ label: i("download_status"), value: i("download_cancelling") - }] : e.status === YI.InstallationStatus.ERROR ? [{ + }] : e.status === xP.InstallationStatus.ERROR ? [{ label: i("download_status"), value: i("download_error") - }] : !o.progress || e.status !== YI.InstallationStatus.IN_PROGRESS && e.status !== YI.InstallationStatus.PAUSED ? void 0 : o.progress.progressUndeterminate ? [{ + }] : !o.progress || e.status !== xP.InstallationStatus.IN_PROGRESS && e.status !== xP.InstallationStatus.PAUSED ? void 0 : o.progress.progressUndeterminate ? [{ label: i("download_phase"), value: o.progress.currentPhase }] : [{ @@ -62592,57 +66416,57 @@ value: `${o.progress.speed}/s` }, { label: i("download_left"), - value: rP()(Math.max((null !== (t = o.progress.total) && void 0 !== t ? t : 0) - (null !== (n = o.progress.downloaded) && void 0 !== n ? n : 0), 0)) + value: pR()(Math.max((null !== (t = o.progress.total) && void 0 !== t ? t : 0) - (null !== (n = o.progress.downloaded) && void 0 !== n ? n : 0), 0)) }, { label: i("download_files_left"), value: Math.max((null !== (r = o.progress.filesTotal) && void 0 !== r ? r : 0) - (null !== (a = o.progress.filesDone) && void 0 !== a ? a : 0), 0) }] }), [i, o.progress]), f = (0, Ee.useCallback)((e => { var t, n; - return e.status === YI.InstallationStatus.IN_PROGRESS || e.status === YI.InstallationStatus.PAUSED || e.status === YI.InstallationStatus.CANCELLING ? [{ - disabled: e.status === YI.InstallationStatus.CANCELLING || !(null !== (t = o.progress) && void 0 !== t && t.isPausable) || d, - icon: e.status === YI.InstallationStatus.PAUSED ? eT : JP, - label: e.status === YI.InstallationStatus.PAUSED ? i("download_resume") : i("download_pause"), - tooltip: e.status === YI.InstallationStatus.PAUSED ? i("download_resume") : i("download_pause"), - onClick: e.status === YI.InstallationStatus.PAUSED ? () => o.actions.resumeInstallation(e.game) : () => o.actions.pauseInstallation(e.game) + return e.status === xP.InstallationStatus.IN_PROGRESS || e.status === xP.InstallationStatus.PAUSED || e.status === xP.InstallationStatus.CANCELLING ? [{ + disabled: e.status === xP.InstallationStatus.CANCELLING || !(null !== (t = o.progress) && void 0 !== t && t.isPausable) || d, + icon: e.status === xP.InstallationStatus.PAUSED ? fM : hM, + label: e.status === xP.InstallationStatus.PAUSED ? i("download_resume") : i("download_pause"), + tooltip: e.status === xP.InstallationStatus.PAUSED ? i("download_resume") : i("download_pause"), + onClick: e.status === xP.InstallationStatus.PAUSED ? () => o.actions.resumeInstallation(e.game) : () => o.actions.pauseInstallation(e.game) }, { - disabled: e.status === YI.InstallationStatus.CANCELLING || !(null !== (n = o.progress) && void 0 !== n && n.isPausable), - icon: $P, + disabled: e.status === xP.InstallationStatus.CANCELLING || !(null !== (n = o.progress) && void 0 !== n && n.isPausable), + icon: rM, label: i("download_cancel"), tooltip: i("download_cancel"), onClick: () => o.actions.cancelInstallation(e.game) }] : [{ - icon: qP, + icon: iM, label: i("download_remove"), tooltip: i("download_remove"), onClick: () => o.actions.cancelInstallation(e.game) }] }), [null === (t = o.progress) || void 0 === t ? void 0 : t.isPausable, o.actions, d, i]); - return (0, QI.jsx)(Em, { + return (0, wR.jsx)(Zv, { title: i("download_title"), offset: "large", placement: "bottom-end", - footer: (0, QI.jsx)(xs, { + footer: (0, wR.jsx)(gs, { size: "small", variant: "plain", - icon: nT, + icon: gM, onClick: () => (() => { const e = Number(getComputedStyle(document.body).getPropertyValue("--sol-motion-anim-wipe-duration").match(/\d+/)); - if (p(!1), l) return void a(`${XM.SETTINGS}/${XM.SETTINGS_DOWNLOAD}`); + if (p(!1), l) return void a(`${CV.SETTINGS}/${CV.SETTINGS_DOWNLOAD}`); s.actions.setAnimatingAppLayoutWipe("full", !0); const t = setTimeout((() => { - a(`${XM.SETTINGS}/${XM.SETTINGS_DOWNLOAD}`) + a(`${CV.SETTINGS}/${CV.SETTINGS_DOWNLOAD}`) }), e / 2); return () => clearTimeout(t) })(), children: i("download_settings") }), fullWidth: !0, - trigger: (0, QI.jsx)(Rs, { + trigger: (0, wR.jsx)(Is, { "data-test-id": "download", "data-sol-discover": "download", - icon: (0, QI.jsx)(ms, { - source: c ? HP : gT, + icon: (0, wR.jsx)(us, { + source: c ? oM : TM, isPlaying: void 0 !== u && !s.isDownloadPopoverOpened && !n }), label: e, @@ -62653,42 +66477,42 @@ onOpenChange: e => p(e), children: o.installations.length > 0 ? o.installations.map(((e, t) => ((e, t) => { var n; - return (0, QI.jsxs)(QI.Fragment, { - children: [0 !== e && (0, QI.jsx)(pd, { + return (0, wR.jsxs)(wR.Fragment, { + children: [0 !== e && (0, wR.jsx)(sd, { spacing: "100" - }), (0, QI.jsx)(fd, { + }), (0, wR.jsx)(cd, { title: `${t.game.gameName} - ${t.release?t.release.versionLabel+" - ":""}${t.game.channelId}`, subtitle: i(`download_type_${t.type}`), state: t.status, actions: f(t), - progress: t.status === YI.InstallationStatus.IN_PROGRESS && null !== (n = o.progress) && void 0 !== n && n.showProgress ? o.progress.percentage : void 0, + progress: t.status === xP.InstallationStatus.IN_PROGRESS && null !== (n = o.progress) && void 0 !== n && n.showProgress ? o.progress.percentage : void 0, stats: h(t) }, `${t.game.gameId}-${t.game.channelId}`)] }) })(t, e))) : i("download_empty") }) }, - xD = ({ - title: e, - status: t, - label: n - }) => (0, QI.jsxs)(Ps, { + DM = ({ + title: e, + status: t, + label: n + }) => (0, wR.jsxs)(Es, { as: "dl", align: "center", gap: "100", justify: "space-between", - children: [(0, QI.jsx)(gs, { + children: [(0, wR.jsx)(ds, { as: "dt", color: "foreground-weak", variant: "body-m", children: e - }), (0, QI.jsx)(Ed, { + }), (0, wR.jsx)(Qh, { as: "dd", - status: fC(t), + status: MR(t), children: null !== n && void 0 !== n ? n : "-" })] }), - kD = e => ({ + LM = e => ({ status: { is: "", cStateVersion: "", @@ -62747,12 +66571,12 @@ }))) }, checkStatus: async () => { - if (!Wj.getState().status.intervalId) { - await wD(); - const e = setInterval(wD, oC(YI.configuration.requestPollingInterval.status.base, YI.configuration.requestPollingInterval.status.window)); - Wj.setState({ + if (!jz.getState().status.intervalId) { + await NM(); + const e = setInterval(NM, $T(xP.configuration.requestPollingInterval.status.base, xP.configuration.requestPollingInterval.status.window)); + jz.setState({ status: { - ...Wj.getState().status, + ...jz.getState().status, intervalId: e } }) @@ -62761,14 +66585,14 @@ } } }), - wD = async () => { + NM = async () => { const { application: e, user: t, status: n - } = Wj.getState(); - if (t.actions.isLoggedIn() || SD(n.intervalId), !e.isWindowMinimized) { - if (e.actions.isOffline()) return e.actions.setNonOperationalStatus(void 0), void Wj.setState((e => ({ + } = jz.getState(); + if (t.actions.isLoggedIn() || jM(n.intervalId), !e.isWindowMinimized) { + if (e.actions.isOffline()) return e.actions.setNonOperationalStatus(void 0), void jz.setState((e => ({ ...e, status: { ...e.status, @@ -62799,13 +66623,13 @@ } }))); try { - const t = await FP.fetchQuery({ + const t = await Qj.fetchQuery({ queryKey: ["rsiStatus"], - queryFn: async () => ZA.status.getStatus(), + queryFn: async () => oR.status.getStatus(), staleTime: 0 }), - n = null === t || void 0 === t ? void 0 : t.systems.filter((e => (e.name === YI.RSISystemName.PERSISTENTE_UNIVERSE || e.name === YI.RSISystemName.ARENA_COMMANDER) && e.status !== YI.RSISystemStatus.OPERATIONAL)).sort(((e, t) => YI.SystemStatusOrder[e.status.toUpperCase()] - YI.SystemStatusOrder[t.status.toUpperCase()])).map((e => e.status)).shift(); - e.actions.setNonOperationalStatus(n), Wj.setState((e => ({ + n = null === t || void 0 === t ? void 0 : t.systems.filter((e => (e.name === xP.RSISystemName.PERSISTENTE_UNIVERSE || e.name === xP.RSISystemName.ARENA_COMMANDER) && e.status !== xP.RSISystemStatus.OPERATIONAL)).sort(((e, t) => xP.SystemStatusOrder[e.status.toUpperCase()] - xP.SystemStatusOrder[t.status.toUpperCase()])).map((e => e.status)).shift(); + e.actions.setNonOperationalStatus(n), jz.setState((e => ({ ...e, status: { ...e.status, @@ -62817,9 +66641,9 @@ console.error("ERROR", r) } } - }, SD = e => { - const t = Wj.getState().application; - clearInterval(e), t.actions.setNonOperationalStatus(void 0), Wj.setState((e => ({ + }, jM = e => { + const t = jz.getState().application; + clearInterval(e), t.actions.setNonOperationalStatus(void 0), jz.setState((e => ({ ...e, status: { ...e.status, @@ -62849,32 +66673,32 @@ intervalId: "" } }))) - }, ED = JSON.parse('{"v":"5.9.0","fr":30,"ip":0,"op":120,"w":16,"h":16,"nm":"icon_status_animated","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"i outlines - Orion style","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":50,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":52.002,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":54.004,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":56.006,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":58.008,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":60.01,"s":[10]},{"t":62.01171875,"s":[100]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[8,8,0],"ix":2,"l":2},"a":{"a":0,"k":[1,4,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-0.414,0],[0,0.414],[0,0],[0.414,0],[0,-0.414],[0,0]],"o":[[0.414,0],[0,0],[0,-0.414],[-0.414,0],[0,0],[0,0.414]],"v":[[0,2.625],[0.75,1.875],[0.75,-1.875],[0,-2.625],[-0.75,-1.875],[-0.75,1.875]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[1,5.125],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0.414],[-0.414,0],[0,-0.414],[0.414,0]],"o":[[0,-0.414],[0.414,0],[0,0.414],[-0.414,0]],"v":[[-0.75,0],[0,-0.75],[0.75,0],[0,0.75]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[1,1],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 2","np":2,"cix":2,"bm":0,"ix":2,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":6870.87087087087,"st":0,"bm":0},{"ddd":0,"ind":3,"ty":4,"nm":"Cercle Outlines 2","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":50.021,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":52.022,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":54.024,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":56.026,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":58.028,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":60.03,"s":[10]},{"t":62.0322265625,"s":[100]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[8,8,0],"ix":2,"l":2},"a":{"a":0,"k":[8.86,8.86,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[3.512,0],[0,-3.513],[-3.513,0],[0,3.512]],"o":[[-3.513,0],[0,3.512],[3.512,0],[0,-3.513]],"v":[[0,-6.36],[-6.36,0],[0,6.36],[6.36,0]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1.5,"ix":5},"lc":1,"lj":1,"ml":10,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[8.86,8.86],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0.985],"y":[2.857]},"o":{"x":[0.159],"y":[0]},"t":30,"s":[100]},{"i":{"x":[0.735],"y":[3.042]},"o":{"x":[0.143],"y":[3.552]},"t":60.03,"s":[100]},{"t":90.060546875,"s":[100]}],"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.709],"y":[1.164]},"o":{"x":[0.474],"y":[0.066]},"t":30,"s":[0]},{"i":{"x":[0.602],"y":[0.921]},"o":{"x":[0.314],"y":[0.13]},"t":60.03,"s":[78.782]},{"t":82,"s":[0]}],"ix":2},"o":{"a":1,"k":[{"i":{"x":[0.472],"y":[0.887]},"o":{"x":[0.51],"y":[0.095]},"t":30,"s":[-360]},{"t":90.060546875,"s":[720]}],"ix":3},"m":1,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":0,"op":120,"st":0,"bm":0}],"markers":[]}'), OD = ({ - labelItem: e - }) => { + }, MM = JSON.parse('{"v":"5.9.0","fr":30,"ip":0,"op":120,"w":16,"h":16,"nm":"icon_status_animated","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"i outlines - Orion style","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":50,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":52.002,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":54.004,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":56.006,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":58.008,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":60.01,"s":[10]},{"t":62.01171875,"s":[100]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[8,8,0],"ix":2,"l":2},"a":{"a":0,"k":[1,4,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-0.414,0],[0,0.414],[0,0],[0.414,0],[0,-0.414],[0,0]],"o":[[0.414,0],[0,0],[0,-0.414],[-0.414,0],[0,0],[0,0.414]],"v":[[0,2.625],[0.75,1.875],[0.75,-1.875],[0,-2.625],[-0.75,-1.875],[-0.75,1.875]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[1,5.125],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0.414],[-0.414,0],[0,-0.414],[0.414,0]],"o":[[0,-0.414],[0.414,0],[0,0.414],[-0.414,0]],"v":[[-0.75,0],[0,-0.75],[0.75,0],[0,0.75]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[1,1],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 2","np":2,"cix":2,"bm":0,"ix":2,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":6870.87087087087,"st":0,"bm":0},{"ddd":0,"ind":3,"ty":4,"nm":"Cercle Outlines 2","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":50.021,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":52.022,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":54.024,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":56.026,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":58.028,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":60.03,"s":[10]},{"t":62.0322265625,"s":[100]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[8,8,0],"ix":2,"l":2},"a":{"a":0,"k":[8.86,8.86,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[3.512,0],[0,-3.513],[-3.513,0],[0,3.512]],"o":[[-3.513,0],[0,3.512],[3.512,0],[0,-3.513]],"v":[[0,-6.36],[-6.36,0],[0,6.36],[6.36,0]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1.5,"ix":5},"lc":1,"lj":1,"ml":10,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[8.86,8.86],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0.985],"y":[2.857]},"o":{"x":[0.159],"y":[0]},"t":30,"s":[100]},{"i":{"x":[0.735],"y":[3.042]},"o":{"x":[0.143],"y":[3.552]},"t":60.03,"s":[100]},{"t":90.060546875,"s":[100]}],"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.709],"y":[1.164]},"o":{"x":[0.474],"y":[0.066]},"t":30,"s":[0]},{"i":{"x":[0.602],"y":[0.921]},"o":{"x":[0.314],"y":[0.13]},"t":60.03,"s":[78.782]},{"t":82,"s":[0]}],"ix":2},"o":{"a":1,"k":[{"i":{"x":[0.472],"y":[0.887]},"o":{"x":[0.51],"y":[0.095]},"t":30,"s":[-360]},{"t":90.060546875,"s":[720]}],"ix":3},"m":1,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":0,"op":120,"st":0,"bm":0}],"markers":[]}'), FM = ({ + labelItem: e + }) => { const [t, n] = (0, Ee.useState)(!1), { t: r - } = bt("status"), i = Wj((e => e.status)), a = Wj((e => e.application)), { + } = bt("status"), i = jz((e => e.status)), a = jz((e => e.application)), { reduceMotion: { unessentialAnimationsDisabled: o } - } = ts(), s = i.systems && i.systems.length > 0, l = a.connection.mode === YI.ConnectionMode.NO_CONNECTION, c = (0, Ee.useMemo)((() => { - if (!t && !a.isStatusPopoverOpened && i.summaryStatus && i.summaryStatus !== YI.RSISystemStatus.OPERATIONAL) return "status-" + fC(i.summaryStatus) + } = Qo(), s = i.systems && i.systems.length > 0, l = a.connection.mode === xP.ConnectionMode.NO_CONNECTION, c = (0, Ee.useMemo)((() => { + if (!t && !a.isStatusPopoverOpened && i.summaryStatus && i.summaryStatus !== xP.RSISystemStatus.OPERATIONAL) return "status-" + MR(i.summaryStatus) }), [t, a.isStatusPopoverOpened, i.summaryStatus]); return (0, Ee.useEffect)((() => { - wD() - }), [a.connection.mode]), (0, QI.jsx)(Em, { + NM() + }), [a.connection.mode]), (0, wR.jsx)(Zv, { title: r("status_title"), offset: "large", placement: "bottom-end", fullWidth: !0, - trigger: (0, QI.jsx)(Rs, { + trigger: (0, wR.jsx)(Is, { "data-test-id": "status", "data-sol-discover": "status", - icon: (0, QI.jsx)(ms, { + icon: (0, wR.jsx)(us, { color: c, - source: o || l ? YP : ED, - isPlaying: !a.isStatusPopoverOpened && !t && i.summaryStatus !== YI.RSISystemStatus.OPERATIONAL + source: o || l ? lM : MM, + isPlaying: !a.isStatusPopoverOpened && !t && i.summaryStatus !== xP.RSISystemStatus.OPERATIONAL }), label: e, onMouseEnter: () => n(!0), @@ -62884,26 +66708,26 @@ onOpenChange: e => { a.actions.setStatusPopoverOpened(e) }, - footer: (0, QI.jsxs)(QI.Fragment, { - children: [(0, QI.jsx)(xs, { + footer: (0, wR.jsxs)(wR.Fragment, { + children: [(0, wR.jsx)(gs, { external: !0, - href: YI.configuration.statusUrl, + href: xP.configuration.statusUrl, size: "small", - endIcon: XP, + endIcon: pM, variant: "plain", children: r("status_more_information") - }), (0, QI.jsx)(gs, { + }), (0, wR.jsx)(ds, { color: "foreground-weak", variant: "body-xs", children: i.lastRequestDate ? r("status_last_updated", { - time: sC(i.lastRequestDate, "relative") + time: PR(i.lastRequestDate, "relative") }) : r("status_last_updated_empty") })] }), - children: (0, QI.jsx)(Ps, { + children: (0, wR.jsx)(Es, { vertical: !0, gap: "100", - children: s ? i.systems.map((e => (0, QI.jsx)(xD, { + children: s ? i.systems.map((e => (0, wR.jsx)(DM, { title: e.name, status: e.status, label: r("status_" + e.status) @@ -62911,16 +66735,16 @@ }) }) }; - class ID extends Error {} - const CD = async (e, t, n = !0) => { - const r = Wj.getState().user; + class zM extends Error {} + const VM = async (e, t, n = !0) => { + const r = jz.getState().user; if (!r.identity) throw new Error("Identification of the user cannot be retrieved"); try { const n = await r.actions.getSession(e), - i = await FP.fetchQuery(((e, t, n) => ({ + i = await Qj.fetchQuery(((e, t, n) => ({ queryKey: [`gameToken-${e}-${t}-${n.value}`], - queryFn: async () => ZA.games.getGameToken(e, t, n), - staleTime: aC.day + queryFn: async () => oR.games.getGameToken(e, t, n), + staleTime: GT.day }))(e, t, n)); return { username: r.identity.username, @@ -62929,16 +66753,16 @@ gameToken: i } } catch (i) { - if (i instanceof rA && n) return r.actions.clearSession(e), CD(e, t, !1); + if (i instanceof uT && n) return r.actions.clearSession(e), VM(e, t, !1); throw i } - }, AD = (e, t, n) => { + }, UM = (e, t, n) => { const r = e.find((({ - id: e - }) => e === t.gameId)), + id: e + }) => e === t.gameId)), i = null === r || void 0 === r ? void 0 : r.channels.find((({ - id: e - }) => e === t.channelId)); + id: e + }) => e === t.channelId)); if (!r || !i) return e; const a = r.channels.filter((e => e.id !== t.channelId)), o = { @@ -62949,53 +66773,54 @@ }] }; return [...e.filter((e => e.id !== t.gameId)), o] - }, PD = e => ({ + }, BM = e => ({ ...e, logo: void 0, logoWide: void 0, logoAnimation: void 0, bgImage: void 0, bgVideo: void 0 - }), TD = async e => { + }), GM = async e => { try { - var t, n, r, i, a, o, s, l, c; - const u = Wj.getState().settings, - { - gameId: d, - channelId: p, - gameName: h, - channelName: f, - platformId: m - } = e, - g = await FP.fetchQuery(fP(d, p)), - v = await u.actions.getChannelGameSettings({ - platformId: m, - gameId: d, - gameName: h, - channelId: p, - channelName: f - }); + var t, n, r, i, a, o, s, l, c, u, d; + const { + storage: p, + settings: h, + library: f + } = jz.getState(), { + gameId: m, + channelId: g, + gameName: v, + channelName: y, + platformId: _ + } = e, b = f.actions.getInstalledChannel(e), x = await Qj.fetchQuery(Fj(m, g)), w = await h.actions.getChannelGameSettings({ + platformId: _, + gameId: m, + gameName: v, + channelId: g, + channelName: y + }); return { - ...g, - gameId: d, - gameName: h, - channelId: p, - channelName: f, - platformId: m, - libraryFolder: u.library.defaultLibraryFolder, - servicesEndpoint: null !== (t = null === v || void 0 === v ? void 0 : v.servicesEndpoint) && void 0 !== t ? t : g.servicesEndpoint, - installDir: null !== (n = null === v || void 0 === v ? void 0 : v.installDir) && void 0 !== n ? n : g.installDir, - eacSandbox: null !== (r = null === v || void 0 === v ? void 0 : v.eacSandbox) && void 0 !== r && r, - network: null !== (i = null === v || void 0 === v ? void 0 : v.network) && void 0 !== i ? i : g.network, - port: null !== (a = null !== (o = null === v || void 0 === v ? void 0 : v.port) && void 0 !== o ? o : g.universePort) && void 0 !== a ? a : 8e3, - hostname: null !== (s = null === v || void 0 === v ? void 0 : v.hostname) && void 0 !== s ? s : g.universeHost, - executable: null !== (l = null === v || void 0 === v ? void 0 : v.executable) && void 0 !== l ? l : g.executable, - launchOptions: null !== (c = null === v || void 0 === v ? void 0 : v.launchOptions) && void 0 !== c ? c : g.launchOptions + ...x, + gameId: m, + gameName: v, + channelId: g, + channelName: y, + platformId: _, + libraryFolder: null !== (t = null !== (n = null === b || void 0 === b ? void 0 : b.libraryFolder) && void 0 !== n ? n : null === w || void 0 === w ? void 0 : w.libraryFolder) && void 0 !== t ? t : p.defaultLibraryFolder, + servicesEndpoint: null !== (r = null === w || void 0 === w ? void 0 : w.servicesEndpoint) && void 0 !== r ? r : x.servicesEndpoint, + installDir: null !== (i = null === w || void 0 === w ? void 0 : w.installDir) && void 0 !== i ? i : x.installDir, + eacSandbox: null !== (a = null === w || void 0 === w ? void 0 : w.eacSandbox) && void 0 !== a && a, + network: null !== (o = null === w || void 0 === w ? void 0 : w.network) && void 0 !== o ? o : x.network, + port: null !== (s = null !== (l = null === w || void 0 === w ? void 0 : w.port) && void 0 !== l ? l : x.universePort) && void 0 !== s ? s : 8e3, + hostname: null !== (c = null === w || void 0 === w ? void 0 : w.hostname) && void 0 !== c ? c : x.universeHost, + executable: null !== (u = null === w || void 0 === w ? void 0 : w.executable) && void 0 !== u ? u : x.executable, + launchOptions: null !== (d = null === w || void 0 === w ? void 0 : w.launchOptions) && void 0 !== d ? d : x.launchOptions } - } catch (u) { - throw new ID("We could not get any information about the game") + } catch (p) { + throw new zM("We could not get any information about the game") } - }, RD = (e, t) => t > e, DD = { + }, $M = (e, t) => t > e, qM = { LIVE: 20, PTU: 19, SHADOW: 18, @@ -63007,20 +66832,20 @@ THE_OCHO: 12, STARBASE: 11, SQ42: 10 - }, LD = (e, t) => (DD[t] || 0) - (DD[e] || 0), ND = "LIVE", jD = { + }, WM = (e, t) => (qM[t] || 0) - (qM[e] || 0), HM = "LIVE", KM = { platformId: "prod", gameId: "SC", gameName: "Star Citizen", - channelId: ND, + channelId: HM, channelName: "Live Release" - }, MD = (e = [], t = []) => ({ + }, YM = (e = [], t = []) => ({ availableGames: t, installedGames: e, - gameSelected: jD.gameId, - channelSelected: jD - }), FD = (e, t) => ({ + gameSelected: KM.gameId, + channelSelected: KM + }), QM = (e, t) => ({ library: { - ...MD(), + ...YM(), actions: { initializeLibrary: async () => { const t = await window.launcherAPI.store.getValueFromStore("library.installed"), @@ -63028,14 +66853,14 @@ e((e => ({ library: { ...e.library, - ...MD(t, n) + ...YM(t, n) } }))) }, setAvailableGames: t => { var n; - const r = null !== (n = YI.configuration.assets.games) && void 0 !== n ? n : [], - i = YI.configuration.assets.directory, + const r = null !== (n = xP.configuration.assets.games) && void 0 !== n ? n : [], + i = xP.configuration.assets.directory, a = t.map((e => { const t = r.find((t => t.id === e.id)); return { @@ -63075,14 +66900,14 @@ const { availableGames: r } = t().library, i = r.find((t => t.id === e)); - return (null !== (n = null === i || void 0 === i ? void 0 : i.channels) && void 0 !== n ? n : []).sort(((e, t) => LD(e.id, t.id))) + return (null !== (n = null === i || void 0 === i ? void 0 : i.channels) && void 0 !== n ? n : []).sort(((e, t) => WM(e.id, t.id))) }, getInstalledChannelsSorted: e => { var n; const { installedGames: r } = t().library, i = r.find((t => t.id === e)); - return (null !== (n = null === i || void 0 === i ? void 0 : i.channels) && void 0 !== n ? n : []).sort(((e, t) => LD(e.id, t.id))) + return (null !== (n = null === i || void 0 === i ? void 0 : i.channels) && void 0 !== n ? n : []).sort(((e, t) => WM(e.id, t.id))) }, getAvailableGamesChannelsWeightSorted: () => { const { @@ -63090,7 +66915,7 @@ } = t().library; return e.map((e => ({ ...e, - channels: e.channels.sort(((e, t) => LD(e.id, t.id))) + channels: e.channels.sort(((e, t) => WM(e.id, t.id))) }))) }, getAvailableChannel: e => { @@ -63114,54 +66939,57 @@ var r, i, a, o; const { library: s - } = t(), l = null !== (r = s.availableGames.find((({ - id: e - }) => e === n.gameId))) && void 0 !== r ? r : null, c = null === l || void 0 === l ? void 0 : l.channels.find((({ - id: e, - platformId: t - }) => e === n.channelId && t === n.platformId)); - if (!c || !l) return; - const u = null !== (i = s.installedGames.find((({ - id: e - }) => e === n.gameId))) && void 0 !== i ? i : null, - d = null !== (a = null === u || void 0 === u ? void 0 : u.channels.find((({ - id: e - }) => e === n.channelId))) && void 0 !== a ? a : null; - if (d) return; - const p = { - ...null !== u && void 0 !== u ? u : l, - channels: [...null !== (o = null === u || void 0 === u ? void 0 : u.channels) && void 0 !== o ? o : [], { - ...c, - status: YI.GameChannelStatus.AVAILABLE + } = t(), { + libraryFolder: l + } = await GM(n), c = null !== (r = s.availableGames.find((({ + id: e + }) => e === n.gameId))) && void 0 !== r ? r : null, u = null === c || void 0 === c ? void 0 : c.channels.find((({ + id: e, + platformId: t + }) => e === n.channelId && t === n.platformId)); + if (!u || !c) return; + const d = null !== (i = s.installedGames.find((({ + id: e + }) => e === n.gameId))) && void 0 !== i ? i : null, + p = null !== (a = null === d || void 0 === d ? void 0 : d.channels.find((({ + id: e + }) => e === n.channelId))) && void 0 !== a ? a : null; + if (p) return; + const h = { + ...null !== d && void 0 !== d ? d : c, + channels: [...null !== (o = null === d || void 0 === d ? void 0 : d.channels) && void 0 !== o ? o : [], { + ...u, + libraryFolder: l, + status: xP.GameChannelStatus.AVAILABLE }] }; e((e => ({ library: { ...e.library, - installedGames: [...e.library.installedGames.filter((e => e.id !== p.id)), p] + installedGames: [...e.library.installedGames.filter((e => e.id !== h.id)), h] } }))) }, saveInstalledGameChannel: async n => { const { library: r - } = t(), i = AD(r.installedGames, n, YI.GameChannelStatus.INSTALLED); + } = t(), i = UM(r.installedGames, n, xP.GameChannelStatus.INSTALLED); e((e => ({ library: { ...e.library, installedGames: i } - }))), window.launcherAPI.store.setValueToStore("library.installed", i.map(PD)) + }))), window.launcherAPI.store.setValueToStore("library.installed", i.map(BM)) }, - removeInstalledGameChannel: async n => { + removeInstalledGameChannel: n => { var r, i; const { library: a } = t(), o = null !== (r = a.installedGames.find((({ - id: e - }) => e === n.gameId))) && void 0 !== r ? r : null, s = null !== (i = null === o || void 0 === o ? void 0 : o.channels.find((({ - id: e - }) => e === n.channelId))) && void 0 !== i ? i : null; + id: e + }) => e === n.gameId))) && void 0 !== r ? r : null, s = null !== (i = null === o || void 0 === o ? void 0 : o.channels.find((({ + id: e + }) => e === n.channelId))) && void 0 !== i ? i : null; if (!o || !s) return; const l = { ...o, @@ -63181,7 +67009,7 @@ soundSystem: i, dialog: a } = t(), o = r.actions.getInstalledChannel(n); - if (!uC(r.channelSelected.gameId, r.availableGames) || !o) return; + if (!DR(r.channelSelected.gameId, r.availableGames) || !o) return; if (await window.launcherAPI.game.isGameProcessRunning()) await t().dialog.actions.showAcknowledgeDialogErrorOccured({ title: xt.t("error_launch_game_running_title", { ns: "errors" @@ -63191,9 +67019,9 @@ }) }); else try { - const t = await TD(n); - if (RD(o.version, t.version)) { - const t = AD(r.installedGames, n, YI.GameChannelStatus.UPDATE_AVAILABLE); + const t = await GM(n); + if ($M(o.version, t.version)) { + const t = UM(r.installedGames, n, xP.GameChannelStatus.UPDATE_AVAILABLE); return e((e => ({ library: { ...e.library, @@ -63201,9 +67029,9 @@ } }))), window.launcherAPI.store.setValueToStore("library.installed", t), void await a.actions.showGameChannelUpdateAvailableDialog(n) } - if (!await dP(n.gameId, n.channelId)) return; - const s = await CD(n.platformId, n.gameId), - l = cC(), + if (!await bR(n.gameId, n.channelId)) return; + const s = await VM(n.platformId, n.gameId), + l = RR(), c = { ...t, libraryFolder: t.libraryFolder, @@ -63213,37 +67041,37 @@ }; i.actions.changeVolume(0, 2e3), l.window.setMinimizeWindow(), l.game.launchGame(c) } catch (s) { - if (window.launcherAPI.log.error(`Not able to launch the game : ${s}`), s instanceof mA) return void await a.actions.showAcknowledgeDialogErrorOccured({ + if (window.launcherAPI.log.error(`Not able to launch the game : ${s}`), s instanceof wT) return void await a.actions.showAcknowledgeDialogErrorOccured({ title: xt.t("error_launch_account_not_found_title", { ns: "errors" }), - content: (0, QI.jsxs)(Ps, { + content: (0, wR.jsxs)(Es, { gap: "100", vertical: !0, - children: [(0, QI.jsx)(gs, { - children: (0, QI.jsx)(ft, { + children: [(0, wR.jsx)(ds, { + children: (0, wR.jsx)(ft, { i18nKey: "error_launch_account_not_found_content", t: xt.t, ns: "errors", - components: [(0, QI.jsx)(am, { - href: YI.configuration.copyPTUAccountSupportUrl, + components: [(0, wR.jsx)(Pv, { + href: xP.configuration.copyPTUAccountSupportUrl, external: !0 })] }) - }), (0, QI.jsx)(gs, { - children: (0, QI.jsx)(ft, { + }), (0, wR.jsx)(ds, { + children: (0, wR.jsx)(ft, { i18nKey: "error_report_bug", t: xt.t, ns: "errors", - components: [(0, QI.jsx)(am, { - href: YI.configuration.issueCouncilUrl, + components: [(0, wR.jsx)(Pv, { + href: xP.configuration.issueCouncilUrl, external: !0 - }), (0, QI.jsx)(am, { - href: YI.configuration.filesSupportUrl, + }), (0, wR.jsx)(Pv, { + href: xP.configuration.filesSupportUrl, external: !0 })] }) - }), (0, QI.jsx)(gs, { + }), (0, wR.jsx)(ds, { children: xt.t("error_installer_error_code", { code: s.code, ns: "errors" @@ -63251,31 +67079,31 @@ })] }) }); - if (s instanceof ID) return void await a.actions.showAcknowledgeDialogErrorOccured({ + if (s instanceof zM) return void await a.actions.showAcknowledgeDialogErrorOccured({ title: xt.t("error_launch_check_update_unavailable_title", { ns: "errors" }), - content: (0, QI.jsxs)(Ps, { + content: (0, wR.jsxs)(Es, { gap: "100", vertical: !0, - children: [(0, QI.jsx)(gs, { + children: [(0, wR.jsx)(ds, { children: xt.t("error_launch_check_update_unavailable_content", { ns: "errors" }) - }), (0, QI.jsx)(gs, { - children: (0, QI.jsx)(ft, { + }), (0, wR.jsx)(ds, { + children: (0, wR.jsx)(ft, { i18nKey: "error_report_bug", t: xt.t, ns: "errors", - components: [(0, QI.jsx)(am, { - href: YI.configuration.issueCouncilUrl, + components: [(0, wR.jsx)(Pv, { + href: xP.configuration.issueCouncilUrl, external: !0 - }), (0, QI.jsx)(am, { - href: YI.configuration.filesSupportUrl, + }), (0, wR.jsx)(Pv, { + href: xP.configuration.filesSupportUrl, external: !0 })] }) - }), (0, QI.jsx)(gs, { + }), (0, wR.jsx)(ds, { children: xt.t("error_installer_error_code", { code: "6004", ns: "errors" @@ -63283,22 +67111,22 @@ })] }) }); - await Wj.getState().dialog.actions.showAcknowledgeDialogErrorOccured({ + await jz.getState().dialog.actions.showAcknowledgeDialogErrorOccured({ title: xt.t("error_launch_unknown_title", { ns: "errors" }), - content: (0, QI.jsxs)(Ps, { + content: (0, wR.jsxs)(Es, { gap: "100", vertical: !0, - children: [(0, QI.jsx)(gs, { - children: (0, QI.jsx)(ft, { + children: [(0, wR.jsx)(ds, { + children: (0, wR.jsx)(ft, { i18nKey: "error_launch_unknown_content", t: xt.t, ns: "errors" }) - }), (0, QI.jsx)(gs, { + }), (0, wR.jsx)(ds, { children: xt.t("error_installer_error_code", { - code: YI.LauncherSpecificLaunchErrorCodes.ERR_LAUNCH_UNKNOWN, + code: xP.LauncherSpecificLaunchErrorCodes.ERR_LAUNCH_UNKNOWN, ns: "errors" }) })] @@ -63318,7 +67146,7 @@ }, library: { ...e.library, - installedGames: AD(e.library.installedGames, t, YI.GameChannelStatus.RUNNING) + installedGames: UM(e.library.installedGames, t, xP.GameChannelStatus.RUNNING) } }))) }, @@ -63341,12 +67169,12 @@ }, library: { ...e.library, - installedGames: AD(e.library.installedGames, a, YI.GameChannelStatus.INSTALLED) + installedGames: UM(e.library.installedGames, a, xP.GameChannelStatus.INSTALLED) } }))), r.actions.unmute(), window.launcherAPI.window.setRestoreWindow(); - const o = (0, YI.serializerLaunchErrors)(n); - await eP((e => { - const t = Wj.getState().installer, + const o = (0, xP.serializerLaunchErrors)(n); + await cR((e => { + const t = jz.getState().installer, { gameId: n, platformId: r, @@ -63362,24 +67190,24 @@ channelName: o }; switch (!0) { - case e instanceof YI.NoGameFilesError: + case e instanceof xP.NoGameFilesError: return { handler: { - type: JA.DISPLAY_WARNING_DIALOG, + type: lR.DISPLAY_WARNING_DIALOG, args: { title: xt.t("error_launch_no_game_files_title", { ns: "errors" }), - content: (0, QI.jsxs)(Ps, { + content: (0, wR.jsxs)(Es, { gap: "100", vertical: !0, - children: [(0, QI.jsx)(gs, { - children: (0, QI.jsx)(ft, { + children: [(0, wR.jsx)(ds, { + children: (0, wR.jsx)(ft, { i18nKey: "error_launch_no_game_files_content", t: xt.t, ns: "errors" }) - }), (0, QI.jsx)(gs, { + }), (0, wR.jsx)(ds, { children: xt.t("error_installer_error_code", { code: e.code, ns: "errors" @@ -63387,7 +67215,7 @@ })] }), primaryCallback: async () => { - t.actions.addInstallationToQueue(s, YI.InstallationType.VERIFY) + t.actions.addInstallationToQueue(s, xP.InstallationType.VERIFY) }, primaryLabel: xt.t("dialog_action_verify", { ns: "dialog" @@ -63395,24 +67223,24 @@ } }, error: e }; - case e instanceof YI.EACError: + case e instanceof xP.EACError: return { handler: { - type: JA.DISPLAY_WARNING_DIALOG, + type: lR.DISPLAY_WARNING_DIALOG, args: { title: xt.t("error_launch_EAC_title", { ns: "errors" }), - content: (0, QI.jsxs)(Ps, { + content: (0, wR.jsxs)(Es, { gap: "100", vertical: !0, - children: [(0, QI.jsx)(gs, { - children: (0, QI.jsx)(ft, { + children: [(0, wR.jsx)(ds, { + children: (0, wR.jsx)(ft, { i18nKey: "error_launch_EAC_content", t: xt.t, ns: "errors" }) - }), (0, QI.jsx)(gs, { + }), (0, wR.jsx)(ds, { children: xt.t("error_installer_error_code", { code: e.code, ns: "errors" @@ -63420,7 +67248,7 @@ })] }), primaryCallback: async () => { - t.actions.addInstallationToQueue(s, YI.InstallationType.VERIFY) + t.actions.addInstallationToQueue(s, xP.InstallationType.VERIFY) }, primaryLabel: xt.t("dialog_action_verify", { ns: "dialog" @@ -63428,48 +67256,48 @@ } }, error: e }; - case e instanceof YI.GameCrashError: + case e instanceof xP.GameCrashError: return { handler: { - type: JA.DISPLAY_WARNING_DIALOG, + type: lR.DISPLAY_WARNING_DIALOG, args: { title: xt.t("error_launch_game_crash_title", { game: a, ns: "errors" }), - content: (0, QI.jsxs)(Ps, { + content: (0, wR.jsxs)(Es, { gap: "100", vertical: !0, - children: [(0, QI.jsxs)(Ps, { + children: [(0, wR.jsxs)(Es, { gap: "0", vertical: !0, - children: [(0, QI.jsx)(gs, { - children: (0, QI.jsx)(ft, { + children: [(0, wR.jsx)(ds, { + children: (0, wR.jsx)(ft, { i18nKey: "error_launch_game_crash_content_1", t: xt.t, ns: "errors" }) - }), (0, QI.jsx)(gs, { - children: (0, QI.jsx)(ft, { + }), (0, wR.jsx)(ds, { + children: (0, wR.jsx)(ft, { i18nKey: "error_launch_game_crash_content_2", t: xt.t, ns: "errors" }) })] - }), (0, QI.jsx)(gs, { - children: (0, QI.jsx)(ft, { + }), (0, wR.jsx)(ds, { + children: (0, wR.jsx)(ft, { i18nKey: "error_report_bug", t: xt.t, ns: "errors", - components: [(0, QI.jsx)(am, { - href: YI.configuration.issueCouncilUrl, + components: [(0, wR.jsx)(Pv, { + href: xP.configuration.issueCouncilUrl, external: !0 - }), (0, QI.jsx)(am, { - href: YI.configuration.filesSupportUrl, + }), (0, wR.jsx)(Pv, { + href: xP.configuration.filesSupportUrl, external: !0 })] }) - }), (0, QI.jsx)(gs, { + }), (0, wR.jsx)(ds, { children: xt.t("error_game_error_code", { code: e.message, ns: "errors" @@ -63477,7 +67305,7 @@ })] }), primaryCallback: async () => { - t.actions.addInstallationToQueue(s, YI.InstallationType.VERIFY) + t.actions.addInstallationToQueue(s, xP.InstallationType.VERIFY) }, primaryLabel: xt.t("dialog_action_verify", { ns: "dialog" @@ -63488,32 +67316,32 @@ default: return { handler: { - type: JA.DISPLAY_WARNING_DIALOG, + type: lR.DISPLAY_WARNING_DIALOG, args: { title: xt.t("error_launch_unknown_title", { ns: "errors" }), - content: (0, QI.jsxs)(Ps, { + content: (0, wR.jsxs)(Es, { gap: "100", vertical: !0, - children: [(0, QI.jsx)(gs, { + children: [(0, wR.jsx)(ds, { children: xt.t("error_launch_unknown_content", { ns: "errors" }) - }), (0, QI.jsx)(gs, { - children: (0, QI.jsx)(ft, { + }), (0, wR.jsx)(ds, { + children: (0, wR.jsx)(ft, { i18nKey: "error_report_bug", t: xt.t, ns: "errors", - components: [(0, QI.jsx)(am, { - href: YI.configuration.issueCouncilUrl, + components: [(0, wR.jsx)(Pv, { + href: xP.configuration.issueCouncilUrl, external: !0 - }), (0, QI.jsx)(am, { - href: YI.configuration.filesSupportUrl, + }), (0, wR.jsx)(Pv, { + href: xP.configuration.filesSupportUrl, external: !0 })] }) - }), (0, QI.jsx)(gs, { + }), (0, wR.jsx)(ds, { children: xt.t("error_launch_error_code", { code: e.code, ns: "errors" @@ -63521,7 +67349,7 @@ })] }), primaryCallback: async () => { - t.actions.addInstallationToQueue(s, YI.InstallationType.VERIFY) + t.actions.addInstallationToQueue(s, xP.InstallationType.VERIFY) }, primaryLabel: xt.t("dialog_action_verify", { ns: "dialog" @@ -63543,7 +67371,7 @@ }, library: { ...e.library, - installedGames: AD(e.library.installedGames, n, YI.GameChannelStatus.INSTALLED) + installedGames: UM(e.library.installedGames, n, xP.GameChannelStatus.INSTALLED) } }))), r.actions.unmute(), window.launcherAPI.window.setRestoreWindow() }, @@ -63551,20 +67379,20 @@ try { const { library: n - } = t(), r = await FP.fetchQuery(hP()); + } = t(), r = await Qj.fetchQuery(Mj()); n.actions.setAvailableGames(r); const i = e => e.channels.map((t => { const n = null === r || void 0 === r ? void 0 : r.find((({ - id: t - }) => t === e.id)), + id: t + }) => t === e.id)), i = null === n || void 0 === n ? void 0 : n.channels.find((({ - id: e - }) => e === t.id)); - return i && RD(t.version, i.version) ? { + id: e + }) => e === t.id)); + return i && $M(t.version, i.version) ? { ...t, versionLabel: i.versionLabel, version: i.version, - status: YI.GameChannelStatus.UPDATE_AVAILABLE + status: xP.GameChannelStatus.UPDATE_AVAILABLE } : t })), a = n.installedGames.map((e => ({ @@ -63581,17 +67409,32 @@ ...e, channels: i(e).map((e => ({ ...e, - status: e.status === YI.GameChannelStatus.RUNNING ? YI.GameChannelStatus.INSTALLED : e.status + status: e.status === xP.GameChannelStatus.RUNNING ? xP.GameChannelStatus.INSTALLED : e.status }))) }))); window.launcherAPI.store.setValueToStore("library.installed", o) - } catch (sF) { - throw new ID + } catch (MV) { + throw new zM } + }, + prepInstalledChannelForRemoval: async e => { + const { + library: n + } = t(), r = e.id, i = e.name; + await Promise.all(e.channels.map((async e => { + const t = { + gameId: r, + gameName: i, + platformId: e.platformId, + channelId: e.id, + channelName: e.name + }; + await n.actions.removeInstalledGameChannel(t) + }))) } } } - }), zD = (e, t) => ({ + }), ZM = (e, t) => ({ installer: { installations: [], uninstallations: [], @@ -63613,12 +67456,12 @@ installer: i, application: a } = t(); - aP(i.installations, n) || (e((e => ({ + fR(i.installations, n) || (e((e => ({ installer: { ...e.installer, installations: [...e.installer.installations, { game: n, - status: YI.InstallationStatus.WAITING, + status: xP.InstallationStatus.WAITING, type: r }] } @@ -63628,8 +67471,8 @@ const { installer: e } = t(); - if (sP(e.installations)) return void console.info("Noting to process in queue since there is already an installation in progress"); - const n = e.installations.filter((e => e.status === YI.InstallationStatus.WAITING)); + if (gR(e.installations)) return void console.info("Noting to process in queue since there is already an installation in progress"); + const n = e.installations.filter((e => e.status === xP.InstallationStatus.WAITING)); if (0 === n.length) return; const r = n[0]; await e.actions.startInstallation(r.game, { @@ -63641,7 +67484,7 @@ e((e => ({ installer: { ...e.installer, - installations: e.installer.installations.filter((e => e.status !== YI.InstallationStatus.COMPLETED && e.status !== YI.InstallationStatus.ERROR)) + installations: e.installer.installations.filter((e => e.status !== xP.InstallationStatus.COMPLETED && e.status !== xP.InstallationStatus.ERROR)) } }))) }, @@ -63649,25 +67492,29 @@ skipRequirements: !1, skipAnalitics: !1 }) => { + var i; const { installer: { - installations: i, - requirementsValidated: a, - actions: o + installations: a, + requirementsValidated: o, + actions: s }, - settings: s, application: l, - library: c + library: c, + settings: u, + storage: d } = t(), { - gameId: u, - gameName: d, - channelId: p, - channelName: h - } = n; - if (!a) { + gameId: p, + gameName: h, + channelId: f, + channelName: m + } = n, g = (null === (i = u.gamesSettings.find((({ + channelId: e + }) => e === f))) || void 0 === i ? void 0 : i.libraryFolder) || d.defaultLibraryFolder; + if (!o) { l.actions.setDownloadPopoverOpened(!1); - const t = await dP(); - if (l.actions.setDownloadPopoverOpened(!0), !t) return void o.cancelInstallation(n); + const t = await bR(); + if (l.actions.setDownloadPopoverOpened(!0), !t) return void s.cancelInstallation(n); e((e => ({ installer: { ...e.installer, @@ -63675,49 +67522,49 @@ } }))) } - const f = sP(i); - if (f && !cP(f.game, n)) return void console.warn(`Cannot start the installation of ${n} since the installer is already running`); - const m = aP(i, n); - if (m) try { - const t = await TD(n); + const v = gR(a); + if (v && !yR(v.game, n)) return void console.warn(`Cannot start the installation of ${n} since the installer is already running`); + const y = fR(a, n); + if (y) try { + const t = await GM(n); e((e => ({ installer: { ...e.installer, - installations: i.map((e => cP(e.game, n) ? { + installations: a.map((e => yR(e.game, n) ? { ...e, - status: YI.InstallationStatus.IN_PROGRESS, + status: xP.InstallationStatus.IN_PROGRESS, release: t } : e)) } }))), l.actions.setDownloadPopoverOpened(!0); - const a = { + const i = { ...t, - gameName: d, - channelName: h, - libraryFolder: s.library.defaultLibraryFolder, + gameName: h, + channelName: m, + libraryFolder: g, forcePatcher: !1, - verify: m.type === YI.InstallationType.VERIFY + verify: y.type === xP.InstallationType.VERIFY }; - if (cC().installer.setInstall(a), c.actions.addInstalledGameChannel(n), !r.skipAnalitics) { + if (RR().installer.setInstall(i), c.actions.addInstalledGameChannel(n), !r.skipAnalitics) { const e = { - [YI.InstallationType.INSTALL]: YI.AnalyticsEventName.APP_INSTALL_START, - [YI.InstallationType.VERIFY]: YI.AnalyticsEventName.APP_VERIFY_START, - [YI.InstallationType.UPDATE]: YI.AnalyticsEventName.APP_UPDATE_START - } [m.type]; + [xP.InstallationType.INSTALL]: xP.AnalyticsEventName.APP_INSTALL_START, + [xP.InstallationType.VERIFY]: xP.AnalyticsEventName.APP_VERIFY_START, + [xP.InstallationType.UPDATE]: xP.AnalyticsEventName.APP_UPDATE_START + } [y.type]; window.launcherAPI.analytics.setAnalyticsEvent(e, { - Game: m.game.gameId, - Channel: m.game.channelId, - Environment: m.game.platformId + Game: y.game.gameId, + Channel: y.game.channelId, + Environment: y.game.platformId }) } - } catch (g) { - console.error("[Start Installation] Error : ", g) + } catch (_) { + console.error("[Start Installation] Error : ", _) } else console.warn(`Cannot start the installation of ${n} since the installation is not in queue`) }, startUninstallation: async n => { const { dialog: r - } = t(), i = await TD(n), a = await r.actions.showWarningUninstallDialog(i); + } = t(), i = await GM(n), a = await r.actions.showWarningUninstallDialog(i); a.resolved && (console.log("Start the uninstallation for ", n, a), window.launcherAPI.installer.setUninstall(i, { keepUserFolder: void 0 !== a.results.keepUserFolder }), e((e => ({ @@ -63732,47 +67579,48 @@ application: r, installer: i, dialog: a - } = t(), o = aP(i.installations, n); - o ? o.status === YI.InstallationStatus.IN_PROGRESS || o.status === YI.InstallationStatus.PAUSED ? (r.actions.setDownloadPopoverOpened(!1), await a.actions.showGameCancelInstallationDialog(o)) : (e((e => ({ + } = t(), o = fR(i.installations, n); + o ? o.status === xP.InstallationStatus.IN_PROGRESS || o.status === xP.InstallationStatus.PAUSED ? (r.actions.setDownloadPopoverOpened(!1), await a.actions.showGameCancelInstallationDialog(o)) : (e((e => ({ installer: { ...e.installer, - installations: uP(e.installer.installations, n) + installations: _R(e.installer.installations, n) } }))), await i.actions.processInstallationQueue()) : console.warn("We could not clear the installation because the game is not in the queue") }, removeInstallation: n => { var r, i; const { - installer: a - } = t(), o = aP(a.installations, n); - if (!o || !o.release) return void console.warn("We could not remove the installation because the game is not in the queue"); - const s = { - ...o.release, - gameName: o.game.gameName, - channelName: o.game.channelName, - libraryFolder: o.release.libraryFolder, + installer: a, + library: o + } = t(), s = fR(a.installations, n); + if (!s || !s.release) return void console.warn("We could not remove the installation because the game is not in the queue"); + const l = { + ...s.release, + gameName: s.game.gameName, + channelName: s.game.channelName, + libraryFolder: s.release.libraryFolder, forcePatcher: !1, - verify: o.type === YI.InstallationType.VERIFY + verify: s.type === xP.InstallationType.VERIFY }, - l = o.type !== YI.InstallationType.INSTALL || null !== (r = null === (i = o.options) || void 0 === i ? void 0 : i.keepFilesOnCancel) && void 0 !== r && r; - window.launcherAPI.installer.setInstallCancel(s, { - keepFiles: l + c = s.type !== xP.InstallationType.INSTALL || null !== (r = null === (i = s.options) || void 0 === i ? void 0 : i.keepFilesOnCancel) && void 0 !== r && r; + window.launcherAPI.installer.setInstallCancel(l, { + keepFiles: c }), e((e => ({ installer: { ...e.installer, progress: void 0, - installations: o.type === YI.InstallationType.INSTALL ? pP(e.installer.installations, n, YI.InstallationStatus.CANCELLING) : uP(e.installer.installations, n) + installations: s.type === xP.InstallationType.INSTALL ? xR(e.installer.installations, n, xP.InstallationStatus.CANCELLING) : _R(e.installer.installations, n) } - }))); - const c = { - [YI.InstallationType.INSTALL]: YI.AnalyticsEventName.APP_INSTALL_STOP, - [YI.InstallationType.VERIFY]: YI.AnalyticsEventName.APP_VERIFY_STOP, - [YI.InstallationType.UPDATE]: YI.AnalyticsEventName.APP_UPDATE_STOP - } [o.type]; - window.launcherAPI.analytics.setAnalyticsEvent(c, { - Game: o.game.gameId, - Channel: o.game.channelId, - Environment: o.game.platformId + }))), s.type === xP.InstallationType.INSTALL && o.actions.removeInstalledGameChannel(n); + const u = { + [xP.InstallationType.INSTALL]: xP.AnalyticsEventName.APP_INSTALL_STOP, + [xP.InstallationType.VERIFY]: xP.AnalyticsEventName.APP_VERIFY_STOP, + [xP.InstallationType.UPDATE]: xP.AnalyticsEventName.APP_UPDATE_STOP + } [s.type]; + window.launcherAPI.analytics.setAnalyticsEvent(u, { + Game: s.game.gameId, + Channel: s.game.channelId, + Environment: s.game.platformId }) }, pauseInstallation: n => { @@ -63781,18 +67629,18 @@ installations: r, progress: i } - } = t(), a = aP(r, n); - if (a && a.status !== YI.InstallationStatus.PAUSED) { + } = t(), a = fR(r, n); + if (a && a.status !== xP.InstallationStatus.PAUSED) { if (e((e => ({ - installer: { - ...e.installer, - progress: e.installer.progress ? { - ...e.installer.progress, - speed: "0" - } : void 0, - installations: pP(e.installer.installations, n, YI.InstallationStatus.PAUSED) - } - }))), null !== i && void 0 !== i && i.isPausable) return window.launcherAPI.installer.setInstallPause() + installer: { + ...e.installer, + progress: e.installer.progress ? { + ...e.installer.progress, + speed: "0" + } : void 0, + installations: xR(e.installer.installations, n, xP.InstallationStatus.PAUSED) + } + }))), null !== i && void 0 !== i && i.isPausable) return window.launcherAPI.installer.setInstallPause() } else console.warn("We could not pause the installation because the game is not in the queue or is already pause") }, resumeInstallation: n => { @@ -63800,11 +67648,11 @@ installer: { installations: r } - } = t(), i = aP(r, n); - if (i && i.status === YI.InstallationStatus.PAUSED) return e((e => ({ + } = t(), i = fR(r, n); + if (i && i.status === xP.InstallationStatus.PAUSED) return e((e => ({ installer: { ...e.installer, - installations: pP(e.installer.installations, n, YI.InstallationStatus.IN_PROGRESS) + installations: xR(e.installer.installations, n, xP.InstallationStatus.IN_PROGRESS) } }))), window.launcherAPI.installer.setInstallResume(); console.warn("We could not resume the installation because the game is not in the queue") @@ -63815,13 +67663,13 @@ installer: { installations: i } - } = t(), a = aP(i, n); - a && a.status === YI.InstallationStatus.ERROR ? 0 !== (null === (r = a.options) || void 0 === r ? void 0 : r.numberOfRetriesLeft) && e((e => { + } = t(), a = fR(i, n); + a && a.status === xP.InstallationStatus.ERROR ? 0 !== (null === (r = a.options) || void 0 === r ? void 0 : r.numberOfRetriesLeft) && e((e => { var t, r; return { installer: { ...e.installer, - installations: pP(e.installer.installations, n, YI.InstallationStatus.WAITING, { + installations: xR(e.installer.installations, n, xP.InstallationStatus.WAITING, { ...a.options, numberOfRetriesLeft: (null !== (t = null === (r = a.options) || void 0 === r ? void 0 : r.numberOfRetriesLeft) && void 0 !== t ? t : 3) - 1 }) @@ -63835,10 +67683,10 @@ installations: i } } = t(); - aP(i, n) ? e((e => ({ + fR(i, n) ? e((e => ({ installer: { ...e.installer, - installations: e.installer.installations.map((e => cP(e.game, n) ? { + installations: e.installer.installations.map((e => yR(e.game, n) ? { ...e, options: r } : e)) @@ -63852,10 +67700,10 @@ progress: i } } = t(); - sP(r) ? e((e => ({ + gR(r) ? e((e => ({ installer: { ...e.installer, - progress: iP(n, i) + progress: hR(n, i) } }))) : console.warn("We could not update info about download progression since there is no installation in progress") }, @@ -63873,7 +67721,7 @@ channelName: n.channelName, platformId: n.platformId }, - s = aP(r.installations, o); + s = fR(r.installations, o); if (!s) return void console.warn("We could not end the installation because the game is not in the queue"); if (n.isInitialDownload) return e((e => ({ installer: { @@ -63888,18 +67736,19 @@ installer: { ...e.installer, progress: void 0, - installations: pP(e.installer.installations, o, YI.InstallationStatus.COMPLETED) + installations: xR(e.installer.installations, o, xP.InstallationStatus.COMPLETED) } }))), r.actions.setInstallSuccessToast(s.game), i.actions.saveInstalledGameChannel(o); const l = { ...s.game, - installDir: s.release.installDir + installDir: s.release.installDir, + libraryFolder: s.release.libraryFolder }; await a.actions.saveChannelGameSettings(l), await r.actions.processInstallationQueue(); const c = { - [YI.InstallationType.INSTALL]: YI.AnalyticsEventName.APP_INSTALL_SUCCESS, - [YI.InstallationType.VERIFY]: YI.AnalyticsEventName.APP_VERIFY_SUCCESS, - [YI.InstallationType.UPDATE]: YI.AnalyticsEventName.APP_UPDATE_SUCCESS + [xP.InstallationType.INSTALL]: xP.AnalyticsEventName.APP_INSTALL_SUCCESS, + [xP.InstallationType.VERIFY]: xP.AnalyticsEventName.APP_VERIFY_SUCCESS, + [xP.InstallationType.UPDATE]: xP.AnalyticsEventName.APP_UPDATE_SUCCESS } [s.type]; window.launcherAPI.analytics.setAnalyticsEvent(c, { Game: s.game.gameId, @@ -63911,52 +67760,131 @@ const { installer: r, application: i - } = t(), a = aP(r.installations, n.payload); + } = t(), a = fR(r.installations, n.payload); if (!a) return void console.warn("We could not clear the installation because the game is not in the queue"); i.actions.setDownloadPopoverOpened(!1), e((e => ({ installer: { ...e.installer, progress: void 0, - installations: pP(e.installer.installations, a.game, YI.InstallationStatus.ERROR) + installations: xR(e.installer.installations, a.game, xP.InstallationStatus.ERROR) } }))); - const o = (0, YI.serializerInstallerErrors)(n); - await eP((e => { - var t, n, r; - const i = Wj.getState().installer, - a = Wj.getState().library, + const o = (0, xP.serializerInstallerErrors)(n); + await cR((e => { + var t, n, r, i, a; + const o = jz.getState().installer, + s = jz.getState().library, { - gameId: o, - platformId: s, - channelId: l, - gameName: c, - channelName: u + gameId: l, + platformId: c, + channelId: u, + gameName: d, + channelName: p } = e.payload, - d = null !== (t = { - gameId: o, - gameName: c, - channelId: l, - channelName: u, - platformId: s - }) && void 0 !== t ? t : a.channelSelected, - p = aP(i.installations, d); + h = null !== (t = { + gameId: l, + gameName: d, + channelId: u, + channelName: p, + platformId: c + }) && void 0 !== t ? t : s.channelSelected, + f = fR(o.installations, h); switch (!0) { - case e instanceof YI.InvalidMDFileError: + case e instanceof xP.InstallerSupportPermissionError: return { handler: { - type: JA.DISPLAY_ACKNOWLEDGE_DIALOG, + type: lR.DISPLAY_WARNING_DIALOG, + args: { + title: xt.t("error_installer_support_permission_title", { + ns: "errors" + }), + content: (0, wR.jsxs)(Es, { + gap: "100", + vertical: !0, + children: [(0, wR.jsx)(ds, { + children: xt.t("error_installer_support_permission_content", { + ns: "errors" + }) + }), (0, wR.jsx)(ds, { + children: (0, wR.jsx)(ft, { + i18nKey: "error_installer_more_info_content", + t: xt.t, + ns: "errors", + components: [(0, wR.jsx)(Pv, { + href: xP.configuration.installerErrorKnowledgeDatabaseUrl, + external: !0 + })] + }) + }), (0, wR.jsx)(ds, { + children: xt.t("error_installer_error_code", { + code: e.code, + ns: "errors" + }) + })] + }) + } + }, error: e + }; + case e instanceof xP.CreateDirectoryError: + return { + handler: { + type: lR.DISPLAY_WARNING_DIALOG, + args: { + title: xt.t("error_installer_create_directory_title", { + ns: "errors" + }), + content: (0, wR.jsxs)(Es, { + gap: "100", + vertical: !0, + children: [(0, wR.jsx)(ds, { + children: xt.t("error_installer_create_directory_content_1", { + ns: "errors" + }) + }), (0, wR.jsxs)(ds, { + children: [xt.t("error_installer_create_directory_content_2", { + ns: "errors" + }), (0, wR.jsxs)(ds, { + children: [null === f || void 0 === f || null === (n = f.release) || void 0 === n ? void 0 : n.libraryFolder, (0, wR.jsxs)("span", { + className: "sol-u-color-foreground", + children: [null === f || void 0 === f || null === (r = f.release) || void 0 === r ? void 0 : r.installDir, "\\", u] + })] + })] + }), (0, wR.jsx)(ds, { + children: (0, wR.jsx)(ft, { + i18nKey: "error_installer_more_info_content", + t: xt.t, + ns: "errors", + components: [(0, wR.jsx)(Pv, { + href: xP.configuration.installerErrorKnowledgeDatabaseUrl, + external: !0 + })] + }) + }), (0, wR.jsx)(ds, { + children: xt.t("error_installer_error_code", { + code: e.code, + ns: "errors" + }) + })] + }) + } + }, error: e + }; + case e instanceof xP.InvalidMDFileError: + return { + handler: { + type: lR.DISPLAY_ACKNOWLEDGE_DIALOG, args: { title: xt.t("error_installer_basepack_invalid_title", { ns: "errors" }), - content: (0, QI.jsxs)(Ps, { + content: (0, wR.jsxs)(Es, { gap: "100", vertical: !0, - children: [(0, QI.jsx)(gs, { + children: [(0, wR.jsx)(ds, { children: xt.t("error_installer_basepack_invalid_content", { ns: "errors" }) - }), (0, QI.jsx)(gs, { + }), (0, wR.jsx)(ds, { children: xt.t("error_installer_error_code", { code: e.code, ns: "errors" @@ -63966,36 +67894,36 @@ } }, error: e }; - case e instanceof YI.InvalidMDFileHeaderError: - case e instanceof YI.NotMappedError: + case e instanceof xP.InvalidMDFileHeaderError: + case e instanceof xP.NotMappedError: return { handler: { - type: JA.DISPLAY_ACKNOWLEDGE_DIALOG, + type: lR.DISPLAY_ACKNOWLEDGE_DIALOG, args: { title: xt.t("error_installer_init_download_title", { ns: "errors" }), - content: (0, QI.jsxs)(Ps, { + content: (0, wR.jsxs)(Es, { gap: "100", vertical: !0, - children: [(0, QI.jsx)(gs, { + children: [(0, wR.jsx)(ds, { children: xt.t("error_installer_generic_content", { ns: "errors" }) - }), (0, QI.jsx)(gs, { - children: (0, QI.jsx)(ft, { + }), (0, wR.jsx)(ds, { + children: (0, wR.jsx)(ft, { i18nKey: "error_report_bug", t: xt.t, ns: "errors", - components: [(0, QI.jsx)(am, { - href: YI.configuration.issueCouncilUrl, + components: [(0, wR.jsx)(Pv, { + href: xP.configuration.issueCouncilUrl, external: !0 - }), (0, QI.jsx)(am, { - href: YI.configuration.filesSupportUrl, + }), (0, wR.jsx)(Pv, { + href: xP.configuration.filesSupportUrl, external: !0 })] }) - }), (0, QI.jsx)(gs, { + }), (0, wR.jsx)(ds, { children: xt.t("error_installer_error_code", { code: e.code, ns: "errors" @@ -64005,22 +67933,22 @@ } }, error: e }; - case e instanceof YI.DiskFullError: + case e instanceof xP.DiskFullError: return { handler: { - type: JA.DISPLAY_ACKNOWLEDGE_DIALOG, + type: lR.DISPLAY_ACKNOWLEDGE_DIALOG, args: { title: xt.t("error_installer_disc_full_title", { ns: "errors" }), - content: (0, QI.jsxs)(Ps, { + content: (0, wR.jsxs)(Es, { gap: "100", vertical: !0, - children: [(0, QI.jsx)(gs, { + children: [(0, wR.jsx)(ds, { children: xt.t("error_installer_disc_full_content", { ns: "errors" }) - }), (0, QI.jsx)(gs, { + }), (0, wR.jsx)(ds, { children: xt.t("error_installer_error_code", { code: e.code, ns: "errors" @@ -64030,22 +67958,22 @@ } }, error: e }; - case e instanceof YI.WritePermissionsError: + case e instanceof xP.WritePermissionsError: return { handler: { - type: JA.DISPLAY_WARNING_DIALOG, + type: lR.DISPLAY_WARNING_DIALOG, args: { title: xt.t("error_installer_permissions_title", { ns: "errors" }), - content: (0, QI.jsxs)(Ps, { + content: (0, wR.jsxs)(Es, { gap: "100", vertical: !0, - children: [(0, QI.jsx)(gs, { + children: [(0, wR.jsx)(ds, { children: xt.t("error_installer_permissions_content", { ns: "errors" }) - }), (0, QI.jsx)(gs, { + }), (0, wR.jsx)(ds, { children: xt.t("error_installer_error_code", { code: e.code, ns: "errors" @@ -64053,7 +67981,7 @@ })] }), primaryCallback: async () => { - await i.actions.setPermissions(d) + await o.actions.setPermissions(h) }, primaryLabel: xt.t("error_installer_permissions_action", { ns: "errors" @@ -64061,22 +67989,22 @@ } }, error: e }; - case e instanceof YI.FileInUseError: + case e instanceof xP.FileInUseError: return { handler: { - type: JA.DISPLAY_ACKNOWLEDGE_DIALOG, + type: lR.DISPLAY_ACKNOWLEDGE_DIALOG, args: { title: xt.t("error_installer_file_in_use_title", { ns: "errors" }), - content: (0, QI.jsxs)(Ps, { + content: (0, wR.jsxs)(Es, { gap: "100", vertical: !0, - children: [(0, QI.jsx)(gs, { + children: [(0, wR.jsx)(ds, { children: xt.t("error_installer_file_in_use_content", { ns: "errors" }) - }), (0, QI.jsx)(gs, { + }), (0, wR.jsx)(ds, { children: xt.t("error_installer_error_code", { code: e.code, ns: "errors" @@ -64086,22 +68014,22 @@ } }, error: e }; - case e instanceof YI.Pk4CorruptedError: + case e instanceof xP.Pk4CorruptedError: return { handler: { - type: JA.DISPLAY_ACKNOWLEDGE_DIALOG, + type: lR.DISPLAY_ACKNOWLEDGE_DIALOG, args: { title: xt.t("error_installer_pk4_corrupted_title", { ns: "errors" }), - content: (0, QI.jsxs)(Ps, { + content: (0, wR.jsxs)(Es, { gap: "100", vertical: !0, - children: [(0, QI.jsx)(gs, { + children: [(0, wR.jsx)(ds, { children: xt.t("error_installer_pk4_corrupted_content", { ns: "errors" }) - }), (0, QI.jsx)(gs, { + }), (0, wR.jsx)(ds, { children: xt.t("error_installer_error_code", { code: e.code, ns: "errors" @@ -64111,22 +68039,22 @@ } }, error: e }; - case e instanceof YI.RetrieveManifestError: + case e instanceof xP.RetrieveManifestError: return { handler: { - type: JA.DISPLAY_ACKNOWLEDGE_DIALOG, + type: lR.DISPLAY_ACKNOWLEDGE_DIALOG, args: { title: xt.t("error_installer_retrieve_manifest_title", { ns: "errors" }), - content: (0, QI.jsxs)(Ps, { + content: (0, wR.jsxs)(Es, { gap: "100", vertical: !0, - children: [(0, QI.jsx)(gs, { + children: [(0, wR.jsx)(ds, { children: xt.t("error_installer_retrieve_manifest_content", { ns: "errors" }) - }), (0, QI.jsx)(gs, { + }), (0, wR.jsx)(ds, { children: xt.t("error_installer_error_code", { code: e.code, ns: "errors" @@ -64136,22 +68064,22 @@ } }, error: e }; - case e instanceof YI.PatcherUnknownNetworkError: + case e instanceof xP.PatcherUnknownNetworkError: return { handler: { - type: JA.DISPLAY_ACKNOWLEDGE_DIALOG, + type: lR.DISPLAY_ACKNOWLEDGE_DIALOG, args: { title: xt.t("error_installer_unknown_network_title", { ns: "errors" }), - content: (0, QI.jsxs)(Ps, { + content: (0, wR.jsxs)(Es, { gap: "100", vertical: !0, - children: [(0, QI.jsx)(gs, { + children: [(0, wR.jsx)(ds, { children: xt.t("error_installer_unknown_network_content", { ns: "errors" }) - }), (0, QI.jsx)(gs, { + }), (0, wR.jsx)(ds, { children: xt.t("error_installer_error_code", { code: e.code, ns: "errors" @@ -64161,35 +68089,35 @@ } }, error: e }; - case e instanceof YI.BasePackP4kCorruptedError: + case e instanceof xP.BasePackP4kCorruptedError: return { handler: { - type: JA.DISPLAY_ACKNOWLEDGE_DIALOG, + type: lR.DISPLAY_ACKNOWLEDGE_DIALOG, args: { title: xt.t("error_installer_base_p4k_corrupted_title", { ns: "errors" }), - content: (0, QI.jsxs)(Ps, { + content: (0, wR.jsxs)(Es, { gap: "100", vertical: !0, - children: [(0, QI.jsx)(gs, { + children: [(0, wR.jsx)(ds, { children: xt.t("error_installer_base_p4k_corrupted_content", { ns: "errors" }) - }), (0, QI.jsx)(gs, { - children: (0, QI.jsx)(ft, { + }), (0, wR.jsx)(ds, { + children: (0, wR.jsx)(ft, { i18nKey: "error_report_bug", t: xt.t, ns: "errors", - components: [(0, QI.jsx)(am, { - href: YI.configuration.issueCouncilUrl, + components: [(0, wR.jsx)(Pv, { + href: xP.configuration.issueCouncilUrl, external: !0 - }), (0, QI.jsx)(am, { - href: YI.configuration.filesSupportUrl, + }), (0, wR.jsx)(Pv, { + href: xP.configuration.filesSupportUrl, external: !0 })] }) - }), (0, QI.jsx)(gs, { + }), (0, wR.jsx)(ds, { children: xt.t("error_installer_error_code", { code: e.code, ns: "errors" @@ -64199,36 +68127,36 @@ } }, error: e }; - case e instanceof YI.DownloadUnsuccessfullError: + case e instanceof xP.DownloadUnsuccessfullError: return [{ handler: { - type: JA.DISPLAY_WARNING_DIALOG, - skip: void 0 !== (null === p || void 0 === p || null === (n = p.options) || void 0 === n ? void 0 : n.numberOfRetriesLeft) && (null === p || void 0 === p || null === (r = p.options) || void 0 === r ? void 0 : r.numberOfRetriesLeft) > 0, + type: lR.DISPLAY_WARNING_DIALOG, + skip: void 0 !== (null === f || void 0 === f || null === (i = f.options) || void 0 === i ? void 0 : i.numberOfRetriesLeft) && (null === f || void 0 === f || null === (a = f.options) || void 0 === a ? void 0 : a.numberOfRetriesLeft) > 0, args: { title: xt.t("error_installer_base_p4k_corrupted_title", { ns: "errors" }), - content: (0, QI.jsxs)(Ps, { + content: (0, wR.jsxs)(Es, { gap: "100", vertical: !0, - children: [(0, QI.jsx)(gs, { + children: [(0, wR.jsx)(ds, { children: xt.t("error_installer_base_p4k_corrupted_content", { ns: "errors" }) - }), (0, QI.jsx)(gs, { - children: (0, QI.jsx)(ft, { + }), (0, wR.jsx)(ds, { + children: (0, wR.jsx)(ft, { i18nKey: "error_report_bug", t: xt.t, ns: "errors", - components: [(0, QI.jsx)(am, { - href: YI.configuration.issueCouncilUrl, + components: [(0, wR.jsx)(Pv, { + href: xP.configuration.issueCouncilUrl, external: !0 - }), (0, QI.jsx)(am, { - href: YI.configuration.filesSupportUrl, + }), (0, wR.jsx)(Pv, { + href: xP.configuration.filesSupportUrl, external: !0 })] }) - }), (0, QI.jsx)(gs, { + }), (0, wR.jsx)(ds, { children: xt.t("error_installer_error_code", { code: e.code, ns: "errors" @@ -64236,7 +68164,7 @@ })] }), primaryCallback: async () => { - i.actions.addInstallationToQueue(d, YI.InstallationType.VERIFY) + o.actions.addInstallationToQueue(h, xP.InstallationType.VERIFY) }, primaryLabel: xt.t("dialog_action_verify", { ns: "dialog" @@ -64246,66 +68174,66 @@ error: e }]; default: - const t = () => e.code === YI.InitialDownloadErrorsNames.ERR_INIT_UNKNOWN ? xt.t("error_installer_init_download_title", { + const t = () => e.code === xP.InitialDownloadErrorsNames.ERR_INIT_UNKNOWN ? xt.t("error_installer_init_download_title", { ns: "errors" - }) : e.code === YI.PatcherErrorsNames.ERR_PATCHER_UNKNOWN ? xt.t("error_installer_patcher_title", { + }) : e.code === xP.PatcherErrorsNames.ERR_PATCHER_UNKNOWN ? xt.t("error_installer_patcher_title", { ns: "errors" }) : xt.t("error_installer_title", { ns: "errors" }), - a = () => e.code === YI.PatcherErrorsNames.ERR_PATCHER_UNKNOWN ? (0, QI.jsxs)(Ps, { + s = () => e.code === xP.PatcherErrorsNames.ERR_PATCHER_UNKNOWN ? (0, wR.jsxs)(Es, { gap: "100", vertical: !0, - children: [(0, QI.jsx)(gs, { - children: (0, QI.jsx)(ft, { + children: [(0, wR.jsx)(ds, { + children: (0, wR.jsx)(ft, { i18nKey: "error_installer_patcher_generic_content", t: xt.t, ns: "errors", - components: [(0, QI.jsx)(am, { - href: YI.configuration.installerErrorKnowledgeDatabaseUrl, + components: [(0, wR.jsx)(Pv, { + href: xP.configuration.installerErrorKnowledgeDatabaseUrl, external: !0 })] }) - }), (0, QI.jsx)(gs, { - children: (0, QI.jsx)(ft, { + }), (0, wR.jsx)(ds, { + children: (0, wR.jsx)(ft, { i18nKey: "error_report_bug", t: xt.t, ns: "errors", - components: [(0, QI.jsx)(am, { - href: YI.configuration.issueCouncilUrl, + components: [(0, wR.jsx)(Pv, { + href: xP.configuration.issueCouncilUrl, external: !0 - }), (0, QI.jsx)(am, { - href: YI.configuration.filesSupportUrl, + }), (0, wR.jsx)(Pv, { + href: xP.configuration.filesSupportUrl, external: !0 })] }) - }), (0, QI.jsx)(gs, { + }), (0, wR.jsx)(ds, { children: xt.t("error_installer_error_code", { code: e.code, ns: "errors" }) })] - }) : (0, QI.jsxs)(Ps, { + }) : (0, wR.jsxs)(Es, { gap: "100", vertical: !0, - children: [(0, QI.jsx)(gs, { + children: [(0, wR.jsx)(ds, { children: xt.t("error_installer_generic_content", { ns: "errors" }) - }), (0, QI.jsx)(gs, { - children: (0, QI.jsx)(ft, { + }), (0, wR.jsx)(ds, { + children: (0, wR.jsx)(ft, { i18nKey: "error_report_bug", t: xt.t, ns: "errors", - components: [(0, QI.jsx)(am, { - href: YI.configuration.issueCouncilUrl, + components: [(0, wR.jsx)(Pv, { + href: xP.configuration.issueCouncilUrl, external: !0 - }), (0, QI.jsx)(am, { - href: YI.configuration.filesSupportUrl, + }), (0, wR.jsx)(Pv, { + href: xP.configuration.filesSupportUrl, external: !0 })] }) - }), (0, QI.jsx)(gs, { + }), (0, wR.jsx)(ds, { children: xt.t("error_installer_error_code", { code: e.code, ns: "errors" @@ -64314,19 +68242,19 @@ }); return { handler: { - type: JA.DISPLAY_ACKNOWLEDGE_DIALOG, + type: lR.DISPLAY_ACKNOWLEDGE_DIALOG, args: { title: t(), - content: a() + content: s() } }, error: e } } })(o)), i.actions.setDownloadPopoverOpened(!0), await r.actions.processInstallationQueue(); const s = { - [YI.InstallationType.INSTALL]: YI.AnalyticsEventName.APP_INSTALL_ERROR, - [YI.InstallationType.VERIFY]: YI.AnalyticsEventName.APP_VERIFY_ERROR, - [YI.InstallationType.UPDATE]: YI.AnalyticsEventName.APP_UPDATE_ERROR + [xP.InstallationType.INSTALL]: xP.AnalyticsEventName.APP_INSTALL_ERROR, + [xP.InstallationType.VERIFY]: xP.AnalyticsEventName.APP_VERIFY_ERROR, + [xP.InstallationType.UPDATE]: xP.AnalyticsEventName.APP_UPDATE_ERROR } [a.type]; window.launcherAPI.analytics.setAnalyticsEvent(s, { Game: a.game.gameId, @@ -64340,30 +68268,30 @@ const { installer: n, toasts: r - } = t(), i = lP(n.installations); + } = t(), i = vR(n.installations); i && e((e => ({ installer: { ...e.installer, progress: void 0, - installations: [...uP(e.installer.installations, i.game)] + installations: [..._R(e.installer.installations, i.game)] } }))), r.actions.add({ type: "negative", title: _e.t("download_toast_install_cancel_success", { ns: "download" }), - icon: KP + icon: sM }), await n.actions.processInstallationQueue() }, setCancelationFailed: async n => { const { installer: r - } = t(), i = lP(r.installations); + } = t(), i = vR(r.installations); i && e((e => ({ installer: { ...e.installer, progress: void 0, - installations: [...uP(e.installer.installations, i.game)] + installations: [..._R(e.installer.installations, i.game)] } }))), await r.actions.processInstallationQueue() }, @@ -64373,12 +68301,12 @@ library: i, settings: a } = t(); - oP(r.uninstallations, n) ? (e((e => ({ + mR(r.uninstallations, n) ? (e((e => ({ installer: { ...e.installer, uninstallations: e.installer.uninstallations.filter((e => e.channelId !== n.channelId && e.gameId !== n.gameId)) } - }))), i.actions.removeInstalledGameChannel(n), await a.actions.resetChannelGameSettings(n), window.launcherAPI.analytics.setAnalyticsEvent(YI.AnalyticsEventName.APP_UNINSTALL_SUCCESS, { + }))), i.actions.removeInstalledGameChannel(n), await a.actions.resetChannelGameSettings(n), window.launcherAPI.analytics.setAnalyticsEvent(xP.AnalyticsEventName.APP_UNINSTALL_SUCCESS, { Game: n.gameId, Channel: n.channelId, Environment: n.platformId @@ -64389,13 +68317,13 @@ installer: r } = t(), { payload: i - } = n, a = oP(r.uninstallations, i); + } = n, a = mR(r.uninstallations, i); a ? (e((e => ({ installer: { ...e.installer, uninstallations: e.installer.uninstallations.filter((e => e.channelId !== i.channelId && e.gameId !== i.gameId)) } - }))), window.launcherAPI.analytics.setAnalyticsEvent(YI.AnalyticsEventName.APP_UNINSTALL_ERROR, { + }))), window.launcherAPI.analytics.setAnalyticsEvent(xP.AnalyticsEventName.APP_UNINSTALL_ERROR, { Game: a.gameId, Channel: a.channelId, Environment: a.platformId, @@ -64404,9 +68332,9 @@ }), r.actions.setUninstallFailToast(i)) : console.warn("We could not clear the uninstallation because the game is not in the queue") }, setPermissions: async e => { - const t = await CD(e.platformId, e.gameId), + const t = await VM(e.platformId, e.gameId), n = { - ...await TD(e), + ...await GM(e), nickname: t.username, token: t.sessionToken.value, authToken: t.gameToken.token @@ -64419,20 +68347,20 @@ installations: n }, toasts: r - } = t(), i = aP(n, e); - if (!i || i.status !== YI.InstallationStatus.COMPLETED) return void console.warn("We could not display the sucess toast because the installation the game is not in the queue or is not completed"); + } = t(), i = fR(n, e); + if (!i || i.status !== xP.InstallationStatus.COMPLETED) return void console.warn("We could not display the sucess toast because the installation the game is not in the queue or is not completed"); return r.actions.add({ title: (() => { switch (i.type) { - case YI.InstallationType.INSTALL: + case xP.InstallationType.INSTALL: return _e.t("download_toast_install_success", { ns: "download" }); - case YI.InstallationType.VERIFY: + case xP.InstallationType.VERIFY: return _e.t("download_toast_verify_success", { ns: "download" }); - case YI.InstallationType.UPDATE: + case xP.InstallationType.UPDATE: return _e.t("download_toast_update_success", { ns: "download" }) @@ -64469,12 +68397,40 @@ type: "negative", closeOnClick: !1 }) + }, + setFixPermissionsSuccessToast: () => { + const { + application: e, + toasts: n + } = t(); + return e.actions.setDownloadPopoverOpened(!1), n.actions.add({ + title: _e.t("download_toast_fix_permission_success", { + ns: "download" + }), + type: "positive", + closeOnClick: !1 + }) + }, + setFixPermissionsFailedToast: e => { + const { + application: n, + toasts: r + } = t(); + return n.actions.setDownloadPopoverOpened(!1), r.actions.add({ + title: _e.t("download_toast_fix_permission_fail", { + ns: "download", + game: e.payload.gameName, + channel: e.payload.channelName + }), + type: "negative", + closeOnClick: !1 + }) } } } - }), VD = () => { + }), XM = () => { var e, t, n, r, i, a; - const o = eD(), + const o = OL(), { t: s } = bt("appHeader"), @@ -64483,94 +68439,94 @@ window: { setMinimizeWindow: c } - } = cC(), - u = Wj((e => e.application)), - d = Wj((e => e.user)), - p = Wj((e => e.soundSystem)), - h = Wj((e => e.window)), - f = Wj((e => e.installer)), + } = RR(), + u = jz((e => e.application)), + d = jz((e => e.user)), + p = jz((e => e.soundSystem)), + h = jz((e => e.window)), + f = jz((e => e.installer)), { wipeAnimationsDisabled: m - } = ts().reduceMotion, + } = Qo().reduceMotion, { isLoggedIn: g } = d.actions, - v = void 0 !== sP(f.installations), + v = void 0 !== gR(f.installations), y = (0, Ee.useMemo)((() => { var e; const t = null === (e = d.identity) || void 0 === e ? void 0 : e.avatar; - return t ? t.match(/^https?:\/\//) ? t : Kj(t) : YI.configuration.assets.avatar.defaultUrl + return t ? t.match(/^https?:\/\//) ? t : zR(t) : xP.configuration.assets.avatar.defaultUrl }), [null === (e = d.identity) || void 0 === e ? void 0 : e.avatar]), - _ = (0, Ee.useMemo)((() => YI.configuration.assets.directory + YI.configuration.assets.avatar.defaultLocal), []), + _ = (0, Ee.useMemo)((() => xP.configuration.assets.directory + xP.configuration.assets.avatar.defaultLocal), []), b = (0, Ee.useMemo)((() => { var e; const t = null === (e = d.identity) || void 0 === e ? void 0 : e.nickname; - return t ? Kj(`/citizens/${t}`) : YI.configuration.playnowUrl + return t ? zR(`/citizens/${t}`) : xP.configuration.playnowUrl }), [null === (t = d.identity) || void 0 === t ? void 0 : t.nickname]); - return (0, QI.jsxs)(Ls, { - children: [(0, QI.jsxs)(_m, { + return (0, wR.jsxs)(As, { + children: [(0, wR.jsxs)(qv, { offset: "large", - trigger: (0, QI.jsxs)(Rs, { + trigger: (0, wR.jsxs)(Is, { "data-test-id": "rsi-menu", "data-sol-discover": "menu", label: s("app_header_menu"), className: "sol-c-app-header__item--rsi-logo", - children: [(0, QI.jsx)(Om, {}), (0, QI.jsx)(BP, { + children: [(0, wR.jsx)(Xv, {}), (0, wR.jsx)(tM, { className: "sol-c-icon sol-c-icon--arrow-up" - }), (0, QI.jsx)(UP, { + }), (0, wR.jsx)(eM, { className: "sol-c-icon sol-c-icon--arrow-down" })] }), - children: [g() && (0, QI.jsx)(vm, { + children: [g() && (0, wR.jsx)(Gv, { onClick: () => { - if (m) return void o(XM.SETTINGS); + if (m) return void o(CV.SETTINGS); u.actions.setAnimatingAppLayoutWipe("full", !0); const e = setTimeout((() => { - o(XM.SETTINGS) + o(CV.SETTINGS) }), l / 2); return () => clearTimeout(e) }, label: s("app_header_menu_settings"), - disabled: window.location.hash.includes(XM.SETTINGS) - }), (0, QI.jsx)(vm, { + disabled: window.location.hash.includes(CV.SETTINGS) + }), (0, wR.jsx)(Gv, { external: !0, - endIcon: XP, - href: YI.configuration.supportUrl, + endIcon: pM, + href: xP.configuration.supportUrl, label: s("app_header_menu_get_help"), "data-test-id": "rsi-menu-help" - }), (0, QI.jsx)(vm, { + }), (0, wR.jsx)(Gv, { external: !0, - endIcon: XP, - href: YI.configuration.spectrumUrl, + endIcon: pM, + href: xP.configuration.spectrumUrl, label: s("app_header_menu_spectrum") - }), (0, QI.jsx)(vm, { + }), (0, wR.jsx)(Gv, { external: !0, - endIcon: XP, - href: YI.configuration.issueCouncilUrl, + endIcon: pM, + href: xP.configuration.issueCouncilUrl, label: s("app_header_menu_issue_council") - }), g() && (0, QI.jsx)(vm, { + }), g() && (0, wR.jsx)(Gv, { label: s("app_header_menu_discover"), "data-test-id": "rsi-menu-discover", onClick: () => { - if (window.location.hash.includes(XM.SETTINGS)) { - if (m) return void o(XM.HOME); + if (window.location.hash.includes(CV.SETTINGS)) { + if (m) return void o(CV.HOME); u.actions.setAnimatingAppLayoutWipe("full", !0); const e = setTimeout((() => { - o(XM.HOME), h.actions.openDiscover() + o(CV.HOME), h.actions.openDiscover() }), l / 2); return () => clearTimeout(e) } h.actions.openDiscover() }, disabled: v - }), (0, QI.jsx)(vm, { + }), (0, wR.jsx)(Gv, { label: s("app_header_menu_exit_the_app"), "data-test-id": "rsi-menu-exit", onClick: e => { e.preventDefault(), h.actions.exitLauncher() } })] - }), (0, QI.jsx)(Ig, { + }), (0, wR.jsx)(Jy, { value: p.volume, label: s("app_header_volume"), muteLabel: s("app_header_volume_mute"), @@ -64578,38 +68534,38 @@ onChange: e => { p.actions.changeVolume(e) } - }), (0, QI.jsxs)(Ts, { - children: [g() && (0, QI.jsxs)(QI.Fragment, { - children: [u.actions.isOffline() && (0, QI.jsxs)(QI.Fragment, { - children: [(0, QI.jsx)(mT, {}), (0, QI.jsx)(Ds, {})] - }), (0, QI.jsx)(OD, { + }), (0, wR.jsxs)(Os, { + children: [g() && (0, wR.jsxs)(wR.Fragment, { + children: [u.actions.isOffline() && (0, wR.jsxs)(wR.Fragment, { + children: [(0, wR.jsx)(PM, {}), (0, wR.jsx)(Cs, {})] + }), (0, wR.jsx)(FM, { labelItem: s("app_header_actions_menu_rsi_status") - }), (0, QI.jsx)(Ds, {}), (0, QI.jsx)(bD, { + }), (0, wR.jsx)(Cs, {}), (0, wR.jsx)(RM, { labelItem: s("app_header_actions_download") - }), (0, QI.jsxs)(_m, { + }), (0, wR.jsxs)(qv, { offset: "large", placement: "bottom-end", - trigger: (0, QI.jsx)(Rs, { + trigger: (0, wR.jsx)(Is, { "data-test-id": "avatar-menu", "data-sol-discover": "user-profile", hasAvatar: !0, label: s("app_header_account"), - children: (0, QI.jsx)(js, { + children: (0, wR.jsx)(Ts, { "data-test-id": "avatar-img", src: u.actions.isOffline() ? _ : y }) }), - children: [(0, QI.jsx)(ym, { + children: [(0, wR.jsx)($v, { "data-test-id": "avatar-nickname", title: null !== (n = null === (r = d.identity) || void 0 === r ? void 0 : r.displayName) && void 0 !== n ? n : s("app_header_account_moniker"), subtitle: null !== (i = `@${null===(a=d.identity)||void 0===a?void 0:a.nickname}`) && void 0 !== i ? i : s("app_header_account_name") - }), (0, QI.jsx)(vm, { + }), (0, wR.jsx)(Gv, { external: !0, href: b, - endIcon: XP, + endIcon: pM, label: s("app_header_actions_menu_rsi_account"), "data-test-id": "avatar-url" - }), (0, QI.jsx)(vm, { + }), (0, wR.jsx)(Gv, { "data-test-id": "avatar-logout", label: s("app_header_actions_menu_log_out"), onClick: e => { @@ -64617,47 +68573,54 @@ } })] })] - }), (0, QI.jsx)(Rs, { + }), (0, wR.jsx)(Is, { alwaysOnTop: !0, "aria-label": "Minimize", onClick: c, disableFocus: !0, - icon: ZP - }), (0, QI.jsx)(Rs, { + icon: uM + }), (0, wR.jsx)(Is, { alwaysOnTop: !0, "aria-label": "Close", onClick: e => { e.preventDefault(), h.actions.closeLauncher() }, disableFocus: !0, - icon: qP + icon: iM })] })] }) - }, UD = () => { + }, JM = () => { const [e, t] = (0, Ee.useState)(""); return (0, Ee.useEffect)((() => { - const e = setTimeout((() => t("in")), YI.configuration.appLayoutLoaderWipeTrigger); + const e = setTimeout((() => t("in")), xP.configuration.appLayoutLoaderWipeTrigger); return () => clearTimeout(e) - }), []), (0, QI.jsx)(Ns, { + }), []), (0, wR.jsx)(Ps, { className: "sol-u-animation-wipe", "data-sol-animation-wipe": e, - children: (0, QI.jsx)(hm, {}) + children: (0, wR.jsx)(zv, {}) }) - }, BD = () => { - const e = Wj((e => e.autoUpdate)); - return lM(), (0, QI.jsx)(dd, { + }, eF = () => { + const e = jz((e => e.autoUpdate)); + return (() => { + const e = jz((e => e.autoUpdate)), + { + onUpdateDownloaded: t, + onQuitInstallError: n + } = window.launcherAPI.autoUpdate; + (0, Ee.useEffect)((() => t((t => e.actions.displayDialog(t)))), [e.actions, t]), (0, Ee.useEffect)((() => n((t => e.actions.displayDialog(t)))), [e.actions, n]) + })(), (0, wR.jsx)(od, { ...e.dialog }) }; - var GD = function() { - return GD = Object.assign || function(e) { + var tF = function() { + return tF = Object.assign || function(e) { for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n]) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]); return e - }, GD.apply(this, arguments) + }, tF.apply(this, arguments) }, - $D = function(e, t) { + nF = function(e, t) { var n = {}; for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]); if (null != e && "function" === typeof Object.getOwnPropertySymbols) { @@ -64666,141 +68629,141 @@ } return n }, - qD = Symbol("NiceModalId"), - WD = {}, - HD = Ee.createContext(WD), - KD = Ee.createContext(null), - YD = {}, - QD = {}, - ZD = 0, - XD = function() { + rF = Symbol("NiceModalId"), + iF = {}, + aF = Ee.createContext(iF), + oF = Ee.createContext(null), + sF = {}, + lF = {}, + cF = 0, + uF = function() { throw new Error("No dispatch method detected, did you embed your app with NiceModal.Provider?") }, - JD = function() { - return "_nice_modal_" + ZD++ + dF = function() { + return "_nice_modal_" + cF++ }, - eL = function(e, t) { + pF = function(e, t) { var n, r, i; - switch (void 0 === e && (e = WD), t.type) { + switch (void 0 === e && (e = iF), t.type) { case "nice-modal/show": var a = t.payload, o = a.modalId, s = a.args; - return GD(GD({}, e), ((n = {})[o] = GD(GD({}, e[o]), { + return tF(tF({}, e), ((n = {})[o] = tF(tF({}, e[o]), { id: o, args: s, - visible: !!QD[o], - delayVisible: !QD[o] + visible: !!lF[o], + delayVisible: !lF[o] }), n)); case "nice-modal/hide": - return e[o = t.payload.modalId] ? GD(GD({}, e), ((r = {})[o] = GD(GD({}, e[o]), { + return e[o = t.payload.modalId] ? tF(tF({}, e), ((r = {})[o] = tF(tF({}, e[o]), { visible: !1 }), r)) : e; case "nice-modal/remove": o = t.payload.modalId; - var l = GD({}, e); + var l = tF({}, e); return delete l[o], l; case "nice-modal/set-flags": var c = t.payload, u = (o = c.modalId, c.flags); - return GD(GD({}, e), ((i = {})[o] = GD(GD({}, e[o]), u), i)); + return tF(tF({}, e), ((i = {})[o] = tF(tF({}, e[o]), u), i)); default: return e } }; - var tL = {}, - nL = {}, - rL = function(e) { - return "string" === typeof e ? e : (e[qD] || (e[qD] = JD()), e[qD]) + var hF = {}, + fF = {}, + mF = function(e) { + return "string" === typeof e ? e : (e[rF] || (e[rF] = dF()), e[rF]) }; - function iL(e, t) { - var n = rL(e); - if ("string" === typeof e || YD[n] || lL(n, e), XD(function(e, t) { - return { - type: "nice-modal/show", - payload: { - modalId: e, - args: t - } + function gF(e, t) { + var n = mF(e); + if ("string" === typeof e || sF[n] || bF(n, e), uF(function(e, t) { + return { + type: "nice-modal/show", + payload: { + modalId: e, + args: t } - }(n, t)), !tL[n]) { + } + }(n, t)), !hF[n]) { var r, i, a = new Promise((function(e, t) { r = e, i = t })); - tL[n] = { + hF[n] = { resolve: r, reject: i, promise: a } } - return tL[n].promise + return hF[n].promise } - function aL(e) { - var t = rL(e); - if (XD(function(e) { - return { - type: "nice-modal/hide", - payload: { - modalId: e - } + function vF(e) { + var t = mF(e); + if (uF(function(e) { + return { + type: "nice-modal/hide", + payload: { + modalId: e } - }(t)), delete tL[t], !nL[t]) { + } + }(t)), delete hF[t], !fF[t]) { var n, r, i = new Promise((function(e, t) { n = e, r = t })); - nL[t] = { + fF[t] = { resolve: n, reject: r, promise: i } } - return nL[t].promise + return fF[t].promise } - var oL = function(e) { - var t = rL(e); - XD(function(e) { + var yF = function(e) { + var t = mF(e); + uF(function(e) { return { type: "nice-modal/remove", payload: { modalId: e } } - }(t)), delete tL[t], delete nL[t] + }(t)), delete hF[t], delete fF[t] }; - function sL(e, t) { - var n = (0, Ee.useContext)(HD), - r = (0, Ee.useContext)(KD), + function _F(e, t) { + var n = (0, Ee.useContext)(aF), + r = (0, Ee.useContext)(oF), i = null, a = e && "string" !== typeof e; - if (!(i = e ? rL(e) : r)) throw new Error("No modal id found in NiceModal.useModal."); + if (!(i = e ? mF(e) : r)) throw new Error("No modal id found in NiceModal.useModal."); var o = i; (0, Ee.useEffect)((function() { - a && !YD[o] && lL(o, e, t) + a && !sF[o] && bF(o, e, t) }), [a, o, e, t]); var s = n[o], l = (0, Ee.useCallback)((function(e) { - return iL(o, e) + return gF(o, e) }), [o]), c = (0, Ee.useCallback)((function() { - return aL(o) + return vF(o) }), [o]), u = (0, Ee.useCallback)((function() { - return oL(o) + return yF(o) }), [o]), d = (0, Ee.useCallback)((function(e) { var t; - null === (t = tL[o]) || void 0 === t || t.resolve(e), delete tL[o] + null === (t = hF[o]) || void 0 === t || t.resolve(e), delete hF[o] }), [o]), p = (0, Ee.useCallback)((function(e) { var t; - null === (t = tL[o]) || void 0 === t || t.reject(e), delete tL[o] + null === (t = hF[o]) || void 0 === t || t.reject(e), delete hF[o] }), [o]), h = (0, Ee.useCallback)((function(e) { var t; - null === (t = nL[o]) || void 0 === t || t.resolve(e), delete nL[o] + null === (t = fF[o]) || void 0 === t || t.resolve(e), delete fF[o] }), [o]); return (0, Ee.useMemo)((function() { return { @@ -64817,43 +68780,43 @@ } }), [o, null === s || void 0 === s ? void 0 : s.args, null === s || void 0 === s ? void 0 : s.visible, null === s || void 0 === s ? void 0 : s.keepMounted, l, c, u, d, p, h]) } - var lL = function(e, t, n) { - YD[e] ? YD[e].props = n : YD[e] = { + var bF = function(e, t, n) { + sF[e] ? sF[e].props = n : sF[e] = { comp: t, props: n } }, - cL = function() { - var e = (0, Ee.useContext)(HD), + xF = function() { + var e = (0, Ee.useContext)(aF), t = Object.keys(e).filter((function(t) { return !!e[t] })); t.forEach((function(e) { - YD[e] || QD[e] || console.warn("No modal found for id: " + e + ". Please check the id or if it is registered or declared via JSX.") + sF[e] || lF[e] || console.warn("No modal found for id: " + e + ". Please check the id or if it is registered or declared via JSX.") })); var n = t.filter((function(e) { - return YD[e] + return sF[e] })).map((function(e) { - return GD({ + return tF({ id: e - }, YD[e]) + }, sF[e]) })); return Ee.createElement(Ee.Fragment, null, n.map((function(e) { - return Ee.createElement(e.comp, GD({ + return Ee.createElement(e.comp, tF({ key: e.id, id: e.id }, e.props)) }))) }, - uL = function(e) { + wF = function(e) { var t = e.children, - n = (0, Ee.useReducer)(eL, WD), + n = (0, Ee.useReducer)(pF, iF), r = n[0]; - return XD = n[1], Ee.createElement(HD.Provider, { + return uF = n[1], Ee.createElement(aF.Provider, { value: r - }, t, Ee.createElement(cL, null)) + }, t, Ee.createElement(xF, null)) }, - dL = function(e) { + kF = function(e) { return { visible: e.visible, onOk: function() { @@ -64867,7 +68830,7 @@ } } }, - pL = function(e) { + SF = function(e) { return { visible: e.visible, onClose: function() { @@ -64878,23 +68841,23 @@ } } }, - hL = { + EF = { Provider: function(e) { var t = e.children, n = e.dispatch, r = e.modals; - return n && r ? (XD = n, Ee.createElement(HD.Provider, { + return n && r ? (uF = n, Ee.createElement(aF.Provider, { value: r - }, t, Ee.createElement(cL, null))) : Ee.createElement(uL, null, t) + }, t, Ee.createElement(xF, null))) : Ee.createElement(wF, null, t) }, ModalDef: function(e) { var t = e.id, n = e.component; return (0, Ee.useEffect)((function() { - return lL(t, n), + return bF(t, n), function() { ! function(e) { - delete YD[e] + delete sF[e] }(t) } }), [t, n]), null @@ -64903,40 +68866,40 @@ var t, n = e.modal, r = e.handler, i = void 0 === r ? {} : r, - a = $D(e, ["modal", "handler"]), + a = nF(e, ["modal", "handler"]), o = (0, Ee.useMemo)((function() { - return JD() + return dF() }), []), - s = "string" === typeof n ? null === (t = YD[n]) || void 0 === t ? void 0 : t.comp : n; + s = "string" === typeof n ? null === (t = sF[n]) || void 0 === t ? void 0 : t.comp : n; if (!i) throw new Error("No handler found in NiceModal.ModalHolder."); if (!s) throw new Error("No modal found for id: " + n + " in NiceModal.ModalHolder."); return i.show = (0, Ee.useCallback)((function(e) { - return iL(o, e) + return gF(o, e) }), [o]), i.hide = (0, Ee.useCallback)((function() { - return aL(o) - }), [o]), Ee.createElement(s, GD({ + return vF(o) + }), [o]), Ee.createElement(s, tF({ id: o }, a)) }, - NiceModalContext: HD, + NiceModalContext: aF, create: function(e) { return function(t) { var n, r = t.defaultVisible, i = t.keepMounted, a = t.id, - o = $D(t, ["defaultVisible", "keepMounted", "id"]), - s = sL(a), + o = nF(t, ["defaultVisible", "keepMounted", "id"]), + s = _F(a), l = s.args, c = s.show, - u = (0, Ee.useContext)(HD), + u = (0, Ee.useContext)(aF), d = !!u[a]; (0, Ee.useEffect)((function() { - return r && c(), QD[a] = !0, + return r && c(), lF[a] = !0, function() { - delete QD[a] + delete lF[a] } }), [a, c, r]), (0, Ee.useEffect)((function() { - i && XD(function(e, t) { + i && uF(function(e, t) { return { type: "nice-modal/set-flags", payload: { @@ -64951,23 +68914,23 @@ var p = null === (n = u[a]) || void 0 === n ? void 0 : n.delayVisible; return (0, Ee.useEffect)((function() { p && c(l) - }), [p, l, c]), d ? Ee.createElement(KD.Provider, { + }), [p, l, c]), d ? Ee.createElement(oF.Provider, { value: a - }, Ee.createElement(e, GD({}, o, l))) : null + }, Ee.createElement(e, tF({}, o, l))) : null } }, - register: lL, + register: bF, getModal: function(e) { var t; - return null === (t = YD[e]) || void 0 === t ? void 0 : t.comp + return null === (t = sF[e]) || void 0 === t ? void 0 : t.comp }, - show: iL, - hide: aL, - remove: oL, - useModal: sL, - reducer: eL, - antdModal: dL, - antdDrawer: pL, + show: gF, + hide: vF, + remove: yF, + useModal: _F, + reducer: pF, + antdModal: kF, + antdDrawer: SF, muiDialog: function(e) { return { open: e.visible, @@ -64991,15 +68954,15 @@ } } }; - const fL = hL, - mL = fL.create((({ - title: e, - content: t, - primaryCallback: n, - primaryLabel: r, - typeDialog: i - }) => { - const a = sL(), + const OF = EF, + IF = OF.create((({ + title: e, + content: t, + primaryCallback: n, + primaryLabel: r, + typeDialog: i + }) => { + const a = _F(), { t: o } = bt(["dialog"]), @@ -65014,7 +68977,7 @@ }), a.hide() } }; - return (0, QI.jsx)(dd, { + return (0, wR.jsx)(od, { open: a.visible, onOpenChange: e => a[e ? "show" : "hide"](), title: e, @@ -65024,17 +68987,17 @@ children: t }) })); - fL.register("acknowledgement-dialog", mL); - const gL = fL.create((({ - title: e, - content: t, - primaryCallback: n, - primaryLabel: r, - typeDialog: i, - secondaryCallback: a, - secondaryLabel: o - }) => { - const s = sL(), + OF.register("acknowledgement-dialog", IF); + const CF = OF.create((({ + title: e, + content: t, + primaryCallback: n, + primaryLabel: r, + typeDialog: i, + secondaryCallback: a, + secondaryLabel: o + }) => { + const s = _F(), { t: l } = bt(["dialog"]), @@ -65056,14 +69019,14 @@ form: "exitAppForm", close: !1 }]; - return (0, QI.jsx)(dd, { + return (0, wR.jsx)(od, { open: s.visible, onOpenChange: e => s[e ? "show" : "hide"](), title: e, type: null !== i && void 0 !== i ? i : "negative", close: l("dialog_action_close"), actions: c, - children: (0, QI.jsx)("form", { + children: (0, wR.jsx)("form", { id: "exitAppForm", onSubmit: e => { e.preventDefault(); @@ -65079,18 +69042,18 @@ }) }) })); - fL.register("form-dialog", gL); - const vL = fL.create((({ - title: e, - content: t, - primaryCallback: n, - primaryLabel: r, - typeDialog: i, - secondaryCallback: a, - secondaryLabel: o, - disablePrimaryUntilScrolled: s - }) => { - const l = sL(), + OF.register("form-dialog", CF); + const AF = OF.create((({ + title: e, + content: t, + primaryCallback: n, + primaryLabel: r, + typeDialog: i, + secondaryCallback: a, + secondaryLabel: o, + disablePrimaryUntilScrolled: s + }) => { + const l = _F(), { t: c } = bt(["dialog"]), @@ -65118,7 +69081,7 @@ null === n || void 0 === n || n(), u(!0) } }; - return (0, QI.jsx)(dd, { + return (0, wR.jsx)(od, { open: l.visible, onOpenChange: e => (e => { e || u(!1), l[e ? "show" : "hide"]() @@ -65130,37 +69093,49 @@ children: t }) })); - fL.register("warning-confirm-dialog", vL); - const yL = e => { + OF.register("warning-confirm-dialog", AF); + const PF = e => { var t, n, r; - const i = Wj((e => e.library)), - a = Wj((e => e.application)), + const i = jz((e => e.library)), + a = jz((e => e.application)), o = null !== (t = null === (n = a.animations) || void 0 === n || null === (r = n.appLayoutWipe) || void 0 === r ? void 0 : r.isAnimating) && void 0 !== t && t, { wipeAnimationsDisabled: s - } = ts().reduceMotion, - l = eD(), - c = nD(), + } = Qo().reduceMotion, + l = OL(), + c = CL(), { t: u } = bt("gamePage"), d = Number(getComputedStyle(document.body).getPropertyValue("--sol-motion-anim-wipe-duration").match(/\d+/)), [p, h] = (0, Ee.useState)(c.gameId), - f = aM({ + f = (({ + location: e, + delay: t + }) => { + const n = OL(), + r = (0, Ee.useRef)(n); + return (0, Ee.useEffect)((() => { + const n = setTimeout((() => { + e && r.current(e) + }), t); + return () => clearTimeout(n) + }), [e, t]), r.current + })({ location: `game-page/${p}`, delay: d / 2 }), m = (0, Ee.useCallback)(((e, t) => { e.preventDefault(), t.id === p || t.id === c.gameId || o || (h(t.id), s ? l(`game-page/${p}`) : (a.actions.setAnimatingAppLayoutWipe("full", !0), f(`game-page/${p}`))) }), [p, o, l, c.gameId, s, a.actions, f]), - g = (0, Ee.useMemo)((() => null === i || void 0 === i ? void 0 : i.availableGames.map((e => e.channels.length > 0 ? (0, QI.jsx)(Zf, { + g = (0, Ee.useMemo)((() => null === i || void 0 === i ? void 0 : i.availableGames.map((e => e.channels.length > 0 ? (0, wR.jsx)(wv, { logo: e.logo, name: e.name, active: e.id === p, onClick: t => m(t, e), "data-test-id": "game-tab" }, e.id) : null))), [i, p, m]); - return (0, QI.jsx)(Xf, { + return (0, wR.jsx)(kv, { title: u("game_page_nav_title", { count: i.availableGames.length }), @@ -65169,43 +69144,43 @@ children: g }) }, - _L = ({ - status: e - }) => { + TF = ({ + status: e + }) => { const { t: t - } = bt(["gamePage", "status"]), n = e === YI.RSISystemStatus.MAINTENANCE ? t("game_page_status_under_maintenance", { + } = bt(["gamePage", "status"]), n = e === xP.RSISystemStatus.MAINTENANCE ? t("game_page_status_under_maintenance", { ns: "gamePage" }) : t("game_page_status_issue", { ns: "gamePage" }); - return (0, QI.jsxs)(Od, { + return (0, wR.jsxs)(Zh, { title: t("status_" + e, { ns: "status" }), - status: fC(e), - children: [n, " ", (0, QI.jsx)(ft, { + status: MR(e), + children: [n, " ", (0, wR.jsx)(ft, { i18nKey: "game_page_status_more_information", ns: "gamePage", - components: [(0, QI.jsx)(am, { + components: [(0, wR.jsx)(Pv, { external: !0, - href: YI.configuration.statusUrl + href: xP.configuration.statusUrl })] })] }) }; - function bL() { - return bL = Object.assign ? Object.assign.bind() : function(e) { + function RF() { + return RF = Object.assign ? Object.assign.bind() : function(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t]; for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]) } return e - }, bL.apply(this, arguments) + }, RF.apply(this, arguments) } - function xL(e, t) { + function DF(e, t) { if (null == e) return {}; var n, r, i = {}, a = Object.keys(e); @@ -65213,48 +69188,48 @@ return i } new Set(["application/x-www-form-urlencoded", "multipart/form-data", "text/plain"]); - const kL = ["onClick", "relative", "reloadDocument", "replace", "state", "target", "to", "preventScrollReset", "unstable_viewTransition"]; + const LF = ["onClick", "relative", "reloadDocument", "replace", "state", "target", "to", "preventScrollReset", "unstable_viewTransition"]; - function wL() { + function NF() { var e; let t = null == (e = window) ? void 0 : e.__staticRouterHydrationData; - return t && t.errors && (t = bL({}, t, { - errors: SL(t.errors) + return t && t.errors && (t = RF({}, t, { + errors: jF(t.errors) })), t } - function SL(e) { + function jF(e) { if (!e) return null; let t = Object.entries(e), n = {}; for (let [i, a] of t) - if (a && "RouteErrorResponse" === a.__type) n[i] = new QT(a.status, a.statusText, a.data, !0 === a.internal); + if (a && "RouteErrorResponse" === a.__type) n[i] = new wD(a.status, a.statusText, a.data, !0 === a.internal); else if (a && "Error" === a.__type) { - if (a.__subType) { - let e = window[a.__subType]; - if ("function" === typeof e) try { - let t = new e(a.message); - t.stack = "", n[i] = t - } catch (r) {} - } - if (null == n[i]) { - let e = new Error(a.message); - e.stack = "", n[i] = e - } - } else n[i] = a; + if (a.__subType) { + let e = window[a.__subType]; + if ("function" === typeof e) try { + let t = new e(a.message); + t.stack = "", n[i] = t + } catch (r) {} + } + if (null == n[i]) { + let e = new Error(a.message); + e.stack = "", n[i] = e + } + } else n[i] = a; return n } - const EL = Ee.createContext({ + const MF = Ee.createContext({ isTransitioning: !1 }); - const OL = Ee.createContext(new Map); - const IL = Oe.startTransition, - CL = Ja.flushSync; + const FF = Ee.createContext(new Map); + const zF = Oe.startTransition, + VF = Ja.flushSync; - function AL(e) { - CL ? CL(e) : e() + function UF(e) { + VF ? VF(e) : e() } - class PL { + class BF { constructor() { this.status = "pending", this.promise = new Promise(((e, t) => { this.resolve = t => { @@ -65266,7 +69241,7 @@ } } - function TL(e) { + function GF(e) { let { fallbackElement: t, router: n, @@ -65277,7 +69252,7 @@ v7_startTransition: v } = r || {}, y = Ee.useCallback((e => { v ? function(e) { - IL ? IL(e) : e() + zF ? zF(e) : e() }(e) : e() }), [v]), _ = Ee.useCallback(((e, t) => { let { @@ -65291,7 +69266,7 @@ let l = null == n.window || "function" !== typeof n.window.document.startViewTransition; if (o && !l) { if (i) { - AL((() => { + UF((() => { p && (u && u.resolve(), p.skipTransition()), c({ isTransitioning: !0, flushSync: !0, @@ -65300,15 +69275,15 @@ }) })); let t = n.window.document.startViewTransition((() => { - AL((() => a(e))) + UF((() => a(e))) })); return t.finished.finally((() => { - AL((() => { + UF((() => { d(void 0), h(void 0), s(void 0), c({ isTransitioning: !1 }) })) - })), void AL((() => h(t))) + })), void UF((() => h(t))) } p ? (u && u.resolve(), p.skipTransition(), m({ state: e, @@ -65320,10 +69295,10 @@ currentLocation: o.currentLocation, nextLocation: o.nextLocation })) - } else i ? AL((() => a(e))) : y((() => a(e))) + } else i ? UF((() => a(e))) : y((() => a(e))) }), [n.window, p, u, g, y]); Ee.useLayoutEffect((() => n.subscribe(_)), [n, _]), Ee.useEffect((() => { - l.isTransitioning && !l.flushSync && d(new PL) + l.isTransitioning && !l.flushSync && d(new BF) }), [l]), Ee.useEffect((() => { if (u && o && n.window) { let e = o, @@ -65362,41 +69337,41 @@ }) })), [n]), x = n.basename || "/", - k = Ee.useMemo((() => ({ + w = Ee.useMemo((() => ({ router: n, navigator: b, static: !1, basename: x })), [n, b, x]); - return Ee.createElement(Ee.Fragment, null, Ee.createElement(qR.Provider, { - value: k - }, Ee.createElement(WR.Provider, { + return Ee.createElement(Ee.Fragment, null, Ee.createElement(vL.Provider, { + value: w + }, Ee.createElement(yL.Provider, { value: i - }, Ee.createElement(OL.Provider, { + }, Ee.createElement(FF.Provider, { value: g.current - }, Ee.createElement(EL.Provider, { + }, Ee.createElement(MF.Provider, { value: l - }, Ee.createElement(vD, { + }, Ee.createElement(GL, { basename: x, location: i.location, navigationType: i.historyAction, navigator: b - }, i.initialized ? Ee.createElement(RL, { + }, i.initialized ? Ee.createElement($F, { routes: n.routes, state: i }) : t))))), null) } - function RL(e) { + function $F(e) { let { routes: t, state: n } = e; - return iD(t, void 0, n) + return PL(t, void 0, n) } - const DL = "undefined" !== typeof window && "undefined" !== typeof window.document && "undefined" !== typeof window.document.createElement, - LL = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, - NL = Ee.forwardRef((function(e, t) { + const qF = "undefined" !== typeof window && "undefined" !== typeof window.document && "undefined" !== typeof window.document.createElement, + WF = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, + HF = Ee.forwardRef((function(e, t) { let n, { onClick: r, relative: i, @@ -65408,33 +69383,33 @@ preventScrollReset: u, unstable_viewTransition: d } = e, - p = xL(e, kL), + p = DF(e, LF), { basename: h - } = Ee.useContext(HR), + } = Ee.useContext(_L), f = !1; - if ("string" === typeof c && LL.test(c) && (n = c, DL)) try { + if ("string" === typeof c && WF.test(c) && (n = c, qF)) try { let e = new URL(window.location.href), t = c.startsWith("//") ? new URL(e.protocol + c) : new URL(c), - n = VT(t.pathname, h); + n = pD(t.pathname, h); t.origin === e.origin && null != n ? c = n + t.search + t.hash : f = !0 } catch (v) {} let m = function(e, t) { let { relative: n } = void 0 === t ? {} : t; - ZR() || bT(!1); + kL() || WR(!1); let { basename: r, navigator: i - } = Ee.useContext(HR), { + } = Ee.useContext(_L), { hash: a, pathname: o, search: s - } = rD(e, { + } = AL(e, { relative: n }), l = o; - return "/" !== r && (l = "/" === o ? r : $T([r, o])), i.createHref({ + return "/" !== r && (l = "/" === o ? r : gD([r, o])), i.createHref({ pathname: l, search: s, hash: a @@ -65450,17 +69425,17 @@ preventScrollReset: a, relative: o, unstable_viewTransition: s - } = void 0 === t ? {} : t, l = eD(), c = XR(), u = rD(e, { + } = void 0 === t ? {} : t, l = OL(), c = SL(), u = AL(e, { relative: o }); return Ee.useCallback((t => { if (function(e, t) { - return 0 === e.button && (!t || "_self" === t) && ! function(e) { - return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey) - }(e) - }(t, n)) { + return 0 === e.button && (!t || "_self" === t) && ! function(e) { + return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey) + }(e) + }(t, n)) { t.preventDefault(); - let n = void 0 !== r ? r : ST(c) === ST(u); + let n = void 0 !== r ? r : QR(c) === QR(u); l(e, { replace: n, state: i, @@ -65478,7 +69453,7 @@ relative: i, unstable_viewTransition: d }); - return Ee.createElement("a", bL({}, p, { + return Ee.createElement("a", RF({}, p, { href: n || m, onClick: f || a ? r : function(e) { r && r(e), e.defaultPrevented || g(e) @@ -65487,1162 +69462,40 @@ target: l })) })); - var jL, ML; + var KF, YF; (function(e) { e.UseScrollRestoration = "useScrollRestoration", e.UseSubmit = "useSubmit", e.UseSubmitFetcher = "useSubmitFetcher", e.UseFetcher = "useFetcher", e.useViewTransitionState = "useViewTransitionState" - })(jL || (jL = {})), - function(e) { - e.UseFetcher = "useFetcher", e.UseFetchers = "useFetchers", e.UseScrollRestoration = "useScrollRestoration" - }(ML || (ML = {})); - const FL = (0, Ee.forwardRef)((({ - children: e, - href: t = "", - ...n - }, r) => t.startsWith("http") ? (0, QI.jsx)("a", { - href: t, - ref: r, - rel: "noopener noreferrer", - target: "_blank", - ...n, - children: e - }) : (0, QI.jsx)(NL, { - ref: r, - to: t, - ...n, - children: e - }))); - var zL = e => "checkbox" === e.type, - VL = e => e instanceof Date, - UL = e => null == e; - const BL = e => "object" === typeof e; - var GL = e => !UL(e) && !Array.isArray(e) && BL(e) && !VL(e), - $L = e => GL(e) && e.target ? zL(e.target) ? e.target.checked : e.target.value : e, - qL = (e, t) => e.has((e => e.substring(0, e.search(/\.\d+(\.|$)/)) || e)(t)), - WL = e => Array.isArray(e) ? e.filter(Boolean) : [], - HL = e => void 0 === e, - KL = (e, t, n) => { - if (!t || !GL(e)) return n; - const r = WL(t.split(/[,[\].]+?/)).reduce(((e, t) => UL(e) ? e : e[t]), e); - return HL(r) || r === e ? HL(e[t]) ? n : e[t] : r - }; - const YL = "blur", - QL = "focusout", - ZL = "change", - XL = "onBlur", - JL = "onChange", - eN = "onSubmit", - tN = "onTouched", - nN = "all", - rN = "max", - iN = "min", - aN = "maxLength", - oN = "minLength", - sN = "pattern", - lN = "required", - cN = "validate", - uN = Ee.createContext(null), - dN = () => Ee.useContext(uN); - var pN = (e, t, n, r = !0) => { - const i = { - defaultValues: t._defaultValues - }; - for (const a in e) Object.defineProperty(i, a, { - get: () => { - const i = a; - return t._proxyFormState[i] !== nN && (t._proxyFormState[i] = !r || nN), n && (n[i] = !0), e[i] - } - }); - return i - }, - hN = e => GL(e) && !Object.keys(e).length, - fN = (e, t, n, r) => { - n(e); - const { - name: i, - ...a - } = e; - return hN(a) || Object.keys(a).length >= Object.keys(t).length || Object.keys(a).find((e => t[e] === (!r || nN))) - }, - mN = e => Array.isArray(e) ? e : [e], - gN = (e, t, n) => n && t ? e === t : !e || !t || e === t || mN(e).some((e => e && (e.startsWith(t) || t.startsWith(e)))); - - function vN(e) { - const t = Ee.useRef(e); - t.current = e, Ee.useEffect((() => { - const n = !e.disabled && t.current.subject.subscribe({ - next: t.current.next - }); - return () => { - n && n.unsubscribe() - } - }), [e.disabled]) - } - var yN = e => "string" === typeof e, - _N = (e, t, n, r, i) => yN(e) ? (r && t.watch.add(e), KL(n, e, i)) : Array.isArray(e) ? e.map((e => (r && t.watch.add(e), KL(n, e)))) : (r && (t.watchAll = !0), n), - bN = "undefined" !== typeof window && "undefined" !== typeof window.HTMLElement && "undefined" !== typeof document; - - function xN(e) { - let t; - const n = Array.isArray(e); - if (e instanceof Date) t = new Date(e); - else if (e instanceof Set) t = new Set(e); - else { - if (bN && (e instanceof Blob || e instanceof FileList) || !n && !GL(e)) return e; - if (t = n ? [] : {}, Array.isArray(e) || (e => { - const t = e.constructor && e.constructor.prototype; - return GL(t) && t.hasOwnProperty("isPrototypeOf") - })(e)) - for (const n in e) t[n] = xN(e[n]); - else t = e - } - return t - } - - function kN(e) { - const t = dN(), - { - name: n, - control: r = t.control, - shouldUnregister: i - } = e, - a = qL(r._names.array, n), - o = function(e) { - const t = dN(), - { - control: n = t.control, - name: r, - defaultValue: i, - disabled: a, - exact: o - } = e || {}, - s = Ee.useRef(r); - s.current = r, vN({ - disabled: a, - subject: n._subjects.watch, - next: e => { - gN(s.current, e.name, o) && c(xN(_N(s.current, n._names, e.values || n._formValues, !1, i))) - } - }); - const [l, c] = Ee.useState(n._getWatch(r, i)); - return Ee.useEffect((() => n._removeUnmounted())), l - }({ - control: r, - name: n, - defaultValue: KL(r._formValues, n, KL(r._defaultValues, n, e.defaultValue)), - exact: !0 - }), - s = function(e) { - const t = dN(), - { - control: n = t.control, - disabled: r, - name: i, - exact: a - } = e || {}, - [o, s] = Ee.useState(n._formState), - l = Ee.useRef(!0), - c = Ee.useRef({ - isDirty: !1, - isLoading: !1, - dirtyFields: !1, - touchedFields: !1, - isValidating: !1, - isValid: !1, - errors: !1 - }), - u = Ee.useRef(i); - return u.current = i, vN({ - disabled: r, - next: e => l.current && gN(u.current, e.name, a) && fN(e, c.current, n._updateFormState) && s({ - ...n._formState, - ...e - }), - subject: n._subjects.state - }), Ee.useEffect((() => { - l.current = !0; - const e = n._proxyFormState.isDirty && n._getDirty(); - return e !== n._formState.isDirty && n._subjects.state.next({ - isDirty: e - }), c.current.isValid && n._updateValid(!0), () => { - l.current = !1 - } - }), [n]), pN(o, n, c.current, !1) - }({ - control: r, - name: n - }), - l = Ee.useRef(r.register(n, { - ...e.rules, - value: o - })); - return Ee.useEffect((() => { - const e = (e, t) => { - const n = KL(r._fields, e); - n && (n._f.mount = t) - }; - return e(n, !0), () => { - const t = r._options.shouldUnregister || i; - (a ? t && !r._stateFlags.action : t) ? r.unregister(n): e(n, !1) - } - }), [n, r, a, i]), { - field: { - name: n, - value: o, - onChange: Ee.useCallback((e => l.current.onChange({ - target: { - value: $L(e), - name: n - }, - type: ZL - })), [n]), - onBlur: Ee.useCallback((() => l.current.onBlur({ - target: { - value: KL(r._formValues, n), - name: n - }, - type: YL - })), [n, r]), - ref: e => { - const t = KL(r._fields, n); - t && e && (t._f.ref = { - focus: () => e.focus(), - select: () => e.select(), - setCustomValidity: t => e.setCustomValidity(t), - reportValidity: () => e.reportValidity() - }) - } - }, - formState: s, - fieldState: Object.defineProperties({}, { - invalid: { - enumerable: !0, - get: () => !!KL(s.errors, n) - }, - isDirty: { - enumerable: !0, - get: () => !!KL(s.dirtyFields, n) - }, - isTouched: { - enumerable: !0, - get: () => !!KL(s.touchedFields, n) - }, - error: { - enumerable: !0, - get: () => KL(s.errors, n) - } - }) - } - } - var wN = (e, t, n, r, i) => t ? { - ...n[e], - types: { - ...n[e] && n[e].types ? n[e].types : {}, - [r]: i || !0 - } - } : {}, - SN = e => /^\w*$/.test(e), - EN = e => WL(e.replace(/["|']|\]/g, "").split(/\.|\[/)); - - function ON(e, t, n) { - let r = -1; - const i = SN(t) ? [t] : EN(t), - a = i.length, - o = a - 1; - for (; ++r < a;) { - const t = i[r]; - let a = n; - if (r !== o) { - const n = e[t]; - a = GL(n) || Array.isArray(n) ? n : isNaN(+i[r + 1]) ? {} : [] - } - e[t] = a, e = e[t] - } - return e - } - const IN = (e, t, n) => { - for (const r of n || Object.keys(e)) { - const n = KL(e, r); - if (n) { - const { - _f: e, - ...r - } = n; - if (e && t(e.name)) { - if (e.ref.focus) { - e.ref.focus(); - break - } - if (e.refs && e.refs[0].focus) { - e.refs[0].focus(); - break - } - } else GL(r) && IN(r, t) - } - } - }; - var CN = e => ({ - isOnSubmit: !e || e === eN, - isOnBlur: e === XL, - isOnChange: e === JL, - isOnAll: e === nN, - isOnTouch: e === tN - }), - AN = (e, t, n) => !n && (t.watchAll || t.watch.has(e) || [...t.watch].some((t => e.startsWith(t) && /^\.\w+/.test(e.slice(t.length))))), - PN = (e, t, n) => { - const r = WL(KL(e, n)); - return ON(r, "root", t[n]), ON(e, n, r), e - }, - TN = e => "boolean" === typeof e, - RN = e => "file" === e.type, - DN = e => "function" === typeof e, - LN = e => { - if (!bN) return !1; - const t = e ? e.ownerDocument : 0; - return e instanceof(t && t.defaultView ? t.defaultView.HTMLElement : HTMLElement) - }, - NN = e => yN(e) || Ee.isValidElement(e), - jN = e => "radio" === e.type, - MN = e => e instanceof RegExp; - const FN = { - value: !1, - isValid: !1 - }, - zN = { - value: !0, - isValid: !0 - }; - var VN = e => { - if (Array.isArray(e)) { - if (e.length > 1) { - const t = e.filter((e => e && e.checked && !e.disabled)).map((e => e.value)); - return { - value: t, - isValid: !!t.length - } - } - return e[0].checked && !e[0].disabled ? e[0].attributes && !HL(e[0].attributes.value) ? HL(e[0].value) || "" === e[0].value ? zN : { - value: e[0].value, - isValid: !0 - } : zN : FN - } - return FN - }; - const UN = { - isValid: !1, - value: null - }; - var BN = e => Array.isArray(e) ? e.reduce(((e, t) => t && t.checked && !t.disabled ? { - isValid: !0, - value: t.value - } : e), UN) : UN; - - function GN(e, t, n = "validate") { - if (NN(e) || Array.isArray(e) && e.every(NN) || TN(e) && !e) return { - type: n, - message: NN(e) ? e : "", - ref: t - } - } - var $N = e => GL(e) && !MN(e) ? e : { - value: e, - message: "" - }, - qN = async (e, t, n, r, i) => { - const { - ref: a, - refs: o, - required: s, - maxLength: l, - minLength: c, - min: u, - max: d, - pattern: p, - validate: h, - name: f, - valueAsNumber: m, - mount: g, - disabled: v - } = e._f, y = KL(t, f); - if (!g || v) return {}; - const _ = o ? o[0] : a, - b = e => { - r && _.reportValidity && (_.setCustomValidity(TN(e) ? "" : e || ""), _.reportValidity()) - }, - x = {}, - k = jN(a), - w = zL(a), - S = k || w, - E = (m || RN(a)) && HL(a.value) && HL(y) || LN(a) && "" === a.value || "" === y || Array.isArray(y) && !y.length, - O = wN.bind(null, f, n, x), - I = (e, t, n, r = aN, i = oN) => { - const o = e ? t : n; - x[f] = { - type: e ? r : i, - message: o, - ref: a, - ...O(e ? r : i, o) - } - }; - if (i ? !Array.isArray(y) || !y.length : s && (!S && (E || UL(y)) || TN(y) && !y || w && !VN(o).isValid || k && !BN(o).isValid)) { - const { - value: e, - message: t - } = NN(s) ? { - value: !!s, - message: s - } : $N(s); - if (e && (x[f] = { - type: lN, - message: t, - ref: _, - ...O(lN, t) - }, !n)) return b(t), x - } - if (!E && (!UL(u) || !UL(d))) { - let e, t; - const r = $N(d), - i = $N(u); - if (UL(y) || isNaN(y)) { - const n = a.valueAsDate || new Date(y), - o = e => new Date((new Date).toDateString() + " " + e), - s = "time" == a.type, - l = "week" == a.type; - yN(r.value) && y && (e = s ? o(y) > o(r.value) : l ? y > r.value : n > new Date(r.value)), yN(i.value) && y && (t = s ? o(y) < o(i.value) : l ? y < i.value : n < new Date(i.value)) - } else { - const n = a.valueAsNumber || (y ? +y : y); - UL(r.value) || (e = n > r.value), UL(i.value) || (t = n < i.value) - } - if ((e || t) && (I(!!e, r.message, i.message, rN, iN), !n)) return b(x[f].message), x - } - if ((l || c) && !E && (yN(y) || i && Array.isArray(y))) { - const e = $N(l), - t = $N(c), - r = !UL(e.value) && y.length > e.value, - i = !UL(t.value) && y.length < t.value; - if ((r || i) && (I(r, e.message, t.message), !n)) return b(x[f].message), x - } - if (p && !E && yN(y)) { - const { - value: e, - message: t - } = $N(p); - if (MN(e) && !y.match(e) && (x[f] = { - type: sN, - message: t, - ref: a, - ...O(sN, t) - }, !n)) return b(t), x - } - if (h) - if (DN(h)) { - const e = GN(await h(y, t), _); - if (e && (x[f] = { - ...e, - ...O(cN, e.message) - }, !n)) return b(e.message), x - } else if (GL(h)) { - let e = {}; - for (const r in h) { - if (!hN(e) && !n) break; - const i = GN(await h[r](y, t), _, r); - i && (e = { - ...i, - ...O(r, i.message) - }, b(i.message), n && (x[f] = e)) - } - if (!hN(e) && (x[f] = { - ref: _, - ...e - }, !n)) return x - } - return b(!0), x - }; - - function WN(e, t) { - const n = Array.isArray(t) ? t : SN(t) ? [t] : EN(t), - r = 1 === n.length ? e : function(e, t) { - const n = t.slice(0, -1).length; - let r = 0; - for (; r < n;) e = HL(e) ? r++ : e[t[r++]]; - return e - }(e, n), - i = n.length - 1, - a = n[i]; - return r && delete r[a], 0 !== i && (GL(r) && hN(r) || Array.isArray(r) && function(e) { - for (const t in e) - if (!HL(e[t])) return !1; - return !0 - }(r)) && WN(e, n.slice(0, -1)), e - } - - function HN() { - let e = []; - return { - get observers() { - return e - }, - next: t => { - for (const n of e) n.next(t) - }, - subscribe: t => (e.push(t), { - unsubscribe: () => { - e = e.filter((e => e !== t)) - } - }), - unsubscribe: () => { - e = [] - } - } - } - var KN = e => UL(e) || !BL(e); - - function YN(e, t) { - if (KN(e) || KN(t)) return e === t; - if (VL(e) && VL(t)) return e.getTime() === t.getTime(); - const n = Object.keys(e), - r = Object.keys(t); - if (n.length !== r.length) return !1; - for (const i of n) { - const n = e[i]; - if (!r.includes(i)) return !1; - if ("ref" !== i) { - const e = t[i]; - if (VL(n) && VL(e) || GL(n) && GL(e) || Array.isArray(n) && Array.isArray(e) ? !YN(n, e) : n !== e) return !1 - } - } - return !0 - } - var QN = e => "select-multiple" === e.type, - ZN = e => LN(e) && e.isConnected, - XN = e => { - for (const t in e) - if (DN(e[t])) return !0; - return !1 - }; - - function JN(e, t = {}) { - const n = Array.isArray(e); - if (GL(e) || n) - for (const r in e) Array.isArray(e[r]) || GL(e[r]) && !XN(e[r]) ? (t[r] = Array.isArray(e[r]) ? [] : {}, JN(e[r], t[r])) : UL(e[r]) || (t[r] = !0); - return t - } - - function ej(e, t, n) { - const r = Array.isArray(e); - if (GL(e) || r) - for (const i in e) Array.isArray(e[i]) || GL(e[i]) && !XN(e[i]) ? HL(t) || KN(n[i]) ? n[i] = Array.isArray(e[i]) ? JN(e[i], []) : { - ...JN(e[i]) - } : ej(e[i], UL(t) ? {} : t[i], n[i]) : YN(e[i], t[i]) ? delete n[i] : n[i] = !0; - return n - } - var tj = (e, t) => ej(e, t, JN(t)), - nj = (e, { - valueAsNumber: t, - valueAsDate: n, - setValueAs: r - }) => HL(e) ? e : t ? "" === e ? NaN : e ? +e : e : n && yN(e) ? new Date(e) : r ? r(e) : e; - - function rj(e) { - const t = e.ref; - if (!(e.refs ? e.refs.every((e => e.disabled)) : t.disabled)) return RN(t) ? t.files : jN(t) ? BN(e.refs).value : QN(t) ? [...t.selectedOptions].map((({ - value: e - }) => e)) : zL(t) ? VN(e.refs).value : nj(HL(t.value) ? e.ref.value : t.value, e) - } - var ij = e => HL(e) ? e : MN(e) ? e.source : GL(e) ? MN(e.value) ? e.value.source : e.value : e; - - function aj(e, t, n) { - const r = KL(e, n); - if (r || SN(n)) return { - error: r, - name: n - }; - const i = n.split("."); - for (; i.length;) { - const r = i.join("."), - a = KL(t, r), - o = KL(e, r); - if (a && !Array.isArray(a) && n !== r) return { - name: n - }; - if (o && o.type) return { - name: r, - error: o - }; - i.pop() - } - return { - name: n - } - } - const oj = { - mode: eN, - reValidateMode: JL, - shouldFocusError: !0 - }; - - function sj(e = {}, t) { - let n = { - ...oj, - ...e - }; - const r = e.resetOptions && e.resetOptions.keepDirtyValues; - let i, a = { - submitCount: 0, - isDirty: !1, - isLoading: !0, - isValidating: !1, - isSubmitted: !1, - isSubmitting: !1, - isSubmitSuccessful: !1, - isValid: !1, - touchedFields: {}, - dirtyFields: {}, - errors: {} - }, - o = {}, - s = GL(n.defaultValues) && xN(n.defaultValues) || {}, - l = n.shouldUnregister ? {} : xN(s), - c = { - action: !1, - mount: !1, - watch: !1 - }, - u = { - mount: new Set, - unMount: new Set, - array: new Set, - watch: new Set - }, - d = 0; - const p = { - isDirty: !1, - dirtyFields: !1, - touchedFields: !1, - isValidating: !1, - isValid: !1, - errors: !1 - }, - h = { - watch: HN(), - array: HN(), - state: HN() - }, - f = CN(n.mode), - m = CN(n.reValidateMode), - g = n.criteriaMode === nN, - v = async e => { - if (p.isValid || e) { - const e = n.resolver ? hN((await k()).errors) : await w(o, !0); - e !== a.isValid && (a.isValid = e, h.state.next({ - isValid: e - })) - } - }, y = e => p.isValidating && h.state.next({ - isValidating: e - }), _ = (e, t, n, r) => { - const i = KL(o, e); - if (i) { - const a = KL(l, e, HL(n) ? KL(s, e) : n); - HL(a) || r && r.defaultChecked || t ? ON(l, e, t ? a : rj(i._f)) : O(e, a), c.mount && v() - } - }, b = (e, t, n, r, i) => { - let o = !1, - l = !1; - const c = { - name: e - }; - if (!n || r) { - p.isDirty && (l = a.isDirty, a.isDirty = c.isDirty = S(), o = l !== c.isDirty); - const n = YN(KL(s, e), t); - l = KL(a.dirtyFields, e), n ? WN(a.dirtyFields, e) : ON(a.dirtyFields, e, !0), c.dirtyFields = a.dirtyFields, o = o || p.dirtyFields && l !== !n - } - if (n) { - const t = KL(a.touchedFields, e); - t || (ON(a.touchedFields, e, n), c.touchedFields = a.touchedFields, o = o || p.touchedFields && t !== n) - } - return o && i && h.state.next(c), o ? c : {} - }, x = (t, n, r, o) => { - const s = KL(a.errors, t), - l = p.isValid && TN(n) && a.isValid !== n; - var c; - if (e.delayError && r ? (c = () => ((e, t) => { - ON(a.errors, e, t), h.state.next({ - errors: a.errors - }) - })(t, r), i = e => { - clearTimeout(d), d = window.setTimeout(c, e) - }, i(e.delayError)) : (clearTimeout(d), i = null, r ? ON(a.errors, t, r) : WN(a.errors, t)), (r ? !YN(s, r) : s) || !hN(o) || l) { - const e = { - ...o, - ...l && TN(n) ? { - isValid: n - } : {}, - errors: a.errors, - name: t - }; - a = { - ...a, - ...e - }, h.state.next(e) - } - y(!1) - }, k = async e => await n.resolver(l, n.context, ((e, t, n, r) => { - const i = {}; - for (const a of e) { - const e = KL(t, a); - e && ON(i, a, e._f) - } - return { - criteriaMode: n, - names: [...e], - fields: i, - shouldUseNativeValidation: r - } - })(e || u.mount, o, n.criteriaMode, n.shouldUseNativeValidation)), w = async (e, t, r = { - valid: !0 - }) => { - for (const i in e) { - const o = e[i]; - if (o) { - const { - _f: e, - ...i - } = o; - if (e) { - const i = u.array.has(e.name), - s = await qN(o, l, g, n.shouldUseNativeValidation, i); - if (s[e.name] && (r.valid = !1, t)) break; - !t && (KL(s, e.name) ? i ? PN(a.errors, s, e.name) : ON(a.errors, e.name, s[e.name]) : WN(a.errors, e.name)) - } - i && await w(i, t, r) - } - } - return r.valid - }, S = (e, t) => (e && t && ON(l, e, t), !YN(T(), s)), E = (e, t, n) => _N(e, u, { - ...c.mount ? l : HL(t) ? s : yN(e) ? { - [e]: t - } : t - }, n, t), O = (e, t, n = {}) => { - const r = KL(o, e); - let i = t; - if (r) { - const n = r._f; - n && (!n.disabled && ON(l, e, nj(t, n)), i = LN(n.ref) && UL(t) ? "" : t, QN(n.ref) ? [...n.ref.options].forEach((e => e.selected = i.includes(e.value))) : n.refs ? zL(n.ref) ? n.refs.length > 1 ? n.refs.forEach((e => (!e.defaultChecked || !e.disabled) && (e.checked = Array.isArray(i) ? !!i.find((t => t === e.value)) : i === e.value))) : n.refs[0] && (n.refs[0].checked = !!i) : n.refs.forEach((e => e.checked = e.value === i)) : RN(n.ref) ? n.ref.value = "" : (n.ref.value = i, n.ref.type || h.watch.next({ - name: e - }))) - }(n.shouldDirty || n.shouldTouch) && b(e, i, n.shouldTouch, n.shouldDirty, !0), n.shouldValidate && P(e) - }, I = (e, t, n) => { - for (const r in t) { - const i = t[r], - a = `${e}.${r}`, - s = KL(o, a); - !u.array.has(e) && KN(i) && (!s || s._f) || VL(i) ? O(a, i, n) : I(a, i, n) - } - }, C = (e, n, r = {}) => { - const i = KL(o, e), - d = u.array.has(e), - f = xN(n); - ON(l, e, f), d ? (h.array.next({ - name: e, - values: l - }), (p.isDirty || p.dirtyFields) && r.shouldDirty && (a.dirtyFields = tj(s, l), h.state.next({ - name: e, - dirtyFields: a.dirtyFields, - isDirty: S(e, f) - }))) : !i || i._f || UL(f) ? O(e, f, r) : I(e, f, r), AN(e, u) && h.state.next({}), h.watch.next({ - name: e - }), !c.mount && t() - }, A = async e => { - const t = e.target; - let r = t.name; - const s = KL(o, r); - if (s) { - let d, _; - const S = t.type ? rj(s._f) : $L(e), - E = e.type === YL || e.type === QL, - O = !((c = s._f).mount && (c.required || c.min || c.max || c.maxLength || c.minLength || c.pattern || c.validate)) && !n.resolver && !KL(a.errors, r) && !s._f.deps || ((e, t, n, r, i) => !i.isOnAll && (!n && i.isOnTouch ? !(t || e) : (n ? r.isOnBlur : i.isOnBlur) ? !e : !(n ? r.isOnChange : i.isOnChange) || e))(E, KL(a.touchedFields, r), a.isSubmitted, m, f), - I = AN(r, u, E); - ON(l, r, S), E ? (s._f.onBlur && s._f.onBlur(e), i && i(0)) : s._f.onChange && s._f.onChange(e); - const C = b(r, S, E, !1), - A = !hN(C) || I; - if (!E && h.watch.next({ - name: r, - type: e.type - }), O) return p.isValid && v(), A && h.state.next({ - name: r, - ...I ? {} : C - }); - if (!E && I && h.state.next({}), y(!0), n.resolver) { - const { - errors: e - } = await k([r]), t = aj(a.errors, o, r), n = aj(e, o, t.name || r); - d = n.error, r = n.name, _ = hN(e) - } else d = (await qN(s, l, g, n.shouldUseNativeValidation))[r], d ? _ = !1 : p.isValid && (_ = await w(o, !0)); - s._f.deps && P(s._f.deps), x(r, _, d, C) - } - var c - }, P = async (e, t = {}) => { - let r, i; - const s = mN(e); - if (y(!0), n.resolver) { - const t = await (async e => { - const { - errors: t - } = await k(); - if (e) - for (const n of e) { - const e = KL(t, n); - e ? ON(a.errors, n, e) : WN(a.errors, n) - } else a.errors = t; - return t - })(HL(e) ? e : s); - r = hN(t), i = e ? !s.some((e => KL(t, e))) : r - } else e ? (i = (await Promise.all(s.map((async e => { - const t = KL(o, e); - return await w(t && t._f ? { - [e]: t - } : t) - })))).every(Boolean), (i || a.isValid) && v()) : i = r = await w(o); - return h.state.next({ - ...!yN(e) || p.isValid && r !== a.isValid ? {} : { - name: e - }, - ...n.resolver || !e ? { - isValid: r - } : {}, - errors: a.errors, - isValidating: !1 - }), t.shouldFocus && !i && IN(o, (e => e && KL(a.errors, e)), e ? s : u.mount), i - }, T = e => { - const t = { - ...s, - ...c.mount ? l : {} - }; - return HL(e) ? t : yN(e) ? KL(t, e) : e.map((e => KL(t, e))) - }, R = (e, t) => ({ - invalid: !!KL((t || a).errors, e), - isDirty: !!KL((t || a).dirtyFields, e), - isTouched: !!KL((t || a).touchedFields, e), - error: KL((t || a).errors, e) - }), D = (e, t = {}) => { - for (const r of e ? mN(e) : u.mount) u.mount.delete(r), u.array.delete(r), KL(o, r) && (t.keepValue || (WN(o, r), WN(l, r)), !t.keepError && WN(a.errors, r), !t.keepDirty && WN(a.dirtyFields, r), !t.keepTouched && WN(a.touchedFields, r), !n.shouldUnregister && !t.keepDefaultValue && WN(s, r)); - h.watch.next({}), h.state.next({ - ...a, - ...t.keepDirty ? { - isDirty: S() - } : {} - }), !t.keepIsValid && v() - }, L = (e, t = {}) => { - let r = KL(o, e); - const i = TN(t.disabled); - return ON(o, e, { - ...r || {}, - _f: { - ...r && r._f ? r._f : { - ref: { - name: e - } - }, - name: e, - mount: !0, - ...t - } - }), u.mount.add(e), r ? i && ON(l, e, t.disabled ? void 0 : KL(l, e, rj(r._f))) : _(e, !0, t.value), { - ...i ? { - disabled: t.disabled - } : {}, - ...n.shouldUseNativeValidation ? { - required: !!t.required, - min: ij(t.min), - max: ij(t.max), - minLength: ij(t.minLength), - maxLength: ij(t.maxLength), - pattern: ij(t.pattern) - } : {}, - name: e, - onChange: A, - onBlur: A, - ref: i => { - if (i) { - L(e, t), r = KL(o, e); - const n = HL(i.value) && i.querySelectorAll && i.querySelectorAll("input,select,textarea")[0] || i, - a = (e => jN(e) || zL(e))(n), - l = r._f.refs || []; - if (a ? l.find((e => e === n)) : n === r._f.ref) return; - ON(o, e, { - _f: { - ...r._f, - ...a ? { - refs: [...l.filter(ZN), n, ...Array.isArray(KL(s, e)) ? [{}] : []], - ref: { - type: n.type, - name: e - } - } : { - ref: n - } - } - }), _(e, !1, void 0, n) - } else r = KL(o, e, {}), r._f && (r._f.mount = !1), (n.shouldUnregister || t.shouldUnregister) && (!qL(u.array, e) || !c.action) && u.unMount.add(e) - } - } - }, N = () => n.shouldFocusError && IN(o, (e => e && KL(a.errors, e)), u.mount), j = (n, i = {}) => { - const d = n || s, - f = xN(d), - m = n && !hN(n) ? f : s; - if (i.keepDefaultValues || (s = d), !i.keepValues) { - if (i.keepDirtyValues || r) - for (const e of u.mount) KL(a.dirtyFields, e) ? ON(m, e, KL(l, e)) : C(e, KL(m, e)); - else { - if (bN && HL(n)) - for (const e of u.mount) { - const t = KL(o, e); - if (t && t._f) { - const e = Array.isArray(t._f.refs) ? t._f.refs[0] : t._f.ref; - if (LN(e)) { - const t = e.closest("form"); - if (t) { - t.reset(); - break - } - } - } - } - o = {} - } - l = e.shouldUnregister ? i.keepDefaultValues ? xN(s) : {} : f, h.array.next({ - values: m - }), h.watch.next({ - values: m - }) - } - u = { - mount: new Set, - unMount: new Set, - array: new Set, - watch: new Set, - watchAll: !1, - focus: "" - }, !c.mount && t(), c.mount = !p.isValid || !!i.keepIsValid, c.watch = !!e.shouldUnregister, h.state.next({ - submitCount: i.keepSubmitCount ? a.submitCount : 0, - isDirty: i.keepDirty || i.keepDirtyValues ? a.isDirty : !(!i.keepDefaultValues || YN(n, s)), - isSubmitted: !!i.keepIsSubmitted && a.isSubmitted, - dirtyFields: i.keepDirty || i.keepDirtyValues ? a.dirtyFields : i.keepDefaultValues && n ? tj(s, n) : {}, - touchedFields: i.keepTouched ? a.touchedFields : {}, - errors: i.keepErrors ? a.errors : {}, - isSubmitting: !1, - isSubmitSuccessful: !1 - }) - }, M = (e, t) => j(DN(e) ? e(l) : e, t); - return DN(n.defaultValues) && n.defaultValues().then((e => { - M(e, n.resetOptions), h.state.next({ - isLoading: !1 - }) - })), { - control: { - register: L, - unregister: D, - getFieldState: R, - _executeSchema: k, - _focusError: N, - _getWatch: E, - _getDirty: S, - _updateValid: v, - _removeUnmounted: () => { - for (const e of u.unMount) { - const t = KL(o, e); - t && (t._f.refs ? t._f.refs.every((e => !ZN(e))) : !ZN(t._f.ref)) && D(e) - } - u.unMount = new Set - }, - _updateFieldArray: (e, t = [], n, r, i = !0, u = !0) => { - if (r && n) { - if (c.action = !0, u && Array.isArray(KL(o, e))) { - const t = n(KL(o, e), r.argA, r.argB); - i && ON(o, e, t) - } - if (u && Array.isArray(KL(a.errors, e))) { - const t = n(KL(a.errors, e), r.argA, r.argB); - i && ON(a.errors, e, t), ((e, t) => { - !WL(KL(e, t)).length && WN(e, t) - })(a.errors, e) - } - if (p.touchedFields && u && Array.isArray(KL(a.touchedFields, e))) { - const t = n(KL(a.touchedFields, e), r.argA, r.argB); - i && ON(a.touchedFields, e, t) - } - p.dirtyFields && (a.dirtyFields = tj(s, l)), h.state.next({ - name: e, - isDirty: S(e, t), - dirtyFields: a.dirtyFields, - errors: a.errors, - isValid: a.isValid - }) - } else ON(l, e, t) - }, - _getFieldArray: t => WL(KL(c.mount ? l : s, t, e.shouldUnregister ? KL(s, t, []) : [])), - _reset: j, - _updateFormState: e => { - a = { - ...a, - ...e - } - }, - _subjects: h, - _proxyFormState: p, - get _fields() { - return o - }, - get _formValues() { - return l - }, - get _stateFlags() { - return c - }, - set _stateFlags(e) { - c = e - }, - get _defaultValues() { - return s - }, - get _names() { - return u - }, - set _names(e) { - u = e - }, - get _formState() { - return a - }, - set _formState(e) { - a = e - }, - get _options() { - return n - }, - set _options(e) { - n = { - ...n, - ...e - } - } - }, - trigger: P, - register: L, - handleSubmit: (e, t) => async r => { - r && (r.preventDefault && r.preventDefault(), r.persist && r.persist()); - let i = xN(l); - if (h.state.next({ - isSubmitting: !0 - }), n.resolver) { - const { - errors: e, - values: t - } = await k(); - a.errors = e, i = t - } else await w(o); - hN(a.errors) ? (h.state.next({ - errors: {} - }), await e(i, r)) : (t && await t({ - ...a.errors - }, r), N()), h.state.next({ - isSubmitted: !0, - isSubmitting: !1, - isSubmitSuccessful: hN(a.errors), - submitCount: a.submitCount + 1, - errors: a.errors - }) - }, - watch: (e, t) => DN(e) ? h.watch.subscribe({ - next: n => e(E(void 0, t), n) - }) : E(e, t, !0), - setValue: C, - getValues: T, - reset: M, - resetField: (e, t = {}) => { - KL(o, e) && (HL(t.defaultValue) ? C(e, KL(s, e)) : (C(e, t.defaultValue), ON(s, e, t.defaultValue)), t.keepTouched || WN(a.touchedFields, e), t.keepDirty || (WN(a.dirtyFields, e), a.isDirty = t.defaultValue ? S(e, KL(s, e)) : S()), t.keepError || (WN(a.errors, e), p.isValid && v()), h.state.next({ - ...a - })) - }, - clearErrors: e => { - e ? mN(e).forEach((e => WN(a.errors, e))) : a.errors = {}, h.state.next({ - errors: a.errors - }) - }, - unregister: D, - setError: (e, t, n) => { - const r = (KL(o, e, { - _f: {} - })._f || {}).ref; - ON(a.errors, e, { - ...t, - ref: r - }), h.state.next({ - name: e, - errors: a.errors, - isValid: !1 - }), n && n.shouldFocus && r && r.focus && r.focus() - }, - setFocus: (e, t = {}) => { - const n = KL(o, e), - r = n && n._f; - if (r) { - const e = r.refs ? r.refs[0] : r.ref; - e.focus && (e.focus(), t.shouldSelect && e.select()) - } - }, - getFieldState: R - } - } - - function lj(e = {}) { - const t = Ee.useRef(), - [n, r] = Ee.useState({ - isDirty: !1, - isValidating: !1, - isLoading: !0, - isSubmitted: !1, - isSubmitting: !1, - isSubmitSuccessful: !1, - isValid: !1, - submitCount: 0, - dirtyFields: {}, - touchedFields: {}, - errors: {}, - defaultValues: DN(e.defaultValues) ? void 0 : e.defaultValues - }); - t.current || (t.current = { - ...sj(e, (() => r((e => ({ - ...e - }))))), - formState: n - }); - const i = t.current.control; - return i._options = e, vN({ - subject: i._subjects.state, - next: e => { - fN(e, i._proxyFormState, i._updateFormState, !0) && r({ - ...i._formState - }) - } - }), Ee.useEffect((() => { - i._stateFlags.mount || (i._updateValid(), i._stateFlags.mount = !0), i._stateFlags.watch && (i._stateFlags.watch = !1, i._subjects.state.next({})), i._removeUnmounted() - })), Ee.useEffect((() => { - e.values && !YN(e.values, i._defaultValues) && i._reset(e.values, i._options.resetOptions) - }), [e.values, i]), Ee.useEffect((() => { - n.submitCount && i._focusError() - }), [i, n.submitCount]), t.current.formState = pN(n, i), t.current - } - const cj = ({ - children: e, - control: t, - name: n, - defaultValue: r, - required: i, - rules: a, - selectProps: o, - ...s - }) => { + })(KF || (KF = {})), + function(e) { + e.UseFetcher = "useFetcher", e.UseFetchers = "useFetchers", e.UseScrollRestoration = "useScrollRestoration" + }(YF || (YF = {})); + const QF = (0, Ee.forwardRef)((({ + children: e, + href: t = "", + ...n + }, r) => t.startsWith("http") ? (0, wR.jsx)("a", { + href: t, + ref: r, + rel: "noopener noreferrer", + target: "_blank", + ...n, + children: e + }) : (0, wR.jsx)(HF, { + ref: r, + to: t, + ...n, + children: e + }))), + ZF = ({ + children: e, + control: t, + name: n, + defaultValue: r, + required: i, + rules: a, + selectProps: o, + ...s + }) => { var l; const { field: { @@ -66655,7 +69508,7 @@ error: h, invalid: f } - } = kN({ + } = AN({ name: n, control: t, defaultValue: r, @@ -66664,12 +69517,12 @@ ...a } }); - return (0, QI.jsx)(_d, { + return (0, wR.jsx)($h, { error: null === h || void 0 === h ? void 0 : h.message, invalid: f, required: null !== (l = !(null === a || void 0 === a || !a.required)) && void 0 !== l ? l : i, ...s, - children: (0, QI.jsx)(Cm, { + children: (0, wR.jsx)(ey, { name: n, value: null !== c && void 0 !== c ? c : "", onBlur: u, @@ -66680,16 +69533,16 @@ }) }) }, - uj = ({ - control: e, - name: t, - defaultValue: n, - required: r, - rules: i, - type: a, - inputProps: o, - ...s - }) => { + XF = ({ + control: e, + name: t, + defaultValue: n, + required: r, + rules: i, + type: a, + inputProps: o, + ...s + }) => { var l; const { field: { @@ -66702,7 +69555,7 @@ error: h, invalid: f } - } = kN({ + } = AN({ name: t, control: e, defaultValue: n, @@ -66713,12 +69566,12 @@ }), { t: m } = bt("form"); - return (0, QI.jsx)(_d, { + return (0, wR.jsx)($h, { error: null === h || void 0 === h ? void 0 : h.message, invalid: f, required: null !== (l = !(null === i || void 0 === i || !i.required)) && void 0 !== l ? l : r, ...s, - children: (0, QI.jsx)(im, { + children: (0, wR.jsx)(Av, { name: t, value: null !== c && void 0 !== c ? c : "", onBlur: u, @@ -66731,24 +69584,24 @@ }) }) }, - dj = (e, t) => ({ + JF = (e, t) => ({ dialog: { actions: { showExitAppDialog: () => { const e = t(); - return fL.show(gL, { + return OF.show(CF, { title: _e.t("dialog_warning_exit_app_title", { ns: "dialog" }), - content: (0, QI.jsx)(id, { + content: (0, wR.jsx)(Ju, { description: _e.t("dialog_warning_exit_app_text", { ns: "dialog" }), gap: "100", - children: (0, QI.jsx)(ad, { + children: (0, wR.jsx)(ed, { name: "hideDialog", value: "checked", - children: (0, QI.jsx)(ft, { + children: (0, wR.jsx)(ft, { i18nKey: "dialog_warning_exit_app_checkbox", t: _e.t, ns: "dialog" @@ -66761,7 +69614,7 @@ primaryCallback: () => e.window.actions.exitLauncher() }) }, - showWarningExitAppGameRuningDialog: () => fL.show(vL, { + showWarningExitAppGameRuningDialog: () => OF.show(AF, { title: _e.t("dialog_warning_exit_app_title", { ns: "dialog" }), @@ -66774,7 +69627,7 @@ }), showDiscoverDialog: () => { const e = t(); - return fL.show(vL, { + return OF.show(AF, { title: _e.t("dialog_discover_title", { ns: "dialog" }), @@ -66800,7 +69653,7 @@ showLogoutDialog: e => { const n = t(), r = n.settings.appSettings.accessibility.reduceMotion.wipeAnimationsDisabled; - return fL.show(vL, { + return OF.show(AF, { title: _e.t("dialog_warning_logout_title", { ns: "dialog" }), @@ -66811,24 +69664,24 @@ ns: "dialog" }), primaryCallback: async () => { - if (r) return void await jP(); + if (r) return void await Kj(); const e = Number(getComputedStyle(document.body).getPropertyValue("--sol-motion-anim-wipe-duration").match(/\d+/)); n.application.actions.setAnimatingAppLayoutWipe("in", !0); - const t = setTimeout((() => jP()), e / 2); + const t = setTimeout((() => Kj()), e / 2); return () => clearTimeout(t) } }) }, - showOsRequirementsDialog: e => fL.show(mL, { + showOsRequirementsDialog: e => OF.show(IF, { title: _e.t("error_os_requirements_title", { ns: "errors" }), - content: (0, QI.jsx)(ft, { + content: (0, wR.jsx)(ft, { i18nKey: "error_os_requirements_text", t: _e.t, ns: "errors", - components: [(0, QI.jsx)(am, { - href: YI.configuration.minimumRequirementsUrl, + components: [(0, wR.jsx)(Pv, { + href: xP.configuration.minimumRequirementsUrl, external: !0 })], values: { @@ -66836,7 +69689,7 @@ } }) }), - showCpuRequirementsDialog: () => fL.show(mL, { + showCpuRequirementsDialog: () => OF.show(IF, { title: _e.t("error_cpu_requirements_title", { ns: "errors" }), @@ -66845,26 +69698,26 @@ }) }), showWarningDialogErrorOccured: ({ - title: e, - content: t, - primaryCallback: n, - primaryLabel: r, - secondaryLabel: i, - secondaryCallback: a, - error: o - }) => fL.show(vL, { + title: e, + content: t, + primaryCallback: n, + primaryLabel: r, + secondaryLabel: i, + secondaryCallback: a, + error: o + }) => OF.show(AF, { title: null !== e && void 0 !== e ? e : _e.t("error_generic_title", { ns: "errors" }), - content: null !== t && void 0 !== t ? t : (0, QI.jsx)(ft, { + content: null !== t && void 0 !== t ? t : (0, wR.jsx)(ft, { i18nKey: "error_generic_content", t: _e.t, ns: "errors", - components: [(0, QI.jsx)(am, { - href: YI.configuration.issueCouncilUrl, + components: [(0, wR.jsx)(Pv, { + href: xP.configuration.issueCouncilUrl, external: !0 - }), (0, QI.jsx)(am, { - href: YI.configuration.filesSupportUrl, + }), (0, wR.jsx)(Pv, { + href: xP.configuration.filesSupportUrl, external: !0 })], values: { @@ -66881,7 +69734,7 @@ }), secondaryCallback: () => null === a || void 0 === a ? void 0 : a() }), - showWarningDialogCacheClear: () => fL.show(vL, { + showWarningDialogCacheClear: () => OF.show(AF, { title: _e.t("dialog_debug_cache_clear_title", { ns: "dialog" }), @@ -66900,24 +69753,24 @@ }) }), showAcknowledgeDialogErrorOccured: ({ - title: e, - content: t, - primaryCallback: n, - primaryLabel: r, - error: i - }) => fL.show(mL, { + title: e, + content: t, + primaryCallback: n, + primaryLabel: r, + error: i + }) => OF.show(IF, { title: null !== e && void 0 !== e ? e : _e.t("error_generic_title", { ns: "errors" }), - content: null !== t && void 0 !== t ? t : (0, QI.jsx)(ft, { + content: null !== t && void 0 !== t ? t : (0, wR.jsx)(ft, { i18nKey: "error_generic_content", t: _e.t, ns: "errors", - components: [(0, QI.jsx)(am, { - href: YI.configuration.issueCouncilUrl, + components: [(0, wR.jsx)(Pv, { + href: xP.configuration.issueCouncilUrl, external: !0 - }), (0, QI.jsx)(am, { - href: YI.configuration.filesSupportUrl, + }), (0, wR.jsx)(Pv, { + href: xP.configuration.filesSupportUrl, external: !0 })], values: { @@ -66927,10 +69780,10 @@ primaryCallback: () => null === n || void 0 === n ? void 0 : n(), primaryLabel: null !== r && void 0 !== r ? r : void 0 }), - showWarningsDialog: (e, t) => fL.show(vL, { + showWarningsDialog: (e, t) => OF.show(AF, { title: e, typeDialog: "positive", - content: iC(t), + content: AR(t), secondaryLabel: _e.t("dialog_action_close", { ns: "dialog" }), @@ -66938,10 +69791,10 @@ ns: "dialog" }) }), - showAgreementsDialog: (e, t, n) => fL.show(vL, { + showAgreementsDialog: (e, t, n) => OF.show(AF, { title: e, typeDialog: "positive", - content: iC(`

${t}

${n}`), + content: AR(`

${t}

${n}`), secondaryLabel: _e.t("dialog_action_decline", { ns: "dialog" }), @@ -66952,7 +69805,7 @@ }), showResetSettingsDialog: e => { const n = t(); - return fL.show(vL, { + return OF.show(AF, { title: _e.t("dialog_settings_reset_title", { ns: "dialog" }), @@ -66972,7 +69825,7 @@ }, showGameNotInstalledDialog: e => { const n = t(); - return fL.show(vL, { + return OF.show(AF, { title: _e.t("dialog_settings_game_not_installed_title", { ns: "dialog" }), @@ -66986,85 +69839,89 @@ ns: "dialog" }), primaryCallback: () => { - n.installer.actions.addInstallationToQueue(e, YI.InstallationType.INSTALL) + n.installer.actions.addInstallationToQueue(e, xP.InstallationType.INSTALL) } }) }, - showGameStartInstallationDialog: async e => { - const n = t(), - r = n.settings.appSettings.accessibility.reduceMotion.wipeAnimationsDisabled, - i = await TD(e); - return fL.show(vL, { + showGameStartInstallationDialog: async (e, n, r) => { + const i = t(), + a = i.settings.appSettings.accessibility.reduceMotion.wipeAnimationsDisabled, + o = await GM(e); + return OF.show(AF, { typeDialog: "default", title: _e.t("dialog_start_installation_title", { ns: "dialog", game: e.gameName, channel: e.channelName }), - content: (0, QI.jsxs)(Ps, { + content: (0, wR.jsxs)(Es, { role: "group", gap: "100", vertical: !0, - children: [(0, QI.jsxs)(Ps, { + children: [(0, wR.jsxs)(Es, { role: "group", gap: "0", vertical: !0, - children: [(0, QI.jsx)("p", { + children: [(0, wR.jsx)("p", { children: _e.t("dialog_start_installation_content_location", { ns: "dialog" }) - }), (0, QI.jsxs)("p", { - children: [(0, QI.jsx)("span", { + }), (0, wR.jsxs)("p", { + children: [(0, wR.jsx)("span", { className: "sol-u-color-foreground", - children: dC(n.settings.library.defaultLibraryFolder) - }), i.installDir, "\\", e.channelId] + children: LR(n) + }), o.installDir, "\\", e.channelId] })] - }), (0, QI.jsx)("p", { - children: _e.t("dialog_start_installation_content_location_settings", { + }), (0, wR.jsx)("p", { + children: r ? _e.t("dialog_start_installation_content_location_close_popover", { + ns: "dialog" + }) : _e.t("dialog_start_installation_content_location_settings", { ns: "dialog" }) })] }), - secondaryLabel: _e.t("dialog_start_installation_action_go_to_settings", { + secondaryLabel: r ? _e.t("dialog_action_cancel", { + ns: "dialog" + }) : _e.t("dialog_start_installation_action_go_to_settings", { ns: "dialog" }), - secondaryCallback: () => { - const t = MT(`/${XM.SETTINGS}/${XM.SETTINGS_GAMES}`, { + secondaryCallback: r ? void 0 : () => { + const t = cD(`/${CV.SETTINGS}/${CV.SETTINGS_GAMES}`, { gameId: e.gameId, channelId: e.channelId }); - if (!r) return void(window.location.hash = t); - const i = Number(getComputedStyle(document.body).getPropertyValue("--sol-motion-anim-wipe-duration").match(/\d+/)); - n.application.actions.setAnimatingAppLayoutWipe("full", !0); - const a = setTimeout((() => { + if (!a) return void(window.location.hash = t); + const n = Number(getComputedStyle(document.body).getPropertyValue("--sol-motion-anim-wipe-duration").match(/\d+/)); + i.application.actions.setAnimatingAppLayoutWipe("full", !0); + const r = setTimeout((() => { window.location.hash = t - }), i / 2); - return () => clearTimeout(a) + }), n / 2); + return () => clearTimeout(r) }, primaryLabel: _e.t("dialog_start_installation_action_install", { ns: "dialog" }), primaryCallback: () => { - n.installer.actions.addInstallationToQueue(e, YI.InstallationType.INSTALL) + i.installer.actions.addInstallationToQueue(e, xP.InstallationType.INSTALL) } }) }, showGameCancelInstallationDialog: e => { const n = t(); - return fL.show(vL, { + return OF.show(AF, { title: _e.t("dialog_cancel_installation_title", { ns: "dialog" }), - content: (0, QI.jsxs)(Ps, { + content: (0, wR.jsxs)(Es, { role: "group", gap: "100", vertical: !0, - children: [(0, QI.jsx)("p", { + children: [(0, wR.jsx)("p", { children: _e.t("dialog_cancel_installation_content", { ns: "dialog", info: `${e.game.gameName} - ${e.release?e.release.versionLabel+" - ":""}${e.game.channelId}` }) - }), e.type === YI.InstallationType.INSTALL && (0, QI.jsx)(ad, { + }), e.type === xP.InstallationType.INSTALL && (0, wR.jsx)(ed, { type: "checkbox", onChange: t => n.installer.actions.setInstallationOptions(e.game, { keepFilesOnCancel: t.target.checked @@ -67088,7 +69945,7 @@ } }) }, - showGameChannelUpdateAvailableDialog: e => fL.show(mL, { + showGameChannelUpdateAvailableDialog: e => OF.show(IF, { typeDialog: "positive", title: _e.t("dialog_launch_check_update_available_title", { ns: "dialog" @@ -67099,26 +69956,26 @@ channel: e.channelName }) }), - showWarningUninstallDialog: e => fL.show(gL, { + showWarningUninstallDialog: e => OF.show(CF, { title: _e.t("dialog_warning_uninstall_title", { game: e.gameName, channel: e.channelName, ns: "dialog" }), - content: (0, QI.jsx)(id, { + content: (0, wR.jsx)(Ju, { description: _e.t("dialog_warning_uninstall_text", { ns: "dialog" }), gap: "100", - children: (0, QI.jsx)(ad, { + children: (0, wR.jsx)(ed, { name: "keepUserFolder", value: "checked", description: be("dialog_warning_uninstall_userFolder_checkbox_description", { ns: "dialog", - path: dC(`${e.libraryFolder}\\${e.installDir}\\${e.channelId}\\user`) + path: LR(`${e.libraryFolder}\\${e.installDir}\\${e.channelId}\\user`) }), defaultChecked: !0, - children: (0, QI.jsx)(ft, { + children: (0, wR.jsx)(ft, { i18nKey: "dialog_warning_uninstall_userFolder_checkbox", t: _e.t, ns: "dialog" @@ -67132,13 +69989,13 @@ ns: "dialog" }) }), - showLostConnectionDialog: () => fL.show(mL, { + showLostConnectionDialog: () => OF.show(IF, { typeDialog: "default", title: _e.t("dialog_warning_lost_connection_title", { ns: "dialog" }), - content: (0, QI.jsx)("span", { - children: (0, QI.jsx)(ft, { + content: (0, wR.jsx)("span", { + children: (0, wR.jsx)(ft, { i18nKey: "dialog_warning_lost_connection_content", t: _e.t, ns: "dialog" @@ -67147,11 +70004,334 @@ primaryLabel: _e.t("dialog_action_continue_offline", { ns: "dialog" }) + }), + showDuplicateLibraryDialog: () => OF.show(IF, { + typeDialog: "negative", + title: _e.t("dialog_warning_duplicate_library_title", { + ns: "dialog" + }), + content: (0, wR.jsx)("span", { + children: (0, wR.jsx)(ft, { + i18nKey: "dialog_warning_duplicate_library_content", + t: _e.t, + ns: "dialog" + }) + }), + primaryLabel: _e.t("dialog_action_ok", { + ns: "dialog" + }) + }), + showDeleteLibraryDialog: (e, t) => OF.show(AF, { + typeDialog: "negative", + title: _e.t("dialog_warning_delete_game_library_title", { + ns: "dialog" + }), + content: (0, wR.jsxs)(Es, { + role: "group", + gap: "150", + vertical: !0, + children: [(0, wR.jsxs)(Es, { + gap: "0", + vertical: !0, + children: [(0, wR.jsx)("p", { + children: (0, wR.jsx)(ft, { + i18nKey: "dialog_warning_delete_game_library_location", + t: _e.t, + ns: "dialog" + }) + }), (0, wR.jsx)("b", { + children: e + })] + }), t.filter((e => e.channels.length > 0)).length > 0 && (0, wR.jsxs)(Es, { + gap: "0", + vertical: !0, + children: [(0, wR.jsx)("p", { + children: (0, wR.jsx)(ft, { + i18nKey: "dialog_warning_delete_game_library_games", + t: _e.t, + ns: "dialog" + }) + }), null === t || void 0 === t ? void 0 : t.map(((e, t) => e.channels.map((n => (0, wR.jsxs)("b", { + children: [e.name, " - ", n.name] + }, t))))), (0, wR.jsx)("p", { + children: (0, wR.jsx)(ft, { + i18nKey: "dialog_warning_delete_game_library_content", + t: _e.t, + ns: "dialog" + }) + })] + })] + }), + primaryLabel: _e.t("dialog_action_delete", { + ns: "dialog" + }), + secondaryLabel: _e.t("dialog_action_cancel", { + ns: "dialog" + }) + }), + showReplaceInstalledLibraryDialog: (e, t, n) => OF.show(AF, { + typeDialog: "notice", + title: _e.t("dialog_warning_change_game_title_dialog", { + ns: "dialog" + }), + content: (0, wR.jsxs)(Es, { + role: "group", + gap: "150", + vertical: !0, + children: [(0, wR.jsx)("p", { + children: (0, wR.jsx)(ft, { + i18nKey: "dialog_warning_change_installed_game_question_dialog", + t: _e.t, + ns: "dialog" + }) + }), (0, wR.jsxs)(Es, { + gap: "0", + vertical: !0, + children: [(0, wR.jsx)(ft, { + i18nKey: "dialog_warning_change_game_current_dialog", + t: _e.t, + ns: "dialog" + }), (0, wR.jsxs)(Es, { + gap: "50", + children: [(0, wR.jsx)(ds, { + variant: "body-m-bold", + children: t + }), (0, wR.jsx)(gs, { + icon: pM, + variant: "plain", + size: "small", + onClick: () => window.launcherAPI.settings.openFileSystemDialog(t) + })] + })] + }), (0, wR.jsxs)(Es, { + gap: "0", + vertical: !0, + children: [(0, wR.jsx)(ft, { + i18nKey: "dialog_warning_change_game_new_dialog", + t: _e.t, + ns: "dialog" + }), (0, wR.jsxs)(Es, { + gap: "50", + children: [(0, wR.jsx)(ds, { + variant: "body-m-bold", + multiline: !0, + children: e + }), (0, wR.jsx)(gs, { + icon: pM, + variant: "plain", + size: "small", + onClick: () => window.launcherAPI.settings.openFileSystemDialog(e) + })] + })] + }), n.filter((e => e.channels.length > 0)).length > 0 && (0, wR.jsxs)(Es, { + gap: "0", + vertical: !0, + children: [(0, wR.jsx)("p", { + children: (0, wR.jsx)(ft, { + i18nKey: "dialog_warning_delete_game_library_games", + t: _e.t, + ns: "dialog" + }) + }), null === n || void 0 === n ? void 0 : n.map(((e, t) => e.channels.map((n => (0, wR.jsxs)("b", { + children: [e.name, " - ", n.name] + }, t))))), (0, wR.jsx)("p", { + children: (0, wR.jsx)(ft, { + i18nKey: "dialog_warning_change_game_warn_dialog", + t: _e.t, + ns: "dialog" + }) + })] + })] + }), + primaryLabel: _e.t("dialog_action_proceed", { + ns: "dialog" + }), + secondaryLabel: _e.t("dialog_action_cancel", { + ns: "dialog" + }) + }), + showReplaceInstalledDefaultLibraryDialog: (e, t, n) => OF.show(AF, { + typeDialog: "notice", + title: _e.t("dialog_warning_set_default_library_title", { + ns: "dialog" + }), + content: (0, wR.jsxs)(Es, { + role: "group", + gap: "150", + vertical: !0, + children: [(0, wR.jsx)("p", { + children: (0, wR.jsx)(ft, { + i18nKey: "dialog_warning_set_default_library_content", + t: _e.t, + ns: "dialog" + }) + }), (0, wR.jsxs)(Es, { + gap: "0", + vertical: !0, + children: [(0, wR.jsx)(ft, { + i18nKey: "dialog_warning_change_game_current_dialog", + t: _e.t, + ns: "dialog" + }), (0, wR.jsxs)(Es, { + gap: "50", + children: [(0, wR.jsx)(ds, { + variant: "body-m-bold", + children: t + }), (0, wR.jsx)(gs, { + icon: pM, + variant: "plain", + size: "small", + onClick: () => window.launcherAPI.settings.openFileSystemDialog(t) + })] + })] + }), (0, wR.jsxs)(Es, { + gap: "0", + vertical: !0, + children: [(0, wR.jsx)(ft, { + i18nKey: "dialog_warning_change_game_new_dialog", + t: _e.t, + ns: "dialog" + }), (0, wR.jsxs)(Es, { + gap: "50", + children: [(0, wR.jsx)(ds, { + variant: "body-m-bold", + children: e + }), (0, wR.jsx)(gs, { + icon: pM, + variant: "plain", + size: "small", + onClick: () => window.launcherAPI.settings.openFileSystemDialog(e) + })] + })] + }), n.filter((e => e.channels.length > 0)).length > 0 && (0, wR.jsxs)(Es, { + gap: "0", + vertical: !0, + children: [(0, wR.jsx)("p", { + children: (0, wR.jsx)(ft, { + i18nKey: "dialog_warning_delete_game_library_games", + t: _e.t, + ns: "dialog" + }) + }), null === n || void 0 === n ? void 0 : n.map(((e, t) => e.channels.map((n => (0, wR.jsxs)("b", { + children: [e.name, " - ", n.name] + }, t))))), (0, wR.jsx)("p", { + children: (0, wR.jsx)(ft, { + i18nKey: "dialog_warning_change_game_warn_dialog", + t: _e.t, + ns: "dialog" + }) + })] + })] + }), + primaryLabel: _e.t("dialog_action_set_default_library", { + ns: "dialog" + }), + secondaryLabel: _e.t("dialog_action_cancel", { + ns: "dialog" + }) + }), + showSetDefaultLibraryDialog: e => OF.show(AF, { + typeDialog: "default", + title: _e.t("dialog_warning_set_default_library_title", { + ns: "dialog" + }), + content: (0, wR.jsxs)(Es, { + role: "group", + gap: "100", + vertical: !0, + children: [(0, wR.jsx)("p", { + children: (0, wR.jsx)(ft, { + i18nKey: "dialog_warning_set_default_library_content", + t: _e.t, + ns: "dialog" + }) + }), (0, wR.jsx)("b", { + children: e + })] + }), + primaryLabel: _e.t("dialog_action_set_default_library", { + ns: "dialog" + }), + secondaryLabel: _e.t("dialog_action_cancel", { + ns: "dialog" + }) + }), + showChannelLibraryChangeDialog: (e, t, n) => OF.show(AF, { + typeDialog: "notice", + title: _e.t("dialog_warning_change_game_title_dialog", { + ns: "dialog" + }), + content: (0, wR.jsxs)(Es, { + role: "group", + gap: "100", + vertical: !0, + children: [(0, wR.jsx)("p", { + children: (0, wR.jsx)(ft, { + i18nKey: "dialog_warning_change_game_question_dialog", + t: _e.t, + ns: "dialog", + values: { + game: n.gameName, + channel: n.channelName + } + }) + }), (0, wR.jsxs)(Es, { + gap: "0", + vertical: !0, + children: [(0, wR.jsx)(ft, { + i18nKey: "dialog_warning_change_game_current_dialog", + t: _e.t, + ns: "dialog" + }), (0, wR.jsxs)(Es, { + gap: "50", + children: [(0, wR.jsx)(ds, { + variant: "body-m-bold", + children: e + }), (0, wR.jsx)(gs, { + icon: pM, + variant: "plain", + size: "small", + onClick: () => window.launcherAPI.settings.openFileSystemDialog(e) + })] + })] + }), (0, wR.jsxs)(Es, { + gap: "0", + vertical: !0, + children: [(0, wR.jsx)(ft, { + i18nKey: "dialog_warning_change_game_new_dialog", + t: _e.t, + ns: "dialog" + }), (0, wR.jsxs)(Es, { + gap: "50", + children: [(0, wR.jsx)(ds, { + variant: "body-m-bold", + children: t + }), (0, wR.jsx)(gs, { + icon: pM, + variant: "plain", + size: "small", + onClick: () => window.launcherAPI.settings.openFileSystemDialog(t) + })] + })] + }), (0, wR.jsx)("p", { + children: (0, wR.jsx)(ft, { + i18nKey: "dialog_warning_change_game_warn_dialog", + t: _e.t, + ns: "dialog" + }) + })] + }), + primaryLabel: _e.t("dialog_action_proceed", { + ns: "dialog" + }), + secondaryLabel: _e.t("dialog_action_cancel", { + ns: "dialog" + }) }) } } }), - pj =SC_TOOLBOX_ENABLE_DOWNLOADER_BOOST ? [{ + ez =SC_TOOLBOX_ENABLE_DOWNLOADER_BOOST ? [{ label: "!1024", value: 1024 }, { @@ -67197,7 +70377,7 @@ label: "5", value: 5 }], - hj = { + tz = { reduceMotion: { syncWithSystem: !1, backgroundVideoDisabled: !1, @@ -67205,68 +70385,57 @@ wipeAnimationsDisabled: !1 } }, - fj = { + nz = { appSettings: { quitOnWindowClose: !1, hideQuitWarning: !1, isDiscoverDone: !1, download: { - concurrentTransfers: pj[0].value, + concurrentTransfers: ez[0].value, maximumDownloadBandwidth: 0 }, - accessibility: hj - }, - library: { - defaultLibraryFolder: "" + accessibility: tz } }, - mj = ({ - defaultLibraryFolder: e = "", - gamesSettings: t = [], - quitOnWindowClose: n = fj.appSettings.quitOnWindowClose, - hideQuitWarning: r = fj.appSettings.hideQuitWarning, - isDiscoverDone: i = fj.appSettings.isDiscoverDone, - download: a = fj.appSettings.download, - accessibility: o = fj.appSettings.accessibility - } = {}) => ({ - ...fj, + rz = ({ + gamesSettings: e = [], + quitOnWindowClose: t = nz.appSettings.quitOnWindowClose, + hideQuitWarning: n = nz.appSettings.hideQuitWarning, + isDiscoverDone: r = nz.appSettings.isDiscoverDone, + download: i = nz.appSettings.download, + accessibility: a = nz.appSettings.accessibility + } = {}) => ({ + ...nz, appSettings: { - ...fj.appSettings, - quitOnWindowClose: n, - hideQuitWarning: r, - isDiscoverDone: i, - download: a, - accessibility: o + ...nz.appSettings, + quitOnWindowClose: t, + hideQuitWarning: n, + isDiscoverDone: r, + download: i, + accessibility: a }, - library: { - ...fj.library, - defaultLibraryFolder: e - }, - gamesSettings: t + gamesSettings: e }), - gj = (e, t) => ({ + iz = (e, t) => ({ settings: { - ...mj(), + ...rz(), actions: { initializeApplicationSettings: async () => { - var n; - const r = null !== (n = await window.launcherAPI.store.getValueFromStore("library.libraryFolder")) && void 0 !== n ? n : `${YI.configuration.infoApp.defaultLibraryPath}${YI.configuration.infoApp.defaultLibraryFolder}`, - i = await window.launcherAPI.store.getValueFromStore("application.quitOnWindowClose"), - a = await window.launcherAPI.store.getValueFromStore("application.hideQuitWarning"), - o = await window.launcherAPI.store.getValueFromStore("application.isDiscoverDone"), - s = await window.launcherAPI.store.getValueFromStore("application.download"), - l = await t().settings.actions.getAccessibilitySettingsFromPersistentStore(); + const n = await window.launcherAPI.store.getValueFromStore("application.quitOnWindowClose"), + r = await window.launcherAPI.store.getValueFromStore("application.hideQuitWarning"), + i = await window.launcherAPI.store.getValueFromStore("application.isDiscoverDone"), + a = await window.launcherAPI.store.getValueFromStore("application.download"), + o = await t().settings.actions.getAccessibilitySettingsFromPersistentStore(); e((e => ({ settings: { ...e.settings, - ...mj({ - defaultLibraryFolder: dC(r), + ...rz({ gamesSettings: e.settings.gamesSettings, - quitOnWindowClose: i, - hideQuitWarning: a, - isDiscoverDone: o, - download: s, - accessibility: l + quitOnWindowClose: n, + hideQuitWarning: r, + isDiscoverDone: i, + download: a, + accessibility: o }) } }))) @@ -67292,7 +70461,7 @@ }, getChannelDefaultGameSettings: e => { const { - settings: n + storage: n } = t(), { gameId: r, channelId: i, @@ -67306,16 +70475,16 @@ channelId: i, channelName: s, platformId: a, - libraryFolder: n.library.defaultLibraryFolder + libraryFolder: n.defaultLibraryFolder } }, getChannelGameSettings: async e => { var t; const n = await window.launcherAPI.store.getValueFromStore("library.settings"); return null !== (t = null === n || void 0 === n ? void 0 : n.find((({ - gameId: t, - channelId: n - }) => t === (null === e || void 0 === e ? void 0 : e.gameId) && n === e.channelId))) && void 0 !== t ? t : null + gameId: t, + channelId: n + }) => t === (null === e || void 0 === e ? void 0 : e.gameId) && n === e.channelId))) && void 0 !== t ? t : null }, resetChannelGameSettings: async n => { const r = t(), @@ -67327,7 +70496,7 @@ const { gamesSettings: t } = r.settings, o = r.settings.actions.getChannelDefaultGameSettings(n); - let s = [...t.filter((e => e.channelId !== a)), o].sort(((e, t) => LD(e.channelId, t.channelId))); + let s = [...t.filter((e => e.channelId !== a)), o].sort(((e, t) => WM(e.channelId, t.channelId))); e((e => ({ settings: { ...e.settings, @@ -67340,24 +70509,13 @@ console.error("[ResetSettings - error]", o) } }, - saveLibraryFolder: async n => { - e((e => ({ - settings: { - ...e.settings, - library: { - ...e.library, - defaultLibraryFolder: n - } - } - }))), window.launcherAPI.store.setValueToStore("library.libraryFolder", n), window.launcherAPI.settings.setLibraryFolder(n), await t().settings.actions.initializeGameSettings() - }, saveChannelGameSettings: async n => { const { channelId: r } = n, { gamesSettings: i } = t().settings; - let a = [...i.filter((e => e.channelId !== r)), n].sort(((e, t) => LD(e.channelId, t.channelId))); + let a = [...i.filter((e => e.channelId !== r)), n].sort(((e, t) => WM(e.channelId, t.channelId))); e((e => ({ settings: { ...e.settings, @@ -67368,7 +70526,7 @@ if (o) { const e = [...o.filter((e => e.channelId !== r)), { ...n - }].sort(((e, t) => LD(e.channelId, t.channelId))); + }].sort(((e, t) => WM(e.channelId, t.channelId))); window.launcherAPI.store.setValueToStore("library.settings", e) } else window.launcherAPI.store.setValueToStore("library.settings", a) }, @@ -67429,31 +70587,88 @@ window.launcherAPI.settings.openLogsFolder() }, getAnimationSystemSettings: async () => await window.launcherAPI.settings.getAnimationSystemSettings(), - restartApp: () => window.launcherAPI.settings.restartApp() + restartApp: () => window.launcherAPI.settings.restartApp(), + setChannelLibraryFolder: async (e, n) => { + var r; + const { + settings: i, + library: a, + dialog: o, + storage: s + } = t(), l = (null === (r = i.gamesSettings.find((t => e.channelId === t.channelId))) || void 0 === r ? void 0 : r.libraryFolder) || s.defaultLibraryFolder, c = await a.installedGames.map((e => { + const t = e.channels.filter((e => LR(e.libraryFolder) === l)); + return { + ...e, + channels: t + } + })), u = c.filter((e => e.channels.length > 0)), d = u.length > 0, p = u.find((t => t.channels.find((t => t.id === e.channelId)))); + if (d && p) { + const { + resolved: t + } = await o.actions.showChannelLibraryChangeDialog(l, n, e); + if (!t) return !1 + } + return await Promise.all(i.gamesSettings.map((async t => { + if (t.channelId === e.channelId) { + const e = { + ...t, + libraryFolder: n + }; + await i.actions.saveChannelGameSettings(e) + } + }))), await a.actions.removeInstalledGameChannel(e), !0 + }, + setLibraryFolderToDefault: async n => { + const { + storage: r, + settings: i + } = t(), a = i.gamesSettings.map((e => (n.find((({ + libraryFolder: t + }) => t === e.libraryFolder)) && (e.libraryFolder = r.defaultLibraryFolder), e))); + e((e => ({ + settings: { + ...e.settings, + gamesSettings: a + } + }))), await window.launcherAPI.store.setValueToStore("library.settings", i.gamesSettings) + }, + setLibraryFolderToNewPath: async (n, r) => { + const { + settings: i + } = t(), a = i.gamesSettings.map((e => (n.find((({ + libraryFolder: t + }) => t === e.libraryFolder)) && (e.libraryFolder = r), e))); + e((e => ({ + settings: { + ...e.settings, + gamesSettings: a + } + }))), await window.launcherAPI.store.setValueToStore("library.settings", i.gamesSettings) + } } } }); - let vj = null; - const yj = e => Object.entries(e).reduce(((e, [t, n]) => ({ + let az = null; + const oz = e => Object.entries(e).reduce(((e, [t, n]) => ({ ...e, - [t]: `${YI.configuration.assets.directory}${n}` + [t]: `${xP.configuration.assets.directory}${n}` })), {}), - _j = e => ({ + sz = e => ({ volume: null !== e && void 0 !== e ? e : 50, previousVolume: null, system: null, - soundList: yj(YI.configuration.assets.sounds), - trackList: yj(YI.configuration.assets.musics) + soundList: oz(xP.configuration.assets.sounds), + trackList: oz(xP.configuration.assets.musics) }), - bj = (e, t) => ({ + lz = (e, t) => ({ soundSystem: { - ..._j(), + ...sz(), actions: { initializeSoundContext: async () => { var t; const n = await window.launcherAPI.store.getValueFromStore("application.volume"), - r = _j(n); - vj = null !== (t = vj) && void 0 !== t ? t : new XA({ + r = sz(n); + az = null !== (t = az) && void 0 !== t ? t : new sR({ sounds: r.soundList, musics: r.trackList, volume: r.volume @@ -67461,9 +70676,9 @@ soundSystem: { ...e.soundSystem, ...r, - system: vj + system: az } - }))), vj.playSound("open"), vj.playBackgroundTrack() + }))), az.playSound("open"), az.playBackgroundTrack() }, changeVolume: (n, r = 0) => { const i = t().soundSystem.system; @@ -67501,46 +70716,220 @@ } } }), - xj = { + cz = { + defaultLibraryFolder: "", + additionalLibraries: [] + }, + uz = (e, t) => ({ + storage: { + ...cz, + actions: { + initializeStorageSettings: async () => { + var t; + const n = null !== (t = await window.launcherAPI.store.getValueFromStore("storage.defaultLibraryFolder")) && void 0 !== t ? t : `${xP.configuration.infoApp.defaultLibraryPath}${xP.configuration.infoApp.defaultLibraryFolder}`, + r = await window.launcherAPI.store.getValueFromStore("storage.additionalFolders") || []; + e((e => ({ + storage: { + ...e.storage, + defaultLibraryFolder: LR(n), + additionalLibraries: r + } + }))) + }, + saveDefaultLibraryFolder: async (n, r) => { + const i = t(), + a = (await i.storage.additionalLibraries || []).some((e => e === n)), + o = i.storage.defaultLibraryFolder === n; + if (a || o) return await i.dialog.actions.showDuplicateLibraryDialog(), !1; + const s = await i.library.installedGames.map((e => { + const t = e.channels.filter((e => LR(e.libraryFolder) === r)); + return { + ...e, + channels: t + } + })), + l = await i.settings.gamesSettings.filter((e => r === e.libraryFolder)), + { + resolved: c + } = await i.dialog.actions.showReplaceInstalledDefaultLibraryDialog(n, r, s); + if (!c) return !1; + l.length > 0 && await i.settings.actions.setLibraryFolderToNewPath(l, n); + const u = s.filter((e => e.channels.length > 0)); + return u && await Promise.all(u.map((async e => { + await i.library.actions.prepInstalledChannelForRemoval(e) + }))), e((e => ({ + storage: { + ...e.storage, + defaultLibraryFolder: n + } + }))), window.launcherAPI.store.setValueToStore("storage.defaultLibraryFolder", n), i.storage.actions.setDefaultLibUpdatedToast(), !0 + }, + replaceDefaultLibrary: async (n, r) => { + const i = t(), + { + resolved: a + } = await i.dialog.actions.showSetDefaultLibraryDialog(n); + if (!a) return !1; + const o = await i.storage.defaultLibraryFolder, + s = await i.storage.additionalLibraries || []; + return s[r] = o, e((e => ({ + storage: { + ...e.storage, + defaultLibraryFolder: n, + additionalLibraries: s + } + }))), window.launcherAPI.store.setValueToStore("storage.defaultLibraryFolder", n), window.launcherAPI.store.setValueToStore("storage.additionalFolders", s), i.storage.actions.setDefaultLibUpdatedToast(), !0 + }, + saveAdditionalLibraryFolders: async n => { + const r = t(), + i = await r.storage.additionalLibraries || [], + a = i.some((e => e === n)), + o = r.storage.defaultLibraryFolder === n; + return a || o ? (await r.dialog.actions.showDuplicateLibraryDialog(), !1) : (i.push(n), e((e => ({ + storage: { + ...e.storage, + additionalLibraries: i + } + }))), window.launcherAPI.store.setValueToStore("storage.additionalFolders", i), r.storage.actions.setNewLibraryToast(), !0) + }, + replaceAdditionalLibraryFolder: async (n, r, i) => { + const a = t(), + o = await a.storage.additionalLibraries || [], + s = o.some((e => e === n)), + l = a.storage.defaultLibraryFolder === n; + if (s || l) return await a.dialog.actions.showDuplicateLibraryDialog(), !1; + const c = await a.library.installedGames.map((e => { + const t = e.channels.filter((e => LR(e.libraryFolder) === r)); + return { + ...e, + channels: t + } + })), + u = await a.settings.gamesSettings.filter((e => r === e.libraryFolder)), + { + resolved: d + } = await a.dialog.actions.showReplaceInstalledLibraryDialog(n, r, c); + if (!d) return !1; + u.length > 0 && await a.settings.actions.setLibraryFolderToNewPath(u, n); + const p = c.filter((e => e.channels.length > 0)); + return p && await Promise.all(p.map((async e => { + await a.library.actions.prepInstalledChannelForRemoval(e) + }))), o[i] = n, e((e => ({ + storage: { + ...e.storage, + additionalLibraries: o + } + }))), window.launcherAPI.store.setValueToStore("storage.additionalFolders", o), a.storage.actions.setNewLibraryToast(), !0 + }, + deleteAdditionalLibrary: async (n, r) => { + const i = await t(), + a = await i.library.installedGames.map((e => { + const t = e.channels.filter((e => LR(e.libraryFolder) === n)); + return { + ...e, + channels: t + } + })), + o = await i.settings.gamesSettings.filter((e => n === e.libraryFolder)), + { + resolved: s + } = await i.dialog.actions.showDeleteLibraryDialog(n, a); + if (!s) return !1; + o.length > 0 && await i.settings.actions.setLibraryFolderToDefault(o); + const l = a.filter((e => e.channels.length > 0)); + l && await Promise.all(l.map((async e => { + await i.library.actions.prepInstalledChannelForRemoval(e) + }))); + const c = await i.storage.additionalLibraries || []; + return c.splice(r, 1), e((e => ({ + storage: { + ...e.storage, + additionalLibraries: c + } + }))), window.launcherAPI.store.setValueToStore("storage.additionalFolders", c), i.storage.actions.setDeleteLibraryToast(), !0 + }, + setDeleteLibraryToast: () => { + const { + toasts: e + } = t(); + return e.actions.add({ + title: _e.t("settings_toast_delete_lib_success", { + ns: "settingsPage" + }), + type: "negative", + duration: NR, + closeOnClick: !0 + }) + }, + setNewLibraryToast: () => { + const { + toasts: e + } = t(); + return e.actions.add({ + title: _e.t("settings_toast_lib_added", { + ns: "settingsPage" + }), + type: "positive", + duration: NR, + closeOnClick: !0 + }) + }, + setDefaultLibUpdatedToast: () => { + const { + toasts: e + } = t(); + return e.actions.add({ + title: _e.t("settings_toast_default_lib_updated", { + ns: "settingsPage" + }), + type: "positive", + duration: NR, + closeOnClick: !0 + }) + } + } + } + }), + dz = { randomUUID: "undefined" !== typeof crypto && crypto.randomUUID && crypto.randomUUID.bind(crypto) }; - let kj; - const wj = new Uint8Array(16); + let pz; + const hz = new Uint8Array(16); - function Sj() { - if (!kj && (kj = "undefined" !== typeof crypto && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !kj)) throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported"); - return kj(wj) + function fz() { + if (!pz && (pz = "undefined" !== typeof crypto && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !pz)) throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported"); + return pz(hz) } - const Ej = []; - for (let n = 0; n < 256; ++n) Ej.push((n + 256).toString(16).slice(1)); + const mz = []; + for (let n = 0; n < 256; ++n) mz.push((n + 256).toString(16).slice(1)); - function Oj(e, t = 0) { - return (Ej[e[t + 0]] + Ej[e[t + 1]] + Ej[e[t + 2]] + Ej[e[t + 3]] + "-" + Ej[e[t + 4]] + Ej[e[t + 5]] + "-" + Ej[e[t + 6]] + Ej[e[t + 7]] + "-" + Ej[e[t + 8]] + Ej[e[t + 9]] + "-" + Ej[e[t + 10]] + Ej[e[t + 11]] + Ej[e[t + 12]] + Ej[e[t + 13]] + Ej[e[t + 14]] + Ej[e[t + 15]]).toLowerCase() + function gz(e, t = 0) { + return (mz[e[t + 0]] + mz[e[t + 1]] + mz[e[t + 2]] + mz[e[t + 3]] + "-" + mz[e[t + 4]] + mz[e[t + 5]] + "-" + mz[e[t + 6]] + mz[e[t + 7]] + "-" + mz[e[t + 8]] + mz[e[t + 9]] + "-" + mz[e[t + 10]] + mz[e[t + 11]] + mz[e[t + 12]] + mz[e[t + 13]] + mz[e[t + 14]] + mz[e[t + 15]]).toLowerCase() } - const Ij = function(e, t, n) { - if (xj.randomUUID && !t && !e) return xj.randomUUID(); - const r = (e = e || {}).random || (e.rng || Sj)(); + const vz = function(e, t, n) { + if (dz.randomUUID && !t && !e) return dz.randomUUID(); + const r = (e = e || {}).random || (e.rng || fz)(); if (r[6] = 15 & r[6] | 64, r[8] = 63 & r[8] | 128, t) { n = n || 0; for (let e = 0; e < 16; ++e) t[n + e] = r[e]; return t } - return Oj(r) + return gz(r) }, - Cj = { + yz = { list: [] }, - Aj = (e, t) => ({ + _z = (e, t) => ({ toasts: { - ...Cj, + ...yz, actions: { async init() { const e = t(); window.launcherAPI.autoUpdate.onNewVersionInstalled((() => { e.toasts.actions.add({ - title: cT("auto_update_toast_update_installed"), + title: SM("auto_update_toast_update_installed"), type: "positive", - icon: KP, + icon: sM, closeOnClick: !1 }, !0) })) @@ -67548,10 +70937,10 @@ async add(n, r = !1) { const i = await window.launcherAPI.window.isMinimized(), a = t(), - o = Ij(); + o = vz(); r && window.launcherAPI.notification.show({ - title: lC(n.title), - body: lC(n.children) + title: TR(n.title), + body: TR(n.children) }), i || e({ toasts: { ...a.toasts, @@ -67575,23 +70964,23 @@ } } }), - Pj = (e = null, t = null, n = {}) => ({ + bz = (e = null, t = null, n = {}) => ({ identity: e, device: t, sessions: n }), - Tj = (e, t) => ({ + xz = (e, t) => ({ user: { - ...Pj(), + ...bz(), actions: { initializeUser: async () => { const { environment: t - } = await window.launcherAPI.game.getGlobalConfig(), n = await window.launcherAPI.store.getValueFromStore("identity"), r = await window.launcherAPI.store.getValueFromStore("device"), i = await window.launcherAPI.store.getValueFromStore("session"), a = Pj(n, r, i ? { + } = await window.launcherAPI.game.getGlobalConfig(), n = await window.launcherAPI.store.getValueFromStore("identity"), r = await window.launcherAPI.store.getValueFromStore("device"), i = await window.launcherAPI.store.getValueFromStore("session"), a = bz(n, r, i ? { [t]: i } : {}); var o, s, l; - n && cC().authentication.onSignInSuccess({ + n && RR().authentication.onSignInSuccess({ accountName: null !== (o = n.username) && void 0 !== o ? o : "", trackingMetricsId: null !== (s = n.trackingMetricsId) && void 0 !== s ? s : "", heapAccountId: null !== (l = n.heapAccountId) && void 0 !== l ? l : "" @@ -67615,15 +71004,15 @@ }))) }, setSession: ({ - session: n, - platform: r, - remember: i = !1 - }) => { + session: n, + platform: r, + remember: i = !1 + }) => { const { application: a } = t(), { store: o - } = cC(), s = null !== r && void 0 !== r ? r : a.platformMaster; + } = RR(), s = null !== r && void 0 !== r ? r : a.platformMaster; i && s === a.platformMaster && o.setValueToStore("session", n), e((e => ({ user: { ...e.user, @@ -67638,12 +71027,12 @@ }))) }, setIdentity: ({ - identity: t, - remember: n = !1 - }) => { + identity: t, + remember: n = !1 + }) => { const { store: r - } = cC(); + } = RR(); n && r.setValueToStore("identity", t), e((e => ({ user: { ...e.user, @@ -67652,12 +71041,12 @@ }))) }, setDevice: ({ - device: t, - remember: n = !1 - }) => { + device: t, + remember: n = !1 + }) => { const { store: r - } = cC(); + } = RR(); n && r.setValueToStore("device", t), e((e => ({ user: { ...e.user, @@ -67671,14 +71060,14 @@ user: r } = t(), i = r.sessions[null !== e && void 0 !== e ? e : n.platformMaster]; if (i && (e => "key" in e && "value" in e && "cookie" in e)(i)) return i; - const a = await FP.fetchQuery((o = e, { + const a = await Qj.fetchQuery((o = e, { queryKey: [`signinSession-${o}`], - queryFn: async () => ZA.authentication.getSignInSession(o) + queryFn: async () => oR.authentication.getSignInSession(o) })); var o; - if (!a) throw new eA({ + if (!a) throw new sT({ message: `Not able to log-in to ${e} platform.`, - code: mC, + code: wP, payload: null, environment: e }); @@ -67699,7 +71088,7 @@ window.launcherAPI.store.setValueToStore("session", null), window.launcherAPI.store.setValueToStore("identity", null), t.clearDevice && window.launcherAPI.store.setValueToStore("device", null), e((e => ({ user: { ...e.user, - ...Pj(), + ...bz(), device: t.clearDevice ? null : e.user.device } }))) @@ -67707,12 +71096,12 @@ } } }), - Rj = (e, t) => ({ + wz = (e, t) => ({ window: { actions: { openInternalWindow: async (e, t) => { - const n = Wj.getState().application, - r = Wj.getState().user, + const n = jz.getState().application, + r = jz.getState().user, i = n.platformMaster, a = r.sessions[i], o = r.device, @@ -67751,10 +71140,10 @@ wipeAnimationsDisabled: i } = r.appSettings.accessibility.reduceMotion; if (e.isGameRunning) return n.actions.showWarningExitAppGameRuningDialog(); - if (i) return void cC().window.setQuitWindow(); + if (i) return void RR().window.setQuitWindow(); const a = Number(getComputedStyle(document.body).getPropertyValue("--sol-motion-anim-wipe-duration").match(/\d+/)); return e.actions.setAnimatingAppLayoutWipe("in", !0), setTimeout((() => { - cC().window.setQuitWindow() + RR().window.setQuitWindow() }), a / 2) }, closeLauncher: async () => { @@ -67766,7 +71155,7 @@ } = t(), { wipeAnimationsDisabled: o } = i.appSettings.accessibility.reduceMotion, s = i.appSettings.quitOnWindowClose, l = i.appSettings.hideQuitWarning, c = Number(getComputedStyle(document.body).getPropertyValue("--sol-motion-anim-wipe-duration").match(/\d+/)), u = () => { - s ? a.actions.exitLauncher() : cC().window.setCloseWindow() + s ? a.actions.exitLauncher() : RR().window.setCloseWindow() }; if (l || !s) { if (o) { @@ -67798,7 +71187,7 @@ } } }), - Dj = e => { + kz = e => { let t; const n = new Set, r = (e, r) => { @@ -67821,32 +71210,32 @@ o = t = e(r, i, a); return a }, - Lj = e => e ? Dj(e) : Dj; - var Nj = n(327); + Sz = e => e ? kz(e) : kz; + var Ez = n(327); const { - useDebugValue: jj + useDebugValue: Oz } = Ee, { - useSyncExternalStoreWithSelector: Mj - } = Nj; - let Fj = !1; - const zj = e => e; - const Vj = e => { + useSyncExternalStoreWithSelector: Iz + } = Ez; + let Cz = !1; + const Az = e => e; + const Pz = e => { "function" !== typeof e && console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`."); - const t = "function" === typeof e ? Lj(e) : e, - n = (e, n) => function(e, t = zj, n) { - n && !Fj && (console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"), Fj = !0); - const r = Mj(e.subscribe, e.getState, e.getServerState || e.getInitialState, t, n); - return jj(r), r + const t = "function" === typeof e ? Sz(e) : e, + n = (e, n) => function(e, t = Az, n) { + n && !Cz && (console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"), Cz = !0); + const r = Iz(e.subscribe, e.getState, e.getServerState || e.getInitialState, t, n); + return Oz(r), r }(t, e, n); return Object.assign(n, t), n }, - Uj = e => e ? Vj(e) : Vj; - const Bj = new Map, - Gj = e => { - const t = Bj.get(e); + Tz = e => e ? Pz(e) : Pz; + const Rz = new Map, + Dz = e => { + const t = Rz.get(e); return t ? Object.fromEntries(Object.entries(t.stores).map((([e, t]) => [e, t.getState()]))) : {} }, - $j = (e, t = {}) => (n, r, i) => { + Lz = (e, t = {}) => (n, r, i) => { const { enabled: a, anonymousActionType: o, @@ -67866,7 +71255,7 @@ type: "untracked", connection: t.connect(n) }; - const r = Bj.get(n.name); + const r = Rz.get(n.name); if (r) return { type: "tracked", store: e, @@ -67876,7 +71265,7 @@ connection: t.connect(n), stores: {} }; - return Bj.set(n.name, i), { + return Rz.set(n.name, i), { type: "tracked", store: e, ...i @@ -67895,7 +71284,7 @@ ...d, type: `${s}/${d.type}` }, { - ...Gj(l.name), + ...Dz(l.name), [s]: i.getState() }), c) }; @@ -67915,7 +71304,7 @@ var t; switch (e.type) { case "ACTION": - return "string" !== typeof e.payload ? void console.error("[zustand devtools middleware] Unsupported action format") : qj(e.payload, (e => { + return "string" !== typeof e.payload ? void console.error("[zustand devtools middleware] Unsupported action format") : Nz(e.payload, (e => { if ("__setState" !== e.type) i.dispatchFromDevtools && "function" === typeof i.dispatch && i.dispatch(e); else { if (void 0 === s) return void h(e.state); @@ -67928,17 +71317,17 @@ case "DISPATCH": switch (e.payload.type) { case "RESET": - return h(f), void 0 === s ? null == u ? void 0 : u.init(i.getState()) : null == u ? void 0 : u.init(Gj(l.name)); + return h(f), void 0 === s ? null == u ? void 0 : u.init(i.getState()) : null == u ? void 0 : u.init(Dz(l.name)); case "COMMIT": - return void 0 === s ? void(null == u || u.init(i.getState())) : null == u ? void 0 : u.init(Gj(l.name)); + return void 0 === s ? void(null == u || u.init(i.getState())) : null == u ? void 0 : u.init(Dz(l.name)); case "ROLLBACK": - return qj(e.state, (e => { + return Nz(e.state, (e => { if (void 0 === s) return h(e), void(null == u || u.init(i.getState())); - h(e[s]), null == u || u.init(Gj(l.name)) + h(e[s]), null == u || u.init(Dz(l.name)) })); case "JUMP_TO_STATE": case "JUMP_TO_ACTION": - return qj(e.state, (e => { + return Nz(e.state, (e => { void 0 !== s ? JSON.stringify(i.getState()) !== JSON.stringify(e[s]) && h(e[s]) : h(e) })); case "IMPORT_STATE": { @@ -67955,7 +71344,7 @@ } })), f }, - qj = (e, t) => { + Nz = (e, t) => { let n; try { n = JSON.parse(e) @@ -67964,279 +71353,60 @@ } void 0 !== n && t(n) }; - const Wj = Uj()($j(((...e) => ({ - ...zP(...e), - ...oT(...e), - ...sT(...e), - ...gj(...e), - ...bj(...e), - ...kD(...e), - ...Tj(...e), - ...pT(...e), - ...zD(...e), - ...dj(...e), - ...Aj(...e), - ...FD(...e), - ...Rj(...e) + const jz = Tz()(Lz(((...e) => ({ + ...Zj(...e), + ...xM(...e), + ...wM(...e), + ...iz(...e), + ...lz(...e), + ...LM(...e), + ...xz(...e), + ...IM(...e), + ...ZM(...e), + ...JF(...e), + ..._z(...e), + ...QM(...e), + ...wz(...e), + ...uz(...e) })), { name: "launcher-store", enabled: !0, trace: !0 })), - Hj = window.envVars.reviewAppRootUrl, - Kj = e => { - var t; - const n = YI.configuration.env, - r = Wj.getState().application.platformMaster; - return ("reviewapp" === r ? Hj : null !== (t = n[r].rootUrl) && void 0 !== t ? t : YI.configuration.rootUrl) + e - }, - Yj = e => e / 1e3, - Qj = (0, Ee.createContext)({}), - Zj = ({ - children: e - }) => { + Mz = () => { + var e, t; const { - window: { - onSetHideWindowSuccessFul: t, - onSetShowWindowSuccessFul: n - } - } = window.launcherAPI, r = Wj.getState().application, [i, a] = (0, Ee.useState)(!1); - return (0, Ee.useEffect)((() => { - const e = t((() => { - a(!0), r.actions.setWindowMinimized(!0) - })), - i = n((() => { - a(!1), r.actions.setWindowMinimized(!1) - })); - return () => { - e(), i() - } - }), [r.actions, t, n]), (0, QI.jsx)(Qj.Provider, { - value: { - isMinimized: i - }, - children: e + t: n + } = bt("settingsPage"), r = jz((e => e.application)), i = null !== (e = r.launcherVersion.includes("rc")) && void 0 !== e && e; + return (0, wR.jsx)(ty, { + title: n("settings_about_title"), + children: (0, wR.jsxs)(ds, { + color: "foreground-weak", + variant: "body-m", + multiline: !0, + children: [(0, wR.jsx)("img", { + src: `${xP.configuration.assets.directory}/logos/cig-logo.svg`, + alt: n("settings_about_logo_alt"), + width: "120" + }), (0, wR.jsx)("p", { + children: n("settings_about_copyright", { + year: (new Date).getFullYear() + }) + }), (0, wR.jsx)("hr", {}), (0, wR.jsxs)("p", { + children: [(0, wR.jsxs)("strong", { + children: [n("settings_about_launcher_version"), " "] + }), null !== (t = r.launcherVersion) && void 0 !== t ? t : "\u2013", i && (0, wR.jsxs)("strong", { + style: { + color: "var(--sol-color-status-notice" + }, + children: [" ", n("settings_about_launcher_preversion")] + })] + })] + }) }) }; - var Xj = class extends yP.l { - constructor(e, t) { - super(), this.#O = void 0, this.#I = e, this.setOptions(t), this.bindMethods(), this.#C() - } - #I; - #O; - #A; - #P; - bindMethods() { - this.mutate = this.mutate.bind(this), this.reset = this.reset.bind(this) - } - setOptions(e) { - const t = this.options; - this.options = this.#I.defaultMutationOptions(e), (0, gP.VS)(t, this.options) || this.#I.getMutationCache().notify({ - type: "observerOptionsUpdated", - mutation: this.#A, - observer: this - }), this.#A?.setOptions(this.options) - } - onUnsubscribe() { - this.hasListeners() || this.#A?.removeObserver(this) - } - onMutationUpdate(e) { - this.#C(), this.#T(e) - } - getCurrentResult() { - return this.#O - } - reset() { - this.#A = void 0, this.#C(), this.#T() - } - mutate(e, t) { - return this.#P = t, this.#A?.removeObserver(this), this.#A = this.#I.getMutationCache().build(this.#I, this.options), this.#A.addObserver(this), this.#A.execute(e) - } - #C() { - const e = this.#A?.state ?? { - context: void 0, - data: void 0, - error: null, - failureCount: 0, - failureReason: null, - isPaused: !1, - status: "idle", - variables: void 0, - submittedAt: 0 - }; - this.#O = { - ...e, - isPending: "pending" === e.status, - isSuccess: "success" === e.status, - isError: "error" === e.status, - isIdle: "idle" === e.status, - mutate: this.mutate, - reset: this.reset - } - } - #T(e) { - vP.batch((() => { - this.#P && this.hasListeners() && ("success" === e?.type ? (this.#P.onSuccess?.(e.data, this.#O.variables, this.#O.context), this.#P.onSettled?.(e.data, null, this.#O.variables, this.#O.context)) : "error" === e?.type && (this.#P.onError?.(e.error, this.#O.variables, this.#O.context), this.#P.onSettled?.(void 0, e.error, this.#O.variables, this.#O.context))), this.listeners.forEach((e => { - e(this.#O) - })) - })) - } - }, - Jj = n(3713); - function eM(e, t) { - return "function" === typeof e ? e(...t) : !!e - } - - function tM(e, t) { - const n = (0, Jj.NL)(t), - [r] = Ee.useState((() => new Xj(n, e))); - Ee.useEffect((() => { - r.setOptions(e) - }), [r, e]); - const i = Ee.useSyncExternalStore(Ee.useCallback((e => r.subscribe(vP.batchCalls(e))), [r]), (() => r.getCurrentResult()), (() => r.getCurrentResult())), - a = Ee.useCallback(((e, t) => { - r.mutate(e, t).catch(nM) - }), [r]); - if (i.error && eM(r.options.throwOnError, [i.error])) throw i.error; - return { - ...i, - mutate: a, - mutateAsync: i.mutate - } - } - - function nM() {} - const rM = { - cancelOnUnmount: !0, - cancelOnConditionChange: !0 - }, - iM = (e, t, n, r = rM) => { - const i = { - ...rM, - ...r || {} - }, - a = (0, Ee.useRef)(), - o = (0, Ee.useRef)(e), - [s, l] = (0, Ee.useState)(!1), - c = (e => { - const t = (0, Ee.useRef)(); - return (0, Ee.useEffect)((() => (t.current = e, () => { - t.current = void 0 - }))), t.current - })(n), - u = (0, Ee.useCallback)((() => { - a.current && (clearTimeout(a.current), l(!0)) - }), []); - return (0, Ee.useEffect)((() => { - var t; - "function" === typeof(t = e) && t.constructor && t.call && t.apply && (o.current = e) - }), [e]), (0, Ee.useEffect)((() => { - n && "number" === typeof t && (a.current = setTimeout((() => { - o.current() - }), t)) - }), [n, t]), (0, Ee.useEffect)((() => { - c && n !== c && i.cancelOnConditionChange && u() - }), [n, r]), (0, Ee.useEffect)((() => () => { - i.cancelOnUnmount && u() - }), []), [s, u] - }, - aM = ({ - location: e, - delay: t - }) => { - const n = eD(), - r = (0, Ee.useRef)(n); - return (0, Ee.useEffect)((() => { - const n = setTimeout((() => { - e && r.current(e) - }), t); - return () => clearTimeout(n) - }), [e, t]), r.current - }, - oM = [{ - id: "website", - action: () => window.open(YI.configuration.websiteUrl, "_blank") - }, { - id: "report_bug", - action: () => window.open(YI.configuration.issueCouncilUrl, "_blank") - }, { - id: "spectrum", - action: () => window.open(YI.configuration.spectrumUrl, "_blank") - }, { - id: "community_hub", - action: () => window.open(YI.configuration.communityHubUrl, "_blank") - }, { - id: "support", - action: () => window.open(YI.configuration.supportUrl, "_blank") - }], - sM = () => { - const { - t: e - } = bt("tray"), { - tray: { - onMenuItemClicked: t, - updateMenu: n - } - } = cC(), { - isMinimized: r - } = (() => { - const e = (0, Ee.useContext)(Qj); - if (!e) throw new Error("useTheme must be used within a ThemeProvider"); - return e - })(), { - exitLauncher: i, - logoutLauncher: a - } = Wj((e => e.window.actions)), { - identity: o - } = Wj((e => e.user)), { - volume: s, - actions: { - mute: l, - unmute: c - } - } = Wj((e => e.soundSystem)), u = 0 === s, d = !!o, p = (0, Ee.useMemo)((() => [...oM, { - id: "logout", - action: a, - visible: d - }, { - id: "mute", - action: l, - visible: !u && !r - }, { - id: "unmute", - action: c, - visible: u && !r - }, { - id: "quit", - action: i - }]), [i, r, u, d, a, l, c]), h = p.map((({ - action: t, - id: n, - visible: r - }) => ({ - id: n, - label: e(`tray_${n}`), - visible: r - }))); - n(h), (0, Ee.useEffect)((() => { - const e = t((e => { - var t; - return null === (t = p.find((t => t.id === e))) || void 0 === t ? void 0 : t.action() - })); - return e - }), [p, t]) - }, - lM = () => { - const e = Wj((e => e.autoUpdate)), - { - onUpdateDownloaded: t, - onQuitInstallError: n - } = window.launcherAPI.autoUpdate; - (0, Ee.useEffect)((() => t((t => e.actions.displayDialog(t)))), [e.actions, t]), (0, Ee.useEffect)((() => n((t => e.actions.displayDialog(t)))), [e.actions, n]) - }; - - function cM(e, t, n) { + function Fz(e, t, n) { var r = this, i = (0, Ee.useRef)(null), a = (0, Ee.useRef)(0), @@ -68288,7 +71458,7 @@ n(e, s) } }, - k = function() { + w = function() { if (p || v) { var u = Date.now(), h = _(u); @@ -68299,28 +71469,28 @@ return o.current || n(x, t), c.current } }; - return k.cancel = function() { + return w.cancel = function() { o.current && (h ? cancelAnimationFrame(o.current) : clearTimeout(o.current)), a.current = 0, s.current = i.current = l.current = o.current = null - }, k.isPending = function() { + }, w.isPending = function() { return !!o.current - }, k.flush = function() { + }, w.flush = function() { return o.current ? b(Date.now()) : c.current - }, k + }, w }), [f, g, t, y, m, h, p, v]); return _ } - function uM(e, t, n) { + function zz(e, t, n) { var r = void 0 === n ? {} : n, i = r.leading, a = r.trailing; - return cM(e, t, { + return Fz(e, t, { maxWait: t, leading: void 0 === i || i, trailing: void 0 === a || a }) } - const dM = () => { + const Vz = () => { const [e, t] = (0, Ee.useState)(!1), [n, r] = (0, Ee.useState)([{ id: "backgroundVideoDisabled", title: "settings_accessibility_reduce_motion_background_video_toggle_title", @@ -68347,14 +71517,14 @@ dirty: null }), { t: o - } = bt("settingsPage"), s = Wj((e => e.settings)), l = uM((async e => await s.actions.setAccessibilitySettingsToPersistentStore(e)), 400), c = (0, Ee.useCallback)((() => { + } = bt("settingsPage"), s = jz((e => e.settings)), l = zz((async e => await s.actions.setAccessibilitySettingsToPersistentStore(e)), 400), c = (0, Ee.useCallback)((() => { const e = n.some((e => e.dirty)), t = i.dirty; return e || t }), [n, i]), u = (0, Ee.useCallback)((async () => { var e; const n = s.actions.getAccessibilitySettings(), - i = null !== (e = await s.actions.getAccessibilitySettingsFromPersistentStore()) && void 0 !== e ? e : hj, + i = null !== (e = await s.actions.getAccessibilitySettingsFromPersistentStore()) && void 0 !== e ? e : tz, o = await s.actions.getAnimationSystemSettings(); t(o.prefersReducedMotion), a((e => { const t = n.reduceMotion.syncWithSystem !== i.reduceMotion.syncWithSystem; @@ -68416,52 +71586,52 @@ }), [l]); return (0, Ee.useEffect)((() => { u() - }), []), (0, QI.jsxs)(id, { + }), []), (0, wR.jsxs)(Ju, { title: o("settings_accessibility_reduce_motion_title"), description: o("settings_accessibility_reduce_motion_description"), - children: [(0, QI.jsx)(ad, { + children: [(0, wR.jsx)(ed, { checked: i.value, type: "checkbox", onChange: ({ - target: { - checked: e - } - }) => p(e), + target: { + checked: e + } + }) => p(e), description: o(i.description), warning: i.dirty, children: o(i.title) - }), (0, QI.jsx)(Ps, { + }), (0, wR.jsx)(Es, { vertical: !0, gap: "100", className: "sol-u-padding-is-250", - children: n.map((e => (0, QI.jsx)(ad, { + children: n.map((e => (0, wR.jsx)(ed, { type: "toggle", description: o(e.description), checked: e.value, onChange: ({ - target: { - checked: t - } - }) => d(t, e.id), + target: { + checked: t + } + }) => d(t, e.id), disabled: i.value, warning: e.dirty, children: o(e.title) }, e.id))) - }), i.value && (0, QI.jsx)(rd, { + }), i.value && (0, wR.jsx)(Xu, { className: "sol-u-padding-is-250", - children: (0, QI.jsx)(nd, { + children: (0, wR.jsx)(Zu, { type: "informative", children: o("settings_accessibility_reduce_motion_information_" + (e ? "enabled" : "disabled")) }) - }), c() && (0, QI.jsx)(nd, { + }), c() && (0, wR.jsx)(Zu, { className: "sol-u-margin-bs-150", type: "notice", - icon: rT, - children: (0, QI.jsx)(ft, { + icon: yM, + children: (0, wR.jsx)(ft, { i18nKey: "settings_accessibility_reduce_motion_information_restart_link_label", ns: "settingsPage", components: { - iclink: (0, QI.jsx)(am, { + iclink: (0, wR.jsx)(Pv, { href: "#", onClick: () => s.actions.restartApp(), inherit: !0 @@ -68471,26 +71641,26 @@ })] }) }, - pM = () => { + Uz = () => { const { t: e } = bt("settingsPage"); - return (0, QI.jsx)(Am, { + return (0, wR.jsx)(ty, { title: e("settings_accessibility_title"), - children: (0, QI.jsx)(dM, {}) + children: (0, wR.jsx)(Vz, {}) }) }, - hM = () => { - const e = Wj((e => e.dialog)), - t = Wj((e => e.settings)), + Bz = () => { + const e = jz((e => e.dialog)), + t = jz((e => e.settings)), { t: n } = bt("settingsPage"), [r, i] = (0, Ee.useState)(!1), [a, o] = (0, Ee.useState)(null); - iM((() => { + Lj((() => { o(null), i(!1) - }), pC, r), (0, Ee.useEffect)((() => { + }), NR, r), (0, Ee.useEffect)((() => { const e = window.launcherAPI.store.onClearStoreSuccess((() => { i(!0), o({ id: "isCacheCleared", @@ -68510,29 +71680,29 @@ l = (0, Ee.useCallback)((async () => { t.actions.debugGetLogs() }), [t.actions]); - return (0, QI.jsx)(id, { + return (0, wR.jsx)(Ju, { title: n("settings_application_debug_tools_title"), - description: (0, QI.jsx)(ft, { + description: (0, wR.jsx)(ft, { i18nKey: "settings_application_debug_tools_description", ns: "settingsPage", components: { - iclink: (0, QI.jsx)(am, { - href: YI.configuration.issueCouncilUrl, + iclink: (0, wR.jsx)(Pv, { + href: xP.configuration.issueCouncilUrl, label: n("app_header_menu_issue_council"), external: !0 }) } }), - children: (0, QI.jsxs)(_d, { + children: (0, wR.jsxs)($h, { horizontal: !0, success: a && a.message, label: n("settings_application_debug_tools_label"), labelType: "hidden", - children: [(0, QI.jsx)(xs, { + children: [(0, wR.jsx)(gs, { onClick: () => s(), type: "button", children: n("settings_application_debug_tools_button_clear_cache") - }), (0, QI.jsx)(xs, { + }), (0, wR.jsx)(gs, { onClick: () => l(), type: "button", children: n("settings_application_debug_tools_button_get_logs") @@ -68540,17 +71710,17 @@ }) }) }, - fM = () => { - const e = Wj((e => e.settings)), + Gz = () => { + const e = jz((e => e.settings)), [t, n] = (0, Ee.useState)(e.appSettings.quitOnWindowClose), [r, i] = (0, Ee.useState)(!1), [a, o] = (0, Ee.useState)(null), { t: s } = bt("settingsPage"); - iM((() => { + Lj((() => { o(null), i(!1) - }), pC, r), (0, Ee.useEffect)((() => { + }), NR, r), (0, Ee.useEffect)((() => { const e = window.launcherAPI.store.onSetValueToStoreSuccess((e => { "application.quitOnWindowClose" === e.key && (i(!0), o({ id: "quitOnWindowClose", @@ -68566,51 +71736,51 @@ }), []), (0, Ee.useEffect)((() => { n(e.appSettings.quitOnWindowClose) }), [e.appSettings.quitOnWindowClose]); - const l = uM((async t => await e.actions.saveApplicationSettings({ + const l = zz((async t => await e.actions.saveApplicationSettings({ name: "quitOnWindowClose", value: t })), 400), c = (0, Ee.useCallback)((async e => { a && o(null), n(e), l(e) }), [l, a]); - return (0, QI.jsx)(id, { + return (0, wR.jsx)(Ju, { title: s("settings_application_window_behavior_title"), description: s("settings_application_window_behavior_description"), - children: (0, QI.jsx)(ad, { + children: (0, wR.jsx)(ed, { type: "toggle", checked: t, onChange: ({ - target: { - checked: e - } - }) => c(e), + target: { + checked: e + } + }) => c(e), success: a && a.message, children: s("settings_application_window_behavior_close_to_quit") }) }) }, - mM = () => { + $z = () => { const { t: e } = bt("settingsPage"); - return (0, QI.jsxs)(Am, { + return (0, wR.jsxs)(ty, { title: e("settings_application_title"), - children: [(0, QI.jsx)(fM, {}), (0, QI.jsx)(pd, { + children: [(0, wR.jsx)(Gz, {}), (0, wR.jsx)(sd, { spacing: "250" - }), (0, QI.jsx)(hM, {})] + }), (0, wR.jsx)(Bz, {})] }) }, - gM = () => { - const e = Wj((e => e.settings)), + qz = () => { + const e = jz((e => e.settings)), [t, n] = (0, Ee.useState)(e.appSettings.isDiscoverDone), [r, i] = (0, Ee.useState)(!1), [a, o] = (0, Ee.useState)(null), { t: s } = bt("settingsPage"); - iM((() => { + Lj((() => { o(null), i(!1) - }), pC, r), (0, Ee.useEffect)((() => { + }), NR, r), (0, Ee.useEffect)((() => { const e = window.launcherAPI.store.onSetValueToStoreSuccess((e => { "application.isDiscoverDone" === e.key && (i(!0), o({ id: "isDiscoverDone", @@ -68626,45 +71796,45 @@ }), []), (0, Ee.useEffect)((() => { n(e.appSettings.isDiscoverDone) }), [e.appSettings.isDiscoverDone]); - const l = uM((async t => await e.actions.saveApplicationSettings({ + const l = zz((async t => await e.actions.saveApplicationSettings({ name: "isDiscoverDone", value: t })), 400), c = (0, Ee.useCallback)((async e => { a && o(null), n(e), l(e) }), [l, a]); - return (0, QI.jsx)(Am, { + return (0, wR.jsx)(ty, { title: s("settings_dev_title"), - children: (0, QI.jsx)(id, { + children: (0, wR.jsx)(Ju, { title: s("settings_application_discover_behavior_title"), description: s("settings_application_discover_behavior_description"), - children: (0, QI.jsx)(ad, { + children: (0, wR.jsx)(ed, { type: "toggle", checked: t, onChange: ({ - target: { - checked: e - } - }) => c(e), + target: { + checked: e + } + }) => c(e), success: a && a.message, children: s("settings_application_discover_behavior_isDiscoverDone") }) }) }) }, - vM = () => { + Wz = () => { const { t: e - } = bt("settingsPage"), t = Wj((e => e.settings)), [n, r] = (0, Ee.useState)({ + } = bt("settingsPage"), t = jz((e => e.settings)), [n, r] = (0, Ee.useState)({ state: !1 }), [i, a] = (0, Ee.useState)(t.appSettings.download.concurrentTransfers), { value: o, setValue: s } = (({ - initialValue: e, - cb: t, - delay: n = 2e3 - }) => { + initialValue: e, + cb: t, + delay: n = 2e3 + }) => { const [r, i] = (0, Ee.useState)(e); return (0, Ee.useEffect)((() => { const e = setTimeout((() => { @@ -68676,22 +71846,22 @@ setValue: i } })({ - initialValue: Yj(t.appSettings.download.maximumDownloadBandwidth), + initialValue: VR(t.appSettings.download.maximumDownloadBandwidth), cb: () => { - Yj(t.appSettings.download.maximumDownloadBandwidth) !== o && c(o) + VR(t.appSettings.download.maximumDownloadBandwidth) !== o && c(o) } }); - iM((() => { + Lj((() => { r({ state: !1 }) - }), pC, n.state); + }), NR, n.state); const l = (0, Ee.useCallback)((async e => { const n = parseInt(e, 10); - a(n), t.actions.setDownloadSettings(YI.InstallerOptions.ConcurrentTransfers, n) + a(n), t.actions.setDownloadSettings(xP.InstallerOptions.ConcurrentTransfers, n) }), [t.actions]), c = (0, Ee.useCallback)((async e => { - s(e), t.actions.setDownloadSettings(YI.InstallerOptions.MaximumDownloadBandwidth, 1e3 * e) + s(e), t.actions.setDownloadSettings(xP.InstallerOptions.MaximumDownloadBandwidth, 1e3 * e) }), [s, t.actions]); return (0, Ee.useEffect)((() => { const e = window.launcherAPI.installer.onSetDownloadOptionsSuccess((e => { @@ -68703,30 +71873,30 @@ return () => { e() } - }), [t.actions]), (0, QI.jsx)(Am, { + }), [t.actions]), (0, wR.jsx)(ty, { title: e("settings_download_title"), - children: (0, QI.jsxs)(id, { + children: (0, wR.jsxs)(Ju, { title: e("settings_download_main_title"), description: e("settings_download_main_content"), - children: [(0, QI.jsx)(_d, { + children: [(0, wR.jsx)($h, { horizontal: !0, label: e("settings_download_concurrent_title"), - success: n.state && n.option === YI.InstallerOptions.ConcurrentTransfers ? e("settings_common_saved") : null, + success: n.state && n.option === xP.InstallerOptions.ConcurrentTransfers ? e("settings_common_saved") : null, help: e("settings_download_concurrent_desc"), - children: (0, QI.jsx)(Cm, { + children: (0, wR.jsx)(ey, { onValueChange: e => l(e), value: i.toString(), - children: pj.map((e => (0, QI.jsx)(Im, { + children: ez.map((e => (0, wR.jsx)(Jv, { value: e.value.toString(), label: e.label }, e.label))) }) - }), (0, QI.jsx)(_d, { + }), (0, wR.jsx)($h, { horizontal: !0, label: e("settings_download_speed_title"), - success: n.state && n.option === YI.InstallerOptions.MaximumDownloadBandwidth ? e("settings_common_saved") : null, + success: n.state && n.option === xP.InstallerOptions.MaximumDownloadBandwidth ? e("settings_common_saved") : null, help: e("settings_download_speed_desc"), - children: (0, QI.jsx)(im, { + children: (0, wR.jsx)(Av, { name: "speed-limit", type: "number", placeholder: e("settings_download_speed_unlimited"), @@ -68738,14 +71908,14 @@ }) }) }; - var yM = class extends yP.l { + var Hz = class extends _j.l { constructor(e, t) { - super(), this.#R = void 0, this.#D = void 0, this.#O = void 0, this.#L = new Set, this.#I = e, this.options = t, this.#N = null, this.bindMethods(), this.setOptions(t) + super(), this.#R = void 0, this.#D = void 0, this.#u = void 0, this.#L = new Set, this.#d = e, this.options = t, this.#N = null, this.bindMethods(), this.setOptions(t) } - #I; + #d; #R; #D; - #O; + #u; #j; #M; #N; @@ -68760,16 +71930,16 @@ this.refetch = this.refetch.bind(this) } onSubscribe() { - 1 === this.listeners.size && (this.#R.addObserver(this), _M(this.#R, this.options) ? this.#$() : this.updateResult(), this.#q()) + 1 === this.listeners.size && (this.#R.addObserver(this), Kz(this.#R, this.options) ? this.#$() : this.updateResult(), this.#q()) } onUnsubscribe() { this.hasListeners() || this.destroy() } shouldFetchOnReconnect() { - return bM(this.#R, this.options, this.options.refetchOnReconnect) + return Yz(this.#R, this.options, this.options.refetchOnReconnect) } shouldFetchOnWindowFocus() { - return bM(this.#R, this.options, this.options.refetchOnWindowFocus) + return Yz(this.#R, this.options, this.options.refetchOnWindowFocus) } destroy() { this.listeners = new Set, this.#W(), this.#H(), this.#R.removeObserver(this) @@ -68777,27 +71947,27 @@ setOptions(e, t) { const n = this.options, r = this.#R; - if (this.options = this.#I.defaultQueryOptions(e), (0, gP.VS)(n, this.options) || this.#I.getQueryCache().notify({ - type: "observerOptionsUpdated", - query: this.#R, - observer: this - }), "undefined" !== typeof this.options.enabled && "boolean" !== typeof this.options.enabled) throw new Error("Expected enabled to be a boolean"); + if (this.options = this.#d.defaultQueryOptions(e), (0, gj.VS)(n, this.options) || this.#d.getQueryCache().notify({ + type: "observerOptionsUpdated", + query: this.#R, + observer: this + }), "undefined" !== typeof this.options.enabled && "boolean" !== typeof this.options.enabled) throw new Error("Expected enabled to be a boolean"); this.options.queryKey || (this.options.queryKey = n.queryKey), this.#K(); const i = this.hasListeners(); - i && xM(this.#R, r, this.options, n) && this.#$(), this.updateResult(t), !i || this.#R === r && this.options.enabled === n.enabled && this.options.staleTime === n.staleTime || this.#Y(); + i && Qz(this.#R, r, this.options, n) && this.#$(), this.updateResult(t), !i || this.#R === r && this.options.enabled === n.enabled && this.options.staleTime === n.staleTime || this.#Y(); const a = this.#Q(); !i || this.#R === r && this.options.enabled === n.enabled && a === this.#G || this.#Z(a) } getOptimisticResult(e) { - const t = this.#I.getQueryCache().build(this.#I, e), + const t = this.#d.getQueryCache().build(this.#d, e), n = this.createResult(t, e); return function(e, t) { - if (!(0, gP.VS)(e.getCurrentResult(), t)) return !0; + if (!(0, gj.VS)(e.getCurrentResult(), t)) return !0; return !1 - }(this, n) && (this.#O = n, this.#M = this.options, this.#j = this.#R.state), n + }(this, n) && (this.#u = n, this.#M = this.options, this.#j = this.#R.state), n } getCurrentResult() { - return this.#O + return this.#u } trackResult(e) { const t = {}; @@ -68813,41 +71983,41 @@ return this.#R } refetch({ - ...e - } = {}) { + ...e + } = {}) { return this.fetch({ ...e }) } fetchOptimistic(e) { - const t = this.#I.defaultQueryOptions(e), - n = this.#I.getQueryCache().build(this.#I, t); + const t = this.#d.defaultQueryOptions(e), + n = this.#d.getQueryCache().build(this.#d, t); return n.isFetchingOptimistic = !0, n.fetch().then((() => this.createResult(n, t))) } fetch(e) { return this.#$({ ...e, cancelRefetch: e.cancelRefetch ?? !0 - }).then((() => (this.updateResult(), this.#O))) + }).then((() => (this.updateResult(), this.#u))) } #$(e) { this.#K(); let t = this.#R.fetch(this.options, e); - return e?.throwOnError || (t = t.catch(gP.ZT)), t + return e?.throwOnError || (t = t.catch(gj.ZT)), t } #Y() { - if (this.#W(), gP.sk || this.#O.isStale || !(0, gP.PN)(this.options.staleTime)) return; - const e = (0, gP.Kp)(this.#O.dataUpdatedAt, this.options.staleTime) + 1; + if (this.#W(), gj.sk || this.#u.isStale || !(0, gj.PN)(this.options.staleTime)) return; + const e = (0, gj.Kp)(this.#u.dataUpdatedAt, this.options.staleTime) + 1; this.#U = setTimeout((() => { - this.#O.isStale || this.updateResult() + this.#u.isStale || this.updateResult() }), e) } #Q() { return ("function" === typeof this.options.refetchInterval ? this.options.refetchInterval(this.#R) : this.options.refetchInterval) ?? !1 } #Z(e) { - this.#H(), this.#G = e, !gP.sk && !1 !== this.options.enabled && (0, gP.PN)(this.#G) && 0 !== this.#G && (this.#B = setInterval((() => { - (this.options.refetchIntervalInBackground || _P.isFocused()) && this.#$() + this.#H(), this.#G = e, !gj.sk && !1 !== this.options.enabled && (0, gj.PN)(this.#G) && 0 !== this.#G && (this.#B = setInterval((() => { + (this.options.refetchIntervalInBackground || bj.isFocused()) && this.#$() }), this.#G)) } #q() { @@ -68862,7 +72032,7 @@ createResult(e, t) { const n = this.#R, r = this.options, - i = this.#O, + i = this.#u, a = this.#j, o = this.#M, s = e !== n ? e.state : this.#D, @@ -68878,14 +72048,14 @@ f = !1; if (t._optimisticResults) { const i = this.hasListeners(), - a = !i && _M(e, t), - o = i && xM(e, n, t, r); - (a || o) && (p = kP(e.options.networkMode) ? "fetching" : "paused", l.dataUpdatedAt || (h = "pending")), "isRestoring" === t._optimisticResults && (p = "idle") + a = !i && Kz(e, t), + o = i && Qz(e, n, t, r); + (a || o) && (p = kj(e.options.networkMode) ? "fetching" : "paused", l.dataUpdatedAt || (h = "pending")), "isRestoring" === t._optimisticResults && (p = "idle") } if (t.select && "undefined" !== typeof l.data) if (i && l.data === a?.data && t.select === this.#F) c = this.#z; else try { - this.#F = t.select, c = t.select(l.data), c = (0, gP.oE)(i?.data, c, t), this.#z = c, this.#N = null + this.#F = t.select, c = t.select(l.data), c = (0, gj.oE)(i?.data, c, t), this.#z = c, this.#N = null } catch (_) { this.#N = _ } else c = l.data; @@ -68897,7 +72067,7 @@ } catch (_) { this.#N = _ } - "undefined" !== typeof e && (h = "success", c = (0, gP.oE)(i?.data, e, t), f = !0) + "undefined" !== typeof e && (h = "success", c = (0, gj.oE)(i?.data, e, t), f = !0) } this.#N && (u = this.#N, c = this.#z, d = Date.now(), h = "error"); const m = "fetching" === p, @@ -68927,15 +72097,15 @@ isPaused: "paused" === p, isPlaceholderData: f, isRefetchError: v && 0 !== l.dataUpdatedAt, - isStale: kM(e, t), + isStale: Zz(e, t), refetch: this.refetch } } updateResult(e) { - const t = this.#O, + const t = this.#u, n = this.createResult(this.#R, this.options); - if (this.#j = this.#R.state, this.#M = this.options, (0, gP.VS)(n, t)) return; - void 0 !== this.#j.data && (this.#V = this.#R), this.#O = n; + if (this.#j = this.#R.state, this.#M = this.options, (0, gj.VS)(n, t)) return; + void 0 !== this.#j.data && (this.#V = this.#R), this.#u = n; const r = {}; !1 !== e?.listeners && (() => { if (!t) return !0; @@ -68944,17 +72114,17 @@ } = this.options, n = "function" === typeof e ? e() : e; if ("all" === n || !n && !this.#L.size) return !0; const r = new Set(n ?? this.#L); - return this.options.throwOnError && r.add("error"), Object.keys(this.#O).some((e => { + return this.options.throwOnError && r.add("error"), Object.keys(this.#u).some((e => { const n = e; - return this.#O[n] !== t[n] && r.has(n) + return this.#u[n] !== t[n] && r.has(n) })) - })() && (r.listeners = !0), this.#T({ + })() && (r.listeners = !0), this.#m({ ...r, ...e }) } #K() { - const e = this.#I.getQueryCache().build(this.#I, this.options); + const e = this.#d.getQueryCache().build(this.#d, this.options); if (e === this.#R) return; const t = this.#R; this.#R = e, this.#D = e.state, this.hasListeners() && (t?.removeObserver(this), e.addObserver(this)) @@ -68962,11 +72132,11 @@ onQueryUpdate() { this.updateResult(), this.hasListeners() && this.#q() } - #T(e) { - vP.batch((() => { + #m(e) { + vj.batch((() => { e.listeners && this.listeners.forEach((e => { - e(this.#O) - })), this.#I.getQueryCache().notify({ + e(this.#u) + })), this.#d.getQueryCache().notify({ query: this.#R, type: "observerResultsUpdated" }) @@ -68974,29 +72144,29 @@ } }; - function _M(e, t) { + function Kz(e, t) { return function(e, t) { return !1 !== t.enabled && !e.state.dataUpdatedAt && !("error" === e.state.status && !1 === t.retryOnMount) - }(e, t) || e.state.dataUpdatedAt > 0 && bM(e, t, t.refetchOnMount) + }(e, t) || e.state.dataUpdatedAt > 0 && Yz(e, t, t.refetchOnMount) } - function bM(e, t, n) { + function Yz(e, t, n) { if (!1 !== t.enabled) { const r = "function" === typeof n ? n(e) : n; - return "always" === r || !1 !== r && kM(e, t) + return "always" === r || !1 !== r && Zz(e, t) } return !1 } - function xM(e, t, n, r) { - return !1 !== n.enabled && (e !== t || !1 === r.enabled) && (!n.suspense || "error" !== e.state.status) && kM(e, n) + function Qz(e, t, n, r) { + return !1 !== n.enabled && (e !== t || !1 === r.enabled) && (!n.suspense || "error" !== e.state.status) && Zz(e, n) } - function kM(e, t) { + function Zz(e, t) { return e.isStaleByTime(t.staleTime) } - function wM() { + function Xz() { let e = !1; return { clearReset: () => { @@ -69008,14 +72178,14 @@ isReset: () => e } } - var SM = Ee.createContext(wM()), - EM = Ee.createContext(!1); - EM.Provider; + var Jz = Ee.createContext(Xz()), + eV = Ee.createContext(!1); + eV.Provider; - function OM(e, t, n) { - const r = (0, Jj.NL)(n), - i = Ee.useContext(EM), - a = Ee.useContext(SM), + function tV(e, t, n) { + const r = (0, Aj.NL)(n), + i = Ee.useContext(eV), + a = Ee.useContext(Jz), o = r.defaultQueryOptions(e); o._optimisticResults = i ? "isRestoring" : "optimistic", (e => { e.suspense && "number" !== typeof e.staleTime && (e.staleTime = 1e3) @@ -69028,56 +72198,56 @@ })(a); const [s] = Ee.useState((() => new t(r, o))), l = s.getOptimisticResult(o); if (Ee.useSyncExternalStore(Ee.useCallback((e => { - const t = i ? () => {} : s.subscribe(vP.batchCalls(e)); - return s.updateResult(), t - }), [s, i]), (() => s.getCurrentResult()), (() => s.getCurrentResult())), Ee.useEffect((() => { - s.setOptions(o, { - listeners: !1 - }) - }), [o, s]), ((e, t, n) => e?.suspense && ((e, t) => e.isLoading && e.isFetching && !t)(t, n))(o, l, i)) throw ((e, t, n) => t.fetchOptimistic(e).catch((() => { + const t = i ? () => {} : s.subscribe(vj.batchCalls(e)); + return s.updateResult(), t + }), [s, i]), (() => s.getCurrentResult()), (() => s.getCurrentResult())), Ee.useEffect((() => { + s.setOptions(o, { + listeners: !1 + }) + }), [o, s]), ((e, t, n) => e?.suspense && ((e, t) => e.isLoading && e.isFetching && !t)(t, n))(o, l, i)) throw ((e, t, n) => t.fetchOptimistic(e).catch((() => { n.clearReset() })))(o, s, a); if ((({ - result: e, - errorResetBoundary: t, - throwOnError: n, - query: r - }) => e.isError && !t.isReset() && !e.isFetching && eM(n, [e.error, r]))({ - result: l, - errorResetBoundary: a, - throwOnError: o.throwOnError, - query: s.getCurrentQuery() - })) throw l.error; + result: e, + errorResetBoundary: t, + throwOnError: n, + query: r + }) => e.isError && !t.isReset() && !e.isFetching && Pj(n, [e.error, r]))({ + result: l, + errorResetBoundary: a, + throwOnError: o.throwOnError, + query: s.getCurrentQuery() + })) throw l.error; return o.notifyOnChangeProps ? l : s.trackResult(l) } - function IM(e, t) { - return OM(e, yM, t) + function nV(e, t) { + return tV(e, Hz, t) } - let CM; + let rV; ! function(e) { e.HOSTNAME = "hostname", e.PORT = "port", e.EXECUTABLE = "executable", e.LAUNCHOPTIONS = "launchOptions", e.EACSANDBOX = "eacSandbox" - }(CM || (CM = {})); - const AM = e => { + }(rV || (rV = {})); + const iV = e => { var t, n, r, i, a, o; const { t: s - } = bt("settingsPage"), l = Wj((e => e.settings)), c = e.gameSettings, u = { - [CM.HOSTNAME]: null !== (t = c.hostname) && void 0 !== t ? t : "", - [CM.PORT]: null !== (n = c.port) && void 0 !== n ? n : null, - [CM.EXECUTABLE]: null !== (r = c.executable) && void 0 !== r ? r : "", - [CM.LAUNCHOPTIONS]: null !== (i = c.launchOptions) && void 0 !== i ? i : "", - [CM.EACSANDBOX]: null !== (a = c.eacSandbox) && void 0 !== a ? a : null + } = bt("settingsPage"), l = jz((e => e.settings)), c = e.gameSettings, u = { + [rV.HOSTNAME]: null !== (t = c.hostname) && void 0 !== t ? t : "", + [rV.PORT]: null !== (n = c.port) && void 0 !== n ? n : null, + [rV.EXECUTABLE]: null !== (r = c.executable) && void 0 !== r ? r : "", + [rV.LAUNCHOPTIONS]: null !== (i = c.launchOptions) && void 0 !== i ? i : "", + [rV.EACSANDBOX]: null !== (a = c.eacSandbox) && void 0 !== a ? a : null }, [d, p] = (0, Ee.useState)(!1), [h, f] = (0, Ee.useState)(null), [m, g] = (0, Ee.useState)(u), v = null !== (o = (() => { const { data: e - } = IM(fP(c.gameId, c.channelId)); + } = nV(Fj(c.gameId, c.channelId)); return e })()) && void 0 !== o ? o : {}; - iM((() => { + Lj((() => { f(null), p(!1) - }), pC, d); - const y = uM((async (e, t) => { + }), NR, d); + const y = Fz((async (e, t) => { const n = Object.fromEntries(Object.entries({ ...m, [e]: b(e, t) @@ -69093,7 +72263,7 @@ id: e, message: s("settings_common_saved") }) - }), 600), + }), 300), _ = (0, Ee.useCallback)((async (e, t) => { h && f(null), g({ ...m, @@ -69102,311 +72272,456 @@ }), [m, y, h]), b = (e, t) => { var n; - return e === CM.PORT ? "" === t ? null : parseInt(t) : e === CM.EACSANDBOX ? !1 === t ? null : t : e !== CM.LAUNCHOPTIONS ? null !== (n = t.trim()) && void 0 !== n ? n : "" : null !== t && void 0 !== t ? t : "" + return e === rV.PORT ? "" === t ? null : parseInt(t) : e === rV.EACSANDBOX ? !1 === t ? null : t : e !== rV.LAUNCHOPTIONS ? null !== (n = t.trim()) && void 0 !== n ? n : "" : null !== t && void 0 !== t ? t : "" }; - return (0, QI.jsxs)(QI.Fragment, { - children: [(0, QI.jsx)(pd, { + return (0, wR.jsxs)(wR.Fragment, { + children: [(0, wR.jsx)(sd, { spacing: "250" - }), (0, QI.jsxs)(id, { + }), (0, wR.jsxs)(Ju, { title: s("settings_games_launch_command_line"), description: s("settings_games_launch_disclaimer"), - children: [(0, QI.jsx)(_d, { + children: [(0, wR.jsx)($h, { horizontal: !0, label: s("settings_games_launch_hostname"), necessityIndicator: "Optional", - help: v.universeHost ? (0, QI.jsxs)(gs, { + help: v.universeHost ? (0, wR.jsxs)(ds, { as: "span", variant: "body-m-bold", - children: [s("settings_games_launch_default"), " ", (0, QI.jsx)(gs, { + children: [s("settings_games_launch_default"), " ", (0, wR.jsx)(ds, { as: "span", children: v.universeHost })] }) : void 0, - success: h && h.id === CM.HOSTNAME ? s("settings_common_saved") : void 0, - children: (0, QI.jsx)(im, { + success: h && h.id === rV.HOSTNAME ? s("settings_common_saved") : void 0, + children: (0, wR.jsx)(Av, { value: null === m || void 0 === m ? void 0 : m.hostname, - name: CM.HOSTNAME, + name: rV.HOSTNAME, onChange: ({ - target: { - name: e, - value: t - } - }) => _(e, t) + target: { + name: e, + value: t + } + }) => _(e, t) }) - }), (0, QI.jsx)(_d, { + }), (0, wR.jsx)($h, { horizontal: !0, label: s("settings_games_launch_port"), necessityIndicator: "Optional", - help: v.universePort ? (0, QI.jsxs)(gs, { + help: v.universePort ? (0, wR.jsxs)(ds, { as: "span", variant: "body-m-bold", - children: [s("settings_games_launch_default"), " ", (0, QI.jsx)(gs, { + children: [s("settings_games_launch_default"), " ", (0, wR.jsx)(ds, { as: "span", children: v.universePort })] }) : void 0, - success: h && h.id === CM.PORT ? s("settings_common_saved") : void 0, - children: (0, QI.jsx)(im, { + success: h && h.id === rV.PORT ? s("settings_common_saved") : void 0, + children: (0, wR.jsx)(Av, { value: null === (null === m || void 0 === m ? void 0 : m.port) ? "" : null === m || void 0 === m ? void 0 : m.port, - name: CM.PORT, + name: rV.PORT, type: "number", onChange: ({ - target: { - name: e, - value: t - } - }) => _(e, t) + target: { + name: e, + value: t + } + }) => _(e, t) }) - }), (0, QI.jsx)(_d, { + }), (0, wR.jsx)($h, { horizontal: !0, label: s("settings_games_launch_executable"), necessityIndicator: "Optional", - help: v.executable ? (0, QI.jsxs)(gs, { + help: v.executable ? (0, wR.jsxs)(ds, { as: "span", variant: "body-m-bold", - children: [s("settings_games_launch_default"), " ", (0, QI.jsx)(gs, { + children: [s("settings_games_launch_default"), " ", (0, wR.jsx)(ds, { as: "span", children: v.executable })] }) : void 0, - success: h && h.id === CM.EXECUTABLE ? s("settings_common_saved") : void 0, - children: (0, QI.jsx)(im, { + success: h && h.id === rV.EXECUTABLE ? s("settings_common_saved") : void 0, + children: (0, wR.jsx)(Av, { value: null === m || void 0 === m ? void 0 : m.executable, - name: CM.EXECUTABLE, + name: rV.EXECUTABLE, onChange: ({ - target: { - name: e, - value: t - } - }) => _(e, t) + target: { + name: e, + value: t + } + }) => _(e, t) }) - }), (0, QI.jsx)(_d, { + }), (0, wR.jsx)($h, { horizontal: !0, label: s("settings_games_launch_launch_options"), necessityIndicator: "Optional", - help: v.launchOptions ? (0, QI.jsxs)(QI.Fragment, { - children: [(0, QI.jsx)(gs, { + help: v.launchOptions ? (0, wR.jsxs)(wR.Fragment, { + children: [(0, wR.jsx)(ds, { as: "span", variant: "body-m-bold", children: s("settings_games_launch_default") - }), (0, QI.jsx)("br", {}), (0, QI.jsx)(gs, { + }), (0, wR.jsx)("br", {}), (0, wR.jsx)(ds, { as: "span", children: v.launchOptions })] }) : void 0, - success: h && h.id === CM.LAUNCHOPTIONS ? s("settings_common_saved") : null, - children: (0, QI.jsx)(im, { + success: h && h.id === rV.LAUNCHOPTIONS ? s("settings_common_saved") : null, + children: (0, wR.jsx)(Av, { as: "textarea", value: null === m || void 0 === m ? void 0 : m.launchOptions, - name: CM.LAUNCHOPTIONS, + name: rV.LAUNCHOPTIONS, onChange: ({ - target: { - name: e, - value: t - } - }) => _(e, t) + target: { + name: e, + value: t + } + }) => _(e, t) }) })] - }), (0, QI.jsx)(pd, { + }), (0, wR.jsx)(sd, { spacing: "250" - }), (0, QI.jsxs)(id, { + }), (0, wR.jsxs)(Ju, { title: s("settings_games_launch_eac_title"), description: s("settings_games_launch_eac_description"), - children: [(0, QI.jsx)(Qu, { + children: [(0, wR.jsx)(qu, { type: "informative", children: s("settings_games_launch_eac_informative") - }), (0, QI.jsx)(ad, { + }), (0, wR.jsx)(ed, { type: "toggle", checked: null !== (null === m || void 0 === m ? void 0 : m.eacSandbox), disabled: !(null != (null === m || void 0 === m ? void 0 : m.executable) && "" !== (null === m || void 0 === m ? void 0 : m.executable)) && (null != (null === m || void 0 === m ? void 0 : m.eacSandbox) && g({ ...m, - [CM.EACSANDBOX]: null + [rV.EACSANDBOX]: null }), !0), onChange: ({ - target: { - checked: e - } - }) => _(CM.EACSANDBOX, e), - success: h && h.id === CM.EACSANDBOX ? s("settings_common_saved") : null, + target: { + checked: e + } + }) => _(rV.EACSANDBOX, e), + success: h && h.id === rV.EACSANDBOX ? s("settings_common_saved") : null, children: s("settings_games_launch_eac_disable") })] })] }) }, - PM = ({ - open: e = !1, - ...t - }) => { + aV = ({ + open: e = !1, + ...t + }) => { var n; const { t: r - } = bt("settingsPage"), i = Wj((e => e.application)), a = Wj((e => e.installer)), o = Wj((e => e.library)), s = Wj((e => e.settings)), l = Wj((e => e.user)), c = (0, Ee.useMemo)((() => ({ + } = bt("settingsPage"), i = OL(), a = jz((e => e.application)), o = jz((e => e.dialog)), s = jz((e => e.installer)), l = jz((e => e.library)), c = jz((e => e.settings)), u = jz((e => e.storage)), d = jz((e => e.user)), p = (0, Ee.useMemo)((() => [u.defaultLibraryFolder, ...u.additionalLibraries]), [u.defaultLibraryFolder, u.additionalLibraries]), h = t.item.libraryFolder, f = (0, Ee.useMemo)((() => p.find((e => e === h)) || u.defaultLibraryFolder), [h, p, u]), [m, g] = (0, Ee.useState)(f), v = (0, Ee.useMemo)((() => ({ platformId: t.item.platformId, gameId: t.item.gameId, gameName: t.item.gameName, channelId: t.item.channelId, channelName: t.item.channelName - })), [t]), u = (0, Ee.useMemo)((() => aP(a.installations, c)), [a, c]), d = (0, Ee.useMemo)((() => oP(a.uninstallations, c)), [a, c]), p = (0, Ee.useCallback)((e => { - const t = o.availableGames.find((t => t.id === e.gameId)); + })), [t]), y = (0, Ee.useMemo)((() => fR(s.installations, v)), [s, v]), _ = (0, Ee.useMemo)((() => mR(s.uninstallations, v)), [s, v]), b = (0, Ee.useCallback)((e => { + const t = l.availableGames.find((t => t.id === e.gameId)); return null === t || void 0 === t ? void 0 : t.logo - }), [o.availableGames]), { - isGameChannelInstalled: h, - isInstalling: f, - isUninstalling: m, - isUserPriviled: g, - isVerifying: v, - isPaused: y + }), [l.availableGames]), { + isGameChannelInstalled: x, + isInstalling: w, + isUninstalling: k, + isUserPriviled: S, + isVerifying: E, + isPaused: O } = (0, Ee.useMemo)((() => { var e, t; - const n = o.actions.getInstalledChannel(c), - r = (null === n || void 0 === n ? void 0 : n.status) === YI.GameChannelStatus.INSTALLED || (null === n || void 0 === n ? void 0 : n.status) === YI.GameChannelStatus.UPDATE_AVAILABLE || (null === n || void 0 === n ? void 0 : n.status) === YI.GameChannelStatus.RUNNING, - i = u && u.type === YI.InstallationType.VERIFY && u.status !== YI.InstallationStatus.COMPLETED, - a = u && u.type === YI.InstallationType.INSTALL && u.status !== YI.InstallationStatus.COMPLETED, - s = u && u.status === YI.InstallationStatus.PAUSED; + const n = l.actions.getInstalledChannel(v), + r = (null === n || void 0 === n ? void 0 : n.status) === xP.GameChannelStatus.INSTALLED || (null === n || void 0 === n ? void 0 : n.status) === xP.GameChannelStatus.UPDATE_AVAILABLE || (null === n || void 0 === n ? void 0 : n.status) === xP.GameChannelStatus.RUNNING, + i = y && y.type === xP.InstallationType.VERIFY && y.status !== xP.InstallationStatus.COMPLETED, + a = y && y.type === xP.InstallationType.INSTALL && y.status !== xP.InstallationStatus.COMPLETED, + o = y && y.status === xP.InstallationStatus.PAUSED; return { isGameChannelInstalled: r, isVerifying: i, isInstalling: a, - isUninstalling: void 0 !== d, - isUserPriviled: null !== (e = null === (t = l.identity) || void 0 === t ? void 0 : t.privileged) && void 0 !== e && e, - isPaused: s + isUninstalling: void 0 !== _, + isUserPriviled: null !== (e = null === (t = d.identity) || void 0 === t ? void 0 : t.privileged) && void 0 !== e && e, + isPaused: o } - }), [c, u, o, d, null === (n = l.identity) || void 0 === n ? void 0 : n.privileged]), _ = i.actions.isOffline(), { - verifyButtonLabel: b, - installButtonLabel: x, - uninstallButtonLabel: k + }), [v, y, l, _, null === (n = d.identity) || void 0 === n ? void 0 : n.privileged]), I = a.actions.isOffline(), { + verifyButtonLabel: C, + installButtonLabel: A, + uninstallButtonLabel: P } = (0, Ee.useMemo)((() => ({ - verifyButtonLabel: v && (null === u || void 0 === u ? void 0 : u.status) === YI.InstallationStatus.PAUSED ? r("settings_games_game_files_process_paused") : r(v ? "settings_games_game_files_verifying_files" : "settings_games_game_files_verify_files"), - installButtonLabel: f && (null === u || void 0 === u ? void 0 : u.status) === YI.InstallationStatus.PAUSED ? r("settings_games_game_files_process_paused") : r(f ? "settings_games_game_files_installing_files" : "settings_games_game_files_install_files"), - uninstallButtonLabel: r(m ? "settings_games_game_files_uninstalling_files" : "settings_games_game_files_uninstall_files") - })), [null === u || void 0 === u ? void 0 : u.status, f, m, v, r]), w = (0, Ee.useMemo)((() => v && y || f && y ? HP : v || f ? gT : void 0), [y, v, f]), S = (0, Ee.useCallback)((e => u && u.type === e ? i.actions.setDownloadPopoverOpened(!0) : a.actions.addInstallationToQueue(c, e)), [i.actions, c, u, a.actions]), E = (0, Ee.useCallback)((() => a.actions.startUninstallation(t.item)), [a.actions, t.item]); - return (0, QI.jsxs)(Cs, { - prefix: (0, QI.jsx)("img", { - src: p(c), + verifyButtonLabel: E && (null === y || void 0 === y ? void 0 : y.status) === xP.InstallationStatus.PAUSED ? r("settings_games_game_files_process_paused") : r(E ? "settings_games_game_files_verifying_files" : "settings_games_game_files_verify_files"), + installButtonLabel: w && (null === y || void 0 === y ? void 0 : y.status) === xP.InstallationStatus.PAUSED ? r("settings_games_game_files_process_paused") : r(w ? "settings_games_game_files_installing_files" : "settings_games_game_files_install_files"), + uninstallButtonLabel: r(k ? "settings_games_game_files_uninstalling_files" : "settings_games_game_files_uninstall_files") + })), [null === y || void 0 === y ? void 0 : y.status, w, k, E, r]), T = (0, Ee.useMemo)((() => E && O || w && O ? oM : E || w ? TM : void 0), [O, E, w]), R = (0, Ee.useCallback)((async e => { + y && y.type === e && a.actions.setDownloadPopoverOpened(!0), "install" === e ? await o.actions.showGameStartInstallationDialog(v, m, !0) : s.actions.addInstallationToQueue(v, e) + }), [a.actions, v, y, s.actions, o.actions, m]), D = (0, Ee.useCallback)((() => s.actions.startUninstallation(t.item)), [s.actions, t.item]), L = (0, Ee.useCallback)((async e => { + if ("manage-library" === e) i("/settings/storage"); + else { + await c.actions.setChannelLibraryFolder(v, e) && g(e) + } + }), [i, c, v]); + return (0, wR.jsxs)(ks, { + prefix: (0, wR.jsx)("img", { + src: b(v), alt: "", width: "32" }), open: e, - title: `${c.gameName} - ${c.channelId}`, - children: [(0, QI.jsx)(id, { - title: r("settings_games_installation_path_title"), - description: (0, QI.jsxs)(QI.Fragment, { - children: [(0, QI.jsx)("span", { - className: "sol-u-color-foreground", - children: dC(s.library.defaultLibraryFolder) - }), t.item.installDir, "\\", c.channelId] - }) - }), (0, QI.jsx)(pd, { - spacing: "250" - }), (0, QI.jsx)(id, { - title: r("settings_games_game_files_title"), - description: r("settings_games_game_files_description"), - children: (0, QI.jsxs)(Ps, { - vertical: !1, + title: `${v.gameName} - ${v.channelId}`, + children: [(0, wR.jsx)(Ju, { + title: r("settings_games_game_location_title"), + description: r("settings_games_game_location_description"), + children: (0, wR.jsxs)(Es, { + vertical: !0, gap: "100", - children: [(0, QI.jsx)(xs, { - onClick: () => S(YI.InstallationType.VERIFY), - disabled: i.isGameRunning || f || m || _, - loading: v, - loadingIcon: w, - children: b - }), !h && (0, QI.jsx)(xs, { - onClick: () => S(YI.InstallationType.INSTALL), - disabled: i.isGameRunning || v || _, - loading: f, - loadingIcon: w, - icon: f ? void 0 : QP, - children: x - }), h && (0, QI.jsx)(xs, { - variant: "plain", - color: "negative", - onClick: E, - disabled: i.isGameRunning || v, - loading: m, - loadingIcon: w, - children: k + children: [(0, wR.jsx)(Es, { + vertical: !0, + gap: "50", + children: (0, wR.jsx)(qu, { + type: "informative", + align: "start", + children: r("settings_games_info_move_directory") + }) + }), (0, wR.jsx)($h, { + label: "Game Library", + children: (0, wR.jsxs)(ey, { + onChange: ({ + target: { + value: e + } + }) => L(e), + disabled: a.isGameRunning || w || E || k, + defaultValue: f, + value: m, + children: [p.map(((e, t) => (0, wR.jsx)(Jv, { + label: e, + value: e + }, t))), (0, wR.jsx)(Jv, { + value: "manage-library", + children: (0, wR.jsxs)(Es, { + gap: "100", + align: "center", + children: [(0, wR.jsx)(us, { + source: vM + }), (0, wR.jsx)(ds, { + variant: "button-s", + transform: "uppercase", + truncate: !0, + children: r("settings_games_manage_game_libraries") + })] + }) + })] + }) + }), (0, wR.jsxs)(Es, { + vertical: !0, + gap: "50", + children: [(0, wR.jsx)(qu, { + type: "neutral", + icon: !1, + children: r("settings_gmaes_info_complete_path") + }), (0, wR.jsxs)(qu, { + type: "neutral", + icon: !1, + children: [(0, wR.jsx)("strong", { + children: f + }), t.item.installDir, "\\", v.channelId] + })] })] }) - }), g ? (0, QI.jsx)(AM, { + }), (0, wR.jsx)(sd, { + spacing: "250" + }), (0, wR.jsx)(Ju, { + title: r("settings_games_game_files_title"), + description: r("settings_games_game_files_description"), + children: (0, wR.jsxs)(Es, { + vertical: !1, + gap: "100", + children: [(0, wR.jsx)(gs, { + onClick: () => R(xP.InstallationType.VERIFY), + disabled: a.isGameRunning || w || k || I, + loading: E, + loadingIcon: T, + children: C + }), !x && (0, wR.jsx)(gs, { + onClick: () => R(xP.InstallationType.INSTALL), + disabled: a.isGameRunning || E || I, + loading: w, + loadingIcon: T, + icon: w ? void 0 : cM, + children: A + }), x && (0, wR.jsx)(gs, { + variant: "plain", + color: "negative", + onClick: D, + disabled: a.isGameRunning || E, + loading: k, + loadingIcon: T, + children: P + })] + }) + }), S ? (0, wR.jsx)(iV, { gameSettings: t.item }) : null] - }, `${c.gameName}${c.channelId}`) + }, `${v.gameName}${v.channelId}`) }, - TM = () => { + oV = () => { const { t: e - } = bt("settingsPage"), [t, n] = (0, Ee.useState)(!1), [r, i] = (0, Ee.useState)(null), a = Wj((e => e.settings)), o = Wj((e => e.installer)), s = Wj((e => e.application)), { - gameId: l, - channelId: c - } = nD(); - iM((() => { - i(null), n(!1) - }), pC, t); - const { - items: u + } = bt("settingsPage"), t = jz((e => e.settings)), { + gameId: n, + channelId: r + } = CL(), { + items: i } = (0, Ee.useMemo)((() => { - const e = a.gamesSettings.find((e => e.gameId === l && e.channelId === c)); + const e = t.gamesSettings.find((e => e.gameId === n && e.channelId === r)); return { - items: a.gamesSettings.map((t => (0, QI.jsx)(PM, { + items: t.gamesSettings.map((t => (0, wR.jsx)(aV, { item: t, open: t === e }, `${t.gameName}${t.channelId}`))) } - }), [c, l, a.gamesSettings]), d = (0, Ee.useCallback)((async () => { - const t = a.library.defaultLibraryFolder, - r = await window.launcherAPI.settings.openLibraryFolderDialog(t); - if (r.length > 0) { - const t = dC(r[0]); - a.actions.saveLibraryFolder(t), i({ - id: "library", - message: e("settings_games_installation_library_folder_success") - }), n(!0) - } - }), [a.actions]); - return (0, QI.jsxs)(Am, { + }), [r, n, t.gamesSettings]); + return (0, wR.jsx)(ty, { title: e("settings_games_title"), - children: [(0, QI.jsxs)(id, { - title: e("settings_games_installation_title"), - description: e("settings_games_installation_description"), - children: [(0, QI.jsx)(Qu, { - type: "informative", - children: e("settings_games_installation_information") - }), (0, QI.jsxs)(_d, { - horizontal: !0, - label: e("settings_games_installation_library_folder_label"), - success: r && "library" === r.id ? r.message : null, - children: [(0, QI.jsx)(im, { - readOnly: !0, - value: a.library.defaultLibraryFolder - }), (0, QI.jsx)(xs, { - disabled: o.installations.length > 0 || s.isGameRunning, - onClick: () => d(), - type: "button", - children: e("settings_games_installation_library_folder_change") - })] - })] - }), (0, QI.jsx)(As, { + children: (0, wR.jsx)(Ss, { openAll: e("settings_common_accordion_open_all"), closeAll: e("settings_common_accordion_close_all"), - children: u, - className: 1 === u.length ? "sol-u-margin-bs-250" : "" + children: i, + className: 1 === i.length ? "sol-u-margin-bs-250" : "" + }) + }) + }, + sV = () => { + const { + t: e + } = bt("settingsPage"), t = jz((e => e.storage)), [n, r] = (0, Ee.useState)(!1), [i, a] = (0, Ee.useState)(null), [o, s] = (0, Ee.useState)(null), l = jz((e => e.installer)), c = jz((e => e.application)); + Lj((() => { + a(null), s(null), r(!1) + }), NR, n); + const u = (0, Ee.useCallback)((async () => { + const n = t.defaultLibraryFolder, + i = await window.launcherAPI.settings.openLibraryFolderDialog(n); + if (i.length > 0) { + const o = LR(i[0]); + await t.actions.saveDefaultLibraryFolder(o, n) && (a({ + id: "library", + message: e("settings_games_installation_library_folder_success") + }), r(!0)) + } + }), [t.actions, t.defaultLibraryFolder]), + d = (0, Ee.useCallback)((async () => { + const n = t.defaultLibraryFolder, + i = await window.launcherAPI.settings.openLibraryFolderDialog(n), + a = t.additionalLibraries.length; + if (i.length > 0) { + const n = LR(i[0]); + await t.actions.saveAdditionalLibraryFolders(n) && (s({ + id: `additionalLibrary${a}`, + message: e("settings_games_installation_library_folder_success") + }), r(!0)) + } + }), [t.actions, t.defaultLibraryFolder, t.additionalLibraries]), + p = (0, Ee.useCallback)((async n => { + const i = t.additionalLibraries[n], + a = await window.launcherAPI.settings.openLibraryFolderDialog(i); + if (a.length > 0) { + const o = LR(a[0]); + await t.actions.replaceAdditionalLibraryFolder(o, i, n) && (s({ + id: `additionalLibrary${n}`, + message: e("settings_games_installation_library_folder_success") + }), r(!0)) + } + }), [t.actions, t.additionalLibraries]), + h = (0, Ee.useCallback)((async (e, n) => { + t.actions.deleteAdditionalLibrary(e, n) + }), [t.actions]), + f = (0, Ee.useCallback)((async (n, i) => { + await t.actions.replaceDefaultLibrary(n, i) && (a({ + id: "library", + message: e("settings_games_installation_library_folder_success") + }), s({ + id: `additionalLibrary${i}`, + message: e("settings_games_installation_library_folder_success") + }), r(!0)) + }), [t.actions]); + return (0, wR.jsxs)(ty, { + title: e("settings_storage_title"), + children: [(0, wR.jsx)(Ju, { + title: e("settings_storage_main_title"), + description: e("settings_storage_main_description"), + children: (0, wR.jsx)($h, { + horizontal: !0, + label: e("settings_storage_default_library_folder_label"), + labelType: "hidden", + success: i && "library" === i.id ? i.message : null, + children: (0, wR.jsx)(Mv, { + path: t.defaultLibraryFolder, + children: (0, wR.jsx)(gs, { + disabled: l.installations.length > 0 || c.isGameRunning, + onClick: () => u(), + type: "button", + children: e("settings_games_installation_library_folder_change") + }) + }) + }) + }), (0, wR.jsx)(sd, { + spacing: "250" + }), (0, wR.jsxs)(Ju, { + title: e("settings_storage_additional_libs_title"), + description: e("settings_storage_additional_libs_description"), + children: [t.additionalLibraries.map(((n, r) => (0, wR.jsx)($h, { + horizontal: !0, + label: e("settings_storage_default_library_folder_label"), + labelType: "hidden", + success: o && o.id === `additionalLibrary${r}` ? o.message : null, + children: (0, wR.jsxs)(Mv, { + path: t.additionalLibraries[r] || t.defaultLibraryFolder, + children: [(0, wR.jsx)(gs, { + disabled: l.installations.length > 0 || c.isGameRunning, + onClick: () => p(r), + type: "button", + children: e("settings_games_installation_library_folder_change") + }), (0, wR.jsxs)(qv, { + trigger: (0, wR.jsx)(gs, { + icon: dM, + size: "medium", + variant: "plain" + }), + placement: "right-start", + offset: "small", + children: [(0, wR.jsx)(Gv, { + disabled: l.installations.length > 0 || c.isGameRunning, + label: e("settings_action_set_default"), + onClick: () => f(n, r) + }), (0, wR.jsx)(Gv, { + disabled: l.installations.length > 0 || c.isGameRunning, + color: "negative", + label: e("settings_action_delete_library"), + onClick: () => h(n, r) + })] + })] + }) + }, r))), (0, wR.jsx)(gs, { + icon: Xj, + onClick: () => d(), + type: "button", + children: e("settings_storage_add_additional_libraries") + })] })] }) }, - RM = () => { + lV = () => { + var e; const { - t: e - } = bt("form"), t = Wj((e => e.application)), n = eD(), { - isPending: r, - submitSignIn: i, - register: a, - handleSubmit: o, - captcha: s, - refreshCaptcha: l, - serverError: c, - control: u + t: t + } = bt("form"), n = jz((e => e.application)), r = OL(), i = null !== (e = n.launcherVersion.includes("rc")) && void 0 !== e && e, { + isPending: a, + submitSignIn: o, + register: s, + handleSubmit: l, + captcha: c, + refreshCaptcha: u, + serverError: d, + control: p } = (() => { - const e = eD(), + const e = OL(), [t, n] = Ee.useState(null), { captcha: r, @@ -69414,12 +72729,12 @@ resetAuthentication: i, fetchCaptcha: a } - } = Wj((e => e.authentication)), - o = Wj((e => e.user)), + } = jz((e => e.authentication)), + o = jz((e => e.user)), { launcherVersion: s, platformMaster: l - } = Wj((e => e.application)), + } = jz((e => e.application)), { handleSubmit: c, register: u, @@ -69429,23 +72744,23 @@ }, resetField: h, control: f - } = lj(), + } = mj(), { authentication: { onSignInSuccess: m } - } = cC(), + } = RR(), { mutate: g, isPending: v - } = tM({ + } = Tj({ mutationFn: ({ - username: e, - password: t, - captcha: n, - remember: r, - launcherVersion: i - }) => ZA.authentication.signIn({ + username: e, + password: t, + captcha: n, + remember: r, + launcherVersion: i + }) => oR.authentication.signIn({ username: e, password: t, captcha: n, @@ -69464,17 +72779,17 @@ remember: o, captcha: s } = r; - if (s && a(), t instanceof sA) { - const e = await ZA.authentication.getCaptcha(); - Wj.setState((t => ({ + if (s && a(), t instanceof fT) { + const e = await oR.authentication.getCaptcha(); + jz.setState((t => ({ authentication: { ...t.authentication, captcha: e } }))) } else { - if (t instanceof pA) throw e(XM.SIGN_IN_GAME_PACKAGE_MISSING); - if (t instanceof lA) return d("captcha", { + if (t instanceof _T) throw e(CV.SIGN_IN_GAME_PACKAGE_MISSING); + if (t instanceof mT) return d("captcha", { type: "custom", message: null === t || void 0 === t ? void 0 : t.message }), void h("captcha", { @@ -69483,17 +72798,17 @@ keepTouched: !0, defaultValue: "" }); - if (t instanceof tA) throw e(XM.SIGN_IN_MFA, { + if (t instanceof lT) throw e(CV.SIGN_IN_MFA, { state: { remember: o, username: i } }); - if (t instanceof UA) throw n((0, QI.jsx)(ft, { + if (t instanceof QT) throw n((0, wR.jsx)(ft, { i18nKey: "error_sign_in_not_authorized", ns: "errors", - components: [(0, QI.jsx)(am, { - href: YI.configuration.downloadUrl, + components: [(0, wR.jsx)(Pv, { + href: xP.configuration.downloadUrl, external: !0, inherit: !0 })] @@ -69501,9 +72816,9 @@ n(t.message) } }, b = ({ - identity: t, - session: n - }, r) => { + identity: t, + session: n + }, r) => { i(); const a = r.remember; throw o.actions.setIdentity({ @@ -69516,7 +72831,7 @@ accountName: t.username, trackingMetricsId: t.trackingMetricsId, heapAccountId: t.heapAccountId - }), e(XM.HOME) + }), e(CV.HOME) }; return { refreshCaptcha: y, @@ -69538,120 +72853,124 @@ } })(); (0, Ee.useEffect)((() => { - t.connection.mode !== YI.ConnectionMode.ONLINE && n(`/${XM.OFFLINE}`) - }), [t.connection, n]); - const d = (0, Ee.useMemo)((() => (0, QI.jsxs)(QI.Fragment, { - children: [(0, QI.jsxs)(gs, { + n.connection.mode !== xP.ConnectionMode.ONLINE && r(`/${CV.OFFLINE}`) + }), [n.connection, r]); + const h = (0, Ee.useMemo)((() => (0, wR.jsxs)(wR.Fragment, { + children: [(0, wR.jsxs)(ds, { className: "footer__sign-up", color: "foreground-weak", variant: "body-m", - children: [e("sign_in_no_account"), (0, QI.jsx)(am, { + children: [t("sign_in_no_account"), (0, wR.jsx)(Pv, { external: !0, - href: YI.configuration.enlistUrl, + href: xP.configuration.enlistUrl, "data-test-id": "enlist", - children: e("sign_in_create_account") + children: t("sign_in_create_account") })] - }), (0, QI.jsx)(xs, { + }), (0, wR.jsx)(gs, { className: "footer__sign-in-button", - loading: r && e("sign_in_loading"), + loading: a && t("sign_in_loading"), size: "large", type: "submit", "data-test-id": "sign_in_submit", - children: e("sign_in_submit") + children: t("sign_in_submit") })] - })), [r]); - return (0, QI.jsxs)(Dm, { + })), [a]); + return (0, wR.jsxs)(ay, { as: "form", "data-test-id": "sign-in-form", - title: e("sign_in_title"), - footer: d, - onSubmit: o(i), - children: [c && (0, QI.jsx)(Qu, { + title: t("sign_in_title"), + footer: h, + onSubmit: l(o), + children: [i && (0, wR.jsx)(qu, { + type: "notice", + icon: yM, + children: t("sign_in_prerelease") + }), d && (0, wR.jsx)(qu, { type: "negative", - children: c - }), (0, QI.jsx)(uj, { - control: u, + children: d + }), (0, wR.jsx)(XF, { + control: p, name: "username", rules: { required: { value: !0, - message: e("error_email_field_is_required") + message: t("error_email_field_is_required") } }, - label: e("sign_in_email"), - disabled: r, + label: t("sign_in_email"), + disabled: a, "data-test-id": "email", inputProps: { id: "email" } - }), (0, QI.jsx)(uj, { - control: u, + }), (0, wR.jsx)(XF, { + control: p, name: "password", rules: { required: { value: !0, - message: e("error_password_field_is_required") + message: t("error_password_field_is_required") } }, - label: e("sign_in_password"), + label: t("sign_in_password"), type: "password", - disabled: r, + disabled: a, "data-test-id": "password", inputProps: { id: "password" } - }), (0, QI.jsxs)(Ps, { + }), (0, wR.jsxs)(Es, { align: "center", gap: "100", justify: "space-between", - children: [(0, QI.jsx)(ad, { - label: e("sign_in_remember_me"), - inputProps: a("remember"), + children: [(0, wR.jsx)(ed, { + label: t("sign_in_remember_me"), + inputProps: s("remember"), "data-test-id": "remember", - children: e("sign_in_remember_me") - }), (0, QI.jsx)(am, { - href: YI.configuration.recoverUrl, + children: t("sign_in_remember_me") + }), (0, wR.jsx)(Pv, { + href: xP.configuration.recoverUrl, external: !0, "data-test-id": "recover", - children: e("sign_in_forgot_password") + children: t("sign_in_forgot_password") })] - }), s && (0, QI.jsxs)(QI.Fragment, { - children: [(0, QI.jsx)("img", { + }), c && (0, wR.jsxs)(wR.Fragment, { + children: [(0, wR.jsx)("img", { id: "captcha", - src: s, + src: c, alt: "" - }), (0, QI.jsx)(uj, { - control: u, + }), (0, wR.jsx)(XF, { + control: p, name: "captcha", rules: { required: { value: !0, - message: e("error_field_is_required") + message: t("error_field_is_required") } }, - label: e("sign_in_captcha"), - help: e("sign_in_captcha_help"), - disabled: r, + label: t("sign_in_captcha"), + help: t("sign_in_captcha_help"), + disabled: a, "data-test-id": "captcha", inputProps: { "aria-describedby": "captcha", - suffix: (0, QI.jsx)(xs, { - "aria-label": e("sign_in_captcha_refresh"), + suffix: (0, wR.jsx)(gs, { + "aria-label": t("sign_in_captcha_refresh"), "aria-controls": "captcha", - disabled: r, - icon: GP, + disabled: a, + icon: nM, variant: "plain", size: "small", - onClick: l + onClick: u }) } })] })] }) }, - DM = () => { - const e = Wj((e => e.user)), - t = Wj((e => e.authentication)), + cV = () => { + const e = jz((e => e.user)), + t = jz((e => e.authentication)), { t: n } = bt("form"), @@ -69664,31 +72983,31 @@ } = (() => { const { t: e - } = bt("errors"), [t, n] = Ee.useState(null), r = eD(), i = XR(), { + } = bt("errors"), [t, n] = Ee.useState(null), r = OL(), i = SL(), { actions: { resetAuthentication: a } - } = Wj((e => e.authentication)), o = Wj((e => e.user)), { + } = jz((e => e.authentication)), o = jz((e => e.user)), { handleSubmit: s, register: l, formState: { errors: c }, control: u - } = lj(), { + } = mj(), { authentication: { onSignInSuccess: d } - } = cC(), { + } = RR(), { mutate: p, isPending: h - } = tM({ + } = Tj({ mutationFn: ({ - username: e, - codeMfa: t, - deviceName: n, - duration: r - }) => ZA.authentication.signInMfa({ + username: e, + codeMfa: t, + deviceName: n, + duration: r + }) => oR.authentication.signInMfa({ username: e, codeMfa: t, deviceName: n, @@ -69697,14 +73016,14 @@ onSuccess: e => m(e), onError: e => f(e) }), f = t => { - if (t instanceof nA) n(e("error_wrong_mfa_code")); + if (t instanceof cT) n(e("error_wrong_mfa_code")); else { - if (t instanceof pA) throw r(`../${XM.SIGN_IN_GAME_PACKAGE_MISSING}`); - if (t instanceof UA) throw n((0, QI.jsx)(ft, { + if (t instanceof _T) throw r(`../${CV.SIGN_IN_GAME_PACKAGE_MISSING}`); + if (t instanceof QT) throw n((0, wR.jsx)(ft, { i18nKey: "error_sign_in_not_authorized", ns: "errors", - components: [(0, QI.jsx)(am, { - href: YI.configuration.downloadUrl, + components: [(0, wR.jsx)(Pv, { + href: xP.configuration.downloadUrl, external: !0, inherit: !0 })] @@ -69712,12 +73031,12 @@ n(t.message) } }, m = ({ - identity: e, - session: t, - device: n - }) => { + identity: e, + session: t, + device: n + }) => { a(); - const s = i.state.remember && n.duration !== AA.SESSION; + const s = i.state.remember && n.duration !== jT.SESSION; throw o.actions.setIdentity({ identity: e, remember: s @@ -69731,7 +73050,7 @@ accountName: e.username, trackingMetricsId: e.trackingMetricsId, heapAccountId: e.heapAccountId - }), r(XM.HOME) + }), r(CV.HOME) }; return { isPending: h, @@ -69754,19 +73073,19 @@ })(), l = [{ label: n("sign_in_mfa_session"), - value: AA.SESSION + value: jT.SESSION }, { label: n("sign_in_mfa_day"), - value: AA.DAY + value: jT.DAY }, { label: n("sign_in_mfa_week"), - value: AA.WEEK + value: jT.WEEK }, { label: n("sign_in_mfa_month"), - value: AA.MONTH + value: jT.MONTH }, { label: n("sign_in_mfa_year"), - value: AA.YEAR + value: jT.YEAR }], c = l[3].value, u = (0, Ee.useCallback)((() => { @@ -69774,32 +73093,32 @@ clearDevice: !1 }), t.actions.resetAuthentication() }), []), - d = (0, Ee.useMemo)((() => (0, QI.jsxs)(QI.Fragment, { - children: [(0, QI.jsx)(xs, { + d = (0, Ee.useMemo)((() => (0, wR.jsxs)(wR.Fragment, { + children: [(0, wR.jsx)(gs, { disabled: o, onClick: u, variant: "plain", href: "..", - icon: VP, + icon: Jj, size: "large", children: n("sign_in_mfa_back_sign_in") - }), (0, QI.jsx)(xs, { + }), (0, wR.jsx)(gs, { loading: o && n("sign_in_loading"), size: "large", type: "submit", children: n("sign_in_mfa_submit") })] })), [o, u]); - return (0, QI.jsxs)(Dm, { + return (0, wR.jsxs)(ay, { as: "form", title: n("sign_in_mfa_title"), subtitle: n("sign_in_mfa_subtitle"), footer: d, onSubmit: a(i), - children: [r && (0, QI.jsx)(Qu, { + children: [r && (0, wR.jsx)(qu, { type: "negative", children: r - }), (0, QI.jsx)(uj, { + }), (0, wR.jsx)(XF, { control: s, name: "codeMfa", rules: { @@ -69810,7 +73129,7 @@ }, help: n("sign_in_mfa_code_help"), label: n("sign_in_mfa_code_label") - }), (0, QI.jsx)(uj, { + }), (0, wR.jsx)(XF, { control: s, name: "deviceName", rules: { @@ -69825,93 +73144,93 @@ }, help: n("sign_in_mfa_device_help"), label: n("sign_in_mfa_device_label") - }), (0, QI.jsx)(cj, { + }), (0, wR.jsx)(ZF, { control: s, name: "duration", label: n("sign_in_mfa_duration_label"), help: n("sign_in_mfa_duration_help"), defaultValue: c, children: l.map((({ - label: e, - value: t - }) => (0, QI.jsx)(Im, { + label: e, + value: t + }) => (0, wR.jsx)(Jv, { value: t, children: e }, t))) })] }) }, - LM = () => { + uV = () => { const { t: e } = bt("errors"); - return (0, QI.jsx)(Dm, { + return (0, wR.jsx)(ay, { title: e("error_game_package_missing_title"), - subtitle: (0, QI.jsx)(ft, { + subtitle: (0, wR.jsx)(ft, { i18nKey: "error_game_package_missing_subtitle", ns: "errors", - components: [(0, QI.jsx)(am, { - href: YI.configuration.playnowUrl, + components: [(0, wR.jsx)(Pv, { + href: xP.configuration.playnowUrl, external: !0 })] }), - footer: (0, QI.jsxs)(QI.Fragment, { - children: [(0, QI.jsx)(xs, { - href: YI.configuration.supportUrl, + footer: (0, wR.jsxs)(wR.Fragment, { + children: [(0, wR.jsx)(gs, { + href: xP.configuration.supportUrl, external: !0, variant: "plain", - icon: WP, + icon: aM, size: "large", children: e("error_game_package_missing_support") - }), (0, QI.jsx)(xs, { - href: `/${XM.SIGN_IN}`, + }), (0, wR.jsx)(gs, { + href: `/${CV.SIGN_IN}`, size: "large", children: e("error_game_package_missing_retry") })] }), - children: (0, QI.jsx)("video", { + children: (0, wR.jsx)("video", { autoPlay: !0, loop: !0, muted: !0, playsInline: !0, - src: YI.configuration.assets.directory + "/videos/no-game-package.mp4", + src: xP.configuration.assets.directory + "/videos/no-game-package.mp4", style: { borderRadius: "var(--sol-radius-8)" } }) }) }, - NM = ({ - date: e - }) => (0, QI.jsx)(Ku, { - content: sC(e, "long"), + dV = ({ + date: e + }) => (0, wR.jsx)(Gu, { + content: PR(e, "long"), placement: "bottom", interactive: !1, - children: (0, QI.jsx)("time", { + children: (0, wR.jsx)("time", { dateTime: e, - children: sC(e, "relative") + children: PR(e, "relative") }) }), - jM = () => { + pV = () => { const { t: e } = bt("gamePage"), { channelSelected: t - } = Wj((e => e.library)), n = Wj((e => e.application)), [r, i] = (0, Ee.useState)(TA.COMM_LINKS), { + } = jz((e => e.library)), n = jz((e => e.application)), [r, i] = (0, Ee.useState)(FT.COMM_LINKS), { dynamicContentSections: a, contents: o, isLoading: s } = (({ - channelId: e, - gameId: t - }) => { - const n = Wj((e => e.application)), + channelId: e, + gameId: t + }) => { + const n = jz((e => e.application)), { data: r, isLoading: i - } = IM({ - ...mP(t, e), - enabled: n.connection.mode === YI.ConnectionMode.ONLINE && !n.isWindowMinimized + } = nV({ + ...zj(t, e), + enabled: n.connection.mode === xP.ConnectionMode.ONLINE && !n.isWindowMinimized }); return { ...(0, Ee.useMemo)((() => { @@ -69921,13 +73240,13 @@ o = null !== (n = null === r || void 0 === r ? void 0 : r.launcherCards) && void 0 !== n ? n : [], s = [], l = {}; - return l[`${TA.COMM_LINKS}`] = i.map(XI).sort(eC).slice(0, 8), l[`${TA.PATCH_NOTES}`] = a, o.map(JI).forEach((e => { + return l[`${FT.COMM_LINKS}`] = i.map(kR).sort(ER).slice(0, 8), l[`${FT.PATCH_NOTES}`] = a, o.map(SR).forEach((e => { var t, n; if (null === (t = e.channel) || void 0 === t || !t.name) return; const r = void 0 !== l[e.channel.name]; - l[e.channel.name] = [...null !== (n = l[e.channel.name]) && void 0 !== n ? n : [], e].sort(tC), r || s.push(e.channel) + l[e.channel.name] = [...null !== (n = l[e.channel.name]) && void 0 !== n ? n : [], e].sort(OR), r || s.push(e.channel) })), { - dynamicContentSections: s.sort(nC).map((e => e.name)), + dynamicContentSections: s.sort(IR).map((e => e.name)), contents: l } }), [r]), @@ -69937,102 +73256,102 @@ gameId: t.gameId, channelId: t.channelId }), l = (0, Ee.useMemo)((() => { - const e = [TA.PATCH_NOTES], - t = [...a, TA.COMM_LINKS, TA.PATCH_NOTES].filter((t => { + const e = [FT.PATCH_NOTES], + t = [...a, FT.COMM_LINKS, FT.PATCH_NOTES].filter((t => { const n = e.find((e => e === t)); return !(0 === o[t].length && n) })); return i(t[0]), t }), [a, o]), c = s && 0 === a.length; - return !n.actions.isOffline() && c ? (0, QI.jsx)(wd, { + return !n.actions.isOffline() && c ? (0, wR.jsx)(Kh, { empty: e("game_page_cards_loading") - }) : (0, QI.jsxs)(QI.Fragment, { - children: [(0, QI.jsx)(Kf, { - children: l.map((t => (0, QI.jsx)(Id, { + }) : (0, wR.jsxs)(wR.Fragment, { + children: [(0, wR.jsx)(_v, { + children: l.map((t => (0, wR.jsx)(Xh, { label: e(`game_page_cards_tab_${t&&t.toLowerCase()}`), active: r === t, onClick: () => i(t) }, t))) - }), n.actions.isOffline() && (s || 0 === o[TA.COMM_LINKS].length) ? (0, QI.jsx)(MM, {}) : (0, QI.jsx)(FM, { + }), n.actions.isOffline() && (s || 0 === o[FT.COMM_LINKS].length) ? (0, wR.jsx)(hV, {}) : (0, wR.jsx)(fV, { contents: o, activeTab: r })] }) }, - MM = () => (0, QI.jsx)(wd, { - children: (0, QI.jsx)(Yu, { + hV = () => (0, wR.jsx)(Kh, { + children: (0, wR.jsx)($u, { title: "No Connection", href: "#", isOffline: !0 }, "Card-no-connection") }), - FM = ({ - contents: e, - activeTab: t - }) => { + fV = ({ + contents: e, + activeTab: t + }) => { const { t: n } = bt("gamePage"), r = (0, Ee.useCallback)((e => { var t; return null !== (t = e.media) && void 0 !== t && t.overlay ? { - src: `${YI.configuration.rootUrl}${e.media.overlay.resize}`, + src: `${xP.configuration.rootUrl}${e.media.overlay.resize}`, srcSet: `${e.media.overlay.source} 2x` } : void 0 }), []), i = (0, Ee.useCallback)((e => { var t, n, r; - return null !== (t = e.media) && void 0 !== t && t.thumbnail ? `${YI.configuration.rootUrl}${null===(r=e.media)||void 0===r?void 0:r.thumbnail}` : null !== (n = e.media) && void 0 !== n && n.background ? { - src: `${YI.configuration.rootUrl}${e.media.background.resize}`, + return null !== (t = e.media) && void 0 !== t && t.thumbnail ? `${xP.configuration.rootUrl}${null===(r=e.media)||void 0===r?void 0:r.thumbnail}` : null !== (n = e.media) && void 0 !== n && n.background ? { + src: `${xP.configuration.rootUrl}${e.media.background.resize}`, srcSet: `${e.media.background.source} 2x` } : void 0 }), []); - return (0, QI.jsx)(QI.Fragment, { - children: e[t] && e[t].length > 0 ? (0, QI.jsx)(wd, { - children: e[t].map((e => (0, QI.jsx)(Yu, { + return (0, wR.jsx)(wR.Fragment, { + children: e[t] && e[t].length > 0 ? (0, wR.jsx)(Kh, { + children: e[t].map((e => (0, wR.jsx)($u, { href: e["meta.button_url"] ? e["meta.button_url"] : e.url, label: e["meta.button_label"] ? e["meta.button_label"] : n("game_page_card_button_label"), title: e.title, excerpt: e.excerpt, external: !0, - subtitle: null !== e && void 0 !== e && e.publish_start ? (0, QI.jsx)(NM, { + subtitle: null !== e && void 0 !== e && e.publish_start ? (0, wR.jsx)(dV, { date: e.publish_start }) : void 0, image: i(e), overlay: r(e) }, `Card-${e.id}`))) - }) : (0, QI.jsx)(wd, { + }) : (0, wR.jsx)(Kh, { empty: n("game_page_cards_empty") }) }) }, - zM = (e, t, n) => { - return n ? YI.GameChannelStatus.UNINSTALLING : t && t.status !== YI.InstallationStatus.COMPLETED ? t.status : null !== (r = null === e || void 0 === e ? void 0 : e.status) && void 0 !== r ? r : YI.GameChannelStatus.AVAILABLE; + mV = (e, t, n) => { + return n ? xP.GameChannelStatus.UNINSTALLING : t && t.status !== xP.InstallationStatus.COMPLETED ? t.status : null !== (r = null === e || void 0 === e ? void 0 : e.status) && void 0 !== r ? r : xP.GameChannelStatus.AVAILABLE; var r }, - VM = JSON.parse('{"v":"5.9.0","fr":30,"ip":0,"op":120,"w":16,"h":16,"nm":"install","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Light","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":0,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":12,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":24,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":36,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":48,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":60,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":72,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":84,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":96,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":108,"s":[0]},{"t":120,"s":[100]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[11.75,11.75,0],"ix":2,"l":2},"a":{"a":0,"k":[1,1,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-0.414,0],[0,-0.414],[0.414,0],[0,0.414]],"o":[[0.414,0],[0,0.414],[-0.414,0],[0,-0.414]],"v":[[0,-0.75],[0.75,0],[0,0.75],[-0.75,0]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[1,1],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":120,"st":0,"bm":0},{"ddd":0,"ind":2,"ty":4,"nm":"Arrow","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":0,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":2.002,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":4.004,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":6.006,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":8.008,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":10.01,"s":[10]},{"t":12.01171875,"s":[100]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[7.925,4.036,0],"ix":2,"l":2},"a":{"a":0,"k":[2.981,3.287,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0],[0,0],[0.221,0],[0,-0.414],[-0.164,-0.138],[0,0],[-0.206,0],[-0.136,0.134],[0,0],[0,0.232],[0.414,0],[0.137,-0.151],[0,0]],"o":[[0,0],[0,0],[0,0],[-0.137,-0.151],[-0.414,0],[0,0.232],[0,0],[0.136,0.134],[0.206,0],[0,0],[0.164,-0.138],[0,-0.414],[-0.22,0],[0,0],[0,0]],"v":[[0.825,-3.036],[-0.675,-3.036],[-0.675,0.482],[-1.425,-0.115],[-1.981,-0.363],[-2.731,0.387],[-2.462,0.964],[-0.453,2.82],[0.075,3.036],[0.603,2.82],[2.462,0.964],[2.731,0.387],[1.981,-0.363],[1.425,-0.115],[0.825,0.482]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[2.981,3.287],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":120,"st":0,"bm":0},{"ddd":0,"ind":3,"ty":4,"nm":"Base","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[8,8,0],"ix":2,"l":2},"a":{"a":0,"k":[7.25,7.25,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0.69,0],[0,0],[0,0.69],[0,0],[0,0]],"o":[[0,0.69],[0,0],[-0.69,0],[0,0],[0,0],[0,0]],"v":[[5.5,4.25],[4.25,5.5],[-4.25,5.5],[-5.5,4.25],[-5.5,2],[5.5,2]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ind":1,"ty":"sh","ix":2,"ks":{"a":0,"k":{"i":[[1.519,0],[0,0],[0,0],[0,0],[0,-0.69],[0,0],[0,0],[0,0],[-0.69,0],[0,0],[0,0],[0,0],[0,-1.519],[0,0],[-1.519,0],[0,0],[0,1.519],[0,0]],"o":[[0,0],[0,0],[0,0],[0.69,0],[0,0],[0,0],[0,0],[0,-0.69],[0,0],[0,0],[0,0],[-1.519,0],[0,0],[0,1.519],[0,0],[1.519,0],[0,0],[0,-1.519]],"v":[[4.25,-7],[2,-7],[2,-5.5],[4.25,-5.5],[5.5,-4.25],[5.5,0.5],[-5.5,0.5],[-5.5,-4.25],[-4.25,-5.5],[-2,-5.5],[-2,-7],[-4.25,-7],[-7,-4.25],[-7,4.25],[-4.25,7],[4.25,7],[7,4.25],[7,-4.25]],"c":true},"ix":2},"nm":"Path 2","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"mm","mm":1,"nm":"Merge Paths 1","mn":"ADBE Vector Filter - Merge","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[7.25,7.25],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":4,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":120,"st":0,"bm":0}],"markers":[]}'), - UM = JSON.parse('{"v":"5.9.0","fr":30,"ip":0,"op":120,"w":16,"h":16,"nm":"play - option 5","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"play-2 Outlines","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":20.021,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":22.022,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":24.024,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":26.026,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":28.028,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":30.03,"s":[10]},{"t":32.0322265625,"s":[100]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[8.086,8,0],"ix":2,"l":2},"a":{"a":0,"k":[7.236,7.911,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0.685,0.383],[0,0],[0,-0.765],[0,0],[-0.685,0.382]],"o":[[0.685,-0.383],[0,0],[-0.685,-0.383],[0,0],[0,0.766],[0,0]],"v":[[5.051,0.861],[5.051,-0.861],[-4.195,-6.029],[-5.736,-5.167],[-5.736,5.167],[-4.195,6.029]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1.5,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[7.236,7.911],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0.985],"y":[2.857]},"o":{"x":[0.159],"y":[0]},"t":0,"s":[100]},{"i":{"x":[0.735],"y":[3.042]},"o":{"x":[0.143],"y":[3.552]},"t":30.03,"s":[100]},{"t":60.060546875,"s":[100]}],"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.709],"y":[1.164]},"o":{"x":[0.474],"y":[0.066]},"t":0,"s":[0]},{"i":{"x":[0.602],"y":[0.921]},"o":{"x":[0.314],"y":[0.13]},"t":30.03,"s":[78.782]},{"t":52,"s":[0]}],"ix":2},"o":{"a":1,"k":[{"i":{"x":[0.472],"y":[0.887]},"o":{"x":[0.51],"y":[0.095]},"t":0,"s":[-360]},{"t":60.060546875,"s":[720]}],"ix":3},"m":1,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":0,"op":1261.26126126126,"st":0,"bm":0}],"markers":[]}'), - BM = JSON.parse('{"v":"5.9.0","fr":30,"ip":0,"op":120,"w":16,"h":16,"nm":"update","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Circle 2","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":27,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":29.002,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":31.004,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":33.006,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":35.008,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":37.01,"s":[10]},{"t":39.01171875,"s":[100]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[8,8,0],"ix":2,"l":2},"a":{"a":0,"k":[7.7,7.7,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[3.1,0],[0,3.4],[-3.5,0],[-1,-2.1]],"o":[[-0.5,3],[-3.5,0],[0,-3.4],[2.5,0],[0,0]],"v":[[6.2,1],[0,6.2],[-6.2,0],[0,-6.2],[5.6,-2.7]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1.5,"ix":5},"lc":2,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[7.7,7.7],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0.5],"y":[1]},"o":{"x":[0.5],"y":[0]},"t":120,"s":[0]},{"t":146,"s":[100]}],"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.5],"y":[1]},"o":{"x":[0.5],"y":[0]},"t":30,"s":[0]},{"i":{"x":[0.5],"y":[1]},"o":{"x":[0.5],"y":[0]},"t":45,"s":[100]},{"i":{"x":[0.5],"y":[1]},"o":{"x":[0.5],"y":[0]},"t":120,"s":[100]},{"t":146,"s":[100]}],"ix":2},"o":{"a":1,"k":[{"i":{"x":[0.5],"y":[1]},"o":{"x":[0.5],"y":[0]},"t":120,"s":[0]},{"t":146,"s":[360]}],"ix":3},"m":1,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":27,"op":147,"st":27,"bm":0},{"ddd":0,"ind":2,"ty":4,"nm":"Circle","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":-84.008,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":-82.006,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":-80.004,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":-78.002,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":-76,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":-73.998,"s":[10]},{"t":-71.99609375,"s":[100]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[8,8,0],"ix":2,"l":2},"a":{"a":0,"k":[7.7,7.7,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[3.1,0],[0,3.4],[-3.5,0],[-1,-2.1]],"o":[[-0.5,3],[-3.5,0],[0,-3.4],[2.5,0],[0,0]],"v":[[6.2,1],[0,6.2],[-6.2,0],[0,-6.2],[5.6,-2.7]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1.5,"ix":5},"lc":2,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[7.7,7.7],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0.5],"y":[1]},"o":{"x":[0.5],"y":[0]},"t":0,"s":[0]},{"t":26,"s":[100]}],"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.5],"y":[1]},"o":{"x":[0.5],"y":[0]},"t":-90,"s":[0]},{"i":{"x":[0.5],"y":[1]},"o":{"x":[0.5],"y":[0]},"t":-75,"s":[100]},{"i":{"x":[0.5],"y":[1]},"o":{"x":[0.5],"y":[0]},"t":0,"s":[100]},{"t":26,"s":[100]}],"ix":2},"o":{"a":1,"k":[{"i":{"x":[0.5],"y":[1]},"o":{"x":[0.5],"y":[0]},"t":0,"s":[0]},{"t":26,"s":[360]}],"ix":3},"m":1,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":-93,"op":27,"st":-93,"bm":0},{"ddd":0,"ind":4,"ty":4,"nm":"Arrow 2","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":27,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":29.002,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":31.004,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":33.006,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":35.008,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":37.01,"s":[10]},{"t":39.01171875,"s":[100]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[12.7,4,0],"ix":2,"l":2},"a":{"a":0,"k":[3,3,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":1,"k":[{"i":{"x":0.5,"y":1},"o":{"x":0.5,"y":0},"t":43,"s":[{"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[-0.281,-0.312],[1.5,1.5],[-0.375,-0.406]],"c":false}]},{"i":{"x":0.5,"y":1},"o":{"x":0.167,"y":0},"t":46,"s":[{"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[1.5,-1.5],[1.5,1.5],[-1.5,1.5]],"c":false}]},{"i":{"x":0.5,"y":1},"o":{"x":0.167,"y":0},"t":130,"s":[{"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[1.5,-1.5],[1.5,1.5],[-1.5,1.5]],"c":false}]},{"t":133,"s":[{"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[-0.281,-0.312],[1.5,1.5],[-0.375,-0.406]],"c":false}]}],"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1.5,"ix":5},"lc":2,"lj":2,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[3,3],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":43,"op":133,"st":25,"bm":0},{"ddd":0,"ind":5,"ty":4,"nm":"Arrow","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":-84.008,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":-82.006,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":-80.004,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":-78.002,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":-76,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":-73.998,"s":[10]},{"t":-71.99609375,"s":[100]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[12.7,4,0],"ix":2,"l":2},"a":{"a":0,"k":[3,3,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":1,"k":[{"i":{"x":0.5,"y":1},"o":{"x":0.5,"y":0},"t":-77,"s":[{"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[-0.281,-0.312],[1.5,1.5],[-0.375,-0.406]],"c":false}]},{"i":{"x":0.5,"y":1},"o":{"x":0.167,"y":0},"t":-74,"s":[{"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[1.5,-1.5],[1.5,1.5],[-1.5,1.5]],"c":false}]},{"i":{"x":0.5,"y":1},"o":{"x":0.167,"y":0},"t":10,"s":[{"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[1.5,-1.5],[1.5,1.5],[-1.5,1.5]],"c":false}]},{"t":13,"s":[{"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[-0.281,-0.312],[1.5,1.5],[-0.375,-0.406]],"c":false}]}],"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1.5,"ix":5},"lc":2,"lj":2,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[3,3],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":-77,"op":13,"st":-95,"bm":0}],"markers":[]}'), - GM = e => { + gV = JSON.parse('{"v":"5.9.0","fr":30,"ip":0,"op":120,"w":16,"h":16,"nm":"install","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Light","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":0,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":12,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":24,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":36,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":48,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":60,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":72,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":84,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":96,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":108,"s":[0]},{"t":120,"s":[100]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[11.75,11.75,0],"ix":2,"l":2},"a":{"a":0,"k":[1,1,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-0.414,0],[0,-0.414],[0.414,0],[0,0.414]],"o":[[0.414,0],[0,0.414],[-0.414,0],[0,-0.414]],"v":[[0,-0.75],[0.75,0],[0,0.75],[-0.75,0]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[1,1],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":120,"st":0,"bm":0},{"ddd":0,"ind":2,"ty":4,"nm":"Arrow","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":0,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":2.002,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":4.004,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":6.006,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":8.008,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":10.01,"s":[10]},{"t":12.01171875,"s":[100]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[7.925,4.036,0],"ix":2,"l":2},"a":{"a":0,"k":[2.981,3.287,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0],[0,0],[0.221,0],[0,-0.414],[-0.164,-0.138],[0,0],[-0.206,0],[-0.136,0.134],[0,0],[0,0.232],[0.414,0],[0.137,-0.151],[0,0]],"o":[[0,0],[0,0],[0,0],[-0.137,-0.151],[-0.414,0],[0,0.232],[0,0],[0.136,0.134],[0.206,0],[0,0],[0.164,-0.138],[0,-0.414],[-0.22,0],[0,0],[0,0]],"v":[[0.825,-3.036],[-0.675,-3.036],[-0.675,0.482],[-1.425,-0.115],[-1.981,-0.363],[-2.731,0.387],[-2.462,0.964],[-0.453,2.82],[0.075,3.036],[0.603,2.82],[2.462,0.964],[2.731,0.387],[1.981,-0.363],[1.425,-0.115],[0.825,0.482]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[2.981,3.287],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":120,"st":0,"bm":0},{"ddd":0,"ind":3,"ty":4,"nm":"Base","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[8,8,0],"ix":2,"l":2},"a":{"a":0,"k":[7.25,7.25,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0.69,0],[0,0],[0,0.69],[0,0],[0,0]],"o":[[0,0.69],[0,0],[-0.69,0],[0,0],[0,0],[0,0]],"v":[[5.5,4.25],[4.25,5.5],[-4.25,5.5],[-5.5,4.25],[-5.5,2],[5.5,2]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ind":1,"ty":"sh","ix":2,"ks":{"a":0,"k":{"i":[[1.519,0],[0,0],[0,0],[0,0],[0,-0.69],[0,0],[0,0],[0,0],[-0.69,0],[0,0],[0,0],[0,0],[0,-1.519],[0,0],[-1.519,0],[0,0],[0,1.519],[0,0]],"o":[[0,0],[0,0],[0,0],[0.69,0],[0,0],[0,0],[0,0],[0,-0.69],[0,0],[0,0],[0,0],[-1.519,0],[0,0],[0,1.519],[0,0],[1.519,0],[0,0],[0,-1.519]],"v":[[4.25,-7],[2,-7],[2,-5.5],[4.25,-5.5],[5.5,-4.25],[5.5,0.5],[-5.5,0.5],[-5.5,-4.25],[-4.25,-5.5],[-2,-5.5],[-2,-7],[-4.25,-7],[-7,-4.25],[-7,4.25],[-4.25,7],[4.25,7],[7,4.25],[7,-4.25]],"c":true},"ix":2},"nm":"Path 2","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"mm","mm":1,"nm":"Merge Paths 1","mn":"ADBE Vector Filter - Merge","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[7.25,7.25],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":4,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":120,"st":0,"bm":0}],"markers":[]}'), + vV = JSON.parse('{"v":"5.9.0","fr":30,"ip":0,"op":120,"w":16,"h":16,"nm":"play - option 5","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"play-2 Outlines","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":20.021,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":22.022,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":24.024,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":26.026,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":28.028,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":30.03,"s":[10]},{"t":32.0322265625,"s":[100]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[8.086,8,0],"ix":2,"l":2},"a":{"a":0,"k":[7.236,7.911,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0.685,0.383],[0,0],[0,-0.765],[0,0],[-0.685,0.382]],"o":[[0.685,-0.383],[0,0],[-0.685,-0.383],[0,0],[0,0.766],[0,0]],"v":[[5.051,0.861],[5.051,-0.861],[-4.195,-6.029],[-5.736,-5.167],[-5.736,5.167],[-4.195,6.029]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1.5,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[7.236,7.911],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0.985],"y":[2.857]},"o":{"x":[0.159],"y":[0]},"t":0,"s":[100]},{"i":{"x":[0.735],"y":[3.042]},"o":{"x":[0.143],"y":[3.552]},"t":30.03,"s":[100]},{"t":60.060546875,"s":[100]}],"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.709],"y":[1.164]},"o":{"x":[0.474],"y":[0.066]},"t":0,"s":[0]},{"i":{"x":[0.602],"y":[0.921]},"o":{"x":[0.314],"y":[0.13]},"t":30.03,"s":[78.782]},{"t":52,"s":[0]}],"ix":2},"o":{"a":1,"k":[{"i":{"x":[0.472],"y":[0.887]},"o":{"x":[0.51],"y":[0.095]},"t":0,"s":[-360]},{"t":60.060546875,"s":[720]}],"ix":3},"m":1,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":0,"op":1261.26126126126,"st":0,"bm":0}],"markers":[]}'), + yV = JSON.parse('{"v":"5.9.0","fr":30,"ip":0,"op":120,"w":16,"h":16,"nm":"update","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Circle 2","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":27,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":29.002,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":31.004,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":33.006,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":35.008,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":37.01,"s":[10]},{"t":39.01171875,"s":[100]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[8,8,0],"ix":2,"l":2},"a":{"a":0,"k":[7.7,7.7,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[3.1,0],[0,3.4],[-3.5,0],[-1,-2.1]],"o":[[-0.5,3],[-3.5,0],[0,-3.4],[2.5,0],[0,0]],"v":[[6.2,1],[0,6.2],[-6.2,0],[0,-6.2],[5.6,-2.7]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1.5,"ix":5},"lc":2,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[7.7,7.7],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0.5],"y":[1]},"o":{"x":[0.5],"y":[0]},"t":120,"s":[0]},{"t":146,"s":[100]}],"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.5],"y":[1]},"o":{"x":[0.5],"y":[0]},"t":30,"s":[0]},{"i":{"x":[0.5],"y":[1]},"o":{"x":[0.5],"y":[0]},"t":45,"s":[100]},{"i":{"x":[0.5],"y":[1]},"o":{"x":[0.5],"y":[0]},"t":120,"s":[100]},{"t":146,"s":[100]}],"ix":2},"o":{"a":1,"k":[{"i":{"x":[0.5],"y":[1]},"o":{"x":[0.5],"y":[0]},"t":120,"s":[0]},{"t":146,"s":[360]}],"ix":3},"m":1,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":27,"op":147,"st":27,"bm":0},{"ddd":0,"ind":2,"ty":4,"nm":"Circle","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":-84.008,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":-82.006,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":-80.004,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":-78.002,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":-76,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":-73.998,"s":[10]},{"t":-71.99609375,"s":[100]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[8,8,0],"ix":2,"l":2},"a":{"a":0,"k":[7.7,7.7,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[3.1,0],[0,3.4],[-3.5,0],[-1,-2.1]],"o":[[-0.5,3],[-3.5,0],[0,-3.4],[2.5,0],[0,0]],"v":[[6.2,1],[0,6.2],[-6.2,0],[0,-6.2],[5.6,-2.7]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1.5,"ix":5},"lc":2,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[7.7,7.7],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0.5],"y":[1]},"o":{"x":[0.5],"y":[0]},"t":0,"s":[0]},{"t":26,"s":[100]}],"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.5],"y":[1]},"o":{"x":[0.5],"y":[0]},"t":-90,"s":[0]},{"i":{"x":[0.5],"y":[1]},"o":{"x":[0.5],"y":[0]},"t":-75,"s":[100]},{"i":{"x":[0.5],"y":[1]},"o":{"x":[0.5],"y":[0]},"t":0,"s":[100]},{"t":26,"s":[100]}],"ix":2},"o":{"a":1,"k":[{"i":{"x":[0.5],"y":[1]},"o":{"x":[0.5],"y":[0]},"t":0,"s":[0]},{"t":26,"s":[360]}],"ix":3},"m":1,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":-93,"op":27,"st":-93,"bm":0},{"ddd":0,"ind":4,"ty":4,"nm":"Arrow 2","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":27,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":29.002,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":31.004,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":33.006,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":35.008,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":37.01,"s":[10]},{"t":39.01171875,"s":[100]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[12.7,4,0],"ix":2,"l":2},"a":{"a":0,"k":[3,3,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":1,"k":[{"i":{"x":0.5,"y":1},"o":{"x":0.5,"y":0},"t":43,"s":[{"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[-0.281,-0.312],[1.5,1.5],[-0.375,-0.406]],"c":false}]},{"i":{"x":0.5,"y":1},"o":{"x":0.167,"y":0},"t":46,"s":[{"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[1.5,-1.5],[1.5,1.5],[-1.5,1.5]],"c":false}]},{"i":{"x":0.5,"y":1},"o":{"x":0.167,"y":0},"t":130,"s":[{"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[1.5,-1.5],[1.5,1.5],[-1.5,1.5]],"c":false}]},{"t":133,"s":[{"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[-0.281,-0.312],[1.5,1.5],[-0.375,-0.406]],"c":false}]}],"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1.5,"ix":5},"lc":2,"lj":2,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[3,3],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":43,"op":133,"st":25,"bm":0},{"ddd":0,"ind":5,"ty":4,"nm":"Arrow","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":-84.008,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":-82.006,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":-80.004,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":-78.002,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":-76,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":-73.998,"s":[10]},{"t":-71.99609375,"s":[100]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[12.7,4,0],"ix":2,"l":2},"a":{"a":0,"k":[3,3,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":1,"k":[{"i":{"x":0.5,"y":1},"o":{"x":0.5,"y":0},"t":-77,"s":[{"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[-0.281,-0.312],[1.5,1.5],[-0.375,-0.406]],"c":false}]},{"i":{"x":0.5,"y":1},"o":{"x":0.167,"y":0},"t":-74,"s":[{"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[1.5,-1.5],[1.5,1.5],[-1.5,1.5]],"c":false}]},{"i":{"x":0.5,"y":1},"o":{"x":0.167,"y":0},"t":10,"s":[{"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[1.5,-1.5],[1.5,1.5],[-1.5,1.5]],"c":false}]},{"t":13,"s":[{"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[-0.281,-0.312],[1.5,1.5],[-0.375,-0.406]],"c":false}]}],"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1.5,"ix":5},"lc":2,"lj":2,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[3,3],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":-77,"op":13,"st":-95,"bm":0}],"markers":[]}'), + _V = e => { var t, n, r, i, a, o, s; - const l = Wj((e => e.installer)), - c = Wj((e => e.library)), + const l = jz((e => e.installer)), + c = jz((e => e.library)), { status: u } = (0, Ee.useMemo)((() => { - const t = uC(e.gameId, c.installedGames), + const t = DR(e.gameId, c.installedGames), n = null === t || void 0 === t ? void 0 : t.channels.find((t => t.id === e.channelId)), - r = aP(l.installations, e), - i = oP(l.uninstallations, e); + r = fR(l.installations, e), + i = mR(l.uninstallations, e); return { channel: n, - status: zM(n, r, i) + status: mV(n, r, i) } }), [e, l.installations, l.uninstallations, c.installedGames]); return { - displayProgressBar: (u === YI.InstallationStatus.PAUSED || u === YI.InstallationStatus.IN_PROGRESS || u === YI.InstallationStatus.WAITING) && l.progress, - ProgressBarComponent: (0, QI.jsx)(fd, { + displayProgressBar: (u === xP.InstallationStatus.PAUSED || u === xP.InstallationStatus.IN_PROGRESS || u === xP.InstallationStatus.WAITING) && l.progress, + ProgressBarComponent: (0, wR.jsx)(cd, { state: u, - progress: u === YI.InstallationStatus.IN_PROGRESS && null !== (t = l.progress) && void 0 !== t && t.showProgress ? null === (n = l.progress) || void 0 === n ? void 0 : n.percentage : void 0, - stats: u === YI.InstallationStatus.WAITING ? [] : [{ + progress: u === xP.InstallationStatus.IN_PROGRESS && null !== (t = l.progress) && void 0 !== t && t.showProgress ? null === (n = l.progress) || void 0 === n ? void 0 : n.percentage : void 0, + stats: u === xP.InstallationStatus.WAITING ? [] : [{ label: be("download_speed", { ns: "download" }), @@ -70041,29 +73360,29 @@ label: be("download_left", { ns: "download" }), - value: rP()(Math.max((null !== (i = null === (a = l.progress) || void 0 === a ? void 0 : a.total) && void 0 !== i ? i : 0) - (null !== (o = null === (s = l.progress) || void 0 === s ? void 0 : s.downloaded) && void 0 !== o ? o : 0), 0)) + value: pR()(Math.max((null !== (i = null === (a = l.progress) || void 0 === a ? void 0 : a.total) && void 0 !== i ? i : 0) - (null !== (o = null === (s = l.progress) || void 0 === s ? void 0 : s.downloaded) && void 0 !== o ? o : 0), 0)) }] }) } }, - $M = () => { + bV = () => { var e, t; const { t: n } = bt("gamePage"), { gameId: r - } = nD(), i = Wj((e => e.library)), a = Wj((e => e.application)), { + } = CL(), i = jz((e => e.library)), a = jz((e => e.application)), { reduceMotion: { backgroundVideoDisabled: o, unessentialAnimationsDisabled: s, wipeAnimationsDisabled: l } - } = ts(), { + } = Qo(), { selectedGame: c, selectedChannel: u, channels: d } = (0, Ee.useMemo)((() => { - const e = uC(null !== r && void 0 !== r ? r : i.channelSelected.gameId, i.availableGames), + const e = DR(null !== r && void 0 !== r ? r : i.channelSelected.gameId, i.availableGames), t = null === e || void 0 === e ? void 0 : e.channels.find((e => e.id === i.channelSelected.channelId)); return { selectedGame: e, @@ -70072,81 +73391,86 @@ } }), [r, i.actions, i.availableGames, i.channelSelected.channelId, i.channelSelected.gameId]), p = (e => { var t; - const n = Wj((e => e.application)), - r = Wj((e => e.installer)), - i = Wj((e => e.library)), - a = Wj((e => e.dialog)), - o = cC(), + const n = jz((e => e.application)), + r = jz((e => e.installer)), + i = jz((e => e.library)), + a = jz((e => e.dialog)), + o = jz((e => e.storage)), + s = jz((e => e.settings)), + l = RR(), { reduceMotion: { - unessentialAnimationsDisabled: s + unessentialAnimationsDisabled: c } - } = ts(), + } = Qo(), { - status: l, - installation: c + status: u, + installation: d, + channelSettings: p } = (0, Ee.useMemo)((() => { - const t = uC(e.gameId, i.installedGames), + const t = DR(e.gameId, i.installedGames), n = null === t || void 0 === t ? void 0 : t.channels.find((t => t.id === e.channelId)), - a = aP(r.installations, e), - o = oP(r.uninstallations, e); + a = s.gamesSettings.find((t => t.gameId === e.gameId && t.channelId === e.channelId)), + o = fR(r.installations, e), + l = mR(r.uninstallations, e); return { - installation: a, - status: zM(n, a, o) + installation: o, + status: mV(n, o, l), + channelSettings: a } - }), [e, i.installedGames, r.installations, r.uninstallations]), - u = n.actions.isOffline(), - d = { - [YI.InstallationType.INSTALL]: { + }), [e, i.installedGames, r.installations, r.uninstallations, s.gamesSettings]), + h = n.actions.isOffline(), + f = { + [xP.InstallationType.INSTALL]: { titleInProgress: "game_page_installing", titlePaused: "game_page_installing_paused" }, - [YI.InstallationType.UPDATE]: { + [xP.InstallationType.UPDATE]: { titleInProgress: "game_page_updating", titlePaused: "game_page_updating_paused" }, - [YI.InstallationType.VERIFY]: { + [xP.InstallationType.VERIFY]: { titleInProgress: "game_page_verifying", titlePaused: "game_page_verifying_paused" } - } [null !== (t = null === c || void 0 === c ? void 0 : c.type) && void 0 !== t ? t : YI.InstallationType.INSTALL]; - switch (l) { - case YI.InstallationStatus.PAUSED: + } [null !== (t = null === d || void 0 === d ? void 0 : d.type) && void 0 !== t ? t : xP.InstallationType.INSTALL]; + switch (u) { + case xP.InstallationStatus.PAUSED: return { buttonProps: { - children: xt.t(d.titlePaused, { + children: xt.t(f.titlePaused, { ns: "gamePage" }), iconAnimation: !1, - icon: HP, - disabled: u + icon: oM, + disabled: h }, action: () => n.actions.toggleDownloadPopoverOpened() }; - case YI.InstallationStatus.CANCELLING: - case YI.InstallationStatus.IN_PROGRESS: + case xP.InstallationStatus.CANCELLING: + case xP.InstallationStatus.IN_PROGRESS: return { buttonProps: { - children: xt.t(d.titleInProgress, { + children: xt.t(f.titleInProgress, { ns: "gamePage" }), loading: !0, disabled: !1, - loadingIcon: s ? HP : gT + loadingIcon: c ? oM : TM }, action: () => n.actions.toggleDownloadPopoverOpened() }; - case YI.GameChannelStatus.INSTALLED: + case xP.GameChannelStatus.INSTALLED: return { buttonProps: { children: xt.t("game_page_launch_game", { ns: "gamePage" }), - disabled: u || n.isGameRunning, - icon: s ? eT : UM + disabled: h || n.isGameRunning, + icon: c ? fM : vV }, action: () => { i.actions.launchGame(e) } }; - case YI.GameChannelStatus.RUNNING: + case xP.GameChannelStatus.RUNNING: return { buttonProps: { children: xt.t("game_page_game_is_running", { @@ -70155,10 +73479,10 @@ loading: !0, disabled: !1 }, action: () => { - o.window.setMinimizeWindow() + l.window.setMinimizeWindow() } }; - case YI.GameChannelStatus.UNINSTALLING: + case xP.GameChannelStatus.UNINSTALLING: return { buttonProps: { children: xt.t("game_page_uninstalling", { @@ -70168,20 +73492,20 @@ disabled: !0 }, action: () => {} }; - case YI.GameChannelStatus.UPDATE_AVAILABLE: + case xP.GameChannelStatus.UPDATE_AVAILABLE: return { buttonProps: { children: xt.t("game_page_update_game", { ns: "gamePage" }), - icon: s ? tT : BM, - disabled: u + icon: c ? mM : yV, + disabled: h }, action: async () => { - r.actions.addInstallationToQueue(e, YI.InstallationType.UPDATE) + r.actions.addInstallationToQueue(e, xP.InstallationType.UPDATE) } }; - case YI.InstallationStatus.ERROR: - case YI.InstallationStatus.WAITING: + case xP.InstallationStatus.ERROR: + case xP.InstallationStatus.WAITING: return { buttonProps: { children: xt.t("game_page_waiting_in_queue", { @@ -70191,18 +73515,18 @@ disabled: !1 }, action: () => n.actions.toggleDownloadPopoverOpened() }; - case YI.InstallationStatus.COMPLETED: - case YI.GameChannelStatus.AVAILABLE: + case xP.InstallationStatus.COMPLETED: + case xP.GameChannelStatus.AVAILABLE: default: return { buttonProps: { children: xt.t("game_page_install_game", { ns: "gamePage" }), - icon: s ? QP : VM, - disabled: u + icon: c ? cM : gV, + disabled: h }, action: async () => { - await a.actions.showGameStartInstallationDialog(e) + await a.actions.showGameStartInstallationDialog(e, (null === p || void 0 === p ? void 0 : p.libraryFolder) || o.defaultLibraryFolder, !1) } } } @@ -70210,36 +73534,36 @@ GameNotAvailableOfflineMessageComponent: h, UpdateAvailableMessageComponent: f } = (e => { - const t = Wj((e => e.library)), - n = Wj((e => e.application)), - r = Wj((e => e.installer)), + const t = jz((e => e.library)), + n = jz((e => e.application)), + r = jz((e => e.installer)), { channel: i, status: a } = (0, Ee.useMemo)((() => { - const n = uC(e.gameId, t.installedGames), + const n = DR(e.gameId, t.installedGames), i = null === n || void 0 === n ? void 0 : n.channels.find((t => t.id === e.channelId)), - a = aP(r.installations, e), - o = oP(r.uninstallations, e); + a = fR(r.installations, e), + o = mR(r.uninstallations, e); return { channel: i, - status: zM(i, a, o) + status: mV(i, a, o) } }), [e, t.installedGames, r.installations, r.uninstallations]), o = n.actions.isOffline(); return { - UpdateAvailableMessageComponent: (0, Ee.useMemo)((() => a === YI.GameChannelStatus.UPDATE_AVAILABLE ? (0, QI.jsx)(ft, { + UpdateAvailableMessageComponent: (0, Ee.useMemo)((() => a === xP.GameChannelStatus.UPDATE_AVAILABLE ? (0, wR.jsx)(ft, { i18nKey: "game_page_update_game_is_available", ns: "gamePage", - components: [(0, QI.jsx)(am, { - href: YI.configuration.patchnotesUrl, + components: [(0, wR.jsx)(Pv, { + href: xP.configuration.patchnotesUrl, external: !0 })], values: { version: null === i || void 0 === i ? void 0 : i.versionLabel } }) : void 0), [null === i || void 0 === i ? void 0 : i.versionLabel, a]), - GameNotAvailableOfflineMessageComponent: (0, Ee.useMemo)((() => o ? (0, QI.jsx)(ft, { + GameNotAvailableOfflineMessageComponent: (0, Ee.useMemo)((() => o ? (0, wR.jsx)(ft, { i18nKey: "game_page_game_is_not_available_offline", ns: "gamePage", values: { @@ -70254,11 +73578,11 @@ } = (e => { const { t: t - } = bt("gamePage"), [n, r] = (0, Ee.useState)(null), i = Wj((e => e.application)), a = Wj((e => e.installer)), o = Wj((e => e.library)), s = eD(), { + } = bt("gamePage"), [n, r] = (0, Ee.useState)(null), i = jz((e => e.application)), a = jz((e => e.installer)), o = jz((e => e.library)), s = OL(), { reduceMotion: { wipeAnimationsDisabled: l } - } = ts(), { + } = Qo(), { isGameChannelInstalled: c, isGameChannelInstalling: u, isGameChannelUninstalling: d, @@ -70266,13 +73590,13 @@ } = (0, Ee.useMemo)((() => { var t; const n = o.actions.getInstalledChannel(o.channelSelected), - r = (null === n || void 0 === n ? void 0 : n.status) === YI.GameChannelStatus.INSTALLED || (null === n || void 0 === n ? void 0 : n.status) === YI.GameChannelStatus.UPDATE_AVAILABLE || (null === n || void 0 === n ? void 0 : n.status) === YI.GameChannelStatus.RUNNING, - i = void 0 !== oP(a.uninstallations, e); + r = (null === n || void 0 === n ? void 0 : n.status) === xP.GameChannelStatus.INSTALLED || (null === n || void 0 === n ? void 0 : n.status) === xP.GameChannelStatus.UPDATE_AVAILABLE || (null === n || void 0 === n ? void 0 : n.status) === xP.GameChannelStatus.RUNNING, + i = void 0 !== mR(a.uninstallations, e); return { isGameChannelInstalled: r, - isGameChannelInstalling: void 0 !== aP(a.installations, e), + isGameChannelInstalling: void 0 !== fR(a.installations, e), isGameChannelUninstalling: i, - settingsUrl: MT(`/${XM.SETTINGS}/${XM.SETTINGS_GAMES}`, { + settingsUrl: cD(`/${CV.SETTINGS}/${CV.SETTINGS_GAMES}`, { gameId: null !== (t = e.gameId) && void 0 !== t ? t : o.channelSelected.gameId, channelId: o.channelSelected.channelId }) @@ -70301,23 +73625,23 @@ }; o.actions.setGameChannelSelected(a) }), [e, o.actions, o.availableGames, o.channelSelected.gameId, o.gameSelected]), - channelSelectorSuffix: (0, Ee.useMemo)((() => (0, QI.jsxs)(_m, { + channelSelectorSuffix: (0, Ee.useMemo)((() => (0, wR.jsxs)(qv, { anchor: n, placement: "bottom-end", - trigger: (0, QI.jsx)(xs, { + trigger: (0, wR.jsx)(gs, { "aria-label": t("game_page_settings"), - icon: nT, + icon: gM, size: "small", variant: "plain" }), - children: [(0, QI.jsx)(vm, { + children: [(0, wR.jsx)(Gv, { label: t("game_page_settings"), onClick: f - }), (0, QI.jsx)(vm, { + }), (0, wR.jsx)(Gv, { label: t("game_page_settings_verify"), - onClick: () => a.actions.addInstallationToQueue(e, YI.InstallationType.VERIFY), + onClick: () => a.actions.addInstallationToQueue(e, xP.InstallationType.VERIFY), disabled: u || d || h - }), c && (0, QI.jsx)(vm, { + }), c && (0, wR.jsx)(Gv, { color: "negative", label: t("game_page_settings_uninstall"), onClick: () => a.actions.startUninstallation(e), @@ -70329,30 +73653,30 @@ })(i.channelSelected), { displayProgressBar: y, ProgressBarComponent: _ - } = GM(i.channelSelected), b = null === (e = a.animations.gamePageEntering) || void 0 === e ? void 0 : e.isAnimating, x = null === (t = a.animations.gamePageEntering) || void 0 === t ? void 0 : t.animState, k = a.actions.isOffline(), w = "SC" === (null === c || void 0 === c ? void 0 : c.id) && (null === u || void 0 === u ? void 0 : u.id) === ND && a.nonOperationalStatus; - return (0, QI.jsxs)(QI.Fragment, { - children: [(0, QI.jsx)(kd, { + } = _V(i.channelSelected), b = null === (e = a.animations.gamePageEntering) || void 0 === e ? void 0 : e.isAnimating, x = null === (t = a.animations.gamePageEntering) || void 0 === t ? void 0 : t.animState, w = a.actions.isOffline(), k = "SC" === (null === c || void 0 === c ? void 0 : c.id) && (null === u || void 0 === u ? void 0 : u.id) === HM && a.nonOperationalStatus; + return (0, wR.jsxs)(wR.Fragment, { + children: [(0, wR.jsx)(Hh, { image: null === c || void 0 === c ? void 0 : c.bgImage, video: o || null === c || void 0 === c ? void 0 : c.bgVideo - }), (0, QI.jsx)(Sd, { + }), (0, wR.jsx)(Yh, { logo: null === c || void 0 === c ? void 0 : c.logoWide, animation: null === c || void 0 === c ? void 0 : c.logoAnimation, playLottie: !!l || b && "entering" === x - }), (0, QI.jsx)(Yf, { - children: (0, QI.jsx)(ft, { + }), (0, wR.jsx)(bv, { + children: (0, wR.jsx)(ft, { i18nKey: "game_page_title", values: { name: null === c || void 0 === c ? void 0 : c.name }, - components: [(0, QI.jsx)("br", {}), (0, QI.jsx)("b", {})], + components: [(0, wR.jsx)("br", {}), (0, wR.jsx)("b", {})], t: n }) - }), (0, QI.jsxs)(xd, { - children: [i.availableGames.length > 0 && (0, QI.jsx)(_d, { + }), (0, wR.jsxs)(Wh, { + children: [i.availableGames.length > 0 && (0, wR.jsx)($h, { label: n("game_page_channels"), labelType: "classic", className: "sol-c-game-page__channel-selector", - children: (0, QI.jsx)(Cm, { + children: (0, wR.jsx)(ey, { onValueChange: m, value: null === u || void 0 === u ? void 0 : u.id, suffix: g, @@ -70360,81 +73684,81 @@ ref: v }, children: d.map((({ - description: e, - label: t, - value: n - }) => (0, QI.jsx)(Im, { + description: e, + label: t, + value: n + }) => (0, wR.jsx)(Jv, { description: e, label: t, value: n }, n))) }) - }), (0, QI.jsx)(bd, { + }), (0, wR.jsx)(qh, { iconAnimation: !s && "hover", onClick: () => p.action(), ...p.buttonProps - }), y && _, h && (0, QI.jsx)(Od, { + }), y && _, h && (0, wR.jsx)(Zh, { children: h - }), !y && f && (0, QI.jsx)(Od, { + }), !y && f && (0, wR.jsx)(Zh, { children: f - }), !k && w && a.nonOperationalStatus && (0, QI.jsx)(_L, { + }), !w && k && a.nonOperationalStatus && (0, wR.jsx)(TF, { status: a.nonOperationalStatus })] - }), (0, QI.jsx)(jM, {})] + }), (0, wR.jsx)(pV, {})] }) }, - qM = () => { + xV = () => { const { t: e - } = bt("errors"), t = Wj((e => e.window)), n = Wj((e => e.application)), r = eD(), [i, a] = (0, Ee.useState)(!1), o = (0, Ee.useCallback)((() => t.actions.exitLauncher()), [t]), s = (0, Ee.useCallback)((() => { + } = bt("errors"), t = jz((e => e.window)), n = jz((e => e.application)), r = OL(), [i, a] = (0, Ee.useState)(!1), o = (0, Ee.useCallback)((() => t.actions.exitLauncher()), [t]), s = (0, Ee.useCallback)((() => { a(!0); const e = setTimeout((() => { - a(!1), r(`/${XM.SIGN_IN}`), clearTimeout(e) - }), 3 * aC.second) + a(!1), r(`/${CV.SIGN_IN}`), clearTimeout(e) + }), 3 * GT.second) }), [a, r]); return (0, Ee.useEffect)((() => { - n.connection.mode === YI.ConnectionMode.ONLINE && r(`/${XM.SIGN_IN}`) - }), [n.connection, r]), (0, QI.jsx)(Lm, { - children: (0, QI.jsx)(Dm, { + n.connection.mode === xP.ConnectionMode.ONLINE && r(`/${CV.SIGN_IN}`) + }), [n.connection, r]), (0, wR.jsx)(oy, { + children: (0, wR.jsx)(ay, { title: e("error_sign_in_offline_header_title"), - subtitle: (0, QI.jsx)(ft, { + subtitle: (0, wR.jsx)(ft, { i18nKey: "error_sign_in_offline_header_subtitle", ns: "errors" }), - footer: (0, QI.jsxs)(Ps, { + footer: (0, wR.jsxs)(Es, { align: "end", gap: "100", - children: [(0, QI.jsx)(xs, { + children: [(0, wR.jsx)(gs, { variant: "monochrome", size: "large", onClick: o, children: e("error_sign_in_offline_exit") - }), (0, QI.jsx)(xs, { + }), (0, wR.jsx)(gs, { loading: i, onClick: s, size: "large", children: e("error_sign_in_offline_retry") })] }), - children: (0, QI.jsxs)(Ps, { + children: (0, wR.jsxs)(Es, { gap: "100", vertical: !0, - children: [(0, QI.jsx)(pd, {}), (0, QI.jsx)(gs, { + children: [(0, wR.jsx)(sd, {}), (0, wR.jsx)(ds, { color: "foreground-weak", className: "sol-u-margin-b-050", - children: (0, QI.jsx)("h2", { + children: (0, wR.jsx)("h2", { children: e("error_sign_in_offline_content_title") }) - }), (0, QI.jsxs)(gs, { + }), (0, wR.jsxs)(ds, { color: "foreground-weak", - children: [(0, QI.jsx)("span", { + children: [(0, wR.jsx)("span", { children: e("error_sign_in_offline_content_description") - }), (0, QI.jsxs)("ul", { - children: [(0, QI.jsx)("li", { + }), (0, wR.jsxs)("ul", { + children: [(0, wR.jsx)("li", { children: e("error_sign_in_offline_content_description_first") - }), (0, QI.jsx)("li", { + }), (0, wR.jsx)("li", { children: e("error_sign_in_offline_content_description_second") - }), (0, QI.jsx)("li", { + }), (0, wR.jsx)("li", { children: e("error_sign_in_offline_content_description_third") })] })] @@ -70443,14 +73767,15 @@ }) }) }, - WM = () => { - const e = Wj((e => e.toasts)), + wV = () => { + const e = jz((e => e.toasts)), + t = jz((e => e.application)), { - wipeAnimType: t, - isHeaderVisible: n + wipeAnimType: n, + isHeaderVisible: r } = (() => { var e, t; - const n = Wj((e => e.application)), + const n = jz((e => e.application)), r = null === (e = n.animations.appLayoutWipe) || void 0 === e ? void 0 : e.isAnimating, i = null === (t = n.animations.appLayoutWipe) || void 0 === t ? void 0 : t.animType, a = Number(getComputedStyle(document.body).getPropertyValue("--sol-motion-anim-wipe-duration").match(/\d+/)), @@ -70484,15 +73809,19 @@ wipeAnimType: l, isHeaderVisible: o } - })(); - return sM(), (() => { + })(), + { + t: i + } = bt("settingsPage"), + a = (0, Ee.useRef)(!1); + return jj(), (() => { const { game: { onLaunchGameSuccessfull: e, onLaunchGameFailed: t, onLaunchGameStopped: n } - } = window.launcherAPI, r = Wj((e => e.library)); + } = window.launcherAPI, r = jz((e => e.library)); (0, Ee.useEffect)((() => e((e => { r.actions.setLaunchGameSuccessfull(e) }))), [r.actions, e]), (0, Ee.useEffect)((() => t((e => { @@ -70509,31 +73838,37 @@ onCancelationSuccess: r, onCancelationFailed: i, onUninstallSuccess: a, - onUninstallFailed: o + onUninstallFailed: o, + onFixPermissionsSuccess: s, + onFixPermissionsFailed: l } - } = window.launcherAPI, s = Wj((e => e.installer)); + } = window.launcherAPI, c = jz((e => e.installer)); (0, Ee.useEffect)((() => n((e => { - s.actions.setInstallationProgress(e) - }))), [s.actions, n]), (0, Ee.useEffect)((() => t((e => { - s.actions.setInstallationSuccess(e) - }))), [s.actions, t]), (0, Ee.useEffect)((() => e((e => { - s.actions.setInstallationFailed(e) - }))), [s.actions, e]), (0, Ee.useEffect)((() => r((() => { - s.actions.setCancelationSuccess() - }))), [s.actions, r]), (0, Ee.useEffect)((() => i((e => { - s.actions.setCancelationFailed(e) - }))), [s.actions, i]), (0, Ee.useEffect)((() => a((e => { - s.actions.setUninstallationSuccess(e) - }))), [s.actions, a]), (0, Ee.useEffect)((() => o((e => { - s.actions.setUninstallationFailed(e) - }))), [s.actions, o]) + c.actions.setInstallationProgress(e) + }))), [c.actions, n]), (0, Ee.useEffect)((() => t((e => { + c.actions.setInstallationSuccess(e) + }))), [c.actions, t]), (0, Ee.useEffect)((() => e((e => { + c.actions.setInstallationFailed(e) + }))), [c.actions, e]), (0, Ee.useEffect)((() => r((() => { + c.actions.setCancelationSuccess() + }))), [c.actions, r]), (0, Ee.useEffect)((() => i((e => { + c.actions.setCancelationFailed(e) + }))), [c.actions, i]), (0, Ee.useEffect)((() => a((e => { + c.actions.setUninstallationSuccess(e) + }))), [c.actions, a]), (0, Ee.useEffect)((() => o((e => { + c.actions.setUninstallationFailed(e) + }))), [c.actions, o]), (0, Ee.useEffect)((() => s((() => { + c.actions.setFixPermissionsSuccessToast() + }))), [c.actions, s]), (0, Ee.useEffect)((() => l((e => { + c.actions.setFixPermissionsFailedToast(e) + }))), [c.actions, l]) })(), (() => { const { connectivity: { onConnectionAvailable: e, onConnectionUnavailable: t } - } = window.launcherAPI, n = Wj((e => e.application)); + } = window.launcherAPI, n = jz((e => e.application)); (0, Ee.useEffect)((() => e((() => { n.actions.setConnectionAvailable() }))), [n.actions, e]), (0, Ee.useEffect)((() => t((() => { @@ -70550,37 +73885,44 @@ } }), [n.actions]) })(), (0, Ee.useEffect)((() => { + if (!a.current) { + var e; + const n = null !== (e = t.launcherVersion.includes("rc")) && void 0 !== e && e, + r = document.getElementById("app-version"); + n && r && (r.innerHTML += ` ${i("settings_about_launcher_preversion")}`), a.current = !0 + } + }), []), (0, Ee.useEffect)((() => { e.actions.init() - }), [e.actions]), (0, QI.jsx)(QI.Fragment, { - children: (0, QI.jsx)(hT, { - children: (0, QI.jsxs)(Ns, { + }), [e.actions]), (0, wR.jsx)(wR.Fragment, { + children: (0, wR.jsx)(CM, { + children: (0, wR.jsxs)(Ps, { className: "sol-u-animation-wipe", - "data-sol-animation-wipe": t, - header: n ? (0, QI.jsx)(VD, {}) : void 0, - children: [(0, QI.jsx)(gD, {}), (0, QI.jsx)(BD, {}), (0, QI.jsx)(zm, { + "data-sol-animation-wipe": n, + header: r ? (0, wR.jsx)(XM, {}) : void 0, + children: [(0, wR.jsx)(BL, {}), (0, wR.jsx)(eF, {}), (0, wR.jsx)(dy, { toasts: e.list })] }) }) }) }, - HM = () => { + kV = () => { const e = (0, Ee.useCallback)((() => { - cC().window.setLargeWindow() + RR().window.setLargeWindow() }), []); (0, Ee.useEffect)((() => { e() }), [e]) }, - KM = () => { - const e = Wj((e => e.application)), + SV = () => { + const e = jz((e => e.application)), { wipeAnimationsDisabled: t - } = ts().reduceMotion, + } = Qo().reduceMotion, n = Number(getComputedStyle(document.body).getPropertyValue("--sol-motion-anim-wipe-duration").match(/\d+/)); (() => { const e = (0, Ee.useCallback)((() => { - cC().window.setSmallWindow() + RR().window.setSmallWindow() }), []); (0, Ee.useEffect)((() => { e() @@ -70596,19 +73938,19 @@ }), [e.actions, n, t]); return (0, Ee.useEffect)((() => { r() - }), [r]), (0, QI.jsx)(Lm, { - children: (0, QI.jsx)(gD, {}) + }), [r]), (0, wR.jsx)(oy, { + children: (0, wR.jsx)(BL, {}) }) }, - YM = () => { + EV = () => { var e; - const t = Wj((e => e.library)), - n = Wj((e => e.application)), + const t = jz((e => e.library)), + n = jz((e => e.application)), r = null === (e = n.animations.appLayoutWipe) || void 0 === e ? void 0 : e.isAnimating, { wipeAnimationsDisabled: i - } = ts().reduceMotion; - HM(); + } = Qo().reduceMotion; + kV(); const a = Number(getComputedStyle(document.body).getPropertyValue("--sol-motion-anim-wipe-duration").match(/\d+/)), [o, s] = (0, Ee.useState)("is-init"), l = (0, Ee.useCallback)((async () => { @@ -70617,7 +73959,7 @@ (0, Ee.useEffect)((() => { t.installedGames.length > 0 && l() }), [l, t.installedGames.length]); - const c = (0, Ee.useMemo)((() => oC(YI.configuration.requestPollingInterval.library.base, YI.configuration.requestPollingInterval.library.window)), []); + const c = (0, Ee.useMemo)((() => $T(xP.configuration.requestPollingInterval.library.base, xP.configuration.requestPollingInterval.library.window)), []); ((e, t) => { const n = (0, Ee.useRef)(e); (0, Ee.useEffect)((() => { @@ -70641,26 +73983,26 @@ }), [r, o, n.actions, a, i]); return (0, Ee.useEffect)((() => { u() - }), [u]), (0, QI.jsx)(Qf, { - navigation: (0, QI.jsx)(yL, {}), + }), [u]), (0, wR.jsx)(xv, { + navigation: (0, wR.jsx)(PF, {}), "data-sol-animation-gamepage": o, - children: (0, QI.jsx)(gD, {}) + children: (0, wR.jsx)(BL, {}) }) }, - QM = () => { - const e = Wj((e => e.application)), - t = Wj((e => e.user)), - n = eD(), + OV = () => { + const e = jz((e => e.application)), + t = jz((e => e.user)), + n = OL(), { pathname: r - } = XR(), + } = SL(), { t: i } = bt("settingsPage"); - HM(); + kV(); const { wipeAnimationsDisabled: a - } = ts().reduceMotion, o = Number(getComputedStyle(document.body).getPropertyValue("--sol-motion-anim-wipe-duration").match(/\d+/)), s = [{ + } = Qo().reduceMotion, o = Number(getComputedStyle(document.body).getPropertyValue("--sol-motion-anim-wipe-duration").match(/\d+/)), s = [{ title: i("settings_nav_items_application"), path: "application" }, { @@ -70669,6 +74011,9 @@ }, { title: i("settings_nav_items_games"), path: "games" + }, { + title: i("settings_nav_items_storage"), + path: "storage" }, { title: i("settings_nav_items_download"), path: "download" @@ -70680,39 +74025,39 @@ path: "dev", staff: !0 }]; - return (0, QI.jsxs)(Rm, { - children: [(0, QI.jsx)(Pm, { + return (0, wR.jsxs)(iy, { + children: [(0, wR.jsx)(ny, { back: { label: i("settings_common_back"), href: ".." }, title: "Settings", backCallback: () => { - if (a) return void n(XM.HOME); + if (a) return void n(CV.HOME); e.actions.setAnimatingAppLayoutWipe("full-rtl", !0); const t = setTimeout((() => { - n(XM.HOME) + n(CV.HOME) }), o / 2); return () => clearTimeout(t) }, children: s.map((e => { const n = t.identity && t.identity.privileged, - i = FT({ - path: `/${XM.SETTINGS}/${e.path}`, + i = uD({ + path: `/${CV.SETTINGS}/${e.path}`, end: !1 }, r); - return (!e.staff || e.staff && n) && (0, QI.jsx)(Tm, { + return (!e.staff || e.staff && n) && (0, wR.jsx)(ry, { active: Boolean(i), href: e.path, children: e.title }, e.path) })) - }), (0, QI.jsx)(gD, {})] + }), (0, wR.jsx)(BL, {})] }) }; - const ZM = () => { - const e = XR(); - return Wj((e => e.user)).actions.isLoggedIn() ? (0, QI.jsx)(gD, {}) : (0, QI.jsx)(mD, { + const IV = () => { + const e = SL(); + return jz((e => e.user)).actions.isLoggedIn() ? (0, wR.jsx)(BL, {}) : (0, wR.jsx)(UL, { to: "sign-in", replace: !0, state: { @@ -70720,7 +74065,7 @@ } }) }, - XM = { + CV = { HOME: "/", SIGN_IN: "sign-in", SIGN_IN_MFA: "mfa", @@ -70733,23 +74078,24 @@ SETTINGS_ABOUT: "about", SETTINGS_DOWNLOAD: "download", SETTINGS_DEV: "dev", + SETTINGS_STORAGE: "storage", OFFLINE: "offline" }, - JM = function(e, t) { - return uR({ + AV = function(e, t) { + return jD({ basename: null == t ? void 0 : t.basename, - future: bL({}, null == t ? void 0 : t.future, { + future: RF({}, null == t ? void 0 : t.future, { v7_prependBasename: !0 }), history: (n = { window: null == t ? void 0 : t.window - }, void 0 === n && (n = {}), OT((function(e, t) { + }, void 0 === n && (n = {}), XR((function(e, t) { let { pathname: n = "/", search: r = "", hash: i = "" - } = ET(e.location.hash.substr(1)); - return n.startsWith("/") || n.startsWith(".") || (n = "/" + n), wT("", { + } = ZR(e.location.hash.substr(1)); + return n.startsWith("/") || n.startsWith(".") || (n = "/" + n), YR("", { pathname: n, search: r, hash: i @@ -70762,62 +74108,62 @@ n = t.indexOf("#"); r = -1 === n ? t : t.slice(0, n) } - return r + "#" + ("string" === typeof t ? t : ST(t)) + return r + "#" + ("string" === typeof t ? t : QR(t)) }), (function(e, t) { - xT("/" === e.pathname.charAt(0), "relative pathnames are not supported in hash history.push(" + JSON.stringify(t) + ")") + HR("/" === e.pathname.charAt(0), "relative pathnames are not supported in hash history.push(" + JSON.stringify(t) + ")") }), n)), - hydrationData: (null == t ? void 0 : t.hydrationData) || wL(), + hydrationData: (null == t ? void 0 : t.hydrationData) || NF(), routes: e, - mapRouteProperties: _D, + mapRouteProperties: qL, window: null == t ? void 0 : t.window }).initialize(); var n }([{ - element: (0, QI.jsx)(WM, {}), + element: (0, wR.jsx)(wV, {}), loader: async () => { const e = Number(getComputedStyle(document.body).getPropertyValue("--sol-motion-anim-wipe-duration").match(/\d+/)); try { - const t = Wj.getState().application; + const t = jz.getState().application; if (t.isAppInitialized) return void t.actions.checkConnection(); - await new Promise((t => setTimeout(t, YI.configuration.appLayoutLoaderWipeTrigger + e / 2))) + await new Promise((t => setTimeout(t, xP.configuration.appLayoutLoaderWipeTrigger + e / 2))) } finally { return null } }, children: [{ - path: XM.HOME, - element: (0, QI.jsx)(ZM, {}), + path: CV.HOME, + element: (0, wR.jsx)(IV, {}), children: [{ - element: (0, QI.jsx)(YM, {}), + element: (0, wR.jsx)(EV, {}), children: [{ index: !0, loader: async () => { - const e = `/game-page/${Wj.getState().library.gameSelected}`; - throw YT(e) + const e = `/game-page/${jz.getState().library.gameSelected}`; + throw xD(e) } }, { - path: XM.GAME_PAGE, - element: (0, QI.jsx)($M, {}), + path: CV.GAME_PAGE, + element: (0, wR.jsx)(bV, {}), loader: async ({ - params: e - }) => { + params: e + }) => { try { var t; - if (await async function(e = XM.SIGN_IN) { - const t = Wj.getState().user, - n = Wj.getState().application; - if (n.actions.isOffline() && !n.actions.isOfflineSessionValid() && await jP(), !t.actions.isLoggedIn()) throw YT(e); - return t.identity - }(), !e.gameId) return null; - const n = Wj.getState().library, - r = Wj.getState().settings; + if (await async function(e = CV.SIGN_IN) { + const t = jz.getState().user, + n = jz.getState().application; + if (n.actions.isOffline() && !n.actions.isOfflineSessionValid() && await Kj(), !t.actions.isLoggedIn()) throw xD(e); + return t.identity + }(), !e.gameId) return null; + const n = jz.getState().library, + r = jz.getState().settings; n.gameSelected !== e.gameId && n.actions.setGameSelected(e.gameId); - const i = null !== (t = FP.getQueryData(hP().queryKey)) && void 0 !== t ? t : await FP.fetchQuery(hP()); + const i = null !== (t = Qj.getQueryData(Mj().queryKey)) && void 0 !== t ? t : await Qj.fetchQuery(Mj()); if (!i) return null; n.actions.setAvailableGames(i), r.actions.initializeGameSettings(); const a = null === i || void 0 === i ? void 0 : i.find((({ - id: e - }) => n.gameSelected === e)); + id: e + }) => n.gameSelected === e)); if (!a) return null; const o = (await window.launcherAPI.store.getValueFromStore("library.defaults")).find((t => t.gameId === e.gameId)); if (o) n.actions.setGameChannelSelected(o); @@ -70838,93 +74184,96 @@ } catch (n) { return window.launcherAPI.log.error(`Not able to load game layout : ${n}`), null } finally { - Wj.getState().status.actions.checkStatus() + jz.getState().status.actions.checkStatus() } } }] }, { - element: (0, QI.jsx)(QM, {}), - path: XM.SETTINGS, + element: (0, wR.jsx)(OV, {}), + path: CV.SETTINGS, children: [{ index: !0, loader: async () => { - throw YT(XM.SETTINGS_APPLICATION) + throw xD(CV.SETTINGS_APPLICATION) } }, { - path: XM.SETTINGS_APPLICATION, - element: (0, QI.jsx)(mM, {}) + path: CV.SETTINGS_APPLICATION, + element: (0, wR.jsx)($z, {}) }, { - path: XM.SETTINGS_ACCESSIBILITY, - element: (0, QI.jsx)(pM, {}) + path: CV.SETTINGS_ACCESSIBILITY, + element: (0, wR.jsx)(Uz, {}) }, { - path: XM.SETTINGS_GAMES, - element: (0, QI.jsx)(TM, {}) + path: CV.SETTINGS_GAMES, + element: (0, wR.jsx)(oV, {}) }, { - path: XM.SETTINGS_DOWNLOAD, - element: (0, QI.jsx)(vM, {}) + path: CV.SETTINGS_STORAGE, + element: (0, wR.jsx)(sV, {}) }, { - path: XM.SETTINGS_ABOUT, - element: (0, QI.jsx)(ZI, {}) + path: CV.SETTINGS_DOWNLOAD, + element: (0, wR.jsx)(Wz, {}) }, { - path: XM.SETTINGS_DEV, - element: (0, QI.jsx)(gM, {}) + path: CV.SETTINGS_ABOUT, + element: (0, wR.jsx)(Mz, {}) + }, { + path: CV.SETTINGS_DEV, + element: (0, wR.jsx)(qz, {}) }] }] }, { - path: XM.SIGN_IN, - element: (0, QI.jsx)(KM, {}), + path: CV.SIGN_IN, + element: (0, wR.jsx)(SV, {}), loader: async () => { - const e = Wj.getState().user, - t = Wj.getState().library, - n = Wj.getState().application, + const e = jz.getState().user, + t = jz.getState().library, + n = jz.getState().application, r = `/game-page/${t.gameSelected}`, - i = `/${XM.OFFLINE}`; - return e.actions.isLoggedIn() ? YT(r) : n.actions.isOffline() ? YT(i) : null + i = `/${CV.OFFLINE}`; + return e.actions.isLoggedIn() ? xD(r) : n.actions.isOffline() ? xD(i) : null }, children: [{ index: !0, - element: (0, QI.jsx)(RM, {}) + element: (0, wR.jsx)(lV, {}) }, { - path: XM.SIGN_IN_MFA, - element: (0, QI.jsx)(DM, {}) + path: CV.SIGN_IN_MFA, + element: (0, wR.jsx)(cV, {}) }, { - path: XM.SIGN_IN_GAME_PACKAGE_MISSING, - element: (0, QI.jsx)(LM, {}) + path: CV.SIGN_IN_GAME_PACKAGE_MISSING, + element: (0, wR.jsx)(uV, {}) }] }, { - path: XM.OFFLINE, - element: (0, QI.jsx)(qM, {}) + path: CV.OFFLINE, + element: (0, wR.jsx)(xV, {}) }] }]), - eF = () => (0, QI.jsx)(TL, { - router: JM, - fallbackElement: (0, QI.jsx)(UD, {}) + PV = () => (0, wR.jsx)(GF, { + router: AV, + fallbackElement: (0, wR.jsx)(JM, {}) }); - var tF = n(95), - nF = function() { + var TV = n(95), + RV = function() { return null }; - const rF = e => { + const DV = e => { e && e instanceof Function && n.e(496).then(n.bind(n, 1496)).then((({ - getCLS: t, - getFID: n, - getFCP: r, - getLCP: i, - getTTFB: a - }) => { + getCLS: t, + getFID: n, + getFCP: r, + getLCP: i, + getTTFB: a + }) => { t(e), n(e), r(e), i(e), a(e) })) }; - var iF; - ! function(e = {}, t = UI) { - window?.__SENTRY__RENDERER_INIT__ ? Jg.warn("The browser SDK has already been initialized.\nIf init has been called in the preload and contextIsolation is disabled, is not required to call init in the renderer") : (window.__SENTRY__RENDERER_INIT__ = !0, void 0 === e.autoSessionTracking && (e.autoSessionTracking = !1), e.sendClientReports = !1, void 0 === e.defaultIntegrations && (e.defaultIntegrations = [...VI(), TO()]), void 0 === e.stackParser && (e.stackParser = KI), void 0 === e.dsn && (e.dsn = "https://12345@dummy.dsn/12345"), void 0 === e.transport && (e.transport = jO), e.anrDetection && function(e) { + var LV; + ! function(e = {}, t = hP) { + window?.__SENTRY__RENDERER_INIT__ ? E_.warn("The browser SDK has already been initialized.\nIf init has been called in the preload and contextIsolation is disabled, is not required to call init in the renderer") : (window.__SENTRY__RENDERER_INIT__ = !0, void 0 === e.autoSessionTracking && (e.autoSessionTracking = !1), e.sendClientReports = !1, void 0 === e.defaultIntegrations && (e.defaultIntegrations = [...pP(), rA()]), void 0 === e.stackParser && (e.stackParser = bP), void 0 === e.dsn && (e.dsn = "https://12345@dummy.dsn/12345"), void 0 === e.transport && (e.transport = lA), e.anrDetection && function(e) { const t = { pollInterval: 1e3, anrThreshold: 5e3, captureStackTrace: !1, ...e }, - n = PO(); + n = nA(); document.addEventListener("visibilitychange", (() => { n.sendStatus({ status: document.visibilityState, @@ -70942,7 +74291,7 @@ }(!0 === e.anrDetection ? {} : e.anrDetection), delete e.initialScope, t(e)) }({ integrations: [((e = {}) => { - ix || (ix = !0, Jb(ax), nx(ax)); + Pk || (Pk = !0, Ek(Tk), Ck(Tk)); const { enableInp: t, enableLongTask: n, @@ -70963,19 +74312,19 @@ instrumentPageLoad: m, instrumentNavigation: g } = { - ...Yx, + ...xS, ...e - }, v = Db({ + }, v = ak({ recordClsStandaloneSpans: a || !1 }); - t && zb(), r && Bg.PerformanceObserver && PerformanceObserver.supportedEntryTypes && PerformanceObserver.supportedEntryTypes.includes("long-animation-frame") ? new PerformanceObserver((e => { - if (wy()) + t && dk(), r && f_.PerformanceObserver && PerformanceObserver.supportedEntryTypes && PerformanceObserver.supportedEntryTypes.includes("long-animation-frame") ? new PerformanceObserver((e => { + if (Yb()) for (const t of e.getEntries()) { if (!t.scripts[0]) continue; - const e = Ib(Rv + t.startTime), - n = Ib(t.duration), + const e = Jw(ib + t.startTime), + n = Jw(t.duration), r = { - [iy]: "auto.ui.browser.metrics" + [Pb]: "auto.ui.browser.metrics" }, i = t.scripts[0], { @@ -70986,7 +74335,7 @@ sourceCharPosition: c } = i; r["browser.script.invoker"] = a, r["browser.script.invoker_type"] = o, s && (r["code.filepath"] = s), l && (r["code.function"] = l), -1 !== c && (r["browser.script.source_char_position"] = c); - const u = f_({ + const u = Vx({ name: "Main UI thread blocked", op: "ui.long-animation-frame", startTime: e, @@ -70997,42 +74346,42 @@ })).observe({ type: "long-animation-frame", buffered: !0 - }) : n && hb("longtask", (({ - entries: e - }) => { - if (wy()) + }) : n && zw("longtask", (({ + entries: e + }) => { + if (Yb()) for (const t of e) { - const e = Ib(Rv + t.startTime), - n = Ib(t.duration), - r = f_({ + const e = Jw(ib + t.startTime), + n = Jw(t.duration), + r = Vx({ name: "Main UI thread blocked", op: "ui.long-task", startTime: e, attributes: { - [iy]: "auto.ui.browser.metrics" + [Pb]: "auto.ui.browser.metrics" } }); r && r.end(e + n) } - })), i && hb("event", (({ - entries: e - }) => { - if (wy()) + })), i && zw("event", (({ + entries: e + }) => { + if (Yb()) for (const t of e) if ("click" === t.name) { - const e = Ib(Rv + t.startTime), - n = Ib(t.duration), + const e = Jw(ib + t.startTime), + n = Jw(t.duration), r = { - name: qg(t.target), + name: v_(t.target), op: `ui.interaction.${t.name}`, startTime: e, attributes: { - [iy]: "auto.ui.browser.metrics" + [Pb]: "auto.ui.browser.metrics" } }, - i = Kg(t.target); + i = b_(t.target); i && (r.attributes["ui.component_name"] = i); - const a = f_(r); + const a = Vx(r); a && a.end(e + n) } })); @@ -71045,142 +74394,142 @@ const n = "pageload" === t.op, r = o ? o(t) : t, i = r.attributes || {}; - t.name !== r.name && (i[ty] = "custom", r.attributes = i), y.name = r.name, y.source = i[ty]; - const u = Zb(r, { + t.name !== r.name && (i[Ib] = "custom", r.attributes = i), y.name = r.name, y.source = i[Ib]; + const u = kk(r, { idleTimeout: s, finalTimeout: l, childSpanTimeout: c, disableAutoFinish: n, beforeSpanEnd: e => { - v(), Lb(e, { + v(), ok(e, { recordClsOnPageloadSpan: !a }) } }); function d() { - ["interactive", "complete"].includes(Ex.document.readyState) && e.emit("idleSpanEnableAutoFinish", u) + ["interactive", "complete"].includes(Zk.document.readyState) && e.emit("idleSpanEnableAutoFinish", u) } - return n && Ex.document && (Ex.document.addEventListener("readystatechange", (() => { + return n && Zk.document && (Zk.document.addEventListener("readystatechange", (() => { d() })), d()), u } return { name: "BrowserTracing", afterAllSetup(e) { - let n, r = Ex.location && Ex.location.href; + let n, r = Zk.location && Zk.location.href; e.on("startNavigationSpan", (t => { - Xv() === e && (n && !my(n).timestamp && (ox && Jg.log(`[Tracing] Finishing current root span with op: ${my(n).op}`), n.end()), n = _(e, { + Sb() === e && (n && !Ub(n).timestamp && (Rk && E_.log(`[Tracing] Finishing current root span with op: ${Ub(n).op}`), n.end()), n = _(e, { op: "navigation", ...t })) })), e.on("startPageLoadSpan", ((t, r = {}) => { - if (Xv() !== e) return; - n && !my(n).timestamp && (ox && Jg.log(`[Tracing] Finishing current root span with op: ${my(n).op}`), n.end()); - const i = Iv(r.sentryTrace || Qx("sentry-trace"), r.baggage || Qx("baggage")); - Yv().setPropagationContext(i), n = _(e, { + if (Sb() !== e) return; + n && !Ub(n).timestamp && (Rk && E_.log(`[Tracing] Finishing current root span with op: ${Ub(n).op}`), n.end()); + const i = J_(r.sentryTrace || wS("sentry-trace"), r.baggage || wS("baggage")); + xb().setPropagationContext(i), n = _(e, { op: "pageload", ...t }) })), e.on("spanEnd", (e => { - const t = my(e).op; - if (e !== ky(e) || "navigation" !== t && "pageload" !== t) return; - const n = Yv(), + const t = Ub(e).op; + if (e !== Kb(e) || "navigation" !== t && "pageload" !== t) return; + const n = xb(), r = n.getPropagationContext(); n.setPropagationContext({ ...r, - sampled: void 0 !== r.sampled ? r.sampled : gy(e), - dsc: r.dsc || Ay(e) + sampled: void 0 !== r.sampled ? r.sampled : Bb(e), + dsc: r.dsc || tx(e) }) - })), Ex.location && (m && function(e, t, n) { - e.emit("startPageLoadSpan", t, n), Yv().setTransactionName(t.name); - const r = wy(), - i = r && my(r).op + })), Zk.location && (m && function(e, t, n) { + e.emit("startPageLoadSpan", t, n), xb().setTransactionName(t.name); + const r = Yb(), + i = r && Ub(r).op }(e, { - name: Ex.location.pathname, - startTime: Rv ? Rv / 1e3 : void 0, + name: Zk.location.pathname, + startTime: ib ? ib / 1e3 : void 0, attributes: { - [ty]: "url", - [iy]: "auto.pageload.browser" + [Ib]: "url", + [Pb]: "auto.pageload.browser" } - }), g && Kb((({ - to: t, - from: n - }) => { + }), g && bk((({ + to: t, + from: n + }) => { void 0 === n && r && -1 !== r.indexOf(t) ? r = void 0 : n !== t && (r = void 0, function(e, t) { - Qv().setPropagationContext(Nv()), Yv().setPropagationContext(Nv()), e.emit("startNavigationSpan", t), Yv().setTransactionName(t.name); - const n = wy(), - r = n && my(n).op + wb().setPropagationContext(sb()), xb().setPropagationContext(sb()), e.emit("startNavigationSpan", t), xb().setTransactionName(t.name); + const n = Yb(), + r = n && Ub(n).op }(e, { - name: Ex.location.pathname, + name: Zk.location.pathname, attributes: { - [ty]: "url", - [iy]: "auto.navigation.browser" + [Ib]: "url", + [Pb]: "auto.navigation.browser" } })) - }))), u && (Ex && Ex.document ? Ex.document.addEventListener("visibilitychange", (() => { - const e = wy(); + }))), u && (Zk && Zk.document ? Zk.document.addEventListener("visibilitychange", (() => { + const e = Yb(); if (!e) return; - const t = ky(e); - if (Ex.document.hidden && t) { + const t = Kb(e); + if (Zk.document.hidden && t) { const e = "cancelled", { op: n, status: r - } = my(t); - ox && Jg.log(`[Tracing] Transaction: ${e} -> since tab moved to the background, op: ${n}`), r || t.setStatus({ + } = Ub(t); + Rk && E_.log(`[Tracing] Transaction: ${e} -> since tab moved to the background, op: ${n}`), r || t.setStatus({ code: 2, message: e }), t.setAttribute("sentry.cancellation_reason", "document.hidden"), t.end() } - })) : ox && Jg.warn("[Tracing] Could not set up background tab detection due to lack of global document")), i && function(e, t, n, r) { + })) : Rk && E_.warn("[Tracing] Could not set up background tab detection due to lack of global document")), i && function(e, t, n, r) { let i; const a = () => { const a = "ui.action.click", - o = wy(), - s = o && ky(o); + o = Yb(), + s = o && Kb(o); if (s) { - const e = my(s).op; - if (["navigation", "pageload"].includes(e)) return void(ox && Jg.warn(`[Tracing] Did not create ${a} span because a pageload or navigation span is in progress.`)) + const e = Ub(s).op; + if (["navigation", "pageload"].includes(e)) return void(Rk && E_.warn(`[Tracing] Did not create ${a} span because a pageload or navigation span is in progress.`)) } - i && (i.setAttribute(ay, "interactionInterrupted"), i.end(), i = void 0), r.name ? i = Zb({ + i && (i.setAttribute(Tb, "interactionInterrupted"), i.end(), i = void 0), r.name ? i = kk({ name: r.name, op: a, attributes: { - [ty]: r.source || "url" + [Ib]: r.source || "url" } }, { idleTimeout: e, finalTimeout: t, childSpanTimeout: n - }) : ox && Jg.warn(`[Tracing] Did not create ${a} transaction because _latestRouteName is missing.`) + }) : Rk && E_.warn(`[Tracing] Did not create ${a} transaction because _latestRouteName is missing.`) }; - Ex.document && addEventListener("click", a, { + Zk.document && addEventListener("click", a, { once: !1, capture: !0 }) }(s, l, c, y), t && function(e) { const t = ({ - entries: e - }) => { - const t = wy(), - n = t && ky(t); + entries: e + }) => { + const t = Yb(), + n = t && Kb(t); e.forEach((e => { if (! function(e) { - return "duration" in e - }(e) || !n) return; + return "duration" in e + }(e) || !n) return; const t = e.interactionId; - if (null != t && !Fb.has(t)) { - if (Mb.length > 10) { - const e = Mb.shift(); - Fb.delete(e) + if (null != t && !uk.has(t)) { + if (ck.length > 10) { + const e = ck.shift(); + uk.delete(e) } - Mb.push(t), Fb.set(t, n) + ck.push(t), uk.set(t, n) } })) }; - hb("event", t), hb("first-input", t) - }(), qx(e, { + zw("event", t), zw("first-input", t) + }(), vS(e, { traceFetch: d, traceXHR: p, tracePropagationTargets: e.getOptions().tracePropagationTargets, @@ -71189,7 +74538,7 @@ }) } } - })(), new _O(iF)] + })(), new qC(LV)] }, (function(e) { const t = { ...e @@ -71199,54 +74548,55 @@ version: Ee.version }, Ln().setContext(n, r), Wa(t) })); - const aF = Ee.lazy((() => n.e(803).then(n.bind(n, 803)).then((e => ({ + const NV = Ee.lazy((() => n.e(803).then(n.bind(n, 803)).then((e => ({ default: e.ReactQueryDevtools }))))), - oF = () => { + jV = () => { const [e, t] = Ee.useState(!1), { reduceMotion: n - } = Wj((e => e.settings.appSettings.accessibility)); + } = jz((e => e.settings.appSettings.accessibility)); return (0, Ee.useEffect)((() => { window.toggleDevtools = () => t((e => !e)) }), []), (async () => { - const e = Wj.getState().application, - t = Wj.getState().library, - n = Wj.getState().soundSystem, - r = Wj.getState().authentication, - i = Wj.getState().settings, - a = Wj.getState().installer, - o = Wj.getState().status, - s = Wj.getState().user; - e.isAppInitialized || (await e.actions.initializeApplication(), await n.actions.initializeSoundContext(), await r.actions.initializeAuthentication(), await s.actions.initializeUser(), await t.actions.initializeLibrary(), await i.actions.initializeApplicationSettings(), await i.actions.initializeGameSettings(), await a.actions.initializeInstaller(), await o.actions.initializeStatus()) - })(), (0, QI.jsx)(Ee.StrictMode, { - children: (0, QI.jsx)(Za, { - fallback: (0, QI.jsx)("p", { + const e = jz.getState().application, + t = jz.getState().library, + n = jz.getState().soundSystem, + r = jz.getState().authentication, + i = jz.getState().settings, + a = jz.getState().installer, + o = jz.getState().status, + s = jz.getState().user, + l = jz.getState().storage; + e.isAppInitialized || (await e.actions.initializeApplication(), await n.actions.initializeSoundContext(), await r.actions.initializeAuthentication(), await s.actions.initializeUser(), await t.actions.initializeLibrary(), await i.actions.initializeApplicationSettings(), await i.actions.initializeGameSettings(), await a.actions.initializeInstaller(), await o.actions.initializeStatus(), await l.actions.initializeStorageSettings()) + })(), (0, wR.jsx)(Ee.StrictMode, { + children: (0, wR.jsx)(Za, { + fallback: (0, wR.jsx)("p", { children: "An error has occurred" }), - children: (0, QI.jsx)(Zj, { - children: (0, QI.jsx)(Jj.aH, { - client: FP, - children: (0, QI.jsxs)(es, { - reduceMotion: null !== n && void 0 !== n ? n : hj.reduceMotion, - children: [(0, QI.jsx)(Qo, { - value: FL, - children: (0, QI.jsx)(fL.Provider, { - children: (0, QI.jsx)(eF, {}) + children: (0, wR.jsx)(BR, { + children: (0, wR.jsx)(Aj.aH, { + client: Qj, + children: (0, wR.jsxs)(Yo, { + reduceMotion: null !== n && void 0 !== n ? n : tz.reduceMotion, + children: [(0, wR.jsx)(qo, { + value: QF, + children: (0, wR.jsx)(OF.Provider, { + children: (0, wR.jsx)(PV, {}) }) - }), (0, QI.jsx)(nF, { + }), (0, wR.jsx)(RV, { initialIsOpen: !0 - }), e && (0, QI.jsx)(Ee.Suspense, { + }), e && (0, wR.jsx)(Ee.Suspense, { fallback: null, - children: (0, QI.jsx)(aF, {}) + children: (0, wR.jsx)(NV, {}) })] }) }) }) - }, Ij()) + }, vz()) }) }; - tF.createRoot(document.getElementById("root")).render((0, QI.jsx)(oF, {})), rF() + TV.createRoot(document.getElementById("root")).render((0, wR.jsx)(jV, {})), DV() })() })(); -//# sourceMappingURL=main.aa787733.js.map -//# debugId=b30361bd-9977-5eb2-abab-40f9b5a39f7f \ No newline at end of file +//# sourceMappingURL=main.f0354cce.js.map +//# debugId=032c1ac3-6566-59d2-b43b-c485cfb20905 \ No newline at end of file