@flemo/core 2.2.0 → 2.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dom/staging.d.ts +0 -8
- package/dist/index.mjs +1406 -1105
- package/dist/morph/__tests__/morphFace.test.d.ts +1 -0
- package/dist/morph/__tests__/morphLine.test.d.ts +1 -0
- package/dist/morph/morphFace.d.ts +61 -0
- package/dist/morph/morphGeometry.d.ts +48 -0
- package/dist/morph/morphKeyframes.d.ts +121 -4
- package/dist/morph/morphLine.d.ts +73 -0
- package/dist/morph/morphPose.d.ts +30 -0
- package/dist/morph/morphSheet.d.ts +9 -0
- package/dist/morph/morphSide.d.ts +6 -0
- package/dist/transition/__tests__/gestureScrub.test.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -523,7 +523,7 @@ function N(e) {
|
|
|
523
523
|
}
|
|
524
524
|
//#endregion
|
|
525
525
|
//#region src/history/memoryHistoryDriver.ts
|
|
526
|
-
function
|
|
526
|
+
function P(e) {
|
|
527
527
|
let t = [{
|
|
528
528
|
state: e?.state ?? null,
|
|
529
529
|
url: e?.url ?? "/"
|
|
@@ -566,12 +566,12 @@ function te(e) {
|
|
|
566
566
|
}
|
|
567
567
|
//#endregion
|
|
568
568
|
//#region src/navigate/store.ts
|
|
569
|
-
var
|
|
569
|
+
var F = [
|
|
570
570
|
"PUSHING",
|
|
571
571
|
"POPPING",
|
|
572
572
|
"REPLACING"
|
|
573
573
|
];
|
|
574
|
-
function
|
|
574
|
+
function te() {
|
|
575
575
|
return e((e) => ({
|
|
576
576
|
status: "IDLE",
|
|
577
577
|
transitionTaskId: null,
|
|
@@ -581,11 +581,11 @@ function re() {
|
|
|
581
581
|
}
|
|
582
582
|
//#endregion
|
|
583
583
|
//#region src/navigate/createNavigationController.ts
|
|
584
|
-
var
|
|
584
|
+
var I = (e, t, n) => {
|
|
585
585
|
let { regexp: r } = i(e);
|
|
586
586
|
for (let e = t - 1; e >= 0; e--) if (r.test(n[e].pathname)) return t - e;
|
|
587
587
|
return -1;
|
|
588
|
-
},
|
|
588
|
+
}, ne = (e, t) => typeof e == "number" && Number.isFinite(e) ? Math.max(0, Math.trunc(e)) : t, re = async (e, t, n, r) => {
|
|
589
589
|
let i, a = new Promise((t) => {
|
|
590
590
|
i = e.subscribe(() => t(!0));
|
|
591
591
|
}), o = new Promise((e) => setTimeout(() => e(!1), 200));
|
|
@@ -593,7 +593,7 @@ var P = (e, t, n) => {
|
|
|
593
593
|
let s = await Promise.race([a, o]);
|
|
594
594
|
i(), s && r();
|
|
595
595
|
};
|
|
596
|
-
function
|
|
596
|
+
function ie(e) {
|
|
597
597
|
let { stores: t, buildPathname: n, driver: r = b(), markSelfInduced: i = C } = e, a = v(r), s = () => t.history.getState().bumpTruncationEpoch(), l = () => {
|
|
598
598
|
let e = r.readState();
|
|
599
599
|
if (!e?.id) return null;
|
|
@@ -618,10 +618,10 @@ function ae(e) {
|
|
|
618
618
|
}
|
|
619
619
|
let o = l(), { index: c, histories: f, addHistory: p, popHistories: g } = t.history.getState(), _ = (() => {
|
|
620
620
|
if (d?.until != null) {
|
|
621
|
-
let e =
|
|
621
|
+
let e = I(d.until, c, f);
|
|
622
622
|
return e < 0 ? 0 : e;
|
|
623
623
|
}
|
|
624
|
-
return Math.min(
|
|
624
|
+
return Math.min(ne(d?.skip, 0), Math.max(0, c));
|
|
625
625
|
})(), { setStatus: v, setTransitionTaskId: y } = t.navigate.getState();
|
|
626
626
|
v("PUSHING"), y(h);
|
|
627
627
|
let { pathname: b, toPathname: x } = n(e, u ?? {}), S = {
|
|
@@ -646,7 +646,7 @@ function ae(e) {
|
|
|
646
646
|
return p({
|
|
647
647
|
...S,
|
|
648
648
|
frameIndex: w + 1
|
|
649
|
-
}), await
|
|
649
|
+
}), await re(r, i, _, () => {
|
|
650
650
|
s(), r.pushState({
|
|
651
651
|
id: h,
|
|
652
652
|
index: w + 1,
|
|
@@ -676,10 +676,10 @@ function ae(e) {
|
|
|
676
676
|
}
|
|
677
677
|
let o = l(), { index: c, histories: f, addHistory: p, replaceHistory: g, popHistories: _ } = t.history.getState(), v = (() => {
|
|
678
678
|
if (d?.until != null) {
|
|
679
|
-
let e =
|
|
679
|
+
let e = I(d.until, c, f);
|
|
680
680
|
return e < 0 ? 0 : e + 1;
|
|
681
681
|
}
|
|
682
|
-
return Math.min(
|
|
682
|
+
return Math.min(ne(d?.skip, 0) + 1, c + 1);
|
|
683
683
|
})();
|
|
684
684
|
if (v <= 0) {
|
|
685
685
|
a.abort();
|
|
@@ -709,7 +709,7 @@ function ae(e) {
|
|
|
709
709
|
return _(v - 1), p({
|
|
710
710
|
...C,
|
|
711
711
|
frameIndex: T
|
|
712
|
-
}), v <= c ? await
|
|
712
|
+
}), v <= c ? await re(r, i, v, () => {
|
|
713
713
|
s(), r.pushState({
|
|
714
714
|
id: h,
|
|
715
715
|
index: T,
|
|
@@ -717,7 +717,7 @@ function ae(e) {
|
|
|
717
717
|
params: u,
|
|
718
718
|
transitionName: m
|
|
719
719
|
}, x);
|
|
720
|
-
}) : await
|
|
720
|
+
}) : await re(r, i, c, () => {
|
|
721
721
|
s(), r.replaceState({
|
|
722
722
|
id: h,
|
|
723
723
|
index: T,
|
|
@@ -774,10 +774,10 @@ function ae(e) {
|
|
|
774
774
|
pop: async (e) => {
|
|
775
775
|
await f((t, n) => {
|
|
776
776
|
if (e?.until != null) {
|
|
777
|
-
let r =
|
|
777
|
+
let r = I(e.until, t, n);
|
|
778
778
|
return r < 0 ? 0 : r;
|
|
779
779
|
}
|
|
780
|
-
let r =
|
|
780
|
+
let r = ne(e?.skip, 1);
|
|
781
781
|
return r <= 0 ? 0 : Math.min(r, t);
|
|
782
782
|
}, e?.transitionName);
|
|
783
783
|
}
|
|
@@ -785,14 +785,14 @@ function ae(e) {
|
|
|
785
785
|
}
|
|
786
786
|
//#endregion
|
|
787
787
|
//#region src/navigate/createStepController.ts
|
|
788
|
-
var
|
|
788
|
+
var L = (e) => {
|
|
789
789
|
let t = e;
|
|
790
790
|
return t?.step ? t.params ?? {} : null;
|
|
791
|
-
},
|
|
791
|
+
}, ae = (e, t) => {
|
|
792
792
|
let n = new URLSearchParams(Object.fromEntries(Object.entries(t).map(([e, t]) => [e, String(t)]))).toString();
|
|
793
793
|
return n ? `${e}?${n}` : e;
|
|
794
794
|
};
|
|
795
|
-
function
|
|
795
|
+
function oe(e) {
|
|
796
796
|
let { stores: t, driver: n, markSelfInduced: r, buildStepPathname: i, applyParams: a } = e, s = v(n);
|
|
797
797
|
return {
|
|
798
798
|
pushStep: async (e) => {
|
|
@@ -851,7 +851,7 @@ function se(e) {
|
|
|
851
851
|
}
|
|
852
852
|
};
|
|
853
853
|
}
|
|
854
|
-
function
|
|
854
|
+
function se(e, t) {
|
|
855
855
|
return e.subscribe((n) => {
|
|
856
856
|
let r = n.state;
|
|
857
857
|
r?.step && c.addTask(async () => {
|
|
@@ -968,7 +968,7 @@ function ue(e) {
|
|
|
968
968
|
index: 0,
|
|
969
969
|
histories: [d]
|
|
970
970
|
}), e.hostedScope;
|
|
971
|
-
let m = a ?
|
|
971
|
+
let m = a ? P({
|
|
972
972
|
state: {
|
|
973
973
|
id: d.id,
|
|
974
974
|
index: 0,
|
|
@@ -979,7 +979,7 @@ function ue(e) {
|
|
|
979
979
|
url: d.pathname
|
|
980
980
|
}) : o, h = x(), g = {
|
|
981
981
|
history: l([d], 0),
|
|
982
|
-
navigate:
|
|
982
|
+
navigate: te(),
|
|
983
983
|
transition: R(i),
|
|
984
984
|
screen: B(),
|
|
985
985
|
driver: m,
|
|
@@ -1635,21 +1635,21 @@ var Je = [
|
|
|
1635
1635
|
"POPPING-false": "initial",
|
|
1636
1636
|
"COMPLETED-true": "self",
|
|
1637
1637
|
"COMPLETED-false": "self"
|
|
1638
|
-
}, rt = "data-flemo-", it = "data-flemo-screen", at = "data-flemo-status", ot = "data-flemo-active", st = "data-flemo-transition", ct = "data-flemo-router", lt = "data-flemo-skip-animation", ut = "data-flemo-bar", dt = "data-flemo-bar-active", ft = "data-flemo-bar-status", pt = "data-flemo-bar-riding", mt = "data-flemo-bar-id", ht = "data-flemo-bar-id-type", gt = "data-flemo-bar-transition", _t = "data-flemo-bar-spacer", vt = "data-flemo-decorator", yt = "data-flemo-decorator-name", bt = "data-flemo-layer-host", xt = "data-flemo-layer-slot", St = "data-flemo-layer-owner", U = "data-flemo-part-name", Ct = "data-flemo-part-layer", wt = "data-flemo-part-home", Tt = "data-flemo-part-stand-in",
|
|
1638
|
+
}, rt = "data-flemo-", it = "data-flemo-screen", at = "data-flemo-status", ot = "data-flemo-active", st = "data-flemo-transition", ct = "data-flemo-router", lt = "data-flemo-skip-animation", ut = "data-flemo-bar", dt = "data-flemo-bar-active", ft = "data-flemo-bar-status", pt = "data-flemo-bar-riding", mt = "data-flemo-bar-id", ht = "data-flemo-bar-id-type", gt = "data-flemo-bar-transition", _t = "data-flemo-bar-spacer", vt = "data-flemo-decorator", yt = "data-flemo-decorator-name", bt = "data-flemo-layer-host", xt = "data-flemo-layer-slot", St = "data-flemo-layer-owner", U = "data-flemo-part-name", Ct = "data-flemo-part-layer", wt = "data-flemo-part-home", Tt = "data-flemo-part-stand-in", Et = "data-flemo-morph", Dt = {
|
|
1639
1639
|
ENTER: "enter",
|
|
1640
1640
|
EXIT: "exit"
|
|
1641
|
-
},
|
|
1641
|
+
}, Ot = "data-flemo-morph-name", kt = "data-flemo-morph-layer", At = "data-flemo-morph-slot", jt = "data-flemo-morph-stand-in", Mt = "data-flemo-morph-ghost", Nt = "data-flemo-morph-camera", Pt = "data-flemo-morph-sheet", W = "data-flemo-anim-hold", Ft = {
|
|
1642
1642
|
HELD: "true",
|
|
1643
1643
|
RELEASED: "false",
|
|
1644
1644
|
PARK: "park",
|
|
1645
1645
|
PARK_UNDER: "park-under",
|
|
1646
1646
|
PARK_OVER: "park-over"
|
|
1647
|
-
},
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
],
|
|
1647
|
+
}, It = [
|
|
1648
|
+
Ft.HELD,
|
|
1649
|
+
Ft.PARK,
|
|
1650
|
+
Ft.PARK_UNDER,
|
|
1651
|
+
Ft.PARK_OVER
|
|
1652
|
+
], Lt = "data-flemo-held-arrival", Rt = "data-flemo-img-hold", zt = "data-flemo-governed", Bt = "data-flemo-creep", Vt = "data-flemo-desk-head", Ht = "data-flemo-park-head", Ut = "data-flemo-warm", Wt = "data-flemo-gpu-prewarm", Gt = "data-flemo-image-src", Kt = "data-flemo-devtools-panel", G = (e) => `[${e}]`, K = (e, t) => `[${e}="${t}"]`, qt = [
|
|
1653
1653
|
it,
|
|
1654
1654
|
at,
|
|
1655
1655
|
ot,
|
|
@@ -1673,16 +1673,15 @@ var Je = [
|
|
|
1673
1673
|
Ct,
|
|
1674
1674
|
wt,
|
|
1675
1675
|
Tt,
|
|
1676
|
-
|
|
1676
|
+
Et,
|
|
1677
|
+
Nt,
|
|
1677
1678
|
Mt,
|
|
1678
|
-
jt,
|
|
1679
|
-
Ot,
|
|
1680
|
-
Dt,
|
|
1681
1679
|
kt,
|
|
1680
|
+
Ot,
|
|
1682
1681
|
At,
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1682
|
+
jt,
|
|
1683
|
+
Pt,
|
|
1684
|
+
W,
|
|
1686
1685
|
Lt,
|
|
1687
1686
|
Rt,
|
|
1688
1687
|
zt,
|
|
@@ -1691,9 +1690,10 @@ var Je = [
|
|
|
1691
1690
|
Ht,
|
|
1692
1691
|
Ut,
|
|
1693
1692
|
Wt,
|
|
1694
|
-
Gt
|
|
1695
|
-
|
|
1696
|
-
|
|
1693
|
+
Gt,
|
|
1694
|
+
Kt
|
|
1695
|
+
], Jt = (e, t) => t <= 0 || Math.abs(e - t) <= .5 ? 1 : e / t || 1, Yt = (e, t) => {
|
|
1696
|
+
let n = t.getBoundingClientRect(), r = Jt(n.width, t.offsetWidth), i = Jt(n.height, t.offsetHeight);
|
|
1697
1697
|
return {
|
|
1698
1698
|
x: (e.x - n.left) / r,
|
|
1699
1699
|
y: (e.y - n.top) / i,
|
|
@@ -1701,47 +1701,47 @@ var Je = [
|
|
|
1701
1701
|
height: e.height / i
|
|
1702
1702
|
};
|
|
1703
1703
|
};
|
|
1704
|
-
function
|
|
1704
|
+
function Xt(e) {
|
|
1705
1705
|
let t = e.animationName;
|
|
1706
1706
|
return typeof t == "string" && t.length > 0 ? t : null;
|
|
1707
1707
|
}
|
|
1708
|
-
function
|
|
1708
|
+
function Zt(e) {
|
|
1709
1709
|
let t = e.effect?.target ?? null;
|
|
1710
1710
|
return t instanceof Element ? t : null;
|
|
1711
1711
|
}
|
|
1712
|
-
function
|
|
1712
|
+
function Qt(e) {
|
|
1713
1713
|
let t = e.currentTime;
|
|
1714
1714
|
return typeof t == "number" ? t : null;
|
|
1715
1715
|
}
|
|
1716
|
-
function
|
|
1716
|
+
function $t(e) {
|
|
1717
1717
|
let t = /* @__PURE__ */ new Map();
|
|
1718
1718
|
t.set(e, 0);
|
|
1719
1719
|
let n = 1;
|
|
1720
1720
|
for (let r of e.querySelectorAll("*")) t.set(r, n++);
|
|
1721
1721
|
return t;
|
|
1722
1722
|
}
|
|
1723
|
-
function
|
|
1723
|
+
function en(e, t) {
|
|
1724
1724
|
let n = /* @__PURE__ */ new Map();
|
|
1725
1725
|
if (typeof e.getAnimations != "function") return n;
|
|
1726
|
-
let r =
|
|
1726
|
+
let r = $t(e);
|
|
1727
1727
|
for (let i of e.getAnimations({ subtree: !0 })) {
|
|
1728
|
-
let a =
|
|
1728
|
+
let a = Zt(i);
|
|
1729
1729
|
if (!a || a === e && !t) continue;
|
|
1730
|
-
let o =
|
|
1730
|
+
let o = Xt(i), s = r.get(a);
|
|
1731
1731
|
if (o === null || s === void 0) continue;
|
|
1732
|
-
let c =
|
|
1732
|
+
let c = Qt(i);
|
|
1733
1733
|
c !== null && n.set(`${s}|${o}`, { time: c });
|
|
1734
1734
|
}
|
|
1735
1735
|
return n;
|
|
1736
1736
|
}
|
|
1737
|
-
function
|
|
1738
|
-
let r = n.includeRoot ?? !1, i =
|
|
1737
|
+
function tn(e, t, n = {}) {
|
|
1738
|
+
let r = n.includeRoot ?? !1, i = en(e, r);
|
|
1739
1739
|
if (t(), i.size === 0 || typeof e.getAnimations != "function") return;
|
|
1740
|
-
let a =
|
|
1740
|
+
let a = $t(e);
|
|
1741
1741
|
for (let t of e.getAnimations({ subtree: !0 })) {
|
|
1742
|
-
let n =
|
|
1742
|
+
let n = Zt(t);
|
|
1743
1743
|
if (!n || n === e && !r) continue;
|
|
1744
|
-
let o =
|
|
1744
|
+
let o = Xt(t), s = a.get(n);
|
|
1745
1745
|
if (o === null || s === void 0) continue;
|
|
1746
1746
|
let c = i.get(`${s}|${o}`);
|
|
1747
1747
|
if (c) try {
|
|
@@ -1751,7 +1751,7 @@ function $t(e, t, n = {}) {
|
|
|
1751
1751
|
}
|
|
1752
1752
|
//#endregion
|
|
1753
1753
|
//#region src/morph/morphClip.ts
|
|
1754
|
-
var
|
|
1754
|
+
var nn = (e) => e !== "" && e !== "visible", rn = (e) => {
|
|
1755
1755
|
if (!e || !e.isConnected) return null;
|
|
1756
1756
|
let t = e.getBoundingClientRect();
|
|
1757
1757
|
if (t.width <= 0 || t.height <= 0) return null;
|
|
@@ -1764,9 +1764,9 @@ var en = (e) => e !== "" && e !== "visible", tn = (e) => {
|
|
|
1764
1764
|
} catch {
|
|
1765
1765
|
return null;
|
|
1766
1766
|
}
|
|
1767
|
-
if (!
|
|
1767
|
+
if (!nn(e) && !nn(o)) continue;
|
|
1768
1768
|
let s = t.getBoundingClientRect();
|
|
1769
|
-
s.width <= 0 || s.height <= 0 || (
|
|
1769
|
+
s.width <= 0 || s.height <= 0 || (nn(o) && (n = Math.max(n, s.top), i = Math.min(i, s.bottom)), nn(e) && (r = Math.max(r, s.left), a = Math.min(a, s.right)));
|
|
1770
1770
|
}
|
|
1771
1771
|
let o = n - t.y, s = r - t.x, c = t.y + t.height - i, l = t.x + t.width - a;
|
|
1772
1772
|
if (o < .5 && s < .5 && c < .5 && l < .5) return null;
|
|
@@ -1777,15 +1777,15 @@ var en = (e) => e !== "" && e !== "visible", tn = (e) => {
|
|
|
1777
1777
|
bottom: u(c, t.height),
|
|
1778
1778
|
left: u(s, t.width)
|
|
1779
1779
|
};
|
|
1780
|
-
},
|
|
1780
|
+
}, an = {
|
|
1781
1781
|
top: 0,
|
|
1782
1782
|
right: 0,
|
|
1783
1783
|
bottom: 0,
|
|
1784
1784
|
left: 0
|
|
1785
|
-
},
|
|
1786
|
-
from: e ??
|
|
1787
|
-
to: t ??
|
|
1788
|
-
},
|
|
1785
|
+
}, on = (e, t) => e === null && t === null ? null : {
|
|
1786
|
+
from: e ?? an,
|
|
1787
|
+
to: t ?? an
|
|
1788
|
+
}, sn = (e) => e === "normal" ? "0px" : e, cn = [
|
|
1789
1789
|
{ property: "border-radius" },
|
|
1790
1790
|
{ property: "background-color" },
|
|
1791
1791
|
{ property: "background-size" },
|
|
@@ -1820,27 +1820,27 @@ var en = (e) => e !== "" && e !== "visible", tn = (e) => {
|
|
|
1820
1820
|
{ property: "mix-blend-mode" },
|
|
1821
1821
|
{
|
|
1822
1822
|
property: "row-gap",
|
|
1823
|
-
normalize:
|
|
1823
|
+
normalize: sn
|
|
1824
1824
|
},
|
|
1825
1825
|
{
|
|
1826
1826
|
property: "column-gap",
|
|
1827
|
-
normalize:
|
|
1827
|
+
normalize: sn
|
|
1828
1828
|
},
|
|
1829
1829
|
{ property: "object-position" },
|
|
1830
1830
|
{ property: "fill" },
|
|
1831
1831
|
{ property: "stroke" },
|
|
1832
1832
|
{ property: "stroke-width" }
|
|
1833
|
-
],
|
|
1833
|
+
], ln = (e) => e.replace(/-([a-z])/g, (e, t) => t.toUpperCase()), un = (e) => {
|
|
1834
1834
|
let t = {};
|
|
1835
1835
|
if (!e) return t;
|
|
1836
|
-
for (let n of
|
|
1837
|
-
let r = n.sides ? n.sides.map((t) => e[t] ?? "").join(" ") : e[
|
|
1836
|
+
for (let n of cn) {
|
|
1837
|
+
let r = n.sides ? n.sides.map((t) => e[t] ?? "").join(" ") : e[ln(n.property)] ?? "";
|
|
1838
1838
|
r.trim().length > 0 && (t[n.property] = n.normalize ? n.normalize(r) : r);
|
|
1839
1839
|
}
|
|
1840
1840
|
return t;
|
|
1841
|
-
},
|
|
1841
|
+
}, dn = (e, t, n) => {
|
|
1842
1842
|
let r = [];
|
|
1843
|
-
for (let i of
|
|
1843
|
+
for (let i of cn) {
|
|
1844
1844
|
if (n?.has(i.property)) continue;
|
|
1845
1845
|
let a = e[i.property], o = t[i.property];
|
|
1846
1846
|
a !== void 0 && o !== void 0 && a !== o && r.push({
|
|
@@ -1850,13 +1850,13 @@ var en = (e) => e !== "" && e !== "visible", tn = (e) => {
|
|
|
1850
1850
|
});
|
|
1851
1851
|
}
|
|
1852
1852
|
return r;
|
|
1853
|
-
},
|
|
1853
|
+
}, q = {
|
|
1854
1854
|
x: 0,
|
|
1855
1855
|
y: 0,
|
|
1856
1856
|
scaleX: 1,
|
|
1857
1857
|
scaleY: 1,
|
|
1858
1858
|
rotate: 0
|
|
1859
|
-
},
|
|
1859
|
+
}, fn = (e, t) => {
|
|
1860
1860
|
if (e === void 0) return 0;
|
|
1861
1861
|
if (typeof e == "number") return e;
|
|
1862
1862
|
let n = e.trim();
|
|
@@ -1871,12 +1871,12 @@ var en = (e) => e !== "" && e !== "visible", tn = (e) => {
|
|
|
1871
1871
|
}
|
|
1872
1872
|
let r = Number.parseFloat(n);
|
|
1873
1873
|
return n === String(r) && Number.isFinite(r) ? r : null;
|
|
1874
|
-
},
|
|
1874
|
+
}, pn = (e, t) => {
|
|
1875
1875
|
if (e === void 0) return t;
|
|
1876
1876
|
if (typeof e == "number") return e;
|
|
1877
1877
|
let n = Number.parseFloat(e.trim());
|
|
1878
1878
|
return Number.isFinite(n) ? n : null;
|
|
1879
|
-
},
|
|
1879
|
+
}, mn = (e) => {
|
|
1880
1880
|
if (e === void 0) return 0;
|
|
1881
1881
|
if (typeof e == "number") return e;
|
|
1882
1882
|
let t = e.trim();
|
|
@@ -1886,15 +1886,15 @@ var en = (e) => e !== "" && e !== "visible", tn = (e) => {
|
|
|
1886
1886
|
}
|
|
1887
1887
|
let n = Number.parseFloat(t);
|
|
1888
1888
|
return t === String(n) && Number.isFinite(n) ? n : null;
|
|
1889
|
-
},
|
|
1890
|
-
if (!e) return { ...
|
|
1891
|
-
let n =
|
|
1889
|
+
}, hn = (e, t) => {
|
|
1890
|
+
if (!e) return { ...q };
|
|
1891
|
+
let n = fn(e.x, t.width), r = fn(e.y, t.height);
|
|
1892
1892
|
if (n === null || r === null) return null;
|
|
1893
|
-
let i =
|
|
1893
|
+
let i = pn(e.scale, 1);
|
|
1894
1894
|
if (i === null) return null;
|
|
1895
|
-
let a =
|
|
1895
|
+
let a = pn(e.scaleX, i), o = pn(e.scaleY, i);
|
|
1896
1896
|
if (a === null || o === null) return null;
|
|
1897
|
-
let s =
|
|
1897
|
+
let s = mn(e.rotate ?? e.rotateZ);
|
|
1898
1898
|
return s === null ? null : {
|
|
1899
1899
|
x: n,
|
|
1900
1900
|
y: r,
|
|
@@ -1902,43 +1902,101 @@ var en = (e) => e !== "" && e !== "visible", tn = (e) => {
|
|
|
1902
1902
|
scaleY: o,
|
|
1903
1903
|
rotate: s
|
|
1904
1904
|
};
|
|
1905
|
-
},
|
|
1906
|
-
if (
|
|
1905
|
+
}, gn = (e) => e.x === 0 && e.y === 0 && e.scaleX === 1 && e.scaleY === 1 && e.rotate === 0, _n = (e) => Math.round(e * 1e3) / 1e3, vn = (e) => {
|
|
1906
|
+
if (gn(e)) return "none";
|
|
1907
1907
|
let t = [];
|
|
1908
|
-
return (e.x !== 0 || e.y !== 0) && t.push(`translate3d(${
|
|
1909
|
-
},
|
|
1910
|
-
let t =
|
|
1908
|
+
return (e.x !== 0 || e.y !== 0) && t.push(`translate3d(${_n(e.x)}px, ${_n(e.y)}px, 0)`), (e.scaleX !== 1 || e.scaleY !== 1) && t.push(`scale(${_n(e.scaleX)}, ${_n(e.scaleY)})`), e.rotate !== 0 && t.push(`rotate(${_n(e.rotate)}deg)`), t.join(" ");
|
|
1909
|
+
}, yn = (e) => e.filter((e) => !gn(e)), bn = (e) => {
|
|
1910
|
+
let t = yn(e).map(vn);
|
|
1911
1911
|
return t.length === 0 ? "none" : t.join(" ");
|
|
1912
|
-
},
|
|
1912
|
+
}, J = {
|
|
1913
|
+
x: "--flemo-pose-x",
|
|
1914
|
+
y: "--flemo-pose-y",
|
|
1915
|
+
scaleX: "--flemo-pose-sx",
|
|
1916
|
+
scaleY: "--flemo-pose-sy",
|
|
1917
|
+
rotate: "--flemo-pose-r"
|
|
1918
|
+
}, xn = {
|
|
1919
|
+
x: "--flemo-move-x",
|
|
1920
|
+
y: "--flemo-move-y"
|
|
1921
|
+
}, Sn = `var(${xn.x}) var(${xn.y})`, Cn = (e, t, n = " ") => `${n}${xn.x}: ${_n(e)}px;\n${n}${xn.y}: ${_n(t)}px;`, wn = `translate3d(var(${J.x}), var(${J.y}), 0) scale(var(${J.scaleX}), var(${J.scaleY})) rotate(var(${J.rotate}))`, Tn = [
|
|
1922
|
+
`@property ${xn.x} {\n syntax: "<length>";\n inherits: false;\n initial-value: 0px;\n}`,
|
|
1923
|
+
`@property ${xn.y} {\n syntax: "<length>";\n inherits: false;\n initial-value: 0px;\n}`,
|
|
1924
|
+
`@property ${J.x} {\n syntax: "<length>";\n inherits: false;\n initial-value: 0px;\n}`,
|
|
1925
|
+
`@property ${J.y} {\n syntax: "<length>";\n inherits: false;\n initial-value: 0px;\n}`,
|
|
1926
|
+
`@property ${J.scaleX} {\n syntax: "<number>";\n inherits: false;\n initial-value: 1;\n}`,
|
|
1927
|
+
`@property ${J.scaleY} {\n syntax: "<number>";\n inherits: false;\n initial-value: 1;\n}`,
|
|
1928
|
+
`@property ${J.rotate} {\n syntax: "<angle>";\n inherits: false;\n initial-value: 0deg;\n}`
|
|
1929
|
+
], En = (e, t = " ") => [
|
|
1930
|
+
`${t}${J.x}: ${_n(e.x)}px;`,
|
|
1931
|
+
`${t}${J.y}: ${_n(e.y)}px;`,
|
|
1932
|
+
`${t}${J.scaleX}: ${_n(e.scaleX)};`,
|
|
1933
|
+
`${t}${J.scaleY}: ${_n(e.scaleY)};`,
|
|
1934
|
+
`${t}${J.rotate}: ${_n(e.rotate)}deg;`
|
|
1935
|
+
].join("\n"), Dn = (e) => ({
|
|
1913
1936
|
x: e.x + e.width / 2,
|
|
1914
1937
|
y: e.y + e.height / 2
|
|
1915
|
-
}),
|
|
1938
|
+
}), On = /^(-?[\d.]+)px$/, kn = (e) => {
|
|
1916
1939
|
if (!e) return null;
|
|
1917
|
-
let t =
|
|
1940
|
+
let t = On.exec(e.trim());
|
|
1918
1941
|
if (!t) return null;
|
|
1919
1942
|
let n = Number.parseFloat(t[1]);
|
|
1920
1943
|
return Number.isFinite(n) ? n : null;
|
|
1921
|
-
},
|
|
1922
|
-
|
|
1944
|
+
}, An = 1.35, jn = 1.6, Mn = (e, t, n) => {
|
|
1945
|
+
if (e <= 0) return !1;
|
|
1946
|
+
let r = t ?? (n === null ? null : n * An);
|
|
1947
|
+
return r === null || r <= 0 ? !1 : e <= r * jn;
|
|
1948
|
+
}, Nn = /* @__PURE__ */ new Map(), Pn = () => typeof document > "u" ? "" : document.fonts?.status ?? "", Fn = (e) => [
|
|
1949
|
+
e.fontFamily,
|
|
1950
|
+
e.fontSize,
|
|
1951
|
+
e.fontWeight,
|
|
1952
|
+
e.fontStyle,
|
|
1953
|
+
e.lineHeight,
|
|
1954
|
+
Pn()
|
|
1955
|
+
].join("|"), In = (e, t, n) => {
|
|
1956
|
+
if (!t || e.firstElementChild !== null) return null;
|
|
1957
|
+
let r = e.firstChild;
|
|
1958
|
+
if (!r || r.nodeType !== 3) return null;
|
|
1959
|
+
let i = Fn(t), a = Nn.get(i);
|
|
1960
|
+
if (a !== void 0) return a;
|
|
1961
|
+
/* v8 ignore next -- SSR; a jsdom host is covered through the range it does
|
|
1962
|
+
give, which carries no rects. */
|
|
1963
|
+
if (typeof document > "u" || typeof document.createRange != "function") return null;
|
|
1964
|
+
let o = document.createRange();
|
|
1965
|
+
if (typeof o.getClientRects != "function") return null;
|
|
1966
|
+
o.selectNodeContents(r);
|
|
1967
|
+
let s = o.getClientRects(), c = s.length > 0 ? s[0] : null;
|
|
1968
|
+
if (!c || c.height <= 0) return null;
|
|
1969
|
+
let l = e.offsetHeight;
|
|
1970
|
+
if (l > 0 && Math.abs(n.height - l) > .5) return null;
|
|
1971
|
+
let u = {
|
|
1972
|
+
height: c.height,
|
|
1973
|
+
offset: c.top - n.y
|
|
1974
|
+
};
|
|
1975
|
+
return Nn.set(i, u), u;
|
|
1976
|
+
}, Ln = (e, t, n, r) => e.firstElementChild === null && Mn(t.height, n, r), Rn = (e) => {
|
|
1977
|
+
let t = e.getBoundingClientRect(), n = typeof getComputedStyle == "function" ? getComputedStyle(e) : null, r = n ? Number.parseFloat(n.fontSize) : NaN, i = n ? Number.parseFloat(n.fontWeight) : NaN, a = n?.aspectRatio, o = kn(n?.lineHeight), s = {
|
|
1978
|
+
x: t.left,
|
|
1979
|
+
y: t.top,
|
|
1980
|
+
width: t.width,
|
|
1981
|
+
height: t.height
|
|
1982
|
+
}, c = In(e, n, s), l = (e) => n ? `${n[`${e}Top`]} ${n[`${e}Right`]} ${n[`${e}Bottom`]} ${n[`${e}Left`]}` : "0px 0px 0px 0px";
|
|
1923
1983
|
return {
|
|
1924
|
-
rect:
|
|
1925
|
-
x: t.left,
|
|
1926
|
-
y: t.top,
|
|
1927
|
-
width: t.width,
|
|
1928
|
-
height: t.height
|
|
1929
|
-
},
|
|
1984
|
+
rect: s,
|
|
1930
1985
|
fontSize: Number.isFinite(r) ? r : null,
|
|
1931
1986
|
fontWeight: Number.isFinite(i) ? i : null,
|
|
1932
|
-
letterSpacing:
|
|
1933
|
-
wordSpacing:
|
|
1934
|
-
lineHeight:
|
|
1987
|
+
letterSpacing: kn(n?.letterSpacing),
|
|
1988
|
+
wordSpacing: kn(n?.wordSpacing),
|
|
1989
|
+
lineHeight: o,
|
|
1935
1990
|
aspectRatio: a && a !== "auto" ? a : null,
|
|
1936
|
-
padding:
|
|
1937
|
-
margin:
|
|
1938
|
-
paint:
|
|
1991
|
+
padding: l("padding"),
|
|
1992
|
+
margin: l("margin"),
|
|
1993
|
+
paint: un(n),
|
|
1994
|
+
singleLine: Ln(e, s, o, Number.isFinite(r) ? r : null),
|
|
1995
|
+
textHeight: c?.height ?? null,
|
|
1996
|
+
leadOffset: c?.offset ?? null
|
|
1939
1997
|
};
|
|
1940
|
-
},
|
|
1941
|
-
let r = t.scaleX === 0 ? 1 : t.scaleX, i = t.scaleY === 0 ? 1 : t.scaleY, a =
|
|
1998
|
+
}, zn = (e, t, n) => {
|
|
1999
|
+
let r = t.scaleX === 0 ? 1 : t.scaleX, i = t.scaleY === 0 ? 1 : t.scaleY, a = Dn(e), o = {
|
|
1942
2000
|
x: n.x + (a.x - n.x - t.x) / r,
|
|
1943
2001
|
y: n.y + (a.y - n.y - t.y) / i
|
|
1944
2002
|
}, s = e.width / r, c = e.height / i;
|
|
@@ -1948,9 +2006,9 @@ var en = (e) => e !== "" && e !== "visible", tn = (e) => {
|
|
|
1948
2006
|
width: s,
|
|
1949
2007
|
height: c
|
|
1950
2008
|
};
|
|
1951
|
-
},
|
|
1952
|
-
if (typeof getComputedStyle != "function") return { ...
|
|
1953
|
-
let t = (getComputedStyle(e).transform ?? "").trim(), n =
|
|
2009
|
+
}, Bn = /^matrix\(([^)]+)\)$/, Vn = /^translate(?:3d)?\(([^)]+)\)$/, Hn = (e) => {
|
|
2010
|
+
if (typeof getComputedStyle != "function") return { ...q };
|
|
2011
|
+
let t = (getComputedStyle(e).transform ?? "").trim(), n = Vn.exec(t);
|
|
1954
2012
|
if (n) {
|
|
1955
2013
|
let [e, t] = n[1].split(",").map((e) => Number.parseFloat(e));
|
|
1956
2014
|
return {
|
|
@@ -1961,25 +2019,25 @@ var en = (e) => e !== "" && e !== "visible", tn = (e) => {
|
|
|
1961
2019
|
rotate: 0
|
|
1962
2020
|
};
|
|
1963
2021
|
}
|
|
1964
|
-
let r =
|
|
1965
|
-
if (!r) return { ...
|
|
2022
|
+
let r = Bn.exec(t);
|
|
2023
|
+
if (!r) return { ...q };
|
|
1966
2024
|
let i = r[1].split(",").map((e) => Number.parseFloat(e));
|
|
1967
|
-
return i.length < 6 || i.some((e) => !Number.isFinite(e)) ? { ...
|
|
2025
|
+
return i.length < 6 || i.some((e) => !Number.isFinite(e)) ? { ...q } : {
|
|
1968
2026
|
x: i[4],
|
|
1969
2027
|
y: i[5],
|
|
1970
2028
|
scaleX: i[0],
|
|
1971
2029
|
scaleY: i[3],
|
|
1972
2030
|
rotate: 0
|
|
1973
2031
|
};
|
|
1974
|
-
},
|
|
1975
|
-
let n =
|
|
2032
|
+
}, Un = (e, t) => {
|
|
2033
|
+
let n = Dn(e);
|
|
1976
2034
|
return {
|
|
1977
2035
|
x: n.x - t.x,
|
|
1978
2036
|
y: n.y - t.y
|
|
1979
2037
|
};
|
|
1980
|
-
},
|
|
1981
|
-
if (t.width <= 0 || t.height <= 0) return { ...
|
|
1982
|
-
let n =
|
|
2038
|
+
}, Wn = (e, t) => {
|
|
2039
|
+
if (t.width <= 0 || t.height <= 0) return { ...q };
|
|
2040
|
+
let n = Dn(t), r = Dn(e);
|
|
1983
2041
|
return {
|
|
1984
2042
|
x: r.x - n.x,
|
|
1985
2043
|
y: r.y - n.y,
|
|
@@ -1987,22 +2045,22 @@ var en = (e) => e !== "" && e !== "visible", tn = (e) => {
|
|
|
1987
2045
|
scaleY: e.height / t.height,
|
|
1988
2046
|
rotate: 0
|
|
1989
2047
|
};
|
|
1990
|
-
},
|
|
2048
|
+
}, Gn = "--flemo-ride-y", Kn = /^\s*(-?\d*\.?\d+)%\s*$/, qn = (e) => {
|
|
1991
2049
|
if (typeof e != "string") return null;
|
|
1992
|
-
let t =
|
|
2050
|
+
let t = Kn.exec(e);
|
|
1993
2051
|
if (!t) return null;
|
|
1994
2052
|
let n = Number(t[1]) / 100;
|
|
1995
2053
|
return Number.isFinite(n) ? n : null;
|
|
1996
|
-
},
|
|
1997
|
-
let t = `var(${
|
|
2054
|
+
}, Jn = (e) => {
|
|
2055
|
+
let t = `var(${Gn}, 100%)`;
|
|
1998
2056
|
return e === 1 ? t : e === -1 ? `calc(${t} * -1)` : `calc(${t} * ${e})`;
|
|
1999
|
-
},
|
|
2000
|
-
let n =
|
|
2057
|
+
}, Yn = (e, t) => {
|
|
2058
|
+
let n = qn(e.y);
|
|
2001
2059
|
return n === null || !(t > 0) ? e : {
|
|
2002
2060
|
...e,
|
|
2003
2061
|
y: `${t * n}px`
|
|
2004
2062
|
};
|
|
2005
|
-
},
|
|
2063
|
+
}, Xn = Ie, Zn = "translateZ(0.02px)", Qn = "0.004", $n = (e) => e.replace(/[^a-zA-Z0-9_-]/g, "_"), er = (e) => typeof e == "object" && !!e && !Array.isArray(e), tr = /* @__PURE__ */ new Set(/* @__PURE__ */ "opacity.scale.scaleX.scaleY.scaleZ.aspectRatio.columnCount.columns.flex.flexGrow.flexShrink.fontWeight.gridArea.gridColumn.gridColumnEnd.gridColumnStart.gridRow.gridRowEnd.gridRowStart.lineHeight.lineClamp.order.orphans.tabSize.widows.zIndex.zoom.fillOpacity.floodOpacity.stopOpacity.strokeOpacity.strokeDasharray.strokeDashoffset.strokeMiterlimit.strokeWidth".split(".")), nr = (e, t) => t.startsWith("--") || tr.has(t) ? `${e}` : t === "rotate" || t === "rotateX" || t === "rotateY" || t === "rotateZ" ? `${e}deg` : `${e}px`, rr = (e, t) => typeof t == "number" ? nr(t, e) : typeof t == "string" ? t : "", ir = (e) => e.replace(/[A-Z]/g, (e) => `-${e.toLowerCase()}`), ar = /* @__PURE__ */ new Set([
|
|
2006
2064
|
"x",
|
|
2007
2065
|
"y",
|
|
2008
2066
|
"z",
|
|
@@ -2013,10 +2071,10 @@ var en = (e) => e !== "" && e !== "visible", tn = (e) => {
|
|
|
2013
2071
|
"rotateX",
|
|
2014
2072
|
"rotateY",
|
|
2015
2073
|
"rotateZ"
|
|
2016
|
-
]),
|
|
2074
|
+
]), or = /^-?0(\.0+)?(px|%|em|rem|vh|vw|vmin|vmax)?$/, sr = /^-?0(\.0+)?(deg|rad|grad|turn)?$/, cr = /^1(\.0+)?$/, lr = (e, t) => e === "scale" || e === "scaleX" || e === "scaleY" ? t === 1 || typeof t == "string" && cr.test(t.trim()) : e === "rotate" || e === "rotateX" || e === "rotateY" || e === "rotateZ" ? t === 0 || typeof t == "string" && sr.test(t.trim()) : t === 0 || typeof t == "string" && or.test(t.trim()), ur = (e, t, n) => {
|
|
2017
2075
|
if (n && e === "y") {
|
|
2018
|
-
let n =
|
|
2019
|
-
if (n !== null) return
|
|
2076
|
+
let n = qn(t);
|
|
2077
|
+
if (n !== null) return ur(e, Jn(n), !1);
|
|
2020
2078
|
}
|
|
2021
2079
|
switch (e) {
|
|
2022
2080
|
case "x": return `translate3d(${t}, 0, 0)`;
|
|
@@ -2031,17 +2089,17 @@ var en = (e) => e !== "" && e !== "visible", tn = (e) => {
|
|
|
2031
2089
|
case "rotateY": return `rotateY(${t})`;
|
|
2032
2090
|
default: return "";
|
|
2033
2091
|
}
|
|
2034
|
-
},
|
|
2092
|
+
}, dr = (e) => {
|
|
2035
2093
|
let t = /* @__PURE__ */ new Map(), n = !1, r = /* @__PURE__ */ new Set(), i = (e) => {
|
|
2036
|
-
if (!
|
|
2094
|
+
if (!er(e)) return;
|
|
2037
2095
|
let n = [];
|
|
2038
2096
|
for (let r of Object.keys(e)) {
|
|
2039
|
-
let i = e[r], a =
|
|
2097
|
+
let i = e[r], a = rr(r, i);
|
|
2040
2098
|
if (a !== "") {
|
|
2041
|
-
if (
|
|
2099
|
+
if (ar.has(r)) n.push(`${r}:${a}`);
|
|
2042
2100
|
else {
|
|
2043
|
-
let e = t.get(
|
|
2044
|
-
e.add(a), t.set(
|
|
2101
|
+
let e = t.get(ir(r)) ?? /* @__PURE__ */ new Set();
|
|
2102
|
+
e.add(a), t.set(ir(r), e);
|
|
2045
2103
|
}
|
|
2046
2104
|
}
|
|
2047
2105
|
}
|
|
@@ -2052,13 +2110,13 @@ var en = (e) => e !== "" && e !== "visible", tn = (e) => {
|
|
|
2052
2110
|
n = r.size > 1;
|
|
2053
2111
|
let a = Array.from(t.entries()).filter(([, e]) => e.size > 1).map(([e]) => e);
|
|
2054
2112
|
return n && a.push("transform"), a;
|
|
2055
|
-
},
|
|
2056
|
-
if (!
|
|
2113
|
+
}, fr = (e, t = !1) => {
|
|
2114
|
+
if (!er(e)) return [];
|
|
2057
2115
|
let n = [], r = !0, i = [];
|
|
2058
2116
|
for (let a of Object.keys(e)) {
|
|
2059
|
-
let o = e[a], s =
|
|
2060
|
-
s !== "" && (
|
|
2061
|
-
property:
|
|
2117
|
+
let o = e[a], s = rr(a, o);
|
|
2118
|
+
s !== "" && (ar.has(a) ? (n.push(ur(a, s, t)), lr(a, o) || (r = !1)) : i.push({
|
|
2119
|
+
property: ir(a),
|
|
2062
2120
|
value: s
|
|
2063
2121
|
}));
|
|
2064
2122
|
}
|
|
@@ -2066,11 +2124,11 @@ var en = (e) => e !== "" && e !== "visible", tn = (e) => {
|
|
|
2066
2124
|
property: "transform",
|
|
2067
2125
|
value: r ? "none" : n.join(" ")
|
|
2068
2126
|
}), i;
|
|
2069
|
-
}, Y = (e) => e.map((e) => ` ${e.property}: ${e.value};`).join("\n"),
|
|
2127
|
+
}, Y = (e) => e.map((e) => ` ${e.property}: ${e.value};`).join("\n"), pr = (e, t) => {
|
|
2070
2128
|
let n = new Map(e.map((e) => [e.property, e.value])), r = new Map(t.map((e) => [e.property, e.value]));
|
|
2071
2129
|
for (let e of /* @__PURE__ */ new Set([...n.keys(), ...r.keys()])) if (n.get(e) !== r.get(e)) return !0;
|
|
2072
2130
|
return !1;
|
|
2073
|
-
},
|
|
2131
|
+
}, mr = (e) => Array.isArray(e) ? e.length === 4 && e.every((e) => typeof e == "number") ? `cubic-bezier(${e.join(", ")})` : "linear" : typeof e == "string" ? {
|
|
2074
2132
|
linear: "linear",
|
|
2075
2133
|
easeIn: "ease-in",
|
|
2076
2134
|
easeOut: "ease-out",
|
|
@@ -2080,22 +2138,22 @@ var en = (e) => e !== "" && e !== "visible", tn = (e) => {
|
|
|
2080
2138
|
backIn: "cubic-bezier(0.31, 0.01, 0.66, -0.59)",
|
|
2081
2139
|
backOut: "cubic-bezier(0.33, 1.53, 0.69, 0.99)",
|
|
2082
2140
|
anticipate: "cubic-bezier(0.36, 0, 0.66, -0.56)"
|
|
2083
|
-
}[e] ?? "ease" : "ease",
|
|
2141
|
+
}[e] ?? "ease" : "ease", hr = (e, t) => {
|
|
2084
2142
|
let [n, r] = t.split("-");
|
|
2085
|
-
return
|
|
2086
|
-
},
|
|
2143
|
+
return G(it) + K(st, e) + K(at, n) + K(ot, r);
|
|
2144
|
+
}, gr = (e, t, n) => {
|
|
2087
2145
|
let [r, i] = n.split("-");
|
|
2088
|
-
return
|
|
2089
|
-
},
|
|
2146
|
+
return G(vt) + K(yt, t) + K(st, e) + K(at, r) + K(ot, i);
|
|
2147
|
+
}, _r = (e, t) => {
|
|
2090
2148
|
let [n, r] = t.split("-");
|
|
2091
|
-
return
|
|
2092
|
-
},
|
|
2149
|
+
return G(ut) + K(gt, e) + K(ft, n) + K(dt, r) + K(pt, "true");
|
|
2150
|
+
}, vr = (e, t, n) => {
|
|
2093
2151
|
let [r, i] = n.split("-");
|
|
2094
|
-
return
|
|
2095
|
-
},
|
|
2152
|
+
return G(e) + K(st, t) + K(at, r) + K(ot, i);
|
|
2153
|
+
}, yr = (e, t) => {
|
|
2096
2154
|
let [n, r] = t.split("-");
|
|
2097
|
-
return
|
|
2098
|
-
},
|
|
2155
|
+
return K(U, e) + K(at, n) + K(ot, r);
|
|
2156
|
+
}, br = (e, t, n) => K(st, e) + yr(t, n), xr = (e) => {
|
|
2099
2157
|
let t = /* @__PURE__ */ new Set(), n = "", r = 0;
|
|
2100
2158
|
for (; r < e.length;) {
|
|
2101
2159
|
let i = e.indexOf("@keyframes", r);
|
|
@@ -2121,26 +2179,26 @@ var en = (e) => e !== "" && e !== "visible", tn = (e) => {
|
|
|
2121
2179
|
n += e.slice(r, i), t.has(c) ? n = n.replace(/\n{2,}$/, "\n\n") : (t.add(c), n += c), r = s + 1;
|
|
2122
2180
|
}
|
|
2123
2181
|
return n;
|
|
2124
|
-
},
|
|
2182
|
+
}, Sr = (e, t, n) => `flemo-${e}-${$n(t)}-${n}`, Cr = (e, t, n) => Sr("decorator", `${e}--${t}`, n), wr = {
|
|
2125
2183
|
governed: "gov",
|
|
2126
2184
|
desktop: "deskhead",
|
|
2127
2185
|
creep: "govcreep",
|
|
2128
2186
|
governedPark: "govpark",
|
|
2129
2187
|
desktopPark: "deskpark"
|
|
2130
|
-
},
|
|
2131
|
-
let o =
|
|
2188
|
+
}, Tr = Object.values(wr).map((e) => `-${e}`), Er = (e, t) => e === t || Tr.some((n) => e === `${t}${n}`), Dr = (e, t, n, r, i, a) => {
|
|
2189
|
+
let o = fr(r), s = fr(i.value), c = new Set(o.filter((e) => s.some((t) => t.property === e.property && t.value === e.value)).map((e) => e.property)), l = o.filter((e) => c.has(e.property)), u = o.filter((e) => !c.has(e.property)), d = s.filter((e) => !c.has(e.property)), f = Le(i.options), p = Re(i.options), m = mr(i.options?.ease), h = fr(r, !0), g = fr(i.value, !0), _ = h.filter((e) => !c.has(e.property)), v = g.filter((e) => !c.has(e.property)), y = (e, t) => Y(e) !== Y(t), b = e === "screen" && (y(h, o) || y(g, s)), x = a(t, n), S = _r(t, n), C = e === "screen" ? [
|
|
2132
2190
|
x,
|
|
2133
2191
|
...b ? [] : [S],
|
|
2134
|
-
|
|
2135
|
-
|
|
2192
|
+
vr(bt, t, n),
|
|
2193
|
+
vr(xt, t, n)
|
|
2136
2194
|
].join(",\n") : x;
|
|
2137
2195
|
if (s.length === 0 && o.length === 0) return "";
|
|
2138
|
-
if (!
|
|
2196
|
+
if (!pr(o, s) || f <= 0 && p <= 0) {
|
|
2139
2197
|
if (s.length === 0) return "";
|
|
2140
2198
|
let e = `${C} {\n${Y(s)}\n animation: none;\n}`;
|
|
2141
2199
|
return b ? `${e}\n${S} {\n${Y(g)}\n animation: none;\n}` : e;
|
|
2142
2200
|
}
|
|
2143
|
-
let w =
|
|
2201
|
+
let w = Sr(e, t, n), T = {
|
|
2144
2202
|
selector: C,
|
|
2145
2203
|
keyframe: w,
|
|
2146
2204
|
fromDecls: u,
|
|
@@ -2180,36 +2238,36 @@ var en = (e) => e !== "" && e !== "visible", tn = (e) => {
|
|
|
2180
2238
|
let e = t.fromDecls.find((e) => e.property === "transform");
|
|
2181
2239
|
if (!e) return [...t.fromDecls, {
|
|
2182
2240
|
property: "transform",
|
|
2183
|
-
value:
|
|
2241
|
+
value: Zn
|
|
2184
2242
|
}];
|
|
2185
2243
|
let n = e.value === "none" ? "" : `${e.value} `;
|
|
2186
2244
|
return t.fromDecls.map((e) => e.property === "transform" ? {
|
|
2187
2245
|
property: "transform",
|
|
2188
|
-
value: `${n}${
|
|
2246
|
+
value: `${n}${Zn}`
|
|
2189
2247
|
} : e);
|
|
2190
|
-
})(), a = f + r, c = (r / a * 100).toFixed(3), l = `${t.keyframe}-${
|
|
2248
|
+
})(), a = f + r, c = (r / a * 100).toFixed(3), l = `${t.keyframe}-${wr.creep}`, u = t.selector.split(",\n").map((e) => `:root${G(zt)}${G(Bt)} ${e}`).join(",\n");
|
|
2191
2249
|
return `\n@keyframes ${l} {\n 0% {\n${Y(t.fromDecls).replace(/^/gm, " ")}\n }\n ${c}% {\n${Y(i).replace(/^/gm, " ")}\n }\n 100% {\n${Y(t.toDecls).replace(/^/gm, " ")}\n }\n}\n${u} {\n animation-name: ${l};\n animation-duration: ${a.toFixed(3)}s;\n animation-delay: ${(p + r).toFixed(3)}s;\n}`;
|
|
2192
|
-
},
|
|
2250
|
+
}, P = (e = T) => M(zt, wr.governed, A(n), !0, e) + ee(zt, A(n)) + N(e) + M(Vt, wr.desktop, j(n), !1, e) + ee(Vt, j(n)), F = new Map(u.map((e) => [e.property, e.value])), te = new Map(d.map((e) => [e.property, e.value])), I = Array.from(/* @__PURE__ */ new Set([...F.keys(), ...te.keys()])).filter((e) => F.get(e) !== te.get(e)), ne = e !== "part" && I.length > 0 ? ` will-change: ${I.join(", ")};\n` : "", re = n.split("-")[0], ie = re === "PUSHING" || re === "REPLACING" ? " contain: layout;\n" : "", L = l.length > 0 ? `${Y(l)}\n` : "", ae = (e = T) => `${e.selector} {\n animation: ${k(e.keyframe)};\n${L}${ne}${ie}}`, oe = e === "screen" && Or(r) && s.length > 0, se = oe && n.endsWith("-false"), R = oe && n.endsWith("-true") && (re === "PUSHING" || re === "REPLACING"), ce = se ? `\n${x}${K(W, Ft.PARK)} {\n animation: none;\n${Y(s)}\n}` : "", z = R ? `\n${x}${K(W, Ft.PARK_UNDER)} {\n animation: none;\n${Y(s)}\n}` : "", B = R ? `\n${x}${K(W, Ft.PARK_OVER)} {\n animation: none;\n${Y(s)}\n opacity: ${Qn};\n}` : "", le = (e, t, n, r) => {
|
|
2193
2251
|
/* v8 ignore next -- every parking variant is a PUSHING/REPLACING/POPPING
|
|
2194
2252
|
screen, so it has both a head and a duration; the guard mirrors
|
|
2195
2253
|
headBlock's so a future caller cannot walk into a malformed keyframe. */
|
|
2196
|
-
if (!
|
|
2197
|
-
let i = f + n, a = n / i * 100, o = Math.min(.05, a / 4), s = `${w}-${t}`, c = R ? ` opacity: ${
|
|
2254
|
+
if (!se && !R || n <= 0 || f <= 0) return "";
|
|
2255
|
+
let i = f + n, a = n / i * 100, o = Math.min(.05, a / 4), s = `${w}-${t}`, c = R ? ` opacity: ${Qn};` : "", l = [...u, ...d].some((e) => e.property === "opacity"), m = R && !l ? " opacity: 1;" : "", h = (e, t, n) => {
|
|
2198
2256
|
let r = n ? t.filter((e) => e.property !== "opacity") : t, i = [...r.length > 0 ? [Y(r).replace(/^/gm, " ")] : [], ...n ? [n] : []];
|
|
2199
2257
|
return ` ${e.toFixed(3)}% {\n${i.join("\n")}\n }`;
|
|
2200
2258
|
};
|
|
2201
|
-
return `\n@keyframes ${s} {\n${h(0, d, c)}\n${h(a - o, d, c)}\n${h(a, u, c)}\n` + (R ? `${h(a + o, u, m)}\n` : "") + `${h(100, d, m)}\n}\n:root${
|
|
2202
|
-
}, ue = () => le(
|
|
2203
|
-
return `${O}\n${
|
|
2204
|
-
},
|
|
2259
|
+
return `\n@keyframes ${s} {\n${h(0, d, c)}\n${h(a - o, d, c)}\n${h(a, u, c)}\n` + (R ? `${h(a + o, u, m)}\n` : "") + `${h(100, d, m)}\n}\n:root${G(e)} ${x}${K(Ht, "true")} {\n animation-name: ${s};\n animation-duration: ${i.toFixed(3)}s;\n animation-delay: ${(r ? p + n : p).toFixed(3)}s;\n` + (R ? ` will-change: ${[.../* @__PURE__ */ new Set([...I, "opacity"])].join(", ")};\n` : "") + "}";
|
|
2260
|
+
}, ue = () => le(zt, wr.governedPark, A(n), !0) + le(Vt, wr.desktopPark, j(n), !1), V = b ? `\n${D(E)}\n${ae(E)}${P(E)}` : "";
|
|
2261
|
+
return `${O}\n${ae()}${P()}${ue()}${ce}${z}${B}${V}`;
|
|
2262
|
+
}, Or = (e) => {
|
|
2205
2263
|
if (!e) return !1;
|
|
2206
2264
|
if (e.opacity === 0) return !0;
|
|
2207
2265
|
let t = (e) => typeof e == "string" && e.trim().endsWith("%") && Math.abs(parseFloat(e)) >= 100;
|
|
2208
2266
|
return t(e.x) || t(e.y);
|
|
2209
|
-
},
|
|
2210
|
-
let i =
|
|
2267
|
+
}, kr = (e, t, n, r) => {
|
|
2268
|
+
let i = fr(r.value);
|
|
2211
2269
|
return i.length === 0 ? "" : `${e(t, n)} {\n${Y(i)}\n}`;
|
|
2212
|
-
},
|
|
2270
|
+
}, Ar = (e, t, n = []) => {
|
|
2213
2271
|
let r = [], i = [...e], a = /* @__PURE__ */ new Map();
|
|
2214
2272
|
for (let e of t) a.set(e.name, e);
|
|
2215
2273
|
for (let e of i) {
|
|
@@ -2217,130 +2275,380 @@ var en = (e) => e !== "" && e !== "visible", tn = (e) => {
|
|
|
2217
2275
|
for (let n of Ie) {
|
|
2218
2276
|
let i = e.variants[n], a = Fe[n];
|
|
2219
2277
|
if (a === "self") {
|
|
2220
|
-
r.push(
|
|
2278
|
+
r.push(kr(hr, t, n, i));
|
|
2221
2279
|
continue;
|
|
2222
2280
|
}
|
|
2223
2281
|
let o = a === "initial" ? e.initial : e.variants[a].value;
|
|
2224
|
-
r.push(
|
|
2282
|
+
r.push(Dr("screen", t, n, o, i, hr));
|
|
2225
2283
|
}
|
|
2226
2284
|
}
|
|
2227
2285
|
for (let e of i) {
|
|
2228
2286
|
if (!e.decoratorName) continue;
|
|
2229
2287
|
let t = a.get(e.decoratorName);
|
|
2230
2288
|
if (!t) continue;
|
|
2231
|
-
let n = Be(e, t), i = `${e.name}--${t.name}`, o = (n, r) =>
|
|
2232
|
-
for (let e of
|
|
2289
|
+
let n = Be(e, t), i = `${e.name}--${t.name}`, o = (n, r) => gr(e.name, t.name, r);
|
|
2290
|
+
for (let e of Xn) {
|
|
2233
2291
|
let t = n.variants[e], a = Fe[e];
|
|
2234
2292
|
if (a === "self") {
|
|
2235
|
-
r.push(
|
|
2293
|
+
r.push(kr(o, i, e, t));
|
|
2236
2294
|
continue;
|
|
2237
2295
|
}
|
|
2238
2296
|
let s = a === "initial" ? n.initial : n.variants[a].value;
|
|
2239
|
-
r.push(
|
|
2297
|
+
r.push(Dr("decorator", i, e, s, t, o));
|
|
2240
2298
|
}
|
|
2241
2299
|
}
|
|
2242
2300
|
let o = [...n];
|
|
2243
2301
|
for (let e of o) {
|
|
2244
2302
|
let t = e.name, n = Ue(null, e);
|
|
2245
|
-
for (let e of
|
|
2303
|
+
for (let e of Xn) {
|
|
2246
2304
|
let i = n.variants[e], a = Fe[e];
|
|
2247
2305
|
if (a === "self") {
|
|
2248
|
-
r.push(
|
|
2306
|
+
r.push(kr(yr, t, e, i));
|
|
2249
2307
|
continue;
|
|
2250
2308
|
}
|
|
2251
2309
|
let o = a === "initial" ? n.initial : n.variants[a].value;
|
|
2252
|
-
r.push(
|
|
2310
|
+
r.push(Dr("part", t, e, o, i, yr));
|
|
2253
2311
|
}
|
|
2254
2312
|
}
|
|
2255
2313
|
for (let e of i) for (let t of o) {
|
|
2256
|
-
let n = Ue(e, t), i = (n, r) =>
|
|
2257
|
-
for (let e of
|
|
2314
|
+
let n = Ue(e, t), i = (n, r) => br(e.name, t.name, r);
|
|
2315
|
+
for (let e of Xn) {
|
|
2258
2316
|
let a = n.variants[e], o = Fe[e];
|
|
2259
2317
|
if (o === "self") {
|
|
2260
|
-
r.push(
|
|
2318
|
+
r.push(kr(i, t.name, e, a));
|
|
2261
2319
|
continue;
|
|
2262
2320
|
}
|
|
2263
2321
|
let s = o === "initial" ? n.initial : n.variants[o].value;
|
|
2264
|
-
r.push(
|
|
2322
|
+
r.push(Dr("part", t.name, e, s, a, i));
|
|
2265
2323
|
}
|
|
2266
2324
|
}
|
|
2267
|
-
return
|
|
2325
|
+
return xr([
|
|
2268
2326
|
...r.filter((e) => e.length > 0),
|
|
2269
|
-
|
|
2270
|
-
|
|
2327
|
+
jr,
|
|
2328
|
+
Mr
|
|
2271
2329
|
].join("\n\n"));
|
|
2272
|
-
},
|
|
2273
|
-
[...
|
|
2274
|
-
`${
|
|
2275
|
-
`${
|
|
2276
|
-
`${
|
|
2330
|
+
}, jr = [
|
|
2331
|
+
[...It.map((e) => K(W, e)), ...It.flatMap((e) => [
|
|
2332
|
+
`${K(W, e)} ${G(U)}`,
|
|
2333
|
+
`${K(W, e)} ${G(Et)}`,
|
|
2334
|
+
`${K(W, e)} ${G(Mt)}`
|
|
2277
2335
|
])].join(",\n") + " {",
|
|
2278
2336
|
" animation-play-state: paused !important;",
|
|
2279
2337
|
"}"
|
|
2280
|
-
].join("\n"),
|
|
2281
|
-
`${
|
|
2338
|
+
].join("\n"), Mr = [
|
|
2339
|
+
`${G(Lt)} {`,
|
|
2282
2340
|
" display: none !important;",
|
|
2283
2341
|
"}"
|
|
2284
|
-
].join("\n"),
|
|
2342
|
+
].join("\n"), Nr = (e, t) => {
|
|
2285
2343
|
let n = Fe[t];
|
|
2286
2344
|
if (n === "self") return !1;
|
|
2287
2345
|
let r = e.variants[t], i = Le(r.options), a = Re(r.options);
|
|
2288
|
-
return i <= 0 && a <= 0 ? !1 :
|
|
2289
|
-
},
|
|
2346
|
+
return i <= 0 && a <= 0 ? !1 : pr(fr(n === "initial" ? e.initial : e.variants[n].value), fr(r.value));
|
|
2347
|
+
}, Pr = {
|
|
2290
2348
|
REPLACING: 33,
|
|
2291
2349
|
PUSHING: 33,
|
|
2292
2350
|
POPPING: 17
|
|
2293
|
-
},
|
|
2351
|
+
}, Fr = {
|
|
2294
2352
|
REPLACING: 180,
|
|
2295
2353
|
PUSHING: 100,
|
|
2296
2354
|
POPPING: 80
|
|
2297
|
-
}, X = (e) => `${Math.round(e * 100) / 100}px`,
|
|
2298
|
-
let { id: t, travel: n, fade: r, paint: i, box: a, fontSize: o, fontWeight: s, letterSpacing: c, wordSpacing: l, lineHeight: u, aspectRatio: d, padding: f, margin: p, size: m, clip: h } = e,
|
|
2299
|
-
|
|
2300
|
-
},
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2355
|
+
}, X = (e) => `${Math.round(e * 100) / 100}px`, Ir = (e) => `inset(${e.top.toFixed(2)}% ${e.right.toFixed(2)}% ${e.bottom.toFixed(2)}% ${e.left.toFixed(2)}%)`, Lr = (e, t, n) => `${n ? Cn(e.x - t.x, e.y - t.y) : ` left: ${X(e.x)};\n top: ${X(e.y)};`}\n width: ${X(e.width)};\n height: ${X(e.height)};`, Rr = (e) => e.map((e) => ` ${e.property}: ${e.value};`).join("\n"), zr = (e) => fr(e ?? {}).filter((e) => e.property !== "transform"), Br = (e) => {
|
|
2356
|
+
let { id: t, travel: n, fade: r, paint: i, box: a, fontSize: o, fontWeight: s, letterSpacing: c, wordSpacing: l, lineHeight: u, aspectRatio: d, padding: f, margin: p, size: m, clip: h, leading: g, lift: _, pinned: v = !1, travelPinned: y = !1 } = e, b = [], x = [], S = mr(n.ease), C = n.start.toFixed(3), w = bn([n.from, n.authoredFrom]) !== "none" || bn([n.to ?? q, n.authoredTo]) !== "none", T = `flemo-morph-${t}-travel`, E = [], D = [], O = g && g.length > 1 ? g : null, k = a && g && g.length > 1 && _ && _.length > 1 && !w ? _ : null, A = !!(a || o || s || c || l || u || d || f || p || m || h), j = (e, t) => {
|
|
2357
|
+
E.push(e), D.push(t);
|
|
2358
|
+
}, M = null;
|
|
2359
|
+
if (a) {
|
|
2360
|
+
let e = k ? {
|
|
2361
|
+
from: k[0].ascent,
|
|
2362
|
+
to: k[k.length - 1].ascent
|
|
2363
|
+
} : {
|
|
2364
|
+
from: 0,
|
|
2365
|
+
to: 0
|
|
2366
|
+
};
|
|
2367
|
+
E.push(Lr({
|
|
2368
|
+
...a.from,
|
|
2369
|
+
y: a.from.y + e.from
|
|
2370
|
+
}, a.to, y)), D.push(Lr({
|
|
2371
|
+
...a.to,
|
|
2372
|
+
y: a.to.y + e.to
|
|
2373
|
+
}, a.to, y));
|
|
2374
|
+
}
|
|
2375
|
+
let ee = yn([n.from, n.authoredFrom]), N = yn([n.to ?? q, n.authoredTo]), P = v && !A && ee.length <= 1 && N.length <= 1, F = bn([n.from, n.authoredFrom]), te = bn([n.to ?? q, n.authoredTo]), I = null;
|
|
2376
|
+
if ((F !== "none" || te !== "none") && (P ? (I = wn, E.push(En(ee[0] ?? q)), D.push(En(N[0] ?? q))) : (E.push(` transform: ${F};`), D.push(` transform: ${te};`))), o && j(` font-size: ${X(o.from)};`, ` font-size: ${X(o.to)};`), s && j(` font-weight: ${Math.round(s.from)};`, ` font-weight: ${Math.round(s.to)};`), c && j(` letter-spacing: ${X(c.from)};`, ` letter-spacing: ${X(c.to)};`), l && j(` word-spacing: ${X(l.from)};`, ` word-spacing: ${X(l.to)};`), u && !O && j(` line-height: ${X(u.from)};`, ` line-height: ${X(u.to)};`), d && j(` aspect-ratio: ${d.from};`, ` aspect-ratio: ${d.to};`), f && j(` padding: ${f.from};`, ` padding: ${f.to};`), p && j(` margin: ${p.from};`, ` margin: ${p.to};`), m && (j(` width: ${X(m.from.width)};`, ` width: ${X(m.to.width)};`), j(` height: ${X(m.from.height)};`, ` height: ${X(m.to.height)};`)), h && j(` clip-path: ${Ir(h.from)};`, ` clip-path: ${Ir(h.to)};`), E.length > 0 && (b.push(`@keyframes ${T} {\n from {\n${E.join("\n")}\n }\n to {\n${D.join("\n")}\n }\n}`), x.push(`${T} ${n.duration.toFixed(3)}s ${S} ${C}s both`), M = T), r && r.duration > 0) {
|
|
2377
|
+
let e = zr(r.from), i = zr(r.to);
|
|
2305
2378
|
if (e.length > 0 || i.length > 0) {
|
|
2306
2379
|
let a = `flemo-morph-${t}-fade`;
|
|
2307
|
-
|
|
2380
|
+
b.push(`@keyframes ${a} {\n from {\n${Rr(e)}\n }\n to {\n${Rr(i)}\n }\n}`);
|
|
2308
2381
|
let o = (n.start + (r.delay ?? 0)).toFixed(3);
|
|
2309
|
-
|
|
2382
|
+
x.push(`${a} ${r.duration.toFixed(3)}s ${S} ${o}s both`);
|
|
2310
2383
|
}
|
|
2311
2384
|
}
|
|
2385
|
+
if (O) {
|
|
2386
|
+
let e = `flemo-morph-${t}-lead`, r = O.map((e) => ` ${e.at.toFixed(4)}% {\n line-height: ${X(e.lineHeight)};\n animation-timing-function: steps(1, end);\n }`).join("\n");
|
|
2387
|
+
b.push(`@keyframes ${e} {\n${r}\n}`), x.push(`${e} ${n.duration.toFixed(3)}s linear ${C}s both`);
|
|
2388
|
+
}
|
|
2389
|
+
if (k) {
|
|
2390
|
+
let e = `flemo-morph-${t}-lift`, r = k.map((e) => ` ${e.at.toFixed(4)}% {\n transform: translateY(${X(-e.ascent)});\n animation-timing-function: steps(1, end);\n }`).join("\n");
|
|
2391
|
+
b.push(`@keyframes ${e} {\n${r}\n}`), x.push(`${e} ${n.duration.toFixed(3)}s linear ${C}s both`);
|
|
2392
|
+
}
|
|
2312
2393
|
if (i.length > 0) {
|
|
2313
2394
|
let e = `flemo-morph-${t}-paint`, r = i.map((e) => ` ${e.property}: ${e.from};`).join("\n"), a = i.map((e) => ` ${e.property}: ${e.to};`).join("\n");
|
|
2314
|
-
|
|
2395
|
+
b.push(`@keyframes ${e} {\n from {\n${r}\n }\n to {\n${a}\n }\n}`), x.push(`${e} ${n.duration.toFixed(3)}s ${S} ${C}s both`), M ??= e;
|
|
2315
2396
|
}
|
|
2316
2397
|
return {
|
|
2317
|
-
rules:
|
|
2318
|
-
animation:
|
|
2319
|
-
geometryName:
|
|
2398
|
+
rules: b,
|
|
2399
|
+
animation: x.join(", "),
|
|
2400
|
+
geometryName: M ?? T,
|
|
2401
|
+
geometryAccelerated: !A && I === null,
|
|
2402
|
+
transform: I,
|
|
2403
|
+
translate: a && y ? Sn : null
|
|
2320
2404
|
};
|
|
2321
|
-
},
|
|
2322
|
-
let { id: t, origin: n, small: r, big: i, settling: a, duration: o, start: s, ease: c, selector: l } = e,
|
|
2405
|
+
}, Vr = (e) => {
|
|
2406
|
+
let { id: t, origin: n, small: r, big: i, settling: a, duration: o, start: s, ease: c, selector: l, accelerated: u } = e, d = r.width > 0 ? i.width / r.width : 1, f = (e) => ({
|
|
2323
2407
|
x: e.x + e.width / 2,
|
|
2324
2408
|
y: e.y + e.height / 2
|
|
2325
|
-
}),
|
|
2409
|
+
}), p = f(r), m = f(i), h = m.x - n.x - d * (p.x - n.x), g = m.y - n.y - d * (p.y - n.y), _ = Math.round(d * 1e4) / 1e4, v = {
|
|
2410
|
+
x: h,
|
|
2411
|
+
y: g,
|
|
2412
|
+
scaleX: _,
|
|
2413
|
+
scaleY: _,
|
|
2414
|
+
rotate: 0
|
|
2415
|
+
}, y = (e) => {
|
|
2416
|
+
let t = e ? q : v;
|
|
2417
|
+
return u ? ` transform: ${e ? "none" : `translate(${X(t.x)}, ${X(t.y)}) scale(${_})`};` : En(t);
|
|
2418
|
+
}, b = `flemo-morph-${t}-camera`;
|
|
2326
2419
|
return {
|
|
2327
|
-
rules: [`@keyframes ${
|
|
2328
|
-
name:
|
|
2420
|
+
rules: [`@keyframes ${b} {\n from {\n${y(!a)}\n }\n to {\n${y(a)}\n }\n}`, `${l} {\n${u ? "" : ` transform: ${wn} !important;\n`} animation-name: ${b} !important;\n animation-duration: ${o.toFixed(3)}s !important;\n animation-timing-function: ${mr(c)} !important;\n animation-delay: ${s.toFixed(3)}s !important;\n animation-fill-mode: both !important;\n}`],
|
|
2421
|
+
name: b
|
|
2329
2422
|
};
|
|
2330
|
-
},
|
|
2331
|
-
t ?
|
|
2332
|
-
},
|
|
2423
|
+
}, Hr = /* @__PURE__ */ new WeakMap(), Ur = (e, t) => {
|
|
2424
|
+
t ? Hr.set(e, t) : Hr.delete(e);
|
|
2425
|
+
}, Wr = (e) => {
|
|
2333
2426
|
if (p()) return null;
|
|
2334
|
-
let t =
|
|
2427
|
+
let t = Hr.get(e);
|
|
2335
2428
|
if (t?.isConnected) return t;
|
|
2336
|
-
let n = document.body.querySelector(`:scope > [${
|
|
2337
|
-
return n || (n = document.createElement("div"), n.setAttribute(
|
|
2338
|
-
},
|
|
2429
|
+
let n = document.body.querySelector(`:scope > [${kt}]`);
|
|
2430
|
+
return n || (n = document.createElement("div"), n.setAttribute(kt, ""), document.body.appendChild(n)), n;
|
|
2431
|
+
}, Gr = (e, t, n, r) => {
|
|
2432
|
+
let i = (t) => 3 * (1 - t) * (1 - t) * t * e + 3 * (1 - t) * t * t * n + t ** 3, a = (e) => 3 * (1 - e) * (1 - e) * e * t + 3 * (1 - e) * e * e * r + e ** 3;
|
|
2433
|
+
return (e) => {
|
|
2434
|
+
if (e <= 0) return 0;
|
|
2435
|
+
if (e >= 1) return 1;
|
|
2436
|
+
let t = 0, n = 1;
|
|
2437
|
+
for (let r = 0; r < 40; r++) {
|
|
2438
|
+
let r = (t + n) / 2;
|
|
2439
|
+
i(r) < e ? t = r : n = r;
|
|
2440
|
+
}
|
|
2441
|
+
return a((t + n) / 2);
|
|
2442
|
+
};
|
|
2443
|
+
}, Kr = (e) => {
|
|
2444
|
+
let t = Yr(e);
|
|
2445
|
+
if (!t) return (e) => e;
|
|
2446
|
+
let [n, r, i, a] = t, o = (e) => 3 * (1 - e) * (1 - e) * e * n + 3 * (1 - e) * e * e * i + e ** 3, s = (e) => 3 * (1 - e) * (1 - e) * e * r + 3 * (1 - e) * e * e * a + e ** 3;
|
|
2447
|
+
return (e) => {
|
|
2448
|
+
if (e <= 0) return 0;
|
|
2449
|
+
if (e >= 1) return 1;
|
|
2450
|
+
let t = 0, n = 1;
|
|
2451
|
+
for (let r = 0; r < 40; r++) {
|
|
2452
|
+
let r = (t + n) / 2;
|
|
2453
|
+
s(r) < e ? t = r : n = r;
|
|
2454
|
+
}
|
|
2455
|
+
return o((t + n) / 2);
|
|
2456
|
+
};
|
|
2457
|
+
}, qr = (e) => e, Jr = {
|
|
2458
|
+
ease: [
|
|
2459
|
+
.25,
|
|
2460
|
+
.1,
|
|
2461
|
+
.25,
|
|
2462
|
+
1
|
|
2463
|
+
],
|
|
2464
|
+
easeIn: [
|
|
2465
|
+
.42,
|
|
2466
|
+
0,
|
|
2467
|
+
1,
|
|
2468
|
+
1
|
|
2469
|
+
],
|
|
2470
|
+
easeOut: [
|
|
2471
|
+
0,
|
|
2472
|
+
0,
|
|
2473
|
+
.58,
|
|
2474
|
+
1
|
|
2475
|
+
],
|
|
2476
|
+
easeInOut: [
|
|
2477
|
+
.42,
|
|
2478
|
+
0,
|
|
2479
|
+
.58,
|
|
2480
|
+
1
|
|
2481
|
+
],
|
|
2482
|
+
circIn: [
|
|
2483
|
+
0,
|
|
2484
|
+
.55,
|
|
2485
|
+
.45,
|
|
2486
|
+
1
|
|
2487
|
+
],
|
|
2488
|
+
circOut: [
|
|
2489
|
+
.55,
|
|
2490
|
+
0,
|
|
2491
|
+
1,
|
|
2492
|
+
.45
|
|
2493
|
+
],
|
|
2494
|
+
backIn: [
|
|
2495
|
+
.31,
|
|
2496
|
+
.01,
|
|
2497
|
+
.66,
|
|
2498
|
+
-.59
|
|
2499
|
+
],
|
|
2500
|
+
backOut: [
|
|
2501
|
+
.33,
|
|
2502
|
+
1.53,
|
|
2503
|
+
.69,
|
|
2504
|
+
.99
|
|
2505
|
+
],
|
|
2506
|
+
anticipate: [
|
|
2507
|
+
.36,
|
|
2508
|
+
0,
|
|
2509
|
+
.66,
|
|
2510
|
+
-.56
|
|
2511
|
+
]
|
|
2512
|
+
}, Yr = (e) => Array.isArray(e) ? e.length === 4 && e.every((e) => typeof e == "number") ? [...e] : null : typeof e == "string" ? e === "linear" ? null : [...Jr[e] ?? Jr.ease] : [...Jr.ease], Xr = (e) => {
|
|
2513
|
+
if (Array.isArray(e)) {
|
|
2514
|
+
if (e.length === 4 && e.every((e) => typeof e == "number")) {
|
|
2515
|
+
let [t, n, r, i] = e;
|
|
2516
|
+
return Gr(t, n, r, i);
|
|
2517
|
+
}
|
|
2518
|
+
return qr;
|
|
2519
|
+
}
|
|
2520
|
+
return typeof e == "string" ? e === "linear" ? qr : Gr(...Jr[e] ?? Jr.ease) : Gr(...Jr.ease);
|
|
2521
|
+
}, Zr = 1e4, Qr = {
|
|
2522
|
+
low: .6,
|
|
2523
|
+
high: 2.5
|
|
2524
|
+
}, $r = /* @__PURE__ */ new Map(), ei = () => typeof document > "u" ? "" : document.fonts?.status ?? "", ti = (e) => {
|
|
2525
|
+
let t = `${e.style}|${e.weight}|${e.family}|${ei()}`, n = $r.get(t);
|
|
2526
|
+
if (n !== void 0) return n;
|
|
2527
|
+
let r = ii(t, e);
|
|
2528
|
+
return $r.set(t, r), r;
|
|
2529
|
+
}, ni, ri = () => (ni === void 0 &&
|
|
2530
|
+
/* v8 ignore next 3 -- SSR, and a host with no canvas: neither has a line
|
|
2531
|
+
box to correct in the first place. */
|
|
2532
|
+
(ni = typeof document > "u" || typeof document.createElement != "function" ? null : document.createElement("canvas")), ni ? ni.getContext("2d") : null), ii = (e, t) => {
|
|
2533
|
+
let n = ri();
|
|
2534
|
+
if (!n) return null;
|
|
2535
|
+
try {
|
|
2536
|
+
n.font = `${t.style} ${t.weight} ${Zr}px ${t.family}`;
|
|
2537
|
+
let e = n.measureText(""), r = e.fontBoundingBoxAscent, i = e.fontBoundingBoxDescent;
|
|
2538
|
+
if (typeof r != "number" || typeof i != "number" || !(r > 0) || !(i >= 0)) return null;
|
|
2539
|
+
let a = {
|
|
2540
|
+
ascent: r / Zr,
|
|
2541
|
+
descent: i / Zr
|
|
2542
|
+
}, o = a.ascent + a.descent;
|
|
2543
|
+
return o < Qr.low || o > Qr.high ? null : a;
|
|
2544
|
+
} catch {
|
|
2545
|
+
return $r.set(e, null), null;
|
|
2546
|
+
}
|
|
2547
|
+
}, ai = () => {
|
|
2548
|
+
/* v8 ignore next -- SSR: nothing is rendered, so nothing is on a grid. */
|
|
2549
|
+
let e = typeof window > "u" ? 1 : window.devicePixelRatio;
|
|
2550
|
+
return typeof e == "number" && e > 1 ? [1, e] : [1];
|
|
2551
|
+
}, oi = (e, t, n) => {
|
|
2552
|
+
let r = ri();
|
|
2553
|
+
if (!r) return null;
|
|
2554
|
+
try {
|
|
2555
|
+
r.font = `${t.style} ${t.weight} ${e * n}px ${t.family}`;
|
|
2556
|
+
let i = r.measureText(""), a = i.fontBoundingBoxAscent, o = i.fontBoundingBoxDescent;
|
|
2557
|
+
return typeof a != "number" || typeof o != "number" ? null : {
|
|
2558
|
+
ascent: a / n,
|
|
2559
|
+
descent: o / n
|
|
2560
|
+
};
|
|
2561
|
+
} catch {
|
|
2562
|
+
return null;
|
|
2563
|
+
}
|
|
2564
|
+
}, si = (e, t, n, r) => {
|
|
2565
|
+
let i = Math.min(e, t), a = Math.max(e, t), o = [];
|
|
2566
|
+
for (let e of [n.ascent, n.descent]) {
|
|
2567
|
+
let t = e * r;
|
|
2568
|
+
/* v8 ignore next -- a grid with no size to it enumerates nothing. */
|
|
2569
|
+
if (!(t > 0)) continue;
|
|
2570
|
+
let n = Math.ceil(i * t - .5);
|
|
2571
|
+
for (let e = 0; e < 4096; e += 1) {
|
|
2572
|
+
let e = (n + .5) / t;
|
|
2573
|
+
if (e > a) break;
|
|
2574
|
+
e > i && o.push(e), n += 1;
|
|
2575
|
+
}
|
|
2576
|
+
}
|
|
2577
|
+
return o.sort((e, t) => e - t), e <= t ? o : o.reverse();
|
|
2578
|
+
}, ci = (e, t) => li(e, t), li = (e, t) => e.ascent === t.ascent && e.descent === t.descent, ui = {
|
|
2579
|
+
whiteSpace: "nowrap",
|
|
2580
|
+
overflow: "hidden",
|
|
2581
|
+
textOverflow: "ellipsis"
|
|
2582
|
+
}, di = (e) => {
|
|
2583
|
+
e.style.whiteSpace = ui.whiteSpace, e.style.overflow = ui.overflow, e.style.textOverflow = ui.textOverflow;
|
|
2584
|
+
}, fi = (e, t) => e && t, pi = () => {
|
|
2585
|
+
/* v8 ignore next -- SSR: nothing is rendered, so nothing is on a grid. */
|
|
2586
|
+
let e = typeof window > "u" ? 1 : window.devicePixelRatio, t = typeof e == "number" && e > 0 ? 1 / e : 1;
|
|
2587
|
+
return t === 1 ? [1] : [1, t];
|
|
2588
|
+
}, mi = (e, t) => Math.floor(e / t + 1e-6) * t, hi = .001, gi = (e, t) => {
|
|
2589
|
+
let n = (e) => e.lineHeight === null || e.textHeight === null ? null : (e.lineHeight - e.textHeight) / 2, r = [n(e), n(t)];
|
|
2590
|
+
if (r[0] === null || r[1] === null || e.leadOffset === null || t.leadOffset === null) return 0;
|
|
2591
|
+
let i = pi().find((n) => Math.abs(mi(r[0], n) - e.leadOffset) < hi && Math.abs(mi(r[1], n) - t.leadOffset) < hi);
|
|
2592
|
+
if (i === void 0) return 0;
|
|
2593
|
+
let a = Math.min(r[0], r[1]), o = Math.max(r[0], r[1]);
|
|
2594
|
+
return o - a >= i ? 0 : (t.leadOffset + i / 2 - (a + o) / 2) * 2;
|
|
2595
|
+
}, _i = 1e-6, vi = .001, yi = /* @__PURE__ */ new Map(), bi = (e, t, n, r) => {
|
|
2596
|
+
if (!n || e.fontSize === null || t.fontSize === null || e.lineHeight === null || t.lineHeight === null || e.textHeight === null || t.textHeight === null || Math.abs(e.fontSize - t.fontSize) < _i) return null;
|
|
2597
|
+
let i = `${n.style}|${n.weight}|${n.family}|${e.fontSize}|${t.fontSize}|${e.lineHeight}|${t.lineHeight}|${e.textHeight}|${t.textHeight}|${JSON.stringify(r ?? null)}`, a = yi.get(i);
|
|
2598
|
+
if (a !== void 0) return a;
|
|
2599
|
+
let o = xi(e, t, n, r);
|
|
2600
|
+
return yi.set(i, o), o;
|
|
2601
|
+
}, xi = (e, t, n, r) => {
|
|
2602
|
+
let i = ti(n);
|
|
2603
|
+
if (!i) return null;
|
|
2604
|
+
let a = null;
|
|
2605
|
+
for (let r of ai()) {
|
|
2606
|
+
let i = oi(e.fontSize, n, r), o = oi(t.fontSize, n, r);
|
|
2607
|
+
if (i !== null && o !== null && !(!Si(i, e.textHeight) || !Si(o, t.textHeight))) {
|
|
2608
|
+
a = {
|
|
2609
|
+
scale: r,
|
|
2610
|
+
ends: [i, o]
|
|
2611
|
+
};
|
|
2612
|
+
break;
|
|
2613
|
+
}
|
|
2614
|
+
}
|
|
2615
|
+
if (a === null) return null;
|
|
2616
|
+
let { scale: o, ends: s } = a, c = t.lineHeight - t.textHeight, l = Kr(r), u = Xr(r), d = t.fontSize - e.fontSize, f = (t) => oi(e.fontSize + d * u(t), n, o), p = [{
|
|
2617
|
+
at: 0,
|
|
2618
|
+
lineHeight: e.textHeight + c,
|
|
2619
|
+
ascent: s[0].ascent
|
|
2620
|
+
}], m = si(e.fontSize, t.fontSize, i, o).map((t) => l((t - e.fontSize) / d)), h = 0;
|
|
2621
|
+
for (let e = 0; e < m.length; e += 1) {
|
|
2622
|
+
let t = m[e], n = e > 0 ? (m[e - 1] + t) / 2 : 0, r = e < m.length - 1 ? (t + m[e + 1]) / 2 : 1, i = Ci(Math.max(h, n), r, f);
|
|
2623
|
+
if (i === null) continue;
|
|
2624
|
+
let a = f(i);
|
|
2625
|
+
a !== null && (h = i, p.push({
|
|
2626
|
+
at: i * 100,
|
|
2627
|
+
lineHeight: a.ascent + a.descent + c,
|
|
2628
|
+
ascent: a.ascent
|
|
2629
|
+
}));
|
|
2630
|
+
}
|
|
2631
|
+
return p.push({
|
|
2632
|
+
at: 100,
|
|
2633
|
+
lineHeight: t.lineHeight,
|
|
2634
|
+
ascent: s[1].ascent
|
|
2635
|
+
}), p.length > 2 ? p : null;
|
|
2636
|
+
}, Si = (e, t) => Math.abs(e.ascent + e.descent - t) < _i, Ci = (e, t, n) => {
|
|
2637
|
+
let r = Math.max(0, e), i = Math.max(r, Math.min(1, t)), a = n(r), o = n(i);
|
|
2638
|
+
if (a === null || o === null || ci(a, o)) return null;
|
|
2639
|
+
for (; i - r > vi;) {
|
|
2640
|
+
let e = (r + i) / 2, t = n(e);
|
|
2641
|
+
/* v8 ignore next -- the guard above already refused a face with no metrics. */
|
|
2642
|
+
if (t === null) return null;
|
|
2643
|
+
ci(t, a) ? r = e : i = e;
|
|
2644
|
+
}
|
|
2645
|
+
return i;
|
|
2646
|
+
}, wi = () => {
|
|
2339
2647
|
if (p()) return null;
|
|
2340
|
-
let e = document.head.querySelector(`style[${
|
|
2341
|
-
return e || (e = document.createElement("style"), e.setAttribute(
|
|
2342
|
-
},
|
|
2343
|
-
let t =
|
|
2648
|
+
let e = document.head.querySelector(`style[${Pt}]`);
|
|
2649
|
+
return e || (e = document.createElement("style"), e.setAttribute(Pt, ""), document.head.appendChild(e)), e.sheet;
|
|
2650
|
+
}, Ti = (e) => {
|
|
2651
|
+
let t = wi();
|
|
2344
2652
|
if (!t) return () => {};
|
|
2345
2653
|
let n = [];
|
|
2346
2654
|
for (let r of e) try {
|
|
@@ -2354,74 +2662,87 @@ var en = (e) => e !== "" && e !== "visible", tn = (e) => {
|
|
|
2354
2662
|
}
|
|
2355
2663
|
n.length = 0;
|
|
2356
2664
|
};
|
|
2357
|
-
},
|
|
2358
|
-
|
|
2665
|
+
}, Ei = /* @__PURE__ */ new WeakMap(), Di = () => {
|
|
2666
|
+
let e = wi();
|
|
2667
|
+
/* v8 ignore next -- no document to register into. */
|
|
2668
|
+
if (!e) return !1;
|
|
2669
|
+
let t = Ei.get(e);
|
|
2670
|
+
if (t !== void 0) return t;
|
|
2671
|
+
let n = !0;
|
|
2672
|
+
for (let t of Tn) try {
|
|
2673
|
+
e.insertRule(t, e.cssRules.length);
|
|
2674
|
+
} catch {
|
|
2675
|
+
n = !1;
|
|
2676
|
+
}
|
|
2677
|
+
return Ei.set(e, n), n;
|
|
2678
|
+
}, Oi = 1e3 / 60, ki = 1e3 / 600, Ai = 42, ji = Oi, Mi = () => ji, Ni = (e) => {
|
|
2679
|
+
Number.isFinite(e) && (e < ki || e > Ai || (ji = Math.min(Oi, Math.max(ki, e))));
|
|
2359
2680
|
}, Z = () => {
|
|
2360
2681
|
if (typeof navigator > "u") return !1;
|
|
2361
2682
|
let e = navigator.userAgentData?.brands;
|
|
2362
2683
|
if (Array.isArray(e)) return e.some((e) => /chromium/i.test(e?.brand ?? ""));
|
|
2363
2684
|
let t = navigator.userAgent ?? "";
|
|
2364
2685
|
return /Android/i.test(t) && !/Firefox|FxiOS/i.test(t);
|
|
2365
|
-
},
|
|
2686
|
+
}, Pi = 90, Fi = () => {
|
|
2366
2687
|
if (typeof navigator > "u") return !1;
|
|
2367
2688
|
let e = navigator.userAgentData?.brands;
|
|
2368
2689
|
if (Array.isArray(e)) return !1;
|
|
2369
2690
|
let t = navigator.userAgent ?? "";
|
|
2370
|
-
return !/Android/i.test(t) || /Firefox|FxiOS/i.test(t) || (navigator.maxTouchPoints ?? 0) <= 0 ? !1 : Number(/Chrom(?:e|ium)\/(\d+)/i.exec(t)?.[1] ?? 0) <
|
|
2371
|
-
},
|
|
2372
|
-
if (!(!Number.isFinite(e) || e <= 0) &&
|
|
2691
|
+
return !/Android/i.test(t) || /Firefox|FxiOS/i.test(t) || (navigator.maxTouchPoints ?? 0) <= 0 ? !1 : Number(/Chrom(?:e|ium)\/(\d+)/i.exec(t)?.[1] ?? 0) < Pi;
|
|
2692
|
+
}, Ii = () => typeof navigator > "u" ? !1 : !Z() && navigator.maxTouchPoints === 0 && /Mac/.test(navigator.platform), Li = () => Z() && typeof navigator < "u" && navigator.maxTouchPoints === 0, Ri = 14, zi = 22, Bi = 2, Vi = 1.5, Hi = !1, Ui = 0, Wi = () => typeof navigator > "u" || (navigator.maxTouchPoints ?? 0) === 0, Gi = (e, t) => {
|
|
2693
|
+
if (!(!Number.isFinite(e) || e <= 0) && Wi()) {
|
|
2373
2694
|
if (e < 12) {
|
|
2374
2695
|
if (t !== void 0 && t > 24) return;
|
|
2375
|
-
|
|
2696
|
+
Hi = !0, Ui = 0;
|
|
2376
2697
|
return;
|
|
2377
2698
|
}
|
|
2378
|
-
if (e >=
|
|
2379
|
-
|
|
2699
|
+
if (e >= Ri && e <= zi) {
|
|
2700
|
+
Ui = Math.min(Bi, Ui + 1);
|
|
2380
2701
|
return;
|
|
2381
2702
|
}
|
|
2382
|
-
e <
|
|
2703
|
+
e < Ri && (Ui = 0);
|
|
2383
2704
|
}
|
|
2384
|
-
},
|
|
2705
|
+
}, Ki = () => !Hi && Ui >= Bi, qi = () => Ki() && Z() && typeof navigator < "u" && navigator.maxTouchPoints === 0 && typeof window < "u" && window.devicePixelRatio >= Vi, Ji = () => {}, Yi = null, Xi = () => {
|
|
2385
2706
|
/* v8 ignore next 2 -- the loop only runs where rAF existed to start it; the
|
|
2386
2707
|
re-check covers an environment that removes it mid-session. */
|
|
2387
|
-
|
|
2388
|
-
},
|
|
2389
|
-
|
|
2390
|
-
},
|
|
2391
|
-
if (
|
|
2392
|
-
|
|
2393
|
-
let e =
|
|
2394
|
-
if (e !==
|
|
2395
|
-
if (r !== null && (n > 0 ? --n : t.push(a - r)), r = a, t.length <
|
|
2708
|
+
Yi = typeof requestAnimationFrame == "function" ? requestAnimationFrame(Xi) : null;
|
|
2709
|
+
}, Zi = () => (Yi === null && typeof requestAnimationFrame == "function" && (Yi = requestAnimationFrame(Xi)), Ji), Qi = !1, $i = 0, ea = () => {
|
|
2710
|
+
Qi &&= ($i += 1, !1);
|
|
2711
|
+
}, ta = 2, na = 8, ra = () => {
|
|
2712
|
+
if (Qi || typeof requestAnimationFrame != "function") return;
|
|
2713
|
+
Qi = !0;
|
|
2714
|
+
let e = ++$i, t = [], n = ta, r = null, i = (a) => {
|
|
2715
|
+
if (e !== $i) return;
|
|
2716
|
+
if (r !== null && (n > 0 ? --n : t.push(a - r)), r = a, t.length < na) {
|
|
2396
2717
|
requestAnimationFrame(i);
|
|
2397
2718
|
return;
|
|
2398
2719
|
}
|
|
2399
|
-
|
|
2720
|
+
Qi = !1;
|
|
2400
2721
|
let o = [...t].sort((e, t) => e - t), s = o[Math.floor(o.length / 2)];
|
|
2401
|
-
|
|
2722
|
+
Ni(s), Gi(s, o[o.length - 1]);
|
|
2402
2723
|
};
|
|
2403
2724
|
requestAnimationFrame(i);
|
|
2404
|
-
},
|
|
2405
|
-
let t = !Z(), n =
|
|
2725
|
+
}, ia = () => !Z() && typeof navigator < "u" && navigator.maxTouchPoints > 0, aa = () => Z() && navigator.maxTouchPoints > 0, oa = () => ia() || qi() || aa() || Ii(), sa = (e = {}) => {
|
|
2726
|
+
let t = !Z(), n = ia();
|
|
2406
2727
|
return {
|
|
2407
2728
|
mainThreadPresented: t,
|
|
2408
|
-
atomicReleaseFlip: t && (e.authoredNativeDriver === !0 || n ||
|
|
2729
|
+
atomicReleaseFlip: t && (e.authoredNativeDriver === !0 || n || Ii()),
|
|
2409
2730
|
deferReleaseCommit: n,
|
|
2410
|
-
renderSettleGate:
|
|
2731
|
+
renderSettleGate: oa(),
|
|
2411
2732
|
parkOver: n,
|
|
2412
2733
|
imageDecodeOffload: typeof navigator < "u"
|
|
2413
2734
|
};
|
|
2414
|
-
},
|
|
2415
|
-
let t = Z(), n =
|
|
2735
|
+
}, ca = () => typeof navigator < "u" && navigator.maxTouchPoints > 0, la = (e) => {
|
|
2736
|
+
let t = Z(), n = ca(), r = !t && n && ia(), i = t && n && Fi(), a = !t && n && (e === "POPPING" || e === "PUSHING" && oa()), o = r || i || a, s = Ii();
|
|
2416
2737
|
return {
|
|
2417
2738
|
touchGoverned: r,
|
|
2418
2739
|
forceCompiled: a,
|
|
2419
2740
|
governedHead: o,
|
|
2420
2741
|
desktopHead: s,
|
|
2421
|
-
headMs: o ?
|
|
2742
|
+
headMs: o ? Fr[e] ?? 0 : s ? Pr[e] ?? 0 : 0
|
|
2422
2743
|
};
|
|
2423
|
-
},
|
|
2424
|
-
let { status: t, transition: n, skipAnimation: r, hasActiveMotion: i, hasAnimation: a } = e, o = Z(), { touchGoverned: s, forceCompiled: c, governedHead: l, desktopHead: u, headMs: d } =
|
|
2744
|
+
}, ua = (e) => {
|
|
2745
|
+
let { status: t, transition: n, skipAnimation: r, hasActiveMotion: i, hasAnimation: a } = e, o = Z(), { touchGoverned: s, forceCompiled: c, governedHead: l, desktopHead: u, headMs: d } = la(t);
|
|
2425
2746
|
return {
|
|
2426
2747
|
hasDrivableMotion: !r && i,
|
|
2427
2748
|
nativeSurgeryAllowed: n.driver === "native" && !o,
|
|
@@ -2431,22 +2752,22 @@ var en = (e) => e !== "" && e !== "visible", tn = (e) => {
|
|
|
2431
2752
|
desktopHead: u,
|
|
2432
2753
|
birthHoldMs: d,
|
|
2433
2754
|
governedSlide: s && (t === "PUSHING" || t === "POPPING"),
|
|
2434
|
-
framePacingKeepalive: a && o && (typeof navigator < "u" && navigator.maxTouchPoints === 0 ||
|
|
2435
|
-
creepHead: l &&
|
|
2755
|
+
framePacingKeepalive: a && o && (typeof navigator < "u" && navigator.maxTouchPoints === 0 || Mi() < 12),
|
|
2756
|
+
creepHead: l && ia()
|
|
2436
2757
|
};
|
|
2437
|
-
},
|
|
2758
|
+
}, da = [
|
|
2438
2759
|
"x",
|
|
2439
2760
|
"y",
|
|
2440
2761
|
"scale",
|
|
2441
2762
|
"scaleX",
|
|
2442
2763
|
"scaleY",
|
|
2443
2764
|
"rotate"
|
|
2444
|
-
],
|
|
2765
|
+
], fa = (e) => !!e && da.some((t) => e[t] !== void 0 && e[t] !== 0), pa = (e) => {
|
|
2445
2766
|
if (p()) return 0;
|
|
2446
|
-
let { governedHead: t, headMs: n } =
|
|
2767
|
+
let { governedHead: t, headMs: n } = la(e);
|
|
2447
2768
|
return t ? n * 2 / 1e3 : n / 1e3;
|
|
2448
|
-
},
|
|
2449
|
-
let r =
|
|
2769
|
+
}, ma = (e, t, n) => {
|
|
2770
|
+
let r = Rn(e), i = {
|
|
2450
2771
|
rect: r.rect,
|
|
2451
2772
|
fontSize: r.fontSize,
|
|
2452
2773
|
fontWeight: r.fontWeight,
|
|
@@ -2457,6 +2778,9 @@ var en = (e) => e !== "" && e !== "visible", tn = (e) => {
|
|
|
2457
2778
|
padding: r.padding,
|
|
2458
2779
|
margin: r.margin,
|
|
2459
2780
|
paint: r.paint,
|
|
2781
|
+
singleLine: r.singleLine,
|
|
2782
|
+
textHeight: r.textHeight,
|
|
2783
|
+
leadOffset: r.leadOffset,
|
|
2460
2784
|
screenMoves: !1,
|
|
2461
2785
|
screenDuration: 0,
|
|
2462
2786
|
screenEase: void 0
|
|
@@ -2464,14 +2788,14 @@ var en = (e) => e !== "" && e !== "visible", tn = (e) => {
|
|
|
2464
2788
|
if (!o) return i;
|
|
2465
2789
|
let s = H(o, n);
|
|
2466
2790
|
if (!s) return i;
|
|
2467
|
-
let c =
|
|
2791
|
+
let c = Hn(t), l = t.getBoundingClientRect(), u = Un({
|
|
2468
2792
|
x: l.left,
|
|
2469
2793
|
y: l.top,
|
|
2470
2794
|
width: l.width,
|
|
2471
2795
|
height: l.height
|
|
2472
2796
|
}, c);
|
|
2473
2797
|
return {
|
|
2474
|
-
rect:
|
|
2798
|
+
rect: zn(r.rect, c, u),
|
|
2475
2799
|
fontSize: r.fontSize,
|
|
2476
2800
|
fontWeight: r.fontWeight,
|
|
2477
2801
|
letterSpacing: r.letterSpacing,
|
|
@@ -2481,11 +2805,14 @@ var en = (e) => e !== "" && e !== "visible", tn = (e) => {
|
|
|
2481
2805
|
padding: r.padding,
|
|
2482
2806
|
margin: r.margin,
|
|
2483
2807
|
paint: r.paint,
|
|
2484
|
-
|
|
2808
|
+
singleLine: r.singleLine,
|
|
2809
|
+
textHeight: r.textHeight,
|
|
2810
|
+
leadOffset: r.leadOffset,
|
|
2811
|
+
screenMoves: fa(s.from) || fa(s.to),
|
|
2485
2812
|
screenDuration: s.duration,
|
|
2486
2813
|
screenEase: s.ease
|
|
2487
2814
|
};
|
|
2488
|
-
},
|
|
2815
|
+
}, ha = /* @__PURE__ */ new WeakMap(), ga = 0, _a = G(it), va = [
|
|
2489
2816
|
"color",
|
|
2490
2817
|
"font",
|
|
2491
2818
|
"letterSpacing",
|
|
@@ -2494,30 +2821,41 @@ var en = (e) => e !== "" && e !== "visible", tn = (e) => {
|
|
|
2494
2821
|
"textTransform",
|
|
2495
2822
|
"whiteSpace",
|
|
2496
2823
|
"direction"
|
|
2497
|
-
],
|
|
2824
|
+
], ya = (e, t) => {
|
|
2498
2825
|
if (t !== "lineHeight") return e[t];
|
|
2499
2826
|
let n = e.lineHeight ?? "", r = Number.parseFloat(n), i = Number.parseFloat(e.fontSize ?? "");
|
|
2500
2827
|
return !n.endsWith("px") || !Number.isFinite(r) || !Number.isFinite(i) || i <= 0 ? n : String(Math.round(r / i * 1e4) / 1e4);
|
|
2501
|
-
},
|
|
2828
|
+
}, ba = (e) => F.includes(e), xa = (e) => e.closest(_a), Sa = (e) => e === "POPPING" ? "false" : "true", Ca = (e, t) => e.getAttribute(ot) === Sa(t), wa = (e) => e === "POPPING" ? {
|
|
2502
2829
|
enter: "POPPING-false",
|
|
2503
2830
|
exit: "POPPING-true"
|
|
2504
2831
|
} : {
|
|
2505
2832
|
enter: `${e}-true`,
|
|
2506
2833
|
exit: `${e}-false`
|
|
2507
|
-
},
|
|
2834
|
+
}, Ta = (e) => e < 0 ? 0 : e > 1 ? 1 : e, Ea = (e, t, n) => e !== null && t !== null && Math.abs(e - t) >= n ? {
|
|
2508
2835
|
from: e,
|
|
2509
2836
|
to: t
|
|
2510
|
-
} : null,
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
2837
|
+
} : null, Da = (e, t, n, r) => {
|
|
2838
|
+
let i = Ea(e.fontSize, t.fontSize, .5), a = Ea(e.lineHeight, t.lineHeight, .25), o = i ? bi(e, t, n, r) : null, s = o === null && (i || a) ? gi(e, t) : 0;
|
|
2839
|
+
return {
|
|
2840
|
+
fontSize: i,
|
|
2841
|
+
leading: o,
|
|
2842
|
+
fontWeight: Ea(e.fontWeight, t.fontWeight, 1),
|
|
2843
|
+
letterSpacing: Ea(e.letterSpacing, t.letterSpacing, .01),
|
|
2844
|
+
wordSpacing: Ea(e.wordSpacing, t.wordSpacing, .01),
|
|
2845
|
+
lift: o,
|
|
2846
|
+
lineHeight: a ? {
|
|
2847
|
+
from: a.from + s,
|
|
2848
|
+
to: a.to + s
|
|
2849
|
+
} : s !== 0 && t.lineHeight !== null ? {
|
|
2850
|
+
from: t.lineHeight + s,
|
|
2851
|
+
to: t.lineHeight + s
|
|
2852
|
+
} : null
|
|
2853
|
+
};
|
|
2854
|
+
}, Oa = 1 / 60, ka = .4, Aa = (e) => {
|
|
2517
2855
|
let t = 0, n = e;
|
|
2518
2856
|
for (; n;) n.hasAttribute("data-flemo-morph") && (t += 1), n = n.parentElement;
|
|
2519
2857
|
return t;
|
|
2520
|
-
},
|
|
2858
|
+
}, ja = (e, t) => {
|
|
2521
2859
|
let n = nt[t];
|
|
2522
2860
|
if (n === "self") return null;
|
|
2523
2861
|
let r = e.variants[t];
|
|
@@ -2526,39 +2864,39 @@ var en = (e) => e !== "" && e !== "visible", tn = (e) => {
|
|
|
2526
2864
|
to: r.value,
|
|
2527
2865
|
options: r.options
|
|
2528
2866
|
};
|
|
2529
|
-
},
|
|
2867
|
+
}, Ma = (e) => {
|
|
2530
2868
|
e.style.pointerEvents = "none", e.style.zIndex = "2147483000";
|
|
2531
|
-
},
|
|
2869
|
+
}, Na = {
|
|
2532
2870
|
left: 0,
|
|
2533
2871
|
top: 0,
|
|
2534
2872
|
center: .5,
|
|
2535
2873
|
right: 1,
|
|
2536
2874
|
bottom: 1
|
|
2537
|
-
},
|
|
2875
|
+
}, Pa = (e, t) => {
|
|
2538
2876
|
if (!e) return t / 2;
|
|
2539
|
-
let n =
|
|
2877
|
+
let n = Na[e];
|
|
2540
2878
|
if (n !== void 0) return n * t;
|
|
2541
2879
|
let r = Number.parseFloat(e);
|
|
2542
2880
|
return Number.isFinite(r) ? e.endsWith("%") ? r / 100 * t : r : t / 2;
|
|
2543
|
-
},
|
|
2881
|
+
}, Fa = (e, t) => {
|
|
2544
2882
|
let n = e.getBoundingClientRect(), r = {
|
|
2545
2883
|
x: n.left,
|
|
2546
2884
|
y: n.top,
|
|
2547
2885
|
width: n.width,
|
|
2548
2886
|
height: n.height
|
|
2549
|
-
}, i =
|
|
2887
|
+
}, i = Hn(e), a = Yt(zn(r, i, Un(r, i)), t), o = ((typeof getComputedStyle == "function" ? getComputedStyle(e) : null)?.transformOrigin ?? "").trim().split(/\s+/);
|
|
2550
2888
|
return {
|
|
2551
|
-
x: a.x +
|
|
2552
|
-
y: a.y +
|
|
2889
|
+
x: a.x + Pa(o[0], a.width),
|
|
2890
|
+
y: a.y + Pa(o[1], a.height)
|
|
2553
2891
|
};
|
|
2554
|
-
},
|
|
2892
|
+
}, Ia = (e, t, n, r, i, a, o) => {
|
|
2555
2893
|
let s = et.get(t.name) ?? et.get("shared");
|
|
2556
2894
|
if (!s) return;
|
|
2557
|
-
let { enter: c, exit: l } =
|
|
2895
|
+
let { enter: c, exit: l } = wa(r), u = ja(s, c);
|
|
2558
2896
|
if (!u) return;
|
|
2559
2897
|
e.residue.get(t.element)?.(), e.residue.get(n.element)?.();
|
|
2560
|
-
let d = i ?
|
|
2561
|
-
let e =
|
|
2898
|
+
let d = i ? ma(t.element, i, c) : (() => {
|
|
2899
|
+
let e = Rn(t.element);
|
|
2562
2900
|
return {
|
|
2563
2901
|
rect: e.rect,
|
|
2564
2902
|
fontSize: e.fontSize,
|
|
@@ -2570,25 +2908,35 @@ var en = (e) => e !== "" && e !== "visible", tn = (e) => {
|
|
|
2570
2908
|
padding: e.padding,
|
|
2571
2909
|
margin: e.margin,
|
|
2572
2910
|
paint: e.paint,
|
|
2911
|
+
singleLine: e.singleLine,
|
|
2912
|
+
textHeight: e.textHeight,
|
|
2913
|
+
leadOffset: e.leadOffset,
|
|
2573
2914
|
screenMoves: !1,
|
|
2574
2915
|
screenDuration: o.duration,
|
|
2575
2916
|
screenEase: o.ease
|
|
2576
2917
|
};
|
|
2577
2918
|
})();
|
|
2578
2919
|
if (d.rect.width <= 0 || d.rect.height <= 0 || n.snapshot.rect.width <= 0 || n.snapshot.rect.height <= 0) return;
|
|
2579
|
-
let f =
|
|
2920
|
+
let f = Wr(a), p = t.element.parentElement;
|
|
2580
2921
|
/* v8 ignore next 4 -- neither is reachable from a browser: the layer falls
|
|
2581
2922
|
back to a document-level element when a binding publishes none, and a
|
|
2582
2923
|
registered element that reached the pairing is in the tree. The guard is
|
|
2583
2924
|
for SSR and for a binding that registers a detached node. */
|
|
2584
2925
|
if (!f || !p) return;
|
|
2585
|
-
let m = u.options.duration ?? d.screenDuration, h = o ? o.duration : m > 0 ? m :
|
|
2586
|
-
|
|
2587
|
-
let v =
|
|
2926
|
+
let m = u.options.duration ?? d.screenDuration, h = o ? o.duration : m > 0 ? m : ka, g = d.screenMoves && d.screenEase ? d.screenEase : u.options.ease ?? d.screenEase, _ = o ? o.start : (u.options.delay ?? 0) + pa(r);
|
|
2927
|
+
Ma(f);
|
|
2928
|
+
let v = Yt(d.rect, f), y = Yt(n.snapshot.rect, f), b = {
|
|
2588
2929
|
width: v.width,
|
|
2589
2930
|
height: v.height
|
|
2590
|
-
}, x =
|
|
2591
|
-
|
|
2931
|
+
}, x = t.element.firstElementChild === null && t.restSize ? Mn(t.restSize.height, d.lineHeight, d.fontSize) : d.singleLine, S = Ta(s.crossFade ?? .55), C = typeof getComputedStyle == "function" ? (() => {
|
|
2932
|
+
let e = getComputedStyle(t.element);
|
|
2933
|
+
return e.fontFamily ? {
|
|
2934
|
+
family: e.fontFamily,
|
|
2935
|
+
weight: e.fontWeight,
|
|
2936
|
+
style: e.fontStyle
|
|
2937
|
+
} : null;
|
|
2938
|
+
})() : null, w = Da(n.snapshot, d, C, g), T = dn(n.snapshot.paint, d.paint, s.radius === !1 ? /* @__PURE__ */ new Set(["border-radius"]) : void 0), E = T.find((e) => e.property === "border-radius");
|
|
2939
|
+
if (E) {
|
|
2592
2940
|
let e = (e) => {
|
|
2593
2941
|
if (e.includes("/")) return null;
|
|
2594
2942
|
let t = e.trim().split(/\s+/), n = [];
|
|
@@ -2598,18 +2946,18 @@ var en = (e) => e !== "" && e !== "visible", tn = (e) => {
|
|
|
2598
2946
|
n.push(Number(t[1]));
|
|
2599
2947
|
}
|
|
2600
2948
|
return n;
|
|
2601
|
-
}, t = (e) => e.width > 0 && e.height > 0 && Math.abs(e.width / e.height - 1) <= .1, r = e(
|
|
2949
|
+
}, t = (e) => e.width > 0 && e.height > 0 && Math.abs(e.width / e.height - 1) <= .1, r = e(E.from), i = e(E.to);
|
|
2602
2950
|
if (r && i && t(n.snapshot.rect) && t(d.rect)) {
|
|
2603
2951
|
let e = (e, t) => e.map((e) => `${(e / t * 100).toFixed(2)}%`).join(" ");
|
|
2604
|
-
|
|
2952
|
+
E.from = e(r, n.snapshot.rect.width), E.to = e(i, d.rect.width);
|
|
2605
2953
|
}
|
|
2606
2954
|
}
|
|
2607
|
-
let
|
|
2608
|
-
id: `${
|
|
2955
|
+
let D = on(rn(n.element), rn(t.element)), O = `${ga += 1}`, k = Di(), A = Br({
|
|
2956
|
+
id: `${O}i`,
|
|
2609
2957
|
travel: {
|
|
2610
|
-
from:
|
|
2611
|
-
authoredFrom:
|
|
2612
|
-
authoredTo:
|
|
2958
|
+
from: q,
|
|
2959
|
+
authoredFrom: hn(u.from, b) ?? q,
|
|
2960
|
+
authoredTo: hn(u.to, b) ?? q,
|
|
2613
2961
|
duration: h,
|
|
2614
2962
|
start: _,
|
|
2615
2963
|
ease: g
|
|
@@ -2618,36 +2966,39 @@ var en = (e) => e !== "" && e !== "visible", tn = (e) => {
|
|
|
2618
2966
|
from: y,
|
|
2619
2967
|
to: v
|
|
2620
2968
|
},
|
|
2621
|
-
clip:
|
|
2969
|
+
clip: D,
|
|
2622
2970
|
padding: n.snapshot.padding === d.padding ? null : {
|
|
2623
2971
|
from: n.snapshot.padding,
|
|
2624
2972
|
to: d.padding
|
|
2625
2973
|
},
|
|
2626
|
-
fontSize:
|
|
2627
|
-
fontWeight:
|
|
2628
|
-
letterSpacing:
|
|
2629
|
-
wordSpacing:
|
|
2630
|
-
lineHeight:
|
|
2631
|
-
|
|
2974
|
+
fontSize: w.fontSize,
|
|
2975
|
+
fontWeight: w.fontWeight,
|
|
2976
|
+
letterSpacing: w.letterSpacing,
|
|
2977
|
+
wordSpacing: w.wordSpacing,
|
|
2978
|
+
lineHeight: w.lineHeight,
|
|
2979
|
+
leading: w.leading,
|
|
2980
|
+
lift: w.lift,
|
|
2981
|
+
travelPinned: k,
|
|
2982
|
+
fade: zr(u.from).length > 0 ? {
|
|
2632
2983
|
from: u.from,
|
|
2633
2984
|
to: u.to,
|
|
2634
|
-
duration: h *
|
|
2985
|
+
duration: h * S
|
|
2635
2986
|
} : null,
|
|
2636
|
-
paint:
|
|
2637
|
-
}),
|
|
2638
|
-
id: `${
|
|
2987
|
+
paint: T
|
|
2988
|
+
}), j = !A.geometryAccelerated && Di(), M = n.element, ee = ja(s, l), N = M.isConnected && M !== t.element && ee ? Br({
|
|
2989
|
+
id: `${O}o`,
|
|
2639
2990
|
travel: {
|
|
2640
|
-
from:
|
|
2641
|
-
authoredFrom:
|
|
2642
|
-
authoredTo:
|
|
2991
|
+
from: q,
|
|
2992
|
+
authoredFrom: q,
|
|
2993
|
+
authoredTo: q,
|
|
2643
2994
|
duration: h,
|
|
2644
2995
|
start: _,
|
|
2645
2996
|
ease: g
|
|
2646
2997
|
},
|
|
2647
2998
|
fade: {
|
|
2648
|
-
from:
|
|
2649
|
-
to:
|
|
2650
|
-
duration:
|
|
2999
|
+
from: ee.to,
|
|
3000
|
+
to: ee.to,
|
|
3001
|
+
duration: Oa,
|
|
2651
3002
|
delay: 0
|
|
2652
3003
|
},
|
|
2653
3004
|
paint: []
|
|
@@ -2656,27 +3007,30 @@ var en = (e) => e !== "" && e !== "visible", tn = (e) => {
|
|
|
2656
3007
|
let r = n.snapshot.rect.x - d.rect.x, i = n.snapshot.rect.y - d.rect.y, a = Math.abs(r) >= .5 || Math.abs(i) >= .5, o = t.restSize ?? {
|
|
2657
3008
|
width: d.rect.width,
|
|
2658
3009
|
height: d.rect.height
|
|
2659
|
-
}, s = n.snapshot.rect.width - o.width, c = n.snapshot.rect.height - o.height, l =
|
|
2660
|
-
if (!u && !f && !p && !a && !l &&
|
|
2661
|
-
let m =
|
|
2662
|
-
id: `${
|
|
3010
|
+
}, s = n.snapshot.rect.width - o.width, c = n.snapshot.rect.height - o.height, l = w.fontSize === null && (Math.abs(s) >= 1 || Math.abs(c) >= 1), u = w.fontSize !== null || w.fontWeight !== null || w.letterSpacing !== null || w.wordSpacing !== null || w.lineHeight !== null, f = n.snapshot.aspectRatio !== null && d.aspectRatio !== null && n.snapshot.aspectRatio !== d.aspectRatio, p = n.snapshot.padding !== d.padding || n.snapshot.margin !== d.margin;
|
|
3011
|
+
if (!u && !f && !p && !a && !l && T.length === 0) return;
|
|
3012
|
+
let m = Br({
|
|
3013
|
+
id: `${O}n`,
|
|
2663
3014
|
travel: {
|
|
2664
3015
|
from: a ? {
|
|
2665
|
-
...
|
|
3016
|
+
...q,
|
|
2666
3017
|
x: r,
|
|
2667
3018
|
y: i
|
|
2668
|
-
} :
|
|
2669
|
-
authoredFrom:
|
|
2670
|
-
authoredTo:
|
|
3019
|
+
} : q,
|
|
3020
|
+
authoredFrom: q,
|
|
3021
|
+
authoredTo: q,
|
|
2671
3022
|
duration: h,
|
|
2672
3023
|
start: _,
|
|
2673
3024
|
ease: g
|
|
2674
3025
|
},
|
|
2675
|
-
fontSize:
|
|
2676
|
-
fontWeight:
|
|
2677
|
-
letterSpacing:
|
|
2678
|
-
wordSpacing:
|
|
2679
|
-
lineHeight:
|
|
3026
|
+
fontSize: w.fontSize,
|
|
3027
|
+
fontWeight: w.fontWeight,
|
|
3028
|
+
letterSpacing: w.letterSpacing,
|
|
3029
|
+
wordSpacing: w.wordSpacing,
|
|
3030
|
+
lineHeight: w.lineHeight,
|
|
3031
|
+
leading: w.leading,
|
|
3032
|
+
lift: w.lift,
|
|
3033
|
+
travelPinned: k,
|
|
2680
3034
|
aspectRatio: f ? {
|
|
2681
3035
|
from: n.snapshot.aspectRatio,
|
|
2682
3036
|
to: d.aspectRatio
|
|
@@ -2697,138 +3051,141 @@ var en = (e) => e !== "" && e !== "visible", tn = (e) => {
|
|
|
2697
3051
|
to: o
|
|
2698
3052
|
} : null,
|
|
2699
3053
|
fade: null,
|
|
2700
|
-
paint:
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
3054
|
+
paint: T,
|
|
3055
|
+
pinned: j
|
|
3056
|
+
}), v = Ti(m.rules), y = t.element.getAttribute("style");
|
|
3057
|
+
t.element.style.animation = m.animation, m.transform && (t.element.style.transform = m.transform), fi(n.snapshot.singleLine, x) && di(t.element), t.element.setAttribute(Et, Dt.ENTER);
|
|
3058
|
+
let b = !1, S = () => {
|
|
3059
|
+
b || (b = !0, t.element.removeEventListener("animationend", C), clearTimeout(D), y === null ? t.element.removeAttribute("style") : t.element.setAttribute("style", y), t.element.setAttribute(Et, ""), v(), e.flights.delete(t.layoutId));
|
|
2705
3060
|
};
|
|
2706
|
-
function
|
|
2707
|
-
e.animationName === m.geometryName && (h > 0 && e.elapsedTime === 0 ||
|
|
3061
|
+
function C(e) {
|
|
3062
|
+
e.animationName === m.geometryName && (h > 0 && e.elapsedTime === 0 || S());
|
|
2708
3063
|
}
|
|
2709
|
-
let
|
|
2710
|
-
|
|
2711
|
-
}, e * 1e3 + 250), D =
|
|
2712
|
-
t.element.addEventListener("animationend",
|
|
2713
|
-
finish:
|
|
3064
|
+
let E = (e) => setTimeout(() => {
|
|
3065
|
+
S();
|
|
3066
|
+
}, e * 1e3 + 250), D = E(_ + h);
|
|
3067
|
+
t.element.addEventListener("animationend", C), e.flights.set(t.layoutId, {
|
|
3068
|
+
finish: S,
|
|
2714
3069
|
element: t.element,
|
|
2715
3070
|
duration: h,
|
|
2716
3071
|
start: _,
|
|
2717
3072
|
ease: g,
|
|
2718
3073
|
suspendBackstop: () => clearTimeout(D),
|
|
2719
3074
|
armBackstop: (e) => {
|
|
2720
|
-
clearTimeout(D), D =
|
|
3075
|
+
clearTimeout(D), D = E(e);
|
|
2721
3076
|
}
|
|
2722
3077
|
});
|
|
2723
3078
|
return;
|
|
2724
3079
|
}
|
|
2725
|
-
let
|
|
2726
|
-
id: `${
|
|
3080
|
+
let P = S > 0 && M.isConnected ? M.cloneNode(!0) : null, F = P ? Br({
|
|
3081
|
+
id: `${O}g`,
|
|
2727
3082
|
travel: {
|
|
2728
|
-
from:
|
|
2729
|
-
to:
|
|
2730
|
-
authoredFrom:
|
|
2731
|
-
authoredTo:
|
|
3083
|
+
from: q,
|
|
3084
|
+
to: Wn(v, y),
|
|
3085
|
+
authoredFrom: q,
|
|
3086
|
+
authoredTo: q,
|
|
2732
3087
|
duration: h,
|
|
2733
3088
|
start: _,
|
|
2734
3089
|
ease: g
|
|
2735
3090
|
},
|
|
2736
|
-
clip:
|
|
3091
|
+
clip: D,
|
|
2737
3092
|
fade: {
|
|
2738
3093
|
from: { opacity: 1 },
|
|
2739
3094
|
to: { opacity: 0 },
|
|
2740
|
-
duration: h *
|
|
3095
|
+
duration: h * S
|
|
2741
3096
|
},
|
|
2742
|
-
paint: []
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
|
|
3097
|
+
paint: [],
|
|
3098
|
+
pinned: j
|
|
3099
|
+
}) : null, te = v.width * v.height < y.width * y.height, I = s.carry === "screen" && !o ? te ? i : xa(M) : null, ne = I && y.width > 0 && v.width > 0 ? Vr({
|
|
3100
|
+
id: `${O}c`,
|
|
3101
|
+
origin: Fa(I, f),
|
|
3102
|
+
small: te ? v : y,
|
|
3103
|
+
big: te ? y : v,
|
|
3104
|
+
settling: te,
|
|
2749
3105
|
duration: h,
|
|
2750
3106
|
start: _,
|
|
2751
3107
|
ease: g,
|
|
2752
|
-
selector:
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
...A
|
|
2756
|
-
...
|
|
2757
|
-
...
|
|
3108
|
+
selector: K(Nt, `${O}c`),
|
|
3109
|
+
accelerated: !j
|
|
3110
|
+
}) : null, re = Ti([
|
|
3111
|
+
...A.rules,
|
|
3112
|
+
...N?.rules ?? [],
|
|
3113
|
+
...F?.rules ?? [],
|
|
3114
|
+
...ne?.rules ?? []
|
|
2758
3115
|
]);
|
|
2759
|
-
|
|
2760
|
-
let
|
|
2761
|
-
for (let e of [
|
|
2762
|
-
|
|
2763
|
-
let
|
|
2764
|
-
|
|
2765
|
-
for (let [e, n] of
|
|
2766
|
-
if (t.element.style.position = "absolute", t.element.style.left = `${y.x}px`, t.element.style.top = `${y.y}px`, t.element.style.width = `${y.width}px`, t.element.style.height = `${y.height}px`, t.element.style.margin = "0", t.element.style.minWidth = "0", t.element.style.minHeight = "0", t.element.style.maxWidth = "none", t.element.style.maxHeight = "none", t.element.style.contain = "layout", t.element.style.willChange = "left, top, width, height", t.element.style.zIndex = `${
|
|
2767
|
-
for (let e of [
|
|
2768
|
-
|
|
2769
|
-
for (let [e, t] of
|
|
2770
|
-
|
|
3116
|
+
I && ne && (e.residue.get(I)?.(), I.setAttribute(Nt, `${O}c`));
|
|
3117
|
+
let ie = typeof getComputedStyle == "function" ? getComputedStyle(t.element) : null, L = t.element.cloneNode(!0);
|
|
3118
|
+
for (let e of [L, ...L.querySelectorAll("*")]) e.removeAttribute(Et), e.removeAttribute(Ot), e.removeAttribute(At), e.removeAttribute(U), e.removeAttribute("id"), e.removeAttribute("name"), e.removeAttribute("data-testid"), e.style.removeProperty("animation");
|
|
3119
|
+
L.setAttribute(jt, ""), L.setAttribute("aria-hidden", "true"), L.inert = !0, L.style.visibility = "hidden", L.style.pointerEvents = "none", p.insertBefore(L, t.element);
|
|
3120
|
+
let ae = t.element.getAttribute("style"), oe = ie, se = oe ? va.map((e) => [e, ya(oe, e)]) : [];
|
|
3121
|
+
tn(t.element, () => f.appendChild(t.element));
|
|
3122
|
+
for (let [e, n] of se) t.element.style[e] = n;
|
|
3123
|
+
if (t.element.style.position = "absolute", t.element.style.left = `${(k ? v : y).x}px`, t.element.style.top = `${(k ? v : y).y}px`, t.element.style.width = `${y.width}px`, t.element.style.height = `${y.height}px`, t.element.style.margin = "0", t.element.style.minWidth = "0", t.element.style.minHeight = "0", t.element.style.maxWidth = "none", t.element.style.maxHeight = "none", t.element.style.contain = "layout", t.element.style.willChange = "left, top, width, height", t.element.style.zIndex = `${Aa(p) + 1}`, t.element.style.animation = A.animation, A.translate && (t.element.style.translate = A.translate), fi(n.snapshot.singleLine, x) && di(t.element), t.element.setAttribute(Et, Dt.ENTER), P && F) {
|
|
3124
|
+
for (let e of [P, ...P.querySelectorAll("*")]) e !== P && e.hasAttribute("data-flemo-morph") && (e.style.opacity = "0"), e.removeAttribute(Et), e.removeAttribute(Ot), e.removeAttribute(U), e.removeAttribute("id"), e.removeAttribute("name"), e.removeAttribute("data-testid");
|
|
3125
|
+
P.setAttribute(Mt, ""), P.setAttribute("aria-hidden", "true"), P.inert = !0, P.style.background = "none", P.style.boxShadow = "none", P.style.borderColor = "transparent";
|
|
3126
|
+
for (let [e, t] of se) P.style[e] = t;
|
|
3127
|
+
P.style.position = "absolute", P.style.left = `${y.x}px`, P.style.top = `${y.y}px`, P.style.width = `${y.width}px`, P.style.height = `${y.height}px`, P.style.margin = "0", P.style.minWidth = "0", P.style.minHeight = "0", P.style.maxWidth = "none", P.style.maxHeight = "none", P.style.pointerEvents = "none", P.style.willChange = "left, top, width, height", P.style.contain = "layout", P.style.zIndex = `${Aa(p) + 2}`, P.style.animation = F.animation, F.transform && (P.style.transform = F.transform), f.appendChild(P);
|
|
2771
3128
|
}
|
|
2772
3129
|
/* v8 ignore next -- as above: `departing` exists for every paired flight. */
|
|
2773
|
-
|
|
2774
|
-
let
|
|
2775
|
-
|
|
2776
|
-
},
|
|
2777
|
-
|
|
2778
|
-
},
|
|
2779
|
-
if (!
|
|
2780
|
-
|
|
3130
|
+
N && (M.style.setProperty("animation", N.animation), M.setAttribute(Et, Dt.EXIT));
|
|
3131
|
+
let R = null, ce = !1, z = () => {
|
|
3132
|
+
ce || (ce = !0, re());
|
|
3133
|
+
}, B = () => {
|
|
3134
|
+
R?.(), R = null, e.residue.get(M) === B && e.residue.delete(M), N && (M.style.removeProperty("animation"), M.setAttribute(Et, "")), I && (e.residue.get(I) === B && e.residue.delete(I), I.getAttribute("data-flemo-morph-camera") === `${O}c` && I.removeAttribute(Nt)), z();
|
|
3135
|
+
}, le = () => {
|
|
3136
|
+
if (!M.isConnected || !ba(a.getState().status)) {
|
|
3137
|
+
B();
|
|
2781
3138
|
return;
|
|
2782
3139
|
}
|
|
2783
|
-
|
|
2784
|
-
|
|
3140
|
+
N && e.residue.set(M, B), I && ne && e.residue.set(I, B), R = a.subscribe((e) => {
|
|
3141
|
+
ba(e.status) || B();
|
|
2785
3142
|
});
|
|
2786
|
-
let t = setTimeout(
|
|
2787
|
-
|
|
3143
|
+
let t = setTimeout(B, (_ + h) * 1e3 + 1e3), n = R;
|
|
3144
|
+
R = () => {
|
|
2788
3145
|
clearTimeout(t), n();
|
|
2789
3146
|
};
|
|
2790
|
-
},
|
|
2791
|
-
f.setAttribute(
|
|
3147
|
+
}, ue = () => {
|
|
3148
|
+
f.setAttribute(W, i?.getAttribute("data-flemo-anim-hold") ?? Ft.RELEASED);
|
|
2792
3149
|
};
|
|
2793
|
-
|
|
2794
|
-
let
|
|
2795
|
-
i &&
|
|
3150
|
+
ue();
|
|
3151
|
+
let V = typeof MutationObserver == "function" ? new MutationObserver(ue) : null;
|
|
3152
|
+
i && V?.observe(i, {
|
|
2796
3153
|
attributes: !0,
|
|
2797
|
-
attributeFilter: [
|
|
3154
|
+
attributeFilter: [W]
|
|
2798
3155
|
});
|
|
2799
|
-
let
|
|
2800
|
-
|
|
3156
|
+
let de = !1, fe = () => {
|
|
3157
|
+
de || (de = !0, t.element.removeEventListener("animationend", pe), clearTimeout(he), V?.disconnect(), f.removeAttribute(W), ae === null ? t.element.removeAttribute("style") : t.element.setAttribute("style", ae), p.isConnected ? tn(t.element, () => L.replaceWith(t.element)) : t.element.remove(), L.remove(), t.element.setAttribute(Et, ""), P?.remove(), N || I ? le() : z(), e.flights.delete(t.layoutId));
|
|
2801
3158
|
};
|
|
2802
|
-
function
|
|
2803
|
-
e.animationName ===
|
|
3159
|
+
function pe(e) {
|
|
3160
|
+
e.animationName === A.geometryName && (h > 0 && e.elapsedTime === 0 || fe());
|
|
2804
3161
|
}
|
|
2805
|
-
let
|
|
2806
|
-
|
|
2807
|
-
}, e * 1e3 + 250),
|
|
2808
|
-
t.element.addEventListener("animationend",
|
|
2809
|
-
finish:
|
|
3162
|
+
let me = (e) => setTimeout(() => {
|
|
3163
|
+
fe();
|
|
3164
|
+
}, e * 1e3 + 250), he = me(_ + h);
|
|
3165
|
+
t.element.addEventListener("animationend", pe), e.flights.set(t.layoutId, {
|
|
3166
|
+
finish: fe,
|
|
2810
3167
|
element: t.element,
|
|
2811
3168
|
duration: h,
|
|
2812
3169
|
start: _,
|
|
2813
3170
|
ease: g,
|
|
2814
|
-
suspendBackstop: () => clearTimeout(
|
|
3171
|
+
suspendBackstop: () => clearTimeout(he),
|
|
2815
3172
|
armBackstop: (e) => {
|
|
2816
|
-
clearTimeout(
|
|
3173
|
+
clearTimeout(he), he = me(e);
|
|
2817
3174
|
}
|
|
2818
3175
|
});
|
|
2819
|
-
},
|
|
3176
|
+
}, La = (e, t, n = !1) => {
|
|
2820
3177
|
if (!e.isConnected) return !1;
|
|
2821
|
-
let r =
|
|
2822
|
-
return r ? !n && !
|
|
2823
|
-
},
|
|
3178
|
+
let r = xa(e);
|
|
3179
|
+
return r ? !n && !ba(r.getAttribute("data-flemo-status")) ? !1 : r.getAttribute(ot) !== Sa(t) : !0;
|
|
3180
|
+
}, Ra = (e, t, n, r = !1) => {
|
|
2824
3181
|
for (let i of e.entries.values()) {
|
|
2825
|
-
if (i.element === t.element || i.layoutId !== t.layoutId || !
|
|
2826
|
-
let e =
|
|
3182
|
+
if (i.element === t.element || i.layoutId !== t.layoutId || !La(i.element, n, r)) continue;
|
|
3183
|
+
let e = xa(i.element);
|
|
2827
3184
|
if (!e) return {
|
|
2828
|
-
snapshot:
|
|
3185
|
+
snapshot: Rn(i.element),
|
|
2829
3186
|
element: i.element
|
|
2830
3187
|
};
|
|
2831
|
-
let a =
|
|
3188
|
+
let a = ma(i.element, e, wa(n).exit);
|
|
2832
3189
|
return {
|
|
2833
3190
|
snapshot: {
|
|
2834
3191
|
rect: a.rect,
|
|
@@ -2840,53 +3197,56 @@ var en = (e) => e !== "" && e !== "visible", tn = (e) => {
|
|
|
2840
3197
|
aspectRatio: a.aspectRatio,
|
|
2841
3198
|
padding: a.padding,
|
|
2842
3199
|
margin: a.margin,
|
|
2843
|
-
paint: a.paint
|
|
3200
|
+
paint: a.paint,
|
|
3201
|
+
singleLine: a.singleLine,
|
|
3202
|
+
textHeight: a.textHeight,
|
|
3203
|
+
leadOffset: a.leadOffset
|
|
2844
3204
|
},
|
|
2845
3205
|
element: i.element
|
|
2846
3206
|
};
|
|
2847
3207
|
}
|
|
2848
3208
|
return null;
|
|
2849
|
-
},
|
|
3209
|
+
}, za = G(Et), Ba = (e, t, n, r = !1, i) => {
|
|
2850
3210
|
let a = i ?? t.getState().status;
|
|
2851
|
-
if (!i && !
|
|
3211
|
+
if (!i && !ba(a)) return;
|
|
2852
3212
|
if (e.flights.has(n.layoutId)) {
|
|
2853
3213
|
e.delivered.delete(n.layoutId);
|
|
2854
3214
|
return;
|
|
2855
3215
|
}
|
|
2856
|
-
let o = n.element.parentElement?.closest(
|
|
3216
|
+
let o = n.element.parentElement?.closest(za) ?? null, s = null;
|
|
2857
3217
|
if (o) {
|
|
2858
3218
|
if (!r) {
|
|
2859
|
-
queueMicrotask(() =>
|
|
3219
|
+
queueMicrotask(() => Ba(e, t, n, !0, i));
|
|
2860
3220
|
return;
|
|
2861
3221
|
}
|
|
2862
3222
|
s = [...e.flights.values()].find((e) => e.element === o) ?? null;
|
|
2863
3223
|
}
|
|
2864
|
-
let c = s ? null :
|
|
2865
|
-
if (!s && (!c || !
|
|
2866
|
-
let l = e.snapshots.get(n.layoutId), u = i !== void 0, d = l && l.element !== n.element &&
|
|
2867
|
-
d &&
|
|
2868
|
-
},
|
|
3224
|
+
let c = s ? null : xa(n.element);
|
|
3225
|
+
if (!s && (!c || !Ca(c, a)) || e.delivered.delete(n.layoutId)) return;
|
|
3226
|
+
let l = e.snapshots.get(n.layoutId), u = i !== void 0, d = l && l.element !== n.element && La(l.element, a, u) ? l : Ra(e, n, a, u);
|
|
3227
|
+
d && Ia(e, n, d, a, c, t, s);
|
|
3228
|
+
}, Va = (e) => {
|
|
2869
3229
|
for (let [t, n] of e.snapshots) n.element.isConnected || e.snapshots.delete(t);
|
|
2870
3230
|
for (let t of e.entries.values()) {
|
|
2871
3231
|
if (!t.element.isConnected) continue;
|
|
2872
|
-
let n = e.snapshots.get(t.layoutId), r =
|
|
3232
|
+
let n = e.snapshots.get(t.layoutId), r = xa(t.element);
|
|
2873
3233
|
n && r && r.getAttribute("data-flemo-active") !== "true" || e.snapshots.set(t.layoutId, {
|
|
2874
|
-
snapshot:
|
|
3234
|
+
snapshot: Rn(t.element),
|
|
2875
3235
|
element: t.element
|
|
2876
3236
|
});
|
|
2877
3237
|
}
|
|
2878
|
-
},
|
|
2879
|
-
let n =
|
|
2880
|
-
|
|
2881
|
-
for (let r of [...n.entries.values()]) r.element.isConnected &&
|
|
3238
|
+
}, Ha = (e, t) => {
|
|
3239
|
+
let n = Ka(e);
|
|
3240
|
+
Va(n);
|
|
3241
|
+
for (let r of [...n.entries.values()]) r.element.isConnected && Ba(n, e, r, !1, t);
|
|
2882
3242
|
return [...n.flights.values()];
|
|
2883
|
-
},
|
|
2884
|
-
|
|
2885
|
-
},
|
|
2886
|
-
let t =
|
|
3243
|
+
}, Ua = (e) => {
|
|
3244
|
+
Ka(e).delivered.clear();
|
|
3245
|
+
}, Wa = (e) => {
|
|
3246
|
+
let t = Ka(e);
|
|
2887
3247
|
for (let e of t.flights.keys()) t.delivered.add(e);
|
|
2888
|
-
},
|
|
2889
|
-
let t =
|
|
3248
|
+
}, Ga = (e) => [...Ka(e).flights.values()], Ka = (e) => {
|
|
3249
|
+
let t = ha.get(e);
|
|
2890
3250
|
if (t) return t;
|
|
2891
3251
|
let n = {
|
|
2892
3252
|
entries: /* @__PURE__ */ new Map(),
|
|
@@ -2899,14 +3259,14 @@ var en = (e) => e !== "" && e !== "visible", tn = (e) => {
|
|
|
2899
3259
|
unsubscribe: () => {}
|
|
2900
3260
|
};
|
|
2901
3261
|
return n.unsubscribe = e.subscribe((e, t) => {
|
|
2902
|
-
if (e.status !== t.status &&
|
|
2903
|
-
|
|
3262
|
+
if (e.status !== t.status && ba(e.status)) {
|
|
3263
|
+
Va(n);
|
|
2904
3264
|
for (let e of [...n.flights.values()]) e.finish();
|
|
2905
3265
|
}
|
|
2906
|
-
}),
|
|
3266
|
+
}), ha.set(e, n), n;
|
|
2907
3267
|
};
|
|
2908
|
-
function
|
|
2909
|
-
let { layoutId: n, navigateStore: r } = t, i = t.name ?? "shared", a =
|
|
3268
|
+
function qa(e, t) {
|
|
3269
|
+
let { layoutId: n, navigateStore: r } = t, i = t.name ?? "shared", a = Ka(r), o = e.getBoundingClientRect(), s = {
|
|
2910
3270
|
element: e,
|
|
2911
3271
|
layoutId: String(n),
|
|
2912
3272
|
name: i,
|
|
@@ -2915,141 +3275,64 @@ function Yi(e, t) {
|
|
|
2915
3275
|
height: o.height
|
|
2916
3276
|
} : null
|
|
2917
3277
|
};
|
|
2918
|
-
return a.entries.set(e, s), e.hasAttribute("data-flemo-morph") || e.setAttribute(
|
|
3278
|
+
return a.entries.set(e, s), e.hasAttribute("data-flemo-morph") || e.setAttribute(Et, ""), e.setAttribute(Ot, String(i)), Ba(a, r, s), () => {
|
|
2919
3279
|
a.entries.get(e) === s && a.entries.delete(e);
|
|
2920
3280
|
};
|
|
2921
3281
|
}
|
|
2922
3282
|
//#endregion
|
|
2923
3283
|
//#region src/screen/partLayer.ts
|
|
2924
|
-
var
|
|
2925
|
-
t ?
|
|
2926
|
-
},
|
|
3284
|
+
var Ja = /* @__PURE__ */ new WeakMap(), Ya = (e, t) => {
|
|
3285
|
+
t ? Ja.set(e, t) : Ja.delete(e);
|
|
3286
|
+
}, Xa = (e) => {
|
|
2927
3287
|
if (p()) return null;
|
|
2928
|
-
let t =
|
|
3288
|
+
let t = Ja.get(e);
|
|
2929
3289
|
if (t?.isConnected) return t;
|
|
2930
3290
|
let n = document.body.querySelector(`:scope > [${Ct}]`);
|
|
2931
3291
|
return n || (n = document.createElement("div"), n.setAttribute(Ct, ""), document.body.appendChild(n)), n;
|
|
2932
|
-
},
|
|
2933
|
-
let
|
|
2934
|
-
|
|
2935
|
-
|
|
2936
|
-
|
|
2937
|
-
|
|
2938
|
-
|
|
2939
|
-
let r = (t + n) / 2;
|
|
2940
|
-
i(r) < e ? t = r : n = r;
|
|
2941
|
-
}
|
|
2942
|
-
return a((t + n) / 2);
|
|
2943
|
-
};
|
|
2944
|
-
}, ea = (e) => {
|
|
2945
|
-
let t = ra(e);
|
|
2946
|
-
if (!t) return (e) => e;
|
|
2947
|
-
let [n, r, i, a] = t, o = (e) => 3 * (1 - e) * (1 - e) * e * n + 3 * (1 - e) * e * e * i + e ** 3, s = (e) => 3 * (1 - e) * (1 - e) * e * r + 3 * (1 - e) * e * e * a + e ** 3;
|
|
2948
|
-
return (e) => {
|
|
2949
|
-
if (e <= 0) return 0;
|
|
2950
|
-
if (e >= 1) return 1;
|
|
2951
|
-
let t = 0, n = 1;
|
|
2952
|
-
for (let r = 0; r < 40; r++) {
|
|
2953
|
-
let r = (t + n) / 2;
|
|
2954
|
-
s(r) < e ? t = r : n = r;
|
|
2955
|
-
}
|
|
2956
|
-
return o((t + n) / 2);
|
|
2957
|
-
};
|
|
2958
|
-
}, ta = (e) => e, na = {
|
|
2959
|
-
ease: [
|
|
2960
|
-
.25,
|
|
2961
|
-
.1,
|
|
2962
|
-
.25,
|
|
2963
|
-
1
|
|
2964
|
-
],
|
|
2965
|
-
easeIn: [
|
|
2966
|
-
.42,
|
|
2967
|
-
0,
|
|
2968
|
-
1,
|
|
2969
|
-
1
|
|
2970
|
-
],
|
|
2971
|
-
easeOut: [
|
|
2972
|
-
0,
|
|
2973
|
-
0,
|
|
2974
|
-
.58,
|
|
2975
|
-
1
|
|
2976
|
-
],
|
|
2977
|
-
easeInOut: [
|
|
2978
|
-
.42,
|
|
2979
|
-
0,
|
|
2980
|
-
.58,
|
|
2981
|
-
1
|
|
2982
|
-
],
|
|
2983
|
-
circIn: [
|
|
2984
|
-
0,
|
|
2985
|
-
.55,
|
|
2986
|
-
.45,
|
|
2987
|
-
1
|
|
2988
|
-
],
|
|
2989
|
-
circOut: [
|
|
2990
|
-
.55,
|
|
2991
|
-
0,
|
|
2992
|
-
1,
|
|
2993
|
-
.45
|
|
2994
|
-
],
|
|
2995
|
-
backIn: [
|
|
2996
|
-
.31,
|
|
2997
|
-
.01,
|
|
2998
|
-
.66,
|
|
2999
|
-
-.59
|
|
3000
|
-
],
|
|
3001
|
-
backOut: [
|
|
3002
|
-
.33,
|
|
3003
|
-
1.53,
|
|
3004
|
-
.69,
|
|
3005
|
-
.99
|
|
3006
|
-
],
|
|
3007
|
-
anticipate: [
|
|
3008
|
-
.36,
|
|
3009
|
-
0,
|
|
3010
|
-
.66,
|
|
3011
|
-
-.56
|
|
3012
|
-
]
|
|
3013
|
-
}, ra = (e) => Array.isArray(e) ? e.length === 4 && e.every((e) => typeof e == "number") ? [...e] : null : typeof e == "string" ? e === "linear" ? null : [...na[e] ?? na.ease] : [...na.ease], ia = (e) => {
|
|
3014
|
-
if (Array.isArray(e)) {
|
|
3015
|
-
if (e.length === 4 && e.every((e) => typeof e == "number")) {
|
|
3016
|
-
let [t, n, r, i] = e;
|
|
3017
|
-
return $i(t, n, r, i);
|
|
3018
|
-
}
|
|
3019
|
-
return ta;
|
|
3020
|
-
}
|
|
3021
|
-
return typeof e == "string" ? e === "linear" ? ta : $i(...na[e] ?? na.ease) : $i(...na.ease);
|
|
3022
|
-
}, aa = (e, t) => {
|
|
3292
|
+
}, Za = (e) => {
|
|
3293
|
+
let t = e?.currentTime ?? null;
|
|
3294
|
+
if (t === null) return null;
|
|
3295
|
+
if (typeof t == "number") return t;
|
|
3296
|
+
let n = t;
|
|
3297
|
+
return typeof n.value == "number" ? n.value : null;
|
|
3298
|
+
}, Qa = (e, t) => {
|
|
3023
3299
|
for (let n of e) {
|
|
3024
3300
|
n.pause();
|
|
3025
3301
|
try {
|
|
3026
3302
|
n.currentTime = t * 1e3;
|
|
3027
3303
|
} catch {}
|
|
3028
3304
|
}
|
|
3029
|
-
},
|
|
3305
|
+
}, $a = (e, t, n) => {
|
|
3030
3306
|
let r = n < 0 ? 0 : n > 1 ? 1 : n;
|
|
3031
|
-
|
|
3032
|
-
},
|
|
3033
|
-
let a = Math.max(r, 1 / 60), o = (e[0]
|
|
3307
|
+
Qa(e, t.start + Kr(t.ease)(r) * t.duration);
|
|
3308
|
+
}, eo = (e, t, n, r, i) => {
|
|
3309
|
+
let a = Math.max(r, 1 / 60), o = (Za(e[0] ?? null) ?? 0) / 1e3, s = t.start + t.duration, c = Math.max(n ? s - o : o, 0), l = c > 0 ? c / a : 1;
|
|
3034
3310
|
for (let t of e) {
|
|
3035
|
-
let e = t
|
|
3036
|
-
t.playbackRate =
|
|
3311
|
+
let e = Za(t) ?? 0, r = n ? l : -l;
|
|
3312
|
+
t.playbackRate = r, !n && i && t.addEventListener("finish", i, { once: !0 });
|
|
3313
|
+
let a = Za(t.timeline);
|
|
3314
|
+
if (a === null) {
|
|
3315
|
+
t.play();
|
|
3316
|
+
continue;
|
|
3317
|
+
}
|
|
3037
3318
|
try {
|
|
3038
|
-
t.
|
|
3039
|
-
} catch {
|
|
3319
|
+
t.startTime = a - e / r;
|
|
3320
|
+
} catch {
|
|
3321
|
+
t.play();
|
|
3322
|
+
}
|
|
3040
3323
|
}
|
|
3041
|
-
},
|
|
3324
|
+
}, to = "flemo-morph-", no = (e) => {
|
|
3042
3325
|
let t = e.animationName;
|
|
3043
|
-
return typeof t == "string" && t.startsWith(
|
|
3044
|
-
},
|
|
3326
|
+
return typeof t == "string" && t.startsWith(to);
|
|
3327
|
+
}, ro = () => typeof document > "u" || typeof document.getAnimations != "function" ? [] : document.getAnimations().filter(no), io = (e, t = "POPPING") => {
|
|
3045
3328
|
let n = !1;
|
|
3046
|
-
|
|
3047
|
-
n ||
|
|
3329
|
+
Ua(e), Ha(e, t), Ga(e).length === 0 && requestAnimationFrame(() => {
|
|
3330
|
+
n || Ga(e).length > 0 || (Ha(e, t), a(0));
|
|
3048
3331
|
});
|
|
3049
|
-
let r = () =>
|
|
3050
|
-
for (let t of
|
|
3332
|
+
let r = () => Ga(e)[0] ?? null, i = () => {
|
|
3333
|
+
for (let t of Ga(e)) t.suspendBackstop();
|
|
3051
3334
|
}, a = (e) => {
|
|
3052
|
-
i(),
|
|
3335
|
+
i(), Qa(ro(), e);
|
|
3053
3336
|
};
|
|
3054
3337
|
return a(0), queueMicrotask(() => a(0)), {
|
|
3055
3338
|
get active() {
|
|
@@ -3058,51 +3341,69 @@ var Xi = /* @__PURE__ */ new WeakMap(), Zi = (e, t) => {
|
|
|
3058
3341
|
scrub: (e) => {
|
|
3059
3342
|
if (n) return;
|
|
3060
3343
|
let t = r();
|
|
3061
|
-
t && (i(),
|
|
3344
|
+
t && (i(), $a(ro(), t, e));
|
|
3062
3345
|
},
|
|
3063
3346
|
settle: (t, i) => {
|
|
3064
3347
|
if (n) return;
|
|
3065
3348
|
n = !0;
|
|
3066
3349
|
let a = r();
|
|
3067
3350
|
if (!a) return;
|
|
3068
|
-
let o =
|
|
3069
|
-
t &&
|
|
3070
|
-
for (let t of
|
|
3071
|
-
|
|
3072
|
-
for (let t of
|
|
3351
|
+
let o = ro(), s = Math.max(i, 1 / 60);
|
|
3352
|
+
t && Wa(e);
|
|
3353
|
+
for (let t of Ga(e)) t.armBackstop(s);
|
|
3354
|
+
eo(o, a, t, i, () => {
|
|
3355
|
+
for (let t of Ga(e)) t.finish();
|
|
3073
3356
|
});
|
|
3074
3357
|
}
|
|
3075
3358
|
};
|
|
3076
|
-
},
|
|
3077
|
-
|
|
3359
|
+
}, ao = "data-flemo", oo = /* @__PURE__ */ new WeakMap(), so = 0, co = (e) => {
|
|
3360
|
+
let t = oo.get(e);
|
|
3361
|
+
return t === void 0 ? (so += 1, oo.set(e, so), so) : t;
|
|
3362
|
+
}, lo = () => [
|
|
3363
|
+
Oe,
|
|
3364
|
+
Pe,
|
|
3365
|
+
We
|
|
3366
|
+
].map((e) => [...e.entries()].map(([e, t]) => `${e}:${co(t)}`).join(",")).join("|"), uo = 4, fo = /* @__PURE__ */ new Map(), po = (e) => {
|
|
3367
|
+
let t = fo.get(e);
|
|
3368
|
+
if (t !== void 0) return t;
|
|
3369
|
+
let n = Ar(Oe.values(), Pe.values(), We.values());
|
|
3370
|
+
if (fo.size >= uo) {
|
|
3371
|
+
let e = fo.keys().next();
|
|
3372
|
+
/* v8 ignore next -- the size check above is what guarantees a first key. */
|
|
3373
|
+
e.done || fo.delete(e.value);
|
|
3374
|
+
}
|
|
3375
|
+
return fo.set(e, n), n;
|
|
3376
|
+
};
|
|
3377
|
+
function mo() {
|
|
3378
|
+
/* v8 ignore next -- there is no document to write the sheet into. */
|
|
3078
3379
|
if (p()) return;
|
|
3079
|
-
let e =
|
|
3080
|
-
t || (t = document.createElement("style"), t.setAttribute(
|
|
3380
|
+
let e = po(lo()), t = document.head.querySelector(`style[${ao}]`);
|
|
3381
|
+
t || (t = document.createElement("style"), t.setAttribute(ao, ""), document.head.appendChild(t)), t.textContent !== e && (t.textContent = e);
|
|
3081
3382
|
}
|
|
3082
3383
|
//#endregion
|
|
3083
3384
|
//#region src/transition/registerTransitionDefinitions.ts
|
|
3084
|
-
var
|
|
3385
|
+
var ho = /* @__PURE__ */ new Map(), go = /* @__PURE__ */ new Map(), _o = /* @__PURE__ */ new Map(), vo = /* @__PURE__ */ new Map(), yo = (e, t) => {
|
|
3085
3386
|
e.set(t, (e.get(t) ?? 0) + 1);
|
|
3086
|
-
},
|
|
3387
|
+
}, bo = (e, t) => {
|
|
3087
3388
|
let n = (e.get(t) ?? 1) - 1;
|
|
3088
3389
|
return n <= 0 ? (e.delete(t), !0) : (e.set(t, n), !1);
|
|
3089
3390
|
};
|
|
3090
|
-
function
|
|
3091
|
-
for (let t of e) Oe.set(t.name, t),
|
|
3092
|
-
for (let e of t) Pe.set(e.name, e),
|
|
3093
|
-
for (let e of n) We.set(e.name, e),
|
|
3094
|
-
for (let e of r) et.set(e.name, e),
|
|
3095
|
-
return
|
|
3096
|
-
for (let t of e)
|
|
3097
|
-
for (let e of t)
|
|
3098
|
-
for (let e of n)
|
|
3099
|
-
for (let e of r)
|
|
3100
|
-
|
|
3391
|
+
function xo(e, t, n = [], r = []) {
|
|
3392
|
+
for (let t of e) Oe.set(t.name, t), yo(ho, t.name);
|
|
3393
|
+
for (let e of t) Pe.set(e.name, e), yo(go, e.name);
|
|
3394
|
+
for (let e of n) We.set(e.name, e), yo(_o, e.name);
|
|
3395
|
+
for (let e of r) et.set(e.name, e), yo(vo, e.name);
|
|
3396
|
+
return mo(), () => {
|
|
3397
|
+
for (let t of e) bo(ho, t.name) && Oe.delete(t.name);
|
|
3398
|
+
for (let e of t) bo(go, e.name) && Pe.delete(e.name);
|
|
3399
|
+
for (let e of n) bo(_o, e.name) && We.delete(e.name);
|
|
3400
|
+
for (let e of r) bo(vo, e.name) && et.delete(e.name);
|
|
3401
|
+
mo();
|
|
3101
3402
|
};
|
|
3102
3403
|
}
|
|
3103
3404
|
//#endregion
|
|
3104
3405
|
//#region src/transition/enteringInitialStyle.ts
|
|
3105
|
-
function
|
|
3406
|
+
function So(e) {
|
|
3106
3407
|
let { initial: t, isActive: n, status: r } = e;
|
|
3107
3408
|
if (!n || r !== "PUSHING" && r !== "REPLACING") return {};
|
|
3108
3409
|
let i = {};
|
|
@@ -3110,19 +3411,19 @@ function xa(e) {
|
|
|
3110
3411
|
}
|
|
3111
3412
|
//#endregion
|
|
3112
3413
|
//#region src/transition/animateInline.ts
|
|
3113
|
-
var
|
|
3114
|
-
let r =
|
|
3115
|
-
r || (r = /* @__PURE__ */ new Map(),
|
|
3414
|
+
var Co = (e) => typeof HTMLElement < "u" && e instanceof HTMLElement, wo = /* @__PURE__ */ new WeakMap(), To = Symbol("flemo-inline-writer"), Eo = /* @__PURE__ */ new WeakMap(), Do = (e, t, n = To) => {
|
|
3415
|
+
let r = wo.get(e);
|
|
3416
|
+
r || (r = /* @__PURE__ */ new Map(), wo.set(e, r));
|
|
3116
3417
|
let i = r.get(t);
|
|
3117
3418
|
i || (i = {
|
|
3118
3419
|
original: e.style.getPropertyValue(t),
|
|
3119
3420
|
owners: /* @__PURE__ */ new Set()
|
|
3120
3421
|
}, r.set(t, i)), i.owners.add(n);
|
|
3121
|
-
},
|
|
3122
|
-
|
|
3422
|
+
}, Oo = (e, t) => {
|
|
3423
|
+
Co(e) && (Do(e, "transition", t), e.style.transition = "none", Eo.set(e, t));
|
|
3123
3424
|
}, Q = (e, t, n) => {
|
|
3124
|
-
let r =
|
|
3125
|
-
(!n ||
|
|
3425
|
+
let r = wo.get(e);
|
|
3426
|
+
(!n || Eo.get(e) === n) && (e.style.transition = "", Eo.delete(e));
|
|
3126
3427
|
let i = (t) => {
|
|
3127
3428
|
let i = r?.get(t);
|
|
3128
3429
|
if (!i) {
|
|
@@ -3140,19 +3441,19 @@ var Sa = (e) => typeof HTMLElement < "u" && e instanceof HTMLElement, Ca = /* @_
|
|
|
3140
3441
|
return;
|
|
3141
3442
|
}
|
|
3142
3443
|
n || (e.style.removeProperty("transform"), e.style.removeProperty("opacity"));
|
|
3143
|
-
},
|
|
3144
|
-
if (!
|
|
3145
|
-
let i = e, a =
|
|
3444
|
+
}, ko = (e, t, n = {}, r) => {
|
|
3445
|
+
if (!Co(e)) return Promise.resolve();
|
|
3446
|
+
let i = e, a = fr(t);
|
|
3146
3447
|
if (a.length === 0) return Promise.resolve();
|
|
3147
|
-
let o = typeof n.duration == "number" ? n.duration : 0, s = typeof n.delay == "number" && n.delay > 0 ? n.delay : 0, c =
|
|
3448
|
+
let o = typeof n.duration == "number" ? n.duration : 0, s = typeof n.delay == "number" && n.delay > 0 ? n.delay : 0, c = mr(n.ease);
|
|
3148
3449
|
if (o <= 0 && s <= 0) {
|
|
3149
|
-
i.style.transition = "none",
|
|
3150
|
-
for (let e of a)
|
|
3450
|
+
i.style.transition = "none", Eo.set(i, r);
|
|
3451
|
+
for (let e of a) Do(i, e.property, r), i.style.setProperty(e.property, e.value);
|
|
3151
3452
|
return Promise.resolve();
|
|
3152
3453
|
}
|
|
3153
3454
|
let l = a.map((e) => `${e.property} ${o}s ${c} ${s}s`).join(", ");
|
|
3154
|
-
i.style.transition = l,
|
|
3155
|
-
for (let e of a)
|
|
3455
|
+
i.style.transition = l, Eo.set(i, r), i.offsetWidth;
|
|
3456
|
+
for (let e of a) Do(i, e.property, r), i.style.setProperty(e.property, e.value);
|
|
3156
3457
|
return new Promise((e) => {
|
|
3157
3458
|
let t = !1, n = () => {
|
|
3158
3459
|
t || (t = !0, i.removeEventListener("transitionend", r), e());
|
|
@@ -3161,15 +3462,15 @@ var Sa = (e) => typeof HTMLElement < "u" && e instanceof HTMLElement, Ca = /* @_
|
|
|
3161
3462
|
};
|
|
3162
3463
|
i.addEventListener("transitionend", r), setTimeout(n, (o + s) * 1e3 + 60);
|
|
3163
3464
|
});
|
|
3164
|
-
},
|
|
3165
|
-
|
|
3166
|
-
},
|
|
3465
|
+
}, Ao = (e) => `${Math.round(e * 1e3) / 1e3}s`, jo = /* @__PURE__ */ new WeakSet(), Mo = (e) => {
|
|
3466
|
+
jo.add(e);
|
|
3467
|
+
}, No = (e) => {
|
|
3167
3468
|
let { element: t, expectedName: n, motion: r } = e, i = !1, a = !1, o = (n) => {
|
|
3168
|
-
i = !0, t.style.animation = "none", t.offsetWidth, t.style.removeProperty("animation"), n.mode === "clear" ? (t.style.removeProperty("animation-delay"), a = !1) : n.mode === "set" && (
|
|
3469
|
+
i = !0, t.style.animation = "none", t.offsetWidth, t.style.removeProperty("animation"), n.mode === "clear" ? (t.style.removeProperty("animation-delay"), a = !1) : n.mode === "set" && (Do(t, "animation-delay", e.writer), t.style.animationDelay = Ao(n.seconds), a = !0), i = !1;
|
|
3169
3470
|
}, s = (a) => {
|
|
3170
|
-
if (i || a.target !== t || !
|
|
3171
|
-
if (
|
|
3172
|
-
|
|
3471
|
+
if (i || a.target !== t || !Er(a.animationName, n)) return;
|
|
3472
|
+
if (jo.has(t)) {
|
|
3473
|
+
jo.delete(t);
|
|
3173
3474
|
return;
|
|
3174
3475
|
}
|
|
3175
3476
|
if (!e.isLive() || e.budgetUsed() >= 4) {
|
|
@@ -3201,122 +3502,122 @@ var Sa = (e) => typeof HTMLElement < "u" && e instanceof HTMLElement, Ca = /* @_
|
|
|
3201
3502
|
o({ mode: "clear" });
|
|
3202
3503
|
}
|
|
3203
3504
|
};
|
|
3204
|
-
},
|
|
3505
|
+
}, Po = 2147482e3, Fo = /* @__PURE__ */ new WeakMap(), Io = (e, t, n) => {
|
|
3205
3506
|
let r = e.ownerDocument.createElement("div");
|
|
3206
3507
|
r.setAttribute(Tt, ""), r.setAttribute("aria-hidden", "true"), r.style.width = `${t}px`, r.style.height = `${n}px`, r.style.flex = "0 0 auto", r.style.pointerEvents = "none", r.style.visibility = "hidden";
|
|
3207
3508
|
let i = e.ownerDocument.defaultView?.getComputedStyle(e);
|
|
3208
3509
|
return i && (r.style.marginTop = i.marginTop, r.style.marginRight = i.marginRight, r.style.marginBottom = i.marginBottom, r.style.marginLeft = i.marginLeft), r;
|
|
3209
|
-
},
|
|
3210
|
-
e.style.pointerEvents = "none", e.style.zIndex = String(
|
|
3211
|
-
},
|
|
3510
|
+
}, Lo = (e) => {
|
|
3511
|
+
e.style.pointerEvents = "none", e.style.zIndex = String(Po);
|
|
3512
|
+
}, Ro = (e) => {
|
|
3212
3513
|
let t = [];
|
|
3213
|
-
for (let n of e) n && n.getAttribute("data-flemo-bar-riding") === "false" && t.push(...n.querySelectorAll(
|
|
3514
|
+
for (let n of e) n && n.getAttribute("data-flemo-bar-riding") === "false" && t.push(...n.querySelectorAll(G(U)));
|
|
3214
3515
|
return t;
|
|
3215
|
-
},
|
|
3516
|
+
}, zo = (e) => {
|
|
3216
3517
|
let { scope: t, bars: n, layer: r, strandedMs: i } = e;
|
|
3217
3518
|
if (!r) return null;
|
|
3218
3519
|
let a = t.getAttribute(it);
|
|
3219
3520
|
if (a === null) return null;
|
|
3220
|
-
let o =
|
|
3521
|
+
let o = Ro(n);
|
|
3221
3522
|
if (o.length === 0) return null;
|
|
3222
|
-
|
|
3523
|
+
Lo(r);
|
|
3223
3524
|
let s = [];
|
|
3224
3525
|
for (let e of o) {
|
|
3225
3526
|
let t = e.parentNode, n = e.offsetWidth, i = e.offsetHeight;
|
|
3226
3527
|
if (n <= 0 || i <= 0) continue;
|
|
3227
|
-
let o =
|
|
3528
|
+
let o = Io(e, n, i), c = {
|
|
3228
3529
|
element: e,
|
|
3229
3530
|
parent: t,
|
|
3230
3531
|
nextSibling: e.nextSibling,
|
|
3231
3532
|
inlineStyle: e.getAttribute("style"),
|
|
3232
3533
|
standIn: o
|
|
3233
3534
|
};
|
|
3234
|
-
t.insertBefore(o, e),
|
|
3235
|
-
let l =
|
|
3535
|
+
t.insertBefore(o, e), Mo(e), tn(e, () => r.appendChild(e), { includeRoot: !0 });
|
|
3536
|
+
let l = Yt(o.getBoundingClientRect(), r);
|
|
3236
3537
|
e.setAttribute(wt, a), e.style.position = "absolute", e.style.left = `${l.x}px`, e.style.top = `${l.y}px`, e.style.width = `${l.width}px`, e.style.height = `${l.height}px`, e.style.boxSizing = "border-box", e.style.margin = "0", s.push(c);
|
|
3237
3538
|
}
|
|
3238
3539
|
if (s.length === 0) return null;
|
|
3239
3540
|
let c = () => {
|
|
3240
|
-
r.setAttribute(
|
|
3541
|
+
r.setAttribute(W, t.getAttribute("data-flemo-anim-hold") ?? Ft.RELEASED);
|
|
3241
3542
|
};
|
|
3242
3543
|
c();
|
|
3243
3544
|
let l = Symbol("bar-part-staging");
|
|
3244
|
-
|
|
3545
|
+
Fo.set(r, l);
|
|
3245
3546
|
let u = typeof MutationObserver == "function" ? new MutationObserver(c) : null;
|
|
3246
3547
|
u?.observe(t, {
|
|
3247
3548
|
attributes: !0,
|
|
3248
|
-
attributeFilter: [
|
|
3549
|
+
attributeFilter: [W]
|
|
3249
3550
|
});
|
|
3250
3551
|
let d = !1, f = () => {
|
|
3251
3552
|
if (!d) {
|
|
3252
|
-
d = !0, clearTimeout(p), u?.disconnect(),
|
|
3553
|
+
d = !0, clearTimeout(p), u?.disconnect(), Fo.get(r) === l && (Fo.delete(r), r.removeAttribute(W));
|
|
3253
3554
|
for (let e of s) {
|
|
3254
3555
|
if (e.element.removeAttribute(wt), e.inlineStyle === null ? e.element.removeAttribute("style") : e.element.setAttribute("style", e.inlineStyle), !e.parent.isConnected) {
|
|
3255
3556
|
e.element.remove(), e.standIn.remove();
|
|
3256
3557
|
continue;
|
|
3257
3558
|
}
|
|
3258
|
-
|
|
3559
|
+
Mo(e.element), tn(e.element, () => {
|
|
3259
3560
|
e.standIn.isConnected ? e.standIn.replaceWith(e.element) : e.parent.insertBefore(e.element, e.nextSibling);
|
|
3260
3561
|
}, { includeRoot: !0 }), e.standIn.remove();
|
|
3261
3562
|
}
|
|
3262
3563
|
}
|
|
3263
3564
|
}, p = setTimeout(f, i);
|
|
3264
3565
|
return { release: f };
|
|
3265
|
-
},
|
|
3566
|
+
}, Bo = (e) => {
|
|
3266
3567
|
if (typeof e.querySelectorAll == "function") {
|
|
3267
3568
|
e.tagName === "IMG" && !e.hasAttribute("decoding") && e.setAttribute("decoding", "async");
|
|
3268
3569
|
for (let t of Array.from(e.querySelectorAll("img:not([decoding])"))) t.setAttribute("decoding", "async");
|
|
3269
3570
|
}
|
|
3270
|
-
},
|
|
3271
|
-
function
|
|
3272
|
-
let e =
|
|
3273
|
-
if (
|
|
3571
|
+
}, Vo = 0, Ho = [], Uo = [];
|
|
3572
|
+
function Wo() {
|
|
3573
|
+
let e = Vo === 0;
|
|
3574
|
+
if (Vo += 1, e) for (let e of Uo) e();
|
|
3274
3575
|
let t = !1;
|
|
3275
3576
|
return () => {
|
|
3276
|
-
if (t || (t = !0, --
|
|
3277
|
-
let e =
|
|
3278
|
-
|
|
3577
|
+
if (t || (t = !0, --Vo, Vo > 0)) return;
|
|
3578
|
+
let e = Ho;
|
|
3579
|
+
Ho = [];
|
|
3279
3580
|
for (let t of e) t();
|
|
3280
3581
|
};
|
|
3281
3582
|
}
|
|
3282
|
-
var
|
|
3283
|
-
function
|
|
3284
|
-
return
|
|
3285
|
-
|
|
3583
|
+
var Go = () => Vo > 0;
|
|
3584
|
+
function Ko(e) {
|
|
3585
|
+
return Uo.push(e), () => {
|
|
3586
|
+
Uo = Uo.filter((t) => t !== e);
|
|
3286
3587
|
};
|
|
3287
3588
|
}
|
|
3288
|
-
function
|
|
3289
|
-
|
|
3589
|
+
function qo(e) {
|
|
3590
|
+
Vo === 0 ? e() : Ho.push(e);
|
|
3290
3591
|
}
|
|
3291
3592
|
//#endregion
|
|
3292
3593
|
//#region src/core/engine/imageDecodeOffloader.ts
|
|
3293
|
-
var
|
|
3294
|
-
let t = e.closest(
|
|
3295
|
-
return !!t &&
|
|
3296
|
-
},
|
|
3594
|
+
var Jo = 8, Yo = 2, $ = 96, Xo = 15e3, Zo = 3e3, Qo = "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7", $o = "flemo-image-scale-v1", es = new Set(F), ts = (e) => {
|
|
3595
|
+
let t = e.closest(G(it));
|
|
3596
|
+
return !!t && es.has(t.getAttribute("data-flemo-status") ?? "");
|
|
3597
|
+
}, ns = (e) => {
|
|
3297
3598
|
if (e.naturalWidth <= 0 || e.naturalHeight <= 0 || e.boxWidth <= 0 || e.boxHeight <= 0) return !1;
|
|
3298
3599
|
let t = e.boxWidth * e.boxHeight * e.devicePixelRatio * e.devicePixelRatio;
|
|
3299
3600
|
return e.naturalWidth * e.naturalHeight > t * 8;
|
|
3300
|
-
},
|
|
3601
|
+
}, rs = "onmessage = async (e) => {\n const { url, targetWidth, neededArea, ratio } = e.data;\n try {\n const response = await fetch(url);\n if (!response.ok) throw new Error(\"http \" + response.status);\n const blob = await response.blob();\n const full = await createImageBitmap(blob);\n if (full.width * full.height <= neededArea * ratio) {\n full.close();\n postMessage({ url, skip: true });\n return;\n }\n const scale = targetWidth / full.width;\n const canvas = new OffscreenCanvas(targetWidth, Math.max(1, Math.round(full.height * scale)));\n const context = canvas.getContext(\"2d\");\n context.imageSmoothingQuality = \"high\";\n context.drawImage(full, 0, 0, canvas.width, canvas.height);\n full.close();\n const out = await canvas.convertToBlob({ type: \"image/jpeg\", quality: 0.85 });\n postMessage({ url, blob: out });\n } catch (error) {\n postMessage({ url, error: String(error) });\n }\n};", is = () => typeof Worker < "u" && typeof OffscreenCanvas < "u" && typeof createImageBitmap == "function" && typeof MutationObserver < "u" && typeof URL < "u" && typeof URL.createObjectURL == "function", as = async (e, t) => {
|
|
3301
3602
|
try {
|
|
3302
3603
|
if (typeof caches > "u") return;
|
|
3303
|
-
await (await caches.open(
|
|
3604
|
+
await (await caches.open($o)).put(e, new Response(t, { headers: { "content-type": t.type } }));
|
|
3304
3605
|
} catch {}
|
|
3305
|
-
},
|
|
3606
|
+
}, os = async (e) => {
|
|
3306
3607
|
try {
|
|
3307
3608
|
if (typeof caches > "u") return null;
|
|
3308
|
-
let t = await (await caches.open(
|
|
3609
|
+
let t = await (await caches.open($o)).match(e);
|
|
3309
3610
|
return t ? await t.blob() : null;
|
|
3310
3611
|
} catch {
|
|
3311
3612
|
return null;
|
|
3312
3613
|
}
|
|
3313
3614
|
};
|
|
3314
|
-
function
|
|
3315
|
-
if (!
|
|
3615
|
+
function ss(e) {
|
|
3616
|
+
if (!is()) return () => {};
|
|
3316
3617
|
let t = null, n = !1, r = /* @__PURE__ */ new Map(), i = (e) => !!e && e !== "skip" && e !== "opaque", a = /* @__PURE__ */ new Set(), o = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Map(), c = /* @__PURE__ */ new WeakSet(), l = /* @__PURE__ */ new Set(), u = () => typeof devicePixelRatio == "number" ? devicePixelRatio : 1, d = () => {
|
|
3317
3618
|
if (t) return t;
|
|
3318
3619
|
try {
|
|
3319
|
-
t = new Worker(URL.createObjectURL(new Blob([
|
|
3620
|
+
t = new Worker(URL.createObjectURL(new Blob([rs])));
|
|
3320
3621
|
} catch {
|
|
3321
3622
|
return null;
|
|
3322
3623
|
}
|
|
@@ -3331,7 +3632,7 @@ function oo(e) {
|
|
|
3331
3632
|
return;
|
|
3332
3633
|
}
|
|
3333
3634
|
let a = URL.createObjectURL(n);
|
|
3334
|
-
l.add(a),
|
|
3635
|
+
l.add(a), as(t, n), f(t, a);
|
|
3335
3636
|
}, t;
|
|
3336
3637
|
}, f = (e, t) => {
|
|
3337
3638
|
r.has(e) || r.set(e, t);
|
|
@@ -3340,21 +3641,21 @@ function oo(e) {
|
|
|
3340
3641
|
let n = () => {
|
|
3341
3642
|
t ? e.style.visibility = t : e.style.removeProperty("visibility");
|
|
3342
3643
|
};
|
|
3343
|
-
if (!
|
|
3644
|
+
if (!Go()) {
|
|
3344
3645
|
n();
|
|
3345
3646
|
return;
|
|
3346
3647
|
}
|
|
3347
3648
|
let r = !1, i = () => {
|
|
3348
3649
|
r || (r = !0, clearTimeout(o), a.delete(i), n());
|
|
3349
|
-
}, o = setTimeout(i,
|
|
3350
|
-
a.add(i),
|
|
3650
|
+
}, o = setTimeout(i, Zo);
|
|
3651
|
+
a.add(i), qo(i);
|
|
3351
3652
|
}, m = (e, t) => {
|
|
3352
3653
|
let n = () => {
|
|
3353
|
-
if (
|
|
3354
|
-
|
|
3654
|
+
if (Go()) {
|
|
3655
|
+
qo(t);
|
|
3355
3656
|
return;
|
|
3356
3657
|
}
|
|
3357
|
-
if (!
|
|
3658
|
+
if (!ts(e) || typeof requestAnimationFrame != "function") {
|
|
3358
3659
|
t();
|
|
3359
3660
|
return;
|
|
3360
3661
|
}
|
|
@@ -3366,10 +3667,10 @@ function oo(e) {
|
|
|
3366
3667
|
e.style.visibility = "hidden";
|
|
3367
3668
|
let r = !1, i = () => {
|
|
3368
3669
|
r || (r = !0, clearTimeout(o), a.delete(i), t(), n ? e.style.visibility = n : e.style.removeProperty("visibility"));
|
|
3369
|
-
}, o = setTimeout(i,
|
|
3670
|
+
}, o = setTimeout(i, Zo);
|
|
3370
3671
|
a.add(i), m(e, i);
|
|
3371
|
-
}, g = (e, t) => !
|
|
3372
|
-
e.setAttribute(
|
|
3672
|
+
}, g = (e, t) => !Go() && !ts(e) ? !1 : (e.setAttribute(Gt, t), h(e, () => {}), !0), _ = (e, t, a) => {
|
|
3673
|
+
e.setAttribute(Gt, t), e.src = a, h(e, () => {
|
|
3373
3674
|
/* v8 ignore next -- disposal runs pending reveals; nothing to repair. */
|
|
3374
3675
|
if (n) return;
|
|
3375
3676
|
let a = r.get(t);
|
|
@@ -3380,12 +3681,12 @@ function oo(e) {
|
|
|
3380
3681
|
if (n) {
|
|
3381
3682
|
if (s.delete(e), clearTimeout(n.timeout), n.detachListeners?.(), n.responsive) {
|
|
3382
3683
|
if (i(t)) {
|
|
3383
|
-
e.setAttribute(
|
|
3684
|
+
e.setAttribute(Gt, n.url), e.removeAttribute("srcset"), e.removeAttribute("sizes");
|
|
3384
3685
|
let r = e.closest("picture");
|
|
3385
3686
|
if (r) for (let e of Array.from(r.querySelectorAll("source"))) e.removeAttribute("srcset");
|
|
3386
3687
|
e.src = t;
|
|
3387
3688
|
}
|
|
3388
|
-
} else e.getAttribute("src") ===
|
|
3689
|
+
} else e.getAttribute("src") === Qo && (i(t) ? e.src = t : (e.removeAttribute(Gt), e.src = n.url));
|
|
3389
3690
|
p(e, n.previousVisibility);
|
|
3390
3691
|
}
|
|
3391
3692
|
}, y = /* @__PURE__ */ new Map(), b = !1, x = () => {
|
|
@@ -3394,14 +3695,14 @@ function oo(e) {
|
|
|
3394
3695
|
y.clear();
|
|
3395
3696
|
for (let [t, n] of e) C(t, n.boxWidth, n.boxHeight);
|
|
3396
3697
|
}, S = () => {
|
|
3397
|
-
b || (b = !0,
|
|
3698
|
+
b || (b = !0, qo(() => {
|
|
3398
3699
|
if (n) return;
|
|
3399
3700
|
let e = globalThis.requestIdleCallback;
|
|
3400
3701
|
typeof e == "function" ? e(() => x()) : typeof setTimeout == "function" ? setTimeout(x, 400) : x();
|
|
3401
3702
|
}));
|
|
3402
3703
|
}, C = (e, t, n) => {
|
|
3403
3704
|
if (r.has(e) || o.has(e)) return;
|
|
3404
|
-
if (
|
|
3705
|
+
if (Go() && Z()) {
|
|
3405
3706
|
y.has(e) || y.set(e, {
|
|
3406
3707
|
boxWidth: t,
|
|
3407
3708
|
boxHeight: n
|
|
@@ -3411,14 +3712,14 @@ function oo(e) {
|
|
|
3411
3712
|
let i = d();
|
|
3412
3713
|
if (!i) return;
|
|
3413
3714
|
o.add(e);
|
|
3414
|
-
let a = Math.round(Math.max($, t * u()) *
|
|
3715
|
+
let a = Math.round(Math.max($, t * u()) * Yo), s = Math.max(t * n, 9216) * u() ** 2;
|
|
3415
3716
|
i.postMessage({
|
|
3416
3717
|
url: e,
|
|
3417
3718
|
targetWidth: a,
|
|
3418
3719
|
neededArea: s,
|
|
3419
3720
|
ratio: 8
|
|
3420
3721
|
});
|
|
3421
|
-
}, w =
|
|
3722
|
+
}, w = Ko(() => {
|
|
3422
3723
|
if (Z() && !(!t || o.size === 0)) {
|
|
3423
3724
|
t.terminate(), t = null;
|
|
3424
3725
|
for (let e of o) {
|
|
@@ -3446,13 +3747,13 @@ function oo(e) {
|
|
|
3446
3747
|
let a = {
|
|
3447
3748
|
url: "",
|
|
3448
3749
|
previousVisibility: e.style.visibility,
|
|
3449
|
-
timeout: setTimeout(() => v(e, null),
|
|
3750
|
+
timeout: setTimeout(() => v(e, null), Xo),
|
|
3450
3751
|
responsive: !0
|
|
3451
3752
|
}, o = () => {
|
|
3452
3753
|
/* v8 ignore next -- consider() only routes elements with an https src
|
|
3453
3754
|
here, so the final fallback arm is unreachable. */
|
|
3454
3755
|
let t = e.currentSrc || e.getAttribute("src") || "", i = e.getBoundingClientRect();
|
|
3455
|
-
if (!(/^https?:/.test(t) &&
|
|
3756
|
+
if (!(/^https?:/.test(t) && ns({
|
|
3456
3757
|
naturalWidth: e.naturalWidth,
|
|
3457
3758
|
naturalHeight: e.naturalHeight,
|
|
3458
3759
|
boxWidth: i.width || $,
|
|
@@ -3468,7 +3769,7 @@ function oo(e) {
|
|
|
3468
3769
|
v(e, o);
|
|
3469
3770
|
return;
|
|
3470
3771
|
}
|
|
3471
|
-
|
|
3772
|
+
os(t).then((a) => {
|
|
3472
3773
|
if (!(n || !s.has(e))) {
|
|
3473
3774
|
/* v8 ignore start -- a verdict can only appear via settle(), which
|
|
3474
3775
|
releases every held element of the url first, so a still-held
|
|
@@ -3511,7 +3812,7 @@ function oo(e) {
|
|
|
3511
3812
|
return;
|
|
3512
3813
|
}
|
|
3513
3814
|
let n = e.getBoundingClientRect();
|
|
3514
|
-
if (!
|
|
3815
|
+
if (!ns({
|
|
3515
3816
|
naturalWidth: e.naturalWidth,
|
|
3516
3817
|
naturalHeight: e.naturalHeight,
|
|
3517
3818
|
boxWidth: n.width || $,
|
|
@@ -3520,7 +3821,7 @@ function oo(e) {
|
|
|
3520
3821
|
})) return;
|
|
3521
3822
|
let o = r.get(a);
|
|
3522
3823
|
if (i(o)) {
|
|
3523
|
-
|
|
3824
|
+
Go() || ts(e) ? _(e, a, o) : (e.setAttribute(Gt, a), e.src = o);
|
|
3524
3825
|
return;
|
|
3525
3826
|
}
|
|
3526
3827
|
if (o === "opaque") {
|
|
@@ -3536,14 +3837,14 @@ function oo(e) {
|
|
|
3536
3837
|
return;
|
|
3537
3838
|
}
|
|
3538
3839
|
if (o) {
|
|
3539
|
-
|
|
3840
|
+
Go() || ts(e) ? _(e, a, o) : (e.setAttribute(Gt, a), e.src = o);
|
|
3540
3841
|
return;
|
|
3541
3842
|
}
|
|
3542
3843
|
s.set(e, {
|
|
3543
3844
|
url: a,
|
|
3544
3845
|
previousVisibility: e.style.visibility,
|
|
3545
|
-
timeout: setTimeout(() => v(e, null),
|
|
3546
|
-
}), e.style.visibility = "hidden", e.setAttribute(
|
|
3846
|
+
timeout: setTimeout(() => v(e, null), Xo)
|
|
3847
|
+
}), e.style.visibility = "hidden", e.setAttribute(Gt, a), e.src = Qo, os(a).then((t) => {
|
|
3547
3848
|
if (n || r.has(a)) return;
|
|
3548
3849
|
if (t) {
|
|
3549
3850
|
let e = URL.createObjectURL(t);
|
|
@@ -3570,23 +3871,23 @@ function oo(e) {
|
|
|
3570
3871
|
let k = (e) => {
|
|
3571
3872
|
let t = e.getAttribute("src") ?? "", n = s.get(e);
|
|
3572
3873
|
if (n && !n.responsive) {
|
|
3573
|
-
t === n.url && (e.src =
|
|
3874
|
+
t === n.url && (e.src = Qo);
|
|
3574
3875
|
return;
|
|
3575
3876
|
}
|
|
3576
|
-
let a = e.getAttribute(
|
|
3877
|
+
let a = e.getAttribute(Gt);
|
|
3577
3878
|
if (a) {
|
|
3578
3879
|
if (t === a) {
|
|
3579
3880
|
let t = r.get(a);
|
|
3580
3881
|
i(t) && (e.src = t);
|
|
3581
|
-
} else t !==
|
|
3882
|
+
} else t !== Qo && !t.startsWith("blob:") && e.removeAttribute(Gt);
|
|
3582
3883
|
}
|
|
3583
3884
|
}, A = !1, j = new MutationObserver((t) => {
|
|
3584
3885
|
if (!n) {
|
|
3585
|
-
if (
|
|
3886
|
+
if (Go()) {
|
|
3586
3887
|
if (A) return;
|
|
3587
|
-
A = !0,
|
|
3888
|
+
A = !0, qo(() => {
|
|
3588
3889
|
if (A = !1, !n) {
|
|
3589
|
-
for (let t of Array.from(e.querySelectorAll(`img[${
|
|
3890
|
+
for (let t of Array.from(e.querySelectorAll(`img[${Gt}]`))) k(t);
|
|
3590
3891
|
for (let e of [...s.keys()]) k(e);
|
|
3591
3892
|
}
|
|
3592
3893
|
});
|
|
@@ -3608,29 +3909,29 @@ function oo(e) {
|
|
|
3608
3909
|
l.clear();
|
|
3609
3910
|
};
|
|
3610
3911
|
}
|
|
3611
|
-
var
|
|
3612
|
-
function
|
|
3613
|
-
return typeof document > "u" || !document.body ? () => {} : (
|
|
3614
|
-
dispose:
|
|
3912
|
+
var cs = null;
|
|
3913
|
+
function ls() {
|
|
3914
|
+
return typeof document > "u" || !document.body ? () => {} : (cs ? cs.count += 1 : cs = {
|
|
3915
|
+
dispose: ss(document.body),
|
|
3615
3916
|
count: 1
|
|
3616
3917
|
}, () => {
|
|
3617
|
-
|
|
3918
|
+
cs && (--cs.count, cs.count <= 0 && (cs.dispose(), cs = null));
|
|
3618
3919
|
});
|
|
3619
3920
|
}
|
|
3620
3921
|
//#endregion
|
|
3621
3922
|
//#region src/core/engine/arrivalHold.ts
|
|
3622
|
-
var
|
|
3623
|
-
|
|
3624
|
-
|
|
3625
|
-
|
|
3626
|
-
|
|
3627
|
-
|
|
3923
|
+
var us = [
|
|
3924
|
+
G(U),
|
|
3925
|
+
G(Et),
|
|
3926
|
+
G(At),
|
|
3927
|
+
G(Lt),
|
|
3928
|
+
G(Gt)
|
|
3628
3929
|
].join(", ");
|
|
3629
|
-
function
|
|
3930
|
+
function ds(e) {
|
|
3630
3931
|
if (typeof MutationObserver > "u") return () => {};
|
|
3631
3932
|
let t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map(), o = (t) => {
|
|
3632
3933
|
let n = t instanceof Element ? t : t.parentElement;
|
|
3633
|
-
return !n || n === e || n.closest(
|
|
3934
|
+
return !n || n === e || n.closest(us) !== null;
|
|
3634
3935
|
}, s = (e, t, n, r) => e ? n === e.glass ? (e.pendingEcho ? e.pendingEcho = !1 : e.latest = n, e) : (e.latest = n, r(e.glass), e.pendingEcho = !0, e) : n === t ? null : (r(t), {
|
|
3635
3936
|
glass: t,
|
|
3636
3937
|
latest: n,
|
|
@@ -3660,12 +3961,12 @@ function uo(e) {
|
|
|
3660
3961
|
if (i.type === "childList") {
|
|
3661
3962
|
for (let e of Array.from(i.removedNodes)) if (!n.has(e)) {
|
|
3662
3963
|
if (e instanceof Element && t.delete(e)) {
|
|
3663
|
-
e.removeAttribute(
|
|
3964
|
+
e.removeAttribute(Lt);
|
|
3664
3965
|
continue;
|
|
3665
3966
|
}
|
|
3666
3967
|
(e instanceof Element || e.nodeType === Node.TEXT_NODE) && l(i.target).removed.push(e);
|
|
3667
3968
|
}
|
|
3668
|
-
for (let e of Array.from(i.addedNodes)) r.delete(e) || e instanceof Element && (e.closest(
|
|
3969
|
+
for (let e of Array.from(i.addedNodes)) r.delete(e) || e instanceof Element && (e.closest(us) || (e.setAttribute(Lt, ""), t.add(e), l(i.target).added.push(e)));
|
|
3669
3970
|
}
|
|
3670
3971
|
}
|
|
3671
3972
|
for (let [e, t] of u) {
|
|
@@ -3700,7 +4001,7 @@ function uo(e) {
|
|
|
3700
4001
|
c.disconnect();
|
|
3701
4002
|
for (let e of n) e.parentNode?.removeChild(e);
|
|
3702
4003
|
n.clear();
|
|
3703
|
-
for (let e of t) e instanceof HTMLElement &&
|
|
4004
|
+
for (let e of t) e instanceof HTMLElement && Bo(e), e.removeAttribute(Lt);
|
|
3704
4005
|
t.clear();
|
|
3705
4006
|
for (let [e, t] of i) e.isConnected && (e.nodeValue = t.latest);
|
|
3706
4007
|
i.clear();
|
|
@@ -3710,78 +4011,78 @@ function uo(e) {
|
|
|
3710
4011
|
}
|
|
3711
4012
|
//#endregion
|
|
3712
4013
|
//#region src/core/engine/compositorWarmUp.ts
|
|
3713
|
-
var
|
|
4014
|
+
var fs = 3e3, ps = [{ backgroundPosition: "0px 0px" }, { backgroundPosition: "48px 0px" }], ms = {
|
|
3714
4015
|
duration: 500,
|
|
3715
4016
|
iterations: Infinity,
|
|
3716
4017
|
direction: "alternate",
|
|
3717
4018
|
easing: "linear"
|
|
3718
|
-
},
|
|
3719
|
-
|
|
4019
|
+
}, hs = "position:fixed;top:0;left:0;width:48px;height:48px;pointer-events:none;opacity:0.006;background-image:linear-gradient(90deg,#808080 0 24px,#909090 24px 48px);background-repeat:repeat;background-size:48px 48px;", gs = null, _s = null, vs = 0, ys = () => {
|
|
4020
|
+
vs = 0, _s?.pause(), gs?.setAttribute(Ut, "idle");
|
|
3720
4021
|
};
|
|
3721
|
-
function
|
|
4022
|
+
function bs() {
|
|
3722
4023
|
if (typeof document > "u" || !document.body || typeof Element > "u" || typeof Element.prototype.animate != "function") return () => {};
|
|
3723
|
-
if (
|
|
4024
|
+
if (vs += 1, gs && !gs.isConnected && (_s?.cancel(), _s = null, gs = null), gs) vs === 1 && (gs.setAttribute(Ut, "on"), _s?.play());
|
|
3724
4025
|
else {
|
|
3725
|
-
|
|
4026
|
+
gs = document.createElement("div"), gs.setAttribute(Ut, "on"), gs.setAttribute("aria-hidden", "true"), gs.setAttribute("style", hs), document.body.appendChild(gs);
|
|
3726
4027
|
try {
|
|
3727
|
-
|
|
4028
|
+
_s = gs.animate(ps, ms);
|
|
3728
4029
|
} catch {
|
|
3729
|
-
|
|
4030
|
+
_s = null;
|
|
3730
4031
|
}
|
|
3731
4032
|
}
|
|
3732
4033
|
let e = !1, t = setTimeout(() => {
|
|
3733
|
-
e || (e = !0, --
|
|
3734
|
-
},
|
|
4034
|
+
e || (e = !0, --vs, vs <= 0 && ys());
|
|
4035
|
+
}, fs);
|
|
3735
4036
|
return () => {
|
|
3736
|
-
e || (e = !0, clearTimeout(t), --
|
|
4037
|
+
e || (e = !0, clearTimeout(t), --vs, vs <= 0 && ys());
|
|
3737
4038
|
};
|
|
3738
4039
|
}
|
|
3739
4040
|
//#endregion
|
|
3740
4041
|
//#region src/core/engine/emulationNotice.ts
|
|
3741
|
-
var
|
|
4042
|
+
var xs = () => {
|
|
3742
4043
|
if (typeof navigator > "u") return !1;
|
|
3743
4044
|
let e = navigator.platform ?? "";
|
|
3744
4045
|
return /Mac/i.test(e) ? (navigator.maxTouchPoints ?? 0) > 0 : !1;
|
|
3745
|
-
},
|
|
3746
|
-
|
|
3747
|
-
},
|
|
4046
|
+
}, Ss = !1, Cs = () => {
|
|
4047
|
+
Ss || !Z() || !xs() || (Ss = !0, console.warn("[flemo] DevTools device emulation detected. The emulated view is composited through an extra scaling pass, so transitions can show text shimmer and settle flashes that do NOT exist in a plain window or on a real device. Judge motion quality outside device emulation."));
|
|
4048
|
+
}, ws = (e) => {
|
|
3748
4049
|
let t = e.parentElement ?? e, n = Array.from(t.querySelectorAll(`[${U}]`)).filter((n) => {
|
|
3749
|
-
let r = n.closest(
|
|
4050
|
+
let r = n.closest(G(it));
|
|
3750
4051
|
return !r || r === e || !t.contains(r);
|
|
3751
4052
|
}), r = e.getAttribute(it);
|
|
3752
4053
|
if (r === null) return n;
|
|
3753
|
-
let i = Array.from(e.ownerDocument.querySelectorAll(
|
|
4054
|
+
let i = Array.from(e.ownerDocument.querySelectorAll(K(wt, r)));
|
|
3754
4055
|
return i.length === 0 ? n : [...n, ...i];
|
|
3755
|
-
},
|
|
4056
|
+
}, Ts = (e, t) => {
|
|
3756
4057
|
let [n, r] = t.split("-");
|
|
3757
|
-
return
|
|
3758
|
-
},
|
|
3759
|
-
let n = e.closest(
|
|
3760
|
-
return Array.from(e.ownerDocument.querySelectorAll(`${
|
|
4058
|
+
return ws(e).filter((e) => e.getAttribute("data-flemo-status") === n && e.getAttribute("data-flemo-active") === r);
|
|
4059
|
+
}, Es = (e, t) => {
|
|
4060
|
+
let n = e.closest(G("data-flemo-router"))?.getAttribute("data-flemo-router") ?? null;
|
|
4061
|
+
return Array.from(e.ownerDocument.querySelectorAll(`${G(U)}${K(at, t)}`)).filter((e) => {
|
|
3761
4062
|
if (n === null) return !0;
|
|
3762
|
-
let t = e.closest(
|
|
4063
|
+
let t = e.closest(G(ct));
|
|
3763
4064
|
return !t || t.getAttribute(ct) === n;
|
|
3764
4065
|
});
|
|
3765
|
-
},
|
|
3766
|
-
let t = e.closest(
|
|
3767
|
-
return Array.from(e.ownerDocument.querySelectorAll(`[${U}][${
|
|
4066
|
+
}, Ds = (e, t) => Es(e, t).filter((e) => e.parentElement?.closest(`[${W}]`) == null), Os = (e) => {
|
|
4067
|
+
let t = e.closest(G("data-flemo-router"))?.getAttribute("data-flemo-router") ?? null;
|
|
4068
|
+
return Array.from(e.ownerDocument.querySelectorAll(`[${U}][${W}]`)).filter((e) => {
|
|
3768
4069
|
/* v8 ignore next -- a part reached by a document query always has a parent;
|
|
3769
4070
|
the optional chain is a guard against a detached caller, not a path. */
|
|
3770
4071
|
if (e.parentElement?.closest("[data-flemo-anim-hold]") != null) return !1;
|
|
3771
4072
|
if (t === null) return !0;
|
|
3772
|
-
let n = e.closest(
|
|
4073
|
+
let n = e.closest(G(ct));
|
|
3773
4074
|
return !n || n.getAttribute("data-flemo-router") === t;
|
|
3774
4075
|
});
|
|
3775
|
-
},
|
|
4076
|
+
}, ks = (e, t, n) => {
|
|
3776
4077
|
let r = 0;
|
|
3777
4078
|
for (let e of [`${n}-true`, `${n}-false`]) {
|
|
3778
|
-
if (!
|
|
4079
|
+
if (!Nr(t, e)) continue;
|
|
3779
4080
|
let n = H(t, e);
|
|
3780
4081
|
r = Math.max(r, (n.delay + n.duration) * 1e3);
|
|
3781
4082
|
}
|
|
3782
|
-
for (let i of
|
|
4083
|
+
for (let i of Es(e, n)) {
|
|
3783
4084
|
let e = Ge(i.getAttribute(U), t), a = `${n}-${i.getAttribute(ot)}`;
|
|
3784
|
-
if (!e || !
|
|
4085
|
+
if (!e || !Nr(e, a)) continue;
|
|
3785
4086
|
let o = H(e, a);
|
|
3786
4087
|
r = Math.max(r, (o.delay + o.duration) * 1e3);
|
|
3787
4088
|
}
|
|
@@ -3789,31 +4090,31 @@ var xo = () => {
|
|
|
3789
4090
|
if (i) {
|
|
3790
4091
|
let e = Be(t, i);
|
|
3791
4092
|
for (let t of [`${n}-true`, `${n}-false`]) {
|
|
3792
|
-
if (!
|
|
4093
|
+
if (!Nr(e, t)) continue;
|
|
3793
4094
|
let n = H(e, t);
|
|
3794
4095
|
r = Math.max(r, (n.delay + n.duration) * 1e3);
|
|
3795
4096
|
}
|
|
3796
4097
|
}
|
|
3797
4098
|
return r;
|
|
3798
|
-
},
|
|
4099
|
+
}, As = () => {}, js = .004, Ms = (e, t) => {
|
|
3799
4100
|
let n = e.ownerDocument?.defaultView;
|
|
3800
4101
|
if (!n) return !1;
|
|
3801
4102
|
let r = e;
|
|
3802
4103
|
for (; r;) {
|
|
3803
|
-
if (Number(n.getComputedStyle(r).opacity) <=
|
|
4104
|
+
if (Number(n.getComputedStyle(r).opacity) <= js) return !0;
|
|
3804
4105
|
if (r === t) break;
|
|
3805
4106
|
r = r.parentElement;
|
|
3806
4107
|
}
|
|
3807
4108
|
return !1;
|
|
3808
4109
|
};
|
|
3809
|
-
function
|
|
3810
|
-
if (typeof e.getAnimations != "function") return
|
|
4110
|
+
function Ns(e) {
|
|
4111
|
+
if (typeof e.getAnimations != "function") return As;
|
|
3811
4112
|
let t = /* @__PURE__ */ new Set(), n = () => {
|
|
3812
4113
|
for (let n of e.getAnimations({ subtree: !0 })) {
|
|
3813
4114
|
if (t.size >= 128) return;
|
|
3814
4115
|
if (t.has(n) || (n.animationName ?? "").startsWith("flemo-") || n.playState !== "running") continue;
|
|
3815
4116
|
let r = n.effect?.target;
|
|
3816
|
-
if (r instanceof Element &&
|
|
4117
|
+
if (r instanceof Element && Ms(r, e)) try {
|
|
3817
4118
|
n.pause(), t.add(n);
|
|
3818
4119
|
} catch {}
|
|
3819
4120
|
}
|
|
@@ -3842,41 +4143,41 @@ function No(e) {
|
|
|
3842
4143
|
}
|
|
3843
4144
|
//#endregion
|
|
3844
4145
|
//#region src/core/engine/responseHold.ts
|
|
3845
|
-
var
|
|
3846
|
-
let e =
|
|
3847
|
-
|
|
4146
|
+
var Ps = !1, Fs = 0, Is = [], Ls = () => {
|
|
4147
|
+
let e = Is;
|
|
4148
|
+
Is = [];
|
|
3848
4149
|
for (let t of e) t();
|
|
3849
|
-
},
|
|
3850
|
-
if (
|
|
3851
|
-
|
|
4150
|
+
}, Rs = (e) => /event-stream/i.test(e.headers.get("content-type") ?? ""), zs = () => {
|
|
4151
|
+
if (Ps || typeof window > "u" || typeof window.fetch != "function") return;
|
|
4152
|
+
Ps = !0;
|
|
3852
4153
|
let e = window.fetch.bind(window);
|
|
3853
|
-
window.fetch = (...t) => e(...t).then((e) =>
|
|
3854
|
-
|
|
4154
|
+
window.fetch = (...t) => e(...t).then((e) => Fs <= 0 || Rs(e) ? e : new Promise((t) => {
|
|
4155
|
+
Is.push(() => t(e));
|
|
3855
4156
|
}), (e) => {
|
|
3856
|
-
if (
|
|
4157
|
+
if (Fs <= 0) throw e;
|
|
3857
4158
|
return new Promise((t, n) => {
|
|
3858
|
-
|
|
4159
|
+
Is.push(() => n(e));
|
|
3859
4160
|
});
|
|
3860
4161
|
});
|
|
3861
|
-
},
|
|
3862
|
-
function
|
|
4162
|
+
}, Bs = 2e3;
|
|
4163
|
+
function Vs(e = Bs) {
|
|
3863
4164
|
/* v8 ignore next -- SSR guard: without fetch there is nothing to hold. */
|
|
3864
|
-
if (
|
|
3865
|
-
|
|
4165
|
+
if (zs(), !Ps) return () => {};
|
|
4166
|
+
Fs += 1;
|
|
3866
4167
|
let t = !1, n = null, r = () => {
|
|
3867
|
-
t || (t = !0, n !== null && clearTimeout(n),
|
|
4168
|
+
t || (t = !0, n !== null && clearTimeout(n), Fs = Math.max(0, Fs - 1), Fs === 0 && Ls());
|
|
3868
4169
|
};
|
|
3869
|
-
return typeof setTimeout == "function" && (n = setTimeout(r, Math.max(
|
|
4170
|
+
return typeof setTimeout == "function" && (n = setTimeout(r, Math.max(Bs, e))), r;
|
|
3870
4171
|
}
|
|
3871
|
-
|
|
4172
|
+
zs();
|
|
3872
4173
|
//#endregion
|
|
3873
4174
|
//#region src/core/engine/flightHolds.ts
|
|
3874
|
-
var
|
|
4175
|
+
var Hs = 1500, Us = 400, Ws = (e) => {
|
|
3875
4176
|
let t = null, n = null, r = null;
|
|
3876
4177
|
return { sync: ({ isTransitional: i, isActive: a, status: o, transitionName: s, getScope: c }) => {
|
|
3877
|
-
i && (
|
|
4178
|
+
i && (Cs(), r &&= (clearTimeout(r), null), n ||= bs()), !i && n && !r && (typeof setTimeout == "function" ? r = setTimeout(() => {
|
|
3878
4179
|
r = null, n?.(), n = null;
|
|
3879
|
-
},
|
|
4180
|
+
}, Us) : (n(), n = null));
|
|
3880
4181
|
let l = i && (a ? o === "PUSHING" || o === "REPLACING" : o === "POPPING");
|
|
3881
4182
|
if (!l && t) {
|
|
3882
4183
|
let n = t;
|
|
@@ -3886,35 +4187,35 @@ var Ho = 1500, Uo = 400, Wo = (e) => {
|
|
|
3886
4187
|
e.landNow();
|
|
3887
4188
|
let n = c();
|
|
3888
4189
|
if (n) {
|
|
3889
|
-
|
|
3890
|
-
let e =
|
|
4190
|
+
Oo(n);
|
|
4191
|
+
let e = ds(n), r = Ns(n), i = Vs(ks(n, ke(s), o) + Hs), a = Wo();
|
|
3891
4192
|
t = () => {
|
|
3892
4193
|
i(), r(), e(), a();
|
|
3893
4194
|
};
|
|
3894
4195
|
}
|
|
3895
4196
|
}
|
|
3896
4197
|
} };
|
|
3897
|
-
},
|
|
4198
|
+
}, Gs = (e, t) => {
|
|
3898
4199
|
for (let n of Array.from(e.children)) {
|
|
3899
4200
|
let e = n;
|
|
3900
4201
|
if (e.matches(t)) return e;
|
|
3901
4202
|
}
|
|
3902
4203
|
return null;
|
|
3903
|
-
},
|
|
4204
|
+
}, Ks = (e) => {
|
|
3904
4205
|
if (!e) return [];
|
|
3905
|
-
let t =
|
|
4206
|
+
let t = Gs(e, G(bt));
|
|
3906
4207
|
if (t) return [t];
|
|
3907
|
-
let n =
|
|
3908
|
-
return n ? Array.from(document.querySelectorAll(
|
|
3909
|
-
},
|
|
4208
|
+
let n = Gs(e, G(it))?.getAttribute(it);
|
|
4209
|
+
return n ? Array.from(document.querySelectorAll(G(xt) + K(St, n))) : [];
|
|
4210
|
+
}, qs = (e) => e ? e.getAttribute("data-flemo-bar-riding") === "true" || e.hasAttribute("data-flemo-layer-host") || e.hasAttribute("data-flemo-layer-slot") : !1, Js = 1e3 / 60 * 2, Ys = "flemo-", Xs = /* @__PURE__ */ new WeakMap(), Zs = (e, t, n) => {
|
|
3910
4211
|
if (typeof e.getAnimations == "function") for (let r of e.getAnimations({ subtree: !0 })) {
|
|
3911
4212
|
let e = r.animationName;
|
|
3912
|
-
if (typeof e != "string" || !e.startsWith(
|
|
4213
|
+
if (typeof e != "string" || !e.startsWith(Ys) || r.playState !== "running" || Xs.get(r) === n) continue;
|
|
3913
4214
|
let i = r.startTime;
|
|
3914
|
-
typeof i == "number" && (r.startTime = i + t,
|
|
4215
|
+
typeof i == "number" && (r.startTime = i + t, Xs.set(r, n));
|
|
3915
4216
|
}
|
|
3916
|
-
},
|
|
3917
|
-
function
|
|
4217
|
+
}, Qs = /* @__PURE__ */ new WeakSet(), $s = 1e3, ec = 3e3;
|
|
4218
|
+
function tc(e, t, n) {
|
|
3918
4219
|
if (typeof MutationObserver > "u" || typeof requestAnimationFrame != "function") return () => {};
|
|
3919
4220
|
let r = 0, i = !1, a = !1, o = !1, s = null, c = [], l = null, u = () => {
|
|
3920
4221
|
s !== null && (clearTimeout(s), s = null);
|
|
@@ -3928,7 +4229,7 @@ function ts(e, t, n) {
|
|
|
3928
4229
|
i = !0, m.disconnect();
|
|
3929
4230
|
for (let e of t()) if (!(!e || typeof e.getAnimations != "function")) for (let t of e.getAnimations({ subtree: !0 })) {
|
|
3930
4231
|
let e = t.animationName;
|
|
3931
|
-
if (typeof e != "string" || !e.startsWith(
|
|
4232
|
+
if (typeof e != "string" || !e.startsWith(Ys) || t.playState !== "running" || Qs.has(t)) continue;
|
|
3932
4233
|
let n = t.currentTime;
|
|
3933
4234
|
if (!(typeof n == "number" && n > 33.333333333333336)) {
|
|
3934
4235
|
try {
|
|
@@ -3936,18 +4237,18 @@ function ts(e, t, n) {
|
|
|
3936
4237
|
} catch {
|
|
3937
4238
|
continue;
|
|
3938
4239
|
}
|
|
3939
|
-
|
|
4240
|
+
Qs.add(t), c.push(t);
|
|
3940
4241
|
}
|
|
3941
4242
|
}
|
|
3942
4243
|
if (c.length === 0) return;
|
|
3943
|
-
r = requestAnimationFrame(f), typeof setTimeout == "function" && (s = setTimeout(f, $
|
|
3944
|
-
let e =
|
|
4244
|
+
r = requestAnimationFrame(f), typeof setTimeout == "function" && (s = setTimeout(f, $s));
|
|
4245
|
+
let e = oc(t, () => {
|
|
3945
4246
|
a || n?.();
|
|
3946
4247
|
});
|
|
3947
4248
|
if (l = e, typeof setTimeout == "function") {
|
|
3948
4249
|
let t = setTimeout(() => {
|
|
3949
4250
|
l === e && (l = null), e();
|
|
3950
|
-
},
|
|
4251
|
+
}, ec), n = e;
|
|
3951
4252
|
l = () => {
|
|
3952
4253
|
clearTimeout(t), n();
|
|
3953
4254
|
};
|
|
@@ -3957,21 +4258,21 @@ function ts(e, t, n) {
|
|
|
3957
4258
|
});
|
|
3958
4259
|
return e.getAttribute("data-flemo-anim-hold") === "false" ? p() : m.observe(e, {
|
|
3959
4260
|
attributes: !0,
|
|
3960
|
-
attributeFilter: [
|
|
4261
|
+
attributeFilter: [W]
|
|
3961
4262
|
}), () => {
|
|
3962
4263
|
a = !0, m.disconnect(), r &&= (cancelAnimationFrame(r), 0), u(), l?.(), l = null, i && !o && d();
|
|
3963
4264
|
};
|
|
3964
4265
|
}
|
|
3965
|
-
var
|
|
3966
|
-
function
|
|
4266
|
+
var nc = 150, rc = 4e3, ic = 400;
|
|
4267
|
+
function ac(e, t, n = !0, r = !1) {
|
|
3967
4268
|
/* v8 ignore next -- same rAF guard as the watcher below. */
|
|
3968
4269
|
if (typeof requestAnimationFrame != "function") return () => {};
|
|
3969
4270
|
let i = [], a = /* @__PURE__ */ new Map();
|
|
3970
4271
|
for (let t of e()) if (!(!t || typeof t.getAnimations != "function")) for (let e of t.getAnimations({ subtree: !0 })) {
|
|
3971
4272
|
let t = e.animationName;
|
|
3972
|
-
if (typeof t != "string" || !t.startsWith(
|
|
4273
|
+
if (typeof t != "string" || !t.startsWith(Ys) || e.playState !== "running" || Qs.has(e)) continue;
|
|
3973
4274
|
let n = e.currentTime;
|
|
3974
|
-
typeof n == "number" && n > 33.333333333333336 || (n === null || typeof n == "number") && (
|
|
4275
|
+
typeof n == "number" && n > 33.333333333333336 || (n === null || typeof n == "number") && (Qs.add(e), i.push(e), a.set(e, typeof n == "number" ? n : 0));
|
|
3975
4276
|
}
|
|
3976
4277
|
if (i.length === 0) return () => {};
|
|
3977
4278
|
let o = 0, s = null, c = !1, l = !1, u = !1, d = null, f = null, p = 0, m = (e) => {
|
|
@@ -3984,7 +4285,7 @@ function as(e, t, n = !0, r = !1) {
|
|
|
3984
4285
|
if (typeof r != "number" || typeof i != "number") continue;
|
|
3985
4286
|
let o = (a.get(n) ?? 0) + e;
|
|
3986
4287
|
n.startTime = i + (r - o), a.set(n, o);
|
|
3987
|
-
let s = r +
|
|
4288
|
+
let s = r + rc;
|
|
3988
4289
|
t = Math.max(t, s - o);
|
|
3989
4290
|
}
|
|
3990
4291
|
return t;
|
|
@@ -3992,7 +4293,7 @@ function as(e, t, n = !0, r = !1) {
|
|
|
3992
4293
|
if (c) return;
|
|
3993
4294
|
if (d === null && (d = e), f !== null) {
|
|
3994
4295
|
let t = e - f;
|
|
3995
|
-
p += Math.min(Math.max(0, t),
|
|
4296
|
+
p += Math.min(Math.max(0, t), Js);
|
|
3996
4297
|
}
|
|
3997
4298
|
if (f = e, !l) {
|
|
3998
4299
|
if (l = !0, r) {
|
|
@@ -4004,7 +4305,7 @@ function as(e, t, n = !0, r = !1) {
|
|
|
4004
4305
|
if (typeof n != "number" || typeof r != "number") continue;
|
|
4005
4306
|
let i = a.get(t) ?? 0;
|
|
4006
4307
|
if (n <= i + 33.333333333333336) continue;
|
|
4007
|
-
let o = n - (i +
|
|
4308
|
+
let o = n - (i + Js);
|
|
4008
4309
|
t.startTime = r + o, e = Math.max(e, o);
|
|
4009
4310
|
}
|
|
4010
4311
|
e > 0 && t?.(e);
|
|
@@ -4018,13 +4319,13 @@ function as(e, t, n = !0, r = !1) {
|
|
|
4018
4319
|
if (e.playState !== "running") continue;
|
|
4019
4320
|
let t = e.startTime;
|
|
4020
4321
|
if (typeof t == "number") {
|
|
4021
|
-
e.startTime = t +
|
|
4322
|
+
e.startTime = t + rc;
|
|
4022
4323
|
continue;
|
|
4023
4324
|
}
|
|
4024
4325
|
let n = e.timeline?.currentTime;
|
|
4025
|
-
typeof n == "number" && (e.startTime = n +
|
|
4326
|
+
typeof n == "number" && (e.startTime = n + rc);
|
|
4026
4327
|
}
|
|
4027
|
-
typeof setTimeout == "function" && (s = setTimeout(() => m(p +
|
|
4328
|
+
typeof setTimeout == "function" && (s = setTimeout(() => m(p + Js), ic)), o = requestAnimationFrame(h);
|
|
4028
4329
|
return;
|
|
4029
4330
|
}
|
|
4030
4331
|
if (!u) {
|
|
@@ -4047,13 +4348,13 @@ function as(e, t, n = !0, r = !1) {
|
|
|
4047
4348
|
t?.(g);
|
|
4048
4349
|
return;
|
|
4049
4350
|
}
|
|
4050
|
-
e - d <
|
|
4351
|
+
e - d < nc && (o = requestAnimationFrame(h));
|
|
4051
4352
|
};
|
|
4052
4353
|
return o = requestAnimationFrame(h), () => {
|
|
4053
|
-
c = !0, cancelAnimationFrame(o), s !== null && clearTimeout(s), l && !u && m(p +
|
|
4354
|
+
c = !0, cancelAnimationFrame(o), s !== null && clearTimeout(s), l && !u && m(p + Js);
|
|
4054
4355
|
};
|
|
4055
4356
|
}
|
|
4056
|
-
function
|
|
4357
|
+
function oc(e, t) {
|
|
4057
4358
|
/* v8 ignore next -- every runtime under test has rAF; the guard shields
|
|
4058
4359
|
exotic embedders. */
|
|
4059
4360
|
if (typeof requestAnimationFrame != "function") return () => {};
|
|
@@ -4062,8 +4363,8 @@ function os(e, t) {
|
|
|
4062
4363
|
if (r !== null) {
|
|
4063
4364
|
let n = o - r;
|
|
4064
4365
|
if (n > 33.333333333333336) {
|
|
4065
|
-
let r = n -
|
|
4066
|
-
for (let t of e()) t &&
|
|
4366
|
+
let r = n - Js;
|
|
4367
|
+
for (let t of e()) t && Zs(t, r, o);
|
|
4067
4368
|
t?.(r);
|
|
4068
4369
|
}
|
|
4069
4370
|
}
|
|
@@ -4074,29 +4375,29 @@ function os(e, t) {
|
|
|
4074
4375
|
i = !0, cancelAnimationFrame(n);
|
|
4075
4376
|
};
|
|
4076
4377
|
}
|
|
4077
|
-
var
|
|
4078
|
-
function
|
|
4378
|
+
var sc = /* @__PURE__ */ new WeakMap();
|
|
4379
|
+
function cc(e, t, n, r = !0, i = !1) {
|
|
4079
4380
|
if (typeof MutationObserver > "u" || typeof requestAnimationFrame != "function") return () => {};
|
|
4080
|
-
let a =
|
|
4081
|
-
if (a) return a.refs += 1, a.pendingDrop !== null && (clearTimeout(a.pendingDrop), a.pendingDrop = null), () =>
|
|
4381
|
+
let a = sc.get(e);
|
|
4382
|
+
if (a) return a.refs += 1, a.pendingDrop !== null && (clearTimeout(a.pendingDrop), a.pendingDrop = null), () => lc(e);
|
|
4082
4383
|
let o = null, s = !1, c = !1, l = () => {
|
|
4083
|
-
s || c || (s = !0, u.disconnect(), o =
|
|
4384
|
+
s || c || (s = !0, u.disconnect(), o = ac(t, n, r, i));
|
|
4084
4385
|
}, u = new MutationObserver(() => {
|
|
4085
4386
|
e.getAttribute("data-flemo-anim-hold") === "false" && l();
|
|
4086
4387
|
});
|
|
4087
4388
|
return e.getAttribute("data-flemo-anim-hold") === "false" ? l() : u.observe(e, {
|
|
4088
4389
|
attributes: !0,
|
|
4089
|
-
attributeFilter: [
|
|
4090
|
-
}),
|
|
4390
|
+
attributeFilter: [W]
|
|
4391
|
+
}), sc.set(e, {
|
|
4091
4392
|
refs: 1,
|
|
4092
4393
|
pendingDrop: null,
|
|
4093
4394
|
dispose: () => {
|
|
4094
|
-
c = !0, u.disconnect(), o?.(),
|
|
4395
|
+
c = !0, u.disconnect(), o?.(), sc.delete(e);
|
|
4095
4396
|
}
|
|
4096
|
-
}), () =>
|
|
4397
|
+
}), () => lc(e);
|
|
4097
4398
|
}
|
|
4098
|
-
var
|
|
4099
|
-
let t =
|
|
4399
|
+
var lc = (e) => {
|
|
4400
|
+
let t = sc.get(e);
|
|
4100
4401
|
if (t && (--t.refs, !(t.refs > 0))) {
|
|
4101
4402
|
/* v8 ignore next 4 -- setTimeout exists in every runtime under test. */
|
|
4102
4403
|
if (typeof setTimeout != "function") {
|
|
@@ -4105,11 +4406,11 @@ var ls = (e) => {
|
|
|
4105
4406
|
}
|
|
4106
4407
|
t.pendingDrop !== null && clearTimeout(t.pendingDrop), t.pendingDrop = setTimeout(t.dispose, 0);
|
|
4107
4408
|
}
|
|
4108
|
-
},
|
|
4409
|
+
}, uc = 1 / 255, dc = 400, fc = 24, pc = /* @__PURE__ */ new Set([
|
|
4109
4410
|
"x",
|
|
4110
4411
|
"y",
|
|
4111
4412
|
"opacity"
|
|
4112
|
-
]),
|
|
4413
|
+
]), mc = (e, t, n) => {
|
|
4113
4414
|
if (!e || typeof e != "object") return;
|
|
4114
4415
|
let r = e[t];
|
|
4115
4416
|
if (r === void 0) return;
|
|
@@ -4127,7 +4428,7 @@ var ls = (e) => {
|
|
|
4127
4428
|
return Number.isNaN(e) ? null : e;
|
|
4128
4429
|
}
|
|
4129
4430
|
return null;
|
|
4130
|
-
},
|
|
4431
|
+
}, hc = (e, t, n) => {
|
|
4131
4432
|
let r = /* @__PURE__ */ new Set();
|
|
4132
4433
|
for (let t of [e.from, e.to]) if (!(!t || typeof t != "object")) for (let e of Object.keys(t)) r.add(e);
|
|
4133
4434
|
if (r.size === 0) return null;
|
|
@@ -4135,25 +4436,25 @@ var ls = (e) => {
|
|
|
4135
4436
|
for (let a of r) {
|
|
4136
4437
|
let r = e.from && typeof e.from == "object" ? e.from[a] : void 0, o = e.to && typeof e.to == "object" ? e.to[a] : void 0;
|
|
4137
4438
|
if (r !== void 0 && r === o) continue;
|
|
4138
|
-
if (!
|
|
4139
|
-
let s =
|
|
4439
|
+
if (!pc.has(a)) return null;
|
|
4440
|
+
let s = mc(e.from, a, t), c = mc(e.to, a, t);
|
|
4140
4441
|
if (s === null || c === null || s === void 0 || c === void 0) return null;
|
|
4141
4442
|
let l = Math.abs(c - s);
|
|
4142
4443
|
if (l === 0) continue;
|
|
4143
|
-
let u = a === "opacity" ?
|
|
4444
|
+
let u = a === "opacity" ? uc : 1 / Math.max(1, n);
|
|
4144
4445
|
i = Math.min(i, u / l);
|
|
4145
4446
|
}
|
|
4146
4447
|
return !Number.isFinite(i) || i <= 0 || i >= 1 ? null : i;
|
|
4147
|
-
},
|
|
4448
|
+
}, gc = (e, t, n) => {
|
|
4148
4449
|
if (e.duration <= 0) return null;
|
|
4149
|
-
let r =
|
|
4450
|
+
let r = hc(e, t, n);
|
|
4150
4451
|
if (r === null) return null;
|
|
4151
|
-
let i =
|
|
4152
|
-
for (let e =
|
|
4452
|
+
let i = Xr(e.ease), a = dc;
|
|
4453
|
+
for (let e = dc; e >= 0 && !(Math.abs(1 - i(e / dc)) > r); --e) a = e;
|
|
4153
4454
|
if (a === 0) return null;
|
|
4154
|
-
let o = (e.delay + e.duration * (a /
|
|
4155
|
-
return (e.delay + e.duration) * 1e3 - o <
|
|
4156
|
-
},
|
|
4455
|
+
let o = (e.delay + e.duration * (a / dc)) * 1e3;
|
|
4456
|
+
return (e.delay + e.duration) * 1e3 - o < fc ? null : o;
|
|
4457
|
+
}, _c = 400, vc = 4, yc = (e) => +e.toFixed(5) + 0, bc = 12, xc = (e, t, n, r) => {
|
|
4157
4458
|
if (e.duration <= 0 || !Number.isFinite(r) || r <= 0) return null;
|
|
4158
4459
|
let i = Number.isFinite(n) && n > 0 ? n : 1, a = /* @__PURE__ */ new Set();
|
|
4159
4460
|
for (let t of [e.from, e.to]) if (!(!t || typeof t != "object")) for (let e of Object.keys(t)) a.add(e);
|
|
@@ -4162,20 +4463,20 @@ var ls = (e) => {
|
|
|
4162
4463
|
let r = e.from && typeof e.from == "object" ? e.from[n] : void 0, a = e.to && typeof e.to == "object" ? e.to[n] : void 0;
|
|
4163
4464
|
if (r !== void 0 && r === a) continue;
|
|
4164
4465
|
if (n !== "x" && n !== "y") return null;
|
|
4165
|
-
let s =
|
|
4466
|
+
let s = mc(e.from, n, t), c = mc(e.to, n, t);
|
|
4166
4467
|
if (s === null || c === null || s === void 0 || c === void 0) return null;
|
|
4167
4468
|
o = Math.max(o, Math.abs(c - s) * i);
|
|
4168
4469
|
}
|
|
4169
|
-
if (o <
|
|
4170
|
-
let s =
|
|
4171
|
-
for (let e = 0; e <=
|
|
4172
|
-
let l = e.duration * 1e3, u = l /
|
|
4470
|
+
if (o < bc) return null;
|
|
4471
|
+
let s = Xr(e.ease), c = Array(401);
|
|
4472
|
+
for (let e = 0; e <= _c; e += 1) c[e] = s(e / _c);
|
|
4473
|
+
let l = e.duration * 1e3, u = l / _c, d = 1 / o * (u / r), f = _c, p = 0;
|
|
4173
4474
|
for (let e = 399; e >= 0 && (p = Math.max(p, Math.abs(c[e + 1] - c[e])), !(p > d)); --e) f = e;
|
|
4174
|
-
if (f === 0 || f >=
|
|
4175
|
-
for (let e = f; e <
|
|
4475
|
+
if (f === 0 || f >= _c) return null;
|
|
4476
|
+
for (let e = f; e < _c; e += 1) if (c[e + 1] < c[e] || c[e] > 1) return null;
|
|
4176
4477
|
let m = (1 - c[f]) * o;
|
|
4177
|
-
if (m <= 1 || m >
|
|
4178
|
-
let h = f /
|
|
4478
|
+
if (m <= 1 || m > bc) return null;
|
|
4479
|
+
let h = f / _c * 100, g = m * r / l * 100;
|
|
4179
4480
|
/* v8 ignore next 2 -- unreachable for a decelerating cubic bezier, and kept
|
|
4180
4481
|
anyway. The sprint's share of the timeline works out to roughly (samples
|
|
4181
4482
|
of travel remaining at the engagement velocity) / 4 percent, independent
|
|
@@ -4188,14 +4489,14 @@ var ls = (e) => {
|
|
|
4188
4489
|
that keeps one from emitting a curve that lands past its own end. */
|
|
4189
4490
|
if (h + g >= 100) return null;
|
|
4190
4491
|
let _ = [];
|
|
4191
|
-
for (let e = 0; e <= f; e +=
|
|
4192
|
-
return _.push(`${
|
|
4193
|
-
},
|
|
4492
|
+
for (let e = 0; e <= f; e += vc) _.push(`${yc(c[e])} ${yc(e / _c * 100)}%`);
|
|
4493
|
+
return _.push(`${yc(c[f])} ${yc(h)}%`), _.push(`1 ${yc(h + g)}%`, "1 100%"), `linear(${_.join(", ")})`;
|
|
4494
|
+
}, Sc = /* @__PURE__ */ new WeakMap(), Cc = Symbol("flemo-layer-owner"), wc = (e, t) => {
|
|
4194
4495
|
t.willChange ? e.style.willChange = t.willChange : e.style.removeProperty("will-change"), t.contain ? e.style.contain = t.contain : e.style.removeProperty("contain");
|
|
4195
|
-
},
|
|
4496
|
+
}, Tc = (e, t) => {
|
|
4196
4497
|
let n = e.trim() === "none" ? "" : e.trim();
|
|
4197
4498
|
return t ? n ? /\b(layout|strict|content)\b/.test(n) ? n : `${n} layout` : "layout" : n;
|
|
4198
|
-
},
|
|
4499
|
+
}, Ec = (e, t) => {
|
|
4199
4500
|
let n = /* @__PURE__ */ new Set(), r = !1;
|
|
4200
4501
|
for (let e of t.willChange.split(",")) {
|
|
4201
4502
|
let t = e.trim();
|
|
@@ -4206,13 +4507,13 @@ var ls = (e) => {
|
|
|
4206
4507
|
e.containment && (r = !0);
|
|
4207
4508
|
}
|
|
4208
4509
|
e.style.willChange = [...n].join(", ");
|
|
4209
|
-
let i =
|
|
4510
|
+
let i = Tc(t.contain, r);
|
|
4210
4511
|
i ? e.style.contain = i : e.style.removeProperty("contain");
|
|
4211
|
-
},
|
|
4212
|
-
let i =
|
|
4512
|
+
}, Dc = (e, t, n = !1, r = Cc) => {
|
|
4513
|
+
let i = dr(t), a = Sc.get(e);
|
|
4213
4514
|
if (i.length === 0) {
|
|
4214
4515
|
if (!a) return;
|
|
4215
|
-
a.owners.has(r) ? (a.owners.delete(r), a.owners.size === 0 ? (a.pending != null && clearTimeout(a.pending),
|
|
4516
|
+
a.owners.has(r) ? (a.owners.delete(r), a.owners.size === 0 ? (a.pending != null && clearTimeout(a.pending), wc(e, a), Sc.delete(e)) : Ec(e, a)) : r === a.settleOwner && a.owners.size === 0 && (a.pending != null && clearTimeout(a.pending), wc(e, a), Sc.delete(e));
|
|
4216
4517
|
return;
|
|
4217
4518
|
}
|
|
4218
4519
|
a?.pending != null && (clearTimeout(a.pending), a.pending = null), a || (a = {
|
|
@@ -4221,66 +4522,66 @@ var ls = (e) => {
|
|
|
4221
4522
|
willChange: e.style.willChange,
|
|
4222
4523
|
contain: e.style.contain,
|
|
4223
4524
|
pending: null
|
|
4224
|
-
},
|
|
4525
|
+
}, Sc.set(e, a)), a.owners.set(r, {
|
|
4225
4526
|
properties: i,
|
|
4226
4527
|
containment: n
|
|
4227
|
-
}), a.settleOwner = null,
|
|
4228
|
-
},
|
|
4229
|
-
let n =
|
|
4528
|
+
}), a.settleOwner = null, Ec(e, a);
|
|
4529
|
+
}, Oc = (e, t = Cc) => {
|
|
4530
|
+
let n = Sc.get(e);
|
|
4230
4531
|
if (!(!n || !n.owners.has(t))) {
|
|
4231
4532
|
if (n.owners.delete(t), n.owners.size > 0) {
|
|
4232
|
-
|
|
4533
|
+
Ec(e, n);
|
|
4233
4534
|
return;
|
|
4234
4535
|
}
|
|
4235
4536
|
/* v8 ignore next 5 -- setTimeout exists in every runtime under test; the
|
|
4236
4537
|
guard shields exotic embedders, where an immediate demotion is simply
|
|
4237
4538
|
the pre-hold behavior. */
|
|
4238
4539
|
if (n.settleOwner = t, n.pending != null && clearTimeout(n.pending), typeof setTimeout != "function") {
|
|
4239
|
-
|
|
4540
|
+
wc(e, n), Sc.delete(e);
|
|
4240
4541
|
return;
|
|
4241
4542
|
}
|
|
4242
|
-
|
|
4543
|
+
kc(e, n);
|
|
4243
4544
|
}
|
|
4244
|
-
},
|
|
4545
|
+
}, kc = (e, t) => {
|
|
4245
4546
|
t.pending = setTimeout(() => {
|
|
4246
|
-
if (t.pending = null,
|
|
4247
|
-
|
|
4248
|
-
|
|
4547
|
+
if (t.pending = null, Go()) {
|
|
4548
|
+
qo(() => {
|
|
4549
|
+
Sc.get(e) === t && t.owners.size === 0 && t.settleOwner !== null && t.pending === null && kc(e, t);
|
|
4249
4550
|
});
|
|
4250
4551
|
return;
|
|
4251
4552
|
}
|
|
4252
|
-
|
|
4553
|
+
wc(e, t), Sc.delete(e);
|
|
4253
4554
|
}, 300);
|
|
4254
|
-
},
|
|
4255
|
-
let { scope: i, decorator: a, bars: o } = e, s = n.split("-")[0], c = s === "PUSHING" || s === "REPLACING", l = Z() && typeof navigator < "u" && navigator.maxTouchPoints > 0 &&
|
|
4256
|
-
if (
|
|
4257
|
-
|
|
4555
|
+
}, Ac = (e, t, n, r) => {
|
|
4556
|
+
let { scope: i, decorator: a, bars: o } = e, s = n.split("-")[0], c = s === "PUSHING" || s === "REPLACING", l = Z() && typeof navigator < "u" && navigator.maxTouchPoints > 0 && Mi() < 12, u = l && typeof window < "u" && window.devicePixelRatio || 1, d = (e, t) => !e || !l ? null : xc(e, t, u, Mi());
|
|
4557
|
+
if (Nr(t, n)) {
|
|
4558
|
+
Dc(i, t, c, r);
|
|
4258
4559
|
let e = d(H(t, n), i);
|
|
4259
|
-
e && (
|
|
4260
|
-
for (let n of o ?? [])
|
|
4560
|
+
e && (Do(i, "animation-timing-function", r), i.style.animationTimingFunction = e);
|
|
4561
|
+
for (let n of o ?? []) qs(n) && (Dc(n, t, c, r), e && (Do(n, "animation-timing-function", r), n.style.animationTimingFunction = e));
|
|
4261
4562
|
}
|
|
4262
4563
|
if (a && t.decoratorName) {
|
|
4263
4564
|
let e = Pe.get(t.decoratorName), i = e ? Be(t, e) : null;
|
|
4264
|
-
i &&
|
|
4565
|
+
i && Nr(i, n) && Dc(a, i, c, r);
|
|
4265
4566
|
}
|
|
4266
|
-
for (let e of
|
|
4567
|
+
for (let e of Ts(i, n)) {
|
|
4267
4568
|
let i = Ge(e.getAttribute(U), t);
|
|
4268
|
-
if (i &&
|
|
4569
|
+
if (i && Nr(i, n)) {
|
|
4269
4570
|
let t = d(H(i, n), e);
|
|
4270
|
-
t && (
|
|
4571
|
+
t && (Do(e, "animation-timing-function", r), e.style.animationTimingFunction = t);
|
|
4271
4572
|
}
|
|
4272
4573
|
}
|
|
4273
|
-
},
|
|
4574
|
+
}, jc = (e, t) => {
|
|
4274
4575
|
let { scope: n, decorator: r, bars: i } = e;
|
|
4275
4576
|
if (n) {
|
|
4276
|
-
|
|
4277
|
-
for (let e of
|
|
4577
|
+
Oc(n, t);
|
|
4578
|
+
for (let e of ws(n)) Oc(e, t);
|
|
4278
4579
|
}
|
|
4279
|
-
r &&
|
|
4280
|
-
for (let e of i ?? []) e &&
|
|
4281
|
-
},
|
|
4282
|
-
function
|
|
4283
|
-
let t = Symbol("flemo-engine-layer"), n = /* @__PURE__ */ new Map(), r =
|
|
4580
|
+
r && Oc(r, t);
|
|
4581
|
+
for (let e of i ?? []) e && Oc(e, t);
|
|
4582
|
+
}, Mc = () => {}, Nc = 4, Pc = 100, Fc = 1500, Ic = /* @__PURE__ */ new WeakMap();
|
|
4583
|
+
function Lc(e) {
|
|
4584
|
+
let t = Symbol("flemo-engine-layer"), n = /* @__PURE__ */ new Map(), r = Ws({
|
|
4284
4585
|
landNow: () => a(),
|
|
4285
4586
|
scheduleLanding: (e) => o(e)
|
|
4286
4587
|
}), i = null, a = () => {
|
|
@@ -4308,15 +4609,15 @@ function Ls(e) {
|
|
|
4308
4609
|
if (!p && s && (s.release(), s = null), d) {
|
|
4309
4610
|
let { scope: e } = a();
|
|
4310
4611
|
if (e) {
|
|
4311
|
-
if (p && !f) for (let t of
|
|
4312
|
-
else for (let t of
|
|
4612
|
+
if (p && !f) for (let t of Ds(e, u)) t.setAttribute(W, "true");
|
|
4613
|
+
else for (let t of Os(e)) t.removeAttribute(W);
|
|
4313
4614
|
}
|
|
4314
4615
|
}
|
|
4315
4616
|
if (p) {
|
|
4316
|
-
let { scope: e, bars: n, screenContainer: r } = a(), i = [...n ?? [], ...
|
|
4617
|
+
let { scope: e, bars: n, screenContainer: r } = a(), i = [...n ?? [], ...Ks(r ?? null)];
|
|
4317
4618
|
if (e) {
|
|
4318
|
-
|
|
4319
|
-
for (let n of
|
|
4619
|
+
Bo(e), Q(e, ["animation-timing-function", "animation-duration"], t);
|
|
4620
|
+
for (let n of ws(e)) Q(n, ["animation-timing-function", "animation-duration"], t);
|
|
4320
4621
|
for (let e of i) e && Q(e, ["animation-timing-function", "animation-duration"], t);
|
|
4321
4622
|
}
|
|
4322
4623
|
}
|
|
@@ -4330,10 +4631,10 @@ function Ls(e) {
|
|
|
4330
4631
|
let m = () => {
|
|
4331
4632
|
if (!Z()) return;
|
|
4332
4633
|
let t = e.getTransitionTaskId();
|
|
4333
|
-
t && (c.pendingTaskIds.some((e) => e !== t) ||
|
|
4634
|
+
t && (c.pendingTaskIds.some((e) => e !== t) || ra());
|
|
4334
4635
|
}, h = (e, n) => {
|
|
4335
|
-
let r = [], { decorator: i, bars: s, screenContainer: c } = a(), l = [...s ?? [], ...
|
|
4336
|
-
let a = 0, o =
|
|
4636
|
+
let r = [], { decorator: i, bars: s, screenContainer: c } = a(), l = [...s ?? [], ...Ks(c ?? null)], u = ke(o), d = (e, n, i) => {
|
|
4637
|
+
let a = 0, o = No({
|
|
4337
4638
|
element: e,
|
|
4338
4639
|
expectedName: n,
|
|
4339
4640
|
motion: i,
|
|
@@ -4343,49 +4644,49 @@ function Ls(e) {
|
|
|
4343
4644
|
spendBudget: () => {
|
|
4344
4645
|
a += 1;
|
|
4345
4646
|
},
|
|
4346
|
-
onTerminal:
|
|
4647
|
+
onTerminal: Mc
|
|
4347
4648
|
});
|
|
4348
4649
|
o.attach(), r.push(o.detach);
|
|
4349
|
-
}, f =
|
|
4350
|
-
if (p) for (let e of l)
|
|
4650
|
+
}, f = Sr("screen", o, n), p = H(u, n);
|
|
4651
|
+
if (p) for (let e of l) qs(e) && d(e, f, p);
|
|
4351
4652
|
if (i && u.decoratorName) {
|
|
4352
4653
|
let e = Pe.get(u.decoratorName), t = e ? H(Be(u, e), n) : null;
|
|
4353
|
-
t && d(i,
|
|
4654
|
+
t && d(i, Cr(u.name, u.decoratorName, n), t);
|
|
4354
4655
|
}
|
|
4355
|
-
for (let t of
|
|
4656
|
+
for (let t of Ts(e, n)) {
|
|
4356
4657
|
let e = t.getAttribute(U), r = Ge(e, ke(o)), i = r ? H(r, n) : null;
|
|
4357
|
-
i && d(t,
|
|
4658
|
+
i && d(t, Sr("part", e, n), i);
|
|
4358
4659
|
}
|
|
4359
4660
|
return r;
|
|
4360
4661
|
};
|
|
4361
4662
|
if (!d) {
|
|
4362
4663
|
if (u === "COMPLETED") {
|
|
4363
|
-
let { scope: e, decorator: n, bars: r, screenContainer: i } = a(), o = [...r ?? [], ...
|
|
4664
|
+
let { scope: e, decorator: n, bars: r, screenContainer: i } = a(), o = [...r ?? [], ...Ks(i ?? null)];
|
|
4364
4665
|
if (e) {
|
|
4365
4666
|
Q(e);
|
|
4366
|
-
for (let t of
|
|
4667
|
+
for (let t of ws(e)) Q(t);
|
|
4367
4668
|
}
|
|
4368
4669
|
n && Q(n);
|
|
4369
4670
|
for (let e of o) e && Q(e, void 0, t);
|
|
4370
|
-
return
|
|
4671
|
+
return jc({
|
|
4371
4672
|
scope: e,
|
|
4372
4673
|
decorator: n,
|
|
4373
4674
|
bars: o
|
|
4374
|
-
}, t),
|
|
4675
|
+
}, t), Mc;
|
|
4375
4676
|
}
|
|
4376
4677
|
if (u === "REPLACING" && l !== o && e.setReplaceTransitionStatus("PENDING"), p) {
|
|
4377
|
-
let { scope: e, decorator: n, bars: r, screenContainer: i, partLayer: c } = a(), l = [...r ?? [], ...
|
|
4678
|
+
let { scope: e, decorator: n, bars: r, screenContainer: i, partLayer: c } = a(), l = [...r ?? [], ...Ks(i ?? null)];
|
|
4378
4679
|
if (e) {
|
|
4379
4680
|
let i = ke(o);
|
|
4380
|
-
|
|
4681
|
+
Ac({
|
|
4381
4682
|
scope: e,
|
|
4382
4683
|
decorator: n,
|
|
4383
4684
|
bars: l
|
|
4384
|
-
}, i, `${u}-false`, t), s ??=
|
|
4685
|
+
}, i, `${u}-false`, t), s ??= zo({
|
|
4385
4686
|
scope: e,
|
|
4386
4687
|
bars: r ?? [],
|
|
4387
4688
|
layer: c ?? null,
|
|
4388
|
-
strandedMs:
|
|
4689
|
+
strandedMs: ks(e, i, u) + 1500
|
|
4389
4690
|
});
|
|
4390
4691
|
}
|
|
4391
4692
|
}
|
|
@@ -4395,10 +4696,10 @@ function Ls(e) {
|
|
|
4395
4696
|
let { scope: n } = a();
|
|
4396
4697
|
if (n) {
|
|
4397
4698
|
let r = ke(o), i = [];
|
|
4398
|
-
if (
|
|
4399
|
-
let a = H(r, e), s = 0, c =
|
|
4699
|
+
if (Nr(r, e)) {
|
|
4700
|
+
let a = H(r, e), s = 0, c = No({
|
|
4400
4701
|
element: n,
|
|
4401
|
-
expectedName:
|
|
4702
|
+
expectedName: Sr("screen", o, e),
|
|
4402
4703
|
motion: a,
|
|
4403
4704
|
writer: t,
|
|
4404
4705
|
isLive: () => n.isConnected && n.getAttribute("data-flemo-skip-animation") !== "true",
|
|
@@ -4406,47 +4707,47 @@ function Ls(e) {
|
|
|
4406
4707
|
spendBudget: () => {
|
|
4407
4708
|
s += 1;
|
|
4408
4709
|
},
|
|
4409
|
-
onTerminal:
|
|
4710
|
+
onTerminal: Mc
|
|
4410
4711
|
});
|
|
4411
4712
|
c.attach(), i.push(c.detach);
|
|
4412
4713
|
}
|
|
4413
4714
|
if (i.push(...h(n, e)), i.length > 0) return () => i.forEach((e) => e());
|
|
4414
4715
|
}
|
|
4415
4716
|
}
|
|
4416
|
-
return
|
|
4717
|
+
return Mc;
|
|
4417
4718
|
}
|
|
4418
4719
|
if (u === "COMPLETED") {
|
|
4419
|
-
|
|
4420
|
-
let { scope: n, decorator: r, bars: i, screenContainer: o } = a(), s = [...i ?? [], ...
|
|
4720
|
+
ea(), e.setDragStatus("IDLE"), e.setReplaceTransitionStatus("IDLE");
|
|
4721
|
+
let { scope: n, decorator: r, bars: i, screenContainer: o } = a(), s = [...i ?? [], ...Ks(o ?? null)];
|
|
4421
4722
|
if (n) {
|
|
4422
4723
|
Q(n), Q(n, ["transform", "opacity"]), n.removeAttribute(lt);
|
|
4423
|
-
for (let e of
|
|
4724
|
+
for (let e of ws(n)) Q(e), e.removeAttribute(lt);
|
|
4424
4725
|
}
|
|
4425
4726
|
r && (Q(r), r.removeAttribute(lt));
|
|
4426
4727
|
for (let e of s) e && Q(e, void 0, t);
|
|
4427
|
-
return
|
|
4728
|
+
return jc({
|
|
4428
4729
|
scope: n,
|
|
4429
4730
|
decorator: r,
|
|
4430
4731
|
bars: s
|
|
4431
|
-
}, t),
|
|
4732
|
+
}, t), Mc;
|
|
4432
4733
|
}
|
|
4433
|
-
if (u === "IDLE") return
|
|
4734
|
+
if (u === "IDLE") return Mc;
|
|
4434
4735
|
let { scope: g } = a();
|
|
4435
|
-
if (!g) return
|
|
4436
|
-
let _ = e.getTransitionTaskId(), v =
|
|
4736
|
+
if (!g) return Mc;
|
|
4737
|
+
let _ = e.getTransitionTaskId(), v = Mc, y = () => {
|
|
4437
4738
|
v(), _ && (c.resolveTask(_), n.delete(_));
|
|
4438
|
-
}, b = ke(o), x = `${u}-true`, S = g.getAttribute(lt) === "true", C = !S &&
|
|
4739
|
+
}, b = ke(o), x = `${u}-true`, S = g.getAttribute(lt) === "true", C = !S && Nr(b, x);
|
|
4439
4740
|
if (!S) {
|
|
4440
4741
|
let { decorator: e, bars: n, screenContainer: r } = a();
|
|
4441
|
-
|
|
4742
|
+
Ac({
|
|
4442
4743
|
scope: g,
|
|
4443
4744
|
decorator: e,
|
|
4444
|
-
bars: [...n ?? [], ...
|
|
4745
|
+
bars: [...n ?? [], ...Ks(r ?? null)]
|
|
4445
4746
|
}, b, x, t);
|
|
4446
4747
|
}
|
|
4447
|
-
let w = `${u}-false`, T =
|
|
4448
|
-
for (let e of
|
|
4449
|
-
let t = Ge(e.getAttribute(U), b), n = `${u}-${e.getAttribute(ot)}`, r = t &&
|
|
4748
|
+
let w = `${u}-false`, T = Nr(b, w) ? H(b, w) : null, E = [];
|
|
4749
|
+
for (let e of Es(g, u)) {
|
|
4750
|
+
let t = Ge(e.getAttribute(U), b), n = `${u}-${e.getAttribute(ot)}`, r = t && Nr(t, n) ? H(t, n) : null;
|
|
4450
4751
|
r && E.push({
|
|
4451
4752
|
element: e,
|
|
4452
4753
|
motion: r
|
|
@@ -4460,7 +4761,7 @@ function Ls(e) {
|
|
|
4460
4761
|
if (e) {
|
|
4461
4762
|
let t = Be(b, e);
|
|
4462
4763
|
for (let e of [`${u}-true`, `${u}-false`]) {
|
|
4463
|
-
if (!
|
|
4764
|
+
if (!Nr(t, e)) continue;
|
|
4464
4765
|
let n = H(t, e);
|
|
4465
4766
|
n && (O.push(n), D = Math.max(D, (n.delay + n.duration) * 1e3));
|
|
4466
4767
|
}
|
|
@@ -4468,40 +4769,40 @@ function Ls(e) {
|
|
|
4468
4769
|
}
|
|
4469
4770
|
if (!C) {
|
|
4470
4771
|
if (!S && D > 0) {
|
|
4471
|
-
if (!f) return _ && c.markGateHeld(_),
|
|
4772
|
+
if (!f) return _ && c.markGateHeld(_), Mc;
|
|
4472
4773
|
let e = D + 50;
|
|
4473
|
-
_ && c.anchorGate(_, e +
|
|
4774
|
+
_ && c.anchorGate(_, e + Fc);
|
|
4474
4775
|
let t = setTimeout(y, e);
|
|
4475
4776
|
return () => clearTimeout(t);
|
|
4476
4777
|
}
|
|
4477
|
-
return queueMicrotask(y),
|
|
4778
|
+
return queueMicrotask(y), Mc;
|
|
4478
4779
|
}
|
|
4479
4780
|
let k = H(b, x);
|
|
4480
4781
|
if (_) {
|
|
4481
4782
|
if (f) {
|
|
4482
4783
|
let e = (k.delay + k.duration) * 1e3;
|
|
4483
|
-
c.anchorGate(_, Math.max(e, D) +
|
|
4784
|
+
c.anchorGate(_, Math.max(e, D) + Fc);
|
|
4484
4785
|
} else c.markGateHeld(_);
|
|
4485
4786
|
}
|
|
4486
|
-
let A =
|
|
4787
|
+
let A = ua({
|
|
4487
4788
|
status: u,
|
|
4488
4789
|
transition: b,
|
|
4489
4790
|
skipAnimation: S,
|
|
4490
4791
|
hasActiveMotion: !!k,
|
|
4491
4792
|
hasAnimation: C
|
|
4492
|
-
}), { hasDrivableMotion: j, nativeSurgeryAllowed: M, touchGoverned: ee, forceCompiled: N, governedHead:
|
|
4493
|
-
A.framePacingKeepalive && (v =
|
|
4494
|
-
let
|
|
4495
|
-
j && !Z() && !M && !ee && !N && !
|
|
4793
|
+
}), { hasDrivableMotion: j, nativeSurgeryAllowed: M, touchGoverned: ee, forceCompiled: N, governedHead: P, desktopHead: F, governedSlide: te, birthHoldMs: I } = A;
|
|
4794
|
+
A.framePacingKeepalive && (v = Zi());
|
|
4795
|
+
let ne = null;
|
|
4796
|
+
j && !Z() && !M && !ee && !N && !F && (ne = cc(g, () => [g.ownerDocument.documentElement], () => Ic.get(g)?.(), !1));
|
|
4496
4797
|
{
|
|
4497
4798
|
let e = g.ownerDocument.documentElement;
|
|
4498
|
-
A.creepHead ? e.setAttribute(
|
|
4799
|
+
A.creepHead ? e.setAttribute(Bt, "true") : e.removeAttribute(Bt), P ? e.setAttribute(zt, "true") : e.removeAttribute(zt), F ? e.setAttribute(Vt, "true") : e.removeAttribute(Vt);
|
|
4499
4800
|
}
|
|
4500
|
-
let
|
|
4501
|
-
j && M && (
|
|
4502
|
-
let
|
|
4503
|
-
|
|
4504
|
-
},
|
|
4801
|
+
let re = null;
|
|
4802
|
+
j && M && (re = tc(g, () => [g.ownerDocument.documentElement], () => Ic.get(g)?.()));
|
|
4803
|
+
let ie = Sr("screen", o, x), L, ae = () => {
|
|
4804
|
+
L !== void 0 && (clearTimeout(L), L = void 0);
|
|
4805
|
+
}, oe = 0, se, R = [], ce, z = () => {
|
|
4505
4806
|
R.forEach((e) => cancelAnimationFrame(e)), R = [], ce !== void 0 && clearTimeout(ce), ce = void 0;
|
|
4506
4807
|
}, B = () => {
|
|
4507
4808
|
/* v8 ignore next 4 -- every runtime under test has rAF; the guard
|
|
@@ -4512,7 +4813,7 @@ function Ls(e) {
|
|
|
4512
4813
|
}
|
|
4513
4814
|
ce = setTimeout(() => {
|
|
4514
4815
|
z(), y();
|
|
4515
|
-
},
|
|
4816
|
+
}, Pc);
|
|
4516
4817
|
let e = (t) => {
|
|
4517
4818
|
if (t <= 0) {
|
|
4518
4819
|
z(), y();
|
|
@@ -4520,22 +4821,22 @@ function Ls(e) {
|
|
|
4520
4821
|
}
|
|
4521
4822
|
R.push(requestAnimationFrame(() => e(t - 1)));
|
|
4522
4823
|
};
|
|
4523
|
-
e(
|
|
4824
|
+
e(Nc);
|
|
4524
4825
|
}, le = () => {
|
|
4525
|
-
if (
|
|
4826
|
+
if (oe <= 0) {
|
|
4526
4827
|
B();
|
|
4527
4828
|
return;
|
|
4528
4829
|
}
|
|
4529
|
-
|
|
4530
|
-
}, ue =
|
|
4531
|
-
e.target === g &&
|
|
4830
|
+
se = setTimeout(B, oe);
|
|
4831
|
+
}, ue = Mc, V = Mc, de = (e) => {
|
|
4832
|
+
e.target === g && Er(e.animationName, ie) && (k && e.elapsedTime === 0 || (g.removeEventListener("animationend", de), ae(), ue(), le()));
|
|
4532
4833
|
};
|
|
4533
4834
|
g.addEventListener("animationend", de), j && f && m();
|
|
4534
4835
|
let fe = (k.delay + k.duration) * 1e3, pe = Math.max(fe, D) + 1500, me = _ ? setTimeout(() => void c.resolveTask(_), pe) : void 0;
|
|
4535
|
-
|
|
4536
|
-
let he = fe +
|
|
4836
|
+
oe = Math.max(0, D - fe);
|
|
4837
|
+
let he = fe + I + 250, ge = () => _ !== null && e.getTransitionTaskId() === _ && g.isConnected && g.getAttribute("data-flemo-skip-animation") !== "true" && Nr(b, x), _e = No({
|
|
4537
4838
|
element: g,
|
|
4538
|
-
expectedName:
|
|
4839
|
+
expectedName: ie,
|
|
4539
4840
|
motion: k,
|
|
4540
4841
|
writer: t,
|
|
4541
4842
|
isLive: ge,
|
|
@@ -4547,26 +4848,26 @@ function Ls(e) {
|
|
|
4547
4848
|
});
|
|
4548
4849
|
ue = _e.detach;
|
|
4549
4850
|
let ve = !1, ye = () => {
|
|
4550
|
-
|
|
4851
|
+
ae(), L = setTimeout(be, he);
|
|
4551
4852
|
}, be = () => {
|
|
4552
|
-
if (
|
|
4853
|
+
if (ae(), ge() && !ve) {
|
|
4553
4854
|
ve = !0, V(), _e.fullRestart(), ye();
|
|
4554
4855
|
return;
|
|
4555
4856
|
}
|
|
4556
4857
|
y();
|
|
4557
4858
|
}, xe = f, Se = xe ? h(g, x) : [];
|
|
4558
|
-
xe && (_e.attach(), _ && ye()), xe && (M || ee) &&
|
|
4559
|
-
V(), _ &&
|
|
4859
|
+
xe && (_e.attach(), _ && ye()), xe && (M || ee) && Ic.set(g, () => {
|
|
4860
|
+
V(), _ && L !== void 0 && ye();
|
|
4560
4861
|
});
|
|
4561
|
-
let Ce = xe && M ?
|
|
4562
|
-
V(), _ &&
|
|
4862
|
+
let Ce = xe && M ? oc(() => [g.ownerDocument.documentElement], () => {
|
|
4863
|
+
V(), _ && L !== void 0 && ye();
|
|
4563
4864
|
}) : null, we, Te = () => {
|
|
4564
4865
|
we !== void 0 && (clearTimeout(we), we = void 0);
|
|
4565
4866
|
};
|
|
4566
|
-
if (V = Te, xe && _ && !
|
|
4567
|
-
let e = typeof window < "u" && window.devicePixelRatio || 1, t =
|
|
4867
|
+
if (V = Te, xe && _ && !te && !N) {
|
|
4868
|
+
let e = typeof window < "u" && window.devicePixelRatio || 1, t = gc(k, g, e), n = T ? gc(T, g, e) : 0, r = 0;
|
|
4568
4869
|
for (let { element: t, motion: n } of E) {
|
|
4569
|
-
let i =
|
|
4870
|
+
let i = gc(n, t, e);
|
|
4570
4871
|
if (i === null) {
|
|
4571
4872
|
r = null;
|
|
4572
4873
|
break;
|
|
@@ -4577,7 +4878,7 @@ function Ls(e) {
|
|
|
4577
4878
|
if (O.length > 0) {
|
|
4578
4879
|
let t = a().decorator;
|
|
4579
4880
|
if (t) for (let n of O) {
|
|
4580
|
-
let r =
|
|
4881
|
+
let r = gc(n, t, e);
|
|
4581
4882
|
if (r === null) {
|
|
4582
4883
|
i = null;
|
|
4583
4884
|
break;
|
|
@@ -4586,16 +4887,16 @@ function Ls(e) {
|
|
|
4586
4887
|
}
|
|
4587
4888
|
}
|
|
4588
4889
|
let o = t !== null && n !== null && r !== null && i !== null ? Math.max(t, n, r, i) : null;
|
|
4589
|
-
o !== null && o + 17 < fe +
|
|
4590
|
-
we = void 0, ge() && (g.removeEventListener("animationend", de),
|
|
4591
|
-
}, o + 17 +
|
|
4890
|
+
o !== null && o + 17 < fe + oe && (we = setTimeout(() => {
|
|
4891
|
+
we = void 0, ge() && (g.removeEventListener("animationend", de), ae(), ue(), B());
|
|
4892
|
+
}, o + 17 + I));
|
|
4592
4893
|
}
|
|
4593
4894
|
return () => {
|
|
4594
|
-
if (v(), me !== void 0 && clearTimeout(me),
|
|
4895
|
+
if (v(), me !== void 0 && clearTimeout(me), se !== void 0 && clearTimeout(se), z(), re?.(), ne?.(), Ce?.(), Te(), g.removeEventListener("animationend", de), xe) {
|
|
4595
4896
|
_e.detach();
|
|
4596
4897
|
for (let e of Se) e();
|
|
4597
4898
|
}
|
|
4598
|
-
|
|
4899
|
+
ae(), _ && e.getTransitionTaskId() !== _ && n.delete(_);
|
|
4599
4900
|
};
|
|
4600
4901
|
},
|
|
4601
4902
|
activeResumeEntryCount: () => n.size
|
|
@@ -4603,14 +4904,14 @@ function Ls(e) {
|
|
|
4603
4904
|
}
|
|
4604
4905
|
//#endregion
|
|
4605
4906
|
//#region src/core/engine/gpuPipelinePrewarm.ts
|
|
4606
|
-
var
|
|
4607
|
-
function
|
|
4608
|
-
if (typeof document > "u" || !document.body || typeof Element > "u" || typeof Element.prototype.animate != "function" || !Z()) return
|
|
4609
|
-
if (
|
|
4610
|
-
|
|
4611
|
-
let e = () => document.querySelector(
|
|
4612
|
-
let e = typeof requestIdleCallback == "function" ? requestIdleCallback(n, { timeout:
|
|
4613
|
-
|
|
4907
|
+
var Rc = () => {}, zc = 2e3, Bc = 1200, Vc = 120, Hc = 3, Uc = "position:fixed;top:0;left:0;pointer-events:none;opacity:0.02;", Wc = "width:64px;height:64px;background:#888;color:#000;font-size:10px;will-change:transform;transform:translate3d(1px,0,0);", Gc = "width:64px;height:64px;background:#000;will-change:opacity;opacity:0.5;", Kc = "cold", qc = 0, Jc = null;
|
|
4908
|
+
function Yc() {
|
|
4909
|
+
if (typeof document > "u" || !document.body || typeof Element > "u" || typeof Element.prototype.animate != "function" || !Z()) return Rc;
|
|
4910
|
+
if (qc += 1, Kc === "cold") {
|
|
4911
|
+
Kc = "scheduled";
|
|
4912
|
+
let e = () => document.querySelector(F.map((e) => K(at, e)).join(",")) !== null, t = () => {
|
|
4913
|
+
let e = typeof requestIdleCallback == "function" ? requestIdleCallback(n, { timeout: zc }) : null, t = e === null ? setTimeout(n, Bc) : null;
|
|
4914
|
+
Jc = () => {
|
|
4614
4915
|
e !== null && typeof cancelIdleCallback == "function" && cancelIdleCallback(e), t !== null && clearTimeout(t);
|
|
4615
4916
|
};
|
|
4616
4917
|
}, n = () => {
|
|
@@ -4618,13 +4919,13 @@ function Ys() {
|
|
|
4618
4919
|
t();
|
|
4619
4920
|
return;
|
|
4620
4921
|
}
|
|
4621
|
-
|
|
4922
|
+
Jc = null, Kc = "done";
|
|
4622
4923
|
let n = document.createElement("div");
|
|
4623
|
-
n.setAttribute(
|
|
4924
|
+
n.setAttribute(Wt, ""), n.setAttribute("aria-hidden", "true"), n.setAttribute("style", Uc);
|
|
4624
4925
|
let r = document.createElement("div");
|
|
4625
|
-
r.setAttribute("style",
|
|
4926
|
+
r.setAttribute("style", Wc), r.textContent = "flemo";
|
|
4626
4927
|
let i = document.createElement("div");
|
|
4627
|
-
i.setAttribute("style",
|
|
4928
|
+
i.setAttribute("style", Gc);
|
|
4628
4929
|
let a = document.createElement("div");
|
|
4629
4930
|
a.setAttribute("style", "width:96px;font-size:11px;color:#123;will-change:transform;transform:translate3d(0,0,0);");
|
|
4630
4931
|
let o = document.createElement("div");
|
|
@@ -4645,14 +4946,14 @@ function Ys() {
|
|
|
4645
4946
|
c.setAttribute("style", "border-top:1px solid #ccd;padding:2px 0;"), c.textContent = "의원 기록 표결 발의 가나다라", a.append(o, s, c), n.append(r, i, a), document.body.appendChild(n);
|
|
4646
4947
|
try {
|
|
4647
4948
|
r.animate([{ transform: "translate3d(0,0,0)" }, { transform: "translate3d(2px,0,0)" }], {
|
|
4648
|
-
duration:
|
|
4649
|
-
iterations:
|
|
4949
|
+
duration: Vc,
|
|
4950
|
+
iterations: Hc
|
|
4650
4951
|
}), i.animate([{ opacity: .4 }, { opacity: .6 }], {
|
|
4651
|
-
duration:
|
|
4652
|
-
iterations:
|
|
4952
|
+
duration: Vc,
|
|
4953
|
+
iterations: Hc
|
|
4653
4954
|
}), a.animate([{ transform: "translate3d(0,0,0)" }, { transform: "translate3d(2px,0,0)" }], {
|
|
4654
|
-
duration:
|
|
4655
|
-
iterations:
|
|
4955
|
+
duration: Vc,
|
|
4956
|
+
iterations: Hc
|
|
4656
4957
|
});
|
|
4657
4958
|
} catch {}
|
|
4658
4959
|
setTimeout(() => n.remove(), 450);
|
|
@@ -4661,62 +4962,62 @@ function Ys() {
|
|
|
4661
4962
|
}
|
|
4662
4963
|
let e = !1;
|
|
4663
4964
|
return () => {
|
|
4664
|
-
e || (e = !0,
|
|
4965
|
+
e || (e = !0, qc = Math.max(0, qc - 1), qc === 0 && Kc === "scheduled" && (Jc?.(), Jc = null, Kc = "cold"));
|
|
4665
4966
|
};
|
|
4666
4967
|
}
|
|
4667
4968
|
//#endregion
|
|
4668
4969
|
//#region src/runtime/flemoRuntime.ts
|
|
4669
|
-
var
|
|
4970
|
+
var Xc = 500, Zc = 3e3, Qc = [
|
|
4670
4971
|
"pointerdown",
|
|
4671
4972
|
"pointermove",
|
|
4672
4973
|
"wheel",
|
|
4673
4974
|
"touchstart",
|
|
4674
4975
|
"keydown"
|
|
4675
|
-
], $
|
|
4976
|
+
], $c = () => {
|
|
4676
4977
|
if (typeof document > "u") return () => {};
|
|
4677
4978
|
let e = null, t = null, n = 0, r = () => {
|
|
4678
4979
|
let r = Date.now();
|
|
4679
|
-
if (r - n <
|
|
4980
|
+
if (r - n < Xc) return;
|
|
4680
4981
|
n = r, t && clearTimeout(t);
|
|
4681
4982
|
let i = e;
|
|
4682
|
-
e =
|
|
4983
|
+
e = bs(), i?.(), t = setTimeout(() => {
|
|
4683
4984
|
t = null, e?.(), e = null;
|
|
4684
|
-
},
|
|
4985
|
+
}, Zc);
|
|
4685
4986
|
};
|
|
4686
|
-
for (let e of
|
|
4987
|
+
for (let e of Qc) document.addEventListener(e, r, { passive: !0 });
|
|
4687
4988
|
return () => {
|
|
4688
|
-
for (let e of
|
|
4989
|
+
for (let e of Qc) document.removeEventListener(e, r);
|
|
4689
4990
|
t && clearTimeout(t), e?.();
|
|
4690
4991
|
};
|
|
4691
|
-
},
|
|
4692
|
-
let e = [$
|
|
4693
|
-
return
|
|
4992
|
+
}, el = 0, tl = null, nl = () => {
|
|
4993
|
+
let e = [$c(), Yc()];
|
|
4994
|
+
return sa().imageDecodeOffload && e.push(ls()), () => {
|
|
4694
4995
|
for (let t of e) t();
|
|
4695
4996
|
};
|
|
4696
|
-
},
|
|
4697
|
-
|
|
4997
|
+
}, rl = () => {
|
|
4998
|
+
el === 0 && (tl = nl()), el += 1;
|
|
4698
4999
|
let e = !1;
|
|
4699
5000
|
return () => {
|
|
4700
|
-
e || (e = !0, --
|
|
5001
|
+
e || (e = !0, --el, !(el > 0) && (tl?.(), tl = null));
|
|
4701
5002
|
};
|
|
4702
|
-
},
|
|
5003
|
+
}, il = "auto", al = 1e5, ol = [
|
|
4703
5004
|
{
|
|
4704
5005
|
role: "content",
|
|
4705
|
-
level:
|
|
5006
|
+
level: il
|
|
4706
5007
|
},
|
|
4707
5008
|
{
|
|
4708
5009
|
role: "chrome",
|
|
4709
|
-
level:
|
|
5010
|
+
level: il
|
|
4710
5011
|
},
|
|
4711
5012
|
{
|
|
4712
5013
|
role: "decorator",
|
|
4713
|
-
level:
|
|
5014
|
+
level: il
|
|
4714
5015
|
},
|
|
4715
5016
|
{
|
|
4716
5017
|
role: "overlay",
|
|
4717
|
-
level:
|
|
5018
|
+
level: al
|
|
4718
5019
|
}
|
|
4719
|
-
],
|
|
5020
|
+
], sl = .12, cl = 1.6, ll = .5, ul = .28, dl = (e, t, n) => {
|
|
4720
5021
|
if (!(e > 0)) return t;
|
|
4721
5022
|
if (e >= 1) return 0;
|
|
4722
5023
|
let [r, i, a, o] = n, s = (e) => 3 * (1 - e) ** 2 * e * r + 3 * (1 - e) * e * e * a + e ** 3, c = (e) => 3 * (1 - e) ** 2 * e * i + 3 * (1 - e) * e * e * o + e ** 3, l = 0, u = 1;
|
|
@@ -4726,17 +5027,17 @@ var Xs = 500, Zs = 3e3, Qs = [
|
|
|
4726
5027
|
}
|
|
4727
5028
|
let d = s((l + u) / 2);
|
|
4728
5029
|
return t * Math.min(1, Math.max(0, 1 - d));
|
|
4729
|
-
},
|
|
5030
|
+
}, fl = ({ remainingPx: e, spanPx: t, velocityPxPerSecond: n, authoredSeconds: r, authoredEase: i, reversing: a = !1, minSeconds: o = a ? ul : sl }) => {
|
|
4730
5031
|
let s = Math.abs(e);
|
|
4731
5032
|
if (s <= .5) return 0;
|
|
4732
|
-
let c = Math.abs(t), l = c > 0 ? Math.min(1, s / c) : 1, u = i && !a ?
|
|
5033
|
+
let c = Math.abs(t), l = c > 0 ? Math.min(1, s / c) : 1, u = i && !a ? dl(1 - l, r, i) : r * l, d = Math.abs(n), f = !a && d > 0 ? cl * s / d : Infinity;
|
|
4733
5034
|
return Math.min(r, Math.max(o, Math.min(u, f)));
|
|
4734
|
-
},
|
|
5035
|
+
}, pl = ({ remainingPx: e, velocityPxPerSecond: t, seconds: n, authoredSlope: r, reversing: i = !1 }) => {
|
|
4735
5036
|
let a = Math.abs(e);
|
|
4736
5037
|
if (!Number.isFinite(a) || a <= .5 || !Number.isFinite(n) || n <= 0 || !i && !Number.isFinite(t)) return null;
|
|
4737
5038
|
let o = i ? 0 : Math.abs(t) * n / a;
|
|
4738
|
-
return Math.min(
|
|
4739
|
-
},
|
|
5039
|
+
return Math.min(cl, Math.max(typeof r == "number" && r >= 0 ? Math.min(ll, r) : ll, o));
|
|
5040
|
+
}, ml = (e, t) => {
|
|
4740
5041
|
let [n, r, i, a] = e;
|
|
4741
5042
|
if (!Number.isFinite(t) || n <= 0 || t <= 0) return [
|
|
4742
5043
|
n,
|
|
@@ -4754,20 +5055,20 @@ var Xs = 500, Zs = 3e3, Qs = [
|
|
|
4754
5055
|
};
|
|
4755
5056
|
//#endregion
|
|
4756
5057
|
//#region src/utils/findScrollable.ts
|
|
4757
|
-
function
|
|
4758
|
-
let { direction: n = "x", markerSelector: r = "[data-swipe-at-edge]", depthLimit: i = 24, verifyByScroll: a = !1 } = t ?? {}, o =
|
|
5058
|
+
function hl(e, t) {
|
|
5059
|
+
let { direction: n = "x", markerSelector: r = "[data-swipe-at-edge]", depthLimit: i = 24, verifyByScroll: a = !1 } = t ?? {}, o = gl(e);
|
|
4759
5060
|
if (!o) return {
|
|
4760
5061
|
element: null,
|
|
4761
5062
|
hasMarker: !1
|
|
4762
5063
|
};
|
|
4763
5064
|
let s = o.closest?.(r);
|
|
4764
|
-
if (s instanceof HTMLElement &&
|
|
5065
|
+
if (s instanceof HTMLElement && _l(s, n) && (!a || vl(s, n))) return {
|
|
4765
5066
|
element: s,
|
|
4766
5067
|
hasMarker: !0
|
|
4767
5068
|
};
|
|
4768
5069
|
let c = o, l = 0;
|
|
4769
5070
|
for (; c && l < i;) {
|
|
4770
|
-
if (
|
|
5071
|
+
if (_l(c, n) && (!a || vl(c, n))) return {
|
|
4771
5072
|
element: c,
|
|
4772
5073
|
hasMarker: !1
|
|
4773
5074
|
};
|
|
@@ -4778,7 +5079,7 @@ function hc(e, t) {
|
|
|
4778
5079
|
hasMarker: !1
|
|
4779
5080
|
};
|
|
4780
5081
|
}
|
|
4781
|
-
function
|
|
5082
|
+
function gl(e) {
|
|
4782
5083
|
if (!e) return null;
|
|
4783
5084
|
let t = e, n = typeof t.composedPath == "function" ? t.composedPath() : void 0;
|
|
4784
5085
|
if (n && n.length) {
|
|
@@ -4786,33 +5087,33 @@ function gc(e) {
|
|
|
4786
5087
|
}
|
|
4787
5088
|
return e instanceof HTMLElement ? e : null;
|
|
4788
5089
|
}
|
|
4789
|
-
function
|
|
5090
|
+
function _l(e, t) {
|
|
4790
5091
|
return t === "y" ? e.scrollHeight - e.clientHeight > 1 : e.scrollWidth - e.clientWidth > 1;
|
|
4791
5092
|
}
|
|
4792
|
-
function
|
|
4793
|
-
if (!
|
|
5093
|
+
function vl(e, t) {
|
|
5094
|
+
if (!_l(e, t) || typeof window > "u") return !1;
|
|
4794
5095
|
let n = window.getComputedStyle(e), r = t === "y" ? n.overflowY : n.overflowX;
|
|
4795
5096
|
return r === "auto" || r === "scroll" || r === "overlay";
|
|
4796
5097
|
}
|
|
4797
5098
|
//#endregion
|
|
4798
5099
|
//#region src/core/engine/riderSwipe.ts
|
|
4799
|
-
var
|
|
5100
|
+
var yl = (e) => {
|
|
4800
5101
|
let t = {};
|
|
4801
|
-
for (let n of
|
|
5102
|
+
for (let n of fr(e)) {
|
|
4802
5103
|
let e = n.property.replace(/-([a-z])/g, (e, t) => t.toUpperCase());
|
|
4803
5104
|
t[e] = n.value;
|
|
4804
5105
|
}
|
|
4805
5106
|
return t;
|
|
4806
|
-
},
|
|
5107
|
+
}, bl = (e) => {
|
|
4807
5108
|
let t = [];
|
|
4808
5109
|
for (let { element: n, motion: r } of e) {
|
|
4809
5110
|
/* v8 ignore next -- jsdom implements Element.animate; the guard is for a
|
|
4810
5111
|
host that does not, where a drag simply moves nothing. */
|
|
4811
5112
|
if (r.duration <= 0 || typeof n.animate != "function") continue;
|
|
4812
|
-
let e = n.animate([
|
|
5113
|
+
let e = n.animate([yl(r.from), yl(r.to)], {
|
|
4813
5114
|
duration: r.duration * 1e3,
|
|
4814
5115
|
delay: r.delay * 1e3,
|
|
4815
|
-
easing:
|
|
5116
|
+
easing: mr(r.ease),
|
|
4816
5117
|
fill: "both"
|
|
4817
5118
|
});
|
|
4818
5119
|
t.push({
|
|
@@ -4826,44 +5127,44 @@ var yc = (e) => {
|
|
|
4826
5127
|
});
|
|
4827
5128
|
}
|
|
4828
5129
|
if (t.length === 0) return null;
|
|
4829
|
-
for (let e of t)
|
|
5130
|
+
for (let e of t) Qa([e.animation], 0);
|
|
4830
5131
|
let n = !1;
|
|
4831
5132
|
return {
|
|
4832
5133
|
get active() {
|
|
4833
5134
|
return !n;
|
|
4834
5135
|
},
|
|
4835
5136
|
scrub: (e) => {
|
|
4836
|
-
if (!n) for (let n of t)
|
|
5137
|
+
if (!n) for (let n of t) $a([n.animation], n.clock, e);
|
|
4837
5138
|
},
|
|
4838
5139
|
settle: (e, r) => {
|
|
4839
5140
|
if (!n) {
|
|
4840
5141
|
n = !0;
|
|
4841
5142
|
for (let n of t) e && n.element.setAttribute(lt, "true"), n.animation.addEventListener("finish", () => {
|
|
4842
5143
|
n.animation.cancel(), n.element.removeAttribute(lt);
|
|
4843
|
-
}, { once: !0 }),
|
|
5144
|
+
}, { once: !0 }), eo([n.animation], n.clock, e, r);
|
|
4844
5145
|
}
|
|
4845
5146
|
}
|
|
4846
5147
|
};
|
|
4847
5148
|
};
|
|
4848
5149
|
//#endregion
|
|
4849
5150
|
//#region src/screen/computeBarRiding.ts
|
|
4850
|
-
function
|
|
5151
|
+
function xl(e, t) {
|
|
4851
5152
|
return !!e && !!t && e.id === t.id;
|
|
4852
5153
|
}
|
|
4853
|
-
function
|
|
5154
|
+
function Sl(e) {
|
|
4854
5155
|
if (e.status !== "PUSHING" && e.status !== "POPPING" && e.status !== "REPLACING" || !e.isTopOrTopPrev) return {
|
|
4855
5156
|
app: !1,
|
|
4856
5157
|
nav: !1
|
|
4857
5158
|
};
|
|
4858
5159
|
let t = e.hasTopBar ? { id: e.topBarId } : void 0, n = e.hasNavBar ? { id: e.bottomBarId } : void 0, r = e.partnerMetadata?.topBar ?? (e.partnerBars?.topBar ? {} : void 0), i = e.partnerMetadata?.bottomBar ?? (e.partnerBars?.bottomBar ? {} : void 0);
|
|
4859
5160
|
return {
|
|
4860
|
-
app: e.hasTopBar && !
|
|
4861
|
-
nav: e.hasNavBar && !
|
|
5161
|
+
app: e.hasTopBar && !xl(t, r),
|
|
5162
|
+
nav: e.hasNavBar && !xl(n, i)
|
|
4862
5163
|
};
|
|
4863
5164
|
}
|
|
4864
5165
|
//#endregion
|
|
4865
5166
|
//#region src/core/engine/createSwipeController.ts
|
|
4866
|
-
function
|
|
5167
|
+
function Cl(e) {
|
|
4867
5168
|
let t = Symbol("flemo-swipe-layer"), n = null, r = null, i = null, a = null, o = null, s = {
|
|
4868
5169
|
current: [],
|
|
4869
5170
|
prev: []
|
|
@@ -4922,7 +5223,7 @@ function Cc(e) {
|
|
|
4922
5223
|
y: e.clientY
|
|
4923
5224
|
}, S = t, A = Math.max(A, Math.abs(e.clientX - b.x), Math.abs(e.clientY - b.y));
|
|
4924
5225
|
}, ee = (r, i, a) => {
|
|
4925
|
-
let o =
|
|
5226
|
+
let o = ko(r, i, a, t), u = (e) => ko(e, c.has(e) ? Yn(i, l) : i, a, t);
|
|
4926
5227
|
if (r === e.getElements().scope) for (let e of s.current) u(e);
|
|
4927
5228
|
else if (r === n) for (let e of s.prev) u(e);
|
|
4928
5229
|
return o;
|
|
@@ -4933,50 +5234,50 @@ function Cc(e) {
|
|
|
4933
5234
|
if (typeof e.matches == "function" && e.matches(t)) return e;
|
|
4934
5235
|
}
|
|
4935
5236
|
return null;
|
|
4936
|
-
},
|
|
4937
|
-
let i = e.getPartnerBars(), a = e.getPartnerBarMetadata?.(), o = N(n,
|
|
5237
|
+
}, P = (n, r) => {
|
|
5238
|
+
let i = e.getPartnerBars(), a = e.getPartnerBarMetadata?.(), o = N(n, K(ut, "app")), u = N(n, K(ut, "nav")), d = (e) => {
|
|
4938
5239
|
if (!e) return;
|
|
4939
5240
|
let t = e.getAttribute(mt);
|
|
4940
5241
|
return t === null ? {} : { id: e.getAttribute("data-flemo-bar-id-type") === "number" ? Number(t) : t };
|
|
4941
5242
|
}, f = e.hasSharedTopBar() ? { id: e.getSharedTopBarId?.() } : void 0, p = e.hasSharedBottomBar() ? { id: e.getSharedBottomBarId?.() } : void 0, m = a?.topBar ?? (i?.topBar ? {} : d(o)), h = a?.bottomBar ?? (i?.bottomBar ? {} : d(u)), g = [], { sharedTopBar: _, sharedBottomBar: v } = e.getElements();
|
|
4942
|
-
_ && f && !
|
|
5243
|
+
_ && f && !xl(f, m) && g.push(_), v && p && !xl(p, h) && g.push(v);
|
|
4943
5244
|
let y = [];
|
|
4944
|
-
n && (o && m && !
|
|
5245
|
+
n && (o && m && !xl(m, f) && y.push(o), u && h && !xl(h, p) && y.push(u)), c = /* @__PURE__ */ new Set([...g, ...y]), l = r.getBoundingClientRect().height, g.push(...Ks(e.getElements().screenContainer)), y.push(...Ks(n)), s = {
|
|
4945
5246
|
current: g,
|
|
4946
5247
|
prev: y
|
|
4947
5248
|
};
|
|
4948
|
-
for (let n of g)
|
|
4949
|
-
for (let n of y)
|
|
4950
|
-
},
|
|
5249
|
+
for (let n of g) Dc(n, e.getTransition(), !1, t);
|
|
5250
|
+
for (let n of y) Dc(n, e.getTransition(), !1, t);
|
|
5251
|
+
}, F = () => {
|
|
4951
5252
|
let { scope: i, decorator: a } = e.getElements(), o = e.getTransition();
|
|
4952
|
-
i &&
|
|
5253
|
+
i && Dc(i, o, !1, t), n && Dc(n, o, !1, t);
|
|
4953
5254
|
let s = e.getDecorator();
|
|
4954
5255
|
if (s) {
|
|
4955
5256
|
let e = Be(o, s);
|
|
4956
|
-
a &&
|
|
5257
|
+
a && Dc(a, e, !1, t), r && Dc(r, e, !1, t);
|
|
4957
5258
|
}
|
|
4958
|
-
},
|
|
5259
|
+
}, te = () => {
|
|
4959
5260
|
let { scope: i, decorator: a } = e.getElements();
|
|
4960
|
-
i &&
|
|
4961
|
-
},
|
|
4962
|
-
for (let e of s.current) Q(e, void 0, t),
|
|
4963
|
-
for (let e of s.prev) Q(e, void 0, t),
|
|
5261
|
+
i && Oc(i, t), n && Oc(n, t), a && Oc(a, t), r && Oc(r, t);
|
|
5262
|
+
}, I = () => {
|
|
5263
|
+
for (let e of s.current) Q(e, void 0, t), Oc(e, t);
|
|
5264
|
+
for (let e of s.prev) Q(e, void 0, t), Oc(e, t);
|
|
4964
5265
|
s = {
|
|
4965
5266
|
current: [],
|
|
4966
5267
|
prev: []
|
|
4967
5268
|
};
|
|
4968
|
-
},
|
|
4969
|
-
a || !n || !i || (a =
|
|
5269
|
+
}, ne = () => {
|
|
5270
|
+
a || !n || !i || (a = zo({
|
|
4970
5271
|
scope: n,
|
|
4971
|
-
bars: [N(i,
|
|
5272
|
+
bars: [N(i, K(ut, "app")), N(i, K(ut, "nav"))],
|
|
4972
5273
|
layer: e.getPartLayer?.() ?? null,
|
|
4973
5274
|
strandedMs: 6e4
|
|
4974
5275
|
}));
|
|
4975
|
-
},
|
|
5276
|
+
}, re = () => {
|
|
4976
5277
|
a?.release(), a = null;
|
|
4977
|
-
},
|
|
4978
|
-
!p || a || (
|
|
4979
|
-
},
|
|
5278
|
+
}, ie = () => {
|
|
5279
|
+
!p || a || (ne(), a && (o = bl(L())));
|
|
5280
|
+
}, L = () => {
|
|
4980
5281
|
let t = e.getTransition(), n = [], i = (e, r) => {
|
|
4981
5282
|
let i = We.get(e.getAttribute(U));
|
|
4982
5283
|
if (!i || i.onSwipe || i.onSwipeStart || i.onSwipeEnd) return;
|
|
@@ -5001,26 +5302,26 @@ function Cc(e) {
|
|
|
5001
5302
|
o(e.getElements().decorator ?? null, !0), o(r, !1);
|
|
5002
5303
|
}
|
|
5003
5304
|
return n;
|
|
5004
|
-
},
|
|
5305
|
+
}, ae = (t) => {
|
|
5005
5306
|
let { screenContainer: n } = e.getElements(), r = (e) => {
|
|
5006
|
-
let t = N(e,
|
|
5007
|
-
let n = e.closest(
|
|
5307
|
+
let t = N(e, G(it)), n = Array.from(e.querySelectorAll(G(U))).filter((e) => {
|
|
5308
|
+
let n = e.closest(G(it));
|
|
5008
5309
|
return n === null || n === t;
|
|
5009
5310
|
}), r = t?.getAttribute("data-flemo-screen") ?? null;
|
|
5010
5311
|
if (r === null) return n;
|
|
5011
|
-
let i = Array.from(e.ownerDocument.querySelectorAll(
|
|
5312
|
+
let i = Array.from(e.ownerDocument.querySelectorAll(K(wt, r)));
|
|
5012
5313
|
return i.length === 0 ? n : [...n, ...i];
|
|
5013
5314
|
};
|
|
5014
5315
|
u = {
|
|
5015
5316
|
current: r(n),
|
|
5016
5317
|
prev: r(t)
|
|
5017
5318
|
};
|
|
5018
|
-
},
|
|
5319
|
+
}, oe = (e, n, r, i) => {
|
|
5019
5320
|
let a = (a, o) => {
|
|
5020
5321
|
let s = We.get(a.getAttribute(U));
|
|
5021
5322
|
if (!s) return;
|
|
5022
5323
|
let c = {
|
|
5023
|
-
animate: i ?? ((e, n, r) =>
|
|
5324
|
+
animate: i ?? ((e, n, r) => ko(e, n, r, t)),
|
|
5024
5325
|
element: a,
|
|
5025
5326
|
active: o
|
|
5026
5327
|
};
|
|
@@ -5028,7 +5329,7 @@ function Cc(e) {
|
|
|
5028
5329
|
};
|
|
5029
5330
|
for (let e of u.current) a(e, !0);
|
|
5030
5331
|
for (let e of u.prev) a(e, !1);
|
|
5031
|
-
},
|
|
5332
|
+
}, se = () => {
|
|
5032
5333
|
for (let e of [...u.current, ...u.prev]) Q(e, void 0, t);
|
|
5033
5334
|
u = {
|
|
5034
5335
|
current: [],
|
|
@@ -5046,7 +5347,7 @@ function Cc(e) {
|
|
|
5046
5347
|
return;
|
|
5047
5348
|
}
|
|
5048
5349
|
let u = c?.previousElementSibling ?? null;
|
|
5049
|
-
if (i = u, n = N(u,
|
|
5350
|
+
if (i = u, n = N(u, G(it)), r = N(u, G(vt)), !n) {
|
|
5050
5351
|
f = !1;
|
|
5051
5352
|
return;
|
|
5052
5353
|
}
|
|
@@ -5063,20 +5364,20 @@ function Cc(e) {
|
|
|
5063
5364
|
t: t.timeStamp,
|
|
5064
5365
|
x: t.clientX,
|
|
5065
5366
|
y: t.clientY
|
|
5066
|
-
}], s.setPointerCapture(t.pointerId),
|
|
5367
|
+
}], s.setPointerCapture(t.pointerId), P(u, s), ae(u), F();
|
|
5067
5368
|
let d = e.getDecorator(), m = await a.onSwipeStart(t, k(t), {
|
|
5068
5369
|
animate: ee,
|
|
5069
5370
|
currentScreen: s,
|
|
5070
5371
|
prevScreen: n,
|
|
5071
5372
|
onStart: (e) => {
|
|
5072
5373
|
d?.onSwipeStart?.(e, {
|
|
5073
|
-
animate:
|
|
5374
|
+
animate: ko,
|
|
5074
5375
|
currentDecorator: l,
|
|
5075
5376
|
prevDecorator: r
|
|
5076
|
-
}),
|
|
5377
|
+
}), oe("start", e, 0);
|
|
5077
5378
|
}
|
|
5078
5379
|
});
|
|
5079
|
-
m && !y ? (e.setDragStatus("PENDING"), typeof requestAnimationFrame == "function" ? requestAnimationFrame(
|
|
5380
|
+
m && !y ? (e.setDragStatus("PENDING"), typeof requestAnimationFrame == "function" ? requestAnimationFrame(ie) : ie(), e.onDragStart?.()) : m || (e.setDragStatus("IDLE"), p = !1, f = !1, g(), j(t), I(), te(), se(), re(), o?.settle(!1, 0), o = null);
|
|
5080
5381
|
}, ce = (e) => {
|
|
5081
5382
|
let t = R(e);
|
|
5082
5383
|
v = t, t.finally(() => {
|
|
@@ -5114,10 +5415,10 @@ function Cc(e) {
|
|
|
5114
5415
|
prevScreen: n,
|
|
5115
5416
|
onProgress: (e) => {
|
|
5116
5417
|
c?.onSwipe?.(e, h, {
|
|
5117
|
-
animate:
|
|
5418
|
+
animate: ko,
|
|
5118
5419
|
currentDecorator: s,
|
|
5119
5420
|
prevDecorator: r
|
|
5120
|
-
}),
|
|
5421
|
+
}), oe("swipe", e, h), ie(), o?.scrub(h / 100);
|
|
5121
5422
|
}
|
|
5122
5423
|
}), e.onDragProgress?.(h / 100);
|
|
5123
5424
|
}, ve = async (i, a = !1) => {
|
|
@@ -5144,12 +5445,12 @@ function Cc(e) {
|
|
|
5144
5445
|
x: 0,
|
|
5145
5446
|
y: 0
|
|
5146
5447
|
}
|
|
5147
|
-
} : k(i), _ = a ? k(i).offset : h.offset, y = c.swipeDirection, b = l?.getBoundingClientRect(), x = (y === "y" ? b?.height : b?.width) || (typeof window > "u" ? 0 : y === "y" ? window.innerHeight : window.innerWidth), S = y === "y" ? _.y : _.x, C = y === "y" ? h.velocity.y : h.velocity.x, w = Math.abs(S), T = Math.abs(C), E = Math.sign(S), D = E !== 0 && Math.sign(C) === -E && T >= 300, O = !1, M = null, N = !1,
|
|
5448
|
+
} : k(i), _ = a ? k(i).offset : h.offset, y = c.swipeDirection, b = l?.getBoundingClientRect(), x = (y === "y" ? b?.height : b?.width) || (typeof window > "u" ? 0 : y === "y" ? window.innerHeight : window.innerWidth), S = y === "y" ? _.y : _.x, C = y === "y" ? h.velocity.y : h.velocity.x, w = Math.abs(S), T = Math.abs(C), E = Math.sign(S), D = E !== 0 && Math.sign(C) === -E && T >= 300, O = !1, M = null, N = !1, P = (t, n) => {
|
|
5148
5449
|
N || (N = !0, e.onDragSettle?.(t, n), o?.settle(t, n), o = null);
|
|
5149
|
-
},
|
|
5450
|
+
}, F = (e, t) => ((r, i, a) => {
|
|
5150
5451
|
let o = r === l || r === n, s = typeof a?.duration == "number" ? a.duration : 0;
|
|
5151
5452
|
if (s <= 0) return e(r, i, a);
|
|
5152
|
-
let c = t?.seconds ?? s, u = O ? x - w : w, d = !O && !D, f =
|
|
5453
|
+
let c = t?.seconds ?? s, u = O ? x - w : w, d = !O && !D, f = Yr(a?.ease), p = t ? t.ease : f, m = fl({
|
|
5153
5454
|
remainingPx: u,
|
|
5154
5455
|
spanPx: x,
|
|
5155
5456
|
velocityPxPerSecond: T,
|
|
@@ -5157,8 +5458,8 @@ function Cc(e) {
|
|
|
5157
5458
|
authoredEase: p,
|
|
5158
5459
|
reversing: d
|
|
5159
5460
|
});
|
|
5160
|
-
M === null && (M = m), o &&
|
|
5161
|
-
let h = f ?
|
|
5461
|
+
M === null && (M = m), o && P(O, m);
|
|
5462
|
+
let h = f ? pl({
|
|
5162
5463
|
remainingPx: u,
|
|
5163
5464
|
velocityPxPerSecond: T,
|
|
5164
5465
|
seconds: m,
|
|
@@ -5168,50 +5469,50 @@ function Cc(e) {
|
|
|
5168
5469
|
return e(r, i, {
|
|
5169
5470
|
...a,
|
|
5170
5471
|
duration: m,
|
|
5171
|
-
...f && h !== null ? { ease:
|
|
5472
|
+
...f && h !== null ? { ease: ml(f, h) } : {}
|
|
5172
5473
|
});
|
|
5173
|
-
}),
|
|
5174
|
-
seconds:
|
|
5175
|
-
ease:
|
|
5176
|
-
} : void 0,
|
|
5474
|
+
}), ne = H(c, "POPPING-true"), ie = ne ? {
|
|
5475
|
+
seconds: ne.duration,
|
|
5476
|
+
ease: Yr(ne.ease)
|
|
5477
|
+
} : void 0, L = m ? (e, t, n) => ee(e, t, {
|
|
5177
5478
|
...n,
|
|
5178
5479
|
duration: 0
|
|
5179
|
-
}) :
|
|
5480
|
+
}) : F(ee), ae = m ? (e, t, n) => ko(e, t, {
|
|
5180
5481
|
...n,
|
|
5181
5482
|
duration: 0
|
|
5182
|
-
}) :
|
|
5483
|
+
}) : F(ko, ie), R = m ? (e, n, r) => ko(e, n, {
|
|
5183
5484
|
...r,
|
|
5184
5485
|
duration: 0
|
|
5185
|
-
}, t) :
|
|
5186
|
-
animate:
|
|
5486
|
+
}, t) : F((e, n, r) => ko(e, n, r, t)), ce = await c.onSwipeEnd(i, h, {
|
|
5487
|
+
animate: L,
|
|
5187
5488
|
currentScreen: l,
|
|
5188
5489
|
prevScreen: n,
|
|
5189
5490
|
onStart: (e) => {
|
|
5190
5491
|
let t = !a && e;
|
|
5191
5492
|
O = t, f?.onSwipeEnd?.(t, {
|
|
5192
|
-
animate:
|
|
5493
|
+
animate: ae,
|
|
5193
5494
|
currentDecorator: d,
|
|
5194
5495
|
prevDecorator: r
|
|
5195
|
-
}),
|
|
5496
|
+
}), oe("end", t, 0, R);
|
|
5196
5497
|
}
|
|
5197
5498
|
}), z = !a && ce;
|
|
5198
|
-
if (
|
|
5499
|
+
if (P(z, m ? 0 : M ?? 0), z) {
|
|
5199
5500
|
l?.setAttribute(lt, "true"), d?.setAttribute(lt, "true");
|
|
5200
|
-
for (let e of s.current)
|
|
5201
|
-
for (let e of s.prev) Q(e, void 0, t),
|
|
5501
|
+
for (let e of s.current) Oc(e, t);
|
|
5502
|
+
for (let e of s.prev) Q(e, void 0, t), Oc(e, t);
|
|
5202
5503
|
s = {
|
|
5203
5504
|
current: [],
|
|
5204
5505
|
prev: []
|
|
5205
5506
|
}, u = {
|
|
5206
5507
|
current: [],
|
|
5207
5508
|
prev: []
|
|
5208
|
-
},
|
|
5209
|
-
} else l && Q(l, void 0, t), n && Q(n, void 0, t), d && Q(d), r && Q(r),
|
|
5509
|
+
}, re(), e.back(), te();
|
|
5510
|
+
} else l && Q(l, void 0, t), n && Q(n, void 0, t), d && Q(d), r && Q(r), I(), te(), se(), re(), e.setDragStatus("IDLE");
|
|
5210
5511
|
}, ye = (t) => {
|
|
5211
|
-
t.isPrimary === !1 || t.pointerType === "mouse" && t.button !== 0 || ((p || _ !== null) && we(), e.isReadyForDrag() && (_ = t.pointerId, y = !1, d = !0, f = !1, T =
|
|
5512
|
+
t.isPrimary === !1 || t.pointerType === "mouse" && t.button !== 0 || ((p || _ !== null) && we(), e.isReadyForDrag() && (_ = t.pointerId, y = !1, d = !0, f = !1, T = hl(t.target, {
|
|
5212
5513
|
direction: "x",
|
|
5213
5514
|
verifyByScroll: !0
|
|
5214
|
-
}), E =
|
|
5515
|
+
}), E = hl(t.target, {
|
|
5215
5516
|
direction: "y",
|
|
5216
5517
|
verifyByScroll: !0
|
|
5217
5518
|
}), D = t.clientX, O = t.clientY));
|
|
@@ -5267,31 +5568,31 @@ function Cc(e) {
|
|
|
5267
5568
|
}
|
|
5268
5569
|
//#endregion
|
|
5269
5570
|
//#region src/screen/pendingNetwork.ts
|
|
5270
|
-
var
|
|
5271
|
-
|
|
5272
|
-
},
|
|
5273
|
-
if (!(
|
|
5274
|
-
if (
|
|
5571
|
+
var wl = 0, Tl = !1, El = () => {
|
|
5572
|
+
wl = Math.max(0, wl - 1);
|
|
5573
|
+
}, Dl = () => {
|
|
5574
|
+
if (!(Tl || typeof window > "u")) {
|
|
5575
|
+
if (Tl = !0, typeof window.fetch == "function") {
|
|
5275
5576
|
let e = window.fetch.bind(window);
|
|
5276
5577
|
window.fetch = (...t) => {
|
|
5277
|
-
|
|
5578
|
+
wl += 1;
|
|
5278
5579
|
let n;
|
|
5279
5580
|
try {
|
|
5280
5581
|
n = e(...t);
|
|
5281
5582
|
} catch (e) {
|
|
5282
|
-
throw
|
|
5583
|
+
throw El(), e;
|
|
5283
5584
|
}
|
|
5284
|
-
return n.then((e) => (
|
|
5285
|
-
throw
|
|
5585
|
+
return n.then((e) => (El(), e), (e) => {
|
|
5586
|
+
throw El(), e;
|
|
5286
5587
|
});
|
|
5287
5588
|
};
|
|
5288
5589
|
}
|
|
5289
5590
|
if (typeof XMLHttpRequest == "function") {
|
|
5290
5591
|
let e = XMLHttpRequest.prototype.send;
|
|
5291
5592
|
XMLHttpRequest.prototype.send = function(...t) {
|
|
5292
|
-
|
|
5593
|
+
wl += 1;
|
|
5293
5594
|
let n = !1, r = () => {
|
|
5294
|
-
n || (n = !0,
|
|
5595
|
+
n || (n = !0, El());
|
|
5295
5596
|
};
|
|
5296
5597
|
this.addEventListener("loadend", r);
|
|
5297
5598
|
try {
|
|
@@ -5302,28 +5603,28 @@ var wc = 0, Tc = !1, Ec = () => {
|
|
|
5302
5603
|
};
|
|
5303
5604
|
}
|
|
5304
5605
|
}
|
|
5305
|
-
},
|
|
5606
|
+
}, Ol = () => (Dl(), wl > 0);
|
|
5306
5607
|
//#endregion
|
|
5307
5608
|
//#region src/screen/animStartAnchor.ts
|
|
5308
|
-
function
|
|
5609
|
+
function kl(e) {
|
|
5309
5610
|
return e.status !== "PUSHING" && e.status !== "POPPING" && e.status !== "REPLACING" || !e.isTopOrTopPrev ? null : `${e.status}:${e.transitionName}`;
|
|
5310
5611
|
}
|
|
5311
|
-
var
|
|
5312
|
-
function
|
|
5313
|
-
return Array.from(e.querySelectorAll("img")).filter((e) => e.complete && typeof e.decode == "function").slice(0,
|
|
5612
|
+
var Al = 300, jl = 20;
|
|
5613
|
+
function Ml(e) {
|
|
5614
|
+
return Array.from(e.querySelectorAll("img")).filter((e) => e.complete && typeof e.decode == "function").slice(0, jl);
|
|
5314
5615
|
}
|
|
5315
|
-
function
|
|
5316
|
-
if (!(!e || typeof e.querySelectorAll != "function")) for (let t of
|
|
5616
|
+
function Nl(e) {
|
|
5617
|
+
if (!(!e || typeof e.querySelectorAll != "function")) for (let t of Ml(e)) t.decode().catch(() => {});
|
|
5317
5618
|
}
|
|
5318
|
-
var
|
|
5619
|
+
var Pl = 3, Fl = 40, Il = (e) => {
|
|
5319
5620
|
if (typeof e.querySelectorAll != "function") return !1;
|
|
5320
5621
|
let t = Math.max(1, e.querySelectorAll("*").length);
|
|
5321
5622
|
/* v8 ignore stop */
|
|
5322
|
-
return ((e.textContent ?? "").trim().length + e.querySelectorAll("img").length *
|
|
5323
|
-
},
|
|
5623
|
+
return ((e.textContent ?? "").trim().length + e.querySelectorAll("img").length * Fl) / t < Pl;
|
|
5624
|
+
}, Ll = (e) => typeof e.getAnimations == "function" && e.getAnimations({ subtree: !0 }).some((e) => {
|
|
5324
5625
|
let t = e.animationName;
|
|
5325
5626
|
return typeof t != "string" || !t.startsWith("flemo-");
|
|
5326
|
-
}),
|
|
5627
|
+
}), Rl = (e) => {
|
|
5327
5628
|
/* v8 ignore next -- the settle gate only runs a scope past looksLikeShell,
|
|
5328
5629
|
which already requires querySelectorAll. */
|
|
5329
5630
|
if (typeof e.querySelectorAll != "function") return !1;
|
|
@@ -5331,12 +5632,12 @@ var Pc = 3, Fc = 40, Ic = (e) => {
|
|
|
5331
5632
|
the guard shields exotic embedders. */
|
|
5332
5633
|
let t = typeof e.getBoundingClientRect == "function" ? e.getBoundingClientRect() : null, n = t && t.height > 0 ? t : null, r = 0;
|
|
5333
5634
|
for (let t of Array.from(e.querySelectorAll("img"))) {
|
|
5334
|
-
if (r >=
|
|
5635
|
+
if (r >= jl) break;
|
|
5335
5636
|
if (!(t.loading === "lazy" && !t.currentSrc) && !(n && t.getBoundingClientRect().top - n.top >= n.height) && (r += 1, !t.complete)) return !0;
|
|
5336
5637
|
}
|
|
5337
5638
|
return !1;
|
|
5338
5639
|
};
|
|
5339
|
-
function
|
|
5640
|
+
function zl(e, t = {}) {
|
|
5340
5641
|
let n = !1, r = 0, i = [], a = [], o = () => {
|
|
5341
5642
|
if (n) return;
|
|
5342
5643
|
let r = t.scope;
|
|
@@ -5344,7 +5645,7 @@ function zc(e, t = {}) {
|
|
|
5344
5645
|
e();
|
|
5345
5646
|
return;
|
|
5346
5647
|
}
|
|
5347
|
-
let i =
|
|
5648
|
+
let i = Ml(r);
|
|
5348
5649
|
if (i.length === 0) {
|
|
5349
5650
|
e();
|
|
5350
5651
|
return;
|
|
@@ -5359,12 +5660,12 @@ function zc(e, t = {}) {
|
|
|
5359
5660
|
let n = t.contentSettle, r = t.scope;
|
|
5360
5661
|
if (!n || !r || typeof MutationObserver > "u") return e(), () => {};
|
|
5361
5662
|
let i = () => !n.renderSettleOnly && (h() || m());
|
|
5362
|
-
if (!n.renderSettleOnly && !
|
|
5663
|
+
if (!n.renderSettleOnly && !Il(r)) return e(), () => {};
|
|
5363
5664
|
/* v8 ignore start -- performance exists in every runtime under test;
|
|
5364
5665
|
the fallback only shields exotic embedders. */
|
|
5365
|
-
let o = typeof performance < "u" ? performance.now() : 0, s = () => (typeof performance < "u" ? performance.now() : 0) - o, c = [], l = !1, u = !1, d, f, p, m = () =>
|
|
5666
|
+
let o = typeof performance < "u" ? performance.now() : 0, s = () => (typeof performance < "u" ? performance.now() : 0) - o, c = [], l = !1, u = !1, d, f, p, m = () => Il(r) && Ll(r), h = () => Ol() || Rl(r), g = () => {
|
|
5366
5667
|
u || (u = !0, x.disconnect(), clearTimeout(d), clearTimeout(f), clearTimeout(p), c.forEach((e) => cancelAnimationFrame(e)), c = [], e());
|
|
5367
|
-
}, _ = () => n.renderSettleOnly ? 6 : !
|
|
5668
|
+
}, _ = () => n.renderSettleOnly ? 6 : !Il(r) && !i() ? 2 : 6, v = !1, y = () => {
|
|
5368
5669
|
if (!n.renderSettleOnly) {
|
|
5369
5670
|
g();
|
|
5370
5671
|
return;
|
|
@@ -5447,14 +5748,14 @@ function zc(e, t = {}) {
|
|
|
5447
5748
|
n = !0, cancelAnimationFrame(p), r && cancelAnimationFrame(r), i.forEach((e) => cancelAnimationFrame(e)), a.forEach((e) => e());
|
|
5448
5749
|
};
|
|
5449
5750
|
}
|
|
5450
|
-
function
|
|
5451
|
-
let n =
|
|
5751
|
+
function Bl(e, t = {}) {
|
|
5752
|
+
let n = zl(e, t), r = t.contentSettle?.capMs ?? 0, i = setTimeout(e, 300 + r);
|
|
5452
5753
|
return () => {
|
|
5453
5754
|
n(), clearTimeout(i);
|
|
5454
5755
|
};
|
|
5455
5756
|
}
|
|
5456
|
-
var
|
|
5457
|
-
function
|
|
5757
|
+
var Vl = (e) => 300 + (e?.contentSettle?.capMs ?? 0);
|
|
5758
|
+
function Hl() {
|
|
5458
5759
|
let e = /* @__PURE__ */ new Map(), t = (t, n) => {
|
|
5459
5760
|
clearTimeout(n.backstop), e.delete(t);
|
|
5460
5761
|
let r = [...n.members];
|
|
@@ -5464,14 +5765,14 @@ function Hc() {
|
|
|
5464
5765
|
return { join: (r, i, a) => {
|
|
5465
5766
|
let o = e.get(r);
|
|
5466
5767
|
if (o) {
|
|
5467
|
-
let e =
|
|
5768
|
+
let e = Vl(a);
|
|
5468
5769
|
if (e > o.backstopMs) {
|
|
5469
5770
|
clearTimeout(o.backstop);
|
|
5470
5771
|
let n = o;
|
|
5471
5772
|
n.backstopMs = e, n.backstop = setTimeout(() => t(r, n), e);
|
|
5472
5773
|
}
|
|
5473
5774
|
} else {
|
|
5474
|
-
let n =
|
|
5775
|
+
let n = Vl(a), i = {
|
|
5475
5776
|
members: /* @__PURE__ */ new Set(),
|
|
5476
5777
|
backstop: setTimeout(() => t(r, i), n),
|
|
5477
5778
|
backstopMs: n
|
|
@@ -5481,7 +5782,7 @@ function Hc() {
|
|
|
5481
5782
|
let s = o, c = {
|
|
5482
5783
|
release: i,
|
|
5483
5784
|
ready: !1,
|
|
5484
|
-
cancelReadiness:
|
|
5785
|
+
cancelReadiness: zl(() => {
|
|
5485
5786
|
c.ready = !0, n(s) && t(r, s);
|
|
5486
5787
|
}, a)
|
|
5487
5788
|
};
|
|
@@ -5498,7 +5799,7 @@ function Hc() {
|
|
|
5498
5799
|
}
|
|
5499
5800
|
//#endregion
|
|
5500
5801
|
//#region src/screen/observeBarHeight.ts
|
|
5501
|
-
function
|
|
5802
|
+
function Ul(e, t) {
|
|
5502
5803
|
e.offsetHeight > 0 && t(e.offsetHeight);
|
|
5503
5804
|
let n = new ResizeObserver(([e]) => {
|
|
5504
5805
|
e.contentRect.height > 0 && t(e.contentRect.height);
|
|
@@ -5509,9 +5810,9 @@ function Uc(e, t) {
|
|
|
5509
5810
|
}
|
|
5510
5811
|
//#endregion
|
|
5511
5812
|
//#region src/screen/publishRideBox.ts
|
|
5512
|
-
function
|
|
5813
|
+
function Wl(e) {
|
|
5513
5814
|
let t = (t) => {
|
|
5514
|
-
t > 0 && e.style.setProperty(
|
|
5815
|
+
t > 0 && e.style.setProperty(Gn, `${t}px`);
|
|
5515
5816
|
};
|
|
5516
5817
|
t(e.offsetHeight);
|
|
5517
5818
|
let n = new ResizeObserver(([e]) => {
|
|
@@ -5520,29 +5821,29 @@ function Wc(e) {
|
|
|
5520
5821
|
t(typeof n == "number" ? n : e.contentRect.height);
|
|
5521
5822
|
});
|
|
5522
5823
|
return n.observe(e), () => {
|
|
5523
|
-
n.disconnect(), e.style.removeProperty(
|
|
5824
|
+
n.disconnect(), e.style.removeProperty(Gn);
|
|
5524
5825
|
};
|
|
5525
5826
|
}
|
|
5526
5827
|
//#endregion
|
|
5527
5828
|
//#region src/screen/observeViewportScrollHeight.ts
|
|
5528
|
-
var
|
|
5829
|
+
var Gl = 0, Kl = 0, ql = 0, Jl = !1, Yl = /* @__PURE__ */ new Set(), Xl = 0, Zl = () => {
|
|
5529
5830
|
let e = document.documentElement.scrollHeight - (window.visualViewport?.height || 0);
|
|
5530
5831
|
e = e < 0 ? 0 : e;
|
|
5531
|
-
let t = e -
|
|
5532
|
-
t = t < 0 ? 0 : t,
|
|
5533
|
-
for (let n of [...
|
|
5534
|
-
},
|
|
5535
|
-
cancelAnimationFrame(
|
|
5832
|
+
let t = e - Gl;
|
|
5833
|
+
t = t < 0 ? 0 : t, Gl ||= e, Kl = e, ql = t, Jl = !0;
|
|
5834
|
+
for (let n of [...Yl]) n(e, t);
|
|
5835
|
+
}, Ql = () => {
|
|
5836
|
+
cancelAnimationFrame(Xl), Xl = requestAnimationFrame(Zl);
|
|
5536
5837
|
};
|
|
5537
|
-
function $
|
|
5538
|
-
let t =
|
|
5539
|
-
return
|
|
5540
|
-
|
|
5838
|
+
function $l(e) {
|
|
5839
|
+
let t = Yl.size === 0;
|
|
5840
|
+
return Yl.add(e), t && (window.visualViewport?.addEventListener("resize", Ql), window.visualViewport?.addEventListener("scroll", Ql)), Jl && (e(Kl, ql), t && Ql()), () => {
|
|
5841
|
+
Yl.delete(e), !(Yl.size > 0) && (cancelAnimationFrame(Xl), window.visualViewport?.removeEventListener("resize", Ql), window.visualViewport?.removeEventListener("scroll", Ql));
|
|
5541
5842
|
};
|
|
5542
5843
|
}
|
|
5543
5844
|
//#endregion
|
|
5544
5845
|
//#region src/utils/isOpaqueColor.ts
|
|
5545
|
-
function
|
|
5846
|
+
function eu(e) {
|
|
5546
5847
|
let t = e.trim().toLowerCase();
|
|
5547
5848
|
if (t === "transparent" || t === "") return !1;
|
|
5548
5849
|
if (t.match(/^rgb\(\s*\d+[\s,]+\d+[\s,]+\d+\s*\)$/)) return !0;
|
|
@@ -5553,7 +5854,7 @@ function el(e) {
|
|
|
5553
5854
|
}
|
|
5554
5855
|
//#endregion
|
|
5555
5856
|
//#region src/utils/buildRoutePath.ts
|
|
5556
|
-
function
|
|
5857
|
+
function tu(e, n) {
|
|
5557
5858
|
let i = n ?? {}, a = t(e)(Object.fromEntries(Object.entries(i).map(([e, t]) => [e, String(t)]))), o = (typeof e == "string" ? r(e) : e).tokens.filter((e) => e.type === "param").map((e) => e.name), s = Object.fromEntries(Object.entries(i).filter(([e]) => !o.includes(e))), c = new URLSearchParams(s).toString();
|
|
5558
5859
|
return {
|
|
5559
5860
|
pathname: `${a}${c ? `?${c}` : ""}`,
|
|
@@ -5561,4 +5862,4 @@ function tl(e, n) {
|
|
|
5561
5862
|
};
|
|
5562
5863
|
}
|
|
5563
5864
|
//#endregion
|
|
5564
|
-
export { ot as ACTIVE_ATTR,
|
|
5865
|
+
export { ot as ACTIVE_ATTR, Ft as ANIM_HOLD, W as ANIM_HOLD_ATTR, It as ANIM_HOLD_PAUSED_VALUES, Al as ANIM_HOLD_RELEASE_BACKSTOP_MS, dt as BAR_ACTIVE_ATTR, ut as BAR_ATTR, mt as BAR_ID_ATTR, ht as BAR_ID_TYPE_ATTR, pt as BAR_RIDING_ATTR, _t as BAR_SPACER_ATTR, ft as BAR_STATUS_ATTR, gt as BAR_TRANSITION_ATTR, Bt as CREEP_ATTR, vt as DECORATOR_ATTR, yt as DECORATOR_NAME_ATTR, tt as DEFAULT_MORPH_TRANSITION_NAME, Vt as DESK_HEAD_ATTR, Kt as DEVTOOLS_PANEL_ATTR, qt as FLEMO_ATTRIBUTES, rt as FLEMO_ATTR_PREFIX, zt as GOVERNED_ATTR, Wt as GPU_PREWARM_ATTR, Lt as HELD_ARRIVAL_ATTR, Rt as IMAGE_HOLD_ATTR, bt as LAYER_HOST_ATTR, St as LAYER_OWNER_ATTR, xt as LAYER_SLOT_ATTR, sl as MIN_SETTLE_SECONDS, Et as MORPH_ATTR, kt as MORPH_LAYER_ATTR, Ot as MORPH_NAME_ATTR, Dt as MORPH_ROLE, Pt as MORPH_SHEET_ATTR, At as MORPH_SLOT_ATTR, Gt as OFFLOADED_SRC_ATTR, al as OVERLAY_LEVEL, Jo as OVERSIZE_AREA_RATIO, Ht as PARK_HEAD_ATTR, wt as PART_HOME_ATTR, Ct as PART_LAYER_ATTR, U as PART_NAME_ATTR, Gn as RIDE_HEIGHT_VAR, ct as ROUTER_ATTR, it as SCREEN_ATTR, ol as SCREEN_STACKING_ORDER, lt as SKIP_ANIMATION_ATTR, at as STATUS_ATTR, F as TRANSITIONAL_STATUS_VALUES, st as TRANSITION_ATTR, c as TaskManager, c as TaskManger, il as UNNUMBERED_LEVEL, Ut as WARM_ATTR, kl as animHoldKey, ko as animateInline, Sr as animationName, ae as appendParamsQuery, mo as applyTransitionStyles, qa as attachMorph, G as attrSelector, K as attrValueSelector, io as beginMorphSwipe, tu as buildRoutePath, vl as canProgrammaticallyScroll, Q as clearInlineAnimation, dr as collectAnimatedProperties, Ar as compileTransitionStyles, Sl as computeBarRiding, fe as computeScreenFreeze, de as computeScreenFreezeMode, w as consumeSelfInducedPop, Hl as createAnimHoldCoordinator, b as createBrowserHistoryDriver, Ae as createDecorator, l as createHistoryStore, T as createHistorySync, ss as createImageDecodeOffloader, P as createMemoryHistoryDriver, Ke as createMorphTransition, te as createNavigateStore, ie as createNavigationController, Ve as createPartTransition, je as createRawDecorator, qe as createRawMorphTransition, He as createRawPartTransition, me as createRawTransition, ue as createRouterScope, V as createScreenSelector, B as createScreenStore, x as createSelfPopGuard, oe as createStepController, Cl as createSwipeController, pe as createTransition, Lc as createTransitionEngine, R as createTransitionStore, xe as cupertino, Pe as decoratorMap, Z as detectBlinkEngine, Nl as eagerlyDecodeImages, mr as easingToCss, Yc as ensureGpuPipelinePrewarm, ls as ensureImageDecodeOffloader, ee as ensureScopeHistorySync, m as ensureWindowHistoryState, So as enteringInitialStyle, hl as findScrollable, u as getMatchedPathPattern, d as getParams, ia as governedCompiledActive, bs as holdCompositorWarm, Li as isDesktopBlink, Fi as isLegacyAndroidBlink, eu as isOpaqueColor, p as isServer, Te as layout, C as markSelfInducedPop, ce as matchesPathname, Ee as material, et as morphTransitionMap, De as none, Ul as observeBarHeight, $l as observeViewportScrollHeight, _l as overflowsAxis, Ne as overlay, We as partTransitionMap, qn as percentRatio, Wl as publishRideBox, L as readStepParams, Ur as registerMorphLayer, Ya as registerPartLayer, xo as registerTransitionDefinitions, N as releaseScopeHistorySync, Be as resolveDecoratorClock, Xa as resolvePartLayer, sa as resolvePlatformProfile, Yn as resolveRideTarget, ke as resolveTransition, Jn as rideLength, Bl as scheduleAnimHoldRelease, f as seedInitialHistory, h as seedRouterEntry, Ye as shared, xl as sharedBarsMatch, ns as shouldOffloadImage, rl as startFlemoRuntime, qi as steadySixtyDesktopProfile, se as subscribeStepParamsRestore, fl as swipeSettleSeconds, fr as targetToDecls, Ze as textMorph, Oe as transitionMap, Nr as variantHasAnimation, $e as zoomMorph };
|