hyperframes 0.9.65 → 0.9.66

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 (320) hide show
  1. package/dist/{add-FFPEN3PI.js → add-Q4W2PAZ6.js} +22 -21
  2. package/dist/{agentPromptGenerator-3XDVEOI4.js → agentPromptGenerator-BZ77OPI4.js} +14 -13
  3. package/dist/{animatedGifPrep-FF5MNK4G.js → animatedGifPrep-3UBRNEEA.js} +15 -14
  4. package/dist/api.js +51 -49
  5. package/dist/{appHistory-VNIOZU2X.js → appHistory-EWII7S5X.js} +4 -4
  6. package/dist/{asset-CL3LGWHN.js → asset-ZRTGYYEN.js} +10 -9
  7. package/dist/{assetCataloger-EJWPZR2U.js → assetCataloger-GTSOUOBQ.js} +15 -14
  8. package/dist/{audio-YXOB2W6Y.js → audio-ZUW3RHEO.js} +30 -28
  9. package/dist/{auth-M7A4TSPO.js → auth-TE5FMKUT.js} +4 -4
  10. package/dist/{autoUpdate-6YQYHQGW.js → autoUpdate-6JGNDMLP.js} +24 -10
  11. package/dist/{avatars-77IWARZP.js → avatars-BJEF4TZR.js} +23 -21
  12. package/dist/{backgroundChecks-M4NIDGIA.js → backgroundChecks-EN5XLRLY.js} +3 -3
  13. package/dist/backgroundChecksWorker.js +3 -3
  14. package/dist/{batchRender-YSKM7TNL.js → batchRender-EEMYIEYR.js} +13 -10
  15. package/dist/{beats-LRU6EJRT.js → beats-IPGSP5BV.js} +14 -13
  16. package/dist/{benchmark-CHHCVFKH.js → benchmark-GZOATIPM.js} +25 -22
  17. package/dist/{billing-LLO6AH2P.js → billing-3LF2YYP7.js} +22 -20
  18. package/dist/{browser-QCBYOBPV.js → browser-2IH45NN6.js} +12 -11
  19. package/dist/{bundleWithLocalizedFonts-QKUGP6QU.js → bundleWithLocalizedFonts-QV6WDOXF.js} +1 -1
  20. package/dist/{capture-22DC6YXT.js → capture-4SIGWC4Q.js} +10 -9
  21. package/dist/{capture-7CIWJP57.js → capture-K75SADNY.js} +26 -25
  22. package/dist/{captureCompositionFrame-QKU2OEUO.js → captureCompositionFrame-XVEPPU4X.js} +21 -20
  23. package/dist/{captureFile-FNCMGYYJ.js → captureFile-GYZI5Y56.js} +3 -3
  24. package/dist/{catalog-KM43JIX6.js → catalog-6N22YQEE.js} +22 -21
  25. package/dist/{catch-up-QSCE5EWT.js → catch-up-67LVADSA.js} +14 -13
  26. package/dist/{check-OHWGWJX6.js → check-NYD3WGR2.js} +55 -54
  27. package/dist/{checkAudio-7LMFGTYQ.js → checkAudio-APZTSEHX.js} +17 -16
  28. package/dist/{checkBrowser-EEH265TZ.js → checkBrowser-2UA6O65I.js} +47 -46
  29. package/dist/{chunk-IOYTXBFK.js → chunk-244FN6TG.js} +1 -1
  30. package/dist/{chunk-3JVTHNDH.js → chunk-2FEZFXKE.js} +1 -1
  31. package/dist/{chunk-LLLOUHO6.js → chunk-2OSPWUGX.js} +7 -6
  32. package/dist/{chunk-W2CXA2CN.js → chunk-2UIAN6N7.js} +1 -1
  33. package/dist/{chunk-E3OFFWRD.js → chunk-2Z7IW5EY.js} +2 -2
  34. package/dist/{chunk-2WXCQT4F.js → chunk-35BZXE5L.js} +1 -1
  35. package/dist/{chunk-Z2B2CQO3.js → chunk-37SEGJEO.js} +11 -11
  36. package/dist/{chunk-RCP2VEJJ.js → chunk-3B4WQYCW.js} +6 -6
  37. package/dist/{chunk-VIA6UCV5.js → chunk-3BKNPN36.js} +37 -3
  38. package/dist/{chunk-ALTOXXDI.js → chunk-3ODOQWSB.js} +10 -5
  39. package/dist/{chunk-UCWQU7EY.js → chunk-3WE4UZHN.js} +2 -2
  40. package/dist/{chunk-OCBC4P6O.js → chunk-4IIPERO4.js} +1 -1
  41. package/dist/{chunk-FHIOPTN4.js → chunk-4SY34UA2.js} +1 -1
  42. package/dist/{chunk-7R7OCEHI.js → chunk-4WUTXBRK.js} +6 -6
  43. package/dist/{chunk-RC2DDVX5.js → chunk-5E46EQ3U.js} +2 -2
  44. package/dist/{chunk-BYCOI5AI.js → chunk-5UOYRGKV.js} +2 -2
  45. package/dist/{chunk-UL2EO5VU.js → chunk-5WZSXP6R.js} +1 -1
  46. package/dist/{chunk-X63QVLMJ.js → chunk-64O3DG3E.js} +1 -1
  47. package/dist/{chunk-AYTEZDHI.js → chunk-66D5BC5K.js} +9 -4
  48. package/dist/{chunk-C6J6TZSW.js → chunk-6ACARSAZ.js} +1 -1
  49. package/dist/{chunk-5JB52EL2.js → chunk-6PGDI5NG.js} +154 -84
  50. package/dist/{chunk-A63XME5P.js → chunk-6PYUPO4M.js} +4 -4
  51. package/dist/{chunk-CNCE57K2.js → chunk-6QITYZN7.js} +2 -2
  52. package/dist/{chunk-QRDITHEZ.js → chunk-6QZNF3JF.js} +26 -27
  53. package/dist/chunk-6SYJN2KD.js +15 -0
  54. package/dist/{chunk-777GBBTE.js → chunk-6VNN3SYK.js} +1 -1
  55. package/dist/{chunk-AQFA2WPD.js → chunk-745HLQBA.js} +1 -1
  56. package/dist/{chunk-F4V523HB.js → chunk-74M47HVE.js} +2 -2
  57. package/dist/{chunk-TIB6KUSP.js → chunk-7BREEOLQ.js} +16 -16
  58. package/dist/{chunk-FZKN2NC4.js → chunk-7CKKKBNM.js} +2 -2
  59. package/dist/{chunk-3W4FG7IG.js → chunk-7EOREMZI.js} +12 -12
  60. package/dist/{chunk-AR3R2DZI.js → chunk-7LQFVACU.js} +1 -1
  61. package/dist/{chunk-VCTPYHOD.js → chunk-7QNCNGN6.js} +2 -2
  62. package/dist/{chunk-JBKVY4PY.js → chunk-A6O65H7G.js} +4 -4
  63. package/dist/{chunk-OYFDQ5QW.js → chunk-AAZF6D3Z.js} +1 -1
  64. package/dist/{chunk-BSGHUXHX.js → chunk-AI4MXYGK.js} +1 -1
  65. package/dist/{chunk-4W4QOYPI.js → chunk-AI5KNXSL.js} +8 -8
  66. package/dist/{chunk-ZJQ23DJQ.js → chunk-AQBWVIT7.js} +1 -1
  67. package/dist/{chunk-NMYYW6QM.js → chunk-AQNI4TCF.js} +23 -15
  68. package/dist/{chunk-GJ52L66E.js → chunk-AWOHPIKF.js} +9 -9
  69. package/dist/{chunk-LBDQJRCK.js → chunk-BSY6ZHP6.js} +1 -1
  70. package/dist/{chunk-JP7BQ4WS.js → chunk-CANVWJB4.js} +13 -11
  71. package/dist/{chunk-7CCETF2U.js → chunk-CEHYC2UD.js} +3 -3
  72. package/dist/{chunk-HYO4DIYT.js → chunk-CPQTWPMM.js} +1 -1
  73. package/dist/{chunk-Y273NNG5.js → chunk-CTDCYNVK.js} +2 -2
  74. package/dist/{chunk-GEEATBFF.js → chunk-CUOX3TDY.js} +3 -3
  75. package/dist/{chunk-DZNWYUBA.js → chunk-D5YHSTHZ.js} +3 -3
  76. package/dist/{chunk-F2GQH6G4.js → chunk-DPMEWIVZ.js} +4 -4
  77. package/dist/{chunk-FZRFTW5X.js → chunk-DZ3JB4F3.js} +2 -2
  78. package/dist/{chunk-OHY27IY2.js → chunk-EIION6EA.js} +2 -2
  79. package/dist/{chunk-GVGUOYNC.js → chunk-EPBYIJPM.js} +1 -1
  80. package/dist/{chunk-EUXQMNUT.js → chunk-ESYW3LJU.js} +2 -2
  81. package/dist/{chunk-3U2W7LJU.js → chunk-FAJRDYFU.js} +6 -6
  82. package/dist/{chunk-GB5RKTLO.js → chunk-FBOKUG5B.js} +5 -5
  83. package/dist/{chunk-XHW57QCG.js → chunk-FCNBAYZ6.js} +3 -3
  84. package/dist/{chunk-XDVHQFEQ.js → chunk-FOALZ4MW.js} +1 -1
  85. package/dist/{chunk-GDKNEQ4E.js → chunk-GGY5M6BU.js} +1 -1
  86. package/dist/{chunk-NDXUDTLF.js → chunk-GXKCFOMR.js} +2 -2
  87. package/dist/{chunk-3WUKMGJN.js → chunk-H6LFXHAV.js} +7 -7
  88. package/dist/{chunk-WNU7WC46.js → chunk-HMNDJPLQ.js} +3 -3
  89. package/dist/{chunk-A6AH56HN.js → chunk-HYQ6S7R6.js} +2 -2
  90. package/dist/{chunk-TNTXAGHK.js → chunk-IUUEMVZV.js} +2 -2
  91. package/dist/{chunk-XP6BVUGU.js → chunk-IXGZSANV.js} +2 -2
  92. package/dist/{chunk-EMIOIMHN.js → chunk-IXSCGQS5.js} +1 -1
  93. package/dist/{chunk-2QIRDNBU.js → chunk-JDJ6BM5E.js} +2 -2
  94. package/dist/{chunk-AOSTTTSS.js → chunk-JGKI7FHX.js} +130 -42
  95. package/dist/{chunk-VSDYSL4J.js → chunk-JHPOKDZI.js} +13 -13
  96. package/dist/{chunk-YGO6PEYX.js → chunk-JK7JON6R.js} +1 -1
  97. package/dist/{chunk-6KVZKKQL.js → chunk-K2NOQNNY.js} +1 -1
  98. package/dist/{chunk-PH3MZM27.js → chunk-KDQRJHLU.js} +4 -4
  99. package/dist/{chunk-DQD5KQXM.js → chunk-KFWSPEDG.js} +1 -1
  100. package/dist/{chunk-5VERYJGC.js → chunk-KXCAIQE4.js} +5 -5
  101. package/dist/{chunk-IH2C53YV.js → chunk-KZ5PV5TL.js} +11 -9
  102. package/dist/{chunk-6XUAMVHS.js → chunk-L7BY2FDJ.js} +16 -16
  103. package/dist/{chunk-HXUZGW3A.js → chunk-LAXD6VM7.js} +10 -10
  104. package/dist/{chunk-3FHYTUFQ.js → chunk-LBFV45YF.js} +1 -1
  105. package/dist/{chunk-FXMKHHPO.js → chunk-LIHELBPB.js} +0 -61
  106. package/dist/{chunk-2TEG3AY6.js → chunk-LIXAC5NE.js} +12 -12
  107. package/dist/{chunk-QZML6RDQ.js → chunk-LNOG6KKM.js} +7 -7
  108. package/dist/{chunk-YWUE4CRU.js → chunk-LWX5PI73.js} +7 -7
  109. package/dist/{chunk-EQSVVKKE.js → chunk-M4ABCFJO.js} +4 -4
  110. package/dist/{chunk-R3FNJABL.js → chunk-MEZAMIT6.js} +9 -9
  111. package/dist/{chunk-G6CEI6PO.js → chunk-MG7UJJCP.js} +25 -7
  112. package/dist/{chunk-7S6FWEJH.js → chunk-MH46RGG6.js} +1 -1
  113. package/dist/{chunk-AB4FVMV4.js → chunk-MKZ73C57.js} +1 -1
  114. package/dist/{chunk-6AKYBHGV.js → chunk-N6VNR4YE.js} +54 -17
  115. package/dist/{chunk-K6ARLNKJ.js → chunk-NIEOUHVQ.js} +1 -1
  116. package/dist/{chunk-PW4U3IUR.js → chunk-NMASYQXY.js} +3 -3
  117. package/dist/{chunk-YZO2JM2G.js → chunk-NOCU3FBX.js} +5 -5
  118. package/dist/{chunk-4NNGVO2D.js → chunk-NSADX4IV.js} +28 -23
  119. package/dist/{chunk-U3OHPF2K.js → chunk-OB56G4VA.js} +3 -3
  120. package/dist/{chunk-U2FL2MTE.js → chunk-OGL5VQGT.js} +4 -2
  121. package/dist/{chunk-UFCIA6WF.js → chunk-OI5WGQE3.js} +5 -5
  122. package/dist/{chunk-IJ4CZKOB.js → chunk-OMFIMZZD.js} +5 -5
  123. package/dist/chunk-PWRUMN7B.js +71 -0
  124. package/dist/{chunk-FDI4X3EC.js → chunk-PXMEW6TM.js} +3 -3
  125. package/dist/{chunk-FBMBSPEZ.js → chunk-QSQNXAHE.js} +1 -1
  126. package/dist/{chunk-MJWUDOBB.js → chunk-R5C2CV7J.js} +5 -5
  127. package/dist/chunk-RAHYMZNU.js +5146 -0
  128. package/dist/{chunk-IM7OBJ2Z.js → chunk-RD3DE4ZP.js} +2 -2
  129. package/dist/{chunk-AXZ2NMKP.js → chunk-RHZE7BIX.js} +3 -3
  130. package/dist/{chunk-EH46IYY2.js → chunk-ROODLZY7.js} +10 -10
  131. package/dist/{chunk-QBPQNKSP.js → chunk-RRGRETJ4.js} +2 -2
  132. package/dist/{chunk-3UL2TYIS.js → chunk-S73AVUHJ.js} +1 -1
  133. package/dist/{chunk-QZZZNXAK.js → chunk-SITGBEFO.js} +41 -34
  134. package/dist/{chunk-6N3S6L56.js → chunk-TIGMUHSL.js} +6 -6
  135. package/dist/{chunk-KJ5YLRMQ.js → chunk-TMB4L4GG.js} +5 -3
  136. package/dist/{chunk-4PEGA4QR.js → chunk-TQYHQKOK.js} +1 -1
  137. package/dist/{chunk-PUZN3BFQ.js → chunk-TU2WFCGS.js} +2 -2
  138. package/dist/{chunk-AE36GVZT.js → chunk-TUJB74AE.js} +3 -3
  139. package/dist/{chunk-IZ5GH7TX.js → chunk-TXTVVIW7.js} +3 -3
  140. package/dist/{chunk-6BLW2BST.js → chunk-TZ3EPV4B.js} +1 -1
  141. package/dist/{chunk-YWD5PVKA.js → chunk-U3WUAVAX.js} +3 -3
  142. package/dist/{chunk-TFAKFI3R.js → chunk-U6ZR7GBQ.js} +3 -3
  143. package/dist/{chunk-4NCKEOKP.js → chunk-UCQTLZDJ.js} +2 -2
  144. package/dist/{chunk-BBAEXPIU.js → chunk-ULE2EYEY.js} +2 -2
  145. package/dist/{chunk-S35RUNXJ.js → chunk-UVW5ZDAP.js} +4 -2
  146. package/dist/{chunk-KFR67U7E.js → chunk-VBLKGDVI.js} +1 -1
  147. package/dist/{chunk-MWQQOFGN.js → chunk-W672RTMC.js} +4 -4
  148. package/dist/{chunk-Z67SXGRJ.js → chunk-WMJ3PV37.js} +1 -1
  149. package/dist/{chunk-VVSPUYPA.js → chunk-WWQWDRKU.js} +1 -1
  150. package/dist/{chunk-S7YTRWJD.js → chunk-WY6354ZO.js} +4 -4
  151. package/dist/{chunk-OCGUBNKH.js → chunk-X3JZA7KH.js} +9 -9
  152. package/dist/{chunk-UKFPGKEC.js → chunk-XEIVSW2F.js} +7 -7
  153. package/dist/{chunk-X2BESDNL.js → chunk-XKIXRSVB.js} +3 -3
  154. package/dist/{chunk-XIVI6GYV.js → chunk-XMKDDEX4.js} +7 -7
  155. package/dist/{chunk-C2O5XIFN.js → chunk-XNJEXXKC.js} +2 -2
  156. package/dist/{chunk-Z66KCWZC.js → chunk-XSARHJSW.js} +2 -2
  157. package/dist/{chunk-QVVQJKBZ.js → chunk-XTKNMYRR.js} +2 -2
  158. package/dist/{chunk-BA2MCRMP.js → chunk-Y4QE4LEB.js} +1 -1
  159. package/dist/{chunk-MEDWEFKT.js → chunk-Y57R6C5U.js} +3 -3
  160. package/dist/{chunk-F4CVSUA4.js → chunk-Y6A5LED6.js} +2 -2
  161. package/dist/{chunk-STH72R3G.js → chunk-YMSOS6CF.js} +1 -1
  162. package/dist/{chunk-U2X5CSJV.js → chunk-ZHIAAYY2.js} +4 -4
  163. package/dist/{chunk-JA2EGQEE.js → chunk-ZQPXWUCP.js} +3 -3
  164. package/dist/{chunk-ANX6FWHI.js → chunk-ZS2ROUIG.js} +1 -1
  165. package/dist/{chunk-ERYYOWWF.js → chunk-ZY55U6ER.js} +8 -8
  166. package/dist/{clean-ZR7HNI3V.js → clean-73IDEWIJ.js} +28 -27
  167. package/dist/cli.js +72 -71
  168. package/dist/{cloud-B24T67AA.js → cloud-P32MAEIJ.js} +4 -4
  169. package/dist/{cloud-5JYPYMDJ.js → cloud-SOZPWTDL.js} +14 -12
  170. package/dist/{cloudrun-7U6GFP2S.js → cloudrun-H5TW5T4R.js} +9 -8
  171. package/dist/{compare-NRXMK72Y.js → compare-BQSDHPZ3.js} +49 -48
  172. package/dist/{compiler-FQB6LVTK.js → compiler-WNVDGRBH.js} +9 -6
  173. package/dist/{component-TJX5NP44.js → component-WWICYJFN.js} +11 -10
  174. package/dist/{compositions-UPIST4QX.js → compositions-VEMHHQR6.js} +22 -19
  175. package/dist/{contactSheet-JFEV75W2.js → contactSheet-G42BMJXO.js} +4 -4
  176. package/dist/{curve-P3KZZFD5.js → curve-5SCSMYX4.js} +18 -17
  177. package/dist/{cuts-PTZUTT45.js → cuts-POUL3RQ5.js} +19 -18
  178. package/dist/{delete-GHEUVYRE.js → delete-NVS5PXRM.js} +21 -17
  179. package/dist/{deploy-IBHOLWU3.js → deploy-SPJ5OWAI.js} +9 -16
  180. package/dist/{describeProject-VCX52S5P.js → describeProject-KJGRR7FM.js} +15 -14
  181. package/dist/{destroy-ISDB5HUK.js → destroy-CPLVCITS.js} +6 -6
  182. package/dist/{deterministicFonts-XCYIRDQZ.js → deterministicFonts-645ILNLP.js} +3 -3
  183. package/dist/{diff-4YBUQ4YN.js → diff-O2JUFV2N.js} +45 -43
  184. package/dist/{dist-3YCMP3OA.js → dist-DCRKIIL4.js} +18 -17
  185. package/dist/{dist-5BBLH53Z.js → dist-TTOW2KVO.js} +11 -9
  186. package/dist/{dist-VPMEUGIV.js → dist-XRESUN6B.js} +3 -3
  187. package/dist/docker/Dockerfile.render +1 -1
  188. package/dist/{doctor-MOKBELVX.js → doctor-L5GGDS2F.js} +18 -17
  189. package/dist/{dotEnv-JBK54RQJ.js → dotEnv-7P4XI4ID.js} +7 -6
  190. package/dist/{energy-W77GZ4AU.js → energy-43JTPLLL.js} +19 -18
  191. package/dist/{events-ZMVV7YHQ.js → events-33NDGOZM.js} +21 -20
  192. package/dist/{events-6AAHOZOP.js → events-K576EL47.js} +9 -8
  193. package/dist/{events-6MUF5QM3.js → events-XRO5CFTD.js} +4 -3
  194. package/dist/{execute-ZXIJROJ3.js → execute-EWZ3WK3L.js} +42 -41
  195. package/dist/{extract-XPYMBV3C.js → extract-NW375CQM.js} +20 -19
  196. package/dist/{face-DPGVFMNK.js → face-AVVUVV5L.js} +20 -19
  197. package/dist/{face-CFU3RPCE.js → face-IVXIPAO5.js} +17 -16
  198. package/dist/{feedback-QCILWFND.js → feedback-MS34KB74.js} +26 -24
  199. package/dist/{ffmpeg-53IYIQK6.js → ffmpeg-I376KCKD.js} +13 -12
  200. package/dist/{figma-MWLNH4FP.js → figma-M37MXYPR.js} +3 -3
  201. package/dist/fontLocalizeCli.js +19 -18
  202. package/dist/{frames-XMHFYD43.js → frames-6VGAHZBO.js} +21 -20
  203. package/dist/{generate-VC7GNQN7.js → generate-TM7AOJ27.js} +35 -33
  204. package/dist/{get-SBNYVI3T.js → get-2JAJO7AP.js} +21 -17
  205. package/dist/{gpuPolicy-5BUTYWST.js → gpuPolicy-DEH3KKNF.js} +13 -12
  206. package/dist/{grade-compare-BIGPVPVY.js → grade-compare-UN6MPWVF.js} +43 -42
  207. package/dist/{hands-6VOHNDTY.js → hands-ANSG7WHU.js} +22 -21
  208. package/dist/{heifImagePrep-HPGUKE5Y.js → heifImagePrep-YC3ZMWUC.js} +16 -15
  209. package/dist/{help-7FCGRM47.js → help-63QQYCMJ.js} +1 -1
  210. package/dist/{history-FJPXD3BK.js → history-DRSL755Q.js} +18 -17
  211. package/dist/hyperframe.manifest.json +1 -1
  212. package/dist/hyperframe.runtime.iife.js +72 -71
  213. package/dist/hyperframes-player.global.js +3 -3
  214. package/dist/{index-gen-3DWPA4FO.js → index-gen-TXP67YUY.js} +13 -1
  215. package/dist/{info-6P6MXHTD.js → info-UNIWLP7I.js} +21 -20
  216. package/dist/{init-VL2J3BPK.js → init-3W3XSGXC.js} +37 -36
  217. package/dist/{ink-JXO2ECYZ.js → ink-OXJJIEQ7.js} +19 -18
  218. package/dist/{inspect-LDJ4MZZB.js → inspect-UOXP5ICV.js} +48 -47
  219. package/dist/{installer-CY5PMR3I.js → installer-OWZSFVV2.js} +10 -9
  220. package/dist/{keyframes-GZMGSHWN.js → keyframes-LNCXSQJ6.js} +23 -22
  221. package/dist/{lambda-EX6MIUFB.js → lambda-3ZIM5NW2.js} +22 -21
  222. package/dist/{launch-Z3ZYBEOZ.js → launch-HOSRCHWS.js} +14 -13
  223. package/dist/{layout-LJAXOS6D.js → layout-MRBHBZEA.js} +48 -47
  224. package/dist/{lint-IZ5LAKZ2.js → lint-U4PINYKO.js} +16 -15
  225. package/dist/{lintProject-XEWYQ2YP.js → lintProject-55U44GOP.js} +3 -3
  226. package/dist/{list-M5NCDKZK.js → list-AMH6UUTI.js} +27 -21
  227. package/dist/{live-WWPFZQ74.js → live-ZSDUN6U2.js} +1 -1
  228. package/dist/{localPage-RPRX4QWI.js → localPage-JJ56YNKB.js} +14 -13
  229. package/dist/{login-QTAVYFVF.js → login-U42SSWF4.js} +15 -13
  230. package/dist/{logout-ADLJGWD3.js → logout-DQVPSI4E.js} +11 -9
  231. package/dist/{look-WHPFOAD5.js → look-6VTGMGIF.js} +19 -18
  232. package/dist/{manager-R6S2BFJI.js → manager-GHP2QIUD.js} +14 -13
  233. package/dist/{manager-ISZYNIK2.js → manager-PXRZQDDT.js} +2 -2
  234. package/dist/{measure-22AU7TYR.js → measure-NC4LN7EZ.js} +12 -12
  235. package/dist/{media-TS5AB73F.js → media-VKM5WFRK.js} +17 -14
  236. package/dist/{media-treatment-437SK3IP.js → media-treatment-VNZS2MIT.js} +22 -21
  237. package/dist/{media-use-WIZLFHGZ.js → media-use-JOQWGBS5.js} +13 -11
  238. package/dist/{models-55KT2FOE.js → models-S55TNWF7.js} +19 -18
  239. package/dist/{motionShot-GR2XK7MG.js → motionShot-OUOXFKUG.js} +25 -24
  240. package/dist/{normalize-KYVBGCEM.js → normalize-AH7CCULG.js} +3 -3
  241. package/dist/{normalize-audio-7H5EXI7L.js → normalize-audio-GYTTK5QE.js} +16 -15
  242. package/dist/{oauth-E5QBYYTX.js → oauth-RETRT7QD.js} +2 -1
  243. package/dist/{open-EEUJNVW4.js → open-KGXPI4BY.js} +31 -25
  244. package/dist/{parakeetRunner-CNF4YXTV.js → parakeetRunner-IXUUFPGG.js} +21 -20
  245. package/dist/{pipeline-Q2RJZQ4E.js → pipeline-UE2Y2ZRB.js} +16 -15
  246. package/dist/{plan-6RCNL7RA.js → plan-AD4FZA6N.js} +29 -28
  247. package/dist/{play-USR5S4WS.js → play-G6JYDYIH.js} +45 -38
  248. package/dist/{preflight-N5T57D6Q.js → preflight-QNDXHMOT.js} +15 -14
  249. package/dist/{present-H36KTF2O.js → present-OK7QMCLR.js} +42 -37
  250. package/dist/{preview-CTXJ3D57.js → preview-XD7J2KHY.js} +65 -63
  251. package/dist/{privateProjectFile-V5OO6UFK.js → privateProjectFile-2WJ6GPY6.js} +14 -11
  252. package/dist/{probe-642YQRRC.js → probe-34RS6LVV.js} +19 -18
  253. package/dist/{producer-MYTLLTMI.js → producer-AX7EDIPJ.js} +1 -1
  254. package/dist/{progress-6MLINWFK.js → progress-WLBIHCZM.js} +4 -4
  255. package/dist/{projectConfig-PLXPNXPK.js → projectConfig-YBFY4W5A.js} +13 -12
  256. package/dist/{publication-2ZKN62ZD.js → publication-JPKV2ZQO.js} +8 -7
  257. package/dist/{publish-HU2M6QDD.js → publish-LRUVQX2E.js} +38 -33
  258. package/dist/{receivedRecordFollow-3ITTF3YV.js → receivedRecordFollow-6MPKPG36.js} +16 -15
  259. package/dist/{refresh-TS65XP6Q.js → refresh-HFE7YV57.js} +11 -9
  260. package/dist/{remove-background-U6BRLHPJ.js → remove-background-TS4QUALS.js} +17 -16
  261. package/dist/{render-SWLLJJUD.js → render-NYFK74KL.js} +13 -12
  262. package/dist/{render-4VGHRQHU.js → render-PSUJ4UCJ.js} +60 -59
  263. package/dist/{render-ZRUNNKX2.js → render-UQICTWO6.js} +55 -50
  264. package/dist/{render-batch-ADHAEQA7.js → render-batch-57ZDTS7Z.js} +13 -12
  265. package/dist/renderSetupWorker.js +5 -5
  266. package/dist/{resolver-QQYGQNPZ.js → resolver-3HJC4XU3.js} +10 -9
  267. package/dist/{reverse-XBPVILTU.js → reverse-CIMYQVFI.js} +1 -1
  268. package/dist/{run-VTUQ4O2Q.js → run-EFRNU53Z.js} +14 -12
  269. package/dist/{screenshotCapture-V7LXLF4P.js → screenshotCapture-K63UAXO7.js} +16 -15
  270. package/dist/{service-B5XDMOX2.js → service-EEEGLRHX.js} +22 -20
  271. package/dist/{share-HTU2KE7G.js → share-WQVRXWH4.js} +26 -24
  272. package/dist/{sherpa-2NXXLF6T.js → sherpa-BOHH3Q32.js} +20 -19
  273. package/dist/sherpaWorker.js +3 -3
  274. package/dist/{sites-ZK652FTA.js → sites-2IEQMGTW.js} +4 -4
  275. package/dist/skills/hyperframes/references/plugin-installation.md +5 -1
  276. package/dist/skills/hyperframes/references/skill-lifecycle.md +2 -2
  277. package/dist/skills/hyperframes/scripts/plugin-cli.mjs +9 -4
  278. package/dist/skills/media-use/scripts/lib/cube-validate.mjs +2 -1
  279. package/dist/skills/media-use/scripts/lib/index-gen.mjs +4 -2
  280. package/dist/skills/media-use/scripts/lib/received-env.mjs +98 -17
  281. package/dist/skills/media-use/scripts/resolve.mjs +26 -12
  282. package/dist/{skills-AWPGNGNO.js → skills-KB7UH26E.js} +12 -11
  283. package/dist/{skillsUpdateCheck-ZAZIJIA5.js → skillsUpdateCheck-ZDA5FPJB.js} +3 -3
  284. package/dist/{snapshot-5H4FR6WF.js → snapshot-HRR6LIPD.js} +59 -58
  285. package/dist/{snapshotHeldVideos-AATHSYN4.js → snapshotHeldVideos-QGJBXBJM.js} +14 -13
  286. package/dist/{src-ZPDXVFIW.js → src-FCITTGFH.js} +12 -11
  287. package/dist/{src-ZNVC4RPI.js → src-QOVNNDZN.js} +18 -17
  288. package/dist/{start-B6XPI43A.js → start-I7H5I3AS.js} +33 -31
  289. package/dist/{state-G4YJMBU5.js → state-O6CCLWF6.js} +4 -4
  290. package/dist/{staticProjectServer-VFWEQZO4.js → staticProjectServer-XEZD7JZE.js} +29 -28
  291. package/dist/{status-5QNG3TNV.js → status-2GKACMVC.js} +23 -21
  292. package/dist/studio/assets/hyperframes-player-VGx6ow_e.js +573 -0
  293. package/dist/studio/assets/{index-tvLrzMBv.js → index-B8Xt_Oyw.js} +180 -180
  294. package/dist/studio/assets/{index-CAjz3b83.js → index-BH18TdX9.js} +1 -1
  295. package/dist/studio/assets/{pausedVideoDecoder-xC5IGkfB.js → pausedVideoDecoder-Bx3fGNkU.js} +1 -1
  296. package/dist/studio/index.html +1 -1
  297. package/dist/{studio-api-SL7AIQYK.js → studio-api-KQ7DR667.js} +18 -17
  298. package/dist/{studioServer-S5MQI2JC.js → studioServer-KAU2XZ4F.js} +80 -78
  299. package/dist/subCompositionWorker.js +10 -9
  300. package/dist/{sync-KGQNR7TY.js → sync-3OJZRVPG.js} +19 -18
  301. package/dist/{synthesize-EIZ3XR5O.js → synthesize-JECKYUGO.js} +3 -3
  302. package/dist/{telemetry-WJSJUVUT.js → telemetry-HIZZLE6W.js} +9 -8
  303. package/dist/{templates-5NF42ZOM.js → templates-35GCXKO2.js} +23 -21
  304. package/dist/{textOverFace-DAVKJPMO.js → textOverFace-Q4I3PREP.js} +3 -3
  305. package/dist/{timeline-GM7EILYN.js → timeline-U2V63I7B.js} +28 -27
  306. package/dist/{tokens-PR2VAUXH.js → tokens-24TKAZCA.js} +13 -10
  307. package/dist/{transcribe-E6EJYLUY.js → transcribe-M3JJZ27F.js} +17 -16
  308. package/dist/{transcribe-ZD3MEPS2.js → transcribe-YHGN4HEM.js} +40 -38
  309. package/dist/{tts-XE4BPI5G.js → tts-CDBXQSAQ.js} +8 -7
  310. package/dist/{update-QYZNK7US.js → update-4DIZ3YQQ.js} +17 -14
  311. package/dist/{updateCheck-AYR63UOT.js → updateCheck-F56HX6MZ.js} +2 -2
  312. package/dist/{upgrade-4EFXDQBF.js → upgrade-6WAFZ7WN.js} +5 -5
  313. package/dist/{urlDownloader-KAT2IPSU.js → urlDownloader-DNNB6UOI.js} +12 -11
  314. package/dist/{validate-GVX3ACWN.js → validate-N5KPU4GC.js} +35 -34
  315. package/dist/{video-N2WHXSIC.js → video-T6YYFBNI.js} +15 -14
  316. package/dist/{voices-46E3JGAU.js → voices-OI37IYYG.js} +33 -31
  317. package/dist/warmCheck.js +55 -54
  318. package/package.json +1 -1
  319. package/dist/chunk-SEUEBRRL.js +0 -5128
  320. package/dist/studio/assets/hyperframes-player-Dscc6yHD.js +0 -573
