popost 4.6.0 → 4.6.6

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 (1280) hide show
  1. package/LICENSE +59 -3
  2. package/README.md +25 -10
  3. package/SKILL.md +48 -131
  4. package/THIRD_PARTY_NOTICES +524 -0
  5. package/agents/openai.yaml +2 -2
  6. package/assets/canvas/assets/{dist-Ag5yM9-G.js → dist-BmD8AP0A.js} +1 -1
  7. package/assets/canvas/assets/{es-DzkTYs_E.js → es-CC29Cabv.js} +1 -1
  8. package/assets/canvas/assets/{index-DjfLTPyx.js → index-DhwyFpu2.js} +6 -6
  9. package/assets/canvas/assets/{jszip.min-Cw2BF2G0.js → jszip.min-Bwf_yCrF.js} +1 -1
  10. package/assets/canvas/build-info.json +5 -5
  11. package/assets/canvas/index.html +1 -1
  12. package/assets/video/examples/audio-bars.html +125 -0
  13. package/assets/video/examples/bouncing-ball.html +182 -0
  14. package/assets/video/examples/card-flip.html +92 -0
  15. package/assets/video/examples/catalogue.json +16221 -0
  16. package/assets/video/examples/counter-stat.html +155 -0
  17. package/assets/video/examples/folding-doors.html +94 -0
  18. package/assets/video/examples/glitch-title.html +120 -0
  19. package/assets/video/examples/goo-blobs.html +127 -0
  20. package/assets/video/examples/grid-reveal.html +151 -0
  21. package/assets/video/examples/hf/agent-cursor.html +781 -0
  22. package/assets/video/examples/hf/ai-answer-rank.html +767 -0
  23. package/assets/video/examples/hf/ai-chat-reveal.html +1260 -0
  24. package/assets/video/examples/hf/animated-bar-chart.html +312 -0
  25. package/assets/video/examples/hf/app-showcase.html +1115 -0
  26. package/assets/video/examples/hf/apple-money-count.html +453 -0
  27. package/assets/video/examples/hf/arc-motion-path.html +303 -0
  28. package/assets/video/examples/hf/ascii-render-pass.html +728 -0
  29. package/assets/video/examples/hf/ascii-trail-reveal.html +595 -0
  30. package/assets/video/examples/hf/aurora-drift.html +439 -0
  31. package/assets/video/examples/hf/aurora.html +258 -0
  32. package/assets/video/examples/hf/avatar-cloud.html +667 -0
  33. package/assets/video/examples/hf/avatar-group-hover.html +342 -0
  34. package/assets/video/examples/hf/badge-pop.html +400 -0
  35. package/assets/video/examples/hf/bar-chart-race.html +795 -0
  36. package/assets/video/examples/hf/beat-accent.html +507 -0
  37. package/assets/video/examples/hf/beat-freeze-cut.html +1050 -0
  38. package/assets/video/examples/hf/beat-pulse-background.html +422 -0
  39. package/assets/video/examples/hf/beat-timeline.html +488 -0
  40. package/assets/video/examples/hf/before-after-wipe.html +681 -0
  41. package/assets/video/examples/hf/blob.html +258 -0
  42. package/assets/video/examples/hf/blue-sweater-intro-video.html +1656 -0
  43. package/assets/video/examples/hf/blur-in.html +624 -0
  44. package/assets/video/examples/hf/blur-out-up.html +350 -0
  45. package/assets/video/examples/hf/bottom-up-letters.html +335 -0
  46. package/assets/video/examples/hf/browser-device-stage.html +847 -0
  47. package/assets/video/examples/hf/camcorder-hud.html +371 -0
  48. package/assets/video/examples/hf/camera-dolly-zoom.html +485 -0
  49. package/assets/video/examples/hf/camera-rig-depth-stack.html +246 -0
  50. package/assets/video/examples/hf/camera-scan-gate.html +708 -0
  51. package/assets/video/examples/hf/camera-shake.html +989 -0
  52. package/assets/video/examples/hf/canopy-part-title.html +2549 -0
  53. package/assets/video/examples/hf/caption-blend-difference.html +247 -0
  54. package/assets/video/examples/hf/caption-camera-follow.html +537 -0
  55. package/assets/video/examples/hf/caption-clip-wipe.html +363 -0
  56. package/assets/video/examples/hf/caption-editorial-emphasis.html +615 -0
  57. package/assets/video/examples/hf/caption-emoji-pop.html +623 -0
  58. package/assets/video/examples/hf/caption-glitch-rgb.html +475 -0
  59. package/assets/video/examples/hf/caption-gradient-fill.html +392 -0
  60. package/assets/video/examples/hf/caption-highlight.html +433 -0
  61. package/assets/video/examples/hf/caption-kinetic-slam.html +334 -0
  62. package/assets/video/examples/hf/caption-matrix-decode.html +399 -0
  63. package/assets/video/examples/hf/caption-neon-accent.html +684 -0
  64. package/assets/video/examples/hf/caption-neon-glow.html +373 -0
  65. package/assets/video/examples/hf/caption-parallax-layers.html +530 -0
  66. package/assets/video/examples/hf/caption-particle-burst.html +454 -0
  67. package/assets/video/examples/hf/caption-pill-karaoke.html +517 -0
  68. package/assets/video/examples/hf/caption-texture.html +368 -0
  69. package/assets/video/examples/hf/caption-weight-shift.html +566 -0
  70. package/assets/video/examples/hf/card-resize.html +435 -0
  71. package/assets/video/examples/hf/caret-swap.html +601 -0
  72. package/assets/video/examples/hf/carousel-circle-1.html +1175 -0
  73. package/assets/video/examples/hf/carousel-circle-2.html +1175 -0
  74. package/assets/video/examples/hf/carousel-circle-3.html +1175 -0
  75. package/assets/video/examples/hf/carousel-circle-4.html +1175 -0
  76. package/assets/video/examples/hf/carousel-circle-5.html +1175 -0
  77. package/assets/video/examples/hf/carousel-orbit-1.html +1198 -0
  78. package/assets/video/examples/hf/carousel-orbit-2.html +1198 -0
  79. package/assets/video/examples/hf/carousel-orbit-3.html +1198 -0
  80. package/assets/video/examples/hf/carousel-orbit-4.html +1214 -0
  81. package/assets/video/examples/hf/carousel-orbit-5.html +1198 -0
  82. package/assets/video/examples/hf/carousel-path-1.html +1219 -0
  83. package/assets/video/examples/hf/carousel-path-2.html +1176 -0
  84. package/assets/video/examples/hf/carousel-path-3.html +1190 -0
  85. package/assets/video/examples/hf/carousel-path-4.html +1219 -0
  86. package/assets/video/examples/hf/carousel-path-5.html +1218 -0
  87. package/assets/video/examples/hf/carousel-vision-1.html +1180 -0
  88. package/assets/video/examples/hf/carousel-vision-2.html +1180 -0
  89. package/assets/video/examples/hf/carousel-vision-3.html +1180 -0
  90. package/assets/video/examples/hf/carousel-vision-4.html +1187 -0
  91. package/assets/video/examples/hf/carousel-vision-5.html +1180 -0
  92. package/assets/video/examples/hf/char-slam-explode.html +546 -0
  93. package/assets/video/examples/hf/chart-story.html +973 -0
  94. package/assets/video/examples/hf/chat-message.html +635 -0
  95. package/assets/video/examples/hf/chat-thread.html +953 -0
  96. package/assets/video/examples/hf/chatgpt-exchange.html +1620 -0
  97. package/assets/video/examples/hf/chromatic-radial-split.html +613 -0
  98. package/assets/video/examples/hf/chrome-orb.html +258 -0
  99. package/assets/video/examples/hf/cinemagraph.html +422 -0
  100. package/assets/video/examples/hf/cinematic-zoom.html +613 -0
  101. package/assets/video/examples/hf/claude-exchange.html +1845 -0
  102. package/assets/video/examples/hf/code-3d-extrude.html +755 -0
  103. package/assets/video/examples/hf/code-diff.html +956 -0
  104. package/assets/video/examples/hf/code-highlight.html +885 -0
  105. package/assets/video/examples/hf/code-morph.html +1357 -0
  106. package/assets/video/examples/hf/code-particle-assemble.html +622 -0
  107. package/assets/video/examples/hf/code-scroll.html +1700 -0
  108. package/assets/video/examples/hf/code-shader-dissolve.html +677 -0
  109. package/assets/video/examples/hf/code-slice-hero.html +1276 -0
  110. package/assets/video/examples/hf/code-snippet-apple-terminal-pro.html +388 -0
  111. package/assets/video/examples/hf/code-snippet-dark-2026.html +1231 -0
  112. package/assets/video/examples/hf/code-snippet-dark-modern.html +1227 -0
  113. package/assets/video/examples/hf/code-terminal-run.html +766 -0
  114. package/assets/video/examples/hf/code-typing.html +903 -0
  115. package/assets/video/examples/hf/color-wheel.html +258 -0
  116. package/assets/video/examples/hf/colorama-wipe.html +503 -0
  117. package/assets/video/examples/hf/comparison-split.html +657 -0
  118. package/assets/video/examples/hf/confetti.html +349 -0
  119. package/assets/video/examples/hf/conic-progress-ring.html +441 -0
  120. package/assets/video/examples/hf/constellation-hub.html +662 -0
  121. package/assets/video/examples/hf/cosmic-orb.html +643 -0
  122. package/assets/video/examples/hf/count-up.html +552 -0
  123. package/assets/video/examples/hf/cross-warp-morph.html +624 -0
  124. package/assets/video/examples/hf/cta-close.html +492 -0
  125. package/assets/video/examples/hf/cta-lockup.html +470 -0
  126. package/assets/video/examples/hf/cuboid-carousel.html +2385 -0
  127. package/assets/video/examples/hf/cursor-annotate.html +827 -0
  128. package/assets/video/examples/hf/cursor-context-menu.html +757 -0
  129. package/assets/video/examples/hf/cursor-drag-drop.html +656 -0
  130. package/assets/video/examples/hf/cursor-glyph-trail.html +904 -0
  131. package/assets/video/examples/hf/cursor-marquee-select.html +1266 -0
  132. package/assets/video/examples/hf/cursor-text-select.html +638 -0
  133. package/assets/video/examples/hf/cursor-zoom-follow.html +973 -0
  134. package/assets/video/examples/hf/curtain-reveal.html +590 -0
  135. package/assets/video/examples/hf/cut-the-curve.html +715 -0
  136. package/assets/video/examples/hf/dart-cursor.html +863 -0
  137. package/assets/video/examples/hf/data-chart.html +666 -0
  138. package/assets/video/examples/hf/decision-tree.html +655 -0
  139. package/assets/video/examples/hf/decline-chart.html +485 -0
  140. package/assets/video/examples/hf/device-frame-stage.html +661 -0
  141. package/assets/video/examples/hf/domain-warp-dissolve.html +627 -0
  142. package/assets/video/examples/hf/drift-hold.html +392 -0
  143. package/assets/video/examples/hf/dynamic-grid.html +336 -0
  144. package/assets/video/examples/hf/echo-smear.html +994 -0
  145. package/assets/video/examples/hf/echo-trail.html +557 -0
  146. package/assets/video/examples/hf/editorial-flash-overlay.html +337 -0
  147. package/assets/video/examples/hf/exploded-stack.html +761 -0
  148. package/assets/video/examples/hf/extended-keyframe.html +715 -0
  149. package/assets/video/examples/hf/extruded-logo.html +757 -0
  150. package/assets/video/examples/hf/facet-morph.html +746 -0
  151. package/assets/video/examples/hf/fade-through.html +443 -0
  152. package/assets/video/examples/hf/falling-lines.html +259 -0
  153. package/assets/video/examples/hf/filmed-screen.html +1065 -0
  154. package/assets/video/examples/hf/flash-through-white.html +613 -0
  155. package/assets/video/examples/hf/flowchart-vertical.html +631 -0
  156. package/assets/video/examples/hf/flowchart.html +630 -0
  157. package/assets/video/examples/hf/flowing-gradient.html +258 -0
  158. package/assets/video/examples/hf/focus-blur-resolve.html +321 -0
  159. package/assets/video/examples/hf/focus-rack.html +542 -0
  160. package/assets/video/examples/hf/focus-swap.html +496 -0
  161. package/assets/video/examples/hf/fractal-noise.html +258 -0
  162. package/assets/video/examples/hf/freeze-frame-dressing.html +357 -0
  163. package/assets/video/examples/hf/frost.html +258 -0
  164. package/assets/video/examples/hf/gabor-noise.html +258 -0
  165. package/assets/video/examples/hf/gallery-tunnel.html +652 -0
  166. package/assets/video/examples/hf/gesture-tap.html +604 -0
  167. package/assets/video/examples/hf/glass-hero.html +505 -0
  168. package/assets/video/examples/hf/glass-shard-title.html +1618 -0
  169. package/assets/video/examples/hf/glitch.html +613 -0
  170. package/assets/video/examples/hf/gloss-sweep.html +418 -0
  171. package/assets/video/examples/hf/godrays.html +257 -0
  172. package/assets/video/examples/hf/goo.html +258 -0
  173. package/assets/video/examples/hf/gooey-split.html +1092 -0
  174. package/assets/video/examples/hf/grain-field.html +377 -0
  175. package/assets/video/examples/hf/grain-overlay.html +295 -0
  176. package/assets/video/examples/hf/gravitational-lens.html +612 -0
  177. package/assets/video/examples/hf/grid-card-assemble.html +671 -0
  178. package/assets/video/examples/hf/grid-pixelate-wipe.html +314 -0
  179. package/assets/video/examples/hf/halftone-dissolve.html +696 -0
  180. package/assets/video/examples/hf/halftone-field.html +598 -0
  181. package/assets/video/examples/hf/headline-slam.html +455 -0
  182. package/assets/video/examples/hf/heatmap.html +258 -0
  183. package/assets/video/examples/hf/heygen-avatar-promo-card.html +627 -0
  184. package/assets/video/examples/hf/hologram.html +258 -0
  185. package/assets/video/examples/hf/holographic.html +258 -0
  186. package/assets/video/examples/hf/hw-arrow.html +835 -0
  187. package/assets/video/examples/hf/hw-boil.html +632 -0
  188. package/assets/video/examples/hf/hw-box-label.html +741 -0
  189. package/assets/video/examples/hf/hw-callout-circle.html +820 -0
  190. package/assets/video/examples/hf/hw-frame.html +455 -0
  191. package/assets/video/examples/hf/hw-path-text.html +349 -0
  192. package/assets/video/examples/hf/hw-pipeline.html +472 -0
  193. package/assets/video/examples/hf/hw-scribble-transition.html +291 -0
  194. package/assets/video/examples/hf/hw-text-cloud.html +439 -0
  195. package/assets/video/examples/hf/hw-title.html +412 -0
  196. package/assets/video/examples/hf/hw-underline.html +403 -0
  197. package/assets/video/examples/hf/hw-write-title.html +1389 -0
  198. package/assets/video/examples/hf/icon-morph-beat.html +463 -0
  199. package/assets/video/examples/hf/icon-swap.html +380 -0
  200. package/assets/video/examples/hf/ink-bleed-reveal.html +659 -0
  201. package/assets/video/examples/hf/inline-highlight.html +322 -0
  202. package/assets/video/examples/hf/input-feedback.html +419 -0
  203. package/assets/video/examples/hf/instagram-follow.html +460 -0
  204. package/assets/video/examples/hf/ios26-liquid-glass.html +1597 -0
  205. package/assets/video/examples/hf/iris-reveal.html +684 -0
  206. package/assets/video/examples/hf/keyframe-scrub-stack.html +326 -0
  207. package/assets/video/examples/hf/kinetic-center-build.html +538 -0
  208. package/assets/video/examples/hf/kinetic-type-swap.html +610 -0
  209. package/assets/video/examples/hf/kinetic-type.html +862 -0
  210. package/assets/video/examples/hf/lens-flare.html +258 -0
  211. package/assets/video/examples/hf/light-edge.html +259 -0
  212. package/assets/video/examples/hf/light-leak.html +612 -0
  213. package/assets/video/examples/hf/light-sweep-pass.html +684 -0
  214. package/assets/video/examples/hf/line-by-line-slide.html +345 -0
  215. package/assets/video/examples/hf/line-swap.html +526 -0
  216. package/assets/video/examples/hf/liquid-glass-notification.html +1898 -0
  217. package/assets/video/examples/hf/liquid-glass-widgets.html +2175 -0
  218. package/assets/video/examples/hf/liquid-metal.html +259 -0
  219. package/assets/video/examples/hf/locked-nucleus-orbit.html +564 -0
  220. package/assets/video/examples/hf/logo-brand-close.html +598 -0
  221. package/assets/video/examples/hf/logo-outro.html +397 -0
  222. package/assets/video/examples/hf/logo-sting.html +378 -0
  223. package/assets/video/examples/hf/logo-wall.html +502 -0
  224. package/assets/video/examples/hf/lottie-character-walk.html +407 -0
  225. package/assets/video/examples/hf/lt-accent-underline.html +247 -0
  226. package/assets/video/examples/hf/lt-bold-block.html +249 -0
  227. package/assets/video/examples/hf/lt-clean-bar.html +251 -0
  228. package/assets/video/examples/hf/lt-color-block.html +241 -0
  229. package/assets/video/examples/hf/lt-dark-card.html +251 -0
  230. package/assets/video/examples/hf/lt-kicker-name.html +254 -0
  231. package/assets/video/examples/hf/lt-mask-reveal.html +260 -0
  232. package/assets/video/examples/hf/lt-neon-border.html +604 -0
  233. package/assets/video/examples/hf/lt-side-rule.html +254 -0
  234. package/assets/video/examples/hf/lt-soft-pill.html +259 -0
  235. package/assets/video/examples/hf/lt-stack-bars.html +249 -0
  236. package/assets/video/examples/hf/macos-notification.html +372 -0
  237. package/assets/video/examples/hf/macos-tahoe-liquid-glass.html +1701 -0
  238. package/assets/video/examples/hf/magnetic-cursor.html +684 -0
  239. package/assets/video/examples/hf/marble.html +257 -0
  240. package/assets/video/examples/hf/marker-checklist-card.html +727 -0
  241. package/assets/video/examples/hf/marker-highlight.html +589 -0
  242. package/assets/video/examples/hf/match-cut.html +505 -0
  243. package/assets/video/examples/hf/matrix-decode.html +363 -0
  244. package/assets/video/examples/hf/menu-morph.html +420 -0
  245. package/assets/video/examples/hf/mesh-gradient-bg.html +329 -0
  246. package/assets/video/examples/hf/mesh-gradient.html +257 -0
  247. package/assets/video/examples/hf/message-thread-reveal.html +1913 -0
  248. package/assets/video/examples/hf/micro-transitions.html +631 -0
  249. package/assets/video/examples/hf/mk-background.html +376 -0
  250. package/assets/video/examples/hf/mk-callout-highlight.html +322 -0
  251. package/assets/video/examples/hf/mk-clone-wall-transition.html +364 -0
  252. package/assets/video/examples/hf/mk-emphasis-type.html +235 -0
  253. package/assets/video/examples/hf/mk-line-graph.html +432 -0
  254. package/assets/video/examples/hf/mk-placeholder-grid.html +373 -0
  255. package/assets/video/examples/hf/mk-progress-stat.html +324 -0
  256. package/assets/video/examples/hf/mk-specs-list.html +362 -0
  257. package/assets/video/examples/hf/mk-usage-arc.html +297 -0
  258. package/assets/video/examples/hf/modal-morph.html +727 -0
  259. package/assets/video/examples/hf/morph-swap.html +590 -0
  260. package/assets/video/examples/hf/morph-text.html +409 -0
  261. package/assets/video/examples/hf/multi-device-splay.html +934 -0
  262. package/assets/video/examples/hf/multiplayer-cursors.html +642 -0
  263. package/assets/video/examples/hf/native-notification-pop.html +670 -0
  264. package/assets/video/examples/hf/nebula.html +258 -0
  265. package/assets/video/examples/hf/news-ticker.html +548 -0
  266. package/assets/video/examples/hf/north-korea-locked-down.html +447 -0
  267. package/assets/video/examples/hf/notes-reveal.html +2028 -0
  268. package/assets/video/examples/hf/notes-typing.html +631 -0
  269. package/assets/video/examples/hf/notification-cascade.html +740 -0
  270. package/assets/video/examples/hf/notification-pileup.html +667 -0
  271. package/assets/video/examples/hf/notification-stack.html +610 -0
  272. package/assets/video/examples/hf/number-pop-in.html +362 -0
  273. package/assets/video/examples/hf/number-wheel.html +378 -0
  274. package/assets/video/examples/hf/nyc-paris-flight.html +659 -0
  275. package/assets/video/examples/hf/nyt-graph.html +715 -0
  276. package/assets/video/examples/hf/obsidian.html +258 -0
  277. package/assets/video/examples/hf/offset-path-traveler.html +511 -0
  278. package/assets/video/examples/hf/onboarding-stepper-flow.html +292 -0
  279. package/assets/video/examples/hf/orbit-card.html +2457 -0
  280. package/assets/video/examples/hf/ordered-dither-pass.html +753 -0
  281. package/assets/video/examples/hf/organic-light-leak-overlay.html +336 -0
  282. package/assets/video/examples/hf/oscilloscope-trace.html +718 -0
  283. package/assets/video/examples/hf/outline-draw.html +394 -0
  284. package/assets/video/examples/hf/oversized-cursor.html +851 -0
  285. package/assets/video/examples/hf/overwhelm-surround.html +557 -0
  286. package/assets/video/examples/hf/page-slide.html +377 -0
  287. package/assets/video/examples/hf/pan-stations.html +555 -0
  288. package/assets/video/examples/hf/panel-reveal.html +370 -0
  289. package/assets/video/examples/hf/paper-collage-reveal.html +737 -0
  290. package/assets/video/examples/hf/parallax-device-dive.html +647 -0
  291. package/assets/video/examples/hf/parallax-unzoom.html +499 -0
  292. package/assets/video/examples/hf/parallax-zoom.html +515 -0
  293. package/assets/video/examples/hf/particle-image-reveal.html +595 -0
  294. package/assets/video/examples/hf/particle-text-dissolve.html +615 -0
  295. package/assets/video/examples/hf/path-traced-3d.html +508 -0
  296. package/assets/video/examples/hf/pendulum-swing.html +364 -0
  297. package/assets/video/examples/hf/per-word-crossfade.html +398 -0
  298. package/assets/video/examples/hf/per-word-rise.html +556 -0
  299. package/assets/video/examples/hf/perspective-marquee.html +366 -0
  300. package/assets/video/examples/hf/physical-exit.html +459 -0
  301. package/assets/video/examples/hf/plasma.html +258 -0
  302. package/assets/video/examples/hf/plastic.html +258 -0
  303. package/assets/video/examples/hf/play-mode.html +1035 -0
  304. package/assets/video/examples/hf/press-ripple.html +675 -0
  305. package/assets/video/examples/hf/prism.html +258 -0
  306. package/assets/video/examples/hf/product-promo.html +1311 -0
  307. package/assets/video/examples/hf/product-turntable.html +4569 -0
  308. package/assets/video/examples/hf/pull-back-reveal.html +546 -0
  309. package/assets/video/examples/hf/pull-to-refresh.html +861 -0
  310. package/assets/video/examples/hf/push-in.html +379 -0
  311. package/assets/video/examples/hf/rack-focus.html +779 -0
  312. package/assets/video/examples/hf/radial-surround.html +653 -0
  313. package/assets/video/examples/hf/reddit-post.html +515 -0
  314. package/assets/video/examples/hf/rgb-glitch-text.html +353 -0
  315. package/assets/video/examples/hf/ridged-burn.html +624 -0
  316. package/assets/video/examples/hf/ripple-waves.html +613 -0
  317. package/assets/video/examples/hf/ripples.html +259 -0
  318. package/assets/video/examples/hf/rubber-band-bumper.html +534 -0
  319. package/assets/video/examples/hf/scan-band.html +415 -0
  320. package/assets/video/examples/hf/scramble-reveal.html +510 -0
  321. package/assets/video/examples/hf/screen-flow-carousel.html +779 -0
  322. package/assets/video/examples/hf/scroll-camera-story.html +988 -0
  323. package/assets/video/examples/hf/scroll-feed.html +602 -0
  324. package/assets/video/examples/hf/sdf-iris.html +613 -0
  325. package/assets/video/examples/hf/segmentation-flood.html +748 -0
  326. package/assets/video/examples/hf/separator.html +620 -0
  327. package/assets/video/examples/hf/settings-toggle-flow.html +286 -0
  328. package/assets/video/examples/hf/share-sheet-carousel.html +591 -0
  329. package/assets/video/examples/hf/shared-axis-y.html +370 -0
  330. package/assets/video/examples/hf/shared-axis-z.html +514 -0
  331. package/assets/video/examples/hf/sheet-spring-up.html +681 -0
  332. package/assets/video/examples/hf/shimmer-sweep.html +301 -0
  333. package/assets/video/examples/hf/signup-flow.html +276 -0
  334. package/assets/video/examples/hf/sine-wave.html +258 -0
  335. package/assets/video/examples/hf/skeleton-reveal.html +373 -0
  336. package/assets/video/examples/hf/slack-notification-ad.html +901 -0
  337. package/assets/video/examples/hf/slit-scan-reveal.html +540 -0
  338. package/assets/video/examples/hf/slot-machine-roll.html +391 -0
  339. package/assets/video/examples/hf/snow.html +499 -0
  340. package/assets/video/examples/hf/social-proof-card.html +534 -0
  341. package/assets/video/examples/hf/soft-blur-in.html +322 -0
  342. package/assets/video/examples/hf/spain-map.html +583 -0
  343. package/assets/video/examples/hf/spiral-galaxy.html +507 -0
  344. package/assets/video/examples/hf/spiral.html +258 -0
  345. package/assets/video/examples/hf/split-flap-board.html +537 -0
  346. package/assets/video/examples/hf/split-tilt-cards.html +775 -0
  347. package/assets/video/examples/hf/spotify-card.html +470 -0
  348. package/assets/video/examples/hf/spotlight-card.html +328 -0
  349. package/assets/video/examples/hf/spring-pop.html +406 -0
  350. package/assets/video/examples/hf/spring-stack-shuffle.html +791 -0
  351. package/assets/video/examples/hf/stagger-cascade.html +465 -0
  352. package/assets/video/examples/hf/stagger-lattice.html +278 -0
  353. package/assets/video/examples/hf/staggered-fade-up.html +368 -0
  354. package/assets/video/examples/hf/star-rating-fill.html +511 -0
  355. package/assets/video/examples/hf/starfield.html +450 -0
  356. package/assets/video/examples/hf/state-chip-rail.html +585 -0
  357. package/assets/video/examples/hf/sticky-mock-swap.html +664 -0
  358. package/assets/video/examples/hf/stitched-text-draw.html +1053 -0
  359. package/assets/video/examples/hf/stop-motion-cadence.html +670 -0
  360. package/assets/video/examples/hf/store-badge-lockup.html +521 -0
  361. package/assets/video/examples/hf/strands.html +258 -0
  362. package/assets/video/examples/hf/streaming-text.html +581 -0
  363. package/assets/video/examples/hf/strikethrough-replace.html +356 -0
  364. package/assets/video/examples/hf/stripes.html +258 -0
  365. package/assets/video/examples/hf/success-check.html +390 -0
  366. package/assets/video/examples/hf/sun-burst.html +258 -0
  367. package/assets/video/examples/hf/svg-line-draw-loader.html +257 -0
  368. package/assets/video/examples/hf/svg-mask-reveal.html +523 -0
  369. package/assets/video/examples/hf/svg-stroke-trace.html +465 -0
  370. package/assets/video/examples/hf/swipe-rail.html +564 -0
  371. package/assets/video/examples/hf/swirl-vortex.html +623 -0
  372. package/assets/video/examples/hf/swirl.html +258 -0
  373. package/assets/video/examples/hf/swiss-grid.html +837 -0
  374. package/assets/video/examples/hf/tabs-slide-indicator.html +424 -0
  375. package/assets/video/examples/hf/telemetry-hud.html +760 -0
  376. package/assets/video/examples/hf/terminal-simulator.html +293 -0
  377. package/assets/video/examples/hf/testimonial-card.html +545 -0
  378. package/assets/video/examples/hf/testimonial-proof-card.html +720 -0
  379. package/assets/video/examples/hf/text-match-cut.html +1345 -0
  380. package/assets/video/examples/hf/text-shimmer.html +394 -0
  381. package/assets/video/examples/hf/text-stagger.html +373 -0
  382. package/assets/video/examples/hf/text-state-swap.html +421 -0
  383. package/assets/video/examples/hf/thermal-distortion.html +624 -0
  384. package/assets/video/examples/hf/thin-film.html +258 -0
  385. package/assets/video/examples/hf/thread-message-stack.html +377 -0
  386. package/assets/video/examples/hf/three-orbiting-cards.html +322 -0
  387. package/assets/video/examples/hf/ticker-takeover.html +534 -0
  388. package/assets/video/examples/hf/tiktok-follow.html +435 -0
  389. package/assets/video/examples/hf/tilt-card.html +406 -0
  390. package/assets/video/examples/hf/titlecard-calm.html +388 -0
  391. package/assets/video/examples/hf/titlecard-lockup.html +546 -0
  392. package/assets/video/examples/hf/toggle-flip.html +601 -0
  393. package/assets/video/examples/hf/top-down-letters.html +326 -0
  394. package/assets/video/examples/hf/torn-paper-rip.html +762 -0
  395. package/assets/video/examples/hf/touch-indicator.html +777 -0
  396. package/assets/video/examples/hf/tracing-beam.html +608 -0
  397. package/assets/video/examples/hf/tracking-in.html +317 -0
  398. package/assets/video/examples/hf/transitions-3d.html +434 -0
  399. package/assets/video/examples/hf/transitions-blur.html +524 -0
  400. package/assets/video/examples/hf/transitions-cover.html +508 -0
  401. package/assets/video/examples/hf/transitions-destruction.html +551 -0
  402. package/assets/video/examples/hf/transitions-dissolve.html +529 -0
  403. package/assets/video/examples/hf/transitions-distortion.html +522 -0
  404. package/assets/video/examples/hf/transitions-grid.html +442 -0
  405. package/assets/video/examples/hf/transitions-light.html +528 -0
  406. package/assets/video/examples/hf/transitions-mechanical.html +560 -0
  407. package/assets/video/examples/hf/transitions-other.html +532 -0
  408. package/assets/video/examples/hf/transitions-push.html +520 -0
  409. package/assets/video/examples/hf/transitions-radial.html +492 -0
  410. package/assets/video/examples/hf/transitions-scale.html +487 -0
  411. package/assets/video/examples/hf/trust-strip.html +445 -0
  412. package/assets/video/examples/hf/typed-prompt.html +619 -0
  413. package/assets/video/examples/hf/typewriter.html +350 -0
  414. package/assets/video/examples/hf/typing-indicator.html +702 -0
  415. package/assets/video/examples/hf/ui-3d-reveal.html +2929 -0
  416. package/assets/video/examples/hf/ui-focus-zoom.html +786 -0
  417. package/assets/video/examples/hf/us-map-bubble.html +669 -0
  418. package/assets/video/examples/hf/us-map-flow.html +621 -0
  419. package/assets/video/examples/hf/us-map-hex.html +733 -0
  420. package/assets/video/examples/hf/us-map.html +591 -0
  421. package/assets/video/examples/hf/variable-font-flex.html +538 -0
  422. package/assets/video/examples/hf/vector-editor-rig.html +977 -0
  423. package/assets/video/examples/hf/vfx-anamorphic-flare.html +572 -0
  424. package/assets/video/examples/hf/vfx-iphone-device.html +1089 -0
  425. package/assets/video/examples/hf/vfx-liquid-background.html +1479 -0
  426. package/assets/video/examples/hf/vfx-liquid-glass.html +2054 -0
  427. package/assets/video/examples/hf/vfx-magnetic.html +660 -0
  428. package/assets/video/examples/hf/vfx-portal.html +1090 -0
  429. package/assets/video/examples/hf/vfx-shatter.html +1382 -0
  430. package/assets/video/examples/hf/vignette.html +385 -0
  431. package/assets/video/examples/hf/voronoi.html +258 -0
  432. package/assets/video/examples/hf/vox-annotate.html +707 -0
  433. package/assets/video/examples/hf/vpn-youtube-spot.html +1118 -0
  434. package/assets/video/examples/hf/water.html +258 -0
  435. package/assets/video/examples/hf/waveform.html +258 -0
  436. package/assets/video/examples/hf/week-in-merges.html +673 -0
  437. package/assets/video/examples/hf/weight-wave.html +531 -0
  438. package/assets/video/examples/hf/whip-pan-cut.html +668 -0
  439. package/assets/video/examples/hf/whip-pan.html +613 -0
  440. package/assets/video/examples/hf/whiteboard-ink.html +763 -0
  441. package/assets/video/examples/hf/wireframe-portal-title.html +3840 -0
  442. package/assets/video/examples/hf/wordmark-tiles.html +559 -0
  443. package/assets/video/examples/hf/world-map.html +623 -0
  444. package/assets/video/examples/hf/worley-noise.html +259 -0
  445. package/assets/video/examples/hf/x-follow-card.html +286 -0
  446. package/assets/video/examples/hf/x-post.html +611 -0
  447. package/assets/video/examples/hf/yt-camera-move.html +308 -0
  448. package/assets/video/examples/hf/yt-circle-pointer.html +301 -0
  449. package/assets/video/examples/hf/yt-comment-card.html +458 -0
  450. package/assets/video/examples/hf/yt-feather-highlight.html +279 -0
  451. package/assets/video/examples/hf/yt-lcd-background.html +446 -0
  452. package/assets/video/examples/hf/yt-logo-intro.html +390 -0
  453. package/assets/video/examples/hf/yt-lower-third.html +414 -0
  454. package/assets/video/examples/hf/yt-prism-title.html +343 -0
  455. package/assets/video/examples/hf/yt-screen-warp.html +257 -0
  456. package/assets/video/examples/hf/yt-vertical-fill.html +367 -0
  457. package/assets/video/examples/kinetic-type.html +137 -0
  458. package/assets/video/examples/motion-blur-streak.html +119 -0
  459. package/assets/video/examples/object-reveal.html +107 -0
  460. package/assets/video/examples/parallax-layers.html +130 -0
  461. package/assets/video/examples/particle-burst.html +157 -0
  462. package/assets/video/examples/pen-draw.html +146 -0
  463. package/assets/video/examples/shape-morph.html +151 -0
  464. package/assets/video/examples/slam-title.html +125 -0
  465. package/assets/video/examples/speed-lines.html +123 -0
  466. package/assets/video/examples/spring-pop.html +129 -0
  467. package/assets/video/examples/streak-wipe.html +78 -0
  468. package/assets/video/examples/three-chrome-knot.html +155 -0
  469. package/assets/video/examples/three-clay.html +138 -0
  470. package/assets/video/examples/three-cube-wave.html +140 -0
  471. package/assets/video/examples/three-extruded-shape.html +148 -0
  472. package/assets/video/examples/type-on.html +128 -0
  473. package/assets/video/motion.js +991 -0
  474. package/assets/video/screen.js +298 -0
  475. package/assets/video/sfx/catalogue.json +2283 -0
  476. package/dist/cli.js +38185 -3485
  477. package/dist/index.js +37910 -3428
  478. package/dist/types/args.d.ts +2 -0
  479. package/dist/types/broken-pipe.d.ts +13 -0
  480. package/dist/types/cloud/service.d.ts +13 -0
  481. package/dist/types/commands/usage.d.ts +2 -0
  482. package/dist/types/commands/video.d.ts +10 -0
  483. package/dist/types/core/error-text.d.ts +26 -0
  484. package/dist/types/core/errors.d.ts +5 -3
  485. package/dist/types/core/image-info.d.ts +1 -1
  486. package/dist/types/core/image.d.ts +3 -5
  487. package/dist/types/core/project.d.ts +8 -7
  488. package/dist/types/core/util.d.ts +1 -2
  489. package/dist/types/cpu-budget.d.ts +43 -0
  490. package/dist/types/credentials.d.ts +0 -10
  491. package/dist/types/editor/http-types.d.ts +1 -0
  492. package/dist/types/i18n.d.ts +11 -0
  493. package/dist/types/images/batch-jobs.d.ts +2 -0
  494. package/dist/types/images/batch-run.d.ts +2 -1
  495. package/dist/types/images/jobs.d.ts +7 -0
  496. package/dist/types/images/pending.d.ts +40 -0
  497. package/dist/types/images/retry.d.ts +4 -1
  498. package/dist/types/images/run.d.ts +9 -1
  499. package/dist/types/main.d.ts +4 -1
  500. package/dist/types/node-runtime.d.ts +6 -1
  501. package/dist/types/profile.d.ts +2 -0
  502. package/dist/types/providers/api-errors.d.ts +2 -2
  503. package/dist/types/providers/api.d.ts +13 -5
  504. package/dist/types/providers/base.d.ts +2 -0
  505. package/dist/types/providers/cli-generate.d.ts +5 -1
  506. package/dist/types/providers/cli-pending.d.ts +24 -0
  507. package/dist/types/providers/errors.d.ts +7 -2
  508. package/dist/types/providers/ledger.d.ts +10 -6
  509. package/dist/types/providers/popost-async.d.ts +35 -0
  510. package/dist/types/providers/popost-tasks.d.ts +16 -5
  511. package/dist/types/providers/popost-validate.d.ts +0 -1
  512. package/dist/types/providers/popost.d.ts +16 -1
  513. package/dist/types/providers/task.d.ts +43 -0
  514. package/dist/types/render/audit-script.d.ts +2 -1
  515. package/dist/types/render/audit.d.ts +2 -0
  516. package/dist/types/render/browser.d.ts +16 -2
  517. package/dist/types/runtime.d.ts +73 -2
  518. package/dist/types/version.d.ts +1 -1
  519. package/dist/types/video/align/index.d.ts +43 -0
  520. package/dist/types/video/capture/director.d.ts +70 -0
  521. package/dist/types/video/capture/index.d.ts +141 -0
  522. package/dist/types/video/capture/stage.d.ts +99 -0
  523. package/dist/types/video/capture/steps.d.ts +138 -0
  524. package/dist/types/video/commands/cast.d.ts +3 -0
  525. package/dist/types/video/commands/clips.d.ts +2 -0
  526. package/dist/types/video/commands/compare-scope.d.ts +7 -0
  527. package/dist/types/video/commands/credits.d.ts +19 -0
  528. package/dist/types/video/commands/elements.d.ts +22 -0
  529. package/dist/types/video/commands/eval.d.ts +2 -0
  530. package/dist/types/video/commands/example.d.ts +1 -0
  531. package/dist/types/video/commands/generate.d.ts +14 -0
  532. package/dist/types/video/commands/loop-shared.d.ts +12 -0
  533. package/dist/types/video/commands/loop.d.ts +4 -0
  534. package/dist/types/video/commands/make.d.ts +9 -0
  535. package/dist/types/video/commands/materials.d.ts +1 -0
  536. package/dist/types/video/commands/measure.d.ts +2 -0
  537. package/dist/types/video/commands/media.d.ts +2 -0
  538. package/dist/types/video/commands/music-plan.d.ts +1 -0
  539. package/dist/types/video/commands/music.d.ts +2 -0
  540. package/dist/types/video/commands/read.d.ts +19 -0
  541. package/dist/types/video/commands/replication.d.ts +2 -0
  542. package/dist/types/video/commands/sfx-extract.d.ts +2 -0
  543. package/dist/types/video/commands/sfx-place.d.ts +3 -0
  544. package/dist/types/video/commands/sfx.d.ts +2 -0
  545. package/dist/types/video/commands/shared.d.ts +39 -0
  546. package/dist/types/video/commands/source.d.ts +2 -0
  547. package/dist/types/video/commands/speech-check.d.ts +1 -0
  548. package/dist/types/video/commands/speech-kind.d.ts +6 -0
  549. package/dist/types/video/commands/template.d.ts +10 -0
  550. package/dist/types/video/commands/voice-profile.d.ts +2 -0
  551. package/dist/types/video/commands/voice-sample.d.ts +1 -0
  552. package/dist/types/video/compile/footage.d.ts +36 -0
  553. package/dist/types/video/compile/index.d.ts +30 -0
  554. package/dist/types/video/compile/page-bundle.d.ts +1 -0
  555. package/dist/types/video/compile/page.d.ts +10 -0
  556. package/dist/types/video/compile/words.d.ts +9 -0
  557. package/dist/types/video/describe/aim.d.ts +20 -0
  558. package/dist/types/video/describe/beats.d.ts +53 -0
  559. package/dist/types/video/describe/curves.d.ts +27 -0
  560. package/dist/types/video/describe/frames.d.ts +62 -0
  561. package/dist/types/video/describe/index.d.ts +34 -0
  562. package/dist/types/video/describe/inset.d.ts +83 -0
  563. package/dist/types/video/describe/kind.d.ts +29 -0
  564. package/dist/types/video/describe/known.d.ts +31 -0
  565. package/dist/types/video/describe/movement.d.ts +17 -0
  566. package/dist/types/video/describe/parts.d.ts +50 -0
  567. package/dist/types/video/describe/paths.d.ts +21 -0
  568. package/dist/types/video/describe/speech-kind.d.ts +144 -0
  569. package/dist/types/video/describe/unrecovered.d.ts +29 -0
  570. package/dist/types/video/draft/build.d.ts +34 -0
  571. package/dist/types/video/draft/export.d.ts +19 -0
  572. package/dist/types/video/draft/lifecycle.d.ts +9 -0
  573. package/dist/types/video/draft/native.d.ts +27 -0
  574. package/dist/types/video/draft/schema.d.ts +316 -0
  575. package/dist/types/video/draft/targets.d.ts +19 -0
  576. package/dist/types/video/elements/caption-reading.d.ts +9 -0
  577. package/dist/types/video/elements/caption-roles.d.ts +6 -0
  578. package/dist/types/video/elements/carry.d.ts +45 -0
  579. package/dist/types/video/elements/check.d.ts +14 -0
  580. package/dist/types/video/elements/findings.d.ts +49 -0
  581. package/dist/types/video/elements/main.d.ts +54 -0
  582. package/dist/types/video/elements/picture.d.ts +31 -0
  583. package/dist/types/video/elements/questions.d.ts +35 -0
  584. package/dist/types/video/elements/read.d.ts +14 -0
  585. package/dist/types/video/elements/status.d.ts +23 -0
  586. package/dist/types/video/elements/types.d.ts +120 -0
  587. package/dist/types/video/eval/contrast.d.ts +136 -0
  588. package/dist/types/video/eval/dataset.d.ts +21 -0
  589. package/dist/types/video/eval/floor.d.ts +27 -0
  590. package/dist/types/video/eval/ledger.d.ts +27 -0
  591. package/dist/types/video/eval/legibility.d.ts +33 -0
  592. package/dist/types/video/eval/readback-frames.d.ts +41 -0
  593. package/dist/types/video/eval/readback-run.d.ts +54 -0
  594. package/dist/types/video/eval/readback.d.ts +48 -0
  595. package/dist/types/video/eval/roundtrip.d.ts +71 -0
  596. package/dist/types/video/generate/approved.d.ts +74 -0
  597. package/dist/types/video/generate/cast.d.ts +56 -0
  598. package/dist/types/video/generate/character.d.ts +14 -0
  599. package/dist/types/video/generate/clip-sound.d.ts +63 -0
  600. package/dist/types/video/generate/cloud-image.d.ts +12 -0
  601. package/dist/types/video/generate/cloud.d.ts +67 -0
  602. package/dist/types/video/generate/dialogue.d.ts +116 -0
  603. package/dist/types/video/generate/index.d.ts +265 -0
  604. package/dist/types/video/generate/provenance.d.ts +11 -0
  605. package/dist/types/video/generate/speech-lock.d.ts +4 -0
  606. package/dist/types/video/generate/speech.d.ts +20 -0
  607. package/dist/types/video/host.d.ts +42 -0
  608. package/dist/types/video/hosted-api.d.ts +161 -0
  609. package/dist/types/video/look/index.d.ts +67 -0
  610. package/dist/types/video/look/like.d.ts +18 -0
  611. package/dist/types/video/look/sheets.d.ts +58 -0
  612. package/dist/types/video/measure/align.d.ts +33 -0
  613. package/dist/types/video/measure/amount.d.ts +52 -0
  614. package/dist/types/video/measure/bars.d.ts +22 -0
  615. package/dist/types/video/measure/boundaries.d.ts +18 -0
  616. package/dist/types/video/measure/cache.d.ts +6 -0
  617. package/dist/types/video/measure/camera.d.ts +21 -0
  618. package/dist/types/video/measure/colour.d.ts +12 -0
  619. package/dist/types/video/measure/curve.d.ts +29 -0
  620. package/dist/types/video/measure/cuts.d.ts +17 -0
  621. package/dist/types/video/measure/easing.d.ts +52 -0
  622. package/dist/types/video/measure/fill.d.ts +20 -0
  623. package/dist/types/video/measure/fits.d.ts +80 -0
  624. package/dist/types/video/measure/gradual.d.ts +23 -0
  625. package/dist/types/video/measure/index.d.ts +28 -0
  626. package/dist/types/video/measure/kinds.d.ts +71 -0
  627. package/dist/types/video/measure/motion.d.ts +26 -0
  628. package/dist/types/video/measure/move.d.ts +90 -0
  629. package/dist/types/video/measure/moves.d.ts +22 -0
  630. package/dist/types/video/measure/orientation.d.ts +11 -0
  631. package/dist/types/video/measure/pixels.d.ts +41 -0
  632. package/dist/types/video/measure/profile.d.ts +53 -0
  633. package/dist/types/video/measure/reveal.d.ts +48 -0
  634. package/dist/types/video/measure/rhythm.d.ts +7 -0
  635. package/dist/types/video/measure/robust.d.ts +18 -0
  636. package/dist/types/video/measure/signals.d.ts +48 -0
  637. package/dist/types/video/measure/signature.d.ts +10 -0
  638. package/dist/types/video/measure/span.d.ts +28 -0
  639. package/dist/types/video/measure/still-shots.d.ts +40 -0
  640. package/dist/types/video/measure/switch.d.ts +101 -0
  641. package/dist/types/video/measure/tracks.d.ts +20 -0
  642. package/dist/types/video/measure/unmix.d.ts +20 -0
  643. package/dist/types/video/media/decode.d.ts +59 -0
  644. package/dist/types/video/media/ffmpeg.d.ts +48 -0
  645. package/dist/types/video/media/footage.d.ts +53 -0
  646. package/dist/types/video/media/screenshot.d.ts +26 -0
  647. package/dist/types/video/media/selection.d.ts +4 -0
  648. package/dist/types/video/media/wav.d.ts +26 -0
  649. package/dist/types/video/music/hosted.d.ts +110 -0
  650. package/dist/types/video/music/plan.d.ts +103 -0
  651. package/dist/types/video/music/provenance.d.ts +86 -0
  652. package/dist/types/video/page/apply.d.ts +9 -0
  653. package/dist/types/video/page/contract.d.ts +150 -0
  654. package/dist/types/video/page/css.d.ts +9 -0
  655. package/dist/types/video/page/dom.d.ts +51 -0
  656. package/dist/types/video/page/fit.d.ts +13 -0
  657. package/dist/types/video/page/layout.d.ts +8 -0
  658. package/dist/types/video/page/main.d.ts +1 -0
  659. package/dist/types/video/page/scene.d.ts +38 -0
  660. package/dist/types/video/page/texts.d.ts +10 -0
  661. package/dist/types/video/page/words.d.ts +39 -0
  662. package/dist/types/video/paid-download.d.ts +19 -0
  663. package/dist/types/video/plan/ask.d.ts +77 -0
  664. package/dist/types/video/plan/generated.d.ts +29 -0
  665. package/dist/types/video/plan/index.d.ts +6 -0
  666. package/dist/types/video/plan/materials.d.ts +22 -0
  667. package/dist/types/video/plan/model.d.ts +59 -0
  668. package/dist/types/video/plan/prompt.d.ts +41 -0
  669. package/dist/types/video/plan/see.d.ts +35 -0
  670. package/dist/types/video/presets/camera.d.ts +27 -0
  671. package/dist/types/video/presets/easing.d.ts +11 -0
  672. package/dist/types/video/presets/fill.d.ts +16 -0
  673. package/dist/types/video/presets/loop.d.ts +20 -0
  674. package/dist/types/video/presets/motion.d.ts +47 -0
  675. package/dist/types/video/presets/spoken.d.ts +35 -0
  676. package/dist/types/video/presets/text-styles.d.ts +44 -0
  677. package/dist/types/video/presets/transition.d.ts +66 -0
  678. package/dist/types/video/preview/cloud.d.ts +13 -0
  679. package/dist/types/video/preview/edit/check.d.ts +15 -0
  680. package/dist/types/video/preview/edit/editor.d.ts +52 -0
  681. package/dist/types/video/preview/edit/ops.d.ts +52 -0
  682. package/dist/types/video/preview/edit/render.d.ts +11 -0
  683. package/dist/types/video/preview/edit/retime.d.ts +2 -0
  684. package/dist/types/video/preview/edit/routes.d.ts +1106 -0
  685. package/dist/types/video/preview/export-settings.d.ts +25 -0
  686. package/dist/types/video/preview/files.d.ts +25 -0
  687. package/dist/types/video/preview/html.d.ts +9 -0
  688. package/dist/types/video/preview/index.d.ts +20 -0
  689. package/dist/types/video/preview/project.d.ts +48 -0
  690. package/dist/types/video/preview/protocol.d.ts +91 -0
  691. package/dist/types/video/preview/server.d.ts +21 -0
  692. package/dist/types/video/preview/shell/app.d.ts +81 -0
  693. package/dist/types/video/preview/shell/dom.d.ts +40 -0
  694. package/dist/types/video/preview/shell/edit/controller.d.ts +32 -0
  695. package/dist/types/video/preview/shell/edit/fields.d.ts +49 -0
  696. package/dist/types/video/preview/shell/edit/form-parts.d.ts +17 -0
  697. package/dist/types/video/preview/shell/edit/form.d.ts +17 -0
  698. package/dist/types/video/preview/shell/edit/inline.d.ts +4 -0
  699. package/dist/types/video/preview/shell/edit/lanes-edit.d.ts +31 -0
  700. package/dist/types/video/preview/shell/edit/layer-order.d.ts +4 -0
  701. package/dist/types/video/preview/shell/edit/remove.d.ts +4 -0
  702. package/dist/types/video/preview/shell/edit/reveal.d.ts +4 -0
  703. package/dist/types/video/preview/shell/edit/scenes.d.ts +7 -0
  704. package/dist/types/video/preview/shell/edit/schema.d.ts +30 -0
  705. package/dist/types/video/preview/shell/edit/source.d.ts +83 -0
  706. package/dist/types/video/preview/shell/edit/split.d.ts +8 -0
  707. package/dist/types/video/preview/shell/edit/stage-edit.d.ts +21 -0
  708. package/dist/types/video/preview/shell/edit/text-fit.d.ts +4 -0
  709. package/dist/types/video/preview/shell/edit/toolbar.d.ts +14 -0
  710. package/dist/types/video/preview/shell/footage.d.ts +6 -0
  711. package/dist/types/video/preview/shell/i18n.d.ts +176 -0
  712. package/dist/types/video/preview/shell/lanes.d.ts +2 -0
  713. package/dist/types/video/preview/shell/main.d.ts +1 -0
  714. package/dist/types/video/preview/shell/model.d.ts +85 -0
  715. package/dist/types/video/preview/shell/panel.d.ts +3 -0
  716. package/dist/types/video/preview/shell/readonly.d.ts +1 -0
  717. package/dist/types/video/preview/shell/stage.d.ts +7 -0
  718. package/dist/types/video/preview/shell/studio/audio.d.ts +3 -0
  719. package/dist/types/video/preview/shell/studio/cloud.d.ts +3 -0
  720. package/dist/types/video/preview/shell/studio/code.d.ts +6 -0
  721. package/dist/types/video/preview/shell/studio/copy.d.ts +159 -0
  722. package/dist/types/video/preview/shell/studio/draft-result.d.ts +3 -0
  723. package/dist/types/video/preview/shell/studio/export.d.ts +3 -0
  724. package/dist/types/video/preview/shell/studio/scene-selection.d.ts +19 -0
  725. package/dist/types/video/preview/shell/studio/sidebar.d.ts +27 -0
  726. package/dist/types/video/preview/shell/studio/style.d.ts +2 -0
  727. package/dist/types/video/preview/shell/studio/timeline.d.ts +3 -0
  728. package/dist/types/video/preview/shell/studio/ui.d.ts +16 -0
  729. package/dist/types/video/preview/shell/studio/workspace.d.ts +11 -0
  730. package/dist/types/video/preview/shell/style.d.ts +5 -0
  731. package/dist/types/video/preview/shell/transport.d.ts +6 -0
  732. package/dist/types/video/preview/shell-bundle.d.ts +1 -0
  733. package/dist/types/video/preview/studio-actions.d.ts +4 -0
  734. package/dist/types/video/preview/studio-data.d.ts +32 -0
  735. package/dist/types/video/preview/thumbnails.d.ts +5 -0
  736. package/dist/types/video/preview/watch.d.ts +23 -0
  737. package/dist/types/video/progress.d.ts +28 -0
  738. package/dist/types/video/project/check-camera.d.ts +8 -0
  739. package/dist/types/video/project/check-caption.d.ts +8 -0
  740. package/dist/types/video/project/check-common.d.ts +25 -0
  741. package/dist/types/video/project/check-footage.d.ts +22 -0
  742. package/dist/types/video/project/check-look.d.ts +19 -0
  743. package/dist/types/video/project/check-sound.d.ts +54 -0
  744. package/dist/types/video/project/check-span.d.ts +11 -0
  745. package/dist/types/video/project/check-tracks.d.ts +8 -0
  746. package/dist/types/video/project/check-transition.d.ts +11 -0
  747. package/dist/types/video/project/check-words.d.ts +32 -0
  748. package/dist/types/video/project/check.d.ts +42 -0
  749. package/dist/types/video/project/issues.d.ts +43 -0
  750. package/dist/types/video/project/schema.d.ts +2074 -0
  751. package/dist/types/video/project/suggest.d.ts +4 -0
  752. package/dist/types/video/project/words.d.ts +6 -0
  753. package/dist/types/video/render/browser-step.d.ts +5 -0
  754. package/dist/types/video/render/encode.d.ts +49 -0
  755. package/dist/types/video/render/index.d.ts +90 -0
  756. package/dist/types/video/render/layout.d.ts +26 -0
  757. package/dist/types/video/render/record.d.ts +80 -0
  758. package/dist/types/video/render/session.d.ts +64 -0
  759. package/dist/types/video/render/verify.d.ts +16 -0
  760. package/dist/types/video/replication/audio-provenance.d.ts +36 -0
  761. package/dist/types/video/replication/browser.d.ts +1 -0
  762. package/dist/types/video/replication/check.d.ts +19 -0
  763. package/dist/types/video/replication/contract.d.ts +683 -0
  764. package/dist/types/video/replication/io.d.ts +22 -0
  765. package/dist/types/video/replication/motion-bundle.d.ts +1 -0
  766. package/dist/types/video/replication/motion.d.ts +109 -0
  767. package/dist/types/video/replication/pairs.d.ts +69 -0
  768. package/dist/types/video/replication/prefill.d.ts +34 -0
  769. package/dist/types/video/replication/production.d.ts +163 -0
  770. package/dist/types/video/replication/revision.d.ts +2 -0
  771. package/dist/types/video/replication/schema.d.ts +56 -0
  772. package/dist/types/video/replication/source-clock.d.ts +24 -0
  773. package/dist/types/video/replication/speech-observed.d.ts +121 -0
  774. package/dist/types/video/replication/voice-spans.d.ts +3 -0
  775. package/dist/types/video/retarget/caption-look.d.ts +14 -0
  776. package/dist/types/video/retarget/fps.d.ts +7 -0
  777. package/dist/types/video/retarget/index.d.ts +248 -0
  778. package/dist/types/video/retarget/items.d.ts +44 -0
  779. package/dist/types/video/retarget/marks.d.ts +12 -0
  780. package/dist/types/video/retarget/pace.d.ts +36 -0
  781. package/dist/types/video/retarget/speak.d.ts +41 -0
  782. package/dist/types/video/retarget/tempo.d.ts +40 -0
  783. package/dist/types/video/retarget/titles.d.ts +76 -0
  784. package/dist/types/video/retarget/words.d.ts +39 -0
  785. package/dist/types/video/scene/author.d.ts +74 -0
  786. package/dist/types/video/scene/check.d.ts +64 -0
  787. package/dist/types/video/scene/copied.d.ts +30 -0
  788. package/dist/types/video/scene/cues.d.ts +40 -0
  789. package/dist/types/video/scene/examples.d.ts +129 -0
  790. package/dist/types/video/scene/findings.d.ts +71 -0
  791. package/dist/types/video/scene/fonts.d.ts +19 -0
  792. package/dist/types/video/scene/items.d.ts +23 -0
  793. package/dist/types/video/scene/library.d.ts +41 -0
  794. package/dist/types/video/scene/lint.d.ts +15 -0
  795. package/dist/types/video/scene/numbers.d.ts +39 -0
  796. package/dist/types/video/scene/pictures.d.ts +12 -0
  797. package/dist/types/video/scene/write.d.ts +41 -0
  798. package/dist/types/video/score/index.d.ts +13 -0
  799. package/dist/types/video/score/pair.d.ts +43 -0
  800. package/dist/types/video/score/picture.d.ts +14 -0
  801. package/dist/types/video/score/project-windows.d.ts +9 -0
  802. package/dist/types/video/score/shot-transition.d.ts +62 -0
  803. package/dist/types/video/score/shots.d.ts +101 -0
  804. package/dist/types/video/score/time.d.ts +22 -0
  805. package/dist/types/video/score/tracks.d.ts +42 -0
  806. package/dist/types/video/score/weights.d.ts +19 -0
  807. package/dist/types/video/sfx/cache.d.ts +16 -0
  808. package/dist/types/video/sfx/catalogue.d.ts +64 -0
  809. package/dist/types/video/sfx/extract.d.ts +65 -0
  810. package/dist/types/video/sfx/levels.d.ts +39 -0
  811. package/dist/types/video/sfx/library.d.ts +26 -0
  812. package/dist/types/video/sfx/place.d.ts +82 -0
  813. package/dist/types/video/sfx/project.d.ts +36 -0
  814. package/dist/types/video/sound/analysis.d.ts +46 -0
  815. package/dist/types/video/sound/breaks.d.ts +84 -0
  816. package/dist/types/video/sound/measure.d.ts +106 -0
  817. package/dist/types/video/sound/modes.d.ts +75 -0
  818. package/dist/types/video/sound/pcm.d.ts +21 -0
  819. package/dist/types/video/sound/reading.d.ts +124 -0
  820. package/dist/types/video/sound/speech-check.d.ts +76 -0
  821. package/dist/types/video/source/collect.d.ts +64 -0
  822. package/dist/types/video/source/read.d.ts +57 -0
  823. package/dist/types/video/source/used.d.ts +4 -0
  824. package/dist/types/video/speech/hosted.d.ts +36 -0
  825. package/dist/types/video/speech/index.d.ts +83 -0
  826. package/dist/types/video/speech/types.d.ts +41 -0
  827. package/dist/types/video/submit-retry.d.ts +15 -0
  828. package/dist/types/video/synth/generate.d.ts +53 -0
  829. package/dist/types/video/synth/truth.d.ts +8 -0
  830. package/dist/types/video/synth/write.d.ts +13 -0
  831. package/dist/types/video/template/capacity.d.ts +37 -0
  832. package/dist/types/video/template/card-elements.d.ts +17 -0
  833. package/dist/types/video/template/card.d.ts +22 -0
  834. package/dist/types/video/template/check-captions.d.ts +11 -0
  835. package/dist/types/video/template/check.d.ts +40 -0
  836. package/dist/types/video/template/facts.d.ts +90 -0
  837. package/dist/types/video/template/fill.d.ts +51 -0
  838. package/dist/types/video/template/fingerprint.d.ts +2 -0
  839. package/dist/types/video/template/fit.d.ts +60 -0
  840. package/dist/types/video/template/index.d.ts +8 -0
  841. package/dist/types/video/template/project.d.ts +21 -0
  842. package/dist/types/video/template/save.d.ts +52 -0
  843. package/dist/types/video/template/slots.d.ts +26 -0
  844. package/dist/types/video/template/speech-rules.d.ts +61 -0
  845. package/dist/types/video/template/split.d.ts +10 -0
  846. package/dist/types/video/template/structure.d.ts +81 -0
  847. package/dist/types/video/template/swap.d.ts +33 -0
  848. package/dist/types/video/template/types.d.ts +387 -0
  849. package/dist/types/video/text/bar.d.ts +63 -0
  850. package/dist/types/video/text/change.d.ts +19 -0
  851. package/dist/types/video/text/core.d.ts +25 -0
  852. package/dist/types/video/text/cues.d.ts +26 -0
  853. package/dist/types/video/text/fold.d.ts +9 -0
  854. package/dist/types/video/text/frame.d.ts +41 -0
  855. package/dist/types/video/text/highlight.d.ts +19 -0
  856. package/dist/types/video/text/index.d.ts +67 -0
  857. package/dist/types/video/text/letters.d.ts +85 -0
  858. package/dist/types/video/text/look.d.ts +53 -0
  859. package/dist/types/video/text/reader-command.d.ts +26 -0
  860. package/dist/types/video/text/reveal.d.ts +37 -0
  861. package/dist/types/video/text/rings.d.ts +39 -0
  862. package/dist/types/video/text/shadow.d.ts +44 -0
  863. package/dist/types/video/text/share.d.ts +2 -0
  864. package/dist/types/video/text/speech.d.ts +15 -0
  865. package/dist/types/video/text/strokes.d.ts +30 -0
  866. package/dist/types/video/text/types.d.ts +147 -0
  867. package/dist/types/video/timeline/cue-words.d.ts +27 -0
  868. package/dist/types/video/timeline/footage.d.ts +25 -0
  869. package/dist/types/video/timeline/frame.d.ts +55 -0
  870. package/dist/types/video/timeline/items.d.ts +28 -0
  871. package/dist/types/video/timeline/mix.d.ts +67 -0
  872. package/dist/types/video/timeline/resolve.d.ts +20 -0
  873. package/dist/types/video/timeline/spans.d.ts +32 -0
  874. package/dist/types/video/timeline/words.d.ts +64 -0
  875. package/dist/types/video/tool.d.ts +29 -0
  876. package/dist/types/video/types.d.ts +1057 -0
  877. package/dist/types/video/voice/create.d.ts +43 -0
  878. package/dist/types/video/voice/hosted.d.ts +36 -0
  879. package/dist/types/video/voice/index.d.ts +61 -0
  880. package/dist/types/video/voice/pace.d.ts +37 -0
  881. package/dist/types/video/voice/profile.d.ts +26 -0
  882. package/dist/types/video/voice/sample.d.ts +46 -0
  883. package/dist/types/video/wallet.d.ts +38 -0
  884. package/dist/types/video/work.d.ts +10 -0
  885. package/dist/types/workflow/build.d.ts +1 -1
  886. package/dist/types/workflow/errors.d.ts +1 -1
  887. package/dist/types/workflow/io.d.ts +1 -1
  888. package/dist/types/workflow/post-bundle.d.ts +8 -3
  889. package/dist/types/workflow/series-plan.d.ts +5 -2
  890. package/dist/types/workflow/template-plugins.d.ts +0 -8
  891. package/package.json +13 -4
  892. package/references/image-workflow.md +111 -0
  893. package/references/onboarding.md +50 -19
  894. package/references/post-bundle.md +2 -2
  895. package/references/providers.md +6 -3
  896. package/references/video-draft-export.md +13 -0
  897. package/references/video-editing.md +43 -0
  898. package/references/video-effects.md +605 -0
  899. package/references/video-elements.md +199 -0
  900. package/references/video-examples/showcase/assets/pattern.svg +18 -0
  901. package/references/video-examples/showcase/assets/voice.sbg +4 -0
  902. package/references/video-examples/showcase/assets/voice.words.json +68 -0
  903. package/references/video-examples/showcase/video.json +550 -0
  904. package/references/video-examples/template-demo/TEMPLATE.md +30 -0
  905. package/references/video-examples/template-demo/fill.json +29 -0
  906. package/references/video-examples/template-demo/slots.json +210 -0
  907. package/references/video-examples/template-demo/template.json +105 -0
  908. package/references/video-motion.md +315 -0
  909. package/references/video-native-observation.md +37 -0
  910. package/references/video-performers.md +86 -0
  911. package/references/video-project.md +63 -0
  912. package/references/video-replication.md +276 -0
  913. package/references/video-scenes.md +366 -0
  914. package/references/video-sfx.md +109 -0
  915. package/references/video-sound.md +207 -0
  916. package/references/video-templates.md +177 -0
  917. package/references/video-tools.md +560 -0
  918. package/references/video.md +756 -0
  919. package/templates/community/README.md +274 -1
  920. package/templates/community/index.json +3829 -0
  921. package/templates/community/instagram-age-expectations/README.md +14 -0
  922. package/templates/community/instagram-age-expectations/SKILL.md +52 -0
  923. package/templates/community/instagram-age-expectations/source.json +9 -0
  924. package/templates/community/instagram-age-expectations/template.json +53 -0
  925. package/templates/community/instagram-artwork-detail/README.md +19 -0
  926. package/templates/community/instagram-artwork-detail/SKILL.md +53 -0
  927. package/templates/community/instagram-artwork-detail/source.json +9 -0
  928. package/templates/community/instagram-artwork-detail/template.json +61 -0
  929. package/templates/community/instagram-balanced-traits/README.md +12 -0
  930. package/templates/community/instagram-balanced-traits/SKILL.md +52 -0
  931. package/templates/community/instagram-balanced-traits/source.json +9 -0
  932. package/templates/community/instagram-balanced-traits/template.json +53 -0
  933. package/templates/community/instagram-behind-the-scenes/README.md +12 -0
  934. package/templates/community/instagram-behind-the-scenes/SKILL.md +53 -0
  935. package/templates/community/instagram-behind-the-scenes/source.json +9 -0
  936. package/templates/community/instagram-behind-the-scenes/template.json +52 -0
  937. package/templates/community/instagram-brand-personification/README.md +26 -0
  938. package/templates/community/instagram-brand-personification/SKILL.md +53 -0
  939. package/templates/community/instagram-brand-personification/source.json +9 -0
  940. package/templates/community/instagram-brand-personification/template.json +66 -0
  941. package/templates/community/instagram-brand-system/README.md +17 -0
  942. package/templates/community/instagram-brand-system/SKILL.md +53 -0
  943. package/templates/community/instagram-brand-system/source.json +9 -0
  944. package/templates/community/instagram-brand-system/template.json +60 -0
  945. package/templates/community/instagram-calendar-cheat-sheet/README.md +8 -0
  946. package/templates/community/instagram-calendar-cheat-sheet/SKILL.md +53 -0
  947. package/templates/community/instagram-calendar-cheat-sheet/source.json +9 -0
  948. package/templates/community/instagram-calendar-cheat-sheet/template.json +47 -0
  949. package/templates/community/instagram-capacity-planning/README.md +12 -0
  950. package/templates/community/instagram-capacity-planning/SKILL.md +53 -0
  951. package/templates/community/instagram-capacity-planning/source.json +9 -0
  952. package/templates/community/instagram-capacity-planning/template.json +55 -0
  953. package/templates/community/instagram-category-use-guide/README.md +14 -0
  954. package/templates/community/instagram-category-use-guide/SKILL.md +53 -0
  955. package/templates/community/instagram-category-use-guide/source.json +9 -0
  956. package/templates/community/instagram-category-use-guide/template.json +55 -0
  957. package/templates/community/instagram-character-led-tour/README.md +17 -0
  958. package/templates/community/instagram-character-led-tour/SKILL.md +53 -0
  959. package/templates/community/instagram-character-led-tour/source.json +9 -0
  960. package/templates/community/instagram-character-led-tour/template.json +56 -0
  961. package/templates/community/instagram-comic-dialogue/README.md +16 -0
  962. package/templates/community/instagram-comic-dialogue/SKILL.md +53 -0
  963. package/templates/community/instagram-comic-dialogue/source.json +9 -0
  964. package/templates/community/instagram-comic-dialogue/template.json +59 -0
  965. package/templates/community/instagram-command-shortcuts/README.md +13 -0
  966. package/templates/community/instagram-command-shortcuts/SKILL.md +53 -0
  967. package/templates/community/instagram-command-shortcuts/source.json +9 -0
  968. package/templates/community/instagram-command-shortcuts/template.json +52 -0
  969. package/templates/community/instagram-context-changes-meaning/README.md +11 -0
  970. package/templates/community/instagram-context-changes-meaning/SKILL.md +53 -0
  971. package/templates/community/instagram-context-changes-meaning/source.json +9 -0
  972. package/templates/community/instagram-context-changes-meaning/template.json +54 -0
  973. package/templates/community/instagram-continuous-canvas/README.md +16 -0
  974. package/templates/community/instagram-continuous-canvas/SKILL.md +52 -0
  975. package/templates/community/instagram-continuous-canvas/source.json +9 -0
  976. package/templates/community/instagram-continuous-canvas/template.json +59 -0
  977. package/templates/community/instagram-conversation-questions/README.md +12 -0
  978. package/templates/community/instagram-conversation-questions/SKILL.md +52 -0
  979. package/templates/community/instagram-conversation-questions/source.json +9 -0
  980. package/templates/community/instagram-conversation-questions/template.json +51 -0
  981. package/templates/community/instagram-copy-alternatives/README.md +11 -0
  982. package/templates/community/instagram-copy-alternatives/SKILL.md +53 -0
  983. package/templates/community/instagram-copy-alternatives/source.json +9 -0
  984. package/templates/community/instagram-copy-alternatives/template.json +50 -0
  985. package/templates/community/instagram-copyable-notes/README.md +13 -0
  986. package/templates/community/instagram-copyable-notes/SKILL.md +52 -0
  987. package/templates/community/instagram-copyable-notes/source.json +9 -0
  988. package/templates/community/instagram-copyable-notes/template.json +51 -0
  989. package/templates/community/instagram-curated-resources/README.md +13 -0
  990. package/templates/community/instagram-curated-resources/SKILL.md +52 -0
  991. package/templates/community/instagram-curated-resources/source.json +9 -0
  992. package/templates/community/instagram-curated-resources/template.json +54 -0
  993. package/templates/community/instagram-destination-costs/README.md +17 -0
  994. package/templates/community/instagram-destination-costs/SKILL.md +52 -0
  995. package/templates/community/instagram-destination-costs/source.json +9 -0
  996. package/templates/community/instagram-destination-costs/template.json +56 -0
  997. package/templates/community/instagram-diagram-reference/README.md +10 -0
  998. package/templates/community/instagram-diagram-reference/SKILL.md +53 -0
  999. package/templates/community/instagram-diagram-reference/source.json +9 -0
  1000. package/templates/community/instagram-diagram-reference/template.json +52 -0
  1001. package/templates/community/instagram-different-perspectives/README.md +15 -0
  1002. package/templates/community/instagram-different-perspectives/SKILL.md +53 -0
  1003. package/templates/community/instagram-different-perspectives/source.json +9 -0
  1004. package/templates/community/instagram-different-perspectives/template.json +55 -0
  1005. package/templates/community/instagram-document-reveal/README.md +8 -0
  1006. package/templates/community/instagram-document-reveal/SKILL.md +53 -0
  1007. package/templates/community/instagram-document-reveal/source.json +9 -0
  1008. package/templates/community/instagram-document-reveal/template.json +46 -0
  1009. package/templates/community/instagram-effect-breakdown/README.md +14 -0
  1010. package/templates/community/instagram-effect-breakdown/SKILL.md +53 -0
  1011. package/templates/community/instagram-effect-breakdown/source.json +9 -0
  1012. package/templates/community/instagram-effect-breakdown/template.json +55 -0
  1013. package/templates/community/instagram-effort-and-outcome/README.md +13 -0
  1014. package/templates/community/instagram-effort-and-outcome/SKILL.md +52 -0
  1015. package/templates/community/instagram-effort-and-outcome/source.json +9 -0
  1016. package/templates/community/instagram-effort-and-outcome/template.json +54 -0
  1017. package/templates/community/instagram-emotion-and-meaning/README.md +16 -0
  1018. package/templates/community/instagram-emotion-and-meaning/SKILL.md +52 -0
  1019. package/templates/community/instagram-emotion-and-meaning/source.json +9 -0
  1020. package/templates/community/instagram-emotion-and-meaning/template.json +56 -0
  1021. package/templates/community/instagram-everyday-interface-story/README.md +12 -0
  1022. package/templates/community/instagram-everyday-interface-story/SKILL.md +53 -0
  1023. package/templates/community/instagram-everyday-interface-story/source.json +9 -0
  1024. package/templates/community/instagram-everyday-interface-story/template.json +51 -0
  1025. package/templates/community/instagram-everyday-photo-diary/README.md +16 -0
  1026. package/templates/community/instagram-everyday-photo-diary/SKILL.md +52 -0
  1027. package/templates/community/instagram-everyday-photo-diary/source.json +9 -0
  1028. package/templates/community/instagram-everyday-photo-diary/template.json +61 -0
  1029. package/templates/community/instagram-evidence-to-method/README.md +13 -0
  1030. package/templates/community/instagram-evidence-to-method/SKILL.md +53 -0
  1031. package/templates/community/instagram-evidence-to-method/source.json +9 -0
  1032. package/templates/community/instagram-evidence-to-method/template.json +56 -0
  1033. package/templates/community/instagram-expectation-reality-review/README.md +18 -0
  1034. package/templates/community/instagram-expectation-reality-review/SKILL.md +53 -0
  1035. package/templates/community/instagram-expectation-reality-review/source.json +9 -0
  1036. package/templates/community/instagram-expectation-reality-review/template.json +57 -0
  1037. package/templates/community/instagram-experiment-story/README.md +20 -0
  1038. package/templates/community/instagram-experiment-story/SKILL.md +54 -0
  1039. package/templates/community/instagram-experiment-story/source.json +9 -0
  1040. package/templates/community/instagram-experiment-story/template.json +58 -0
  1041. package/templates/community/instagram-fill-in-speech/README.md +14 -0
  1042. package/templates/community/instagram-fill-in-speech/SKILL.md +53 -0
  1043. package/templates/community/instagram-fill-in-speech/source.json +9 -0
  1044. package/templates/community/instagram-fill-in-speech/template.json +53 -0
  1045. package/templates/community/instagram-fill-in-workbook/README.md +16 -0
  1046. package/templates/community/instagram-fill-in-workbook/SKILL.md +53 -0
  1047. package/templates/community/instagram-fill-in-workbook/source.json +9 -0
  1048. package/templates/community/instagram-fill-in-workbook/template.json +57 -0
  1049. package/templates/community/instagram-font-pairing/README.md +14 -0
  1050. package/templates/community/instagram-font-pairing/SKILL.md +52 -0
  1051. package/templates/community/instagram-font-pairing/source.json +9 -0
  1052. package/templates/community/instagram-font-pairing/template.json +53 -0
  1053. package/templates/community/instagram-goal-benchmarks/README.md +12 -0
  1054. package/templates/community/instagram-goal-benchmarks/SKILL.md +53 -0
  1055. package/templates/community/instagram-goal-benchmarks/source.json +9 -0
  1056. package/templates/community/instagram-goal-benchmarks/template.json +51 -0
  1057. package/templates/community/instagram-identity-match/README.md +19 -0
  1058. package/templates/community/instagram-identity-match/SKILL.md +52 -0
  1059. package/templates/community/instagram-identity-match/source.json +9 -0
  1060. package/templates/community/instagram-identity-match/template.json +64 -0
  1061. package/templates/community/instagram-illustrated-opinion/README.md +16 -0
  1062. package/templates/community/instagram-illustrated-opinion/SKILL.md +52 -0
  1063. package/templates/community/instagram-illustrated-opinion/source.json +9 -0
  1064. package/templates/community/instagram-illustrated-opinion/template.json +56 -0
  1065. package/templates/community/instagram-illustrated-story-explainer/README.md +14 -0
  1066. package/templates/community/instagram-illustrated-story-explainer/SKILL.md +53 -0
  1067. package/templates/community/instagram-illustrated-story-explainer/source.json +9 -0
  1068. package/templates/community/instagram-illustrated-story-explainer/template.json +55 -0
  1069. package/templates/community/instagram-image-to-palette/README.md +17 -0
  1070. package/templates/community/instagram-image-to-palette/SKILL.md +53 -0
  1071. package/templates/community/instagram-image-to-palette/source.json +9 -0
  1072. package/templates/community/instagram-image-to-palette/template.json +58 -0
  1073. package/templates/community/instagram-incremental-assembly/README.md +15 -0
  1074. package/templates/community/instagram-incremental-assembly/SKILL.md +52 -0
  1075. package/templates/community/instagram-incremental-assembly/source.json +9 -0
  1076. package/templates/community/instagram-incremental-assembly/template.json +55 -0
  1077. package/templates/community/instagram-interview-storyboard/README.md +25 -0
  1078. package/templates/community/instagram-interview-storyboard/SKILL.md +53 -0
  1079. package/templates/community/instagram-interview-storyboard/source.json +9 -0
  1080. package/templates/community/instagram-interview-storyboard/template.json +65 -0
  1081. package/templates/community/instagram-launch-news/README.md +9 -0
  1082. package/templates/community/instagram-launch-news/SKILL.md +53 -0
  1083. package/templates/community/instagram-launch-news/source.json +9 -0
  1084. package/templates/community/instagram-launch-news/template.json +55 -0
  1085. package/templates/community/instagram-layout-anatomy/README.md +12 -0
  1086. package/templates/community/instagram-layout-anatomy/SKILL.md +53 -0
  1087. package/templates/community/instagram-layout-anatomy/source.json +9 -0
  1088. package/templates/community/instagram-layout-anatomy/template.json +54 -0
  1089. package/templates/community/instagram-learning-path/README.md +14 -0
  1090. package/templates/community/instagram-learning-path/SKILL.md +53 -0
  1091. package/templates/community/instagram-learning-path/source.json +9 -0
  1092. package/templates/community/instagram-learning-path/template.json +55 -0
  1093. package/templates/community/instagram-local-picks/README.md +16 -0
  1094. package/templates/community/instagram-local-picks/SKILL.md +52 -0
  1095. package/templates/community/instagram-local-picks/source.json +9 -0
  1096. package/templates/community/instagram-local-picks/template.json +55 -0
  1097. package/templates/community/instagram-matched-test/README.md +10 -0
  1098. package/templates/community/instagram-matched-test/SKILL.md +53 -0
  1099. package/templates/community/instagram-matched-test/source.json +9 -0
  1100. package/templates/community/instagram-matched-test/template.json +49 -0
  1101. package/templates/community/instagram-metric-formulas/README.md +15 -0
  1102. package/templates/community/instagram-metric-formulas/SKILL.md +53 -0
  1103. package/templates/community/instagram-metric-formulas/source.json +9 -0
  1104. package/templates/community/instagram-metric-formulas/template.json +55 -0
  1105. package/templates/community/instagram-milestones-and-feelings/README.md +13 -0
  1106. package/templates/community/instagram-milestones-and-feelings/SKILL.md +52 -0
  1107. package/templates/community/instagram-milestones-and-feelings/source.json +9 -0
  1108. package/templates/community/instagram-milestones-and-feelings/template.json +56 -0
  1109. package/templates/community/instagram-mistakes-and-alternatives/README.md +12 -0
  1110. package/templates/community/instagram-mistakes-and-alternatives/SKILL.md +52 -0
  1111. package/templates/community/instagram-mistakes-and-alternatives/source.json +9 -0
  1112. package/templates/community/instagram-mistakes-and-alternatives/template.json +53 -0
  1113. package/templates/community/instagram-myth-and-fact/README.md +12 -0
  1114. package/templates/community/instagram-myth-and-fact/SKILL.md +53 -0
  1115. package/templates/community/instagram-myth-and-fact/source.json +9 -0
  1116. package/templates/community/instagram-myth-and-fact/template.json +51 -0
  1117. package/templates/community/instagram-news-digest/README.md +13 -0
  1118. package/templates/community/instagram-news-digest/SKILL.md +53 -0
  1119. package/templates/community/instagram-news-digest/source.json +9 -0
  1120. package/templates/community/instagram-news-digest/template.json +52 -0
  1121. package/templates/community/instagram-numbers-at-human-scale/README.md +12 -0
  1122. package/templates/community/instagram-numbers-at-human-scale/SKILL.md +53 -0
  1123. package/templates/community/instagram-numbers-at-human-scale/source.json +9 -0
  1124. package/templates/community/instagram-numbers-at-human-scale/template.json +52 -0
  1125. package/templates/community/instagram-object-led-activities/README.md +16 -0
  1126. package/templates/community/instagram-object-led-activities/SKILL.md +53 -0
  1127. package/templates/community/instagram-object-led-activities/source.json +9 -0
  1128. package/templates/community/instagram-object-led-activities/template.json +56 -0
  1129. package/templates/community/instagram-object-name-origins/README.md +11 -0
  1130. package/templates/community/instagram-object-name-origins/SKILL.md +52 -0
  1131. package/templates/community/instagram-object-name-origins/source.json +9 -0
  1132. package/templates/community/instagram-object-name-origins/template.json +52 -0
  1133. package/templates/community/instagram-one-input-many-results/README.md +14 -0
  1134. package/templates/community/instagram-one-input-many-results/SKILL.md +53 -0
  1135. package/templates/community/instagram-one-input-many-results/source.json +9 -0
  1136. package/templates/community/instagram-one-input-many-results/template.json +52 -0
  1137. package/templates/community/instagram-one-variable-comparison/README.md +11 -0
  1138. package/templates/community/instagram-one-variable-comparison/SKILL.md +53 -0
  1139. package/templates/community/instagram-one-variable-comparison/source.json +9 -0
  1140. package/templates/community/instagram-one-variable-comparison/template.json +52 -0
  1141. package/templates/community/instagram-opportunity-guide/README.md +18 -0
  1142. package/templates/community/instagram-opportunity-guide/SKILL.md +53 -0
  1143. package/templates/community/instagram-opportunity-guide/source.json +9 -0
  1144. package/templates/community/instagram-opportunity-guide/template.json +57 -0
  1145. package/templates/community/instagram-palette-application-board/README.md +11 -0
  1146. package/templates/community/instagram-palette-application-board/SKILL.md +52 -0
  1147. package/templates/community/instagram-palette-application-board/source.json +9 -0
  1148. package/templates/community/instagram-palette-application-board/template.json +52 -0
  1149. package/templates/community/instagram-personal-budget-case/README.md +14 -0
  1150. package/templates/community/instagram-personal-budget-case/SKILL.md +53 -0
  1151. package/templates/community/instagram-personal-budget-case/source.json +9 -0
  1152. package/templates/community/instagram-personal-budget-case/template.json +53 -0
  1153. package/templates/community/instagram-personal-experiment/README.md +11 -0
  1154. package/templates/community/instagram-personal-experiment/SKILL.md +53 -0
  1155. package/templates/community/instagram-personal-experiment/source.json +9 -0
  1156. package/templates/community/instagram-personal-experiment/template.json +52 -0
  1157. package/templates/community/instagram-photo-and-technical-sketch/README.md +10 -0
  1158. package/templates/community/instagram-photo-and-technical-sketch/SKILL.md +53 -0
  1159. package/templates/community/instagram-photo-and-technical-sketch/source.json +9 -0
  1160. package/templates/community/instagram-photo-and-technical-sketch/template.json +49 -0
  1161. package/templates/community/instagram-photo-moment-story/README.md +12 -0
  1162. package/templates/community/instagram-photo-moment-story/SKILL.md +53 -0
  1163. package/templates/community/instagram-photo-moment-story/source.json +9 -0
  1164. package/templates/community/instagram-photo-moment-story/template.json +53 -0
  1165. package/templates/community/instagram-product-change/README.md +9 -0
  1166. package/templates/community/instagram-product-change/SKILL.md +53 -0
  1167. package/templates/community/instagram-product-change/source.json +10 -0
  1168. package/templates/community/instagram-product-change/template.json +53 -0
  1169. package/templates/community/instagram-prompt-result-reference/README.md +26 -0
  1170. package/templates/community/instagram-prompt-result-reference/SKILL.md +53 -0
  1171. package/templates/community/instagram-prompt-result-reference/source.json +9 -0
  1172. package/templates/community/instagram-prompt-result-reference/template.json +68 -0
  1173. package/templates/community/instagram-public-follow-up/README.md +15 -0
  1174. package/templates/community/instagram-public-follow-up/SKILL.md +53 -0
  1175. package/templates/community/instagram-public-follow-up/source.json +9 -0
  1176. package/templates/community/instagram-public-follow-up/template.json +54 -0
  1177. package/templates/community/instagram-reader-question-answer/README.md +10 -0
  1178. package/templates/community/instagram-reader-question-answer/SKILL.md +53 -0
  1179. package/templates/community/instagram-reader-question-answer/source.json +9 -0
  1180. package/templates/community/instagram-reader-question-answer/template.json +48 -0
  1181. package/templates/community/instagram-remaining-capacity/README.md +11 -0
  1182. package/templates/community/instagram-remaining-capacity/SKILL.md +52 -0
  1183. package/templates/community/instagram-remaining-capacity/source.json +9 -0
  1184. package/templates/community/instagram-remaining-capacity/template.json +52 -0
  1185. package/templates/community/instagram-research-brief/README.md +16 -0
  1186. package/templates/community/instagram-research-brief/SKILL.md +53 -0
  1187. package/templates/community/instagram-research-brief/source.json +9 -0
  1188. package/templates/community/instagram-research-brief/template.json +54 -0
  1189. package/templates/community/instagram-result-and-recipe/README.md +17 -0
  1190. package/templates/community/instagram-result-and-recipe/SKILL.md +53 -0
  1191. package/templates/community/instagram-result-and-recipe/source.json +9 -0
  1192. package/templates/community/instagram-result-and-recipe/template.json +56 -0
  1193. package/templates/community/instagram-result-to-steps/README.md +13 -0
  1194. package/templates/community/instagram-result-to-steps/SKILL.md +53 -0
  1195. package/templates/community/instagram-result-to-steps/source.json +9 -0
  1196. package/templates/community/instagram-result-to-steps/template.json +51 -0
  1197. package/templates/community/instagram-reverse-instruction/README.md +15 -0
  1198. package/templates/community/instagram-reverse-instruction/SKILL.md +53 -0
  1199. package/templates/community/instagram-reverse-instruction/source.json +9 -0
  1200. package/templates/community/instagram-reverse-instruction/template.json +54 -0
  1201. package/templates/community/instagram-said-and-meant/README.md +9 -0
  1202. package/templates/community/instagram-said-and-meant/SKILL.md +52 -0
  1203. package/templates/community/instagram-said-and-meant/source.json +10 -0
  1204. package/templates/community/instagram-said-and-meant/template.json +46 -0
  1205. package/templates/community/instagram-same-budget-choices/README.md +12 -0
  1206. package/templates/community/instagram-same-budget-choices/SKILL.md +53 -0
  1207. package/templates/community/instagram-same-budget-choices/source.json +9 -0
  1208. package/templates/community/instagram-same-budget-choices/template.json +52 -0
  1209. package/templates/community/instagram-screenshot-walkthrough/README.md +12 -0
  1210. package/templates/community/instagram-screenshot-walkthrough/SKILL.md +53 -0
  1211. package/templates/community/instagram-screenshot-walkthrough/source.json +9 -0
  1212. package/templates/community/instagram-screenshot-walkthrough/template.json +58 -0
  1213. package/templates/community/instagram-searchable-asset-index/README.md +13 -0
  1214. package/templates/community/instagram-searchable-asset-index/SKILL.md +52 -0
  1215. package/templates/community/instagram-searchable-asset-index/source.json +9 -0
  1216. package/templates/community/instagram-searchable-asset-index/template.json +53 -0
  1217. package/templates/community/instagram-similar-concepts/README.md +15 -0
  1218. package/templates/community/instagram-similar-concepts/SKILL.md +52 -0
  1219. package/templates/community/instagram-similar-concepts/source.json +9 -0
  1220. package/templates/community/instagram-similar-concepts/template.json +54 -0
  1221. package/templates/community/instagram-single-event-news/README.md +14 -0
  1222. package/templates/community/instagram-single-event-news/SKILL.md +53 -0
  1223. package/templates/community/instagram-single-event-news/source.json +9 -0
  1224. package/templates/community/instagram-single-event-news/template.json +56 -0
  1225. package/templates/community/instagram-style-assembly/README.md +13 -0
  1226. package/templates/community/instagram-style-assembly/SKILL.md +53 -0
  1227. package/templates/community/instagram-style-assembly/source.json +9 -0
  1228. package/templates/community/instagram-style-assembly/template.json +53 -0
  1229. package/templates/community/instagram-style-choice/README.md +14 -0
  1230. package/templates/community/instagram-style-choice/SKILL.md +53 -0
  1231. package/templates/community/instagram-style-choice/source.json +9 -0
  1232. package/templates/community/instagram-style-choice/template.json +58 -0
  1233. package/templates/community/instagram-symbolism-in-artifact/README.md +9 -0
  1234. package/templates/community/instagram-symbolism-in-artifact/SKILL.md +52 -0
  1235. package/templates/community/instagram-symbolism-in-artifact/source.json +9 -0
  1236. package/templates/community/instagram-symbolism-in-artifact/template.json +47 -0
  1237. package/templates/community/instagram-taste-matched-recommendations/README.md +17 -0
  1238. package/templates/community/instagram-taste-matched-recommendations/SKILL.md +52 -0
  1239. package/templates/community/instagram-taste-matched-recommendations/source.json +9 -0
  1240. package/templates/community/instagram-taste-matched-recommendations/template.json +56 -0
  1241. package/templates/community/instagram-then-now-pairs/README.md +14 -0
  1242. package/templates/community/instagram-then-now-pairs/SKILL.md +52 -0
  1243. package/templates/community/instagram-then-now-pairs/source.json +9 -0
  1244. package/templates/community/instagram-then-now-pairs/template.json +52 -0
  1245. package/templates/community/instagram-timed-action-plan/README.md +15 -0
  1246. package/templates/community/instagram-timed-action-plan/SKILL.md +53 -0
  1247. package/templates/community/instagram-timed-action-plan/source.json +9 -0
  1248. package/templates/community/instagram-timed-action-plan/template.json +60 -0
  1249. package/templates/community/instagram-tools-by-task/README.md +13 -0
  1250. package/templates/community/instagram-tools-by-task/SKILL.md +53 -0
  1251. package/templates/community/instagram-tools-by-task/source.json +9 -0
  1252. package/templates/community/instagram-tools-by-task/template.json +57 -0
  1253. package/templates/community/instagram-two-perspectives/README.md +8 -0
  1254. package/templates/community/instagram-two-perspectives/SKILL.md +52 -0
  1255. package/templates/community/instagram-two-perspectives/source.json +9 -0
  1256. package/templates/community/instagram-two-perspectives/template.json +47 -0
  1257. package/templates/community/instagram-two-views-one-dataset/README.md +8 -0
  1258. package/templates/community/instagram-two-views-one-dataset/SKILL.md +53 -0
  1259. package/templates/community/instagram-two-views-one-dataset/source.json +9 -0
  1260. package/templates/community/instagram-two-views-one-dataset/template.json +51 -0
  1261. package/templates/community/instagram-version-change-audit/README.md +10 -0
  1262. package/templates/community/instagram-version-change-audit/SKILL.md +53 -0
  1263. package/templates/community/instagram-version-change-audit/source.json +9 -0
  1264. package/templates/community/instagram-version-change-audit/template.json +51 -0
  1265. package/templates/community/instagram-visual-analogy/README.md +13 -0
  1266. package/templates/community/instagram-visual-analogy/SKILL.md +53 -0
  1267. package/templates/community/instagram-visual-analogy/source.json +9 -0
  1268. package/templates/community/instagram-visual-analogy/template.json +53 -0
  1269. package/templates/community/instagram-visual-guess/README.md +15 -0
  1270. package/templates/community/instagram-visual-guess/SKILL.md +53 -0
  1271. package/templates/community/instagram-visual-guess/source.json +9 -0
  1272. package/templates/community/instagram-visual-guess/template.json +54 -0
  1273. package/templates/community/instagram-visual-technique-reference/README.md +18 -0
  1274. package/templates/community/instagram-visual-technique-reference/SKILL.md +53 -0
  1275. package/templates/community/instagram-visual-technique-reference/source.json +9 -0
  1276. package/templates/community/instagram-visual-technique-reference/template.json +60 -0
  1277. package/templates/community/instagram-worked-examples/README.md +13 -0
  1278. package/templates/community/instagram-worked-examples/SKILL.md +52 -0
  1279. package/templates/community/instagram-worked-examples/source.json +9 -0
  1280. package/templates/community/instagram-worked-examples/template.json +57 -0
