hyperframes 0.9.54 → 0.9.55

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 (242) hide show
  1. package/dist/{add-OVHVUHQR.js → add-2LZ5XA27.js} +12 -12
  2. package/dist/{agentPromptGenerator-L2B3HMHF.js → agentPromptGenerator-RSFEFNFL.js} +6 -5
  3. package/dist/{animatedGifPrep-YMJH33FX.js → animatedGifPrep-AX4MK2QD.js} +8 -7
  4. package/dist/api.d.ts +4 -2
  5. package/dist/api.js +32 -31
  6. package/dist/{asset-ORCN4EVH.js → asset-XYQJVHR2.js} +2 -2
  7. package/dist/{assetCataloger-X23VB66T.js → assetCataloger-WTFR2Z5Q.js} +6 -5
  8. package/dist/{audio-NHNXBUI2.js → audio-U2OIHTUI.js} +17 -16
  9. package/dist/{auth-DQDDXQFC.js → auth-DXESNULL.js} +2 -2
  10. package/dist/{autoUpdate-LF7BJN34.js → autoUpdate-DWT4YYU2.js} +4 -4
  11. package/dist/{avatars-KFUMWRVX.js → avatars-EL5RBI4P.js} +12 -11
  12. package/dist/{backgroundChecks-Y6RHADW6.js → backgroundChecks-T2DL425O.js} +5 -5
  13. package/dist/backgroundChecksWorker.js +5 -5
  14. package/dist/{beats-JXZBK7JI.js → beats-HU756KUO.js} +10 -10
  15. package/dist/{benchmark-CLU6JUGY.js → benchmark-HBNCPXH5.js} +13 -13
  16. package/dist/{billing-5GMYFDMC.js → billing-LGHM3LC7.js} +9 -9
  17. package/dist/{browser-S4R6LZMF.js → browser-XIFUT5OB.js} +7 -7
  18. package/dist/{bundleWithLocalizedFonts-SFUFSBEU.js → bundleWithLocalizedFonts-JPPBCCVV.js} +1 -1
  19. package/dist/{capture-NL7V23HG.js → capture-B6DSZD2P.js} +3 -3
  20. package/dist/{capture-A3FLQIDI.js → capture-ZY7G3QSM.js} +12 -11
  21. package/dist/{captureCompositionFrame-R7GYVNTF.js → captureCompositionFrame-2WRG6SNW.js} +10 -9
  22. package/dist/{catalog-42I7W7AU.js → catalog-CUEOQ4PJ.js} +12 -12
  23. package/dist/{catch-up-TFSQZQZD.js → catch-up-BAYJTXAL.js} +7 -7
  24. package/dist/{check-CXRQZBLD.js → check-KGXBQPRZ.js} +35 -34
  25. package/dist/{checkAudio-AJUH6RU6.js → checkAudio-6PI7DJLP.js} +10 -9
  26. package/dist/{checkBrowser-4BLSYI25.js → checkBrowser-4SGXUL27.js} +29 -28
  27. package/dist/{chunk-O6E5HSVF.js → chunk-27YDEBOP.js} +2 -2
  28. package/dist/{chunk-FUPEHRNT.js → chunk-2LQJHVI7.js} +2 -2
  29. package/dist/{chunk-DOLVT6CH.js → chunk-2XZ76TF4.js} +1 -1
  30. package/dist/{chunk-6SRBTOGD.js → chunk-32IRBM3V.js} +2 -2
  31. package/dist/{chunk-YUDWGRNZ.js → chunk-3ANC4SO2.js} +12 -12
  32. package/dist/{chunk-JRSBBFUU.js → chunk-3USMIMBB.js} +14 -8
  33. package/dist/{chunk-RZJ7BHXB.js → chunk-3WG7IC5Z.js} +1 -1
  34. package/dist/{chunk-Q3ESTCZH.js → chunk-4S53OP2C.js} +9 -9
  35. package/dist/{chunk-BNONW4QT.js → chunk-4ZQG3Z3J.js} +2 -2
  36. package/dist/{chunk-FICKJQU2.js → chunk-5BWIBP2F.js} +4 -4
  37. package/dist/{chunk-JSYLOPVJ.js → chunk-5LSMAWK5.js} +1 -1
  38. package/dist/{chunk-BDWLBCTG.js → chunk-6BGTTCKN.js} +4 -4
  39. package/dist/{chunk-DWDCE4PO.js → chunk-6EG3W5AD.js} +2 -2
  40. package/dist/{chunk-SUG2AA33.js → chunk-7DJCG5ED.js} +10 -10
  41. package/dist/{chunk-P4YIRU76.js → chunk-7QFFS657.js} +1 -1
  42. package/dist/chunk-AGTBMLNM.js +42 -0
  43. package/dist/{chunk-SVIA7POL.js → chunk-AHXRYOTC.js} +1 -1
  44. package/dist/{chunk-NKUUNSII.js → chunk-BMJGWQ5X.js} +1 -1
  45. package/dist/{chunk-E7X54BVP.js → chunk-BOEEHWDX.js} +1 -1
  46. package/dist/{chunk-SWAG64KW.js → chunk-CHQWDBUM.js} +2 -2
  47. package/dist/{chunk-EB4IWBBC.js → chunk-CRRVULYR.js} +5 -3
  48. package/dist/{chunk-32DAUKF5.js → chunk-DQHFS4AE.js} +4 -4
  49. package/dist/{chunk-5XLTJMCN.js → chunk-E7GHBT2M.js} +2 -2
  50. package/dist/{chunk-EKCGL4MV.js → chunk-EKZ5FGV7.js} +1 -1
  51. package/dist/{chunk-3IHRXHJQ.js → chunk-EUJSQHIL.js} +2 -2
  52. package/dist/{chunk-TMV76KPG.js → chunk-EUP7ODOV.js} +1 -1
  53. package/dist/{chunk-MPU2CRFV.js → chunk-EXEX7TSU.js} +2 -2
  54. package/dist/{chunk-H7DKHNBF.js → chunk-FLHL32SV.js} +1 -1
  55. package/dist/{chunk-7RI3U46M.js → chunk-FLQT2FVH.js} +1 -1
  56. package/dist/{chunk-EKANCN4D.js → chunk-FMYXLRJN.js} +1 -1
  57. package/dist/{chunk-QKYGGUOQ.js → chunk-FOKS5HQ2.js} +4 -4
  58. package/dist/{chunk-CNZOKODL.js → chunk-FPRHOB5W.js} +2 -2
  59. package/dist/{chunk-LRXARA5O.js → chunk-GKOF2RS3.js} +1 -1
  60. package/dist/{chunk-E7T5SMDK.js → chunk-GWSMTN55.js} +51 -10
  61. package/dist/{chunk-RBBWUYMG.js → chunk-HLDUHLYO.js} +3 -3
  62. package/dist/{chunk-B6AK5P2D.js → chunk-J424KJXV.js} +4 -4
  63. package/dist/{chunk-WPSPW7SI.js → chunk-JS7UI73E.js} +5 -5
  64. package/dist/{chunk-BBDWXUO3.js → chunk-JVA3SAGB.js} +1 -1
  65. package/dist/{chunk-X6TDH2OM.js → chunk-K2VFTUAA.js} +1 -1
  66. package/dist/{chunk-AROERRUJ.js → chunk-KD33HZPP.js} +2 -2
  67. package/dist/{chunk-KTLRJZFK.js → chunk-KG24ATFM.js} +2 -2
  68. package/dist/{chunk-KYUCSRZU.js → chunk-KHEOHL5O.js} +1 -1
  69. package/dist/{chunk-EA5W2DWO.js → chunk-KVYHRUZX.js} +2 -2
  70. package/dist/{chunk-CIYNUD7Q.js → chunk-L27Z3PZT.js} +1 -1
  71. package/dist/{chunk-CWXJZB44.js → chunk-LGYCWN3Q.js} +10 -10
  72. package/dist/{chunk-3IUBSGD2.js → chunk-MDOMSEK2.js} +2 -2
  73. package/dist/{chunk-RXJUMVCA.js → chunk-MDRLJ737.js} +5 -2
  74. package/dist/{chunk-73UFPVUC.js → chunk-MO5NTFSC.js} +1 -1
  75. package/dist/{chunk-VT2K6I4A.js → chunk-MWTOYGIJ.js} +3 -3
  76. package/dist/{chunk-EZQJFCWA.js → chunk-N4CJSWTO.js} +2 -2
  77. package/dist/{chunk-4NG5GSTO.js → chunk-NCSBBZQ5.js} +1 -1
  78. package/dist/{chunk-63ESYLBY.js → chunk-ND5SQJAB.js} +2 -2
  79. package/dist/{chunk-D4EGZYDN.js → chunk-NFLH3TQ5.js} +8 -8
  80. package/dist/{chunk-Y6UCMYJZ.js → chunk-NFNYYBD6.js} +1 -1
  81. package/dist/{chunk-YBLBI3O2.js → chunk-NHNFBLBM.js} +1 -1
  82. package/dist/{chunk-F64VFCVC.js → chunk-NISP57R3.js} +1 -1
  83. package/dist/{chunk-C7LNWZ7G.js → chunk-NMQCIUBE.js} +2 -2
  84. package/dist/{chunk-7WRLK2K4.js → chunk-NUGAYGT3.js} +2 -2
  85. package/dist/{chunk-SULPT5X6.js → chunk-OAV5ESA6.js} +2 -2
  86. package/dist/{chunk-77U3646W.js → chunk-OM2WIZOR.js} +2 -2
  87. package/dist/{chunk-WAAXVZIT.js → chunk-OOWZ6M75.js} +1 -1
  88. package/dist/{chunk-YNF3SH26.js → chunk-OWQWMQTY.js} +2 -1
  89. package/dist/{chunk-OWS4ZWEY.js → chunk-OYEGPK3Q.js} +1 -1
  90. package/dist/{chunk-MEGSQW2I.js → chunk-OZDELWQP.js} +2 -29
  91. package/dist/{chunk-GA6QR6LN.js → chunk-PCNNMAUX.js} +43 -4
  92. package/dist/{chunk-3NXY6O4X.js → chunk-PLFOZIEH.js} +1 -1
  93. package/dist/{chunk-GEUM7NDY.js → chunk-QGQYMSYM.js} +1 -1
  94. package/dist/{chunk-ELA3IV4P.js → chunk-QQLVSUO7.js} +2 -2
  95. package/dist/{chunk-RXSPJW77.js → chunk-QWBJABCA.js} +4 -4
  96. package/dist/{chunk-GIOLHGCC.js → chunk-QX4TZ2RK.js} +83 -12
  97. package/dist/{chunk-QONV77VI.js → chunk-RBOKZ5ED.js} +1 -1
  98. package/dist/{chunk-3NPZZT2K.js → chunk-RIAH7WEL.js} +7 -7
  99. package/dist/{chunk-IR2GEREV.js → chunk-SEC76O65.js} +1 -1
  100. package/dist/{chunk-CBCB6GPL.js → chunk-TEA4ZEHB.js} +57 -30
  101. package/dist/{chunk-IB6FFEDH.js → chunk-TFVIXR6V.js} +21 -21
  102. package/dist/{chunk-4Q3Q4NFK.js → chunk-TMLKMCZK.js} +2 -2
  103. package/dist/{chunk-7RGWVZOS.js → chunk-TN3WGE3L.js} +2 -2
  104. package/dist/{chunk-SOMX57XG.js → chunk-TPLO6NJI.js} +2 -2
  105. package/dist/{chunk-TM7D3NOR.js → chunk-TULCSCC4.js} +41 -7
  106. package/dist/{chunk-DVTRMGYG.js → chunk-UCLUH5AG.js} +2 -2
  107. package/dist/{chunk-PAA5FUUL.js → chunk-UHE44FC4.js} +3 -3
  108. package/dist/{chunk-PLOVBMJF.js → chunk-UHVB2TVW.js} +147 -111
  109. package/dist/{chunk-75TCOXNT.js → chunk-UHVKV5IF.js} +1 -1
  110. package/dist/{chunk-TRAPS5WB.js → chunk-UV3I2TND.js} +1 -1
  111. package/dist/{chunk-UZJ7Y7WU.js → chunk-VPX4GVGQ.js} +1 -1
  112. package/dist/{chunk-4ZFNNWUX.js → chunk-W2GXQ3CR.js} +5 -5
  113. package/dist/{chunk-4WK4O5FI.js → chunk-WQGQCSRY.js} +66 -26
  114. package/dist/{chunk-QGKRHG4Q.js → chunk-X4KIL5BW.js} +14 -14
  115. package/dist/{chunk-JHOCK3DG.js → chunk-XFF4XJZO.js} +11 -3
  116. package/dist/{chunk-H5KHQ6KS.js → chunk-XFSZ3IXC.js} +1 -1
  117. package/dist/{chunk-DXVK3NMV.js → chunk-XLQUCTC2.js} +2 -2
  118. package/dist/{chunk-TW4DB2NK.js → chunk-YSN6HPD3.js} +2 -2
  119. package/dist/chunk-YXX6CIHL.js +25 -0
  120. package/dist/{chunk-H2GJDFF6.js → chunk-YY7ZJHL3.js} +14 -9
  121. package/dist/{chunk-NCLBKHCX.js → chunk-ZLG2E7GC.js} +1 -1
  122. package/dist/{clean-JK4VQMTH.js → clean-SXRW77YG.js} +22 -21
  123. package/dist/cli.js +65 -65
  124. package/dist/{cloud-JZ2WKHQG.js → cloud-PUCWVAS2.js} +4 -4
  125. package/dist/{cloudrun-QBXSGBGX.js → cloudrun-SXXONVD6.js} +11 -0
  126. package/dist/{compare-YE5BTDCG.js → compare-K65FNAEA.js} +26 -25
  127. package/dist/{compiler-QEA5UQRG.js → compiler-QISQISFV.js} +3 -3
  128. package/dist/{component-MGT5ZJ4M.js → component-YYCDOLP2.js} +3 -3
  129. package/dist/{compositions-7OF6FDCH.js → compositions-LCQTIYIU.js} +13 -12
  130. package/dist/{curve-JQLVUDXR.js → curve-T7JAY3EM.js} +12 -11
  131. package/dist/{cuts-MCJP6LMJ.js → cuts-E54SOAWH.js} +13 -12
  132. package/dist/{delete-PUYEW3RJ.js → delete-GLQNSOWH.js} +4 -4
  133. package/dist/{deploy-M4XGMJM5.js → deploy-SPMSEG67.js} +6 -3
  134. package/dist/{describeProject-P7CBZ6NW.js → describeProject-YPTJWL3O.js} +7 -6
  135. package/dist/{destroy-6XJWSH2A.js → destroy-FMAAH4KQ.js} +6 -3
  136. package/dist/{diff-BATSO64W.js → diff-OT5SHVFD.js} +28 -27
  137. package/dist/{dist-PC3EMMET.js → dist-EO7BILWH.js} +9 -8
  138. package/dist/{dist-G6W7GKGP.js → dist-RYTNYHMF.js} +2 -2
  139. package/dist/{doctor-ONTGSPYF.js → doctor-L4SNKUBM.js} +16 -15
  140. package/dist/{energy-FNZICGW2.js → energy-AXQGYZF6.js} +13 -12
  141. package/dist/{events-ENJZNXWG.js → events-5T25R4EH.js} +5 -5
  142. package/dist/{events-6TNBAVVY.js → events-7QP5H6PW.js} +15 -14
  143. package/dist/{events-LBHSU7C2.js → events-EBA6KHJV.js} +6 -6
  144. package/dist/{execute-RXTEBACV.js → execute-PTHC7Y5Q.js} +21 -20
  145. package/dist/{extract-F2CWTMLX.js → extract-76UPXPJC.js} +13 -12
  146. package/dist/{face-7HL4CP32.js → face-YZON2N2E.js} +13 -12
  147. package/dist/{feedback-4NDDMECH.js → feedback-KAYKPPHI.js} +12 -12
  148. package/dist/{ffmpeg-3LL345SO.js → ffmpeg-T3KK5XKT.js} +7 -6
  149. package/dist/{figma-474E54NB.js → figma-NJ6CAJGV.js} +3 -3
  150. package/dist/fontLocalizeCli.js +12 -11
  151. package/dist/{frames-EZWGM7QQ.js → frames-KNR4CSB4.js} +14 -13
  152. package/dist/{generate-I75DZWDU.js → generate-ISCPAKHT.js} +21 -20
  153. package/dist/{get-BHU6CBWO.js → get-X7QNC3PE.js} +4 -4
  154. package/dist/{gpuPolicy-6J2STCV2.js → gpuPolicy-ZXN5S3HE.js} +7 -6
  155. package/dist/{grade-compare-D4TBMCBG.js → grade-compare-XD3IONCL.js} +27 -26
  156. package/dist/hangReport.js +2 -2
  157. package/dist/{heifImagePrep-VLYGRKSS.js → heifImagePrep-EFBHDH4Z.js} +9 -8
  158. package/dist/{help-2CUXKYJ6.js → help-VUFIY5X4.js} +1 -1
  159. package/dist/{history-LVAVYTAN.js → history-OM3MHRB2.js} +10 -10
  160. package/dist/hyperframes-player.global.js +1 -1
  161. package/dist/{info-SUZOEH6L.js → info-G64344ST.js} +15 -14
  162. package/dist/{init-XI5QN3A6.js → init-2N6SDLZB.js} +28 -27
  163. package/dist/{ink-OVDZOCQJ.js → ink-T5BJE4D2.js} +13 -12
  164. package/dist/{inspect-INBCGPBD.js → inspect-6I4YSARX.js} +27 -26
  165. package/dist/{keyframes-LYZJK4RH.js → keyframes-PT3H7WHD.js} +10 -10
  166. package/dist/{lambda-DUDXZV6X.js → lambda-NEQXIHUM.js} +11 -10
  167. package/dist/{layout-JKUJW6A4.js → layout-FRWUKOGX.js} +27 -26
  168. package/dist/{lint-NKDC7IJ2.js → lint-GXPONOPU.js} +11 -11
  169. package/dist/{lintProject-5Z34NNS4.js → lintProject-J4YTLKPW.js} +2 -2
  170. package/dist/{list-5HUMDJYL.js → list-JO7WSM6Y.js} +4 -4
  171. package/dist/{localPage-RRBRFR4Y.js → localPage-XDWFSE4K.js} +6 -5
  172. package/dist/{login-C3SHKITR.js → login-XMFEIEXG.js} +4 -4
  173. package/dist/{look-3TX2U4BE.js → look-U77ADJ4V.js} +13 -12
  174. package/dist/{manager-MOR255LW.js → manager-RNMX2WTR.js} +8 -7
  175. package/dist/{manager-45VB2G5F.js → manager-ZRETV4LQ.js} +4 -4
  176. package/dist/{measure-ZAKBHNGY.js → measure-JNJAPVVN.js} +11 -11
  177. package/dist/{media-treatment-QJ35DSED.js → media-treatment-MFNKKPM7.js} +15 -14
  178. package/dist/{media-use-YBKHJVXL.js → media-use-ZKHL2IN2.js} +5 -5
  179. package/dist/{models-OQHKG7B4.js → models-PGO2ERAU.js} +12 -11
  180. package/dist/{motionShot-TWQTREFH.js → motionShot-AG4LR5Q5.js} +14 -13
  181. package/dist/{normalize-audio-PXHPUOMD.js → normalize-audio-FO3JCPD3.js} +9 -9
  182. package/dist/{open-TVGO5KVF.js → open-ZI6KK3GM.js} +9 -9
  183. package/dist/{parakeetRunner-MVJMZSIG.js → parakeetRunner-CBO3HRL6.js} +14 -13
  184. package/dist/{pipeline-4S5UE4O4.js → pipeline-VWVNH5ZC.js} +10 -9
  185. package/dist/{plan-AMBZUX55.js → plan-UHZYW3K2.js} +16 -15
  186. package/dist/{play-KEAESNBM.js → play-IVTXE4JW.js} +21 -20
  187. package/dist/{preflight-K3CM3W55.js → preflight-QJNKKMPE.js} +10 -9
  188. package/dist/{present-42WDBGBA.js → present-NB6DAJ6K.js} +19 -18
  189. package/dist/{preview-KSHBU7ZR.js → preview-FIWAZ5PX.js} +16 -15
  190. package/dist/{probe-TMSXGCL4.js → probe-VQJOUG65.js} +13 -12
  191. package/dist/{producer-KXRSJPJF.js → producer-NP6X5UBL.js} +1 -1
  192. package/dist/{projectConfig-LOHNVOJG.js → projectConfig-UVA26HJW.js} +2 -2
  193. package/dist/{publish-PYZXDQJW.js → publish-MRQ2K62E.js} +14 -14
  194. package/dist/{remove-background-HVX52VOF.js → remove-background-RG6DCWOW.js} +11 -10
  195. package/dist/{render-5KMA5P2U.js → render-6B7YPN7H.js} +27 -24
  196. package/dist/{render-57ZYQ53S.js → render-XWBMMSC5.js} +37 -32
  197. package/dist/{render-batch-URBBGOVC.js → render-batch-Y3RRNDNJ.js} +1 -1
  198. package/dist/renderSetupWorker.js +6 -6
  199. package/dist/{resolver-UPUCU4XT.js → resolver-K6VAEZVH.js} +2 -2
  200. package/dist/{reverse-UYS7KVE2.js → reverse-5RDRLKAP.js} +1 -1
  201. package/dist/{run-4LNEWQLG.js → run-OQK3QU4I.js} +4 -4
  202. package/dist/{sam-EGFXZF56.js → sam-A4NXDWSU.js} +4 -1
  203. package/dist/{screenshotCapture-IF5AO5XM.js → screenshotCapture-VDITRAK2.js} +7 -6
  204. package/dist/{service-OEOC34BD.js → service-C3UT4LYP.js} +12 -11
  205. package/dist/{share-NS7CMVSU.js → share-JU3IDHUV.js} +15 -14
  206. package/dist/{sherpa-QBTXL6JA.js → sherpa-Z2Z4XLXV.js} +13 -12
  207. package/dist/sherpaWorker.js +3 -3
  208. package/dist/{skills-S5U2MQAI.js → skills-24YEOJGP.js} +11 -10
  209. package/dist/{skillsUpdateCheck-UZ7CZ6VC.js → skillsUpdateCheck-5R4JJ27G.js} +5 -5
  210. package/dist/{snapshot-YWFWQTAV.js → snapshot-T4REEKFX.js} +34 -33
  211. package/dist/{src-UQ3K3UW2.js → src-EKGFNTTY.js} +6 -5
  212. package/dist/{src-N2SMYJ44.js → src-RMJVAEKT.js} +10 -9
  213. package/dist/{start-4IA5GG5D.js → start-E5RIH3KS.js} +19 -18
  214. package/dist/{staticProjectServer-5JP25RRX.js → staticProjectServer-LEM5W3S5.js} +15 -14
  215. package/dist/{status-ITCKXFBF.js → status-CSHJWWOP.js} +11 -11
  216. package/dist/studio/assets/{hyperframes-player-Oju91F6x.js → hyperframes-player-BroIQA4E.js} +1 -1
  217. package/dist/studio/assets/{index-B0VEzzD2.js → index-Be7DZynj.js} +5 -5
  218. package/dist/studio/assets/{index-XEm_N45R.js → index-CiF0D62S.js} +1 -1
  219. package/dist/studio/assets/{pausedVideoDecoder-p6zibxVM.js → pausedVideoDecoder-RXcvblHS.js} +1 -1
  220. package/dist/studio/index.html +1 -1
  221. package/dist/{studio-api-GENM2XVL.js → studio-api-COJYCMRI.js} +9 -8
  222. package/dist/{studioServer-SWR5Q3PD.js → studioServer-62ZTBLFM.js} +48 -47
  223. package/dist/{sync-CK6TTCXO.js → sync-CLRYHWYE.js} +13 -12
  224. package/dist/{synthesize-EXNEBJSY.js → synthesize-Z2H32QPU.js} +2 -2
  225. package/dist/{system-JBPJHNTG.js → system-2YOII5LZ.js} +3 -3
  226. package/dist/{telemetry-T4HQ6AKZ.js → telemetry-DWA36DFX.js} +6 -6
  227. package/dist/{templates-7O7NOIUC.js → templates-LXMQR35F.js} +9 -9
  228. package/dist/{timeline-P2PLN53O.js → timeline-LMKTDKRT.js} +19 -18
  229. package/dist/{tokens-SPQN27VG.js → tokens-VJ765KFG.js} +2 -2
  230. package/dist/{transcribe-SCZG6IM4.js → transcribe-3WASFP7Z.js} +11 -10
  231. package/dist/{transcribe-YJQ3DDDI.js → transcribe-TICRK4IY.js} +24 -23
  232. package/dist/{tts-5OAB5XX6.js → tts-5YJV6UXX.js} +1 -1
  233. package/dist/{update-JYPZW35A.js → update-Q26QGCBW.js} +12 -11
  234. package/dist/{updateCheck-5M2JJTH3.js → updateCheck-7R4S46TT.js} +4 -4
  235. package/dist/{upgrade-BP62FM6V.js → upgrade-76TFHAGI.js} +5 -5
  236. package/dist/{urlDownloader-WOZQCE6P.js → urlDownloader-AE4UQI5A.js} +6 -5
  237. package/dist/{validate-NEC5QLH7.js → validate-BEYREWEL.js} +23 -22
  238. package/dist/{video-XEEBISSO.js → video-47AVLNWM.js} +6 -5
  239. package/dist/{voices-GCHA27JA.js → voices-5O6OAL6H.js} +19 -18
  240. package/dist/warmCheck.js +35 -34
  241. package/dist/warmCheckClient.js +2 -2
  242. package/package.json +1 -1
