framefields 2.5.5 → 2.6.0

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 (292) hide show
  1. package/README.md +11 -0
  2. package/dist/audio/index.mjs +10 -10
  3. package/dist/{audio-C9euVW4K.mjs → audio-QBA2VogL.mjs} +3 -3
  4. package/dist/{audio-C9euVW4K.mjs.map → audio-QBA2VogL.mjs.map} +1 -1
  5. package/dist/cli.mjs +866 -16
  6. package/dist/cli.mjs.map +1 -1
  7. package/dist/components/index.d.mts +2 -2
  8. package/dist/components/index.mjs +43 -43
  9. package/dist/{dist-BuirkW-f.mjs → dist-CDwWQYg3.mjs} +2 -2
  10. package/dist/dist-CDwWQYg3.mjs.map +1 -0
  11. package/dist/{dist-DBdxM6xv.mjs → dist-nHCqVk-e.mjs} +3 -3
  12. package/dist/dist-nHCqVk-e.mjs.map +1 -0
  13. package/dist/effects/index.mjs +34 -34
  14. package/dist/{effects-B263lgUi.mjs → effects-C-6I4iYW.mjs} +2 -2
  15. package/dist/{effects-B263lgUi.mjs.map → effects-C-6I4iYW.mjs.map} +1 -1
  16. package/dist/fonts/index.d.mts +1 -1
  17. package/dist/fonts/index.mjs +2 -2
  18. package/dist/{fonts-DNx6ps2p.mjs → fonts-BieW3VWV.mjs} +7 -3
  19. package/dist/fonts-BieW3VWV.mjs.map +1 -0
  20. package/dist/{gpu-BRBIoxMC.mjs → gpu-Bb4WmYYH.mjs} +2 -2
  21. package/dist/{gpu-BRBIoxMC.mjs.map → gpu-Bb4WmYYH.mjs.map} +1 -1
  22. package/dist/index-D-Gnyffj.d.mts.map +1 -1
  23. package/dist/{index-N1tMc5Z9.d.mts → index-E1IrPAm4.d.mts} +629 -203
  24. package/dist/index-E1IrPAm4.d.mts.map +1 -0
  25. package/dist/{index-CalU-mpZ.d.mts → index-j5LGVVbm.d.mts} +3 -1
  26. package/dist/index-j5LGVVbm.d.mts.map +1 -0
  27. package/dist/index.d.mts +3 -3
  28. package/dist/index.mjs +50 -50
  29. package/dist/preview/index.mjs +10 -10
  30. package/dist/{preview-ChR8Z8Fm.mjs → preview-D6jS38Di.mjs} +2 -2
  31. package/dist/{preview-ChR8Z8Fm.mjs.map → preview-D6jS38Di.mjs.map} +1 -1
  32. package/dist/preview-engine/{chunk-ZJLNXN7W.mjs → chunk-AYTP6OGO.mjs} +6 -6
  33. package/dist/preview-engine/chunk-MLAIEIUF.mjs +1974 -0
  34. package/dist/preview-engine/chunk-W3I7LKDV.mjs +5 -0
  35. package/dist/preview-engine/chunk-ZMMNN77R.mjs +3 -0
  36. package/dist/preview-engine/components.mjs +1 -1
  37. package/dist/preview-engine/fonts.mjs +1 -1
  38. package/dist/preview-engine/framefields.mjs +1 -1
  39. package/dist/preview-engine/player.mjs +1 -1
  40. package/dist/preview-engine/{renderers-WZEV464O.mjs → renderers-4G3UOPA7.mjs} +1 -1
  41. package/dist/{program-O2bWX0cs.mjs → program-Bf4yHbHC.mjs} +19 -3
  42. package/dist/program-Bf4yHbHC.mjs.map +1 -0
  43. package/dist/registry/annotate.json +1 -1
  44. package/dist/registry/app-frame.json +1 -1
  45. package/dist/registry/backdrop.json +3 -3
  46. package/dist/registry/before-after.json +1 -1
  47. package/dist/registry/callout.json +1 -1
  48. package/dist/registry/captions.json +7 -1
  49. package/dist/registry/card-stack.json +3 -3
  50. package/dist/registry/chat-thread.json +7 -1
  51. package/dist/registry/code-block.json +8 -2
  52. package/dist/registry/confetti.json +1 -1
  53. package/dist/registry/device-frame.json +2 -1
  54. package/dist/registry/focus-zoom.json +1 -1
  55. package/dist/registry/logo-reveal.json +1 -1
  56. package/dist/registry/lower-third.json +1 -1
  57. package/dist/registry/meter.json +1 -1
  58. package/dist/registry/mouse-pointer.json +1 -1
  59. package/dist/registry/selection.json +3 -3
  60. package/dist/registry/spotlight.json +1 -1
  61. package/dist/registry/terminal.json +7 -1
  62. package/dist/registry/text-reveal.json +2 -1
  63. package/dist/registry/title-card.json +1 -1
  64. package/dist/registry/toasts.json +1 -1
  65. package/dist/registry/touch-point.json +4 -4
  66. package/dist/registry/waveform.json +3 -3
  67. package/dist/registry/word-cycle.json +2 -2
  68. package/dist/renderer/index.mjs +2 -2
  69. package/dist/renderer-4FQmduPw.mjs +5 -0
  70. package/dist/{renderer-DW21AyEv.mjs → renderer-4v6XYAiX.mjs} +3 -3
  71. package/dist/{renderer-DW21AyEv.mjs.map → renderer-4v6XYAiX.mjs.map} +1 -1
  72. package/dist/{renderer-YFHESw3v.mjs → renderer-79mO0b9Y.mjs} +3 -3
  73. package/dist/{renderer-YFHESw3v.mjs.map → renderer-79mO0b9Y.mjs.map} +1 -1
  74. package/dist/{renderer-DtqiWq1m.mjs → renderer-AOZWHGT3.mjs} +3 -3
  75. package/dist/{renderer-DtqiWq1m.mjs.map → renderer-AOZWHGT3.mjs.map} +1 -1
  76. package/dist/{renderer-Dw3K8KT9.mjs → renderer-B1Ox12RF.mjs} +2 -2
  77. package/dist/{renderer-Dw3K8KT9.mjs.map → renderer-B1Ox12RF.mjs.map} +1 -1
  78. package/dist/{renderer-DkM6Ikdf.mjs → renderer-B6vr-B0t.mjs} +3 -3
  79. package/dist/{renderer-DkM6Ikdf.mjs.map → renderer-B6vr-B0t.mjs.map} +1 -1
  80. package/dist/renderer-BBCpRuYU.mjs +5 -0
  81. package/dist/renderer-BBTo_jLO.mjs +5 -0
  82. package/dist/{renderer-CpDaUeCN.mjs → renderer-BDCS7k5X.mjs} +3 -3
  83. package/dist/{renderer-CpDaUeCN.mjs.map → renderer-BDCS7k5X.mjs.map} +1 -1
  84. package/dist/{renderer-DO1TeUqV.mjs → renderer-BFdgbqgW.mjs} +3 -3
  85. package/dist/{renderer-DO1TeUqV.mjs.map → renderer-BFdgbqgW.mjs.map} +1 -1
  86. package/dist/{renderer-CEAmByVW.mjs → renderer-BHgYRSu8.mjs} +2 -2
  87. package/dist/{renderer-CEAmByVW.mjs.map → renderer-BHgYRSu8.mjs.map} +1 -1
  88. package/dist/{renderer-CA_CwisV.mjs → renderer-BKssznKn.mjs} +2 -2
  89. package/dist/{renderer-CA_CwisV.mjs.map → renderer-BKssznKn.mjs.map} +1 -1
  90. package/dist/{renderer-DWG6EXGj.mjs → renderer-BL9vkn6m.mjs} +3 -3
  91. package/dist/{renderer-DWG6EXGj.mjs.map → renderer-BL9vkn6m.mjs.map} +1 -1
  92. package/dist/renderer-BLg66ZgG.mjs +5 -0
  93. package/dist/{renderer-RbMM6Njv.mjs → renderer-BQFxoNzi.mjs} +3 -3
  94. package/dist/{renderer-RbMM6Njv.mjs.map → renderer-BQFxoNzi.mjs.map} +1 -1
  95. package/dist/{renderer-x1xlZaH_.mjs → renderer-BQdn_qGp.mjs} +3 -3
  96. package/dist/{renderer-x1xlZaH_.mjs.map → renderer-BQdn_qGp.mjs.map} +1 -1
  97. package/dist/{renderer-DkOxEQsg.mjs → renderer-BR35Xp9n.mjs} +3 -3
  98. package/dist/{renderer-DkOxEQsg.mjs.map → renderer-BR35Xp9n.mjs.map} +1 -1
  99. package/dist/renderer-BScS8AzG.mjs +5 -0
  100. package/dist/{renderer-C2MaJKfY.mjs → renderer-BTjveb1Y.mjs} +3 -3
  101. package/dist/{renderer-C2MaJKfY.mjs.map → renderer-BTjveb1Y.mjs.map} +1 -1
  102. package/dist/renderer-Bb1cS5mJ.mjs +5 -0
  103. package/dist/{renderer-Dwh0jaor.mjs → renderer-Bbkf5EIi.mjs} +3 -3
  104. package/dist/{renderer-Dwh0jaor.mjs.map → renderer-Bbkf5EIi.mjs.map} +1 -1
  105. package/dist/{renderer-DsnV8tpW.mjs → renderer-BmgyvIC3.mjs} +3 -3
  106. package/dist/{renderer-DsnV8tpW.mjs.map → renderer-BmgyvIC3.mjs.map} +1 -1
  107. package/dist/{renderer-BfQdc3RM.mjs → renderer-Bpve7M6S.mjs} +69 -69
  108. package/dist/{renderer-BfQdc3RM.mjs.map → renderer-Bpve7M6S.mjs.map} +1 -1
  109. package/dist/renderer-Bpwd9zEY.mjs +5 -0
  110. package/dist/{renderer-C5QYI1Wu.mjs → renderer-BsnhAgrB.mjs} +2 -2
  111. package/dist/{renderer-C5QYI1Wu.mjs.map → renderer-BsnhAgrB.mjs.map} +1 -1
  112. package/dist/{renderer-BlU3Sh_0.mjs → renderer-By5xTRqB.mjs} +3 -3
  113. package/dist/{renderer-BlU3Sh_0.mjs.map → renderer-By5xTRqB.mjs.map} +1 -1
  114. package/dist/{renderer-D8m3fuRp.mjs → renderer-BzEQXAdl.mjs} +2 -2
  115. package/dist/{renderer-D8m3fuRp.mjs.map → renderer-BzEQXAdl.mjs.map} +1 -1
  116. package/dist/renderer-Bzyd9xi5.mjs +5 -0
  117. package/dist/{renderer-1NoJLLDa.mjs → renderer-C64g87yU.mjs} +3 -3
  118. package/dist/{renderer-1NoJLLDa.mjs.map → renderer-C64g87yU.mjs.map} +1 -1
  119. package/dist/{renderer-Daqvhwjp.mjs → renderer-C6Wb1TZT.mjs} +3 -3
  120. package/dist/{renderer-Daqvhwjp.mjs.map → renderer-C6Wb1TZT.mjs.map} +1 -1
  121. package/dist/{renderer-BWNQQZ12.mjs → renderer-CHPLHbAs.mjs} +3 -3
  122. package/dist/{renderer-BWNQQZ12.mjs.map → renderer-CHPLHbAs.mjs.map} +1 -1
  123. package/dist/{renderer-B5ZdkcMi.mjs → renderer-CJRu7lLH.mjs} +2 -2
  124. package/dist/{renderer-B5ZdkcMi.mjs.map → renderer-CJRu7lLH.mjs.map} +1 -1
  125. package/dist/{renderer-Bvizxddu.mjs → renderer-CMWUtfwn.mjs} +2 -2
  126. package/dist/{renderer-Bvizxddu.mjs.map → renderer-CMWUtfwn.mjs.map} +1 -1
  127. package/dist/{renderer-C3tdjg8B.mjs → renderer-CRkgyk08.mjs} +3 -3
  128. package/dist/{renderer-C3tdjg8B.mjs.map → renderer-CRkgyk08.mjs.map} +1 -1
  129. package/dist/renderer-CXVssx1k.mjs +5 -0
  130. package/dist/{renderer-DcApNxER.mjs → renderer-CY0BT6ok.mjs} +2 -2
  131. package/dist/{renderer-DcApNxER.mjs.map → renderer-CY0BT6ok.mjs.map} +1 -1
  132. package/dist/renderer-CYFiGLls.mjs +5 -0
  133. package/dist/{renderer-PhjHSS97.mjs → renderer-CYLP8sD6.mjs} +2 -2
  134. package/dist/{renderer-PhjHSS97.mjs.map → renderer-CYLP8sD6.mjs.map} +1 -1
  135. package/dist/{renderer-C6n8y6Pw.mjs → renderer-CY_1u6zi.mjs} +3 -3
  136. package/dist/{renderer-C6n8y6Pw.mjs.map → renderer-CY_1u6zi.mjs.map} +1 -1
  137. package/dist/renderer-C__BvvtP.mjs +5 -0
  138. package/dist/renderer-Ca3YZsoT.mjs +5 -0
  139. package/dist/{renderer-DADTT3ym.mjs → renderer-CcSBjtRa.mjs} +2 -2
  140. package/dist/{renderer-CnclEQdA.mjs → renderer-CgdplRri.mjs} +2 -2
  141. package/dist/{renderer-CnclEQdA.mjs.map → renderer-CgdplRri.mjs.map} +1 -1
  142. package/dist/{renderer-oR1LvHeO.mjs → renderer-Cn9tU_s5.mjs} +2 -2
  143. package/dist/{renderer-oR1LvHeO.mjs.map → renderer-Cn9tU_s5.mjs.map} +1 -1
  144. package/dist/renderer-CnM5iFj9.mjs +5 -0
  145. package/dist/{renderer-DHdFVpdH.mjs → renderer-Cqp_TUl_.mjs} +2 -2
  146. package/dist/{renderer-DHdFVpdH.mjs.map → renderer-Cqp_TUl_.mjs.map} +1 -1
  147. package/dist/{renderer-C8pJFxcL.mjs → renderer-CsOLHKFx.mjs} +2 -2
  148. package/dist/{renderer-C8pJFxcL.mjs.map → renderer-CsOLHKFx.mjs.map} +1 -1
  149. package/dist/{renderer-R5Lg65F8.mjs → renderer-D01RT3Ov.mjs} +2 -2
  150. package/dist/renderer-D1nZrvQx.mjs +5 -0
  151. package/dist/renderer-D6XjVQME.mjs +5 -0
  152. package/dist/{renderer-QQDU1b0Z.mjs → renderer-DAONCf_3.mjs} +3 -3
  153. package/dist/{renderer-QQDU1b0Z.mjs.map → renderer-DAONCf_3.mjs.map} +1 -1
  154. package/dist/{renderer-DTPmvL1i.mjs → renderer-DAfWLGfy.mjs} +3 -3
  155. package/dist/{renderer-DTPmvL1i.mjs.map → renderer-DAfWLGfy.mjs.map} +1 -1
  156. package/dist/{renderer-BvA4sQz5.mjs → renderer-DEeKkljI.mjs} +3 -3
  157. package/dist/{renderer-BvA4sQz5.mjs.map → renderer-DEeKkljI.mjs.map} +1 -1
  158. package/dist/{renderer-YBwN9uyj.mjs → renderer-DFYXjAIT.mjs} +5 -5
  159. package/dist/{renderer-YBwN9uyj.mjs.map → renderer-DFYXjAIT.mjs.map} +1 -1
  160. package/dist/renderer-DIuMnMF0.mjs +5 -0
  161. package/dist/{renderer-Dz4muMyE.mjs → renderer-DJHuPNJx.mjs} +2 -2
  162. package/dist/{renderer-Dz4muMyE.mjs.map → renderer-DJHuPNJx.mjs.map} +1 -1
  163. package/dist/{renderer-H4-8sBjl.mjs → renderer-DJTXhVNh.mjs} +2 -2
  164. package/dist/{renderer-H4-8sBjl.mjs.map → renderer-DJTXhVNh.mjs.map} +1 -1
  165. package/dist/{renderer-BMiZIGkZ.mjs → renderer-DNEFYrQ5.mjs} +2 -2
  166. package/dist/renderer-DUvvM8EF.mjs +5 -0
  167. package/dist/renderer-DWogyuMO.mjs +5 -0
  168. package/dist/renderer-DWsj_LJR.mjs +5 -0
  169. package/dist/{renderer-DGOY-LBR.mjs → renderer-DYJHFHF4.mjs} +2 -2
  170. package/dist/{renderer-DGOY-LBR.mjs.map → renderer-DYJHFHF4.mjs.map} +1 -1
  171. package/dist/{renderer-CVbNiH03.mjs → renderer-DYR4gFEM.mjs} +3 -3
  172. package/dist/{renderer-CVbNiH03.mjs.map → renderer-DYR4gFEM.mjs.map} +1 -1
  173. package/dist/renderer-DYun0DJl.mjs +5 -0
  174. package/dist/renderer-D_6YqD-Z.mjs +5 -0
  175. package/dist/{renderer-B0IJirDs.mjs → renderer-D_UPFbei.mjs} +3 -3
  176. package/dist/{renderer-B0IJirDs.mjs.map → renderer-D_UPFbei.mjs.map} +1 -1
  177. package/dist/renderer-Db9LP86x.mjs +5 -0
  178. package/dist/{renderer-CFRTJ7cT.mjs → renderer-DgRJG_l-.mjs} +2 -2
  179. package/dist/{renderer-CFRTJ7cT.mjs.map → renderer-DgRJG_l-.mjs.map} +1 -1
  180. package/dist/renderer-DhHiC87m.mjs +5 -0
  181. package/dist/{renderer-BZ5uOfoX.mjs → renderer-DiD3r9tx.mjs} +2 -2
  182. package/dist/{renderer-BZ5uOfoX.mjs.map → renderer-DiD3r9tx.mjs.map} +1 -1
  183. package/dist/{renderer-B2no_9zi.mjs → renderer-Dj-y-BtT.mjs} +3 -3
  184. package/dist/{renderer-B2no_9zi.mjs.map → renderer-Dj-y-BtT.mjs.map} +1 -1
  185. package/dist/renderer-Dj5jGAkR.mjs +5 -0
  186. package/dist/{renderer-Bs6BaMLf.mjs → renderer-DlA7kzIs.mjs} +3 -3
  187. package/dist/{renderer-Bs6BaMLf.mjs.map → renderer-DlA7kzIs.mjs.map} +1 -1
  188. package/dist/renderer-DlPUQ7RF.mjs +5 -0
  189. package/dist/renderer-DpIPdgn8.mjs +5 -0
  190. package/dist/renderer-Dv0C9CEt.mjs +6 -0
  191. package/dist/{renderer-CFCR_7bq.mjs → renderer-EwSSuJXj.mjs} +3 -3
  192. package/dist/{renderer-CFCR_7bq.mjs.map → renderer-EwSSuJXj.mjs.map} +1 -1
  193. package/dist/renderer-Iw8fDL-p.mjs +5 -0
  194. package/dist/{renderer-tcS585Iy.mjs → renderer-JJibsJfb.mjs} +2 -2
  195. package/dist/{renderer-tcS585Iy.mjs.map → renderer-JJibsJfb.mjs.map} +1 -1
  196. package/dist/{renderer-CTy0bSsl.mjs → renderer-KppAWfmJ.mjs} +3 -3
  197. package/dist/{renderer-CTy0bSsl.mjs.map → renderer-KppAWfmJ.mjs.map} +1 -1
  198. package/dist/{renderer-CPSg6eEQ.mjs → renderer-LW8MfGjd.mjs} +2 -2
  199. package/dist/{renderer-CPSg6eEQ.mjs.map → renderer-LW8MfGjd.mjs.map} +1 -1
  200. package/dist/{renderer-Cg2xS8h8.mjs → renderer-PMjV8x65.mjs} +2 -2
  201. package/dist/{renderer-Cg2xS8h8.mjs.map → renderer-PMjV8x65.mjs.map} +1 -1
  202. package/dist/renderer-SLI69Mju.mjs +5 -0
  203. package/dist/{renderer-DdkPY4hO.mjs → renderer-UArFa4y9.mjs} +2 -2
  204. package/dist/{renderer-DdkPY4hO.mjs.map → renderer-UArFa4y9.mjs.map} +1 -1
  205. package/dist/{renderer-B7vXnBUo.mjs → renderer-VwKmjuc6.mjs} +3 -3
  206. package/dist/{renderer-B7vXnBUo.mjs.map → renderer-VwKmjuc6.mjs.map} +1 -1
  207. package/dist/renderer-ZVtbb3-P.mjs +5 -0
  208. package/dist/{renderer-Dk0okoS3.mjs → renderer-bb3puodg.mjs} +2 -2
  209. package/dist/{renderer-Dk0okoS3.mjs.map → renderer-bb3puodg.mjs.map} +1 -1
  210. package/dist/{renderer-DVGVcDvB.mjs → renderer-eyvY4Lq4.mjs} +3 -3
  211. package/dist/{renderer-DVGVcDvB.mjs.map → renderer-eyvY4Lq4.mjs.map} +1 -1
  212. package/dist/renderer-gHNCu7H5.mjs +5 -0
  213. package/dist/renderer-gxDNmbtU.mjs +5 -0
  214. package/dist/renderer-hkK4DNRX.mjs +5 -0
  215. package/dist/{renderer-CrKYlipx.mjs → renderer-ij448rvt.mjs} +2 -2
  216. package/dist/{renderer-CrKYlipx.mjs.map → renderer-ij448rvt.mjs.map} +1 -1
  217. package/dist/{renderer-BrKgtYq4.mjs → renderer-j7aUfyeR.mjs} +3 -3
  218. package/dist/{renderer-BrKgtYq4.mjs.map → renderer-j7aUfyeR.mjs.map} +1 -1
  219. package/dist/{renderer-8_d6YNnE.mjs → renderer-kOlfYLtu.mjs} +2 -2
  220. package/dist/{renderer-8_d6YNnE.mjs.map → renderer-kOlfYLtu.mjs.map} +1 -1
  221. package/dist/{renderer-D3FJcRA3.mjs → renderer-l1qJE4z-.mjs} +2 -2
  222. package/dist/{renderer-D3FJcRA3.mjs.map → renderer-l1qJE4z-.mjs.map} +1 -1
  223. package/dist/{renderer-BKJ8cywK.mjs → renderer-ml2LHmRb.mjs} +2 -2
  224. package/dist/{renderer-BKJ8cywK.mjs.map → renderer-ml2LHmRb.mjs.map} +1 -1
  225. package/dist/{renderer-DmTxEeMh.mjs → renderer-mu2mYo5w.mjs} +3 -3
  226. package/dist/{renderer-DmTxEeMh.mjs.map → renderer-mu2mYo5w.mjs.map} +1 -1
  227. package/dist/{renderer-Bwxm-kWL.mjs → renderer-ovkctV5a.mjs} +2 -2
  228. package/dist/renderer-oy6SGDRz.mjs +5 -0
  229. package/dist/{renderer-CqJou_2L.mjs → renderer-qQmoO5Hk.mjs} +2 -2
  230. package/dist/{renderer-CqJou_2L.mjs.map → renderer-qQmoO5Hk.mjs.map} +1 -1
  231. package/dist/renderer-rq7UIcuH.mjs +5 -0
  232. package/dist/{renderer-BStETpqC.mjs → renderer-rv-AKqCl.mjs} +2 -2
  233. package/dist/{renderer-BStETpqC.mjs.map → renderer-rv-AKqCl.mjs.map} +1 -1
  234. package/dist/renderer-xkEJahws.mjs +5 -0
  235. package/dist/{renderer-BNs31kME.mjs → renderer-yF40Pb-n.mjs} +3 -3
  236. package/dist/{renderer-BNs31kME.mjs.map → renderer-yF40Pb-n.mjs.map} +1 -1
  237. package/dist/{renderer-Bag1LFos.mjs → renderer-yFHP9Zj2.mjs} +3 -3
  238. package/dist/{renderer-Bag1LFos.mjs.map → renderer-yFHP9Zj2.mjs.map} +1 -1
  239. package/dist/{renderer-CbxfSmYE.mjs → renderer-zOK5DYYn.mjs} +3 -3
  240. package/dist/{renderer-CbxfSmYE.mjs.map → renderer-zOK5DYYn.mjs.map} +1 -1
  241. package/dist/{renderers-CP8CFWDs-EZZPEbhW.mjs → renderers-CP8CFWDs-DPLX5EJs.mjs} +2 -2
  242. package/dist/{renderers-CP8CFWDs-EZZPEbhW.mjs.map → renderers-CP8CFWDs-DPLX5EJs.mjs.map} +1 -1
  243. package/dist/signals/index.mjs +4 -4
  244. package/dist/{src-r7Suenhp.mjs → src-BnkrNj2W.mjs} +612 -117
  245. package/dist/src-BnkrNj2W.mjs.map +1 -0
  246. package/package.json +59 -58
  247. package/dist/dist-BuirkW-f.mjs.map +0 -1
  248. package/dist/dist-DBdxM6xv.mjs.map +0 -1
  249. package/dist/fonts-DNx6ps2p.mjs.map +0 -1
  250. package/dist/index-CalU-mpZ.d.mts.map +0 -1
  251. package/dist/index-N1tMc5Z9.d.mts.map +0 -1
  252. package/dist/preview-engine/chunk-2TCJSHFA.mjs +0 -1974
  253. package/dist/preview-engine/chunk-Q7XC3FI7.mjs +0 -3
  254. package/dist/preview-engine/chunk-ZZAZF6VC.mjs +0 -5
  255. package/dist/program-O2bWX0cs.mjs.map +0 -1
  256. package/dist/renderer-0441BN0U.mjs +0 -5
  257. package/dist/renderer-3qDgFc-W.mjs +0 -5
  258. package/dist/renderer-6AIqTN5Z.mjs +0 -5
  259. package/dist/renderer-B7MZ5R7u.mjs +0 -5
  260. package/dist/renderer-BE2rIA4B.mjs +0 -5
  261. package/dist/renderer-BIQ81ln4.mjs +0 -5
  262. package/dist/renderer-BKm3_Ob3.mjs +0 -5
  263. package/dist/renderer-BNdT1Wwf.mjs +0 -5
  264. package/dist/renderer-BQycs1q_.mjs +0 -5
  265. package/dist/renderer-Bj7MxXfk.mjs +0 -5
  266. package/dist/renderer-BjRAGYYC.mjs +0 -5
  267. package/dist/renderer-BqE2BQ_X.mjs +0 -5
  268. package/dist/renderer-Bz5BMkOE.mjs +0 -5
  269. package/dist/renderer-CDOSfB9H.mjs +0 -5
  270. package/dist/renderer-CT26yQT-.mjs +0 -5
  271. package/dist/renderer-CZeAbz48.mjs +0 -5
  272. package/dist/renderer-D50b7kip.mjs +0 -5
  273. package/dist/renderer-D5LmrO96.mjs +0 -5
  274. package/dist/renderer-DCvqZ5o_.mjs +0 -5
  275. package/dist/renderer-DJGJeGEn.mjs +0 -5
  276. package/dist/renderer-DONvNNXi.mjs +0 -5
  277. package/dist/renderer-DPaSo--Y.mjs +0 -6
  278. package/dist/renderer-DfYYokhr.mjs +0 -5
  279. package/dist/renderer-DlIJhdEM.mjs +0 -5
  280. package/dist/renderer-DqD3nMtv.mjs +0 -5
  281. package/dist/renderer-DrIl-uGt.mjs +0 -5
  282. package/dist/renderer-DyCB3Q1d.mjs +0 -5
  283. package/dist/renderer-DyJ-iSv6.mjs +0 -5
  284. package/dist/renderer-Dzs0jV0G.mjs +0 -5
  285. package/dist/renderer-HIKXw5-Y.mjs +0 -5
  286. package/dist/renderer-Jgt2g8Wp.mjs +0 -5
  287. package/dist/renderer-KnZWmT-M.mjs +0 -5
  288. package/dist/renderer-OMSXddG9.mjs +0 -5
  289. package/dist/renderer-P78xh6OV.mjs +0 -5
  290. package/dist/renderer-gaFP1Kak.mjs +0 -5
  291. package/dist/renderer-lQ8gH7Zd.mjs +0 -5
  292. package/dist/src-r7Suenhp.mjs.map +0 -1
