popost 4.6.1 → 4.6.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1275) hide show
  1. package/LICENSE +59 -3
  2. package/README.md +20 -7
  3. package/SKILL.md +48 -131
  4. package/THIRD_PARTY_NOTICES +524 -0
  5. package/agents/openai.yaml +2 -2
  6. package/assets/video/examples/audio-bars.html +125 -0
  7. package/assets/video/examples/bouncing-ball.html +182 -0
  8. package/assets/video/examples/card-flip.html +92 -0
  9. package/assets/video/examples/catalogue.json +16335 -0
  10. package/assets/video/examples/counter-stat.html +155 -0
  11. package/assets/video/examples/folding-doors.html +94 -0
  12. package/assets/video/examples/glitch-title.html +120 -0
  13. package/assets/video/examples/goo-blobs.html +127 -0
  14. package/assets/video/examples/grid-reveal.html +151 -0
  15. package/assets/video/examples/hf/agent-cursor.html +781 -0
  16. package/assets/video/examples/hf/ai-answer-rank.html +767 -0
  17. package/assets/video/examples/hf/ai-chat-reveal.html +1260 -0
  18. package/assets/video/examples/hf/animated-bar-chart.html +312 -0
  19. package/assets/video/examples/hf/app-showcase.html +1115 -0
  20. package/assets/video/examples/hf/apple-money-count.html +453 -0
  21. package/assets/video/examples/hf/arc-motion-path.html +303 -0
  22. package/assets/video/examples/hf/ascii-render-pass.html +728 -0
  23. package/assets/video/examples/hf/ascii-trail-reveal.html +595 -0
  24. package/assets/video/examples/hf/aurora-drift.html +439 -0
  25. package/assets/video/examples/hf/aurora.html +258 -0
  26. package/assets/video/examples/hf/avatar-cloud.html +667 -0
  27. package/assets/video/examples/hf/avatar-group-hover.html +342 -0
  28. package/assets/video/examples/hf/badge-pop.html +400 -0
  29. package/assets/video/examples/hf/bar-chart-race.html +795 -0
  30. package/assets/video/examples/hf/beat-accent.html +507 -0
  31. package/assets/video/examples/hf/beat-freeze-cut.html +1050 -0
  32. package/assets/video/examples/hf/beat-pulse-background.html +422 -0
  33. package/assets/video/examples/hf/beat-timeline.html +488 -0
  34. package/assets/video/examples/hf/before-after-wipe.html +681 -0
  35. package/assets/video/examples/hf/blob.html +258 -0
  36. package/assets/video/examples/hf/blue-sweater-intro-video.html +1656 -0
  37. package/assets/video/examples/hf/blur-in.html +624 -0
  38. package/assets/video/examples/hf/blur-out-up.html +350 -0
  39. package/assets/video/examples/hf/bottom-up-letters.html +335 -0
  40. package/assets/video/examples/hf/browser-device-stage.html +847 -0
  41. package/assets/video/examples/hf/camcorder-hud.html +371 -0
  42. package/assets/video/examples/hf/camera-dolly-zoom.html +485 -0
  43. package/assets/video/examples/hf/camera-rig-depth-stack.html +246 -0
  44. package/assets/video/examples/hf/camera-scan-gate.html +708 -0
  45. package/assets/video/examples/hf/camera-shake.html +989 -0
  46. package/assets/video/examples/hf/canopy-part-title.html +2549 -0
  47. package/assets/video/examples/hf/caption-blend-difference.html +247 -0
  48. package/assets/video/examples/hf/caption-camera-follow.html +537 -0
  49. package/assets/video/examples/hf/caption-clip-wipe.html +363 -0
  50. package/assets/video/examples/hf/caption-editorial-emphasis.html +615 -0
  51. package/assets/video/examples/hf/caption-emoji-pop.html +623 -0
  52. package/assets/video/examples/hf/caption-glitch-rgb.html +475 -0
  53. package/assets/video/examples/hf/caption-gradient-fill.html +392 -0
  54. package/assets/video/examples/hf/caption-highlight.html +433 -0
  55. package/assets/video/examples/hf/caption-kinetic-slam.html +334 -0
  56. package/assets/video/examples/hf/caption-matrix-decode.html +399 -0
  57. package/assets/video/examples/hf/caption-neon-accent.html +684 -0
  58. package/assets/video/examples/hf/caption-neon-glow.html +373 -0
  59. package/assets/video/examples/hf/caption-parallax-layers.html +530 -0
  60. package/assets/video/examples/hf/caption-particle-burst.html +454 -0
  61. package/assets/video/examples/hf/caption-pill-karaoke.html +517 -0
  62. package/assets/video/examples/hf/caption-texture.html +368 -0
  63. package/assets/video/examples/hf/caption-weight-shift.html +566 -0
  64. package/assets/video/examples/hf/card-resize.html +435 -0
  65. package/assets/video/examples/hf/caret-swap.html +601 -0
  66. package/assets/video/examples/hf/carousel-circle-1.html +1175 -0
  67. package/assets/video/examples/hf/carousel-circle-2.html +1175 -0
  68. package/assets/video/examples/hf/carousel-circle-3.html +1175 -0
  69. package/assets/video/examples/hf/carousel-circle-4.html +1175 -0
  70. package/assets/video/examples/hf/carousel-circle-5.html +1175 -0
  71. package/assets/video/examples/hf/carousel-orbit-1.html +1198 -0
  72. package/assets/video/examples/hf/carousel-orbit-2.html +1198 -0
  73. package/assets/video/examples/hf/carousel-orbit-3.html +1198 -0
  74. package/assets/video/examples/hf/carousel-orbit-4.html +1214 -0
  75. package/assets/video/examples/hf/carousel-orbit-5.html +1198 -0
  76. package/assets/video/examples/hf/carousel-path-1.html +1219 -0
  77. package/assets/video/examples/hf/carousel-path-2.html +1176 -0
  78. package/assets/video/examples/hf/carousel-path-3.html +1190 -0
  79. package/assets/video/examples/hf/carousel-path-4.html +1219 -0
  80. package/assets/video/examples/hf/carousel-path-5.html +1218 -0
  81. package/assets/video/examples/hf/carousel-vision-1.html +1180 -0
  82. package/assets/video/examples/hf/carousel-vision-2.html +1180 -0
  83. package/assets/video/examples/hf/carousel-vision-3.html +1180 -0
  84. package/assets/video/examples/hf/carousel-vision-4.html +1187 -0
  85. package/assets/video/examples/hf/carousel-vision-5.html +1180 -0
  86. package/assets/video/examples/hf/char-slam-explode.html +546 -0
  87. package/assets/video/examples/hf/chart-story.html +973 -0
  88. package/assets/video/examples/hf/chat-message.html +635 -0
  89. package/assets/video/examples/hf/chat-thread.html +953 -0
  90. package/assets/video/examples/hf/chatgpt-exchange.html +1620 -0
  91. package/assets/video/examples/hf/chromatic-radial-split.html +613 -0
  92. package/assets/video/examples/hf/chrome-orb.html +258 -0
  93. package/assets/video/examples/hf/cinemagraph.html +422 -0
  94. package/assets/video/examples/hf/cinematic-zoom.html +613 -0
  95. package/assets/video/examples/hf/claude-exchange.html +1845 -0
  96. package/assets/video/examples/hf/code-3d-extrude.html +755 -0
  97. package/assets/video/examples/hf/code-diff.html +956 -0
  98. package/assets/video/examples/hf/code-highlight.html +885 -0
  99. package/assets/video/examples/hf/code-morph.html +1357 -0
  100. package/assets/video/examples/hf/code-particle-assemble.html +622 -0
  101. package/assets/video/examples/hf/code-scroll.html +1700 -0
  102. package/assets/video/examples/hf/code-shader-dissolve.html +677 -0
  103. package/assets/video/examples/hf/code-slice-hero.html +1276 -0
  104. package/assets/video/examples/hf/code-snippet-apple-terminal-pro.html +388 -0
  105. package/assets/video/examples/hf/code-snippet-dark-2026.html +1231 -0
  106. package/assets/video/examples/hf/code-snippet-dark-modern.html +1227 -0
  107. package/assets/video/examples/hf/code-terminal-run.html +766 -0
  108. package/assets/video/examples/hf/code-typing.html +903 -0
  109. package/assets/video/examples/hf/color-wheel.html +258 -0
  110. package/assets/video/examples/hf/colorama-wipe.html +503 -0
  111. package/assets/video/examples/hf/comparison-split.html +657 -0
  112. package/assets/video/examples/hf/confetti.html +349 -0
  113. package/assets/video/examples/hf/conic-progress-ring.html +441 -0
  114. package/assets/video/examples/hf/constellation-hub.html +662 -0
  115. package/assets/video/examples/hf/cosmic-orb.html +643 -0
  116. package/assets/video/examples/hf/count-up.html +552 -0
  117. package/assets/video/examples/hf/cross-warp-morph.html +624 -0
  118. package/assets/video/examples/hf/cta-close.html +492 -0
  119. package/assets/video/examples/hf/cta-lockup.html +470 -0
  120. package/assets/video/examples/hf/cuboid-carousel.html +2385 -0
  121. package/assets/video/examples/hf/cursor-annotate.html +827 -0
  122. package/assets/video/examples/hf/cursor-context-menu.html +757 -0
  123. package/assets/video/examples/hf/cursor-drag-drop.html +656 -0
  124. package/assets/video/examples/hf/cursor-glyph-trail.html +904 -0
  125. package/assets/video/examples/hf/cursor-marquee-select.html +1266 -0
  126. package/assets/video/examples/hf/cursor-text-select.html +638 -0
  127. package/assets/video/examples/hf/cursor-zoom-follow.html +973 -0
  128. package/assets/video/examples/hf/curtain-reveal.html +590 -0
  129. package/assets/video/examples/hf/cut-the-curve.html +715 -0
  130. package/assets/video/examples/hf/dart-cursor.html +863 -0
  131. package/assets/video/examples/hf/data-chart.html +666 -0
  132. package/assets/video/examples/hf/decision-tree.html +655 -0
  133. package/assets/video/examples/hf/decline-chart.html +485 -0
  134. package/assets/video/examples/hf/device-frame-stage.html +661 -0
  135. package/assets/video/examples/hf/domain-warp-dissolve.html +627 -0
  136. package/assets/video/examples/hf/drift-hold.html +392 -0
  137. package/assets/video/examples/hf/dynamic-grid.html +336 -0
  138. package/assets/video/examples/hf/echo-smear.html +994 -0
  139. package/assets/video/examples/hf/echo-trail.html +557 -0
  140. package/assets/video/examples/hf/editorial-flash-overlay.html +337 -0
  141. package/assets/video/examples/hf/exploded-stack.html +761 -0
  142. package/assets/video/examples/hf/extended-keyframe.html +715 -0
  143. package/assets/video/examples/hf/extruded-logo.html +757 -0
  144. package/assets/video/examples/hf/facet-morph.html +746 -0
  145. package/assets/video/examples/hf/fade-through.html +443 -0
  146. package/assets/video/examples/hf/falling-lines.html +259 -0
  147. package/assets/video/examples/hf/filmed-screen.html +1065 -0
  148. package/assets/video/examples/hf/flash-through-white.html +613 -0
  149. package/assets/video/examples/hf/flowchart-vertical.html +631 -0
  150. package/assets/video/examples/hf/flowchart.html +630 -0
  151. package/assets/video/examples/hf/flowing-gradient.html +258 -0
  152. package/assets/video/examples/hf/focus-blur-resolve.html +321 -0
  153. package/assets/video/examples/hf/focus-rack.html +542 -0
  154. package/assets/video/examples/hf/focus-swap.html +496 -0
  155. package/assets/video/examples/hf/fractal-noise.html +258 -0
  156. package/assets/video/examples/hf/freeze-frame-dressing.html +357 -0
  157. package/assets/video/examples/hf/frost.html +258 -0
  158. package/assets/video/examples/hf/gabor-noise.html +258 -0
  159. package/assets/video/examples/hf/gallery-tunnel.html +652 -0
  160. package/assets/video/examples/hf/gesture-tap.html +604 -0
  161. package/assets/video/examples/hf/glass-hero.html +505 -0
  162. package/assets/video/examples/hf/glass-shard-title.html +1618 -0
  163. package/assets/video/examples/hf/glitch.html +613 -0
  164. package/assets/video/examples/hf/gloss-sweep.html +418 -0
  165. package/assets/video/examples/hf/godrays.html +257 -0
  166. package/assets/video/examples/hf/goo.html +258 -0
  167. package/assets/video/examples/hf/gooey-split.html +1092 -0
  168. package/assets/video/examples/hf/grain-field.html +377 -0
  169. package/assets/video/examples/hf/grain-overlay.html +295 -0
  170. package/assets/video/examples/hf/gravitational-lens.html +612 -0
  171. package/assets/video/examples/hf/grid-card-assemble.html +671 -0
  172. package/assets/video/examples/hf/grid-pixelate-wipe.html +314 -0
  173. package/assets/video/examples/hf/halftone-dissolve.html +696 -0
  174. package/assets/video/examples/hf/halftone-field.html +598 -0
  175. package/assets/video/examples/hf/headline-slam.html +455 -0
  176. package/assets/video/examples/hf/heatmap.html +258 -0
  177. package/assets/video/examples/hf/heygen-avatar-promo-card.html +627 -0
  178. package/assets/video/examples/hf/hologram.html +258 -0
  179. package/assets/video/examples/hf/holographic.html +258 -0
  180. package/assets/video/examples/hf/hw-arrow.html +835 -0
  181. package/assets/video/examples/hf/hw-boil.html +632 -0
  182. package/assets/video/examples/hf/hw-box-label.html +741 -0
  183. package/assets/video/examples/hf/hw-callout-circle.html +820 -0
  184. package/assets/video/examples/hf/hw-frame.html +455 -0
  185. package/assets/video/examples/hf/hw-path-text.html +349 -0
  186. package/assets/video/examples/hf/hw-pipeline.html +472 -0
  187. package/assets/video/examples/hf/hw-scribble-transition.html +291 -0
  188. package/assets/video/examples/hf/hw-text-cloud.html +439 -0
  189. package/assets/video/examples/hf/hw-title.html +412 -0
  190. package/assets/video/examples/hf/hw-underline.html +403 -0
  191. package/assets/video/examples/hf/hw-write-title.html +1389 -0
  192. package/assets/video/examples/hf/icon-morph-beat.html +463 -0
  193. package/assets/video/examples/hf/icon-swap.html +380 -0
  194. package/assets/video/examples/hf/ink-bleed-reveal.html +659 -0
  195. package/assets/video/examples/hf/inline-highlight.html +322 -0
  196. package/assets/video/examples/hf/input-feedback.html +419 -0
  197. package/assets/video/examples/hf/instagram-follow.html +460 -0
  198. package/assets/video/examples/hf/ios26-liquid-glass.html +1597 -0
  199. package/assets/video/examples/hf/iris-reveal.html +684 -0
  200. package/assets/video/examples/hf/keyframe-scrub-stack.html +326 -0
  201. package/assets/video/examples/hf/kinetic-center-build.html +538 -0
  202. package/assets/video/examples/hf/kinetic-type-swap.html +610 -0
  203. package/assets/video/examples/hf/kinetic-type.html +862 -0
  204. package/assets/video/examples/hf/lens-flare.html +258 -0
  205. package/assets/video/examples/hf/light-edge.html +259 -0
  206. package/assets/video/examples/hf/light-leak.html +612 -0
  207. package/assets/video/examples/hf/light-sweep-pass.html +684 -0
  208. package/assets/video/examples/hf/line-by-line-slide.html +345 -0
  209. package/assets/video/examples/hf/line-swap.html +526 -0
  210. package/assets/video/examples/hf/liquid-glass-notification.html +1898 -0
  211. package/assets/video/examples/hf/liquid-glass-widgets.html +2175 -0
  212. package/assets/video/examples/hf/liquid-metal.html +259 -0
  213. package/assets/video/examples/hf/locked-nucleus-orbit.html +564 -0
  214. package/assets/video/examples/hf/logo-brand-close.html +598 -0
  215. package/assets/video/examples/hf/logo-outro.html +397 -0
  216. package/assets/video/examples/hf/logo-sting.html +378 -0
  217. package/assets/video/examples/hf/logo-wall.html +502 -0
  218. package/assets/video/examples/hf/lottie-character-walk.html +407 -0
  219. package/assets/video/examples/hf/lt-accent-underline.html +247 -0
  220. package/assets/video/examples/hf/lt-bold-block.html +249 -0
  221. package/assets/video/examples/hf/lt-clean-bar.html +251 -0
  222. package/assets/video/examples/hf/lt-color-block.html +241 -0
  223. package/assets/video/examples/hf/lt-dark-card.html +251 -0
  224. package/assets/video/examples/hf/lt-kicker-name.html +254 -0
  225. package/assets/video/examples/hf/lt-mask-reveal.html +260 -0
  226. package/assets/video/examples/hf/lt-neon-border.html +604 -0
  227. package/assets/video/examples/hf/lt-side-rule.html +254 -0
  228. package/assets/video/examples/hf/lt-soft-pill.html +259 -0
  229. package/assets/video/examples/hf/lt-stack-bars.html +249 -0
  230. package/assets/video/examples/hf/macos-notification.html +372 -0
  231. package/assets/video/examples/hf/macos-tahoe-liquid-glass.html +1701 -0
  232. package/assets/video/examples/hf/magnetic-cursor.html +684 -0
  233. package/assets/video/examples/hf/marble.html +257 -0
  234. package/assets/video/examples/hf/marker-checklist-card.html +727 -0
  235. package/assets/video/examples/hf/marker-highlight.html +589 -0
  236. package/assets/video/examples/hf/match-cut.html +505 -0
  237. package/assets/video/examples/hf/matrix-decode.html +363 -0
  238. package/assets/video/examples/hf/menu-morph.html +420 -0
  239. package/assets/video/examples/hf/mesh-gradient-bg.html +329 -0
  240. package/assets/video/examples/hf/mesh-gradient.html +257 -0
  241. package/assets/video/examples/hf/message-thread-reveal.html +1913 -0
  242. package/assets/video/examples/hf/micro-transitions.html +631 -0
  243. package/assets/video/examples/hf/mk-background.html +376 -0
  244. package/assets/video/examples/hf/mk-callout-highlight.html +322 -0
  245. package/assets/video/examples/hf/mk-clone-wall-transition.html +364 -0
  246. package/assets/video/examples/hf/mk-emphasis-type.html +235 -0
  247. package/assets/video/examples/hf/mk-line-graph.html +432 -0
  248. package/assets/video/examples/hf/mk-placeholder-grid.html +373 -0
  249. package/assets/video/examples/hf/mk-progress-stat.html +324 -0
  250. package/assets/video/examples/hf/mk-specs-list.html +362 -0
  251. package/assets/video/examples/hf/mk-usage-arc.html +297 -0
  252. package/assets/video/examples/hf/modal-morph.html +727 -0
  253. package/assets/video/examples/hf/morph-swap.html +590 -0
  254. package/assets/video/examples/hf/morph-text.html +409 -0
  255. package/assets/video/examples/hf/multi-device-splay.html +934 -0
  256. package/assets/video/examples/hf/multiplayer-cursors.html +642 -0
  257. package/assets/video/examples/hf/native-notification-pop.html +670 -0
  258. package/assets/video/examples/hf/nebula.html +258 -0
  259. package/assets/video/examples/hf/news-ticker.html +548 -0
  260. package/assets/video/examples/hf/north-korea-locked-down.html +447 -0
  261. package/assets/video/examples/hf/notes-reveal.html +2028 -0
  262. package/assets/video/examples/hf/notes-typing.html +631 -0
  263. package/assets/video/examples/hf/notification-cascade.html +740 -0
  264. package/assets/video/examples/hf/notification-pileup.html +667 -0
  265. package/assets/video/examples/hf/notification-stack.html +610 -0
  266. package/assets/video/examples/hf/number-pop-in.html +362 -0
  267. package/assets/video/examples/hf/number-wheel.html +378 -0
  268. package/assets/video/examples/hf/nyc-paris-flight.html +659 -0
  269. package/assets/video/examples/hf/nyt-graph.html +715 -0
  270. package/assets/video/examples/hf/obsidian.html +258 -0
  271. package/assets/video/examples/hf/offset-path-traveler.html +511 -0
  272. package/assets/video/examples/hf/onboarding-stepper-flow.html +292 -0
  273. package/assets/video/examples/hf/orbit-card.html +2457 -0
  274. package/assets/video/examples/hf/ordered-dither-pass.html +753 -0
  275. package/assets/video/examples/hf/organic-light-leak-overlay.html +336 -0
  276. package/assets/video/examples/hf/oscilloscope-trace.html +718 -0
  277. package/assets/video/examples/hf/outline-draw.html +394 -0
  278. package/assets/video/examples/hf/oversized-cursor.html +851 -0
  279. package/assets/video/examples/hf/overwhelm-surround.html +557 -0
  280. package/assets/video/examples/hf/page-slide.html +377 -0
  281. package/assets/video/examples/hf/pan-stations.html +555 -0
  282. package/assets/video/examples/hf/panel-reveal.html +370 -0
  283. package/assets/video/examples/hf/paper-collage-reveal.html +737 -0
  284. package/assets/video/examples/hf/parallax-device-dive.html +647 -0
  285. package/assets/video/examples/hf/parallax-unzoom.html +499 -0
  286. package/assets/video/examples/hf/parallax-zoom.html +515 -0
  287. package/assets/video/examples/hf/particle-image-reveal.html +595 -0
  288. package/assets/video/examples/hf/particle-text-dissolve.html +615 -0
  289. package/assets/video/examples/hf/path-traced-3d.html +508 -0
  290. package/assets/video/examples/hf/pendulum-swing.html +364 -0
  291. package/assets/video/examples/hf/per-word-crossfade.html +398 -0
  292. package/assets/video/examples/hf/per-word-rise.html +556 -0
  293. package/assets/video/examples/hf/perspective-marquee.html +366 -0
  294. package/assets/video/examples/hf/physical-exit.html +459 -0
  295. package/assets/video/examples/hf/plasma.html +258 -0
  296. package/assets/video/examples/hf/plastic.html +258 -0
  297. package/assets/video/examples/hf/play-mode.html +1035 -0
  298. package/assets/video/examples/hf/press-ripple.html +675 -0
  299. package/assets/video/examples/hf/prism.html +258 -0
  300. package/assets/video/examples/hf/product-promo.html +1311 -0
  301. package/assets/video/examples/hf/product-turntable.html +4569 -0
  302. package/assets/video/examples/hf/pull-back-reveal.html +546 -0
  303. package/assets/video/examples/hf/pull-to-refresh.html +861 -0
  304. package/assets/video/examples/hf/push-in.html +379 -0
  305. package/assets/video/examples/hf/rack-focus.html +779 -0
  306. package/assets/video/examples/hf/radial-surround.html +653 -0
  307. package/assets/video/examples/hf/reddit-post.html +515 -0
  308. package/assets/video/examples/hf/rgb-glitch-text.html +353 -0
  309. package/assets/video/examples/hf/ridged-burn.html +624 -0
  310. package/assets/video/examples/hf/ripple-waves.html +613 -0
  311. package/assets/video/examples/hf/ripples.html +259 -0
  312. package/assets/video/examples/hf/rubber-band-bumper.html +534 -0
  313. package/assets/video/examples/hf/scan-band.html +415 -0
  314. package/assets/video/examples/hf/scramble-reveal.html +510 -0
  315. package/assets/video/examples/hf/screen-flow-carousel.html +779 -0
  316. package/assets/video/examples/hf/scroll-camera-story.html +988 -0
  317. package/assets/video/examples/hf/scroll-feed.html +602 -0
  318. package/assets/video/examples/hf/sdf-iris.html +613 -0
  319. package/assets/video/examples/hf/segmentation-flood.html +748 -0
  320. package/assets/video/examples/hf/separator.html +620 -0
  321. package/assets/video/examples/hf/settings-toggle-flow.html +286 -0
  322. package/assets/video/examples/hf/share-sheet-carousel.html +591 -0
  323. package/assets/video/examples/hf/shared-axis-y.html +370 -0
  324. package/assets/video/examples/hf/shared-axis-z.html +514 -0
  325. package/assets/video/examples/hf/sheet-spring-up.html +681 -0
  326. package/assets/video/examples/hf/shimmer-sweep.html +301 -0
  327. package/assets/video/examples/hf/signup-flow.html +276 -0
  328. package/assets/video/examples/hf/sine-wave.html +258 -0
  329. package/assets/video/examples/hf/skeleton-reveal.html +373 -0
  330. package/assets/video/examples/hf/slack-notification-ad.html +901 -0
  331. package/assets/video/examples/hf/slit-scan-reveal.html +540 -0
  332. package/assets/video/examples/hf/slot-machine-roll.html +391 -0
  333. package/assets/video/examples/hf/snow.html +499 -0
  334. package/assets/video/examples/hf/social-proof-card.html +534 -0
  335. package/assets/video/examples/hf/soft-blur-in.html +322 -0
  336. package/assets/video/examples/hf/spain-map.html +583 -0
  337. package/assets/video/examples/hf/spiral-galaxy.html +507 -0
  338. package/assets/video/examples/hf/spiral.html +258 -0
  339. package/assets/video/examples/hf/split-flap-board.html +537 -0
  340. package/assets/video/examples/hf/split-tilt-cards.html +775 -0
  341. package/assets/video/examples/hf/spotify-card.html +470 -0
  342. package/assets/video/examples/hf/spotlight-card.html +328 -0
  343. package/assets/video/examples/hf/spring-pop.html +406 -0
  344. package/assets/video/examples/hf/spring-stack-shuffle.html +791 -0
  345. package/assets/video/examples/hf/stagger-cascade.html +465 -0
  346. package/assets/video/examples/hf/stagger-lattice.html +278 -0
  347. package/assets/video/examples/hf/staggered-fade-up.html +368 -0
  348. package/assets/video/examples/hf/star-rating-fill.html +511 -0
  349. package/assets/video/examples/hf/starfield.html +450 -0
  350. package/assets/video/examples/hf/state-chip-rail.html +585 -0
  351. package/assets/video/examples/hf/sticky-mock-swap.html +664 -0
  352. package/assets/video/examples/hf/stitched-text-draw.html +1053 -0
  353. package/assets/video/examples/hf/stop-motion-cadence.html +670 -0
  354. package/assets/video/examples/hf/store-badge-lockup.html +521 -0
  355. package/assets/video/examples/hf/strands.html +258 -0
  356. package/assets/video/examples/hf/streaming-text.html +581 -0
  357. package/assets/video/examples/hf/strikethrough-replace.html +356 -0
  358. package/assets/video/examples/hf/stripes.html +258 -0
  359. package/assets/video/examples/hf/success-check.html +390 -0
  360. package/assets/video/examples/hf/sun-burst.html +258 -0
  361. package/assets/video/examples/hf/svg-line-draw-loader.html +257 -0
  362. package/assets/video/examples/hf/svg-mask-reveal.html +523 -0
  363. package/assets/video/examples/hf/svg-stroke-trace.html +465 -0
  364. package/assets/video/examples/hf/swipe-rail.html +564 -0
  365. package/assets/video/examples/hf/swirl-vortex.html +623 -0
  366. package/assets/video/examples/hf/swirl.html +258 -0
  367. package/assets/video/examples/hf/swiss-grid.html +837 -0
  368. package/assets/video/examples/hf/tabs-slide-indicator.html +424 -0
  369. package/assets/video/examples/hf/telemetry-hud.html +760 -0
  370. package/assets/video/examples/hf/terminal-simulator.html +293 -0
  371. package/assets/video/examples/hf/testimonial-card.html +545 -0
  372. package/assets/video/examples/hf/testimonial-proof-card.html +720 -0
  373. package/assets/video/examples/hf/text-match-cut.html +1345 -0
  374. package/assets/video/examples/hf/text-shimmer.html +394 -0
  375. package/assets/video/examples/hf/text-stagger.html +373 -0
  376. package/assets/video/examples/hf/text-state-swap.html +421 -0
  377. package/assets/video/examples/hf/thermal-distortion.html +624 -0
  378. package/assets/video/examples/hf/thin-film.html +258 -0
  379. package/assets/video/examples/hf/thread-message-stack.html +377 -0
  380. package/assets/video/examples/hf/three-orbiting-cards.html +322 -0
  381. package/assets/video/examples/hf/ticker-takeover.html +534 -0
  382. package/assets/video/examples/hf/tiktok-follow.html +435 -0
  383. package/assets/video/examples/hf/tilt-card.html +406 -0
  384. package/assets/video/examples/hf/titlecard-calm.html +388 -0
  385. package/assets/video/examples/hf/titlecard-lockup.html +546 -0
  386. package/assets/video/examples/hf/toggle-flip.html +601 -0
  387. package/assets/video/examples/hf/top-down-letters.html +326 -0
  388. package/assets/video/examples/hf/torn-paper-rip.html +762 -0
  389. package/assets/video/examples/hf/touch-indicator.html +777 -0
  390. package/assets/video/examples/hf/tracing-beam.html +608 -0
  391. package/assets/video/examples/hf/tracking-in.html +317 -0
  392. package/assets/video/examples/hf/transitions-3d.html +434 -0
  393. package/assets/video/examples/hf/transitions-blur.html +524 -0
  394. package/assets/video/examples/hf/transitions-cover.html +508 -0
  395. package/assets/video/examples/hf/transitions-destruction.html +551 -0
  396. package/assets/video/examples/hf/transitions-dissolve.html +529 -0
  397. package/assets/video/examples/hf/transitions-distortion.html +522 -0
  398. package/assets/video/examples/hf/transitions-grid.html +442 -0
  399. package/assets/video/examples/hf/transitions-light.html +528 -0
  400. package/assets/video/examples/hf/transitions-mechanical.html +560 -0
  401. package/assets/video/examples/hf/transitions-other.html +532 -0
  402. package/assets/video/examples/hf/transitions-push.html +520 -0
  403. package/assets/video/examples/hf/transitions-radial.html +492 -0
  404. package/assets/video/examples/hf/transitions-scale.html +487 -0
  405. package/assets/video/examples/hf/trust-strip.html +445 -0
  406. package/assets/video/examples/hf/typed-prompt.html +619 -0
  407. package/assets/video/examples/hf/typewriter.html +350 -0
  408. package/assets/video/examples/hf/typing-indicator.html +702 -0
  409. package/assets/video/examples/hf/ui-3d-reveal.html +2929 -0
  410. package/assets/video/examples/hf/ui-focus-zoom.html +786 -0
  411. package/assets/video/examples/hf/us-map-bubble.html +669 -0
  412. package/assets/video/examples/hf/us-map-flow.html +621 -0
  413. package/assets/video/examples/hf/us-map-hex.html +733 -0
  414. package/assets/video/examples/hf/us-map.html +591 -0
  415. package/assets/video/examples/hf/variable-font-flex.html +538 -0
  416. package/assets/video/examples/hf/vector-editor-rig.html +977 -0
  417. package/assets/video/examples/hf/vfx-anamorphic-flare.html +572 -0
  418. package/assets/video/examples/hf/vfx-iphone-device.html +1089 -0
  419. package/assets/video/examples/hf/vfx-liquid-background.html +1479 -0
  420. package/assets/video/examples/hf/vfx-liquid-glass.html +2054 -0
  421. package/assets/video/examples/hf/vfx-magnetic.html +660 -0
  422. package/assets/video/examples/hf/vfx-portal.html +1090 -0
  423. package/assets/video/examples/hf/vfx-shatter.html +1382 -0
  424. package/assets/video/examples/hf/vignette.html +385 -0
  425. package/assets/video/examples/hf/voronoi.html +258 -0
  426. package/assets/video/examples/hf/vox-annotate.html +707 -0
  427. package/assets/video/examples/hf/vpn-youtube-spot.html +1118 -0
  428. package/assets/video/examples/hf/water.html +258 -0
  429. package/assets/video/examples/hf/waveform.html +258 -0
  430. package/assets/video/examples/hf/week-in-merges.html +673 -0
  431. package/assets/video/examples/hf/weight-wave.html +531 -0
  432. package/assets/video/examples/hf/whip-pan-cut.html +668 -0
  433. package/assets/video/examples/hf/whip-pan.html +613 -0
  434. package/assets/video/examples/hf/whiteboard-ink.html +763 -0
  435. package/assets/video/examples/hf/wireframe-portal-title.html +3840 -0
  436. package/assets/video/examples/hf/wordmark-tiles.html +559 -0
  437. package/assets/video/examples/hf/world-map.html +623 -0
  438. package/assets/video/examples/hf/worley-noise.html +259 -0
  439. package/assets/video/examples/hf/x-follow-card.html +286 -0
  440. package/assets/video/examples/hf/x-post.html +611 -0
  441. package/assets/video/examples/hf/yt-camera-move.html +308 -0
  442. package/assets/video/examples/hf/yt-circle-pointer.html +301 -0
  443. package/assets/video/examples/hf/yt-comment-card.html +458 -0
  444. package/assets/video/examples/hf/yt-feather-highlight.html +279 -0
  445. package/assets/video/examples/hf/yt-lcd-background.html +446 -0
  446. package/assets/video/examples/hf/yt-logo-intro.html +390 -0
  447. package/assets/video/examples/hf/yt-lower-third.html +414 -0
  448. package/assets/video/examples/hf/yt-prism-title.html +343 -0
  449. package/assets/video/examples/hf/yt-screen-warp.html +257 -0
  450. package/assets/video/examples/hf/yt-vertical-fill.html +367 -0
  451. package/assets/video/examples/kinetic-type.html +137 -0
  452. package/assets/video/examples/list-cards.html +155 -0
  453. package/assets/video/examples/motion-blur-streak.html +119 -0
  454. package/assets/video/examples/object-reveal.html +107 -0
  455. package/assets/video/examples/page-flip.html +163 -0
  456. package/assets/video/examples/parallax-layers.html +130 -0
  457. package/assets/video/examples/particle-burst.html +157 -0
  458. package/assets/video/examples/pen-draw.html +146 -0
  459. package/assets/video/examples/shape-morph.html +151 -0
  460. package/assets/video/examples/slam-title.html +125 -0
  461. package/assets/video/examples/speed-lines.html +123 -0
  462. package/assets/video/examples/spring-pop.html +129 -0
  463. package/assets/video/examples/streak-wipe.html +78 -0
  464. package/assets/video/examples/three-chrome-knot.html +155 -0
  465. package/assets/video/examples/three-clay.html +138 -0
  466. package/assets/video/examples/three-cube-wave.html +140 -0
  467. package/assets/video/examples/three-extruded-shape.html +148 -0
  468. package/assets/video/examples/type-on.html +128 -0
  469. package/assets/video/motion.js +991 -0
  470. package/assets/video/screen.js +298 -0
  471. package/assets/video/sfx/catalogue.json +2283 -0
  472. package/assets/video/times.js +59 -0
  473. package/dist/cli.js +36667 -2526
  474. package/dist/index.js +36429 -2459
  475. package/dist/types/args.d.ts +2 -0
  476. package/dist/types/cloud/service.d.ts +13 -0
  477. package/dist/types/commands/usage.d.ts +2 -0
  478. package/dist/types/commands/video.d.ts +10 -0
  479. package/dist/types/cpu-budget.d.ts +43 -0
  480. package/dist/types/images/batch-jobs.d.ts +2 -0
  481. package/dist/types/images/batch-run.d.ts +2 -1
  482. package/dist/types/images/jobs.d.ts +7 -0
  483. package/dist/types/images/pending.d.ts +40 -0
  484. package/dist/types/images/retry.d.ts +4 -1
  485. package/dist/types/images/run.d.ts +9 -1
  486. package/dist/types/node-runtime.d.ts +6 -1
  487. package/dist/types/providers/api.d.ts +9 -0
  488. package/dist/types/providers/base.d.ts +2 -0
  489. package/dist/types/providers/cli-generate.d.ts +5 -1
  490. package/dist/types/providers/cli-pending.d.ts +24 -0
  491. package/dist/types/providers/errors.d.ts +2 -1
  492. package/dist/types/providers/ledger.d.ts +10 -6
  493. package/dist/types/providers/popost-async.d.ts +35 -0
  494. package/dist/types/providers/popost-tasks.d.ts +16 -5
  495. package/dist/types/providers/popost.d.ts +16 -1
  496. package/dist/types/providers/task.d.ts +43 -0
  497. package/dist/types/render/browser.d.ts +16 -2
  498. package/dist/types/runtime.d.ts +73 -2
  499. package/dist/types/version.d.ts +1 -1
  500. package/dist/types/video/align/index.d.ts +43 -0
  501. package/dist/types/video/capture/director.d.ts +70 -0
  502. package/dist/types/video/capture/index.d.ts +141 -0
  503. package/dist/types/video/capture/stage.d.ts +99 -0
  504. package/dist/types/video/capture/steps.d.ts +138 -0
  505. package/dist/types/video/commands/cast.d.ts +3 -0
  506. package/dist/types/video/commands/clips.d.ts +2 -0
  507. package/dist/types/video/commands/compare-scope.d.ts +7 -0
  508. package/dist/types/video/commands/credits.d.ts +19 -0
  509. package/dist/types/video/commands/elements.d.ts +22 -0
  510. package/dist/types/video/commands/eval.d.ts +2 -0
  511. package/dist/types/video/commands/example.d.ts +1 -0
  512. package/dist/types/video/commands/generate.d.ts +14 -0
  513. package/dist/types/video/commands/loop-shared.d.ts +12 -0
  514. package/dist/types/video/commands/loop.d.ts +4 -0
  515. package/dist/types/video/commands/make.d.ts +9 -0
  516. package/dist/types/video/commands/materials.d.ts +1 -0
  517. package/dist/types/video/commands/measure.d.ts +2 -0
  518. package/dist/types/video/commands/media.d.ts +2 -0
  519. package/dist/types/video/commands/music-plan.d.ts +1 -0
  520. package/dist/types/video/commands/music.d.ts +2 -0
  521. package/dist/types/video/commands/read.d.ts +19 -0
  522. package/dist/types/video/commands/replication-books.d.ts +2 -0
  523. package/dist/types/video/commands/replication.d.ts +2 -0
  524. package/dist/types/video/commands/sfx-extract.d.ts +2 -0
  525. package/dist/types/video/commands/sfx-place.d.ts +3 -0
  526. package/dist/types/video/commands/sfx.d.ts +2 -0
  527. package/dist/types/video/commands/shared.d.ts +39 -0
  528. package/dist/types/video/commands/source.d.ts +2 -0
  529. package/dist/types/video/commands/speech-check.d.ts +1 -0
  530. package/dist/types/video/commands/speech-kind.d.ts +6 -0
  531. package/dist/types/video/commands/template.d.ts +10 -0
  532. package/dist/types/video/commands/voice-profile.d.ts +2 -0
  533. package/dist/types/video/commands/voice-sample.d.ts +1 -0
  534. package/dist/types/video/compile/footage.d.ts +36 -0
  535. package/dist/types/video/compile/index.d.ts +30 -0
  536. package/dist/types/video/compile/page-bundle.d.ts +1 -0
  537. package/dist/types/video/compile/page.d.ts +10 -0
  538. package/dist/types/video/compile/words.d.ts +9 -0
  539. package/dist/types/video/describe/aim.d.ts +20 -0
  540. package/dist/types/video/describe/beats.d.ts +53 -0
  541. package/dist/types/video/describe/curves.d.ts +27 -0
  542. package/dist/types/video/describe/frames.d.ts +62 -0
  543. package/dist/types/video/describe/index.d.ts +34 -0
  544. package/dist/types/video/describe/inset.d.ts +83 -0
  545. package/dist/types/video/describe/kind.d.ts +29 -0
  546. package/dist/types/video/describe/known.d.ts +31 -0
  547. package/dist/types/video/describe/movement.d.ts +17 -0
  548. package/dist/types/video/describe/parts.d.ts +52 -0
  549. package/dist/types/video/describe/paths.d.ts +21 -0
  550. package/dist/types/video/describe/speech-kind.d.ts +144 -0
  551. package/dist/types/video/describe/unrecovered.d.ts +29 -0
  552. package/dist/types/video/draft/build.d.ts +34 -0
  553. package/dist/types/video/draft/export.d.ts +19 -0
  554. package/dist/types/video/draft/lifecycle.d.ts +9 -0
  555. package/dist/types/video/draft/native.d.ts +27 -0
  556. package/dist/types/video/draft/schema.d.ts +316 -0
  557. package/dist/types/video/draft/targets.d.ts +19 -0
  558. package/dist/types/video/elements/caption-reading.d.ts +9 -0
  559. package/dist/types/video/elements/caption-roles.d.ts +6 -0
  560. package/dist/types/video/elements/carry.d.ts +45 -0
  561. package/dist/types/video/elements/check.d.ts +14 -0
  562. package/dist/types/video/elements/findings.d.ts +49 -0
  563. package/dist/types/video/elements/main.d.ts +54 -0
  564. package/dist/types/video/elements/picture.d.ts +31 -0
  565. package/dist/types/video/elements/questions.d.ts +35 -0
  566. package/dist/types/video/elements/read.d.ts +14 -0
  567. package/dist/types/video/elements/status.d.ts +23 -0
  568. package/dist/types/video/elements/types.d.ts +120 -0
  569. package/dist/types/video/eval/contrast.d.ts +136 -0
  570. package/dist/types/video/eval/dataset.d.ts +21 -0
  571. package/dist/types/video/eval/floor.d.ts +27 -0
  572. package/dist/types/video/eval/ledger.d.ts +27 -0
  573. package/dist/types/video/eval/legibility.d.ts +33 -0
  574. package/dist/types/video/eval/readback-frames.d.ts +41 -0
  575. package/dist/types/video/eval/readback-kept.d.ts +10 -0
  576. package/dist/types/video/eval/readback-run.d.ts +58 -0
  577. package/dist/types/video/eval/readback.d.ts +48 -0
  578. package/dist/types/video/eval/roundtrip.d.ts +71 -0
  579. package/dist/types/video/generate/approved.d.ts +74 -0
  580. package/dist/types/video/generate/cast.d.ts +60 -0
  581. package/dist/types/video/generate/character.d.ts +14 -0
  582. package/dist/types/video/generate/clip-sound.d.ts +63 -0
  583. package/dist/types/video/generate/cloud-image.d.ts +12 -0
  584. package/dist/types/video/generate/cloud.d.ts +67 -0
  585. package/dist/types/video/generate/dialogue.d.ts +116 -0
  586. package/dist/types/video/generate/index.d.ts +265 -0
  587. package/dist/types/video/generate/provenance.d.ts +11 -0
  588. package/dist/types/video/generate/speech-lock.d.ts +4 -0
  589. package/dist/types/video/generate/speech.d.ts +20 -0
  590. package/dist/types/video/host.d.ts +42 -0
  591. package/dist/types/video/hosted-api.d.ts +161 -0
  592. package/dist/types/video/look/index.d.ts +67 -0
  593. package/dist/types/video/look/like.d.ts +18 -0
  594. package/dist/types/video/look/sheets.d.ts +58 -0
  595. package/dist/types/video/measure/align.d.ts +33 -0
  596. package/dist/types/video/measure/amount.d.ts +52 -0
  597. package/dist/types/video/measure/bars.d.ts +22 -0
  598. package/dist/types/video/measure/boundaries.d.ts +18 -0
  599. package/dist/types/video/measure/cache.d.ts +6 -0
  600. package/dist/types/video/measure/camera.d.ts +21 -0
  601. package/dist/types/video/measure/colour.d.ts +12 -0
  602. package/dist/types/video/measure/curve.d.ts +29 -0
  603. package/dist/types/video/measure/cuts.d.ts +17 -0
  604. package/dist/types/video/measure/easing.d.ts +52 -0
  605. package/dist/types/video/measure/fill.d.ts +20 -0
  606. package/dist/types/video/measure/fits.d.ts +80 -0
  607. package/dist/types/video/measure/gradual.d.ts +23 -0
  608. package/dist/types/video/measure/index.d.ts +28 -0
  609. package/dist/types/video/measure/kinds.d.ts +71 -0
  610. package/dist/types/video/measure/motion.d.ts +26 -0
  611. package/dist/types/video/measure/move.d.ts +90 -0
  612. package/dist/types/video/measure/moves.d.ts +22 -0
  613. package/dist/types/video/measure/orientation.d.ts +11 -0
  614. package/dist/types/video/measure/pixels.d.ts +41 -0
  615. package/dist/types/video/measure/profile.d.ts +53 -0
  616. package/dist/types/video/measure/reveal.d.ts +48 -0
  617. package/dist/types/video/measure/rhythm.d.ts +7 -0
  618. package/dist/types/video/measure/robust.d.ts +18 -0
  619. package/dist/types/video/measure/signals.d.ts +48 -0
  620. package/dist/types/video/measure/signature.d.ts +10 -0
  621. package/dist/types/video/measure/span.d.ts +28 -0
  622. package/dist/types/video/measure/still-shots.d.ts +40 -0
  623. package/dist/types/video/measure/switch.d.ts +101 -0
  624. package/dist/types/video/measure/tracks.d.ts +20 -0
  625. package/dist/types/video/measure/unmix.d.ts +20 -0
  626. package/dist/types/video/media/decode.d.ts +59 -0
  627. package/dist/types/video/media/ffmpeg.d.ts +48 -0
  628. package/dist/types/video/media/footage.d.ts +53 -0
  629. package/dist/types/video/media/screenshot.d.ts +26 -0
  630. package/dist/types/video/media/selection.d.ts +4 -0
  631. package/dist/types/video/media/wav.d.ts +26 -0
  632. package/dist/types/video/music/hosted.d.ts +110 -0
  633. package/dist/types/video/music/plan.d.ts +103 -0
  634. package/dist/types/video/music/provenance.d.ts +86 -0
  635. package/dist/types/video/page/apply.d.ts +9 -0
  636. package/dist/types/video/page/contract.d.ts +164 -0
  637. package/dist/types/video/page/css.d.ts +9 -0
  638. package/dist/types/video/page/dom.d.ts +56 -0
  639. package/dist/types/video/page/fit.d.ts +13 -0
  640. package/dist/types/video/page/layout.d.ts +8 -0
  641. package/dist/types/video/page/main.d.ts +1 -0
  642. package/dist/types/video/page/scene.d.ts +38 -0
  643. package/dist/types/video/page/texts.d.ts +10 -0
  644. package/dist/types/video/page/times.d.ts +31 -0
  645. package/dist/types/video/page/words.d.ts +39 -0
  646. package/dist/types/video/paid-download.d.ts +19 -0
  647. package/dist/types/video/plan/ask.d.ts +77 -0
  648. package/dist/types/video/plan/generated.d.ts +29 -0
  649. package/dist/types/video/plan/index.d.ts +6 -0
  650. package/dist/types/video/plan/materials.d.ts +22 -0
  651. package/dist/types/video/plan/model.d.ts +59 -0
  652. package/dist/types/video/plan/prompt.d.ts +41 -0
  653. package/dist/types/video/plan/see.d.ts +35 -0
  654. package/dist/types/video/presets/camera.d.ts +27 -0
  655. package/dist/types/video/presets/easing.d.ts +11 -0
  656. package/dist/types/video/presets/fill.d.ts +16 -0
  657. package/dist/types/video/presets/loop.d.ts +20 -0
  658. package/dist/types/video/presets/motion.d.ts +47 -0
  659. package/dist/types/video/presets/spoken.d.ts +35 -0
  660. package/dist/types/video/presets/text-styles.d.ts +44 -0
  661. package/dist/types/video/presets/transition.d.ts +66 -0
  662. package/dist/types/video/preview/cloud.d.ts +13 -0
  663. package/dist/types/video/preview/edit/check.d.ts +15 -0
  664. package/dist/types/video/preview/edit/editor.d.ts +52 -0
  665. package/dist/types/video/preview/edit/ops.d.ts +52 -0
  666. package/dist/types/video/preview/edit/render.d.ts +11 -0
  667. package/dist/types/video/preview/edit/retime.d.ts +2 -0
  668. package/dist/types/video/preview/edit/routes.d.ts +1106 -0
  669. package/dist/types/video/preview/export-settings.d.ts +25 -0
  670. package/dist/types/video/preview/files.d.ts +25 -0
  671. package/dist/types/video/preview/html.d.ts +9 -0
  672. package/dist/types/video/preview/index.d.ts +20 -0
  673. package/dist/types/video/preview/project.d.ts +48 -0
  674. package/dist/types/video/preview/protocol.d.ts +91 -0
  675. package/dist/types/video/preview/server.d.ts +21 -0
  676. package/dist/types/video/preview/shell/app.d.ts +81 -0
  677. package/dist/types/video/preview/shell/dom.d.ts +49 -0
  678. package/dist/types/video/preview/shell/edit/controller.d.ts +32 -0
  679. package/dist/types/video/preview/shell/edit/fields.d.ts +49 -0
  680. package/dist/types/video/preview/shell/edit/form-parts.d.ts +17 -0
  681. package/dist/types/video/preview/shell/edit/form.d.ts +17 -0
  682. package/dist/types/video/preview/shell/edit/inline.d.ts +4 -0
  683. package/dist/types/video/preview/shell/edit/lanes-edit.d.ts +31 -0
  684. package/dist/types/video/preview/shell/edit/layer-order.d.ts +4 -0
  685. package/dist/types/video/preview/shell/edit/remove.d.ts +4 -0
  686. package/dist/types/video/preview/shell/edit/reveal.d.ts +4 -0
  687. package/dist/types/video/preview/shell/edit/scenes.d.ts +7 -0
  688. package/dist/types/video/preview/shell/edit/schema.d.ts +30 -0
  689. package/dist/types/video/preview/shell/edit/source.d.ts +83 -0
  690. package/dist/types/video/preview/shell/edit/split.d.ts +8 -0
  691. package/dist/types/video/preview/shell/edit/stage-edit.d.ts +21 -0
  692. package/dist/types/video/preview/shell/edit/text-fit.d.ts +4 -0
  693. package/dist/types/video/preview/shell/edit/toolbar.d.ts +14 -0
  694. package/dist/types/video/preview/shell/footage.d.ts +6 -0
  695. package/dist/types/video/preview/shell/i18n.d.ts +176 -0
  696. package/dist/types/video/preview/shell/lanes.d.ts +2 -0
  697. package/dist/types/video/preview/shell/main.d.ts +1 -0
  698. package/dist/types/video/preview/shell/model.d.ts +85 -0
  699. package/dist/types/video/preview/shell/panel.d.ts +3 -0
  700. package/dist/types/video/preview/shell/readonly.d.ts +1 -0
  701. package/dist/types/video/preview/shell/stage.d.ts +7 -0
  702. package/dist/types/video/preview/shell/studio/audio.d.ts +3 -0
  703. package/dist/types/video/preview/shell/studio/cloud.d.ts +3 -0
  704. package/dist/types/video/preview/shell/studio/code.d.ts +6 -0
  705. package/dist/types/video/preview/shell/studio/copy.d.ts +159 -0
  706. package/dist/types/video/preview/shell/studio/draft-result.d.ts +3 -0
  707. package/dist/types/video/preview/shell/studio/export.d.ts +3 -0
  708. package/dist/types/video/preview/shell/studio/scene-selection.d.ts +19 -0
  709. package/dist/types/video/preview/shell/studio/sidebar.d.ts +27 -0
  710. package/dist/types/video/preview/shell/studio/style.d.ts +2 -0
  711. package/dist/types/video/preview/shell/studio/timeline.d.ts +3 -0
  712. package/dist/types/video/preview/shell/studio/ui.d.ts +18 -0
  713. package/dist/types/video/preview/shell/studio/workspace.d.ts +11 -0
  714. package/dist/types/video/preview/shell/style.d.ts +5 -0
  715. package/dist/types/video/preview/shell/transport.d.ts +6 -0
  716. package/dist/types/video/preview/shell-bundle.d.ts +1 -0
  717. package/dist/types/video/preview/studio-actions.d.ts +4 -0
  718. package/dist/types/video/preview/studio-data.d.ts +32 -0
  719. package/dist/types/video/preview/thumbnails.d.ts +5 -0
  720. package/dist/types/video/preview/watch.d.ts +23 -0
  721. package/dist/types/video/progress.d.ts +28 -0
  722. package/dist/types/video/project/check-camera.d.ts +8 -0
  723. package/dist/types/video/project/check-caption.d.ts +8 -0
  724. package/dist/types/video/project/check-common.d.ts +25 -0
  725. package/dist/types/video/project/check-footage.d.ts +22 -0
  726. package/dist/types/video/project/check-look.d.ts +19 -0
  727. package/dist/types/video/project/check-sound.d.ts +57 -0
  728. package/dist/types/video/project/check-span.d.ts +11 -0
  729. package/dist/types/video/project/check-tracks.d.ts +8 -0
  730. package/dist/types/video/project/check-transition.d.ts +11 -0
  731. package/dist/types/video/project/check-words.d.ts +32 -0
  732. package/dist/types/video/project/check.d.ts +42 -0
  733. package/dist/types/video/project/issues.d.ts +43 -0
  734. package/dist/types/video/project/schema.d.ts +2074 -0
  735. package/dist/types/video/project/suggest.d.ts +4 -0
  736. package/dist/types/video/project/words.d.ts +6 -0
  737. package/dist/types/video/render/browser-step.d.ts +5 -0
  738. package/dist/types/video/render/chunked.d.ts +29 -0
  739. package/dist/types/video/render/chunks.d.ts +39 -0
  740. package/dist/types/video/render/encode.d.ts +54 -0
  741. package/dist/types/video/render/index.d.ts +116 -0
  742. package/dist/types/video/render/layout.d.ts +26 -0
  743. package/dist/types/video/render/record.d.ts +80 -0
  744. package/dist/types/video/render/session.d.ts +81 -0
  745. package/dist/types/video/render/shots.d.ts +11 -0
  746. package/dist/types/video/render/verify.d.ts +16 -0
  747. package/dist/types/video/replication/audio-provenance.d.ts +36 -0
  748. package/dist/types/video/replication/books.d.ts +64 -0
  749. package/dist/types/video/replication/browser.d.ts +1 -0
  750. package/dist/types/video/replication/check.d.ts +19 -0
  751. package/dist/types/video/replication/contract.d.ts +683 -0
  752. package/dist/types/video/replication/io.d.ts +22 -0
  753. package/dist/types/video/replication/motion-bundle.d.ts +1 -0
  754. package/dist/types/video/replication/motion.d.ts +109 -0
  755. package/dist/types/video/replication/pairs.d.ts +69 -0
  756. package/dist/types/video/replication/prefill.d.ts +34 -0
  757. package/dist/types/video/replication/production.d.ts +168 -0
  758. package/dist/types/video/replication/retiming.d.ts +16 -0
  759. package/dist/types/video/replication/review.d.ts +50 -0
  760. package/dist/types/video/replication/revision.d.ts +2 -0
  761. package/dist/types/video/replication/schema.d.ts +56 -0
  762. package/dist/types/video/replication/source-clock.d.ts +24 -0
  763. package/dist/types/video/replication/speech-observed.d.ts +121 -0
  764. package/dist/types/video/replication/voice-spans.d.ts +3 -0
  765. package/dist/types/video/retarget/caption-look.d.ts +14 -0
  766. package/dist/types/video/retarget/fps.d.ts +5 -0
  767. package/dist/types/video/retarget/index.d.ts +256 -0
  768. package/dist/types/video/retarget/items.d.ts +44 -0
  769. package/dist/types/video/retarget/marks.d.ts +12 -0
  770. package/dist/types/video/retarget/pace.d.ts +36 -0
  771. package/dist/types/video/retarget/speak.d.ts +43 -0
  772. package/dist/types/video/retarget/takes.d.ts +66 -0
  773. package/dist/types/video/retarget/tempo.d.ts +42 -0
  774. package/dist/types/video/retarget/titles.d.ts +76 -0
  775. package/dist/types/video/retarget/words.d.ts +39 -0
  776. package/dist/types/video/scene/author.d.ts +74 -0
  777. package/dist/types/video/scene/check.d.ts +64 -0
  778. package/dist/types/video/scene/copied.d.ts +30 -0
  779. package/dist/types/video/scene/cues.d.ts +40 -0
  780. package/dist/types/video/scene/examples.d.ts +129 -0
  781. package/dist/types/video/scene/findings.d.ts +71 -0
  782. package/dist/types/video/scene/fonts.d.ts +19 -0
  783. package/dist/types/video/scene/items.d.ts +23 -0
  784. package/dist/types/video/scene/library.d.ts +41 -0
  785. package/dist/types/video/scene/lint.d.ts +15 -0
  786. package/dist/types/video/scene/numbers.d.ts +39 -0
  787. package/dist/types/video/scene/pictures.d.ts +12 -0
  788. package/dist/types/video/scene/write.d.ts +41 -0
  789. package/dist/types/video/score/index.d.ts +13 -0
  790. package/dist/types/video/score/pair.d.ts +43 -0
  791. package/dist/types/video/score/picture.d.ts +14 -0
  792. package/dist/types/video/score/project-windows.d.ts +9 -0
  793. package/dist/types/video/score/shot-transition.d.ts +62 -0
  794. package/dist/types/video/score/shots.d.ts +101 -0
  795. package/dist/types/video/score/time.d.ts +22 -0
  796. package/dist/types/video/score/tracks.d.ts +42 -0
  797. package/dist/types/video/score/weights.d.ts +19 -0
  798. package/dist/types/video/sfx/cache.d.ts +16 -0
  799. package/dist/types/video/sfx/catalogue.d.ts +64 -0
  800. package/dist/types/video/sfx/extract.d.ts +65 -0
  801. package/dist/types/video/sfx/levels.d.ts +39 -0
  802. package/dist/types/video/sfx/library.d.ts +26 -0
  803. package/dist/types/video/sfx/place.d.ts +82 -0
  804. package/dist/types/video/sfx/project.d.ts +36 -0
  805. package/dist/types/video/sound/analysis.d.ts +46 -0
  806. package/dist/types/video/sound/breaks.d.ts +84 -0
  807. package/dist/types/video/sound/measure.d.ts +106 -0
  808. package/dist/types/video/sound/modes.d.ts +75 -0
  809. package/dist/types/video/sound/pcm.d.ts +21 -0
  810. package/dist/types/video/sound/reading.d.ts +124 -0
  811. package/dist/types/video/sound/speech-check.d.ts +76 -0
  812. package/dist/types/video/source/collect.d.ts +64 -0
  813. package/dist/types/video/source/read.d.ts +57 -0
  814. package/dist/types/video/source/used.d.ts +4 -0
  815. package/dist/types/video/speech/hosted.d.ts +36 -0
  816. package/dist/types/video/speech/index.d.ts +83 -0
  817. package/dist/types/video/speech/types.d.ts +46 -0
  818. package/dist/types/video/submit-retry.d.ts +15 -0
  819. package/dist/types/video/synth/generate.d.ts +53 -0
  820. package/dist/types/video/synth/truth.d.ts +8 -0
  821. package/dist/types/video/synth/write.d.ts +13 -0
  822. package/dist/types/video/template/capacity.d.ts +37 -0
  823. package/dist/types/video/template/card-elements.d.ts +17 -0
  824. package/dist/types/video/template/card.d.ts +22 -0
  825. package/dist/types/video/template/check-captions.d.ts +11 -0
  826. package/dist/types/video/template/check.d.ts +40 -0
  827. package/dist/types/video/template/facts.d.ts +90 -0
  828. package/dist/types/video/template/fill.d.ts +53 -0
  829. package/dist/types/video/template/fingerprint.d.ts +2 -0
  830. package/dist/types/video/template/fit.d.ts +60 -0
  831. package/dist/types/video/template/index.d.ts +8 -0
  832. package/dist/types/video/template/project.d.ts +21 -0
  833. package/dist/types/video/template/save.d.ts +54 -0
  834. package/dist/types/video/template/slots.d.ts +26 -0
  835. package/dist/types/video/template/speech-rules.d.ts +61 -0
  836. package/dist/types/video/template/split.d.ts +10 -0
  837. package/dist/types/video/template/structure.d.ts +82 -0
  838. package/dist/types/video/template/swap.d.ts +33 -0
  839. package/dist/types/video/template/types.d.ts +387 -0
  840. package/dist/types/video/text/bar.d.ts +63 -0
  841. package/dist/types/video/text/change.d.ts +19 -0
  842. package/dist/types/video/text/core.d.ts +25 -0
  843. package/dist/types/video/text/cues.d.ts +26 -0
  844. package/dist/types/video/text/fold.d.ts +9 -0
  845. package/dist/types/video/text/frame.d.ts +41 -0
  846. package/dist/types/video/text/highlight.d.ts +19 -0
  847. package/dist/types/video/text/index.d.ts +67 -0
  848. package/dist/types/video/text/letters.d.ts +85 -0
  849. package/dist/types/video/text/look.d.ts +53 -0
  850. package/dist/types/video/text/reader-command.d.ts +26 -0
  851. package/dist/types/video/text/reveal.d.ts +37 -0
  852. package/dist/types/video/text/rings.d.ts +39 -0
  853. package/dist/types/video/text/shadow.d.ts +44 -0
  854. package/dist/types/video/text/share.d.ts +2 -0
  855. package/dist/types/video/text/speech.d.ts +15 -0
  856. package/dist/types/video/text/strokes.d.ts +30 -0
  857. package/dist/types/video/text/types.d.ts +147 -0
  858. package/dist/types/video/timeline/cue-words.d.ts +27 -0
  859. package/dist/types/video/timeline/footage.d.ts +25 -0
  860. package/dist/types/video/timeline/frame.d.ts +55 -0
  861. package/dist/types/video/timeline/items.d.ts +28 -0
  862. package/dist/types/video/timeline/mix.d.ts +67 -0
  863. package/dist/types/video/timeline/resolve.d.ts +20 -0
  864. package/dist/types/video/timeline/spans.d.ts +32 -0
  865. package/dist/types/video/timeline/words.d.ts +64 -0
  866. package/dist/types/video/tool.d.ts +29 -0
  867. package/dist/types/video/types.d.ts +1057 -0
  868. package/dist/types/video/voice/cache.d.ts +10 -0
  869. package/dist/types/video/voice/create.d.ts +43 -0
  870. package/dist/types/video/voice/hosted.d.ts +42 -0
  871. package/dist/types/video/voice/index.d.ts +85 -0
  872. package/dist/types/video/voice/pace.d.ts +37 -0
  873. package/dist/types/video/voice/profile.d.ts +26 -0
  874. package/dist/types/video/voice/sample.d.ts +46 -0
  875. package/dist/types/video/wallet.d.ts +45 -0
  876. package/dist/types/video/work.d.ts +10 -0
  877. package/dist/types/workflow/post-bundle.d.ts +2 -2
  878. package/package.json +13 -4
  879. package/references/image-workflow.md +111 -0
  880. package/references/onboarding.md +50 -19
  881. package/references/post-bundle.md +1 -1
  882. package/references/providers.md +5 -2
  883. package/references/video-draft-export.md +13 -0
  884. package/references/video-editing.md +43 -0
  885. package/references/video-effects.md +613 -0
  886. package/references/video-elements.md +199 -0
  887. package/references/video-examples/showcase/assets/pattern.svg +18 -0
  888. package/references/video-examples/showcase/assets/voice.sbg +4 -0
  889. package/references/video-examples/showcase/assets/voice.words.json +68 -0
  890. package/references/video-examples/showcase/video.json +550 -0
  891. package/references/video-examples/template-demo/TEMPLATE.md +30 -0
  892. package/references/video-examples/template-demo/fill.json +29 -0
  893. package/references/video-examples/template-demo/slots.json +210 -0
  894. package/references/video-examples/template-demo/template.json +105 -0
  895. package/references/video-motion.md +315 -0
  896. package/references/video-native-observation.md +37 -0
  897. package/references/video-performers.md +96 -0
  898. package/references/video-project.md +65 -0
  899. package/references/video-replication.md +305 -0
  900. package/references/video-scenes.md +416 -0
  901. package/references/video-sfx.md +109 -0
  902. package/references/video-sound.md +222 -0
  903. package/references/video-step-0-machine.md +61 -0
  904. package/references/video-step-1-read.md +168 -0
  905. package/references/video-step-2-structure.md +24 -0
  906. package/references/video-step-3-content.md +117 -0
  907. package/references/video-step-4-lines.md +88 -0
  908. package/references/video-step-5-scenes.md +126 -0
  909. package/references/video-step-6-voice.md +53 -0
  910. package/references/video-step-7-deliver.md +92 -0
  911. package/references/video-templates.md +187 -0
  912. package/references/video-tools.md +562 -0
  913. package/references/video.md +140 -0
  914. package/templates/community/README.md +274 -1
  915. package/templates/community/index.json +3829 -0
  916. package/templates/community/instagram-age-expectations/README.md +14 -0
  917. package/templates/community/instagram-age-expectations/SKILL.md +52 -0
  918. package/templates/community/instagram-age-expectations/source.json +9 -0
  919. package/templates/community/instagram-age-expectations/template.json +53 -0
  920. package/templates/community/instagram-artwork-detail/README.md +19 -0
  921. package/templates/community/instagram-artwork-detail/SKILL.md +53 -0
  922. package/templates/community/instagram-artwork-detail/source.json +9 -0
  923. package/templates/community/instagram-artwork-detail/template.json +61 -0
  924. package/templates/community/instagram-balanced-traits/README.md +12 -0
  925. package/templates/community/instagram-balanced-traits/SKILL.md +52 -0
  926. package/templates/community/instagram-balanced-traits/source.json +9 -0
  927. package/templates/community/instagram-balanced-traits/template.json +53 -0
  928. package/templates/community/instagram-behind-the-scenes/README.md +12 -0
  929. package/templates/community/instagram-behind-the-scenes/SKILL.md +53 -0
  930. package/templates/community/instagram-behind-the-scenes/source.json +9 -0
  931. package/templates/community/instagram-behind-the-scenes/template.json +52 -0
  932. package/templates/community/instagram-brand-personification/README.md +26 -0
  933. package/templates/community/instagram-brand-personification/SKILL.md +53 -0
  934. package/templates/community/instagram-brand-personification/source.json +9 -0
  935. package/templates/community/instagram-brand-personification/template.json +66 -0
  936. package/templates/community/instagram-brand-system/README.md +17 -0
  937. package/templates/community/instagram-brand-system/SKILL.md +53 -0
  938. package/templates/community/instagram-brand-system/source.json +9 -0
  939. package/templates/community/instagram-brand-system/template.json +60 -0
  940. package/templates/community/instagram-calendar-cheat-sheet/README.md +8 -0
  941. package/templates/community/instagram-calendar-cheat-sheet/SKILL.md +53 -0
  942. package/templates/community/instagram-calendar-cheat-sheet/source.json +9 -0
  943. package/templates/community/instagram-calendar-cheat-sheet/template.json +47 -0
  944. package/templates/community/instagram-capacity-planning/README.md +12 -0
  945. package/templates/community/instagram-capacity-planning/SKILL.md +53 -0
  946. package/templates/community/instagram-capacity-planning/source.json +9 -0
  947. package/templates/community/instagram-capacity-planning/template.json +55 -0
  948. package/templates/community/instagram-category-use-guide/README.md +14 -0
  949. package/templates/community/instagram-category-use-guide/SKILL.md +53 -0
  950. package/templates/community/instagram-category-use-guide/source.json +9 -0
  951. package/templates/community/instagram-category-use-guide/template.json +55 -0
  952. package/templates/community/instagram-character-led-tour/README.md +17 -0
  953. package/templates/community/instagram-character-led-tour/SKILL.md +53 -0
  954. package/templates/community/instagram-character-led-tour/source.json +9 -0
  955. package/templates/community/instagram-character-led-tour/template.json +56 -0
  956. package/templates/community/instagram-comic-dialogue/README.md +16 -0
  957. package/templates/community/instagram-comic-dialogue/SKILL.md +53 -0
  958. package/templates/community/instagram-comic-dialogue/source.json +9 -0
  959. package/templates/community/instagram-comic-dialogue/template.json +59 -0
  960. package/templates/community/instagram-command-shortcuts/README.md +13 -0
  961. package/templates/community/instagram-command-shortcuts/SKILL.md +53 -0
  962. package/templates/community/instagram-command-shortcuts/source.json +9 -0
  963. package/templates/community/instagram-command-shortcuts/template.json +52 -0
  964. package/templates/community/instagram-context-changes-meaning/README.md +11 -0
  965. package/templates/community/instagram-context-changes-meaning/SKILL.md +53 -0
  966. package/templates/community/instagram-context-changes-meaning/source.json +9 -0
  967. package/templates/community/instagram-context-changes-meaning/template.json +54 -0
  968. package/templates/community/instagram-continuous-canvas/README.md +16 -0
  969. package/templates/community/instagram-continuous-canvas/SKILL.md +52 -0
  970. package/templates/community/instagram-continuous-canvas/source.json +9 -0
  971. package/templates/community/instagram-continuous-canvas/template.json +59 -0
  972. package/templates/community/instagram-conversation-questions/README.md +12 -0
  973. package/templates/community/instagram-conversation-questions/SKILL.md +52 -0
  974. package/templates/community/instagram-conversation-questions/source.json +9 -0
  975. package/templates/community/instagram-conversation-questions/template.json +51 -0
  976. package/templates/community/instagram-copy-alternatives/README.md +11 -0
  977. package/templates/community/instagram-copy-alternatives/SKILL.md +53 -0
  978. package/templates/community/instagram-copy-alternatives/source.json +9 -0
  979. package/templates/community/instagram-copy-alternatives/template.json +50 -0
  980. package/templates/community/instagram-copyable-notes/README.md +13 -0
  981. package/templates/community/instagram-copyable-notes/SKILL.md +52 -0
  982. package/templates/community/instagram-copyable-notes/source.json +9 -0
  983. package/templates/community/instagram-copyable-notes/template.json +51 -0
  984. package/templates/community/instagram-curated-resources/README.md +13 -0
  985. package/templates/community/instagram-curated-resources/SKILL.md +52 -0
  986. package/templates/community/instagram-curated-resources/source.json +9 -0
  987. package/templates/community/instagram-curated-resources/template.json +54 -0
  988. package/templates/community/instagram-destination-costs/README.md +17 -0
  989. package/templates/community/instagram-destination-costs/SKILL.md +52 -0
  990. package/templates/community/instagram-destination-costs/source.json +9 -0
  991. package/templates/community/instagram-destination-costs/template.json +56 -0
  992. package/templates/community/instagram-diagram-reference/README.md +10 -0
  993. package/templates/community/instagram-diagram-reference/SKILL.md +53 -0
  994. package/templates/community/instagram-diagram-reference/source.json +9 -0
  995. package/templates/community/instagram-diagram-reference/template.json +52 -0
  996. package/templates/community/instagram-different-perspectives/README.md +15 -0
  997. package/templates/community/instagram-different-perspectives/SKILL.md +53 -0
  998. package/templates/community/instagram-different-perspectives/source.json +9 -0
  999. package/templates/community/instagram-different-perspectives/template.json +55 -0
  1000. package/templates/community/instagram-document-reveal/README.md +8 -0
  1001. package/templates/community/instagram-document-reveal/SKILL.md +53 -0
  1002. package/templates/community/instagram-document-reveal/source.json +9 -0
  1003. package/templates/community/instagram-document-reveal/template.json +46 -0
  1004. package/templates/community/instagram-effect-breakdown/README.md +14 -0
  1005. package/templates/community/instagram-effect-breakdown/SKILL.md +53 -0
  1006. package/templates/community/instagram-effect-breakdown/source.json +9 -0
  1007. package/templates/community/instagram-effect-breakdown/template.json +55 -0
  1008. package/templates/community/instagram-effort-and-outcome/README.md +13 -0
  1009. package/templates/community/instagram-effort-and-outcome/SKILL.md +52 -0
  1010. package/templates/community/instagram-effort-and-outcome/source.json +9 -0
  1011. package/templates/community/instagram-effort-and-outcome/template.json +54 -0
  1012. package/templates/community/instagram-emotion-and-meaning/README.md +16 -0
  1013. package/templates/community/instagram-emotion-and-meaning/SKILL.md +52 -0
  1014. package/templates/community/instagram-emotion-and-meaning/source.json +9 -0
  1015. package/templates/community/instagram-emotion-and-meaning/template.json +56 -0
  1016. package/templates/community/instagram-everyday-interface-story/README.md +12 -0
  1017. package/templates/community/instagram-everyday-interface-story/SKILL.md +53 -0
  1018. package/templates/community/instagram-everyday-interface-story/source.json +9 -0
  1019. package/templates/community/instagram-everyday-interface-story/template.json +51 -0
  1020. package/templates/community/instagram-everyday-photo-diary/README.md +16 -0
  1021. package/templates/community/instagram-everyday-photo-diary/SKILL.md +52 -0
  1022. package/templates/community/instagram-everyday-photo-diary/source.json +9 -0
  1023. package/templates/community/instagram-everyday-photo-diary/template.json +61 -0
  1024. package/templates/community/instagram-evidence-to-method/README.md +13 -0
  1025. package/templates/community/instagram-evidence-to-method/SKILL.md +53 -0
  1026. package/templates/community/instagram-evidence-to-method/source.json +9 -0
  1027. package/templates/community/instagram-evidence-to-method/template.json +56 -0
  1028. package/templates/community/instagram-expectation-reality-review/README.md +18 -0
  1029. package/templates/community/instagram-expectation-reality-review/SKILL.md +53 -0
  1030. package/templates/community/instagram-expectation-reality-review/source.json +9 -0
  1031. package/templates/community/instagram-expectation-reality-review/template.json +57 -0
  1032. package/templates/community/instagram-experiment-story/README.md +20 -0
  1033. package/templates/community/instagram-experiment-story/SKILL.md +54 -0
  1034. package/templates/community/instagram-experiment-story/source.json +9 -0
  1035. package/templates/community/instagram-experiment-story/template.json +58 -0
  1036. package/templates/community/instagram-fill-in-speech/README.md +14 -0
  1037. package/templates/community/instagram-fill-in-speech/SKILL.md +53 -0
  1038. package/templates/community/instagram-fill-in-speech/source.json +9 -0
  1039. package/templates/community/instagram-fill-in-speech/template.json +53 -0
  1040. package/templates/community/instagram-fill-in-workbook/README.md +16 -0
  1041. package/templates/community/instagram-fill-in-workbook/SKILL.md +53 -0
  1042. package/templates/community/instagram-fill-in-workbook/source.json +9 -0
  1043. package/templates/community/instagram-fill-in-workbook/template.json +57 -0
  1044. package/templates/community/instagram-font-pairing/README.md +14 -0
  1045. package/templates/community/instagram-font-pairing/SKILL.md +52 -0
  1046. package/templates/community/instagram-font-pairing/source.json +9 -0
  1047. package/templates/community/instagram-font-pairing/template.json +53 -0
  1048. package/templates/community/instagram-goal-benchmarks/README.md +12 -0
  1049. package/templates/community/instagram-goal-benchmarks/SKILL.md +53 -0
  1050. package/templates/community/instagram-goal-benchmarks/source.json +9 -0
  1051. package/templates/community/instagram-goal-benchmarks/template.json +51 -0
  1052. package/templates/community/instagram-identity-match/README.md +19 -0
  1053. package/templates/community/instagram-identity-match/SKILL.md +52 -0
  1054. package/templates/community/instagram-identity-match/source.json +9 -0
  1055. package/templates/community/instagram-identity-match/template.json +64 -0
  1056. package/templates/community/instagram-illustrated-opinion/README.md +16 -0
  1057. package/templates/community/instagram-illustrated-opinion/SKILL.md +52 -0
  1058. package/templates/community/instagram-illustrated-opinion/source.json +9 -0
  1059. package/templates/community/instagram-illustrated-opinion/template.json +56 -0
  1060. package/templates/community/instagram-illustrated-story-explainer/README.md +14 -0
  1061. package/templates/community/instagram-illustrated-story-explainer/SKILL.md +53 -0
  1062. package/templates/community/instagram-illustrated-story-explainer/source.json +9 -0
  1063. package/templates/community/instagram-illustrated-story-explainer/template.json +55 -0
  1064. package/templates/community/instagram-image-to-palette/README.md +17 -0
  1065. package/templates/community/instagram-image-to-palette/SKILL.md +53 -0
  1066. package/templates/community/instagram-image-to-palette/source.json +9 -0
  1067. package/templates/community/instagram-image-to-palette/template.json +58 -0
  1068. package/templates/community/instagram-incremental-assembly/README.md +15 -0
  1069. package/templates/community/instagram-incremental-assembly/SKILL.md +52 -0
  1070. package/templates/community/instagram-incremental-assembly/source.json +9 -0
  1071. package/templates/community/instagram-incremental-assembly/template.json +55 -0
  1072. package/templates/community/instagram-interview-storyboard/README.md +25 -0
  1073. package/templates/community/instagram-interview-storyboard/SKILL.md +53 -0
  1074. package/templates/community/instagram-interview-storyboard/source.json +9 -0
  1075. package/templates/community/instagram-interview-storyboard/template.json +65 -0
  1076. package/templates/community/instagram-launch-news/README.md +9 -0
  1077. package/templates/community/instagram-launch-news/SKILL.md +53 -0
  1078. package/templates/community/instagram-launch-news/source.json +9 -0
  1079. package/templates/community/instagram-launch-news/template.json +55 -0
  1080. package/templates/community/instagram-layout-anatomy/README.md +12 -0
  1081. package/templates/community/instagram-layout-anatomy/SKILL.md +53 -0
  1082. package/templates/community/instagram-layout-anatomy/source.json +9 -0
  1083. package/templates/community/instagram-layout-anatomy/template.json +54 -0
  1084. package/templates/community/instagram-learning-path/README.md +14 -0
  1085. package/templates/community/instagram-learning-path/SKILL.md +53 -0
  1086. package/templates/community/instagram-learning-path/source.json +9 -0
  1087. package/templates/community/instagram-learning-path/template.json +55 -0
  1088. package/templates/community/instagram-local-picks/README.md +16 -0
  1089. package/templates/community/instagram-local-picks/SKILL.md +52 -0
  1090. package/templates/community/instagram-local-picks/source.json +9 -0
  1091. package/templates/community/instagram-local-picks/template.json +55 -0
  1092. package/templates/community/instagram-matched-test/README.md +10 -0
  1093. package/templates/community/instagram-matched-test/SKILL.md +53 -0
  1094. package/templates/community/instagram-matched-test/source.json +9 -0
  1095. package/templates/community/instagram-matched-test/template.json +49 -0
  1096. package/templates/community/instagram-metric-formulas/README.md +15 -0
  1097. package/templates/community/instagram-metric-formulas/SKILL.md +53 -0
  1098. package/templates/community/instagram-metric-formulas/source.json +9 -0
  1099. package/templates/community/instagram-metric-formulas/template.json +55 -0
  1100. package/templates/community/instagram-milestones-and-feelings/README.md +13 -0
  1101. package/templates/community/instagram-milestones-and-feelings/SKILL.md +52 -0
  1102. package/templates/community/instagram-milestones-and-feelings/source.json +9 -0
  1103. package/templates/community/instagram-milestones-and-feelings/template.json +56 -0
  1104. package/templates/community/instagram-mistakes-and-alternatives/README.md +12 -0
  1105. package/templates/community/instagram-mistakes-and-alternatives/SKILL.md +52 -0
  1106. package/templates/community/instagram-mistakes-and-alternatives/source.json +9 -0
  1107. package/templates/community/instagram-mistakes-and-alternatives/template.json +53 -0
  1108. package/templates/community/instagram-myth-and-fact/README.md +12 -0
  1109. package/templates/community/instagram-myth-and-fact/SKILL.md +53 -0
  1110. package/templates/community/instagram-myth-and-fact/source.json +9 -0
  1111. package/templates/community/instagram-myth-and-fact/template.json +51 -0
  1112. package/templates/community/instagram-news-digest/README.md +13 -0
  1113. package/templates/community/instagram-news-digest/SKILL.md +53 -0
  1114. package/templates/community/instagram-news-digest/source.json +9 -0
  1115. package/templates/community/instagram-news-digest/template.json +52 -0
  1116. package/templates/community/instagram-numbers-at-human-scale/README.md +12 -0
  1117. package/templates/community/instagram-numbers-at-human-scale/SKILL.md +53 -0
  1118. package/templates/community/instagram-numbers-at-human-scale/source.json +9 -0
  1119. package/templates/community/instagram-numbers-at-human-scale/template.json +52 -0
  1120. package/templates/community/instagram-object-led-activities/README.md +16 -0
  1121. package/templates/community/instagram-object-led-activities/SKILL.md +53 -0
  1122. package/templates/community/instagram-object-led-activities/source.json +9 -0
  1123. package/templates/community/instagram-object-led-activities/template.json +56 -0
  1124. package/templates/community/instagram-object-name-origins/README.md +11 -0
  1125. package/templates/community/instagram-object-name-origins/SKILL.md +52 -0
  1126. package/templates/community/instagram-object-name-origins/source.json +9 -0
  1127. package/templates/community/instagram-object-name-origins/template.json +52 -0
  1128. package/templates/community/instagram-one-input-many-results/README.md +14 -0
  1129. package/templates/community/instagram-one-input-many-results/SKILL.md +53 -0
  1130. package/templates/community/instagram-one-input-many-results/source.json +9 -0
  1131. package/templates/community/instagram-one-input-many-results/template.json +52 -0
  1132. package/templates/community/instagram-one-variable-comparison/README.md +11 -0
  1133. package/templates/community/instagram-one-variable-comparison/SKILL.md +53 -0
  1134. package/templates/community/instagram-one-variable-comparison/source.json +9 -0
  1135. package/templates/community/instagram-one-variable-comparison/template.json +52 -0
  1136. package/templates/community/instagram-opportunity-guide/README.md +18 -0
  1137. package/templates/community/instagram-opportunity-guide/SKILL.md +53 -0
  1138. package/templates/community/instagram-opportunity-guide/source.json +9 -0
  1139. package/templates/community/instagram-opportunity-guide/template.json +57 -0
  1140. package/templates/community/instagram-palette-application-board/README.md +11 -0
  1141. package/templates/community/instagram-palette-application-board/SKILL.md +52 -0
  1142. package/templates/community/instagram-palette-application-board/source.json +9 -0
  1143. package/templates/community/instagram-palette-application-board/template.json +52 -0
  1144. package/templates/community/instagram-personal-budget-case/README.md +14 -0
  1145. package/templates/community/instagram-personal-budget-case/SKILL.md +53 -0
  1146. package/templates/community/instagram-personal-budget-case/source.json +9 -0
  1147. package/templates/community/instagram-personal-budget-case/template.json +53 -0
  1148. package/templates/community/instagram-personal-experiment/README.md +11 -0
  1149. package/templates/community/instagram-personal-experiment/SKILL.md +53 -0
  1150. package/templates/community/instagram-personal-experiment/source.json +9 -0
  1151. package/templates/community/instagram-personal-experiment/template.json +52 -0
  1152. package/templates/community/instagram-photo-and-technical-sketch/README.md +10 -0
  1153. package/templates/community/instagram-photo-and-technical-sketch/SKILL.md +53 -0
  1154. package/templates/community/instagram-photo-and-technical-sketch/source.json +9 -0
  1155. package/templates/community/instagram-photo-and-technical-sketch/template.json +49 -0
  1156. package/templates/community/instagram-photo-moment-story/README.md +12 -0
  1157. package/templates/community/instagram-photo-moment-story/SKILL.md +53 -0
  1158. package/templates/community/instagram-photo-moment-story/source.json +9 -0
  1159. package/templates/community/instagram-photo-moment-story/template.json +53 -0
  1160. package/templates/community/instagram-product-change/README.md +9 -0
  1161. package/templates/community/instagram-product-change/SKILL.md +53 -0
  1162. package/templates/community/instagram-product-change/source.json +10 -0
  1163. package/templates/community/instagram-product-change/template.json +53 -0
  1164. package/templates/community/instagram-prompt-result-reference/README.md +26 -0
  1165. package/templates/community/instagram-prompt-result-reference/SKILL.md +53 -0
  1166. package/templates/community/instagram-prompt-result-reference/source.json +9 -0
  1167. package/templates/community/instagram-prompt-result-reference/template.json +68 -0
  1168. package/templates/community/instagram-public-follow-up/README.md +15 -0
  1169. package/templates/community/instagram-public-follow-up/SKILL.md +53 -0
  1170. package/templates/community/instagram-public-follow-up/source.json +9 -0
  1171. package/templates/community/instagram-public-follow-up/template.json +54 -0
  1172. package/templates/community/instagram-reader-question-answer/README.md +10 -0
  1173. package/templates/community/instagram-reader-question-answer/SKILL.md +53 -0
  1174. package/templates/community/instagram-reader-question-answer/source.json +9 -0
  1175. package/templates/community/instagram-reader-question-answer/template.json +48 -0
  1176. package/templates/community/instagram-remaining-capacity/README.md +11 -0
  1177. package/templates/community/instagram-remaining-capacity/SKILL.md +52 -0
  1178. package/templates/community/instagram-remaining-capacity/source.json +9 -0
  1179. package/templates/community/instagram-remaining-capacity/template.json +52 -0
  1180. package/templates/community/instagram-research-brief/README.md +16 -0
  1181. package/templates/community/instagram-research-brief/SKILL.md +53 -0
  1182. package/templates/community/instagram-research-brief/source.json +9 -0
  1183. package/templates/community/instagram-research-brief/template.json +54 -0
  1184. package/templates/community/instagram-result-and-recipe/README.md +17 -0
  1185. package/templates/community/instagram-result-and-recipe/SKILL.md +53 -0
  1186. package/templates/community/instagram-result-and-recipe/source.json +9 -0
  1187. package/templates/community/instagram-result-and-recipe/template.json +56 -0
  1188. package/templates/community/instagram-result-to-steps/README.md +13 -0
  1189. package/templates/community/instagram-result-to-steps/SKILL.md +53 -0
  1190. package/templates/community/instagram-result-to-steps/source.json +9 -0
  1191. package/templates/community/instagram-result-to-steps/template.json +51 -0
  1192. package/templates/community/instagram-reverse-instruction/README.md +15 -0
  1193. package/templates/community/instagram-reverse-instruction/SKILL.md +53 -0
  1194. package/templates/community/instagram-reverse-instruction/source.json +9 -0
  1195. package/templates/community/instagram-reverse-instruction/template.json +54 -0
  1196. package/templates/community/instagram-said-and-meant/README.md +9 -0
  1197. package/templates/community/instagram-said-and-meant/SKILL.md +52 -0
  1198. package/templates/community/instagram-said-and-meant/source.json +10 -0
  1199. package/templates/community/instagram-said-and-meant/template.json +46 -0
  1200. package/templates/community/instagram-same-budget-choices/README.md +12 -0
  1201. package/templates/community/instagram-same-budget-choices/SKILL.md +53 -0
  1202. package/templates/community/instagram-same-budget-choices/source.json +9 -0
  1203. package/templates/community/instagram-same-budget-choices/template.json +52 -0
  1204. package/templates/community/instagram-screenshot-walkthrough/README.md +12 -0
  1205. package/templates/community/instagram-screenshot-walkthrough/SKILL.md +53 -0
  1206. package/templates/community/instagram-screenshot-walkthrough/source.json +9 -0
  1207. package/templates/community/instagram-screenshot-walkthrough/template.json +58 -0
  1208. package/templates/community/instagram-searchable-asset-index/README.md +13 -0
  1209. package/templates/community/instagram-searchable-asset-index/SKILL.md +52 -0
  1210. package/templates/community/instagram-searchable-asset-index/source.json +9 -0
  1211. package/templates/community/instagram-searchable-asset-index/template.json +53 -0
  1212. package/templates/community/instagram-similar-concepts/README.md +15 -0
  1213. package/templates/community/instagram-similar-concepts/SKILL.md +52 -0
  1214. package/templates/community/instagram-similar-concepts/source.json +9 -0
  1215. package/templates/community/instagram-similar-concepts/template.json +54 -0
  1216. package/templates/community/instagram-single-event-news/README.md +14 -0
  1217. package/templates/community/instagram-single-event-news/SKILL.md +53 -0
  1218. package/templates/community/instagram-single-event-news/source.json +9 -0
  1219. package/templates/community/instagram-single-event-news/template.json +56 -0
  1220. package/templates/community/instagram-style-assembly/README.md +13 -0
  1221. package/templates/community/instagram-style-assembly/SKILL.md +53 -0
  1222. package/templates/community/instagram-style-assembly/source.json +9 -0
  1223. package/templates/community/instagram-style-assembly/template.json +53 -0
  1224. package/templates/community/instagram-style-choice/README.md +14 -0
  1225. package/templates/community/instagram-style-choice/SKILL.md +53 -0
  1226. package/templates/community/instagram-style-choice/source.json +9 -0
  1227. package/templates/community/instagram-style-choice/template.json +58 -0
  1228. package/templates/community/instagram-symbolism-in-artifact/README.md +9 -0
  1229. package/templates/community/instagram-symbolism-in-artifact/SKILL.md +52 -0
  1230. package/templates/community/instagram-symbolism-in-artifact/source.json +9 -0
  1231. package/templates/community/instagram-symbolism-in-artifact/template.json +47 -0
  1232. package/templates/community/instagram-taste-matched-recommendations/README.md +17 -0
  1233. package/templates/community/instagram-taste-matched-recommendations/SKILL.md +52 -0
  1234. package/templates/community/instagram-taste-matched-recommendations/source.json +9 -0
  1235. package/templates/community/instagram-taste-matched-recommendations/template.json +56 -0
  1236. package/templates/community/instagram-then-now-pairs/README.md +14 -0
  1237. package/templates/community/instagram-then-now-pairs/SKILL.md +52 -0
  1238. package/templates/community/instagram-then-now-pairs/source.json +9 -0
  1239. package/templates/community/instagram-then-now-pairs/template.json +52 -0
  1240. package/templates/community/instagram-timed-action-plan/README.md +15 -0
  1241. package/templates/community/instagram-timed-action-plan/SKILL.md +53 -0
  1242. package/templates/community/instagram-timed-action-plan/source.json +9 -0
  1243. package/templates/community/instagram-timed-action-plan/template.json +60 -0
  1244. package/templates/community/instagram-tools-by-task/README.md +13 -0
  1245. package/templates/community/instagram-tools-by-task/SKILL.md +53 -0
  1246. package/templates/community/instagram-tools-by-task/source.json +9 -0
  1247. package/templates/community/instagram-tools-by-task/template.json +57 -0
  1248. package/templates/community/instagram-two-perspectives/README.md +8 -0
  1249. package/templates/community/instagram-two-perspectives/SKILL.md +52 -0
  1250. package/templates/community/instagram-two-perspectives/source.json +9 -0
  1251. package/templates/community/instagram-two-perspectives/template.json +47 -0
  1252. package/templates/community/instagram-two-views-one-dataset/README.md +8 -0
  1253. package/templates/community/instagram-two-views-one-dataset/SKILL.md +53 -0
  1254. package/templates/community/instagram-two-views-one-dataset/source.json +9 -0
  1255. package/templates/community/instagram-two-views-one-dataset/template.json +51 -0
  1256. package/templates/community/instagram-version-change-audit/README.md +10 -0
  1257. package/templates/community/instagram-version-change-audit/SKILL.md +53 -0
  1258. package/templates/community/instagram-version-change-audit/source.json +9 -0
  1259. package/templates/community/instagram-version-change-audit/template.json +51 -0
  1260. package/templates/community/instagram-visual-analogy/README.md +13 -0
  1261. package/templates/community/instagram-visual-analogy/SKILL.md +53 -0
  1262. package/templates/community/instagram-visual-analogy/source.json +9 -0
  1263. package/templates/community/instagram-visual-analogy/template.json +53 -0
  1264. package/templates/community/instagram-visual-guess/README.md +15 -0
  1265. package/templates/community/instagram-visual-guess/SKILL.md +53 -0
  1266. package/templates/community/instagram-visual-guess/source.json +9 -0
  1267. package/templates/community/instagram-visual-guess/template.json +54 -0
  1268. package/templates/community/instagram-visual-technique-reference/README.md +18 -0
  1269. package/templates/community/instagram-visual-technique-reference/SKILL.md +53 -0
  1270. package/templates/community/instagram-visual-technique-reference/source.json +9 -0
  1271. package/templates/community/instagram-visual-technique-reference/template.json +60 -0
  1272. package/templates/community/instagram-worked-examples/README.md +13 -0
  1273. package/templates/community/instagram-worked-examples/SKILL.md +52 -0
  1274. package/templates/community/instagram-worked-examples/source.json +9 -0
  1275. package/templates/community/instagram-worked-examples/template.json +57 -0
