hyperframes 0.9.69 → 0.9.71

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 (312) hide show
  1. package/dist/{add-OQ4ZXNC7.js → add-XWHDS7YX.js} +16 -16
  2. package/dist/{agentPromptGenerator-GUD24KW2.js → agentPromptGenerator-BLMDKRCG.js} +10 -10
  3. package/dist/{animatedGifPrep-BKKYEUKH.js → animatedGifPrep-UE462FBV.js} +10 -10
  4. package/dist/api.js +38 -38
  5. package/dist/{asset-2P4LAYTV.js → asset-BLC34AN6.js} +6 -6
  6. package/dist/{assetCataloger-KI45LYJP.js → assetCataloger-MG6KCN75.js} +11 -11
  7. package/dist/{audio-MKXMEX7T.js → audio-YAFY5J25.js} +25 -25
  8. package/dist/{auth-LPCMSL7H.js → auth-4CRMXDLN.js} +4 -4
  9. package/dist/{autoUpdate-SI5HXYS2.js → autoUpdate-RMRYEKVS.js} +4 -4
  10. package/dist/{avatars-KQV6VM6N.js → avatars-JTVLM4MK.js} +18 -18
  11. package/dist/{backgroundChecks-AUVPQSZ3.js → backgroundChecks-SL33RDD3.js} +5 -5
  12. package/dist/backgroundChecksWorker.js +5 -5
  13. package/dist/{batchRender-7KFJQNBY.js → batchRender-CZ6LXSKM.js} +5 -5
  14. package/dist/{beats-JHEEJ2G6.js → beats-SSHPB25F.js} +14 -14
  15. package/dist/{benchmark-GLT62VBC.js → benchmark-2VOEXNAG.js} +16 -16
  16. package/dist/{billing-D63PXBEG.js → billing-MA7256GL.js} +18 -18
  17. package/dist/{browser-L4XVUSJX.js → browser-ZTPHXS3J.js} +11 -11
  18. package/dist/{bundleWithLocalizedFonts-XEGC45Y4.js → bundleWithLocalizedFonts-ZPBNLZ6L.js} +1 -1
  19. package/dist/{capture-3NE7JKCY.js → capture-FLEHXO4D.js} +20 -22
  20. package/dist/{capture-PFEPJ5CQ.js → capture-WLCFTBVY.js} +7 -7
  21. package/dist/{captureCompositionFrame-Q6YPUL24.js → captureCompositionFrame-Y27APMZK.js} +17 -17
  22. package/dist/{catalog-MUFHKZWR.js → catalog-MB363QIW.js} +17 -17
  23. package/dist/{catch-up-U6OBJCO7.js → catch-up-M5RL2PYQ.js} +11 -11
  24. package/dist/{check-RDN4RKVS.js → check-R6BJV65S.js} +47 -47
  25. package/dist/{checkAudio-SFPBOZBY.js → checkAudio-CTBAZEZ4.js} +15 -15
  26. package/dist/{checkBrowser-FAWJXPTX.js → checkBrowser-WNCJM7D4.js} +40 -40
  27. package/dist/{chunk-VPIA3GTO.js → chunk-2LTW5J45.js} +11 -12
  28. package/dist/{chunk-FYV3LZUN.js → chunk-2NPP73LA.js} +2 -2
  29. package/dist/{chunk-3HDWAGMI.js → chunk-2QH7LC2N.js} +2 -2
  30. package/dist/{chunk-F272XKKS.js → chunk-2WDUJDEH.js} +2 -2
  31. package/dist/{chunk-HJAB3JOG.js → chunk-3AVPJZGU.js} +1 -1
  32. package/dist/{chunk-OB2XFBWG.js → chunk-3MJHEGWD.js} +12 -9
  33. package/dist/{chunk-V7W64LZY.js → chunk-3NP5S3G6.js} +1 -1
  34. package/dist/{chunk-QBMXTRZ2.js → chunk-3OTSUGBE.js} +1 -1
  35. package/dist/{chunk-XQTNYI52.js → chunk-3OY4DOGB.js} +3 -3
  36. package/dist/{chunk-7QNCNGN6.js → chunk-47KES52H.js} +1 -1
  37. package/dist/{chunk-YOCGTMQB.js → chunk-4KM5FC2Y.js} +2 -2
  38. package/dist/{chunk-OPJBIXRI.js → chunk-4L6VD5EC.js} +1 -1
  39. package/dist/{chunk-SQBVJUBS.js → chunk-4VNK4SSU.js} +3 -3
  40. package/dist/{chunk-X2EBEAN2.js → chunk-5QBONJKT.js} +1 -1
  41. package/dist/{chunk-MTOPOZIM.js → chunk-5VHQS6YQ.js} +2 -2
  42. package/dist/{chunk-KKJRKVZ5.js → chunk-6ESQKLNR.js} +1 -1
  43. package/dist/{chunk-PYSHL3ZA.js → chunk-6OCWJJLC.js} +13 -9
  44. package/dist/{chunk-ARZI5CTG.js → chunk-6UIELAGX.js} +1 -1
  45. package/dist/{chunk-I6O4DZI7.js → chunk-6UUF7VEA.js} +1 -1
  46. package/dist/{chunk-HJXFRTK3.js → chunk-72S3VDZS.js} +1 -1
  47. package/dist/{chunk-WOPCPR72.js → chunk-77H7YCR4.js} +2 -2
  48. package/dist/{chunk-BBDE5NOY.js → chunk-77PZ7BBT.js} +1 -1
  49. package/dist/{chunk-3JXFI7JB.js → chunk-A6ZYZED3.js} +22 -22
  50. package/dist/{chunk-5NRI2GZ2.js → chunk-AJ6EPEUU.js} +3 -3
  51. package/dist/{chunk-PCHSXE5J.js → chunk-ARBHOMLB.js} +1 -1
  52. package/dist/{chunk-MKSJX4I6.js → chunk-BNCJBI7K.js} +2 -2
  53. package/dist/{chunk-O3HO75D5.js → chunk-C4262VTW.js} +1 -1
  54. package/dist/{chunk-OTXQ4VDJ.js → chunk-CNOH3G6W.js} +3 -3
  55. package/dist/{chunk-HUF42U37.js → chunk-CRTKWMS5.js} +12 -12
  56. package/dist/{chunk-OUXG24ZI.js → chunk-CSXAUBGU.js} +1 -1
  57. package/dist/{chunk-LAQLTWMD.js → chunk-CW3TCFCI.js} +12 -8
  58. package/dist/{chunk-4K5UJMKD.js → chunk-DBLPDI6N.js} +7 -7
  59. package/dist/{chunk-KCUSOXKM.js → chunk-DE3BPVY4.js} +2 -2
  60. package/dist/{chunk-T5RAZMWO.js → chunk-DE7TZC76.js} +10 -10
  61. package/dist/{chunk-IL4LPAZQ.js → chunk-DHPUX7Q2.js} +1 -1
  62. package/dist/{chunk-GG6GYXUV.js → chunk-DHSVK2NO.js} +4 -4
  63. package/dist/{chunk-UHEM6SYQ.js → chunk-DLBAENCZ.js} +28 -31
  64. package/dist/{chunk-DJWBK4UK.js → chunk-DMSWCKVS.js} +9 -9
  65. package/dist/{chunk-PGQEXWKK.js → chunk-DPKQTAJH.js} +3 -3
  66. package/dist/{chunk-EWXYRRN7.js → chunk-DVUB3NJI.js} +4 -4
  67. package/dist/{chunk-EECHZKSA.js → chunk-E7D7KG7O.js} +1 -20
  68. package/dist/{chunk-QEXNYXWZ.js → chunk-EHDUOOIH.js} +3 -3
  69. package/dist/{chunk-YZPBPF7E.js → chunk-ETEKL25D.js} +2 -2
  70. package/dist/{chunk-MTKXKULM.js → chunk-EXQTV3OZ.js} +1 -1
  71. package/dist/{chunk-I2B2TRZG.js → chunk-EXZQ7VUS.js} +1 -1
  72. package/dist/{chunk-5CC5NT52.js → chunk-FMA53TF7.js} +1 -1
  73. package/dist/{chunk-5E46EQ3U.js → chunk-FPVUZ4OL.js} +1 -1
  74. package/dist/{chunk-BBCXLNFM.js → chunk-GEKUZPSK.js} +4 -4
  75. package/dist/{chunk-JO3I4BXO.js → chunk-GN6CIYSK.js} +2 -2
  76. package/dist/{chunk-PGRXYVKK.js → chunk-GYK5TUEU.js} +3 -3
  77. package/dist/{chunk-62DXFOO5.js → chunk-HAMBGPXQ.js} +2 -2
  78. package/dist/{chunk-W74TM3NV.js → chunk-HFXOEUXM.js} +2 -2
  79. package/dist/{chunk-YOIK5SLW.js → chunk-HIG3JV5T.js} +10 -10
  80. package/dist/{chunk-K6GODNZT.js → chunk-HZGO2GNX.js} +1 -1
  81. package/dist/{chunk-NE5YEOIA.js → chunk-IEQCOWZU.js} +2 -2
  82. package/dist/{chunk-4OW5VENT.js → chunk-IPSLXUKG.js} +2 -2
  83. package/dist/{chunk-3TSD7EQ2.js → chunk-IVSDEUPE.js} +15 -15
  84. package/dist/{chunk-ME6EKVXB.js → chunk-IYVCMBYV.js} +5 -5
  85. package/dist/{chunk-RDNVSDFY.js → chunk-JOJ35UOG.js} +2 -2
  86. package/dist/{chunk-4YNVKPGH.js → chunk-JPQNMMYT.js} +2 -2
  87. package/dist/{chunk-Z67ELZGQ.js → chunk-KDQDCSTA.js} +18 -0
  88. package/dist/{chunk-LMUPRQ3G.js → chunk-KRRQGJIF.js} +1 -1
  89. package/dist/chunk-KTVURB6P.js +5148 -0
  90. package/dist/{chunk-HY67LTYS.js → chunk-KXL4WNPB.js} +1 -1
  91. package/dist/{chunk-TIH6APOB.js → chunk-LTRRYJSA.js} +3 -3
  92. package/dist/{chunk-EYW6PB36.js → chunk-M5MDKF6U.js} +3 -3
  93. package/dist/{chunk-GHXVDBBC.js → chunk-MEIQSBM3.js} +2 -2
  94. package/dist/{chunk-YEMCMFL7.js → chunk-MHVMNSCB.js} +2 -2
  95. package/dist/{chunk-42PB3OZT.js → chunk-MODACKQY.js} +2 -2
  96. package/dist/{chunk-JAO46FOY.js → chunk-MRXUJ3MV.js} +8 -8
  97. package/dist/{chunk-H2LAM5FR.js → chunk-N242PSDK.js} +2 -2
  98. package/dist/{chunk-QDMLR2K6.js → chunk-NBGYJ7B3.js} +4 -4
  99. package/dist/{chunk-3RN4ZGGL.js → chunk-ND53YU4M.js} +2 -2
  100. package/dist/{chunk-6EX3FAXP.js → chunk-NWGLQ7SR.js} +1 -1
  101. package/dist/{chunk-CKLS2RVS.js → chunk-NWOMYHWS.js} +2 -2
  102. package/dist/{chunk-SDOVSUQP.js → chunk-NWZXJ4EH.js} +1 -1
  103. package/dist/{chunk-FPLH6C55.js → chunk-OPDA3GMT.js} +2 -2
  104. package/dist/{chunk-OHGEF6QU.js → chunk-OVBCL5FU.js} +4 -4
  105. package/dist/{chunk-WMOQ57TW.js → chunk-P77PIIRV.js} +1 -1
  106. package/dist/{chunk-NEFSXXXQ.js → chunk-PFVEPQLT.js} +1 -1
  107. package/dist/{chunk-VBNZJYTW.js → chunk-PQLTN44Y.js} +1 -1
  108. package/dist/{chunk-5KWT5ELY.js → chunk-Q2ZB6CXS.js} +4 -4
  109. package/dist/{chunk-5ZJVIDUI.js → chunk-Q3XMQVDG.js} +4 -4
  110. package/dist/{chunk-4NDSGKPO.js → chunk-QURE6VDP.js} +16 -5
  111. package/dist/{chunk-GDPNIGCY.js → chunk-R6ARS4HA.js} +18 -12
  112. package/dist/{chunk-KQR4FJDI.js → chunk-R6LA7R2G.js} +5 -5
  113. package/dist/{chunk-KZ5PV5TL.js → chunk-RADFYYSJ.js} +19 -2
  114. package/dist/{chunk-OB3SAKXM.js → chunk-RBIU5EPK.js} +1 -1
  115. package/dist/{chunk-2IWNTFTH.js → chunk-RJHHZEFV.js} +2 -2
  116. package/dist/{chunk-OH6B5TJL.js → chunk-RKVDGDTB.js} +6 -6
  117. package/dist/{chunk-SMLMTEV6.js → chunk-RQ4N6A4W.js} +1 -1
  118. package/dist/{chunk-TCBQLCIH.js → chunk-RS34CIQG.js} +5 -5
  119. package/dist/{chunk-VPZDUCSM.js → chunk-S3JPCNRU.js} +1 -1
  120. package/dist/{chunk-ZVA57LRU.js → chunk-S44NPI2H.js} +1 -1
  121. package/dist/{chunk-6WPMMYRT.js → chunk-S6A2CTIE.js} +235 -105
  122. package/dist/{chunk-B7Z757RJ.js → chunk-SBD775KI.js} +1 -1
  123. package/dist/{chunk-A3G5SSWK.js → chunk-T2J2E27U.js} +1 -1
  124. package/dist/{chunk-DRB5UK2D.js → chunk-T62PZIBF.js} +4 -4
  125. package/dist/{chunk-FG3DCSJ4.js → chunk-T6FUWIRT.js} +5 -5
  126. package/dist/{chunk-24FLLQSF.js → chunk-TYCJTCIL.js} +1 -1
  127. package/dist/{chunk-CBJDDSLN.js → chunk-U4C2AK5M.js} +12 -12
  128. package/dist/{chunk-RWDZPTDG.js → chunk-UKFJUEAD.js} +1 -1
  129. package/dist/{chunk-TGXF6UDS.js → chunk-UMRF36PX.js} +369 -282
  130. package/dist/{chunk-733AQ5WF.js → chunk-URATFSHD.js} +1 -1
  131. package/dist/{chunk-MUZBTTQE.js → chunk-V4XODAJ3.js} +2 -2
  132. package/dist/{chunk-SRYGFL4X.js → chunk-VK2J45KH.js} +2 -2
  133. package/dist/{chunk-AEH6I3VA.js → chunk-VSUDCHZG.js} +2 -2
  134. package/dist/{chunk-N3P2V7RS.js → chunk-W5GEGL53.js} +2 -2
  135. package/dist/{chunk-Z7GGJNHT.js → chunk-WA3VZSMD.js} +10 -10
  136. package/dist/{chunk-7XA7AZGV.js → chunk-WQ57PQIL.js} +2 -2
  137. package/dist/{chunk-NKRVZC5S.js → chunk-WZQ6WGFC.js} +1 -1
  138. package/dist/{chunk-E5UU5MU2.js → chunk-X6XTWKCX.js} +101 -34
  139. package/dist/{chunk-J3FUIWZX.js → chunk-XJQKSMOK.js} +2 -2
  140. package/dist/{chunk-MAFH2AJE.js → chunk-XNKIHG7E.js} +13 -13
  141. package/dist/{chunk-7QV5IJB7.js → chunk-YCJJRFHP.js} +1 -1
  142. package/dist/{chunk-4QCDMVB3.js → chunk-YCT3TQ53.js} +1 -1
  143. package/dist/{chunk-CPQTWPMM.js → chunk-Z56VK5EM.js} +1 -1
  144. package/dist/{chunk-BFR4Z6XZ.js → chunk-ZFGXKQS2.js} +2 -2
  145. package/dist/{chunk-64HSIFOR.js → chunk-ZH3Z4CMQ.js} +3 -3
  146. package/dist/{clean-PBUDBKN3.js → clean-4QI63VWI.js} +26 -26
  147. package/dist/cli.js +70 -70
  148. package/dist/{cloud-DMWF7YD7.js → cloud-2D2FPOAS.js} +8 -8
  149. package/dist/{cloud-WS73EESF.js → cloud-4AYLCFXV.js} +4 -4
  150. package/dist/{cloudrun-QMDS5WTP.js → cloudrun-OW4PMMBU.js} +10 -10
  151. package/dist/{compare-NHKYHUFA.js → compare-X7574P5M.js} +38 -38
  152. package/dist/{compiler-VP7WQKBE.js → compiler-FBCFBEVR.js} +8 -6
  153. package/dist/{component-5BFZ6K3S.js → component-IAATW22P.js} +7 -7
  154. package/dist/{compositions-66KLKTAT.js → compositions-3LUIEPYT.js} +18 -18
  155. package/dist/{curve-HL4GYKLW.js → curve-7H65IJGX.js} +15 -15
  156. package/dist/{cuts-A3DIDUE5.js → cuts-YMQPCCMK.js} +16 -16
  157. package/dist/{delete-2FH5U3BS.js → delete-LTH43TQ2.js} +12 -12
  158. package/dist/{deploy-T2I6TX6S.js → deploy-X4NGXNMK.js} +6 -6
  159. package/dist/{describeProject-CGO3JNDQ.js → describeProject-2MZQPUIN.js} +12 -12
  160. package/dist/{destroy-XILHHKHS.js → destroy-F27X4BSW.js} +6 -6
  161. package/dist/{deterministicFonts-645ILNLP.js → deterministicFonts-LAVFR7ST.js} +2 -2
  162. package/dist/{diff-H7YAKNOY.js → diff-3XOE6HG3.js} +37 -37
  163. package/dist/{dist-XBACRUL3.js → dist-KK4LXXZ2.js} +4 -4
  164. package/dist/{dist-D2LKDDWO.js → dist-LU5D4LW7.js} +4 -4
  165. package/dist/{dist-653H5YTV.js → dist-YVWNTGL3.js} +13 -13
  166. package/dist/{doctor-MIR7OXRP.js → doctor-QPOIJ2NR.js} +19 -19
  167. package/dist/{dotEnv-ZPSOMSOP.js → dotEnv-YOQMWFNF.js} +5 -7
  168. package/dist/{energy-H5SUZGZT.js → energy-VJ27SJEY.js} +16 -16
  169. package/dist/{events-T3ALKAW6.js → events-2JLEGPPH.js} +10 -10
  170. package/dist/{events-Z4LW2Q7K.js → events-CZND4KW2.js} +5 -5
  171. package/dist/{events-LXKVJNED.js → events-V7P42MG3.js} +18 -18
  172. package/dist/{execute-EY26E6OZ.js → execute-2JP3CJMK.js} +30 -30
  173. package/dist/{extract-5OMVLJS6.js → extract-46N3SUQY.js} +16 -16
  174. package/dist/{face-C3EYNUI7.js → face-7V6G7KYX.js} +16 -16
  175. package/dist/{face-3CA2ELZF.js → face-YXPQ5D5V.js} +12 -12
  176. package/dist/{feedback-JVZM3H3Y.js → feedback-77SRGPAG.js} +17 -17
  177. package/dist/{ffmpeg-SHN36SBB.js → ffmpeg-QAULWC67.js} +10 -10
  178. package/dist/{figma-GFBJK253.js → figma-OD5ESSI4.js} +3 -3
  179. package/dist/fontLocalizeCli.js +15 -15
  180. package/dist/{frames-VUKOJHMC.js → frames-MS6XRSHU.js} +17 -17
  181. package/dist/{generate-LBZ7YBAJ.js → generate-ANGMXYC3.js} +29 -29
  182. package/dist/{get-XG6EMYSN.js → get-S6WXKTDS.js} +12 -12
  183. package/dist/{gpuPolicy-EPYGPUWY.js → gpuPolicy-VQFOQQYQ.js} +10 -10
  184. package/dist/{grade-compare-QEAK2WAN.js → grade-compare-L67KOIK7.js} +37 -37
  185. package/dist/{hands-D5FFNG7P.js → hands-35AMXCAK.js} +18 -18
  186. package/dist/hangReport.js +2 -2
  187. package/dist/{heifImagePrep-EPHLAUQS.js → heifImagePrep-DCWFFQRJ.js} +11 -11
  188. package/dist/{help-RGE2WSYV.js → help-GT2BYSUO.js} +1 -1
  189. package/dist/{history-6AR7FJP6.js → history-TAZ3JKGK.js} +14 -14
  190. package/dist/hyperframe.manifest.json +1 -1
  191. package/dist/hyperframe.runtime.iife.js +72 -72
  192. package/dist/hyperframes-player.global.js +3 -3
  193. package/dist/{info-ID4PL6UT.js → info-EDVUZ6C5.js} +18 -18
  194. package/dist/{init-SHB3DP6L.js → init-BSVJKLRB.js} +32 -32
  195. package/dist/{ink-I7LJRWCL.js → ink-LIEJHJD6.js} +16 -16
  196. package/dist/{inspect-5WQ44QNB.js → inspect-YHEUR53N.js} +41 -41
  197. package/dist/inspection.js +1 -2088
  198. package/dist/{installer-X4QZF2DI.js → installer-Y7MOWIYS.js} +6 -6
  199. package/dist/{keyframes-4E3RRUEE.js → keyframes-Q2VCJDAF.js} +20 -18
  200. package/dist/{lambda-2TQJLXU6.js → lambda-MEFG5LJQ.js} +17 -17
  201. package/dist/{launch-E3YGINZ4.js → launch-FY2JFGOT.js} +11 -11
  202. package/dist/{layout-2HS6DI7K.js → layout-6W5DINBY.js} +41 -41
  203. package/dist/{lint-KM2IBX4H.js → lint-KYGSUGVZ.js} +15 -15
  204. package/dist/{lintProject-FPQL3VUS.js → lintProject-FBFR7O2G.js} +4 -4
  205. package/dist/{list-TK67T6NQ.js → list-XE5RHEEY.js} +12 -12
  206. package/dist/{localPage-FKCJ56LM.js → localPage-Z7LGTYR2.js} +10 -10
  207. package/dist/{login-KNXZW6TL.js → login-Y6BCS3JB.js} +10 -10
  208. package/dist/{logout-RTMUK5GM.js → logout-ISUH3ZWQ.js} +6 -6
  209. package/dist/{look-3MW776RP.js → look-BWLF7IML.js} +16 -16
  210. package/dist/{manager-TOFBFPBV.js → manager-EIIBQKQX.js} +11 -11
  211. package/dist/{manager-AA3ZNHAP.js → manager-TOS3JZ3D.js} +4 -4
  212. package/dist/{measure-FYVTCZOB.js → measure-JXWBOYEX.js} +12 -12
  213. package/dist/{media-TZ62KQW4.js → media-EGNEEACI.js} +11 -11
  214. package/dist/{media-treatment-E63ULHVY.js → media-treatment-XEGZQEFP.js} +20 -20
  215. package/dist/{media-use-FMUH7ZUS.js → media-use-EFQ2BPQM.js} +11 -11
  216. package/dist/{models-TN7Q6LHX.js → models-M5SCRKPF.js} +15 -15
  217. package/dist/{motionShot-BQDN72EP.js → motionShot-UQ6NTHJP.js} +21 -21
  218. package/dist/{normalize-audio-UCFVXTIJ.js → normalize-audio-5JCB2HCI.js} +14 -14
  219. package/dist/{oauth-NRCCRSM7.js → oauth-DVFQMBWX.js} +4 -4
  220. package/dist/{open-V4ZVSII2.js → open-R4MALQKL.js} +17 -17
  221. package/dist/{parakeetRunner-2CAJDREF.js → parakeetRunner-D4IKJLIT.js} +17 -17
  222. package/dist/{pipeline-FPO2KBRR.js → pipeline-QZIJWBVD.js} +13 -13
  223. package/dist/{plan-UVCFCV2Y.js → plan-EFAHJHAI.js} +22 -22
  224. package/dist/{play-Q5K56OLI.js → play-L5DV5IQM.js} +26 -26
  225. package/dist/{preflight-LWGJARUS.js → preflight-N47VXI3H.js} +13 -13
  226. package/dist/{present-YYOXFE4M.js → present-CVT6CHJS.js} +22 -22
  227. package/dist/{preview-HZNQXLLA.js → preview-ZIEDS5EN.js} +23 -23
  228. package/dist/{privateProjectFile-HR24FBS3.js → privateProjectFile-TURAMXG6.js} +4 -4
  229. package/dist/{probe-Q3CAECJE.js → probe-RNDZW5JD.js} +16 -16
  230. package/dist/{producer-NUMTF4NV.js → producer-CH55FS26.js} +1 -1
  231. package/dist/{projectConfig-MTV36AK5.js → projectConfig-E3FY2DBH.js} +8 -8
  232. package/dist/{publication-RYPB4ECT.js → publication-DO2SCIXS.js} +4 -4
  233. package/dist/{publish-6LEWK7PW.js → publish-MZDYJQPP.js} +21 -21
  234. package/dist/{receivedRecordFollow-IOWRQGUZ.js → receivedRecordFollow-QCZFP4HL.js} +7 -7
  235. package/dist/{refresh-26TY6T3T.js → refresh-UUUL77GJ.js} +6 -6
  236. package/dist/{remove-background-WTNU2B6P.js → remove-background-E73KHYRC.js} +14 -14
  237. package/dist/{render-AKSYGATG.js → render-HEPV3YU3.js} +34 -34
  238. package/dist/{render-2D2UAKFF.js → render-HYE4VCCN.js} +46 -46
  239. package/dist/{render-2CMNV3HD.js → render-U6PZWGUV.js} +7 -7
  240. package/dist/{render-batch-PJJ2IAXB.js → render-batch-JEUJ6EZD.js} +7 -7
  241. package/dist/renderSetupWorker.js +8 -8
  242. package/dist/{resolver-EOLWQUXN.js → resolver-KGEFMJ3G.js} +6 -6
  243. package/dist/{reverse-JYB76V4W.js → reverse-NKHFJU5N.js} +1 -1
  244. package/dist/{run-GROTBG7F.js → run-NU27ZVP2.js} +11 -11
  245. package/dist/{sam-PHMZPQBM.js → sam-SIUSVAOL.js} +4 -4
  246. package/dist/{screenshotCapture-MBE35AZB.js → screenshotCapture-TQND5WAK.js} +12 -12
  247. package/dist/{service-KPPBDSXJ.js → service-TQ6BSTIQ.js} +17 -17
  248. package/dist/{share-4XINQNHQ.js → share-LGS3YIO6.js} +20 -20
  249. package/dist/{sherpa-2AN24GHU.js → sherpa-XE2PVYNT.js} +16 -16
  250. package/dist/sherpaWorker.js +3 -3
  251. package/dist/skills/hyperframes/references/plugin-installation.md +1 -1
  252. package/dist/skills/hyperframes/scripts/plugin-cli.mjs +1 -1
  253. package/dist/skills/media-use/audio/scripts/audio.mjs +12 -7
  254. package/dist/skills/media-use/audio/scripts/heygen-tts.mjs +7 -4
  255. package/dist/skills/media-use/audio/scripts/lib/heygen.mjs +7 -16
  256. package/dist/skills/media-use/audio/scripts/wait-bgm.mjs +13 -7
  257. package/dist/skills/media-use/scripts/audio-duck.mjs +5 -2
  258. package/dist/skills/media-use/scripts/dither.mjs +4 -3
  259. package/dist/skills/media-use/scripts/lib/codex-provider.mjs +4 -1
  260. package/dist/skills/media-use/scripts/lib/heygen-cli.mjs +2 -1
  261. package/dist/skills/media-use/scripts/lib/heygen-search.mjs +4 -1
  262. package/dist/skills/media-use/scripts/lib/heygen-video-provider.mjs +2 -1
  263. package/dist/skills/media-use/scripts/lib/ltx-video-provider.mjs +4 -1
  264. package/dist/skills/media-use/scripts/lib/mflux-provider.mjs +5 -2
  265. package/dist/skills/media-use/scripts/lib/recipe-store.mjs +27 -4
  266. package/dist/skills/media-use/scripts/lib/sfx-provider.mjs +5 -2
  267. package/dist/skills/media-use/scripts/lib/terminal-text.d.mts +1 -0
  268. package/dist/skills/media-use/scripts/lib/terminal-text.mjs +9 -0
  269. package/dist/skills/media-use/scripts/lib/tts-local-provider.mjs +2 -1
  270. package/dist/skills/media-use/scripts/prefs.mjs +6 -3
  271. package/dist/skills/media-use/scripts/recipe.mjs +19 -9
  272. package/dist/skills/media-use/scripts/transcribe.mjs +9 -3
  273. package/dist/skills/media-use/scripts/transcript-cut.mjs +8 -5
  274. package/dist/{skills-EMPTMUD4.js → skills-PXOV33AC.js} +15 -15
  275. package/dist/{skillsUpdateCheck-2EBTDXQK.js → skillsUpdateCheck-2FBSAJ22.js} +5 -5
  276. package/dist/{snapshot-OGWDPVEW.js → snapshot-JHI2FKUO.js} +46 -46
  277. package/dist/{snapshotHeldVideos-L5G4BJMS.js → snapshotHeldVideos-BUY7XBI2.js} +11 -11
  278. package/dist/{src-UG2WAJ4N.js → src-T6K3VPXH.js} +16 -12
  279. package/dist/{src-RG4SCSGS.js → src-XJOJW5RZ.js} +13 -13
  280. package/dist/{start-6O2YSEDG.js → start-CE556AMS.js} +27 -27
  281. package/dist/{staticProjectServer-V63BNPSM.js → staticProjectServer-EAXLMYDM.js} +22 -22
  282. package/dist/{status-2WOIELO6.js → status-KNH7MD5E.js} +20 -20
  283. package/dist/studio/assets/{hyperframes-player-nG4__A3B.js → hyperframes-player-DqReb4X0.js} +1 -1
  284. package/dist/studio/assets/{index-kDyUffRn.js → index-CEWlhXBE.js} +1 -1
  285. package/dist/studio/assets/{index-C5iAFIqv.js → index-CcVJGJWt.js} +135 -135
  286. package/dist/studio/assets/{pausedVideoDecoder-IQoJJyyF.js → pausedVideoDecoder-BIHwpgUB.js} +1 -1
  287. package/dist/studio/index.html +1 -1
  288. package/dist/{studio-api-4GYCLMID.js → studio-api-F2RUYN3D.js} +13 -13
  289. package/dist/{studioServer-QX63XIEQ.js → studioServer-H66TRJEE.js} +66 -66
  290. package/dist/subCompositionWorker.js +21 -24
  291. package/dist/{sync-Z7IBEP3C.js → sync-IICYK6ZZ.js} +16 -16
  292. package/dist/{synthesize-W7KYX6CI.js → synthesize-KWGLMBF6.js} +2 -2
  293. package/dist/{system-V6IZXVU4.js → system-XT77HD36.js} +3 -3
  294. package/dist/{telemetry-SLK6NDNI.js → telemetry-7RHY5NXL.js} +10 -10
  295. package/dist/{templates-AUPWONXJ.js → templates-KNTJ7UHN.js} +18 -18
  296. package/dist/{textOverFace-GWO5YXHJ.js → textOverFace-HCQ2ARZ6.js} +3 -3
  297. package/dist/{timeline-7RPZOK45.js → timeline-IJMTJ2Z4.js} +24 -24
  298. package/dist/{tokens-JMQW7UGW.js → tokens-53F2OGSX.js} +6 -6
  299. package/dist/{transcribe-TKI4KIJK.js → transcribe-CGABVCYD.js} +32 -32
  300. package/dist/{transcribe-5DBUPMYG.js → transcribe-HQLUK6QL.js} +14 -14
  301. package/dist/{tts-ZXYMSDHK.js → tts-MRNDK2OS.js} +5 -5
  302. package/dist/{update-YP3YCDUJ.js → update-DFATNVNM.js} +16 -16
  303. package/dist/{updateCheck-INFKS2YR.js → updateCheck-ZAMNFB7U.js} +4 -4
  304. package/dist/{upgrade-HDDWKPJM.js → upgrade-ZBN3FUYF.js} +5 -5
  305. package/dist/{urlDownloader-VP7QI3OV.js → urlDownloader-27M3WTMJ.js} +9 -9
  306. package/dist/{validate-DPETQTM3.js → validate-XS6VQQWO.js} +31 -31
  307. package/dist/{video-H2JJ32WV.js → video-42GENFKJ.js} +11 -11
  308. package/dist/{voices-J6PWVAVA.js → voices-GFVEEVSX.js} +27 -27
  309. package/dist/warmCheck.js +47 -47
  310. package/dist/warmCheckClient.js +2 -2
  311. package/package.json +1 -1
  312. package/dist/chunk-VDZP4BZ5.js +0 -5146
