Skip to content

programmatic video rendering framework that is actually fast

chore: Change the license to MIT (#144)

Dmitriy Kovalenko11c2f32d8c9a
diff --git a/Cargo.lock b/Cargo.lock
index d0be3049..d9b6f9b9 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1148,6 +1148,15 @@ dependencies = [
"wasm-bindgen-futures",
]
+[[package]]
+name = "fframes-intro"
+version = "0.0.0"
+dependencies = [
+ "fframes",
+ "fframes_native_player",
+ "fframes_skia_renderer",
+]
+
[[package]]
name = "fframes-media"
version = "1.0.0-beta.6.rc-3.2"
@@ -4071,6 +4080,15 @@ version = "0.9.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a"
+[[package]]
+name = "vs-remotion-bench"
+version = "0.0.0"
+dependencies = [
+ "fframes",
+ "fframes_native_player",
+ "fframes_skia_renderer",
+]
+
[[package]]
name = "walkdir"
version = "2.5.0"
diff --git a/Cargo.toml b/Cargo.toml
index b4819c1d..1f372f45 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -12,6 +12,7 @@ members = [
"fframes-native-player",
"media-dir-macro",
"render-bench",
+ "render-bench/vs-remotion/fframes",
"cargo-fframes",
# Examples
"examples/podcast",
@@ -46,6 +47,7 @@ members = [
# maybe clean this up?
# "fframes-lyon-renderer",
"examples/signal-lab",
+ "examples/fframes-intro",
]
[workspace.dependencies]
diff --git a/LICENSE.txt b/LICENSE.txt
index 86024e8b..6392c950 100644
--- a/LICENSE.txt
+++ b/LICENSE.txt
@@ -1,29 +1,21 @@
-Copyright (c) 2025 Dmitriy Kovalenko
+MIT License
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are met:
+Copyright (c) 2025-2026 Dmitriy Kovalenko
-1. Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
- The source code may not be redistributed under a different name or branding
- without explicit written permission from the copyright holder.
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
-2. Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in the
- documentation and/or other materials provided with the distribution.
-
-3. Neither the name of the copyright holder nor the names of its
- contributors may be used to endorse or promote products derived from
- this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
-FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/README.md b/README.md
index d36ab9dd..dca49d1f 100644
--- a/README.md
+++ b/README.md
@@ -135,5 +135,4 @@ just watch-editor
## License
-Please make sure that this project is under GPLv3 license while in beta. So you are not permitted to modify and redistribute it.
-This will likely be changed once the project will be released.
+fframes is released under the [MIT License](./LICENSE.txt).
diff --git a/examples/fframes-intro/.gitignore b/examples/fframes-intro/.gitignore
new file mode 100644
index 00000000..81c843a7
--- /dev/null
+++ b/examples/fframes-intro/.gitignore
@@ -0,0 +1,2 @@
+out/
+review/
diff --git a/examples/fframes-intro/Cargo.toml b/examples/fframes-intro/Cargo.toml
new file mode 100644
index 00000000..e00e0768
--- /dev/null
+++ b/examples/fframes-intro/Cargo.toml
@@ -0,0 +1,22 @@
+[package]
+name = "fframes-intro"
+version = "0.0.0"
+edition = "2024"
+publish = false
+
+[dependencies]
+fframes = { workspace = true, features = ["compile-time-svgtree", "cli"] }
+fframes_skia_renderer = { workspace = true, features = ["metal"] }
+fframes_native_player = { workspace = true, features = ["metal"] }
+
+[target.'cfg(not(windows))'.dependencies]
+fframes = { workspace = true, features = ["h264", "libav-agree-gpl"] }
+
+[lib]
+name = "fframes_intro"
+path = "src/lib.rs"
+doctest = false
+
+[[bin]]
+name = "fframes-intro"
+path = "src/main.rs"
diff --git a/examples/fframes-intro/build.rs b/examples/fframes-intro/build.rs
new file mode 100644
index 00000000..add22079
--- /dev/null
+++ b/examples/fframes-intro/build.rs
@@ -0,0 +1,30 @@
+//! Reads the fframes history with `git log` so the origin scene always shows
+//! the repository as it is when the video is built.
+
+use std::path::Path;
+use std::process::Command;
+
+fn main() {
+ let repo = Path::new(env!("CARGO_MANIFEST_DIR")).join("../..");
+ let out = Path::new(&std::env::var("OUT_DIR").unwrap()).join("commits.txt");
+
+ // a new commit moves HEAD's reflog
+ println!(
+ "cargo:rerun-if-changed={}",
+ repo.join(".git/logs/HEAD").display()
+ );
+
+ let log = Command::new("git")
+ .current_dir(&repo)
+ .args(["log", "--reverse", "--format=%h|%ad|%s", "--date=short"])
+ .output()
+ .ok()
+ .filter(|o| o.status.success())
+ .map(|o| String::from_utf8_lossy(&o.stdout).into_owned())
+ .unwrap_or_else(|| {
+ println!("cargo:warning=git log failed, the origin scene will have no commits");
+ String::new()
+ });
+
+ std::fs::write(out, log).unwrap();
+}
diff --git a/examples/fframes-intro/dynamic_media/left_clip.mp4 b/examples/fframes-intro/dynamic_media/left_clip.mp4
new file mode 100644
index 00000000..e197b012
Binary files /dev/null and b/examples/fframes-intro/dynamic_media/left_clip.mp4 differ
diff --git a/examples/fframes-intro/dynamic_media/music.wav b/examples/fframes-intro/dynamic_media/music.wav
new file mode 100644
index 00000000..1ba4adee
Binary files /dev/null and b/examples/fframes-intro/dynamic_media/music.wav differ
diff --git a/examples/fframes-intro/dynamic_media/preview_capture.mp4 b/examples/fframes-intro/dynamic_media/preview_capture.mp4
new file mode 100644
index 00000000..949ec71a
Binary files /dev/null and b/examples/fframes-intro/dynamic_media/preview_capture.mp4 differ
diff --git a/examples/fframes-intro/dynamic_media/right_clip.mp4 b/examples/fframes-intro/dynamic_media/right_clip.mp4
new file mode 100644
index 00000000..de8adb61
Binary files /dev/null and b/examples/fframes-intro/dynamic_media/right_clip.mp4 differ
diff --git a/examples/fframes-intro/dynamic_media/sfx_blip.mp3 b/examples/fframes-intro/dynamic_media/sfx_blip.mp3
new file mode 100644
index 00000000..355303e8
Binary files /dev/null and b/examples/fframes-intro/dynamic_media/sfx_blip.mp3 differ
diff --git a/examples/fframes-intro/dynamic_media/sfx_braam.mp3 b/examples/fframes-intro/dynamic_media/sfx_braam.mp3
new file mode 100644
index 00000000..f64fe1f2
Binary files /dev/null and b/examples/fframes-intro/dynamic_media/sfx_braam.mp3 differ
diff --git a/examples/fframes-intro/dynamic_media/sfx_enter.mp3 b/examples/fframes-intro/dynamic_media/sfx_enter.mp3
new file mode 100644
index 00000000..190ef7b7
Binary files /dev/null and b/examples/fframes-intro/dynamic_media/sfx_enter.mp3 differ
diff --git a/examples/fframes-intro/dynamic_media/sfx_glitch.mp3 b/examples/fframes-intro/dynamic_media/sfx_glitch.mp3
new file mode 100644
index 00000000..192be75e
Binary files /dev/null and b/examples/fframes-intro/dynamic_media/sfx_glitch.mp3 differ
diff --git a/examples/fframes-intro/dynamic_media/sfx_impact.mp3 b/examples/fframes-intro/dynamic_media/sfx_impact.mp3
new file mode 100644
index 00000000..d2daea14
Binary files /dev/null and b/examples/fframes-intro/dynamic_media/sfx_impact.mp3 differ
diff --git a/examples/fframes-intro/dynamic_media/sfx_shutter.mp3 b/examples/fframes-intro/dynamic_media/sfx_shutter.mp3
new file mode 100644
index 00000000..d400faa0
Binary files /dev/null and b/examples/fframes-intro/dynamic_media/sfx_shutter.mp3 differ
diff --git a/examples/fframes-intro/dynamic_media/sfx_typing.mp3 b/examples/fframes-intro/dynamic_media/sfx_typing.mp3
new file mode 100644
index 00000000..1feece1b
Binary files /dev/null and b/examples/fframes-intro/dynamic_media/sfx_typing.mp3 differ
diff --git a/examples/fframes-intro/dynamic_media/sfx_whoosh.mp3 b/examples/fframes-intro/dynamic_media/sfx_whoosh.mp3
new file mode 100644
index 00000000..f26677f4
Binary files /dev/null and b/examples/fframes-intro/dynamic_media/sfx_whoosh.mp3 differ
diff --git a/examples/fframes-intro/media/Anton-Regular.ttf b/examples/fframes-intro/media/Anton-Regular.ttf
new file mode 100644
index 00000000..4d65707d
Binary files /dev/null and b/examples/fframes-intro/media/Anton-Regular.ttf differ
diff --git a/examples/fframes-intro/media/ArchivoBlack-Regular.ttf b/examples/fframes-intro/media/ArchivoBlack-Regular.ttf
new file mode 100644
index 00000000..82d07de3
Binary files /dev/null and b/examples/fframes-intro/media/ArchivoBlack-Regular.ttf differ
diff --git a/examples/fframes-intro/media/IBMPlexMono-Bold.ttf b/examples/fframes-intro/media/IBMPlexMono-Bold.ttf
new file mode 100644
index 00000000..17b406d2
Binary files /dev/null and b/examples/fframes-intro/media/IBMPlexMono-Bold.ttf differ
diff --git a/examples/fframes-intro/media/IBMPlexMono-Medium.ttf b/examples/fframes-intro/media/IBMPlexMono-Medium.ttf
new file mode 100644
index 00000000..33c546f6
Binary files /dev/null and b/examples/fframes-intro/media/IBMPlexMono-Medium.ttf differ
diff --git a/examples/fframes-intro/media/IBMPlexMono-Regular.ttf b/examples/fframes-intro/media/IBMPlexMono-Regular.ttf
new file mode 100644
index 00000000..0c9770d5
Binary files /dev/null and b/examples/fframes-intro/media/IBMPlexMono-Regular.ttf differ
diff --git a/examples/fframes-intro/media/IBMPlexMono-SemiBold.ttf b/examples/fframes-intro/media/IBMPlexMono-SemiBold.ttf
new file mode 100644
index 00000000..8f8998a1
Binary files /dev/null and b/examples/fframes-intro/media/IBMPlexMono-SemiBold.ttf differ
diff --git a/examples/fframes-intro/media/InstrumentSerif-Italic.ttf b/examples/fframes-intro/media/InstrumentSerif-Italic.ttf
new file mode 100644
index 00000000..192c3eda
Binary files /dev/null and b/examples/fframes-intro/media/InstrumentSerif-Italic.ttf differ
diff --git a/examples/fframes-intro/media/beta_poster.jpg b/examples/fframes-intro/media/beta_poster.jpg
new file mode 100644
index 00000000..b2feb700
Binary files /dev/null and b/examples/fframes-intro/media/beta_poster.jpg differ
diff --git a/examples/fframes-intro/media/fly_0.jpg b/examples/fframes-intro/media/fly_0.jpg
new file mode 100644
index 00000000..ed876a74
Binary files /dev/null and b/examples/fframes-intro/media/fly_0.jpg differ
diff --git a/examples/fframes-intro/media/fly_1.jpg b/examples/fframes-intro/media/fly_1.jpg
new file mode 100644
index 00000000..5b14c7c2
Binary files /dev/null and b/examples/fframes-intro/media/fly_1.jpg differ
diff --git a/examples/fframes-intro/media/fly_2.jpg b/examples/fframes-intro/media/fly_2.jpg
new file mode 100644
index 00000000..1820c457
Binary files /dev/null and b/examples/fframes-intro/media/fly_2.jpg differ
diff --git a/examples/fframes-intro/media/fly_3.jpg b/examples/fframes-intro/media/fly_3.jpg
new file mode 100644
index 00000000..378ffacd
Binary files /dev/null and b/examples/fframes-intro/media/fly_3.jpg differ
diff --git a/examples/fframes-intro/media/fly_4.jpg b/examples/fframes-intro/media/fly_4.jpg
new file mode 100644
index 00000000..65b271fe
Binary files /dev/null and b/examples/fframes-intro/media/fly_4.jpg differ
diff --git a/examples/fframes-intro/media/fly_5.jpg b/examples/fframes-intro/media/fly_5.jpg
new file mode 100644
index 00000000..945ebd94
Binary files /dev/null and b/examples/fframes-intro/media/fly_5.jpg differ
diff --git a/examples/fframes-intro/media/fly_6.jpg b/examples/fframes-intro/media/fly_6.jpg
new file mode 100644
index 00000000..b08032d9
Binary files /dev/null and b/examples/fframes-intro/media/fly_6.jpg differ
diff --git a/examples/fframes-intro/media/fly_7.jpg b/examples/fframes-intro/media/fly_7.jpg
new file mode 100644
index 00000000..ca94b29c
Binary files /dev/null and b/examples/fframes-intro/media/fly_7.jpg differ
diff --git a/examples/fframes-intro/media/fly_8.jpg b/examples/fframes-intro/media/fly_8.jpg
new file mode 100644
index 00000000..d3c88a60
Binary files /dev/null and b/examples/fframes-intro/media/fly_8.jpg differ
diff --git a/examples/fframes-intro/media/fly_9.jpg b/examples/fframes-intro/media/fly_9.jpg
new file mode 100644
index 00000000..3fcbbe7e
Binary files /dev/null and b/examples/fframes-intro/media/fly_9.jpg differ
diff --git a/examples/fframes-intro/media/frame_self.jpg b/examples/fframes-intro/media/frame_self.jpg
new file mode 100644
index 00000000..f14863c3
Binary files /dev/null and b/examples/fframes-intro/media/frame_self.jpg differ
diff --git a/examples/fframes-intro/media/strip_self.jpg b/examples/fframes-intro/media/strip_self.jpg
new file mode 100644
index 00000000..f2b2c59e
Binary files /dev/null and b/examples/fframes-intro/media/strip_self.jpg differ
diff --git a/examples/fframes-intro/src/beat.rs b/examples/fframes-intro/src/beat.rs
new file mode 100644
index 00000000..7d496d84
--- /dev/null
+++ b/examples/fframes-intro/src/beat.rs
@@ -0,0 +1,126 @@
+//! The musical clock. The soundtrack is an edit of a 132 BPM track whose
+//! cuts all land on phrase boundaries, so the whole video sits on one beat
+//! grid: every scene starts on a downbeat and animations are written in beats.
+
+use fframes::Frame;
+
+pub const FPS: usize = 60;
+/// One beat of the soundtrack, in seconds (132.007 BPM, measured).
+pub const BEAT: f32 = 0.454_522;
+/// First downbeat of the soundtrack (bar 1, beat 1).
+pub const DOWNBEAT0: f32 = 2.148_51;
+/// The music ends with a decay; the video stops with it.
+pub const TOTAL_SECONDS: f32 = 127.5;
+
+pub fn beat_time(beat: f32) -> f32 {
+ DOWNBEAT0 + beat * BEAT
+}
+
+/// The frame a beat starts on, rounded so scene boundaries never drift.
+pub fn beat_frame(beat: f32) -> usize {
+ (beat_time(beat) * FPS as f32).round() as usize
+}
+
+/// Seconds since the start of the video, whichever scene the frame belongs to.
+pub fn gsec(frame: &Frame) -> f32 {
+ frame.global_index as f32 / FPS as f32
+}
+
+/// Position on the beat grid of the whole video (negative before bar 1).
+pub fn gbeat(frame: &Frame) -> f32 {
+ (gsec(frame) - DOWNBEAT0) / BEAT
+}
+
+/// Number of frames between two beats; `None` stands for the start or end of
+/// the video.
+pub fn span_frames(start: Option<f32>, end: Option<f32>) -> usize {
+ let a = start.map(beat_frame).unwrap_or(0);
+ let b = end
+ .map(beat_frame)
+ .unwrap_or((TOTAL_SECONDS * FPS as f32).round() as usize);
+ b - a
+}
+
+// ---------------------------------------------------------------------------
+// easing, all on 0..1
+
+pub fn clamp01(x: f32) -> f32 {
+ x.clamp(0.0, 1.0)
+}
+
+/// Where `x` is between `a` and `b`, clamped to 0..1.
+pub fn prog(x: f32, a: f32, b: f32) -> f32 {
+ clamp01((x - a) / (b - a))
+}
+
+pub fn lerp(a: f32, b: f32, t: f32) -> f32 {
+ a + (b - a) * t
+}
+
+pub fn expo_out(t: f32) -> f32 {
+ let t = clamp01(t);
+ if t >= 1.0 {
+ 1.0
+ } else {
+ 1.0 - 2f32.powf(-10.0 * t)
+ }
+}
+
+pub fn expo_in(t: f32) -> f32 {
+ let t = clamp01(t);
+ if t <= 0.0 {
+ 0.0
+ } else {
+ 2f32.powf(10.0 * t - 10.0)
+ }
+}
+
+pub fn cubic_in_out(t: f32) -> f32 {
+ let t = clamp01(t);
+ if t < 0.5 {
+ 4.0 * t * t * t
+ } else {
+ 1.0 - (-2.0 * t + 2.0).powi(3) / 2.0
+ }
+}
+
+pub fn quart_out(t: f32) -> f32 {
+ 1.0 - (1.0 - clamp01(t)).powi(4)
+}
+
+/// Damped spring from 0 to 1 (mass 1), `t` in seconds since release.
+pub fn spring(t: f32, stiffness: f32, damping: f32) -> f32 {
+ if t <= 0.0 {
+ return 0.0;
+ }
+ let w0 = stiffness.sqrt();
+ let zeta = damping / (2.0 * w0);
+ if zeta < 1.0 {
+ let wd = w0 * (1.0 - zeta * zeta).sqrt();
+ 1.0 - (-zeta * w0 * t).exp() * ((wd * t).cos() + zeta * w0 / wd * (wd * t).sin())
+ } else {
+ 1.0 - (1.0 + w0 * t) * (-w0 * t).exp()
+ }
+}
+
+/// A snappy UI spring, `beats` since it was released.
+pub fn snap(beats: f32) -> f32 {
+ spring(beats * BEAT, 320.0, 22.0)
+}
+
+/// A softer spring with a visible overshoot.
+pub fn soft(beats: f32) -> f32 {
+ spring(beats * BEAT, 170.0, 15.0)
+}
+
+/// Decaying pulse that fires on every beat: 1 on the beat, ~0 half a beat later.
+pub fn pulse(beat: f32, sharpness: f32) -> f32 {
+ let f = beat - beat.floor();
+ (-f * sharpness).exp()
+}
+
+/// Deterministic hash noise, 0..1.
+pub fn hash(n: f32) -> f32 {
+ let x = (n * 127.1 + 311.7).sin() * 43_758.547;
+ x - x.floor()
+}
diff --git a/examples/fframes-intro/src/facts.rs b/examples/fframes-intro/src/facts.rs
new file mode 100644
index 00000000..74d4ad36
--- /dev/null
+++ b/examples/fframes-intro/src/facts.rs
@@ -0,0 +1,30 @@
+//! Every measured number that appears on screen, in one place. They come
+//! from real runs (see render-bench/vs-remotion and this project's CLI) and
+//! are refreshed before the final render.
+
+/// Lines of Rust in fframes plus its SVG renderer fork, svgr (`wc -l` over
+/// the git-tracked `.rs` files of both repositories).
+pub const LINES_OF_RUST: u64 = 89_372;
+/// Frames in this video.
+pub const FRAMES: u64 = 7_650;
+/// Wall-clock seconds of the final render of this video (Skia on Metal,
+/// libx264, with audio).
+pub const RENDER_SECONDS: f32 = 40.5;
+
+/// Benchmark: 1,000,000 text nodes (300 frames × 3,334 nodes, 1920x1080,
+/// H.264, libx264 ultrafast crf 18 on both), median wall-clock seconds of
+/// the whole command. Remotion: 4.0.529, pre-bundled, concurrency 12 (its
+/// best). fframes: Skia on Metal, 2 GPU contexts.
+pub const BENCH_REMOTION_S: f32 = if MOCK_BENCH { 50.4 } else { 7.40 };
+pub const BENCH_FFRAMES_S: f32 = 2.60;
+pub const BENCH_REMOTION_LABEL: &str = "REMOTION 4.0";
+pub const BENCH_FFRAMES_LABEL: &str = "FFRAMES · SKIA ON METAL";
+/// The same run with x264 preset medium on both sides, where encoding takes
+/// a larger share of the time.
+pub const BENCH_MEDIUM_REMOTION_S: f32 = 9.41;
+pub const BENCH_MEDIUM_FFRAMES_S: f32 = 6.29;
+pub const BENCH_NOTE: &str = "M4 MAX · REMOTION 4.0.529, BEST CONCURRENCY, PRE-BUNDLED · X264 ULTRAFAST CRF 18 ON BOTH · MEDIANS";
+
+/// Placeholder benchmark numbers while the realistic workloads are measured.
+/// Never publish a render made with this on.
+pub const MOCK_BENCH: bool = true;
diff --git a/examples/fframes-intro/src/lib.rs b/examples/fframes-intro/src/lib.rs
new file mode 100644
index 00000000..cf8f4c0c
--- /dev/null
+++ b/examples/fframes-intro/src/lib.rs
@@ -0,0 +1,220 @@
+//! A 128 second introduction to fframes, made with fframes.
+//!
+//! Everything is placed on the beat grid of the soundtrack (see `beat.rs`).
+//! Scenes are named after what they show; `cargo run --release -- timeline`
+//! lists them with their bars.
+
+pub mod beat;
+pub mod facts;
+pub mod scenes;
+pub mod shaders;
+pub mod ui;
+
+use fframes::{
+ AudioMap, AudioTimestamp::*, AudioTrack, Color, Duration, FFramesContext, Frame, Scene, Scenes,
+ ShaderUniforms, Svgr, Video, include_media_dir,
+};
+
+use beat::*;
+use scenes::*;
+use shaders::SHADERS;
+use ui::*;
+
+include_media_dir!(pub struct IntroMedia, "examples/fframes-intro/media");
+
+pub const WIDTH: usize = 1920;
+pub const HEIGHT: usize = 1080;
+
+#[derive(Debug)]
+pub struct IntroVideo;
+
+/// Section titles for the HUD, by the beat they start on.
+const SECTIONS: &[(f32, &str)] = &[
+ (-99.0, "00 / PROMPT"),
+ (0.0, "01 / ORIGIN"),
+ (32.0, "02 / CODE"),
+ (48.0, "03 / GPU"),
+ (56.0, "04 / TEXT"),
+ (62.0, "05 / IMAGE"),
+ (66.0, "06 / VIDEO"),
+ (72.0, "07 / SHADER"),
+ (80.0, "08 / SCALE"),
+ (96.0, "09 / BENCHMARK"),
+ (128.0, "10 / PREVIEW"),
+ (160.0, "11 / AGENTS"),
+ (208.0, "12 / GPU"),
+ (224.0, "13 / RECAP"),
+ (236.0, "14 / DONE"),
+ (240.0, "15 / FFRAMES"),
+];
+
+/// Sound effects, placed on the beat minus the file's attack.
+fn sfx(name: &'static str, at: f32, gain: f32) -> AudioTrack<'static> {
+ AudioTrack::new(name, Second(at.max(0.0))..Eof).gain_db(gain)
+}
+
+impl Video for IntroVideo {
+ const FPS: usize = FPS;
+ const WIDTH: usize = WIDTH;
+ const HEIGHT: usize = HEIGHT;
+ const BACKGROUND_COLOR: Color = Color::BLACK;
+
+ fn duration(&self) -> Duration<'_> {
+ Duration::Auto
+ }
+
+ fn audio(&self) -> AudioMap<'_> {
+ let mut tracks = vec![
+ AudioTrack::new("music.wav", Second(0.0)..Eof).fade_out(1.5),
+ sfx("sfx_typing.mp3", 0.02, -15.0),
+ sfx("sfx_enter.mp3", beat_time(-1.0) - 0.067, -9.0),
+ sfx("sfx_impact.mp3", beat_time(48.0), -10.0),
+ sfx("sfx_shutter.mp3", beat_time(62.0) - 0.02, -2.0),
+ sfx("sfx_glitch.mp3", beat_time(70.0) - 0.2, -8.0),
+ sfx("sfx_impact.mp3", beat_time(96.0), -10.0),
+ sfx("sfx_impact.mp3", beat_time(144.0), -12.0),
+ sfx("sfx_impact.mp3", beat_time(208.0), -11.0),
+ sfx("sfx_typing.mp3", beat_time(236.2), -18.0),
+ sfx("sfx_impact.mp3", beat_time(240.0), -7.0),
+ sfx("sfx_braam.mp3", beat_time(240.0), -9.0),
+ ];
+ for b in [56.0, 62.0, 66.0, 72.0, 80.0, 128.0, 160.0, 224.0] {
+ tracks.push(sfx("sfx_whoosh.mp3", beat_time(b) - 0.18, -15.0));
+ }
+ for b in agents::CARD_BEATS {
+ tracks.push(sfx("sfx_blip.mp3", beat_time(*b), -9.0));
+ }
+ AudioMap::from(tracks)
+ }
+
+ fn define_scenes(&self) -> Scenes<'_> {
+ Scenes::from(vec![
+ &PromptScene as &dyn Scene,
+ &OriginScene,
+ &CodeScene,
+ &GpuScene,
+ &TextScene,
+ &ImageScene,
+ &VideoScene,
+ &ShaderScene,
+ &ScaleScene,
+ &BenchmarkScene,
+ &PreviewScene,
+ &AgentsScene,
+ &RenderScene,
+ &RecapScene,
+ &DoneScene,
+ &OutroScene,
+ ])
+ }
+
+ fn render_frame<'a>(&'a self, frame: Frame, ctx: &FFramesContext<'a, '_>) -> Svgr<'a> {
+ let b = gbeat(&frame);
+ let grain = SHADERS.grain.draw(
+ &frame,
+ ShaderUniforms::new()
+ .float("uGrain", 0.07)
+ .float("uVignette", 0.55),
+ );
+ fframes::svgr!(
+ <svg xmlns="http://www.w3.org/2000/svg" width="1920" height="1080" viewBox="0 0 1920 1080">
+ <rect width="1920" height="1080" fill={BG} />
+ {energy(&frame, ctx, b)}
+ <image href={grain.href()} x="0" y="0" width="1920" height="1080" />
+ {hud(&frame, b)}
+ </svg>
+ )
+ }
+}
+
+fn hud(frame: &Frame, b: f32) -> Svgr<'static> {
+ // the HUD sits out the silent bar and the logo slam
+ let hidden = (236.0..244.0).contains(&b);
+ let appear = prog(gsec(frame), 0.1, 0.5);
+ if hidden || appear <= 0.0 {
+ return Svgr::empty();
+ }
+ let section = SECTIONS
+ .iter()
+ .rev()
+ .find(|(start, _)| b >= *start)
+ .map(|(_, name)| *name)
+ .unwrap_or("");
+ let bar = if b < 0.0 {
+ 0
+ } else {
+ (b / 4.0).floor() as i32 + 1
+ };
+ let beat_in_bar = if b < 0.0 {
+ 0
+ } else {
+ (b.rem_euclid(4.0)).floor() as i32 + 1
+ };
+ let tc = timecode(gsec(frame));
+ let fnum = format!("F {:05}", frame.global_index);
+ let bpm = format!("132 BPM BAR {bar:03}.{beat_in_bar}");
+ // a tick that flashes on every beat
+ let tick = if b < 0.0 { 0.0 } else { pulse(b, 7.0) };
+ let progress = (gsec(frame) / TOTAL_SECONDS * 1788.0).max(0.5);
+ fframes::svgr!(
+ <g opacity={appear * 0.9} style="mix-blend-mode:difference">
+ {corners(36.0, 36.0, 1848.0, 1008.0, 26.0, "#d8d4cc", 2.0)}
+ {label(66.0, 78.0, "FFRAMES — INTRO".to_owned(), "#d8d4cc", 17.0, "start")}
+ {label(1854.0, 78.0, bpm, "#d8d4cc", 17.0, "end")}
+ <rect x="1840" y="92" width="14" height="14" fill={ORANGE} opacity={0.25 + tick * 0.75} />
+ {label(66.0, 1018.0, tc, "#d8d4cc", 17.0, "start")}
+ {label(290.0, 1018.0, fnum, "#77736d", 17.0, "start")}
+ {label(1854.0, 1018.0, section.to_owned(), "#d8d4cc", 17.0, "end")}
+ <rect x="66" y="1034" width="1788" height="1" fill="#d8d4cc" opacity="0.25" />
+ <rect x="66" y="1033" width={progress} height="3" fill="#d8d4cc" />
+ </g>
+ )
+}
+
+/// Sections where the full beat plays: the picture pumps with the kick.
+const PUMPING: &[(f32, f32)] = &[(48.0, 80.0), (96.0, 160.0), (208.0, 236.0), (240.0, 268.0)];
+/// Cuts that glitch for a few frames.
+const GLITCH_CUTS: &[f32] = &[32.0, 56.0, 62.0, 66.0, 72.0, 80.0, 128.0, 144.0, 224.0];
+/// Drops that flash.
+const DROPS: &[f32] = &[48.0, 96.0, 144.0, 208.0];
+
+fn energy<'a>(frame: &Frame, ctx: &FFramesContext<'a, '_>, b: f32) -> Svgr<'a> {
+ let pumping = PUMPING.iter().any(|(s, e)| (*s..*e).contains(&b));
+ let pump = if pumping { pulse(b, 9.0) } else { 0.0 };
+ let s = 1.0 + pump * 0.008;
+ let flash = DROPS
+ .iter()
+ .map(|d| if b >= *d { (-(b - d) * 7.0).exp() } else { 0.0 })
+ .fold(0.0_f32, f32::max);
+
+ // a cut glitches for 3 frames: the picture splits in bands pushed sideways
+ let since_cut = GLITCH_CUTS
+ .iter()
+ .map(|c| (b - c) * BEAT * FPS as f32)
+ .find(|f| *f >= 0.0 && *f < 3.0);
+ let scene = if let Some(f) = since_cut {
+ let bands: Vec<Svgr> = (0..6)
+ .map(|i| {
+ let y = i as f32 * 180.0;
+ let dx = (hash(i as f32 * 13.0 + f.floor() * 7.0) - 0.5) * 140.0 * (1.0 - f / 3.0);
+ let id = format!("glitch-{i}");
+ let url = format!("url(#{id})");
+ fframes::svgr!(
+ <g>
+ <clipPath id={id.clone()}><rect x="0" y={y} width="1920" height="180" /></clipPath>
+ <g clip-path={url} transform={format!("translate({dx} 0)")}>{ctx.render_scenes(frame)}</g>
+ </g>
+ )
+ })
+ .collect();
+ fframes::svgr!(<g>{bands}</g>)
+ } else {
+ ctx.render_scenes(frame)
+ };
+ fframes::svgr!(
+ <g>
+ <g transform={format!("translate(960 540) scale({s}) translate(-960 -540)")}>{scene}</g>
+ <rect width="1920" height="1080" fill={BONE} opacity={flash * 0.55} />
+ </g>
+ )
+}
diff --git a/examples/fframes-intro/src/main.rs b/examples/fframes-intro/src/main.rs
new file mode 100644
index 00000000..b1492dbf
--- /dev/null
+++ b/examples/fframes-intro/src/main.rs
@@ -0,0 +1,55 @@
+use fframes::{
+ AudioMixOptions, CombinedMediaProvider, EncoderOptions, LimiterOptions, MediaDirectory,
+ MediaProvider, RenderOptions, StaticMediaProvider, cli,
+};
+use fframes_intro::{HEIGHT, IntroMedia, IntroVideo, WIDTH};
+use fframes_skia_renderer::{
+ SkiaFFramesRenderer, SkiaPipelineConcurrencyPolicy, SkiaPipelineConfig, metal::SkiaMetalCtx,
+};
+use std::path::Path;
+use std::process::ExitCode;
+
+fn main() -> ExitCode {
+ let media = IntroMedia::prepare().expect("media");
+ // music, sound effects and the podcast clips: loaded at runtime, stereo
+ let folder = Path::new(env!("CARGO_MANIFEST_DIR")).join("dynamic_media");
+ let dir = MediaDirectory::read_folder(&folder).expect("dynamic media folder");
+ let dynamic = dir.process_media_source().expect("dynamic media");
+ let all = CombinedMediaProvider::from([&media as &dyn MediaProvider, &dynamic]);
+ let gpu = SkiaMetalCtx::new(WIDTH, HEIGHT).expect("GPU context");
+
+ cli::new(
+ &IntroVideo,
+ RenderOptions {
+ media: Some(&all),
+ video_encoder_options: EncoderOptions {
+ preferred_encoder: Some("libx264"),
+ codec_params: Some(&[("crf", "16"), ("preset", "medium"), ("tune", "film")]),
+ ..Default::default()
+ },
+ // the music edit measures about -17.5 LUFS; lift it to about -14 for the web
+ audio_mix: AudioMixOptions {
+ master_gain_db: 3.5,
+ // room for inter-sample peaks: true peak stays under -1 dBTP
+ limiter: Some(LimiterOptions {
+ ceiling_db: -1.3,
+ ..Default::default()
+ }),
+ ..Default::default()
+ },
+ ..Default::default()
+ },
+ )
+ .backend(
+ SkiaFFramesRenderer::new_metal(
+ &gpu,
+ SkiaPipelineConfig {
+ concurrency_policy: SkiaPipelineConcurrencyPolicy::MaxPerformance,
+ ..Default::default()
+ },
+ )
+ .expect("skia renderer"),
+ )
+ .preview(fframes_native_player::cli_preview)
+ .run()
+}
diff --git a/examples/fframes-intro/src/scenes/agents.rs b/examples/fframes-intro/src/scenes/agents.rs
new file mode 100644
index 00000000..ca090ea2
--- /dev/null
+++ b/examples/fframes-intro/src/scenes/agents.rs
@@ -0,0 +1,283 @@
+//! The breakdown: the loop an agent runs while it makes a video, with real
+//! output of this project's command line on the hi-hat hits. Ends on "this
+//! video was made by an agent".
+
+use fframes::{Color, Duration, FFramesContext, Frame, Scene, ShaderUniforms, Svgr};
+
+use crate::beat::*;
+use crate::shaders::SHADERS;
+use crate::ui::*;
+
+beat_scene!(AgentsScene, Some(160.0), Some(208.0));
+
+/// Global beats of the stutter hits that bring in a new card.
+pub const CARD_BEATS: &[f32] = &[175.0, 179.0, 183.0, 187.0, 191.0, 195.0];
+
+const NODES: &[&str] = &["WRITE", "TIMELINE", "INSPECT", "STRIP", "FRAME", "RENDER"];
+
+enum Body {
+ Lines(&'static [(&'static str, &'static str)]),
+ Image(&'static str, f32),
+}
+
+struct Card {
+ node: usize,
+ command: &'static str,
+ body: Body,
+}
+
+/// Output of the commands, as printed for this video.
+const CARDS: &[Card] = &[
+ Card {
+ node: 1,
+ command: "cargo run -- timeline",
+ body: Body::Lines(&[
+ ("1920x1080 @ 60 fps, 7650 frames (127.50s)", BONE),
+ ("#0 PromptScene 0.00s..2.15s", GREY),
+ ("#1 OriginScene 2.15s..16.70s", GREY),
+ ("#2 CodeScene 16.70s..23.97s", GREY),
+ ("#3 GpuScene 23.97s..27.60s", GREY),
+ ("audio music.wav 0.000s..127.500s", ORANGE),
+ ]),
+ },
+ Card {
+ node: 2,
+ command: "cargo run -- inspect",
+ body: Body::Lines(&[
+ ("checked 540 frames: 13 findings", BONE),
+ ("0 errors · 13 warnings: marquee rows and", GREY),
+ ("type that overflows the canvas on purpose", GREY),
+ ]),
+ },
+ Card {
+ node: 3,
+ command: "cargo run -- strip all -n 30",
+ body: Body::Image("strip_self.jpg", 1.887),
+ },
+ Card {
+ node: 4,
+ command: "cargo run -- frame [email protected]",
+ body: Body::Image("frame_self.jpg", 1.778),
+ },
+ Card {
+ node: 0,
+ command: "cargo run -- audio analyze",
+ body: Body::Lines(&[
+ ("integrated -14.1 LUFS, range 10.3 LU", BONE),
+ ("true peak -1.2 dBTP, clipped samples 0", BONE),
+ ("GpuScene 23.97s..27.60s -13.0 LUFS", GREY),
+ ("BenchmarkScene 45.78s..60.33s -13.0 LUFS", GREY),
+ ]),
+ },
+ Card {
+ node: 5,
+ command: "cargo run -- render --draft",
+ body: Body::Lines(&[
+ ("out.mp4 frames 0..7650 (0.00s..127.50s)", GREY),
+ ("960x540 in 5.3s", ORANGE),
+ ]),
+ },
+];
+
+const RING_X: f32 = 1370.0;
+const RING_Y: f32 = 590.0;
+const RING_R: f32 = 250.0;
+
+impl Scene for AgentsScene {
+ fn duration(&self) -> Duration<'_> {
+ Self::frames()
+ }
+
+ fn render_frame<'a>(&'a self, frame: Frame, ctx: &FFramesContext<'a, '_>) -> Svgr<'a> {
+ let lb = Self::lb(&frame);
+ let bg = SHADERS.contour.draw(
+ &frame,
+ ShaderUniforms::new()
+ .float2("uWell", RING_X / 1920.0, RING_Y / 1080.0)
+ .float("uDepth", 0.9)
+ .float("uDensity", 20.0)
+ .float("uBright", 0.3 * prog(lb, 0.0, 2.0))
+ .color("uInk", Color::hex("#8a857c"))
+ .color("uHot", Color::hex(ORANGE)),
+ );
+ let bg = fframes::svgr!(<image href={bg.href()} x="0" y="0" width="1920" height="1080" />);
+ if lb >= 40.0 {
+ return fframes::svgr!(<g>{bg}{confession(lb - 40.0)}</g>);
+ }
+ let title_a = snap(lb);
+ let title_b = snap(lb - 1.5);
+ let exit = expo_in(prog(lb, 39.6, 40.0));
+
+ // which card is on screen
+ let local_cards: Vec<f32> = CARD_BEATS.iter().map(|b| b - 160.0).collect();
+ let active = local_cards.iter().rposition(|b| lb >= *b);
+ let card_svg = match active {
+ Some(i) => card(ctx, &CARDS[i], lb - local_cards[i]),
+ None => prompt_card(lb - 6.0),
+ };
+ let lit = active.map(|i| CARDS[i].node);
+
+ fframes::svgr!(
+ <g>
+ {bg}
+ <g opacity={1.0 - exit}>
+ <g transform={format!("translate(0 {})", (1.0 - title_a) * 60.0)} opacity={prog(lb, 0.0, 0.1)}>
+ <text x="150" y="235" font-family={DISPLAY} font-size="110" letter-spacing="-4" fill={BONE}>"BUILT FOR THE"</text>
+ </g>
+ <g transform={format!("translate(0 {})", (1.0 - title_b) * 60.0)} opacity={prog(lb, 1.5, 1.6)}>
+ <text x="150" y="345" font-family={DISPLAY} font-size="110" letter-spacing="-4" fill={ORANGE}>"AGENTIC LOOP."</text>
+ </g>
+ {ring(lb, lit)}
+ {card_svg}
+ </g>
+ </g>
+ )
+ }
+}
+
+fn ring(lb: f32, lit: Option<usize>) -> Svgr<'static> {
+ let draw = cubic_in_out(prog(lb, 2.0, 5.0));
+ let circ = std::f32::consts::TAU * RING_R;
+ let dash = format!("{} {}", circ * draw, circ);
+ let mut nodes = Vec::new();
+ for (i, name) in NODES.iter().enumerate() {
+ let a =
+ -std::f32::consts::FRAC_PI_2 + i as f32 / NODES.len() as f32 * std::f32::consts::TAU;
+ let (x, y) = (RING_X + a.cos() * RING_R, RING_Y + a.sin() * RING_R);
+ let at = 2.5 + i as f32 * 0.4;
+ let s = snap(lb - at);
+ let on = lit == Some(i);
+ let lx = RING_X + a.cos() * (RING_R + 44.0);
+ let ly = RING_Y + a.sin() * (RING_R + 44.0) + 8.0;
+ let anchor = if a.cos() > 0.3 {
+ "start"
+ } else if a.cos() < -0.3 {
+ "end"
+ } else {
+ "middle"
+ };
+ let size = 18.0 + if on { 8.0 } else { 0.0 };
+ nodes.push(fframes::svgr!(
+ <g opacity={prog(lb, at, at + 0.1)}>
+ <rect x={x - size / 2.0} y={y - size / 2.0} width={size * s.max(0.05)} height={size * s.max(0.05)}
+ fill={if on { ORANGE } else { BG }} stroke={if on { ORANGE } else { BONE }} stroke-width="2" />
+ <text x={lx} y={ly} text-anchor={anchor} font-family={MONO} font-weight="600" font-size="22" letter-spacing="3"
+ fill={if on { ORANGE } else { BONE }}>{*name}</text>
+ </g>
+ ));
+ }
+ // comet: one lap per 8 beats, a short trail behind it
+ let comet: Vec<Svgr> = if lb > 5.0 {
+ (0..10)
+ .map(|k| {
+ let t = (lb - 5.0) / 8.0 - k as f32 * 0.008;
+ let a = -std::f32::consts::FRAC_PI_2 + t * std::f32::consts::TAU;
+ let (x, y) = (RING_X + a.cos() * RING_R, RING_Y + a.sin() * RING_R);
+ let r = 7.0 - k as f32 * 0.5;
+ fframes::svgr!(<circle cx={x} cy={y} r={r} fill={ORANGE} opacity={1.0 - k as f32 / 10.0} />)
+ })
+ .collect()
+ } else {
+ Vec::new()
+ };
+ let center = prog(lb, 4.0, 4.5);
+ fframes::svgr!(
+ <g>
+ <circle cx={RING_X} cy={RING_Y} r={RING_R} fill="none" stroke={GREY} stroke-width="1.5"
+ stroke-dasharray={dash} transform={format!("rotate(-90 {RING_X} {RING_Y})")} />
+ <circle cx={RING_X} cy={RING_Y} r={RING_R - 30.0} fill="none" stroke={DIM} stroke-width="1" stroke-dasharray="4 8" opacity={draw} />
+ {comet}
+ {nodes}
+ <g opacity={center}>
+ <text x={RING_X} y={RING_Y - 6.0} text-anchor="middle" font-family={SERIF} font-style="italic" font-size="64" fill={BONE}>"the agent"</text>
+ <text x={RING_X} y={RING_Y + 36.0} text-anchor="middle" font-family={MONO} font-weight="500" font-size="18" letter-spacing="3" fill={GREY}>"NEVER WATCHES A VIDEO"</text>
+ </g>
+ </g>
+ )
+}
+
+/// A terminal card: the command, then its output lines or image.
+fn card(ctx: &FFramesContext, card: &Card, l: f32) -> Svgr<'static> {
+ let (x, y, w) = (150.0, 440.0, 800.0);
+ let enter = snap(l);
+ let typed = ((l / 0.5) * card.command.len() as f32).min(card.command.len() as f32) as usize;
+ let command: String = card.command.chars().take(typed).collect();
+ let body_o = prog(l, 0.45, 0.6);
+ let (body, h) = match &card.body {
+ Body::Lines(lines) => {
+ let rows: Vec<Svgr> = lines
+ .iter()
+ .enumerate()
+ .map(|(i, (text, color))| {
+ let o = prog(l, 0.5 + i as f32 * 0.08, 0.55 + i as f32 * 0.08);
+ fframes::svgr!(<text x={x + 28.0} y={y + 110.0 + i as f32 * 36.0} font-family={MONO} font-weight="500" font-size="23" fill={*color} opacity={o}>{*text}</text>)
+ })
+ .collect();
+ (
+ fframes::svgr!(<g>{rows}</g>),
+ 90.0 + lines.len() as f32 * 36.0 + 20.0,
+ )
+ }
+ Body::Image(name, aspect) => {
+ let iw = w - 56.0;
+ let ih = iw / aspect;
+ let img = ctx
+ .get_image(name)
+ .map(|img| fframes::svgr!(<image href={img.href()} x={x + 28.0} y={y + 84.0} width={iw} height={ih} />))
+ .unwrap_or_default();
+ (
+ fframes::svgr!(<g opacity={body_o}>{img}</g>),
+ 84.0 + ih + 28.0,
+ )
+ }
+ };
+ fframes::svgr!(
+ <g opacity={prog(l, 0.0, 0.08)} transform={format!("translate({} 0)", (1.0 - enter) * -80.0)}>
+ <rect x={x} y={y} width={w} height={h} fill="#0e0d0c" fill-opacity="0.92" stroke="#3d3a35" stroke-width="1.5" />
+ <rect x={x} y={y} width="4" height={h} fill={ORANGE} />
+ <text x={x + 28.0} y={y + 52.0} font-family={MONO} font-weight="600" font-size="25" fill={ORANGE}>"$"</text>
+ <text x={x + 58.0} y={y + 52.0} font-family={MONO} font-weight="500" font-size="25" fill={BONE}>{command}</text>
+ <rect x={x + 28.0} y={y + 70.0} width={w - 56.0} height="1" fill="#3d3a35" />
+ {body}
+ </g>
+ )
+}
+
+/// THIS VIDEO WAS / MADE BY AN AGENT.
+fn confession(l: f32) -> Svgr<'static> {
+ let c = prog(l, 3.0, 3.4);
+ let collapse = expo_in(prog(l, 7.3, 8.0));
+ let s = 1.0 - collapse * 0.15;
+ fframes::svgr!(
+ <g opacity={1.0 - collapse} transform={format!("translate(960 540) scale({s}) translate(-960 -540)")}>
+ {Slam::new(150.0, 470.0, "THIS VIDEO WAS", DISPLAY, 138.0, BONE).draw(l, 0.0, 160.0)}
+ {Slam::new(150.0, 630.0, "MADE BY AN AGENT.", DISPLAY, 138.0, ORANGE).draw(l - 1.0, 0.0, 160.0)}
+ <text x="156" y="712" font-family={SERIF} font-style="italic" font-size="54" fill={BONE} opacity={c}>"in Rust, with fframes. No timeline editor was opened."</text>
+ </g>
+ )
+}
+
+/// Before the first command: the prompt from the cold open, again.
+fn prompt_card(l: f32) -> Svgr<'static> {
+ if l < 0.0 {
+ return Svgr::empty();
+ }
+ let text = crate::scenes::prompt::PROMPT;
+ let typed = ((l / 3.0) * text.len() as f32).min(text.len() as f32) as usize;
+ let shown: String = text.chars().take(typed).collect();
+ let (first, second) = if shown.len() > 33 {
+ (shown[..33].to_owned(), shown[33..].to_owned())
+ } else {
+ (shown, String::new())
+ };
+ let enter = snap(l);
+ fframes::svgr!(
+ <g opacity={prog(l, 0.0, 0.1)} transform={format!("translate({} 0)", (1.0 - enter) * -80.0)}>
+ <text x="150" y="480" font-family={MONO} font-weight="500" font-size="20" letter-spacing="3" fill={GREY}>"IT STARTS WITH A PROMPT"</text>
+ <rect x="150" y="510" width="800" height="150" fill="#0e0d0c" fill-opacity="0.92" stroke={ORANGE} stroke-width="2" />
+ <text x="180" y="572" font-family={MONO} font-weight="600" font-size="32" fill={ORANGE}>"›"</text>
+ <text x="220" y="572" font-family={MONO} font-weight="500" font-size="32" fill={BONE}>{first}</text>
+ <text x="220" y="620" font-family={MONO} font-weight="500" font-size="32" fill={BONE}>{second}</text>
+ </g>
+ )
+}
diff --git a/examples/fframes-intro/src/scenes/benchmark.rs b/examples/fframes-intro/src/scenes/benchmark.rs
new file mode 100644
index 00000000..bda2bf5a
--- /dev/null
+++ b/examples/fframes-intro/src/scenes/benchmark.rs
@@ -0,0 +1,177 @@
+//! The drop after the riser. Remotion and fframes render the same million
+//! text nodes; the race runs as a time-lapse of the measured wall-clock times.
+
+use fframes::{Color, Duration, FFramesContext, Frame, Scene, ShaderUniforms, Svgr};
+
+use crate::beat::*;
+use crate::facts::*;
+use crate::shaders::SHADERS;
+use crate::ui::*;
+
+beat_scene!(BenchmarkScene, Some(96.0), Some(128.0));
+
+const RACE_START: f32 = 2.0;
+/// The slower renderer crosses the line after this many beats.
+const RACE_BEATS: f32 = 12.0;
+const RESULT_AT: f32 = 16.0;
+const TABLE_AT: f32 = 22.0;
+
+impl Scene for BenchmarkScene {
+ fn duration(&self) -> Duration<'_> {
+ Self::frames()
+ }
+
+ fn render_frame<'a>(&'a self, frame: Frame, _ctx: &FFramesContext<'a, '_>) -> Svgr<'a> {
+ let lb = Self::lb(&frame);
+ if (RESULT_AT..TABLE_AT).contains(&lb) {
+ return result(lb - RESULT_AT);
+ }
+ let grid = SHADERS.grid.draw(
+ &frame,
+ ShaderUniforms::new()
+ .float("uSpeed", 2.0)
+ .float("uHorizon", 0.62)
+ .float("uBright", 0.35)
+ .color("uInk", Color::hex("#6f6a63"))
+ .color("uHot", Color::hex(ORANGE)),
+ );
+ let body = if lb < RESULT_AT {
+ race(lb)
+ } else {
+ table(lb - TABLE_AT)
+ };
+ fframes::svgr!(
+ <g>
+ <image href={grid.href()} x="0" y="0" width="1920" height="1080" />
+ {body}
+ </g>
+ )
+ }
+}
+
+fn slowest() -> f32 {
+ BENCH_REMOTION_S.max(BENCH_FFRAMES_S).max(0.001)
+}
+
+fn race(lb: f32) -> Svgr<'static> {
+ let exit = expo_in(prog(lb, 15.6, 16.0));
+ // seconds of the real run shown at this beat
+ let real = prog(lb, RACE_START, RACE_START + RACE_BEATS) * slowest();
+ let speedup = slowest() / (RACE_BEATS * BEAT);
+ let lanes = [
+ (
+ BENCH_REMOTION_LABEL,
+ "CHROME + REACT, SCREENSHOT PER FRAME",
+ BENCH_REMOTION_S,
+ GREY,
+ 470.0,
+ ),
+ (
+ BENCH_FFRAMES_LABEL,
+ "RUST, SVG TREE → GPU",
+ BENCH_FFRAMES_S,
+ ORANGE,
+ 700.0,
+ ),
+ ];
+ let rows: Vec<Svgr> = lanes
+ .iter()
+ .enumerate()
+ .map(|(i, (name, sub, secs, color, y))| {
+ let appear = snap(lb - 0.6 - i as f32 * 0.3);
+ let p = (real / secs.max(0.001)).min(1.0);
+ let done = p >= 1.0;
+ let shown = real.min(*secs);
+ let bar_w = (1620.0 * p).max(0.5);
+ let done_at = RACE_START + RACE_BEATS * secs / slowest();
+ let stamp = snap(lb - done_at);
+ let flash = if done { (-(lb - done_at) * 6.0).exp() } else { 0.0 };
+ let frames_done = (300.0 * p).floor() as u32;
+ fframes::svgr!(
+ <g opacity={prog(lb, 0.6 + i as f32 * 0.3, 0.7 + i as f32 * 0.3)} transform={format!("translate({} 0)", (1.0 - appear) * -120.0)}>
+ <text x="150" y={*y} font-family={DISPLAY} font-size="58" letter-spacing="-2" fill={if i == 1 { ORANGE } else { BONE }}>{*name}</text>
+ <text x="150" y={*y + 34.0} font-family={MONO} font-weight="500" font-size="18" letter-spacing="2.5" fill={GREY}>{*sub}</text>
+ <rect x="150" y={*y + 56.0} width="1620" height="64" fill="#141312" stroke="#2f2c29" stroke-width="1.5" />
+ <rect x="150" y={*y + 56.0} width={bar_w} height="64" fill={*color} />
+ <rect x="150" y={*y + 56.0} width="1620" height="64" fill={BONE} opacity={flash * 0.6} />
+ <text x="1770" y={*y} text-anchor="end" font-family={MONO} font-weight="600" font-size="52" fill={if done { *color } else { BONE }}>{format!("{shown:.1}s")}</text>
+ <text x="170" y={*y + 100.0} font-family={MONO} font-weight="600" font-size="22" letter-spacing="2" fill={INK} opacity={if bar_w > 260.0 { 1.0 } else { 0.0 }}>{format!("{frames_done} / 300 FRAMES")}</text>
+ <g opacity={if done { 1.0 } else { 0.0 }} transform={format!("translate(0 {})", (1.0 - stamp) * 20.0)}>
+ <text x="1750" y={*y + 100.0} text-anchor="end" font-family={MONO} font-weight="700" font-size="24" letter-spacing="4" fill={INK}>"DONE"</text>
+ </g>
+ </g>
+ )
+ })
+ .collect();
+ fframes::svgr!(
+ <g opacity={1.0 - exit}>
+ {Slam::new(150.0, 250.0, "1,000,000 TEXT NODES", DISPLAY, 120.0, BONE).draw(lb, 0.0, 140.0)}
+ {label(154.0, 310.0, "300 FRAMES · 1920×1080 · H.264 · SAME LAYOUT, SAME FONT".to_owned(), GREY, 20.0, "start")}
+ {rows}
+ <g opacity={prog(lb, RACE_START, RACE_START + 0.2)}>
+ {label(1770.0, 310.0, format!("TIME-LAPSE ×{speedup:.1} · MEASURED WALL CLOCK"), ORANGE, 20.0, "end")}
+ </g>
+ </g>
+ )
+}
+
+/// N× FASTER on an orange field.
+fn result(l: f32) -> Svgr<'static> {
+ let ratio = BENCH_REMOTION_S / BENCH_FFRAMES_S.max(0.001);
+ let n = 1.0 + (ratio - 1.0) * expo_out(prog(l, 0.0, 1.2));
+ let s = 1.0 + (1.0 - expo_out(l / 0.35)) * 0.15;
+ let word = snap(l - 1.0);
+ let exit = expo_in(prog(l, 5.7, 6.0));
+ fframes::svgr!(
+ <g opacity={1.0 - exit}>
+ <rect width="1920" height="1080" fill={ORANGE} />
+ <g transform={format!("translate(150 760) scale({s}) translate(-150 -760)")}>
+ <text x="130" y="760" font-family={DISPLAY} font-size="560" letter-spacing="-30" fill={INK}>{format!("{n:.1}×")}</text>
+ </g>
+ <text x="150" y={900.0 + (1.0 - word) * 60.0} font-family={DISPLAY} font-size="120" letter-spacing="-4" fill={INK} opacity={prog(l, 1.0, 1.08)}>"FASTER THAN REMOTION"</text>
+ <g font-family={MONO} font-weight="600" font-size="22" letter-spacing="4" fill={INK}>
+ <text x="150" y="170">"SAME 1,000,000 TEXT NODES"</text>
+ <text x="1770" y="170" text-anchor="end">"SAME ENCODER · MEDIAN WALL CLOCK"</text>
+ </g>
+ <rect x="150" y="196" width="1620" height="3" fill={INK} />
+ </g>
+ )
+}
+
+fn table(l: f32) -> Svgr<'static> {
+ let rows = [
+ (BENCH_REMOTION_LABEL, BENCH_REMOTION_S, GREY),
+ (BENCH_FFRAMES_LABEL, BENCH_FFRAMES_S, ORANGE),
+ ];
+ let items: Vec<Svgr> = rows
+ .iter()
+ .enumerate()
+ .map(|(i, (name, secs, color))| {
+ let at = 0.3 + i as f32 * 0.5;
+ let s = snap(l - at);
+ let y = 520.0 + i as f32 * 130.0;
+ let fps = 300.0 / secs.max(0.001);
+ fframes::svgr!(
+ <g opacity={prog(l, at, at + 0.08)} transform={format!("translate({} 0)", (1.0 - s) * 80.0)}>
+ <rect x="150" y={y - 70.0} width="1620" height="110" fill="#0f0e0d" fill-opacity="0.85" stroke="#2f2c29" stroke-width="1.5" />
+ <rect x="150" y={y - 70.0} width="6" height="110" fill={*color} />
+ <text x="190" y={y} font-family={DISPLAY} font-size="48" letter-spacing="-1" fill={BONE}>{*name}</text>
+ <text x="1250" y={y} text-anchor="end" font-family={MONO} font-weight="600" font-size="48" fill={*color}>{format!("{secs:.1} s")}</text>
+ <text x="1740" y={y} text-anchor="end" font-family={MONO} font-weight="600" font-size="48" fill={*color}>{format!("{fps:.0} fps")}</text>
+ </g>
+ )
+ })
+ .collect();
+ let exit = expo_in(prog(l, 9.6, 10.0));
+ fframes::svgr!(
+ <g opacity={1.0 - exit}>
+ {Slam::new(150.0, 300.0, "THE NUMBERS", DISPLAY, 110.0, BONE).draw(l, 0.0, 120.0)}
+ {label(1250.0, 400.0, "WALL CLOCK".to_owned(), GREY, 18.0, "end")}
+ {label(1740.0, 400.0, "THROUGHPUT".to_owned(), GREY, 18.0, "end")}
+ {items}
+ {label(154.0, 820.0, format!("WITH X264 PRESET MEDIUM ON BOTH, ENCODING DOMINATES: {BENCH_MEDIUM_REMOTION_S:.1} S VS {BENCH_MEDIUM_FFRAMES_S:.1} S ({:.1}×)", BENCH_MEDIUM_REMOTION_S / BENCH_MEDIUM_FFRAMES_S), BONE, 18.0, "start")}
+ {label(154.0, 860.0, BENCH_NOTE.to_owned(), GREY, 18.0, "start")}
+ {label(154.0, 900.0, "REPRODUCE: RENDER-BENCH/VS-REMOTION IN THE FFRAMES REPO".to_owned(), ORANGE, 18.0, "start")}
+ </g>
+ )
+}
diff --git a/examples/fframes-intro/src/scenes/code.rs b/examples/fframes-intro/src/scenes/code.rs
new file mode 100644
index 00000000..97e6eac7
--- /dev/null
+++ b/examples/fframes-intro/src/scenes/code.rs
@@ -0,0 +1,203 @@
+//! The code of a video is typed out while its output renders next to it.
+//! The lift ends in a bar of near silence reading "rendered on the".
+
+use fframes::{Duration, FFramesContext, Frame, Scene, Svgr};
+
+use crate::beat::*;
+use crate::ui::*;
+
+beat_scene!(CodeScene, Some(32.0), Some(48.0));
+
+const KW: &str = ORANGE;
+const TY: &str = "#d9c7a8";
+const PL: &str = BONE;
+const PU: &str = "#8f8a82";
+const ST: &str = "#f3a676";
+
+/// The code, as colored tokens per line.
+const CODE: &[&[(&str, &str)]] = &[
+ &[
+ ("impl ", KW),
+ ("Video ", TY),
+ ("for ", KW),
+ ("Intro ", TY),
+ ("{", PU),
+ ],
+ &[
+ (" const ", KW),
+ ("FPS", PL),
+ (": ", PU),
+ ("usize ", TY),
+ ("= ", PU),
+ ("60", ST),
+ (";", PU),
+ ],
+ &[],
+ &[
+ (" fn ", KW),
+ ("render_frame", PL),
+ ("(", PU),
+ ("&self", KW),
+ (", ", PU),
+ ("frame", PL),
+ (": ", PU),
+ ("Frame", TY),
+ (") -> ", PU),
+ ("Svgr ", TY),
+ ("{", PU),
+ ],
+ &[
+ (" let ", KW),
+ ("y ", PL),
+ ("= ", PU),
+ ("spring", PL),
+ ("(frame.", PU),
+ ("seconds", PL),
+ ("());", PU),
+ ],
+ &[
+ (" svgr!", KW),
+ ("(<", PU),
+ ("text ", PL),
+ ("y", TY),
+ ("={y}>", PU),
+ ("\"EVERY FRAME\"", ST),
+ ("</", PU),
+ ("text", PL),
+ (">)", PU),
+ ],
+ &[(" }", PU)],
+ &[("}", PU)],
+];
+
+const CODE_X: f32 = 150.0;
+const CODE_Y: f32 = 300.0;
+const CODE_SIZE: f32 = 34.0;
+const LINE_H: f32 = 56.0;
+const ADV: f32 = CODE_SIZE * 0.6;
+
+impl Scene for CodeScene {
+ fn duration(&self) -> Duration<'_> {
+ Self::frames()
+ }
+
+ fn render_frame<'a>(&'a self, frame: Frame, _ctx: &FFramesContext<'a, '_>) -> Svgr<'a> {
+ let lb = Self::lb(&frame);
+ if lb >= 46.0 - 32.0 {
+ return silence(lb - 14.0);
+ }
+ let total: usize = CODE
+ .iter()
+ .map(|l| l.iter().map(|(t, _)| t.chars().count()).sum::<usize>())
+ .sum();
+ let typed = (expo_out(prog(lb, 0.0, 7.0)).powf(0.7) * total as f32) as usize;
+ let mut left = typed;
+ let mut rows = Vec::new();
+ let mut caret = (CODE_X, CODE_Y);
+ for (li, line) in CODE.iter().enumerate() {
+ let y = CODE_Y + li as f32 * LINE_H;
+ let mut col = 0usize;
+ let mut spans = Vec::new();
+ for (text, color) in line.iter() {
+ let n = text.chars().count();
+ let take = n.min(left);
+ if take > 0 {
+ let part: String = text.chars().take(take).collect();
+ let lead = part.chars().take_while(|c| *c == ' ').count();
+ let part = part.trim_start().to_owned();
+ let x = CODE_X + (col + lead) as f32 * ADV;
+ if !part.is_empty() {
+ spans.push(fframes::svgr!(
+ <text x={x} y={y} font-family={MONO} font-weight="500" font-size={CODE_SIZE} fill={*color}>{part}</text>
+ ));
+ }
+ }
+ left -= take;
+ col += take;
+ if take < n {
+ break;
+ }
+ }
+ if left > 0 || col > 0 {
+ caret = (CODE_X + col as f32 * ADV, y);
+ }
+ rows.push(fframes::svgr!(<g>{spans}</g>));
+ if left == 0 {
+ break;
+ }
+ }
+ let dim = 1.0 - 0.75 * prog(lb, 12.0, 12.3);
+ let out = output(&frame, lb);
+ let words = big_words(lb);
+ let caret_on = (lb * 2.0).fract() < 0.6;
+
+ fframes::svgr!(
+ <g>
+ <g opacity={dim}>
+ <text x={CODE_X} y="220" font-family={MONO} font-weight="500" font-size="22" letter-spacing="3" fill={GREY}>"SRC/LIB.RS"</text>
+ <rect x={CODE_X} y="236" width="1000" height="1" fill={GREY} opacity="0.5" />
+ {rows}
+ <rect x={caret.0 + 2.0} y={caret.1 - 28.0} width="16" height="36" fill={ORANGE} opacity={if caret_on { 1.0 } else { 0.0 }} />
+ {callout(CODE_X + 13.0 * ADV, CODE_Y + 3.0 * LINE_H - 40.0, CODE_X + 13.0 * ADV, 190.0, "CALLED FOR EVERY FRAME".to_owned(), ORANGE, prog(lb, 8.0, 8.8))}
+ {callout(CODE_X + 13.0 * ADV, CODE_Y + 5.0 * LINE_H + 12.0, 520.0, 790.0, "RETURNS AN SVG TREE".to_owned(), BONE, prog(lb, 9.0, 9.8))}
+ </g>
+ {out}
+ {words}
+ </g>
+ )
+ }
+}
+
+/// The frame the code draws: EVERY FRAME, bouncing on every beat.
+fn output(frame: &Frame, lb: f32) -> Svgr<'static> {
+ let appear = expo_out(prog(lb, 3.0, 4.0));
+ if appear <= 0.0 {
+ return Svgr::empty();
+ }
+ let exit = expo_in(prog(lb, 11.7, 12.0));
+ let (x, y, w, h) = (1190.0, 320.0, 600.0, 338.0);
+ let beat_phase = lb.fract();
+ let bounce = spring(beat_phase * BEAT, 260.0, 14.0);
+ let ty = (1.0 - bounce) * -60.0;
+ let fnum = format!("FRAME {:05}", frame.global_index);
+ fframes::svgr!(
+ <g opacity={appear * (1.0 - exit)} transform={format!("translate({} 0)", (1.0 - appear) * 120.0)}>
+ <rect x={x} y={y} width={w} height={h} fill="#141312" stroke="#3a3733" stroke-width="1.5" />
+ {corners(x - 14.0, y - 14.0, w + 28.0, h + 28.0, 18.0, ORANGE, 2.0)}
+ <clipPath id="code-out"><rect x={x} y={y} width={w} height={h} /></clipPath>
+ <g clip-path="url(#code-out)">
+ <text x={x + w / 2.0} y={y + h / 2.0 + 30.0 + ty} text-anchor="middle" font-family={DISPLAY} font-size="76" letter-spacing="-2" fill={BONE}>"EVERY FRAME"</text>
+ </g>
+ {label(x, y + h + 44.0, "OUTPUT".to_owned(), GREY, 18.0, "start")}
+ {label(x + w, y + h + 44.0, fnum, ORANGE, 18.0, "end")}
+ {callout(x + w / 2.0, y + h + 14.0, x + w / 2.0 - 40.0, 820.0, "DRAWN BY SKIA ON THE GPU".to_owned(), ORANGE, prog(lb, 10.0, 10.8))}
+ </g>
+ )
+}
+
+/// Beats 12-14: EVERY / FRAME. over the dimmed code.
+fn big_words(lb: f32) -> Svgr<'static> {
+ let l = lb - 12.0;
+ if l < 0.0 {
+ return Svgr::empty();
+ }
+ fframes::svgr!(
+ <g>
+ {Slam::new(150.0, 560.0, "EVERY", DISPLAY, 250.0, BONE).draw(l, 0.0, 190.0)}
+ {Slam::new(150.0, 800.0, "FRAME.", DISPLAY, 250.0, ORANGE).draw(l - 1.0, 0.0, 190.0)}
+ </g>
+ )
+}
+
+/// The bar that goes (nearly) silent before the drop.
+fn silence(l: f32) -> Svgr<'static> {
+ let o = prog(l, 0.0, 0.2);
+ let w = snap(l - 0.9);
+ fframes::svgr!(
+ <g>
+ <rect width="1920" height="1080" fill={BG} />
+ <text x="960" y="560" text-anchor="middle" font-family={MONO} font-weight="500" font-size="40" letter-spacing="12" fill={GREY} opacity={o}>"RENDERED ON THE"</text>
+ <rect x={960.0 - 30.0 * w} y="600" width={(60.0 * w).max(0.5)} height="4" fill={ORANGE} />
+ </g>
+ )
+}
diff --git a/examples/fframes-intro/src/scenes/done.rs b/examples/fframes-intro/src/scenes/done.rs
new file mode 100644
index 00000000..c31bc144
--- /dev/null
+++ b/examples/fframes-intro/src/scenes/done.rs
@@ -0,0 +1,36 @@
+//! The silent bar: only a command being typed.
+
+use fframes::{Duration, FFramesContext, Frame, Scene, Svgr};
+
+use crate::beat::*;
+use crate::ui::*;
+
+beat_scene!(DoneScene, Some(236.0), Some(240.0));
+
+const COMMAND: &str = "cargo fframes new my-video";
+
+impl Scene for DoneScene {
+ fn duration(&self) -> Duration<'_> {
+ Self::frames()
+ }
+
+ fn render_frame<'a>(&'a self, frame: Frame, _ctx: &FFramesContext<'a, '_>) -> Svgr<'a> {
+ let lb = Self::lb(&frame);
+ let n = COMMAND.len() as f32;
+ let typed = (prog(lb, 0.2, 3.2) * n) as usize;
+ let shown: String = COMMAND.chars().take(typed).collect();
+ // text is centered on the full command so it does not shift while typing
+ let adv = 40.0 * 0.6;
+ let x0 = 960.0 - (n + 2.0) * adv / 2.0;
+ let caret_x = x0 + (2.0 + typed as f32) * adv;
+ let caret_on = typed as f32 >= n && (lb * 2.0).fract() > 0.5 || (typed as f32) < n;
+ fframes::svgr!(
+ <g>
+ <rect width="1920" height="1080" fill="#050505" />
+ <text x={x0} y="555" font-family={MONO} font-weight="600" font-size="40" fill={ORANGE}>"$"</text>
+ <text x={x0 + 2.0 * adv} y="555" font-family={MONO} font-weight="500" font-size="40" fill={BONE}>{shown}</text>
+ <rect x={caret_x + 2.0} y="522" width="20" height="44" fill={ORANGE} opacity={if caret_on { 1.0 } else { 0.0 }} />
+ </g>
+ )
+ }
+}
diff --git a/examples/fframes-intro/src/scenes/gpu.rs b/examples/fframes-intro/src/scenes/gpu.rs
new file mode 100644
index 00000000..92366d10
--- /dev/null
+++ b/examples/fframes-intro/src/scenes/gpu.rs
@@ -0,0 +1,112 @@
+//! The first drop on "GPU", then the render pipeline, which has no browser in it.
+
+use fframes::{Duration, FFramesContext, Frame, Scene, Svgr};
+
+use crate::beat::*;
+use crate::ui::*;
+
+beat_scene!(GpuScene, Some(48.0), Some(56.0));
+
+impl Scene for GpuScene {
+ fn duration(&self) -> Duration<'_> {
+ Self::frames()
+ }
+
+ fn render_frame<'a>(&'a self, frame: Frame, _ctx: &FFramesContext<'a, '_>) -> Svgr<'a> {
+ let lb = Self::lb(&frame);
+ if lb < 2.0 {
+ slam(lb)
+ } else {
+ pipeline(lb - 2.0)
+ }
+ }
+}
+
+fn slam(lb: f32) -> Svgr<'static> {
+ let s = 1.0 + (1.0 - expo_out(lb / 0.35)) * 0.18;
+ let shake = (1.0 - prog(lb, 0.0, 0.5)) * 14.0;
+ let dx = (hash(lb * 97.0) - 0.5) * shake;
+ let dy = (hash(lb * 53.0 + 3.0) - 0.5) * shake;
+ let dot = snap(lb - 1.0);
+ let t = format!(
+ "translate({} {}) translate(150 790) scale({s}) translate(-150 -790)",
+ dx, dy
+ );
+ fframes::svgr!(
+ <g>
+ <rect width="1920" height="1080" fill={ORANGE} />
+ <g transform={t}>
+ <text x="120" y="880" font-family={DISPLAY} font-size="760" letter-spacing="-40" fill={INK}>"GPU"</text>
+ <rect x="1605" y="765" width="115" height="115" fill={INK} transform={format!("translate(0 {})", (1.0 - dot) * -300.0)} opacity={prog(lb, 1.0, 1.05)} />
+ </g>
+ <g font-family={MONO} font-weight="600" font-size="22" letter-spacing="4" fill={INK}>
+ <text x="130" y="170">"SKIA"</text>
+ <text x="330" y="170">"METAL"</text>
+ <text x="540" y="170">"VULKAN"</text>
+ <text x="1790" y="170" text-anchor="end">"NO BROWSER IN THE LOOP"</text>
+ </g>
+ <rect x="130" y="196" width="1660" height="3" fill={INK} />
+ </g>
+ )
+}
+
+/// The pipeline from svgr! through Skia, the GPU and ffmpeg to an .mp4, with
+/// packets moving on the beat.
+fn pipeline(l: f32) -> Svgr<'static> {
+ let nodes = [
+ ("svgr!", "SVG TREE / FRAME"),
+ ("SKIA", "GANESH, GPU"),
+ ("METAL", "VULKAN ON LINUX"),
+ ("FFMPEG", "H.264 · HEVC · VP9"),
+ (".MP4", "OUT.MP4"),
+ ];
+ let title_in = snap(l);
+ let exit = expo_in(prog(l, 5.7, 6.0));
+ let x0 = 190.0;
+ let gap = 330.0;
+ let y = 640.0;
+ let mut boxes = Vec::new();
+ for (i, (name, sub)) in nodes.iter().enumerate() {
+ let at = 0.4 + i as f32 * 0.35;
+ let s = snap(l - at);
+ let x = x0 + i as f32 * gap;
+ let hot = i == 2;
+ let stroke = if hot { ORANGE } else { "#5a564f" };
+ boxes.push(fframes::svgr!(
+ <g opacity={prog(l, at, at + 0.1)} transform={format!("translate({x} {})", y + (1.0 - s) * 50.0)}>
+ <rect x="0" y="-70" width="250" height="140" fill={if hot { ORANGE } else { "#121110" }} stroke={stroke} stroke-width="2" />
+ <text x="125" y="8" text-anchor="middle" font-family={DISPLAY} font-size="40" fill={if hot { INK } else { BONE }}>{*name}</text>
+ <text x="125" y="46" text-anchor="middle" font-family={MONO} font-weight="500" font-size="15" letter-spacing="1.5" fill={if hot { INK } else { GREY }}>{*sub}</text>
+ </g>
+ ));
+ }
+ // links and packets
+ let mut links = Vec::new();
+ for i in 0..4 {
+ let at = 0.6 + i as f32 * 0.35;
+ let p = expo_out(prog(l, at, at + 0.5));
+ let xa = x0 + i as f32 * gap + 250.0;
+ let len = gap - 250.0;
+ links.push(fframes::svgr!(<rect x={xa} y={y - 1.0} width={(len * p).max(0.5)} height="2" fill="#5a564f" />));
+ for k in 0..3 {
+ let phase = (l * 2.0 + k as f32 / 3.0 + i as f32 * 0.21).fract();
+ if l > at + 0.5 {
+ let px = xa + phase * len;
+ links.push(fframes::svgr!(<rect x={px - 6.0} y={y - 4.0} width="12" height="8" fill={ORANGE} />));
+ }
+ }
+ }
+ let fps = "1920×1080 · 60 FPS".to_owned();
+ fframes::svgr!(
+ <g opacity={1.0 - exit}>
+ <g transform={format!("translate(0 {})", (1.0 - title_in) * 60.0)} opacity={prog(l, 0.0, 0.1)}>
+ <text x="186" y="330" font-family={DISPLAY} font-size="120" letter-spacing="-4" fill={BONE}>"DIRECTLY ON"</text>
+ <text x="186" y="450" font-family={DISPLAY} font-size="120" letter-spacing="-4" fill={ORANGE}>"THE GPU."</text>
+ </g>
+ {links}
+ {boxes}
+ {label(190.0, 820.0, "NO HEADLESS BROWSER. NO SCREENSHOTS. NO REACT.".to_owned(), GREY, 22.0, "start")}
+ <text x="1730" y="450" text-anchor="end" font-family={MONO} font-weight="600" font-size="30" fill={ORANGE} opacity={prog(l, 2.0, 2.2)}>{fps}</text>
+ </g>
+ )
+}
diff --git a/examples/fframes-intro/src/scenes/image.rs b/examples/fframes-intro/src/scenes/image.rs
new file mode 100644
index 00000000..208afbdd
--- /dev/null
+++ b/examples/fframes-intro/src/scenes/image.rs
@@ -0,0 +1,53 @@
+//! The 2024 beta poster develops from an orange dither.
+
+use fframes::{Color, Duration, FFramesContext, Frame, Scene, ShaderUniforms, Svgr};
+
+use crate::beat::*;
+use crate::shaders::SHADERS;
+use crate::ui::*;
+
+beat_scene!(ImageScene, Some(62.0), Some(66.0));
+
+impl Scene for ImageScene {
+ fn duration(&self) -> Duration<'_> {
+ Self::frames()
+ }
+
+ fn render_frame<'a>(&'a self, frame: Frame, ctx: &FFramesContext<'a, '_>) -> Svgr<'a> {
+ let lb = Self::lb(&frame);
+ let Some(poster) = ctx.get_image("beta_poster.jpg") else {
+ return Svgr::empty();
+ };
+ let (x, y, w, h) = (560.0, 300.0, 1060.0, 596.0);
+ let enter = expo_out(prog(lb, 0.0, 0.6));
+ let exit = expo_in(prog(lb, 3.7, 4.0));
+ let layer = SHADERS.develop.draw(
+ &frame,
+ ShaderUniforms::new()
+ .image("iChannel0", poster)
+ .float2("uImg", 1920.0, 1080.0)
+ .float("uReveal", prog(lb, 0.0, 0.7))
+ .float("uProgress", cubic_in_out(prog(lb, 0.9, 3.1)) * 1.02)
+ .color("uInk", Color::hex("#1a1210"))
+ .color("uHot", Color::hex(ORANGE)),
+ );
+ let s = 0.94 + 0.06 * enter;
+ let t = format!(
+ "translate(960 {}) scale({s}) translate(-960 -{})",
+ y + h / 2.0,
+ y + h / 2.0
+ );
+ fframes::svgr!(
+ <g opacity={1.0 - exit}>
+ <g transform={t}>
+ <image href={layer.href()} x={x} y={y} width={w} height={h} />
+ {corners(x - 18.0, y - 18.0, w + 36.0, h + 36.0, 22.0, BONE, 2.0)}
+ </g>
+ <text x="150" y="220" font-family={DISPLAY} font-size="120" letter-spacing="-4" fill={BONE} opacity={prog(lb, 0.2, 0.3)}>"IMAGE"</text>
+ {label(154.0, 110.0, "02".to_owned(), ORANGE, 26.0, "start")}
+ {label(x, y + h + 60.0, "BETA_POSTER.JPG · 2024".to_owned(), GREY, 18.0, "start")}
+ {label(x + w, y + h + 60.0, "DITHER → COLOR · ONE SKSL PASS".to_owned(), ORANGE, 18.0, "end")}
+ </g>
+ )
+ }
+}
diff --git a/examples/fframes-intro/src/scenes/mod.rs b/examples/fframes-intro/src/scenes/mod.rs
new file mode 100644
index 00000000..eaa06462
--- /dev/null
+++ b/examples/fframes-intro/src/scenes/mod.rs
@@ -0,0 +1,57 @@
+//! One file per section of the video. Every scene declares the beats it
+//! starts and ends on; `lb` is the beat position inside the scene.
+
+/// A scene struct with its place on the beat grid. `None` means the start or
+/// the end of the video.
+macro_rules! beat_scene {
+ ($name:ident, $start:expr, $end:expr) => {
+ #[derive(Debug)]
+ pub struct $name;
+ impl $name {
+ pub const START: Option<f32> = $start;
+ pub const END: Option<f32> = $end;
+ /// Beat inside the scene (0 on its first downbeat).
+ #[allow(dead_code)]
+ pub fn lb(frame: &fframes::Frame) -> f32 {
+ crate::beat::gbeat(frame) - Self::START.unwrap_or(0.0)
+ }
+ pub fn frames() -> fframes::Duration<'static> {
+ fframes::Duration::Frames(crate::beat::span_frames(Self::START, Self::END))
+ }
+ }
+ };
+}
+
+pub mod agents;
+pub mod benchmark;
+pub mod code;
+pub mod done;
+pub mod gpu;
+pub mod image;
+pub mod origin;
+pub mod outro;
+pub mod preview;
+pub mod prompt;
+pub mod recap;
+pub mod render;
+pub mod scale;
+pub mod shader;
+pub mod text;
+pub mod video;
+
+pub use agents::AgentsScene;
+pub use benchmark::BenchmarkScene;
+pub use code::CodeScene;
+pub use done::DoneScene;
+pub use gpu::GpuScene;
+pub use image::ImageScene;
+pub use origin::OriginScene;
+pub use outro::OutroScene;
+pub use preview::PreviewScene;
+pub use prompt::PromptScene;
+pub use recap::RecapScene;
+pub use render::RenderScene;
+pub use scale::ScaleScene;
+pub use shader::ShaderScene;
+pub use text::TextScene;
+pub use video::VideoScene;
diff --git a/examples/fframes-intro/src/scenes/origin.rs b/examples/fframes-intro/src/scenes/origin.rs
new file mode 100644
index 00000000..1fbbc253
--- /dev/null
+++ b/examples/fframes-intro/src/scenes/origin.rs
@@ -0,0 +1,323 @@
+//! Since 2021: the first commit, five years of history scrolling past, and
+//! the numbers behind it.
+
+use std::sync::LazyLock;
+
+use fframes::{Duration, FFramesContext, Frame, Scene, ShaderUniforms, Svgr};
+
+use crate::beat::*;
+use crate::shaders::SHADERS;
+use crate::ui::*;
+
+beat_scene!(OriginScene, Some(0.0), Some(32.0));
+
+struct Commit {
+ hash: &'static str,
+ date: &'static str,
+ message: &'static str,
+}
+
+/// `git log` of the repository, written by build.rs.
+static COMMITS: LazyLock<Vec<Commit>> = LazyLock::new(|| {
+ include_str!(concat!(env!("OUT_DIR"), "/commits.txt"))
+ .lines()
+ .filter_map(|line| {
+ let mut parts = line.splitn(3, '|');
+ Some(Commit {
+ hash: parts.next()?,
+ date: parts.next()?,
+ message: parts.next()?,
+ })
+ })
+ .collect()
+});
+
+/// Numbers derived from the history: commit count and the span from the
+/// first commit to the latest one.
+struct History {
+ count: usize,
+ days: i64,
+ since: String,
+ until: String,
+}
+
+static HISTORY: LazyLock<History> = LazyLock::new(|| {
+ let first = COMMITS.first().map(|c| c.date).unwrap_or("2021-09-19");
+ let last = COMMITS.last().map(|c| c.date).unwrap_or(first);
+ History {
+ count: COMMITS.len(),
+ days: day_number(last) - day_number(first),
+ since: month_label(first),
+ until: month_label(last),
+ }
+});
+
+/// Days since 1970-01-01 of a `YYYY-MM-DD` date (Howard Hinnant's algorithm).
+fn day_number(date: &str) -> i64 {
+ let mut parts = date.split('-').map(|p| p.parse::<i64>().unwrap_or(1));
+ let (y, m, d) = (
+ parts.next().unwrap_or(1970),
+ parts.next().unwrap_or(1),
+ parts.next().unwrap_or(1),
+ );
+ let y = if m <= 2 { y - 1 } else { y };
+ let era = y.div_euclid(400);
+ let yoe = y - era * 400;
+ let doy = (153 * (m + if m > 2 { -3 } else { 9 }) + 2) / 5 + d - 1;
+ let doe = yoe * 365 + yoe / 4 - yoe / 100 + doy;
+ era * 146_097 + doe - 719_468
+}
+
+/// `2021-09-19` as `SEP 2021`.
+fn month_label(date: &str) -> String {
+ const MONTHS: [&str; 12] = [
+ "JAN", "FEB", "MAR", "APR", "MAY", "JUN", "JUL", "AUG", "SEP", "OCT", "NOV", "DEC",
+ ];
+ let month = date
+ .get(5..7)
+ .and_then(|m| m.parse::<usize>().ok())
+ .unwrap_or(1);
+ format!(
+ "{} {}",
+ MONTHS[(month - 1).min(11)],
+ date.get(..4).unwrap_or("")
+ )
+}
+
+impl Scene for OriginScene {
+ fn duration(&self) -> Duration<'_> {
+ Self::frames()
+ }
+
+ fn render_frame<'a>(&'a self, mut frame: Frame, ctx: &FFramesContext<'a, '_>) -> Svgr<'a> {
+ let lb = Self::lb(&frame);
+ let well_x = 0.7 - prog(lb, 0.0, 32.0) * 0.25;
+ let bg = SHADERS.contour.draw(
+ &frame,
+ ShaderUniforms::new()
+ .float2("uWell", well_x, 0.58)
+ .float("uDepth", 0.8)
+ .float("uDensity", 18.0)
+ .float("uBright", 0.42)
+ .color("uInk", fframes::Color::hex("#8a857c"))
+ .color("uHot", fframes::Color::hex(ORANGE)),
+ );
+
+ let t = lb;
+ let content = if t < 8.0 {
+ first_commit(&mut frame, ctx, t)
+ } else if t < 16.0 {
+ history(t - 8.0)
+ } else {
+ stats(&mut frame, ctx, t - 16.0)
+ };
+
+ fframes::svgr!(
+ <g>
+ <image href={bg.href()} x="0" y="0" width="1920" height="1080" />
+ {content}
+ </g>
+ )
+ }
+}
+
+/// Beats 0-8: the year of the first commit, one digit per beat, then the
+/// commit itself.
+fn first_commit(frame: &mut Frame, ctx: &FFramesContext, lb: f32) -> Svgr<'static> {
+ let Some(first) = COMMITS.first() else {
+ return Svgr::empty();
+ };
+ let year = first.date.get(..4).unwrap_or("2021");
+ let years_ago = format!("{} YEARS AGO", HISTORY.days / 365);
+ let date_and_author = format!("{} Dmitriy Kovalenko", first.date);
+ let message = format!("“{}”", first.message);
+ let exit = expo_in(prog(lb, 7.6, 8.0));
+ let command = "$ git log --reverse | head -1";
+ let typed = ((lb / 0.8) * command.len() as f32) as usize;
+ let command: String = command.chars().take(typed.min(command.len())).collect();
+
+ let year = letters(
+ frame,
+ ctx,
+ 150.0,
+ 690.0,
+ year,
+ DISPLAY,
+ 440,
+ 400,
+ BONE,
+ -8.0,
+ |i| {
+ let s = snap(lb - i as f32);
+ (
+ 0.0,
+ (1.0 - s) * 160.0,
+ prog(lb, i as f32, i as f32 + 0.15),
+ 0.85 + 0.15 * s,
+ )
+ },
+ );
+ let underline = quart_out(prog(lb, 3.0, 4.0)) * 1120.0;
+ let meta = prog(lb, 4.0, 4.4);
+ let hash_w = 7.0 * 36.0 * 0.6;
+
+ fframes::svgr!(
+ <g opacity={1.0 - exit} transform={format!("translate(0 {})", -exit * 120.0)}>
+ <text x="160" y="220" font-family={MONO} font-weight="500" font-size="30" fill={GREY}>{command}</text>
+ {year}
+ <rect x="160" y="740" width={underline.max(0.5)} height="10" fill={ORANGE} />
+ <g opacity={meta}>
+ <text x="160" y="826" font-family={MONO} font-weight="600" font-size="36" fill={ORANGE}>{first.hash}</text>
+ <text x={160.0 + hash_w + 30.0} y="826" font-family={MONO} font-weight="500" font-size="36" fill={BONE}>{date_and_author}</text>
+ <text x="1030" y="832" font-family={SERIF} font-style="italic" font-size="64" fill={ORANGE}>{message}</text>
+ </g>
+ {callout(160.0 + hash_w / 2.0, 842.0, 160.0 + hash_w / 2.0, 980.0, "FIRST COMMIT".to_owned(), ORANGE, prog(lb, 5.0, 5.8))}
+ {callout(1270.0, 520.0, 1420.0, 360.0, years_ago, BONE, prog(lb, 5.5, 6.3))}
+ {title_block(first.date, prog(lb, 6.0, 6.4))}
+ </g>
+ )
+}
+
+/// Engineering-drawing title block, bottom right.
+fn title_block(date: &'static str, o: f32) -> Svgr<'static> {
+ let sheets = format!("1 OF {}", HISTORY.count);
+ if o <= 0.0 {
+ return Svgr::empty();
+ }
+ fframes::svgr!(
+ <g opacity={o} font-family={MONO} font-size="18" letter-spacing="1.5" fill={BONE}>
+ <rect x="1290" y="800" width="470" height="150" fill="#0b0b0b" fill-opacity="0.7" stroke={GREY} stroke-width="1.5" />
+ <path d="M1290 850 H1760 M1290 900 H1760 M1400 800 V950 M1600 850 V950" stroke={GREY} stroke-width="1.5" />
+ <text x="1306" y="832" fill={GREY}>"TITLE"</text>
+ <text x="1416" y="832">"FFRAMES — PROOF OF CONCEPT"</text>
+ <text x="1306" y="882" fill={GREY}>"DRAWN"</text>
+ <text x="1416" y="882">"dmtrKovalenko"</text>
+ <text x="1616" y="882" fill={GREY}>"REV 1"</text>
+ <text x="1306" y="932" fill={GREY}>"SHEET"</text>
+ <text x="1416" y="932">{sheets}</text>
+ <text x="1616" y="932" fill={ORANGE}>{date}</text>
+ </g>
+ )
+}
+
+/// Beats 8-16: every commit scrolls past, accelerating, the year flips.
+fn history(lb: f32) -> Svgr<'static> {
+ let commits = &*COMMITS;
+ let n = commits.len();
+ if n == 0 {
+ return Svgr::empty();
+ }
+ let enter = expo_out(prog(lb, 0.0, 0.5));
+ let exit = expo_in(prog(lb, 7.6, 8.0));
+ // position in the list (float), ease in-out across the 8 beats
+ let pos = cubic_in_out(prog(lb, 0.3, 7.4)) * (n - 1) as f32;
+ let current = pos.round() as usize;
+ let line_h = 44.0;
+ let center_y = 560.0;
+ let first = pos.floor() as i32 - 11;
+ let rows: Vec<Svgr> = (first..first + 24)
+ .filter(|i| *i >= 0 && (*i as usize) < n)
+ .map(|i| {
+ let c = &commits[i as usize];
+ let y = center_y + (i as f32 - pos) * line_h;
+ let dist = ((y - center_y) / 480.0).abs();
+ let o = (1.0 - dist).clamp(0.0, 1.0).powf(1.5);
+ let is_current = i as usize == current;
+ let msg: String = c.message.chars().filter(|ch| ch.is_ascii()).take(48).collect();
+ let text_color = if is_current { BONE } else { "#8f8a82" };
+ fframes::svgr!(
+ <g opacity={o}>
+ <text x="160" y={y} font-family={MONO} font-weight="600" font-size="26" fill={if is_current { ORANGE } else { "#6d4a36" }}>{c.hash}</text>
+ <text x="310" y={y} font-family={MONO} font-weight="500" font-size="26" fill={GREY}>{c.date}</text>
+ <text x="510" y={y} font-family={MONO} font-weight="500" font-size="26" fill={text_color}>{msg}</text>
+ </g>
+ )
+ })
+ .collect();
+ let c = &commits[current.min(n - 1)];
+ let year = c.date[..4].to_owned();
+ let count = format!("#{:03} / {}", current + 1, n);
+ let date = c.date.to_owned();
+
+ fframes::svgr!(
+ <g opacity={enter * (1.0 - exit)} transform={format!("translate(0 {})", (1.0 - enter) * 80.0 - exit * 80.0)}>
+ <rect x="140" y={center_y - 34.0} width="1060" height="48" fill={ORANGE} fill-opacity="0.12" />
+ <rect x="140" y={center_y - 34.0} width="4" height="48" fill={ORANGE} />
+ {rows}
+ <text x="1770" y="600" text-anchor="end" font-family={DISPLAY} font-size="300" letter-spacing="-10" fill={ORANGE}>{year}</text>
+ <text x="1770" y="680" text-anchor="end" font-family={MONO} font-weight="500" font-size="36" fill={BONE}>{count}</text>
+ <text x="1770" y="730" text-anchor="end" font-family={MONO} font-weight="500" font-size="26" fill={GREY}>{date}</text>
+ </g>
+ )
+}
+
+/// Beats 16-32: the numbers, one per bar, then "video = f(frame)".
+fn stats(frame: &mut Frame, ctx: &FFramesContext, lb: f32) -> Svgr<'static> {
+ let h = &*HISTORY;
+ // (value, unit, caption); values count up as they enter
+ let items: [(u64, &str, String); 3] = [
+ (
+ (h.days / 365) as u64,
+ "YEARS",
+ format!(
+ "{} → {} · {} DAYS",
+ h.since,
+ h.until,
+ thousands(h.days as u64)
+ ),
+ ),
+ (
+ h.count as u64,
+ "COMMITS",
+ "FROM THE FIRST “POC” TO TODAY".to_owned(),
+ ),
+ (
+ crate::facts::LINES_OF_RUST,
+ "LINES OF RUST",
+ "FFMPEG · SVG · SKIA · EDITOR · CLI".to_owned(),
+ ),
+ ];
+ let bar = (lb / 4.0).floor() as usize;
+ let local = lb - bar as f32 * 4.0;
+ if bar < 3 {
+ let (value, unit, caption) = items[bar].clone();
+ let num = thousands(value);
+ let enter = expo_out(prog(local, 0.0, 0.7));
+ let exit = expo_in(prog(local, 3.65, 4.0));
+ let x = 150.0 + (1.0 - enter) * 260.0 - exit * 300.0;
+ let num_w = measure(frame, ctx, DISPLAY, 400, 400, false, &num) - 10.0 * num.len() as f32;
+ let unit_s = snap(local - 0.5);
+ let unit_w = measure(frame, ctx, DISPLAY, 110, 400, false, unit) - 3.0 * unit.len() as f32;
+ // the unit goes next to the number when it fits, below it otherwise
+ let (ux, uy, cap_y) = if 150.0 + num_w + 40.0 + unit_w < 1770.0 {
+ (num_w + 40.0, 0.0, 0.0)
+ } else {
+ (8.0, 130.0, 130.0)
+ };
+ let cap = prog(local, 1.0, 1.4);
+ let shown = thousands((value as f32 * expo_out(prog(local, 0.0, 1.3))).round() as u64);
+ return fframes::svgr!(
+ <g opacity={1.0 - exit}>
+ <g transform={format!("translate({x} 0)")}>
+ <text x="0" y="640" font-family={DISPLAY} font-size="400" letter-spacing="-10" fill={BONE}>{shown}</text>
+ <g transform={format!("translate({} {})", ux, uy + (1.0 - unit_s) * 60.0)} opacity={unit_s.min(1.0)}>
+ <text x="0" y="640" font-family={DISPLAY} font-size="110" letter-spacing="-3" fill={ORANGE}>{unit}</text>
+ </g>
+ <rect x="4" y={700.0 + cap_y} width={(cap * 60.0).max(0.5)} height="4" fill={ORANGE} />
+ <text x="4" y={760.0 + cap_y} font-family={MONO} font-weight="500" font-size="30" letter-spacing="3" fill={BONE} opacity={cap}>{caption}</text>
+ </g>
+ </g>
+ );
+ }
+ // bar 4: ONE IDEA, then video = f(frame)
+ let a = snap(local);
+
+ let exit = expo_in(prog(local, 3.7, 4.0));
+ fframes::svgr!(
+ <g opacity={1.0 - exit}>
+ <text x="160" y="330" font-family={MONO} font-weight="600" font-size="34" letter-spacing="6" fill={ORANGE} opacity={a.min(1.0)}>"ONE IDEA"</text>
+ {Slam::new(150.0, 620.0, "video =", DISPLAY, 190.0, BONE).draw(local - 1.0, 0.0, 150.0)}
+ {Slam::new(905.0, 628.0, "f(frame)", SERIF, 270.0, ORANGE).italic().draw(local - 2.0, 260.0, 0.0)}
+ </g>
+ )
+}
diff --git a/examples/fframes-intro/src/scenes/outro.rs b/examples/fframes-intro/src/scenes/outro.rs
new file mode 100644
index 00000000..8eb04670
--- /dev/null
+++ b/examples/fframes-intro/src/scenes/outro.rs
@@ -0,0 +1,108 @@
+//! The fframes wordmark slams in with its trail of f's, followed by the
+//! install commands.
+
+use fframes::{Color, Duration, FFramesContext, Frame, Scene, ShaderUniforms, Svgr};
+
+use crate::beat::*;
+use crate::shaders::SHADERS;
+use crate::ui::*;
+
+beat_scene!(OutroScene, Some(240.0), None);
+
+const WORD_SIZE: usize = 300;
+
+impl Scene for OutroScene {
+ fn duration(&self) -> Duration<'_> {
+ Self::frames()
+ }
+
+ fn render_frame<'a>(&'a self, mut frame: Frame, ctx: &FFramesContext<'a, '_>) -> Svgr<'a> {
+ let lb = Self::lb(&frame);
+ let t_end = crate::beat::TOTAL_SECONDS - gsec(&frame);
+ let fade_out = prog(1.6 - t_end, 0.0, 1.6);
+ let flash = (-lb * 9.0).exp();
+
+ let bg = SHADERS.contour.draw(
+ &frame,
+ ShaderUniforms::new()
+ .float2("uWell", 0.5, 0.47)
+ .float("uDepth", 1.1)
+ .float("uDensity", 18.0)
+ .float("uBright", 0.25 + 0.5 * (1.0 - expo_out(prog(lb, 0.0, 6.0))))
+ .color("uInk", Color::hex("#8a857c"))
+ .color("uHot", Color::hex(ORANGE)),
+ );
+
+ let w = measure(&mut frame, ctx, SERIF, WORD_SIZE, 400, true, "fframes");
+ let fw = measure(&mut frame, ctx, SERIF, WORD_SIZE, 400, true, "f");
+ // the trail makes the whole mark wider: center mark + trail
+ let trail = 3.0;
+ let step = fw * 0.78;
+ let total = w + step * trail;
+ let x0 = 960.0 - total / 2.0 + step * trail;
+ let y = 520.0;
+ let word_in = spring(lb * BEAT, 260.0, 20.0);
+ let word_s = 1.0 + (1.0 - expo_out(lb / 0.5)) * 0.25;
+
+ let echoes: Vec<Svgr> = (0..3)
+ .map(|k| {
+ let k = k as f32;
+ let s = soft(lb - 0.5 - k * 0.5);
+ let dx = -step * (k + 1.0) * s;
+ let colors = [ORANGE, "#c4531c", EMBER];
+ let color = colors[k as usize];
+ let o = s.clamp(0.0, 1.0) * (1.0 - k * 0.18);
+ fframes::svgr!(
+ <text x={x0 + dx} y={y} font-family={SERIF} font-style="italic" font-size={WORD_SIZE} fill={color} opacity={o}>"f"</text>
+ )
+ })
+ .rev()
+ .collect();
+
+ let tag = prog(lb, 4.0, 4.6);
+ let cmds = [
+ (
+ "npx skills add dmtrKovalenko/fframes",
+ "WITH YOUR CODING AGENT",
+ ),
+ ("cargo fframes new my-video", "OR BY HAND"),
+ ];
+ let cmd_rows: Vec<Svgr> = cmds
+ .iter()
+ .enumerate()
+ .map(|(i, (cmd, note))| {
+ let at = 8.0 + i as f32 * 1.0;
+ let s = snap(lb - at);
+ let y = 760.0 + i as f32 * 78.0;
+ fframes::svgr!(
+ <g opacity={prog(lb, at, at + 0.1)} transform={format!("translate(0 {})", (1.0 - s) * 30.0)}>
+ <rect x="520" y={y - 44.0} width="880" height="62" fill="#0f0e0d" fill-opacity="0.9" stroke="#3d3a35" stroke-width="1.5" />
+ <text x="548" y={y} font-family={MONO} font-weight="600" font-size="26" fill={ORANGE}>"$"</text>
+ <text x="578" y={y} font-family={MONO} font-weight="500" font-size="26" fill={BONE}>{*cmd}</text>
+ <text x="1380" y={y} text-anchor="end" font-family={MONO} font-weight="500" font-size="15" letter-spacing="2" fill={GREY}>{*note}</text>
+ </g>
+ )
+ })
+ .collect();
+ let url = prog(lb, 12.0, 12.5);
+
+ fframes::svgr!(
+ <g>
+ <image href={bg.href()} x="0" y="0" width="1920" height="1080" />
+ <g opacity={1.0 - fade_out}>
+ {echoes}
+ <g transform={format!("translate(960 {y}) scale({word_s}) translate(-960 -{y})")} opacity={word_in.min(1.0)}>
+ <text x={x0} y={y} font-family={SERIF} font-style="italic" font-size={WORD_SIZE} fill={BONE}>"fframes"</text>
+ </g>
+ <text x="960" y="640" text-anchor="middle" font-family={MONO} font-weight="500" font-size="30" letter-spacing="2" fill={BONE} opacity={tag}>"video vibe coding framework that is actually fast"</text>
+ {cmd_rows}
+ <g opacity={url}>
+ <text x="960" y="990" text-anchor="middle" font-family={MONO} font-weight="600" font-size="26" letter-spacing="3" fill={ORANGE}>"GITHUB.COM/DMTRKOVALENKO/FFRAMES"</text>
+ </g>
+ </g>
+ <rect width="1920" height="1080" fill={BONE} opacity={flash} />
+ <rect width="1920" height="1080" fill="#000000" opacity={fade_out} />
+ </g>
+ )
+ }
+}
diff --git a/examples/fframes-intro/src/scenes/preview.rs b/examples/fframes-intro/src/scenes/preview.rs
new file mode 100644
index 00000000..1a46033b
--- /dev/null
+++ b/examples/fframes-intro/src/scenes/preview.rs
@@ -0,0 +1,185 @@
+//! After the benchmark: the native preview window playing this video in real
+//! time on the GPU (a capture of `cargo run -- preview`). On the second half
+//! the window fills the frame and NO BROWSER AT ALL ANYWHERE runs over it.
+
+use fframes::{
+ Color, Duration, FFramesContext, FFramesSyncedVideoFrame, Frame, Scene, ShaderUniforms, Svgr,
+ SyncVideoFrameInput,
+};
+
+use crate::beat::*;
+use crate::shaders::SHADERS;
+use crate::ui::*;
+
+beat_scene!(PreviewScene, Some(128.0), Some(160.0));
+
+/// Beat inside the scene where the window goes full frame and the words start.
+const TAKEOVER: f32 = 16.0;
+
+/// A takeover row: words with the beat each one lands on, baseline, color and
+/// drift direction.
+type Row = (&'static [(&'static str, f32)], f32, &'static str, f32);
+
+const ROWS: &[Row] = &[
+ (&[("NO", 16.0), ("BROWSER", 17.0)], 380.0, BONE, -1.0),
+ (&[("AT", 18.0), ("ALL", 19.0)], 690.0, ORANGE, 1.0),
+ (&[("ANYWHERE", 20.0)], 1000.0, BONE, -1.0),
+];
+
+/// The captured window (1600x896), placed on the right.
+const WIN: (f32, f32, f32, f32) = (590.0, 262.0, 1180.0, 660.8);
+
+const KEYS: &[(&str, &str)] = &[
+ ("SPACE", "PLAY / PAUSE"),
+ ("H L", "SEEK A SECOND"),
+ ("J K", "STEP A FRAME"),
+];
+
+impl Scene for PreviewScene {
+ fn duration(&self) -> Duration<'_> {
+ Self::frames()
+ }
+
+ fn render_frame<'a>(&'a self, frame: Frame, ctx: &FFramesContext<'a, '_>) -> Svgr<'a> {
+ let lb = Self::lb(&frame);
+ let grid = SHADERS.grid.draw(
+ &frame,
+ ShaderUniforms::new()
+ .float("uSpeed", 1.5)
+ .float("uHorizon", 0.7)
+ .float("uBright", 0.3)
+ .color("uInk", Color::hex("#6f6a63"))
+ .color("uHot", Color::hex(ORANGE)),
+ );
+ let capture = frame
+ .get_synced_video_frame(
+ ctx,
+ "preview_capture.mp4",
+ &SyncVideoFrameInput {
+ start_from: 0.0,
+ looping: true,
+ editor_fallback_image: None,
+ },
+ )
+ .map(|f| f.into_image());
+
+ // the window grows from its place on the right to the full frame
+ let full = expo_out(prog(lb, TAKEOVER, TAKEOVER + 0.7));
+ let (x, y, w, h) = (
+ lerp(WIN.0, 0.0, full),
+ lerp(WIN.1, 0.0, full),
+ lerp(WIN.2, 1920.0, full),
+ lerp(WIN.3, 1075.2, full),
+ );
+ let radius = 14.0 * (1.0 - full);
+ let enter = snap(lb - 0.5);
+ let s = 0.9 + 0.1 * enter;
+ let t = format!(
+ "translate({} {}) scale({s}) translate({} {})",
+ x + w / 2.0,
+ y + h / 2.0 + (1.0 - enter) * 120.0,
+ -(x + w / 2.0),
+ -(y + h / 2.0)
+ );
+ let window = capture
+ .map(|img| {
+ fframes::svgr!(
+ <g>
+ <clipPath id="preview-win"><rect x={x} y={y} width={w} height={h} rx={radius} /></clipPath>
+ <rect x={x} y={y + 18.0} width={w} height={h} rx={radius} fill="#000000" opacity={0.55 * (1.0 - full)} filter="url(#preview-shadow)" />
+ <g clip-path="url(#preview-win)">
+ <image href={img.href()} x={x} y={y} width={w} height={h} />
+ </g>
+ <rect x={x} y={y} width={w} height={h} rx={radius} fill="none" stroke="#3d3a35" stroke-width="1.5" opacity={1.0 - full} />
+ </g>
+ )
+ })
+ .unwrap_or_default();
+
+ let keys: Vec<Svgr> = KEYS
+ .iter()
+ .enumerate()
+ .map(|(i, (key, what))| {
+ let at = 3.0 + i as f32 * 0.5;
+ let k = snap(lb - at);
+ let ky = 560.0 + i as f32 * 78.0;
+ fframes::svgr!(
+ <g opacity={prog(lb, at, at + 0.1)} transform={format!("translate({} 0)", (1.0 - k) * -60.0)}>
+ <rect x="150" y={ky - 38.0} width="120" height="54" rx="8" fill="#161514" stroke={BONE} stroke-opacity="0.5" stroke-width="1.5" />
+ <text x="210" y={ky - 3.0} text-anchor="middle" font-family={MONO} font-weight="600" font-size="20" fill={BONE}>{*key}</text>
+ <text x="290" y={ky - 3.0} font-family={MONO} font-weight="500" font-size="18" letter-spacing="2" fill={GREY}>{*what}</text>
+ </g>
+ )
+ })
+ .collect();
+ let cmd = prog(lb, 2.0, 2.4);
+ // the side panel and title leave as the window takes over
+ let side = 1.0 - prog(lb, TAKEOVER - 0.2, TAKEOVER + 0.1);
+ let exit = expo_in(prog(lb, 31.5, 32.0));
+
+ fframes::svgr!(
+ <g opacity={1.0 - exit}>
+ <defs>
+ <filter id="preview-shadow" x="-10%" y="-10%" width="120%" height="130%">
+ <feGaussianBlur stdDeviation="24" />
+ </filter>
+ </defs>
+ <image href={grid.href()} x="0" y="0" width="1920" height="1080" />
+ <g opacity={side}>
+ {Slam::new(150.0, 205.0, "WATCH IT", DISPLAY, 110.0, BONE).draw(lb, 0.0, 150.0)}
+ {Slam::new(820.0, 205.0, "LIVE.", DISPLAY, 110.0, ORANGE).draw(lb - 1.0, 0.0, 150.0)}
+ </g>
+ <g transform={t} opacity={prog(lb, 0.5, 0.6)}>{window}</g>
+ <g opacity={cmd * side}>
+ <text x="150" y="330" font-family={MONO} font-weight="500" font-size="20" letter-spacing="3" fill={GREY}>"NATIVE PREVIEW WINDOW"</text>
+ <text x="150" y="380" font-family={MONO} font-weight="600" font-size="26" fill={ORANGE}>"$"</text>
+ <text x="180" y="380" font-family={MONO} font-weight="500" font-size="26" fill={BONE}>"cargo run -- preview"</text>
+ <text x="150" y="440" font-family={MONO} font-weight="500" font-size="20" letter-spacing="2" fill={BONE}>"GPU · WITH SOUND"</text>
+ <text x="150" y="472" font-family={MONO} font-weight="500" font-size="20" letter-spacing="2" fill={BONE}>"NO BROWSER, NO BUNDLER"</text>
+ </g>
+ <g opacity={side}>
+ {keys}
+ {callout(WIN.0 + 720.0, WIN.1 + 12.0, WIN.0 + 720.0, 170.0, "REAL-TIME, FRAME BY FRAME".to_owned(), ORANGE, prog(lb, 6.0, 6.8))}
+ {callout(WIN.0 + 354.0, WIN.1 + 630.0, 560.0, 975.0, "PLAY · SEEK · LOOP · SCRUB".to_owned(), BONE, prog(lb, 8.0, 8.8))}
+ </g>
+ {takeover(lb)}
+ </g>
+ )
+ }
+}
+
+/// NO BROWSER / AT ALL / ANYWHERE: rows larger than the frame that slam in
+/// word by word and drift in opposite directions over the dimmed window.
+fn takeover(lb: f32) -> Svgr<'static> {
+ let l = lb - TAKEOVER;
+ if l < 0.0 {
+ return Svgr::empty();
+ }
+ let dim = prog(l, 0.0, 0.5) * 0.6;
+ let rows: Vec<Svgr> = ROWS
+ .iter()
+ .map(|(words, y, color, dir)| {
+ let first = words[0].1 - TAKEOVER;
+ let shown: Vec<&str> = words
+ .iter()
+ .filter(|(_, at)| lb >= *at)
+ .map(|(w, _)| *w)
+ .collect();
+ if shown.is_empty() {
+ return Svgr::empty();
+ }
+ let drift = dir * (l - first).max(0.0) * 34.0;
+ let x = 60.0 + drift + if *dir > 0.0 { -140.0 } else { 0.0 };
+ let text = shown.join(" ");
+ fframes::svgr!(
+ <g>{Slam::new(x, *y, text, DISPLAY, 330.0, color).draw(l - first, 0.0, 220.0)}</g>
+ )
+ })
+ .collect();
+ fframes::svgr!(
+ <g>
+ <rect width="1920" height="1080" fill="#050505" opacity={dim} />
+ {rows}
+ </g>
+ )
+}
diff --git a/examples/fframes-intro/src/scenes/prompt.rs b/examples/fframes-intro/src/scenes/prompt.rs
new file mode 100644
index 00000000..03845315
--- /dev/null
+++ b/examples/fframes-intro/src/scenes/prompt.rs
@@ -0,0 +1,111 @@
+//! Cold open: the prompt that asked for this video, typed into a coding agent.
+
+use fframes::{Duration, FFramesContext, Frame, Scene, ShaderUniforms, Svgr};
+
+use crate::beat::*;
+use crate::shaders::SHADERS;
+use crate::ui::*;
+
+beat_scene!(PromptScene, None, Some(0.0));
+
+pub const PROMPT: &str = "make an intro video for fframes. make it stunning.";
+
+/// Agent output after the prompt: (is a tool call, text).
+const OUTPUT: &[(bool, &str)] = &[
+ (true, "Explored skills/fframes-video"),
+ (false, "Read SKILL.md, design.md, audio.md"),
+ (true, "Edited src/lib.rs"),
+ (true, "Ran cargo run --release -- timeline"),
+ (true, "Ran cargo run --release -- strip all -n 24"),
+];
+
+impl Scene for PromptScene {
+ fn duration(&self) -> Duration<'_> {
+ Self::frames()
+ }
+
+ fn render_frame<'a>(&'a self, frame: Frame, _ctx: &FFramesContext<'a, '_>) -> Svgr<'a> {
+ let t = gsec(&frame);
+ let enter_at = beat_time(-1.0);
+ let chars = PROMPT.chars().count();
+ let typed = ((8.0 + (t - 0.02) * 44.0) as usize).min(chars);
+ let shown: String = PROMPT.chars().take(typed).collect();
+ let done = typed >= chars;
+ // caret blinks once typing is done
+ let caret_on = !done || (t * 3.0).fract() < 0.55;
+ // two lines: the first sentence, then "make it stunning."
+ let split = PROMPT.find(". ").map(|i| i + 2).unwrap_or(chars);
+ let line1: String = shown.chars().take(split).collect();
+ let line2: String = shown.chars().skip(split).collect();
+ let adv = 64.0 * 0.6;
+ let on_second = typed > split;
+ let caret_x = 240.0
+ + if on_second {
+ (typed - split) as f32
+ } else {
+ typed as f32
+ } * adv;
+ let caret_y = if on_second { 612.0 } else { 522.0 };
+
+ let after = t - enter_at;
+ let lift = if after > 0.0 {
+ -expo_out(after / 0.25) * 200.0
+ } else {
+ 0.0
+ };
+ let enter_flash = if after > 0.0 {
+ (-after * 9.0).exp()
+ } else {
+ 0.0
+ };
+
+ let lines: Vec<Svgr> = OUTPUT
+ .iter()
+ .enumerate()
+ .map(|(i, (call, text))| {
+ let at = enter_at + 0.05 + i as f32 * 0.07;
+ let o = prog(t, at, at + 0.06);
+ let y = 560.0 + i as f32 * 44.0;
+ let marker = if *call {
+ fframes::svgr!(<circle cx="172" cy={y - 9.0} r="7" fill={ORANGE} />)
+ } else {
+ fframes::svgr!(<path d={format!("M204 {} V{} H222", y - 26.0, y - 9.0)} fill="none" stroke={GREY} stroke-width="2" />)
+ };
+ let x = if *call { 200.0 } else { 236.0 };
+ fframes::svgr!(
+ <g opacity={o}>
+ {marker}
+ <text x={x} y={y} font-family={MONO} font-size="28" fill="#b9b4ab">{*text}</text>
+ </g>
+ )
+ })
+ .collect();
+
+ let bg = SHADERS.contour.draw(
+ &frame,
+ ShaderUniforms::new()
+ .float2("uWell", 0.74, 0.62)
+ .float("uDepth", 0.6)
+ .float("uDensity", 16.0)
+ .float("uBright", 0.35 + enter_flash * 0.4)
+ .color("uInk", fframes::Color::hex("#8a857c"))
+ .color("uHot", fframes::Color::hex(ORANGE)),
+ );
+
+ fframes::svgr!(
+ <g>
+ <image href={bg.href()} x="0" y="0" width="1920" height="1080" />
+ <g transform={format!("translate(0 {lift})")}>
+ <text x="160" y="366" font-family={MONO} font-weight="500" font-size="22" letter-spacing="2" fill={GREY}>"CODEX · ~/dev/fframes"</text>
+ <rect x="140" y="400" width="1640" height="270" rx="18" fill="#0f0e0d" fill-opacity="0.85"
+ stroke={if after > 0.0 { ORANGE } else { "#4a4640" }} stroke-width="2" />
+ <text x="180" y="522" font-family={MONO} font-weight="600" font-size="64" fill={ORANGE}>"›"</text>
+ <text x="240" y="522" font-family={MONO} font-weight="500" font-size="64" fill={BONE}>{line1}</text>
+ <text x="240" y="612" font-family={MONO} font-weight="500" font-size="64" fill={ORANGE}>{line2}</text>
+ <rect x={caret_x + 4.0} y={caret_y - 50.0} width="32" height="64" fill={ORANGE} opacity={if caret_on && after <= 0.0 { 1.0 } else { 0.0 }} />
+ </g>
+ <g transform="translate(0 -40)">{lines}</g>
+ </g>
+ )
+ }
+}
diff --git a/examples/fframes-intro/src/scenes/recap.rs b/examples/fframes-intro/src/scenes/recap.rs
new file mode 100644
index 00000000..6f84e2f2
--- /dev/null
+++ b/examples/fframes-intro/src/scenes/recap.rs
@@ -0,0 +1,54 @@
+//! One word per beat on alternating full-bleed colors.
+
+use fframes::{Duration, FFramesContext, Frame, Scene, Svgr};
+
+use crate::beat::*;
+use crate::ui::*;
+
+beat_scene!(RecapScene, Some(224.0), Some(236.0));
+
+const WORDS: &[&str] = &[
+ "TEXT", "IMAGES", "VIDEO", "SHADERS", "AUDIO", "GPU", "EFFECTS", "AGENTS",
+];
+
+impl Scene for RecapScene {
+ fn duration(&self) -> Duration<'_> {
+ Self::frames()
+ }
+
+ fn render_frame<'a>(&'a self, _frame: Frame, _ctx: &FFramesContext<'a, '_>) -> Svgr<'a> {
+ let lb = Self::lb(&_frame);
+ let i = lb.max(0.0).floor() as usize;
+ let local = lb - i as f32;
+ if i < WORDS.len() {
+ let (bg, fg) = match i % 3 {
+ 0 => (ORANGE, INK),
+ 1 => (BG, BONE),
+ _ => (PAPER, INK),
+ };
+ let punch = 1.0 + (1.0 - expo_out(local / 0.4)) * 0.12;
+ let n = format!("{:02}", i + 1);
+ let word = WORDS[i];
+ return fframes::svgr!(
+ <g>
+ <rect width="1920" height="1080" fill={bg} />
+ <g transform={format!("translate(960 560) scale({punch}) translate(-960 -560)")}>
+ <text x="960" y="690" text-anchor="middle" font-family={DISPLAY} font-size="360" letter-spacing="-16" fill={fg}>{word}</text>
+ </g>
+ <text x="150" y="200" font-family={MONO} font-weight="600" font-size="30" letter-spacing="6" fill={fg}>{n}</text>
+ <text x="1770" y="200" text-anchor="end" font-family={MONO} font-weight="600" font-size="30" letter-spacing="6" fill={fg}>"/ 08"</text>
+ </g>
+ );
+ }
+ // beats 8-12: ALL OF IT. / in Rust.
+ let l = lb - 8.0;
+ let exit = expo_in(prog(l, 3.7, 4.0));
+ fframes::svgr!(
+ <g opacity={1.0 - exit}>
+ <rect width="1920" height="1080" fill={BG} />
+ {Slam::new(960.0, 520.0, "ALL OF IT.", DISPLAY, 220.0, BONE).anchor("middle").draw(l, 0.0, 170.0)}
+ {Slam::new(960.0, 760.0, "in Rust.", SERIF, 220.0, ORANGE).anchor("middle").italic().draw(l - 2.0, 0.0, 170.0)}
+ </g>
+ )
+ }
+}
diff --git a/examples/fframes-intro/src/scenes/render.rs b/examples/fframes-intro/src/scenes/render.rs
new file mode 100644
index 00000000..e599da22
--- /dev/null
+++ b/examples/fframes-intro/src/scenes/render.rs
@@ -0,0 +1,107 @@
+//! The second drop: frames of this video fly out of the grid, next to the
+//! time it took to render all of them.
+
+use fframes::{Color, Duration, FFramesContext, Frame, Scene, ShaderUniforms, Svgr};
+
+use crate::beat::*;
+use crate::facts;
+use crate::shaders::SHADERS;
+use crate::ui::*;
+
+beat_scene!(RenderScene, Some(208.0), Some(224.0));
+
+const THUMBS: usize = 10;
+
+impl Scene for RenderScene {
+ fn duration(&self) -> Duration<'_> {
+ Self::frames()
+ }
+
+ fn render_frame<'a>(&'a self, mut frame: Frame, ctx: &FFramesContext<'a, '_>) -> Svgr<'a> {
+ let lb = Self::lb(&frame);
+ let grid = SHADERS.grid.draw(
+ &frame,
+ ShaderUniforms::new()
+ .float("uSpeed", 6.0)
+ .float("uHorizon", 0.5)
+ .float("uBright", 0.9 + pulse(lb, 6.0) * 0.4)
+ .color("uInk", Color::hex("#6f6a63"))
+ .color("uHot", Color::hex(ORANGE)),
+ );
+
+ // thumbnails on a stream towards the camera, far ones first
+ let t = lb * BEAT;
+ let mut cards: Vec<(f32, Svgr)> = Vec::new();
+ for k in 0..14 {
+ let lane = k % THUMBS;
+ let phase = (t * 0.45 + k as f32 / 14.0).fract();
+ let z = lerp(7.0, 0.35, phase);
+ let side = if k % 2 == 0 { -1.0 } else { 1.0 };
+ let xw = side * (620.0 + hash(k as f32 * 3.1) * 520.0);
+ let yw = -330.0 + hash(k as f32 * 7.7) * 300.0;
+ let x = 960.0 + xw / z;
+ let y = 540.0 + yw / z;
+ let w = 520.0 / z;
+ let h = w * 9.0 / 16.0;
+ let o = prog(phase, 0.0, 0.2) * (1.0 - prog(phase, 0.85, 1.0)) * prog(lb, 0.0, 0.3);
+ let name = format!("fly_{lane}.jpg");
+ if let Some(img) = ctx.get_image(&name) {
+ cards.push((
+ z,
+ fframes::svgr!(
+ <g opacity={o}>
+ <image href={img.href()} x={x - w / 2.0} y={y - h / 2.0} width={w} height={h} />
+ <rect x={x - w / 2.0} y={y - h / 2.0} width={w} height={h} fill="none" stroke={BONE} stroke-opacity="0.35" stroke-width="1" />
+ </g>
+ ),
+ ));
+ }
+ }
+ cards.sort_by(|a, b| b.0.partial_cmp(&a.0).unwrap());
+ let cards: Vec<Svgr> = cards.into_iter().map(|(_, c)| c).collect();
+
+ // letter-spacing -4 over 11 glyphs
+ let title_w = measure(&mut frame, ctx, DISPLAY, 120, 400, false, "THIS VIDEO.") - 44.0;
+ let count = (facts::FRAMES as f32 * expo_out(prog(lb, 0.0, 3.0))).round() as u64;
+ let secs = facts::RENDER_SECONDS * expo_out(prog(lb, 4.0, 6.0));
+ let a = snap(lb);
+ let b = snap(lb - 4.0);
+ let realtime = if facts::RENDER_SECONDS > 0.0 {
+ crate::beat::TOTAL_SECONDS / facts::RENDER_SECONDS
+ } else {
+ 0.0
+ };
+ let c = prog(lb, 8.0, 8.3);
+ let exit = expo_in(prog(lb, 15.7, 16.0));
+
+ fframes::svgr!(
+ <g opacity={1.0 - exit}>
+ <image href={grid.href()} x="0" y="0" width="1920" height="1080" />
+ {cards}
+ <rect x="0" y="600" width="1920" height="480" fill="url(#render-fade)" />
+ <defs>
+ <linearGradient id="render-fade" x1="0" y1="0" x2="0" y2="1">
+ <stop offset="0" stop-color="#0b0b0b" stop-opacity="0" />
+ <stop offset="1" stop-color="#0b0b0b" stop-opacity="0.9" />
+ </linearGradient>
+ </defs>
+ <g transform={format!("translate({} 0)", (1.0 - snap(lb - 0.5)) * -200.0)} opacity={prog(lb, 0.5, 0.6)}>
+ <rect x="120" y="120" width={title_w + 60.0} height="150" fill={ORANGE} />
+ <text x="150" y="232" font-family={DISPLAY} font-size="120" letter-spacing="-4" fill={INK}>"THIS VIDEO."</text>
+ </g>
+ <g transform={format!("translate(0 {})", (1.0 - a) * 70.0)} opacity={prog(lb, 0.0, 0.08)}>
+ <text x="150" y="820" font-family={DISPLAY} font-size="190" letter-spacing="-8" fill={BONE}>{thousands(count)}</text>
+ <text x="160" y="880" font-family={MONO} font-weight="600" font-size="30" letter-spacing="6" fill={BONE}>"FRAMES · 1920×1080 · 60 FPS"</text>
+ </g>
+ <g transform={format!("translate(0 {})", (1.0 - b) * 70.0)} opacity={prog(lb, 4.0, 4.08)}>
+ <text x="1770" y="820" text-anchor="end" font-family={DISPLAY} font-size="190" letter-spacing="-8" fill={ORANGE}>{format!("{secs:.1}s")}</text>
+ <text x="1770" y="880" text-anchor="end" font-family={MONO} font-weight="600" font-size="30" letter-spacing="6" fill={BONE}>"TO RENDER · SKIA ON METAL"</text>
+ </g>
+ <g opacity={c}>
+ <rect x="1330" y="170" width="440" height="64" fill={ORANGE} />
+ <text x="1550" y="214" text-anchor="middle" font-family={MONO} font-weight="700" font-size="30" letter-spacing="3" fill={INK}>{format!("{realtime:.1}× REAL TIME")}</text>
+ </g>
+ </g>
+ )
+ }
+}
diff --git a/examples/fframes-intro/src/scenes/scale.rs b/examples/fframes-intro/src/scenes/scale.rs
new file mode 100644
index 00000000..5fad6b84
--- /dev/null
+++ b/examples/fframes-intro/src/scenes/scale.rs
@@ -0,0 +1,110 @@
+//! The riser asks HOW FAST? and then draws one frame of the benchmark with
+//! its 3,334 text nodes; 300 such frames make a million.
+
+use fframes::{Duration, FFramesContext, Frame, Scene, Svgr};
+
+use crate::beat::*;
+use crate::ui::*;
+
+beat_scene!(ScaleScene, Some(80.0), Some(96.0));
+
+pub const NODES_PER_FRAME: usize = 3_334;
+const COLS: usize = 62;
+const ROWS: usize = 54;
+const WORDS: &[&str] = &["ff", "fx", "0x", "60", "rs", "gp", "sk", "vk", "mt", "tx"];
+
+impl Scene for ScaleScene {
+ fn duration(&self) -> Duration<'_> {
+ Self::frames()
+ }
+
+ fn render_frame<'a>(&'a self, frame: Frame, _ctx: &FFramesContext<'a, '_>) -> Svgr<'a> {
+ let lb = Self::lb(&frame);
+ if lb >= 14.0 {
+ return countdown(lb - 14.0);
+ }
+ let q = question(lb);
+ let wall = wall(lb);
+ fframes::svgr!(<g>{wall}{q}</g>)
+ }
+}
+
+/// HOW / FAST? on beats 0 and 1, then it shrinks into a heading.
+fn question(lb: f32) -> Svgr<'static> {
+ let shrink = cubic_in_out(prog(lb, 3.0, 4.0));
+ let s = lerp(1.0, 0.28, shrink);
+ let t = format!(
+ "translate({} {}) scale({s})",
+ lerp(0.0, 150.0 - 150.0 * s, shrink),
+ lerp(0.0, 34.0, shrink)
+ );
+ fframes::svgr!(
+ <g transform={t}>
+ {Slam::new(150.0, 440.0, "HOW", DISPLAY, 330.0, BONE).draw(lb, -260.0, 0.0)}
+ {Slam::new(150.0, 760.0, "FAST?", DISPLAY, 330.0, ORANGE).draw(lb - 1.0, 260.0, 0.0)}
+ </g>
+ )
+}
+
+/// 3,334 tiny text nodes filling in with a diagonal wave.
+fn wall(lb: f32) -> Svgr<'static> {
+ let l = lb - 4.0;
+ if l < 0.0 {
+ return Svgr::empty();
+ }
+ let fill = cubic_in_out(prog(l, 0.0, 8.0));
+ let x0 = 150.0;
+ let y0 = 345.0;
+ let dx = (1770.0 - x0) / COLS as f32;
+ let dy = (900.0 - y0) / ROWS as f32;
+ let mut nodes = Vec::with_capacity(NODES_PER_FRAME);
+ let mut shown = 0usize;
+ for i in 0..NODES_PER_FRAME {
+ let c = i % COLS;
+ let r = i / COLS;
+ let key = (c as f32 / COLS as f32) * 0.7 + (r as f32 / ROWS as f32) * 0.3;
+ if key > fill * 1.02 {
+ continue;
+ }
+ shown += 1;
+ let h = hash(i as f32 * 1.37 + (lb * 4.0).floor());
+ let word = WORDS[(hash(i as f32) * WORDS.len() as f32) as usize % WORDS.len()];
+ let fresh = fill * 1.02 - key < 0.03;
+ let color = if fresh || h > 0.97 {
+ ORANGE
+ } else if h > 0.55 {
+ "#b3aca2"
+ } else {
+ "#6b665f"
+ };
+ let x = x0 + c as f32 * dx;
+ let y = y0 + r as f32 * dy;
+ nodes.push(fframes::svgr!(<text x={x} y={y} font-family={MONO} font-size="13" font-weight="500" fill={color}>{word}</text>));
+ }
+ let count = (shown as f32 / NODES_PER_FRAME as f32 * 1_000_000.0).round() as u64;
+ let exit = expo_in(prog(l, 9.6, 10.0));
+ fframes::svgr!(
+ <g opacity={1.0 - exit}>
+ {nodes}
+ <rect x="1010" y="130" width="760" height="140" fill={BG} />
+ <text x="1770" y="232" text-anchor="end" font-family={DISPLAY} font-size="110" letter-spacing="-3" fill={BONE}>{thousands(count)}</text>
+ {label(1770.0, 290.0, "TEXT NODES TO RENDER".to_owned(), ORANGE, 20.0, "end")}
+ {label(150.0, 940.0, format!("ONE FRAME = {} TEXT NODES × 300 FRAMES", thousands(NODES_PER_FRAME as u64)), GREY, 20.0, "start")}
+ </g>
+ )
+}
+
+/// The near silent bar before the drop: two names, then nothing.
+fn countdown(l: f32) -> Svgr<'static> {
+ let a = snap(l);
+ let v = prog(l, 0.5, 0.55);
+ let b = snap(l - 0.5);
+ let out = prog(l, 1.55, 1.6);
+ fframes::svgr!(
+ <g opacity={1.0 - out}>
+ <text x="960" y={470.0 + (1.0 - a) * 40.0} text-anchor="middle" font-family={DISPLAY} font-size="120" letter-spacing="-3" fill={GREY}>"REMOTION"</text>
+ <text x="960" y="560" text-anchor="middle" font-family={SERIF} font-style="italic" font-size="70" fill={BONE} opacity={v}>"vs"</text>
+ <text x="960" y={690.0 + (1.0 - b) * 40.0} text-anchor="middle" font-family={DISPLAY} font-size="120" letter-spacing="-3" fill={ORANGE} opacity={v}>"FFRAMES"</text>
+ </g>
+ )
+}
diff --git a/examples/fframes-intro/src/scenes/shader.rs b/examples/fframes-intro/src/scenes/shader.rs
new file mode 100644
index 00000000..8a9b6c74
--- /dev/null
+++ b/examples/fframes-intro/src/scenes/shader.rs
@@ -0,0 +1,73 @@
+//! The tunnel that showed through the keyed feed grows to the whole frame,
+//! its SkSL source scrolls on the left and the guest becomes a halftone print.
+
+use fframes::{Duration, FFramesContext, Frame, Scene, Svgr};
+
+use crate::beat::*;
+use crate::scenes::video::{RIGHT, keyed_guest, tunnel};
+use crate::shaders::TUNNEL_SOURCE;
+use crate::ui::*;
+
+beat_scene!(ShaderScene, Some(72.0), Some(80.0));
+
+impl Scene for ShaderScene {
+ fn duration(&self) -> Duration<'_> {
+ Self::frames()
+ }
+
+ fn render_frame<'a>(&'a self, frame: Frame, ctx: &FFramesContext<'a, '_>) -> Svgr<'a> {
+ let lb = Self::lb(&frame);
+ // the right feed's frame grows to the full canvas
+ let open = expo_out(prog(lb, 0.0, 1.0));
+ let (rx, ry, rw, rh) = RIGHT;
+ let cx = lerp(rx, 0.0, open);
+ let cy = lerp(ry, 0.0, open);
+ let cw = lerp(rw, 1920.0, open);
+ let ch = lerp(rh, 1080.0, open);
+ // the guest moves from the feed to the right half and prints as halftone
+ let gx = lerp(rx, 860.0, open);
+ let gy = lerp(ry, 150.0, open);
+ let gw = lerp(rw, 1280.0, open);
+ let gh = lerp(rh, 720.0, open);
+ let halftone = prog(lb, 0.8, 1.6);
+
+ let lines: Vec<Svgr> = TUNNEL_SOURCE
+ .lines()
+ .filter(|l| !l.trim().is_empty())
+ .enumerate()
+ .map(|(i, l)| {
+ let y = 300.0 + i as f32 * 26.0 - lb * 40.0;
+ let text: String = l.chars().take(60).collect();
+ let o = if (250.0..900.0).contains(&y) { 1.0 } else { 0.0 };
+ fframes::svgr!(<text x="150" y={y} font-family={MONO} font-size="17" fill="#d8d0c4" opacity={o * 0.85}>{text}</text>)
+ })
+ .collect();
+ let panel = prog(lb, 1.0, 1.6);
+ let title = snap(lb - 0.8);
+ let all = snap(lb - 4.0);
+ let exit = expo_in(prog(lb, 7.7, 8.0));
+
+ fframes::svgr!(
+ <g opacity={1.0 - exit}>
+ <clipPath id="shader-open"><rect x={cx} y={cy} width={cw.max(1.0)} height={ch.max(1.0)} /></clipPath>
+ <g clip-path="url(#shader-open)">{tunnel(&frame, 3.0, 1.0)}</g>
+ {keyed_guest(&frame, ctx, (gx, gy, gw, gh), halftone, 1.0)}
+ <g opacity={panel}>
+ <rect x="120" y="250" width="720" height="650" fill="#0b0b0b" fill-opacity="0.72" />
+ <clipPath id="shader-src"><rect x="120" y="250" width="720" height="650" /></clipPath>
+ <g clip-path="url(#shader-src)">{lines}</g>
+ {corners(120.0, 250.0, 720.0, 650.0, 18.0, ORANGE, 2.0)}
+ {label(140.0, 935.0, "TUNNEL.SKSL · RAYMARCHED · 80 STEPS/PIXEL".to_owned(), ORANGE, 18.0, "start")}
+ </g>
+ <g opacity={prog(lb, 0.8, 0.9)} transform={format!("translate(0 {})", (1.0 - title) * 50.0)}>
+ <text x="150" y="220" font-family={DISPLAY} font-size="120" letter-spacing="-4" fill={BONE}>"SHADER"</text>
+ {label(154.0, 110.0, "04".to_owned(), ORANGE, 26.0, "start")}
+ </g>
+ <g opacity={prog(lb, 4.0, 4.1)} transform={format!("translate(0 {})", (1.0 - all) * 60.0)}>
+ <rect x="860" y="850" width="930" height="120" fill={ORANGE} />
+ <text x="890" y="940" font-family={DISPLAY} font-size="74" letter-spacing="-2" fill={INK}>"ALL IN ONE FRAME."</text>
+ </g>
+ </g>
+ )
+ }
+}
diff --git a/examples/fframes-intro/src/scenes/text.rs b/examples/fframes-intro/src/scenes/text.rs
new file mode 100644
index 00000000..6f2b3197
--- /dev/null
+++ b/examples/fframes-intro/src/scenes/text.rs
@@ -0,0 +1,66 @@
+//! A wall of marquee rows; the lit row jumps on every beat.
+
+use fframes::{Duration, FFramesContext, Frame, Scene, Svgr};
+
+use crate::beat::*;
+use crate::ui::*;
+
+beat_scene!(TextScene, Some(56.0), Some(62.0));
+
+const ROWS: &[&str] = &[
+ "TEXT · SHAPED · MEASURED · WRAPPED · ",
+ "KERNING · LIGATURES · 60 FPS · ",
+ "EVERY GLYPH ON THE GPU · ",
+ "TEXT · TEXT · TEXT · TEXT · ",
+ "FONTS COMPILED INTO THE BINARY · ",
+ "TYPOGRAPHY IS CODE · ",
+ "TEXT · SHAPED · MEASURED · ",
+ "WORD BY WORD · LINE BY LINE · ",
+];
+
+const ROW_H: f32 = 140.0;
+const SIZE: usize = 160;
+
+impl Scene for TextScene {
+ fn duration(&self) -> Duration<'_> {
+ Self::frames()
+ }
+
+ fn render_frame<'a>(&'a self, mut frame: Frame, ctx: &FFramesContext<'a, '_>) -> Svgr<'a> {
+ let lb = Self::lb(&frame);
+ let exit = expo_in(prog(lb, 5.7, 6.0));
+ let lit = (lb.max(0.0).floor() as usize * 3 + 1) % ROWS.len();
+ let mut rows = Vec::new();
+ for (i, text) in ROWS.iter().enumerate() {
+ let w = measure(&mut frame, ctx, COND, SIZE, 400, false, text);
+ let dir = if i % 2 == 0 { -1.0 } else { 1.0 };
+ let speed = 260.0 + (i as f32 * 37.0) % 140.0;
+ let enter = expo_out(prog(lb, i as f32 * 0.05, 0.6 + i as f32 * 0.05));
+ let offset = (lb * BEAT * speed * dir).rem_euclid(w) - w + (1.0 - enter) * 900.0 * dir;
+ let y = 150.0 + i as f32 * ROW_H;
+ let is_lit = i == lit;
+ let flash = if is_lit { pulse(lb, 5.0) } else { 0.0 };
+ let copies: Vec<Svgr> = (0..4)
+ .map(|k| {
+ let x = offset + k as f32 * w;
+ let t = (*text).to_owned();
+ if is_lit {
+ fframes::svgr!(<text x={x} y={y} font-family={COND} font-size={SIZE} fill={ORANGE}>{t}</text>)
+ } else {
+ fframes::svgr!(<text x={x} y={y} font-family={COND} font-size={SIZE} fill="none" stroke="#4b4741" stroke-width="1.6">{t}</text>)
+ }
+ })
+ .collect();
+ rows.push(fframes::svgr!(<g opacity={0.7 + flash * 0.3}>{copies}</g>));
+ }
+ fframes::svgr!(
+ <g opacity={1.0 - exit}>
+ {rows}
+ <rect x="120" y="360" width="690" height="270" fill={BG} />
+ <text x="150" y="560" font-family={DISPLAY} font-size="170" letter-spacing="-6" fill={BONE}>"TEXT"</text>
+ {label(154.0, 408.0, "01".to_owned(), ORANGE, 26.0, "start")}
+ {label(154.0, 610.0, "SHAPED · MEASURED · WRAPPED".to_owned(), GREY, 18.0, "start")}
+ </g>
+ )
+ }
+}
diff --git a/examples/fframes-intro/src/scenes/video.rs b/examples/fframes-intro/src/scenes/video.rs
new file mode 100644
index 00000000..58147a81
--- /dev/null
+++ b/examples/fframes-intro/src/scenes/video.rs
@@ -0,0 +1,143 @@
+//! Two podcast feeds decoded by ffmpeg, frame by frame. On the
+//! last bar the green screen of the right feed is keyed out on the GPU and the
+//! shader of the next scene shows through.
+
+use fframes::{
+ Color, Duration, FFramesContext, FFramesSyncedVideoFrame, Frame, Scene, ShaderUniforms, Svgr,
+ SyncVideoFrameInput,
+};
+
+use crate::beat::*;
+use crate::shaders::SHADERS;
+use crate::ui::*;
+
+beat_scene!(VideoScene, Some(66.0), Some(72.0));
+
+pub const LEFT: (f32, f32, f32, f32) = (150.0, 300.0, 790.0, 444.0);
+pub const RIGHT: (f32, f32, f32, f32) = (980.0, 300.0, 790.0, 444.0);
+
+pub fn clip_input() -> SyncVideoFrameInput<'static> {
+ SyncVideoFrameInput {
+ start_from: 0.0,
+ looping: true,
+ editor_fallback_image: None,
+ }
+}
+
+/// The keyed guest from the right feed: footage (0) or halftone print (1).
+pub fn keyed_guest(
+ frame: &Frame,
+ ctx: &FFramesContext,
+ rect: (f32, f32, f32, f32),
+ halftone: f32,
+ alpha: f32,
+) -> Svgr<'static> {
+ let Some(video) = frame.get_synced_video_frame(ctx, "right_clip.mp4", &clip_input()) else {
+ return Svgr::empty();
+ };
+ let image = video.into_image();
+ let layer = SHADERS.key.draw(
+ frame,
+ ShaderUniforms::new()
+ .image("iChannel0", &image)
+ .float2("uImg", 1280.0, 720.0)
+ .float("uHalftone", halftone)
+ .float("uCell", 9.0)
+ .float("uAlpha", alpha)
+ .color("uInk", Color::hex(ORANGE))
+ .color("uPaper", Color::hex(BONE)),
+ );
+ let (x, y, w, h) = rect;
+ fframes::svgr!(<image href={layer.href()} x={x} y={y} width={w} height={h} />)
+}
+
+pub fn tunnel(frame: &Frame, speed: f32, glow: f32) -> Svgr<'static> {
+ let layer = SHADERS.tunnel.draw(
+ frame,
+ ShaderUniforms::new()
+ .float("uT", crate::beat::gsec(frame))
+ .float("uSpeed", speed)
+ .float("uGlow", glow)
+ .color("uHot", Color::hex(ORANGE))
+ .color("uBone", Color::hex(BONE)),
+ );
+ fframes::svgr!(<image href={layer.href()} x="0" y="0" width="1920" height="1080" />)
+}
+
+fn film(x: f32, y: f32, w: f32, h: f32) -> Svgr<'static> {
+ let holes: Vec<Svgr> = (0..22)
+ .flat_map(|i| {
+ let hx = x + 10.0 + i as f32 * (w - 20.0) / 21.0;
+ [
+ fframes::svgr!(<rect x={hx} y={y - 26.0} width="14" height="10" rx="2" fill="#2d2a27" />),
+ fframes::svgr!(<rect x={hx} y={y + h + 16.0} width="14" height="10" rx="2" fill="#2d2a27" />),
+ ]
+ })
+ .collect();
+ fframes::svgr!(<g>{holes}</g>)
+}
+
+impl Scene for VideoScene {
+ fn duration(&self) -> Duration<'_> {
+ Self::frames()
+ }
+
+ fn render_frame<'a>(&'a self, frame: Frame, ctx: &FFramesContext<'a, '_>) -> Svgr<'a> {
+ let lb = Self::lb(&frame);
+ let left = frame
+ .get_synced_video_frame(ctx, "left_clip.mp4", &clip_input())
+ .map(|f| f.into_image());
+ let right = frame
+ .get_synced_video_frame(ctx, "right_clip.mp4", &clip_input())
+ .map(|f| f.into_image());
+ let enter_l = expo_out(prog(lb, 0.0, 0.7));
+ let enter_r = expo_out(prog(lb, 0.5, 1.2));
+ let keyed = lb >= 4.0;
+ let tc = timecode(frame.seconds() + 28.0);
+ let tc2 = timecode(frame.seconds() + 246.0);
+
+ let (lx, ly, lw, lh) = LEFT;
+ let (rx, ry, rw, rh) = RIGHT;
+ let left_img = left
+ .map(|i| fframes::svgr!(<image href={i.href()} x={lx} y={ly} width={lw} height={lh} />))
+ .unwrap_or_default();
+ let right_img = if keyed {
+ let flicker = if lb < 4.25 {
+ (hash(lb * 211.0) > 0.5) as i32 as f32
+ } else {
+ 1.0
+ };
+ fframes::svgr!(
+ <g>
+ <clipPath id="vid-right"><rect x={rx} y={ry} width={rw} height={rh} /></clipPath>
+ <g clip-path="url(#vid-right)">{tunnel(&frame, 3.0, 1.0)}</g>
+ <g opacity={flicker}>{keyed_guest(&frame, ctx, RIGHT, 0.0, 1.0)}</g>
+ </g>
+ )
+ } else {
+ right.map(|i| fframes::svgr!(<image href={i.href()} x={rx} y={ry} width={rw} height={rh} />)).unwrap_or_default()
+ };
+ let exit = expo_in(prog(lb, 5.75, 6.0));
+
+ fframes::svgr!(
+ <g>
+ <g opacity={1.0 - exit}>
+ <text x="150" y="220" font-family={DISPLAY} font-size="120" letter-spacing="-4" fill={BONE}>"VIDEO"</text>
+ {label(154.0, 110.0, "03".to_owned(), ORANGE, 26.0, "start")}
+ <g opacity={enter_l} transform={format!("translate(0 {})", (1.0 - enter_l) * 80.0)}>
+ {film(lx, ly, lw, lh)}
+ {left_img}
+ {label(lx, ly + lh + 70.0, format!("LEFT.MP4 {tc}"), GREY, 18.0, "start")}
+ </g>
+ {label(1770.0, 220.0, "DECODED BY FFMPEG · IN SYNC TO THE FRAME".to_owned(), GREY, 18.0, "end")}
+ </g>
+ <g opacity={enter_r} transform={format!("translate(0 {})", (1.0 - enter_r) * 80.0)}>
+ {film(rx, ry, rw, rh)}
+ {right_img}
+ {label(rx, ry + rh + 70.0, format!("RIGHT.MP4 {tc2}"), GREY, 18.0, "start")}
+ {label(rx + rw, ry + rh + 70.0, if keyed { "CHROMA KEY · SKSL".to_owned() } else { String::new() }, ORANGE, 18.0, "end")}
+ </g>
+ </g>
+ )
+ }
+}
diff --git a/examples/fframes-intro/src/shaders.rs b/examples/fframes-intro/src/shaders.rs
new file mode 100644
index 00000000..fc7e4563
--- /dev/null
+++ b/examples/fframes-intro/src/shaders.rs
@@ -0,0 +1,25 @@
+//! Every GPU shader of the video, compiled once by the Skia renderer.
+
+use std::sync::LazyLock;
+
+use fframes::Shader;
+
+pub struct Shaders {
+ pub grain: Shader,
+ pub contour: Shader,
+ pub tunnel: Shader,
+ pub key: Shader,
+ pub develop: Shader,
+ pub grid: Shader,
+}
+
+pub const TUNNEL_SOURCE: &str = include_str!("shaders/tunnel.sksl");
+
+pub static SHADERS: LazyLock<Shaders> = LazyLock::new(|| Shaders {
+ grain: Shader::sksl(include_str!("shaders/grain.sksl")),
+ contour: Shader::sksl(include_str!("shaders/contour.sksl")),
+ tunnel: Shader::sksl(TUNNEL_SOURCE),
+ key: Shader::sksl(include_str!("shaders/key.sksl")),
+ develop: Shader::sksl(include_str!("shaders/develop.sksl")),
+ grid: Shader::sksl(include_str!("shaders/grid.sksl")),
+});
diff --git a/examples/fframes-intro/src/shaders/contour.sksl b/examples/fframes-intro/src/shaders/contour.sksl
new file mode 100644
index 00000000..9d9858a6
--- /dev/null
+++ b/examples/fframes-intro/src/shaders/contour.sksl
@@ -0,0 +1,52 @@
+// Topographic contour field around a moving gravity well. Lines are drawn
+// with an analytic width (height gradient) so they stay one pixel thin.
+uniform float3 iResolution;
+uniform float iTime;
+uniform float2 uWell; // well position in 0..1 screen space
+uniform float uDepth; // well depth
+uniform float uDensity; // contour lines per unit height
+uniform float uBright; // overall line brightness
+uniform float4 uInk; // line color
+uniform float4 uHot; // color near the well
+
+float hash(float2 p) { return fract(sin(dot(p, float2(127.1, 311.7))) * 43758.5453); }
+float noise(float2 p) {
+ float2 i = floor(p); float2 f = fract(p);
+ float2 u = f * f * (3.0 - 2.0 * f);
+ return mix(mix(hash(i), hash(i + float2(1, 0)), u.x), mix(hash(i + float2(0, 1)), hash(i + float2(1, 1)), u.x), u.y);
+}
+float fbm(float2 p) {
+ float v = 0.0; float a = 0.5;
+ for (int i = 0; i < 4; i++) { v += a * noise(p); p = p * 2.02 + float2(11.0, 7.0); a *= 0.5; }
+ return v;
+}
+float height(float2 p, float t) {
+ float2 w = uWell * float2(iResolution.x / iResolution.y, 1.0);
+ float2 d = p - w;
+ float r2 = dot(d, d);
+ float well = -uDepth / (1.0 + r2 * 18.0);
+ float swirl = atan(d.y, d.x);
+ return fbm(p * 1.4 + float2(t * 0.02, -t * 0.015)) * 0.55 + well + 0.02 * sin(swirl * 3.0 + r2 * 20.0 - t);
+}
+half4 main(float2 coord) {
+ float2 p = coord / iResolution.y;
+ float t = iTime;
+ float e = 1.0 / iResolution.y;
+ float h = height(p, t);
+ float hx = height(p + float2(e, 0.0), t);
+ float hy = height(p + float2(0.0, e), t);
+ float grad = length(float2(hx - h, hy - h)) * uDensity + 1e-5;
+ float f = abs(fract(h * uDensity) - 0.5);
+ float line = 1.0 - smoothstep(0.6, 1.6, f / grad);
+ // every 5th line is a major contour
+ float major = abs(fract(h * uDensity / 5.0) - 0.5);
+ float lineMajor = 1.0 - smoothstep(0.6, 2.2, major / (grad / 5.0));
+ float2 w = uWell * float2(iResolution.x / iResolution.y, 1.0);
+ float hot = exp(-dot(p - w, p - w) * 9.0);
+ float3 col = mix(uInk.rgb, uHot.rgb, clamp(hot * 1.6, 0.0, 1.0));
+ float a = clamp((line * 0.45 + lineMajor * 0.55) * uBright * (0.35 + hot * 1.4), 0.0, 1.0);
+ // soft glow at the well
+ float3 glow = uHot.rgb * hot * 0.18 * uBright;
+ float3 c = col * a + glow;
+ return half4(half3(c), clamp(a + hot * 0.18 * uBright, 0.0, 1.0));
+}
diff --git a/examples/fframes-intro/src/shaders/develop.sksl b/examples/fframes-intro/src/shaders/develop.sksl
new file mode 100644
index 00000000..cdf44923
--- /dev/null
+++ b/examples/fframes-intro/src/shaders/develop.sksl
@@ -0,0 +1,29 @@
+// An image "developing": dithered orange duotone behind a scan line that
+// sweeps from left to right, full color after it.
+uniform float3 iResolution;
+uniform shader iChannel0;
+uniform float2 uImg;
+uniform float uProgress; // 0..1 position of the scan line
+uniform float uReveal; // 0..1 overall visibility
+uniform float4 uInk;
+uniform float4 uHot;
+
+half4 main(float2 coord) {
+ float2 src = coord / iResolution.xy * uImg;
+ float4 c = float4(iChannel0.eval(src));
+ float lum = dot(c.rgb, float3(0.299, 0.587, 0.114));
+ float2 px = floor(coord / 3.0);
+ float ign = fract(52.9829189 * fract(0.06711056 * px.x + 0.00583715 * px.y));
+ float d = lum > ign ? 1.0 : 0.0;
+ float3 duo = mix(uInk.rgb, uHot.rgb, d);
+ float x = coord.x / iResolution.x;
+ float edge = smoothstep(uProgress - 0.002, uProgress + 0.002, x);
+ float3 col = mix(c.rgb, duo, edge);
+ // bright scan line
+ float scan = exp(-abs(x - uProgress) * iResolution.x * 0.15);
+ col += uHot.rgb * scan * 1.2;
+ // dither fades in from nothing: pixels appear by threshold
+ float appear = step(ign, uReveal);
+ float a = appear;
+ return half4(half3(col * a), a);
+}
diff --git a/examples/fframes-intro/src/shaders/grain.sksl b/examples/fframes-intro/src/shaders/grain.sksl
new file mode 100644
index 00000000..28af66bf
--- /dev/null
+++ b/examples/fframes-intro/src/shaders/grain.sksl
@@ -0,0 +1,27 @@
+// Film grain and vignette laid over every frame: light grain lightens,
+// dark grain darkens, and the corners fall off towards black.
+uniform float3 iResolution;
+uniform float iTime;
+uniform float uGrain;
+uniform float uVignette;
+
+float hash(float2 p) {
+ p = fract(p * float2(443.897, 441.423));
+ p += dot(p, p.yx + 19.19);
+ return fract((p.x + p.y) * p.x);
+}
+
+half4 main(float2 coord) {
+ float2 uv = coord / iResolution.xy;
+ float t = floor(iTime * 30.0);
+ float n = hash(floor(coord / 1.5) + float2(t * 17.13, t * 3.71)) - 0.5;
+ float g = n * uGrain;
+ float v = smoothstep(0.45, 1.25, length((uv - 0.5) * float2(1.0, 0.8)) * 1.6) * uVignette;
+ // grain: white with alpha for positive noise, black for negative
+ float3 col = g > 0.0 ? float3(1.0) : float3(0.0);
+ float a = abs(g);
+ // vignette composited under the grain (both premultiplied, black is 0)
+ float outA = a + v * (1.0 - a);
+ float3 outC = col * a;
+ return half4(half3(outC), outA);
+}
diff --git a/examples/fframes-intro/src/shaders/grid.sksl b/examples/fframes-intro/src/shaders/grid.sksl
new file mode 100644
index 00000000..b693a09c
--- /dev/null
+++ b/examples/fframes-intro/src/shaders/grid.sksl
@@ -0,0 +1,34 @@
+// Perspective grid floor rushing towards the camera, with a glowing horizon.
+uniform float3 iResolution;
+uniform float iTime;
+uniform float uSpeed;
+uniform float uHorizon; // 0..1 screen height of the horizon
+uniform float uBright;
+uniform float4 uInk;
+uniform float4 uHot;
+
+half4 main(float2 coord) {
+ float2 uv = coord / iResolution.xy;
+ float y = uv.y - uHorizon;
+ float3 col = float3(0.0);
+ float a = 0.0;
+ if (y > 0.002) {
+ float z = 0.35 / y;
+ float x = (uv.x - 0.5) * z * (iResolution.x / iResolution.y) * 2.2;
+ float zz = z * 2.0 + iTime * uSpeed;
+ float fx = abs(fract(x) - 0.5);
+ float fz = abs(fract(zz) - 0.5);
+ float wx = 0.012 * z + 0.004;
+ float wz = 0.02 * z * z + 0.01;
+ float lx = 1.0 - smoothstep(0.0, wx * 1.5, fx - 0.0);
+ float lz = 1.0 - smoothstep(0.0, wz, fz);
+ float l = max(lx, lz) * exp(-z * 0.12);
+ float fade = smoothstep(0.0, 0.15, y);
+ col = mix(uHot.rgb, uInk.rgb, smoothstep(0.0, 0.5, y)) * l * fade;
+ a = l * fade;
+ }
+ float hz = exp(-abs(y) * 60.0) * 0.8 + exp(-abs(y) * 8.0) * 0.18;
+ col += uHot.rgb * hz;
+ a = clamp(a + hz, 0.0, 1.0);
+ return half4(half3(col * uBright), a * uBright);
+}
diff --git a/examples/fframes-intro/src/shaders/key.sksl b/examples/fframes-intro/src/shaders/key.sksl
new file mode 100644
index 00000000..d2003c87
--- /dev/null
+++ b/examples/fframes-intro/src/shaders/key.sksl
@@ -0,0 +1,37 @@
+// Green screen key for a decoded video frame (iChannel0), then either the
+// despilled footage or an orange halftone print of it.
+uniform float3 iResolution;
+uniform shader iChannel0;
+uniform float2 uImg; // source frame size in pixels
+uniform float uHalftone; // 0 = footage, 1 = halftone
+uniform float uCell; // halftone cell size in output pixels
+uniform float4 uInk;
+uniform float4 uPaper;
+uniform float uAlpha;
+
+float4 sampleKeyed(float2 coord) {
+ float2 src = coord / iResolution.xy * uImg;
+ float4 c = float4(iChannel0.eval(src));
+ float key = c.g - max(c.r, c.b);
+ float a = 1.0 - smoothstep(0.06, 0.2, key);
+ float3 rgb = c.rgb;
+ rgb.g = min(rgb.g, max(rgb.r, rgb.b) * 1.02);
+ return float4(rgb, a);
+}
+half4 main(float2 coord) {
+ float4 k = sampleKeyed(coord);
+ // halftone: sample the cell center, dot radius from luminance
+ float2 rc = float2(coord.x * 0.866 - coord.y * 0.5, coord.x * 0.5 + coord.y * 0.866);
+ float2 cell = floor(rc / uCell);
+ float2 ctr = (cell + 0.5) * uCell;
+ float2 ctrScreen = float2(ctr.x * 0.866 + ctr.y * 0.5, -ctr.x * 0.5 + ctr.y * 0.866);
+ float4 ks = sampleKeyed(ctrScreen);
+ float l2 = dot(ks.rgb, float3(0.299, 0.587, 0.114));
+ float r = uCell * 0.62 * sqrt(clamp(l2 * 1.25, 0.0, 1.0)) * ks.a;
+ float dotMask = 1.0 - smoothstep(r - 0.8, r + 0.8, length(rc - ctr));
+ float3 ht = mix(uInk.rgb, uPaper.rgb, smoothstep(0.55, 0.95, l2));
+ float htA = dotMask;
+ float3 col = mix(k.rgb * k.a, ht * htA, uHalftone);
+ float a = mix(k.a, htA, uHalftone) * uAlpha;
+ return half4(half3(col * uAlpha), a);
+}
diff --git a/examples/fframes-intro/src/shaders/tunnel.sksl b/examples/fframes-intro/src/shaders/tunnel.sksl
new file mode 100644
index 00000000..e80e9068
--- /dev/null
+++ b/examples/fframes-intro/src/shaders/tunnel.sksl
@@ -0,0 +1,52 @@
+// Raymarched gyroid tunnel flythrough, lit by orange rings.
+uniform float3 iResolution;
+uniform float uT;
+uniform float uSpeed;
+uniform float uGlow;
+uniform float4 uHot;
+uniform float4 uBone;
+
+float2 path(float z) { return float2(sin(z * 0.19) * 1.6, cos(z * 0.15) * 1.1); }
+float gyroid(float3 p) { return dot(sin(p), cos(p.yzx)); }
+float map(float3 p) {
+ float3 q = p; q.xy -= path(p.z);
+ float tube = 1.9 - length(q.xy);
+ float g = gyroid(p * 1.35) / 1.35;
+ return (tube + g * 0.35) * 0.7;
+}
+half4 main(float2 coord) {
+ float2 uv = (coord - 0.5 * iResolution.xy) / iResolution.y;
+ uv.y = -uv.y;
+ float z = uT * uSpeed;
+ float3 ro = float3(path(z), z);
+ float3 ta = float3(path(z + 1.5), z + 1.5);
+ float3 fw = normalize(ta - ro);
+ float3 rt = normalize(cross(float3(0.0, 1.0, 0.0), fw));
+ float3 up = cross(fw, rt);
+ float roll = sin(z * 0.11) * 0.35;
+ float2 ruv = float2(uv.x * cos(roll) - uv.y * sin(roll), uv.x * sin(roll) + uv.y * cos(roll));
+ float3 rd = normalize(fw + ruv.x * rt + ruv.y * up);
+ float t = 0.0;
+ float3 glow = float3(0.0);
+ float hit = 0.0;
+ for (int i = 0; i < 80; i++) {
+ float3 p = ro + rd * t;
+ float d = map(p);
+ // rings every 2.5 units along z, pulsing
+ float ring = abs(fract(p.z * 0.4) - 0.5);
+ float band = exp(-ring * 40.0);
+ glow += uHot.rgb * band * 0.012 / (0.05 + abs(d) * 6.0);
+ glow += uBone.rgb * 0.0025 / (0.03 + abs(d) * 20.0);
+ if (d < 0.002) { hit = 1.0; break; }
+ t += d;
+ if (t > 30.0) break;
+ }
+ float fog = exp(-t * 0.09);
+ float3 p = ro + rd * t;
+ float lines = abs(fract(gyroid(p * 4.0) * 1.5) - 0.5);
+ float3 surf = mix(float3(0.02), uBone.rgb * 0.35, smoothstep(0.08, 0.0, lines)) * hit * fog;
+ float3 col = surf + glow * uGlow * fog;
+ col = col / (1.0 + col);
+ col = pow(col, float3(0.9));
+ return half4(half3(col), 1.0);
+}
diff --git a/examples/fframes-intro/src/ui.rs b/examples/fframes-intro/src/ui.rs
new file mode 100644
index 00000000..a6e509b7
--- /dev/null
+++ b/examples/fframes-intro/src/ui.rs
@@ -0,0 +1,282 @@
+//! Palette, type and the small pieces of HUD every scene shares.
+
+use std::collections::HashMap;
+use std::sync::{LazyLock, Mutex};
+
+use fframes::{FFramesContext, FontQuery, FontStyle, Frame, Svgr};
+
+pub const BG: &str = "#0b0b0b";
+pub const BONE: &str = "#ece8e1";
+pub const ORANGE: &str = "#fb6a22";
+pub const EMBER: &str = "#8a3712";
+pub const GREY: &str = "#76726c";
+pub const DIM: &str = "#2b2926";
+pub const PAPER: &str = "#e8e4db";
+pub const INK: &str = "#121110";
+
+pub const DISPLAY: &str = "Archivo Black";
+pub const COND: &str = "Anton";
+pub const MONO: &str = "IBM Plex Mono";
+pub const SERIF: &str = "Instrument Serif";
+
+/// (family, size, weight, italic, text)
+type WidthKey = (String, usize, u16, bool, String);
+
+static WIDTHS: LazyLock<Mutex<HashMap<WidthKey, f32>>> =
+ LazyLock::new(|| Mutex::new(HashMap::new()));
+
+/// Width of a string in pixels, measured once per (font, text) and cached.
+/// Falls back to an estimate while fonts are not available.
+pub fn measure(
+ frame: &mut Frame,
+ ctx: &FFramesContext,
+ family: &str,
+ size: usize,
+ weight: u16,
+ italic: bool,
+ text: &str,
+) -> f32 {
+ let key = (family.to_owned(), size, weight, italic, text.to_owned());
+ if let Some(w) = WIDTHS.lock().unwrap().get(&key) {
+ return *w;
+ }
+ let query = FontQuery {
+ family,
+ size,
+ weight,
+ style: if italic {
+ FontStyle::Italic
+ } else {
+ FontStyle::Normal
+ },
+ ..Default::default()
+ };
+ // `text_width` wants the text to live as long as the context; results are
+ // cached, so every distinct string is leaked at most once.
+ let text: &'static str = Box::leak(text.to_owned().into_boxed_str());
+ match frame.text_width(ctx, query, text) {
+ Some(w) => {
+ let w = w as f32;
+ WIDTHS.lock().unwrap().insert(key, w);
+ w
+ }
+ None => text.chars().count() as f32 * size as f32 * 0.6,
+ }
+}
+
+/// Crop-mark corners around a rectangle.
+pub fn corners(x: f32, y: f32, w: f32, h: f32, arm: f32, color: &str, width: f32) -> Svgr<'static> {
+ let d = format!(
+ "M{x} {y1} V{y} H{x1} M{x2} {y} H{x3} V{y1} M{x3} {y2} V{y3} H{x2} M{x1} {y3} H{x} V{y2}",
+ x = x,
+ y = y,
+ x1 = x + arm,
+ x2 = x + w - arm,
+ x3 = x + w,
+ y1 = y + arm,
+ y2 = y + h - arm,
+ y3 = y + h,
+ );
+ fframes::svgr!(<path d={d} fill="none" stroke={color.to_owned()} stroke-width={width} />)
+}
+
+/// A small mono label, uppercase tracking like engineering drawings.
+pub fn label(
+ x: f32,
+ y: f32,
+ text: String,
+ color: &str,
+ size: f32,
+ anchor: &'static str,
+) -> Svgr<'static> {
+ fframes::svgr!(
+ <text x={x} y={y} font-family={MONO} font-weight="500" font-size={size} letter-spacing="2.5"
+ fill={color.to_owned()} text-anchor={anchor}>{text}</text>
+ )
+}
+
+/// An annotation: a dot on the target, an elbow line and a label.
+#[allow(clippy::too_many_arguments)]
+pub fn callout(
+ tx: f32,
+ ty: f32,
+ lx: f32,
+ ly: f32,
+ text: String,
+ color: &str,
+ progress: f32,
+) -> Svgr<'static> {
+ if progress <= 0.0 {
+ return Svgr::empty();
+ }
+ let p = progress.clamp(0.0, 1.0);
+ let mx = lx;
+ let my = ty;
+ // draw-on: first leg then second
+ let l1 = (mx - tx).abs() + 0.01;
+ let l2 = (ly - my).abs() + 0.01;
+ let total = l1 + l2;
+ let drawn = total * p;
+ let path = format!("M{tx} {ty} H{mx} V{ly}");
+ let dash = format!("{drawn} {total}");
+ let anchor = if lx >= tx { "start" } else { "end" };
+ let text_x = if lx >= tx { lx + 10.0 } else { lx - 10.0 };
+ let text_opacity = ((p - 0.6) / 0.4).clamp(0.0, 1.0);
+ fframes::svgr!(
+ <g>
+ <circle cx={tx} cy={ty} r="5" fill={color.to_owned()} opacity={p.min(1.0)} />
+ <circle cx={tx} cy={ty} r="12" fill="none" stroke={color.to_owned()} stroke-width="1.5" opacity={p * 0.6} />
+ <path d={path} fill="none" stroke={color.to_owned()} stroke-width="1.5" stroke-dasharray={dash} />
+ <text x={text_x} y={ly + 6.0} font-family={MONO} font-weight="500" font-size="20" letter-spacing="2"
+ fill={color.to_owned()} text-anchor={anchor} opacity={text_opacity}>{text}</text>
+ </g>
+ )
+}
+
+/// Timecode `mm:ss:ff` at 60 fps.
+pub fn timecode(seconds: f32) -> String {
+ let total_frames = (seconds * 60.0).max(0.0) as u32;
+ let ff = total_frames % 60;
+ let s = (total_frames / 60) % 60;
+ let m = total_frames / 3600;
+ format!("00:{m:02}:{s:02}:{ff:02}")
+}
+
+pub fn thousands(n: u64) -> String {
+ let s = n.to_string();
+ let mut out = String::new();
+ for (i, c) in s.chars().enumerate() {
+ if i > 0 && (s.len() - i).is_multiple_of(3) {
+ out.push(',');
+ }
+ out.push(c);
+ }
+ out
+}
+
+/// Horizontal strip of text drawn letter by letter with per-letter offsets:
+/// `f(i) -> (dx, dy, opacity, scale)` for every character.
+#[allow(clippy::too_many_arguments)]
+pub fn letters<F>(
+ frame: &mut Frame,
+ ctx: &FFramesContext,
+ x: f32,
+ y: f32,
+ text: &str,
+ family: &'static str,
+ size: usize,
+ weight: u16,
+ fill: &str,
+ tracking: f32,
+ f: F,
+) -> Svgr<'static>
+where
+ F: Fn(usize) -> (f32, f32, f32, f32),
+{
+ let mut out = Vec::new();
+ let chars: Vec<char> = text.chars().collect();
+ for (i, c) in chars.iter().enumerate() {
+ let prefix: String = chars[..i].iter().collect();
+ let px = measure(frame, ctx, family, size, weight, false, &prefix) + tracking * i as f32;
+ let (dx, dy, o, s) = f(i);
+ if o <= 0.001 {
+ continue;
+ }
+ let cw = measure(frame, ctx, family, size, weight, false, &c.to_string());
+ let cx = x + px + cw / 2.0;
+ let t = format!(
+ "translate({} {}) scale({}) translate({} 0)",
+ cx + dx,
+ y + dy,
+ s.max(0.001),
+ -cw / 2.0
+ );
+ let ch = c.to_string();
+ out.push(fframes::svgr!(
+ <text transform={t} font-family={family} font-weight={weight} font-size={size} fill={fill.to_owned()} opacity={o}>{ch}</text>
+ ));
+ }
+ fframes::svgr!(<g>{out}</g>)
+}
+
+/// A word that slams in with a spring from `(dx, dy)` and leaves a motion
+/// trail of ember copies behind it while it moves (the fframes brand motif).
+pub struct Slam {
+ pub x: f32,
+ pub y: f32,
+ pub text: String,
+ pub family: &'static str,
+ pub size: f32,
+ pub fill: &'static str,
+ pub spacing: f32,
+ pub anchor: &'static str,
+ pub italic: bool,
+}
+
+impl Slam {
+ pub fn new(
+ x: f32,
+ y: f32,
+ text: impl Into<String>,
+ family: &'static str,
+ size: f32,
+ fill: &'static str,
+ ) -> Self {
+ Slam {
+ x,
+ y,
+ text: text.into(),
+ family,
+ size,
+ fill,
+ spacing: -size * 0.035,
+ anchor: "start",
+ italic: false,
+ }
+ }
+ pub fn anchor(mut self, anchor: &'static str) -> Self {
+ self.anchor = anchor;
+ self
+ }
+ pub fn italic(mut self) -> Self {
+ self.italic = true;
+ self.spacing = 0.0;
+ self
+ }
+
+ /// `since` is beats since the entrance started.
+ pub fn draw(&self, since: f32, dx: f32, dy: f32) -> Svgr<'static> {
+ if since < 0.0 {
+ return Svgr::empty();
+ }
+ let off = |t: f32| {
+ let s = crate::beat::snap(t.max(0.0));
+ ((1.0 - s) * dx, (1.0 - s) * dy)
+ };
+ let text = |ox: f32, oy: f32, fill: &str, opacity: f32| {
+ let t = self.text.clone();
+ let style = if self.italic { "italic" } else { "normal" };
+ fframes::svgr!(
+ <text x={self.x + ox} y={self.y + oy} text-anchor={self.anchor} font-family={self.family} font-style={style}
+ font-size={self.size} letter-spacing={self.spacing} fill={fill.to_owned()} opacity={opacity}>{t}</text>
+ )
+ };
+ let mut layers = Vec::new();
+ let trail = [
+ (0.16, EMBER, 0.35),
+ (0.10, "#c4531c", 0.5),
+ (0.05, ORANGE, 0.65),
+ ];
+ for (lag, color, o) in trail {
+ let (ox, oy) = off(since - lag);
+ let (cx, cy) = off(since);
+ let moving = ((ox - cx).powi(2) + (oy - cy).powi(2)).sqrt();
+ if moving > 2.0 && since > lag * 0.5 {
+ layers.push(text(ox, oy, color, o * (moving / 40.0).min(1.0)));
+ }
+ }
+ let (ox, oy) = off(since);
+ layers.push(text(ox, oy, self.fill, crate::beat::prog(since, 0.0, 0.06)));
+ fframes::svgr!(<g>{layers}</g>)
+ }
+}
diff --git a/fframes/src/audio_mix.rs b/fframes/src/audio_mix.rs
index 68c22218..23992a00 100644
--- a/fframes/src/audio_mix.rs
+++ b/fframes/src/audio_mix.rs
@@ -562,10 +562,9 @@ impl<'m> AudioMixer<'m> {
let len = left.len().min(right.len());
let (left, right) = (&mut left[..len], &mut right[..len]);
- if self.limiter.is_none() {
- self.mix_raw(start, left, right);
- } else {
- let latency = self.limiter.as_ref().map_or(0, Limiter::latency);
+ // The limiter is taken out while `mix_raw` borrows the mixer and put back after.
+ if let Some(mut limiter) = self.limiter.take() {
+ let latency = limiter.latency();
let mut raw_l = vec![0.; len];
let mut raw_r = vec![0.; len];
@@ -574,7 +573,6 @@ impl<'m> AudioMixer<'m> {
let mut prime_l = vec![0.; latency];
let mut prime_r = vec![0.; latency];
self.mix_raw(start, &mut prime_l, &mut prime_r);
- let limiter = self.limiter.as_mut().expect("limiter is set");
limiter.reset();
for (l, r) in prime_l.into_iter().zip(prime_r) {
limiter.process(l, r);
@@ -582,13 +580,15 @@ impl<'m> AudioMixer<'m> {
}
self.mix_raw(start + latency, &mut raw_l, &mut raw_r);
- let limiter = self.limiter.as_mut().expect("limiter is set");
for i in 0..len {
let (l, r) = limiter.process(raw_l[i], raw_r[i]);
left[i] = l;
right[i] = r;
}
self.next_raw = Some(start + latency + len);
+ self.limiter = Some(limiter);
+ } else {
+ self.mix_raw(start, left, right);
}
if self.declick {
diff --git a/fframes/src/frame.rs b/fframes/src/frame.rs
index a835d9f7..15dc60f7 100644
--- a/fframes/src/frame.rs
+++ b/fframes/src/frame.rs
@@ -76,7 +76,7 @@ impl Frame {
pub fn clone_with_scene_offset(frame: &Frame, offset: usize) -> Self {
Self {
index: frame.index - offset,
- global_index: frame.global_index + offset,
+ global_index: frame.global_index,
fps: frame.fps,
text_cache: frame.text_cache.clone(),
worker_local_video_decoders: frame.worker_local_video_decoders.clone(),
@@ -468,3 +468,16 @@ impl Frame {
.flatten()
}
}
+
+#[cfg(test)]
+mod scene_offset_tests {
+ use super::Frame;
+
+ #[test]
+ fn scene_frames_keep_the_global_index() {
+ let global = Frame::new(100, 100, 60);
+ let scene = Frame::clone_with_scene_offset(&global, 40);
+ assert_eq!(scene.index, 60);
+ assert_eq!(scene.global_index, 100);
+ }
+}
diff --git a/fframes/src/renderer/preview.rs b/fframes/src/renderer/preview.rs
index 0b63ac25..2b448f73 100644
--- a/fframes/src/renderer/preview.rs
+++ b/fframes/src/renderer/preview.rs
@@ -30,7 +30,7 @@ impl std::fmt::Debug for RgbaFrame {
impl RgbaFrame {
/// Wraps premultiplied RGBA pixels (what tiny-skia and Skia produce).
pub fn from_premultiplied(width: u32, height: u32, mut pixels: Vec<u8>) -> Self {
- for px in pixels.chunks_exact_mut(4) {
+ for px in pixels.as_chunks_mut::<4>().0 {
let a = px[3];
if a != 255 && a != 0 {
for c in &mut px[..3] {
diff --git a/fframes/src/renderer/sheet.rs b/fframes/src/renderer/sheet.rs
index 7928206e..e03d3c81 100644
--- a/fframes/src/renderer/sheet.rs
+++ b/fframes/src/renderer/sheet.rs
@@ -12,7 +12,7 @@ pub struct SheetCell {
fn to_pixmap(frame: &RgbaFrame) -> FFramesRendererResult<tiny_skia::Pixmap> {
let mut data = frame.pixels.clone();
- for px in data.chunks_exact_mut(4) {
+ for px in data.as_chunks_mut::<4>().0 {
let a = px[3] as u32;
if a != 255 {
for c in &mut px[..3] {
diff --git a/fframes/src/renderer/snapshot.rs b/fframes/src/renderer/snapshot.rs
index e9af584e..eacc6b37 100644
--- a/fframes/src/renderer/snapshot.rs
+++ b/fframes/src/renderer/snapshot.rs
@@ -96,8 +96,10 @@ pub fn diff_frames(
let mut diff = Vec::with_capacity(expected.pixels.len());
for (e, a) in expected
.pixels
- .chunks_exact(4)
- .zip(actual.pixels.chunks_exact(4))
+ .as_chunks::<4>()
+ .0
+ .iter()
+ .zip(actual.pixels.as_chunks::<4>().0)
{
let differs = e
.iter()
diff --git a/render-bench/bench/tfx/k_r_glow.png b/render-bench/bench/tfx/k_r_glow.png
new file mode 100644
index 00000000..cbe8bf99
Binary files /dev/null and b/render-bench/bench/tfx/k_r_glow.png differ
diff --git a/render-bench/bench/tfx/k_r_gradient.png b/render-bench/bench/tfx/k_r_gradient.png
new file mode 100644
index 00000000..8fed404b
Binary files /dev/null and b/render-bench/bench/tfx/k_r_gradient.png differ
diff --git a/render-bench/bench/tfx/k_r_shadow.png b/render-bench/bench/tfx/k_r_shadow.png
new file mode 100644
index 00000000..9578e223
Binary files /dev/null and b/render-bench/bench/tfx/k_r_shadow.png differ
diff --git a/render-bench/bench/tfx/k_r_solid.png b/render-bench/bench/tfx/k_r_solid.png
new file mode 100644
index 00000000..506c3951
Binary files /dev/null and b/render-bench/bench/tfx/k_r_solid.png differ
diff --git a/render-bench/bench/tfx/k_r_spacing.png b/render-bench/bench/tfx/k_r_spacing.png
new file mode 100644
index 00000000..b94dce5f
Binary files /dev/null and b/render-bench/bench/tfx/k_r_spacing.png differ
diff --git a/render-bench/bench/tfx/k_r_stroke.png b/render-bench/bench/tfx/k_r_stroke.png
new file mode 100644
index 00000000..55b39d26
Binary files /dev/null and b/render-bench/bench/tfx/k_r_stroke.png differ
diff --git a/render-bench/bench/tfx/k_r_wave.png b/render-bench/bench/tfx/k_r_wave.png
new file mode 100644
index 00000000..98edbb73
Binary files /dev/null and b/render-bench/bench/tfx/k_r_wave.png differ
diff --git a/render-bench/vs-remotion/.gitignore b/render-bench/vs-remotion/.gitignore
new file mode 100644
index 00000000..0e5b7587
--- /dev/null
+++ b/render-bench/vs-remotion/.gitignore
@@ -0,0 +1,11 @@
+out/
+build/
+node_modules/
+# benchmark results and generated media
+results*
+pilot.tsv
+logs/
+*.png
+fframes/out/
+remotion/out/
+remotion/public/*.mp4
diff --git a/render-bench/vs-remotion/README.md b/render-bench/vs-remotion/README.md
new file mode 100644
index 00000000..2fabb67d
--- /dev/null
+++ b/render-bench/vs-remotion/README.md
@@ -0,0 +1,163 @@
+# Remotion vs fframes: 1,000,000 text nodes
+
+One video, built twice: 1920x1080, 30 fps, 10 s (300 frames), H.264 mp4, no audio. Every
+frame draws 3,334 text nodes (300 x 3,334 = 1,000,200 in total) in a 47 x 71 grid: short
+numbers and the word "fframes", DM Sans Regular 10 px (the same `DMSans-Regular.ttf` on both
+sides), with per-node position, opacity and color computed from the frame index, so nothing
+can be reused from one frame to the next.
+
+- `remotion/`: Remotion 4.0.529 project. `src/TextGrid.tsx` renders 3,334 absolutely
+ positioned `<span>`s per frame (plain React, `useCurrentFrame`, font loaded with
+ `@remotion/fonts`).
+- `fframes/`: workspace crate `vs-remotion-bench`. `src/main.rs` builds 3,334 `<text>` nodes
+ per frame with `svgr!` in a loop and renders with `fframes::render` on the Skia GPU
+ backend (Metal or Vulkan/MoltenVK) or the CPU backend.
+
+The per-node math (position, alpha, HSL to RGB, label) is the same code in both files, so both
+videos show the same frames. Frame 150 of each is in `logs/remotion_f150.png` and
+`logs/fframes_f150.png`. Chrome draws the glyphs slightly heavier; the layout, text and
+colors are the same.
+
+## Same settings on both sides
+
+| | Remotion | fframes |
+|---|---|---|
+| Encoder | libx264 (Remotion's bundled ffmpeg) | libx264 (FFmpeg 9 linked into fframes) |
+| Rate control | crf 18 (Remotion's h264 default) | crf 18 |
+| x264 preset | none passed, so libx264's default `medium` | `medium`, set explicitly |
+| Pixel format | yuvj420p (Remotion's default JPEG frames) | yuv420p |
+| Output | 300 frames, 1920x1080, 109.5 MB | 300 frames, 1920x1080, 104.4 MB |
+
+Both timings include encoding. Encoding runs alongside rendering on both sides, and at
+preset `medium` it is expensive for this content, because thousands of small moving glyphs
+compress badly. To see the renderers with less encoding in the way, both sides were also
+run at x264 preset `ultrafast` (still crf 18).
+
+What each time covers: wall time of the whole command, measured from outside with a
+high-resolution timer (`run.sh`).
+- `remotion_default`: `npx remotion render src/index.ts ...`, which bundles (about 1.2 s),
+ starts Chrome, renders and encodes.
+- `remotion_prebundled_cN`: `remotion render build ...` on a bundle made once with
+ `remotion bundle`. Bundling is not counted (the fframes compile is not counted either);
+ Chrome start, rendering and encoding are.
+- `fframes_*`: the release binary, already compiled: process start, font loading,
+ GPU context setup, rendering, encoding, muxing.
+
+Remotion was given its best settings: concurrency 8 (its default on 16 cores), 12 and 16,
+with the fastest median reported. The Chrome headless shell download and one warm-up render
+came first and are not counted. fframes was tried on Metal and Vulkan with 1 or 2 GPU
+contexts (`GPU_CONTEXTS`), and its fastest median is reported the same way.
+
+## Results
+
+Machine: Apple M4 Max (16 cores: 12 performance, 4 efficiency), 64 GB, macOS 26.5.1. Node
+v26.8.2, Chrome Headless Shell 149.0.7790.0, rustc 1.92.0, fframes at git 1070159. Runs
+were interleaved (round 1 of every configuration, then round 2, and so on) with 10 s idle
+between runs, 5 rounds, median reported. The 1-minute load average before each run was 10.5
+to 30 (median 19.6). About half of that comes from the benchmark itself: Chrome and x264
+threads count toward the load average, and the 1-minute average lags. The rest was macOS
+background daemons (spotlightknowledged, mediaanalysisd).
+
+Main comparison (x264 medium, crf 18, all timings include encoding):
+
+| configuration | median (s) | fps | runs (s) |
+|---|---:|---:|---|
+| Remotion, `npx remotion render` default (bundling included) | 10.56 | 28.4 | 10.41 10.68 10.56 10.59 10.18 |
+| Remotion, pre-bundled, concurrency 8 (best) | **9.41** | 31.9 | 9.00 9.87 9.62 9.16 9.41 |
+| Remotion, pre-bundled, concurrency 12 | 9.68 | 31.0 | 9.68 9.48 9.86 9.46 9.74 |
+| Remotion, pre-bundled, concurrency 16 | 10.05 | 29.9 | 9.98 10.06 10.05 9.67 12.11 |
+| fframes Skia Metal, 1 GPU context (default config) | 7.50 | 40.0 | 7.80 7.50 7.50 7.32 7.34 |
+| fframes Skia Metal, 2 GPU contexts | 6.47 | 46.4 | 6.56 6.47 6.47 6.31 6.46 |
+| fframes Skia Vulkan (MoltenVK), 2 GPU contexts (best) | **6.29** | 47.7 | 6.52 6.36 6.25 6.28 6.29 |
+| fframes CPU backend (tiny-skia) | 6.80 | 44.1 | 7.08 6.86 6.80 6.68 6.77 |
+
+**Speedup: fframes GPU is 1.50x faster than Remotion's best (9.41 s / 6.29 s)** and 1.68x
+faster than a default `npx remotion render` (10.56 s / 6.29 s). A large share of both
+times is the same libx264 encode at the same settings, so the two renderers differ by more
+than 1.5x (see the secondary table).
+
+Secondary (x264 ultrafast, crf 18, encoding still included):
+
+| configuration | median (s) | fps | runs (s) |
+|---|---:|---:|---|
+| Remotion, pre-bundled, concurrency 8 | 8.75 | 34.3 | 7.32 7.41 8.75 8.85 9.15 |
+| Remotion, pre-bundled, concurrency 12 (best, separate 3-run sweep) | **7.40** | 40.5 | 7.40 6.62 7.60 |
+| Remotion, pre-bundled, concurrency 16 (separate 3-run sweep) | 7.59 | 39.5 | 7.86 7.59 7.09 |
+| fframes Skia Metal, 2 GPU contexts | **2.60** | 115.4 | 2.70 2.61 2.50 2.57 2.60 |
+| fframes CPU backend | 3.15 | 95.3 | 3.21 3.10 3.14 3.16 3.15 |
+
+At preset ultrafast, where encoding costs less, fframes GPU is **2.85x** faster (7.40 s / 2.60 s).
+Remotion gains only about 2 s from the faster preset, because Chrome's per-frame screenshots
+now take most of its time.
+
+All numbers are in `results.tsv` and `results_ultrafast_sweep.tsv` and are summarized in
+`results.json` (`python3 summarize.py`).
+
+### Caveats
+
+- The headline 1.5x is small because x264 at preset `medium` costs a lot of CPU on both
+ sides. On its own, encoding these 300 frames with libx264 medium, crf 18, from raw YUV
+ takes 3.8 s with all 16 cores (78 fps). fframes renders on the same cores, so its total
+ (6.29 s) comes out close to rendering (2.60 s at ultrafast) plus that encode. Remotion's
+ total rises by only 2.0 s (7.40 s to 9.41 s), probably because its render stage leaves
+ cores idle that the encoder can use. That is why the gap shrinks from 2.85x to 1.5x.
+- On this M4 Max, fframes' CPU backend (16 cores) is nearly as fast as the GPU backend
+ (6.80 s vs 6.29 s, or 3.15 s vs 2.60 s at ultrafast). This scene is 3,334 small glyph
+ runs per frame. Building the tree and laying out the text happen on the CPU for both
+ backends, so the GPU helps less here than it does for scenes that are heavy to rasterize.
+- fframes' default GPU config (1 context) is 7.50 s. The 6.29 s result uses 2 GPU contexts
+ (`SkiaPipelineConcurrencyPolicy::Concurrency(2)`). Remotion was tuned the same way
+ (concurrency sweep plus pre-bundling), so both sides are shown at their best settings.
+ Default against default is 10.56 s vs 7.50 s = 1.41x.
+- The fframes CPU backend wrote **299 frames instead of 300** in every run (the GPU backends
+ and Remotion wrote 300). This looks like a bug in the CPU render path and should be
+ checked before quoting CPU numbers next to GPU numbers. It changes the CPU time by
+ about 0.3%.
+- Earlier passes with no idle time between runs, or with other renders on the machine, were
+ discarded. They showed the same ordering with more noise.
+- Single machine, Apple Silicon only. Linux or x86 results can differ, especially for
+ Chrome and MoltenVK compared with native Vulkan.
+
+## Reproduce
+
+```sh
+# Remotion (once)
+cd render-bench/vs-remotion/remotion
+npm install
+npx remotion browser ensure # Chrome headless shell download, not timed
+npx remotion bundle src/index.ts --out-dir build
+npx remotion render src/index.ts TextGrid out/warmup.mp4 --codec=h264 # warm-up
+
+# fframes (once; the Skia build needs LIBCLANG_PATH/CLANG_PATH, see the repo notes)
+cd ../../.. # repo root
+cargo build --release -p vs-remotion-bench
+
+# Benchmark: 5 interleaved rounds, 10 s idle between runs
+cd render-bench/vs-remotion
+ROUNDS=5 COOLDOWN=10 ./run.sh # writes results.tsv, videos and logs in out/
+python3 summarize.py # writes results.json
+```
+
+Single runs:
+
+```sh
+# Remotion
+cd render-bench/vs-remotion/remotion
+npx remotion render src/index.ts TextGrid out/remotion.mp4 --codec=h264
+npx remotion render build TextGrid out/remotion.mp4 --codec=h264 --concurrency=8
+
+# fframes (from the repo root); backend: metal | vulkan | cpu, third arg: x264 preset
+GPU_CONTEXTS=2 DYLD_LIBRARY_PATH=/opt/homebrew/lib \
+ target/release/vs-remotion-bench vulkan out/fframes.mp4 medium
+```
+
+Checking the outputs:
+
+```sh
+ffprobe -v error -select_streams v -count_frames \
+ -show_entries stream=codec_name,width,height,pix_fmt,nb_read_frames -of csv=p=0 out/fframes_vulkan_ctx2.mp4
+ffmpeg -i out/fframes_vulkan_ctx2.mp4 -vf "select=eq(n\,150)" -frames:v 1 fframes_f150.png
+```
+
+`logs/remotion_log.txt` and `logs/fframes_log.txt` hold the terminal output of one run of
+each.
diff --git a/render-bench/vs-remotion/fframes/Cargo.toml b/render-bench/vs-remotion/fframes/Cargo.toml
new file mode 100644
index 00000000..9b8ecf69
--- /dev/null
+++ b/render-bench/vs-remotion/fframes/Cargo.toml
@@ -0,0 +1,16 @@
+[package]
+name = "vs-remotion-bench"
+description = "1M text nodes: the fframes side of the Remotion vs fframes benchmark"
+version = "0.0.0"
+edition = "2024"
+publish = false
+
+# Same feature set as examples/beta so the existing Skia (vulkan + metal) and FFmpeg
+# builds in the workspace target dir are reused.
+[dependencies]
+fframes = { workspace = true, features = ["h264", "libav-agree-gpl", "compile-time-svgtree", "cli"] }
+fframes_skia_renderer = { workspace = true, features = ["vulkan"] }
+fframes_native_player.workspace = true
+
+[target.'cfg(target_os = "macos")'.dependencies]
+fframes_native_player = { workspace = true, features = ["metal"] }
diff --git a/render-bench/vs-remotion/fframes/media/DMSans-Regular.ttf b/render-bench/vs-remotion/fframes/media/DMSans-Regular.ttf
new file mode 100644
index 00000000..cad73f07
Binary files /dev/null and b/render-bench/vs-remotion/fframes/media/DMSans-Regular.ttf differ
diff --git a/render-bench/vs-remotion/fframes/src/bin/textfx.rs b/render-bench/vs-remotion/fframes/src/bin/textfx.rs
new file mode 100644
index 00000000..8a72e6f6
--- /dev/null
+++ b/render-bench/vs-remotion/fframes/src/bin/textfx.rs
@@ -0,0 +1,345 @@
+//! Workload "TextFx" (fframes side). Twin of ../remotion/src/TextFx.tsx: 3,334 text nodes
+//! per frame (300 frames, 1,000,200 in total), 18 to 96 px, each with seeded "random"
+//! animated effects: rotation / scale / skew, opacity, HSL colour cycling, gradient fills,
+//! outlined text, drop shadows, glow (every 10th node), letter-spacing and per-letter
+//! wave words. Gradients and filters are shared `<defs>`, animated per frame.
+//!
+//! ```sh
+//! DYLD_LIBRARY_PATH=/opt/homebrew/lib target/release/textfx metal out/textfx.mp4 medium
+//! ```
+//! Backends: `metal`, `vulkan` (MoltenVK), `cpu`. `GPU_CONTEXTS=n` for n Skia contexts.
+
+use std::path::Path;
+use std::time::Instant;
+
+use fframes::{
+ AudioMap, Color, Duration, EncoderOptions, FFramesContext, Frame, MediaDirectory,
+ RenderOptions, Svgr, Video, fframes_logger::FFramesLoggerVariant,
+};
+use fframes_skia_renderer::{
+ SkiaFFramesRenderer, SkiaPipelineConcurrencyPolicy, SkiaPipelineConfig,
+};
+
+/// HSL (degrees, 0..1, 0..1) to `#rrggbb`, the same math as `hslToHex` in TextFx.tsx.
+fn hsl_to_hex(h: f64, s: f64, l: f64) -> String {
+ let c = (1.0 - (2.0 * l - 1.0).abs()) * s;
+ let hp = h / 60.0;
+ let x = c * (1.0 - ((hp % 2.0) - 1.0).abs());
+ let (r, g, b) = if hp < 1.0 {
+ (c, x, 0.0)
+ } else if hp < 2.0 {
+ (x, c, 0.0)
+ } else if hp < 3.0 {
+ (0.0, c, x)
+ } else if hp < 4.0 {
+ (0.0, x, c)
+ } else if hp < 5.0 {
+ (x, 0.0, c)
+ } else {
+ (c, 0.0, x)
+ };
+ let m = l - c / 2.0;
+ let q = |v: f64| ((v + m) * 255.0).round() as u8;
+ format!("#{:02x}{:02x}{:02x}", q(r), q(g), q(b))
+}
+
+const NODES: usize = 3334;
+const FRAMES: usize = 300;
+const WORDS: [&str; 20] = [
+ "fframes",
+ "Rust",
+ "Skia",
+ "GPU",
+ "render",
+ "SVG",
+ "frame",
+ "video",
+ "motion",
+ "text",
+ "1,000,000",
+ "60 fps",
+ "pixels",
+ "shader",
+ "glyph",
+ "kerning",
+ "encode",
+ "H.264",
+ "effects",
+ "wave",
+];
+const WAVE_WORDS: [&str; 4] = ["fframes", "WAVE", "rendering", "motion"];
+const GRADIENTS: usize = 6;
+const SHADOW_COLORS: [&str; 4] = ["#ff2d95", "#00e5ff", "#ffd400", "#7c4dff"];
+
+/// lowbias32 integer hash; `hash32` in TextFx.tsx is the same function.
+fn hash32(mut x: u32) -> u32 {
+ x ^= x >> 16;
+ x = x.wrapping_mul(0x7feb352d);
+ x ^= x >> 15;
+ x = x.wrapping_mul(0x846ca68b);
+ x ^= x >> 16;
+ x
+}
+
+/// Seeded random number in [0, 1) for node `i`, stream `k`.
+fn rnd(i: usize, k: u32) -> f64 {
+ hash32((i as u32) * 16 + k + 12345) as f64 / 4294967296.0
+}
+
+#[derive(PartialEq, Debug)]
+enum Kind {
+ Solid,
+ Gradient,
+ Stroke,
+ Shadow,
+ Spacing,
+ Glow,
+ Wave,
+}
+
+/// `only`: debug aid for the visual check (`TEXTFX_ONLY=stroke` draws only the stroke nodes);
+/// unset in every timed run.
+struct TextFx {
+ only: Option<String>,
+}
+
+impl Video for TextFx {
+ const FPS: usize = 30;
+ const WIDTH: usize = 1920;
+ const HEIGHT: usize = 1080;
+ const BACKGROUND_COLOR: Color = Color::BLACK;
+
+ fn duration(&self) -> Duration<'_> {
+ Duration::Frames(FRAMES)
+ }
+
+ fn audio(&self) -> AudioMap<'_> {
+ AudioMap::none()
+ }
+
+ fn render_frame<'a>(&'a self, frame: Frame, _ctx: &FFramesContext<'a, '_>) -> Svgr<'a> {
+ let f = frame.index as f64;
+ let fi = frame.index;
+
+ // Shared, per-frame animated defs.
+ let mut defs: Vec<Svgr> = Vec::with_capacity(GRADIENTS + SHADOW_COLORS.len() + 1);
+ for v in 0..GRADIENTS {
+ let base = v as f64 * 60.0 + f * 4.0;
+ let c0 = hsl_to_hex(base % 360.0, 0.9, 0.6);
+ let c1 = hsl_to_hex((base + 120.0) % 360.0, 0.9, 0.6);
+ let c2 = hsl_to_hex((base + 240.0) % 360.0, 0.9, 0.6);
+ defs.push(fframes::svgr!(
+ <linearGradient id={format!("grad{v}")} x1="0" y1="0" x2="1" y2="0">
+ <stop offset="0" stop-color={c0} />
+ <stop offset="0.5" stop-color={c1} />
+ <stop offset="1" stop-color={c2} />
+ </linearGradient>
+ ));
+ }
+ for (v, color) in SHADOW_COLORS.iter().enumerate() {
+ let a = f * 0.08 + v as f64 * std::f64::consts::FRAC_PI_2;
+ let (dx, dy) = (5.0 * a.cos(), 5.0 * a.sin());
+ defs.push(fframes::svgr!(
+ <filter id={format!("shadow{v}")} x="-0.25" y="-0.6" width="1.5" height="2.2">
+ <feDropShadow dx={format!("{dx:.3}")} dy={format!("{dy:.3}")} stdDeviation="3" flood-color={*color} />
+ </filter>
+ ));
+ }
+ let glow_sigma = 3.0 + 2.0 * (0.5 + 0.5 * (f * 0.1).sin());
+ defs.push(fframes::svgr!(
+ <filter id="glow" x="-0.25" y="-0.6" width="1.5" height="2.2">
+ <feGaussianBlur in="SourceGraphic" stdDeviation={format!("{glow_sigma:.3}")} result="b" />
+ <feMerge>
+ <feMergeNode in="b" />
+ <feMergeNode in="b" />
+ <feMergeNode in="SourceGraphic" />
+ </feMerge>
+ </filter>
+ ));
+
+ let mut nodes: Vec<Svgr> = Vec::with_capacity(NODES);
+ for i in 0..NODES {
+ let r = |k| rnd(i, k);
+ let kind = if i % 10 == 0 {
+ Kind::Glow
+ } else if i % 97 == 5 {
+ Kind::Wave
+ } else {
+ match (r(11) * 5.0) as usize {
+ 0 => Kind::Solid,
+ 1 => Kind::Gradient,
+ 2 => Kind::Stroke,
+ 3 => Kind::Shadow,
+ _ => Kind::Spacing,
+ }
+ };
+ if let Some(only) = &self.only
+ && !format!("{kind:?}").eq_ignore_ascii_case(only)
+ {
+ continue;
+ }
+ let mut size = (18.0 + 78.0 * r(0).powf(1.6)).round();
+ if matches!(kind, Kind::Glow | Kind::Shadow) {
+ size = size.max(36.0);
+ }
+ if kind == Kind::Wave {
+ size = (56.0 + 40.0 * r(0)).round();
+ }
+ let phase = r(3) * std::f64::consts::TAU;
+ let speed = 0.5 + r(4);
+ let x = -60.0 + r(1) * 1900.0 + 40.0 * (f * 0.03 * speed + phase).sin();
+ let y = 40.0 + r(2) * 1060.0 + 30.0 * (f * 0.025 * speed + phase * 1.3).cos();
+ let rot = if r(6) < 0.15 {
+ f * 3.0 * speed + r(5) * 360.0
+ } else {
+ (r(5) - 0.5) * 60.0 + 25.0 * (f * 0.04 * speed + phase).sin()
+ };
+ let scale = 0.8 + 0.35 * (f * 0.06 * speed + phase * 0.7).sin();
+ let skew = if r(7) < 0.4 {
+ 20.0 * (f * 0.05 + phase).sin()
+ } else {
+ 0.0
+ };
+ let opacity = 0.35 + 0.65 * (0.5 + 0.5 * (f * 0.07 * speed + phase * 2.0).sin());
+ let hue = (r(8) * 360.0 + f * 3.0 * speed) % 360.0;
+ let color = hsl_to_hex(hue, 0.85, 0.62);
+ let label = if kind == Kind::Wave {
+ WAVE_WORDS[(r(10) * WAVE_WORDS.len() as f64) as usize].to_string()
+ } else if r(9) < 0.2 {
+ ((fi * 37 + i * 101) % 100000).to_string()
+ } else {
+ WORDS[(r(10) * WORDS.len() as f64) as usize].to_string()
+ };
+ let tf = format!(
+ "translate({x:.3} {y:.3}) rotate({rot:.3}) skewX({skew:.3}) scale({scale:.4})"
+ );
+ let op = format!("{opacity:.3}");
+
+ nodes.push(match kind {
+ Kind::Solid => fframes::svgr!(
+ <text transform={tf} opacity={op} font-size={size} fill={color}>{label}</text>
+ ),
+ Kind::Gradient => fframes::svgr!(
+ <text transform={tf} opacity={op} font-size={size}
+ fill={format!("url(#grad{})", (r(12) * GRADIENTS as f64) as usize)}>{label}</text>
+ ),
+ Kind::Stroke => fframes::svgr!(
+ <text transform={tf} opacity={op} font-size={size} fill="none" stroke={color}
+ stroke-width={format!("{:.3}", (size / 28.0).max(1.5))}>{label}</text>
+ ),
+ Kind::Shadow => fframes::svgr!(
+ <text transform={tf} opacity={op} font-size={size} fill={color}
+ filter={format!("url(#shadow{})", (r(13) * 4.0) as usize)}>{label}</text>
+ ),
+ Kind::Spacing => {
+ let ls = size * 0.25 * (0.5 + 0.5 * (f * 0.1 + phase).sin());
+ fframes::svgr!(
+ <text transform={tf} opacity={op} font-size={size} fill={color}
+ letter-spacing={format!("{ls:.3}")}>{label}</text>
+ )
+ }
+ Kind::Glow => fframes::svgr!(
+ <text transform={tf} opacity={op} font-size={size} fill={color} filter="url(#glow)">{label}</text>
+ ),
+ Kind::Wave => {
+ // one absolute y per letter: the letters bob on a sine
+ let ys: Vec<String> = (0..label.chars().count())
+ .map(|j| format!("{:.3}", 0.25 * size * (f * 0.2 + j as f64 * 0.6).sin()))
+ .collect();
+ fframes::svgr!(
+ <text transform={tf} opacity={op} font-size={size} fill={color} font-kerning="none"
+ y={ys.join(" ")}>{label}</text>
+ )
+ }
+ });
+ }
+
+ fframes::svgr!(
+ <svg xmlns="http://www.w3.org/2000/svg" width={Self::WIDTH} height={Self::HEIGHT}>
+ <defs>{defs}</defs>
+ <rect width={Self::WIDTH} height={Self::HEIGHT} fill="#0b1020" />
+ <g font-family="DM Sans" font-weight="400">{nodes}</g>
+ </svg>
+ )
+ }
+}
+
+fn pipeline() -> SkiaPipelineConfig {
+ let contexts = std::env::var("GPU_CONTEXTS")
+ .ok()
+ .and_then(|v| v.parse().ok())
+ .unwrap_or(1);
+ SkiaPipelineConfig {
+ concurrency_policy: SkiaPipelineConcurrencyPolicy::Concurrency(contexts),
+ ..Default::default()
+ }
+}
+
+fn main() {
+ let mut args = std::env::args().skip(1);
+ let backend = args.next().unwrap_or_else(|| "metal".into());
+ let out = args.next().unwrap_or_else(|| "out/textfx.mp4".into());
+ let preset = args.next().unwrap_or_else(|| "medium".into());
+ if let Some(dir) = Path::new(&out).parent() {
+ std::fs::create_dir_all(dir).ok();
+ }
+
+ let started = Instant::now();
+ // Only DMSans-Regular.ttf (byte-identical to ../remotion/public/DMSans-Regular.ttf).
+ let media_dir =
+ MediaDirectory::read_folder(concat!(env!("CARGO_MANIFEST_DIR"), "/media")).unwrap();
+ let media = media_dir.process_media_source().unwrap();
+ let options = RenderOptions {
+ media: Some(&media),
+ load_system_fonts: false,
+ default_font: "DM Sans",
+ logger: FFramesLoggerVariant::Compact,
+ video_encoder_options: EncoderOptions {
+ preferred_encoder: Some("libx264"),
+ codec_params: Some(&[("crf", "18"), ("preset", preset.as_str())]),
+ ..Default::default()
+ },
+ ..Default::default()
+ };
+ let video = TextFx {
+ only: std::env::var("TEXTFX_ONLY").ok(),
+ };
+ eprintln!(
+ "fframes textfx: {NODES} text nodes/frame x {FRAMES} frames, backend={backend}, 1920x1080@30 (libx264 crf 18, preset {preset})"
+ );
+ let result = match backend.as_str() {
+ "cpu" => fframes::render(
+ &out,
+ &video,
+ fframes::cpu::CpuRenderingBackend::default(),
+ &options,
+ ),
+ "vulkan" => {
+ let ctx =
+ fframes_skia_renderer::vulkan::SkiaVulkanCtx::new(1920, 1080).expect("vulkan");
+ fframes::render(
+ &out,
+ &video,
+ SkiaFFramesRenderer::new_vulkan(&ctx, pipeline()).unwrap(),
+ &options,
+ )
+ }
+ #[cfg(target_os = "macos")]
+ "metal" => {
+ let ctx = fframes_skia_renderer::metal::SkiaMetalCtx::new(1920, 1080).expect("metal");
+ fframes::render(
+ &out,
+ &video,
+ SkiaFFramesRenderer::new_metal(&ctx, pipeline()).unwrap(),
+ &options,
+ )
+ }
+ other => panic!("unknown backend {other}"),
+ };
+ result.expect("render failed");
+ let secs = started.elapsed().as_secs_f64();
+ eprintln!(
+ "fframes textfx: {FRAMES} frames to {out} in {secs:.2}s ({:.1} fps)",
+ FRAMES as f64 / secs
+ );
+}
diff --git a/render-bench/vs-remotion/fframes/src/main.rs b/render-bench/vs-remotion/fframes/src/main.rs
new file mode 100644
index 00000000..c2d29b00
--- /dev/null
+++ b/render-bench/vs-remotion/fframes/src/main.rs
@@ -0,0 +1,180 @@
+//! fframes side of the Remotion vs fframes benchmark: 300 frames x 3,334 <text> nodes
+//! (1,000,200 text nodes), 1920x1080 @ 30 fps, H.264 (libx264, crf 18, preset medium,
+//! yuv420p: the same encoder settings `remotion render --codec=h264` uses by default).
+//!
+//! ```sh
+//! cargo build --release -p vs-remotion-bench
+//! DYLD_LIBRARY_PATH=/opt/homebrew/lib target/release/vs-remotion-bench metal out.mp4
+//! ```
+//! Backends: `metal`, `vulkan` (MoltenVK on macOS), `cpu` (svgr / tiny-skia).
+
+use std::path::Path;
+use std::time::Instant;
+
+use fframes::{
+ AudioMap, Color, Duration, EncoderOptions, FFramesContext, Frame, MediaDirectory,
+ RenderOptions, Svgr, Video, fframes_logger::FFramesLoggerVariant,
+};
+use fframes_skia_renderer::{
+ SkiaFFramesRenderer, SkiaPipelineConcurrencyPolicy, SkiaPipelineConfig,
+};
+
+/// Skia pipeline config. `GPU_CONTEXTS=n` renders on n GPU contexts in parallel (default 1).
+fn pipeline() -> SkiaPipelineConfig {
+ let contexts = std::env::var("GPU_CONTEXTS")
+ .ok()
+ .and_then(|v| v.parse().ok())
+ .unwrap_or(1);
+ SkiaPipelineConfig {
+ concurrency_policy: SkiaPipelineConcurrencyPolicy::Concurrency(contexts),
+ ..Default::default()
+ }
+}
+
+const NODES: usize = 3334;
+const COLS: usize = 47;
+const ROWS: usize = 71;
+const CELL_W: f64 = 1920.0 / COLS as f64;
+const CELL_H: f64 = 1080.0 / ROWS as f64;
+
+struct TextGrid;
+
+/// Same function as `hslToRgb` in ../remotion/src/TextGrid.tsx.
+fn hsl_to_rgb(h: f64, s: f64, l: f64) -> (u8, u8, u8) {
+ let c = (1.0 - (2.0 * l - 1.0).abs()) * s;
+ let hp = h / 60.0;
+ let x = c * (1.0 - ((hp % 2.0) - 1.0).abs());
+ let (r, g, b) = if hp < 1.0 {
+ (c, x, 0.0)
+ } else if hp < 2.0 {
+ (x, c, 0.0)
+ } else if hp < 3.0 {
+ (0.0, c, x)
+ } else if hp < 4.0 {
+ (0.0, x, c)
+ } else if hp < 5.0 {
+ (x, 0.0, c)
+ } else {
+ (c, 0.0, x)
+ };
+ let m = l - c / 2.0;
+ let q = |v: f64| ((v + m) * 255.0).round() as u8;
+ (q(r), q(g), q(b))
+}
+
+impl Video for TextGrid {
+ const FPS: usize = 30;
+ const WIDTH: usize = 1920;
+ const HEIGHT: usize = 1080;
+ const BACKGROUND_COLOR: Color = Color::BLACK;
+
+ fn duration(&self) -> Duration<'_> {
+ Duration::Frames(300)
+ }
+
+ fn audio(&self) -> AudioMap<'_> {
+ AudioMap::none()
+ }
+
+ fn render_frame<'a>(&'a self, frame: Frame, _ctx: &FFramesContext<'a, '_>) -> Svgr<'a> {
+ let f = frame.index as f64;
+ let fi = frame.index;
+ let mut nodes: Vec<Svgr> = Vec::with_capacity(NODES);
+ for i in 0..NODES {
+ let fl = i as f64;
+ let col = (i % COLS) as f64;
+ let row = (i / COLS) as f64;
+ let x = col * CELL_W + 2.0 + 4.0 * (f * 0.12 + fl * 0.37).sin();
+ let y = row * CELL_H + 11.0 + 3.0 * (f * 0.09 + fl * 0.23).cos();
+ let alpha = 0.3 + 0.7 * (0.5 + 0.5 * (f * 0.2 + fl * 0.05).sin());
+ let (r, g, b) = hsl_to_rgb((fl * 0.9 + f * 4.0) % 360.0, 0.75, 0.62);
+ let label = if (i + fi).is_multiple_of(9) {
+ "fframes".to_string()
+ } else {
+ ((fi * 37 + i * 101) % 10000).to_string()
+ };
+ nodes.push(fframes::svgr!(
+ <text x={x} y={y} font-family="DM Sans" font-size="10"
+ fill={format!("#{r:02x}{g:02x}{b:02x}")} fill-opacity={format!("{alpha:.3}")}>
+ {label}
+ </text>
+ ));
+ }
+
+ fframes::svgr!(
+ <svg xmlns="http://www.w3.org/2000/svg" width={Self::WIDTH} height={Self::HEIGHT}>
+ <rect width={Self::WIDTH} height={Self::HEIGHT} fill="#0b1020" />
+ {nodes}
+ </svg>
+ )
+ }
+}
+
+fn main() {
+ let mut args = std::env::args().skip(1);
+ let backend = args.next().unwrap_or_else(|| "metal".into());
+ let out = args.next().unwrap_or_else(|| "out/fframes.mp4".into());
+ // x264 preset; `medium` is the libx264 default that `remotion render` also uses.
+ let preset = args.next().unwrap_or_else(|| "medium".into());
+ if let Some(dir) = Path::new(&out).parent() {
+ std::fs::create_dir_all(dir).ok();
+ }
+
+ let started = Instant::now();
+ let media_dir =
+ MediaDirectory::read_folder(concat!(env!("CARGO_MANIFEST_DIR"), "/media")).unwrap();
+ let media = media_dir.process_media_source().unwrap();
+ let options = RenderOptions {
+ media: Some(&media),
+ load_system_fonts: false,
+ default_font: "DM Sans",
+ logger: FFramesLoggerVariant::Compact,
+ video_encoder_options: EncoderOptions {
+ preferred_encoder: Some("libx264"),
+ codec_params: Some(&[("crf", "18"), ("preset", preset.as_str())]),
+ ..Default::default()
+ },
+ ..Default::default()
+ };
+
+ let video = TextGrid;
+ eprintln!(
+ "fframes: {NODES} text nodes/frame x 300 frames, backend={backend}, 1920x1080@30 h264 (libx264 crf 18, preset {preset})"
+ );
+ let result = match backend.as_str() {
+ "cpu" => fframes::render(
+ &out,
+ &video,
+ fframes::cpu::CpuRenderingBackend::default(),
+ &options,
+ ),
+ "vulkan" => {
+ let ctx =
+ fframes_skia_renderer::vulkan::SkiaVulkanCtx::new(1920, 1080).expect("vulkan");
+ fframes::render(
+ &out,
+ &video,
+ SkiaFFramesRenderer::new_vulkan(&ctx, pipeline()).unwrap(),
+ &options,
+ )
+ }
+ #[cfg(target_os = "macos")]
+ "metal" => {
+ let ctx = fframes_skia_renderer::metal::SkiaMetalCtx::new(1920, 1080).expect("metal");
+ fframes::render(
+ &out,
+ &video,
+ SkiaFFramesRenderer::new_metal(&ctx, pipeline()).unwrap(),
+ &options,
+ )
+ }
+ other => panic!("unknown backend {other}"),
+ };
+ result.expect("render failed");
+ let secs = started.elapsed().as_secs_f64();
+ eprintln!(
+ "fframes: rendered 300 frames ({} text nodes) to {out} in {secs:.2}s ({:.1} fps)",
+ NODES * 300,
+ 300.0 / secs
+ );
+}
diff --git a/render-bench/vs-remotion/make_clips.sh b/render-bench/vs-remotion/make_clips.sh
new file mode 100644
index 00000000..5316a48c
--- /dev/null
+++ b/render-bench/vs-remotion/make_clips.sh
@@ -0,0 +1,20 @@
+#!/usr/bin/env bash
+# Short side-by-side sample clips from the benchmark outputs (not timed):
+# first 6 s, 1280x720, h264 crf 20, 30 fps, no audio, plus middle-frame PNGs.
+# ./make_clips.sh <clips dir> <workload>=<remotion.mp4>,<fframes.mp4> ...
+set -euo pipefail
+dir=$1; shift
+mkdir -p "$dir"
+for spec in "$@"; do
+ wl=${spec%%=*}; files=${spec#*=}; r=${files%%,*}; f=${files#*,}
+ for tool in remotion fframes; do
+ src=$r; [ $tool = fframes ] && src=$f
+ ffmpeg -v error -y -i "$src" -t 6 -vf "fps=30,scale=1280:720:flags=lanczos,format=yuv420p" -an \
+ -c:v libx264 -crf 20 -preset slow -movflags +faststart "$dir/${wl}_$tool.mp4"
+ # middle frame of the clip (3 s) and of the full-length output, full resolution
+ ffmpeg -v error -y -i "$dir/${wl}_$tool.mp4" -vf "select=eq(n\,90)" -frames:v 1 "$dir/${wl}_$tool.png"
+ n=$(ffprobe -v error -select_streams v -count_frames -show_entries stream=nb_read_frames -of csv=p=0 "$src" | tr -d ,)
+ ffmpeg -v error -y -i "$src" -vf "select=eq(n\,$((n / 2)))" -frames:v 1 "$dir/${wl}_${tool}_fullres_mid.png"
+ done
+done
+ls -la "$dir"
diff --git a/render-bench/vs-remotion/remotion/package-lock.json b/render-bench/vs-remotion/remotion/package-lock.json
new file mode 100644
index 00000000..7e7a18ba
--- /dev/null
+++ b/render-bench/vs-remotion/remotion/package-lock.json
@@ -0,0 +1,3865 @@
+{
+ "name": "remotion-text-bench",
+ "version": "0.0.0",
+ "lockfileVersion": 3,
+ "requires": true,
+ "packages": {
+ "": {
+ "name": "remotion-text-bench",
+ "version": "0.0.0",
+ "dependencies": {
+ "@remotion/cli": "4.0.529",
+ "@remotion/fonts": "4.0.529",
+ "react": "19.2.0",
+ "react-dom": "19.2.0",
+ "remotion": "4.0.529"
+ },
+ "devDependencies": {
+ "@types/react": "19.2.2",
+ "typescript": "5.9.3"
+ }
+ },
+ "node_modules/@babel/code-frame": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.29.7.tgz",
+ "integrity": "sha512-Aup7aUOfpbAUg2ROOJN6Iw5f9DMBlzu0mIkm/malLQFN/YQgO48wCj0Kxa3sEHJvPVFg7siR+qRInwXd2qhQKw==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-validator-identifier": "^7.29.7",
+ "js-tokens": "^4.0.0",
+ "picocolors": "^1.1.1"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/compat-data": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.29.7.tgz",
+ "integrity": "sha512-locTkQyKvwIEgBzVrn8693ebc97F2U8ZHjbXwDXJ5Fn2TCpNwTlKcaKLkdHop5c/icOFE7qt7Q9JC5hnKNa6Gg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/core": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.29.7.tgz",
+ "integrity": "sha512-RgHBCvtjbOK2gXSNBNIkNoEc9qoVEtau3hj8gEqKQuL3HZAibKarWFEI3Lfm6EYKkLalOh8eSrj9b+ch9H/VBA==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/code-frame": "^7.29.7",
+ "@babel/generator": "^7.29.7",
+ "@babel/helper-compilation-targets": "^7.29.7",
+ "@babel/helper-module-transforms": "^7.29.7",
+ "@babel/helpers": "^7.29.7",
+ "@babel/parser": "^7.29.7",
+ "@babel/template": "^7.29.7",
+ "@babel/traverse": "^7.29.7",
+ "@babel/types": "^7.29.7",
+ "@jridgewell/remapping": "^2.3.5",
+ "convert-source-map": "^2.0.0",
+ "debug": "^4.1.0",
+ "gensync": "^1.0.0-beta.2",
+ "json5": "^2.2.3",
+ "semver": "^6.3.1"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/babel"
+ }
+ },
+ "node_modules/@babel/core/node_modules/@babel/parser": {
+ "version": "7.29.9",
+ "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.9.tgz",
+ "integrity": "sha512-CjXrNHTnvqBVqHgdBysY3vk2T8tpJHb5/RMeHJBTyVa9xgugCB0CJTx/3oO8RV2QRQP391RWpB7D6hLjm8V9uA==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/types": "^7.29.8"
+ },
+ "bin": {
+ "parser": "bin/babel-parser.js"
+ },
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "node_modules/@babel/core/node_modules/@babel/types": {
+ "version": "7.29.8",
+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.8.tgz",
+ "integrity": "sha512-Vj1jF3cPfxg7OAfoI7QnVKLoILlm2JF9pnVHrX8qx7AHMiYWT+NDAA7jChlNgRS4WTLc/fD1lXLmPixluj+3Gg==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-string-parser": "^7.29.7",
+ "@babel/helper-validator-identifier": "^7.29.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/core/node_modules/semver": {
+ "version": "6.3.1",
+ "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz",
+ "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==",
+ "license": "ISC",
+ "bin": {
+ "semver": "bin/semver.js"
+ }
+ },
+ "node_modules/@babel/generator": {
+ "version": "7.29.8",
+ "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.29.8.tgz",
+ "integrity": "sha512-gZbepsdh3WDtgZKWL+vTPh71LSBrm/Y4/QDZBVCcYfmeTEEuoOYwlSy+G1StfJg+/Zy550u/3TATbm7qDbbMtg==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/parser": "^7.29.8",
+ "@babel/types": "^7.29.8",
+ "@jridgewell/gen-mapping": "^0.3.12",
+ "@jridgewell/trace-mapping": "^0.3.28",
+ "jsesc": "^3.0.2"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/generator/node_modules/@babel/parser": {
+ "version": "7.29.9",
+ "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.9.tgz",
+ "integrity": "sha512-CjXrNHTnvqBVqHgdBysY3vk2T8tpJHb5/RMeHJBTyVa9xgugCB0CJTx/3oO8RV2QRQP391RWpB7D6hLjm8V9uA==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/types": "^7.29.8"
+ },
+ "bin": {
+ "parser": "bin/babel-parser.js"
+ },
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "node_modules/@babel/generator/node_modules/@babel/types": {
+ "version": "7.29.8",
+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.8.tgz",
+ "integrity": "sha512-Vj1jF3cPfxg7OAfoI7QnVKLoILlm2JF9pnVHrX8qx7AHMiYWT+NDAA7jChlNgRS4WTLc/fD1lXLmPixluj+3Gg==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-string-parser": "^7.29.7",
+ "@babel/helper-validator-identifier": "^7.29.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-compilation-targets": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.29.7.tgz",
+ "integrity": "sha512-wem6WaBj4NaVYVdNhLPPVacES6ZJ+KBBfSkTMD3YZxbP3rm3Di85tJU5ljaUNhaOynt+Aj0xruhYuzQBt8n71g==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/compat-data": "^7.29.7",
+ "@babel/helper-validator-option": "^7.29.7",
+ "browserslist": "^4.24.0",
+ "lru-cache": "^5.1.1",
+ "semver": "^6.3.1"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-compilation-targets/node_modules/semver": {
+ "version": "6.3.1",
+ "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz",
+ "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==",
+ "license": "ISC",
+ "bin": {
+ "semver": "bin/semver.js"
+ }
+ },
+ "node_modules/@babel/helper-globals": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/helper-globals/-/helper-globals-7.29.7.tgz",
+ "integrity": "sha512-3nQVUAtvkKH9zahfWgw96Jc/uFOmjACE1kQz82E2lqWmHBgjzbNlsC22nuQTfahmWeQtTq5nQ/4Nnd2A1wj4zA==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-module-imports": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.29.7.tgz",
+ "integrity": "sha512-ejHwrQQYcm9xnTivShn2IDOlIzInN34AXskvq9QicvCtEzq1Vzclu/tKF8Jq1Cg8JG2GL6/EmjgsCT7lXepE3g==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/traverse": "^7.29.7",
+ "@babel/types": "^7.29.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-module-imports/node_modules/@babel/types": {
+ "version": "7.29.8",
+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.8.tgz",
+ "integrity": "sha512-Vj1jF3cPfxg7OAfoI7QnVKLoILlm2JF9pnVHrX8qx7AHMiYWT+NDAA7jChlNgRS4WTLc/fD1lXLmPixluj+3Gg==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-string-parser": "^7.29.7",
+ "@babel/helper-validator-identifier": "^7.29.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-module-transforms": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.29.7.tgz",
+ "integrity": "sha512-UPUVSyXbOh627KiCIGQSgwWzGeBKLkaJ9PJEdrngIwMSzxLR4jS4+f1f1jb7VzBbg8nFLaYotvVPFCTqdrmTAg==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-module-imports": "^7.29.7",
+ "@babel/helper-validator-identifier": "^7.29.7",
+ "@babel/traverse": "^7.29.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0"
+ }
+ },
+ "node_modules/@babel/helper-string-parser": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.29.7.tgz",
+ "integrity": "sha512-Pb5ijPrZ89GDH8223L4UP8i6QApWxs04RbPQJTeWDV0/keR2E36MeKnyr6LYmUUvqRRI+Iv87SuF1W6ErINzYw==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-validator-identifier": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.29.7.tgz",
+ "integrity": "sha512-qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-validator-option": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.29.7.tgz",
+ "integrity": "sha512-N9ZErrD+yW5geCDtBqnOoxmR8+tNKiGuxKlDpuJxfsqpa2dFcexaziGAE/qoHLiDDreVNMupxGmSoNlyvsA3gw==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helpers": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.29.7.tgz",
+ "integrity": "sha512-1k2lAGRMfHTcwuNYcCNUmaUffmQv8KWMfh2iJUUeRlwlwH4FdNG7mfPI10NPfLHJFThE4Tyr4mv7kTNZOiPuBg==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/template": "^7.29.7",
+ "@babel/types": "^7.29.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helpers/node_modules/@babel/types": {
+ "version": "7.29.8",
+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.8.tgz",
+ "integrity": "sha512-Vj1jF3cPfxg7OAfoI7QnVKLoILlm2JF9pnVHrX8qx7AHMiYWT+NDAA7jChlNgRS4WTLc/fD1lXLmPixluj+3Gg==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-string-parser": "^7.29.7",
+ "@babel/helper-validator-identifier": "^7.29.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/parser": {
+ "version": "7.24.1",
+ "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.24.1.tgz",
+ "integrity": "sha512-Zo9c7N3xdOIQrNip7Lc9wvRPzlRtovHVE4lkz8WEDr7uYh/GMQhSiIgFxGIArRHYdJE5kxtZjAf8rT0xhdLCzg==",
+ "license": "MIT",
+ "bin": {
+ "parser": "bin/babel-parser.js"
+ },
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "node_modules/@babel/template": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.29.7.tgz",
+ "integrity": "sha512-puq+Gf35oI24FeN11LkoUQFqv9uwNeWpxXZi/Ji3rRIoKAzKnxRaZ+Gkj0vKS9ZCiTESfng1N9LyOyXvo+m+Gg==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/code-frame": "^7.29.7",
+ "@babel/parser": "^7.29.7",
+ "@babel/types": "^7.29.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/template/node_modules/@babel/parser": {
+ "version": "7.29.9",
+ "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.9.tgz",
+ "integrity": "sha512-CjXrNHTnvqBVqHgdBysY3vk2T8tpJHb5/RMeHJBTyVa9xgugCB0CJTx/3oO8RV2QRQP391RWpB7D6hLjm8V9uA==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/types": "^7.29.8"
+ },
+ "bin": {
+ "parser": "bin/babel-parser.js"
+ },
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "node_modules/@babel/template/node_modules/@babel/types": {
+ "version": "7.29.8",
+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.8.tgz",
+ "integrity": "sha512-Vj1jF3cPfxg7OAfoI7QnVKLoILlm2JF9pnVHrX8qx7AHMiYWT+NDAA7jChlNgRS4WTLc/fD1lXLmPixluj+3Gg==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-string-parser": "^7.29.7",
+ "@babel/helper-validator-identifier": "^7.29.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/traverse": {
+ "version": "7.29.8",
+ "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.29.8.tgz",
+ "integrity": "sha512-I5z7H3bf/41ktsNVLtpN0wAa336HkqIHQ5BuPLEhTkt1jVSyZpeNKIzTgEWmlxjdg81R0IgUCcaE+Ok3NvrfZg==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/code-frame": "^7.29.7",
+ "@babel/generator": "^7.29.8",
+ "@babel/helper-globals": "^7.29.7",
+ "@babel/parser": "^7.29.8",
+ "@babel/template": "^7.29.7",
+ "@babel/types": "^7.29.8",
+ "debug": "^4.3.1"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/traverse/node_modules/@babel/parser": {
+ "version": "7.29.9",
+ "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.9.tgz",
+ "integrity": "sha512-CjXrNHTnvqBVqHgdBysY3vk2T8tpJHb5/RMeHJBTyVa9xgugCB0CJTx/3oO8RV2QRQP391RWpB7D6hLjm8V9uA==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/types": "^7.29.8"
+ },
+ "bin": {
+ "parser": "bin/babel-parser.js"
+ },
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "node_modules/@babel/traverse/node_modules/@babel/types": {
+ "version": "7.29.8",
+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.8.tgz",
+ "integrity": "sha512-Vj1jF3cPfxg7OAfoI7QnVKLoILlm2JF9pnVHrX8qx7AHMiYWT+NDAA7jChlNgRS4WTLc/fD1lXLmPixluj+3Gg==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-string-parser": "^7.29.7",
+ "@babel/helper-validator-identifier": "^7.29.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/types": {
+ "version": "7.24.0",
+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.24.0.tgz",
+ "integrity": "sha512-+j7a5c253RfKh8iABBhywc8NSfP5LURe7Uh4qpsh6jc+aLJguvmIUBdjSdEMQv2bENrCR5MfRdjGo7vzS/ob7w==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-string-parser": "^7.23.4",
+ "@babel/helper-validator-identifier": "^7.22.20",
+ "to-fast-properties": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@emnapi/core": {
+ "version": "1.11.3",
+ "resolved": "https://registry.npmjs.org/@emnapi/core/-/core-1.11.3.tgz",
+ "integrity": "sha512-zLpS5asjEb7lq8jYLq37N6XKaE41DIexlY1rF/z4/tIl3wo13Sqm28fRyfIsKZD+NZ8mM5RoKkpW/rBcuoSZSg==",
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "@emnapi/wasi-threads": "1.2.3",
+ "tslib": "^2.4.0"
+ }
+ },
+ "node_modules/@emnapi/runtime": {
+ "version": "1.11.3",
+ "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.11.3.tgz",
+ "integrity": "sha512-Xz4Tpyki7XyrpbUK1jR1AhdAdaXyhhY4lZ3neLodmhpuWfy2PAQN5B46sAiU4liOXGLkHypn/qU+jvfWSCYYLA==",
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "tslib": "^2.4.0"
+ }
+ },
+ "node_modules/@emnapi/wasi-threads": {
+ "version": "1.2.3",
+ "resolved": "https://registry.npmjs.org/@emnapi/wasi-threads/-/wasi-threads-1.2.3.tgz",
+ "integrity": "sha512-ELEBe8PsLvvJ6QMr0zLt8ffvOHW/dc1m3CEzNMg7aJUv3bMaoDtw2TXyDAwkYBuroxxuHEwhRTLJSe5sya547g==",
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "tslib": "^2.4.0"
+ }
+ },
+ "node_modules/@esbuild/aix-ppc64": {
+ "version": "0.28.1",
+ "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.28.1.tgz",
+ "integrity": "sha512-Svl7tq8k/08+p6CXPpRjQ1fKX+1odH/BQbb48fV6fj3CWHhsoIOoY87w1oHXm0qEpkIK3ZfVgp0hed3XBXzXMQ==",
+ "cpu": [
+ "ppc64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "aix"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/android-arm": {
+ "version": "0.28.1",
+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.28.1.tgz",
+ "integrity": "sha512-0k2F129Xdio1TdJfzJ8sy1Q47vUD2NnwdhiAf7drUN1EBTfPf4hsFCtmMgu/6m8JSzsBrlmVjudMBQqOfG8usQ==",
+ "cpu": [
+ "arm"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/android-arm64": {
+ "version": "0.28.1",
+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.28.1.tgz",
+ "integrity": "sha512-34EGEbCIAgosYz6goLcopX6Mo7NyGv9tfwEM2/7Ce2VcVRk568iSvniGWcUXIy7wEDR1wzolcxcriFVrWYcwBg==",
+ "cpu": [
+ "arm64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/android-x64": {
+ "version": "0.28.1",
+ "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.28.1.tgz",
+ "integrity": "sha512-dbwY7ltSMDWsRatcRpCnES4F+im88OCUgGZjy52shC7GqHRE/cYlxNbB4Z4UpJswpcc4Qxd2oE/ufM0p61IKng==",
+ "cpu": [
+ "x64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/darwin-arm64": {
+ "version": "0.28.1",
+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.28.1.tgz",
+ "integrity": "sha512-TZbWkQY7kvTAXbXUT7uVACR5cMHsDiSz9z7ZKAX/RTq/WJEk3QyRr0wZpNhBDX+/0CtdqUIJlOiodQcta6tY3Q==",
+ "cpu": [
+ "arm64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/darwin-x64": {
+ "version": "0.28.1",
+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.28.1.tgz",
+ "integrity": "sha512-zfdzgK9ACBNZLI/CyHTOx81SyNbM6YXn7rxSgX97VjyiPl9W1i4Ka4fgKECEoFCKGpvBj5qArWIGgQjOwkgskQ==",
+ "cpu": [
+ "x64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/freebsd-arm64": {
+ "version": "0.28.1",
+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.28.1.tgz",
+ "integrity": "sha512-wG2EA8ENdEI0qhkSZMjfqrdY+ziCYCPMmtZjjIwOmXFjmyzEHn+UUxk5of+SYsjtfs3VpnlC7QLzSI5hY/rOAw==",
+ "cpu": [
+ "arm64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "freebsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/freebsd-x64": {
+ "version": "0.28.1",
+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.28.1.tgz",
+ "integrity": "sha512-i7dZ9vQgnvSCzi/rYCXNgtF/U+eKZNJBzu3eTQbRgHnM7tNSizLOkRFAl3qzVc/Op/u5YkHHa4pf/3DOYHthLQ==",
+ "cpu": [
+ "x64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "freebsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-arm": {
+ "version": "0.28.1",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.28.1.tgz",
+ "integrity": "sha512-qVXBOHQS+d5Y722GwJzJUtOLlX7km3CraOaGormF1pDtPd2C/l1SHRPgjLunLGe51Sh5YYWKMFDyV4SxgMQYTQ==",
+ "cpu": [
+ "arm"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-arm64": {
+ "version": "0.28.1",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.28.1.tgz",
+ "integrity": "sha512-yHs+0uc8+nvEAfAfxrWQKK5peSNzBc4PegcMO0EJ2hT71uA7vB8Ihg2e77R2P7SG5uYjPbHlLLmve4LLLRCf0g==",
+ "cpu": [
+ "arm64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-ia32": {
+ "version": "0.28.1",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.28.1.tgz",
+ "integrity": "sha512-d1z4ZuP0ajrfz/FhGT4vv278rX8KnPPJx8i5+AtK7TYbx9Le9F1hyzurZpkEyjkGa9dUGhQow4C1NmeGvqxN2w==",
+ "cpu": [
+ "ia32"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-loong64": {
+ "version": "0.28.1",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.28.1.tgz",
+ "integrity": "sha512-M5sRjUVZrkm1OAPR3dlOYzNmN+loZKGVi1VUQGrwuqLcbR6qeAz+famMhjASeH3YVKvZz+zT1jlh/keC3Rj/lg==",
+ "cpu": [
+ "loong64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-mips64el": {
+ "version": "0.28.1",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.28.1.tgz",
+ "integrity": "sha512-mRObBZeHh2OxcBFPWE/FjylkRgZdYuiTR3vaTozquCGOH14iP9oN4x4Ge81CoIDYQrXmIxpFumJBu5MtZpnQJQ==",
+ "cpu": [
+ "mips64el"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-ppc64": {
+ "version": "0.28.1",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.28.1.tgz",
+ "integrity": "sha512-slScBsMAb3GFDcdrCgLwZtPYRoH2H/youv10QiZyRjmsP48fznoveWytSgCI/R0ZcUgpc0ZhIUEx6LHts8yrfQ==",
+ "cpu": [
+ "ppc64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-riscv64": {
+ "version": "0.28.1",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.28.1.tgz",
+ "integrity": "sha512-kw0owk1o0GFETUJyW0jc0G4Yzs0BHZn0JDZ8JRT088vjJYX777BAs1fDGxAC+q831qOs2DTC96mNsG2opdfyyQ==",
+ "cpu": [
+ "riscv64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-s390x": {
+ "version": "0.28.1",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.28.1.tgz",
+ "integrity": "sha512-/lAIjX8aYFRByhh6L5rYtPEDRqa9de/4V/juOXcta5frjvzXO4/sqEtyytse0g3zZFuWu5cDN0MkLz2qRDD2Ag==",
+ "cpu": [
+ "s390x"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-x64": {
+ "version": "0.28.1",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.28.1.tgz",
+ "integrity": "sha512-u/anNYF2mmVOEDwLtnQ1wOr3EZ9sTNGLWrsYGYwHWzGA3Si84IOkHXlbWTD1NB+9/1lcnweYKO54uhxZydNzfA==",
+ "cpu": [
+ "x64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/netbsd-arm64": {
+ "version": "0.28.1",
+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.28.1.tgz",
+ "integrity": "sha512-oks0DYbLwWMmaakTsCb+zL4E+aHRVLom9IJZOAthMQEPiQmydXHkziYEsGYRx0uNV/IjEKGAV941JzH02pflqw==",
+ "cpu": [
+ "arm64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "netbsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/netbsd-x64": {
+ "version": "0.28.1",
+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.28.1.tgz",
+ "integrity": "sha512-aeL6lAnN89Hz43Mlh1G8ARasbuoYvSITDEx0tHh5b7jJnHcssqgjy9Yx430GDpmCa6OyrKoS0aNRjKundRizGg==",
+ "cpu": [
+ "x64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "netbsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/openbsd-arm64": {
+ "version": "0.28.1",
+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.28.1.tgz",
+ "integrity": "sha512-MEFJe5C3R8pwXdZ5Y21oo6m7ePiS0d9pWucn99O/wvyJZChoIQKrQDxKrGeW8F5+T0okTHesAmDeiHDTIq0V/Q==",
+ "cpu": [
+ "arm64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "openbsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/openbsd-x64": {
+ "version": "0.28.1",
+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.28.1.tgz",
+ "integrity": "sha512-i/ZLIOafE0Z8cI/XANJAixoJL/uRAoS2xOA3rb0xN+KK0K177cMAsQYkzHtBrtMXAKuAc7HGgcWiZ/sRC1Nxgw==",
+ "cpu": [
+ "x64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "openbsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/openharmony-arm64": {
+ "version": "0.28.1",
+ "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.28.1.tgz",
+ "integrity": "sha512-ge+Z7EXFNt2BO1oAMsVpiQ8EwndV9i1xXerAeTIK7AtPs3bKFXQM7nlRxDSIUIMeueR1CNXxqztLzdNeReKBJg==",
+ "cpu": [
+ "arm64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "openharmony"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/sunos-x64": {
+ "version": "0.28.1",
+ "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.28.1.tgz",
+ "integrity": "sha512-BEjgtECkL3vY+SaSQ6nzVfiALUeFxpawyp8Jmf5PtYhf1Ug40N1h/hxlhts+f1FvSvarEigdxS3BlSMI2PJLcQ==",
+ "cpu": [
+ "x64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "sunos"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/win32-arm64": {
+ "version": "0.28.1",
+ "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.28.1.tgz",
+ "integrity": "sha512-lCv9eK/H6ZJWbE7bh2nw54CZ9M2nupBxJcTsdk/QQnWkdSjKGuxmmH8/GWrlT1eMmZfn4dGcCjRte397WqfQXA==",
+ "cpu": [
+ "arm64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/win32-ia32": {
+ "version": "0.28.1",
+ "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.28.1.tgz",
+ "integrity": "sha512-zvb/mB2bSCoJOpoCBgYKKpX6YM6mJBlBUVUtVj41DlZJVEB6/0CKlRYxP5wWl1C1ILiCoAU5wZZ4q1P3qeS6Eg==",
+ "cpu": [
+ "ia32"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/win32-x64": {
+ "version": "0.28.1",
+ "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.28.1.tgz",
+ "integrity": "sha512-bm4Mowrv+GXMlpWX++EcXw/iLyd1o3+bJkC2DkWXYVvgZCqD/bSj9ctZeAMC3cIxgjRVR2Dufaiu4YPxr5gW1A==",
+ "cpu": [
+ "x64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@jridgewell/gen-mapping": {
+ "version": "0.3.13",
+ "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz",
+ "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==",
+ "license": "MIT",
+ "dependencies": {
+ "@jridgewell/sourcemap-codec": "^1.5.0",
+ "@jridgewell/trace-mapping": "^0.3.24"
+ }
+ },
+ "node_modules/@jridgewell/remapping": {
+ "version": "2.3.5",
+ "resolved": "https://registry.npmjs.org/@jridgewell/remapping/-/remapping-2.3.5.tgz",
+ "integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@jridgewell/gen-mapping": "^0.3.5",
+ "@jridgewell/trace-mapping": "^0.3.24"
+ }
+ },
+ "node_modules/@jridgewell/resolve-uri": {
+ "version": "3.1.2",
+ "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz",
+ "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "node_modules/@jridgewell/source-map": {
+ "version": "0.3.11",
+ "resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.11.tgz",
+ "integrity": "sha512-ZMp1V8ZFcPG5dIWnQLr3NSI1MiCU7UETdS/A0G8V/XWHvJv3ZsFqutJn1Y5RPmAPX6F3BiE397OqveU/9NCuIA==",
+ "license": "MIT",
+ "dependencies": {
+ "@jridgewell/gen-mapping": "^0.3.5",
+ "@jridgewell/trace-mapping": "^0.3.25"
+ }
+ },
+ "node_modules/@jridgewell/sourcemap-codec": {
+ "version": "1.6.0",
+ "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.6.0.tgz",
+ "integrity": "sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw==",
+ "license": "MIT"
+ },
+ "node_modules/@jridgewell/trace-mapping": {
+ "version": "0.3.31",
+ "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz",
+ "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==",
+ "license": "MIT",
+ "dependencies": {
+ "@jridgewell/resolve-uri": "^3.1.0",
+ "@jridgewell/sourcemap-codec": "^1.4.14"
+ }
+ },
+ "node_modules/@mediabunny/aac-encoder": {
+ "version": "1.56.1",
+ "resolved": "https://registry.npmjs.org/@mediabunny/aac-encoder/-/aac-encoder-1.56.1.tgz",
+ "integrity": "sha512-a+OY/BctP7zC4G/prHikooOVaoWXMD4+bUyEwHg2dtQiQdIwC6TDJdVYJu5dfrdSNOiAFkv1HKcYEeROdwMezg==",
+ "license": "MPL-2.0",
+ "funding": {
+ "type": "individual",
+ "url": "https://github.com/sponsors/Vanilagy"
+ },
+ "peerDependencies": {
+ "mediabunny": "^1.0.0"
+ }
+ },
+ "node_modules/@mediabunny/flac-encoder": {
+ "version": "1.56.1",
+ "resolved": "https://registry.npmjs.org/@mediabunny/flac-encoder/-/flac-encoder-1.56.1.tgz",
+ "integrity": "sha512-zbmorMVlF1izwtlz5mWnu7A1rJLM+V26I0pEFr9Td1EDTwE5uAGRSW+/UZlnjwj1t00Woe3Zonfh9kb7lRRBqg==",
+ "license": "MPL-2.0",
+ "funding": {
+ "type": "individual",
+ "url": "https://github.com/sponsors/Vanilagy"
+ },
+ "peerDependencies": {
+ "mediabunny": "^1.0.0"
+ }
+ },
+ "node_modules/@mediabunny/mp3-encoder": {
+ "version": "1.56.1",
+ "resolved": "https://registry.npmjs.org/@mediabunny/mp3-encoder/-/mp3-encoder-1.56.1.tgz",
+ "integrity": "sha512-p66ovEq6mZt3ejje45NOju84hIJI4v8rHfsmc1D2J34ziV0USE8AdJBzmiwqxl6nZkIAQLNB19HzbVRcQfc51g==",
+ "license": "MPL-2.0",
+ "funding": {
+ "type": "individual",
+ "url": "https://github.com/sponsors/Vanilagy"
+ },
+ "peerDependencies": {
+ "mediabunny": "^1.0.0"
+ }
+ },
+ "node_modules/@module-federation/error-codes": {
+ "version": "0.22.0",
+ "resolved": "https://registry.npmjs.org/@module-federation/error-codes/-/error-codes-0.22.0.tgz",
+ "integrity": "sha512-xF9SjnEy7vTdx+xekjPCV5cIHOGCkdn3pIxo9vU7gEZMIw0SvAEdsy6Uh17xaCpm8V0FWvR0SZoK9Ik6jGOaug==",
+ "license": "MIT"
+ },
+ "node_modules/@module-federation/runtime": {
+ "version": "0.22.0",
+ "resolved": "https://registry.npmjs.org/@module-federation/runtime/-/runtime-0.22.0.tgz",
+ "integrity": "sha512-38g5iPju2tPC3KHMPxRKmy4k4onNp6ypFPS1eKGsNLUkXgHsPMBFqAjDw96iEcjri91BrahG4XcdyKi97xZzlA==",
+ "license": "MIT",
+ "dependencies": {
+ "@module-federation/error-codes": "0.22.0",
+ "@module-federation/runtime-core": "0.22.0",
+ "@module-federation/sdk": "0.22.0"
+ }
+ },
+ "node_modules/@module-federation/runtime-core": {
+ "version": "0.22.0",
+ "resolved": "https://registry.npmjs.org/@module-federation/runtime-core/-/runtime-core-0.22.0.tgz",
+ "integrity": "sha512-GR1TcD6/s7zqItfhC87zAp30PqzvceoeDGYTgF3Vx2TXvsfDrhP6Qw9T4vudDQL3uJRne6t7CzdT29YyVxlgIA==",
+ "license": "MIT",
+ "dependencies": {
+ "@module-federation/error-codes": "0.22.0",
+ "@module-federation/sdk": "0.22.0"
+ }
+ },
+ "node_modules/@module-federation/runtime-tools": {
+ "version": "0.22.0",
+ "resolved": "https://registry.npmjs.org/@module-federation/runtime-tools/-/runtime-tools-0.22.0.tgz",
+ "integrity": "sha512-4ScUJ/aUfEernb+4PbLdhM/c60VHl698Gn1gY21m9vyC1Ucn69fPCA1y2EwcCB7IItseRMoNhdcWQnzt/OPCNA==",
+ "license": "MIT",
+ "dependencies": {
+ "@module-federation/runtime": "0.22.0",
+ "@module-federation/webpack-bundler-runtime": "0.22.0"
+ }
+ },
+ "node_modules/@module-federation/sdk": {
+ "version": "0.22.0",
+ "resolved": "https://registry.npmjs.org/@module-federation/sdk/-/sdk-0.22.0.tgz",
+ "integrity": "sha512-x4aFNBKn2KVQRuNVC5A7SnrSCSqyfIWmm1DvubjbO9iKFe7ith5niw8dqSFBekYBg2Fwy+eMg4sEFNVvCAdo6g==",
+ "license": "MIT"
+ },
+ "node_modules/@module-federation/webpack-bundler-runtime": {
+ "version": "0.22.0",
+ "resolved": "https://registry.npmjs.org/@module-federation/webpack-bundler-runtime/-/webpack-bundler-runtime-0.22.0.tgz",
+ "integrity": "sha512-aM8gCqXu+/4wBmJtVeMeeMN5guw3chf+2i6HajKtQv7SJfxV/f4IyNQJUeUQu9HfiAZHjqtMV5Lvq/Lvh8LdyA==",
+ "license": "MIT",
+ "dependencies": {
+ "@module-federation/runtime": "0.22.0",
+ "@module-federation/sdk": "0.22.0"
+ }
+ },
+ "node_modules/@napi-rs/wasm-runtime": {
+ "version": "1.0.7",
+ "resolved": "https://registry.npmjs.org/@napi-rs/wasm-runtime/-/wasm-runtime-1.0.7.tgz",
+ "integrity": "sha512-SeDnOO0Tk7Okiq6DbXmmBODgOAb9dp9gjlphokTUxmt8U3liIP1ZsozBahH69j/RJv+Rfs6IwUKHTgQYJ/HBAw==",
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "@emnapi/core": "^1.5.0",
+ "@emnapi/runtime": "^1.5.0",
+ "@tybys/wasm-util": "^0.10.1"
+ }
+ },
+ "node_modules/@remotion/bundler": {
+ "version": "4.0.529",
+ "resolved": "https://registry.npmjs.org/@remotion/bundler/-/bundler-4.0.529.tgz",
+ "integrity": "sha512-yrOoPWjwYz+E6B4uRub2L08VYZgo37T9fRaFqhtenrBFMVmR6JhftpXHyizOpQWRbeEuk1KLLo+M2duLhbi2qw==",
+ "license": "SEE LICENSE IN LICENSE.md",
+ "dependencies": {
+ "@remotion/media-parser": "4.0.529",
+ "@remotion/studio": "4.0.529",
+ "@remotion/studio-shared": "4.0.529",
+ "@remotion/timeline-utils": "4.0.529",
+ "@rspack/core": "1.7.11",
+ "@rspack/plugin-react-refresh": "1.6.1",
+ "css-loader": "7.1.4",
+ "esbuild": "0.28.1",
+ "react-refresh": "0.18.0",
+ "remotion": "4.0.529",
+ "style-loader": "4.0.0",
+ "webpack": "5.105.0"
+ },
+ "peerDependencies": {
+ "react": ">=16.8.0",
+ "react-dom": ">=16.8.0"
+ }
+ },
+ "node_modules/@remotion/canvas": {
+ "version": "4.0.529",
+ "resolved": "https://registry.npmjs.org/@remotion/canvas/-/canvas-4.0.529.tgz",
+ "integrity": "sha512-zemhIIfjf+4jxwH20n+HDSEE/DxbO8HvMGdD+moozbk75E868uZWSSKNHY9EaFVi3i7hwkSv03XEktsRFLQl9A==",
+ "license": "Remotion License",
+ "dependencies": {
+ "@remotion/player": "4.0.529",
+ "remotion": "4.0.529"
+ },
+ "peerDependencies": {
+ "react": ">=16.8.0",
+ "react-dom": ">=16.8.0"
+ }
+ },
+ "node_modules/@remotion/captions": {
+ "version": "4.0.529",
+ "resolved": "https://registry.npmjs.org/@remotion/captions/-/captions-4.0.529.tgz",
+ "integrity": "sha512-zXHY/FCqKqxOid60dDUVYWV/yRsIg+7F6/Qs4OMsouNqL6fC6jKwjA/+lsbimdxRUv/VUeaVVyNEufXfenQGNA==",
+ "license": "MIT"
+ },
+ "node_modules/@remotion/cli": {
+ "version": "4.0.529",
+ "resolved": "https://registry.npmjs.org/@remotion/cli/-/cli-4.0.529.tgz",
+ "integrity": "sha512-1ONdF3q0adtw8FXW4CXeaSbzYV0vXIzJEm+b9mMrTDD9iyF+AKaLMzMUNespJaAvFxSxy/HV6hq17LS4UMfmiQ==",
+ "license": "SEE LICENSE IN LICENSE.md",
+ "dependencies": {
+ "@babel/parser": "7.24.1",
+ "@remotion/bundler": "4.0.529",
+ "@remotion/media-utils": "4.0.529",
+ "@remotion/player": "4.0.529",
+ "@remotion/renderer": "4.0.529",
+ "@remotion/studio": "4.0.529",
+ "@remotion/studio-server": "4.0.529",
+ "@remotion/studio-shared": "4.0.529",
+ "dotenv": "17.3.1",
+ "minimist": "1.2.6",
+ "prompts": "2.4.2",
+ "remotion": "4.0.529",
+ "semver": "7.5.3"
+ },
+ "bin": {
+ "remotion": "remotion-cli.js",
+ "remotionb": "remotionb-cli.js",
+ "remotiond": "remotiond-cli.js"
+ },
+ "peerDependencies": {
+ "react": ">=16.8.0",
+ "react-dom": ">=16.8.0"
+ }
+ },
+ "node_modules/@remotion/codemods": {
+ "version": "4.0.529",
+ "resolved": "https://registry.npmjs.org/@remotion/codemods/-/codemods-4.0.529.tgz",
+ "integrity": "sha512-OfzvplLep4kpnxjZfnAPDTMWl+SDaudvrTpWizG7py58enZDpygoC3GD5TxqVcHi3KYja68k9vnJz/+DaAiJzw==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/parser": "7.24.1",
+ "@babel/types": "7.24.0",
+ "@remotion/studio-protocol": "4.0.529",
+ "@remotion/studio-shared": "4.0.529",
+ "ast-types": "0.16.1",
+ "recast": "0.23.21",
+ "remotion": "4.0.529"
+ }
+ },
+ "node_modules/@remotion/compositor-darwin-arm64": {
+ "version": "4.0.529",
+ "resolved": "https://registry.npmjs.org/@remotion/compositor-darwin-arm64/-/compositor-darwin-arm64-4.0.529.tgz",
+ "integrity": "sha512-uzCs1izkHlbQGvASFvnSSXodh0dfMIqaCwXX/4Zx6o+ML8MIiYfvoMXMH22bFAU6T5HYFKREhO+PKc/iDZKe4A==",
+ "cpu": [
+ "arm64"
+ ],
+ "optional": true,
+ "os": [
+ "darwin"
+ ]
+ },
+ "node_modules/@remotion/compositor-darwin-x64": {
+ "version": "4.0.529",
+ "resolved": "https://registry.npmjs.org/@remotion/compositor-darwin-x64/-/compositor-darwin-x64-4.0.529.tgz",
+ "integrity": "sha512-5nPifOtkadthsrJTG4YGUR22HrAVML77zYoFKRWQGHboLcCik7UPZVy/X7yRu6HlGYuFULe0N7MKWude8jo2GA==",
+ "cpu": [
+ "x64"
+ ],
+ "optional": true,
+ "os": [
+ "darwin"
+ ]
+ },
+ "node_modules/@remotion/compositor-linux-arm64-gnu": {
+ "version": "4.0.529",
+ "resolved": "https://registry.npmjs.org/@remotion/compositor-linux-arm64-gnu/-/compositor-linux-arm64-gnu-4.0.529.tgz",
+ "integrity": "sha512-hb1gOJPGiP588tTR2pfif6xkSvYOXh3qW2FHQOIRki97kj3EyANj/+0+naVroJhrpFpE6lDHz8BMDdd8Sc6MKg==",
+ "cpu": [
+ "arm64"
+ ],
+ "libc": [
+ "glibc"
+ ],
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@remotion/compositor-linux-arm64-musl": {
+ "version": "4.0.529",
+ "resolved": "https://registry.npmjs.org/@remotion/compositor-linux-arm64-musl/-/compositor-linux-arm64-musl-4.0.529.tgz",
+ "integrity": "sha512-ZmGciox6hDUDIwiw2bq9KBtA6dK/y0ZNdsYpf/06rSZJMbWM3HhhLG0k+uBb/ELhQt8ZtuFBx8neN8qq5zi5/A==",
+ "cpu": [
+ "arm64"
+ ],
+ "libc": [
+ "musl"
+ ],
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@remotion/compositor-linux-x64-gnu": {
+ "version": "4.0.529",
+ "resolved": "https://registry.npmjs.org/@remotion/compositor-linux-x64-gnu/-/compositor-linux-x64-gnu-4.0.529.tgz",
+ "integrity": "sha512-MSsX7ut2AOrTsgxCNPR9IulNkiMnZ4waQcUd43l8yePlsirTHVvOseB7fJtOFHDmjYJWYbbm3IcfaUWQJa68Zw==",
+ "cpu": [
+ "x64"
+ ],
+ "libc": [
+ "glibc"
+ ],
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@remotion/compositor-linux-x64-musl": {
+ "version": "4.0.529",
+ "resolved": "https://registry.npmjs.org/@remotion/compositor-linux-x64-musl/-/compositor-linux-x64-musl-4.0.529.tgz",
+ "integrity": "sha512-Jada9IFuw4qY9YahXHVOgQy5tSRRLfTfaj3E5Xda7xJokju/hWUkBjUaGl6dtJmH+S+h19f5Tu2UH2J9M2v1gg==",
+ "cpu": [
+ "x64"
+ ],
+ "libc": [
+ "musl"
+ ],
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@remotion/compositor-win32-x64-msvc": {
+ "version": "4.0.529",
+ "resolved": "https://registry.npmjs.org/@remotion/compositor-win32-x64-msvc/-/compositor-win32-x64-msvc-4.0.529.tgz",
+ "integrity": "sha512-kyg7sG3bRdsKlcwDQ1yNMwDkAKpwlTtTrwbVWKcmii8LvHdMEDGPuteuQn6ULxwIAFqyzNkNAxhKrIjj9r8hZg==",
+ "cpu": [
+ "x64"
+ ],
+ "optional": true,
+ "os": [
+ "win32"
+ ]
+ },
+ "node_modules/@remotion/fonts": {
+ "version": "4.0.529",
+ "resolved": "https://registry.npmjs.org/@remotion/fonts/-/fonts-4.0.529.tgz",
+ "integrity": "sha512-Kd93oNWS3C2evRMq6fdCviQD/7l+8Z0Ezvj1Pe24lIv+8qhl8NEs0U45FKPiMDnz8e8hFWfbD1X7FgkZu+AKNQ==",
+ "license": "MIT",
+ "dependencies": {
+ "remotion": "4.0.529"
+ }
+ },
+ "node_modules/@remotion/licensing": {
+ "version": "4.0.529",
+ "resolved": "https://registry.npmjs.org/@remotion/licensing/-/licensing-4.0.529.tgz",
+ "integrity": "sha512-+hVV68ouCdjeNGKQOdDueH1OZej5biXGXLr9ADdiJr7MEl5l9mWPHa2Z9z45TwBHihMe5wKOQ5fmXHc+TBOjBg==",
+ "license": "MIT"
+ },
+ "node_modules/@remotion/media": {
+ "version": "4.0.529",
+ "resolved": "https://registry.npmjs.org/@remotion/media/-/media-4.0.529.tgz",
+ "integrity": "sha512-ritB7TVRR3ZvYLNVCPwgZ33riUNn/B7IasroxLFXarMLZbz/9tHBbznO02Dth2ldkt643DTILUO/cBrnTtVWKg==",
+ "dependencies": {
+ "mediabunny": "1.56.1",
+ "remotion": "4.0.529",
+ "zod": "4.5.4"
+ },
+ "peerDependencies": {
+ "react": ">=16.8.0",
+ "react-dom": ">=16.8.0"
+ }
+ },
+ "node_modules/@remotion/media-parser": {
+ "version": "4.0.529",
+ "resolved": "https://registry.npmjs.org/@remotion/media-parser/-/media-parser-4.0.529.tgz",
+ "integrity": "sha512-HGIm6dRtNRmGZbFZUy2/3EIWI0LW11l46qlAQs5fqQ6h24Cp+HqAfzNE05J75Hbv/2JYD+e1f5EPU/WKqykzzA==",
+ "license": "Remotion License https://remotion.dev/license"
+ },
+ "node_modules/@remotion/media-utils": {
+ "version": "4.0.529",
+ "resolved": "https://registry.npmjs.org/@remotion/media-utils/-/media-utils-4.0.529.tgz",
+ "integrity": "sha512-0tYUgdRhKFSOsmGdBPFJc0TGDOz5ovyl0h984+azm9Y18w2OQwy/86Y/Vy+sB9nLRmoqn/wlaPuyH5do6iVCQw==",
+ "license": "MIT",
+ "dependencies": {
+ "mediabunny": "1.56.1",
+ "remotion": "4.0.529"
+ },
+ "peerDependencies": {
+ "react": ">=16.8.0",
+ "react-dom": ">=16.8.0"
+ }
+ },
+ "node_modules/@remotion/paths": {
+ "version": "4.0.529",
+ "resolved": "https://registry.npmjs.org/@remotion/paths/-/paths-4.0.529.tgz",
+ "integrity": "sha512-kTm3lehZkjpqLi+e1rdgsMoRulDVUTkZMOUFPu9tCZDDh+gVFqQcsuOnhYZlgxnSun8f8zvy9aP2khS3Oooq3Q==",
+ "license": "MIT",
+ "dependencies": {
+ "remotion": "4.0.529"
+ }
+ },
+ "node_modules/@remotion/player": {
+ "version": "4.0.529",
+ "resolved": "https://registry.npmjs.org/@remotion/player/-/player-4.0.529.tgz",
+ "integrity": "sha512-unUylvuwwByzIitVea5iQsBlFNqbZRElvoYVxXzeGa0jpiQRty9fYVxt3wQ97LkPEH1J1BmkSITLBWw+y/GF3w==",
+ "license": "SEE LICENSE IN LICENSE.md",
+ "dependencies": {
+ "remotion": "4.0.529"
+ },
+ "peerDependencies": {
+ "react": ">=16.8.0",
+ "react-dom": ">=16.8.0"
+ }
+ },
+ "node_modules/@remotion/renderer": {
+ "version": "4.0.529",
+ "resolved": "https://registry.npmjs.org/@remotion/renderer/-/renderer-4.0.529.tgz",
+ "integrity": "sha512-2/jo+awVY0J6d0ZDanmIVa1ZvVurDitQwjq/iFNGHRTHNAvtu1jIuY1l6OXFW0FG49KU7/2/VdOCB6+wqbF9tQ==",
+ "license": "SEE LICENSE IN LICENSE.md",
+ "dependencies": {
+ "@remotion/licensing": "4.0.529",
+ "@remotion/streaming": "4.0.529",
+ "execa": "5.1.1",
+ "remotion": "4.0.529",
+ "source-map": "0.8.0",
+ "ws": "8.21.0"
+ },
+ "optionalDependencies": {
+ "@remotion/compositor-darwin-arm64": "4.0.529",
+ "@remotion/compositor-darwin-x64": "4.0.529",
+ "@remotion/compositor-linux-arm64-gnu": "4.0.529",
+ "@remotion/compositor-linux-arm64-musl": "4.0.529",
+ "@remotion/compositor-linux-x64-gnu": "4.0.529",
+ "@remotion/compositor-linux-x64-musl": "4.0.529",
+ "@remotion/compositor-win32-x64-msvc": "4.0.529"
+ },
+ "peerDependencies": {
+ "react": ">=16.8.0",
+ "react-dom": ">=16.8.0"
+ }
+ },
+ "node_modules/@remotion/streaming": {
+ "version": "4.0.529",
+ "resolved": "https://registry.npmjs.org/@remotion/streaming/-/streaming-4.0.529.tgz",
+ "integrity": "sha512-jGY65mgj1o6giB3vBmcCkRE6xu1oxVks5ogpXje1ISj3bUaptT+81flCXS8K60bhCs7lwLk1jXETsmFZLT3tsA==",
+ "license": "MIT"
+ },
+ "node_modules/@remotion/studio": {
+ "version": "4.0.529",
+ "resolved": "https://registry.npmjs.org/@remotion/studio/-/studio-4.0.529.tgz",
+ "integrity": "sha512-O+uL9nU8aM3xtPoTR7aFjuwipifwpAWi+RYKaWbL2/+G9bHUE+RHmQnp+3Y9az5VgXE5sR6Sh5tXSnGqPZhK2g==",
+ "license": "MIT",
+ "dependencies": {
+ "@jridgewell/trace-mapping": "0.3.31",
+ "@remotion/canvas": "4.0.529",
+ "@remotion/captions": "4.0.529",
+ "@remotion/codemods": "4.0.529",
+ "@remotion/media": "4.0.529",
+ "@remotion/media-utils": "4.0.529",
+ "@remotion/paths": "4.0.529",
+ "@remotion/player": "4.0.529",
+ "@remotion/renderer": "4.0.529",
+ "@remotion/studio-protocol": "4.0.529",
+ "@remotion/studio-shared": "4.0.529",
+ "@remotion/timeline-utils": "4.0.529",
+ "@remotion/web-renderer": "4.0.529",
+ "@remotion/zod-types": "4.0.529",
+ "@tanstack/react-virtual": "3.14.9",
+ "mediabunny": "1.56.1",
+ "memfs": "3.4.3",
+ "open": "8.4.2",
+ "prismjs": "1.30.0",
+ "remotion": "4.0.529",
+ "semver": "7.5.3",
+ "zod": "4.5.4"
+ },
+ "peerDependencies": {
+ "@remotion/video-matting": "4.0.529",
+ "@remotion/whisper-webgpu": "4.0.529",
+ "react": ">=16.8.0",
+ "react-dom": ">=16.8.0"
+ },
+ "peerDependenciesMeta": {
+ "@remotion/video-matting": {
+ "optional": true
+ },
+ "@remotion/whisper-webgpu": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@remotion/studio-protocol": {
+ "version": "4.0.529",
+ "resolved": "https://registry.npmjs.org/@remotion/studio-protocol/-/studio-protocol-4.0.529.tgz",
+ "integrity": "sha512-Sndjwx2xcPRD1d2YutpzALFP6sR0t1CR9VVQXopqmgjei7Ag6HlKKw8RKT8CXd63GdiNYm3mIBsw4MMWGyiWCQ==",
+ "license": "Remotion License",
+ "dependencies": {
+ "zod": "4.5.4"
+ }
+ },
+ "node_modules/@remotion/studio-server": {
+ "version": "4.0.529",
+ "resolved": "https://registry.npmjs.org/@remotion/studio-server/-/studio-server-4.0.529.tgz",
+ "integrity": "sha512-7il0R2ynvtd2omdCXsn3ze4XSEplHp/g9l/1TvRaK8OTgeRwHE6Kf0ko0WqsE55nzEjsOxkOo4MALA7K2p/Q7g==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/parser": "7.24.1",
+ "@babel/types": "7.24.0",
+ "@remotion/bundler": "4.0.529",
+ "@remotion/codemods": "4.0.529",
+ "@remotion/renderer": "4.0.529",
+ "@remotion/studio-protocol": "4.0.529",
+ "@remotion/studio-shared": "4.0.529",
+ "@svgr/core": "8.1.0",
+ "@svgr/plugin-jsx": "8.1.0",
+ "kiwi-schema": "0.5.0",
+ "memfs": "3.4.3",
+ "open": "8.4.2",
+ "recast": "0.23.21",
+ "remotion": "4.0.529",
+ "semver": "7.5.3",
+ "zod": "4.5.4"
+ }
+ },
+ "node_modules/@remotion/studio-shared": {
+ "version": "4.0.529",
+ "resolved": "https://registry.npmjs.org/@remotion/studio-shared/-/studio-shared-4.0.529.tgz",
+ "integrity": "sha512-WQoNqqmTeho932NEIzhL5yH7UOeDjSpI3Ek38g9LaDx+wFZ6jVmBYaaYqjMlAHWkmom/mRl8lbMDOxyLz/7/Jg==",
+ "license": "MIT",
+ "dependencies": {
+ "remotion": "4.0.529"
+ }
+ },
+ "node_modules/@remotion/timeline-utils": {
+ "version": "4.0.529",
+ "resolved": "https://registry.npmjs.org/@remotion/timeline-utils/-/timeline-utils-4.0.529.tgz",
+ "integrity": "sha512-nw+H4/Q/gzxXbKU/XD8Sw9L5bpuccPS1c/CtpgZvyeEAGzlsgYPsbHInTAa++oIkasZgVK1X59qWjj5GXabiig==",
+ "license": "MIT",
+ "dependencies": {
+ "mediabunny": "1.56.1",
+ "remotion": "4.0.529"
+ }
+ },
+ "node_modules/@remotion/web-renderer": {
+ "version": "4.0.529",
+ "resolved": "https://registry.npmjs.org/@remotion/web-renderer/-/web-renderer-4.0.529.tgz",
+ "integrity": "sha512-+QP9k2C8PlvBfA+hmJ17BP/my92q6O/TYEz8Qiqc1cuE+1hnPF1+iNemjv5ETEWEZ2FUwbxVOYqa9+2khmdTYQ==",
+ "license": "SEE LICENSE IN LICENSE.md",
+ "dependencies": {
+ "@mediabunny/aac-encoder": "1.56.1",
+ "@mediabunny/flac-encoder": "1.56.1",
+ "@mediabunny/mp3-encoder": "1.56.1",
+ "@remotion/licensing": "4.0.529",
+ "mediabunny": "1.56.1",
+ "remotion": "4.0.529"
+ },
+ "peerDependencies": {
+ "react": ">=18.0.0",
+ "react-dom": ">=18.0.0"
+ }
+ },
+ "node_modules/@remotion/zod-types": {
+ "version": "4.0.529",
+ "resolved": "https://registry.npmjs.org/@remotion/zod-types/-/zod-types-4.0.529.tgz",
+ "integrity": "sha512-EInt82hUV5dH6QjI4hn4PhB9gFXiJH4QrJKJYxDI8Bog56nVGWkKLQE3vUQGhT5+3EUPdQnWEEm/OACutXvHFg==",
+ "license": "MIT",
+ "dependencies": {
+ "remotion": "4.0.529"
+ }
+ },
+ "node_modules/@rspack/binding": {
+ "version": "1.7.11",
+ "resolved": "https://registry.npmjs.org/@rspack/binding/-/binding-1.7.11.tgz",
+ "integrity": "sha512-2MGdy2s2HimsDT444Bp5XnALzNRxuBNc7y0JzyuqKbHBywd4x2NeXyhWXXoxufaCFu5PBc9Qq9jyfjW2Aeh06Q==",
+ "license": "MIT",
+ "optionalDependencies": {
+ "@rspack/binding-darwin-arm64": "1.7.11",
+ "@rspack/binding-darwin-x64": "1.7.11",
+ "@rspack/binding-linux-arm64-gnu": "1.7.11",
+ "@rspack/binding-linux-arm64-musl": "1.7.11",
+ "@rspack/binding-linux-x64-gnu": "1.7.11",
+ "@rspack/binding-linux-x64-musl": "1.7.11",
+ "@rspack/binding-wasm32-wasi": "1.7.11",
+ "@rspack/binding-win32-arm64-msvc": "1.7.11",
+ "@rspack/binding-win32-ia32-msvc": "1.7.11",
+ "@rspack/binding-win32-x64-msvc": "1.7.11"
+ }
+ },
+ "node_modules/@rspack/binding-darwin-arm64": {
+ "version": "1.7.11",
+ "resolved": "https://registry.npmjs.org/@rspack/binding-darwin-arm64/-/binding-darwin-arm64-1.7.11.tgz",
+ "integrity": "sha512-oduECiZVqbO5zlVw+q7Vy65sJFth99fWPTyucwvLJJtJkPL5n17Uiql2cYP6Ijn0pkqtf1SXgK8WjiKLG5bIig==",
+ "cpu": [
+ "arm64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ]
+ },
+ "node_modules/@rspack/binding-darwin-x64": {
+ "version": "1.7.11",
+ "resolved": "https://registry.npmjs.org/@rspack/binding-darwin-x64/-/binding-darwin-x64-1.7.11.tgz",
+ "integrity": "sha512-a1+TtTE9ap6RalgFi7FGIgkJP6O4Vy6ctv+9WGJy53E4kuqHR0RygzaiVxCI/GMc/vBT9vY23hyrpWb3d1vtXA==",
+ "cpu": [
+ "x64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ]
+ },
+ "node_modules/@rspack/binding-linux-arm64-gnu": {
+ "version": "1.7.11",
+ "resolved": "https://registry.npmjs.org/@rspack/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-1.7.11.tgz",
+ "integrity": "sha512-P0QrGRPbTWu6RKWfN0bDtbnEps3rXH0MWIMreZABoUrVmNQKtXR6e73J3ub6a+di5s2+K0M2LJ9Bh2/H4UsDUA==",
+ "cpu": [
+ "arm64"
+ ],
+ "libc": [
+ "glibc"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rspack/binding-linux-arm64-musl": {
+ "version": "1.7.11",
+ "resolved": "https://registry.npmjs.org/@rspack/binding-linux-arm64-musl/-/binding-linux-arm64-musl-1.7.11.tgz",
+ "integrity": "sha512-6ky7R43VMjWwmx3Yx7Jl7faLBBMAgMDt+/bN35RgwjiPgsIByz65EwytUVuW9rikB43BGHvA/eqlnjLrUzNBqw==",
+ "cpu": [
+ "arm64"
+ ],
+ "libc": [
+ "musl"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rspack/binding-linux-x64-gnu": {
+ "version": "1.7.11",
+ "resolved": "https://registry.npmjs.org/@rspack/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.7.11.tgz",
+ "integrity": "sha512-cuOJMfCOvb2Wgsry5enXJ3iT1FGUjdPqtGUBVupQlEG4ntSYsQ2PtF4wIDVasR3wdxC5nQbipOrDiN/u6fYsdQ==",
+ "cpu": [
+ "x64"
+ ],
+ "libc": [
+ "glibc"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rspack/binding-linux-x64-musl": {
+ "version": "1.7.11",
+ "resolved": "https://registry.npmjs.org/@rspack/binding-linux-x64-musl/-/binding-linux-x64-musl-1.7.11.tgz",
+ "integrity": "sha512-CoK37hva4AmHGh3VCsQXmGr40L36m1/AdnN5LEjUX6kx5rEH7/1nEBN6Ii72pejqDVvk9anEROmPDiPw10tpFg==",
+ "cpu": [
+ "x64"
+ ],
+ "libc": [
+ "musl"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rspack/binding-wasm32-wasi": {
+ "version": "1.7.11",
+ "resolved": "https://registry.npmjs.org/@rspack/binding-wasm32-wasi/-/binding-wasm32-wasi-1.7.11.tgz",
+ "integrity": "sha512-OtrmnPUVJMxjNa3eDMfHyPdtlLRmmp/aIm0fQHlAOATbZvlGm12q7rhPW5BXTu1yh+1rQ1/uqvz+SzKEZXuJaQ==",
+ "cpu": [
+ "wasm32"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "@napi-rs/wasm-runtime": "1.0.7"
+ }
+ },
+ "node_modules/@rspack/binding-win32-arm64-msvc": {
+ "version": "1.7.11",
+ "resolved": "https://registry.npmjs.org/@rspack/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-1.7.11.tgz",
+ "integrity": "sha512-lObFW6e5lCWNgTBNwT//yiEDbsxm9QG4BYUojqeXxothuzJ/L6ibXz6+gLMvbOvLGV3nKgkXmx8GvT9WDKR0mA==",
+ "cpu": [
+ "arm64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ]
+ },
+ "node_modules/@rspack/binding-win32-ia32-msvc": {
+ "version": "1.7.11",
+ "resolved": "https://registry.npmjs.org/@rspack/binding-win32-ia32-msvc/-/binding-win32-ia32-msvc-1.7.11.tgz",
+ "integrity": "sha512-0pYGnZd8PPqNR68zQ8skamqNAXEA1sUfXuAdYcknIIRq2wsbiwFzIc0Pov1cIfHYab37G7sSIPBiOUdOWF5Ivw==",
+ "cpu": [
+ "ia32"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ]
+ },
+ "node_modules/@rspack/binding-win32-x64-msvc": {
+ "version": "1.7.11",
+ "resolved": "https://registry.npmjs.org/@rspack/binding-win32-x64-msvc/-/binding-win32-x64-msvc-1.7.11.tgz",
+ "integrity": "sha512-EeQXayoQk/uBkI3pdoXfQBXNIUrADq56L3s/DFyM2pJeUDrWmhfIw2UFIGkYPTMSCo8F2JcdcGM32FGJrSnU0Q==",
+ "cpu": [
+ "x64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ]
+ },
+ "node_modules/@rspack/core": {
+ "version": "1.7.11",
+ "resolved": "https://registry.npmjs.org/@rspack/core/-/core-1.7.11.tgz",
+ "integrity": "sha512-rsD9b+Khmot5DwCMiB3cqTQo53ioPG3M/A7BySu8+0+RS7GCxKm+Z+mtsjtG/vsu4Tn2tcqCdZtA3pgLoJB+ew==",
+ "license": "MIT",
+ "dependencies": {
+ "@module-federation/runtime-tools": "0.22.0",
+ "@rspack/binding": "1.7.11",
+ "@rspack/lite-tapable": "1.1.0"
+ },
+ "engines": {
+ "node": ">=18.12.0"
+ },
+ "peerDependencies": {
+ "@swc/helpers": ">=0.5.1"
+ },
+ "peerDependenciesMeta": {
+ "@swc/helpers": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@rspack/lite-tapable": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/@rspack/lite-tapable/-/lite-tapable-1.1.0.tgz",
+ "integrity": "sha512-E2B0JhYFmVAwdDiG14+DW0Di4Ze4Jg10Pc4/lILUrd5DRCaklduz2OvJ5HYQ6G+hd+WTzqQb3QnDNfK4yvAFYw==",
+ "license": "MIT"
+ },
+ "node_modules/@rspack/plugin-react-refresh": {
+ "version": "1.6.1",
+ "resolved": "https://registry.npmjs.org/@rspack/plugin-react-refresh/-/plugin-react-refresh-1.6.1.tgz",
+ "integrity": "sha512-eqqW5645VG3CzGzFgNg5HqNdHVXY+567PGjtDhhrM8t67caxmsSzRmT5qfoEIfBcGgFkH9vEg7kzXwmCYQdQDw==",
+ "license": "MIT",
+ "dependencies": {
+ "error-stack-parser": "^2.1.4",
+ "html-entities": "^2.6.0"
+ },
+ "peerDependencies": {
+ "react-refresh": ">=0.10.0 <1.0.0",
+ "webpack-hot-middleware": "2.x"
+ },
+ "peerDependenciesMeta": {
+ "webpack-hot-middleware": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@svgr/babel-plugin-add-jsx-attribute": {
+ "version": "8.0.0",
+ "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-add-jsx-attribute/-/babel-plugin-add-jsx-attribute-8.0.0.tgz",
+ "integrity": "sha512-b9MIk7yhdS1pMCZM8VeNfUlSKVRhsHZNMl5O9SfaX0l0t5wjdgu4IDzGB8bpnGBBOjGST3rRFVsaaEtI4W6f7g==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=14"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/gregberge"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@svgr/babel-plugin-remove-jsx-attribute": {
+ "version": "8.0.0",
+ "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-remove-jsx-attribute/-/babel-plugin-remove-jsx-attribute-8.0.0.tgz",
+ "integrity": "sha512-BcCkm/STipKvbCl6b7QFrMh/vx00vIP63k2eM66MfHJzPr6O2U0jYEViXkHJWqXqQYjdeA9cuCl5KWmlwjDvbA==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=14"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/gregberge"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@svgr/babel-plugin-remove-jsx-empty-expression": {
+ "version": "8.0.0",
+ "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-remove-jsx-empty-expression/-/babel-plugin-remove-jsx-empty-expression-8.0.0.tgz",
+ "integrity": "sha512-5BcGCBfBxB5+XSDSWnhTThfI9jcO5f0Ai2V24gZpG+wXF14BzwxxdDb4g6trdOux0rhibGs385BeFMSmxtS3uA==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=14"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/gregberge"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@svgr/babel-plugin-replace-jsx-attribute-value": {
+ "version": "8.0.0",
+ "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-replace-jsx-attribute-value/-/babel-plugin-replace-jsx-attribute-value-8.0.0.tgz",
+ "integrity": "sha512-KVQ+PtIjb1BuYT3ht8M5KbzWBhdAjjUPdlMtpuw/VjT8coTrItWX6Qafl9+ji831JaJcu6PJNKCV0bp01lBNzQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=14"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/gregberge"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@svgr/babel-plugin-svg-dynamic-title": {
+ "version": "8.0.0",
+ "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-svg-dynamic-title/-/babel-plugin-svg-dynamic-title-8.0.0.tgz",
+ "integrity": "sha512-omNiKqwjNmOQJ2v6ge4SErBbkooV2aAWwaPFs2vUY7p7GhVkzRkJ00kILXQvRhA6miHnNpXv7MRnnSjdRjK8og==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=14"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/gregberge"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@svgr/babel-plugin-svg-em-dimensions": {
+ "version": "8.0.0",
+ "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-svg-em-dimensions/-/babel-plugin-svg-em-dimensions-8.0.0.tgz",
+ "integrity": "sha512-mURHYnu6Iw3UBTbhGwE/vsngtCIbHE43xCRK7kCw4t01xyGqb2Pd+WXekRRoFOBIY29ZoOhUCTEweDMdrjfi9g==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=14"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/gregberge"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@svgr/babel-plugin-transform-react-native-svg": {
+ "version": "8.1.0",
+ "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-transform-react-native-svg/-/babel-plugin-transform-react-native-svg-8.1.0.tgz",
+ "integrity": "sha512-Tx8T58CHo+7nwJ+EhUwx3LfdNSG9R2OKfaIXXs5soiy5HtgoAEkDay9LIimLOcG8dJQH1wPZp/cnAv6S9CrR1Q==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=14"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/gregberge"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@svgr/babel-plugin-transform-svg-component": {
+ "version": "8.0.0",
+ "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-transform-svg-component/-/babel-plugin-transform-svg-component-8.0.0.tgz",
+ "integrity": "sha512-DFx8xa3cZXTdb/k3kfPeaixecQLgKh5NVBMwD0AQxOzcZawK4oo1Jh9LbrcACUivsCA7TLG8eeWgrDXjTMhRmw==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/gregberge"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@svgr/babel-preset": {
+ "version": "8.1.0",
+ "resolved": "https://registry.npmjs.org/@svgr/babel-preset/-/babel-preset-8.1.0.tgz",
+ "integrity": "sha512-7EYDbHE7MxHpv4sxvnVPngw5fuR6pw79SkcrILHJ/iMpuKySNCl5W1qcwPEpU+LgyRXOaAFgH0KhwD18wwg6ug==",
+ "license": "MIT",
+ "dependencies": {
+ "@svgr/babel-plugin-add-jsx-attribute": "8.0.0",
+ "@svgr/babel-plugin-remove-jsx-attribute": "8.0.0",
+ "@svgr/babel-plugin-remove-jsx-empty-expression": "8.0.0",
+ "@svgr/babel-plugin-replace-jsx-attribute-value": "8.0.0",
+ "@svgr/babel-plugin-svg-dynamic-title": "8.0.0",
+ "@svgr/babel-plugin-svg-em-dimensions": "8.0.0",
+ "@svgr/babel-plugin-transform-react-native-svg": "8.1.0",
+ "@svgr/babel-plugin-transform-svg-component": "8.0.0"
+ },
+ "engines": {
+ "node": ">=14"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/gregberge"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@svgr/core": {
+ "version": "8.1.0",
+ "resolved": "https://registry.npmjs.org/@svgr/core/-/core-8.1.0.tgz",
+ "integrity": "sha512-8QqtOQT5ACVlmsvKOJNEaWmRPmcojMOzCz4Hs2BGG/toAp/K38LcsMRyLp349glq5AzJbCEeimEoxaX6v/fLrA==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/core": "^7.21.3",
+ "@svgr/babel-preset": "8.1.0",
+ "camelcase": "^6.2.0",
+ "cosmiconfig": "^8.1.3",
+ "snake-case": "^3.0.4"
+ },
+ "engines": {
+ "node": ">=14"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/gregberge"
+ }
+ },
+ "node_modules/@svgr/hast-util-to-babel-ast": {
+ "version": "8.0.0",
+ "resolved": "https://registry.npmjs.org/@svgr/hast-util-to-babel-ast/-/hast-util-to-babel-ast-8.0.0.tgz",
+ "integrity": "sha512-EbDKwO9GpfWP4jN9sGdYwPBU0kdomaPIL2Eu4YwmgP+sJeXT+L7bMwJUBnhzfH8Q2qMBqZ4fJwpCyYsAN3mt2Q==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/types": "^7.21.3",
+ "entities": "^4.4.0"
+ },
+ "engines": {
+ "node": ">=14"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/gregberge"
+ }
+ },
+ "node_modules/@svgr/plugin-jsx": {
+ "version": "8.1.0",
+ "resolved": "https://registry.npmjs.org/@svgr/plugin-jsx/-/plugin-jsx-8.1.0.tgz",
+ "integrity": "sha512-0xiIyBsLlr8quN+WyuxooNW9RJ0Dpr8uOnH/xrCVO8GLUcwHISwj1AG0k+LFzteTkAA0GbX0kj9q6Dk70PTiPA==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/core": "^7.21.3",
+ "@svgr/babel-preset": "8.1.0",
+ "@svgr/hast-util-to-babel-ast": "8.0.0",
+ "svg-parser": "^2.0.4"
+ },
+ "engines": {
+ "node": ">=14"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/gregberge"
+ },
+ "peerDependencies": {
+ "@svgr/core": "*"
+ }
+ },
+ "node_modules/@tanstack/react-virtual": {
+ "version": "3.14.9",
+ "resolved": "https://registry.npmjs.org/@tanstack/react-virtual/-/react-virtual-3.14.9.tgz",
+ "integrity": "sha512-qZyr0FZDP8rDC4WBhsryIZmAd9bveJvFGUJJtskWaew6/0dTRS6wZxnR6VQ5bY2KwL3LjerrHqQLk3a0GKcPXQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@tanstack/virtual-core": "3.17.7"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/tannerlinsley"
+ },
+ "peerDependencies": {
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
+ "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
+ }
+ },
+ "node_modules/@tanstack/virtual-core": {
+ "version": "3.17.7",
+ "resolved": "https://registry.npmjs.org/@tanstack/virtual-core/-/virtual-core-3.17.7.tgz",
+ "integrity": "sha512-bp+v10y65sp2H7WpWfIMyxTNfl8ZVfxFTLRjPIFRryi6FV/J33z4IS53WO4pTk36KlvJ4iLiQz+oaydDC1xbcA==",
+ "license": "MIT",
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/tannerlinsley"
+ }
+ },
+ "node_modules/@tybys/wasm-util": {
+ "version": "0.10.4",
+ "resolved": "https://registry.npmjs.org/@tybys/wasm-util/-/wasm-util-0.10.4.tgz",
+ "integrity": "sha512-W3c4gRigFS0T/Ma4qIYF3GDAc5AQdHb1yL5znJT1Zv1YaD9Kitx656wBjvr19qbiosmZT8lWDM5BEMynUqX65A==",
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "tslib": "^2.4.0"
+ }
+ },
+ "node_modules/@types/dom-mediacapture-transform": {
+ "version": "0.1.12",
+ "resolved": "https://registry.npmjs.org/@types/dom-mediacapture-transform/-/dom-mediacapture-transform-0.1.12.tgz",
+ "integrity": "sha512-d7/QsLRwF864A5mgIM/YrfiglHoYn7zgCcAoJgW404r+2DwnNr7EBbLnCWpmOMgH8y0te73L1AV6H1bmauaWFw==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/dom-webcodecs": "*"
+ }
+ },
+ "node_modules/@types/dom-webcodecs": {
+ "version": "0.1.13",
+ "resolved": "https://registry.npmjs.org/@types/dom-webcodecs/-/dom-webcodecs-0.1.13.tgz",
+ "integrity": "sha512-O5hkiFIcjjszPIYyUSyvScyvrBoV3NOEEZx/pMlsu44TKzWNkLVBBxnxJz42in5n3QIolYOcBYFCPZZ0h8SkwQ==",
+ "license": "MIT"
+ },
+ "node_modules/@types/eslint": {
+ "version": "9.6.1",
+ "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-9.6.1.tgz",
+ "integrity": "sha512-FXx2pKgId/WyYo2jXw63kk7/+TY7u7AziEJxJAnSFzHlqTAS3Ync6SvgYAN/k4/PQpnnVuzoMuVnByKK2qp0ag==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/estree": "*",
+ "@types/json-schema": "*"
+ }
+ },
+ "node_modules/@types/eslint-scope": {
+ "version": "3.7.7",
+ "resolved": "https://registry.npmjs.org/@types/eslint-scope/-/eslint-scope-3.7.7.tgz",
+ "integrity": "sha512-MzMFlSLBqNF2gcHWO0G1vP/YQyfvrxZ0bF+u7mzUdZ1/xK4A4sru+nraZz5i3iEIk1l1uyicaDVTB4QbbEkAYg==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/eslint": "*",
+ "@types/estree": "*"
+ }
+ },
+ "node_modules/@types/estree": {
+ "version": "1.0.9",
+ "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.9.tgz",
+ "integrity": "sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==",
+ "license": "MIT"
+ },
+ "node_modules/@types/json-schema": {
+ "version": "7.0.15",
+ "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz",
+ "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==",
+ "license": "MIT"
+ },
+ "node_modules/@types/node": {
+ "version": "26.6.3",
+ "resolved": "https://registry.npmjs.org/@types/node/-/node-26.6.3.tgz",
+ "integrity": "sha512-dsqMQQoeTLqu9wynDD00q573mNzso3IdQOAfHRJqLCcmCFPoGo9A1bDpUcv/9tnKpErQWv9uKeGfl37EIS02Yg==",
+ "license": "MIT",
+ "dependencies": {
+ "undici-types": "~8.9.0"
+ }
+ },
+ "node_modules/@types/react": {
+ "version": "19.2.2",
+ "resolved": "https://registry.npmjs.org/@types/react/-/react-19.2.2.tgz",
+ "integrity": "sha512-6mDvHUFSjyT2B2yeNx2nUgMxh9LtOWvkhIU3uePn2I2oyNymUAX1NIsdgviM4CH+JSrp2D2hsMvJOkxY+0wNRA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "csstype": "^3.0.2"
+ }
+ },
+ "node_modules/@webassemblyjs/ast": {
+ "version": "1.14.1",
+ "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.14.1.tgz",
+ "integrity": "sha512-nuBEDgQfm1ccRp/8bCQrx1frohyufl4JlbMMZ4P1wpeOfDhF6FQkxZJ1b/e+PLwr6X1Nhw6OLme5usuBWYBvuQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@webassemblyjs/helper-numbers": "1.13.2",
+ "@webassemblyjs/helper-wasm-bytecode": "1.13.2"
+ }
+ },
+ "node_modules/@webassemblyjs/floating-point-hex-parser": {
+ "version": "1.13.2",
+ "resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.13.2.tgz",
+ "integrity": "sha512-6oXyTOzbKxGH4steLbLNOu71Oj+C8Lg34n6CqRvqfS2O71BxY6ByfMDRhBytzknj9yGUPVJ1qIKhRlAwO1AovA==",
+ "license": "MIT"
+ },
+ "node_modules/@webassemblyjs/helper-api-error": {
+ "version": "1.13.2",
+ "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.13.2.tgz",
+ "integrity": "sha512-U56GMYxy4ZQCbDZd6JuvvNV/WFildOjsaWD3Tzzvmw/mas3cXzRJPMjP83JqEsgSbyrmaGjBfDtV7KDXV9UzFQ==",
+ "license": "MIT"
+ },
+ "node_modules/@webassemblyjs/helper-buffer": {
+ "version": "1.14.1",
+ "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.14.1.tgz",
+ "integrity": "sha512-jyH7wtcHiKssDtFPRB+iQdxlDf96m0E39yb0k5uJVhFGleZFoNw1c4aeIcVUPPbXUVJ94wwnMOAqUHyzoEPVMA==",
+ "license": "MIT"
+ },
+ "node_modules/@webassemblyjs/helper-numbers": {
+ "version": "1.13.2",
+ "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-numbers/-/helper-numbers-1.13.2.tgz",
+ "integrity": "sha512-FE8aCmS5Q6eQYcV3gI35O4J789wlQA+7JrqTTpJqn5emA4U2hvwJmvFRC0HODS+3Ye6WioDklgd6scJ3+PLnEA==",
+ "license": "MIT",
+ "dependencies": {
+ "@webassemblyjs/floating-point-hex-parser": "1.13.2",
+ "@webassemblyjs/helper-api-error": "1.13.2",
+ "@xtuc/long": "4.2.2"
+ }
+ },
+ "node_modules/@webassemblyjs/helper-wasm-bytecode": {
+ "version": "1.13.2",
+ "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.13.2.tgz",
+ "integrity": "sha512-3QbLKy93F0EAIXLh0ogEVR6rOubA9AoZ+WRYhNbFyuB70j3dRdwH9g+qXhLAO0kiYGlg3TxDV+I4rQTr/YNXkA==",
+ "license": "MIT"
+ },
+ "node_modules/@webassemblyjs/helper-wasm-section": {
+ "version": "1.14.1",
+ "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.14.1.tgz",
+ "integrity": "sha512-ds5mXEqTJ6oxRoqjhWDU83OgzAYjwsCV8Lo/N+oRsNDmx/ZDpqalmrtgOMkHwxsG0iI//3BwWAErYRHtgn0dZw==",
+ "license": "MIT",
+ "dependencies": {
+ "@webassemblyjs/ast": "1.14.1",
+ "@webassemblyjs/helper-buffer": "1.14.1",
+ "@webassemblyjs/helper-wasm-bytecode": "1.13.2",
+ "@webassemblyjs/wasm-gen": "1.14.1"
+ }
+ },
+ "node_modules/@webassemblyjs/ieee754": {
+ "version": "1.13.2",
+ "resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.13.2.tgz",
+ "integrity": "sha512-4LtOzh58S/5lX4ITKxnAK2USuNEvpdVV9AlgGQb8rJDHaLeHciwG4zlGr0j/SNWlr7x3vO1lDEsuePvtcDNCkw==",
+ "license": "MIT",
+ "dependencies": {
+ "@xtuc/ieee754": "^1.2.0"
+ }
+ },
+ "node_modules/@webassemblyjs/leb128": {
+ "version": "1.13.2",
+ "resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.13.2.tgz",
+ "integrity": "sha512-Lde1oNoIdzVzdkNEAWZ1dZ5orIbff80YPdHx20mrHwHrVNNTjNr8E3xz9BdpcGqRQbAEa+fkrCb+fRFTl/6sQw==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@xtuc/long": "4.2.2"
+ }
+ },
+ "node_modules/@webassemblyjs/utf8": {
+ "version": "1.13.2",
+ "resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.13.2.tgz",
+ "integrity": "sha512-3NQWGjKTASY1xV5m7Hr0iPeXD9+RDobLll3T9d2AO+g3my8xy5peVyjSag4I50mR1bBSN/Ct12lo+R9tJk0NZQ==",
+ "license": "MIT"
+ },
+ "node_modules/@webassemblyjs/wasm-edit": {
+ "version": "1.14.1",
+ "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.14.1.tgz",
+ "integrity": "sha512-RNJUIQH/J8iA/1NzlE4N7KtyZNHi3w7at7hDjvRNm5rcUXa00z1vRz3glZoULfJ5mpvYhLybmVcwcjGrC1pRrQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@webassemblyjs/ast": "1.14.1",
+ "@webassemblyjs/helper-buffer": "1.14.1",
+ "@webassemblyjs/helper-wasm-bytecode": "1.13.2",
+ "@webassemblyjs/helper-wasm-section": "1.14.1",
+ "@webassemblyjs/wasm-gen": "1.14.1",
+ "@webassemblyjs/wasm-opt": "1.14.1",
+ "@webassemblyjs/wasm-parser": "1.14.1",
+ "@webassemblyjs/wast-printer": "1.14.1"
+ }
+ },
+ "node_modules/@webassemblyjs/wasm-gen": {
+ "version": "1.14.1",
+ "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.14.1.tgz",
+ "integrity": "sha512-AmomSIjP8ZbfGQhumkNvgC33AY7qtMCXnN6bL2u2Js4gVCg8fp735aEiMSBbDR7UQIj90n4wKAFUSEd0QN2Ukg==",
+ "license": "MIT",
+ "dependencies": {
+ "@webassemblyjs/ast": "1.14.1",
+ "@webassemblyjs/helper-wasm-bytecode": "1.13.2",
+ "@webassemblyjs/ieee754": "1.13.2",
+ "@webassemblyjs/leb128": "1.13.2",
+ "@webassemblyjs/utf8": "1.13.2"
+ }
+ },
+ "node_modules/@webassemblyjs/wasm-opt": {
+ "version": "1.14.1",
+ "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.14.1.tgz",
+ "integrity": "sha512-PTcKLUNvBqnY2U6E5bdOQcSM+oVP/PmrDY9NzowJjislEjwP/C4an2303MCVS2Mg9d3AJpIGdUFIQQWbPds0Sw==",
+ "license": "MIT",
+ "dependencies": {
+ "@webassemblyjs/ast": "1.14.1",
+ "@webassemblyjs/helper-buffer": "1.14.1",
+ "@webassemblyjs/wasm-gen": "1.14.1",
+ "@webassemblyjs/wasm-parser": "1.14.1"
+ }
+ },
+ "node_modules/@webassemblyjs/wasm-parser": {
+ "version": "1.14.1",
+ "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.14.1.tgz",
+ "integrity": "sha512-JLBl+KZ0R5qB7mCnud/yyX08jWFw5MsoalJ1pQ4EdFlgj9VdXKGuENGsiCIjegI1W7p91rUlcB/LB5yRJKNTcQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@webassemblyjs/ast": "1.14.1",
+ "@webassemblyjs/helper-api-error": "1.13.2",
+ "@webassemblyjs/helper-wasm-bytecode": "1.13.2",
+ "@webassemblyjs/ieee754": "1.13.2",
+ "@webassemblyjs/leb128": "1.13.2",
+ "@webassemblyjs/utf8": "1.13.2"
+ }
+ },
+ "node_modules/@webassemblyjs/wast-printer": {
+ "version": "1.14.1",
+ "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.14.1.tgz",
+ "integrity": "sha512-kPSSXE6De1XOR820C90RIo2ogvZG+c3KiHzqUoO/F34Y2shGzesfqv7o57xrxovZJH/MetF5UjroJ/R/3isoiw==",
+ "license": "MIT",
+ "dependencies": {
+ "@webassemblyjs/ast": "1.14.1",
+ "@xtuc/long": "4.2.2"
+ }
+ },
+ "node_modules/@xtuc/ieee754": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/@xtuc/ieee754/-/ieee754-1.2.0.tgz",
+ "integrity": "sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA==",
+ "license": "BSD-3-Clause"
+ },
+ "node_modules/@xtuc/long": {
+ "version": "4.2.2",
+ "resolved": "https://registry.npmjs.org/@xtuc/long/-/long-4.2.2.tgz",
+ "integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==",
+ "license": "Apache-2.0"
+ },
+ "node_modules/acorn": {
+ "version": "8.18.0",
+ "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.18.0.tgz",
+ "integrity": "sha512-lGq+9yr1/GuAWaVYIHRjvvySG5/4VfKIvC8EWxStPdcDh/Ka7FG3twP6v4d5BkravUilhIAsG4Qj83t02LWUPQ==",
+ "license": "MIT",
+ "bin": {
+ "acorn": "bin/acorn"
+ },
+ "engines": {
+ "node": ">=0.4.0"
+ }
+ },
+ "node_modules/acorn-import-phases": {
+ "version": "1.0.4",
+ "resolved": "https://registry.npmjs.org/acorn-import-phases/-/acorn-import-phases-1.0.4.tgz",
+ "integrity": "sha512-wKmbr/DDiIXzEOiWrTTUcDm24kQ2vGfZQvM2fwg2vXqR5uW6aapr7ObPtj1th32b9u90/Pf4AItvdTh42fBmVQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=10.13.0"
+ },
+ "peerDependencies": {
+ "acorn": "^8.14.0"
+ }
+ },
+ "node_modules/ajv": {
+ "version": "8.20.0",
+ "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.20.0.tgz",
+ "integrity": "sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA==",
+ "license": "MIT",
+ "dependencies": {
+ "fast-deep-equal": "^3.1.3",
+ "fast-uri": "^3.0.1",
+ "json-schema-traverse": "^1.0.0",
+ "require-from-string": "^2.0.2"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/epoberezkin"
+ }
+ },
+ "node_modules/ajv-formats": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-3.0.1.tgz",
+ "integrity": "sha512-8iUql50EUR+uUcdRQ3HDqa6EVyo3docL8g5WJ3FNcWmu62IbkGUue/pEyLBW8VGKKucTPgqeks4fIU1DA4yowQ==",
+ "license": "MIT",
+ "dependencies": {
+ "ajv": "^8.0.0"
+ },
+ "peerDependencies": {
+ "ajv": "^8.0.0"
+ },
+ "peerDependenciesMeta": {
+ "ajv": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/ajv-keywords": {
+ "version": "5.1.0",
+ "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-5.1.0.tgz",
+ "integrity": "sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw==",
+ "license": "MIT",
+ "dependencies": {
+ "fast-deep-equal": "^3.1.3"
+ },
+ "peerDependencies": {
+ "ajv": "^8.8.2"
+ }
+ },
+ "node_modules/argparse": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz",
+ "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==",
+ "license": "Python-2.0"
+ },
+ "node_modules/ast-types": {
+ "version": "0.16.1",
+ "resolved": "https://registry.npmjs.org/ast-types/-/ast-types-0.16.1.tgz",
+ "integrity": "sha512-6t10qk83GOG8p0vKmaCr8eiilZwO171AvbROMtvvNiwrTly62t+7XkA8RdIIVbpMhCASAsxgAzdRSwh6nw/5Dg==",
+ "license": "MIT",
+ "dependencies": {
+ "tslib": "^2.0.1"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/baseline-browser-mapping": {
+ "version": "2.11.26",
+ "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.11.26.tgz",
+ "integrity": "sha512-GLQdD3y6UF8iVuMJl5fHgE4jdn/ua7n+toKfLgNlg3BqQtOZjpy68T8Tup8/wGWZCDlm7KMg7tPb4MPn7oN0TQ==",
+ "license": "Apache-2.0",
+ "bin": {
+ "baseline-browser-mapping": "dist/cli.cjs"
+ },
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "node_modules/browserslist": {
+ "version": "4.29.1",
+ "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.29.1.tgz",
+ "integrity": "sha512-AUdjuRyCNGUYtqpqfTmWyM4fXay8yIQhmLnvYe/THMGfT9B/34X7xQd3ifKxwyNPPpowVBjLb+64BN9Rn1mizw==",
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/browserslist"
+ },
+ {
+ "type": "tidelift",
+ "url": "https://tidelift.com/funding/github/npm/browserslist"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "baseline-browser-mapping": "^2.11.25",
+ "caniuse-lite": "^1.0.30001810",
+ "electron-to-chromium": "^1.5.438",
+ "node-releases": "^2.0.57",
+ "update-browserslist-db": "^1.3.3"
+ },
+ "bin": {
+ "browserslist": "cli.js"
+ },
+ "engines": {
+ "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7"
+ }
+ },
+ "node_modules/buffer-from": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz",
+ "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==",
+ "license": "MIT"
+ },
+ "node_modules/callsites": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz",
+ "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/camelcase": {
+ "version": "6.3.0",
+ "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz",
+ "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/caniuse-lite": {
+ "version": "1.0.30001812",
+ "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001812.tgz",
+ "integrity": "sha512-qN+QNNBr93TCmFrmte0bBCjSDMuRvt78VlHT99qIGPszm4QsqCX8lnyWUFkHi8B7ZBAPq8SH+UqyXNy/odMdng==",
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/browserslist"
+ },
+ {
+ "type": "tidelift",
+ "url": "https://tidelift.com/funding/github/npm/caniuse-lite"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "CC-BY-4.0"
+ },
+ "node_modules/chrome-trace-event": {
+ "version": "1.0.4",
+ "resolved": "https://registry.npmjs.org/chrome-trace-event/-/chrome-trace-event-1.0.4.tgz",
+ "integrity": "sha512-rNjApaLzuwaOTjCiT8lSDdGN1APCiqkChLMJxJPWLunPAt5fy8xgU9/jNOchV84wfIxrA0lRQB7oCT8jrn/wrQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.0"
+ }
+ },
+ "node_modules/commander": {
+ "version": "2.20.3",
+ "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz",
+ "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==",
+ "license": "MIT"
+ },
+ "node_modules/convert-source-map": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz",
+ "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==",
+ "license": "MIT"
+ },
+ "node_modules/cosmiconfig": {
+ "version": "8.3.6",
+ "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-8.3.6.tgz",
+ "integrity": "sha512-kcZ6+W5QzcJ3P1Mt+83OUv/oHFqZHIx8DuxG6eZ5RGMERoLqp4BuGjhHLYGK+Kf5XVkQvqBSmAy/nGWN3qDgEA==",
+ "license": "MIT",
+ "dependencies": {
+ "import-fresh": "^3.3.0",
+ "js-yaml": "^4.1.0",
+ "parse-json": "^5.2.0",
+ "path-type": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=14"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/d-fischer"
+ },
+ "peerDependencies": {
+ "typescript": ">=4.9.5"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/cross-spawn": {
+ "version": "7.0.6",
+ "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz",
+ "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==",
+ "license": "MIT",
+ "dependencies": {
+ "path-key": "^3.1.0",
+ "shebang-command": "^2.0.0",
+ "which": "^2.0.1"
+ },
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/css-loader": {
+ "version": "7.1.4",
+ "resolved": "https://registry.npmjs.org/css-loader/-/css-loader-7.1.4.tgz",
+ "integrity": "sha512-vv3J9tlOl04WjiMvHQI/9tmIrCxVrj6PFbHemBB1iihpeRbi/I4h033eoFIhwxBBqLhI0KYFS7yvynBFhIZfTw==",
+ "license": "MIT",
+ "dependencies": {
+ "icss-utils": "^5.1.0",
+ "postcss": "^8.4.40",
+ "postcss-modules-extract-imports": "^3.1.0",
+ "postcss-modules-local-by-default": "^4.0.5",
+ "postcss-modules-scope": "^3.2.0",
+ "postcss-modules-values": "^4.0.0",
+ "postcss-value-parser": "^4.2.0",
+ "semver": "^7.6.3"
+ },
+ "engines": {
+ "node": ">= 18.12.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/webpack"
+ },
+ "peerDependencies": {
+ "@rspack/core": "0.x || ^1.0.0 || ^2.0.0-0",
+ "webpack": "^5.27.0"
+ },
+ "peerDependenciesMeta": {
+ "@rspack/core": {
+ "optional": true
+ },
+ "webpack": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/css-loader/node_modules/semver": {
+ "version": "7.8.5",
+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz",
+ "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==",
+ "license": "ISC",
+ "bin": {
+ "semver": "bin/semver.js"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/cssesc": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz",
+ "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==",
+ "license": "MIT",
+ "bin": {
+ "cssesc": "bin/cssesc"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/csstype": {
+ "version": "3.2.3",
+ "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz",
+ "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/debug": {
+ "version": "4.4.3",
+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",
+ "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",
+ "license": "MIT",
+ "dependencies": {
+ "ms": "^2.1.3"
+ },
+ "engines": {
+ "node": ">=6.0"
+ },
+ "peerDependenciesMeta": {
+ "supports-color": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/define-lazy-prop": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-2.0.0.tgz",
+ "integrity": "sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/dot-case": {
+ "version": "3.0.4",
+ "resolved": "https://registry.npmjs.org/dot-case/-/dot-case-3.0.4.tgz",
+ "integrity": "sha512-Kv5nKlh6yRrdrGvxeJ2e5y2eRUpkUosIW4A2AS38zwSz27zu7ufDwQPi5Jhs3XAlGNetl3bmnGhQsMtkKJnj3w==",
+ "license": "MIT",
+ "dependencies": {
+ "no-case": "^3.0.4",
+ "tslib": "^2.0.3"
+ }
+ },
+ "node_modules/dotenv": {
+ "version": "17.3.1",
+ "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-17.3.1.tgz",
+ "integrity": "sha512-IO8C/dzEb6O3F9/twg6ZLXz164a2fhTnEWb95H23Dm4OuN+92NmEAlTrupP9VW6Jm3sO26tQlqyvyi4CsnY9GA==",
+ "license": "BSD-2-Clause",
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://dotenvx.com"
+ }
+ },
+ "node_modules/electron-to-chromium": {
+ "version": "1.5.439",
+ "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.439.tgz",
+ "integrity": "sha512-qu6QIPXhsb+CRcAiTMNjR4A1y/7tCYKkKjr5CZXRVih6qkDf79peZ2BpEU3qoDBNCRrcy3Mra3X9nG5oruuA7Q==",
+ "license": "ISC"
+ },
+ "node_modules/enhanced-resolve": {
+ "version": "5.25.1",
+ "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.25.1.tgz",
+ "integrity": "sha512-nGXts5znJzmWPu+mIE9izCOzdg63oJca2mDzGWWTth7sr4aCToKcoyFVBQwN75Ij5Pf6p510EwkTqViTRzDV+w==",
+ "license": "MIT",
+ "dependencies": {
+ "graceful-fs": "^4.2.4",
+ "tapable": "^2.3.3"
+ },
+ "engines": {
+ "node": ">=10.13.0"
+ }
+ },
+ "node_modules/entities": {
+ "version": "4.5.0",
+ "resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz",
+ "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==",
+ "license": "BSD-2-Clause",
+ "engines": {
+ "node": ">=0.12"
+ },
+ "funding": {
+ "url": "https://github.com/fb55/entities?sponsor=1"
+ }
+ },
+ "node_modules/error-ex": {
+ "version": "1.3.4",
+ "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.4.tgz",
+ "integrity": "sha512-sqQamAnR14VgCr1A618A3sGrygcpK+HEbenA/HiEAkkUwcZIIB/tgWqHFxWgOyDh4nB4JCRimh79dR5Ywc9MDQ==",
+ "license": "MIT",
+ "dependencies": {
+ "is-arrayish": "^0.2.1"
+ }
+ },
+ "node_modules/error-stack-parser": {
+ "version": "2.1.4",
+ "resolved": "https://registry.npmjs.org/error-stack-parser/-/error-stack-parser-2.1.4.tgz",
+ "integrity": "sha512-Sk5V6wVazPhq5MhpO+AUxJn5x7XSXGl1R93Vn7i+zS15KDVxQijejNCrz8340/2bgLBjR9GtEG8ZVKONDjcqGQ==",
+ "license": "MIT",
+ "dependencies": {
+ "stackframe": "^1.3.4"
+ }
+ },
+ "node_modules/es-module-lexer": {
+ "version": "2.3.2",
+ "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-2.3.2.tgz",
+ "integrity": "sha512-poHGpORABojJJucnV9KbOavETW8lBVnphkW77ER5/BQ5Fz7oXSoCNek7IH3vR5nRjdsEz926ibFYX8KtLQmdyw==",
+ "license": "MIT"
+ },
+ "node_modules/esbuild": {
+ "version": "0.28.1",
+ "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.28.1.tgz",
+ "integrity": "sha512-HrJrvZv5ayxBzPfwphOoNzkzOIIlifzk0KJrGK2c8R4+LKpMtpYLQeUdjnwjWv/LZlkH2laZk+4w78pi99D4Vw==",
+ "hasInstallScript": true,
+ "license": "MIT",
+ "bin": {
+ "esbuild": "bin/esbuild"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "optionalDependencies": {
+ "@esbuild/aix-ppc64": "0.28.1",
+ "@esbuild/android-arm": "0.28.1",
+ "@esbuild/android-arm64": "0.28.1",
+ "@esbuild/android-x64": "0.28.1",
+ "@esbuild/darwin-arm64": "0.28.1",
+ "@esbuild/darwin-x64": "0.28.1",
+ "@esbuild/freebsd-arm64": "0.28.1",
+ "@esbuild/freebsd-x64": "0.28.1",
+ "@esbuild/linux-arm": "0.28.1",
+ "@esbuild/linux-arm64": "0.28.1",
+ "@esbuild/linux-ia32": "0.28.1",
+ "@esbuild/linux-loong64": "0.28.1",
+ "@esbuild/linux-mips64el": "0.28.1",
+ "@esbuild/linux-ppc64": "0.28.1",
+ "@esbuild/linux-riscv64": "0.28.1",
+ "@esbuild/linux-s390x": "0.28.1",
+ "@esbuild/linux-x64": "0.28.1",
+ "@esbuild/netbsd-arm64": "0.28.1",
+ "@esbuild/netbsd-x64": "0.28.1",
+ "@esbuild/openbsd-arm64": "0.28.1",
+ "@esbuild/openbsd-x64": "0.28.1",
+ "@esbuild/openharmony-arm64": "0.28.1",
+ "@esbuild/sunos-x64": "0.28.1",
+ "@esbuild/win32-arm64": "0.28.1",
+ "@esbuild/win32-ia32": "0.28.1",
+ "@esbuild/win32-x64": "0.28.1"
+ }
+ },
+ "node_modules/escalade": {
+ "version": "3.2.0",
+ "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz",
+ "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/eslint-scope": {
+ "version": "5.1.1",
+ "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz",
+ "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==",
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "esrecurse": "^4.3.0",
+ "estraverse": "^4.1.1"
+ },
+ "engines": {
+ "node": ">=8.0.0"
+ }
+ },
+ "node_modules/esprima": {
+ "version": "4.0.1",
+ "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz",
+ "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==",
+ "license": "BSD-2-Clause",
+ "bin": {
+ "esparse": "bin/esparse.js",
+ "esvalidate": "bin/esvalidate.js"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/esrecurse": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz",
+ "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==",
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "estraverse": "^5.2.0"
+ },
+ "engines": {
+ "node": ">=4.0"
+ }
+ },
+ "node_modules/esrecurse/node_modules/estraverse": {
+ "version": "5.3.0",
+ "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz",
+ "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==",
+ "license": "BSD-2-Clause",
+ "engines": {
+ "node": ">=4.0"
+ }
+ },
+ "node_modules/estraverse": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz",
+ "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==",
+ "license": "BSD-2-Clause",
+ "engines": {
+ "node": ">=4.0"
+ }
+ },
+ "node_modules/events": {
+ "version": "3.3.0",
+ "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz",
+ "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.8.x"
+ }
+ },
+ "node_modules/execa": {
+ "version": "5.1.1",
+ "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz",
+ "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==",
+ "license": "MIT",
+ "dependencies": {
+ "cross-spawn": "^7.0.3",
+ "get-stream": "^6.0.0",
+ "human-signals": "^2.1.0",
+ "is-stream": "^2.0.0",
+ "merge-stream": "^2.0.0",
+ "npm-run-path": "^4.0.1",
+ "onetime": "^5.1.2",
+ "signal-exit": "^3.0.3",
+ "strip-final-newline": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sindresorhus/execa?sponsor=1"
+ }
+ },
+ "node_modules/fast-deep-equal": {
+ "version": "3.1.3",
+ "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz",
+ "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==",
+ "license": "MIT"
+ },
+ "node_modules/fast-uri": {
+ "version": "3.1.8",
+ "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.8.tgz",
+ "integrity": "sha512-GZMtZUTNRpOVIECoXwLNZS5xUGE+mVNbTB8h/7Rwh2TFWcBQiPzTgyZi05BF9UMZKkLJv8XBRJTlU7zg8+ZfMg==",
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/fastify"
+ },
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/fastify"
+ }
+ ],
+ "license": "BSD-3-Clause"
+ },
+ "node_modules/fs-monkey": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmjs.org/fs-monkey/-/fs-monkey-1.0.3.tgz",
+ "integrity": "sha512-cybjIfiiE+pTWicSCLFHSrXZ6EilF30oh91FDP9S2B051prEa7QWfrVTQm10/dDpswBDXZugPa1Ogu8Yh+HV0Q==",
+ "license": "Unlicense"
+ },
+ "node_modules/gensync": {
+ "version": "1.0.0-beta.2",
+ "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz",
+ "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/get-stream": {
+ "version": "6.0.1",
+ "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz",
+ "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/glob-to-regexp": {
+ "version": "0.4.1",
+ "resolved": "https://registry.npmjs.org/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz",
+ "integrity": "sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==",
+ "license": "BSD-2-Clause"
+ },
+ "node_modules/graceful-fs": {
+ "version": "4.2.11",
+ "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz",
+ "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==",
+ "license": "ISC"
+ },
+ "node_modules/has-flag": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
+ "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/html-entities": {
+ "version": "2.6.0",
+ "resolved": "https://registry.npmjs.org/html-entities/-/html-entities-2.6.0.tgz",
+ "integrity": "sha512-kig+rMn/QOVRvr7c86gQ8lWXq+Hkv6CbAH1hLu+RG338StTpE8Z0b44SDVaqVu7HGKf27frdmUYEs9hTUX/cLQ==",
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/mdevils"
+ },
+ {
+ "type": "patreon",
+ "url": "https://patreon.com/mdevils"
+ }
+ ],
+ "license": "MIT"
+ },
+ "node_modules/human-signals": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz",
+ "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==",
+ "license": "Apache-2.0",
+ "engines": {
+ "node": ">=10.17.0"
+ }
+ },
+ "node_modules/icss-utils": {
+ "version": "5.1.0",
+ "resolved": "https://registry.npmjs.org/icss-utils/-/icss-utils-5.1.0.tgz",
+ "integrity": "sha512-soFhflCVWLfRNOPU3iv5Z9VUdT44xFRbzjLsEzSr5AQmgqPMTHdU3PMT1Cf1ssx8fLNJDA1juftYl+PUcv3MqA==",
+ "license": "ISC",
+ "engines": {
+ "node": "^10 || ^12 || >= 14"
+ },
+ "peerDependencies": {
+ "postcss": "^8.1.0"
+ }
+ },
+ "node_modules/import-fresh": {
+ "version": "3.3.1",
+ "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.1.tgz",
+ "integrity": "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==",
+ "license": "MIT",
+ "dependencies": {
+ "parent-module": "^1.0.0",
+ "resolve-from": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=6"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/is-arrayish": {
+ "version": "0.2.1",
+ "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz",
+ "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==",
+ "license": "MIT"
+ },
+ "node_modules/is-docker": {
+ "version": "2.2.1",
+ "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz",
+ "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==",
+ "license": "MIT",
+ "bin": {
+ "is-docker": "cli.js"
+ },
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/is-stream": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz",
+ "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/is-wsl": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz",
+ "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==",
+ "license": "MIT",
+ "dependencies": {
+ "is-docker": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/isexe": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",
+ "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==",
+ "license": "ISC"
+ },
+ "node_modules/jest-worker": {
+ "version": "27.5.1",
+ "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.5.1.tgz",
+ "integrity": "sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/node": "*",
+ "merge-stream": "^2.0.0",
+ "supports-color": "^8.0.0"
+ },
+ "engines": {
+ "node": ">= 10.13.0"
+ }
+ },
+ "node_modules/js-tokens": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",
+ "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==",
+ "license": "MIT"
+ },
+ "node_modules/js-yaml": {
+ "version": "4.3.2",
+ "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.3.2.tgz",
+ "integrity": "sha512-SFNOvSJ+Dgf/9An904Yx+CgSlIPCkIpao4qo51lpee25TIRejdH3rhR4EZMGoNx3/TP3O+wzWuiTFl4sqbltzA==",
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/puzrin"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/nodeca"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "argparse": "^2.0.1"
+ },
+ "bin": {
+ "js-yaml": "bin/js-yaml.js"
+ }
+ },
+ "node_modules/jsesc": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz",
+ "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==",
+ "license": "MIT",
+ "bin": {
+ "jsesc": "bin/jsesc"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/json-parse-even-better-errors": {
+ "version": "2.3.1",
+ "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz",
+ "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==",
+ "license": "MIT"
+ },
+ "node_modules/json-schema-traverse": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz",
+ "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==",
+ "license": "MIT"
+ },
+ "node_modules/json5": {
+ "version": "2.2.3",
+ "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz",
+ "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==",
+ "license": "MIT",
+ "bin": {
+ "json5": "lib/cli.js"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/kiwi-schema": {
+ "version": "0.5.0",
+ "resolved": "https://registry.npmjs.org/kiwi-schema/-/kiwi-schema-0.5.0.tgz",
+ "integrity": "sha512-X+FpfU0yTEtc6aTHS7VwbOpvQwRt70+pXXWRI5fd6CvWhe7pSVC854TVo4Zo0x5/wwcWj+/9KUlXpdcP0dY9AA==",
+ "license": "MIT",
+ "bin": {
+ "kiwic": "cli.js"
+ }
+ },
+ "node_modules/kleur": {
+ "version": "3.0.3",
+ "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz",
+ "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/lines-and-columns": {
+ "version": "1.2.4",
+ "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz",
+ "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==",
+ "license": "MIT"
+ },
+ "node_modules/loader-runner": {
+ "version": "4.3.2",
+ "resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-4.3.2.tgz",
+ "integrity": "sha512-DFEqQ3ihfS9blba08cLfYf1NRAIEm+dDjic073DRDc3/JspI/8wYmtDsHwd3+4hwvdxSK7PGaElfTmm0awWJ4w==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.11.5"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/webpack"
+ }
+ },
+ "node_modules/lower-case": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/lower-case/-/lower-case-2.0.2.tgz",
+ "integrity": "sha512-7fm3l3NAF9WfN6W3JOmf5drwpVqX78JtoGJ3A6W0a6ZnldM41w2fV5D490psKFTpMds8TJse/eHLFFsNHHjHgg==",
+ "license": "MIT",
+ "dependencies": {
+ "tslib": "^2.0.3"
+ }
+ },
+ "node_modules/lru-cache": {
+ "version": "5.1.1",
+ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz",
+ "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==",
+ "license": "ISC",
+ "dependencies": {
+ "yallist": "^3.0.2"
+ }
+ },
+ "node_modules/mediabunny": {
+ "version": "1.56.1",
+ "resolved": "https://registry.npmjs.org/mediabunny/-/mediabunny-1.56.1.tgz",
+ "integrity": "sha512-DNOm0bRBmeOxJgCK/g3LxNWbxY5morTauNdlychujGmJ9L37ezVezkNoI1WtO2Xdb4WlWWJlYfIKnOEzd5phRw==",
+ "license": "MPL-2.0",
+ "workspaces": [
+ ".",
+ "packages/*"
+ ],
+ "dependencies": {
+ "@types/dom-mediacapture-transform": "^0.1.11",
+ "@types/dom-webcodecs": "0.1.13"
+ },
+ "funding": {
+ "type": "individual",
+ "url": "https://github.com/sponsors/Vanilagy"
+ }
+ },
+ "node_modules/memfs": {
+ "version": "3.4.3",
+ "resolved": "https://registry.npmjs.org/memfs/-/memfs-3.4.3.tgz",
+ "integrity": "sha512-eivjfi7Ahr6eQTn44nvTnR60e4a1Fs1Via2kCR5lHo/kyNoiMWaXCNJ/GpSd0ilXas2JSOl9B5FTIhflXu0hlg==",
+ "license": "Unlicense",
+ "dependencies": {
+ "fs-monkey": "1.0.3"
+ },
+ "engines": {
+ "node": ">= 4.0.0"
+ }
+ },
+ "node_modules/merge-stream": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz",
+ "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==",
+ "license": "MIT"
+ },
+ "node_modules/mime-db": {
+ "version": "1.52.0",
+ "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",
+ "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/mime-types": {
+ "version": "2.1.35",
+ "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz",
+ "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",
+ "license": "MIT",
+ "dependencies": {
+ "mime-db": "1.52.0"
+ },
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/mimic-fn": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz",
+ "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/minimist": {
+ "version": "1.2.6",
+ "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.6.tgz",
+ "integrity": "sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==",
+ "license": "MIT"
+ },
+ "node_modules/ms": {
+ "version": "2.1.3",
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
+ "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
+ "license": "MIT"
+ },
+ "node_modules/nanoid": {
+ "version": "3.3.19",
+ "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.19.tgz",
+ "integrity": "sha512-Y2tUNy4ouw6tq5oDSKeQYGOyhkUBhNOcGV/02KC+6kd9eDGqdZd++mjMiIDilrBYvjEnCYvVtsuHCuP+okSfug==",
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "MIT",
+ "bin": {
+ "nanoid": "bin/nanoid.cjs"
+ },
+ "engines": {
+ "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"
+ }
+ },
+ "node_modules/neo-async": {
+ "version": "2.6.2",
+ "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz",
+ "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==",
+ "license": "MIT"
+ },
+ "node_modules/no-case": {
+ "version": "3.0.4",
+ "resolved": "https://registry.npmjs.org/no-case/-/no-case-3.0.4.tgz",
+ "integrity": "sha512-fgAN3jGAh+RoxUGZHTSOLJIqUc2wmoBwGR4tbpNAKmmovFoWq0OdRkb0VkldReO2a2iBT/OEulG9XSUc10r3zg==",
+ "license": "MIT",
+ "dependencies": {
+ "lower-case": "^2.0.2",
+ "tslib": "^2.0.3"
+ }
+ },
+ "node_modules/node-releases": {
+ "version": "2.0.57",
+ "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.57.tgz",
+ "integrity": "sha512-kQK9LGGFiHtrWiNhZtA7Qbw17AQz+dmsEKODRIVTXA9+e5MS/2gZEBhYJt13GrAz5/IOZKddH/0Z3TP/Zgo+yw==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/npm-run-path": {
+ "version": "4.0.1",
+ "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz",
+ "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==",
+ "license": "MIT",
+ "dependencies": {
+ "path-key": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/onetime": {
+ "version": "5.1.2",
+ "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz",
+ "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==",
+ "license": "MIT",
+ "dependencies": {
+ "mimic-fn": "^2.1.0"
+ },
+ "engines": {
+ "node": ">=6"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/open": {
+ "version": "8.4.2",
+ "resolved": "https://registry.npmjs.org/open/-/open-8.4.2.tgz",
+ "integrity": "sha512-7x81NCL719oNbsq/3mh+hVrAWmFuEYUqrq/Iw3kUzH8ReypT9QQ0BLoJS7/G9k6N81XjW4qHWtjWwe/9eLy1EQ==",
+ "license": "MIT",
+ "dependencies": {
+ "define-lazy-prop": "^2.0.0",
+ "is-docker": "^2.1.1",
+ "is-wsl": "^2.2.0"
+ },
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/parent-module": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz",
+ "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==",
+ "license": "MIT",
+ "dependencies": {
+ "callsites": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/parse-json": {
+ "version": "5.2.0",
+ "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz",
+ "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/code-frame": "^7.0.0",
+ "error-ex": "^1.3.1",
+ "json-parse-even-better-errors": "^2.3.0",
+ "lines-and-columns": "^1.1.6"
+ },
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/path-key": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz",
+ "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/path-type": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz",
+ "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/picocolors": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz",
+ "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==",
+ "license": "ISC"
+ },
+ "node_modules/postcss": {
+ "version": "8.5.28",
+ "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.28.tgz",
+ "integrity": "sha512-RRuzqDtt5Y9h3quz5hWhK+TPnsmVs6WwSU6LkJMeY4HstUEDuYTG8UJSdawMRzmzAtV+KEoG8N3Qg2qLy5vM/A==",
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/postcss/"
+ },
+ {
+ "type": "tidelift",
+ "url": "https://tidelift.com/funding/github/npm/postcss"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "nanoid": "^3.3.18",
+ "picocolors": "^1.1.1",
+ "source-map-js": "^1.2.1"
+ },
+ "engines": {
+ "node": "^10 || ^12 || >=14"
+ }
+ },
+ "node_modules/postcss-modules-extract-imports": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/postcss-modules-extract-imports/-/postcss-modules-extract-imports-3.1.0.tgz",
+ "integrity": "sha512-k3kNe0aNFQDAZGbin48pL2VNidTF0w4/eASDsxlyspobzU3wZQLOGj7L9gfRe0Jo9/4uud09DsjFNH7winGv8Q==",
+ "license": "ISC",
+ "engines": {
+ "node": "^10 || ^12 || >= 14"
+ },
+ "peerDependencies": {
+ "postcss": "^8.1.0"
+ }
+ },
+ "node_modules/postcss-modules-local-by-default": {
+ "version": "4.2.0",
+ "resolved": "https://registry.npmjs.org/postcss-modules-local-by-default/-/postcss-modules-local-by-default-4.2.0.tgz",
+ "integrity": "sha512-5kcJm/zk+GJDSfw+V/42fJ5fhjL5YbFDl8nVdXkJPLLW+Vf9mTD5Xe0wqIaDnLuL2U6cDNpTr+UQ+v2HWIBhzw==",
+ "license": "MIT",
+ "dependencies": {
+ "icss-utils": "^5.0.0",
+ "postcss-selector-parser": "^7.0.0",
+ "postcss-value-parser": "^4.1.0"
+ },
+ "engines": {
+ "node": "^10 || ^12 || >= 14"
+ },
+ "peerDependencies": {
+ "postcss": "^8.1.0"
+ }
+ },
+ "node_modules/postcss-modules-scope": {
+ "version": "3.2.1",
+ "resolved": "https://registry.npmjs.org/postcss-modules-scope/-/postcss-modules-scope-3.2.1.tgz",
+ "integrity": "sha512-m9jZstCVaqGjTAuny8MdgE88scJnCiQSlSrOWcTQgM2t32UBe+MUmFSO5t7VMSfAf/FJKImAxBav8ooCHJXCJA==",
+ "license": "ISC",
+ "dependencies": {
+ "postcss-selector-parser": "^7.0.0"
+ },
+ "engines": {
+ "node": "^10 || ^12 || >= 14"
+ },
+ "peerDependencies": {
+ "postcss": "^8.1.0"
+ }
+ },
+ "node_modules/postcss-modules-values": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/postcss-modules-values/-/postcss-modules-values-4.0.0.tgz",
+ "integrity": "sha512-RDxHkAiEGI78gS2ofyvCsu7iycRv7oqw5xMWn9iMoR0N/7mf9D50ecQqUo5BZ9Zh2vH4bCUR/ktCqbB9m8vJjQ==",
+ "license": "ISC",
+ "dependencies": {
+ "icss-utils": "^5.0.0"
+ },
+ "engines": {
+ "node": "^10 || ^12 || >= 14"
+ },
+ "peerDependencies": {
+ "postcss": "^8.1.0"
+ }
+ },
+ "node_modules/postcss-selector-parser": {
+ "version": "7.1.6",
+ "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-7.1.6.tgz",
+ "integrity": "sha512-7qASPzhKF2l2KLboRZux8CCTRMdGiV08vWmyKzPz22qZ7ZjQBOeY7rNzNoCLSUiftJ7HUq0GERHmxw/t0dCdMw==",
+ "license": "MIT",
+ "dependencies": {
+ "cssesc": "^3.0.0",
+ "util-deprecate": "^1.0.2"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/postcss-value-parser": {
+ "version": "4.2.0",
+ "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz",
+ "integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==",
+ "license": "MIT"
+ },
+ "node_modules/prismjs": {
+ "version": "1.30.0",
+ "resolved": "https://registry.npmjs.org/prismjs/-/prismjs-1.30.0.tgz",
+ "integrity": "sha512-DEvV2ZF2r2/63V+tK8hQvrR2ZGn10srHbXviTlcv7Kpzw8jWiNTqbVgjO3IY8RxrrOUF8VPMQQFysYYYv0YZxw==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/prompts": {
+ "version": "2.4.2",
+ "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz",
+ "integrity": "sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==",
+ "license": "MIT",
+ "dependencies": {
+ "kleur": "^3.0.3",
+ "sisteransi": "^1.0.5"
+ },
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/react": {
+ "version": "19.2.0",
+ "resolved": "https://registry.npmjs.org/react/-/react-19.2.0.tgz",
+ "integrity": "sha512-tmbWg6W31tQLeB5cdIBOicJDJRR2KzXsV7uSK9iNfLWQ5bIZfxuPEHp7M8wiHyHnn0DD1i7w3Zmin0FtkrwoCQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/react-dom": {
+ "version": "19.2.0",
+ "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.2.0.tgz",
+ "integrity": "sha512-UlbRu4cAiGaIewkPyiRGJk0imDN2T3JjieT6spoL2UeSf5od4n5LB/mQ4ejmxhCFT1tYe8IvaFulzynWovsEFQ==",
+ "license": "MIT",
+ "dependencies": {
+ "scheduler": "^0.27.0"
+ },
+ "peerDependencies": {
+ "react": "^19.2.0"
+ }
+ },
+ "node_modules/react-refresh": {
+ "version": "0.18.0",
+ "resolved": "https://registry.npmjs.org/react-refresh/-/react-refresh-0.18.0.tgz",
+ "integrity": "sha512-QgT5//D3jfjJb6Gsjxv0Slpj23ip+HtOpnNgnb2S5zU3CB26G/IDPGoy4RJB42wzFE46DRsstbW6tKHoKbhAxw==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/recast": {
+ "version": "0.23.21",
+ "resolved": "https://registry.npmjs.org/recast/-/recast-0.23.21.tgz",
+ "integrity": "sha512-mFAyJq9vUbSTARLZUvAEf1z3YxlvAwswbmxMx2mPA/MSm4KmpwvwvhsH/NIrZhyOuwD60Lzyw2qh83uCbgTPYw==",
+ "license": "MIT",
+ "dependencies": {
+ "ast-types": "^0.16.1",
+ "esprima": "~4.0.0",
+ "source-map": "~0.6.1",
+ "tiny-invariant": "^1.3.3",
+ "tslib": "^2.0.1"
+ },
+ "engines": {
+ "node": ">= 4"
+ }
+ },
+ "node_modules/recast/node_modules/source-map": {
+ "version": "0.6.1",
+ "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
+ "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",
+ "license": "BSD-3-Clause",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/remotion": {
+ "version": "4.0.529",
+ "resolved": "https://registry.npmjs.org/remotion/-/remotion-4.0.529.tgz",
+ "integrity": "sha512-x0oWWwPPiC5cV6ms80USr69GmtbHc3MK5eFTwJpP0oN+emvgtvq+flovERaN29jy0wJW/ZGemSwo119iGCiH0g==",
+ "license": "SEE LICENSE IN LICENSE.md",
+ "peerDependencies": {
+ "react": ">=16.8.0",
+ "react-dom": ">=16.8.0"
+ }
+ },
+ "node_modules/require-from-string": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz",
+ "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/resolve-from": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz",
+ "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/scheduler": {
+ "version": "0.27.0",
+ "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.27.0.tgz",
+ "integrity": "sha512-eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q==",
+ "license": "MIT"
+ },
+ "node_modules/schema-utils": {
+ "version": "4.5.0",
+ "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.5.0.tgz",
+ "integrity": "sha512-zJlMCZ0cAR5p/Y4oVpRoqioDMJcGxaXRrQ/4rP4WyR84vc5z/DolXdbvXeDpTwbtocDFr2rhPqHPErDCUtz2kA==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/json-schema": "^7.0.15",
+ "ajv": "^8.20.0",
+ "ajv-formats": "^3.0.1",
+ "ajv-keywords": "^5.1.0"
+ },
+ "engines": {
+ "node": ">= 10.13.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/webpack"
+ }
+ },
+ "node_modules/semver": {
+ "version": "7.5.3",
+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.3.tgz",
+ "integrity": "sha512-QBlUtyVk/5EeHbi7X0fw6liDZc7BBmEaSYn01fMU1OUYbf6GPsbTtd8WmnqbI20SeycoHSeiybkE/q1Q+qlThQ==",
+ "license": "ISC",
+ "dependencies": {
+ "lru-cache": "^6.0.0"
+ },
+ "bin": {
+ "semver": "bin/semver.js"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/semver/node_modules/lru-cache": {
+ "version": "6.0.0",
+ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz",
+ "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==",
+ "license": "ISC",
+ "dependencies": {
+ "yallist": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/semver/node_modules/yallist": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz",
+ "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==",
+ "license": "ISC"
+ },
+ "node_modules/shebang-command": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz",
+ "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==",
+ "license": "MIT",
+ "dependencies": {
+ "shebang-regex": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/shebang-regex": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz",
+ "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/signal-exit": {
+ "version": "3.0.7",
+ "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz",
+ "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==",
+ "license": "ISC"
+ },
+ "node_modules/sisteransi": {
+ "version": "1.0.5",
+ "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz",
+ "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==",
+ "license": "MIT"
+ },
+ "node_modules/snake-case": {
+ "version": "3.0.4",
+ "resolved": "https://registry.npmjs.org/snake-case/-/snake-case-3.0.4.tgz",
+ "integrity": "sha512-LAOh4z89bGQvl9pFfNF8V146i7o7/CqFPbqzYgP+yYzDIDeS9HaNFtXABamRW+AQzEVODcvE79ljJ+8a9YSdMg==",
+ "license": "MIT",
+ "dependencies": {
+ "dot-case": "^3.0.4",
+ "tslib": "^2.0.3"
+ }
+ },
+ "node_modules/source-map": {
+ "version": "0.8.0",
+ "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.8.0.tgz",
+ "integrity": "sha512-d8EqvL+k/SOXCreS/SUzg2ciyHqBBLcN/yuRjFsbvVhHTE2pgei7oAhmPM7kWFbkX6OSMQfUq4KbkF3au9lhYQ==",
+ "license": "BSD-3-Clause",
+ "engines": {
+ "node": ">= 12"
+ }
+ },
+ "node_modules/source-map-js": {
+ "version": "1.2.1",
+ "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz",
+ "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==",
+ "license": "BSD-3-Clause",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/source-map-support": {
+ "version": "0.5.21",
+ "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz",
+ "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==",
+ "license": "MIT",
+ "dependencies": {
+ "buffer-from": "^1.0.0",
+ "source-map": "^0.6.0"
+ }
+ },
+ "node_modules/source-map-support/node_modules/source-map": {
+ "version": "0.6.1",
+ "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
+ "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",
+ "license": "BSD-3-Clause",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/stackframe": {
+ "version": "1.3.4",
+ "resolved": "https://registry.npmjs.org/stackframe/-/stackframe-1.3.4.tgz",
+ "integrity": "sha512-oeVtt7eWQS+Na6F//S4kJ2K2VbRlS9D43mAlMyVpVWovy9o+jfgH8O9agzANzaiLjclA0oYzUXEM4PurhSUChw==",
+ "license": "MIT"
+ },
+ "node_modules/strip-final-newline": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz",
+ "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/style-loader": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/style-loader/-/style-loader-4.0.0.tgz",
+ "integrity": "sha512-1V4WqhhZZgjVAVJyt7TdDPZoPBPNHbekX4fWnCJL1yQukhCeZhJySUL+gL9y6sNdN95uEOS83Y55SqHcP7MzLA==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 18.12.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/webpack"
+ },
+ "peerDependencies": {
+ "webpack": "^5.27.0"
+ }
+ },
+ "node_modules/supports-color": {
+ "version": "8.1.1",
+ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz",
+ "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==",
+ "license": "MIT",
+ "dependencies": {
+ "has-flag": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/supports-color?sponsor=1"
+ }
+ },
+ "node_modules/svg-parser": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/svg-parser/-/svg-parser-2.1.0.tgz",
+ "integrity": "sha512-bwLf38YmY+TDYHJw1Ex0Co8c4yeXuJAo8YnXGZrscxrvYoVVIvLeniEkV1Ks/54VteMnL4FtyN1+P+TZJdUPmQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/tapable": {
+ "version": "2.3.3",
+ "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.3.3.tgz",
+ "integrity": "sha512-uxc/zpqFg6x7C8vOE7lh6Lbda8eEL9zmVm/PLeTPBRhh1xCgdWaQ+J1CUieGpIfm2HdtsUpRv+HshiasBMcc6A==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/webpack"
+ }
+ },
+ "node_modules/terser": {
+ "version": "5.51.2",
+ "resolved": "https://registry.npmjs.org/terser/-/terser-5.51.2.tgz",
+ "integrity": "sha512-bWnjSNscmuI+GJze6ZupnHP8G/cTcsJF+bXCeQknk2SHQsgbNJnLrqiH9jZ2W4STPVXH2mDKKRX3iwPhc9Cn/Q==",
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "@jridgewell/source-map": "^0.3.3",
+ "acorn": "^8.15.0",
+ "commander": "^2.20.0",
+ "source-map-support": "~0.5.20"
+ },
+ "bin": {
+ "terser": "bin/terser"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/terser-webpack-plugin": {
+ "version": "5.6.1",
+ "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.6.1.tgz",
+ "integrity": "sha512-201R5j+sJpK8nFWwKVyNfZot8FaJbLZDq5evriVzbV1wDtSXDjRUDRfJzHpAaxFDMEhsZL1QkeqM61wgsS3KaQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@jridgewell/trace-mapping": "^0.3.25",
+ "jest-worker": "^27.4.5",
+ "schema-utils": "^4.3.0",
+ "terser": "^5.31.1"
+ },
+ "engines": {
+ "node": ">= 10.13.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/webpack"
+ },
+ "peerDependencies": {
+ "webpack": "^5.1.0"
+ },
+ "peerDependenciesMeta": {
+ "@minify-html/node": {
+ "optional": true
+ },
+ "@swc/core": {
+ "optional": true
+ },
+ "@swc/css": {
+ "optional": true
+ },
+ "@swc/html": {
+ "optional": true
+ },
+ "clean-css": {
+ "optional": true
+ },
+ "cssnano": {
+ "optional": true
+ },
+ "csso": {
+ "optional": true
+ },
+ "esbuild": {
+ "optional": true
+ },
+ "html-minifier-terser": {
+ "optional": true
+ },
+ "lightningcss": {
+ "optional": true
+ },
+ "postcss": {
+ "optional": true
+ },
+ "uglify-js": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/tiny-invariant": {
+ "version": "1.3.3",
+ "resolved": "https://registry.npmjs.org/tiny-invariant/-/tiny-invariant-1.3.3.tgz",
+ "integrity": "sha512-+FbBPE1o9QAYvviau/qC5SE3caw21q3xkvWKBtja5vgqOWIHHJ3ioaq1VPfn/Szqctz2bU/oYeKd9/z5BL+PVg==",
+ "license": "MIT"
+ },
+ "node_modules/to-fast-properties": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz",
+ "integrity": "sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/tslib": {
+ "version": "2.8.1",
+ "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz",
+ "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==",
+ "license": "0BSD"
+ },
+ "node_modules/typescript": {
+ "version": "5.9.3",
+ "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz",
+ "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==",
+ "devOptional": true,
+ "license": "Apache-2.0",
+ "bin": {
+ "tsc": "bin/tsc",
+ "tsserver": "bin/tsserver"
+ },
+ "engines": {
+ "node": ">=14.17"
+ }
+ },
+ "node_modules/undici-types": {
+ "version": "8.9.0",
+ "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-8.9.0.tgz",
+ "integrity": "sha512-KTDyRTYX8sWmKXAikPHHSyc63CRPETMctyjKFupcC6OBLXT3xsN0e9aF7m+mIXutFWpUXuedtowG7iLOzp0kQg==",
+ "license": "MIT"
+ },
+ "node_modules/update-browserslist-db": {
+ "version": "1.3.3",
+ "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.3.3.tgz",
+ "integrity": "sha512-pJ2sYawQS0R/WI928Gj5GlPhTGzbMelq0+4INtSYNDV9ErKJcX6xjGWkoG/VnB3dpUm00zALaqkrUD77pO5TDQ==",
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/browserslist"
+ },
+ {
+ "type": "tidelift",
+ "url": "https://tidelift.com/funding/github/npm/browserslist"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "escalade": "^3.2.0",
+ "picocolors": "^1.1.1"
+ },
+ "bin": {
+ "update-browserslist-db": "cli.js"
+ },
+ "peerDependencies": {
+ "browserslist": ">= 4.21.0"
+ }
+ },
+ "node_modules/util-deprecate": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
+ "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==",
+ "license": "MIT"
+ },
+ "node_modules/watchpack": {
+ "version": "2.5.2",
+ "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.5.2.tgz",
+ "integrity": "sha512-6i/00NBjP4yGPs+caKSyRfpTF/8Torsu0MOW3mMzIbhgISFder8i7xbqgHlLMwJrdiN8ndBV3UA1/AfzPSr+jg==",
+ "license": "MIT",
+ "dependencies": {
+ "graceful-fs": "^4.1.2"
+ },
+ "engines": {
+ "node": ">=10.13.0"
+ }
+ },
+ "node_modules/webpack": {
+ "version": "5.105.0",
+ "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.105.0.tgz",
+ "integrity": "sha512-gX/dMkRQc7QOMzgTe6KsYFM7DxeIONQSui1s0n/0xht36HvrgbxtM1xBlgx596NbpHuQU8P7QpKwrZYwUX48nw==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/eslint-scope": "^3.7.7",
+ "@types/estree": "^1.0.8",
+ "@types/json-schema": "^7.0.15",
+ "@webassemblyjs/ast": "^1.14.1",
+ "@webassemblyjs/wasm-edit": "^1.14.1",
+ "@webassemblyjs/wasm-parser": "^1.14.1",
+ "acorn": "^8.15.0",
+ "acorn-import-phases": "^1.0.3",
+ "browserslist": "^4.28.1",
+ "chrome-trace-event": "^1.0.2",
+ "enhanced-resolve": "^5.19.0",
+ "es-module-lexer": "^2.0.0",
+ "eslint-scope": "5.1.1",
+ "events": "^3.2.0",
+ "glob-to-regexp": "^0.4.1",
+ "graceful-fs": "^4.2.11",
+ "json-parse-even-better-errors": "^2.3.1",
+ "loader-runner": "^4.3.1",
+ "mime-types": "^2.1.27",
+ "neo-async": "^2.6.2",
+ "schema-utils": "^4.3.3",
+ "tapable": "^2.3.0",
+ "terser-webpack-plugin": "^5.3.16",
+ "watchpack": "^2.5.1",
+ "webpack-sources": "^3.3.3"
+ },
+ "bin": {
+ "webpack": "bin/webpack.js"
+ },
+ "engines": {
+ "node": ">=10.13.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/webpack"
+ },
+ "peerDependenciesMeta": {
+ "webpack-cli": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/webpack-sources": {
+ "version": "3.6.0",
+ "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.6.0.tgz",
+ "integrity": "sha512-EIMmPVvNI0CYXyRPp34F2Qk7W37/BZVZIofS6LAUnrNjCVahS+hO4mxwFJDjQjODTGZDtVzLYoN2+1dYkhk9qA==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=10.13.0"
+ }
+ },
+ "node_modules/which": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",
+ "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",
+ "license": "ISC",
+ "dependencies": {
+ "isexe": "^2.0.0"
+ },
+ "bin": {
+ "node-which": "bin/node-which"
+ },
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/ws": {
+ "version": "8.21.0",
+ "resolved": "https://registry.npmjs.org/ws/-/ws-8.21.0.tgz",
+ "integrity": "sha512-Vsp28b7DRcimFQvrqu2Wek3z1iYxDCWqHYB8Qsnk/S4RfaCQzPGPyBNuVjJV3cd6UiKtUtp6sNM77gWvzcCH+g==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=10.0.0"
+ },
+ "peerDependencies": {
+ "bufferutil": "^4.0.1",
+ "utf-8-validate": ">=5.0.2"
+ },
+ "peerDependenciesMeta": {
+ "bufferutil": {
+ "optional": true
+ },
+ "utf-8-validate": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/yallist": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz",
+ "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==",
+ "license": "ISC"
+ },
+ "node_modules/zod": {
+ "version": "4.5.4",
+ "resolved": "https://registry.npmjs.org/zod/-/zod-4.5.4.tgz",
+ "integrity": "sha512-sC95tT5iHHH9gtpj6A81kh+NEaRAUFN+qlUPDUbRfOMvNf5QCBqsb3WgvnpVtK5Y+4UfA6KqufotuTvMGiTlsA==",
+ "license": "MIT",
+ "funding": {
+ "url": "https://github.com/sponsors/colinhacks"
+ }
+ }
+ }
+}
diff --git a/render-bench/vs-remotion/remotion/package.json b/render-bench/vs-remotion/remotion/package.json
new file mode 100644
index 00000000..bf4e730b
--- /dev/null
+++ b/render-bench/vs-remotion/remotion/package.json
@@ -0,0 +1,19 @@
+{
+ "name": "remotion-text-bench",
+ "private": true,
+ "version": "0.0.0",
+ "scripts": {
+ "render": "remotion render src/index.ts TextGrid out/remotion.mp4 --codec=h264"
+ },
+ "dependencies": {
+ "@remotion/cli": "4.0.529",
+ "@remotion/fonts": "4.0.529",
+ "react": "19.2.0",
+ "react-dom": "19.2.0",
+ "remotion": "4.0.529"
+ },
+ "devDependencies": {
+ "@types/react": "19.2.2",
+ "typescript": "5.9.3"
+ }
+}
diff --git a/render-bench/vs-remotion/remotion/public/DMSans-Regular.ttf b/render-bench/vs-remotion/remotion/public/DMSans-Regular.ttf
new file mode 100644
index 00000000..cad73f07
Binary files /dev/null and b/render-bench/vs-remotion/remotion/public/DMSans-Regular.ttf differ
diff --git a/render-bench/vs-remotion/remotion/src/Root.tsx b/render-bench/vs-remotion/remotion/src/Root.tsx
new file mode 100644
index 00000000..10b00556
--- /dev/null
+++ b/render-bench/vs-remotion/remotion/src/Root.tsx
@@ -0,0 +1,12 @@
+import React from 'react';
+import {Composition} from 'remotion';
+import {TextGrid} from './TextGrid';
+import {TextFx} from './TextFx';
+
+export const RemotionRoot: React.FC = () => (
+ <>
+ <Composition id="TextGrid" component={TextGrid} durationInFrames={300} fps={30} width={1920} height={1080} />
+ {/* 3,334 large text nodes per frame with seeded animated effects (see README, "TextFx") */}
+ <Composition id="TextFx" component={TextFx} durationInFrames={300} fps={30} width={1920} height={1080} />
+ </>
+);
diff --git a/render-bench/vs-remotion/remotion/src/TextFx.tsx b/render-bench/vs-remotion/remotion/src/TextFx.tsx
new file mode 100644
index 00000000..8e91c6a0
--- /dev/null
+++ b/render-bench/vs-remotion/remotion/src/TextFx.tsx
@@ -0,0 +1,161 @@
+// Workload "TextFx": 3,334 text nodes per frame (300 frames, 1,000,200 in total), 18 to
+// 96 px, each with seeded "random" animated effects: rotation / scale / skew, opacity, HSL
+// colour cycling, gradient fills (background-clip: text), outlined text
+// (-webkit-text-stroke), drop shadows (text-shadow), glow on every 10th node (text-shadow),
+// letter-spacing and per-letter wave words. The per-node math is a line-by-line twin of
+// ../fframes/src/bin/textfx.rs.
+import React from 'react';
+import {AbsoluteFill, staticFile, useCurrentFrame} from 'remotion';
+import {loadFont} from '@remotion/fonts';
+
+// HSL (degrees, 0..1, 0..1) to #rrggbb, the same math as hsl_to_hex in textfx.rs.
+const hslToHex = (h: number, s: number, l: number): string => {
+ const c = (1 - Math.abs(2 * l - 1)) * s;
+ const hp = h / 60;
+ const x = c * (1 - Math.abs((hp % 2) - 1));
+ let r = 0, g = 0, b = 0;
+ if (hp < 1) [r, g, b] = [c, x, 0];
+ else if (hp < 2) [r, g, b] = [x, c, 0];
+ else if (hp < 3) [r, g, b] = [0, c, x];
+ else if (hp < 4) [r, g, b] = [0, x, c];
+ else if (hp < 5) [r, g, b] = [x, 0, c];
+ else [r, g, b] = [c, 0, x];
+ const m = l - c / 2;
+ const q = (v: number) => Math.round((v + m) * 255).toString(16).padStart(2, '0');
+ return `#${q(r)}${q(g)}${q(b)}`;
+};
+
+loadFont({family: 'DM Sans', url: staticFile('DMSans-Regular.ttf'), weight: '400'});
+
+const NODES = 3334;
+const WORDS = [
+ 'fframes', 'Rust', 'Skia', 'GPU', 'render', 'SVG', 'frame', 'video', 'motion', 'text',
+ '1,000,000', '60 fps', 'pixels', 'shader', 'glyph', 'kerning', 'encode', 'H.264', 'effects', 'wave',
+];
+const WAVE_WORDS = ['fframes', 'WAVE', 'rendering', 'motion'];
+const GRADIENTS = 6;
+const SHADOW_COLORS = ['#ff2d95', '#00e5ff', '#ffd400', '#7c4dff'];
+// DM Sans: ascent 0.992em, descent 0.31em. With line-height 1 the baseline sits 0.841em
+// below the top of the span; the SVG side puts the baseline at the node origin.
+const BASELINE = 0.841;
+
+// lowbias32 integer hash; `hash32` in textfx.rs is the same function.
+const hash32 = (x: number): number => {
+ x ^= x >>> 16;
+ x = Math.imul(x, 0x7feb352d);
+ x ^= x >>> 15;
+ x = Math.imul(x, 0x846ca68b);
+ x ^= x >>> 16;
+ return x >>> 0;
+};
+const rnd = (i: number, k: number) => hash32(i * 16 + k + 12345) / 4294967296;
+
+type Kind = 'solid' | 'gradient' | 'stroke' | 'shadow' | 'spacing' | 'glow' | 'wave';
+const KINDS: Kind[] = ['solid', 'gradient', 'stroke', 'shadow', 'spacing'];
+
+// `only`: debug aid for the visual check (`--props='{"only":"stroke"}'` draws only the
+// stroke nodes); unset in every timed run.
+export const TextFx: React.FC<{only?: Kind}> = ({only}) => {
+ const f = useCurrentFrame();
+
+ // Per-frame animated "shared" styles (the <defs> of the SVG side).
+ const gradients: string[] = [];
+ for (let v = 0; v < GRADIENTS; v++) {
+ const base = v * 60 + f * 4;
+ const c0 = hslToHex(base % 360, 0.9, 0.6);
+ const c1 = hslToHex((base + 120) % 360, 0.9, 0.6);
+ const c2 = hslToHex((base + 240) % 360, 0.9, 0.6);
+ gradients.push(`linear-gradient(90deg, ${c0} 0%, ${c1} 50%, ${c2} 100%)`);
+ }
+ const shadows = SHADOW_COLORS.map((color, v) => {
+ const a = f * 0.08 + v * 1.5708;
+ // CSS blur radius = 2 x the Gaussian standard deviation (stdDeviation 3 on the SVG side)
+ return `${(5 * Math.cos(a)).toFixed(3)}px ${(5 * Math.sin(a)).toFixed(3)}px 6px ${color}`;
+ });
+ const glowSigma = 3 + 2 * (0.5 + 0.5 * Math.sin(f * 0.1));
+
+ const nodes: React.ReactNode[] = new Array(NODES);
+ for (let i = 0; i < NODES; i++) {
+ const r = (k: number) => rnd(i, k);
+ const kind: Kind = i % 10 === 0 ? 'glow' : i % 97 === 5 ? 'wave' : KINDS[Math.floor(r(11) * 5)];
+ if (only && kind !== only) continue;
+ let size = Math.round(18 + 78 * Math.pow(r(0), 1.6));
+ if (kind === 'glow' || kind === 'shadow') size = Math.max(size, 36);
+ if (kind === 'wave') size = Math.round(56 + 40 * r(0));
+ const phase = r(3) * Math.PI * 2;
+ const speed = 0.5 + r(4);
+ const x = -60 + r(1) * 1900 + 40 * Math.sin(f * 0.03 * speed + phase);
+ const y = 40 + r(2) * 1060 + 30 * Math.cos(f * 0.025 * speed + phase * 1.3);
+ const rot = r(6) < 0.15
+ ? f * 3 * speed + r(5) * 360
+ : (r(5) - 0.5) * 60 + 25 * Math.sin(f * 0.04 * speed + phase);
+ const scale = 0.8 + 0.35 * Math.sin(f * 0.06 * speed + phase * 0.7);
+ const skew = r(7) < 0.4 ? 20 * Math.sin(f * 0.05 + phase) : 0;
+ const opacity = 0.35 + 0.65 * (0.5 + 0.5 * Math.sin(f * 0.07 * speed + phase * 2));
+ const hue = (r(8) * 360 + f * 3 * speed) % 360;
+ const color = hslToHex(hue, 0.85, 0.62);
+ const label = kind === 'wave'
+ ? WAVE_WORDS[Math.floor(r(10) * WAVE_WORDS.length)]
+ : r(9) < 0.2
+ ? String((f * 37 + i * 101) % 100000)
+ : WORDS[Math.floor(r(10) * WORDS.length)];
+
+ const style: React.CSSProperties = {
+ position: 'absolute',
+ left: 0,
+ top: 0,
+ transformOrigin: '0 0',
+ transform: `translate(${x.toFixed(3)}px, ${y.toFixed(3)}px) rotate(${rot.toFixed(3)}deg) skewX(${skew.toFixed(3)}deg) scale(${scale.toFixed(4)}) translateY(${-BASELINE * size}px)`,
+ opacity: Number(opacity.toFixed(3)),
+ fontSize: size,
+ color,
+ };
+ let children: React.ReactNode = label;
+ switch (kind) {
+ case 'gradient':
+ style.backgroundImage = gradients[Math.floor(r(12) * GRADIENTS)];
+ style.WebkitBackgroundClip = 'text';
+ style.backgroundClip = 'text';
+ style.color = 'transparent';
+ break;
+ case 'stroke':
+ style.color = 'transparent';
+ style.WebkitTextStroke = `${Math.max(size / 28, 1.5).toFixed(3)}px ${color}`;
+ break;
+ case 'shadow':
+ style.textShadow = shadows[Math.floor(r(13) * 4)];
+ break;
+ case 'spacing':
+ style.letterSpacing = `${(size * 0.25 * (0.5 + 0.5 * Math.sin(f * 0.1 + phase))).toFixed(3)}px`;
+ break;
+ case 'glow': {
+ const g = `0 0 ${(2 * glowSigma).toFixed(3)}px ${color}`;
+ style.textShadow = `${g}, ${g}`;
+ break;
+ }
+ case 'wave':
+ style.fontKerning = 'none';
+ children = label.split('').map((ch, j) => (
+ <span
+ key={j}
+ style={{display: 'inline-block', transform: `translateY(${(0.25 * size * Math.sin(f * 0.2 + j * 0.6)).toFixed(3)}px)`}}
+ >
+ {ch}
+ </span>
+ ));
+ break;
+ }
+ nodes[i] = (
+ <span key={i} style={style}>
+ {children}
+ </span>
+ );
+ }
+ return (
+ <AbsoluteFill
+ style={{backgroundColor: '#0b1020', fontFamily: 'DM Sans', fontWeight: 400, lineHeight: 1, whiteSpace: 'nowrap'}}
+ >
+ {nodes}
+ </AbsoluteFill>
+ );
+};
diff --git a/render-bench/vs-remotion/remotion/src/TextGrid.tsx b/render-bench/vs-remotion/remotion/src/TextGrid.tsx
new file mode 100644
index 00000000..567f5953
--- /dev/null
+++ b/render-bench/vs-remotion/remotion/src/TextGrid.tsx
@@ -0,0 +1,74 @@
+// 3,334 absolutely positioned text nodes per frame. Every value depends on the frame
+// index, so nothing can be reused between frames. The math is a line-by-line copy of
+// ../fframes/src/lib.rs.
+import React from 'react';
+import {AbsoluteFill, staticFile, useCurrentFrame} from 'remotion';
+import {loadFont} from '@remotion/fonts';
+
+loadFont({family: 'DM Sans', url: staticFile('DMSans-Regular.ttf'), weight: '400'});
+
+export const NODES = 3334;
+const COLS = 47;
+const ROWS = 71;
+const CELL_W = 1920 / COLS;
+const CELL_H = 1080 / ROWS;
+const FONT_SIZE = 10;
+// DM Sans: ascent 0.992em, descent 0.31em. With line-height = 1em the baseline sits
+// 0.841em below the top of the box; SVG <text y> is the baseline.
+const BASELINE = 0.841 * FONT_SIZE;
+
+const hslToRgb = (h: number, s: number, l: number): [number, number, number] => {
+ const c = (1 - Math.abs(2 * l - 1)) * s;
+ const hp = h / 60;
+ const x = c * (1 - Math.abs((hp % 2) - 1));
+ let r = 0, g = 0, b = 0;
+ if (hp < 1) [r, g, b] = [c, x, 0];
+ else if (hp < 2) [r, g, b] = [x, c, 0];
+ else if (hp < 3) [r, g, b] = [0, c, x];
+ else if (hp < 4) [r, g, b] = [0, x, c];
+ else if (hp < 5) [r, g, b] = [x, 0, c];
+ else [r, g, b] = [c, 0, x];
+ const m = l - c / 2;
+ return [Math.round((r + m) * 255), Math.round((g + m) * 255), Math.round((b + m) * 255)];
+};
+
+export const TextGrid: React.FC = () => {
+ const f = useCurrentFrame();
+ const nodes: React.ReactNode[] = new Array(NODES);
+ for (let i = 0; i < NODES; i++) {
+ const col = i % COLS;
+ const row = Math.floor(i / COLS);
+ const x = col * CELL_W + 2 + 4 * Math.sin(f * 0.12 + i * 0.37);
+ const y = row * CELL_H + 11 + 3 * Math.cos(f * 0.09 + i * 0.23);
+ const alpha = 0.3 + 0.7 * (0.5 + 0.5 * Math.sin(f * 0.2 + i * 0.05));
+ const [r, g, b] = hslToRgb((i * 0.9 + f * 4) % 360, 0.75, 0.62);
+ const label = (i + f) % 9 === 0 ? 'fframes' : String((f * 37 + i * 101) % 10000);
+ nodes[i] = (
+ <span
+ key={i}
+ style={{
+ position: 'absolute',
+ left: 0,
+ top: 0,
+ transform: `translate(${x}px, ${y - BASELINE}px)`,
+ color: `rgba(${r},${g},${b},${alpha.toFixed(3)})`,
+ }}
+ >
+ {label}
+ </span>
+ );
+ }
+ return (
+ <AbsoluteFill
+ style={{
+ backgroundColor: '#0b1020',
+ fontFamily: 'DM Sans',
+ fontSize: FONT_SIZE,
+ lineHeight: 1,
+ whiteSpace: 'nowrap',
+ }}
+ >
+ {nodes}
+ </AbsoluteFill>
+ );
+};
diff --git a/render-bench/vs-remotion/remotion/src/index.ts b/render-bench/vs-remotion/remotion/src/index.ts
new file mode 100644
index 00000000..d831f7b0
--- /dev/null
+++ b/render-bench/vs-remotion/remotion/src/index.ts
@@ -0,0 +1,4 @@
+import {registerRoot} from 'remotion';
+import {RemotionRoot} from './Root';
+
+registerRoot(RemotionRoot);
diff --git a/render-bench/vs-remotion/remotion/tsconfig.json b/render-bench/vs-remotion/remotion/tsconfig.json
new file mode 100644
index 00000000..9dd8746d
--- /dev/null
+++ b/render-bench/vs-remotion/remotion/tsconfig.json
@@ -0,0 +1,12 @@
+{
+ "compilerOptions": {
+ "target": "ES2022",
+ "module": "ES2022",
+ "moduleResolution": "bundler",
+ "jsx": "react-jsx",
+ "strict": true,
+ "skipLibCheck": true,
+ "noEmit": true
+ },
+ "include": ["src"]
+}
diff --git a/render-bench/vs-remotion/run.sh b/render-bench/vs-remotion/run.sh
new file mode 100755
index 00000000..78c47cc5
--- /dev/null
+++ b/render-bench/vs-remotion/run.sh
@@ -0,0 +1,54 @@
+#!/usr/bin/env bash
+# Runs every configuration ROUNDS times, interleaved (round 1 of all configs, then round 2, ...)
+# so that background load drifts hit all configs alike. Wall time of each command is written
+# to results.tsv as: config <tab> round <tab> seconds <tab> 1-min load average before the run.
+#
+# Prerequisites (not timed): see README.md (npm install, remotion bundle, cargo build --release).
+set -euo pipefail
+cd "$(dirname "$0")"
+ROOT=$(pwd)
+ROUNDS=${ROUNDS:-3}
+# Seconds to idle after every run so load and heat from one run do not leak into the next.
+COOLDOWN=${COOLDOWN:-20}
+FF=$ROOT/../../target/release/vs-remotion-bench
+export DYLD_LIBRARY_PATH=/opt/homebrew/lib
+OUT=$ROOT/results.tsv
+mkdir -p "$ROOT/out"
+[ "${APPEND:-0}" = 1 ] || : > "$OUT"
+
+now() { perl -MTime::HiRes=time -e 'printf "%.3f", time'; }
+load1() { sysctl -n vm.loadavg | awk '{print $2}'; }
+
+run() { # name, command...
+ local name=$1; shift
+ local l; l=$(load1)
+ local s; s=$(now)
+ "$@" > "$ROOT/out/$name.log" 2>&1
+ local e; e=$(now)
+ local t; t=$(echo "$e - $s" | bc)
+ printf '%s\t%s\t%s\t%s\n' "$name" "$round" "$t" "$l" | tee -a "$OUT"
+ sleep "${COOLDOWN:-0}"
+}
+
+R() { (cd "$ROOT/remotion" && "$@"); }
+
+configs() {
+ # Remotion, exactly as documented: bundles + renders, default concurrency (8x on 16 cores).
+ run remotion_default R npx remotion render src/index.ts TextGrid ../out/remotion_default.mp4 --codec=h264 --overwrite
+ # Remotion, pre-bundled (bundling excluded) and with explicit concurrency.
+ for c in 8 12 16; do
+ run remotion_prebundled_c$c R node_modules/.bin/remotion render build TextGrid ../out/remotion_c$c.mp4 --codec=h264 --overwrite --concurrency=$c
+ done
+ # fframes, same encoder settings (libx264 crf 18, preset medium, yuv420p).
+ GPU_CONTEXTS=1 run fframes_metal_ctx1 "$FF" metal "$ROOT/out/fframes_metal_ctx1.mp4" medium
+ GPU_CONTEXTS=2 run fframes_metal_ctx2 "$FF" metal "$ROOT/out/fframes_metal_ctx2.mp4" medium
+ GPU_CONTEXTS=2 run fframes_vulkan_ctx2 "$FF" vulkan "$ROOT/out/fframes_vulkan_ctx2.mp4" medium
+ run fframes_cpu "$FF" cpu "$ROOT/out/fframes_cpu.mp4" medium
+ # Secondary: x264 preset ultrafast on both sides, to see the renderers without the encoder
+ # being the bottleneck.
+ run remotion_prebundled_c8_ultrafast R node_modules/.bin/remotion render build TextGrid ../out/remotion_uf.mp4 --codec=h264 --overwrite --concurrency=8 --x264-preset=ultrafast
+ GPU_CONTEXTS=2 run fframes_metal_ctx2_ultrafast "$FF" metal "$ROOT/out/fframes_metal_uf.mp4" ultrafast
+ run fframes_cpu_ultrafast "$FF" cpu "$ROOT/out/fframes_cpu_uf.mp4" ultrafast
+}
+
+for round in $(seq "${FIRST_ROUND:-1}" $(( ${FIRST_ROUND:-1} + ROUNDS - 1 ))); do configs; done
diff --git a/render-bench/vs-remotion/run_textfx.sh b/render-bench/vs-remotion/run_textfx.sh
new file mode 100755
index 00000000..d38e5157
--- /dev/null
+++ b/render-bench/vs-remotion/run_textfx.sh
@@ -0,0 +1,89 @@
+#!/usr/bin/env bash
+# TextFx workload (3,334 large text nodes per frame with seeded animated effects, 1080p30,
+# 300 frames). Same measurement rules as run2.sh: every configuration ROUNDS times,
+# interleaved (round 1 of every config and preset, then round 2, ...), COOLDOWN seconds idle
+# after each run, wall time of the whole command. Every run waits until $BUSY does not exist,
+# and a run during which $BUSY appeared is discarded and redone.
+# Output rows (results_textfx.tsv):
+# preset config round seconds load1_before load1_after packets decoded_frames
+#
+# Env: ROUNDS (5), COOLDOWN (10), PRESETS ("ultrafast medium"), ONLY (regex on config names),
+# OUT (results_textfx.tsv), REMOTION ("c8 c12 c16 c8_angle c16_angle"),
+# FF ("metal_ctx1 metal_ctx2 vulkan_ctx1 vulkan_ctx2 cpu_ctx1")
+# Prerequisites (not timed): remotion bundle, one warm-up render, cargo build --release.
+set -euo pipefail
+cd "$(dirname "$0")"
+ROOT=$(pwd)
+ROUNDS=${ROUNDS:-5}
+COOLDOWN=${COOLDOWN:-10}
+PRESETS=${PRESETS:-"ultrafast medium"}
+REMOTION=${REMOTION:-"c8 c12 c16 c8_angle c16_angle"}
+FF=${FF:-"metal_ctx1 metal_ctx2 vulkan_ctx1 vulkan_ctx2 cpu_ctx1"}
+ONLY=${ONLY:-.}
+OUT=${OUT:-$ROOT/results_textfx.tsv}
+BUSY=${BUSY:-/private/tmp/claude-501/-Users-neogoose-dev-fframes/c1da8ba8-ccab-46c9-a0d0-95fa7a45b86a/scratchpad/bench/main_busy}
+BIN=$ROOT/../../target/release/textfx
+export DYLD_LIBRARY_PATH=/opt/homebrew/lib
+mkdir -p "$ROOT/out/textfx"
+[ "${APPEND:-0}" = 1 ] || : > "$OUT"
+
+now() { perl -MTime::HiRes=time -e 'printf "%.3f", time'; }
+load1() { sysctl -n vm.loadavg | awk '{print $2}'; }
+wait_idle() {
+ while [ -e "$BUSY" ]; do echo " main_busy present, waiting..." >&2; sleep 15; done
+}
+count() { # packets, decoded frames
+ local p d
+ p=$(ffprobe -v error -select_streams v -show_entries packet=pts -of csv=p=0 "$1" | wc -l | tr -d ' ')
+ d=$(ffprobe -v error -select_streams v -count_frames -show_entries stream=nb_read_frames -of csv=p=0 "$1" | tr -d ',')
+ echo "$p $d"
+}
+
+run() { # preset config output command...
+ local preset=$1 name=$2 file=$3; shift 3
+ echo "$name" | grep -Eq "$ONLY" || return 0
+ while true; do
+ wait_idle
+ local flag; flag=$(mktemp -t busyflag); rm -f "$flag"
+ ( while :; do [ -e "$BUSY" ] && touch "$flag"; sleep 0.5; done ) & local watcher=$!
+ local l; l=$(load1)
+ local s; s=$(now)
+ "$@" > "$ROOT/out/textfx/$preset.$name.log" 2>&1
+ local e; e=$(now)
+ local l2; l2=$(load1)
+ kill "$watcher" 2>/dev/null; wait "$watcher" 2>/dev/null || true
+ if [ -e "$flag" ] || [ -e "$BUSY" ]; then
+ rm -f "$flag"
+ printf 'DISCARDED %s %s round %s (main_busy appeared)\n' "$preset" "$name" "$round" | tee -a "$OUT.discarded"
+ sleep "$COOLDOWN"; continue
+ fi
+ local t; t=$(echo "$e - $s" | bc)
+ local c; c=$(count "$file")
+ printf '%s\t%s\t%s\t%s\t%s\t%s\t%s\n' "$preset" "$name" "$round" "$t" "$l" "$l2" "${c// /$'\t'}" | tee -a "$OUT"
+ break
+ done
+ sleep "$COOLDOWN"
+}
+
+R() { (cd "$ROOT/remotion" && "$@"); }
+
+configs() { # preset
+ local preset=$1
+ for cfg in $REMOTION; do
+ local c=${cfg%%_*} gl=default; [ "$cfg" = "${cfg%_angle}" ] || gl=angle
+ local name=remotion_${c}_gl-$gl f=$ROOT/out/textfx/$preset.remotion_${c}_gl-$gl.mp4
+ local extra=(); [ "$gl" = default ] || extra=(--gl="$gl")
+ run "$preset" "$name" "$f" R node_modules/.bin/remotion render build TextFx "$f" \
+ --codec=h264 --crf=18 --x264-preset="$preset" --concurrency="${c#c}" --overwrite "${extra[@]}"
+ done
+ for cfg in $FF; do
+ local backend=${cfg%_ctx*} ctx=${cfg#*_ctx} name=fframes_$cfg
+ [ "$backend" = cpu ] && name=fframes_cpu
+ local f=$ROOT/out/textfx/$preset.$name.mp4
+ GPU_CONTEXTS=$ctx run "$preset" "$name" "$f" "$BIN" "$backend" "$f" "$preset"
+ done
+}
+
+for round in $(seq "${FIRST_ROUND:-1}" $(( ${FIRST_ROUND:-1} + ROUNDS - 1 ))); do
+ for preset in $PRESETS; do configs "$preset"; done
+done
diff --git a/render-bench/vs-remotion/summarize.py b/render-bench/vs-remotion/summarize.py
new file mode 100644
index 00000000..b7b27b8b
--- /dev/null
+++ b/render-bench/vs-remotion/summarize.py
@@ -0,0 +1,69 @@
+#!/usr/bin/env python3
+"""Turns results.tsv (from run.sh) into results.json with medians, fps and speedups."""
+import json, statistics, subprocess, sys
+from collections import defaultdict
+from pathlib import Path
+
+here = Path(__file__).parent
+out = Path(sys.argv[1]) if len(sys.argv) > 1 else here / "results.json"
+runs, loads = defaultdict(list), []
+# results_ultrafast_sweep.tsv: extra Remotion concurrency sweep at x264 preset ultrafast (see README).
+lines = (here / "results.tsv").read_text().splitlines()
+if (here / "results_ultrafast_sweep.tsv").exists():
+ lines += (here / "results_ultrafast_sweep.tsv").read_text().splitlines()
+for line in lines:
+ name, _round, secs, load = line.split("\t")
+ runs[name].append(float(secs))
+ loads.append(float(load))
+
+FRAMES, NODES = 300, 3334
+med = {k: round(statistics.median(v), 3) for k, v in runs.items()}
+fps = {k: round(FRAMES / v, 1) for k, v in med.items()}
+remotion_keys = [k for k in med if k.startswith("remotion_prebundled_c") and "ultrafast" not in k]
+best_r = min(remotion_keys, key=med.get)
+gpu_keys = [k for k in med if k.startswith(("fframes_metal", "fframes_vulkan")) and "ultrafast" not in k]
+best_g = min(gpu_keys, key=med.get)
+
+sh = lambda c: subprocess.run(c, shell=True, capture_output=True, text=True).stdout.strip()
+result = {
+ "machine": f"{sh('sysctl -n machdep.cpu.brand_string')}, {sh('sysctl -n hw.ncpu')} cores, "
+ f"{int(sh('sysctl -n hw.memsize')) // 2**30} GB, macOS {sh('sw_vers -productVersion')}",
+ "load_avg": {"min": min(loads), "max": max(loads), "median": statistics.median(loads),
+ "note": "1-minute load average sampled right before each run"},
+ "remotion_version": json.loads((here / "remotion/node_modules/remotion/package.json").read_text())["version"],
+ "fframes_backend": f"{best_g} (Skia GPU via fframes_skia_renderer); fframes git {sh('git -C ' + str(here) + ' rev-parse --short HEAD')}",
+ "encoder": "libx264, crf 18, preset medium, yuv420p on both sides (Remotion defaults for --codec=h264)",
+ "frames": FRAMES,
+ "text_nodes_per_frame": NODES,
+ "text_nodes_total": FRAMES * NODES,
+ "runs": {
+ "remotion_default": runs["remotion_default"],
+ "remotion_best": {"concurrency": int(best_r.split("_c")[-1]), "prebundled": True, "times": runs[best_r]},
+ "fframes_gpu": runs[best_g],
+ "fframes_cpu": runs["fframes_cpu"],
+ "all": runs,
+ },
+ "median_seconds": med,
+ "fps": fps,
+ "speedup": {
+ "remotion_best_over_fframes_gpu": round(med[best_r] / med[best_g], 2),
+ "remotion_default_over_fframes_gpu": round(med["remotion_default"] / med[best_g], 2),
+ "remotion_best_over_fframes_cpu": round(med[best_r] / med["fframes_cpu"], 2),
+ },
+}
+uf = [k for k in med if k.startswith("remotion") and "ultrafast" in k]
+if uf:
+ best_uf = min(uf, key=med.get)
+ result["ultrafast_secondary"] = {
+ "note": "x264 preset ultrafast on both sides (crf 18): encoder no longer the bottleneck",
+ "remotion_best": {"config": best_uf, "median": med[best_uf]},
+ "fframes_gpu": {"config": "fframes_metal_ctx2_ultrafast", "median": med["fframes_metal_ctx2_ultrafast"]},
+ "fframes_cpu": {"config": "fframes_cpu_ultrafast", "median": med["fframes_cpu_ultrafast"]},
+ }
+ result["speedup"]["ultrafast_remotion_best_over_fframes_gpu"] = round(
+ med[best_uf] / med["fframes_metal_ctx2_ultrafast"], 2)
+ result["speedup"]["ultrafast_remotion_best_over_fframes_cpu"] = round(
+ med[best_uf] / med["fframes_cpu_ultrafast"], 2)
+out.parent.mkdir(parents=True, exist_ok=True)
+out.write_text(json.dumps(result, indent=2))
+print(json.dumps({k: result[k] for k in ("median_seconds", "fps", "speedup")}, indent=2))
diff --git a/render-bench/vs-remotion/summarize_textfx.py b/render-bench/vs-remotion/summarize_textfx.py
new file mode 100644
index 00000000..e0835f7b
--- /dev/null
+++ b/render-bench/vs-remotion/summarize_textfx.py
@@ -0,0 +1,58 @@
+#!/usr/bin/env python3
+"""Turns results_textfx.tsv (from run_textfx.sh) into results_textfx.json: runs, medians, fps,
+best configurations and speedups per x264 preset.
+ python3 summarize_textfx.py [out.json ...]"""
+import json, statistics, subprocess, sys
+from collections import defaultdict
+from pathlib import Path
+
+here = Path(__file__).parent
+outs = [Path(p) for p in sys.argv[1:]] or [here / "results_textfx.json"]
+FRAMES, NODES = 300, 3334
+
+runs = defaultdict(lambda: defaultdict(list))
+frames = defaultdict(lambda: defaultdict(set))
+loads = []
+for line in (here / "results_textfx.tsv").read_text().splitlines():
+ preset, name, _round, secs, l1, l2, packets, decoded = line.split("\t")
+ runs[preset][name].append(float(secs))
+ frames[preset][name].add((int(packets), int(decoded)))
+ loads += [float(l1), float(l2)]
+
+sh = lambda c: subprocess.run(c, shell=True, capture_output=True, text=True).stdout.strip()
+result = {
+ "workload": "TextFx: 1920x1080, 30 fps, 300 frames, 3,334 text nodes per frame (18-96 px) with seeded "
+ "animated effects (rotate/scale/skew, opacity, HSL cycling, gradient fill, stroke, drop shadow, "
+ "glow on every 10th node, letter-spacing, per-letter wave words)",
+ "text_nodes_total": FRAMES * NODES,
+ "machine": f"{sh('sysctl -n machdep.cpu.brand_string')}, {sh('sysctl -n hw.ncpu')} cores, "
+ f"{int(sh('sysctl -n hw.memsize')) // 2**30} GB, macOS {sh('sw_vers -productVersion')}",
+ "remotion_version": json.loads((here / "remotion/node_modules/remotion/package.json").read_text())["version"],
+ "fframes_git": sh(f"git -C {here} rev-parse --short HEAD"),
+ "encoder": "libx264, crf 18, same preset on both sides; timings are wall time of the whole command",
+ "load_avg_1min": {"min": min(loads), "max": max(loads), "median": statistics.median(loads),
+ "note": "sampled right before and right after each run"},
+ "presets": {},
+}
+for preset, by_cfg in runs.items():
+ med = {k: round(statistics.median(v), 3) for k, v in by_cfg.items()}
+ best_r = min((k for k in med if k.startswith("remotion")), key=med.get)
+ best_g = min((k for k in med if k.startswith(("fframes_metal", "fframes_vulkan"))), key=med.get)
+ result["presets"][preset] = {
+ "runs": {k: v for k, v in by_cfg.items()},
+ "median_seconds": med,
+ "fps": {k: round(FRAMES / v, 2) for k, v in med.items()},
+ "frames_packets_decoded": {k: sorted(v) for k, v in frames[preset].items()},
+ "best": {"remotion": best_r, "fframes_gpu": best_g},
+ "speedup": {
+ "remotion_best_over_fframes_gpu_best": round(med[best_r] / med[best_g], 2),
+ "remotion_best_over_fframes_cpu": round(med[best_r] / med["fframes_cpu"], 2)
+ if "fframes_cpu" in med else None,
+ "note": "> 1 means fframes is faster",
+ },
+ }
+for out in outs:
+ out.parent.mkdir(parents=True, exist_ok=True)
+ out.write_text(json.dumps(result, indent=2))
+for preset, p in result["presets"].items():
+ print(preset, json.dumps({"median": p["median_seconds"], "best": p["best"], "speedup": p["speedup"]}, indent=1))