@@ -0,0 +1,5 @@
1
+ import{a as $e,b as lt,c as ut,d as dt,e as ft,f as ht,g as mt,h as gt,i as xt,j as yt,k as bt,l as wt,n as St}from"./chunk-BBHRXV75.mjs";import{b as Ge}from"./chunk-2SJ4BBMT.mjs";import{d as at}from"./chunk-6YJP57MZ.mjs";import{h as st,i as ct,j as L,x as be}from"./chunk-2LQCQ3OT.mjs";import{a as de}from"./chunk-IQC2I5A5.mjs";import{d as Re,e as we}from"./chunk-BVF64D6H.mjs";we();function Et(t){return typeof t=="object"&&t!==null&&typeof t.get=="function"}function Fe(t,n){return Et(t)?t.get(n):t}function Ct(t,n){return t.map(e=>{let i={...e,text:String(Fe(e.text,n)??"")};return e.fontSize!==void 0&&(i.fontSize=Number(Fe(e.fontSize,n))),e.fill!==void 0&&(i.fill=String(Fe(e.fill,n))),e.opacity!==void 0&&(i.opacity=Number(Fe(e.opacity,n))),e.mark&&(i.mark={...e.mark,background:String(Fe(e.mark.background,n))}),i})}function zt(t){let n="";for(let e of t)n+=typeof e.text=="string"?e.text:"";return n}function Mt(t,n){let e=[],i=0;for(let[r,c]of t.entries()){if(i>=n.length)break;let d=typeof c.text=="string"?c.text.length:0,u=r===t.length-1?n.length:i+d;u>i&&e.push({...c,text:n.slice(i,u)}),i=u}return e}we();function Xt(t,n,e,i,r=0,c=0){let d=at.getChannelSamples(n,"primary");if(d&&d.length>0){let m=i>0?i:24,C=e/m,h=r!==0?c*r/(2*Math.PI):0,k=Math.max(0,C+h),a=Math.max(0,Math.min(d.length-1,Math.round(k*m)));return Number(d[a])||0}if(!t)return 0;let u=t[n];if(u==null)return 0;if(typeof u=="number")return u;if(typeof u=="function")return Number(u(e,i))||0;if(typeof u=="object"){let m=u;if(typeof m.get=="function"){let C=i>0?e/i:0,h=r!==0?c*r/(2*Math.PI):0;return Number(m.get({frame:e,fps:i,time:C+h}))||0}if(Array.isArray(m.samples)||ArrayBuffer.isView(m.samples)){let C=m.samples,h=Math.max(0,Math.min(C.length-1,Math.round(e)));return Number(C[h])||0}}return 0}function It(t){return t<.5?2*t*t:1-(-2*t+2)**2/2}function Yt(t){let n=0;for(let e=0;e<t.length;e++)n=t.charCodeAt(e)+((n<<5)-n);return()=>{let e=Math.sin(n++)*1e4;return e-Math.floor(e)}}function Gt(t,n){let e=Yt(n),i=Array.from({length:t},(r,c)=>c);for(let r=i.length-1;r>0;r--){let c=Math.floor(e()*(r+1)),d=i[r];i[r]=i[c],i[c]=d}return i}function jt(t,n,e){let i=`${n}-${e}`,r=L.emojiTextureCache.get(i);if(r)return r;let c=4,d=Math.max(16,Math.ceil(e*1.5*c)),u=Math.ceil(d/4)*4;if(!!globalThis.__IS_HEADLESS_RENDERER__||typeof window>"u"||typeof globalThis.document>"u")return L.hasEmojiFont()&&console.warn(`[getOrCreateEmojiTexture] Emoji "${n}" not preloaded. Returning fallback dummy texture.`),r=t.createTexture({label:`Emoji-Dummy-${n}`,size:[1,1],format:"rgba8unorm",usage:GPUTextureUsage.TEXTURE_BINDING}),L.emojiTextureCache.set(i,r),r;let C=new OffscreenCanvas(u,u),h=C.getContext("2d");return h&&(h.font=`${e*c}px "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif`,h.textBaseline="middle",h.textAlign="center",h.fillText(n,u/2,u/2)),r=t.createTexture({label:`Emoji-${n}`,size:[u,u],format:"rgba8unorm",usage:GPUTextureUsage.TEXTURE_BINDING|GPUTextureUsage.COPY_DST|GPUTextureUsage.RENDER_ATTACHMENT}),t.queue.copyExternalImageToTexture({source:C},{texture:r,premultipliedAlpha:!0},[u,u]),L.emojiTextureCache.set(i,r),r}function je(t,n,e,i,r,c,d){if(!d)return{p_in:1,p_out:1};let u=1;if(e>0){let C=e*.5,h=c>1?e*.5/(c-1):0,k=r*h,a=k+C;t<k?u=0:t>a?u=1:u=(t-k)/(a-k)}let m=1;if(i>0){let C=n-i;if(t>C){let h=i*.5,k=c>1?i*.5/(c-1):0,a=C+r*k,A=a+h;t<a?m=1:t>A?m=0:m=1-(t-a)/(A-a)}}return{p_in:u,p_out:m}}function _e(t,n,e,i,r,c,d,u,m,C,h,k,a){let A=e?It(t):t,w=e?It(n):n,v=A*w;if(A<=0&&i!=="blur"||w<=0&&r!=="blur")return{opacity:0,transX:0,transY:0,rot:0,scale:1,blurAmount:0,visible:!1};let X=k;if(i==="fade"||i==="slideUp"||i==="blur"?X*=A:i==="appear"&&A<.5&&(X=0),r==="fade"||r==="slideUp"||r==="blur"?X*=w:r==="appear"&&w<.5&&(X=0),X<.001)return{opacity:0,transX:0,transY:0,rot:0,scale:1,blurAmount:0,visible:!1};let j=0,P=0,H=0,ee=1;i==="slideUp"&&d<m&&(P+=(1-A)*30),r==="slideUp"&&d>u-C&&(P-=(1-w)*30);let oe=a?1:Math.PI/180;c==="stack"?(ee=.8+.2*v,H=(1-v)*15*oe):c==="wave"?P+=10*Math.sin(d*.005-h*.5):c==="wiggle"?(j+=5*Math.sin(d*.008+h*1.7),P+=5*Math.cos(d*.006+h*1.3),H+=4*Math.sin(d*.005+h*2.1)*oe):c==="shuffle"&&(j+=3*Math.sin(d*.015+h*3.1),P+=3*Math.cos(d*.012+h*2.3),H+=8*Math.sin(d*.02+h*1.1)*oe);let x=0;return i==="blur"&&(x=Math.max(x,(1-A)*20)),r==="blur"&&(x=Math.max(x,(1-w)*20)),{opacity:X,transX:j,transY:P,rot:H,scale:ee,blurAmount:x,visible:!0}}var _t={linear:t=>t,none:t=>t,smoothstep:t=>t,"power1.out":t=>1-(1-t)**2,"quad.out":t=>1-(1-t)**2,"power1.in":t=>t**2,"quad.in":t=>t**2,"power1.inout":t=>t<.5?2*t*t:1-(-2*t+2)**2/2,"quad.inout":t=>t<.5?2*t*t:1-(-2*t+2)**2/2,"power2.out":t=>1-(1-t)**3,"cubic.out":t=>1-(1-t)**3,"power2.in":t=>t**3,"cubic.in":t=>t**3,"power2.inout":t=>t<.5?4*t**3:1-(-2*t+2)**3/2,"cubic.inout":t=>t<.5?4*t**3:1-(-2*t+2)**3/2,"power3.out":t=>1-(1-t)**4,"quart.out":t=>1-(1-t)**4,"power3.in":t=>t**4,"quart.in":t=>t**4,"power3.inout":t=>t<.5?8*t**4:1-(-2*t+2)**4/2,"quart.inout":t=>t<.5?8*t**4:1-(-2*t+2)**4/2,"power4.out":t=>1-(1-t)**5,"quint.out":t=>1-(1-t)**5,"power4.in":t=>t**5,"quint.in":t=>t**5,"sine.out":t=>Math.sin(t*Math.PI/2),"sine.in":t=>1-Math.cos(t*Math.PI/2),"sine.inout":t=>-(Math.cos(Math.PI*t)-1)/2,"expo.out":t=>t===1?1:1-2**(-10*t),"back.out":t=>1+2.70158*(t-1)**3+1.70158*(t-1)**2};function Ot(t,n){let e=Math.max(0,Math.min(1,n));if(!t)return e;let i=_t[t.toLowerCase().trim()];return i?i(e):e}function Ht(t,n,e){if(e<=0)return 0;let i=e>1?n/(e-1):.5,r=t.offset??0,c=(t.rangeStart??0)+r,d=(t.rangeEnd??1)+r,u=0;d<=c?u=i>=c?1:0:u=Math.max(0,Math.min(1,(i-c)/(d-c)));let m=u*u*(3-2*u);return Ot(t.easing??"power2.out",m)}function kt(t,n,e,i,r,c){let d=Math.max(1,e.charsCount??1),u=Math.max(1,e.wordsCount??1),m=Math.max(1,e.linesCount??1),C=t.selectors??[];if(C.length===0)return 1;let h=0;for(let k=0;k<C.length;k++){let a=C[k],A=0;if(a.type==="range"){let w=d,v=n.charIndex??0;a.basedOn==="words"?(w=u,v=n.wordIndex??0):a.basedOn==="lines"&&(w=m,v=n.lineIndex??0),a.randomizeOrder&&(v=bt(w,a.randomSeed??12345)[v%w]??v);let X=a.units==="index"?v:w>1?v/(w-1):.5,j=a.start??t.rangeStart??0,P=a.end??t.rangeEnd??(a.units==="index"?w:1),H=a.offset??t.offset??0;A=xt(X,j,P,H,a.shape??"smooth",a.easeHigh??0,a.easeLow??0)*(a.amount??1)}else if(a.type==="wiggly"){let w=c>0?r/c:0,v=(a.temporalPhaseDeg??0)*Math.PI/180,X=(a.spatialPhaseDeg??0)*Math.PI/180,j=w*(a.wigglesPerSecond??2)*2*Math.PI+v+X,P=yt(a.randomSeed??42,n.charIndex??0,j,a.correlation??.5),H=a.minAmount??-1,ee=a.maxAmount??1;A=H+(P*.5+.5)*(ee-H)}else if(a.type==="signal")A=Xt(i,a.signalId,r,c,a.phaseSpread??0,n.charIndex??0)*(a.multiplier??1)+(a.offset??0);else if(a.type==="expression"){let w=a,v=c>0?r/c:0,X={charIndex:n.charIndex??0,wordIndex:n.wordIndex??0,lineIndex:n.lineIndex??0,totalChars:d,totalWords:u,totalLines:m,frame:r,fps:c,time:v,signals:i};A=ft(w.expression,X)*(w.amount??1)}k===0?h=A:h=wt(h,A,a.mode??"add")}return h}function At(t,n,e,i,r=!1,c=0,d=24,u){if(!t||t.length===0)return i;let{transX:m,transY:C,rot:h,scale:k,scaleX:a,scaleY:A,opacity:w,blurAmount:v}=i,X=i.transZ??0,j=i.color,P=i.chromaticShift??0,H=i.dissolveProgress??0,ee=i.vfxParam??0,oe=i.skewM01??0,x=i.skewM10??0,fe=i.anchorConfig,le=i.fillOpacity??1,re=i.strokeWidth,U=i.strokeColor,ue=i.longShadow,he=i.lineSpacing,Z=i.lineAnchor,me=r?1:Math.PI/180,z=Math.max(1,e.charsCount??1),K=Math.max(1,e.wordsCount??1),ae=Math.max(1,e.linesCount??1);for(let ne of t)if("selectors"in ne&&Array.isArray(ne.selectors)){let ie=ne,l=ie.props??{},te=kt(ie,n,{charsCount:z,wordsCount:K,linesCount:ae},u,c,d),f=te,Y=1,q=1;if(l.spring){let b=(n.charIndex??0)*.035,D=Math.max(0,(d>0?c/d:0)-b);q=$e(D,l.spring.stiffness,l.spring.damping,l.spring.mass,l.spring.initialVelocity),Y=1-q,f=te*Y}if(f!==0||te!==0){if(l.x!==void 0&&(m+=l.x*f),l.y!==void 0&&(C+=l.y*f),l.scale!==void 0&&(k*=1+(l.scale-1)*f),l.scaleX!==void 0&&(a*=1+(l.scaleX-1)*f),l.scaleY!==void 0&&(A*=1+(l.scaleY-1)*f),l.rotation!==void 0&&(h+=l.rotation*me*f),l.rotationX!==void 0){let b=l.rotationX*f*Math.PI/180;A*=Math.max(.08,Math.abs(Math.cos(b)))}if(l.rotationY!==void 0){let b=l.rotationY*f*Math.PI/180;a*=Math.max(.08,Math.abs(Math.cos(b)))}if(l.rotationZ!==void 0&&(h+=l.rotationZ*me*f),l.translateZ!==void 0&&(X+=l.translateZ*f),l.skew!==void 0){let[,b,D]=lt(l.skew*f,l.skewAxis??0);oe+=b,x+=D}if(l.formation!==void 0){let b=ht(n.charIndex??0,z,l.formation),D=e.layoutCenter?.x??0,Q=e.layoutCenter?.y??0,xe=n.x??0,We=n.y??0,Ee=D+b.x,Xe=Q+b.y;if(m+=(Ee-xe)*f,C+=(Xe-We)*f,X+=b.z*f,b.rotX){let ye=b.rotX*f*Math.PI/180;A*=Math.max(.5,Math.abs(Math.cos(ye)))}if(b.rotY){let ye=b.rotY*f*Math.PI/180;a*=Math.max(.5,Math.abs(Math.cos(ye)))}b.rotZ&&(h+=b.rotZ*Math.PI/180*f),b.depthOpacity!==void 0&&(w*=1+(b.depthOpacity-1)*f)}if(l.anchor!==void 0&&(fe=l.anchor),l.opacity!==void 0&&(w*=1+(l.opacity-1)*f),l.blur!==void 0&&(v=Math.max(v,l.blur*f)),l.chromaticGlitch!==void 0){let b=(l.chromaticGlitch.redShiftX??0)*Math.max(0,f),D=l.chromaticGlitch.sliceProbability??.35,Q=Math.sin(c*17.13+(n.charIndex??0)*43.17),xe=Math.abs(Q-Math.floor(Q));xe<D&&(b+=(l.chromaticGlitch.sliceAmplitude??12)*(xe*2-1)),P+=b}if(l.particleDissolve!==void 0&&(H=Math.max(H,(l.particleDissolve.progress??0)*(l.spring?q:Math.max(0,f)))),l.longShadow!==void 0&&(ue=l.longShadow),l.audioSpectrum!==void 0){let b=gt(n.charIndex??0,z,l.audioSpectrum,u,c,d);l.audioSpectrum.scaleAxis==="scaleY"?A*=b:l.audioSpectrum.scaleAxis==="scaleX"?a*=b:k*=b}if(l.stroke!==void 0&&(l.stroke.fillOpacity!==void 0&&(le*=1-f+l.stroke.fillOpacity*f),l.stroke.strokeWidth!==void 0&&(re=(l.stroke.strokeWidth??0)*f),l.stroke.strokeColor&&(U=l.stroke.strokeColor)),l.lineSpacing!==void 0&&(he=l.lineSpacing*(l.spring?q:f),Z=l.lineAnchor??0),l.fillColor){let b=de(l.fillColor),D=j??{r:1,g:1,b:1,a:1},Q=te;j={r:D.r*(1-Q)+b.r*Q,g:D.g*(1-Q)+b.g*Q,b:D.b*(1-Q)+b.b*Q,a:D.a*(1-Q)+b.a*Q}}}}else{let ie=ne,l=n.charIndex??n.unitIndex??0,te=Math.max(1,e.charsCount??1);ie.unit==="word"?(l=n.wordIndex??0,te=Math.max(1,e.wordsCount??1)):ie.unit==="line"&&(l=n.lineIndex??0,te=Math.max(1,e.linesCount??1));let f=Ht(ie,l,te),Y=ie.transform;if(!Y||f<=0)continue;Y.x!==void 0&&(m+=Y.x*f),Y.y!==void 0&&(C+=Y.y*f),Y.rotation!==void 0&&(h+=Y.rotation*me*f),Y.scale!==void 0&&(k*=1+(Y.scale-1)*f),Y.scaleX!==void 0&&(a*=1+(Y.scaleX-1)*f);let q=1+((Y.scaleY??1)-1)*f;if(Y.rotationX){let b=Y.rotationX*f*Math.PI/180;q*=Math.cos(b)}if(A*=q,Y.opacity!==void 0&&(w*=1+(Y.opacity-1)*f),Y.blur!==void 0&&(v=Math.max(v,Y.blur*f)),Y.color){let b=de(Y.color),D=j??{r:1,g:1,b:1,a:1};j={r:D.r*(1-f)+b.r*f,g:D.g*(1-f)+b.g*f,b:D.b*(1-f)+b.b*f,a:D.a*(1-f)+b.a*f}}}return{transX:m,transY:C,transZ:X,rot:h,scale:k,scaleX:a,scaleY:A,opacity:Math.max(0,Math.min(1,w)),blurAmount:v,color:j,chromaticShift:P,dissolveProgress:H,vfxParam:ee,skewM01:oe,skewM10:x,anchorConfig:fe,fillOpacity:Math.max(0,Math.min(1,le)),strokeWidth:re,strokeColor:U,longShadow:ue,lineSpacing:he,lineAnchor:Z}}function pt(t,n,e){let i=e.fontFamily??"Inter";if(L.isFailed(i)&&(i="Inter"),L.isFailed(i))return;let r=e.fontSize??48,c=L.getFont(i,e.fontWeight,t.device,void 0,r,e.variableAxes),d=e.stroke&&e.strokeWidth&&e.strokeWidth>0,u=null;if(c&&d&&t.device){let o=e.strokeAlign==="outside"?2:1,y=(e.strokeWidth??0)*o*(c.unitsPerEm/r);u=L.getFont(i,e.fontWeight,t.device,y,r,e.variableAxes)??null}if(!c?.curvesTex||d&&!u?.curvesTex){let o=Ge(i);L.preloadSlugFont(t.device,i,o,void 0,e.renderId).catch(s=>{console.warn(`[drawParagraphNode] Failed to load Slug font for ${i}:`,s)});return}let m=e.letterSpacing??0,C=e.lineHeight!==void 0&&e.lineHeight<10?e.lineHeight*r:e.lineHeight??r*1.2,h=e.align??"start",k=e.direction??"auto",a=e.isCaption?0:e.textBackgroundColor?e.padding??0:0,A=e.text,w;if(e.typewriter){let o=e.fps??24,s=e.durationMs!==void 0?Math.round(e.durationMs/1e3*o):60;w=St(e.text,e.frame??0,0,s,e.typewriter.cadence,e.typewriter.scramble,e.typewriter.cursor?.blinkFrequency??2,e.typewriter.granularity??"character",e.textProgress),A=w.currentDisplayString}let v=w&&e.spans?.length?Mt(Ct(e.spans),A):e.spans,X=e.pathOptions?{...e.pathOptions,firstMargin:e.firstMargin!==void 0?e.firstMargin:e.pathOptions.firstMargin,lastMargin:e.lastMargin!==void 0?e.lastMargin:e.pathOptions.lastMargin,baselineShift:e.baselineShift!==void 0?e.baselineShift:e.pathOptions.baselineShift}:void 0,j,P;e.width!=null?(j=Math.max(0,e.width-a*2),P=be.measure(A,c,r,m,C,j,v,k)):(P=be.measure(A,c,r,m,C,void 0,v,k),j=P.width);let H=e.isCaption?e.dstRect.width:j,ee=e.animation?.applyBy??"word",x=(h==="left"||h==="start"&&!P.layout?.hasRtl)&&(H===void 0||H===j)&&!X&&ee==="word"&&!!P?.layout&&P.layout?P.layout:be.layout(A,c,r,m,C,j,h,ee,H,X,v,k),fe=e.verticalAlign??"top",le=e.height!=null&&!X&&!e.isCaption?e.height-(P.height+a*2):0,re={...e.dstRect,y:e.dstRect.y+(fe==="middle"?le/2:fe==="bottom"?le:0)},U=e.animation,ue=e.fontWeight==="bold"||typeof e.fontWeight=="number"&&e.fontWeight>=600||typeof e.fontWeight=="string"&&parseInt(e.fontWeight,10)>=600,he="hasTrueWeight"in c&&!!c.hasTrueWeight,Z=c;if(ue&&!he&&t.device){let o=ct(e.fontWeight),s=Math.max(0,(o-400)/500)*.055*r;if(s>0){let y=s*(c.unitsPerEm/r),S=L.getFont(i,400,t.device,y,r,e.variableAxes);S?.curvesTex&&(Z=S)}}let me=x.glyphs.length,z=e.elapsedMs!==void 0?e.elapsedMs:e.frame!==void 0&&e.fps!==void 0?e.frame/e.fps*1e3:0,K=e.durationMs!==void 0?e.durationMs:3e3,ae=e.isCaption?U?.in==="none"||!U?.in?0:K:U?.entranceMs?U.entranceMs:U?.in==="none"||!U?.in?0:K,ne=e.isCaption?0:U?.exitMs?U.exitMs:U?.out==="none"||!U?.out?0:K,ie=U?.in||"none",l=U?.out||"none",te=U?.kinetic||"none",f=U?.smoothing!==!1,Y=0;for(let o of x.glyphs)!o.isSpace&&o.unitIndex>Y&&(Y=o.unitIndex);let q=Y+1,b=te==="shuffle"||ie==="shuffle"?Gt(q,e.text):Array.from({length:q},(o,s)=>s);if(e.textBackgroundColor){let o=e.strokeRadius??e.borderRadius??8,s=0,y=e.opacity??1;if(e.isVideoMode===!1)s=y;else{for(let S of x.glyphs){if(S.isSpace)continue;let I=S.unitIndex,T=b[I]??I,{p_in:M,p_out:g}=je(z,K,ae,ne,T,q,!0),_=_e(M,g,f,ie,l,te,z,K,ae,ne,T,y,!1);_.visible&&_.opacity>s&&(s=_.opacity)}for(let S of x.emojis){let I=e.animation?.applyBy==="line"?0:Math.floor(S.x/(r+m)),T=b[I%q]??0,{p_in:M,p_out:g}=je(z,K,ae,ne,T,q,!0),_=_e(M,g,f,ie,l,te,z,K,ae,ne,T,y,!0);_.visible&&_.opacity>s&&(s=_.opacity)}}if(s>.001){let S=e.width!=null?e.width:P.width+a*2,I=e.height!=null?e.height:P.height+a*2;t.renderer.drawRRect(n,{rect:{x:e.dstRect.x,y:e.dstRect.y,width:S,height:I},rx:o,ry:o},e.textBackgroundColor,{opacity:s})}}if(x.marks&&x.marks.length>0)for(let o of x.marks){let s=o.borderRadius??4;t.renderer.drawRRect(n,{rect:{x:e.dstRect.x+a+o.x,y:re.y+a+o.y,width:o.width,height:o.height},rx:s,ry:s},o.background,{opacity:e.opacity??1})}let D=de(e.color??"white"),Q=de(e.highlightColor??"yellow"),xe=new Float32Array(x.glyphs.length),We=0,Ee=0;if(x.glyphs.length>0){let o=x.glyphs.filter(s=>!s.isSpace);o.length>0&&(We=(o[0].x+o[o.length-1].x)/2,Ee=(o[0].y+o[o.length-1].y)/2)}let Xe={charsCount:x.charsCount,wordsCount:x.wordsCount,linesCount:x.linesCount,layoutCenter:{x:We,y:Ee}};if(e.animators&&e.animators.length>0){for(let o of e.animators)if("selectors"in o&&Array.isArray(o.selectors)){let s=o;if(s.props?.tracking!==void 0&&s.props.tracking!==0){let y=s.props.tracking,S=new Map;for(let I=0;I<x.glyphs.length;I++){let M=x.glyphs[I].lineIndex??0,g=S.get(M);g||(g=[],S.set(M,g)),g.push(I)}for(let I of S.values()){let T=new Map;for(let F of I){let O=x.glyphs[F].charIndex,$=T.get(O);$?$.push(F):T.set(O,[F])}let M=Array.from(T.values()),g=F=>{let O=x.glyphs[F[0]];return O.clusterX??O.x};M.sort((F,O)=>g(F)-g(O));let _=[];for(let F of M){let O=x.glyphs[F[0]],$=kt(s,O,Xe,e.signals,e.frame??0,e.fps??24);_.push($)}let G=0;for(let F=0;F<M.length-1;F++)G+=y*_[F];let p=x.glyphs[I[0]]?.baseRtl??!1,R=h==="start"?p?"right":"left":h==="end"?p?"left":"right":h,N=0;for(let F=0;F<M.length;F++){let O=N;R==="center"?O-=G*.5:R==="right"&&(O-=G);for(let $ of M[F])xe[$]+=O;F<M.length-1&&(N+=y*_[F])}}}}}let ye=new Float32Array(Math.max(1024,me*24)),Ke=(o,s)=>s.cp.glyphId!==void 0&&(s.font??c).fontFamily===o.fontFamily,Qe=new Set,vt=o=>{if(Qe.has(o))return;Qe.add(o);let s=[];for(let y of x.glyphs){let S=y.cp.glyphId;S!==void 0&&(y.font??c)!==o&&Ke(o,y)&&!o.glyphs?.has(S)&&s.push(S)}s.length>0&&st.ensureGlyphs(o,s)},Pt=(o,s)=>{if((s.font??c)===o)return s.cp;if(Ke(o,s)){let y=o.glyphs?.get(s.cp.glyphId);if(y)return y}return o.codePoints.get(s.cp.codePoint)||s.cp},Se=(o,s,y=0,S=0,I,T)=>{let M=me*24;ye.length<M&&(ye=new Float32Array(M));let g=ye,_=0;vt(o);for(let G=0;G<x.glyphs.length;G++){let p=x.glyphs[G];if(p.isSpace||T&&!T(p))continue;let R=Pt(o,p);if(!R||R.width===0||R.height===0)continue;let N=p.unitIndex,F=b[N]??N,O=e.opacity??1,$=0,J=0,se=0,V=1,Ce=I!==void 0?I:0;if(e.isVideoMode!==!1){let{p_in:W,p_out:E}=je(z,K,ae,ne,F,q,!0),B=_e(W,E,f,ie,l,te,z,K,ae,ne,F,e.opacity??1,!1);if(!B.visible)continue;O=B.opacity,$=B.transX,J=B.transY,se=B.rot,V=B.scale,I===void 0&&(Ce=B.blurAmount)}let Me=1,Ue=1,tt,De=0,nt=0,it=0,ot=0,Ne=0,Le=0,Be,rt=1;if(e.animators&&e.animators.length>0){let W=At(e.animators,p,Xe,{transX:$,transY:J,rot:se,scale:V,scaleX:Me,scaleY:Ue,opacity:O,blurAmount:Ce,color:D},!1,e.frame??0,e.fps??24,e.signals);$=W.transX,J=W.transY,se=W.rot,V=W.scale,Me=W.scaleX,Ue=W.scaleY,O=W.opacity,I===void 0&&(Ce=W.blurAmount),W.color&&(tt=W.color),W.lineSpacing!==void 0&&(J+=dt(p.lineIndex,x.linesCount,W.lineSpacing,W.lineAnchor??0)),De=W.transZ??0,nt=W.chromaticShift??0,it=W.dissolveProgress??0,ot=W.vfxParam??0,Ne=W.skewM01??0,Le=W.skewM10??0,Be=W.anchorConfig,rt=W.fillOpacity??1}$+=xe[G];let ze=p.x;if(e.marquee){let W=(e.frame??0)/(e.fps??24),E=x.glyphs.length>0?x.glyphs[x.glyphs.length-1].x+r:e.dstRect.width;ze=mt(p.x,e.dstRect.width,E,e.marquee,W)}let Rt=e.highlightWordIndex!==void 0&&p.wordIndex===e.highlightWordIndex,Ft=p.fill?de(p.fill):void 0,Ye=tt??s??(Rt?Q:Ft??D);(W=>{let E=_*24,B=p.fontScale??r/o.unitsPerEm,Ie=R.width*B/2*Me,Ae=R.height*B/2*Ue;if(De!==0){let ce=Math.max(100,1200-De),ge=ce>1?1200/ce:1;Ie*=ge,Ae*=ge}let ke=se+(p.pathTangentAngleRad??0),pe,Te;if(p.pathTangentAngleRad!==void 0){let ve=R.bearingX*B+Ie,ce=-R.bearingY*B+Ae,ge=Math.cos(ke),Pe=Math.sin(ke),Ve=ve*ge-ce*Pe,qe=ve*Pe+ce*ge;pe=ze+Ve+e.dstRect.x+a+y+W,Te=p.y+qe+re.y+a+S}else pe=ze+R.bearingX*B+Ie+e.dstRect.x+a+y+W,Te=p.y-R.bearingY*B+Ae+re.y+a+S;if(Be){let ve={width:R.width*B,height:R.height*B,ascender:(o.ascender??800)*B,descender:(o.descender??-200)*B},ce=ut(ve,Be),ge=Math.cos(ke),Pe=Math.sin(ke),Ve=ce.px*(1-ge*V)+ce.py*(Pe*V),qe=-ce.px*(Pe*V)+ce.py*(1-ge*V);pe+=Ve,Te+=qe}(Ne!==0||Le!==0)&&(pe+=Ae*Ne,Te+=Ie*Le),g[E+0]=Ie,g[E+1]=Ae,g[E+2]=pe,g[E+3]=Te,g[E+4]=R.width,g[E+5]=R.height,g[E+6]=R.width/R.bandDimX,g[E+7]=R.height/R.bandDimY,g[E+8]=R.bandCount-1,g[E+9]=R.bandCount-1,g[E+10]=R.bandsTexCoordX,g[E+11]=R.bandsTexCoordY,g[E+12]=ke,g[E+13]=V,g[E+14]=$,g[E+15]=J,g[E+16]=Ye.r,g[E+17]=Ye.g,g[E+18]=Ye.b;let Wt=p.opacity??1;g[E+19]=Ye.a*O*rt*Wt,g[E+20]=Ce,g[E+21]=nt,g[E+22]=it,g[E+23]=ot,_++})(0)}return{data:g,visibleCount:_}};if(e.shadows&&e.shadows.length>0)for(let o of e.shadows){let s=de(o.color),y=o.offset?.x??0,S=o.offset?.y??0,I=o.blurRadius??0,{data:T,visibleCount:M}=Se(Z,s,y,S,I);if(M>0){let g=T.subarray(0,M*24),G=e.fontStyle==="italic"?.21:0;t.renderer.slugPipeline.draw(n,t.renderer.getTransformStack(),Z,g,M,o.color,t.renderer.getSurfaceWidth(),t.renderer.getSurfaceHeight(),{opacity:e.opacity??1,transform:e.matrix,customParam:G})}}let Oe=e.animators?.find(o=>"props"in o&&o.props?.longShadow&&(o.props?.longShadow?.length??0)>0);if(Oe&&"props"in Oe){let o=Oe,s=o.props?.longShadow;if(s){let y=o.props?.spring,S=s.length,I=s.angle;if(y){let G=(e.frame??0)/(e.fps??30),p=$e(G,y.stiffness,y.damping,y.mass,y.initialVelocity);S=Math.max(0,s.length*p),I=s.angle+(1-Math.min(1,p))*25}else{let p=1-(1-Math.min(1,(e.frame??0)/36))**3;S=s.length*p}let T=I*Math.PI/180,M=Math.max(4,Math.min(64,s.steps??16)),g=S/M,_=de(s.color??"#000000");for(let G=1;G<=M;G++){let p=G*g,R=p*Math.cos(T),N=p*Math.sin(T),F=G/M,O=(s.startOpacity??.8)*(1-F)+(s.endOpacity??0)*F,$={..._,a:_.a*O},{data:J,visibleCount:se}=Se(c,$,R,N,0);if(se>0){let V=J.subarray(0,se*24),Me=e.fontStyle==="italic"?.21:0;t.renderer.slugPipeline.draw(n,t.renderer.getTransformStack(),Z,V,se,s.color??"black",t.renderer.getSurfaceWidth(),t.renderer.getSurfaceHeight(),{opacity:(e.opacity??1)*O,transform:e.matrix,customParam:Me})}}}}if(d&&u){let o=de(e.stroke),{data:s,visibleCount:y}=Se(u,o);if(y>0){let S=s.subarray(0,y*24),T=e.fontStyle==="italic"?.21:0;t.renderer.slugPipeline.draw(n,t.renderer.getTransformStack(),u,S,y,e.stroke??"#000000",t.renderer.getSurfaceWidth(),t.renderer.getSurfaceHeight(),{opacity:e.opacity??1,transform:e.matrix,customParam:T})}}let He=new Set,Je=!1;for(let o of x.glyphs)o.font&&o.font!==Z&&(He.add(o.font),Je=!0);let et=e.fontStyle==="italic"?.21:0;if(Je){He.add(Z);for(let o of He){if(t.device&&!o.curvesTex&&L.ensureTextures(t.device,o),!o.curvesTex)continue;let{data:s,visibleCount:y}=Se(o,void 0,0,0,void 0,S=>(S.font??Z)===o);if(y>0){let S=s.subarray(0,y*24);t.renderer.slugPipeline.draw(n,t.renderer.getTransformStack(),o,S,y,e.color??"white",t.renderer.getSurfaceWidth(),t.renderer.getSurfaceHeight(),{opacity:e.opacity??1,transform:e.matrix,customParam:et})}}}else{let{data:o,visibleCount:s}=Se(Z);if(s>0){let y=o.subarray(0,s*24);t.renderer.slugPipeline.draw(n,t.renderer.getTransformStack(),Z,y,s,e.color??"white",t.renderer.getSurfaceWidth(),t.renderer.getSurfaceHeight(),{opacity:e.opacity??1,transform:e.matrix,customParam:et})}}for(let o of x.emojis){let s=e.animation?.applyBy==="line"?0:Math.floor(o.x/(r+m)),y=b[s%q]??0,S=e.opacity??1,I=0,T=0,M=0,g=1;if(e.isVideoMode!==!1){let{p_in:J,p_out:se}=je(z,K,ae,ne,y,q,!0),V=_e(J,se,f,ie,l,te,z,K,ae,ne,y,e.opacity??1,!0);if(!V.visible)continue;S=V.opacity,I=V.transX,T=V.transY,M=V.rot,g=V.scale}if(e.animators&&e.animators.length>0){let J=At(e.animators,{charIndex:s,wordIndex:0,lineIndex:o.lineIndex},{charsCount:x.charsCount,wordsCount:x.wordsCount,linesCount:x.linesCount},{transX:I,transY:T,rot:M,scale:g,scaleX:1,scaleY:1,opacity:S,blurAmount:0},!0);I=J.transX,T=J.transY,M=J.rot,g=J.scale,S=J.opacity}let _=jt(t.device,o.char,o.size),G=o.size*1.15,p=(G-o.size)/2,R={x:e.dstRect.x+o.x+a-p,y:re.y+o.y+a-p,width:G,height:G},N=new DOMMatrix,F=R.x+G/2,O=R.y+G/2;N=N.translate(F,O),(I!==0||T!==0)&&(N=N.translate(I,T)),M!==0&&(N=N.rotate(M)),g!==1&&(N=N.scale(g)),N=N.translate(-F,-O);let $=e.matrix?e.matrix.multiply(N):N;t.renderer.drawTextureRegion(n,_,{x:0,y:0,width:_.width,height:_.height},R,{opacity:S,transform:$})}if(e.typewriter?.cursor?.enabled&&w&&w.isCursorVisible&&(!e.typewriter.cursor.hideOnComplete||w.visibleChars<e.text.length)){let o=e.typewriter.cursor,s=o.color??e.color??"white",y=o.width??2.5,S=o.spacing??3,I=e.dstRect.x+a,T=re.y+a;if(x.glyphs.length>0){let M=x.glyphs[x.glyphs.length-1],g=r/c.unitsPerEm,_=M.clusterAdvance??(M.cp?.advanceWidth||0)*g,G=M.clusterX??M.x,p=o.style==="underscore"||o.style==="block"?r*.5:y;I=e.dstRect.x+a+(M.rtl?G-S-p:G+_+S),T=M.y+re.y+a}o.style==="underscore"?t.renderer.drawRect(n,{x:I,y:T,width:r*.5,height:y},s,0,{opacity:e.opacity??1}):o.style==="block"?t.renderer.drawRect(n,{x:I,y:T-r*.8,width:r*.5,height:r},s,0,{opacity:e.opacity??1}):t.renderer.drawRect(n,{x:I,y:T-r*.8,width:y,height:r},s,0,{opacity:e.opacity??1})}}we();function Tt(t){let e=t.trim().replace(",",".").split(":");if(e.length<2||e.length>3)throw new Error(`Invalid timestamp: ${t}`);if(e.length===2){let[d,u]=e;return parseInt(d,10)*60+parseFloat(u)}let[i,r,c]=e;return parseInt(i,10)*3600+parseInt(r,10)*60+parseFloat(c)}function Ut(t){let n=t.replace(/\r\n/g,`
2
+ `).split(`
3
+ `),e=[];for(let i=0;i<n.length;i++){let r=n[i],c=n[i+1];if(r?.match(/([0-9]+)/)&&c?.includes(" --> ")){let d=c.split(" --> "),u=Tt(d[0]),m=Tt(d[1]);e.push({text:"",startMs:u*1e3,endMs:m*1e3,confidence:1,timestampMs:(u+m)/2*1e3})}else r?.includes(" --> ")||(r?.trim()===""?e.length>0&&(e[e.length-1].text=e[e.length-1].text.trim()):e.length>0&&(e[e.length-1].text+=r+`
4
+ `))}return{captions:e.map(i=>({...i,text:i.text.trimEnd()}))}}function Dt(t,n,e=!0){if(!t||t.length===0)return null;let i=t.find(r=>n>=r.startMs&&n<r.endMs);return i||(!e&&t.length>0?t[0]:null)}function un(t,n,e){if(!t||t.length===0)return 160;let i=n.fontSize??48,r=n.letterSpacing??0,c=n.lineHeight!==void 0&&n.lineHeight<10?n.lineHeight*i:n.lineHeight??i*1.2,d=n.padding??(n.background?12:0),u=e?Math.max(10,e-d*2):void 0,m=n.fontFamily??"Inter";L.isFailed(m)&&(m="Inter");let C=L.getFont(m,n.fontWeight,null,void 0,i),h=0;for(let k of t){if(!k.text)continue;let a=0;if(C&&C.codePoints){let w=be.measure(k.text,C,i,r,c,u);a=Math.ceil(w.height)}else{let w=k.text.split(`
5
+ `),v=0;for(let X of w)if(u){let j=X.length*i*.55+r*X.length,P=Math.max(1,Math.ceil(j/u));v+=P}else v+=1;a=Math.ceil(v*c)}let A=a+d*2;A>h&&(h=A)}return Math.max(20,h||160)}var Ze=class{cache=new Map;resolvedCache=new Map;getCached(n){return this.resolvedCache.get(n)}setCached(n,e){this.resolvedCache.set(n,e)}clear(){this.cache.clear(),this.resolvedCache.clear()}async load(n){if(!n)return[];let e=this.resolvedCache.get(n);if(e)return e;let i=this.cache.get(n);return i||(i=(async()=>{let r="";if(n.startsWith("data:")){let d=n.indexOf(",");if(d!==-1){let u=n.substring(0,d),m=n.substring(d+1);r=u.includes(";base64")?typeof Buffer<"u"?Buffer.from(m,"base64").toString("utf-8"):new TextDecoder().decode(Uint8Array.from(atob(m),h=>h.charCodeAt(0))):decodeURIComponent(m)}}else if(n.includes("-->"))r=n;else if(n.startsWith("http://")||n.startsWith("https://")){let d=await fetch(n);if(!d.ok)throw new Error(`Failed to fetch SRT: ${n}`);r=await d.text()}else{let d=n;if(d.startsWith("file://"))try{d=new URL(d).pathname}catch{d=d.replace(/^file:\/\//,"")}if(typeof Re<"u"&&Re.versions?.node)try{r=await(await import("./shims/fs-promises.mjs")).readFile(d,"utf-8")}catch{let u=await fetch(n);if(!u.ok)throw new Error(`Failed to fetch SRT: ${n}`);r=await u.text()}else{let u=await fetch(n);if(!u.ok)throw new Error(`Failed to fetch SRT: ${n}`);r=await u.text()}}let c=Ut(r).captions;return this.resolvedCache.set(n,c),c})(),this.cache.set(n,i),i.catch(()=>{this.cache.delete(n),this.resolvedCache.delete(n)})),i}},Nt=new Ze;async function dn(t,n,e){if(!e.src)return;let i=await Nt.load(e.src);if(!i||i.length===0)return;let r=e.frame/e.fps*1e3,c=Dt(i,r,e.isVideoMode!==!1);if(!c)return;let d=c.text,u=e.dstRect.width,m=e.padding??(e.textBackgroundColor?12:0),C=Math.max(10,u-m*2),h=e.maxWidth!==void 0?Math.min(e.maxWidth,C):C,k=e.fontSize??48,a=e.fontFamily??"Inter";if(L.isFailed(a)&&(a="Inter"),L.isFailed(a))return;let A=e.letterSpacing??0,w=L.getFont(a,e.fontWeight,t.device,void 0,k);if(!w||!w.curvesTex){let z=Ge(a);L.preloadSlugFont(t.device,a,z,void 0,e.renderId).catch(K=>{console.warn(`[drawCaptionNode] Failed to load Slug font for ${a}:`,K)});return}let v=e.lineHeight!==void 0&&e.lineHeight<10?e.lineHeight*k:e.lineHeight??k*1.2,X=be.measure(d,w,k,A,v,h,void 0,e.direction),j=X.width,P=X.height,H=j+m*2,ee=P+m*2,oe=e.align??"center",x=X.layout?.glyphs[0]?.baseRtl??e.direction==="rtl",fe=oe==="start"?x?"right":"left":oe==="end"?x?"left":"right":oe,le=0;fe==="center"?le=Math.max(0,(u-H)/2):fe==="right"&&(le=Math.max(0,u-H));let re=e.dstRect.height,U=e.verticalAlign??e.textAlignVertical??"bottom",ue=0;U==="top"?ue=0:U==="middle"?ue=(re-ee)/2:ue=re-ee;let he={x:e.dstRect.x+le,y:e.dstRect.y+ue,width:H,height:ee},Z=e.opacity??1;if(e.textBackgroundColor){let z=e.strokeRadius??e.borderRadius??8;t.renderer.drawRRect(n,{rect:he,rx:z,ry:z},e.textBackgroundColor,{opacity:Z})}let me={x:he.x+m,y:he.y+m,width:j,height:P};pt(t,n,{...e,text:d,dstRect:me,width:h,height:P,align:oe,opacity:Z,isCaption:!0,animation:void 0,textBackgroundColor:void 0})}export{Ct as a,zt as b,Mt as c,pt as d,un as e,Nt as f,dn as g};
@@ -0,0 +1,3 @@
1
+ import{b as E,d as R,g as A,j as w,x as U}from"./chunk-2LQCQ3OT.mjs";import{m as P}from"./chunk-4GEWSUX5.mjs";import{o as g}from"./chunk-YAQFFQPG.mjs";import{d as y,e as x}from"./chunk-BVF64D6H.mjs";x();x();var S=65536,$=1953658213,N=1954115633,k=1330926671,H=1953784678;function M(r,t){if(r.length<12)throw new Error(`Invalid font binary for "${t}": File size (${r.length} bytes) is too small to be a valid TrueType or OpenType font.`);let e=(r[0]??0)<<24|(r[1]??0)<<16|(r[2]??0)<<8|(r[3]??0);if(e===S||e===$||e===N||e===H)return"truetype";if(e===k)return"opentype";let i=(e>>>0).toString(16).padStart(8,"0");throw new Error(`Invalid font format for "${t}": Expected a valid TrueType (.ttf) or OpenType (.otf) font binary. Found header tag: 0x${i}.`)}async function I(r){if(r instanceof Uint8Array)return{buffer:r};if(typeof r!="string")throw new TypeError(`Font source must be a file path string or Uint8Array, received: ${typeof r}`);let t=r;if(t.startsWith("http://")||t.startsWith("https://")){let s=await fetch(t);if(!s.ok)throw new Error(`Failed to download font from "${t}": HTTP ${s.status} ${s.statusText}`);let c=await s.arrayBuffer();return{buffer:new Uint8Array(c),filePath:t}}if(t.startsWith("file://"))try{t=decodeURIComponent(new URL(t).pathname).replace(/^\/([A-Za-z]:)/,"$1")}catch{t=t.replace(/^file:\/\//,"")}let e=[t,g.resolve(y.cwd(),t),g.resolve(y.cwd(),"assets/fonts",t),g.resolve(y.cwd(),"assets/fonts",g.basename(t))],i=y.cwd();for(let s=0;s<5;s++){e.push(g.resolve(i,t)),e.push(g.resolve(i,"assets/fonts",g.basename(t)));let c=g.dirname(i);if(c===i)break;i=c}let a=null,l=null;for(let s of e)try{if((await P.stat(s)).isFile()){a=s,l=await P.readFile(s);break}}catch{}if(!a||!l)throw new Error(`Font file not found: "${r}". Checked candidate locations:
2
+ - ${e.join(`
3
+ - `)}`);return{buffer:new Uint8Array(l.buffer,l.byteOffset,l.byteLength),filePath:a}}var v=class r{static instance=null;fonts=new Map;constructor(){}static getInstance(){return r.instance||(r.instance=new r),r.instance}static async register(t,e){return r.getInstance().register(t,e)}static async registerEmojiFont(t){let{buffer:e,filePath:i}=await I(t);M(e,i??(typeof t=="string"?t:"Uint8Array")),w.setEmojiFont(e,i)}static hasEmojiFont(){return w.hasEmojiFont()}static measure(t,e){let i=e.fontSize??48,a=w.getFont(e.fontFamily,e.fontWeight,null,void 0,i);if(!a)throw new Error(`FontManager.measure: font "${e.fontFamily}" is not registered. Call \`await FontManager.register(...)\` first.`);let l=e.lineHeight!==void 0&&e.lineHeight<10?e.lineHeight*i:e.lineHeight??i*1.2,s=e.letterSpacing??0,{width:c,height:h,layout:m}=U.measure(t,a,i,s,l,e.width,void 0,e.direction),T=i/a.unitsPerEm,o=[],F=new Set,d=0;for(let n of m.glyphs){let f=n.textIndex;if(f===void 0){let u=t.indexOf(n.char,d);f=u>=0?u:d}if(F.has(f))continue;F.add(f),d=f+n.char.length;let p=n.clusterAdvance??n.cp.advanceWidth*(n.fontScale??T);o.push({char:n.char,index:f,x:n.clusterX??n.x,y:n.y,width:p+s,line:n.lineIndex,...n.rtl&&{rtl:!0}})}let b=n=>{if(n<=0||o.length===0){let u=o[0];return u?u.rtl?u.x+u.width-s:u.x:0}let f=o.filter(u=>u.index<n),p=f[f.length-1];return p?p.rtl?p.x:p.x+p.width-s:0};return{width:c,height:h,lines:m.linesCount,lineHeight:l,glyphs:o,caretX:b,widthOf:n=>b(n)-(o[0]?.x??0)}}static get(t){return r.getInstance().get(t)}static has(t){return r.getInstance().has(t)}static getAll(){return r.getInstance().getAll()}static getRegisteredFontPaths(){return r.getInstance().getRegisteredFontPaths()}static clear(){r.getInstance().clear()}async register(t,e){let i,a,l,s;if(typeof t=="object"&&t!==null)i=t.family,a=t.source,l=t.weight,s=t.style;else if(typeof t=="string"&&e!==void 0)i=t,a=e;else if(typeof t=="string")i=void 0,a=t;else throw new TypeError("Invalid arguments passed to FontManager.register");let{buffer:c,filePath:h}=await I(a),m=h??(typeof a=="string"?a:"Uint8Array"),T=M(c,m),o;try{let n=A(c);n&&"fonts"in n&&Array.isArray(n.fonts)&&n.fonts.length>0?o=n.fonts[0]:o=n}catch(n){let f=n instanceof Error?n.message:String(n);throw new Error(`Failed to parse TrueType/OpenType font binary for "${m}": ${f}`)}let F=o.familyName||o.postscriptName||g.parse(m).name,d=i?.trim()||F,b={family:d,source:a,filePath:h,format:T,postscriptName:o.postscriptName,unitsPerEm:o.unitsPerEm,weight:l,style:s};return this.fonts.set(d,b),R(d,h??a),h&&await E(d,h),w.setParsed(d,o),b}get(t){return this.fonts.get(t)}has(t){return this.fonts.has(t)}getAll(){return Array.from(this.fonts.values())}getRegisteredFontPaths(){let t=[];for(let e of this.fonts.values())e.filePath?t.push(e.filePath):typeof e.source=="string"&&t.push(e.source);return t}clear(){this.fonts.clear()}};export{v as a};
@@ -1 +1 @@
1
- import{$b as M,Ab as l,Ac as la,Bb as m,Bc as ma,Cb as n,Cc as na,Db as o,Dc as oa,Eb as p,Ec as pa,Fb as q,Fc as qa,Gb as r,Gc as ra,Hb as s,Hc as sa,Ib as t,Ic as ta,Jb as u,Jc as ua,Kb as v,Kc as va,Lb as w,Lc as wa,Mb as x,Nb as y,Ob as z,Pb as A,Qb as B,Rb as C,Sb as D,Tb as E,Ub as F,Vb as G,Wb as H,Xb as I,Yb as J,Zb as K,_b as L,ac as N,bc as O,cc as P,dc as Q,ec as R,fc as S,gc as T,hc as U,ic as V,jc as W,kc as X,lc as Y,mc as Z,nc as _,oc as $,pc as aa,qb as b,qc as ba,rb as c,rc as ca,sb as d,sc as da,tb as e,tc as ea,ub as f,uc as fa,vb as g,vc as ga,wb as h,wc as ha,xb as i,xc as ia,yb as j,yc as ja,zb as k,zc as ka}from"./chunk-2TCJSHFA.mjs";import"./chunk-PIAJWALT.mjs";import"./chunk-VY6ST4QX.mjs";import"./chunk-ZEYUXJIV.mjs";import"./chunk-PJ3DVG45.mjs";import"./chunk-ZJLNXN7W.mjs";import"./chunk-LKYN3BM2.mjs";import"./chunk-BBHRXV75.mjs";import"./chunk-NQZRPPUU.mjs";import"./chunk-6PMATELR.mjs";import"./chunk-DDFWN7DI.mjs";import"./chunk-RF62TV3G.mjs";import"./chunk-AKT4YQWL.mjs";import"./chunk-YQRKT47I.mjs";import"./chunk-WDWHOXSA.mjs";import"./chunk-KWTTANYN.mjs";import"./chunk-J24VHZS6.mjs";import"./chunk-LYSU6S4O.mjs";import"./chunk-YEPYVASB.mjs";import"./chunk-DOCFOSA6.mjs";import"./chunk-QPBTLJ5W.mjs";import"./chunk-MUOJMF7M.mjs";import"./chunk-TPFDAOW7.mjs";import"./chunk-5NT7WWJR.mjs";import"./chunk-4INGTMZ5.mjs";import"./chunk-RW2F3XLQ.mjs";import"./chunk-OXXRKNHW.mjs";import"./chunk-RHXZXWJ4.mjs";import"./chunk-UEQIO6AH.mjs";import"./chunk-JD4TBC6Z.mjs";import"./chunk-ULVX4VYT.mjs";import"./chunk-2YGR5YCN.mjs";import"./chunk-RKNV5N7D.mjs";import"./chunk-VXUJWPIK.mjs";import"./chunk-FZLKPBKS.mjs";import"./chunk-LN3YAWUD.mjs";import"./chunk-OLLY3Q7M.mjs";import"./chunk-2JKXYG6J.mjs";import"./chunk-W2EZFV4Q.mjs";import"./chunk-ULPLHKM2.mjs";import"./chunk-SQ52PBF3.mjs";import"./chunk-7I7PKKDL.mjs";import"./chunk-B7J72YSP.mjs";import"./chunk-QVW5METG.mjs";import"./chunk-MMVFX42U.mjs";import"./chunk-JTT3YX7W.mjs";import"./chunk-QRYCB6E3.mjs";import"./chunk-XKO4RYKN.mjs";import"./chunk-SYP4AJMF.mjs";import"./chunk-MBJXS3D7.mjs";import"./chunk-CURR5X7D.mjs";import"./chunk-UQD2UE6I.mjs";import"./chunk-SXNCNG4L.mjs";import"./chunk-IIOHF7MH.mjs";import"./chunk-RDEQ4LQU.mjs";import"./chunk-3KHD67Q3.mjs";import"./chunk-4JX5LBE2.mjs";import"./chunk-SP22JWN2.mjs";import"./chunk-Q7JN4EHX.mjs";import"./chunk-SIXIF5QZ.mjs";import"./chunk-3SR6BI4B.mjs";import"./chunk-GQIRV466.mjs";import"./chunk-SVE3XWO7.mjs";import"./chunk-NKGXINCU.mjs";import{a}from"./chunk-V3FODTPI.mjs";import"./chunk-ENKKLU7B.mjs";import"./chunk-QKQYHPBK.mjs";import"./chunk-MJCK5FLZ.mjs";import"./chunk-PJMX2GFY.mjs";import"./chunk-37EFVZWT.mjs";import"./chunk-2SJ4BBMT.mjs";import"./chunk-24P6DAB3.mjs";import"./chunk-KJGNTREI.mjs";import"./chunk-LXHECDOB.mjs";import"./chunk-6YJP57MZ.mjs";import"./chunk-ALSOO22Q.mjs";import"./chunk-Q7XC3FI7.mjs";import"./chunk-2LQCQ3OT.mjs";import"./chunk-4GEWSUX5.mjs";import"./chunk-MTJHQATU.mjs";import"./chunk-IQC2I5A5.mjs";import"./chunk-IQKIHFNZ.mjs";import"./chunk-YAQFFQPG.mjs";import"./chunk-BVF64D6H.mjs";export{z as MOTION_PRESETS,ba as UNIT_INDEX,va as analyzeAudio,c as analyzeChannels,sa as anchorPoint,Q as arcPath,Z as arrowPaths,f as audioLevelsSchema,h as bakeFunction,g as bakeSamples,b as bandEdges,J as basePropsSchema,q as beats,L as bind,wa as bindComponent,_ as boilKeys,ra as boundsOf,W as boxPath,P as catmullRom,y as chain,ga as constantExpression,G as contrastRatio,x as cover,K as defineComponent,ja as defineMeta,E as defineTheme,N as dist,T as drawOnKeys,$ as ease,V as ellipsePath,B as enterAnimation,aa as evaluateEase,ia as evaluateGlyphExpression,C as exitAnimation,ma as findRange,v as frameSpan,ha as glyphAnimator,n as hashRng,m as hashString,M as holdFirstKeys,O as lerp2,X as linePath,na as lineShift,H as offsetCues,I as pulseKeys,r as quantize,oa as rangeRects,fa as rendererChars,d as resampleBands,A as resolveMotion,pa as resolveTarget,l as rng,s as scaleFrames,ca as scheduleExpression,e as smoothRelease,i as springAt,k as springKeys,j as springSettleFrames,Y as squigglePath,t as staggerOffsets,u as staggerRanks,ea as stepExpression,ta as targetPoint,ka as targetSchema,qa as textLayout,F as themeFrames,D as themes,o as toFrames,R as toPathData,p as toSeconds,S as transformPathData,ua as typingFrames,da as windowExpression,w as within,U as wobblePoints,la as wordRanges,a as z};
1
+ import{$b as M,$c as Ma,Ab as l,Ac as la,Bb as m,Bc as ma,Cb as n,Cc as na,Db as o,Dc as oa,Eb as p,Ec as pa,Fb as q,Fc as qa,Gb as r,Gc as ra,Hb as s,Hc as sa,Ib as t,Ic as ta,Jb as u,Jc as ua,Kb as v,Kc as va,Lb as w,Lc as wa,Mb as x,Mc as xa,Nb as y,Nc as ya,Ob as z,Oc as za,Pb as A,Pc as Aa,Qb as B,Qc as Ba,Rb as C,Rc as Ca,Sb as D,Sc as Da,Tb as E,Tc as Ea,Ub as F,Uc as Fa,Vb as G,Vc as Ga,Wb as H,Wc as Ha,Xb as I,Xc as Ia,Yb as J,Yc as Ja,Zb as K,Zc as Ka,_b as L,_c as La,ac as N,ad as Na,bc as O,bd as Oa,cc as P,cd as Pa,dc as Q,dd as Qa,ec as R,ed as Ra,fc as S,fd as Sa,gc as T,hc as U,ic as V,jc as W,kc as X,lc as Y,mc as Z,nc as _,oc as $,pc as aa,qb as b,qc as ba,rb as c,rc as ca,sb as d,sc as da,tb as e,tc as ea,ub as f,uc as fa,vb as g,vc as ga,wb as h,wc as ha,xb as i,xc as ia,yb as j,yc as ja,zb as k,zc as ka}from"./chunk-MLAIEIUF.mjs";import"./chunk-PIAJWALT.mjs";import"./chunk-VY6ST4QX.mjs";import"./chunk-ZEYUXJIV.mjs";import"./chunk-PJ3DVG45.mjs";import"./chunk-AYTP6OGO.mjs";import"./chunk-LKYN3BM2.mjs";import"./chunk-BBHRXV75.mjs";import"./chunk-NQZRPPUU.mjs";import"./chunk-6PMATELR.mjs";import"./chunk-DDFWN7DI.mjs";import"./chunk-RF62TV3G.mjs";import"./chunk-AKT4YQWL.mjs";import"./chunk-YQRKT47I.mjs";import"./chunk-WDWHOXSA.mjs";import"./chunk-KWTTANYN.mjs";import"./chunk-J24VHZS6.mjs";import"./chunk-LYSU6S4O.mjs";import"./chunk-YEPYVASB.mjs";import"./chunk-DOCFOSA6.mjs";import"./chunk-QPBTLJ5W.mjs";import"./chunk-MUOJMF7M.mjs";import"./chunk-TPFDAOW7.mjs";import"./chunk-5NT7WWJR.mjs";import"./chunk-4INGTMZ5.mjs";import"./chunk-RW2F3XLQ.mjs";import"./chunk-OXXRKNHW.mjs";import"./chunk-RHXZXWJ4.mjs";import"./chunk-UEQIO6AH.mjs";import"./chunk-JD4TBC6Z.mjs";import"./chunk-ULVX4VYT.mjs";import"./chunk-2YGR5YCN.mjs";import"./chunk-RKNV5N7D.mjs";import"./chunk-VXUJWPIK.mjs";import"./chunk-FZLKPBKS.mjs";import"./chunk-LN3YAWUD.mjs";import"./chunk-OLLY3Q7M.mjs";import"./chunk-2JKXYG6J.mjs";import"./chunk-W2EZFV4Q.mjs";import"./chunk-ULPLHKM2.mjs";import"./chunk-SQ52PBF3.mjs";import"./chunk-7I7PKKDL.mjs";import"./chunk-B7J72YSP.mjs";import"./chunk-QVW5METG.mjs";import"./chunk-MMVFX42U.mjs";import"./chunk-JTT3YX7W.mjs";import"./chunk-QRYCB6E3.mjs";import"./chunk-XKO4RYKN.mjs";import"./chunk-SYP4AJMF.mjs";import"./chunk-MBJXS3D7.mjs";import"./chunk-CURR5X7D.mjs";import"./chunk-UQD2UE6I.mjs";import"./chunk-SXNCNG4L.mjs";import"./chunk-IIOHF7MH.mjs";import"./chunk-RDEQ4LQU.mjs";import"./chunk-3KHD67Q3.mjs";import"./chunk-4JX5LBE2.mjs";import"./chunk-SP22JWN2.mjs";import"./chunk-Q7JN4EHX.mjs";import"./chunk-SIXIF5QZ.mjs";import"./chunk-3SR6BI4B.mjs";import"./chunk-GQIRV466.mjs";import"./chunk-SVE3XWO7.mjs";import"./chunk-NKGXINCU.mjs";import{a}from"./chunk-V3FODTPI.mjs";import"./chunk-ENKKLU7B.mjs";import"./chunk-QKQYHPBK.mjs";import"./chunk-MJCK5FLZ.mjs";import"./chunk-PJMX2GFY.mjs";import"./chunk-37EFVZWT.mjs";import"./chunk-2SJ4BBMT.mjs";import"./chunk-24P6DAB3.mjs";import"./chunk-KJGNTREI.mjs";import"./chunk-LXHECDOB.mjs";import"./chunk-6YJP57MZ.mjs";import"./chunk-ALSOO22Q.mjs";import"./chunk-ZMMNN77R.mjs";import"./chunk-2LQCQ3OT.mjs";import"./chunk-4GEWSUX5.mjs";import"./chunk-MTJHQATU.mjs";import"./chunk-IQC2I5A5.mjs";import"./chunk-IQKIHFNZ.mjs";import"./chunk-YAQFFQPG.mjs";import"./chunk-BVF64D6H.mjs";export{j as KeyBook,R as MOTION_PRESETS,Aa as SAFE_INSETS,i as Track,sa as UNIT_INDEX,ba as after,Ra as analyzeAudio,l as analyzeChannels,Oa as anchorPoint,ha as arcPath,qa as arrowPaths,f as ascending,o as audioLevelsSchema,q as bakeFunction,p as bakeSamples,k as bandEdges,_ as basePropsSchema,I as beats,ca as bind,Sa as bindComponent,ra as boilKeys,Na as boundsOf,na as boxPath,ga as catmullRom,Q as chain,xa as constantExpression,A as contrastRatio,P as cover,$ as defineComponent,Ca as defineMeta,W as defineTheme,ea as dist,ka as drawOnKeys,b as ease,Fa as elevate,Ea as elevationStyle,ma as ellipsePath,T as enterAnimation,c as evaluateEase,za as evaluateGlyphExpression,U as exitAnimation,Ia as findRange,N as frameSpan,ya as glyphAnimator,F as hashRng,E as hashString,da as holdFirstKeys,C as inkOn,B as isLight,e as last,fa as lerp2,oa as linePath,Ja as lineShift,z as luminance,y as mix,Y as offsetCues,v as parseColor,Z as pulseKeys,J as quantize,Ka as rangeRects,wa as rendererChars,m as resampleBands,S as resolveMotion,La as resolveTarget,D as rng,d as round,Ba as safeArea,K as scaleFrames,ta as scheduleExpression,n as smoothRelease,r as springAt,t as springKeys,s as springSettleFrames,u as springTrack,pa as squigglePath,L as staggerOffsets,M as staggerRanks,va as stepExpression,g as supersede,Ga as surfaceFill,Pa as targetPoint,Da as targetSchema,Ma as textLayout,X as themeFrames,V as themes,G as toFrames,ia as toPathData,H as toSeconds,ja as transformPathData,x as transparent,Qa as typingFrames,h as valueAt,ua as windowExpression,w as withAlpha,aa as withDefaults,O as within,la as wobblePoints,Ha as wordRanges,a as z};
@@ -1 +1 @@
1
- import{a}from"./chunk-Q7XC3FI7.mjs";import"./chunk-2LQCQ3OT.mjs";import"./chunk-4GEWSUX5.mjs";import"./chunk-MTJHQATU.mjs";import"./chunk-IQC2I5A5.mjs";import"./chunk-IQKIHFNZ.mjs";import"./chunk-YAQFFQPG.mjs";import"./chunk-BVF64D6H.mjs";export{a as FontManager};
1
+ import{a}from"./chunk-ZMMNN77R.mjs";import"./chunk-2LQCQ3OT.mjs";import"./chunk-4GEWSUX5.mjs";import"./chunk-MTJHQATU.mjs";import"./chunk-IQC2I5A5.mjs";import"./chunk-IQKIHFNZ.mjs";import"./chunk-YAQFFQPG.mjs";import"./chunk-BVF64D6H.mjs";export{a as FontManager};
@@ -1 +1 @@
1
- import{$ as Hd,$a as jf,A as Ac,Aa as je,B as Bc,Ba as ke,C as Cc,Ca as le,D as Dc,Da as me,E as Ec,Ea as ne,F as Fc,Fa as se,G as Gc,Ga as te,H as Hc,Ha as ue,I as Ic,Ia as xe,J as Jc,Ja as Me,K as Kc,Ka as Ne,Kc as Tg,L as Lc,La as Oe,Lc as Ug,M as Mc,Ma as Pe,Mc as Vg,N as Nc,Na as Se,Nc as Wg,O as Oc,Oa as Te,Oc as Xg,P as Pc,Pa as Ue,Pc as Yg,Q as Qc,Qa as Ve,Qc as Zg,R as Rc,Ra as We,Rc as _g,S as Sc,Sa as Xe,Sb as Qg,Sc as $g,T as kd,Ta as Ye,Tb as Rg,Tc as ah,U as ld,Ua as Ze,V as od,Va as _e,W as pd,Wa as $e,X as rd,Xa as af,Xb as Sg,Y as sd,Ya as bf,Z as td,Za as cf,_ as Gd,_a as hf,a as Kb,aa as Id,ab as kf,b as bc,ba as Ld,bb as Bg,c as cc,ca as Nd,cb as Cg,d as dc,da as Od,db as Dg,e as ec,ea as Pd,eb as Eg,f as fc,fa as Qd,fb as Fg,g as gc,ga as Rd,gb as Gg,h as hc,ha as Sd,hb as Hg,i as ic,ia as Td,ib as Ig,j as jc,ja as Ud,jb as Jg,k as kc,ka as Vd,kb as Kg,l as lc,la as Wd,lb as Lg,m as mc,ma as Xd,mb as Mg,n as nc,na as Yd,nb as Ng,o as oc,oa as Zd,ob as Og,p as pc,pa as _d,pb as Pg,q as qc,qa as $d,r as rc,ra as ae,s as sc,sa as be,t as tc,ta as ce,u as uc,ua as de,v as vc,va as ee,w as wc,wa as fe,x as xc,xa as ge,y as yc,ya as he,z as zc,za as ie}from"./chunk-2TCJSHFA.mjs";import"./chunk-PIAJWALT.mjs";import{A as vd,B as wd,C as zd,D as Ad,E as Bd,F as Cd,G as Dd,I as Ed,J as Fd,N as Jd,O as Kd,P as Md,Q as oe,R as pe,S as qe,T as re,a as ub,b as vb,c as Bb,d as Cb,e as Db,f as Eb,g as Fb,h as Gb,i as Hb,j as Ib,k as Jb,l as Lb,m as Mb,n as Nb,q as Ob,r as Pb,s as jd,x as md,y as nd,z as ud}from"./chunk-VY6ST4QX.mjs";import"./chunk-ZEYUXJIV.mjs";import"./chunk-PJ3DVG45.mjs";import{b as gd,f as id,g as xd,h as yd}from"./chunk-ZJLNXN7W.mjs";import{a as fd}from"./chunk-LKYN3BM2.mjs";import{a as Tc,b as Uc,c as Vc,d as Wc,e as Xc,f as Yc,g as Zc,h as _c,i as $c,j as ad,k as bd,l as cd,m as dd,n as ed}from"./chunk-BBHRXV75.mjs";import{$ as kg,A as Lf,B as Mf,C as Nf,D as Of,E as Pf,F as Qf,G as Rf,H as Sf,I as Tf,J as Uf,K as Vf,L as Wf,M as Xf,N as Yf,O as Zf,P as _f,Q as $f,R as ag,S as bg,T as cg,U as dg,V as eg,W as fg,X as gg,Y as hg,Z as ig,_ as jg,a as lf,aa as lg,b as mf,ba as mg,c as nf,ca as ng,d as of,da as og,e as pf,ea as pg,f as qf,fa as qg,g as rf,ga as rg,h as sf,ha as sg,i as tf,ia as tg,j as uf,ja as ug,k as vf,ka as vg,l as wf,la as wg,m as xf,ma as xg,n as yf,na as yg,o as zf,oa as zg,p as Af,pa as Ag,q as Bf,r as Cf,s as Df,t as Ef,u as Ff,v as Gf,w as Hf,x as If,y as Jf,z as Kf}from"./chunk-NQZRPPUU.mjs";import"./chunk-6PMATELR.mjs";import"./chunk-DDFWN7DI.mjs";import"./chunk-RF62TV3G.mjs";import{$ as He,A as ra,B as sa,C as ta,D as ua,E as va,F as wa,G as xa,H as ya,I as za,J as Aa,K as Ka,L as lb,M as rb,N as sb,O as tb,Q as ye,R as ze,S as Ae,T as Be,U as Ce,V as De,W as Ee,X as Fe,Y as Ge,aa as Ie,b as u,ba as Je,c as v,ca as Ke,d as w,da as Le,e as x,f as y,g as I,h as J,i as K,j as L,k as M,l as N,m as O,n as P,o as Q,p as R,q as S,r as T,s as U,t as V,u as W,v as X,w as Y,x as Z,y as _,z as $}from"./chunk-AKT4YQWL.mjs";import"./chunk-YQRKT47I.mjs";import"./chunk-WDWHOXSA.mjs";import"./chunk-KWTTANYN.mjs";import"./chunk-J24VHZS6.mjs";import"./chunk-LYSU6S4O.mjs";import"./chunk-YEPYVASB.mjs";import"./chunk-DOCFOSA6.mjs";import"./chunk-QPBTLJ5W.mjs";import"./chunk-MUOJMF7M.mjs";import"./chunk-TPFDAOW7.mjs";import"./chunk-5NT7WWJR.mjs";import"./chunk-4INGTMZ5.mjs";import"./chunk-RW2F3XLQ.mjs";import"./chunk-OXXRKNHW.mjs";import"./chunk-RHXZXWJ4.mjs";import"./chunk-UEQIO6AH.mjs";import"./chunk-JD4TBC6Z.mjs";import"./chunk-ULVX4VYT.mjs";import"./chunk-2YGR5YCN.mjs";import"./chunk-RKNV5N7D.mjs";import{a as mb,b as nb,c as ob,d as pb,e as qb}from"./chunk-VXUJWPIK.mjs";import"./chunk-FZLKPBKS.mjs";import"./chunk-LN3YAWUD.mjs";import{a as z,b as A,c as Ya}from"./chunk-OLLY3Q7M.mjs";import{a as we}from"./chunk-2JKXYG6J.mjs";import"./chunk-W2EZFV4Q.mjs";import"./chunk-ULPLHKM2.mjs";import"./chunk-SQ52PBF3.mjs";import{a as ve}from"./chunk-7I7PKKDL.mjs";import"./chunk-B7J72YSP.mjs";import"./chunk-QVW5METG.mjs";import"./chunk-MMVFX42U.mjs";import"./chunk-JTT3YX7W.mjs";import"./chunk-QRYCB6E3.mjs";import"./chunk-XKO4RYKN.mjs";import{a as fb,b as gb,c as hb,d as ib,e as jb,f as kb}from"./chunk-SYP4AJMF.mjs";import{a as Qb}from"./chunk-MBJXS3D7.mjs";import{a as df,b as ef,c as ff,d as gf}from"./chunk-CURR5X7D.mjs";import"./chunk-UQD2UE6I.mjs";import"./chunk-SXNCNG4L.mjs";import"./chunk-IIOHF7MH.mjs";import"./chunk-RDEQ4LQU.mjs";import"./chunk-3KHD67Q3.mjs";import"./chunk-4JX5LBE2.mjs";import"./chunk-SP22JWN2.mjs";import"./chunk-Q7JN4EHX.mjs";import"./chunk-SIXIF5QZ.mjs";import"./chunk-3SR6BI4B.mjs";import{a as Qe}from"./chunk-GQIRV466.mjs";import"./chunk-SVE3XWO7.mjs";import"./chunk-NKGXINCU.mjs";import{A as Ba,B as Ca,C as Da,D as Ea,E as Fa,F as Ga,G as Ha,H as Ia,I as Ja,c as B,d as C,e as D,f as E,g as F,h as G,i as H,j as aa,k as ba,l as ca,m as da,n as ea,o as fa,p as ga,q as ha,r as ia,s as ja,t as ka,u as la,v as ma,w as na,x as oa,y as pa,z as qa}from"./chunk-V3FODTPI.mjs";import"./chunk-ENKKLU7B.mjs";import{a as yb,b as zb}from"./chunk-QKQYHPBK.mjs";import"./chunk-MJCK5FLZ.mjs";import{b as qd}from"./chunk-PJMX2GFY.mjs";import{a as wb}from"./chunk-37EFVZWT.mjs";import"./chunk-2SJ4BBMT.mjs";import{a as La,b as Ma,c as Na,d as Oa,e as Pa,f as Qa,g as Ra,h as Sa,i as Ta,j as Ua,k as Va,l as Wa,m as Xa}from"./chunk-24P6DAB3.mjs";import{e as Ab}from"./chunk-KJGNTREI.mjs";import"./chunk-LXHECDOB.mjs";import{d as xb}from"./chunk-6YJP57MZ.mjs";import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t}from"./chunk-ALSOO22Q.mjs";import{a as Re}from"./chunk-Q7XC3FI7.mjs";import{B as hd,j as Rb,k as Sb,l as Tb,m as Ub,n as Vb,o as Wb,p as Xb,q as Yb,r as Zb,s as _b,t as $b,u as ac}from"./chunk-2LQCQ3OT.mjs";import"./chunk-4GEWSUX5.mjs";import"./chunk-MTJHQATU.mjs";import"./chunk-IQC2I5A5.mjs";import{a as Za,b as _a,c as $a,d as ab,e as bb,f as cb,g as db,h as eb}from"./chunk-IQKIHFNZ.mjs";import"./chunk-YAQFFQPG.mjs";import"./chunk-BVF64D6H.mjs";var export_HeadlessMediaRenderer=Fg.HeadlessMediaRenderer;var export_HeadlessWebGPURenderer=Fg.HeadlessWebGPURenderer;var export_formatQaReport=Fg.formatQaReport;var export_renderSemaphore=Fg.renderSemaphore;var export_resetRenderCaches=Fg.resetRenderCaches;export{Pc as AETextAnimatorSchema,bc as AdvancedTextAnimatorBuilder,uc as AdvancedTextAnimatorSchema,cc as AnchorGroupingSchema,dc as AnchorPresetSchema,Mc as AnimatableGlyphPropsSchema,ra as AnimationTypeSchema,oa as AnyOutputUnionSchema,Me as ApiError,ng as ApplyLUT,mf as Ascii,nf as AudioCompressor,of as AudioDelay,ea as AudioExtractorSignalDataSchema,pf as AudioFade,ub as AudioLatentEngine,vb as AudioLatentTrackCache,jd as AudioMeshDeformPipeline,qf as AudioNoiseGate,rf as AudioParametricEq,sf as AudioReverb,Qe as AudioSignal,ig as AudioSignalExtractor,qc as AudioSpectrumTypographySchema,Fa as BaseMediaOperationPropsSchema,ya as BaseVideoLayerPropsSchema,Wd as BloomConfigSchema,dg as Blur,Zd as BoxNodeSchema,Pa as CAPTION_LAYER_DEFAULTS,De as COCO17_BONES,Be as COCO17_KEYPOINTS,Ce as COCO17_KEYPOINT_NAMES,ye as COCO_CLASSES,Y as COMPOSITE_OPERATIONS,$ as COMPOSITOR_DEFAULTS,Af as CRT,Db as Camera3D,Id as CameraAnimation,Rd as CameraNodeSchema,tf as CameraParallax3D,te as CannyComputePipeline,ie as CarrierHandoffConfigSchema,uf as ChannelMerger,vf as ChannelSplitter,pc as ChromaticGlitchConfigSchema,jf as ClipVision,eb as Color,wf as ColorBalance,xf as ColorKey,de as ColorStopSchema,Wg as Composition,ge as CompositorProgramSchema,x as ConfigHandleSchema,_ as ConfigSchemaRegistry,yf as Contour,se as ControlNetMultiplexer,zf as CornerPin,wg as Crop,wc as CubicBezierSegmentSchema,jg as Curves,hg as CustomEffect,W as DATA_TYPE_EXTENSIONS,hf as DEFAULT_CHART_COLORS,Ma as DEFAULT_DURATION_MS,La as DEFAULT_FPS,Na as DEFAULT_MEDIA_DIMENSION,C as DataType,B as DataTypeVal,D as DataTypes,Bf as Datamosh,ue as DepthNormalsComputePipeline,vg as DepthOfField,Cf as DisplacementMap,Df as Dither,mc as DynamicStrokePropertiesSchema,Eb as ENVIRONMENT_PRESETS,vd as Easing,ah as Effect,gd as EffectPipeline,Qc as EnhancedTextNodeSchema,Vd as EnvironmentFogSchema,Td as EnvironmentPresetSchema,qa as ExportResultSchema,lc as ExpressionSelectorSchema,tc as ExtendedGlyphPropertiesSchema,Ka as ExtendedLayerSchema,Ef as ExtractLUT,Oe as FRAMEFIELDS_AI_PROXY_URL,G as FileAssetSchema,aa as FileDataSchema,gg as FilmGrain,Yd as FlexNodeSchema,Ff as Flip,Re as FontManager,da as GeneratorSignalDataSchema,kd as GlassPipeline,Z as GlobalCompositeOperation,Nc as GlyphAnchorGroupingSchema,Oc as GlyphAnchorPointSchema,Gf as Gooey,kb as Gradient,lg as GradientMap,qg as HalftoneScreen,E as HandleTypeVal,export_HeadlessMediaRenderer as HeadlessMediaRenderer,export_HeadlessWebGPURenderer as HeadlessWebGPURenderer,pg as HighPass,Hf as Iridescence,F as JsonValueSchema,If as Kaleidoscope,Jf as KenBurns,nc as KineticMarqueeConfigSchema,Hb as LIGHT_UNIFORM_SIZE_BYTES,Xg as Layer,Gg as Layer3D,Hd as LayerAnimation,Kf as LayerStyle,fe as LayoutNodeSchema,fg as Levels,Yg as Light,Jb as Light3D,Xd as LightNodeSchema,Sd as LightTypeSchema,Ig as Lighting,gc as LineSpacingDynamicsSchema,Lf as Liquify,rc as LongShadowConfigSchema,fb as MAX_GRADIENT_STOPS,Gb as MAX_LIGHTS,X as MIME_TYPES,Mf as MaskMath,Od as MaterialTypeSchema,Cb as Matrix4Math,Nd as MatteModeSchema,Vg as Media,Ca as MediaMetadataSchema,be as MediaNodeSchema,Ia as MediaOperationSchema,Ba as MediaSourceSchema,Nf as MeshWarp,ee as Model3DNodeSchema,u as ModerationError,v as ModerationUnrefundableError,Ag as Modulate,sg as MotionBlur,ld as MotionBlurPipeline,na as MultiOutputGenericSchema,y as NodeMetadataSchema,pa as NodeResultSchema,H as NodeVisualConfigSchema,Of as NoiseGenerator,Pf as OpArt,ve as OpticalFlowComputePipeline,ka as OutputItemSchema,ug as PBRGlass,Qf as Paint,Rf as Painterly,sc as ParticleDissolveConfigSchema,Bg as Particles,Sf as PatchHeal,Kb as Path3D,kf as PersonTrack,Ng as Physics,Jg as PhysicsBody2D,Lg as PhysicsBody3D,Kg as PhysicsWorld2D,Mg as PhysicsWorld3D,Tf as Pixelate,Ee as PoseSkeletonRenderer,Uf as Posterize,Vf as ProceduralVFX,a as ProgrammaticSignal,Zf as RGBSplit,Wf as RefineEdge,Xf as RefractionCaustics3D,yg as Relight3D,id as Renderer2D,md as Renderer3D,Yf as ResizerScaler,_f as Rotate,tg as SSAO,pd as SSAOPipeline,me as Scene,je as SceneDefinitionSchema,he as SceneTransitionTypeSchema,Fe as SegmentationTexturePool,kg as SelectiveColor,Ec as SelectorBasedOnSchema,Hc as SelectorModeSchema,Gc as SelectorShapeSchema,Fc as SelectorUnitsSchema,ne as Sequence,od as ShadowPipeline,mg as ShadowsHighlights,ce as ShapeNodeSchema,t as Signal,ca as SignalChannelMetaSchema,ha as SignalDataSchema,ga as SignalGateDataSchema,fa as SignalMathDataSchema,ba as SignalStatsSchema,ma as SingleOutputGenericSchema,fc as SkewPropertiesSchema,Rb as SlugFontCache,hd as SlugPipeline,Ga as SourceOperationSchema,jc as Spatial3DPropertiesSchema,He as SpatialLandmarkTransformer,kc as SpringPhysicsSchema,$f as StereoPanning,Og as Styles,Oa as TEXT_LAYER_DEFAULTS,zg as TemporalDeflicker,we as TemporalDeflickerPipeline,ze as TemporalObjectTracker,xe as TensorPipeline,ec as TextAnchorConfigSchema,Qd as TextAnimator,Sc as TextAnimatorBuilder,Pd as TextAnimatorSchema,Ac as TextCursorConfigSchema,zc as TextCursorStyleSchema,ae as TextNodeSchema,Ha as TextOperationSchema,Rc as TextPathBuilder,yc as TextPathOptionsSchema,xc as TextPathSourceSchema,Ic as TextRangeSelectorSchema,Cc as TextScrambleConfigSchema,Lc as TextSelectorSchema,Kc as TextSignalSelectorSchema,_d as TextSpanMarkSchema,$d as TextSpanSchema,Jc as TextWigglySelectorSchema,rg as TileOffset,Da as TimelineSegmentSchema,Ea as TimelineTransformSchema,Ud as ToneMappingSchema,ag as Toon,bg as Trails,Hg as Transition,Aa as TransitionSchema,za as TransitionTypeSchema,Dc as TypewriterAnimatorSchema,Bc as TypingCadenceSchema,og as UnsharpMask,Ne as ValidationError,oc as VariableFontAxesSchema,vc as Vec2Schema,Bb as Vector3Math,sa as VideoAnimationSchema,xa as VideoLayerTypeSchema,ta as VideoSpatialPropsSchema,wa as VideoStylePropsSchema,va as VideoTextPropsSchema,ua as VideoTimingPropsSchema,cg as Vignette,Ja as VirtualMediaDataSchema,xg as Vision,Ie as VisionBundle,Le as VisionNode,Ge as VisionRunner,ic as VolumetricFormationConfigSchema,hc as VolumetricFormationModeSchema,We as accent,Pe as ai,Tg as analyzeAudio,Ae as analyzeSequence,Ua as appendOperation,pe as applyStaggerToChildren,Ya as assertNever,ud as bezier,Ug as bindComponent,_g as blurRegion,Ue as bold,Xb as buildPathLUT,le as calculateSequenceTimeline,rb as checkNodeResultCache,af as code,re as collectNodeOps,Xe as color,qe as compositorToProgram,Vc as computeAnchorPivotOffset,ke as computeCarrierContinuity,Dg as computeGridLayout,Fd as computeLayout,Ed as computeLayoutSync,Wc as computeLineLeadingDisplacement,$c as computeRangeSelectorWeight,oe as computeStaggerDelay,td as computeStrokeRect,Xa as computeVideoCropRenderProps,k as computed,s as cosineSignal,la as createOutputItemSchema,Sa as createVirtualMedia,V as dataTypeColors,Rg as defineTheme,N as degrees,yb as describeGpu,ja as deserializeSignalData,ad as deterministicWigglyNoise,Vb as distanceToCurveParameter,$g as editTrackedRegion,eg as effectFactories,lf as effectMeta,Zb as ellipseToCubicBeziers,gf as encodeStereoWav,zb as ensureDevice,Kd as evaluateAnimationAtFrame,Sb as evaluateCubicBezier,Tb as evaluateCubicBezierDerivative,Xc as evaluateExpressionSelector,Zc as evaluateMarqueeOffset,cd as evaluateSelectorCombination,Uc as evaluateSkewMatrix,Tc as evaluateSpringProgress,Jd as evaluateTrackAtFrame,ed as evaluateTypewriterState,Yc as evaluateVolumetricFormation,tb as extractSvgDimensions,qb as findSourceAsset,ab as formatHex,export_formatQaReport as formatQaReport,L as fps,I as frame,l as frameArraySignal,m as frameSignal,Ub as generateArcLengthLUT,w as generateId,ac as generatePathSegments,Wa as getActiveMediaMetadata,Va as getFileDataMetadata,mb as getFingerprint,Qa as getLeafMediaType,Ta as getMediaType,nb as getRenderFingerprint,dd as getScramblePool,bd as getShuffledOrder,jb as gradientStopsToOklab,Q as handleId,R as handleLabel,pb as hasOnlySingleSource,Md as hoistMattes,Ab as inputStore,wd as interpolate,gb as isCssGradient,lb as isEqual,T as isFrameIndex,U as isNormalized,h as isSignal,j as isValueSignal,ob as isVirtualMediaData,Ve as italic,ib as limitGradientStops,Ld as lintComposition,Pb as loadFBX,nd as loadModel3D,Nb as loadOBJ,Qb as lutStore,rd as mapBlendModeToSkia,Ze as mark,Ad as measureSpring,Cd as measureText,Dd as measureTextAsync,Gd as mergeAnimationTracks,qd as mixAudioTracks,bb as mixColors,ef as mixSfxInto,K as ms,S as nodeId,db as normalizeColorStops,bf as normalizeTextSpans,M as normalized,_a as oklabToRgb,Ib as parseColorToRgb,$a as parseCssColor,hb as parseCssGradient,Ob as parseFBX,Mb as parseMTL,cf as parseMarkup,Lb as parseOBJ,$b as parseSvgPathToCubicBeziers,Je as pinNodeToLandmark,Ke as pinNodeToObject,P as pixels,yd as preloadCompositionFonts,xd as preloadFont,b as programmaticSignal,o as progressSignal,Sg as pulseKeys,O as radians,g as registerSignalDependency,Eg as renderFrameGrid,export_renderSemaphore as renderSemaphore,df as renderSfx,z as reportRenderDiagnostic,sd as requiresIsolation,export_resetRenderCaches as resetRenderCaches,e as resolveBoolean,Fb as resolveEnvironment,Ra as resolveMediaMimeType,c as resolveNumber,f as resolveParam,Cg as resolveSamplePoints,d as resolveString,Za as rgbToOklab,Se as rich,_c as sampleAudioSpectrumScale,cb as sampleColorStops,Wb as sampleCurveGeometry,Yb as samplePathChainGeometry,J as seconds,Zg as section,ia as serializeSignalData,wb as shaderStore,i as signal,q as signalBuilder,xb as signalRegistry,r as sineSignal,Ye as size,ff as softLimit,Te as span,Bd as spring,zd as springCalculation,sb as stampResult,Pg as startPreview,$e as sub,_e as sup,A as takeRenderDiagnostics,fd as textureCache,Qg as themes,n as timeSignal,p as updateClockSignals,_b as waveToCubicBeziers};
1
+ import{$ as Hd,$a as jf,A as Ac,Aa as je,B as Bc,Ba as ke,C as Cc,Ca as le,D as Dc,Da as me,E as Ec,Ea as ne,F as Fc,Fa as se,G as Gc,Ga as te,H as Hc,Ha as ue,I as Ic,Ia as xe,J as Jc,Ja as Me,K as Kc,Ka as Ne,L as Lc,La as Oe,M as Mc,Ma as Pe,N as Nc,Na as Se,O as Oc,Oa as Te,P as Pc,Pa as Ue,Q as Qc,Qa as Ve,R as Rc,Ra as We,S as Sc,Sa as Xe,T as kd,Ta as Ye,U as ld,Ua as Ze,V as od,Va as _e,W as pd,Wa as $e,X as rd,Xa as af,Y as sd,Ya as bf,Z as td,Za as cf,_ as Gd,_a as hf,a as Kb,aa as Id,ab as kf,b as bc,ba as Ld,bb as Bg,c as cc,ca as Nd,cb as Cg,d as dc,da as Od,db as Dg,e as ec,ea as Pd,eb as Eg,ed as Vg,f as fc,fa as Qd,fb as Fg,fd as Wg,g as gc,ga as Rd,gb as Gg,gd as Xg,h as hc,ha as Sd,hb as Hg,hd as Yg,i as ic,ia as Td,ib as Ig,ic as Qg,id as Zg,j as jc,ja as Ud,jb as Jg,jc as Rg,jd as _g,k as kc,ka as Vd,kb as Kg,kd as $g,l as lc,la as Wd,lb as Lg,ld as ah,m as mc,ma as Xd,mb as Mg,mc as Sg,md as bh,n as nc,na as Yd,nb as Ng,nd as ch,o as oc,oa as Zd,ob as Og,p as pc,pa as _d,pb as Pg,pc as Tg,q as qc,qa as $d,qc as Ug,r as rc,ra as ae,s as sc,sa as be,t as tc,ta as ce,u as uc,ua as de,v as vc,va as ee,w as wc,wa as fe,x as xc,xa as ge,y as yc,ya as he,z as zc,za as ie}from"./chunk-MLAIEIUF.mjs";import"./chunk-PIAJWALT.mjs";import{A as vd,B as wd,C as zd,D as Ad,E as Bd,F as Cd,G as Dd,I as Ed,J as Fd,N as Jd,O as Kd,P as Md,Q as oe,R as pe,S as qe,T as re,a as ub,b as vb,c as Bb,d as Cb,e as Db,f as Eb,g as Fb,h as Gb,i as Hb,j as Ib,k as Jb,l as Lb,m as Mb,n as Nb,q as Ob,r as Pb,s as jd,x as md,y as nd,z as ud}from"./chunk-VY6ST4QX.mjs";import"./chunk-ZEYUXJIV.mjs";import"./chunk-PJ3DVG45.mjs";import{b as gd,f as id,g as xd,h as yd}from"./chunk-AYTP6OGO.mjs";import{a as fd}from"./chunk-LKYN3BM2.mjs";import{a as Tc,b as Uc,c as Vc,d as Wc,e as Xc,f as Yc,g as Zc,h as _c,i as $c,j as ad,k as bd,l as cd,m as dd,n as ed}from"./chunk-BBHRXV75.mjs";import{$ as kg,A as Lf,B as Mf,C as Nf,D as Of,E as Pf,F as Qf,G as Rf,H as Sf,I as Tf,J as Uf,K as Vf,L as Wf,M as Xf,N as Yf,O as Zf,P as _f,Q as $f,R as ag,S as bg,T as cg,U as dg,V as eg,W as fg,X as gg,Y as hg,Z as ig,_ as jg,a as lf,aa as lg,b as mf,ba as mg,c as nf,ca as ng,d as of,da as og,e as pf,ea as pg,f as qf,fa as qg,g as rf,ga as rg,h as sf,ha as sg,i as tf,ia as tg,j as uf,ja as ug,k as vf,ka as vg,l as wf,la as wg,m as xf,ma as xg,n as yf,na as yg,o as zf,oa as zg,p as Af,pa as Ag,q as Bf,r as Cf,s as Df,t as Ef,u as Ff,v as Gf,w as Hf,x as If,y as Jf,z as Kf}from"./chunk-NQZRPPUU.mjs";import"./chunk-6PMATELR.mjs";import"./chunk-DDFWN7DI.mjs";import"./chunk-RF62TV3G.mjs";import{$ as He,A as ra,B as sa,C as ta,D as ua,E as va,F as wa,G as xa,H as ya,I as za,J as Aa,K as Ka,L as lb,M as rb,N as sb,O as tb,Q as ye,R as ze,S as Ae,T as Be,U as Ce,V as De,W as Ee,X as Fe,Y as Ge,aa as Ie,b as u,ba as Je,c as v,ca as Ke,d as w,da as Le,e as x,f as y,g as I,h as J,i as K,j as L,k as M,l as N,m as O,n as P,o as Q,p as R,q as S,r as T,s as U,t as V,u as W,v as X,w as Y,x as Z,y as _,z as $}from"./chunk-AKT4YQWL.mjs";import"./chunk-YQRKT47I.mjs";import"./chunk-WDWHOXSA.mjs";import"./chunk-KWTTANYN.mjs";import"./chunk-J24VHZS6.mjs";import"./chunk-LYSU6S4O.mjs";import"./chunk-YEPYVASB.mjs";import"./chunk-DOCFOSA6.mjs";import"./chunk-QPBTLJ5W.mjs";import"./chunk-MUOJMF7M.mjs";import"./chunk-TPFDAOW7.mjs";import"./chunk-5NT7WWJR.mjs";import"./chunk-4INGTMZ5.mjs";import"./chunk-RW2F3XLQ.mjs";import"./chunk-OXXRKNHW.mjs";import"./chunk-RHXZXWJ4.mjs";import"./chunk-UEQIO6AH.mjs";import"./chunk-JD4TBC6Z.mjs";import"./chunk-ULVX4VYT.mjs";import"./chunk-2YGR5YCN.mjs";import"./chunk-RKNV5N7D.mjs";import{a as mb,b as nb,c as ob,d as pb,e as qb}from"./chunk-VXUJWPIK.mjs";import"./chunk-FZLKPBKS.mjs";import"./chunk-LN3YAWUD.mjs";import{a as z,b as A,c as Ya}from"./chunk-OLLY3Q7M.mjs";import{a as we}from"./chunk-2JKXYG6J.mjs";import"./chunk-W2EZFV4Q.mjs";import"./chunk-ULPLHKM2.mjs";import"./chunk-SQ52PBF3.mjs";import{a as ve}from"./chunk-7I7PKKDL.mjs";import"./chunk-B7J72YSP.mjs";import"./chunk-QVW5METG.mjs";import"./chunk-MMVFX42U.mjs";import"./chunk-JTT3YX7W.mjs";import"./chunk-QRYCB6E3.mjs";import"./chunk-XKO4RYKN.mjs";import{a as fb,b as gb,c as hb,d as ib,e as jb,f as kb}from"./chunk-SYP4AJMF.mjs";import{a as Qb}from"./chunk-MBJXS3D7.mjs";import{a as df,b as ef,c as ff,d as gf}from"./chunk-CURR5X7D.mjs";import"./chunk-UQD2UE6I.mjs";import"./chunk-SXNCNG4L.mjs";import"./chunk-IIOHF7MH.mjs";import"./chunk-RDEQ4LQU.mjs";import"./chunk-3KHD67Q3.mjs";import"./chunk-4JX5LBE2.mjs";import"./chunk-SP22JWN2.mjs";import"./chunk-Q7JN4EHX.mjs";import"./chunk-SIXIF5QZ.mjs";import"./chunk-3SR6BI4B.mjs";import{a as Qe}from"./chunk-GQIRV466.mjs";import"./chunk-SVE3XWO7.mjs";import"./chunk-NKGXINCU.mjs";import{A as Ba,B as Ca,C as Da,D as Ea,E as Fa,F as Ga,G as Ha,H as Ia,I as Ja,c as B,d as C,e as D,f as E,g as F,h as G,i as H,j as aa,k as ba,l as ca,m as da,n as ea,o as fa,p as ga,q as ha,r as ia,s as ja,t as ka,u as la,v as ma,w as na,x as oa,y as pa,z as qa}from"./chunk-V3FODTPI.mjs";import"./chunk-ENKKLU7B.mjs";import{a as yb,b as zb}from"./chunk-QKQYHPBK.mjs";import"./chunk-MJCK5FLZ.mjs";import{b as qd}from"./chunk-PJMX2GFY.mjs";import{a as wb}from"./chunk-37EFVZWT.mjs";import"./chunk-2SJ4BBMT.mjs";import{a as La,b as Ma,c as Na,d as Oa,e as Pa,f as Qa,g as Ra,h as Sa,i as Ta,j as Ua,k as Va,l as Wa,m as Xa}from"./chunk-24P6DAB3.mjs";import{e as Ab}from"./chunk-KJGNTREI.mjs";import"./chunk-LXHECDOB.mjs";import{d as xb}from"./chunk-6YJP57MZ.mjs";import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t}from"./chunk-ALSOO22Q.mjs";import{a as Re}from"./chunk-ZMMNN77R.mjs";import{B as hd,j as Rb,k as Sb,l as Tb,m as Ub,n as Vb,o as Wb,p as Xb,q as Yb,r as Zb,s as _b,t as $b,u as ac}from"./chunk-2LQCQ3OT.mjs";import"./chunk-4GEWSUX5.mjs";import"./chunk-MTJHQATU.mjs";import"./chunk-IQC2I5A5.mjs";import{a as Za,b as _a,c as $a,d as ab,e as bb,f as cb,g as db,h as eb}from"./chunk-IQKIHFNZ.mjs";import"./chunk-YAQFFQPG.mjs";import"./chunk-BVF64D6H.mjs";var export_HeadlessMediaRenderer=Fg.HeadlessMediaRenderer;var export_HeadlessWebGPURenderer=Fg.HeadlessWebGPURenderer;var export_formatQaReport=Fg.formatQaReport;var export_renderSemaphore=Fg.renderSemaphore;var export_resetRenderCaches=Fg.resetRenderCaches;export{Pc as AETextAnimatorSchema,bc as AdvancedTextAnimatorBuilder,uc as AdvancedTextAnimatorSchema,cc as AnchorGroupingSchema,dc as AnchorPresetSchema,Mc as AnimatableGlyphPropsSchema,ra as AnimationTypeSchema,oa as AnyOutputUnionSchema,Me as ApiError,ng as ApplyLUT,mf as Ascii,nf as AudioCompressor,of as AudioDelay,ea as AudioExtractorSignalDataSchema,pf as AudioFade,ub as AudioLatentEngine,vb as AudioLatentTrackCache,jd as AudioMeshDeformPipeline,qf as AudioNoiseGate,rf as AudioParametricEq,sf as AudioReverb,Qe as AudioSignal,ig as AudioSignalExtractor,qc as AudioSpectrumTypographySchema,Fa as BaseMediaOperationPropsSchema,ya as BaseVideoLayerPropsSchema,Wd as BloomConfigSchema,dg as Blur,Zd as BoxNodeSchema,Pa as CAPTION_LAYER_DEFAULTS,De as COCO17_BONES,Be as COCO17_KEYPOINTS,Ce as COCO17_KEYPOINT_NAMES,ye as COCO_CLASSES,Y as COMPOSITE_OPERATIONS,$ as COMPOSITOR_DEFAULTS,Af as CRT,Db as Camera3D,Id as CameraAnimation,Rd as CameraNodeSchema,tf as CameraParallax3D,te as CannyComputePipeline,ie as CarrierHandoffConfigSchema,uf as ChannelMerger,vf as ChannelSplitter,pc as ChromaticGlitchConfigSchema,jf as ClipVision,eb as Color,wf as ColorBalance,xf as ColorKey,de as ColorStopSchema,Yg as Composition,ge as CompositorProgramSchema,x as ConfigHandleSchema,_ as ConfigSchemaRegistry,yf as Contour,se as ControlNetMultiplexer,zf as CornerPin,wg as Crop,wc as CubicBezierSegmentSchema,jg as Curves,hg as CustomEffect,W as DATA_TYPE_EXTENSIONS,hf as DEFAULT_CHART_COLORS,Ma as DEFAULT_DURATION_MS,La as DEFAULT_FPS,Na as DEFAULT_MEDIA_DIMENSION,C as DataType,B as DataTypeVal,D as DataTypes,Bf as Datamosh,ue as DepthNormalsComputePipeline,vg as DepthOfField,Cf as DisplacementMap,Df as Dither,mc as DynamicStrokePropertiesSchema,Eb as ENVIRONMENT_PRESETS,vd as Easing,ch as Effect,gd as EffectPipeline,Qc as EnhancedTextNodeSchema,Vd as EnvironmentFogSchema,Td as EnvironmentPresetSchema,qa as ExportResultSchema,lc as ExpressionSelectorSchema,tc as ExtendedGlyphPropertiesSchema,Ka as ExtendedLayerSchema,Ef as ExtractLUT,Oe as FRAMEFIELDS_AI_PROXY_URL,G as FileAssetSchema,aa as FileDataSchema,gg as FilmGrain,Yd as FlexNodeSchema,Ff as Flip,Re as FontManager,da as GeneratorSignalDataSchema,kd as GlassPipeline,Z as GlobalCompositeOperation,Nc as GlyphAnchorGroupingSchema,Oc as GlyphAnchorPointSchema,Gf as Gooey,kb as Gradient,lg as GradientMap,qg as HalftoneScreen,E as HandleTypeVal,export_HeadlessMediaRenderer as HeadlessMediaRenderer,export_HeadlessWebGPURenderer as HeadlessWebGPURenderer,pg as HighPass,Hf as Iridescence,F as JsonValueSchema,If as Kaleidoscope,Jf as KenBurns,nc as KineticMarqueeConfigSchema,Hb as LIGHT_UNIFORM_SIZE_BYTES,Zg as Layer,Gg as Layer3D,Hd as LayerAnimation,Kf as LayerStyle,fe as LayoutNodeSchema,fg as Levels,_g as Light,Jb as Light3D,Xd as LightNodeSchema,Sd as LightTypeSchema,Ig as Lighting,gc as LineSpacingDynamicsSchema,Lf as Liquify,rc as LongShadowConfigSchema,fb as MAX_GRADIENT_STOPS,Gb as MAX_LIGHTS,X as MIME_TYPES,Mf as MaskMath,Od as MaterialTypeSchema,Cb as Matrix4Math,Nd as MatteModeSchema,Xg as Media,Ca as MediaMetadataSchema,be as MediaNodeSchema,Ia as MediaOperationSchema,Ba as MediaSourceSchema,Nf as MeshWarp,ee as Model3DNodeSchema,u as ModerationError,v as ModerationUnrefundableError,Ag as Modulate,sg as MotionBlur,ld as MotionBlurPipeline,na as MultiOutputGenericSchema,y as NodeMetadataSchema,pa as NodeResultSchema,H as NodeVisualConfigSchema,Of as NoiseGenerator,Pf as OpArt,ve as OpticalFlowComputePipeline,ka as OutputItemSchema,ug as PBRGlass,Qf as Paint,Rf as Painterly,sc as ParticleDissolveConfigSchema,Bg as Particles,Sf as PatchHeal,Kb as Path3D,kf as PersonTrack,Ng as Physics,Jg as PhysicsBody2D,Lg as PhysicsBody3D,Kg as PhysicsWorld2D,Mg as PhysicsWorld3D,Tf as Pixelate,Ee as PoseSkeletonRenderer,Uf as Posterize,Vf as ProceduralVFX,a as ProgrammaticSignal,Zf as RGBSplit,Wf as RefineEdge,Xf as RefractionCaustics3D,yg as Relight3D,id as Renderer2D,md as Renderer3D,Yf as ResizerScaler,_f as Rotate,tg as SSAO,pd as SSAOPipeline,me as Scene,je as SceneDefinitionSchema,he as SceneTransitionTypeSchema,Fe as SegmentationTexturePool,kg as SelectiveColor,Ec as SelectorBasedOnSchema,Hc as SelectorModeSchema,Gc as SelectorShapeSchema,Fc as SelectorUnitsSchema,ne as Sequence,od as ShadowPipeline,mg as ShadowsHighlights,ce as ShapeNodeSchema,t as Signal,ca as SignalChannelMetaSchema,ha as SignalDataSchema,ga as SignalGateDataSchema,fa as SignalMathDataSchema,ba as SignalStatsSchema,ma as SingleOutputGenericSchema,fc as SkewPropertiesSchema,Rb as SlugFontCache,hd as SlugPipeline,Ga as SourceOperationSchema,jc as Spatial3DPropertiesSchema,He as SpatialLandmarkTransformer,kc as SpringPhysicsSchema,$f as StereoPanning,Og as Styles,Oa as TEXT_LAYER_DEFAULTS,zg as TemporalDeflicker,we as TemporalDeflickerPipeline,ze as TemporalObjectTracker,xe as TensorPipeline,ec as TextAnchorConfigSchema,Qd as TextAnimator,Sc as TextAnimatorBuilder,Pd as TextAnimatorSchema,Ac as TextCursorConfigSchema,zc as TextCursorStyleSchema,ae as TextNodeSchema,Ha as TextOperationSchema,Rc as TextPathBuilder,yc as TextPathOptionsSchema,xc as TextPathSourceSchema,Ic as TextRangeSelectorSchema,Cc as TextScrambleConfigSchema,Lc as TextSelectorSchema,Kc as TextSignalSelectorSchema,_d as TextSpanMarkSchema,$d as TextSpanSchema,Jc as TextWigglySelectorSchema,rg as TileOffset,Da as TimelineSegmentSchema,Ea as TimelineTransformSchema,Ud as ToneMappingSchema,ag as Toon,bg as Trails,Hg as Transition,Aa as TransitionSchema,za as TransitionTypeSchema,Dc as TypewriterAnimatorSchema,Bc as TypingCadenceSchema,og as UnsharpMask,Ne as ValidationError,oc as VariableFontAxesSchema,vc as Vec2Schema,Bb as Vector3Math,sa as VideoAnimationSchema,xa as VideoLayerTypeSchema,ta as VideoSpatialPropsSchema,wa as VideoStylePropsSchema,va as VideoTextPropsSchema,ua as VideoTimingPropsSchema,cg as Vignette,Ja as VirtualMediaDataSchema,xg as Vision,Ie as VisionBundle,Le as VisionNode,Ge as VisionRunner,ic as VolumetricFormationConfigSchema,hc as VolumetricFormationModeSchema,We as accent,Ug as after,Pe as ai,Vg as analyzeAudio,Ae as analyzeSequence,Ua as appendOperation,pe as applyStaggerToChildren,Ya as assertNever,ud as bezier,Wg as bindComponent,ah as blurRegion,Ue as bold,Xb as buildPathLUT,le as calculateSequenceTimeline,rb as checkNodeResultCache,af as code,re as collectNodeOps,Xe as color,qe as compositorToProgram,Vc as computeAnchorPivotOffset,ke as computeCarrierContinuity,Dg as computeGridLayout,Fd as computeLayout,Ed as computeLayoutSync,Wc as computeLineLeadingDisplacement,$c as computeRangeSelectorWeight,oe as computeStaggerDelay,td as computeStrokeRect,Xa as computeVideoCropRenderProps,k as computed,s as cosineSignal,la as createOutputItemSchema,Sa as createVirtualMedia,V as dataTypeColors,Rg as defineTheme,N as degrees,yb as describeGpu,ja as deserializeSignalData,ad as deterministicWigglyNoise,Vb as distanceToCurveParameter,bh as editTrackedRegion,eg as effectFactories,lf as effectMeta,Zb as ellipseToCubicBeziers,gf as encodeStereoWav,zb as ensureDevice,Kd as evaluateAnimationAtFrame,Sb as evaluateCubicBezier,Tb as evaluateCubicBezierDerivative,Xc as evaluateExpressionSelector,Zc as evaluateMarqueeOffset,cd as evaluateSelectorCombination,Uc as evaluateSkewMatrix,Tc as evaluateSpringProgress,Jd as evaluateTrackAtFrame,ed as evaluateTypewriterState,Yc as evaluateVolumetricFormation,tb as extractSvgDimensions,qb as findSourceAsset,ab as formatHex,export_formatQaReport as formatQaReport,L as fps,I as frame,l as frameArraySignal,m as frameSignal,Ub as generateArcLengthLUT,w as generateId,ac as generatePathSegments,Wa as getActiveMediaMetadata,Va as getFileDataMetadata,mb as getFingerprint,Qa as getLeafMediaType,Ta as getMediaType,nb as getRenderFingerprint,dd as getScramblePool,bd as getShuffledOrder,jb as gradientStopsToOklab,Q as handleId,R as handleLabel,pb as hasOnlySingleSource,Md as hoistMattes,Ab as inputStore,wd as interpolate,gb as isCssGradient,lb as isEqual,T as isFrameIndex,U as isNormalized,h as isSignal,j as isValueSignal,ob as isVirtualMediaData,Ve as italic,ib as limitGradientStops,Ld as lintComposition,Pb as loadFBX,nd as loadModel3D,Nb as loadOBJ,Qb as lutStore,rd as mapBlendModeToSkia,Ze as mark,Ad as measureSpring,Cd as measureText,Dd as measureTextAsync,Gd as mergeAnimationTracks,qd as mixAudioTracks,bb as mixColors,ef as mixSfxInto,K as ms,S as nodeId,db as normalizeColorStops,bf as normalizeTextSpans,M as normalized,_a as oklabToRgb,Ib as parseColorToRgb,$a as parseCssColor,hb as parseCssGradient,Ob as parseFBX,Mb as parseMTL,cf as parseMarkup,Lb as parseOBJ,$b as parseSvgPathToCubicBeziers,Je as pinNodeToLandmark,Ke as pinNodeToObject,P as pixels,yd as preloadCompositionFonts,xd as preloadFont,b as programmaticSignal,o as progressSignal,Sg as pulseKeys,O as radians,g as registerSignalDependency,Eg as renderFrameGrid,export_renderSemaphore as renderSemaphore,df as renderSfx,z as reportRenderDiagnostic,sd as requiresIsolation,export_resetRenderCaches as resetRenderCaches,e as resolveBoolean,Fb as resolveEnvironment,Ra as resolveMediaMimeType,c as resolveNumber,f as resolveParam,Cg as resolveSamplePoints,d as resolveString,Za as rgbToOklab,Se as rich,_c as sampleAudioSpectrumScale,cb as sampleColorStops,Wb as sampleCurveGeometry,Yb as samplePathChainGeometry,J as seconds,$g as section,ia as serializeSignalData,wb as shaderStore,i as signal,q as signalBuilder,xb as signalRegistry,r as sineSignal,Ye as size,ff as softLimit,Te as span,Bd as spring,zd as springCalculation,sb as stampResult,Pg as startPreview,$e as sub,_e as sup,A as takeRenderDiagnostics,fd as textureCache,Qg as themes,n as timeSignal,p as updateClockSignals,_b as waveToCubicBeziers,Tg as withDefaults};
@@ -1,4 +1,4 @@
1
- import{a as y0,b as M0}from"./chunk-NPD6W3RP.mjs";import{d as H1,g as v0}from"./chunk-ZZAZF6VC.mjs";import{a as b0,e as L0,h as x0}from"./chunk-ZJLNXN7W.mjs";import{a as F}from"./chunk-LKYN3BM2.mjs";import"./chunk-BBHRXV75.mjs";import{m as P0,o as S0}from"./chunk-SYP4AJMF.mjs";import{a as V1}from"./chunk-MBJXS3D7.mjs";import{b as m0}from"./chunk-QKQYHPBK.mjs";import{b as S1,c as C0}from"./chunk-2SJ4BBMT.mjs";import{i as c0,l as z1}from"./chunk-24P6DAB3.mjs";import"./chunk-KJGNTREI.mjs";import{b as g0}from"./chunk-LXHECDOB.mjs";import{d as i1}from"./chunk-6YJP57MZ.mjs";import{B as _0,C as u0,E as h0,h as l0,p as P1}from"./chunk-ALSOO22Q.mjs";import{a as f0,b as W1,f as p0,j as w0}from"./chunk-2LQCQ3OT.mjs";import{b as w1}from"./chunk-IQC2I5A5.mjs";import"./chunk-IQKIHFNZ.mjs";import{a as p1,c as _4,d as O,e as L}from"./chunk-BVF64D6H.mjs";var j1=p1(o1=>{"use strict";L();Object.defineProperty(o1,"__esModule",{value:!0});o1.loop=o1.conditional=o1.parse=void 0;var u4=function e(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:r;if(Array.isArray(n))n.forEach(function(d){return e(t,d,r,i)});else if(typeof n=="function")n(t,r,i,e);else{var s=Object.keys(n)[0];Array.isArray(n[s])?(i[s]={},e(t,n[s],r,i[s])):i[s]=n[s](t,r,i,e)}return r};o1.parse=u4;var h4=function(t,n){return function(r,i,s,d){n(r,i,s)&&d(r,t,i,s)}};o1.conditional=h4;var m4=function(t,n){return function(r,i,s,d){for(var o=[],c=r.pos;n(r,i,s);){var h={};if(d(r,t,i,h),r.pos===c)break;c=r.pos,o.push(h)}return o}};o1.loop=m4});var K1=p1(W=>{"use strict";L();Object.defineProperty(W,"__esModule",{value:!0});W.readBits=W.readArray=W.readUnsigned=W.readString=W.peekBytes=W.readBytes=W.peekByte=W.readByte=W.buildStream=void 0;var f4=function(t){return{data:t,pos:0}};W.buildStream=f4;var T0=function(){return function(t){return t.data[t.pos++]}};W.readByte=T0;var p4=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return function(n){return n.data[n.pos+t]}};W.peekByte=p4;var I1=function(t){return function(n){return n.data.subarray(n.pos,n.pos+=t)}};W.readBytes=I1;var g4=function(t){return function(n){return n.data.subarray(n.pos,n.pos+t)}};W.peekBytes=g4;var w4=function(t){return function(n){return Array.from(I1(t)(n)).map(function(r){return String.fromCharCode(r)}).join("")}};W.readString=w4;var v4=function(t){return function(n){var r=I1(2)(n);return t?(r[1]<<8)+r[0]:(r[0]<<8)+r[1]}};W.readUnsigned=v4;var y4=function(t,n){return function(r,i,s){for(var d=typeof n=="function"?n(r,i,s):n,o=I1(t),c=new Array(d),h=0;h<d;h++)c[h]=o(r);return c}};W.readArray=y4;var b4=function(t,n,r){for(var i=0,s=0;s<r;s++)i+=t[n+s]&&Math.pow(2,r-s-1);return i},M4=function(t){return function(n){for(var r=T0()(n),i=new Array(8),s=0;s<8;s++)i[7-s]=!!(r&1<<s);return Object.keys(t).reduce(function(d,o){var c=t[o];return c.length?d[o]=b4(i,c.index,c.length):d[o]=i[c.index],d},{})}};W.readBits=M4});var F0=p1(E1=>{"use strict";L();Object.defineProperty(E1,"__esModule",{value:!0});E1.default=void 0;var d1=j1(),C=K1(),k1={blocks:function(t){for(var n=0,r=[],i=t.data.length,s=0,d=(0,C.readByte)()(t);d!==n&&d;d=(0,C.readByte)()(t)){if(t.pos+d>=i){var o=i-t.pos;r.push((0,C.readBytes)(o)(t)),s+=o;break}r.push((0,C.readBytes)(d)(t)),s+=d}for(var c=new Uint8Array(s),h=0,_=0;_<r.length;_++)c.set(r[_],h),h+=r[_].length;return c}},L4=(0,d1.conditional)({gce:[{codes:(0,C.readBytes)(2)},{byteSize:(0,C.readByte)()},{extras:(0,C.readBits)({future:{index:0,length:3},disposal:{index:3,length:3},userInput:{index:6},transparentColorGiven:{index:7}})},{delay:(0,C.readUnsigned)(!0)},{transparentColorIndex:(0,C.readByte)()},{terminator:(0,C.readByte)()}]},function(e){var t=(0,C.peekBytes)(2)(e);return t[0]===33&&t[1]===249}),C4=(0,d1.conditional)({image:[{code:(0,C.readByte)()},{descriptor:[{left:(0,C.readUnsigned)(!0)},{top:(0,C.readUnsigned)(!0)},{width:(0,C.readUnsigned)(!0)},{height:(0,C.readUnsigned)(!0)},{lct:(0,C.readBits)({exists:{index:0},interlaced:{index:1},sort:{index:2},future:{index:3,length:2},size:{index:5,length:3}})}]},(0,d1.conditional)({lct:(0,C.readArray)(3,function(e,t,n){return Math.pow(2,n.descriptor.lct.size+1)})},function(e,t,n){return n.descriptor.lct.exists}),{data:[{minCodeSize:(0,C.readByte)()},k1]}]},function(e){return(0,C.peekByte)()(e)===44}),x4=(0,d1.conditional)({text:[{codes:(0,C.readBytes)(2)},{blockSize:(0,C.readByte)()},{preData:function(t,n,r){return(0,C.readBytes)(r.text.blockSize)(t)}},k1]},function(e){var t=(0,C.peekBytes)(2)(e);return t[0]===33&&t[1]===1}),P4=(0,d1.conditional)({application:[{codes:(0,C.readBytes)(2)},{blockSize:(0,C.readByte)()},{id:function(t,n,r){return(0,C.readString)(r.blockSize)(t)}},k1]},function(e){var t=(0,C.peekBytes)(2)(e);return t[0]===33&&t[1]===255}),S4=(0,d1.conditional)({comment:[{codes:(0,C.readBytes)(2)},k1]},function(e){var t=(0,C.peekBytes)(2)(e);return t[0]===33&&t[1]===254}),I4=[{header:[{signature:(0,C.readString)(3)},{version:(0,C.readString)(3)}]},{lsd:[{width:(0,C.readUnsigned)(!0)},{height:(0,C.readUnsigned)(!0)},{gct:(0,C.readBits)({exists:{index:0},resolution:{index:1,length:3},sort:{index:4},size:{index:5,length:3}})},{backgroundColorIndex:(0,C.readByte)()},{pixelAspectRatio:(0,C.readByte)()}]},(0,d1.conditional)({gct:(0,C.readArray)(3,function(e,t){return Math.pow(2,t.lsd.gct.size+1)})},function(e,t){return t.lsd.gct.exists}),{frames:(0,d1.loop)([L4,P4,S4,C4,x4],function(e){var t=(0,C.peekByte)()(e);return t===33||t===44})}],k4=I4;E1.default=k4});var D0=p1(R1=>{"use strict";L();Object.defineProperty(R1,"__esModule",{value:!0});R1.deinterlace=void 0;var E4=function(t,n){for(var r=new Array(t.length),i=t.length/n,s=function(T,p){var u=t.slice(p*n,(p+1)*n);r.splice.apply(r,[T*n,n].concat(u))},d=[0,4,2,1],o=[8,8,4,2],c=0,h=0;h<4;h++)for(var _=d[h];_<i;_+=o[h])s(_,c),c++;return r};R1.deinterlace=E4});var U0=p1(T1=>{"use strict";L();Object.defineProperty(T1,"__esModule",{value:!0});T1.lzw=void 0;var R4=function(t,n,r){var i=4096,s=-1,d=r,o,c,h,_,l,T,p,R,u,g,E,D,U,H,r1,J,y=new Array(r),I=new Array(i),v=new Array(i),B=new Array(i+1);for(D=t,c=1<<D,l=c+1,o=c+2,p=s,_=D+1,h=(1<<_)-1,u=0;u<c;u++)I[u]=0,v[u]=u;var E,R,V,U,H,J,r1;for(E=R=V=U=H=J=r1=0,g=0;g<d;){if(H===0){if(R<_){E+=n[r1]<<R,R+=8,r1++;continue}if(u=E&h,E>>=_,R-=_,u>o||u==l)break;if(u==c){_=D+1,h=(1<<_)-1,o=c+2,p=s;continue}if(p==s){B[H++]=v[u],p=u,U=u;continue}for(T=u,u==o&&(B[H++]=U,u=p);u>c;)B[H++]=v[u],u=I[u];U=v[u]&255,B[H++]=U,o<i&&(I[o]=p,v[o]=U,o++,(o&h)===0&&o<i&&(_++,h+=o)),p=T}H--,y[J++]=B[H],g++}for(g=J;g<d;g++)y[g]=0;return y};T1.lzw=R4});var O0=p1(l1=>{"use strict";L();Object.defineProperty(l1,"__esModule",{value:!0});l1.decompressFrames=l1.decompressFrame=l1.parseGIF=void 0;var T4=O4(F0()),F4=j1(),D4=K1(),U4=D0(),A4=U0();function O4(e){return e&&e.__esModule?e:{default:e}}var N4=function(t){var n=new Uint8Array(t);return(0,F4.parse)((0,D4.buildStream)(n),T4.default)};l1.parseGIF=N4;var B4=function(t){for(var n=t.pixels.length,r=new Uint8ClampedArray(n*4),i=0;i<n;i++){var s=i*4,d=t.pixels[i],o=t.colorTable[d]||[0,0,0];r[s]=o[0],r[s+1]=o[1],r[s+2]=o[2],r[s+3]=d!==t.transparentIndex?255:0}return r},A0=function(t,n,r){if(!t.image){console.warn("gif frame does not have associated image.");return}var i=t.image,s=i.descriptor.width*i.descriptor.height,d=(0,A4.lzw)(i.data.minCodeSize,i.data.blocks,s);i.descriptor.lct.interlaced&&(d=(0,U4.deinterlace)(d,i.descriptor.width));var o={pixels:d,dims:{top:t.image.descriptor.top,left:t.image.descriptor.left,width:t.image.descriptor.width,height:t.image.descriptor.height}};return i.descriptor.lct&&i.descriptor.lct.exists?o.colorTable=i.lct:o.colorTable=n,t.gce&&(o.delay=(t.gce.delay||10)*10,o.disposalType=t.gce.extras.disposal,t.gce.extras.transparentColorGiven&&(o.transparentIndex=t.gce.transparentColorIndex)),r&&(o.patch=B4(o)),o};l1.decompressFrame=A0;var G4=function(t,n){return t.frames.filter(function(r){return r.image}).map(function(r){return A0(r,t.gct,n)})};l1.decompressFrames=G4});L();L();var I0=[{packageName:"@framefields/node-lut",ops:["ApplyLUT"],load:()=>import("./renderers-AYWCRBQC.mjs")},{packageName:"@framefields/node-ascii",ops:["Ascii"],load:()=>import("./renderers-7SW2AHM2.mjs")},{packageName:"@framefields/node-audio-compressor",ops:["AudioCompressor"],load:()=>import("./renderers-GKVTNDVH.mjs")},{packageName:"@framefields/node-audio-delay",ops:["AudioDelay"],load:()=>import("./renderers-BA6ZCPI5.mjs")},{packageName:"@framefields/node-audio-fade",ops:["AudioFade"],load:()=>import("./renderers-DFIJYBW2.mjs")},{packageName:"@framefields/node-audio-noise-gate",ops:["AudioNoiseGate"],load:()=>import("./renderers-G34C5J27.mjs")},{packageName:"@framefields/node-audio-parametric-eq",ops:["AudioParametricEq"],load:()=>import("./renderers-CZTCW4FC.mjs")},{packageName:"@framefields/node-audio-reverb",ops:["AudioReverb"],load:()=>import("./renderers-4CRXZJ5G.mjs")},{packageName:"@framefields/node-audio-signal-extractor",ops:["AudioSignalExtractor"],load:()=>import("./renderers-IW5MWDBI.mjs")},{packageName:"@framefields/node-blur",ops:["Blur"],load:()=>import("./renderers-D2XEQ2YY.mjs")},{packageName:"@framefields/node-camera-parallax-3d",ops:["CameraParallax3D"],load:()=>import("./renderers-P2FTCDZ7.mjs")},{packageName:"@framefields/node-canvas-generator",ops:["CanvasGenerator"],load:()=>import("./renderers-C3YXNKNM.mjs")},{packageName:"@framefields/node-channel-merger",ops:["ChannelMerger"],load:()=>import("./renderers-ART3EGSZ.mjs")},{packageName:"@framefields/node-channel-splitter",ops:["ChannelSplitter"],load:()=>import("./renderers-GY4R467B.mjs")},{packageName:"@framefields/node-color-balance",ops:["ColorBalance"],load:()=>import("./renderers-TN4XN436.mjs")},{packageName:"@framefields/node-colorkey",ops:["ColorKey"],load:()=>import("./renderers-YP3ASXIJ.mjs")},{packageName:"@framefields/node-compositor",ops:["Compositor"],load:()=>import("./renderers-WZEV464O.mjs")},{packageName:"@framefields/node-contour",ops:["Contour"],load:()=>import("./renderers-HMNCIEU3.mjs")},{packageName:"@framefields/node-corner-pin",ops:["CornerPin"],load:()=>import("./renderers-YVJAG3PD.mjs")},{packageName:"@framefields/node-crop",ops:["Crop"],load:()=>import("./renderers-5QF4OLFQ.mjs")},{packageName:"@framefields/node-crt",ops:["CRT"],load:()=>import("./renderers-EQDINUMT.mjs")},{packageName:"@framefields/node-curves",ops:["Curves"],load:()=>import("./renderers-KESHVFL2.mjs")},{packageName:"@framefields/node-datamosh",ops:["Datamosh"],load:()=>import("./renderers-RDHHVXRE.mjs")},{packageName:"@framefields/node-deflicker",ops:["TemporalDeflicker","Deflicker"],load:()=>import("./renderers-TJIFTQHV.mjs")},{packageName:"@framefields/node-displacement-map",ops:["DisplacementMap"],load:()=>import("./renderers-UDYLCYCB.mjs")},{packageName:"@framefields/node-dither",ops:["Dither"],load:()=>import("./renderers-LTV5RFDJ.mjs")},{packageName:"@framefields/node-extract-frame",ops:["ExtractFrame"],load:()=>import("./renderers-56TGEFDK.mjs")},{packageName:"@framefields/node-extract-lut",ops:["ExtractLUT"],load:()=>import("./renderers-LV6LLULR.mjs")},{packageName:"@framefields/node-film-grain",ops:["FilmGrain"],load:()=>import("./renderers-7HT5NW7W.mjs")},{packageName:"@framefields/node-flip",ops:["Flip"],load:()=>import("./renderers-X6RNTJOV.mjs")},{packageName:"@framefields/node-gooey",ops:["Gooey"],load:()=>import("./renderers-ZDMDDWLN.mjs")},{packageName:"@framefields/node-gradient-map",ops:["GradientMap"],load:()=>import("./renderers-SCJ6OKTB.mjs")},{packageName:"@framefields/node-halftone-screen",ops:["HalftoneScreen"],load:()=>import("./renderers-EJN6M6DO.mjs")},{packageName:"@framefields/node-high-pass",ops:["HighPass"],load:()=>import("./renderers-HZBYQKIQ.mjs")},{packageName:"@framefields/node-iridescence",ops:["Iridescence"],load:()=>import("./renderers-FD3ZT73R.mjs")},{packageName:"@framefields/node-kaleidoscope",ops:["Kaleidoscope"],load:()=>import("./renderers-HBIBRZD7.mjs")},{packageName:"@framefields/node-kenburns",ops:["KenBurns"],load:()=>import("./renderers-KY5CJEOV.mjs")},{packageName:"@framefields/node-layer-style",ops:["LayerStyle"],load:()=>import("./renderers-ZPPZNMKJ.mjs")},{packageName:"@framefields/node-levels",ops:["Levels"],load:()=>import("./renderers-6M2HPY2J.mjs")},{packageName:"@framefields/node-liquify",ops:["Liquify"],load:()=>import("./renderers-QJA35PKC.mjs")},{packageName:"@framefields/node-mask-math",ops:["MaskMath"],load:()=>import("./renderers-BAS7RXTC.mjs")},{packageName:"@framefields/node-mesh-warp",ops:["MeshWarp"],load:()=>import("./renderers-X6QNDC6R.mjs")},{packageName:"@framefields/node-modulate",ops:["Modulate"],load:()=>import("./renderers-O5XMWFPY.mjs")},{packageName:"@framefields/node-noise-generator",ops:["NoiseGenerator"],load:()=>import("./renderers-FYI6QNUH.mjs")},{packageName:"@framefields/node-op-art",ops:["OpArt"],load:()=>import("./renderers-EJGF3PYQ.mjs")},{packageName:"@framefields/node-paint",ops:["Paint"],load:()=>import("./renderers-FC7G7KU7.mjs")},{packageName:"@framefields/node-painterly",ops:["Painterly"],load:()=>import("./renderers-ZAMSS7QN.mjs")},{packageName:"@framefields/node-particles",ops:["Particles"],load:()=>import("./renderers-4RVSLTCX.mjs")},{packageName:"@framefields/node-patch-heal",ops:["PatchHeal"],load:()=>import("./renderers-Y3N7236P.mjs")},{packageName:"@framefields/node-pixelate",ops:["Pixelate"],load:()=>import("./renderers-7GMW52G3.mjs")},{packageName:"@framefields/node-posterize",ops:["Posterize"],load:()=>import("./renderers-YBTWN76S.mjs")},{packageName:"@framefields/node-procedural-vfx",ops:["ProceduralVFX"],load:()=>import("./renderers-GHP7SL5M.mjs")},{packageName:"@framefields/node-refine-edge",ops:["RefineEdge"],load:()=>import("./renderers-ATTGUTYY.mjs")},{packageName:"@framefields/node-refraction-caustics",ops:["RefractionCaustics3D"],load:()=>import("./renderers-H2UI7YEO.mjs")},{packageName:"@framefields/node-relight-3d",ops:["Relight3D"],load:()=>import("./renderers-WZ7SFIBZ.mjs")},{packageName:"@framefields/node-resizer-scaler",ops:["ResizerScaler"],load:()=>import("./renderers-NTKSN32T.mjs")},{packageName:"@framefields/node-rgb-split",ops:["RGBSplit"],load:()=>import("./renderers-YK74777T.mjs")},{packageName:"@framefields/node-rotate",ops:["Rotate"],load:()=>import("./renderers-5SOW6OVE.mjs")},{packageName:"@framefields/node-selective-color",ops:["SelectiveColor"],load:()=>import("./renderers-IK7ZJJKJ.mjs")},{packageName:"@framefields/node-shadows-highlights",ops:["ShadowsHighlights"],load:()=>import("./renderers-MEM3REMI.mjs")},{packageName:"@framefields/node-shape-generator",ops:["ShapeGenerator"],load:()=>import("./renderers-PYDOSDEY.mjs")},{packageName:"@framefields/node-signal-gate",ops:["SignalGate"],load:()=>import("./renderers-ISASPH6T.mjs")},{packageName:"@framefields/node-stereo-panning",ops:["StereoPanning"],load:()=>import("./renderers-M5W6SUQD.mjs")},{packageName:"@framefields/node-tile-offset",ops:["TileOffset"],load:()=>import("./renderers-KTZZVAB2.mjs")},{packageName:"@framefields/node-toon",ops:["Toon"],load:()=>import("./renderers-BWRNCXR6.mjs")},{packageName:"@framefields/node-trails",ops:["Trails"],load:()=>import("./renderers-SY435YU3.mjs")},{packageName:"@framefields/node-unsharp-mask",ops:["UnsharpMask"],load:()=>import("./renderers-EK3HQUUF.mjs")},{packageName:"@framefields/node-vignette",ops:["Vignette"],load:()=>import("./renderers-K2PI4WJS.mjs")},{packageName:"@framefields/node-vision",ops:["Vision"],load:()=>import("./renderers-N36R42RL.mjs")}];L();L();function k0(){return{clientWidth:1920,clientHeight:1080,getBoundingClientRect:()=>({x:0,y:0,left:0,top:0,right:1920,bottom:1080,width:1920,height:1080}),style:{},appendChild:()=>{},removeChild:()=>{},addEventListener:()=>{},removeEventListener:()=>{},getAttribute:()=>null}}function E0(e,t){typeof e.getBoundingClientRect>"u"&&(e.getBoundingClientRect=function(){let n=this.width||512,r=this.height||512;return{x:0,y:0,left:0,top:0,right:n,bottom:r,width:n,height:r}}),"style"in e||Object.defineProperty(e,"style",{get(){return this._style??={},this._style},configurable:!0}),"clientWidth"in e||Object.defineProperty(e,"clientWidth",{get(){return this.width||512},configurable:!0}),"clientHeight"in e||Object.defineProperty(e,"clientHeight",{get(){return this.height||512},configurable:!0}),"parentElement"in e||Object.defineProperty(e,"parentElement",{get(){return t},configurable:!0}),typeof e.addEventListener>"u"&&(e.addEventListener=()=>{}),typeof e.removeEventListener>"u"&&(e.removeEventListener=()=>{}),typeof e.getAttribute>"u"&&(e.getAttribute=()=>null)}function R0(){typeof globalThis.IntersectionObserver>"u"&&(globalThis.IntersectionObserver=class{observe(){}unobserve(){}disconnect(){}})}L();var $1=class e{static instance=null;loadedFonts=new Set;constructor(){}static getInstance(){return e.instance||(e.instance=new e),e.instance}async loadFont(t,n){if(this.loadedFonts.has(t))return;let r=`local-font-${t}`;if(document.getElementById(r))return;let i=document.createElement("style");i.id=r,i.innerHTML=`
1
+ import{a as y0,b as M0}from"./chunk-NPD6W3RP.mjs";import{d as H1,g as v0}from"./chunk-W3I7LKDV.mjs";import{a as b0,e as L0,h as x0}from"./chunk-AYTP6OGO.mjs";import{a as F}from"./chunk-LKYN3BM2.mjs";import"./chunk-BBHRXV75.mjs";import{m as P0,o as S0}from"./chunk-SYP4AJMF.mjs";import{a as V1}from"./chunk-MBJXS3D7.mjs";import{b as m0}from"./chunk-QKQYHPBK.mjs";import{b as S1,c as C0}from"./chunk-2SJ4BBMT.mjs";import{i as c0,l as z1}from"./chunk-24P6DAB3.mjs";import"./chunk-KJGNTREI.mjs";import{b as g0}from"./chunk-LXHECDOB.mjs";import{d as i1}from"./chunk-6YJP57MZ.mjs";import{B as _0,C as u0,E as h0,h as l0,p as P1}from"./chunk-ALSOO22Q.mjs";import{a as f0,b as W1,f as p0,j as w0}from"./chunk-2LQCQ3OT.mjs";import{b as w1}from"./chunk-IQC2I5A5.mjs";import"./chunk-IQKIHFNZ.mjs";import{a as p1,c as _4,d as O,e as L}from"./chunk-BVF64D6H.mjs";var j1=p1(o1=>{"use strict";L();Object.defineProperty(o1,"__esModule",{value:!0});o1.loop=o1.conditional=o1.parse=void 0;var u4=function e(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:r;if(Array.isArray(n))n.forEach(function(d){return e(t,d,r,i)});else if(typeof n=="function")n(t,r,i,e);else{var s=Object.keys(n)[0];Array.isArray(n[s])?(i[s]={},e(t,n[s],r,i[s])):i[s]=n[s](t,r,i,e)}return r};o1.parse=u4;var h4=function(t,n){return function(r,i,s,d){n(r,i,s)&&d(r,t,i,s)}};o1.conditional=h4;var m4=function(t,n){return function(r,i,s,d){for(var o=[],c=r.pos;n(r,i,s);){var h={};if(d(r,t,i,h),r.pos===c)break;c=r.pos,o.push(h)}return o}};o1.loop=m4});var K1=p1(W=>{"use strict";L();Object.defineProperty(W,"__esModule",{value:!0});W.readBits=W.readArray=W.readUnsigned=W.readString=W.peekBytes=W.readBytes=W.peekByte=W.readByte=W.buildStream=void 0;var f4=function(t){return{data:t,pos:0}};W.buildStream=f4;var T0=function(){return function(t){return t.data[t.pos++]}};W.readByte=T0;var p4=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return function(n){return n.data[n.pos+t]}};W.peekByte=p4;var I1=function(t){return function(n){return n.data.subarray(n.pos,n.pos+=t)}};W.readBytes=I1;var g4=function(t){return function(n){return n.data.subarray(n.pos,n.pos+t)}};W.peekBytes=g4;var w4=function(t){return function(n){return Array.from(I1(t)(n)).map(function(r){return String.fromCharCode(r)}).join("")}};W.readString=w4;var v4=function(t){return function(n){var r=I1(2)(n);return t?(r[1]<<8)+r[0]:(r[0]<<8)+r[1]}};W.readUnsigned=v4;var y4=function(t,n){return function(r,i,s){for(var d=typeof n=="function"?n(r,i,s):n,o=I1(t),c=new Array(d),h=0;h<d;h++)c[h]=o(r);return c}};W.readArray=y4;var b4=function(t,n,r){for(var i=0,s=0;s<r;s++)i+=t[n+s]&&Math.pow(2,r-s-1);return i},M4=function(t){return function(n){for(var r=T0()(n),i=new Array(8),s=0;s<8;s++)i[7-s]=!!(r&1<<s);return Object.keys(t).reduce(function(d,o){var c=t[o];return c.length?d[o]=b4(i,c.index,c.length):d[o]=i[c.index],d},{})}};W.readBits=M4});var F0=p1(E1=>{"use strict";L();Object.defineProperty(E1,"__esModule",{value:!0});E1.default=void 0;var d1=j1(),C=K1(),k1={blocks:function(t){for(var n=0,r=[],i=t.data.length,s=0,d=(0,C.readByte)()(t);d!==n&&d;d=(0,C.readByte)()(t)){if(t.pos+d>=i){var o=i-t.pos;r.push((0,C.readBytes)(o)(t)),s+=o;break}r.push((0,C.readBytes)(d)(t)),s+=d}for(var c=new Uint8Array(s),h=0,_=0;_<r.length;_++)c.set(r[_],h),h+=r[_].length;return c}},L4=(0,d1.conditional)({gce:[{codes:(0,C.readBytes)(2)},{byteSize:(0,C.readByte)()},{extras:(0,C.readBits)({future:{index:0,length:3},disposal:{index:3,length:3},userInput:{index:6},transparentColorGiven:{index:7}})},{delay:(0,C.readUnsigned)(!0)},{transparentColorIndex:(0,C.readByte)()},{terminator:(0,C.readByte)()}]},function(e){var t=(0,C.peekBytes)(2)(e);return t[0]===33&&t[1]===249}),C4=(0,d1.conditional)({image:[{code:(0,C.readByte)()},{descriptor:[{left:(0,C.readUnsigned)(!0)},{top:(0,C.readUnsigned)(!0)},{width:(0,C.readUnsigned)(!0)},{height:(0,C.readUnsigned)(!0)},{lct:(0,C.readBits)({exists:{index:0},interlaced:{index:1},sort:{index:2},future:{index:3,length:2},size:{index:5,length:3}})}]},(0,d1.conditional)({lct:(0,C.readArray)(3,function(e,t,n){return Math.pow(2,n.descriptor.lct.size+1)})},function(e,t,n){return n.descriptor.lct.exists}),{data:[{minCodeSize:(0,C.readByte)()},k1]}]},function(e){return(0,C.peekByte)()(e)===44}),x4=(0,d1.conditional)({text:[{codes:(0,C.readBytes)(2)},{blockSize:(0,C.readByte)()},{preData:function(t,n,r){return(0,C.readBytes)(r.text.blockSize)(t)}},k1]},function(e){var t=(0,C.peekBytes)(2)(e);return t[0]===33&&t[1]===1}),P4=(0,d1.conditional)({application:[{codes:(0,C.readBytes)(2)},{blockSize:(0,C.readByte)()},{id:function(t,n,r){return(0,C.readString)(r.blockSize)(t)}},k1]},function(e){var t=(0,C.peekBytes)(2)(e);return t[0]===33&&t[1]===255}),S4=(0,d1.conditional)({comment:[{codes:(0,C.readBytes)(2)},k1]},function(e){var t=(0,C.peekBytes)(2)(e);return t[0]===33&&t[1]===254}),I4=[{header:[{signature:(0,C.readString)(3)},{version:(0,C.readString)(3)}]},{lsd:[{width:(0,C.readUnsigned)(!0)},{height:(0,C.readUnsigned)(!0)},{gct:(0,C.readBits)({exists:{index:0},resolution:{index:1,length:3},sort:{index:4},size:{index:5,length:3}})},{backgroundColorIndex:(0,C.readByte)()},{pixelAspectRatio:(0,C.readByte)()}]},(0,d1.conditional)({gct:(0,C.readArray)(3,function(e,t){return Math.pow(2,t.lsd.gct.size+1)})},function(e,t){return t.lsd.gct.exists}),{frames:(0,d1.loop)([L4,P4,S4,C4,x4],function(e){var t=(0,C.peekByte)()(e);return t===33||t===44})}],k4=I4;E1.default=k4});var D0=p1(R1=>{"use strict";L();Object.defineProperty(R1,"__esModule",{value:!0});R1.deinterlace=void 0;var E4=function(t,n){for(var r=new Array(t.length),i=t.length/n,s=function(T,p){var u=t.slice(p*n,(p+1)*n);r.splice.apply(r,[T*n,n].concat(u))},d=[0,4,2,1],o=[8,8,4,2],c=0,h=0;h<4;h++)for(var _=d[h];_<i;_+=o[h])s(_,c),c++;return r};R1.deinterlace=E4});var U0=p1(T1=>{"use strict";L();Object.defineProperty(T1,"__esModule",{value:!0});T1.lzw=void 0;var R4=function(t,n,r){var i=4096,s=-1,d=r,o,c,h,_,l,T,p,R,u,g,E,D,U,H,r1,J,y=new Array(r),I=new Array(i),v=new Array(i),B=new Array(i+1);for(D=t,c=1<<D,l=c+1,o=c+2,p=s,_=D+1,h=(1<<_)-1,u=0;u<c;u++)I[u]=0,v[u]=u;var E,R,V,U,H,J,r1;for(E=R=V=U=H=J=r1=0,g=0;g<d;){if(H===0){if(R<_){E+=n[r1]<<R,R+=8,r1++;continue}if(u=E&h,E>>=_,R-=_,u>o||u==l)break;if(u==c){_=D+1,h=(1<<_)-1,o=c+2,p=s;continue}if(p==s){B[H++]=v[u],p=u,U=u;continue}for(T=u,u==o&&(B[H++]=U,u=p);u>c;)B[H++]=v[u],u=I[u];U=v[u]&255,B[H++]=U,o<i&&(I[o]=p,v[o]=U,o++,(o&h)===0&&o<i&&(_++,h+=o)),p=T}H--,y[J++]=B[H],g++}for(g=J;g<d;g++)y[g]=0;return y};T1.lzw=R4});var O0=p1(l1=>{"use strict";L();Object.defineProperty(l1,"__esModule",{value:!0});l1.decompressFrames=l1.decompressFrame=l1.parseGIF=void 0;var T4=O4(F0()),F4=j1(),D4=K1(),U4=D0(),A4=U0();function O4(e){return e&&e.__esModule?e:{default:e}}var N4=function(t){var n=new Uint8Array(t);return(0,F4.parse)((0,D4.buildStream)(n),T4.default)};l1.parseGIF=N4;var B4=function(t){for(var n=t.pixels.length,r=new Uint8ClampedArray(n*4),i=0;i<n;i++){var s=i*4,d=t.pixels[i],o=t.colorTable[d]||[0,0,0];r[s]=o[0],r[s+1]=o[1],r[s+2]=o[2],r[s+3]=d!==t.transparentIndex?255:0}return r},A0=function(t,n,r){if(!t.image){console.warn("gif frame does not have associated image.");return}var i=t.image,s=i.descriptor.width*i.descriptor.height,d=(0,A4.lzw)(i.data.minCodeSize,i.data.blocks,s);i.descriptor.lct.interlaced&&(d=(0,U4.deinterlace)(d,i.descriptor.width));var o={pixels:d,dims:{top:t.image.descriptor.top,left:t.image.descriptor.left,width:t.image.descriptor.width,height:t.image.descriptor.height}};return i.descriptor.lct&&i.descriptor.lct.exists?o.colorTable=i.lct:o.colorTable=n,t.gce&&(o.delay=(t.gce.delay||10)*10,o.disposalType=t.gce.extras.disposal,t.gce.extras.transparentColorGiven&&(o.transparentIndex=t.gce.transparentColorIndex)),r&&(o.patch=B4(o)),o};l1.decompressFrame=A0;var G4=function(t,n){return t.frames.filter(function(r){return r.image}).map(function(r){return A0(r,t.gct,n)})};l1.decompressFrames=G4});L();L();var I0=[{packageName:"@framefields/node-lut",ops:["ApplyLUT"],load:()=>import("./renderers-AYWCRBQC.mjs")},{packageName:"@framefields/node-ascii",ops:["Ascii"],load:()=>import("./renderers-7SW2AHM2.mjs")},{packageName:"@framefields/node-audio-compressor",ops:["AudioCompressor"],load:()=>import("./renderers-GKVTNDVH.mjs")},{packageName:"@framefields/node-audio-delay",ops:["AudioDelay"],load:()=>import("./renderers-BA6ZCPI5.mjs")},{packageName:"@framefields/node-audio-fade",ops:["AudioFade"],load:()=>import("./renderers-DFIJYBW2.mjs")},{packageName:"@framefields/node-audio-noise-gate",ops:["AudioNoiseGate"],load:()=>import("./renderers-G34C5J27.mjs")},{packageName:"@framefields/node-audio-parametric-eq",ops:["AudioParametricEq"],load:()=>import("./renderers-CZTCW4FC.mjs")},{packageName:"@framefields/node-audio-reverb",ops:["AudioReverb"],load:()=>import("./renderers-4CRXZJ5G.mjs")},{packageName:"@framefields/node-audio-signal-extractor",ops:["AudioSignalExtractor"],load:()=>import("./renderers-IW5MWDBI.mjs")},{packageName:"@framefields/node-blur",ops:["Blur"],load:()=>import("./renderers-D2XEQ2YY.mjs")},{packageName:"@framefields/node-camera-parallax-3d",ops:["CameraParallax3D"],load:()=>import("./renderers-P2FTCDZ7.mjs")},{packageName:"@framefields/node-canvas-generator",ops:["CanvasGenerator"],load:()=>import("./renderers-C3YXNKNM.mjs")},{packageName:"@framefields/node-channel-merger",ops:["ChannelMerger"],load:()=>import("./renderers-ART3EGSZ.mjs")},{packageName:"@framefields/node-channel-splitter",ops:["ChannelSplitter"],load:()=>import("./renderers-GY4R467B.mjs")},{packageName:"@framefields/node-color-balance",ops:["ColorBalance"],load:()=>import("./renderers-TN4XN436.mjs")},{packageName:"@framefields/node-colorkey",ops:["ColorKey"],load:()=>import("./renderers-YP3ASXIJ.mjs")},{packageName:"@framefields/node-compositor",ops:["Compositor"],load:()=>import("./renderers-4G3UOPA7.mjs")},{packageName:"@framefields/node-contour",ops:["Contour"],load:()=>import("./renderers-HMNCIEU3.mjs")},{packageName:"@framefields/node-corner-pin",ops:["CornerPin"],load:()=>import("./renderers-YVJAG3PD.mjs")},{packageName:"@framefields/node-crop",ops:["Crop"],load:()=>import("./renderers-5QF4OLFQ.mjs")},{packageName:"@framefields/node-crt",ops:["CRT"],load:()=>import("./renderers-EQDINUMT.mjs")},{packageName:"@framefields/node-curves",ops:["Curves"],load:()=>import("./renderers-KESHVFL2.mjs")},{packageName:"@framefields/node-datamosh",ops:["Datamosh"],load:()=>import("./renderers-RDHHVXRE.mjs")},{packageName:"@framefields/node-deflicker",ops:["TemporalDeflicker","Deflicker"],load:()=>import("./renderers-TJIFTQHV.mjs")},{packageName:"@framefields/node-displacement-map",ops:["DisplacementMap"],load:()=>import("./renderers-UDYLCYCB.mjs")},{packageName:"@framefields/node-dither",ops:["Dither"],load:()=>import("./renderers-LTV5RFDJ.mjs")},{packageName:"@framefields/node-extract-frame",ops:["ExtractFrame"],load:()=>import("./renderers-56TGEFDK.mjs")},{packageName:"@framefields/node-extract-lut",ops:["ExtractLUT"],load:()=>import("./renderers-LV6LLULR.mjs")},{packageName:"@framefields/node-film-grain",ops:["FilmGrain"],load:()=>import("./renderers-7HT5NW7W.mjs")},{packageName:"@framefields/node-flip",ops:["Flip"],load:()=>import("./renderers-X6RNTJOV.mjs")},{packageName:"@framefields/node-gooey",ops:["Gooey"],load:()=>import("./renderers-ZDMDDWLN.mjs")},{packageName:"@framefields/node-gradient-map",ops:["GradientMap"],load:()=>import("./renderers-SCJ6OKTB.mjs")},{packageName:"@framefields/node-halftone-screen",ops:["HalftoneScreen"],load:()=>import("./renderers-EJN6M6DO.mjs")},{packageName:"@framefields/node-high-pass",ops:["HighPass"],load:()=>import("./renderers-HZBYQKIQ.mjs")},{packageName:"@framefields/node-iridescence",ops:["Iridescence"],load:()=>import("./renderers-FD3ZT73R.mjs")},{packageName:"@framefields/node-kaleidoscope",ops:["Kaleidoscope"],load:()=>import("./renderers-HBIBRZD7.mjs")},{packageName:"@framefields/node-kenburns",ops:["KenBurns"],load:()=>import("./renderers-KY5CJEOV.mjs")},{packageName:"@framefields/node-layer-style",ops:["LayerStyle"],load:()=>import("./renderers-ZPPZNMKJ.mjs")},{packageName:"@framefields/node-levels",ops:["Levels"],load:()=>import("./renderers-6M2HPY2J.mjs")},{packageName:"@framefields/node-liquify",ops:["Liquify"],load:()=>import("./renderers-QJA35PKC.mjs")},{packageName:"@framefields/node-mask-math",ops:["MaskMath"],load:()=>import("./renderers-BAS7RXTC.mjs")},{packageName:"@framefields/node-mesh-warp",ops:["MeshWarp"],load:()=>import("./renderers-X6QNDC6R.mjs")},{packageName:"@framefields/node-modulate",ops:["Modulate"],load:()=>import("./renderers-O5XMWFPY.mjs")},{packageName:"@framefields/node-noise-generator",ops:["NoiseGenerator"],load:()=>import("./renderers-FYI6QNUH.mjs")},{packageName:"@framefields/node-op-art",ops:["OpArt"],load:()=>import("./renderers-EJGF3PYQ.mjs")},{packageName:"@framefields/node-paint",ops:["Paint"],load:()=>import("./renderers-FC7G7KU7.mjs")},{packageName:"@framefields/node-painterly",ops:["Painterly"],load:()=>import("./renderers-ZAMSS7QN.mjs")},{packageName:"@framefields/node-particles",ops:["Particles"],load:()=>import("./renderers-4RVSLTCX.mjs")},{packageName:"@framefields/node-patch-heal",ops:["PatchHeal"],load:()=>import("./renderers-Y3N7236P.mjs")},{packageName:"@framefields/node-pixelate",ops:["Pixelate"],load:()=>import("./renderers-7GMW52G3.mjs")},{packageName:"@framefields/node-posterize",ops:["Posterize"],load:()=>import("./renderers-YBTWN76S.mjs")},{packageName:"@framefields/node-procedural-vfx",ops:["ProceduralVFX"],load:()=>import("./renderers-GHP7SL5M.mjs")},{packageName:"@framefields/node-refine-edge",ops:["RefineEdge"],load:()=>import("./renderers-ATTGUTYY.mjs")},{packageName:"@framefields/node-refraction-caustics",ops:["RefractionCaustics3D"],load:()=>import("./renderers-H2UI7YEO.mjs")},{packageName:"@framefields/node-relight-3d",ops:["Relight3D"],load:()=>import("./renderers-WZ7SFIBZ.mjs")},{packageName:"@framefields/node-resizer-scaler",ops:["ResizerScaler"],load:()=>import("./renderers-NTKSN32T.mjs")},{packageName:"@framefields/node-rgb-split",ops:["RGBSplit"],load:()=>import("./renderers-YK74777T.mjs")},{packageName:"@framefields/node-rotate",ops:["Rotate"],load:()=>import("./renderers-5SOW6OVE.mjs")},{packageName:"@framefields/node-selective-color",ops:["SelectiveColor"],load:()=>import("./renderers-IK7ZJJKJ.mjs")},{packageName:"@framefields/node-shadows-highlights",ops:["ShadowsHighlights"],load:()=>import("./renderers-MEM3REMI.mjs")},{packageName:"@framefields/node-shape-generator",ops:["ShapeGenerator"],load:()=>import("./renderers-PYDOSDEY.mjs")},{packageName:"@framefields/node-signal-gate",ops:["SignalGate"],load:()=>import("./renderers-ISASPH6T.mjs")},{packageName:"@framefields/node-stereo-panning",ops:["StereoPanning"],load:()=>import("./renderers-M5W6SUQD.mjs")},{packageName:"@framefields/node-tile-offset",ops:["TileOffset"],load:()=>import("./renderers-KTZZVAB2.mjs")},{packageName:"@framefields/node-toon",ops:["Toon"],load:()=>import("./renderers-BWRNCXR6.mjs")},{packageName:"@framefields/node-trails",ops:["Trails"],load:()=>import("./renderers-SY435YU3.mjs")},{packageName:"@framefields/node-unsharp-mask",ops:["UnsharpMask"],load:()=>import("./renderers-EK3HQUUF.mjs")},{packageName:"@framefields/node-vignette",ops:["Vignette"],load:()=>import("./renderers-K2PI4WJS.mjs")},{packageName:"@framefields/node-vision",ops:["Vision"],load:()=>import("./renderers-N36R42RL.mjs")}];L();L();function k0(){return{clientWidth:1920,clientHeight:1080,getBoundingClientRect:()=>({x:0,y:0,left:0,top:0,right:1920,bottom:1080,width:1920,height:1080}),style:{},appendChild:()=>{},removeChild:()=>{},addEventListener:()=>{},removeEventListener:()=>{},getAttribute:()=>null}}function E0(e,t){typeof e.getBoundingClientRect>"u"&&(e.getBoundingClientRect=function(){let n=this.width||512,r=this.height||512;return{x:0,y:0,left:0,top:0,right:n,bottom:r,width:n,height:r}}),"style"in e||Object.defineProperty(e,"style",{get(){return this._style??={},this._style},configurable:!0}),"clientWidth"in e||Object.defineProperty(e,"clientWidth",{get(){return this.width||512},configurable:!0}),"clientHeight"in e||Object.defineProperty(e,"clientHeight",{get(){return this.height||512},configurable:!0}),"parentElement"in e||Object.defineProperty(e,"parentElement",{get(){return t},configurable:!0}),typeof e.addEventListener>"u"&&(e.addEventListener=()=>{}),typeof e.removeEventListener>"u"&&(e.removeEventListener=()=>{}),typeof e.getAttribute>"u"&&(e.getAttribute=()=>null)}function R0(){typeof globalThis.IntersectionObserver>"u"&&(globalThis.IntersectionObserver=class{observe(){}unobserve(){}disconnect(){}})}L();var $1=class e{static instance=null;loadedFonts=new Set;constructor(){}static getInstance(){return e.instance||(e.instance=new e),e.instance}async loadFont(t,n){if(this.loadedFonts.has(t))return;let r=`local-font-${t}`;if(document.getElementById(r))return;let i=document.createElement("style");i.id=r,i.innerHTML=`
2
2
  @font-face {
3
3
  font-family: "${t}";
4
4
  src: url("${n}");
@@ -1,4 +1,4 @@
1
- import{a as ea,b as ta,c as ra,e as na,f as ia}from"./chunk-ZZAZF6VC.mjs";import{F as Kn,H as ma,J as pa,M as ga,N as Pn,T as Sn,b as Li,c as Fi,d as z,e as kn,k as Qo,o as qo,p as Ko,v as sa,w as la,x as ua}from"./chunk-VY6ST4QX.mjs";import{o as aa}from"./chunk-BBHRXV75.mjs";import{a as Zo}from"./chunk-OLLY3Q7M.mjs";import{a as ya}from"./chunk-2JKXYG6J.mjs";import"./chunk-7I7PKKDL.mjs";import{a as ca,b as fa,d as Ii,g as da}from"./chunk-ENKKLU7B.mjs";import{a as ha}from"./chunk-PJMX2GFY.mjs";import"./chunk-37EFVZWT.mjs";import{a as Jo}from"./chunk-2SJ4BBMT.mjs";import{b as Tn,l as vn}from"./chunk-24P6DAB3.mjs";import"./chunk-KJGNTREI.mjs";import"./chunk-LXHECDOB.mjs";import"./chunk-6YJP57MZ.mjs";import{A as jo,D as $o,E as Ho,c as Ai,e as No,u as Wo,v as at}from"./chunk-ALSOO22Q.mjs";import{j as Mn,y as oa}from"./chunk-2LQCQ3OT.mjs";import"./chunk-MTJHQATU.mjs";import{a as qn}from"./chunk-IQC2I5A5.mjs";import"./chunk-IQKIHFNZ.mjs";import"./chunk-YAQFFQPG.mjs";import{e as ye}from"./chunk-BVF64D6H.mjs";ye();ye();ye();ye();var _a=`
1
+ import{a as ea,b as ta,c as ra,e as na,f as ia}from"./chunk-W3I7LKDV.mjs";import{F as Kn,H as ma,J as pa,M as ga,N as Pn,T as Sn,b as Li,c as Fi,d as z,e as kn,k as Qo,o as qo,p as Ko,v as sa,w as la,x as ua}from"./chunk-VY6ST4QX.mjs";import{o as aa}from"./chunk-BBHRXV75.mjs";import{a as Zo}from"./chunk-OLLY3Q7M.mjs";import{a as ya}from"./chunk-2JKXYG6J.mjs";import"./chunk-7I7PKKDL.mjs";import{a as ca,b as fa,d as Ii,g as da}from"./chunk-ENKKLU7B.mjs";import{a as ha}from"./chunk-PJMX2GFY.mjs";import"./chunk-37EFVZWT.mjs";import{a as Jo}from"./chunk-2SJ4BBMT.mjs";import{b as Tn,l as vn}from"./chunk-24P6DAB3.mjs";import"./chunk-KJGNTREI.mjs";import"./chunk-LXHECDOB.mjs";import"./chunk-6YJP57MZ.mjs";import{A as jo,D as $o,E as Ho,c as Ai,e as No,u as Wo,v as at}from"./chunk-ALSOO22Q.mjs";import{j as Mn,y as oa}from"./chunk-2LQCQ3OT.mjs";import"./chunk-MTJHQATU.mjs";import{a as qn}from"./chunk-IQC2I5A5.mjs";import"./chunk-IQKIHFNZ.mjs";import"./chunk-YAQFFQPG.mjs";import{e as ye}from"./chunk-BVF64D6H.mjs";ye();ye();ye();ye();var _a=`
2
2
  struct RelightMaterialUniforms {
3
3
  // vec4 0
4
4
  roughness : f32,
@@ -1,6 +1,6 @@
1
1
  import { $t as parseCssGradient, Kt as mixColors, Ot as getActiveMediaMetadata, Qt as parseCssColor, gt as createVirtualMedia, l as Color, ut as assertNever, y as Effect } from "./dist-D021IFfp.mjs";
2
2
  import { t as ColorSchema } from "./dist-BPOi5xb_.mjs";
3
- import { Ft as KineticMarqueeConfigSchema, In as signalRegistry, Qt as TextPathOptionsSchema, an as TypewriterAnimatorSchema, xt as AdvancedTextAnimatorSchema, yt as AETextAnimatorSchema } from "./dist-BuirkW-f.mjs";
3
+ import { Ft as KineticMarqueeConfigSchema, In as signalRegistry, Qt as TextPathOptionsSchema, an as TypewriterAnimatorSchema, xt as AdvancedTextAnimatorSchema, yt as AETextAnimatorSchema } from "./dist-CDwWQYg3.mjs";
4
4
  import { z } from "zod";
5
5
  import { loadYoga } from "yoga-layout/load";
6
6
 
@@ -2105,6 +2105,16 @@ const COLOR_PROPS = [
2105
2105
  * any count, but programs this size are slow to send, read and edit.
2106
2106
  */
2107
2107
  const LARGE_ANIMATION_KEYFRAMES = 2e3;
2108
+ /**
2109
+ * Characters layout draws from the color emoji font (the renderer's own
2110
+ * test, `emojiGraphemes` in webgpu-renderers).
2111
+ */
2112
+ const EMOJI = /(\p{Extended_Pictographic}|\p{Emoji_Presentation}|[\u2600-\u27BF])/u;
2113
+ /** The text a text node draws: its string and its spans'. */
2114
+ function textOf(node) {
2115
+ const spans = node.spans ?? [];
2116
+ return [node.text, ...spans.map((s) => s.text)].filter((t) => typeof t === "string").join("");
2117
+ }
2108
2118
  /** Contrast below this makes text hard to read (WCAG large-text minimum). */
2109
2119
  const MIN_TEXT_CONTRAST = 3;
2110
2120
  function tracksOf(node) {
@@ -2131,7 +2141,7 @@ function solidColor(value) {
2131
2141
  const c = parseCssColor(value);
2132
2142
  return c && c[3] > .99 ? value : null;
2133
2143
  }
2134
- function lintComposition(config) {
2144
+ function lintComposition(config, options = {}) {
2135
2145
  const out = [];
2136
2146
  const push = (severity, code, message, layerId) => out.push({
2137
2147
  severity,
@@ -2146,8 +2156,10 @@ function lintComposition(config) {
2146
2156
  let has3D = false;
2147
2157
  const pbrNodes = [];
2148
2158
  const shadowLights = [];
2159
+ const emojiText = [];
2149
2160
  const visit = (node, backdrop, atRoot) => {
2150
2161
  const id = String(node.id ?? "?");
2162
+ if (options.emojiFont === false && node.kind === "text" && EMOJI.test(textOf(node))) emojiText.push(id);
2151
2163
  for (const prop of COLOR_PROPS) {
2152
2164
  const v = node[prop];
2153
2165
  if (typeof v !== "string" || v === "" || v === "transparent") continue;
@@ -2218,6 +2230,10 @@ function lintComposition(config) {
2218
2230
  };
2219
2231
  const rootBackdrop = solidColor(config.backgroundColor) ?? null;
2220
2232
  visitLevel(config.layout, rootBackdrop, true);
2233
+ if (emojiText.length > 0) {
2234
+ const shown = emojiText.slice(0, 3).map((id) => `'${id}'`).join(", ");
2235
+ push("warning", "missing_emoji_font", `${emojiText.length === 1 ? "Text" : `${emojiText.length} text layers`} ${shown}${emojiText.length > 3 ? ", …" : ""} ${emojiText.length === 1 ? "has" : "have"} emoji, but no emoji font is registered, so the emoji draw nothing. Run \`npx framefields fonts add emoji\` and call the generated \`registerFonts()\`, or \`FontManager.registerEmojiFont(path)\` with a color emoji font.`, emojiText[0]);
2236
+ }
2221
2237
  if (hasEnvironment && ambientLights.length > 0) push("info", "ambient_with_environment", `The environment already fills shadows with light; ambient light ${ambientLights.join(", ")} adds flat light on top (remove it, or lower it, if the scene looks washed out).`);
2222
2238
  if (shadowLights.length > 1) push("info", "multiple_shadow_lights", `${shadowLights.length} lights cast shadows (${shadowLights.join(", ")}); only the first one does.`);
2223
2239
  if (has3D && pbrNodes.length > 0 && !hasEnvironment) push("info", "pbr_without_environment", `roughness / metallic are set (${pbrNodes.slice(0, 3).join(", ")}${pbrNodes.length > 3 ? ", …" : ""}) but the scene has no Layer.environment(): add one for physically based shading, reflections and tone mapping.`);
@@ -3677,4 +3693,4 @@ function collectNodeOps(nodes) {
3677
3693
 
3678
3694
  //#endregion
3679
3695
  export { applyStaggerToChildren as A, evaluateTrackAtFrame as B, ShapeNodeSchema as C, TextSpanMarkSchema as D, TextNodeSchema as E, computeLayout as F, initLayout as H, computeLayoutSync as I, computeStaggerDelay as L, collectNodeOps as M, compositorToProgram as N, TextSpanSchema as O, computeCarrierContinuity as P, evaluateAnimationAtFrame as R, Sequence as S, TextAnimatorSchema as T, lintComposition as U, hoistMattes as V, mergeAnimationTracks as W, MediaNodeSchema as _, CarrierHandoffConfigSchema as a, SceneDefinitionSchema as b, EnvironmentFogSchema as c, LayerAnimation as d, LayoutNodeSchema as f, MatteModeSchema as g, MaterialTypeSchema as h, CameraNodeSchema as i, calculateSequenceTimeline as j, ToneMappingSchema as k, EnvironmentPresetSchema as l, LightTypeSchema as m, BoxNodeSchema as n, ColorStopSchema as o, LightNodeSchema as p, CameraAnimation as r, CompositorProgramSchema as s, BloomConfigSchema as t, FlexNodeSchema as u, Model3DNodeSchema as v, TextAnimator as w, SceneTransitionTypeSchema as x, Scene as y, evaluateKeyframes as z };
3680
- //# sourceMappingURL=program-O2bWX0cs.mjs.map
3696
+ //# sourceMappingURL=program-Bf4yHbHC.mjs.map