@@ -11,12 +11,12 @@ import {
11
11
  iterateFontFamilyDeclarations,
12
12
  normalizeSystemFontPrimaryFamilies,
13
13
  resolveFontFamilyDeclarationFamilies
14
- } from "./chunk-VCTPYHOD.js";
14
+ } from "./chunk-7QNCNGN6.js";
15
15
  import {
16
16
  Semaphore,
17
17
  prepareHeifImageInputs,
18
18
  withMediaProbeSlot
19
- } from "./chunk-AXZ2NMKP.js";
19
+ } from "./chunk-RHZE7BIX.js";
20
20
  import {
21
21
  EncoderInterruptedError,
22
22
  encoderFailureError,
@@ -30,10 +30,10 @@ import {
30
30
  refusesOutsideLink,
31
31
  resolveRenderPaths,
32
32
  toExternalAssetKey
33
- } from "./chunk-3WUKMGJN.js";
33
+ } from "./chunk-H6LFXHAV.js";
34
34
  import {
35
35
  linksOutside
36
- } from "./chunk-C6J6TZSW.js";
36
+ } from "./chunk-6ACARSAZ.js";
37
37
  import {
38
38
  createStudioPositionSeekReapplyScript,
39
39
  openRangeEnd,
@@ -211,7 +211,7 @@ import {
211
211
  withPublicOnlyProxy,
212
212
  writeCapturedFrame,
213
213
  writeUrlDownloadTelemetry
214
- } from "./chunk-ERYYOWWF.js";
214
+ } from "./chunk-ZY55U6ER.js";
215
215
  import {
216
216
  settleOnBrowserSafePort
217
217
  } from "./chunk-PJQVJSMG.js";