@@ -8,8 +8,9 @@ import {
8
8
  findStageProxyBox
9
9
  } from "./chunk-YVCPUVHV.js";
10
10
  import {
11
- injectMediaCodecMapIntoHtml
12
- } from "./chunk-PLOVBMJF.js";
11
+ injectMediaCodecMapIntoHtml,
12
+ requestFromAnotherSite
13
+ } from "./chunk-UHVB2TVW.js";
13
14
  import {
14
15
  PROXY_VARIANT_CONFIG,
15
16
  ProxyCapacityError,
@@ -20,7 +21,7 @@ import {
20
21
  recordProxyRequest,
21
22
  resolveProxy,
22
23
  resolveProxyVariantRequest
23
- } from "./chunk-DWDCE4PO.js";
24
+ } from "./chunk-6EG3W5AD.js";
24
25
  import {
25
26
  resolveAutoProxy
26
27
  } from "./chunk-B5HSHXE2.js";
@@ -33,17 +34,23 @@ import {
33
34
  import {
34
35
  SAME_ORIGIN_FRAMING_HEADERS,
35
36
  isOwnLoopbackHost
36
- } from "./chunk-GA6QR6LN.js";
37
+ } from "./chunk-PCNNMAUX.js";
37
38
  import {
38
39
  listenOnBrowserSafePort
39
40
  } from "./chunk-OSKSTJNQ.js";
