@tangle-network/sandbox-cli 0.21.64 → 0.21.65
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/README.md +31 -3
- package/SKILL.md +29 -1
- package/dist/graph-native-CS_TmaCK.mjs +1 -0
- package/dist/graph-viewer/Analytics-bWsqhurt.js +1001 -0
- package/dist/graph-viewer/{AnswerStrip-DhwqOyxI.js → AnswerStrip-COxV7gLW.js} +2 -2
- package/dist/graph-viewer/Checks-CQGmKcQ0.js +164 -0
- package/dist/graph-viewer/Conversations-DgCshBAf.js +627 -0
- package/dist/graph-viewer/{Files-DtZhf0ii.js → Files-CvIOGrAs.js} +81 -90
- package/dist/graph-viewer/LiveRun-DHmsr6F7.js +311 -0
- package/dist/graph-viewer/{Outputs-QET3nPPp.js → Outputs-rwBg_x36.js} +4 -4
- package/dist/graph-viewer/Overview-C150tkVa.js +194 -0
- package/dist/graph-viewer/{RunOverview-DJQDAMIx.js → RunOverview-CSqsunqf.js} +2 -2
- package/dist/graph-viewer/RunPage-F_prVwiV.js +286 -0
- package/dist/graph-viewer/Timeline-BFDywlmz.js +335 -0
- package/dist/graph-viewer/Today-BdDuqZGF.js +623 -0
- package/dist/graph-viewer/Topology-SAfGtd5u.js +238 -0
- package/dist/graph-viewer/Traces-BYqXaS_s.js +254 -0
- package/dist/graph-viewer/{WallPages-4d9QUZDq.js → WallPages-MM70VZrC.js} +48 -30
- package/dist/graph-viewer/agent-runtime.js +55 -55
- package/dist/graph-viewer/{data-BJmP7F1M.js → data-DTGmre1W.js} +31 -27
- package/dist/graph-viewer/harness-sessions.js +1 -1
- package/dist/graph-viewer/index.js +1357 -1392
- package/dist/graph-viewer/{lazy-pages-DM0cZM10.js → lazy-pages-BYuq_L_n.js} +9 -5
- package/dist/graph-viewer/{outputs-model-CGdvjkQh.js → outputs-model-CHTx8rMz.js} +2 -2
- package/dist/graph-viewer/{viewer/plain-words-CgvxtEOa.js → plain-words-BrMHl0On.js} +9 -4
- package/dist/graph-viewer/receipt.js +2 -2
- package/dist/graph-viewer/record-CsP_3NJS.js +612 -0
- package/dist/graph-viewer/record-part-CuT9Xw37.js +334 -0
- package/dist/graph-viewer/record.js +2 -336
- package/dist/graph-viewer/report-viewer.js +65 -65
- package/dist/graph-viewer/report.js +1 -1
- package/dist/graph-viewer/research-publication.js +1 -1
- package/dist/graph-viewer/{run-files-C1NgzM0l.js → run-files-BckQDdTD.js} +1 -1
- package/dist/graph-viewer/{run-receipt-Bvi4-KVM.js → run-receipt-Bt2iXJUy.js} +1 -0
- package/dist/graph-viewer/schemas/agent-workspace.play.v1.json +3 -0
- package/dist/graph-viewer/schemas/agent-workspace.plays.v1.json +2 -0
- package/dist/graph-viewer/schemas/agent-workspace.run.v1.json +1 -0
- package/dist/graph-viewer/styles.css +4559 -2385
- package/dist/graph-viewer/trace-spans.js +1 -1
- package/dist/graph-viewer/ui-xa5w5bEN.js +889 -0
- package/dist/graph-viewer/viewer/{AgentGraphCanvas-CMdOlSlh-4EervjeC.js → AgentGraphCanvas-B74GN1o6-BZEumF7-.js} +2610 -2707
- package/dist/graph-viewer/viewer/Analytics-E3XS570U.js +1002 -0
- package/dist/graph-viewer/viewer/{AnswerStrip-CGUyXuYH.js → AnswerStrip-B7xMU57A.js} +2 -2
- package/dist/graph-viewer/viewer/Checks-CJ5XSHbv.js +165 -0
- package/dist/graph-viewer/viewer/Conversations-AX8G7Qyl.js +904 -0
- package/dist/graph-viewer/viewer/Files-DxL1576V.js +630 -0
- package/dist/graph-viewer/viewer/LiveRun-B-BckyEj.js +820 -0
- package/dist/graph-viewer/viewer/{Outputs-CumGyjQo.js → Outputs-BoIpgfMv.js} +24 -23
- package/dist/graph-viewer/viewer/Overview-Dzg5XJgy.js +436 -0
- package/dist/graph-viewer/viewer/RunPage-NtevWXBs.js +285 -0
- package/dist/graph-viewer/viewer/{Scores-ZS16yk0n.js → Scores-Dgv4WePL.js} +3 -3
- package/dist/graph-viewer/viewer/Timeline-CzY3LVDu.js +335 -0
- package/dist/graph-viewer/viewer/Today-Bi9IIwuh.js +623 -0
- package/dist/graph-viewer/viewer/Topology-CzjqSFXH.js +239 -0
- package/dist/graph-viewer/viewer/Traces-CMX0H1VU.js +254 -0
- package/dist/graph-viewer/viewer/{WallPages-CzWpyIfp.js → WallPages-Clj4bORg.js} +50 -32
- package/dist/graph-viewer/viewer/addon-webgl-BSCscllv.js +4027 -0
- package/dist/graph-viewer/viewer/agent-record-BrP-ENHg.css +2 -0
- package/dist/graph-viewer/viewer/{bot-D6Nrej7Z.js → bot-BaQU59LG.js} +1 -1
- package/dist/graph-viewer/viewer/{chevron-right-D_5IKLxu.js → chevron-right-Xn05jYLT.js} +1 -1
- package/dist/graph-viewer/viewer/{createLucideIcon-yH0cxLMy.js → createLucideIcon-BSphcoOJ.js} +1 -1
- package/dist/graph-viewer/viewer/dashboard-D3JhmRhe-DSl0zhkw.js +371 -0
- package/dist/graph-viewer/viewer/{data-CkWfWr7i.js → data-CVHeKhrh.js} +144 -139
- package/dist/graph-viewer/viewer/dist-4_KJz8ZM.js +349 -0
- package/dist/graph-viewer/viewer/dist-Dy-wrdTt.js +1615 -0
- package/dist/graph-viewer/viewer/es2015-utW4DTOJ.js +3506 -0
- package/dist/graph-viewer/viewer/{final-output-kwY11u9X.js → final-output-BYT-g-9j.js} +1 -1
- package/dist/graph-viewer/viewer/flow-waterfall-model-DvrgPLGS-BdThSFH-.js +2696 -0
- package/dist/graph-viewer/viewer/git-branch-BzTbIcYL.js +28 -0
- package/dist/graph-viewer/viewer/{highlights-Btsi5OXl.js → highlights-DWeSCtiR.js} +4 -4
- package/dist/graph-viewer/viewer/jsx-runtime-DPT6sCLq.js +319 -0
- package/dist/graph-viewer/viewer/lazy-pages-ChiMJ8r_.js +803 -0
- package/dist/graph-viewer/viewer/{markdown-CX_sVrXB.js → markdown-lADwhD7y.js} +2324 -2608
- package/dist/graph-viewer/viewer/model-brand-bTcMjQtB-RSb7EbGB.js +476 -0
- package/dist/graph-viewer/viewer/{page-header-Brq611fd.js → page-header-QbUg8F8i.js} +12 -11
- package/dist/graph-viewer/{plain-words-CgvxtEOa.js → viewer/plain-words-BrMHl0On.js} +9 -4
- package/dist/graph-viewer/viewer/primitives-znfPK9NP-B6UO7uDr.js +346 -0
- package/dist/graph-viewer/viewer/react-DQ7E2Epi.js +4254 -0
- package/dist/graph-viewer/viewer/{react-dom-t1L4_-il.js → react-dom-BEusmvQH.js} +1 -1
- package/dist/graph-viewer/viewer/record-DZnT6SWN-H-ul3U3a.js +3523 -0
- package/dist/graph-viewer/viewer/record-W39D5MO-.js +1 -0
- package/dist/graph-viewer/viewer/record-part-CbweyYoV.js +335 -0
- package/dist/graph-viewer/viewer/{segmented-control-BaJmvTNd.js → segmented-control-Di1mbQlP.js} +27 -26
- package/dist/graph-viewer/viewer/{shiki-Qnby7Sh6.js → shiki-BfNNlmfZ.js} +15 -15
- package/dist/graph-viewer/viewer/status-meta-S0kV_RDp.js +273 -0
- package/dist/graph-viewer/viewer/{stream-tokenizer-CWtnjmRd.js → stream-tokenizer-B5wWaM3U.js} +12 -12
- package/dist/graph-viewer/viewer/{themes-1i1fzpRk.js → themes-DuRxHiga.js} +1 -1
- package/dist/graph-viewer/viewer/ui-Co03nZUX.js +889 -0
- package/dist/graph-viewer/viewer/utils-BuObIC0n.js +1815 -0
- package/dist/graph-viewer/viewer/workbench-E6_5q_oL.js +28351 -0
- package/dist/graph-viewer/viewer/workflows--mZpHYqo.js +3298 -0
- package/dist/graph-viewer/viewer/workspace-cKs9sGEO.js +2468 -0
- package/dist/graph-viewer/{workspace-model-Ewf17pTW.js → workspace-model-BkPl_J8E.js} +1 -1
- package/dist/graph-viewer/workspace-viewer.js +7452 -7489
- package/dist/graph-viewer/workspace.js +1 -1
- package/dist/index.mjs +27 -22
- package/package.json +9 -8
- package/dist/graph-viewer/Analytics-DFWW8Phh.js +0 -938
- package/dist/graph-viewer/Checks-qgqV4xgV.js +0 -155
- package/dist/graph-viewer/Conversations-CGB45kpj.js +0 -545
- package/dist/graph-viewer/LiveRun-C21wUKAY.js +0 -210
- package/dist/graph-viewer/Overview-BjeLsA2I.js +0 -506
- package/dist/graph-viewer/RunPage-CkkcBEUe.js +0 -258
- package/dist/graph-viewer/Timeline-C2Xolk0t.js +0 -293
- package/dist/graph-viewer/Today-BVVDtSVN.js +0 -660
- package/dist/graph-viewer/Topology-DO5XX8e4.js +0 -545
- package/dist/graph-viewer/Traces-BhMxjNgw.js +0 -259
- package/dist/graph-viewer/part-events-BrLrg_EV.js +0 -276
- package/dist/graph-viewer/record-part-CZal_IMH.js +0 -1408
- package/dist/graph-viewer/ui-D8QZRsC3.js +0 -938
- package/dist/graph-viewer/viewer/Analytics-DD__nbLm.js +0 -939
- package/dist/graph-viewer/viewer/Checks-Ds5M7eAW.js +0 -156
- package/dist/graph-viewer/viewer/Conversations-C1n0EBBd.js +0 -819
- package/dist/graph-viewer/viewer/Files-Cjr7NMU_.js +0 -448
- package/dist/graph-viewer/viewer/LiveRun-uPTkPSjo.js +0 -6772
- package/dist/graph-viewer/viewer/Overview-4Umk14_2.js +0 -507
- package/dist/graph-viewer/viewer/RunPage-DZlBW7Va.js +0 -257
- package/dist/graph-viewer/viewer/Timeline-BnK6-yBR.js +0 -294
- package/dist/graph-viewer/viewer/Today-a_-oNigi.js +0 -660
- package/dist/graph-viewer/viewer/Topology-CQPCLQT6.js +0 -546
- package/dist/graph-viewer/viewer/Traces-C0IGk0L4.js +0 -259
- package/dist/graph-viewer/viewer/WorkflowGraph-DZ3xejKE-jRXKeSrg.js +0 -1559
- package/dist/graph-viewer/viewer/agent-record-Dw772ROs.css +0 -2
- package/dist/graph-viewer/viewer/agent-timeline-Cs9Qbpvo.js +0 -1798
- package/dist/graph-viewer/viewer/dist-C1-7EfoW.js +0 -488
- package/dist/graph-viewer/viewer/file-text-m7a3piQF.js +0 -47
- package/dist/graph-viewer/viewer/jsx-runtime-DQWyJOhv.js +0 -2136
- package/dist/graph-viewer/viewer/lazy-pages-BowaGsg-.js +0 -20
- package/dist/graph-viewer/viewer/model-brand-bTcMjQtB-fagiBQam.js +0 -723
- package/dist/graph-viewer/viewer/popover-CvOAjlnk.js +0 -5329
- package/dist/graph-viewer/viewer/react-CY3IbSNO.js +0 -4262
- package/dist/graph-viewer/viewer/record-part-D3_Anfpe.js +0 -1329
- package/dist/graph-viewer/viewer/terminal-83J_I4Ne.js +0 -52
- package/dist/graph-viewer/viewer/ui-C9b1rIUH.js +0 -938
- package/dist/graph-viewer/viewer/workspace-CekmOBs3.js +0 -25100
- package/dist/graph-viewer/viewer/x-DOc2URqZ.js +0 -56
|
@@ -0,0 +1,3506 @@
|
|
|
1
|
+
import { i as e } from "./rolldown-runtime-DArdT4gl.js";
|
|
2
|
+
import { n as t, t as n } from "./jsx-runtime-DPT6sCLq.js";
|
|
3
|
+
import { i as r } from "./primitives-znfPK9NP-B6UO7uDr.js";
|
|
4
|
+
//#region node_modules/.pnpm/motion-utils@14.6.0/node_modules/motion-utils/dist/es/array.mjs
|
|
5
|
+
function i(e, t) {
|
|
6
|
+
e.indexOf(t) === -1 && e.push(t);
|
|
7
|
+
}
|
|
8
|
+
function a(e, t) {
|
|
9
|
+
let n = e.indexOf(t);
|
|
10
|
+
n > -1 && e.splice(n, 1);
|
|
11
|
+
}
|
|
12
|
+
//#endregion
|
|
13
|
+
//#region node_modules/.pnpm/motion-utils@14.6.0/node_modules/motion-utils/dist/es/clamp.mjs
|
|
14
|
+
var o = (e, t, n) => n > t ? t : n < e ? e : n, s = {}, c = (e) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e), l = (e) => typeof e == "object" && !!e, u = (e) => /^0[^.\s]+$/u.test(e);
|
|
15
|
+
//#endregion
|
|
16
|
+
//#region node_modules/.pnpm/motion-utils@14.6.0/node_modules/motion-utils/dist/es/memo.mjs
|
|
17
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
18
|
+
function d(e) {
|
|
19
|
+
let t;
|
|
20
|
+
return () => (t === void 0 && (t = e()), t);
|
|
21
|
+
}
|
|
22
|
+
//#endregion
|
|
23
|
+
//#region node_modules/.pnpm/motion-utils@14.6.0/node_modules/motion-utils/dist/es/noop.mjs
|
|
24
|
+
var f = /* @__NO_SIDE_EFFECTS__ */ (e) => e, p = (...e) => e.reduce((e, t) => (n) => t(e(n))), m = /* @__NO_SIDE_EFFECTS__ */ (e, t, n) => {
|
|
25
|
+
let r = t - e;
|
|
26
|
+
return r ? (n - e) / r : 1;
|
|
27
|
+
}, h = class {
|
|
28
|
+
constructor() {
|
|
29
|
+
this.subscriptions = [];
|
|
30
|
+
}
|
|
31
|
+
add(e) {
|
|
32
|
+
return i(this.subscriptions, e), () => this.remove(e);
|
|
33
|
+
}
|
|
34
|
+
remove(e) {
|
|
35
|
+
a(this.subscriptions, e);
|
|
36
|
+
}
|
|
37
|
+
notify(e, t, n) {
|
|
38
|
+
let r = this.subscriptions.length;
|
|
39
|
+
if (r) {
|
|
40
|
+
if (r === 1) this.subscriptions[0](e, t, n);
|
|
41
|
+
else for (let i = 0; i < r; i++) {
|
|
42
|
+
let r = this.subscriptions[i];
|
|
43
|
+
r && r(e, t, n);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
getSize() {
|
|
48
|
+
return this.subscriptions.length;
|
|
49
|
+
}
|
|
50
|
+
clear() {
|
|
51
|
+
this.subscriptions.length = 0;
|
|
52
|
+
}
|
|
53
|
+
}, g = /* @__NO_SIDE_EFFECTS__ */ (e) => e * 1e3, _ = /* @__NO_SIDE_EFFECTS__ */ (e) => e / 1e3, v = /* @__NO_SIDE_EFFECTS__ */ (e, t) => t ? 1e3 / t * e : 0, y = (e, t, n) => {
|
|
54
|
+
let r = t - e;
|
|
55
|
+
return ((n - e) % r + r) % r + e;
|
|
56
|
+
}, b = (e, t, n) => e * (3 * (1 - e) * ((1 - e) * t + e * n) + e * e);
|
|
57
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
58
|
+
function x(e, t, n, r) {
|
|
59
|
+
return e === t && n === r ? f : (i) => {
|
|
60
|
+
let a = 0, o = 1, s = i;
|
|
61
|
+
for (let t = 0;; t++) {
|
|
62
|
+
s >= a && s <= o || (s = (a + o) / 2);
|
|
63
|
+
let r = b(s, e, n) - i;
|
|
64
|
+
if (r * r < 1e-28 || t === 40) break;
|
|
65
|
+
r > 0 ? o = s : a = s, s -= r * 1e-7 / (b(s + 1e-7, e, n) - i - r);
|
|
66
|
+
}
|
|
67
|
+
return b(s, t, r);
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
//#endregion
|
|
71
|
+
//#region node_modules/.pnpm/motion-utils@14.6.0/node_modules/motion-utils/dist/es/easing/modifiers/mirror.mjs
|
|
72
|
+
var S = /* @__NO_SIDE_EFFECTS__ */ (e) => (t) => t <= .5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, C = /* @__NO_SIDE_EFFECTS__ */ (e) => (t) => 1 - e(1 - t), w = /*@__PURE__*/ x(.33, 1.53, .69, .99), T = /*@__PURE__*/ C(w), ee = /*@__PURE__*/ S(T), E = (e) => e >= 1 ? 1 : (e *= 2) < 1 ? .5 * T(e) : .5 * (2 - 2 ** (-10 * (e - 1))), D = (e) => 1 - Math.sin(Math.acos(e)), O = /* @__PURE__ */ C(D), te = /* @__PURE__ */ S(D), ne = /*@__PURE__*/ x(.42, 0, 1, 1), re = /*@__PURE__*/ x(0, 0, .58, 1), ie = /*@__PURE__*/ x(.42, 0, .58, 1), ae = /* @__NO_SIDE_EFFECTS__ */ (e) => Array.isArray(e) && typeof e[0] != "number";
|
|
73
|
+
//#endregion
|
|
74
|
+
//#region node_modules/.pnpm/motion-utils@14.6.0/node_modules/motion-utils/dist/es/easing/utils/get-easing-for-segment.mjs
|
|
75
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
76
|
+
function oe(e, t) {
|
|
77
|
+
return /* @__PURE__ */ ae(e) ? e[y(0, e.length, t)] : e;
|
|
78
|
+
}
|
|
79
|
+
//#endregion
|
|
80
|
+
//#region node_modules/.pnpm/motion-utils@14.6.0/node_modules/motion-utils/dist/es/easing/utils/is-bezier-definition.mjs
|
|
81
|
+
var se = /* @__NO_SIDE_EFFECTS__ */ (e) => Array.isArray(e) && typeof e[0] == "number", ce = {
|
|
82
|
+
linear: f,
|
|
83
|
+
easeIn: ne,
|
|
84
|
+
easeInOut: ie,
|
|
85
|
+
easeOut: re,
|
|
86
|
+
circIn: D,
|
|
87
|
+
circInOut: te,
|
|
88
|
+
circOut: O,
|
|
89
|
+
backIn: T,
|
|
90
|
+
backInOut: ee,
|
|
91
|
+
backOut: w,
|
|
92
|
+
anticipate: E
|
|
93
|
+
}, le = (e) => typeof e == "string", ue = (e) => {
|
|
94
|
+
if (/* @__PURE__ */ se(e)) {
|
|
95
|
+
e.length;
|
|
96
|
+
let [t, n, r, i] = e;
|
|
97
|
+
return /* @__PURE__ */ x(t, n, r, i);
|
|
98
|
+
}
|
|
99
|
+
return le(e) ? (ce[e], `${e}`, ce[e]) : e;
|
|
100
|
+
}, k = {
|
|
101
|
+
delta: 0,
|
|
102
|
+
timestamp: 0,
|
|
103
|
+
isProcessing: !1
|
|
104
|
+
}, de;
|
|
105
|
+
function fe() {
|
|
106
|
+
de = void 0;
|
|
107
|
+
}
|
|
108
|
+
var A = {
|
|
109
|
+
now: () => (de === void 0 && A.set(k.isProcessing || s.useManualTiming ? k.timestamp : performance.now()), de),
|
|
110
|
+
set: (e) => {
|
|
111
|
+
de = e, queueMicrotask(fe);
|
|
112
|
+
}
|
|
113
|
+
}, pe = (e) => Math.round(e * 1e5) / 1e5, me = /*@__PURE__*/ ((e) => (t) => typeof t == "string" && t.startsWith(e))("var(--"), he = (e) => me(e) ? ge.test(e.split("/*")[0].trim()) : !1, ge = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;
|
|
114
|
+
function _e(e) {
|
|
115
|
+
return typeof e == "string" && e.split("/*")[0].includes("var(--");
|
|
116
|
+
}
|
|
117
|
+
//#endregion
|
|
118
|
+
//#region node_modules/.pnpm/motion-dom@14.6.0/node_modules/motion-dom/dist/es/value/types/numbers/index.mjs
|
|
119
|
+
var j = {
|
|
120
|
+
test: (e) => typeof e == "number",
|
|
121
|
+
parse: parseFloat,
|
|
122
|
+
transform: (e) => e
|
|
123
|
+
}, ve = {
|
|
124
|
+
...j,
|
|
125
|
+
transform: (e) => o(0, 1, e)
|
|
126
|
+
}, ye = {
|
|
127
|
+
...j,
|
|
128
|
+
default: 1
|
|
129
|
+
}, be = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
|
|
130
|
+
//#endregion
|
|
131
|
+
//#region node_modules/.pnpm/motion-dom@14.6.0/node_modules/motion-dom/dist/es/value/types/utils/is-nullish.mjs
|
|
132
|
+
function xe(e) {
|
|
133
|
+
return e == null;
|
|
134
|
+
}
|
|
135
|
+
//#endregion
|
|
136
|
+
//#region node_modules/.pnpm/motion-dom@14.6.0/node_modules/motion-dom/dist/es/value/types/utils/single-color-regex.mjs
|
|
137
|
+
var Se = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, Ce = (e, t) => (n) => !!(typeof n == "string" && Se.test(n) && n.startsWith(e) || t && !xe(n) && Object.prototype.hasOwnProperty.call(n, t)), we = (e, t, n) => (r) => {
|
|
138
|
+
if (typeof r != "string") return r;
|
|
139
|
+
let [i, a, o, s] = r.match(be);
|
|
140
|
+
return {
|
|
141
|
+
[e]: parseFloat(i),
|
|
142
|
+
[t]: parseFloat(a),
|
|
143
|
+
[n]: parseFloat(o),
|
|
144
|
+
alpha: s === void 0 ? 1 : parseFloat(s)
|
|
145
|
+
};
|
|
146
|
+
}, Te = (e) => o(0, 255, e), Ee = {
|
|
147
|
+
...j,
|
|
148
|
+
transform: (e) => Math.round(Te(e))
|
|
149
|
+
}, M = {
|
|
150
|
+
test: /*@__PURE__*/ Ce("rgb", "red"),
|
|
151
|
+
parse: /*@__PURE__*/ we("red", "green", "blue"),
|
|
152
|
+
transform: ({ red: e, green: t, blue: n, alpha: r = 1 }) => "rgba(" + Ee.transform(e) + ", " + Ee.transform(t) + ", " + Ee.transform(n) + ", " + pe(ve.transform(r)) + ")"
|
|
153
|
+
};
|
|
154
|
+
//#endregion
|
|
155
|
+
//#region node_modules/.pnpm/motion-dom@14.6.0/node_modules/motion-dom/dist/es/value/types/color/hex.mjs
|
|
156
|
+
function De(e) {
|
|
157
|
+
let t = "", n = "", r = "", i = "";
|
|
158
|
+
return e.length > 5 ? (t = e.substring(1, 3), n = e.substring(3, 5), r = e.substring(5, 7), i = e.substring(7, 9)) : (t = e.substring(1, 2), n = e.substring(2, 3), r = e.substring(3, 4), i = e.substring(4, 5), t += t, n += n, r += r, i += i), {
|
|
159
|
+
red: parseInt(t, 16),
|
|
160
|
+
green: parseInt(n, 16),
|
|
161
|
+
blue: parseInt(r, 16),
|
|
162
|
+
alpha: i ? parseInt(i, 16) / 255 : 1
|
|
163
|
+
};
|
|
164
|
+
}
|
|
165
|
+
var Oe = {
|
|
166
|
+
test: /*@__PURE__*/ Ce("#"),
|
|
167
|
+
parse: De,
|
|
168
|
+
transform: M.transform
|
|
169
|
+
}, ke = /* @__NO_SIDE_EFFECTS__ */ (e) => ({
|
|
170
|
+
test: (t) => typeof t == "string" && t.endsWith(e) && t.split(" ").length === 1,
|
|
171
|
+
parse: parseFloat,
|
|
172
|
+
transform: (t) => `${t}${e}`
|
|
173
|
+
}), N = /*@__PURE__*/ ke("deg"), P = /*@__PURE__*/ ke("%"), F = /*@__PURE__*/ ke("px"), Ae = /*@__PURE__*/ ke("vh"), je = /*@__PURE__*/ ke("vw"), Me = {
|
|
174
|
+
...P,
|
|
175
|
+
parse: (e) => P.parse(e) / 100,
|
|
176
|
+
transform: (e) => P.transform(e * 100)
|
|
177
|
+
}, I = {
|
|
178
|
+
test: /*@__PURE__*/ Ce("hsl", "hue"),
|
|
179
|
+
parse: /*@__PURE__*/ we("hue", "saturation", "lightness"),
|
|
180
|
+
transform: ({ hue: e, saturation: t, lightness: n, alpha: r = 1 }) => "hsla(" + Math.round(e) + ", " + P.transform(pe(t)) + ", " + P.transform(pe(n)) + ", " + pe(ve.transform(r)) + ")"
|
|
181
|
+
}, L = {
|
|
182
|
+
test: (e) => M.test(e) || Oe.test(e) || I.test(e),
|
|
183
|
+
parse: (e) => M.test(e) ? M.parse(e) : I.test(e) ? I.parse(e) : Oe.parse(e),
|
|
184
|
+
transform: (e) => typeof e == "string" ? e : e.hasOwnProperty("red") ? M.transform(e) : I.transform(e),
|
|
185
|
+
getAnimatableNone: (e) => {
|
|
186
|
+
let t = L.parse(e);
|
|
187
|
+
return t.alpha = 0, L.transform(t);
|
|
188
|
+
}
|
|
189
|
+
}, Ne = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu, Pe = /*@__PURE__*/ new RegExp(be.source), Fe = /*@__PURE__*/ new RegExp(Ne.source, "i");
|
|
190
|
+
function Ie(e) {
|
|
191
|
+
return isNaN(e) && typeof e == "string" && (Pe.test(e) || Fe.test(e));
|
|
192
|
+
}
|
|
193
|
+
var Le = "number", Re = "color", ze = "var", Be = "var(", Ve = "${}", He = /var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)(?![a-z]*\()/giu;
|
|
194
|
+
function Ue(e) {
|
|
195
|
+
let t = e.toString();
|
|
196
|
+
return Pe.test(t) || Fe.test(t);
|
|
197
|
+
}
|
|
198
|
+
function We(e) {
|
|
199
|
+
let t = e.toString(), n = [], r = {
|
|
200
|
+
color: [],
|
|
201
|
+
number: [],
|
|
202
|
+
var: []
|
|
203
|
+
}, i = [], a = 0;
|
|
204
|
+
return {
|
|
205
|
+
values: n,
|
|
206
|
+
split: t.replace(He, (e) => (L.test(e) ? (r.color.push(a), i.push(Re), n.push(L.parse(e))) : e.startsWith(Be) ? (r.var.push(a), i.push(ze), n.push(e)) : (r.number.push(a), i.push(Le), n.push(parseFloat(e))), ++a, Ve)).split(Ve),
|
|
207
|
+
indexes: r,
|
|
208
|
+
types: i
|
|
209
|
+
};
|
|
210
|
+
}
|
|
211
|
+
function Ge(e) {
|
|
212
|
+
return We(e).values;
|
|
213
|
+
}
|
|
214
|
+
function Ke({ split: e, types: t }) {
|
|
215
|
+
let n = e.length;
|
|
216
|
+
return (r) => {
|
|
217
|
+
let i = "";
|
|
218
|
+
for (let a = 0; a < n; a++) if (i += e[a], r[a] !== void 0) {
|
|
219
|
+
let e = t[a];
|
|
220
|
+
i += e === Le ? pe(r[a]) : e === Re ? L.transform(r[a]) : r[a];
|
|
221
|
+
}
|
|
222
|
+
return i;
|
|
223
|
+
};
|
|
224
|
+
}
|
|
225
|
+
function qe(e) {
|
|
226
|
+
return Ke(We(e));
|
|
227
|
+
}
|
|
228
|
+
var Je = (e) => typeof e == "number" ? 0 : L.test(e) ? L.getAnimatableNone(e) : e, Ye = (e, t) => typeof e == "number" ? t?.trim().endsWith("/") ? e : 0 : Je(e);
|
|
229
|
+
function Xe(e) {
|
|
230
|
+
let t = We(e);
|
|
231
|
+
return Ke(t)(t.values.map((e, n) => Ye(e, t.split[n])));
|
|
232
|
+
}
|
|
233
|
+
var R = {
|
|
234
|
+
test: Ie,
|
|
235
|
+
parse: Ge,
|
|
236
|
+
createTransformer: qe,
|
|
237
|
+
getAnimatableNone: Xe
|
|
238
|
+
};
|
|
239
|
+
//#endregion
|
|
240
|
+
//#region node_modules/.pnpm/motion-dom@14.6.0/node_modules/motion-dom/dist/es/value/types/color/hsla-to-rgba.mjs
|
|
241
|
+
function Ze(e, t, n) {
|
|
242
|
+
return n < 0 && (n += 1), n > 1 && --n, n < 1 / 6 ? e + (t - e) * 6 * n : n < 1 / 2 ? t : n < 2 / 3 ? e + (t - e) * (2 / 3 - n) * 6 : e;
|
|
243
|
+
}
|
|
244
|
+
function Qe({ hue: e, saturation: t, lightness: n, alpha: r }) {
|
|
245
|
+
e /= 360, t /= 100, n /= 100;
|
|
246
|
+
let i = 0, a = 0, o = 0;
|
|
247
|
+
if (!t) i = a = o = n;
|
|
248
|
+
else {
|
|
249
|
+
let r = n < .5 ? n * (1 + t) : n + t - n * t, s = 2 * n - r;
|
|
250
|
+
i = Ze(s, r, e + 1 / 3), a = Ze(s, r, e), o = Ze(s, r, e - 1 / 3);
|
|
251
|
+
}
|
|
252
|
+
return {
|
|
253
|
+
red: Math.round(i * 255),
|
|
254
|
+
green: Math.round(a * 255),
|
|
255
|
+
blue: Math.round(o * 255),
|
|
256
|
+
alpha: r
|
|
257
|
+
};
|
|
258
|
+
}
|
|
259
|
+
//#endregion
|
|
260
|
+
//#region node_modules/.pnpm/motion-dom@14.6.0/node_modules/motion-dom/dist/es/utils/mix/immediate.mjs
|
|
261
|
+
function $e(e, t) {
|
|
262
|
+
return (n) => n > 0 ? t : e;
|
|
263
|
+
}
|
|
264
|
+
//#endregion
|
|
265
|
+
//#region node_modules/.pnpm/motion-dom@14.6.0/node_modules/motion-dom/dist/es/utils/mix/number.mjs
|
|
266
|
+
var z = (e, t, n) => e + (t - e) * n, et = (e, t, n) => {
|
|
267
|
+
let r = e * e, i = n * (t * t - r) + r;
|
|
268
|
+
return i < 0 ? 0 : Math.sqrt(i);
|
|
269
|
+
}, tt = [
|
|
270
|
+
Oe,
|
|
271
|
+
M,
|
|
272
|
+
I
|
|
273
|
+
], nt = (e) => tt.find((t) => t.test(e));
|
|
274
|
+
function rt(e) {
|
|
275
|
+
let t = nt(e);
|
|
276
|
+
if (!t) return `${e}`, !1;
|
|
277
|
+
let n = t.parse(e);
|
|
278
|
+
return t === I && (n = Qe(n)), n;
|
|
279
|
+
}
|
|
280
|
+
var it = (e, t) => {
|
|
281
|
+
let n = rt(e), r = rt(t);
|
|
282
|
+
if (!n || !r) return $e(e, t);
|
|
283
|
+
let i = { ...n };
|
|
284
|
+
return (e) => (i.red = et(n.red, r.red, e), i.green = et(n.green, r.green, e), i.blue = et(n.blue, r.blue, e), i.alpha = z(n.alpha, r.alpha, e), M.transform(i));
|
|
285
|
+
}, at = /* @__PURE__ */ new Set(["none", "hidden"]);
|
|
286
|
+
function ot(e, t) {
|
|
287
|
+
return at.has(e) ? (n) => n <= 0 ? e : t : (n) => n >= 1 ? t : e;
|
|
288
|
+
}
|
|
289
|
+
//#endregion
|
|
290
|
+
//#region node_modules/.pnpm/motion-dom@14.6.0/node_modules/motion-dom/dist/es/utils/mix/complex.mjs
|
|
291
|
+
function st(e, t) {
|
|
292
|
+
return (n) => z(e, t, n);
|
|
293
|
+
}
|
|
294
|
+
function ct(e) {
|
|
295
|
+
return typeof e == "number" ? st : typeof e == "string" ? he(e) ? $e : L.test(e) ? it : ft : Array.isArray(e) ? lt : typeof e == "object" ? L.test(e) ? it : ut : $e;
|
|
296
|
+
}
|
|
297
|
+
function lt(e, t) {
|
|
298
|
+
let n = [...e], r = n.length, i = e.map((e, n) => ct(e)(e, t[n]));
|
|
299
|
+
return (e) => {
|
|
300
|
+
for (let t = 0; t < r; t++) n[t] = i[t](e);
|
|
301
|
+
return n;
|
|
302
|
+
};
|
|
303
|
+
}
|
|
304
|
+
function ut(e, t) {
|
|
305
|
+
let n = {
|
|
306
|
+
...e,
|
|
307
|
+
...t
|
|
308
|
+
}, r = {};
|
|
309
|
+
for (let i in n) e[i] !== void 0 && t[i] !== void 0 && (r[i] = ct(e[i])(e[i], t[i]));
|
|
310
|
+
return (e) => {
|
|
311
|
+
for (let t in r) n[t] = r[t](e);
|
|
312
|
+
return n;
|
|
313
|
+
};
|
|
314
|
+
}
|
|
315
|
+
function dt(e, t) {
|
|
316
|
+
let n = [], r = {
|
|
317
|
+
color: 0,
|
|
318
|
+
var: 0,
|
|
319
|
+
number: 0
|
|
320
|
+
};
|
|
321
|
+
for (let i = 0; i < t.values.length; i++) {
|
|
322
|
+
let a = t.types[i], o = e.indexes[a][r[a]], s = e.values[o] ?? 0;
|
|
323
|
+
n[i] = s, r[a]++;
|
|
324
|
+
}
|
|
325
|
+
return n;
|
|
326
|
+
}
|
|
327
|
+
var ft = (e, t) => {
|
|
328
|
+
let n = R.createTransformer(t), r = We(e), i = We(t);
|
|
329
|
+
return r.indexes.var.length === i.indexes.var.length && r.indexes.color.length === i.indexes.color.length && r.indexes.number.length >= i.indexes.number.length ? at.has(e) && !i.values.length || at.has(t) && !r.values.length ? ot(e, t) : p(lt(dt(r, i), i.values), n) : (`${e}${t}`, $e(e, t));
|
|
330
|
+
}, pt = /^(-?(?:\d+(?:\.\d*)?|\.\d+))([a-z%]*)$/iu;
|
|
331
|
+
function mt(e, t) {
|
|
332
|
+
let n = pt.exec(e);
|
|
333
|
+
if (!n) return;
|
|
334
|
+
let r = pt.exec(t);
|
|
335
|
+
if (!r || n[2] !== r[2]) return;
|
|
336
|
+
let i = n[2], a = parseFloat(n[1]), o = parseFloat(r[1]);
|
|
337
|
+
return (e) => pe(z(a, o, e)) + i;
|
|
338
|
+
}
|
|
339
|
+
function ht(e, t, n) {
|
|
340
|
+
if (typeof e == "number" && typeof t == "number" && typeof n == "number") return z(e, t, n);
|
|
341
|
+
if (typeof e == "string" && typeof t == "string") {
|
|
342
|
+
let n = mt(e, t);
|
|
343
|
+
if (n) return n;
|
|
344
|
+
}
|
|
345
|
+
return ct(e)(e, t);
|
|
346
|
+
}
|
|
347
|
+
//#endregion
|
|
348
|
+
//#region node_modules/.pnpm/motion-dom@14.6.0/node_modules/motion-dom/dist/es/frameloop/order.mjs
|
|
349
|
+
var gt = [
|
|
350
|
+
"setup",
|
|
351
|
+
"read",
|
|
352
|
+
"resolveKeyframes",
|
|
353
|
+
"preUpdate",
|
|
354
|
+
"update",
|
|
355
|
+
"preRender",
|
|
356
|
+
"render",
|
|
357
|
+
"postRender"
|
|
358
|
+
];
|
|
359
|
+
//#endregion
|
|
360
|
+
//#region node_modules/.pnpm/motion-dom@14.6.0/node_modules/motion-dom/dist/es/frameloop/render-step.mjs
|
|
361
|
+
function _t(e) {
|
|
362
|
+
let t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), r = !1, i = !1, a, o = /* @__PURE__ */ new Set(), s = {
|
|
363
|
+
delta: 0,
|
|
364
|
+
timestamp: 0,
|
|
365
|
+
isProcessing: !1
|
|
366
|
+
};
|
|
367
|
+
function c(t) {
|
|
368
|
+
o.has(t) && (n.add(t), e()), (a = t)(s);
|
|
369
|
+
}
|
|
370
|
+
let l = {
|
|
371
|
+
schedule: (e, i = !1, s = !1) => {
|
|
372
|
+
let c = s && r, l = c ? t : n;
|
|
373
|
+
return i && o.add(e), c && e !== a && l.delete(e), l.add(e), e;
|
|
374
|
+
},
|
|
375
|
+
cancel: (e) => {
|
|
376
|
+
n.delete(e), o.delete(e);
|
|
377
|
+
},
|
|
378
|
+
process: (e) => {
|
|
379
|
+
if (s = e, r) {
|
|
380
|
+
i = !0;
|
|
381
|
+
return;
|
|
382
|
+
}
|
|
383
|
+
r = !0;
|
|
384
|
+
let o = t;
|
|
385
|
+
t = n, n = o, t.forEach(c), t.clear(), a = void 0, r = !1, i && (i = !1, l.process(e));
|
|
386
|
+
}
|
|
387
|
+
};
|
|
388
|
+
return l;
|
|
389
|
+
}
|
|
390
|
+
//#endregion
|
|
391
|
+
//#region node_modules/.pnpm/motion-dom@14.6.0/node_modules/motion-dom/dist/es/frameloop/batcher.mjs
|
|
392
|
+
var vt = 40;
|
|
393
|
+
function yt(e, t, n = {
|
|
394
|
+
delta: 0,
|
|
395
|
+
timestamp: 0,
|
|
396
|
+
isProcessing: !1
|
|
397
|
+
}) {
|
|
398
|
+
let r = !1, i = !0, a = () => r = !0, o = gt.reduce((e, t) => (e[t] = _t(a), e), {}), { setup: c, read: l, resolveKeyframes: u, preUpdate: d, update: f, preRender: p, render: m, postRender: h } = o, g = () => {
|
|
399
|
+
let a = s.useManualTiming, o = a ? n.timestamp : performance.now();
|
|
400
|
+
r = !1, a || (n.delta = i ? 1e3 / 60 : Math.max(Math.min(o - n.timestamp, vt), 1)), n.timestamp = o, n.isProcessing = !0, c.process(n), l.process(n), u.process(n), d.process(n), f.process(n), p.process(n), m.process(n), h.process(n), n.isProcessing = !1, r && t && (i = !1, e(g));
|
|
401
|
+
}, _ = () => {
|
|
402
|
+
r = !0, i = !0, n.isProcessing || e(g);
|
|
403
|
+
};
|
|
404
|
+
return {
|
|
405
|
+
schedule: gt.reduce((e, t) => {
|
|
406
|
+
let n = o[t];
|
|
407
|
+
return e[t] = (e, t = !1, i = !1) => (r || _(), n.schedule(e, t, i)), e;
|
|
408
|
+
}, {}),
|
|
409
|
+
cancel: (e) => {
|
|
410
|
+
for (let t = 0; t < gt.length; t++) o[gt[t]].cancel(e);
|
|
411
|
+
},
|
|
412
|
+
state: n,
|
|
413
|
+
steps: o
|
|
414
|
+
};
|
|
415
|
+
}
|
|
416
|
+
//#endregion
|
|
417
|
+
//#region node_modules/.pnpm/motion-dom@14.6.0/node_modules/motion-dom/dist/es/frameloop/frame.mjs
|
|
418
|
+
var { schedule: B, cancel: bt, steps: xt } = /* @__PURE__ */ yt(typeof requestAnimationFrame < "u" ? requestAnimationFrame : f, !0, k), St = (e) => {
|
|
419
|
+
let t = ({ timestamp: t }) => e(t);
|
|
420
|
+
return {
|
|
421
|
+
start: (e = !0) => B.update(t, e),
|
|
422
|
+
stop: () => bt(t),
|
|
423
|
+
now: () => k.isProcessing ? k.timestamp : A.now()
|
|
424
|
+
};
|
|
425
|
+
}, Ct = (e, t, n = 10) => {
|
|
426
|
+
let r = "", i = Math.max(Math.round(t / n), 2);
|
|
427
|
+
for (let t = 0; t < i; t++) r += Math.round(e(t / (i - 1)) * 1e4) / 1e4 + ", ";
|
|
428
|
+
return `linear(${r.substring(0, r.length - 2)})`;
|
|
429
|
+
}, wt = 2e4;
|
|
430
|
+
function Tt(e, t = 50, n = wt, r) {
|
|
431
|
+
let i = 0, a = e.next(i);
|
|
432
|
+
for (r?.push(a.value); !a.done && i < n;) i += t, a = e.next(i), r?.push(a.value);
|
|
433
|
+
return i >= n ? Infinity : i;
|
|
434
|
+
}
|
|
435
|
+
//#endregion
|
|
436
|
+
//#region node_modules/.pnpm/motion-dom@14.6.0/node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.mjs
|
|
437
|
+
function Et(e, t = 100, n) {
|
|
438
|
+
let { keyframes: r, velocity: i } = e, a = r && r[r.length - 1] - r[0], o = n({
|
|
439
|
+
...e,
|
|
440
|
+
velocity: i && a ? i * t / a : i,
|
|
441
|
+
keyframes: [0, t]
|
|
442
|
+
}), s = Math.min(Tt(o), wt);
|
|
443
|
+
return {
|
|
444
|
+
type: "keyframes",
|
|
445
|
+
ease: (e) => o.next(s * e).value / t,
|
|
446
|
+
duration: /* @__PURE__ */ _(s)
|
|
447
|
+
};
|
|
448
|
+
}
|
|
449
|
+
//#endregion
|
|
450
|
+
//#region node_modules/.pnpm/motion-dom@14.6.0/node_modules/motion-dom/dist/es/animation/generators/spring.mjs
|
|
451
|
+
var V = {
|
|
452
|
+
stiffness: 100,
|
|
453
|
+
damping: 10,
|
|
454
|
+
mass: 1,
|
|
455
|
+
duration: 800,
|
|
456
|
+
bounce: .3,
|
|
457
|
+
visualDuration: .3,
|
|
458
|
+
restSpeed: {
|
|
459
|
+
granular: .01,
|
|
460
|
+
default: 2
|
|
461
|
+
},
|
|
462
|
+
restDelta: {
|
|
463
|
+
granular: .005,
|
|
464
|
+
default: .5
|
|
465
|
+
},
|
|
466
|
+
minDuration: .01,
|
|
467
|
+
maxDuration: 10,
|
|
468
|
+
minDamping: .05
|
|
469
|
+
}, Dt = (e) => e < 0 ? 1 / Math.max(1 + e, V.minDamping) : Math.max(1 - e, V.minDamping);
|
|
470
|
+
function Ot(e, t) {
|
|
471
|
+
if (!(e > 1)) return 1;
|
|
472
|
+
let n = Math.sqrt(e * e - 1), r = e - n, i = e + n, a = 2 * n * Math.exp(-t) * (1 + t);
|
|
473
|
+
return jt((e) => i * Math.exp(-r * e) - r * Math.exp(-i * e) - a, (e) => Math.exp(-i * e) - Math.exp(-r * e), t) / t;
|
|
474
|
+
}
|
|
475
|
+
function kt(e, t) {
|
|
476
|
+
return e * Math.sqrt(1 - t * t);
|
|
477
|
+
}
|
|
478
|
+
var At = 12;
|
|
479
|
+
function jt(e, t, n) {
|
|
480
|
+
let r = n;
|
|
481
|
+
for (let n = 1; n < At; n++) r -= e(r) / t(r);
|
|
482
|
+
return r;
|
|
483
|
+
}
|
|
484
|
+
var Mt = .001;
|
|
485
|
+
function Nt({ duration: e = V.duration, bounce: t = V.bounce }) {
|
|
486
|
+
let n, r;
|
|
487
|
+
V.maxDuration;
|
|
488
|
+
let i = Dt(t);
|
|
489
|
+
e = o(V.minDuration, V.maxDuration, /* @__PURE__ */ _(e)), i < 1 ? (n = (t) => {
|
|
490
|
+
let n = t * i, r = n * e, a = kt(t, i), o = Math.exp(-r);
|
|
491
|
+
return Mt - n / a * o;
|
|
492
|
+
}, r = (t) => {
|
|
493
|
+
let r = t * i * e, a = i * i * t * t * e, o = Math.exp(-r), s = kt(t * t, i);
|
|
494
|
+
return (-n(t) + Mt > 0 ? -1 : 1) * -a * o / s;
|
|
495
|
+
}) : (n = (t) => -.001 + Math.exp(-t * e) * (t * e + 1), r = (t) => Math.exp(-t * e) * (-t * (e * e)));
|
|
496
|
+
let a = 5 / e, s = jt(n, r, a), c = s * Ot(i, s * e), l = c * c;
|
|
497
|
+
return {
|
|
498
|
+
stiffness: l,
|
|
499
|
+
damping: i * 2 * Math.sqrt(l),
|
|
500
|
+
duration: /* @__PURE__ */ g(e)
|
|
501
|
+
};
|
|
502
|
+
}
|
|
503
|
+
var Pt = (e, t) => (t ? e >= 0 : e > 0) && e < Infinity;
|
|
504
|
+
function Ft(e, t) {
|
|
505
|
+
if (Pt(e, t)) return e;
|
|
506
|
+
}
|
|
507
|
+
function It(e) {
|
|
508
|
+
let t = Ft(e.stiffness), n = Ft(e.damping, !0), r = Ft(e.mass), i = {
|
|
509
|
+
...e,
|
|
510
|
+
stiffness: t ?? V.stiffness,
|
|
511
|
+
damping: n ?? V.damping,
|
|
512
|
+
mass: r ?? V.mass,
|
|
513
|
+
isResolvedFromDuration: !1,
|
|
514
|
+
isTimeDefined: (t ?? n ?? r) === void 0 && (e.duration !== void 0 || e.bounce !== void 0)
|
|
515
|
+
};
|
|
516
|
+
if (i.isTimeDefined) {
|
|
517
|
+
if (e.visualDuration) {
|
|
518
|
+
let t = Dt(e.bounce || 0), n = 2 * Math.PI / (e.visualDuration * 1.2) * Ot(t, 2 * Math.PI / 1.2);
|
|
519
|
+
i.stiffness = n * n, i.damping = 2 * t * Math.sqrt(i.stiffness);
|
|
520
|
+
} else Object.assign(i, Nt(i)), i.isResolvedFromDuration = !0;
|
|
521
|
+
(!Pt(i.stiffness) || !Pt(i.damping, !0)) && (i.stiffness = V.stiffness, i.damping = V.damping);
|
|
522
|
+
}
|
|
523
|
+
return i;
|
|
524
|
+
}
|
|
525
|
+
function Lt(e = V.visualDuration, t = V.bounce) {
|
|
526
|
+
let n = typeof e == "object" ? e : {
|
|
527
|
+
visualDuration: e,
|
|
528
|
+
keyframes: [0, 1],
|
|
529
|
+
bounce: t
|
|
530
|
+
}, r = n.keyframes[0], i = n.keyframes[n.keyframes.length - 1], a = {
|
|
531
|
+
done: !1,
|
|
532
|
+
value: r
|
|
533
|
+
}, { stiffness: o, damping: s, mass: c, duration: l, isResolvedFromDuration: u, isTimeDefined: d } = It({ ...n }), f = (e) => d ? 0 : -/* @__PURE__ */ _(e), p = s / (2 * Math.sqrt(o * c)), m = /* @__PURE__ */ _(Math.sqrt(o / c)), h = p * m, v = {
|
|
534
|
+
target: i,
|
|
535
|
+
delta: i - r,
|
|
536
|
+
velocity: f(n.velocity || 0) || 0,
|
|
537
|
+
restSpeed: 0,
|
|
538
|
+
restDelta: 0
|
|
539
|
+
}, y = () => {
|
|
540
|
+
let e = Math.abs(v.delta) < 5;
|
|
541
|
+
v.restSpeed = n.restSpeed || (e ? V.restSpeed.granular : V.restSpeed.default), v.restDelta = n.restDelta || (e ? V.restDelta.granular : V.restDelta.default);
|
|
542
|
+
};
|
|
543
|
+
y();
|
|
544
|
+
let b, x, S;
|
|
545
|
+
if (p < 1) {
|
|
546
|
+
let e = kt(m, p), t = {
|
|
547
|
+
A: 0,
|
|
548
|
+
sinC: 0,
|
|
549
|
+
cosC: 0,
|
|
550
|
+
t: -1,
|
|
551
|
+
env: 0,
|
|
552
|
+
sin: 0,
|
|
553
|
+
cos: 0
|
|
554
|
+
};
|
|
555
|
+
S = () => {
|
|
556
|
+
t.A = (v.velocity + h * v.delta) / e, t.sinC = h * t.A + v.delta * e, t.cosC = h * v.delta - t.A * e;
|
|
557
|
+
};
|
|
558
|
+
let n = (n) => {
|
|
559
|
+
n !== t.t && (t.t = n, t.env = Math.exp(-h * n), t.sin = Math.sin(e * n), t.cos = Math.cos(e * n));
|
|
560
|
+
};
|
|
561
|
+
b = (e) => (n(e), v.target - t.env * (t.A * t.sin + v.delta * t.cos)), x = (e) => (n(e), t.env * (t.sinC * t.sin + t.cosC * t.cos));
|
|
562
|
+
} else if (p === 1) {
|
|
563
|
+
b = (e) => v.target - Math.exp(-m * e) * (v.delta + (v.velocity + m * v.delta) * e);
|
|
564
|
+
let e = { C: 0 };
|
|
565
|
+
S = () => {
|
|
566
|
+
e.C = v.velocity + m * v.delta;
|
|
567
|
+
}, x = (t) => Math.exp(-m * t) * (m * e.C * t - v.velocity);
|
|
568
|
+
} else {
|
|
569
|
+
let e = m * Math.sqrt(p * p - 1), t = h - e, n = h + e, r = d ? Infinity : 300 / e, i = (e, t) => Math.exp(t > r ? -e * r - h * (t - r) : -e * t), a = {
|
|
570
|
+
S: 0,
|
|
571
|
+
F: 0
|
|
572
|
+
};
|
|
573
|
+
S = () => {
|
|
574
|
+
let t = (v.velocity + h * v.delta) / e;
|
|
575
|
+
a.S = (v.delta + t) / 2, a.F = (v.delta - t) / 2;
|
|
576
|
+
}, b = (e) => v.target - a.S * i(t, e) - a.F * i(n, e), x = (e) => t * a.S * i(t, e) + n * a.F * i(n, e);
|
|
577
|
+
}
|
|
578
|
+
S();
|
|
579
|
+
let C = u && l || null, w = {
|
|
580
|
+
calculatedDuration: C,
|
|
581
|
+
retarget: (e, t) => {
|
|
582
|
+
v.target = e[e.length - 1], v.delta = v.target - e[0], v.velocity = f(t), n.restSpeed && n.restDelta || y(), w.calculatedDuration = C, a.done = !1, S();
|
|
583
|
+
},
|
|
584
|
+
velocity: (e) => /* @__PURE__ */ g(x(e)),
|
|
585
|
+
next: (e) => {
|
|
586
|
+
let t = b(e);
|
|
587
|
+
if (u) a.done = e >= l;
|
|
588
|
+
else {
|
|
589
|
+
let n = /* @__PURE__ */ g(x(e));
|
|
590
|
+
a.done = Math.abs(n) <= v.restSpeed && Math.abs(v.target - t) <= v.restDelta;
|
|
591
|
+
}
|
|
592
|
+
return a.value = a.done ? v.target : t, a;
|
|
593
|
+
},
|
|
594
|
+
toString: () => {
|
|
595
|
+
let e = Math.min(Tt(w), wt), t = Ct((t) => w.next(e * t).value, e, 30);
|
|
596
|
+
return e + "ms " + t;
|
|
597
|
+
},
|
|
598
|
+
toTransition: () => {}
|
|
599
|
+
};
|
|
600
|
+
return w;
|
|
601
|
+
}
|
|
602
|
+
var Rt = /* @__PURE__ */ Object.assign(Lt, { applyToOptions: (e) => {
|
|
603
|
+
let t = Et(e, 100, Lt);
|
|
604
|
+
return e.ease = t.ease, e.duration = /* @__PURE__ */ g(t.duration), e.type = "keyframes", e;
|
|
605
|
+
} });
|
|
606
|
+
//#endregion
|
|
607
|
+
//#region node_modules/.pnpm/motion-dom@14.6.0/node_modules/motion-dom/dist/es/animation/generators/inertia.mjs
|
|
608
|
+
function zt({ keyframes: e, velocity: t = 0, power: n = .8, timeConstant: r = 325, bounceDamping: i = 10, bounceStiffness: a = 500, modifyTarget: o, min: s, max: c, restDelta: l = .5, restSpeed: u }) {
|
|
609
|
+
let d = e[0], f = {
|
|
610
|
+
done: !1,
|
|
611
|
+
value: d
|
|
612
|
+
}, p = (e) => e < s || e > c, m = (e) => s === void 0 ? c : c === void 0 || Math.abs(s - e) < Math.abs(c - e) ? s : c, h = n * t, g = d + h, _ = o === void 0 ? g : o(g);
|
|
613
|
+
_ !== g && (h = _ - d);
|
|
614
|
+
let v = (e) => -h * Math.exp(-e / r), y = (e) => {
|
|
615
|
+
let t = v(e);
|
|
616
|
+
f.done = Math.abs(t) <= l, f.value = f.done ? _ : _ + t;
|
|
617
|
+
}, b, x, S = (e) => {
|
|
618
|
+
p(f.value) && (b = e, x = Rt({
|
|
619
|
+
keyframes: [f.value, m(f.value)],
|
|
620
|
+
velocity: -v(e) / r * 1e3,
|
|
621
|
+
damping: i,
|
|
622
|
+
stiffness: a,
|
|
623
|
+
restDelta: l,
|
|
624
|
+
restSpeed: u
|
|
625
|
+
}));
|
|
626
|
+
};
|
|
627
|
+
return S(0), {
|
|
628
|
+
calculatedDuration: null,
|
|
629
|
+
next: (e) => {
|
|
630
|
+
let t = !1;
|
|
631
|
+
return !x && b === void 0 && (t = !0, y(e), S(e)), b !== void 0 && e >= b ? x.next(e - b) : (!t && y(e), f);
|
|
632
|
+
}
|
|
633
|
+
};
|
|
634
|
+
}
|
|
635
|
+
//#endregion
|
|
636
|
+
//#region node_modules/.pnpm/motion-dom@14.6.0/node_modules/motion-dom/dist/es/utils/interpolate.mjs
|
|
637
|
+
function Bt(e, t, n) {
|
|
638
|
+
let r = [], i = n || s.mix || ht, a = e.length - 1;
|
|
639
|
+
for (let n = 0; n < a; n++) {
|
|
640
|
+
let a = i(e[n], e[n + 1]);
|
|
641
|
+
t && (a = p(Array.isArray(t) ? t[n] || f : t, a)), r.push(a);
|
|
642
|
+
}
|
|
643
|
+
return r;
|
|
644
|
+
}
|
|
645
|
+
function Vt(e, t, { clamp: n = !0, ease: r, mixer: i } = {}) {
|
|
646
|
+
let a = e.length;
|
|
647
|
+
if (t.length, a === 1) return () => t[0];
|
|
648
|
+
if (a === 2 && t[0] === t[1]) return () => t[1];
|
|
649
|
+
let s = e[0] === e[1];
|
|
650
|
+
e[0] > e[a - 1] && (e = [...e].reverse(), t = [...t].reverse());
|
|
651
|
+
let c = Bt(t, r, i), l = c.length, u = (n) => {
|
|
652
|
+
if (s && n < e[0]) return t[0];
|
|
653
|
+
let r = 0;
|
|
654
|
+
if (l > 1) for (; r < e.length - 2 && !(n < e[r + 1]); r++);
|
|
655
|
+
let i = /* @__PURE__ */ m(e[r], e[r + 1], n);
|
|
656
|
+
return c[r](i);
|
|
657
|
+
};
|
|
658
|
+
return n ? (t) => u(o(e[0], e[a - 1], t)) : u;
|
|
659
|
+
}
|
|
660
|
+
//#endregion
|
|
661
|
+
//#region node_modules/.pnpm/motion-dom@14.6.0/node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill.mjs
|
|
662
|
+
function Ht(e, t) {
|
|
663
|
+
let n = e[e.length - 1];
|
|
664
|
+
for (let r = 1; r <= t; r++) {
|
|
665
|
+
let i = /* @__PURE__ */ m(0, t, r);
|
|
666
|
+
e.push(z(n, 1, i));
|
|
667
|
+
}
|
|
668
|
+
}
|
|
669
|
+
//#endregion
|
|
670
|
+
//#region node_modules/.pnpm/motion-dom@14.6.0/node_modules/motion-dom/dist/es/animation/keyframes/offsets/default.mjs
|
|
671
|
+
function Ut(e) {
|
|
672
|
+
let t = [0];
|
|
673
|
+
return Ht(t, e.length - 1), t;
|
|
674
|
+
}
|
|
675
|
+
//#endregion
|
|
676
|
+
//#region node_modules/.pnpm/motion-dom@14.6.0/node_modules/motion-dom/dist/es/animation/keyframes/offsets/time.mjs
|
|
677
|
+
function Wt(e, t) {
|
|
678
|
+
return e.map((e) => e * t);
|
|
679
|
+
}
|
|
680
|
+
//#endregion
|
|
681
|
+
//#region node_modules/.pnpm/motion-dom@14.6.0/node_modules/motion-dom/dist/es/animation/generators/keyframes.mjs
|
|
682
|
+
function Gt(e, t) {
|
|
683
|
+
return e.map(() => t || ie).splice(0, e.length - 1);
|
|
684
|
+
}
|
|
685
|
+
function H({ duration: e = 300, keyframes: t, times: n, ease: r = "easeInOut" }) {
|
|
686
|
+
let i = /* @__PURE__ */ ae(r) ? r.map(ue) : ue(r) || ie, a = {
|
|
687
|
+
done: !1,
|
|
688
|
+
value: t[0]
|
|
689
|
+
};
|
|
690
|
+
if (t.length === 2 && !Array.isArray(i) && (!n || n.length !== 2 || n[0] === 0 && n[1] === 1)) {
|
|
691
|
+
let [n, r] = t, c = n === r ? void 0 : (s.mix || ht)(n, r);
|
|
692
|
+
return {
|
|
693
|
+
calculatedDuration: e,
|
|
694
|
+
next: (t) => (a.value = c ? c(i(e > 0 ? o(0, 1, t / e) : 1)) : r, a.done = t >= e, a)
|
|
695
|
+
};
|
|
696
|
+
}
|
|
697
|
+
let c = Vt(Wt(n && n.length === t.length ? n : Ut(t), e), t, { ease: Array.isArray(i) ? i : Gt(t, i) });
|
|
698
|
+
return {
|
|
699
|
+
calculatedDuration: e,
|
|
700
|
+
next: (t) => (a.value = c(t), a.done = t >= e, a)
|
|
701
|
+
};
|
|
702
|
+
}
|
|
703
|
+
//#endregion
|
|
704
|
+
//#region node_modules/.pnpm/motion-dom@14.6.0/node_modules/motion-dom/dist/es/animation/generators/utils/velocity.mjs
|
|
705
|
+
var Kt = 5;
|
|
706
|
+
function qt(e, t, n) {
|
|
707
|
+
let r = Math.max(t - Kt, 0);
|
|
708
|
+
return /* @__PURE__ */ v(n - e(r), t - r);
|
|
709
|
+
}
|
|
710
|
+
function Jt(e, t, n = 0) {
|
|
711
|
+
return t <= 0 ? n : e.velocity ? e.velocity(t) : qt((t) => e.next(t).value, t, e.next(t).value);
|
|
712
|
+
}
|
|
713
|
+
//#endregion
|
|
714
|
+
//#region node_modules/.pnpm/motion-dom@14.6.0/node_modules/motion-dom/dist/es/animation/keyframes/get-final.mjs
|
|
715
|
+
var Yt = (e) => e !== null;
|
|
716
|
+
function Xt(e, { repeat: t, repeatType: n = "loop" }, r, i = 1) {
|
|
717
|
+
let a = e.filter(Yt), o = i < 0 || t && n !== "loop" && t % 2 == 1 ? 0 : a.length - 1;
|
|
718
|
+
return !o || r === void 0 ? a[o] : r;
|
|
719
|
+
}
|
|
720
|
+
//#endregion
|
|
721
|
+
//#region node_modules/.pnpm/motion-dom@14.6.0/node_modules/motion-dom/dist/es/animation/utils/replace-transition-type.mjs
|
|
722
|
+
var Zt = {
|
|
723
|
+
decay: zt,
|
|
724
|
+
inertia: zt,
|
|
725
|
+
tween: H,
|
|
726
|
+
keyframes: H,
|
|
727
|
+
spring: Rt
|
|
728
|
+
};
|
|
729
|
+
function Qt(e) {
|
|
730
|
+
typeof e.type == "string" && (e.type = Zt[e.type]);
|
|
731
|
+
}
|
|
732
|
+
//#endregion
|
|
733
|
+
//#region node_modules/.pnpm/motion-dom@14.6.0/node_modules/motion-dom/dist/es/animation/utils/resolve-start-time.mjs
|
|
734
|
+
var $t = 40, en = (e, t) => t - e > $t && !s.useManualTiming ? t : e;
|
|
735
|
+
//#endregion
|
|
736
|
+
//#region node_modules/.pnpm/motion-dom@14.6.0/node_modules/motion-dom/dist/es/animation/utils/notify-inspector.mjs
|
|
737
|
+
function tn(e, t) {
|
|
738
|
+
return {
|
|
739
|
+
kind: e,
|
|
740
|
+
animation: t,
|
|
741
|
+
timestamp: A.now(),
|
|
742
|
+
frameTimestamp: k.timestamp,
|
|
743
|
+
frameIsProcessing: k.isProcessing
|
|
744
|
+
};
|
|
745
|
+
}
|
|
746
|
+
function nn(e, t, n) {
|
|
747
|
+
let r = globalThis.__MOTION_INSPECT__;
|
|
748
|
+
if (r) try {
|
|
749
|
+
r({
|
|
750
|
+
...tn("animation-start", e),
|
|
751
|
+
options: n ? {
|
|
752
|
+
...t,
|
|
753
|
+
...n
|
|
754
|
+
} : t
|
|
755
|
+
});
|
|
756
|
+
} catch {}
|
|
757
|
+
}
|
|
758
|
+
//#endregion
|
|
759
|
+
//#region node_modules/.pnpm/motion-dom@14.6.0/node_modules/motion-dom/dist/es/animation/utils/WithPromise.mjs
|
|
760
|
+
var rn = class {
|
|
761
|
+
constructor() {
|
|
762
|
+
this.isResolved = !1;
|
|
763
|
+
}
|
|
764
|
+
get finished() {
|
|
765
|
+
return this._finished ||= this.isResolved ? Promise.resolve() : new Promise((e) => {
|
|
766
|
+
this._resolve = e;
|
|
767
|
+
}), this._finished;
|
|
768
|
+
}
|
|
769
|
+
updateFinished() {
|
|
770
|
+
this._finished = this._resolve = void 0, this.isResolved = !1;
|
|
771
|
+
}
|
|
772
|
+
notifyFinished() {
|
|
773
|
+
this.isResolved = !0, this._resolve?.();
|
|
774
|
+
}
|
|
775
|
+
then(e, t) {
|
|
776
|
+
return this.finished.then(e, t);
|
|
777
|
+
}
|
|
778
|
+
}, an = (e) => e / 100, on = (e) => Math.round(e * 1e4) / 1e4, sn = class extends rn {
|
|
779
|
+
constructor(e) {
|
|
780
|
+
super(), this.state = "idle", this.startTime = null, this.isStopped = !1, this.currentTime = 0, this.holdTime = null, this.playbackSpeed = 1, this.delayState = {
|
|
781
|
+
done: !1,
|
|
782
|
+
value: void 0
|
|
783
|
+
}, this.stop = () => {
|
|
784
|
+
let { motionValue: e } = this.options;
|
|
785
|
+
e && e.updatedAt !== A.now() && this.tick(A.now()), this.isStopped = !0, this.state !== "idle" && (this.teardown(), this.options.onStop?.());
|
|
786
|
+
}, this.options = e, this.initAnimation(), this.play(), e.autoplay === !1 && this.pause(), nn(this, this.options);
|
|
787
|
+
}
|
|
788
|
+
initAnimation() {
|
|
789
|
+
let { options: e } = this;
|
|
790
|
+
Qt(e);
|
|
791
|
+
let { type: t = H, repeat: n = 0, repeatDelay: r = 0, repeatType: i, velocity: a = 0 } = e, { keyframes: o } = e, s = t || H;
|
|
792
|
+
s !== H && typeof o[0] != "number" && (this.mixKeyframes = p(an, ht(o[0], o[1])), o = [0, 100]);
|
|
793
|
+
let c = s(o === e.keyframes ? e : {
|
|
794
|
+
...e,
|
|
795
|
+
keyframes: o
|
|
796
|
+
});
|
|
797
|
+
i === "mirror" && (this.mirroredGenerator = s({
|
|
798
|
+
...e,
|
|
799
|
+
keyframes: [...o].reverse(),
|
|
800
|
+
velocity: -a
|
|
801
|
+
})), c.calculatedDuration === null && (c.calculatedDuration = Tt(c));
|
|
802
|
+
let { calculatedDuration: l } = c;
|
|
803
|
+
this.calculatedDuration = l, this.resolvedDuration = l + r, this.totalDuration = this.resolvedDuration * (n + 1) - r, this.generator = c;
|
|
804
|
+
}
|
|
805
|
+
updateTime(e) {
|
|
806
|
+
let t = Math.round(e - this.startTime) * this.playbackSpeed;
|
|
807
|
+
this.currentTime = this.holdTime === null ? t : this.holdTime;
|
|
808
|
+
}
|
|
809
|
+
tick(e, t = !1) {
|
|
810
|
+
let { generator: n, totalDuration: r, calculatedDuration: i } = this;
|
|
811
|
+
if (this.startTime === null) return n.next(0);
|
|
812
|
+
let { delay: a = 0, keyframes: o, type: s, onUpdate: c, finalKeyframe: l } = this.options;
|
|
813
|
+
this.startTime === this.pendingStartTime && (this.startTime = en(this.startTime, e)), this.pendingStartTime = void 0, this.speed > 0 ? this.startTime = Math.min(this.startTime, e) : this.speed < 0 && (this.startTime = Math.min(e - r / this.speed, this.startTime)), t ? this.currentTime = e : this.updateTime(e);
|
|
814
|
+
let u = this.currentTime - a * (this.playbackSpeed >= 0 ? 1 : -1), d = this.playbackSpeed >= 0 ? u < 0 : u > r;
|
|
815
|
+
this.currentTime = Math.max(u, 0), this.state === "finished" && this.holdTime === null && (this.currentTime = r);
|
|
816
|
+
let f = this.generate(this.currentTime, d), { done: p } = f;
|
|
817
|
+
!d && i !== null && (p = this.playbackSpeed >= 0 ? this.currentTime >= r : this.currentTime <= 0);
|
|
818
|
+
let m = this.holdTime === null && (this.state === "finished" || this.state === "running" && p);
|
|
819
|
+
return m && s !== zt && (f.value = Xt(o, this.options, l, this.speed)), c && c(f.value), m && this.finish(), f;
|
|
820
|
+
}
|
|
821
|
+
at(e) {
|
|
822
|
+
return this.holdTime ?? on((e - this.startTime) * this.playbackSpeed);
|
|
823
|
+
}
|
|
824
|
+
sampleAt(e, t) {
|
|
825
|
+
let { options: n, totalDuration: r } = this, i = this.at(e) - (n.delay || 0);
|
|
826
|
+
return i >= r && n.type !== zt ? Xt(n.keyframes, n, t ? void 0 : n.finalKeyframe) : this.generate(Math.max(i, 0), i < 0).value;
|
|
827
|
+
}
|
|
828
|
+
generate(e, t) {
|
|
829
|
+
let { generator: n, totalDuration: r, mixKeyframes: i, mirroredGenerator: a, resolvedDuration: s } = this, { keyframes: c, repeat: l, repeatType: u, repeatDelay: d } = this.options, f = e, p = n;
|
|
830
|
+
if (l) {
|
|
831
|
+
let t = Math.min(e, r) / s, n = Math.floor(t), i = t % 1;
|
|
832
|
+
!i && t >= 1 && (i = 1), i === 1 && n--, n = Math.min(n, l + 1), n % 2 && (u === "reverse" ? (i = 1 - i, d && (i -= d / s)) : u === "mirror" && (p = a)), f = o(0, 1, i) * s;
|
|
833
|
+
}
|
|
834
|
+
let m;
|
|
835
|
+
return t ? (this.delayState.value = c[0], m = this.delayState) : m = p.next(f), i && !t && (m.value = i(m.value)), m;
|
|
836
|
+
}
|
|
837
|
+
then(e, t) {
|
|
838
|
+
return this.finished.then(e, t);
|
|
839
|
+
}
|
|
840
|
+
get duration() {
|
|
841
|
+
return /* @__PURE__ */ _(this.calculatedDuration);
|
|
842
|
+
}
|
|
843
|
+
get iterationDuration() {
|
|
844
|
+
let { delay: e = 0 } = this.options || {};
|
|
845
|
+
return this.duration + /* @__PURE__ */ _(e);
|
|
846
|
+
}
|
|
847
|
+
get time() {
|
|
848
|
+
return /* @__PURE__ */ _(this.currentTime);
|
|
849
|
+
}
|
|
850
|
+
set time(e) {
|
|
851
|
+
e = /* @__PURE__ */ g(e), this.currentTime = e, this.startTime === null || this.holdTime !== null || this.playbackSpeed === 0 ? this.holdTime = e : this.driver && (this.startTime = this.driver.now() - e / this.playbackSpeed), this.driver ? this.driver.start(!1) : (this.startTime = 0, this.state = "paused", this.holdTime = e, this.tick(e));
|
|
852
|
+
}
|
|
853
|
+
getGeneratorVelocity() {
|
|
854
|
+
return Jt(this.generator, this.currentTime, this.options.velocity);
|
|
855
|
+
}
|
|
856
|
+
get speed() {
|
|
857
|
+
return this.playbackSpeed;
|
|
858
|
+
}
|
|
859
|
+
set speed(e) {
|
|
860
|
+
let t = this.playbackSpeed !== e;
|
|
861
|
+
t && this.driver && this.updateTime(A.now()), this.playbackSpeed = e, t && this.driver && (this.time = /* @__PURE__ */ _(this.currentTime));
|
|
862
|
+
}
|
|
863
|
+
play() {
|
|
864
|
+
if (this.isStopped) return;
|
|
865
|
+
let { driver: e = St, startTime: t } = this.options;
|
|
866
|
+
this.driver ||= e((e) => this.tick(e)), this.options.onPlay?.();
|
|
867
|
+
let n = this.driver.now();
|
|
868
|
+
this.state === "finished" ? (this.updateFinished(), this.startTime = n) : this.holdTime === null ? this.startTime ||= t ?? (this.pendingStartTime = n) : this.startTime = n - this.holdTime / (this.playbackSpeed || 1), this.state === "finished" && this.speed < 0 && (this.startTime += this.calculatedDuration), this.holdTime = null, this.state = "running", this.driver.start();
|
|
869
|
+
}
|
|
870
|
+
pause() {
|
|
871
|
+
this.state = "paused", this.updateTime(A.now()), this.holdTime = this.currentTime;
|
|
872
|
+
}
|
|
873
|
+
complete() {
|
|
874
|
+
this.state !== "running" && this.play(), this.state = "finished", this.holdTime = null;
|
|
875
|
+
}
|
|
876
|
+
finish() {
|
|
877
|
+
this.notifyFinished(), this.teardown(), this.state = "finished", this.options.onComplete?.();
|
|
878
|
+
}
|
|
879
|
+
cancel() {
|
|
880
|
+
this.holdTime = null, this.startTime = 0, this.tick(0), this.teardown(), this.options.onCancel?.();
|
|
881
|
+
}
|
|
882
|
+
teardown() {
|
|
883
|
+
this.state = "idle", this.stopDriver(), this.startTime = this.holdTime = null;
|
|
884
|
+
}
|
|
885
|
+
stopDriver() {
|
|
886
|
+
this.driver &&= (this.driver.stop(), void 0);
|
|
887
|
+
}
|
|
888
|
+
sample(e) {
|
|
889
|
+
return this.startTime = 0, this.tick(e, !0);
|
|
890
|
+
}
|
|
891
|
+
attachTimeline(e) {
|
|
892
|
+
return this.options.allowFlatten && (this.options.type = "keyframes", this.options.ease = "linear", this.initAnimation()), this.driver?.stop(), e.observe(this);
|
|
893
|
+
}
|
|
894
|
+
}, cn = /* @__PURE__ */ new Set([
|
|
895
|
+
"brightness",
|
|
896
|
+
"contrast",
|
|
897
|
+
"saturate",
|
|
898
|
+
"opacity"
|
|
899
|
+
]);
|
|
900
|
+
function ln(e) {
|
|
901
|
+
let [t, n] = e.slice(0, -1).split("(");
|
|
902
|
+
if (t === "drop-shadow") return e;
|
|
903
|
+
let [r] = n.match(be) || [];
|
|
904
|
+
if (!r) return e;
|
|
905
|
+
let i = n.replace(r, ""), a = +!!cn.has(t);
|
|
906
|
+
return r !== n && (a *= 100), t + "(" + a + i + ")";
|
|
907
|
+
}
|
|
908
|
+
var un = /\b([a-z-]*)\(.*?\)/gu, dn = {
|
|
909
|
+
...R,
|
|
910
|
+
getAnimatableNone: (e) => {
|
|
911
|
+
let t = e.match(un);
|
|
912
|
+
return t ? t.map(ln).join(" ") : e;
|
|
913
|
+
}
|
|
914
|
+
}, fn = {
|
|
915
|
+
...R,
|
|
916
|
+
getAnimatableNone: (e) => {
|
|
917
|
+
let t = R.parse(e);
|
|
918
|
+
return R.createTransformer(e)(t.map((e) => typeof e == "number" ? 0 : typeof e == "object" ? {
|
|
919
|
+
...e,
|
|
920
|
+
alpha: 1
|
|
921
|
+
} : e));
|
|
922
|
+
}
|
|
923
|
+
}, pn = {
|
|
924
|
+
...j,
|
|
925
|
+
transform: Math.round
|
|
926
|
+
}, mn = {
|
|
927
|
+
rotate: N,
|
|
928
|
+
pathRotation: N,
|
|
929
|
+
rotateX: N,
|
|
930
|
+
rotateY: N,
|
|
931
|
+
rotateZ: N,
|
|
932
|
+
scale: ye,
|
|
933
|
+
scaleX: ye,
|
|
934
|
+
scaleY: ye,
|
|
935
|
+
scaleZ: ye,
|
|
936
|
+
skew: N,
|
|
937
|
+
skewX: N,
|
|
938
|
+
skewY: N,
|
|
939
|
+
distance: F,
|
|
940
|
+
translateX: F,
|
|
941
|
+
translateY: F,
|
|
942
|
+
translateZ: F,
|
|
943
|
+
x: F,
|
|
944
|
+
y: F,
|
|
945
|
+
z: F,
|
|
946
|
+
perspective: F,
|
|
947
|
+
transformPerspective: F,
|
|
948
|
+
opacity: ve,
|
|
949
|
+
originX: Me,
|
|
950
|
+
originY: Me,
|
|
951
|
+
originZ: F
|
|
952
|
+
}, U = {
|
|
953
|
+
borderWidth: F,
|
|
954
|
+
borderTopWidth: F,
|
|
955
|
+
borderRightWidth: F,
|
|
956
|
+
borderBottomWidth: F,
|
|
957
|
+
borderLeftWidth: F,
|
|
958
|
+
borderRadius: F,
|
|
959
|
+
borderTopLeftRadius: F,
|
|
960
|
+
borderTopRightRadius: F,
|
|
961
|
+
borderBottomRightRadius: F,
|
|
962
|
+
borderBottomLeftRadius: F,
|
|
963
|
+
width: F,
|
|
964
|
+
maxWidth: F,
|
|
965
|
+
height: F,
|
|
966
|
+
maxHeight: F,
|
|
967
|
+
top: F,
|
|
968
|
+
right: F,
|
|
969
|
+
bottom: F,
|
|
970
|
+
left: F,
|
|
971
|
+
inset: F,
|
|
972
|
+
insetBlock: F,
|
|
973
|
+
insetBlockStart: F,
|
|
974
|
+
insetBlockEnd: F,
|
|
975
|
+
insetInline: F,
|
|
976
|
+
insetInlineStart: F,
|
|
977
|
+
insetInlineEnd: F,
|
|
978
|
+
padding: F,
|
|
979
|
+
paddingTop: F,
|
|
980
|
+
paddingRight: F,
|
|
981
|
+
paddingBottom: F,
|
|
982
|
+
paddingLeft: F,
|
|
983
|
+
paddingBlock: F,
|
|
984
|
+
paddingBlockStart: F,
|
|
985
|
+
paddingBlockEnd: F,
|
|
986
|
+
paddingInline: F,
|
|
987
|
+
paddingInlineStart: F,
|
|
988
|
+
paddingInlineEnd: F,
|
|
989
|
+
margin: F,
|
|
990
|
+
marginTop: F,
|
|
991
|
+
marginRight: F,
|
|
992
|
+
marginBottom: F,
|
|
993
|
+
marginLeft: F,
|
|
994
|
+
marginBlock: F,
|
|
995
|
+
marginBlockStart: F,
|
|
996
|
+
marginBlockEnd: F,
|
|
997
|
+
marginInline: F,
|
|
998
|
+
marginInlineStart: F,
|
|
999
|
+
marginInlineEnd: F,
|
|
1000
|
+
fontSize: F,
|
|
1001
|
+
backgroundPositionX: F,
|
|
1002
|
+
backgroundPositionY: F,
|
|
1003
|
+
...mn,
|
|
1004
|
+
zIndex: pn,
|
|
1005
|
+
fillOpacity: ve,
|
|
1006
|
+
strokeOpacity: ve,
|
|
1007
|
+
numOctaves: pn
|
|
1008
|
+
}, hn = {
|
|
1009
|
+
...U,
|
|
1010
|
+
color: L,
|
|
1011
|
+
backgroundColor: L,
|
|
1012
|
+
outlineColor: L,
|
|
1013
|
+
fill: L,
|
|
1014
|
+
stroke: L,
|
|
1015
|
+
borderColor: L,
|
|
1016
|
+
borderTopColor: L,
|
|
1017
|
+
borderRightColor: L,
|
|
1018
|
+
borderBottomColor: L,
|
|
1019
|
+
borderLeftColor: L,
|
|
1020
|
+
filter: dn,
|
|
1021
|
+
WebkitFilter: dn,
|
|
1022
|
+
mask: fn,
|
|
1023
|
+
WebkitMask: fn
|
|
1024
|
+
}, gn = (e) => hn[e], _n = /*@__PURE__*/ new Set([dn, fn]);
|
|
1025
|
+
function vn(e, t) {
|
|
1026
|
+
let n = gn(e);
|
|
1027
|
+
return _n.has(n) || (n = R), n.getAnimatableNone ? n.getAnimatableNone(t) : void 0;
|
|
1028
|
+
}
|
|
1029
|
+
//#endregion
|
|
1030
|
+
//#region node_modules/.pnpm/motion-dom@14.6.0/node_modules/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.mjs
|
|
1031
|
+
function yn(e) {
|
|
1032
|
+
for (let t = 1; t < e.length; t++) e[t] ?? (e[t] = e[t - 1]);
|
|
1033
|
+
}
|
|
1034
|
+
//#endregion
|
|
1035
|
+
//#region node_modules/.pnpm/motion-dom@14.6.0/node_modules/motion-dom/dist/es/render/dom/parse-transform.mjs
|
|
1036
|
+
var W = (e) => e * 180 / Math.PI, bn = (e) => Sn(W(Math.atan2(e[1], e[0]))), xn = {
|
|
1037
|
+
x: 4,
|
|
1038
|
+
y: 5,
|
|
1039
|
+
translateX: 4,
|
|
1040
|
+
translateY: 5,
|
|
1041
|
+
scaleX: 0,
|
|
1042
|
+
scaleY: 3,
|
|
1043
|
+
scaleZ: () => 1,
|
|
1044
|
+
scale: (e) => (Math.abs(e[0]) + Math.abs(e[3])) / 2,
|
|
1045
|
+
rotate: bn,
|
|
1046
|
+
rotateZ: bn,
|
|
1047
|
+
skewX: (e) => W(Math.atan(e[1])),
|
|
1048
|
+
skewY: (e) => W(Math.atan(e[2])),
|
|
1049
|
+
skew: (e) => (Math.abs(e[1]) + Math.abs(e[2])) / 2
|
|
1050
|
+
}, Sn = (e) => (e %= 360, e < 0 && (e += 360), e), Cn = bn, wn = (e) => Math.hypot(e[0], e[1]), Tn = (e) => Math.hypot(e[4], e[5]), En = {
|
|
1051
|
+
x: 12,
|
|
1052
|
+
y: 13,
|
|
1053
|
+
z: 14,
|
|
1054
|
+
translateX: 12,
|
|
1055
|
+
translateY: 13,
|
|
1056
|
+
translateZ: 14,
|
|
1057
|
+
scaleX: wn,
|
|
1058
|
+
scaleY: Tn,
|
|
1059
|
+
scaleZ: (e) => Math.hypot(e[8], e[9], e[10]),
|
|
1060
|
+
scale: (e) => (wn(e) + Tn(e)) / 2,
|
|
1061
|
+
rotateX: (e) => Sn(W(Math.atan2(e[6], e[5]))),
|
|
1062
|
+
rotateY: (e) => Sn(W(Math.atan2(-e[2], e[0]))),
|
|
1063
|
+
rotateZ: Cn,
|
|
1064
|
+
rotate: Cn,
|
|
1065
|
+
skewX: (e) => W(Math.atan(e[4])),
|
|
1066
|
+
skewY: (e) => W(Math.atan(e[1])),
|
|
1067
|
+
skew: (e) => (Math.abs(e[1]) + Math.abs(e[4])) / 2
|
|
1068
|
+
};
|
|
1069
|
+
function Dn(e) {
|
|
1070
|
+
return +!!e.includes("scale");
|
|
1071
|
+
}
|
|
1072
|
+
function On(e, t) {
|
|
1073
|
+
if (!e || e === "none") return Dn(t);
|
|
1074
|
+
let n = e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u), r, i;
|
|
1075
|
+
if (n) r = En, i = n;
|
|
1076
|
+
else {
|
|
1077
|
+
let t = e.match(/^matrix\(([-\d.e\s,]+)\)$/u);
|
|
1078
|
+
r = xn, i = t;
|
|
1079
|
+
}
|
|
1080
|
+
if (!i) return Dn(t);
|
|
1081
|
+
let a = r[t], o = i[1].split(",").map(An);
|
|
1082
|
+
return typeof a == "function" ? a(o) : o[a];
|
|
1083
|
+
}
|
|
1084
|
+
var kn = (e, t) => {
|
|
1085
|
+
let { transform: n = "none" } = getComputedStyle(e);
|
|
1086
|
+
return On(n, t);
|
|
1087
|
+
};
|
|
1088
|
+
function An(e) {
|
|
1089
|
+
return parseFloat(e.trim());
|
|
1090
|
+
}
|
|
1091
|
+
//#endregion
|
|
1092
|
+
//#region node_modules/.pnpm/motion-dom@14.6.0/node_modules/motion-dom/dist/es/render/utils/keys-transform.mjs
|
|
1093
|
+
var G = [
|
|
1094
|
+
"transformPerspective",
|
|
1095
|
+
"x",
|
|
1096
|
+
"y",
|
|
1097
|
+
"z",
|
|
1098
|
+
"translateX",
|
|
1099
|
+
"translateY",
|
|
1100
|
+
"translateZ",
|
|
1101
|
+
"scale",
|
|
1102
|
+
"scaleX",
|
|
1103
|
+
"scaleY",
|
|
1104
|
+
"scaleZ",
|
|
1105
|
+
"rotate",
|
|
1106
|
+
"rotateX",
|
|
1107
|
+
"rotateY",
|
|
1108
|
+
"rotateZ",
|
|
1109
|
+
"skew",
|
|
1110
|
+
"skewX",
|
|
1111
|
+
"skewY"
|
|
1112
|
+
], K = /* @__PURE__ */ new Set([...G, "pathRotation"]), jn = (e) => e === j || e === F, Mn = /* @__PURE__ */ new Set([
|
|
1113
|
+
"x",
|
|
1114
|
+
"y",
|
|
1115
|
+
"z"
|
|
1116
|
+
]), Nn = /* @__PURE__ */ G.filter((e) => !Mn.has(e));
|
|
1117
|
+
function Pn(e) {
|
|
1118
|
+
let t = [];
|
|
1119
|
+
return Nn.forEach((n) => {
|
|
1120
|
+
let r = e.getValue(n);
|
|
1121
|
+
if (r !== void 0) {
|
|
1122
|
+
let e = r.get(), i = +!!n.startsWith("scale");
|
|
1123
|
+
if (e === i) return;
|
|
1124
|
+
t.push([n, e]), r.set(i);
|
|
1125
|
+
}
|
|
1126
|
+
}), t;
|
|
1127
|
+
}
|
|
1128
|
+
var Fn = /* @__PURE__ */ new Set(["bottom", "right"]);
|
|
1129
|
+
function In(e, t, n, r, i, a) {
|
|
1130
|
+
let o = parseFloat(e);
|
|
1131
|
+
if (!isNaN(o)) return o;
|
|
1132
|
+
let { min: s, max: c } = t()[n], l = c - s;
|
|
1133
|
+
return a === "border-box" ? l : l - parseFloat(r) - parseFloat(i);
|
|
1134
|
+
}
|
|
1135
|
+
var Ln = ({ transform: e }) => On(e, "x"), Rn = ({ transform: e }) => On(e, "y"), zn = {
|
|
1136
|
+
width: ({ width: e, paddingLeft: t = "0", paddingRight: n = "0", boxSizing: r }, i) => In(e, i, "x", t, n, r),
|
|
1137
|
+
height: ({ height: e, paddingTop: t = "0", paddingBottom: n = "0", boxSizing: r }, i) => In(e, i, "y", t, n, r),
|
|
1138
|
+
top: ({ top: e }) => parseFloat(e),
|
|
1139
|
+
left: ({ left: e }) => parseFloat(e),
|
|
1140
|
+
bottom: ({ top: e }, t) => {
|
|
1141
|
+
let { y: n } = t();
|
|
1142
|
+
return parseFloat(e) + (n.max - n.min);
|
|
1143
|
+
},
|
|
1144
|
+
right: ({ left: e }, t) => {
|
|
1145
|
+
let { x: n } = t();
|
|
1146
|
+
return parseFloat(e) + (n.max - n.min);
|
|
1147
|
+
},
|
|
1148
|
+
x: Ln,
|
|
1149
|
+
y: Rn,
|
|
1150
|
+
translateX: Ln,
|
|
1151
|
+
translateY: Rn
|
|
1152
|
+
}, q = /* @__PURE__ */ new Set(), Bn = !1, Vn = !1, Hn = !1;
|
|
1153
|
+
function Un() {
|
|
1154
|
+
if (Vn) {
|
|
1155
|
+
let e = [], t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set();
|
|
1156
|
+
q.forEach((r) => {
|
|
1157
|
+
r.needsMeasurement && (e.push(r), t.add(r.element), Fn.has(r.name) && n.add(r.element));
|
|
1158
|
+
});
|
|
1159
|
+
let r = /* @__PURE__ */ new Map();
|
|
1160
|
+
n.forEach((e) => {
|
|
1161
|
+
let t = Pn(e);
|
|
1162
|
+
t.length && (r.set(e, t), e.render());
|
|
1163
|
+
}), e.forEach((e) => e.measureInitialState()), t.forEach((e) => {
|
|
1164
|
+
e.render();
|
|
1165
|
+
let t = r.get(e);
|
|
1166
|
+
t && t.forEach(([t, n]) => {
|
|
1167
|
+
e.getValue(t)?.set(n);
|
|
1168
|
+
});
|
|
1169
|
+
}), e.forEach((e) => e.measureEndState()), e.forEach((e) => {
|
|
1170
|
+
e.suspendedScrollY !== void 0 && window.scrollTo(0, e.suspendedScrollY);
|
|
1171
|
+
});
|
|
1172
|
+
}
|
|
1173
|
+
Vn = !1, Bn = !1, q.forEach((e) => e.complete(Hn)), q.clear();
|
|
1174
|
+
}
|
|
1175
|
+
function Wn() {
|
|
1176
|
+
q.forEach((e) => {
|
|
1177
|
+
e.readKeyframes(), e.needsMeasurement && (Vn = !0);
|
|
1178
|
+
});
|
|
1179
|
+
}
|
|
1180
|
+
function Gn() {
|
|
1181
|
+
Hn = !0, Wn(), Un(), Hn = !1;
|
|
1182
|
+
}
|
|
1183
|
+
function Kn(e, t, n) {
|
|
1184
|
+
if (typeof e == "string") {
|
|
1185
|
+
if (c(e) || u(e)) return parseFloat(e);
|
|
1186
|
+
if (!R.test(e) && R.test(n)) return vn(t, n);
|
|
1187
|
+
}
|
|
1188
|
+
return e ?? void 0;
|
|
1189
|
+
}
|
|
1190
|
+
var qn = class {
|
|
1191
|
+
constructor(e, t, n, r, i, a = !1) {
|
|
1192
|
+
this.state = "pending", this.isAsync = !1, this.needsMeasurement = !1, this.unresolvedKeyframes = [...e], this.onComplete = t, this.name = n, this.motionValue = r, this.element = i, this.isAsync = a;
|
|
1193
|
+
}
|
|
1194
|
+
scheduleResolve() {
|
|
1195
|
+
this.state = "scheduled", this.isAsync ? (q.add(this), Bn || (Bn = !0, B.read(Wn), B.resolveKeyframes(Un))) : (this.readKeyframes(), this.complete());
|
|
1196
|
+
}
|
|
1197
|
+
readKeyframes() {
|
|
1198
|
+
let { unresolvedKeyframes: e, name: t, element: n, motionValue: r } = this;
|
|
1199
|
+
if (e[0] === null) {
|
|
1200
|
+
let i = r?.get(), a = e[e.length - 1];
|
|
1201
|
+
if (i !== void 0) e[0] = i;
|
|
1202
|
+
else if (n && t) {
|
|
1203
|
+
let r = Kn(n.readValue(t, a), t, a);
|
|
1204
|
+
r !== void 0 && (e[0] = r);
|
|
1205
|
+
}
|
|
1206
|
+
e[0] === void 0 && (e[0] = a), r && i === void 0 && r.set(e[0]);
|
|
1207
|
+
}
|
|
1208
|
+
yn(e);
|
|
1209
|
+
}
|
|
1210
|
+
setFinalKeyframe() {}
|
|
1211
|
+
measureInitialState() {}
|
|
1212
|
+
renderEndStyles() {}
|
|
1213
|
+
measureEndState() {}
|
|
1214
|
+
complete(e = !1) {
|
|
1215
|
+
this.state = "complete", this.onComplete(this.unresolvedKeyframes, this.finalKeyframe, e), q.delete(this);
|
|
1216
|
+
}
|
|
1217
|
+
cancel() {
|
|
1218
|
+
this.state === "scheduled" && (q.delete(this), this.state = "pending");
|
|
1219
|
+
}
|
|
1220
|
+
resume() {
|
|
1221
|
+
this.state === "pending" && this.scheduleResolve();
|
|
1222
|
+
}
|
|
1223
|
+
}, Jn = (e) => e.startsWith("--");
|
|
1224
|
+
//#endregion
|
|
1225
|
+
//#region node_modules/.pnpm/motion-dom@14.6.0/node_modules/motion-dom/dist/es/render/dom/style-set.mjs
|
|
1226
|
+
function Yn(e, t, n) {
|
|
1227
|
+
Jn(t) ? e.style.setProperty(t, n) : e.style[t] = n;
|
|
1228
|
+
}
|
|
1229
|
+
//#endregion
|
|
1230
|
+
//#region node_modules/.pnpm/motion-dom@14.6.0/node_modules/motion-dom/dist/es/utils/supports/flags.mjs
|
|
1231
|
+
var Xn = {};
|
|
1232
|
+
//#endregion
|
|
1233
|
+
//#region node_modules/.pnpm/motion-dom@14.6.0/node_modules/motion-dom/dist/es/utils/supports/memo.mjs
|
|
1234
|
+
function Zn(e, t) {
|
|
1235
|
+
let n = /* @__PURE__ */ d(e);
|
|
1236
|
+
return () => Xn[t] ?? n();
|
|
1237
|
+
}
|
|
1238
|
+
//#endregion
|
|
1239
|
+
//#region node_modules/.pnpm/motion-dom@14.6.0/node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.mjs
|
|
1240
|
+
var Qn = /* @__PURE__ */ Zn(() => window.ScrollTimeline !== void 0, "scrollTimeline"), $n = /*@__PURE__*/ Zn(() => {
|
|
1241
|
+
try {
|
|
1242
|
+
document.createElement("div").animate({ opacity: 0 }, { easing: "linear(0, 1)" });
|
|
1243
|
+
} catch {
|
|
1244
|
+
return !1;
|
|
1245
|
+
}
|
|
1246
|
+
return !0;
|
|
1247
|
+
}, "linearEasing"), J = ([e, t, n, r]) => `cubic-bezier(${e}, ${t}, ${n}, ${r})`, er = {
|
|
1248
|
+
linear: "linear",
|
|
1249
|
+
ease: "ease",
|
|
1250
|
+
easeIn: "ease-in",
|
|
1251
|
+
easeOut: "ease-out",
|
|
1252
|
+
easeInOut: "ease-in-out",
|
|
1253
|
+
circIn: /*@__PURE__*/ J([
|
|
1254
|
+
0,
|
|
1255
|
+
.65,
|
|
1256
|
+
.55,
|
|
1257
|
+
1
|
|
1258
|
+
]),
|
|
1259
|
+
circOut: /*@__PURE__*/ J([
|
|
1260
|
+
.55,
|
|
1261
|
+
0,
|
|
1262
|
+
1,
|
|
1263
|
+
.45
|
|
1264
|
+
]),
|
|
1265
|
+
backIn: /*@__PURE__*/ J([
|
|
1266
|
+
.31,
|
|
1267
|
+
.01,
|
|
1268
|
+
.66,
|
|
1269
|
+
-.59
|
|
1270
|
+
]),
|
|
1271
|
+
backOut: /*@__PURE__*/ J([
|
|
1272
|
+
.33,
|
|
1273
|
+
1.53,
|
|
1274
|
+
.69,
|
|
1275
|
+
.99
|
|
1276
|
+
])
|
|
1277
|
+
};
|
|
1278
|
+
//#endregion
|
|
1279
|
+
//#region node_modules/.pnpm/motion-dom@14.6.0/node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing.mjs
|
|
1280
|
+
function tr(e, t) {
|
|
1281
|
+
if (e) return typeof e == "function" ? $n() ? Ct(e, t) : "ease-out" : /* @__PURE__ */ se(e) ? J(e) : Array.isArray(e) ? e.map((e) => tr(e, t) || er.easeOut) : er[e];
|
|
1282
|
+
}
|
|
1283
|
+
//#endregion
|
|
1284
|
+
//#region node_modules/.pnpm/motion-dom@14.6.0/node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.mjs
|
|
1285
|
+
function nr(e, t, n, { delay: r = 0, duration: i = 300, repeat: a = 0, repeatType: o = "loop", ease: s = "easeOut", times: c } = {}, l = void 0) {
|
|
1286
|
+
let u = { [t]: n };
|
|
1287
|
+
c && (u.offset = c);
|
|
1288
|
+
let d = tr(s, i);
|
|
1289
|
+
Array.isArray(d) && (u.easing = d);
|
|
1290
|
+
let f = {
|
|
1291
|
+
delay: r,
|
|
1292
|
+
duration: i,
|
|
1293
|
+
easing: Array.isArray(d) ? "linear" : d,
|
|
1294
|
+
fill: "both",
|
|
1295
|
+
iterations: a + 1,
|
|
1296
|
+
direction: o === "reverse" ? "alternate" : "normal"
|
|
1297
|
+
};
|
|
1298
|
+
return l && (f.pseudoElement = l), e.animate(u, f);
|
|
1299
|
+
}
|
|
1300
|
+
//#endregion
|
|
1301
|
+
//#region node_modules/.pnpm/motion-dom@14.6.0/node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.mjs
|
|
1302
|
+
function rr(e) {
|
|
1303
|
+
return typeof e == "function" && "applyToOptions" in e;
|
|
1304
|
+
}
|
|
1305
|
+
//#endregion
|
|
1306
|
+
//#region node_modules/.pnpm/motion-dom@14.6.0/node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.mjs
|
|
1307
|
+
function ir({ type: e, ...t }) {
|
|
1308
|
+
return rr(e) && $n() ? e.applyToOptions(t) : (t.duration ??= 300, t.ease ??= "easeOut", t);
|
|
1309
|
+
}
|
|
1310
|
+
//#endregion
|
|
1311
|
+
//#region node_modules/.pnpm/motion-dom@14.6.0/node_modules/motion-dom/dist/es/animation/NativeAnimation.mjs
|
|
1312
|
+
var ar = class extends rn {
|
|
1313
|
+
constructor(e) {
|
|
1314
|
+
if (super(), this.finishedTime = null, this.isStopped = !1, this.manualStartTime = null, !e) return;
|
|
1315
|
+
let { element: t, name: n, keyframes: r, pseudoElement: i, allowFlatten: a = !1, finalKeyframe: o, onComplete: s } = e;
|
|
1316
|
+
this.isPseudoElement = !!i, this.allowFlatten = a, this.options = e, e.type;
|
|
1317
|
+
let c = ir(e);
|
|
1318
|
+
this.animation = nr(t, n, r, c, i), c.autoplay === !1 && this.animation.pause(), this.animation.onfinish = () => {
|
|
1319
|
+
if (this.finishedTime = this.time, !i) {
|
|
1320
|
+
let e = Xt(r, this.options, o, this.speed);
|
|
1321
|
+
this.updateMotionValue && this.updateMotionValue(e), Yn(t, n, e), this.animation.cancel();
|
|
1322
|
+
}
|
|
1323
|
+
s?.(), this.notifyFinished();
|
|
1324
|
+
}, nn(this, e, c);
|
|
1325
|
+
}
|
|
1326
|
+
play() {
|
|
1327
|
+
this.isStopped || (this.manualStartTime = null, this.animation.play(), this.state === "finished" && this.updateFinished());
|
|
1328
|
+
}
|
|
1329
|
+
pause() {
|
|
1330
|
+
this.animation.pause();
|
|
1331
|
+
}
|
|
1332
|
+
complete() {
|
|
1333
|
+
this.animation.finish?.();
|
|
1334
|
+
}
|
|
1335
|
+
cancel() {
|
|
1336
|
+
try {
|
|
1337
|
+
this.animation.cancel();
|
|
1338
|
+
} catch {}
|
|
1339
|
+
}
|
|
1340
|
+
stop() {
|
|
1341
|
+
this.isStopped || (this.isStopped = !0, this.state !== "idle" && this.finishedTime === null && (this.updateMotionValue ? this.updateMotionValue() : this.commitStyles(), this.isPseudoElement || (this.animation.onfinish = null, this.cancel())));
|
|
1342
|
+
}
|
|
1343
|
+
commitStyles() {
|
|
1344
|
+
let e = this.options?.element;
|
|
1345
|
+
!this.isPseudoElement && e?.isConnected && this.animation.commitStyles?.();
|
|
1346
|
+
}
|
|
1347
|
+
get duration() {
|
|
1348
|
+
let e = this.animation.effect?.getComputedTiming?.().duration || 0;
|
|
1349
|
+
return /* @__PURE__ */ _(Number(e));
|
|
1350
|
+
}
|
|
1351
|
+
get iterationDuration() {
|
|
1352
|
+
let { delay: e = 0 } = this.options || {};
|
|
1353
|
+
return this.duration + /* @__PURE__ */ _(e);
|
|
1354
|
+
}
|
|
1355
|
+
get time() {
|
|
1356
|
+
return /* @__PURE__ */ _(Number(this.animation.currentTime) || 0);
|
|
1357
|
+
}
|
|
1358
|
+
set time(e) {
|
|
1359
|
+
let t = this.finishedTime !== null;
|
|
1360
|
+
this.manualStartTime = null, this.finishedTime = null, this.animation.currentTime = /* @__PURE__ */ g(e), t && this.animation.pause();
|
|
1361
|
+
}
|
|
1362
|
+
get speed() {
|
|
1363
|
+
return this.animation.playbackRate;
|
|
1364
|
+
}
|
|
1365
|
+
set speed(e) {
|
|
1366
|
+
e < 0 && (this.finishedTime = null), this.animation.playbackRate = e;
|
|
1367
|
+
}
|
|
1368
|
+
get state() {
|
|
1369
|
+
return this.finishedTime === null ? this.animation.playState : "finished";
|
|
1370
|
+
}
|
|
1371
|
+
get startTime() {
|
|
1372
|
+
return this.manualStartTime ?? Number(this.animation.startTime);
|
|
1373
|
+
}
|
|
1374
|
+
set startTime(e) {
|
|
1375
|
+
this.manualStartTime = this.animation.startTime = e;
|
|
1376
|
+
}
|
|
1377
|
+
attachTimeline({ timeline: e, onAttach: t, observe: n }) {
|
|
1378
|
+
return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, e && Qn() ? (this.animation.timeline = e, t?.(this.animation), f) : n(this);
|
|
1379
|
+
}
|
|
1380
|
+
}, or = {
|
|
1381
|
+
anticipate: E,
|
|
1382
|
+
backInOut: ee,
|
|
1383
|
+
circInOut: te
|
|
1384
|
+
};
|
|
1385
|
+
function sr(e) {
|
|
1386
|
+
return e in or;
|
|
1387
|
+
}
|
|
1388
|
+
function cr(e) {
|
|
1389
|
+
typeof e.ease == "string" && sr(e.ease) && (e.ease = or[e.ease]);
|
|
1390
|
+
}
|
|
1391
|
+
var lr = class extends ar {
|
|
1392
|
+
constructor(e) {
|
|
1393
|
+
cr(e), Qt(e), super(e), e.startTime !== void 0 && e.autoplay !== !1 && (this.startTime = e.startTime), this.options = e;
|
|
1394
|
+
}
|
|
1395
|
+
elapsed() {
|
|
1396
|
+
return this.state === "running" ? (A.now() - this.startTime) * this.speed : this.time * 1e3;
|
|
1397
|
+
}
|
|
1398
|
+
sample(e) {
|
|
1399
|
+
if (!this.sampler) {
|
|
1400
|
+
let { motionValue: e, onUpdate: t, onComplete: n, onPlay: r, onStop: i, element: a, ...o } = this.options;
|
|
1401
|
+
this.sampler = new sn({
|
|
1402
|
+
...o,
|
|
1403
|
+
autoplay: !1
|
|
1404
|
+
}), this.sampler.stop();
|
|
1405
|
+
}
|
|
1406
|
+
return this.sampler.sample(Math.max(0, e)).value;
|
|
1407
|
+
}
|
|
1408
|
+
liveValue() {
|
|
1409
|
+
let { state: e } = this;
|
|
1410
|
+
if (e === "running" || e === "paused") return this.sample(this.elapsed());
|
|
1411
|
+
}
|
|
1412
|
+
updateMotionValue(e) {
|
|
1413
|
+
let { motionValue: t, element: n, name: r } = this.options;
|
|
1414
|
+
if (!t) return;
|
|
1415
|
+
if (e !== void 0) {
|
|
1416
|
+
t.set(e);
|
|
1417
|
+
return;
|
|
1418
|
+
}
|
|
1419
|
+
let { speed: i } = this, a = this.elapsed(), s = this.state === "running" && i ? o(0, 10, a) : 0, c = this.sample(a);
|
|
1420
|
+
n && r && Yn(n, r, c), t.setWithVelocity(this.sample(a - s * Math.sign(i)), c, s / Math.abs(i || 1));
|
|
1421
|
+
}
|
|
1422
|
+
}, ur = (e, t) => t !== "zIndex" && !!(typeof e == "number" || Array.isArray(e) || typeof e == "string" && (R.test(e) || e === "0") && !e.startsWith("url("));
|
|
1423
|
+
//#endregion
|
|
1424
|
+
//#region node_modules/.pnpm/motion-dom@14.6.0/node_modules/motion-dom/dist/es/animation/utils/can-animate.mjs
|
|
1425
|
+
function dr(e) {
|
|
1426
|
+
let t = e[0];
|
|
1427
|
+
if (e.length === 1) return !0;
|
|
1428
|
+
for (let n = 0; n < e.length; n++) if (e[n] !== t) return !0;
|
|
1429
|
+
}
|
|
1430
|
+
function fr(e, t, n, r) {
|
|
1431
|
+
let i = e[0];
|
|
1432
|
+
if (i === null) return !1;
|
|
1433
|
+
if (t === "display" || t === "visibility") return !0;
|
|
1434
|
+
let a = e[e.length - 1], o = ur(i, t), s = ur(a, t);
|
|
1435
|
+
return !o || !s ? (o !== s && `${t}${i}${a}${o ? a : i}`, !1) : dr(e) || (n === "spring" || rr(n)) && r;
|
|
1436
|
+
}
|
|
1437
|
+
//#endregion
|
|
1438
|
+
//#region node_modules/.pnpm/motion-dom@14.6.0/node_modules/motion-dom/dist/es/animation/utils/make-animation-instant.mjs
|
|
1439
|
+
function pr(e) {
|
|
1440
|
+
e.duration = 0, e.type = "keyframes";
|
|
1441
|
+
}
|
|
1442
|
+
//#endregion
|
|
1443
|
+
//#region node_modules/.pnpm/motion-dom@14.6.0/node_modules/motion-dom/dist/es/animation/waapi/utils/accelerated-values.mjs
|
|
1444
|
+
var mr = /* @__PURE__ */ new Set([
|
|
1445
|
+
"opacity",
|
|
1446
|
+
"clipPath",
|
|
1447
|
+
"filter",
|
|
1448
|
+
"transform",
|
|
1449
|
+
"backgroundColor"
|
|
1450
|
+
]), hr = /^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;
|
|
1451
|
+
function gr(e) {
|
|
1452
|
+
for (let t = 0; t < e.length; t++) if (typeof e[t] == "string" && hr.test(e[t])) return !0;
|
|
1453
|
+
return !1;
|
|
1454
|
+
}
|
|
1455
|
+
//#endregion
|
|
1456
|
+
//#region node_modules/.pnpm/motion-dom@14.6.0/node_modules/motion-dom/dist/es/animation/waapi/supports/waapi.mjs
|
|
1457
|
+
var _r = /* @__PURE__ */ new Set([
|
|
1458
|
+
"color",
|
|
1459
|
+
"backgroundColor",
|
|
1460
|
+
"outlineColor",
|
|
1461
|
+
"fill",
|
|
1462
|
+
"stroke",
|
|
1463
|
+
"borderColor",
|
|
1464
|
+
"borderTopColor",
|
|
1465
|
+
"borderRightColor",
|
|
1466
|
+
"borderBottomColor",
|
|
1467
|
+
"borderLeftColor"
|
|
1468
|
+
]), vr = () => !s.useManualTiming && Object.hasOwnProperty.call(Element.prototype, "animate");
|
|
1469
|
+
function yr(e) {
|
|
1470
|
+
let { motionValue: t, name: n, repeatDelay: r, repeatType: i, damping: a, type: o, keyframes: s } = e;
|
|
1471
|
+
if (!n || !(mr.has(n) || _r.has(n))) return !1;
|
|
1472
|
+
let c = t?.owner?.current;
|
|
1473
|
+
if (!(c instanceof HTMLElement) && !(c instanceof SVGElement)) return !1;
|
|
1474
|
+
let { onUpdate: l, transformTemplate: u } = t.owner.getProps();
|
|
1475
|
+
return vr() && (mr.has(n) || _r.has(n) && gr(s)) && (n !== "transform" || !u) && !l && !r && i !== "mirror" && a !== 0 && o !== "inertia";
|
|
1476
|
+
}
|
|
1477
|
+
//#endregion
|
|
1478
|
+
//#region node_modules/.pnpm/motion-dom@14.6.0/node_modules/motion-dom/dist/es/value/types/utils/get-as-type.mjs
|
|
1479
|
+
var Y = (e, t) => t && typeof e == "number" ? t.transform(e) : e, br = {
|
|
1480
|
+
x: "translateX",
|
|
1481
|
+
y: "translateY",
|
|
1482
|
+
z: "translateZ",
|
|
1483
|
+
transformPerspective: "perspective"
|
|
1484
|
+
}, xr = G.length;
|
|
1485
|
+
function Sr(e, t, n) {
|
|
1486
|
+
let r = "", i = !0;
|
|
1487
|
+
for (let a = 0; a < xr; a++) {
|
|
1488
|
+
let o = G[a], s = e[o];
|
|
1489
|
+
if (s === void 0) continue;
|
|
1490
|
+
let c = !0;
|
|
1491
|
+
if (typeof s == "number") c = s === +!!o.startsWith("scale");
|
|
1492
|
+
else {
|
|
1493
|
+
let e = parseFloat(s);
|
|
1494
|
+
c = o.startsWith("scale") ? e === 1 : e === 0;
|
|
1495
|
+
}
|
|
1496
|
+
if (!c || n) {
|
|
1497
|
+
let e = Y(s, U[o]);
|
|
1498
|
+
if (!c) {
|
|
1499
|
+
i = !1;
|
|
1500
|
+
let t = br[o] || o;
|
|
1501
|
+
r += `${t}(${e}) `;
|
|
1502
|
+
}
|
|
1503
|
+
n && (t[o] = e);
|
|
1504
|
+
}
|
|
1505
|
+
}
|
|
1506
|
+
let a = e.pathRotation;
|
|
1507
|
+
return a && (i = !1, r += `rotate(${Y(a, U.pathRotation)}) `), r = r.trim(), n ? r = n(t, i ? "" : r) : i && (r = "none"), r;
|
|
1508
|
+
}
|
|
1509
|
+
//#endregion
|
|
1510
|
+
//#region node_modules/.pnpm/motion-dom@14.6.0/node_modules/motion-dom/dist/es/animation/waapi/transforms/groups.mjs
|
|
1511
|
+
var Cr = /* @__PURE__ */ new WeakMap(), wr = 200, Tr = .001, Er = .1, Dr = .001, Or = 100, kr = (e) => /^(linear|ease(In|Out|InOut))$/.test(e), Ar = (e, t) => e - t, jr = (e, t, n) => {
|
|
1512
|
+
let r = [];
|
|
1513
|
+
for (let i = 0; i <= n; i++) r.push(z(e, t, i / n));
|
|
1514
|
+
return r;
|
|
1515
|
+
}, Mr = (e) => e.motionValue.owner, Nr = (e) => Cr.get(e), X = (e, t) => e.latestValues ? e.latestValues[t] : e.getValue(t)?.get(), Pr = ({ name: e, motionValue: t }) => e && G.includes(e) && t?.owner?.current instanceof HTMLElement && vr() && $n();
|
|
1516
|
+
function Fr(e) {
|
|
1517
|
+
let t = Mr(e), { onUpdate: n, transformTemplate: r } = t.getProps();
|
|
1518
|
+
return !e.isHandoff && !n && !e.hasOnUpdate && !r && e.type !== "inertia" && (X(t, "transform") || "none") === "none" && !X(t, "pathRotation") && !t.projection?.isProjecting();
|
|
1519
|
+
}
|
|
1520
|
+
var Ir = class extends sn {
|
|
1521
|
+
constructor(e) {
|
|
1522
|
+
let t = Mr(e).current, { driver: n = St } = e, r, i = Fr(e);
|
|
1523
|
+
e.driver = (e) => {
|
|
1524
|
+
let i = n(e);
|
|
1525
|
+
return {
|
|
1526
|
+
js: i,
|
|
1527
|
+
now: i.now,
|
|
1528
|
+
start: (e = !0) => {
|
|
1529
|
+
let n = Nr(t);
|
|
1530
|
+
!n || n.isJS ? i.start(e) : n.schedule(!1, !e);
|
|
1531
|
+
},
|
|
1532
|
+
stop: () => {
|
|
1533
|
+
i.stop();
|
|
1534
|
+
let e = Nr(t);
|
|
1535
|
+
e && !e.isFinishing && e.release(r);
|
|
1536
|
+
}
|
|
1537
|
+
};
|
|
1538
|
+
}, super(e), r = this, this.canAccelerate = i;
|
|
1539
|
+
let { stop: a } = this;
|
|
1540
|
+
this.stop = () => {
|
|
1541
|
+
this.isAccelerated() && this.sync(), a();
|
|
1542
|
+
};
|
|
1543
|
+
}
|
|
1544
|
+
get group() {
|
|
1545
|
+
return Nr(Mr(this.options).current);
|
|
1546
|
+
}
|
|
1547
|
+
get js() {
|
|
1548
|
+
return this.driver?.js;
|
|
1549
|
+
}
|
|
1550
|
+
get name() {
|
|
1551
|
+
return this.options.name;
|
|
1552
|
+
}
|
|
1553
|
+
timing() {
|
|
1554
|
+
let { startTime: e, speed: t, totalDuration: n } = this, { delay: r = 0, repeatType: i } = this.options;
|
|
1555
|
+
return this.holdTime === null ? n === Infinity ? [e + r / t, this.resolvedDuration * (i === "loop" ? 1 : 2) / t || 1] : [e + (r + n) / t, 0] : [Infinity, 0];
|
|
1556
|
+
}
|
|
1557
|
+
isAccelerated() {
|
|
1558
|
+
let { group: e, state: t } = this;
|
|
1559
|
+
return e?.tracks.has(this) && !e.isJS && this.canAccelerate && (t === "running" || t === "paused");
|
|
1560
|
+
}
|
|
1561
|
+
liveValue() {
|
|
1562
|
+
return this.isAccelerated() ? this.sampleAt(A.now()) : void 0;
|
|
1563
|
+
}
|
|
1564
|
+
tween() {
|
|
1565
|
+
let { keyframes: e, type: t, ease: n, times: r, repeat: i, delay: a = 0 } = this.options, o = /* @__PURE__ */ se(n) ? J(n) : kr(n) && er[n];
|
|
1566
|
+
if (o && !i && !r && e.length === 2 && t === H && this.holdTime === null) {
|
|
1567
|
+
let e = this.startTime + a / this.speed;
|
|
1568
|
+
return [
|
|
1569
|
+
e,
|
|
1570
|
+
e + this.resolvedDuration / this.speed,
|
|
1571
|
+
o
|
|
1572
|
+
];
|
|
1573
|
+
}
|
|
1574
|
+
}
|
|
1575
|
+
boundaries(e, t) {
|
|
1576
|
+
let { startTime: n, speed: r, resolvedDuration: i, options: a } = this, { delay: o = 0, repeat: s = 0, repeatDelay: c = 0, repeatType: l, times: u, keyframes: d, type: f } = a, p = (f || H) === H ? u || Ut(d) : [0, 1], m = n + o / r, h = [];
|
|
1577
|
+
if (this.holdTime !== null || !(i > 0)) return h;
|
|
1578
|
+
for (let n = Math.max(0, Math.floor((e - m) * r / i)); n <= s; n++) {
|
|
1579
|
+
let a = m + n * i / r;
|
|
1580
|
+
if (a > t) break;
|
|
1581
|
+
for (let o of p) {
|
|
1582
|
+
let s = a + (n % 2 && l && l !== "loop" ? 1 - o : o) * (i - c) / r;
|
|
1583
|
+
s > e && s < t && h.push(s);
|
|
1584
|
+
}
|
|
1585
|
+
}
|
|
1586
|
+
return h;
|
|
1587
|
+
}
|
|
1588
|
+
numberAt(e) {
|
|
1589
|
+
return parseFloat(this.sampleAt(e, !0));
|
|
1590
|
+
}
|
|
1591
|
+
sync() {
|
|
1592
|
+
let e = A.now();
|
|
1593
|
+
this.options.motionValue.setWithVelocity(this.sampleAt(e - 10, !0), this.sampleAt(e, !0), 10);
|
|
1594
|
+
}
|
|
1595
|
+
play() {
|
|
1596
|
+
this.isStopped || ((this.group || Lr(Mr(this.options))).tracks.add(this), super.play());
|
|
1597
|
+
}
|
|
1598
|
+
pause() {
|
|
1599
|
+
super.pause(), this.isAccelerated() && (this.sync(), this.group.schedule(!1));
|
|
1600
|
+
}
|
|
1601
|
+
complete() {
|
|
1602
|
+
super.complete();
|
|
1603
|
+
let { group: e } = this;
|
|
1604
|
+
e && !e.isJS && this.canAccelerate && this.tick(A.now());
|
|
1605
|
+
}
|
|
1606
|
+
get time() {
|
|
1607
|
+
return this.isAccelerated() ? /* @__PURE__ */ _(o(0, this.totalDuration, this.at(A.now()) - (this.options.delay || 0))) : super.time;
|
|
1608
|
+
}
|
|
1609
|
+
set time(e) {
|
|
1610
|
+
super.time = e, this.isAccelerated() && this.sync();
|
|
1611
|
+
}
|
|
1612
|
+
attachTimeline(e) {
|
|
1613
|
+
return this.canAccelerate = !1, this.group?.demote(!0), super.attachTimeline(e);
|
|
1614
|
+
}
|
|
1615
|
+
};
|
|
1616
|
+
function Lr(e) {
|
|
1617
|
+
let t = e.current, n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Map(), i = {}, a = [], o = /* @__PURE__ */ new Map(), s = [], c = !1, l = !1, u = !1, d = !1, f = -Infinity, p = (e) => {
|
|
1618
|
+
for (let t of n) if (t.name === e) return !0;
|
|
1619
|
+
}, h = (t, n) => {
|
|
1620
|
+
let o = {};
|
|
1621
|
+
for (let s of t === void 0 ? G : a) {
|
|
1622
|
+
let a = r.get(s), c = t === void 0 ? X(e, s) : a ? a.sampleAt(n > t && !a.timing()[1] ? n : t) : i[s];
|
|
1623
|
+
c !== void 0 && (o[s] = c);
|
|
1624
|
+
}
|
|
1625
|
+
return o;
|
|
1626
|
+
}, g = (e, t) => {
|
|
1627
|
+
let n = "", r = h(e, t);
|
|
1628
|
+
for (let e in r) n += (br[e] || e) + "(" + Y(r[e], U[e]) + ") ";
|
|
1629
|
+
return n || "none";
|
|
1630
|
+
}, _ = (e = h()) => {
|
|
1631
|
+
t.style.transform = Sr(e, {});
|
|
1632
|
+
}, v = (e = !0) => {
|
|
1633
|
+
e && _(), s.forEach(({ animation: e }) => e.cancel()), s = [];
|
|
1634
|
+
}, y = (e, t, n = Infinity) => {
|
|
1635
|
+
let r = {
|
|
1636
|
+
animation: e,
|
|
1637
|
+
offset: t,
|
|
1638
|
+
end: n
|
|
1639
|
+
};
|
|
1640
|
+
e.startTime = A.now() + t, n < Infinity && (e.onfinish = () => {
|
|
1641
|
+
r.isDone = !0, s.some((e) => e.end === Infinity) && (e.cancel(), s = s.filter((e) => e !== r)), O.schedule(!1);
|
|
1642
|
+
}), e.oncancel = () => s.includes(r) && O.demote(), s.push(r);
|
|
1643
|
+
}, b = (e, t, n) => {
|
|
1644
|
+
let r = (t, n) => Math.abs(e(n) - e(t)), i = r(t, n);
|
|
1645
|
+
for (; n - t > .01;) {
|
|
1646
|
+
let e = (t + n) / 2;
|
|
1647
|
+
r(t, e) > r(e, n) ? n = e : t = e;
|
|
1648
|
+
}
|
|
1649
|
+
return r(t, n) > i / 2 ? [t, n] : [];
|
|
1650
|
+
}, x = (e, t, n, r) => {
|
|
1651
|
+
let i = Math.min(wr, Math.max(2, Math.ceil((n - t) / 10)));
|
|
1652
|
+
if (r.length * 4 > i) return;
|
|
1653
|
+
let a = jr(t, n, i).concat(r).sort(Ar), o = (e) => /* @__PURE__ */ m(t, n, e), s, c;
|
|
1654
|
+
for (let t of e) {
|
|
1655
|
+
let e = a.map((e) => t.numberAt(e)), [n] = e, r = e.map((e) => e - n), i = r[r.length - 1], o = r.some((e) => Math.abs(e) * Tr > Math.abs(i)) ? 0 : i, l = r.map((e) => o ? e / o : e);
|
|
1656
|
+
if (!o) {
|
|
1657
|
+
if (l.some((e) => !(Math.abs(e) <= Tr))) return;
|
|
1658
|
+
} else if (!s) s = l, c = (e) => (t.numberAt(e) - n) / o;
|
|
1659
|
+
else if (l.some((e, t) => !(Math.abs(e - s[t]) <= Tr))) return;
|
|
1660
|
+
}
|
|
1661
|
+
if (!s || s.every((e, t) => Math.abs(e - o(a[t])) <= Tr)) return "linear";
|
|
1662
|
+
let l = [], u = (e, t = c(e)) => l.push(on(t) + " " + on(o(e) * 100) + "%");
|
|
1663
|
+
return s.forEach((e, t) => {
|
|
1664
|
+
t && Math.abs(e - s[t - 1]) > .2 && b(c, a[t - 1], a[t]).forEach((e) => u(e)), u(a[t], e);
|
|
1665
|
+
}), "linear(" + l + ")";
|
|
1666
|
+
}, S = (e, t, n, r) => {
|
|
1667
|
+
let i = [t], a = (t, n) => e.every((e) => !(Math.abs(e.numberAt((t + n) / 2) - (e.numberAt(t) + e.numberAt(n)) / 2) > (e.name.startsWith("scale") ? Dr : Er))), o = (t, n, r) => {
|
|
1668
|
+
if (n - t < 1 || a(t, n)) i.push(n);
|
|
1669
|
+
else if (r < 4) o(t, (t + n) / 2, r + 1), o((t + n) / 2, n, r + 1);
|
|
1670
|
+
else {
|
|
1671
|
+
for (let r of e) i.push(...b((e) => r.numberAt(e), t, n));
|
|
1672
|
+
i.push(n);
|
|
1673
|
+
}
|
|
1674
|
+
}, s = jr(t, n, Math.ceil((n - t) / 100));
|
|
1675
|
+
for (let e of r) s.push(e, Math.min(e + .01, n));
|
|
1676
|
+
let c = t;
|
|
1677
|
+
for (let e of s.sort(Ar)) e > c && o(c, e, 0), c = e;
|
|
1678
|
+
return i.sort(Ar);
|
|
1679
|
+
}, C = (e) => {
|
|
1680
|
+
let t;
|
|
1681
|
+
for (let n of e) {
|
|
1682
|
+
let e = n.tween();
|
|
1683
|
+
if (!e || t?.some((t, n) => n < 2 ? Math.abs(e[n] - t) > 1 : e[n] !== t)) return;
|
|
1684
|
+
t = e;
|
|
1685
|
+
}
|
|
1686
|
+
return t;
|
|
1687
|
+
}, w = (e, n, r, i = { fill: "both" }, a, o) => {
|
|
1688
|
+
let s = e.flatMap((e) => e.boundaries(n, r)), c = o || x(e, n, r, s), l = c ? [n, r] : S(e, n, r, s), u = l.map((e) => g(e, a)), d = { transform: u };
|
|
1689
|
+
return c || (d.offset = l.map((e) => /* @__PURE__ */ m(n, r, e))), u.every((e) => e === u[0]) && (_(h(n, a)), d = null), t.animate(d, {
|
|
1690
|
+
...i,
|
|
1691
|
+
duration: r - n,
|
|
1692
|
+
easing: c || "linear"
|
|
1693
|
+
});
|
|
1694
|
+
}, T = (c) => {
|
|
1695
|
+
let l = c, u = 0, d = 0, f = [], p = [], m = /* @__PURE__ */ new Set();
|
|
1696
|
+
r.clear(), o = /* @__PURE__ */ new Map();
|
|
1697
|
+
for (let e of n) {
|
|
1698
|
+
r.set(e.name, e);
|
|
1699
|
+
let [t, n] = e.timing(), i = t === Infinity;
|
|
1700
|
+
if (o.set(e, [
|
|
1701
|
+
e.at(c),
|
|
1702
|
+
e.speed,
|
|
1703
|
+
i
|
|
1704
|
+
]), i) {
|
|
1705
|
+
e.sync();
|
|
1706
|
+
continue;
|
|
1707
|
+
}
|
|
1708
|
+
if (e.speed < 0) return;
|
|
1709
|
+
if (n) {
|
|
1710
|
+
if (u) {
|
|
1711
|
+
let e = (t - d) / n;
|
|
1712
|
+
if (Math.abs(n - u) > 1 || Math.abs(e - Math.round(e)) * u > 1) return;
|
|
1713
|
+
} else u = n, d = t;
|
|
1714
|
+
p.push(e);
|
|
1715
|
+
} else m.add(t);
|
|
1716
|
+
f.push(e), l = Math.max(l, t);
|
|
1717
|
+
}
|
|
1718
|
+
i = {}, a = G.filter((t) => {
|
|
1719
|
+
if (r.has(t)) return !0;
|
|
1720
|
+
let n = i[t] = X(e, t);
|
|
1721
|
+
return n !== void 0 && parseFloat(n) !== +!!t.startsWith("scale");
|
|
1722
|
+
}), v(!1);
|
|
1723
|
+
let h = !u && C(f);
|
|
1724
|
+
try {
|
|
1725
|
+
if (h && h[1] > c) {
|
|
1726
|
+
let [e, t, n] = h;
|
|
1727
|
+
y(w(f, e, t, void 0, void 0, n), e - c, t - e);
|
|
1728
|
+
} else l > c && (y(w(f, c, l), 0, l - c), m.forEach((e) => e < l - 1 && y(t.animate(null, { duration: e - c }), 0, e - c)));
|
|
1729
|
+
if (u) {
|
|
1730
|
+
let e = d + Math.floor((l - d) / u) * u;
|
|
1731
|
+
y(w(p, e, e + u, {
|
|
1732
|
+
iterations: Infinity,
|
|
1733
|
+
iterationStart: (l - e) / u,
|
|
1734
|
+
fill: "forwards"
|
|
1735
|
+
}, l), l - c);
|
|
1736
|
+
}
|
|
1737
|
+
} catch {
|
|
1738
|
+
return;
|
|
1739
|
+
}
|
|
1740
|
+
return s.length || v(), !0;
|
|
1741
|
+
}, ee = (e) => {
|
|
1742
|
+
let t, r = 0;
|
|
1743
|
+
for (let i of n) {
|
|
1744
|
+
let n = o.get(i);
|
|
1745
|
+
if (!n) return !1;
|
|
1746
|
+
let [a, s, c] = n, l = i.at(e), u = i.timing()[0] === Infinity;
|
|
1747
|
+
if (c) {
|
|
1748
|
+
if (u && l === a) continue;
|
|
1749
|
+
return !1;
|
|
1750
|
+
}
|
|
1751
|
+
let d = (l - a) / s, f = u ? 0 : i.speed / s;
|
|
1752
|
+
if (t === void 0) t = d, r = f;
|
|
1753
|
+
else if (Math.abs(d - t) > 1 || f !== r) return !1;
|
|
1754
|
+
}
|
|
1755
|
+
if (t === void 0) return !0;
|
|
1756
|
+
if (!s.length) return !1;
|
|
1757
|
+
for (let { offset: e, end: n, isDone: r } of s) {
|
|
1758
|
+
let i = t - e;
|
|
1759
|
+
if (n < Infinity && (r ? i < n - 1 : i < 0 || i >= n)) return !1;
|
|
1760
|
+
}
|
|
1761
|
+
for (let { animation: n, offset: i, isDone: a } of s) {
|
|
1762
|
+
if (a) continue;
|
|
1763
|
+
let o = t - i;
|
|
1764
|
+
r ? (n.playbackRate = r, n.startTime = e - o / r) : (n.pause(), n.currentTime = o);
|
|
1765
|
+
}
|
|
1766
|
+
return !0;
|
|
1767
|
+
}, E = () => !n.size && (u = !0, Nr(t) === O && Cr.delete(t), O.isJS || v(), !0), D = () => {
|
|
1768
|
+
let t = A.now();
|
|
1769
|
+
if (O.isJS || (O.isFinishing = !0, n.forEach((n) => {
|
|
1770
|
+
let [r, a] = n.timing();
|
|
1771
|
+
n.state === "running" && n.speed > 0 && !a && r <= t + 1 && (n.complete(), i[n.name] = X(e, n.name), o.has(n) || (c = !0));
|
|
1772
|
+
}), O.isFinishing = !1), l = !1, u || (n.forEach(({ state: e }, t) => {
|
|
1773
|
+
(e === "idle" || e === "finished") && n.delete(t);
|
|
1774
|
+
}), E())) return;
|
|
1775
|
+
for (let e of n) if (!e.canAccelerate) return O.demote(!0);
|
|
1776
|
+
O.isJS && (O.isJS = !1, c = !0, n.forEach((e) => e.js?.stop()));
|
|
1777
|
+
let r = c, a = d;
|
|
1778
|
+
if (c = d = !1, r || !ee(t)) {
|
|
1779
|
+
if (a) {
|
|
1780
|
+
if (t - f < Or) return O.demote();
|
|
1781
|
+
f = t;
|
|
1782
|
+
}
|
|
1783
|
+
if (!T(t)) return O.demote();
|
|
1784
|
+
}
|
|
1785
|
+
}, O = {
|
|
1786
|
+
tracks: n,
|
|
1787
|
+
isJS: !1,
|
|
1788
|
+
isFinishing: !1,
|
|
1789
|
+
schedule(e, t) {
|
|
1790
|
+
u || (c ||= e, d ||= !!t, l || (l = !0, k.isProcessing ? B.render(D, !1, !0) : queueMicrotask(D)));
|
|
1791
|
+
},
|
|
1792
|
+
release(e) {
|
|
1793
|
+
let { state: t } = e;
|
|
1794
|
+
(t === "idle" || t === "finished") && n.delete(e), E() || O.schedule(!0);
|
|
1795
|
+
},
|
|
1796
|
+
check() {
|
|
1797
|
+
if (!O.isJS) {
|
|
1798
|
+
for (let t in i) if (X(e, t) !== i[t] && !p(t)) return O.schedule(!0, !0);
|
|
1799
|
+
}
|
|
1800
|
+
},
|
|
1801
|
+
demote(e) {
|
|
1802
|
+
O.isJS || u || (n.forEach((t) => {
|
|
1803
|
+
t.isAccelerated() && t.sync(), e || (t.canAccelerate = !1);
|
|
1804
|
+
}), O.isJS = !0, o = /* @__PURE__ */ new Map(), v(), n.forEach((e) => e.state === "running" && e.js?.start()));
|
|
1805
|
+
}
|
|
1806
|
+
};
|
|
1807
|
+
return Cr.set(t, O), O;
|
|
1808
|
+
}
|
|
1809
|
+
//#endregion
|
|
1810
|
+
//#region node_modules/.pnpm/motion-dom@14.6.0/node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.mjs
|
|
1811
|
+
var Rr = class extends rn {
|
|
1812
|
+
constructor(e) {
|
|
1813
|
+
super(), this.stop = () => {
|
|
1814
|
+
this._animation && (this._animation.stop(), this.stopTimeline?.()), this.keyframeResolver?.cancel();
|
|
1815
|
+
}, this.createdAt = A.now();
|
|
1816
|
+
let { keyframes: t, name: n, motionValue: r, element: i } = e, a = e;
|
|
1817
|
+
a.autoplay ??= !0, a.delay ??= 0, a.type ??= "keyframes", a.repeat ??= 0, a.repeatDelay ??= 0, a.repeatType ??= "loop";
|
|
1818
|
+
let o = i?.KeyframeResolver || qn;
|
|
1819
|
+
this.keyframeResolver = new o(t, (e, t, n) => this.onKeyframesResolved(e, t, a, !n), n, r, i), this.keyframeResolver?.scheduleResolve();
|
|
1820
|
+
}
|
|
1821
|
+
onKeyframesResolved(e, t, n, r) {
|
|
1822
|
+
this.keyframeResolver = void 0;
|
|
1823
|
+
let { name: i, type: a, velocity: o, delay: c, isHandoff: l, onUpdate: u } = n;
|
|
1824
|
+
this.resolvedAt = A.now();
|
|
1825
|
+
let d = !0;
|
|
1826
|
+
fr(e, i, a, o) || (d = !1, (s.instantAnimations || !c) && u?.(Xt(e, n, t)), e[0] = e[e.length - 1], pr(n), n.repeat = 0);
|
|
1827
|
+
let { onComplete: f } = n;
|
|
1828
|
+
n.finalKeyframe = t, n.keyframes = e, n.onComplete = () => {
|
|
1829
|
+
f?.(), this.notifyFinished();
|
|
1830
|
+
};
|
|
1831
|
+
let p = d && !l && yr(n), m = !p && Pr(n);
|
|
1832
|
+
r && (p || m || this.resolvedAt !== this.createdAt) && (n.startTime ??= en(this.createdAt, this.resolvedAt));
|
|
1833
|
+
let h;
|
|
1834
|
+
if (p) {
|
|
1835
|
+
n.element = n.motionValue?.owner?.current;
|
|
1836
|
+
try {
|
|
1837
|
+
h = new lr(n);
|
|
1838
|
+
} catch {
|
|
1839
|
+
h = new sn(n);
|
|
1840
|
+
}
|
|
1841
|
+
} else h = m ? new Ir(n) : new sn(n);
|
|
1842
|
+
this.pendingTimeline &&= (this.stopTimeline = h.attachTimeline(this.pendingTimeline), void 0), this._animation = h;
|
|
1843
|
+
}
|
|
1844
|
+
get finished() {
|
|
1845
|
+
return this._animation ? this._animation.finished : super.finished;
|
|
1846
|
+
}
|
|
1847
|
+
then(e, t) {
|
|
1848
|
+
return this.finished.finally(e).then(() => {});
|
|
1849
|
+
}
|
|
1850
|
+
liveValue() {
|
|
1851
|
+
return this._animation?.liveValue?.();
|
|
1852
|
+
}
|
|
1853
|
+
get animation() {
|
|
1854
|
+
return this._animation || (this.keyframeResolver?.resume(), Gn()), this._animation;
|
|
1855
|
+
}
|
|
1856
|
+
get duration() {
|
|
1857
|
+
return this.animation.duration;
|
|
1858
|
+
}
|
|
1859
|
+
get iterationDuration() {
|
|
1860
|
+
return this.animation.iterationDuration;
|
|
1861
|
+
}
|
|
1862
|
+
get time() {
|
|
1863
|
+
return this.animation.time;
|
|
1864
|
+
}
|
|
1865
|
+
set time(e) {
|
|
1866
|
+
this.animation.time = e;
|
|
1867
|
+
}
|
|
1868
|
+
get speed() {
|
|
1869
|
+
return this.animation.speed;
|
|
1870
|
+
}
|
|
1871
|
+
get state() {
|
|
1872
|
+
return this.animation.state;
|
|
1873
|
+
}
|
|
1874
|
+
set speed(e) {
|
|
1875
|
+
this.animation.speed = e;
|
|
1876
|
+
}
|
|
1877
|
+
get startTime() {
|
|
1878
|
+
return this.animation.startTime;
|
|
1879
|
+
}
|
|
1880
|
+
attachTimeline(e) {
|
|
1881
|
+
return this._animation ? this.stopTimeline = this.animation.attachTimeline(e) : this.pendingTimeline = e, () => this.stop();
|
|
1882
|
+
}
|
|
1883
|
+
play() {
|
|
1884
|
+
this.animation.play();
|
|
1885
|
+
}
|
|
1886
|
+
pause() {
|
|
1887
|
+
this.animation.pause();
|
|
1888
|
+
}
|
|
1889
|
+
complete() {
|
|
1890
|
+
this.animation.complete();
|
|
1891
|
+
}
|
|
1892
|
+
cancel() {
|
|
1893
|
+
this._animation && this.animation.cancel(), this.keyframeResolver?.cancel();
|
|
1894
|
+
}
|
|
1895
|
+
}, zr = class {
|
|
1896
|
+
constructor(e) {
|
|
1897
|
+
this.stop = () => this.runAll("stop"), this.animations = e.filter(Boolean);
|
|
1898
|
+
}
|
|
1899
|
+
get finished() {
|
|
1900
|
+
return Promise.all(this.animations.map((e) => e.finished));
|
|
1901
|
+
}
|
|
1902
|
+
getAll(e) {
|
|
1903
|
+
return this.animations[0][e];
|
|
1904
|
+
}
|
|
1905
|
+
setAll(e, t) {
|
|
1906
|
+
for (let n = 0; n < this.animations.length; n++) this.animations[n][e] = t;
|
|
1907
|
+
}
|
|
1908
|
+
attachTimeline(e) {
|
|
1909
|
+
let t = this.animations.map((t) => t.attachTimeline(e));
|
|
1910
|
+
return () => {
|
|
1911
|
+
t.forEach((e, t) => {
|
|
1912
|
+
e && e(), this.animations[t].stop();
|
|
1913
|
+
});
|
|
1914
|
+
};
|
|
1915
|
+
}
|
|
1916
|
+
get time() {
|
|
1917
|
+
return this.getAll("time");
|
|
1918
|
+
}
|
|
1919
|
+
set time(e) {
|
|
1920
|
+
this.setAll("time", e);
|
|
1921
|
+
}
|
|
1922
|
+
get speed() {
|
|
1923
|
+
return this.getAll("speed");
|
|
1924
|
+
}
|
|
1925
|
+
set speed(e) {
|
|
1926
|
+
this.setAll("speed", e);
|
|
1927
|
+
}
|
|
1928
|
+
get state() {
|
|
1929
|
+
return this.getAll("state");
|
|
1930
|
+
}
|
|
1931
|
+
get startTime() {
|
|
1932
|
+
return this.getAll("startTime");
|
|
1933
|
+
}
|
|
1934
|
+
get duration() {
|
|
1935
|
+
return Br(this.animations, "duration");
|
|
1936
|
+
}
|
|
1937
|
+
get iterationDuration() {
|
|
1938
|
+
return Br(this.animations, "iterationDuration");
|
|
1939
|
+
}
|
|
1940
|
+
runAll(e) {
|
|
1941
|
+
this.animations.forEach((t) => t[e]());
|
|
1942
|
+
}
|
|
1943
|
+
play() {
|
|
1944
|
+
this.runAll("play");
|
|
1945
|
+
}
|
|
1946
|
+
pause() {
|
|
1947
|
+
this.runAll("pause");
|
|
1948
|
+
}
|
|
1949
|
+
cancel() {
|
|
1950
|
+
this.runAll("cancel");
|
|
1951
|
+
}
|
|
1952
|
+
complete() {
|
|
1953
|
+
this.runAll("complete");
|
|
1954
|
+
}
|
|
1955
|
+
};
|
|
1956
|
+
function Br(e, t) {
|
|
1957
|
+
let n = 0;
|
|
1958
|
+
for (let r = 0; r < e.length; r++) {
|
|
1959
|
+
let i = e[r][t];
|
|
1960
|
+
i !== null && i > n && (n = i);
|
|
1961
|
+
}
|
|
1962
|
+
return n;
|
|
1963
|
+
}
|
|
1964
|
+
//#endregion
|
|
1965
|
+
//#region node_modules/.pnpm/motion-dom@14.6.0/node_modules/motion-dom/dist/es/animation/GroupAnimationWithThen.mjs
|
|
1966
|
+
var Vr = class extends zr {
|
|
1967
|
+
then(e, t) {
|
|
1968
|
+
return this.finished.finally(e).then(() => {});
|
|
1969
|
+
}
|
|
1970
|
+
}, Hr = 30, Ur = (e) => !isNaN(parseFloat(e)), Wr = { current: void 0 }, Gr = class {
|
|
1971
|
+
constructor(e, t = {}) {
|
|
1972
|
+
this.canTrackVelocity = null, this.events = {}, this.updateAndNotify = (e) => {
|
|
1973
|
+
let t = A.now();
|
|
1974
|
+
if (this.updatedAt !== t && this.setPrevFrameValue(), this.prev = this.current, this.setCurrent(e), this.current !== this.prev && (this.notifyChange(), this.dependents)) for (let e of this.dependents) e.dirty();
|
|
1975
|
+
}, this.hasAnimated = !1, this.setCurrent(e), this.owner = t.owner;
|
|
1976
|
+
}
|
|
1977
|
+
setCurrent(e) {
|
|
1978
|
+
this.current = e, this.updatedAt = A.now(), this.canTrackVelocity === null && e !== void 0 && (this.canTrackVelocity = Ur(this.current));
|
|
1979
|
+
}
|
|
1980
|
+
setPrevFrameValue(e = this.current) {
|
|
1981
|
+
this.prevFrameValue = e, this.prevUpdatedAt = this.updatedAt;
|
|
1982
|
+
}
|
|
1983
|
+
onChange(e) {
|
|
1984
|
+
return this.on("change", e);
|
|
1985
|
+
}
|
|
1986
|
+
on(e, t) {
|
|
1987
|
+
var n;
|
|
1988
|
+
return e === "change" ? this.onChangeSubscribe(t) : ((n = this.events)[e] || (n[e] = new h())).add(t);
|
|
1989
|
+
}
|
|
1990
|
+
onChangeSubscribe(e) {
|
|
1991
|
+
let { events: t } = this;
|
|
1992
|
+
return !t.change && !this.changeSubscriber ? this.changeSubscriber = e : (t.change || (t.change = new h(), t.change.add(this.changeSubscriber), this.changeSubscriber = void 0), t.change.add(e)), () => {
|
|
1993
|
+
this.changeSubscriber === e ? this.changeSubscriber = void 0 : t.change?.remove(e), this.stopIfUnobserved();
|
|
1994
|
+
};
|
|
1995
|
+
}
|
|
1996
|
+
stopIfUnobserved() {
|
|
1997
|
+
B.read(() => {
|
|
1998
|
+
!this.changeSubscriber && !this.events.change?.getSize() && this.stop();
|
|
1999
|
+
});
|
|
2000
|
+
}
|
|
2001
|
+
clearListeners() {
|
|
2002
|
+
this.changeSubscriber = void 0;
|
|
2003
|
+
for (let e in this.events) this.events[e].clear();
|
|
2004
|
+
}
|
|
2005
|
+
attach(e, t) {
|
|
2006
|
+
this.passiveEffect = e, this.stopPassiveEffect = t;
|
|
2007
|
+
}
|
|
2008
|
+
set(e) {
|
|
2009
|
+
this.passiveEffect ? this.passiveEffect(e, this.updateAndNotify) : this.updateAndNotify(e);
|
|
2010
|
+
}
|
|
2011
|
+
setWithVelocity(e, t, n) {
|
|
2012
|
+
this.set(t), this.prev = void 0, this.prevFrameValue = e, this.prevUpdatedAt = this.updatedAt - n;
|
|
2013
|
+
}
|
|
2014
|
+
jump(e, t = !0) {
|
|
2015
|
+
this.updateAndNotify(e), this.prev = e, this.prevUpdatedAt = this.prevFrameValue = void 0, t && this.stop(), this.stopPassiveEffect && this.stopPassiveEffect();
|
|
2016
|
+
}
|
|
2017
|
+
dirty() {
|
|
2018
|
+
this.notifyChange();
|
|
2019
|
+
}
|
|
2020
|
+
notifyChange() {
|
|
2021
|
+
let { current: e, changeSubscriber: t } = this;
|
|
2022
|
+
t ? t(e) : this.events.change?.notify(e);
|
|
2023
|
+
}
|
|
2024
|
+
addDependent(e) {
|
|
2025
|
+
this.dependents ||= /* @__PURE__ */ new Set(), this.dependents.add(e);
|
|
2026
|
+
}
|
|
2027
|
+
removeDependent(e) {
|
|
2028
|
+
this.dependents && this.dependents.delete(e);
|
|
2029
|
+
}
|
|
2030
|
+
get() {
|
|
2031
|
+
Wr.current && Wr.current.push(this);
|
|
2032
|
+
let e = this.animation?.liveValue?.();
|
|
2033
|
+
return e === void 0 ? this.current : e;
|
|
2034
|
+
}
|
|
2035
|
+
getCurrent() {
|
|
2036
|
+
return this.current;
|
|
2037
|
+
}
|
|
2038
|
+
getPrevious() {
|
|
2039
|
+
return this.prev;
|
|
2040
|
+
}
|
|
2041
|
+
getVelocity() {
|
|
2042
|
+
let e = A.now();
|
|
2043
|
+
if (!this.canTrackVelocity || this.prevFrameValue === void 0 || e - this.updatedAt > Hr) return 0;
|
|
2044
|
+
let t = Math.min(this.updatedAt - this.prevUpdatedAt, Hr);
|
|
2045
|
+
return /* @__PURE__ */ v(parseFloat(this.current) - parseFloat(this.prevFrameValue), t);
|
|
2046
|
+
}
|
|
2047
|
+
start(e) {
|
|
2048
|
+
return this.stop(), new Promise((t) => {
|
|
2049
|
+
this.hasAnimated = !0;
|
|
2050
|
+
let n = !1, r;
|
|
2051
|
+
r = e(() => {
|
|
2052
|
+
n = !0, this.events.animationComplete?.notify(), this.animation === r && this.clearAnimation(), t();
|
|
2053
|
+
}), n || (this.animation = r), this.events.animationStart?.notify();
|
|
2054
|
+
});
|
|
2055
|
+
}
|
|
2056
|
+
stop() {
|
|
2057
|
+
this.animation && (this.animation.stop(), this.events.animationCancel && this.events.animationCancel.notify()), this.clearAnimation();
|
|
2058
|
+
}
|
|
2059
|
+
isAnimating() {
|
|
2060
|
+
return !!this.animation;
|
|
2061
|
+
}
|
|
2062
|
+
clearAnimation() {
|
|
2063
|
+
this.animation = void 0;
|
|
2064
|
+
}
|
|
2065
|
+
destroy() {
|
|
2066
|
+
this.dependents?.clear(), this.events.destroy?.notify(), this.clearListeners(), this.stop(), this.stopPassiveEffect && this.stopPassiveEffect();
|
|
2067
|
+
}
|
|
2068
|
+
};
|
|
2069
|
+
function Z(e, t) {
|
|
2070
|
+
return new Gr(e, t);
|
|
2071
|
+
}
|
|
2072
|
+
//#endregion
|
|
2073
|
+
//#region node_modules/.pnpm/motion-dom@14.6.0/node_modules/motion-dom/dist/es/animation/utils/resolve-transition.mjs
|
|
2074
|
+
function Kr(e, t) {
|
|
2075
|
+
if (e?.inherit && t) {
|
|
2076
|
+
let { inherit: n, ...r } = e;
|
|
2077
|
+
return {
|
|
2078
|
+
...t,
|
|
2079
|
+
...r
|
|
2080
|
+
};
|
|
2081
|
+
}
|
|
2082
|
+
return e;
|
|
2083
|
+
}
|
|
2084
|
+
//#endregion
|
|
2085
|
+
//#region node_modules/.pnpm/motion-dom@14.6.0/node_modules/motion-dom/dist/es/animation/utils/get-value-transition.mjs
|
|
2086
|
+
function qr(e, t) {
|
|
2087
|
+
let n = e?.[t] ?? e?.default ?? e;
|
|
2088
|
+
return n === e ? n : Kr(n, e);
|
|
2089
|
+
}
|
|
2090
|
+
//#endregion
|
|
2091
|
+
//#region node_modules/.pnpm/motion-dom@14.6.0/node_modules/motion-dom/dist/es/animation/utils/default-transitions.mjs
|
|
2092
|
+
var Jr = {
|
|
2093
|
+
type: "spring",
|
|
2094
|
+
stiffness: 500,
|
|
2095
|
+
damping: 25,
|
|
2096
|
+
restSpeed: 10
|
|
2097
|
+
}, Yr = (e) => ({
|
|
2098
|
+
type: "spring",
|
|
2099
|
+
stiffness: 550,
|
|
2100
|
+
damping: e === 0 ? 2 * Math.sqrt(550) : 30,
|
|
2101
|
+
restSpeed: 10
|
|
2102
|
+
}), Xr = {
|
|
2103
|
+
type: "keyframes",
|
|
2104
|
+
duration: .8
|
|
2105
|
+
}, Zr = {
|
|
2106
|
+
type: "keyframes",
|
|
2107
|
+
ease: [
|
|
2108
|
+
.25,
|
|
2109
|
+
.1,
|
|
2110
|
+
.35,
|
|
2111
|
+
1
|
|
2112
|
+
],
|
|
2113
|
+
duration: .3
|
|
2114
|
+
}, Qr = (e, { keyframes: t }) => t.length > 2 ? Xr : K.has(e) ? e.startsWith("scale") ? Yr(t[1]) : Jr : Zr, $r = /* @__PURE__ */ new Set([
|
|
2115
|
+
"when",
|
|
2116
|
+
"delay",
|
|
2117
|
+
"delayChildren",
|
|
2118
|
+
"staggerChildren",
|
|
2119
|
+
"staggerDirection",
|
|
2120
|
+
"repeat",
|
|
2121
|
+
"repeatType",
|
|
2122
|
+
"repeatDelay",
|
|
2123
|
+
"from",
|
|
2124
|
+
"elapsed"
|
|
2125
|
+
]);
|
|
2126
|
+
function ei(e) {
|
|
2127
|
+
for (let t in e) if (!$r.has(t)) return !0;
|
|
2128
|
+
return !1;
|
|
2129
|
+
}
|
|
2130
|
+
//#endregion
|
|
2131
|
+
//#region node_modules/.pnpm/motion-dom@14.6.0/node_modules/motion-dom/dist/es/animation/interfaces/motion-value.mjs
|
|
2132
|
+
var ti = (e, t, n, r = {}, i, a) => (o) => {
|
|
2133
|
+
let c = qr(r, e) || {}, l = c.delay || r.delay || 0, { elapsed: u = 0 } = r;
|
|
2134
|
+
u -= /* @__PURE__ */ g(l);
|
|
2135
|
+
let d = {
|
|
2136
|
+
keyframes: Array.isArray(n) ? n : [null, n],
|
|
2137
|
+
ease: "easeOut",
|
|
2138
|
+
velocity: t.getVelocity(),
|
|
2139
|
+
...c,
|
|
2140
|
+
delay: -u,
|
|
2141
|
+
onUpdate: (e) => {
|
|
2142
|
+
t.set(e), c.onUpdate && c.onUpdate(e);
|
|
2143
|
+
},
|
|
2144
|
+
onComplete: () => {
|
|
2145
|
+
o(), c.onComplete && c.onComplete();
|
|
2146
|
+
},
|
|
2147
|
+
name: e,
|
|
2148
|
+
motionValue: t,
|
|
2149
|
+
element: a ? void 0 : i,
|
|
2150
|
+
hasOnUpdate: !!c.onUpdate
|
|
2151
|
+
};
|
|
2152
|
+
ei(c) || Object.assign(d, Qr(e, d)), d.duration &&= /* @__PURE__ */ g(d.duration), d.repeatDelay &&= /* @__PURE__ */ g(d.repeatDelay), d.from !== void 0 && (d.keyframes[0] = d.from);
|
|
2153
|
+
let f = !1;
|
|
2154
|
+
if ((d.type === !1 || d.duration === 0 && !d.repeatDelay) && (pr(d), d.delay === 0 && (f = !0)), (s.instantAnimations || s.skipAnimations || i?.shouldSkipAnimations || c.skipAnimations) && (f = !0, pr(d), d.delay = 0), d.allowFlatten = !c.type && !c.ease, f && !a && t.get() !== void 0) {
|
|
2155
|
+
let e = Xt(d.keyframes, c);
|
|
2156
|
+
if (e !== void 0) {
|
|
2157
|
+
B.update(() => {
|
|
2158
|
+
d.onUpdate(e), d.onComplete();
|
|
2159
|
+
});
|
|
2160
|
+
return;
|
|
2161
|
+
}
|
|
2162
|
+
}
|
|
2163
|
+
return c.isSync ? new sn(d) : new Rr(d);
|
|
2164
|
+
}, ni = /^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;
|
|
2165
|
+
function ri(e) {
|
|
2166
|
+
let t = ni.exec(e);
|
|
2167
|
+
if (!t) return [,];
|
|
2168
|
+
let [, n, r, i] = t;
|
|
2169
|
+
return [`--${n ?? r}`, i];
|
|
2170
|
+
}
|
|
2171
|
+
function ii(e, t, n = 1) {
|
|
2172
|
+
`${e}`;
|
|
2173
|
+
let [r, i] = ri(e);
|
|
2174
|
+
if (!r) return;
|
|
2175
|
+
let a = window.getComputedStyle(t).getPropertyValue(r);
|
|
2176
|
+
if (a) {
|
|
2177
|
+
let e = a.trim();
|
|
2178
|
+
return c(e) ? parseFloat(e) : e;
|
|
2179
|
+
}
|
|
2180
|
+
return he(i) ? ii(i, t, n + 1) : i;
|
|
2181
|
+
}
|
|
2182
|
+
//#endregion
|
|
2183
|
+
//#region node_modules/.pnpm/motion-dom@14.6.0/node_modules/motion-dom/dist/es/render/utils/keys-position.mjs
|
|
2184
|
+
var ai = /* @__PURE__ */ new Set([
|
|
2185
|
+
"width",
|
|
2186
|
+
"height",
|
|
2187
|
+
"top",
|
|
2188
|
+
"left",
|
|
2189
|
+
"right",
|
|
2190
|
+
"bottom",
|
|
2191
|
+
...G
|
|
2192
|
+
]), oi = (e) => !!(e && e.getVelocity), si = {
|
|
2193
|
+
test: (e) => e === "auto",
|
|
2194
|
+
parse: (e) => e
|
|
2195
|
+
}, ci = (e) => (t) => t.test(e), li = [
|
|
2196
|
+
j,
|
|
2197
|
+
F,
|
|
2198
|
+
P,
|
|
2199
|
+
N,
|
|
2200
|
+
je,
|
|
2201
|
+
Ae,
|
|
2202
|
+
si
|
|
2203
|
+
], ui = (e) => li.find(ci(e));
|
|
2204
|
+
//#endregion
|
|
2205
|
+
//#region node_modules/.pnpm/motion-dom@14.6.0/node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none.mjs
|
|
2206
|
+
function di(e) {
|
|
2207
|
+
return typeof e == "number" ? e === 0 : e === null || e === "none" || e === "0" || u(e);
|
|
2208
|
+
}
|
|
2209
|
+
//#endregion
|
|
2210
|
+
//#region node_modules/.pnpm/motion-dom@14.6.0/node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.mjs
|
|
2211
|
+
var fi = /* @__PURE__ */ new Set([
|
|
2212
|
+
"auto",
|
|
2213
|
+
"none",
|
|
2214
|
+
"0"
|
|
2215
|
+
]);
|
|
2216
|
+
function pi(e, t, n) {
|
|
2217
|
+
let r = 0, i;
|
|
2218
|
+
for (; r < e.length && !i;) {
|
|
2219
|
+
let t = e[r];
|
|
2220
|
+
typeof t == "string" && !fi.has(t) && Ue(t) && (i = e[r]), r++;
|
|
2221
|
+
}
|
|
2222
|
+
if (i && n) for (let r of t) e[r] !== i && (e[r] = vn(n, i));
|
|
2223
|
+
}
|
|
2224
|
+
//#endregion
|
|
2225
|
+
//#region node_modules/.pnpm/motion-dom@14.6.0/node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.mjs
|
|
2226
|
+
var mi = class extends qn {
|
|
2227
|
+
constructor(e, t, n, r, i) {
|
|
2228
|
+
super(e, t, n, r, i, !0);
|
|
2229
|
+
}
|
|
2230
|
+
scheduleResolve() {
|
|
2231
|
+
if (this.canReadNow() && (this.readKeyframes(), !this.needsMeasurement)) return this.complete();
|
|
2232
|
+
super.scheduleResolve();
|
|
2233
|
+
}
|
|
2234
|
+
canReadNow() {
|
|
2235
|
+
let { unresolvedKeyframes: e, element: t, motionValue: n } = this, r = e[0] ?? n?.get();
|
|
2236
|
+
if (!t?.current || r === void 0) return !1;
|
|
2237
|
+
for (let t = 0; t < e.length; t++) if (_e(t ? e[t] : r)) return !1;
|
|
2238
|
+
return !0;
|
|
2239
|
+
}
|
|
2240
|
+
readKeyframes() {
|
|
2241
|
+
let { unresolvedKeyframes: e, element: t, name: n } = this;
|
|
2242
|
+
if (!t || !t.current) return;
|
|
2243
|
+
super.readKeyframes();
|
|
2244
|
+
for (let n = 0; n < e.length; n++) {
|
|
2245
|
+
let r = e[n];
|
|
2246
|
+
if (typeof r == "string" && (r = r.trim(), he(r))) {
|
|
2247
|
+
let i = ii(r, t.current);
|
|
2248
|
+
i !== void 0 && (e[n] = i), n === e.length - 1 && (this.finalKeyframe = r);
|
|
2249
|
+
}
|
|
2250
|
+
}
|
|
2251
|
+
if (this.resolveNoneKeyframes(), !ai.has(n) || e.length !== 2) return;
|
|
2252
|
+
let [r, i] = e;
|
|
2253
|
+
if (typeof r == "number" && typeof i == "number") return;
|
|
2254
|
+
let a = ui(r), o = ui(i);
|
|
2255
|
+
if (_e(r) !== _e(i) && zn[n]) {
|
|
2256
|
+
this.needsMeasurement = !0;
|
|
2257
|
+
return;
|
|
2258
|
+
}
|
|
2259
|
+
if (a !== o) {
|
|
2260
|
+
if (jn(a) && jn(o)) for (let t = 0; t < e.length; t++) {
|
|
2261
|
+
let n = e[t];
|
|
2262
|
+
typeof n == "string" && (e[t] = parseFloat(n));
|
|
2263
|
+
}
|
|
2264
|
+
else zn[n] && (this.needsMeasurement = !0);
|
|
2265
|
+
}
|
|
2266
|
+
}
|
|
2267
|
+
resolveNoneKeyframes() {
|
|
2268
|
+
let { unresolvedKeyframes: e, name: t } = this, n = [];
|
|
2269
|
+
for (let t = 0; t < e.length; t++) (e[t] === null || di(e[t])) && n.push(t);
|
|
2270
|
+
n.length && pi(e, n, t);
|
|
2271
|
+
}
|
|
2272
|
+
measure() {
|
|
2273
|
+
let { element: e, name: t } = this;
|
|
2274
|
+
return zn[t](window.getComputedStyle(e.current), () => e.measureViewportBox());
|
|
2275
|
+
}
|
|
2276
|
+
measureInitialState() {
|
|
2277
|
+
let { element: e, unresolvedKeyframes: t, name: n } = this;
|
|
2278
|
+
if (!e || !e.current) return;
|
|
2279
|
+
n === "height" && (this.suspendedScrollY = window.pageYOffset), this.measuredOrigin = this.measure(), t[0] = this.measuredOrigin;
|
|
2280
|
+
let r = t[t.length - 1];
|
|
2281
|
+
r !== void 0 && this.motionValue?.jump(r, !1);
|
|
2282
|
+
}
|
|
2283
|
+
measureEndState() {
|
|
2284
|
+
let { element: e, unresolvedKeyframes: t } = this;
|
|
2285
|
+
if (!e || !e.current) return;
|
|
2286
|
+
this.motionValue?.jump(this.measuredOrigin, !1);
|
|
2287
|
+
let n = t.length - 1, r = t[n];
|
|
2288
|
+
t[n] = this.measure(), r !== null && this.finalKeyframe === void 0 && (this.finalKeyframe = r), this.removedTransforms?.length && this.removedTransforms.forEach(([t, n]) => {
|
|
2289
|
+
e.getValue(t).set(n);
|
|
2290
|
+
}), this.resolveNoneKeyframes();
|
|
2291
|
+
}
|
|
2292
|
+
}, hi = [];
|
|
2293
|
+
function gi(e) {
|
|
2294
|
+
typeof e.test == "function" && e.read, _i(e), hi.unshift(e);
|
|
2295
|
+
}
|
|
2296
|
+
function _i(e) {
|
|
2297
|
+
a(hi, e);
|
|
2298
|
+
}
|
|
2299
|
+
function vi(e) {
|
|
2300
|
+
return hi.find((t) => t.test(e));
|
|
2301
|
+
}
|
|
2302
|
+
function yi(e, t, n = {}, r) {
|
|
2303
|
+
let i = [], { velocity: a, path: o } = n, s = n.reduceMotion ?? r?.shouldReduceMotion;
|
|
2304
|
+
o?.animateValues && r && (t = { ...t }, o.animateValues(e, t, n, 0, i));
|
|
2305
|
+
for (let o in t) {
|
|
2306
|
+
if (o === "transition" || o === "transitionEnd") continue;
|
|
2307
|
+
let c = t[o];
|
|
2308
|
+
if (c === void 0) continue;
|
|
2309
|
+
let l = e(o), u = l.get();
|
|
2310
|
+
if (u !== void 0 && !l.isAnimating() && !Array.isArray(c) && c === u && !a) {
|
|
2311
|
+
B.update(() => l.set(c));
|
|
2312
|
+
continue;
|
|
2313
|
+
}
|
|
2314
|
+
l.start(ti(o, l, c, s && ai.has(o) ? { type: !1 } : n, r)), l.animation && i.push(l.animation);
|
|
2315
|
+
}
|
|
2316
|
+
let { transitionEnd: c } = t;
|
|
2317
|
+
if (c) {
|
|
2318
|
+
let t = () => B.update(() => {
|
|
2319
|
+
for (let t in c) e(t).set(c[t]);
|
|
2320
|
+
});
|
|
2321
|
+
i.length ? Promise.all(i).then(t) : t();
|
|
2322
|
+
}
|
|
2323
|
+
return i;
|
|
2324
|
+
}
|
|
2325
|
+
function bi(e, t, n, r, i) {
|
|
2326
|
+
return yi((r) => {
|
|
2327
|
+
let a = e.get(t, r);
|
|
2328
|
+
if (!a) {
|
|
2329
|
+
let o;
|
|
2330
|
+
if (!i) {
|
|
2331
|
+
let i = n[r];
|
|
2332
|
+
o = xi(i) ?? e.read(t, r, i), `${r}`;
|
|
2333
|
+
}
|
|
2334
|
+
a = Z(o, { owner: i }), e(t, { [r]: a });
|
|
2335
|
+
}
|
|
2336
|
+
return a;
|
|
2337
|
+
}, n, r, i);
|
|
2338
|
+
}
|
|
2339
|
+
function xi(e) {
|
|
2340
|
+
let t = Array.isArray(e) ? e[0] : void 0;
|
|
2341
|
+
return t === null ? void 0 : t;
|
|
2342
|
+
}
|
|
2343
|
+
//#endregion
|
|
2344
|
+
//#region node_modules/.pnpm/motion-dom@14.6.0/node_modules/motion-dom/dist/es/utils/is-html-element.mjs
|
|
2345
|
+
function Si(e) {
|
|
2346
|
+
return l(e) && "offsetHeight" in e && !("ownerSVGElement" in e);
|
|
2347
|
+
}
|
|
2348
|
+
//#endregion
|
|
2349
|
+
//#region node_modules/.pnpm/motion-dom@14.6.0/node_modules/motion-dom/dist/es/utils/is-svg-element.mjs
|
|
2350
|
+
function Ci(e) {
|
|
2351
|
+
return l(e) && "ownerSVGElement" in e;
|
|
2352
|
+
}
|
|
2353
|
+
//#endregion
|
|
2354
|
+
//#region node_modules/.pnpm/motion-dom@14.6.0/node_modules/motion-dom/dist/es/scope/active.mjs
|
|
2355
|
+
var wi = {};
|
|
2356
|
+
//#endregion
|
|
2357
|
+
//#region node_modules/.pnpm/motion-dom@14.6.0/node_modules/motion-dom/dist/es/utils/resolve-elements.mjs
|
|
2358
|
+
function Ti(e, t, n) {
|
|
2359
|
+
if (e == null) return [];
|
|
2360
|
+
if (e instanceof EventTarget) return [e];
|
|
2361
|
+
if (typeof e == "string") {
|
|
2362
|
+
let r = t ? t.current : wi.current?.root || document, i = n?.[e] ?? r.querySelectorAll(e);
|
|
2363
|
+
return i ? Array.from(i) : [];
|
|
2364
|
+
}
|
|
2365
|
+
return Array.from(e).filter((e) => e != null);
|
|
2366
|
+
}
|
|
2367
|
+
//#endregion
|
|
2368
|
+
//#region node_modules/.pnpm/motion-dom@14.6.0/node_modules/motion-dom/dist/es/effects/utils/create-dom-effect.mjs
|
|
2369
|
+
function Ei(e) {
|
|
2370
|
+
let t = (t, n) => {
|
|
2371
|
+
let r = Ti(t), i = [];
|
|
2372
|
+
for (let t of r) {
|
|
2373
|
+
let r = e(t, n);
|
|
2374
|
+
i.push(r);
|
|
2375
|
+
}
|
|
2376
|
+
return () => {
|
|
2377
|
+
for (let e of i) e();
|
|
2378
|
+
};
|
|
2379
|
+
}, { test: n, read: r, get: i, flush: a, state: o } = e;
|
|
2380
|
+
return Object.assign(t, {
|
|
2381
|
+
test: n,
|
|
2382
|
+
read: r,
|
|
2383
|
+
get: i,
|
|
2384
|
+
flush: a,
|
|
2385
|
+
state: o
|
|
2386
|
+
});
|
|
2387
|
+
}
|
|
2388
|
+
//#endregion
|
|
2389
|
+
//#region node_modules/.pnpm/motion-dom@14.6.0/node_modules/motion-dom/dist/es/effects/MotionValueState.mjs
|
|
2390
|
+
var Di = class {
|
|
2391
|
+
constructor(e = B.render) {
|
|
2392
|
+
this.step = e, this.values = /* @__PURE__ */ new Map(), this.pending = [], this.numPending = 0, this.flush = () => {
|
|
2393
|
+
let { pending: e, numPending: t } = this;
|
|
2394
|
+
this.numPending = 0;
|
|
2395
|
+
for (let n = 0; n < t; n++) e[n]();
|
|
2396
|
+
};
|
|
2397
|
+
}
|
|
2398
|
+
set(e, t, n, r) {
|
|
2399
|
+
if (this.values.get(e)?.onRemove(), r) for (let e of this.values.values()) e.value === r && (n = e.render);
|
|
2400
|
+
let i = () => n && this.schedule(n);
|
|
2401
|
+
t.get() !== void 0 && i();
|
|
2402
|
+
let a = t.on("change", i), o = () => {
|
|
2403
|
+
a(), n && !r && this.cancel(n), this.values.get(e)?.onRemove === o && this.values.delete(e);
|
|
2404
|
+
};
|
|
2405
|
+
return this.values.set(e, {
|
|
2406
|
+
value: t,
|
|
2407
|
+
render: r ? void 0 : n,
|
|
2408
|
+
onRemove: o
|
|
2409
|
+
}), o;
|
|
2410
|
+
}
|
|
2411
|
+
get(e) {
|
|
2412
|
+
return this.values.get(e)?.value;
|
|
2413
|
+
}
|
|
2414
|
+
release() {
|
|
2415
|
+
let e = /* @__PURE__ */ new Map();
|
|
2416
|
+
return this.values.forEach((t, n) => {
|
|
2417
|
+
e.set(n, t.value), t.onRemove();
|
|
2418
|
+
}), this.transformKeys = this.transformValues = void 0, e;
|
|
2419
|
+
}
|
|
2420
|
+
schedule(e) {
|
|
2421
|
+
let { pending: t, numPending: n } = this;
|
|
2422
|
+
for (let r = 0; r < n; r++) if (t[r] === e) return;
|
|
2423
|
+
n || this.step(this.flush), t[this.numPending++] = e;
|
|
2424
|
+
}
|
|
2425
|
+
cancel(e) {
|
|
2426
|
+
let { pending: t } = this;
|
|
2427
|
+
for (let n = 0; n < this.numPending; n++) if (t[n] === e) {
|
|
2428
|
+
t[n] = t[--this.numPending];
|
|
2429
|
+
return;
|
|
2430
|
+
}
|
|
2431
|
+
}
|
|
2432
|
+
};
|
|
2433
|
+
//#endregion
|
|
2434
|
+
//#region node_modules/.pnpm/motion-dom@14.6.0/node_modules/motion-dom/dist/es/effects/utils/create-effect.mjs
|
|
2435
|
+
function Oi(e, { step: t, ...n } = {}) {
|
|
2436
|
+
let r = /* @__PURE__ */ new WeakMap();
|
|
2437
|
+
return Object.assign((n, i) => {
|
|
2438
|
+
let a = r.get(n) ?? new Di(t);
|
|
2439
|
+
r.set(n, a);
|
|
2440
|
+
let o = [];
|
|
2441
|
+
for (let t in i) {
|
|
2442
|
+
let r = i[t], s = e(n, a, t, r);
|
|
2443
|
+
o.push(s);
|
|
2444
|
+
}
|
|
2445
|
+
return () => {
|
|
2446
|
+
for (let e of o) e();
|
|
2447
|
+
};
|
|
2448
|
+
}, n, {
|
|
2449
|
+
get: (e, t) => r.get(e)?.get(t),
|
|
2450
|
+
flush: (e) => r.get(e)?.flush(),
|
|
2451
|
+
state: (e) => r.get(e)
|
|
2452
|
+
});
|
|
2453
|
+
}
|
|
2454
|
+
//#endregion
|
|
2455
|
+
//#region node_modules/.pnpm/motion-dom@14.6.0/node_modules/motion-dom/dist/es/effects/style/transform.mjs
|
|
2456
|
+
var ki = {};
|
|
2457
|
+
function Ai(e) {
|
|
2458
|
+
let t = "", { transformKeys: n = [], transformValues: r = {} } = e;
|
|
2459
|
+
for (let e = 0; e < n.length; e++) {
|
|
2460
|
+
let i = n[e], a = r[i].getCurrent();
|
|
2461
|
+
a !== void 0 && (typeof a == "number" ? a : parseFloat(a)) !== +!!i.startsWith("scale") && (t += (t && " ") + (ki[i] || (ki[i] = (br[i] || i) + "(")) + Y(a, mn[i]) + ")");
|
|
2462
|
+
}
|
|
2463
|
+
let i = e.get("pathRotation")?.get();
|
|
2464
|
+
return i && (t += (t && " ") + "rotate(" + Y(i, mn.pathRotation) + ")"), t || "none";
|
|
2465
|
+
}
|
|
2466
|
+
//#endregion
|
|
2467
|
+
//#region node_modules/.pnpm/motion-dom@14.6.0/node_modules/motion-dom/dist/es/effects/style/index.mjs
|
|
2468
|
+
var ji = /* @__PURE__ */ new Set([
|
|
2469
|
+
"originX",
|
|
2470
|
+
"originY",
|
|
2471
|
+
"originZ"
|
|
2472
|
+
]), Mi = (e, t) => Y(e.get(t)?.get(), U[t]), Ni = (e, t, n, r) => {
|
|
2473
|
+
let i, a;
|
|
2474
|
+
if (K.has(n)) {
|
|
2475
|
+
if (n !== "pathRotation") {
|
|
2476
|
+
let e = t.transformKeys ??= [];
|
|
2477
|
+
(t.transformValues ??= {})[n] = r, e.includes(n) || (e.push(n), e.sort((e, t) => G.indexOf(e) - G.indexOf(t)));
|
|
2478
|
+
}
|
|
2479
|
+
t.get("transform") || (!Si(e) && !t.get("transformBox") && Ni(e, t, "transformBox", new Gr("fill-box")), t.set("transform", new Gr("none"), () => {
|
|
2480
|
+
Cr.get(e)?.check(), e.style.transform = Ai(t);
|
|
2481
|
+
})), a = t.get("transform");
|
|
2482
|
+
} else ji.has(n) ? (t.get("transformOrigin") || t.set("transformOrigin", new Gr(""), () => {
|
|
2483
|
+
let n = Mi(t, "originX") ?? "50%", r = Mi(t, "originY") ?? "50%", i = Mi(t, "originZ") ?? 0;
|
|
2484
|
+
e.style.transformOrigin = `${n} ${r} ${i}`;
|
|
2485
|
+
}), a = t.get("transformOrigin")) : i = Jn(n) ? () => {
|
|
2486
|
+
e.style.setProperty(n, r.getCurrent());
|
|
2487
|
+
} : () => {
|
|
2488
|
+
e.style[n] = Y(r.getCurrent(), U[n]);
|
|
2489
|
+
};
|
|
2490
|
+
return t.set(n, r, i, a);
|
|
2491
|
+
}, Pi = (e) => Si(e) || Ci(e), Fi = (e, t) => {
|
|
2492
|
+
if (K.has(t)) return kn(e, t);
|
|
2493
|
+
let n = getComputedStyle(e), r = Jn(t) ? n.getPropertyValue(t) : n[t];
|
|
2494
|
+
return typeof r == "string" && r.trim() || 0;
|
|
2495
|
+
}, Ii = /*@__PURE__*/ Oi(Ni, {
|
|
2496
|
+
test: Pi,
|
|
2497
|
+
read: Fi
|
|
2498
|
+
}), Li = /*@__PURE__*/ Ei(Ii);
|
|
2499
|
+
//#endregion
|
|
2500
|
+
//#region node_modules/.pnpm/motion-dom@14.6.0/node_modules/motion-dom/dist/es/render/dom/utils/camel-to-dash.mjs
|
|
2501
|
+
function Ri(e) {
|
|
2502
|
+
return e.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`);
|
|
2503
|
+
}
|
|
2504
|
+
//#endregion
|
|
2505
|
+
//#region node_modules/.pnpm/motion-dom@14.6.0/node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.mjs
|
|
2506
|
+
var zi = [
|
|
2507
|
+
"transform",
|
|
2508
|
+
"opacity",
|
|
2509
|
+
"clipPath",
|
|
2510
|
+
"filter",
|
|
2511
|
+
"offsetDistance",
|
|
2512
|
+
"offsetPath",
|
|
2513
|
+
"offsetRotate",
|
|
2514
|
+
"offsetAnchor"
|
|
2515
|
+
];
|
|
2516
|
+
//#endregion
|
|
2517
|
+
//#region node_modules/.pnpm/motion-dom@14.6.0/node_modules/motion-dom/dist/es/effects/attr/index.mjs
|
|
2518
|
+
function Bi(e, t) {
|
|
2519
|
+
if (!(t in e)) return !1;
|
|
2520
|
+
let n = Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e), t) || Object.getOwnPropertyDescriptor(e, t);
|
|
2521
|
+
return n && typeof n.set == "function";
|
|
2522
|
+
}
|
|
2523
|
+
var Vi = (e, t, n, r, i = n) => {
|
|
2524
|
+
let a = Bi(e, i);
|
|
2525
|
+
!a && (i.startsWith("data") || i.startsWith("aria")) && (i = Ri(i));
|
|
2526
|
+
let o = U[n] || U[i], s = a ? () => {
|
|
2527
|
+
e[i] = Y(r.get(), U[n]);
|
|
2528
|
+
} : () => {
|
|
2529
|
+
let t = Y(r.get(), o);
|
|
2530
|
+
t == null ? e.removeAttribute(i) : e.setAttribute(i, String(t));
|
|
2531
|
+
};
|
|
2532
|
+
return t.set(n, r, s);
|
|
2533
|
+
};
|
|
2534
|
+
//#endregion
|
|
2535
|
+
//#region node_modules/.pnpm/motion-dom@14.6.0/node_modules/motion-dom/dist/es/effects/svg/index.mjs
|
|
2536
|
+
function Hi(e, t, n, r) {
|
|
2537
|
+
return B.render(() => e.setAttribute("pathLength", "1")), n === "pathOffset" ? t.set(n, r, () => {
|
|
2538
|
+
let t = r.get();
|
|
2539
|
+
e.setAttribute("stroke-dashoffset", `${-t}`);
|
|
2540
|
+
}) : (t.get("stroke-dasharray") || t.set("stroke-dasharray", new Gr("1 1"), () => {
|
|
2541
|
+
let n = t.get("pathLength")?.get() ?? 1, r = t.get("pathSpacing")?.get();
|
|
2542
|
+
e.setAttribute("stroke-dasharray", `${n} ${r ?? 1 - Number(n)}`);
|
|
2543
|
+
}), t.set(n, r, void 0, t.get("stroke-dasharray")));
|
|
2544
|
+
}
|
|
2545
|
+
var Ui = /*@__PURE__*/ Oi((e, t, n, r) => n.startsWith("path") && !K.has(n) ? Hi(e, t, n, r) : n.startsWith("attr") ? Vi(e, t, n, r, Wi(n)) : (K.has(n) || ji.has(n) || Jn(n) || n in e.style ? Ni : Vi)(e, t, n, r), {
|
|
2546
|
+
test: Ci,
|
|
2547
|
+
read: (e, t) => K.has(t) ? U[t]?.default || 0 : Jn(t) || zi.includes(t) ? Fi(e, t) || e.getAttribute(Ri(t)) || 0 : (t = Wi(t), e.getAttribute(Ri(t)) ?? e.getAttribute(t) ?? void 0)
|
|
2548
|
+
});
|
|
2549
|
+
function Wi(e) {
|
|
2550
|
+
return e.replace(/^attr([A-Z])/, (e, t) => t.toLowerCase());
|
|
2551
|
+
}
|
|
2552
|
+
//#endregion
|
|
2553
|
+
//#region node_modules/.pnpm/motion-dom@14.6.0/node_modules/motion-dom/dist/es/projection/geometry/conversion.mjs
|
|
2554
|
+
function Gi({ top: e, left: t, right: n, bottom: r }) {
|
|
2555
|
+
return {
|
|
2556
|
+
x: {
|
|
2557
|
+
min: t,
|
|
2558
|
+
max: n
|
|
2559
|
+
},
|
|
2560
|
+
y: {
|
|
2561
|
+
min: e,
|
|
2562
|
+
max: r
|
|
2563
|
+
}
|
|
2564
|
+
};
|
|
2565
|
+
}
|
|
2566
|
+
function Ki(e, t) {
|
|
2567
|
+
if (!t) return e;
|
|
2568
|
+
let n = t({
|
|
2569
|
+
x: e.left,
|
|
2570
|
+
y: e.top
|
|
2571
|
+
}), r = t({
|
|
2572
|
+
x: e.right,
|
|
2573
|
+
y: e.bottom
|
|
2574
|
+
});
|
|
2575
|
+
return {
|
|
2576
|
+
top: n.y,
|
|
2577
|
+
left: n.x,
|
|
2578
|
+
bottom: r.y,
|
|
2579
|
+
right: r.x
|
|
2580
|
+
};
|
|
2581
|
+
}
|
|
2582
|
+
//#endregion
|
|
2583
|
+
//#region node_modules/.pnpm/motion-dom@14.6.0/node_modules/motion-dom/dist/es/projection/utils/measure.mjs
|
|
2584
|
+
function qi(e, t) {
|
|
2585
|
+
return Gi(Ki(e.getBoundingClientRect(), t));
|
|
2586
|
+
}
|
|
2587
|
+
//#endregion
|
|
2588
|
+
//#region node_modules/.pnpm/motion-dom@14.6.0/node_modules/motion-dom/dist/es/animation/animate/element.mjs
|
|
2589
|
+
var Ji = {}, Yi = (e) => Ci(e) ? Ui : Ii, Xi = class {
|
|
2590
|
+
constructor(e, t) {
|
|
2591
|
+
this.effect = e, this.current = t, this.KeyframeResolver = mi;
|
|
2592
|
+
}
|
|
2593
|
+
getValue(e) {
|
|
2594
|
+
return this.effect.get(this.current, e);
|
|
2595
|
+
}
|
|
2596
|
+
readValue(e, t) {
|
|
2597
|
+
return this.effect.read(this.current, e, t);
|
|
2598
|
+
}
|
|
2599
|
+
render() {
|
|
2600
|
+
this.effect.flush(this.current);
|
|
2601
|
+
}
|
|
2602
|
+
measureViewportBox() {
|
|
2603
|
+
return qi(this.current);
|
|
2604
|
+
}
|
|
2605
|
+
getProps() {
|
|
2606
|
+
return Ji;
|
|
2607
|
+
}
|
|
2608
|
+
};
|
|
2609
|
+
function Zi(e, t, n, r) {
|
|
2610
|
+
if (wi.current?.track(e), r) return yi((e) => r.getValue(e, null), t, n, r);
|
|
2611
|
+
let i = Yi(e);
|
|
2612
|
+
return bi(i, e, t, n, new Xi(i, e));
|
|
2613
|
+
}
|
|
2614
|
+
//#endregion
|
|
2615
|
+
//#region node_modules/.pnpm/motion-dom@14.6.0/node_modules/motion-dom/dist/es/effects/prop/index.mjs
|
|
2616
|
+
var Qi = /*@__PURE__*/ Oi((e, t, n, r) => t.set(n, r, () => {
|
|
2617
|
+
e[n] = r.get();
|
|
2618
|
+
}), {
|
|
2619
|
+
test: (e) => l(e),
|
|
2620
|
+
read: (e, t) => {
|
|
2621
|
+
let n = e[t];
|
|
2622
|
+
return typeof n == "string" || typeof n == "number" ? n : void 0;
|
|
2623
|
+
}
|
|
2624
|
+
});
|
|
2625
|
+
//#endregion
|
|
2626
|
+
//#region node_modules/.pnpm/motion-dom@14.6.0/node_modules/motion-dom/dist/es/animation/animate/single-value.mjs
|
|
2627
|
+
function $i(e, t, n) {
|
|
2628
|
+
let r = oi(e) ? e : Z(e);
|
|
2629
|
+
return r.start(ti("", r, t, n)), r.animation;
|
|
2630
|
+
}
|
|
2631
|
+
//#endregion
|
|
2632
|
+
//#region node_modules/.pnpm/motion-dom@14.6.0/node_modules/motion-dom/dist/es/render/store.mjs
|
|
2633
|
+
var ea = /* @__PURE__ */ new WeakMap();
|
|
2634
|
+
//#endregion
|
|
2635
|
+
//#region node_modules/.pnpm/framer-motion@14.6.0_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/framer-motion/dist/es/animation/utils/is-dom-keyframes.mjs
|
|
2636
|
+
function ta(e) {
|
|
2637
|
+
return typeof e == "object" && !Array.isArray(e);
|
|
2638
|
+
}
|
|
2639
|
+
//#endregion
|
|
2640
|
+
//#region node_modules/.pnpm/framer-motion@14.6.0_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/framer-motion/dist/es/animation/animate/resolve-subjects.mjs
|
|
2641
|
+
function na(e, t, n, r) {
|
|
2642
|
+
return e == null ? [] : typeof e == "string" && ta(t) ? Ti(e, n, r) : e instanceof NodeList ? Array.from(e) : Array.isArray(e) ? e.filter((e) => e != null) : [e];
|
|
2643
|
+
}
|
|
2644
|
+
//#endregion
|
|
2645
|
+
//#region node_modules/.pnpm/framer-motion@14.6.0_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/framer-motion/dist/es/animation/sequence/utils/calc-repeat-duration.mjs
|
|
2646
|
+
function ra(e, t, n) {
|
|
2647
|
+
return e * (t + 1) + n * t;
|
|
2648
|
+
}
|
|
2649
|
+
//#endregion
|
|
2650
|
+
//#region node_modules/.pnpm/framer-motion@14.6.0_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/framer-motion/dist/es/animation/sequence/utils/calc-time.mjs
|
|
2651
|
+
function ia(e, t, n, r) {
|
|
2652
|
+
return typeof t == "number" ? t : t.startsWith("-") || t.startsWith("+") ? Math.max(0, e + parseFloat(t)) : t === "<" ? n : t.startsWith("<") ? Math.max(0, n + parseFloat(t.slice(1))) : r.get(t) ?? e;
|
|
2653
|
+
}
|
|
2654
|
+
//#endregion
|
|
2655
|
+
//#region node_modules/.pnpm/framer-motion@14.6.0_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/framer-motion/dist/es/animation/sequence/utils/edit.mjs
|
|
2656
|
+
function aa(e, t, n) {
|
|
2657
|
+
for (let r = 0; r < e.length; r++) {
|
|
2658
|
+
let i = e[r];
|
|
2659
|
+
i.at > t && i.at < n && (a(e, i), r--);
|
|
2660
|
+
}
|
|
2661
|
+
}
|
|
2662
|
+
function oa(e, t, n, r, i, a) {
|
|
2663
|
+
aa(e, i, a);
|
|
2664
|
+
for (let o = 0; o < t.length; o++) e.push({
|
|
2665
|
+
value: t[o],
|
|
2666
|
+
at: z(i, a, r[o]),
|
|
2667
|
+
easing: /* @__PURE__ */ oe(n, o)
|
|
2668
|
+
});
|
|
2669
|
+
}
|
|
2670
|
+
//#endregion
|
|
2671
|
+
//#region node_modules/.pnpm/framer-motion@14.6.0_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/framer-motion/dist/es/animation/sequence/utils/normalize-times.mjs
|
|
2672
|
+
function sa(e, t, n = 0) {
|
|
2673
|
+
let r = t + 1 + t * n;
|
|
2674
|
+
for (let t = 0; t < e.length; t++) e[t] = e[t] / r;
|
|
2675
|
+
}
|
|
2676
|
+
//#endregion
|
|
2677
|
+
//#region node_modules/.pnpm/framer-motion@14.6.0_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/framer-motion/dist/es/animation/sequence/utils/sort.mjs
|
|
2678
|
+
function ca(e, t) {
|
|
2679
|
+
return e.at === t.at ? e.value === null ? 1 : t.value === null ? -1 : 0 : e.at - t.at;
|
|
2680
|
+
}
|
|
2681
|
+
//#endregion
|
|
2682
|
+
//#region node_modules/.pnpm/framer-motion@14.6.0_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/framer-motion/dist/es/animation/sequence/create.mjs
|
|
2683
|
+
var la = "easeInOut", ua = 20;
|
|
2684
|
+
function da(e, { defaultTransition: t = {}, ...n } = {}, r, i) {
|
|
2685
|
+
let a = t.duration || .3, o = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map(), c = {}, l = /* @__PURE__ */ new Map(), u = 0, d = 0, f = 0;
|
|
2686
|
+
for (let n = 0; n < e.length; n++) {
|
|
2687
|
+
let o = e[n];
|
|
2688
|
+
if (typeof o == "string") {
|
|
2689
|
+
l.set(o, d);
|
|
2690
|
+
continue;
|
|
2691
|
+
}
|
|
2692
|
+
if (!Array.isArray(o)) {
|
|
2693
|
+
l.set(o.name, ia(d, o.at, u, l));
|
|
2694
|
+
continue;
|
|
2695
|
+
}
|
|
2696
|
+
let [p, m, h = {}] = o;
|
|
2697
|
+
h.at !== void 0 && (d = ia(d, h.at, u, l));
|
|
2698
|
+
let _ = 0, v = (e, n, r, o = 0, s = 0) => {
|
|
2699
|
+
let c = ma(e), { delay: l = 0, times: u = Ut(c), type: p = t.type || "keyframes", repeat: m, repeatType: h, repeatDelay: v = 0, ...y } = n, { ease: b = t.ease || "easeOut", duration: x } = n, S = typeof l == "function" ? l(o, s) : l, w = c.length, T = rr(p) ? p : i?.[p || "keyframes"];
|
|
2700
|
+
if (w <= 2 && T) {
|
|
2701
|
+
let e = 100;
|
|
2702
|
+
if (w === 2 && _a(c)) {
|
|
2703
|
+
let t = c[1] - c[0];
|
|
2704
|
+
e = Math.abs(t);
|
|
2705
|
+
}
|
|
2706
|
+
let n = {
|
|
2707
|
+
...t,
|
|
2708
|
+
...y
|
|
2709
|
+
};
|
|
2710
|
+
x !== void 0 && (n.duration = /* @__PURE__ */ g(x));
|
|
2711
|
+
let r = Et(n, e, T);
|
|
2712
|
+
b = r.ease, x = r.duration;
|
|
2713
|
+
}
|
|
2714
|
+
x ??= a;
|
|
2715
|
+
let ee = d + S;
|
|
2716
|
+
u.length === 1 && u[0] === 0 && (u[1] = 1);
|
|
2717
|
+
let E = u.length - c.length;
|
|
2718
|
+
if (E > 0 && Ht(u, E), c.length === 1 && c.unshift(null), m && `${m}${ua}`, m && m < ua) {
|
|
2719
|
+
let e = x > 0 ? v / x : 0;
|
|
2720
|
+
x = ra(x, m, v);
|
|
2721
|
+
let t = [...c], n = [...u];
|
|
2722
|
+
b = Array.isArray(b) ? [...b] : [b];
|
|
2723
|
+
let r = [...b], i = h === "reverse" || h === "mirror", a = t, o = r;
|
|
2724
|
+
i && (a = [...t].reverse(), h === "reverse" && (o = [...r].reverse().map((e) => typeof e == "function" ? /* @__PURE__ */ C(e) : e)));
|
|
2725
|
+
for (let s = 0; s < m; s++) {
|
|
2726
|
+
let l = i && s % 2 == 0, d = l ? a : t, f = l ? o : r, p = (s + 1) * (1 + e);
|
|
2727
|
+
e > 0 && (c.push(c[c.length - 1]), u.push(p), b.push("linear")), c.push(...d);
|
|
2728
|
+
for (let e = 0; e < d.length; e++) u.push(n[e] + p), b.push(e === 0 ? "linear" : /* @__PURE__ */ oe(f, e - 1));
|
|
2729
|
+
}
|
|
2730
|
+
sa(u, m, e);
|
|
2731
|
+
}
|
|
2732
|
+
let D = ee + x;
|
|
2733
|
+
oa(r, c, b, u, ee, D), _ = Math.max(S + x, _), f = Math.max(D, f);
|
|
2734
|
+
};
|
|
2735
|
+
if (oi(p)) {
|
|
2736
|
+
let e = fa(p, s);
|
|
2737
|
+
v(m, h, pa("default", e));
|
|
2738
|
+
} else {
|
|
2739
|
+
let e = na(p, m, r, c), t = e.length;
|
|
2740
|
+
for (let n = 0; n < t; n++) {
|
|
2741
|
+
m = m, h = h;
|
|
2742
|
+
let r = e[n], i = fa(r, s);
|
|
2743
|
+
for (let e in m) v(m[e], ha(h, e), pa(e, i), n, t);
|
|
2744
|
+
}
|
|
2745
|
+
}
|
|
2746
|
+
u = d, d += _;
|
|
2747
|
+
}
|
|
2748
|
+
return s.forEach((e, r) => {
|
|
2749
|
+
for (let i in e) {
|
|
2750
|
+
let a = e[i];
|
|
2751
|
+
a.sort(ca);
|
|
2752
|
+
let s = [], c = [], l = [];
|
|
2753
|
+
for (let e = 0; e < a.length; e++) {
|
|
2754
|
+
let { at: t, value: n, easing: r } = a[e];
|
|
2755
|
+
s.push(n), c.push(/* @__PURE__ */ m(0, f, t)), l.push(r || "easeOut");
|
|
2756
|
+
}
|
|
2757
|
+
c[0] !== 0 && (c.unshift(0), s.unshift(s[0]), l.unshift(la)), c[c.length - 1] !== 1 && (c.push(1), s.push(null)), o.has(r) || o.set(r, {
|
|
2758
|
+
keyframes: {},
|
|
2759
|
+
transition: {}
|
|
2760
|
+
});
|
|
2761
|
+
let u = o.get(r);
|
|
2762
|
+
u.keyframes[i] = s;
|
|
2763
|
+
let { type: d, ...p } = t;
|
|
2764
|
+
u.transition[i] = {
|
|
2765
|
+
...p,
|
|
2766
|
+
duration: f,
|
|
2767
|
+
ease: l,
|
|
2768
|
+
times: c,
|
|
2769
|
+
...n
|
|
2770
|
+
};
|
|
2771
|
+
}
|
|
2772
|
+
}), o;
|
|
2773
|
+
}
|
|
2774
|
+
function fa(e, t) {
|
|
2775
|
+
return !t.has(e) && t.set(e, {}), t.get(e);
|
|
2776
|
+
}
|
|
2777
|
+
function pa(e, t) {
|
|
2778
|
+
return t[e] || (t[e] = []), t[e];
|
|
2779
|
+
}
|
|
2780
|
+
function ma(e) {
|
|
2781
|
+
return Array.isArray(e) ? e : [e];
|
|
2782
|
+
}
|
|
2783
|
+
function ha(e, t) {
|
|
2784
|
+
return e && e[t] ? {
|
|
2785
|
+
...e,
|
|
2786
|
+
...e[t]
|
|
2787
|
+
} : { ...e };
|
|
2788
|
+
}
|
|
2789
|
+
var ga = (e) => typeof e == "number", _a = (e) => e.every(ga);
|
|
2790
|
+
//#endregion
|
|
2791
|
+
//#region node_modules/.pnpm/framer-motion@14.6.0_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/framer-motion/dist/es/animation/animate/subject.mjs
|
|
2792
|
+
function va(e, t) {
|
|
2793
|
+
return oi(e) || typeof e == "number" || typeof e == "string" && !ta(t);
|
|
2794
|
+
}
|
|
2795
|
+
function ya(e, t, n, r) {
|
|
2796
|
+
let i = [];
|
|
2797
|
+
if (va(e, t)) i.push($i(e, ta(t) && t.default || t, n && (n.default || n)));
|
|
2798
|
+
else {
|
|
2799
|
+
if (e == null) return i;
|
|
2800
|
+
let a = na(e, t, r), o = a.length;
|
|
2801
|
+
for (let e = 0; e < o; e++) {
|
|
2802
|
+
let r = a[e], s = { ...n };
|
|
2803
|
+
"delay" in s && typeof s.delay == "function" && (s.delay = s.delay(e, o)), r instanceof Element ? i.push(...Zi(r, t, s, ea.get(r))) : i.push(...bi(vi(r) ?? Qi, r, t, s));
|
|
2804
|
+
}
|
|
2805
|
+
}
|
|
2806
|
+
return i;
|
|
2807
|
+
}
|
|
2808
|
+
//#endregion
|
|
2809
|
+
//#region node_modules/.pnpm/framer-motion@14.6.0_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/framer-motion/dist/es/animation/animate/sequence.mjs
|
|
2810
|
+
function ba(e, t, n) {
|
|
2811
|
+
let r = [];
|
|
2812
|
+
return da(e.map((e) => {
|
|
2813
|
+
if (Array.isArray(e) && typeof e[0] == "function") {
|
|
2814
|
+
let t = e[0], n = Z(0);
|
|
2815
|
+
return n.on("change", t), e.length === 1 ? [n, [0, 1]] : e.length === 2 ? [
|
|
2816
|
+
n,
|
|
2817
|
+
[0, 1],
|
|
2818
|
+
e[1]
|
|
2819
|
+
] : [
|
|
2820
|
+
n,
|
|
2821
|
+
e[1],
|
|
2822
|
+
e[2]
|
|
2823
|
+
];
|
|
2824
|
+
}
|
|
2825
|
+
return e;
|
|
2826
|
+
}), t, n, { spring: Rt }).forEach(({ keyframes: e, transition: t }, n) => {
|
|
2827
|
+
r.push(...ya(n, e, t));
|
|
2828
|
+
}), r;
|
|
2829
|
+
}
|
|
2830
|
+
//#endregion
|
|
2831
|
+
//#region node_modules/.pnpm/framer-motion@14.6.0_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/framer-motion/dist/es/animation/animate/index.mjs
|
|
2832
|
+
function xa(e) {
|
|
2833
|
+
return Array.isArray(e) && e.some(Array.isArray);
|
|
2834
|
+
}
|
|
2835
|
+
function Sa(e = {}) {
|
|
2836
|
+
let { scope: t, reduceMotion: n, skipAnimations: r } = e;
|
|
2837
|
+
function i(e, i, o) {
|
|
2838
|
+
let s = [], c, l = wi.current, u = l?.transition, d = {};
|
|
2839
|
+
if (n !== void 0 && (d.reduceMotion = n), r !== void 0 && (d.skipAnimations = r), xa(e)) {
|
|
2840
|
+
let { onComplete: n, ...r } = i || {};
|
|
2841
|
+
typeof n == "function" && (c = n), u && (r.defaultTransition = {
|
|
2842
|
+
...u,
|
|
2843
|
+
...r.defaultTransition
|
|
2844
|
+
}), s = ba(e, {
|
|
2845
|
+
...d,
|
|
2846
|
+
...r
|
|
2847
|
+
}, t);
|
|
2848
|
+
} else {
|
|
2849
|
+
let { onComplete: n, ...r } = o || {};
|
|
2850
|
+
typeof n == "function" && (c = n), s = ya(e, i, {
|
|
2851
|
+
...d,
|
|
2852
|
+
...u,
|
|
2853
|
+
...r
|
|
2854
|
+
}, t);
|
|
2855
|
+
}
|
|
2856
|
+
let f = new Vr(s);
|
|
2857
|
+
return c && f.finished.then(c), l && f.finished.then(l.add(() => f.stop())), t && (t.animations.push(f), f.finished.then(() => {
|
|
2858
|
+
a(t.animations, f);
|
|
2859
|
+
})), f;
|
|
2860
|
+
}
|
|
2861
|
+
return i;
|
|
2862
|
+
}
|
|
2863
|
+
var Ca = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Sa(), {
|
|
2864
|
+
addEffect: gi,
|
|
2865
|
+
removeEffect: _i
|
|
2866
|
+
}), Q = /* @__PURE__ */ e(t(), 1), wa = n(), Ta = Q.forwardRef(({ kind: e, side: t = "right", asChild: n, "data-state": i, ...a }, o) => {
|
|
2867
|
+
let s = Q.useRef(null), [c, l] = Q.useState(!1), u = Q.useRef(null), d = Q.useRef([]), f = Q.useCallback((e) => {
|
|
2868
|
+
if (s.current = e, typeof o == "function") {
|
|
2869
|
+
let t = o(e);
|
|
2870
|
+
if (typeof t == "function") return () => {
|
|
2871
|
+
s.current = null, t();
|
|
2872
|
+
};
|
|
2873
|
+
} else o && (o.current = e);
|
|
2874
|
+
}, [o]);
|
|
2875
|
+
return Q.useLayoutEffect(() => {
|
|
2876
|
+
let n = s.current;
|
|
2877
|
+
if (!n) return;
|
|
2878
|
+
let r = typeof matchMedia == "function" ? matchMedia("(prefers-reduced-motion: reduce)") : void 0, a, o, c = () => {
|
|
2879
|
+
clearTimeout(o), l(!1);
|
|
2880
|
+
let s = i === "closed", c = n.getBoundingClientRect(), f = {
|
|
2881
|
+
opacity: +(e === "sheet"),
|
|
2882
|
+
scale: e === "dialog" || e === "tooltip" || e === "popover" ? .98 : 1,
|
|
2883
|
+
x: e === "sheet" ? t === "left" ? -c.width : t === "right" ? c.width : 0 : 0,
|
|
2884
|
+
y: e === "sheet" ? t === "top" ? -c.height : t === "bottom" ? c.height : 0 : 0
|
|
2885
|
+
}, p = s ? f : {
|
|
2886
|
+
opacity: 1,
|
|
2887
|
+
scale: 1,
|
|
2888
|
+
x: 0,
|
|
2889
|
+
y: 0
|
|
2890
|
+
}, m = getComputedStyle(n), h = /^(\d+(?:\.\d+)?)(ms|s)$/.exec(m.animationDuration.split(",")[0].trim()), g = h ? Number(h[1]) / (h[2] === "ms" ? 1e3 : 1) : 0, _ = (e) => {
|
|
2891
|
+
n.style.opacity = String(e.opacity), n.style.transform = `translateX(${e.x}px) translateY(${e.y}px) scale(${e.scale})`;
|
|
2892
|
+
};
|
|
2893
|
+
if (s && (r?.matches || g <= 0 || m.animationName === "none" ? l(!0) : o = setTimeout(() => l(!0), g * 1e3)), r?.matches || g <= 0 || m.animationName === "none") {
|
|
2894
|
+
if (d.current.forEach((e) => e.stop()), u.current) for (let e of [
|
|
2895
|
+
"opacity",
|
|
2896
|
+
"scale",
|
|
2897
|
+
"x",
|
|
2898
|
+
"y"
|
|
2899
|
+
]) u.current[e].jump(p[e]);
|
|
2900
|
+
_(p);
|
|
2901
|
+
return;
|
|
2902
|
+
}
|
|
2903
|
+
u.current ||= (_(f), {
|
|
2904
|
+
opacity: Z(f.opacity),
|
|
2905
|
+
scale: Z(f.scale),
|
|
2906
|
+
x: Z(f.x),
|
|
2907
|
+
y: Z(f.y)
|
|
2908
|
+
}), a ??= Li(n, u.current);
|
|
2909
|
+
let v = 12 / g;
|
|
2910
|
+
d.current = [
|
|
2911
|
+
"opacity",
|
|
2912
|
+
"scale",
|
|
2913
|
+
"x",
|
|
2914
|
+
"y"
|
|
2915
|
+
].map((e) => Ca(u.current[e], p[e], {
|
|
2916
|
+
type: "spring",
|
|
2917
|
+
stiffness: v * v,
|
|
2918
|
+
damping: 2 * v,
|
|
2919
|
+
restDelta: .001,
|
|
2920
|
+
restSpeed: .01
|
|
2921
|
+
}));
|
|
2922
|
+
};
|
|
2923
|
+
return c(), r?.addEventListener("change", c), () => {
|
|
2924
|
+
clearTimeout(o), r?.removeEventListener("change", c), a?.();
|
|
2925
|
+
};
|
|
2926
|
+
}, [
|
|
2927
|
+
i,
|
|
2928
|
+
e,
|
|
2929
|
+
t,
|
|
2930
|
+
a.style?.animation
|
|
2931
|
+
]), Q.useEffect(() => () => d.current.forEach((e) => e.stop()), []), i === "closed" && c ? null : /* @__PURE__ */ (0, wa.jsx)(n ? r : "div", {
|
|
2932
|
+
...a,
|
|
2933
|
+
"data-state": i,
|
|
2934
|
+
ref: f
|
|
2935
|
+
});
|
|
2936
|
+
});
|
|
2937
|
+
Ta.displayName = "SurfaceMotion";
|
|
2938
|
+
//#endregion
|
|
2939
|
+
//#region node_modules/.pnpm/@radix-ui+react-focus-guards@1.2.0_@types+react@19.3.0_react@19.3.0/node_modules/@radix-ui/react-focus-guards/dist/index.mjs
|
|
2940
|
+
var Ea = Object.defineProperty, Da = (e, t) => Ea(e, "name", {
|
|
2941
|
+
value: t,
|
|
2942
|
+
configurable: !0
|
|
2943
|
+
}), Oa = 0, ka = null;
|
|
2944
|
+
function Aa(e) {
|
|
2945
|
+
return ja(), e.children;
|
|
2946
|
+
}
|
|
2947
|
+
Da(Aa, "FocusGuards");
|
|
2948
|
+
function ja() {
|
|
2949
|
+
Q.useEffect(() => {
|
|
2950
|
+
ka ||= {
|
|
2951
|
+
start: Ma(),
|
|
2952
|
+
end: Ma()
|
|
2953
|
+
};
|
|
2954
|
+
let { start: e, end: t } = ka;
|
|
2955
|
+
return document.body.firstElementChild !== e && document.body.insertAdjacentElement("afterbegin", e), document.body.lastElementChild !== t && document.body.insertAdjacentElement("beforeend", t), Oa++, () => {
|
|
2956
|
+
Oa === 1 && (ka?.start.remove(), ka?.end.remove(), ka = null), Oa = Math.max(0, Oa - 1);
|
|
2957
|
+
};
|
|
2958
|
+
}, []);
|
|
2959
|
+
}
|
|
2960
|
+
Da(ja, "useFocusGuards");
|
|
2961
|
+
function Ma() {
|
|
2962
|
+
let e = document.createElement("span");
|
|
2963
|
+
return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
|
|
2964
|
+
}
|
|
2965
|
+
Da(Ma, "createFocusGuard");
|
|
2966
|
+
//#endregion
|
|
2967
|
+
//#region node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.mjs
|
|
2968
|
+
var $ = function() {
|
|
2969
|
+
return $ = Object.assign || function(e) {
|
|
2970
|
+
for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
|
|
2971
|
+
return e;
|
|
2972
|
+
}, $.apply(this, arguments);
|
|
2973
|
+
};
|
|
2974
|
+
function Na(e, t) {
|
|
2975
|
+
var n = {};
|
|
2976
|
+
for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
2977
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++) t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
2978
|
+
return n;
|
|
2979
|
+
}
|
|
2980
|
+
function Pa(e, t, n) {
|
|
2981
|
+
if (n || arguments.length === 2) for (var r = 0, i = t.length, a; r < i; r++) (a || !(r in t)) && (a ||= Array.prototype.slice.call(t, 0, r), a[r] = t[r]);
|
|
2982
|
+
return e.concat(a || Array.prototype.slice.call(t));
|
|
2983
|
+
}
|
|
2984
|
+
//#endregion
|
|
2985
|
+
//#region node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types+react@19.3.0_react@19.3.0/node_modules/react-remove-scroll-bar/dist/es2015/constants.js
|
|
2986
|
+
var Fa = "right-scroll-bar-position", Ia = "width-before-scroll-bar", La = "with-scroll-bars-hidden", Ra = "--removed-body-scroll-bar-size";
|
|
2987
|
+
//#endregion
|
|
2988
|
+
//#region node_modules/.pnpm/use-callback-ref@1.3.3_@types+react@19.3.0_react@19.3.0/node_modules/use-callback-ref/dist/es2015/assignRef.js
|
|
2989
|
+
function za(e, t) {
|
|
2990
|
+
return typeof e == "function" ? e(t) : e && (e.current = t), e;
|
|
2991
|
+
}
|
|
2992
|
+
//#endregion
|
|
2993
|
+
//#region node_modules/.pnpm/use-callback-ref@1.3.3_@types+react@19.3.0_react@19.3.0/node_modules/use-callback-ref/dist/es2015/useRef.js
|
|
2994
|
+
function Ba(e, t) {
|
|
2995
|
+
var n = (0, Q.useState)(function() {
|
|
2996
|
+
return {
|
|
2997
|
+
value: e,
|
|
2998
|
+
callback: t,
|
|
2999
|
+
facade: {
|
|
3000
|
+
get current() {
|
|
3001
|
+
return n.value;
|
|
3002
|
+
},
|
|
3003
|
+
set current(e) {
|
|
3004
|
+
var t = n.value;
|
|
3005
|
+
t !== e && (n.value = e, n.callback(e, t));
|
|
3006
|
+
}
|
|
3007
|
+
}
|
|
3008
|
+
};
|
|
3009
|
+
})[0];
|
|
3010
|
+
return n.callback = t, n.facade;
|
|
3011
|
+
}
|
|
3012
|
+
//#endregion
|
|
3013
|
+
//#region node_modules/.pnpm/use-callback-ref@1.3.3_@types+react@19.3.0_react@19.3.0/node_modules/use-callback-ref/dist/es2015/useMergeRef.js
|
|
3014
|
+
var Va = typeof window < "u" ? Q.useLayoutEffect : Q.useEffect, Ha = /* @__PURE__ */ new WeakMap();
|
|
3015
|
+
function Ua(e, t) {
|
|
3016
|
+
var n = Ba(t || null, function(t) {
|
|
3017
|
+
return e.forEach(function(e) {
|
|
3018
|
+
return za(e, t);
|
|
3019
|
+
});
|
|
3020
|
+
});
|
|
3021
|
+
return Va(function() {
|
|
3022
|
+
var t = Ha.get(n);
|
|
3023
|
+
if (t) {
|
|
3024
|
+
var r = new Set(t), i = new Set(e), a = n.current;
|
|
3025
|
+
r.forEach(function(e) {
|
|
3026
|
+
i.has(e) || za(e, null);
|
|
3027
|
+
}), i.forEach(function(e) {
|
|
3028
|
+
r.has(e) || za(e, a);
|
|
3029
|
+
});
|
|
3030
|
+
}
|
|
3031
|
+
Ha.set(n, e);
|
|
3032
|
+
}, [e]), n;
|
|
3033
|
+
}
|
|
3034
|
+
//#endregion
|
|
3035
|
+
//#region node_modules/.pnpm/use-sidecar@1.1.3_@types+react@19.3.0_react@19.3.0/node_modules/use-sidecar/dist/es2015/medium.js
|
|
3036
|
+
function Wa(e) {
|
|
3037
|
+
return e;
|
|
3038
|
+
}
|
|
3039
|
+
function Ga(e, t) {
|
|
3040
|
+
t === void 0 && (t = Wa);
|
|
3041
|
+
var n = [], r = !1;
|
|
3042
|
+
return {
|
|
3043
|
+
read: function() {
|
|
3044
|
+
if (r) throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");
|
|
3045
|
+
return n.length ? n[n.length - 1] : e;
|
|
3046
|
+
},
|
|
3047
|
+
useMedium: function(e) {
|
|
3048
|
+
var i = t(e, r);
|
|
3049
|
+
return n.push(i), function() {
|
|
3050
|
+
n = n.filter(function(e) {
|
|
3051
|
+
return e !== i;
|
|
3052
|
+
});
|
|
3053
|
+
};
|
|
3054
|
+
},
|
|
3055
|
+
assignSyncMedium: function(e) {
|
|
3056
|
+
for (r = !0; n.length;) {
|
|
3057
|
+
var t = n;
|
|
3058
|
+
n = [], t.forEach(e);
|
|
3059
|
+
}
|
|
3060
|
+
n = {
|
|
3061
|
+
push: function(t) {
|
|
3062
|
+
return e(t);
|
|
3063
|
+
},
|
|
3064
|
+
filter: function() {
|
|
3065
|
+
return n;
|
|
3066
|
+
}
|
|
3067
|
+
};
|
|
3068
|
+
},
|
|
3069
|
+
assignMedium: function(e) {
|
|
3070
|
+
r = !0;
|
|
3071
|
+
var t = [];
|
|
3072
|
+
if (n.length) {
|
|
3073
|
+
var i = n;
|
|
3074
|
+
n = [], i.forEach(e), t = n;
|
|
3075
|
+
}
|
|
3076
|
+
var a = function() {
|
|
3077
|
+
var n = t;
|
|
3078
|
+
t = [], n.forEach(e);
|
|
3079
|
+
}, o = function() {
|
|
3080
|
+
return Promise.resolve().then(a);
|
|
3081
|
+
};
|
|
3082
|
+
o(), n = {
|
|
3083
|
+
push: function(e) {
|
|
3084
|
+
t.push(e), o();
|
|
3085
|
+
},
|
|
3086
|
+
filter: function(e) {
|
|
3087
|
+
return t = t.filter(e), n;
|
|
3088
|
+
}
|
|
3089
|
+
};
|
|
3090
|
+
}
|
|
3091
|
+
};
|
|
3092
|
+
}
|
|
3093
|
+
function Ka(e) {
|
|
3094
|
+
e === void 0 && (e = {});
|
|
3095
|
+
var t = Ga(null);
|
|
3096
|
+
return t.options = $({
|
|
3097
|
+
async: !0,
|
|
3098
|
+
ssr: !1
|
|
3099
|
+
}, e), t;
|
|
3100
|
+
}
|
|
3101
|
+
//#endregion
|
|
3102
|
+
//#region node_modules/.pnpm/use-sidecar@1.1.3_@types+react@19.3.0_react@19.3.0/node_modules/use-sidecar/dist/es2015/exports.js
|
|
3103
|
+
var qa = function(e) {
|
|
3104
|
+
var t = e.sideCar, n = Na(e, ["sideCar"]);
|
|
3105
|
+
if (!t) throw Error("Sidecar: please provide `sideCar` property to import the right car");
|
|
3106
|
+
var r = t.read();
|
|
3107
|
+
if (!r) throw Error("Sidecar medium not found");
|
|
3108
|
+
return Q.createElement(r, $({}, n));
|
|
3109
|
+
};
|
|
3110
|
+
qa.isSideCarExport = !0;
|
|
3111
|
+
function Ja(e, t) {
|
|
3112
|
+
return e.useMedium(t), qa;
|
|
3113
|
+
}
|
|
3114
|
+
//#endregion
|
|
3115
|
+
//#region node_modules/.pnpm/react-remove-scroll@2.7.2_@types+react@19.3.0_react@19.3.0/node_modules/react-remove-scroll/dist/es2015/medium.js
|
|
3116
|
+
var Ya = Ka(), Xa = function() {}, Za = Q.forwardRef(function(e, t) {
|
|
3117
|
+
var n = Q.useRef(null), r = Q.useState({
|
|
3118
|
+
onScrollCapture: Xa,
|
|
3119
|
+
onWheelCapture: Xa,
|
|
3120
|
+
onTouchMoveCapture: Xa
|
|
3121
|
+
}), i = r[0], a = r[1], o = e.forwardProps, s = e.children, c = e.className, l = e.removeScrollBar, u = e.enabled, d = e.shards, f = e.sideCar, p = e.noRelative, m = e.noIsolation, h = e.inert, g = e.allowPinchZoom, _ = e.as, v = _ === void 0 ? "div" : _, y = e.gapMode, b = Na(e, [
|
|
3122
|
+
"forwardProps",
|
|
3123
|
+
"children",
|
|
3124
|
+
"className",
|
|
3125
|
+
"removeScrollBar",
|
|
3126
|
+
"enabled",
|
|
3127
|
+
"shards",
|
|
3128
|
+
"sideCar",
|
|
3129
|
+
"noRelative",
|
|
3130
|
+
"noIsolation",
|
|
3131
|
+
"inert",
|
|
3132
|
+
"allowPinchZoom",
|
|
3133
|
+
"as",
|
|
3134
|
+
"gapMode"
|
|
3135
|
+
]), x = f, S = Ua([n, t]), C = $($({}, b), i);
|
|
3136
|
+
return Q.createElement(Q.Fragment, null, u && Q.createElement(x, {
|
|
3137
|
+
sideCar: Ya,
|
|
3138
|
+
removeScrollBar: l,
|
|
3139
|
+
shards: d,
|
|
3140
|
+
noRelative: p,
|
|
3141
|
+
noIsolation: m,
|
|
3142
|
+
inert: h,
|
|
3143
|
+
setCallbacks: a,
|
|
3144
|
+
allowPinchZoom: !!g,
|
|
3145
|
+
lockRef: n,
|
|
3146
|
+
gapMode: y
|
|
3147
|
+
}), o ? Q.cloneElement(Q.Children.only(s), $($({}, C), { ref: S })) : Q.createElement(v, $({}, C, {
|
|
3148
|
+
className: c,
|
|
3149
|
+
ref: S
|
|
3150
|
+
}), s));
|
|
3151
|
+
});
|
|
3152
|
+
Za.defaultProps = {
|
|
3153
|
+
enabled: !0,
|
|
3154
|
+
removeScrollBar: !0,
|
|
3155
|
+
inert: !1
|
|
3156
|
+
}, Za.classNames = {
|
|
3157
|
+
fullWidth: Ia,
|
|
3158
|
+
zeroRight: Fa
|
|
3159
|
+
};
|
|
3160
|
+
//#endregion
|
|
3161
|
+
//#region node_modules/.pnpm/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.js
|
|
3162
|
+
var Qa = function() {
|
|
3163
|
+
if (typeof __webpack_nonce__ < "u") return __webpack_nonce__;
|
|
3164
|
+
};
|
|
3165
|
+
//#endregion
|
|
3166
|
+
//#region node_modules/.pnpm/react-style-singleton@2.2.3_@types+react@19.3.0_react@19.3.0/node_modules/react-style-singleton/dist/es2015/singleton.js
|
|
3167
|
+
function $a() {
|
|
3168
|
+
if (!document) return null;
|
|
3169
|
+
var e = document.createElement("style");
|
|
3170
|
+
e.type = "text/css";
|
|
3171
|
+
var t = Qa();
|
|
3172
|
+
return t && e.setAttribute("nonce", t), e;
|
|
3173
|
+
}
|
|
3174
|
+
function eo(e, t) {
|
|
3175
|
+
e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
|
|
3176
|
+
}
|
|
3177
|
+
function to(e) {
|
|
3178
|
+
(document.head || document.getElementsByTagName("head")[0]).appendChild(e);
|
|
3179
|
+
}
|
|
3180
|
+
var no = function() {
|
|
3181
|
+
var e = 0, t = null;
|
|
3182
|
+
return {
|
|
3183
|
+
add: function(n) {
|
|
3184
|
+
e == 0 && (t = $a()) && (eo(t, n), to(t)), e++;
|
|
3185
|
+
},
|
|
3186
|
+
remove: function() {
|
|
3187
|
+
e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
|
|
3188
|
+
}
|
|
3189
|
+
};
|
|
3190
|
+
}, ro = function() {
|
|
3191
|
+
var e = no();
|
|
3192
|
+
return function(t, n) {
|
|
3193
|
+
Q.useEffect(function() {
|
|
3194
|
+
return e.add(t), function() {
|
|
3195
|
+
e.remove();
|
|
3196
|
+
};
|
|
3197
|
+
}, [t && n]);
|
|
3198
|
+
};
|
|
3199
|
+
}, io = function() {
|
|
3200
|
+
var e = ro();
|
|
3201
|
+
return function(t) {
|
|
3202
|
+
var n = t.styles, r = t.dynamic;
|
|
3203
|
+
return e(n, r), null;
|
|
3204
|
+
};
|
|
3205
|
+
}, ao = {
|
|
3206
|
+
left: 0,
|
|
3207
|
+
top: 0,
|
|
3208
|
+
right: 0,
|
|
3209
|
+
gap: 0
|
|
3210
|
+
}, oo = function(e) {
|
|
3211
|
+
return parseInt(e || "", 10) || 0;
|
|
3212
|
+
}, so = function(e) {
|
|
3213
|
+
var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], i = t[e === "padding" ? "paddingRight" : "marginRight"];
|
|
3214
|
+
return [
|
|
3215
|
+
oo(n),
|
|
3216
|
+
oo(r),
|
|
3217
|
+
oo(i)
|
|
3218
|
+
];
|
|
3219
|
+
}, co = function(e) {
|
|
3220
|
+
if (e === void 0 && (e = "margin"), typeof window > "u") return ao;
|
|
3221
|
+
var t = so(e), n = document.documentElement.clientWidth, r = window.innerWidth;
|
|
3222
|
+
return {
|
|
3223
|
+
left: t[0],
|
|
3224
|
+
top: t[1],
|
|
3225
|
+
right: t[2],
|
|
3226
|
+
gap: Math.max(0, r - n + t[2] - t[0])
|
|
3227
|
+
};
|
|
3228
|
+
}, lo = io(), uo = "data-scroll-locked", fo = function(e, t, n, r) {
|
|
3229
|
+
var i = e.left, a = e.top, o = e.right, s = e.gap;
|
|
3230
|
+
return n === void 0 && (n = "margin"), `
|
|
3231
|
+
.${La} {
|
|
3232
|
+
overflow: hidden ${r};
|
|
3233
|
+
padding-right: ${s}px ${r};
|
|
3234
|
+
}
|
|
3235
|
+
body[${uo}] {
|
|
3236
|
+
overflow: hidden ${r};
|
|
3237
|
+
overscroll-behavior: contain;
|
|
3238
|
+
${[
|
|
3239
|
+
t && `position: relative ${r};`,
|
|
3240
|
+
n === "margin" && `
|
|
3241
|
+
padding-left: ${i}px;
|
|
3242
|
+
padding-top: ${a}px;
|
|
3243
|
+
padding-right: ${o}px;
|
|
3244
|
+
margin-left:0;
|
|
3245
|
+
margin-top:0;
|
|
3246
|
+
margin-right: ${s}px ${r};
|
|
3247
|
+
`,
|
|
3248
|
+
n === "padding" && `padding-right: ${s}px ${r};`
|
|
3249
|
+
].filter(Boolean).join("")}
|
|
3250
|
+
}
|
|
3251
|
+
|
|
3252
|
+
.${Fa} {
|
|
3253
|
+
right: ${s}px ${r};
|
|
3254
|
+
}
|
|
3255
|
+
|
|
3256
|
+
.${Ia} {
|
|
3257
|
+
margin-right: ${s}px ${r};
|
|
3258
|
+
}
|
|
3259
|
+
|
|
3260
|
+
.${Fa} .${Fa} {
|
|
3261
|
+
right: 0 ${r};
|
|
3262
|
+
}
|
|
3263
|
+
|
|
3264
|
+
.${Ia} .${Ia} {
|
|
3265
|
+
margin-right: 0 ${r};
|
|
3266
|
+
}
|
|
3267
|
+
|
|
3268
|
+
body[${uo}] {
|
|
3269
|
+
${Ra}: ${s}px;
|
|
3270
|
+
}
|
|
3271
|
+
`;
|
|
3272
|
+
}, po = function() {
|
|
3273
|
+
var e = parseInt(document.body.getAttribute("data-scroll-locked") || "0", 10);
|
|
3274
|
+
return isFinite(e) ? e : 0;
|
|
3275
|
+
}, mo = function() {
|
|
3276
|
+
Q.useEffect(function() {
|
|
3277
|
+
return document.body.setAttribute(uo, (po() + 1).toString()), function() {
|
|
3278
|
+
var e = po() - 1;
|
|
3279
|
+
e <= 0 ? document.body.removeAttribute(uo) : document.body.setAttribute(uo, e.toString());
|
|
3280
|
+
};
|
|
3281
|
+
}, []);
|
|
3282
|
+
}, ho = function(e) {
|
|
3283
|
+
var t = e.noRelative, n = e.noImportant, r = e.gapMode, i = r === void 0 ? "margin" : r;
|
|
3284
|
+
mo();
|
|
3285
|
+
var a = Q.useMemo(function() {
|
|
3286
|
+
return co(i);
|
|
3287
|
+
}, [i]);
|
|
3288
|
+
return Q.createElement(lo, { styles: fo(a, !t, i, n ? "" : "!important") });
|
|
3289
|
+
}, go = !1;
|
|
3290
|
+
if (typeof window < "u") try {
|
|
3291
|
+
var _o = Object.defineProperty({}, "passive", { get: function() {
|
|
3292
|
+
return go = !0, !0;
|
|
3293
|
+
} });
|
|
3294
|
+
window.addEventListener("test", _o, _o), window.removeEventListener("test", _o, _o);
|
|
3295
|
+
} catch {
|
|
3296
|
+
go = !1;
|
|
3297
|
+
}
|
|
3298
|
+
var vo = go ? { passive: !1 } : !1, yo = function(e) {
|
|
3299
|
+
return e.tagName === "TEXTAREA";
|
|
3300
|
+
}, bo = function(e, t) {
|
|
3301
|
+
if (!(e instanceof Element)) return !1;
|
|
3302
|
+
var n = window.getComputedStyle(e);
|
|
3303
|
+
return n[t] !== "hidden" && !(n.overflowY === n.overflowX && !yo(e) && n[t] === "visible");
|
|
3304
|
+
}, xo = function(e) {
|
|
3305
|
+
return bo(e, "overflowY");
|
|
3306
|
+
}, So = function(e) {
|
|
3307
|
+
return bo(e, "overflowX");
|
|
3308
|
+
}, Co = function(e, t) {
|
|
3309
|
+
var n = t.ownerDocument, r = t;
|
|
3310
|
+
do {
|
|
3311
|
+
if (typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host), Eo(e, r)) {
|
|
3312
|
+
var i = Do(e, r);
|
|
3313
|
+
if (i[1] > i[2]) return !0;
|
|
3314
|
+
}
|
|
3315
|
+
r = r.parentNode;
|
|
3316
|
+
} while (r && r !== n.body);
|
|
3317
|
+
return !1;
|
|
3318
|
+
}, wo = function(e) {
|
|
3319
|
+
return [
|
|
3320
|
+
e.scrollTop,
|
|
3321
|
+
e.scrollHeight,
|
|
3322
|
+
e.clientHeight
|
|
3323
|
+
];
|
|
3324
|
+
}, To = function(e) {
|
|
3325
|
+
return [
|
|
3326
|
+
e.scrollLeft,
|
|
3327
|
+
e.scrollWidth,
|
|
3328
|
+
e.clientWidth
|
|
3329
|
+
];
|
|
3330
|
+
}, Eo = function(e, t) {
|
|
3331
|
+
return e === "v" ? xo(t) : So(t);
|
|
3332
|
+
}, Do = function(e, t) {
|
|
3333
|
+
return e === "v" ? wo(t) : To(t);
|
|
3334
|
+
}, Oo = function(e, t) {
|
|
3335
|
+
return e === "h" && t === "rtl" ? -1 : 1;
|
|
3336
|
+
}, ko = function(e, t, n, r, i) {
|
|
3337
|
+
var a = Oo(e, window.getComputedStyle(t).direction), o = a * r, s = n.target, c = t.contains(s), l = !1, u = o > 0, d = 0, f = 0;
|
|
3338
|
+
do {
|
|
3339
|
+
if (!s) break;
|
|
3340
|
+
var p = Do(e, s), m = p[0], h = p[1] - p[2] - a * m;
|
|
3341
|
+
(m || h) && Eo(e, s) && (d += h, f += m);
|
|
3342
|
+
var g = s.parentNode;
|
|
3343
|
+
s = g && g.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? g.host : g;
|
|
3344
|
+
} while (!c && s !== document.body || c && (t.contains(s) || t === s));
|
|
3345
|
+
return (u && (i && Math.abs(d) < 1 || !i && o > d) || !u && (i && Math.abs(f) < 1 || !i && -o > f)) && (l = !0), l;
|
|
3346
|
+
}, Ao = function(e) {
|
|
3347
|
+
return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
|
|
3348
|
+
}, jo = function(e) {
|
|
3349
|
+
return [e.deltaX, e.deltaY];
|
|
3350
|
+
}, Mo = function(e) {
|
|
3351
|
+
return e && "current" in e ? e.current : e;
|
|
3352
|
+
}, No = function(e, t) {
|
|
3353
|
+
return e[0] === t[0] && e[1] === t[1];
|
|
3354
|
+
}, Po = function(e) {
|
|
3355
|
+
return `
|
|
3356
|
+
.block-interactivity-${e} {pointer-events: none;}
|
|
3357
|
+
.allow-interactivity-${e} {pointer-events: all;}
|
|
3358
|
+
`;
|
|
3359
|
+
}, Fo = 0, Io = [];
|
|
3360
|
+
function Lo(e) {
|
|
3361
|
+
var t = Q.useRef([]), n = Q.useRef([0, 0]), r = Q.useRef(), i = Q.useState(Fo++)[0], a = Q.useState(io)[0], o = Q.useRef(e);
|
|
3362
|
+
Q.useEffect(function() {
|
|
3363
|
+
o.current = e;
|
|
3364
|
+
}, [e]), Q.useEffect(function() {
|
|
3365
|
+
if (e.inert) {
|
|
3366
|
+
document.body.classList.add(`block-interactivity-${i}`);
|
|
3367
|
+
var t = Pa([e.lockRef.current], (e.shards || []).map(Mo), !0).filter(Boolean);
|
|
3368
|
+
return t.forEach(function(e) {
|
|
3369
|
+
return e.classList.add(`allow-interactivity-${i}`);
|
|
3370
|
+
}), function() {
|
|
3371
|
+
document.body.classList.remove(`block-interactivity-${i}`), t.forEach(function(e) {
|
|
3372
|
+
return e.classList.remove(`allow-interactivity-${i}`);
|
|
3373
|
+
});
|
|
3374
|
+
};
|
|
3375
|
+
}
|
|
3376
|
+
}, [
|
|
3377
|
+
e.inert,
|
|
3378
|
+
e.lockRef.current,
|
|
3379
|
+
e.shards
|
|
3380
|
+
]);
|
|
3381
|
+
var s = Q.useCallback(function(e, t) {
|
|
3382
|
+
if ("touches" in e && e.touches.length === 2 || e.type === "wheel" && e.ctrlKey) return !o.current.allowPinchZoom;
|
|
3383
|
+
var i = Ao(e), a = n.current, s = "deltaX" in e ? e.deltaX : a[0] - i[0], c = "deltaY" in e ? e.deltaY : a[1] - i[1], l, u = e.target, d = Math.abs(s) > Math.abs(c) ? "h" : "v";
|
|
3384
|
+
if ("touches" in e && d === "h" && u.type === "range") return !1;
|
|
3385
|
+
var f = window.getSelection(), p = f && f.anchorNode;
|
|
3386
|
+
if (p && (p === u || p.contains(u))) return !1;
|
|
3387
|
+
var m = Co(d, u);
|
|
3388
|
+
if (!m) return !0;
|
|
3389
|
+
if (m ? l = d : (l = d === "v" ? "h" : "v", m = Co(d, u)), !m) return !1;
|
|
3390
|
+
if (!r.current && "changedTouches" in e && (s || c) && (r.current = l), !l) return !0;
|
|
3391
|
+
var h = r.current || l;
|
|
3392
|
+
return ko(h, t, e, h === "h" ? s : c, !0);
|
|
3393
|
+
}, []), c = Q.useCallback(function(e) {
|
|
3394
|
+
var n = e;
|
|
3395
|
+
if (Io.length && Io[Io.length - 1] === a) {
|
|
3396
|
+
var r = "deltaY" in n ? jo(n) : Ao(n), i = t.current.filter(function(e) {
|
|
3397
|
+
return e.name === n.type && (e.target === n.target || n.target === e.shadowParent) && No(e.delta, r);
|
|
3398
|
+
})[0];
|
|
3399
|
+
if (i && i.should) {
|
|
3400
|
+
n.cancelable && n.preventDefault();
|
|
3401
|
+
return;
|
|
3402
|
+
}
|
|
3403
|
+
if (!i) {
|
|
3404
|
+
var c = (o.current.shards || []).map(Mo).filter(Boolean).filter(function(e) {
|
|
3405
|
+
return e.contains(n.target);
|
|
3406
|
+
});
|
|
3407
|
+
(c.length > 0 ? s(n, c[0]) : !o.current.noIsolation) && n.cancelable && n.preventDefault();
|
|
3408
|
+
}
|
|
3409
|
+
}
|
|
3410
|
+
}, []), l = Q.useCallback(function(e, n, r, i) {
|
|
3411
|
+
var a = {
|
|
3412
|
+
name: e,
|
|
3413
|
+
delta: n,
|
|
3414
|
+
target: r,
|
|
3415
|
+
should: i,
|
|
3416
|
+
shadowParent: Ro(r)
|
|
3417
|
+
};
|
|
3418
|
+
t.current.push(a), setTimeout(function() {
|
|
3419
|
+
t.current = t.current.filter(function(e) {
|
|
3420
|
+
return e !== a;
|
|
3421
|
+
});
|
|
3422
|
+
}, 1);
|
|
3423
|
+
}, []), u = Q.useCallback(function(e) {
|
|
3424
|
+
n.current = Ao(e), r.current = void 0;
|
|
3425
|
+
}, []), d = Q.useCallback(function(t) {
|
|
3426
|
+
l(t.type, jo(t), t.target, s(t, e.lockRef.current));
|
|
3427
|
+
}, []), f = Q.useCallback(function(t) {
|
|
3428
|
+
l(t.type, Ao(t), t.target, s(t, e.lockRef.current));
|
|
3429
|
+
}, []);
|
|
3430
|
+
Q.useEffect(function() {
|
|
3431
|
+
return Io.push(a), e.setCallbacks({
|
|
3432
|
+
onScrollCapture: d,
|
|
3433
|
+
onWheelCapture: d,
|
|
3434
|
+
onTouchMoveCapture: f
|
|
3435
|
+
}), document.addEventListener("wheel", c, vo), document.addEventListener("touchmove", c, vo), document.addEventListener("touchstart", u, vo), function() {
|
|
3436
|
+
Io = Io.filter(function(e) {
|
|
3437
|
+
return e !== a;
|
|
3438
|
+
}), document.removeEventListener("wheel", c, vo), document.removeEventListener("touchmove", c, vo), document.removeEventListener("touchstart", u, vo);
|
|
3439
|
+
};
|
|
3440
|
+
}, []);
|
|
3441
|
+
var p = e.removeScrollBar, m = e.inert;
|
|
3442
|
+
return Q.createElement(Q.Fragment, null, m ? Q.createElement(a, { styles: Po(i) }) : null, p ? Q.createElement(ho, {
|
|
3443
|
+
noRelative: e.noRelative,
|
|
3444
|
+
gapMode: e.gapMode
|
|
3445
|
+
}) : null);
|
|
3446
|
+
}
|
|
3447
|
+
function Ro(e) {
|
|
3448
|
+
for (var t = null; e !== null;) e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
|
|
3449
|
+
return t;
|
|
3450
|
+
}
|
|
3451
|
+
//#endregion
|
|
3452
|
+
//#region node_modules/.pnpm/react-remove-scroll@2.7.2_@types+react@19.3.0_react@19.3.0/node_modules/react-remove-scroll/dist/es2015/sidecar.js
|
|
3453
|
+
var zo = Ja(Ya, Lo), Bo = Q.forwardRef(function(e, t) {
|
|
3454
|
+
return Q.createElement(Za, $({}, e, {
|
|
3455
|
+
ref: t,
|
|
3456
|
+
sideCar: zo
|
|
3457
|
+
}));
|
|
3458
|
+
});
|
|
3459
|
+
Bo.classNames = Za.classNames;
|
|
3460
|
+
//#endregion
|
|
3461
|
+
//#region node_modules/.pnpm/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.js
|
|
3462
|
+
var Vo = function(e) {
|
|
3463
|
+
return typeof document > "u" ? null : (Array.isArray(e) ? e[0] : e).ownerDocument.body;
|
|
3464
|
+
}, Ho = /* @__PURE__ */ new WeakMap(), Uo = /* @__PURE__ */ new WeakMap(), Wo = {}, Go = 0, Ko = function(e) {
|
|
3465
|
+
return e && (e.host || Ko(e.parentNode));
|
|
3466
|
+
}, qo = function(e, t) {
|
|
3467
|
+
return t.map(function(t) {
|
|
3468
|
+
if (e.contains(t)) return t;
|
|
3469
|
+
var n = Ko(t);
|
|
3470
|
+
return n && e.contains(n) ? n : (console.error("aria-hidden", t, "in not contained inside", e, ". Doing nothing"), null);
|
|
3471
|
+
}).filter(function(e) {
|
|
3472
|
+
return !!e;
|
|
3473
|
+
});
|
|
3474
|
+
}, Jo = function(e, t, n, r) {
|
|
3475
|
+
var i = qo(t, Array.isArray(e) ? e : [e]);
|
|
3476
|
+
Wo[n] || (Wo[n] = /* @__PURE__ */ new WeakMap());
|
|
3477
|
+
var a = Wo[n], o = [], s = /* @__PURE__ */ new Set(), c = new Set(i), l = function(e) {
|
|
3478
|
+
e && !s.has(e) && (s.add(e), l(e.parentNode));
|
|
3479
|
+
};
|
|
3480
|
+
i.forEach(l);
|
|
3481
|
+
var u = function(e) {
|
|
3482
|
+
e && !c.has(e) && Array.prototype.forEach.call(e.children, function(e) {
|
|
3483
|
+
if (s.has(e)) u(e);
|
|
3484
|
+
else try {
|
|
3485
|
+
var t = e.getAttribute(r), i = t !== null && t !== "false", c = (Ho.get(e) || 0) + 1, l = (a.get(e) || 0) + 1;
|
|
3486
|
+
Ho.set(e, c), a.set(e, l), o.push(e), c === 1 && i && Uo.set(e, !0), l === 1 && e.setAttribute(n, "true"), i || e.setAttribute(r, "true");
|
|
3487
|
+
} catch (t) {
|
|
3488
|
+
console.error("aria-hidden: cannot operate on ", e, t);
|
|
3489
|
+
}
|
|
3490
|
+
});
|
|
3491
|
+
};
|
|
3492
|
+
return u(t), s.clear(), Go++, function() {
|
|
3493
|
+
o.forEach(function(e) {
|
|
3494
|
+
var t = Ho.get(e) - 1, i = a.get(e) - 1;
|
|
3495
|
+
Ho.set(e, t), a.set(e, i), t || (Uo.has(e) || e.removeAttribute(r), Uo.delete(e)), i || e.removeAttribute(n);
|
|
3496
|
+
}), Go--, Go || (Ho = /* @__PURE__ */ new WeakMap(), Ho = /* @__PURE__ */ new WeakMap(), Uo = /* @__PURE__ */ new WeakMap(), Wo = {});
|
|
3497
|
+
};
|
|
3498
|
+
}, Yo = function(e, t, n) {
|
|
3499
|
+
n === void 0 && (n = "data-aria-hidden");
|
|
3500
|
+
var r = Array.from(Array.isArray(e) ? e : [e]), i = t || Vo(e);
|
|
3501
|
+
return i ? (r.push.apply(r, Array.from(i.querySelectorAll("[aria-live], script"))), Jo(r, i, n, "aria-hidden")) : function() {
|
|
3502
|
+
return null;
|
|
3503
|
+
};
|
|
3504
|
+
};
|
|
3505
|
+
//#endregion
|
|
3506
|
+
export { Ta as i, Bo as n, ja as r, Yo as t };
|