hyperframes 0.8.205 → 0.8.206
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-BA4AU262.js → add-FFMNAJXJ.js} +12 -12
- package/dist/{animatedGifPrep-UNUCFGLQ.js → animatedGifPrep-BIIIIVWL.js} +16 -10
- package/dist/api.js +18 -18
- package/dist/{asset-KCDVTNC3.js → asset-IPUHGZSL.js} +2 -2
- package/dist/{assetCataloger-5FCVQ3N6.js → assetCataloger-M5FWXLAJ.js} +8 -8
- package/dist/{audio-KDBPEHRS.js → audio-VYWWM4DB.js} +15 -15
- package/dist/{auth-IMPBZZXJ.js → auth-GZQZCUPL.js} +1 -1
- package/dist/{autoUpdate-YE2RKCAG.js → autoUpdate-GJUDDLLO.js} +2 -2
- package/dist/{backgroundChecks-OWY2UFSR.js → backgroundChecks-BTMSW34Z.js} +3 -3
- package/dist/backgroundChecksWorker.js +3 -3
- package/dist/{batchRender-AN4HWKET.js → batchRender-LI2BJRGO.js} +4 -4
- package/dist/{beats-VTQJ4JH6.js → beats-H73CSYT4.js} +11 -11
- package/dist/{benchmark-PBEWHJ5K.js → benchmark-XT3A5REC.js} +9 -9
- package/dist/{browser-E7ANEHNU.js → browser-VIOK66YK.js} +5 -5
- package/dist/{bundleWithLocalizedFonts-I3BWMRSP.js → bundleWithLocalizedFonts-PFRVWYOO.js} +2 -2
- package/dist/{capture-MP7R72WU.js → capture-252WNPCD.js} +2 -2
- package/dist/{capture-XODFC4S4.js → capture-KKD5GMAF.js} +20 -20
- package/dist/{captureCompositionFrame-2OYGVDI3.js → captureCompositionFrame-YLYVGNN2.js} +13 -13
- package/dist/{catalog-ORVCCEQR.js → catalog-6IJGNN3T.js} +12 -12
- package/dist/{catch-up-SYAQOXTT.js → catch-up-BFW7Z35W.js} +4 -4
- package/dist/{check-6SQR6SSA.js → check-XUWBZASR.js} +39 -37
- package/dist/checkAudio-2NRR3VHQ.js +201 -0
- package/dist/{checkBrowser-HOTD3CDE.js → checkBrowser-JW74KWTF.js} +32 -31
- package/dist/{chunk-6NC4KBS2.js → chunk-2RT7MXFL.js} +1 -1
- package/dist/{chunk-JFNB4CMI.js → chunk-2S263R6D.js} +19 -7
- package/dist/{chunk-3N4T6I3O.js → chunk-36QE3P6B.js} +1 -1
- package/dist/{chunk-LSQM3NBR.js → chunk-3B2DBUQX.js} +1 -1
- package/dist/{chunk-H4MSJ2NZ.js → chunk-3CS6QYL7.js} +5 -5
- package/dist/{chunk-IKYXXIMP.js → chunk-3R6SXPHD.js} +2 -2
- package/dist/{chunk-RWOWD3PW.js → chunk-42KN6I6A.js} +2 -2
- package/dist/{chunk-75WNFDRU.js → chunk-4CY5RXXC.js} +1 -1
- package/dist/{chunk-LQUMMPGK.js → chunk-4DGLKB2H.js} +1 -1
- package/dist/{chunk-DQBY7FRR.js → chunk-543U46OR.js} +4 -1
- package/dist/{chunk-4UIEQIF4.js → chunk-5QKJPCQ4.js} +2 -2
- package/dist/{chunk-AECL3B23.js → chunk-63DGZRZP.js} +1 -1
- package/dist/{chunk-RQDVTUVD.js → chunk-6ZFDNEMY.js} +14 -14
- package/dist/{chunk-NF6KI46X.js → chunk-7SXL476O.js} +14 -12
- package/dist/{chunk-N7VQD4WB.js → chunk-AAX2A7LQ.js} +1 -1
- package/dist/{chunk-2FEOM3ZT.js → chunk-AEC4T4IF.js} +4 -4
- package/dist/{chunk-TZ7MTRVJ.js → chunk-AJSU6KGS.js} +13 -13
- package/dist/{chunk-MVXOY5RC.js → chunk-AXEEZKIL.js} +2 -2
- package/dist/{chunk-TOEIJ4WF.js → chunk-BBUK6A7Q.js} +5 -5
- package/dist/{chunk-CU76YDPX.js → chunk-CIHW6VM2.js} +1 -1
- package/dist/{chunk-MASFRPCB.js → chunk-CMDVJP4T.js} +10 -10
- package/dist/{chunk-BZ727KLT.js → chunk-CNVHMLPI.js} +1 -1
- package/dist/{chunk-BA7MQJXG.js → chunk-CPSGXAYD.js} +3 -3
- package/dist/{chunk-L6N2TLXR.js → chunk-CZYS6UKP.js} +83 -78
- package/dist/{chunk-EXRHI43B.js → chunk-DEVZJ4AL.js} +10 -9
- package/dist/{chunk-A42PDANH.js → chunk-DZG565OO.js} +1 -1
- package/dist/{chunk-KAIQPYCM.js → chunk-E2ZZSDDQ.js} +2 -2
- package/dist/{chunk-7V7OUKTU.js → chunk-FJW757TF.js} +1 -1
- package/dist/{chunk-I7IXUCKL.js → chunk-FMWACL3L.js} +1 -1
- package/dist/{chunk-GLBEBBS2.js → chunk-FNNGQ3DB.js} +2 -2
- package/dist/{chunk-GBQCTZON.js → chunk-FULMZCDW.js} +13 -43
- package/dist/chunk-G6QDFWDN.js +355 -0
- package/dist/{chunk-WB55EQNJ.js → chunk-G6W55MTX.js} +1 -1
- package/dist/{chunk-HADQPG7O.js → chunk-GAV56VJL.js} +2 -2
- package/dist/{chunk-FNBEYIZH.js → chunk-H4JO7VSI.js} +7 -6
- package/dist/{chunk-ZB6SCA4J.js → chunk-HEP5XMXV.js} +1 -1
- package/dist/{chunk-ZSUWGNIT.js → chunk-HJAJ6W4V.js} +2 -2
- package/dist/chunk-KLIPVNCO.js +4824 -0
- package/dist/{chunk-AECSY5LT.js → chunk-L5MFWGGU.js} +55 -65
- package/dist/{chunk-BHOGXIBO.js → chunk-MFHYBSJC.js} +57 -825
- package/dist/{chunk-LFGJWOVA.js → chunk-MNNK7RV5.js} +11 -8
- package/dist/{chunk-EUFBE5BW.js → chunk-N7ZMDVAK.js} +1 -1
- package/dist/{chunk-HQ3CFNHL.js → chunk-NNLQTG3M.js} +1 -1
- package/dist/{chunk-6YYFNGCS.js → chunk-NVLPW3DG.js} +7 -4
- package/dist/{chunk-SVVAUJPL.js → chunk-OFRRUYBA.js} +1 -1
- package/dist/{chunk-5F6B6KMK.js → chunk-OZUAVHFE.js} +18 -3
- package/dist/{chunk-BTYT3RT3.js → chunk-PNKLOMHQ.js} +2 -2
- package/dist/{chunk-XNAIYEKD.js → chunk-PQYWYBEQ.js} +1 -1
- package/dist/{chunk-TGS33LDU.js → chunk-QL4ZYSIB.js} +3 -3
- package/dist/{chunk-KBZSMKKD.js → chunk-QVTCXN42.js} +3 -3
- package/dist/{chunk-T2UR3T4L.js → chunk-RDDVQSNQ.js} +99 -22
- package/dist/{chunk-J2E3VVOS.js → chunk-RW4DMP2Y.js} +4 -4
- package/dist/{chunk-CUGADCIV.js → chunk-SFYLZX5C.js} +1 -1
- package/dist/{chunk-4RPCYGZG.js → chunk-T6SD37JZ.js} +1 -1
- package/dist/chunk-TQBQYO4L.js +55 -0
- package/dist/{chunk-26OI2B2X.js → chunk-TSJVPPXT.js} +1 -1
- package/dist/{chunk-C4LV6L4Q.js → chunk-UMUVGNOH.js} +3 -3
- package/dist/{chunk-GSTFETKE.js → chunk-VDVVQNTK.js} +2 -2
- package/dist/{chunk-G445Y3YG.js → chunk-VEA7Z4PZ.js} +2 -2
- package/dist/{chunk-32R2AFZ3.js → chunk-VHVSBOZH.js} +3 -3
- package/dist/{chunk-6GAYBX5C.js → chunk-VW2LVMKB.js} +19 -9
- package/dist/{chunk-UR6BAPOD.js → chunk-WHD5IAHI.js} +1 -1
- package/dist/{chunk-V2XXV2EH.js → chunk-WYB3VKLK.js} +2 -2
- package/dist/{chunk-57I5KNTL.js → chunk-X5HHHFTX.js} +3 -3
- package/dist/{chunk-V4K4BSCM.js → chunk-X7A7C4JS.js} +54 -2
- package/dist/chunk-X7RXXBYM.js +29 -0
- package/dist/{chunk-OB7QARSN.js → chunk-XOM3XTJ4.js} +1 -1
- package/dist/{chunk-UEOGIZ3Q.js → chunk-Z3XXLTVB.js} +2 -2
- package/dist/{chunk-ERUINDRT.js → chunk-ZF3R2IPC.js} +184 -183
- package/dist/{chunk-5PVPGWMH.js → chunk-ZNAOBFU5.js} +1 -1
- package/dist/{chunk-AII6P2TC.js → chunk-ZTEKVSZ6.js} +1 -1
- package/dist/{clean-BW7NHQS5.js → clean-N5VSKUVS.js} +19 -19
- package/dist/cli.js +54 -54
- package/dist/{cloud-TZVXTWZO.js → cloud-74NF5FXC.js} +4 -4
- package/dist/{cloudrun-KRIETALO.js → cloudrun-7UOH335V.js} +6 -6
- package/dist/{compare-WYWHJ4CR.js → compare-AY2LS2TZ.js} +32 -32
- package/dist/{compiler-ANIPXLJ7.js → compiler-4MHMC777.js} +11 -11
- package/dist/{component-CY7DCX56.js → component-CFWQOAZI.js} +3 -3
- package/dist/{compositions-5YEB24E3.js → compositions-DXLJTDSP.js} +14 -14
- package/dist/{delete-6642PDON.js → delete-GB4MS7LM.js} +2 -2
- package/dist/{deploy-NZP6TZLS.js → deploy-NXD3Q3KD.js} +4 -4
- package/dist/{deterministicFonts-HQYCUUAL.js → deterministicFonts-775YXAQ2.js} +2 -2
- package/dist/{dist-DGFC75NC.js → dist-3ZJMZU75.js} +11 -3
- package/dist/{dist-V2BGP46S.js → dist-ZY6IFESG.js} +2 -2
- package/dist/{doctor-ZW4A2FS3.js → doctor-CVY2XXKS.js} +14 -14
- package/dist/{events-XRCHY2F6.js → events-RYQYEWBV.js} +2 -2
- package/dist/{events-NJU4VFDA.js → events-T3CLIYRG.js} +3 -3
- package/dist/{feedback-NQLSZMES.js → feedback-K5ZMMLTA.js} +8 -8
- package/dist/{ffmpeg-RYDQLG3G.js → ffmpeg-UNDAJ2IC.js} +9 -9
- package/dist/{figma-TJAMP2CI.js → figma-MYYCX635.js} +3 -3
- package/dist/fontLocalizeCli.js +12 -11
- package/dist/{get-RRZ3O26X.js → get-JVIDYMVP.js} +2 -2
- package/dist/{gpuPolicy-4WLHUUS3.js → gpuPolicy-KEX7GDRJ.js} +8 -8
- package/dist/{grade-compare-P7PE3NAA.js → grade-compare-QEF6VASJ.js} +30 -30
- package/dist/{gsapParser-IEUSLYDJ.js → gsapParser-3H7ON3DO.js} +1 -1
- package/dist/heifImagePrep-A3ZPVQGU.js +53 -0
- package/dist/{help-6RELRVIW.js → help-XPPSLIRY.js} +1 -1
- package/dist/{history-GIIDYND3.js → history-OFOPRD27.js} +7 -7
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +66 -64
- package/dist/hyperframes-player.global.js +3 -3
- package/dist/hyperframes-slideshow.global.js +16 -16
- package/dist/{info-LBUA2DXE.js → info-7RF6FQX5.js} +8 -8
- package/dist/{init-QUPXBONY.js → init-NTIXWA3D.js} +30 -30
- package/dist/{inspect-CL42DJZ4.js → inspect-MYMCV5E7.js} +30 -29
- package/dist/inspection.js +4 -4
- package/dist/{installer-VR7XDLR3.js → installer-PYJIJ3PJ.js} +5 -5
- package/dist/{keyframes-LELLROMA.js → keyframes-UJ52PYE4.js} +6 -6
- package/dist/{lambda-I6KFXWOO.js → lambda-SBNUYEQE.js} +8 -8
- package/dist/{layout-NR6SNRZE.js → layout-IOMCOABO.js} +30 -29
- package/dist/{lint-DYEMSEQR.js → lint-AQWHHMPS.js} +8 -8
- package/dist/{lintProject-EA4NPL2X.js → lintProject-5A4SCW3S.js} +2 -2
- package/dist/{list-RDURYO5U.js → list-WKAJ5SP3.js} +2 -2
- package/dist/{login-VKLET5OL.js → login-3ZDK5JOA.js} +4 -4
- package/dist/{manager-7TSUZKXU.js → manager-F2YREC5X.js} +2 -2
- package/dist/{manager-IYT3THJN.js → manager-QYFYWZOK.js} +10 -10
- package/dist/{media-treatment-I4AFEQZ3.js → media-treatment-4OLWVHUY.js} +15 -15
- package/dist/{models-LLPVGC2E.js → models-MR55FAUX.js} +14 -14
- package/dist/{motionShot-6A6HH6IK.js → motionShot-DC47S7BT.js} +17 -17
- package/dist/{normalize-audio-KVQJBYLT.js → normalize-audio-M2TK4NG5.js} +8 -8
- package/dist/{open-J4ZT4X3C.js → open-YXWBWTKL.js} +12 -12
- package/dist/{parakeetRunner-FLUCIDIZ.js → parakeetRunner-J6QR3GTG.js} +15 -15
- package/dist/{pipeline-RRVLGALQ.js → pipeline-7MJ5H4SW.js} +10 -10
- package/dist/{play-QGJSXUVM.js → play-S562STR4.js} +33 -23
- package/dist/{preflight-SP2ZERBE.js → preflight-QWGXMISC.js} +11 -11
- package/dist/{present-UR4YBHMX.js → present-PGOHZT3L.js} +29 -19
- package/dist/{preview-6ENCRU4C.js → preview-JU75H4QN.js} +32 -29
- package/dist/{producer-OMHZRY6A.js → producer-H66OMZLW.js} +1 -1
- package/dist/{projectConfig-NGS7GJ47.js → projectConfig-COSP24YT.js} +7 -7
- package/dist/{publication-6NYQA22Y.js → publication-J3XYHPGB.js} +3 -3
- package/dist/{publish-E6RE5VHB.js → publish-7GCCEPJZ.js} +11 -11
- package/dist/{remove-background-66PQRA7R.js → remove-background-WRCGIU32.js} +11 -11
- package/dist/{render-ZLRJUFMX.js → render-5J5PP3UK.js} +21 -21
- package/dist/{render-SBAZWXPO.js → render-QS3YJCBR.js} +6 -6
- package/dist/{render-IMSGS6BD.js → render-VUVTK2JM.js} +36 -36
- package/dist/{render-batch-MO7LYZSP.js → render-batch-Q2LQ3D4P.js} +6 -6
- package/dist/renderSetupWorker.js +5 -5
- package/dist/{resolver-QMBVTAKT.js → resolver-QCBWPRSC.js} +5 -5
- package/dist/{sherpa-JZRDL3OE.js → sherpa-IZ22SC5W.js} +14 -14
- package/dist/{skills-YBTEWFYS.js → skills-3RFMPMJA.js} +5 -5
- package/dist/{skillsUpdateCheck-Z4HTDZJN.js → skillsUpdateCheck-DWBFVUBT.js} +3 -3
- package/dist/{snapshot-5F5UV6H5.js → snapshot-5PHA43DK.js} +53 -40
- package/dist/{src-WWXYV2TS.js → src-36BQVJL3.js} +16 -10
- package/dist/{src-UTW3F2PM.js → src-4YJKYMNF.js} +11 -7
- package/dist/{staticProjectServer-UHZ63C5O.js → staticProjectServer-3XFB76XS.js} +17 -17
- package/dist/studio/assets/hyperframes-player-lCVwx9d3.js +478 -0
- package/dist/studio/assets/{index-C8hp9Y7c.js → index-BNuxGFZK.js} +1 -1
- package/dist/studio/assets/{index-dy6GQJn4.js → index-CwreIGoq.js} +93 -93
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-BHZ3PHL2.js → studio-api-WL6EZ4KE.js} +10 -10
- package/dist/{studioSelectionClient-IUUPKUHZ.js → studioSelectionClient-D6VMGTKQ.js} +1 -1
- package/dist/{studioServer-AFUXWRB5.js → studioServer-ZS5RA6U3.js} +61 -52
- package/dist/{telemetry-UYKOT4OJ.js → telemetry-W3LRO3TB.js} +3 -3
- package/dist/{timeline-K5NLEMH4.js → timeline-BDO5DYWP.js} +18 -18
- package/dist/{tokens-FCOSWE2O.js → tokens-47CEMYFV.js} +2 -2
- package/dist/{transcribe-K2QTXDQR.js → transcribe-GEPVJO3A.js} +19 -19
- package/dist/{transcribe-SIFMTW5W.js → transcribe-XF3NL6JI.js} +13 -13
- package/dist/{tts-5I2AJNLM.js → tts-QM4RFE7U.js} +1 -1
- package/dist/{updateCheck-JZ6TBZVE.js → updateCheck-BON6ZFYP.js} +2 -2
- package/dist/{upgrade-TUPAJXQQ.js → upgrade-KIF5Z4J3.js} +2 -2
- package/dist/{urlDownloader-L4775QID.js → urlDownloader-UDRHVUWR.js} +7 -7
- package/dist/{validate-4HVVMEBV.js → validate-2OPSQT3W.js} +23 -23
- package/dist/{video-4OGPF3IE.js → video-ECWXMY4F.js} +8 -8
- package/dist/warmCheck.js +39 -37
- package/package.json +1 -1
- package/dist/chunk-ZUQZP6QD.js +0 -3986
- package/dist/studio/assets/hyperframes-player-DzdSmJdB.js +0 -478
- package/dist/{chunk-KVNXEAVT.js → chunk-2MLMO25E.js} +4 -4
- package/dist/{synthesize-PKTB5ATG.js → synthesize-QCRP3NI7.js} +4 -4
|
@@ -5,18 +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
|
|
|
8
|
+
// src/utils/port.ts
|
|
9
|
+
function parsePort(value, option = "--port") {
|
|
10
|
+
const message = `${option} must be an integer between 1 and 65535`;
|
|
11
|
+
if (!/^\d+$/.test(value)) throw new Error(message);
|
|
12
|
+
const port = Number(value);
|
|
13
|
+
if (port < 1 || port > 65535) throw new Error(message);
|
|
14
|
+
return port;
|
|
15
|
+
}
|
|
16
|
+
|
|
8
17
|
// src/utils/openBrowser.ts
|
|
9
18
|
import { spawn } from "child_process";
|
|
10
19
|
function parseRemoteDebuggingPort(value) {
|
|
11
20
|
if (value === void 0 || value === "") return void 0;
|
|
12
|
-
|
|
13
|
-
throw new Error("--remote-debugging-port must be an integer between 1 and 65535");
|
|
14
|
-
}
|
|
15
|
-
const port = Number(value);
|
|
16
|
-
if (port < 1 || port > 65535) {
|
|
17
|
-
throw new Error("--remote-debugging-port must be an integer between 1 and 65535");
|
|
18
|
-
}
|
|
19
|
-
return port;
|
|
21
|
+
return parsePort(value, "--remote-debugging-port");
|
|
20
22
|
}
|
|
21
23
|
function validateRemoteDebuggingPortDeps(deps) {
|
|
22
24
|
if (!deps.remoteDebuggingPort) return null;
|
|
@@ -55,6 +57,7 @@ function openBrowser(url, options = {}) {
|
|
|
55
57
|
}
|
|
56
58
|
|
|
57
59
|
export {
|
|
60
|
+
parsePort,
|
|
58
61
|
parseRemoteDebuggingPort,
|
|
59
62
|
validateRemoteDebuggingPortDeps,
|
|
60
63
|
openBrowser
|
|
@@ -9,10 +9,10 @@ import {
|
|
|
9
9
|
isHttpUrl,
|
|
10
10
|
renameWithRetry,
|
|
11
11
|
runFfmpeg
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-RDDVQSNQ.js";
|
|
13
13
|
import {
|
|
14
14
|
parseAnimatedGifMetadata
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-VW2LVMKB.js";
|
|
16
16
|
import {
|
|
17
17
|
parseHTML
|
|
18
18
|
} from "./chunk-GWTIFRF5.js";
|
|
@@ -72,7 +72,7 @@ function readLoopOverride(el) {
|
|
|
72
72
|
}
|
|
73
73
|
return null;
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function resolveLocalImageSourcePath(src, options) {
|
|
76
76
|
const trimmed = src.trim();
|
|
77
77
|
if (!trimmed || trimmed.startsWith("data:")) return null;
|
|
78
78
|
const { basePath } = splitUrlSuffix(trimmed);
|
|
@@ -295,7 +295,7 @@ async function prepareAnimatedGifInputs(html, options) {
|
|
|
295
295
|
const img = images[i];
|
|
296
296
|
const src = (img.getAttribute("src") || "").trim();
|
|
297
297
|
if (!hasGifExtension(src)) continue;
|
|
298
|
-
const sourcePath =
|
|
298
|
+
const sourcePath = resolveLocalImageSourcePath(src, options);
|
|
299
299
|
if (!sourcePath) continue;
|
|
300
300
|
const bytes = readFileSync(sourcePath);
|
|
301
301
|
const metadata = parseAnimatedGifMetadata(bytes);
|
|
@@ -346,6 +346,9 @@ async function prepareAnimatedGifInputs(html, options) {
|
|
|
346
346
|
export {
|
|
347
347
|
EncoderInterruptedError,
|
|
348
348
|
encoderFailureError,
|
|
349
|
+
splitUrlSuffix,
|
|
350
|
+
normalizeRelPath,
|
|
351
|
+
resolveLocalImageSourcePath,
|
|
349
352
|
buildAnimatedGifTranscodeArgs,
|
|
350
353
|
prepareAnimatedGifInputs
|
|
351
354
|
};
|
|
@@ -1260,7 +1260,7 @@ function serializeGsapAnimations(animations, timelineVar = "tl", options) {
|
|
|
1260
1260
|
const mediaTime = time - start;
|
|
1261
1261
|
if (time >= start && time < end) {
|
|
1262
1262
|
if (Math.abs(media.currentTime - mediaTime) > 0.1) {
|
|
1263
|
-
media.currentTime = mediaTime;
|
|
1263
|
+
media.currentTime = mediaTime + ${Number(options.mediaElementLeadSeconds ?? 0)};
|
|
1264
1264
|
}
|
|
1265
1265
|
if (media.paused && !${timelineVar}.paused()) {
|
|
1266
1266
|
media.play().catch(function() {});
|
|
@@ -6,14 +6,17 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
getMimeType
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-7SXL476O.js";
|
|
10
|
+
import {
|
|
11
|
+
stripSdrPngColourTags
|
|
12
|
+
} from "./chunk-MFHYBSJC.js";
|
|
10
13
|
import {
|
|
11
14
|
injectTagsAtHeadStart
|
|
12
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-KLIPVNCO.js";
|
|
13
16
|
|
|
14
17
|
// src/utils/compositionServer.ts
|
|
15
18
|
import { createHash } from "crypto";
|
|
16
|
-
import { createReadStream, existsSync, statSync } from "fs";
|
|
19
|
+
import { createReadStream, existsSync, readFileSync, statSync } from "fs";
|
|
17
20
|
import { resolve, dirname } from "path";
|
|
18
21
|
import { Readable } from "stream";
|
|
19
22
|
import { fileURLToPath } from "url";
|
|
@@ -61,6 +64,9 @@ function revalidatedResponse(body, contentType, ifNoneMatch) {
|
|
|
61
64
|
if (ifNoneMatch === etag) return new Response(null, { status: 304, headers });
|
|
62
65
|
return new Response(body, { status: 200, headers });
|
|
63
66
|
}
|
|
67
|
+
function untaggedPngBody(filePath, contentType) {
|
|
68
|
+
return contentType === "image/png" ? stripSdrPngColourTags(readFileSync(filePath)) : null;
|
|
69
|
+
}
|
|
64
70
|
function buildRangeResponse(filePath, contentType, rangeHeader, ifNoneMatch) {
|
|
65
71
|
const { size, mtimeMs } = statSync(filePath);
|
|
66
72
|
const last = size - 1;
|
|
@@ -69,6 +75,15 @@ function buildRangeResponse(filePath, contentType, rangeHeader, ifNoneMatch) {
|
|
|
69
75
|
ETag: `"${mtimeMs.toString(36)}-${size.toString(36)}"`
|
|
70
76
|
};
|
|
71
77
|
if (ifNoneMatch === cache.ETag) return new Response(null, { status: 304, headers: cache });
|
|
78
|
+
const untagged = untaggedPngBody(filePath, contentType);
|
|
79
|
+
if (untagged) {
|
|
80
|
+
const headers = {
|
|
81
|
+
...cache,
|
|
82
|
+
"Content-Type": contentType,
|
|
83
|
+
"Content-Length": `${untagged.length}`
|
|
84
|
+
};
|
|
85
|
+
return new Response(new Uint8Array(untagged), { status: 200, headers });
|
|
86
|
+
}
|
|
72
87
|
const match = rangeHeader ? /^bytes=(\d*)-(\d*)$/.exec(rangeHeader.trim()) : null;
|
|
73
88
|
const body = (start2, end2) => size === 0 ? null : Readable.toWeb(createReadStream(filePath, { start: start2, end: end2 }));
|
|
74
89
|
if (!match) {
|
|
@@ -19,10 +19,10 @@ import {
|
|
|
19
19
|
import {
|
|
20
20
|
formatVariableValidationIssue,
|
|
21
21
|
validateVariables
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-VW2LVMKB.js";
|
|
23
23
|
import {
|
|
24
24
|
extractCompositionMetadata
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-OFRRUYBA.js";
|
|
26
26
|
|
|
27
27
|
// src/utils/variables.ts
|
|
28
28
|
import { readFileSync } from "fs";
|
|
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
readCompositionFps
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-PQYWYBEQ.js";
|
|
10
10
|
import {
|
|
11
11
|
errorBox
|
|
12
12
|
} from "./chunk-K2FLNJVB.js";
|
|
@@ -16,10 +16,10 @@ import {
|
|
|
16
16
|
import {
|
|
17
17
|
DEFAULT_CONFIG,
|
|
18
18
|
resolvePageNavigationTimeout
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-RDDVQSNQ.js";
|
|
20
20
|
import {
|
|
21
21
|
parseFps
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-VW2LVMKB.js";
|
|
23
23
|
|
|
24
24
|
// src/browser/windowsCrash.ts
|
|
25
25
|
var STATUS_STACK_BUFFER_OVERRUN_DEC = "3221225595";
|
|
@@ -11,14 +11,14 @@ import {
|
|
|
11
11
|
distroLabel,
|
|
12
12
|
getFFmpegInstallHint,
|
|
13
13
|
parseLddMissingLibs
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-5QKJPCQ4.js";
|
|
15
15
|
import {
|
|
16
16
|
ensureBrowser,
|
|
17
17
|
findBrowser
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-G6W55MTX.js";
|
|
19
19
|
import {
|
|
20
20
|
runCancellableProcess
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-X7A7C4JS.js";
|
|
22
22
|
import {
|
|
23
23
|
getFreeDiskMb
|
|
24
24
|
} from "./chunk-QSFWGZG6.js";
|
|
@@ -22,15 +22,18 @@ import {
|
|
|
22
22
|
hasClipStarted,
|
|
23
23
|
hdrToSdrToneMapFilter,
|
|
24
24
|
isInClipWindow,
|
|
25
|
+
mediaElementTime,
|
|
25
26
|
parseFirstFrameColour,
|
|
26
27
|
quantizeSeekTime,
|
|
27
28
|
quantizeTimeToFrame,
|
|
28
29
|
renderFrameIdForRenderId,
|
|
29
30
|
resolveAuthoredTimingWindow,
|
|
30
31
|
toFps
|
|
31
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-VW2LVMKB.js";
|
|
32
33
|
import {
|
|
33
34
|
AUDIO_GROUP_RENDER_ID_ATTR,
|
|
35
|
+
AUTHORED_SOURCE_BEGIN,
|
|
36
|
+
AUTHORED_SOURCE_END,
|
|
34
37
|
COLOR_GRADING_SOURCE_HIDDEN_ATTR,
|
|
35
38
|
COMPOSITION_SOURCE_URL,
|
|
36
39
|
HF_AUDIO_AUTOMATION_ATTR,
|
|
@@ -41,6 +44,7 @@ import {
|
|
|
41
44
|
MEDIA_RENDER_ID_ATTR,
|
|
42
45
|
PAGE_DEVICE_SCALE_GLOBAL,
|
|
43
46
|
PAGE_MOTION_BLUR_OFF_GLOBAL,
|
|
47
|
+
RUNTIME_BOOTSTRAP_ATTR,
|
|
44
48
|
VOLUME_TARGET,
|
|
45
49
|
acceleratedCanvasTrackerSource,
|
|
46
50
|
clampAudioGain,
|
|
@@ -68,7 +72,7 @@ import {
|
|
|
68
72
|
sourceTimeAt,
|
|
69
73
|
timeAtSourceTime,
|
|
70
74
|
volumeSegmentSampleCount
|
|
71
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-KLIPVNCO.js";
|
|
72
76
|
import {
|
|
73
77
|
redactTelemetryString,
|
|
74
78
|
redactUrlQueryStrings
|
|
@@ -86,7 +90,7 @@ import {
|
|
|
86
90
|
} from "./chunk-4UMPIPCQ.js";
|
|
87
91
|
import {
|
|
88
92
|
resolveReferencedStart
|
|
89
|
-
} from "./chunk-
|
|
93
|
+
} from "./chunk-2MLMO25E.js";
|
|
90
94
|
import {
|
|
91
95
|
FFMPEG_PATH_ENV,
|
|
92
96
|
FFPROBE_PATH_ENV,
|
|
@@ -898,7 +902,7 @@ var hostHandlesSigint = false;
|
|
|
898
902
|
function setHostHandlesSigint(owned) {
|
|
899
903
|
hostHandlesSigint = owned;
|
|
900
904
|
}
|
|
901
|
-
var
|
|
905
|
+
var ownedLaunchOptions = () => ({ handleSIGINT: !hostHandlesSigint, pipe: true });
|
|
902
906
|
function isSoftwareWebGlRenderer(rendererInfo) {
|
|
903
907
|
const renderer = rendererInfo.trim().toLowerCase();
|
|
904
908
|
return renderer.includes("swiftshader") || renderer.includes("llvmpipe") || renderer.includes("lavapipe") || renderer.includes("softpipe") || renderer.includes("mesa offscreen") || renderer.includes("microsoft basic render driver") || renderer.includes("software rasterizer");
|
|
@@ -920,7 +924,7 @@ async function probeHardwareWebGlInfo(ppt, options) {
|
|
|
920
924
|
let probeBrowser;
|
|
921
925
|
try {
|
|
922
926
|
const launchOptions = {
|
|
923
|
-
...
|
|
927
|
+
...ownedLaunchOptions(),
|
|
924
928
|
headless: true,
|
|
925
929
|
args: withHyperframesBrowserMarker(options.args),
|
|
926
930
|
defaultViewport: { width: 64, height: 64 },
|
|
@@ -1395,7 +1399,7 @@ async function launchBrowser(fingerprint) {
|
|
|
1395
1399
|
let captureMode = fingerprint.requestedCaptureMode;
|
|
1396
1400
|
let browser;
|
|
1397
1401
|
const launch = (args) => ppt.launch({
|
|
1398
|
-
...
|
|
1402
|
+
...ownedLaunchOptions(),
|
|
1399
1403
|
headless: true,
|
|
1400
1404
|
args: withHyperframesBrowserMarker(args),
|
|
1401
1405
|
defaultViewport: null,
|
|
@@ -6105,6 +6109,37 @@ async function waitForSubCompositionTimelines(session, page, timeoutMs, options
|
|
|
6105
6109
|
memo.unregisteredIds = session.pendingTimelineIds ?? [];
|
|
6106
6110
|
}
|
|
6107
6111
|
}
|
|
6112
|
+
async function authorScriptsMayRegisterTimelines(runtimeAttr, authoredBegin, authoredEnd) {
|
|
6113
|
+
if (document.readyState !== "complete") return true;
|
|
6114
|
+
const memo = globalThis;
|
|
6115
|
+
memo.__hfAuthorScan ??= await (async () => {
|
|
6116
|
+
const scripts = [
|
|
6117
|
+
...Array.from(document.querySelectorAll("script")),
|
|
6118
|
+
...Array.from(document.querySelectorAll("template")).flatMap(
|
|
6119
|
+
(t) => Array.from(t.content.querySelectorAll("script"))
|
|
6120
|
+
)
|
|
6121
|
+
].filter((script) => !script.hasAttribute(runtimeAttr));
|
|
6122
|
+
const mayRegister = (code) => code.includes("__timelines") || /\bimport\s*\(|^\s*import\s*[\w{*"']/m.test(code);
|
|
6123
|
+
for (const script of scripts) {
|
|
6124
|
+
if (script.type === "module") return true;
|
|
6125
|
+
if (!script.src) {
|
|
6126
|
+
const text = script.textContent ?? "";
|
|
6127
|
+
const authored = text.includes(authoredBegin) ? text.split(authoredBegin).slice(1).map((region) => region.split(authoredEnd)[0]).join("\n") : text;
|
|
6128
|
+
if (mayRegister(authored)) return true;
|
|
6129
|
+
continue;
|
|
6130
|
+
}
|
|
6131
|
+
const url = new URL(script.src, location.href);
|
|
6132
|
+
if (url.origin !== location.origin) return true;
|
|
6133
|
+
try {
|
|
6134
|
+
if (mayRegister(await (await fetch(url)).text())) return true;
|
|
6135
|
+
} catch {
|
|
6136
|
+
return true;
|
|
6137
|
+
}
|
|
6138
|
+
}
|
|
6139
|
+
return false;
|
|
6140
|
+
})();
|
|
6141
|
+
return memo.__hfAuthorScan;
|
|
6142
|
+
}
|
|
6108
6143
|
async function pollSubCompositionTimelines(page, timeoutMs, {
|
|
6109
6144
|
intervalMs = 150,
|
|
6110
6145
|
getScriptLoadFailures,
|
|
@@ -6134,13 +6169,18 @@ async function pollSubCompositionTimelines(page, timeoutMs, {
|
|
|
6134
6169
|
let scriptFailureBail = false;
|
|
6135
6170
|
let errorSeenAt;
|
|
6136
6171
|
for (; ; ) {
|
|
6137
|
-
ready = Boolean(await page.evaluate(expression));
|
|
6138
|
-
if (ready || shouldStop?.()) break;
|
|
6139
|
-
const now = Date.now();
|
|
6140
|
-
if (now >= deadline) break;
|
|
6141
6172
|
const failures = getScriptLoadFailures?.() ?? [];
|
|
6142
6173
|
const errors = getPageErrors?.() ?? [];
|
|
6143
6174
|
const failed = failures.length > 0 ? failures : errors;
|
|
6175
|
+
ready = Boolean(await page.evaluate(expression)) || failed.length === 0 && !await page.evaluate(
|
|
6176
|
+
authorScriptsMayRegisterTimelines,
|
|
6177
|
+
RUNTIME_BOOTSTRAP_ATTR,
|
|
6178
|
+
AUTHORED_SOURCE_BEGIN,
|
|
6179
|
+
AUTHORED_SOURCE_END
|
|
6180
|
+
);
|
|
6181
|
+
if (ready || shouldStop?.()) break;
|
|
6182
|
+
const now = Date.now();
|
|
6183
|
+
if (now >= deadline) break;
|
|
6144
6184
|
const graceMs = failures.length > 0 ? scriptFailureGraceMs : scriptErrorGraceMs;
|
|
6145
6185
|
if (failed.length > 0) errorSeenAt ??= now;
|
|
6146
6186
|
const sinceFailure = failures.length > 0 ? now - start : now - (errorSeenAt ?? now);
|
|
@@ -6467,8 +6507,31 @@ function classifyPageError(details, projectScripts) {
|
|
|
6467
6507
|
const frames = (details.stackTrace?.callFrames ?? []).map((frame) => frame.url);
|
|
6468
6508
|
if (frames.length === 0 && details.text.startsWith("Uncaught (in promise)")) return null;
|
|
6469
6509
|
const urls = frames.length > 0 ? frames : [details.url];
|
|
6470
|
-
|
|
6471
|
-
|
|
6510
|
+
return urls.some((url) => isOwnedScriptUrl(url, projectScripts)) ? `runtime-error:${firstLine}` : null;
|
|
6511
|
+
}
|
|
6512
|
+
function isOwnedScriptUrl(url, projectScripts) {
|
|
6513
|
+
return url !== void 0 && (projectScripts.has(url) || url.startsWith(COMPOSITION_SOURCE_URL));
|
|
6514
|
+
}
|
|
6515
|
+
var LOOKUP_CALL = /\b(?:getElementById|querySelectorAll|querySelector|getElementsByClassName|getElementsByTagName)\(\s*(["'`])((?:(?!\1).)*)\1/g;
|
|
6516
|
+
async function describeThrowSite(client, details, projectScripts) {
|
|
6517
|
+
const frame = (details.stackTrace?.callFrames ?? []).find(
|
|
6518
|
+
(f) => isOwnedScriptUrl(f.url, projectScripts)
|
|
6519
|
+
);
|
|
6520
|
+
if (!frame) return "";
|
|
6521
|
+
let where = `${frame.url}:${frame.lineNumber + 1}:${frame.columnNumber + 1}`;
|
|
6522
|
+
try {
|
|
6523
|
+
await client.send("Debugger.enable");
|
|
6524
|
+
const { scriptSource } = await client.send("Debugger.getScriptSource", {
|
|
6525
|
+
scriptId: frame.scriptId
|
|
6526
|
+
});
|
|
6527
|
+
const line = scriptSource.split("\n")[frame.lineNumber] ?? "";
|
|
6528
|
+
const lookups = [...line.matchAll(LOOKUP_CALL)];
|
|
6529
|
+
if (lookups.length === 1) where += `, ${lookups[0]?.[0]})`;
|
|
6530
|
+
} catch {
|
|
6531
|
+
} finally {
|
|
6532
|
+
await client.send("Debugger.disable").catch(() => void 0);
|
|
6533
|
+
}
|
|
6534
|
+
return ` [thrown at: ${where}]`;
|
|
6472
6535
|
}
|
|
6473
6536
|
async function initializeSession(session) {
|
|
6474
6537
|
const { page, serverUrl } = session;
|
|
@@ -6534,7 +6597,15 @@ async function initializeSession(session) {
|
|
|
6534
6597
|
const url = `${serverUrl}/index.html`;
|
|
6535
6598
|
const runtimeClient = await getCdpSession(page);
|
|
6536
6599
|
runtimeClient.on("Runtime.exceptionThrown", ({ exceptionDetails }) => {
|
|
6537
|
-
|
|
6600
|
+
const error = classifyPageError(exceptionDetails, projectScripts);
|
|
6601
|
+
recordPageError(session, error);
|
|
6602
|
+
if (!error) return;
|
|
6603
|
+
void describeThrowSite(runtimeClient, exceptionDetails, projectScripts).then((site) => {
|
|
6604
|
+
const i = session.pageErrors.indexOf(error);
|
|
6605
|
+
if (!site || i < 0) return;
|
|
6606
|
+
if (session.pageErrors.includes(`${error}${site}`)) session.pageErrors.splice(i, 1);
|
|
6607
|
+
else session.pageErrors[i] = `${error}${site}`;
|
|
6608
|
+
});
|
|
6538
6609
|
});
|
|
6539
6610
|
await runtimeClient.send("Runtime.enable");
|
|
6540
6611
|
const pageNavigationTimeout = session.config?.pageNavigationTimeout ?? DEFAULT_CONFIG.pageNavigationTimeout;
|
|
@@ -11330,8 +11401,8 @@ function resolveRedirectUrl(response, currentUrl, redirects) {
|
|
|
11330
11401
|
if (redirects >= MAX_REDIRECTS) {
|
|
11331
11402
|
throw new UrlDownloadError("http_rejected", false, "Download exceeded redirect limit");
|
|
11332
11403
|
}
|
|
11333
|
-
const
|
|
11334
|
-
if (!
|
|
11404
|
+
const location2 = response.headers.get("location");
|
|
11405
|
+
if (!location2) {
|
|
11335
11406
|
throw new UrlDownloadError(
|
|
11336
11407
|
"http_rejected",
|
|
11337
11408
|
false,
|
|
@@ -11339,7 +11410,7 @@ function resolveRedirectUrl(response, currentUrl, redirects) {
|
|
|
11339
11410
|
);
|
|
11340
11411
|
}
|
|
11341
11412
|
try {
|
|
11342
|
-
return new URL(
|
|
11413
|
+
return new URL(location2, currentUrl).toString();
|
|
11343
11414
|
} catch {
|
|
11344
11415
|
throw new UrlDownloadError("http_rejected", false, "Download redirect Location is invalid");
|
|
11345
11416
|
}
|
|
@@ -12741,6 +12812,12 @@ function chromeGuessForUntaggedMatrix(metadata) {
|
|
|
12741
12812
|
const hd = metadata.height >= 720 && !CHROME_BT601_UNTAGGED_CODECS.has(metadata.videoCodec);
|
|
12742
12813
|
return [`setparams=colorspace=${hd ? "bt709" : "smpte170m"}`];
|
|
12743
12814
|
}
|
|
12815
|
+
function sdrCanvasColourFilters(metadata, toneMappedToSdr = false) {
|
|
12816
|
+
if (!isHdrColorSpace(metadata.colorSpace)) {
|
|
12817
|
+
return [...chromeGuessForUntaggedMatrix(metadata), SDR_CANVAS_PASSTHROUGH_FILTER];
|
|
12818
|
+
}
|
|
12819
|
+
return toneMappedToSdr ? [SDR_CANVAS_PASSTHROUGH_FILTER] : [];
|
|
12820
|
+
}
|
|
12744
12821
|
var EXTRACTION_SEGMENT_SECONDS = 120;
|
|
12745
12822
|
function undoTickRoundingOnTheSourceFrameGrid(seek, lead) {
|
|
12746
12823
|
const sinceFileStart = `(PTS*TB+${seek}-${lead})`;
|
|
@@ -12902,10 +12979,7 @@ async function extractVideoFramesRangeUnredacted(videoPath, videoId, startTime,
|
|
|
12902
12979
|
vfFilters.push(hdrToSdrToneMapFilter(metadata.colorSpace ?? {}, frameColour));
|
|
12903
12980
|
}
|
|
12904
12981
|
if (toneMappedToSdr || !isHdr && !options.sdrToHdrTransfer) {
|
|
12905
|
-
vfFilters.push(
|
|
12906
|
-
...isHdr ? [] : chromeGuessForUntaggedMatrix(metadata),
|
|
12907
|
-
SDR_CANVAS_PASSTHROUGH_FILTER
|
|
12908
|
-
);
|
|
12982
|
+
vfFilters.push(...sdrCanvasColourFilters(metadata, toneMappedToSdr));
|
|
12909
12983
|
if (format === "jpg") {
|
|
12910
12984
|
if (options.shownBox) vfFilters.push(halveToCoverScaleFilter(options.shownBox));
|
|
12911
12985
|
vfFilters.push(SDR_JPEG_AS_BT601_FULL_RANGE_FILTER);
|
|
@@ -14005,7 +14079,8 @@ function getFrameIndexAtTime(extracted, globalTime, videoStart, loop = false, me
|
|
|
14005
14079
|
const cycle = Math.max(0, resolvePlayableVideoDuration(extracted.metadata) - mediaStart);
|
|
14006
14080
|
if (cycle > 0 && sourceTime >= cycle) sourceTime %= cycle;
|
|
14007
14081
|
}
|
|
14008
|
-
const
|
|
14082
|
+
const shownTime = mediaElementTime(mediaStart + sourceTime) - mediaStart;
|
|
14083
|
+
const frameIndex = Math.floor(shownTime * extracted.fps);
|
|
14009
14084
|
if (frameIndex < 0 || extracted.totalFrames <= 0) return null;
|
|
14010
14085
|
if (isVideoHiddenBeforeStreamStart(
|
|
14011
14086
|
extracted.metadata.videoStreamLeadSeconds,
|
|
@@ -18247,7 +18322,7 @@ async function launchHdrBrowser(width, height) {
|
|
|
18247
18322
|
);
|
|
18248
18323
|
}
|
|
18249
18324
|
const browser = await ppt.launch({
|
|
18250
|
-
...
|
|
18325
|
+
...ownedLaunchOptions(),
|
|
18251
18326
|
headless: false,
|
|
18252
18327
|
executablePath: chromePath,
|
|
18253
18328
|
args: withHyperframesBrowserMarker(buildHdrChromeArgs(width, height))
|
|
@@ -18392,6 +18467,7 @@ export {
|
|
|
18392
18467
|
formatFfmpegError,
|
|
18393
18468
|
describeFfmpegFailure,
|
|
18394
18469
|
runFfmpeg,
|
|
18470
|
+
runFfprobe,
|
|
18395
18471
|
declareContentAddressedUrl,
|
|
18396
18472
|
declareProbeFactsUrl,
|
|
18397
18473
|
PROBE_FACTS_VERSION,
|
|
@@ -18451,6 +18527,7 @@ export {
|
|
|
18451
18527
|
runVideoExtractionWithRetry,
|
|
18452
18528
|
parseVideoElements,
|
|
18453
18529
|
parseImageElements,
|
|
18530
|
+
sdrCanvasColourFilters,
|
|
18454
18531
|
extractVideoFramesRange,
|
|
18455
18532
|
isVideoPastTimelineEnd,
|
|
18456
18533
|
rebaseVideoToWindow,
|
|
@@ -15,16 +15,16 @@ import {
|
|
|
15
15
|
findFFmpeg,
|
|
16
16
|
findFFprobe,
|
|
17
17
|
getFFmpegInstallHint
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-5QKJPCQ4.js";
|
|
19
19
|
import {
|
|
20
20
|
DEFAULT_VP9_CPU_USED,
|
|
21
21
|
SDR_RGB_TO_BT709_FILTER,
|
|
22
22
|
SDR_RGB_TO_TAGGED_BT709_FILTER,
|
|
23
23
|
renderProvenanceArgs
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-RDDVQSNQ.js";
|
|
25
25
|
import {
|
|
26
26
|
runCancellableProcess
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-X7A7C4JS.js";
|
|
28
28
|
|
|
29
29
|
// src/background-removal/pipeline.ts
|
|
30
30
|
import { spawn } from "child_process";
|
|
@@ -317,7 +317,7 @@ async function decoderTransposesDimensions(inputPath) {
|
|
|
317
317
|
}
|
|
318
318
|
async function probeMedia(inputPath) {
|
|
319
319
|
const isImage = inferInputKind(inputPath) === "image";
|
|
320
|
-
const engine = await import("./src-
|
|
320
|
+
const engine = await import("./src-4YJKYMNF.js");
|
|
321
321
|
const meta = await engine.extractMediaMetadata(inputPath);
|
|
322
322
|
if (isImage) {
|
|
323
323
|
return { width: meta.width, height: meta.height, fps: 0, frameCount: 1 };
|
|
@@ -0,0 +1,55 @@
|
|
|
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
|
+
// src/utils/checkFindings.ts
|
|
9
|
+
var SEVERITY = { info: 0, warning: 1, error: 2 };
|
|
10
|
+
function findingAtRoot(code, severity, message, sourceFile) {
|
|
11
|
+
return {
|
|
12
|
+
code,
|
|
13
|
+
severity,
|
|
14
|
+
message,
|
|
15
|
+
selector: "[data-composition-id]",
|
|
16
|
+
dataAttributes: {},
|
|
17
|
+
sourceFile,
|
|
18
|
+
bbox: { x: 0, y: 0, width: 0, height: 0 },
|
|
19
|
+
time: 0
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
function findingElementKey(finding) {
|
|
23
|
+
return JSON.stringify([finding.sourceFile, finding.selector]);
|
|
24
|
+
}
|
|
25
|
+
function groupSampledFindings(findings, compareEvidence = () => 0) {
|
|
26
|
+
const groups = /* @__PURE__ */ new Map();
|
|
27
|
+
for (const finding of findings) {
|
|
28
|
+
const key = JSON.stringify([findingElementKey(finding), finding.code]);
|
|
29
|
+
const times = finding.times ?? [finding.time];
|
|
30
|
+
const group = groups.get(key);
|
|
31
|
+
if (!group) {
|
|
32
|
+
groups.set(key, { finding, times: new Set(times) });
|
|
33
|
+
continue;
|
|
34
|
+
}
|
|
35
|
+
for (const time of times) group.times.add(time);
|
|
36
|
+
const severity = SEVERITY[finding.severity] - SEVERITY[group.finding.severity];
|
|
37
|
+
if (severity > 0 || severity === 0 && compareEvidence(finding, group.finding) > 0) {
|
|
38
|
+
group.finding = finding;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
return [...groups.values()].map(({ finding, times }) => ({
|
|
42
|
+
...finding,
|
|
43
|
+
times: [...times].sort((a, b) => a - b)
|
|
44
|
+
}));
|
|
45
|
+
}
|
|
46
|
+
function formatFindingTimes(finding) {
|
|
47
|
+
return `t=${(finding.times ?? [finding.time]).join(", ")}s`;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export {
|
|
51
|
+
findingAtRoot,
|
|
52
|
+
findingElementKey,
|
|
53
|
+
groupSampledFindings,
|
|
54
|
+
formatFindingTimes
|
|
55
|
+
};
|
|
@@ -1278,7 +1278,7 @@ async function withFigmaErrors(command, fn) {
|
|
|
1278
1278
|
} catch (err) {
|
|
1279
1279
|
if (err instanceof Error) {
|
|
1280
1280
|
try {
|
|
1281
|
-
const { trackCommandFailure } = await import("./events-
|
|
1281
|
+
const { trackCommandFailure } = await import("./events-T3CLIYRG.js");
|
|
1282
1282
|
trackCommandFailure(
|
|
1283
1283
|
command,
|
|
1284
1284
|
err,
|
|
@@ -7,14 +7,14 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
trackLintReport,
|
|
9
9
|
trackLintRuleStreak
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-FMWACL3L.js";
|
|
11
11
|
import {
|
|
12
12
|
shouldTrack
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-FJW757TF.js";
|
|
14
14
|
import {
|
|
15
15
|
LINT_RULE_COUNT,
|
|
16
16
|
LINT_RULE_GROUP_COUNTS
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-2MLMO25E.js";
|
|
18
18
|
|
|
19
19
|
// src/telemetry/lintStreaks.ts
|
|
20
20
|
import { createHash } from "crypto";
|
|
@@ -11,10 +11,10 @@ import {
|
|
|
11
11
|
MAX_AUDIO_GAIN_DB,
|
|
12
12
|
formatAudioGain,
|
|
13
13
|
isAudibleVideoElement
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-KLIPVNCO.js";
|
|
15
15
|
import {
|
|
16
16
|
decodeAuthoredAttribute
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-OFRRUYBA.js";
|
|
18
18
|
import {
|
|
19
19
|
findFfBinary
|
|
20
20
|
} from "./chunk-VAS6HQX3.js";
|
|
@@ -12,10 +12,10 @@ import {
|
|
|
12
12
|
} from "./chunk-2ST4WAFY.js";
|
|
13
13
|
import {
|
|
14
14
|
createProjectConfig
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-WHD5IAHI.js";
|
|
16
16
|
import {
|
|
17
17
|
isHyperframesProject
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-VW2LVMKB.js";
|
|
19
19
|
|
|
20
20
|
// src/utils/desktopApp.ts
|
|
21
21
|
import { spawn, spawnSync } from "child_process";
|
|
@@ -7,10 +7,10 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
parseFeedbackRating,
|
|
9
9
|
trackRenderFeedback
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-FMWACL3L.js";
|
|
11
11
|
import {
|
|
12
12
|
shouldTrack
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-FJW757TF.js";
|
|
14
14
|
import {
|
|
15
15
|
c
|
|
16
16
|
} from "./chunk-ZTZA4UWZ.js";
|
|
@@ -84,7 +84,7 @@ async function getDoctorSummary() {
|
|
|
84
84
|
try {
|
|
85
85
|
const [{ getSystemMeta }, { findFFmpeg }] = await Promise.all([
|
|
86
86
|
import("./system-YD4AW5ZX.js"),
|
|
87
|
-
import("./ffmpeg-
|
|
87
|
+
import("./ffmpeg-UNDAJ2IC.js")
|
|
88
88
|
]);
|
|
89
89
|
const sys = getSystemMeta();
|
|
90
90
|
const parts = [
|