41
+ import {
42
+ PREVIEW_FOR_ANOTHER_SITE_META
43
+ } from "./chunk-YXX6CIHL.js";
40
44
  import {
41
45
  stripSdrPngColourTags
42
- } from "./chunk-BBDWXUO3.js";
46
+ } from "./chunk-JVA3SAGB.js";
43
47
  import {
44
48
  PREVIEW_PROXY_BOX_PARAM,
45
49
  parsePreviewProxyBox
46
50
  } from "./chunk-4IUOWNDS.js";
51
+ import {
52
+ injectTagsAtHeadStart
53
+ } from "./chunk-XGEJPKRY.js";
47
54
  import {
48
55
  isPrivateFileUnder,
49
56
  isStudioPrivatePath
@@ -53,7 +60,10 @@ import {
53
60
  } from "./chunk-IH2C53YV.js";
54
61
 
55
62
  // src/utils/staticProjectServer.ts
56
- import { createServer, request as httpRequest } from "http";
63
+ import {
64
+ createServer,
65
+ request as httpRequest
66
+ } from "http";
57
67
  import { Duplex } from "stream";
58
68
  import { createReadStream, existsSync, readFileSync, statSync } from "fs";
59
69
  import { isAbsolute, relative, resolve } from "path";
@@ -213,6 +223,26 @@ async function serveProxyRequest(projectDir, filePath, request, box, autoProxy,
213
223
  writeProxyError(err, res);
214
224
  }
215
225
  }