@@ -61,7 +61,7 @@ import {
61
61
  warnUnknownEnumValues,
62
62
  wrapInlineScriptWithErrorBoundary,
63
63
  wrapScopedCompositionScript
64
- } from "./chunk-VDZP4BZ5.js";
64
+ } from "./chunk-KTVURB6P.js";
65
65
  import {
66
66
  fnv1a32
67
67
  } from "./chunk-PWRUMN7B.js";
@@ -73,7 +73,7 @@ import {
73
73
  import {
74
74
  linkedSources,
75
75
  lintHyperframeHtml
76
- } from "./chunk-GDPNIGCY.js";
76
+ } from "./chunk-R6ARS4HA.js";
77
77
  import {
78
78
  readTextFile
79
79
  } from "./chunk-UVW5ZDAP.js";
@@ -86,6 +86,7 @@ import {
86
86
  decodeWellFormedEscapes,
87
87
  decodedUrlPath,
88
88
  encodeUrlPath,
89
+ isHtmlTemplate,
89
90
  isNonRelativeUrl,
90
91
  rawCssUrlMatches,
91
92
  replaceMatches,
@@ -96,11 +97,12 @@ import {
96
97
  rewriteInlineStyleAssetUrls,
97
98
  rewriteSrcsetUrls,
98
99
  splitUrlSuffix,
100
+ templateContent,
99
101
  urlHashRefMatches
100
- } from "./chunk-KZ5PV5TL.js";
102
+ } from "./chunk-RADFYYSJ.js";
101
103
  import {
102
104
  isSafeMediaUrl
103
- } from "./chunk-4NDSGKPO.js";
105
+ } from "./chunk-QURE6VDP.js";
104
106
  import {
105
107
  parseHTML
106
108
  } from "./chunk-GWTIFRF5.js";
