diff --git a/.claude/launch.json b/.claude/launch.json
index 2cba0de..c38af83 100644
--- a/.claude/launch.json
+++ b/.claude/launch.json
@@ -6,6 +6,18 @@
"runtimeExecutable": "node_modules/.bin/wrangler",
"runtimeArgs": ["dev", "--config", "worker/wrangler.jsonc", "--remote", "--port", "8787"],
"port": 8787
+ },
+ {
+ "name": "site-static",
+ "runtimeExecutable": "python3",
+ "runtimeArgs": ["-m", "http.server", "8790", "--directory", "site"],
+ "port": 8790
+ },
+ {
+ "name": "video-studio",
+ "runtimeExecutable": "pnpm",
+ "runtimeArgs": ["--filter", "lookup-video", "exec", "remotion", "studio", "--port", "3300", "--no-open"],
+ "port": 3300
}
]
}
diff --git a/.gitignore b/.gitignore
index 870cd71..0bbed70 100644
--- a/.gitignore
+++ b/.gitignore
@@ -9,3 +9,9 @@ site/element.js
site/lookup.js
packages/sdk/dist/
site/service-times.js
+
+# The product film: renders and intermediate audio.
+video/out/
+# Regenerated by scripts/score.ts (pnpm --filter lookup-video score).
+video/public/audio/
+.DS_Store
diff --git a/package.json b/package.json
index ba01c9c..c43469f 100644
--- a/package.json
+++ b/package.json
@@ -14,7 +14,9 @@
"build:shadcn-demo": "npm --prefix examples/shadcn-demo run build",
"eval": "node eval/run.mjs",
"build:sdk": "pnpm --filter @heresmychurch/lookup build && node scripts/copy-assets.mjs",
- "build:registry:lib": "node scripts/build-registry.mjs --lib"
+ "build:registry:lib": "node scripts/build-registry.mjs --lib",
+ "video": "pnpm --filter lookup-video studio",
+ "video:render": "pnpm --filter lookup-video render"
},
"devDependencies": {
"@cloudflare/vitest-pool-workers": "^0.8.0",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index a041c7a..ef8b522 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -10,7 +10,7 @@ importers:
devDependencies:
'@cloudflare/vitest-pool-workers':
specifier: ^0.8.0
- version: 0.8.71(@cloudflare/workers-types@4.20260702.1)(@vitest/runner@3.2.7)(@vitest/snapshot@3.2.7)(vitest@3.2.7(@types/node@20.19.43)(happy-dom@18.0.1))
+ version: 0.8.71(@cloudflare/workers-types@4.20260702.1)(@vitest/runner@3.2.7)(@vitest/snapshot@3.2.7)(vitest@3.2.7(@types/node@20.19.43)(happy-dom@18.0.1)(terser@5.51.2))
'@cloudflare/workers-types':
specifier: ^4.20260101.0
version: 4.20260702.1
@@ -25,7 +25,7 @@ importers:
version: 5.9.3
vitest:
specifier: ~3.2.0
- version: 3.2.7(@types/node@20.19.43)(happy-dom@18.0.1)
+ version: 3.2.7(@types/node@20.19.43)(happy-dom@18.0.1)(terser@5.51.2)
wrangler:
specifier: ^4.150.0
version: 4.158.0(@cloudflare/workers-types@4.20260702.1)(@types/node@20.19.43)
@@ -46,10 +46,120 @@ importers:
version: 19.2.0
vitest:
specifier: ~3.2.0
- version: 3.2.7(@types/node@20.19.43)(happy-dom@18.0.1)
+ version: 3.2.7(@types/node@20.19.43)(happy-dom@18.0.1)(terser@5.51.2)
+
+ video:
+ dependencies:
+ '@remotion/bundler':
+ specifier: 4.0.539
+ version: 4.0.539(postcss@8.5.32)(react-dom@19.3.1(react@19.3.1))(react@19.3.1)
+ '@remotion/cli':
+ specifier: 4.0.539
+ version: 4.0.539(postcss@8.5.32)(react-dom@19.3.1(react@19.3.1))(react@19.3.1)(typescript@5.9.3)
+ '@remotion/fonts':
+ specifier: 4.0.539
+ version: 4.0.539(react-dom@19.3.1(react@19.3.1))(react@19.3.1)
+ '@remotion/renderer':
+ specifier: 4.0.539
+ version: 4.0.539(react-dom@19.3.1(react@19.3.1))(react@19.3.1)
+ react:
+ specifier: 19.3.1
+ version: 19.3.1
+ react-dom:
+ specifier: 19.3.1
+ version: 19.3.1(react@19.3.1)
+ remotion:
+ specifier: 4.0.539
+ version: 4.0.539(react-dom@19.3.1(react@19.3.1))(react@19.3.1)
+ devDependencies:
+ '@types/react':
+ specifier: 19.3.0
+ version: 19.3.0
+ shiki:
+ specifier: 3.4.2
+ version: 3.4.2
+ typescript:
+ specifier: ^5.6.0
+ version: 5.9.3
packages:
+ '@babel/code-frame@7.29.7':
+ resolution: {integrity: sha512-Aup7aUOfpbAUg2ROOJN6Iw5f9DMBlzu0mIkm/malLQFN/YQgO48wCj0Kxa3sEHJvPVFg7siR+qRInwXd2qhQKw==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/compat-data@7.29.7':
+ resolution: {integrity: sha512-locTkQyKvwIEgBzVrn8693ebc97F2U8ZHjbXwDXJ5Fn2TCpNwTlKcaKLkdHop5c/icOFE7qt7Q9JC5hnKNa6Gg==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/core@7.29.13':
+ resolution: {integrity: sha512-j1nvOQCZYSgp7HLmisnCXFTpVvFODiijQ9QHkORfGKWH6YDtskTEeCJS7eV545GZ9UBzrq0e2xsOd5QQ5PjIqw==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/generator@7.29.14':
+ resolution: {integrity: sha512-qSY56jgW5JnSXzuekLVil6zaOQxOCtOHidr65KkaMBw772IuAY28Qx4ZykAcDn8+FRF15qk80XzKwgSc/RYW6g==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/helper-compilation-targets@7.29.13':
+ resolution: {integrity: sha512-8WxJ4/Vmes3ghacj8VOJy3NW8eyHiFY/4thU/LSBuBE470+igjR/j1ZTNn8fV5VdNrLx6iXUwig526UdOvfP0w==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/helper-globals@7.29.7':
+ resolution: {integrity: sha512-3nQVUAtvkKH9zahfWgw96Jc/uFOmjACE1kQz82E2lqWmHBgjzbNlsC22nuQTfahmWeQtTq5nQ/4Nnd2A1wj4zA==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/helper-module-imports@7.29.7':
+ resolution: {integrity: sha512-ejHwrQQYcm9xnTivShn2IDOlIzInN34AXskvq9QicvCtEzq1Vzclu/tKF8Jq1Cg8JG2GL6/EmjgsCT7lXepE3g==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/helper-module-transforms@7.29.14':
+ resolution: {integrity: sha512-2XDvQVd9JESaOgGc4jT2/jquTAO7ppA5noTZQqH+MmZ89yjCzScLwtCPbWtkPZylL+TLWR49IwWmk+QkRR4GsA==}
+ engines: {node: '>=6.9.0'}
+ peerDependencies:
+ '@babel/core': ^7.0.0
+
+ '@babel/helper-string-parser@7.29.14':
+ resolution: {integrity: sha512-CXvKMFvM80ihI7Vox9jb+kQjnyjESQNPM+vB7U0Zz6TWuZA+Z/FL0QPMH300h33qJtIx+REeBhXqWOPW48TcAQ==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/helper-validator-identifier@7.29.7':
+ resolution: {integrity: sha512-qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/helper-validator-option@7.29.7':
+ resolution: {integrity: sha512-N9ZErrD+yW5geCDtBqnOoxmR8+tNKiGuxKlDpuJxfsqpa2dFcexaziGAE/qoHLiDDreVNMupxGmSoNlyvsA3gw==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/helpers@7.29.14':
+ resolution: {integrity: sha512-6E3Mi1r0B0umq6vmZa4/78q+64fqO2YY0THUdjDPKUCKhNb0yQy5NQIaPHCSD3ryTgiTss//P4JsWS80AsZ6LQ==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/parser@7.24.1':
+ resolution: {integrity: sha512-Zo9c7N3xdOIQrNip7Lc9wvRPzlRtovHVE4lkz8WEDr7uYh/GMQhSiIgFxGIArRHYdJE5kxtZjAf8rT0xhdLCzg==}
+ engines: {node: '>=6.0.0'}
+ hasBin: true
+
+ '@babel/parser@7.29.14':
+ resolution: {integrity: sha512-VL220vXuyO2z3rNIQwY7ftj9UwpqOt+33sH+sBWkOekbsSR2g7EEMnOx24ZlCH0xOA3DM/33SifVFGbnJD8r/w==}
+ engines: {node: '>=6.0.0'}
+ hasBin: true
+
+ '@babel/template@7.29.7':
+ resolution: {integrity: sha512-puq+Gf35oI24FeN11LkoUQFqv9uwNeWpxXZi/Ji3rRIoKAzKnxRaZ+Gkj0vKS9ZCiTESfng1N9LyOyXvo+m+Gg==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/traverse@7.29.14':
+ resolution: {integrity: sha512-RAdQJrBgmIH1FWvN0X+1hoDxzMzlP4cv/1Zi4dn4tG1H0cTb+rw7CzUxQJhp1f4ANd8j5vH3fy8BAWFGkBDEsA==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/types@7.24.0':
+ resolution: {integrity: sha512-+j7a5c253RfKh8iABBhywc8NSfP5LURe7Uh4qpsh6jc+aLJguvmIUBdjSdEMQv2bENrCR5MfRdjGo7vzS/ob7w==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/types@7.29.14':
+ resolution: {integrity: sha512-UjI/dKmwJwT9pOszJitq2G6EObZPnsZUfdCr92z2TlF3EZK9J3EdfOKUrCzHl6wFthbzwhzl1Soc/UIwxRiq6w==}
+ engines: {node: '>=6.9.0'}
+
'@cloudflare/kv-asset-handler@0.4.0':
resolution: {integrity: sha512-+tv3z+SPp+gqTIcImN9o0hqE9xyfQjI1XD9pL6NuKjua9B1y7mNYv0S9cP+QEbA4ppVgGZEmKOvHX5G5Ei1CVA==}
engines: {node: '>=18.0.0'}
@@ -151,15 +261,27 @@ packages:
resolution: {integrity: sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==}
engines: {node: '>=12'}
+ '@emnapi/core@1.11.3':
+ resolution: {integrity: sha512-zLpS5asjEb7lq8jYLq37N6XKaE41DIexlY1rF/z4/tIl3wo13Sqm28fRyfIsKZD+NZ8mM5RoKkpW/rBcuoSZSg==}
+
'@emnapi/runtime@1.11.3':
resolution: {integrity: sha512-Xz4Tpyki7XyrpbUK1jR1AhdAdaXyhhY4lZ3neLodmhpuWfy2PAQN5B46sAiU4liOXGLkHypn/qU+jvfWSCYYLA==}
+ '@emnapi/wasi-threads@1.2.3':
+ resolution: {integrity: sha512-ELEBe8PsLvvJ6QMr0zLt8ffvOHW/dc1m3CEzNMg7aJUv3bMaoDtw2TXyDAwkYBuroxxuHEwhRTLJSe5sya547g==}
+
'@esbuild/aix-ppc64@0.25.4':
resolution: {integrity: sha512-1VCICWypeQKhVbE9oW/sJaAmjLxhVqacdkvPLEjwlttjfwENRSClS8EjBz0KzRyFSCPDIkuXW34Je/vk7zdB7Q==}
engines: {node: '>=18'}
cpu: [ppc64]
os: [aix]
+ '@esbuild/aix-ppc64@0.28.1':
+ resolution: {integrity: sha512-Svl7tq8k/08+p6CXPpRjQ1fKX+1odH/BQbb48fV6fj3CWHhsoIOoY87w1oHXm0qEpkIK3ZfVgp0hed3XBXzXMQ==}
+ engines: {node: '>=18'}
+ cpu: [ppc64]
+ os: [aix]
+
'@esbuild/aix-ppc64@0.28.2':
resolution: {integrity: sha512-XExcO+dvLKvVtNTibSTBej1NCAbaGhWn9Ww1ZPx80qsahhPFe/8jgWP0IchNe0F3HwkU7n8ejhH8bjonqht8mQ==}
engines: {node: '>=18'}
@@ -172,6 +294,12 @@ packages:
cpu: [arm64]
os: [android]
+ '@esbuild/android-arm64@0.28.1':
+ resolution: {integrity: sha512-34EGEbCIAgosYz6goLcopX6Mo7NyGv9tfwEM2/7Ce2VcVRk568iSvniGWcUXIy7wEDR1wzolcxcriFVrWYcwBg==}
+ engines: {node: '>=18'}
+ cpu: [arm64]
+ os: [android]
+
'@esbuild/android-arm64@0.28.2':
resolution: {integrity: sha512-5YfKeeI8qWfBZIX+u2xZC3Zlb3Os/gLS2sbEKM+I4ZOcsWmHS2WLysCcQZDAFRslDUU5Oiq44gf6PYN1vGwG5A==}
engines: {node: '>=18'}
@@ -184,6 +312,12 @@ packages:
cpu: [arm]
os: [android]
+ '@esbuild/android-arm@0.28.1':
+ resolution: {integrity: sha512-0k2F129Xdio1TdJfzJ8sy1Q47vUD2NnwdhiAf7drUN1EBTfPf4hsFCtmMgu/6m8JSzsBrlmVjudMBQqOfG8usQ==}
+ engines: {node: '>=18'}
+ cpu: [arm]
+ os: [android]
+
'@esbuild/android-arm@0.28.2':
resolution: {integrity: sha512-kXXoiPVVGQcnIYGOeaovwOURpniDBpSq4A03qkQ+BMQqtGG6HYap3xne9C1O1yo4TR3qxlCX5IqqmX6fFo2Lqg==}
engines: {node: '>=18'}
@@ -196,6 +330,12 @@ packages:
cpu: [x64]
os: [android]
+ '@esbuild/android-x64@0.28.1':
+ resolution: {integrity: sha512-dbwY7ltSMDWsRatcRpCnES4F+im88OCUgGZjy52shC7GqHRE/cYlxNbB4Z4UpJswpcc4Qxd2oE/ufM0p61IKng==}
+ engines: {node: '>=18'}
+ cpu: [x64]
+ os: [android]
+
'@esbuild/android-x64@0.28.2':
resolution: {integrity: sha512-O387ite7SzUyCcy3JQX4P4bLtEA7bLLkx+esve5JHnyYfNTxcVpXZo9jhdB0lTKN44gztELTdU7nS8Nr16Fs1Q==}
engines: {node: '>=18'}
@@ -208,6 +348,12 @@ packages:
cpu: [arm64]
os: [darwin]
+ '@esbuild/darwin-arm64@0.28.1':
+ resolution: {integrity: sha512-TZbWkQY7kvTAXbXUT7uVACR5cMHsDiSz9z7ZKAX/RTq/WJEk3QyRr0wZpNhBDX+/0CtdqUIJlOiodQcta6tY3Q==}
+ engines: {node: '>=18'}
+ cpu: [arm64]
+ os: [darwin]
+
'@esbuild/darwin-arm64@0.28.2':
resolution: {integrity: sha512-n4KqkOQrraxHJcgjM1RvwbigfQKIKJVpM7xp+KsxiyUSrRdIXnt73VhrPAx0fV44hgfmIVKjxMN9J1t5jySVkw==}
engines: {node: '>=18'}
@@ -220,6 +366,12 @@ packages:
cpu: [x64]
os: [darwin]
+ '@esbuild/darwin-x64@0.28.1':
+ resolution: {integrity: sha512-zfdzgK9ACBNZLI/CyHTOx81SyNbM6YXn7rxSgX97VjyiPl9W1i4Ka4fgKECEoFCKGpvBj5qArWIGgQjOwkgskQ==}
+ engines: {node: '>=18'}
+ cpu: [x64]
+ os: [darwin]
+
'@esbuild/darwin-x64@0.28.2':
resolution: {integrity: sha512-uq6suIWYP37qzGddBKPw5QEQPi6HiLGsO7UmkpfyaYNQ3D+rN6w6WfwH+nuqcGXWvawGwxOEroO4YGnFh95azw==}
engines: {node: '>=18'}
@@ -232,6 +384,12 @@ packages:
cpu: [arm64]
os: [freebsd]
+ '@esbuild/freebsd-arm64@0.28.1':
+ resolution: {integrity: sha512-wG2EA8ENdEI0qhkSZMjfqrdY+ziCYCPMmtZjjIwOmXFjmyzEHn+UUxk5of+SYsjtfs3VpnlC7QLzSI5hY/rOAw==}
+ engines: {node: '>=18'}
+ cpu: [arm64]
+ os: [freebsd]
+
'@esbuild/freebsd-arm64@0.28.2':
resolution: {integrity: sha512-n+I0BTSRIoy+d6RPKnEVwql5UwBJolytvY4mAOIEJorKlqgPII8ix6slVVrfZ5Tnj7glIZvloylbB/EJPMWEXw==}
engines: {node: '>=18'}
@@ -244,6 +402,12 @@ packages:
cpu: [x64]
os: [freebsd]
+ '@esbuild/freebsd-x64@0.28.1':
+ resolution: {integrity: sha512-i7dZ9vQgnvSCzi/rYCXNgtF/U+eKZNJBzu3eTQbRgHnM7tNSizLOkRFAl3qzVc/Op/u5YkHHa4pf/3DOYHthLQ==}
+ engines: {node: '>=18'}
+ cpu: [x64]
+ os: [freebsd]
+
'@esbuild/freebsd-x64@0.28.2':
resolution: {integrity: sha512-78XJTJkvPs0kz2w61301PJjXl4g7q3JqiYMZ/M/yVI73EHBrCRTgkhu9oqG7vPqq+a/yadEW8aD+agKlk5xrmg==}
engines: {node: '>=18'}
@@ -256,6 +420,12 @@ packages:
cpu: [arm64]
os: [linux]
+ '@esbuild/linux-arm64@0.28.1':
+ resolution: {integrity: sha512-yHs+0uc8+nvEAfAfxrWQKK5peSNzBc4PegcMO0EJ2hT71uA7vB8Ihg2e77R2P7SG5uYjPbHlLLmve4LLLRCf0g==}
+ engines: {node: '>=18'}
+ cpu: [arm64]
+ os: [linux]
+
'@esbuild/linux-arm64@0.28.2':
resolution: {integrity: sha512-pW4AC0P3it8c7do9MVM4p51FzHzdM/TZrerurgRcHJ2WTa1VQ1CIq18xncfpBJw4ojkiZZrKW2yIBWBP92j6Ug==}
engines: {node: '>=18'}
@@ -268,6 +438,12 @@ packages:
cpu: [arm]
os: [linux]
+ '@esbuild/linux-arm@0.28.1':
+ resolution: {integrity: sha512-qVXBOHQS+d5Y722GwJzJUtOLlX7km3CraOaGormF1pDtPd2C/l1SHRPgjLunLGe51Sh5YYWKMFDyV4SxgMQYTQ==}
+ engines: {node: '>=18'}
+ cpu: [arm]
+ os: [linux]
+
'@esbuild/linux-arm@0.28.2':
resolution: {integrity: sha512-XlDnu2q5yoqems+xay6wSAcg9DDD7K9RLKZEBOMZm3ckNpJBvOX20tSfby8KfrrhINDyv9V2YVZKY/SpoGJI8w==}
engines: {node: '>=18'}
@@ -280,6 +456,12 @@ packages:
cpu: [ia32]
os: [linux]
+ '@esbuild/linux-ia32@0.28.1':
+ resolution: {integrity: sha512-d1z4ZuP0ajrfz/FhGT4vv278rX8KnPPJx8i5+AtK7TYbx9Le9F1hyzurZpkEyjkGa9dUGhQow4C1NmeGvqxN2w==}
+ engines: {node: '>=18'}
+ cpu: [ia32]
+ os: [linux]
+
'@esbuild/linux-ia32@0.28.2':
resolution: {integrity: sha512-CYbnj78HsIeA+DhgUKgFCfvNsTHFhMMrinUrMZpDXJXKN8T3XViTZ/+wtHeVxEWY8ewSzTFN+nRmSwO2tZaLUQ==}
engines: {node: '>=18'}
@@ -292,6 +474,12 @@ packages:
cpu: [loong64]
os: [linux]
+ '@esbuild/linux-loong64@0.28.1':
+ resolution: {integrity: sha512-M5sRjUVZrkm1OAPR3dlOYzNmN+loZKGVi1VUQGrwuqLcbR6qeAz+famMhjASeH3YVKvZz+zT1jlh/keC3Rj/lg==}
+ engines: {node: '>=18'}
+ cpu: [loong64]
+ os: [linux]
+
'@esbuild/linux-loong64@0.28.2':
resolution: {integrity: sha512-buwkd8nsph4R+ajRvw0qM5Hja/TXQow3ptzWO2EbG/cqcIkHloRrdlBtQlshyYGTNFvfkfJ5tpPLVkY4DtsPfQ==}
engines: {node: '>=18'}
@@ -304,6 +492,12 @@ packages:
cpu: [mips64el]
os: [linux]
+ '@esbuild/linux-mips64el@0.28.1':
+ resolution: {integrity: sha512-mRObBZeHh2OxcBFPWE/FjylkRgZdYuiTR3vaTozquCGOH14iP9oN4x4Ge81CoIDYQrXmIxpFumJBu5MtZpnQJQ==}
+ engines: {node: '>=18'}
+ cpu: [mips64el]
+ os: [linux]
+
'@esbuild/linux-mips64el@0.28.2':
resolution: {integrity: sha512-ZVykbDyk7519VwiNb9Lcj9m8XM6v5V9uKPvrEMkkEedVewf+0itkhahp4HDpgERXhwLRpWFypsGbG/J8s0QjJA==}
engines: {node: '>=18'}
@@ -316,6 +510,12 @@ packages:
cpu: [ppc64]
os: [linux]
+ '@esbuild/linux-ppc64@0.28.1':
+ resolution: {integrity: sha512-slScBsMAb3GFDcdrCgLwZtPYRoH2H/youv10QiZyRjmsP48fznoveWytSgCI/R0ZcUgpc0ZhIUEx6LHts8yrfQ==}
+ engines: {node: '>=18'}
+ cpu: [ppc64]
+ os: [linux]
+
'@esbuild/linux-ppc64@0.28.2':
resolution: {integrity: sha512-CAXl+Dtd9UUuJd8pKKdwh6MLm3MUMiqMPmhZ3tTSXPqfyQ3vDl6R5hZdZ/kYojK4ofXtdfSv1tFq8XzWx3heNQ==}
engines: {node: '>=18'}
@@ -328,6 +528,12 @@ packages:
cpu: [riscv64]
os: [linux]
+ '@esbuild/linux-riscv64@0.28.1':
+ resolution: {integrity: sha512-kw0owk1o0GFETUJyW0jc0G4Yzs0BHZn0JDZ8JRT088vjJYX777BAs1fDGxAC+q831qOs2DTC96mNsG2opdfyyQ==}
+ engines: {node: '>=18'}
+ cpu: [riscv64]
+ os: [linux]
+
'@esbuild/linux-riscv64@0.28.2':
resolution: {integrity: sha512-GeXCej4IQtU1B+QlDV8W/RRvbzI3O/Stss+/bCXv4lZls5WGRtu2a+3JkA3i4qIUlMXpcHebWpF8AkJhATowuA==}
engines: {node: '>=18'}
@@ -340,6 +546,12 @@ packages:
cpu: [s390x]
os: [linux]
+ '@esbuild/linux-s390x@0.28.1':
+ resolution: {integrity: sha512-/lAIjX8aYFRByhh6L5rYtPEDRqa9de/4V/juOXcta5frjvzXO4/sqEtyytse0g3zZFuWu5cDN0MkLz2qRDD2Ag==}
+ engines: {node: '>=18'}
+ cpu: [s390x]
+ os: [linux]
+
'@esbuild/linux-s390x@0.28.2':
resolution: {integrity: sha512-3H1weTYZPxt/WOhByszQZybS9w5lKzUn1FDMsgEChbHWQwHYQQRfBxgCcZvPhjHfKyJjIievvMmEUawJrdY9Dg==}
engines: {node: '>=18'}
@@ -352,6 +564,12 @@ packages:
cpu: [x64]
os: [linux]
+ '@esbuild/linux-x64@0.28.1':
+ resolution: {integrity: sha512-u/anNYF2mmVOEDwLtnQ1wOr3EZ9sTNGLWrsYGYwHWzGA3Si84IOkHXlbWTD1NB+9/1lcnweYKO54uhxZydNzfA==}
+ engines: {node: '>=18'}
+ cpu: [x64]
+ os: [linux]
+
'@esbuild/linux-x64@0.28.2':
resolution: {integrity: sha512-4xTZr1FUmSoQW4XIWmit3tzQrUTZM+N3P0XV8xROKYF50XfI7xeO90+1bZvNwxIufQ9hDQVRJH5YhgPVF8A/HQ==}
engines: {node: '>=18'}
@@ -364,6 +582,12 @@ packages:
cpu: [arm64]
os: [netbsd]
+ '@esbuild/netbsd-arm64@0.28.1':
+ resolution: {integrity: sha512-oks0DYbLwWMmaakTsCb+zL4E+aHRVLom9IJZOAthMQEPiQmydXHkziYEsGYRx0uNV/IjEKGAV941JzH02pflqw==}
+ engines: {node: '>=18'}
+ cpu: [arm64]
+ os: [netbsd]
+
'@esbuild/netbsd-arm64@0.28.2':
resolution: {integrity: sha512-sSATRjPeDBg3pdgHoQfoYBob11Kk1FGa9lui5RIHZCoCkJa9QKlvl3/vKz2usCmYYjs7ymJR/2Nnsqe+Hjt5nw==}
engines: {node: '>=18'}
@@ -376,6 +600,12 @@ packages:
cpu: [x64]
os: [netbsd]
+ '@esbuild/netbsd-x64@0.28.1':
+ resolution: {integrity: sha512-aeL6lAnN89Hz43Mlh1G8ARasbuoYvSITDEx0tHh5b7jJnHcssqgjy9Yx430GDpmCa6OyrKoS0aNRjKundRizGg==}
+ engines: {node: '>=18'}
+ cpu: [x64]
+ os: [netbsd]
+
'@esbuild/netbsd-x64@0.28.2':
resolution: {integrity: sha512-lqnzCV+mM0gIADaKihiCg6ifgfU2L3h5E33rNQBN1Y4MaVGnzryzmvvf7UHxprpQdE8hpqLolJ9Rl+SkIRDpyw==}
engines: {node: '>=18'}
@@ -388,6 +618,12 @@ packages:
cpu: [arm64]
os: [openbsd]
+ '@esbuild/openbsd-arm64@0.28.1':
+ resolution: {integrity: sha512-MEFJe5C3R8pwXdZ5Y21oo6m7ePiS0d9pWucn99O/wvyJZChoIQKrQDxKrGeW8F5+T0okTHesAmDeiHDTIq0V/Q==}
+ engines: {node: '>=18'}
+ cpu: [arm64]
+ os: [openbsd]
+
'@esbuild/openbsd-arm64@0.28.2':
resolution: {integrity: sha512-AL2qJILH7lNjrDmCQDvdxMfAUIv8KMNZOvrwAQ8i8//ntL9FflhOyMJ8OZSMBb8/AWXe3/5v5S20y3zCoZWKoQ==}
engines: {node: '>=18'}
@@ -400,12 +636,24 @@ packages:
cpu: [x64]
os: [openbsd]
+ '@esbuild/openbsd-x64@0.28.1':
+ resolution: {integrity: sha512-i/ZLIOafE0Z8cI/XANJAixoJL/uRAoS2xOA3rb0xN+KK0K177cMAsQYkzHtBrtMXAKuAc7HGgcWiZ/sRC1Nxgw==}
+ engines: {node: '>=18'}
+ cpu: [x64]
+ os: [openbsd]
+
'@esbuild/openbsd-x64@0.28.2':
resolution: {integrity: sha512-QtiuPytchRyC4rwUKhexJdQKvDuZ6hWloi3igqPQNUJCS1/v9EiO3UTOXR6A3FoMo4fnAKbWJdqaIwhOzh8qEw==}
engines: {node: '>=18'}
cpu: [x64]
os: [openbsd]
+ '@esbuild/openharmony-arm64@0.28.1':
+ resolution: {integrity: sha512-ge+Z7EXFNt2BO1oAMsVpiQ8EwndV9i1xXerAeTIK7AtPs3bKFXQM7nlRxDSIUIMeueR1CNXxqztLzdNeReKBJg==}
+ engines: {node: '>=18'}
+ cpu: [arm64]
+ os: [openharmony]
+
'@esbuild/openharmony-arm64@0.28.2':
resolution: {integrity: sha512-WkhYDmpTjLvGlScA1rwjRUmhl4k8oXR3cIbtqWmELgU/dFeHHlEllxDvdWcNJV9rbzCexB5vz8gtNewWLgCT7Q==}
engines: {node: '>=18'}
@@ -418,6 +666,12 @@ packages:
cpu: [x64]
os: [sunos]
+ '@esbuild/sunos-x64@0.28.1':
+ resolution: {integrity: sha512-BEjgtECkL3vY+SaSQ6nzVfiALUeFxpawyp8Jmf5PtYhf1Ug40N1h/hxlhts+f1FvSvarEigdxS3BlSMI2PJLcQ==}
+ engines: {node: '>=18'}
+ cpu: [x64]
+ os: [sunos]
+
'@esbuild/sunos-x64@0.28.2':
resolution: {integrity: sha512-GPMSkTOtMnv2U2F8gxe4Io6qmVs+YKyp832Etqqxr0hFngmXQ3rzwytelm3GIn7T4VviRUlf3sOgBOiTdvaf7g==}
engines: {node: '>=18'}
@@ -430,6 +684,12 @@ packages:
cpu: [arm64]
os: [win32]
+ '@esbuild/win32-arm64@0.28.1':
+ resolution: {integrity: sha512-lCv9eK/H6ZJWbE7bh2nw54CZ9M2nupBxJcTsdk/QQnWkdSjKGuxmmH8/GWrlT1eMmZfn4dGcCjRte397WqfQXA==}
+ engines: {node: '>=18'}
+ cpu: [arm64]
+ os: [win32]
+
'@esbuild/win32-arm64@0.28.2':
resolution: {integrity: sha512-PIhhEkE9uPBleRBrQEJpUn7MBnibZzbGzYWPmY3x+YoVg/95zbjB4CxPPOQ8l5tYYM4mMaCthF8/1DIfBQQyWQ==}
engines: {node: '>=18'}
@@ -442,6 +702,12 @@ packages:
cpu: [ia32]
os: [win32]
+ '@esbuild/win32-ia32@0.28.1':
+ resolution: {integrity: sha512-zvb/mB2bSCoJOpoCBgYKKpX6YM6mJBlBUVUtVj41DlZJVEB6/0CKlRYxP5wWl1C1ILiCoAU5wZZ4q1P3qeS6Eg==}
+ engines: {node: '>=18'}
+ cpu: [ia32]
+ os: [win32]
+
'@esbuild/win32-ia32@0.28.2':
resolution: {integrity: sha512-YmJbfTlvU7Sdn9BB+4PRES4oB6pxgS37MAONj+hBr/cpXS1aBPKXxNnDbu+QCWPj0o9dgyxeq79g6c5P8KeuYA==}
engines: {node: '>=18'}
@@ -454,6 +720,12 @@ packages:
cpu: [x64]
os: [win32]
+ '@esbuild/win32-x64@0.28.1':
+ resolution: {integrity: sha512-bm4Mowrv+GXMlpWX++EcXw/iLyd1o3+bJkC2DkWXYVvgZCqD/bSj9ctZeAMC3cIxgjRVR2Dufaiu4YPxr5gW1A==}
+ engines: {node: '>=18'}
+ cpu: [x64]
+ os: [win32]
+
'@esbuild/win32-x64@0.28.2':
resolution: {integrity: sha512-5ebpxr3nWMzrL/rnUI755Jkuee0bHL/Gq0WTF9lvcpv73wAp5eu8MfBUgWK9bhWvZjj7yX8etf/8tI8Ney695g==}
engines: {node: '>=18'}
@@ -711,16 +983,64 @@ packages:
cpu: [x64]
os: [win32]
+ '@jridgewell/gen-mapping@0.3.13':
+ resolution: {integrity: sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==}
+
+ '@jridgewell/remapping@2.3.5':
+ resolution: {integrity: sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==}
+
'@jridgewell/resolve-uri@3.1.2':
resolution: {integrity: sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==}
engines: {node: '>=6.0.0'}
+ '@jridgewell/source-map@0.3.11':
+ resolution: {integrity: sha512-ZMp1V8ZFcPG5dIWnQLr3NSI1MiCU7UETdS/A0G8V/XWHvJv3ZsFqutJn1Y5RPmAPX6F3BiE397OqveU/9NCuIA==}
+
'@jridgewell/sourcemap-codec@1.6.0':
resolution: {integrity: sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw==}
+ '@jridgewell/trace-mapping@0.3.31':
+ resolution: {integrity: sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==}
+
'@jridgewell/trace-mapping@0.3.9':
resolution: {integrity: sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==}
+ '@mediabunny/aac-encoder@1.62.0':
+ resolution: {integrity: sha512-BtGaX3GVGgfQzbqeuqeKAOvHF2lhV70FO3T2orAr4Lr6YklRBOaggfRsKEp93cd6Y7DQab9GFYAuURa1DksCYw==}
+ peerDependencies:
+ mediabunny: ^1.0.0
+
+ '@mediabunny/flac-encoder@1.62.0':
+ resolution: {integrity: sha512-ZxyElacW8o61mydIXVzYClv6E0ULkXcq9Aup+GQGpuaHKaZPF1y8S5gGrs4rFkr1s0bZ7iYGYPxHeGrg7J1yjg==}
+ peerDependencies:
+ mediabunny: ^1.0.0
+
+ '@mediabunny/mp3-encoder@1.62.0':
+ resolution: {integrity: sha512-72yrJXFO+qkFurWzVpkTu7e5yVF6qFB0mmyaMcg7Ztwz5a+bSvuitkaIY82FBk5vM7euCKzFuqVwOzH0YUCcLg==}
+ peerDependencies:
+ mediabunny: ^1.0.0
+
+ '@module-federation/error-codes@0.22.0':
+ resolution: {integrity: sha512-xF9SjnEy7vTdx+xekjPCV5cIHOGCkdn3pIxo9vU7gEZMIw0SvAEdsy6Uh17xaCpm8V0FWvR0SZoK9Ik6jGOaug==}
+
+ '@module-federation/runtime-core@0.22.0':
+ resolution: {integrity: sha512-GR1TcD6/s7zqItfhC87zAp30PqzvceoeDGYTgF3Vx2TXvsfDrhP6Qw9T4vudDQL3uJRne6t7CzdT29YyVxlgIA==}
+
+ '@module-federation/runtime-tools@0.22.0':
+ resolution: {integrity: sha512-4ScUJ/aUfEernb+4PbLdhM/c60VHl698Gn1gY21m9vyC1Ucn69fPCA1y2EwcCB7IItseRMoNhdcWQnzt/OPCNA==}
+
+ '@module-federation/runtime@0.22.0':
+ resolution: {integrity: sha512-38g5iPju2tPC3KHMPxRKmy4k4onNp6ypFPS1eKGsNLUkXgHsPMBFqAjDw96iEcjri91BrahG4XcdyKi97xZzlA==}
+
+ '@module-federation/sdk@0.22.0':
+ resolution: {integrity: sha512-x4aFNBKn2KVQRuNVC5A7SnrSCSqyfIWmm1DvubjbO9iKFe7ith5niw8dqSFBekYBg2Fwy+eMg4sEFNVvCAdo6g==}
+
+ '@module-federation/webpack-bundler-runtime@0.22.0':
+ resolution: {integrity: sha512-aM8gCqXu+/4wBmJtVeMeeMN5guw3chf+2i6HajKtQv7SJfxV/f4IyNQJUeUQu9HfiAZHjqtMV5Lvq/Lvh8LdyA==}
+
+ '@napi-rs/wasm-runtime@1.0.7':
+ resolution: {integrity: sha512-SeDnOO0Tk7Okiq6DbXmmBODgOAb9dp9gjlphokTUxmt8U3liIP1ZsozBahH69j/RJv+Rfs6IwUKHTgQYJ/HBAw==}
+
'@poppinss/colors@4.1.6':
resolution: {integrity: sha512-H9xkIdFswbS8n1d6vmRd8+c10t2Qe+rZITbbDHHkQixH5+2x1FDGmi/0K+WgWiqQFKPSlIYB7jlH6Kpfn6Fleg==}
@@ -730,6 +1050,142 @@ packages:
'@poppinss/exception@1.2.3':
resolution: {integrity: sha512-dCED+QRChTVatE9ibtoaxc+WkdzOSjYTKi/+uacHWIsfodVfpsueo3+DKpgU5Px8qXjgmXkSvhXvSCz3fnP9lw==}
+ '@remotion/bundler@4.0.539':
+ resolution: {integrity: sha512-TK+O9Xd/mdPQuXvXaxND8QLW5QyAVLkD38CuB1UKVpVJEEMBxVVIP6iqdCoVm3fvwlys+KKWyXzhd8ZiyV8CIA==}
+ peerDependencies:
+ react: '>=16.8.0'
+ react-dom: '>=16.8.0'
+
+ '@remotion/captions@4.0.539':
+ resolution: {integrity: sha512-bjnrHkVVbqLaoH/Iigo+SH1O6Gd7ZtNTXBPWIedir/Xr8rKmoaaOETZukIYwuQUKGKTZcqtKBFb29HfRMfhMoQ==}
+
+ '@remotion/cli@4.0.539':
+ resolution: {integrity: sha512-QkQlmhQ7djQ+MKRgK26d0FRgQrbLdZacdRbg6LJ9dmfjqy5iu0LYXpiAmeNQTnaC9UgFrEUMd0/7XpLcFTXZ9w==}
+ hasBin: true
+ peerDependencies:
+ react: '>=16.8.0'
+ react-dom: '>=16.8.0'
+
+ '@remotion/codemods@4.0.539':
+ resolution: {integrity: sha512-X7LIdwDcgtbx+DatiI2o3P2w/7sEkL2R1GSb5/x5Ps8HCqrmZlzG+gUZHcVxcOCfbWl1TzQKcJSZe3143zBExA==}
+
+ '@remotion/compositor-darwin-arm64@4.0.539':
+ resolution: {integrity: sha512-B5jSFaTWwa7KNeSHcRGNlBzJiOfPjpvDjkSuWrUx721GiBtqUhm2oIh2147cxsESQMHlGbbk6cxMKBqUrDxrvg==}
+ cpu: [arm64]
+ os: [darwin]
+
+ '@remotion/compositor-darwin-x64@4.0.539':
+ resolution: {integrity: sha512-YneSxqpwmdXvGi6+I69o+721Cd0Ff5y5Qc6m98ahKnrX6AuR37hl+yC1oT/gQHE30POYRfSxCADTNGqY5AmP9Q==}
+ cpu: [x64]
+ os: [darwin]
+
+ '@remotion/compositor-linux-arm64-gnu@4.0.539':
+ resolution: {integrity: sha512-P3gdsInE2eLomuOZMDiCImRb12wVYNzvzuvL0nqVZ2vskhO207lVU+9B5ceb6MyaNRo6jxOzY67iaTxf+BlO7A==}
+ cpu: [arm64]
+ os: [linux]
+
+ '@remotion/compositor-linux-arm64-musl@4.0.539':
+ resolution: {integrity: sha512-NiNn1oG517uwnAE/ZT9V0uRnNeTgbbu9gEF7gbYSx3IweG8FWKP6T+DWY1zO7uX/YTCBTm6UNcRZk0Dy2kx1qw==}
+ cpu: [arm64]
+ os: [linux]
+
+ '@remotion/compositor-linux-x64-gnu@4.0.539':
+ resolution: {integrity: sha512-HecJAZPrje7UVO37E6qq/lb7GXn+bm5UQUVDji02BwIe1eMQq75fpkcOQkrZ4VdV8KnGFKAGQq3CbFiplmn/ZA==}
+ cpu: [x64]
+ os: [linux]
+
+ '@remotion/compositor-linux-x64-musl@4.0.539':
+ resolution: {integrity: sha512-yFV/JCtqhGCfCm5l7dtUGBwV3g6nCDq0GFH2u+QhRNEhZEvfcoHqhAUIL3Q0KO/pky4le90ogGoY/Gp+b3HBFA==}
+ cpu: [x64]
+ os: [linux]
+
+ '@remotion/compositor-win32-x64-msvc@4.0.539':
+ resolution: {integrity: sha512-P/MFBNuyX3sEg6VbDBbhXvqhvUd1waYODUYlaJwsk9PUTOsmQLjtGNla4cNqzPVHewfLqslx6LTnQEDD4IcD8g==}
+ cpu: [x64]
+ os: [win32]
+
+ '@remotion/elevenlabs@4.0.539':
+ resolution: {integrity: sha512-B/WswM4UWebc9kHhMGnFhQH13od27p6x480fe2UJCrljkCI5UZPKiRyzH6LIPAknyuYInds48DnQVNVaJwuqPg==}
+
+ '@remotion/fonts@4.0.539':
+ resolution: {integrity: sha512-ghG3eGO8cBsSZKdYymqXRFl8rwa4QAvDKrKLozh4yYK0kk9Ho3q0CgHjXlZzd357q1PGRT51o69iXAtGzU2m1w==}
+
+ '@remotion/licensing@4.0.539':
+ resolution: {integrity: sha512-rkKXwA+iISnUma61TudwROPTIEl2MVmiNzdKJNCywkEL379k1FPVuK+P7VeQiAKcVDM9h/Lwq67ZMfdR4r20SA==}
+
+ '@remotion/media-utils@4.0.539':
+ resolution: {integrity: sha512-/wR6QQiFdIRK7BM83ZD83sq7Vw4kKwL+J/1fQCkoEwgG3s72HJzqxJSIkIjRoYVDdrcVxsUDCsEjcKKPq6TV5w==}
+ peerDependencies:
+ react: '>=16.8.0'
+ react-dom: '>=16.8.0'
+
+ '@remotion/media@4.0.539':
+ resolution: {integrity: sha512-f0daYMw41YgSX2wMYN0+QuascXEFsFjg7oyoi2mgydGoc29tJAj3r+2rakdvozeOJIfECsT7wkJ7+wpdGW3SvQ==}
+ peerDependencies:
+ react: '>=16.8.0'
+ react-dom: '>=16.8.0'
+
+ '@remotion/openai-whisper@4.0.539':
+ resolution: {integrity: sha512-XoTIiqZRpwR6Zc9OGQD5EGJBzDVpn11dVA81YCGU/LEL1tOYcsCiG1VLV5cuRA5TSWY1EJR1MRv8omI/s8rJNA==}
+
+ '@remotion/paths@4.0.539':
+ resolution: {integrity: sha512-0ea0NVGZU+9VK7A98hSYRPYRogLlOTqWiSng+FP4gCVcVwt1V3grDPeCI5KS0lgL9SNNVP3jhgNMdTMl3M3gFA==}
+
+ '@remotion/player@4.0.539':
+ resolution: {integrity: sha512-ww8vwLgLfXD7FzOmrzO8uLMnTQWWv9LIiSmm4zQ2GRkc/9/1k6Xe708dhjMAJYo5DrQF+LHCAbh5paUuJPWGXg==}
+ peerDependencies:
+ react: '>=16.8.0'
+ react-dom: '>=16.8.0'
+
+ '@remotion/renderer@4.0.539':
+ resolution: {integrity: sha512-vMRQm88TiMzwmUlsTgc3g1GYo2U/HznWbrFoo8rhvU3wnwTr5eHRSp3SzLxn48WISn7QyE1Odh8IB7yPy/MhtQ==}
+ peerDependencies:
+ react: '>=16.8.0'
+ react-dom: '>=16.8.0'
+
+ '@remotion/sdk@4.0.539':
+ resolution: {integrity: sha512-h0D4Zstnf6y1RdYQ1wVWCU0dQuAOdS3Q0DcE2mEDNdbTh+7ObZ/hBZwJq1fXGDkKSXvIv3x/tZrNEfDlCQT/Pw==}
+ peerDependencies:
+ react: '>=16.8.0'
+ react-dom: '>=16.8.0'
+
+ '@remotion/streaming@4.0.539':
+ resolution: {integrity: sha512-KmwH0Kb1f1hWMcstTnR16eDQTpyNOHy9gY9trrO//QQ89dXUqYDyFfYVYM8F4l9tCi8AlNECwUM9x/9e9vOmeQ==}
+
+ '@remotion/studio-protocol@4.0.539':
+ resolution: {integrity: sha512-FmiVln89gMK+TBcksBaUcdgmmmaF5WnlmG1TWG+VNkvSIssP0YZFEbzBTD7Dk5NqBYzuRhM2CmI+tPiRzSzH1w==}
+
+ '@remotion/studio-server@4.0.539':
+ resolution: {integrity: sha512-qwYIMGJTmDYoGqwxOUcUyq5wnMA/uGtQYz2XKwgMmiWdZOzqZAEHQl7ywgv6hqmP0bpjA94CCrLBFj64PEJlew==}
+
+ '@remotion/studio-shared@4.0.539':
+ resolution: {integrity: sha512-mjJsTyqHsyvCCF4cCqOBXKoz9cftsui4TQZJJYS2AOukZm8zWEu8kBPEZRwg0SZ/daxNbWGecfN0BFmB2IIGLw==}
+
+ '@remotion/studio@4.0.539':
+ resolution: {integrity: sha512-Hkk678QJdnBJpbSZmUS3AgF8AjP5tPewAQr+0ytquYK8yB17IOkhKSEKLfkHQqEfvWQYq8/1zhsdCqlI8j2u0Q==}
+ peerDependencies:
+ '@remotion/video-matting': 4.0.539
+ '@remotion/whisper-webgpu': 4.0.539
+ react: '>=16.8.0'
+ react-dom: '>=16.8.0'
+ peerDependenciesMeta:
+ '@remotion/video-matting':
+ optional: true
+ '@remotion/whisper-webgpu':
+ optional: true
+
+ '@remotion/timeline-utils@4.0.539':
+ resolution: {integrity: sha512-KLoLPXrKluTsGFKH8Cl3iRXuVQBoBFStF18PRm0kEcPgARtuAz7JtcU88QKGr+zYvtvKfty9gPT7MIrbAo6rpw==}
+
+ '@remotion/web-renderer@4.0.539':
+ resolution: {integrity: sha512-pqhxOCDtyxTloosYcw6mOOOQ253qSSfmAkgJlAJ/Yfzovnw6+GeicWsMebgLAdAXp45keWAw1SWWc7KrUFZC9A==}
+ peerDependencies:
+ react: '>=18.0.0'
+ react-dom: '>=18.0.0'
+
+ '@remotion/zod-types@4.0.539':
+ resolution: {integrity: sha512-8YoyynhJFpl1Mll0zPHIsouHhH7Am22ZFEWHQJkh9qezLwJIzsZ1WUbJr5aYwAFftF9ixTf8//NzLwcDr2JHLg==}
+
'@rollup/rollup-android-arm-eabi@4.67.5':
resolution: {integrity: sha512-FdWPeulkH+FH+rBzyKBD59tuVN4tRKvmVilSJm0OcnoYsQTpd9UhD78OaPcsYqo2fX6hCwAG0YIjrDLoQ3pR3g==}
cpu: [arm]
@@ -860,6 +1316,79 @@ packages:
cpu: [x64]
os: [win32]
+ '@rspack/binding-darwin-arm64@1.7.11':
+ resolution: {integrity: sha512-oduECiZVqbO5zlVw+q7Vy65sJFth99fWPTyucwvLJJtJkPL5n17Uiql2cYP6Ijn0pkqtf1SXgK8WjiKLG5bIig==}
+ cpu: [arm64]
+ os: [darwin]
+
+ '@rspack/binding-darwin-x64@1.7.11':
+ resolution: {integrity: sha512-a1+TtTE9ap6RalgFi7FGIgkJP6O4Vy6ctv+9WGJy53E4kuqHR0RygzaiVxCI/GMc/vBT9vY23hyrpWb3d1vtXA==}
+ cpu: [x64]
+ os: [darwin]
+
+ '@rspack/binding-linux-arm64-gnu@1.7.11':
+ resolution: {integrity: sha512-P0QrGRPbTWu6RKWfN0bDtbnEps3rXH0MWIMreZABoUrVmNQKtXR6e73J3ub6a+di5s2+K0M2LJ9Bh2/H4UsDUA==}
+ cpu: [arm64]
+ os: [linux]
+
+ '@rspack/binding-linux-arm64-musl@1.7.11':
+ resolution: {integrity: sha512-6ky7R43VMjWwmx3Yx7Jl7faLBBMAgMDt+/bN35RgwjiPgsIByz65EwytUVuW9rikB43BGHvA/eqlnjLrUzNBqw==}
+ cpu: [arm64]
+ os: [linux]
+
+ '@rspack/binding-linux-x64-gnu@1.7.11':
+ resolution: {integrity: sha512-cuOJMfCOvb2Wgsry5enXJ3iT1FGUjdPqtGUBVupQlEG4ntSYsQ2PtF4wIDVasR3wdxC5nQbipOrDiN/u6fYsdQ==}
+ cpu: [x64]
+ os: [linux]
+
+ '@rspack/binding-linux-x64-musl@1.7.11':
+ resolution: {integrity: sha512-CoK37hva4AmHGh3VCsQXmGr40L36m1/AdnN5LEjUX6kx5rEH7/1nEBN6Ii72pejqDVvk9anEROmPDiPw10tpFg==}
+ cpu: [x64]
+ os: [linux]
+
+ '@rspack/binding-wasm32-wasi@1.7.11':
+ resolution: {integrity: sha512-OtrmnPUVJMxjNa3eDMfHyPdtlLRmmp/aIm0fQHlAOATbZvlGm12q7rhPW5BXTu1yh+1rQ1/uqvz+SzKEZXuJaQ==}
+ cpu: [wasm32]
+
+ '@rspack/binding-win32-arm64-msvc@1.7.11':
+ resolution: {integrity: sha512-lObFW6e5lCWNgTBNwT//yiEDbsxm9QG4BYUojqeXxothuzJ/L6ibXz6+gLMvbOvLGV3nKgkXmx8GvT9WDKR0mA==}
+ cpu: [arm64]
+ os: [win32]
+
+ '@rspack/binding-win32-ia32-msvc@1.7.11':
+ resolution: {integrity: sha512-0pYGnZd8PPqNR68zQ8skamqNAXEA1sUfXuAdYcknIIRq2wsbiwFzIc0Pov1cIfHYab37G7sSIPBiOUdOWF5Ivw==}
+ cpu: [ia32]
+ os: [win32]
+
+ '@rspack/binding-win32-x64-msvc@1.7.11':
+ resolution: {integrity: sha512-EeQXayoQk/uBkI3pdoXfQBXNIUrADq56L3s/DFyM2pJeUDrWmhfIw2UFIGkYPTMSCo8F2JcdcGM32FGJrSnU0Q==}
+ cpu: [x64]
+ os: [win32]
+
+ '@rspack/binding@1.7.11':
+ resolution: {integrity: sha512-2MGdy2s2HimsDT444Bp5XnALzNRxuBNc7y0JzyuqKbHBywd4x2NeXyhWXXoxufaCFu5PBc9Qq9jyfjW2Aeh06Q==}
+
+ '@rspack/core@1.7.11':
+ resolution: {integrity: sha512-rsD9b+Khmot5DwCMiB3cqTQo53ioPG3M/A7BySu8+0+RS7GCxKm+Z+mtsjtG/vsu4Tn2tcqCdZtA3pgLoJB+ew==}
+ engines: {node: '>=18.12.0'}
+ peerDependencies:
+ '@swc/helpers': '>=0.5.1'
+ peerDependenciesMeta:
+ '@swc/helpers':
+ optional: true
+
+ '@rspack/lite-tapable@1.1.0':
+ resolution: {integrity: sha512-E2B0JhYFmVAwdDiG14+DW0Di4Ze4Jg10Pc4/lILUrd5DRCaklduz2OvJ5HYQ6G+hd+WTzqQb3QnDNfK4yvAFYw==}
+
+ '@rspack/plugin-react-refresh@1.6.1':
+ resolution: {integrity: sha512-eqqW5645VG3CzGzFgNg5HqNdHVXY+567PGjtDhhrM8t67caxmsSzRmT5qfoEIfBcGgFkH9vEg7kzXwmCYQdQDw==}
+ peerDependencies:
+ react-refresh: '>=0.10.0 <1.0.0'
+ webpack-hot-middleware: 2.x
+ peerDependenciesMeta:
+ webpack-hot-middleware:
+ optional: true
+
'@shikijs/core@3.4.2':
resolution: {integrity: sha512-AG8vnSi1W2pbgR2B911EfGqtLE9c4hQBYkv/x7Z+Kt0VxhgQKcW7UNDVYsu9YxwV6u+OJrvdJrMq6DNWoBjihQ==}
@@ -888,18 +1417,113 @@ packages:
'@speed-highlight/core@1.2.24':
resolution: {integrity: sha512-qeW2e1l78afw8VhRPfPQ1Gjj+KU5XFQ/OFV5ti6eTa9bruO7mJyZtA4vw0ofqmA3tKCkROE9xLk3VZoeRc98nw==}
- '@types/chai@5.2.3':
- resolution: {integrity: sha512-Mw558oeA9fFbv65/y4mHtXDs9bPnFMZAL/jxdPFUpOHHIXX91mcgEHbS5Lahr+pwZFR8A7GQleRWeI6cGFC2UA==}
+ '@svgr/babel-plugin-add-jsx-attribute@8.0.0':
+ resolution: {integrity: sha512-b9MIk7yhdS1pMCZM8VeNfUlSKVRhsHZNMl5O9SfaX0l0t5wjdgu4IDzGB8bpnGBBOjGST3rRFVsaaEtI4W6f7g==}
+ engines: {node: '>=14'}
+ peerDependencies:
+ '@babel/core': ^7.0.0-0
- '@types/deep-eql@4.0.2':
+ '@svgr/babel-plugin-remove-jsx-attribute@8.0.0':
+ resolution: {integrity: sha512-BcCkm/STipKvbCl6b7QFrMh/vx00vIP63k2eM66MfHJzPr6O2U0jYEViXkHJWqXqQYjdeA9cuCl5KWmlwjDvbA==}
+ engines: {node: '>=14'}
+ peerDependencies:
+ '@babel/core': ^7.0.0-0
+
+ '@svgr/babel-plugin-remove-jsx-empty-expression@8.0.0':
+ resolution: {integrity: sha512-5BcGCBfBxB5+XSDSWnhTThfI9jcO5f0Ai2V24gZpG+wXF14BzwxxdDb4g6trdOux0rhibGs385BeFMSmxtS3uA==}
+ engines: {node: '>=14'}
+ peerDependencies:
+ '@babel/core': ^7.0.0-0
+
+ '@svgr/babel-plugin-replace-jsx-attribute-value@8.0.0':
+ resolution: {integrity: sha512-KVQ+PtIjb1BuYT3ht8M5KbzWBhdAjjUPdlMtpuw/VjT8coTrItWX6Qafl9+ji831JaJcu6PJNKCV0bp01lBNzQ==}
+ engines: {node: '>=14'}
+ peerDependencies:
+ '@babel/core': ^7.0.0-0
+
+ '@svgr/babel-plugin-svg-dynamic-title@8.0.0':
+ resolution: {integrity: sha512-omNiKqwjNmOQJ2v6ge4SErBbkooV2aAWwaPFs2vUY7p7GhVkzRkJ00kILXQvRhA6miHnNpXv7MRnnSjdRjK8og==}
+ engines: {node: '>=14'}
+ peerDependencies:
+ '@babel/core': ^7.0.0-0
+
+ '@svgr/babel-plugin-svg-em-dimensions@8.0.0':
+ resolution: {integrity: sha512-mURHYnu6Iw3UBTbhGwE/vsngtCIbHE43xCRK7kCw4t01xyGqb2Pd+WXekRRoFOBIY29ZoOhUCTEweDMdrjfi9g==}
+ engines: {node: '>=14'}
+ peerDependencies:
+ '@babel/core': ^7.0.0-0
+
+ '@svgr/babel-plugin-transform-react-native-svg@8.1.0':
+ resolution: {integrity: sha512-Tx8T58CHo+7nwJ+EhUwx3LfdNSG9R2OKfaIXXs5soiy5HtgoAEkDay9LIimLOcG8dJQH1wPZp/cnAv6S9CrR1Q==}
+ engines: {node: '>=14'}
+ peerDependencies:
+ '@babel/core': ^7.0.0-0
+
+ '@svgr/babel-plugin-transform-svg-component@8.0.0':
+ resolution: {integrity: sha512-DFx8xa3cZXTdb/k3kfPeaixecQLgKh5NVBMwD0AQxOzcZawK4oo1Jh9LbrcACUivsCA7TLG8eeWgrDXjTMhRmw==}
+ engines: {node: '>=12'}
+ peerDependencies:
+ '@babel/core': ^7.0.0-0
+
+ '@svgr/babel-preset@8.1.0':
+ resolution: {integrity: sha512-7EYDbHE7MxHpv4sxvnVPngw5fuR6pw79SkcrILHJ/iMpuKySNCl5W1qcwPEpU+LgyRXOaAFgH0KhwD18wwg6ug==}
+ engines: {node: '>=14'}
+ peerDependencies:
+ '@babel/core': ^7.0.0-0
+
+ '@svgr/core@8.1.0':
+ resolution: {integrity: sha512-8QqtOQT5ACVlmsvKOJNEaWmRPmcojMOzCz4Hs2BGG/toAp/K38LcsMRyLp349glq5AzJbCEeimEoxaX6v/fLrA==}
+ engines: {node: '>=14'}
+
+ '@svgr/hast-util-to-babel-ast@8.0.0':
+ resolution: {integrity: sha512-EbDKwO9GpfWP4jN9sGdYwPBU0kdomaPIL2Eu4YwmgP+sJeXT+L7bMwJUBnhzfH8Q2qMBqZ4fJwpCyYsAN3mt2Q==}
+ engines: {node: '>=14'}
+
+ '@svgr/plugin-jsx@8.1.0':
+ resolution: {integrity: sha512-0xiIyBsLlr8quN+WyuxooNW9RJ0Dpr8uOnH/xrCVO8GLUcwHISwj1AG0k+LFzteTkAA0GbX0kj9q6Dk70PTiPA==}
+ engines: {node: '>=14'}
+ peerDependencies:
+ '@svgr/core': '*'
+
+ '@tanstack/react-virtual@3.14.9':
+ resolution: {integrity: sha512-qZyr0FZDP8rDC4WBhsryIZmAd9bveJvFGUJJtskWaew6/0dTRS6wZxnR6VQ5bY2KwL3LjerrHqQLk3a0GKcPXQ==}
+ 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
+
+ '@tanstack/virtual-core@3.17.7':
+ resolution: {integrity: sha512-bp+v10y65sp2H7WpWfIMyxTNfl8ZVfxFTLRjPIFRryi6FV/J33z4IS53WO4pTk36KlvJ4iLiQz+oaydDC1xbcA==}
+
+ '@tybys/wasm-util@0.10.4':
+ resolution: {integrity: sha512-W3c4gRigFS0T/Ma4qIYF3GDAc5AQdHb1yL5znJT1Zv1YaD9Kitx656wBjvr19qbiosmZT8lWDM5BEMynUqX65A==}
+
+ '@types/chai@5.2.3':
+ resolution: {integrity: sha512-Mw558oeA9fFbv65/y4mHtXDs9bPnFMZAL/jxdPFUpOHHIXX91mcgEHbS5Lahr+pwZFR8A7GQleRWeI6cGFC2UA==}
+
+ '@types/deep-eql@4.0.2':
resolution: {integrity: sha512-c9h9dVVMigMPc4bwTvC5dxqtqJZwQPePsWjPlpSOnojbor6pGqdk541lfA7AqFQr5pB1BRdq0juY9db81BwyFw==}
+ '@types/dom-mediacapture-transform@0.1.12':
+ resolution: {integrity: sha512-d7/QsLRwF864A5mgIM/YrfiglHoYn7zgCcAoJgW404r+2DwnNr7EBbLnCWpmOMgH8y0te73L1AV6H1bmauaWFw==}
+
+ '@types/dom-webcodecs@0.1.13':
+ resolution: {integrity: sha512-O5hkiFIcjjszPIYyUSyvScyvrBoV3NOEEZx/pMlsu44TKzWNkLVBBxnxJz42in5n3QIolYOcBYFCPZZ0h8SkwQ==}
+
+ '@types/eslint-scope@3.7.7':
+ resolution: {integrity: sha512-MzMFlSLBqNF2gcHWO0G1vP/YQyfvrxZ0bF+u7mzUdZ1/xK4A4sru+nraZz5i3iEIk1l1uyicaDVTB4QbbEkAYg==}
+
+ '@types/eslint@9.6.1':
+ resolution: {integrity: sha512-FXx2pKgId/WyYo2jXw63kk7/+TY7u7AziEJxJAnSFzHlqTAS3Ync6SvgYAN/k4/PQpnnVuzoMuVnByKK2qp0ag==}
+
'@types/estree@1.0.10':
resolution: {integrity: sha512-lTyOMnOcmRBzdCv6/4zUZCrEhV0xrqQiUZBZtVcbmLHBXKLnN8q89v/wKRF/Q0HbwVsqbIG3o5HDoFl9sduM+g==}
'@types/hast@3.0.5':
resolution: {integrity: sha512-rp/ezSWaD1m44dPKICGhiskI13nVr7qTloFwDa/IYkhhf5nzwP+zIQcIJh3WIFSBOy/H1PzB40jPjMDksN4F+g==}
+ '@types/json-schema@7.0.15':
+ resolution: {integrity: sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==}
+
'@types/mdast@4.0.4':
resolution: {integrity: sha512-kGaNbPh1k7AFzgpud/gMdvIm5xuECykRR+JnWKQno9TAXVa6WIVCGTPvYGekIDL4uwCZQSYbUxNBSb1aUo79oA==}
@@ -909,6 +1533,9 @@ packages:
'@types/react@19.2.2':
resolution: {integrity: sha512-6mDvHUFSjyT2B2yeNx2nUgMxh9LtOWvkhIU3uePn2I2oyNymUAX1NIsdgviM4CH+JSrp2D2hsMvJOkxY+0wNRA==}
+ '@types/react@19.3.0':
+ resolution: {integrity: sha512-N0rFCuH9YoxG9/m61l9MfpJKfmLOVU0em7ipIz6TRgSSkvReLB9vL85GB+yr8Bs5leqpvg96JSwF4ZS1s4viQg==}
+
'@types/unist@3.0.3':
resolution: {integrity: sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q==}
@@ -947,6 +1574,63 @@ packages:
'@vitest/utils@3.2.7':
resolution: {integrity: sha512-x6BDOd7dyo3PFLY3I9/HJ25X/6OurhGXk2/B9gOZNPF7XDVjeBK4k01lQE5uvDpbuheErh91qYuE1E2OEjK3Rw==}
+ '@webassemblyjs/ast@1.14.1':
+ resolution: {integrity: sha512-nuBEDgQfm1ccRp/8bCQrx1frohyufl4JlbMMZ4P1wpeOfDhF6FQkxZJ1b/e+PLwr6X1Nhw6OLme5usuBWYBvuQ==}
+
+ '@webassemblyjs/floating-point-hex-parser@1.13.2':
+ resolution: {integrity: sha512-6oXyTOzbKxGH4steLbLNOu71Oj+C8Lg34n6CqRvqfS2O71BxY6ByfMDRhBytzknj9yGUPVJ1qIKhRlAwO1AovA==}
+
+ '@webassemblyjs/helper-api-error@1.13.2':
+ resolution: {integrity: sha512-U56GMYxy4ZQCbDZd6JuvvNV/WFildOjsaWD3Tzzvmw/mas3cXzRJPMjP83JqEsgSbyrmaGjBfDtV7KDXV9UzFQ==}
+
+ '@webassemblyjs/helper-buffer@1.14.1':
+ resolution: {integrity: sha512-jyH7wtcHiKssDtFPRB+iQdxlDf96m0E39yb0k5uJVhFGleZFoNw1c4aeIcVUPPbXUVJ94wwnMOAqUHyzoEPVMA==}
+
+ '@webassemblyjs/helper-numbers@1.13.2':
+ resolution: {integrity: sha512-FE8aCmS5Q6eQYcV3gI35O4J789wlQA+7JrqTTpJqn5emA4U2hvwJmvFRC0HODS+3Ye6WioDklgd6scJ3+PLnEA==}
+
+ '@webassemblyjs/helper-wasm-bytecode@1.13.2':
+ resolution: {integrity: sha512-3QbLKy93F0EAIXLh0ogEVR6rOubA9AoZ+WRYhNbFyuB70j3dRdwH9g+qXhLAO0kiYGlg3TxDV+I4rQTr/YNXkA==}
+
+ '@webassemblyjs/helper-wasm-section@1.14.1':
+ resolution: {integrity: sha512-ds5mXEqTJ6oxRoqjhWDU83OgzAYjwsCV8Lo/N+oRsNDmx/ZDpqalmrtgOMkHwxsG0iI//3BwWAErYRHtgn0dZw==}
+
+ '@webassemblyjs/ieee754@1.13.2':
+ resolution: {integrity: sha512-4LtOzh58S/5lX4ITKxnAK2USuNEvpdVV9AlgGQb8rJDHaLeHciwG4zlGr0j/SNWlr7x3vO1lDEsuePvtcDNCkw==}
+
+ '@webassemblyjs/leb128@1.13.2':
+ resolution: {integrity: sha512-Lde1oNoIdzVzdkNEAWZ1dZ5orIbff80YPdHx20mrHwHrVNNTjNr8E3xz9BdpcGqRQbAEa+fkrCb+fRFTl/6sQw==}
+
+ '@webassemblyjs/utf8@1.13.2':
+ resolution: {integrity: sha512-3NQWGjKTASY1xV5m7Hr0iPeXD9+RDobLll3T9d2AO+g3my8xy5peVyjSag4I50mR1bBSN/Ct12lo+R9tJk0NZQ==}
+
+ '@webassemblyjs/wasm-edit@1.14.1':
+ resolution: {integrity: sha512-RNJUIQH/J8iA/1NzlE4N7KtyZNHi3w7at7hDjvRNm5rcUXa00z1vRz3glZoULfJ5mpvYhLybmVcwcjGrC1pRrQ==}
+
+ '@webassemblyjs/wasm-gen@1.14.1':
+ resolution: {integrity: sha512-AmomSIjP8ZbfGQhumkNvgC33AY7qtMCXnN6bL2u2Js4gVCg8fp735aEiMSBbDR7UQIj90n4wKAFUSEd0QN2Ukg==}
+
+ '@webassemblyjs/wasm-opt@1.14.1':
+ resolution: {integrity: sha512-PTcKLUNvBqnY2U6E5bdOQcSM+oVP/PmrDY9NzowJjislEjwP/C4an2303MCVS2Mg9d3AJpIGdUFIQQWbPds0Sw==}
+
+ '@webassemblyjs/wasm-parser@1.14.1':
+ resolution: {integrity: sha512-JLBl+KZ0R5qB7mCnud/yyX08jWFw5MsoalJ1pQ4EdFlgj9VdXKGuENGsiCIjegI1W7p91rUlcB/LB5yRJKNTcQ==}
+
+ '@webassemblyjs/wast-printer@1.14.1':
+ resolution: {integrity: sha512-kPSSXE6De1XOR820C90RIo2ogvZG+c3KiHzqUoO/F34Y2shGzesfqv7o57xrxovZJH/MetF5UjroJ/R/3isoiw==}
+
+ '@xtuc/ieee754@1.2.0':
+ resolution: {integrity: sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA==}
+
+ '@xtuc/long@4.2.2':
+ resolution: {integrity: sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==}
+
+ acorn-import-phases@1.0.4:
+ resolution: {integrity: sha512-wKmbr/DDiIXzEOiWrTTUcDm24kQ2vGfZQvM2fwg2vXqR5uW6aapr7ObPtj1th32b9u90/Pf4AItvdTh42fBmVQ==}
+ engines: {node: '>=10.13.0'}
+ peerDependencies:
+ acorn: ^8.14.0
+
acorn-walk@8.3.2:
resolution: {integrity: sha512-cjkyv4OtNCIeqhHrfS81QWXoCBPExR/J62oyEqepVw8WaQeSqpW2uhuLPh1m9eWhDuOo/jUXVTlifvesOWp/4A==}
engines: {node: '>=0.4.0'}
@@ -956,20 +1640,72 @@ packages:
engines: {node: '>=0.4.0'}
hasBin: true
+ acorn@8.19.0:
+ resolution: {integrity: sha512-oJlA3XiRm7Cyk6qFD2Jn8ak9B7jSy0qy00ADO3+8dpT0LSjFihQYv4C02LFCSYJV3Q37xYwwRy5m+IpIiUzqWw==}
+ engines: {node: '>=0.4.0'}
+ hasBin: true
+
+ ajv-formats@3.0.1:
+ resolution: {integrity: sha512-8iUql50EUR+uUcdRQ3HDqa6EVyo3docL8g5WJ3FNcWmu62IbkGUue/pEyLBW8VGKKucTPgqeks4fIU1DA4yowQ==}
+ peerDependencies:
+ ajv: ^8.0.0
+ peerDependenciesMeta:
+ ajv:
+ optional: true
+
+ ajv-keywords@5.1.0:
+ resolution: {integrity: sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw==}
+ peerDependencies:
+ ajv: ^8.8.2
+
+ ajv@8.20.0:
+ resolution: {integrity: sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA==}
+
+ argparse@2.0.1:
+ resolution: {integrity: sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==}
+
assertion-error@2.0.1:
resolution: {integrity: sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==}
engines: {node: '>=12'}
+ ast-types@0.16.1:
+ resolution: {integrity: sha512-6t10qk83GOG8p0vKmaCr8eiilZwO171AvbROMtvvNiwrTly62t+7XkA8RdIIVbpMhCASAsxgAzdRSwh6nw/5Dg==}
+ engines: {node: '>=4'}
+
+ baseline-browser-mapping@2.11.37:
+ resolution: {integrity: sha512-QYph+vfurmaxhNwi9FprfmtkT5cx2Keg8FzZ0vnjO8ukscIybVyZGMFwdllKGlTI6qyU8ck43OM9UXh+IFJihQ==}
+ engines: {node: '>=6.0.0'}
+ hasBin: true
+
birpc@0.2.14:
resolution: {integrity: sha512-37FHE8rqsYM5JEKCnXFyHpBCzvgHEExwVVTq+nUmloInU7l8ezD1TpOhKpS8oe1DTYFqEK27rFZVKG43oTqXRA==}
blake3-wasm@2.1.5:
resolution: {integrity: sha512-F1+K8EbfOZE49dtoPtmxUQrpXaBIl3ICvasLh+nJta0xkz+9kF/7uet9fLnwKqhDrmj6g+6K3Tw9yQPUg2ka5g==}
+ browserslist@4.29.5:
+ resolution: {integrity: sha512-khTmKu5NGYTotqcYo8Bew2k4RAE9PuXRSFRXG2lQBrCEQHyeQ/vX6gKMxfokwywBsLiXZMnHsmWMG1pnO8J7uQ==}
+ engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7}
+ hasBin: true
+
+ buffer-from@1.1.2:
+ resolution: {integrity: sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==}
+
cac@6.7.14:
resolution: {integrity: sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==}
engines: {node: '>=8'}
+ callsites@3.1.0:
+ resolution: {integrity: sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==}
+ engines: {node: '>=6'}
+
+ camelcase@6.3.0:
+ resolution: {integrity: sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==}
+ engines: {node: '>=10'}
+
+ caniuse-lite@1.0.30001826:
+ resolution: {integrity: sha512-wTB+9tIbLro/BCXwLuNV1meHE4L9dS6dArMDwgYfNBPMYScqClHyGunhkCSDtHhe/69Xl0sHlKgBVZ+fNsYtWA==}
+
ccount@2.0.1:
resolution: {integrity: sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg==}
@@ -987,6 +1723,10 @@ packages:
resolution: {integrity: sha512-PAJdDJusoxnwm1VwW07VWwUN1sl7smmC3OKggvndJFadxxDRyFJBX/ggnu/KE4kQAB7a3Dp8f/YXC1FlUprWmA==}
engines: {node: '>= 16'}
+ chrome-trace-event@1.0.4:
+ resolution: {integrity: sha512-rNjApaLzuwaOTjCiT8lSDdGN1APCiqkChLMJxJPWLunPAt5fy8xgU9/jNOchV84wfIxrA0lRQB7oCT8jrn/wrQ==}
+ engines: {node: '>=6.0'}
+
cjs-module-lexer@1.4.3:
resolution: {integrity: sha512-9z8TZaGM1pfswYeXrUpzPrkx8UnWYdhJclsiYMm6x/w5+nN+8Tf/LnAgfLGQCm59qAOxU8WwHEq2vNwF6i4j+Q==}
@@ -1007,10 +1747,41 @@ packages:
comma-separated-tokens@2.0.3:
resolution: {integrity: sha512-Fu4hJdvzeylCfQPp9SGWidpzrMs7tTrlu6Vb8XGaRGck8QSNZJJp538Wrb60Lax4fPwR64ViY468OIUTbRlGZg==}
+ commander@2.20.3:
+ resolution: {integrity: sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==}
+
+ convert-source-map@2.0.0:
+ resolution: {integrity: sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==}
+
cookie@1.1.1:
resolution: {integrity: sha512-ei8Aos7ja0weRpFzJnEA9UHJ/7XQmqglbRwnf2ATjcB9Wq874VKH9kfjjirM6UhU2/E5fFYadylyhFldcqSidQ==}
engines: {node: '>=18'}
+ cosmiconfig@8.3.6:
+ resolution: {integrity: sha512-kcZ6+W5QzcJ3P1Mt+83OUv/oHFqZHIx8DuxG6eZ5RGMERoLqp4BuGjhHLYGK+Kf5XVkQvqBSmAy/nGWN3qDgEA==}
+ engines: {node: '>=14'}
+ peerDependencies:
+ typescript: '>=4.9.5'
+ peerDependenciesMeta:
+ typescript:
+ optional: true
+
+ cross-spawn@7.0.6:
+ resolution: {integrity: sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==}
+ engines: {node: '>= 8'}
+
+ css-loader@7.1.4:
+ resolution: {integrity: sha512-vv3J9tlOl04WjiMvHQI/9tmIrCxVrj6PFbHemBB1iihpeRbi/I4h033eoFIhwxBBqLhI0KYFS7yvynBFhIZfTw==}
+ engines: {node: '>= 18.12.0'}
+ peerDependencies:
+ '@rspack/core': 0.x || ^1.0.0 || ^2.0.0-0
+ webpack: ^5.27.0
+ peerDependenciesMeta:
+ '@rspack/core':
+ optional: true
+ webpack:
+ optional: true
+
csstype@3.2.3:
resolution: {integrity: sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==}
@@ -1027,6 +1798,10 @@ packages:
resolution: {integrity: sha512-h5k/5U50IJJFpzfL6nO9jaaumfjO/f2NjK/oYB2Djzm4p9L+3T9qWpZqZ2hAbLPuuYq9wrU08WQyBTL5GbPk5Q==}
engines: {node: '>=6'}
+ define-lazy-prop@2.0.0:
+ resolution: {integrity: sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og==}
+ engines: {node: '>=8'}
+
defu@6.1.7:
resolution: {integrity: sha512-7z22QmUWiQ/2d0KkdYmANbRUVABpZ9SNYyH5vx6PZ+nE5bcC0l7uFvEfHlyld/HcGBFTL536ClDt3DEcSlEJAQ==}
@@ -1044,25 +1819,90 @@ packages:
devlop@1.1.0:
resolution: {integrity: sha512-RWmIqhcFf1lRYBvNmr7qTNuyCt/7/ns2jbpp1+PalgE/rDQcBT0fioSMUpJ93irlUhC5hrg4cYqe6U+0ImW0rA==}
+ dot-case@3.0.4:
+ resolution: {integrity: sha512-Kv5nKlh6yRrdrGvxeJ2e5y2eRUpkUosIW4A2AS38zwSz27zu7ufDwQPi5Jhs3XAlGNetl3bmnGhQsMtkKJnj3w==}
+
+ dotenv@17.3.1:
+ resolution: {integrity: sha512-IO8C/dzEb6O3F9/twg6ZLXz164a2fhTnEWb95H23Dm4OuN+92NmEAlTrupP9VW6Jm3sO26tQlqyvyi4CsnY9GA==}
+ engines: {node: '>=12'}
+
+ electron-to-chromium@1.5.485:
+ resolution: {integrity: sha512-m3uadzR0Z+sR19HGWgfxoZcKv9hE/edVM9OZ+FJ4wNRyfuFtkwZJIDoehEty5sisYVwmge8lKV1tenWOyClVgw==}
+
+ enhanced-resolve@5.27.0:
+ resolution: {integrity: sha512-Do6BB2xzlcc/odFg+XEYyneAx4T/WfywO71yw9ePS2tVfRsf7JVR4mUeELadIeHzixkzbG5DpluiEFPi2WGfYQ==}
+ engines: {node: '>=10.13.0'}
+
+ entities@4.5.0:
+ resolution: {integrity: sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==}
+ engines: {node: '>=0.12'}
+
+ error-ex@1.3.4:
+ resolution: {integrity: sha512-sqQamAnR14VgCr1A618A3sGrygcpK+HEbenA/HiEAkkUwcZIIB/tgWqHFxWgOyDh4nB4JCRimh79dR5Ywc9MDQ==}
+
error-stack-parser-es@1.0.5:
resolution: {integrity: sha512-5qucVt2XcuGMcEGgWI7i+yZpmpByQ8J1lHhcL7PwqCwu9FPP3VUXzT4ltHe5i2z9dePwEHcDVOAfSnHsOlCXRA==}
+ error-stack-parser@2.1.4:
+ resolution: {integrity: sha512-Sk5V6wVazPhq5MhpO+AUxJn5x7XSXGl1R93Vn7i+zS15KDVxQijejNCrz8340/2bgLBjR9GtEG8ZVKONDjcqGQ==}
+
es-module-lexer@1.7.0:
resolution: {integrity: sha512-jEQoCwk8hyb2AZziIOLhDqpm5+2ww5uIE6lkO/6jcOCusfk6LhMHpXXfBLXTZ7Ydyt0j4VoUQv6uGNYbdW+kBA==}
+ es-module-lexer@2.3.2:
+ resolution: {integrity: sha512-poHGpORABojJJucnV9KbOavETW8lBVnphkW77ER5/BQ5Fz7oXSoCNek7IH3vR5nRjdsEz926ibFYX8KtLQmdyw==}
+
esbuild@0.25.4:
resolution: {integrity: sha512-8pgjLUcUjcgDg+2Q4NYXnPbo/vncAY4UmyaCm0jZevERqCHZIaWwdJHkf8XQtu4AxSKCdvrUbT0XUr1IdZzI8Q==}
engines: {node: '>=18'}
hasBin: true
+ esbuild@0.28.1:
+ resolution: {integrity: sha512-HrJrvZv5ayxBzPfwphOoNzkzOIIlifzk0KJrGK2c8R4+LKpMtpYLQeUdjnwjWv/LZlkH2laZk+4w78pi99D4Vw==}
+ engines: {node: '>=18'}
+ hasBin: true
+
esbuild@0.28.2:
resolution: {integrity: sha512-HKVLS8dvII+xoKW9kmqxbRKrnWEXfJJr/FZhhJmiqIB0e053QNYFqOBouTMO/k5sID4MvCiUCvv8b9M4h32wIA==}
engines: {node: '>=18'}
hasBin: true
+ escalade@3.2.0:
+ resolution: {integrity: sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==}
+ engines: {node: '>=6'}
+
+ eslint-scope@5.1.1:
+ resolution: {integrity: sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==}
+ engines: {node: '>=8.0.0'}
+
+ esprima@4.0.1:
+ resolution: {integrity: sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==}
+ engines: {node: '>=4'}
+ hasBin: true
+
+ esrecurse@4.3.0:
+ resolution: {integrity: sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==}
+ engines: {node: '>=4.0'}
+
+ estraverse@4.3.0:
+ resolution: {integrity: sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==}
+ engines: {node: '>=4.0'}
+
+ estraverse@5.3.0:
+ resolution: {integrity: sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==}
+ engines: {node: '>=4.0'}
+
estree-walker@3.0.3:
resolution: {integrity: sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==}
+ events@3.3.0:
+ resolution: {integrity: sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==}
+ engines: {node: '>=0.8.x'}
+
+ execa@5.1.1:
+ resolution: {integrity: sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==}
+ engines: {node: '>=10'}
+
exit-hook@2.2.1:
resolution: {integrity: sha512-eNTPlAD67BmP31LDINZ3U7HSF8l57TxOY2PmBJ1shpCvpnxBF93mWCE8YHBnXs8qiUZJc9WDcWIeC3a2HIAMfw==}
engines: {node: '>=6'}
@@ -1074,6 +1914,12 @@ packages:
exsolve@1.2.0:
resolution: {integrity: sha512-h1pQPR9XoeSMdntRNCjyTznaume4UpfXrULBnlkZ2CUM/G5eSa+pBByGldO5uR8dxbPC+OuJXsPPNf+JZ81ADg==}
+ fast-deep-equal@3.1.3:
+ resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==}
+
+ fast-uri@3.1.9:
+ resolution: {integrity: sha512-hS/0Wt3Ya043oKXs0sIxrMpKQITXhMLIrVAKKXi4gozGC9v7YRWVnXIZzjNPTO02M9BdxLCWqK1yRXgNziVyJQ==}
+
fdir@6.5.0:
resolution: {integrity: sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==}
engines: {node: '>=12.0.0'}
@@ -1083,40 +1929,146 @@ packages:
picomatch:
optional: true
+ fs-monkey@1.0.3:
+ resolution: {integrity: sha512-cybjIfiiE+pTWicSCLFHSrXZ6EilF30oh91FDP9S2B051prEa7QWfrVTQm10/dDpswBDXZugPa1Ogu8Yh+HV0Q==}
+
fsevents@2.3.3:
resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==}
engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0}
os: [darwin]
+ gensync@1.0.0-beta.2:
+ resolution: {integrity: sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==}
+ engines: {node: '>=6.9.0'}
+
+ get-stream@6.0.1:
+ resolution: {integrity: sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==}
+ engines: {node: '>=10'}
+
glob-to-regexp@0.4.1:
resolution: {integrity: sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==}
+ graceful-fs@4.2.12:
+ resolution: {integrity: sha512-iuyGF2E4oafQfPsRrG2wtY2ILupMhvtdrhzrxB+0VcjsPpSPttpfYdjnGFGsTi5MaJFjI1jOKHPQ6UTbTj9TAw==}
+
happy-dom@18.0.1:
resolution: {integrity: sha512-qn+rKOW7KWpVTtgIUi6RVmTBZJSe2k0Db0vh1f7CWrWclkkc7/Q+FrOfkZIb2eiErLyqu5AXEzE7XthO9JVxRA==}
engines: {node: '>=20.0.0'}
+ has-flag@4.0.0:
+ resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==}
+ engines: {node: '>=8'}
+
hast-util-to-html@9.0.6:
resolution: {integrity: sha512-1SZUxCN3TtJAE7e2BQN2MBHsoZ1gnmi9GoCP5Di59CSWptIezSAW09yDZyVbanb78V9eCwrKqdQsjtfVTxYHWA==}
hast-util-whitespace@3.0.0:
resolution: {integrity: sha512-88JUN06ipLwsnv+dVn+OIYOvAuvBMy/Qoi6O7mQHxdPXpjy+Cd6xRkWwux7DKO+4sYILtLBRIKgsdpS2gQc7qw==}
+ html-entities@2.6.0:
+ resolution: {integrity: sha512-kig+rMn/QOVRvr7c86gQ8lWXq+Hkv6CbAH1hLu+RG338StTpE8Z0b44SDVaqVu7HGKf27frdmUYEs9hTUX/cLQ==}
+
html-void-elements@3.0.0:
resolution: {integrity: sha512-bEqo66MRXsUGxWHV5IP0PUiAWwoEjba4VCzg0LjFJBpchPaTfyfCKTG6bc5F8ucKec3q5y6qOdGyYTSBEvhCrg==}
+ human-signals@2.1.0:
+ resolution: {integrity: sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==}
+ engines: {node: '>=10.17.0'}
+
+ icss-utils@5.1.0:
+ resolution: {integrity: sha512-soFhflCVWLfRNOPU3iv5Z9VUdT44xFRbzjLsEzSr5AQmgqPMTHdU3PMT1Cf1ssx8fLNJDA1juftYl+PUcv3MqA==}
+ engines: {node: ^10 || ^12 || >= 14}
+ peerDependencies:
+ postcss: ^8.1.0
+
+ import-fresh@3.3.1:
+ resolution: {integrity: sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==}
+ engines: {node: '>=6'}
+
+ is-arrayish@0.2.1:
+ resolution: {integrity: sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==}
+
is-arrayish@0.3.4:
resolution: {integrity: sha512-m6UrgzFVUYawGBh1dUsWR5M2Clqic9RVXC/9f8ceNlv2IcO9j9J/z8UoCLPqtsPBFNzEpfR3xftohbfqDx8EQA==}
+ is-docker@2.2.1:
+ resolution: {integrity: sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==}
+ engines: {node: '>=8'}
+ hasBin: true
+
+ is-stream@2.0.1:
+ resolution: {integrity: sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==}
+ engines: {node: '>=8'}
+
+ is-wsl@2.2.0:
+ resolution: {integrity: sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==}
+ engines: {node: '>=8'}
+
+ isexe@2.0.0:
+ resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==}
+
+ jest-worker@27.5.1:
+ resolution: {integrity: sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==}
+ engines: {node: '>= 10.13.0'}
+
+ js-tokens@4.0.0:
+ resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==}
+
js-tokens@9.0.1:
resolution: {integrity: sha512-mxa9E9ITFOt0ban3j6L5MpjwegGz6lBQmM1IJkWeBZGcMxto50+eWdjC/52xDbS2vy0k7vIMK0Fe2wfL9OQSpQ==}
+ js-yaml@4.3.2:
+ resolution: {integrity: sha512-SFNOvSJ+Dgf/9An904Yx+CgSlIPCkIpao4qo51lpee25TIRejdH3rhR4EZMGoNx3/TP3O+wzWuiTFl4sqbltzA==}
+ hasBin: true
+
+ jsesc@3.1.0:
+ resolution: {integrity: sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==}
+ engines: {node: '>=6'}
+ hasBin: true
+
+ json-parse-even-better-errors@2.3.1:
+ resolution: {integrity: sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==}
+
+ json-schema-traverse@1.0.0:
+ resolution: {integrity: sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==}
+
+ json5@2.2.3:
+ resolution: {integrity: sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==}
+ engines: {node: '>=6'}
+ hasBin: true
+
+ kiwi-schema@0.5.0:
+ resolution: {integrity: sha512-X+FpfU0yTEtc6aTHS7VwbOpvQwRt70+pXXWRI5fd6CvWhe7pSVC854TVo4Zo0x5/wwcWj+/9KUlXpdcP0dY9AA==}
+ hasBin: true
+
+ kleur@3.0.3:
+ resolution: {integrity: sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==}
+ engines: {node: '>=6'}
+
kleur@4.1.5:
resolution: {integrity: sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==}
engines: {node: '>=6'}
+ lines-and-columns@1.2.4:
+ resolution: {integrity: sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==}
+
+ loader-runner@4.3.2:
+ resolution: {integrity: sha512-DFEqQ3ihfS9blba08cLfYf1NRAIEm+dDjic073DRDc3/JspI/8wYmtDsHwd3+4hwvdxSK7PGaElfTmm0awWJ4w==}
+ engines: {node: '>=6.11.5'}
+
loupe@3.2.1:
resolution: {integrity: sha512-CdzqowRJCeLU72bHvWqwRBBlLcMEtIvGrlvef74kMnV2AolS9Y8xUv1I0U/MNAWMhBlKIoyuEgoJ0t/bbwHbLQ==}
+ lower-case@2.0.2:
+ resolution: {integrity: sha512-7fm3l3NAF9WfN6W3JOmf5drwpVqX78JtoGJ3A6W0a6ZnldM41w2fV5D490psKFTpMds8TJse/eHLFFsNHHjHgg==}
+
+ lru-cache@5.1.1:
+ resolution: {integrity: sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==}
+
+ lru-cache@6.0.0:
+ resolution: {integrity: sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==}
+ engines: {node: '>=10'}
+
magic-string@0.30.21:
resolution: {integrity: sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==}
@@ -1128,6 +2080,16 @@ packages:
mdast-util-to-hast@13.2.1:
resolution: {integrity: sha512-cctsq2wp5vTsLIcaymblUriiTcZd0CwWtCbLvrOzYCDZoWyMNV8sZ7krj09FSnsiJi3WVsHLM4k6Dq/yaPyCXA==}
+ mediabunny@1.62.0:
+ resolution: {integrity: sha512-D8E8BDxjCyqyrGj074jLRQNgilDW5izJu8o9pg7THMYMIZBL1Fao5hOtdDPDfA+nSnk68tMa8IaCJmz8hSpJpw==}
+
+ memfs@3.4.3:
+ resolution: {integrity: sha512-eivjfi7Ahr6eQTn44nvTnR60e4a1Fs1Via2kCR5lHo/kyNoiMWaXCNJ/GpSd0ilXas2JSOl9B5FTIhflXu0hlg==}
+ engines: {node: '>= 4.0.0'}
+
+ merge-stream@2.0.0:
+ resolution: {integrity: sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==}
+
micromark-util-character@2.1.1:
resolution: {integrity: sha512-wv8tdUTJ3thSFFFJKtpYKOYiGP2+v96Hvk4Tu8KpCAsTMs6yi+nVmGh1syvSCsaxz45J6Jbw+9DD6g97+NV67Q==}
@@ -1143,11 +2105,23 @@ packages:
micromark-util-types@2.0.3:
resolution: {integrity: sha512-oxB2Ik03hI0gv+VNn9tnh1t1YEe9MDPptViAEgfdf3YQHsn0pzGTgCdlSCJXcwhqm8phaEuM7zeEu3QQzVBrPg==}
+ mime-db@1.52.0:
+ resolution: {integrity: sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==}
+ engines: {node: '>= 0.6'}
+
+ mime-types@2.1.35:
+ resolution: {integrity: sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==}
+ engines: {node: '>= 0.6'}
+
mime@3.0.0:
resolution: {integrity: sha512-jSCU7/VB1loIWBZe14aEYHU/+1UMEHoaO7qxCOVJOw9GgH72VAWppxNcjU+x9a2k3GSIBXNKxXQFqRvvZ7vr3A==}
engines: {node: '>=10.0.0'}
hasBin: true
+ mimic-fn@2.1.0:
+ resolution: {integrity: sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==}
+ engines: {node: '>=6'}
+
miniflare@4.20250906.0:
resolution: {integrity: sha512-T/RWn1sa0ien80s6NjU+Un/tj12gR6wqScZoiLeMJDD4/fK0UXfnbWXJDubnUED8Xjm7RPQ5ESYdE+mhPmMtuQ==}
engines: {node: '>=18.0.0'}
@@ -1157,6 +2131,9 @@ packages:
resolution: {integrity: sha512-pYZ2n85+FYUb7s0oIVcQxO63/+wgaknm+A/kQjctJqshvHPJs3UtnzaIZ7xrrHMOk8atD7yAfauf6G9VAv7Upg==}
engines: {node: '>=22.0.0'}
+ minimist@1.2.6:
+ resolution: {integrity: sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==}
+
ms@2.1.3:
resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==}
@@ -1165,18 +2142,56 @@ packages:
engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1}
hasBin: true
+ neo-async@2.6.2:
+ resolution: {integrity: sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==}
+
+ no-case@3.0.4:
+ resolution: {integrity: sha512-fgAN3jGAh+RoxUGZHTSOLJIqUc2wmoBwGR4tbpNAKmmovFoWq0OdRkb0VkldReO2a2iBT/OEulG9XSUc10r3zg==}
+
+ node-releases@2.0.63:
+ resolution: {integrity: sha512-6li2QanLsAXpIH2R6j77MzRyvOyrvdTqlKtO4CgBdHGNvN99ZZfyxszHc5o5+IZBWD5u6Hzwg83JoGXmqZNG9Q==}
+ engines: {node: '>=18'}
+
+ npm-run-path@4.0.1:
+ resolution: {integrity: sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==}
+ engines: {node: '>=8'}
+
ohash@2.0.12:
resolution: {integrity: sha512-65S/5gk9YSsaRjcyf7Nfa6h/d3E8/1gslpXfI4W7Dxn/oap8IKRuNT5VXkLQ1YFKIEg4apRY4Pj6aiwFzrDdmw==}
+ onetime@5.1.2:
+ resolution: {integrity: sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==}
+ engines: {node: '>=6'}
+
oniguruma-parser@0.12.2:
resolution: {integrity: sha512-6HVa5oIrgMC6aA6WF6XyyqbhRPJrKR02L20+2+zpDtO5QAzGHAUGw5TKQvwi5vctNnRHkJYmjAhRVQF2EKdTQw==}
oniguruma-to-es@4.3.6:
resolution: {integrity: sha512-csuQ9x3Yr0cEIs/Zgx/OEt9iBw9vqIunAPQkx19R/fiMq2oGVTgcMqO/V3Ybqefr1TBvosI6jU539ksaBULJyA==}
+ open@8.4.2:
+ resolution: {integrity: sha512-7x81NCL719oNbsq/3mh+hVrAWmFuEYUqrq/Iw3kUzH8ReypT9QQ0BLoJS7/G9k6N81XjW4qHWtjWwe/9eLy1EQ==}
+ engines: {node: '>=12'}
+
+ parent-module@1.0.1:
+ resolution: {integrity: sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==}
+ engines: {node: '>=6'}
+
+ parse-json@5.2.0:
+ resolution: {integrity: sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==}
+ engines: {node: '>=8'}
+
+ path-key@3.1.1:
+ resolution: {integrity: sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==}
+ engines: {node: '>=8'}
+
path-to-regexp@6.3.0:
resolution: {integrity: sha512-Yhpw4T9C6hPpgPeA28us07OJeqZ5EzQTkbfwuhsUg0c237RomFoETJgmp2sa3F/41gfLE6G5cqcYwznmeEeOlQ==}
+ path-type@4.0.0:
+ resolution: {integrity: sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==}
+ engines: {node: '>=8'}
+
pathe@2.0.3:
resolution: {integrity: sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==}
@@ -1191,17 +2206,73 @@ packages:
resolution: {integrity: sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==}
engines: {node: '>=12'}
+ postcss-modules-extract-imports@3.1.0:
+ resolution: {integrity: sha512-k3kNe0aNFQDAZGbin48pL2VNidTF0w4/eASDsxlyspobzU3wZQLOGj7L9gfRe0Jo9/4uud09DsjFNH7winGv8Q==}
+ engines: {node: ^10 || ^12 || >= 14}
+ peerDependencies:
+ postcss: ^8.1.0
+
+ postcss-modules-local-by-default@4.2.0:
+ resolution: {integrity: sha512-5kcJm/zk+GJDSfw+V/42fJ5fhjL5YbFDl8nVdXkJPLLW+Vf9mTD5Xe0wqIaDnLuL2U6cDNpTr+UQ+v2HWIBhzw==}
+ engines: {node: ^10 || ^12 || >= 14}
+ peerDependencies:
+ postcss: ^8.1.0
+
+ postcss-modules-scope@3.2.1:
+ resolution: {integrity: sha512-m9jZstCVaqGjTAuny8MdgE88scJnCiQSlSrOWcTQgM2t32UBe+MUmFSO5t7VMSfAf/FJKImAxBav8ooCHJXCJA==}
+ engines: {node: ^10 || ^12 || >= 14}
+ peerDependencies:
+ postcss: ^8.1.0
+
+ postcss-modules-values@4.0.0:
+ resolution: {integrity: sha512-RDxHkAiEGI78gS2ofyvCsu7iycRv7oqw5xMWn9iMoR0N/7mf9D50ecQqUo5BZ9Zh2vH4bCUR/ktCqbB9m8vJjQ==}
+ engines: {node: ^10 || ^12 || >= 14}
+ peerDependencies:
+ postcss: ^8.1.0
+
+ postcss-selector-parser@7.2.1:
+ resolution: {integrity: sha512-GwxlMgTTXwIom+ebC7an3k6RaJDwklRQQnfiXsLPGicu8FYV/k/+1/9YY2OU2+r938H2t4X0TDxoif+HP2rjzQ==}
+ engines: {node: '>=4'}
+
+ postcss-value-parser@4.2.0:
+ resolution: {integrity: sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==}
+
postcss@8.5.32:
resolution: {integrity: sha512-LJlKCCAUFKOuZxipUdYw1NzIITEsPcgyOG9LkvRJvuKj/bRzbuRY0ARXvL0pWGpsZvn8jku+LMep2eU0seHp8g==}
engines: {node: ^10 || ^12 || >=14}
+ prismjs@1.30.0:
+ resolution: {integrity: sha512-DEvV2ZF2r2/63V+tK8hQvrR2ZGn10srHbXviTlcv7Kpzw8jWiNTqbVgjO3IY8RxrrOUF8VPMQQFysYYYv0YZxw==}
+ engines: {node: '>=6'}
+
+ prompts@2.4.2:
+ resolution: {integrity: sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==}
+ engines: {node: '>= 6'}
+
property-information@7.2.0:
resolution: {integrity: sha512-IAtzIB6sUiWaJYrX9smp3V46pBGbBeLFRGdh25kg1334VcBlD8HzhPeNIWQH9zhGmo2itIe25EHt9dQP7G5hmg==}
+ react-dom@19.3.1:
+ resolution: {integrity: sha512-Y0bARz53lhEC1NMCASs0/j+faB/zqt3R8hpvg1e8+61ZVJ4UL0UdC4cBbXfZMcIuhrfgeILTLe+ZeBCavQPtKQ==}
+ peerDependencies:
+ react: ^19.3.1
+
+ react-refresh@0.18.0:
+ resolution: {integrity: sha512-QgT5//D3jfjJb6Gsjxv0Slpj23ip+HtOpnNgnb2S5zU3CB26G/IDPGoy4RJB42wzFE46DRsstbW6tKHoKbhAxw==}
+ engines: {node: '>=0.10.0'}
+
react@19.2.0:
resolution: {integrity: sha512-tmbWg6W31tQLeB5cdIBOicJDJRR2KzXsV7uSK9iNfLWQ5bIZfxuPEHp7M8wiHyHnn0DD1i7w3Zmin0FtkrwoCQ==}
engines: {node: '>=0.10.0'}
+ react@19.3.1:
+ resolution: {integrity: sha512-QNhWdt7nrgVWWQG58QuGsAR3jv3Hbe4mb4vz7w2csnHavciZJgda1CPNaldF6eVxv90ud3jUXpKlHL69gO38yw==}
+ engines: {node: '>=0.10.0'}
+
+ recast@0.23.21:
+ resolution: {integrity: sha512-mFAyJq9vUbSTARLZUvAEf1z3YxlvAwswbmxMx2mPA/MSm4KmpwvwvhsH/NIrZhyOuwD60Lzyw2qh83uCbgTPYw==}
+ engines: {node: '>= 4'}
+
regex-recursion@6.0.2:
resolution: {integrity: sha512-0YCaSCq2VRIebiaUviZNs0cBz1kg5kVS2UKUfNIx8YVs1cN3AV7NTctO5FOKBA+UT2BPJIWZauYHPqJODG50cg==}
@@ -1211,11 +2282,47 @@ packages:
regex@6.1.0:
resolution: {integrity: sha512-6VwtthbV4o/7+OaAF9I5L5V3llLEsoPyq9P1JVXkedTP33c7MfCG0/5NOPcSJn0TzXcG9YUrR0gQSWioew3LDg==}
+ remotion@4.0.539:
+ resolution: {integrity: sha512-CC97/XczqcJDJq0za0lU/kc7XnOocs8L9ADHFPWPMEXLm2aOxzdy3E0qnNNwqcW6q98JoKovtxc6YHQGZsZY/Q==}
+ peerDependencies:
+ react: '>=16.8.0'
+ react-dom: '>=16.8.0'
+
+ require-from-string@2.0.2:
+ resolution: {integrity: sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==}
+ engines: {node: '>=0.10.0'}
+
+ resolve-from@4.0.0:
+ resolution: {integrity: sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==}
+ engines: {node: '>=4'}
+
rollup@4.67.5:
resolution: {integrity: sha512-3Ve5VH1hacCVutdpbmu/htg4kz+JCOIWgy4Q3hjHPYGHeHeIElNHJ0LcJ3rCfIsd5G7qOl5k5mwpzGMj9kdHPA==}
engines: {node: '>=18.0.0', npm: '>=8.0.0'}
hasBin: true
+ scheduler@0.28.0:
+ resolution: {integrity: sha512-juorfCmIkIw8tT+p5BXSm6PJjQF/ycEYmKyzURCIt/RaZIhL+PulbQ9Yu2z1HdOJDdqDTlxA1+xKBmHXJsczAw==}
+
+ schema-utils@4.8.3:
+ resolution: {integrity: sha512-qIfo3f+lRNqnMPgpXSKvUhsT3pY5U+ppmgGr4j8LanFP3W/Ze+xj8DY/dPb5qVu3m6qFIMyMWKVRLNKxrNhxWg==}
+ engines: {node: '>= 10.13.0'}
+ hasBin: true
+ peerDependencies:
+ webpack: ^5.0.0
+ peerDependenciesMeta:
+ webpack:
+ optional: true
+
+ semver@6.3.2:
+ resolution: {integrity: sha512-GYrCADwpu6yV5OAvchkQ27Z5wwMxWAEMg5NNWjyHh/5DboFFqbdbvYNIvZouQpxXyeMPoTOh0vdPYKlf0ZswdQ==}
+ hasBin: true
+
+ semver@7.5.3:
+ resolution: {integrity: sha512-QBlUtyVk/5EeHbi7X0fw6liDZc7BBmEaSYn01fMU1OUYbf6GPsbTtd8WmnqbI20SeycoHSeiybkE/q1Q+qlThQ==}
+ engines: {node: '>=10'}
+ hasBin: true
+
semver@7.8.6:
resolution: {integrity: sha512-9lpSSU4Mly3mrtruwLs1eLK6+gzbzqeBFwRNjIjE+9LuDpWdYctrQlQ3ej1Ilgi7gknpsTRnPoLP8DpCHqHIJw==}
engines: {node: '>=10'}
@@ -1234,25 +2341,56 @@ packages:
'@types/node':
optional: true
+ shebang-command@2.0.0:
+ resolution: {integrity: sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==}
+ engines: {node: '>=8'}
+
+ shebang-regex@3.0.0:
+ resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==}
+ engines: {node: '>=8'}
+
shiki@3.4.2:
resolution: {integrity: sha512-wuxzZzQG8kvZndD7nustrNFIKYJ1jJoWIPaBpVe2+KHSvtzMi4SBjOxrigs8qeqce/l3U0cwiC+VAkLKSunHQQ==}
siginfo@2.0.0:
resolution: {integrity: sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==}
+ signal-exit@3.0.7:
+ resolution: {integrity: sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==}
+
simple-swizzle@0.2.4:
resolution: {integrity: sha512-nAu1WFPQSMNr2Zn9PGSZK9AGn4t/y97lEm+MXTtUDwfP0ksAIX4nO+6ruD9Jwut4C49SB1Ws+fbXsm/yScWOHw==}
+ sisteransi@1.0.5:
+ resolution: {integrity: sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==}
+
+ snake-case@3.0.4:
+ resolution: {integrity: sha512-LAOh4z89bGQvl9pFfNF8V146i7o7/CqFPbqzYgP+yYzDIDeS9HaNFtXABamRW+AQzEVODcvE79ljJ+8a9YSdMg==}
+
source-map-js@1.2.2:
resolution: {integrity: sha512-KGj/8Y43x35aZVDtt+J4mK1hoLGHULMYfSkODJNQjNDC3oW1PqPoxMwo0pLUsWM/UEGzON/NxeHywEfNXNP3Vw==}
engines: {node: '>=0.10.0'}
+ source-map-support@0.5.21:
+ resolution: {integrity: sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==}
+
+ source-map@0.6.1:
+ resolution: {integrity: sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==}
+ engines: {node: '>=0.10.0'}
+
+ source-map@0.8.0:
+ resolution: {integrity: sha512-d8EqvL+k/SOXCreS/SUzg2ciyHqBBLcN/yuRjFsbvVhHTE2pgei7oAhmPM7kWFbkX6OSMQfUq4KbkF3au9lhYQ==}
+ engines: {node: '>= 12'}
+
space-separated-tokens@2.0.2:
resolution: {integrity: sha512-PEGlAwrG8yXGXRjW32fGbg66JAlOAwbObuqVoJpv/mRgoWDQfgH1wDPvtzWyUSNAXBGSk8h755YDbbcEy3SH2Q==}
stackback@0.0.2:
resolution: {integrity: sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==}
+ stackframe@1.3.4:
+ resolution: {integrity: sha512-oeVtt7eWQS+Na6F//S4kJ2K2VbRlS9D43mAlMyVpVWovy9o+jfgH8O9agzANzaiLjclA0oYzUXEM4PurhSUChw==}
+
std-env@3.10.0:
resolution: {integrity: sha512-5GS12FdOZNliM5mAOxFRg7Ir0pWz8MdpYm6AY6VPkGpbA7ZzmbzNcBJQ0GPvvyWgcY7QAhCgf9Uy89I03faLkg==}
@@ -1263,13 +2401,86 @@ packages:
stringify-entities@4.0.4:
resolution: {integrity: sha512-IwfBptatlO+QCJUo19AqvrPNqlVMpW9YEL2LIVY+Rpv2qsjCGxaDLNRgeGsQWJhfItebuJhsGSLjaBbNSQ+ieg==}
+ strip-final-newline@2.0.0:
+ resolution: {integrity: sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==}
+ engines: {node: '>=6'}
+
strip-literal@3.1.0:
resolution: {integrity: sha512-8r3mkIM/2+PpjHoOtiAW8Rg3jJLHaV7xPwG+YRGrv6FP0wwk/toTpATxWYOW0BKdWwl82VT2tFYi5DlROa0Mxg==}
+ style-loader@4.0.0:
+ resolution: {integrity: sha512-1V4WqhhZZgjVAVJyt7TdDPZoPBPNHbekX4fWnCJL1yQukhCeZhJySUL+gL9y6sNdN95uEOS83Y55SqHcP7MzLA==}
+ engines: {node: '>= 18.12.0'}
+ peerDependencies:
+ webpack: ^5.27.0
+
supports-color@10.2.2:
resolution: {integrity: sha512-SS+jx45GF1QjgEXQx4NJZV9ImqmO2NPz5FNsIHrsDjh2YsHnawpan7SNQ1o8NuhrbHZy9AZhIoCUiCeaW/C80g==}
engines: {node: '>=18'}
+ supports-color@8.1.1:
+ resolution: {integrity: sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==}
+ engines: {node: '>=10'}
+
+ svg-parser@2.1.0:
+ resolution: {integrity: sha512-bwLf38YmY+TDYHJw1Ex0Co8c4yeXuJAo8YnXGZrscxrvYoVVIvLeniEkV1Ks/54VteMnL4FtyN1+P+TZJdUPmQ==}
+ engines: {node: '>=8'}
+
+ tapable@2.3.3:
+ resolution: {integrity: sha512-uxc/zpqFg6x7C8vOE7lh6Lbda8eEL9zmVm/PLeTPBRhh1xCgdWaQ+J1CUieGpIfm2HdtsUpRv+HshiasBMcc6A==}
+ engines: {node: '>=6'}
+
+ terser-webpack-plugin@5.6.1:
+ resolution: {integrity: sha512-201R5j+sJpK8nFWwKVyNfZot8FaJbLZDq5evriVzbV1wDtSXDjRUDRfJzHpAaxFDMEhsZL1QkeqM61wgsS3KaQ==}
+ engines: {node: '>= 10.13.0'}
+ peerDependencies:
+ '@minify-html/node': '*'
+ '@swc/core': '*'
+ '@swc/css': '*'
+ '@swc/html': '*'
+ clean-css: '*'
+ cssnano: '*'
+ csso: '*'
+ esbuild: '*'
+ html-minifier-terser: '*'
+ lightningcss: '*'
+ postcss: '*'
+ uglify-js: '*'
+ 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
+
+ terser@5.51.2:
+ resolution: {integrity: sha512-bWnjSNscmuI+GJze6ZupnHP8G/cTcsJF+bXCeQknk2SHQsgbNJnLrqiH9jZ2W4STPVXH2mDKKRX3iwPhc9Cn/Q==}
+ engines: {node: '>=10'}
+ hasBin: true
+
+ tiny-invariant@1.3.3:
+ resolution: {integrity: sha512-+FbBPE1o9QAYvviau/qC5SE3caw21q3xkvWKBtja5vgqOWIHHJ3ioaq1VPfn/Szqctz2bU/oYeKd9/z5BL+PVg==}
+
tinybench@2.9.0:
resolution: {integrity: sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==}
@@ -1292,6 +2503,10 @@ packages:
resolution: {integrity: sha512-u8KszXvGfU68hVcZpRHKG28T0krMuv2G5nDhiHaMLen/gIuFEgIJhaJuO69qjnXg5paSrbPMFfx3brNuN8eVSg==}
engines: {node: '>=14.0.0'}
+ to-fast-properties@2.0.0:
+ resolution: {integrity: sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==}
+ engines: {node: '>=4'}
+
trim-lines@3.0.1:
resolution: {integrity: sha512-kRj8B+YHZCc9kQYdWfJB2/oUl9rA99qbowYYBtr4ui4mZyAQ2JpvVBd/6U2YloATfqBhBTSMhTpgBHtU0Mf3Rg==}
@@ -1338,6 +2553,15 @@ packages:
unist-util-visit@5.2.0:
resolution: {integrity: sha512-fpsYs/VVoZxfGY9/j3FQpZmN8wdLJaV1Pt38AaJNZu9uKIHcFU3halCdBveEq1HGKO1OEfJY65w1zvoFV1b3qQ==}
+ update-browserslist-db@1.3.4:
+ resolution: {integrity: sha512-t8wonIOdQyOjtPd2VktlBu6QjTVTks6v8bSi7kd0r2Vll8TK1JYDZtRRdbmCHOAMphkZgrzK+L+vXK4pyZ8t4A==}
+ hasBin: true
+ peerDependencies:
+ browserslist: '>= 4.21.0'
+
+ util-deprecate@1.0.2:
+ resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==}
+
vfile-message@4.0.3:
resolution: {integrity: sha512-QTHzsGd1EhbZs4AsQ20JX1rC3cOlt/IWJruk893DfLRr57lcnOeMaWG4K0JrRta4mIJZKth2Au3mM3u03/JWKw==}
@@ -1417,10 +2641,33 @@ packages:
jsdom:
optional: true
+ watchpack@2.6.4:
+ resolution: {integrity: sha512-5H3Tce2GfzWbcr9VnSqyak2whFaONw4BdmI5BDnMXold4qSlCFd64XaMQESRh2vkDKmdUkv6rUo17UvZ9f9nXw==}
+ engines: {node: '>=10.13.0'}
+
+ webpack-sources@3.7.0:
+ resolution: {integrity: sha512-PdUhbCycwEgiS1hB/FBDksWKg/ashAIuJKqwdbPn8/dFVgU5LxQiBvG0js6VRRIzPujMrStYCczywp82P0KWng==}
+ engines: {node: '>=10.13.0'}
+
+ webpack@5.105.0:
+ resolution: {integrity: sha512-gX/dMkRQc7QOMzgTe6KsYFM7DxeIONQSui1s0n/0xht36HvrgbxtM1xBlgx596NbpHuQU8P7QpKwrZYwUX48nw==}
+ engines: {node: '>=10.13.0'}
+ hasBin: true
+ peerDependencies:
+ webpack-cli: '*'
+ peerDependenciesMeta:
+ webpack-cli:
+ optional: true
+
whatwg-mimetype@3.0.0:
resolution: {integrity: sha512-nt+N2dzIutVRxARx1nghPKGv1xHikU7HKdfafKkLNLindmPU/ch3U31NOCGGA/dmPcmb1VlofO0vnKAcsm0o/Q==}
engines: {node: '>=12'}
+ which@2.0.2:
+ resolution: {integrity: sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==}
+ engines: {node: '>= 8'}
+ hasBin: true
+
why-is-node-running@2.3.0:
resolution: {integrity: sha512-hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w==}
engines: {node: '>=8'}
@@ -1480,22 +2727,141 @@ packages:
utf-8-validate:
optional: true
- youch-core@0.3.3:
- resolution: {integrity: sha512-ho7XuGjLaJ2hWHoK8yFnsUGy2Y5uDpqSTq1FkHLK4/oqKtyUU1AFbOOxY4IpC9f0fTLjwYbslUz0Po5BpD1wrA==}
+ yallist@3.1.1:
+ resolution: {integrity: sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==}
+
+ yallist@4.0.0:
+ resolution: {integrity: sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==}
+
+ youch-core@0.3.3:
+ resolution: {integrity: sha512-ho7XuGjLaJ2hWHoK8yFnsUGy2Y5uDpqSTq1FkHLK4/oqKtyUU1AFbOOxY4IpC9f0fTLjwYbslUz0Po5BpD1wrA==}
+
+ youch@4.1.0-beta.10:
+ resolution: {integrity: sha512-rLfVLB4FgQneDr0dv1oddCVZmKjcJ6yX6mS4pU82Mq/Dt9a3cLZQ62pDBL4AUO+uVrCvtWz3ZFUL2HFAFJ/BXQ==}
+
+ zod@3.22.3:
+ resolution: {integrity: sha512-EjIevzuJRiRPbVH4mGc8nApb/lVLKVpmUhAaR5R5doKGfAnGJ6Gr3CViAVjP+4FWSxCsybeWQdcgCtbX+7oZug==}
+
+ zod@3.25.76:
+ resolution: {integrity: sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==}
+
+ zod@4.5.4:
+ resolution: {integrity: sha512-sC95tT5iHHH9gtpj6A81kh+NEaRAUFN+qlUPDUbRfOMvNf5QCBqsb3WgvnpVtK5Y+4UfA6KqufotuTvMGiTlsA==}
+
+ zwitch@2.0.4:
+ resolution: {integrity: sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==}
+
+snapshots:
+
+ '@babel/code-frame@7.29.7':
+ dependencies:
+ '@babel/helper-validator-identifier': 7.29.7
+ js-tokens: 4.0.0
+ picocolors: 1.1.1
+
+ '@babel/compat-data@7.29.7': {}
+
+ '@babel/core@7.29.13':
+ dependencies:
+ '@babel/code-frame': 7.29.7
+ '@babel/generator': 7.29.14
+ '@babel/helper-compilation-targets': 7.29.13
+ '@babel/helper-module-transforms': 7.29.14(@babel/core@7.29.13)
+ '@babel/helpers': 7.29.14
+ '@babel/parser': 7.29.14
+ '@babel/template': 7.29.7
+ '@babel/traverse': 7.29.14
+ '@babel/types': 7.29.14
+ '@jridgewell/remapping': 2.3.5
+ convert-source-map: 2.0.0
+ debug: 4.4.3
+ gensync: 1.0.0-beta.2
+ json5: 2.2.3
+ semver: 6.3.2
+ transitivePeerDependencies:
+ - supports-color
+
+ '@babel/generator@7.29.14':
+ dependencies:
+ '@babel/parser': 7.29.14
+ '@babel/types': 7.29.14
+ '@jridgewell/gen-mapping': 0.3.13
+ '@jridgewell/trace-mapping': 0.3.31
+ jsesc: 3.1.0
+
+ '@babel/helper-compilation-targets@7.29.13':
+ dependencies:
+ '@babel/compat-data': 7.29.7
+ '@babel/helper-validator-option': 7.29.7
+ browserslist: 4.29.5
+ lru-cache: 5.1.1
+ semver: 6.3.2
+
+ '@babel/helper-globals@7.29.7': {}
+
+ '@babel/helper-module-imports@7.29.7':
+ dependencies:
+ '@babel/traverse': 7.29.14
+ '@babel/types': 7.29.14
+ transitivePeerDependencies:
+ - supports-color
+
+ '@babel/helper-module-transforms@7.29.14(@babel/core@7.29.13)':
+ dependencies:
+ '@babel/core': 7.29.13
+ '@babel/helper-module-imports': 7.29.7
+ '@babel/helper-validator-identifier': 7.29.7
+ '@babel/traverse': 7.29.14
+ transitivePeerDependencies:
+ - supports-color
+
+ '@babel/helper-string-parser@7.29.14': {}
+
+ '@babel/helper-validator-identifier@7.29.7': {}
- youch@4.1.0-beta.10:
- resolution: {integrity: sha512-rLfVLB4FgQneDr0dv1oddCVZmKjcJ6yX6mS4pU82Mq/Dt9a3cLZQ62pDBL4AUO+uVrCvtWz3ZFUL2HFAFJ/BXQ==}
+ '@babel/helper-validator-option@7.29.7': {}
- zod@3.22.3:
- resolution: {integrity: sha512-EjIevzuJRiRPbVH4mGc8nApb/lVLKVpmUhAaR5R5doKGfAnGJ6Gr3CViAVjP+4FWSxCsybeWQdcgCtbX+7oZug==}
+ '@babel/helpers@7.29.14':
+ dependencies:
+ '@babel/template': 7.29.7
+ '@babel/types': 7.29.14
- zod@3.25.76:
- resolution: {integrity: sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==}
+ '@babel/parser@7.24.1':
+ dependencies:
+ '@babel/types': 7.29.14
- zwitch@2.0.4:
- resolution: {integrity: sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==}
+ '@babel/parser@7.29.14':
+ dependencies:
+ '@babel/types': 7.29.14
-snapshots:
+ '@babel/template@7.29.7':
+ dependencies:
+ '@babel/code-frame': 7.29.7
+ '@babel/parser': 7.29.14
+ '@babel/types': 7.29.14
+
+ '@babel/traverse@7.29.14':
+ dependencies:
+ '@babel/code-frame': 7.29.7
+ '@babel/generator': 7.29.14
+ '@babel/helper-globals': 7.29.7
+ '@babel/parser': 7.29.14
+ '@babel/template': 7.29.7
+ '@babel/types': 7.29.14
+ debug: 4.4.3
+ transitivePeerDependencies:
+ - supports-color
+
+ '@babel/types@7.24.0':
+ dependencies:
+ '@babel/helper-string-parser': 7.29.14
+ '@babel/helper-validator-identifier': 7.29.7
+ to-fast-properties: 2.0.0
+
+ '@babel/types@7.29.14':
+ dependencies:
+ '@babel/helper-string-parser': 7.29.14
+ '@babel/helper-validator-identifier': 7.29.7
'@cloudflare/kv-asset-handler@0.4.0':
dependencies:
@@ -1515,7 +2881,7 @@ snapshots:
optionalDependencies:
workerd: 1.20250906.0
- '@cloudflare/vitest-pool-workers@0.8.71(@cloudflare/workers-types@4.20260702.1)(@vitest/runner@3.2.7)(@vitest/snapshot@3.2.7)(vitest@3.2.7(@types/node@20.19.43)(happy-dom@18.0.1))':
+ '@cloudflare/vitest-pool-workers@0.8.71(@cloudflare/workers-types@4.20260702.1)(@vitest/runner@3.2.7)(@vitest/snapshot@3.2.7)(vitest@3.2.7(@types/node@20.19.43)(happy-dom@18.0.1)(terser@5.51.2))':
dependencies:
'@vitest/runner': 3.2.7
'@vitest/snapshot': 3.2.7
@@ -1524,7 +2890,7 @@ snapshots:
devalue: 5.9.4
miniflare: 4.20250906.0
semver: 7.8.6
- vitest: 3.2.7(@types/node@20.19.43)(happy-dom@18.0.1)
+ vitest: 3.2.7(@types/node@20.19.43)(happy-dom@18.0.1)(terser@5.51.2)
wrangler: 4.35.0(@cloudflare/workers-types@4.20260702.1)
zod: 3.25.76
transitivePeerDependencies:
@@ -1568,161 +2934,250 @@ snapshots:
dependencies:
'@jridgewell/trace-mapping': 0.3.9
+ '@emnapi/core@1.11.3':
+ dependencies:
+ '@emnapi/wasi-threads': 1.2.3
+ tslib: 2.9.1
+ optional: true
+
'@emnapi/runtime@1.11.3':
dependencies:
tslib: 2.9.1
optional: true
+ '@emnapi/wasi-threads@1.2.3':
+ dependencies:
+ tslib: 2.9.1
+ optional: true
+
'@esbuild/aix-ppc64@0.25.4':
optional: true
+ '@esbuild/aix-ppc64@0.28.1':
+ optional: true
+
'@esbuild/aix-ppc64@0.28.2':
optional: true
'@esbuild/android-arm64@0.25.4':
optional: true
+ '@esbuild/android-arm64@0.28.1':
+ optional: true
+
'@esbuild/android-arm64@0.28.2':
optional: true
'@esbuild/android-arm@0.25.4':
optional: true
+ '@esbuild/android-arm@0.28.1':
+ optional: true
+
'@esbuild/android-arm@0.28.2':
optional: true
'@esbuild/android-x64@0.25.4':
optional: true
+ '@esbuild/android-x64@0.28.1':
+ optional: true
+
'@esbuild/android-x64@0.28.2':
optional: true
'@esbuild/darwin-arm64@0.25.4':
optional: true
+ '@esbuild/darwin-arm64@0.28.1':
+ optional: true
+
'@esbuild/darwin-arm64@0.28.2':
optional: true
'@esbuild/darwin-x64@0.25.4':
optional: true
+ '@esbuild/darwin-x64@0.28.1':
+ optional: true
+
'@esbuild/darwin-x64@0.28.2':
optional: true
'@esbuild/freebsd-arm64@0.25.4':
optional: true
+ '@esbuild/freebsd-arm64@0.28.1':
+ optional: true
+
'@esbuild/freebsd-arm64@0.28.2':
optional: true
'@esbuild/freebsd-x64@0.25.4':
optional: true
+ '@esbuild/freebsd-x64@0.28.1':
+ optional: true
+
'@esbuild/freebsd-x64@0.28.2':
optional: true
'@esbuild/linux-arm64@0.25.4':
optional: true
+ '@esbuild/linux-arm64@0.28.1':
+ optional: true
+
'@esbuild/linux-arm64@0.28.2':
optional: true
'@esbuild/linux-arm@0.25.4':
optional: true
+ '@esbuild/linux-arm@0.28.1':
+ optional: true
+
'@esbuild/linux-arm@0.28.2':
optional: true
'@esbuild/linux-ia32@0.25.4':
optional: true
+ '@esbuild/linux-ia32@0.28.1':
+ optional: true
+
'@esbuild/linux-ia32@0.28.2':
optional: true
'@esbuild/linux-loong64@0.25.4':
optional: true
+ '@esbuild/linux-loong64@0.28.1':
+ optional: true
+
'@esbuild/linux-loong64@0.28.2':
optional: true
'@esbuild/linux-mips64el@0.25.4':
optional: true
+ '@esbuild/linux-mips64el@0.28.1':
+ optional: true
+
'@esbuild/linux-mips64el@0.28.2':
optional: true
'@esbuild/linux-ppc64@0.25.4':
optional: true
+ '@esbuild/linux-ppc64@0.28.1':
+ optional: true
+
'@esbuild/linux-ppc64@0.28.2':
optional: true
'@esbuild/linux-riscv64@0.25.4':
optional: true
+ '@esbuild/linux-riscv64@0.28.1':
+ optional: true
+
'@esbuild/linux-riscv64@0.28.2':
optional: true
'@esbuild/linux-s390x@0.25.4':
optional: true
+ '@esbuild/linux-s390x@0.28.1':
+ optional: true
+
'@esbuild/linux-s390x@0.28.2':
optional: true
'@esbuild/linux-x64@0.25.4':
optional: true
+ '@esbuild/linux-x64@0.28.1':
+ optional: true
+
'@esbuild/linux-x64@0.28.2':
optional: true
'@esbuild/netbsd-arm64@0.25.4':
optional: true
+ '@esbuild/netbsd-arm64@0.28.1':
+ optional: true
+
'@esbuild/netbsd-arm64@0.28.2':
optional: true
'@esbuild/netbsd-x64@0.25.4':
optional: true
+ '@esbuild/netbsd-x64@0.28.1':
+ optional: true
+
'@esbuild/netbsd-x64@0.28.2':
optional: true
'@esbuild/openbsd-arm64@0.25.4':
optional: true
+ '@esbuild/openbsd-arm64@0.28.1':
+ optional: true
+
'@esbuild/openbsd-arm64@0.28.2':
optional: true
'@esbuild/openbsd-x64@0.25.4':
optional: true
+ '@esbuild/openbsd-x64@0.28.1':
+ optional: true
+
'@esbuild/openbsd-x64@0.28.2':
optional: true
+ '@esbuild/openharmony-arm64@0.28.1':
+ optional: true
+
'@esbuild/openharmony-arm64@0.28.2':
optional: true
'@esbuild/sunos-x64@0.25.4':
optional: true
+ '@esbuild/sunos-x64@0.28.1':
+ optional: true
+
'@esbuild/sunos-x64@0.28.2':
optional: true
'@esbuild/win32-arm64@0.25.4':
optional: true
+ '@esbuild/win32-arm64@0.28.1':
+ optional: true
+
'@esbuild/win32-arm64@0.28.2':
optional: true
'@esbuild/win32-ia32@0.25.4':
optional: true
+ '@esbuild/win32-ia32@0.28.1':
+ optional: true
+
'@esbuild/win32-ia32@0.28.2':
optional: true
'@esbuild/win32-x64@0.25.4':
optional: true
+ '@esbuild/win32-x64@0.28.1':
+ optional: true
+
'@esbuild/win32-x64@0.28.2':
optional: true
@@ -1907,15 +3362,79 @@ snapshots:
'@img/sharp-win32-x64@0.35.5':
optional: true
+ '@jridgewell/gen-mapping@0.3.13':
+ dependencies:
+ '@jridgewell/sourcemap-codec': 1.6.0
+ '@jridgewell/trace-mapping': 0.3.31
+
+ '@jridgewell/remapping@2.3.5':
+ dependencies:
+ '@jridgewell/gen-mapping': 0.3.13
+ '@jridgewell/trace-mapping': 0.3.31
+
'@jridgewell/resolve-uri@3.1.2': {}
+ '@jridgewell/source-map@0.3.11':
+ dependencies:
+ '@jridgewell/gen-mapping': 0.3.13
+ '@jridgewell/trace-mapping': 0.3.31
+
'@jridgewell/sourcemap-codec@1.6.0': {}
+ '@jridgewell/trace-mapping@0.3.31':
+ dependencies:
+ '@jridgewell/resolve-uri': 3.1.2
+ '@jridgewell/sourcemap-codec': 1.6.0
+
'@jridgewell/trace-mapping@0.3.9':
dependencies:
'@jridgewell/resolve-uri': 3.1.2
'@jridgewell/sourcemap-codec': 1.6.0
+ '@mediabunny/aac-encoder@1.62.0(mediabunny@1.62.0)':
+ dependencies:
+ mediabunny: 1.62.0
+
+ '@mediabunny/flac-encoder@1.62.0(mediabunny@1.62.0)':
+ dependencies:
+ mediabunny: 1.62.0
+
+ '@mediabunny/mp3-encoder@1.62.0(mediabunny@1.62.0)':
+ dependencies:
+ mediabunny: 1.62.0
+
+ '@module-federation/error-codes@0.22.0': {}
+
+ '@module-federation/runtime-core@0.22.0':
+ dependencies:
+ '@module-federation/error-codes': 0.22.0
+ '@module-federation/sdk': 0.22.0
+
+ '@module-federation/runtime-tools@0.22.0':
+ dependencies:
+ '@module-federation/runtime': 0.22.0
+ '@module-federation/webpack-bundler-runtime': 0.22.0
+
+ '@module-federation/runtime@0.22.0':
+ dependencies:
+ '@module-federation/error-codes': 0.22.0
+ '@module-federation/runtime-core': 0.22.0
+ '@module-federation/sdk': 0.22.0
+
+ '@module-federation/sdk@0.22.0': {}
+
+ '@module-federation/webpack-bundler-runtime@0.22.0':
+ dependencies:
+ '@module-federation/runtime': 0.22.0
+ '@module-federation/sdk': 0.22.0
+
+ '@napi-rs/wasm-runtime@1.0.7':
+ dependencies:
+ '@emnapi/core': 1.11.3
+ '@emnapi/runtime': 1.11.3
+ '@tybys/wasm-util': 0.10.4
+ optional: true
+
'@poppinss/colors@4.1.6':
dependencies:
kleur: 4.1.5
@@ -1928,6 +3447,308 @@ snapshots:
'@poppinss/exception@1.2.3': {}
+ '@remotion/bundler@4.0.539(postcss@8.5.32)(react-dom@19.3.1(react@19.3.1))(react@19.3.1)':
+ dependencies:
+ '@remotion/studio': 4.0.539(react-dom@19.3.1(react@19.3.1))(react@19.3.1)
+ '@remotion/studio-shared': 4.0.539(react-dom@19.3.1(react@19.3.1))(react@19.3.1)
+ '@remotion/timeline-utils': 4.0.539(react-dom@19.3.1(react@19.3.1))(react@19.3.1)
+ '@rspack/core': 1.7.11
+ '@rspack/plugin-react-refresh': 1.6.1(react-refresh@0.18.0)
+ css-loader: 7.1.4(@rspack/core@1.7.11)(webpack@5.105.0(postcss@8.5.32))
+ esbuild: 0.28.1
+ react: 19.3.1
+ react-dom: 19.3.1(react@19.3.1)
+ react-refresh: 0.18.0
+ remotion: 4.0.539(react-dom@19.3.1(react@19.3.1))(react@19.3.1)
+ style-loader: 4.0.0(webpack@5.105.0(postcss@8.5.32))
+ webpack: 5.105.0(esbuild@0.28.1)(postcss@8.5.32)
+ transitivePeerDependencies:
+ - '@minify-html/node'
+ - '@remotion/video-matting'
+ - '@remotion/whisper-webgpu'
+ - '@swc/core'
+ - '@swc/css'
+ - '@swc/helpers'
+ - '@swc/html'
+ - bufferutil
+ - clean-css
+ - cssnano
+ - csso
+ - html-minifier-terser
+ - lightningcss
+ - postcss
+ - uglify-js
+ - utf-8-validate
+ - webpack-cli
+ - webpack-hot-middleware
+
+ '@remotion/captions@4.0.539': {}
+
+ '@remotion/cli@4.0.539(postcss@8.5.32)(react-dom@19.3.1(react@19.3.1))(react@19.3.1)(typescript@5.9.3)':
+ dependencies:
+ '@babel/parser': 7.24.1
+ '@remotion/bundler': 4.0.539(postcss@8.5.32)(react-dom@19.3.1(react@19.3.1))(react@19.3.1)
+ '@remotion/codemods': 4.0.539(react-dom@19.3.1(react@19.3.1))(react@19.3.1)
+ '@remotion/media-utils': 4.0.539(react-dom@19.3.1(react@19.3.1))(react@19.3.1)
+ '@remotion/player': 4.0.539(react-dom@19.3.1(react@19.3.1))(react@19.3.1)
+ '@remotion/renderer': 4.0.539(react-dom@19.3.1(react@19.3.1))(react@19.3.1)
+ '@remotion/studio': 4.0.539(react-dom@19.3.1(react@19.3.1))(react@19.3.1)
+ '@remotion/studio-server': 4.0.539(postcss@8.5.32)(react-dom@19.3.1(react@19.3.1))(react@19.3.1)(typescript@5.9.3)
+ '@remotion/studio-shared': 4.0.539(react-dom@19.3.1(react@19.3.1))(react@19.3.1)
+ dotenv: 17.3.1
+ mediabunny: 1.62.0
+ minimist: 1.2.6
+ prompts: 2.4.2
+ react: 19.3.1
+ react-dom: 19.3.1(react@19.3.1)
+ remotion: 4.0.539(react-dom@19.3.1(react@19.3.1))(react@19.3.1)
+ semver: 7.5.3
+ transitivePeerDependencies:
+ - '@minify-html/node'
+ - '@remotion/video-matting'
+ - '@remotion/whisper-webgpu'
+ - '@swc/core'
+ - '@swc/css'
+ - '@swc/helpers'
+ - '@swc/html'
+ - bufferutil
+ - clean-css
+ - cssnano
+ - csso
+ - html-minifier-terser
+ - lightningcss
+ - postcss
+ - supports-color
+ - typescript
+ - uglify-js
+ - utf-8-validate
+ - webpack-cli
+ - webpack-hot-middleware
+
+ '@remotion/codemods@4.0.539(react-dom@19.3.1(react@19.3.1))(react@19.3.1)':
+ dependencies:
+ '@babel/parser': 7.24.1
+ '@babel/types': 7.24.0
+ '@remotion/studio-protocol': 4.0.539
+ '@remotion/studio-shared': 4.0.539(react-dom@19.3.1(react@19.3.1))(react@19.3.1)
+ ast-types: 0.16.1
+ recast: 0.23.21
+ remotion: 4.0.539(react-dom@19.3.1(react@19.3.1))(react@19.3.1)
+ transitivePeerDependencies:
+ - react
+ - react-dom
+
+ '@remotion/compositor-darwin-arm64@4.0.539':
+ optional: true
+
+ '@remotion/compositor-darwin-x64@4.0.539':
+ optional: true
+
+ '@remotion/compositor-linux-arm64-gnu@4.0.539':
+ optional: true
+
+ '@remotion/compositor-linux-arm64-musl@4.0.539':
+ optional: true
+
+ '@remotion/compositor-linux-x64-gnu@4.0.539':
+ optional: true
+
+ '@remotion/compositor-linux-x64-musl@4.0.539':
+ optional: true
+
+ '@remotion/compositor-win32-x64-msvc@4.0.539':
+ optional: true
+
+ '@remotion/elevenlabs@4.0.539':
+ dependencies:
+ '@remotion/captions': 4.0.539
+ zod: 4.5.4
+
+ '@remotion/fonts@4.0.539(react-dom@19.3.1(react@19.3.1))(react@19.3.1)':
+ dependencies:
+ remotion: 4.0.539(react-dom@19.3.1(react@19.3.1))(react@19.3.1)
+ transitivePeerDependencies:
+ - react
+ - react-dom
+
+ '@remotion/licensing@4.0.539': {}
+
+ '@remotion/media-utils@4.0.539(react-dom@19.3.1(react@19.3.1))(react@19.3.1)':
+ dependencies:
+ mediabunny: 1.62.0
+ react: 19.3.1
+ react-dom: 19.3.1(react@19.3.1)
+ remotion: 4.0.539(react-dom@19.3.1(react@19.3.1))(react@19.3.1)
+
+ '@remotion/media@4.0.539(react-dom@19.3.1(react@19.3.1))(react@19.3.1)':
+ dependencies:
+ mediabunny: 1.62.0
+ react: 19.3.1
+ react-dom: 19.3.1(react@19.3.1)
+ remotion: 4.0.539(react-dom@19.3.1(react@19.3.1))(react@19.3.1)
+ zod: 4.5.4
+
+ '@remotion/openai-whisper@4.0.539':
+ dependencies:
+ '@remotion/captions': 4.0.539
+ zod: 4.5.4
+
+ '@remotion/paths@4.0.539(react-dom@19.3.1(react@19.3.1))(react@19.3.1)':
+ dependencies:
+ remotion: 4.0.539(react-dom@19.3.1(react@19.3.1))(react@19.3.1)
+ transitivePeerDependencies:
+ - react
+ - react-dom
+
+ '@remotion/player@4.0.539(react-dom@19.3.1(react@19.3.1))(react@19.3.1)':
+ dependencies:
+ react: 19.3.1
+ react-dom: 19.3.1(react@19.3.1)
+ remotion: 4.0.539(react-dom@19.3.1(react@19.3.1))(react@19.3.1)
+
+ '@remotion/renderer@4.0.539(react-dom@19.3.1(react@19.3.1))(react@19.3.1)':
+ dependencies:
+ '@remotion/licensing': 4.0.539
+ '@remotion/streaming': 4.0.539
+ execa: 5.1.1
+ react: 19.3.1
+ react-dom: 19.3.1(react@19.3.1)
+ remotion: 4.0.539(react-dom@19.3.1(react@19.3.1))(react@19.3.1)
+ source-map: 0.8.0
+ ws: 8.21.0
+ optionalDependencies:
+ '@remotion/compositor-darwin-arm64': 4.0.539
+ '@remotion/compositor-darwin-x64': 4.0.539
+ '@remotion/compositor-linux-arm64-gnu': 4.0.539
+ '@remotion/compositor-linux-arm64-musl': 4.0.539
+ '@remotion/compositor-linux-x64-gnu': 4.0.539
+ '@remotion/compositor-linux-x64-musl': 4.0.539
+ '@remotion/compositor-win32-x64-msvc': 4.0.539
+ transitivePeerDependencies:
+ - bufferutil
+ - utf-8-validate
+
+ '@remotion/sdk@4.0.539(react-dom@19.3.1(react@19.3.1))(react@19.3.1)':
+ dependencies:
+ '@remotion/player': 4.0.539(react-dom@19.3.1(react@19.3.1))(react@19.3.1)
+ '@remotion/studio-shared': 4.0.539(react-dom@19.3.1(react@19.3.1))(react@19.3.1)
+ react: 19.3.1
+ react-dom: 19.3.1(react@19.3.1)
+ remotion: 4.0.539(react-dom@19.3.1(react@19.3.1))(react@19.3.1)
+
+ '@remotion/streaming@4.0.539': {}
+
+ '@remotion/studio-protocol@4.0.539':
+ dependencies:
+ zod: 4.5.4
+
+ '@remotion/studio-server@4.0.539(postcss@8.5.32)(react-dom@19.3.1(react@19.3.1))(react@19.3.1)(typescript@5.9.3)':
+ dependencies:
+ '@babel/parser': 7.24.1
+ '@babel/types': 7.24.0
+ '@remotion/bundler': 4.0.539(postcss@8.5.32)(react-dom@19.3.1(react@19.3.1))(react@19.3.1)
+ '@remotion/codemods': 4.0.539(react-dom@19.3.1(react@19.3.1))(react@19.3.1)
+ '@remotion/renderer': 4.0.539(react-dom@19.3.1(react@19.3.1))(react@19.3.1)
+ '@remotion/studio-protocol': 4.0.539
+ '@remotion/studio-shared': 4.0.539(react-dom@19.3.1(react@19.3.1))(react@19.3.1)
+ '@svgr/core': 8.1.0(typescript@5.9.3)
+ '@svgr/plugin-jsx': 8.1.0(@svgr/core@8.1.0(typescript@5.9.3))
+ kiwi-schema: 0.5.0
+ memfs: 3.4.3
+ open: 8.4.2
+ recast: 0.23.21
+ remotion: 4.0.539(react-dom@19.3.1(react@19.3.1))(react@19.3.1)
+ semver: 7.5.3
+ zod: 4.5.4
+ transitivePeerDependencies:
+ - '@minify-html/node'
+ - '@remotion/video-matting'
+ - '@remotion/whisper-webgpu'
+ - '@swc/core'
+ - '@swc/css'
+ - '@swc/helpers'
+ - '@swc/html'
+ - bufferutil
+ - clean-css
+ - cssnano
+ - csso
+ - html-minifier-terser
+ - lightningcss
+ - postcss
+ - react
+ - react-dom
+ - supports-color
+ - typescript
+ - uglify-js
+ - utf-8-validate
+ - webpack-cli
+ - webpack-hot-middleware
+
+ '@remotion/studio-shared@4.0.539(react-dom@19.3.1(react@19.3.1))(react@19.3.1)':
+ dependencies:
+ remotion: 4.0.539(react-dom@19.3.1(react@19.3.1))(react@19.3.1)
+ transitivePeerDependencies:
+ - react
+ - react-dom
+
+ '@remotion/studio@4.0.539(react-dom@19.3.1(react@19.3.1))(react@19.3.1)':
+ dependencies:
+ '@jridgewell/trace-mapping': 0.3.31
+ '@remotion/captions': 4.0.539
+ '@remotion/codemods': 4.0.539(react-dom@19.3.1(react@19.3.1))(react@19.3.1)
+ '@remotion/elevenlabs': 4.0.539
+ '@remotion/media': 4.0.539(react-dom@19.3.1(react@19.3.1))(react@19.3.1)
+ '@remotion/media-utils': 4.0.539(react-dom@19.3.1(react@19.3.1))(react@19.3.1)
+ '@remotion/openai-whisper': 4.0.539
+ '@remotion/paths': 4.0.539(react-dom@19.3.1(react@19.3.1))(react@19.3.1)
+ '@remotion/player': 4.0.539(react-dom@19.3.1(react@19.3.1))(react@19.3.1)
+ '@remotion/renderer': 4.0.539(react-dom@19.3.1(react@19.3.1))(react@19.3.1)
+ '@remotion/sdk': 4.0.539(react-dom@19.3.1(react@19.3.1))(react@19.3.1)
+ '@remotion/studio-protocol': 4.0.539
+ '@remotion/studio-shared': 4.0.539(react-dom@19.3.1(react@19.3.1))(react@19.3.1)
+ '@remotion/timeline-utils': 4.0.539(react-dom@19.3.1(react@19.3.1))(react@19.3.1)
+ '@remotion/web-renderer': 4.0.539(react-dom@19.3.1(react@19.3.1))(react@19.3.1)
+ '@remotion/zod-types': 4.0.539(react-dom@19.3.1(react@19.3.1))(react@19.3.1)
+ '@tanstack/react-virtual': 3.14.9(react-dom@19.3.1(react@19.3.1))(react@19.3.1)
+ mediabunny: 1.62.0
+ memfs: 3.4.3
+ open: 8.4.2
+ prismjs: 1.30.0
+ react: 19.3.1
+ react-dom: 19.3.1(react@19.3.1)
+ remotion: 4.0.539(react-dom@19.3.1(react@19.3.1))(react@19.3.1)
+ semver: 7.5.3
+ zod: 4.5.4
+ transitivePeerDependencies:
+ - bufferutil
+ - utf-8-validate
+
+ '@remotion/timeline-utils@4.0.539(react-dom@19.3.1(react@19.3.1))(react@19.3.1)':
+ dependencies:
+ mediabunny: 1.62.0
+ remotion: 4.0.539(react-dom@19.3.1(react@19.3.1))(react@19.3.1)
+ transitivePeerDependencies:
+ - react
+ - react-dom
+
+ '@remotion/web-renderer@4.0.539(react-dom@19.3.1(react@19.3.1))(react@19.3.1)':
+ dependencies:
+ '@mediabunny/aac-encoder': 1.62.0(mediabunny@1.62.0)
+ '@mediabunny/flac-encoder': 1.62.0(mediabunny@1.62.0)
+ '@mediabunny/mp3-encoder': 1.62.0(mediabunny@1.62.0)
+ '@remotion/licensing': 4.0.539
+ mediabunny: 1.62.0
+ react: 19.3.1
+ react-dom: 19.3.1(react@19.3.1)
+ remotion: 4.0.539(react-dom@19.3.1(react@19.3.1))(react@19.3.1)
+
+ '@remotion/zod-types@4.0.539(react-dom@19.3.1(react@19.3.1))(react@19.3.1)':
+ dependencies:
+ remotion: 4.0.539(react-dom@19.3.1(react@19.3.1))(react@19.3.1)
+ transitivePeerDependencies:
+ - react
+ - react-dom
+
'@rollup/rollup-android-arm-eabi@4.67.5':
optional: true
@@ -2006,6 +3827,65 @@ snapshots:
'@rollup/rollup-win32-x64-msvc@4.67.5':
optional: true
+ '@rspack/binding-darwin-arm64@1.7.11':
+ optional: true
+
+ '@rspack/binding-darwin-x64@1.7.11':
+ optional: true
+
+ '@rspack/binding-linux-arm64-gnu@1.7.11':
+ optional: true
+
+ '@rspack/binding-linux-arm64-musl@1.7.11':
+ optional: true
+
+ '@rspack/binding-linux-x64-gnu@1.7.11':
+ optional: true
+
+ '@rspack/binding-linux-x64-musl@1.7.11':
+ optional: true
+
+ '@rspack/binding-wasm32-wasi@1.7.11':
+ dependencies:
+ '@napi-rs/wasm-runtime': 1.0.7
+ optional: true
+
+ '@rspack/binding-win32-arm64-msvc@1.7.11':
+ optional: true
+
+ '@rspack/binding-win32-ia32-msvc@1.7.11':
+ optional: true
+
+ '@rspack/binding-win32-x64-msvc@1.7.11':
+ optional: true
+
+ '@rspack/binding@1.7.11':
+ 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
+
+ '@rspack/core@1.7.11':
+ dependencies:
+ '@module-federation/runtime-tools': 0.22.0
+ '@rspack/binding': 1.7.11
+ '@rspack/lite-tapable': 1.1.0
+
+ '@rspack/lite-tapable@1.1.0': {}
+
+ '@rspack/plugin-react-refresh@1.6.1(react-refresh@0.18.0)':
+ dependencies:
+ error-stack-parser: 2.1.4
+ html-entities: 2.6.0
+ react-refresh: 0.18.0
+
'@shikijs/core@3.4.2':
dependencies:
'@shikijs/types': 3.4.2
@@ -2039,9 +3919,92 @@ snapshots:
'@shikijs/vscode-textmate@10.1.0': {}
- '@sindresorhus/is@7.2.0': {}
+ '@sindresorhus/is@7.2.0': {}
+
+ '@speed-highlight/core@1.2.24': {}
+
+ '@svgr/babel-plugin-add-jsx-attribute@8.0.0(@babel/core@7.29.13)':
+ dependencies:
+ '@babel/core': 7.29.13
+
+ '@svgr/babel-plugin-remove-jsx-attribute@8.0.0(@babel/core@7.29.13)':
+ dependencies:
+ '@babel/core': 7.29.13
+
+ '@svgr/babel-plugin-remove-jsx-empty-expression@8.0.0(@babel/core@7.29.13)':
+ dependencies:
+ '@babel/core': 7.29.13
+
+ '@svgr/babel-plugin-replace-jsx-attribute-value@8.0.0(@babel/core@7.29.13)':
+ dependencies:
+ '@babel/core': 7.29.13
+
+ '@svgr/babel-plugin-svg-dynamic-title@8.0.0(@babel/core@7.29.13)':
+ dependencies:
+ '@babel/core': 7.29.13
+
+ '@svgr/babel-plugin-svg-em-dimensions@8.0.0(@babel/core@7.29.13)':
+ dependencies:
+ '@babel/core': 7.29.13
+
+ '@svgr/babel-plugin-transform-react-native-svg@8.1.0(@babel/core@7.29.13)':
+ dependencies:
+ '@babel/core': 7.29.13
+
+ '@svgr/babel-plugin-transform-svg-component@8.0.0(@babel/core@7.29.13)':
+ dependencies:
+ '@babel/core': 7.29.13
+
+ '@svgr/babel-preset@8.1.0(@babel/core@7.29.13)':
+ dependencies:
+ '@babel/core': 7.29.13
+ '@svgr/babel-plugin-add-jsx-attribute': 8.0.0(@babel/core@7.29.13)
+ '@svgr/babel-plugin-remove-jsx-attribute': 8.0.0(@babel/core@7.29.13)
+ '@svgr/babel-plugin-remove-jsx-empty-expression': 8.0.0(@babel/core@7.29.13)
+ '@svgr/babel-plugin-replace-jsx-attribute-value': 8.0.0(@babel/core@7.29.13)
+ '@svgr/babel-plugin-svg-dynamic-title': 8.0.0(@babel/core@7.29.13)
+ '@svgr/babel-plugin-svg-em-dimensions': 8.0.0(@babel/core@7.29.13)
+ '@svgr/babel-plugin-transform-react-native-svg': 8.1.0(@babel/core@7.29.13)
+ '@svgr/babel-plugin-transform-svg-component': 8.0.0(@babel/core@7.29.13)
+
+ '@svgr/core@8.1.0(typescript@5.9.3)':
+ dependencies:
+ '@babel/core': 7.29.13
+ '@svgr/babel-preset': 8.1.0(@babel/core@7.29.13)
+ camelcase: 6.3.0
+ cosmiconfig: 8.3.6(typescript@5.9.3)
+ snake-case: 3.0.4
+ transitivePeerDependencies:
+ - supports-color
+ - typescript
+
+ '@svgr/hast-util-to-babel-ast@8.0.0':
+ dependencies:
+ '@babel/types': 7.24.0
+ entities: 4.5.0
+
+ '@svgr/plugin-jsx@8.1.0(@svgr/core@8.1.0(typescript@5.9.3))':
+ dependencies:
+ '@babel/core': 7.29.13
+ '@svgr/babel-preset': 8.1.0(@babel/core@7.29.13)
+ '@svgr/core': 8.1.0(typescript@5.9.3)
+ '@svgr/hast-util-to-babel-ast': 8.0.0
+ svg-parser: 2.1.0
+ transitivePeerDependencies:
+ - supports-color
+
+ '@tanstack/react-virtual@3.14.9(react-dom@19.3.1(react@19.3.1))(react@19.3.1)':
+ dependencies:
+ '@tanstack/virtual-core': 3.17.7
+ react: 19.3.1
+ react-dom: 19.3.1(react@19.3.1)
+
+ '@tanstack/virtual-core@3.17.7': {}
- '@speed-highlight/core@1.2.24': {}
+ '@tybys/wasm-util@0.10.4':
+ dependencies:
+ tslib: 2.9.1
+ optional: true
'@types/chai@5.2.3':
dependencies:
@@ -2050,12 +4013,30 @@ snapshots:
'@types/deep-eql@4.0.2': {}
+ '@types/dom-mediacapture-transform@0.1.12':
+ dependencies:
+ '@types/dom-webcodecs': 0.1.13
+
+ '@types/dom-webcodecs@0.1.13': {}
+
+ '@types/eslint-scope@3.7.7':
+ dependencies:
+ '@types/eslint': 9.6.1
+ '@types/estree': 1.0.10
+
+ '@types/eslint@9.6.1':
+ dependencies:
+ '@types/estree': 1.0.10
+ '@types/json-schema': 7.0.15
+
'@types/estree@1.0.10': {}
'@types/hast@3.0.5':
dependencies:
'@types/unist': 3.0.3
+ '@types/json-schema@7.0.15': {}
+
'@types/mdast@4.0.4':
dependencies:
'@types/unist': 3.0.3
@@ -2068,6 +4049,10 @@ snapshots:
dependencies:
csstype: 3.2.3
+ '@types/react@19.3.0':
+ dependencies:
+ csstype: 3.2.3
+
'@types/unist@3.0.3': {}
'@types/whatwg-mimetype@3.0.2': {}
@@ -2082,13 +4067,13 @@ snapshots:
chai: 5.3.3
tinyrainbow: 2.0.0
- '@vitest/mocker@3.2.7(vite@7.3.7(@types/node@20.19.43))':
+ '@vitest/mocker@3.2.7(vite@7.3.7(@types/node@20.19.43)(terser@5.51.2))':
dependencies:
'@vitest/spy': 3.2.7
estree-walker: 3.0.3
magic-string: 0.30.21
optionalDependencies:
- vite: 7.3.7(@types/node@20.19.43)
+ vite: 7.3.7(@types/node@20.19.43)(terser@5.51.2)
'@vitest/pretty-format@3.2.7':
dependencies:
@@ -2116,18 +4101,144 @@ snapshots:
loupe: 3.2.1
tinyrainbow: 2.0.0
+ '@webassemblyjs/ast@1.14.1':
+ dependencies:
+ '@webassemblyjs/helper-numbers': 1.13.2
+ '@webassemblyjs/helper-wasm-bytecode': 1.13.2
+
+ '@webassemblyjs/floating-point-hex-parser@1.13.2': {}
+
+ '@webassemblyjs/helper-api-error@1.13.2': {}
+
+ '@webassemblyjs/helper-buffer@1.14.1': {}
+
+ '@webassemblyjs/helper-numbers@1.13.2':
+ dependencies:
+ '@webassemblyjs/floating-point-hex-parser': 1.13.2
+ '@webassemblyjs/helper-api-error': 1.13.2
+ '@xtuc/long': 4.2.2
+
+ '@webassemblyjs/helper-wasm-bytecode@1.13.2': {}
+
+ '@webassemblyjs/helper-wasm-section@1.14.1':
+ 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
+
+ '@webassemblyjs/ieee754@1.13.2':
+ dependencies:
+ '@xtuc/ieee754': 1.2.0
+
+ '@webassemblyjs/leb128@1.13.2':
+ dependencies:
+ '@xtuc/long': 4.2.2
+
+ '@webassemblyjs/utf8@1.13.2': {}
+
+ '@webassemblyjs/wasm-edit@1.14.1':
+ 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
+
+ '@webassemblyjs/wasm-gen@1.14.1':
+ 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
+
+ '@webassemblyjs/wasm-opt@1.14.1':
+ dependencies:
+ '@webassemblyjs/ast': 1.14.1
+ '@webassemblyjs/helper-buffer': 1.14.1
+ '@webassemblyjs/wasm-gen': 1.14.1
+ '@webassemblyjs/wasm-parser': 1.14.1
+
+ '@webassemblyjs/wasm-parser@1.14.1':
+ 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
+
+ '@webassemblyjs/wast-printer@1.14.1':
+ dependencies:
+ '@webassemblyjs/ast': 1.14.1
+ '@xtuc/long': 4.2.2
+
+ '@xtuc/ieee754@1.2.0': {}
+
+ '@xtuc/long@4.2.2': {}
+
+ acorn-import-phases@1.0.4(acorn@8.19.0):
+ dependencies:
+ acorn: 8.19.0
+
acorn-walk@8.3.2: {}
acorn@8.14.0: {}
+ acorn@8.19.0: {}
+
+ ajv-formats@3.0.1(ajv@8.20.0):
+ optionalDependencies:
+ ajv: 8.20.0
+
+ ajv-keywords@5.1.0(ajv@8.20.0):
+ dependencies:
+ ajv: 8.20.0
+ fast-deep-equal: 3.1.3
+
+ ajv@8.20.0:
+ dependencies:
+ fast-deep-equal: 3.1.3
+ fast-uri: 3.1.9
+ json-schema-traverse: 1.0.0
+ require-from-string: 2.0.2
+
+ argparse@2.0.1: {}
+
assertion-error@2.0.1: {}
+ ast-types@0.16.1:
+ dependencies:
+ tslib: 2.9.1
+
+ baseline-browser-mapping@2.11.37: {}
+
birpc@0.2.14: {}
blake3-wasm@2.1.5: {}
+ browserslist@4.29.5:
+ dependencies:
+ baseline-browser-mapping: 2.11.37
+ caniuse-lite: 1.0.30001826
+ electron-to-chromium: 1.5.485
+ node-releases: 2.0.63
+ update-browserslist-db: 1.3.4(browserslist@4.29.5)
+
+ buffer-from@1.1.2: {}
+
cac@6.7.14: {}
+ callsites@3.1.0: {}
+
+ camelcase@6.3.0: {}
+
+ caniuse-lite@1.0.30001826: {}
+
ccount@2.0.1: {}
chai@5.3.3:
@@ -2144,6 +4255,8 @@ snapshots:
check-error@2.1.3: {}
+ chrome-trace-event@1.0.4: {}
+
cjs-module-lexer@1.4.3: {}
color-convert@2.0.1:
@@ -2164,8 +4277,41 @@ snapshots:
comma-separated-tokens@2.0.3: {}
+ commander@2.20.3: {}
+
+ convert-source-map@2.0.0: {}
+
cookie@1.1.1: {}
+ cosmiconfig@8.3.6(typescript@5.9.3):
+ dependencies:
+ import-fresh: 3.3.1
+ js-yaml: 4.3.2
+ parse-json: 5.2.0
+ path-type: 4.0.0
+ optionalDependencies:
+ typescript: 5.9.3
+
+ cross-spawn@7.0.6:
+ dependencies:
+ path-key: 3.1.1
+ shebang-command: 2.0.0
+ which: 2.0.2
+
+ css-loader@7.1.4(@rspack/core@1.7.11)(webpack@5.105.0(postcss@8.5.32)):
+ dependencies:
+ icss-utils: 5.1.0(postcss@8.5.32)
+ postcss: 8.5.32
+ postcss-modules-extract-imports: 3.1.0(postcss@8.5.32)
+ postcss-modules-local-by-default: 4.2.0(postcss@8.5.32)
+ postcss-modules-scope: 3.2.1(postcss@8.5.32)
+ postcss-modules-values: 4.0.0(postcss@8.5.32)
+ postcss-value-parser: 4.2.0
+ semver: 7.8.6
+ optionalDependencies:
+ '@rspack/core': 1.7.11
+ webpack: 5.105.0(esbuild@0.28.1)(postcss@8.5.32)
+
csstype@3.2.3: {}
debug@4.4.3:
@@ -2174,6 +4320,8 @@ snapshots:
deep-eql@5.0.2: {}
+ define-lazy-prop@2.0.0: {}
+
defu@6.1.7: {}
dequal@2.0.3: {}
@@ -2186,10 +4334,36 @@ snapshots:
dependencies:
dequal: 2.0.3
+ dot-case@3.0.4:
+ dependencies:
+ no-case: 3.0.4
+ tslib: 2.9.1
+
+ dotenv@17.3.1: {}
+
+ electron-to-chromium@1.5.485: {}
+
+ enhanced-resolve@5.27.0:
+ dependencies:
+ graceful-fs: 4.2.12
+ tapable: 2.3.3
+
+ entities@4.5.0: {}
+
+ error-ex@1.3.4:
+ dependencies:
+ is-arrayish: 0.2.1
+
error-stack-parser-es@1.0.5: {}
+ error-stack-parser@2.1.4:
+ dependencies:
+ stackframe: 1.3.4
+
es-module-lexer@1.7.0: {}
+ es-module-lexer@2.3.2: {}
+
esbuild@0.25.4:
optionalDependencies:
'@esbuild/aix-ppc64': 0.25.4
@@ -2218,6 +4392,35 @@ snapshots:
'@esbuild/win32-ia32': 0.25.4
'@esbuild/win32-x64': 0.25.4
+ esbuild@0.28.1:
+ 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
+
esbuild@0.28.2:
optionalDependencies:
'@esbuild/aix-ppc64': 0.28.2
@@ -2247,31 +4450,76 @@ snapshots:
'@esbuild/win32-ia32': 0.28.2
'@esbuild/win32-x64': 0.28.2
+ escalade@3.2.0: {}
+
+ eslint-scope@5.1.1:
+ dependencies:
+ esrecurse: 4.3.0
+ estraverse: 4.3.0
+
+ esprima@4.0.1: {}
+
+ esrecurse@4.3.0:
+ dependencies:
+ estraverse: 5.3.0
+
+ estraverse@4.3.0: {}
+
+ estraverse@5.3.0: {}
+
estree-walker@3.0.3:
dependencies:
'@types/estree': 1.0.10
+ events@3.3.0: {}
+
+ execa@5.1.1:
+ dependencies:
+ cross-spawn: 7.0.6
+ get-stream: 6.0.1
+ human-signals: 2.1.0
+ is-stream: 2.0.1
+ merge-stream: 2.0.0
+ npm-run-path: 4.0.1
+ onetime: 5.1.2
+ signal-exit: 3.0.7
+ strip-final-newline: 2.0.0
+
exit-hook@2.2.1: {}
expect-type@1.4.0: {}
exsolve@1.2.0: {}
+ fast-deep-equal@3.1.3: {}
+
+ fast-uri@3.1.9: {}
+
fdir@6.5.0(picomatch@4.0.7):
optionalDependencies:
picomatch: 4.0.7
+ fs-monkey@1.0.3: {}
+
fsevents@2.3.3:
optional: true
+ gensync@1.0.0-beta.2: {}
+
+ get-stream@6.0.1: {}
+
glob-to-regexp@0.4.1: {}
+ graceful-fs@4.2.12: {}
+
happy-dom@18.0.1:
dependencies:
'@types/node': 20.19.43
'@types/whatwg-mimetype': 3.0.2
whatwg-mimetype: 3.0.0
+ has-flag@4.0.0: {}
+
hast-util-to-html@9.0.6:
dependencies:
'@types/hast': 3.0.5
@@ -2290,16 +4538,81 @@ snapshots:
dependencies:
'@types/hast': 3.0.5
+ html-entities@2.6.0: {}
+
html-void-elements@3.0.0: {}
+ human-signals@2.1.0: {}
+
+ icss-utils@5.1.0(postcss@8.5.32):
+ dependencies:
+ postcss: 8.5.32
+
+ import-fresh@3.3.1:
+ dependencies:
+ parent-module: 1.0.1
+ resolve-from: 4.0.0
+
+ is-arrayish@0.2.1: {}
+
is-arrayish@0.3.4: {}
+ is-docker@2.2.1: {}
+
+ is-stream@2.0.1: {}
+
+ is-wsl@2.2.0:
+ dependencies:
+ is-docker: 2.2.1
+
+ isexe@2.0.0: {}
+
+ jest-worker@27.5.1:
+ dependencies:
+ '@types/node': 20.19.43
+ merge-stream: 2.0.0
+ supports-color: 8.1.1
+
+ js-tokens@4.0.0: {}
+
js-tokens@9.0.1: {}
+ js-yaml@4.3.2:
+ dependencies:
+ argparse: 2.0.1
+
+ jsesc@3.1.0: {}
+
+ json-parse-even-better-errors@2.3.1: {}
+
+ json-schema-traverse@1.0.0: {}
+
+ json5@2.2.3: {}
+
+ kiwi-schema@0.5.0: {}
+
+ kleur@3.0.3: {}
+
kleur@4.1.5: {}
+ lines-and-columns@1.2.4: {}
+
+ loader-runner@4.3.2: {}
+
loupe@3.2.1: {}
+ lower-case@2.0.2:
+ dependencies:
+ tslib: 2.9.1
+
+ lru-cache@5.1.1:
+ dependencies:
+ yallist: 3.1.1
+
+ lru-cache@6.0.0:
+ dependencies:
+ yallist: 4.0.0
+
magic-string@0.30.21:
dependencies:
'@jridgewell/sourcemap-codec': 1.6.0
@@ -2318,6 +4631,17 @@ snapshots:
unist-util-visit: 5.2.0
vfile: 6.0.3
+ mediabunny@1.62.0:
+ dependencies:
+ '@types/dom-mediacapture-transform': 0.1.12
+ '@types/dom-webcodecs': 0.1.13
+
+ memfs@3.4.3:
+ dependencies:
+ fs-monkey: 1.0.3
+
+ merge-stream@2.0.0: {}
+
micromark-util-character@2.1.1:
dependencies:
micromark-util-symbol: 2.0.1
@@ -2335,8 +4659,16 @@ snapshots:
micromark-util-types@2.0.3: {}
+ mime-db@1.52.0: {}
+
+ mime-types@2.1.35:
+ dependencies:
+ mime-db: 1.52.0
+
mime@3.0.0: {}
+ mimic-fn@2.1.0: {}
+
miniflare@4.20250906.0:
dependencies:
'@cspotcode/source-map-support': 0.8.1
@@ -2368,12 +4700,31 @@ snapshots:
- bufferutil
- utf-8-validate
+ minimist@1.2.6: {}
+
ms@2.1.3: {}
nanoid@3.3.20: {}
+ neo-async@2.6.2: {}
+
+ no-case@3.0.4:
+ dependencies:
+ lower-case: 2.0.2
+ tslib: 2.9.1
+
+ node-releases@2.0.63: {}
+
+ npm-run-path@4.0.1:
+ dependencies:
+ path-key: 3.1.1
+
ohash@2.0.12: {}
+ onetime@5.1.2:
+ dependencies:
+ mimic-fn: 2.1.0
+
oniguruma-parser@0.12.2: {}
oniguruma-to-es@4.3.6:
@@ -2382,8 +4733,29 @@ snapshots:
regex: 6.1.0
regex-recursion: 6.0.2
+ open@8.4.2:
+ dependencies:
+ define-lazy-prop: 2.0.0
+ is-docker: 2.2.1
+ is-wsl: 2.2.0
+
+ parent-module@1.0.1:
+ dependencies:
+ callsites: 3.1.0
+
+ parse-json@5.2.0:
+ dependencies:
+ '@babel/code-frame': 7.29.7
+ error-ex: 1.3.4
+ json-parse-even-better-errors: 2.3.1
+ lines-and-columns: 1.2.4
+
+ path-key@3.1.1: {}
+
path-to-regexp@6.3.0: {}
+ path-type@4.0.0: {}
+
pathe@2.0.3: {}
pathval@2.0.1: {}
@@ -2392,16 +4764,67 @@ snapshots:
picomatch@4.0.7: {}
+ postcss-modules-extract-imports@3.1.0(postcss@8.5.32):
+ dependencies:
+ postcss: 8.5.32
+
+ postcss-modules-local-by-default@4.2.0(postcss@8.5.32):
+ dependencies:
+ icss-utils: 5.1.0(postcss@8.5.32)
+ postcss: 8.5.32
+ postcss-selector-parser: 7.2.1
+ postcss-value-parser: 4.2.0
+
+ postcss-modules-scope@3.2.1(postcss@8.5.32):
+ dependencies:
+ postcss: 8.5.32
+ postcss-selector-parser: 7.2.1
+
+ postcss-modules-values@4.0.0(postcss@8.5.32):
+ dependencies:
+ icss-utils: 5.1.0(postcss@8.5.32)
+ postcss: 8.5.32
+
+ postcss-selector-parser@7.2.1:
+ dependencies:
+ util-deprecate: 1.0.2
+
+ postcss-value-parser@4.2.0: {}
+
postcss@8.5.32:
dependencies:
nanoid: 3.3.20
picocolors: 1.1.1
source-map-js: 1.2.2
+ prismjs@1.30.0: {}
+
+ prompts@2.4.2:
+ dependencies:
+ kleur: 3.0.3
+ sisteransi: 1.0.5
+
property-information@7.2.0: {}
+ react-dom@19.3.1(react@19.3.1):
+ dependencies:
+ react: 19.3.1
+ scheduler: 0.28.0
+
+ react-refresh@0.18.0: {}
+
react@19.2.0: {}
+ react@19.3.1: {}
+
+ recast@0.23.21:
+ dependencies:
+ ast-types: 0.16.1
+ esprima: 4.0.1
+ source-map: 0.6.1
+ tiny-invariant: 1.3.3
+ tslib: 2.9.1
+
regex-recursion@6.0.2:
dependencies:
regex-utilities: 2.3.0
@@ -2412,6 +4835,15 @@ snapshots:
dependencies:
regex-utilities: 2.3.0
+ remotion@4.0.539(react-dom@19.3.1(react@19.3.1))(react@19.3.1):
+ dependencies:
+ react: 19.3.1
+ react-dom: 19.3.1(react@19.3.1)
+
+ require-from-string@2.0.2: {}
+
+ resolve-from@4.0.0: {}
+
rollup@4.67.5:
dependencies:
'@types/estree': 1.0.10
@@ -2444,6 +4876,23 @@ snapshots:
'@rollup/rollup-win32-x64-msvc': 4.67.5
fsevents: 2.3.3
+ scheduler@0.28.0: {}
+
+ schema-utils@4.8.3(webpack@5.105.0(postcss@8.5.32)):
+ dependencies:
+ '@types/json-schema': 7.0.15
+ ajv: 8.20.0
+ ajv-formats: 3.0.1(ajv@8.20.0)
+ ajv-keywords: 5.1.0(ajv@8.20.0)
+ optionalDependencies:
+ webpack: 5.105.0(esbuild@0.28.1)(postcss@8.5.32)
+
+ semver@6.3.2: {}
+
+ semver@7.5.3:
+ dependencies:
+ lru-cache: 6.0.0
+
semver@7.8.6: {}
sharp@0.33.5:
@@ -2505,6 +4954,12 @@ snapshots:
'@img/sharp-win32-x64': 0.35.5
'@types/node': 20.19.43
+ shebang-command@2.0.0:
+ dependencies:
+ shebang-regex: 3.0.0
+
+ shebang-regex@3.0.0: {}
+
shiki@3.4.2:
dependencies:
'@shikijs/core': 3.4.2
@@ -2518,16 +4973,36 @@ snapshots:
siginfo@2.0.0: {}
+ signal-exit@3.0.7: {}
+
simple-swizzle@0.2.4:
dependencies:
is-arrayish: 0.3.4
+ sisteransi@1.0.5: {}
+
+ snake-case@3.0.4:
+ dependencies:
+ dot-case: 3.0.4
+ tslib: 2.9.1
+
source-map-js@1.2.2: {}
+ source-map-support@0.5.21:
+ dependencies:
+ buffer-from: 1.1.2
+ source-map: 0.6.1
+
+ source-map@0.6.1: {}
+
+ source-map@0.8.0: {}
+
space-separated-tokens@2.0.2: {}
stackback@0.0.2: {}
+ stackframe@1.3.4: {}
+
std-env@3.10.0: {}
stoppable@1.1.0: {}
@@ -2537,12 +5012,46 @@ snapshots:
character-entities-html4: 2.1.0
character-entities-legacy: 3.0.0
+ strip-final-newline@2.0.0: {}
+
strip-literal@3.1.0:
dependencies:
js-tokens: 9.0.1
+ style-loader@4.0.0(webpack@5.105.0(postcss@8.5.32)):
+ dependencies:
+ webpack: 5.105.0(esbuild@0.28.1)(postcss@8.5.32)
+
supports-color@10.2.2: {}
+ supports-color@8.1.1:
+ dependencies:
+ has-flag: 4.0.0
+
+ svg-parser@2.1.0: {}
+
+ tapable@2.3.3: {}
+
+ terser-webpack-plugin@5.6.1(esbuild@0.28.1)(postcss@8.5.32)(webpack@5.105.0(postcss@8.5.32)):
+ dependencies:
+ '@jridgewell/trace-mapping': 0.3.31
+ jest-worker: 27.5.1
+ schema-utils: 4.8.3(webpack@5.105.0(postcss@8.5.32))
+ terser: 5.51.2
+ webpack: 5.105.0(esbuild@0.28.1)(postcss@8.5.32)
+ optionalDependencies:
+ esbuild: 0.28.1
+ postcss: 8.5.32
+
+ terser@5.51.2:
+ dependencies:
+ '@jridgewell/source-map': 0.3.11
+ acorn: 8.19.0
+ commander: 2.20.3
+ source-map-support: 0.5.21
+
+ tiny-invariant@1.3.3: {}
+
tinybench@2.9.0: {}
tinyexec@0.3.2: {}
@@ -2558,10 +5067,11 @@ snapshots:
tinyspy@4.0.6: {}
+ to-fast-properties@2.0.0: {}
+
trim-lines@3.0.1: {}
- tslib@2.9.1:
- optional: true
+ tslib@2.9.1: {}
typescript@5.9.3: {}
@@ -2608,6 +5118,14 @@ snapshots:
unist-util-is: 6.0.1
unist-util-visit-parents: 6.1.0
+ update-browserslist-db@1.3.4(browserslist@4.29.5):
+ dependencies:
+ browserslist: 4.29.5
+ escalade: 3.2.0
+ picocolors: 1.1.1
+
+ util-deprecate@1.0.2: {}
+
vfile-message@4.0.3:
dependencies:
'@types/unist': 3.0.3
@@ -2618,13 +5136,13 @@ snapshots:
'@types/unist': 3.0.3
vfile-message: 4.0.3
- vite-node@3.2.4(@types/node@20.19.43):
+ vite-node@3.2.4(@types/node@20.19.43)(terser@5.51.2):
dependencies:
cac: 6.7.14
debug: 4.4.3
es-module-lexer: 1.7.0
pathe: 2.0.3
- vite: 7.3.7(@types/node@20.19.43)
+ vite: 7.3.7(@types/node@20.19.43)(terser@5.51.2)
transitivePeerDependencies:
- '@types/node'
- jiti
@@ -2639,7 +5157,7 @@ snapshots:
- tsx
- yaml
- vite@7.3.7(@types/node@20.19.43):
+ vite@7.3.7(@types/node@20.19.43)(terser@5.51.2):
dependencies:
esbuild: 0.28.2
fdir: 6.5.0(picomatch@4.0.7)
@@ -2650,12 +5168,13 @@ snapshots:
optionalDependencies:
'@types/node': 20.19.43
fsevents: 2.3.3
+ terser: 5.51.2
- vitest@3.2.7(@types/node@20.19.43)(happy-dom@18.0.1):
+ vitest@3.2.7(@types/node@20.19.43)(happy-dom@18.0.1)(terser@5.51.2):
dependencies:
'@types/chai': 5.2.3
'@vitest/expect': 3.2.7
- '@vitest/mocker': 3.2.7(vite@7.3.7(@types/node@20.19.43))
+ '@vitest/mocker': 3.2.7(vite@7.3.7(@types/node@20.19.43)(terser@5.51.2))
'@vitest/pretty-format': 3.2.7
'@vitest/runner': 3.2.7
'@vitest/snapshot': 3.2.7
@@ -2673,8 +5192,8 @@ snapshots:
tinyglobby: 0.2.17
tinypool: 1.1.1
tinyrainbow: 2.0.0
- vite: 7.3.7(@types/node@20.19.43)
- vite-node: 3.2.4(@types/node@20.19.43)
+ vite: 7.3.7(@types/node@20.19.43)(terser@5.51.2)
+ vite-node: 3.2.4(@types/node@20.19.43)(terser@5.51.2)
why-is-node-running: 2.3.0
optionalDependencies:
'@types/node': 20.19.43
@@ -2693,8 +5212,59 @@ snapshots:
- tsx
- yaml
+ watchpack@2.6.4:
+ dependencies:
+ graceful-fs: 4.2.12
+
+ webpack-sources@3.7.0: {}
+
+ webpack@5.105.0(esbuild@0.28.1)(postcss@8.5.32):
+ dependencies:
+ '@types/eslint-scope': 3.7.7
+ '@types/estree': 1.0.10
+ '@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.19.0
+ acorn-import-phases: 1.0.4(acorn@8.19.0)
+ browserslist: 4.29.5
+ chrome-trace-event: 1.0.4
+ enhanced-resolve: 5.27.0
+ es-module-lexer: 2.3.2
+ eslint-scope: 5.1.1
+ events: 3.3.0
+ glob-to-regexp: 0.4.1
+ graceful-fs: 4.2.12
+ json-parse-even-better-errors: 2.3.1
+ loader-runner: 4.3.2
+ mime-types: 2.1.35
+ neo-async: 2.6.2
+ schema-utils: 4.8.3(webpack@5.105.0(postcss@8.5.32))
+ tapable: 2.3.3
+ terser-webpack-plugin: 5.6.1(esbuild@0.28.1)(postcss@8.5.32)(webpack@5.105.0(postcss@8.5.32))
+ watchpack: 2.6.4
+ webpack-sources: 3.7.0
+ transitivePeerDependencies:
+ - '@minify-html/node'
+ - '@swc/core'
+ - '@swc/css'
+ - '@swc/html'
+ - clean-css
+ - cssnano
+ - csso
+ - esbuild
+ - html-minifier-terser
+ - lightningcss
+ - postcss
+ - uglify-js
+
whatwg-mimetype@3.0.0: {}
+ which@2.0.2:
+ dependencies:
+ isexe: 2.0.0
+
why-is-node-running@2.3.0:
dependencies:
siginfo: 2.0.0
@@ -2756,6 +5326,10 @@ snapshots:
ws@8.21.0: {}
+ yallist@3.1.1: {}
+
+ yallist@4.0.0: {}
+
youch-core@0.3.3:
dependencies:
'@poppinss/exception': 1.2.3
@@ -2773,4 +5347,6 @@ snapshots:
zod@3.25.76: {}
+ zod@4.5.4: {}
+
zwitch@2.0.4: {}
diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml
index 924b55f..db89d45 100644
--- a/pnpm-workspace.yaml
+++ b/pnpm-workspace.yaml
@@ -1,2 +1,3 @@
packages:
- packages/*
+ - video
diff --git a/site/_headers b/site/_headers
index e1f0d92..b5b0b0d 100644
--- a/site/_headers
+++ b/site/_headers
@@ -12,6 +12,8 @@
Cache-Control: public, max-age=300
/data/globe.json
Cache-Control: public, max-age=3600
+/video/*
+ Cache-Control: public, max-age=86400
/site.css
Cache-Control: public, max-age=300
/site.js
diff --git a/site/aurora.js b/site/aurora.js
index 773b94a..dafe18a 100644
--- a/site/aurora.js
+++ b/site/aurora.js
@@ -2,8 +2,8 @@
// small WebGL shader at half resolution. It drifts with the globe's turn, pauses off-screen, and
// renders one still frame for reduced motion. Without WebGL the header's own gradient shows.
-const VERT = `attribute vec2 p; void main() { gl_Position = vec4(p, 0.0, 1.0); }`;
-const FRAG = `
+export const AURORA_VERT = `attribute vec2 p; void main() { gl_Position = vec4(p, 0.0, 1.0); }`;
+export const AURORA_FRAG = `
precision mediump float;
uniform vec2 res;
uniform float t;
@@ -40,16 +40,18 @@ void main() {
gl_FragColor = vec4(col, max(col.r, max(col.g, col.b)));
}`;
-export function createAurora(canvas, { view, horizon }) {
- const gl = canvas.getContext("webgl", { premultipliedAlpha: true, antialias: false, alpha: true });
- if (!gl) { canvas.hidden = true; return { setRunning() {} }; }
- const reduce = matchMedia("(prefers-reduced-motion: reduce)").matches;
+// Compiles the shader on a WebGL canvas and draws one frame from explicit inputs, so other callers
+// (the product film in video/) can step it. Returns null without WebGL.
+export function createAuroraRenderer(canvas, { preserve = false } = {}) {
+ // preserve keeps the last frame readable, for callers that copy it out (frame capture).
+ const gl = canvas.getContext("webgl", { premultipliedAlpha: true, antialias: false, alpha: true, preserveDrawingBuffer: preserve });
+ if (!gl) return null;
const sh = (type, src) => { const s = gl.createShader(type); gl.shaderSource(s, src); gl.compileShader(s); return s; };
const prog = gl.createProgram();
- gl.attachShader(prog, sh(gl.VERTEX_SHADER, VERT));
- gl.attachShader(prog, sh(gl.FRAGMENT_SHADER, FRAG));
+ gl.attachShader(prog, sh(gl.VERTEX_SHADER, AURORA_VERT));
+ gl.attachShader(prog, sh(gl.FRAGMENT_SHADER, AURORA_FRAG));
gl.linkProgram(prog);
- if (!gl.getProgramParameter(prog, gl.LINK_STATUS)) { canvas.hidden = true; return { setRunning() {} }; }
+ if (!gl.getProgramParameter(prog, gl.LINK_STATUS)) return null;
gl.useProgram(prog);
const buf = gl.createBuffer();
gl.bindBuffer(gl.ARRAY_BUFFER, buf);
@@ -58,24 +60,36 @@ export function createAurora(canvas, { view, horizon }) {
gl.enableVertexAttribArray(loc);
gl.vertexAttribPointer(loc, 2, gl.FLOAT, false, 0, 0);
const u = { res: gl.getUniformLocation(prog, "res"), t: gl.getUniformLocation(prog, "t"), shift: gl.getUniformLocation(prog, "shift"), floorY: gl.getUniformLocation(prog, "floorY") };
+ return {
+ /** t in seconds; shift follows the globe (lng × 0.006); floorY is where it fades out, 0..1 from the top. */
+ draw({ t, shift, floorY }) {
+ gl.viewport(0, 0, canvas.width, canvas.height);
+ gl.uniform2f(u.res, canvas.width, canvas.height);
+ gl.uniform1f(u.t, t);
+ gl.uniform1f(u.shift, shift);
+ gl.uniform1f(u.floorY, floorY);
+ gl.drawArrays(gl.TRIANGLE_STRIP, 0, 4);
+ },
+ };
+}
+
+export function createAurora(canvas, { view, horizon }) {
+ const r = createAuroraRenderer(canvas);
+ if (!r) { canvas.hidden = true; return { setRunning() {} }; }
+ const reduce = matchMedia("(prefers-reduced-motion: reduce)").matches;
let running = false, last = 0, floorY = 0.7;
const t0 = performance.now();
function resize() {
- const r = canvas.getBoundingClientRect();
+ const b = canvas.getBoundingClientRect();
// Half resolution: the glow is soft, so it costs a quarter of the pixels.
- canvas.width = Math.max(1, Math.round(r.width * 0.5));
- canvas.height = Math.max(1, Math.round(r.height * 0.5));
- floorY = Math.min(1, (horizon() + 60) / Math.max(1, r.height));
+ canvas.width = Math.max(1, Math.round(b.width * 0.5));
+ canvas.height = Math.max(1, Math.round(b.height * 0.5));
+ floorY = Math.min(1, (horizon() + 60) / Math.max(1, b.height));
draw(performance.now());
}
function draw(now) {
- gl.viewport(0, 0, canvas.width, canvas.height);
- gl.uniform2f(u.res, canvas.width, canvas.height);
- gl.uniform1f(u.t, reduce ? 12 : (now - t0) / 1000);
- gl.uniform1f(u.shift, view().lng * 0.006);
- gl.uniform1f(u.floorY, floorY);
- gl.drawArrays(gl.TRIANGLE_STRIP, 0, 4);
+ r.draw({ t: reduce ? 12 : (now - t0) / 1000, shift: view().lng * 0.006, floorY });
}
function frame(now) {
if (!running) return;
diff --git a/site/globe.js b/site/globe.js
index 5264a83..7aba5a9 100644
--- a/site/globe.js
+++ b/site/globe.js
@@ -1,11 +1,14 @@
// A particle globe: every speck is churches from the Lookup index, on a pixel-dithered sphere.
// Plain canvas, no dependencies. Orthographic projection, front hemisphere only.
+//
+// createGlobeRenderer draws one frame from an explicit view and time, so other callers (the product
+// film in video/) can step it frame by frame. createGlobe is the site's live globe built on it.
const RAD = Math.PI / 180;
const reduceMotion = () => matchMedia("(prefers-reduced-motion: reduce)").matches;
// 4×4 ordered (Bayer) dither thresholds, 0..1.
-const BAYER = [0, 8, 2, 10, 12, 4, 14, 6, 3, 11, 1, 9, 15, 7, 13, 5].map((v) => (v + 0.5) / 16);
+export const BAYER = [0, 8, 2, 10, 12, 4, 14, 6, 3, 11, 1, 9, 15, 7, 13, 5].map((v) => (v + 0.5) / 16);
function rng(seed) {
return () => {
@@ -16,11 +19,19 @@ function rng(seed) {
};
}
-export function createGlobe(canvas, data, opts = {}) {
+// The particle color for a brightness bucket k in 0..1: deep violet for faint specks through lilac
+// to near white for the densest.
+export function bucketColor(k) {
+ const r = Math.round(150 + 105 * k), g = Math.round(110 + 130 * k), bl = Math.round(230 + 25 * k);
+ return `rgba(${r},${g},${bl},${0.35 + 0.65 * k})`;
+}
+
+export function createGlobeRenderer(canvas, data, opts = {}) {
const ctx = canvas.getContext("2d");
const pinColor = opts.pinColor ?? "#C084FC";
// Particles: a few per cell, more for denser cells, jittered inside the cell so the grid disappears.
+ // Cells arrive densest first, so particle order is densest first too.
const cells = data.data.length / 3;
let max = 1;
for (let i = 0; i < cells; i++) max = Math.max(max, data.data[i * 3 + 2]);
@@ -41,31 +52,27 @@ export function createGlobe(canvas, data, opts = {}) {
const n = plat.length;
const sinLa = Float32Array.from(plat, Math.sin), cosLa = Float32Array.from(plat, Math.cos), lng = Float32Array.from(plng);
- let lat0 = opts.lat ?? 28, lng0 = opts.lng ?? -38;
let dpr = 1;
- let pins = [];
- let selected = null;
- let anim = null;
- let dragging = null;
- let idleUntil = 0;
- let visible = true;
- let raf = 0;
- let drift = 1;
let shade = null; // pre-rendered dithered sphere
+ let shadeKey = "";
// The globe is much wider than the canvas is tall, so only its top shows, like a planet rising.
- function geometry() {
+ // scale zooms in, for a closer, flatter horizon where the land reads larger.
+ // top is the room above the limb, so the atmosphere glow can fade out before the canvas edge.
+ function geometry(scale = opts.scale ?? 1, top = opts.top ?? 36) {
const W = canvas.width, H = canvas.height;
- // opts.scale zooms in, for a closer, flatter horizon where the land reads larger.
- // opts.top is the room above the limb, so the atmosphere glow can fade out before the canvas edge.
- const R = Math.min(W * 0.66, 1300 * dpr) * (opts.scale ?? 1);
- return { W, H, R, cx: W / 2, cy: R + (opts.top ?? 36) * dpr };
+ const R = Math.min(W * 0.66, 1300 * dpr) * scale;
+ return { W, H, R, cx: W / 2, cy: R + top * dpr };
}
- function renderShade() {
- const { W, H, R, cx, cy } = geometry();
+ function renderShade(g) {
+ const { W, H, R, cx, cy } = g;
+ const key = `${W}|${H}|${R}|${cx}|${cy}|${dpr}`;
+ if (key === shadeKey) return;
+ shadeKey = key;
shade = document.createElement("canvas");
shade.width = W; shade.height = H;
+ if (!W || !H) return;
const s = shade.getContext("2d");
const P = Math.max(2, Math.round(2 * dpr)); // pixel size
// Light from the upper left and slightly in front.
@@ -85,13 +92,10 @@ export function createGlobe(canvas, data, opts = {}) {
}
}
- function resize() {
- const r = canvas.getBoundingClientRect();
- dpr = Math.min(2, window.devicePixelRatio || 1);
- canvas.width = Math.round(r.width * dpr);
- canvas.height = Math.round(r.height * dpr);
- renderShade();
- draw();
+ // The caller sizes the canvas; this sets the pixel ratio and rebuilds the shading.
+ function resize(nextDpr = dpr) {
+ dpr = nextDpr;
+ renderShade(geometry());
}
function project(sinLa_, cosLa_, lo, sinLat0, cosLat0, cosL0, sinL0) {
@@ -104,55 +108,83 @@ export function createGlobe(canvas, data, opts = {}) {
const BUCKETS = 7;
const paths = new Array(BUCKETS);
- function draw(t = performance.now()) {
- const { W, H, R, cx, cy } = geometry();
+ function dot(x, y, r, fill, ring, ringColor = "#0A0618") {
+ ctx.beginPath();
+ ctx.arc(x, y, r + ring, 0, Math.PI * 2);
+ ctx.fillStyle = ringColor;
+ ctx.fill();
+ ctx.beginPath();
+ ctx.arc(x, y, r, 0, Math.PI * 2);
+ ctx.fillStyle = fill;
+ ctx.fill();
+ }
+
+ /**
+ * Draw one frame.
+ * view: { lat, lng } center. t: ms, for twinkle and the selection pulse. motion: false stills both.
+ * reveal (0..1) draws only the densest share of particles; gain brightens them; glow, shadeAlpha and
+ * limb (0..1, how much of the arc is drawn) fade the sphere's layers; scale and top move the camera.
+ */
+ function draw({ lat, lng: lng0, t = 0, motion = true, pins = [], selected = null, reveal = 1, gain = 1,
+ glow: glowA = 1, shadeAlpha = 1, limb: limbK = 1, scale, top } = {}) {
+ const g = geometry(scale, top);
+ const { W, H, R, cx, cy } = g;
+ renderShade(g);
ctx.clearRect(0, 0, W, H);
// Atmosphere: a violet glow hugging the limb.
- const glow = ctx.createRadialGradient(cx, cy, R * 0.97, cx, cy, R * 1.09);
- glow.addColorStop(0, "rgba(139, 92, 246, 0.0)");
- glow.addColorStop(0.35, "rgba(167, 139, 250, 0.28)");
- glow.addColorStop(1, "rgba(76, 29, 149, 0)");
- ctx.fillStyle = glow;
- ctx.fillRect(0, 0, W, H);
+ if (glowA > 0) {
+ const glow = ctx.createRadialGradient(cx, cy, R * 0.97, cx, cy, R * 1.09);
+ glow.addColorStop(0, "rgba(139, 92, 246, 0.0)");
+ glow.addColorStop(0.35, "rgba(167, 139, 250, 0.28)");
+ glow.addColorStop(1, "rgba(76, 29, 149, 0)");
+ ctx.globalAlpha = Math.min(1, glowA);
+ ctx.fillStyle = glow;
+ ctx.fillRect(0, 0, W, H);
+ ctx.globalAlpha = 1;
+ }
- if (shade) ctx.drawImage(shade, 0, 0);
+ if (shade && shade.width && shade.height && shadeAlpha > 0) {
+ ctx.globalAlpha = Math.min(1, shadeAlpha);
+ ctx.drawImage(shade, 0, 0);
+ ctx.globalAlpha = 1;
+ }
// Limb highlight, brightest where the light hits.
- const limb = ctx.createLinearGradient(cx - R, 0, cx + R, 0);
- limb.addColorStop(0, "rgba(196,181,253,0.0)");
- limb.addColorStop(0.35, "rgba(221,214,254,0.85)");
- limb.addColorStop(0.65, "rgba(196,181,253,0.35)");
- limb.addColorStop(1, "rgba(196,181,253,0.0)");
- ctx.beginPath();
- ctx.arc(cx, cy, R, Math.PI, Math.PI * 2);
- ctx.lineWidth = 1.25 * dpr;
- ctx.strokeStyle = limb;
- ctx.stroke();
+ if (limbK > 0) {
+ const limb = ctx.createLinearGradient(cx - R, 0, cx + R, 0);
+ limb.addColorStop(0, "rgba(196,181,253,0.0)");
+ limb.addColorStop(0.35, "rgba(221,214,254,0.85)");
+ limb.addColorStop(0.65, "rgba(196,181,253,0.35)");
+ limb.addColorStop(1, "rgba(196,181,253,0.0)");
+ ctx.beginPath();
+ ctx.arc(cx, cy, R, Math.PI, Math.PI * (1 + Math.min(1, limbK)));
+ ctx.lineWidth = 1.25 * dpr;
+ ctx.strokeStyle = limb;
+ ctx.stroke();
+ }
// Churches as pixel particles, snapped to the pixel grid and batched by brightness.
- const sinLat0 = Math.sin(lat0 * RAD), cosLat0 = Math.cos(lat0 * RAD);
+ const sinLat0 = Math.sin(lat * RAD), cosLat0 = Math.cos(lat * RAD);
const cosL0 = Math.cos(lng0 * RAD), sinL0 = Math.sin(lng0 * RAD);
const P = Math.max(1, Math.round(dpr));
- const tw = reduceMotion() ? 0 : t * 0.0012;
+ const tw = motion ? t * 0.0012 : 0;
+ const count = reveal >= 1 ? n : Math.max(0, Math.floor(n * reveal));
for (let b = 0; b < BUCKETS; b++) paths[b] = new Path2D();
- for (let i = 0; i < n; i++) {
+ for (let i = 0; i < count; i++) {
const [x, y, c] = project(sinLa[i], cosLa[i], lng[i], sinLat0, cosLat0, cosL0, sinL0);
if (c <= 0.03) continue;
const py = cy - y * R;
if (py < -4 || py > H + 4) continue;
const px = cx + x * R;
const twinkle = tw ? 0.88 + 0.12 * Math.sin(tw + ph[i]) : 1;
- const v = (0.25 + 0.75 * pw[i]) * (0.3 + 0.7 * c) * twinkle;
- const b = Math.min(BUCKETS - 1, Math.floor(v * BUCKETS));
+ const v = (0.25 + 0.75 * pw[i]) * (0.3 + 0.7 * c) * twinkle * gain;
+ const b = Math.max(0, Math.min(BUCKETS - 1, Math.floor(v * BUCKETS)));
const size = (pw[i] > 0.6 ? 2 : 1) * P;
paths[b].rect(Math.round(px / P) * P, Math.round(py / P) * P, size, size);
}
for (let b = 0; b < BUCKETS; b++) {
- const k = b / (BUCKETS - 1);
- // Deep violet for faint specks through lilac to near white for the densest.
- const r = Math.round(150 + 105 * k), g = Math.round(110 + 130 * k), bl = Math.round(230 + 25 * k);
- ctx.fillStyle = `rgba(${r},${g},${bl},${0.35 + 0.65 * k})`;
+ ctx.fillStyle = bucketColor(b / (BUCKETS - 1));
ctx.fill(paths[b]);
}
@@ -166,7 +198,7 @@ export function createGlobe(canvas, data, opts = {}) {
const [x, y, c] = project(Math.sin(selected.lat * RAD), Math.cos(selected.lat * RAD), selected.lng * RAD, sinLat0, cosLat0, cosL0, sinL0);
if (c > 0) {
const px = cx + x * R, py = cy - y * R;
- if (!reduceMotion()) {
+ if (motion) {
const phase = ((t - selected.at) % 1600) / 1600;
ctx.beginPath();
ctx.arc(px, py, (8 + phase * 24) * dpr, 0, Math.PI * 2);
@@ -179,25 +211,55 @@ export function createGlobe(canvas, data, opts = {}) {
}
}
- // Where a point sits on screen right now, in CSS pixels, so HTML labels can follow the globe.
- function screen(la, lo) {
- const { R, cx, cy } = geometry();
- const sinLat0 = Math.sin(lat0 * RAD), cosLat0 = Math.cos(lat0 * RAD);
+ // Where a point sits on screen for a view, in CSS pixels, so HTML labels can follow the globe.
+ function screen(la, lo, { lat, lng: lng0, scale, top }) {
+ const { R, cx, cy } = geometry(scale, top);
+ const sinLat0 = Math.sin(lat * RAD), cosLat0 = Math.cos(lat * RAD);
const [x, y, c] = project(Math.sin(la * RAD), Math.cos(la * RAD), lo * RAD, sinLat0, cosLat0, Math.cos(lng0 * RAD), Math.sin(lng0 * RAD));
- return { x: (cx + x * R) / dpr, y: (cy - y * R) / dpr, visible: c > 0.05 };
+ return { x: (cx + x * R) / dpr, y: (cy - y * R) / dpr, visible: c > 0.05, depth: c };
}
- function dot(x, y, r, fill, ring, ringColor = "#0A0618") {
- ctx.beginPath();
- ctx.arc(x, y, r + ring, 0, Math.PI * 2);
- ctx.fillStyle = ringColor;
- ctx.fill();
- ctx.beginPath();
- ctx.arc(x, y, r, 0, Math.PI * 2);
- ctx.fillStyle = fill;
- ctx.fill();
+ return {
+ particles: { n, sinLa, cosLa, lng, pw, ph },
+ geometry,
+ resize,
+ draw,
+ screen,
+ };
+}
+
+export function createGlobe(canvas, data, opts = {}) {
+ const r = createGlobeRenderer(canvas, data, opts);
+
+ let lat0 = opts.lat ?? 28, lng0 = opts.lng ?? -38;
+ let pins = [];
+ let selected = null;
+ let anim = null;
+ let dragging = null;
+ let idleUntil = 0;
+ let visible = true;
+ let raf = 0;
+ let drift = 1;
+
+ function draw(t = performance.now()) {
+ r.draw({ lat: lat0, lng: lng0, t, motion: !reduceMotion(), pins, selected });
+ }
+
+ function resize() {
+ const b = canvas.getBoundingClientRect();
+ const dpr = Math.min(2, window.devicePixelRatio || 1);
+ canvas.width = Math.round(b.width * dpr);
+ canvas.height = Math.round(b.height * dpr);
+ r.resize(dpr);
+ draw();
}
+ // Where a point sits on screen right now, in CSS pixels, so HTML labels can follow the globe.
+ const screen = (la, lo) => {
+ const { x, y, visible } = r.screen(la, lo, { lat: lat0, lng: lng0 });
+ return { x, y, visible };
+ };
+
function frame(t) {
raf = 0;
if (anim) {
@@ -232,7 +294,7 @@ export function createGlobe(canvas, data, opts = {}) {
wake();
return {
- particles: n,
+ particles: r.particles.n,
screen,
/** The current view center, for layers that turn with the globe. */
view: () => ({ lat: lat0, lng: lng0 }),
diff --git a/site/index.html b/site/index.html
index b97daef..e7b134d 100644
--- a/site/index.html
+++ b/site/index.html
@@ -50,6 +50,10 @@
Church details, filled in.
+
+
+ This is Lookup 0:57
+
@@ -281,6 +285,14 @@
Add church lookup to your app
+
+
diff --git a/site/site.css b/site/site.css
index 3def76a..9394f3b 100644
--- a/site/site.css
+++ b/site/site.css
@@ -1162,3 +1162,54 @@ p.num::after { margin-left: 2px; }
/* Wrapping: centered intros balance their lines so the last one is never a stray few words; body copy avoids orphans. */
p, li { text-wrap: pretty; }
.h-head > p:last-child, .cta-in p, .lede { text-wrap: balance; }
+
+/* ── The video: a thumbnail callout under the hero search that opens a lightbox (Harvous's pattern and Plyr player) ── */
+.watch { position: relative; z-index: 11; display: inline-flex; align-items: center; gap: 12px; margin-top: 22px; padding: 5px 18px 5px 5px; border-radius: 14px;
+ font: inherit; font-size: .875rem; font-weight: 500; line-height: 1; color: rgba(239,237,253,.86); cursor: pointer;
+ background: rgba(13,9,28,.55); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
+ transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
+.watch:hover { color: #fff; background: rgba(32,22,64,.72); border-color: rgba(196,181,253,.4); }
+.watch:focus-visible { outline: 2px solid #C4B5FD; outline-offset: 3px; }
+.watch-thumb { position: relative; flex: none; width: 80px; height: 45px; border-radius: 9px; overflow: hidden; display: grid; place-items: center;
+ box-shadow: 0 0 0 1px rgba(196,181,253,.25); }
+.watch-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .2s, transform .4s cubic-bezier(.2,.8,.2,1); }
+.watch:hover .watch-thumb img { opacity: 1; transform: scale(1.06); }
+.watch-ic { position: relative; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 999px; color: #fff;
+ background: linear-gradient(135deg, #A78BFA, #6D28D9); box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 0 14px -2px rgba(139,92,246,.9); }
+.watch-ic svg { margin-left: 1px; }
+.watch-t { font-family: var(--mono); font-size: .75rem; color: rgba(239,237,253,.45); }
+
+.video-lb { --chrome: #0B0716; position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center;
+ box-sizing: border-box; padding: clamp(1rem, 4vw, 2rem); }
+.video-lb[hidden] { display: none; }
+.video-lb-backdrop { position: absolute; inset: 0; background: rgba(5,2,15,.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); cursor: pointer;
+ animation: videoIn .3s ease both; }
+.video-lb-panel { position: relative; z-index: 1; width: min(1120px, 100%); max-height: min(85dvh, 720px); border-radius: clamp(12px, 2vw, 18px); overflow: hidden;
+ background: var(--chrome); border: 1px solid rgba(196,181,253,.18);
+ box-shadow: 0 40px 100px -30px rgba(0,0,0,.9), 0 0 140px -40px rgba(124,58,237,.6); animation: videoPanel .45s cubic-bezier(.2,.8,.2,1) both; }
+.video-lb-close { position: absolute; top: .75rem; right: .75rem; z-index: 3; display: inline-flex; align-items: center; justify-content: center;
+ width: 2.25rem; height: 2.25rem; padding: 0; border-radius: 50%; color: #fff; cursor: pointer; border: 1px solid rgba(255,255,255,.22);
+ background: color-mix(in oklab, var(--chrome) 55%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background-color .15s ease; }
+.video-lb-close:hover { background: color-mix(in oklab, var(--chrome) 80%, transparent); }
+.video-lb-close:focus-visible { outline: 2px solid #C4B5FD; outline-offset: 2px; }
+.video-lb-close svg { width: 1rem; height: 1rem; }
+.video-lb-video { display: block; width: 100%; max-width: 100%; aspect-ratio: 16 / 9; background: #05020F; }
+/* Plyr in Lookup's violet. */
+.video-lb .plyr { --plyr-color-main: #8B5CF6; --plyr-video-background: #05020F; --plyr-font-family: var(--font);
+ --plyr-video-control-background-hover: #7C3AED; --plyr-range-thumb-background: #fff; width: 100%; max-height: min(85dvh, 720px); }
+.video-lb .plyr__video-wrapper, .video-lb .plyr video { max-height: min(85dvh, 720px); }
+.video-lb .plyr__control--overlaid { background: rgba(124,58,237,.85); box-shadow: 0 0 0 8px rgba(124,58,237,.18), 0 20px 50px -14px rgba(124,58,237,.9);
+ backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
+.video-lb .plyr__control--overlaid:hover { background: #7C3AED; }
+@keyframes videoIn { from { opacity: 0; } }
+@keyframes videoPanel { from { opacity: 0; transform: translateY(10px) scale(.98); } }
+@media (max-width: 640px) { .watch { margin-top: 18px; } .watch-thumb { width: 64px; height: 36px; } }
+@media (prefers-reduced-motion: reduce) { .watch, .watch-thumb img, .video-lb-close { transition: none; } .video-lb-backdrop, .video-lb-panel { animation: none; } }
+
+/* Scrolled, the floating nav tucks in to just fit its contents (brand left, actions right, a calm gap between),
+ and its contents move in with the card. */
+.nav { --nav-card: 640px; transition: padding .45s cubic-bezier(.33,1,.68,1); }
+.nav.scrolled { padding-left: max(24px, calc((100% - var(--nav-card)) / 2 + 16px)); padding-right: max(24px, calc((100% - var(--nav-card)) / 2 + 12px)); }
+.nav.scrolled::before { inset: 6px max(8px, calc((100% - var(--nav-card)) / 2)); }
+@media (max-width: 680px) { .nav.scrolled { padding-left: 14px; padding-right: 14px; } .nav.scrolled::before { inset: 5px 6px; } }
+@media (prefers-reduced-motion: reduce) { .nav { transition: none; } }
diff --git a/site/site.js b/site/site.js
index 4cd529c..7c71132 100644
--- a/site/site.js
+++ b/site/site.js
@@ -554,3 +554,66 @@ markScrolled();
const deep = location.hash.match(/^#example\/([a-z]+)(?:\/([a-z]+))?$/);
if (deep) open(deep[1], $(`.ex-card[data-ex="${deep[1]}"]`), deep[2]);
})();
+
+// ── The video: the hero's thumbnail opens a lightbox with the same Plyr player and settings as harvous.com.
+// Plyr (self-hosted in /vendor/plyr) loads on first open, so a visit that never plays never downloads it. ──
+(function videoLightbox() {
+ const trigger = $("#video-open"), lb = $("#video-lb"), video = $("#video-video");
+ if (!trigger || !lb || !video) return;
+ const closeBtn = $(".video-lb-close", lb);
+ // Harvous's src/lib/plyr-options.ts.
+ const OPTIONS = {
+ controls: ["play-large", "play", "progress", "current-time", "duration", "mute", "volume", "settings", "fullscreen"],
+ settings: ["speed"],
+ speed: { selected: 1, options: [0.75, 1, 1.25, 1.5, 2] },
+ hideControls: true,
+ keyboard: { focused: true, global: false },
+ tooltips: { controls: true, seek: true },
+ iconUrl: "/vendor/plyr/plyr.svg",
+ blankVideo: "",
+ };
+ let player = null, loading = null, previousFocus = null;
+
+ const loadPlyr = () => loading ??= (() => {
+ const css = document.createElement("link");
+ css.rel = "stylesheet"; css.href = "/vendor/plyr/plyr.css";
+ document.head.append(css);
+ return import("/vendor/plyr/plyr.min.mjs").then((m) => m.default);
+ })();
+
+ const focusables = () => [...lb.querySelectorAll('button:not([disabled]), [href], input, select, [tabindex]:not([tabindex="-1"])')]
+ .filter((el) => el.offsetParent !== null);
+
+ async function open() {
+ previousFocus = document.activeElement;
+ lb.hidden = false;
+ document.body.style.overflow = "hidden";
+ closeBtn.focus();
+ try {
+ const Plyr = await loadPlyr();
+ player ??= new Plyr(video, OPTIONS);
+ } catch { video.controls = true; }
+ // Plyr only returns a promise once it's ready; before that it queues the play.
+ const played = player ? player.play() : video.play();
+ if (played && typeof played.catch === "function") played.catch(() => {});
+ }
+
+ function close() {
+ lb.hidden = true;
+ document.body.style.overflow = "";
+ if (player) player.pause(); else video.pause();
+ previousFocus?.focus?.();
+ previousFocus = null;
+ }
+
+ trigger.addEventListener("click", open);
+ $$("[data-video-close]", lb).forEach((el) => el.addEventListener("click", close));
+ lb.addEventListener("keydown", (e) => {
+ if (e.key === "Escape") { e.preventDefault(); close(); return; }
+ if (e.key !== "Tab") return;
+ const f = focusables();
+ if (!f.length) return;
+ if (e.shiftKey && document.activeElement === f[0]) { e.preventDefault(); f[f.length - 1].focus(); }
+ else if (!e.shiftKey && document.activeElement === f[f.length - 1]) { e.preventDefault(); f[0].focus(); }
+ });
+})();
diff --git a/site/sky.js b/site/sky.js
index 753b56a..e69b32a 100644
--- a/site/sky.js
+++ b/site/sky.js
@@ -1,9 +1,11 @@
// The header's night sky: faint seeded stars that turn with the globe, plus
// the odd shooting star travelling the way the globe is spinning. Stays still for reduced motion.
+//
+// createSkyRenderer draws one frame from explicit inputs, so other callers (the product film in
+// video/) can step it frame by frame. createSky is the site's live sky built on it.
-export function createSky(canvas, { view, horizon }) {
+export function createSkyRenderer(canvas) {
const ctx = canvas.getContext("2d");
- const reduce = matchMedia("(prefers-reduced-motion: reduce)").matches;
let seed = 11;
const rnd = () => (seed = (seed * 16807) % 2147483647) / 2147483647;
@@ -12,16 +14,12 @@ export function createSky(canvas, { view, horizon }) {
lng: rnd() * 360, y: Math.pow(rnd(), 1.15), r: rnd() < 0.07 ? 1.5 : rnd() < 0.35 ? 1 : 0.65,
a: 0.12 + rnd() * 0.4, tw: rnd() * Math.PI * 2,
}));
- let W = 0, H = 0, dpr = 1, skyH = 0, running = false, last = 0, prevLng = null, spin = -1, nextShot = 0;
- const shots = [];
+ let W = 0, H = 0, dpr = 1;
- function resize() {
- dpr = Math.min(devicePixelRatio || 1, 2);
- const r = canvas.getBoundingClientRect();
- W = r.width; H = r.height;
+ /** Size in CSS pixels; the canvas backing store is that times dpr. */
+ function size(w, h, d) {
+ W = w; H = h; dpr = d;
canvas.width = Math.round(W * dpr); canvas.height = Math.round(H * dpr);
- skyH = Math.min(H, horizon() + 40);
- draw(performance.now());
}
// About 110 degrees of sky across the header; it turns at half the globe's rate.
@@ -30,35 +28,61 @@ export function createSky(canvas, { view, horizon }) {
let d = ((lng + v.lng * 0.5) % 360 + 540) % 360 - 180;
return W / 2 + d * scale();
};
- const yOf = (y, v) => y * skyH + (v.lat + 16) * 0.6;
+ const yOf = (y, v, skyH) => y * skyH + (v.lat + 16) * 0.6;
- function draw(t) {
- const v = view();
+ /**
+ * view: the globe's { lat, lng }. skyH: the horizon line in CSS pixels. motion: false stills the
+ * twinkle. shots: shooting stars { t0, life, x, y, vx, vy } in ms and CSS pixels. alpha fades it all.
+ */
+ function draw({ t, view: v, skyH, motion = true, shots = [], alpha = 1 }) {
ctx.setTransform(dpr, 0, 0, dpr, 0, 0);
ctx.clearRect(0, 0, W, H);
for (const s of stars) {
const x = xOf(s.lng, v);
if (x < -4 || x > W + 4) continue;
- const y = yOf(s.y, v);
+ const y = yOf(s.y, v, skyH);
const fade = Math.min(1, Math.max(0, (skyH - y) / 80));
- const tw = reduce ? 1 : 0.72 + 0.28 * Math.sin(t / 900 + s.tw);
- ctx.fillStyle = `rgba(226,220,255,${s.a * tw * fade})`;
+ const tw = motion ? 0.72 + 0.28 * Math.sin(t / 900 + s.tw) : 1;
+ ctx.fillStyle = `rgba(226,220,255,${s.a * tw * fade * alpha})`;
ctx.fillRect(Math.round(x), Math.round(y), s.r, s.r);
}
for (const s of shots) {
const k = (t - s.t0) / s.life;
+ if (k < 0 || k > 1) continue;
const hx = s.x + s.vx * k, hy = s.y + s.vy * k;
const tx = hx - s.vx * 0.22, ty = hy - s.vy * 0.22;
const g = ctx.createLinearGradient(tx, ty, hx, hy);
const a = Math.sin(Math.PI * Math.min(1, k));
g.addColorStop(0, "rgba(196,181,253,0)");
- g.addColorStop(1, `rgba(255,255,255,${0.9 * a})`);
+ g.addColorStop(1, `rgba(255,255,255,${0.9 * a * alpha})`);
ctx.strokeStyle = g;
ctx.lineWidth = 1.4;
ctx.beginPath(); ctx.moveTo(tx, ty); ctx.lineTo(hx, hy); ctx.stroke();
}
}
+ return { size, draw, rnd, get W() { return W; }, get H() { return H; } };
+}
+
+export function createSky(canvas, { view, horizon }) {
+ const r = createSkyRenderer(canvas);
+ const reduce = matchMedia("(prefers-reduced-motion: reduce)").matches;
+ // Shooting stars draw from the same seeded sequence, after the stars.
+ const rnd = r.rnd;
+ let skyH = 0, running = false, last = 0, prevLng = null, spin = -1, nextShot = 0;
+ const shots = [];
+
+ function resize() {
+ const b = canvas.getBoundingClientRect();
+ r.size(b.width, b.height, Math.min(devicePixelRatio || 1, 2));
+ skyH = Math.min(b.height, horizon() + 40);
+ draw(performance.now());
+ }
+
+ function draw(t) {
+ r.draw({ t, view: view(), skyH, motion: !reduce, shots });
+ }
+
function frame(t) {
if (!running) return;
const v = view();
@@ -67,7 +91,7 @@ export function createSky(canvas, { view, horizon }) {
if (t > nextShot) {
// Shooting stars cross the upper sky, heading the way the globe turns.
const dir = spin > 0 ? 1 : -1;
- shots.push({ t0: t, life: 900 + rnd() * 500, x: W * (0.15 + rnd() * 0.7), y: skyH * (0.05 + rnd() * 0.35),
+ shots.push({ t0: t, life: 900 + rnd() * 500, x: r.W * (0.15 + rnd() * 0.7), y: skyH * (0.05 + rnd() * 0.35),
vx: dir * (260 + rnd() * 180), vy: 90 + rnd() * 70 });
nextShot = t + 3500 + rnd() * 5500;
}
diff --git a/site/vendor/plyr/LICENSE.md b/site/vendor/plyr/LICENSE.md
new file mode 100644
index 0000000..2c19ae7
--- /dev/null
+++ b/site/vendor/plyr/LICENSE.md
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2017 Sam Potts
+
+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:
+
+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.
\ No newline at end of file
diff --git a/site/vendor/plyr/plyr.css b/site/vendor/plyr/plyr.css
new file mode 100644
index 0000000..1e92ee2
--- /dev/null
+++ b/site/vendor/plyr/plyr.css
@@ -0,0 +1 @@
+@charset "UTF-8";@keyframes plyr-progress{to{background-position:25px 0;background-position:var(--plyr-progress-loading-size,25px) 0}}@keyframes plyr-popup{0%{opacity:.5;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@keyframes plyr-fade-in{0%{opacity:0}to{opacity:1}}.plyr{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;align-items:center;direction:ltr;display:flex;flex-direction:column;font-family:inherit;font-family:var(--plyr-font-family,inherit);font-variant-numeric:tabular-nums;font-weight:400;font-weight:var(--plyr-font-weight-regular,400);line-height:1.7;line-height:var(--plyr-line-height,1.7);max-width:100%;min-width:200px;position:relative;text-shadow:none;transition:box-shadow .3s ease;z-index:0}.plyr audio,.plyr iframe,.plyr video{display:block;height:100%;width:100%}.plyr button{font:inherit;line-height:inherit;width:auto}.plyr:focus{outline:0}.plyr--full-ui{box-sizing:border-box}.plyr--full-ui *,.plyr--full-ui :after,.plyr--full-ui :before{box-sizing:inherit}.plyr--full-ui a,.plyr--full-ui button,.plyr--full-ui input,.plyr--full-ui label{touch-action:manipulation}.plyr__badge{background:#4a5464;background:var(--plyr-badge-background,#4a5464);border-radius:2px;border-radius:var(--plyr-badge-border-radius,2px);color:#fff;color:var(--plyr-badge-text-color,#fff);font-size:9px;font-size:var(--plyr-font-size-badge,9px);line-height:1;padding:3px 4px}.plyr--full-ui ::-webkit-media-text-track-container{display:none}.plyr__captions{animation:plyr-fade-in .3s ease;bottom:0;display:none;font-size:13px;font-size:var(--plyr-font-size-small,13px);left:0;padding:10px;padding:var(--plyr-control-spacing,10px);position:absolute;text-align:center;transition:transform .4s ease-in-out;width:100%}.plyr__captions span:empty{display:none}@media (min-width:480px){.plyr__captions{font-size:15px;font-size:var(--plyr-font-size-base,15px);padding:20px;padding:calc(var(--plyr-control-spacing, 10px)*2)}}@media (min-width:768px){.plyr__captions{font-size:18px;font-size:var(--plyr-font-size-large,18px)}}.plyr--captions-active .plyr__captions{display:block}.plyr:not(.plyr--hide-controls) .plyr__controls:not(:empty)~.plyr__captions{transform:translateY(-40px);transform:translateY(calc(var(--plyr-control-spacing, 10px)*-4))}.plyr__caption{background:#000c;background:var(--plyr-captions-background,#000c);border-radius:4px;-webkit-box-decoration-break:clone;box-decoration-break:clone;color:#fff;color:var(--plyr-captions-text-color,#fff);line-height:185%;padding:.2em .5em;white-space:pre-wrap}.plyr__caption div{display:inline}.plyr__control{background:#0000;border:0;border-radius:4px;border-radius:var(--plyr-control-radius,4px);color:inherit;cursor:pointer;flex-shrink:0;overflow:visible;padding:7px;padding:calc(var(--plyr-control-spacing, 10px)*.7);position:relative;transition:all .1s ease-in-out}.plyr__control svg{display:block;fill:currentColor;height:18px;height:var(--plyr-control-icon-size,18px);pointer-events:none;width:18px;width:var(--plyr-control-icon-size,18px)}.plyr__control:focus{outline:0}.plyr__control:focus-visible{outline:2px dashed #00b2ff;outline:2px dashed var(--plyr-focus-visible-color,var(--plyr-color-main,var(--plyr-color-main,#00b2ff)));outline-offset:2px}a.plyr__control{text-decoration:none}.plyr__control.plyr__control--pressed .icon--not-pressed,.plyr__control.plyr__control--pressed .label--not-pressed,.plyr__control:not(.plyr__control--pressed) .icon--pressed,.plyr__control:not(.plyr__control--pressed) .label--pressed,a.plyr__control:after,a.plyr__control:before{display:none}.plyr--full-ui ::-webkit-media-controls{display:none}.plyr__controls{align-items:center;display:flex;justify-content:flex-end;text-align:center}.plyr__controls .plyr__progress__container{flex:1;min-width:0}.plyr__controls .plyr__controls__item{margin-left:2.5px;margin-left:calc(var(--plyr-control-spacing, 10px)/4)}.plyr__controls .plyr__controls__item:first-child{margin-left:0;margin-right:auto}.plyr__controls .plyr__controls__item.plyr__progress__container{padding-left:2.5px;padding-left:calc(var(--plyr-control-spacing, 10px)/4)}.plyr__controls .plyr__controls__item.plyr__time{padding:0 5px;padding:0 calc(var(--plyr-control-spacing, 10px)/2)}.plyr__controls .plyr__controls__item.plyr__progress__container:first-child,.plyr__controls .plyr__controls__item.plyr__time+.plyr__time,.plyr__controls .plyr__controls__item.plyr__time:first-child{padding-left:0}.plyr [data-plyr=airplay],.plyr [data-plyr=captions],.plyr [data-plyr=fullscreen],.plyr [data-plyr=pip],.plyr__controls:empty{display:none}.plyr--airplay-supported [data-plyr=airplay],.plyr--captions-enabled [data-plyr=captions],.plyr--fullscreen-enabled [data-plyr=fullscreen],.plyr--pip-supported [data-plyr=pip]{display:inline-block}.plyr__menu{display:flex;position:relative}.plyr__menu .plyr__control svg{transition:transform .3s ease}.plyr__menu .plyr__control[aria-expanded=true] svg{transform:rotate(90deg)}.plyr__menu .plyr__control[aria-expanded=true] .plyr__tooltip{display:none}.plyr__menu__container{animation:plyr-popup .2s ease;background:#ffffffe6;background:var(--plyr-menu-background,#ffffffe6);border-radius:8px;border-radius:var(--plyr-menu-radius,8px);bottom:100%;box-shadow:0 1px 2px #00000026;box-shadow:var(--plyr-menu-shadow,0 1px 2px #00000026);color:#4a5464;color:var(--plyr-menu-color,#4a5464);font-size:15px;font-size:var(--plyr-font-size-base,15px);margin-bottom:10px;position:absolute;right:-3px;text-align:left;white-space:nowrap;z-index:3}.plyr__menu__container>div{overflow:hidden;transition:height .35s cubic-bezier(.4,0,.2,1),width .35s cubic-bezier(.4,0,.2,1)}.plyr__menu__container:after{border:4px solid #0000;border-top-color:#ffffffe6;border:var(--plyr-menu-arrow-size,4px) solid #0000;border-top-color:var(--plyr-menu-background,#ffffffe6);content:"";height:0;position:absolute;right:14px;right:calc(var(--plyr-control-icon-size, 18px)/2 + var(--plyr-control-spacing, 10px)*.7 - var(--plyr-menu-arrow-size, 4px)/2);top:100%;width:0}.plyr__menu__container [role=menu]{padding:7px;padding:calc(var(--plyr-control-spacing, 10px)*.7)}.plyr__menu__container [role=menuitem],.plyr__menu__container [role=menuitemradio]{margin-top:2px}.plyr__menu__container [role=menuitem]:first-child,.plyr__menu__container [role=menuitemradio]:first-child{margin-top:0}.plyr__menu__container .plyr__control{align-items:center;color:#4a5464;color:var(--plyr-menu-color,#4a5464);display:flex;font-size:13px;font-size:var(--plyr-font-size-menu,var(--plyr-font-size-small,13px));padding:4.66667px 10.5px;padding:calc(var(--plyr-control-spacing, 10px)*.7/1.5) calc(var(--plyr-control-spacing, 10px)*.7*1.5);-webkit-user-select:none;user-select:none;width:100%}.plyr__menu__container .plyr__control>span{align-items:inherit;display:flex;width:100%}.plyr__menu__container .plyr__control:after{border:4px solid #0000;border:var(--plyr-menu-item-arrow-size,4px) solid #0000;content:"";position:absolute;top:50%;transform:translateY(-50%)}.plyr__menu__container .plyr__control--forward{padding-right:28px;padding-right:calc(var(--plyr-control-spacing, 10px)*.7*4)}.plyr__menu__container .plyr__control--forward:after{border-left-color:#728197;border-left-color:var(--plyr-menu-arrow-color,#728197);right:6.5px;right:calc(var(--plyr-control-spacing, 10px)*.7*1.5 - var(--plyr-menu-item-arrow-size, 4px))}.plyr__menu__container .plyr__control--forward:focus-visible:after,.plyr__menu__container .plyr__control--forward:hover:after{border-left-color:initial}.plyr__menu__container .plyr__control--back{font-weight:400;font-weight:var(--plyr-font-weight-regular,400);margin:7px;margin:calc(var(--plyr-control-spacing, 10px)*.7);margin-bottom:3.5px;margin-bottom:calc(var(--plyr-control-spacing, 10px)*.7/2);padding-left:28px;padding-left:calc(var(--plyr-control-spacing, 10px)*.7*4);position:relative;width:calc(100% - 14px);width:calc(100% - var(--plyr-control-spacing, 10px)*.7*2)}.plyr__menu__container .plyr__control--back:after{border-right-color:#728197;border-right-color:var(--plyr-menu-arrow-color,#728197);left:6.5px;left:calc(var(--plyr-control-spacing, 10px)*.7*1.5 - var(--plyr-menu-item-arrow-size, 4px))}.plyr__menu__container .plyr__control--back:before{background:#dcdfe5;background:var(--plyr-menu-back-border-color,#dcdfe5);box-shadow:0 1px 0 #fff;box-shadow:0 1px 0 var(--plyr-menu-back-border-shadow-color,#fff);content:"";height:1px;left:0;margin-top:3.5px;margin-top:calc(var(--plyr-control-spacing, 10px)*.7/2);overflow:hidden;position:absolute;right:0;top:100%}.plyr__menu__container .plyr__control--back:focus-visible:after,.plyr__menu__container .plyr__control--back:hover:after{border-right-color:initial}.plyr__menu__container .plyr__control[role=menuitemradio]{padding-left:7px;padding-left:calc(var(--plyr-control-spacing, 10px)*.7)}.plyr__menu__container .plyr__control[role=menuitemradio]:after,.plyr__menu__container .plyr__control[role=menuitemradio]:before{border-radius:100%}.plyr__menu__container .plyr__control[role=menuitemradio]:before{background:#0000001a;content:"";display:block;flex-shrink:0;height:16px;margin-right:10px;margin-right:var(--plyr-control-spacing,10px);transition:all .3s ease;width:16px}.plyr__menu__container .plyr__control[role=menuitemradio]:after{background:#fff;border:0;height:6px;left:12px;opacity:0;top:50%;transform:translateY(-50%) scale(0);transition:transform .3s ease,opacity .3s ease;width:6px}.plyr__menu__container .plyr__control[role=menuitemradio][aria-checked=true]:before{background:#00b2ff;background:var(--plyr-control-toggle-checked-background,var(--plyr-color-main,var(--plyr-color-main,#00b2ff)))}.plyr__menu__container .plyr__control[role=menuitemradio][aria-checked=true]:after{opacity:1;transform:translateY(-50%) scale(1)}.plyr__menu__container .plyr__control[role=menuitemradio]:focus-visible:before,.plyr__menu__container .plyr__control[role=menuitemradio]:hover:before{background:#23282f1a}.plyr__menu__container .plyr__menu__value{align-items:center;display:flex;margin-left:auto;margin-right:-5px;margin-right:calc(var(--plyr-control-spacing, 10px)*.7*-1 - -2px);overflow:hidden;padding-left:24.5px;padding-left:calc(var(--plyr-control-spacing, 10px)*.7*3.5);pointer-events:none}.plyr--full-ui input[type=range]{appearance:none;background:#0000;border:0;border-radius:26px;border-radius:calc(var(--plyr-range-thumb-height, 13px)*2);color:#00b2ff;color:var(--plyr-range-fill-background,var(--plyr-color-main,var(--plyr-color-main,#00b2ff)));display:block;height:19px;height:calc(var(--plyr-range-thumb-active-shadow-width, 3px)*2 + var(--plyr-range-thumb-height, 13px));margin:0;min-width:0;padding:0;transition:box-shadow .3s ease;width:100%}.plyr--full-ui input[type=range]::-webkit-slider-runnable-track{background:#0000;background-image:linear-gradient(90deg,currentColor 0,#0000 0);background-image:linear-gradient(to right,currentColor var(--value,0),#0000 var(--value,0));border:0;border-radius:2.5px;border-radius:calc(var(--plyr-range-track-height, 5px)/2);height:5px;height:var(--plyr-range-track-height,5px);-webkit-transition:box-shadow .3s ease;transition:box-shadow .3s ease;-webkit-user-select:none;user-select:none}.plyr--full-ui input[type=range]::-webkit-slider-thumb{appearance:none;background:#fff;background:var(--plyr-range-thumb-background,#fff);border:0;border-radius:100%;box-shadow:0 1px 1px #23282f26,0 0 0 1px #23282f33;box-shadow:var(--plyr-range-thumb-shadow,0 1px 1px #23282f26,0 0 0 1px #23282f33);height:13px;height:var(--plyr-range-thumb-height,13px);margin-top:-4px;margin-top:calc((var(--plyr-range-thumb-height, 13px) - var(--plyr-range-track-height, 5px))/2*-1);position:relative;-webkit-transition:all .2s ease;transition:all .2s ease;width:13px;width:var(--plyr-range-thumb-height,13px)}.plyr--full-ui input[type=range]::-moz-range-track{background:#0000;border:0;border-radius:2.5px;border-radius:calc(var(--plyr-range-track-height, 5px)/2);height:5px;height:var(--plyr-range-track-height,5px);-moz-transition:box-shadow .3s ease;transition:box-shadow .3s ease;user-select:none}.plyr--full-ui input[type=range]::-moz-range-thumb{background:#fff;background:var(--plyr-range-thumb-background,#fff);border:0;border-radius:100%;box-shadow:0 1px 1px #23282f26,0 0 0 1px #23282f33;box-shadow:var(--plyr-range-thumb-shadow,0 1px 1px #23282f26,0 0 0 1px #23282f33);height:13px;height:var(--plyr-range-thumb-height,13px);position:relative;-moz-transition:all .2s ease;transition:all .2s ease;width:13px;width:var(--plyr-range-thumb-height,13px)}.plyr--full-ui input[type=range]::-moz-range-progress{background:currentColor;border-radius:2.5px;border-radius:calc(var(--plyr-range-track-height, 5px)/2);height:5px;height:var(--plyr-range-track-height,5px)}.plyr--full-ui input[type=range]::-ms-track{color:#0000}.plyr--full-ui input[type=range]::-ms-fill-upper,.plyr--full-ui input[type=range]::-ms-track{background:#0000;border:0;border-radius:2.5px;border-radius:calc(var(--plyr-range-track-height, 5px)/2);height:5px;height:var(--plyr-range-track-height,5px);-ms-transition:box-shadow .3s ease;transition:box-shadow .3s ease;user-select:none}.plyr--full-ui input[type=range]::-ms-fill-lower{background:#0000;background:currentColor;border:0;border-radius:2.5px;border-radius:calc(var(--plyr-range-track-height, 5px)/2);height:5px;height:var(--plyr-range-track-height,5px);-ms-transition:box-shadow .3s ease;transition:box-shadow .3s ease;user-select:none}.plyr--full-ui input[type=range]::-ms-thumb{background:#fff;background:var(--plyr-range-thumb-background,#fff);border:0;border-radius:100%;box-shadow:0 1px 1px #23282f26,0 0 0 1px #23282f33;box-shadow:var(--plyr-range-thumb-shadow,0 1px 1px #23282f26,0 0 0 1px #23282f33);height:13px;height:var(--plyr-range-thumb-height,13px);margin-top:0;position:relative;-ms-transition:all .2s ease;transition:all .2s ease;width:13px;width:var(--plyr-range-thumb-height,13px)}.plyr--full-ui input[type=range]::-ms-tooltip{display:none}.plyr--full-ui input[type=range]::-moz-focus-outer{border:0}.plyr--full-ui input[type=range]:focus{outline:0}.plyr--full-ui input[type=range]:focus-visible::-webkit-slider-runnable-track{outline:2px dashed #00b2ff;outline:2px dashed var(--plyr-focus-visible-color,var(--plyr-color-main,var(--plyr-color-main,#00b2ff)));outline-offset:2px}.plyr--full-ui input[type=range]:focus-visible::-moz-range-track{outline:2px dashed #00b2ff;outline:2px dashed var(--plyr-focus-visible-color,var(--plyr-color-main,var(--plyr-color-main,#00b2ff)));outline-offset:2px}.plyr--full-ui input[type=range]:focus-visible::-ms-track{outline:2px dashed #00b2ff;outline:2px dashed var(--plyr-focus-visible-color,var(--plyr-color-main,var(--plyr-color-main,#00b2ff)));outline-offset:2px}.plyr__poster{background-color:#000;background-color:var(--plyr-video-background,var(--plyr-video-background,#000));background-position:50% 50%;background-repeat:no-repeat;background-size:contain;height:100%;left:0;opacity:0;position:absolute;top:0;transition:opacity .2s ease;width:100%;z-index:1}.plyr--stopped.plyr__poster-enabled .plyr__poster{opacity:1}.plyr--youtube.plyr--paused.plyr__poster-enabled:not(.plyr--stopped) .plyr__poster{display:none}.plyr__time{font-size:13px;font-size:var(--plyr-font-size-time,var(--plyr-font-size-small,13px))}.plyr__time+.plyr__time:before{content:"⁄";margin-right:10px;margin-right:var(--plyr-control-spacing,10px)}@media (max-width:767px){.plyr__time+.plyr__time{display:none}}.plyr__tooltip{background:#fff;background:var(--plyr-tooltip-background,#fff);border-radius:5px;border-radius:var(--plyr-tooltip-radius,5px);bottom:100%;box-shadow:0 1px 2px #00000026;box-shadow:var(--plyr-tooltip-shadow,0 1px 2px #00000026);color:#4a5464;color:var(--plyr-tooltip-color,#4a5464);font-size:13px;font-size:var(--plyr-font-size-small,13px);font-weight:400;font-weight:var(--plyr-font-weight-regular,400);left:50%;line-height:1.3;margin-bottom:10px;margin-bottom:calc(var(--plyr-control-spacing, 10px)/2*2);opacity:0;padding:5px 7.5px;padding:calc(var(--plyr-control-spacing, 10px)/2) calc(var(--plyr-control-spacing, 10px)/2*1.5);pointer-events:none;position:absolute;transform:translate(-50%,10px) scale(.8);transform-origin:50% 100%;transition:transform .2s ease .1s,opacity .2s ease .1s;white-space:nowrap;z-index:2}.plyr__tooltip:before{border-left:4px solid #0000;border-left:var(--plyr-tooltip-arrow-size,4px) solid #0000;border-right:4px solid #0000;border-right:var(--plyr-tooltip-arrow-size,4px) solid #0000;border-top:4px solid #fff;border-top:var(--plyr-tooltip-arrow-size,4px) solid var(--plyr-tooltip-background,#fff);bottom:-4px;bottom:calc(var(--plyr-tooltip-arrow-size, 4px)*-1);content:"";height:0;left:50%;position:absolute;transform:translateX(-50%);width:0;z-index:2}.plyr .plyr__control:focus-visible .plyr__tooltip,.plyr .plyr__control:hover .plyr__tooltip,.plyr__tooltip--visible{opacity:1;transform:translate(-50%) scale(1)}.plyr .plyr__control:hover .plyr__tooltip{z-index:3}.plyr__controls>.plyr__control:first-child .plyr__tooltip,.plyr__controls>.plyr__control:first-child+.plyr__control .plyr__tooltip{left:0;transform:translateY(10px) scale(.8);transform-origin:0 100%}.plyr__controls>.plyr__control:first-child .plyr__tooltip:before,.plyr__controls>.plyr__control:first-child+.plyr__control .plyr__tooltip:before{left:16px;left:calc(var(--plyr-control-icon-size, 18px)/2 + var(--plyr-control-spacing, 10px)*.7)}.plyr__controls>.plyr__control:last-child .plyr__tooltip{left:auto;right:0;transform:translateY(10px) scale(.8);transform-origin:100% 100%}.plyr__controls>.plyr__control:last-child .plyr__tooltip:before{left:auto;right:16px;right:calc(var(--plyr-control-icon-size, 18px)/2 + var(--plyr-control-spacing, 10px)*.7);transform:translateX(50%)}.plyr__controls>.plyr__control:first-child .plyr__tooltip--visible,.plyr__controls>.plyr__control:first-child+.plyr__control .plyr__tooltip--visible,.plyr__controls>.plyr__control:first-child+.plyr__control:focus-visible .plyr__tooltip,.plyr__controls>.plyr__control:first-child+.plyr__control:hover .plyr__tooltip,.plyr__controls>.plyr__control:first-child:focus-visible .plyr__tooltip,.plyr__controls>.plyr__control:first-child:hover .plyr__tooltip,.plyr__controls>.plyr__control:last-child .plyr__tooltip--visible,.plyr__controls>.plyr__control:last-child:focus-visible .plyr__tooltip,.plyr__controls>.plyr__control:last-child:hover .plyr__tooltip{transform:translate(0) scale(1)}.plyr__progress{left:6.5px;left:calc(var(--plyr-range-thumb-height, 13px)*.5);margin-right:13px;margin-right:var(--plyr-range-thumb-height,13px);position:relative}.plyr__progress input[type=range],.plyr__progress__buffer{margin-left:-6.5px;margin-left:calc(var(--plyr-range-thumb-height, 13px)*-.5);margin-right:-6.5px;margin-right:calc(var(--plyr-range-thumb-height, 13px)*-.5);width:calc(100% + 13px);width:calc(100% + var(--plyr-range-thumb-height, 13px))}.plyr__progress input[type=range]{position:relative;z-index:2}.plyr__progress .plyr__tooltip{left:0;max-width:120px;overflow-wrap:break-word}.plyr__progress__buffer{-webkit-appearance:none;background:#0000;border:0;border-radius:100px;height:5px;height:var(--plyr-range-track-height,5px);left:0;margin-top:-2.5px;margin-top:calc(var(--plyr-range-track-height, 5px)/2*-1);padding:0;position:absolute;top:50%}.plyr__progress__buffer::-webkit-progress-bar{background:#0000}.plyr__progress__buffer::-webkit-progress-value{background:currentColor;border-radius:100px;min-width:5px;min-width:var(--plyr-range-track-height,5px);-webkit-transition:width .2s ease;transition:width .2s ease}.plyr__progress__buffer::-moz-progress-bar{background:currentColor;border-radius:100px;min-width:5px;min-width:var(--plyr-range-track-height,5px);-moz-transition:width .2s ease;transition:width .2s ease}.plyr__progress__buffer::-ms-fill{border-radius:100px;-ms-transition:width .2s ease;transition:width .2s ease}.plyr--loading .plyr__progress__buffer{animation:plyr-progress 1s linear infinite;background-image:linear-gradient(-45deg,#23282f99 25%,#0000 0,#0000 50%,#23282f99 0,#23282f99 75%,#0000 0,#0000);background-image:linear-gradient(-45deg,var(--plyr-progress-loading-background,#23282f99) 25%,#0000 25%,#0000 50%,var(--plyr-progress-loading-background,#23282f99) 50%,var(--plyr-progress-loading-background,#23282f99) 75%,#0000 75%,#0000);background-repeat:repeat-x;background-size:25px 25px;background-size:var(--plyr-progress-loading-size,25px) var(--plyr-progress-loading-size,25px);color:#0000}.plyr--video.plyr--loading .plyr__progress__buffer{background-color:#ffffff40;background-color:var(--plyr-video-progress-buffered-background,#ffffff40)}.plyr--audio.plyr--loading .plyr__progress__buffer{background-color:#c1c8d199;background-color:var(--plyr-audio-progress-buffered-background,#c1c8d199)}.plyr__progress__marker{background-color:#fff;background-color:var(--plyr-progress-marker-background,#fff);border-radius:1px;height:5px;height:var(--plyr-range-track-height,5px);position:absolute;top:50%;transform:translate(-50%,-50%);width:3px;width:var(--plyr-progress-marker-width,3px);z-index:3}.plyr__volume{align-items:center;display:flex;position:relative}.plyr__volume input[type=range]{margin-left:5px;margin-left:calc(var(--plyr-control-spacing, 10px)/2);margin-right:5px;margin-right:calc(var(--plyr-control-spacing, 10px)/2);max-width:90px;min-width:60px;position:relative;z-index:2}.plyr--audio{display:block}.plyr--audio .plyr__controls{background:#fff;background:var(--plyr-audio-controls-background,#fff);border-radius:inherit;color:#4a5464;color:var(--plyr-audio-control-color,#4a5464);padding:10px;padding:var(--plyr-control-spacing,10px)}.plyr--audio .plyr__control:focus-visible,.plyr--audio .plyr__control:hover,.plyr--audio .plyr__control[aria-expanded=true]{background:#00b2ff;background:var(--plyr-audio-control-background-hover,var(--plyr-color-main,var(--plyr-color-main,#00b2ff)));color:#fff;color:var(--plyr-audio-control-color-hover,#fff)}.plyr--full-ui.plyr--audio input[type=range]::-webkit-slider-runnable-track{background-color:#c1c8d199;background-color:var(--plyr-audio-range-track-background,var(--plyr-audio-progress-buffered-background,#c1c8d199))}.plyr--full-ui.plyr--audio input[type=range]::-moz-range-track{background-color:#c1c8d199;background-color:var(--plyr-audio-range-track-background,var(--plyr-audio-progress-buffered-background,#c1c8d199))}.plyr--full-ui.plyr--audio input[type=range]::-ms-track{background-color:#c1c8d199;background-color:var(--plyr-audio-range-track-background,var(--plyr-audio-progress-buffered-background,#c1c8d199))}.plyr--full-ui.plyr--audio input[type=range]:active::-webkit-slider-thumb{box-shadow:0 1px 1px #23282f26,0 0 0 1px #23282f33,0 0 0 3px #23282f1a;box-shadow:var(--plyr-range-thumb-shadow,0 1px 1px #23282f26,0 0 0 1px #23282f33),0 0 0 var(--plyr-range-thumb-active-shadow-width,3px) var(--plyr-audio-range-thumb-active-shadow-color,#23282f1a)}.plyr--full-ui.plyr--audio input[type=range]:active::-moz-range-thumb{box-shadow:0 1px 1px #23282f26,0 0 0 1px #23282f33,0 0 0 3px #23282f1a;box-shadow:var(--plyr-range-thumb-shadow,0 1px 1px #23282f26,0 0 0 1px #23282f33),0 0 0 var(--plyr-range-thumb-active-shadow-width,3px) var(--plyr-audio-range-thumb-active-shadow-color,#23282f1a)}.plyr--full-ui.plyr--audio input[type=range]:active::-ms-thumb{box-shadow:0 1px 1px #23282f26,0 0 0 1px #23282f33,0 0 0 3px #23282f1a;box-shadow:var(--plyr-range-thumb-shadow,0 1px 1px #23282f26,0 0 0 1px #23282f33),0 0 0 var(--plyr-range-thumb-active-shadow-width,3px) var(--plyr-audio-range-thumb-active-shadow-color,#23282f1a)}.plyr--audio .plyr__progress__buffer{color:#c1c8d199;color:var(--plyr-audio-progress-buffered-background,#c1c8d199)}.plyr--video{overflow:hidden}.plyr--video.plyr--menu-open{overflow:visible}.plyr__video-wrapper{background:#000;background:var(--plyr-video-background,var(--plyr-video-background,#000));border-radius:inherit;height:100%;margin:auto;overflow:hidden;position:relative;width:100%}.plyr__video-embed,.plyr__video-wrapper--fixed-ratio{aspect-ratio:16/9}@supports not (aspect-ratio:16/9){.plyr__video-embed,.plyr__video-wrapper--fixed-ratio{height:0;padding-bottom:56.25%;position:relative}}.plyr__video-embed iframe,.plyr__video-wrapper--fixed-ratio video{border:0;height:100%;left:0;position:absolute;top:0;width:100%}.plyr--full-ui .plyr__video-embed>.plyr__video-embed__container{padding-bottom:240%;position:relative;transform:translateY(-38.28125%)}.plyr--video .plyr__controls{background:linear-gradient(#0000,#000000bf);background:var(--plyr-video-controls-background,linear-gradient(#0000,#000000bf));border-bottom-left-radius:inherit;border-bottom-right-radius:inherit;bottom:0;color:#fff;color:var(--plyr-video-control-color,#fff);left:0;padding:5px;padding:calc(var(--plyr-control-spacing, 10px)/2);padding-top:20px;padding-top:calc(var(--plyr-control-spacing, 10px)*2);position:absolute;right:0;transition:opacity .4s ease-in-out,transform .4s ease-in-out;z-index:3}@media (min-width:480px){.plyr--video .plyr__controls{padding:10px;padding:var(--plyr-control-spacing,10px);padding-top:35px;padding-top:calc(var(--plyr-control-spacing, 10px)*3.5)}}.plyr--video.plyr--hide-controls .plyr__controls{opacity:0;pointer-events:none;transform:translateY(100%)}.plyr--video .plyr__control:focus-visible,.plyr--video .plyr__control:hover,.plyr--video .plyr__control[aria-expanded=true]{background:#00b2ff;background:var(--plyr-video-control-background-hover,var(--plyr-color-main,var(--plyr-color-main,#00b2ff)));color:#fff;color:var(--plyr-video-control-color-hover,#fff)}.plyr__control--overlaid{background:#00b2ff;background:var(--plyr-video-control-background-hover,var(--plyr-color-main,var(--plyr-color-main,#00b2ff)));border:0;border-radius:100%;color:#fff;color:var(--plyr-video-control-color,#fff);display:none;left:50%;opacity:.9;padding:15px;padding:calc(var(--plyr-control-spacing, 10px)*1.5);position:absolute;top:50%;transform:translate(-50%,-50%);transition:.3s;z-index:2}.plyr__control--overlaid svg{left:2px;position:relative}.plyr__control--overlaid:focus,.plyr__control--overlaid:hover{opacity:1}.plyr--playing .plyr__control--overlaid{opacity:0;visibility:hidden}.plyr--full-ui.plyr--video .plyr__control--overlaid{display:block}.plyr--full-ui.plyr--video input[type=range]::-webkit-slider-runnable-track{background-color:#ffffff40;background-color:var(--plyr-video-range-track-background,var(--plyr-video-progress-buffered-background,#ffffff40))}.plyr--full-ui.plyr--video input[type=range]::-moz-range-track{background-color:#ffffff40;background-color:var(--plyr-video-range-track-background,var(--plyr-video-progress-buffered-background,#ffffff40))}.plyr--full-ui.plyr--video input[type=range]::-ms-track{background-color:#ffffff40;background-color:var(--plyr-video-range-track-background,var(--plyr-video-progress-buffered-background,#ffffff40))}.plyr--full-ui.plyr--video input[type=range]:active::-webkit-slider-thumb{box-shadow:0 1px 1px #23282f26,0 0 0 1px #23282f33,0 0 0 3px #ffffff80;box-shadow:var(--plyr-range-thumb-shadow,0 1px 1px #23282f26,0 0 0 1px #23282f33),0 0 0 var(--plyr-range-thumb-active-shadow-width,3px) var(--plyr-audio-range-thumb-active-shadow-color,#ffffff80)}.plyr--full-ui.plyr--video input[type=range]:active::-moz-range-thumb{box-shadow:0 1px 1px #23282f26,0 0 0 1px #23282f33,0 0 0 3px #ffffff80;box-shadow:var(--plyr-range-thumb-shadow,0 1px 1px #23282f26,0 0 0 1px #23282f33),0 0 0 var(--plyr-range-thumb-active-shadow-width,3px) var(--plyr-audio-range-thumb-active-shadow-color,#ffffff80)}.plyr--full-ui.plyr--video input[type=range]:active::-ms-thumb{box-shadow:0 1px 1px #23282f26,0 0 0 1px #23282f33,0 0 0 3px #ffffff80;box-shadow:var(--plyr-range-thumb-shadow,0 1px 1px #23282f26,0 0 0 1px #23282f33),0 0 0 var(--plyr-range-thumb-active-shadow-width,3px) var(--plyr-audio-range-thumb-active-shadow-color,#ffffff80)}.plyr--video .plyr__progress__buffer{color:#ffffff40;color:var(--plyr-video-progress-buffered-background,#ffffff40)}.plyr:fullscreen{background:#000;border-radius:0!important;height:100%;margin:0;width:100%}.plyr:fullscreen video{height:100%}.plyr:fullscreen .plyr__control .icon--exit-fullscreen{display:block}.plyr:fullscreen .plyr__control .icon--exit-fullscreen+svg{display:none}.plyr:fullscreen.plyr--hide-controls{cursor:none}@media (min-width:1024px){.plyr:fullscreen .plyr__captions{font-size:21px;font-size:var(--plyr-font-size-xlarge,21px)}}.plyr--fullscreen-fallback{background:#000;border-radius:0!important;height:100%;inset:0;margin:0;position:fixed;width:100%;z-index:10000000}.plyr--fullscreen-fallback video{height:100%}.plyr--fullscreen-fallback .plyr__control .icon--exit-fullscreen{display:block}.plyr--fullscreen-fallback .plyr__control .icon--exit-fullscreen+svg{display:none}.plyr--fullscreen-fallback.plyr--hide-controls{cursor:none}@media (min-width:1024px){.plyr--fullscreen-fallback .plyr__captions{font-size:21px;font-size:var(--plyr-font-size-xlarge,21px)}}.plyr__ads{border-radius:inherit;cursor:pointer;inset:0;overflow:hidden;position:absolute;z-index:-1}.plyr__ads>div,.plyr__ads>div iframe{height:100%;position:absolute;width:100%}.plyr__ads:after{background:#23282f;border-radius:2px;bottom:10px;bottom:var(--plyr-control-spacing,10px);color:#fff;content:attr(data-badge-text);font-size:11px;padding:2px 6px;pointer-events:none;position:absolute;right:10px;right:var(--plyr-control-spacing,10px);z-index:3}.plyr__ads:empty:after{display:none}.plyr__cues{background:currentColor;display:block;height:5px;height:var(--plyr-range-track-height,5px);left:0;opacity:.8;position:absolute;top:50%;transform:translateY(-50%);width:3px;z-index:3}.plyr__preview-thumb{background-color:#fff;background-color:var(--plyr-tooltip-background,#fff);border-radius:8px;border-radius:var(--plyr-menu-radius,8px);bottom:100%;box-shadow:0 1px 2px #00000026;box-shadow:var(--plyr-tooltip-shadow,0 1px 2px #00000026);margin-bottom:10px;margin-bottom:calc(var(--plyr-control-spacing, 10px)/2*2);opacity:0;padding:3px;pointer-events:none;position:absolute;transform:translateY(10px) scale(.8);transform-origin:50% 100%;transition:transform .2s ease .1s,opacity .2s ease .1s;z-index:2}.plyr__preview-thumb--is-shown{opacity:1;transform:translate(0) scale(1)}.plyr__preview-thumb:before{border-left:4px solid #0000;border-left:var(--plyr-tooltip-arrow-size,4px) solid #0000;border-right:4px solid #0000;border-right:var(--plyr-tooltip-arrow-size,4px) solid #0000;border-top:4px solid #fff;border-top:var(--plyr-tooltip-arrow-size,4px) solid var(--plyr-tooltip-background,#fff);bottom:-4px;bottom:calc(var(--plyr-tooltip-arrow-size, 4px)*-1);content:"";height:0;left:calc(50% + var(--preview-arrow-offset));position:absolute;transform:translateX(-50%);width:0;z-index:2}.plyr__preview-thumb__image-container{background:#c1c8d1;border-radius:7px;border-radius:calc(var(--plyr-menu-radius, 8px) - 1px);overflow:hidden;position:relative;z-index:0}.plyr__preview-thumb__image-container img,.plyr__preview-thumb__image-container:after{height:100%;left:0;position:absolute;top:0;width:100%}.plyr__preview-thumb__image-container:after{border-radius:inherit;box-shadow:inset 0 0 0 1px #00000026;content:"";pointer-events:none}.plyr__preview-thumb__image-container img{max-height:none;max-width:none}.plyr__preview-thumb__time-container{background:linear-gradient(#0000,#000000bf);background:var(--plyr-video-controls-background,linear-gradient(#0000,#000000bf));border-bottom-left-radius:7px;border-bottom-left-radius:calc(var(--plyr-menu-radius, 8px) - 1px);border-bottom-right-radius:7px;border-bottom-right-radius:calc(var(--plyr-menu-radius, 8px) - 1px);bottom:0;left:0;line-height:1.1;padding:20px 6px 6px;position:absolute;right:0;z-index:3}.plyr__preview-thumb__time-container span{color:#fff;font-size:13px;font-size:var(--plyr-font-size-time,var(--plyr-font-size-small,13px))}.plyr__preview-scrubbing{filter:blur(1px);height:100%;inset:0;margin:auto;opacity:0;overflow:hidden;pointer-events:none;position:absolute;transition:opacity .3s ease;width:100%;z-index:1}.plyr__preview-scrubbing--is-shown{opacity:1}.plyr__preview-scrubbing img{height:100%;left:0;max-height:none;max-width:none;object-fit:contain;position:absolute;top:0;width:100%}.plyr--no-transition{transition:none!important}.plyr__sr-only{clip:rect(1px,1px,1px,1px);border:0!important;height:1px!important;overflow:hidden;padding:0!important;position:absolute!important;width:1px!important}.plyr [hidden]{display:none!important}
\ No newline at end of file
diff --git a/site/vendor/plyr/plyr.min.mjs b/site/vendor/plyr/plyr.min.mjs
new file mode 100644
index 0000000..97a8a47
--- /dev/null
+++ b/site/vendor/plyr/plyr.min.mjs
@@ -0,0 +1 @@
+function _defineProperty$1(e,t,i){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function _toPrimitive(e,t){if("object"!=typeof e||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var s=i.call(e,t);if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"==typeof t?t:t+""}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var i=0;it){var i=getDecimalPlaces(t);return parseFloat(e.toFixed(i))}return Math.round(e/t)*t}var RangeTouch=function(){function e(t,i){_classCallCheck(this,e),is$1.element(t)?this.element=t:is$1.string(t)&&(this.element=document.querySelector(t)),is$1.element(this.element)&&is$1.empty(this.element.rangeTouch)&&(this.config=_objectSpread2({},defaults$1,{},i),this.init())}return _createClass(e,[{key:"init",value:function(){e.enabled&&(this.config.addCSS&&(this.element.style.userSelect="none",this.element.style.webKitUserSelect="none",this.element.style.touchAction="manipulation"),this.listeners(!0),this.element.rangeTouch=this)}},{key:"destroy",value:function(){e.enabled&&(this.config.addCSS&&(this.element.style.userSelect="",this.element.style.webKitUserSelect="",this.element.style.touchAction=""),this.listeners(!1),this.element.rangeTouch=null)}},{key:"listeners",value:function(e){var t=this,i=e?"addEventListener":"removeEventListener";["touchstart","touchmove","touchend"].forEach(function(e){t.element[i](e,function(e){return t.set(e)},!1)})}},{key:"get",value:function(t){if(!e.enabled||!is$1.event(t))return null;var i,s=t.target,n=t.changedTouches[0],r=parseFloat(s.getAttribute("min"))||0,a=parseFloat(s.getAttribute("max"))||100,o=parseFloat(s.getAttribute("step"))||1,l=s.getBoundingClientRect(),c=100/l.width*(this.config.thumbWidth/2)/100;return 0>(i=100/l.width*(n.clientX-l.left))?i=0:100i?i-=(100-2*i)*c:50null!=e?e.constructor:null,instanceOf=(e,t)=>Boolean(e&&t&&e instanceof t),isNullOrUndefined=e=>null==e,isObject=e=>getConstructor(e)===Object,isNumber=e=>getConstructor(e)===Number&&!Number.isNaN(e),isString=e=>getConstructor(e)===String,isBoolean=e=>getConstructor(e)===Boolean,isFunction=e=>"function"==typeof e,isArray=e=>Array.isArray(e),isWeakMap=e=>instanceOf(e,WeakMap),isNodeList=e=>instanceOf(e,NodeList),isTextNode=e=>getConstructor(e)===Text,isEvent=e=>instanceOf(e,Event),isKeyboardEvent=e=>instanceOf(e,KeyboardEvent),isCue=e=>instanceOf(e,window.TextTrackCue)||instanceOf(e,window.VTTCue),isTrack=e=>instanceOf(e,TextTrack)||!isNullOrUndefined(e)&&isString(e.kind),isPromise=e=>instanceOf(e,Promise)&&isFunction(e.then);function isElement(e){return null!==e&&"object"==typeof e&&1===e.nodeType&&"object"==typeof e.style&&"object"==typeof e.ownerDocument}function isEmpty(e){return isNullOrUndefined(e)||(isString(e)||isArray(e)||isNodeList(e))&&!e.length||isObject(e)&&!Object.keys(e).length}function isUrl(e){if(instanceOf(e,window.URL))return!0;if(!isString(e))return!1;let t=e;e.startsWith("http://")&&e.startsWith("https://")||(t=`http://${e}`);try{return!isEmpty(new URL(t).hostname)}catch{return!1}}var is={nullOrUndefined:isNullOrUndefined,object:isObject,number:isNumber,string:isString,boolean:isBoolean,function:isFunction,array:isArray,weakMap:isWeakMap,nodeList:isNodeList,element:isElement,textNode:isTextNode,event:isEvent,keyboardEvent:isKeyboardEvent,cue:isCue,track:isTrack,promise:isPromise,url:isUrl,empty:isEmpty};const transitionEndEvent=(()=>{const e=document.createElement("span"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},i=Object.keys(t).find(t=>void 0!==e.style[t]);return!!is.string(i)&&t[i]})();function repaint(e,t){setTimeout(()=>{try{e.hidden=!0,e.offsetHeight,e.hidden=!1}catch{}},t)}function cloneDeep(e){return JSON.parse(JSON.stringify(e))}function getDeep(e,t){return t.split(".").reduce((e,t)=>e&&e[t],e)}function extend(e={},...t){if(!t.length)return e;const i=t.shift();return is.object(i)?(Object.keys(i).forEach(t=>{is.object(i[t])?(Object.keys(e).includes(t)||Object.assign(e,{[t]:{}}),extend(e[t],i[t])):Object.assign(e,{[t]:i[t]})}),extend(e,...t)):e}function wrap(e,t){const i=e.length?e:[e];Array.from(i).reverse().forEach((e,i)=>{const s=i>0?t.cloneNode(!0):t,n=e.parentNode,r=e.nextSibling;s.appendChild(e),r?n.insertBefore(s,r):n.appendChild(s)})}function setAttributes(e,t){is.element(e)&&!is.empty(t)&&Object.entries(t).filter(([,e])=>!is.nullOrUndefined(e)).forEach(([t,i])=>e.setAttribute(t,i))}function createElement(e,t,i){const s=document.createElement(e);return is.object(t)&&setAttributes(s,t),is.string(i)&&(s.textContent=i),s}function insertAfter(e,t){is.element(e)&&is.element(t)&&t.parentNode.insertBefore(e,t.nextSibling)}function insertElement(e,t,i,s){is.element(t)&&t.appendChild(createElement(e,i,s))}function removeElement(e){is.nodeList(e)||is.array(e)?Array.from(e).forEach(removeElement):is.element(e)&&is.element(e.parentNode)&&e.parentNode.removeChild(e)}function emptyElement(e){if(!is.element(e))return;let{length:t}=e.childNodes;for(;t>0;)e.removeChild(e.lastChild),t-=1}function replaceElement(e,t){return is.element(t)&&is.element(t.parentNode)&&is.element(e)?(t.parentNode.replaceChild(e,t),e):null}function getAttributesFromSelector(e,t){if(!is.string(e)||is.empty(e))return{};const i={},s=extend({},t);return e.split(",").forEach(e=>{const t=e.trim(),n=t.replace(".",""),r=t.replace(/[[\]]/g,"").split("="),[a]=r,o=r.length>1?r[1].replace(/["']/g,""):"";switch(t.charAt(0)){case".":is.string(s.class)?i.class=`${s.class} ${n}`:i.class=n;break;case"#":i.id=t.replace("#","");break;case"[":i[a]=o}}),extend(s,i)}function toggleHidden(e,t){if(!is.element(e))return;let i=t;is.boolean(i)||(i=!e.hidden),e.hidden=i}function toggleClass(e,t,i){if(is.nodeList(e))return Array.from(e).map(e=>toggleClass(e,t,i));if(is.element(e)){let s="toggle";return void 0!==i&&(s=i?"add":"remove"),e.classList[s](t),e.classList.contains(t)}return!1}function hasClass(e,t){return is.element(e)&&e.classList.contains(t)}function matches(e,t){const{prototype:i}=Element;return(i.matches||i.webkitMatchesSelector||i.mozMatchesSelector||i.msMatchesSelector||function(){return Array.from(document.querySelectorAll(t)).includes(this)}).call(e,t)}function closest$1(e,t){const{prototype:i}=Element;return(i.closest||function(){let e=this;do{if(matches.matches(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}).call(e,t)}function getElements(e){return this.elements.container.querySelectorAll(e)}function getElement(e){return this.elements.container.querySelector(e)}function setFocus(e=null,t=!1){is.element(e)&&e.focus({preventScroll:!0,focusVisible:t})}const defaultCodecs={"audio/ogg":"vorbis","audio/wav":"1","video/webm":"vp8, vorbis","video/mp4":"avc1.42E01E, mp4a.40.2","video/ogg":"theora"},support={audio:"canPlayType"in document.createElement("audio"),video:"canPlayType"in document.createElement("video"),check(e,t){const i=support[e]||"html5"!==t;return{api:i,ui:i&&support.rangeInput}},pip:document.pictureInPictureEnabled&&!createElement("video").disablePictureInPicture,airplay:is.function(window.WebKitPlaybackTargetAvailabilityEvent),playsinline:"playsInline"in document.createElement("video"),mime(e){if(is.empty(e))return!1;const[t]=e.split("/");let i=e;if(!this.isHTML5||t!==this.type)return!1;Object.keys(defaultCodecs).includes(i)&&(i+=`; codecs="${defaultCodecs[e]}"`);try{return Boolean(i&&this.media.canPlayType(i).replace(/no/,""))}catch{return!1}},textTracks:"textTracks"in document.createElement("video"),rangeInput:(()=>{const e=document.createElement("input");return e.type="range","range"===e.type})(),touch:"ontouchstart"in document.documentElement,transitions:!1!==transitionEndEvent,reducedMotion:"matchMedia"in window&&window.matchMedia("(prefers-reduced-motion)").matches},supportsPassiveListeners=(()=>{let e=!1;try{const t=Object.defineProperty({},"passive",{get:()=>(e=!0,null)});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch{}return e})();function toggleListener(e,t,i,s=!1,n=!0,r=!1){if(!e||!("addEventListener"in e)||is.empty(t)||!is.function(i))return;const a=t.split(" ");let o=r;supportsPassiveListeners&&(o={passive:n,capture:r}),a.forEach(t=>{this&&this.eventListeners&&s&&this.eventListeners.push({element:e,type:t,callback:i,options:o}),e[s?"addEventListener":"removeEventListener"](t,i,o)})}function on(e,t="",i,s=!0,n=!1){toggleListener.call(this,e,t,i,!0,s,n)}function off(e,t="",i,s=!0,n=!1){toggleListener.call(this,e,t,i,!1,s,n)}function once(e,t="",i,s=!0,n=!1){const r=(...a)=>{off(e,t,r,s,n),i.apply(this,a)};toggleListener.call(this,e,t,r,!0,s,n)}function triggerEvent(e,t="",i=!1,s={}){if(!is.element(e)||is.empty(t))return;const n=new CustomEvent(t,{bubbles:i,detail:{...s,plyr:this}});e.dispatchEvent(n)}function unbindListeners(){this&&this.eventListeners&&(this.eventListeners.forEach(e=>{const{element:t,type:i,callback:s,options:n}=e;t.removeEventListener(i,s,n)}),this.eventListeners=[])}function ready(){return new Promise(e=>this.ready?setTimeout(e,0):on.call(this,this.elements.container,"ready",e)).then(()=>{})}function silencePromise(e){is.promise(e)&&e.then(null,()=>{})}function dedupe(e){return is.array(e)?e.filter((t,i)=>e.indexOf(t)===i):e}function closest(e,t){return is.array(e)&&e.length?e.reduce((e,i)=>Math.abs(i-t)({...e,[t/i]:[t,i]}),{});function validateAspectRatio(e){if(!(is.array(e)||is.string(e)&&e.includes(":")))return!1;return(is.array(e)?e:e.split(":")).map(Number).every(is.number)}function reduceAspectRatio(e){if(!is.array(e)||!e.every(is.number))return null;const[t,i]=e,s=(e,t)=>0===t?e:s(t,e%t),n=s(t,i);return[t/n,i/n]}function getAspectRatio(e){const t=e=>validateAspectRatio(e)?e.split(":").map(Number):null;let i=t(e);if(null===i&&(i=t(this.config.ratio)),null===i&&!is.empty(this.embed)&&is.array(this.embed.ratio)&&({ratio:i}=this.embed),null===i&&this.isHTML5){const{videoWidth:e,videoHeight:t}=this.media;i=[e,t]}return reduceAspectRatio(i)}function setAspectRatio(e){if(!this.isVideo)return{};const{wrapper:t}=this.elements,i=getAspectRatio.call(this,e);if(!is.array(i))return{};const[s,n]=reduceAspectRatio(i),r=100/s*n;if(supportsCSS(`aspect-ratio: ${s}/${n}`)?t.style.aspectRatio=`${s}/${n}`:t.style.paddingBottom=`${r}%`,this.isVimeo&&!this.config.vimeo.premium&&this.supported.ui){const e=100/this.media.offsetWidth*Number.parseInt(window.getComputedStyle(this.media).paddingBottom,10),i=(e-r)/(e/50);this.fullscreen.active?t.style.paddingBottom=null:this.media.style.transform=`translateY(-${i}%)`}else this.isHTML5&&t.classList.add(this.config.classNames.videoFixedRatio);return{padding:r,ratio:i}}function roundAspectRatio(e,t,i=.05){const s=e/t,n=closest(Object.keys(standardRatios),s);return Math.abs(n-s)<=i?standardRatios[n]:[e,t]}function getViewportSize(){return[Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)]}const html5={getSources(){if(!this.isHTML5)return[];return Array.from(this.media.querySelectorAll("source")).filter(e=>{const t=e.getAttribute("type");return!!is.empty(t)||support.mime.call(this,t)})},getQualityOptions(){return this.config.quality.forced?this.config.quality.options:html5.getSources.call(this).map(e=>Number(e.getAttribute("size"))).filter(Boolean)},setup(){if(!this.isHTML5)return;const e=this;e.options.speed=e.config.speed.options,is.empty(this.config.ratio)||setAspectRatio.call(e),Object.defineProperty(e.media,"quality",{get(){const t=html5.getSources.call(e).find(t=>t.getAttribute("src")===e.source);return t&&Number(t.getAttribute("size"))},set(t){if(e.quality!==t){if(e.config.quality.forced&&is.function(e.config.quality.onChange))e.config.quality.onChange(t);else{const i=html5.getSources.call(e).find(e=>Number(e.getAttribute("size"))===t);if(!i)return;const{currentTime:s,paused:n,preload:r,readyState:a,playbackRate:o}=e.media;e.media.src=i.getAttribute("src"),("none"!==r||a)&&(e.once("loadedmetadata",()=>{e.speed=o,e.currentTime=s,n||silencePromise(e.play())}),e.media.load())}triggerEvent.call(e,e.media,"qualitychange",!1,{quality:t})}}})},cancelRequests(){this.isHTML5&&(removeElement(html5.getSources.call(this)),this.media.setAttribute("src",this.config.blankVideo),this.media.load(),this.debug.log("Cancelled network requests"))}},isIE=Boolean(window.document.documentMode),isEdge=/Edge/.test(navigator.userAgent),isWebKit="WebkitAppearance"in document.documentElement.style&&!/Edge/.test(navigator.userAgent),isIPadOS="MacIntel"===navigator.platform&&navigator.maxTouchPoints>1,isIos=/iPad|iPhone|iPod/i.test(navigator.userAgent)&&navigator.maxTouchPoints>1;var browser={isIE:isIE,isEdge:isEdge,isWebKit:isWebKit,isIPadOS:isIPadOS,isIos:isIos};function generateId(e){return`${e}-${Math.floor(1e4*Math.random())}`}function format(e,...t){return is.empty(e)?e:e.toString().replace(/\{(\d+)\}/g,(e,i)=>t[i].toString())}function getPercentage(e,t){return 0===e||0===t||Number.isNaN(e)||Number.isNaN(t)?0:(e/t*100).toFixed(2)}function replaceAll(e="",t="",i=""){return e.replace(new RegExp(t.toString().replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1"),"g"),i.toString())}function toTitleCase(e=""){return e.toString().replace(/\w\S*/g,e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase())}function toPascalCase(e=""){let t=e.toString();return t=replaceAll(t,"-"," "),t=replaceAll(t,"_"," "),t=toTitleCase(t),replaceAll(t," ","")}function toCamelCase(e=""){let t=e.toString();return t=toPascalCase(t),t.charAt(0).toLowerCase()+t.slice(1)}function stripHTML(e){const t=document.createDocumentFragment(),i=document.createElement("div");return t.appendChild(i),i.innerHTML=e,t.firstChild.textContent}function getHTML(e){const t=document.createElement("div");return t.appendChild(e),t.innerHTML}const resources={pip:"PIP",airplay:"AirPlay",html5:"HTML5",vimeo:"Vimeo",youtube:"YouTube"},i18n={get(e="",t={}){if(is.empty(e)||is.empty(t))return"";let i=getDeep(t.i18n,e);if(is.empty(i))return Object.keys(resources).includes(e)?resources[e]:"";const s={"{seektime}":t.seekTime,"{title}":t.title};return Object.entries(s).forEach(([e,t])=>{i=replaceAll(i,e,t)}),i}};class Storage{constructor(e){_defineProperty$1(this,"get",e=>{if(!Storage.supported||!this.enabled)return null;const t=window.localStorage.getItem(this.key);if(is.empty(t))return null;const i=JSON.parse(t);return is.string(e)&&e.length?i[e]:i}),_defineProperty$1(this,"set",e=>{if(!Storage.supported||!this.enabled)return;if(!is.object(e))return;let t=this.get();is.empty(t)&&(t={}),extend(t,e);try{window.localStorage.setItem(this.key,JSON.stringify(t))}catch{}}),this.enabled=e.config.storage.enabled,this.key=e.config.storage.key}static get supported(){try{if(!("localStorage"in window))return!1;const e="___test";return window.localStorage.setItem(e,e),window.localStorage.removeItem(e),!0}catch{return!1}}}function fetch(e,t="text",i=!1){return new Promise((s,n)=>{try{const n=new XMLHttpRequest;if(!("withCredentials"in n))return;i&&(n.withCredentials=!0),n.addEventListener("load",()=>{if("text"===t)try{s(JSON.parse(n.responseText))}catch{s(n.responseText)}else s(n.response)}),n.addEventListener("error",()=>{throw new Error(n.status)}),n.open("GET",e,!0),n.responseType=t,n.send()}catch(e){n(e)}})}function loadSprite(e,t){if(!is.string(e))return;const i="cache",s=is.string(t);let n=!1;const r=()=>null!==document.getElementById(t),a=(e,t)=>{e.innerHTML=t,s&&r()||document.body.insertAdjacentElement("afterbegin",e)};if(!s||!r()){const r=Storage.supported,o=document.createElement("div");if(o.setAttribute("hidden",""),s&&o.setAttribute("id",t),r){const e=window.localStorage.getItem(`${i}-${t}`);if(n=null!==e,n){const t=JSON.parse(e);a(o,t.content)}}fetch(e).then(e=>{if(!is.empty(e)){if(r)try{window.localStorage.setItem(`${i}-${t}`,JSON.stringify({content:e}))}catch{}a(o,e)}}).catch(()=>{})}}const getHours=e=>Math.trunc(e/60/60%60,10),getMinutes=e=>Math.trunc(e/60%60,10),getSeconds=e=>Math.trunc(e%60,10);function formatTime(e=0,t=!1,i=!1){if(!is.number(e))return formatTime(void 0,t,i);const s=e=>`0${e}`.slice(-2);let n=getHours(e);const r=getMinutes(e),a=getSeconds(e);return n=t||n>0?`${n}:`:"",`${i&&e>0?"-":""}${n}${s(r)}:${s(a)}`}const controls={getIconUrl(){const e=new URL(this.config.iconUrl,window.location),t=window.location.host?window.location.host:window.top.location.host,i=e.host!==t||browser.isIE&&!window.svg4everybody;return{url:this.config.iconUrl,cors:i}},findElements(){try{return this.elements.controls=getElement.call(this,this.config.selectors.controls.wrapper),this.elements.buttons={play:getElements.call(this,this.config.selectors.buttons.play),pause:getElement.call(this,this.config.selectors.buttons.pause),restart:getElement.call(this,this.config.selectors.buttons.restart),rewind:getElement.call(this,this.config.selectors.buttons.rewind),fastForward:getElement.call(this,this.config.selectors.buttons.fastForward),mute:getElement.call(this,this.config.selectors.buttons.mute),pip:getElement.call(this,this.config.selectors.buttons.pip),airplay:getElement.call(this,this.config.selectors.buttons.airplay),settings:getElement.call(this,this.config.selectors.buttons.settings),captions:getElement.call(this,this.config.selectors.buttons.captions),fullscreen:getElement.call(this,this.config.selectors.buttons.fullscreen)},this.elements.progress=getElement.call(this,this.config.selectors.progress),this.elements.inputs={seek:getElement.call(this,this.config.selectors.inputs.seek),volume:getElement.call(this,this.config.selectors.inputs.volume)},this.elements.display={buffer:getElement.call(this,this.config.selectors.display.buffer),currentTime:getElement.call(this,this.config.selectors.display.currentTime),duration:getElement.call(this,this.config.selectors.display.duration)},is.element(this.elements.progress)&&(this.elements.display.seekTooltip=this.elements.progress.querySelector(`.${this.config.classNames.tooltip}`)),!0}catch(e){return this.debug.warn("It looks like there is a problem with your custom controls HTML",e),this.toggleNativeControls(!0),!1}},createIcon(e,t){const i="http://www.w3.org/2000/svg",s=controls.getIconUrl.call(this),n=`${s.cors?"":s.url}#${this.config.iconPrefix}`,r=document.createElementNS(i,"svg");setAttributes(r,extend(t,{"aria-hidden":"true",focusable:"false"}));const a=document.createElementNS(i,"use"),o=`${n}-${e}`;return"href"in a&&a.setAttributeNS("http://www.w3.org/1999/xlink","href",o),a.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",o),r.appendChild(a),r},createLabel(e,t={}){const i=i18n.get(e,this.config);return createElement("span",{...t,class:[t.class,this.config.classNames.hidden].filter(Boolean).join(" ")},i)},createBadge(e){if(is.empty(e))return null;const t=createElement("span",{class:this.config.classNames.menu.value});return t.appendChild(createElement("span",{class:this.config.classNames.menu.badge},e)),t},createButton(e,t){const i=extend({},t);let s=toCamelCase(e);const n={element:"button",toggle:!1,label:null,icon:null,labelPressed:null,iconPressed:null};switch(["element","icon","label"].forEach(e=>{Object.keys(i).includes(e)&&(n[e]=i[e],delete i[e])}),"button"!==n.element||Object.keys(i).includes("type")||(i.type="button"),Object.keys(i).includes("class")?i.class.split(" ").includes(this.config.classNames.control)||extend(i,{class:`${i.class} ${this.config.classNames.control}`}):i.class=this.config.classNames.control,e){case"play":n.toggle=!0,n.label="play",n.labelPressed="pause",n.icon="play",n.iconPressed="pause";break;case"mute":n.toggle=!0,n.label="mute",n.labelPressed="unmute",n.icon="volume",n.iconPressed="muted";break;case"captions":n.toggle=!0,n.label="enableCaptions",n.labelPressed="disableCaptions",n.icon="captions-off",n.iconPressed="captions-on";break;case"fullscreen":n.toggle=!0,n.label="enterFullscreen",n.labelPressed="exitFullscreen",n.icon="enter-fullscreen",n.iconPressed="exit-fullscreen";break;case"play-large":i.class+=` ${this.config.classNames.control}--overlaid`,s="play",n.label="play",n.icon="play";break;default:is.empty(n.label)&&(n.label=s),is.empty(n.icon)&&(n.icon=e)}const r=createElement(n.element);return n.toggle?(r.appendChild(controls.createIcon.call(this,n.iconPressed,{class:"icon--pressed"})),r.appendChild(controls.createIcon.call(this,n.icon,{class:"icon--not-pressed"})),r.appendChild(controls.createLabel.call(this,n.labelPressed,{class:"label--pressed"})),r.appendChild(controls.createLabel.call(this,n.label,{class:"label--not-pressed"}))):(r.appendChild(controls.createIcon.call(this,n.icon)),r.appendChild(controls.createLabel.call(this,n.label))),extend(i,getAttributesFromSelector(this.config.selectors.buttons[s],i)),setAttributes(r,i),"play"===s?(is.array(this.elements.buttons[s])||(this.elements.buttons[s]=[]),this.elements.buttons[s].push(r)):this.elements.buttons[s]=r,r},createRange(e,t){const i=createElement("input",extend(getAttributesFromSelector(this.config.selectors.inputs[e]),{type:"range",min:0,max:100,step:.01,value:0,autocomplete:"off",role:"slider","aria-label":i18n.get(e,this.config),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":0},t));return this.elements.inputs[e]=i,controls.updateRangeFill.call(this,i),RangeTouch.setup(i),i},createProgress(e,t){const i=createElement("progress",extend(getAttributesFromSelector(this.config.selectors.display[e]),{min:0,max:100,value:0,role:"progressbar","aria-hidden":!0},t));if("volume"!==e){i.appendChild(createElement("span",null,"0"));const t={played:"played",buffer:"buffered"}[e],s=t?i18n.get(t,this.config):"";i.textContent=`% ${s.toLowerCase()}`}return this.elements.display[e]=i,i},createTime(e,t){const i=getAttributesFromSelector(this.config.selectors.display[e],t),s=createElement("div",extend(i,{class:`${i.class?i.class:""} ${this.config.classNames.display.time} `.trim(),"aria-label":i18n.get(e,this.config),role:"timer"}),"00:00");return this.elements.display[e]=s,s},bindMenuItemShortcuts(e,t){on.call(this,e,"keydown keyup",i=>{if(![" ","ArrowUp","ArrowDown","ArrowRight"].includes(i.key))return;if(i.preventDefault(),i.stopPropagation(),"keydown"===i.type)return;const s=matches(e,'[role="menuitemradio"]');if(!s&&[" ","ArrowRight"].includes(i.key))controls.showMenuPanel.call(this,t,!0);else{let t;" "!==i.key&&("ArrowDown"===i.key||s&&"ArrowRight"===i.key?(t=e.nextElementSibling,is.element(t)||(t=e.parentNode.firstElementChild)):(t=e.previousElementSibling,is.element(t)||(t=e.parentNode.lastElementChild)),setFocus.call(this,t,!0))}},!1),on.call(this,e,"keyup",e=>{"Return"===e.key&&controls.focusFirstMenuItem.call(this,null,!0)})},createMenuItem({value:e,list:t,type:i,title:s,badge:n=null,checked:r=!1}){const a=getAttributesFromSelector(this.config.selectors.inputs[i]),o=createElement("button",extend(a,{type:"button",role:"menuitemradio",class:`${this.config.classNames.control} ${a.class?a.class:""}`.trim(),"aria-checked":r,value:e})),l=createElement("span");l.innerHTML=s,is.element(n)&&l.appendChild(n),o.appendChild(l),Object.defineProperty(o,"checked",{enumerable:!0,get:()=>"true"===o.getAttribute("aria-checked"),set(e){e&&Array.from(o.parentNode.children).filter(e=>matches(e,'[role="menuitemradio"]')).forEach(e=>e.setAttribute("aria-checked","false")),o.setAttribute("aria-checked",e?"true":"false")}}),this.listeners.bind(o,"click keyup",t=>{if(!is.keyboardEvent(t)||" "===t.key){switch(t.preventDefault(),t.stopPropagation(),o.checked=!0,i){case"language":this.currentTrack=Number(e);break;case"quality":this.quality=e;break;case"speed":this.speed=Number.parseFloat(e)}controls.showMenuPanel.call(this,"home",is.keyboardEvent(t))}},i,!1),controls.bindMenuItemShortcuts.call(this,o,i),t.appendChild(o)},formatTime(e=0,t=!1){if(!is.number(e))return e;return formatTime(e,getHours(this.duration)>0,t)},updateTimeDisplay(e=null,t=0,i=!1){is.element(e)&&is.number(t)&&(e.textContent=controls.formatTime(t,i))},updateVolume(){this.supported.ui&&(is.element(this.elements.inputs.volume)&&controls.setRange.call(this,this.elements.inputs.volume,this.muted?0:this.volume),is.element(this.elements.buttons.mute)&&(this.elements.buttons.mute.pressed=this.muted||0===this.volume))},setRange(e,t=0){is.element(e)&&(e.value=t,controls.updateRangeFill.call(this,e))},updateProgress(e){if(!this.supported.ui||!is.event(e))return;let t=0;const i=(e,t)=>{const i=is.number(t)?t:0,s=is.element(e)?e:this.elements.display.buffer;if(is.element(s)){s.value=i;const e=s.getElementsByTagName("span")[0];is.element(e)&&(e.childNodes[0].nodeValue=i)}};if(e)switch(e.type){case"timeupdate":case"seeking":case"seeked":t=getPercentage(this.currentTime,this.duration),"timeupdate"===e.type&&controls.setRange.call(this,this.elements.inputs.seek,t);break;case"playing":case"progress":i(this.elements.display.buffer,100*this.buffered)}},updateRangeFill(e){const t=is.event(e)?e.target:e;if(is.element(t)&&"range"===t.getAttribute("type")){if(matches(t,this.config.selectors.inputs.seek)){t.setAttribute("aria-valuenow",this.currentTime);const e=controls.formatTime(this.currentTime),i=controls.formatTime(this.duration),s=i18n.get("seekLabel",this.config);t.setAttribute("aria-valuetext",s.replace("{currentTime}",e).replace("{duration}",i))}else if(matches(t,this.config.selectors.inputs.volume)){const e=100*t.value;t.setAttribute("aria-valuenow",e),t.setAttribute("aria-valuetext",`${e.toFixed(1)}%`)}else t.setAttribute("aria-valuenow",t.value);(browser.isWebKit||browser.isIPadOS)&&t.style.setProperty("--value",t.value/t.max*100+"%")}},updateSeekTooltip(e){var t,i;if(!this.config.tooltips.seek||!is.element(this.elements.inputs.seek)||!is.element(this.elements.display.seekTooltip)||0===this.duration)return;const s=this.elements.display.seekTooltip,n=`${this.config.classNames.tooltip}--visible`,r=e=>toggleClass(s,n,e);if(this.touch)return void r(!1);let a=0;const o=this.elements.progress.getBoundingClientRect();if(is.event(e)){const t=e.pageX-e.clientX;a=100/o.width*(e.pageX-o.left-t)}else{if(!hasClass(s,n))return;a=Number.parseFloat(s.style.left,10)}a<0?a=0:a>100&&(a=100);const l=this.duration/100*a;s.textContent=controls.formatTime(l);const c=null===(t=this.config.markers)||void 0===t||null===(i=t.points)||void 0===i?void 0:i.find(({time:e})=>e===Math.round(l));c&&s.insertAdjacentHTML("afterbegin",`${c.label} `),s.style.left=`${a}%`,is.event(e)&&["mouseenter","mouseleave"].includes(e.type)&&r("mouseenter"===e.type)},timeUpdate(e){const t=!is.element(this.elements.display.duration)&&this.config.invertTime;controls.updateTimeDisplay.call(this,this.elements.display.currentTime,t?this.duration-this.currentTime:this.currentTime,t),e&&"timeupdate"===e.type&&this.media.seeking||controls.updateProgress.call(this,e)},durationUpdate(){if(!this.supported.ui||!this.config.invertTime&&this.currentTime)return;if(this.duration>=2**32)return toggleHidden(this.elements.display.currentTime,!0),void toggleHidden(this.elements.progress,!0);is.element(this.elements.inputs.seek)&&this.elements.inputs.seek.setAttribute("aria-valuemax",this.duration);const e=is.element(this.elements.display.duration);!e&&this.config.displayDuration&&this.paused&&controls.updateTimeDisplay.call(this,this.elements.display.currentTime,this.duration),e&&controls.updateTimeDisplay.call(this,this.elements.display.duration,this.duration),this.config.markers.enabled&&controls.setMarkers.call(this),controls.updateSeekTooltip.call(this)},toggleMenuButton(e,t){toggleHidden(this.elements.settings.buttons[e],!t)},updateSetting(e,t,i){const s=this.elements.settings.panels[e];let n=null,r=t;if("captions"===e)n=this.currentTrack;else{if(n=is.empty(i)?this[e]:i,is.empty(n)&&(n=this.config[e].default),!is.empty(this.options[e])&&!this.options[e].includes(n))return void this.debug.warn(`Unsupported value of '${n}' for ${e}`);if(!this.config[e].options.includes(n))return void this.debug.warn(`Disabled value of '${n}' for ${e}`)}if(is.element(r)||(r=s&&s.querySelector('[role="menu"]')),!is.element(r))return;this.elements.settings.buttons[e].querySelector(`.${this.config.classNames.menu.value}`).innerHTML=controls.getLabel.call(this,e,n);const a=r&&r.querySelector(`[value="${n}"]`);is.element(a)&&(a.checked=!0)},getLabel(e,t){switch(e){case"speed":return 1===t?i18n.get("normal",this.config):`${t}×`;case"quality":if(is.number(t)){const e=i18n.get(`qualityLabel.${t}`,this.config);return e.length?e:`${t}p`}return toTitleCase(t);case"captions":return captions.getLabel.call(this);default:return null}},setQualityMenu(e){if(!is.element(this.elements.settings.panels.quality))return;const t="quality",i=this.elements.settings.panels.quality.querySelector('[role="menu"]');is.array(e)&&(this.options.quality=dedupe(e).filter(e=>this.config.quality.options.includes(e)));const s=!is.empty(this.options.quality)&&this.options.quality.length>1;if(controls.toggleMenuButton.call(this,t,s),emptyElement(i),controls.checkMenu.call(this),!s)return;const n=e=>{const t=i18n.get(`qualityBadge.${e}`,this.config);return t.length?controls.createBadge.call(this,t):null};this.options.quality.sort((e,t)=>{const i=this.config.quality.options;return i.indexOf(e)>i.indexOf(t)?1:-1}).forEach(e=>{controls.createMenuItem.call(this,{value:e,list:i,type:t,title:controls.getLabel.call(this,"quality",e),badge:n(e)})}),controls.updateSetting.call(this,t,i)},setCaptionsMenu(){if(!is.element(this.elements.settings.panels.captions))return;const e="captions",t=this.elements.settings.panels.captions.querySelector('[role="menu"]'),i=captions.getTracks.call(this),s=Boolean(i.length);if(controls.toggleMenuButton.call(this,e,s),emptyElement(t),controls.checkMenu.call(this),!s)return;const n=i.map((e,i)=>({value:i,checked:this.captions.toggled&&this.currentTrack===i,title:captions.getLabel.call(this,e),badge:e.language&&controls.createBadge.call(this,e.language.toUpperCase()),list:t,type:"language"}));n.unshift({value:-1,checked:!this.captions.toggled,title:i18n.get("disabled",this.config),list:t,type:"language"}),n.forEach(controls.createMenuItem.bind(this)),controls.updateSetting.call(this,e,t)},setSpeedMenu(){if(!is.element(this.elements.settings.panels.speed))return;const e="speed",t=this.elements.settings.panels.speed.querySelector('[role="menu"]');this.options.speed=this.options.speed.filter(e=>e>=this.minimumSpeed&&e<=this.maximumSpeed);const i=!is.empty(this.options.speed)&&this.options.speed.length>1;controls.toggleMenuButton.call(this,e,i),emptyElement(t),controls.checkMenu.call(this),i&&(this.options.speed.forEach(i=>{controls.createMenuItem.call(this,{value:i,list:t,type:e,title:controls.getLabel.call(this,"speed",i)})}),controls.updateSetting.call(this,e,t))},checkMenu(){const{buttons:e}=this.elements.settings,t=!is.empty(e)&&Object.values(e).some(e=>!e.hidden);toggleHidden(this.elements.settings.menu,!t)},focusFirstMenuItem(e,t=!1){if(this.elements.settings.popup.hidden)return;let i=e;is.element(i)||(i=Object.values(this.elements.settings.panels).find(e=>!e.hidden));const s=i.querySelector('[role^="menuitem"]');setFocus.call(this,s,t)},toggleMenu(e){const{popup:t}=this.elements.settings,i=this.elements.buttons.settings;if(!is.element(t)||!is.element(i))return;const{hidden:s}=t;let n=s;if(is.boolean(e))n=e;else if(is.keyboardEvent(e)&&"Escape"===e.key)n=!1;else if(is.event(e)){const s=is.function(e.composedPath)?e.composedPath()[0]:e.target,r=t.contains(s);if(r||!r&&e.target!==i&&n)return}i.setAttribute("aria-expanded",n),toggleHidden(t,!n),toggleClass(this.elements.container,this.config.classNames.menu.open,n),n&&is.keyboardEvent(e)?controls.focusFirstMenuItem.call(this,null,!0):n||s||setFocus.call(this,i,is.keyboardEvent(e))},getMenuSize(e){const t=e.cloneNode(!0);t.style.position="absolute",t.style.opacity=0,t.removeAttribute("hidden"),e.parentNode.appendChild(t);const i=t.scrollWidth,s=t.scrollHeight;return removeElement(t),{width:i,height:s}},showMenuPanel(e="",t=!1){const i=this.elements.container.querySelector(`#plyr-settings-${this.id}-${e}`);if(!is.element(i))return;const s=i.parentNode,n=Array.from(s.children).find(e=>!e.hidden);if(support.transitions&&!support.reducedMotion){s.style.width=`${n.scrollWidth}px`,s.style.height=`${n.scrollHeight}px`;const e=controls.getMenuSize.call(this,i),t=e=>{e.target===s&&["width","height"].includes(e.propertyName)&&(s.style.width="",s.style.height="",off.call(this,s,transitionEndEvent,t))};on.call(this,s,transitionEndEvent,t),s.style.width=`${e.width}px`,s.style.height=`${e.height}px`}toggleHidden(n,!0),toggleHidden(i,!1),controls.focusFirstMenuItem.call(this,i,t)},setDownloadUrl(){const e=this.elements.buttons.download;is.element(e)&&e.setAttribute("href",this.download)},create(e){const{bindMenuItemShortcuts:t,createButton:i,createProgress:s,createRange:n,createTime:r,setQualityMenu:a,setSpeedMenu:o,showMenuPanel:l}=controls;this.elements.controls=null,is.array(this.config.controls)&&this.config.controls.includes("play-large")&&this.elements.container.appendChild(i.call(this,"play-large"));const c=createElement("div",getAttributesFromSelector(this.config.selectors.controls.wrapper));this.elements.controls=c;const u={class:"plyr__controls__item"};return dedupe(is.array(this.config.controls)?this.config.controls:[]).forEach(a=>{if("restart"===a&&c.appendChild(i.call(this,"restart",u)),"rewind"===a&&c.appendChild(i.call(this,"rewind",u)),"play"===a&&c.appendChild(i.call(this,"play",u)),"fast-forward"===a&&c.appendChild(i.call(this,"fast-forward",u)),"progress"===a){const t=createElement("div",{class:`${u.class} plyr__progress__container`}),i=createElement("div",getAttributesFromSelector(this.config.selectors.progress));if(i.appendChild(n.call(this,"seek",{id:`plyr-seek-${e.id}`})),i.appendChild(s.call(this,"buffer")),this.config.tooltips.seek){const e=createElement("span",{class:this.config.classNames.tooltip},"00:00");i.appendChild(e),this.elements.display.seekTooltip=e}this.elements.progress=i,t.appendChild(this.elements.progress),c.appendChild(t)}if("current-time"===a&&c.appendChild(r.call(this,"currentTime",u)),"duration"===a&&c.appendChild(r.call(this,"duration",u)),"mute"===a||"volume"===a){let{volume:t}=this.elements;if(is.element(t)&&c.contains(t)||(t=createElement("div",extend({},u,{class:`${u.class} plyr__volume`.trim()})),this.elements.volume=t,c.appendChild(t)),"mute"===a&&t.appendChild(i.call(this,"mute")),"volume"===a&&!browser.isIos&&!browser.isIPadOS){const i={max:1,step:.05,value:this.config.volume};t.appendChild(n.call(this,"volume",extend(i,{id:`plyr-volume-${e.id}`})))}}if("captions"===a&&c.appendChild(i.call(this,"captions",u)),"settings"===a&&!is.empty(this.config.settings)){const s=createElement("div",extend({},u,{class:`${u.class} plyr__menu`.trim(),hidden:""}));s.appendChild(i.call(this,"settings",{"aria-haspopup":!0,"aria-controls":`plyr-settings-${e.id}`,"aria-expanded":!1}));const n=createElement("div",{class:"plyr__menu__container",id:`plyr-settings-${e.id}`,hidden:""}),r=createElement("div"),a=createElement("div",{id:`plyr-settings-${e.id}-home`}),o=createElement("div",{role:"menu"});a.appendChild(o),r.appendChild(a),this.elements.settings.panels.home=a,this.config.settings.forEach(i=>{const s=createElement("button",extend(getAttributesFromSelector(this.config.selectors.buttons.settings),{type:"button",class:`${this.config.classNames.control} ${this.config.classNames.control}--forward`,role:"menuitem","aria-haspopup":!0,hidden:""}));t.call(this,s,i),on.call(this,s,"click",()=>{l.call(this,i,!1)});const n=createElement("span",null,i18n.get(i,this.config)),a=createElement("span",{class:this.config.classNames.menu.value});a.innerHTML=e[i],n.appendChild(a),s.appendChild(n),o.appendChild(s);const c=createElement("div",{id:`plyr-settings-${e.id}-${i}`,hidden:""}),u=createElement("button",{type:"button",class:`${this.config.classNames.control} ${this.config.classNames.control}--back`});u.appendChild(createElement("span",{"aria-hidden":!0},i18n.get(i,this.config))),u.appendChild(createElement("span",{class:this.config.classNames.hidden},i18n.get("menuBack",this.config))),on.call(this,c,"keydown",e=>{"ArrowLeft"===e.key&&(e.preventDefault(),e.stopPropagation(),l.call(this,"home",!0))},!1),on.call(this,u,"click",()=>{l.call(this,"home",!1)}),c.appendChild(u),c.appendChild(createElement("div",{role:"menu"})),r.appendChild(c),this.elements.settings.buttons[i]=s,this.elements.settings.panels[i]=c}),n.appendChild(r),s.appendChild(n),c.appendChild(s),this.elements.settings.popup=n,this.elements.settings.menu=s}if("pip"===a&&support.pip&&c.appendChild(i.call(this,"pip",u)),"airplay"===a&&support.airplay&&c.appendChild(i.call(this,"airplay",u)),"download"===a){const e=extend({},u,{element:"a",href:this.download,target:"_blank"});this.isHTML5&&(e.download="");const{download:t}=this.config.urls;!is.url(t)&&this.isEmbed&&extend(e,{icon:`logo-${this.provider}`,label:this.provider}),c.appendChild(i.call(this,"download",e))}"fullscreen"===a&&c.appendChild(i.call(this,"fullscreen",u))}),this.isHTML5&&a.call(this,html5.getQualityOptions.call(this)),o.call(this),c},inject(){if(this.config.loadSprite){const e=controls.getIconUrl.call(this);e.cors&&loadSprite(e.url,"sprite-plyr")}this.id=Math.floor(1e4*Math.random());let e=null;this.elements.controls=null;const t={id:this.id,seektime:this.config.seekTime,title:this.config.title};let i=!0;is.function(this.config.controls)&&(this.config.controls=this.config.controls.call(this,t)),this.config.controls||(this.config.controls=[]),is.element(this.config.controls)||is.string(this.config.controls)?e=this.config.controls:(e=controls.create.call(this,{id:this.id,seektime:this.config.seekTime,speed:this.speed,quality:this.quality,captions:captions.getLabel.call(this)}),i=!1);let s;i&&is.string(this.config.controls)&&(e=(e=>{let i=e;return Object.entries(t).forEach(([e,t])=>{i=replaceAll(i,`{${e}}`,t)}),i})(e)),is.string(this.config.selectors.controls.container)&&(s=document.querySelector(this.config.selectors.controls.container)),is.element(s)||(s=this.elements.container);if(s[is.element(e)?"insertAdjacentElement":"insertAdjacentHTML"]("afterbegin",e),is.element(this.elements.controls)||controls.findElements.call(this),!is.empty(this.elements.buttons)){const e=e=>{const t=this.config.classNames.controlPressed;e.setAttribute("aria-pressed","false"),Object.defineProperty(e,"pressed",{configurable:!0,enumerable:!0,get:()=>hasClass(e,t),set(i=!1){toggleClass(e,t,i),e.setAttribute("aria-pressed",i?"true":"false")}})};Object.values(this.elements.buttons).filter(Boolean).forEach(t=>{is.array(t)||is.nodeList(t)?Array.from(t).filter(Boolean).forEach(e):e(t)})}if(browser.isEdge&&repaint(s),this.config.tooltips.controls){const{classNames:e,selectors:t}=this.config,i=`${t.controls.wrapper} ${t.labels} .${e.hidden}`,s=getElements.call(this,i);Array.from(s).forEach(e=>{toggleClass(e,this.config.classNames.hidden,!1),toggleClass(e,this.config.classNames.tooltip,!0)})}},setMediaMetadata(){try{"mediaSession"in navigator&&(navigator.mediaSession.metadata=new window.MediaMetadata({title:this.config.mediaMetadata.title,artist:this.config.mediaMetadata.artist,album:this.config.mediaMetadata.album,artwork:this.config.mediaMetadata.artwork}))}catch{}},setMarkers(){var e,t;if(!this.duration||this.elements.markers)return;const i=null===(e=this.config.markers)||void 0===e||null===(t=e.points)||void 0===t?void 0:t.filter(({time:e})=>e>0&&etoggleClass(r,a,e);i.forEach(e=>{const t=createElement("span",{class:this.config.classNames.marker},""),i=e.time/this.duration*100+"%";r&&(t.addEventListener("mouseenter",()=>{e.label||(r.style.left=i,r.innerHTML=e.label,o(!0))}),t.addEventListener("mouseleave",()=>{o(!1)})),t.addEventListener("click",()=>{this.currentTime=e.time}),t.style.left=i,n.appendChild(t)}),s.appendChild(n),this.config.tooltips.seek||(r=createElement("span",{class:this.config.classNames.tooltip},""),s.appendChild(r)),this.elements.markers={points:n,tip:r},this.elements.progress.appendChild(s)}};function parseUrl(e,t=!0){let i=e;if(t){const e=document.createElement("a");e.href=i,i=e.href}try{return new URL(i)}catch{return null}}function buildUrlParams(e){const t=new URLSearchParams;return is.object(e)&&Object.entries(e).forEach(([e,i])=>{t.set(e,i)}),t}const captions={setup(){if(!this.supported.ui)return;if(!this.isVideo||this.isYouTube||this.isHTML5&&!support.textTracks)return void(is.array(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&controls.setCaptionsMenu.call(this));if(is.element(this.elements.captions)||(this.elements.captions=createElement("div",getAttributesFromSelector(this.config.selectors.captions)),this.elements.captions.setAttribute("dir","auto"),insertAfter(this.elements.captions,this.elements.wrapper)),browser.isIE&&window.URL){const e=this.media.querySelectorAll("track");Array.from(e).forEach(e=>{const t=e.getAttribute("src"),i=parseUrl(t);null!==i&&i.hostname!==window.location.href.hostname&&["http:","https:"].includes(i.protocol)&&fetch(t,"blob").then(t=>{e.setAttribute("src",window.URL.createObjectURL(t))}).catch(()=>{removeElement(e)})})}const e=dedupe((navigator.languages||[navigator.language||navigator.userLanguage||"en"]).map(e=>e.split("-")[0]));let t=(this.storage.get("language")||this.captions.language||this.config.captions.language||"auto").toLowerCase();"auto"===t&&([t]=e);let i=this.storage.get("captions")||this.captions.active;if(is.boolean(i)||({active:i}=this.config.captions),Object.assign(this.captions,{toggled:!1,active:i,language:t,languages:e}),this.isHTML5){const e=this.config.captions.update?"addtrack removetrack":"removetrack";on.call(this,this.media.textTracks,e,captions.update.bind(this))}setTimeout(captions.update.bind(this),0)},update(){const e=captions.getTracks.call(this,!0),{active:t,language:i,meta:s,currentTrackNode:n}=this.captions,r=Boolean(e.find(e=>e.language===i));this.isHTML5&&this.isVideo&&e.filter(e=>!s.get(e)).forEach(e=>{this.debug.log("Track added",e),s.set(e,{default:"showing"===e.mode}),"showing"===e.mode&&(e.mode="hidden"),on.call(this,e,"cuechange",()=>captions.updateCues.call(this))}),(r&&this.language!==i||!e.includes(n))&&(captions.setLanguage.call(this,i),captions.toggle.call(this,t&&r)),this.elements&&toggleClass(this.elements.container,this.config.classNames.captions.enabled,!is.empty(e)),is.array(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&controls.setCaptionsMenu.call(this)},toggle(e,t=!0){if(!this.supported.ui)return;const{toggled:i}=this.captions,s=this.config.classNames.captions.active,n=is.nullOrUndefined(e)?!i:e;if(n!==i){if(t||(this.captions.active=n,this.storage.set({captions:n})),!this.language&&n&&!t){const e=captions.getTracks.call(this),t=captions.findTrack.call(this,[this.captions.language,...this.captions.languages],!0);return this.captions.language=t.language,void captions.set.call(this,e.indexOf(t))}this.elements.buttons.captions&&(this.elements.buttons.captions.pressed=n),toggleClass(this.elements.container,s,n),this.captions.toggled=n,controls.updateSetting.call(this,"captions"),triggerEvent.call(this,this.media,n?"captionsenabled":"captionsdisabled")}setTimeout(()=>{n&&this.captions.toggled&&(this.captions.currentTrackNode.mode="hidden")})},set(e,t=!0){const i=captions.getTracks.call(this);if(-1!==e)if(is.number(e))if(e in i){if(this.captions.currentTrack!==e){this.captions.currentTrack=e;const s=i[e],{language:n}=s||{};this.captions.currentTrackNode=s,controls.updateSetting.call(this,"captions"),t||(this.captions.language=n,this.storage.set({language:n})),this.isVimeo&&this.embed.enableTextTrack(n,null,!1),triggerEvent.call(this,this.media,"languagechange")}captions.toggle.call(this,!0,t),this.isHTML5&&this.isVideo&&captions.updateCues.call(this)}else this.debug.warn("Track not found",e);else this.debug.warn("Invalid caption argument",e);else captions.toggle.call(this,!1,t)},setLanguage(e,t=!0){if(!is.string(e))return void this.debug.warn("Invalid language argument",e);const i=e.toLowerCase();this.captions.language=i;const s=captions.getTracks.call(this),n=captions.findTrack.call(this,[i]);captions.set.call(this,s.indexOf(n),t)},getTracks(e=!1){return Array.from((this.media||{}).textTracks||[]).filter(t=>!this.isHTML5||e||this.captions.meta.has(t)).filter(e=>["captions","subtitles"].includes(e.kind))},findTrack(e,t=!1){const i=captions.getTracks.call(this),s=e=>Number((this.captions.meta.get(e)||{}).default),n=Array.from(i).sort((e,t)=>s(t)-s(e));let r;return e.every(e=>(r=n.find(t=>t.language===e),!r)),r||(t?n[0]:void 0)},getCurrentTrack(){return captions.getTracks.call(this)[this.currentTrack]},getLabel(e){let t=e;return!is.track(t)&&support.textTracks&&this.captions.toggled&&(t=captions.getCurrentTrack.call(this)),is.track(t)?is.empty(t.label)?is.empty(t.language)?i18n.get("enabled",this.config):e.language.toUpperCase():t.label:i18n.get("disabled",this.config)},updateCues(e){if(!this.supported.ui)return;if(!is.element(this.elements.captions))return void this.debug.warn("No captions element to render to");if(!is.nullOrUndefined(e)&&!Array.isArray(e))return void this.debug.warn("updateCues: Invalid input",e);let t=e;if(!t){const e=captions.getCurrentTrack.call(this);t=Array.from((e||{}).activeCues||[]).map(e=>e.getCueAsHTML()).map(getHTML)}const i=t.map(e=>e.trim()).join("\n");if(i!==this.elements.captions.innerHTML){emptyElement(this.elements.captions);const e=createElement("span",getAttributesFromSelector(this.config.selectors.caption));e.innerHTML=i,this.elements.captions.appendChild(e),triggerEvent.call(this,this.media,"cuechange")}}},defaults={enabled:!0,title:"",debug:!1,autoplay:!1,autopause:!0,playsinline:!0,seekTime:10,volume:1,muted:!1,duration:null,displayDuration:!0,invertTime:!0,toggleInvert:!0,ratio:null,clickToPlay:!0,hideControls:!0,resetOnEnd:!1,disableContextMenu:!0,loadSprite:!0,iconPrefix:"plyr",iconUrl:"https://cdn.plyr.io/3.8.4/plyr.svg",blankVideo:"https://cdn.plyr.io/static/blank.mp4",quality:{default:576,options:[4320,2880,2160,1440,1080,720,576,480,360,240],forced:!1,onChange:null},loop:{active:!1},speed:{selected:1,options:[.5,.75,1,1.25,1.5,1.75,2,4]},keyboard:{focused:!0,global:!1},tooltips:{controls:!1,seek:!0},captions:{active:!1,language:"auto",update:!1},fullscreen:{enabled:!0,fallback:!0,iosNative:!1},storage:{enabled:!0,key:"plyr"},controls:["play-large","play","progress","current-time","mute","volume","captions","settings","pip","airplay","fullscreen"],settings:["captions","quality","speed"],i18n:{restart:"Restart",rewind:"Rewind {seektime}s",play:"Play",pause:"Pause",fastForward:"Forward {seektime}s",seek:"Seek",seekLabel:"{currentTime} of {duration}",played:"Played",buffered:"Buffered",currentTime:"Current time",duration:"Duration",volume:"Volume",mute:"Mute",unmute:"Unmute",enableCaptions:"Enable captions",disableCaptions:"Disable captions",download:"Download",enterFullscreen:"Enter fullscreen",exitFullscreen:"Exit fullscreen",frameTitle:"Player for {title}",captions:"Captions",settings:"Settings",pip:"PIP",menuBack:"Go back to previous menu",speed:"Speed",normal:"Normal",quality:"Quality",loop:"Loop",start:"Start",end:"End",all:"All",reset:"Reset",disabled:"Disabled",enabled:"Enabled",advertisement:"Ad",qualityBadge:{2160:"4K",1440:"HD",1080:"HD",720:"HD",576:"SD",480:"SD"}},urls:{download:null,vimeo:{sdk:"https://player.vimeo.com/api/player.js",iframe:"https://player.vimeo.com/video/{0}?{1}",api:"https://vimeo.com/api/oembed.json?url={0}"},youtube:{sdk:"https://www.youtube.com/iframe_api",api:"https://noembed.com/embed?url=https://www.youtube.com/watch?v={0}"},googleIMA:{sdk:"https://imasdk.googleapis.com/js/sdkloader/ima3.js"}},listeners:{seek:null,play:null,pause:null,restart:null,rewind:null,fastForward:null,mute:null,volume:null,captions:null,download:null,fullscreen:null,pip:null,airplay:null,speed:null,quality:null,loop:null,language:null},events:["ended","progress","stalled","playing","waiting","canplay","canplaythrough","loadstart","loadeddata","loadedmetadata","timeupdate","volumechange","play","pause","error","seeking","seeked","emptied","ratechange","cuechange","download","enterfullscreen","exitfullscreen","captionsenabled","captionsdisabled","languagechange","controlshidden","controlsshown","ready","statechange","qualitychange","adsloaded","adscontentpause","adscontentresume","adstarted","adsmidpoint","adscomplete","adsallcomplete","adsimpression","adsclick"],selectors:{editable:"input, textarea, select, [contenteditable]",container:".plyr",controls:{container:null,wrapper:".plyr__controls"},labels:"[data-plyr]",buttons:{play:'[data-plyr="play"]',pause:'[data-plyr="pause"]',restart:'[data-plyr="restart"]',rewind:'[data-plyr="rewind"]',fastForward:'[data-plyr="fast-forward"]',mute:'[data-plyr="mute"]',captions:'[data-plyr="captions"]',download:'[data-plyr="download"]',fullscreen:'[data-plyr="fullscreen"]',pip:'[data-plyr="pip"]',airplay:'[data-plyr="airplay"]',settings:'[data-plyr="settings"]',loop:'[data-plyr="loop"]'},inputs:{seek:'[data-plyr="seek"]',volume:'[data-plyr="volume"]',speed:'[data-plyr="speed"]',language:'[data-plyr="language"]',quality:'[data-plyr="quality"]'},display:{currentTime:".plyr__time--current",duration:".plyr__time--duration",buffer:".plyr__progress__buffer",loop:".plyr__progress__loop",volume:".plyr__volume--display"},progress:".plyr__progress",captions:".plyr__captions",caption:".plyr__caption"},classNames:{type:"plyr--{0}",provider:"plyr--{0}",video:"plyr__video-wrapper",embed:"plyr__video-embed",videoFixedRatio:"plyr__video-wrapper--fixed-ratio",embedContainer:"plyr__video-embed__container",poster:"plyr__poster",posterEnabled:"plyr__poster-enabled",ads:"plyr__ads",control:"plyr__control",controlPressed:"plyr__control--pressed",playing:"plyr--playing",paused:"plyr--paused",stopped:"plyr--stopped",loading:"plyr--loading",hover:"plyr--hover",tooltip:"plyr__tooltip",cues:"plyr__cues",marker:"plyr__progress__marker",hidden:"plyr__sr-only",hideControls:"plyr--hide-controls",isTouch:"plyr--is-touch",uiSupported:"plyr--full-ui",noTransition:"plyr--no-transition",display:{time:"plyr__time"},menu:{value:"plyr__menu__value",badge:"plyr__badge",open:"plyr--menu-open"},captions:{enabled:"plyr--captions-enabled",active:"plyr--captions-active"},fullscreen:{enabled:"plyr--fullscreen-enabled",fallback:"plyr--fullscreen-fallback"},pip:{supported:"plyr--pip-supported",active:"plyr--pip-active"},airplay:{supported:"plyr--airplay-supported",active:"plyr--airplay-active"},previewThumbnails:{thumbContainer:"plyr__preview-thumb",thumbContainerShown:"plyr__preview-thumb--is-shown",imageContainer:"plyr__preview-thumb__image-container",timeContainer:"plyr__preview-thumb__time-container",scrubbingContainer:"plyr__preview-scrubbing",scrubbingContainerShown:"plyr__preview-scrubbing--is-shown"}},attributes:{embed:{provider:"data-plyr-provider",id:"data-plyr-embed-id",hash:"data-plyr-embed-hash"}},ads:{enabled:!1,publisherId:"",tagUrl:""},previewThumbnails:{enabled:!1,src:"",withCredentials:!1},vimeo:{byline:!1,portrait:!1,title:!1,speed:!0,transparent:!1,customControls:!0,referrerPolicy:null,premium:!1},youtube:{rel:0,showinfo:0,iv_load_policy:3,modestbranding:1,customControls:!0,noCookie:!1},mediaMetadata:{title:"",artist:"",album:"",artwork:[]},markers:{enabled:!1,points:[]}},pip={active:"picture-in-picture",inactive:"inline"},providers={html5:"html5",youtube:"youtube",vimeo:"vimeo"},types={audio:"audio",video:"video"};function getProviderByUrl(e){return/^(?:https?:\/\/)?(?:www\.)?(?:youtube\.com|youtube-nocookie\.com|youtu\.?be)\/.+$/.test(e)?providers.youtube:/^https?:\/\/player.vimeo.com\/video\/\d{0,9}(?=\b|\/)/.test(e)?providers.vimeo:null}function noop(){}class Console{constructor(e=!1){this.enabled=window.console&&e,this.enabled&&this.log("Debugging enabled")}get log(){return this.enabled?Function.prototype.bind.call(console.log,console):noop}get warn(){return this.enabled?Function.prototype.bind.call(console.warn,console):noop}get error(){return this.enabled?Function.prototype.bind.call(console.error,console):noop}}class Fullscreen{constructor(e){_defineProperty$1(this,"onChange",()=>{if(!this.supported)return;const e=this.player.elements.buttons.fullscreen;is.element(e)&&(e.pressed=this.active);const t=this.target===this.player.media?this.target:this.player.elements.container;triggerEvent.call(this.player,t,this.active?"enterfullscreen":"exitfullscreen",!0)}),_defineProperty$1(this,"toggleFallback",(e=!1)=>{var t,i;e?this.scrollPosition={x:null!==(t=window.scrollX)&&void 0!==t?t:0,y:null!==(i=window.scrollY)&&void 0!==i?i:0}:window.scrollTo(this.scrollPosition.x,this.scrollPosition.y);if(document.body.style.overflow=e?"hidden":"",toggleClass(this.target,this.player.config.classNames.fullscreen.fallback,e),browser.isIos){let t=document.head.querySelector('meta[name="viewport"]');const i="viewport-fit=cover";t||(t=document.createElement("meta"),t.setAttribute("name","viewport"));const s=is.string(t.content)&&t.content.includes(i);e?(this.cleanupViewport=!s,s||(t.content+=`,${i}`)):this.cleanupViewport&&(t.content=t.content.split(",").filter(e=>e.trim()!==i).join(","))}this.onChange()}),_defineProperty$1(this,"trapFocus",e=>{if(browser.isIos||browser.isIPadOS||!this.active||"Tab"!==e.key)return;const t=document.activeElement,i=getElements.call(this.player,"a[href], button:not(:disabled), input:not(:disabled), [tabindex]"),[s]=i,n=i[i.length-1];t!==n||e.shiftKey?t===s&&e.shiftKey&&(n.focus(),e.preventDefault()):(s.focus(),e.preventDefault())}),_defineProperty$1(this,"update",()=>{if(this.supported){let e;e=this.forceFallback?"Fallback (forced)":Fullscreen.nativeSupported?"Native":"Fallback",this.player.debug.log(`${e} fullscreen enabled`)}else this.player.debug.log("Fullscreen not supported and fallback disabled");toggleClass(this.player.elements.container,this.player.config.classNames.fullscreen.enabled,this.supported)}),_defineProperty$1(this,"enter",()=>{this.supported&&(browser.isIos&&this.player.config.fullscreen.iosNative?this.player.isVimeo?this.player.embed.requestFullscreen():this.target.webkitEnterFullscreen():!Fullscreen.nativeSupported||this.forceFallback?this.toggleFallback(!0):this.prefix?is.empty(this.prefix)||this.target[`${this.prefix}Request${this.property}`]():this.target.requestFullscreen({navigationUI:"hide"}))}),_defineProperty$1(this,"exit",()=>{if(this.supported)if(browser.isIos&&this.player.config.fullscreen.iosNative)this.player.isVimeo?this.player.embed.exitFullscreen():this.target.webkitEnterFullscreen(),silencePromise(this.player.play());else if(!Fullscreen.nativeSupported||this.forceFallback)this.toggleFallback(!1);else if(this.prefix){if(!is.empty(this.prefix)){const e="moz"===this.prefix?"Cancel":"Exit";document[`${this.prefix}${e}${this.property}`]()}}else(document.cancelFullScreen||document.exitFullscreen).call(document)}),_defineProperty$1(this,"toggle",()=>{this.active?this.exit():this.enter()}),this.player=e,this.prefix=Fullscreen.prefix,this.property=Fullscreen.property,this.scrollPosition={x:0,y:0},this.forceFallback="force"===e.config.fullscreen.fallback,this.player.elements.fullscreen=e.config.fullscreen.container&&closest$1(this.player.elements.container,e.config.fullscreen.container),on.call(this.player,document,"ms"===this.prefix?"MSFullscreenChange":`${this.prefix}fullscreenchange`,()=>{this.onChange()}),on.call(this.player,this.player.elements.container,"dblclick",e=>{is.element(this.player.elements.controls)&&this.player.elements.controls.contains(e.target)||this.player.listeners.proxy(e,this.toggle,"fullscreen")}),on.call(this,this.player.elements.container,"keydown",e=>this.trapFocus(e)),this.update()}static get nativeSupported(){return!!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled)}get useNative(){return Fullscreen.nativeSupported&&!this.forceFallback}static get prefix(){if(is.function(document.exitFullscreen))return"";let e="";return["webkit","moz","ms"].some(t=>!(!is.function(document[`${t}ExitFullscreen`])&&!is.function(document[`${t}CancelFullScreen`]))&&(e=t,!0)),e}static get property(){return"moz"===this.prefix?"FullScreen":"Fullscreen"}get supported(){return[this.player.config.fullscreen.enabled,this.player.isVideo,Fullscreen.nativeSupported||this.player.config.fullscreen.fallback,!this.player.isYouTube||Fullscreen.nativeSupported||!browser.isIos||this.player.config.playsinline&&!this.player.config.fullscreen.iosNative].every(Boolean)}get active(){if(!this.supported)return!1;if(!Fullscreen.nativeSupported||this.forceFallback)return hasClass(this.target,this.player.config.classNames.fullscreen.fallback);const e=this.prefix?this.target.getRootNode()[`${this.prefix}${this.property}Element`]:this.target.getRootNode().fullscreenElement;return e&&e.shadowRoot?e===this.target.getRootNode().host:e===this.target}get target(){var e;return browser.isIos&&this.player.config.fullscreen.iosNative?this.player.media:null!==(e=this.player.elements.fullscreen)&&void 0!==e?e:this.player.elements.container}}function loadImage(e,t=1){return new Promise((i,s)=>{const n=new Image,r=()=>{delete n.onload,delete n.onerror,(n.naturalWidth>=t?i:s)(n)};Object.assign(n,{onload:r,onerror:r,src:e})})}const ui={addStyleHook(){toggleClass(this.elements.container,this.config.selectors.container.replace(".",""),!0),toggleClass(this.elements.container,this.config.classNames.uiSupported,this.supported.ui)},toggleNativeControls(e=!1){e&&this.isHTML5?this.media.setAttribute("controls",""):this.media.removeAttribute("controls")},build(){if(this.listeners.media(),!this.supported.ui)return this.debug.warn(`Basic support only for ${this.provider} ${this.type}`),void ui.toggleNativeControls.call(this,!0);is.element(this.elements.controls)||(controls.inject.call(this),this.listeners.controls()),ui.toggleNativeControls.call(this),this.isHTML5&&captions.setup.call(this),this.volume=null,this.muted=null,this.loop=null,this.quality=null,this.speed=null,controls.updateVolume.call(this),controls.timeUpdate.call(this),controls.durationUpdate.call(this),ui.checkPlaying.call(this),toggleClass(this.elements.container,this.config.classNames.pip.supported,support.pip&&this.isHTML5&&this.isVideo),toggleClass(this.elements.container,this.config.classNames.airplay.supported,support.airplay&&this.isHTML5),toggleClass(this.elements.container,this.config.classNames.isTouch,this.touch),this.ready=!0,setTimeout(()=>{triggerEvent.call(this,this.media,"ready")},0),ui.setTitle.call(this),this.poster&&ui.setPoster.call(this,this.poster,!1).catch(()=>{}),this.config.duration&&controls.durationUpdate.call(this),this.config.mediaMetadata&&controls.setMediaMetadata.call(this)},setTitle(){let e=i18n.get("play",this.config);if(is.string(this.config.title)&&!is.empty(this.config.title)&&(e+=`, ${this.config.title}`),Array.from(this.elements.buttons.play||[]).forEach(t=>{t.setAttribute("aria-label",e)}),this.isEmbed){const e=getElement.call(this,"iframe");if(!is.element(e))return;const t=is.empty(this.config.title)?"video":this.config.title,i=i18n.get("frameTitle",this.config);e.setAttribute("title",i.replace("{title}",t))}},togglePoster(e){toggleClass(this.elements.container,this.config.classNames.posterEnabled,e)},setPoster(e,t=!0){return t&&this.poster?Promise.reject(new Error("Poster already set")):(this.media.setAttribute("data-poster",e),this.elements.poster.removeAttribute("hidden"),ready.call(this).then(()=>loadImage(e)).catch(t=>{throw e===this.poster&&ui.togglePoster.call(this,!1),t}).then(()=>{if(e!==this.poster)throw new Error("setPoster cancelled by later call to setPoster")}).then(()=>(Object.assign(this.elements.poster.style,{backgroundImage:`url('${e}')`,backgroundSize:""}),ui.togglePoster.call(this,!0),e)))},checkPlaying(e){toggleClass(this.elements.container,this.config.classNames.playing,this.playing),toggleClass(this.elements.container,this.config.classNames.paused,this.paused),toggleClass(this.elements.container,this.config.classNames.stopped,this.stopped),Array.from(this.elements.buttons.play||[]).forEach(e=>{Object.assign(e,{pressed:this.playing}),e.setAttribute("aria-label",i18n.get(this.playing?"pause":"play",this.config))}),is.event(e)&&"timeupdate"===e.type||ui.toggleControls.call(this)},checkLoading(e){this.loading=["stalled","waiting"].includes(e.type),clearTimeout(this.timers.loading),this.timers.loading=setTimeout(()=>{toggleClass(this.elements.container,this.config.classNames.loading,this.loading),ui.toggleControls.call(this)},this.loading?250:0)},toggleControls(e){const{controls:t}=this.elements;if(t&&this.config.hideControls){const i=this.touch&&this.lastSeekTime+2e3>Date.now();this.toggleControls(Boolean(e||this.loading||this.paused||t.pressed||t.hover||i))}},migrateStyles(){Object.values({...this.media.style}).filter(e=>!is.empty(e)&&is.string(e)&&e.startsWith("--plyr")).forEach(e=>{this.elements.container.style.setProperty(e,this.media.style.getPropertyValue(e)),this.media.style.removeProperty(e)}),is.empty(this.media.style)&&this.media.removeAttribute("style")}};class Listeners{constructor(e){_defineProperty$1(this,"firstTouch",()=>{const{player:e}=this,{elements:t}=e;e.touch=!0,toggleClass(t.container,e.config.classNames.isTouch,!0)}),_defineProperty$1(this,"global",(e=!0)=>{const{player:t}=this;t.config.keyboard.global&&toggleListener.call(t,window,"keydown keyup",this.handleKey,e,!1),toggleListener.call(t,document.body,"click",this.toggleMenu,e),once.call(t,document.body,"touchstart",this.firstTouch)}),_defineProperty$1(this,"container",()=>{const{player:e}=this,{config:t,elements:i,timers:s}=e;!t.keyboard.global&&t.keyboard.focused&&on.call(e,i.container,"keydown keyup",this.handleKey,!1),on.call(e,i.container,"mousemove mouseleave touchstart touchmove enterfullscreen exitfullscreen",t=>{const{controls:n}=i;n&&"enterfullscreen"===t.type&&(n.pressed=!1,n.hover=!1);let r=0;["touchstart","touchmove","mousemove"].includes(t.type)&&(ui.toggleControls.call(e,!0),r=e.touch?3e3:2e3),clearTimeout(s.controls),s.controls=setTimeout(()=>ui.toggleControls.call(e,!1),r)});const n=()=>{if(!e.isVimeo||e.config.vimeo.premium)return;const t=i.wrapper,{active:s}=e.fullscreen,[n,r]=getAspectRatio.call(e),a=supportsCSS(`aspect-ratio: ${n} / ${r}`);if(!s)return void(a?(t.style.width=null,t.style.height=null):(t.style.maxWidth=null,t.style.margin=null));const[o,l]=getViewportSize(),c=o/l>n/r;a?(t.style.width=c?"auto":"100%",t.style.height=c?"100%":"auto"):(t.style.maxWidth=c?l/r*n+"px":null,t.style.margin=c?"0 auto":null)},r=()=>{clearTimeout(s.resized),s.resized=setTimeout(n,50)};on.call(e,i.container,"enterfullscreen exitfullscreen",t=>{const{target:s}=e.fullscreen;if(s!==i.container)return;if(!e.isEmbed&&is.empty(e.config.ratio))return;n();("enterfullscreen"===t.type?on:off).call(e,window,"resize",r)})}),_defineProperty$1(this,"media",()=>{const{player:e}=this,{elements:t}=e;if(on.call(e,e.media,"timeupdate seeking seeked",t=>controls.timeUpdate.call(e,t)),on.call(e,e.media,"durationchange loadeddata loadedmetadata",t=>controls.durationUpdate.call(e,t)),on.call(e,e.media,"ended",()=>{e.isHTML5&&e.isVideo&&e.config.resetOnEnd&&(e.restart(),e.pause())}),on.call(e,e.media,"progress playing seeking seeked",t=>controls.updateProgress.call(e,t)),on.call(e,e.media,"volumechange",t=>controls.updateVolume.call(e,t)),on.call(e,e.media,"playing play pause ended emptied timeupdate",t=>ui.checkPlaying.call(e,t)),on.call(e,e.media,"waiting canplay seeked playing",t=>ui.checkLoading.call(e,t)),e.supported.ui&&e.config.clickToPlay&&!e.isAudio){const i=getElement.call(e,`.${e.config.classNames.video}`);if(!is.element(i))return;on.call(e,t.container,"click",s=>{([t.container,i].includes(s.target)||i.contains(s.target))&&(e.touch&&e.config.hideControls||(e.ended?(this.proxy(s,e.restart,"restart"),this.proxy(s,()=>{silencePromise(e.play())},"play")):this.proxy(s,()=>{silencePromise(e.togglePlay())},"play")))})}e.supported.ui&&e.config.disableContextMenu&&on.call(e,t.wrapper,"contextmenu",e=>{e.preventDefault()},!1),on.call(e,e.media,"volumechange",()=>{e.storage.set({volume:e.volume,muted:e.muted})}),on.call(e,e.media,"ratechange",()=>{controls.updateSetting.call(e,"speed"),e.storage.set({speed:e.speed})}),on.call(e,e.media,"qualitychange",t=>{controls.updateSetting.call(e,"quality",null,t.detail.quality)}),on.call(e,e.media,"ready qualitychange",()=>{controls.setDownloadUrl.call(e)});const i=e.config.events.concat(["keyup","keydown"]).join(" ");on.call(e,e.media,i,i=>{let{detail:s={}}=i;"error"===i.type&&(s=e.media.error),triggerEvent.call(e,t.container,i.type,!0,s)})}),_defineProperty$1(this,"proxy",(e,t,i)=>{const{player:s}=this,n=s.config.listeners[i];let r=!0;is.function(n)&&(r=n.call(s,e)),!1!==r&&is.function(t)&&t.call(s,e)}),_defineProperty$1(this,"bind",(e,t,i,s,n=!0)=>{const{player:r}=this,a=r.config.listeners[s],o=is.function(a);on.call(r,e,t,e=>this.proxy(e,i,s),n&&!o)}),_defineProperty$1(this,"controls",()=>{const{player:e}=this,{elements:t}=e,i=browser.isIE?"change":"input";if(t.buttons.play&&Array.from(t.buttons.play).forEach(t=>{this.bind(t,"click",()=>{silencePromise(e.togglePlay())},"play")}),this.bind(t.buttons.restart,"click",e.restart,"restart"),this.bind(t.buttons.rewind,"click",()=>{e.lastSeekTime=Date.now(),e.rewind()},"rewind"),this.bind(t.buttons.fastForward,"click",()=>{e.lastSeekTime=Date.now(),e.forward()},"fastForward"),this.bind(t.buttons.mute,"click",()=>{e.muted=!e.muted},"mute"),this.bind(t.buttons.captions,"click",()=>e.toggleCaptions()),this.bind(t.buttons.download,"click",()=>{triggerEvent.call(e,e.media,"download")},"download"),this.bind(t.buttons.fullscreen,"click",()=>{e.fullscreen.toggle()},"fullscreen"),this.bind(t.buttons.pip,"click",()=>{e.pip="toggle"},"pip"),this.bind(t.buttons.airplay,"click",e.airplay,"airplay"),this.bind(t.buttons.settings,"click",t=>{t.stopPropagation(),t.preventDefault(),controls.toggleMenu.call(e,t)},null,!1),this.bind(t.buttons.settings,"keyup",t=>{[" ","Enter"].includes(t.key)&&("Enter"!==t.key?(t.preventDefault(),t.stopPropagation(),controls.toggleMenu.call(e,t)):controls.focusFirstMenuItem.call(e,null,!0))},null,!1),this.bind(t.settings.menu,"keydown",t=>{"Escape"===t.key&&controls.toggleMenu.call(e,t)}),this.bind(t.inputs.seek,"mousedown mousemove",e=>{const i=t.progress.getBoundingClientRect(),s=e.pageX-e.clientX,n=100/i.width*(e.pageX-i.left-s);e.currentTarget.setAttribute("seek-value",n)}),this.bind(t.inputs.seek,"mousedown mouseup keydown keyup touchstart touchend",t=>{const i=t.currentTarget,s="play-on-seeked";if(is.keyboardEvent(t)&&!["ArrowLeft","ArrowRight"].includes(t.key))return;e.lastSeekTime=Date.now();const n=i.hasAttribute(s),r=["mouseup","touchend","keyup"].includes(t.type);n&&r?(i.removeAttribute(s),silencePromise(e.play())):!r&&e.playing&&(i.setAttribute(s,""),e.pause())}),browser.isIos){const t=getElements.call(e,'input[type="range"]');Array.from(t).forEach(e=>this.bind(e,i,e=>repaint(e.target)))}this.bind(t.inputs.seek,i,t=>{const i=t.currentTarget;let s=i.getAttribute("seek-value");is.empty(s)&&(s=i.value),i.removeAttribute("seek-value"),e.currentTime=s/i.max*e.duration},"seek"),this.bind(t.progress,"mouseenter mouseleave mousemove",t=>controls.updateSeekTooltip.call(e,t)),this.bind(t.progress,"mousemove touchmove",t=>{const{previewThumbnails:i}=e;i&&i.loaded&&i.startMove(t)}),this.bind(t.progress,"mouseleave touchend click",()=>{const{previewThumbnails:t}=e;t&&t.loaded&&t.endMove(!1,!0)}),this.bind(t.progress,"mousedown touchstart",t=>{const{previewThumbnails:i}=e;i&&i.loaded&&i.startScrubbing(t)}),this.bind(t.progress,"mouseup touchend",t=>{const{previewThumbnails:i}=e;i&&i.loaded&&i.endScrubbing(t)}),browser.isWebKit&&Array.from(getElements.call(e,'input[type="range"]')).forEach(t=>{this.bind(t,"input",t=>controls.updateRangeFill.call(e,t.target))}),e.config.toggleInvert&&!is.element(t.display.duration)&&this.bind(t.display.currentTime,"click",()=>{0!==e.currentTime&&(e.config.invertTime=!e.config.invertTime,controls.timeUpdate.call(e))}),this.bind(t.inputs.volume,i,t=>{e.volume=t.target.value},"volume"),this.bind(t.controls,"mouseenter mouseleave",i=>{t.controls.hover=!e.touch&&"mouseenter"===i.type}),t.fullscreen&&Array.from(t.fullscreen.children).filter(e=>!e.contains(t.container)).forEach(i=>{this.bind(i,"mouseenter mouseleave",i=>{t.controls&&(t.controls.hover=!e.touch&&"mouseenter"===i.type)})}),this.bind(t.controls,"mousedown mouseup touchstart touchend touchcancel",e=>{t.controls.pressed=["mousedown","touchstart"].includes(e.type)}),this.bind(t.controls,"focusin",()=>{const{config:i,timers:s}=e;toggleClass(t.controls,i.classNames.noTransition,!0),ui.toggleControls.call(e,!0),setTimeout(()=>{toggleClass(t.controls,i.classNames.noTransition,!1)},0);const n=this.touch?3e3:4e3;clearTimeout(s.controls),s.controls=setTimeout(()=>ui.toggleControls.call(e,!1),n)}),this.bind(t.inputs.volume,"wheel",t=>{const i=t.webkitDirectionInvertedFromDevice,[s,n]=[t.deltaX,-t.deltaY].map(e=>i?-e:e),r=Math.sign(Math.abs(s)>Math.abs(n)?s:n);e.increaseVolume(r/50);const{volume:a}=e.media;(1===r&&a<1||-1===r&&a>0)&&t.preventDefault()},"volume",!1)}),this.player=e,this.lastKey=null,this.focusTimer=null,this.lastKeyDown=null,this.handleKey=this.handleKey.bind(this),this.toggleMenu=this.toggleMenu.bind(this),this.firstTouch=this.firstTouch.bind(this)}handleKey(e){const{player:t}=this,{elements:i}=t,{key:s,type:n,altKey:r,ctrlKey:a,metaKey:o,shiftKey:l}=e,c="keydown"===n,u=c&&s===this.lastKey;if(r||a||o||l)return;if(!s)return;if(c){const n=document.activeElement;if(is.element(n)){const{editable:s}=t.config.selectors,{seek:r}=i.inputs;if(n!==r&&matches(n,s))return;if(" "===e.key&&matches(n,'button, [role^="menuitem"]'))return}switch([" ","ArrowLeft","ArrowUp","ArrowRight","ArrowDown","0","1","2","3","4","5","6","7","8","9","c","f","k","l","m"].includes(s)&&(e.preventDefault(),e.stopPropagation()),s){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":u||(d=Number.parseInt(s,10),t.currentTime=t.duration/10*d);break;case" ":case"k":u||silencePromise(t.togglePlay());break;case"ArrowUp":t.increaseVolume(.1);break;case"ArrowDown":t.decreaseVolume(.1);break;case"m":u||(t.muted=!t.muted);break;case"ArrowRight":t.forward();break;case"ArrowLeft":t.rewind();break;case"f":t.fullscreen.toggle();break;case"c":u||t.toggleCaptions();break;case"l":t.loop=!t.loop}"Escape"===s&&!t.fullscreen.usingNative&&t.fullscreen.active&&t.fullscreen.toggle(),this.lastKey=s}else this.lastKey=null;var d}toggleMenu(e){controls.toggleMenu.call(this.player,e)}}function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var hasRequiredLoadjs_umd,loadjs_umd$1={exports:{}},loadjs_umd=loadjs_umd$1.exports;function requireLoadjs_umd(){return hasRequiredLoadjs_umd||(hasRequiredLoadjs_umd=1,loadjs_umd$1.exports=function(){var e=function(){},t={},i={},s={};function n(e,t){e=e.push?e:[e];var n,r,a,o=[],l=e.length,c=l;for(n=function(e,i){i.length&&o.push(e),--c||t(o)};l--;)r=e[l],(a=i[r])?n(r,a):(s[r]=s[r]||[]).push(n)}function r(e,t){if(e){var n=s[e];if(i[e]=t,n)for(;n.length;)n[0](e,t),n.splice(0,1)}}function a(t,i){t.call&&(t={success:t}),i.length?(t.error||e)(i):(t.success||e)(t)}function o(t,i,s,n){var r,a,l,c=document,u=s.async,d=(s.numRetries||0)+1,h=s.before||e,m=t.replace(/[\?|#].*$/,""),p=t.replace(/^(css|img|module|nomodule)!/,"");if(n=n||0,/(^css!|\.css$)/.test(m))(l=c.createElement("link")).rel="stylesheet",l.href=p,(r="hideFocus"in l)&&l.relList&&(r=0,l.rel="preload",l.as="style");else if(/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(m))(l=c.createElement("img")).src=p;else if((l=c.createElement("script")).src=p,l.async=void 0===u||u,a="noModule"in l,/^module!/.test(m)){if(!a)return i(t,"l");l.type="module"}else if(/^nomodule!/.test(m)&&a)return i(t,"l");l.onload=l.onerror=l.onbeforeload=function(e){var a=e.type[0];if(r)try{l.sheet.cssText.length||(a="e")}catch(e){18!=e.code&&(a="e")}if("e"==a){if((n+=1){loadjs(e,{success:t,error:i})})}function parseId$1(e){if(is.empty(e))return null;if(is.number(Number(e)))return e;const t=e.match(/^.*(vimeo.com\/|video\/)(\d+).*/);return t?t[2]:e}function parseHash(e){const t=e.match(/^.*(vimeo.com\/|video\/)(\d+)(\?.*h=|\/)+([\d,a-f]+)/);return t&&5===t.length?t[4]:null}function assurePlaybackState$1(e){e&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===e&&(this.media.paused=!e,triggerEvent.call(this,this.media,e?"play":"pause"))}const vimeo={setup(){const e=this;toggleClass(e.elements.wrapper,e.config.classNames.embed,!0),e.options.speed=e.config.speed.options,setAspectRatio.call(e),is.object(window.Vimeo)?vimeo.ready.call(e):loadScript(e.config.urls.vimeo.sdk).then(()=>{vimeo.ready.call(e)}).catch(t=>{e.debug.warn("Vimeo SDK (player.js) failed to load",t)})},ready(){const e=this,t=e.config.vimeo,{premium:i,referrerPolicy:s,...n}=t;let r=e.media.getAttribute("src"),a="";is.empty(r)?(r=e.media.getAttribute(e.config.attributes.embed.id),a=e.media.getAttribute(e.config.attributes.embed.hash)):a=parseHash(r);const o=a?{h:a}:{};i&&Object.assign(n,{controls:!1,sidedock:!1});const l=buildUrlParams({loop:e.config.loop.active,autoplay:e.autoplay,muted:e.muted,gesture:"media",playsinline:e.config.playsinline,...o,...n}),c=parseId$1(r),u=createElement("iframe"),d=format(e.config.urls.vimeo.iframe,c,l);if(u.setAttribute("src",d),u.setAttribute("allowfullscreen",""),u.setAttribute("allow",["autoplay","fullscreen","picture-in-picture","encrypted-media","accelerometer","gyroscope"].join("; ")),is.empty(s)||u.setAttribute("referrerPolicy",s),i||!t.customControls)u.setAttribute("data-poster",e.poster),e.media=replaceElement(u,e.media);else{const t=createElement("div",{class:e.config.classNames.embedContainer,"data-poster":e.poster});t.appendChild(u),e.media=replaceElement(t,e.media)}t.customControls||fetch(format(e.config.urls.vimeo.api,d)).then(t=>{!is.empty(t)&&t.thumbnail_url&&ui.setPoster.call(e,t.thumbnail_url).catch(()=>{})}),e.embed=new window.Vimeo.Player(u,{autopause:e.config.autopause,muted:e.muted}),e.media.paused=!0,e.media.currentTime=0,e.supported.ui&&e.embed.disableTextTrack(),e.media.play=()=>(assurePlaybackState$1.call(e,!0),e.embed.play()),e.media.pause=()=>(assurePlaybackState$1.call(e,!1),e.embed.pause()),e.media.stop=()=>{e.pause(),e.currentTime=0};let{currentTime:h}=e.media;Object.defineProperty(e.media,"currentTime",{get:()=>h,set(t){const{embed:i,media:s,paused:n,volume:r}=e,a=n&&!i.hasPlayed;s.seeking=!0,triggerEvent.call(e,s,"seeking"),Promise.resolve(a&&i.setVolume(0)).then(()=>i.setCurrentTime(t)).then(()=>a&&i.pause()).then(()=>a&&i.setVolume(r)).catch(()=>{})}});let m=e.config.speed.selected;Object.defineProperty(e.media,"playbackRate",{get:()=>m,set(t){e.embed.setPlaybackRate(t).then(()=>{m=t,triggerEvent.call(e,e.media,"ratechange")}).catch(()=>{e.options.speed=[1]})}});let{volume:p}=e.config;Object.defineProperty(e.media,"volume",{get:()=>p,set(t){e.embed.setVolume(t).then(()=>{p=t,triggerEvent.call(e,e.media,"volumechange")})}});let{muted:g}=e.config;Object.defineProperty(e.media,"muted",{get:()=>g,set(t){const i=!!is.boolean(t)&&t;e.embed.setMuted(!!i||e.config.muted).then(()=>{g=i,triggerEvent.call(e,e.media,"volumechange")})}});let f,{loop:y}=e.config;Object.defineProperty(e.media,"loop",{get:()=>y,set(t){const i=is.boolean(t)?t:e.config.loop.active;e.embed.setLoop(i).then(()=>{y=i})}}),e.embed.getVideoUrl().then(t=>{f=t,controls.setDownloadUrl.call(e)}).catch(e=>{this.debug.warn(e)}),Object.defineProperty(e.media,"currentSrc",{get:()=>f}),Object.defineProperty(e.media,"ended",{get:()=>e.currentTime===e.duration}),Promise.all([e.embed.getVideoWidth(),e.embed.getVideoHeight()]).then(t=>{const[i,s]=t;e.embed.ratio=roundAspectRatio(i,s),setAspectRatio.call(this)}),e.embed.setAutopause(e.config.autopause).then(t=>{e.config.autopause=t}),e.embed.getVideoTitle().then(t=>{e.config.title=t,ui.setTitle.call(this)}),e.embed.getCurrentTime().then(t=>{h=t,triggerEvent.call(e,e.media,"timeupdate")}),e.embed.getDuration().then(t=>{e.media.duration=t,triggerEvent.call(e,e.media,"durationchange")}),e.embed.getTextTracks().then(t=>{e.media.textTracks=t,captions.setup.call(e)}),e.embed.on("cuechange",({cues:t=[]})=>{const i=t.map(e=>stripHTML(e.text));captions.updateCues.call(e,i)}),e.embed.on("loaded",()=>{if(e.embed.getPaused().then(t=>{assurePlaybackState$1.call(e,!t),t||triggerEvent.call(e,e.media,"playing")}),is.element(e.embed.element)&&e.supported.ui){e.embed.element.setAttribute("tabindex",-1)}}),e.embed.on("bufferstart",()=>{triggerEvent.call(e,e.media,"waiting")}),e.embed.on("bufferend",()=>{triggerEvent.call(e,e.media,"playing")}),e.embed.on("play",()=>{assurePlaybackState$1.call(e,!0),triggerEvent.call(e,e.media,"playing")}),e.embed.on("pause",()=>{assurePlaybackState$1.call(e,!1)}),e.embed.on("timeupdate",t=>{e.media.seeking=!1,h=t.seconds,triggerEvent.call(e,e.media,"timeupdate")}),e.embed.on("progress",t=>{e.media.buffered=t.percent,triggerEvent.call(e,e.media,"progress"),1===Number.parseInt(t.percent,10)&&triggerEvent.call(e,e.media,"canplaythrough"),e.embed.getDuration().then(t=>{t!==e.media.duration&&(e.media.duration=t,triggerEvent.call(e,e.media,"durationchange"))})}),e.embed.on("seeked",()=>{e.media.seeking=!1,triggerEvent.call(e,e.media,"seeked")}),e.embed.on("ended",()=>{e.media.paused=!0,triggerEvent.call(e,e.media,"ended")}),e.embed.on("error",t=>{e.media.error=t,triggerEvent.call(e,e.media,"error")}),t.customControls&&setTimeout(()=>ui.build.call(e),0)}};function parseId(e){if(is.empty(e))return null;const t=e.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/);return t&&t[2]?t[2]:e}function assurePlaybackState(e){e&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===e&&(this.media.paused=!e,triggerEvent.call(this,this.media,e?"play":"pause"))}function getHost(e){return e.noCookie?"https://www.youtube-nocookie.com":"http:"===window.location.protocol?"http://www.youtube.com":void 0}const youtube={setup(){if(toggleClass(this.elements.wrapper,this.config.classNames.embed,!0),is.object(window.YT)&&is.function(window.YT.Player))youtube.ready.call(this);else{const e=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=()=>{is.function(e)&&e(),youtube.ready.call(this)},loadScript(this.config.urls.youtube.sdk).catch(e=>{this.debug.warn("YouTube API failed to load",e)})}},getTitle(e){fetch(format(this.config.urls.youtube.api,e)).then(e=>{if(is.object(e)){const{title:t,height:i,width:s}=e;this.config.title=t,ui.setTitle.call(this),this.embed.ratio=roundAspectRatio(s,i)}setAspectRatio.call(this)}).catch(()=>{setAspectRatio.call(this)})},ready(){const e=this,t=e.config.youtube,i=e.media&&e.media.getAttribute("id");if(!is.empty(i)&&i.startsWith("youtube-"))return;let s=e.media.getAttribute("src");is.empty(s)&&(s=e.media.getAttribute(this.config.attributes.embed.id));const n=parseId(s),r=createElement("div",{id:generateId(e.provider),"data-poster":t.customControls?e.poster:void 0});if(e.media=replaceElement(r,e.media),t.customControls){const t=e=>`https://i.ytimg.com/vi/${n}/${e}default.jpg`;loadImage(t("maxres"),121).catch(()=>loadImage(t("sd"),121)).catch(()=>loadImage(t("hq"))).then(t=>ui.setPoster.call(e,t.src)).then(t=>{t.includes("maxres")||(e.elements.poster.style.backgroundSize="cover")}).catch(()=>{})}e.embed=new window.YT.Player(e.media,{videoId:n,host:getHost(t),playerVars:extend({},{autoplay:e.config.autoplay?1:0,hl:e.config.hl,controls:e.supported.ui&&t.customControls?0:1,disablekb:1,playsinline:e.config.playsinline&&!e.config.fullscreen.iosNative?1:0,cc_load_policy:e.captions.active?1:0,cc_lang_pref:e.config.captions.language,widget_referrer:window?window.location.href:null},t),events:{onError(t){if(!e.media.error){const i=t.data,s={2:"The request contains an invalid parameter value. For example, this error occurs if you specify a video ID that does not have 11 characters, or if the video ID contains invalid characters, such as exclamation points or asterisks.",5:"The requested content cannot be played in an HTML5 player or another error related to the HTML5 player has occurred.",100:"The video requested was not found. This error occurs when a video has been removed (for any reason) or has been marked as private.",101:"The owner of the requested video does not allow it to be played in embedded players.",150:"The owner of the requested video does not allow it to be played in embedded players."}[i]||"An unknown error occurred";e.media.error={code:i,message:s},triggerEvent.call(e,e.media,"error")}},onPlaybackRateChange(t){const i=t.target;e.media.playbackRate=i.getPlaybackRate(),triggerEvent.call(e,e.media,"ratechange")},onReady(i){if(is.function(e.media.play))return;const s=i.target;youtube.getTitle.call(e,n),e.media.play=()=>{assurePlaybackState.call(e,!0),s.playVideo()},e.media.pause=()=>{assurePlaybackState.call(e,!1),s.pauseVideo()},e.media.stop=()=>{s.stopVideo()},e.media.duration=s.getDuration(),e.media.paused=!0,e.media.currentTime=0,Object.defineProperty(e.media,"currentTime",{get:()=>Number(s.getCurrentTime()),set(t){e.paused&&!e.embed.hasPlayed&&e.embed.mute(),e.media.seeking=!0,triggerEvent.call(e,e.media,"seeking"),s.seekTo(t)}}),Object.defineProperty(e.media,"playbackRate",{get:()=>s.getPlaybackRate(),set(e){s.setPlaybackRate(e)}});let{volume:r}=e.config;Object.defineProperty(e.media,"volume",{get:()=>r,set(t){r=t,s.setVolume(100*r),triggerEvent.call(e,e.media,"volumechange")}});let{muted:a}=e.config;Object.defineProperty(e.media,"muted",{get:()=>a,set(t){const i=is.boolean(t)?t:a;a=i,s[i?"mute":"unMute"](),s.setVolume(100*r),triggerEvent.call(e,e.media,"volumechange")}}),Object.defineProperty(e.media,"currentSrc",{get:()=>s.getVideoUrl()}),Object.defineProperty(e.media,"ended",{get:()=>e.currentTime===e.duration});const o=s.getAvailablePlaybackRates();e.options.speed=o.filter(t=>e.config.speed.options.includes(t)),e.supported.ui&&t.customControls&&e.media.setAttribute("tabindex",-1),triggerEvent.call(e,e.media,"timeupdate"),triggerEvent.call(e,e.media,"durationchange"),clearInterval(e.timers.buffering),e.timers.buffering=setInterval(()=>{e.media.buffered=s.getVideoLoadedFraction(),(null===e.media.lastBuffered||e.media.lastBufferedui.build.call(e),50)},onStateChange(i){const s=i.target;clearInterval(e.timers.playing);switch(e.media.seeking&&[1,2].includes(i.data)&&(e.media.seeking=!1,triggerEvent.call(e,e.media,"seeked")),i.data){case-1:triggerEvent.call(e,e.media,"timeupdate"),e.media.buffered=s.getVideoLoadedFraction(),triggerEvent.call(e,e.media,"progress");break;case 0:assurePlaybackState.call(e,!1),e.media.loop?(s.stopVideo(),s.playVideo()):triggerEvent.call(e,e.media,"ended");break;case 1:t.customControls&&!e.config.autoplay&&e.media.paused&&!e.embed.hasPlayed?e.media.pause():(assurePlaybackState.call(e,!0),triggerEvent.call(e,e.media,"playing"),e.timers.playing=setInterval(()=>{triggerEvent.call(e,e.media,"timeupdate")},50),e.media.duration!==s.getDuration()&&(e.media.duration=s.getDuration(),triggerEvent.call(e,e.media,"durationchange")));break;case 2:e.muted||e.embed.unMute(),assurePlaybackState.call(e,!1);break;case 3:triggerEvent.call(e,e.media,"waiting")}triggerEvent.call(e,e.elements.container,"statechange",!1,{code:i.data})}}})}},media={setup(){this.media?(toggleClass(this.elements.container,this.config.classNames.type.replace("{0}",this.type),!0),toggleClass(this.elements.container,this.config.classNames.provider.replace("{0}",this.provider),!0),this.isEmbed&&toggleClass(this.elements.container,this.config.classNames.type.replace("{0}","video"),!0),this.isVideo&&(this.elements.wrapper=createElement("div",{class:this.config.classNames.video}),wrap(this.media,this.elements.wrapper),this.elements.poster=createElement("div",{class:this.config.classNames.poster}),this.elements.wrapper.appendChild(this.elements.poster)),this.isHTML5?html5.setup.call(this):this.isYouTube?youtube.setup.call(this):this.isVimeo&&vimeo.setup.call(this)):this.debug.warn("No media element found!")}};function destroy(e){e.manager&&e.manager.destroy(),e.elements.displayContainer&&e.elements.displayContainer.destroy(),e.elements.container.remove()}class Ads{constructor(e){_defineProperty$1(this,"load",()=>{this.enabled&&(is.object(window.google)&&is.object(window.google.ima)?this.ready():loadScript(this.player.config.urls.googleIMA.sdk).then(()=>{this.ready()}).catch(()=>{this.trigger("error",new Error("Google IMA SDK failed to load"))}))}),_defineProperty$1(this,"ready",()=>{this.enabled||destroy(this),this.startSafetyTimer(12e3,"ready()"),this.managerPromise.then(()=>{this.clearSafetyTimer("onAdsManagerLoaded()")}),this.listeners(),this.setupIMA()}),_defineProperty$1(this,"setupIMA",()=>{this.elements.container=createElement("div",{class:this.player.config.classNames.ads}),this.player.elements.container.appendChild(this.elements.container),google.ima.settings.setVpaidMode(google.ima.ImaSdkSettings.VpaidMode.ENABLED),google.ima.settings.setLocale(this.player.config.ads.language),google.ima.settings.setDisableCustomPlaybackForIOS10Plus(this.player.config.playsinline),this.elements.displayContainer=new google.ima.AdDisplayContainer(this.elements.container,this.player.media),this.loader=new google.ima.AdsLoader(this.elements.displayContainer),this.loader.addEventListener(google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,e=>this.onAdsManagerLoaded(e),!1),this.loader.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,e=>this.onAdError(e),!1),this.requestAds()}),_defineProperty$1(this,"requestAds",()=>{const{container:e}=this.player.elements;try{const t=new google.ima.AdsRequest;t.adTagUrl=this.tagUrl,t.linearAdSlotWidth=e.offsetWidth,t.linearAdSlotHeight=e.offsetHeight,t.nonLinearAdSlotWidth=e.offsetWidth,t.nonLinearAdSlotHeight=e.offsetHeight,t.forceNonLinearFullSlot=!1,t.setAdWillPlayMuted(!this.player.muted),this.loader.requestAds(t)}catch(e){this.onAdError(e)}}),_defineProperty$1(this,"pollCountdown",(e=!1)=>{if(!e)return clearInterval(this.countdownTimer),void this.elements.container.removeAttribute("data-badge-text");this.countdownTimer=setInterval(()=>{const e=formatTime(Math.max(this.manager.getRemainingTime(),0)),t=`${i18n.get("advertisement",this.player.config)} - ${e}`;this.elements.container.setAttribute("data-badge-text",t)},100)}),_defineProperty$1(this,"onAdsManagerLoaded",e=>{if(!this.enabled)return;const t=new google.ima.AdsRenderingSettings;t.restoreCustomPlaybackStateOnAdBreakComplete=!0,t.enablePreloading=!0,this.manager=e.getAdsManager(this.player,t),this.cuePoints=this.manager.getCuePoints(),this.manager.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,e=>this.onAdError(e)),Object.keys(google.ima.AdEvent.Type).forEach(e=>{this.manager.addEventListener(google.ima.AdEvent.Type[e],e=>this.onAdEvent(e))}),this.trigger("loaded")}),_defineProperty$1(this,"addCuePoints",()=>{is.empty(this.cuePoints)||this.cuePoints.forEach(e=>{if(0!==e&&-1!==e&&e{const{container:t}=this.player.elements,i=e.getAd(),s=e.getAdData();switch((e=>{triggerEvent.call(this.player,this.player.media,`ads${e.replace(/_/g,"").toLowerCase()}`)})(e.type),e.type){case google.ima.AdEvent.Type.LOADED:this.trigger("loaded"),this.pollCountdown(!0),i.isLinear()||(i.width=t.offsetWidth,i.height=t.offsetHeight);break;case google.ima.AdEvent.Type.STARTED:this.manager.setVolume(this.player.volume);break;case google.ima.AdEvent.Type.ALL_ADS_COMPLETED:this.player.ended?this.loadAds():this.loader.contentComplete();break;case google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED:this.pauseContent();break;case google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED:this.pollCountdown(),this.resumeContent();break;case google.ima.AdEvent.Type.LOG:s.adError&&this.player.debug.warn(`Non-fatal ad error: ${s.adError.getMessage()}`)}}),_defineProperty$1(this,"onAdError",e=>{this.cancel(),this.player.debug.warn("Ads error",e)}),_defineProperty$1(this,"listeners",()=>{const{container:e}=this.player.elements;let t;this.player.on("canplay",()=>{this.addCuePoints()}),this.player.on("ended",()=>{this.loader.contentComplete()}),this.player.on("timeupdate",()=>{t=this.player.currentTime}),this.player.on("seeked",()=>{const e=this.player.currentTime;is.empty(this.cuePoints)||this.cuePoints.forEach((i,s)=>{t{this.manager&&this.manager.resize(e.offsetWidth,e.offsetHeight,google.ima.ViewMode.NORMAL)})}),_defineProperty$1(this,"play",()=>{const{container:e}=this.player.elements;this.managerPromise||this.resumeContent(),this.managerPromise.then(()=>{this.manager.setVolume(this.player.volume),this.elements.displayContainer.initialize();try{this.initialized||(this.manager.init(e.offsetWidth,e.offsetHeight,google.ima.ViewMode.NORMAL),this.manager.start()),this.initialized=!0}catch(e){this.onAdError(e)}}).catch(()=>{})}),_defineProperty$1(this,"resumeContent",()=>{this.elements.container.style.zIndex="",this.playing=!1,silencePromise(this.player.media.play())}),_defineProperty$1(this,"pauseContent",()=>{this.elements.container.style.zIndex=3,this.playing=!0,this.player.media.pause()}),_defineProperty$1(this,"cancel",()=>{this.initialized&&this.resumeContent(),this.trigger("error"),this.loadAds()}),_defineProperty$1(this,"loadAds",()=>{this.managerPromise.then(()=>{this.manager&&this.manager.destroy(),this.managerPromise=new Promise(e=>{this.on("loaded",e),this.player.debug.log(this.manager)}),this.initialized=!1,this.requestAds()}).catch(()=>{})}),_defineProperty$1(this,"trigger",(e,...t)=>{const i=this.events[e];is.array(i)&&i.forEach(e=>{is.function(e)&&e.apply(this,t)})}),_defineProperty$1(this,"on",(e,t)=>(is.array(this.events[e])||(this.events[e]=[]),this.events[e].push(t),this)),_defineProperty$1(this,"startSafetyTimer",(e,t)=>{this.player.debug.log(`Safety timer invoked from: ${t}`),this.safetyTimer=setTimeout(()=>{this.cancel(),this.clearSafetyTimer("startSafetyTimer()")},e)}),_defineProperty$1(this,"clearSafetyTimer",e=>{is.nullOrUndefined(this.safetyTimer)||(this.player.debug.log(`Safety timer cleared from: ${e}`),clearTimeout(this.safetyTimer),this.safetyTimer=null)}),this.player=e,this.config=e.config.ads,this.playing=!1,this.initialized=!1,this.elements={container:null,displayContainer:null},this.manager=null,this.loader=null,this.cuePoints=null,this.events={},this.safetyTimer=null,this.countdownTimer=null,this.managerPromise=new Promise((e,t)=>{this.on("loaded",e),this.on("error",t)}),this.load()}get enabled(){const{config:e}=this;return this.player.isHTML5&&this.player.isVideo&&e.enabled&&(!is.empty(e.publisherId)||is.url(e.tagUrl))}get tagUrl(){const{config:e}=this;if(is.url(e.tagUrl))return e.tagUrl;return`https://go.aniview.com/api/adserver6/vast/?${buildUrlParams({AV_PUBLISHERID:"58c25bb0073ef448b1087ad6",AV_CHANNELID:"5a0458dc28a06145e4519d21",AV_URL:window.location.hostname,cb:Date.now(),AV_WIDTH:640,AV_HEIGHT:480,AV_CDIM2:e.publisherId})}`}}function clamp(e=0,t=0,i=255){return Math.min(Math.max(e,t),i)}function parseVtt(e){const t=[];return e.split(/\r\n\r\n|\n\n|\r\r/).forEach(e=>{const i={};e.split(/\r\n|\n|\r/).forEach(e=>{if(is.number(i.startTime)){if(!is.empty(e.trim())&&is.empty(i.text)){const t=e.trim().split("#xywh=");[i.text]=t,t[1]&&([i.x,i.y,i.w,i.h]=t[1].split(","))}}else{const t=e.match(/(\d{2})?:?(\d{2}):(\d{2}).(\d{2,3})( ?--> ?)(\d{2})?:?(\d{2}):(\d{2}).(\d{2,3})/);t&&(i.startTime=60*Number(t[1]||0)*60+60*Number(t[2])+Number(t[3])+Number(`0.${t[4]}`),i.endTime=60*Number(t[6]||0)*60+60*Number(t[7])+Number(t[8])+Number(`0.${t[9]}`))}}),i.text&&t.push(i)}),t}function fitRatio(e,t){const i={};return e>t.width/t.height?(i.width=t.width,i.height=1/e*t.width):(i.height=t.height,i.width=e*t.height),i}class PreviewThumbnails{constructor(e){_defineProperty$1(this,"load",()=>{this.player.elements.display.seekTooltip&&(this.player.elements.display.seekTooltip.hidden=this.enabled),this.enabled&&this.getThumbnails().then(()=>{this.enabled&&(this.render(),this.determineContainerAutoSizing(),this.listeners(),this.loaded=!0)})}),_defineProperty$1(this,"getThumbnails",()=>new Promise(e=>{const{src:t}=this.player.config.previewThumbnails;if(is.empty(t))throw new Error("Missing previewThumbnails.src config attribute");const i=()=>{this.thumbnails.sort((e,t)=>e.height-t.height),this.player.debug.log("Preview thumbnails",this.thumbnails),e()};if(is.function(t))t(e=>{this.thumbnails=e,i()});else{const e=(is.string(t)?[t]:t).map(e=>this.getThumbnail(e));Promise.all(e).then(i)}})),_defineProperty$1(this,"getThumbnail",e=>new Promise(t=>{fetch(e,void 0,this.player.config.previewThumbnails.withCredentials).then(i=>{const s={frames:parseVtt(i),height:null,urlPrefix:""};s.frames[0].text.startsWith("/")||s.frames[0].text.startsWith("http://")||s.frames[0].text.startsWith("https://")||(s.urlPrefix=e.substring(0,e.lastIndexOf("/")+1));const n=new Image;n.onload=()=>{s.height=n.naturalHeight,s.width=n.naturalWidth,this.thumbnails.push(s),t()},n.src=s.urlPrefix+s.frames[0].text})})),_defineProperty$1(this,"startMove",e=>{if(this.loaded&&is.event(e)&&["touchmove","mousemove"].includes(e.type)&&this.player.media.duration){if("touchmove"===e.type)this.seekTime=this.player.media.duration*(this.player.elements.inputs.seek.value/100);else{var t,i;const s=this.player.elements.progress.getBoundingClientRect(),n=100/s.width*(e.pageX-s.left);this.seekTime=this.player.media.duration*(n/100),this.seekTime<0&&(this.seekTime=0),this.seekTime>this.player.media.duration-1&&(this.seekTime=this.player.media.duration-1),this.mousePosX=e.pageX,this.elements.thumb.time.textContent=formatTime(this.seekTime);const r=null===(t=this.player.config.markers)||void 0===t||null===(i=t.points)||void 0===i?void 0:i.find(({time:e})=>e===Math.round(this.seekTime));r&&this.elements.thumb.time.insertAdjacentHTML("afterbegin",`${r.label} `)}this.showImageAtCurrentTime()}}),_defineProperty$1(this,"endMove",()=>{this.toggleThumbContainer(!1,!0)}),_defineProperty$1(this,"startScrubbing",e=>{(is.nullOrUndefined(e.button)||!1===e.button||0===e.button)&&(this.mouseDown=!0,this.player.media.duration&&(this.toggleScrubbingContainer(!0),this.toggleThumbContainer(!1,!0),this.showImageAtCurrentTime()))}),_defineProperty$1(this,"endScrubbing",()=>{this.mouseDown=!1,Math.ceil(this.lastTime)===Math.ceil(this.player.media.currentTime)?this.toggleScrubbingContainer(!1):once.call(this.player,this.player.media,"timeupdate",()=>{this.mouseDown||this.toggleScrubbingContainer(!1)})}),_defineProperty$1(this,"listeners",()=>{this.player.on("play",()=>{this.toggleThumbContainer(!1,!0)}),this.player.on("seeked",()=>{this.toggleThumbContainer(!1)}),this.player.on("timeupdate",()=>{this.lastTime=this.player.media.currentTime})}),_defineProperty$1(this,"render",()=>{this.elements.thumb.container=createElement("div",{class:this.player.config.classNames.previewThumbnails.thumbContainer}),this.elements.thumb.imageContainer=createElement("div",{class:this.player.config.classNames.previewThumbnails.imageContainer}),this.elements.thumb.container.appendChild(this.elements.thumb.imageContainer);const e=createElement("div",{class:this.player.config.classNames.previewThumbnails.timeContainer});this.elements.thumb.time=createElement("span",{},"00:00"),e.appendChild(this.elements.thumb.time),this.elements.thumb.imageContainer.appendChild(e),is.element(this.player.elements.progress)&&this.player.elements.progress.appendChild(this.elements.thumb.container),this.elements.scrubbing.container=createElement("div",{class:this.player.config.classNames.previewThumbnails.scrubbingContainer}),this.player.elements.wrapper.appendChild(this.elements.scrubbing.container)}),_defineProperty$1(this,"destroy",()=>{this.elements.thumb.container&&this.elements.thumb.container.remove(),this.elements.scrubbing.container&&this.elements.scrubbing.container.remove()}),_defineProperty$1(this,"showImageAtCurrentTime",()=>{this.mouseDown?this.setScrubbingContainerSize():this.setThumbContainerSizeAndPos();const e=this.thumbnails[0].frames.findIndex(e=>this.seekTime>=e.startTime&&this.seekTime<=e.endTime),t=e>=0;let i=0;this.mouseDown||this.toggleThumbContainer(t),t&&(this.thumbnails.forEach((t,s)=>{this.loadedImages.includes(t.frames[e].text)&&(i=s)}),e!==this.showingThumb&&(this.showingThumb=e,this.loadImage(i)))}),_defineProperty$1(this,"loadImage",(e=0)=>{const t=this.showingThumb,i=this.thumbnails[e],{urlPrefix:s}=i,n=i.frames[t],r=i.frames[t].text,a=s+r;if(this.currentImageElement&&this.currentImageElement.dataset.filename===r)this.showImage(this.currentImageElement,n,e,t,r,!1),this.currentImageElement.dataset.index=t,this.removeOldImages(this.currentImageElement);else{this.loadingImage&&this.usingSprites&&(this.loadingImage.onload=null);const i=new Image;i.src=a,i.dataset.index=t,i.dataset.filename=r,this.showingThumbFilename=r,this.player.debug.log(`Loading image: ${a}`),i.onload=()=>this.showImage(i,n,e,t,r,!0),this.loadingImage=i,this.removeOldImages(i)}}),_defineProperty$1(this,"showImage",(e,t,i,s,n,r=!0)=>{this.player.debug.log(`Showing thumb: ${n}. num: ${s}. qual: ${i}. newimg: ${r}`),this.setImageSizeAndOffset(e,t),r&&(this.currentImageContainer.appendChild(e),this.currentImageElement=e,this.loadedImages.includes(n)||this.loadedImages.push(n)),this.preloadNearby(s,!0).then(this.preloadNearby(s,!1)).then(this.getHigherQuality(i,e,t,n))}),_defineProperty$1(this,"removeOldImages",e=>{Array.from(this.currentImageContainer.children).forEach(t=>{if("img"!==t.tagName.toLowerCase())return;const i=this.usingSprites?500:1e3;if(t.dataset.index!==e.dataset.index&&!t.dataset.deleting){t.dataset.deleting=!0;const{currentImageContainer:e}=this;setTimeout(()=>{e.removeChild(t),this.player.debug.log(`Removing thumb: ${t.dataset.filename}`)},i)}})}),_defineProperty$1(this,"preloadNearby",(e,t=!0)=>new Promise(i=>{setTimeout(()=>{const s=this.thumbnails[0].frames[e].text;if(this.showingThumbFilename===s){let n;n=t?this.thumbnails[0].frames.slice(e):this.thumbnails[0].frames.slice(0,e).reverse();let r=!1;n.forEach(e=>{const t=e.text;if(t!==s&&!this.loadedImages.includes(t)){r=!0,this.player.debug.log(`Preloading thumb filename: ${t}`);const{urlPrefix:e}=this.thumbnails[0],s=e+t,n=new Image;n.src=s,n.onload=()=>{this.player.debug.log(`Preloaded thumb filename: ${t}`),this.loadedImages.includes(t)||this.loadedImages.push(t),i()}}}),r||i()}},300)})),_defineProperty$1(this,"getHigherQuality",(e,t,i,s)=>{if(e{this.showingThumbFilename===s&&(this.player.debug.log(`Showing higher quality thumb for: ${s}`),this.loadImage(e+1))},300)}}),_defineProperty$1(this,"toggleThumbContainer",(e=!1,t=!1)=>{const i=this.player.config.classNames.previewThumbnails.thumbContainerShown;this.elements.thumb.container.classList.toggle(i,e),!e&&t&&(this.showingThumb=null,this.showingThumbFilename=null)}),_defineProperty$1(this,"toggleScrubbingContainer",(e=!1)=>{const t=this.player.config.classNames.previewThumbnails.scrubbingContainerShown;this.elements.scrubbing.container.classList.toggle(t,e),e||(this.showingThumb=null,this.showingThumbFilename=null)}),_defineProperty$1(this,"determineContainerAutoSizing",()=>{(this.elements.thumb.imageContainer.clientHeight>20||this.elements.thumb.imageContainer.clientWidth>20)&&(this.sizeSpecifiedInCSS=!0)}),_defineProperty$1(this,"setThumbContainerSizeAndPos",()=>{const{imageContainer:e}=this.elements.thumb;if(this.sizeSpecifiedInCSS){if(e.clientHeight>20&&e.clientWidth<20){const t=Math.floor(e.clientHeight*this.thumbAspectRatio);e.style.width=`${t}px`}else if(e.clientHeight<20&&e.clientWidth>20){const t=Math.floor(e.clientWidth/this.thumbAspectRatio);e.style.height=`${t}px`}}else{const t=Math.floor(this.thumbContainerHeight*this.thumbAspectRatio);e.style.height=`${this.thumbContainerHeight}px`,e.style.width=`${t}px`}this.setThumbContainerPos()}),_defineProperty$1(this,"setThumbContainerPos",()=>{const e=this.player.elements.progress.getBoundingClientRect(),t=this.player.elements.container.getBoundingClientRect(),{container:i}=this.elements.thumb,s=t.left-e.left+10,n=t.right-e.left-i.clientWidth-10,r=this.mousePosX-e.left-i.clientWidth/2,a=clamp(r,s,n);i.style.left=`${a}px`,i.style.setProperty("--preview-arrow-offset",r-a+"px")}),_defineProperty$1(this,"setScrubbingContainerSize",()=>{const{width:e,height:t}=fitRatio(this.thumbAspectRatio,{width:this.player.media.clientWidth,height:this.player.media.clientHeight});this.elements.scrubbing.container.style.width=`${e}px`,this.elements.scrubbing.container.style.height=`${t}px`}),_defineProperty$1(this,"setImageSizeAndOffset",(e,t)=>{if(!this.usingSprites)return;const i=this.thumbContainerHeight/t.h;e.style.height=e.naturalHeight*i+"px",e.style.width=e.naturalWidth*i+"px",e.style.left=`-${t.x*i}px`,e.style.top=`-${t.y*i}px`}),this.player=e,this.thumbnails=[],this.loaded=!1,this.lastMouseMoveTime=Date.now(),this.mouseDown=!1,this.loadedImages=[],this.elements={thumb:{},scrubbing:{}},this.load()}get enabled(){return this.player.isHTML5&&this.player.isVideo&&this.player.config.previewThumbnails.enabled}get currentImageContainer(){return this.mouseDown?this.elements.scrubbing.container:this.elements.thumb.imageContainer}get usingSprites(){return Object.keys(this.thumbnails[0].frames[0]).includes("w")}get thumbAspectRatio(){return this.usingSprites?this.thumbnails[0].frames[0].w/this.thumbnails[0].frames[0].h:this.thumbnails[0].width/this.thumbnails[0].height}get thumbContainerHeight(){if(this.mouseDown){const{height:e}=fitRatio(this.thumbAspectRatio,{width:this.player.media.clientWidth,height:this.player.media.clientHeight});return e}return this.sizeSpecifiedInCSS?this.elements.thumb.imageContainer.clientHeight:Math.floor(this.player.media.clientWidth/this.thumbAspectRatio/4)}get currentImageElement(){return this.mouseDown?this.currentScrubbingImageElement:this.currentThumbnailImageElement}set currentImageElement(e){this.mouseDown?this.currentScrubbingImageElement=e:this.currentThumbnailImageElement=e}}const source={insertElements(e,t){is.string(t)?insertElement(e,this.media,{src:t}):is.array(t)&&t.forEach(t=>{insertElement(e,this.media,t)})},change(e){getDeep(e,"sources.length")?(html5.cancelRequests.call(this),this.destroy(()=>{this.options.quality=[],removeElement(this.media),this.media=null,is.element(this.elements.container)&&this.elements.container.removeAttribute("class");const{sources:t,type:i}=e,[{provider:s=providers.html5,src:n}]=t,r="html5"===s?i:"div",a="html5"===s?{}:{src:n};Object.assign(this,{provider:s,type:i,supported:support.check(i,s,this.config.playsinline),media:createElement(r,a)}),this.elements.container.appendChild(this.media),is.boolean(e.autoplay)&&(this.config.autoplay=e.autoplay),this.isHTML5&&(this.config.crossorigin&&this.media.setAttribute("crossorigin",""),this.config.autoplay&&this.media.setAttribute("autoplay",""),is.empty(e.poster)||(this.poster=e.poster),this.config.loop.active&&this.media.setAttribute("loop",""),this.config.muted&&this.media.setAttribute("muted",""),this.config.playsinline&&this.media.setAttribute("playsinline","")),ui.addStyleHook.call(this),this.isHTML5&&source.insertElements.call(this,"source",t),this.config.title=e.title,media.setup.call(this),this.isHTML5&&Object.keys(e).includes("tracks")&&source.insertElements.call(this,"track",e.tracks),(this.isHTML5||this.isEmbed&&!this.supported.ui)&&ui.build.call(this),this.isHTML5&&this.media.load(),is.empty(e.previewThumbnails)||(Object.assign(this.config.previewThumbnails,e.previewThumbnails),this.previewThumbnails&&this.previewThumbnails.loaded&&(this.previewThumbnails.destroy(),this.previewThumbnails=null),this.config.previewThumbnails.enabled&&(this.previewThumbnails=new PreviewThumbnails(this))),this.fullscreen.update()},!0)):this.debug.warn("Invalid source format")}};class Plyr{constructor(e,t){if(_defineProperty$1(this,"play",()=>is.function(this.media.play)?(this.ads&&this.ads.enabled&&this.ads.managerPromise.then(()=>this.ads.play()).catch(()=>silencePromise(this.media.play())),this.media.play()):null),_defineProperty$1(this,"pause",()=>this.playing&&is.function(this.media.pause)?this.media.pause():null),_defineProperty$1(this,"togglePlay",e=>(is.boolean(e)?e:!this.playing)?this.play():this.pause()),_defineProperty$1(this,"stop",()=>{this.isHTML5?(this.pause(),this.restart()):is.function(this.media.stop)&&this.media.stop()}),_defineProperty$1(this,"restart",()=>{this.currentTime=0}),_defineProperty$1(this,"rewind",e=>{this.currentTime-=is.number(e)?e:this.config.seekTime}),_defineProperty$1(this,"forward",e=>{this.currentTime+=is.number(e)?e:this.config.seekTime}),_defineProperty$1(this,"increaseVolume",e=>{const t=this.media.muted?0:this.volume;this.volume=t+(is.number(e)?e:0)}),_defineProperty$1(this,"decreaseVolume",e=>{this.increaseVolume(-e)}),_defineProperty$1(this,"airplay",()=>{support.airplay&&this.media.webkitShowPlaybackTargetPicker()}),_defineProperty$1(this,"toggleControls",e=>{if(this.supported.ui&&!this.isAudio){const t=hasClass(this.elements.container,this.config.classNames.hideControls),i=void 0===e?void 0:!e,s=toggleClass(this.elements.container,this.config.classNames.hideControls,i);if(s&&is.array(this.config.controls)&&this.config.controls.includes("settings")&&!is.empty(this.config.settings)&&controls.toggleMenu.call(this,!1),s!==t){const e=s?"controlshidden":"controlsshown";triggerEvent.call(this,this.media,e)}return!s}return!1}),_defineProperty$1(this,"on",(e,t)=>{on.call(this,this.elements.container,e,t)}),_defineProperty$1(this,"once",(e,t)=>{once.call(this,this.elements.container,e,t)}),_defineProperty$1(this,"off",(e,t)=>{off(this.elements.container,e,t)}),_defineProperty$1(this,"destroy",(e,t=!1)=>{if(!this.ready)return;const i=()=>{document.body.style.overflow="",this.embed=null,t?(Object.keys(this.elements).length&&(removeElement(this.elements.buttons.play),removeElement(this.elements.captions),removeElement(this.elements.controls),removeElement(this.elements.wrapper),this.elements.buttons.play=null,this.elements.captions=null,this.elements.controls=null,this.elements.wrapper=null),is.function(e)&&e()):(unbindListeners.call(this),html5.cancelRequests.call(this),replaceElement(this.elements.original,this.elements.container),triggerEvent.call(this,this.elements.original,"destroyed",!0),is.function(e)&&e.call(this.elements.original),this.ready=!1,setTimeout(()=>{this.elements=null,this.media=null},200))};this.stop(),clearTimeout(this.timers.loading),clearTimeout(this.timers.controls),clearTimeout(this.timers.resized),this.isHTML5?(ui.toggleNativeControls.call(this,!0),i()):this.isYouTube?(clearInterval(this.timers.buffering),clearInterval(this.timers.playing),null!==this.embed&&is.function(this.embed.destroy)&&this.embed.destroy(),i()):this.isVimeo&&(null!==this.embed&&this.embed.unload().then(i),setTimeout(i,200))}),_defineProperty$1(this,"supports",e=>support.mime.call(this,e)),this.timers={},this.ready=!1,this.loading=!1,this.failed=!1,this.touch=support.touch,this.media=e,is.string(this.media)&&(this.media=document.querySelectorAll(this.media)),(window.jQuery&&this.media instanceof jQuery||is.nodeList(this.media)||is.array(this.media))&&(this.media=this.media[0]),this.config=extend({},defaults,Plyr.defaults,t||{},(()=>{try{return JSON.parse(this.media.getAttribute("data-plyr-config"))}catch{return{}}})()),this.elements={container:null,fullscreen:null,captions:null,buttons:{},display:{},progress:{},inputs:{},settings:{popup:null,menu:null,panels:{},buttons:{}}},this.captions={active:null,currentTrack:-1,meta:new WeakMap},this.fullscreen={active:!1},this.options={speed:[],quality:[]},this.debug=new Console(this.config.debug),this.debug.log("Config",this.config),this.debug.log("Support",support),is.nullOrUndefined(this.media)||!is.element(this.media))return void this.debug.error("Setup failed: no suitable element passed");if(this.media.plyr)return void this.debug.warn("Target already setup");if(!this.config.enabled)return void this.debug.error("Setup failed: disabled by config");if(!support.check().api)return void this.debug.error("Setup failed: no support");const i=this.media.cloneNode(!0);i.autoplay=!1,this.elements.original=i;const s=this.media.tagName.toLowerCase();let n=null,r=null;switch(s){case"div":if(n=this.media.querySelector("iframe"),is.element(n)){if(r=parseUrl(n.getAttribute("src")),this.provider=getProviderByUrl(r.toString()),this.elements.container=this.media,this.media=n,this.elements.container.className="",r.search.length){const e=["1","true"];e.includes(r.searchParams.get("autoplay"))&&(this.config.autoplay=!0),e.includes(r.searchParams.get("loop"))&&(this.config.loop.active=!0),this.isYouTube?(this.config.playsinline=e.includes(r.searchParams.get("playsinline")),this.config.youtube.hl=r.searchParams.get("hl")):this.config.playsinline=!0}}else this.provider=this.media.getAttribute(this.config.attributes.embed.provider),this.media.removeAttribute(this.config.attributes.embed.provider);if(is.empty(this.provider)||!Object.values(providers).includes(this.provider))return void this.debug.error("Setup failed: Invalid provider");this.type=types.video;break;case"video":case"audio":this.type=s,this.provider=providers.html5,this.media.hasAttribute("crossorigin")&&(this.config.crossorigin=!0),this.media.hasAttribute("autoplay")&&(this.config.autoplay=!0),(this.media.hasAttribute("playsinline")||this.media.hasAttribute("webkit-playsinline"))&&(this.config.playsinline=!0),this.media.hasAttribute("muted")&&(this.config.muted=!0),this.media.hasAttribute("loop")&&(this.config.loop.active=!0);break;default:return void this.debug.error("Setup failed: unsupported type")}this.supported=support.check(this.type,this.provider),this.supported.api?(this.eventListeners=[],this.listeners=new Listeners(this),this.storage=new Storage(this),this.media.plyr=this,is.element(this.elements.container)||(this.elements.container=createElement("div"),wrap(this.media,this.elements.container)),ui.migrateStyles.call(this),ui.addStyleHook.call(this),media.setup.call(this),this.config.debug&&on.call(this,this.elements.container,this.config.events.join(" "),e=>{this.debug.log(`event: ${e.type}`)}),this.fullscreen=new Fullscreen(this),(this.isHTML5||this.isEmbed&&!this.supported.ui)&&ui.build.call(this),this.listeners.container(),this.listeners.global(),this.config.ads.enabled&&(this.ads=new Ads(this)),this.isHTML5&&this.config.autoplay&&this.once("canplay",()=>silencePromise(this.play())),this.lastSeekTime=0,this.config.previewThumbnails.enabled&&(this.previewThumbnails=new PreviewThumbnails(this))):this.debug.error("Setup failed: no support")}get isHTML5(){return this.provider===providers.html5}get isEmbed(){return this.isYouTube||this.isVimeo}get isYouTube(){return this.provider===providers.youtube}get isVimeo(){return this.provider===providers.vimeo}get isVideo(){return this.type===types.video}get isAudio(){return this.type===types.audio}get playing(){return Boolean(this.ready&&!this.paused&&!this.ended)}get paused(){return Boolean(this.media.paused)}get stopped(){return Boolean(this.paused&&0===this.currentTime)}get ended(){return Boolean(this.media.ended)}set currentTime(e){if(!this.duration)return;const t=is.number(e)&&e>0;this.media.currentTime=t?Math.min(e,this.duration):0,this.debug.log(`Seeking to ${this.currentTime} seconds`)}get currentTime(){return Number(this.media.currentTime)}get buffered(){const{buffered:e}=this.media;return is.number(e)?e:e&&e.length&&this.duration>0?e.end(0)/this.duration:0}get seeking(){return Boolean(this.media.seeking)}get duration(){const e=Number.parseFloat(this.config.duration),t=(this.media||{}).duration,i=is.number(t)&&t!==1/0?t:0;return e||i}set volume(e){let t=e;is.string(t)&&(t=Number(t)),is.number(t)||(t=this.storage.get("volume")),is.number(t)||({volume:t}=this.config),t>1&&(t=1),t<0&&(t=0),this.config.volume=t,this.media.volume=t,!is.empty(e)&&this.muted&&t>0&&(this.muted=!1)}get volume(){return Number(this.media.volume)}set muted(e){let t=e;is.boolean(t)||(t=this.storage.get("muted")),is.boolean(t)||(t=this.config.muted),this.config.muted=t,this.media.muted=t}get muted(){return Boolean(this.media.muted)}get hasAudio(){return!this.isHTML5||(!!this.isAudio||(Boolean(this.media.mozHasAudio)||Boolean(this.media.webkitAudioDecodedByteCount)||Boolean(this.media.audioTracks&&this.media.audioTracks.length)))}set speed(e){let t=null;is.number(e)&&(t=e),is.number(t)||(t=this.storage.get("speed")),is.number(t)||(t=this.config.speed.selected);const{minimumSpeed:i,maximumSpeed:s}=this;t=clamp(t,i,s),this.config.speed.selected=t,setTimeout(()=>{this.media&&(this.media.playbackRate=t)},0)}get speed(){return Number(this.media.playbackRate)}get minimumSpeed(){return this.isYouTube?Math.min(...this.options.speed):this.isVimeo?.5:.0625}get maximumSpeed(){return this.isYouTube?Math.max(...this.options.speed):this.isVimeo?2:16}set quality(e){const t=this.config.quality,i=this.options.quality;if(!i.length)return;let s=[!is.empty(e)&&Number(e),this.storage.get("quality"),t.selected,t.default].find(is.number),n=!0;if(!i.includes(s)){const e=closest(i,s);this.debug.warn(`Unsupported quality option: ${s}, using ${e} instead`),s=e,n=!1}t.selected=s,this.media.quality=s,n&&this.storage.set({quality:s})}get quality(){return this.media.quality}set loop(e){const t=is.boolean(e)?e:this.config.loop.active;this.config.loop.active=t,this.media.loop=t}get loop(){return Boolean(this.media.loop)}set source(e){source.change.call(this,e)}get source(){return this.media.currentSrc}get download(){const{download:e}=this.config.urls;return is.url(e)?e:this.source}set download(e){is.url(e)&&(this.config.urls.download=e,controls.setDownloadUrl.call(this))}set poster(e){this.isVideo?ui.setPoster.call(this,e,!1).catch(()=>{}):this.debug.warn("Poster can only be set for video")}get poster(){return this.isVideo?this.media.getAttribute("poster")||this.media.getAttribute("data-poster"):null}get ratio(){if(!this.isVideo)return null;const e=reduceAspectRatio(getAspectRatio.call(this));return is.array(e)?e.join(":"):e}set ratio(e){this.isVideo?is.string(e)&&validateAspectRatio(e)?(this.config.ratio=reduceAspectRatio(e),setAspectRatio.call(this)):this.debug.error(`Invalid aspect ratio specified (${e})`):this.debug.warn("Aspect ratio can only be set for video")}set autoplay(e){this.config.autoplay=is.boolean(e)?e:this.config.autoplay}get autoplay(){return Boolean(this.config.autoplay)}toggleCaptions(e){captions.toggle.call(this,e,!1)}set currentTrack(e){captions.set.call(this,e,!1),captions.setup.call(this)}get currentTrack(){const{toggled:e,currentTrack:t}=this.captions;return e?t:-1}set language(e){captions.setLanguage.call(this,e,!1)}get language(){return(captions.getCurrentTrack.call(this)||{}).language}set pip(e){if(!support.pip)return;const t=is.boolean(e)?e:!this.pip;is.function(this.media.webkitSetPresentationMode)&&this.media.webkitSetPresentationMode(t?pip.active:pip.inactive),is.function(this.media.requestPictureInPicture)&&(!this.pip&&t?this.media.requestPictureInPicture():this.pip&&!t&&document.exitPictureInPicture())}get pip(){return support.pip?is.empty(this.media.webkitPresentationMode)?this.media===document.pictureInPictureElement:this.media.webkitPresentationMode===pip.active:null}setPreviewThumbnails(e){this.previewThumbnails&&this.previewThumbnails.loaded&&(this.previewThumbnails.destroy(),this.previewThumbnails=null),Object.assign(this.config.previewThumbnails,e),this.config.previewThumbnails.enabled&&(this.previewThumbnails=new PreviewThumbnails(this))}static supported(e,t){return support.check(e,t)}static loadSprite(e,t){return loadSprite(e,t)}static setup(e,t={}){let i=null;return is.string(e)?i=Array.from(document.querySelectorAll(e)):is.nodeList(e)?i=Array.from(e):is.array(e)&&(i=e.filter(is.element)),is.empty(i)?null:i.map(e=>new Plyr(e,t))}}Plyr.defaults=cloneDeep(defaults);export{Plyr as default};
\ No newline at end of file
diff --git a/site/vendor/plyr/plyr.svg b/site/vendor/plyr/plyr.svg
new file mode 100644
index 0000000..105ac42
--- /dev/null
+++ b/site/vendor/plyr/plyr.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/site/video/poster.jpg b/site/video/poster.jpg
new file mode 100644
index 0000000..263a917
Binary files /dev/null and b/site/video/poster.jpg differ
diff --git a/site/video/thumb.jpg b/site/video/thumb.jpg
new file mode 100644
index 0000000..3134b7a
Binary files /dev/null and b/site/video/thumb.jpg differ
diff --git a/video/README.md b/video/README.md
new file mode 100644
index 0000000..72e006b
--- /dev/null
+++ b/video/README.md
@@ -0,0 +1,68 @@
+# Lookup film
+
+An 88-second product film for Lookup, built with [Remotion](https://www.remotion.dev). It uses the visual language of the homepage hero: the particle globe, aurora, starfield and horizon arc. Those are drawn by the site's own renderers (`site/globe.js`, `site/aurora.js`, `site/sky.js`), stepped one frame at a time.
+
+The story: a church search fills a form → the same widget works in any app → it's one script tag → someone fixes a detail → the fix flows back to Here's My Church → every app gets better data.
+
+## Run it
+
+```bash
+pnpm install
+pnpm video # Remotion Studio: scrub the timeline at localhost:3000
+pnpm --filter lookup-video stills 9.5 23.2 57.6 # review stills (seconds) → video/out/stills/
+pnpm --filter lookup-video score # re-synthesize the score → public/audio/, src/audio-manifest.json
+pnpm video:render # → video/out/lookup-film.mp4 (1920×1080, 60 fps, −14 LUFS)
+SCALE=0.5 pnpm video:render # quick half-size draft
+```
+
+A full render takes about 20 minutes on an M-series Mac. Renders go to `video/out/`, which is gitignored.
+
+## How it's put together
+
+- **`src/timeline.ts`** holds every beat, in seconds. Scenes animate between these times, and `scripts/score.ts` places sounds on the same times. To retime the film, change this file and re-run `score`.
+- **`src/world.ts`** is the hero camera: where the globe sits, which way it faces, and how lit each layer is over time. `project()` mirrors globe.js's projection, so pixels can fly to Dallas exactly.
+- **`src/hero/`** wraps the site renderers.
+- **`src/pixels/`** holds the film's transitions:
+ - `Dither`: reveals and dissolves through the globe's 4×4 Bayer dither, with a lilac front where the cells turn over.
+ - `PixelCanvas`: particles that morph from one place to another.
+- **`src/ui/`** holds display-only copies of the product, built from the real tokens:
+ - the `` widget, from `packages/sdk/src/element.ts`;
+ - the Kinship window, from `site/index.html` and `site.css`;
+ - the share-fixes panel;
+ - the code panel.
+
+ All copy is imported from `packages/sdk/src/strings.ts`, so it matches the widget. The code is highlighted once by `scripts/highlight.mjs` with the site's `lookup-dark` Shiki theme.
+- **`src/scenes/`** has one file per act:
+ - `Opening` (1–3)
+ - `Search` (3–5)
+ - `Form` (5–8)
+ - `Loop` (9–10)
+ - `Outro` (11, plus the captions)
+
+The demo church, Grace Community Church at 1420 Elm St, Dallas, is fictional. It uses a 555 number and matches the site's own mockups.
+
+## Sound
+
+`scripts/score.ts` synthesizes everything from code: a D-major pad that changes chord at each act, and in-key interface sounds (keys, plucks, chimes, glitter). It also writes code-made stand-ins for the larger effects.
+
+To use recorded effects instead, for example the ElevenLabs takes:
+
+1. Save each file under these names in `public/sfx/`:
+
+ | File (`.wav` or `.mp3`) | Plays at |
+ |---|---|
+ | `swell` | 0:00, the opening |
+ | `rim-shimmer` | the horizon rim drawing |
+ | `whoosh-fly` | the fly-in to Dallas |
+ | `pixel-scatter` | the first pixel scatter, the headline dissolve, the fill burst |
+ | `soft-impact` | the fix landing in Dallas |
+ | `whoosh-pullback` | the pull-back to the whole globe |
+ | `closing-shimmer` | under the Lookup mark |
+
+2. Run `pnpm --filter lookup-video score`. Any effect with a file present drops its stand-in, and the file plays on its cue instead.
+3. Re-render.
+
+## Licenses
+
+- Google Sans Flex and Geist Mono (in `public/fonts/`) are SIL Open Font License.
+- Remotion is free for individuals and companies of up to three people. Larger teams need a [company license](https://www.remotion.dev/license).
diff --git a/video/package.json b/video/package.json
new file mode 100644
index 0000000..0c045af
--- /dev/null
+++ b/video/package.json
@@ -0,0 +1,29 @@
+{
+ "name": "lookup-video",
+ "private": true,
+ "type": "module",
+ "description": "Lookup's product film: an 88-second Remotion composition in the site hero's visual language.",
+ "scripts": {
+ "studio": "remotion studio",
+ "score": "node scripts/score.ts",
+ "highlight": "node scripts/highlight.mjs",
+ "still": "remotion still LookupFilm",
+ "render": "node scripts/render.mjs",
+ "typecheck": "tsc --noEmit",
+ "stills": "node scripts/stills.mjs"
+ },
+ "dependencies": {
+ "@remotion/cli": "4.0.539",
+ "@remotion/fonts": "4.0.539",
+ "react": "19.3.1",
+ "react-dom": "19.3.1",
+ "remotion": "4.0.539",
+ "@remotion/bundler": "4.0.539",
+ "@remotion/renderer": "4.0.539"
+ },
+ "devDependencies": {
+ "@types/react": "19.3.0",
+ "shiki": "3.4.2",
+ "typescript": "^5.6.0"
+ }
+}
diff --git a/video/public/fonts/GeistMono-latin.woff2 b/video/public/fonts/GeistMono-latin.woff2
new file mode 100644
index 0000000..cf24126
Binary files /dev/null and b/video/public/fonts/GeistMono-latin.woff2 differ
diff --git a/video/public/fonts/GoogleSansFlex-latin-ext.woff2 b/video/public/fonts/GoogleSansFlex-latin-ext.woff2
new file mode 100644
index 0000000..a25e2df
Binary files /dev/null and b/video/public/fonts/GoogleSansFlex-latin-ext.woff2 differ
diff --git a/video/public/fonts/GoogleSansFlex-latin.woff2 b/video/public/fonts/GoogleSansFlex-latin.woff2
new file mode 100644
index 0000000..2eac012
Binary files /dev/null and b/video/public/fonts/GoogleSansFlex-latin.woff2 differ
diff --git a/video/public/sfx/closing-shimmer.mp3 b/video/public/sfx/closing-shimmer.mp3
new file mode 100644
index 0000000..a3946c3
Binary files /dev/null and b/video/public/sfx/closing-shimmer.mp3 differ
diff --git a/video/public/sfx/pixel-scatter.mp3 b/video/public/sfx/pixel-scatter.mp3
new file mode 100644
index 0000000..a394d92
Binary files /dev/null and b/video/public/sfx/pixel-scatter.mp3 differ
diff --git a/video/public/sfx/rim-shimmer.mp3 b/video/public/sfx/rim-shimmer.mp3
new file mode 100644
index 0000000..9fd35f9
Binary files /dev/null and b/video/public/sfx/rim-shimmer.mp3 differ
diff --git a/video/public/sfx/soft-impact.mp3 b/video/public/sfx/soft-impact.mp3
new file mode 100644
index 0000000..a81542a
Binary files /dev/null and b/video/public/sfx/soft-impact.mp3 differ
diff --git a/video/public/sfx/swell.mp3 b/video/public/sfx/swell.mp3
new file mode 100644
index 0000000..7d183ba
Binary files /dev/null and b/video/public/sfx/swell.mp3 differ
diff --git a/video/public/sfx/whoosh-fly.mp3 b/video/public/sfx/whoosh-fly.mp3
new file mode 100644
index 0000000..d372ec6
Binary files /dev/null and b/video/public/sfx/whoosh-fly.mp3 differ
diff --git a/video/public/sfx/whoosh-pullback.mp3 b/video/public/sfx/whoosh-pullback.mp3
new file mode 100644
index 0000000..01e525c
Binary files /dev/null and b/video/public/sfx/whoosh-pullback.mp3 differ
diff --git a/video/remotion.config.ts b/video/remotion.config.ts
new file mode 100644
index 0000000..a66141b
--- /dev/null
+++ b/video/remotion.config.ts
@@ -0,0 +1,11 @@
+// Remotion CLI settings for the Lookup film. The aurora is a WebGL shader, so headless Chrome needs a
+// GL backend; ANGLE uses the GPU on macOS.
+import { Config } from "@remotion/cli/config";
+
+Config.setChromiumOpenGlRenderer("angle");
+Config.setVideoImageFormat("png");
+Config.setPixelFormat("yuv420p");
+Config.setCodec("h264");
+Config.setCrf(14);
+Config.setConcurrency(6);
+Config.setEntryPoint("src/index.ts");
diff --git a/video/scripts/highlight.mjs b/video/scripts/highlight.mjs
new file mode 100644
index 0000000..12c33bf
--- /dev/null
+++ b/video/scripts/highlight.mjs
@@ -0,0 +1,23 @@
+// Highlights the quickstart snippet with Shiki and the site's own lookup-dark theme, once, into
+// tokens the film's code panel types out. Run: pnpm --filter lookup-video highlight
+import { readFileSync, writeFileSync } from "node:fs";
+import { createHighlighter } from "shiki";
+
+// docs/quickstart.md's form, with the script tag split so it fits the panel.
+export const CODE = `
+
+`;
+
+const themes = JSON.parse(readFileSync(new URL("../../scripts/shiki-lookup.json", import.meta.url), "utf8"));
+const hl = await createHighlighter({ themes: [themes.dark], langs: ["html"] });
+const lines = hl.codeToTokensBase(CODE, { lang: "html", theme: themes.dark.name })
+ .map((line) => line.map((t) => ({ c: t.content, f: t.color })));
+writeFileSync(new URL("../src/ui/code-tokens.json", import.meta.url), JSON.stringify({ bg: themes.dark.colors["editor.background"], lines }, null, 0) + "\n");
+console.log(`highlighted ${lines.length} lines`);
diff --git a/video/scripts/render.mjs b/video/scripts/render.mjs
new file mode 100644
index 0000000..5cb8621
--- /dev/null
+++ b/video/scripts/render.mjs
@@ -0,0 +1,41 @@
+// Renders the film at 2× (3840×2160) so text and specks are supersampled, brings it to YouTube
+// loudness (−14 LUFS, −1.5 dBTP) with a two-pass loudnorm, then downscales a crisp 1080p copy.
+// node scripts/render.mjs → out/lookup-film-4k.mp4 and out/lookup-film.mp4 (1080p, 60 fps)
+// SCALE=0.5 node scripts/render.mjs → a quicker half-size draft
+import { execFileSync, spawnSync } from "node:child_process";
+import { mkdirSync } from "node:fs";
+import path from "node:path";
+import { bundle } from "@remotion/bundler";
+import { renderMedia, selectComposition } from "@remotion/renderer";
+
+const root = path.resolve(import.meta.dirname, "..");
+const scale = Number(process.env.SCALE ?? 2);
+const name = scale === 2 ? "lookup-film-4k" : `lookup-film-${Math.round(1080 * scale)}p`;
+mkdirSync(path.join(root, "out"), { recursive: true });
+const raw = path.join(root, `out/${name}-raw.mp4`);
+const final = path.join(root, `out/${name}.mp4`);
+
+const serveUrl = await bundle({ entryPoint: path.join(root, "src/index.ts"), publicDir: path.join(root, "public") });
+const chromiumOptions = { gl: "angle" };
+const composition = await selectComposition({ serveUrl, id: "LookupFilm", chromiumOptions });
+let last = -1;
+await renderMedia({
+ serveUrl, composition, chromiumOptions, scale, codec: "h264", crf: 14, pixelFormat: "yuv420p", imageFormat: "png",
+ audioCodec: "aac", audioBitrate: "320k", concurrency: Number(process.env.CONCURRENCY ?? 6), outputLocation: raw,
+ onProgress: ({ progress }) => { const p = Math.floor(progress * 20); if (p !== last) { last = p; console.log(`render ${Math.round(progress * 100)}%`); } },
+});
+
+// Two-pass loudness normalization; the picture is copied untouched. loudnorm prints its JSON to stderr.
+const measure = spawnSync("ffmpeg", ["-hide_banner", "-nostats", "-i", raw, "-af", "loudnorm=I=-14:TP=-1.5:LRA=11:print_format=json", "-f", "null", "-"], { encoding: "utf8" });
+const j = JSON.parse(measure.stderr.match(/\{[^{}]*"input_i"[^{}]*\}/)[0]);
+const af = `loudnorm=I=-14:TP=-1.5:LRA=11:measured_I=${j.input_i}:measured_TP=${j.input_tp}:measured_LRA=${j.input_lra}:measured_thresh=${j.input_thresh}:offset=${j.target_offset}:linear=true,aresample=48000`;
+execFileSync("ffmpeg", ["-hide_banner", "-loglevel", "error", "-y", "-i", raw, "-c:v", "copy", "-af", af, "-c:a", "aac", "-b:a", "320k", "-movflags", "+faststart", final], { stdio: "inherit" });
+console.log(final);
+
+// The 1080p delivery: a Lanczos downscale of the 4K master, so UI text stays sharp.
+if (scale === 2) {
+ const hd = path.join(root, "out/lookup-film.mp4");
+ execFileSync("ffmpeg", ["-hide_banner", "-loglevel", "error", "-y", "-i", final, "-vf", "scale=1920:1080:flags=lanczos", "-c:v", "libx264", "-preset", "slow",
+ "-crf", "14", "-pix_fmt", "yuv420p", "-c:a", "copy", "-movflags", "+faststart", hd], { stdio: "inherit" });
+ console.log(hd);
+}
diff --git a/video/scripts/score.ts b/video/scripts/score.ts
new file mode 100644
index 0000000..24a9839
--- /dev/null
+++ b/video/scripts/score.ts
@@ -0,0 +1,512 @@
+// The film's score and sound design, synthesized from src/timeline.ts so every sound lands on its
+// frame. No dependencies: oscillators, filters and a small feedback-delay reverb, written to WAV.
+//
+// pad.wav slow D-major pad: chords change on scene boundaries, swells under the loop and the outro
+// ui.wav in-key interface sounds (keys, plucks, chimes) and code-made stand-ins for the effects
+//
+// If a recorded effect exists in public/sfx/.(wav|mp3) (for example an ElevenLabs take), its
+// stand-in is left out of ui.wav and the take is placed on its cue instead. The manifest that tells
+// the film what to play is written to src/audio-manifest.json.
+//
+// Run: node scripts/score.ts
+
+import { existsSync, mkdirSync, writeFileSync } from "node:fs";
+import path from "node:path";
+import { cues as storyCues, OUT_SECONDS, SCENE as STORY_SCENE, T as STORY_T, toOut, type Cue } from "../src/timeline.ts";
+
+// The timeline is written in story time; the film plays it through a pacing warp. Sound lives in film
+// time, so every beat is mapped through it here (gaps such as keyGap are durations and stay as they are).
+const DURATIONS = new Set(["keyGap", "fieldGap"]);
+const T = Object.fromEntries(Object.entries(STORY_T).map(([k, v]) => [k, DURATIONS.has(k) ? v : toOut(v)])) as typeof STORY_T;
+const SCENE = Object.fromEntries(Object.entries(STORY_SCENE).map(([k, v]) => [k, toOut(v)])) as typeof STORY_SCENE;
+const SECONDS = OUT_SECONDS;
+const cues = (): Cue[] => storyCues().map((c) => ({ ...c, at: toOut(c.at) }));
+
+const SR = 48000;
+const LEN = Math.ceil((SECONDS + 1) * SR);
+const root = path.resolve(import.meta.dirname, "..");
+
+// ── Small DSP kit ──
+
+let seed = 0x2f6e2b1;
+const rand = () => { seed ^= seed << 13; seed ^= seed >>> 17; seed ^= seed << 5; return ((seed >>> 0) / 4294967296); };
+const noise = () => rand() * 2 - 1;
+const midi = (m: number) => 440 * Math.pow(2, (m - 69) / 12);
+const clamp = (x: number, a = 0, b = 1) => Math.min(b, Math.max(a, x));
+const smooth = (k: number) => k * k * (3 - 2 * k);
+
+class Stereo {
+ L = new Float32Array(LEN);
+ R = new Float32Array(LEN);
+ add(i: number, v: number, pan = 0) {
+ if (i < 0 || i >= LEN) return;
+ const a = (pan + 1) * Math.PI / 4;
+ this.L[i] += v * Math.cos(a);
+ this.R[i] += v * Math.sin(a);
+ }
+}
+
+/** RBJ biquad, coefficients set per call to `set`. */
+class Biquad {
+ b0 = 1; b1 = 0; b2 = 0; a1 = 0; a2 = 0; x1 = 0; x2 = 0; y1 = 0; y2 = 0;
+ set(type: "lp" | "hp" | "bp", f: number, q = 0.707) {
+ const w = 2 * Math.PI * Math.min(f, SR * 0.45) / SR, c = Math.cos(w), s = Math.sin(w), al = s / (2 * q);
+ let b0, b1, b2;
+ if (type === "lp") { b0 = (1 - c) / 2; b1 = 1 - c; b2 = (1 - c) / 2; }
+ else if (type === "hp") { b0 = (1 + c) / 2; b1 = -(1 + c); b2 = (1 + c) / 2; }
+ else { b0 = al; b1 = 0; b2 = -al; }
+ const a0 = 1 + al;
+ this.b0 = b0 / a0; this.b1 = b1 / a0; this.b2 = b2 / a0; this.a1 = (-2 * c) / a0; this.a2 = (1 - al) / a0;
+ return this;
+ }
+ run(x: number) {
+ const y = this.b0 * x + this.b1 * this.x1 + this.b2 * this.x2 - this.a1 * this.y1 - this.a2 * this.y2;
+ this.x2 = this.x1; this.x1 = x; this.y2 = this.y1; this.y1 = y;
+ return y;
+ }
+}
+
+/** An 8-line feedback delay network: a soft, dark hall. */
+function reverb(src: Stereo, seconds: number, damp: number, mix: number): Stereo {
+ const out = new Stereo();
+ const lens = [1931, 2213, 2647, 3011, 3389, 3853, 4271, 4789].map((n) => Math.round(n * 1.15));
+ const g = Math.pow(10, (-3 * (lens.reduce((a, b) => a + b) / lens.length / SR)) / seconds);
+ const bufs = lens.map((n) => new Float32Array(n));
+ const idx = new Array(8).fill(0);
+ const lp = new Array(8).fill(0);
+ const pre = new Float32Array(Math.round(0.03 * SR));
+ let pi = 0;
+ for (let i = 0; i < LEN; i++) {
+ const inL = pre[pi], inR = pre[(pi + 7) % pre.length];
+ pre[pi] = (src.L[i] + src.R[i]) * 0.5;
+ pi = (pi + 1) % pre.length;
+ const o = bufs.map((b, k) => b[idx[k]]);
+ // Hadamard-style mix.
+ const s = o.reduce((a, b) => a + b, 0) * 0.25;
+ let L = 0, R = 0;
+ for (let k = 0; k < 8; k++) {
+ lp[k] = lp[k] + (o[k] - lp[k]) * damp;
+ const fb = (lp[k] - s * 0.5) * g;
+ bufs[k][idx[k]] = fb + (k % 2 ? inR : inL) * 0.35;
+ idx[k] = (idx[k] + 1) % bufs[k].length;
+ if (k % 2) R += o[k]; else L += o[k];
+ }
+ out.L[i] = src.L[i] * (1 - mix) + L * 0.25 * mix;
+ out.R[i] = src.R[i] * (1 - mix) + R * 0.25 * mix;
+ }
+ return out;
+}
+
+// ── The pad ──
+
+const CHORDS: { at: number; notes: number[] }[] = [
+ { at: 0, notes: [38, 45] }, // D drone, before anything is named
+ { at: SCENE.everyChurch, notes: [38, 50, 57, 64, 66, 69] }, // D(add9)
+ { at: SCENE.find, notes: [35, 47, 54, 57, 61, 62] }, // Bm9
+ { at: SCENE.fill - 0.6, notes: [31, 43, 50, 54, 59, 61] }, // Gmaj7#11
+ { at: SCENE.oneTag, notes: [28, 40, 47, 50, 54, 55] }, // Em9
+ { at: SCENE.fix, notes: [33, 45, 52, 59, 62] }, // Asus4(add9)
+ { at: SCENE.source, notes: [31, 43, 50, 57, 59, 66] }, // Gmaj9
+ { at: SCENE.better, notes: [33, 45, 52, 59, 61, 64, 71] }, // A(add9), lifting
+ { at: T.mark - 0.05, notes: [26, 38, 45, 50, 54, 57, 64, 66, 69] }, // D(add9), home
+];
+
+function pad(): Stereo {
+ const out = new Stereo();
+ const XF = 1.6; // crossfade between chords, seconds
+ CHORDS.forEach((ch, ci) => {
+ const start = ch.at - (ci ? XF / 2 : 0);
+ const end = (CHORDS[ci + 1]?.at ?? SECONDS + 1) + XF / 2;
+ ch.notes.forEach((m0, ni) => {
+ // Roots sit in the low register, never the sub: they should be felt on headphones, heard on laptops.
+ const m = m0 < 38 ? m0 + 12 : m0;
+ const f = midi(m);
+ const low = m < 48 && ni === 0;
+ const voices = low ? [0] : [-7, 7];
+ const pan = low ? 0 : ((ni % 2 ? 1 : -1) * (0.25 + 0.1 * ni)) % 0.8;
+ const filt = new Biquad();
+ const ph = voices.map(() => rand());
+ const s0 = Math.max(0, Math.floor(start * SR)), s1 = Math.min(LEN, Math.floor(end * SR));
+ // Stark and spacious: upper voices sit back, very high ones are only a glint.
+ const amp = (low ? 0.075 : 0.034) * (m > 66 ? 0.55 : 1);
+ for (let i = s0; i < s1; i++) {
+ const t = i / SR;
+ if ((i & 63) === 0) {
+ const lfo = 0.5 + 0.5 * Math.sin(t * 0.31 + ni * 1.7);
+ filt.set("lp", low ? 360 : 420 + 780 * lfo + 520 * levelAt(t), 0.55);
+ }
+ let v = 0;
+ voices.forEach((cents, k) => {
+ ph[k] += (f * Math.pow(2, cents / 1200)) / SR;
+ ph[k] -= Math.floor(ph[k]);
+ // Sines and soft triangles, no saw edge: it should feel like air, not a synth.
+ v += low ? Math.sin(2 * Math.PI * ph[k]) : Math.sin(2 * Math.PI * ph[k]) * 0.7 + (1 - 4 * Math.abs(ph[k] - 0.5)) * 0.3;
+ });
+ const fin = clamp((t - start) / (ci ? XF : 4.5)), fout = clamp((end - t) / XF);
+ const env = smooth(fin) * smooth(fout);
+ out.add(i, filt.run(v) * amp * env * levelAt(t) * duck(t), pan);
+ }
+ });
+ });
+ space(out);
+ return reverb(out, 9, 0.15, 0.68);
+}
+
+/**
+ * The room itself: a low sub drone on D, and wind, a band of noise drifting slowly in pitch and across
+ * the stereo field. Loudest over open space (the globe), barely there under the interface.
+ */
+function space(out: Stereo) {
+ const bpL = new Biquad(), bpR = new Biquad(), lp = new Biquad().set("lp", 120, 0.7);
+ let ph = 0;
+ const air = (t: number) => {
+ const keys: [number, number][] = [[0, 0], [1.2, 0.9], [SCENE.type, 0.75], [SCENE.fill, 0.35], [SCENE.source, 0.45], [T.pullBack, 1], [SCENE.outro, 0.85], [SECONDS, 0]];
+ for (let i = 1; i < keys.length; i++) if (t <= keys[i][0]) {
+ const [t0, v0] = keys[i - 1], [t1, v1] = keys[i];
+ return v0 + (v1 - v0) * smooth(clamp((t - t0) / (t1 - t0)));
+ }
+ return 0;
+ };
+ for (let i = 0; i < LEN; i++) {
+ const t = i / SR;
+ if ((i & 63) === 0) {
+ const w = 0.5 + 0.5 * Math.sin(t * 0.11), w2 = 0.5 + 0.5 * Math.sin(t * 0.07 + 2);
+ bpL.set("bp", 260 + 900 * w, 2.4);
+ bpR.set("bp", 300 + 820 * w2, 2.4);
+ }
+ const a = air(t);
+ ph += 36.7 / SR;
+ const sub = (Math.sin(2 * Math.PI * ph) * 0.8 + lp.run(noise()) * 0.6) * 0.05 * a;
+ out.L[i] += bpL.run(noise()) * 0.05 * a + sub;
+ out.R[i] += bpR.run(noise()) * 0.05 * a + sub;
+ }
+}
+
+/** The pad's level over the film: quiet under the UI scenes, wide open in the loop and the outro. */
+function levelAt(t: number) {
+ const keys: [number, number][] = [[0, 0.0], [1.4, 0.45], [SCENE.everyChurch, 0.7], [SCENE.find, 0.66], [SCENE.type + 1, 0.6], [SCENE.fill, 0.64], [SCENE.oneTag, 0.55],
+ [SCENE.fix, 0.6], [SCENE.source, 0.7], [T.pullBack + 0.8, 0.85], [SCENE.better, 0.95], [SCENE.outro, 1], [T.fadeOut + 0.2, 0.9], [SECONDS + 0.5, 0]];
+ for (let i = 1; i < keys.length; i++) if (t <= keys[i][0]) {
+ const [t0, v0] = keys[i - 1], [t1, v1] = keys[i];
+ return v0 + (v1 - v0) * smooth((t - t0) / (t1 - t0));
+ }
+ return 0;
+}
+
+/** Duck the pad a little under the big moments so they land. */
+function duck(t: number) {
+ let d = 1;
+ for (const at of [T.impact, T.enter, T.live]) {
+ const k = t - at;
+ if (k > -0.05 && k < 1.4) d = Math.min(d, 1 - 0.35 * Math.exp(-Math.max(0, k) * 2.2));
+ }
+ return d;
+}
+
+// ── Interface sounds and stand-ins ──
+
+const PENTA = [62, 64, 66, 69, 71]; // D E F# A B
+
+/** A bell-like pluck: a few inharmonic partials, fast attack, exponential decay. */
+function bell(out: Stereo, at: number, m: number, gain: number, decay = 0.9, pan = 0, partials = [[1, 1], [2.0, 0.28], [2.76, 0.16], [5.4, 0.05]]) {
+ const f = midi(m), s0 = Math.floor(at * SR), n = Math.floor((decay * 5) * SR);
+ for (let j = 0; j < n; j++) {
+ const t = j / SR;
+ const att = clamp(t / 0.004);
+ let v = 0;
+ for (const [mul, a] of partials) v += Math.sin(2 * Math.PI * f * mul * t) * a * Math.exp(-t / (decay / Math.sqrt(mul)));
+ out.add(s0 + j, v * gain * att, pan);
+ }
+}
+
+/** A soft key click: a band of noise and a tiny body. */
+function click(out: Stereo, at: number, gain: number, pan = 0, tone = 4200) {
+ const bp = new Biquad().set("bp", tone * (0.9 + rand() * 0.2), 1.4);
+ const s0 = Math.floor(at * SR), n = Math.floor(0.05 * SR);
+ for (let j = 0; j < n; j++) {
+ const t = j / SR;
+ const v = bp.run(noise()) * Math.exp(-t / 0.004) * 1.6 + Math.sin(2 * Math.PI * 1650 * t) * Math.exp(-t / 0.012) * 0.25;
+ out.add(s0 + j, v * gain, pan);
+ }
+}
+
+/** Filtered noise swept through a band: whooshes and swishes. */
+function whoosh(out: Stereo, at: number, dur: number, f0: number, f1: number, gain: number, panFrom = 0, panTo = 0, q = 0.8) {
+ const bp = new Biquad(), lp = new Biquad();
+ const s0 = Math.floor(at * SR), n = Math.floor(dur * SR);
+ for (let j = 0; j < n; j++) {
+ const k = j / n;
+ if ((j & 31) === 0) { bp.set("bp", f0 * Math.pow(f1 / f0, smooth(k)), q); lp.set("lp", 6000, 0.7); }
+ const env = Math.sin(Math.PI * Math.pow(k, 0.8)) ** 1.6;
+ out.add(s0 + j, lp.run(bp.run(noise())) * env * gain, panFrom + (panTo - panFrom) * k);
+ }
+}
+
+/** A cloud of tiny high blips, for pixels: density per second over a span. */
+function glitter(out: Stereo, at: number, dur: number, perSecond: (k: number) => number, gain: number, octave = 2) {
+ let t = at;
+ while (t < at + dur) {
+ const k = (t - at) / dur;
+ const m = PENTA[Math.floor(rand() * PENTA.length)] + 12 * octave;
+ bell(out, t, m, gain * (0.4 + rand() * 0.6), 0.06 + rand() * 0.08, rand() * 1.6 - 0.8, [[1, 1], [2.0, 0.2]]);
+ t += 1 / Math.max(1, perSecond(k) * 0.55) * (0.5 + rand());
+ }
+}
+
+/** A sine that glides in pitch with a soft envelope. */
+function glide(out: Stereo, at: number, dur: number, f0: number, f1: number, gain: number, pan = 0) {
+ let ph = 0;
+ const s0 = Math.floor(at * SR), n = Math.floor(dur * SR);
+ for (let j = 0; j < n; j++) {
+ const k = j / n;
+ ph += (f0 * Math.pow(f1 / f0, k)) / SR;
+ out.add(s0 + j, Math.sin(2 * Math.PI * ph) * Math.sin(Math.PI * k) ** 2 * gain, pan);
+ }
+}
+
+/** A low, warm thump for the stand-in impact. */
+function thump(out: Stereo, at: number, gain: number) {
+ let ph = 0;
+ const lp = new Biquad().set("lp", 900, 0.7);
+ const s0 = Math.floor(at * SR), n = Math.floor(2.4 * SR);
+ for (let j = 0; j < n; j++) {
+ const t = j / SR;
+ ph += (42 + 58 * Math.exp(-t / 0.09)) / SR;
+ const v = Math.sin(2 * Math.PI * ph) * Math.exp(-t / 0.55) + lp.run(noise()) * Math.exp(-t / 0.05) * 0.35;
+ out.add(s0 + j, v * gain * clamp(t / 0.003));
+ }
+}
+
+/** A slow swell of noise and sub, for the stand-in opening. */
+function swell(out: Stereo, at: number, dur: number, gain: number) {
+ const lp = new Biquad();
+ let ph = 0;
+ const s0 = Math.floor(at * SR), n = Math.floor(dur * SR);
+ for (let j = 0; j < n; j++) {
+ const k = j / n;
+ if ((j & 63) === 0) lp.set("lp", 120 + 900 * k * k, 0.8);
+ ph += (44 + 6 * k) / SR;
+ const env = smooth(clamp(k / 0.8)) * smooth(clamp((1 - k) / 0.2));
+ out.add(s0 + j, (lp.run(noise()) * 0.6 + Math.sin(2 * Math.PI * ph) * 0.7) * env * gain);
+ }
+}
+
+/** A marimba-like pop: a quick pitch drop into a round tone, with a bright overtone that dies fast. */
+function pop(out: Stereo, at: number, m: number, gain: number, pan = 0, decay = 0.32) {
+ const f = midi(m), s0 = Math.floor(at * SR), n = Math.floor(decay * 4 * SR);
+ let ph = 0, ph2 = 0;
+ for (let j = 0; j < n; j++) {
+ const t = j / SR;
+ ph += (f * (1 + 0.5 * Math.exp(-t / 0.008))) / SR;
+ ph2 += (f * 3.99) / SR;
+ const v = Math.sin(2 * Math.PI * ph) * Math.exp(-t / decay) + Math.sin(2 * Math.PI * ph2) * 0.25 * Math.exp(-t / 0.02);
+ out.add(s0 + j, v * gain * clamp(t / 0.002), pan);
+ }
+}
+
+/** Digital crackle: short bursts of coarse, sample-and-held noise, like pixels switching on. */
+function crackle(out: Stereo, at: number, dur: number, perSecond: number, gain: number) {
+ let t = at;
+ const hp = new Biquad().set("hp", 1800, 0.7);
+ while (t < at + dur) {
+ const len = Math.floor((0.004 + rand() * 0.01) * SR), hold = 2 + Math.floor(rand() * 10), pan = rand() * 1.4 - 0.7;
+ let v = 0;
+ const s0 = Math.floor(t * SR);
+ for (let j = 0; j < len; j++) {
+ if (j % hold === 0) v = Math.round(noise() * 3) / 3;
+ out.add(s0 + j, hp.run(v) * gain * (1 - j / len), pan);
+ }
+ t += (1 / perSecond) * (0.4 + rand() * 1.2);
+ }
+}
+
+/** A sonar ping with two echoes: something found, somewhere. */
+function sonar(out: Stereo, at: number, m: number, gain: number, pan = 0) {
+ [[0, 1], [0.19, 0.4], [0.38, 0.16]].forEach(([d, g]) => {
+ const f = midi(m), s0 = Math.floor((at + d) * SR), n = Math.floor(1.2 * SR);
+ let ph = 0;
+ for (let j = 0; j < n; j++) {
+ const t = j / SR;
+ ph += (f * (1 - 0.04 * Math.min(1, t / 0.3))) / SR;
+ out.add(s0 + j, Math.sin(2 * Math.PI * ph) * Math.exp(-t / 0.35) * clamp(t / 0.01) * gain * g, pan * (1 - d));
+ }
+ });
+}
+
+/** A reverse swell: noise and a rising cluster that grow, then stop on the beat. */
+function revSwell(out: Stereo, at: number, dur: number, gain: number) {
+ const bp = new Biquad(), s0 = Math.floor(at * SR), n = Math.floor(dur * SR);
+ const ph = [0, 0, 0];
+ for (let j = 0; j < n; j++) {
+ const k = j / n;
+ if ((j & 31) === 0) bp.set("bp", 600 + 5000 * k * k, 1.2);
+ const env = Math.pow(k, 2.6) * clamp((1 - k) / 0.03);
+ let v = bp.run(noise()) * 0.8;
+ [74, 78, 81].forEach((m, i) => { ph[i] += (midi(m) * (0.98 + 0.04 * k)) / SR; v += Math.sin(2 * Math.PI * ph[i]) * 0.25; });
+ out.add(s0 + j, v * env * gain);
+ }
+}
+
+/** A low, soft thock: the space bar, Enter, a card set down. */
+function thock(out: Stereo, at: number, gain: number, pan = 0, body = 210) {
+ const bp = new Biquad().set("bp", 1300, 1.0), s0 = Math.floor(at * SR), n = Math.floor(0.12 * SR);
+ for (let j = 0; j < n; j++) {
+ const t = j / SR;
+ out.add(s0 + j, (bp.run(noise()) * Math.exp(-t / 0.006) * 1.2 + Math.sin(2 * Math.PI * body * t) * Math.exp(-t / 0.035)) * gain, pan);
+ }
+}
+
+/** A pen stroke: breathy noise whose band wanders like a hand drawing a loop. */
+function pen(out: Stereo, at: number, dur: number, gain: number) {
+ const bp = new Biquad(), s0 = Math.floor(at * SR), n = Math.floor(dur * SR);
+ for (let j = 0; j < n; j++) {
+ const k = j / n;
+ if ((j & 31) === 0) bp.set("bp", 2200 + 1600 * Math.sin(k * Math.PI * 3.2), 2.2);
+ out.add(s0 + j, bp.run(noise()) * Math.sin(Math.PI * k) ** 1.2 * gain, -0.4 + 0.8 * k);
+ }
+}
+
+/** Pan for a screen x position. */
+const panX = (x: number) => clamp((x / 1920) * 2 - 1, -1, 1) * 0.6;
+
+/**
+ * Recorded effects that replace a stand-in when present, and where they play. Gains sit each take a
+ * little under the score: the ElevenLabs takes run 5–12 dB hotter than the bed.
+ */
+const TAKES: { name: string; kind: Cue["kind"]; at: number; gain: number; fadeOut?: number }[] = [
+ { name: "swell", kind: "swell", at: 0, gain: 0.22 },
+ { name: "rim-shimmer", kind: "shimmer", at: T.rimStart - 0.1, gain: 0.32 },
+ { name: "whoosh-fly", kind: "whoosh", at: T.flyStart - 0.3, gain: 0.35 },
+ { name: "pixel-scatter", kind: "scatter", at: T.scatter - 0.05, gain: 0.55 },
+ { name: "pixel-scatter", kind: "scatter", at: T.dissolve, gain: 0.45 },
+ { name: "pixel-scatter", kind: "burst", at: T.burst, gain: 0.4 },
+ { name: "soft-impact", kind: "impact", at: T.impact - 0.05, gain: 0.8 },
+ { name: "whoosh-pullback", kind: "pullBack", at: T.pullBack - 0.2, gain: 0.27 },
+ { name: "closing-shimmer", kind: "tail", at: T.mark + 0.1, gain: 0.24, fadeOut: 1.2 },
+];
+const takeFile = (name: string) => ["wav", "mp3"].map((e) => `sfx/${name}.${e}`).find((f) => existsSync(path.join(root, "public", f)));
+const hasTake = (kind: Cue["kind"]) => TAKES.some((t) => t.kind === kind && takeFile(t.name));
+
+function ui(): Stereo {
+ const out = new Stereo();
+ for (const c of cues()) {
+ const { at } = c;
+ switch (c.kind) {
+ case "swell": if (!hasTake("swell")) swell(out, 0, 5.5, 0.16); break;
+ case "scatter":
+ if (!hasTake("scatter")) glitter(out, at, 2.2, (k) => 70 * (1 - k) + 6, 0.05);
+ bell(out, at, 74, 0.08, 1.4);
+ break;
+ case "shimmer":
+ if (!hasTake("shimmer")) for (let i = 0; i < 9; i++) bell(out, at + i * 0.17, PENTA[i % 5] + 24, 0.045, 0.9, -0.7 + i * 0.17);
+ break;
+ case "sparkle":
+ // The counter: blips that rush, then slow as the number settles.
+ glitter(out, at, T.countEnd - at, (k) => 46 * Math.pow(1 - k, 1.6) + 3, 0.04, 2);
+ bell(out, T.countEnd, 81, 0.05, 1.6, 0.2);
+ break;
+ case "whoosh": if (!hasTake("whoosh")) whoosh(out, at - 0.2, 2.8, 300, 2400, 0.22, -0.4, 0.5); break;
+ case "gather":
+ // Specks from all over the globe pulling into one place: a swell that lands on the box.
+ revSwell(out, at, T.boxIn + 0.25 - at, 0.14);
+ glitter(out, at, T.boxIn + 0.2 - at, (k) => 8 + 70 * k * k, 0.02, 2);
+ break;
+ case "clickIn": click(out, at, 0.16, -0.2, 3600); pop(out, at + 0.01, 74, 0.07, -0.2); break;
+ case "key": click(out, at, c.i === 99 ? 0.08 : 0.085, -0.15 + rand() * 0.3, 2800 + rand() * 1600); break;
+ case "space": thock(out, at, 0.11, 0, 190); break;
+ case "locate": sonar(out, at, 81, 0.07, 0.45); break;
+ case "zoom": glide(out, at, 2.4, 160, 55, 0.07, 0.2); break;
+ case "codeKey": click(out, at, 0.03, 0.35 + rand() * 0.2, 4200); break;
+ case "backspace": click(out, at, 0.12, 0.25, 3000); break;
+ case "rows":
+ // First results tumble in; the place-aware refresh re-sorts; the settled list lands on a soft chord.
+ if (!c.i) RESULTS_N.forEach((_, i) => pop(out, at + 0.05 + i * 0.06, PENTA[i % 5] + 12, 0.045, -0.2 + i * 0.1, 0.18));
+ else if (c.i === 1) RESULTS_N.forEach((_, i) => click(out, at + i * 0.035, 0.05, 0.3 - i * 0.12, 5200));
+ else [62, 66, 69, 76].forEach((m, i) => bell(out, at + i * 0.02, m, 0.03, 1.4, -0.3 + i * 0.2));
+ break;
+ case "select": thock(out, at, 0.14, 0, 240); bell(out, at, 81, 0.08, 1.2, 0); bell(out, at + 0.07, 86, 0.055, 1.4, 0.1); break;
+ case "build": whoosh(out, at, 1.6, 500, 3200, 0.05, -0.3, 0.3, 1.4); crackle(out, at + 0.05, 1.45, 55, 0.05); break;
+ case "burst": if (!hasTake("burst")) glitter(out, at, 1.0, (k) => 60 * (1 - k) + 5, 0.035, 2); glide(out, at, 0.18, 1100, 380, 0.06); break;
+ case "fill": pop(out, at + 0.05, [62, 64, 66, 69, 71, 74, 76][c.i ?? 0], 0.09, -0.3 + (c.i ?? 0) * 0.1, 0.75); break;
+ case "done": [74, 78, 81, 88].forEach((m, i) => bell(out, at + i * 0.04, m, 0.035, 1.6, -0.3 + i * 0.2)); break;
+ case "swipe":
+ // Each look has its own color of sound: teal bright and airy, amber low and warm.
+ if (!c.i) { whoosh(out, at - 0.05, 0.7, 1400, 6000, 0.09, -0.7, 0.7, 1.3); [76, 83].forEach((m, i) => bell(out, at + 0.3 + i * 0.05, m, 0.04, 0.9, 0.4)); }
+ else { whoosh(out, at - 0.05, 0.8, 500, 2200, 0.11, -0.7, 0.7, 0.9); [67, 74].forEach((m, i) => pop(out, at + 0.3 + i * 0.06, m, 0.06, 0.4, 0.5)); }
+ break;
+ case "fan": whoosh(out, at, 1.3, 260, 1500, 0.1, 0, 0, 0.7); [-0.6, 0, 0.6].forEach((p, i) => thock(out, at + 0.35 + i * 0.13, 0.07, p, 160 + i * 40)); break;
+ case "link": glide(out, at, 0.55, 600, 2400, 0.018, 0.3); pop(out, at + 0.5, [81, 83, 86][c.i ?? 0], 0.06, -0.1 * (c.i ?? 0)); break;
+ case "panel": whoosh(out, at, 0.5, 1200, 3000, 0.05, 0, 0, 1.2); bell(out, at + 0.1, 69, 0.045, 0.5); break;
+ case "click": click(out, at, 0.15, 0.1, 2600); click(out, at + 0.075, 0.09, 0.1, 3400); break;
+ case "live": [66, 69, 74].forEach((m, i) => bell(out, at + i * 0.075, m + 12, 0.075, 1.1, -0.2 + i * 0.2)); glitter(out, at + 0.2, 0.6, () => 30, 0.02, 3); break;
+ case "collapse": revSwell(out, at, 0.62, 0.1); break;
+ case "card": pop(out, at, 69, 0.07, 0, 0.5); bell(out, at + 0.04, 76, 0.03, 1.2); break;
+ case "flip": click(out, at, 0.08, 0.1, 3000); click(out, at + 0.08, 0.07, 0.15, 4400); bell(out, at + 0.12, 86, 0.05, 1.0, 0.1); break;
+ case "synced": pop(out, at, [81, 83, 86, 88, 90, 93][(c.i ?? 0) % 6], 0.028, panX([300, 1000, 1700, 260, 1000, 1700][(c.i ?? 0) % 6]), 0.2); break;
+ case "stroke": pen(out, at, 1.3, 0.05); break;
+ case "count": {
+ // The counter rolling up: ticks that start fast and slow to a stop.
+ let tt = at;
+ for (let n = 0; n < 26; n++) { click(out, tt, 0.04, 0.1, 5600); tt += 0.018 + n * n * 0.0011; }
+ break;
+ }
+ case "arc": glide(out, at, 1.45, 1900, 420, 0.03, 0.4); whoosh(out, at, 1.45, 3000, 600, 0.06, -0.2, 0.5, 1.0); break;
+ case "impact":
+ if (!hasTake("impact")) thump(out, at, 0.22);
+ [62, 69, 74, 78].forEach((m, i) => bell(out, at + 0.02 + i * 0.03, m, 0.05, 2.2, -0.3 + i * 0.2));
+ break;
+ case "pullBack": if (!hasTake("pullBack")) whoosh(out, at - 0.2, 3.2, 180, 1200, 0.22, 0.4, -0.4, 0.6); break;
+ case "stream": {
+ // A run of ticks into the globe; a fix that goes live rings bright, one sent for review drops softly into the queue.
+ const i = c.i ?? 0, pan = panX([300, 1000, 1700, 260, 1000, 1700][i % 6]), review = [0, 2, 4].includes(i);
+ for (let j = 0; j < 10; j++) bell(out, at + j * 0.06, PENTA[(j + i) % 5] + 24, 0.014, 0.07, pan, [[1, 1]]);
+ if (review) { sonar(out, at + 0.9, 69, 0.03, 0.6); }
+ else { pop(out, at + 0.9, [74, 78, 81, 83][i % 4], 0.06, pan, 0.3); bell(out, at + 0.92, [86, 90, 93, 95][i % 4], 0.025, 0.8, pan); }
+ break;
+ }
+ case "approve": [0, 1, 2].forEach((i) => { click(out, at + i * 0.16, 0.05, 0.6, 5000); bell(out, at + i * 0.16, 81 + i * 2, 0.04, 0.5, 0.6); }); break;
+ case "brighten": for (let i = 0; i < 16; i++) bell(out, at + i * 0.18, PENTA[i % 5] + 24 + (i > 9 ? 12 : 0), 0.012 + i * 0.0015, 1.2, Math.sin(i) * 0.6); break;
+ case "resolve": [50, 57, 62, 66, 69, 74].forEach((m, i) => bell(out, at + i * 0.09, m + 12, 0.055, 3.2, -0.4 + i * 0.16)); break;
+ case "tail": if (!hasTake("tail")) glitter(out, at, 3, (k) => 20 * (1 - k) + 2, 0.022, 2); break;
+ }
+ }
+ // A long, dark tail on every interface sound: each one rings out into the same night as the pad.
+ return reverb(out, 5.4, 0.24, 0.5);
+}
+const RESULTS_N = [0, 1, 2, 3, 4];
+
+// ── Output ──
+
+function normalize(s: Stereo, peakDb: number) {
+ let peak = 0;
+ for (let i = 0; i < LEN; i++) peak = Math.max(peak, Math.abs(s.L[i]), Math.abs(s.R[i]));
+ const g = peak ? Math.pow(10, peakDb / 20) / peak : 1;
+ for (let i = 0; i < LEN; i++) { s.L[i] *= g; s.R[i] *= g; }
+ return s;
+}
+
+function writeWav(file: string, s: Stereo) {
+ const n = LEN, buf = Buffer.alloc(44 + n * 4);
+ buf.write("RIFF", 0); buf.writeUInt32LE(36 + n * 4, 4); buf.write("WAVE", 8); buf.write("fmt ", 12);
+ buf.writeUInt32LE(16, 16); buf.writeUInt16LE(1, 20); buf.writeUInt16LE(2, 22); buf.writeUInt32LE(SR, 24);
+ buf.writeUInt32LE(SR * 4, 28); buf.writeUInt16LE(4, 32); buf.writeUInt16LE(16, 34); buf.write("data", 36); buf.writeUInt32LE(n * 4, 40);
+ for (let i = 0; i < n; i++) {
+ const d = () => (rand() - rand()) / 32768; // TPDF dither
+ buf.writeInt16LE(Math.round(clamp(s.L[i] + d(), -1, 1) * 32767), 44 + i * 4);
+ buf.writeInt16LE(Math.round(clamp(s.R[i] + d(), -1, 1) * 32767), 46 + i * 4);
+ }
+ writeFileSync(file, buf);
+}
+
+mkdirSync(path.join(root, "public/audio"), { recursive: true });
+const started = Date.now();
+writeWav(path.join(root, "public/audio/pad.wav"), normalize(pad(), -9));
+writeWav(path.join(root, "public/audio/ui.wav"), normalize(ui(), -4));
+
+const clips = [
+ { file: "audio/pad.wav", at: 0, gain: 0.8 },
+ { file: "audio/ui.wav", at: 0, gain: 0.85 },
+ ...TAKES.flatMap((t) => { const f = takeFile(t.name); return f ? [{ file: f, at: t.at, gain: t.gain, fadeOut: t.fadeOut, dur: t.fadeOut ? 4.6 : undefined }] : []; }),
+];
+writeFileSync(path.join(root, "src/audio-manifest.json"), JSON.stringify({ clips }, null, 2) + "\n");
+console.log(`score: pad.wav + ui.wav, ${clips.length - 2} recorded takes, ${((Date.now() - started) / 1000).toFixed(1)}s`);
diff --git a/video/scripts/sheet.sh b/video/scripts/sheet.sh
new file mode 100755
index 0000000..c5356cf
--- /dev/null
+++ b/video/scripts/sheet.sh
@@ -0,0 +1,11 @@
+#!/bin/zsh
+# Tiles review stills 2×2 into contact sheets, in order: scripts/sheet.sh out/sheets a.png b.png ...
+out=$1; shift; mkdir -p $out; n=0
+while (( $# > 0 )); do
+ files=("${@[1,4]}"); shift $(( $# < 4 ? $# : 4 ))
+ while (( ${#files} < 4 )); do files+=("${files[-1]}"); done
+ ffmpeg -loglevel error -y -i $files[1] -i $files[2] -i $files[3] -i $files[4] -filter_complex \
+ "[0]scale=960:540[a];[1]scale=960:540[b];[2]scale=960:540[c];[3]scale=960:540[d];[a][b][c][d]xstack=inputs=4:layout=0_0|w0_0|0_h0|w0_h0" $out/sheet-$n.png
+ echo "$out/sheet-$n.png: ${files[*]:t}"
+ n=$((n+1))
+done
diff --git a/video/scripts/stills.mjs b/video/scripts/stills.mjs
new file mode 100644
index 0000000..9cb632c
--- /dev/null
+++ b/video/scripts/stills.mjs
@@ -0,0 +1,22 @@
+// Renders review stills at the given story times (seconds, as written in timeline.ts) from one bundle,
+// into out/stills/, named by story time.
+// Usage: node scripts/stills.mjs 1 2.5 8.5 ... (defaults to one key frame per scene)
+import { mkdirSync } from "node:fs";
+import path from "node:path";
+import { bundle } from "@remotion/bundler";
+import { renderStill, selectComposition } from "@remotion/renderer";
+import { toOut } from "../src/timeline.ts";
+
+const root = path.resolve(import.meta.dirname, "..");
+const times = process.argv.slice(2).map(Number);
+const at = times.length ? times : [2.6, 9.5, 14.2, 18.4, 23.2, 28.9, 33, 39.2, 43.4, 50.6, 57.6, 60.2, 63.6, 65, 69.5, 76.5, 85];
+const scale = Number(process.env.SCALE ?? 0.5);
+mkdirSync(path.join(root, "out/stills"), { recursive: true });
+const serveUrl = await bundle({ entryPoint: path.join(root, "src/index.ts"), publicDir: path.join(root, "public") });
+const composition = await selectComposition({ serveUrl, id: "LookupFilm", chromiumOptions: { gl: "angle" } });
+for (const s of at) {
+ const frame = Math.min(composition.durationInFrames - 1, Math.round(toOut(s) * composition.fps));
+ const output = path.join(root, `out/stills/s${String(Math.round(s * 100)).padStart(5, "0")}.png`);
+ await renderStill({ serveUrl, composition, frame, output, scale, chromiumOptions: { gl: "angle" }, logLevel: "error" });
+ console.log(output);
+}
diff --git a/video/src/Film.tsx b/video/src/Film.tsx
new file mode 100644
index 0000000..5da16e3
--- /dev/null
+++ b/video/src/Film.tsx
@@ -0,0 +1,61 @@
+// The Lookup film: the hero world underneath, the story's layers on top, the sound alongside.
+
+import { AbsoluteFill } from "remotion";
+import { outCubic, prog, track, useT } from "./ease.ts";
+import { useFonts } from "./fonts.ts";
+import { City } from "./hero/City.tsx";
+import { World } from "./hero/World.tsx";
+import { FirstLight, Headline, PlaceGlow } from "./scenes/Opening.tsx";
+import { FillStream, Gather, PickedRow, resultsAt, SearchLayer } from "./scenes/Search.tsx";
+import { Code, Fan, FormLayer, Pointer } from "./scenes/Form.tsx";
+import { depthBlur } from "./scenes/place.ts";
+import { FixChip, Homecoming, LiveTag, Network } from "./scenes/Loop.tsx";
+import { Captions, FadeOut, Outro } from "./scenes/Outro.tsx";
+import { Soundtrack } from "./Soundtrack.tsx";
+import { SECONDS, T } from "./timeline.ts";
+import { RESULTS } from "./ui/tokens.ts";
+import { camera } from "./world.ts";
+
+export function Film() {
+ const fonts = useFonts();
+ const t = useT();
+ const cam = camera(t);
+ // Result pins on the globe while the popover is open, and the pick's pulse after Enter.
+ const pins = t > T.results && t < T.enter + 1.2 ? resultsAt(t).filter((_, i) => t > T.results + 0.1 + i * 0.06).map(({ lat, lng }) => ({ lat, lng })) : [];
+ const selected = t >= T.enter && t < T.burst + 2 ? { ...RESULTS[0], at: T.enter } : null;
+ const glow = track(t, [[0, 0], [T.localGlow, 0], [T.localGlow + 0.7, 1, outCubic], [T.enter, 0.45], [T.burst + 0.4, 0.45], [T.burst + 1.6, 0],
+ [T.impact - 0.05, 0], [T.impact + 0.12, 1.4, outCubic], [T.impact + 1.6, 0.5], [T.pullBack + 1.2, 0]]);
+ // A slow push on the world, so the background never sits still. UI stays at 1:1 so it stays crisp.
+ const push = 1 + 0.012 * Math.sin((t / SECONDS) * Math.PI);
+ return (
+
+
+ 0.05 ? `blur(${depthBlur(t).toFixed(2)}px)` : undefined }}>
+ T.impact - 0.1 && t < T.pullBack + 1.5 ? "134,239,172" : "167,139,250"} />>} />
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {/* Fade up from black over the first beat. */}
+
+
+ );
+}
+
diff --git a/video/src/Root.tsx b/video/src/Root.tsx
new file mode 100644
index 0000000..3f7ece5
--- /dev/null
+++ b/video/src/Root.tsx
@@ -0,0 +1,7 @@
+import { Composition } from "remotion";
+import { Film } from "./Film.tsx";
+import { DURATION, FPS, HEIGHT, WIDTH } from "./timeline.ts";
+
+export function Root() {
+ return ;
+}
diff --git a/video/src/Soundtrack.tsx b/video/src/Soundtrack.tsx
new file mode 100644
index 0000000..490ac20
--- /dev/null
+++ b/video/src/Soundtrack.tsx
@@ -0,0 +1,26 @@
+// The film's sound: the code-made score stems and the effects, placed on their cues. The list comes
+// from scripts/score.ts, which writes the stems and this manifest together.
+
+import { Audio, Sequence, staticFile } from "remotion";
+import manifest from "./audio-manifest.json";
+import { FPS } from "./timeline.ts";
+
+type Clip = { file: string; at: number; gain: number; fadeIn?: number; fadeOut?: number; dur?: number };
+
+export function Soundtrack() {
+ const clips = (manifest as { clips: Clip[] }).clips;
+ return (
+ <>
+ {clips.map((c, i) => (
+
+ {
+ const s = f / FPS;
+ const fi = c.fadeIn ? Math.min(1, s / c.fadeIn) : 1;
+ const fo = c.fadeOut && c.dur ? Math.min(1, Math.max(0, (c.dur - s) / c.fadeOut)) : 1;
+ return c.gain * fi * fo;
+ }} />
+
+ ))}
+ >
+ );
+}
diff --git a/video/src/audio-manifest.json b/video/src/audio-manifest.json
new file mode 100644
index 0000000..68b7783
--- /dev/null
+++ b/video/src/audio-manifest.json
@@ -0,0 +1,61 @@
+{
+ "clips": [
+ {
+ "file": "audio/pad.wav",
+ "at": 0,
+ "gain": 0.8
+ },
+ {
+ "file": "audio/ui.wav",
+ "at": 0,
+ "gain": 0.85
+ },
+ {
+ "file": "sfx/swell.mp3",
+ "at": 0,
+ "gain": 0.22
+ },
+ {
+ "file": "sfx/rim-shimmer.mp3",
+ "at": 2.6692307692307597,
+ "gain": 0.32
+ },
+ {
+ "file": "sfx/whoosh-fly.mp3",
+ "at": 9.633109233698919,
+ "gain": 0.35
+ },
+ {
+ "file": "sfx/pixel-scatter.mp3",
+ "at": 1.0653846153846116,
+ "gain": 0.55
+ },
+ {
+ "file": "sfx/pixel-scatter.mp3",
+ "at": 6.4341763786275035,
+ "gain": 0.45
+ },
+ {
+ "file": "sfx/pixel-scatter.mp3",
+ "at": 14.873066091118126,
+ "gain": 0.4
+ },
+ {
+ "file": "sfx/soft-impact.mp3",
+ "at": 39.47825268785118,
+ "gain": 0.8
+ },
+ {
+ "file": "sfx/whoosh-pullback.mp3",
+ "at": 40.93558282567386,
+ "gain": 0.27
+ },
+ {
+ "file": "sfx/closing-shimmer.mp3",
+ "at": 52.23922569594623,
+ "gain": 0.24,
+ "fadeOut": 1.2,
+ "dur": 4.6
+ }
+ ]
+}
diff --git a/video/src/ease.ts b/video/src/ease.ts
new file mode 100644
index 0000000..7b46423
--- /dev/null
+++ b/video/src/ease.ts
@@ -0,0 +1,72 @@
+// Small timing helpers. Everything in the film is a pure function of time in seconds.
+
+import { useCurrentFrame } from "remotion";
+import { FPS, toStory } from "./timeline.ts";
+
+/** Story time for the current frame: the film plays the story through the pacing warp in timeline.ts. */
+export const useT = () => toStory(useCurrentFrame() / FPS);
+
+export const clamp = (x: number, a = 0, b = 1) => Math.min(b, Math.max(a, x));
+export const mix = (a: number, b: number, k: number) => a + (b - a) * k;
+/** 0..1 progress of t through [a, b]. */
+export const prog = (t: number, a: number, b: number) => clamp((t - a) / (b - a));
+
+export type Ease = (k: number) => number;
+export const linear: Ease = (k) => k;
+export const inCubic: Ease = (k) => k * k * k;
+export const outCubic: Ease = (k) => 1 - Math.pow(1 - k, 3);
+export const inOutCubic: Ease = (k) => (k < 0.5 ? 4 * k * k * k : 1 - Math.pow(-2 * k + 2, 3) / 2);
+export const outQuint: Ease = (k) => 1 - Math.pow(1 - k, 5);
+export const inOutQuint: Ease = (k) => (k < 0.5 ? 16 * k ** 5 : 1 - Math.pow(-2 * k + 2, 5) / 2);
+export const outExpo: Ease = (k) => (k >= 1 ? 1 : 1 - Math.pow(2, -10 * k));
+export const inOutSine: Ease = (k) => -(Math.cos(Math.PI * k) - 1) / 2;
+/** The site's cubic-bezier(.2,.8,.2,1), close enough: fast start, long soft landing. */
+export const site: Ease = (k) => 1 - Math.pow(1 - k, 3.4);
+/** A gentle overshoot for things that settle into place. */
+export const outBack: Ease = (k) => { const c = 1.2; return 1 + (c + 1) * Math.pow(k - 1, 3) + c * Math.pow(k - 1, 2); };
+
+/** Eased 0..1 progress through [a, b]. */
+export const ep = (t: number, a: number, b: number, e: Ease = inOutCubic) => e(prog(t, a, b));
+
+/** Fade in over [a, a+inD], hold, fade out over [b-outD, b]. */
+export const window01 = (t: number, a: number, b: number, inD = 0.4, outD = 0.4, e: Ease = inOutSine) =>
+ Math.min(e(prog(t, a, a + inD)), 1 - e(prog(t, b - outD, b)));
+
+/**
+ * A keyframed value: [time, value, ease into this key]. Holds the first and last values outside the range.
+ */
+export type Key = [number, number, Ease?];
+export function track(t: number, keys: Key[]): number {
+ if (t <= keys[0][0]) return keys[0][1];
+ for (let i = 1; i < keys.length; i++) {
+ const [t1, v1, e = inOutCubic] = keys[i];
+ if (t <= t1) {
+ const [t0, v0] = keys[i - 1];
+ return mix(v0, v1, e(prog(t, t0, t1)));
+ }
+ }
+ return keys[keys.length - 1][1];
+}
+
+/** A stable pseudo-random number in 0..1 for an integer seed. */
+export function hash(n: number): number {
+ let x = Math.imul(n ^ 0x9e3779b9, 0x85ebca6b);
+ x ^= x >>> 13; x = Math.imul(x, 0xc2b2ae35); x ^= x >>> 16;
+ return (x >>> 0) / 4294967296;
+}
+
+/** A seeded generator, for scattering particles the same way every render. */
+export function rng(seed: number) {
+ return () => {
+ seed |= 0; seed = (seed + 0x6d2b79f5) | 0;
+ let t = Math.imul(seed ^ (seed >>> 15), 1 | seed);
+ t = (t + Math.imul(t ^ (t >>> 7), 61 | t)) ^ t;
+ return ((t ^ (t >>> 14)) >>> 0) / 4294967296;
+ };
+}
+
+/** A point on a quadratic bézier. */
+export function quad(a: { x: number; y: number }, c: { x: number; y: number }, b: { x: number; y: number }, k: number) {
+ const u = 1 - k;
+ return { x: u * u * a.x + 2 * u * k * c.x + k * k * b.x, y: u * u * a.y + 2 * u * k * c.y + k * k * b.y };
+}
diff --git a/video/src/fonts.ts b/video/src/fonts.ts
new file mode 100644
index 0000000..b50b733
--- /dev/null
+++ b/video/src/fonts.ts
@@ -0,0 +1,32 @@
+// The site's two typefaces, self-hosted so renders never wait on the network. Both are SIL OFL.
+// Google Sans Flex is variable (wght, opsz and the ROND roundness axis the site's headings use).
+
+import { useEffect, useState } from "react";
+import { continueRender, delayRender, staticFile } from "remotion";
+import { loadFont } from "@remotion/fonts";
+
+export const SANS = '"Google Sans Flex", ui-sans-serif, system-ui, sans-serif';
+export const MONO = '"Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace';
+
+let ready: Promise | null = null;
+
+export function loadFonts(): Promise {
+ ready ??= Promise.all([
+ loadFont({ family: "Google Sans Flex", url: staticFile("fonts/GoogleSansFlex-latin.woff2"), weight: "400 700",
+ unicodeRange: "U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD" }),
+ loadFont({ family: "Google Sans Flex", url: staticFile("fonts/GoogleSansFlex-latin-ext.woff2"), weight: "400 700",
+ unicodeRange: "U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF" }),
+ loadFont({ family: "Geist Mono", url: staticFile("fonts/GeistMono-latin.woff2"), weight: "400 600" }),
+ ]).then(() => document.fonts.ready).then(() => undefined);
+ return ready;
+}
+
+/** True once the fonts are in, holding the render until then. Canvas text sampling waits on this. */
+export function useFonts(): boolean {
+ const [ok, setOk] = useState(false);
+ useEffect(() => {
+ const h = delayRender("fonts");
+ loadFonts().then(() => { setOk(true); continueRender(h); });
+ }, []);
+ return ok;
+}
diff --git a/video/src/hero/Aurora.tsx b/video/src/hero/Aurora.tsx
new file mode 100644
index 0000000..5a079c2
--- /dev/null
+++ b/video/src/hero/Aurora.tsx
@@ -0,0 +1,23 @@
+// The site's aurora shader (site/aurora.js) at half resolution, stepped by film time.
+
+import { useLayoutEffect, useRef } from "react";
+import { createAuroraRenderer } from "../../../site/aurora.js";
+import { HEIGHT, WIDTH } from "../timeline.ts";
+import type { Cam } from "../world.ts";
+
+type Renderer = { draw(o: { t: number; shift: number; floorY: number }): void } | null;
+
+export function Aurora({ cam, t }: { cam: Cam; t: number }) {
+ const ref = useRef(null);
+ const r = useRef(undefined);
+ useLayoutEffect(() => {
+ if (r.current === undefined) r.current = createAuroraRenderer(ref.current!, { preserve: true }) as unknown as Renderer;
+ // The site starts its clock at page load; start a little in, where both curtains are up.
+ r.current?.draw({ t: 14 + t * 0.85, shift: cam.lng * 0.006, floorY: Math.min(1, Math.max(0.2, (cam.crest + 30) / HEIGHT)) });
+ });
+ if (cam.aurora <= 0) return ;
+ return (
+
+ );
+}
diff --git a/video/src/hero/City.tsx b/video/src/hero/City.tsx
new file mode 100644
index 0000000..11c61e6
--- /dev/null
+++ b/video/src/hero/City.tsx
@@ -0,0 +1,47 @@
+// Dallas up close. The globe draws a few specks per half-degree cell, which thins out at a deep zoom,
+// so as the camera dives this layer resolves each nearby cell into one speck per two churches, from
+// the same globe.json counts. Every point of light is still real data.
+
+import { useMemo } from "react";
+import globeData from "../../../site/data/globe.json";
+import { clamp, rng } from "../ease.ts";
+import { PixelCanvas, speck, speckColor } from "../pixels/PixelCanvas.tsx";
+import { camera, DALLAS, project } from "../world.ts";
+
+type Speck = { lat: number; lng: number; k: number; ph: number; big: boolean; edge: number };
+
+export function City({ t }: { t: number }) {
+ const specks = useMemo(() => {
+ const d = globeData as { unit: number; data: number[] };
+ const r = rng(1999);
+ const out: Speck[] = [];
+ for (let i = 0; i < d.data.length; i += 3) {
+ const la = d.data[i] * d.unit, lo = d.data[i + 1] * d.unit, c = d.data[i + 2];
+ if (Math.abs(la - DALLAS.lat) > 4.5 || Math.abs(lo - DALLAS.lng) > 7) continue;
+ const n = Math.min(400, Math.round(c / 2.5));
+ for (let j = 0; j < n; j++) {
+ // Gaussian-ish spread around the cell center, so the half-degree grid never shows.
+ const g = () => (r() + r() + r() - 1.5) * 0.36;
+ const lat = la + g() * d.unit * 1.6, lng = lo + g() * d.unit * 1.6;
+ // Fade toward the rim of the patch, so it never shows an edge.
+ const dist = Math.hypot((lat - DALLAS.lat) / 4.5, (lng - DALLAS.lng) / 7);
+ const edge = 1 - Math.min(1, Math.max(0, (dist - 0.55) / 0.45)) ** 1.5;
+ if (edge > 0) out.push({ lat, lng, k: Math.pow(r(), 1.8), ph: r() * Math.PI * 2, big: r() < 0.12, edge });
+ }
+ }
+ return out;
+ }, []);
+ const cam = camera(t);
+ const a = clamp((cam.scale - 3.4) / 2.4);
+ if (a <= 0) return null;
+ return (
+ {
+ for (const s of specks) {
+ const p = project(s.lat, s.lng, cam);
+ if (p.depth <= 0 || p.x < -4 || p.x > 1924 || p.y < -4 || p.y > 1084) continue;
+ const tw = 0.85 + 0.15 * Math.sin(t * 1.4 + s.ph);
+ speck(ctx, p.x, p.y, s.big ? 3 : 2, speckColor(0.35 + 0.6 * s.k), a * s.edge * (0.45 + 0.55 * s.k) * tw, 0);
+ }
+ }} />
+ );
+}
diff --git a/video/src/hero/Globe.tsx b/video/src/hero/Globe.tsx
new file mode 100644
index 0000000..7cb34d0
--- /dev/null
+++ b/video/src/hero/Globe.tsx
@@ -0,0 +1,39 @@
+// The site's particle globe (site/globe.js), stepped one frame at a time from the film's camera.
+
+import { useLayoutEffect, useRef } from "react";
+import { createGlobeRenderer } from "../../../site/globe.js";
+import globeData from "../../../site/data/globe.json";
+import { HEIGHT, WIDTH } from "../timeline.ts";
+import { DPR, type Cam } from "../world.ts";
+
+export type Pin = { lat: number; lng: number };
+
+type Renderer = {
+ resize(dpr: number): void;
+ draw(o: Record): void;
+};
+
+export function Globe({ cam, t, pins = [], selected = null }: { cam: Cam; t: number; pins?: Pin[]; selected?: (Pin & { at: number }) | null }) {
+ const ref = useRef(null);
+ const r = useRef(null);
+ useLayoutEffect(() => {
+ const c = ref.current!;
+ if (!r.current) {
+ // Drawn at the device's pixel ratio, so a 2× (4K) render is sharp, not upscaled.
+ const px = window.devicePixelRatio || 1;
+ c.width = WIDTH * px; c.height = HEIGHT * px;
+ r.current = createGlobeRenderer(c, globeData) as unknown as Renderer;
+ r.current.resize(DPR * px);
+ }
+ r.current.draw({
+ lat: cam.lat, lng: cam.lng, scale: cam.scale, top: cam.crest / DPR,
+ t: t * 1000, motion: true, reveal: cam.reveal, gain: cam.gain,
+ glow: cam.glow, shadeAlpha: cam.shade, limb: cam.limb,
+ pins, selected: selected ? { ...selected, at: selected.at * 1000 } : null,
+ });
+ });
+ return (
+
+ );
+}
diff --git a/video/src/hero/Layers.tsx b/video/src/hero/Layers.tsx
new file mode 100644
index 0000000..abad53c
--- /dev/null
+++ b/video/src/hero/Layers.tsx
@@ -0,0 +1,93 @@
+// The rest of the hero: the night backdrop, the horizon arc, the orbit rings and a fine film grain.
+
+import { useLayoutEffect, useRef } from "react";
+import { HEIGHT, WIDTH } from "../timeline.ts";
+import { R0, type Cam } from "../world.ts";
+
+/** The header's night: #05020F with violet light pooling at the bottom and a faint wash at the top. */
+export function Backdrop({ cam }: { cam: Cam }) {
+ return (
+
+ );
+}
+
+/** The arc across the top of the hero: a circle at the globe's own radius, crest just under where the nav sits. */
+export const ARC_CREST = 96;
+export function HorizonArc({ cam }: { cam: Cam }) {
+ if (cam.arc <= 0 || cam.arcAlpha <= 0) return null;
+ const R = R0, cx = WIDTH / 2, cy = ARC_CREST + R;
+ const y = (x: number) => cy - Math.sqrt(Math.max(R * R - (x - cx) ** 2, 0));
+ const d = `M0 ${y(0).toFixed(1)}A${R.toFixed(1)} ${R.toFixed(1)} 0 0 1 ${WIDTH} ${y(WIDTH).toFixed(1)}`;
+ const dash = { pathLength: 1, strokeDasharray: `${cam.arc} 1` } as const;
+ return (
+
+
+
+ {cam.arc < 1 && (() => {
+ // A bright head travelling along the rim while it draws.
+ const x = cam.arc * WIDTH, hy = y(x);
+ return ;
+ })()}
+
+ );
+}
+
+/** The two tilted orbit rings around the globe: o1 behind it, o2 in front (top edge only). */
+export const ORBITS = [
+ { dy: 230, rx: 1230, ry: 380, rot: -5 },
+ { dy: 470, rx: 1080, ry: 340, rot: 4 },
+] as const;
+
+/** A point on orbit i at angle a (radians; -π/2 is the top of the ring), for a globe crest. */
+export function orbitPoint(i: 0 | 1, a: number, crest: number) {
+ const o = ORBITS[i], r = (o.rot * Math.PI) / 180;
+ const ex = o.rx * Math.cos(a), ey = o.ry * Math.sin(a);
+ return { x: WIDTH / 2 + ex * Math.cos(r) - ey * Math.sin(r), y: crest + o.dy + ex * Math.sin(r) + ey * Math.cos(r) };
+}
+
+export function Orbit({ cam, which }: { cam: Cam; which: 0 | 1 }) {
+ if (cam.orbits <= 0) return null;
+ const o = ORBITS[which];
+ const cx = WIDTH / 2, cy = cam.crest + o.dy;
+ return (
+
+
+
+
+
+
+
+
+ {which === 0 ? (
+
+ ) : (
+ // Front ring: only its top half, which crosses in front of the globe.
+
+ )}
+
+ );
+}
+
+/** Fine animated grain over the backdrop layers, so the dark violet gradients don't band once encoded. */
+export function Grain({ t, alpha = 0.05 }: { t: number; alpha?: number }) {
+ const ref = useRef(null);
+ useLayoutEffect(() => {
+ const c = ref.current!, ctx = c.getContext("2d")!;
+ const w = c.width, h = c.height, img = ctx.createImageData(w, h), d = img.data;
+ let s = (Math.floor(t * 60) * 2654435761) >>> 0;
+ for (let i = 0; i < d.length; i += 4) {
+ s ^= s << 13; s ^= s >>> 17; s ^= s << 5;
+ const v = (s >>> 0) & 255;
+ d[i] = d[i + 1] = d[i + 2] = v; d[i + 3] = 255;
+ }
+ ctx.putImageData(img, 0, 0);
+ });
+ return ;
+}
diff --git a/video/src/hero/Sky.tsx b/video/src/hero/Sky.tsx
new file mode 100644
index 0000000..07453b2
--- /dev/null
+++ b/video/src/hero/Sky.tsx
@@ -0,0 +1,32 @@
+// The site's starfield (site/sky.js), stepped by film time, with scripted shooting stars.
+
+import { useLayoutEffect, useRef } from "react";
+import { createSkyRenderer } from "../../../site/sky.js";
+import { HEIGHT, T, WIDTH } from "../timeline.ts";
+import type { Cam } from "../world.ts";
+
+type Renderer = {
+ size(w: number, h: number, dpr: number): void;
+ draw(o: Record): void;
+};
+
+// Shooting stars at quiet moments, crossing the way the globe turns. Times in ms.
+const SHOTS = [
+ { t0: 5600, life: 1250, x: 1260, y: 150, vx: -420, vy: 130 },
+ { t0: 7600, life: 1100, x: 520, y: 110, vx: -360, vy: 120 },
+ { t0: (T.orbitsIn + 3.4) * 1000, life: 1150, x: 760, y: 120, vx: 400, vy: 125 },
+ { t0: (T.ctaMove + 4.2) * 1000, life: 1300, x: 1320, y: 140, vx: 380, vy: 140 },
+];
+
+export function Sky({ cam, t }: { cam: Cam; t: number }) {
+ const ref = useRef(null);
+ const r = useRef(null);
+ useLayoutEffect(() => {
+ if (!r.current) {
+ r.current = createSkyRenderer(ref.current!) as unknown as Renderer;
+ r.current.size(WIDTH, HEIGHT, window.devicePixelRatio || 1);
+ }
+ r.current.draw({ t: t * 1000, view: { lat: cam.lat, lng: cam.lng }, skyH: Math.min(HEIGHT, cam.crest + 40), motion: true, shots: SHOTS, alpha: cam.stars });
+ });
+ return ;
+}
diff --git a/video/src/hero/World.tsx b/video/src/hero/World.tsx
new file mode 100644
index 0000000..64ab24c
--- /dev/null
+++ b/video/src/hero/World.tsx
@@ -0,0 +1,26 @@
+// The hero world, back to front: night, aurora, stars, arc, rear orbit, globe, front orbit, grain.
+
+import type { ReactNode } from "react";
+import { Aurora } from "./Aurora.tsx";
+import { Globe, type Pin } from "./Globe.tsx";
+import { Backdrop, Grain, HorizonArc, Orbit } from "./Layers.tsx";
+import { Sky } from "./Sky.tsx";
+import type { Cam } from "../world.ts";
+
+export function World({ cam, t, pins, selected, overGlobe }: {
+ cam: Cam; t: number; pins?: Pin[]; selected?: (Pin & { at: number }) | null; overGlobe?: ReactNode;
+}) {
+ return (
+ <>
+
+
+
+
+
+
+ {overGlobe}
+
+
+ >
+ );
+}
diff --git a/video/src/index.ts b/video/src/index.ts
new file mode 100644
index 0000000..513824a
--- /dev/null
+++ b/video/src/index.ts
@@ -0,0 +1,4 @@
+import { registerRoot } from "remotion";
+import { Root } from "./Root.tsx";
+
+registerRoot(Root);
diff --git a/video/src/pixels/PixelCanvas.tsx b/video/src/pixels/PixelCanvas.tsx
new file mode 100644
index 0000000..17ffa46
--- /dev/null
+++ b/video/src/pixels/PixelCanvas.tsx
@@ -0,0 +1,44 @@
+// A full-frame canvas that a scene paints its moving pixels onto, one frame at a time.
+
+import { useLayoutEffect, useRef } from "react";
+import { HEIGHT, WIDTH } from "../timeline.ts";
+
+export type Paint = (ctx: CanvasRenderingContext2D) => void;
+
+export function PixelCanvas({ paint, blend, z }: { paint: Paint; blend?: "screen" | "normal" | "plus-lighter"; z?: number }) {
+ const ref = useRef(null);
+ useLayoutEffect(() => {
+ const c = ref.current!, px = window.devicePixelRatio || 1;
+ if (c.width !== WIDTH * px) { c.width = WIDTH * px; c.height = HEIGHT * px; }
+ const ctx = c.getContext("2d")!;
+ ctx.setTransform(px, 0, 0, px, 0, 0);
+ ctx.clearRect(0, 0, WIDTH, HEIGHT);
+ ctx.globalAlpha = 1;
+ paint(ctx);
+ });
+ return ;
+}
+
+/** A crisp square pixel with a soft halo, snapped to whole pixels like the globe's specks. */
+export function speck(ctx: CanvasRenderingContext2D, x: number, y: number, size: number, color: string, alpha: number, halo = 0) {
+ if (alpha <= 0.002) return;
+ const s = Math.max(1, Math.round(size));
+ const px = Math.round(x - s / 2), py = Math.round(y - s / 2);
+ if (halo > 0) {
+ ctx.globalAlpha = alpha * 0.18;
+ ctx.fillStyle = color;
+ const hs = s + halo * 2;
+ ctx.fillRect(px - halo, py - halo, hs, hs);
+ }
+ ctx.globalAlpha = alpha;
+ ctx.fillStyle = color;
+ ctx.fillRect(px, py, s, s);
+ ctx.globalAlpha = 1;
+}
+
+/** The globe's speck colors, faint violet to near white. */
+export function speckColor(k: number) {
+ const r = Math.round(150 + 105 * k), g = Math.round(110 + 130 * k), b = Math.round(230 + 25 * k);
+ return `rgb(${r},${g},${b})`;
+}
diff --git a/video/src/pixels/dither.tsx b/video/src/pixels/dither.tsx
new file mode 100644
index 0000000..77bed7c
--- /dev/null
+++ b/video/src/pixels/dither.tsx
@@ -0,0 +1,121 @@
+// The film's signature transition: things appear and dissolve through the globe's own 4×4 Bayer
+// dither, cell by cell, with a bright lilac front where the pixels are turning over.
+
+import { useLayoutEffect, useMemo, useRef, type CSSProperties, type ReactNode } from "react";
+import { hash } from "../ease.ts";
+
+const B4 = [0, 8, 2, 10, 12, 4, 14, 6, 3, 11, 1, 9, 15, 7, 13, 5].map((v) => (v + 0.5) / 16);
+
+export type Sweep = "down" | "up" | "right" | "left" | "none" | { x: number; y: number };
+
+/** When cell (i, j) of a cols × rows grid turns over, 0..1: a sweep, broken up by Bayer order and noise. */
+export function cellThreshold(i: number, j: number, cols: number, rows: number, sweep: Sweep, spread = 0.5, seed = 0): number {
+ let s: number;
+ if (sweep === "down") s = j / Math.max(1, rows - 1);
+ else if (sweep === "up") s = 1 - j / Math.max(1, rows - 1);
+ else if (sweep === "right") s = i / Math.max(1, cols - 1);
+ else if (sweep === "left") s = 1 - i / Math.max(1, cols - 1);
+ else if (sweep === "none") s = 0;
+ else {
+ // Radial from a point given in 0..1 of the box.
+ const dx = i / Math.max(1, cols - 1) - sweep.x, dy = (j / Math.max(1, rows - 1) - sweep.y) * (rows / Math.max(1, cols));
+ const far = Math.max(Math.hypot(sweep.x, sweep.y * rows / cols), Math.hypot(1 - sweep.x, sweep.y * rows / cols),
+ Math.hypot(sweep.x, (1 - sweep.y) * rows / cols), Math.hypot(1 - sweep.x, (1 - sweep.y) * rows / cols));
+ s = Math.hypot(dx, dy) / far;
+ }
+ const b = B4[(j & 3) * 4 + (i & 3)], n = hash(i * 7919 + j * 104729 + seed * 31337);
+ const sp = sweep === "none" ? 1 : spread;
+ return s * (1 - sp) + (b * 0.55 + n * 0.45) * sp;
+}
+
+const cache = new Map();
+
+/** A PNG mask, white where cells are showing at progress p. */
+function maskURL(w: number, h: number, cell: number, p: number, sweep: Sweep, spread: number, seed: number): string {
+ const px = window.devicePixelRatio || 1;
+ const key = `${w}|${h}|${cell}|${p.toFixed(4)}|${JSON.stringify(sweep)}|${spread}|${seed}|${px}`;
+ const hit = cache.get(key);
+ if (hit) return hit;
+ const c = document.createElement("canvas");
+ c.width = Math.ceil(w * px); c.height = Math.ceil(h * px);
+ const ctx = c.getContext("2d")!;
+ ctx.scale(px, px);
+ ctx.fillStyle = "#fff";
+ const cols = Math.ceil(w / cell), rows = Math.ceil(h / cell);
+ for (let j = 0; j < rows; j++) for (let i = 0; i < cols; i++) {
+ if (cellThreshold(i, j, cols, rows, sweep, spread, seed) < p) ctx.fillRect(i * cell, j * cell, cell, cell);
+ }
+ const url = c.toDataURL("image/png");
+ if (cache.size > 400) cache.clear();
+ cache.set(key, url);
+ return url;
+}
+
+/**
+ * Shows children through a dither at progress p (0 hidden, 1 whole). w and h are the box in its own
+ * CSS pixels. The cells turning over glow in `edge`.
+ */
+export function Dither({ p, w, h, cell = 6, sweep = "down", spread = 0.5, seed = 0, edge = "rgba(196,181,253,1)", band = 0.09,
+ style, children }: {
+ p: number; w: number; h: number; cell?: number; sweep?: Sweep; spread?: number; seed?: number; edge?: string | null; band?: number;
+ style?: CSSProperties; children: ReactNode;
+}) {
+ const base: CSSProperties = { position: "absolute", width: w, height: h, ...style };
+ if (p >= 1) return {children}
;
+ if (p <= 0) return {children}
;
+ const url = maskURL(w, h, cell, p, sweep, spread, seed);
+ const mask: CSSProperties = { WebkitMaskImage: `url(${url})`, maskImage: `url(${url})`, WebkitMaskSize: "100% 100%", maskSize: "100% 100%" };
+ return (
+
+ {children}
+ {edge && }
+
+ );
+}
+
+function Front({ w, h, cell, p, sweep, spread, seed, edge, band }: {
+ w: number; h: number; cell: number; p: number; sweep: Sweep; spread: number; seed: number; edge: string; band: number;
+}) {
+ const ref = useRef(null);
+ useLayoutEffect(() => {
+ const c = ref.current!, px = window.devicePixelRatio || 1;
+ if (c.width !== Math.ceil(w * px)) { c.width = Math.ceil(w * px); c.height = Math.ceil(h * px); }
+ const ctx = c.getContext("2d")!;
+ ctx.setTransform(px, 0, 0, px, 0, 0);
+ ctx.clearRect(0, 0, w, h);
+ ctx.fillStyle = edge;
+ const cols = Math.ceil(w / cell), rows = Math.ceil(h / cell);
+ for (let j = 0; j < rows; j++) for (let i = 0; i < cols; i++) {
+ const th = cellThreshold(i, j, cols, rows, sweep, spread, seed);
+ const d = p - th;
+ if (d < 0 || d > band) continue;
+ ctx.globalAlpha = 1 - d / band;
+ ctx.fillRect(i * cell, j * cell, cell, cell);
+ }
+ ctx.globalAlpha = 1;
+ });
+ return ;
+}
+
+/** Points sampled from text drawn with a canvas font, in the text box's own pixels. */
+export function useTextPoints(ready: boolean, text: string, font: string, letterSpacing: number, w: number, h: number,
+ baseline: number, step: number, align: CanvasTextAlign = "center") {
+ return useMemo(() => {
+ if (!ready) return [] as { x: number; y: number; a: number }[];
+ const c = document.createElement("canvas");
+ c.width = Math.ceil(w); c.height = Math.ceil(h);
+ const ctx = c.getContext("2d")!;
+ ctx.font = font;
+ (ctx as CanvasRenderingContext2D & { letterSpacing: string }).letterSpacing = `${letterSpacing}px`;
+ ctx.textAlign = align;
+ ctx.fillStyle = "#fff";
+ ctx.fillText(text, align === "center" ? w / 2 : align === "left" ? 0 : w, baseline);
+ const d = ctx.getImageData(0, 0, c.width, c.height).data;
+ const pts: { x: number; y: number; a: number }[] = [];
+ for (let y = 0; y < c.height; y += step) for (let x = 0; x < c.width; x += step) {
+ const a = d[(y * c.width + x) * 4 + 3] / 255;
+ if (a > 0.45) pts.push({ x, y, a });
+ }
+ return pts;
+ }, [ready, text, font, letterSpacing, w, h, baseline, step, align]);
+}
diff --git a/video/src/scenes/Form.tsx b/video/src/scenes/Form.tsx
new file mode 100644
index 0000000..853441c
--- /dev/null
+++ b/video/src/scenes/Form.tsx
@@ -0,0 +1,201 @@
+// Scenes 5–8: the Kinship window builds out of pixels and fills; it swaps design tokens; Harvest and
+// Steeple fan out beside it; it strips to wireframe while the quickstart types out and links each
+// tagged field; then someone fixes the service times and shares it.
+
+import type { ReactNode } from "react";
+import { clamp, inOutCubic, inOutQuint, mix, outCubic, prog, track } from "../ease.ts";
+import { Dither } from "../pixels/dither.tsx";
+import { FIELDS, fieldAt, FIX_DELETE, FIX_KEY_GAP, FIX_TYPE, SCENE, T } from "../timeline.ts";
+import { AppWindow, fieldBox, FIX_ROW, SHARE_BTN, type PanelState } from "../ui/AppWindow.tsx";
+import { ATTR_LINES, attrPoint, CODE_H, CODE_W, CodePanel, TOTAL_CHARS } from "../ui/CodePanel.tsx";
+import { HarvestApp, SteepleApp } from "../ui/OtherApps.tsx";
+import { CHURCH, FORM_FIELDS, LOOKS, STR, type Look } from "../ui/tokens.ts";
+import { BOX_HANDOFF } from "./Search.tsx";
+import { appMatrix, codeMatrix, fieldOnScreen, layerTilt, project, toFilm, winPlace, WIPE_DUR, WIPES } from "./place.ts";
+
+/** Service times as typed: backspacing "9:00 am", then "10:30 am". */
+function timesValue(t: number) {
+ const base = CHURCH.times;
+ if (t < T.deleteStart) return base;
+ const del = Math.min(FIX_DELETE, Math.floor((t - T.deleteStart) / FIX_KEY_GAP) + 1);
+ if (t < T.retypeStart) return base.slice(0, base.length - del);
+ const add = Math.min(FIX_TYPE.length, Math.floor((t - T.retypeStart) / FIX_KEY_GAP) + 1);
+ return base.slice(0, base.length - FIX_DELETE) + FIX_TYPE.slice(0, add);
+}
+
+function panelState(t: number): PanelState | undefined {
+ if (t < T.panelIn) return undefined;
+ const press = clamp(1 - Math.abs(t - T.shareClick - 0.06) / 0.1);
+ return {
+ open: outCubic(prog(t, T.panelIn, T.panelIn + 0.6)),
+ phase: t < T.shareClick + 0.08 ? 0 : t < T.live ? 1 : 2,
+ press,
+ live: outCubic(prog(t, T.live, T.live + 0.25)),
+ };
+}
+
+export const WINDOW_END = T.collapse + 0.9;
+
+function Window({ t, look }: { t: number; look: Look }) {
+ const values = FORM_FIELDS.map((f, i) => (i === 6 ? timesValue(t) : f.value));
+ const filled = FORM_FIELDS.map((_, i) => outCubic(prog(t, fieldAt(i), fieldAt(i) + 0.4)));
+ const editing = t >= T.focusTimes && t < T.panelIn + 0.6;
+ const typing = t >= T.deleteStart && t < T.retypeStart + FIX_TYPE.length * FIX_KEY_GAP + 0.2;
+ const blink = ((t - T.focusTimes) % 1.06) < 0.53 ? 1 : 0;
+ return (
+ = T.filledNote ? { text: `Autofilled ${FIELDS} of ${FIELDS} fields from Here's My Church`, done: true } : undefined}
+ church={{ text: CHURCH.name, chosen: true, show: t >= BOX_HANDOFF }}
+ focus={editing ? { i: 6, ring: outCubic(prog(t, T.focusTimes, T.focusTimes + 0.2)), caret: typing ? 1 : blink } : undefined}
+ panel={panelState(t)}
+ renderValue={(i, node, box) => {
+ const p = inOutCubic(prog(t, fieldAt(i), fieldAt(i) + 0.45));
+ if (p >= 1) return node;
+ return {node} ;
+ }}
+ />
+ );
+}
+
+/** The window wearing its look at t, with a dither wipe into the next look when one is under way. */
+function Themed({ t }: { t: number }) {
+ let base = LOOKS.plum;
+ let wipe: { k: number; to: Look; i: number } | null = null;
+ WIPES.forEach((w, i) => {
+ if (t >= w.at + WIPE_DUR) base = w.to;
+ else if (t >= w.at) { base = w.from; wipe = { k: inOutCubic(prog(t, w.at, w.at + WIPE_DUR)), to: w.to, i }; }
+ });
+ const pl = winPlace(t);
+ const w = wipe as { k: number; to: Look; i: number } | null;
+ return (
+ <>
+
+ {w && (
+
+
+
+ )}
+ >
+ );
+}
+
+export function FormLayer({ t }: { t: number }) {
+ if (t < T.windowIn || t > WINDOW_END) return null;
+ const pl = winPlace(t);
+ const build = inOutCubic(prog(t, T.windowIn, T.windowIn + 1.5));
+ // In scene 9 the window falls away toward the fix row, which travels on alone.
+ const gone = inOutCubic(prog(t, T.collapse, T.collapse + 0.8));
+ const p = Math.min(build, 1 - gone);
+ // Tipped back over its code, the app turns slightly glassy so the layer beneath reads through it.
+ const tilt = layerTilt(t);
+ return (
+
+ 0 ? { x: (FIX_ROW.x + 120) / 1000, y: (FIX_ROW.y + 30) / pl.H } : "down"}
+ spread={0.55} seed={gone > 0 ? 31 : 30} band={0.08}>
+
+
+
+ );
+}
+
+/** 6 · Two more apps fan out beside Kinship, each with the same church in its own look. */
+export function Fan({ t }: { t: number }) {
+ if (t < T.fan || t > SCENE.oneTag + 0.6) return null;
+ const k = inOutQuint(prog(t, T.fan + 0.1, T.fan + 1.3));
+ const show = Math.min(inOutCubic(prog(t, T.fan + 0.25, T.fan + 1.1)), 1 - inOutCubic(prog(t, SCENE.oneTag - 0.25, SCENE.oneTag + 0.45)));
+ const drift = (t - T.fan) * 6;
+ // Cards centered beside Kinship, turned slightly inward like a hand of cards.
+ const card = (side: -1 | 1, node: ReactNode, h: number) => (
+
+ {node}
+
+ );
+ return (
+ <>
+ {card(-1, , 336)}
+ {card(1, , 330)}
+ >
+ );
+}
+
+/** Which field each tagged line of the snippet fills: city, website, service times (the form's right column). */
+const LINK_FIELDS = [2, 4, 6];
+
+/**
+ * 7 · The layer that makes the app: the camera tips the app back, the quickstart types out on a glass
+ * layer beneath it, and a beam of light rises from each data-hmc-field to the field it fills.
+ */
+export function Code({ t, part }: { t: number; part: "layer" | "beams" }) {
+ const tilt = layerTilt(t);
+ if (t < T.codeIn || t > T.formBack || tilt <= 0.001) return null;
+ const p = inOutCubic(prog(t, T.codeIn + 0.2, T.codeIn + 1.0));
+ const chars = Math.floor(TOTAL_CHARS * prog(t, T.codeTypeStart, T.codeTypeEnd));
+ const fade = 1 - prog(t, T.formBack - 1.2, T.formBack - 0.6);
+ const glow = ATTR_LINES.map((_, i) => outCubic(prog(t, T.links + i * 0.28, T.links + i * 0.28 + 0.4)) * fade);
+ const cm = codeMatrix(t), am = appMatrix(t), pl = winPlace(t);
+ if (part === "layer") return (
+
+
+ T.codeTypeStart && t < T.codeTypeEnd) ? 1 : 0} />
+
+
+ );
+ return (
+
+ {ATTR_LINES.map((a, i) => {
+ const at = T.links + i * 0.28;
+ const k = inOutCubic(prog(t, at, at + 0.55));
+ if (k <= 0 || fade <= 0) return null;
+ const ap = attrPoint(a);
+ const from = project(cm, (ap.x0 + ap.x) / 2, ap.y);
+ const fb = fieldBox(LINK_FIELDS[i], pl.open);
+ const to = project(am, fb.x + fb.w / 2, fb.y + fb.h / 2);
+ const head = { x: from.x + (to.x - from.x) * k, y: from.y + (to.y - from.y) * k };
+ const arrive = outCubic(prog(t, at + 0.45, at + 0.8));
+ // The field's outline, projected onto the tipped app.
+ const c = [[fb.x - 3, fb.y - 3], [fb.x + fb.w + 3, fb.y - 3], [fb.x + fb.w + 3, fb.y + fb.h + 3], [fb.x - 3, fb.y + fb.h + 3]]
+ .map(([x, y]) => project(am, x, y)).map((q) => `${q.x},${q.y}`).join(" ");
+ return (
+
+
+
+
+ {k < 1 && }
+
+
+ );
+ })}
+
+ );
+}
+
+/** 8 · The pointer that edits service times and presses Share. */
+export function Pointer({ t }: { t: number }) {
+ if (t < T.formBack + 0.8 || t > T.live + 0.9) return null;
+ const f6 = fieldOnScreen(6, t);
+ const pl = winPlace(t);
+ const btn = toFilm(SHARE_BTN, pl);
+ const atField = { x: f6.x + f6.w * 0.62, y: f6.y + f6.h * 0.6 };
+ const k1 = inOutCubic(prog(t, T.formBack + 0.9, T.focusTimes - 0.02));
+ const k2 = inOutCubic(prog(t, T.panelIn + 0.75, T.shareClick - 0.05));
+ const start = { x: 1500, y: 980 };
+ const x = k2 > 0 ? mix(atField.x, btn.x, k2) : mix(start.x, atField.x, k1);
+ const y = k2 > 0 ? mix(atField.y, btn.y, k2) + Math.sin(k2 * Math.PI) * -30 : mix(start.y, atField.y, k1);
+ const a = Math.min(outCubic(prog(t, T.formBack + 0.8, T.formBack + 1.1)), 1 - prog(t, T.live + 0.5, T.live + 0.9));
+ const click = Math.max(clamp(1 - Math.abs(t - T.focusTimes) / 0.09), clamp(1 - Math.abs(t - T.shareClick) / 0.09));
+ return (
+
+
+
+ );
+}
+
+export const strings = STR;
diff --git a/video/src/scenes/Loop.tsx b/video/src/scenes/Loop.tsx
new file mode 100644
index 0000000..0918872
--- /dev/null
+++ b/video/src/scenes/Loop.tsx
@@ -0,0 +1,359 @@
+// Scenes 9–10: the shared fix collapses into one bright pixel and arcs home into Dallas. The camera
+// pulls back: apps ride the orbit rings, each sending fixes into the directory. Some go live at once,
+// some wait in Here's My Church's review queue. Then the whole globe brightens and better data flows
+// back out to every app.
+
+import { useMemo } from "react";
+import { clamp, inOutCubic, mix, outCubic, outExpo, prog, quad, rng } from "../ease.ts";
+import { MONO, SANS } from "../fonts.ts";
+import { PixelCanvas, speck } from "../pixels/PixelCanvas.tsx";
+import { T } from "../timeline.ts";
+import { FIX_ROW } from "../ui/AppWindow.tsx";
+import { CHURCH, LOOKS, STR } from "../ui/tokens.ts";
+import { HmcMark } from "../ui/Widget.tsx";
+import { camera, DALLAS, project } from "../world.ts";
+import { orbitPoint } from "../hero/Layers.tsx";
+import { toFilm, winPlace } from "./place.ts";
+
+const GREEN = "#86EFAC";
+const LILAC = "#C4B5FD";
+
+/** Where the fix row sits on screen when the window falls away. */
+function fixRowOnScreen() {
+ const pl = winPlace(T.collapse);
+ const a = toFilm(FIX_ROW, pl);
+ return { x: a.x, y: a.y, w: FIX_ROW.w * pl.s, h: FIX_ROW.h * pl.s, s: pl.s };
+}
+
+const COLLAPSE_AT = T.collapse + 0.55;
+const ARC_END = T.impact;
+
+/** 9 · The fix row, alone, then folding into a point of light. */
+export function FixChip({ t }: { t: number }) {
+ if (t < T.collapse || t > COLLAPSE_AT + 0.35) return null;
+ const r = fixRowOnScreen();
+ const lift = outCubic(prog(t, T.collapse, T.collapse + 0.4));
+ const fold = inOutCubic(prog(t, COLLAPSE_AT, COLLAPSE_AT + 0.35));
+ const acc = LOOKS.plum.accent;
+ return (
+ 0 ? `brightness(${1 + fold * 3})` : undefined }}>
+
+
+
+
+
+
Service times
+
{CHURCH.times} → {CHURCH.fixedTimes}
+
{STR.st.live}
+
+
+ );
+}
+
+/** The point of light arcing from the form into Dallas, and the ripple where it lands. */
+export function Homecoming({ t }: { t: number }) {
+ const sparks = useMemo(() => {
+ const r = rng(5);
+ return Array.from({ length: 70 }, () => ({ a: r() * Math.PI * 2, v: 40 + r() * 150, life: 0.5 + r() * 0.7, s: r() < 0.3 ? 3 : 2 }));
+ }, []);
+ if (t < COLLAPSE_AT + 0.25 || t > T.pullBack + 1.6) return null;
+ const r = fixRowOnScreen();
+ const from = { x: r.x + r.w / 2, y: r.y + r.h / 2 };
+ return (
+ {
+ const cam = camera(t);
+ const home = project(DALLAS.lat, DALLAS.lng, cam);
+ if (t < ARC_END) {
+ const k = prog(t, COLLAPSE_AT + 0.3, ARC_END);
+ const ctl = { x: mix(from.x, home.x, 0.5) + 320, y: Math.min(from.y, home.y) - 220 };
+ for (let i = 12; i >= 0; i--) {
+ const kk = k - i * 0.012;
+ if (kk < 0) continue;
+ const pt = quad(from, ctl, home, inOutCubic(clamp(kk)));
+ speck(ctx, pt.x, pt.y, i === 0 ? 7 : 3, i === 0 ? "#FFFFFF" : LILAC, (1 - i / 13) * (i === 0 ? 1 : 0.8), i === 0 ? 10 : 0);
+ }
+ return;
+ }
+ // Impact: rings and sparks. Looking straight down, the rings open into near circles.
+ const dt = t - ARC_END;
+ const flat = clamp(0.42 + ((cam.scale - 2.2) / 5) * 0.55, 0.42, 0.97), big = clamp(cam.scale / 4, 1, 1.8);
+ for (let j = 0; j < 3; j++) {
+ const k = clamp((dt - j * 0.16) / 1.3);
+ if (k <= 0 || k >= 1) continue;
+ ctx.beginPath();
+ ctx.ellipse(home.x, home.y, (12 + outExpo(k) * 190) * big, (12 + outExpo(k) * 190) * big * flat, 0, 0, Math.PI * 2);
+ ctx.strokeStyle = j === 0 ? `rgba(134,239,172,${0.85 * (1 - k)})` : `rgba(196,181,253,${0.6 * (1 - k)})`;
+ ctx.lineWidth = 1.5;
+ ctx.stroke();
+ }
+ for (const s of sparks) {
+ const k = clamp(dt / s.life);
+ if (k >= 1) continue;
+ const d = outCubic(k) * s.v;
+ speck(ctx, home.x + Math.cos(s.a) * d * big, home.y + Math.sin(s.a) * d * big * flat, s.s, k < 0.4 ? "#FFFFFF" : GREEN, 1 - k, 0);
+ }
+ }} />
+ );
+}
+
+
+/**
+ * The church itself, where the fix lands: a pin on Dallas and the listing as Here's My Church now has
+ * it, the site's globe card made large. Service times flips from the old value to the shared one.
+ */
+export function LiveTag({ t }: { t: number }) {
+ const a = Math.min(outCubic(prog(t, T.impact + 0.1, T.impact + 0.55)), 1 - inOutCubic(prog(t, T.pullBack + 0.3, T.pullBack + 0.85)));
+ if (a <= 0) return null;
+ const p = project(DALLAS.lat, DALLAS.lng, camera(t));
+ const flip = inOutCubic(prog(t, T.impact + 0.55, T.impact + 0.95));
+ const flash = Math.max(0, 1 - Math.abs(t - T.impact - 0.95) / 0.5);
+ const chipIn = (i: number) => outCubic(prog(t, T.impact + 0.5 + i * 0.07, T.impact + 0.85 + i * 0.07));
+ const chip = { fontFamily: MONO, fontSize: 14, padding: "4px 10px", borderRadius: 8, whiteSpace: "nowrap" as const,
+ color: "#DDD6FE", background: "rgba(167,139,250,.14)", border: "1px solid rgba(167,139,250,.22)" };
+ return (
+ <>
+ {/* The pin: a church glyph on the spot, with a stem up to its card. */}
+
+
+
+
+
+
+
+
+
+
+ {CHURCH.name}
+ {CHURCH.location}
+
+
+
+ Service times
+
+ {CHURCH.times}
+ {CHURCH.fixedTimes}
+
+
+ {STR.st.live}
+
+
+
+ {[CHURCH.phone, CHURCH.website, "Shared from Kinship"].map((c, i) => (
+ {c}
+ ))}
+
+
+ >
+ );
+}
+
+// ── The wide view: apps on the orbits, fixes flowing in, review, and better data flowing out ──
+
+const APPS = [
+ { name: "Kinship", color: "#A78BFA", orbit: 0 as const, a: -2.28 },
+ { name: "Harvest", color: "#F87171", orbit: 0 as const, a: -1.98 },
+ { name: "Steeple", color: "#D2F25C", orbit: 0 as const, a: -0.98 },
+ { name: "Youth camp sign-up", color: "#5EEAD4", orbit: 1 as const, a: -2.2 },
+ { name: "Parish directory", color: "#FBBF24", orbit: 1 as const, a: -1.48 },
+ { name: "Volunteer app", color: "#F9A8D4", orbit: 1 as const, a: -0.9 },
+];
+
+function chipPos(i: number, t: number) {
+ const app = APPS[i];
+ const cam = camera(t);
+ return orbitPoint(app.orbit, app.a + (t - T.orbitsIn) * 0.011 * (app.orbit ? -1 : 1), cam.crest);
+}
+
+const CITIES = [
+ { lat: 41.88, lng: -87.63, field: "Website", church: "Hope Church Uptown" },
+ { lat: 33.75, lng: -84.39 },
+ { lat: 51.51, lng: -0.13, field: "Address", church: "St. Mark's Parish" },
+ { lat: 39.74, lng: -104.99 },
+ { lat: 52.52, lng: 13.4, field: "Pastor", church: "Trinity Chapel" },
+ { lat: 43.65, lng: -79.38 },
+ { lat: 50.06, lng: 19.94 },
+ { lat: 44.98, lng: -93.27 },
+ { lat: 40.42, lng: -3.7 },
+];
+const STREAM_AT = (i: number) => T.orbitsIn + 0.6 + i * 0.47;
+const STREAM_DUR = 0.9;
+const isReview = (i: number) => !!CITIES[i].field;
+const reviewSlot = (i: number) => [0, 2, 4].indexOf(i);
+/** Here's My Church's review queue: centered in the sky above the globe, large. */
+const QUEUE = { s: 1.6, w: 380, x: 960 - (380 * 1.6) / 2, y: 112 };
+const queueRowY = (j: number) => QUEUE.y + (58 + j * 46 + 18) * QUEUE.s;
+
+export function Network({ t }: { t: number }) {
+ const show = Math.min(outCubic(prog(t, T.orbitsIn + 0.2, T.orbitsIn + 1.2)), 1 - prog(t, T.ctaMove - 1.4, T.ctaMove - 0.2));
+ if (show <= 0) return null;
+ const outflow = (i: number) => outCubic(prog(t, T.outflow + 0.4 + i * 0.35, T.outflow + 1.0 + i * 0.35));
+ return (
+ <>
+
+ {APPS.map((app, i) => {
+ const p = chipPos(i, t);
+ const a = Math.min(show, outCubic(prog(t, T.orbitsIn + 0.3 + i * 0.14, T.orbitsIn + 0.9 + i * 0.14)));
+ const pulse = Math.max(0, ...[0, 1].map((n) => clamp(1 - Math.abs(t - (T.outflow + 1.0 + ((i + n * 6) % 6) * 0.35 + n * 1.6)) / 0.35))) * (t > T.outflow ? 1 : 0);
+ const got = t > T.outflow ? outflow(i) : 0;
+ return (
+
+
+ {app.name}
+ {got > 0 && synced }
+
+
+ );
+ })}
+
+
+ >
+ );
+}
+
+function NetworkPixels({ t }: { t: number }) {
+ const seeds = useMemo(() => {
+ const r = rng(77);
+ return Array.from({ length: 18 }, () => Array.from({ length: 26 }, () => ({ o: r() * 0.16, j: (r() - 0.5) * 2, s: r() })));
+ }, []);
+ return (
+ {
+ const cam = camera(t);
+ // Fixes flowing in from the apps.
+ CITIES.forEach((c, i) => {
+ const at = STREAM_AT(i);
+ const chip = i % APPS.length;
+ const dest = isReview(i) ? { x: QUEUE.x + 24 * QUEUE.s, y: queueRowY(reviewSlot(i)) } : project(c.lat, c.lng, cam);
+ const color = isReview(i) ? LILAC : GREEN;
+ for (const s of seeds[i]) {
+ const k = clamp((t - at - s.o) / STREAM_DUR);
+ if (k <= 0 || k >= 1) continue;
+ const from = chipPos(chip, at);
+ const ctl = { x: mix(from.x, dest.x, 0.5) + s.j * 60, y: Math.min(from.y, dest.y) - 80 - s.s * 60 };
+ const pt = quad(from, ctl, dest, inOutCubic(k));
+ speck(ctx, pt.x, pt.y, s.s < 0.35 ? 4 : 3, k < 0.4 ? "#FFFFFF" : color, k > 0.85 ? (1 - k) / 0.15 : 1, s.s < 0.35 ? 3 : 0);
+ }
+ // Live fixes land with a green ring.
+ if (!isReview(i)) {
+ const k = clamp((t - at - STREAM_DUR) / 0.9);
+ if (k > 0 && k < 1) {
+ const p = project(c.lat, c.lng, cam);
+ ctx.beginPath();
+ ctx.ellipse(p.x, p.y, 4 + outExpo(k) * 46, (4 + outExpo(k) * 46) * 0.45, 0, 0, Math.PI * 2);
+ ctx.strokeStyle = `rgba(134,239,172,${0.9 * (1 - k)})`;
+ ctx.lineWidth = 1.5;
+ ctx.stroke();
+ speck(ctx, p.x, p.y, 4, GREEN, 1 - k, 4);
+ }
+ }
+ });
+ // Approved fixes drop from the queue into their places.
+ [0, 2, 4].forEach((ci, j) => {
+ const at = T.review + 0.45 + j * 0.16;
+ const c = CITIES[ci];
+ const from = { x: QUEUE.x + 24 * QUEUE.s, y: queueRowY(j) };
+ const to = project(c.lat, c.lng, cam);
+ for (const s of seeds[9 + j]) {
+ const k = clamp((t - at - s.o) / 0.85);
+ if (k <= 0 || k >= 1) continue;
+ const ctl = { x: mix(from.x, to.x, 0.5) + s.j * 40, y: Math.min(from.y, to.y) - 40 };
+ const pt = quad(from, ctl, to, inOutCubic(k));
+ speck(ctx, pt.x, pt.y, 2, k < 0.4 ? "#FFFFFF" : GREEN, k > 0.85 ? (1 - k) / 0.15 : 1, 0);
+ }
+ const land = clamp((t - at - 0.95) / 0.9);
+ if (land > 0 && land < 1) {
+ ctx.beginPath();
+ ctx.ellipse(to.x, to.y, 4 + outExpo(land) * 46, (4 + outExpo(land) * 46) * 0.45, 0, 0, Math.PI * 2);
+ ctx.strokeStyle = `rgba(134,239,172,${0.9 * (1 - land)})`;
+ ctx.lineWidth = 1.5;
+ ctx.stroke();
+ }
+ });
+ // 10 · Better data flows back out to every app.
+ if (t > T.outflow) {
+ for (let n = 0; n < 12; n++) {
+ const at = T.outflow + (n % 6) * 0.35 + Math.floor(n / 6) * 1.6;
+ const c = CITIES[(n * 5) % CITIES.length];
+ const from = project(c.lat, c.lng, cam);
+ const to = chipPos(n % 6, t);
+ for (const s of seeds[(n + 3) % 18]) {
+ const k = clamp((t - at - s.o) / 1.0);
+ if (k <= 0 || k >= 1) continue;
+ const ctl = { x: mix(from.x, to.x, 0.5) + s.j * 70, y: Math.min(from.y, to.y) - 90 - s.s * 40 };
+ const pt = quad(from, ctl, to, inOutCubic(k));
+ speck(ctx, pt.x, pt.y, s.s < 0.3 ? 3 : 2, k < 0.5 ? "#E9D5FF" : "#FFFFFF", (k > 0.85 ? (1 - k) / 0.15 : 1) * 0.95, 0);
+ }
+ }
+ }
+ }} />
+ );
+}
+
+/** Here's My Church's review queue: fixes that wait for a moderator, then go live. */
+function Queue({ t }: { t: number }) {
+ // Stays up through the approvals, and gives way as "Fixes flow back." arrives.
+ const a = Math.min(outCubic(prog(t, T.orbitsIn + 0.6, T.orbitsIn + 1.2)), 1 - inOutCubic(prog(t, T.better1 - 0.55, T.better1 - 0.05)));
+ if (a <= 0) return null;
+ return (
+
+
+
+ Here's My Church
+ moderator review
+
+ {[0, 2, 4].map((ci, j) => {
+ const c = CITIES[ci];
+ const arrive = outCubic(prog(t, STREAM_AT(ci) + STREAM_DUR - 0.1, STREAM_AT(ci) + STREAM_DUR + 0.3));
+ const ok = outCubic(prog(t, T.review + j * 0.16, T.review + 0.25 + j * 0.16));
+ return (
+
+
+ {c.field} · {c.church}
+
+ 0.5 ? GREEN : "#DDD6FE", background: ok > 0.5 ? "rgba(74,222,128,.12)" : "rgba(167,139,250,.14)",
+ border: `1px solid ${ok > 0.5 ? "rgba(74,222,128,.24)" : "rgba(167,139,250,.2)"}` }}>
+ {ok > 0.5 ? `✓ ${STR.st.live}` : STR.st.in_review}
+
+
+ );
+ })}
+
+ );
+}
+
+/** The HUD pill over the globe, like the site's: the directory keeps every app in sync. */
+function Hud({ t }: { t: number }) {
+ const a = Math.min(outCubic(prog(t, T.brighten + 0.6, T.brighten + 1.2)), 1 - prog(t, T.ctaMove - 1.2, T.ctaMove - 0.4));
+ if (a <= 0) return null;
+ const cam = camera(t);
+ const blink = 0.55 + 0.45 * Math.cos(((t - T.brighten) / 2.4) * Math.PI * 2);
+ return (
+
+
+
+ Here's My Church → every app · synced every 5 minutes
+
+
+ );
+}
diff --git a/video/src/scenes/Opening.tsx b/video/src/scenes/Opening.tsx
new file mode 100644
index 0000000..74acfba
--- /dev/null
+++ b/video/src/scenes/Opening.tsx
@@ -0,0 +1,125 @@
+// Scenes 1–2, and the start of 3: one pixel of light scatters into the globe's dithered shading as
+// the planet rises; the headline arrives; the counter lights every church; then the headline breaks
+// into pixels that rain down into Dallas.
+
+import { useMemo } from "react";
+import { clamp, inCubic, inOutCubic, mix, outCubic, outQuint, prog, quad, rng } from "../ease.ts";
+import { MONO, SANS } from "../fonts.ts";
+import { cellThreshold, Dither, useTextPoints } from "../pixels/dither.tsx";
+import { PixelCanvas, speck, speckColor } from "../pixels/PixelCanvas.tsx";
+import { HEIGHT, T, WIDTH } from "../timeline.ts";
+import { Words } from "../ui/Words.tsx";
+import { camera, DALLAS, project, R0 } from "../world.ts";
+
+const ORIGIN = { x: WIDTH / 2, y: 640 };
+
+/** 1 · The first pixel, then its scatter into the sphere. */
+export function FirstLight({ t }: { t: number }) {
+ const parts = useMemo(() => {
+ const r = rng(7);
+ return Array.from({ length: 1100 }, () => {
+ // A point on the visible cap of the sphere, biased toward the lit upper-left limb.
+ const u = (r() * 2 - 1) * 0.92;
+ const depth = Math.pow(r(), 1.6) * 0.55;
+ return { u, depth, delay: r() * 0.5, dur: 1.4 + r() * 1.3, size: r() < 0.15 ? 3 : 2, k: r(), swirl: (r() - 0.5) * 520 };
+ });
+ }, []);
+ if (t > T.globeUp + 1.2) return null;
+ return (
+ {
+ // The pixel breathes before it breaks.
+ if (t < T.scatter + 0.08) {
+ const a = outCubic(prog(t, T.pixelIn, T.pixelIn + 0.5));
+ const breath = 0.5 + 0.5 * Math.sin((t - T.pixelIn) * 5.2 - Math.PI / 2);
+ const s = 4 + breath * 1.5 + 6 * clamp((t - T.scatter + 0.25) / 0.25);
+ const g = ctx.createRadialGradient(ORIGIN.x, ORIGIN.y, 0, ORIGIN.x, ORIGIN.y, 60 + breath * 30);
+ g.addColorStop(0, `rgba(196,181,253,${0.35 * a})`);
+ g.addColorStop(1, "rgba(124,58,237,0)");
+ ctx.fillStyle = g;
+ ctx.fillRect(ORIGIN.x - 120, ORIGIN.y - 120, 240, 240);
+ speck(ctx, ORIGIN.x, ORIGIN.y, s, "#EDE9FE", a, 3);
+ return;
+ }
+ const cam = camera(t);
+ const R = R0 * cam.scale, cy = cam.crest + R;
+ for (const p of parts) {
+ const k = clamp((t - T.scatter - p.delay * 0.4) / p.dur);
+ if (k <= 0) continue;
+ const e = outQuint(k);
+ const tx = WIDTH / 2 + p.u * R * 0.55;
+ const capY = cy - Math.sqrt(Math.max(0, R * R - (tx - WIDTH / 2) ** 2));
+ const ty = capY + 6 + p.depth * 420;
+ const c = { x: mix(ORIGIN.x, tx, 0.5) + p.swirl, y: Math.min(ORIGIN.y, ty) - 180 - p.k * 160 };
+ const pt = quad(ORIGIN, c, { x: tx, y: ty }, e);
+ const fade = k < 0.75 ? 1 : 1 - (k - 0.75) / 0.25;
+ speck(ctx, pt.x, pt.y, p.size, k < 0.5 ? "#EDE9FE" : speckColor(0.35 + p.k * 0.5), fade * (0.55 + 0.45 * p.k), p.size > 2 ? 2 : 0);
+ }
+ }} />
+ );
+}
+
+const HEAD = { text: "Church details, filled in.", size: 104, top: 196, w: 1500, h: 140 };
+const HEAD_FONT = `600 ${HEAD.size}px "Google Sans Flex"`;
+const HEAD_LS = -0.035 * HEAD.size;
+const GRAD = "linear-gradient(180deg, #FFFFFF 30%, #CFC3F5)";
+const DISSOLVE = 0.95;
+
+/** 2 · The headline, and 3 · its dissolve into pixels that rain across the globe. */
+export function Headline({ t, fonts }: { t: number; fonts: boolean }) {
+ const pts = useTextPoints(fonts, HEAD.text, HEAD_FONT, HEAD_LS, HEAD.w, HEAD.h, HEAD.h / 2, 4);
+ const seeded = useMemo(() => {
+ const r = rng(42);
+ const cell = 6, cols = Math.ceil(HEAD.w / cell), rows = Math.ceil(HEAD.h / cell);
+ return pts.map((p) => {
+ const th = cellThreshold(Math.floor(p.x / cell), Math.floor(p.y / cell), cols, rows, "down", 0.5, 3);
+ return { ...p, th, dur: 1.15 + r() * 0.9, jx: (r() - 0.5) * 1.6, jy: (r() - 0.5) * 1.0, lean: (r() - 0.5) * 260, k: r() };
+ });
+ }, [pts]);
+ if (t < T.headline - 0.1 || t > T.dissolve + DISSOLVE + 2.2) return null;
+ const left = (WIDTH - HEAD.w) / 2;
+ const p = 1 - inOutCubic(prog(t, T.dissolve, T.dissolve + DISSOLVE));
+ return (
+ <>
+
+
+
+
+
+ {t > T.dissolve && (
+ {
+ // The headline rains straight down, spreading across the whole globe.
+ const cam = camera(t);
+ const R = R0 * cam.scale, cy = cam.crest + R;
+ for (const q of seeded) {
+ const born = T.dissolve + (1 - q.th) * DISSOLVE;
+ const k = clamp((t - born) / q.dur);
+ if (t < born || k >= 1) continue;
+ const from = { x: left + q.x, y: HEAD.top + q.y };
+ const tx = WIDTH / 2 + (from.x - WIDTH / 2) * 1.3 + q.lean * 0.4;
+ const cap = cy - Math.sqrt(Math.max(0, R * R - (tx - WIDTH / 2) ** 2));
+ const to = { x: tx, y: cap + 14 + Math.abs(q.jy) * 420 };
+ const ctl = { x: mix(from.x, tx, 0.3), y: from.y + 160 + q.k * 120 };
+ const pt = quad(from, ctl, to, inCubic(k) * 0.35 + outCubic(k) * 0.65);
+ const fade = k > 0.8 ? 1 - (k - 0.8) / 0.2 : 1;
+ speck(ctx, pt.x, pt.y, q.k < 0.2 ? 3 : 2, k < 0.35 ? "#FFFFFF" : speckColor(0.6 + 0.4 * q.k), fade * (0.6 + 0.4 * q.a), 0);
+ }
+ }} />
+ )}
+ >
+ );
+}
+
+/** A soft bloom over a place on the globe, for where the story is happening. */
+export function PlaceGlow({ t, a, size = 340, color = "167,139,250" }: { t: number; a: number; size?: number; color?: string }) {
+ if (a <= 0.001) return null;
+ const pos = project(DALLAS.lat, DALLAS.lng, camera(t));
+ if (pos.y > HEIGHT + size || pos.depth < 0) return null;
+ return (
+
+ );
+}
+
+export { SANS };
diff --git a/video/src/scenes/Outro.tsx b/video/src/scenes/Outro.tsx
new file mode 100644
index 0000000..10bbc8d
--- /dev/null
+++ b/video/src/scenes/Outro.tsx
@@ -0,0 +1,86 @@
+// Scene 11 and the captions: the Lookup mark draws itself over the closing globe, the call to action,
+// and the fade to night. Captions for the middle of the film live here too, so their timing reads in
+// one place.
+
+import { inOutCubic, outCubic, prog } from "../ease.ts";
+import { MONO, SANS } from "../fonts.ts";
+import { Dither } from "../pixels/dither.tsx";
+import { SCENE, SECONDS, T } from "../timeline.ts";
+import { LookupMark } from "../ui/Mark.tsx";
+import { Caption, Words } from "../ui/Words.tsx";
+
+const GRAD = "linear-gradient(180deg, #FFFFFF 30%, #CFC3F5)";
+
+export function Outro({ t }: { t: number }) {
+ if (t < T.mark - 0.2) return null;
+ const tile = inOutCubic(prog(t, T.mark - 0.1, T.mark + 0.55));
+ const stroke = inOutCubic(prog(t, T.mark + 0.25, T.mark + 1.55));
+ const size = 112;
+ return (
+ <>
+
+
+
+
+
+
+
+
+
+ lookup.heresmychurch.com
+ · One script tag and no key.
+
+
+
+
+ {Math.round(587842 * outCubic(prog(t, T.url + 0.8, T.url + 2.2))).toLocaleString("en-US")}
+
+ churches· 19 countries
+
+ >
+ );
+}
+
+/** Night falls over everything at the very end. */
+export function FadeOut({ t }: { t: number }) {
+ const a = inOutCubic(prog(t, T.fadeOut, SECONDS));
+ if (a <= 0) return null;
+ return
;
+}
+
+/** The middle captions and scene 10's three lines in the sky. */
+export function Captions({ t }: { t: number }) {
+ return (
+ <>
+
+
+
+
+
+
+ {t > T.better1 - 0.1 && t < SCENE.outro + 0.4 && (
+
+ {[["Fixes flow back.", T.better1], ["Moderators review.", T.better2], ["Every app gets better data.", T.better3]].map(([s, at]) => (
+
+ ))}
+
+ )}
+ >
+ );
+}
diff --git a/video/src/scenes/Search.tsx b/video/src/scenes/Search.tsx
new file mode 100644
index 0000000..c1292dc
--- /dev/null
+++ b/video/src/scenes/Search.tsx
@@ -0,0 +1,194 @@
+// Scenes 3–5: a single church speck lifts off Dallas and becomes the caret of the search box; the
+// query types in; results cascade; Enter picks Grace Community Church; the box glides into the app's
+// form; and the picked row bursts into pixels that stream into every field.
+
+import { useMemo } from "react";
+import { clamp, inOutCubic, inOutSine, mix, outCubic, outQuint, prog, quad, rng } from "../ease.ts";
+import { Dither } from "../pixels/dither.tsx";
+import { PixelCanvas, speck, speckColor } from "../pixels/PixelCanvas.tsx";
+import { FIELDS, fieldAt, QUERY, T, WIDTH } from "../timeline.ts";
+import { CHURCH, LOOKS, RESULTS, widgetMix, RESULT_STAGES } from "../ui/tokens.ts";
+import { Popover, ResultRow, SearchBox } from "../ui/Widget.tsx";
+import { camera, R0 } from "../world.ts";
+import { churchFieldOnScreen, fieldOnScreen, HERO_BOX } from "./place.ts";
+
+const MORPH = 1.45;
+const VIOLETS = ["#5B21B6", "#6D28D9", "#7C3AED", "#7C3AED", "#8B5CF6", "#A78BFA"];
+const morphK = (t: number) => inOutCubic(prog(t, T.windowIn, T.windowIn + MORPH));
+
+/** The search box's screen rect, from the hero position into the app's church field. */
+export function boxRect(t: number) {
+ const m = morphK(t);
+ const f = churchFieldOnScreen(t);
+ return { x: mix(HERO_BOX.x, f.x, m), y: mix(HERO_BOX.y, f.y, m), w: mix(HERO_BOX.w, f.w, m), h: mix(HERO_BOX.h, f.h, m), s: mix(HERO_BOX.s, f.s, m), m };
+}
+
+const CARET = { x: HERO_BOX.x + 44 * HERO_BOX.s, y: HERO_BOX.y + HERO_BOX.h / 2 };
+
+/** Hands off to the app window's own church field once the morph is done. */
+export const BOX_HANDOFF = T.windowIn + MORPH + 0.05;
+
+/** Specks lift off all over the globe and gather into the search box's outline and caret. */
+export function Gather({ t }: { t: number }) {
+ const parts = useMemo(() => {
+ const r = rng(314);
+ const B = HERO_BOX, rad = 14 * B.s, per = 2 * (B.w + B.h);
+ return Array.from({ length: 640 }, () => {
+ // Where it starts: anywhere on the visible face of the globe.
+ const u = (r() * 2 - 1) * 0.86, depth = Math.pow(r(), 1.4);
+ // Where it lands: most on the box's edge, the rest on the caret.
+ let to: { x: number; y: number };
+ if (r() < 0.78) {
+ let d = r() * per;
+ if (d < B.w) to = { x: B.x + d, y: B.y };
+ else if ((d -= B.w) < B.h) to = { x: B.x + B.w, y: B.y + d };
+ else if ((d -= B.h) < B.w) to = { x: B.x + B.w - d, y: B.y + B.h };
+ else to = { x: B.x, y: B.y + B.h - (d - B.w) };
+ to = { x: Math.min(B.x + B.w - rad * 0.3, Math.max(B.x + rad * 0.3, to.x)), y: to.y };
+ } else to = { x: CARET.x + (r() - 0.5) * 6, y: CARET.y + (r() - 0.5) * 26 };
+ return { u, depth, to, start: r() * 0.55, dur: 0.85 + r() * 0.45, arc: 90 + r() * 200, k: r() };
+ });
+ }, []);
+ if (t < T.liftStart || t > T.liftEnd + 0.3) return null;
+ return (
+ {
+ const cam = camera(T.liftStart);
+ const R = R0 * cam.scale, cy = cam.crest + R;
+ for (const p of parts) {
+ const k = clamp((t - T.liftStart - p.start) / p.dur);
+ if (k <= 0 || k >= 1) continue;
+ const fx = WIDTH / 2 + p.u * R * 0.62;
+ const cap = cy - Math.sqrt(Math.max(0, R * R - (fx - WIDTH / 2) ** 2));
+ const from = { x: fx, y: cap + 16 + p.depth * 400 };
+ const ctl = { x: mix(from.x, p.to.x, 0.55), y: Math.min(from.y, p.to.y) - p.arc };
+ const pt = quad(from, ctl, p.to, inOutCubic(k));
+ const a = k < 0.12 ? k / 0.12 : k > 0.85 ? (1 - k) / 0.15 : 1;
+ speck(ctx, pt.x, pt.y, p.k < 0.25 ? 3 : 2, k > 0.55 ? "#FFFFFF" : speckColor(0.55 + 0.45 * p.k), a, p.k < 0.25 ? 2 : 0);
+ }
+ }} />
+ );
+}
+
+const STAGE_AT = [T.results, T.placeResults, T.finalResults];
+
+/** Which result set is showing: the search refreshes as the query grows. */
+export const stageAt = (t: number) => (t < T.placeResults ? 0 : t < T.finalResults ? 1 : 2);
+export const resultsAt = (t: number) => RESULT_STAGES[stageAt(t)];
+
+/** Each row eases in when its stage arrives, unless the same church already held that row. */
+function rowsIn(t: number) {
+ const st = stageAt(t), at = STAGE_AT[st], rows = RESULT_STAGES[st], prev = st ? RESULT_STAGES[st - 1] : null;
+ const k = rows.map((r, i) => (prev && prev[i].name === r.name ? 1
+ : outCubic(prog(t, at + 0.04 + i * (st ? 0.035 : 0.06), at + (st ? 0.3 : 0.5) + i * (st ? 0.035 : 0.06)))));
+ return [...k, outCubic(prog(t, T.results + 0.4, T.results + 0.8))];
+}
+
+export function SearchLayer({ t }: { t: number }) {
+ if (t < T.boxIn - 0.1 || t >= BOX_HANDOFF) return null;
+ const r = boxRect(t);
+ const look = widgetMix(r.m, LOOKS.plum.accent);
+ const s = r.s;
+ const w = r.w / s, h = r.h / s;
+
+ const typed = t < T.typeStart ? 0 : Math.min(QUERY.length, Math.floor((t - T.typeStart) / T.keyGap + 1e-6) + 1);
+ const chosen = t >= T.enter;
+ const text = chosen ? CHURCH.name : QUERY.slice(0, typed);
+ const blink = (t - T.boxIn) % 1.06 < 0.53 ? 1 : 0;
+ const caret = chosen ? 0 : t < T.liftEnd + 0.15 ? 0 : typed > 0 && t < T.typeEnd + 0.4 ? 1 : blink;
+ // A short spin before each refresh, as each search goes out.
+ const loading = STAGE_AT.some((at) => t > at - 0.24 && t < at + 0.02);
+ const spinner = loading && !chosen ? t * 1.45 : null;
+ const reveal = inOutCubic(prog(t, T.boxIn, T.boxIn + 0.8));
+ const radius = mix(14, LOOKS.plum.radius, r.m);
+
+ const pop = prog(t, T.results, T.results + 0.42);
+ const leave = outCubic(prog(t, T.enter, T.enter + 0.4));
+ const rowK = rowsIn(t);
+ const active = [inOutSine(prog(t, T.arrowDown, T.arrowDown + 0.12))];
+ const popW = w;
+
+ // The caret, a single speck stretching into a line as the box forms around it.
+ const caretGrow = outCubic(prog(t, T.liftEnd - 0.08, T.liftEnd + 0.2));
+
+ return (
+ <>
+ {t < T.boxIn + 0.8 && (
+
+ )}
+
+
+ 0.5 ? "Search by name or city" : "Search for a church"}
+ caret={caret} chosen={chosen} spinner={spinner} heroGlow={1 - r.m} fontSize={mix(17, 15, r.m)} />
+
+ {pop > 0 && leave < 1 && (
+
+ )}
+
+ >
+ );
+}
+
+/** The picked row, floating under the box after the popover closes, until it bursts. */
+function rowRect(t: number) {
+ const r = boxRect(t);
+ return { x: r.x + 7 * r.s, y: r.y + r.h + 15 * r.s, w: r.w - 14 * r.s, h: 52 * r.s, s: r.s, m: r.m };
+}
+
+export function PickedRow({ t }: { t: number }) {
+ if (t < T.enter || t > T.burst + 0.5) return null;
+ const tt = Math.min(t, BOX_HANDOFF - 0.01);
+ const r = rowRect(tt);
+ const look = widgetMix(r.m, LOOKS.plum.accent);
+ const p = 1 - inOutCubic(prog(t, T.burst, T.burst + 0.4));
+ const lift = outCubic(prog(t, T.enter, T.enter + 0.35));
+ return (
+
+ );
+}
+
+/** The burst: the picked row's pixels stream into the seven fields, each landing as its field fills. */
+export function FillStream({ t }: { t: number }) {
+ const parts = useMemo(() => {
+ const r = rng(99);
+ return Array.from({ length: 980 }, (_, n) => {
+ const field = n % FIELDS;
+ // Most pixels come from the row's two lines of text, the rest from its tile and body.
+ const zone = r();
+ const u = zone < 0.45 ? 0.1 + r() * 0.55 : zone < 0.75 ? 0.1 + r() * 0.42 : r();
+ const v = zone < 0.45 ? 0.28 + r() * 0.2 : zone < 0.75 ? 0.62 + r() * 0.16 : r();
+ return { field, u, v, start: r() * 0.3, end: r() * 0.22, lx: r(), ly: r(), swing: (r() - 0.5) * 2, k: r() };
+ });
+ }, []);
+ if (t < T.burst || t > fieldAt(FIELDS - 1) + 0.8) return null;
+ const row = rowRect(Math.min(T.burst, BOX_HANDOFF - 0.01));
+ return (
+ {
+ for (const p of parts) {
+ const born = T.burst + p.start;
+ const land = fieldAt(p.field) + 0.04 + p.end;
+ const k = clamp((t - born) / (land - born));
+ if (t < born || k >= 1) continue;
+ const from = { x: row.x + p.u * row.w, y: row.y + p.v * row.h };
+ const f = fieldOnScreen(p.field, t);
+ const to = { x: f.x + 10 + p.lx * (f.w - 20), y: f.y + 6 + p.ly * (f.h - 12) };
+ const ctl = { x: mix(from.x, to.x, 0.5) + p.swing * 240, y: Math.min(from.y, to.y) - 60 - p.k * 120 };
+ const e = inOutCubic(k);
+ const pt = quad(from, ctl, to, e);
+ const a = k < 0.1 ? k / 0.1 : k > 0.85 ? 1 - (k - 0.85) / 0.15 : 1;
+ // Over the white form, the pixels take the app's violet so they read; the brightest keep a lilac halo.
+ speck(ctx, pt.x, pt.y, p.k < 0.3 ? 4 : 3, VIOLETS[Math.floor(p.k * VIOLETS.length)], a, p.k < 0.3 ? 2 : 0);
+ }
+ }} />
+ );
+}
diff --git a/video/src/scenes/place.ts b/video/src/scenes/place.ts
new file mode 100644
index 0000000..9acca83
--- /dev/null
+++ b/video/src/scenes/place.ts
@@ -0,0 +1,131 @@
+// Where the app window and the search box sit over time, shared by the scenes that hand them off.
+// The window is shot like a camera would: wide for context, then close on whatever is happening (the
+// fields as they fill, the field being fixed, the share panel), with the world behind thrown out of
+// focus. In the code scene the camera tips the app back into 3D so the code shows as the layer beneath.
+
+import { inOutCubic, inOutQuint, outCubic, prog, track, type Ease, type Key } from "../ease.ts";
+import { fieldBox, WIN_W, winH, CHURCH_H, CHURCH_Y, MAIN_W, MAIN_X, PANEL_Y } from "../ui/AppWindow.tsx";
+import { LOOKS, type Look } from "../ui/tokens.ts";
+import { SCENE, T } from "../timeline.ts";
+
+/** The share panel's open amount. */
+export const panelOpen = (t: number) => (t < T.collapse ? outCubic(prog(t, T.panelIn, T.panelIn + 0.6)) : 1);
+
+type Shot = { s: number; cx: number; cy: number };
+/** A shot that puts window point (wx, wy) at screen point (sx, sy) at scale s. */
+const aim = (s: number, wx: number, wy: number, open = 0, sx = 960, sy = 540): Shot =>
+ ({ s, cx: sx - (wx - WIN_W / 2) * s, cy: sy - (wy - winH(open) / 2) * s });
+
+const WIDE = { s: 1.35, cx: 960, cy: 520 };
+/** Close on the fields grid as the data lands. */
+const FILL = aim(1.8, 594, 323, 0, 960, 560);
+/** After the fill: pulled back and high enough to leave the caption room. */
+const FILLED = { s: 1.35, cx: 960, cy: 495 };
+const FAN = { s: 0.7, cx: 960, cy: 520 };
+/** Face-on frame the code scene tips back from (and returns to). */
+export const LAYER = { s: 0.86, cx: 960, cy: 455 };
+const FIX = { s: 1.22, cx: 960, cy: 500 };
+/** Close on the service times field while it's edited. */
+const FIX_FIELD = aim(1.75, 831, 392, 0, 960, 520);
+/** Close on the share panel while it's sent. */
+const FIX_PANEL = aim(1.45, 594, PANEL_Y + 102, 1, 960, 545);
+/** After sharing: pulled back with the caption clear beneath. */
+const FIX_DONE = { s: 1.08, cx: 960, cy: 462 };
+
+const SHOTS: [number, Shot, Ease?][] = [
+ [0, WIDE], [T.burst + 0.2, WIDE], [T.burst + 0.95, FILL, inOutQuint], [T.filledNote - 0.15, FILL], [T.filledNote + 0.6, FILLED, inOutQuint],
+ [T.fan, FILLED], [T.fan + 1.2, FAN, inOutQuint], [SCENE.oneTag - 0.2, FAN], [SCENE.oneTag + 0.8, LAYER, inOutCubic],
+ [T.formBack - 0.2, LAYER], [T.formBack + 0.8, FIX, inOutQuint], [T.focusTimes - 0.55, FIX], [T.focusTimes, FIX_FIELD, inOutQuint],
+ [T.panelIn - 0.25, FIX_FIELD], [T.panelIn + 0.65, FIX_PANEL, inOutQuint], [T.live + 0.05, FIX_PANEL], [T.live + 0.7, FIX_DONE, inOutQuint],
+];
+const keys = (k: keyof Shot): Key[] => SHOTS.map(([at, s, e]) => [at, s[k], e]);
+const S_KEYS = keys("s"), X_KEYS = keys("cx"), Y_KEYS = keys("cy");
+
+export function winPlace(t: number) {
+ const s = track(t, S_KEYS), cx = track(t, X_KEYS), cy = track(t, Y_KEYS);
+ const open = panelOpen(t);
+ const H = winH(open);
+ return { s, left: cx - (WIN_W / 2) * s, top: cy - (H / 2) * s, H, open, cx, cy };
+}
+
+/** How out of focus the world behind is, in pixels: the background softens while the camera is close. */
+export function depthBlur(t: number) {
+ return track(t, [[0, 0], [T.burst + 0.2, 0], [T.burst + 0.95, 6], [T.filledNote - 0.15, 6], [T.filledNote + 0.6, 0],
+ [SCENE.oneTag + 0.2, 0], [SCENE.oneTag + 1.3, 5], [T.formBack - 0.7, 5], [T.formBack + 0.2, 0],
+ [T.focusTimes - 0.55, 0], [T.focusTimes, 6], [T.live + 0.05, 6], [T.live + 0.7, 0]]);
+}
+
+// ── The code scene: the app and its code as two layers in 3D ──
+
+const PERSPECTIVE = 1900;
+/** Where the code layer sits under the app, in the app window's own pixels, and how far below. */
+export const CODE_UNDER = { x: 520, y: 175, gap: 320 };
+
+/** 0 face-on, 1 fully tipped back. */
+export function layerTilt(t: number) {
+ return track(t, [[0, 0], [SCENE.oneTag + 0.15, 0], [SCENE.oneTag + 1.45, 1, inOutCubic], [T.formBack - 1.25, 1], [T.formBack - 0.2, 0, inOutCubic]]);
+}
+
+/**
+ * The camera turns about a pivot in window pixels: the window's center face-on, and once tipped, the
+ * middle of the app and its code layer together, pushed in close.
+ */
+function pivot(t: number) {
+ const pl = winPlace(t), k = layerTilt(t);
+ return { x: WIN_W / 2 + (690 - WIN_W / 2) * k, y: pl.H / 2 + (330 - pl.H / 2) * k };
+}
+
+function camera3d(t: number) {
+ const k = layerTilt(t), pl = winPlace(t);
+ // A slow drift in while tipped, so the shot breathes.
+ const drift = k * prog(t, SCENE.oneTag + 1.45, T.formBack - 1.25);
+ const persp = new DOMMatrix();
+ persp.m34 = -1 / PERSPECTIVE;
+ const s = pl.s * (1 + 0.5 * k + 0.08 * drift);
+ return new DOMMatrix().translate(pl.cx, pl.cy - 40 * k).multiply(persp)
+ .rotate(44 * k, 0, 0).rotate(0, 0, -20 * k - 5 * drift).scale(s, s, s);
+}
+
+/** Window pixels → screen, as a CSS matrix and a point projector. */
+export function appMatrix(t: number) {
+ const p = pivot(t);
+ return camera3d(t).translate(-p.x, -p.y, 0);
+}
+export function codeMatrix(t: number) {
+ const p = pivot(t), k = layerTilt(t);
+ return camera3d(t).translate(-p.x + CODE_UNDER.x, -p.y + CODE_UNDER.y, -CODE_UNDER.gap * k);
+}
+export function project(m: DOMMatrix, x: number, y: number) {
+ const p = m.transformPoint(new DOMPoint(x, y, 0, 1));
+ return { x: p.x / p.w, y: p.y / p.w };
+}
+
+export type Place = ReturnType;
+/** Window pixels → screen (follows the 3D layer camera too). */
+export const toFilm = (p: { x: number; y: number }, _pl: Place, t?: number) => {
+ if (t !== undefined) return project(appMatrix(t), p.x, p.y);
+ return { x: _pl.left + p.x * _pl.s, y: _pl.top + p.y * _pl.s };
+};
+
+/** A field's input box on screen (face-on shots). */
+export function fieldOnScreen(i: number, t: number) {
+ const pl = winPlace(t), b = fieldBox(i, pl.open);
+ return { x: pl.left + b.x * pl.s, y: pl.top + b.y * pl.s, w: b.w * pl.s, h: b.h * pl.s };
+}
+
+/** The window's church field on screen: where the hero search box lands. */
+export function churchFieldOnScreen(t: number) {
+ const pl = winPlace(t);
+ return { x: pl.left + MAIN_X * pl.s, y: pl.top + CHURCH_Y * pl.s, w: MAIN_W * pl.s, h: CHURCH_H * pl.s, s: pl.s };
+}
+
+/** The look the window wears: plum, then two token swaps, then back to plum for the fan. */
+export const WIPES: { at: number; from: Look; to: Look }[] = [
+ { at: T.teal, from: LOOKS.plum, to: LOOKS.teal },
+ { at: T.amber, from: LOOKS.teal, to: LOOKS.amber },
+ { at: T.fan, from: LOOKS.amber, to: LOOKS.plum },
+];
+export const WIPE_DUR = 0.6;
+
+/** The hero search box: centered in the sky above Dallas. */
+export const HERO_BOX = { x: 557, y: 248, w: 806.4, h: 84, s: 1.4 };
diff --git a/video/src/timeline.ts b/video/src/timeline.ts
new file mode 100644
index 0000000..bdc2469
--- /dev/null
+++ b/video/src/timeline.ts
@@ -0,0 +1,251 @@
+// The film's clock: every visual beat and sound cue, in seconds from the start. Both the picture
+// (src/) and the score script (scripts/score.ts) read this file, so cuts and sounds can't drift apart.
+// Plain TypeScript with no runtime imports, so Node can run it directly.
+
+export const FPS = 60;
+export const WIDTH = 1920;
+export const HEIGHT = 1080;
+/** Length of the story, in story seconds (the time every beat below is written in). */
+export const SECONDS = 74.5;
+
+/**
+ * Pacing. The story is written at a comfortable speed; the film plays it back faster where little is
+ * happening and at full weight where it matters. Each span plays at `speed`× (story seconds per film
+ * second), with half-second eased changes between spans so motion never lurches.
+ */
+const WARP: [from: number, to: number, speed: number][] = [
+ [0, 5.5, 1.3], // first light
+ [5.5, 8.8, 1.5], // headline
+ [8.8, 12.0, 1.3], // rain and gather
+ [12.0, 16.3, 1.15], // the search
+ [16.3, 19.1, 1.25], // window builds
+ [19.1, 21.8, 1.1], // the fill: full weight
+ [21.8, 24.7, 1.5], // filled-form hold
+ [24.7, 30.3, 1.4], // styles and the fan
+ [30.3, 38.3, 1.12], // the code layer: full weight
+ [38.3, 47.3, 1.35], // the fix
+ [47.3, 51.6, 1.05], // home to Dallas: full weight
+ [51.6, 58.4, 1.35], // every app
+ [58.4, 66.4, 1.55], // better data
+ [66.4, 74.5, 1.25], // Lookup
+];
+const STEP = 1 / 600;
+function speedAt(s: number): number {
+ let v = WARP[0][2];
+ for (let i = 1; i < WARP.length; i++) {
+ const at = WARP[i][0], k = Math.min(1, Math.max(0, (s - at + 0.25) / 0.5));
+ v += (WARP[i][2] - WARP[i - 1][2]) * k * k * (3 - 2 * k);
+ }
+ return v;
+}
+// Film time at each story step, integrated once.
+const OUT: number[] = [0];
+for (let s = 0; s < SECONDS + 1; s += STEP) OUT.push(OUT[OUT.length - 1] + STEP / speedAt(s + STEP / 2));
+
+/** Story time → film time. */
+export function toOut(s: number): number {
+ const i = Math.max(0, Math.min(OUT.length - 2, Math.floor(s / STEP)));
+ return OUT[i] + (OUT[i + 1] - OUT[i]) * (s / STEP - i);
+}
+/** Film time → story time. */
+export function toStory(o: number): number {
+ let lo = 0, hi = OUT.length - 1;
+ while (hi - lo > 1) { const m = (lo + hi) >> 1; if (OUT[m] <= o) lo = m; else hi = m; }
+ return (lo + (o - OUT[lo]) / Math.max(1e-9, OUT[lo + 1] - OUT[lo])) * STEP;
+}
+
+/** The film's real length. */
+export const OUT_SECONDS = Math.ceil(toOut(SECONDS) * 10) / 10;
+export const DURATION = Math.round(OUT_SECONDS * FPS);
+
+/** The query typed into the search box, one key at a time; results refresh as it grows. */
+export const QUERY = "church in dallas";
+const TYPE = 12.0;
+const KEY_GAP = 0.1;
+/** When the nth character (1-based) of the query lands. */
+export const keyAt = (n: number) => TYPE + (n - 1) * KEY_GAP;
+
+// Later acts are laid out relative to the beats before them, so tightening one moves the rest.
+const A = 16.3 - 24.55; // straight from the headline into the search
+const STYLES = 30.05 + A + 2.9; // a short hold on the filled form, then the token swaps
+const B = STYLES + 5.6 - 45; // the swaps and fan are quicker
+const C = 1.1; // a longer, deeper dive into Dallas
+
+/** Scene starts, matching the storyboard. */
+export const SCENE = {
+ firstLight: 0,
+ everyChurch: 5.5,
+ find: 8.8,
+ type: 12,
+ fill: 28 + A,
+ styles: STYLES,
+ oneTag: 45 + B,
+ fix: 53 + B,
+ source: 62 + B,
+ better: 72 + B + C,
+ outro: 80 + B + C,
+ end: SECONDS,
+} as const;
+
+/** Named beats. Scenes animate between these; the score lands sounds on them. */
+export const T = {
+ // 1 · First light
+ pixelIn: 0.35,
+ scatter: 1.45,
+ globeUp: 4.8,
+ rimStart: 3.6,
+ rimEnd: 5.3,
+ auroraIn: 4.4,
+
+ // 2 · Every church: the headline, while the globe lights up densest places first
+ headline: 5.6,
+ countStart: 5.8,
+ countEnd: 8.6,
+
+ // 3 · Find: the headline rains across the globe, then specks from all over it gather into the search box
+ dissolve: 8.8,
+ liftStart: 9.6,
+ liftEnd: 11.05,
+ boxIn: 10.75,
+ /** The map flies to Dallas once the query names it (see placeResults). */
+ flyStart: 12.0 + 11 * 0.1 + 0.1,
+ flyEnd: 12.0 + 11 * 0.1 + 0.1 + 2.4,
+ localGlow: 12.0 + 11 * 0.1 + 0.1 + 2.1,
+
+ // 4 · Type: results arrive after three letters and refresh as the query grows
+ typeStart: TYPE,
+ keyGap: KEY_GAP,
+ typeEnd: keyAt(QUERY.length) + KEY_GAP,
+ results: keyAt(3) + 0.2,
+ /** "church in da": the place is recognized and results move to Dallas. */
+ placeResults: keyAt(12) + 0.18,
+ /** The settled results once typing pauses. */
+ finalResults: keyAt(QUERY.length) + 0.32,
+ arrowDown: 15.45,
+ enter: 16.3,
+
+ // 5 · Fill
+ windowIn: 25.15 + A,
+ burst: 27.35 + A,
+ fieldsStart: 28.3 + A,
+ fieldGap: 0.22,
+ filledNote: 30.05 + A,
+ fillCaption: 30.2 + A,
+
+ // 6 · Your styles
+ teal: STYLES,
+ amber: STYLES + 1.15,
+ fan: STYLES + 2.3,
+ stylesCaption: STYLES + 2.6,
+
+ // 7 · One tag
+ codeIn: 45.2 + B,
+ codeTypeStart: 45.9 + B,
+ codeTypeEnd: 49.3 + B,
+ links: 49.6 + B,
+ tagCaption: 49.8 + B,
+
+ // 8 · Fix
+ formBack: 53.0 + B,
+ focusTimes: 54.3 + B,
+ deleteStart: 54.75 + B,
+ retypeStart: 55.55 + B,
+ panelIn: 56.55 + B,
+ shareClick: 58.15 + B,
+ live: 59.0 + B,
+ fixCaption: 59.1 + B,
+
+ // 9 · Back to the source: a deep dive into Dallas, then all the way out
+ collapse: 62.0 + B,
+ arcStart: 63.0 + B,
+ impact: 64.6 + B,
+ pullBack: 65.2 + B + C,
+ orbitsIn: 66.4 + B + C,
+ review: 70.2 + B + C,
+ sourceCaption: 67.2 + B + C,
+
+ // 10 · Better for everyone
+ brighten: 72.0 + B + C,
+ outflow: 74.0 + B + C,
+ better1: 72.6 + B + C,
+ better2: 74.2 + B + C,
+ better3: 75.8 + B + C,
+
+ // 11 · Lookup
+ ctaMove: 80.0 + B + C,
+ mark: 81.0 + B + C,
+ wordmark: 82.4 + B + C,
+ url: 83.6 + B + C,
+ fadeOut: 86.3 + B + C,
+} as const;
+
+/** The seven fields Lookup fills, in fill order. */
+export const FIELDS = 7;
+export const fieldAt = (i: number) => T.fieldsStart + i * T.fieldGap;
+
+/** The keys typed while fixing service times: backspaces over "9:00 am", then "10:30 am". */
+export const FIX_DELETE = "9:00 am".length;
+export const FIX_TYPE = "10:30 am";
+export const FIX_KEY_GAP = 0.09;
+
+/** Code typing: characters per second for the code panel. */
+export const CODE_CPS = 120;
+
+/** Sound cues, in seconds, for the score and the effects track. */
+export type Cue = { at: number; kind: CueKind; i?: number; gain?: number };
+export type CueKind =
+ | "swell" | "scatter" | "shimmer" | "sparkle" | "whoosh" | "lift" | "clickIn" | "key" | "rows"
+ | "select" | "build" | "burst" | "fill" | "done" | "swipe" | "fan" | "codeKey" | "link"
+ | "backspace" | "panel" | "click" | "live" | "collapse" | "arc" | "impact" | "pullBack"
+ | "stream" | "approve" | "brighten" | "resolve" | "tail"
+ // Moments with their own voice:
+ | "gather" | "space" | "locate" | "zoom" | "card" | "flip" | "synced" | "stroke" | "count";
+
+export function cues(): Cue[] {
+ const c: Cue[] = [];
+ c.push({ at: 0, kind: "swell" });
+ c.push({ at: T.scatter, kind: "scatter" });
+ c.push({ at: T.rimStart, kind: "shimmer" });
+ c.push({ at: T.countStart, kind: "sparkle" });
+ c.push({ at: T.flyStart, kind: "whoosh" });
+ c.push({ at: T.liftStart, kind: "gather" });
+ c.push({ at: T.boxIn + 0.25, kind: "clickIn" });
+ for (let i = 1; i <= QUERY.length; i++) c.push({ at: keyAt(i), kind: QUERY[i - 1] === " " ? "space" : "key", i });
+ c.push({ at: T.placeResults, kind: "locate" });
+ c.push({ at: T.flyStart, kind: "zoom" });
+ c.push({ at: T.results, kind: "rows" });
+ c.push({ at: T.placeResults, kind: "rows", i: 1 });
+ c.push({ at: T.finalResults, kind: "rows", i: 2 });
+ c.push({ at: T.arrowDown, kind: "key", i: 99 });
+ c.push({ at: T.enter, kind: "select" });
+ c.push({ at: T.windowIn, kind: "build" });
+ c.push({ at: T.burst, kind: "burst" });
+ for (let i = 0; i < FIELDS; i++) c.push({ at: fieldAt(i), kind: "fill", i });
+ c.push({ at: T.filledNote, kind: "done" });
+ c.push({ at: T.teal, kind: "swipe" });
+ c.push({ at: T.amber, kind: "swipe", i: 1 });
+ c.push({ at: T.fan, kind: "fan" });
+ const codeKeys = Math.floor((T.codeTypeEnd - T.codeTypeStart) * 14);
+ for (let i = 0; i < codeKeys; i++) c.push({ at: T.codeTypeStart + i / 14, kind: "codeKey", i });
+ for (let i = 0; i < 3; i++) c.push({ at: T.links + i * 0.28, kind: "link", i });
+ for (let i = 0; i < FIX_DELETE; i++) c.push({ at: T.deleteStart + i * FIX_KEY_GAP, kind: "backspace", i });
+ for (let i = 0; i < FIX_TYPE.length; i++) c.push({ at: T.retypeStart + i * FIX_KEY_GAP, kind: "key", i: 50 + i });
+ c.push({ at: T.panelIn, kind: "panel" });
+ c.push({ at: T.shareClick, kind: "click" });
+ c.push({ at: T.live, kind: "live" });
+ c.push({ at: T.collapse, kind: "collapse" });
+ c.push({ at: T.arcStart, kind: "arc" });
+ c.push({ at: T.impact, kind: "impact" });
+ c.push({ at: T.impact + 0.12, kind: "card" });
+ c.push({ at: T.impact + 0.6, kind: "flip" });
+ c.push({ at: T.pullBack, kind: "pullBack" });
+ for (let i = 0; i < 9; i++) c.push({ at: T.orbitsIn + 0.6 + i * 0.47, kind: "stream", i });
+ c.push({ at: T.review, kind: "approve" });
+ c.push({ at: T.brighten, kind: "brighten" });
+ for (let n = 0; n < 12; n++) c.push({ at: T.outflow + 1.0 + (n % 6) * 0.35 + Math.floor(n / 6) * 1.6, kind: "synced", i: n });
+ c.push({ at: T.mark, kind: "resolve" });
+ c.push({ at: T.mark + 0.25, kind: "stroke" });
+ c.push({ at: T.url + 0.8, kind: "count" });
+ c.push({ at: T.fadeOut - 0.4, kind: "tail" });
+ return c.sort((a, b) => a.at - b.at);
+}
diff --git a/video/src/ui/AppWindow.tsx b/video/src/ui/AppWindow.tsx
new file mode 100644
index 0000000..fc7fc33
--- /dev/null
+++ b/video/src/ui/AppWindow.tsx
@@ -0,0 +1,261 @@
+// The homepage's "Kinship" app window (site/index.html .win), laid out absolutely so the film knows
+// exactly where every field sits: the streams of pixels and the code links aim at these boxes.
+
+import type { CSSProperties, ReactNode } from "react";
+import { MONO, SANS } from "../fonts.ts";
+import { LookupMark } from "./Mark.tsx";
+import { APP, CHURCH, FORM_FIELDS, mixc, STR, widgetMix, type Look } from "./tokens.ts";
+import { SearchBox } from "./Widget.tsx";
+
+// Geometry, in the window's own pixels.
+export const WIN_W = 1000;
+export const BAR = 42;
+const SIDE = 188;
+export const MAIN_X = SIDE + 28;
+export const MAIN_W = WIN_W - MAIN_X - 28;
+export const CHURCH_Y = 174;
+export const CHURCH_H = 46;
+export const PANEL_Y = CHURCH_Y + CHURCH_H + 14;
+export const PANEL_H = 204;
+const GRID_Y = PANEL_Y + 2;
+const ROW = 46;
+const COL_W = (MAIN_W - 20) / 2;
+const LABEL_W = 96;
+const FOOT_H = 58;
+
+export const gridY = (open: number) => GRID_Y + open * (PANEL_H + 14);
+
+/** The card that holds just the church field and the form fields, for the code scene. */
+export const FIELDS_CARD = { x: MAIN_X - 30, y: CHURCH_Y - 30, w: MAIN_W + 60 };
+export const fieldsCardH = (open: number) => gridY(open) + 4 * ROW - 10 + 30 - FIELDS_CARD.y;
+export const winH = (open: number) => gridY(open) + 4 * ROW - 10 + 20 + FOOT_H;
+
+/** Field i's input box, in window pixels. Field 0 spans the row; the rest pair up. */
+export function fieldBox(i: number, open = 0) {
+ const r = i === 0 ? 0 : Math.ceil(i / 2);
+ const c = i === 0 ? 0 : (i - 1) % 2;
+ const x = MAIN_X + c * (COL_W + 20) + LABEL_W + 10;
+ const w = i === 0 ? MAIN_W - LABEL_W - 10 : COL_W - LABEL_W - 10;
+ return { x, y: gridY(open) + r * ROW, w, h: 36, labelX: MAIN_X + c * (COL_W + 20) };
+}
+
+export type PanelState = {
+ /** 0..1, how far the panel has opened. */
+ open: number;
+ /** Button phase: 0 idle, 1 sending, 2 done. */
+ phase: 0 | 1 | 2;
+ /** Pressed-in amount for the click, 0..1. */
+ press: number;
+ /** 0..1 badge turning to "Live now". */
+ live: number;
+};
+
+export type WindowProps = {
+ look: Look;
+ /** Per-field fill progress 0..1; under 1 the value is masked by the caller. */
+ values?: string[];
+ filled?: number[];
+ status?: { text: string; done: boolean };
+ church?: { text: string; chosen: boolean; show: boolean };
+ focus?: { i: number; ring: number; caret: number };
+ panel?: PanelState;
+ /** Render something over a field's value (the dither mask while it fills). */
+ renderValue?: (i: number, node: ReactNode, box: { w: number; h: number }) => ReactNode;
+ /** 0..1 strips the window down to outlines, for the code scene. */
+ wire?: number;
+ style?: CSSProperties;
+ appName?: string;
+};
+
+const Icon = ({ d, size = 15 }: { d: string; size?: number }) => (
+
+);
+
+const NAV = [
+ ["Home", "M2.5 7.5 8 3l5.5 4.5V13a.5.5 0 0 1-.5.5H3a.5.5 0 0 1-.5-.5z"],
+ ["Churches", "M8 1.5v3M6.5 3h3M3.5 14V8L8 5l4.5 3v6M6.5 14v-3a1.5 1.5 0 0 1 3 0v3M2 14h12"],
+ ["Events", "M3 3.5h10v10H3zM3 6.5h10M5.5 2v3M10.5 2v3"],
+ ["People", "M6 7.5a2.25 2.25 0 1 0 0-4.5 2.25 2.25 0 0 0 0 4.5zM2 13.5c0-2.2 1.8-4 4-4s4 1.8 4 4M11 3.2a2.2 2.2 0 0 1 0 4.2M12 9.7c1.2.5 2 1.9 2 3.8"],
+ ["Giving", "M8 13.5S2.5 10.3 2.5 6.4A2.9 2.9 0 0 1 8 5a2.9 2.9 0 0 1 5.5 1.4C13.5 10.3 8 13.5 8 13.5z"],
+] as const;
+
+export function AppWindow({ look, values, filled = [], status, church, focus, panel, renderValue, wire = 0, style }: WindowProps) {
+ const open = panel?.open ?? 0;
+ const H = winH(open);
+ const acc = look.accent;
+ const rad = (cap: number) => Math.min(look.radius, cap);
+ const vals = values ?? FORM_FIELDS.map((f) => f.value);
+ const fade = 1 - wire;
+ const line = mixc(APP.line, "rgba(196,181,253,0.35)", wire);
+ return (
+
+ {/* Title bar */}
+
+
+ {["#FF5F57", "#FEBC2E", "#28C840"].map((c) => )}
+
+
+
+
+ app.kinship.church/churches/new
+
+
+
+
+
+ {/* Sidebar */}
+
+
+
+
+
+ Kinship Westside Network
+
+
+ {NAV.map(([label, d]) => {
+ const on = label === "Churches";
+ return (
+
+ {label}
+
+ );
+ })}
+
+
+ JD
+ Jordan DiazAdmin
+
+
+
+ {/* Main */}
+
+
Churches/ New
+
Add a church
+
+ {status?.text ?? "Pick a church above and Lookup fills this in."}
+
+
Find the church
+
+ {wire > 0 && (
+
+ )}
+ {church?.show && (
+
+ )}
+
+ {panel && open > 0 &&
}
+
+ {/* Fields */}
+ {FORM_FIELDS.map((f, i) => {
+ const b = fieldBox(i, open);
+ const k = filled[i] ?? 0;
+ const foc = focus && focus.i === i ? focus : null;
+ const value = (
+
+ {vals[i]}
+ {foc && foc.caret > 0 && }
+
+ );
+ return (
+
+
{f.label}
+
+
—
+ {wire > 0 && (
+
{f.key}
+ )}
+
+ {renderValue ? renderValue(i, value, { w: b.w, h: b.h }) : k >= 1 ? value : null}
+
+
+
+ );
+ })}
+
+ {/* Footer */}
+
+
+ Autofilled by Lookup
+
+ Cancel
+ Save church
+
+
+ );
+}
+
+/** The widget's share-fixes panel (element.ts .cs), with the real strings. */
+function SharePanel({ look, panel }: { look: Look; panel: PanelState }) {
+ const acc = look.accent;
+ const w = widgetMix(1, acc);
+ const r = Math.min(look.radius, 10);
+ const badgeLive = panel.live;
+ const badgeBg = mixc(mixc("rgba(0,0,0,0)", acc, 0.12), "rgba(22,163,74,0.14)", badgeLive);
+ const badgeFg = mixc(acc, "#15803D", badgeLive);
+ const btn = panel.phase === 0 ? STR.shareN(1) : panel.phase === 1 ? STR.sending : STR.done;
+ return (
+
+
+
{STR.shareTitle}
+
{STR.shareBody}
+
+
+
+
+
Service times
+
+ {CHURCH.times} → {CHURCH.fixedTimes}
+
+
+ {badgeLive > 0.5 && }
+ {badgeLive > 0.5 ? STR.st.live : STR.goesLive}
+
+
+
+ {btn}
+ {panel.phase === 0 && (
+ {STR.notNow}
+ )}
+
+
+
+ );
+}
+
+/** Where the share panel's fix row sits, in window pixels (for the pixel that carries it home). */
+export const FIX_ROW = { x: MAIN_X + 16, y: PANEL_Y + 66, w: 380, h: 66 };
+/** The share button's center, in window pixels. */
+export const SHARE_BTN = { x: MAIN_X + 14 + 54, y: PANEL_Y + 166 };
+
+export const monoLabel: CSSProperties = { fontFamily: MONO, fontSize: 12 };
diff --git a/video/src/ui/CodePanel.tsx b/video/src/ui/CodePanel.tsx
new file mode 100644
index 0000000..2cb0e72
--- /dev/null
+++ b/video/src/ui/CodePanel.tsx
@@ -0,0 +1,74 @@
+// The quickstart snippet in the site's lookup-dark theme, typed out character by character.
+// Tokens come from scripts/highlight.mjs (Shiki), so colors match the docs exactly.
+
+import { MONO } from "../fonts.ts";
+import code from "./code-tokens.json";
+
+type Tok = { c: string; f: string };
+const LINES = code.lines as Tok[][];
+
+export const CODE_FONT = 17;
+export const CODE_LH = 30;
+export const CODE_PAD = { x: 28, top: 58 };
+/** Geist Mono advances 0.6em per character. */
+export const CHAR_W = CODE_FONT * 0.6;
+export const CODE_W = 800;
+export const CODE_H = CODE_PAD.top + LINES.length * CODE_LH + 26;
+export const TOTAL_CHARS = LINES.reduce((n, l) => n + l.reduce((m, t) => m + t.c.length, 0) + 1, 0);
+
+/** Lines holding data-hmc-field, and the column where that attribute starts, for drawing links. */
+export const ATTR_LINES = LINES.map((l, i) => {
+ const text = l.map((t) => t.c).join("");
+ const col = text.indexOf("data-hmc-field");
+ return col >= 0 ? { line: i, col, len: text.length - col } : null;
+}).filter((x): x is { line: number; col: number; len: number } => !!x);
+
+export function attrPoint(a: { line: number; col: number; len: number }) {
+ return { x: CODE_PAD.x + (a.col + a.len) * CHAR_W + 6, y: CODE_PAD.top + a.line * CODE_LH + CODE_LH / 2, x0: CODE_PAD.x + a.col * CHAR_W };
+}
+
+export function CodePanel({ chars, glow = [], caret = 1 }: { chars: number; glow?: number[]; caret?: number }) {
+ let left = chars;
+ let caretAt: { line: number; col: number } | null = null;
+ const rows = LINES.map((line, li) => {
+ const out: { c: string; f: string }[] = [];
+ let col = 0;
+ for (const t of line) {
+ if (left <= 0) break;
+ const take = Math.min(left, t.c.length);
+ out.push({ c: t.c.slice(0, take), f: t.f });
+ left -= take; col += take;
+ if (take < t.c.length) break;
+ }
+ if (left > 0) left -= 1; // the newline
+ else if (!caretAt) caretAt = { line: li, col };
+ return out;
+ });
+ if (!caretAt) caretAt = { line: LINES.length - 1, col: LINES[LINES.length - 1].reduce((n, t) => n + t.c.length, 0) };
+ const c = caretAt as { line: number; col: number };
+ return (
+
+
+ signup.html
+ HTML
+
+ {ATTR_LINES.map((a, i) => {
+ const g = glow[i] ?? 0;
+ if (g <= 0) return null;
+ const p = attrPoint(a);
+ return
;
+ })}
+ {rows.map((r, i) => (
+
+ {r.map((t, j) => {t.c} )}
+
+ ))}
+
+
+ );
+}
diff --git a/video/src/ui/Mark.tsx b/video/src/ui/Mark.tsx
new file mode 100644
index 0000000..5a271f7
--- /dev/null
+++ b/video/src/ui/Mark.tsx
@@ -0,0 +1,29 @@
+// The Lookup mark (site/brand/mark.svg): a cursive "l" in one stroke on a plum tile. `draw` animates
+// the stroke on, 0..1. ids are suffixed so several marks can share a page.
+
+export function LookupMark({ size, draw = 1, id = "m" }: { size: number; draw?: number; id?: string }) {
+ return (
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ );
+}
diff --git a/video/src/ui/OtherApps.tsx b/video/src/ui/OtherApps.tsx
new file mode 100644
index 0000000..397ccbe
--- /dev/null
+++ b/video/src/ui/OtherApps.tsx
@@ -0,0 +1,79 @@
+// Two more of the site's demo apps (site/demo/harvest.html and steeple.html), drawn small for the
+// "your app, your styles" fan. Each shows the same church, filled by the same widget in its own look.
+
+import { SANS } from "../fonts.ts";
+import { CHURCH, mixc, widgetMix } from "./tokens.ts";
+import { SearchBox } from "./Widget.tsx";
+
+const Bar = ({ url, dark }: { url: string; dark?: boolean }) => (
+
+ {["#FF5F57", "#FEBC2E", "#28C840"].map((c) => )}
+
+ {url}
+
+
+);
+
+const Field = ({ label, value, accent, radius, dark }: { label: string; value: string; accent: string; radius: number; dark?: boolean }) => (
+
+ {label}
+ {value}
+
+);
+
+/** Harvest: a food-pantry partner sign-up, warm paper and tomato red. */
+export function HarvestApp({ w = 760 }: { w?: number }) {
+ const accent = "#C8371D";
+ return (
+
+
+
+
+ Partner sign-up · 10 minutes
+
+ Your church already has the door. We'll bring the food.
+
+
+
+ Your church
+
+
+
+
+
+
+
+
+ );
+}
+
+/** Steeple: a church website builder, dark with a lime accent and a live preview. */
+export function SteepleApp({ w = 760 }: { w?: number }) {
+ const accent = "#D2F25C";
+ const look = { ...widgetMix(1, accent), bg: "#18181B", text: "#FAFAFA", inputBorder: "#3F3F46", border: "#27272A", muted: "#A1A1AA", popover: "#18181B" };
+ return (
+
+
+
+
+
Start with your church
+
Find your church and the site writes its first draft. Fix anything that's out of date.
+
+
+
+
+
+ Welcome home · {CHURCH.city}
+ {CHURCH.name}
+ {CHURCH.times} · {CHURCH.street}
+ Plan a visit
+
+
+
+
+ );
+}
diff --git a/video/src/ui/Widget.tsx b/video/src/ui/Widget.tsx
new file mode 100644
index 0000000..3e43e3c
--- /dev/null
+++ b/video/src/ui/Widget.tsx
@@ -0,0 +1,125 @@
+// A display-only copy of the widget: its input, results popover and footer, drawn
+// from the element's own CSS (packages/sdk/src/element.ts) so it looks exactly like the product.
+
+import type { CSSProperties } from "react";
+import { SANS } from "../fonts.ts";
+import { mixc, STR, type WidgetLook } from "./tokens.ts";
+
+export const SearchIcon = ({ size = 20, color }: { size?: number; color: string }) => (
+
+
+
+);
+
+export const ChurchIcon = ({ size = 16, color }: { size?: number; color: string }) => (
+
+
+
+);
+
+/** Here's My Church's mark: a lilac cursive "h" on a plum tile. */
+export const HmcMark = ({ size = 20 }: { size?: number }) => (
+
+
+
+
+);
+
+const ClearIcon = ({ color }: { color: string }) => (
+
+);
+
+export function SearchBox({ look, w, h = 52, radius = 10, text, placeholder, caret = 0, chosen = false, spinner = null, ring = 0, heroGlow = 0, fontSize = 17, style }: {
+ look: WidgetLook; w: number; h?: number; radius?: number; text: string; placeholder?: string; caret?: number; chosen?: boolean;
+ /** Spinner angle in turns while loading, or null. */
+ spinner?: number | null;
+ /** Focus ring strength 0..1. */
+ ring?: number;
+ /** The hero's violet halo under the box, 0..1. */
+ heroGlow?: number;
+ fontSize?: number;
+ style?: CSSProperties;
+}) {
+ const shadow = [
+ heroGlow ? `0 0 0 6px rgba(124,58,237,${0.1 * heroGlow}), 0 24px 60px -24px rgba(124,58,237,${0.75 * heroGlow})` : "",
+ ring ? `0 0 0 4px ${mixc(look.accent, "rgba(0,0,0,0)", 1 - 0.22 * ring)}` : "",
+ ].filter(Boolean).join(", ");
+ return (
+
+
+
+
+ {text || placeholder}
+ {caret > 0 && (
+ 0 ? 0 : 0),
+ background: look.text, opacity: caret, position: text ? "relative" : "absolute", left: text ? 0 : 0 }} />
+ )}
+
+ {chosen && (
+
+
+
+ )}
+ {spinner != null && (
+
+ )}
+
+ );
+}
+
+export type Row = { name: string; sub: string; d: string };
+
+/** One result row: tinted icon tile, name over location, distance on the right. */
+export function ResultRow({ row, look, w, active = 0, radius = 10, style }: { row: Row; look: WidgetLook; w: number; active?: number; radius?: number; style?: CSSProperties }) {
+ return (
+
+
+
+
+
+ {row.name}
+ {row.sub}
+
+
{row.d}
+
+ );
+}
+
+/** The results popover: rows, "Show more results", and the Here's My Church footer. rowK fades each row in. */
+export function Popover({ rows, look, w, active, rowK, radius = 10, footK = 1 }: {
+ rows: Row[]; look: WidgetLook; w: number; active: number[]; rowK: number[]; radius?: number; footK?: number;
+}) {
+ const inner = w - 12;
+ return (
+
+
+ {rows.map((r, i) => (
+
+ ))}
+
{STR.more}
+
+
+
+ {STR.dataFrom} Here's My Church
+ © OpenStreetMap
+
+
+ );
+}
diff --git a/video/src/ui/Words.tsx b/video/src/ui/Words.tsx
new file mode 100644
index 0000000..8e556a0
--- /dev/null
+++ b/video/src/ui/Words.tsx
@@ -0,0 +1,48 @@
+// Kinetic type: words arrive one at a time, from a soft blur and a few pixels low, to sharp.
+
+import type { CSSProperties } from "react";
+import { clamp, outCubic, prog } from "../ease.ts";
+import { SANS } from "../fonts.ts";
+
+export function Words({ text, t, at, out, stagger = 0.06, dur = 0.7, blur = 10, rise = 10, style, wordStyle, gradient }: {
+ text: string; t: number; at: number; out?: number; stagger?: number; dur?: number; blur?: number; rise?: number;
+ style?: CSSProperties; wordStyle?: CSSProperties; gradient?: string;
+}) {
+ const words = text.split(" ");
+ // Leaving: the whole line softens and lifts away together.
+ const leave = out == null ? 0 : outCubic(prog(t, out, out + 0.55));
+ return (
+
+ {words.map((w, i) => {
+ const k = outCubic(clamp((t - at - i * stagger) / dur));
+ return (
+ {w}
+ );
+ })}
+
+ );
+}
+
+/** A caption under the action, in the site's rounded heading face. */
+export function Caption({ text, t, at, out, y = 966, size = 36, muted }: { text: string; t: number; at: number; out: number; y?: number; size?: number; muted?: string }) {
+ if (t < at - 0.4 || t > out + 0.8) return null;
+ // A soft band of night under the caption, so it always has room to breathe above it.
+ const band = Math.min(clamp((t - at + 0.4) / 0.5), 1 - clamp((t - out - 0.2) / 0.6));
+ return (
+ <>
+
+
+
+ {muted && null}
+
+ >
+ );
+}
diff --git a/video/src/ui/code-tokens.json b/video/src/ui/code-tokens.json
new file mode 100644
index 0000000..e321180
--- /dev/null
+++ b/video/src/ui/code-tokens.json
@@ -0,0 +1 @@
+{"bg":"#16151C","lines":[[{"c":"","f":"#C4B5FD"}],[],[{"c":"","f":"#C4B5FD"}]]}
diff --git a/video/src/ui/tokens.ts b/video/src/ui/tokens.ts
new file mode 100644
index 0000000..9b40072
--- /dev/null
+++ b/video/src/ui/tokens.ts
@@ -0,0 +1,117 @@
+// Colors and copy, taken from the site (site/site.css) and the widget (packages/sdk/src/element.ts,
+// packages/sdk/src/strings.ts) so the film shows the real product.
+
+import { EN } from "../../../packages/sdk/src/strings.ts";
+
+export const STR = EN;
+
+export type RGBA = [number, number, number, number];
+
+export function rgba(c: string): RGBA {
+ if (c.startsWith("#")) {
+ const h = c.slice(1);
+ const n = h.length === 3 ? h.split("").map((x) => x + x).join("") : h;
+ return [parseInt(n.slice(0, 2), 16), parseInt(n.slice(2, 4), 16), parseInt(n.slice(4, 6), 16), 1];
+ }
+ const m = c.match(/rgba?\(([^)]+)\)/);
+ if (!m) throw new Error(`color ${c}`);
+ const p = m[1].split(/[\s,/]+/).filter(Boolean).map(Number);
+ return [p[0], p[1], p[2], p[3] ?? 1];
+}
+
+export const css = ([r, g, b, a]: RGBA) => `rgba(${Math.round(r)},${Math.round(g)},${Math.round(b)},${+a.toFixed(3)})`;
+
+/** Mix two colors, k = 0 gives a. */
+export function mixc(a: string, b: string, k: number): string {
+ const x = rgba(a), y = rgba(b);
+ return css([0, 1, 2, 3].map((i) => x[i] + (y[i] - x[i]) * k) as RGBA);
+}
+
+/** The widget's tokens: the hero's dark glass, and the default light look inside an app. */
+export const WIDGET = {
+ hero: {
+ bg: "rgba(255,255,255,0.05)", text: "#ffffff", inputBorder: "rgba(255,255,255,0.14)", border: "rgba(255,255,255,0.10)",
+ popover: "#110C22", accent: "#C4B5FD", active: "rgba(167,139,250,0.16)", muted: "rgba(239,237,253,0.55)",
+ },
+ app: {
+ bg: "#ffffff", text: "#18181b", inputBorder: "#a1a1aa", border: "#d4d4d8",
+ popover: "#ffffff", accent: "#7C3AED", active: "#f3effe", muted: "#52525b",
+ },
+} as const;
+
+export type WidgetLook = { -readonly [K in keyof typeof WIDGET.hero]: string };
+
+export function widgetMix(k: number, accent?: string): WidgetLook {
+ const out = {} as WidgetLook;
+ for (const key of Object.keys(WIDGET.hero) as (keyof WidgetLook)[]) {
+ out[key] = mixc(WIDGET.hero[key], key === "accent" && accent ? accent : WIDGET.app[key], k);
+ }
+ return out;
+}
+
+/** The app window's light theme (site.css :root) and the three looks from the homepage swatches. */
+export const APP = {
+ panel: "#FFFFFF", frame: "#EFEFF1", line: "#E4E4E7", line2: "#D4D4D8", text: "#111014", text2: "#3F3F46", muted: "#71717A",
+};
+
+export type Look = { name: string; accent: string; radius: number };
+export const LOOKS: Record<"plum" | "teal" | "amber", Look> = {
+ plum: { name: "Plum", accent: "#7C3AED", radius: 8 },
+ teal: { name: "Teal", accent: "#0F766E", radius: 999 },
+ amber: { name: "Amber", accent: "#B45309", radius: 2 },
+};
+
+/** The demo church. Fictional, with a 555 number, matching the site's own mockups. */
+export const CHURCH = {
+ name: "Grace Community Church",
+ street: "1420 Elm St",
+ city: "Dallas",
+ region: "Texas",
+ website: "gracecommunity.church",
+ phone: "(214) 555-0142",
+ times: "Sun 9:00 am",
+ fixedTimes: "Sun 10:30 am",
+ location: "1420 Elm St, Dallas, Texas",
+};
+
+export const RESULTS = [
+ { name: CHURCH.name, sub: CHURCH.location, d: "1.2 km", lat: 32.78, lng: -96.8 },
+ { name: "Grace Fellowship Dallas", sub: "Dallas, Texas", d: "3.8 km", lat: 32.81, lng: -96.77 },
+ { name: "Trinity Chapel", sub: "Dallas, Texas", d: "5.1 km", lat: 32.75, lng: -96.84 },
+ { name: "Hope Church Uptown", sub: "Dallas, Texas", d: "6.4 km", lat: 32.8, lng: -96.81 },
+ { name: "St. Mark's Parish", sub: "Dallas, Texas", d: "7.9 km", lat: 32.74, lng: -96.76 },
+];
+
+/**
+ * What the search shows as the query grows, nearest first, like the real widget: names starting
+ * "chu" near Dallas, then (once "church in da" reads as a place) churches in Dallas, then the settled
+ * list when typing pauses.
+ */
+export const RESULT_STAGES = [
+ [
+ { name: "Christ Church Dallas", sub: "Dallas, Texas", d: "2.4 km", lat: 32.79, lng: -96.78 },
+ { name: "Churchill Way Baptist", sub: "Dallas, Texas", d: "6.8 km", lat: 32.89, lng: -96.79 },
+ { name: "Church of the Living Water", sub: "Irving, Texas", d: "18 km", lat: 32.81, lng: -96.95 },
+ { name: "Church on the Hill", sub: "Garland, Texas", d: "21 km", lat: 32.91, lng: -96.64 },
+ { name: "Church of the Redeemer", sub: "Plano, Texas", d: "27 km", lat: 33.02, lng: -96.7 },
+ ],
+ [
+ { name: CHURCH.name, sub: CHURCH.location, d: "1.2 km", lat: 32.78, lng: -96.8 },
+ { name: "Christ Church Dallas", sub: "Dallas, Texas", d: "2.4 km", lat: 32.79, lng: -96.78 },
+ { name: "Grace Fellowship Dallas", sub: "Dallas, Texas", d: "3.8 km", lat: 32.81, lng: -96.77 },
+ { name: "Trinity Chapel", sub: "Dallas, Texas", d: "5.1 km", lat: 32.75, lng: -96.84 },
+ { name: "Churchill Way Baptist", sub: "Dallas, Texas", d: "6.8 km", lat: 32.89, lng: -96.79 },
+ ],
+ RESULTS,
+];
+
+/** The fields the app tags, in the order Lookup fills them. */
+export const FORM_FIELDS = [
+ { label: "Church name", value: CHURCH.name, key: "name" },
+ { label: "Street", value: CHURCH.street, key: "street" },
+ { label: "City", value: CHURCH.city, key: "city" },
+ { label: "Region", value: CHURCH.region, key: "regionName" },
+ { label: "Website", value: CHURCH.website, key: "website" },
+ { label: "Phone", value: CHURCH.phone, key: "phone" },
+ { label: "Service times", value: CHURCH.times, key: "serviceTimes" },
+] as const;
diff --git a/video/src/world.ts b/video/src/world.ts
new file mode 100644
index 0000000..d291d73
--- /dev/null
+++ b/video/src/world.ts
@@ -0,0 +1,123 @@
+// The hero world's camera: where the globe sits, which way it faces, and how lit each layer is,
+// as a function of film time. The globe, sky, aurora and arc all read this one state.
+
+import { inOutCubic, inOutQuint, linear, outCubic, outQuint, prog, track } from "./ease.ts";
+import { HEIGHT, SECONDS, T, WIDTH } from "./timeline.ts";
+
+/** The globe canvas pixel ratio: 2px church specks and 3px shading cells at 1080p. */
+export const DPR = 1.5;
+/** Globe radius at scale 1, as in globe.js: min(W × 0.66, 1300 × dpr). */
+export const R0 = Math.min(WIDTH * 0.66, 1300 * DPR);
+
+/** The demo church: Dallas, Texas. */
+export const DALLAS = { lat: 32.78, lng: -96.8 };
+/** In the close-up, Dallas sits this many degrees above the view's center, so it lands low on screen. */
+const TILT = 60;
+const CLOSE = { lat: DALLAS.lat - TILT, lng: DALLAS.lng - 14, scale: 2.2, crest: 430 };
+const WIDE = { lat: -16, scale: 1, crest: 560 };
+
+export type Cam = {
+ lat: number; lng: number; scale: number;
+ /** Screen y of the globe's top edge. */
+ crest: number;
+ reveal: number; gain: number; glow: number; shade: number; limb: number;
+ /** Opacity of the whole globe layer. */
+ alpha: number;
+ stars: number; aurora: number;
+ /** The horizon arc above the headline: how much is drawn, and its opacity. */
+ arc: number; arcAlpha: number;
+ orbits: number;
+ /** The night backdrop's violet glow. */
+ backdrop: number;
+};
+
+const L = linear, C = inOutCubic, Q = inOutQuint, O = outCubic;
+
+/** Seconds the pull-back from Dallas to the whole globe takes. */
+const WIDE_IN = 3.3;
+
+/** The base camera; scene 9's dive into Dallas overrides its framing (see `dive`). */
+function base(t: number): Cam {
+ return {
+ lat: track(t, [[0, WIDE.lat], [T.flyStart, WIDE.lat], [T.flyEnd, CLOSE.lat, Q], [T.collapse, CLOSE.lat], [T.pullBack, CLOSE.lat],
+ [T.pullBack + WIDE_IN, -13, Q], [T.ctaMove, -13], [T.ctaMove + 2.6, -18, Q]]),
+ lng: track(t, [[0, -74, L], [T.flyStart, -63, L], [T.flyEnd, CLOSE.lng, Q], [T.enter, CLOSE.lng + 0.5, L], [T.collapse, CLOSE.lng + 0.5, L],
+ [T.arcStart, CLOSE.lng], [T.pullBack, CLOSE.lng, L], [T.pullBack + WIDE_IN, -42, Q], [T.ctaMove, -31, L], [T.ctaMove + 2.6, -10, Q], [SECONDS, -5, L]]),
+ scale: track(t, [[0, 1], [T.flyStart, 1], [T.flyEnd, CLOSE.scale, Q], [T.pullBack, CLOSE.scale], [T.pullBack + WIDE_IN, 1, Q],
+ [T.ctaMove, 1], [T.ctaMove + 2.6, 1.8, Q], [SECONDS, 1.86, L]]),
+ crest: track(t, [[0, HEIGHT + 420], [T.scatter, HEIGHT + 420], [T.globeUp, WIDE.crest, outQuint], [T.flyStart, WIDE.crest],
+ [T.flyEnd, CLOSE.crest, Q], [T.burst + 0.4, CLOSE.crest], [T.burst + 2.2, 1015, C], [T.collapse + 0.2, 1015],
+ [T.arcStart + 0.9, CLOSE.crest, C], [T.pullBack, CLOSE.crest], [T.pullBack + WIDE_IN, WIDE.crest, Q], [T.ctaMove, WIDE.crest],
+ [T.ctaMove + 2.6, 690, Q], [SECONDS, 676, L]]),
+ reveal: track(t, [[0, 0], [T.countStart, 0], [T.countEnd, 1, (k) => 1 - Math.pow(1 - k, 2.2)]]),
+ gain: track(t, [[0, 1], [T.brighten, 1], [T.brighten + 3, 1.42, C], [T.ctaMove, 1.42], [T.ctaMove + 2.6, 1.15, C]]),
+ glow: track(t, [[0, 0], [T.scatter, 0], [T.globeUp - 0.6, 1, O], [T.brighten, 1], [T.brighten + 3, 1.6, C], [T.ctaMove + 2.6, 1.2, C]]),
+ shade: track(t, [[0, 0], [T.scatter + 0.3, 0], [T.globeUp, 1, O]]),
+ limb: track(t, [[0, 0], [T.rimStart, 0], [T.rimEnd, 1, C]]),
+ alpha: track(t, [[0, 1], [T.burst + 0.4, 1], [T.burst + 2.2, 0.75], [T.collapse, 0.75], [T.arcStart, 1]]),
+ stars: track(t, [[0, 0], [1.0, 0], [3.6, 1, O], [T.burst + 0.4, 1], [T.burst + 2.2, 0.55], [T.collapse, 0.55], [T.arcStart, 1],
+ [T.fadeOut, 1], [SECONDS, 0]]),
+ aurora: track(t, [[0, 0], [T.auroraIn, 0], [T.auroraIn + 2.6, 1, O], [T.flyEnd, 0.8], [T.burst + 0.4, 0.8], [T.burst + 2.2, 0.4], [T.collapse, 0.4],
+ [T.pullBack + WIDE_IN, 0.95], [T.fadeOut, 1], [SECONDS, 0]]),
+ arc: track(t, [[0, 0], [T.rimStart, 0], [T.rimEnd, 1, C]]),
+ arcAlpha: track(t, [[0, 1], [T.flyStart, 1], [T.flyStart + 1.2, 0, O]]),
+ orbits: track(t, [[0, 0], [T.orbitsIn, 0], [T.orbitsIn + 1.4, 1, O], [T.ctaMove, 1], [T.ctaMove + 1.2, 0]]),
+ backdrop: track(t, [[0, 0], [T.scatter, 0], [T.globeUp, 1, O], [T.fadeOut, 1], [SECONDS, 0]]),
+ };
+}
+
+/** The deep close-up: looking nearly straight down on Dallas (tilt is degrees from the view center), close enough to see single churches. */
+export const DEEP = { scale: 7.2, tilt: 18, off: 0, y: 560 };
+
+/**
+ * Scene 9 frames the globe by where Dallas sits instead of by the camera: the tilt above Dallas, the
+ * longitude offset from it, the zoom (eased in log space, so the dive feels even) and Dallas's height
+ * on screen. That keeps Dallas steady while the camera falls toward it and climbs back out.
+ */
+type Focus = { scale: number; tilt: number; off: number; y: number };
+
+function focusOf(c: Cam): Focus {
+ return { scale: c.scale, tilt: DALLAS.lat - c.lat, off: DALLAS.lng - c.lng, y: project(DALLAS.lat, DALLAS.lng, c).y };
+}
+
+function fromFocus(f: Focus, c: Cam): Cam {
+ const lat = DALLAS.lat - f.tilt, lng = DALLAS.lng - f.off, R = R0 * f.scale;
+ const sl = Math.sin(DALLAS.lat * RAD), cl = Math.cos(DALLAS.lat * RAD), s0 = Math.sin(lat * RAD), c0 = Math.cos(lat * RAD);
+ const up = c0 * sl - s0 * cl * Math.cos(f.off * RAD);
+ return { ...c, lat, lng, scale: f.scale, crest: f.y - R + up * R };
+}
+
+const mixFocus = (a: Focus, b: Focus, k: number): Focus => ({
+ scale: Math.exp(Math.log(a.scale) + (Math.log(b.scale) - Math.log(a.scale)) * k),
+ tilt: a.tilt + (b.tilt - a.tilt) * k, off: a.off + (b.off - a.off) * k, y: a.y + (b.y - a.y) * k,
+});
+
+const DIVE_FROM = T.collapse + 0.15;
+const DIVE_AT = T.impact - 0.08;
+const WIDE_AT = T.pullBack + WIDE_IN;
+
+function dive(t: number, c: Cam): Cam {
+ if (t <= DIVE_FROM || t >= WIDE_AT) return c;
+ const from = focusOf(base(DIVE_FROM)), to = focusOf(base(WIDE_AT));
+ // A slow drift in while the fix lands, so the close-up never freezes.
+ const hold = { ...DEEP, scale: DEEP.scale * 1.08 };
+ if (t < DIVE_AT) return fromFocus(mixFocus(from, DEEP, inOutCubic(prog(t, DIVE_FROM, DIVE_AT))), c);
+ if (t < T.pullBack) return fromFocus(mixFocus(DEEP, hold, outCubic(prog(t, DIVE_AT, T.pullBack))), c);
+ return fromFocus(mixFocus(hold, to, inOutQuint(prog(t, T.pullBack, WIDE_AT))), c);
+}
+
+export function camera(t: number): Cam {
+ return dive(t, base(t));
+}
+
+const RAD = Math.PI / 180;
+
+/** Where a place sits on screen for a camera, matching globe.js's orthographic projection. */
+export function project(lat: number, lng: number, cam: Pick) {
+ const R = R0 * cam.scale, cx = WIDTH / 2, cy = cam.crest + R;
+ const sl = Math.sin(lat * RAD), cl = Math.cos(lat * RAD);
+ const s0 = Math.sin(cam.lat * RAD), c0 = Math.cos(cam.lat * RAD);
+ const d = (lng - cam.lng) * RAD;
+ const x = cl * Math.sin(d), y = c0 * sl - s0 * cl * Math.cos(d), depth = s0 * sl + c0 * cl * Math.cos(d);
+ return { x: cx + x * R, y: cy - y * R, depth, R };
+}
diff --git a/video/tsconfig.json b/video/tsconfig.json
new file mode 100644
index 0000000..152d13d
--- /dev/null
+++ b/video/tsconfig.json
@@ -0,0 +1,18 @@
+{
+ "compilerOptions": {
+ "target": "ES2022",
+ "module": "ES2022",
+ "moduleResolution": "bundler",
+ "lib": ["ES2022", "DOM", "DOM.Iterable"],
+ "jsx": "react-jsx",
+ "strict": true,
+ "noEmit": true,
+ "skipLibCheck": true,
+ "allowJs": true,
+ "checkJs": false,
+ "resolveJsonModule": true,
+ "allowImportingTsExtensions": true,
+ "types": []
+ },
+ "include": ["src", "remotion.config.ts"]
+}
diff --git a/worker/src/index.ts b/worker/src/index.ts
index 1d0f20d..fddec4f 100644
--- a/worker/src/index.ts
+++ b/worker/src/index.ts
@@ -4,6 +4,7 @@ import { ask } from "./ask.ts";
import { addChurch, confirm, contribute, contributableFields } from "./contribute.ts";
import { COMPLETENESS_WEIGHTS, RECORD_FIELDS, toRecord, type ChurchRow } from "./record.ts";
import { COUNTRIES, REGIONS } from "./regions.generated.ts";
+import { serveRange } from "./range.ts";
import { search } from "./search.ts";
import { EMBED_COLUMNS, upsertRows, type EmbedRow } from "./embed.ts";
import { tick } from "./sync.ts";
@@ -19,6 +20,8 @@ export interface Env {
RL_CONTRIB?: RateLimit;
RL_ASK?: RateLimit;
ASSETS?: Fetcher;
+ /** R2 bucket lookup-media: the homepage video. */
+ MEDIA?: R2Bucket;
CF_VERSION_METADATA?: WorkerVersionMetadata;
LOOKUP_INTERNAL_KEY?: string;
/** Enables the /internal admin routes. Unset means they 404. */
@@ -242,6 +245,28 @@ export default {
async fetch(request: Request, env: Env, ctx: ExecutionContext): Promise {
const url = new URL(request.url);
+ // The homepage video, with byte ranges so it can seek (wrangler.jsonc routes /video/* here first).
+ if (url.pathname.startsWith("/video/") && (request.method === "GET" || request.method === "HEAD")) {
+ // MP4s live in R2 (bucket lookup-media), which handles Range natively; the poster and thumbnail stay in site/.
+ if (url.pathname.endsWith(".mp4") && env.MEDIA) {
+ const obj = await env.MEDIA.get(url.pathname.slice(1), { range: request.headers, onlyIf: request.headers });
+ if (!obj) return new Response("Not found", { status: 404 });
+ const headers = new Headers();
+ obj.writeHttpMetadata(headers);
+ headers.set("etag", obj.httpEtag);
+ headers.set("accept-ranges", "bytes");
+ if (!("body" in obj)) return new Response(null, { status: 304, headers });
+ const r = obj.range as { offset?: number; length?: number } | undefined;
+ if (request.headers.has("range") && r && r.offset !== undefined && r.length !== undefined) {
+ headers.set("content-range", `bytes ${r.offset}-${r.offset + r.length - 1}/${obj.size}`);
+ headers.set("content-length", String(r.length));
+ return new Response(request.method === "HEAD" ? null : obj.body, { status: 206, headers });
+ }
+ headers.set("content-length", String(obj.size));
+ return new Response(request.method === "HEAD" ? null : obj.body, { status: 200, headers });
+ }
+ if (env.ASSETS) return serveRange(request, env.ASSETS);
+ }
if (url.pathname.startsWith("/internal/")) {
try { return await handleAdmin(request, env, url.pathname.replace(/\/+$/, "")); }
catch (e) { return fail(500, String((e as Error).message ?? e).slice(0, 300)); }
diff --git a/worker/src/range.ts b/worker/src/range.ts
new file mode 100644
index 0000000..7763ec2
--- /dev/null
+++ b/worker/src/range.ts
@@ -0,0 +1,63 @@
+// Byte ranges for the homepage video (/video/*). Static assets answer a Range request with the whole
+// file, so browsers can't seek and Safari may not play at all. The Worker asks ASSETS for the file
+// and streams back only the bytes asked for, as a 206.
+
+/** Parses a single "bytes=a-b" range against a size. Null for no range, "bad" for one that can't be met. */
+export function parseRange(header: string | null, size: number): { start: number; end: number } | null | "bad" {
+ if (!header) return null;
+ const m = /^bytes=(\d*)-(\d*)$/.exec(header.trim());
+ if (!m || (m[1] === "" && m[2] === "")) return "bad";
+ let start: number, end: number;
+ if (m[1] === "") {
+ // "bytes=-n": the last n bytes.
+ const n = Number(m[2]);
+ if (n === 0) return "bad";
+ start = Math.max(0, size - n);
+ end = size - 1;
+ } else {
+ start = Number(m[1]);
+ end = m[2] === "" ? size - 1 : Math.min(Number(m[2]), size - 1);
+ }
+ if (start >= size || start > end) return "bad";
+ return { start, end };
+}
+
+/** Keeps bytes start..end (inclusive) of a stream and drops the rest. */
+function slice(body: ReadableStream, start: number, end: number): ReadableStream {
+ let pos = 0;
+ return body.pipeThrough(new TransformStream({
+ transform(chunk, ctl) {
+ const from = Math.max(0, start - pos), to = Math.min(chunk.length, end + 1 - pos);
+ if (to > from) ctl.enqueue(chunk.subarray(from, to));
+ pos += chunk.length;
+ },
+ }));
+}
+
+export async function serveRange(request: Request, assets: Fetcher): Promise {
+ // Ask for the whole file, without the client's Range or conditional headers.
+ const res = await assets.fetch(new Request(request.url, { method: "GET" }));
+ if (!res.ok || !res.body) return res;
+ const headers = new Headers(res.headers);
+ headers.set("accept-ranges", "bytes");
+ headers.set("cache-control", "public, max-age=86400");
+ let body: ReadableStream = res.body;
+ let size = Number(res.headers.get("content-length"));
+ if (!(size > 0)) {
+ // The asset can stream without a length; read it once to know its size (the video is ~21 MB).
+ const buf = new Uint8Array(await res.arrayBuffer());
+ size = buf.byteLength;
+ body = new Response(buf).body!;
+ headers.set("content-length", String(size));
+ }
+ const r = parseRange(request.headers.get("range"), size);
+ if (r === "bad") {
+ body.cancel();
+ return new Response(null, { status: 416, headers: { "content-range": `bytes */${size}`, "accept-ranges": "bytes" } });
+ }
+ if (request.method === "HEAD") { body.cancel(); return new Response(null, { status: 200, headers }); }
+ if (!r) return new Response(body, { status: 200, headers });
+ headers.set("content-range", `bytes ${r.start}-${r.end}/${size}`);
+ headers.set("content-length", String(r.end - r.start + 1));
+ return new Response(slice(body, r.start, r.end), { status: 206, headers });
+}
diff --git a/worker/test/range.test.ts b/worker/test/range.test.ts
new file mode 100644
index 0000000..39c07f3
--- /dev/null
+++ b/worker/test/range.test.ts
@@ -0,0 +1,54 @@
+import { describe, expect, it } from "vitest";
+import { parseRange, serveRange } from "../src/range.ts";
+
+describe("parseRange", () => {
+ it("reads open, closed and suffix ranges", () => {
+ expect(parseRange(null, 100)).toBeNull();
+ expect(parseRange("bytes=0-", 100)).toEqual({ start: 0, end: 99 });
+ expect(parseRange("bytes=10-19", 100)).toEqual({ start: 10, end: 19 });
+ expect(parseRange("bytes=90-500", 100)).toEqual({ start: 90, end: 99 });
+ expect(parseRange("bytes=-10", 100)).toEqual({ start: 90, end: 99 });
+ });
+ it("rejects ranges it can't meet", () => {
+ expect(parseRange("bytes=100-", 100)).toBe("bad");
+ expect(parseRange("bytes=20-10", 100)).toBe("bad");
+ expect(parseRange("bytes=-", 100)).toBe("bad");
+ expect(parseRange("items=0-1", 100)).toBe("bad");
+ });
+});
+
+describe("serveRange", () => {
+ const bytes = Uint8Array.from({ length: 1000 }, (_, i) => i % 256);
+ // A stand-in for ASSETS that serves the file in small chunks, as a stream would.
+ const assets = {
+ fetch: async () => new Response(new ReadableStream({
+ start(c) { for (let i = 0; i < bytes.length; i += 64) c.enqueue(bytes.slice(i, i + 64)); c.close(); },
+ }), { headers: { "content-length": String(bytes.length), "content-type": "video/mp4" } }),
+ } as unknown as Fetcher;
+
+ it("returns just the asked-for bytes as a 206", async () => {
+ const res = await serveRange(new Request("https://x/video/a.mp4", { headers: { range: "bytes=100-299" } }), assets);
+ expect(res.status).toBe(206);
+ expect(res.headers.get("content-range")).toBe("bytes 100-299/1000");
+ const got = new Uint8Array(await res.arrayBuffer());
+ expect(got.length).toBe(200);
+ expect(Array.from(got)).toEqual(Array.from(bytes.slice(100, 300)));
+ });
+
+ it("still ranges when the asset streams without a length", async () => {
+ const noLength = { fetch: async () => new Response(new ReadableStream({ start(c) { c.enqueue(bytes.slice()); c.close(); } })) } as unknown as Fetcher;
+ const res = await serveRange(new Request("https://x/video/a.mp4", { headers: { range: "bytes=-10" } }), noLength);
+ expect(res.status).toBe(206);
+ expect(res.headers.get("content-range")).toBe("bytes 990-999/1000");
+ expect(Array.from(new Uint8Array(await res.arrayBuffer()))).toEqual(Array.from(bytes.slice(990)));
+ });
+
+ it("serves the whole file without a range, and 416 for an impossible one", async () => {
+ const full = await serveRange(new Request("https://x/video/a.mp4"), assets);
+ expect(full.status).toBe(200);
+ expect(full.headers.get("accept-ranges")).toBe("bytes");
+ expect((await full.arrayBuffer()).byteLength).toBe(1000);
+ const bad = await serveRange(new Request("https://x/video/a.mp4", { headers: { range: "bytes=5000-" } }), assets);
+ expect(bad.status).toBe(416);
+ });
+});
diff --git a/worker/wrangler.jsonc b/worker/wrangler.jsonc
index 4e541f8..722dcc2 100644
--- a/worker/wrangler.jsonc
+++ b/worker/wrangler.jsonc
@@ -6,7 +6,9 @@
"observability": { "enabled": false },
"workers_dev": true,
// /element.js, /lookup.js and /examples come from here; everything else runs the Worker.
- "assets": { "directory": "../site", "binding": "ASSETS" },
+ // /video/* runs the Worker first: the homepage video streams from R2 (MEDIA) with byte ranges.
+ "assets": { "directory": "../site", "binding": "ASSETS", "run_worker_first": ["/video/*"] },
+ "r2_buckets": [{ "binding": "MEDIA", "bucket_name": "lookup-media" }],
"routes": [{ "pattern": "lookup.heresmychurch.com", "custom_domain": true }],
"d1_databases": [{ "binding": "DB", "database_name": "hmc-lookup", "database_id": "8728a664-c1df-4003-89a7-679693ac9adb" }],
"version_metadata": { "binding": "CF_VERSION_METADATA" },