226
+ function markForAnotherSite(html) {
227
+ return injectTagsAtHeadStart(html, `<meta name="${PREVIEW_FOR_ANOTHER_SITE_META}">`);
228
+ }
229
+ function loadedByAnotherSite(req, res) {
230
+ const anotherSite = requestFromAnotherSite({
231
+ fetchSite: req.headers["sec-fetch-site"],
232
+ host: req.headers.host,
233
+ referer: req.headers.referer
234
+ });
235
+ if (anotherSite) {
236
+ const policies = [res.getHeader("Content-Security-Policy"), "sandbox allow-scripts"];
237
+ res.setHeader("Content-Security-Policy", policies.filter((p) => p !== void 0).map(String));
238
+ }
239
+ return anotherSite;
240
+ }
241
+ function serveMarkedDocument(filePath, res) {
242
+ const body = markForAnotherSite(readFileSync(filePath, "utf-8"));
243
+ res.writeHead(200, { "Content-Type": getMimeType(filePath) });
244
+ res.end(body);
245
+ }
216
246
  async function serveStaticProjectHtml(projectDir, html, bindErrorMessage = "Failed to bind local HTTP server", assetRoots = [], autoProxyOverride, proxyLimits = /* @__PURE__ */ new Map()) {
217
247
  const roots = [projectDir, ...assetRoots];
218
248
  const autoProxy = resolveAutoProxy(projectDir, autoProxyOverride);
@@ -226,6 +256,7 @@ async function serveStaticProjectHtml(projectDir, html, bindErrorMessage = "Fail
226
256
  copies.signal,
227
257
  findStageProxyBox(html)
228
258
  ) : html;
259
+ const markedHtml = markForAnotherSite(servedHtml);
229
260
  let listeningPort = -1;
230
261
  let inProcessHost;
231
262
  const answersHost = (host) => isOwnLoopbackHost(host, listeningPort) || inProcessHost !== void 0 && host === inProcessHost;
@@ -239,10 +270,11 @@ async function serveStaticProjectHtml(projectDir, html, bindErrorMessage = "Fail
239
270
  for (const [name, value] of Object.entries(SAME_ORIGIN_FRAMING_HEADERS)) {
240
271
  res.setHeader(name, value);
241
272
  }
273
+ const anotherSite = loadedByAnotherSite(req, res);
242
274
  const url = req.url ?? "/";
243
275
  if (url === "/" || url === "/index.html") {
244
276
  res.writeHead(200, { "Content-Type": getMimeType("index.html") });
245
- res.end(servedHtml);
277
+ res.end(anotherSite ? markedHtml : servedHtml);
246
278
  return;
247
279
  }
248
280
  const queryIndex = url.indexOf("?");
@@ -276,6 +308,8 @@ async function serveStaticProjectHtml(projectDir, html, bindErrorMessage = "Fail
276
308
  copies.signal,
277
309
  proxyLimits.get(filePath)
278
310
  );
311
+ } else if (anotherSite && getMimeType(filePath).startsWith("text/html")) {
312
+ serveMarkedDocument(filePath, res);
279
313
  } else {
280
314
  if (!serveUntaggedPng(filePath, res))
281
315
  serveFileWithRange(filePath, req.headers.range, res);
@@ -6,14 +6,14 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  findCuts
9
- } from "./chunk-RZJ7BHXB.js";
9
+ } from "./chunk-3WG7IC5Z.js";
10
10
  import {
11
11
  grey,
12
12
  readClip,
13
13
  round,
14
14
  videoClip,
15
15
  writeImage
16
- } from "./chunk-H7DKHNBF.js";
16
+ } from "./chunk-FLHL32SV.js";
17
17
 
