hyperframes 0.8.221 → 0.8.222
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-7CVO7K6M.js → add-6MPLIWVP.js} +16 -15
- package/dist/{agentPromptGenerator-YFC2SJLF.js → agentPromptGenerator-X7SQPCXZ.js} +12 -11
- package/dist/{animatedGifPrep-YSMY5GU2.js → animatedGifPrep-ESOJ4FQ7.js} +12 -11
- package/dist/api.js +23 -22
- package/dist/{asset-ZVKHSO3M.js → asset-Y735VQV6.js} +2 -2
- package/dist/{assetCataloger-6IBSEOK7.js → assetCataloger-AOJAUEZW.js} +13 -12
- package/dist/{audio-JUV3TVSW.js → audio-VMMCGPOV.js} +20 -19
- package/dist/{auth-2J6FP462.js → auth-BD5NHYRA.js} +1 -1
- package/dist/{autoUpdate-ML6EZK6D.js → autoUpdate-VTMNHOAJ.js} +2 -2
- package/dist/{backgroundChecks-MAWP2REX.js → backgroundChecks-SUDYQZSW.js} +3 -3
- package/dist/backgroundChecksWorker.js +3 -3
- package/dist/{batchRender-Z7MGNJZH.js → batchRender-4NR7RMT7.js} +11 -8
- package/dist/{beats-LRZOZUUQ.js → beats-PKEHQHBY.js} +53 -21
- package/dist/{benchmark-XJWLDTIL.js → benchmark-K55DDFHG.js} +12 -11
- package/dist/{browser-STEVEWWA.js → browser-G2WFWJJ3.js} +3 -3
- package/dist/{bundleWithLocalizedFonts-WH63ZWUT.js → bundleWithLocalizedFonts-MNG2UVH3.js} +2 -2
- package/dist/{capture-U3ZT3GNI.js → capture-24PIC3TZ.js} +67 -25
- package/dist/{capture-VB5ID7HT.js → capture-U3EEAPI6.js} +3 -3
- package/dist/{captureCompositionFrame-MXJ3WO2R.js → captureCompositionFrame-KL4V6ORD.js} +18 -17
- package/dist/{catalog-ICGHSRPZ.js → catalog-J3BU4TFW.js} +16 -15
- package/dist/{catch-up-DJPQKXQB.js → catch-up-LDGNMEGL.js} +4 -4
- package/dist/{check-TL7AGWPO.js → check-J6HG6EKE.js} +45 -44
- package/dist/{checkAudio-GPTU6EGB.js → checkAudio-MAX7JUYG.js} +17 -16
- package/dist/{checkBrowser-FG5DAW2R.js → checkBrowser-3W74WJ26.js} +43 -38
- package/dist/{chunk-4ZM727AO.js → chunk-3RXZZIDQ.js} +5 -5
- package/dist/{chunk-ZOLKM3VZ.js → chunk-42Q3VX34.js} +9 -9
- package/dist/{chunk-OOEOJPFY.js → chunk-4VEXJTUT.js} +2 -2
- package/dist/{chunk-NYOQP6DO.js → chunk-52VXA3SC.js} +1 -1
- package/dist/{chunk-AZI2T2KO.js → chunk-537WSYHU.js} +1 -1
- package/dist/{chunk-QYUXDFJY.js → chunk-5GSEM63G.js} +12 -10
- package/dist/{chunk-MYNBV7WG.js → chunk-6CFBFWLF.js} +1 -1
- package/dist/{chunk-5YT2KHPO.js → chunk-6W3DY5BP.js} +2 -2
- package/dist/{chunk-TNQCXU37.js → chunk-7D2LTSNV.js} +1 -1
- package/dist/{chunk-3STL4WJ6.js → chunk-7IH3RSSG.js} +17 -8
- package/dist/{chunk-M2F6VGCP.js → chunk-AIXH3V5A.js} +85 -50
- package/dist/{chunk-PBNWRWKA.js → chunk-AKMY4QVI.js} +2 -1
- package/dist/{chunk-F6WHVEUS.js → chunk-AN4USOFT.js} +5 -1
- package/dist/{chunk-OMLDAF44.js → chunk-AOHG22HQ.js} +6 -5
- package/dist/{chunk-VZBJ5BQF.js → chunk-AW3XJY4S.js} +1 -1
- package/dist/{chunk-P6FGS4U6.js → chunk-AXVTL7B6.js} +6 -6
- package/dist/{chunk-DWTFLQ3P.js → chunk-B2ZZYISD.js} +4 -2
- package/dist/{chunk-MXVH6UW6.js → chunk-BDZSH6P3.js} +6 -57
- package/dist/{chunk-6YW3FEHC.js → chunk-BPIY5LB3.js} +9 -8
- package/dist/{chunk-KSC4O2RY.js → chunk-C2KEGBR3.js} +53 -4
- package/dist/{chunk-YISDQ7YP.js → chunk-CVY6OIKN.js} +4 -4
- package/dist/{chunk-I45R2REQ.js → chunk-CZOC7WY7.js} +1 -1
- package/dist/{chunk-HSHKLYDI.js → chunk-D6LGD472.js} +4 -4
- package/dist/{chunk-Z7YQEDA5.js → chunk-DC26QLB7.js} +1 -1
- package/dist/{chunk-DMCU2ELU.js → chunk-DIXTEVWQ.js} +3 -3
- package/dist/{chunk-322M35EB.js → chunk-DNTPNSH5.js} +3 -3
- package/dist/{chunk-GSCFMG4C.js → chunk-DSHFKKSZ.js} +3 -3
- package/dist/{chunk-3PJ3HVLG.js → chunk-E5IIR67Q.js} +1 -1
- package/dist/{chunk-D2RQVJLZ.js → chunk-EE7YWKDY.js} +3 -27
- package/dist/{chunk-XFMO3BEN.js → chunk-EGJ4UECR.js} +11 -5
- package/dist/{chunk-MYXFBIJO.js → chunk-EOUKB53E.js} +1 -1
- package/dist/{chunk-3422KMTD.js → chunk-EPQC3FGZ.js} +4 -0
- package/dist/{chunk-625I5VBE.js → chunk-F6QV5N3A.js} +2 -2
- package/dist/{chunk-6HKUUBAV.js → chunk-FMKI7ZLM.js} +2 -2
- package/dist/{chunk-TVT465RJ.js → chunk-FT3CNACL.js} +5 -5
- package/dist/{chunk-L63FJVSC.js → chunk-G2EY3MVW.js} +1 -1
- package/dist/{chunk-UNQ3CVKW.js → chunk-G675S644.js} +20 -21
- package/dist/{chunk-XETZLYGW.js → chunk-GHEYGMKD.js} +2 -2
- package/dist/{chunk-RVCWVOXM.js → chunk-GODT7QDZ.js} +3 -3
- package/dist/{chunk-74E7EHVH.js → chunk-GOWU3NCE.js} +1 -1
- package/dist/{chunk-SGTEKMJW.js → chunk-HOTXWVVP.js} +93 -5
- package/dist/{chunk-AW7A27JM.js → chunk-HQDHMAUI.js} +1 -1
- package/dist/{chunk-BIROA7JM.js → chunk-HYRPH6LL.js} +7 -6
- package/dist/{chunk-TMK3MW7B.js → chunk-IB7UYGXR.js} +10 -10
- package/dist/{chunk-SAKL7SZH.js → chunk-IGBOFU2Y.js} +3 -3
- package/dist/{chunk-KQPP4NIZ.js → chunk-JQWITWVC.js} +2 -2
- package/dist/{chunk-AZXDEC2G.js → chunk-K5UCRKUK.js} +4 -6
- package/dist/{chunk-M2BCU4Y5.js → chunk-KEY2VA65.js} +1 -1
- package/dist/{chunk-JGZUG5V4.js → chunk-L37AZWB2.js} +2 -2
- package/dist/{chunk-YSZ4VMXI.js → chunk-L55LAERP.js} +1 -1
- package/dist/chunk-LL3VMDAC.js +5013 -0
- package/dist/chunk-MEJH7VEA.js +63 -0
- package/dist/{chunk-ZBLSSWSE.js → chunk-NUE44RN2.js} +1 -1
- package/dist/{chunk-MEB6HWBM.js → chunk-OAXWHPNS.js} +2 -2
- package/dist/{chunk-Y4GLFHO5.js → chunk-OQLYKDL5.js} +1 -1
- package/dist/{chunk-7DVR3DL3.js → chunk-OROHGC7W.js} +8 -8
- package/dist/{chunk-YKMFCE5B.js → chunk-P5M3AXEP.js} +1 -1
- package/dist/{chunk-N4XNRHFM.js → chunk-QNW43LWB.js} +1 -1
- package/dist/{chunk-H3HC6U4I.js → chunk-QOZPWIYV.js} +10 -10
- package/dist/{chunk-XDTCPMR3.js → chunk-QYRMR45H.js} +2 -2
- package/dist/{chunk-RVIMLJXC.js → chunk-RIGSGNDQ.js} +54 -18
- package/dist/{chunk-U6WH572X.js → chunk-RRPO44PE.js} +5 -5
- package/dist/{chunk-YBNF5ZOC.js → chunk-SFS5BTQ3.js} +1 -1
- package/dist/{chunk-2ZNURTH5.js → chunk-SKCS4SUZ.js} +4455 -4312
- package/dist/{chunk-J74ZUXVU.js → chunk-SWC3QIEH.js} +1 -1
- package/dist/{chunk-S5GOFDX5.js → chunk-VJVVWYP6.js} +1 -1
- package/dist/{chunk-5SKC4G26.js → chunk-VMRQDPFL.js} +1 -1
- package/dist/{chunk-LYZB5CJN.js → chunk-VQMHDS2V.js} +110 -9
- package/dist/{chunk-NQOCM4KQ.js → chunk-WJYFJGYT.js} +3 -3
- package/dist/{chunk-ZKPRJPWN.js → chunk-WWT6ETQA.js} +43 -43
- package/dist/{chunk-IDWJJ7PP.js → chunk-XHD7RKEZ.js} +2 -2
- package/dist/{chunk-OPKSVV4G.js → chunk-Y7IV5MAK.js} +2 -2
- package/dist/{chunk-67CALYTU.js → chunk-YEKJOA47.js} +1 -1
- package/dist/{chunk-O7WR4AHX.js → chunk-YHL4CVTF.js} +14 -14
- package/dist/{chunk-BQNTY7J5.js → chunk-Z5VQBRU2.js} +1 -1
- package/dist/{chunk-24F7TOW2.js → chunk-ZAJQFY5Q.js} +126 -53
- package/dist/{chunk-ROVRC3CG.js → chunk-ZBNK6X5O.js} +5 -5
- package/dist/{chunk-QLQVQQP6.js → chunk-ZLXWRYOO.js} +3 -3
- package/dist/{chunk-YV2QQUTL.js → chunk-ZPTNLDOB.js} +2 -2
- package/dist/{clean-3NMJWZXK.js → clean-K6IM3LC4.js} +24 -23
- package/dist/cli.js +54 -54
- package/dist/{cloud-CB3NYNUR.js → cloud-OV7EA4BJ.js} +4 -4
- package/dist/{cloudrun-2CTKCIXV.js → cloudrun-ZEMODIOP.js} +10 -9
- package/dist/commands/layout-audit.browser.js +19 -3
- package/dist/commands/motion-signature.browser.js +8 -4
- package/dist/{compare-FVY3AMTT.js → compare-MJZ3D3HA.js} +36 -35
- package/dist/{compiler-SEQRWEEN.js → compiler-6KKETX77.js} +8 -8
- package/dist/{component-AEMJRROX.js → component-EVXMYIP3.js} +3 -3
- package/dist/{compositions-NRBSIBGZ.js → compositions-PZ7FQ7WN.js} +16 -15
- package/dist/{delete-T4E53ELR.js → delete-DL3XA4QV.js} +2 -2
- package/dist/{deploy-PUF2DW3H.js → deploy-VEYP3IP5.js} +1 -1
- package/dist/{deterministicFonts-2ISM3LMW.js → deterministicFonts-LV2JMOJL.js} +2 -2
- package/dist/{dist-B6C3DU6I.js → dist-M77KFAYW.js} +7 -6
- package/dist/{dist-VARV35QH.js → dist-SHMQOKMF.js} +6 -6
- package/dist/{doctor-FVBU575B.js → doctor-JM2WHH7Y.js} +16 -15
- package/dist/{dotEnv-BGFXSQOA.js → dotEnv-33RDHX7P.js} +1 -1
- package/dist/{events-DZ5PRR6F.js → events-GW5I5RCG.js} +2 -2
- package/dist/{events-RSPDI7FX.js → events-S7KVBRSL.js} +3 -3
- package/dist/{feedback-AALA3OA7.js → feedback-7OR5FVTX.js} +11 -10
- package/dist/{ffmpeg-YXKE5CUE.js → ffmpeg-A7CSIX3U.js} +12 -11
- package/dist/{figma-37R727XZ.js → figma-444HKFX5.js} +3 -3
- package/dist/fontLocalizeCli.js +16 -15
- package/dist/{get-L3VKJ6JF.js → get-6UTF3225.js} +2 -2
- package/dist/{gpuPolicy-6QIFFWAI.js → gpuPolicy-ORPUS5Z2.js} +12 -11
- package/dist/{grade-compare-7IN5QDJD.js → grade-compare-UCTAYN3B.js} +37 -36
- package/dist/{heifImagePrep-AWII25PM.js → heifImagePrep-ED6V6RFN.js} +13 -12
- package/dist/{help-B4MB7MWW.js → help-HZR32XWP.js} +1 -1
- package/dist/{history-TQO6AWEQ.js → history-TQ56MZIA.js} +17 -8
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +67 -67
- package/dist/hyperframes-player.global.js +1 -1
- package/dist/hyperframes-slideshow.global.js +8 -8
- package/dist/{info-7CBHVXSG.js → info-RPIIP7RN.js} +11 -10
- package/dist/{init-D7HKPQ5A.js → init-ONAWKHFW.js} +33 -32
- package/dist/{inspect-VHDQL55M.js → inspect-A75PYOWJ.js} +37 -36
- package/dist/{installer-EJNLL6SV.js → installer-ISMCCFBZ.js} +8 -7
- package/dist/{keyframes-IFLBMAJP.js → keyframes-2I75DP3O.js} +7 -7
- package/dist/{lambda-I7EQULHC.js → lambda-4QIHGPGJ.js} +17 -16
- package/dist/{layout-MOCEANRO.js → layout-GW7WE7RT.js} +37 -36
- package/dist/{lint-HFXGSQKN.js → lint-OWP72OZQ.js} +12 -12
- package/dist/{lintProject-VCDI6A2W.js → lintProject-XYQ5L7RQ.js} +6 -6
- package/dist/{list-OFYIXVON.js → list-WVK7ZCPW.js} +2 -2
- package/dist/{localPage-QOOQ5YA2.js → localPage-IQWHN7BH.js} +12 -11
- package/dist/{login-WAG7B4PM.js → login-Q5CNHYWU.js} +4 -4
- package/dist/{manager-34U5CEFB.js → manager-JCYVNEWH.js} +13 -12
- package/dist/{media-treatment-2TLX6NKS.js → media-treatment-M5IUP7H4.js} +21 -20
- package/dist/{models-M2F4WTAR.js → models-CFXKDYZ3.js} +16 -15
- package/dist/{motionShot-6WCTCV4W.js → motionShot-CWUEI4ZM.js} +21 -20
- package/dist/{normalize-audio-T6PIPWOT.js → normalize-audio-FASY33LR.js} +15 -14
- package/dist/{open-BC5METIY.js → open-KOVVESYN.js} +15 -14
- package/dist/{parakeetRunner-UXVY7PV2.js → parakeetRunner-E4IP5SL4.js} +18 -17
- package/dist/{pipeline-GJAJPWPB.js → pipeline-C6EZVV43.js} +15 -14
- package/dist/{play-UCIRUHCU.js → play-MZJI6SMH.js} +27 -26
- package/dist/{preflight-GVRYYIH5.js → preflight-K4SPUWXP.js} +13 -12
- package/dist/{present-46QLZOK4.js → present-7L7ZTG7F.js} +24 -23
- package/dist/{preview-HWXMP7WL.js → preview-QGDVMR3X.js} +23 -22
- package/dist/{producer-2PBHUE5O.js → producer-EJPNNY3E.js} +1 -1
- package/dist/{projectConfig-C4S3LBBX.js → projectConfig-EEF6OPXO.js} +10 -9
- package/dist/{publication-GESNVVMS.js → publication-5KF44AKQ.js} +6 -5
- package/dist/{publish-IBY26S3T.js → publish-SSKWZ5TE.js} +16 -15
- package/dist/{remove-background-3OBWOHVZ.js → remove-background-PCL6I5SZ.js} +16 -15
- package/dist/{render-LSI5WXS7.js → render-DH4UA7KW.js} +10 -9
- package/dist/{render-3F6GQ5WW.js → render-DRWQ6F37.js} +22 -21
- package/dist/{render-SR5RISLU.js → render-UPRWOGLS.js} +156 -42
- package/dist/{render-batch-HV4W3PZM.js → render-batch-EBW5WHB5.js} +10 -9
- package/dist/renderSetupWorker.js +6 -6
- package/dist/{resolver-R5X3HAPE.js → resolver-ZSZXNRFP.js} +8 -7
- package/dist/{screenshotCapture-U3IYWTDB.js → screenshotCapture-4THETOMD.js} +2 -1
- package/dist/{sherpa-2Q6U4ZFY.js → sherpa-IKVUCBOW.js} +17 -16
- package/dist/skills/hyperframes-cli/references/beats.md +1 -1
- package/dist/skills/media-use/audio/scripts/lib/gemini-tts.mjs +13 -1
- package/dist/skills/media-use/audio/scripts/lib/gemini-tts.test.mjs +10 -0
- package/dist/{skills-FSGXQSHA.js → skills-ZREHX3TU.js} +5 -5
- package/dist/{skillsUpdateCheck-UW6643XX.js → skillsUpdateCheck-PPJ5NGAL.js} +3 -3
- package/dist/{slideshow-SJGK4RQS.js → slideshow-ARJR22W4.js} +1 -1
- package/dist/{snapshot-HFPB34Y7.js → snapshot-KPFLZNEL.js} +57 -45
- package/dist/{src-ROWFWCEN.js → src-EPOGDJTT.js} +11 -10
- package/dist/{src-VMTQQUUP.js → src-QRV3466B.js} +21 -14
- package/dist/{staticProjectServer-4TGZJIWN.js → staticProjectServer-ERKLMZVM.js} +25 -24
- package/dist/studio/assets/{hyperframes-player-B_wvwarc.js → hyperframes-player-Dka6e1BG.js} +1 -1
- package/dist/studio/assets/{index-BDE7dwov.js → index-C8VIUiGz.js} +117 -117
- package/dist/studio/assets/{index-D0jGq2dS.js → index-CVPNbydK.js} +1 -1
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-TSHXVZ6R.js → studio-api-7WFZIIPL.js} +21 -16
- package/dist/{studioServer-74ZBLNP2.js → studioServer-3XZTLI26.js} +76 -113
- package/dist/{telemetry-3NDLZOPR.js → telemetry-BMLI4TMC.js} +3 -3
- package/dist/templates/blank/index.html +1 -1
- package/dist/templates/from-file/index.html +1 -1
- package/dist/{timeline-5IFZJU7M.js → timeline-EDCDO2ZR.js} +25 -24
- package/dist/{tokens-UFNPQVLS.js → tokens-2ZFLFO3K.js} +2 -2
- package/dist/{transcribe-7KQAUHEN.js → transcribe-3WMH62HH.js} +16 -15
- package/dist/{transcribe-NAXKBIPW.js → transcribe-Y2LPBT7I.js} +22 -21
- package/dist/{updateCheck-KDSFL3XX.js → updateCheck-5LFZGC3P.js} +2 -2
- package/dist/{upgrade-EXX4C35N.js → upgrade-X7QVSEKP.js} +2 -2
- package/dist/{urlDownloader-4UFCIAPH.js → urlDownloader-TYD6ROKL.js} +11 -10
- package/dist/{validate-QYOHY3N6.js → validate-26KQ5VX7.js} +31 -30
- package/dist/{video-HRL3V2R5.js → video-BPKLZIJK.js} +13 -12
- package/dist/warmCheck.js +45 -44
- package/package.json +1 -1
- package/dist/chunk-Q3PPGPEA.js +0 -5061
- /package/dist/{chunk-NHA4NRBE.js → chunk-T5ELONXY.js} +0 -0
|
@@ -6,33 +6,33 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
readJsonFlag
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-EGJ4UECR.js";
|
|
10
10
|
import {
|
|
11
11
|
RegistryCompatibilityError,
|
|
12
12
|
gateRegistryItemsCompatibility
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-HQDHMAUI.js";
|
|
14
14
|
import {
|
|
15
15
|
DEFAULT_PROJECT_CONFIG,
|
|
16
16
|
createProjectConfig,
|
|
17
17
|
loadProjectConfig,
|
|
18
18
|
projectConfigPath,
|
|
19
19
|
recordProjectRegistryItems
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-P5M3AXEP.js";
|
|
21
21
|
import {
|
|
22
22
|
resolveItemWithDependencies,
|
|
23
23
|
resolveItemsByTag
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-6CFBFWLF.js";
|
|
25
25
|
import {
|
|
26
26
|
InvalidVariableValuesError,
|
|
27
27
|
prepareItem,
|
|
28
28
|
publishItem
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-IGBOFU2Y.js";
|
|
30
30
|
import {
|
|
31
31
|
DEFAULT_REGISTRY_URL
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-VJVVWYP6.js";
|
|
33
33
|
import {
|
|
34
34
|
trackRegistryItemAdded
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-AN4USOFT.js";
|
|
36
36
|
import {
|
|
37
37
|
defineCommand
|
|
38
38
|
} from "./chunk-DL4OD7IA.js";
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
} from "./chunk-2GICKZ3I.js";
|
|
42
42
|
import {
|
|
43
43
|
ITEM_TYPE_DIRS
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-BDZSH6P3.js";
|
|
45
45
|
import {
|
|
46
46
|
isProjectRootMissing,
|
|
47
47
|
realpath
|
|
@@ -409,6 +409,15 @@ var add_default = defineCommand({
|
|
|
409
409
|
const projectDir = resolve(args.dir ?? process.cwd());
|
|
410
410
|
const json = args.json === true;
|
|
411
411
|
const skipClipboard = args.clipboard === false;
|
|
412
|
+
if (!existsSync(projectDir)) {
|
|
413
|
+
failCaught(
|
|
414
|
+
new Error(
|
|
415
|
+
`Project folder not found: ${projectDir}. --dir is the project root, not where the block lands (that is its compositions/ folder), and it must already exist. Create one with \`hyperframes init <dir>\`.`
|
|
416
|
+
),
|
|
417
|
+
json,
|
|
418
|
+
c.error
|
|
419
|
+
);
|
|
420
|
+
}
|
|
412
421
|
const hasConfigBefore = existsSync(projectConfigPath(projectDir));
|
|
413
422
|
const names = Array.isArray(args._) && args._.length > 1 ? args._.map(String) : [args.name];
|
|
414
423
|
if (names.length > 1) {
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
renderFrameIdForRenderId,
|
|
43
43
|
resolveAuthoredTimingWindow,
|
|
44
44
|
toFps
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-BDZSH6P3.js";
|
|
46
46
|
import {
|
|
47
47
|
AUDIO_GROUP_RENDER_ID_ATTR,
|
|
48
48
|
AUTHORED_SOURCE_BEGIN,
|
|
@@ -85,7 +85,7 @@ import {
|
|
|
85
85
|
sourceTimeAt,
|
|
86
86
|
timeAtSourceTime,
|
|
87
87
|
volumeSegmentSampleCount
|
|
88
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-LL3VMDAC.js";
|
|
89
89
|
import {
|
|
90
90
|
redactTelemetryString,
|
|
91
91
|
redactUrlQueryStrings
|
|
@@ -103,19 +103,19 @@ import {
|
|
|
103
103
|
} from "./chunk-WE42NVH7.js";
|
|
104
104
|
import {
|
|
105
105
|
resolveReferencedStart
|
|
106
|
-
} from "./chunk-
|
|
106
|
+
} from "./chunk-VQMHDS2V.js";
|
|
107
107
|
import {
|
|
108
108
|
FFMPEG_PATH_ENV,
|
|
109
109
|
FFPROBE_PATH_ENV,
|
|
110
110
|
findFfBinary
|
|
111
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-HYRPH6LL.js";
|
|
112
112
|
import {
|
|
113
113
|
isWithinProjectRoot,
|
|
114
114
|
resolveProjectRelativeSrc
|
|
115
|
-
} from "./chunk-
|
|
115
|
+
} from "./chunk-AKMY4QVI.js";
|
|
116
116
|
import {
|
|
117
117
|
isPathInside
|
|
118
|
-
} from "./chunk-
|
|
118
|
+
} from "./chunk-C2KEGBR3.js";
|
|
119
119
|
import {
|
|
120
120
|
parseHTML
|
|
121
121
|
} from "./chunk-GWTIFRF5.js";
|
|
@@ -11124,6 +11124,7 @@ async function spawnStreamingEncoder(outputPath, options, signal, config) {
|
|
|
11124
11124
|
}
|
|
11125
11125
|
};
|
|
11126
11126
|
let inputFrameIndex = 0;
|
|
11127
|
+
let drainWaitMs = 0;
|
|
11127
11128
|
const encoder = {
|
|
11128
11129
|
writeFrame: async (buffer) => {
|
|
11129
11130
|
const stdin = ffmpeg.stdin;
|
|
@@ -11145,7 +11146,9 @@ async function spawnStreamingEncoder(outputPath, options, signal, config) {
|
|
|
11145
11146
|
managed.markActivity();
|
|
11146
11147
|
return true;
|
|
11147
11148
|
}
|
|
11149
|
+
const drainStart = Date.now();
|
|
11148
11150
|
const drainResult = await waitForDrainOrExit(stdin);
|
|
11151
|
+
drainWaitMs += Date.now() - drainStart;
|
|
11149
11152
|
if (drainResult !== "drain" || exitStatus !== "running") {
|
|
11150
11153
|
return false;
|
|
11151
11154
|
}
|
|
@@ -11190,7 +11193,7 @@ FFmpeg stopped after ${streamingTimeout} ms without consuming a frame.` : "";
|
|
|
11190
11193
|
};
|
|
11191
11194
|
}
|
|
11192
11195
|
const fileSize = existsSync6(outputPath) ? statSync4(outputPath).size : 0;
|
|
11193
|
-
return { success: true, durationMs, fileSize };
|
|
11196
|
+
return { success: true, durationMs, fileSize, drainWaitMs };
|
|
11194
11197
|
},
|
|
11195
11198
|
getExitStatus: () => exitStatus,
|
|
11196
11199
|
getExitError: () => {
|
|
@@ -11405,7 +11408,52 @@ import {
|
|
|
11405
11408
|
} from "fs";
|
|
11406
11409
|
import { createHash, randomUUID as randomUUID2 } from "crypto";
|
|
11407
11410
|
import dns from "dns";
|
|
11411
|
+
|
|
11412
|
+
// ../engine/src/utils/networkPolicy.ts
|
|
11408
11413
|
import { BlockList, isIP } from "net";
|
|
11414
|
+
var NON_PUBLIC_IPV4_ADDRESSES = new BlockList();
|
|
11415
|
+
for (const [network, prefix] of [
|
|
11416
|
+
["0.0.0.0", 8],
|
|
11417
|
+
["10.0.0.0", 8],
|
|
11418
|
+
["100.64.0.0", 10],
|
|
11419
|
+
["127.0.0.0", 8],
|
|
11420
|
+
["169.254.0.0", 16],
|
|
11421
|
+
["172.16.0.0", 12],
|
|
11422
|
+
["192.0.0.0", 24],
|
|
11423
|
+
["192.0.2.0", 24],
|
|
11424
|
+
["192.88.99.0", 24],
|
|
11425
|
+
["192.168.0.0", 16],
|
|
11426
|
+
["198.18.0.0", 15],
|
|
11427
|
+
["198.51.100.0", 24],
|
|
11428
|
+
["203.0.113.0", 24],
|
|
11429
|
+
["224.0.0.0", 4],
|
|
11430
|
+
["240.0.0.0", 4]
|
|
11431
|
+
]) {
|
|
11432
|
+
NON_PUBLIC_IPV4_ADDRESSES.addSubnet(network, prefix, "ipv4");
|
|
11433
|
+
}
|
|
11434
|
+
var NON_PUBLIC_IPV6_ADDRESSES = new BlockList();
|
|
11435
|
+
for (const [network, prefix] of [
|
|
11436
|
+
["::", 128],
|
|
11437
|
+
["::1", 128],
|
|
11438
|
+
["::ffff:0:0", 96],
|
|
11439
|
+
["fc00::", 7],
|
|
11440
|
+
["fe80::", 10],
|
|
11441
|
+
["fec0::", 10],
|
|
11442
|
+
["ff00::", 8],
|
|
11443
|
+
["2001:db8::", 32]
|
|
11444
|
+
]) {
|
|
11445
|
+
NON_PUBLIC_IPV6_ADDRESSES.addSubnet(network, prefix, "ipv6");
|
|
11446
|
+
}
|
|
11447
|
+
function isBlockedNetworkHost(hostname) {
|
|
11448
|
+
const h = hostname.toLowerCase().replace(/\.$/, "").replace(/^\[|\]$/g, "");
|
|
11449
|
+
if (h === "localhost" || h.endsWith(".localhost") || h.endsWith(".local") || h.endsWith(".internal"))
|
|
11450
|
+
return true;
|
|
11451
|
+
const addressType = isIP(h);
|
|
11452
|
+
if (addressType === 0) return false;
|
|
11453
|
+
return addressType === 4 ? NON_PUBLIC_IPV4_ADDRESSES.check(h, "ipv4") : NON_PUBLIC_IPV6_ADDRESSES.check(h, "ipv6");
|
|
11454
|
+
}
|
|
11455
|
+
|
|
11456
|
+
// ../engine/src/utils/urlDownloader.ts
|
|
11409
11457
|
import { dirname as dirname4, extname as extname2, join as join10 } from "path";
|
|
11410
11458
|
import { Readable, Transform } from "stream";
|
|
11411
11459
|
import { pipeline } from "stream/promises";
|
|
@@ -11501,47 +11549,6 @@ function isRetryableNetworkCause(error) {
|
|
|
11501
11549
|
const code = typeof error === "object" && error !== null && "code" in error && typeof error.code === "string" ? error.code : "";
|
|
11502
11550
|
return RETRYABLE_NETWORK_CODES.has(code) || code.startsWith("UND_ERR_") || /fetch failed|network|socket|connection reset|terminated/i.test(message);
|
|
11503
11551
|
}
|
|
11504
|
-
var NON_PUBLIC_IPV4_ADDRESSES = new BlockList();
|
|
11505
|
-
for (const [network, prefix] of [
|
|
11506
|
-
["0.0.0.0", 8],
|
|
11507
|
-
["10.0.0.0", 8],
|
|
11508
|
-
["100.64.0.0", 10],
|
|
11509
|
-
["127.0.0.0", 8],
|
|
11510
|
-
["169.254.0.0", 16],
|
|
11511
|
-
["172.16.0.0", 12],
|
|
11512
|
-
["192.0.0.0", 24],
|
|
11513
|
-
["192.0.2.0", 24],
|
|
11514
|
-
["192.88.99.0", 24],
|
|
11515
|
-
["192.168.0.0", 16],
|
|
11516
|
-
["198.18.0.0", 15],
|
|
11517
|
-
["198.51.100.0", 24],
|
|
11518
|
-
["203.0.113.0", 24],
|
|
11519
|
-
["224.0.0.0", 4],
|
|
11520
|
-
["240.0.0.0", 4]
|
|
11521
|
-
]) {
|
|
11522
|
-
NON_PUBLIC_IPV4_ADDRESSES.addSubnet(network, prefix, "ipv4");
|
|
11523
|
-
}
|
|
11524
|
-
var NON_PUBLIC_IPV6_ADDRESSES = new BlockList();
|
|
11525
|
-
for (const [network, prefix] of [
|
|
11526
|
-
["::", 128],
|
|
11527
|
-
["::1", 128],
|
|
11528
|
-
["::ffff:0:0", 96],
|
|
11529
|
-
["fc00::", 7],
|
|
11530
|
-
["fe80::", 10],
|
|
11531
|
-
["fec0::", 10],
|
|
11532
|
-
["ff00::", 8],
|
|
11533
|
-
["2001:db8::", 32]
|
|
11534
|
-
]) {
|
|
11535
|
-
NON_PUBLIC_IPV6_ADDRESSES.addSubnet(network, prefix, "ipv6");
|
|
11536
|
-
}
|
|
11537
|
-
function isBlockedNetworkHost(hostname) {
|
|
11538
|
-
const h = hostname.toLowerCase().replace(/\.$/, "").replace(/^\[|\]$/g, "");
|
|
11539
|
-
if (h === "localhost" || h.endsWith(".localhost") || h.endsWith(".local") || h.endsWith(".internal"))
|
|
11540
|
-
return true;
|
|
11541
|
-
const addressType = isIP(h);
|
|
11542
|
-
if (addressType === 0) return false;
|
|
11543
|
-
return addressType === 4 ? NON_PUBLIC_IPV4_ADDRESSES.check(h, "ipv4") : NON_PUBLIC_IPV6_ADDRESSES.check(h, "ipv6");
|
|
11544
|
-
}
|
|
11545
11552
|
function assertPublicHttpsUrl(url) {
|
|
11546
11553
|
let parsed;
|
|
11547
11554
|
try {
|
|
@@ -13177,6 +13184,16 @@ var EXTRACTION_SLOTS = Math.max(1, Math.floor(cpus().length / 2));
|
|
|
13177
13184
|
var inExtractionSlot = createConcurrencyLimit(EXTRACTION_SLOTS);
|
|
13178
13185
|
var TAIL_PROBE_SLOTS = Math.max(1, Number(process.env.HF_TAIL_PROBE_SLOTS) || 16);
|
|
13179
13186
|
var inTailProbeSlot = createConcurrencyLimit(TAIL_PROBE_SLOTS);
|
|
13187
|
+
function framesWrittenReader(onProgress) {
|
|
13188
|
+
if (!onProgress) return void 0;
|
|
13189
|
+
let seen = 0;
|
|
13190
|
+
const read = ffmpegStatsReader(({ frames }) => {
|
|
13191
|
+
if (frames === void 0 || frames <= seen) return;
|
|
13192
|
+
onProgress({ done: frames - seen });
|
|
13193
|
+
seen = frames;
|
|
13194
|
+
});
|
|
13195
|
+
return (chunk) => read(chunk);
|
|
13196
|
+
}
|
|
13180
13197
|
function splitFrameRanges(ranges, segmentFrames) {
|
|
13181
13198
|
const segments = [];
|
|
13182
13199
|
for (const range of ranges) {
|
|
@@ -13222,6 +13239,7 @@ async function runSegmentedExtraction(job) {
|
|
|
13222
13239
|
{
|
|
13223
13240
|
...job.runOptions,
|
|
13224
13241
|
signal,
|
|
13242
|
+
onStderr: framesWrittenReader(job.onProgress),
|
|
13225
13243
|
timeout: stallTimeoutMs(
|
|
13226
13244
|
job.runOptions.timeout,
|
|
13227
13245
|
await leadInSecondsUnlessAborted(videoPath, seek, signal),
|
|
@@ -13369,10 +13387,12 @@ async function extractVideoFramesRangeUnredacted(videoPath, videoId, startTime,
|
|
|
13369
13387
|
options.frameRanges ?? [{ firstFrame: 0, frames: totalFrames }],
|
|
13370
13388
|
segmentFrames
|
|
13371
13389
|
),
|
|
13372
|
-
runOptions
|
|
13390
|
+
runOptions,
|
|
13391
|
+
onProgress: options.onProgress
|
|
13373
13392
|
}) : inExtractionSlot(
|
|
13374
13393
|
async () => runFfmpeg([...hwaccel, ...args, ...filterArgsFor(startTime), ...encodeArgs], {
|
|
13375
13394
|
...runOptions,
|
|
13395
|
+
onStderr: framesWrittenReader(options.onProgress),
|
|
13376
13396
|
timeout: stallTimeoutMs(
|
|
13377
13397
|
ffmpegProcessTimeout,
|
|
13378
13398
|
options.finalFrameOnly ? startTime : await leadInSecondsUnlessAborted(videoPath, startTime, signal),
|
|
@@ -13381,6 +13401,9 @@ async function extractVideoFramesRangeUnredacted(videoPath, videoId, startTime,
|
|
|
13381
13401
|
}),
|
|
13382
13402
|
signal
|
|
13383
13403
|
);
|
|
13404
|
+
options.onProgress?.({
|
|
13405
|
+
planned: options.frameRanges ? options.frameRanges.reduce((sum, range) => sum + range.frames, 0) : totalFrames
|
|
13406
|
+
});
|
|
13384
13407
|
let processResult = await extract(decodeWithVideoToolbox ? ["-hwaccel", "videotoolbox"] : []);
|
|
13385
13408
|
const ffmpegExitedFailing = processResult.terminationReason === "exit" && !processResult.success && !processResult.failureReason;
|
|
13386
13409
|
const videoToolboxWasOptional = decodeWithVideoToolbox && !keepsHdrForChrome;
|
|
@@ -13491,6 +13514,17 @@ var FINAL_FRAME_LOGICAL_DURATION_SECONDS = 1e-6;
|
|
|
13491
13514
|
function isVideoPastTimelineEnd(video, timelineEnd) {
|
|
13492
13515
|
return video.start >= timelineEnd;
|
|
13493
13516
|
}
|
|
13517
|
+
function alignClipStartToFirstOutputFrame(video, fps) {
|
|
13518
|
+
if (video.loop || !Number.isFinite(video.start) || video.start < 0 || !(fps > 0)) return;
|
|
13519
|
+
const position = exportClipWindow(video.start, Infinity, fps).start * fps;
|
|
13520
|
+
const firstFrame = Math.abs(position - Math.round(position)) < 1e-6 ? Math.round(position) : Math.ceil(position);
|
|
13521
|
+
const shift = firstFrame / fps - video.start;
|
|
13522
|
+
if (shift === 0) return;
|
|
13523
|
+
const playbackRate = normalizeRateSpec(video.playbackRate);
|
|
13524
|
+
video.mediaStart += sourceTimeAt(playbackRate, shift);
|
|
13525
|
+
video.playbackRate = shiftRateLane(playbackRate, shift);
|
|
13526
|
+
video.start += shift;
|
|
13527
|
+
}
|
|
13494
13528
|
function rebaseVideoToWindow(video, window2) {
|
|
13495
13529
|
if (window2.preserveTimelinePhase) return;
|
|
13496
13530
|
const start = Math.abs(window2.compositionStart) < 1e-9 ? 0 : window2.compositionStart;
|
|
@@ -14301,6 +14335,7 @@ async function extractAllVideoFrames(videos, baseDir, options, signal, config, c
|
|
|
14301
14335
|
}
|
|
14302
14336
|
try {
|
|
14303
14337
|
const metadata = videoMetadata[index] ?? await extractMediaMetadata(videoPath);
|
|
14338
|
+
alignClipStartToFirstOutputFrame(video, fps);
|
|
14304
14339
|
const initialWindow = resolveVideoExtractionWindow(video, metadata, options.timelineEnd);
|
|
14305
14340
|
const window2 = await resolveFinalFrameExtractionWindow(
|
|
14306
14341
|
videoPath,
|
|
@@ -19081,9 +19116,9 @@ export {
|
|
|
19081
19116
|
HF_AUDIO_GROUP_TAG,
|
|
19082
19117
|
HF_AUDIO_GROUP_ATTR,
|
|
19083
19118
|
isSelfOrAncestorHidden,
|
|
19119
|
+
isBlockedNetworkHost,
|
|
19084
19120
|
safeDownloadUrlIdentity,
|
|
19085
19121
|
writeUrlDownloadTelemetry,
|
|
19086
|
-
isBlockedNetworkHost,
|
|
19087
19122
|
assertPublicHttpsUrl,
|
|
19088
19123
|
_setDownloadFetchForTests,
|
|
19089
19124
|
fetchPublicHttpsText,
|
|
@@ -122,8 +122,9 @@ function splitUrlSuffix(urlValue) {
|
|
|
122
122
|
function encodeUrlPath(path) {
|
|
123
123
|
return encodeURIComponent(path).replace(/%2F/g, "/").replace(/['()]/g, (char) => `%${char.charCodeAt(0).toString(16).toUpperCase()}`);
|
|
124
124
|
}
|
|
125
|
+
var URL_SCHEME_OF_TWO_OR_MORE_CHARS_RE = /^[a-z][a-z0-9+.-]+:/i;
|
|
125
126
|
function isNonRelativeUrl(val) {
|
|
126
|
-
return !val || val.startsWith("http://") || val.startsWith("https://") || val.startsWith("//") || val.startsWith("data:") || val.startsWith("#") || val.startsWith("/");
|
|
127
|
+
return !val || val.startsWith("http://") || val.startsWith("https://") || val.startsWith("//") || val.startsWith("data:") || val.startsWith("#") || val.startsWith("/") || URL_SCHEME_OF_TWO_OR_MORE_CHARS_RE.test(val);
|
|
127
128
|
}
|
|
128
129
|
var { join, resolve: resolve2, dirname } = posix;
|
|
129
130
|
var isAbsoluteOrSpecial = isNonRelativeUrl;
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
flush,
|
|
9
9
|
shouldTrack,
|
|
10
10
|
trackEvent
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-NUE44RN2.js";
|
|
12
12
|
import {
|
|
13
13
|
redactTelemetryString
|
|
14
14
|
} from "./chunk-TK7THLRO.js";
|
|
@@ -312,6 +312,10 @@ function trackRenderComplete(props) {
|
|
|
312
312
|
speed_ratio: props.speedRatio,
|
|
313
313
|
capture_avg_ms: props.captureAvgMs,
|
|
314
314
|
capture_p50_ms: props.captureP50Ms,
|
|
315
|
+
capture_seek_avg_ms: props.captureSeekAvgMs,
|
|
316
|
+
capture_before_capture_avg_ms: props.captureBeforeCaptureAvgMs,
|
|
317
|
+
capture_screenshot_avg_ms: props.captureScreenshotAvgMs,
|
|
318
|
+
encoder_wait_avg_ms: props.encoderWaitAvgMs,
|
|
315
319
|
video_count: props.videoCount,
|
|
316
320
|
capture_peak_ms: props.capturePeakMs,
|
|
317
321
|
peak_memory_mb: props.peakMemoryMb,
|
|
@@ -10,8 +10,9 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
JsonFlagReadError,
|
|
12
12
|
inlineJsonHint,
|
|
13
|
-
readJsonFlagText
|
|
14
|
-
|
|
13
|
+
readJsonFlagText,
|
|
14
|
+
unreadableJsonHint
|
|
15
|
+
} from "./chunk-EGJ4UECR.js";
|
|
15
16
|
import {
|
|
16
17
|
errorBox
|
|
17
18
|
} from "./chunk-5ZBMHUY2.js";
|
|
@@ -21,10 +22,10 @@ import {
|
|
|
21
22
|
import {
|
|
22
23
|
formatVariableValidationIssue,
|
|
23
24
|
validateVariables
|
|
24
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-BDZSH6P3.js";
|
|
25
26
|
import {
|
|
26
27
|
extractCompositionMetadata
|
|
27
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-T5ELONXY.js";
|
|
28
29
|
import {
|
|
29
30
|
failCommand,
|
|
30
31
|
failUsage
|
|
@@ -76,7 +77,7 @@ function variablesErrorMessage(error) {
|
|
|
76
77
|
case "read-error":
|
|
77
78
|
return {
|
|
78
79
|
title: "Could not read the variables JSON",
|
|
79
|
-
message: `${error.path}: ${error.cause}`
|
|
80
|
+
message: `${error.path}: ${error.cause}${unreadableJsonHint("--variables", error.path)}`
|
|
80
81
|
};
|
|
81
82
|
case "parse-error":
|
|
82
83
|
return {
|
|
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
readMediaOffsetSeconds
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-C2KEGBR3.js";
|
|
10
10
|
|
|
11
11
|
// ../core/dist/mediaLink.js
|
|
12
12
|
var MEDIA_LINK_ATTR = "data-link";
|
|
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
probeFirstFrameColour,
|
|
9
9
|
probeMediaMetadata
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-QYRMR45H.js";
|
|
11
11
|
import {
|
|
12
12
|
alphaDecoderFor
|
|
13
13
|
} from "./chunk-5S7W3TUO.js";
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
formatPreviewProxyBox,
|
|
16
16
|
hdrToSdrToneMapFilter,
|
|
17
17
|
isHeavyForPreview
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-BDZSH6P3.js";
|
|
19
19
|
import {
|
|
20
20
|
mkdirWithinProject,
|
|
21
21
|
realProjectRoot,
|
|
@@ -23,20 +23,20 @@ import {
|
|
|
23
23
|
} from "./chunk-OFQWTKPW.js";
|
|
24
24
|
import {
|
|
25
25
|
findFfBinary
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-HYRPH6LL.js";
|
|
27
27
|
import {
|
|
28
28
|
cleanAssetUrl,
|
|
29
29
|
isRemoteOrInlineUrl,
|
|
30
30
|
isUnresolvedAssetPlaceholder,
|
|
31
31
|
resolveExistingLocalAsset
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-AKMY4QVI.js";
|
|
33
33
|
import {
|
|
34
34
|
rewriteAssetPath
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-C2KEGBR3.js";
|
|
36
36
|
import {
|
|
37
37
|
decodeAuthoredAttribute,
|
|
38
38
|
scanHtmlOpeningTags
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-T5ELONXY.js";
|
|
40
40
|
|
|
41
41
|
// ../studio-server/dist/chunk-FUTDRYQK.js
|
|
42
42
|
import { statSync } from "fs";
|
|
@@ -30,7 +30,9 @@ var PROJECT_ENV_KEYS = [
|
|
|
30
30
|
"HYPERFRAMES_NO_TELEMETRY",
|
|
31
31
|
"DO_NOT_TRACK"
|
|
32
32
|
];
|
|
33
|
-
function valueOf(
|
|
33
|
+
function valueOf(rawValue) {
|
|
34
|
+
if (/^\s+#/.test(rawValue)) return "";
|
|
35
|
+
const raw = rawValue.trim();
|
|
34
36
|
const quote = raw.charAt(0);
|
|
35
37
|
if (quote === '"' || quote === "'") {
|
|
36
38
|
const end = raw.indexOf(quote, 1);
|
|
@@ -45,7 +47,7 @@ function entryOf(rawLine) {
|
|
|
45
47
|
if (line.startsWith("export ")) line = line.slice(7).trim();
|
|
46
48
|
const eq = line.indexOf("=");
|
|
47
49
|
if (eq < 1) return null;
|
|
48
|
-
return [line.slice(0, eq).trim(), valueOf(line.slice(eq + 1)
|
|
50
|
+
return [line.slice(0, eq).trim(), valueOf(line.slice(eq + 1))];
|
|
49
51
|
}
|
|
50
52
|
function openQuoteOf(trimmedLine) {
|
|
51
53
|
const eq = trimmedLine.indexOf("=");
|
|
@@ -4,6 +4,9 @@ import { dirname as __hf_dirname } from "node:path";
|
|
|
4
4
|
var require = __hf_createRequire(import.meta.url);
|
|
5
5
|
var __filename = __hf_fileURLToPath(import.meta.url);
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
|
+
import {
|
|
8
|
+
gsapCdnDist
|
|
9
|
+
} from "./chunk-MEJH7VEA.js";
|
|
7
10
|
import {
|
|
8
11
|
HF_COLOR_CURVE_LUT_SIZE,
|
|
9
12
|
HF_COLOR_GRADING_ACTIVE_EFFECT_KEYS,
|
|
@@ -22,7 +25,7 @@ import {
|
|
|
22
25
|
resolveNaturalMediaTimelineDuration,
|
|
23
26
|
resolveTimedImageDurationSeconds,
|
|
24
27
|
unitFloatToByte
|
|
25
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-LL3VMDAC.js";
|
|
26
29
|
import {
|
|
27
30
|
COLOR_GROUP_ATTR,
|
|
28
31
|
COLOR_GROUP_TAG,
|
|
@@ -36,7 +39,7 @@ import {
|
|
|
36
39
|
parseStartExpression,
|
|
37
40
|
resolveMediaStartSeconds,
|
|
38
41
|
sameInstant
|
|
39
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-C2KEGBR3.js";
|
|
40
43
|
import {
|
|
41
44
|
CANVAS_DIMENSIONS,
|
|
42
45
|
isCompositionElement,
|
|
@@ -44,7 +47,7 @@ import {
|
|
|
44
47
|
isTextElement,
|
|
45
48
|
keyframesToGsapAnimations,
|
|
46
49
|
serializeGsapAnimations
|
|
47
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-T5ELONXY.js";
|
|
48
51
|
import {
|
|
49
52
|
parseHTML
|
|
50
53
|
} from "./chunk-GWTIFRF5.js";
|
|
@@ -159,54 +162,6 @@ function getStageStyles(resolution = "portrait") {
|
|
|
159
162
|
return `position: relative; width: ${width}px; height: ${height}px; overflow: hidden; background: #000;`;
|
|
160
163
|
}
|
|
161
164
|
|
|
162
|
-
// ../core/dist/gsapCdn.js
|
|
163
|
-
var GSAP_CDN_VERSION = "3.15.0";
|
|
164
|
-
var GSAP_CDN_BASE_URL = "https://cdn.jsdelivr.net/npm";
|
|
165
|
-
var GSAP_BASE_URL_META = "hyperframes-gsap-base-url";
|
|
166
|
-
function isLoopbackHost(hostname) {
|
|
167
|
-
return hostname === "localhost" || hostname === "[::1]" || /^127\.\d+\.\d+\.\d+$/.test(hostname);
|
|
168
|
-
}
|
|
169
|
-
function normalizeGsapBaseUrl(baseUrl) {
|
|
170
|
-
const value = baseUrl?.trim();
|
|
171
|
-
if (!value)
|
|
172
|
-
return GSAP_CDN_BASE_URL;
|
|
173
|
-
if (!/^https?:\/\//i.test(value) || !URL.canParse(value) || /[?#]/.test(value)) {
|
|
174
|
-
throw new Error("GSAP base URL must be an absolute HTTP(S) URL without a query or fragment");
|
|
175
|
-
}
|
|
176
|
-
const url = new URL(value);
|
|
177
|
-
if (url.username || url.password) {
|
|
178
|
-
throw new Error("GSAP base URL must not contain credentials");
|
|
179
|
-
}
|
|
180
|
-
if (url.protocol === "http:" && !isLoopbackHost(url.hostname)) {
|
|
181
|
-
throw new Error("GSAP base URL must use HTTPS unless it points at this machine");
|
|
182
|
-
}
|
|
183
|
-
return url.href.replace(/\/+$/, "");
|
|
184
|
-
}
|
|
185
|
-
function normalizeGsapLocalRoot(root) {
|
|
186
|
-
const value = root.trim();
|
|
187
|
-
if (!/^\/(?![/\\])/.test(value) || /[?#\\]/.test(value)) {
|
|
188
|
-
throw new Error("GSAP local root must be a same-origin path such as /vendor/npm");
|
|
189
|
-
}
|
|
190
|
-
const origin = "http://local.invalid";
|
|
191
|
-
const url = new URL(value, origin);
|
|
192
|
-
const path = url.pathname.replace(/\/+$/, "");
|
|
193
|
-
if (url.origin !== origin || !path) {
|
|
194
|
-
throw new Error("GSAP local root must be a same-origin path such as /vendor/npm");
|
|
195
|
-
}
|
|
196
|
-
return path;
|
|
197
|
-
}
|
|
198
|
-
function gsapCdnDist(gsapVersion, baseUrl) {
|
|
199
|
-
const version = gsapVersion && /^\d+(\.\d+)*$/.test(gsapVersion) ? gsapVersion : GSAP_CDN_VERSION;
|
|
200
|
-
if (baseUrl?.trim().startsWith("/")) {
|
|
201
|
-
const root = normalizeGsapLocalRoot(baseUrl);
|
|
202
|
-
return `${version === GSAP_CDN_VERSION ? root : GSAP_CDN_BASE_URL}/gsap@${version}/dist/`;
|
|
203
|
-
}
|
|
204
|
-
return `${normalizeGsapBaseUrl(baseUrl)}/gsap@${version}/dist/`;
|
|
205
|
-
}
|
|
206
|
-
function motionPathPluginUrl(gsapVersion, baseUrl) {
|
|
207
|
-
return `${gsapCdnDist(gsapVersion, baseUrl)}MotionPathPlugin.min.js`;
|
|
208
|
-
}
|
|
209
|
-
|
|
210
165
|
// ../core/dist/templates/constants.js
|
|
211
166
|
var GSAP_CDN = `${gsapCdnDist()}gsap.min.js`;
|
|
212
167
|
var BASE_STYLES = `* { margin: 0; padding: 0; box-sizing: border-box; }
|
|
@@ -5944,12 +5899,6 @@ export {
|
|
|
5944
5899
|
isDistributedFps,
|
|
5945
5900
|
generateBaseHtml,
|
|
5946
5901
|
getStageStyles,
|
|
5947
|
-
GSAP_CDN_VERSION,
|
|
5948
|
-
GSAP_BASE_URL_META,
|
|
5949
|
-
normalizeGsapBaseUrl,
|
|
5950
|
-
normalizeGsapLocalRoot,
|
|
5951
|
-
gsapCdnDist,
|
|
5952
|
-
motionPathPluginUrl,
|
|
5953
5902
|
GSAP_CDN,
|
|
5954
5903
|
BASE_STYLES,
|
|
5955
5904
|
ELEMENT_BASE_STYLES,
|
|
@@ -6,31 +6,32 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
relinkSplitHalves
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-AW3XJY4S.js";
|
|
10
10
|
import {
|
|
11
11
|
EXCLUDED_TAGS,
|
|
12
12
|
ensureHfIds,
|
|
13
13
|
mintHfId,
|
|
14
14
|
walkCompositionDescendants
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-3RXZZIDQ.js";
|
|
16
16
|
import {
|
|
17
17
|
isAllowedHtmlAttribute,
|
|
18
18
|
isSafeAttributeValue,
|
|
19
19
|
sanitizeRichTextChildren
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-BDZSH6P3.js";
|
|
21
21
|
import {
|
|
22
22
|
require_dist
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-VQMHDS2V.js";
|
|
24
24
|
import {
|
|
25
|
+
SPLIT_BOUNDARY_EPSILON_S,
|
|
25
26
|
readClipTiming,
|
|
26
27
|
readMediaOffsetSeconds,
|
|
27
28
|
readPlaybackRate,
|
|
28
29
|
writeClipTiming
|
|
29
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-C2KEGBR3.js";
|
|
30
31
|
import {
|
|
31
32
|
decodedUrlPath,
|
|
32
33
|
removeElementWithGsapCascade
|
|
33
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-T5ELONXY.js";
|
|
34
35
|
import {
|
|
35
36
|
parseHTML
|
|
36
37
|
} from "./chunk-GWTIFRF5.js";
|
|
@@ -136,7 +137,7 @@ function replacementTimelineAssetId(document, element, newSrc) {
|
|
|
136
137
|
return buildTimelineAssetId(decodedUrlPath(newSrc), ids);
|
|
137
138
|
}
|
|
138
139
|
|
|
139
|
-
// ../studio-server/dist/chunk-
|
|
140
|
+
// ../studio-server/dist/chunk-V6K3WWWU.js
|
|
140
141
|
var import_postcss_selector_parser = __toESM(require_dist(), 1);
|
|
141
142
|
import postcss from "postcss";
|
|
142
143
|
function parseStyleDecls(style) {
|
|
@@ -454,7 +455,7 @@ function splitElementInHtml(source, target, splitTime, newId, fallbackTiming) {
|
|
|
454
455
|
start = fallbackTiming.start;
|
|
455
456
|
duration = fallbackTiming.duration;
|
|
456
457
|
}
|
|
457
|
-
if (duration <= 0 || splitTime
|
|
458
|
+
if (duration <= 0 || splitTime < start + SPLIT_BOUNDARY_EPSILON_S || splitTime > start + duration - SPLIT_BOUNDARY_EPSILON_S) {
|
|
458
459
|
return { html: source, matched: false, newId: null };
|
|
459
460
|
}
|
|
460
461
|
newId = nextUniqueId(document, newId);
|