@@ -466,61 +468,134 @@ async function validateHyperframeHtmlContract(html, project) {
466
468
 
467
469
  // ../core/dist/compiler/svgSelectorAliases.js
468
470
  var SVG_REFERENCE_ALIASES_ATTR = "data-hf-svg-reference-aliases";
469
- function rewriteSvgSelectors(selector, ids, references, namespaces) {
470
- const attributeOperators = {
471
- "=": (before, value) => before === value,
472
- "~=": (before, value) => before.split(/[ \t\r\n\f]+/).includes(value),
473
- "|=": (before, value) => before === value || before.startsWith(value + "-"),
474
- "^=": (before, value) => before.startsWith(value),
475
- "$=": (before, value) => before.endsWith(value),
476
- "*=": (before, value) => before.includes(value)
471
+ var lower = (text) => text.replace(/[A-Z]/g, (char) => char.toLowerCase());
472
+ var aliasIndexes = /* @__PURE__ */ new WeakMap();
473
+ function aliasIndex(references) {
474
+ let index = aliasIndexes.get(references);
475
+ if (index)
476
+ return index;
477
+ index = {
478
+ everyRecordedId: /* @__PURE__ */ new Set(),
479
+ renamedIdAlternatives: /* @__PURE__ */ new Map(),
480
+ byName: /* @__PURE__ */ new Map(),
481
+ byLocalName: /* @__PURE__ */ new Map()
477
482
  };
478
- const matchesValue = (before, value, operator) => {
479
- if (!value && operator !== "=" && operator !== "|=")
480
- return false;
481
- return attributeOperators[operator](before, value);
483
+ const ids = /* @__PURE__ */ new Map();
484
+ const add = (map, name, alias) => {
485
+ let entry = map.get(lower(name));
486
+ if (!entry)
487
+ map.set(lower(name), entry = { all: [], byBefore: /* @__PURE__ */ new Map(), byLowercaseBefore: /* @__PURE__ */ new Map() });
488
+ entry.all.push(alias);
489
+ for (const [values, key] of [
490
+ [entry.byBefore, alias.before],
491
+ [entry.byLowercaseBefore, lower(alias.before)]
492
+ ]) {
493
+ const same = values.get(key);
494
+ if (same)
495
+ same.push(alias);
496
+ else
497
+ values.set(key, [alias]);
498
+ }
482
499
  };
483
- const lower = (text) => text.replace(/[A-Z]/g, (char) => char.toLowerCase());
500
+ const seen = /* @__PURE__ */ new Set();
501
+ for (const alias of references) {
502
+ if (alias.name === "id")
503
+ index.everyRecordedId.add(alias.before);
504
+ if (alias.before === alias.after)
505
+ continue;
506
+ const key = JSON.stringify([
507
+ alias.name,
508
+ alias.localName,
509
+ alias.namespaceURI,
510
+ alias.before,
511
+ alias.after
512
+ ]);
513
+ if (seen.has(key))
514
+ continue;
515
+ seen.add(key);
516
+ add(index.byName, alias.name, alias);
517
+ add(index.byLocalName, alias.localName, alias);
518
+ if (alias.name !== "id")
519
+ continue;
520
+ let targets = ids.get(alias.before);
521
+ if (!targets)
522
+ ids.set(alias.before, targets = /* @__PURE__ */ new Set([`#${escapeCssIdentifier(alias.before)}`]));
523
+ targets.add(`#${escapeCssIdentifier(alias.after)}`);
524
+ }
525
+ for (const [id, targets] of ids)
526
+ index.renamedIdAlternatives.set(id, `:is(${[...targets].join(", ")})`);
527
+ aliasIndexes.set(references, index);
528
+ return index;
529
+ }
530
+ function recordedSvgIds(references) {
531
+ return aliasIndex(references).everyRecordedId;
532
+ }
533
+ var attributeOperators = {
534
+ "=": (before, value) => before === value,
535
+ "~=": (before, value) => before.split(/[ \t\r\n\f]+/).includes(value),
536
+ "|=": (before, value) => before === value || before.startsWith(value + "-"),
537
+ "^=": (before, value) => before.startsWith(value),
538
+ "$=": (before, value) => before.endsWith(value),
539
+ "*=": (before, value) => before.includes(value)
540
+ };
541
+ function matchesValue(before, { operator, value, flag }) {
542
+ if (!value && operator !== "=" && operator !== "|=")
543
+ return false;
544
+ const fold = flag?.toLowerCase() === "i" ? lower : (text) => text;
545
+ return attributeOperators[operator](fold(before), fold(value));
546
+ }
547
+ function aliasesFor(index, parsed, namespaces) {
548
+ const { name, namespace, operator, value, flag } = parsed;
549
+ const forName = (namespace.kind === "none" ? index.byName : index.byLocalName).get(lower(name));
550
+ if (!forName)
551
+ return [];
552
+ const sameValue = flag?.toLowerCase() === "i" ? forName.byLowercaseBefore.get(lower(value)) : forName.byBefore.get(value);
553
+ const uri = namespace.kind === "named" ? namespaces.get(namespace.prefix) : null;
554
+ return ((operator === "=" ? sameValue : forName.all) ?? []).filter((alias) => (namespace.kind === "any" || alias.namespaceURI === uri) && matchesValue(alias.before, parsed));
555
+ }
556
+ function rewriteSvgSelectors(selector, ids, references, namespaces, charge) {
557
+ const index = aliasIndex(references);
484
558
  const rewriteAttribute = (predicate) => {
485
559
  const parsed = parseAttributeSelector(predicate);
486
- if (!parsed)
487
- return predicate;
488
- const { name, rawName, namespace, operator, value, flag } = parsed;
489
- if (namespace.kind === "named" !== (namespaces !== void 0))
560
+ if (!parsed || parsed.namespace.kind === "named" !== (namespaces !== void 0)) {
490
561
  return predicate;
491
- const fold = flag?.toLowerCase() === "i" ? lower : (text) => text;
492
- const attributeName = lower(name);
493
- const candidates = references.filter((reference) => {
494
- const actualName = namespace.kind === "none" ? reference.name : reference.localName;
495
- const uri = namespace.kind === "named" ? namespaces.get(namespace.prefix) : null;
496
- return (namespace.kind === "any" || reference.namespaceURI === uri) && lower(actualName) === attributeName;
497
- });
562
+ }
563
+ const { rawName, flag } = parsed;
498
564
  const alternatives = /* @__PURE__ */ new Set([predicate]);
499
- for (const reference of candidates) {
500
- if (!matchesValue(fold(reference.before), fold(value), operator))
565
+ for (const alias of aliasesFor(index, parsed, namespaces)) {
566
+ const alternative = `[${rawName}="${escapeCssAttributeValue(alias.after)}"${flag ? ` ${flag}` : ""}]`;
567
+ if (alternatives.has(alternative))
501
568
  continue;
502
- alternatives.add(`[${rawName}="${escapeCssAttributeValue(reference.after)}"${flag ? ` ${flag}` : ""}]`);
569
+ charge?.(alternative.length + (alternatives.size === 1 ? ":is(, )".length : ", ".length));
570
+ alternatives.add(alternative);
503
571
  }
504
572
  return alternatives.size === 1 ? predicate : `:is(${[...alternatives].join(", ")})`;
505
573
  };
506
574
  if (namespaces)
507
575
  return replaceSelectorAttributeTokens(selector, rewriteAttribute);
508
576
  const replacements = new Map(ids.map(({ id, replacement }) => [id, replacement]));
509
- const targets = /* @__PURE__ */ new Map();
510
- for (const reference of references) {
511
- if (reference.name !== "id" || reference.before === reference.after || replacements.has(reference.before))
512
- continue;
513
- let alternatives = targets.get(reference.before);
514
- if (!alternatives) {
515
- alternatives = /* @__PURE__ */ new Set([`#${escapeCssIdentifier(reference.before)}`]);
516
- targets.set(reference.before, alternatives);
577
+ const namedIds = selectorIdTokens(selector).filter((id) => replacements.has(id) || index.renamedIdAlternatives.has(id));
578
+ const rewrittenIds = replaceSelectorIdTokens(selector, namedIds, (id, token) => {
579
+ const replacement = replacements.get(id) ?? index.renamedIdAlternatives.get(id);
580
+ charge?.(replacement.length - token.length);
581
+ return replacement;
582
+ });
583
+ return replaceSelectorAttributeTokens(rewrittenIds, rewriteAttribute);
584
+ }
585
+ function dropAuthoredSvgReferenceAliases(root) {
586
+ let dropped = false;
587
+ const pending = [root];
588
+ for (let node = pending.pop(); node; node = pending.pop()) {
589
+ for (const el of Array.from(node.children)) {
590
+ if (el.hasAttribute(SVG_REFERENCE_ALIASES_ATTR)) {
591
+ el.removeAttribute(SVG_REFERENCE_ALIASES_ATTR);
592
+ dropped = true;
593
+ }
594
+ const html = el.localName === "template" && !el.firstElementChild && "content" in el;
595
+ pending.push(html ? el.content : el);
517
596
  }
518
- alternatives.add(`#${escapeCssIdentifier(reference.after)}`);
519
597
  }
520
- for (const [id, alternatives] of targets)
521
- replacements.set(id, `:is(${[...alternatives].join(", ")})`);
522
- const rewrittenIds = replaceSelectorIdTokens(selector, [...replacements.keys()], (id) => replacements.get(id));
523
- return replaceSelectorAttributeTokens(rewrittenIds, rewriteAttribute);
598
+ return dropped;
524
599
  }
525
600
  function readSvgReferenceAliases(root, attribute, includeDescendants = true) {
526
601
  const aliases = [];
@@ -869,7 +944,7 @@ function namespaceCollidingSvgIds(document, scopes, finalizedIds, charge) {
869
944
  finalizedIds?.add(el);
870
945
  return referenceMaps;
871
946
  }
872
- function rewriteSvgIdReferencesInCss(css, idMap, references = []) {
947
+ function rewriteSvgIdReferencesInCss(css, idMap, references = [], charge) {
873
948
  if (!css || idMap.size === 0 && references.length === 0)
874
949
  return css;
875
950
  if (!css.includes("#") && !css.includes("[") && !css.toLowerCase().includes("url("))
@@ -881,7 +956,12 @@ function rewriteSvgIdReferencesInCss(css, idMap, references = []) {
881
956
  return css;
882
957
  }
883
958
  let mutated = false;
884
- const recordedIds = new Set(references.filter((alias) => alias.name === ID_ATTR).map((alias) => alias.before));
959
+ let charged = 0;
960
+ const chargeSelector = charge && ((bytes) => {
961
+ charged += bytes;
962
+ charge(bytes);
963
+ });
964
+ const recordedIds = recordedSvgIds(references);
885
965
  const idsNamedBy = (selector) => selectorIdTokens(selector).flatMap((id) => {
886
966
  const renamed = recordedIds.has(id) ? void 0 : idMap.get(id);
887
967
  if (!renamed)
@@ -891,29 +971,33 @@ function rewriteSvgIdReferencesInCss(css, idMap, references = []) {
891
971
  ];
892
972
  });
893
973
  root.walkRules((rule) => {
894
- const rewritten = rule.selectors.map((selector) => rewriteSvgSelectors(selector, idsNamedBy(selector), references));
895
- if (rewritten.some((selector, index) => selector !== rule.selectors[index])) {
896
- rule.selectors = rewritten;
974
+ const rewritten2 = rule.selectors.map((selector) => rewriteSvgSelectors(selector, idsNamedBy(selector), references, void 0, chargeSelector));
975
+ if (rewritten2.some((selector, index) => selector !== rule.selectors[index])) {
976
+ rule.selectors = rewritten2;
897
977
  mutated = true;
898
978
  }
899
979
  });
900
980
  root.walkDecls((decl) => {
901
- const rewritten = rewriteUrlHashRefs(decl.value, idMap);
902
- if (rewritten !== decl.value) {
903
- decl.value = rewritten;
981
+ const rewritten2 = rewriteUrlHashRefs(decl.value, idMap);
982
+ if (rewritten2 !== decl.value) {
983
+ decl.value = rewritten2;
904
984
  mutated = true;
905
985
  }
906
986
  });
907
987
  root.walkAtRules((atRule) => {
908
988
  if (!atRule.params)
909
989
  return;
910
- const rewritten = rewriteUrlHashRefs(atRule.params, idMap);
911
- if (rewritten !== atRule.params) {
912
- atRule.params = rewritten;
990
+ const rewritten2 = rewriteUrlHashRefs(atRule.params, idMap);
991
+ if (rewritten2 !== atRule.params) {
992
+ atRule.params = rewritten2;
913
993
  mutated = true;
914
994
  }
915
995
  });
916
- return mutated ? root.toResult({ map: false }).css : css;
996
+ const rewritten = mutated ? root.toResult({ map: false }).css : css;
997
+ const settle = Math.max(0, rewritten.length - css.length) - charged;
998
+ if (charge && settle !== 0)
999
+ charge(settle);
1000
+ return rewritten;
917
1001
  }
918
1002
 
919
1003
  // ../core/dist/compiler/inlineSubCompositions.js
@@ -1025,7 +1109,7 @@ function ensureExternalLinkTag(doc, link) {
1025
1109
  }
1026
1110
  var isDocument = (node) => node.nodeType === 9;
1027
1111
  function defaultBuildScopeSelector(compId) {
1028
- const escaped = compId.replace(/\\/g, "\\\\").replace(/"/g, '\\"');
1112
+ const escaped = compId.replace(/\\/g, "\\\\").replace(/"/g, '\\"').replace(/</g, "\\3c ");
1029
1113
  return `[data-composition-id="${escaped}"]`;
1030
1114
  }
1031
1115
  function inlineSubCompositions(document, hosts, options) {
@@ -1295,6 +1379,7 @@ ${AUTHORED_SOURCE_END}`;
1295
1379
  styleEnd
1296
1380
  });
1297
1381
  }
1382
+ dropAuthoredSvgReferenceAliases(document);
1298
1383
  const hostRoots = svgIdScopes.map(({ root }) => root);
1299
1384
  const clips = sceneClipRoots(document, hostRoots);
1300
1385
  const svgIdMaps = namespaceCollidingSvgIds(document, [
@@ -1317,25 +1402,18 @@ ${AUTHORED_SOURCE_END}`;
1317
1402
  exclude: hostRoots.filter((host) => root.contains(host))
1318
1403
  }))
1319
1404
  ], void 0, chargeEmitted && ((index, bytes) => chargeEmitted(svgIdScopes[index]?.src ?? "the page", bytes)));
1320
- const chargeGrowth = (src, before, after) => {
1321
- if (after.length > before.length)
1322
- chargeEmitted?.(src, after.length - before.length);
1323
- };
1405
+ const rewriteCss = (src, css, idMap, references) => rewriteSvgIdReferencesInCss(css, idMap, references, chargeEmitted && ((bytes) => chargeEmitted(src, bytes)));
1324
1406
  svgIdMaps.slice(0, svgIdScopes.length).forEach((idMap, index) => {
1325
1407
  const { styleStart, styleEnd } = svgIdScopes[index];
1326
1408
  const references = readSvgReferenceAliases(svgIdScopes[index].root, SVG_REFERENCE_ALIASES_ATTR);
1327
1409
  for (let i = styleStart; i < styleEnd; i += 1) {
1328
- const rewritten = rewriteSvgIdReferencesInCss(styles[i].css, idMap, references);
1329
- chargeGrowth(svgIdScopes[index].src, styles[i].css, rewritten);
1330
- styles[i].css = rewritten;
1410
+ styles[i].css = rewriteCss(svgIdScopes[index].src, styles[i].css, idMap, references);
1331
1411
  }
1332
1412
  });
1333
1413
  const rootReferences = readSvgReferenceAliases(document.documentElement, SVG_REFERENCE_ALIASES_ATTR);
1334
1414
  for (const style of rootStyles) {
1335
1415
  const css = style.textContent ?? "";
1336
- const rewritten = rewriteSvgIdReferencesInCss(css, svgIdMaps[svgIdScopes.length], rootReferences);
1337
- chargeGrowth("the page", css, rewritten);
1338
- style.textContent = rewritten;
1416
+ style.textContent = rewriteCss("the page", css, svgIdMaps[svgIdScopes.length], rootReferences);
1339
1417
  }
1340
1418
  return {
1341
1419
  styles,
@@ -1351,6 +1429,12 @@ ${AUTHORED_SOURCE_END}`;
1351
1429
  }
1352
1430
 
1353
1431
  // ../parsers/dist/hfIds.js
1432
+ function isHtmlTemplate2(el) {
1433
+ return el.localName === "template" && "content" in el;
1434
+ }
1435
+ function templateContent2(el) {
1436
+ return isHtmlTemplate2(el) ? el.content ?? null : null;
1437
+ }
1354
1438
  var EXCLUDED_TAGS = /* @__PURE__ */ new Set([
1355
1439
  "script",
1356
1440
  "style",
@@ -1405,8 +1489,8 @@ function mintHfId(el, assigned) {
1405
1489
  }
1406
1490
  function getChildElements(parent) {
1407
1491
  const directChildren = Array.from(parent.children);
1408
- if (directChildren.length || parent.tagName.toLowerCase() !== "template") return directChildren;
1409
- const content = parent.content;
1492
+ if (directChildren.length) return directChildren;
1493
+ const content = templateContent2(parent);
1410
1494
  if (content?.children.length) return Array.from(content.children);
1411
1495
  return directChildren;
1412
1496
  }
@@ -1972,6 +2056,10 @@ function getBundledHostCompositionIdentity(host) {
1972
2056
  runtimeCompositionId: currentCompositionId
1973
2057
  };
1974
2058
  }
2059
+ function hasInlineTemplate(document, compositionId) {
2060
+ const template = document.getElementById(`${compositionId}-template`);
2061
+ return !!template && isHtmlTemplate(template);
2062
+ }
1975
2063
  function getBundledTrackedCompositionHosts(document) {
1976
2064
  const hosts = Array.from(document.querySelectorAll("[data-composition-src], [data-composition-id]"));
1977
2065
  return hosts.filter((host) => {
@@ -1980,7 +2068,7 @@ function getBundledTrackedCompositionHosts(document) {
1980
2068
  const authoredCompositionId = getBundledHostCompositionIdentity(host).authoredCompositionId;
1981
2069
  if (!authoredCompositionId)
1982
2070
  return false;
1983
- return !!document.getElementById(`${authoredCompositionId}-template`);
2071
+ return hasInlineTemplate(document, authoredCompositionId);
1984
2072
  });
1985
2073
  }
1986
2074
  function shouldAssignBundledRuntimeCompositionId(host, document) {
@@ -1989,7 +2077,7 @@ function shouldAssignBundledRuntimeCompositionId(host, document) {
1989
2077
  const authoredCompositionId = getBundledHostCompositionIdentity(host).authoredCompositionId;
1990
2078
  if (!authoredCompositionId)
1991
2079
  return false;
1992
- if (!document.getElementById(`${authoredCompositionId}-template`))
2080
+ if (!hasInlineTemplate(document, authoredCompositionId))
1993
2081
  return false;
1994
2082
  return host.children.length === 0;
1995
2083
  }
@@ -2392,7 +2480,7 @@ async function bundleProject(projectDir, options) {
2392
2480
  const rootScripts = options?.sceneParts ? [
2393
2481
  ...document.querySelectorAll(`script:not([${RUNTIME_BOOTSTRAP_ATTR}])`),
2394
2482
  ...[...document.querySelectorAll("template")].flatMap((t) => [
2395
- ...t.content.querySelectorAll("script")
2483
+ ...templateContent(t)?.querySelectorAll("script") ?? []
2396
2484
  ])
2397
2485
  ].map((el) => {
2398
2486
  const src = el.getAttribute("src");
@@ -2490,6 +2578,8 @@ async function bundleProject(projectDir, options) {
2490
2578
  }
2491
2579
  const candidateInlineHosts = trackedCompositionHosts.filter((host) => !host.hasAttribute("data-composition-src"));
2492
2580
  for (const templateEl of [...document.querySelectorAll("template[id]")]) {
2581
+ if (!isHtmlTemplate(templateEl))
2582
+ continue;
2493
2583
  const templateId = templateEl.getAttribute("id") || "";
2494
2584
  const match = templateId.match(/^(.+)-template$/);
2495
2585
  if (!match)
@@ -2685,10 +2775,13 @@ async function bundleProject(projectDir, options) {
2685
2775
  function cssSafeVariableValue(value) {
2686
2776
  return sanitizeCssValue(String(value)).replace(/</g, "\\3c ");
2687
2777
  }
2778
+ function emitsCss(value) {
2779
+ return typeof value === "string" && value !== "" || typeof value === "number";
2780
+ }
2688
2781
  function compositionVariablesCssBlock(variables, selector) {
2689
2782
  const lines = [];
2690
2783
  for (const [id, value] of Object.entries(variables)) {
2691
- if (typeof value === "string" && value !== "" || typeof value === "number") {
2784
+ if (emitsCss(value)) {
2692
2785
  lines.push(` ${cssVariableName(id)}: ${cssSafeVariableValue(value)};`);
2693
2786
  }
2694
2787
  }
@@ -2701,11 +2794,12 @@ ${lines.join("\n")}
2701
2794
  function emitRootCompositionVariableStyles(document, variablesByComp = {}, overrides = {}, options = {}) {
2702
2795
  const charge = options.chargeBytes ?? defaultVariableStyleCharge();
2703
2796
  const authoredDefines = authoredDefinesPredicate(document);
2704
- const layerFor = makeVariableLayer(authoredDefines, overrides);
2797
+ const overrideIndex = indexKeys(overrides);
2798
+ const layerFor = makeVariableLayer(authoredDefines, overrides, overrideIndex);
2705
2799
  const rules = [
2706
- ...hostScopedVariableRules(variablesByComp, overrides, authoredDefines, charge),
2800
+ ...hostScopedVariableRules(variablesByComp, overrides, overrideIndex, authoredDefines, charge),
2707
2801
  ...rootDeclaredVariableRules(document, layerFor, charge),
2708
- ...declarerVariableRules(document, layerFor, charge)
2802
+ ...declarerVariableRules(document, layerFor, overrides, overrideIndex, charge)
2709
2803
  ];
2710
2804
  if (rules.length === 0)
2711
2805
  return false;
@@ -2732,6 +2826,29 @@ function defaultVariableStyleCharge() {
2732
2826
  }
2733
2827
  };
2734
2828
  }
2829
+ function indexKeys(record) {
2830
+ const at = /* @__PURE__ */ new Map();
2831
+ for (const id of Object.keys(record))
2832
+ at.set(id, at.size);
2833
+ return at;
2834
+ }
2835
+ function hostLayerOf(values, overrides, overrideIndex) {
2836
+ const overrideEmits = [];
2837
+ let touchesOverrides = false;
2838
+ for (const id of Object.keys(values)) {
2839
+ const at = overrideIndex.get(id);
2840
+ if (at === void 0)
2841
+ continue;
2842
+ touchesOverrides = true;
2843
+ if (emitsCss(overrides[id]))
2844
+ overrideEmits.push([id, at]);
2845
+ }
2846
+ overrideEmits.sort((a, b) => a[1] - b[1]);
2847
+ return { values, at: indexKeys(values), overrideEmits, touchesOverrides };
2848
+ }
2849
+ function idsInOrder(ids, at) {
2850
+ return ids.sort((a, b) => (at.get(a) ?? 0) - (at.get(b) ?? 0));
2851
+ }
2735
2852
  function authoredDefinesPredicate(document) {
2736
2853
  const authoredCss = [...document.querySelectorAll("style:not([data-hf-composition-variables])")].map((s) => s.textContent || "").join("\n");
2737
2854
  const defined = namesBeforeAColon(authoredCss);
@@ -2751,36 +2868,47 @@ function namesBeforeAColon(css) {
2751
2868
  }
2752
2869
  return names;
2753
2870
  }
2754
- function makeVariableLayer(authoredDefines, overrides) {
2755
- return (declared, hostValues) => {
2871
+ function makeVariableLayer(authoredDefines, overrides, overrideIndex) {
2872
+ return (declared, host) => {
2756
2873
  const out = {};
2757
- for (const [id, value] of Object.entries(declared)) {
2874
+ const declaredIds = Object.keys(declared);
2875
+ for (const id of declaredIds) {
2758
2876
  if (!authoredDefines(id))
2759
- out[id] = value;
2760
- }
2761
- for (const [id, value] of Object.entries(hostValues)) {
2762
- if (id in declared)
2763
- out[id] = value;
2764
- }
2765
- for (const [id, value] of Object.entries(overrides)) {
2766
- if (id in declared || id in hostValues)
2767
- out[id] = value;
2877
+ out[id] = declared[id];
2878
+ }
2879
+ if (host) {
2880
+ const inHost = declaredIds.filter((id) => host.at.has(id) && Object.hasOwn(declared, id));
2881
+ for (const id of idsInOrder(inHost, host.at))
2882
+ out[id] = host.values[id];
2883
+ }
2884
+ const declaredOverridden = idsInOrder(declaredIds.filter((id) => overrideIndex.has(id) && Object.hasOwn(declared, id)), overrideIndex);
2885
+ const hostOnly = host ? host.overrideEmits.filter(([id]) => !Object.hasOwn(declared, id)) : [];
2886
+ let next = 0;
2887
+ const flushHostOnly = (before) => {
2888
+ for (let entry = hostOnly[next]; entry && entry[1] < before; entry = hostOnly[++next]) {
2889
+ out[entry[0]] = overrides[entry[0]];
2890
+ }
2891
+ };
2892
+ for (const id of declaredOverridden) {
2893
+ flushHostOnly(overrideIndex.get(id) ?? 0);
2894
+ out[id] = overrides[id];
2768
2895
  }
2896
+ flushHostOnly(Infinity);
2769
2897
  return out;
2770
2898
  };
2771
2899
  }
2772
- function hostScopedVariableRules(variablesByComp, overrides, authoredDefines, charge) {
2900
+ function hostScopedVariableRules(variablesByComp, overrides, overrideIndex, authoredDefines, charge) {
2773
2901
  const rules = [];
2774
2902
  for (const [compId, vars] of Object.entries(variablesByComp)) {
2775
2903
  const withOverrides = {};
2776
- for (const [id, value] of Object.entries(vars)) {
2904
+ const varIds = Object.keys(vars);
2905
+ for (const id of varIds) {
2777
2906
  if (!authoredDefines(id))
2778
- withOverrides[id] = value;
2779
- }
2780
- for (const [id, value] of Object.entries(overrides)) {
2781
- if (id in vars)
2782
- withOverrides[id] = value;
2907
+ withOverrides[id] = vars[id];
2783
2908
  }
2909
+ const overridden = varIds.filter((id) => overrideIndex.has(id) && Object.hasOwn(vars, id));
2910
+ for (const id of idsInOrder(overridden, overrideIndex))
2911
+ withOverrides[id] = overrides[id];
2784
2912
  const rule = compositionVariablesCssBlock(withOverrides, cssAttributeSelector("data-composition-id", compId));
2785
2913
  if (!rule)
2786
2914
  continue;
@@ -2791,28 +2919,29 @@ function hostScopedVariableRules(variablesByComp, overrides, authoredDefines, ch
2791
2919
  }
2792
2920
  function rootDeclaredVariableRules(document, layerFor, charge) {
2793
2921
  const htmlDeclared = readDeclaredDefaults(document.documentElement);
2794
- const htmlRule = compositionVariablesCssBlock(layerFor(htmlDeclared, {}), ":root");
2922
+ const htmlRule = compositionVariablesCssBlock(layerFor(htmlDeclared), ":root");
2795
2923
  if (!htmlRule)
2796
2924
  return [];
2797
2925
  charge(htmlRule.length);
2798
2926
  return [htmlRule];
2799
2927
  }
2800
- function declarerVariableRules(document, layerFor, charge) {
2928
+ function declarerVariableRules(document, layerFor, overrides, overrideIndex, charge) {
2801
2929
  const rules = [];
2802
- const hostValuesByEl = /* @__PURE__ */ new Map();
2930
+ const hostByEl = /* @__PURE__ */ new Map();
2803
2931
  let markerSeq = 0;
2804
2932
  for (const el of [...document.querySelectorAll("[data-composition-variables]")]) {
2805
2933
  const declared = readDeclaredDefaults(el);
2806
2934
  const hostEl = typeof el.closest === "function" ? el.parentElement?.closest("[data-variable-values]") : null;
2807
- let hostValues = {};
2935
+ let host;
2808
2936
  if (hostEl) {
2809
- const cached = hostValuesByEl.get(hostEl);
2810
- hostValues = cached ?? parseHostVariableValues(hostEl);
2811
- if (!cached)
2812
- hostValuesByEl.set(hostEl, hostValues);
2937
+ host = hostByEl.get(hostEl);
2938
+ if (!host) {
2939
+ host = hostLayerOf(parseHostVariableValues(hostEl), overrides, overrideIndex);
2940
+ hostByEl.set(hostEl, host);
2941
+ }
2813
2942
  }
2814
- const vars = layerFor(declared, hostValues);
2815
- if (Object.keys(vars).length === 0)
2943
+ const vars = layerFor(declared, host);
2944
+ if (Object.keys(vars).length === 0 && !host?.touchesOverrides)
2816
2945
  continue;
2817
2946
  markerSeq += 1;
2818
2947
  el.setAttribute("data-hf-var-scope", String(markerSeq));
@@ -2974,6 +3103,7 @@ export {
2974
3103
  boundMediaSrc,
2975
3104
  extractStandaloneEntryFromIndex,
2976
3105
  validateHyperframeHtmlContract,
3106
+ dropAuthoredSvgReferenceAliases,
2977
3107
  ensureExternalLinkTag,
2978
3108
  inlineSubCompositions,
2979
3109
  EXCLUDED_TAGS,
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  afterRefreshFailure,
9
9
  resolveCredential
10
- } from "./chunk-BBDE5NOY.js";
10
+ } from "./chunk-77PZ7BBT.js";
11
11
  import {
12
12
  apiBaseUrl,
13
13
  buildAuthHeaders,
@@ -12,7 +12,7 @@ import {
12
12
  } from "./chunk-HVW7ABXD.js";
13
13
  import {
14
14
  DEFAULT_REGISTRY_URL
15
- } from "./chunk-KKJRKVZ5.js";
15
+ } from "./chunk-6ESQKLNR.js";
16
16
  import {
17
17
  replaceFileAtomically
18
18
  } from "./chunk-NIEOUHVQ.js";
@@ -6,17 +6,17 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  probeAudio
9
- } from "./chunk-SDOVSUQP.js";
9
+ } from "./chunk-NWZXJ4EH.js";
10
10
  import {
11
11
  stoppedByCancelSignal
12
- } from "./chunk-OUXG24ZI.js";
12
+ } from "./chunk-CSXAUBGU.js";
13
13
  import {
14
14
  DEFAULT_MODEL,
15
15
  ensureModel,
16
16
  ensureWhisper,
17
17
  hasFFmpeg,
18
18
  pinnedWhisperModel
19
- } from "./chunk-2IWNTFTH.js";
19
+ } from "./chunk-RJHHZEFV.js";
20
20
  import {
21
21
  sha256File
22
22
  } from "./chunk-RZ6CXJ56.js";
@@ -36,7 +36,7 @@ import {
36
36
  findFFmpeg,
37
37
  findFFprobe,
38
38
  getFFmpegInstallHint
39
- } from "./chunk-W74TM3NV.js";
39
+ } from "./chunk-HFXOEUXM.js";
40
40
  import {
41
41
  decodableAudioStream
42
42
  } from "./chunk-D54ZDCZR.js";
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  probeAudioTrack
9
- } from "./chunk-4OW5VENT.js";
9
+ } from "./chunk-IPSLXUKG.js";
10
10
  import {
11
11
  mediaInputArgs
12
12
  } from "./chunk-TRQDC2UC.js";
@@ -17,18 +17,18 @@ import {
17
17
  MAX_AUDIO_GAIN_DB,
18
18
  formatAudioGain,
19
19
  isAudibleVideoElement
20
- } from "./chunk-VDZP4BZ5.js";
20
+ } from "./chunk-KTVURB6P.js";
21
21
  import {
22
22
  decodeWellFormedEscapes,
23
23
  decodedUrlPath,
24
24
  readMediaOffsetSeconds
25
- } from "./chunk-KZ5PV5TL.js";
25
+ } from "./chunk-RADFYYSJ.js";
26
26
  import {
27
27
  decodeAuthoredAttribute
28
- } from "./chunk-4NDSGKPO.js";
28
+ } from "./chunk-QURE6VDP.js";
29
29
  import {
30
30
  findFfBinary
31
- } from "./chunk-Z67ELZGQ.js";
31
+ } from "./chunk-KDQDCSTA.js";
32
32
 
33
33
  // ../studio-server/dist/chunk-LLUVZ63N.js
34
34
  import { existsSync } from "fs";
@@ -22,7 +22,7 @@ import {
22
22
  } from "./chunk-KUJJJBV2.js";
23
23
  import {
24
24
  VERSION
25
- } from "./chunk-RDNVSDFY.js";
25
+ } from "./chunk-JOJ35UOG.js";
26
26
 
27
27
  // src/commands/lambda/prebuiltHandler.ts
28
28
  import { createHash, randomUUID } from "crypto";