18
18
  // src/measure/events.ts
19
19
  var EVENT_W = 160;
@@ -6,17 +6,17 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  loadProducer
9
- } from "./chunk-Y6UCMYJZ.js";
9
+ } from "./chunk-NFNYYBD6.js";
10
10
  import {
11
11
  extractAudioMetadata
12
- } from "./chunk-GA6QR6LN.js";
12
+ } from "./chunk-PCNNMAUX.js";
13
13
  import {
14
14
  resolveProjectRelativeSrc
15
15
  } from "./chunk-6EMFSRTW.js";
16
16
 
17
17
  // src/utils/projectMedia.ts
18
18
  async function collectProjectMedia(projectDir) {
19
- const { bundleToSingleHtml } = await import("./compiler-QEA5UQRG.js");
19
+ const { bundleToSingleHtml } = await import("./compiler-QISQISFV.js");
20
20
  const html = await bundleToSingleHtml(projectDir);
21
21
  const producer = await loadProducer();
22
22
  if (!producer.collectRenderMedia) throw new Error("Render media collector unavailable");
@@ -19,7 +19,7 @@ import {
19
19
  splitElementInHtml,
20
20
  unwrapElementsFromHtml,
21
21
  wrapElementsInHtml
22
- } from "./chunk-SOMX57XG.js";
22
+ } from "./chunk-TPLO6NJI.js";
23
23
  import {
24
24
  DEFAULT_TARGET_LUFS,
25
25
  absoluteLoudnessPlan,
@@ -28,7 +28,7 @@ import {
28
28
  requestedProjectPath,
29
29
  requiredFfmpeg,
30
30
  resolveLocalAudioPath
31
- } from "./chunk-5XLTJMCN.js";
31
+ } from "./chunk-E7GHBT2M.js";
32
32
  import {
33
33
  MEDIA_LINK_ATTR,
34
34
  relinkSplitHalves
@@ -56,11 +56,11 @@ import {
56
56
  scanProjectMedia,
57
57
  shouldPrewarmProxy,
58
58
  waitForProxy
59
- } from "./chunk-DWDCE4PO.js";
59
+ } from "./chunk-6EG3W5AD.js";
60
60
  import {
61
61
  probeAudioTrack,
62
62
  probeMediaMetadata
63
- } from "./chunk-NCLBKHCX.js";
63
+ } from "./chunk-ZLG2E7GC.js";
64
64
  import {
65
65
  HistoryBusyError,
66
66
  MAX_WINDOW_IDLE_MS,
@@ -113,6 +113,15 @@ import {
113
113
  resolveWritableWithinProject,
114
114
  walkDir
115
115
  } from "./chunk-ER22SVLT.js";
116
+ import {
117
+ PREVIEW_FOR_ANOTHER_SITE_META,
118
+ STUDIO_PREVIEW_CAPTURE_MODE,
119
+ STUDIO_PREVIEW_ERRORS,
120
+ STUDIO_PREVIEW_ERROR_KINDS,
121
+ STUDIO_PREVIEW_LAZY_ATTR,
122
+ STUDIO_PREVIEW_MARK_META,
123
+ refusedPreviewMessage
124
+ } from "./chunk-YXX6CIHL.js";
116
125
  import {
117
126
  decodableAudioStream
118
127
  } from "./chunk-D54ZDCZR.js";
@@ -121,7 +130,7 @@ import {
121
130
  ensureHfIds,
122
131
  stampHfIdsInPlace,
123
132
  stripSdrPngColourTags
124
- } from "./chunk-BBDWXUO3.js";
133
+ } from "./chunk-JVA3SAGB.js";
125
134
  import {
126
135
  atomicTempPath,
127
136
  catchHeldRename,
@@ -207,7 +216,7 @@ import {
207
216
  FFPROBE_PATH_ENV,
208
217
  findFfBinary,
209
218
  requireFfBinary
210
- } from "./chunk-E7T5SMDK.js";
219
+ } from "./chunk-GWSMTN55.js";
211
220
 
