Skip to content

armgit / hypit

Public Imported from GitHub
0

Clone any viral video with AI agents. Not just a script, the whole workflow: swap the face, the words, the B-roll, ship 100 variants in one command, and get your 100M views.

feat: expand interactive video demos

rponec1cf50368086
diff --git a/docs/.vitepress/theme/components/SemanticVideoDemo.vue b/docs/.vitepress/theme/components/SemanticVideoDemo.vue
new file mode 100644
index 00000000..cdf380df
--- /dev/null
+++ b/docs/.vitepress/theme/components/SemanticVideoDemo.vue
@@ -0,0 +1,620 @@
+<script setup lang="ts">
+import { computed, nextTick, onBeforeUnmount, onMounted, ref, watch } from "vue";
+import {
+ semanticVideoDemos,
+ type DemoId,
+ type DemoSelection,
+ type DemoSourceLine,
+ type WordCue,
+} from "./semantic-video-demos";
+
+const props = defineProps<{ demo: DemoId }>();
+const config = semanticVideoDemos[props.demo];
+const sourceLines = config.lines;
+const sceneSelections = config.selections.filter((selection) => selection.layer === "scene");
+const overlaySelections = config.selections.filter((selection) => selection.layer === "overlay");
+
+type RangeBounds = {
+ id: string;
+ start: number;
+ end: number;
+ depth: number;
+};
+
+type DisplayLine = {
+ key: string;
+ kind: "line" | "fold" | "spacer";
+ index: number | null;
+ line: DemoSourceLine | null;
+};
+
+const rawBounds = config.selections.map((selection) => ({
+ id: selection.id,
+ start: sourceLines.findIndex((line) => line.html.includes(`>@${selection.id}</span>`)),
+ end: sourceLines.findIndex((line) => line.html.includes(`>@/${selection.id}</span>`)),
+})).filter((range) => range.start >= 0 && range.end >= range.start);
+
+const rangeBounds: RangeBounds[] = rawBounds.map((range) => ({
+ ...range,
+ depth: rawBounds.filter((candidate) => (
+ candidate.id !== range.id
+ && candidate.start <= range.start
+ && candidate.end >= range.end
+ )).length,
+}));
+
+function decorateLine(line: DemoSourceLine) {
+ if (!line.tokens) return line.html;
+ let cueIndex = line.tokens[0];
+ const end = line.tokens[1];
+ return line.html.split(/(<span\b[^>]*>.*?<\/span>)/giu).map((part) => {
+ if (part.startsWith("<span")) return part;
+ let output = "";
+ let cursor = 0;
+ while (cueIndex < end) {
+ const cue = config.words[cueIndex];
+ const position = part.toLocaleLowerCase().indexOf(cue.text.toLocaleLowerCase(), cursor);
+ if (position === -1) break;
+ output += part.slice(cursor, position);
+ output += `<span class="script-word" data-word-index="${cue.index}">${part.slice(position, position + cue.text.length)}</span>`;
+ cursor = position + cue.text.length;
+ cueIndex += 1;
+ }
+ return output + part.slice(cursor);
+ }).join("");
+}
+
+const decoratedLines = sourceLines.map(decorateLine);
+const sourceFollowEnabled = ref(true);
+const pinnedSelection = ref<string | null>(null);
+const pinnedLoopSelection = ref<string | null>(null);
+const activeWord = ref<WordCue | null>(null);
+const currentSceneIndex = ref(0);
+const activeSceneSelection = ref(sceneSelections[0]);
+const activeOverlaySelection = ref<DemoSelection | null>(null);
+const visibleLogoCount = ref(0);
+const audioEnabled = ref(false);
+const codeScrollElement = ref<HTMLElement | null>(null);
+const playheadElement = ref<HTMLElement | null>(null);
+const rangeCanvas = ref({ width: 0, height: 0 });
+const rangeGeometry = ref<Record<string, { path: string; depth: number }>>({});
+const baseVideos: HTMLVideoElement[] = [];
+const overlayVideos: HTMLVideoElement[] = [];
+let resizeObserver: ResizeObserver | null = null;
+let animationFrame = 0;
+let previousTimestamp = 0;
+let programTime = 0;
+let playbackSceneIndex = -1;
+let playbackOverlayId: string | null = null;
+
+function setBaseVideo(element: unknown, index: number) {
+ if (element && typeof element === "object" && "currentTime" in element) {
+ baseVideos[index] = element as HTMLVideoElement;
+ }
+}
+
+function setOverlayVideo(element: unknown, index: number) {
+ if (element && typeof element === "object" && "currentTime" in element) {
+ overlayVideos[index] = element as HTMLVideoElement;
+ }
+}
+
+function wordAt(time: number) {
+ for (const [index, cue] of config.words.entries()) {
+ if (time >= cue.start && time < cue.end) return cue;
+ const nextStart = config.words[index + 1]?.start ?? config.duration;
+ if (time >= cue.end && time < Math.min(nextStart, cue.end + .09)) return cue;
+ }
+ return null;
+}
+
+const activeCaptionWords = computed(() => {
+ const word = activeWord.value;
+ if (!word) return [];
+ const start = Math.floor(word.index / 3) * 3;
+ return config.words.slice(start, start + 3);
+});
+
+const automaticSelections = computed(() => [
+ activeSceneSelection.value,
+ ...(activeOverlaySelection.value ? [activeOverlaySelection.value] : []),
+]);
+
+const sourceSelections = computed(() => {
+ if (!pinnedSelection.value) return automaticSelections.value;
+ const pinned = config.selections.find((selection) => selection.id === pinnedSelection.value);
+ if (!pinned) return automaticSelections.value;
+ const bounds = rangeBounds.find((range) => range.id === pinned.id);
+ const outer = bounds
+ ? rangeBounds
+ .filter((candidate) => candidate.start <= bounds.start && candidate.end >= bounds.end)
+ .sort((left, right) => left.depth - right.depth)[0]
+ : undefined;
+ const outerSelection = config.selections.find((selection) => selection.id === outer?.id);
+ return outerSelection && outerSelection.id !== pinned.id ? [outerSelection, pinned] : [pinned];
+});
+
+const sourceWordLine = computed(() => {
+ const wordIndex = activeWord.value?.index;
+ if (wordIndex === undefined) return rangeBounds.find((range) => range.id === activeSceneSelection.value.id)?.start ?? 0;
+ const lineIndex = sourceLines.findIndex((line) => line.tokens && wordIndex >= line.tokens[0] && wordIndex < line.tokens[1]);
+ return lineIndex >= 0 ? lineIndex : 0;
+});
+
+const bindingLine = computed(() => {
+ const id = activeOverlaySelection.value?.id ?? activeSceneSelection.value.id;
+ const index = sourceLines.findIndex((line, lineIndex) => line.selection === id && lineIndex > 24);
+ if (index >= 0) return index;
+ const scriptEnd = sourceLines.findIndex((line) => line.html.includes("&lt;/script&gt;"));
+ return Math.min(sourceLines.length - 1, scriptEnd + 2);
+});
+
+function windowAround(start: number, end: number, size: number) {
+ let first = Math.max(0, start - 2);
+ let last = Math.min(sourceLines.length - 1, end + 2);
+ while (last - first + 1 < size && (first > 0 || last < sourceLines.length - 1)) {
+ if (first > 0) first -= 1;
+ if (last - first + 1 < size && last < sourceLines.length - 1) last += 1;
+ }
+ if (last - first + 1 > size) {
+ const center = Math.max(start, Math.min(end, sourceWordLine.value));
+ first = Math.max(0, Math.min(sourceLines.length - size, center - Math.floor(size / 2)));
+ last = first + size - 1;
+ }
+ return Array.from({ length: last - first + 1 }, (_, offset) => first + offset);
+}
+
+const displayedLines = computed<DisplayLine[]>(() => {
+ if (!sourceFollowEnabled.value) {
+ return sourceLines.map((line, index) => ({ key: `line-${index}`, kind: "line", index, line }));
+ }
+
+ const outerBounds = rangeBounds.find((range) => range.id === activeSceneSelection.value.id);
+ const top = windowAround(outerBounds?.start ?? sourceWordLine.value, outerBounds?.end ?? sourceWordLine.value, 13);
+ const bottom = windowAround(bindingLine.value, bindingLine.value, 13);
+ const toDisplay = (indices: number[]) => indices.map((index) => ({
+ key: `line-${index}`,
+ kind: "line" as const,
+ index,
+ line: sourceLines[index],
+ }));
+ const topRows = toDisplay(top);
+ const bottomRows = toDisplay(bottom);
+ while (topRows.length < 13) topRows.unshift({ key: `top-space-${topRows.length}`, kind: "spacer", index: null, line: null });
+ while (bottomRows.length < 13) bottomRows.push({ key: `bottom-space-${bottomRows.length}`, kind: "spacer", index: null, line: null });
+ return [
+ ...topRows,
+ { key: `fold-${top.at(-1)}-${bottom[0]}`, kind: "fold", index: null, line: null },
+ ...bottomRows,
+ ];
+});
+
+function renderedLineHtml(index: number) {
+ let html = decoratedLines[index];
+ if (activeWord.value) {
+ html = html.replace(
+ `class="script-word" data-word-index="${activeWord.value.index}"`,
+ `class="script-word active" data-word-index="${activeWord.value.index}"`,
+ );
+ }
+ for (const selection of sourceSelections.value) {
+ const depth = rangeBounds.find((range) => range.id === selection.id)?.depth ?? 0;
+ html = html.replaceAll(
+ `semantic-token" data-selection="${selection.id}"`,
+ `semantic-token semantic-active semantic-depth-${depth}" data-selection="${selection.id}"`,
+ );
+ }
+ return html;
+}
+
+function bindingDepth(line: DemoSourceLine) {
+ if (!line.selection || !sourceSelections.value.some((selection) => selection.id === line.selection)) return -1;
+ return rangeBounds.find((range) => range.id === line.selection)?.depth ?? 0;
+}
+
+function updateRangeGeometry() {
+ const container = codeScrollElement.value;
+ if (!container) return;
+ const containerRect = container.getBoundingClientRect();
+ const width = container.clientWidth;
+ const renderedLines = Array.from(container.querySelectorAll<HTMLElement>(":scope > .code-line"));
+ const lastLine = renderedLines.at(-1);
+ const height = Math.max(container.clientHeight, lastLine ? lastLine.offsetTop + lastLine.offsetHeight : container.clientHeight);
+ const markers = Array.from(container.querySelectorAll<HTMLElement>(".syn-marker[data-selection]"));
+ const geometry: Record<string, { path: string; depth: number }> = {};
+
+ for (const range of rangeBounds) {
+ const startMarker = markers.find((marker) => marker.dataset.selection === range.id && marker.textContent?.trim() === `@${range.id}`);
+ const endMarker = markers.find((marker) => marker.dataset.selection === range.id && marker.textContent?.trim() === `@/${range.id}`);
+ const startLine = startMarker?.closest<HTMLElement>(".code-line");
+ const endLine = endMarker?.closest<HTMLElement>(".code-line");
+ if (!startMarker || !endMarker || !startLine || !endLine) continue;
+ const startRect = startMarker.getBoundingClientRect();
+ const endRect = endMarker.getBoundingClientRect();
+ const offsetX = container.scrollLeft - containerRect.left;
+ const offsetY = container.scrollTop - containerRect.top;
+ const lineHeight = Number.parseFloat(getComputedStyle(startLine).lineHeight) || 26;
+ const startCenter = (startRect.top + startRect.bottom) / 2 + offsetY;
+ const endCenter = (endRect.top + endRect.bottom) / 2 + offsetY;
+ const startX = Math.max(0, Math.min(width, startRect.left + offsetX));
+ const endX = Math.max(0, Math.min(width, endRect.right + offsetX));
+ const left = 44;
+ const right = width - 12;
+ const top = startCenter - lineHeight / 2;
+ const bottom = endCenter + lineHeight / 2;
+ const sameLine = Math.abs(startCenter - endCenter) < lineHeight / 2;
+ const path = sameLine
+ ? `M ${startX} ${top} H ${endX} V ${bottom} H ${startX} Z`
+ : `M ${startX} ${top} H ${right} V ${endCenter - lineHeight / 2} H ${endX} V ${bottom} H ${left} V ${startCenter + lineHeight / 2} H ${startX} Z`;
+ geometry[range.id] = { path, depth: range.depth };
+ }
+
+ rangeCanvas.value = { width, height };
+ rangeGeometry.value = geometry;
+}
+
+function sceneIndexAt(time: number) {
+ const index = config.scenes.findIndex((scene) => time >= scene.start && time < scene.end);
+ return index === -1 ? config.scenes.length - 1 : index;
+}
+
+function syncState(time: number, force = false) {
+ const nextSceneIndex = sceneIndexAt(time);
+ const sceneChanged = force || nextSceneIndex !== currentSceneIndex.value;
+ if (sceneChanged) currentSceneIndex.value = nextSceneIndex;
+ const nextSceneSelection = sceneSelections.find((selection) => time >= selection.start && time < selection.end)
+ ?? sceneSelections.find((selection) => time < selection.start)
+ ?? sceneSelections.at(-1)!;
+ if (force || nextSceneSelection.id !== activeSceneSelection.value.id) activeSceneSelection.value = nextSceneSelection;
+ const nextOverlay = overlaySelections.find((selection) => time >= selection.start && time < selection.end) ?? null;
+ if (force || nextOverlay?.id !== activeOverlaySelection.value?.id) activeOverlaySelection.value = nextOverlay;
+ const nextWord = wordAt(time);
+ if (force || nextWord?.index !== activeWord.value?.index) activeWord.value = nextWord;
+ if (config.id === "good-better-best") {
+ const nextLogoCount = time >= 23.12 ? 3 : time >= 14.12 ? 2 : time >= 4.01 ? 1 : 0;
+ if (force || nextLogoCount !== visibleLogoCount.value) visibleLogoCount.value = nextLogoCount;
+ }
+ return sceneChanged;
+}
+
+function syncBaseVideos(force = false) {
+ const activeIndex = sceneIndexAt(programTime);
+ const scene = config.scenes[activeIndex];
+ const localTime = Math.max(0, programTime - scene.start);
+ const sceneChanged = playbackSceneIndex !== activeIndex;
+ baseVideos.forEach((video, index) => {
+ if (!video) return;
+ video.muted = !audioEnabled.value || index !== activeIndex;
+ if (index !== activeIndex) {
+ video.pause();
+ return;
+ }
+ if (force || sceneChanged || Math.abs(video.currentTime - localTime) > .2) video.currentTime = localTime;
+ if (video.paused) void video.play().catch(() => undefined);
+ });
+ playbackSceneIndex = activeIndex;
+}
+
+function syncOverlayVideos(force = false) {
+ if (config.id !== "street") return;
+ overlayVideos.forEach((video, index) => {
+ const selection = overlaySelections[index];
+ const active = selection.id === activeOverlaySelection.value?.id;
+ video.muted = true;
+ if (!active) {
+ video.pause();
+ return;
+ }
+ const localTime = Math.max(0, programTime - selection.start);
+ if (force || playbackOverlayId !== selection.id || Math.abs(video.currentTime - localTime) > .2) video.currentTime = localTime;
+ if (video.paused) void video.play().catch(() => undefined);
+ });
+ playbackOverlayId = activeOverlaySelection.value?.id ?? null;
+}
+
+function enableAudio(event?: Event) {
+ if (event?.target instanceof Element && event.target.closest(".live-audio-toggle")) return;
+ if (audioEnabled.value) return;
+ audioEnabled.value = true;
+ syncBaseVideos();
+}
+
+function toggleAudio() {
+ audioEnabled.value = !audioEnabled.value;
+ syncBaseVideos();
+}
+
+function seekTo(selection: DemoSelection, lineIndex: number | null = null) {
+ pinnedSelection.value = selection.id;
+ const bounds = rangeBounds.find((range) => range.id === selection.id);
+ const outer = bounds
+ ? rangeBounds
+ .filter((candidate) => candidate.start <= bounds.start && candidate.end >= bounds.end)
+ .sort((left, right) => left.depth - right.depth)[0]
+ : undefined;
+ pinnedLoopSelection.value = outer?.id ?? selection.id;
+ programTime = selection.start;
+ previousTimestamp = 0;
+ syncState(programTime, true);
+ syncBaseVideos(true);
+ syncOverlayVideos(true);
+ if (lineIndex !== null) void lineIndex;
+}
+
+function inspectLine(line: DemoSourceLine, index: number) {
+ const id = line.range ?? line.selection;
+ if (!id) {
+ clearInspection();
+ return;
+ }
+ const selection = config.selections.find((candidate) => candidate.id === id);
+ if (selection) seekTo(selection, index);
+}
+
+function inspectToken(event: Event, index: number) {
+ const target = event.target instanceof Element ? event.target.closest<HTMLElement>("[data-selection]") : null;
+ const selection = config.selections.find((candidate) => candidate.id === target?.dataset.selection);
+ if (selection) seekTo(selection, index);
+}
+
+function clearInspection() {
+ pinnedSelection.value = null;
+ pinnedLoopSelection.value = null;
+}
+
+function stopSourceFollow() {
+ sourceFollowEnabled.value = false;
+}
+
+function resumeSourceFollow() {
+ clearInspection();
+ sourceFollowEnabled.value = true;
+}
+
+function renderFrame(timestamp: number) {
+ if (!previousTimestamp) previousTimestamp = timestamp;
+ const delta = Math.min(.05, (timestamp - previousTimestamp) / 1000);
+ previousTimestamp = timestamp;
+ const scene = config.scenes[currentSceneIndex.value];
+ const video = baseVideos[currentSceneIndex.value];
+ let nextTime = video && !video.paused && video.readyState >= 2 ? scene.start + video.currentTime : programTime + delta;
+ let looped = false;
+ if (pinnedLoopSelection.value) {
+ const loopSelection = config.selections.find((selection) => selection.id === pinnedLoopSelection.value);
+ if (loopSelection && nextTime >= loopSelection.end) {
+ nextTime = loopSelection.start;
+ looped = true;
+ }
+ } else if (nextTime >= config.duration) {
+ nextTime = 0;
+ looped = true;
+ }
+ programTime = nextTime;
+ const sceneChanged = syncState(programTime, looped);
+ if (looped || sceneChanged) syncBaseVideos(true);
+ syncOverlayVideos(looped);
+ if (playheadElement.value) playheadElement.value.style.left = `${Math.max(0, Math.min(100, programTime / config.duration * 100))}%`;
+ animationFrame = requestAnimationFrame(renderFrame);
+}
+
+watch(
+ [() => displayedLines.value.map((entry) => entry.key).join("|"), sourceFollowEnabled, sourceSelections],
+ () => void nextTick().then(updateRangeGeometry),
+ { flush: "post" },
+);
+
+onMounted(() => {
+ window.addEventListener("pointerdown", enableAudio, { capture: true, once: true });
+ window.addEventListener("keydown", enableAudio, { capture: true, once: true });
+ window.addEventListener("resize", updateRangeGeometry);
+ if (navigator.userActivation?.hasBeenActive) enableAudio();
+ void nextTick().then(() => {
+ syncState(0, true);
+ syncBaseVideos(true);
+ updateRangeGeometry();
+ if (codeScrollElement.value) {
+ resizeObserver = new ResizeObserver(updateRangeGeometry);
+ resizeObserver.observe(codeScrollElement.value);
+ }
+ });
+ animationFrame = requestAnimationFrame(renderFrame);
+});
+
+onBeforeUnmount(() => {
+ cancelAnimationFrame(animationFrame);
+ window.removeEventListener("pointerdown", enableAudio, true);
+ window.removeEventListener("keydown", enableAudio, true);
+ window.removeEventListener("resize", updateRangeGeometry);
+ resizeObserver?.disconnect();
+ baseVideos.forEach((video) => video?.pause());
+ overlayVideos.forEach((video) => video?.pause());
+});
+</script>
+
+<template>
+ <section class="svml-demo semantic-video-demo" aria-label="SVML 交互式实时渲染预览">
+ <header class="demo-heading">
+ <h2>悬停标记范围,查看对应画面</h2>
+ </header>
+
+ <div class="demo-shell real-demo-shell">
+ <div
+ class="source-panel"
+ :class="{ 'source-following': sourceFollowEnabled }"
+ @pointerenter="stopSourceFollow"
+ @pointermove="stopSourceFollow"
+ @pointerdown="stopSourceFollow"
+ @wheel="stopSourceFollow"
+ @pointerleave="resumeSourceFollow"
+ >
+ <div class="source-follow-hint">
+ {{ sourceFollowEnabled ? "移入展开全部源码" : "移出恢复精简视图" }}
+ </div>
+ <div ref="codeScrollElement" class="code-scroll" aria-label="SVML source code">
+ <svg
+ v-if="rangeCanvas.width && rangeCanvas.height"
+ class="semantic-range-canvas"
+ :width="rangeCanvas.width"
+ :height="rangeCanvas.height"
+ :viewBox="`0 0 ${rangeCanvas.width} ${rangeCanvas.height}`"
+ aria-hidden="true"
+ >
+ <path
+ v-for="selection in sourceSelections"
+ :key="selection.id"
+ :class="`depth-${rangeGeometry[selection.id]?.depth ?? 0}`"
+ :d="rangeGeometry[selection.id]?.path"
+ />
+ </svg>
+ <template v-for="entry in displayedLines" :key="entry.key">
+ <div v-if="entry.kind === 'fold'" class="code-line code-fold" aria-hidden="true"><code>...</code></div>
+ <div v-else-if="entry.kind === 'spacer'" class="code-line code-spacer" aria-hidden="true"></div>
+ <div
+ v-else-if="entry.line"
+ class="code-line"
+ :class="{
+ 'binding-active': bindingDepth(entry.line) >= 0,
+ 'binding-depth-1': bindingDepth(entry.line) === 1,
+ }"
+ @mouseover="inspectLine(entry.line, entry.index!)"
+ >
+ <span class="line-number">{{ entry.index! + 1 }}</span>
+ <code
+ v-html="renderedLineHtml(entry.index!) || '&nbsp;'"
+ @mouseover="inspectToken($event, entry.index!)"
+ @focusin="inspectToken($event, entry.index!)"
+ @click="inspectToken($event, entry.index!)"
+ />
+ </div>
+ </template>
+ </div>
+ </div>
+
+ <div class="preview-panel">
+ <div class="real-preview-body">
+ <div class="semantic-live-stage" :class="`stage-${config.id}`">
+ <div class="live-base-layer">
+ <video
+ v-for="(scene, index) in config.scenes"
+ :key="scene.src"
+ :ref="(element) => setBaseVideo(element, index)"
+ :class="{ active: currentSceneIndex === index }"
+ :src="scene.src"
+ :muted="!audioEnabled || currentSceneIndex !== index"
+ playsinline
+ preload="metadata"
+ @loadedmetadata="syncBaseVideos(true)"
+ />
+ </div>
+
+ <template v-if="config.id === 'street'">
+ <video
+ v-for="(selection, index) in overlaySelections"
+ :key="selection.id"
+ :ref="(element) => setOverlayVideo(element, index)"
+ class="street-broll"
+ :class="{ active: activeOverlaySelection?.id === selection.id }"
+ :src="selection.asset"
+ muted
+ playsinline
+ preload="metadata"
+ />
+ <div class="visual-outline street-scene-outline"></div>
+ <div v-if="activeOverlaySelection" class="visual-outline street-broll-outline"></div>
+ </template>
+
+ <template v-else>
+ <div class="gbb-header">
+ <div
+ v-for="(item, index) in [
+ { id: 'good', label: 'GOOD', src: '/good-better-best/logo-chatgpt.png' },
+ { id: 'better', label: 'BETTER', src: '/good-better-best/logo-looksmax.png' },
+ { id: 'best', label: 'BEST', src: '/good-better-best/logo-areum.png' },
+ ]"
+ :key="item.id"
+ class="gbb-slot"
+ :class="[{ visible: visibleLogoCount > index, selected: sourceSelections.some((selection) => selection.id === item.id) }, `slot-${item.id}`]"
+ >
+ <img :src="item.src" alt="">
+ <strong>{{ item.label }}</strong>
+ </div>
+ </div>
+ <img
+ v-if="activeOverlaySelection"
+ class="gbb-deck"
+ :class="{ selected: sourceSelections.some((selection) => selection.id === activeOverlaySelection?.id) }"
+ :src="activeOverlaySelection.asset"
+ alt=""
+ >
+ </template>
+
+ <div v-if="activeCaptionWords.length" class="demo-caption" :class="`caption-${config.id}`" aria-hidden="true">
+ <span
+ v-for="word in activeCaptionWords"
+ :key="word.index"
+ :class="{ active: activeWord?.index === word.index }"
+ >{{ word.text }}</span>
+ </div>
+
+ <button
+ class="live-audio-toggle"
+ type="button"
+ :aria-label="audioEnabled ? '静音' : '取消静音'"
+ :title="audioEnabled ? '静音' : '取消静音'"
+ @click.stop="toggleAudio"
+ >
+ <svg v-if="audioEnabled" viewBox="0 0 24 24" aria-hidden="true"><path d="M4 9v6h4l5 4V5L8 9H4zm12.5 3a4.5 4.5 0 0 0-2.25-3.9v7.8A4.5 4.5 0 0 0 16.5 12zm-2.25-8.6v2.1a7 7 0 0 1 0 13v2.1a9 9 0 0 0 0-17.2z"/></svg>
+ <svg v-else viewBox="0 0 24 24" aria-hidden="true"><path d="M4 9v6h4l5 4V5L8 9H4zm12.6 3 2.7-2.7-1.4-1.4-2.7 2.7-2.7-2.7-1.4 1.4 2.7 2.7-2.7 2.7 1.4 1.4-2.7-2.7z"/></svg>
+ </button>
+ </div>
+ </div>
+
+ <div class="real-semantic-controls">
+ <div class="semantic-timeline">
+ <div class="timeline-track demo-progress-track">
+ <span class="segment"></span>
+ <i ref="playheadElement" class="playhead"></i>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </section>
+</template>
+
+<style scoped>
+.semantic-video-demo .code-scroll { overflow-y: auto; }
+.source-following .code-scroll { overflow-y: hidden; }
+.semantic-live-stage { position: relative; height: 540px; aspect-ratio: 9 / 16; overflow: hidden; background: #000; isolation: isolate; }
+.street-broll { position: absolute; inset: 0; z-index: 10; display: none; width: 100%; height: 100%; object-fit: cover; }
+.street-broll.active { display: block; }
+.visual-outline { position: absolute; z-index: 24; pointer-events: none; }
+.street-scene-outline { inset: 4px; border: 1px solid rgba(236,72,153,.92); }
+.street-broll-outline { inset: 9px; border: 1px solid rgba(99,216,255,.95); }
+.gbb-header { position: absolute; z-index: 8; top: 8.9%; left: 5.8%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 7.2%; width: 88.4%; }
+.gbb-slot { position: relative; display: grid; justify-items: center; opacity: 1; }
+.gbb-slot img { width: 80%; aspect-ratio: 1; object-fit: cover; border-radius: 20%; opacity: 0; transform: translateY(-6px) scale(.94); transition: opacity .28s ease, transform .38s cubic-bezier(.2,.8,.2,1); }
+.gbb-slot.visible img { opacity: 1; transform: translateY(0) scale(1); }
+.gbb-slot strong { margin-top: 8%; font-family: Arial Black, Poppins, Inter, sans-serif; font-size: 17px; font-weight: 950; line-height: 1; text-shadow: 0 1px 3px rgba(0,0,0,.25); }
+.slot-good strong { color: #ff1749; }
+.slot-better strong { color: #ffb300; }
+.slot-best strong { color: #00b96b; }
+.gbb-slot.selected::after { content: ""; position: absolute; inset: -4px -2px -5px; border: 1px solid #ec4899; pointer-events: none; }
+.gbb-deck { position: absolute; z-index: 12; top: 61.7%; left: 11%; width: 78%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; box-shadow: 0 9px 28px rgba(0,0,0,.28); }
+.gbb-deck.selected { outline: 1px solid #63d8ff; outline-offset: 3px; }
+.demo-caption { position: absolute; z-index: 30; left: 5%; display: flex; align-items: baseline; justify-content: center; width: 90%; column-gap: 4px; color: #fff; font-family: Arial Black, Poppins, Inter, sans-serif; font-size: 16px; font-weight: 900; line-height: 1.08; text-align: center; white-space: nowrap; pointer-events: none; -webkit-text-stroke: .75px #000; paint-order: stroke fill; text-shadow: 0 1px 3px rgba(0,0,0,.7); }
+.caption-street { top: 50%; }
+.caption-good-better-best { top: 65%; }
+.demo-caption span { display: inline-block; transition: color .08s linear, transform .08s linear; }
+.demo-caption span.active { color: #ffd34d; transform: scale(1.08); }
+.demo-progress-track { display: block; background: #303731; }
+.demo-progress-track .segment { display: block; width: 100%; height: 100%; background: #ec4899; opacity: .5; }
+
+@media (max-width: 900px) {
+ .semantic-live-stage { height: 520px; }
+}
+
+@media (max-width: 520px) {
+ .semantic-live-stage { height: min(520px, 145vw); }
+}
+</style>
diff --git a/docs/.vitepress/theme/components/SvmlDemoCarousel.vue b/docs/.vitepress/theme/components/SvmlDemoCarousel.vue
new file mode 100644
index 00000000..e43720be
--- /dev/null
+++ b/docs/.vitepress/theme/components/SvmlDemoCarousel.vue
@@ -0,0 +1,37 @@
+<script setup lang="ts">
+import { computed, ref } from "vue";
+import SemanticVideoDemo from "./SemanticVideoDemo.vue";
+import SvmlPlayground from "./SvmlPlayground.vue";
+
+const activeIndex = ref(0);
+const demos = [SvmlPlayground, SemanticVideoDemo, SemanticVideoDemo];
+const props = [undefined, { demo: "street" as const }, { demo: "good-better-best" as const }];
+const activeComponent = computed(() => demos[activeIndex.value]);
+const activeProps = computed(() => props[activeIndex.value]);
+
+function move(direction: number) {
+ activeIndex.value = (activeIndex.value + direction + demos.length) % demos.length;
+}
+</script>
+
+<template>
+ <div class="svml-demo-carousel">
+ <component :is="activeComponent" :key="activeIndex" v-bind="activeProps" />
+ <nav class="demo-carousel-controls" aria-label="切换示例">
+ <button type="button" aria-label="上一个示例" @click="move(-1)">
+ <svg viewBox="0 0 24 24" aria-hidden="true"><path d="M14.7 5.3 8 12l6.7 6.7 1.4-1.4-5.3-5.3 5.3-5.3z"/></svg>
+ </button>
+ <button type="button" aria-label="下一个示例" @click="move(1)">
+ <svg viewBox="0 0 24 24" aria-hidden="true"><path d="m9.3 5.3-1.4 1.4 5.3 5.3-5.3 5.3 1.4 1.4L16 12z"/></svg>
+ </button>
+ </nav>
+ </div>
+</template>
+
+<style scoped>
+.demo-carousel-controls { display: flex; justify-content: center; gap: 14px; padding: 20px 0 2px; }
+.demo-carousel-controls button { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid #262626; border-radius: 50%; background: #111; color: #f5f5f5; cursor: pointer; transition: border-color .18s ease, background-color .18s ease, transform .18s ease; }
+.demo-carousel-controls button:hover { border-color: rgba(236,72,153,.72); background: #262626; transform: translateY(-1px); }
+.demo-carousel-controls button:focus-visible { outline: 2px solid #ec4899; outline-offset: 3px; }
+.demo-carousel-controls svg { width: 21px; height: 21px; fill: currentColor; }
+</style>
diff --git a/docs/.vitepress/theme/components/semantic-video-demos.ts b/docs/.vitepress/theme/components/semantic-video-demos.ts
new file mode 100644
index 00000000..e8dcb17e
--- /dev/null
+++ b/docs/.vitepress/theme/components/semantic-video-demos.ts
@@ -0,0 +1,189 @@
+import streetTranscript from "../../../public/street-interview/transcript.json";
+import goodBetterBestTranscript from "../../../public/good-better-best/transcript.json";
+
+export type DemoId = "street" | "good-better-best";
+
+export type WordCue = {
+ index: number;
+ text: string;
+ start: number;
+ end: number;
+};
+
+export type DemoSelection = {
+ id: string;
+ start: number;
+ end: number;
+ layer: "scene" | "overlay";
+ asset?: string;
+};
+
+export type DemoScene = {
+ src: string;
+ start: number;
+ end: number;
+};
+
+export type DemoSourceLine = {
+ html: string;
+ selection?: string;
+ range?: string;
+ ranges?: string[];
+ tokens?: readonly [number, number];
+};
+
+export type SemanticVideoDemoConfig = {
+ id: DemoId;
+ duration: number;
+ words: WordCue[];
+ selections: DemoSelection[];
+ scenes: DemoScene[];
+ lines: DemoSourceLine[];
+};
+
+const words = (input: Array<{ text: string; start: number; end: number }>) => input.map((cue, index) => ({
+ ...cue,
+ index,
+}));
+
+const streetWords = words(streetTranscript);
+const goodBetterBestWords = words(goodBetterBestTranscript).map((cue) => {
+ if (cue.index === 8) return { ...cue, text: "ChatGPT." };
+ if (cue.index === 65) return { ...cue, text: "Areum." };
+ if (cue.index === 66) return { ...cue, text: "" };
+ return cue;
+});
+
+const streetLines: DemoSourceLine[] = [
+ { html: '<span class="syn-tag">&lt;script&gt;</span>' },
+ { html: ' <span class="syn-tag">&lt;segment</span> <span class="syn-attr">id</span>=<span class="syn-string">"hook"</span><span class="syn-tag">&gt;</span>' },
+ { html: ' <span class="syn-tag">&lt;A&gt;</span> <span class="syn-marker semantic-token" data-selection="hook">@hook</span> How much was your flight?', selection: "hook", range: "hook", tokens: [0, 5] },
+ { html: ' <span class="syn-tag">&lt;B&gt;</span> $49.', range: "hook", tokens: [5, 6] },
+ { html: ' <span class="syn-tag">&lt;A&gt;</span> That\'s cheap.', range: "hook", tokens: [6, 8] },
+ { html: ' <span class="syn-tag">&lt;B&gt;</span> The seat was cheap. The rainbow wasn\'t. <span class="syn-marker semantic-token" data-selection="hook">@/hook</span>', selection: "hook", range: "hook", tokens: [8, 15] },
+ { html: ' <span class="syn-tag">&lt;/segment&gt;</span>' },
+ { html: "" },
+ { html: ' <span class="syn-tag">&lt;segment</span> <span class="syn-attr">id</span>=<span class="syn-string">"rainbow"</span><span class="syn-tag">&gt;</span>' },
+ { html: ' <span class="syn-tag">&lt;A&gt;</span> <span class="syn-marker semantic-token" data-selection="rainbow">@rainbow</span> They charged you for the rainbow?', selection: "rainbow", range: "rainbow", tokens: [15, 21] },
+ { html: ' <span class="syn-tag">&lt;B&gt;</span> <span class="syn-marker semantic-token" data-selection="seven-bags">@seven-bags</span> They counted it as seven carry-ons.', selection: "seven-bags", range: "seven-bags", ranges: ["rainbow", "seven-bags"], tokens: [21, 27] },
+ { html: ' <span class="syn-tag">&lt;A&gt;</span> Why seven?', range: "seven-bags", ranges: ["rainbow", "seven-bags"], tokens: [27, 29] },
+ { html: ' <span class="syn-tag">&lt;B&gt;</span> One bag for each color. <span class="syn-marker semantic-token" data-selection="seven-bags">@/seven-bags</span> <span class="syn-marker semantic-token" data-selection="rainbow">@/rainbow</span>', selection: "seven-bags", range: "seven-bags", ranges: ["rainbow", "seven-bags"], tokens: [29, 34] },
+ { html: ' <span class="syn-tag">&lt;/segment&gt;</span>' },
+ { html: "" },
+ { html: ' <span class="syn-tag">&lt;segment</span> <span class="syn-attr">id</span>=<span class="syn-string">"fees"</span><span class="syn-tag">&gt;</span>' },
+ { html: ' <span class="syn-tag">&lt;A&gt;</span> <span class="syn-marker semantic-token" data-selection="fees">@fees</span> Couldn\'t you turn it off?', selection: "fees", range: "fees", tokens: [34, 39] },
+ { html: ' <span class="syn-tag">&lt;B&gt;</span> I tried. They charged me a $35 rainbow deactivation fee.', range: "fees", tokens: [39, 49] },
+ { html: ' <span class="syn-tag">&lt;A&gt;</span> What was the total?', range: "fees", tokens: [49, 53] },
+ { html: ' <span class="syn-tag">&lt;B&gt;</span> $2,846.', range: "fees", tokens: [53, 54] },
+ { html: ' <span class="syn-tag">&lt;A&gt;</span> <span class="syn-marker semantic-token" data-selection="receipt">@receipt</span> Do you have the receipt?', selection: "receipt", range: "receipt", ranges: ["fees", "receipt"], tokens: [54, 59] },
+ { html: ' <span class="syn-tag">&lt;B&gt;</span> Yeah, but I can\'t screenshot the whole thing. It\'s still scrolling. <span class="syn-marker semantic-token" data-selection="receipt">@/receipt</span> <span class="syn-marker semantic-token" data-selection="fees">@/fees</span>', selection: "receipt", range: "receipt", ranges: ["fees", "receipt"], tokens: [59, 70] },
+ { html: ' <span class="syn-tag">&lt;/segment&gt;</span>' },
+ { html: "" },
+ { html: ' <span class="syn-tag">&lt;segment</span> <span class="syn-attr">id</span>=<span class="syn-string">"loan"</span><span class="syn-tag">&gt;</span>' },
+ { html: ' <span class="syn-tag">&lt;A&gt;</span> <span class="syn-marker semantic-token" data-selection="loan">@loan</span> How did you pay for it?', selection: "loan", range: "loan", tokens: [70, 76] },
+ { html: ' <span class="syn-tag">&lt;B&gt;</span> I took out a student loan.', range: "loan", tokens: [76, 82] },
+ { html: ' <span class="syn-tag">&lt;A&gt;</span> <span class="syn-marker semantic-token" data-selection="college">@college</span> But you\'re not in college.', selection: "college", range: "college", ranges: ["loan", "college"], tokens: [82, 87] },
+ { html: ' <span class="syn-tag">&lt;B&gt;</span> I am now. The airline enrolled me so I could finance the baggage fees. <span class="syn-marker semantic-token" data-selection="college">@/college</span> <span class="syn-marker semantic-token" data-selection="loan">@/loan</span>', selection: "college", range: "college", ranges: ["loan", "college"], tokens: [87, 101] },
+ { html: ' <span class="syn-tag">&lt;/segment&gt;</span>' },
+ { html: '<span class="syn-tag">&lt;/script&gt;</span>' },
+ { html: "" },
+ { html: '<span class="syn-tag">&lt;street-interview&gt;</span>' },
+ { html: ' <span class="syn-tag">&lt;scene</span> <span class="syn-attr">during</span>=<span class="syn-expr semantic-token" data-selection="hook">{script.selection.hook}</span> <span class="syn-tag">/&gt;</span>', selection: "hook" },
+ { html: ' <span class="syn-tag">&lt;scene</span> <span class="syn-attr">during</span>=<span class="syn-expr semantic-token" data-selection="rainbow">{script.selection.rainbow}</span> <span class="syn-tag">/&gt;</span>', selection: "rainbow" },
+ { html: ' <span class="syn-tag">&lt;scene</span> <span class="syn-attr">during</span>=<span class="syn-expr semantic-token" data-selection="fees">{script.selection.fees}</span> <span class="syn-tag">/&gt;</span>', selection: "fees" },
+ { html: ' <span class="syn-tag">&lt;scene</span> <span class="syn-attr">during</span>=<span class="syn-expr semantic-token" data-selection="loan">{script.selection.loan}</span> <span class="syn-tag">/&gt;</span>', selection: "loan" },
+ { html: '<span class="syn-tag">&lt;/street-interview&gt;</span>' },
+ { html: "" },
+ { html: '<span class="syn-tag">&lt;broll-track&gt;</span>' },
+ { html: ' <span class="syn-tag">&lt;item</span> <span class="syn-attr">during</span>=<span class="syn-expr semantic-token" data-selection="seven-bags">{script.selection.seven-bags}</span> <span class="syn-tag">/&gt;</span>', selection: "seven-bags" },
+ { html: ' <span class="syn-tag">&lt;item</span> <span class="syn-attr">during</span>=<span class="syn-expr semantic-token" data-selection="receipt">{script.selection.receipt}</span> <span class="syn-tag">/&gt;</span>', selection: "receipt" },
+ { html: ' <span class="syn-tag">&lt;item</span> <span class="syn-attr">during</span>=<span class="syn-expr semantic-token" data-selection="college">{script.selection.college}</span> <span class="syn-tag">/&gt;</span>', selection: "college" },
+ { html: '<span class="syn-tag">&lt;/broll-track&gt;</span>' },
+];
+
+const goodBetterBestLines: DemoSourceLine[] = [
+ { html: '<span class="syn-tag">&lt;script&gt;</span>' },
+ { html: ' <span class="syn-tag">&lt;segment</span> <span class="syn-attr">id</span>=<span class="syn-string">"hook"</span><span class="syn-tag">&gt;</span>' },
+ { html: ' <span class="syn-tag">&lt;SPEAKER&gt;</span> <span class="syn-marker semantic-token" data-selection="hook">@hook</span> Good. Better. Best. Face Rating Edition. <span class="syn-marker semantic-token" data-selection="hook">@/hook</span>', selection: "hook", range: "hook", tokens: [0, 6] },
+ { html: ' <span class="syn-tag">&lt;/segment&gt;</span>' },
+ { html: "" },
+ { html: ' <span class="syn-tag">&lt;segment</span> <span class="syn-attr">id</span>=<span class="syn-string">"good"</span><span class="syn-tag">&gt;</span>' },
+ { html: ' <span class="syn-tag">&lt;SPEAKER&gt;</span> <span class="syn-marker semantic-token" data-selection="good">@good</span> Good is ChatGPT. Everyone\'s asked it to rate their selfie.', selection: "good", range: "good", tokens: [6, 16] },
+ { html: ' But it\'s a chatbot, not a face scanner. It can\'t measure a jawline, so it just guesses to keep you happy. <span class="syn-marker semantic-token" data-selection="good">@/good</span>', selection: "good", range: "good", tokens: [16, 37] },
+ { html: ' <span class="syn-tag">&lt;/segment&gt;</span>' },
+ { html: "" },
+ { html: ' <span class="syn-tag">&lt;segment</span> <span class="syn-attr">id</span>=<span class="syn-string">"better"</span><span class="syn-tag">&gt;</span>' },
+ { html: ' <span class="syn-tag">&lt;SPEAKER&gt;</span> <span class="syn-marker semantic-token" data-selection="better">@better</span> Better is LooksMax AI, an app actually built to score your face.', selection: "better", range: "better", tokens: [37, 49] },
+ { html: ' But it scores the photo, not you. Same guy, new lighting, totally different number. <span class="syn-marker semantic-token" data-selection="better">@/better</span>', selection: "better", range: "better", tokens: [49, 63] },
+ { html: ' <span class="syn-tag">&lt;/segment&gt;</span>' },
+ { html: "" },
+ { html: ' <span class="syn-tag">&lt;segment</span> <span class="syn-attr">id</span>=<span class="syn-string">"best"</span><span class="syn-tag">&gt;</span>' },
+ { html: ' <span class="syn-tag">&lt;SPEAKER&gt;</span> <span class="syn-marker semantic-token" data-selection="best">@best</span> Best is Areum. It scans your face in 3D with Face ID. No angles, no lighting tricks.', selection: "best", range: "best", tokens: [63, 82] },
+ { html: ' And it doesn\'t stop at a score.', range: "best", tokens: [82, 90] },
+ { html: ' <span class="syn-marker semantic-token" data-selection="votes">@votes</span> It\'s built on 7 million real human votes. <span class="syn-marker semantic-token" data-selection="votes">@/votes</span>', selection: "votes", range: "votes", ranges: ["best", "votes"], tokens: [90, 98] },
+ { html: ' <span class="syn-marker semantic-token" data-selection="attract">@attract</span> Shows you which type of people you attract, <span class="syn-marker semantic-token" data-selection="attract">@/attract</span>', selection: "attract", range: "attract", ranges: ["best", "attract"], tokens: [98, 106] },
+ { html: ' <span class="syn-marker semantic-token" data-selection="features">@features</span> and tells you exactly which feature to fix first. <span class="syn-marker semantic-token" data-selection="features">@/features</span>', selection: "features", range: "features", ranges: ["best", "features"], tokens: [106, 114] },
+ { html: ' Your glow up, finally measurable. <span class="syn-marker semantic-token" data-selection="best">@/best</span>', selection: "best", range: "best", tokens: [114, 118] },
+ { html: ' <span class="syn-tag">&lt;/segment&gt;</span>' },
+ { html: '<span class="syn-tag">&lt;/script&gt;</span>' },
+ { html: "" },
+ { html: '<span class="syn-tag">&lt;good-better-best&gt;</span>' },
+ { html: ' <span class="syn-tag">&lt;item</span> <span class="syn-attr">label</span>=<span class="syn-string">"GOOD"</span> <span class="syn-attr">during</span>=<span class="syn-expr semantic-token" data-selection="good">{script.selection.good}</span> <span class="syn-tag">/&gt;</span>', selection: "good" },
+ { html: ' <span class="syn-tag">&lt;item</span> <span class="syn-attr">label</span>=<span class="syn-string">"BETTER"</span> <span class="syn-attr">during</span>=<span class="syn-expr semantic-token" data-selection="better">{script.selection.better}</span> <span class="syn-tag">/&gt;</span>', selection: "better" },
+ { html: ' <span class="syn-tag">&lt;item</span> <span class="syn-attr">label</span>=<span class="syn-string">"BEST"</span> <span class="syn-attr">during</span>=<span class="syn-expr semantic-token" data-selection="best">{script.selection.best}</span> <span class="syn-tag">/&gt;</span>', selection: "best" },
+ { html: '<span class="syn-tag">&lt;/good-better-best&gt;</span>' },
+ { html: "" },
+ { html: '<span class="syn-tag">&lt;deck&gt;</span>' },
+ { html: ' <span class="syn-tag">&lt;card</span> <span class="syn-attr">during</span>=<span class="syn-expr semantic-token" data-selection="votes">{script.selection.votes}</span> <span class="syn-tag">/&gt;</span>', selection: "votes" },
+ { html: ' <span class="syn-tag">&lt;card</span> <span class="syn-attr">during</span>=<span class="syn-expr semantic-token" data-selection="attract">{script.selection.attract}</span> <span class="syn-tag">/&gt;</span>', selection: "attract" },
+ { html: ' <span class="syn-tag">&lt;card</span> <span class="syn-attr">during</span>=<span class="syn-expr semantic-token" data-selection="features">{script.selection.features}</span> <span class="syn-tag">/&gt;</span>', selection: "features" },
+ { html: '<span class="syn-tag">&lt;/deck&gt;</span>' },
+];
+
+export const semanticVideoDemos: Record<DemoId, SemanticVideoDemoConfig> = {
+ street: {
+ id: "street",
+ duration: 31.1333333333,
+ words: streetWords,
+ scenes: [
+ { src: "/street-interview/scene-1.mp4", start: 0, end: 5 },
+ { src: "/street-interview/scene-2.mp4", start: 5, end: 11 },
+ { src: "/street-interview/scene-3.mp4", start: 11, end: 22 },
+ { src: "/street-interview/scene-4.mp4", start: 22, end: 31.1333333333 },
+ ],
+ selections: [
+ { id: "hook", start: .04, end: 5.12, layer: "scene" },
+ { id: "rainbow", start: 5.12, end: 11.12, layer: "scene" },
+ { id: "fees", start: 11.12, end: 22.2, layer: "scene" },
+ { id: "loan", start: 22.2, end: 31.13, layer: "scene" },
+ { id: "seven-bags", start: 7.08, end: 11.12, layer: "overlay", asset: "/street-interview/broll-2.mp4" },
+ { id: "receipt", start: 18.81, end: 22.2, layer: "overlay", asset: "/street-interview/broll-3.mp4" },
+ { id: "college", start: 26.22, end: 31.06, layer: "overlay", asset: "/street-interview/broll-4.mp4" },
+ ],
+ lines: streetLines,
+ },
+ "good-better-best": {
+ id: "good-better-best",
+ duration: 42.0333333333,
+ words: goodBetterBestWords,
+ scenes: [
+ { src: "/good-better-best/speaker-hook.mp4", start: 0, end: 4 },
+ { src: "/good-better-best/speaker-1.mp4", start: 4, end: 8 },
+ { src: "/good-better-best/speaker-good.mp4", start: 8, end: 14 },
+ { src: "/good-better-best/speaker-2.mp4", start: 14, end: 18.05 },
+ { src: "/good-better-best/speaker-better.mp4", start: 18.05, end: 23.05 },
+ { src: "/good-better-best/speaker-3.mp4", start: 23.05, end: 28.05 },
+ { src: "/good-better-best/speaker-best.mp4", start: 28.05, end: 42.0333333333 },
+ ],
+ selections: [
+ { id: "hook", start: .19, end: 4.01, layer: "scene" },
+ { id: "good", start: 4.01, end: 14.12, layer: "scene" },
+ { id: "better", start: 14.12, end: 23.12, layer: "scene" },
+ { id: "best", start: 23.12, end: 41.34, layer: "scene" },
+ { id: "votes", start: 30.24, end: 33.45, layer: "overlay", asset: "/good-better-best/deck-votes.png" },
+ { id: "attract", start: 33.49, end: 36, layer: "overlay", asset: "/good-better-best/deck-attract.png" },
+ { id: "features", start: 36, end: 39.28, layer: "overlay", asset: "/good-better-best/deck-features.png" },
+ ],
+ lines: goodBetterBestLines,
+ },
+};
diff --git a/docs/.vitepress/theme/index.ts b/docs/.vitepress/theme/index.ts
index f602c5f0..afaa9855 100644
--- a/docs/.vitepress/theme/index.ts
+++ b/docs/.vitepress/theme/index.ts
@@ -1,11 +1,11 @@
import DefaultTheme from "vitepress/theme";
import type { Theme } from "vitepress";
-import SvmlPlayground from "./components/SvmlPlayground.vue";
+import SvmlDemoCarousel from "./components/SvmlDemoCarousel.vue";
import "./style.css";
export default {
extends: DefaultTheme,
enhanceApp({ app }) {
- app.component("SvmlPlayground", SvmlPlayground);
+ app.component("SvmlDemoCarousel", SvmlDemoCarousel);
},
} satisfies Theme;
diff --git a/docs/.vitepress/theme/style.css b/docs/.vitepress/theme/style.css
index 34d123e8..02b2821b 100644
--- a/docs/.vitepress/theme/style.css
+++ b/docs/.vitepress/theme/style.css
@@ -1,30 +1,31 @@
:root {
--vp-font-family-base: "Manrope", ui-sans-serif, system-ui, sans-serif;
--vp-font-family-mono: "DM Mono", ui-monospace, SFMono-Regular, monospace;
- --vp-c-brand-1: #a6ff3f;
- --vp-c-brand-2: #8fe72b;
- --vp-c-brand-3: #79c621;
- --vp-c-brand-soft: rgba(166, 255, 63, 0.14);
- --vp-c-bg: #0b0d10;
- --vp-c-bg-alt: #0f1216;
- --vp-c-bg-elv: #14181d;
- --vp-c-bg-soft: #14181d;
- --vp-c-text-1: #f4f7f0;
- --vp-c-text-2: #aeb6aa;
- --vp-c-text-3: #737c74;
- --vp-c-divider: rgba(255, 255, 255, 0.1);
- --vp-nav-bg-color: rgba(11, 13, 16, 0.82);
- --vp-sidebar-bg-color: #0b0d10;
- --vp-code-block-bg: #111419;
+ --vp-c-brand-1: #ec4899;
+ --vp-c-brand-2: #db2777;
+ --vp-c-brand-3: #be185d;
+ --vp-c-brand-soft: rgba(236, 72, 153, 0.14);
+ --vp-c-bg: #000;
+ --vp-c-bg-alt: #0a0a0a;
+ --vp-c-bg-elv: #111;
+ --vp-c-bg-soft: #111;
+ --vp-c-text-1: #f5f5f5;
+ --vp-c-text-2: #a3a3a3;
+ --vp-c-text-3: #737373;
+ --vp-c-divider: #262626;
+ --vp-nav-bg-color: rgba(0, 0, 0, 0.86);
+ --vp-sidebar-bg-color: #000;
+ --vp-code-block-bg: #0a0a0a;
}
-html { background: #0b0d10; }
+html { background: #000; }
body { letter-spacing: -0.012em; }
.VPHome { margin-bottom: 0 !important; }
.VPNav { backdrop-filter: blur(18px); border-bottom: 1px solid rgba(255,255,255,.08); }
.VPNavBarTitle .logo { width: 26px; height: 26px; }
.VPNavBarTitle .title { font-weight: 800; letter-spacing: -.04em; }
-.VPButton.brand { color: #0b0d10 !important; border-color: #a6ff3f !important; background: #a6ff3f !important; }
+.VPButton.brand { color: #fff !important; border-color: #ec4899 !important; background: #ec4899 !important; }
+.VPButton.brand:hover { border-color: #db2777 !important; background: #db2777 !important; }
.VPButton.alt { border-color: rgba(255,255,255,.16) !important; background: rgba(255,255,255,.055) !important; }
.VPHero { padding-top: 104px !important; padding-bottom: 48px !important; }
@@ -38,24 +39,24 @@ body { letter-spacing: -0.012em; }
.home-statement { max-width: 1180px; margin: 28px auto 72px; padding: 0 4px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: start; }
.home-statement h2 { margin: 0; border: 0; padding: 0; font-size: clamp(34px, 4.8vw, 64px); line-height: 1.04; letter-spacing: -.055em; }
.home-statement p { margin: 8px 0 0; color: #aeb6aa; font-size: 17px; line-height: 1.8; }
-.home-statement code { color: #a6ff3f; background: rgba(166,255,63,.08); }
+.home-statement code { color: #f472b6; background: rgba(236,72,153,.08); }
.svml-demo { width: 100%; margin: 16px auto 0; }
.demo-heading { margin: 0 0 24px; }
.demo-heading h2 { margin: 0; border: 0; padding: 0; font-size: clamp(26px, 3vw, 40px); letter-spacing: -.045em; }
-.eyebrow { font-family: var(--vp-font-family-mono); color: #a6ff3f; font-size: 11px; letter-spacing: .16em; }
-.demo-shell { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); min-height: 670px; overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: 16px; background: #0d1014; }
+.eyebrow { font-family: var(--vp-font-family-mono); color: #ec4899; font-size: 11px; letter-spacing: .16em; }
+.demo-shell { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); min-height: 670px; overflow: hidden; border: 1px solid #262626; border-radius: 16px; background: #0a0a0a; }
.source-panel, .preview-panel { min-width: 0; }
.source-panel { position: relative; border-right: 1px solid rgba(255,255,255,.1); background: transparent; }
-.preview-panel { display: flex; flex-direction: column; background: #0e1115; }
+.preview-panel { display: flex; flex-direction: column; background: #0a0a0a; }
.panel-bar { height: 48px; display: flex; align-items: center; gap: 14px; padding: 0 16px; border-bottom: 1px solid rgba(255,255,255,.08); color: #768077; font-family: var(--vp-font-family-mono); font-size: 11px; }
.traffic { display: flex; gap: 6px; }
.traffic i { width: 8px; height: 8px; border-radius: 50%; background: #3a403e; }
.filename { display: inline-flex; align-items: center; gap: 7px; color: #ccd2ca; }
-.file-glyph { display: grid; place-items: center; width: 17px; height: 17px; border-radius: 4px; background: #a6ff3f; color: #10130e; font-size: 10px; font-weight: 600; }
+.file-glyph { display: grid; place-items: center; width: 17px; height: 17px; border-radius: 4px; background: #ec4899; color: #fff; font-size: 10px; font-weight: 600; }
.source-state { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; }
-.source-state i, .live-badge i { width: 6px; height: 6px; border-radius: 50%; background: #a6ff3f; box-shadow: 0 0 8px rgba(166,255,63,.7); }
-.source-follow-hint { position: absolute; z-index: 10; top: 8px; right: 10px; padding: 2px 6px; background: rgba(13,16,20,.82); color: #7e8780; font-family: var(--vp-font-family-mono); font-size: 10px; line-height: 18px; pointer-events: none; }
+.source-state i, .live-badge i { width: 6px; height: 6px; border-radius: 50%; background: #ec4899; box-shadow: 0 0 8px rgba(236,72,153,.7); }
+.source-follow-hint { position: absolute; z-index: 10; top: 8px; right: 10px; padding: 2px 6px; background: rgba(10,10,10,.86); color: #737373; font-family: var(--vp-font-family-mono); font-size: 10px; line-height: 18px; pointer-events: none; }
.source-measure { position: absolute; z-index: -1; top: 0; left: 0; visibility: hidden; width: 100%; pointer-events: none; }
.code-scroll { position: relative; height: 621px; overflow-x: hidden; overflow-y: auto; padding: var(--source-vertical-padding, 9px) 0; scrollbar-width: thin; scrollbar-color: #353b38 transparent; }
.code-line { position: relative; display: grid; grid-template-columns: 44px minmax(0,1fr); width: 100%; min-width: 0; min-height: 26px; margin: 0; padding: 0 18px 0 0; border: 0; background: transparent; color: #bec6bc; text-align: left; font-family: var(--vp-font-family-mono); font-size: 12px; line-height: 26px; }
@@ -63,21 +64,21 @@ body { letter-spacing: -0.012em; }
.code-line.active .line-number { color: #707970; }
.code-line code { min-width: 0; padding: 0; color: inherit; background: none; font-family: inherit; font-size: inherit; white-space: pre-wrap; overflow-wrap: anywhere; }
.svml-demo .code-line code { padding: 0 !important; border-radius: 0 !important; background: transparent !important; }
-.syn-tag { color: #85e8c4; }.syn-attr { color: #bdd78b; }.syn-string { color: #f1c48d; }.syn-expr { color: #d3a7ff; }.syn-marker { color: #b4ff5e; font-weight: 700; background: rgba(166,255,63,.11); text-shadow: 0 0 12px rgba(166,255,63,.25); }
+.syn-tag { color: #85e8c4; }.syn-attr { color: #bdd78b; }.syn-string { color: #f1c48d; }.syn-expr { color: #d3a7ff; }.syn-marker { color: #f472b6; font-weight: 700; background: rgba(236,72,153,.11); text-shadow: 0 0 12px rgba(236,72,153,.25); }
.semantic-token { margin: -3px; padding: 3px; border-radius: 4px; cursor: pointer; }
-.semantic-token:hover, .semantic-token:focus { outline: none; background: rgba(166,255,63,.16); box-shadow: 0 0 0 1px rgba(166,255,63,.34); }
+.semantic-token:hover, .semantic-token:focus { outline: none; background: rgba(236,72,153,.16); box-shadow: 0 0 0 1px rgba(236,72,153,.34); }
.semantic-range-canvas { position: absolute; z-index: 0; top: 0; left: 0; overflow: visible; pointer-events: none; }
-.semantic-range-canvas path { fill: rgba(166,255,63,.045); stroke: rgba(166,255,63,.64); stroke-width: 1; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
+.semantic-range-canvas path { fill: rgba(236,72,153,.045); stroke: rgba(236,72,153,.64); stroke-width: 1; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.semantic-range-canvas path.depth-1 { fill: rgba(99,216,255,.05); stroke: rgba(99,216,255,.7); }
.semantic-range-canvas path.depth-2 { fill: rgba(211,167,255,.05); stroke: rgba(211,167,255,.7); }
.code-line code, .code-line .line-number { position: relative; z-index: 1; }
.code-fold { display: grid; grid-template-columns: 1fr; min-height: 26px; padding: 0; background: #2a2f32; }
.code-fold code { display: block; width: 100%; color: #8b9390 !important; text-align: center; letter-spacing: 4px; line-height: 26px; }
.code-spacer { height: 26px; }
-.semantic-token.semantic-active { --semantic-color: #a6ff3f; background: var(--semantic-color); color: #0b0d10; text-shadow: none; box-shadow: 0 0 0 1px var(--semantic-color); }
+.semantic-token.semantic-active { --semantic-color: #ec4899; background: var(--semantic-color); color: #fff; text-shadow: none; box-shadow: 0 0 0 1px var(--semantic-color); }
.semantic-token.semantic-active.semantic-depth-1 { --semantic-color: #63d8ff; }
.semantic-token.semantic-active.semantic-depth-2 { --semantic-color: #d3a7ff; }
-.code-line.binding-active { background: linear-gradient(90deg, transparent 0 44px, rgba(166,255,63,.07) 44px); }
+.code-line.binding-active { background: linear-gradient(90deg, transparent 0 44px, rgba(236,72,153,.08) 44px); }
.code-line.binding-active.binding-depth-1 { background: linear-gradient(90deg, transparent 0 44px, rgba(99,216,255,.08) 44px); }
.script-word { border-radius: 3px; transition: color .08s linear, background-color .08s linear; }
.script-word.active { background: rgba(255,211,77,.18); color: #ffd34d; box-shadow: 0 0 0 1px rgba(255,211,77,.28); }
@@ -85,20 +86,20 @@ body { letter-spacing: -0.012em; }
.live-badge { display: inline-flex; align-items: center; gap: 7px; color: #cbd2c8; letter-spacing: .08em; }
.preview-mode { margin-left: auto; color: #677168; }
.frame-size { padding: 3px 7px; border: 1px solid rgba(255,255,255,.1); border-radius: 4px; color: #89928a; }
-.video-wrap { display: flex; flex: 1; flex-direction: column; justify-content: center; padding: 24px 24px 18px; background: radial-gradient(circle at 50% 30%, #181d22 0, #0d1014 65%); }
+.video-wrap { display: flex; flex: 1; flex-direction: column; justify-content: center; padding: 24px 24px 18px; background: radial-gradient(circle at 50% 30%, #171717 0, #0a0a0a 65%); }
.video-stage { position: relative; aspect-ratio: 16/9; overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; background: #182020; box-shadow: 0 24px 50px rgba(0,0,0,.38); isolation: isolate; }
.ambient { position: absolute; border-radius: 50%; filter: blur(2px); transition: all .65s cubic-bezier(.2,.8,.2,1); }
-.ambient-one { top: -45%; right: -10%; width: 65%; aspect-ratio: 1; background: radial-gradient(circle, rgba(166,255,63,.33), rgba(166,255,63,0) 67%); }
+.ambient-one { top: -45%; right: -10%; width: 65%; aspect-ratio: 1; background: radial-gradient(circle, rgba(236,72,153,.33), rgba(236,72,153,0) 67%); }
.ambient-two { bottom: -58%; left: -14%; width: 70%; aspect-ratio: 1; background: radial-gradient(circle, rgba(65,124,255,.3), rgba(65,124,255,0) 67%); }
.scene-point .ambient-one { top: -24%; right: 45%; width: 85%; background: radial-gradient(circle, rgba(122,79,255,.38), rgba(122,79,255,0) 67%); }
-.scene-point .ambient-two { bottom: -45%; left: 42%; background: radial-gradient(circle, rgba(166,255,63,.28), rgba(166,255,63,0) 67%); }
+.scene-point .ambient-two { bottom: -45%; left: 42%; background: radial-gradient(circle, rgba(236,72,153,.28), rgba(236,72,153,0) 67%); }
.grid-floor { position: absolute; inset: 45% -10% -60%; opacity: .18; transform: perspective(280px) rotateX(60deg); transform-origin: top; background-image: linear-gradient(rgba(255,255,255,.16) 1px,transparent 1px), linear-gradient(90deg,rgba(255,255,255,.16) 1px,transparent 1px); background-size: 24px 24px; mask-image: linear-gradient(#000,transparent 70%); }
.brand-lockup { position: absolute; top: 7%; left: 5%; display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.7); font-family: var(--vp-font-family-mono); font-size: clamp(7px,1vw,10px); letter-spacing: .1em; }
-.brand-mark { display: grid; place-items: center; width: 19px; height: 19px; border: 1px solid rgba(255,255,255,.6); border-radius: 5px; color: #a6ff3f; font-weight: 600; }
+.brand-mark { display: grid; place-items: center; width: 19px; height: 19px; border: 1px solid rgba(255,255,255,.6); border-radius: 5px; color: #ec4899; font-weight: 600; }
.opening-copy { position: absolute; top: 25%; left: 7%; z-index: 2; transition: opacity .45s, transform .55s cubic-bezier(.2,.8,.2,1); }
-.opening-copy .kicker { display: block; margin-bottom: 9px; color: #a6ff3f; font-family: var(--vp-font-family-mono); font-size: clamp(6px,.9vw,9px); letter-spacing: .18em; }
+.opening-copy .kicker { display: block; margin-bottom: 9px; color: #ec4899; font-family: var(--vp-font-family-mono); font-size: clamp(6px,.9vw,9px); letter-spacing: .18em; }
.opening-copy strong { color: #f5f7f2; font-size: clamp(17px,3.1vw,34px); line-height: 1.03; letter-spacing: -.055em; }
-.opening-copy em { color: #a6ff3f; font-style: normal; }
+.opening-copy em { color: #ec4899; font-style: normal; }
.scene-point .opening-copy { opacity: 0; transform: translateX(-24px); }
.host-card { position: absolute; right: 6%; bottom: 0; z-index: 3; width: 29%; height: 86%; transition: width .55s cubic-bezier(.2,.8,.2,1), right .55s cubic-bezier(.2,.8,.2,1), opacity .4s; }
.scene-point .host-card { right: 58%; width: 24%; }
@@ -113,41 +114,41 @@ body { letter-spacing: -0.012em; }
@keyframes speakerBlink { 0%,45%,50%,100% { transform: scaleY(1) } 48% { transform: scaleY(.12) } }
@keyframes speakerTalk { from { transform: translateY(0) } to { transform: translateY(1.5px) } }
.host-meta { position: absolute; right: 7%; bottom: 5%; display: flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 20px; background: rgba(6,9,10,.68); color: #d9ded8; font-family: var(--vp-font-family-mono); font-size: clamp(6px,.8vw,8px); }
-.host-meta i { width: 5px; height: 5px; border-radius: 50%; background: #a6ff3f; }
+.host-meta i { width: 5px; height: 5px; border-radius: 50%; background: #ec4899; }
.feature-card { position: absolute; top: 14%; right: 7%; z-index: 4; width: 41%; height: 63%; padding: 5%; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; background: linear-gradient(145deg,rgba(36,46,42,.92),rgba(13,17,18,.95)); box-shadow: 0 20px 40px rgba(0,0,0,.32); opacity: 0; transform: translateX(30px) rotate(3deg); transition: opacity .45s, transform .58s cubic-bezier(.2,.8,.2,1); }
.scene-point .feature-card { opacity: 1; transform: translateX(0) rotate(0); }
.feature-topline { display: flex; justify-content: space-between; color: #9ea79e; font-family: var(--vp-font-family-mono); font-size: clamp(5px,.78vw,8px); letter-spacing: .08em; }
.component-icon { display: flex; align-items: center; gap: 5px; width: 44%; aspect-ratio: 1.6; margin: 10% 0 6%; }
-.component-icon span { width: 27%; aspect-ratio: 1; border: 1px solid rgba(166,255,63,.8); border-radius: 4px; background: rgba(166,255,63,.08); }
-.component-icon span:nth-child(2) { transform: translateY(-40%); background: #a6ff3f; }
+.component-icon span { width: 27%; aspect-ratio: 1; border: 1px solid rgba(236,72,153,.8); border-radius: 4px; background: rgba(236,72,153,.08); }
+.component-icon span:nth-child(2) { transform: translateY(-40%); background: #ec4899; }
.feature-card strong { color: #f5f7f2; font-size: clamp(13px,2.35vw,26px); line-height: .94; letter-spacing: -.05em; }
.feature-card p { margin: 5px 0 0; color: #8f9b90; font-size: clamp(6px,.9vw,10px); }
.caption-card { position: absolute; left: 50%; bottom: 5%; z-index: 8; min-width: 42%; padding: 8px 12px; border-radius: 6px; background: rgba(6,8,9,.82); color: #fff; text-align: center; font-size: clamp(7px,1.3vw,14px); transform: translateX(-50%); backdrop-filter: blur(8px); transition: all .25s; }
-.caption-card strong { color: #a6ff3f; }
-.caption-card small { position: absolute; top: -14px; left: 0; color: #a6ff3f; font-family: var(--vp-font-family-mono); font-size: clamp(5px,.7vw,7px); letter-spacing: .1em; }
-.inspected { outline: 1.5px solid #a6ff3f !important; outline-offset: 4px; box-shadow: 0 0 0 1px rgba(166,255,63,.16), 0 0 28px rgba(166,255,63,.16) !important; }
-.inspect-label, .frame-inspector span { position: absolute; top: -5px; left: -5px; padding: 3px 6px; border-radius: 3px; background: #a6ff3f; color: #10130e; font-family: var(--vp-font-family-mono); font-size: clamp(5px,.7vw,7px); line-height: 1; }
+.caption-card strong { color: #ec4899; }
+.caption-card small { position: absolute; top: -14px; left: 0; color: #ec4899; font-family: var(--vp-font-family-mono); font-size: clamp(5px,.7vw,7px); letter-spacing: .1em; }
+.inspected { outline: 1.5px solid #ec4899 !important; outline-offset: 4px; box-shadow: 0 0 0 1px rgba(236,72,153,.16), 0 0 28px rgba(236,72,153,.16) !important; }
+.inspect-label, .frame-inspector span { position: absolute; top: -5px; left: -5px; padding: 3px 6px; border-radius: 3px; background: #ec4899; color: #fff; font-family: var(--vp-font-family-mono); font-size: clamp(5px,.7vw,7px); line-height: 1; }
.caption-card .inspect-label { top: -7px; left: -6px; }
-.frame-inspector { position: absolute; inset: 4px; z-index: 12; border: 1.5px solid #a6ff3f; border-radius: 7px; pointer-events: none; box-shadow: inset 0 0 28px rgba(166,255,63,.08); }
+.frame-inspector { position: absolute; inset: 4px; z-index: 12; border: 1.5px solid #ec4899; border-radius: 7px; pointer-events: none; box-shadow: inset 0 0 28px rgba(236,72,153,.08); }
.frame-inspector span { top: 4px; left: 4px; }
-.transition-sweep { position: absolute; inset: 0; z-index: 10; overflow: hidden; background: linear-gradient(110deg, transparent 25%, rgba(166,255,63,.12) 42%, rgba(255,255,255,.32) 49%, rgba(166,255,63,.1) 56%, transparent 72%); animation: sweep 1.2s linear infinite; }
-.transition-sweep span { position: absolute; top: 8%; right: 5%; color: #a6ff3f; font-family: var(--vp-font-family-mono); font-size: 7px; letter-spacing: .1em; }
+.transition-sweep { position: absolute; inset: 0; z-index: 10; overflow: hidden; background: linear-gradient(110deg, transparent 25%, rgba(236,72,153,.12) 42%, rgba(255,255,255,.32) 49%, rgba(236,72,153,.1) 56%, transparent 72%); animation: sweep 1.2s linear infinite; }
+.transition-sweep span { position: absolute; top: 8%; right: 5%; color: #ec4899; font-family: var(--vp-font-family-mono); font-size: 7px; letter-spacing: .1em; }
@keyframes sweep { from { transform: translateX(-75%) } to { transform: translateX(75%) } }
.video-grain { position: absolute; inset: 0; z-index: 20; opacity: .025; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E"); }
.semantic-controls { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 12px; margin-top: 14px; padding: 9px 11px; border: 1px solid rgba(255,255,255,.1); border-radius: 9px; background: rgba(20,24,28,.86); transition: outline .2s, box-shadow .2s; }
-.play-button { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; background: #202620; color: #a6ff3f; font-size: 10px; cursor: pointer; }
-.play-button:hover { background: #293229; }
+.play-button { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 1px solid #262626; border-radius: 50%; background: #171717; color: #ec4899; font-size: 10px; cursor: pointer; }
+.play-button:hover { background: #262626; }
.semantic-timeline { min-width: 0; }
.timeline-labels { display: grid; grid-template-columns: 31fr 44fr 25fr; margin-bottom: 5px; color: #5f6860; font-family: var(--vp-font-family-mono); font-size: 7px; }
.timeline-labels span:nth-child(2) { text-align: center; }.timeline-labels span:nth-child(3) { text-align: right; }
.timeline-labels .current { color: #b8c1b7; }
.timeline-track { position: relative; display: grid; grid-template-columns: 31fr 44fr 25fr; gap: 3px; height: 5px; }
.timeline-track .segment { border-radius: 3px; background: #303731; }.timeline-track .point { background: #394139; }
-.playhead { position: absolute; top: 50%; width: 2px; height: 15px; border-radius: 2px; background: #a6ff3f; box-shadow: 0 0 8px rgba(166,255,63,.7); transform: translate(-1px,-50%); }
+.playhead { position: absolute; top: 50%; width: 2px; height: 15px; border-radius: 2px; background: #ec4899; box-shadow: 0 0 8px rgba(236,72,153,.7); transform: translate(-1px,-50%); }
.semantic-readout { min-width: 65px; border-left: 1px solid rgba(255,255,255,.1); padding-left: 10px; line-height: 1.05; }
.semantic-readout small { display: block; margin-bottom: 4px; color: #606961; font-size: 7px; }.semantic-readout strong { color: #cbd3ca; font-family: var(--vp-font-family-mono); font-size: 9px; }
.inspection-note { height: 54px; display: flex; align-items: center; gap: 9px; padding: 0 18px; border-top: 1px solid rgba(255,255,255,.08); color: #aeb6ad; font-size: 11px; }
-.note-crosshair { color: #a6ff3f; font-family: var(--vp-font-family-mono); font-size: 16px; }.inspection-note small { margin-left: auto; color: #616961; font-family: var(--vp-font-family-mono); font-size: 9px; }
+.note-crosshair { color: #ec4899; font-family: var(--vp-font-family-mono); font-size: 16px; }.inspection-note small { margin-left: auto; color: #737373; font-family: var(--vp-font-family-mono); font-size: 9px; }
/* Real video version of the source-to-preview demo. */
.real-demo-shell { min-height: 720px; }
@@ -180,17 +181,17 @@ body { letter-spacing: -0.012em; }
.frame-counter { position: absolute; right: 10px; bottom: 9px; color: rgba(255,255,255,.32); font-family: var(--vp-font-family-mono); font-size: 6px; letter-spacing: .08em; }
.render-badge { position: absolute; top: 10px; right: 10px; display: flex; align-items: center; gap: 5px; padding: 4px 7px; border: 1px solid rgba(255,255,255,.16); border-radius: 4px; background: rgba(5,7,9,.72); color: #d2d8d0; font-family: var(--vp-font-family-mono); font-size: 6px; letter-spacing: .08em; backdrop-filter: blur(7px); }
.render-badge i { width: 5px; height: 5px; border-radius: 50%; background: #ff4a4a; box-shadow: 0 0 7px rgba(255,74,74,.8); }
-.ranking-board-outline, .ranking-stage-outline { position: absolute; z-index: 3; border: 2px solid #a6ff3f; opacity: 0; pointer-events: none; transition: opacity .18s ease; }
+.ranking-board-outline, .ranking-stage-outline { position: absolute; z-index: 3; border: 2px solid #ec4899; opacity: 0; pointer-events: none; transition: opacity .18s ease; }
.ranking-board-outline.visible, .ranking-stage-outline.visible { opacity: 1; }
.ranking-board-outline { left: .6%; top: 15.8%; width: 33.5%; height: 44.2%; border-radius: 5px; }
.ranking-stage-outline { left: 49.3%; top: 63.4%; width: 33.5%; aspect-ratio: 1; border-radius: 12%; }
-.ranking-board-outline span, .ranking-stage-outline span { position: absolute; top: -13px; left: -1px; padding: 2px 4px; border-radius: 2px 2px 0 0; background: #a6ff3f; color: #0d110c; font-family: var(--vp-font-family-mono); font-size: 6px; line-height: 10px; }
+.ranking-board-outline span, .ranking-stage-outline span { position: absolute; top: -13px; left: -1px; padding: 2px 4px; border-radius: 2px 2px 0 0; background: #ec4899; color: #fff; font-family: var(--vp-font-family-mono); font-size: 6px; line-height: 10px; }
.binding-card { align-self: center; min-width: 0; padding: 20px; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; background: linear-gradient(145deg,rgba(25,30,34,.92),rgba(15,18,21,.92)); }
.binding-kicker { color: #6f796f; font-family: var(--vp-font-family-mono); font-size: 8px; letter-spacing: .14em; }
.binding-source { margin-top: 15px; }
.binding-source small, .binding-output small { display: block; margin-bottom: 5px; color: #667068; font-family: var(--vp-font-family-mono); font-size: 7px; letter-spacing: .1em; }
.binding-source code { display: block; overflow: hidden; padding: 8px 9px; border: 1px solid rgba(255,255,255,.08); border-radius: 5px; background: #101317; color: #aab3aa; font-family: var(--vp-font-family-mono); font-size: clamp(7px,.82vw,9px); white-space: nowrap; text-overflow: ellipsis; }
-.binding-source code b { color: #a6ff3f; font-weight: 500; }
+.binding-source code b { color: #ec4899; font-weight: 500; }
.binding-arrow { position: relative; height: 25px; color: #586159; text-align: center; }
.binding-arrow span { position: absolute; top: 4px; bottom: 4px; left: 50%; border-left: 1px dashed #465047; }.binding-arrow i { position: relative; top: 12px; padding: 0 3px; background: #15191d; font-size: 8px; font-style: normal; }
.binding-output { position: relative; overflow: hidden; padding: 12px; border: 1px solid color-mix(in srgb, var(--rank-color), transparent 52%); border-radius: 7px; background: color-mix(in srgb, var(--rank-color), transparent 90%); }
@@ -199,7 +200,7 @@ body { letter-spacing: -0.012em; }
.binding-card p { margin: 15px 0 0; color: #747d75; font-size: 9px; line-height: 1.6; }
.real-semantic-controls { display: grid; grid-template-columns: minmax(0,1fr); align-items: center; margin: 0 28px 26px; padding: 0; }
.ranking-labels { display: flex; gap: 0; }
-.ranking-labels button { min-width: 0; flex-basis: 0; overflow: hidden; padding: 4px 2px; border: 0; background: none; color: #727b73; text-align: center; font-family: var(--vp-font-family-mono); font-size: 10px; text-overflow: ellipsis; cursor: pointer; }.ranking-labels button.current { color: #a6ff3f; }
+.ranking-labels button { min-width: 0; flex-basis: 0; overflow: hidden; padding: 4px 2px; border: 0; background: none; color: #737373; text-align: center; font-family: var(--vp-font-family-mono); font-size: 10px; text-overflow: ellipsis; cursor: pointer; }.ranking-labels button.current { color: #ec4899; }
.ranking-track { display: flex; gap: 0; }
.ranking-track .segment { min-width: 0; flex-basis: 0; }
.ranking-track .segment { border-radius: 0; box-shadow: inset -1px 0 rgba(11,13,16,.55); }
@@ -210,7 +211,7 @@ body { letter-spacing: -0.012em; }
.feature-strip { max-width: 1180px; margin: 0 auto 96px; display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12); }
.feature-strip article { padding: 34px 32px 38px; }.feature-strip article + article { border-left: 1px solid rgba(255,255,255,.12); }
-.feature-strip span { color: #a6ff3f; font-family: var(--vp-font-family-mono); font-size: 10px; }.feature-strip h3 { margin: 16px 0 8px; font-size: 18px; }.feature-strip p { margin: 0; color: #89928a; font-size: 13px; line-height: 1.65; }
+.feature-strip span { color: #ec4899; font-family: var(--vp-font-family-mono); font-size: 10px; }.feature-strip h3 { margin: 16px 0 8px; font-size: 18px; }.feature-strip p { margin: 0; color: #a3a3a3; font-size: 13px; line-height: 1.65; }
@media (max-width: 900px) {
.VPHero { padding-top: 64px !important; }
diff --git a/docs/index.md b/docs/index.md
index 5d31b746..01355693 100644
--- a/docs/index.md
+++ b/docs/index.md
@@ -15,5 +15,5 @@ hero:
---
<ClientOnly>
- <SvmlPlayground />
+ <SvmlDemoCarousel />
</ClientOnly>
diff --git a/docs/public/good-better-best/transcript.json b/docs/public/good-better-best/transcript.json
new file mode 100644
index 00000000..ebf06a68
--- /dev/null
+++ b/docs/public/good-better-best/transcript.json
@@ -0,0 +1,592 @@
+[
+ {
+ "text": "Good.",
+ "start": 0.19,
+ "end": 1
+ },
+ {
+ "text": "Better.",
+ "start": 1,
+ "end": 1.61
+ },
+ {
+ "text": "Best.",
+ "start": 1.7,
+ "end": 2.26
+ },
+ {
+ "text": "Face",
+ "start": 2.26,
+ "end": 2.62
+ },
+ {
+ "text": "Rating",
+ "start": 2.62,
+ "end": 3.16
+ },
+ {
+ "text": "Edition.",
+ "start": 3.16,
+ "end": 3.83
+ },
+ {
+ "text": "Good",
+ "start": 4.01,
+ "end": 4.32
+ },
+ {
+ "text": "is",
+ "start": 4.34,
+ "end": 4.57
+ },
+ {
+ "text": "ChatGBT.",
+ "start": 4.57,
+ "end": 5.44
+ },
+ {
+ "text": "Everyone's",
+ "start": 5.7,
+ "end": 6.35
+ },
+ {
+ "text": "asked",
+ "start": 6.38,
+ "end": 6.63
+ },
+ {
+ "text": "it",
+ "start": 6.72,
+ "end": 6.81
+ },
+ {
+ "text": "to",
+ "start": 6.86,
+ "end": 7
+ },
+ {
+ "text": "rate",
+ "start": 7,
+ "end": 7.2
+ },
+ {
+ "text": "their",
+ "start": 7.2,
+ "end": 7.42
+ },
+ {
+ "text": "selfie.",
+ "start": 7.61,
+ "end": 8.42
+ },
+ {
+ "text": "But",
+ "start": 8.42,
+ "end": 8.56
+ },
+ {
+ "text": "it's",
+ "start": 8.68,
+ "end": 8.78
+ },
+ {
+ "text": "a",
+ "start": 8.78,
+ "end": 8.83
+ },
+ {
+ "text": "chatbot,",
+ "start": 8.83,
+ "end": 9.24
+ },
+ {
+ "text": "not",
+ "start": 9.35,
+ "end": 9.44
+ },
+ {
+ "text": "a",
+ "start": 9.44,
+ "end": 9.57
+ },
+ {
+ "text": "face",
+ "start": 9.57,
+ "end": 9.72
+ },
+ {
+ "text": "scanner.",
+ "start": 9.94,
+ "end": 10.31
+ },
+ {
+ "text": "It",
+ "start": 10.34,
+ "end": 10.41
+ },
+ {
+ "text": "can't",
+ "start": 10.42,
+ "end": 10.66
+ },
+ {
+ "text": "measure",
+ "start": 10.66,
+ "end": 10.99
+ },
+ {
+ "text": "a",
+ "start": 10.99,
+ "end": 11.05
+ },
+ {
+ "text": "jawline,",
+ "start": 11.05,
+ "end": 11.52
+ },
+ {
+ "text": "so",
+ "start": 11.52,
+ "end": 12.08
+ },
+ {
+ "text": "it",
+ "start": 12.08,
+ "end": 12.18
+ },
+ {
+ "text": "just",
+ "start": 12.18,
+ "end": 12.38
+ },
+ {
+ "text": "guesses",
+ "start": 12.38,
+ "end": 12.76
+ },
+ {
+ "text": "to",
+ "start": 12.77,
+ "end": 12.78
+ },
+ {
+ "text": "keep",
+ "start": 12.95,
+ "end": 13.24
+ },
+ {
+ "text": "you",
+ "start": 13.24,
+ "end": 13.36
+ },
+ {
+ "text": "happy.",
+ "start": 13.6,
+ "end": 14.12
+ },
+ {
+ "text": "Better",
+ "start": 14.12,
+ "end": 14.56
+ },
+ {
+ "text": "is",
+ "start": 14.56,
+ "end": 14.73
+ },
+ {
+ "text": "LooksMax",
+ "start": 14.73,
+ "end": 15.34
+ },
+ {
+ "text": "AI,",
+ "start": 15.34,
+ "end": 15.64
+ },
+ {
+ "text": "an",
+ "start": 15.68,
+ "end": 15.79
+ },
+ {
+ "text": "app",
+ "start": 15.79,
+ "end": 16.02
+ },
+ {
+ "text": "actually",
+ "start": 16.02,
+ "end": 16.39
+ },
+ {
+ "text": "built",
+ "start": 16.77,
+ "end": 17.04
+ },
+ {
+ "text": "to",
+ "start": 17.04,
+ "end": 17.16
+ },
+ {
+ "text": "score",
+ "start": 17.16,
+ "end": 17.49
+ },
+ {
+ "text": "your",
+ "start": 17.49,
+ "end": 17.73
+ },
+ {
+ "text": "face.",
+ "start": 17.75,
+ "end": 18.2
+ },
+ {
+ "text": "But",
+ "start": 18.4,
+ "end": 18.43
+ },
+ {
+ "text": "it",
+ "start": 18.43,
+ "end": 18.57
+ },
+ {
+ "text": "scores",
+ "start": 18.57,
+ "end": 18.82
+ },
+ {
+ "text": "the",
+ "start": 19.06,
+ "end": 19.2
+ },
+ {
+ "text": "photo,",
+ "start": 19.2,
+ "end": 19.69
+ },
+ {
+ "text": "not",
+ "start": 19.69,
+ "end": 19.83
+ },
+ {
+ "text": "you.",
+ "start": 19.92,
+ "end": 20.23
+ },
+ {
+ "text": "Same",
+ "start": 20.37,
+ "end": 20.54
+ },
+ {
+ "text": "guy,",
+ "start": 20.74,
+ "end": 20.85
+ },
+ {
+ "text": "new",
+ "start": 20.9,
+ "end": 21.04
+ },
+ {
+ "text": "lighting,",
+ "start": 21.04,
+ "end": 21.6
+ },
+ {
+ "text": "totally",
+ "start": 21.6,
+ "end": 21.94
+ },
+ {
+ "text": "different",
+ "start": 22.23,
+ "end": 22.54
+ },
+ {
+ "text": "number.",
+ "start": 22.54,
+ "end": 23.12
+ },
+ {
+ "text": "Best",
+ "start": 23.12,
+ "end": 23.41
+ },
+ {
+ "text": "is",
+ "start": 23.45,
+ "end": 23.46
+ },
+ {
+ "text": "a",
+ "start": 23.46,
+ "end": 23.63
+ },
+ {
+ "text": "drone.",
+ "start": 23.63,
+ "end": 24.03
+ },
+ {
+ "text": "It",
+ "start": 24.19,
+ "end": 24.2
+ },
+ {
+ "text": "scans",
+ "start": 24.28,
+ "end": 24.54
+ },
+ {
+ "text": "your",
+ "start": 24.54,
+ "end": 24.79
+ },
+ {
+ "text": "face",
+ "start": 24.79,
+ "end": 25.03
+ },
+ {
+ "text": "in",
+ "start": 25.03,
+ "end": 25.16
+ },
+ {
+ "text": "3D",
+ "start": 25.16,
+ "end": 25.4
+ },
+ {
+ "text": "with",
+ "start": 25.4,
+ "end": 25.65
+ },
+ {
+ "text": "Face",
+ "start": 25.65,
+ "end": 25.76
+ },
+ {
+ "text": "ID.",
+ "start": 25.96,
+ "end": 26.2
+ },
+ {
+ "text": "No",
+ "start": 26.2,
+ "end": 26.32
+ },
+ {
+ "text": "angles,",
+ "start": 26.36,
+ "end": 26.81
+ },
+ {
+ "text": "no",
+ "start": 26.81,
+ "end": 26.93
+ },
+ {
+ "text": "lighting",
+ "start": 26.93,
+ "end": 27.2
+ },
+ {
+ "text": "tricks.",
+ "start": 27.45,
+ "end": 27.9
+ },
+ {
+ "text": "And",
+ "start": 27.99,
+ "end": 28.2
+ },
+ {
+ "text": "it",
+ "start": 28.27,
+ "end": 28.28
+ },
+ {
+ "text": "doesn't",
+ "start": 28.45,
+ "end": 28.87
+ },
+ {
+ "text": "stop",
+ "start": 29.1,
+ "end": 29.33
+ },
+ {
+ "text": "at",
+ "start": 29.33,
+ "end": 29.41
+ },
+ {
+ "text": "a",
+ "start": 29.54,
+ "end": 29.57
+ },
+ {
+ "text": "score.",
+ "start": 29.57,
+ "end": 30.24
+ },
+ {
+ "text": "It's",
+ "start": 30.24,
+ "end": 30.56
+ },
+ {
+ "text": "built",
+ "start": 30.79,
+ "end": 30.98
+ },
+ {
+ "text": "on",
+ "start": 30.98,
+ "end": 31.14
+ },
+ {
+ "text": "7",
+ "start": 31.18,
+ "end": 31.39
+ },
+ {
+ "text": "million",
+ "start": 31.39,
+ "end": 31.87
+ },
+ {
+ "text": "real",
+ "start": 31.97,
+ "end": 32.3
+ },
+ {
+ "text": "human",
+ "start": 32.3,
+ "end": 32.69
+ },
+ {
+ "text": "votes.",
+ "start": 32.72,
+ "end": 33.45
+ },
+ {
+ "text": "Shows",
+ "start": 33.49,
+ "end": 33.73
+ },
+ {
+ "text": "you",
+ "start": 33.92,
+ "end": 34.05
+ },
+ {
+ "text": "which",
+ "start": 34.06,
+ "end": 34.2
+ },
+ {
+ "text": "type",
+ "start": 34.39,
+ "end": 34.49
+ },
+ {
+ "text": "of",
+ "start": 34.5,
+ "end": 34.65
+ },
+ {
+ "text": "people",
+ "start": 34.65,
+ "end": 35.1
+ },
+ {
+ "text": "you",
+ "start": 35.1,
+ "end": 35.31
+ },
+ {
+ "text": "attract,",
+ "start": 35.31,
+ "end": 36
+ },
+ {
+ "text": "and",
+ "start": 36,
+ "end": 36.22
+ },
+ {
+ "text": "tells",
+ "start": 36.35,
+ "end": 36.52
+ },
+ {
+ "text": "you",
+ "start": 36.72,
+ "end": 36.81
+ },
+ {
+ "text": "exactly",
+ "start": 36.81,
+ "end": 37.34
+ },
+ {
+ "text": "which",
+ "start": 37.34,
+ "end": 37.69
+ },
+ {
+ "text": "feature",
+ "start": 37.7,
+ "end": 38.24
+ },
+ {
+ "text": "to",
+ "start": 38.24,
+ "end": 38.39
+ },
+ {
+ "text": "fix",
+ "start": 38.39,
+ "end": 38.6
+ },
+ {
+ "text": "first.",
+ "start": 38.6,
+ "end": 39.28
+ },
+ {
+ "text": "Your",
+ "start": 39.28,
+ "end": 39.39
+ },
+ {
+ "text": "glow",
+ "start": 39.43,
+ "end": 39.52
+ },
+ {
+ "text": "up,",
+ "start": 39.53,
+ "end": 39.83
+ },
+ {
+ "text": "finally",
+ "start": 39.83,
+ "end": 40.39
+ },
+ {
+ "text": "measurable.",
+ "start": 40.39,
+ "end": 41.34
+ }
+]
\ No newline at end of file
diff --git a/docs/public/logo-mark.svg b/docs/public/logo-mark.svg
index f289d152..6b4176ed 100644
--- a/docs/public/logo-mark.svg
+++ b/docs/public/logo-mark.svg
@@ -1,4 +1,4 @@
<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
- <rect x="1" y="1" width="30" height="30" rx="8" fill="#A6FF3F"/>
+ <rect x="1" y="1" width="30" height="30" rx="8" fill="#EC4899"/>
<path d="M9 10.5C9 8.567 10.567 7 12.5 7H23V11H13V14H19.5C21.433 14 23 15.567 23 17.5V21.5C23 23.433 21.433 25 19.5 25H9V21H19V18H12.5C10.567 18 9 16.433 9 14.5V10.5Z" fill="#0B0D10"/>
</svg>
diff --git a/docs/public/street-interview/transcript.json b/docs/public/street-interview/transcript.json
new file mode 100644
index 00000000..9593dd55
--- /dev/null
+++ b/docs/public/street-interview/transcript.json
@@ -0,0 +1,507 @@
+[
+ {
+ "text": "How",
+ "start": 0.04,
+ "end": 0.13
+ },
+ {
+ "text": "much",
+ "start": 0.19,
+ "end": 0.25
+ },
+ {
+ "text": "was",
+ "start": 0.37,
+ "end": 0.53
+ },
+ {
+ "text": "your",
+ "start": 0.53,
+ "end": 0.61
+ },
+ {
+ "text": "flight?",
+ "start": 0.75,
+ "end": 1.26
+ },
+ {
+ "text": "$49.",
+ "start": 1.3,
+ "end": 2.34
+ },
+ {
+ "text": "That's",
+ "start": 2.37,
+ "end": 2.59
+ },
+ {
+ "text": "cheap.",
+ "start": 2.71,
+ "end": 3.16
+ },
+ {
+ "text": "The",
+ "start": 3.2,
+ "end": 3.29
+ },
+ {
+ "text": "seat",
+ "start": 3.35,
+ "end": 3.53
+ },
+ {
+ "text": "was",
+ "start": 3.53,
+ "end": 3.7
+ },
+ {
+ "text": "cheap.",
+ "start": 3.7,
+ "end": 4.12
+ },
+ {
+ "text": "The",
+ "start": 4.2,
+ "end": 4.29
+ },
+ {
+ "text": "rainbow",
+ "start": 4.35,
+ "end": 4.6
+ },
+ {
+ "text": "wasn't.",
+ "start": 4.68,
+ "end": 5.12
+ },
+ {
+ "text": "They",
+ "start": 5.15,
+ "end": 5.34
+ },
+ {
+ "text": "charged",
+ "start": 5.34,
+ "end": 5.73
+ },
+ {
+ "text": "you",
+ "start": 5.87,
+ "end": 5.91
+ },
+ {
+ "text": "for",
+ "start": 5.91,
+ "end": 6.08
+ },
+ {
+ "text": "the",
+ "start": 6.08,
+ "end": 6.09
+ },
+ {
+ "text": "rainbow?",
+ "start": 6.44,
+ "end": 6.84
+ },
+ {
+ "text": "They",
+ "start": 6.87,
+ "end": 7.08
+ },
+ {
+ "text": "counted",
+ "start": 7.08,
+ "end": 7.46
+ },
+ {
+ "text": "it",
+ "start": 7.59,
+ "end": 7.62
+ },
+ {
+ "text": "as",
+ "start": 7.62,
+ "end": 7.74
+ },
+ {
+ "text": "seven",
+ "start": 7.74,
+ "end": 7.81
+ },
+ {
+ "text": "carry-ons.",
+ "start": 8.16,
+ "end": 8.8
+ },
+ {
+ "text": "Why",
+ "start": 8.83,
+ "end": 9.05
+ },
+ {
+ "text": "seven?",
+ "start": 9.05,
+ "end": 9.72
+ },
+ {
+ "text": "One",
+ "start": 9.76,
+ "end": 9.92
+ },
+ {
+ "text": "bag",
+ "start": 9.92,
+ "end": 10.12
+ },
+ {
+ "text": "for",
+ "start": 10.12,
+ "end": 10.32
+ },
+ {
+ "text": "each",
+ "start": 10.32,
+ "end": 10.58
+ },
+ {
+ "text": "color.",
+ "start": 10.58,
+ "end": 11.12
+ },
+ {
+ "text": "Couldn't",
+ "start": 11.15,
+ "end": 11.48
+ },
+ {
+ "text": "you",
+ "start": 11.49,
+ "end": 11.56
+ },
+ {
+ "text": "turn",
+ "start": 11.64,
+ "end": 11.74
+ },
+ {
+ "text": "it",
+ "start": 11.87,
+ "end": 11.9
+ },
+ {
+ "text": "off?",
+ "start": 11.9,
+ "end": 12.09
+ },
+ {
+ "text": "I",
+ "start": 12.26,
+ "end": 12.31
+ },
+ {
+ "text": "tried.",
+ "start": 12.31,
+ "end": 13.06
+ },
+ {
+ "text": "They",
+ "start": 13.09,
+ "end": 13.28
+ },
+ {
+ "text": "charged",
+ "start": 13.28,
+ "end": 13.67
+ },
+ {
+ "text": "me",
+ "start": 13.67,
+ "end": 13.81
+ },
+ {
+ "text": "a",
+ "start": 13.81,
+ "end": 13.83
+ },
+ {
+ "text": "$35",
+ "start": 13.83,
+ "end": 14.03
+ },
+ {
+ "text": "rainbow",
+ "start": 14.38,
+ "end": 14.6
+ },
+ {
+ "text": "deactivation",
+ "start": 14.6,
+ "end": 15.18
+ },
+ {
+ "text": "fee.",
+ "start": 15.42,
+ "end": 15.63
+ },
+ {
+ "text": "What",
+ "start": 15.67,
+ "end": 15.85
+ },
+ {
+ "text": "was",
+ "start": 15.85,
+ "end": 15.89
+ },
+ {
+ "text": "the",
+ "start": 16.01,
+ "end": 16.17
+ },
+ {
+ "text": "total?",
+ "start": 16.17,
+ "end": 16.6
+ },
+ {
+ "text": "$2,846.",
+ "start": 16.66,
+ "end": 18.74
+ },
+ {
+ "text": "Do",
+ "start": 18.81,
+ "end": 18.86
+ },
+ {
+ "text": "you",
+ "start": 18.86,
+ "end": 18.98
+ },
+ {
+ "text": "have",
+ "start": 18.98,
+ "end": 19.03
+ },
+ {
+ "text": "the",
+ "start": 19.15,
+ "end": 19.22
+ },
+ {
+ "text": "receipt?",
+ "start": 19.31,
+ "end": 19.7
+ },
+ {
+ "text": "Yeah,",
+ "start": 19.74,
+ "end": 19.95
+ },
+ {
+ "text": "but",
+ "start": 19.95,
+ "end": 20.08
+ },
+ {
+ "text": "I",
+ "start": 20.08,
+ "end": 20.12
+ },
+ {
+ "text": "can't",
+ "start": 20.12,
+ "end": 20.32
+ },
+ {
+ "text": "screenshot",
+ "start": 20.45,
+ "end": 20.67
+ },
+ {
+ "text": "the",
+ "start": 20.67,
+ "end": 21.02
+ },
+ {
+ "text": "whole",
+ "start": 21.02,
+ "end": 21.13
+ },
+ {
+ "text": "thing.",
+ "start": 21.13,
+ "end": 21.36
+ },
+ {
+ "text": "It's",
+ "start": 21.39,
+ "end": 21.49
+ },
+ {
+ "text": "still",
+ "start": 21.55,
+ "end": 21.61
+ },
+ {
+ "text": "scrolling.",
+ "start": 21.73,
+ "end": 22.2
+ },
+ {
+ "text": "How",
+ "start": 22.23,
+ "end": 22.42
+ },
+ {
+ "text": "did",
+ "start": 22.42,
+ "end": 22.64
+ },
+ {
+ "text": "you",
+ "start": 22.64,
+ "end": 22.82
+ },
+ {
+ "text": "pay",
+ "start": 22.95,
+ "end": 23.08
+ },
+ {
+ "text": "for",
+ "start": 23.08,
+ "end": 23.17
+ },
+ {
+ "text": "it?",
+ "start": 23.44,
+ "end": 23.68
+ },
+ {
+ "text": "I",
+ "start": 23.71,
+ "end": 23.75
+ },
+ {
+ "text": "took",
+ "start": 23.75,
+ "end": 23.93
+ },
+ {
+ "text": "out",
+ "start": 24.05,
+ "end": 24.28
+ },
+ {
+ "text": "a",
+ "start": 24.28,
+ "end": 24.3
+ },
+ {
+ "text": "student",
+ "start": 24.42,
+ "end": 24.65
+ },
+ {
+ "text": "loan.",
+ "start": 25,
+ "end": 25.46
+ },
+ {
+ "text": "But",
+ "start": 25.5,
+ "end": 25.59
+ },
+ {
+ "text": "you're",
+ "start": 25.65,
+ "end": 26.03
+ },
+ {
+ "text": "not",
+ "start": 26.03,
+ "end": 26.22
+ },
+ {
+ "text": "in",
+ "start": 26.22,
+ "end": 26.35
+ },
+ {
+ "text": "college.",
+ "start": 26.35,
+ "end": 27.04
+ },
+ {
+ "text": "I",
+ "start": 27.08,
+ "end": 27.14
+ },
+ {
+ "text": "am",
+ "start": 27.14,
+ "end": 27.29
+ },
+ {
+ "text": "now.",
+ "start": 27.41,
+ "end": 27.96
+ },
+ {
+ "text": "The",
+ "start": 28,
+ "end": 28.09
+ },
+ {
+ "text": "airline",
+ "start": 28.15,
+ "end": 28.57
+ },
+ {
+ "text": "enrolled",
+ "start": 28.57,
+ "end": 28.93
+ },
+ {
+ "text": "me",
+ "start": 28.93,
+ "end": 29.28
+ },
+ {
+ "text": "so",
+ "start": 29.28,
+ "end": 29.31
+ },
+ {
+ "text": "I",
+ "start": 29.31,
+ "end": 29.37
+ },
+ {
+ "text": "could",
+ "start": 29.37,
+ "end": 29.68
+ },
+ {
+ "text": "finance",
+ "start": 29.68,
+ "end": 30.08
+ },
+ {
+ "text": "the",
+ "start": 30.11,
+ "end": 30.14
+ },
+ {
+ "text": "baggage",
+ "start": 30.32,
+ "end": 30.72
+ },
+ {
+ "text": "fees.",
+ "start": 30.72,
+ "end": 31.06
+ }
+]
\ No newline at end of file