hyperframes 0.9.3 → 0.9.5
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.
- package/dist/{add-NWSVMTMY.js → add-XI5CW2YO.js} +11 -11
- package/dist/{agentPromptGenerator-7WPRSD2B.js → agentPromptGenerator-EEP7CJRK.js} +5 -5
- package/dist/{animatedGifPrep-ARJB7VKZ.js → animatedGifPrep-3VKPC32B.js} +5 -5
- package/dist/api.js +18 -18
- package/dist/{asset-PMV7EMPY.js → asset-RYVHIREA.js} +2 -2
- package/dist/{assetCataloger-CW5ZF3EA.js → assetCataloger-MG3GSWNQ.js} +6 -6
- package/dist/{audio-AYMZG3JI.js → audio-CNKU2KQR.js} +11 -11
- package/dist/{auth-YCKUAZMW.js → auth-MX2SGZQH.js} +1 -1
- package/dist/{autoUpdate-C3OVDSJ7.js → autoUpdate-MB3SWOXG.js} +2 -2
- package/dist/{backgroundChecks-27PYCU56.js → backgroundChecks-TYCDOGQX.js} +3 -3
- package/dist/backgroundChecksWorker.js +3 -3
- package/dist/{batchRender-PBG4CGXF.js → batchRender-PHXZBVEA.js} +3 -3
- package/dist/{beats-WETFDMWG.js → beats-5SXSGNUM.js} +7 -7
- package/dist/{benchmark-VIISD4NB.js → benchmark-V5Y5OQ3W.js} +8 -8
- package/dist/{browser-FWDS345L.js → browser-CJ2HDBEC.js} +3 -3
- package/dist/{bundleWithLocalizedFonts-KBSF7WWN.js → bundleWithLocalizedFonts-2FPP3MMD.js} +2 -2
- package/dist/{capture-4XJA235Z.js → capture-424KH55L.js} +10 -10
- package/dist/{capture-KLDMUL25.js → capture-KE3474CJ.js} +3 -3
- package/dist/{captureCompositionFrame-TL5DY3IC.js → captureCompositionFrame-ZPZCQTYL.js} +10 -10
- package/dist/{catalog-O2JZGWCQ.js → catalog-3S4LAGZH.js} +18 -15
- package/dist/{catch-up-4LHO7VC5.js → catch-up-7ZLNBOG4.js} +4 -4
- package/dist/{check-GH3ESQCJ.js → check-6OCBPXX5.js} +35 -35
- package/dist/{checkAudio-GMQUD43Q.js → checkAudio-O5RDEOEX.js} +8 -8
- package/dist/{checkBrowser-EXB55OSU.js → checkBrowser-DJPH634D.js} +29 -29
- package/dist/{chunk-NJG3TE3S.js → chunk-2RLI5ISA.js} +2 -2
- package/dist/chunk-2YQ2XYO5.js +5030 -0
- package/dist/{chunk-LQCC4C64.js → chunk-3B3LGZ36.js} +9 -9
- package/dist/{chunk-NLDG4RPK.js → chunk-44IJ426Z.js} +1 -1
- package/dist/{chunk-SRYZBN4K.js → chunk-46DXV7OQ.js} +2 -2
- package/dist/{chunk-UEZAP3BO.js → chunk-4W2ZN4HT.js} +1 -1
- package/dist/{chunk-KXKSG7YI.js → chunk-5FAU3XAO.js} +2 -2
- package/dist/{chunk-N5RKJQEH.js → chunk-5FFHLOVF.js} +1 -1
- package/dist/{chunk-YXCDL3RD.js → chunk-5T2D2XYR.js} +1 -1
- package/dist/{chunk-LZRMO35E.js → chunk-5TBRPDH3.js} +1 -1
- package/dist/{chunk-LYRR5QEW.js → chunk-6447ORC2.js} +1 -1
- package/dist/{chunk-WGY5AKV4.js → chunk-64OUBJSX.js} +1 -1
- package/dist/{chunk-Z3KQYFUV.js → chunk-6PLIPRVQ.js} +2 -2
- package/dist/{chunk-KSX76LZR.js → chunk-6U4EV64B.js} +8 -8
- package/dist/{chunk-3PPJNMDL.js → chunk-7FERR4YN.js} +1 -1
- package/dist/{chunk-WFMYK76M.js → chunk-7XCGHD55.js} +4 -4
- package/dist/{chunk-6YT7HWVE.js → chunk-ALBHEVJJ.js} +1 -1
- package/dist/{chunk-EP4SZ4Q7.js → chunk-ARNCWQNR.js} +1 -1
- package/dist/{chunk-NNGOKPDX.js → chunk-BXE6GDIL.js} +1 -1
- package/dist/{chunk-NJQRQEDK.js → chunk-C555UZ5B.js} +2 -2
- package/dist/{chunk-3SQLCJBU.js → chunk-CGXL36FR.js} +1 -1
- package/dist/{chunk-NZ35JIRT.js → chunk-CRDXU4IX.js} +9 -9
- package/dist/{chunk-F6OEVGWZ.js → chunk-CS6UO5NC.js} +1 -1
- package/dist/{chunk-X5HZ56HA.js → chunk-DRXVRDUX.js} +1 -1
- package/dist/{chunk-HYRFAJAT.js → chunk-EG2ESF6S.js} +1 -1
- package/dist/{chunk-JGLOO2TU.js → chunk-FEC4UQK2.js} +5 -5
- package/dist/{chunk-KW5QUEOQ.js → chunk-GC2GKCRQ.js} +17 -17
- package/dist/{chunk-3EUFRJDT.js → chunk-H7KAHDJJ.js} +3 -3
- package/dist/{chunk-SUCPNYHK.js → chunk-HDKRDALC.js} +1 -1
- package/dist/{chunk-QN4CNGPQ.js → chunk-HMMHCSSN.js} +1 -1
- package/dist/{chunk-3TSTVDBN.js → chunk-HWIGWPIG.js} +1 -1
- package/dist/{chunk-LF6Y2NW2.js → chunk-HZDSKYTV.js} +2 -5
- package/dist/{chunk-VCJ3RLHQ.js → chunk-HZMM3D6P.js} +1 -1
- package/dist/{chunk-UBVGTHQP.js → chunk-JAJ6PAR6.js} +7 -7
- package/dist/{chunk-4NICETCR.js → chunk-JAYAOI3W.js} +1 -1
- package/dist/{chunk-YMURBIUA.js → chunk-JD7MLLJD.js} +4 -4
- package/dist/{chunk-J6ILNTQN.js → chunk-JDT5PZWS.js} +1 -1
- package/dist/{chunk-ZG3N2RPH.js → chunk-JX5GUEFA.js} +1 -1
- package/dist/{chunk-M35ASY5D.js → chunk-JZJ3LLIO.js} +1 -1
- package/dist/{chunk-VUANJYUD.js → chunk-K4SINZFP.js} +2 -2
- package/dist/{chunk-L3OZV3UQ.js → chunk-KLJEGC6M.js} +1 -1
- package/dist/{chunk-A37ZYNF2.js → chunk-KW2ZREKY.js} +1 -1
- package/dist/{chunk-FHZUYZE7.js → chunk-M56MEMPF.js} +1 -1
- package/dist/{chunk-XMTPFGPD.js → chunk-MBOZUQFZ.js} +1 -1
- package/dist/{chunk-52IMFRLQ.js → chunk-MCROAQ7A.js} +250 -137
- package/dist/{chunk-SK3PA7HC.js → chunk-MGXQXY4C.js} +2 -2
- package/dist/{chunk-GDYVJQIZ.js → chunk-MNW4FTAJ.js} +12 -12
- package/dist/{chunk-6MSBCAWN.js → chunk-MX7NW3QW.js} +3 -3
- package/dist/{chunk-AQ7RL2LW.js → chunk-MYTROPEC.js} +2 -2
- package/dist/{chunk-GUZDUCWN.js → chunk-NRO2PLEC.js} +2 -2
- package/dist/{chunk-AOZGJMJV.js → chunk-NUGADGXQ.js} +7 -4
- package/dist/{chunk-ELWTUL6P.js → chunk-NVPB37H4.js} +2 -2
- package/dist/{chunk-UPI2EEOL.js → chunk-PMQ65BTY.js} +1 -1
- package/dist/{chunk-QUSKUXVE.js → chunk-PYOEIKGI.js} +2 -2
- package/dist/{chunk-UNNWK2JI.js → chunk-Q2LWMJAQ.js} +2 -2
- package/dist/{chunk-JDM247Z3.js → chunk-QIFINY2N.js} +7 -7
- package/dist/{chunk-UREVHKCW.js → chunk-RTUQDHKE.js} +167 -42
- package/dist/{chunk-RZPY6MDM.js → chunk-RUZ63CJF.js} +1 -1
- package/dist/{chunk-TVHLRGPF.js → chunk-RW4DTMPK.js} +7 -7
- package/dist/{chunk-WJX4A3IH.js → chunk-S5SVW6ZY.js} +13 -13
- package/dist/{chunk-RZMWWOS7.js → chunk-SBPDYU34.js} +1 -1
- package/dist/{chunk-GYH3IKW2.js → chunk-SXKFFBN3.js} +3 -3
- package/dist/{chunk-M4ZBZSNI.js → chunk-T46SP3UD.js} +2 -2
- package/dist/{chunk-RX6JF3NL.js → chunk-TI4JPSFS.js} +3 -3
- package/dist/{chunk-OS7TTSND.js → chunk-TWIPYH4G.js} +1 -1
- package/dist/{chunk-BJWGYU5Y.js → chunk-UL3SKAZB.js} +2 -2
- package/dist/{chunk-P6HALV2D.js → chunk-VPVO5COM.js} +1 -1
- package/dist/{chunk-K2A3YASA.js → chunk-WAK6IPMP.js} +4 -4
- package/dist/{chunk-KLLMWGA6.js → chunk-WAQX3AYB.js} +1 -1
- package/dist/{chunk-4JRB7Z3Y.js → chunk-XXFWK5Y7.js} +1 -1
- package/dist/{chunk-DV5HERBR.js → chunk-Y6TDJUHR.js} +2 -2
- package/dist/{chunk-RXYZSD7A.js → chunk-YGSQABOD.js} +2 -2
- package/dist/{chunk-YQLIUSY7.js → chunk-YK6ERJTN.js} +2 -2
- package/dist/{chunk-N3SUUHBH.js → chunk-YPBGUVLY.js} +1 -1
- package/dist/{chunk-4YHANIGZ.js → chunk-ZFQ4N6D2.js} +3 -3
- package/dist/{clean-LC6RS4IG.js → clean-ZKPZ4HHG.js} +15 -15
- package/dist/cli.js +56 -56
- package/dist/{cloud-PIRJVOK5.js → cloud-GQZYBRBI.js} +4 -4
- package/dist/{cloudrun-BYQPGHTF.js → cloudrun-TWSNNKIV.js} +4 -4
- package/dist/{compare-2ADTV43G.js → compare-3IXL3WVG.js} +26 -26
- package/dist/{compiler-UEPRJKBD.js → compiler-SKQTN3EA.js} +2 -2
- package/dist/{component-BE7DH74D.js → component-RV72K74J.js} +3 -3
- package/dist/{compositions-HH34BEOX.js → compositions-W2IKF36U.js} +9 -9
- package/dist/{curve-JX44LODX.js → curve-TRCKVHYB.js} +9 -9
- package/dist/{cuts-IIXW7MYG.js → cuts-SRXTGX33.js} +10 -10
- package/dist/{delete-HLYUSNAQ.js → delete-7PZLZFBE.js} +2 -2
- package/dist/{deploy-6TJ4IYL5.js → deploy-GORJQIPX.js} +1 -1
- package/dist/{describeProject-RI2A2JDQ.js → describeProject-ZIFVZUSV.js} +6 -6
- package/dist/{diff-KIYXNVXE.js → diff-PHRMVJMC.js} +20 -20
- package/dist/{dist-6FIIUR6D.js → dist-4KKPG6A5.js} +2 -2
- package/dist/{doctor-BW5SXYD6.js → doctor-C6Q2FECX.js} +9 -9
- package/dist/{energy-Q6U4IMQP.js → energy-CNXVSSE6.js} +10 -10
- package/dist/{events-P5SAJJVG.js → events-27C4TXPP.js} +3 -3
- package/dist/{events-FD7TXLK7.js → events-FSUH46NR.js} +11 -11
- package/dist/{events-4IWKLOCR.js → events-UG3LC2PB.js} +2 -2
- package/dist/{extract-P5TKDTTW.js → extract-GLPADLLV.js} +10 -10
- package/dist/{face-3FTPC2ZL.js → face-TTOHRJEY.js} +10 -10
- package/dist/{feedback-NL5UYUHT.js → feedback-BYONPSSM.js} +6 -6
- package/dist/{ffmpeg-BOXLIJAQ.js → ffmpeg-WAM27CD6.js} +5 -5
- package/dist/{figma-XWTLQXZW.js → figma-Y4UR2EDE.js} +3 -3
- package/dist/fontLocalizeCli.js +8 -8
- package/dist/{frames-ZILKTSKO.js → frames-CNQUJEUV.js} +11 -11
- package/dist/{generate-7UKX6ABW.js → generate-BPYDIEPB.js} +12 -12
- package/dist/{get-6JV7KGTM.js → get-4LY5VJW2.js} +2 -2
- package/dist/{gpuPolicy-C6SQ5IY3.js → gpuPolicy-OUHJ7GVX.js} +5 -5
- package/dist/{grade-compare-AMTWNUT4.js → grade-compare-WEZBE3WM.js} +27 -27
- package/dist/{heifImagePrep-VL7KOCKD.js → heifImagePrep-7L4HH33F.js} +6 -6
- package/dist/{help-6TW5UXKE.js → help-QKNWJOBV.js} +1 -1
- package/dist/{history-BBFCPEFJ.js → history-XQEWP2IW.js} +6 -6
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +65 -65
- package/dist/hyperframes-player.global.js +3 -3
- package/dist/{info-JACXETYM.js → info-AMRQ5R4N.js} +7 -7
- package/dist/{init-JMYL22Y5.js → init-4VTMKZSQ.js} +25 -25
- package/dist/{ink-AW2XKRLO.js → ink-KB3LZMJY.js} +10 -10
- package/dist/{inspect-5WOMJTHH.js → inspect-ZWN2DVO4.js} +27 -27
- package/dist/{installer-WRIPRO7P.js → installer-2NUMLKHQ.js} +4 -4
- package/dist/{keyframes-GTBNJNY4.js → keyframes-I456RFGP.js} +6 -6
- package/dist/{lambda-Y4WNMTV5.js → lambda-2QKB4BJM.js} +9 -9
- package/dist/{layout-5KBIO2CY.js → layout-WPHWXQCM.js} +27 -27
- package/dist/{lint-YCZFN7EC.js → lint-EO5DXJ36.js} +6 -6
- package/dist/{list-DQCQINX4.js → list-LZOUUJBY.js} +2 -2
- package/dist/{localPage-GGIDTF4A.js → localPage-SZWQWWJ7.js} +5 -5
- package/dist/{login-W6HPKUCC.js → login-IEWPNTGD.js} +4 -4
- package/dist/{look-J3EIOKIR.js → look-6L3CPY4H.js} +10 -10
- package/dist/{manager-GXCIO6AV.js → manager-C7677YAV.js} +6 -6
- package/dist/{measure-CN2A3IZY.js → measure-TINTS6YY.js} +11 -11
- package/dist/{media-treatment-UY5LCNM5.js → media-treatment-3BDHM4P6.js} +11 -11
- package/dist/{media-use-DLUMWJDU.js → media-use-JC2B2JSE.js} +1 -1
- package/dist/{models-6JWAVFZX.js → models-JMM25YO6.js} +9 -9
- package/dist/{motionShot-2FNVPAXB.js → motionShot-4WB3SH6V.js} +13 -13
- package/dist/{normalize-audio-6KRLNKU5.js → normalize-audio-2ZJKR5G3.js} +8 -8
- package/dist/{open-K5T3DAX5.js → open-LMYSLYH2.js} +11 -11
- package/dist/{parakeetRunner-FRVDYFI7.js → parakeetRunner-HTQVLX2B.js} +10 -10
- package/dist/{pipeline-HZTSP2O3.js → pipeline-FMVCPIRU.js} +8 -8
- package/dist/{play-QJGTMJJU.js → play-GFHBG3NZ.js} +18 -18
- package/dist/{preflight-4UCEW3VI.js → preflight-L5GC6ASI.js} +6 -6
- package/dist/{present-HKTEDR2P.js → present-PW3RWNWF.js} +14 -14
- package/dist/{preview-LK4K5ET7.js → preview-IRLHPLSD.js} +16 -16
- package/dist/{probe-5FQQXNKV.js → probe-FPHFC3SD.js} +9 -9
- package/dist/{producer-GVXPQQ2H.js → producer-M6IWCFMK.js} +1 -1
- package/dist/{projectConfig-HR6DG3LV.js → projectConfig-IVJE7A42.js} +6 -6
- package/dist/{publication-ZDDDABRK.js → publication-BS2YATIF.js} +2 -2
- package/dist/{publish-UTSFWLH5.js → publish-OTRA2JWM.js} +8 -8
- package/dist/{remove-background-UCI5SJ7B.js → remove-background-UV37Y7T7.js} +9 -9
- package/dist/{render-H66JS3A3.js → render-3FANM5MO.js} +5 -5
- package/dist/{render-PXFSYPTM.js → render-7VBLI4AZ.js} +37 -32
- package/dist/{render-RJLWIVGX.js → render-XSDVVBEY.js} +14 -14
- package/dist/{render-batch-Q2LHYTF5.js → render-batch-DPWJHKFY.js} +5 -5
- package/dist/{resolver-6WC7RO7O.js → resolver-VQ32ZH6Y.js} +4 -4
- package/dist/{sherpa-RPI2FY7W.js → sherpa-BSIBIIIO.js} +9 -9
- package/dist/{skills-5GES277Y.js → skills-S7JNBPZZ.js} +5 -5
- package/dist/{skillsUpdateCheck-B2M6U2XL.js → skillsUpdateCheck-WFEV6VYU.js} +3 -3
- package/dist/{snapshot-KG7YZVMZ.js → snapshot-NCWXYS2E.js} +44 -33
- package/dist/{src-B644ONLF.js → src-7WW3KXOI.js} +12 -4
- package/dist/{src-KYGXTF6B.js → src-AYBT7IBT.js} +15 -7
- package/dist/{staticProjectServer-G3D4J7AM.js → staticProjectServer-VYZV4BSU.js} +16 -16
- package/dist/studio/assets/{hyperframes-player-BHCO0AJz.js → hyperframes-player-Cum4k6V2.js} +3 -3
- package/dist/studio/assets/{index-VhjEqQ4-.js → index-BohL7wdo.js} +1 -1
- package/dist/studio/assets/{index-CWzE624c.js → index-CTbhykVD.js} +120 -120
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-OEZIX2NY.js → studio-api-OTNMLH4B.js} +8 -8
- package/dist/{studioServer-MRXZ7ESE.js → studioServer-AA4B3YP7.js} +45 -45
- package/dist/{sync-CFHYEHZY.js → sync-3M7VO3UJ.js} +10 -10
- package/dist/{telemetry-PEE4QWFW.js → telemetry-VJ3A6ZMD.js} +3 -3
- package/dist/{timeline-PXGMJPF5.js → timeline-ZLZ45W7F.js} +16 -16
- package/dist/{tokens-D4527YUF.js → tokens-WXEJNNJV.js} +2 -2
- package/dist/{transcribe-K4AYVYPV.js → transcribe-PPH5H67E.js} +8 -8
- package/dist/{transcribe-JAQAME5S.js → transcribe-XMVXOBHM.js} +16 -16
- package/dist/{updateCheck-KK2T5QGE.js → updateCheck-HDLNWLIC.js} +2 -2
- package/dist/{upgrade-WTE3UGLS.js → upgrade-6UXVTJII.js} +2 -2
- package/dist/{urlDownloader-3OVTM6UV.js → urlDownloader-DPN2KRCX.js} +4 -4
- package/dist/{validate-PIGAXOXV.js → validate-BZOURM4G.js} +21 -21
- package/dist/{video-QKOH7GUF.js → video-BE42DAT2.js} +6 -6
- package/dist/warmCheck.js +35 -35
- package/package.json +1 -1
- package/dist/chunk-MFSRGVZG.js +0 -5030
|
@@ -8,11 +8,11 @@ import {
|
|
|
8
8
|
normalizeRelPath,
|
|
9
9
|
resolveLocalImageSourcePath,
|
|
10
10
|
splitUrlSuffix
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-YGSQABOD.js";
|
|
12
12
|
import {
|
|
13
13
|
runFfmpeg,
|
|
14
14
|
runFfprobe
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-RTUQDHKE.js";
|
|
16
16
|
import {
|
|
17
17
|
renameWithRetry
|
|
18
18
|
} from "./chunk-YWRUQ7XZ.js";
|
|
@@ -6,23 +6,23 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
resolveProject
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-M56MEMPF.js";
|
|
10
10
|
import {
|
|
11
11
|
installPageFunctionGuard,
|
|
12
12
|
resolveCliChromeGpuMode,
|
|
13
13
|
seekCompositionTimeline,
|
|
14
14
|
waitForRuntimeReady
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-CRDXU4IX.js";
|
|
16
16
|
import {
|
|
17
17
|
pageNavigationTimeoutMs
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-TI4JPSFS.js";
|
|
19
19
|
import {
|
|
20
20
|
resolveCompositionViewportFromHtml
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-KW2ZREKY.js";
|
|
22
22
|
import {
|
|
23
23
|
launchManagedBrowser,
|
|
24
24
|
resolveManagedGpuMode
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-NRO2PLEC.js";
|
|
26
26
|
import {
|
|
27
27
|
defineCommand
|
|
28
28
|
} from "./chunk-DL4OD7IA.js";
|
|
@@ -31,14 +31,14 @@ import {
|
|
|
31
31
|
} from "./chunk-2GICKZ3I.js";
|
|
32
32
|
import {
|
|
33
33
|
resolveNaturalMediaTimelineDuration
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-2YQ2XYO5.js";
|
|
35
35
|
import {
|
|
36
36
|
decodeWellFormedEscapes
|
|
37
37
|
} from "./chunk-C2KEGBR3.js";
|
|
38
38
|
import {
|
|
39
39
|
printDeprecationNotice,
|
|
40
40
|
withMeta
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-HMMHCSSN.js";
|
|
42
42
|
import {
|
|
43
43
|
failureMessage,
|
|
44
44
|
jsonFailure
|
|
@@ -252,7 +252,7 @@ function extractCompositionErrorsFromLint(lintResult) {
|
|
|
252
252
|
async function localizeRemoteAssets(html) {
|
|
253
253
|
let dir;
|
|
254
254
|
try {
|
|
255
|
-
const { loadProducer } = await import("./producer-
|
|
255
|
+
const { loadProducer } = await import("./producer-M6IWCFMK.js");
|
|
256
256
|
const { localizeRemoteMediaSources, localizeRemoteImageSources, localizeRemoteFontFaces } = await loadProducer();
|
|
257
257
|
dir = mkdtempSync(join(tmpdir(), "hf-validate-assets-"));
|
|
258
258
|
const assetDir = dir;
|
|
@@ -273,9 +273,9 @@ async function localizeRemoteAssets(html) {
|
|
|
273
273
|
}
|
|
274
274
|
async function validateInBrowser(project, opts) {
|
|
275
275
|
const projectDir = project.dir;
|
|
276
|
-
const { bundleToSingleHtml } = await import("./compiler-
|
|
276
|
+
const { bundleToSingleHtml } = await import("./compiler-SKQTN3EA.js");
|
|
277
277
|
const { ensureBrowser } = await import("./manager-SAXHANEY.js");
|
|
278
|
-
const { serveStaticProjectHtml } = await import("./staticProjectServer-
|
|
278
|
+
const { serveStaticProjectHtml } = await import("./staticProjectServer-VYZV4BSU.js");
|
|
279
279
|
const { lintProject } = await import("./lintProject-SG4KRUAV.js");
|
|
280
280
|
const lintResult = await lintProject(projectDir);
|
|
281
281
|
const compositionErrors = extractCompositionErrorsFromLint(lintResult);
|
|
@@ -297,9 +297,9 @@ async function validateInBrowser(project, opts) {
|
|
|
297
297
|
try {
|
|
298
298
|
const browser = await ensureBrowser();
|
|
299
299
|
const puppeteer = await import("puppeteer-core");
|
|
300
|
-
const { buildChromeArgs, analyzeClipMediaFit } = await import("./src-
|
|
300
|
+
const { buildChromeArgs, analyzeClipMediaFit } = await import("./src-7WW3KXOI.js");
|
|
301
301
|
const requestedGpuMode = resolveCliChromeGpuMode();
|
|
302
|
-
const { assertWebGpuAdapterAvailable, compositionRequiresWebGpu, resolveLocalWebGpu } = await import("./gpuPolicy-
|
|
302
|
+
const { assertWebGpuAdapterAvailable, compositionRequiresWebGpu, resolveLocalWebGpu } = await import("./gpuPolicy-OUHJ7GVX.js");
|
|
303
303
|
const resolvedGpuMode = await resolveManagedGpuMode(requestedGpuMode, browser.executablePath);
|
|
304
304
|
const requiresWebGpu = compositionRequiresWebGpu(html);
|
|
305
305
|
const { gpuConfig, softwareWebGpu } = resolveLocalWebGpu(resolvedGpuMode, requiresWebGpu);
|
|
@@ -9,14 +9,14 @@ import {
|
|
|
9
9
|
} from "./chunk-SWC3QIEH.js";
|
|
10
10
|
import {
|
|
11
11
|
stoppedByCancelSignal
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-44IJ426Z.js";
|
|
13
13
|
import {
|
|
14
14
|
DEFAULT_MODEL,
|
|
15
15
|
ensureModel,
|
|
16
16
|
ensureWhisper,
|
|
17
17
|
hasFFmpeg,
|
|
18
18
|
pinnedWhisperModel
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-WAQX3AYB.js";
|
|
20
20
|
import {
|
|
21
21
|
sha256File
|
|
22
22
|
} from "./chunk-RZ6CXJ56.js";
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
findFFmpeg,
|
|
25
25
|
findFFprobe,
|
|
26
26
|
getFFmpegInstallHint
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-MBOZUQFZ.js";
|
|
28
28
|
import {
|
|
29
29
|
findWavChunk
|
|
30
30
|
} from "./chunk-UOFAE5RF.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-
|
|
9
|
+
} from "./chunk-CS6UO5NC.js";
|
|
10
10
|
import {
|
|
11
11
|
resolveWithinProject
|
|
12
12
|
} from "./chunk-ALVXFXUG.js";
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
MAX_AUDIO_GAIN_DB,
|
|
15
15
|
formatAudioGain,
|
|
16
16
|
isAudibleVideoElement
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-2YQ2XYO5.js";
|
|
18
18
|
import {
|
|
19
19
|
findFfBinary
|
|
20
20
|
} from "./chunk-HYRPH6LL.js";
|
|
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
resolveCaptureBrowserGpuMode
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-46DXV7OQ.js";
|
|
10
10
|
import {
|
|
11
11
|
explainChromeLaunchFailure,
|
|
12
12
|
inAgentSandbox,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
oneProcessOverPipe,
|
|
16
16
|
pipeLaunchClosedOnMac,
|
|
17
17
|
sandboxDeniedRemediation
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-RTUQDHKE.js";
|
|
19
19
|
import {
|
|
20
20
|
processIsAlive
|
|
21
21
|
} from "./chunk-KGPLIH7B.js";
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
} from "./chunk-T2WJO4XM.js";
|
|
28
28
|
import {
|
|
29
29
|
ITEM_TYPE_DIRS
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-HWIGWPIG.js";
|
|
31
31
|
import {
|
|
32
32
|
realProjectRoot
|
|
33
33
|
} from "./chunk-OFQWTKPW.js";
|
|
@@ -2858,7 +2858,8 @@ async function fetchJson(url, validate) {
|
|
|
2858
2858
|
if (!validate(data)) throw new Error("Invalid registry manifest");
|
|
2859
2859
|
return data;
|
|
2860
2860
|
}
|
|
2861
|
-
|
|
2861
|
+
var fetchRegistryManifest = (baseUrl = DEFAULT_REGISTRY_URL, options) => readRegistryManifest(baseUrl, options).catch(() => void 0);
|
|
2862
|
+
async function readRegistryManifest(baseUrl = DEFAULT_REGISTRY_URL, options) {
|
|
2862
2863
|
const url = registryPathUrl(baseUrl, "registry.json");
|
|
2863
2864
|
const cacheFile = cachePath(baseUrl, "registry");
|
|
2864
2865
|
const cached = readCacheEntry(cacheFile, validRegistryManifest);
|
|
@@ -2867,8 +2868,9 @@ async function fetchRegistryManifest(baseUrl = DEFAULT_REGISTRY_URL, options) {
|
|
|
2867
2868
|
const manifest = await fetchJson(url, validRegistryManifest);
|
|
2868
2869
|
writeCache(cacheFile, manifest);
|
|
2869
2870
|
return manifest;
|
|
2870
|
-
} catch {
|
|
2871
|
-
return cached
|
|
2871
|
+
} catch (err) {
|
|
2872
|
+
if (cached) return cached.data;
|
|
2873
|
+
throw new Error(`The registry could not be read: ${describeCauseChain(err)}`, { cause: err });
|
|
2872
2874
|
}
|
|
2873
2875
|
}
|
|
2874
2876
|
async function fetchItemManifest(name, type, baseUrl = DEFAULT_REGISTRY_URL, options) {
|
|
@@ -2963,6 +2965,7 @@ export {
|
|
|
2963
2965
|
validRegistryItem,
|
|
2964
2966
|
DEFAULT_REGISTRY_URL,
|
|
2965
2967
|
fetchRegistryManifest,
|
|
2968
|
+
readRegistryManifest,
|
|
2966
2969
|
fetchItemManifest,
|
|
2967
2970
|
fetchItemFile
|
|
2968
2971
|
};
|
|
@@ -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-
|
|
9
|
+
} from "./chunk-5FFHLOVF.js";
|
|
10
10
|
import {
|
|
11
11
|
grey,
|
|
12
12
|
readClip,
|
|
13
13
|
round,
|
|
14
14
|
videoClip,
|
|
15
15
|
writeImage
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-ARNCWQNR.js";
|
|
17
17
|
|
|
18
18
|
// src/measure/events.ts
|
|
19
19
|
var EVENT_W = 160;
|
|
@@ -8,14 +8,14 @@ import {
|
|
|
8
8
|
DEFAULT_REGISTRY_URL,
|
|
9
9
|
fetchItemFile,
|
|
10
10
|
validRegistryItem
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-NUGADGXQ.js";
|
|
12
12
|
import {
|
|
13
13
|
publishRegistryFile,
|
|
14
14
|
registryTargetPath
|
|
15
15
|
} from "./chunk-T2WJO4XM.js";
|
|
16
16
|
import {
|
|
17
17
|
validateVariables
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-HWIGWPIG.js";
|
|
19
19
|
import {
|
|
20
20
|
realProjectRoot
|
|
21
21
|
} from "./chunk-OFQWTKPW.js";
|
|
@@ -13,10 +13,10 @@ import {
|
|
|
13
13
|
} from "./chunk-XQ26I3PL.js";
|
|
14
14
|
import {
|
|
15
15
|
createProjectConfig
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-5TBRPDH3.js";
|
|
17
17
|
import {
|
|
18
18
|
isHyperframesProject
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-HWIGWPIG.js";
|
|
20
20
|
|
|
21
21
|
// src/utils/desktopApp.ts
|
|
22
22
|
import { spawn, spawnSync } from "child_process";
|
|
@@ -7,32 +7,32 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
RegistryCompatibilityError,
|
|
9
9
|
gateRegistryItemsCompatibility
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-YPBGUVLY.js";
|
|
11
11
|
import {
|
|
12
12
|
DEFAULT_PROJECT_CONFIG,
|
|
13
13
|
createProjectConfig,
|
|
14
14
|
loadProjectConfig,
|
|
15
15
|
projectConfigPath,
|
|
16
16
|
recordProjectRegistryItems
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-5TBRPDH3.js";
|
|
18
18
|
import {
|
|
19
19
|
resolveItemWithDependencies,
|
|
20
20
|
resolveItemsByTag
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-KLJEGC6M.js";
|
|
22
22
|
import {
|
|
23
23
|
InvalidVariableValuesError,
|
|
24
24
|
prepareItem,
|
|
25
25
|
publishItem
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-PYOEIKGI.js";
|
|
27
27
|
import {
|
|
28
28
|
DEFAULT_REGISTRY_URL
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-NUGADGXQ.js";
|
|
30
30
|
import {
|
|
31
31
|
readJsonFlag
|
|
32
32
|
} from "./chunk-EHZESMRB.js";
|
|
33
33
|
import {
|
|
34
34
|
trackRegistryItemAdded
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-64OUBJSX.js";
|
|
36
36
|
import {
|
|
37
37
|
defineCommand
|
|
38
38
|
} from "./chunk-DL4OD7IA.js";
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
} from "./chunk-2GICKZ3I.js";
|
|
42
42
|
import {
|
|
43
43
|
ITEM_TYPE_DIRS
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-HWIGWPIG.js";
|
|
45
45
|
import {
|
|
46
46
|
isProjectRootMissing,
|
|
47
47
|
realpath
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
renderFrameIdForRenderId,
|
|
43
43
|
resolveAuthoredTimingWindow,
|
|
44
44
|
toFps
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-HWIGWPIG.js";
|
|
46
46
|
import {
|
|
47
47
|
AUDIO_GROUP_RENDER_ID_ATTR,
|
|
48
48
|
AUTHORED_SOURCE_BEGIN,
|
|
@@ -85,7 +85,7 @@ import {
|
|
|
85
85
|
sourceTimeAt,
|
|
86
86
|
timeAtSourceTime,
|
|
87
87
|
volumeSegmentSampleCount
|
|
88
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-2YQ2XYO5.js";
|
|
89
89
|
import {
|
|
90
90
|
redactTelemetryString,
|
|
91
91
|
redactUrlQueryStrings
|
|
@@ -137,6 +137,162 @@ import {
|
|
|
137
137
|
detectWsl
|
|
138
138
|
} from "./chunk-7KDQAD2W.js";
|
|
139
139
|
|
|
140
|
+
// ../engine/src/services/referenceBackground.ts
|
|
141
|
+
var REFERENCE_BACKGROUND_FIELD = "reference_background";
|
|
142
|
+
function isByte(value) {
|
|
143
|
+
return typeof value === "number" && Number.isInteger(value) && value >= 0 && value <= 255;
|
|
144
|
+
}
|
|
145
|
+
function readRgb(value) {
|
|
146
|
+
if (!Array.isArray(value) || value.length !== 3) return null;
|
|
147
|
+
const [r, g, b] = value;
|
|
148
|
+
return isByte(r) && isByte(g) && isByte(b) ? [r, g, b] : null;
|
|
149
|
+
}
|
|
150
|
+
function referenceBackgroundResult(value) {
|
|
151
|
+
if (value !== null && typeof value === "object" && "kind" in value) {
|
|
152
|
+
if (value.kind === "solid" && "rgb" in value) {
|
|
153
|
+
const rgb = readRgb(value.rgb);
|
|
154
|
+
if (rgb) return { [REFERENCE_BACKGROUND_FIELD]: { kind: "solid", rgb } };
|
|
155
|
+
}
|
|
156
|
+
if (value.kind === "none" || value.kind === "unsupported_non_solid") {
|
|
157
|
+
return { [REFERENCE_BACKGROUND_FIELD]: { kind: value.kind } };
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
return { [REFERENCE_BACKGROUND_FIELD]: { kind: "unknown" } };
|
|
161
|
+
}
|
|
162
|
+
function createReferenceBackgroundRecorder(record2) {
|
|
163
|
+
let pending;
|
|
164
|
+
return (read) => {
|
|
165
|
+
pending ??= read().catch(() => ({ kind: "unknown" })).then((value) => record2(referenceBackgroundResult(value)));
|
|
166
|
+
return pending;
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
function layerIsIndeterminate(layer) {
|
|
170
|
+
return layer.varying || layer.opacity !== "1" || layer.filter !== "none" || layer.blend !== "normal";
|
|
171
|
+
}
|
|
172
|
+
function validLayer(layer) {
|
|
173
|
+
return layer.rgba.length === 4 && layer.rgba.every(isByte) && layer.image.length > 0;
|
|
174
|
+
}
|
|
175
|
+
function opaqueReference(rgb, indeterminate) {
|
|
176
|
+
return indeterminate ? { kind: "unknown" } : { kind: "solid", rgb };
|
|
177
|
+
}
|
|
178
|
+
function classifyReferenceBackground(observation) {
|
|
179
|
+
if (!observation || observation.layers.length === 0) return { kind: "unknown" };
|
|
180
|
+
const indeterminate = observation.layers.some(layerIsIndeterminate);
|
|
181
|
+
let translucent = false;
|
|
182
|
+
for (const layer of observation.layers) {
|
|
183
|
+
if (!validLayer(layer)) return { kind: "unknown" };
|
|
184
|
+
if (layer.image !== "none") return { kind: "unsupported_non_solid" };
|
|
185
|
+
const rgb = layer.rgba[3] === 255 ? readRgb(layer.rgba.slice(0, 3)) : null;
|
|
186
|
+
if (rgb) return opaqueReference(rgb, translucent || indeterminate);
|
|
187
|
+
translucent ||= layer.rgba[3] !== 0;
|
|
188
|
+
}
|
|
189
|
+
return !indeterminate && !translucent && observation.explicitNone ? { kind: "none" } : { kind: "unknown" };
|
|
190
|
+
}
|
|
191
|
+
async function observeReferenceBackground() {
|
|
192
|
+
const root = document.querySelector("[data-composition-id]");
|
|
193
|
+
if (!root || !document.body) return null;
|
|
194
|
+
window.__hf?.seek?.(0);
|
|
195
|
+
if ("__hfWaitForSeekCompletion" in window && typeof window.__hfWaitForSeekCompletion === "function") {
|
|
196
|
+
await window.__hfWaitForSeekCompletion();
|
|
197
|
+
}
|
|
198
|
+
const elements = [];
|
|
199
|
+
for (let element = root; element; element = element.parentElement)
|
|
200
|
+
elements.push(element);
|
|
201
|
+
const canvas = document.createElement("canvas");
|
|
202
|
+
canvas.width = canvas.height = 1;
|
|
203
|
+
const context = canvas.getContext("2d", { willReadFrequently: true });
|
|
204
|
+
if (!context) return null;
|
|
205
|
+
const layers = elements.map((element) => {
|
|
206
|
+
const style = getComputedStyle(element);
|
|
207
|
+
context.clearRect(0, 0, 1, 1);
|
|
208
|
+
if (!CSS.supports("color", style.backgroundColor))
|
|
209
|
+
return { rgba: [], image: "", opacity: "", filter: "", blend: "", varying: false };
|
|
210
|
+
context.fillStyle = style.backgroundColor;
|
|
211
|
+
context.fillRect(0, 0, 1, 1);
|
|
212
|
+
return {
|
|
213
|
+
rgba: Array.from(context.getImageData(0, 0, 1, 1).data),
|
|
214
|
+
image: style.backgroundImage,
|
|
215
|
+
opacity: style.opacity,
|
|
216
|
+
filter: style.filter,
|
|
217
|
+
blend: style.mixBlendMode,
|
|
218
|
+
varying: false
|
|
219
|
+
};
|
|
220
|
+
});
|
|
221
|
+
return { layers, explicitNone: false };
|
|
222
|
+
}
|
|
223
|
+
function hasChangingCssBackground() {
|
|
224
|
+
const root = document.querySelector("[data-composition-id]");
|
|
225
|
+
if (!root) return true;
|
|
226
|
+
const properties = [
|
|
227
|
+
"background",
|
|
228
|
+
"backgroundColor",
|
|
229
|
+
"backgroundImage",
|
|
230
|
+
"opacity",
|
|
231
|
+
"filter",
|
|
232
|
+
"mixBlendMode"
|
|
233
|
+
];
|
|
234
|
+
return document.getAnimations().some((animation) => {
|
|
235
|
+
const effect = animation.effect;
|
|
236
|
+
if (!(effect instanceof KeyframeEffect) || !(effect.target instanceof Element)) return false;
|
|
237
|
+
return effect.target.contains(root) && effect.getKeyframes().some((frame) => properties.some((key) => key in frame));
|
|
238
|
+
});
|
|
239
|
+
}
|
|
240
|
+
function hasChangingTimelineBackground() {
|
|
241
|
+
const root = document.querySelector("[data-composition-id]");
|
|
242
|
+
const timelines = "__timelines" in window ? window.__timelines : void 0;
|
|
243
|
+
if (!root || !timelines || typeof timelines !== "object") return false;
|
|
244
|
+
const children = Object.values(timelines).flatMap(
|
|
245
|
+
(timeline) => typeof timeline?.getChildren === "function" ? timeline.getChildren(true, true, false) : []
|
|
246
|
+
);
|
|
247
|
+
return children.some((tween) => {
|
|
248
|
+
const vars = { ...tween?.vars, ...tween?.vars?.css, ...tween?.vars?.startAt };
|
|
249
|
+
const targets = typeof tween?.targets === "function" ? tween.targets() : [];
|
|
250
|
+
const changesPaint = Object.keys(vars).some(
|
|
251
|
+
(key) => key.startsWith("background") || ["opacity", "filter", "autoAlpha", "mixBlendMode"].includes(key)
|
|
252
|
+
);
|
|
253
|
+
return changesPaint && targets.some((target) => target instanceof Element && target.contains(root));
|
|
254
|
+
});
|
|
255
|
+
}
|
|
256
|
+
function hasExplicitNoBackground() {
|
|
257
|
+
const root = document.querySelector("[data-composition-id]");
|
|
258
|
+
const elements = [];
|
|
259
|
+
for (let element = root; element; element = element.parentElement)
|
|
260
|
+
elements.push(element);
|
|
261
|
+
const declarations = elements.flatMap(
|
|
262
|
+
(element) => element instanceof HTMLElement || element instanceof SVGElement ? [element.style] : []
|
|
263
|
+
);
|
|
264
|
+
const sheets = [...document.styleSheets, ...document.adoptedStyleSheets].filter(
|
|
265
|
+
(sheet) => !sheet.disabled
|
|
266
|
+
);
|
|
267
|
+
for (const rule of sheets.flatMap((sheet) => Array.from(sheet.cssRules))) {
|
|
268
|
+
if (rule instanceof CSSFontFaceRule || rule instanceof CSSKeyframesRule) continue;
|
|
269
|
+
if (!(rule instanceof CSSStyleRule) || rule.cssRules.length > 0) return false;
|
|
270
|
+
if (elements.some((element) => element.matches(rule.selectorText)))
|
|
271
|
+
declarations.push(rule.style);
|
|
272
|
+
}
|
|
273
|
+
const backgrounds = declarations.filter(
|
|
274
|
+
(style) => style.getPropertyValue("background-color") || style.getPropertyValue("background-image")
|
|
275
|
+
);
|
|
276
|
+
return backgrounds.length > 0 && backgrounds.every((style) => style.getPropertyValue("background").trim() === "none");
|
|
277
|
+
}
|
|
278
|
+
async function readReferenceBackground(page) {
|
|
279
|
+
try {
|
|
280
|
+
const observation = await page.evaluate(observeReferenceBackground);
|
|
281
|
+
const initial = classifyReferenceBackground(observation);
|
|
282
|
+
if (!observation || initial.kind === "unsupported_non_solid") return initial;
|
|
283
|
+
const changes = await Promise.all([
|
|
284
|
+
page.evaluate(hasChangingCssBackground),
|
|
285
|
+
page.evaluate(hasChangingTimelineBackground)
|
|
286
|
+
]);
|
|
287
|
+
if (changes.some(Boolean)) return { kind: "unknown" };
|
|
288
|
+
if (initial.kind === "solid") return initial;
|
|
289
|
+
observation.explicitNone = await page.evaluate(hasExplicitNoBackground);
|
|
290
|
+
return classifyReferenceBackground(observation);
|
|
291
|
+
} catch {
|
|
292
|
+
return { kind: "unknown" };
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
|
|
140
296
|
// ../engine/src/config.ts
|
|
141
297
|
import { tmpdir } from "os";
|
|
142
298
|
import { join } from "path";
|
|
@@ -2630,44 +2786,6 @@ function holdRenderFrameVideos(ids, renderIdAttr) {
|
|
|
2630
2786
|
}).observe(document, { childList: true, subtree: true });
|
|
2631
2787
|
}
|
|
2632
2788
|
|
|
2633
|
-
// ../engine/src/services/webglRelease.ts
|
|
2634
|
-
function recordWebglContexts() {
|
|
2635
|
-
const w = window;
|
|
2636
|
-
w.__hf_gl_contexts = [];
|
|
2637
|
-
const canvasProto = HTMLCanvasElement.prototype;
|
|
2638
|
-
const orig = canvasProto.getContext;
|
|
2639
|
-
canvasProto.getContext = function(type, attrs) {
|
|
2640
|
-
const ctx = orig.call(this, type, attrs);
|
|
2641
|
-
if (ctx && (type === "webgl" || type === "webgl2" || type === "experimental-webgl")) {
|
|
2642
|
-
const list = w.__hf_gl_contexts ?? [];
|
|
2643
|
-
if (!list.some((r) => r.ctx === ctx)) list.push({ canvas: this, ctx });
|
|
2644
|
-
w.__hf_gl_contexts = list;
|
|
2645
|
-
}
|
|
2646
|
-
return ctx;
|
|
2647
|
-
};
|
|
2648
|
-
}
|
|
2649
|
-
async function releaseEndedWebglContexts(page, time) {
|
|
2650
|
-
return page.evaluate((t) => {
|
|
2651
|
-
const clipWindow = window.__hf?.clipWindow;
|
|
2652
|
-
if (!clipWindow) return 0;
|
|
2653
|
-
const hasEnded = (el) => {
|
|
2654
|
-
for (let up = el; up; up = up.parentElement) {
|
|
2655
|
-
const span = up.hasAttribute("data-hf-clip-hidden") ? clipWindow(up) : null;
|
|
2656
|
-
if (span && Number.isFinite(span.end) && span.end <= t) return true;
|
|
2657
|
-
}
|
|
2658
|
-
return false;
|
|
2659
|
-
};
|
|
2660
|
-
const live = (window.__hf_gl_contexts ?? []).filter(
|
|
2661
|
-
(r) => !r.lost && hasEnded(r.canvas)
|
|
2662
|
-
);
|
|
2663
|
-
for (const rec of live) {
|
|
2664
|
-
rec.lost = true;
|
|
2665
|
-
rec.ctx.getExtension("WEBGL_lose_context")?.loseContext();
|
|
2666
|
-
}
|
|
2667
|
-
return live.length;
|
|
2668
|
-
}, time);
|
|
2669
|
-
}
|
|
2670
|
-
|
|
2671
2789
|
// ../engine/src/services/drawElementCaptureError.ts
|
|
2672
2790
|
var DrawElementCaptureError = class extends Error {
|
|
2673
2791
|
frameIndex;
|
|
@@ -5700,6 +5818,7 @@ async function waitForCloseWithTimeout(promise) {
|
|
|
5700
5818
|
return !timedOut;
|
|
5701
5819
|
}
|
|
5702
5820
|
async function initDrawElementOrTransparentBackground(session, page, logInitPhase) {
|
|
5821
|
+
await session.options.recordReferenceBackground?.(() => readReferenceBackground(page));
|
|
5703
5822
|
const supersampling = (session.options.deviceScaleFactor ?? 1) !== 1;
|
|
5704
5823
|
const forceScreenshot = session.config?.forceScreenshot ?? false;
|
|
5705
5824
|
const forceDE = process.env.HF_FORCE_DRAWELEMENT === "1";
|
|
@@ -6082,7 +6201,6 @@ async function constructCaptureSession(input) {
|
|
|
6082
6201
|
}
|
|
6083
6202
|
});
|
|
6084
6203
|
await installMediaPageHooks(page, options);
|
|
6085
|
-
await page.evaluateOnNewDocument(recordWebglContexts);
|
|
6086
6204
|
if (useDrawElement) {
|
|
6087
6205
|
await page.evaluateOnNewDocument(forcePreservedDrawingBuffer);
|
|
6088
6206
|
await page.evaluateOnNewDocument(instrumentAcceleratedCanvases);
|
|
@@ -6647,6 +6765,10 @@ function recordSubTimelineWarning(session, timeoutMs) {
|
|
|
6647
6765
|
}
|
|
6648
6766
|
}
|
|
6649
6767
|
]);
|
|
6768
|
+
if (scriptFailure) {
|
|
6769
|
+
const failed = session.warnings.filter((w) => w.code === "sub_timeline_script_failure");
|
|
6770
|
+
session.options?.onSubTimelineScriptFailure?.(failed);
|
|
6771
|
+
}
|
|
6650
6772
|
}
|
|
6651
6773
|
var LIVE_MAP_MARKERS = [
|
|
6652
6774
|
{ selector: ".leaflet-container", library: "Leaflet" },
|
|
@@ -7142,7 +7264,6 @@ async function prepareFrameForCapture(session, frameIndex, time, seekOptions, he
|
|
|
7142
7264
|
const seekStart = Date.now();
|
|
7143
7265
|
session.captureStep = "seeking the timeline";
|
|
7144
7266
|
const hasPendingComposite = await seekPageTimeline(page, quantizedTime, seekOptions);
|
|
7145
|
-
await releaseEndedWebglContexts(page, quantizedTime);
|
|
7146
7267
|
session.captureStep = "decoding CSS background images";
|
|
7147
7268
|
await decodeDynamicCssBackgroundImages(page);
|
|
7148
7269
|
const seekMs = Date.now() - seekStart;
|
|
@@ -19231,6 +19352,10 @@ function buildHdrChromeArgs(width, height) {
|
|
|
19231
19352
|
}
|
|
19232
19353
|
|
|
19233
19354
|
export {
|
|
19355
|
+
REFERENCE_BACKGROUND_FIELD,
|
|
19356
|
+
referenceBackgroundResult,
|
|
19357
|
+
createReferenceBackgroundRecorder,
|
|
19358
|
+
readReferenceBackground,
|
|
19234
19359
|
DEFAULT_VP9_CPU_USED,
|
|
19235
19360
|
MIN_VP9_CPU_USED,
|
|
19236
19361
|
MAX_VP9_CPU_USED,
|
|
@@ -6,33 +6,33 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
parakeetRunner
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-JDT5PZWS.js";
|
|
10
10
|
import {
|
|
11
11
|
DecodeCancelled,
|
|
12
12
|
prepareSherpaWav,
|
|
13
13
|
sherpaUnsupportedReason,
|
|
14
14
|
transcribeWithSherpa
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-5FAU3XAO.js";
|
|
16
16
|
import {
|
|
17
17
|
idempotencyKey,
|
|
18
18
|
runJob
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-HDKRDALC.js";
|
|
20
20
|
import {
|
|
21
21
|
runFfmpeg
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-ARNCWQNR.js";
|
|
23
23
|
import {
|
|
24
24
|
initialModelForLanguage,
|
|
25
25
|
transcribe
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-MX7NW3QW.js";
|
|
27
27
|
import {
|
|
28
28
|
createRenderCancellationScope,
|
|
29
29
|
stoppedByCancelSignal
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-44IJ426Z.js";
|
|
31
31
|
import {
|
|
32
32
|
DEFAULT_MODEL,
|
|
33
33
|
findWhisper,
|
|
34
34
|
isWhisperUnavailable
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-WAQX3AYB.js";
|
|
36
36
|
import {
|
|
37
37
|
formatSrt,
|
|
38
38
|
formatVtt,
|