@@ -0,0 +1,2175 @@
1
+ <!doctype html>
2
+ <!--
3
+ Adapted from HyperFrames (https://github.com/heygen-com/hyperframes), registry/blocks/liquid-glass-widgets, 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 own scripts (liquid-glass.iife.js) put into the page; the WebGPU renderer of its liquid-glass library written again on WebGL2, with the same passes and shaders; HTML drawn into a canvas (the experimental drawElementImage) from a picture of the element taken when the page has loaded, where the browser has no such API; GSAP loaded from the project (../lib/gsap.min.js) instead of a CDN; pictures replaced by slots and drawn stand-ins; 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
+ <script>
10
+ /* popost: HTML drawn into a canvas from a picture of the element taken when the page has loaded. */
11
+ (function () {
12
+ var C2 = window.CanvasRenderingContext2D && CanvasRenderingContext2D.prototype;
13
+ if (!C2 || typeof C2.drawElementImage === 'function') return;
14
+ if (!('layoutSubtree' in HTMLCanvasElement.prototype)) Object.defineProperty(HTMLCanvasElement.prototype, 'layoutSubtree', { configurable: true, get: function () { return this.hasAttribute('layoutsubtree'); }, set: function (v) { if (v) this.setAttribute('layoutsubtree', ''); else this.removeAttribute('layoutsubtree'); } });
15
+ var shots = new Map();
16
+ var inline = function (from, to) {
17
+ var cs = getComputedStyle(from), out = '';
18
+ for (var i = 0; i < cs.length; i++) out += cs[i] + ':' + cs.getPropertyValue(cs[i]) + ';';
19
+ to.setAttribute('style', out);
20
+ for (var k = 0; k < from.children.length; k++) inline(from.children[k], to.children[k]);
21
+ };
22
+ var picture = function (el) {
23
+ var c = el.closest('canvas'), w = (c && c.width) || 1920, h = (c && c.height) || 1080;
24
+ var clone = el.cloneNode(true);
25
+ inline(el, clone);
26
+ clone.style.position = 'absolute'; clone.style.left = '0px'; clone.style.top = '0px'; clone.style.visibility = 'visible';
27
+ var xml = new XMLSerializer().serializeToString(clone);
28
+ var svg = '<svg xmlns="http://www.w3.org/2000/svg" width="' + w + '" height="' + h + '"><foreignObject width="100%" height="100%"><div xmlns="http://www.w3.org/1999/xhtml" style="position:relative;width:' + w + 'px;height:' + h + 'px;overflow:hidden">' + xml + '</div></foreignObject></svg>';
29
+ var img = new Image(w, h);
30
+ img.alt = '';
31
+ img.style.cssText = 'position:absolute;left:-99999px;top:0;width:1px;height:1px;opacity:0;pointer-events:none';
32
+ img.src = 'data:image/svg+xml;charset=utf-8,' + encodeURIComponent(svg);
33
+ document.body.appendChild(img);
34
+ return img;
35
+ };
36
+ var shotOf = function (el) { if (!shots.has(el)) shots.set(el, picture(el)); return shots.get(el); };
37
+ var take = function () { document.querySelectorAll('canvas[layoutsubtree] > *').forEach(shotOf); };
38
+ window.addEventListener('DOMContentLoaded', take);
39
+ var when = function (img, draw) { if (img.complete && img.naturalWidth) draw(); else img.decode().then(draw, function () {}); };
40
+ C2.drawElementImage = function (el, x, y, w, h) {
41
+ var ctx = this, img = shotOf(el);
42
+ when(img, function () { ctx.drawImage(img, x || 0, y || 0, w || img.naturalWidth, h || img.naturalHeight); });
43
+ };
44
+ var GL = window.WebGL2RenderingContext && WebGL2RenderingContext.prototype;
45
+ if (GL) GL.texElementImage2D = function (target, level, ifmt, fmt, type, el) {
46
+ var gl = this, img = shotOf(el), tex = gl.getParameter(target === gl.TEXTURE_CUBE_MAP ? gl.TEXTURE_BINDING_CUBE_MAP : gl.TEXTURE_BINDING_2D);
47
+ when(img, function () { var was = gl.getParameter(gl.TEXTURE_BINDING_2D); gl.bindTexture(gl.TEXTURE_2D, tex); gl.texImage2D(target, level, ifmt, fmt, type, img); gl.bindTexture(gl.TEXTURE_2D, was); });
48
+ };
49
+ HTMLCanvasElement.prototype.requestPaint = function () {
50
+ var c = this, imgs = Array.prototype.map.call(c.children, shotOf);
51
+ Promise.all(imgs.map(function (i) { return i.decode().catch(function () {}); })).then(function () { var e = new Event('paint'); if (typeof c.onpaint === 'function') c.onpaint(e); c.dispatchEvent(e); });
52
+ };
53
+ })();
54
+ </script>
55
+ <script>
56
+ /* popost: the liquid-glass WebGPU renderer, written again on WebGL2 (same passes, same shaders). */
57
+ (function () {
58
+ var HEAD = '#version 300 es\nprecision highp float;\n';
59
+ var QUAD_VS = HEAD + 'in vec2 pos;\nuniform float uFlip;\nout vec2 vUv;\nvoid main() { vUv = pos * 0.5 + 0.5; gl_Position = vec4(pos.x, pos.y * uFlip, 0.0, 1.0); }\n';
60
+ var BLIT_FS = HEAD + 'uniform vec4 uBlit;\nuniform sampler2D tex;\nin vec2 vUv;\nout vec4 outColor;\nvoid main() { outColor = texture(tex, vUv * uBlit.xy + uBlit.zw); }\n';
61
+ var BLUR_FS = HEAD + 'uniform vec2 dir;\nuniform sampler2D tex;\nin vec2 vUv;\nout vec4 outColor;\nvoid main() {\n'
62
+ + ' vec4 s = texture(tex, vUv) * 0.227027;\n'
63
+ + ' s += texture(tex, vUv + dir) * 0.194594; s += texture(tex, vUv - dir) * 0.194594;\n'
64
+ + ' s += texture(tex, vUv + dir * 2.0) * 0.121622; s += texture(tex, vUv - dir * 2.0) * 0.121622;\n'
65
+ + ' s += texture(tex, vUv + dir * 3.0) * 0.054054; s += texture(tex, vUv - dir * 3.0) * 0.054054;\n'
66
+ + ' s += texture(tex, vUv + dir * 4.0) * 0.016216; s += texture(tex, vUv - dir * 4.0) * 0.016216;\n'
67
+ + ' outColor = s;\n}\n';
68
+ var GLASS_COMMON = HEAD + 'uniform float U[28];\n#define CENTER vec2(U[0], U[1])\n#define SIZE vec2(U[2], U[3])\n#define RES vec2(U[4], U[5])\n';
69
+ var GLASS_VS = GLASS_COMMON + 'in vec2 pos;\nout vec2 localPx;\nout vec2 screenUV;\nvoid main() {\n'
70
+ + ' vec2 total = SIZE + vec2(U[7] * 2.0);\n localPx = pos * total;\n vec2 px = CENTER + pos * total;\n'
71
+ + ' screenUV = vec2(px.x / RES.x, 1.0 - px.y / RES.y);\n vec2 ndc = (px / RES) * 2.0 - 1.0;\n ndc.y = -ndc.y;\n'
72
+ + ' gl_Position = vec4(ndc, 0.0, 1.0);\n}\n';
73
+ var GLASS_FS = GLASS_COMMON + 'uniform sampler2D bgTex;\nuniform sampler2D blurTex;\nin vec2 localPx;\nin vec2 screenUV;\nout vec4 outColor;\n'
74
+ + 'float rrSDF(vec2 p, vec2 b, float r) { vec2 q = abs(p) - b + vec2(r); return min(max(q.x, q.y), 0.0) + length(max(q, vec2(0.0))) - r; }\n'
75
+ + 'float bevelHeight(float d, float zR) { if (d <= 0.0) return 0.0; if (d >= zR) return zR; return sqrt(d * (2.0 * zR - d)); }\n'
76
+ + 'float hash(vec2 p) { return fract(sin(dot(p, vec2(127.1, 311.7))) * 43758.5453); }\n'
77
+ + 'void main() {\n'
78
+ + ' vec2 half_ = SIZE * 0.5; float r = min(U[6], min(half_.x, half_.y)); float sdf = rrSDF(localPx, half_, r);\n'
79
+ + ' float mask = 1.0 - smoothstep(-1.5, 0.5, sdf); float maxD = min(half_.x, half_.y); float inside = -sdf;\n'
80
+ + ' float edge = smoothstep(maxD * 0.35, 0.0, inside); float zR = U[17]; float e = 2.0;\n'
81
+ + ' float dR = -rrSDF(localPx + vec2(e, 0.0), half_, r); float dL = -rrSDF(localPx - vec2(e, 0.0), half_, r);\n'
82
+ + ' float dU = -rrSDF(localPx + vec2(0.0, e), half_, r); float dD = -rrSDF(localPx - vec2(0.0, e), half_, r);\n'
83
+ + ' float hC = bevelHeight(inside, zR); float hR = bevelHeight(dR, zR); float hL = bevelHeight(dL, zR);\n'
84
+ + ' float hU = bevelHeight(dU, zR); float hD = bevelHeight(dD, zR);\n'
85
+ + ' vec2 hGrad = vec2(hR - hL, hU - hD) / (2.0 * e); vec3 N = normalize(vec3(-hGrad, 1.0));\n'
86
+ + ' float depth = smoothstep(0.0, zR, inside); vec2 pxToUV = vec2(1.0, -1.0) / RES; float refrPow = 1.0 - 1.0 / 1.5;\n'
87
+ + ' float thickNorm = (hC * 2.0) / max(zR * 2.0, 1.0); vec2 exitRefr = hGrad * refrPow; vec2 entryRefr = hGrad * refrPow;\n'
88
+ + ' vec2 refrPxBiconvex = (exitRefr + entryRefr + entryRefr * thickNorm * 0.5) * U[8] * 30.0;\n'
89
+ + ' refrPxBiconvex += (-localPx / max(half_, vec2(1.0))) * U[8] * 4.0 * depth;\n'
90
+ + ' vec2 refrPxDome = -localPx * U[8] * depth * 0.35; vec2 refr = (U[22] >= 0.5 ? refrPxDome : refrPxBiconvex) * pxToUV;\n'
91
+ + ' vec2 ns = localPx * 0.08; vec2 micro = (vec2(hash(ns), hash(ns + vec2(37.0))) - 0.5) * U[13] * 4.0 * (vec2(1.0) / RES);\n'
92
+ + ' float caS = U[9] * 18.0 * (edge * 0.7 + 0.3) * 2.0; vec2 caD = N.xy * caS * pxToUV; vec2 base = screenUV + refr + micro;\n'
93
+ + ' vec3 sharp = vec3(texture(bgTex, base + caD).r, texture(bgTex, base).g, texture(bgTex, base - caD).b);\n'
94
+ + ' vec3 blur = vec3(texture(blurTex, base + caD).r, texture(blurTex, base).g, texture(blurTex, base - caD).b);\n'
95
+ + ' vec3 col = mix(sharp, blur, 1.0 - edge * 0.15); col *= 1.0 + U[18];\n'
96
+ + ' float lum = dot(col, vec3(0.299, 0.587, 0.114)); col = mix(vec3(lum), col, 1.0 + U[15]);\n'
97
+ + ' col = mix(col, col * vec3(0.92, 0.95, 1.05), U[16]); col *= 1.0 + 0.06 * depth;\n'
98
+ + ' float fres = pow(1.0 - abs(N.z), 4.0) * U[12]; vec3 V = vec3(0.0, 0.0, 1.0);\n'
99
+ + ' vec3 L1 = normalize(vec3(0.4, 0.7, 1.0)); float sp1 = pow(max(dot(N, normalize(L1 + V)), 0.0), 90.0);\n'
100
+ + ' vec3 L2 = normalize(vec3(-0.3, -0.5, 1.0)); float sp2 = pow(max(dot(N, normalize(L2 + V)), 0.0), 50.0) * 0.3;\n'
101
+ + ' vec3 L3 = normalize(vec3(0.1, 0.3, 1.0)); float spB = pow(max(dot(N, L3), 0.0), 6.0) * 0.1;\n'
102
+ + ' vec3 L4 = normalize(vec3(0.0, 0.9, 0.4)); float sp4 = pow(max(dot(N, normalize(L4 + V)), 0.0), 120.0) * 0.6;\n'
103
+ + ' float totalSpec = (sp1 + sp2 + spB + sp4) * U[11];\n'
104
+ + ' float innerStroke = smoothstep(-2.5, -1.5, sdf) * (1.0 - smoothstep(-1.0, 0.0, sdf));\n'
105
+ + ' float innerStrokeFinal = innerStroke * (0.4 + 0.6 * (0.5 + 0.5 * (-localPx.y / half_.y)));\n'
106
+ + ' float rim = edge * U[10] * 0.22; float innerGlow = smoothstep(5.0, 0.0, -sdf) * U[10] * 0.15;\n'
107
+ + ' float envRefl = (N.y * 0.5 + 0.5) * fres * 0.08;\n'
108
+ + ' vec3 fin = col + vec3(totalSpec) + vec3(rim + innerGlow) + vec3(innerStrokeFinal * U[10] * 0.55) + vec3(envRefl);\n'
109
+ + ' fin = mix(fin, vec3(1.0), fres * 0.2);\n'
110
+ + ' float sdfShadow = rrSDF(localPx - vec2(0.0, U[21]), half_, r); float shadowD = max(sdfShadow - 1.0, 0.0);\n'
111
+ + ' float spread = max(U[20], 1.0); float outerShadow = exp(-shadowD * shadowD * (1.0 / (spread * spread))) * 0.65;\n'
112
+ + ' float contactShadow = exp(-shadowD * 0.08 / max(spread * 0.04, 0.01)) * 0.35; float shadow = (outerShadow + contactShadow) * U[19];\n'
113
+ + ' bool isOutside = sdf > 0.0;\n'
114
+ + ' outColor = vec4(isOutside ? vec3(0.0) : fin, isOutside ? shadow : mask * U[14]);\n'
115
+ + '}\n';
116
+ var BLUR_ROUNDS = 6;
117
+ window.PopostGlassRenderer = function () {
118
+ this.canvas = document.createElement('canvas');
119
+ this.canvas.style.display = 'none';
120
+ document.body.appendChild(this.canvas);
121
+ this.width = 0; this.height = 0; this.targets = new Map(); this.active = null; this._initialized = false;
122
+ };
123
+ var P = window.PopostGlassRenderer.prototype;
124
+ Object.defineProperty(P, 'initialized', { get: function () { return this._initialized; } });
125
+ P.init = function () {
126
+ if (this._ready) return this._ready;
127
+ var gl = this.canvas.getContext('webgl2', { premultipliedAlpha: true, preserveDrawingBuffer: true, antialias: false, alpha: true });
128
+ if (!gl) return (this._ready = Promise.resolve(false));
129
+ this.gl = gl;
130
+ var program = function (vs, fs) {
131
+ var p = gl.createProgram();
132
+ [[gl.VERTEX_SHADER, vs], [gl.FRAGMENT_SHADER, fs]].forEach(function (st) {
133
+ var sh = gl.createShader(st[0]); gl.shaderSource(sh, st[1]); gl.compileShader(sh);
134
+ if (!gl.getShaderParameter(sh, gl.COMPILE_STATUS)) throw new Error('liquid glass: ' + gl.getShaderInfoLog(sh));
135
+ gl.attachShader(p, sh);
136
+ });
137
+ gl.bindAttribLocation(p, 0, 'pos');
138
+ gl.linkProgram(p);
139
+ if (!gl.getProgramParameter(p, gl.LINK_STATUS)) throw new Error('liquid glass: ' + gl.getProgramInfoLog(p));
140
+ return p;
141
+ };
142
+ this.blit = program(QUAD_VS, BLIT_FS); this.blur = program(QUAD_VS, BLUR_FS); this.glass = program(GLASS_VS, GLASS_FS);
143
+ var buffer = function (data) { var b = gl.createBuffer(); gl.bindBuffer(gl.ARRAY_BUFFER, b); gl.bufferData(gl.ARRAY_BUFFER, new Float32Array(data), gl.STATIC_DRAW); return b; };
144
+ this.quad = buffer([-1, -1, 1, -1, -1, 1, 1, 1]); this.panel = buffer([-0.5, -0.5, 0.5, -0.5, -0.5, 0.5, 0.5, 0.5]);
145
+ this.bg = this._texture(1, 1);
146
+ this._initialized = true;
147
+ return (this._ready = Promise.resolve(true));
148
+ };
149
+ P._texture = function (w, h) {
150
+ var gl = this.gl, t = gl.createTexture();
151
+ gl.bindTexture(gl.TEXTURE_2D, t);
152
+ gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGBA, w, h, 0, gl.RGBA, gl.UNSIGNED_BYTE, null);
153
+ [gl.TEXTURE_MIN_FILTER, gl.TEXTURE_MAG_FILTER].forEach(function (k) { gl.texParameteri(gl.TEXTURE_2D, k, gl.LINEAR); });
154
+ [gl.TEXTURE_WRAP_S, gl.TEXTURE_WRAP_T].forEach(function (k) { gl.texParameteri(gl.TEXTURE_2D, k, gl.CLAMP_TO_EDGE); });
155
+ return t;
156
+ };
157
+ P._target = function (w, h) {
158
+ var gl = this.gl, t = this._texture(w, h), fb = gl.createFramebuffer();
159
+ gl.bindFramebuffer(gl.FRAMEBUFFER, fb);
160
+ gl.framebufferTexture2D(gl.FRAMEBUFFER, gl.COLOR_ATTACHMENT0, gl.TEXTURE_2D, t, 0);
161
+ gl.bindFramebuffer(gl.FRAMEBUFFER, null);
162
+ return { texture: t, fb: fb, w: w, h: h };
163
+ };
164
+ P.resize = function (w, h) { if (this.width !== w || this.height !== h) { this.width = w; this.height = h; this.active = null; } };
165
+ P._setActiveSize = function (w, h) {
166
+ if (w <= 0 || h <= 0) return false;
167
+ this.width = w; this.height = h;
168
+ if (this.canvas.width < w || this.canvas.height < h) { this.canvas.width = Math.max(this.canvas.width, w); this.canvas.height = Math.max(this.canvas.height, h); }
169
+ var key = w + 'x' + h, set = this.targets.get(key);
170
+ if (!set) { set = { bg: this._target(w, h), blurA: this._target(w, h), blurB: this._target(w, h) }; this.targets.set(key, set); }
171
+ this.active = set;
172
+ return true;
173
+ };
174
+ P._pass = function (prog, src, dst, w, h, set) {
175
+ var gl = this.gl;
176
+ gl.useProgram(prog);
177
+ gl.bindFramebuffer(gl.FRAMEBUFFER, dst.fb);
178
+ gl.viewport(0, 0, w, h);
179
+ gl.disable(gl.BLEND);
180
+ gl.clearColor(0, 0, 0, 0); gl.clear(gl.COLOR_BUFFER_BIT);
181
+ gl.uniform1f(gl.getUniformLocation(prog, 'uFlip'), -1);
182
+ gl.activeTexture(gl.TEXTURE0); gl.bindTexture(gl.TEXTURE_2D, src); gl.uniform1i(gl.getUniformLocation(prog, 'tex'), 0);
183
+ set(gl);
184
+ gl.bindBuffer(gl.ARRAY_BUFFER, this.quad); gl.enableVertexAttribArray(0); gl.vertexAttribPointer(0, 2, gl.FLOAT, false, 0, 0);
185
+ gl.drawArrays(gl.TRIANGLE_STRIP, 0, 4);
186
+ gl.bindFramebuffer(gl.FRAMEBUFFER, null);
187
+ };
188
+ P.uploadAndBlur = function (image, x, y, w, h, amount) {
189
+ if (!this._initialized || !this._setActiveSize(w, h)) return;
190
+ var gl = this.gl, o = this.active, d = document.createElement('canvas');
191
+ d.width = w; d.height = h;
192
+ d.getContext('2d').drawImage(image, -x, -y);
193
+ gl.bindTexture(gl.TEXTURE_2D, this.bg);
194
+ gl.pixelStorei(gl.UNPACK_FLIP_Y_WEBGL, true);
195
+ gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGBA, gl.RGBA, gl.UNSIGNED_BYTE, d);
196
+ gl.pixelStorei(gl.UNPACK_FLIP_Y_WEBGL, false);
197
+ var self = this, blit = function (g) { g.uniform4f(g.getUniformLocation(self.blit, 'uBlit'), 1, 1, 0, 0); };
198
+ this._pass(this.blit, this.bg, o.bg, w, h, blit);
199
+ this._pass(this.blit, o.bg.texture, o.blurA, o.blurA.w, o.blurA.h, blit);
200
+ if (amount > 0) {
201
+ var g = amount * 2.5;
202
+ for (var i = 0; i < BLUR_ROUNDS; i++) {
203
+ this._pass(this.blur, o.blurA.texture, o.blurB, o.blurA.w, o.blurA.h, function (gg) { gg.uniform2f(gg.getUniformLocation(self.blur, 'dir'), g / o.blurA.w, 0); });
204
+ this._pass(this.blur, o.blurB.texture, o.blurA, o.blurA.w, o.blurA.h, function (gg) { gg.uniform2f(gg.getUniformLocation(self.blur, 'dir'), 0, g / o.blurA.h); });
205
+ }
206
+ }
207
+ };
208
+ P.renderGlassPanel = function (c, w, h, k) {
209
+ if (!this._initialized || !this.active) return;
210
+ var gl = this.gl, s = this.width, l = this.height, o = this.active;
211
+ var u = [s * 0.5, l * 0.5, w * k, h * k, s, l, c.cornerRadius * k, 20 * k, c.refraction, c.chromAberration, c.edgeHighlight, c.specular, c.fresnel, c.distortion, c.opacity, c.saturation, c.tintStrength, c.zRadius * k, c.brightness, c.shadowOpacity, c.shadowSpread * k, c.shadowOffsetY * k, c.bevelMode, 0, 0, 0, 0, 0];
212
+ gl.useProgram(this.glass);
213
+ gl.bindFramebuffer(gl.FRAMEBUFFER, null);
214
+ gl.viewport(0, this.canvas.height - l, s, l);
215
+ gl.enable(gl.BLEND);
216
+ gl.blendFuncSeparate(gl.SRC_ALPHA, gl.ONE_MINUS_SRC_ALPHA, gl.ONE, gl.ONE_MINUS_SRC_ALPHA);
217
+ gl.uniform1fv(gl.getUniformLocation(this.glass, 'U'), new Float32Array(u));
218
+ gl.activeTexture(gl.TEXTURE0); gl.bindTexture(gl.TEXTURE_2D, o.bg.texture); gl.uniform1i(gl.getUniformLocation(this.glass, 'bgTex'), 0);
219
+ gl.activeTexture(gl.TEXTURE1); gl.bindTexture(gl.TEXTURE_2D, o.blurA.texture); gl.uniform1i(gl.getUniformLocation(this.glass, 'blurTex'), 1);
220
+ gl.bindBuffer(gl.ARRAY_BUFFER, this.panel); gl.enableVertexAttribArray(0); gl.vertexAttribPointer(0, 2, gl.FLOAT, false, 0, 0);
221
+ gl.drawArrays(gl.TRIANGLE_STRIP, 0, 4);
222
+ gl.disable(gl.BLEND);
223
+ gl.activeTexture(gl.TEXTURE0);
224
+ };
225
+ P.clear = function () {
226
+ if (!this._initialized) return;
227
+ var gl = this.gl;
228
+ gl.bindFramebuffer(gl.FRAMEBUFFER, null);
229
+ gl.viewport(0, 0, this.canvas.width, this.canvas.height);
230
+ gl.clearColor(0, 0, 0, 0); gl.clear(gl.COLOR_BUFFER_BIT);
231
+ };
232
+ P.destroy = function () { this.canvas.remove(); };
233
+ })();
234
+ </script>
235
+ <meta charset="utf-8" />
236
+ <meta name="viewport" content="width=1920, height=1080" />
237
+ <title>Liquid Glass Widgets</title>
238
+ <script src="../lib/gsap.min.js"></script>
239
+ <script src="../lib/three.min.js"></script>
240
+ <script>
241
+ var LiquidGlass = (() => {
242
+ var E = Object.defineProperty;
243
+ var D = Object.getOwnPropertyDescriptor;
244
+ var z = Object.getOwnPropertyNames;
245
+ var N = Object.prototype.hasOwnProperty;
246
+ var O = (m, e) => {
247
+ for (var t in e) E(m, t, { get: e[t], enumerable: !0 });
248
+ },
249
+ H = (m, e, t, r) => {
250
+ if ((e && typeof e == "object") || typeof e == "function")
251
+ for (let n of z(e))
252
+ !N.call(m, n) &&
253
+ n !== t &&
254
+ E(m, n, { get: () => e[n], enumerable: !(r = D(e, n)) || r.enumerable });
255
+ return m;
256
+ };
257
+ var I = (m) => H(E({}, "__esModule", { value: !0 }), m);
258
+ var Y = {};
259
+ O(Y, {
260
+ CSS_PROPERTY_MAP: () => _,
261
+ DEFAULTS: () => w,
262
+ GlassRendererGPU: () => y,
263
+ LiquidGlassCanvas: () => R,
264
+ });
265
+ var w = {
266
+ blurAmount: 0,
267
+ refraction: 0.69,
268
+ chromAberration: 0.05,
269
+ edgeHighlight: 0.05,
270
+ specular: 0,
271
+ fresnel: 1,
272
+ distortion: 0,
273
+ cornerRadius: 65,
274
+ zRadius: 40,
275
+ opacity: 1,
276
+ saturation: 0,
277
+ tintStrength: 0,
278
+ brightness: 0,
279
+ shadowOpacity: 0.3,
280
+ shadowSpread: 10,
281
+ shadowOffsetY: 1,
282
+ bevelMode: 0,
283
+ },
284
+ _ = {
285
+ "--lg-blur": "blurAmount",
286
+ "--lg-refraction": "refraction",
287
+ "--lg-chrom-aberration": "chromAberration",
288
+ "--lg-edge-highlight": "edgeHighlight",
289
+ "--lg-specular": "specular",
290
+ "--lg-fresnel": "fresnel",
291
+ "--lg-distortion": "distortion",
292
+ "--lg-corner-radius": "cornerRadius",
293
+ "--lg-z-radius": "zRadius",
294
+ "--lg-opacity": "opacity",
295
+ "--lg-saturation": "saturation",
296
+ "--lg-tint": "tintStrength",
297
+ "--lg-brightness": "brightness",
298
+ "--lg-shadow-opacity": "shadowOpacity",
299
+ "--lg-shadow-spread": "shadowSpread",
300
+ "--lg-shadow-offset-y": "shadowOffsetY",
301
+ "--lg-bevel-mode": "bevelMode",
302
+ },
303
+ L = 6,
304
+ T = 20;
305
+ var q = `// Blit shader - copy texture with UV transform
306
+
307
+ struct BlitUniforms {
308
+ scale: vec2f,
309
+ offset: vec2f,
310
+ }
311
+
312
+ @group(0) @binding(0) var<uniform> u: BlitUniforms;
313
+ @group(0) @binding(1) var texSampler: sampler;
314
+ @group(0) @binding(2) var tex: texture_2d<f32>;
315
+
316
+ struct VertexOutput {
317
+ @builtin(position) position: vec4f,
318
+ @location(0) uv: vec2f,
319
+ }
320
+
321
+ @vertex
322
+ fn vertexMain(@location(0) pos: vec2f) -> VertexOutput {
323
+ var out: VertexOutput;
324
+ out.uv = pos * 0.5 + 0.5;
325
+ out.position = vec4f(pos, 0.0, 1.0);
326
+ return out;
327
+ }
328
+
329
+ @fragment
330
+ fn fragmentMain(in: VertexOutput) -> @location(0) vec4f {
331
+ return textureSample(tex, texSampler, in.uv * u.scale + u.offset);
332
+ }
333
+ `,
334
+ k = `// Blur shader - 9-tap Gaussian blur (single direction)
335
+
336
+ struct BlurUniforms {
337
+ dir: vec2f,
338
+ _pad: vec2f,
339
+ }
340
+
341
+ @group(0) @binding(0) var<uniform> u: BlurUniforms;
342
+ @group(0) @binding(1) var texSampler: sampler;
343
+ @group(0) @binding(2) var tex: texture_2d<f32>;
344
+
345
+ struct VertexOutput {
346
+ @builtin(position) position: vec4f,
347
+ @location(0) uv: vec2f,
348
+ }
349
+
350
+ @vertex
351
+ fn vertexMain(@location(0) pos: vec2f) -> VertexOutput {
352
+ var out: VertexOutput;
353
+ out.uv = pos * 0.5 + 0.5;
354
+ out.position = vec4f(pos, 0.0, 1.0);
355
+ return out;
356
+ }
357
+
358
+ @fragment
359
+ fn fragmentMain(in: VertexOutput) -> @location(0) vec4f {
360
+ var s = textureSample(tex, texSampler, in.uv) * 0.227027;
361
+ s += textureSample(tex, texSampler, in.uv + u.dir * 1.0) * 0.194594;
362
+ s += textureSample(tex, texSampler, in.uv - u.dir * 1.0) * 0.194594;
363
+ s += textureSample(tex, texSampler, in.uv + u.dir * 2.0) * 0.121622;
364
+ s += textureSample(tex, texSampler, in.uv - u.dir * 2.0) * 0.121622;
365
+ s += textureSample(tex, texSampler, in.uv + u.dir * 3.0) * 0.054054;
366
+ s += textureSample(tex, texSampler, in.uv - u.dir * 3.0) * 0.054054;
367
+ s += textureSample(tex, texSampler, in.uv + u.dir * 4.0) * 0.016216;
368
+ s += textureSample(tex, texSampler, in.uv - u.dir * 4.0) * 0.016216;
369
+ return s;
370
+ }
371
+ `,
372
+ W = `// Glass shader - the core liquid glass effect
373
+
374
+ struct GlassUniforms {
375
+ center: vec2f,
376
+ size: vec2f,
377
+ res: vec2f,
378
+ radius: f32,
379
+ pad: f32,
380
+ refract: f32,
381
+ chroma: f32,
382
+ edgeHL: f32,
383
+ spec: f32,
384
+ fresnel: f32,
385
+ distort: f32,
386
+ alpha: f32,
387
+ sat: f32,
388
+ tint: f32,
389
+ zRadius: f32,
390
+ brightness: f32,
391
+ shadowAlpha: f32,
392
+ shadowSpread: f32,
393
+ shadowOffY: f32,
394
+ bevelMode: f32,
395
+ _pad: vec2f,
396
+ }
397
+
398
+ @group(0) @binding(0) var<uniform> u: GlassUniforms;
399
+ @group(0) @binding(1) var texSampler: sampler;
400
+ @group(0) @binding(2) var bgTex: texture_2d<f32>;
401
+ @group(0) @binding(3) var blurTex: texture_2d<f32>;
402
+
403
+ struct VertexOutput {
404
+ @builtin(position) position: vec4f,
405
+ @location(0) localPx: vec2f,
406
+ @location(1) screenUV: vec2f,
407
+ }
408
+
409
+ @vertex
410
+ fn vertexMain(@location(0) pos: vec2f) -> VertexOutput {
411
+ var out: VertexOutput;
412
+ let total = u.size + vec2f(u.pad * 2.0);
413
+ out.localPx = pos * total;
414
+ let px = u.center + pos * total;
415
+ out.screenUV = vec2f(px.x / u.res.x, 1.0 - px.y / u.res.y);
416
+ var ndc = (px / u.res) * 2.0 - 1.0;
417
+ ndc.y = -ndc.y;
418
+ out.position = vec4f(ndc, 0.0, 1.0);
419
+ return out;
420
+ }
421
+
422
+ // Rounded-rect signed distance
423
+ fn rrSDF(p: vec2f, b: vec2f, r: f32) -> f32 {
424
+ let q = abs(p) - b + vec2f(r);
425
+ return min(max(q.x, q.y), 0.0) + length(max(q, vec2f(0.0))) - r;
426
+ }
427
+
428
+ // Bevel height field
429
+ fn bevelHeight(d: f32, zR: f32) -> f32 {
430
+ if (d <= 0.0) { return 0.0; }
431
+ if (d >= zR) { return zR; }
432
+ return sqrt(d * (2.0 * zR - d));
433
+ }
434
+
435
+ fn hash(p: vec2f) -> f32 {
436
+ return fract(sin(dot(p, vec2f(127.1, 311.7))) * 43758.5453);
437
+ }
438
+
439
+ @fragment
440
+ fn fragmentMain(in: VertexOutput) -> @location(0) vec4f {
441
+ let half_ = u.size * 0.5;
442
+ let r = min(u.radius, min(half_.x, half_.y));
443
+ let sdf = rrSDF(in.localPx, half_, r);
444
+
445
+ // Anti-aliased mask
446
+ let mask = 1.0 - smoothstep(-1.5, 0.5, sdf);
447
+
448
+ let maxD = min(half_.x, half_.y);
449
+ let inside = -sdf;
450
+ let edge = smoothstep(maxD * 0.35, 0.0, inside);
451
+
452
+ // Surface normal via bevel height field
453
+ let zR = u.zRadius;
454
+ let e = 2.0;
455
+ let dC = inside;
456
+ let dR = -rrSDF(in.localPx + vec2f(e, 0.0), half_, r);
457
+ let dL = -rrSDF(in.localPx - vec2f(e, 0.0), half_, r);
458
+ let dU = -rrSDF(in.localPx + vec2f(0.0, e), half_, r);
459
+ let dD = -rrSDF(in.localPx - vec2f(0.0, e), half_, r);
460
+ let hC = bevelHeight(dC, zR);
461
+ let hR = bevelHeight(dR, zR);
462
+ let hL = bevelHeight(dL, zR);
463
+ let hU = bevelHeight(dU, zR);
464
+ let hD = bevelHeight(dD, zR);
465
+ let hGrad = vec2f(hR - hL, hU - hD) / (2.0 * e);
466
+ let N = normalize(vec3f(-hGrad, 1.0));
467
+
468
+ let depth = smoothstep(0.0, zR, inside);
469
+
470
+ // Refraction - compute both modes and select
471
+ let pxToUV = vec2f(1.0, -1.0) / u.res;
472
+ let ior = 1.5;
473
+ let refrPow = 1.0 - 1.0 / ior;
474
+ let thickness = hC * 2.0;
475
+ let thickNorm = thickness / max(zR * 2.0, 1.0);
476
+
477
+ // Biconvex mode
478
+ let exitRefr = hGrad * refrPow;
479
+ let entryRefr = hGrad * refrPow;
480
+ let throughRefr = entryRefr * thickNorm * 0.5;
481
+ var refrPxBiconvex = (exitRefr + entryRefr + throughRefr) * u.refract * 30.0;
482
+ let centerDir = -in.localPx / max(half_, vec2f(1.0));
483
+ refrPxBiconvex += centerDir * u.refract * 4.0 * depth;
484
+
485
+ // Dome mode
486
+ let refrPxDome = -in.localPx * u.refract * depth * 0.35;
487
+
488
+ // Select based on bevel mode
489
+ let refrPx = select(refrPxBiconvex, refrPxDome, u.bevelMode >= 0.5);
490
+ let refr = refrPx * pxToUV;
491
+
492
+ // Micro-distortion noise
493
+ let ns = in.localPx * 0.08;
494
+ let absPxToUV = vec2f(1.0) / u.res;
495
+ let micro = (vec2f(hash(ns), hash(ns + vec2f(37.0))) - 0.5) * u.distort * 4.0 * absPxToUV;
496
+
497
+ // Chromatic aberration
498
+ let caS = u.chroma * 18.0 * (edge * 0.7 + 0.3) * 2.0;
499
+ let caD = N.xy * caS * pxToUV;
500
+ let base = in.screenUV + refr + micro;
501
+
502
+ // Sample textures (must be in uniform control flow)
503
+ let sharpR = textureSample(bgTex, texSampler, base + caD).r;
504
+ let sharpG = textureSample(bgTex, texSampler, base).g;
505
+ let sharpB = textureSample(bgTex, texSampler, base - caD).b;
506
+ let sharp = vec3f(sharpR, sharpG, sharpB);
507
+
508
+ let blurR = textureSample(blurTex, texSampler, base + caD).r;
509
+ let blurG = textureSample(blurTex, texSampler, base).g;
510
+ let blurB = textureSample(blurTex, texSampler, base - caD).b;
511
+ let blur = vec3f(blurR, blurG, blurB);
512
+
513
+ // Edge-weighted blur mix
514
+ let edgeMix = 1.0 - edge * 0.15;
515
+ var col = mix(sharp, blur, edgeMix);
516
+
517
+ // Brightness
518
+ col *= 1.0 + u.brightness;
519
+
520
+ // Saturation
521
+ let lum = dot(col, vec3f(0.299, 0.587, 0.114));
522
+ col = mix(vec3f(lum), col, 1.0 + u.sat);
523
+
524
+ // Cool glass tint
525
+ col = mix(col, col * vec3f(0.92, 0.95, 1.05), u.tint);
526
+ col *= 1.0 + 0.06 * depth;
527
+
528
+ // Fresnel
529
+ let fres = pow(1.0 - abs(N.z), 4.0) * u.fresnel;
530
+
531
+ // Specular highlights (multi-light Blinn-Phong)
532
+ let V = vec3f(0.0, 0.0, 1.0);
533
+ let L1 = normalize(vec3f(0.4, 0.7, 1.0));
534
+ let H1 = normalize(L1 + V);
535
+ let sp1 = pow(max(dot(N, H1), 0.0), 90.0);
536
+ let L2 = normalize(vec3f(-0.3, -0.5, 1.0));
537
+ let H2 = normalize(L2 + V);
538
+ let sp2 = pow(max(dot(N, H2), 0.0), 50.0) * 0.3;
539
+ let L3 = normalize(vec3f(0.1, 0.3, 1.0));
540
+ let spB = pow(max(dot(N, L3), 0.0), 6.0) * 0.1;
541
+ let L4 = normalize(vec3f(0.0, 0.9, 0.4));
542
+ let H4 = normalize(L4 + V);
543
+ let sp4 = pow(max(dot(N, H4), 0.0), 120.0) * 0.6;
544
+ let totalSpec = (sp1 + sp2 + spB + sp4) * u.spec;
545
+
546
+ // Inner border / stroke highlight
547
+ let borderWidth = 1.5;
548
+ let innerStroke = smoothstep(-borderWidth - 1.0, -borderWidth, sdf)
549
+ * (1.0 - smoothstep(-1.0, 0.0, sdf));
550
+ let topBias = 0.5 + 0.5 * (-in.localPx.y / half_.y);
551
+ let innerStrokeFinal = innerStroke * (0.4 + 0.6 * topBias);
552
+
553
+ // Edge highlight & inner glow
554
+ let rim = edge * u.edgeHL * 0.22;
555
+ let innerGlow = smoothstep(5.0, 0.0, -sdf) * u.edgeHL * 0.15;
556
+
557
+ // Environment-like reflection (fake)
558
+ let envRefl = (N.y * 0.5 + 0.5) * fres * 0.08;
559
+
560
+ // Composite glass effect
561
+ var fin = col;
562
+ fin += vec3f(totalSpec);
563
+ fin += vec3f(rim + innerGlow);
564
+ fin += vec3f(innerStrokeFinal * u.edgeHL * 0.55);
565
+ fin += vec3f(envRefl);
566
+ fin = mix(fin, vec3f(1.0), fres * 0.2);
567
+
568
+ // Shadow calculation (outside panel)
569
+ let sdfShadow = rrSDF(in.localPx - vec2f(0.0, u.shadowOffY), half_, r);
570
+ let shadowD = max(sdfShadow - 1.0, 0.0);
571
+ let spread = max(u.shadowSpread, 1.0);
572
+ let falloff = 1.0 / (spread * spread);
573
+ let outerShadow = exp(-shadowD * shadowD * falloff) * 0.65;
574
+ let contactShadow = exp(-shadowD * 0.08 / max(spread * 0.04, 0.01)) * 0.35;
575
+ let shadow = (outerShadow + contactShadow) * u.shadowAlpha;
576
+
577
+ // Select between shadow (outside) and glass (inside)
578
+ let isOutside = sdf > 0.0;
579
+ let finalColor = select(fin, vec3f(0.0), isOutside);
580
+ let finalAlpha = select(mask * u.alpha, shadow, isOutside);
581
+
582
+ return vec4f(finalColor, finalAlpha);
583
+ }
584
+ `,
585
+ y = class {
586
+ canvas;
587
+ device = null;
588
+ context = null;
589
+ format = "bgra8unorm";
590
+ blitPipeline = null;
591
+ blurPipeline = null;
592
+ glassPipeline = null;
593
+ quadBuffer = null;
594
+ panelBuffer = null;
595
+ blitUniformBuffer = null;
596
+ blurUniformBuffer = null;
597
+ glassUniformBuffer = null;
598
+ sampler = null;
599
+ targetCache = new Map();
600
+ activeTargets = null;
601
+ bgTexture = null;
602
+ bgTextureView = null;
603
+ width = 0;
604
+ height = 0;
605
+ _initPromise = null;
606
+ _initialized = !1;
607
+ constructor() {
608
+ ((this.canvas = document.createElement("canvas")),
609
+ (this.canvas.style.display = "none"),
610
+ document.body.appendChild(this.canvas));
611
+ }
612
+ async init() {
613
+ return this._initPromise
614
+ ? this._initPromise
615
+ : ((this._initPromise = this._doInit()), this._initPromise);
616
+ }
617
+ async _doInit() {
618
+ if (!navigator.gpu) return (console.warn("WebGPU not supported"), !1);
619
+ let e = await navigator.gpu.requestAdapter();
620
+ return e
621
+ ? ((this.device = await e.requestDevice()),
622
+ this.device
623
+ ? ((this.context = this.canvas.getContext("webgpu")),
624
+ this.context
625
+ ? ((this.format = navigator.gpu.getPreferredCanvasFormat()),
626
+ this.context.configure({
627
+ device: this.device,
628
+ format: this.format,
629
+ alphaMode: "premultiplied",
630
+ }),
631
+ this._initPipelines(),
632
+ this._initBuffers(),
633
+ (this._initialized = !0),
634
+ !0)
635
+ : (console.warn("Failed to get WebGPU context"), !1))
636
+ : (console.warn("Failed to get WebGPU device"), !1))
637
+ : (console.warn("No WebGPU adapter found"), !1);
638
+ }
639
+ get initialized() {
640
+ return this._initialized;
641
+ }
642
+ _initPipelines() {
643
+ let e = this.device;
644
+ this.sampler = e.createSampler({
645
+ magFilter: "linear",
646
+ minFilter: "linear",
647
+ addressModeU: "clamp-to-edge",
648
+ addressModeV: "clamp-to-edge",
649
+ });
650
+ let t = e.createShaderModule({ code: q }),
651
+ r = e.createBindGroupLayout({
652
+ entries: [
653
+ {
654
+ binding: 0,
655
+ visibility: GPUShaderStage.VERTEX | GPUShaderStage.FRAGMENT,
656
+ buffer: { type: "uniform" },
657
+ },
658
+ { binding: 1, visibility: GPUShaderStage.FRAGMENT, sampler: { type: "filtering" } },
659
+ { binding: 2, visibility: GPUShaderStage.FRAGMENT, texture: { sampleType: "float" } },
660
+ ],
661
+ });
662
+ this.blitPipeline = e.createRenderPipeline({
663
+ layout: e.createPipelineLayout({ bindGroupLayouts: [r] }),
664
+ vertex: {
665
+ module: t,
666
+ entryPoint: "vertexMain",
667
+ buffers: [
668
+ {
669
+ arrayStride: 8,
670
+ attributes: [{ shaderLocation: 0, offset: 0, format: "float32x2" }],
671
+ },
672
+ ],
673
+ },
674
+ fragment: { module: t, entryPoint: "fragmentMain", targets: [{ format: "rgba8unorm" }] },
675
+ primitive: { topology: "triangle-strip" },
676
+ });
677
+ let n = e.createShaderModule({ code: k }),
678
+ i = e.createBindGroupLayout({
679
+ entries: [
680
+ {
681
+ binding: 0,
682
+ visibility: GPUShaderStage.VERTEX | GPUShaderStage.FRAGMENT,
683
+ buffer: { type: "uniform" },
684
+ },
685
+ { binding: 1, visibility: GPUShaderStage.FRAGMENT, sampler: { type: "filtering" } },
686
+ { binding: 2, visibility: GPUShaderStage.FRAGMENT, texture: { sampleType: "float" } },
687
+ ],
688
+ });
689
+ this.blurPipeline = e.createRenderPipeline({
690
+ layout: e.createPipelineLayout({ bindGroupLayouts: [i] }),
691
+ vertex: {
692
+ module: n,
693
+ entryPoint: "vertexMain",
694
+ buffers: [
695
+ {
696
+ arrayStride: 8,
697
+ attributes: [{ shaderLocation: 0, offset: 0, format: "float32x2" }],
698
+ },
699
+ ],
700
+ },
701
+ fragment: { module: n, entryPoint: "fragmentMain", targets: [{ format: "rgba8unorm" }] },
702
+ primitive: { topology: "triangle-strip" },
703
+ });
704
+ let s = e.createShaderModule({ code: W }),
705
+ l = e.createBindGroupLayout({
706
+ entries: [
707
+ {
708
+ binding: 0,
709
+ visibility: GPUShaderStage.VERTEX | GPUShaderStage.FRAGMENT,
710
+ buffer: { type: "uniform" },
711
+ },
712
+ { binding: 1, visibility: GPUShaderStage.FRAGMENT, sampler: { type: "filtering" } },
713
+ { binding: 2, visibility: GPUShaderStage.FRAGMENT, texture: { sampleType: "float" } },
714
+ { binding: 3, visibility: GPUShaderStage.FRAGMENT, texture: { sampleType: "float" } },
715
+ ],
716
+ });
717
+ this.glassPipeline = e.createRenderPipeline({
718
+ layout: e.createPipelineLayout({ bindGroupLayouts: [l] }),
719
+ vertex: {
720
+ module: s,
721
+ entryPoint: "vertexMain",
722
+ buffers: [
723
+ {
724
+ arrayStride: 8,
725
+ attributes: [{ shaderLocation: 0, offset: 0, format: "float32x2" }],
726
+ },
727
+ ],
728
+ },
729
+ fragment: {
730
+ module: s,
731
+ entryPoint: "fragmentMain",
732
+ targets: [
733
+ {
734
+ format: this.format,
735
+ blend: {
736
+ color: {
737
+ srcFactor: "src-alpha",
738
+ dstFactor: "one-minus-src-alpha",
739
+ operation: "add",
740
+ },
741
+ alpha: { srcFactor: "one", dstFactor: "one-minus-src-alpha", operation: "add" },
742
+ },
743
+ },
744
+ ],
745
+ },
746
+ primitive: { topology: "triangle-strip" },
747
+ });
748
+ }
749
+ _initBuffers() {
750
+ let e = this.device;
751
+ ((this.quadBuffer = e.createBuffer({
752
+ size: 32,
753
+ usage: GPUBufferUsage.VERTEX,
754
+ mappedAtCreation: !0,
755
+ })),
756
+ new Float32Array(this.quadBuffer.getMappedRange()).set([-1, -1, 1, -1, -1, 1, 1, 1]),
757
+ this.quadBuffer.unmap(),
758
+ (this.panelBuffer = e.createBuffer({
759
+ size: 32,
760
+ usage: GPUBufferUsage.VERTEX,
761
+ mappedAtCreation: !0,
762
+ })),
763
+ new Float32Array(this.panelBuffer.getMappedRange()).set([
764
+ -0.5, -0.5, 0.5, -0.5, -0.5, 0.5, 0.5, 0.5,
765
+ ]),
766
+ this.panelBuffer.unmap(),
767
+ (this.blitUniformBuffer = e.createBuffer({
768
+ size: 16,
769
+ usage: GPUBufferUsage.UNIFORM | GPUBufferUsage.COPY_DST,
770
+ })),
771
+ (this.blurUniformBuffer = e.createBuffer({
772
+ size: 16,
773
+ usage: GPUBufferUsage.UNIFORM | GPUBufferUsage.COPY_DST,
774
+ })),
775
+ (this.glassUniformBuffer = e.createBuffer({
776
+ size: 112,
777
+ usage: GPUBufferUsage.UNIFORM | GPUBufferUsage.COPY_DST,
778
+ })));
779
+ }
780
+ resize(e, t) {
781
+ if (!(this.width === e && this.height === t)) {
782
+ ((this.width = e), (this.height = t));
783
+ for (let r of this.targetCache.values()) this._freeTargetSet(r);
784
+ (this.targetCache.clear(), (this.activeTargets = null));
785
+ }
786
+ }
787
+ uploadAndBlur(e, t, r, n, i, s) {
788
+ if (!this._initialized || !this.device || !this._setActiveSize(n, i)) return;
789
+ let l = this.device,
790
+ a = this.width,
791
+ u = this.height,
792
+ o = this.activeTargets,
793
+ d = document.createElement("canvas");
794
+ ((d.width = a),
795
+ (d.height = u),
796
+ d.getContext("2d").drawImage(e, -t, -r),
797
+ (!this.bgTexture || this.bgTexture.width !== a || this.bgTexture.height !== u) &&
798
+ (this.bgTexture && this.bgTexture.destroy(),
799
+ (this.bgTexture = l.createTexture({
800
+ size: [a, u],
801
+ format: "rgba8unorm",
802
+ usage:
803
+ GPUTextureUsage.TEXTURE_BINDING |
804
+ GPUTextureUsage.COPY_DST |
805
+ GPUTextureUsage.RENDER_ATTACHMENT,
806
+ })),
807
+ (this.bgTextureView = this.bgTexture.createView())),
808
+ l.queue.copyExternalImageToTexture(
809
+ { source: d, flipY: !0 },
810
+ { texture: this.bgTexture },
811
+ [a, u],
812
+ ));
813
+ let f = l.createCommandEncoder();
814
+ this._blitPass(f, this.bgTextureView, o.bg.view, a, u, 1, 1, 0, 0);
815
+ let h = o.blurA.w,
816
+ b = o.blurA.h;
817
+ if ((this._blitPass(f, o.bg.view, o.blurA.view, h, b, 1, 1, 0, 0), s > 0)) {
818
+ let g = s * 2.5;
819
+ for (let p = 0; p < L; p++)
820
+ (this._blurPass(f, o.blurA.view, o.blurB.view, h, b, g / h, 0),
821
+ this._blurPass(f, o.blurB.view, o.blurA.view, h, b, 0, g / b));
822
+ }
823
+ l.queue.submit([f.finish()]);
824
+ }
825
+ _blitPass(e, t, r, n, i, s, l, a, u) {
826
+ let o = this.device;
827
+ o.queue.writeBuffer(this.blitUniformBuffer, 0, new Float32Array([s, l, a, u]));
828
+ let d = o.createBindGroup({
829
+ layout: this.blitPipeline.getBindGroupLayout(0),
830
+ entries: [
831
+ { binding: 0, resource: { buffer: this.blitUniformBuffer } },
832
+ { binding: 1, resource: this.sampler },
833
+ { binding: 2, resource: t },
834
+ ],
835
+ }),
836
+ c = e.beginRenderPass({
837
+ colorAttachments: [
838
+ {
839
+ view: r,
840
+ loadOp: "clear",
841
+ storeOp: "store",
842
+ clearValue: { r: 0, g: 0, b: 0, a: 0 },
843
+ },
844
+ ],
845
+ });
846
+ (c.setPipeline(this.blitPipeline),
847
+ c.setBindGroup(0, d),
848
+ c.setVertexBuffer(0, this.quadBuffer),
849
+ c.setViewport(0, 0, n, i, 0, 1),
850
+ c.draw(4),
851
+ c.end());
852
+ }
853
+ _blurPass(e, t, r, n, i, s, l) {
854
+ let a = this.device;
855
+ a.queue.writeBuffer(this.blurUniformBuffer, 0, new Float32Array([s, l, 0, 0]));
856
+ let u = a.createBindGroup({
857
+ layout: this.blurPipeline.getBindGroupLayout(0),
858
+ entries: [
859
+ { binding: 0, resource: { buffer: this.blurUniformBuffer } },
860
+ { binding: 1, resource: this.sampler },
861
+ { binding: 2, resource: t },
862
+ ],
863
+ }),
864
+ o = e.beginRenderPass({
865
+ colorAttachments: [
866
+ {
867
+ view: r,
868
+ loadOp: "clear",
869
+ storeOp: "store",
870
+ clearValue: { r: 0, g: 0, b: 0, a: 0 },
871
+ },
872
+ ],
873
+ });
874
+ (o.setPipeline(this.blurPipeline),
875
+ o.setBindGroup(0, u),
876
+ o.setVertexBuffer(0, this.quadBuffer),
877
+ o.setViewport(0, 0, n, i, 0, 1),
878
+ o.draw(4),
879
+ o.end());
880
+ }
881
+ renderGlassPanel(e, t, r, n) {
882
+ if (!this._initialized || !this.device || !this.context) return;
883
+ let i = this.device,
884
+ s = this.width,
885
+ l = this.height,
886
+ a = this.activeTargets,
887
+ u = new Float32Array([
888
+ s * 0.5,
889
+ l * 0.5,
890
+ t * n,
891
+ r * n,
892
+ s,
893
+ l,
894
+ e.cornerRadius * n,
895
+ T * n,
896
+ e.refraction,
897
+ e.chromAberration,
898
+ e.edgeHighlight,
899
+ e.specular,
900
+ e.fresnel,
901
+ e.distortion,
902
+ e.opacity,
903
+ e.saturation,
904
+ e.tintStrength,
905
+ e.zRadius * n,
906
+ e.brightness,
907
+ e.shadowOpacity,
908
+ e.shadowSpread * n,
909
+ e.shadowOffsetY * n,
910
+ e.bevelMode,
911
+ 0,
912
+ 0,
913
+ 0,
914
+ 0,
915
+ 0,
916
+ ]);
917
+ i.queue.writeBuffer(this.glassUniformBuffer, 0, u);
918
+ let o = i.createBindGroup({
919
+ layout: this.glassPipeline.getBindGroupLayout(0),
920
+ entries: [
921
+ { binding: 0, resource: { buffer: this.glassUniformBuffer } },
922
+ { binding: 1, resource: this.sampler },
923
+ { binding: 2, resource: a.bg.view },
924
+ { binding: 3, resource: a.blurA.view },
925
+ ],
926
+ }),
927
+ d = i.createCommandEncoder(),
928
+ c = d.beginRenderPass({
929
+ colorAttachments: [
930
+ {
931
+ view: this.context.getCurrentTexture().createView(),
932
+ loadOp: "load",
933
+ storeOp: "store",
934
+ },
935
+ ],
936
+ });
937
+ (c.setPipeline(this.glassPipeline),
938
+ c.setBindGroup(0, o),
939
+ c.setVertexBuffer(0, this.panelBuffer),
940
+ c.setViewport(0, 0, s, l, 0, 1),
941
+ c.draw(4),
942
+ c.end(),
943
+ i.queue.submit([d.finish()]));
944
+ }
945
+ clear() {
946
+ if (!this._initialized || !this.device || !this.context) return;
947
+ let e = this.device.createCommandEncoder(),
948
+ t = e.beginRenderPass({
949
+ colorAttachments: [
950
+ {
951
+ view: this.context.getCurrentTexture().createView(),
952
+ loadOp: "clear",
953
+ storeOp: "store",
954
+ clearValue: { r: 0, g: 0, b: 0, a: 0 },
955
+ },
956
+ ],
957
+ });
958
+ (t.setViewport(0, 0, this.width, this.height, 0, 1),
959
+ t.end(),
960
+ this.device.queue.submit([e.finish()]));
961
+ }
962
+ destroy() {
963
+ for (let e of this.targetCache.values()) this._freeTargetSet(e);
964
+ (this.targetCache.clear(),
965
+ this.bgTexture && this.bgTexture.destroy(),
966
+ this.quadBuffer && this.quadBuffer.destroy(),
967
+ this.panelBuffer && this.panelBuffer.destroy(),
968
+ this.blitUniformBuffer && this.blitUniformBuffer.destroy(),
969
+ this.blurUniformBuffer && this.blurUniformBuffer.destroy(),
970
+ this.glassUniformBuffer && this.glassUniformBuffer.destroy(),
971
+ this.device?.destroy(),
972
+ this.canvas.remove());
973
+ }
974
+ _setActiveSize(e, t) {
975
+ if (e <= 0 || t <= 0) return !1;
976
+ ((this.width = e),
977
+ (this.height = t),
978
+ (this.canvas.width < e || this.canvas.height < t) &&
979
+ ((this.canvas.width = Math.max(this.canvas.width, e)),
980
+ (this.canvas.height = Math.max(this.canvas.height, t)),
981
+ this.context?.configure({
982
+ device: this.device,
983
+ format: this.format,
984
+ alphaMode: "premultiplied",
985
+ })));
986
+ let r = `${e}x${t}`,
987
+ n = this.targetCache.get(r);
988
+ return (
989
+ n ||
990
+ ((n = {
991
+ bg: this._makeTarget(e, t),
992
+ blurA: this._makeTarget(e, t),
993
+ blurB: this._makeTarget(e, t),
994
+ }),
995
+ this.targetCache.set(r, n)),
996
+ (this.activeTargets = n),
997
+ !0
998
+ );
999
+ }
1000
+ _makeTarget(e, t) {
1001
+ let r = this.device.createTexture({
1002
+ size: [e, t],
1003
+ format: "rgba8unorm",
1004
+ usage: GPUTextureUsage.TEXTURE_BINDING | GPUTextureUsage.RENDER_ATTACHMENT,
1005
+ });
1006
+ return { texture: r, view: r.createView(), w: e, h: t };
1007
+ }
1008
+ _freeTarget(e) {
1009
+ e && e.texture.destroy();
1010
+ }
1011
+ _freeTargetSet(e) {
1012
+ (this._freeTarget(e.bg), this._freeTarget(e.blurA), this._freeTarget(e.blurB));
1013
+ }
1014
+ };
1015
+ var R = class {
1016
+ canvas;
1017
+ ctx;
1018
+ renderer;
1019
+ sceneCanvas;
1020
+ sceneCtx;
1021
+ drawElementImage;
1022
+ _initPromise;
1023
+ _initialized = !1;
1024
+ constructor(e) {
1025
+ ((this.canvas = e),
1026
+ (this.ctx = e.getContext("2d")),
1027
+ (this.renderer = new window.PopostGlassRenderer()),
1028
+ (this.sceneCanvas = document.createElement("canvas")),
1029
+ (this.sceneCtx = this.sceneCanvas.getContext("2d")));
1030
+ let t = this.ctx;
1031
+ ((this.drawElementImage = t.drawElementImage?.bind(t) ?? t.drawElement?.bind(t) ?? null),
1032
+ (this._initPromise = this._initWebGPU()));
1033
+ }
1034
+ async _initWebGPU() {
1035
+ try {
1036
+ return (await this.renderer.init())
1037
+ ? ((this._initialized = !0), console.log("LiquidGlass: WebGPU renderer initialized"), !0)
1038
+ : (console.error("LiquidGlass: WebGPU not available"), !1);
1039
+ } catch (e) {
1040
+ return (console.error("LiquidGlass: WebGPU init failed", e), !1);
1041
+ }
1042
+ }
1043
+ get isReady() {
1044
+ return this._initialized;
1045
+ }
1046
+ async waitForInit() {
1047
+ return this._initPromise;
1048
+ }
1049
+ render() {
1050
+ let e = this.canvas.width,
1051
+ t = this.canvas.height;
1052
+ if (e === 0 || t === 0 || !this.drawElementImage || !this._initialized) return;
1053
+ this.ctx.clearRect(0, 0, e, t);
1054
+ let r = window.devicePixelRatio || 1,
1055
+ n = this.canvas.getBoundingClientRect(),
1056
+ i = Array.from(this.canvas.children),
1057
+ s = Array.from(this.canvas.querySelectorAll(".liquid-glass")),
1058
+ l = new Set(s);
1059
+ i.length === 0 &&
1060
+ !this.__lg_warn_empty &&
1061
+ (console.warn("LiquidGlass: No children found inside the canvas to render."),
1062
+ (this.__lg_warn_empty = !0));
1063
+ for (let a of i)
1064
+ if (!l.has(a)) {
1065
+ let u = a,
1066
+ o = this._getElementPosition(u, n);
1067
+ if (o.w <= 0 || o.h <= 0) continue;
1068
+ let d = o.x * r,
1069
+ c = o.y * r;
1070
+ try {
1071
+ let f = this.drawElementImage(a, d, c);
1072
+ f && (u.style.transform = f.toString());
1073
+ } catch (f) {
1074
+ a.__lg_error_logged ||
1075
+ (console.warn(
1076
+ `LiquidGlass: Failed to draw background element ${a.tagName}.${a.className}:`,
1077
+ f.message || f,
1078
+ ),
1079
+ (a.__lg_error_logged = !0));
1080
+ }
1081
+ }
1082
+ for (let a of s)
1083
+ try {
1084
+ this._renderGlassElement(a, n, r);
1085
+ } catch (u) {
1086
+ a.__lg_error_logged_glass ||
1087
+ (console.error(
1088
+ `LiquidGlass: Failed to render glass effect for ${a.tagName}.${a.className}:`,
1089
+ u.message || u,
1090
+ ),
1091
+ (a.__lg_error_logged_glass = !0));
1092
+ }
1093
+ }
1094
+ renderGlassElements() {
1095
+ let e = this.canvas.width,
1096
+ t = this.canvas.height;
1097
+ if (e === 0 || t === 0 || !this.drawElementImage || !this._initialized) return;
1098
+ let r = window.devicePixelRatio || 1,
1099
+ n = this.canvas.getBoundingClientRect(),
1100
+ i = this.canvas.querySelectorAll(".liquid-glass");
1101
+ for (let s of i) this._renderGlassElement(s, n, r);
1102
+ }
1103
+ _parseCSSLength(e, t) {
1104
+ return !e || e === "auto"
1105
+ ? NaN
1106
+ : ((e = e.trim()),
1107
+ e.startsWith("calc(")
1108
+ ? this._parseCalc(e, t)
1109
+ : e.endsWith("%")
1110
+ ? (parseFloat(e) / 100) * t
1111
+ : parseFloat(e) || 0);
1112
+ }
1113
+ _parseCalc(e, t) {
1114
+ let r = e.match(/calc\((.+)\)/);
1115
+ if (!r) return 0;
1116
+ let n = r[1].trim(),
1117
+ i = n.match(/(.+)\s*\+\s*(.+)/),
1118
+ s = n.match(/(.+)\s*-\s*(.+)/);
1119
+ if (s) {
1120
+ let l = this._parseCSSLength(s[1].trim(), t),
1121
+ a = this._parseCSSLength(s[2].trim(), t);
1122
+ return l - a;
1123
+ }
1124
+ if (i) {
1125
+ let l = this._parseCSSLength(i[1].trim(), t),
1126
+ a = this._parseCSSLength(i[2].trim(), t);
1127
+ return l + a;
1128
+ }
1129
+ return this._parseCSSLength(n, t);
1130
+ }
1131
+ _parseTransform(e, t, r) {
1132
+ let n = 0,
1133
+ i = 0;
1134
+ if (!e || e === "none") return { tx: n, ty: i };
1135
+ let s = e.match(/translate\(\s*([^,)]+)(?:\s*,\s*([^)]+))?\s*\)/);
1136
+ s &&
1137
+ ((n = this._parseTranslateValue(s[1], t)),
1138
+ (i = s[2] ? this._parseTranslateValue(s[2], r) : 0));
1139
+ let l = e.match(/translateX\(\s*([^)]+)\s*\)/);
1140
+ l && (n = this._parseTranslateValue(l[1], t));
1141
+ let a = e.match(/translateY\(\s*([^)]+)\s*\)/);
1142
+ a && (i = this._parseTranslateValue(a[1], r));
1143
+ let u = e.match(/translate3d\(\s*([^,]+)\s*,\s*([^,]+)\s*,\s*[^)]+\s*\)/);
1144
+ return (
1145
+ u && ((n = this._parseTranslateValue(u[1], t)), (i = this._parseTranslateValue(u[2], r))),
1146
+ { tx: n, ty: i }
1147
+ );
1148
+ }
1149
+ _parseTranslateValue(e, t) {
1150
+ return ((e = e.trim()), e.endsWith("%") ? (parseFloat(e) / 100) * t : parseFloat(e) || 0);
1151
+ }
1152
+ _getElementPosition(e, t) {
1153
+ let r = getComputedStyle(e),
1154
+ n = parseFloat(getComputedStyle(this.canvas).width) || this.canvas.width || 1536,
1155
+ i = parseFloat(getComputedStyle(this.canvas).height) || this.canvas.height || 1024,
1156
+ s = e.getBoundingClientRect(),
1157
+ l = s.width || parseFloat(r.width) || 0,
1158
+ a = s.height || parseFloat(r.height) || 0,
1159
+ u = 0,
1160
+ o = 0,
1161
+ d = e.style,
1162
+ c = d.left || r.left,
1163
+ f = d.right || r.right,
1164
+ h = d.top || r.top,
1165
+ b = d.bottom || r.bottom,
1166
+ g = this._parseCSSLength(c, n),
1167
+ p = this._parseCSSLength(f, n),
1168
+ v = this._parseCSSLength(h, i),
1169
+ S = this._parseCSSLength(b, i),
1170
+ P = parseFloat(r.marginLeft) || 0,
1171
+ x = parseFloat(r.marginRight) || 0,
1172
+ M = parseFloat(r.marginTop) || 0,
1173
+ A = parseFloat(r.marginBottom) || 0,
1174
+ G = !isNaN(g),
1175
+ U = !isNaN(p);
1176
+ G && U && g === 0 && p === 0
1177
+ ? (u = (n - l) / 2)
1178
+ : (G && U) || G
1179
+ ? (u = g + P)
1180
+ : U && (u = n - l - p - x);
1181
+ let B = !isNaN(v),
1182
+ C = !isNaN(S);
1183
+ B && C && v === 0 && S === 0
1184
+ ? (o = (i - a) / 2)
1185
+ : (B && C) || B
1186
+ ? (o = v + M)
1187
+ : C && (o = i - a - S - A);
1188
+ let { tx: V, ty: F } = this._parseTransform(r.transform, l, a);
1189
+ return ((u += V), (o += F), { x: u, y: o, w: l, h: a });
1190
+ }
1191
+ _renderGlassElement(e, t, r) {
1192
+ if (!this.drawElementImage) return;
1193
+ let n = this._getConfigFromCSS(e),
1194
+ i = this._getElementPosition(e, t),
1195
+ s = i.x,
1196
+ l = i.y,
1197
+ a = i.w,
1198
+ u = i.h,
1199
+ o = s * r,
1200
+ d = l * r,
1201
+ c = a * r,
1202
+ f = u * r,
1203
+ h = T * r,
1204
+ b = o - h,
1205
+ g = d - h,
1206
+ p = c + h * 2,
1207
+ v = f + h * 2;
1208
+ this._captureRegion(b, g, p, v);
1209
+ let S = Math.round(p),
1210
+ P = Math.round(v);
1211
+ (this.renderer.clear(),
1212
+ this.renderer.uploadAndBlur(this.sceneCanvas, 0, 0, S, P, n.blurAmount),
1213
+ this.renderer.renderGlassPanel(n, a, u, r),
1214
+ this.ctx.drawImage(this.renderer.canvas, 0, 0, p, v, b, g, p, v));
1215
+ try {
1216
+ let x = this._drawGlassElementContent(e, o, d);
1217
+ x && (e.style.transform = x.toString());
1218
+ } catch (x) {
1219
+ e.__lg_error_logged ||
1220
+ (console.warn(
1221
+ `LiquidGlass: Failed to draw glass element ${e.tagName}.${e.className}:`,
1222
+ x,
1223
+ ),
1224
+ (e.__lg_error_logged = !0));
1225
+ }
1226
+ }
1227
+ _drawGlassElementContent(e, t, r) {
1228
+ if (!this.drawElementImage) return;
1229
+ let n = this._suppressGlassChrome(e);
1230
+ try {
1231
+ return this.drawElementImage(e, t, r);
1232
+ } finally {
1233
+ this._restoreInlineStyles(e, n);
1234
+ }
1235
+ }
1236
+ _suppressGlassChrome(e) {
1237
+ let t = new Map(),
1238
+ r = [
1239
+ "background",
1240
+ "backgroundColor",
1241
+ "backgroundImage",
1242
+ "borderColor",
1243
+ "boxShadow",
1244
+ "filter",
1245
+ "outlineColor",
1246
+ ];
1247
+ for (let n of r) t.set(n, e.style[n]);
1248
+ return (
1249
+ (e.style.background = "transparent"),
1250
+ (e.style.backgroundColor = "transparent"),
1251
+ (e.style.backgroundImage = "none"),
1252
+ (e.style.borderColor = "transparent"),
1253
+ (e.style.boxShadow = "none"),
1254
+ (e.style.filter = "none"),
1255
+ (e.style.outlineColor = "transparent"),
1256
+ t
1257
+ );
1258
+ }
1259
+ _restoreInlineStyles(e, t) {
1260
+ for (let [r, n] of t) e.style[r] = n;
1261
+ }
1262
+ _captureRegion(e, t, r, n) {
1263
+ let i = Math.round(r),
1264
+ s = Math.round(n);
1265
+ ((this.sceneCanvas.width !== i || this.sceneCanvas.height !== s) &&
1266
+ ((this.sceneCanvas.width = i), (this.sceneCanvas.height = s)),
1267
+ (this.sceneCtx.fillStyle = "#ffffff"),
1268
+ this.sceneCtx.fillRect(0, 0, i, s),
1269
+ this.sceneCtx.drawImage(this.canvas, e, t, r, n, 0, 0, i, s));
1270
+ }
1271
+ _getConfigFromCSS(e) {
1272
+ let t = getComputedStyle(e),
1273
+ r = { ...w };
1274
+ for (let [n, i] of Object.entries(_)) {
1275
+ let s = t.getPropertyValue(n).trim();
1276
+ if (s) {
1277
+ let l = parseFloat(s);
1278
+ isNaN(l) || (r[i] = l);
1279
+ }
1280
+ }
1281
+ return r;
1282
+ }
1283
+ destroy() {
1284
+ this.renderer.destroy();
1285
+ }
1286
+ };
1287
+ return I(Y);
1288
+ })();
1289
+
1290
+ </script>
1291
+ <style>
1292
+ *,
1293
+ *::before,
1294
+ *::after {
1295
+ margin: 0;
1296
+ padding: 0;
1297
+ box-sizing: border-box;
1298
+ }
1299
+ body {
1300
+ background: #0a0218;
1301
+ overflow: hidden;
1302
+ font-family: "Inter", system-ui, sans-serif;
1303
+ }
1304
+ #root {
1305
+ position: relative;
1306
+ width: 1920px;
1307
+ height: 1080px;
1308
+ overflow: hidden;
1309
+ }
1310
+ #three-canvas {
1311
+ position: absolute;
1312
+ top: 0;
1313
+ left: 0;
1314
+ width: 1920px;
1315
+ height: 1080px;
1316
+ z-index: 0;
1317
+ }
1318
+ #glass-canvas {
1319
+ position: absolute;
1320
+ top: 0;
1321
+ left: 0;
1322
+ width: 1920px;
1323
+ height: 1080px;
1324
+ z-index: 1;
1325
+ }
1326
+
1327
+ /* ── Glass Panels ── */
1328
+ .glass-panel {
1329
+ position: absolute;
1330
+ background: rgba(255, 255, 255, 0.025);
1331
+ --lg-blur: 0.42;
1332
+ --lg-refraction: 0.82;
1333
+ --lg-corner-radius: 28;
1334
+ --lg-z-radius: 46;
1335
+ --lg-specular: 0.34;
1336
+ --lg-fresnel: 1.25;
1337
+ --lg-edge-highlight: 0.26;
1338
+ --lg-chrom-aberration: 0.08;
1339
+ --lg-shadow-opacity: 0;
1340
+ --lg-shadow-spread: 0;
1341
+ --lg-shadow-offset-y: 0;
1342
+ --lg-saturation: 0.38;
1343
+ }
1344
+ .stat-card {
1345
+ width: 220px;
1346
+ height: 220px;
1347
+ }
1348
+ .showcase-card {
1349
+ width: 500px;
1350
+ height: 320px;
1351
+ }
1352
+ .pill-chip {
1353
+ width: 130px;
1354
+ height: 36px;
1355
+ --lg-corner-radius: 40;
1356
+ }
1357
+
1358
+ #glass-stat1 {
1359
+ top: 300px;
1360
+ left: 200px;
1361
+ }
1362
+ #glass-stat2 {
1363
+ top: 300px;
1364
+ left: 460px;
1365
+ }
1366
+ #glass-stat3 {
1367
+ top: 300px;
1368
+ left: 720px;
1369
+ }
1370
+ #glass-showcase {
1371
+ top: 380px;
1372
+ left: 1100px;
1373
+ }
1374
+ #glass-pill1 {
1375
+ top: 720px;
1376
+ left: 300px;
1377
+ }
1378
+ #glass-pill2 {
1379
+ top: 720px;
1380
+ left: 460px;
1381
+ }
1382
+ #glass-pill3 {
1383
+ top: 720px;
1384
+ left: 620px;
1385
+ }
1386
+
1387
+ /* ── Text Overlays ── */
1388
+ .text-overlay {
1389
+ position: absolute;
1390
+ z-index: 2;
1391
+ pointer-events: none;
1392
+ }
1393
+
1394
+ /* Stat cards */
1395
+ .stat-text {
1396
+ width: 220px;
1397
+ height: 220px;
1398
+ position: absolute;
1399
+ display: flex;
1400
+ flex-direction: column;
1401
+ align-items: center;
1402
+ justify-content: center;
1403
+ gap: 10px;
1404
+ padding: 22px;
1405
+ border-radius: 28px;
1406
+ background:
1407
+ linear-gradient(
1408
+ 150deg,
1409
+ rgba(255, 255, 255, 0.28),
1410
+ rgba(255, 255, 255, 0.06) 46%,
1411
+ rgba(255, 255, 255, 0.16)
1412
+ ),
1413
+ linear-gradient(180deg, rgba(9, 18, 31, 0.2), rgba(255, 255, 255, 0.04));
1414
+ border: 1px solid rgba(255, 255, 255, 0.36);
1415
+ box-shadow:
1416
+ inset 0 1px 0 rgba(255, 255, 255, 0.5),
1417
+ inset 0 -18px 38px rgba(255, 255, 255, 0.08);
1418
+ overflow: hidden;
1419
+ text-shadow: 0 2px 16px rgba(0, 0, 0, 0.38);
1420
+ }
1421
+ .stat-text::before,
1422
+ .showcase-text::before,
1423
+ .pill-text::before {
1424
+ content: "";
1425
+ position: absolute;
1426
+ inset: 1px;
1427
+ border-radius: inherit;
1428
+ pointer-events: none;
1429
+ background: linear-gradient(
1430
+ 120deg,
1431
+ rgba(255, 255, 255, 0.44),
1432
+ transparent 28%,
1433
+ transparent 66%,
1434
+ rgba(255, 255, 255, 0.2)
1435
+ );
1436
+ opacity: 0.32;
1437
+ mix-blend-mode: screen;
1438
+ }
1439
+ .stat-label {
1440
+ position: relative;
1441
+ font-size: 14px;
1442
+ font-weight: 650;
1443
+ color: #fff;
1444
+ text-transform: uppercase;
1445
+ letter-spacing: 1.5px;
1446
+ }
1447
+ .stat-value {
1448
+ position: relative;
1449
+ font-size: 52px;
1450
+ font-weight: 700;
1451
+ color: #fff;
1452
+ font-variant-numeric: tabular-nums;
1453
+ line-height: 1;
1454
+ }
1455
+ .stat-unit {
1456
+ position: relative;
1457
+ font-size: 24px;
1458
+ font-weight: 500;
1459
+ color: #fff;
1460
+ }
1461
+ .mini-meter {
1462
+ position: relative;
1463
+ width: 140px;
1464
+ height: 6px;
1465
+ overflow: hidden;
1466
+ border-radius: 999px;
1467
+ background: rgba(255, 255, 255, 0.28);
1468
+ }
1469
+ .mini-meter-fill {
1470
+ width: 0%;
1471
+ height: 100%;
1472
+ border-radius: inherit;
1473
+ background: linear-gradient(90deg, #06e3fa, #4fdb5e);
1474
+ box-shadow: 0 0 12px rgba(79, 219, 94, 0.55);
1475
+ }
1476
+ .battery-shell {
1477
+ position: relative;
1478
+ width: 118px;
1479
+ height: 40px;
1480
+ padding: 4px;
1481
+ border: 2px solid rgba(255, 255, 255, 0.66);
1482
+ border-radius: 12px;
1483
+ }
1484
+ .battery-shell::after {
1485
+ content: "";
1486
+ position: absolute;
1487
+ top: 12px;
1488
+ right: -9px;
1489
+ width: 5px;
1490
+ height: 14px;
1491
+ border-radius: 0 5px 5px 0;
1492
+ background: rgba(255, 255, 255, 0.66);
1493
+ }
1494
+ .battery-fill {
1495
+ width: 72%;
1496
+ height: 100%;
1497
+ border-radius: 8px;
1498
+ background: linear-gradient(90deg, #4ade80, #06e3fa);
1499
+ box-shadow: 0 0 18px rgba(74, 222, 128, 0.45);
1500
+ }
1501
+ .steps-ring {
1502
+ width: 106px;
1503
+ height: 106px;
1504
+ display: grid;
1505
+ place-items: center;
1506
+ border-radius: 50%;
1507
+ background: conic-gradient(#a78bfa 0deg, #06e3fa 180deg, rgba(255, 255, 255, 0.18) 180deg);
1508
+ }
1509
+ .steps-ring-inner {
1510
+ width: 78px;
1511
+ height: 78px;
1512
+ display: grid;
1513
+ place-items: center;
1514
+ border-radius: 50%;
1515
+ background: rgba(7, 10, 18, 0.36);
1516
+ box-shadow:
1517
+ inset 0 1px 0 rgba(255, 255, 255, 0.22),
1518
+ inset 0 -8px 20px rgba(0, 0, 0, 0.14);
1519
+ color: #fff;
1520
+ font-size: 30px;
1521
+ font-weight: 800;
1522
+ font-variant-numeric: tabular-nums;
1523
+ }
1524
+ #text-stat1 {
1525
+ top: 300px;
1526
+ left: 200px;
1527
+ }
1528
+ #text-stat2 {
1529
+ top: 300px;
1530
+ left: 460px;
1531
+ }
1532
+ #text-stat3 {
1533
+ top: 300px;
1534
+ left: 720px;
1535
+ }
1536
+
1537
+ /* Showcase card */
1538
+ .showcase-text {
1539
+ width: 500px;
1540
+ height: 320px;
1541
+ position: absolute;
1542
+ display: flex;
1543
+ flex-direction: column;
1544
+ align-items: center;
1545
+ justify-content: center;
1546
+ gap: 20px;
1547
+ padding: 32px;
1548
+ border-radius: 28px;
1549
+ background:
1550
+ radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.38), transparent 24%),
1551
+ linear-gradient(
1552
+ 135deg,
1553
+ rgba(255, 255, 255, 0.24),
1554
+ rgba(255, 255, 255, 0.07) 52%,
1555
+ rgba(255, 255, 255, 0.18)
1556
+ );
1557
+ border: 1px solid rgba(255, 255, 255, 0.38);
1558
+ box-shadow:
1559
+ inset 0 1px 0 rgba(255, 255, 255, 0.5),
1560
+ inset 0 -24px 48px rgba(255, 255, 255, 0.08);
1561
+ overflow: hidden;
1562
+ text-shadow: 0 2px 18px rgba(0, 0, 0, 0.4);
1563
+ }
1564
+ .showcase-icon {
1565
+ position: relative;
1566
+ width: 168px;
1567
+ height: 52px;
1568
+ display: flex;
1569
+ align-items: center;
1570
+ justify-content: center;
1571
+ }
1572
+ .showcase-logo {
1573
+ width: 150px;
1574
+ height: auto;
1575
+ display: block;
1576
+ }
1577
+ .showcase-title {
1578
+ position: relative;
1579
+ font-size: 28px;
1580
+ font-weight: 700;
1581
+ color: #fff;
1582
+ text-align: center;
1583
+ line-height: 1.2;
1584
+ }
1585
+ .showcase-desc {
1586
+ position: relative;
1587
+ font-size: 15px;
1588
+ font-weight: 500;
1589
+ color: #fff;
1590
+ text-align: center;
1591
+ line-height: 1.5;
1592
+ max-width: 380px;
1593
+ }
1594
+ .showcase-status {
1595
+ position: relative;
1596
+ display: flex;
1597
+ align-items: center;
1598
+ gap: 8px;
1599
+ color: #fff;
1600
+ font-size: 14px;
1601
+ font-weight: 700;
1602
+ }
1603
+ .showcase-dot {
1604
+ width: 8px;
1605
+ height: 8px;
1606
+ border-radius: 50%;
1607
+ background: #4ade80;
1608
+ box-shadow: 0 0 14px rgba(74, 222, 128, 0.7);
1609
+ }
1610
+ .showcase-progress {
1611
+ position: relative;
1612
+ width: 300px;
1613
+ height: 7px;
1614
+ overflow: hidden;
1615
+ border-radius: 999px;
1616
+ background: rgba(255, 255, 255, 0.18);
1617
+ }
1618
+ .showcase-progress-fill {
1619
+ width: 18%;
1620
+ height: 100%;
1621
+ border-radius: inherit;
1622
+ background: linear-gradient(90deg, #06e3fa, #4fdb5e);
1623
+ }
1624
+ #text-showcase {
1625
+ top: 380px;
1626
+ left: 1100px;
1627
+ }
1628
+
1629
+ /* Pill chips */
1630
+ .pill-text {
1631
+ width: 130px;
1632
+ height: 36px;
1633
+ position: absolute;
1634
+ display: flex;
1635
+ align-items: center;
1636
+ justify-content: center;
1637
+ gap: 8px;
1638
+ border-radius: 40px;
1639
+ background: linear-gradient(130deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.1));
1640
+ border: 1px solid rgba(255, 255, 255, 0.34);
1641
+ box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.48);
1642
+ overflow: hidden;
1643
+ }
1644
+ .pill-dot {
1645
+ position: relative;
1646
+ width: 8px;
1647
+ height: 8px;
1648
+ border-radius: 50%;
1649
+ flex-shrink: 0;
1650
+ }
1651
+ .dot-green {
1652
+ background: #4ade80;
1653
+ }
1654
+ .dot-blue {
1655
+ background: #60a5fa;
1656
+ }
1657
+ .dot-violet {
1658
+ background: #a78bfa;
1659
+ }
1660
+ .pill-label {
1661
+ position: relative;
1662
+ font-size: 13px;
1663
+ font-weight: 600;
1664
+ color: #fff;
1665
+ }
1666
+ #text-pill1 {
1667
+ top: 720px;
1668
+ left: 300px;
1669
+ }
1670
+ #text-pill2 {
1671
+ top: 720px;
1672
+ left: 460px;
1673
+ }
1674
+ #text-pill3 {
1675
+ top: 720px;
1676
+ left: 620px;
1677
+ }
1678
+ </style>
1679
+ <style id="popost-fit">
1680
+ html, body { margin: 0 !important; width: 1280px; height: 720px; overflow: hidden !important; }
1681
+ :where(html, body) { background: #000000; }
1682
+ #popost-stage { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; transform-origin: 0 0; overflow: hidden; }
1683
+ </style>
1684
+ <script type="application/json" id="popost-params">
1685
+ {
1686
+ "about": "Frosted glass stat cards, showcase panel and pill chips over an aurora shader background",
1687
+ "class": "motion",
1688
+ "tags": [
1689
+ "html-in-canvas",
1690
+ "liquid-glass-html-in-canvas",
1691
+ "webgpu"
1692
+ ],
1693
+ "placeholders": "1 picture as slots (picture-1 ...) with a drawn stand-in",
1694
+ "seconds": 8,
1695
+ "params": [
1696
+ {
1697
+ "name": "fit",
1698
+ "type": "choice",
1699
+ "default": "contain",
1700
+ "options": [
1701
+ "contain",
1702
+ "cover"
1703
+ ],
1704
+ "what": "how the 1920x1080 composition is fitted into the canvas: whole with bars, or filling it and cropped"
1705
+ }
1706
+ ],
1707
+ "values": {}
1708
+ }
1709
+ </script>
1710
+ <script>
1711
+ /* popost: the scene's parameters stand in for HyperFrames variables; random numbers are seeded; the composition is
1712
+ scaled into the canvas; clips are shown and hidden from the scene's time. */
1713
+ (function () {
1714
+ var block = document.getElementById('popost-params');
1715
+ var values = block ? (JSON.parse(block.textContent).values || {}) : {};
1716
+ var vars = {};
1717
+ Object.keys(values).forEach(function (k) { if (k !== 'fit') vars[k] = values[k] === 'true' ? true : values[k] === 'false' ? false : values[k]; });
1718
+ window.__hyperframes = { getVariables: function () { return vars; } };
1719
+ var seed = 20240229;
1720
+ 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; };
1721
+ // HyperFrames variables as CSS custom properties (runtime/getVariables.ts, compositionLoader.ts). A mounted
1722
+ // composition's host lists its variables (data-popost-variables, written by the port): before the composition's
1723
+ // scripts run it gets those no rule gives it yet (an inherited value counts), and after them the rest; a value given
1724
+ // by a parameter always wins.
1725
+ var cssName = function (id) { return '--' + (String(id).toLowerCase().replace(/[^a-z0-9]+/g, '-').replace(/^-+|-+$/g, '') || 'node'); };
1726
+ var givenId = function (n) { return Object.keys(values).filter(function (id) { return id !== 'fit' && cssName(id) === n; })[0]; };
1727
+ var hostVars = function (h, early) {
1728
+ (h.getAttribute('data-popost-variables') || '').split(';').forEach(function (d) {
1729
+ var i = d.indexOf(':'), n = d.slice(0, i).trim(), k = givenId(n);
1730
+ if (i < 0 || !n) return;
1731
+ if (k !== undefined) h.style.setProperty(n, String(vars[k]));
1732
+ else if (!(h.style.getPropertyValue(n) || (early ? getComputedStyle(h).getPropertyValue(n) : '')).trim()) h.style.setProperty(n, d.slice(i + 1).trim());
1733
+ });
1734
+ };
1735
+ // Root-level clips laid out as HyperFrames lays them out (runtime/init.ts, applyCompositionSizing and applyClipLayout):
1736
+ // its root composition (one marked data-root="true", else the first element with a data-composition-id, which is the
1737
+ // page's <html> when that has one) gets its declared size, a position and overflow hidden; each child of it with a
1738
+ // data-start is placed absolute unless it is absolute or fixed already, and given its declared size, or 100% where it
1739
+ // measures 0. A composition box deeper in the page keeps the position its page gives it.
1740
+ var layout = function () {
1741
+ var hroot = document.querySelector('[data-composition-id][data-root="true"]') || document.querySelector('[data-composition-id]');
1742
+ if (!hroot) return;
1743
+ var px = function (v) { var n = parseFloat(v); return isFinite(n) && n > 0 ? n + 'px' : null; };
1744
+ var rw = px(hroot.getAttribute('data-width')), rh = px(hroot.getAttribute('data-height'));
1745
+ if (rw) { hroot.style.width = rw; hroot.style.setProperty('--comp-width', rw); }
1746
+ if (rh) { hroot.style.height = rh; hroot.style.setProperty('--comp-height', rh); }
1747
+ if (!hroot.style.position) hroot.style.position = 'relative';
1748
+ hroot.style.overflow = 'hidden';
1749
+ Array.prototype.forEach.call(hroot.children, function (el) {
1750
+ if (/^(SCRIPT|STYLE|LINK|META)$/.test(el.tagName) || !el.hasAttribute('data-start')) return;
1751
+ var none = el.style.getPropertyValue('display') === 'none', priority = el.style.getPropertyPriority('display');
1752
+ if (none) el.style.removeProperty('display');
1753
+ var cs = getComputedStyle(el);
1754
+ if (cs.position !== 'absolute' && cs.position !== 'fixed') el.style.position = 'absolute';
1755
+ if (el.tagName !== 'AUDIO') {
1756
+ var byFile = /^(IMG|VIDEO)$/.test(el.tagName), fw = px(el.getAttribute('data-width')), fh = px(el.getAttribute('data-height'));
1757
+ 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%';
1758
+ 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%';
1759
+ }
1760
+ if (none) el.style.setProperty('display', 'none', priority);
1761
+ });
1762
+ };
1763
+ // HyperFrames loads a mounted composition after it has laid out the page, so its scripts see the host placed: each
1764
+ // script of a mounted composition calls this first (the port puts the call there).
1765
+ window.__popostMount = function (script) {
1766
+ var h = script && script.closest ? script.closest('[data-popost-host]') : null;
1767
+ if (!h || h.__popostMounted) return;
1768
+ h.__popostMounted = true;
1769
+ layout();
1770
+ hostVars(h, true);
1771
+ };
1772
+ window.__popostFit = function () {
1773
+ // 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.
1774
+ var size = /width: (\d+)px; height: (\d+)px;/.exec(document.getElementById('popost-fit').textContent);
1775
+ var W = 1920, H = 1080, s = document.getElementById('popost-stage'), cw = Number(size[1]), ch = Number(size[2]);
1776
+ var k = (values.fit === 'cover' ? Math.max : Math.min)(cw / W, ch / H);
1777
+ s.style.transform = 'translate(' + (cw - W * k) / 2 + 'px,' + (ch - H * k) / 2 + 'px) scale(' + k + ')';
1778
+ // The page's own declared variables on its root element (runtime/getVariables.ts, injectCompositionCssVariables):
1779
+ // each default where no rule defines its property, a value given by a parameter always.
1780
+ Array.prototype.forEach.call(document.querySelectorAll('[data-popost-host]'), function (h) { hostVars(h, false); });
1781
+ layout();
1782
+ // Timed elements as HyperFrames has them (runtime/clipTree.ts, clipWindow.ts): every element with a data-start but the
1783
+ // root composition, from its start plus the starts of the compositions it sits in, for its data-duration (a
1784
+ // composition without one: its timeline's length); one that runs to the end of the root keeps its last frame.
1785
+ var root = s.querySelector('[data-composition-id]');
1786
+ 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'))); });
1787
+ var windows = clips.map(function (c) {
1788
+ var a = parseFloat(c.getAttribute('data-start')), d = parseFloat(c.getAttribute('data-duration')), id = c.getAttribute('data-composition-id');
1789
+ 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'));
1790
+ var tl = !(d > 0) && id && window.__timelines && window.__timelines[id];
1791
+ return [a, d > 0 ? d : tl && tl.duration ? tl.duration() : Infinity];
1792
+ });
1793
+ var rootLength = parseFloat(root && root.getAttribute('data-duration'));
1794
+ // A mounted composition that starts later in its host runs on its own time.
1795
+ [].forEach(function (m) {
1796
+ var tl = window.__timelines && window.__timelines[m.id];
1797
+ 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; } };
1798
+ });
1799
+ var scene = (window.__popostScene = window.__popostScene || {}), before = scene.render;
1800
+ scene.render = function (seconds, fps) {
1801
+ if (before) before(seconds, fps);
1802
+ for (var i = 0; i < clips.length; i++) {
1803
+ var a = windows[i][0], end = a + windows[i][1];
1804
+ clips[i].style.visibility = seconds >= a - 1e-6 && (seconds < end - 1e-6 || end >= rootLength - 1e-6) ? 'visible' : 'hidden';
1805
+ }
1806
+ };
1807
+ };
1808
+ })();
1809
+ </script>
1810
+ <script type="application/json" id="popost-cues">[{"at":0,"cue":"swish","gain":0.4}]</script>
1811
+ </head>
1812
+ <body>
1813
+ <div id="popost-stage">
1814
+ <div
1815
+ id="root"
1816
+ data-composition-id="liquid-glass-widgets"
1817
+ data-width="1920"
1818
+ data-height="1080"
1819
+ data-start="0"
1820
+ data-duration="8"
1821
+ data-root="true"
1822
+ >
1823
+ <canvas id="three-canvas" width="1920" height="1080"></canvas>
1824
+
1825
+ <canvas id="glass-canvas" layoutsubtree width="1920" height="1080">
1826
+ <div id="glass-stat1" class="glass-panel stat-card liquid-glass"></div>
1827
+ <div id="glass-stat2" class="glass-panel stat-card liquid-glass"></div>
1828
+ <div id="glass-stat3" class="glass-panel stat-card liquid-glass"></div>
1829
+ <div id="glass-showcase" class="glass-panel showcase-card liquid-glass"></div>
1830
+ <div id="glass-pill1" class="glass-panel pill-chip liquid-glass"></div>
1831
+ <div id="glass-pill2" class="glass-panel pill-chip liquid-glass"></div>
1832
+ <div id="glass-pill3" class="glass-panel pill-chip liquid-glass"></div>
1833
+ </canvas>
1834
+
1835
+
1836
+ <div id="text-stat1" class="text-overlay stat-text">
1837
+ <span class="stat-label">Temperature</span>
1838
+ <span class="stat-value"
1839
+ ><span id="temp-value">21</span><span class="stat-unit">&deg;</span></span
1840
+ >
1841
+ <div class="mini-meter"><div id="temp-meter" class="mini-meter-fill"></div></div>
1842
+ </div>
1843
+ <div id="text-stat2" class="text-overlay stat-text">
1844
+ <span class="stat-label">Battery</span>
1845
+ <div class="battery-shell"><div id="battery-fill" class="battery-fill"></div></div>
1846
+ <span class="stat-value"
1847
+ ><span id="battery-value">87</span><span class="stat-unit">%</span></span
1848
+ >
1849
+ </div>
1850
+ <div id="text-stat3" class="text-overlay stat-text">
1851
+ <span class="stat-label">Steps</span>
1852
+ <div id="steps-ring" class="steps-ring">
1853
+ <div id="steps-value" class="steps-ring-inner">8.2K</div>
1854
+ </div>
1855
+ </div>
1856
+
1857
+
1858
+ <div id="text-showcase" class="text-overlay showcase-text">
1859
+ <div class="showcase-icon">
1860
+ <img class="showcase-logo" alt="HyperFrames" / style="background: repeating-linear-gradient(45deg, #3d5a80 0 40px, #98c1d9 40px 80px);" src="data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%221280%22%20height%3D%22720%22%20viewBox%3D%220%200%201280%20720%22%20preserveAspectRatio%3D%22xMidYMid%20slice%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22g%22%20x2%3D%221%22%20y2%3D%221%22%3E%3Cstop%20offset%3D%220%22%20stop-color%3D%22%233d5a80%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%2398c1d9%22%2F%3E%3C%2FlinearGradient%3E%3Cpattern%20id%3D%22s%22%20width%3D%2296%22%20height%3D%2296%22%20patternUnits%3D%22userSpaceOnUse%22%20patternTransform%3D%22rotate%2845%29%22%3E%3Crect%20width%3D%2248%22%20height%3D%2296%22%20fill%3D%22%23fff%22%20fill-opacity%3D%22.14%22%2F%3E%3C%2Fpattern%3E%3C%2Fdefs%3E%3Crect%20width%3D%221280%22%20height%3D%22720%22%20fill%3D%22url%28%23g%29%22%2F%3E%3Crect%20width%3D%221280%22%20height%3D%22720%22%20fill%3D%22url%28%23s%29%22%2F%3E%3Ccircle%20cx%3D%22640%22%20cy%3D%22360%22%20r%3D%22210%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-opacity%3D%22.55%22%20stroke-width%3D%2228%22%2F%3E%3Ctext%20x%3D%22640%22%20y%3D%22440%22%20font-family%3D%22Arial%2C%20Helvetica%2C%20sans-serif%22%20font-size%3D%22240%22%20font-weight%3D%22700%22%20text-anchor%3D%22middle%22%20fill%3D%22%23fff%22%20fill-opacity%3D%22.9%22%3EA%3C%2Ftext%3E%3C%2Fsvg%3E" data-slot="picture-1">
1861
+ </div>
1862
+ <div class="showcase-title">Preview pipeline</div>
1863
+ <div class="showcase-desc">
1864
+ Write HTML, render video. Ship compositions at the speed of code.
1865
+ </div>
1866
+ <div class="showcase-status">
1867
+ <span class="showcase-dot" id="showcase-dot"></span
1868
+ ><span id="showcase-status">Encoding frames</span>
1869
+ </div>
1870
+ <div class="showcase-progress">
1871
+ <div id="showcase-progress" class="showcase-progress-fill"></div>
1872
+ </div>
1873
+ </div>
1874
+
1875
+
1876
+ <div id="text-pill1" class="text-overlay pill-text">
1877
+ <span class="pill-dot dot-green"></span>
1878
+ <span class="pill-label">Connected</span>
1879
+ </div>
1880
+ <div id="text-pill2" class="text-overlay pill-text">
1881
+ <span class="pill-dot dot-blue"></span>
1882
+ <span class="pill-label">Bluetooth</span>
1883
+ </div>
1884
+ <div id="text-pill3" class="text-overlay pill-text">
1885
+ <span class="pill-dot dot-violet"></span>
1886
+ <span class="pill-label">Focus</span>
1887
+ </div>
1888
+
1889
+ <div
1890
+ id="driver"
1891
+ class="clip"
1892
+ data-start="0"
1893
+ data-duration="8"
1894
+ data-track-index="0"
1895
+ style="position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none"
1896
+ ></div>
1897
+ </div>
1898
+
1899
+ <script>
1900
+ var W = 1920,
1901
+ H = 1080,
1902
+ DURATION = 8;
1903
+
1904
+ /* ── Three.js Aurora Shader ─────────────────────────────────────── */
1905
+ var vs = "varying vec2 vUv; void main() { vUv = uv; gl_Position = vec4(position, 1.0); }";
1906
+ var fs = [
1907
+ "precision highp float;",
1908
+ "varying vec2 vUv;",
1909
+ "uniform float uTime;",
1910
+ "vec3 mod289(vec3 x){return x-floor(x*(1.0/289.0))*289.0;}",
1911
+ "vec4 mod289(vec4 x){return x-floor(x*(1.0/289.0))*289.0;}",
1912
+ "vec4 permute(vec4 x){return mod289(((x*34.0)+1.0)*x);}",
1913
+ "vec4 taylorInvSqrt(vec4 r){return 1.79284291400159-0.85373472095314*r;}",
1914
+ "float snoise(vec3 v){",
1915
+ " const vec2 C=vec2(1.0/6.0,1.0/3.0);const vec4 D=vec4(0.0,0.5,1.0,2.0);",
1916
+ " vec3 i=floor(v+dot(v,C.yyy));vec3 x0=v-i+dot(i,C.xxx);",
1917
+ " vec3 g=step(x0.yzx,x0.xyz);vec3 l=1.0-g;",
1918
+ " vec3 i1=min(g.xyz,l.zxy);vec3 i2=max(g.xyz,l.zxy);",
1919
+ " vec3 x1=x0-i1+C.xxx;vec3 x2=x0-i2+C.yyy;vec3 x3=x0-D.yyy;",
1920
+ " i=mod289(i);",
1921
+ " vec4 p=permute(permute(permute(i.z+vec4(0.0,i1.z,i2.z,1.0))+i.y+vec4(0.0,i1.y,i2.y,1.0))+i.x+vec4(0.0,i1.x,i2.x,1.0));",
1922
+ " float n_=0.142857142857;vec3 ns=n_*D.wyz-D.xzx;",
1923
+ " vec4 j=p-49.0*floor(p*ns.z*ns.z);vec4 x_=floor(j*ns.z);vec4 y_=floor(j-7.0*x_);",
1924
+ " vec4 x=x_*ns.x+ns.yyyy;vec4 y=y_*ns.x+ns.yyyy;vec4 h=1.0-abs(x)-abs(y);",
1925
+ " vec4 b0=vec4(x.xy,y.xy);vec4 b1=vec4(x.zw,y.zw);",
1926
+ " vec4 s0=floor(b0)*2.0+1.0;vec4 s1=floor(b1)*2.0+1.0;",
1927
+ " vec4 sh=-step(h,vec4(0.0));",
1928
+ " vec4 a0=b0.xzyw+s0.xzyw*sh.xxyy;vec4 a1=b1.xzyw+s1.xzyw*sh.zzww;",
1929
+ " vec3 p0=vec3(a0.xy,h.x);vec3 p1=vec3(a0.zw,h.y);vec3 p2=vec3(a1.xy,h.z);vec3 p3=vec3(a1.zw,h.w);",
1930
+ " vec4 norm=taylorInvSqrt(vec4(dot(p0,p0),dot(p1,p1),dot(p2,p2),dot(p3,p3)));",
1931
+ " p0*=norm.x;p1*=norm.y;p2*=norm.z;p3*=norm.w;",
1932
+ " vec4 m=max(0.6-vec4(dot(x0,x0),dot(x1,x1),dot(x2,x2),dot(x3,x3)),0.0);m=m*m;",
1933
+ " return 42.0*dot(m*m,vec4(dot(p0,x0),dot(p1,x1),dot(p2,x2),dot(p3,x3)));",
1934
+ "}",
1935
+ "void main(){",
1936
+ " vec2 uv=vUv;float ar=1920.0/1080.0;vec2 p=vec2(uv.x*ar,uv.y);float t=uTime*0.06;",
1937
+ " float wx=snoise(vec3(p*1.4,t*0.5))*0.2;float wy=snoise(vec3(p*1.4+100.0,t*0.5))*0.2;",
1938
+ " vec2 wp=p+vec2(wx,wy);",
1939
+ " vec3 base=mix(vec3(0.10,0.02,0.22),vec3(0.04,0.10,0.25),smoothstep(0.0,1.0,uv.x*0.6+uv.y*0.4));",
1940
+ " float angle=0.65;float ridgeUv=dot(wp,vec2(cos(angle),sin(angle)));",
1941
+ " float ridge1=sin(ridgeUv*8.0+t*2.0+snoise(vec3(wp*0.8,t))*1.5);",
1942
+ " float ridge2=sin(ridgeUv*5.5-t*1.4+snoise(vec3(wp*1.2+50.0,t*0.7))*2.0);",
1943
+ " float ridge3=sin(ridgeUv*12.0+t*3.0+snoise(vec3(wp*0.6+80.0,t*0.4))*1.0);",
1944
+ " float crease1=pow(abs(ridge1),0.35)*sign(ridge1)*0.5+0.5;",
1945
+ " float crease2=pow(abs(ridge2),0.4)*sign(ridge2)*0.5+0.5;",
1946
+ " float crease3=pow(abs(ridge3),0.5)*sign(ridge3)*0.5+0.5;",
1947
+ " vec3 warm=mix(vec3(0.9,0.4,0.08),vec3(0.95,0.65,0.15),crease1);",
1948
+ " float warmZone=smoothstep(0.15,0.75,uv.x+uv.y*0.4+snoise(vec3(uv*2.0,t))*0.3);",
1949
+ " vec3 cool=mix(vec3(0.02,0.4,0.55),vec3(0.25,0.7,0.82),crease2);",
1950
+ " float coolZone=smoothstep(0.25,0.85,1.2-uv.x+uv.y*0.5+snoise(vec3(uv*2.0+40.0,t*0.8))*0.25);",
1951
+ " vec3 hot=mix(vec3(0.8,0.1,0.4),vec3(0.6,0.08,0.65),crease3);",
1952
+ " float hotZone=smoothstep(0.5,0.9,snoise(vec3(uv*2.5+20.0,t*0.6))*0.5+0.5);",
1953
+ " vec3 col=base;",
1954
+ " col=mix(col,warm,warmZone*0.75*smoothstep(0.3,0.7,crease1));",
1955
+ " col=mix(col,cool,coolZone*0.65*smoothstep(0.2,0.65,crease2));",
1956
+ " col=mix(col,hot,hotZone*0.5*smoothstep(0.35,0.8,crease3));",
1957
+ " float edgeGlow=pow(1.0-abs(ridge1),6.0)*0.4+pow(1.0-abs(ridge2),5.0)*0.25;",
1958
+ " col+=edgeGlow*mix(warm,cool,uv.x)*0.8;",
1959
+ " col*=1.0-pow(abs(ridge1),4.0)*0.15;",
1960
+ " float vig=1.0-smoothstep(0.5,1.5,length((uv-0.5)*vec2(1.3,1.0)));",
1961
+ " col*=0.65+vig*0.5;",
1962
+ " float luma=dot(col,vec3(0.299,0.587,0.114));col=mix(vec3(luma),col,1.5);",
1963
+ " col=clamp(col,0.0,1.0);col=pow(col,vec3(0.9));",
1964
+ " gl_FragColor=vec4(col,1.0);",
1965
+ "}",
1966
+ ].join("\n");
1967
+
1968
+ /* ── Three.js Setup ─────────────────────────────────────────────── */
1969
+ var threeCanvas = document.getElementById("three-canvas");
1970
+ var renderer = new THREE.WebGLRenderer({ canvas: threeCanvas, alpha: false });
1971
+ renderer.setSize(W, H, false);
1972
+ renderer.setPixelRatio(1);
1973
+
1974
+ var scene = new THREE.Scene();
1975
+ var camera = new THREE.OrthographicCamera(-1, 1, 1, -1, 0, 1);
1976
+ var uniforms = { uTime: { value: 0 } };
1977
+ var shaderMat = new THREE.ShaderMaterial({
1978
+ vertexShader: vs,
1979
+ fragmentShader: fs,
1980
+ uniforms: uniforms,
1981
+ });
1982
+ var quad = new THREE.Mesh(new THREE.PlaneGeometry(2, 2), shaderMat);
1983
+ scene.add(quad);
1984
+
1985
+ /* ── Glass Canvas ───────────────────────────────────────────────── */
1986
+ var glassCanvas = document.getElementById("glass-canvas");
1987
+ var ctx = glassCanvas.getContext("2d");
1988
+ var lg = new LiquidGlass.LiquidGlassCanvas(glassCanvas);
1989
+ var lgReady = false;
1990
+
1991
+ function renderGlass(time) {
1992
+ if (!lgReady) return;
1993
+ uniforms.uTime.value = time;
1994
+ renderer.render(scene, camera);
1995
+ ctx.clearRect(0, 0, W, H);
1996
+ ctx.drawImage(threeCanvas, 0, 0, W, H);
1997
+ lg.renderGlassElements();
1998
+ }
1999
+
2000
+ function requestGlassRender(time) {
2001
+ if (glassCanvas.requestPaint) {
2002
+ glassCanvas.onpaint = function () {
2003
+ renderGlass(time);
2004
+ };
2005
+ glassCanvas.requestPaint();
2006
+ return;
2007
+ }
2008
+ renderGlass(time);
2009
+ }
2010
+
2011
+ lg.waitForInit().then(function (ok) {
2012
+ if (!ok) return;
2013
+ lgReady = true;
2014
+ requestGlassRender(0);
2015
+ });
2016
+
2017
+ /* ── GSAP Timeline ──────────────────────────────────────────────── */
2018
+ window.__timelines = window.__timelines || {};
2019
+ var tl = gsap.timeline({ paused: true });
2020
+
2021
+ /* Glass + text element pairs */
2022
+ var s1g = document.getElementById("glass-stat1");
2023
+ var s2g = document.getElementById("glass-stat2");
2024
+ var s3g = document.getElementById("glass-stat3");
2025
+ var scg = document.getElementById("glass-showcase");
2026
+ var p1g = document.getElementById("glass-pill1");
2027
+ var p2g = document.getElementById("glass-pill2");
2028
+ var p3g = document.getElementById("glass-pill3");
2029
+ var s1t = document.getElementById("text-stat1");
2030
+ var s2t = document.getElementById("text-stat2");
2031
+ var s3t = document.getElementById("text-stat3");
2032
+ var sct = document.getElementById("text-showcase");
2033
+ var p1t = document.getElementById("text-pill1");
2034
+ var p2t = document.getElementById("text-pill2");
2035
+ var p3t = document.getElementById("text-pill3");
2036
+
2037
+ var tempValue = document.getElementById("temp-value");
2038
+ var batteryValue = document.getElementById("battery-value");
2039
+ var stepsValue = document.getElementById("steps-value");
2040
+ var stepsRing = document.getElementById("steps-ring");
2041
+ var showcaseStatus = document.getElementById("showcase-status");
2042
+ var tempCounter = { value: 21 };
2043
+ var batteryCounter = { value: 87 };
2044
+ var stepsCounter = { value: 8.2 };
2045
+
2046
+ // Glass panels (rasterized by the html-in-canvas API) animate top — the API
2047
+ // reads sub-pixel getComputedStyle().top, so layout-prop motion does not
2048
+ // stutter and the lint rule exempts them. Plain-DOM text overlays DO stutter on
2049
+ // layout props, so they animate the transform equivalent (y). y is relative to
2050
+ // each text element's CSS resting top (stats 300, showcase 380, pills 720), so the
2051
+ // initial seed to visual 1160 is y = 1160 - restingTop.
2052
+ var glassPanels = [s1g, s2g, s3g, scg, p1g, p2g, p3g];
2053
+ var statText = [s1t, s2t, s3t];
2054
+ var showcaseText = sct;
2055
+ var pillText = [p1t, p2t, p3t];
2056
+ gsap.set(glassPanels, { opacity: 1, top: 1160 });
2057
+ gsap.set(statText, { opacity: 1, y: 860 }); // 1160 - 300
2058
+ gsap.set(showcaseText, { opacity: 1, y: 780 }); // 1160 - 380
2059
+ gsap.set(pillText, { opacity: 1, y: 440 }); // 1160 - 720
2060
+
2061
+ tl.to(s1g, { top: 300, duration: 0.46, ease: "power3.out" }, 0.12);
2062
+ tl.to(s1t, { y: 0, duration: 0.46, ease: "power3.out" }, 0.12); // 300 - 300
2063
+ tl.to(s2g, { top: 300, duration: 0.46, ease: "power3.out" }, 0.24);
2064
+ tl.to(s2t, { y: 0, duration: 0.46, ease: "power3.out" }, 0.24); // 300 - 300
2065
+ tl.to(s3g, { top: 300, duration: 0.46, ease: "power3.out" }, 0.36);
2066
+ tl.to(s3t, { y: 0, duration: 0.46, ease: "power3.out" }, 0.36); // 300 - 300
2067
+ tl.to(scg, { top: 380, duration: 0.5, ease: "power3.out" }, 0.5);
2068
+ tl.to(sct, { y: 0, duration: 0.5, ease: "power3.out" }, 0.5); // 380 - 380
2069
+ tl.to(p1g, { top: 720, duration: 0.32, ease: "power3.out" }, 0.9);
2070
+ tl.to(p1t, { y: 0, duration: 0.32, ease: "power3.out" }, 0.9); // 720 - 720
2071
+ tl.to(p2g, { top: 720, duration: 0.32, ease: "power3.out" }, 1.0);
2072
+ tl.to(p2t, { y: 0, duration: 0.32, ease: "power3.out" }, 1.0); // 720 - 720
2073
+ tl.to(p3g, { top: 720, duration: 0.32, ease: "power3.out" }, 1.1);
2074
+ tl.to(p3t, { y: 0, duration: 0.32, ease: "power3.out" }, 1.1); // 720 - 720
2075
+
2076
+ tl.to("#temp-meter", { width: "76%", duration: 1.7, ease: "power2.out" }, 0.9);
2077
+ tl.to(
2078
+ tempCounter,
2079
+ {
2080
+ value: 25,
2081
+ duration: 2.2,
2082
+ ease: "power2.out",
2083
+ onUpdate: function () {
2084
+ tempValue.textContent = Math.round(tempCounter.value);
2085
+ },
2086
+ },
2087
+ 0.9,
2088
+ );
2089
+ tl.to("#battery-fill", { width: "91%", duration: 2.4, ease: "power2.out" }, 1.05);
2090
+ tl.to(
2091
+ batteryCounter,
2092
+ {
2093
+ value: 91,
2094
+ duration: 2.4,
2095
+ ease: "power2.out",
2096
+ onUpdate: function () {
2097
+ batteryValue.textContent = Math.round(batteryCounter.value);
2098
+ },
2099
+ },
2100
+ 1.05,
2101
+ );
2102
+ tl.to(
2103
+ stepsCounter,
2104
+ {
2105
+ value: 9.1,
2106
+ duration: 2.6,
2107
+ ease: "power2.out",
2108
+ onUpdate: function () {
2109
+ var degrees = Math.round(stepsCounter.value * 31.4);
2110
+ stepsValue.textContent = stepsCounter.value.toFixed(1) + "K";
2111
+ stepsRing.style.background =
2112
+ "conic-gradient(#a78bfa 0deg, #06e3fa " +
2113
+ degrees +
2114
+ "deg, rgba(255, 255, 255, 0.18) " +
2115
+ degrees +
2116
+ "deg)";
2117
+ },
2118
+ },
2119
+ 1.2,
2120
+ );
2121
+ tl.to("#showcase-progress", { width: "92%", duration: 4.1, ease: "none" }, 1.2);
2122
+ tl.to(
2123
+ "#showcase-dot",
2124
+ { scale: 1.5, duration: 0.25, ease: "power2.out", yoyo: true, repeat: 7 },
2125
+ 1.4,
2126
+ );
2127
+ tl.call(
2128
+ function () {
2129
+ showcaseStatus.textContent = "Preview ready";
2130
+ },
2131
+ null,
2132
+ 5.2,
2133
+ );
2134
+ tl.to(scg, { top: "-=10", duration: 0.2, ease: "power2.out", yoyo: true, repeat: 1 }, 5.2);
2135
+ tl.to(sct, { y: "-=10", duration: 0.2, ease: "power2.out", yoyo: true, repeat: 1 }, 5.2);
2136
+ tl.to(
2137
+ ".pill-dot",
2138
+ { scale: 1.55, duration: 0.2, ease: "power2.out", stagger: 0.12, yoyo: true, repeat: 3 },
2139
+ 2.2,
2140
+ );
2141
+
2142
+ tl.to(
2143
+ [s1g, s2g, s3g],
2144
+ { top: "-=12", duration: 0.2, ease: "power2.out", yoyo: true, repeat: 1 },
2145
+ 5.7,
2146
+ );
2147
+ tl.to(
2148
+ [s1t, s2t, s3t],
2149
+ { y: "-=12", duration: 0.2, ease: "power2.out", yoyo: true, repeat: 1 },
2150
+ 5.7,
2151
+ );
2152
+ tl.to(
2153
+ [s1g, s2g, s3g, scg, p1g, p2g, p3g],
2154
+ { top: "+=760", duration: 0.42, ease: "power2.in" },
2155
+ 6.74,
2156
+ );
2157
+ tl.to(
2158
+ [s1t, s2t, s3t, sct, p1t, p2t, p3t],
2159
+ { y: "+=760", duration: 0.42, ease: "power2.in" },
2160
+ 6.74,
2161
+ );
2162
+
2163
+ /* Duration driver */
2164
+ tl.to({ v: 0 }, { v: 1, duration: DURATION, ease: "none" }, 0);
2165
+
2166
+ tl.eventCallback("onUpdate", function () {
2167
+ requestGlassRender(tl.time());
2168
+ });
2169
+
2170
+ window.__timelines["liquid-glass-widgets"] = tl;
2171
+ </script>
2172
+ </div>
2173
+ <script>window.__popostFit();</script>
2174
+ </body>
2175
+ </html>