hyperframes 0.8.174 → 0.8.176
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-XANMFNIP.js → add-YZGUHLDP.js} +11 -11
- package/dist/{animatedGifPrep-OUQ4M2T3.js → animatedGifPrep-6SPYXSHE.js} +5 -5
- package/dist/api.js +14 -14
- package/dist/{asset-SVONSQ67.js → asset-YPC34MTV.js} +2 -2
- package/dist/{assetCataloger-AG77T6SF.js → assetCataloger-5GGNQC3Y.js} +5 -5
- package/dist/{audio-DMQOTXKL.js → audio-33JHU37L.js} +11 -11
- package/dist/{auth-ED7SPBS6.js → auth-UUIHOS2D.js} +1 -1
- package/dist/{autoUpdate-4QQYZOVT.js → autoUpdate-F747BE3R.js} +2 -2
- package/dist/{backgroundChecks-2VT46P5S.js → backgroundChecks-3YLO2CSC.js} +3 -3
- package/dist/backgroundChecksWorker.js +3 -3
- package/dist/{batchRender-KIYAPCTG.js → batchRender-KXXTVNPB.js} +3 -3
- package/dist/{beats-OE7M5BEE.js → beats-DQDV2ZFS.js} +4 -4
- package/dist/{benchmark-2ZQP2RNF.js → benchmark-ZPPZEIHZ.js} +8 -8
- package/dist/{browser-CSSJ3VWW.js → browser-ZFLEP3E6.js} +3 -3
- package/dist/{bundleWithLocalizedFonts-ZUC4MLSO.js → bundleWithLocalizedFonts-PMRGOQWD.js} +2 -2
- package/dist/{capture-3NXAHID3.js → capture-5OW6VNXU.js} +2 -2
- package/dist/{capture-APNSW4ZT.js → capture-6XCCIPT4.js} +8 -8
- package/dist/{catalog-CFDBIVSC.js → catalog-3A6KKCWF.js} +11 -11
- package/dist/{catch-up-OUK522JT.js → catch-up-KPGCLN4C.js} +4 -4
- package/dist/{check-PUDEOXGP.js → check-I3XLXS77.js} +50 -44
- package/dist/{checkBrowser-PMRJSTFJ.js → checkBrowser-KX7LNAFA.js} +176 -80
- package/dist/{chunk-CI7ZHFSV.js → chunk-3Q4Y33FT.js} +6 -6
- package/dist/{chunk-RZ2FMZ5U.js → chunk-42T7OP4O.js} +1 -1
- package/dist/{chunk-RLBLLBLL.js → chunk-44XBAKKT.js} +2 -2
- package/dist/{chunk-6HF2WFPV.js → chunk-5EA4C6RA.js} +4 -4
- package/dist/{chunk-JKPI7VLI.js → chunk-5TGVURKQ.js} +1 -1
- package/dist/{chunk-HZZZ6C6Z.js → chunk-5ZSLJXQX.js} +1 -1
- package/dist/{chunk-4PX47Z65.js → chunk-7LU4ZHYV.js} +1 -1
- package/dist/{chunk-TI3HKGQC.js → chunk-7XX4QGQV.js} +3 -3
- package/dist/{chunk-XRQBHOBT.js → chunk-B4VT6YU2.js} +2 -2
- package/dist/{chunk-4WQUBVDO.js → chunk-B7DJQFAC.js} +3 -3
- package/dist/{chunk-ONXTLGJB.js → chunk-BTCHRQNV.js} +3 -3
- package/dist/{chunk-JL76Y45C.js → chunk-BVXZYFAL.js} +7 -7
- package/dist/{chunk-GXWV4FNV.js → chunk-DQY6WTF7.js} +1 -1
- package/dist/{chunk-ALCCEHX2.js → chunk-DZMWNCHM.js} +2 -2
- package/dist/{chunk-SI76MFBF.js → chunk-EEVCXPUA.js} +2 -2
- package/dist/chunk-EEXE43II.js +3805 -0
- package/dist/{chunk-D2YN4FNH.js → chunk-GOOB64LO.js} +1 -1
- package/dist/{chunk-4VTUDCHM.js → chunk-GVIH4ZQY.js} +1 -1
- package/dist/{chunk-UKAOWORD.js → chunk-HTC3VGU3.js} +5 -5
- package/dist/{chunk-DRR3UMIY.js → chunk-HVMHVW5G.js} +1 -1
- package/dist/{chunk-PLYTTPVE.js → chunk-J53AJK3Q.js} +2 -2
- package/dist/{chunk-UQLXFITA.js → chunk-JNL3RMDG.js} +1 -1
- package/dist/{chunk-EJZJ5AY7.js → chunk-K535ASAM.js} +1 -1
- package/dist/{chunk-RNKNDYBN.js → chunk-KRKSY2AE.js} +1 -1
- package/dist/{chunk-SH43VDEF.js → chunk-KUOUUG33.js} +175 -119
- package/dist/{chunk-2XSAYE7U.js → chunk-L3LJVYXS.js} +2 -2
- package/dist/{chunk-EAR5LFOH.js → chunk-L6XT6GSV.js} +1 -1
- package/dist/{chunk-LUKY7253.js → chunk-LEILKM2N.js} +909 -819
- package/dist/{chunk-MXNPYP5F.js → chunk-LY2GLSOS.js} +1 -1
- package/dist/{chunk-UDJHYQSZ.js → chunk-LZT3NUTE.js} +1 -1
- package/dist/{chunk-QRO2UBWS.js → chunk-MDTMWUJI.js} +1 -1
- package/dist/{chunk-QUK2IZKI.js → chunk-MG66UO4N.js} +1 -1
- package/dist/{chunk-HB2UP4V7.js → chunk-MLRCTTSD.js} +1 -1
- package/dist/{chunk-LR72ON5B.js → chunk-NGRNAF5X.js} +1 -1
- package/dist/{chunk-S5D4Q74P.js → chunk-NWEER3QY.js} +2 -2
- package/dist/{chunk-2CDBTQKS.js → chunk-NZZYJOMJ.js} +41 -18
- package/dist/{chunk-HZZYJV7K.js → chunk-OMUKSCWE.js} +10 -10
- package/dist/{chunk-X3BE2HX4.js → chunk-OUMYTLPP.js} +3 -3
- package/dist/{chunk-H2BPHBDY.js → chunk-OYEDHVSI.js} +1 -1
- package/dist/{chunk-RYR3LTZR.js → chunk-PL4WM5XE.js} +2 -2
- package/dist/{chunk-APMA7XXB.js → chunk-QWCXGTOH.js} +1 -1
- package/dist/{chunk-3MDO2Q4F.js → chunk-R2TVJ4DW.js} +1 -1
- package/dist/{chunk-55LJK3H2.js → chunk-RBOVQRMR.js} +3 -3
- package/dist/{chunk-W3YVQ6VI.js → chunk-SSE6NWZI.js} +9 -9
- package/dist/{chunk-HIYAJFRH.js → chunk-SURF34CK.js} +1 -1
- package/dist/{chunk-SEXAKOK3.js → chunk-T6NA6TR3.js} +2 -2
- package/dist/{chunk-QJCVK7CI.js → chunk-TNDNFZOK.js} +2 -2
- package/dist/{chunk-G4UUEQDT.js → chunk-USEUH5VV.js} +1 -1
- package/dist/{chunk-CSMKMVGG.js → chunk-VDUTZXIJ.js} +5 -5
- package/dist/{chunk-RMKL5FVH.js → chunk-VEQ7DKPG.js} +1 -1
- package/dist/{chunk-W4AECR7V.js → chunk-VER46LXI.js} +1 -1
- package/dist/{chunk-SEHRMJTO.js → chunk-X4PK5ZXP.js} +3 -3
- package/dist/{chunk-AR2SEGPZ.js → chunk-X6HYBA4A.js} +1 -1
- package/dist/{chunk-B23GBPCW.js → chunk-X6ZRZWPZ.js} +1 -1
- package/dist/{chunk-XVIFWEPR.js → chunk-YWSXFFO3.js} +5 -3
- package/dist/{clean-6SVCU47L.js → clean-6REGQY3I.js} +13 -13
- package/dist/cli.js +53 -53
- package/dist/{cloud-TIISRMZV.js → cloud-RAQZPMNP.js} +4 -4
- package/dist/{cloudrun-4TMBWELQ.js → cloudrun-P35BPQCO.js} +4 -4
- package/dist/commands/contrast-audit.browser.js +18 -50
- package/dist/{compare-YV2XTKYX.js → compare-XYFSHHMQ.js} +23 -23
- package/dist/{compiler-O5R3ZZDV.js → compiler-5TFPJPQQ.js} +2 -2
- package/dist/{component-7LWSMRKZ.js → component-CRAO6Q2E.js} +3 -3
- package/dist/{compositions-5VTSC4M3.js → compositions-4SHILZZX.js} +9 -9
- package/dist/{delete-AV2SKLZW.js → delete-ZS4AHMTY.js} +3 -3
- package/dist/{deterministicFonts-RWGQPEZU.js → deterministicFonts-L7YEEFGI.js} +1 -1
- package/dist/{dist-4FY5EEH5.js → dist-U2HCECNB.js} +2 -2
- package/dist/{doctor-XOCYSEAZ.js → doctor-OL4FYABY.js} +9 -9
- package/dist/{events-6QPRKX45.js → events-LIJBGTTX.js} +2 -2
- package/dist/{events-MAZUZI43.js → events-Z3XZCRFZ.js} +3 -3
- package/dist/{feedback-MGRILBMP.js → feedback-OE6SB2VE.js} +6 -6
- package/dist/{ffmpeg-YCULCUB2.js → ffmpeg-CSJLJAQ3.js} +5 -5
- package/dist/{figma-UMBACTCG.js → figma-DMUCMO67.js} +3 -3
- package/dist/fontLocalizeCli.js +8 -8
- package/dist/{get-LWEOLWYN.js → get-NQOQVUI5.js} +3 -3
- package/dist/{gpuPolicy-MCIQK5Z7.js → gpuPolicy-C6JWEX7F.js} +5 -5
- package/dist/{grade-compare-MZQOTX3F.js → grade-compare-HLTHHQGH.js} +24 -24
- package/dist/{help-THPG2NRP.js → help-ZAXWHAYF.js} +1 -1
- package/dist/{history-2IQYTDU5.js → history-CMY7ZEEW.js} +6 -6
- package/dist/hyperframe-runtime.js +59 -59
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +59 -59
- package/dist/hyperframes-player.global.js +3 -3
- package/dist/{info-CXMADV6K.js → info-STR7EYI3.js} +7 -7
- package/dist/{init-Y5GU454D.js → init-YSMKK5VG.js} +25 -25
- package/dist/{inspect-S7JDKEMJ.js → inspect-QV6DC6GO.js} +24 -24
- package/dist/{installer-AY23RPEZ.js → installer-NY5E5HCO.js} +4 -4
- package/dist/{keyframes-FKYT6QAJ.js → keyframes-HN3DW5FG.js} +6 -6
- package/dist/{lambda-7WMZGRH5.js → lambda-PG3JKNWS.js} +5 -5
- package/dist/{layout-LL4GOS6G.js → layout-O4QAR2XY.js} +24 -24
- package/dist/{lint-2M7FY4ZT.js → lint-AY55R4UR.js} +6 -6
- package/dist/{list-SZBMUHBW.js → list-TH2KCVNN.js} +3 -3
- package/dist/{login-QRACITGK.js → login-TRCMRV4B.js} +4 -4
- package/dist/{manager-W2BTPAVT.js → manager-2J4XGDZ3.js} +6 -6
- package/dist/{media-treatment-E4VJETTT.js → media-treatment-ET5QQSWP.js} +11 -11
- package/dist/{models-AHO3MYE7.js → models-RFUUSCG6.js} +9 -9
- package/dist/{motionShot-LMMYPGPT.js → motionShot-2ET565ZV.js} +12 -12
- package/dist/{normalize-audio-RDWIWZOO.js → normalize-audio-LUOJSD3W.js} +4 -4
- package/dist/{open-WOKRHFDH.js → open-MVEOYQRQ.js} +11 -11
- package/dist/{parakeetRunner-RY2KIE63.js → parakeetRunner-3TG7EHWA.js} +11 -11
- package/dist/{pipeline-LEA32KLW.js → pipeline-JWGTH2BJ.js} +6 -6
- package/dist/{play-3S46XG66.js → play-I3WJPYXK.js} +16 -16
- package/dist/{preflight-MCOFNWFQ.js → preflight-4WTT4D5X.js} +6 -6
- package/dist/{present-GR7F4CTI.js → present-DUZBKUYH.js} +12 -12
- package/dist/{preview-TKEAF3KR.js → preview-7J5TBTRP.js} +16 -16
- package/dist/{producer-BJ5SUPVD.js → producer-UZZQX6IJ.js} +1 -1
- package/dist/{projectConfig-YJBYWSNK.js → projectConfig-HDALEM6S.js} +6 -6
- package/dist/{publication-2HXIW4LS.js → publication-NX4VC7UU.js} +2 -2
- package/dist/{publish-LHJFEKEI.js → publish-AZRRQUXM.js} +7 -7
- package/dist/{remove-background-AQUUVAPD.js → remove-background-OX5WZTXY.js} +7 -7
- package/dist/{render-AXTGGHVZ.js → render-HGT3EGIK.js} +3 -3
- package/dist/{render-B5S7FLLS.js → render-IYTGM6DE.js} +9 -9
- package/dist/{render-AOHXNGIM.js → render-JUS2ROIN.js} +25 -25
- package/dist/{render-batch-DMQG3QWK.js → render-batch-MUCDZ2WF.js} +3 -3
- package/dist/{resolver-FV54X3T2.js → resolver-FLQ42X2Y.js} +4 -4
- package/dist/{sherpa-RKURBTUM.js → sherpa-PRI3JLUP.js} +10 -10
- package/dist/{skills-YUXI4IRF.js → skills-CZ6VW5SZ.js} +5 -5
- package/dist/{skillsUpdateCheck-HK3GDYD6.js → skillsUpdateCheck-K4UKUAOC.js} +3 -3
- package/dist/{snapshot-D6Q52Z4X.js → snapshot-MPE4GIMJ.js} +33 -29
- package/dist/{src-MRYINZ62.js → src-JGPFLYBL.js} +4 -4
- package/dist/{src-DPR7JBU3.js → src-SGPA7DM7.js} +7 -7
- package/dist/{staticProjectServer-RT7JATD2.js → staticProjectServer-DG4VZO4G.js} +12 -12
- package/dist/studio/assets/{hyperframes-player-B4KfQdfl.js → hyperframes-player-DBHpVw8L.js} +1 -1
- package/dist/studio/assets/{index-DGl_Zvb3.js → index-BkDF4Z-5.js} +97 -97
- package/dist/studio/assets/{index-Bsc8xBh9.js → index-DHRXpmtI.js} +1 -1
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-NL2RMVB5.js → studio-api-RGNBVLLL.js} +6 -6
- package/dist/{studioServer-VL2GUVCR.js → studioServer-FWACRD3Y.js} +42 -42
- package/dist/{telemetry-5PJWDFSZ.js → telemetry-CHJA5JFQ.js} +3 -3
- package/dist/{timeline-OH35TN25.js → timeline-TZDMQBSM.js} +14 -14
- package/dist/{tokens-YISVK7W2.js → tokens-B5KI7FBA.js} +2 -2
- package/dist/{transcribe-6KBSE76Q.js → transcribe-M7NO6XBP.js} +8 -8
- package/dist/{transcribe-KRPN2FWA.js → transcribe-VHUDXZET.js} +15 -15
- package/dist/{updateCheck-QCZTFFSQ.js → updateCheck-NMD6AFFG.js} +2 -2
- package/dist/{upgrade-DRFQISI6.js → upgrade-WGFMGJ5O.js} +2 -2
- package/dist/{urlDownloader-CJDXTKMC.js → urlDownloader-FZ5ISJES.js} +4 -4
- package/dist/{validate-BKY3FIJC.js → validate-NM3GLUWX.js} +18 -18
- package/dist/{video-3UEJ57Q7.js → video-7CDAIWYC.js} +5 -5
- package/package.json +1 -1
- package/dist/chunk-UKJECUDK.js +0 -3805
|
@@ -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-Z3XZCRFZ.js");
|
|
1282
1282
|
trackCommandFailure(
|
|
1283
1283
|
command,
|
|
1284
1284
|
err,
|
|
@@ -8,14 +8,14 @@ import {
|
|
|
8
8
|
DEFAULT_REGISTRY_URL,
|
|
9
9
|
fetchItemFile,
|
|
10
10
|
validRegistryItem
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-OYEDHVSI.js";
|
|
12
12
|
import {
|
|
13
13
|
publishRegistryFile,
|
|
14
14
|
registryTargetPath
|
|
15
15
|
} from "./chunk-GMECXFAN.js";
|
|
16
16
|
import {
|
|
17
17
|
validateVariables
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-VEQ7DKPG.js";
|
|
19
19
|
import {
|
|
20
20
|
realProjectRoot
|
|
21
21
|
} from "./chunk-OFQWTKPW.js";
|
|
@@ -12,8 +12,10 @@ import {
|
|
|
12
12
|
import { chmodSync, mkdirSync, mkdtempSync, renameSync, rmSync, statSync } from "fs";
|
|
13
13
|
import { open } from "fs/promises";
|
|
14
14
|
import { dirname, join } from "path";
|
|
15
|
+
import { setTimeout as sleep } from "timers/promises";
|
|
15
16
|
var PART_BYTES = 8 * 1024 * 1024;
|
|
16
17
|
var CONNECTIONS = 8;
|
|
18
|
+
var RETRIES = 3;
|
|
17
19
|
async function downloadToFile(url, destPath, options = {}) {
|
|
18
20
|
const fetchImpl = options.fetchImpl ?? fetch;
|
|
19
21
|
const failFast = new AbortController();
|
|
@@ -36,38 +38,59 @@ async function downloadToFile(url, destPath, options = {}) {
|
|
|
36
38
|
let firstError;
|
|
37
39
|
try {
|
|
38
40
|
const file = await open(stagedFile, "wx");
|
|
39
|
-
const
|
|
40
|
-
let written = 0;
|
|
41
|
+
const pump = async (res, part) => {
|
|
41
42
|
for await (const chunk of res.body) {
|
|
42
|
-
await file.write(chunk, 0, chunk.byteLength,
|
|
43
|
-
|
|
43
|
+
await file.write(chunk, 0, chunk.byteLength, part.at);
|
|
44
|
+
part.at += chunk.byteLength;
|
|
44
45
|
bytes += chunk.byteLength;
|
|
45
46
|
signal.throwIfAborted();
|
|
46
47
|
options.onProgress?.(bytes, total);
|
|
47
48
|
}
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
49
|
+
};
|
|
50
|
+
const fetchRange = async (start, end, res) => {
|
|
51
|
+
const part = { at: start };
|
|
52
|
+
for (let attempt = 0; ; attempt++) {
|
|
53
|
+
try {
|
|
54
|
+
res ??= await get(`bytes=${part.at}-${end}`);
|
|
55
|
+
assertOk(res, url);
|
|
56
|
+
if (res.status !== 206) throw new Error(`Failed to download ${url}: range ignored`);
|
|
57
|
+
await pump(res, part);
|
|
58
|
+
if (part.at > end) return;
|
|
59
|
+
throw new Error(`connection closed at byte ${part.at}`);
|
|
60
|
+
} catch (error) {
|
|
61
|
+
if (signal.aborted) throw error;
|
|
62
|
+
if (attempt === RETRIES) {
|
|
63
|
+
throw new Error(
|
|
64
|
+
`Failed to download ${url}: bytes ${start}-${end} dropped ${RETRIES + 1} times`,
|
|
65
|
+
{ cause: error }
|
|
66
|
+
);
|
|
67
|
+
}
|
|
68
|
+
res?.body?.cancel().catch(() => {
|
|
69
|
+
});
|
|
70
|
+
res = void 0;
|
|
71
|
+
await sleep(250 * 2 ** attempt, void 0, { signal });
|
|
72
|
+
}
|
|
52
73
|
}
|
|
53
74
|
};
|
|
54
75
|
const parts = [];
|
|
55
76
|
if (ranged && total !== void 0) {
|
|
56
|
-
parts.push(
|
|
77
|
+
parts.push(fetchRange(0, Math.min(PART_BYTES, total) - 1, first));
|
|
57
78
|
const rest = total - PART_BYTES;
|
|
58
79
|
const size = Math.ceil(rest / Math.min(CONNECTIONS - 1, Math.ceil(rest / PART_BYTES)));
|
|
59
80
|
for (let start = PART_BYTES; start < total; start += size) {
|
|
60
|
-
|
|
61
|
-
parts.push(
|
|
62
|
-
get(`bytes=${start}-${end}`).then((res) => {
|
|
63
|
-
assertOk(res, url);
|
|
64
|
-
if (res.status !== 206) throw new Error(`Failed to download ${url}: range ignored`);
|
|
65
|
-
return writePart(res, start, end - start + 1);
|
|
66
|
-
})
|
|
67
|
-
);
|
|
81
|
+
parts.push(fetchRange(start, Math.min(start + size, total) - 1));
|
|
68
82
|
}
|
|
69
83
|
} else {
|
|
70
|
-
|
|
84
|
+
const part = { at: 0 };
|
|
85
|
+
parts.push(
|
|
86
|
+
pump(first, part).then(() => {
|
|
87
|
+
if (total !== void 0 && part.at !== total) {
|
|
88
|
+
throw new Error(
|
|
89
|
+
`Truncated download: got ${part.at} bytes, expected ${total} (content-length). The presigned URL may have expired mid-transfer \u2014 refetch via \`hyperframes cloud get\`.`
|
|
90
|
+
);
|
|
91
|
+
}
|
|
92
|
+
})
|
|
93
|
+
);
|
|
71
94
|
}
|
|
72
95
|
await Promise.all(
|
|
73
96
|
parts.map(
|
|
@@ -9,20 +9,20 @@ import {
|
|
|
9
9
|
resolveCliChromeGpuMode,
|
|
10
10
|
seekCompositionTimeline,
|
|
11
11
|
waitForRuntimeReady
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-KUOUUG33.js";
|
|
13
13
|
import {
|
|
14
14
|
resolveCompositionViewportFromHtml
|
|
15
15
|
} from "./chunk-FH7WODJH.js";
|
|
16
16
|
import {
|
|
17
17
|
launchManagedBrowser,
|
|
18
18
|
resolveManagedGpuMode
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-L6XT6GSV.js";
|
|
20
20
|
import {
|
|
21
21
|
pageNavigationTimeoutMs
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-X4PK5ZXP.js";
|
|
23
23
|
import {
|
|
24
24
|
resolveProject
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-SURF34CK.js";
|
|
26
26
|
import {
|
|
27
27
|
defineCommand
|
|
28
28
|
} from "./chunk-S3S4TGEH.js";
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
import {
|
|
37
37
|
printDeprecationNotice,
|
|
38
38
|
withMeta
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-5TGVURKQ.js";
|
|
40
40
|
import {
|
|
41
41
|
decodeWellFormedEscapes
|
|
42
42
|
} from "./chunk-BSQ7XANM.js";
|
|
@@ -227,7 +227,7 @@ function extractCompositionErrorsFromLint(lintResult) {
|
|
|
227
227
|
async function localizeRemoteAssets(html) {
|
|
228
228
|
let dir;
|
|
229
229
|
try {
|
|
230
|
-
const { loadProducer } = await import("./producer-
|
|
230
|
+
const { loadProducer } = await import("./producer-UZZQX6IJ.js");
|
|
231
231
|
const { localizeRemoteMediaSources, localizeRemoteImageSources, localizeRemoteFontFaces } = await loadProducer();
|
|
232
232
|
dir = mkdtempSync(join(tmpdir(), "hf-validate-assets-"));
|
|
233
233
|
const assetDir = dir;
|
|
@@ -248,9 +248,9 @@ async function localizeRemoteAssets(html) {
|
|
|
248
248
|
}
|
|
249
249
|
async function validateInBrowser(project, opts) {
|
|
250
250
|
const projectDir = project.dir;
|
|
251
|
-
const { bundleToSingleHtml } = await import("./compiler-
|
|
251
|
+
const { bundleToSingleHtml } = await import("./compiler-5TFPJPQQ.js");
|
|
252
252
|
const { ensureBrowser } = await import("./manager-HEUPD2YB.js");
|
|
253
|
-
const { serveStaticProjectHtml } = await import("./staticProjectServer-
|
|
253
|
+
const { serveStaticProjectHtml } = await import("./staticProjectServer-DG4VZO4G.js");
|
|
254
254
|
const { lintProject } = await import("./lintProject-ARKJXDQF.js");
|
|
255
255
|
const lintResult = await lintProject(projectDir);
|
|
256
256
|
const compositionErrors = extractCompositionErrorsFromLint(lintResult);
|
|
@@ -272,9 +272,9 @@ async function validateInBrowser(project, opts) {
|
|
|
272
272
|
try {
|
|
273
273
|
const browser = await ensureBrowser();
|
|
274
274
|
const puppeteer = await import("puppeteer-core");
|
|
275
|
-
const { buildChromeArgs, analyzeClipMediaFit } = await import("./src-
|
|
275
|
+
const { buildChromeArgs, analyzeClipMediaFit } = await import("./src-JGPFLYBL.js");
|
|
276
276
|
const requestedGpuMode = resolveCliChromeGpuMode();
|
|
277
|
-
const { assertWebGpuAdapterAvailable, compositionRequiresWebGpu, resolveLocalWebGpu } = await import("./gpuPolicy-
|
|
277
|
+
const { assertWebGpuAdapterAvailable, compositionRequiresWebGpu, resolveLocalWebGpu } = await import("./gpuPolicy-C6JWEX7F.js");
|
|
278
278
|
const resolvedGpuMode = await resolveManagedGpuMode(requestedGpuMode, browser.executablePath);
|
|
279
279
|
const requiresWebGpu = compositionRequiresWebGpu(html);
|
|
280
280
|
const { gpuConfig, softwareWebGpu } = resolveLocalWebGpu(resolvedGpuMode, requiresWebGpu);
|
|
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
getMimeType,
|
|
9
9
|
injectMediaCodecMapIntoHtml
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-3Q4Y33FT.js";
|
|
11
11
|
import {
|
|
12
12
|
PROXY_VARIANT_CONFIG,
|
|
13
13
|
ProxyCapacityError,
|
|
@@ -18,10 +18,10 @@ import {
|
|
|
18
18
|
recordProxyRequest,
|
|
19
19
|
resolveProxy,
|
|
20
20
|
resolveProxyVariantRequest
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-QWCXGTOH.js";
|
|
22
22
|
import {
|
|
23
23
|
resolveAutoProxy
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-LZT3NUTE.js";
|
|
25
25
|
import {
|
|
26
26
|
decodeWellFormedEscapes
|
|
27
27
|
} from "./chunk-BSQ7XANM.js";
|
|
@@ -8,10 +8,10 @@ import {
|
|
|
8
8
|
DEFAULT_VP9_CPU_USED,
|
|
9
9
|
isHttpUrl,
|
|
10
10
|
runFfmpeg
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-YWSXFFO3.js";
|
|
12
12
|
import {
|
|
13
13
|
parseAnimatedGifMetadata
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-VEQ7DKPG.js";
|
|
15
15
|
import {
|
|
16
16
|
parseHTML
|
|
17
17
|
} from "./chunk-SDYDNHEE.js";
|
|
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
downloadToFile
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-NZZYJOMJ.js";
|
|
10
10
|
import {
|
|
11
11
|
CACHE_DIR,
|
|
12
12
|
PINNED_PACKAGES,
|
|
@@ -21,10 +21,10 @@ import {
|
|
|
21
21
|
emitWords,
|
|
22
22
|
getPreparedWavDurationSeconds,
|
|
23
23
|
prepareWav
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-7XX4QGQV.js";
|
|
25
25
|
import {
|
|
26
26
|
stoppedByCancelSignal
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-X6HYBA4A.js";
|
|
28
28
|
import {
|
|
29
29
|
PARAKEET_MODEL_LABEL,
|
|
30
30
|
SHERPA_ERROR_PREFIX,
|
|
@@ -10,21 +10,21 @@ import {
|
|
|
10
10
|
seekCompositionTimeline,
|
|
11
11
|
waitForCompositionFonts,
|
|
12
12
|
waitForRuntimeReady
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-KUOUUG33.js";
|
|
14
14
|
import {
|
|
15
15
|
gotoWhenSent,
|
|
16
16
|
launchManagedBrowser,
|
|
17
17
|
resolveManagedGpuMode
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-L6XT6GSV.js";
|
|
19
19
|
import {
|
|
20
20
|
pageNavigationTimeoutMs
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-X4PK5ZXP.js";
|
|
22
22
|
import {
|
|
23
23
|
resolveProject
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-SURF34CK.js";
|
|
25
25
|
import {
|
|
26
26
|
serveStaticProjectHtml
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-OUMYTLPP.js";
|
|
28
28
|
import {
|
|
29
29
|
defineCommand
|
|
30
30
|
} from "./chunk-S3S4TGEH.js";
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
import {
|
|
39
39
|
printDeprecationNotice,
|
|
40
40
|
withMeta
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-5TGVURKQ.js";
|
|
42
42
|
import {
|
|
43
43
|
normalizeErrorMessage
|
|
44
44
|
} from "./chunk-KNU5COPB.js";
|
|
@@ -709,7 +709,7 @@ async function collectTweenBoundaries(page) {
|
|
|
709
709
|
});
|
|
710
710
|
}
|
|
711
711
|
async function bundleProjectHtml(projectDir) {
|
|
712
|
-
const { bundleToSingleHtml } = await import("./compiler-
|
|
712
|
+
const { bundleToSingleHtml } = await import("./compiler-5TFPJPQQ.js");
|
|
713
713
|
return bundleToSingleHtml(projectDir);
|
|
714
714
|
}
|
|
715
715
|
async function alignViewportToComposition(page, url) {
|
|
@@ -728,13 +728,13 @@ async function alignViewportToComposition(page, url) {
|
|
|
728
728
|
async function runLayoutAudit(projectDir, opts) {
|
|
729
729
|
const { ensureBrowser } = await import("./manager-HEUPD2YB.js");
|
|
730
730
|
const puppeteer = await import("puppeteer-core");
|
|
731
|
-
const { buildChromeArgs } = await import("./src-
|
|
731
|
+
const { buildChromeArgs } = await import("./src-JGPFLYBL.js");
|
|
732
732
|
const {
|
|
733
733
|
assertWebGpuAdapterAvailable,
|
|
734
734
|
compositionRequiresWebGpu,
|
|
735
735
|
resolveLocalBrowserGpuMode,
|
|
736
736
|
resolveLocalWebGpu
|
|
737
|
-
} = await import("./gpuPolicy-
|
|
737
|
+
} = await import("./gpuPolicy-C6JWEX7F.js");
|
|
738
738
|
const html = await bundleProjectHtml(projectDir);
|
|
739
739
|
const server = await serveStaticProjectHtml(
|
|
740
740
|
projectDir,
|
|
@@ -7,10 +7,10 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
trackLintReport,
|
|
9
9
|
trackLintRuleStreak
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-GOOB64LO.js";
|
|
11
11
|
import {
|
|
12
12
|
shouldTrack
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-X6ZRZWPZ.js";
|
|
14
14
|
import {
|
|
15
15
|
LINT_RULE_COUNT,
|
|
16
16
|
LINT_RULE_GROUP_COUNTS
|
|
@@ -12,12 +12,12 @@ import {
|
|
|
12
12
|
ensureHfIds,
|
|
13
13
|
mintHfId,
|
|
14
14
|
walkCompositionDescendants
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-JNL3RMDG.js";
|
|
16
16
|
import {
|
|
17
17
|
isAllowedHtmlAttribute,
|
|
18
18
|
isSafeAttributeValue,
|
|
19
19
|
sanitizeRichTextChildren
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-VEQ7DKPG.js";
|
|
21
21
|
import {
|
|
22
22
|
decodedUrlPath,
|
|
23
23
|
removeElementWithGsapCascade
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
} from "./chunk-5ETJX6WM.js";
|
|
17
17
|
import {
|
|
18
18
|
runEnvironmentChecks
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-5ZSLJXQX.js";
|
|
20
20
|
import {
|
|
21
21
|
getAvailableMemoryMb,
|
|
22
22
|
getFreeDiskMb,
|
|
@@ -32,21 +32,21 @@ import {
|
|
|
32
32
|
import {
|
|
33
33
|
getUpdateMeta,
|
|
34
34
|
withMeta
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-5TGVURKQ.js";
|
|
36
36
|
import {
|
|
37
37
|
CONFIG_PATH,
|
|
38
38
|
withFileLock
|
|
39
39
|
} from "./chunk-XUXGIA7H.js";
|
|
40
40
|
import {
|
|
41
41
|
VERSION
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-EEVCXPUA.js";
|
|
43
43
|
import {
|
|
44
44
|
OPTIONAL_PACKAGES,
|
|
45
45
|
installedOptionalPackageVersion
|
|
46
46
|
} from "./chunk-3DKN5WKL.js";
|
|
47
47
|
import {
|
|
48
48
|
resolveExtractCacheDir
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-YWSXFFO3.js";
|
|
50
50
|
import {
|
|
51
51
|
normalizeErrorMessage
|
|
52
52
|
} from "./chunk-KNU5COPB.js";
|
|
@@ -232,7 +232,7 @@ function checkEnvironment() {
|
|
|
232
232
|
return { ok: true, detail: parts.join(" \xB7 ") };
|
|
233
233
|
}
|
|
234
234
|
async function checkWhisper() {
|
|
235
|
-
const { findWhisper, getInstallInstructions } = await import("./manager-
|
|
235
|
+
const { findWhisper, getInstallInstructions } = await import("./manager-2J4XGDZ3.js");
|
|
236
236
|
const result = findWhisper();
|
|
237
237
|
if (result) {
|
|
238
238
|
return { ok: true, detail: result.executablePath };
|
|
@@ -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-DQY6WTF7.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-YWSXFFO3.js";
|
|
20
20
|
import {
|
|
21
21
|
parseFps
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-VEQ7DKPG.js";
|
|
23
23
|
|
|
24
24
|
// src/browser/windowsCrash.ts
|
|
25
25
|
var STATUS_STACK_BUFFER_OVERRUN_DEC = "3221225595";
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
renderFrameIdForRenderId,
|
|
30
30
|
resolveAuthoredTimingWindow,
|
|
31
31
|
toFps
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-VEQ7DKPG.js";
|
|
33
33
|
import {
|
|
34
34
|
AUDIO_GROUP_RENDER_ID_ATTR,
|
|
35
35
|
COLOR_GRADING_SOURCE_HIDDEN_ATTR,
|
|
@@ -58,7 +58,7 @@ import {
|
|
|
58
58
|
shiftRateLane,
|
|
59
59
|
sourceTimeAt,
|
|
60
60
|
timeAtSourceTime
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-EEXE43II.js";
|
|
62
62
|
import {
|
|
63
63
|
clampAudioGain,
|
|
64
64
|
isAudibleVideoElement
|
|
@@ -1918,6 +1918,7 @@ function buildSrgbToSignalLut(transfer) {
|
|
|
1918
1918
|
const hlgA = 0.17883277;
|
|
1919
1919
|
const hlgB = 1 - 4 * hlgA;
|
|
1920
1920
|
const hlgC = 0.5 - hlgA * Math.log(4 * hlgA);
|
|
1921
|
+
const hlgSdrWhite = (Math.exp((0.75 - hlgC) / hlgA) + hlgB) / 12;
|
|
1921
1922
|
const pqM1 = 0.1593017578125;
|
|
1922
1923
|
const pqM2 = 78.84375;
|
|
1923
1924
|
const pqC1 = 0.8359375;
|
|
@@ -1933,7 +1934,8 @@ function buildSrgbToSignalLut(transfer) {
|
|
|
1933
1934
|
const linear = srgbByteToLinear(i);
|
|
1934
1935
|
let signal;
|
|
1935
1936
|
if (transfer === "hlg") {
|
|
1936
|
-
|
|
1937
|
+
const scene = linear * hlgSdrWhite;
|
|
1938
|
+
signal = scene <= 1 / 12 ? Math.sqrt(3 * scene) : hlgA * Math.log(12 * scene - hlgB) + hlgC;
|
|
1937
1939
|
} else {
|
|
1938
1940
|
const Lp = Math.max(0, linear * sdrNits / pqMaxNits);
|
|
1939
1941
|
const Lm1 = Math.pow(Lp, pqM1);
|
|
@@ -6,30 +6,30 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
redactHome
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-VDUTZXIJ.js";
|
|
10
10
|
import "./chunk-Z27A7NUB.js";
|
|
11
11
|
import "./chunk-5ETJX6WM.js";
|
|
12
12
|
import {
|
|
13
13
|
loadProducer
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-MG66UO4N.js";
|
|
15
15
|
import {
|
|
16
16
|
formatBytes
|
|
17
17
|
} from "./chunk-K2FLNJVB.js";
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-3Q4Y33FT.js";
|
|
19
|
+
import "./chunk-TNDNFZOK.js";
|
|
20
20
|
import "./chunk-6JR2XUEE.js";
|
|
21
21
|
import "./chunk-C6TPGUWD.js";
|
|
22
22
|
import {
|
|
23
23
|
CACHE_DIR_NAME,
|
|
24
24
|
cleanupProxyCache
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-QWCXGTOH.js";
|
|
26
26
|
import {
|
|
27
27
|
DEFAULT_HISTORY_ROOT,
|
|
28
28
|
listProjectHistories,
|
|
29
29
|
pruneGoneProjectHistories
|
|
30
30
|
} from "./chunk-GMJ3ILLW.js";
|
|
31
31
|
import "./chunk-FFDC5OWV.js";
|
|
32
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-5ZSLJXQX.js";
|
|
33
33
|
import "./chunk-5CS4T6C6.js";
|
|
34
34
|
import "./chunk-T6AGUTZJ.js";
|
|
35
35
|
import {
|
|
@@ -47,27 +47,27 @@ import "./chunk-7FMUTGOH.js";
|
|
|
47
47
|
import "./chunk-XRKMITSS.js";
|
|
48
48
|
import {
|
|
49
49
|
withMeta
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-5TGVURKQ.js";
|
|
51
51
|
import "./chunk-K4WIOZFP.js";
|
|
52
52
|
import "./chunk-XUXGIA7H.js";
|
|
53
53
|
import "./chunk-WERLJGIC.js";
|
|
54
54
|
import "./chunk-ISN5GRYI.js";
|
|
55
|
-
import "./chunk-
|
|
55
|
+
import "./chunk-EEVCXPUA.js";
|
|
56
56
|
import "./chunk-3DKN5WKL.js";
|
|
57
57
|
import "./chunk-EOVYQ3IG.js";
|
|
58
58
|
import "./chunk-6BEFEWFB.js";
|
|
59
|
-
import "./chunk-
|
|
59
|
+
import "./chunk-GVIH4ZQY.js";
|
|
60
60
|
import "./chunk-XT6MXC7A.js";
|
|
61
61
|
import {
|
|
62
62
|
EXTRACT_CACHE_MIN_AGE_MS,
|
|
63
63
|
directorySizeBytes,
|
|
64
64
|
gcExtractionCache,
|
|
65
65
|
resolveExtractCacheDir
|
|
66
|
-
} from "./chunk-
|
|
67
|
-
import "./chunk-
|
|
66
|
+
} from "./chunk-YWSXFFO3.js";
|
|
67
|
+
import "./chunk-JNL3RMDG.js";
|
|
68
68
|
import "./chunk-W2LGJSEN.js";
|
|
69
|
-
import "./chunk-
|
|
70
|
-
import "./chunk-
|
|
69
|
+
import "./chunk-VEQ7DKPG.js";
|
|
70
|
+
import "./chunk-EEXE43II.js";
|
|
71
71
|
import "./chunk-VC76R6W2.js";
|
|
72
72
|
import "./chunk-UJKQWGFF.js";
|
|
73
73
|
import "./chunk-YMS5FOMC.js";
|