hyperframes 0.8.208 → 0.8.209
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-XMWRBMBR.js → add-VZKUIZEH.js} +14 -13
- package/dist/{animatedGifPrep-6XURJIPV.js → animatedGifPrep-PN4G4YPJ.js} +8 -6
- package/dist/api.js +19 -16
- package/dist/{appHistory-HIBH6XZW.js → appHistory-OHYU5ZBQ.js} +3 -2
- package/dist/{asset-I5GGEOB2.js → asset-I4PHGE57.js} +2 -2
- package/dist/{assetCataloger-YBPXUNUP.js → assetCataloger-LRAUXQ46.js} +8 -6
- package/dist/{audio-GFJCHH5W.js → audio-T7SAVYED.js} +27 -18
- package/dist/{auth-QOA55RYR.js → auth-GP6HTQT3.js} +1 -1
- package/dist/{autoUpdate-SPS4QPJU.js → autoUpdate-Z6GFPZAG.js} +2 -2
- package/dist/{backgroundChecks-HRJO7YK7.js → backgroundChecks-ZJ7JV52S.js} +3 -3
- package/dist/backgroundChecksWorker.js +3 -3
- package/dist/{batchRender-FBP3RKUF.js → batchRender-J3ETE23Y.js} +3 -3
- package/dist/{beats-VNGJ7F6W.js → beats-WF4FJCM5.js} +13 -10
- package/dist/{benchmark-NZ3N3MIV.js → benchmark-B7UPP4PQ.js} +8 -8
- package/dist/{browser-BD5BKRJ5.js → browser-SIUYD43U.js} +3 -3
- package/dist/{bundleWithLocalizedFonts-WXVNPAWD.js → bundleWithLocalizedFonts-RRGFY3XV.js} +2 -2
- package/dist/{capture-LMJ4TQRL.js → capture-J3GLHUKI.js} +2 -2
- package/dist/{capture-CXWXKWS5.js → capture-VYS4PCCJ.js} +13 -12
- package/dist/{captureCompositionFrame-ZKVCRYYU.js → captureCompositionFrame-SVLMPQYC.js} +13 -12
- package/dist/{catalog-WRXQSCAU.js → catalog-DVBNR422.js} +14 -13
- package/dist/{catch-up-MDSPABFC.js → catch-up-OBPMV7KG.js} +7 -6
- package/dist/{check-SIBBK5HA.js → check-MEALXNZK.js} +42 -40
- package/dist/{checkAudio-QQBR4HR7.js → checkAudio-RZ7WQYVN.js} +21 -12
- package/dist/{checkBrowser-4EBJLLIH.js → checkBrowser-2LEQ2LSX.js} +35 -33
- package/dist/{chunk-P7WGVXR7.js → chunk-3A4SB326.js} +6 -6
- package/dist/{chunk-FFDYRJBE.js → chunk-3PTZ2TD4.js} +1 -1
- package/dist/{chunk-4HT2L6W2.js → chunk-3PUXUIWB.js} +1 -1
- package/dist/chunk-3RATCY3W.js +205 -0
- package/dist/{chunk-X6MCIK7L.js → chunk-4BXEPVSA.js} +17 -11
- package/dist/{chunk-XOFBXLMG.js → chunk-5T4DP25D.js} +5 -3
- package/dist/{chunk-ULL3U6PV.js → chunk-66PNSZ7K.js} +1 -1
- package/dist/chunk-7VZEOCUY.js +98 -0
- package/dist/{chunk-TNTGGDSD.js → chunk-A7GDBL6D.js} +1 -1
- package/dist/{chunk-6WRN4WC6.js → chunk-AQTODJWP.js} +1 -1
- package/dist/{chunk-K4PHB3YQ.js → chunk-BYPDKF36.js} +1 -1
- package/dist/{chunk-MBGM26P5.js → chunk-CA3PXWN4.js} +1 -1
- package/dist/{chunk-SI7QCT2J.js → chunk-CBM4ZUVN.js} +5 -5
- package/dist/{chunk-IL2TMC6F.js → chunk-CIDCNE2D.js} +21 -5
- package/dist/chunk-D3MUHMFG.js +16 -0
- package/dist/{chunk-6N7D2GUV.js → chunk-D6T5BNSK.js} +17 -16
- package/dist/{chunk-XG3IZV62.js → chunk-DR47DSOY.js} +5 -5
- package/dist/{chunk-B5MPMIKQ.js → chunk-DVIX7UPH.js} +2 -2
- package/dist/{chunk-PSOAGSNO.js → chunk-EA5FUMJN.js} +1 -1
- package/dist/{chunk-VR3JLTZD.js → chunk-EVYDKSML.js} +3 -3
- package/dist/{chunk-XUQYC5DD.js → chunk-F4O4G4ZW.js} +5 -5
- package/dist/{chunk-VS4SK7BN.js → chunk-FB5BXGGF.js} +7 -7
- package/dist/{chunk-IIJVSCSH.js → chunk-GQZHLF5P.js} +13 -13
- package/dist/{chunk-J67FSI3Q.js → chunk-H7B526GH.js} +19 -16
- package/dist/{chunk-CSWCZA6V.js → chunk-I3ICHLHV.js} +2 -2
- package/dist/{chunk-EYEEZXLI.js → chunk-IJPFVMIE.js} +9 -9
- package/dist/{chunk-MPO25DQW.js → chunk-IQNS7O4W.js} +117 -135
- package/dist/{chunk-3O2E4Q66.js → chunk-J7A73K2B.js} +35 -22
- package/dist/{chunk-GHSO62LK.js → chunk-JC6BAQOG.js} +4 -10
- package/dist/{chunk-PKVA6MPV.js → chunk-JJRMN2RV.js} +63 -200
- package/dist/{chunk-XMRA7CQG.js → chunk-KCLBO65Y.js} +1 -1
- package/dist/{chunk-CP225S5H.js → chunk-KGBFHYHX.js} +4 -4
- package/dist/{chunk-QP2MJYTJ.js → chunk-L5XVBFUM.js} +1 -1
- package/dist/{chunk-DHQSDCWD.js → chunk-L7MGVFR4.js} +2 -1
- package/dist/{chunk-WNMVC3IT.js → chunk-LJ7H2A2C.js} +1 -1
- package/dist/{chunk-NZ6G5YWZ.js → chunk-LV4NWCJS.js} +1 -1
- package/dist/{chunk-QWBVPWUI.js → chunk-MI4V4HPE.js} +1 -1
- package/dist/{chunk-7CPI2DWL.js → chunk-MKALOCDV.js} +1 -1
- package/dist/{chunk-ENRFKCI6.js → chunk-MVNTJGDX.js} +3 -3
- package/dist/{chunk-GEO6THL3.js → chunk-NJZRXELC.js} +28 -25
- package/dist/{chunk-EOVYQ3IG.js → chunk-NQ2INEHX.js} +17 -17
- package/dist/{chunk-BLCKQPBE.js → chunk-NXNDHV26.js} +1 -1
- package/dist/{chunk-WABB4LZS.js → chunk-OK3QLJSF.js} +1 -1
- package/dist/{chunk-4KG3ESVO.js → chunk-OML6HQQN.js} +1 -1
- package/dist/{chunk-OTXXDONS.js → chunk-P2FSCR5B.js} +2 -2
- package/dist/{chunk-FC4WT5FX.js → chunk-P327BIJR.js} +1 -14
- package/dist/{chunk-43MW4SY7.js → chunk-P3OKYRGA.js} +3 -3
- package/dist/{chunk-S4KHJERB.js → chunk-PYVYF64E.js} +1 -1
- package/dist/{chunk-CZUAX3BV.js → chunk-QIDN4ML5.js} +1 -1
- package/dist/{chunk-DXACKQ3F.js → chunk-QIKZ2HZJ.js} +3 -3
- package/dist/{chunk-EGOXYG3M.js → chunk-R52YM6ZK.js} +1 -1
- package/dist/{chunk-MW2NQQ6Z.js → chunk-RAONLDN5.js} +2 -2
- package/dist/{chunk-MYO77JWR.js → chunk-RJO4X3AA.js} +1 -1
- package/dist/{chunk-LSMFOZ4F.js → chunk-RVG2JNDU.js} +1 -1
- package/dist/{chunk-7PAK7LZ5.js → chunk-SE6S4SGZ.js} +11 -13
- package/dist/{chunk-G2A6RC5R.js → chunk-SNLXWCET.js} +64 -48
- package/dist/{chunk-4F5NRJ6M.js → chunk-SOXQXX2M.js} +2 -2
- package/dist/{chunk-U6KN6OIP.js → chunk-SPMKVI6H.js} +1 -1
- package/dist/{chunk-6CWKORZO.js → chunk-SWHCYFEF.js} +27 -5
- package/dist/{chunk-PWEOSJ3E.js → chunk-TF7YE7J5.js} +3 -3
- package/dist/{chunk-Z5TGBEPJ.js → chunk-TSM67ADU.js} +1 -1
- package/dist/{chunk-BKDQFOKK.js → chunk-U5IZUWBW.js} +3 -3
- package/dist/{chunk-6JNSYFOH.js → chunk-V4VXWOIF.js} +3 -3
- package/dist/{chunk-ORFRUZPB.js → chunk-W32DVMX3.js} +2 -2
- package/dist/{chunk-4LTBQEPD.js → chunk-WLVHSGVL.js} +2 -2
- package/dist/chunk-XCIHCPJK.js +106 -0
- package/dist/{chunk-HUKQW4YE.js → chunk-Y2EVJBR6.js} +1 -1
- package/dist/{chunk-HZN7ICAF.js → chunk-YCGLT5B4.js} +1 -1
- package/dist/{chunk-5PCALX6G.js → chunk-YIFEK3UD.js} +1 -1
- package/dist/{chunk-6DSYBW7Z.js → chunk-YRO3PXWU.js} +1 -85
- package/dist/{chunk-5HB4JM7H.js → chunk-Z67J3TTU.js} +5 -3
- package/dist/{chunk-SKKQMW5X.js → chunk-ZMIRSWN6.js} +1 -1
- package/dist/{chunk-S2OLTAEL.js → chunk-ZPILPVYU.js} +2 -2
- package/dist/chunk-ZXTSUXSL.js +4870 -0
- package/dist/{clean-6GX7WAEC.js → clean-VWCYLOVI.js} +20 -17
- package/dist/cli.js +55 -55
- package/dist/{cloud-6PFJKLNL.js → cloud-HU3RXCVE.js} +4 -4
- package/dist/{cloudrun-UGG3ZFH7.js → cloudrun-OST6QBYD.js} +4 -4
- package/dist/commands/layout-audit.browser.js +1 -0
- package/dist/{compare-P4EBOP4B.js → compare-U2MJWZAH.js} +32 -30
- package/dist/{compiler-PG4RKX6K.js → compiler-DSP4MVEC.js} +5 -3
- package/dist/{component-SQPMI3W7.js → component-EC5XU6KR.js} +3 -3
- package/dist/{compositions-KRIHY3IY.js → compositions-AKYCTF4G.js} +12 -10
- package/dist/{delete-T5TO4SV6.js → delete-Z5MOEZM2.js} +5 -4
- package/dist/{deploy-AO6LQR5G.js → deploy-Y4LFVYXT.js} +1 -1
- package/dist/{dist-6IMEDVMC.js → dist-73YTUT3W.js} +1 -1
- package/dist/{dist-23AAB5X2.js → dist-JJL4QUDL.js} +2 -2
- package/dist/{doctor-QBUJQ655.js → doctor-7234U557.js} +12 -10
- package/dist/{events-J7CESLKQ.js → events-RUIZNTG3.js} +2 -2
- package/dist/{events-SIZO7YHI.js → events-SII53QYO.js} +3 -3
- package/dist/{feedback-74WOJ5PN.js → feedback-6CCDDQ36.js} +7 -7
- package/dist/{ffmpeg-AKUP6U2S.js → ffmpeg-C4VWK4M2.js} +8 -6
- package/dist/{figma-GGMYRR4Q.js → figma-GAN63U5U.js} +3 -3
- package/dist/fontLocalizeCli.js +11 -9
- package/dist/{get-PLKAI6JM.js → get-RZGUHZB4.js} +5 -4
- package/dist/{gpuPolicy-EYDAAPJF.js → gpuPolicy-BGJRCLP4.js} +8 -6
- package/dist/{grade-compare-UADJP4AV.js → grade-compare-XOBN52WV.js} +33 -31
- package/dist/{heifImagePrep-KDF3OPOK.js → heifImagePrep-DCHSYGW7.js} +9 -7
- package/dist/{help-WSQQ555Q.js → help-O2IV6PUC.js} +1 -1
- package/dist/{history-VSQ2DQ3V.js → history-GPTEM4UX.js} +9 -8
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +64 -64
- package/dist/hyperframes-player.global.js +1 -1
- package/dist/{info-MOQ4LRC3.js → info-7Y3JPN7C.js} +7 -7
- package/dist/{init-EONQSZJG.js → init-L6W5WG5K.js} +34 -29
- package/dist/{inspect-OLCVLHOU.js → inspect-MQZANGQY.js} +33 -31
- package/dist/{installer-GHISA75B.js → installer-DCIMLYB6.js} +4 -4
- package/dist/{keyframes-DGQYCY24.js → keyframes-WNJIKL4G.js} +6 -6
- package/dist/{lambda-AMMWF2YH.js → lambda-FEA4SSFK.js} +12 -10
- package/dist/{layout-R6CAPGRO.js → layout-AUQAYDJU.js} +33 -31
- package/dist/{lint-QZJEYPHD.js → lint-A33IHYID.js} +7 -7
- package/dist/{lintProject-W3YVHAGP.js → lintProject-KCN7MRBN.js} +1 -1
- package/dist/{list-KCJID4SP.js → list-56JHCET6.js} +5 -4
- package/dist/{login-7HKBEPJS.js → login-HUOM4GNP.js} +4 -4
- package/dist/{manager-6YSKJMVD.js → manager-SDRJOMPR.js} +9 -7
- package/dist/{media-treatment-E3DL6LEZ.js → media-treatment-5TGZOD67.js} +14 -12
- package/dist/{models-URWI7YEG.js → models-ABDX6TXI.js} +12 -10
- package/dist/{motionShot-27IXMDJK.js → motionShot-AV2WRH2C.js} +16 -15
- package/dist/{normalize-audio-WGRLPR3P.js → normalize-audio-M7T25DST.js} +10 -7
- package/dist/{open-LQ35PLEN.js → open-IRNZY5XN.js} +15 -14
- package/dist/{parakeetRunner-XASVIDTI.js → parakeetRunner-2EJUIMOJ.js} +16 -13
- package/dist/{pipeline-GA7QVCHS.js → pipeline-QGKOJKXS.js} +9 -7
- package/dist/{play-RYZP77CI.js → play-2SQLHM5B.js} +24 -21
- package/dist/{preflight-HJFSJXXF.js → preflight-ZHXMG2SM.js} +9 -7
- package/dist/{present-YBMLOWZV.js → present-RERVL6R7.js} +19 -16
- package/dist/{preview-QIRKJCRV.js → preview-S6RQOMHE.js} +22 -20
- package/dist/{producer-524FDOLX.js → producer-DBRGH2FI.js} +1 -1
- package/dist/{projectConfig-IDQN5ZRW.js → projectConfig-TUMDULTL.js} +9 -8
- package/dist/{publication-3X3IGSDO.js → publication-7VGXIFVZ.js} +2 -2
- package/dist/{publish-2BF7K6HX.js → publish-KJB2AGHL.js} +14 -11
- package/dist/{remove-background-EZBCEFT6.js → remove-background-EFWXPLS4.js} +10 -8
- package/dist/{render-TEEBI2UT.js → render-5O5ARP6C.js} +49 -50
- package/dist/{render-JFMTAXHD.js → render-7S6UBLOE.js} +36 -36
- package/dist/{render-EFUA2A6A.js → render-HV6AA22W.js} +5 -5
- package/dist/{render-batch-XTYNXVSW.js → render-batch-7UEOULJJ.js} +5 -5
- package/dist/renderSetupWorker.js +1 -1
- package/dist/{resolver-FZS6TN6B.js → resolver-HFTEER5V.js} +4 -4
- package/dist/{sherpa-TQIAIKTH.js → sherpa-HSSM76FL.js} +15 -12
- package/dist/{skills-S6ZG5KKH.js → skills-RQO5K6WL.js} +5 -5
- package/dist/{skillsUpdateCheck-XC7JQL3F.js → skillsUpdateCheck-S5WL2YLZ.js} +3 -3
- package/dist/{snapshot-ERYZIM32.js → snapshot-4RGI235E.js} +86 -52
- package/dist/{src-6XOMREMS.js → src-ALOV4D57.js} +24 -9
- package/dist/{src-OL6RHPE4.js → src-D75YYW2M.js} +10 -8
- package/dist/{staticProjectServer-JYDDGPAH.js → staticProjectServer-DIHWPJ6B.js} +21 -18
- package/dist/studio/assets/{hyperframes-player-5dRdMVOq.js → hyperframes-player-CMH8OeX2.js} +1 -1
- package/dist/studio/assets/{index-Bu3mJUU2.js → index-DQam8zzE.js} +4 -4
- package/dist/studio/assets/{index-ZqyQ91pm.js → index-DjHzuJGR.js} +1 -1
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-GRU4SHKD.js → studio-api-A2VSWTVF.js} +13 -10
- package/dist/{studioServer-OYPBEI5B.js → studioServer-PECYWZHS.js} +53 -51
- package/dist/{synthesize-QZHRXGRY.js → synthesize-RVE7IUOJ.js} +3 -2
- package/dist/{telemetry-CPYINR63.js → telemetry-YDGXGOLH.js} +3 -3
- package/dist/{timeline-RGK5BMPD.js → timeline-5WUEEKZ3.js} +21 -18
- package/dist/{tokens-EX4BOWRW.js → tokens-XVFZPIUZ.js} +2 -2
- package/dist/{transcribe-RI52JMVW.js → transcribe-QWDUIJWK.js} +20 -17
- package/dist/{transcribe-MK367I6A.js → transcribe-TTJ6CDQT.js} +12 -9
- package/dist/{tts-AY4JO5NQ.js → tts-AGMCPQXE.js} +1 -1
- package/dist/{updateCheck-BIEJKQI4.js → updateCheck-P7STSJ6Q.js} +2 -2
- package/dist/{upgrade-ES3UUI7O.js → upgrade-NEIZ3KVL.js} +2 -2
- package/dist/{urlDownloader-XAGYSTAG.js → urlDownloader-ZZFNGZNG.js} +7 -5
- package/dist/{validate-A6GZHNEI.js → validate-T2SLBOXG.js} +26 -24
- package/dist/{video-OEMGR3MN.js → video-7OHSBSRT.js} +8 -6
- package/dist/warmCheck.js +42 -40
- package/package.json +1 -1
- package/dist/chunk-BQMAPNDA.js +0 -4830
- package/dist/chunk-DKPNNYBZ.js +0 -44
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
import { createRequire as __hf_createRequire } from "node:module";
|
|
2
|
+
import { fileURLToPath as __hf_fileURLToPath } from "node:url";
|
|
3
|
+
import { dirname as __hf_dirname } from "node:path";
|
|
4
|
+
var require = __hf_createRequire(import.meta.url);
|
|
5
|
+
var __filename = __hf_fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = __hf_dirname(__filename);
|
|
7
|
+
import {
|
|
8
|
+
videoStreamHasAlpha
|
|
9
|
+
} from "./chunk-5S7W3TUO.js";
|
|
10
|
+
import {
|
|
11
|
+
decodableAudioStream
|
|
12
|
+
} from "./chunk-D3MUHMFG.js";
|
|
13
|
+
import {
|
|
14
|
+
firstFrameColourArgs,
|
|
15
|
+
parseFirstFrameColour
|
|
16
|
+
} from "./chunk-MI4V4HPE.js";
|
|
17
|
+
import {
|
|
18
|
+
findFfBinary
|
|
19
|
+
} from "./chunk-VAS6HQX3.js";
|
|
20
|
+
|
|
21
|
+
// ../studio-server/dist/chunk-X73QTST2.js
|
|
22
|
+
import { execFile } from "child_process";
|
|
23
|
+
import { extname } from "path";
|
|
24
|
+
var execFileRunner = (command, args, options) => new Promise((resolvePromise) => {
|
|
25
|
+
execFile(
|
|
26
|
+
command,
|
|
27
|
+
args,
|
|
28
|
+
{ timeout: options?.timeout, maxBuffer: options?.maxBuffer, windowsHide: true },
|
|
29
|
+
(error, stdout, stderr) => {
|
|
30
|
+
if (error && error.code === "ENOENT") {
|
|
31
|
+
resolvePromise({ status: null, stdout: "", stderr: "", error });
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
if (error) {
|
|
35
|
+
const status = typeof error.code === "number" ? error.code : 1;
|
|
36
|
+
resolvePromise({ status, stdout: stdout ?? "", stderr: stderr ?? "" });
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
resolvePromise({ status: 0, stdout: stdout ?? "", stderr: stderr ?? "" });
|
|
40
|
+
}
|
|
41
|
+
);
|
|
42
|
+
});
|
|
43
|
+
var VIDEO_EXT = /* @__PURE__ */ new Set([
|
|
44
|
+
".mp4",
|
|
45
|
+
".mov",
|
|
46
|
+
".webm",
|
|
47
|
+
".mkv",
|
|
48
|
+
".avi",
|
|
49
|
+
".m4v",
|
|
50
|
+
".mxf",
|
|
51
|
+
".mts",
|
|
52
|
+
".m2ts",
|
|
53
|
+
".ts"
|
|
54
|
+
]);
|
|
55
|
+
var IMAGE_EXT = /* @__PURE__ */ new Set([".jpg", ".jpeg", ".png", ".webp", ".avif"]);
|
|
56
|
+
var AUDIO_EXT = /* @__PURE__ */ new Set([".mp3", ".wav", ".ogg", ".m4a", ".aac", ".flac"]);
|
|
57
|
+
function lower(value) {
|
|
58
|
+
return value?.toLowerCase() ?? "";
|
|
59
|
+
}
|
|
60
|
+
function inferKindFromPath(path) {
|
|
61
|
+
const ext = extname(path).toLowerCase();
|
|
62
|
+
if (VIDEO_EXT.has(ext)) return "video";
|
|
63
|
+
if (IMAGE_EXT.has(ext)) return "image";
|
|
64
|
+
if (AUDIO_EXT.has(ext)) return "audio";
|
|
65
|
+
return "unknown";
|
|
66
|
+
}
|
|
67
|
+
function colorLabel(input) {
|
|
68
|
+
if (input.isHdr) {
|
|
69
|
+
if (input.hdrTransfer === "pq") return "HDR PQ";
|
|
70
|
+
if (input.hdrTransfer === "hlg") return "HDR HLG";
|
|
71
|
+
return "HDR";
|
|
72
|
+
}
|
|
73
|
+
if (input.colorPrimaries.includes("bt709") || input.colorSpace.includes("bt709") || input.colorTransfer.includes("bt709")) {
|
|
74
|
+
return "SDR Rec.709";
|
|
75
|
+
}
|
|
76
|
+
return "SDR/unknown";
|
|
77
|
+
}
|
|
78
|
+
function classifyMediaColor(stream) {
|
|
79
|
+
const colorPrimaries = lower(stream?.color_primaries);
|
|
80
|
+
const colorSpace = lower(stream?.color_space);
|
|
81
|
+
const colorTransfer = lower(stream?.color_transfer);
|
|
82
|
+
const isHdr = colorPrimaries.includes("bt2020") || colorSpace.includes("bt2020") || colorTransfer === "smpte2084" || colorTransfer === "arib-std-b67";
|
|
83
|
+
const hdrTransfer = isHdr ? colorTransfer === "smpte2084" ? "pq" : colorTransfer === "arib-std-b67" ? "hlg" : "unknown" : null;
|
|
84
|
+
return {
|
|
85
|
+
dynamicRange: stream ? isHdr ? "hdr" : "sdr" : "unknown",
|
|
86
|
+
hdrTransfer,
|
|
87
|
+
label: stream ? colorLabel({ isHdr, hdrTransfer, colorPrimaries, colorSpace, colorTransfer }) : "Unknown",
|
|
88
|
+
isHdr,
|
|
89
|
+
codecName: stream?.codec_name,
|
|
90
|
+
profile: stream?.profile,
|
|
91
|
+
pixelFormat: stream?.pix_fmt,
|
|
92
|
+
colorSpace: stream?.color_space,
|
|
93
|
+
colorTransfer: stream?.color_transfer,
|
|
94
|
+
colorPrimaries: stream?.color_primaries,
|
|
95
|
+
bitsPerRawSample: stream?.bits_per_raw_sample
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
async function probeFirstFrameColour(filePath, runner = execFileRunner) {
|
|
99
|
+
const ffmpegPath = findFfBinary("ffmpeg", { configuredMustExist: true }) ?? (runner === execFileRunner ? void 0 : "ffmpeg");
|
|
100
|
+
if (!ffmpegPath) return {};
|
|
101
|
+
const result = await runner(ffmpegPath, firstFrameColourArgs(filePath), {
|
|
102
|
+
timeout: 15e3,
|
|
103
|
+
maxBuffer: 1024 * 1024
|
|
104
|
+
});
|
|
105
|
+
return result.status === 0 ? parseFirstFrameColour(String(result.stderr)) : {};
|
|
106
|
+
}
|
|
107
|
+
function bitDepthOf(stream) {
|
|
108
|
+
const raw = Number(stream.bits_per_raw_sample);
|
|
109
|
+
if (Number.isFinite(raw) && raw > 0) return raw;
|
|
110
|
+
const suffixed = /(\d{1,3})(?:le|be)$/.exec(stream.pix_fmt ?? "");
|
|
111
|
+
return suffixed ? Number(suffixed[1]) : 8;
|
|
112
|
+
}
|
|
113
|
+
function sourceFactsOf(stream, formatBitrate) {
|
|
114
|
+
if (!stream?.width || !stream.height) return void 0;
|
|
115
|
+
const bitrate = Number(stream.bit_rate ?? formatBitrate);
|
|
116
|
+
return {
|
|
117
|
+
width: stream.width,
|
|
118
|
+
height: stream.height,
|
|
119
|
+
bitDepth: bitDepthOf(stream),
|
|
120
|
+
bitrate: Number.isFinite(bitrate) ? bitrate : 0
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
var STREAM_SUMMARY_MAX = 12;
|
|
124
|
+
function summarizeStream(stream) {
|
|
125
|
+
const flags = Object.entries(stream.disposition ?? {}).filter(([, on]) => on === 1).map(([name]) => name);
|
|
126
|
+
return `${stream.codec_type ?? "?"}:${stream.codec_name ?? "?"}[${flags.join(",")}]`;
|
|
127
|
+
}
|
|
128
|
+
function audioOf(streams) {
|
|
129
|
+
const audioStream = decodableAudioStream(streams);
|
|
130
|
+
return audioStream === null ? { hasAudio: false } : { hasAudio: true, audioStream };
|
|
131
|
+
}
|
|
132
|
+
function metadataFromProbe(kind, parsed) {
|
|
133
|
+
const stream = parsed.streams?.find((item) => {
|
|
134
|
+
if (kind === "image") return item.codec_type === "video";
|
|
135
|
+
return item.codec_type === kind && item.disposition?.attached_pic !== 1;
|
|
136
|
+
});
|
|
137
|
+
const metadata = {
|
|
138
|
+
kind,
|
|
139
|
+
color: classifyMediaColor(stream),
|
|
140
|
+
streams: (parsed.streams ?? []).slice(0, STREAM_SUMMARY_MAX).map(summarizeStream)
|
|
141
|
+
};
|
|
142
|
+
if (kind === "video") {
|
|
143
|
+
Object.assign(metadata, audioOf(parsed.streams ?? []));
|
|
144
|
+
metadata.hasAlpha = stream !== void 0 && videoStreamHasAlpha(stream);
|
|
145
|
+
const duration = Number(parsed.format?.duration);
|
|
146
|
+
if (Number.isFinite(duration) && duration > 0) metadata.durationSeconds = duration;
|
|
147
|
+
metadata.source = sourceFactsOf(stream, parsed.format?.bit_rate);
|
|
148
|
+
}
|
|
149
|
+
return metadata;
|
|
150
|
+
}
|
|
151
|
+
async function probeAudioTrack(filePath, runner = execFileRunner) {
|
|
152
|
+
const result = await runner(
|
|
153
|
+
findFfBinary("ffprobe") ?? "ffprobe",
|
|
154
|
+
[
|
|
155
|
+
...["-v", "error", "-select_streams", "a"],
|
|
156
|
+
...["-show_entries", "stream=codec_type,codec_name,channels", "-of", "json", "--", filePath]
|
|
157
|
+
],
|
|
158
|
+
{ timeout: 3e4 }
|
|
159
|
+
);
|
|
160
|
+
if (result.status !== 0) return null;
|
|
161
|
+
const streams = JSON.parse(String(result.stdout || "{}")).streams ?? [];
|
|
162
|
+
const stream = decodableAudioStream(streams);
|
|
163
|
+
return stream === null ? null : { stream, channels: streams[stream]?.channels ?? 0 };
|
|
164
|
+
}
|
|
165
|
+
async function probeMediaMetadata(filePath, runner = execFileRunner) {
|
|
166
|
+
const kind = inferKindFromPath(filePath);
|
|
167
|
+
if (kind === "audio" || kind === "unknown") {
|
|
168
|
+
return { kind, color: classifyMediaColor(null) };
|
|
169
|
+
}
|
|
170
|
+
const ffprobePath = findFfBinary("ffprobe", { configuredMustExist: true }) ?? (runner === execFileRunner ? void 0 : "ffprobe");
|
|
171
|
+
if (!ffprobePath) {
|
|
172
|
+
return { kind, color: classifyMediaColor(null), probeError: "ffprobe unavailable" };
|
|
173
|
+
}
|
|
174
|
+
const result = await runner(
|
|
175
|
+
ffprobePath,
|
|
176
|
+
[
|
|
177
|
+
"-v",
|
|
178
|
+
"error",
|
|
179
|
+
"-show_entries",
|
|
180
|
+
"stream=codec_type,codec_name,profile,pix_fmt,color_space,color_transfer,color_primaries,bits_per_raw_sample,width,height,bit_rate:stream_disposition:stream_tags=alpha_mode:format=duration,bit_rate",
|
|
181
|
+
"-of",
|
|
182
|
+
"json",
|
|
183
|
+
"--",
|
|
184
|
+
filePath
|
|
185
|
+
],
|
|
186
|
+
{ timeout: 15e3, maxBuffer: 1024 * 1024 }
|
|
187
|
+
);
|
|
188
|
+
if (result.error?.code === "ENOENT") {
|
|
189
|
+
return { kind, color: classifyMediaColor(null), probeError: "ffprobe unavailable" };
|
|
190
|
+
}
|
|
191
|
+
if (result.status !== 0) {
|
|
192
|
+
return { kind, color: classifyMediaColor(null), probeError: "ffprobe failed" };
|
|
193
|
+
}
|
|
194
|
+
try {
|
|
195
|
+
return metadataFromProbe(kind, JSON.parse(String(result.stdout || "{}")));
|
|
196
|
+
} catch {
|
|
197
|
+
return { kind, color: classifyMediaColor(null), probeError: "ffprobe returned invalid json" };
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
export {
|
|
202
|
+
probeFirstFrameColour,
|
|
203
|
+
probeAudioTrack,
|
|
204
|
+
probeMediaMetadata
|
|
205
|
+
};
|
|
@@ -5,22 +5,20 @@ var require = __hf_createRequire(import.meta.url);
|
|
|
5
5
|
var __filename = __hf_fileURLToPath(import.meta.url);
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
|
+
resolveCaptureBrowserGpuMode
|
|
9
|
+
} from "./chunk-WLVHSGVL.js";
|
|
10
|
+
import {
|
|
11
|
+
requestCliExit
|
|
12
|
+
} from "./chunk-JVBRJMOP.js";
|
|
13
|
+
import {
|
|
14
|
+
explainChromeLaunchFailure,
|
|
8
15
|
inAgentSandbox,
|
|
9
16
|
isOneProcessOverPipe,
|
|
10
17
|
machServiceDenied,
|
|
11
18
|
oneProcessOverPipe,
|
|
12
19
|
pipeLaunchClosedOnMac,
|
|
13
20
|
sandboxDeniedRemediation
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import {
|
|
16
|
-
resolveCaptureBrowserGpuMode
|
|
17
|
-
} from "./chunk-4LTBQEPD.js";
|
|
18
|
-
import {
|
|
19
|
-
requestCliExit
|
|
20
|
-
} from "./chunk-JVBRJMOP.js";
|
|
21
|
-
import {
|
|
22
|
-
explainChromeLaunchFailure
|
|
23
|
-
} from "./chunk-MPO25DQW.js";
|
|
21
|
+
} from "./chunk-IQNS7O4W.js";
|
|
24
22
|
import {
|
|
25
23
|
processIsAlive
|
|
26
24
|
} from "./chunk-KGPLIH7B.js";
|
|
@@ -132,6 +130,7 @@ var BrowserCleanupError = class extends AggregateError {
|
|
|
132
130
|
var browsers = /* @__PURE__ */ new Set();
|
|
133
131
|
var closing = /* @__PURE__ */ new WeakMap();
|
|
134
132
|
var watchdogs = /* @__PURE__ */ new WeakMap();
|
|
133
|
+
var gracefulClose = /* @__PURE__ */ new WeakMap();
|
|
135
134
|
var pending = /* @__PURE__ */ new Map();
|
|
136
135
|
var diagnosing = /* @__PURE__ */ new Set();
|
|
137
136
|
var sessionCleanups = /* @__PURE__ */ new Set();
|
|
@@ -260,6 +259,8 @@ async function launchOwnedBrowser(puppeteer, options) {
|
|
|
260
259
|
browsers.add(browser);
|
|
261
260
|
const watchdog = watchChromeTree(child, launchedAt);
|
|
262
261
|
if (watchdog) watchdogs.set(browser, watchdog);
|
|
262
|
+
gracefulClose.set(browser, browser.close.bind(browser));
|
|
263
|
+
browser.close = () => closeManagedBrowser(browser);
|
|
263
264
|
child.once("exit", () => {
|
|
264
265
|
browsers.delete(browser);
|
|
265
266
|
destroyBrowserPipes(child);
|
|
@@ -325,6 +326,9 @@ async function descendantsToReap(pid) {
|
|
|
325
326
|
if (pid === void 0 || process.platform === "win32") return [];
|
|
326
327
|
return chromeDescendants(pid).catch(() => []);
|
|
327
328
|
}
|
|
329
|
+
function closeGracefully(browser) {
|
|
330
|
+
return (gracefulClose.get(browser) ?? (() => browser.close()))();
|
|
331
|
+
}
|
|
328
332
|
async function closedWithoutKill(browser) {
|
|
329
333
|
const child = browser.process();
|
|
330
334
|
if (!child) throw new Error("A managed browser lost its owned process.");
|
|
@@ -338,7 +342,9 @@ async function closedWithoutKill(browser) {
|
|
|
338
342
|
});
|
|
339
343
|
try {
|
|
340
344
|
await Promise.race([
|
|
341
|
-
browser
|
|
345
|
+
closeGracefully(browser).catch(
|
|
346
|
+
(error) => console.warn("Browser close failed:", error)
|
|
347
|
+
),
|
|
342
348
|
grace
|
|
343
349
|
]);
|
|
344
350
|
const clean = child.exitCode !== null || child.signalCode !== null;
|
|
@@ -8,12 +8,14 @@ import {
|
|
|
8
8
|
normalizeRelPath,
|
|
9
9
|
resolveLocalImageSourcePath,
|
|
10
10
|
splitUrlSuffix
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-Z67J3TTU.js";
|
|
12
12
|
import {
|
|
13
|
-
renameWithRetry,
|
|
14
13
|
runFfmpeg,
|
|
15
14
|
runFfprobe
|
|
16
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-IQNS7O4W.js";
|
|
16
|
+
import {
|
|
17
|
+
renameWithRetry
|
|
18
|
+
} from "./chunk-XCIHCPJK.js";
|
|
17
19
|
import {
|
|
18
20
|
parseHTML
|
|
19
21
|
} from "./chunk-GWTIFRF5.js";
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { createRequire as __hf_createRequire } from "node:module";
|
|
2
|
+
import { fileURLToPath as __hf_fileURLToPath } from "node:url";
|
|
3
|
+
import { dirname as __hf_dirname } from "node:path";
|
|
4
|
+
var require = __hf_createRequire(import.meta.url);
|
|
5
|
+
var __filename = __hf_fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = __hf_dirname(__filename);
|
|
7
|
+
import {
|
|
8
|
+
decodableAudioStream
|
|
9
|
+
} from "./chunk-D3MUHMFG.js";
|
|
10
|
+
import {
|
|
11
|
+
findFfBinary
|
|
12
|
+
} from "./chunk-VAS6HQX3.js";
|
|
13
|
+
|
|
14
|
+
// src/audio/analysis/decode.ts
|
|
15
|
+
import { execFile } from "child_process";
|
|
16
|
+
import { promisify } from "util";
|
|
17
|
+
var run = promisify(execFile);
|
|
18
|
+
function requiredBinary(name) {
|
|
19
|
+
const path = findFfBinary(name, { configuredMustExist: true });
|
|
20
|
+
if (!path) throw new Error(`${name} is required to analyze audio; run: npx hyperframes doctor`);
|
|
21
|
+
return path;
|
|
22
|
+
}
|
|
23
|
+
async function probeAudio(file) {
|
|
24
|
+
const { stdout } = await run(
|
|
25
|
+
requiredBinary("ffprobe"),
|
|
26
|
+
[
|
|
27
|
+
"-v",
|
|
28
|
+
"error",
|
|
29
|
+
"-select_streams",
|
|
30
|
+
"a",
|
|
31
|
+
"-show_streams",
|
|
32
|
+
"-show_format",
|
|
33
|
+
"-of",
|
|
34
|
+
"json",
|
|
35
|
+
"--",
|
|
36
|
+
file
|
|
37
|
+
],
|
|
38
|
+
{ maxBuffer: 8 * 1024 * 1024, windowsHide: true }
|
|
39
|
+
);
|
|
40
|
+
const parsed = JSON.parse(stdout);
|
|
41
|
+
const index = decodableAudioStream(parsed.streams ?? []);
|
|
42
|
+
const stream = index === null ? void 0 : parsed.streams?.[index];
|
|
43
|
+
if (index === null || !stream) return null;
|
|
44
|
+
return {
|
|
45
|
+
audioStream: index,
|
|
46
|
+
sampleRate: Number(stream.sample_rate),
|
|
47
|
+
channels: stream.channels ?? 1,
|
|
48
|
+
duration: Number(stream.duration ?? parsed.format?.duration ?? 0)
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
async function decodeAudio(file, window = {}, probed, format = {}) {
|
|
52
|
+
const probedInfo = probed ?? await probeAudio(file);
|
|
53
|
+
if (!probedInfo) return null;
|
|
54
|
+
const info = {
|
|
55
|
+
...probedInfo,
|
|
56
|
+
sampleRate: format.sampleRate ?? probedInfo.sampleRate,
|
|
57
|
+
channels: format.mono ? 1 : probedInfo.channels
|
|
58
|
+
};
|
|
59
|
+
const seek = window.from ? ["-ss", String(window.from)] : [];
|
|
60
|
+
const length = window.seconds === void 0 ? [] : ["-t", String(window.seconds)];
|
|
61
|
+
const { stdout } = await run(
|
|
62
|
+
requiredBinary("ffmpeg"),
|
|
63
|
+
[
|
|
64
|
+
"-v",
|
|
65
|
+
"error",
|
|
66
|
+
...seek,
|
|
67
|
+
"-i",
|
|
68
|
+
file,
|
|
69
|
+
...length,
|
|
70
|
+
"-map",
|
|
71
|
+
`0:a:${probedInfo.audioStream}`,
|
|
72
|
+
...format.mono ? ["-ac", "1"] : [],
|
|
73
|
+
...format.sampleRate ? ["-ar", String(format.sampleRate)] : [],
|
|
74
|
+
"-f",
|
|
75
|
+
"f32le",
|
|
76
|
+
"-acodec",
|
|
77
|
+
"pcm_f32le",
|
|
78
|
+
"-"
|
|
79
|
+
],
|
|
80
|
+
{ encoding: "buffer", maxBuffer: 2 * 1024 * 1024 * 1024, windowsHide: true }
|
|
81
|
+
);
|
|
82
|
+
const bytes = stdout.byteLength - stdout.byteLength % 4;
|
|
83
|
+
const interleaved = new Float32Array(
|
|
84
|
+
stdout.buffer.slice(stdout.byteOffset, stdout.byteOffset + bytes)
|
|
85
|
+
);
|
|
86
|
+
const frames = Math.floor(interleaved.length / info.channels);
|
|
87
|
+
const channels = Array.from({ length: info.channels }, (_, c) => {
|
|
88
|
+
const samples = new Float32Array(frames);
|
|
89
|
+
for (let i = 0; i < frames; i++) samples[i] = interleaved[i * info.channels + c];
|
|
90
|
+
return samples;
|
|
91
|
+
});
|
|
92
|
+
return { signal: { sampleRate: info.sampleRate, channels }, stream: info };
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export {
|
|
96
|
+
probeAudio,
|
|
97
|
+
decodeAudio
|
|
98
|
+
};
|
|
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
shouldTrack
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-EA5FUMJN.js";
|
|
10
10
|
|
|
11
11
|
// src/telemetry/renderObservability.ts
|
|
12
12
|
function renderObservabilityTelemetryPayload(observability) {
|
|
@@ -6,26 +6,26 @@ 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-NXNDHV26.js";
|
|
10
10
|
import {
|
|
11
11
|
DecodeCancelled,
|
|
12
12
|
prepareSherpaWav,
|
|
13
13
|
sherpaUnsupportedReason,
|
|
14
14
|
transcribeWithSherpa
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-KGBFHYHX.js";
|
|
16
16
|
import {
|
|
17
17
|
initialModelForLanguage,
|
|
18
18
|
transcribe
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-SWHCYFEF.js";
|
|
20
20
|
import {
|
|
21
21
|
createRenderCancellationScope,
|
|
22
22
|
stoppedByCancelSignal
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-RVG2JNDU.js";
|
|
24
24
|
import {
|
|
25
25
|
DEFAULT_MODEL,
|
|
26
26
|
findWhisper,
|
|
27
27
|
isWhisperUnavailable
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-3PUXUIWB.js";
|
|
29
29
|
import {
|
|
30
30
|
formatSrt,
|
|
31
31
|
formatVtt,
|
|
@@ -4,6 +4,9 @@ import { dirname as __hf_dirname } from "node:path";
|
|
|
4
4
|
var require = __hf_createRequire(import.meta.url);
|
|
5
5
|
var __filename = __hf_fileURLToPath(import.meta.url);
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
|
+
import {
|
|
8
|
+
probeAudioTrack
|
|
9
|
+
} from "./chunk-3RATCY3W.js";
|
|
7
10
|
import {
|
|
8
11
|
resolveWithinProject
|
|
9
12
|
} from "./chunk-ALVXFXUG.js";
|
|
@@ -11,7 +14,7 @@ import {
|
|
|
11
14
|
MAX_AUDIO_GAIN_DB,
|
|
12
15
|
formatAudioGain,
|
|
13
16
|
isAudibleVideoElement
|
|
14
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-ZXTSUXSL.js";
|
|
15
18
|
import {
|
|
16
19
|
findFfBinary
|
|
17
20
|
} from "./chunk-VAS6HQX3.js";
|
|
@@ -24,7 +27,7 @@ import {
|
|
|
24
27
|
decodeAuthoredAttribute
|
|
25
28
|
} from "./chunk-NHA4NRBE.js";
|
|
26
29
|
|
|
27
|
-
// ../studio-server/dist/chunk-
|
|
30
|
+
// ../studio-server/dist/chunk-EGNSA3MU.js
|
|
28
31
|
import { execFile } from "child_process";
|
|
29
32
|
import { isAbsolute, relative, resolve } from "path";
|
|
30
33
|
import { promisify } from "util";
|
|
@@ -329,16 +332,29 @@ function updateAudioVolume(html, id, volume) {
|
|
|
329
332
|
}
|
|
330
333
|
return html.slice(0, insertion) + ` data-volume="${value}"` + html.slice(insertion);
|
|
331
334
|
}
|
|
332
|
-
function loudnessMeasureArgs(file, tag) {
|
|
335
|
+
function loudnessMeasureArgs(file, tag, stream) {
|
|
333
336
|
const args = ["-hide_banner", "-nostats"];
|
|
334
337
|
if (tag.mediaStart > 0) args.push("-ss", String(tag.mediaStart));
|
|
335
338
|
const sourceSpan = tag.duration === null ? null : tag.duration * (tag.playbackRate ?? 1);
|
|
336
339
|
if (sourceSpan !== null && sourceSpan > 0) args.push("-t", String(sourceSpan));
|
|
337
|
-
args.push(
|
|
340
|
+
args.push(
|
|
341
|
+
"-i",
|
|
342
|
+
file,
|
|
343
|
+
"-map",
|
|
344
|
+
`0:a:${stream}`,
|
|
345
|
+
"-vn",
|
|
346
|
+
"-af",
|
|
347
|
+
"ebur128=peak=true",
|
|
348
|
+
"-f",
|
|
349
|
+
"null",
|
|
350
|
+
"-"
|
|
351
|
+
);
|
|
338
352
|
return args;
|
|
339
353
|
}
|
|
340
354
|
async function measureAudio(ffmpegPath, file, tag) {
|
|
341
|
-
const
|
|
355
|
+
const track = await probeAudioTrack(file);
|
|
356
|
+
if (!track) throw new Error("no audio stream to measure");
|
|
357
|
+
const result = await execFileAsync(ffmpegPath, loudnessMeasureArgs(file, tag, track.stream), {
|
|
342
358
|
encoding: "utf8",
|
|
343
359
|
maxBuffer: 16 * 1024 * 1024,
|
|
344
360
|
timeout: FFMPEG_TIMEOUT_MS,
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { createRequire as __hf_createRequire } from "node:module";
|
|
2
|
+
import { fileURLToPath as __hf_fileURLToPath } from "node:url";
|
|
3
|
+
import { dirname as __hf_dirname } from "node:path";
|
|
4
|
+
var require = __hf_createRequire(import.meta.url);
|
|
5
|
+
var __filename = __hf_fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = __hf_dirname(__filename);
|
|
7
|
+
|
|
8
|
+
// ../parsers/dist/mediaStreams.js
|
|
9
|
+
function decodableAudioStream(streams) {
|
|
10
|
+
const index = streams.filter((stream) => stream.codec_type === "audio").findIndex((stream) => stream.codec_name !== void 0);
|
|
11
|
+
return index < 0 ? null : index;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export {
|
|
15
|
+
decodableAudioStream
|
|
16
|
+
};
|
|
@@ -7,23 +7,23 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
ambiguousIssue,
|
|
9
9
|
loadBrowserScript
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-IJPFVMIE.js";
|
|
11
11
|
import {
|
|
12
12
|
auditClipDurations,
|
|
13
13
|
shouldIgnoreHttpError,
|
|
14
14
|
shouldIgnoreRequestFailure
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-GQZHLF5P.js";
|
|
16
16
|
import {
|
|
17
17
|
serveStaticProjectHtml
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-3A4SB326.js";
|
|
19
19
|
import {
|
|
20
20
|
STUDIO_PREVIEW_CAPTURE_MODE,
|
|
21
21
|
STUDIO_PREVIEW_MARK_META
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-SNLXWCET.js";
|
|
23
23
|
import {
|
|
24
24
|
artifactDirectory,
|
|
25
25
|
finishSnapshotRun
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-J7A73K2B.js";
|
|
27
27
|
import {
|
|
28
28
|
FfmpegUnavailableError,
|
|
29
29
|
decideMediaProxyEligibility,
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
proxyVariantFor,
|
|
32
32
|
resolveProxies,
|
|
33
33
|
scanProjectMediaCodecMap
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-JJRMN2RV.js";
|
|
35
35
|
import {
|
|
36
36
|
AUDIT_SEEK_OPTIONS,
|
|
37
37
|
DEFAULT_ZOOM_PADDING_PX,
|
|
@@ -45,21 +45,21 @@ import {
|
|
|
45
45
|
seekCompositionTimeline,
|
|
46
46
|
seekInPage,
|
|
47
47
|
waitForPreferredSeekTarget
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-SE6S4SGZ.js";
|
|
49
49
|
import {
|
|
50
50
|
BrowserCleanupError,
|
|
51
51
|
closeManagedBrowser,
|
|
52
52
|
onStopSignal
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-4BXEPVSA.js";
|
|
54
54
|
import {
|
|
55
55
|
findStageProxyBox
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-66PNSZ7K.js";
|
|
57
57
|
import {
|
|
58
58
|
resolveAutoProxy
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-W32DVMX3.js";
|
|
60
60
|
import {
|
|
61
61
|
injectTagsAtHeadStart
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-ZXTSUXSL.js";
|
|
63
63
|
import {
|
|
64
64
|
normalizeErrorMessage
|
|
65
65
|
} from "./chunk-EU7MVORF.js";
|
|
@@ -573,7 +573,7 @@ function proxyFailedDraft(message) {
|
|
|
573
573
|
return { code: "media_proxy_failed", severity: "warning", message, time: 0 };
|
|
574
574
|
}
|
|
575
575
|
async function loadCheckHtmlWithDeferredMedia(dir) {
|
|
576
|
-
const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-
|
|
576
|
+
const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-RRGFY3XV.js");
|
|
577
577
|
return withCapturePreviewMark(await bundleWithLocalizedFonts(dir));
|
|
578
578
|
}
|
|
579
579
|
function withCapturePreviewMark(html) {
|
|
@@ -612,7 +612,7 @@ async function runBrowserCheck(project, options, motion, runGrid, deadline, prel
|
|
|
612
612
|
const session = await openSettledCompositionPage(html, server.url, {
|
|
613
613
|
navigationTimeoutMs: options.timeout,
|
|
614
614
|
renderReadyTimeoutMs: options.timeout,
|
|
615
|
-
renderReadyWarningSuffix: "
|
|
615
|
+
renderReadyWarningSuffix: "the scene may still be building, so results can miss late content; raise --timeout (for example 20s)",
|
|
616
616
|
prelaunched,
|
|
617
617
|
browserGpuMode: options.browserGpuMode ?? resolveCliChromeGpuMode(),
|
|
618
618
|
signal: deadline?.signal,
|
|
@@ -635,7 +635,7 @@ async function runBrowserCheck(project, options, motion, runGrid, deadline, prel
|
|
|
635
635
|
).map((draft) => runtimeFinding(draft, rootAnchor))
|
|
636
636
|
}));
|
|
637
637
|
const launchSettleMs = Date.now() - launchSettleStart;
|
|
638
|
-
const { analyzeClipMediaFit } = await import("./src-
|
|
638
|
+
const { analyzeClipMediaFit } = await import("./src-ALOV4D57.js");
|
|
639
639
|
for (const entry of await auditClipDurations(page, analyzeClipMediaFit, options.timeout)) {
|
|
640
640
|
drafts.push({ code: "clip_media_fit", severity: entry.level, message: entry.text, time: 0 });
|
|
641
641
|
}
|
|
@@ -663,6 +663,7 @@ async function runBrowserCheck(project, options, motion, runGrid, deadline, prel
|
|
|
663
663
|
return {
|
|
664
664
|
...result,
|
|
665
665
|
timings: { ...result.timings, launchSettleMs },
|
|
666
|
+
renderReadyTimedOut: session.renderReadyTimedOut,
|
|
666
667
|
runtimeFindings: dropFailedProxyEchoes(
|
|
667
668
|
dropMotionBlurConsoleEcho(keepBrokenImageAborts(merged, broken), blur),
|
|
668
669
|
failedPaths
|
|
@@ -722,7 +723,7 @@ async function openHelperSession(html, url, options, deadline, owner) {
|
|
|
722
723
|
const session = await openSettledCompositionPage(html, url, {
|
|
723
724
|
navigationTimeoutMs: options.timeout,
|
|
724
725
|
renderReadyTimeoutMs: options.timeout,
|
|
725
|
-
renderReadyWarningSuffix: "
|
|
726
|
+
renderReadyWarningSuffix: "the scene may still be building, so results can miss late content; raise --timeout (for example 20s)",
|
|
726
727
|
browserGpuMode: options.browserGpuMode ?? resolveCliChromeGpuMode(),
|
|
727
728
|
signal: owner.signal,
|
|
728
729
|
onBrowser: owner.onBrowser,
|
|
@@ -771,7 +772,7 @@ async function captureFindingCrops(project, options, requests, deadline) {
|
|
|
771
772
|
async function captureFindingFrames(project, options, requests, deadline) {
|
|
772
773
|
if (requests.length === 0) return { written: [], inspected: [] };
|
|
773
774
|
const inspector = requests.some((request) => request.inspect?.length) ? await prepareFindingInspector(project.dir, async (bundleOptions) => {
|
|
774
|
-
const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-
|
|
775
|
+
const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-RRGFY3XV.js");
|
|
775
776
|
return withCapturePreviewMark(
|
|
776
777
|
await bundleWithLocalizedFonts(project.dir, void 0, bundleOptions)
|
|
777
778
|
);
|