@@ -0,0 +1,1276 @@
1
+ <!doctype html>
2
+ <!--
3
+ Adapted from HyperFrames (https://github.com/heygen-com/hyperframes), registry/blocks/code-slice-hero, commit a8332860c396e9224d42b7ea2a9cc8f42918c961.
4
+ Copyright 2026 HeyGen, Inc. Licensed under the Apache License, Version 2.0; the licence text is in the popost
5
+ Skill's THIRD_PARTY_NOTICES. Changed for the popost Skill (tools/video/port-hyperframes.mjs): its comments removed; its fonts drawn by roles of the Skill's font library, linked from the project (../css/<role>.css); its own scripts (shadows.js, surface.js) put into the page; comments and CSS selectors that name what the scene lint reserves (top, parent, video elements) rewritten; GSAP loaded from the project (../lib/gsap.min.js) instead of a CDN; the 1920x1080 composition scaled into the scene's canvas (parameter "fit"); HyperFrames variables declared as parameters; its root-level clips laid out as HyperFrames lays them out; its clips shown and hidden from the scene's time; sound cues derived from its tweens.
6
+ -->
7
+ <html lang="en">
8
+ <head>
9
+ <meta charset="utf-8" />
10
+ <meta name="viewport" content="width=1920, height=1080" />
11
+ <title>Code Slice Hero</title>
12
+ <script src="../lib/gsap.min.js"></script>
13
+ <script>
14
+ /* Local projected shadows: fixed light, spatial buckets, one extra GPU draw. */
15
+ window.CodeSliceShadows = function (gl, tiles, poses, strength, softness) {
16
+ "use strict";
17
+ const stride = 29,
18
+ light = [0.65, 0.8, -1],
19
+ bucketSize = Math.max(64, tiles[0].width);
20
+ const states = tiles.map(() => ({
21
+ c: new Float64Array(3),
22
+ u: new Float64Array(3),
23
+ v: new Float64Array(3),
24
+ n: new Float64Array(3),
25
+ q: new Float64Array(4),
26
+ }));
27
+ const buckets = new Map(),
28
+ usedBuckets = [],
29
+ seen = new Int32Array(tiles.length);
30
+ let stamp = 0,
31
+ count = 0,
32
+ storage = new Float32Array(Math.max(64, tiles.length * 8) * stride),
33
+ capacity = 0;
34
+ const stats = { pairs: 0, shadows: 0 };
35
+ const dot = (a, b) => a[0] * b[0] + a[1] * b[1] + a[2] * b[2];
36
+ const shaders = [];
37
+ function compile(kind, source) {
38
+ const s = gl.createShader(kind);
39
+ gl.shaderSource(s, source);
40
+ gl.compileShader(s);
41
+ if (!gl.getShaderParameter(s, gl.COMPILE_STATUS)) throw new Error(gl.getShaderInfoLog(s));
42
+ shaders.push(s);
43
+ return s;
44
+ }
45
+ const program = gl.createProgram();
46
+ gl.attachShader(
47
+ program,
48
+ compile(
49
+ gl.VERTEX_SHADER,
50
+ `#version 300 es
51
+ precision highp float;
52
+ layout(location/**/=0) in vec2 aCorner;
53
+ layout(location/**/=1) in vec3 aCenter;
54
+ layout(location/**/=2) in vec3 aU;
55
+ layout(location/**/=3) in vec3 aV;
56
+ layout(location/**/=4) in vec3 aReceiver;
57
+ layout(location/**/=5) in vec3 aReceiverU;
58
+ layout(location/**/=6) in vec3 aReceiverV;
59
+ layout(location/**/=7) in vec4 aBounds;
60
+ layout(location/**/=8) in vec4 aShape;
61
+ layout(location/**/=9) in vec3 aRay;
62
+ out vec2 vCasterUV;
63
+ out vec2 vReceiverXY;
64
+ out float vRay;
65
+ flat out vec4 vBounds;
66
+ flat out vec4 vShape;
67
+ void main(){
68
+ vec2 uv=aCorner*(1.0+1.5*aShape.z/aShape.xy);
69
+ vec3 p=aCenter+aU*uv.x+aV*uv.y;
70
+ float w=1.0-p.z/1712.661;
71
+ gl_Position=vec4((p.x-960.0)/960.0,-(p.y-540.0)/540.0,1.00020002*w-0.00116788,w);
72
+ vCasterUV=uv;vReceiverXY=vec2(dot(p-aReceiver,aReceiverU),dot(p-aReceiver,aReceiverV));
73
+ vRay=aRay.x+aRay.y*uv.x+aRay.z*uv.y;vBounds=aBounds;vShape=aShape;
74
+ }`,
75
+ ),
76
+ );
77
+ gl.attachShader(
78
+ program,
79
+ compile(
80
+ gl.FRAGMENT_SHADER,
81
+ `#version 300 es
82
+ precision highp float;
83
+ in vec2 vCasterUV;
84
+ in vec2 vReceiverXY;
85
+ in float vRay;
86
+ flat in vec4 vBounds;
87
+ flat in vec4 vShape;
88
+ out vec4 color;
89
+ void main(){
90
+ if(vRay<=0.2)discard;
91
+ // Clip to the actual rounded receiver face, never the revealed void.
92
+ vec2 q=abs(vReceiverXY)-(vBounds.xy-vBounds.z);
93
+ float receiverDistance=length(max(q,0.0))+min(max(q.x,q.y),0.0)-vBounds.z;
94
+ if(receiverDistance>=0.0)discard;
95
+ vec2 edge=(abs(vCasterUV)-1.0)*vShape.xy;
96
+ float distance=max(edge.x,edge.y);
97
+ float alpha=(1.0-smoothstep(-vShape.z,vShape.z,distance))*vBounds.w;
98
+ alpha*=smoothstep(0.2,3.0,vRay);
99
+ if(alpha<0.002)discard;
100
+ color=vec4(0.0,0.0,0.0,alpha);
101
+ }`,
102
+ ),
103
+ );
104
+ gl.linkProgram(program);
105
+ if (!gl.getProgramParameter(program, gl.LINK_STATUS))
106
+ throw new Error(gl.getProgramInfoLog(program));
107
+ const vao = gl.createVertexArray();
108
+ gl.bindVertexArray(vao);
109
+ const corners = gl.createBuffer();
110
+ gl.bindBuffer(gl.ARRAY_BUFFER, corners);
111
+ gl.bufferData(
112
+ gl.ARRAY_BUFFER,
113
+ new Float32Array([-1, -1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1]),
114
+ gl.STATIC_DRAW,
115
+ );
116
+ gl.enableVertexAttribArray(0);
117
+ gl.vertexAttribPointer(0, 2, gl.FLOAT, false, 8, 0);
118
+ const buffer = gl.createBuffer();
119
+ gl.bindBuffer(gl.ARRAY_BUFFER, buffer);
120
+ for (const [loc, size, offset] of [
121
+ [1, 3, 0],
122
+ [2, 3, 3],
123
+ [3, 3, 6],
124
+ [4, 3, 9],
125
+ [5, 3, 12],
126
+ [6, 3, 15],
127
+ [7, 4, 18],
128
+ [8, 4, 22],
129
+ [9, 3, 26],
130
+ ]) {
131
+ gl.enableVertexAttribArray(loc);
132
+ gl.vertexAttribPointer(loc, size, gl.FLOAT, false, stride * 4, offset * 4);
133
+ gl.vertexAttribDivisor(loc, 1);
134
+ }
135
+ function prepare() {
136
+ for (const bucket of usedBuckets) bucket.length = 0;
137
+ usedBuckets.length = 0;
138
+ for (let i = 0; i < tiles.length; i++) {
139
+ const t = tiles[i],
140
+ s = states[i],
141
+ k = i * 14;
142
+ const cx = Math.cos(poses[k + 8]),
143
+ sx = Math.sin(poses[k + 8]),
144
+ cy = Math.cos(poses[k + 9]),
145
+ sy = Math.sin(poses[k + 9]),
146
+ cz = Math.cos(poses[k + 10]),
147
+ sz = Math.sin(poses[k + 10]);
148
+ s.u.set([cy * cz, cx * sz + sx * sy * cz, sx * sz - cx * sy * cz]);
149
+ s.v.set([-cy * sz, cx * cz - sx * sy * sz, sx * cz + cx * sy * sz]);
150
+ s.n.set([sy, -sx * cy, cx * cy]);
151
+ s.c.set([t.cx + poses[k + 4], t.cy + poses[k + 5], poses[k + 6]]);
152
+ s.w = (t.width * poses[k + 7]) / 2;
153
+ s.h = (t.height * poses[k + 7]) / 2;
154
+ s.f = poses[k + 11];
155
+ // The visible face is also the depth-tested shadow receiver.
156
+ const front =
157
+ s.n[0] * (960 - s.c[0]) + s.n[1] * (540 - s.c[1]) + s.n[2] * (1712.661 - s.c[2]) >= 0
158
+ ? 1
159
+ : -1;
160
+ const thickness = 1.5 * s.f * poses[k + 7] * front;
161
+ for (let a = 0; a < 3; a++) s.c[a] += s.n[a] * thickness;
162
+ const qx = s.c[0] + light[0] * s.c[2],
163
+ qy = s.c[1] + light[1] * s.c[2];
164
+ const ux = (s.u[0] + light[0] * s.u[2]) * s.w,
165
+ uy = (s.u[1] + light[1] * s.u[2]) * s.w;
166
+ const vx = (s.v[0] + light[0] * s.v[2]) * s.h,
167
+ vy = (s.v[1] + light[1] * s.v[2]) * s.h;
168
+ s.q.set([
169
+ qx - Math.abs(ux) - Math.abs(vx),
170
+ qy - Math.abs(uy) - Math.abs(vy),
171
+ qx + Math.abs(ux) + Math.abs(vx),
172
+ qy + Math.abs(uy) + Math.abs(vy),
173
+ ]);
174
+ for (let y = Math.floor(s.q[1] / bucketSize); y <= Math.floor(s.q[3] / bucketSize); y++)
175
+ for (let x = Math.floor(s.q[0] / bucketSize); x <= Math.floor(s.q[2] / bucketSize); x++) {
176
+ const key = x + "," + y;
177
+ let bucket = buckets.get(key);
178
+ if (!bucket) {
179
+ bucket = [];
180
+ buckets.set(key, bucket);
181
+ }
182
+ if (!bucket.length) usedBuckets.push(bucket);
183
+ bucket.push(i);
184
+ }
185
+ }
186
+ }
187
+ const delta = new Float64Array(3),
188
+ center = new Float64Array(3),
189
+ u = new Float64Array(3),
190
+ v = new Float64Array(3);
191
+ function pair(c, r) {
192
+ stats.pairs++;
193
+ const denom = dot(r.n, light);
194
+ if (Math.abs(denom) < 0.12) return;
195
+ for (let a = 0; a < 3; a++) delta[a] = r.c[a] - c.c[a];
196
+ const ray = dot(delta, r.n) / denom,
197
+ ru = (-dot(c.u, r.n) * c.w) / denom,
198
+ rv = (-dot(c.v, r.n) * c.h) / denom;
199
+ if (ray + Math.abs(ru) + Math.abs(rv) < 0.5) return;
200
+ for (let a = 0; a < 3; a++) {
201
+ center[a] = c.c[a] + light[a] * ray;
202
+ u[a] = c.u[a] * c.w + light[a] * ru;
203
+ v[a] = c.v[a] * c.h + light[a] * rv;
204
+ delta[a] = center[a] - r.c[a];
205
+ }
206
+ const blur = softness * (1 + Math.max(0, ray) * 0.035);
207
+ const rx = dot(delta, r.u),
208
+ ry = dot(delta, r.v);
209
+ if (
210
+ Math.abs(rx) > r.w + Math.abs(dot(u, r.u)) + Math.abs(dot(v, r.u)) + blur * 2 ||
211
+ Math.abs(ry) > r.h + Math.abs(dot(u, r.v)) + Math.abs(dot(v, r.v)) + blur * 2
212
+ )
213
+ return;
214
+ const crossX = u[1] * v[2] - u[2] * v[1],
215
+ crossY = u[2] * v[0] - u[0] * v[2],
216
+ crossZ = u[0] * v[1] - u[1] * v[0];
217
+ const area = Math.hypot(crossX, crossY, crossZ),
218
+ altU = area / Math.hypot(...v),
219
+ altV = area / Math.hypot(...u);
220
+ if (!Number.isFinite(altU + altV) || altU < 0.2 || altV < 0.2) return;
221
+ if ((count + 1) * stride > storage.length) {
222
+ const larger = new Float32Array(storage.length * 2);
223
+ larger.set(storage);
224
+ storage = larger;
225
+ }
226
+ const offset = count++ * stride;
227
+ storage.set(center, offset);
228
+ storage.set(u, offset + 3);
229
+ storage.set(v, offset + 6);
230
+ storage.set(r.c, offset + 9);
231
+ storage.set(r.u, offset + 12);
232
+ storage.set(r.v, offset + 15);
233
+ storage.set(
234
+ [
235
+ r.w,
236
+ r.h,
237
+ Math.min(r.w, r.h) * 0.12 * r.f,
238
+ strength,
239
+ altU,
240
+ altV,
241
+ Math.max(0.6, blur),
242
+ 0,
243
+ ray,
244
+ ru,
245
+ rv,
246
+ ],
247
+ offset + 18,
248
+ );
249
+ }
250
+ return {
251
+ stats,
252
+ draw() {
253
+ stats.pairs = 0;
254
+ stats.shadows = 0;
255
+ count = 0;
256
+ if (strength <= 0) return 0;
257
+ prepare();
258
+ for (let i = 0; i < states.length; i++) {
259
+ const c = states[i];
260
+ if (c.f < 0.002) continue;
261
+ const pad = softness * (1 + (Math.abs(c.c[2]) + c.w + c.h) * 0.035) * 2;
262
+ stamp++;
263
+ for (
264
+ let y = Math.floor((c.q[1] - pad) / bucketSize);
265
+ y <= Math.floor((c.q[3] + pad) / bucketSize);
266
+ y++
267
+ )
268
+ for (
269
+ let x = Math.floor((c.q[0] - pad) / bucketSize);
270
+ x <= Math.floor((c.q[2] + pad) / bucketSize);
271
+ x++
272
+ ) {
273
+ const bucket = buckets.get(x + "," + y);
274
+ if (!bucket) continue;
275
+ for (const j of bucket) {
276
+ if (j === i || seen[j] === stamp) continue;
277
+ seen[j] = stamp;
278
+ pair(c, states[j]);
279
+ }
280
+ }
281
+ }
282
+ stats.shadows = count;
283
+ if (!count) return 0;
284
+ gl.useProgram(program);
285
+ gl.bindVertexArray(vao);
286
+ gl.bindBuffer(gl.ARRAY_BUFFER, buffer);
287
+ if (capacity < storage.byteLength) {
288
+ capacity = storage.byteLength;
289
+ gl.bufferData(gl.ARRAY_BUFFER, capacity, gl.DYNAMIC_DRAW);
290
+ }
291
+ gl.bufferSubData(gl.ARRAY_BUFFER, 0, storage.subarray(0, count * stride));
292
+ gl.depthMask(false);
293
+ gl.depthFunc(gl.LEQUAL);
294
+ gl.disable(gl.CULL_FACE);
295
+ gl.enable(gl.POLYGON_OFFSET_FILL);
296
+ gl.polygonOffset(-1, -1);
297
+ gl.drawArraysInstanced(gl.TRIANGLES, 0, 6, count);
298
+ gl.disable(gl.POLYGON_OFFSET_FILL);
299
+ gl.enable(gl.CULL_FACE);
300
+ gl.depthMask(true);
301
+ gl.depthFunc(gl.LESS);
302
+ return 1;
303
+ },
304
+ dispose() {
305
+ shaders.forEach((s) => gl.deleteShader(s));
306
+ gl.deleteBuffer(buffer);
307
+ gl.deleteBuffer(corners);
308
+ gl.deleteVertexArray(vao);
309
+ gl.deleteProgram(program);
310
+ },
311
+ };
312
+ };
313
+
314
+ </script>
315
+ <script>
316
+ /* One shared pair of text atlases, one instance buffer, one surface draw and one batched shadow draw per seek. */
317
+ window.CodeSliceSurface = function (stage, front, back, tiles, options) {
318
+ "use strict";
319
+ const canvas = document.createElement("canvas");
320
+ canvas.id = "csh-surface";
321
+ canvas.width = 1920;
322
+ canvas.height = 1080;
323
+ canvas.style.cssText = "display:block;width:1920px;height:1080px";
324
+ stage.appendChild(canvas);
325
+ const gl = canvas.getContext("webgl2", {
326
+ alpha: false,
327
+ antialias: true,
328
+ preserveDrawingBuffer: true,
329
+ });
330
+ if (!gl) throw new Error("Code Slice Hero requires WebGL 2 for its full tile surface.");
331
+ const vertex = `#version 300 es
332
+ precision highp float;
333
+ layout(location/**/=0) in vec3 aPosition;
334
+ layout(location/**/=1) in vec2 aUV;
335
+ layout(location/**/=2) in float aFace;
336
+ layout(location/**/=3) in vec4 aCell;
337
+ layout(location/**/=4) in vec4 aMotion;
338
+ layout(location/**/=5) in vec4 aAngles;
339
+ layout(location/**/=6) in vec2 aSurface;
340
+ out vec2 vUV;
341
+ out vec2 vAtlasUV;
342
+ flat out float vFace;
343
+ flat out float vFormation;
344
+ flat out float vShade;
345
+ flat out float vInk;
346
+ void main() {
347
+ vec3 p = vec3(aPosition.xy * aCell.zw, aPosition.z * 3.0 * aAngles.w) * aMotion.w;
348
+ // CSS transform order is translate * Rx * Ry * Rz * scale.
349
+ vec3 c = cos(aAngles.xyz), s = sin(aAngles.xyz);
350
+ p.xy = vec2(c.z*p.x-s.z*p.y, s.z*p.x+c.z*p.y);
351
+ p.xz = vec2(c.y*p.x+s.y*p.z, -s.y*p.x+c.y*p.z);
352
+ p.yz = vec2(c.x*p.y-s.x*p.z, s.x*p.y+c.x*p.z);
353
+ p += vec3(aCell.xy, 0.0) + aMotion.xyz;
354
+ float w = 1.0 - p.z / 1712.661;
355
+ gl_Position = vec4((p.x-960.0)/960.0, -(p.y-540.0)/540.0,
356
+ 1.00020002*w - 0.00116788, w);
357
+ vUV = aUV;
358
+ vAtlasUV = (aCell.xy + (aUV-0.5)*aCell.zw) / vec2(1920.0,1080.0);
359
+ vFace = aFace; vFormation = aAngles.w; vShade = aSurface.x; vInk = aSurface.y;
360
+ }`;
361
+ const fragment = `#version 300 es
362
+ precision highp float;
363
+ uniform sampler2D uFront;
364
+ uniform sampler2D uBack;
365
+ in vec2 vUV;
366
+ in vec2 vAtlasUV;
367
+ flat in float vFace;
368
+ flat in float vFormation;
369
+ flat in float vShade;
370
+ flat in float vInk;
371
+ out vec4 color;
372
+ void main() {
373
+ if (vFace > 1.5) {
374
+ if (vInk < 0.5 || vFormation < 0.003) discard;
375
+ float shade = vFace == 4.0 ? 0.910 : vFace == 5.0 ? 0.651 : 0.741;
376
+ color = vec4(vec3(shade),1.0); return;
377
+ }
378
+ float radius = 0.06*vFormation;
379
+ vec2 q = abs(vUV-0.5) - (0.5-radius);
380
+ float distance = length(max(q,0.0)) + min(max(q.x,q.y),0.0) - radius;
381
+ // At zero radius adjacent faces use their exact shared pixel boundary.
382
+ float alpha = radius > 0.00001 ? 1.0-smoothstep(-fwidth(distance),0.0,distance) : 1.0;
383
+ if (alpha < 0.01) discard;
384
+ vec3 ink = vInk < 0.5 ? vec3(1.0) :
385
+ (vFace < 0.5 ? texture(uFront,vAtlasUV).rgb : texture(uBack,vAtlasUV).rgb);
386
+ color = vec4(ink*vShade,alpha);
387
+ }`;
388
+ const shaders = [];
389
+ function compile(kind, source) {
390
+ const shader = gl.createShader(kind);
391
+ gl.shaderSource(shader, source);
392
+ gl.compileShader(shader);
393
+ if (!gl.getShaderParameter(shader, gl.COMPILE_STATUS))
394
+ throw new Error(gl.getShaderInfoLog(shader));
395
+ shaders.push(shader);
396
+ return shader;
397
+ }
398
+ const program = gl.createProgram();
399
+ gl.attachShader(program, compile(gl.VERTEX_SHADER, vertex));
400
+ gl.attachShader(program, compile(gl.FRAGMENT_SHADER, fragment));
401
+ gl.linkProgram(program);
402
+ if (!gl.getProgramParameter(program, gl.LINK_STATUS))
403
+ throw new Error(gl.getProgramInfoLog(program));
404
+ gl.useProgram(program);
405
+ const vertices = [];
406
+ function quad(corners, face) {
407
+ const uv = [
408
+ [0, 0],
409
+ [1, 0],
410
+ [1, 1],
411
+ [0, 1],
412
+ ];
413
+ for (const i of [0, 1, 2, 0, 2, 3]) vertices.push(...corners[i], ...uv[i], face);
414
+ }
415
+ quad(
416
+ [
417
+ [-0.5, -0.5, 0.5],
418
+ [0.5, -0.5, 0.5],
419
+ [0.5, 0.5, 0.5],
420
+ [-0.5, 0.5, 0.5],
421
+ ],
422
+ 0,
423
+ );
424
+ // Rear UVs are reversed in local X, just like a CSS rotateY(180deg) face.
425
+ quad(
426
+ [
427
+ [0.5, -0.5, -0.5],
428
+ [-0.5, -0.5, -0.5],
429
+ [-0.5, 0.5, -0.5],
430
+ [0.5, 0.5, -0.5],
431
+ ],
432
+ 1,
433
+ );
434
+ quad(
435
+ [
436
+ [-0.5, -0.5, -0.5],
437
+ [-0.5, -0.5, 0.5],
438
+ [-0.5, 0.5, 0.5],
439
+ [-0.5, 0.5, -0.5],
440
+ ],
441
+ 2,
442
+ );
443
+ quad(
444
+ [
445
+ [0.5, -0.5, 0.5],
446
+ [0.5, -0.5, -0.5],
447
+ [0.5, 0.5, -0.5],
448
+ [0.5, 0.5, 0.5],
449
+ ],
450
+ 3,
451
+ );
452
+ quad(
453
+ [
454
+ [-0.5, -0.5, -0.5],
455
+ [0.5, -0.5, -0.5],
456
+ [0.5, -0.5, 0.5],
457
+ [-0.5, -0.5, 0.5],
458
+ ],
459
+ 4,
460
+ );
461
+ quad(
462
+ [
463
+ [-0.5, 0.5, 0.5],
464
+ [0.5, 0.5, 0.5],
465
+ [0.5, 0.5, -0.5],
466
+ [-0.5, 0.5, -0.5],
467
+ ],
468
+ 5,
469
+ );
470
+ const vao = gl.createVertexArray();
471
+ gl.bindVertexArray(vao);
472
+ const geometry = gl.createBuffer();
473
+ gl.bindBuffer(gl.ARRAY_BUFFER, geometry);
474
+ gl.bufferData(gl.ARRAY_BUFFER, new Float32Array(vertices), gl.STATIC_DRAW);
475
+ for (const [location, size, offset] of [
476
+ [0, 3, 0],
477
+ [1, 2, 12],
478
+ [2, 1, 20],
479
+ ]) {
480
+ gl.enableVertexAttribArray(location);
481
+ gl.vertexAttribPointer(location, size, gl.FLOAT, false, 24, offset);
482
+ }
483
+ const data = new Float32Array(tiles.length * 14),
484
+ instances = gl.createBuffer();
485
+ tiles.forEach((tile, i) => {
486
+ data.set([tile.cx, tile.cy, tile.width, tile.height], i * 14);
487
+ data[i * 14 + 13] = tile.active ? 1 : 0;
488
+ });
489
+ gl.bindBuffer(gl.ARRAY_BUFFER, instances);
490
+ gl.bufferData(gl.ARRAY_BUFFER, data.byteLength, gl.DYNAMIC_DRAW);
491
+ for (const [location, size, offset] of [
492
+ [3, 4, 0],
493
+ [4, 4, 16],
494
+ [5, 4, 32],
495
+ [6, 2, 48],
496
+ ]) {
497
+ gl.enableVertexAttribArray(location);
498
+ gl.vertexAttribPointer(location, size, gl.FLOAT, false, 56, offset);
499
+ gl.vertexAttribDivisor(location, 1);
500
+ }
501
+ const textures = [front, back].map((source, i) => {
502
+ const texture = gl.createTexture();
503
+ gl.activeTexture(gl.TEXTURE0 + i);
504
+ gl.bindTexture(gl.TEXTURE_2D, texture);
505
+ gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, gl.LINEAR);
506
+ gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, gl.LINEAR);
507
+ gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_S, gl.CLAMP_TO_EDGE);
508
+ gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_T, gl.CLAMP_TO_EDGE);
509
+ gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGBA, gl.RGBA, gl.UNSIGNED_BYTE, source);
510
+ gl.uniform1i(gl.getUniformLocation(program, i === 0 ? "uFront" : "uBack"), i);
511
+ return texture;
512
+ });
513
+ gl.enable(gl.DEPTH_TEST);
514
+ gl.enable(gl.CULL_FACE);
515
+ gl.frontFace(gl.CW);
516
+ gl.enable(gl.BLEND);
517
+ gl.blendFunc(gl.SRC_ALPHA, gl.ONE_MINUS_SRC_ALPHA);
518
+ const rgb = options.behindColor.match(/[0-9a-f]{2}/gi).map((part) => parseInt(part, 16) / 255);
519
+ const shadows = window.CodeSliceShadows(
520
+ gl,
521
+ tiles,
522
+ data,
523
+ options.shadowStrength,
524
+ options.shadowSoftness,
525
+ );
526
+ gl.clearColor(...rgb, 1);
527
+ gl.viewport(0, 0, 1920, 1080);
528
+ return {
529
+ data,
530
+ shadowStats: shadows.stats,
531
+ set(index, p) {
532
+ const offset = index * 14 + 4;
533
+ data.set(
534
+ [
535
+ p.x,
536
+ p.y,
537
+ p.z,
538
+ p.scale,
539
+ (p.rx * Math.PI) / 180,
540
+ (p.ry * Math.PI) / 180,
541
+ (p.rz * Math.PI) / 180,
542
+ p.formation,
543
+ p.shade,
544
+ ],
545
+ offset,
546
+ );
547
+ },
548
+ draw() {
549
+ gl.useProgram(program);
550
+ gl.bindVertexArray(vao);
551
+ gl.bindBuffer(gl.ARRAY_BUFFER, instances);
552
+ gl.bufferSubData(gl.ARRAY_BUFFER, 0, data);
553
+ gl.clear(gl.COLOR_BUFFER_BIT | gl.DEPTH_BUFFER_BIT);
554
+ gl.drawArraysInstanced(gl.TRIANGLES, 0, 36, tiles.length);
555
+ return 1 + shadows.draw();
556
+ },
557
+ dispose() {
558
+ shadows.dispose();
559
+ textures.forEach((t) => gl.deleteTexture(t));
560
+ shaders.forEach((s) => gl.deleteShader(s));
561
+ gl.deleteBuffer(instances);
562
+ gl.deleteBuffer(geometry);
563
+ gl.deleteVertexArray(vao);
564
+ gl.deleteProgram(program);
565
+ canvas.remove();
566
+ },
567
+ };
568
+ };
569
+
570
+ </script>
571
+ <style>
572
+
573
+ * {
574
+ box-sizing: border-box;
575
+ margin: 0;
576
+ padding: 0;
577
+ }
578
+ html,
579
+ body {
580
+ background: #fff;
581
+ }
582
+ #csh-root {
583
+ position: relative;
584
+ width: 1920px;
585
+ height: 1080px;
586
+ overflow: hidden;
587
+ background: #fff;
588
+ }
589
+ #csh-stage {
590
+ position: absolute;
591
+ inset: 0;
592
+ }
593
+ #csh-flat {
594
+ position: absolute;
595
+ inset: 0;
596
+ background: #fff var(--csh-front) no-repeat 0 0 / 1920px 1080px;
597
+ }
598
+ .csh-accessible {
599
+ position: absolute;
600
+ width: 1px;
601
+ height: 1px;
602
+ overflow: hidden;
603
+ clip-path: inset(50%);
604
+ white-space: nowrap;
605
+ }
606
+ </style>
607
+ <link rel="stylesheet" href="../css/latin-inter.css" />
608
+ <style id="popost-fonts">
609
+ @font-face {
610
+ font-family: "SliceGeist";
611
+ size-adjust: 97.4%;
612
+ font-style: normal;
613
+ font-display: swap;
614
+ font-weight: 100 900;
615
+ src: url("../fonts/latin-inter/inter-latin-ext-wght-normal.woff2") format('woff2-variations');
616
+ unicode-range: 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;
617
+ }
618
+ @font-face {
619
+ font-family: "SliceGeist";
620
+ size-adjust: 97.4%;
621
+ font-style: normal;
622
+ font-display: swap;
623
+ font-weight: 100 900;
624
+ src: url("../fonts/latin-inter/inter-latin-wght-normal.woff2") format('woff2-variations');
625
+ unicode-range: 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;
626
+ }
627
+ @font-face {
628
+ font-family: "SliceGeist";
629
+ size-adjust: 97.4%;
630
+ font-style: italic;
631
+ font-display: swap;
632
+ font-weight: 100 900;
633
+ src: url("../fonts/latin-inter/inter-latin-ext-wght-italic.woff2") format('woff2-variations');
634
+ unicode-range: 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;
635
+ }
636
+ @font-face {
637
+ font-family: "SliceGeist";
638
+ size-adjust: 97.4%;
639
+ font-style: italic;
640
+ font-display: swap;
641
+ font-weight: 100 900;
642
+ src: url("../fonts/latin-inter/inter-latin-wght-italic.woff2") format('woff2-variations');
643
+ unicode-range: 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;
644
+ }
645
+ </style>
646
+ <script>
647
+ /* popost: a font of the font library loads once the project has its role (popost video scene font); until then, a
648
+ load the page waits for still resolves and the text falls back to the machine's fonts. */
649
+ (function () {
650
+ var set = document.fonts, load = set.load.bind(set), faceLoad = FontFace.prototype.load;
651
+ set.load = function () { return load.apply(null, arguments).catch(function () { return []; }); };
652
+ FontFace.prototype.load = function () { var face = this; return faceLoad.call(face).catch(function () { return face; }); };
653
+ })();
654
+ </script>
655
+ <style id="popost-fit">
656
+ html, body { margin: 0 !important; width: 1280px; height: 720px; overflow: hidden !important; }
657
+ :where(html, body) { background: #000000; }
658
+ #popost-stage { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; transform-origin: 0 0; overflow: hidden; }
659
+ </style>
660
+ <script type="application/json" id="popost-params">
661
+ {
662
+ "about": "A tiled headline surface flips cell by cell under a sweeping depth field to reveal the rear headline.",
663
+ "class": "ui",
664
+ "tags": [
665
+ "3d-motion",
666
+ "transition",
667
+ "typography",
668
+ "tiles",
669
+ "flip",
670
+ "webgl2",
671
+ "shadows",
672
+ "two-headlines"
673
+ ],
674
+ "placeholders": "Geist drawn in Inter",
675
+ "seconds": 8,
676
+ "params": [
677
+ {
678
+ "name": "fit",
679
+ "type": "choice",
680
+ "default": "contain",
681
+ "options": [
682
+ "contain",
683
+ "cover"
684
+ ],
685
+ "what": "how the 1920x1080 composition is fitted into the canvas: whole with bars, or filling it and cropped"
686
+ }
687
+ ],
688
+ "values": {}
689
+ }
690
+ </script>
691
+ <script>
692
+ /* popost: the scene's parameters stand in for HyperFrames variables; random numbers are seeded; the composition is
693
+ scaled into the canvas; clips are shown and hidden from the scene's time. */
694
+ (function () {
695
+ var block = document.getElementById('popost-params');
696
+ var values = block ? (JSON.parse(block.textContent).values || {}) : {};
697
+ var vars = {};
698
+ Object.keys(values).forEach(function (k) { if (k !== 'fit') vars[k] = values[k] === 'true' ? true : values[k] === 'false' ? false : values[k]; });
699
+ window.__hyperframes = { getVariables: function () { return vars; } };
700
+ var seed = 20240229;
701
+ window.__popostRandom = function () { seed = (seed + 0x6d2b79f5) >>> 0; var t = seed; t = Math.imul(t ^ (t >>> 15), t | 1); t ^= t + Math.imul(t ^ (t >>> 7), t | 61); return ((t ^ (t >>> 14)) >>> 0) / 4294967296; };
702
+ // HyperFrames variables as CSS custom properties (runtime/getVariables.ts, compositionLoader.ts). A mounted
703
+ // composition's host lists its variables (data-popost-variables, written by the port): before the composition's
704
+ // scripts run it gets those no rule gives it yet (an inherited value counts), and after them the rest; a value given
705
+ // by a parameter always wins.
706
+ var cssName = function (id) { return '--' + (String(id).toLowerCase().replace(/[^a-z0-9]+/g, '-').replace(/^-+|-+$/g, '') || 'node'); };
707
+ var givenId = function (n) { return Object.keys(values).filter(function (id) { return id !== 'fit' && cssName(id) === n; })[0]; };
708
+ var hostVars = function (h, early) {
709
+ (h.getAttribute('data-popost-variables') || '').split(';').forEach(function (d) {
710
+ var i = d.indexOf(':'), n = d.slice(0, i).trim(), k = givenId(n);
711
+ if (i < 0 || !n) return;
712
+ if (k !== undefined) h.style.setProperty(n, String(vars[k]));
713
+ else if (!(h.style.getPropertyValue(n) || (early ? getComputedStyle(h).getPropertyValue(n) : '')).trim()) h.style.setProperty(n, d.slice(i + 1).trim());
714
+ });
715
+ };
716
+ // Root-level clips laid out as HyperFrames lays them out (runtime/init.ts, applyCompositionSizing and applyClipLayout):
717
+ // its root composition (one marked data-root="true", else the first element with a data-composition-id, which is the
718
+ // page's <html> when that has one) gets its declared size, a position and overflow hidden; each child of it with a
719
+ // data-start is placed absolute unless it is absolute or fixed already, and given its declared size, or 100% where it
720
+ // measures 0. A composition box deeper in the page keeps the position its page gives it.
721
+ var layout = function () {
722
+ var hroot = document.querySelector('[data-composition-id][data-root="true"]') || document.querySelector('[data-composition-id]');
723
+ if (!hroot) return;
724
+ var px = function (v) { var n = parseFloat(v); return isFinite(n) && n > 0 ? n + 'px' : null; };
725
+ var rw = px(hroot.getAttribute('data-width')), rh = px(hroot.getAttribute('data-height'));
726
+ if (rw) { hroot.style.width = rw; hroot.style.setProperty('--comp-width', rw); }
727
+ if (rh) { hroot.style.height = rh; hroot.style.setProperty('--comp-height', rh); }
728
+ if (!hroot.style.position) hroot.style.position = 'relative';
729
+ hroot.style.overflow = 'hidden';
730
+ Array.prototype.forEach.call(hroot.children, function (el) {
731
+ if (/^(SCRIPT|STYLE|LINK|META)$/.test(el.tagName) || !el.hasAttribute('data-start')) return;
732
+ var none = el.style.getPropertyValue('display') === 'none', priority = el.style.getPropertyPriority('display');
733
+ if (none) el.style.removeProperty('display');
734
+ var cs = getComputedStyle(el);
735
+ if (cs.position !== 'absolute' && cs.position !== 'fixed') el.style.position = 'absolute';
736
+ if (el.tagName !== 'AUDIO') {
737
+ var byFile = /^(IMG|VIDEO)$/.test(el.tagName), fw = px(el.getAttribute('data-width')), fh = px(el.getAttribute('data-height'));
738
+ if (fw) { if (!el.style.width && (cs.width === '0px' || cs.width === 'auto')) el.style.width = fw; } else if (!byFile && !el.style.width && cs.width === '0px') el.style.width = '100%';
739
+ if (fh) { if (!el.style.height && (cs.height === '0px' || cs.height === 'auto')) el.style.height = fh; } else if (!byFile && !el.style.height && cs.height === '0px') el.style.height = '100%';
740
+ }
741
+ if (none) el.style.setProperty('display', 'none', priority);
742
+ });
743
+ };
744
+ // HyperFrames loads a mounted composition after it has laid out the page, so its scripts see the host placed: each
745
+ // script of a mounted composition calls this first (the port puts the call there).
746
+ window.__popostMount = function (script) {
747
+ var h = script && script.closest ? script.closest('[data-popost-host]') : null;
748
+ if (!h || h.__popostMounted) return;
749
+ h.__popostMounted = true;
750
+ layout();
751
+ hostVars(h, true);
752
+ };
753
+ window.__popostFit = function () {
754
+ // The canvas, from the size this file declares: a scene of a later shot loads in a layer that is not displayed, where the page measures 0.
755
+ var size = /width: (\d+)px; height: (\d+)px;/.exec(document.getElementById('popost-fit').textContent);
756
+ var W = 1920, H = 1080, s = document.getElementById('popost-stage'), cw = Number(size[1]), ch = Number(size[2]);
757
+ var k = (values.fit === 'cover' ? Math.max : Math.min)(cw / W, ch / H);
758
+ s.style.transform = 'translate(' + (cw - W * k) / 2 + 'px,' + (ch - H * k) / 2 + 'px) scale(' + k + ')';
759
+ // The page's own declared variables on its root element (runtime/getVariables.ts, injectCompositionCssVariables):
760
+ // each default where no rule defines its property, a value given by a parameter always.
761
+ Array.prototype.forEach.call(document.querySelectorAll('[data-popost-host]'), function (h) { hostVars(h, false); });
762
+ layout();
763
+ // Timed elements as HyperFrames has them (runtime/clipTree.ts, clipWindow.ts): every element with a data-start but the
764
+ // root composition, from its start plus the starts of the compositions it sits in, for its data-duration (a
765
+ // composition without one: its timeline's length); one that runs to the end of the root keeps its last frame.
766
+ var root = s.querySelector('[data-composition-id]');
767
+ var clips = Array.prototype.slice.call(s.querySelectorAll('[data-start]')).filter(function (c) { return (root ? c !== root : c.parentNode !== s) && !/^(SCRIPT|STYLE|LINK|META|TEMPLATE|NOSCRIPT)$/.test(c.tagName) && isFinite(parseFloat(c.getAttribute('data-start'))); });
768
+ var windows = clips.map(function (c) {
769
+ var a = parseFloat(c.getAttribute('data-start')), d = parseFloat(c.getAttribute('data-duration')), id = c.getAttribute('data-composition-id');
770
+ for (var p = c.parentElement; p && p !== s; p = p.parentElement) if (p !== root && p.hasAttribute('data-composition-id') && isFinite(parseFloat(p.getAttribute('data-start')))) a += parseFloat(p.getAttribute('data-start'));
771
+ var tl = !(d > 0) && id && window.__timelines && window.__timelines[id];
772
+ return [a, d > 0 ? d : tl && tl.duration ? tl.duration() : Infinity];
773
+ });
774
+ var rootLength = parseFloat(root && root.getAttribute('data-duration'));
775
+ // A mounted composition that starts later in its host runs on its own time.
776
+ [].forEach(function (m) {
777
+ var tl = window.__timelines && window.__timelines[m.id];
778
+ if (tl) window.__timelines[m.id] = { pause: function () { tl.pause(); }, seek: function (t) { tl.seek(Math.max(0, t - m.start)); }, duration: function () { return tl.duration() + m.start; } };
779
+ });
780
+ var scene = (window.__popostScene = window.__popostScene || {}), before = scene.render;
781
+ scene.render = function (seconds, fps) {
782
+ if (before) before(seconds, fps);
783
+ // A page that draws on the HyperFrames seek event gets it for every frame; what it waits for resolves before the frame is taken.
784
+ window.dispatchEvent(new CustomEvent('hf-seek', { detail: { time: seconds, waitUntil: function () {} } }));
785
+ for (var i = 0; i < clips.length; i++) {
786
+ var a = windows[i][0], end = a + windows[i][1];
787
+ clips[i].style.visibility = seconds >= a - 1e-6 && (seconds < end - 1e-6 || end >= rootLength - 1e-6) ? 'visible' : 'hidden';
788
+ }
789
+ };
790
+ };
791
+ })();
792
+ </script>
793
+ <script type="application/json" id="popost-cues">[{"at":1.4,"cue":"type","gain":0.35}]</script>
794
+ </head>
795
+ <body>
796
+ <div id="popost-stage">
797
+ <div
798
+ id="csh-root"
799
+ data-composition-variables='[{"id":"headline","type":"string","label":"Copy - Front headline","default":"MAKE IT","maxLength":32},{"id":"reverseHeadline","type":"string","label":"Copy - Rear headline","default":"MATTER.","maxLength":32},{"id":"direction","type":"enum","label":"Motion - Sweep direction","default":"left-to-right","options":[{"value":"left-to-right","label":"Left to right"},{"value":"right-to-left","label":"Right to left"}]},{"id":"sweepDuration","type":"number","label":"Motion - Sweep duration","default":4.2,"min":2.6,"max":4.5,"step":0.05,"unit":"s"},{"id":"sweepEaseStrength","type":"number","label":"Motion - Sweep easing strength","default":3,"min":0,"max":3,"step":0.05,"description":"0 = linear. Higher values start faster and slow more strongly toward the end."},{"id":"flipDuration","type":"number","label":"Motion - Each tile flip","default":0.75,"min":0.65,"max":1.65,"step":0.05,"unit":"s"},{"id":"cursorRadius","type":"number","label":"Cursor - Influence radius","default":210,"min":160,"max":480,"step":10,"unit":"px"},{"id":"cursorFalloff","type":"number","label":"Cursor - Influence falloff","default":1.4,"min":0.4,"max":3.5,"step":0.05},{"id":"cursorDepth","type":"number","label":"Cursor - Depth (+ toward camera)","default":80,"min":-320,"max":320,"step":10,"unit":"px"},{"id":"tiltStrength","type":"number","label":"Cursor - Pull / tilt strength","default":55,"min":0,"max":55,"step":1,"unit":"deg"},{"id":"noiseStrength","type":"number","label":"Motion - Organic variation","default":2,"min":0,"max":2,"step":0.05},{"id":"flipBounce","type":"number","label":"Motion - Elastic flip bounce","default":0.15,"min":0,"max":0.8,"step":0.05},{"id":"cellSize","type":"number","label":"Slices - Square cell size","default":112,"min":24,"max":120,"step":4,"unit":"px"},{"id":"formationScale","type":"number","label":"Slices - Local formation scale","default":1,"min":0.94,"max":1,"step":0.001},{"id":"fontSize","type":"number","label":"Type - Maximum size","default":310,"min":160,"max":480,"step":5,"unit":"px"},{"id":"behindColor","type":"color","label":"Surface - Behind-tile background","default":"#212121"},{"id":"shadowStrength","type":"number","label":"Surface - Cast shadow strength","default":0.19,"min":0,"max":0.65,"step":0.01},{"id":"shadowSoftness","type":"number","label":"Surface - Cast shadow softness","default":4,"min":0.5,"max":4,"step":0.1,"unit":"px"}]'
800
+ data-composition-id="code-slice-hero"
801
+ data-start="0"
802
+ data-duration="8"
803
+ data-width="1920"
804
+ data-height="1080"
805
+ >
806
+ <section
807
+ id="csh-stage"
808
+ class="clip"
809
+ data-start="0"
810
+ data-duration="8"
811
+ data-track-index="1"
812
+ aria-hidden="true"
813
+ ></section>
814
+ <div id="csh-flat" aria-hidden="true"></div>
815
+ <h1 id="csh-accessible" class="csh-accessible"></h1>
816
+ </div>
817
+ <script>
818
+ (() => {
819
+ "use strict";
820
+ const W = 1920,
821
+ H = 1080,
822
+ DURATION = 8,
823
+ SWEEP_START = 1.35;
824
+ const schema = JSON.parse(
825
+ document.getElementById("csh-root").getAttribute("data-composition-variables"),
826
+ );
827
+ const defaults = Object.fromEntries(schema.map((v) => [v.id, v.default]));
828
+ const values = { ...defaults, ...(window.__hyperframes?.getVariables?.() || {}) };
829
+ const clamp = (v, a = 0, b = 1) => Math.max(a, Math.min(b, v));
830
+ const number = (key, a, b) =>
831
+ Number.isFinite(Number(values[key])) ? clamp(Number(values[key]), a, b) : defaults[key];
832
+ const smooth = (v) => {
833
+ const u = clamp(v);
834
+ return u * u * u * (10 + u * (-15 + 6 * u));
835
+ };
836
+ const headline = String(values.headline ?? defaults.headline)
837
+ .replace(/\s+/g, " ")
838
+ .trim()
839
+ .slice(0, 32);
840
+ const reverseHeadline = String(values.reverseHeadline ?? defaults.reverseHeadline)
841
+ .replace(/\s+/g, " ")
842
+ .trim()
843
+ .slice(0, 32);
844
+ const direction = values.direction === "right-to-left" ? -1 : 1;
845
+ const cellSize = Math.round(number("cellSize", 24, 120));
846
+ const columns = Math.ceil(W / cellSize),
847
+ rows = Math.ceil(H / cellSize);
848
+ const gridX = Math.floor((W - columns * cellSize) / 2),
849
+ gridY = Math.floor((H - rows * cellSize) / 2);
850
+ const formationScale = number("formationScale", 0.94, 1);
851
+ const sweepPower = 1 + number("sweepEaseStrength", 0, 3);
852
+ const sweepDuration = number("sweepDuration", 2.6, 4.5),
853
+ flipDuration = number("flipDuration", 0.65, 1.65);
854
+ const cursorRadius = number("cursorRadius", 160, 480),
855
+ tiltStrength = number("tiltStrength", 0, 55);
856
+ const cursorDepth = number("cursorDepth", -320, 320);
857
+ const cursorFalloff = number("cursorFalloff", 0.4, 3.5);
858
+ const fieldReach = cursorRadius * Math.sqrt(-Math.log(0.06) / cursorFalloff);
859
+ const noiseStrength = number("noiseStrength", 0, 2),
860
+ flipBounce = number("flipBounce", 0, 0.8);
861
+ const maxFont = number("fontSize", 160, 480);
862
+ // Match the workbench color control: both #RGB and #RRGGBB are valid.
863
+ const rawBehindColor = String(values.behindColor ?? "")
864
+ .trim()
865
+ .toLowerCase();
866
+ const behindColor = /^#[0-9a-f]{3}$/.test(rawBehindColor)
867
+ ? "#" +
868
+ rawBehindColor
869
+ .slice(1)
870
+ .split("")
871
+ .map((c) => c + c)
872
+ .join("")
873
+ : /^#[0-9a-f]{6}$/.test(rawBehindColor)
874
+ ? rawBehindColor
875
+ : "#ffffff";
876
+ const shadowStrength = number("shadowStrength", 0, 0.65),
877
+ shadowSoftness = number("shadowSoftness", 0.5, 4);
878
+ const stage = document.getElementById("csh-stage"),
879
+ root = document.getElementById("csh-root");
880
+ const accessible = document.getElementById("csh-accessible"),
881
+ flat = document.getElementById("csh-flat");
882
+ const tiles = [],
883
+ cells = [];
884
+ const cursorLeft = -cursorRadius * 1.8,
885
+ cursorSpan = W + cursorRadius * 3.6;
886
+ let disposed = false,
887
+ timeline,
888
+ lastTime = 0,
889
+ finishTime = 0;
890
+ let firstMotion = SWEEP_START,
891
+ lastMotion = DURATION,
892
+ lastRenderedTime = NaN,
893
+ frameMode;
894
+ let surface;
895
+ const renderStats = { evaluatedTiles: 0, drawCalls: 0, restTiles: 0 };
896
+
897
+ // Shared front and rear surfaces, as in Code Slice Hero's UV windows.
898
+ // Raster alpha selects flip eligibility only, never a moving mask.
899
+ function textSurface(text) {
900
+ const canvas = document.createElement("canvas");
901
+ canvas.width = W;
902
+ canvas.height = H;
903
+ const ctx = canvas.getContext("2d", { willReadFrequently: true });
904
+ let size = maxFont;
905
+ ctx.font = `700 ${size}px SliceGeist`;
906
+ const measured = ctx.measureText(text);
907
+ if (measured.width > W - 320) size *= (W - 320) / measured.width;
908
+ ctx.font = `700 ${size}px SliceGeist`;
909
+ ctx.textAlign = "center";
910
+ ctx.textBaseline = "alphabetic";
911
+ const box = ctx.measureText(text);
912
+ const baseline = H / 2 + (box.actualBoundingBoxAscent - box.actualBoundingBoxDescent) / 2;
913
+ ctx.fillStyle = "#101010";
914
+ ctx.fillText(text, W / 2, baseline);
915
+ const ink = ctx.getImageData(0, 0, W, H).data;
916
+ let inkPixels = 0;
917
+ for (let i = 3; i < ink.length; i += 4) if (ink[i] > 0) inkPixels++;
918
+ ctx.globalCompositeOperation = "destination-over";
919
+ ctx.fillStyle = "#fff";
920
+ ctx.fillRect(0, 0, W, H);
921
+ return { canvas, ink, inkPixels, url: canvas.toDataURL("image/png"), size };
922
+ }
923
+
924
+ function countInk(ink, x0, y0, x1, y1) {
925
+ let count = 0;
926
+ for (let y = Math.max(0, y0); y < Math.min(H, y1); y++)
927
+ for (let x = Math.max(0, x0); x < Math.min(W, x1); x++) {
928
+ if (ink[(y * W + x) * 4 + 3] > 0) count++;
929
+ }
930
+ return count;
931
+ }
932
+
933
+ // These independent hashes are the experiment's actual per-purpose seeds.
934
+ function hash(col, row, a, b) {
935
+ const v = Math.sin(col * a + row * b) * 43758.5453;
936
+ return v - Math.floor(v);
937
+ }
938
+
939
+ // Same Gaussian^falloff + smooth cutoff as the source hover (falloff 1.4).
940
+ // Distances are in composition pixels, so the field stays circular even
941
+ // when square cell size / grid density changes.
942
+ function fieldAt(x, y, cursorX, cursorY) {
943
+ const distanceSquared = (x - cursorX) ** 2 + (y - cursorY) ** 2;
944
+ const raw = Math.exp((-cursorFalloff * distanceSquared) / (cursorRadius * cursorRadius));
945
+ const u = clamp((raw - 0.06) / 0.94);
946
+ return u * u * (3 - 2 * u);
947
+ }
948
+
949
+ // One analytic ease-out and its inverse drive every passage/window time.
950
+ // Strength zero preserves linear travel exactly; strength one is quadratic.
951
+ const easeSweep = (u) =>
952
+ sweepPower === 1 ? clamp(u) : 1 - Math.pow(1 - clamp(u), sweepPower);
953
+ const inverseSweep = (u) =>
954
+ sweepPower === 1 ? clamp(u) : 1 - Math.pow(1 - clamp(u), 1 / sweepPower);
955
+ function cursorTimeAtX(x) {
956
+ const rank = (direction === 1 ? x - cursorLeft : W - x - cursorLeft) / cursorSpan;
957
+ return SWEEP_START + sweepDuration * inverseSweep(rank);
958
+ }
959
+ function cursorAt(time) {
960
+ const progress = easeSweep((time - SWEEP_START) / sweepDuration);
961
+ return {
962
+ x: cursorLeft + cursorSpan * (direction === 1 ? progress : 1 - progress),
963
+ y: H / 2,
964
+ z: cursorDepth,
965
+ };
966
+ }
967
+
968
+ function poseAt(tile, time) {
969
+ const t = clamp(time, 0, DURATION);
970
+ const progress = tile.active ? clamp((t - tile.flipStart) / tile.flipDuration) : 0;
971
+ const turn = smooth(progress / 0.64);
972
+ // Analytic damped oscillation: overshoot, return past 180, settle exactly.
973
+ // The attack/tail both have zero slope, so bounce=0 is a clean half-turn.
974
+ const ringT = clamp((progress - 0.64) / 0.36);
975
+ const ringEnvelope =
976
+ smooth(ringT / 0.12) * Math.exp(-3.3 * ringT) * (1 - smooth((ringT - 0.72) / 0.28));
977
+ const bounce = flipBounce * 36 * Math.sin(ringT * Math.PI * 3.3) * ringEnvelope;
978
+ const flight = Math.sin(Math.PI * progress) ** 0.7;
979
+ const cursor = cursorAt(t);
980
+ const radial = fieldAt(tile.cx, tile.cy, cursor.x, cursor.y);
981
+ const automatic = t >= SWEEP_START && t <= SWEEP_START + sweepDuration;
982
+ // A short approach replaces the long, separate anticipation phase.
983
+ const approach = smooth((t - tile.passTime + 0.2) / 0.16);
984
+ const pull =
985
+ (automatic ? radial * approach * (1 - smooth(progress / 0.32)) : 0) *
986
+ (tile.active ? 1 : 0.55);
987
+ const dx = cursor.x - tile.cx,
988
+ dy = cursor.y - tile.cy;
989
+ const variation = noiseStrength * Math.max(pull, flight * tile.peak);
990
+ // Continuous deterministic oscillations, not random-at-render-time jitter.
991
+ const n1 = Math.sin(t * 5.7 + tile.phase),
992
+ n2 = Math.sin(t * 10.3 + tile.phase * 1.71);
993
+ const jitter = variation * (n1 * 0.7 + n2 * 0.3);
994
+ const formation = Math.max(pull, flight * (0.55 + 0.45 * tile.peak));
995
+ // CSS positive Z points toward the camera. The prior 2D tilt signs
996
+ // depressed the cursor-facing edge despite lifting the tile center.
997
+ // A signed depth field now raises that edge for a positive cursor Z;
998
+ // moving the cursor through the plane smoothly reverses this torque.
999
+ const depthGain = cursor.z / 160;
1000
+ const pullTiltX =
1001
+ depthGain *
1002
+ ((dy / cursorRadius) * tiltStrength * 1.6 * pull +
1003
+ tile.seedX * tiltStrength * 0.16 * pull);
1004
+ // Ink yaw cannot reverse against its half-turn after cursor passage.
1005
+ // Release its seeded torque over 80 ms; blank tiles retain signed pull.
1006
+ const yawDx = tile.active ? direction * Math.max(0, -direction * dx) : -dx;
1007
+ const yawHandoff = tile.active ? 1 - smooth((t - tile.passTime + 0.04) / 0.12) : 1;
1008
+ const pullTiltY =
1009
+ depthGain *
1010
+ ((yawDx / cursorRadius) * tiltStrength * 1.8 * pull +
1011
+ tile.seedY * tiltStrength * 0.12 * pull) *
1012
+ yawHandoff;
1013
+ const pullZ = (tiltStrength / 30) * cursor.z * 0.45 * pull;
1014
+ const rx = pullTiltX + tile.seedX * variation * 3 * flight + jitter;
1015
+ const ry = direction * (180 * turn + bounce) + pullTiltY + jitter * 0.7;
1016
+ const rz = tile.seedZ * variation * (2.3 * flight + 1.2 * pull) + jitter * 0.35;
1017
+ return {
1018
+ x: clamp(dx * 0.08 * pull, -tile.width * 0.18, tile.width * 0.18) + jitter * 0.2,
1019
+ y: clamp(dy * 0.07 * pull, -tile.height * 0.11, tile.height * 0.11) + jitter * 0.16,
1020
+ z: pullZ + 17 * flight * tile.peak,
1021
+ cursorDepth: cursor.z,
1022
+ pullTiltX,
1023
+ pullTiltY,
1024
+ pullZ,
1025
+ rx,
1026
+ ry,
1027
+ rz,
1028
+ turn,
1029
+ bounce,
1030
+ radial,
1031
+ pull,
1032
+ peak: tile.peak,
1033
+ formation,
1034
+ scale: 1 - (1 - formationScale) * formation,
1035
+ shade: 1 - 0.12 * Math.abs(Math.sin((ry * Math.PI) / 180)) - 0.018 * formation,
1036
+ };
1037
+ }
1038
+
1039
+ function setRest(tile, rear) {
1040
+ const rest = tile.active && rear ? 1 : 0;
1041
+ if (tile.restState === rest) return;
1042
+ tile.restState = rest;
1043
+ surface.set(tile.index, {
1044
+ x: 0,
1045
+ y: 0,
1046
+ z: 0,
1047
+ rx: 0,
1048
+ ry: rest * direction * 180,
1049
+ rz: 0,
1050
+ scale: 1,
1051
+ formation: 0,
1052
+ shade: 1,
1053
+ });
1054
+ }
1055
+
1056
+ function renderAt(time) {
1057
+ if (disposed) return;
1058
+ lastTime = clamp(time, 0, DURATION);
1059
+ if (lastTime === lastRenderedTime) return;
1060
+ lastRenderedTime = lastTime;
1061
+ renderStats.evaluatedTiles = 0;
1062
+ renderStats.drawCalls = 0;
1063
+ renderStats.restTiles = 0;
1064
+ const mode =
1065
+ lastTime <= firstMotion ? "front" : lastTime >= lastMotion ? "rear" : "moving";
1066
+ if (mode !== frameMode) {
1067
+ frameMode = mode;
1068
+ stage.style.visibility = mode === "moving" ? "visible" : "hidden";
1069
+ flat.style.visibility = mode === "moving" ? "hidden" : "visible";
1070
+ if (mode !== "moving")
1071
+ flat.style.backgroundImage = `var(--csh-${mode === "front" ? "front" : "back"})`;
1072
+ }
1073
+ // One unsegmented atlas is shown only while EVERY tile is flat. This
1074
+ // removes compositor hairlines in the workbench's scaled first frame.
1075
+ // It is hidden for the whole active wave: no backing text or mask fade.
1076
+ for (const tile of tiles) {
1077
+ if (mode !== "moving" || lastTime < tile.motionStart || lastTime > tile.motionEnd) {
1078
+ setRest(tile, mode === "rear" || lastTime > tile.flipStart + tile.flipDuration);
1079
+ renderStats.restTiles++;
1080
+ continue;
1081
+ }
1082
+ tile.restState = null;
1083
+ surface.set(tile.index, poseAt(tile, lastTime));
1084
+ renderStats.evaluatedTiles++;
1085
+ }
1086
+ if (mode === "moving") renderStats.drawCalls = surface.draw();
1087
+ const copy =
1088
+ lastTime < SWEEP_START + sweepDuration / 2 + flipDuration / 2
1089
+ ? headline
1090
+ : reverseHeadline;
1091
+ if (accessible.textContent !== copy) accessible.textContent = copy;
1092
+ stage.dataset.time = lastTime.toFixed(4);
1093
+ }
1094
+
1095
+ function build() {
1096
+ if (disposed) return;
1097
+ const front = textSurface(headline),
1098
+ back = textSurface(reverseHeadline);
1099
+ root.style.setProperty("--csh-front", `url("${front.url}")`);
1100
+ root.style.setProperty("--csh-back", `url("${back.url}")`);
1101
+ let coveredFront = 0,
1102
+ coveredBack = 0;
1103
+ firstMotion = Infinity;
1104
+ lastMotion = 0;
1105
+ for (let row = 0; row < rows; row++)
1106
+ for (let col = 0; col < columns; col++) {
1107
+ // One exhaustive integer pixel partition. No alpha threshold, corner
1108
+ // sampling, skipped row, or per-letter box can punch holes in the type.
1109
+ const x = gridX + col * cellSize,
1110
+ x1 = x + cellSize;
1111
+ const y = gridY + row * cellSize,
1112
+ y1 = y + cellSize;
1113
+ const frontInk = countInk(front.ink, x, y, x1, y1),
1114
+ backInk = countInk(back.ink, x, y, x1, y1);
1115
+ coveredFront += frontInk;
1116
+ coveredBack += backInk;
1117
+ const cell = {
1118
+ col,
1119
+ row,
1120
+ x,
1121
+ y,
1122
+ width: x1 - x,
1123
+ height: y1 - y,
1124
+ frontInk,
1125
+ backInk,
1126
+ active: frontInk + backInk > 0,
1127
+ };
1128
+ cells.push(cell);
1129
+ // Build the whole square surface. White cells participate in radial
1130
+ // lift/tilt at a restrained strength, but progress is locked to zero
1131
+ // above so they never enter the headline's half-turn or bounce.
1132
+ const cx = x + cell.width / 2,
1133
+ cy = y + cell.height / 2;
1134
+ const peak = fieldAt(cx, cy, cx, H / 2);
1135
+ const passTime = cursorTimeAtX(cx);
1136
+ const columnSeconds = Math.abs(
1137
+ cursorTimeAtX(cx + cellSize / 2) - cursorTimeAtX(cx - cellSize / 2),
1138
+ );
1139
+ // The turn starts at passage, with at most 12 ms of seeded stagger.
1140
+ const flipStart =
1141
+ passTime +
1142
+ hash(col, row, 269.5, 183.3) *
1143
+ Math.min(0.012, columnSeconds * 0.08) *
1144
+ Math.min(noiseStrength, 1);
1145
+ const duration = flipDuration * (1 + 0.18 * (1 - peak));
1146
+ const tile = {
1147
+ ...cell,
1148
+ index: tiles.length,
1149
+ cx,
1150
+ cy,
1151
+ peak,
1152
+ passTime,
1153
+ flipStart,
1154
+ flipDuration: duration,
1155
+ phase: hash(col, row, 127.1, 311.7) * Math.PI * 2,
1156
+ seedX: hash(col, row, 419.2, 371.9) * 2 - 1,
1157
+ seedY: hash(col, row, 37.7, 631.5) * 2 - 1,
1158
+ seedZ: hash(col, row, 97.3, 127.9) * 2 - 1,
1159
+ };
1160
+ // The Gaussian is exactly zero outside this circle. Precompute each
1161
+ // cell's entry/exit times once, independent of playback history.
1162
+ const dy = cy - H / 2;
1163
+ let enter = Infinity,
1164
+ exit = -Infinity;
1165
+ if (Math.abs(dy) < fieldReach) {
1166
+ const dx = Math.sqrt(fieldReach * fieldReach - dy * dy);
1167
+ enter = Math.max(
1168
+ SWEEP_START,
1169
+ passTime - 0.2,
1170
+ cursorTimeAtX(direction === 1 ? cx - dx : cx + dx),
1171
+ );
1172
+ exit = Math.min(
1173
+ SWEEP_START + sweepDuration,
1174
+ cursorTimeAtX(direction === 1 ? cx + dx : cx - dx),
1175
+ );
1176
+ }
1177
+ tile.motionStart = Math.min(enter, tile.active ? flipStart : Infinity);
1178
+ tile.motionEnd = Math.max(exit, tile.active ? flipStart + duration : -Infinity);
1179
+ firstMotion = Math.min(firstMotion, tile.motionStart);
1180
+ lastMotion = Math.max(lastMotion, tile.motionEnd);
1181
+ if (tile.active) finishTime = Math.max(finishTime, flipStart + duration);
1182
+ tiles.push(tile);
1183
+ }
1184
+ const inkTiles = tiles.filter((tile) => tile.active);
1185
+ root.style.backgroundColor = behindColor;
1186
+ surface = window.CodeSliceSurface(stage, front.canvas, back.canvas, tiles, {
1187
+ behindColor,
1188
+ shadowStrength,
1189
+ shadowSoftness,
1190
+ });
1191
+ const state = { time: 0 };
1192
+ timeline = gsap.timeline({ paused: true });
1193
+ timeline.to(
1194
+ state,
1195
+ {
1196
+ time: DURATION,
1197
+ duration: DURATION,
1198
+ ease: "none",
1199
+ onUpdate: () => renderAt(state.time),
1200
+ },
1201
+ 0,
1202
+ );
1203
+ timeline
1204
+ .addLabel("seamless-front", 0)
1205
+ .addLabel("cursor-sweep", SWEEP_START)
1206
+ .addLabel("cursor-passed", SWEEP_START + sweepDuration)
1207
+ .addLabel("seamless-rear", finishTime);
1208
+ window.__timelines = window.__timelines || {};
1209
+ window.__timelines["code-slice-hero"] = timeline;
1210
+ window.__codeSliceHero = {
1211
+ duration: DURATION,
1212
+ cellSize,
1213
+ columns,
1214
+ rows,
1215
+ activeCount: tiles.length,
1216
+ flipCount: inkTiles.length,
1217
+ backgroundCount: tiles.length - inkTiles.length,
1218
+ copy: [headline, reverseHeadline],
1219
+ fontSizes: [front.size, back.size],
1220
+ finishTime,
1221
+ coverage: {
1222
+ front: { inkPixels: front.inkPixels, covered: coveredFront },
1223
+ back: { inkPixels: back.inkPixels, covered: coveredBack },
1224
+ },
1225
+ cells,
1226
+ cursorAt,
1227
+ cursorTimeAtX,
1228
+ sweepEaseStrength: sweepPower - 1,
1229
+ renderStats,
1230
+ shadowStats: surface.shadowStats,
1231
+ behindColor,
1232
+ renderer: "webgl2-instanced",
1233
+ sample: (time) =>
1234
+ tiles.map((tile) => ({
1235
+ col: tile.col,
1236
+ row: tile.row,
1237
+ flips: tile.active,
1238
+ passTime: tile.passTime,
1239
+ flipStart: tile.flipStart,
1240
+ flipDuration: tile.flipDuration,
1241
+ ...poseAt(tile, time),
1242
+ })),
1243
+ renderAt,
1244
+ };
1245
+ renderAt(0);
1246
+ }
1247
+
1248
+ // The cursor is imaginary and belongs exclusively to the timeline.
1249
+ // No mouse/pointer input or wall-clock accumulation can affect a frame.
1250
+ function seek(event) {
1251
+ if (!timeline || typeof event.detail?.time !== "number") return;
1252
+ const time = clamp(event.detail.time, 0, DURATION);
1253
+ timeline.totalTime(time, true);
1254
+ renderAt(time);
1255
+ }
1256
+ window.addEventListener("hf-seek", seek);
1257
+ window.__codeSliceInstance = {
1258
+ dispose() {
1259
+ disposed = true;
1260
+ timeline?.kill();
1261
+ surface?.dispose();
1262
+ window.removeEventListener("hf-seek", seek);
1263
+ stage.replaceChildren();
1264
+ tiles.length = 0;
1265
+ cells.length = 0;
1266
+ root.style.removeProperty("--csh-front");
1267
+ root.style.removeProperty("--csh-back");
1268
+ },
1269
+ };
1270
+ window.__codeSliceReady = document.fonts.load("700 420px SliceGeist").then(build);
1271
+ })();
1272
+ </script>
1273
+ </div>
1274
+ <script>window.__popostFit();</script>
1275
+ </body>
1276
+ </html>