hyperframes 0.8.204 → 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-HBFVYKGU.js → add-FFMNAJXJ.js} +12 -12
- package/dist/{animatedGifPrep-VBUKGEZ6.js → animatedGifPrep-BIIIIVWL.js} +16 -10
- package/dist/api.js +18 -18
- package/dist/{asset-OVLMJY4S.js → asset-IPUHGZSL.js} +2 -2
- package/dist/{assetCataloger-K4INCLFU.js → assetCataloger-M5FWXLAJ.js} +8 -8
- package/dist/{audio-JHW3HLHK.js → audio-VYWWM4DB.js} +19 -16
- package/dist/{auth-RH67KQMZ.js → auth-GZQZCUPL.js} +1 -1
- package/dist/{autoUpdate-JYR2RW5Z.js → autoUpdate-GJUDDLLO.js} +2 -2
- package/dist/{backgroundChecks-DPHRM4HJ.js → backgroundChecks-BTMSW34Z.js} +3 -3
- package/dist/backgroundChecksWorker.js +3 -3
- package/dist/{batchRender-JFUWZR3M.js → batchRender-LI2BJRGO.js} +4 -4
- package/dist/{beats-AWAFZGOT.js → beats-H73CSYT4.js} +11 -11
- package/dist/{benchmark-VQCCULJ2.js → benchmark-XT3A5REC.js} +14 -12
- package/dist/{browser-TT5L7D32.js → browser-VIOK66YK.js} +5 -5
- package/dist/{bundleWithLocalizedFonts-EHXEP5ZL.js → bundleWithLocalizedFonts-PFRVWYOO.js} +2 -2
- package/dist/{capture-Y7TGR3BI.js → capture-252WNPCD.js} +2 -2
- package/dist/{capture-5CM2P6CB.js → capture-KKD5GMAF.js} +20 -20
- package/dist/{captureCompositionFrame-LIT6U6C4.js → captureCompositionFrame-YLYVGNN2.js} +13 -13
- package/dist/{catalog-WZN2XB7D.js → catalog-6IJGNN3T.js} +12 -12
- package/dist/{catch-up-WZMQUW5H.js → catch-up-BFW7Z35W.js} +4 -4
- package/dist/{check-YVJCDCJS.js → check-XUWBZASR.js} +40 -38
- package/dist/checkAudio-2NRR3VHQ.js +201 -0
- package/dist/{checkBrowser-7V2DGDVD.js → checkBrowser-JW74KWTF.js} +33 -32
- package/dist/{chunk-IDASYE4U.js → chunk-2MLMO25E.js} +8 -5
- package/dist/{chunk-TBSYUEB7.js → chunk-2RT7MXFL.js} +1 -1
- package/dist/{chunk-7RB4I2E6.js → chunk-2S263R6D.js} +19 -7
- package/dist/{chunk-YLGRZSH4.js → chunk-36QE3P6B.js} +1 -1
- package/dist/{chunk-3GPDAE3D.js → chunk-3B2DBUQX.js} +1 -1
- package/dist/{chunk-UKXF4IPA.js → chunk-3CS6QYL7.js} +5 -5
- package/dist/{chunk-KOBPUFCN.js → chunk-3R6SXPHD.js} +2 -2
- package/dist/{chunk-US6JSQ2L.js → chunk-42KN6I6A.js} +2 -2
- package/dist/{chunk-LTGTN2TH.js → chunk-4CY5RXXC.js} +1 -1
- package/dist/{chunk-TQH7BF7K.js → chunk-4DGLKB2H.js} +1 -1
- package/dist/{chunk-DQBY7FRR.js → chunk-543U46OR.js} +4 -1
- package/dist/{chunk-D3EZHD2D.js → chunk-5QKJPCQ4.js} +2 -2
- package/dist/{chunk-IJ6RY4CH.js → chunk-63DGZRZP.js} +1 -1
- package/dist/{chunk-DRDG46KK.js → chunk-6ZFDNEMY.js} +14 -14
- package/dist/{chunk-LN5EJMSC.js → chunk-7SXL476O.js} +30 -20
- package/dist/{chunk-2756LXGY.js → chunk-AAX2A7LQ.js} +1 -1
- package/dist/{chunk-DTV3VHFE.js → chunk-AEC4T4IF.js} +4 -4
- package/dist/{chunk-4HJMZI4H.js → chunk-AJSU6KGS.js} +13 -13
- package/dist/{chunk-S35XO2ZA.js → chunk-AXEEZKIL.js} +2 -2
- package/dist/{chunk-KLIKCX6Q.js → chunk-AYH5ANVS.js} +7 -1
- package/dist/{chunk-ZBDVKLIU.js → chunk-BBUK6A7Q.js} +5 -5
- package/dist/{chunk-NJT6SZGL.js → chunk-CIHW6VM2.js} +1 -1
- package/dist/{chunk-EF7R5EBJ.js → chunk-CMDVJP4T.js} +10 -10
- package/dist/{chunk-VCBZOU7U.js → chunk-CNVHMLPI.js} +1 -1
- package/dist/{chunk-RFCLI6TW.js → chunk-CPSGXAYD.js} +3 -3
- package/dist/{chunk-54FO6TN7.js → chunk-CZYS6UKP.js} +83 -78
- package/dist/{chunk-5UW7WCHQ.js → chunk-DEVZJ4AL.js} +10 -9
- package/dist/{chunk-TCI4MUT6.js → chunk-DZG565OO.js} +1 -1
- package/dist/{chunk-D5CAZ7R4.js → chunk-E2ZZSDDQ.js} +2 -2
- package/dist/{chunk-TAYZSNYS.js → chunk-FJW757TF.js} +1 -1
- package/dist/{chunk-LVMJXO45.js → chunk-FMWACL3L.js} +1 -1
- package/dist/{chunk-54K7HW46.js → chunk-FNNGQ3DB.js} +2 -2
- package/dist/{chunk-AQS3MMEQ.js → chunk-FULMZCDW.js} +13 -43
- package/dist/chunk-G6QDFWDN.js +355 -0
- package/dist/{chunk-QB4K2EWI.js → chunk-G6W55MTX.js} +1 -1
- package/dist/{chunk-WM7GOKEP.js → chunk-GAV56VJL.js} +2 -2
- package/dist/{chunk-4CR23IYU.js → chunk-H4JO7VSI.js} +7 -6
- package/dist/{chunk-6RLP6RDE.js → chunk-HEP5XMXV.js} +1 -1
- package/dist/{chunk-23RPCDGE.js → chunk-HJAJ6W4V.js} +2 -2
- package/dist/chunk-KLIPVNCO.js +4824 -0
- package/dist/{chunk-YIN2JAZE.js → chunk-L5MFWGGU.js} +62 -65
- package/dist/{chunk-WMCGD4XL.js → chunk-MFHYBSJC.js} +58 -828
- package/dist/{chunk-LFGJWOVA.js → chunk-MNNK7RV5.js} +11 -8
- package/dist/{chunk-EUFBE5BW.js → chunk-N7ZMDVAK.js} +1 -1
- package/dist/{chunk-X7XICOVM.js → chunk-NNLQTG3M.js} +1 -1
- package/dist/{chunk-TNOERLC6.js → chunk-NVLPW3DG.js} +17 -9
- package/dist/{chunk-SVVAUJPL.js → chunk-OFRRUYBA.js} +1 -1
- package/dist/{chunk-WLD4PX3P.js → chunk-OZUAVHFE.js} +18 -3
- package/dist/{chunk-QCQDUQVJ.js → chunk-PNKLOMHQ.js} +2 -2
- package/dist/{chunk-QZ4HQQYS.js → chunk-PQYWYBEQ.js} +1 -1
- package/dist/{chunk-VC3BMKYO.js → chunk-QL4ZYSIB.js} +3 -3
- package/dist/{chunk-N3EJG2X4.js → chunk-QVTCXN42.js} +3 -3
- package/dist/{chunk-Y63CT2ZC.js → chunk-RDDVQSNQ.js} +124 -37
- package/dist/{chunk-WXAQT63P.js → chunk-RW4DMP2Y.js} +4 -4
- package/dist/{chunk-5RJSWYWL.js → chunk-SFYLZX5C.js} +1 -1
- package/dist/{chunk-YU53JSUZ.js → chunk-T6SD37JZ.js} +1 -1
- package/dist/chunk-TQBQYO4L.js +55 -0
- package/dist/{chunk-MSH2F7VW.js → chunk-TSJVPPXT.js} +1 -1
- package/dist/{chunk-7PRESGFT.js → chunk-UMUVGNOH.js} +3 -3
- package/dist/{chunk-6KZY5RSV.js → chunk-VDVVQNTK.js} +2 -2
- package/dist/{chunk-XX5U64F2.js → chunk-VEA7Z4PZ.js} +4 -3
- package/dist/{chunk-QWATUGUX.js → chunk-VHVSBOZH.js} +3 -3
- package/dist/{chunk-65VFH2UV.js → chunk-VW2LVMKB.js} +19 -9
- package/dist/{chunk-DBF6LLXB.js → chunk-WHD5IAHI.js} +1 -1
- package/dist/{chunk-OPFG563D.js → chunk-WYB3VKLK.js} +2 -2
- package/dist/{chunk-34VLVDOU.js → chunk-X5HHHFTX.js} +3 -3
- package/dist/{chunk-BL4U6U52.js → chunk-X7A7C4JS.js} +70 -7
- package/dist/chunk-X7RXXBYM.js +29 -0
- package/dist/{chunk-GGEA5EHR.js → chunk-XOM3XTJ4.js} +1 -1
- package/dist/{chunk-HBDQGIQA.js → chunk-Z3XXLTVB.js} +2 -2
- package/dist/{chunk-ERUINDRT.js → chunk-ZF3R2IPC.js} +184 -183
- package/dist/{chunk-CXZDIWMK.js → chunk-ZNAOBFU5.js} +1 -1
- package/dist/{chunk-AII6P2TC.js → chunk-ZTEKVSZ6.js} +1 -1
- package/dist/{clean-3JE2KYTC.js → clean-N5VSKUVS.js} +20 -20
- package/dist/cli.js +82 -60
- package/dist/{cloud-Z54BHP6G.js → cloud-74NF5FXC.js} +4 -4
- package/dist/{cloudrun-4CPQLU5M.js → cloudrun-7UOH335V.js} +6 -6
- package/dist/{compare-AQMLMTFD.js → compare-AY2LS2TZ.js} +33 -33
- package/dist/{compiler-LIJYMSEL.js → compiler-4MHMC777.js} +14 -10
- package/dist/{component-ZH37EIYB.js → component-CFWQOAZI.js} +3 -3
- package/dist/{compositions-DF2FM6YD.js → compositions-DXLJTDSP.js} +14 -14
- package/dist/{delete-A3NSK2HH.js → delete-GB4MS7LM.js} +2 -2
- package/dist/{deploy-6RC2DXPQ.js → deploy-NXD3Q3KD.js} +4 -4
- package/dist/{deterministicFonts-HQYCUUAL.js → deterministicFonts-775YXAQ2.js} +2 -2
- package/dist/{dist-VSIT3UAX.js → dist-3ZJMZU75.js} +11 -3
- package/dist/{dist-6JMYDD7F.js → dist-ZY6IFESG.js} +2 -2
- package/dist/docs/examples.md +31 -7
- package/dist/{doctor-RILK4ATO.js → doctor-CVY2XXKS.js} +14 -14
- package/dist/{events-SL434XAY.js → events-RYQYEWBV.js} +2 -2
- package/dist/{events-B5EKVEPW.js → events-T3CLIYRG.js} +3 -3
- package/dist/{feedback-S4PC6VAR.js → feedback-K5ZMMLTA.js} +8 -8
- package/dist/{ffmpeg-XSDPPZCU.js → ffmpeg-UNDAJ2IC.js} +9 -9
- package/dist/{figma-MV2L6E2Z.js → figma-MYYCX635.js} +3 -3
- package/dist/fontLocalizeCli.js +13 -12
- package/dist/{get-ID3Y3PCN.js → get-JVIDYMVP.js} +2 -2
- package/dist/{gpuPolicy-2LRMQOAD.js → gpuPolicy-KEX7GDRJ.js} +8 -8
- package/dist/{grade-compare-NV3TKIOO.js → grade-compare-QEF6VASJ.js} +31 -31
- package/dist/{gsapParser-IEUSLYDJ.js → gsapParser-3H7ON3DO.js} +1 -1
- package/dist/heifImagePrep-A3ZPVQGU.js +53 -0
- package/dist/{help-ZPT23LZ3.js → help-XPPSLIRY.js} +1 -1
- package/dist/{history-MZGDX3TR.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-FIZ4A54H.js → info-7RF6FQX5.js} +8 -8
- package/dist/{init-WX4MNPL2.js → init-NTIXWA3D.js} +32 -35
- package/dist/{inspect-R5KWWKNJ.js → inspect-MYMCV5E7.js} +31 -30
- package/dist/inspection.js +4 -4
- package/dist/{installer-CTV5FKYQ.js → installer-PYJIJ3PJ.js} +5 -5
- package/dist/{keyframes-FAJY5RK5.js → keyframes-UJ52PYE4.js} +6 -6
- package/dist/{lambda-3MCC2ZH7.js → lambda-SBNUYEQE.js} +8 -8
- package/dist/{layout-3RTVYRRN.js → layout-IOMCOABO.js} +31 -30
- package/dist/{lint-ZDCVL7K4.js → lint-AQWHHMPS.js} +8 -8
- package/dist/{lintProject-4IVYXS5J.js → lintProject-5A4SCW3S.js} +2 -2
- package/dist/{list-SBCXW2UT.js → list-WKAJ5SP3.js} +2 -2
- package/dist/{login-VQ2LQ2YG.js → login-3ZDK5JOA.js} +4 -4
- package/dist/{manager-F34TSFV6.js → manager-F2YREC5X.js} +2 -2
- package/dist/{manager-ZRF6UXUM.js → manager-QYFYWZOK.js} +10 -10
- package/dist/{media-treatment-MFIP7Q4G.js → media-treatment-4OLWVHUY.js} +15 -15
- package/dist/{models-OU36YZCT.js → models-MR55FAUX.js} +14 -14
- package/dist/{motionShot-SHDUG7YR.js → motionShot-DC47S7BT.js} +17 -17
- package/dist/{normalize-audio-7RTPEV7Y.js → normalize-audio-M2TK4NG5.js} +8 -8
- package/dist/{open-HT4RG32S.js → open-YXWBWTKL.js} +15 -14
- package/dist/{parakeetRunner-DOVPZDCH.js → parakeetRunner-J6QR3GTG.js} +15 -15
- package/dist/{pipeline-NIVQ6E2G.js → pipeline-7MJ5H4SW.js} +10 -10
- package/dist/{play-HPX5SIRQ.js → play-S562STR4.js} +34 -24
- package/dist/{preflight-TNYC7EIS.js → preflight-QWGXMISC.js} +11 -11
- package/dist/{present-QSOIMURR.js → present-PGOHZT3L.js} +30 -20
- package/dist/{preview-WDO53XKK.js → preview-JU75H4QN.js} +32 -29
- package/dist/{producer-G27KP3IY.js → producer-H66OMZLW.js} +1 -1
- package/dist/{projectConfig-CP722RCM.js → projectConfig-COSP24YT.js} +7 -7
- package/dist/{publication-LCWVBLDN.js → publication-J3XYHPGB.js} +3 -3
- package/dist/{publish-BIY6LEZ2.js → publish-7GCCEPJZ.js} +11 -11
- package/dist/{remove-background-NPLZGLZ3.js → remove-background-WRCGIU32.js} +11 -11
- package/dist/{render-J57LAXB5.js → render-5J5PP3UK.js} +21 -21
- package/dist/{render-IHNAZXA2.js → render-QS3YJCBR.js} +6 -6
- package/dist/{render-HHUGUKG6.js → render-VUVTK2JM.js} +36 -36
- package/dist/{render-batch-FK26OQ5E.js → render-batch-Q2LQ3D4P.js} +6 -6
- package/dist/renderSetupWorker.js +5 -5
- package/dist/{resolver-FWJXO6DY.js → resolver-QCBWPRSC.js} +5 -5
- package/dist/{sherpa-BXFJU5EP.js → sherpa-IZ22SC5W.js} +14 -14
- package/dist/skills/hyperframes/references/types/launch.md +12 -2
- package/dist/skills/media-use/references/memory.md +4 -0
- package/dist/skills/media-use/scripts/lib/prefs-store.concurrent.test.mjs +173 -0
- package/dist/skills/media-use/scripts/lib/prefs-store.mjs +46 -28
- package/dist/skills/media-use/scripts/lib/prefs-store.test.mjs +56 -0
- package/dist/{skills-7XS4HZBC.js → skills-3RFMPMJA.js} +5 -5
- package/dist/{skillsUpdateCheck-MGU5KLR4.js → skillsUpdateCheck-DWBFVUBT.js} +3 -3
- package/dist/{snapshot-O2PMEMKH.js → snapshot-5PHA43DK.js} +54 -41
- package/dist/{src-Q4R2YPKA.js → src-36BQVJL3.js} +17 -11
- package/dist/{src-OQRG6BT7.js → src-4YJKYMNF.js} +11 -7
- package/dist/{staticProjectServer-6OY4VMO6.js → staticProjectServer-3XFB76XS.js} +18 -18
- package/dist/studio/assets/hyperframes-player-lCVwx9d3.js +478 -0
- package/dist/studio/assets/{index-DpxSurnJ.js → index-BNuxGFZK.js} +1 -1
- package/dist/studio/assets/{index-DmST2bTJ.js → index-CwreIGoq.js} +132 -132
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-YSUTKHV7.js → studio-api-WL6EZ4KE.js} +11 -11
- package/dist/{studioSelectionClient-IUUPKUHZ.js → studioSelectionClient-D6VMGTKQ.js} +1 -1
- package/dist/{studioServer-APGEQIW5.js → studioServer-ZS5RA6U3.js} +66 -56
- package/dist/{telemetry-3B6EA5IU.js → telemetry-W3LRO3TB.js} +3 -3
- package/dist/{timeline-QWM6JS4B.js → timeline-BDO5DYWP.js} +19 -19
- package/dist/{tokens-TKLSP3OQ.js → tokens-47CEMYFV.js} +2 -2
- package/dist/{transcribe-XOPMHJLJ.js → transcribe-GEPVJO3A.js} +19 -19
- package/dist/{transcribe-PODOCWCC.js → transcribe-XF3NL6JI.js} +13 -13
- package/dist/{tts-5I2AJNLM.js → tts-QM4RFE7U.js} +1 -1
- package/dist/{updateCheck-RO6FPYMZ.js → updateCheck-BON6ZFYP.js} +2 -2
- package/dist/{upgrade-EVNIL5TZ.js → upgrade-KIF5Z4J3.js} +2 -2
- package/dist/{urlDownloader-F5HYFRA6.js → urlDownloader-UDRHVUWR.js} +7 -7
- package/dist/{validate-NXLFCHGG.js → validate-2OPSQT3W.js} +24 -24
- package/dist/{video-ECV2OIQN.js → video-ECWXMY4F.js} +8 -8
- package/dist/warmCheck.js +40 -38
- package/package.json +1 -1
- package/dist/chunk-YRQPU7SV.js +0 -3983
- package/dist/studio/assets/hyperframes-player-CttA4PW7.js +0 -478
- package/dist/{synthesize-PKTB5ATG.js → synthesize-QCRP3NI7.js} +4 -4
|
@@ -6,8 +6,8 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
|
|
8
8
|
// src/version.ts
|
|
9
|
-
var VERSION = true ? "0.8.
|
|
10
|
-
var PRODUCER_VERSION = true ? "0.8.
|
|
9
|
+
var VERSION = true ? "0.8.206" : "0.0.0-dev";
|
|
10
|
+
var PRODUCER_VERSION = true ? "0.8.206" : "0.0.0-dev";
|
|
11
11
|
|
|
12
12
|
export {
|
|
13
13
|
VERSION,
|
|
@@ -6,12 +6,12 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
setHostHandlesSigint
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-RDDVQSNQ.js";
|
|
10
10
|
import {
|
|
11
11
|
processAncestorSnapshot,
|
|
12
12
|
processIdentity,
|
|
13
13
|
processParentPid
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-4CY5RXXC.js";
|
|
15
15
|
import {
|
|
16
16
|
processIsAlive
|
|
17
17
|
} from "./chunk-KGPLIH7B.js";
|
|
@@ -4,29 +4,32 @@ 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
|
+
formatFindingTimes
|
|
9
|
+
} from "./chunk-TQBQYO4L.js";
|
|
7
10
|
import {
|
|
8
11
|
resolveProject
|
|
9
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-HEP5XMXV.js";
|
|
10
13
|
import {
|
|
11
14
|
serveStaticProjectHtml
|
|
12
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-2S263R6D.js";
|
|
13
16
|
import {
|
|
14
17
|
AUDIT_SEEK_OPTIONS,
|
|
15
18
|
installPageFunctionGuard,
|
|
16
19
|
seekCompositionTimeline,
|
|
17
20
|
waitForCompositionFonts,
|
|
18
21
|
waitForRuntimeReady
|
|
19
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-CMDVJP4T.js";
|
|
20
23
|
import {
|
|
21
24
|
launchManagedBrowser,
|
|
22
25
|
resolveManagedGpuMode
|
|
23
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-T6SD37JZ.js";
|
|
24
27
|
import {
|
|
25
28
|
gotoWhenSent
|
|
26
29
|
} from "./chunk-MOEGCMKI.js";
|
|
27
30
|
import {
|
|
28
31
|
pageNavigationTimeoutMs
|
|
29
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-QL4ZYSIB.js";
|
|
30
33
|
import {
|
|
31
34
|
defineCommand
|
|
32
35
|
} from "./chunk-S3S4TGEH.js";
|
|
@@ -40,7 +43,7 @@ import {
|
|
|
40
43
|
import {
|
|
41
44
|
printDeprecationNotice,
|
|
42
45
|
withMeta
|
|
43
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-XOM3XTJ4.js";
|
|
44
47
|
import {
|
|
45
48
|
normalizeErrorMessage
|
|
46
49
|
} from "./chunk-T2EUWCJE.js";
|
|
@@ -50,36 +53,6 @@ import { existsSync as existsSync2, readFileSync as readFileSync2 } from "fs";
|
|
|
50
53
|
import { dirname, join as join2 } from "path";
|
|
51
54
|
import { fileURLToPath } from "url";
|
|
52
55
|
|
|
53
|
-
// src/utils/checkFindings.ts
|
|
54
|
-
var SEVERITY = { info: 0, warning: 1, error: 2 };
|
|
55
|
-
function findingElementKey(finding) {
|
|
56
|
-
return JSON.stringify([finding.sourceFile, finding.selector]);
|
|
57
|
-
}
|
|
58
|
-
function groupSampledFindings(findings, compareEvidence = () => 0) {
|
|
59
|
-
const groups = /* @__PURE__ */ new Map();
|
|
60
|
-
for (const finding of findings) {
|
|
61
|
-
const key = JSON.stringify([findingElementKey(finding), finding.code]);
|
|
62
|
-
const times = finding.times ?? [finding.time];
|
|
63
|
-
const group = groups.get(key);
|
|
64
|
-
if (!group) {
|
|
65
|
-
groups.set(key, { finding, times: new Set(times) });
|
|
66
|
-
continue;
|
|
67
|
-
}
|
|
68
|
-
for (const time of times) group.times.add(time);
|
|
69
|
-
const severity = SEVERITY[finding.severity] - SEVERITY[group.finding.severity];
|
|
70
|
-
if (severity > 0 || severity === 0 && compareEvidence(finding, group.finding) > 0) {
|
|
71
|
-
group.finding = finding;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
return [...groups.values()].map(({ finding, times }) => ({
|
|
75
|
-
...finding,
|
|
76
|
-
times: [...times].sort((a, b) => a - b)
|
|
77
|
-
}));
|
|
78
|
-
}
|
|
79
|
-
function formatFindingTimes(finding) {
|
|
80
|
-
return `t=${(finding.times ?? [finding.time]).join(", ")}s`;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
56
|
// src/utils/layoutAudit.ts
|
|
84
57
|
function buildLayoutSampleTimes({ duration, samples, at }) {
|
|
85
58
|
if (at?.length) {
|
|
@@ -717,7 +690,7 @@ async function collectTweenBoundaries(page) {
|
|
|
717
690
|
});
|
|
718
691
|
}
|
|
719
692
|
async function bundleProjectHtml(projectDir) {
|
|
720
|
-
const { bundleToSingleHtml } = await import("./compiler-
|
|
693
|
+
const { bundleToSingleHtml } = await import("./compiler-4MHMC777.js");
|
|
721
694
|
return bundleToSingleHtml(projectDir);
|
|
722
695
|
}
|
|
723
696
|
async function alignViewportToComposition(page, url) {
|
|
@@ -734,15 +707,15 @@ async function alignViewportToComposition(page, url) {
|
|
|
734
707
|
await gotoWhenSent(page, url, pageNavigationTimeoutMs());
|
|
735
708
|
}
|
|
736
709
|
async function runLayoutAudit(projectDir, opts) {
|
|
737
|
-
const { ensureBrowser } = await import("./manager-
|
|
710
|
+
const { ensureBrowser } = await import("./manager-F2YREC5X.js");
|
|
738
711
|
const puppeteer = await import("puppeteer-core");
|
|
739
|
-
const { buildChromeArgs } = await import("./src-
|
|
712
|
+
const { buildChromeArgs } = await import("./src-4YJKYMNF.js");
|
|
740
713
|
const {
|
|
741
714
|
assertWebGpuAdapterAvailable,
|
|
742
715
|
compositionRequiresWebGpu,
|
|
743
716
|
resolveLocalBrowserGpuMode,
|
|
744
717
|
resolveLocalWebGpu
|
|
745
|
-
} = await import("./gpuPolicy-
|
|
718
|
+
} = await import("./gpuPolicy-KEX7GDRJ.js");
|
|
746
719
|
const html = await bundleProjectHtml(projectDir);
|
|
747
720
|
const server = await serveStaticProjectHtml(
|
|
748
721
|
projectDir,
|
|
@@ -1106,9 +1079,6 @@ function createInspectCommand(commandName) {
|
|
|
1106
1079
|
var layout_default = createInspectCommand("layout");
|
|
1107
1080
|
|
|
1108
1081
|
export {
|
|
1109
|
-
findingElementKey,
|
|
1110
|
-
groupSampledFindings,
|
|
1111
|
-
formatFindingTimes,
|
|
1112
1082
|
buildLayoutSampleTimes,
|
|
1113
1083
|
formatLayoutIssue,
|
|
1114
1084
|
dedupeLayoutIssues,
|
|
@@ -0,0 +1,355 @@
|
|
|
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
|
+
normalizeRelPath,
|
|
9
|
+
resolveLocalImageSourcePath,
|
|
10
|
+
splitUrlSuffix
|
|
11
|
+
} from "./chunk-NVLPW3DG.js";
|
|
12
|
+
import {
|
|
13
|
+
renameWithRetry,
|
|
14
|
+
runFfmpeg,
|
|
15
|
+
runFfprobe
|
|
16
|
+
} from "./chunk-RDDVQSNQ.js";
|
|
17
|
+
import {
|
|
18
|
+
parseHTML
|
|
19
|
+
} from "./chunk-GWTIFRF5.js";
|
|
20
|
+
|
|
21
|
+
// ../producer/src/services/heifImagePrep.ts
|
|
22
|
+
import { createHash } from "crypto";
|
|
23
|
+
import {
|
|
24
|
+
closeSync,
|
|
25
|
+
copyFileSync,
|
|
26
|
+
mkdirSync,
|
|
27
|
+
openSync,
|
|
28
|
+
readFileSync,
|
|
29
|
+
readSync,
|
|
30
|
+
rmSync,
|
|
31
|
+
statSync,
|
|
32
|
+
writeFileSync
|
|
33
|
+
} from "fs";
|
|
34
|
+
import { dirname, join, resolve } from "path";
|
|
35
|
+
|
|
36
|
+
// ../producer/src/services/heifRotation.ts
|
|
37
|
+
function* boxes(buf, start, end) {
|
|
38
|
+
let at = start;
|
|
39
|
+
while (at + 8 <= end) {
|
|
40
|
+
let size = buf.readUInt32BE(at);
|
|
41
|
+
let header = 8;
|
|
42
|
+
if (size === 1 && at + 16 <= end) {
|
|
43
|
+
size = Number(buf.readBigUInt64BE(at + 8));
|
|
44
|
+
header = 16;
|
|
45
|
+
} else if (size === 0) {
|
|
46
|
+
size = end - at;
|
|
47
|
+
}
|
|
48
|
+
if (size < header || at + size > end) return;
|
|
49
|
+
yield { type: buf.toString("latin1", at + 4, at + 8), start: at + header, end: at + size };
|
|
50
|
+
at += size;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
function child(buf, parent, type, skip = 0) {
|
|
54
|
+
return [...boxes(buf, parent.start + skip, parent.end)].filter((box) => box.type === type);
|
|
55
|
+
}
|
|
56
|
+
function readHeifPrimaryRotation(buf) {
|
|
57
|
+
try {
|
|
58
|
+
const root = { type: "", start: 0, end: buf.length };
|
|
59
|
+
const meta = child(buf, root, "meta")[0];
|
|
60
|
+
const pitm = meta && child(buf, meta, "pitm", 4)[0];
|
|
61
|
+
const iprp = meta && child(buf, meta, "iprp", 4)[0];
|
|
62
|
+
const ipco = iprp && child(buf, iprp, "ipco")[0];
|
|
63
|
+
if (!pitm || !ipco || !iprp) return 0;
|
|
64
|
+
const primaryId = buf[pitm.start] === 0 ? buf.readUInt16BE(pitm.start + 4) : buf.readUInt32BE(pitm.start + 4);
|
|
65
|
+
const props = [...boxes(buf, ipco.start, ipco.end)];
|
|
66
|
+
for (const ipma of child(buf, iprp, "ipma")) {
|
|
67
|
+
const version = buf[ipma.start];
|
|
68
|
+
const wide = (buf[ipma.start + 3] & 1) === 1;
|
|
69
|
+
let at = ipma.start + 8;
|
|
70
|
+
for (let n = buf.readUInt32BE(ipma.start + 4); n > 0 && at < ipma.end; n--) {
|
|
71
|
+
const id = version < 1 ? buf.readUInt16BE(at) : buf.readUInt32BE(at);
|
|
72
|
+
at += version < 1 ? 2 : 4;
|
|
73
|
+
const count = buf[at++];
|
|
74
|
+
for (let i = 0; i < count; i++) {
|
|
75
|
+
const index = wide ? buf.readUInt16BE(at) & 32767 : buf[at] & 127;
|
|
76
|
+
at += wide ? 2 : 1;
|
|
77
|
+
const prop = props[index - 1];
|
|
78
|
+
if (id === primaryId && prop?.type === "irot")
|
|
79
|
+
return (buf[prop.start] & 3) * 90;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
} catch {
|
|
84
|
+
}
|
|
85
|
+
return 0;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
// ../producer/src/utils/semaphore.ts
|
|
89
|
+
var Semaphore = class {
|
|
90
|
+
constructor(maxConcurrent) {
|
|
91
|
+
this.maxConcurrent = maxConcurrent;
|
|
92
|
+
}
|
|
93
|
+
maxConcurrent;
|
|
94
|
+
queue = [];
|
|
95
|
+
active = 0;
|
|
96
|
+
async acquire() {
|
|
97
|
+
if (this.active < this.maxConcurrent) {
|
|
98
|
+
this.active++;
|
|
99
|
+
return () => this.release();
|
|
100
|
+
}
|
|
101
|
+
return new Promise((resolve2) => {
|
|
102
|
+
this.queue.push(() => {
|
|
103
|
+
this.active++;
|
|
104
|
+
resolve2(() => this.release());
|
|
105
|
+
});
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
release() {
|
|
109
|
+
this.active--;
|
|
110
|
+
const next = this.queue.shift();
|
|
111
|
+
if (next) next();
|
|
112
|
+
}
|
|
113
|
+
/** Current number of active slots. */
|
|
114
|
+
get activeCount() {
|
|
115
|
+
return this.active;
|
|
116
|
+
}
|
|
117
|
+
/** Number of waiters in the queue. */
|
|
118
|
+
get waitingCount() {
|
|
119
|
+
return this.queue.length;
|
|
120
|
+
}
|
|
121
|
+
};
|
|
122
|
+
|
|
123
|
+
// ../producer/src/utils/mediaProbeConcurrency.ts
|
|
124
|
+
var MEDIA_PROBE_CONCURRENCY = 4;
|
|
125
|
+
var sharedMediaProbeSemaphore = new Semaphore(MEDIA_PROBE_CONCURRENCY);
|
|
126
|
+
async function withMediaProbeSlot(operation) {
|
|
127
|
+
const release = await sharedMediaProbeSemaphore.acquire();
|
|
128
|
+
try {
|
|
129
|
+
return await operation();
|
|
130
|
+
} finally {
|
|
131
|
+
release();
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
// ../producer/src/services/heifImagePrep.ts
|
|
136
|
+
var PREPARED_HEIF_SUBDIR = "_heif_images";
|
|
137
|
+
var CACHE_SCHEMA = "hfheif-v1";
|
|
138
|
+
var DEFAULT_TIMEOUT_MS = 12e4;
|
|
139
|
+
var HEIF_IMAGE_CONVERSION_FAILED = "HEIF_IMAGE_CONVERSION_FAILED";
|
|
140
|
+
var HEIF_TOOL_UNAVAILABLE = "HEIF_TOOL_UNAVAILABLE";
|
|
141
|
+
var HEIF_BRANDS = /* @__PURE__ */ new Set(["heic", "heix", "hevc", "hevx", "heim", "heis", "mif1", "msf1"]);
|
|
142
|
+
var AVIF_BRANDS = /* @__PURE__ */ new Set(["avif", "avis"]);
|
|
143
|
+
var DATA_URL_RE = /^data:image\/(?:heic|heif)(?:-sequence)?;base64,(.*)$/is;
|
|
144
|
+
var HeifImageConversionError = class extends Error {
|
|
145
|
+
code = HEIF_IMAGE_CONVERSION_FAILED;
|
|
146
|
+
owner = "user";
|
|
147
|
+
retryable = false;
|
|
148
|
+
constructor(label, reason) {
|
|
149
|
+
super(
|
|
150
|
+
`Could not convert HEIC/HEIF image ${label} to JPEG: ${reason}. Re-export the photo as JPEG or PNG and update its src.`
|
|
151
|
+
);
|
|
152
|
+
this.name = "HeifImageConversionError";
|
|
153
|
+
}
|
|
154
|
+
};
|
|
155
|
+
var HeifToolUnavailableError = class extends Error {
|
|
156
|
+
code = HEIF_TOOL_UNAVAILABLE;
|
|
157
|
+
owner = "system";
|
|
158
|
+
retryable = false;
|
|
159
|
+
constructor(label, reason) {
|
|
160
|
+
super(
|
|
161
|
+
`Could not convert HEIC/HEIF image ${label}: ${reason}. Converting HEIC needs ffmpeg and ffprobe 7.0 or newer with the hevc decoder.`
|
|
162
|
+
);
|
|
163
|
+
this.name = "HeifToolUnavailableError";
|
|
164
|
+
}
|
|
165
|
+
};
|
|
166
|
+
var TOOL_FAILURE_RE = /(?:ffmpeg|ffprobe) not found|ENOENT|Option not found|Unrecognized option|Unknown decoder|Decoder \S+ not found/i;
|
|
167
|
+
function isHeifBytes(head) {
|
|
168
|
+
const bytes = Buffer.from(head.buffer, head.byteOffset, head.byteLength);
|
|
169
|
+
if (bytes.length < 16 || bytes.toString("ascii", 4, 8) !== "ftyp") return false;
|
|
170
|
+
const boxEnd = Math.min(bytes.readUInt32BE(0), bytes.length);
|
|
171
|
+
if (boxEnd < 16) return false;
|
|
172
|
+
const brands = [bytes.toString("ascii", 8, 12)];
|
|
173
|
+
for (let offset = 16; offset + 4 <= boxEnd; offset += 4) {
|
|
174
|
+
brands.push(bytes.toString("ascii", offset, offset + 4));
|
|
175
|
+
}
|
|
176
|
+
return !brands.some((b) => AVIF_BRANDS.has(b)) && brands.some((b) => HEIF_BRANDS.has(b));
|
|
177
|
+
}
|
|
178
|
+
function readHead(path) {
|
|
179
|
+
let fd;
|
|
180
|
+
try {
|
|
181
|
+
fd = openSync(path, "r");
|
|
182
|
+
const buf = Buffer.alloc(4096);
|
|
183
|
+
return buf.subarray(0, readSync(fd, buf, 0, buf.length, 0));
|
|
184
|
+
} catch {
|
|
185
|
+
return null;
|
|
186
|
+
} finally {
|
|
187
|
+
if (fd !== void 0) closeSync(fd);
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
async function probeJson(path, withGroups) {
|
|
191
|
+
const stdout = await runFfprobe(
|
|
192
|
+
path,
|
|
193
|
+
withGroups ? ["-show_stream_groups", "-show_streams", "-of", "json"] : ["-show_streams", "-of", "json"]
|
|
194
|
+
);
|
|
195
|
+
return JSON.parse(stdout);
|
|
196
|
+
}
|
|
197
|
+
var ROTATION_FILTER = {
|
|
198
|
+
0: "",
|
|
199
|
+
90: "transpose=2",
|
|
200
|
+
180: "hflip,vflip",
|
|
201
|
+
270: "transpose=1"
|
|
202
|
+
};
|
|
203
|
+
function primaryGrid(probed) {
|
|
204
|
+
const groups = probed.stream_groups ?? [];
|
|
205
|
+
return (groups.find((g) => g.disposition?.default === 1) ?? groups[0])?.components?.[0];
|
|
206
|
+
}
|
|
207
|
+
async function convertHeifToJpeg(request) {
|
|
208
|
+
const probed = await probeJson(request.inputPath, true);
|
|
209
|
+
const grid = primaryGrid(probed);
|
|
210
|
+
const rotation = readHeifPrimaryRotation(readFileSync(request.inputPath));
|
|
211
|
+
const filters = [];
|
|
212
|
+
let inputs = [];
|
|
213
|
+
let size = probed.streams?.[0];
|
|
214
|
+
if (grid?.subcomponents?.length) {
|
|
215
|
+
size = grid;
|
|
216
|
+
const layout = grid.subcomponents.map(
|
|
217
|
+
(t) => `${t.tile_horizontal_offset}_${t.tile_vertical_offset}`
|
|
218
|
+
);
|
|
219
|
+
inputs = grid.subcomponents.map((t) => `[0:${t.stream_index}]`);
|
|
220
|
+
filters.push(
|
|
221
|
+
`${inputs.join("")}xstack=inputs=${inputs.length}:layout=${layout.join("|")}`,
|
|
222
|
+
`crop=${grid.width}:${grid.height}:${grid.horizontal_offset ?? 0}:${grid.vertical_offset ?? 0}`
|
|
223
|
+
);
|
|
224
|
+
}
|
|
225
|
+
if (!size?.width || !size.height) throw new Error("no declared image size");
|
|
226
|
+
if (rotation && grid) filters.push(ROTATION_FILTER[rotation]);
|
|
227
|
+
const mapArgs = filters.length > 0 ? ["-filter_complex", `${filters.join(",")}[v]`, "-map", "[v]"] : [];
|
|
228
|
+
const result = await runFfmpeg(
|
|
229
|
+
[
|
|
230
|
+
"-hide_banner",
|
|
231
|
+
"-loglevel",
|
|
232
|
+
"error",
|
|
233
|
+
"-i",
|
|
234
|
+
request.inputPath,
|
|
235
|
+
...mapArgs,
|
|
236
|
+
"-frames:v",
|
|
237
|
+
"1",
|
|
238
|
+
"-q:v",
|
|
239
|
+
"2",
|
|
240
|
+
"-f",
|
|
241
|
+
"mjpeg",
|
|
242
|
+
"-y",
|
|
243
|
+
request.outputPath
|
|
244
|
+
],
|
|
245
|
+
{ timeout: request.timeoutMs ?? DEFAULT_TIMEOUT_MS }
|
|
246
|
+
);
|
|
247
|
+
if (!result.success) {
|
|
248
|
+
throw result.error ?? new Error(`ffmpeg exited ${result.exitCode}: ${result.stderr.slice(-300)}`);
|
|
249
|
+
}
|
|
250
|
+
const out = (await probeJson(request.outputPath, false)).streams?.[0];
|
|
251
|
+
const same = out?.width === size.width && out.height === size.height;
|
|
252
|
+
const swapped = out?.width === size.height && out.height === size.width;
|
|
253
|
+
if (!same && !swapped) {
|
|
254
|
+
throw new Error(
|
|
255
|
+
`wrong size: decoded ${out?.width}x${out?.height}, file declares ${size.width}x${size.height}`
|
|
256
|
+
);
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
function resolveImageSource(src, options) {
|
|
260
|
+
const data = DATA_URL_RE.exec(src);
|
|
261
|
+
if (data) {
|
|
262
|
+
const bytes = Buffer.from(data[1], "base64");
|
|
263
|
+
return isHeifBytes(bytes.subarray(0, 4096)) ? { path: null, bytes, label: '"inline image"' } : null;
|
|
264
|
+
}
|
|
265
|
+
const path = resolveLocalImageSourcePath(src, options);
|
|
266
|
+
const head = path ? readHead(path) : null;
|
|
267
|
+
if (!path || !head || !isHeifBytes(head)) return null;
|
|
268
|
+
return { path, bytes: readFileSync(path), label: `"${splitUrlSuffix(src).basePath}"` };
|
|
269
|
+
}
|
|
270
|
+
function isUsableFile(path) {
|
|
271
|
+
try {
|
|
272
|
+
return statSync(path).size > 0;
|
|
273
|
+
} catch {
|
|
274
|
+
return false;
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
async function ensurePreparedJpeg(source, cachePath, outputPath, options) {
|
|
278
|
+
mkdirSync(dirname(cachePath), { recursive: true });
|
|
279
|
+
mkdirSync(dirname(outputPath), { recursive: true });
|
|
280
|
+
if (!isUsableFile(cachePath)) {
|
|
281
|
+
const tmpPath = `${cachePath}.tmp-${process.pid}-${Date.now()}`;
|
|
282
|
+
const inlinePath = `${tmpPath}.heic`;
|
|
283
|
+
const inputPath = source.path ?? inlinePath;
|
|
284
|
+
try {
|
|
285
|
+
if (!source.path) writeFileSync(inlinePath, source.bytes);
|
|
286
|
+
await (options.transcode ?? convertHeifToJpeg)({
|
|
287
|
+
inputPath,
|
|
288
|
+
outputPath: tmpPath,
|
|
289
|
+
timeoutMs: options.timeoutMs
|
|
290
|
+
});
|
|
291
|
+
if (!isUsableFile(tmpPath)) throw new Error("conversion produced an empty file");
|
|
292
|
+
renameWithRetry(tmpPath, cachePath);
|
|
293
|
+
} catch (error) {
|
|
294
|
+
const reason = error instanceof Error ? error.message : String(error);
|
|
295
|
+
throw TOOL_FAILURE_RE.test(reason) ? new HeifToolUnavailableError(source.label, reason) : new HeifImageConversionError(source.label, reason);
|
|
296
|
+
} finally {
|
|
297
|
+
rmSync(tmpPath, { force: true });
|
|
298
|
+
rmSync(inlinePath, { force: true });
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
if (resolve(outputPath) !== resolve(cachePath) && !isUsableFile(outputPath)) {
|
|
302
|
+
copyFileSync(cachePath, outputPath);
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
async function prepareHeifImageInputs(html, options) {
|
|
306
|
+
const outputDir = options.outputDir ?? join(options.downloadDir, PREPARED_HEIF_SUBDIR);
|
|
307
|
+
const outputSrcPrefix = normalizeRelPath(options.outputSrcPrefix ?? PREPARED_HEIF_SUBDIR);
|
|
308
|
+
const cacheDir = options.cacheDir ?? outputDir;
|
|
309
|
+
const preparedAssets = /* @__PURE__ */ new Map();
|
|
310
|
+
const preparedImages = [];
|
|
311
|
+
if (!/<img\b/i.test(html)) return { html, preparedAssets, preparedImages };
|
|
312
|
+
const { document } = parseHTML(html);
|
|
313
|
+
const found = [];
|
|
314
|
+
for (const img of Array.from(document.querySelectorAll("img[src]"))) {
|
|
315
|
+
const src = (img.getAttribute("src") || "").trim();
|
|
316
|
+
const source = src ? resolveImageSource(src, options) : null;
|
|
317
|
+
if (!source) continue;
|
|
318
|
+
const hash = createHash("sha256").update(CACHE_SCHEMA).update("\0").update(source.bytes).digest("hex");
|
|
319
|
+
found.push({ img, src, source, filename: `${CACHE_SCHEMA}-${hash.slice(0, 24)}.jpg` });
|
|
320
|
+
}
|
|
321
|
+
if (found.length === 0) return { html, preparedAssets, preparedImages };
|
|
322
|
+
const unique = new Map(found.map((item) => [item.filename, item.source]));
|
|
323
|
+
const failed = /* @__PURE__ */ new Set();
|
|
324
|
+
await Promise.all(
|
|
325
|
+
[...unique].map(
|
|
326
|
+
([filename, source]) => withMediaProbeSlot(
|
|
327
|
+
() => ensurePreparedJpeg(source, join(cacheDir, filename), join(outputDir, filename), options)
|
|
328
|
+
).catch((error) => {
|
|
329
|
+
if (!options.onFailure) throw error;
|
|
330
|
+
failed.add(filename);
|
|
331
|
+
options.onFailure(error);
|
|
332
|
+
})
|
|
333
|
+
)
|
|
334
|
+
);
|
|
335
|
+
for (const { img, src, filename } of found) {
|
|
336
|
+
if (failed.has(filename)) continue;
|
|
337
|
+
const outputSrc = `${outputSrcPrefix}/${filename}`;
|
|
338
|
+
img.setAttribute("src", outputSrc);
|
|
339
|
+
preparedAssets.set(outputSrc, join(outputDir, filename));
|
|
340
|
+
preparedImages.push({ sourceSrc: src, outputSrc, outputPath: join(outputDir, filename) });
|
|
341
|
+
}
|
|
342
|
+
return { html: document.toString(), preparedAssets, preparedImages };
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
export {
|
|
346
|
+
Semaphore,
|
|
347
|
+
withMediaProbeSlot,
|
|
348
|
+
HEIF_IMAGE_CONVERSION_FAILED,
|
|
349
|
+
HeifImageConversionError,
|
|
350
|
+
HeifToolUnavailableError,
|
|
351
|
+
isHeifBytes,
|
|
352
|
+
primaryGrid,
|
|
353
|
+
convertHeifToJpeg,
|
|
354
|
+
prepareHeifImageInputs
|
|
355
|
+
};
|
|
@@ -6,10 +6,10 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
findCompositionDimensions
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-63DGZRZP.js";
|
|
10
10
|
import {
|
|
11
11
|
outputResolutionForSize
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-OFRRUYBA.js";
|
|
13
13
|
|
|
14
14
|
// src/commands/lambda/_dimensions.ts
|
|
15
15
|
import { readFileSync } from "fs";
|
|
@@ -14,33 +14,33 @@ import {
|
|
|
14
14
|
} from "./chunk-IXXVS2Z4.js";
|
|
15
15
|
import {
|
|
16
16
|
readCompositionFps
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-PQYWYBEQ.js";
|
|
18
18
|
import {
|
|
19
19
|
HF_AUDIO_GROUP_ATTR,
|
|
20
20
|
extractAudioMetadata,
|
|
21
21
|
extractMediaMetadata
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-RDDVQSNQ.js";
|
|
23
23
|
import {
|
|
24
24
|
byStart,
|
|
25
25
|
fpsToNumber,
|
|
26
26
|
parseFpsWithDefault
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-VW2LVMKB.js";
|
|
28
28
|
import {
|
|
29
29
|
HF_AUDIO_AUTOMATION_ATTR,
|
|
30
30
|
HF_AUDIO_FX_ATTR,
|
|
31
31
|
parseAudioFxChain,
|
|
32
32
|
parseAutomation,
|
|
33
33
|
resolveAutomation
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-KLIPVNCO.js";
|
|
35
35
|
import {
|
|
36
36
|
isSubCompositionHost,
|
|
37
37
|
topLevelElements,
|
|
38
38
|
trackKindOf
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-OFRRUYBA.js";
|
|
40
40
|
import {
|
|
41
41
|
resolveReferencedDuration,
|
|
42
42
|
resolveReferencedStart
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-2MLMO25E.js";
|
|
44
44
|
import {
|
|
45
45
|
resolveAuthoredAssetFile
|
|
46
46
|
} from "./chunk-PBNWRWKA.js";
|
|
@@ -355,6 +355,7 @@ async function describeProject(indexPath, measure = measureWithFfprobe, sourceOv
|
|
|
355
355
|
}
|
|
356
356
|
|
|
357
357
|
export {
|
|
358
|
+
createProbeGate,
|
|
358
359
|
NEVER_VISIBLE,
|
|
359
360
|
describeProject
|
|
360
361
|
};
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
typeDirPath,
|
|
21
21
|
updateRecord,
|
|
22
22
|
withFigmaErrors
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-TSJVPPXT.js";
|
|
24
24
|
import {
|
|
25
25
|
defineCommand
|
|
26
26
|
} from "./chunk-S3S4TGEH.js";
|
|
@@ -229,7 +229,7 @@ var asset_default = defineCommand({
|
|
|
229
229
|
rendered > 0 ? `(${results.length} nodes, ${rendered} rendered in 1 figma request)` : `(${results.length} nodes, all reused from cache \u2014 no figma request)`
|
|
230
230
|
);
|
|
231
231
|
}
|
|
232
|
-
const { trackFigmaImport } = await import("./telemetry-
|
|
232
|
+
const { trackFigmaImport } = await import("./telemetry-W3LRO3TB.js");
|
|
233
233
|
trackFigmaImport({
|
|
234
234
|
phase: "asset",
|
|
235
235
|
reused: results.every((r) => r.reused),
|