@@ -236,7 +236,7 @@ import {
236
236
  parsesAsScript,
237
237
  prepareFlattenedInnerRoot,
238
238
  stripSdrPngColourTags
239
- } from "./chunk-AOSTTTSS.js";
239
+ } from "./chunk-JGKI7FHX.js";
240
240
  import {
241
241
  RENDER_TEMP_DIR
242
242
  } from "./chunk-F6PI5O3H.js";
@@ -246,7 +246,7 @@ import {
246
246
  createStagingDir,
247
247
  removeScratch,
248
248
  renameWithRetry
249
- } from "./chunk-K6ARLNKJ.js";
249
+ } from "./chunk-NIEOUHVQ.js";
250
250
  import {
251
251
  DISTRIBUTED_FPS,
252
252
  HF_VFX_ATTR,
@@ -264,7 +264,7 @@ import {
264
264
  redactTelemetryString,
265
265
  resolveAuthoredTimingWindow,
266
266
  toFps
267
- } from "./chunk-Z66KCWZC.js";
267
+ } from "./chunk-XSARHJSW.js";
268
268
  import {
269
269
  CAPTURE_CANVAS_SELECTOR,
270
270
  COMPOSITION_SOURCE_URL,
@@ -301,17 +301,17 @@ import {
301
301
  sourceTimeAt,
302
302
  styleElementsFor,
303
303
  timeAtSourceTime
304
- } from "./chunk-SEUEBRRL.js";
304
+ } from "./chunk-RAHYMZNU.js";
305
305
  import {
306
306
  isSafePath,
307
307
  terminalText
308
- } from "./chunk-U2FL2MTE.js";
308
+ } from "./chunk-OGL5VQGT.js";
309
309
  import {
310
310
  chromeMajorCeiling
311
- } from "./chunk-YWUE4CRU.js";
311
+ } from "./chunk-LWX5PI73.js";
312
312
  import {
313
313
  resolveReferencedStart
314
- } from "./chunk-NDXUDTLF.js";
314
+ } from "./chunk-GXKCFOMR.js";
315
315
  import {
316
316
  isUnresolvedAssetPlaceholder,
317
317
  namesAnotherNetworkRoot,
@@ -320,7 +320,7 @@ import {
320
320
  readTextFile,
321
321
  resolveCompositionSrc,
322
322
  resolveProjectRelativeSrc
323
- } from "./chunk-S35RUNXJ.js";
323
+ } from "./chunk-UVW5ZDAP.js";
324
324
  import {
325
325
  LOW_MEMORY_TOTAL_MB_THRESHOLD,
326
326
  getCgroupMemoryLimitMb,
@@ -354,7 +354,7 @@ import {
354
354
  rewriteInlineStyleAssetUrls,
355
355
  styleBlockMatches,
356
356
  stylesheetLinkMatches
357
- } from "./chunk-IH2C53YV.js";
357
+ } from "./chunk-KZ5PV5TL.js";
358
358
  import {
359
359
  CANVAS_DIMENSIONS,
360
360
  VALID_CANVAS_RESOLUTIONS,
@@ -6999,6 +6999,16 @@ var fileTooLarge = (file, bytes) => new CompositionTooLargeError(
6999
6999
  `Composition file "${file}" is ${megabytes(bytes)}, over the ${megabytes(MAX_COMPOSITION_HTML_BYTES)} limit for one composition HTML file. Keep large data such as images, fonts and JSON in separate asset files and reference them by path instead of inlining them.`,
7000
7000
  { bytes, limitBytes: MAX_COMPOSITION_HTML_BYTES }
7001
7001
  );
7002
+ var limitText = `One render generates at most ${megabytes(MAX_EXPANDED_COMPOSITION_BYTES)}`;
7003
+ function generatedTooLarge(file, bytes) {
7004
+ if (file === "composition variables") {
7005
+ return `Composition variable styles add up to ${megabytes(bytes)}. ${limitText}. Shorten the variable values or declare them on fewer elements.`;
7006
+ }
7007
+ if (file === "variable media sources") {
7008
+ return `Variable-bound media sources add up to ${megabytes(bytes)}. ${limitText}. Use shorter URLs or bind fewer elements.`;
7009
+ }
7010
+ return `Scripts, styles and rebased asset paths generated for compositions, ending at "${file}", add up to ${megabytes(bytes)}. One render generates at most ${megabytes(MAX_EXPANDED_COMPOSITION_BYTES)} for its mounts. Merge small inline scripts and style rules, keep data-composition-id values short, or mount scenes fewer times.`;
7011
+ }
7002
7012
  var CompositionExpansionBudget = class {
7003
7013
  bytes = 0;
7004
7014
  mounts = 0;
@@ -7007,10 +7017,16 @@ var CompositionExpansionBudget = class {
7007
7017
  chargeGenerated(file, bytes) {
7008
7018
  this.generated += bytes;
7009
7019
  if (this.generated <= MAX_EXPANDED_COMPOSITION_BYTES) return;
7010
- throw new CompositionTooLargeError(
7011
- `Scripts and styles generated for sub-composition mounts, ending at "${file}", add up to ${megabytes(this.generated)}. One render generates at most ${megabytes(MAX_EXPANDED_COMPOSITION_BYTES)} for its mounts. Merge small inline scripts and style rules, keep data-composition-id values short, or mount scenes fewer times.`,
7012
- { bytes: this.generated, limitBytes: MAX_EXPANDED_COMPOSITION_BYTES, exceeded: "generated" }
7013
- );
7020
+ throw new CompositionTooLargeError(generatedTooLarge(file, this.generated), {
7021
+ bytes: this.generated,
7022
+ limitBytes: MAX_EXPANDED_COMPOSITION_BYTES,
7023
+ exceeded: "generated"
7024
+ });
7025
+ }
7026
+ chargeGeneratedIfItFits(bytes) {
7027
+ if (this.generated + bytes > MAX_EXPANDED_COMPOSITION_BYTES) return false;
7028
+ this.generated += bytes;
7029
+ return true;
7014
7030
  }
7015
7031
  charge(file, bytes) {
7016
7032
  this.bytes += bytes;
@@ -7941,7 +7957,7 @@ function coalesceHeadStylesAndBodyScripts(html) {
7941
7957
  }
7942
7958
  return document2.toString();
7943
7959
  }
7944
- function inlineSubCompositions2(html, subCompositions, projectDir, variableOverrides, assetRoot, outsideFiles) {
7960
+ function inlineSubCompositions2(html, subCompositions, projectDir, variableOverrides, assetRoot, outsideFiles, budget) {
7945
7961
  const { document: document2 } = parseHTML(html);
7946
7962
  const head = document2.querySelector("head");
7947
7963
  const body = document2.querySelector("body");
@@ -7950,11 +7966,11 @@ function inlineSubCompositions2(html, subCompositions, projectDir, variableOverr
7950
7966
  const emitted = emitRootCompositionVariableStyles(
7951
7967
  document2,
7952
7968
  {},
7953
- variableOverrides
7969
+ variableOverrides,
7970
+ { chargeBytes: (bytes) => budget.chargeGenerated("composition variables", bytes) }
7954
7971
  );
7955
7972
  return { html: emitted ? document2.toString() : html, variablesByComp: {} };
7956
7973
  }
7957
- const budget = new CompositionExpansionBudget();
7958
7974
  const readOnce = /* @__PURE__ */ new Map();
7959
7975
  const readMountHtml = (srcPath) => {
7960
7976
  const filePath = resolveCompositionFile(projectDir, srcPath, assetRoot);
@@ -7989,6 +8005,10 @@ function inlineSubCompositions2(html, subCompositions, projectDir, variableOverr
7989
8005
  hostIdentityMap: hostIdentityByElement,
7990
8006
  readVariableDefaults: readDeclaredDefaults,
7991
8007
  parseHostVariables: parseHostVariableValues,
8008
+ resolveFilePath: (srcPath) => {
8009
+ const file = resolveCompositionFile(projectDir, srcPath, assetRoot);
8010
+ return file && relative2(projectDir, file).split(sep2).join("/");
8011
+ },
7992
8012
  resolveHtml: (srcPath) => {
7993
8013
  const compHtml = resolveMountHtml(srcPath);
7994
8014
  if (compHtml) budget.charge(srcPath, Buffer.byteLength(compHtml));
@@ -8079,7 +8099,8 @@ function inlineSubCompositions2(html, subCompositions, projectDir, variableOverr
8079
8099
  emitRootCompositionVariableStyles(
8080
8100
  document2,
8081
8101
  result.variablesByComp,
8082
- variableOverrides
8102
+ variableOverrides,
8103
+ { chargeBytes: (bytes) => budget.chargeGenerated("composition variables", bytes) }
8083
8104
  );
8084
8105
  assignMediaRenderIds(document2);
8085
8106
  return { html: document2.toString(), variablesByComp: result.variablesByComp };
@@ -8504,10 +8525,6 @@ function localizeFontFaceUrls(html, downloadDir) {
8504
8525
  (h, url, relPath) => h.replaceAll(`url(${url})`, `url("${relPath}")`)
8505
8526
  );
8506
8527
  }
8507
- function urlOccurrenceRe(localPath) {
8508
- const escaped = localPath.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
8509
- return new RegExp(`url\\((["']?)${escaped}\\1\\)`, "g");
8510
- }
8511
8528
  var MAX_LOCAL_FONT_DATA_URI_BYTES = 5 * 1024 * 1024;
8512
8529
  async function readLocalFont(absPath) {
8513
8530
  const chunks = [];
@@ -8522,59 +8539,83 @@ async function readLocalFont(absPath) {
8522
8539
  }
8523
8540
  return { kind: "inline", buffer: Buffer.concat(chunks, totalBytes) };
8524
8541
  }
8525
- async function embedLocalFontFaces(html, projectDir, assetRoot, log = defaultLogger) {
8526
- const { fontToDataUri: toDataUri } = await import("./deterministicFonts-XCYIRDQZ.js");
8527
- let result = html;
8528
- const embeddedPaths = /* @__PURE__ */ new Set();
8542
+ async function localFontDataUri(localPath, projectDir, assetRoot, dataUriByAbsolutePath, log) {
8543
+ const absPath = localPath.startsWith("/") ? localPath : resolve5(projectDir, localPath);
8544
+ if (!isPathInside(absPath, projectDir) || escapesAssetRoot(absPath, assetRoot)) return void 0;
8545
+ if (refusesOutsideLink(projectDir, absPath, (line) => log.warn(`[Compiler] ${line}`))) {
8546
+ return void 0;
8547
+ }
8548
+ if (isPrivateCompositionFile(projectDir, absPath)) return void 0;
8549
+ if (dataUriByAbsolutePath.has(absPath)) return dataUriByAbsolutePath.get(absPath);
8550
+ const ext = absPath.match(/\.(woff2?|ttf|otf|ttc)$/i)?.[1]?.toLowerCase() ?? "ttf";
8551
+ try {
8552
+ const font = await readLocalFont(absPath);
8553
+ if (font.kind === "file-backed") {
8554
+ dataUriByAbsolutePath.set(absPath, void 0);
8555
+ defaultLogger.debug(
8556
+ `[Compiler] Kept large local font file-backed: ${localPath} (> ${(MAX_LOCAL_FONT_DATA_URI_BYTES / 1024 / 1024).toFixed(1)} MB)`
8557
+ );
8558
+ return void 0;
8559
+ }
8560
+ const { fontToDataUri } = await import("./deterministicFonts-645ILNLP.js");
8561
+ const dataUri = await fontToDataUri(font.buffer, ext, { compressToWoff2: false });
8562
+ dataUriByAbsolutePath.set(absPath, dataUri);
8563
+ defaultLogger.debug(
8564
+ `[Compiler] Embedded local font file: ${localPath} (${(font.buffer.length / 1024).toFixed(0)} KB \u2192 data URI)`
8565
+ );
8566
+ return dataUri;
8567
+ } catch (error) {
8568
+ defaultLogger.warn(
8569
+ `[Compiler] Could not embed local font ${localPath}: ${error instanceof Error ? error.message : String(error)}`
8570
+ );
8571
+ return void 0;
8572
+ }
8573
+ }
8574
+ var replaceInner = (whole, inner, tail, next) => whole.slice(0, whole.length - tail - inner.length) + next + whole.slice(whole.length - tail);
8575
+ async function embedLocalFontFaces(html, projectDir, assetRoot, budget, log = defaultLogger) {
8576
+ const dataUriByPath = /* @__PURE__ */ new Map();
8529
8577
  const dataUriByAbsolutePath = /* @__PURE__ */ new Map();
8530
- const fileBackedAbsolutePaths = /* @__PURE__ */ new Set();
8531
8578
  for (const { parts: style } of styleBlockMatches(html)) {
8532
8579
  for (const { parts: face } of fontFaceBlockMatches(style[1])) {
8533
- const block = face[1];
8534
- for (const { parts } of localFontFaceUrlMatches(block)) {
8580
+ for (const { parts } of localFontFaceUrlMatches(face[1])) {
8535
8581
  const localPath = parts[1];
8536
- if (!localPath || embeddedPaths.has(localPath)) continue;
8537
- const absPath = localPath.startsWith("/") ? localPath : resolve5(projectDir, localPath);
8538
- if (!isPathInside(absPath, projectDir) || escapesAssetRoot(absPath, assetRoot)) continue;
8539
- if (refusesOutsideLink(projectDir, absPath, (line) => log.warn(`[Compiler] ${line}`))) {
8540
- embeddedPaths.add(localPath);
8541
- continue;
8542
- }
8543
- if (isPrivateCompositionFile(projectDir, absPath)) continue;
8544
- const ext = absPath.match(/\.(woff2?|ttf|otf|ttc)$/i)?.[1]?.toLowerCase() ?? "ttf";
8545
- try {
8546
- if (fileBackedAbsolutePaths.has(absPath)) {
8547
- embeddedPaths.add(localPath);
8548
- continue;
8549
- }
8550
- let dataUri = dataUriByAbsolutePath.get(absPath);
8551
- if (!dataUri) {
8552
- const font = await readLocalFont(absPath);
8553
- if (font.kind === "file-backed") {
8554
- fileBackedAbsolutePaths.add(absPath);
8555
- defaultLogger.debug(
8556
- `[Compiler] Kept large local font file-backed: ${localPath} (> ${(MAX_LOCAL_FONT_DATA_URI_BYTES / 1024 / 1024).toFixed(1)} MB)`
8557
- );
8558
- embeddedPaths.add(localPath);
8559
- continue;
8560
- }
8561
- dataUri = await toDataUri(font.buffer, ext, { compressToWoff2: false });
8562
- dataUriByAbsolutePath.set(absPath, dataUri);
8563
- defaultLogger.debug(
8564
- `[Compiler] Embedded local font file: ${localPath} (${(font.buffer.length / 1024).toFixed(0)} KB \u2192 data URI)`
8565
- );
8566
- }
8567
- result = result.replace(urlOccurrenceRe(localPath), `url("${dataUri}")`);
8568
- embeddedPaths.add(localPath);
8569
- } catch (error) {
8570
- defaultLogger.warn(
8571
- `[Compiler] Could not embed local font ${localPath}: ${error instanceof Error ? error.message : String(error)}`
8572
- );
8573
- }
8582
+ if (!localPath || dataUriByPath.has(localPath)) continue;
8583
+ dataUriByPath.set(
8584
+ localPath,
8585
+ await localFontDataUri(localPath, projectDir, assetRoot, dataUriByAbsolutePath, log)
8586
+ );
8574
8587
  }
8575
8588
  }
8576
8589
  }
8577
- return result;
8590
+ if (![...dataUriByPath.values()].some(Boolean)) return html;
8591
+ let warned = false;
8592
+ const embed = (source, localPath) => {
8593
+ const dataUri = dataUriByPath.get(localPath);
8594
+ if (!dataUri) return source;
8595
+ const inlined = `url("${dataUri}")`;
8596
+ if (budget.chargeGeneratedIfItFits(inlined.length - source.length)) return inlined;
8597
+ if (!warned) {
8598
+ warned = true;
8599
+ log.warn(
8600
+ `[Compiler] Kept local font ${localPath} file-backed: the page reached its inline size limit`
8601
+ );
8602
+ }
8603
+ return source;
8604
+ };
8605
+ return replaceMatches(
8606
+ html,
8607
+ styleBlockMatches(html),
8608
+ (style, css) => replaceInner(
8609
+ style,
8610
+ css,
8611
+ "</style>".length,
8612
+ replaceMatches(
8613
+ css,
8614
+ fontFaceBlockMatches(css),
8615
+ (face, body) => replaceInner(face, body, 1, replaceMatches(body, localFontFaceUrlMatches(body), embed))
8616
+ )
8617
+ )
8618
+ );
8578
8619
  }
8579
8620
  function renderGsapDist() {
8580
8621
  try {
@@ -8600,32 +8641,42 @@ function rewriteUnresolvableGsapToCdn(html, projectDir, compSrcPath) {
8600
8641
  return `${prefix}${gsapDist}${file}${suffix}`;
8601
8642
  });
8602
8643
  }
8603
- function rebaseDirectEntryAssetPaths(html, projectDir, htmlPath) {
8644
+ function rebaseDirectEntryAssetPaths(html, projectDir, htmlPath, budget) {
8604
8645
  if (!isPathInside(htmlPath, projectDir)) return html;
8605
8646
  const entryPath = relative2(projectDir, htmlPath).replace(/\\/g, "/");
8606
8647
  if (!entryPath.includes("/")) return html;
8607
8648
  const { document: document2 } = parseHTML(html);
8608
8649
  const assetExists = projectAssetExists(projectDir);
8650
+ const charge = (bytes) => budget.chargeGenerated(entryPath, bytes);
8609
8651
  rewriteAssetPaths(
8610
8652
  document2.querySelectorAll("[src], [href], [srcset]"),
8611
8653
  entryPath,
8612
8654
  (el, attr) => el.getAttribute(attr),
8613
8655
  (el, attr, value) => el.setAttribute(attr, value),
8614
- assetExists
8656
+ assetExists,
8657
+ charge
8615
8658
  );
8616
8659
  rewriteInlineStyleAssetUrls(
8617
8660
  document2.querySelectorAll("[style]"),
8618
8661
  entryPath,
8619
8662
  (el) => el.getAttribute("style"),
8620
8663
  (el, value) => el.setAttribute("style", value),
8621
- assetExists
8664
+ assetExists,
8665
+ charge
8622
8666
  );
8623
8667
  for (const style of document2.querySelectorAll("style")) {
8624
- style.textContent = rewriteCssAssetUrls(style.textContent || "", entryPath, assetExists);
8668
+ style.textContent = rewriteCssAssetUrls(
8669
+ style.textContent || "",
8670
+ entryPath,
8671
+ assetExists,
8672
+ charge
8673
+ );
8625
8674
  }
8626
8675
  return document2.toString();
8627
8676
  }
8628
- function bindVariableMediaSources(html, variables) {
8677
+ var MAX_VARIABLE_MEDIA_SRC_BYTES = 8 * 1024;
8678
+ var MEDIA_SRC_CONTROL_CHARS = /[\u0000-\u001f\u007f]/;
8679
+ function bindVariableMediaSources(html, variables, budget, log) {
8629
8680
  if (!html.includes("data-var-src")) return html;
8630
8681
  const { document: document2 } = parseHTML(html);
8631
8682
  const declared = {};
@@ -8636,8 +8687,17 @@ function bindVariableMediaSources(html, variables) {
8636
8687
  let changed = false;
8637
8688
  for (const el of document2.querySelectorAll("video[data-var-src], audio[data-var-src]")) {
8638
8689
  if (el.closest("[data-variable-values]")) continue;
8639
- const src = boundMediaSrc(el, values);
8640
- if (src === null || el.getAttribute("src") === src) continue;
8690
+ const bound = boundMediaSrc(el, values);
8691
+ if (bound === null) continue;
8692
+ const src = bound.trim();
8693
+ if (src.length > MAX_VARIABLE_MEDIA_SRC_BYTES || MEDIA_SRC_CONTROL_CHARS.test(src)) {
8694
+ log?.warn("[Compiler] Refused a variable media source that cannot be a URL", {
8695
+ length: src.length
8696
+ });
8697
+ continue;
8698
+ }
8699
+ if (el.getAttribute("src") === src) continue;
8700
+ budget.chargeGenerated("variable media sources", src.length);
8641
8701
  el.setAttribute("src", src);
8642
8702
  changed = true;
8643
8703
  }
@@ -8657,10 +8717,18 @@ async function compileForRender(projectDir, htmlPath, downloadDir, options = {})
8657
8717
  throw new Error(`Entry file ${htmlPath} is not an .html file, so it is refused`);
8658
8718
  }
8659
8719
  assertCompositionFileSize(htmlPath, basename4(htmlPath));
8660
- const entryHtml = rebaseDirectEntryAssetPaths(readTextFile(htmlPath), projectDir, htmlPath);
8720
+ const budget = new CompositionExpansionBudget();
8721
+ const entryHtml = rebaseDirectEntryAssetPaths(
8722
+ readTextFile(htmlPath),
8723
+ projectDir,
8724
+ htmlPath,
8725
+ budget
8726
+ );
8661
8727
  const rawHtml = bindVariableMediaSources(
8662
8728
  normalizeCompositionSrcs(rewriteUnresolvableGsapToCdn(entryHtml, projectDir), projectDir),
8663
- options.variables ?? {}
8729
+ options.variables ?? {},
8730
+ budget,
8731
+ options.log
8664
8732
  );
8665
8733
  assertSubCompositionsUsable(rawHtml, projectDir, assetRoot, outsideFiles);
8666
8734
  const probes = /* @__PURE__ */ new Map();
@@ -8691,7 +8759,8 @@ async function compileForRender(projectDir, htmlPath, downloadDir, options = {})
8691
8759
  projectDir,
8692
8760
  options.variables ?? {},
8693
8761
  assetRoot,
8694
- outsideFiles
8762
+ outsideFiles,
8763
+ budget
8695
8764
  );
8696
8765
  const sanitizedHtml = stripPreloadNone(inlinedHtml);
8697
8766
  const renderModeHints = detectRenderModeHints(sanitizedHtml, options.pageMotionBlur);
@@ -8770,6 +8839,7 @@ async function compileForRender(projectDir, htmlPath, downloadDir, options = {})
8770
8839
  htmlWithPreparedGifs,
8771
8840
  projectDir,
8772
8841
  assetRoot,
8842
+ budget,
8773
8843
  options.log
8774
8844
  );
8775
8845
  const { html, externalAssets } = options.allowOutsideProjectAssets ? collectExternalAssets(
@@ -18786,7 +18856,7 @@ async function compilePlanComposition(projectDir, config, planDir, options) {
18786
18856
  if (probeResult.fileServer) closeFileServerSafely(probeResult.fileServer, "plan", log);
18787
18857
  if (probeResult.probeSession) {
18788
18858
  try {
18789
- const { closeCaptureSession: closeCaptureSession2 } = await import("./src-ZPDXVFIW.js");
18859
+ const { closeCaptureSession: closeCaptureSession2 } = await import("./src-FCITTGFH.js");
18790
18860
  await closeCaptureSession2(probeResult.probeSession);
18791
18861
  } catch (err) {
18792
18862
  log.warn("[plan] probe session close failed", {
@@ -22536,7 +22606,7 @@ function startServer(options = {}) {
22536
22606
  });
22537
22607
  async function shutdown(signal) {
22538
22608
  log.info(`Received ${signal}, shutting down`);
22539
- const { drainBrowserPool } = await import("./src-ZPDXVFIW.js");
22609
+ const { drainBrowserPool } = await import("./src-FCITTGFH.js");
22540
22610
  await drainBrowserPool().catch(() => {
22541
22611
  });
22542
22612
  const handle = await Promise.race([
@@ -8,18 +8,18 @@ import {
8
8
  DEFAULT_REGISTRY_URL,
9
9
  fetchItemFile,
10
10
  validRegistryItem
11
- } from "./chunk-WNU7WC46.js";
11
+ } from "./chunk-HMNDJPLQ.js";
12
12
  import {
13
13
  publishRegistryFile,
14
14
  registryTargetPath
15
- } from "./chunk-A6AH56HN.js";
15
+ } from "./chunk-HYQ6S7R6.js";
16
16
  import {
17
17
  validateVariables
18
- } from "./chunk-Z66KCWZC.js";
18
+ } from "./chunk-XSARHJSW.js";
19
19
  import {
20
20
  realProjectRoot,
21
21
  toolTrustedFileKind
22
- } from "./chunk-U2FL2MTE.js";
22
+ } from "./chunk-OGL5VQGT.js";
23
23
  import {
24
24
  isCompositionVariable
25
25
  } from "./chunk-4NDSGKPO.js";
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  resolveConfig,
9
9
  usesSoftwareWebGpu
10
- } from "./chunk-ERYYOWWF.js";
10
+ } from "./chunk-ZY55U6ER.js";
11
11
 
12
12
  // src/browser/gpuPolicy.ts
13
13
  function resolveLocalBrowserGpuMode(browserGpuArg, envMode = process.env.PRODUCER_BROWSER_GPU_MODE) {
@@ -17,7 +17,7 @@ function resolveLocalBrowserGpuMode(browserGpuArg, envMode = process.env.PRODUCE
17
17
  return "auto";
18
18
  }
19
19
  async function resolveCaptureBrowserGpuMode(requestedMode, chromePath, probeLifecycle) {
20
- const { resolveBrowserGpuMode } = await import("./src-ZPDXVFIW.js");
20
+ const { resolveBrowserGpuMode } = await import("./src-FCITTGFH.js");
21
21
  return resolveBrowserGpuMode(requestedMode, { chromePath, probeLifecycle });
22
22
  }
23
23
  function resolveLocalWebGpu(browserGpuMode, requiresWebGpu) {
@@ -19,11 +19,11 @@ import {
19
19
  splitElementInHtml,
20
20
  unwrapElementsFromHtml,
21
21
  wrapElementsInHtml
22
- } from "./chunk-MJWUDOBB.js";
22
+ } from "./chunk-R5C2CV7J.js";
23
23
  import {
24
24
  MEDIA_LINK_ATTR,
25
25
  relinkSplitHalves
26
- } from "./chunk-HYO4DIYT.js";
26
+ } from "./chunk-CPQTWPMM.js";
27
27
  import {
28
28
  DEFAULT_TARGET_LUFS,
29
29
  absoluteLoudnessPlan,
@@ -32,7 +32,7 @@ import {
32
32
  requestedProjectPath,
33
33
  requiredFfmpeg,
34
34
  resolveLocalAudioPath
35
- } from "./chunk-3U2W7LJU.js";
35
+ } from "./chunk-FAJRDYFU.js";
36
36
  import {
37
37
  PROXY_PARAMS_VERSION,
38
38
  PROXY_PENDING_RETRY_AFTER_SECONDS,
@@ -57,11 +57,11 @@ import {
57
57
  scanProjectMedia,
58
58
  shouldPrewarmProxy,
59
59
  waitForProxy
60
- } from "./chunk-OCGUBNKH.js";
60
+ } from "./chunk-X3JZA7KH.js";
61
61
  import {
62
62
  probeAudioTrack,
63
63
  probeMediaMetadata
64
- } from "./chunk-OYFDQ5QW.js";
64
+ } from "./chunk-AAZF6D3Z.js";
65
65
  import {
66
66
  HistoryBusyError,
67
67
  MAX_WINDOW_IDLE_MS,
@@ -76,7 +76,7 @@ import {
76
76
  resolveProjectSignature,
77
77
  serveWhileOpen,
78
78
  settledFileTag
79
- } from "./chunk-7R7OCEHI.js";
79
+ } from "./chunk-4WUTXBRK.js";
80
80
  import {
81
81
  findTimelineScript,
82
82
  parseGsapScriptAcorn
@@ -110,13 +110,13 @@ import {
110
110
  pinWithinProject,
111
111
  pinWritableWithinProject,
112
112
  projectRelativePath,
113
+ protectedEntryWithin,
113
114
  readProjectCacheFile,
114
115
  realFilePath,
115
116
  resolveWithinProject as resolveWithinProject2,
116
117
  resolveWritableWithinProject,
117
- toolTrustedFileWithin,
118
118
  walkDir
119
- } from "./chunk-NMYYW6QM.js";
119
+ } from "./chunk-AQNI4TCF.js";
120
120
  import {
121
121
  PREVIEW_FOR_ANOTHER_SITE_META,
122
122
  STUDIO_PREVIEW_CAPTURE_MODE,
@@ -135,7 +135,7 @@ import {
135
135
  ensureHfIds,
136
136
  stampHfIdsInPlace,
137
137
  stripSdrPngColourTags
138
- } from "./chunk-AOSTTTSS.js";
138
+ } from "./chunk-JGKI7FHX.js";
139
139
  import {
140
140
  RENDER_VARIABLES_FILE
141
141
  } from "./chunk-F6PI5O3H.js";
@@ -146,7 +146,7 @@ import {
146
146
  createStagingDir,
147
147
  replaceFileAtomically,
148
148
  retryWindowsHold
149
- } from "./chunk-K6ARLNKJ.js";
149
+ } from "./chunk-NIEOUHVQ.js";
150
150
  import {
151
151
  GSAP_BASE_URL_META,
152
152
  PREVIEW_PROXY_BOX_PARAM,
@@ -164,7 +164,7 @@ import {
164
164
  normalizeGsapLocalRoot,
165
165
  parseFps,
166
166
  parsePreviewProxyBox
167
- } from "./chunk-Z66KCWZC.js";
167
+ } from "./chunk-XSARHJSW.js";
168
168
  import {
169
169
  AFTER_FONTS_SCRIPT_TYPE,
170
170
  RUNTIME_BOOTSTRAP_ATTR,
@@ -179,7 +179,7 @@ import {
179
179
  resolveRateSpec,
180
180
  sourceTimeAt,
181
181
  stripEmbeddedRuntimeScripts
182
- } from "./chunk-SEUEBRRL.js";
182
+ } from "./chunk-RAHYMZNU.js";
183
183
  import {
184
184
  ProjectRootMissingError,
185
185
  folderGone,
@@ -188,11 +188,11 @@ import {
188
188
  mkdirWithinProject,
189
189
  realpath,
190
190
  resolveWithinProject
191
- } from "./chunk-U2FL2MTE.js";
191
+ } from "./chunk-OGL5VQGT.js";
192
192
  import {
193
193
  isWithinProjectRoot,
194
194
  readProjectFile
195
- } from "./chunk-S35RUNXJ.js";
195
+ } from "./chunk-UVW5ZDAP.js";
196
196
  import {
197
197
  decodeCssEscapes,
198
198
  decodeWellFormedEscapes,
@@ -203,7 +203,7 @@ import {
203
203
  rewriteCssAssetUrls,
204
204
  rewriteInlineStyleAssetUrls,
205
205
  sameInstant
206
- } from "./chunk-IH2C53YV.js";
206
+ } from "./chunk-KZ5PV5TL.js";
207
207
  import {
208
208
  HTML_ATTRIBUTE_ENTITIES,
209
209
  MagicString,
@@ -368,7 +368,7 @@ function sameOriginPost(headers) {
368
368
  return originMatches(headers.origin, host, proto);
369
369
  }
370
370
 
371
- // ../studio-server/dist/chunk-MFIHKG5J.js
371
+ // ../studio-server/dist/chunk-MWCV2KLJ.js
372
372
  import { createHash } from "crypto";
373
373
  import { closeSync, constants, fstatSync, openSync, readFileSync } from "fs";
374
374
  import { dirname, join } from "path";
@@ -654,7 +654,7 @@ function studioMotionRenderRuntime(manifestContent, activeCompositionPath) {
654
654
  applyManifest();
655
655
  }
656
656
 
657
- // ../studio-server/dist/chunk-2ZSUGK2Q.js
657
+ // ../studio-server/dist/chunk-KYJVUSNX.js
658
658
  import { resolve } from "path";
659
659
  function isAutoProxyEnabled(adapter) {
660
660
  return adapter.autoProxy !== false;
@@ -701,7 +701,7 @@ async function injectMediaCodecMap(html, adapter, projectDir, compSrcPath, probe
701
701
  return injectMediaCodecMapIntoHtml(html, projectDir, [{ html, compSrcPath }], probeCache, false);
702
702
  }
703
703
 
704
- // ../studio-server/dist/chunk-DRQHYTL6.js
704
+ // ../studio-server/dist/chunk-SFLQWTC6.js
705
705
  import { existsSync, readFileSync as readFileSync2 } from "fs";
706
706
  import { join as join2 } from "path";
707
707
  import { readlinkSync } from "fs";
@@ -6405,6 +6405,9 @@ async function parseMutationBody(c) {
6405
6405
  function ensureDir(projectDir, filePath) {
6406
6406
  mkdirWithinProject(projectDir, dirname3(filePath));
6407
6407
  }
6408
+ function forbiddenWriteTarget(c, projectDir, path) {
6409
+ return resolveWithinProject2(projectDir, path) ? c.json({ error: "forbidden", why: "protected_path" }, 403) : c.json({ error: "forbidden" }, 403);
6410
+ }
6408
6411
  function generateCopyPath(projectDir, originalPath) {
6409
6412
  const ext = originalPath.includes(".") ? "." + originalPath.split(".").pop() : "";
6410
6413
  const base = ext ? originalPath.slice(0, -ext.length) : originalPath;
@@ -7016,7 +7019,7 @@ async function prepareGsapMutationScript(c, res, firstMutation) {
7016
7019
  let block = extractGsapScriptBlock(html);
7017
7020
  if (!block && (firstMutation.type === "add" || firstMutation.type === "add-with-keyframes")) {
7018
7021
  const compId = html.match(/data-composition-id="([^"]+)"/)?.[1] ?? "main";
7019
- const { GSAP_CDN } = await import("./dist-5BBLH53Z.js");
7022
+ const { GSAP_CDN } = await import("./dist-TTOW2KVO.js");
7020
7023
  const bootstrap = [
7021
7024
  `<script src="${GSAP_CDN}"></script>`,
7022
7025
  "<script>",
@@ -8132,7 +8135,7 @@ function registerFileRoutes(api, adapter) {
8132
8135
  const res = await resolveProjectFile(c, adapter, { mustExist: true, write: true });
8133
8136
  if ("error" in res) return res.error;
8134
8137
  const stat2 = statSync3(res.absPath);
8135
- if (stat2.isDirectory() && toolTrustedFileWithin(res.project.dir, res.absPath)) {
8138
+ if (stat2.isDirectory() && protectedEntryWithin(res.project.dir, res.absPath)) {
8136
8139
  return c.json({ error: "forbidden", why: "protected_path" }, 403);
8137
8140
  }
8138
8141
  const backup = snapshotBeforeWrite(res.project.dir, res.absPath);
@@ -8681,14 +8684,12 @@ function registerFileRoutes(api, adapter) {
8681
8684
  return c.json({ error: "newPath required" }, 400);
8682
8685
  }
8683
8686
  const newAbs = resolveWritableWithinProject(res.project.dir, newPath);
8684
- if (!newAbs) {
8685
- return c.json({ error: "forbidden" }, 403);
8686
- }
8687
+ if (!newAbs) return forbiddenWriteTarget(c, res.project.dir, newPath);
8687
8688
  if (existsSync32(newAbs)) {
8688
8689
  return c.json({ error: "already exists" }, 409);
8689
8690
  }
8690
8691
  const isDirectory = statSync3(res.absPath, { throwIfNoEntry: false })?.isDirectory() ?? false;
8691
- if (isDirectory && toolTrustedFileWithin(res.project.dir, res.absPath)) {
8692
+ if (isDirectory && protectedEntryWithin(res.project.dir, res.absPath, newAbs)) {
8692
8693
  return c.json({ error: "forbidden", why: "protected_path" }, 403);
8693
8694
  }
8694
8695
  ensureDir(res.project.dir, newAbs);
@@ -8709,9 +8710,7 @@ function registerFileRoutes(api, adapter) {
8709
8710
  }
8710
8711
  const copyPath = generateCopyPath(project.dir, body.path);
8711
8712
  const destAbs = resolveWritableWithinProject(project.dir, copyPath);
8712
- if (!destAbs) {
8713
- return c.json({ error: "forbidden" }, 403);
8714
- }
8713
+ if (!destAbs) return forbiddenWriteTarget(c, project.dir, copyPath);
8715
8714
  ensureDir(project.dir, destAbs);
8716
8715
  try {
8717
8716
  createFileAtomically(destAbs, readFileSync4(srcAbs));