212
221
  // ../studio-server/dist/chunk-UEEXAVOA.js
213
222
  function findUnsafeMutationValues(value, path = "body", options = {}) {
@@ -723,17 +732,6 @@ function studioMotionRenderRuntime(manifestContent, activeCompositionPath) {
723
732
 
724
733
  // ../studio-server/dist/index.js
725
734
  import { Hono } from "hono";
726
-
727
- // ../core/dist/studioPreviewMark.js
728
- var STUDIO_PREVIEW_MARK_META = "hyperframes-studio-preview";
729
- var STUDIO_PREVIEW_CAPTURE_MODE = "capture";
730
- var PREVIEW_FOR_ANOTHER_SITE_META = "hyperframes-preview-for-another-site";
731
- var STUDIO_PREVIEW_LAZY_ATTR = "data-hf-preview-lazy";
732
- var STUDIO_PREVIEW_ERRORS = "__hfPreviewErrors";
733
- var STUDIO_PREVIEW_ERROR_KINDS = "__hfPreviewErrorKinds";
734
- var refusedPreviewMessage = (status) => `The preview page could not be loaded (HTTP ${status}).`;
735
-
736
- // ../studio-server/dist/index.js
737
735
  import { readFile } from "fs/promises";
738
736
  import { join as join2 } from "path";
739
737
  import { bodyLimit } from "hono/body-limit";
@@ -4278,15 +4276,43 @@ function promoteTemplateCompositionId(rawComp, body) {
4278
4276
  root?.setAttribute("data-composition-id", templateCompositionId);
4279
4277
  }
4280
4278
  function tagRootCompositionFile(bodyHtml, compPath) {
4281
- const match = bodyHtml.match(/<[a-zA-Z][^>]*\bdata-composition-id=/);
4282
- if (match?.index == null) return bodyHtml;
4283
- const tagEnd = bodyHtml.indexOf(">", match.index);
4284
- if (tagEnd === -1) return bodyHtml;
4285
- if (bodyHtml.slice(match.index, tagEnd).includes("data-composition-file")) return bodyHtml;
4286
- return bodyHtml.slice(0, tagEnd) + ` data-composition-file="${escapeAttrValue(compPath)}"` + bodyHtml.slice(tagEnd);
4279
+ const tag = firstCompositionIdTag(bodyHtml);
4280
+ if (!tag) return bodyHtml;
4281
+ if (bodyHtml.slice(tag.start, tag.end).includes("data-composition-file")) return bodyHtml;
4282
+ return bodyHtml.slice(0, tag.end) + ` data-composition-file="${escapeAttrValue(compPath)}"` + bodyHtml.slice(tag.end);
4283
+ }
4284
+ var TAG_OPENER = /<[a-zA-Z]/g;
4285
+ var COMPOSITION_ID_ATTR = "data-composition-id=";
4286
+ function firstCompositionIdTag(html) {
4287
+ TAG_OPENER.lastIndex = 0;
4288
+ for (let open2 = TAG_OPENER.exec(html); open2; open2 = TAG_OPENER.exec(html)) {
4289
+ const close = html.indexOf(">", open2.index);
4290
+ const tag = html.slice(open2.index, close === -1 ? html.length : close);
4291
+ if (hasBoundedAttr(tag, COMPOSITION_ID_ATTR, 2)) {
4292
+ return close === -1 ? null : { start: open2.index, end: close };
4293
+ }
4294
+ if (close === -1) return null;
4295
+ TAG_OPENER.lastIndex = close;
4296
+ }
4297
+ return null;
4287
4298
  }
4299
+ function hasBoundedAttr(tag, name, from) {
4300
+ for (let at = tag.indexOf(name, from); at !== -1; at = tag.indexOf(name, at + 1)) {
4301
+ if (!/\w/.test(tag[at - 1] ?? "")) return true;
4302
+ }
4303
+ return false;
4304
+ }
4305
+ var HEAD_OPENER = /<head/gi;
4306
+ var HEAD_CLOSER = /<\/head>/gi;
4288
4307
  function rootHeadContent(rootHtml) {
4289
- return rootHtml.match(/<head[^>]*>([\s\S]*?)<\/head>/i)?.[1] ?? "";
4308
+ HEAD_OPENER.lastIndex = 0;
4309
+ const open2 = HEAD_OPENER.exec(rootHtml);
4310
+ if (!open2) return "";
4311
+ const gt = rootHtml.indexOf(">", open2.index + open2[0].length);
4312
+ if (gt === -1) return "";
4313
+ HEAD_CLOSER.lastIndex = gt + 1;
4314
+ const close = HEAD_CLOSER.exec(rootHtml);
4315
+ return close ? rootHtml.slice(gt + 1, close.index) : "";
4290
4316
  }
4291
4317
  function buildSubCompositionHtml(projectDir, compPath, runtimeUrl, baseHref, rawOverride, gsapBaseUrl) {
4292
4318
  const compFile = resolveWithinProject(projectDir, compPath);
@@ -10558,8 +10584,91 @@ function previewErrorPage(status) {
10558
10584
  const message = refusedPreviewMessage(status);
10559
10585
  return `<!doctype html><meta charset="utf-8"><script>window.${STUDIO_PREVIEW_ERRORS}=[${JSON.stringify(message)}]</script><p>${message}</p>`;
10560
10586
  }
10587
+ var GRANTED_TYPES = /* @__PURE__ */ new Set(["Font", "Script", "Stylesheet", "Image", "Media", "Fetch", "XHR"]);
10588
+ var PROXY_PARAM = "hf-proxy";
10589
+ var VIDEO_FILE = /\.(mp4|webm|mov|mkv|avi|m4v|mxf|mts|m2ts)$/i;
10590
+ var isProxyWait = (url) => url.searchParams.has(PROXY_PARAM) && VIDEO_FILE.test(url.pathname);
10591
+ var PROXY_WAIT_ALLOWED_HEADERS = `Range, ${PREVIEW_PROXY_PRIORITY_HEADER}`;
10592
+ var PREVIEW_EXPOSED_HEADERS = `Retry-After, ${PREVIEW_PROXY_PROGRESS_HEADER}, Content-Range`;
10593
+ function capturePreviewPrefix(captureUrl) {
10594
+ let url;
10595
+ try {
10596
+ url = new URL(captureUrl);
10597
+ } catch {
10598
+ return null;
10599
+ }
10600
+ const path = /^\/api\/projects\/[^/]+\/preview(?=\/|$)/.exec(url.pathname)?.[0];
10601
+ return path ? `${url.origin}${path}/` : null;
10602
+ }
10603
+ var decodedSegment = (segment) => {
10604
+ try {
10605
+ return decodeURIComponent(segment);
10606
+ } catch {
10607
+ return ".";
10608
+ }
10609
+ };
10610
+ var isDotPath = (url, prefix) => {
10611
+ const rest = url.pathname.slice(new URL(prefix).pathname.length);
10612
+ return [
10613
+ ...rest.split("/").map(decodedSegment),
10614
+ ...decodeWellFormedEscapes(rest).split(/[\\/]/)
10615
+ ].some((segment) => segment.startsWith("."));
10616
+ };
10617
+ function captureLoadGrant(load, captureUrl) {
10618
+ const prefix = capturePreviewPrefix(captureUrl);
10619
+ if (!prefix || !load.url.startsWith(prefix)) return null;
10620
+ const url = new URL(load.url);
10621
+ if (isDotPath(url, prefix) || !GRANTED_TYPES.has(load.resourceType)) return null;
10622
+ const proxyWait = (load.resourceType === "XHR" || load.resourceType === "Fetch") && isProxyWait(url);
10623
+ if (load.method === "OPTIONS") return proxyWait ? "preflight" : null;
10624
+ return load.method === "GET" ? "read" : null;
10625
+ }
10626
+ var OPAQUE_CALLER = [
10627
+ { name: "Access-Control-Allow-Origin", value: "null" },
10628
+ { name: "X-Content-Type-Options", value: "nosniff" },
10629
+ {
10630
+ name: "Access-Control-Expose-Headers",
10631
+ value: PREVIEW_EXPOSED_HEADERS
10632
+ }
10633
+ ];
10634
+ var PREFLIGHT_ANSWER = [
10635
+ { name: "Access-Control-Allow-Origin", value: "null" },
10636
+ { name: "Access-Control-Allow-Methods", value: "GET" },
10637
+ { name: "Access-Control-Allow-Headers", value: PROXY_WAIT_ALLOWED_HEADERS }
10638
+ ];
10639
+ async function grantCaptureLoads(cdp, captureUrl) {
10640
+ const prefix = capturePreviewPrefix(captureUrl);
10641
+ if (!prefix) return;
10642
+ cdp.on("Fetch.requestPaused", (event) => {
10643
+ const { requestId } = event;
10644
+ const headers = event.responseHeaders ?? [];
10645
+ const status = event.responseStatusCode;
10646
+ const grant = captureLoadGrant(
10647
+ { url: event.request.url, method: event.request.method, resourceType: event.resourceType },
10648
+ captureUrl
10649
+ );
10650
+ const answered = status !== void 0 && !headers.some((header) => header.name.toLowerCase() === "access-control-allow-origin");
10651
+ const sent = grant === "preflight" ? cdp.send("Fetch.fulfillRequest", {
10652
+ requestId,
10653
+ responseCode: 204,
10654
+ responseHeaders: PREFLIGHT_ANSWER
10655
+ }) : grant && answered ? cdp.send("Fetch.continueResponse", {
10656
+ requestId,
10657
+ responseCode: status,
10658
+ responseHeaders: [...headers, ...OPAQUE_CALLER]
10659
+ }) : cdp.send("Fetch.continueRequest", { requestId });
10660
+ void sent.catch(() => void 0);
10661
+ });
10662
+ await cdp.send("Fetch.enable", {
10663
+ patterns: [...GRANTED_TYPES].map((resourceType) => ({
10664
+ urlPattern: `${prefix}*`,
10665
+ resourceType,
10666
+ requestStage: "Response"
10667
+ }))
10668
+ });
10669
+ }
10561
10670
  var ANY_FILE_THE_PREVIEW_SERVES = /./;
10562
- var GRANTED_TYPES = /* @__PURE__ */ new Map([
10671
+ var GRANTED_TYPES2 = /* @__PURE__ */ new Map([
10563
10672
  ["font", /^font\//],
10564
10673
  ["script", /^text\/javascript\b/],
10565
10674
  ["image", /^image\//],
@@ -10569,7 +10678,7 @@ var GRANTED_TYPES = /* @__PURE__ */ new Map([
10569
10678
  ]);
10570
10679
  var TOKEN_SEGMENT = /^~([\w-]{43})$/;
10571
10680
  function opaqueFrameLoadGranted(load) {
10572
- const type = load.origin === "null" ? GRANTED_TYPES.get(load.dest ?? "") : void 0;
10681
+ const type = load.origin === "null" ? GRANTED_TYPES2.get(load.dest ?? "") : void 0;
10573
10682
  if (!type?.test(getMimeType(load.pathname))) return false;
10574
10683
  const keepsStoredContentType = load.status === 304;
10575
10684
  return keepsStoredContentType || type.test(load.contentType ?? "");
@@ -10594,10 +10703,18 @@ function tokenPathHeaders(c, res, pathname) {
10594
10703
  if (granted) {
10595
10704
  headers.set("Access-Control-Allow-Origin", "null");
10596
10705
  headers.set("X-Content-Type-Options", "nosniff");
10706
+ headers.set("Access-Control-Expose-Headers", PREVIEW_EXPOSED_HEADERS);
10597
10707
  headers.append("Vary", "Origin");
10598
10708
  }
10599
10709
  return headers;
10600
10710
  }
10711
+ var answersProxyPreflight = (c, url) => c.req.method === "OPTIONS" && c.req.header("origin") === "null" && c.req.header("access-control-request-method") === "GET" && isProxyWait(url);
10712
+ var PROXY_PREFLIGHT_ANSWER = {
10713
+ "Access-Control-Allow-Origin": "null",
10714
+ "Access-Control-Allow-Methods": "GET",
10715
+ "Access-Control-Allow-Headers": PROXY_WAIT_ALLOWED_HEADERS,
10716
+ Vary: "Origin"
10717
+ };
10601
10718
  async function underToken(res, headers, projectId, token) {
10602
10719
  if (res.status !== 200 || !headers.get("content-type")?.startsWith("text/html"))
10603
10720
  return new Response(res.body, { status: res.status, headers });
@@ -10616,6 +10733,8 @@ function serveTokenPreviewPaths(api, tokens, resolveProjectId) {
10616
10733
  if (!projectId || !tokens.matches(projectId, token)) return c.text("not found", 404);
10617
10734
  segments.splice(4, 1);
10618
10735
  url.pathname = segments.join("/");
10736
+ if (answersProxyPreflight(c, url))
10737
+ return new Response(null, { status: 204, headers: PROXY_PREFLIGHT_ANSWER });
10619
10738
  const req = new Request(url, { method: c.req.method, headers: c.req.raw.headers });
10620
10739
  const res = await api.fetch(req);
10621
10740
  return underToken(res, tokenPathHeaders(c, res, url.pathname), projectId, token);
@@ -10862,86 +10981,6 @@ ${key}`).digest("hex").slice(0, 32)}.html`);
10862
10981
  }
10863
10982
  };
10864
10983
  }
10865
- var GRANTED_TYPES2 = /* @__PURE__ */ new Set(["Font", "Script", "Stylesheet", "Image", "Media", "Fetch", "XHR"]);
10866
- var PROXY_PARAM = "hf-proxy";
10867
- var VIDEO_FILE = /\.(mp4|webm|mov|mkv|avi|m4v|mxf|mts|m2ts)$/i;
10868
- function capturePreviewPrefix(captureUrl) {
10869
- let url;
10870
- try {
10871
- url = new URL(captureUrl);
10872
- } catch {
10873
- return null;
10874
- }
10875
- const path = /^\/api\/projects\/[^/]+\/preview(?=\/|$)/.exec(url.pathname)?.[0];
10876
- return path ? `${url.origin}${path}/` : null;
10877
- }
10878
- var decodedSegment = (segment) => {
10879
- try {
10880
- return decodeURIComponent(segment);
10881
- } catch {
10882
- return ".";
10883
- }
10884
- };
10885
- var isDotPath = (url, prefix) => {
10886
- const rest = url.pathname.slice(new URL(prefix).pathname.length);
10887
- return [
10888
- ...rest.split("/").map(decodedSegment),
10889
- ...decodeWellFormedEscapes(rest).split(/[\\/]/)
10890
- ].some((segment) => segment.startsWith("."));
10891
- };
10892
- function captureLoadGrant(load, captureUrl) {
10893
- const prefix = capturePreviewPrefix(captureUrl);
10894
- if (!prefix || !load.url.startsWith(prefix)) return null;
10895
- const url = new URL(load.url);
10896
- if (isDotPath(url, prefix) || !GRANTED_TYPES2.has(load.resourceType)) return null;
10897
- const proxyWait = (load.resourceType === "XHR" || load.resourceType === "Fetch") && url.searchParams.has(PROXY_PARAM) && VIDEO_FILE.test(url.pathname);
10898
- if (load.method === "OPTIONS") return proxyWait ? "preflight" : null;
10899
- return load.method === "GET" ? "read" : null;
10900
- }
10901
- var OPAQUE_CALLER = [
10902
- { name: "Access-Control-Allow-Origin", value: "null" },
10903
- { name: "X-Content-Type-Options", value: "nosniff" },
10904
- {
10905
- name: "Access-Control-Expose-Headers",
10906
- value: `Retry-After, ${PREVIEW_PROXY_PROGRESS_HEADER}, Content-Range`
10907
- }
10908
- ];
10909
- var PREFLIGHT_ANSWER = [
10910
- { name: "Access-Control-Allow-Origin", value: "null" },
10911
- { name: "Access-Control-Allow-Methods", value: "GET" },
10912
- { name: "Access-Control-Allow-Headers", value: `Range, ${PREVIEW_PROXY_PRIORITY_HEADER}` }
10913
- ];
10914
- async function grantCaptureLoads(cdp, captureUrl) {
10915
- const prefix = capturePreviewPrefix(captureUrl);
10916
- if (!prefix) return;
10917
- cdp.on("Fetch.requestPaused", (event) => {
10918
- const { requestId } = event;
10919
- const headers = event.responseHeaders ?? [];
10920
- const status = event.responseStatusCode;
10921
- const grant = captureLoadGrant(
10922
- { url: event.request.url, method: event.request.method, resourceType: event.resourceType },
10923
- captureUrl
10924
- );
10925
- const answered = status !== void 0 && !headers.some((header) => header.name.toLowerCase() === "access-control-allow-origin");
10926
- const sent = grant === "preflight" ? cdp.send("Fetch.fulfillRequest", {
10927
- requestId,
10928
- responseCode: 204,
10929
- responseHeaders: PREFLIGHT_ANSWER
10930
- }) : grant && answered ? cdp.send("Fetch.continueResponse", {
10931
- requestId,
10932
- responseCode: status,
10933
- responseHeaders: [...headers, ...OPAQUE_CALLER]
10934
- }) : cdp.send("Fetch.continueRequest", { requestId });
10935
- void sent.catch(() => void 0);
10936
- });
10937
- await cdp.send("Fetch.enable", {
10938
- patterns: [...GRANTED_TYPES2].map((resourceType) => ({
10939
- urlPattern: `${prefix}*`,
10940
- resourceType,
10941
- requestStage: "Response"
10942
- }))
10943
- });
10944
- }
10945
10984
  function thumbnailDeviceScaleFactor({
10946
10985
  width,
10947
10986
  height,
@@ -11022,9 +11061,6 @@ export {
11022
11061
  injectMediaCodecMapIntoHtml,
11023
11062
  STUDIO_MOTION_PATH,
11024
11063
  createStudioMotionRenderBodyScript,
11025
- STUDIO_PREVIEW_MARK_META,
11026
- STUDIO_PREVIEW_CAPTURE_MODE,
11027
- PREVIEW_FOR_ANOTHER_SITE_META,
11028
11064
  buildSubCompositionHtml,
11029
11065
  compositionsAffectedBy,
11030
11066
  applyFileMutations,
@@ -11032,11 +11068,11 @@ export {
11032
11068
  affectsPreview,
11033
11069
  PREVIEW_BUNDLE_OPTIONS,
11034
11070
  originForListeningAddress,
11071
+ captureLoadGrant,
11072
+ grantCaptureLoads,
11035
11073
  createStudioApi,
11036
11074
  duplicateElementInHtml,
11037
11075
  createPreviewDocumentStore,
11038
- captureLoadGrant,
11039
- grantCaptureLoads,
11040
11076
  thumbnailDeviceScaleFactor,
11041
11077
  createBackgroundRemovalJob
11042
11078
  };
@@ -10,7 +10,7 @@ import {
10
10
  } from "./chunk-D54ZDCZR.js";
11
11
  import {
12
12
  findFfBinary
13
- } from "./chunk-E7T5SMDK.js";
13
+ } from "./chunk-GWSMTN55.js";
14
14
 
15
15
  // src/audio/analysis/decode.ts
16
16
  import { execFile } from "child_process";
@@ -74,7 +74,7 @@ import {
74
74
  } from "./chunk-WFQJ6EJ6.js";
75
75
  import {
76
76
  findFfBinary
77
- } from "./chunk-E7T5SMDK.js";
77
+ } from "./chunk-GWSMTN55.js";
78
78
  import {
79
79
  __commonJS,
80
80
  __require,
@@ -13,7 +13,7 @@ import {
13
13
  import {
14
14
  DEFAULT_CONFIG,
15
15
  resolvePageNavigationTimeout
16
- } from "./chunk-GA6QR6LN.js";
16
+ } from "./chunk-PCNNMAUX.js";
17
17
  import {
18
18
  parseFps
19
19
  } from "./chunk-4IUOWNDS.js";
@@ -7,12 +7,12 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  RegistryCompatibilityError,
9
9
  gateRegistryItemsCompatibility
10
- } from "./chunk-OWS4ZWEY.js";
10
+ } from "./chunk-OYEGPK3Q.js";
11
11
  import {
12
12
  forgetReceivedFiles,
13
13
  receivedFiles,
14
14
  recordReceivedFiles
15
- } from "./chunk-GIOLHGCC.js";
15
+ } from "./chunk-QX4TZ2RK.js";
16
16
  import {
17
17
  readJsonFlag
18
18
  } from "./chunk-EHZESMRB.js";
@@ -28,7 +28,7 @@ import {
28
28
  import {
29
29
  resolveItemWithDependencies,
30
30
  resolveItemsByTag
31
- } from "./chunk-SVIA7POL.js";
31
+ } from "./chunk-AHXRYOTC.js";
32
32
  import {
33
33
  InvalidVariableValuesError,
34
34
  prepareItem,
@@ -40,7 +40,7 @@ import {
40
40
  } from "./chunk-ATKA5KHE.js";
41
41
  import {
42
42
  trackRegistryItemAdded
43
- } from "./chunk-CNZOKODL.js";
43
+ } from "./chunk-FPRHOB5W.js";
44
44
  import {
45
45
  defineCommand
46
46
  } from "./chunk-DL4OD7IA.js";
@@ -66,7 +66,7 @@ import {
66
66
  } from "./chunk-66W5IWLO.js";
67
67
  import {
68
68
  findTrustedExecutable
69
- } from "./chunk-E7T5SMDK.js";
69
+ } from "./chunk-GWSMTN55.js";
70
70
 
71
71
  // src/commands/add.ts
72
72
  import { existsSync, readFileSync } from "fs";