hyperframes 0.8.220 → 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-7BJGQPZT.js → add-6MPLIWVP.js} +19 -15
- package/dist/{agentPromptGenerator-NFN3AYLJ.js → agentPromptGenerator-X7SQPCXZ.js} +12 -11
- package/dist/{animatedGifPrep-HC45HF7H.js → animatedGifPrep-ESOJ4FQ7.js} +12 -11
- package/dist/api.js +23 -22
- package/dist/{asset-TSP3CMU4.js → asset-Y735VQV6.js} +2 -2
- package/dist/{assetCataloger-KIN2UKI7.js → assetCataloger-AOJAUEZW.js} +13 -12
- package/dist/{audio-NEJOZZXG.js → audio-VMMCGPOV.js} +22 -20
- package/dist/{auth-7EEBDTBK.js → auth-BD5NHYRA.js} +1 -1
- package/dist/{autoUpdate-67ZMQDED.js → autoUpdate-VTMNHOAJ.js} +2 -2
- package/dist/{backgroundChecks-YN424YG5.js → backgroundChecks-SUDYQZSW.js} +3 -3
- package/dist/backgroundChecksWorker.js +3 -3
- package/dist/{batchRender-I2GRQUPY.js → batchRender-4NR7RMT7.js} +11 -8
- package/dist/{beats-VVY6JZEU.js → beats-PKEHQHBY.js} +53 -21
- package/dist/{benchmark-BJJVW6RH.js → benchmark-K55DDFHG.js} +12 -11
- package/dist/{browser-IOP3IU24.js → browser-G2WFWJJ3.js} +3 -3
- package/dist/{bundleWithLocalizedFonts-TLEZEZXN.js → bundleWithLocalizedFonts-MNG2UVH3.js} +2 -2
- package/dist/{capture-4Z3KBJNP.js → capture-24PIC3TZ.js} +67 -25
- package/dist/{capture-HVIWNBQA.js → capture-U3EEAPI6.js} +3 -3
- package/dist/{captureCompositionFrame-J3OOHGC2.js → captureCompositionFrame-KL4V6ORD.js} +18 -17
- package/dist/{catalog-G65QCBXG.js → catalog-J3BU4TFW.js} +17 -15
- package/dist/{catch-up-VHTDAQYM.js → catch-up-LDGNMEGL.js} +4 -4
- package/dist/{check-W7TCUAXY.js → check-J6HG6EKE.js} +48 -46
- package/dist/{checkAudio-AV7R24FD.js → checkAudio-MAX7JUYG.js} +17 -16
- package/dist/{checkBrowser-QTMNRNPF.js → checkBrowser-3W74WJ26.js} +44 -38
- package/dist/{chunk-KGM6VQ6D.js → chunk-3RXZZIDQ.js} +5 -5
- package/dist/{chunk-6YIBMA6Y.js → chunk-42Q3VX34.js} +9 -9
- package/dist/{chunk-6MHKL2TB.js → chunk-4VEXJTUT.js} +3 -3
- package/dist/{chunk-NSKIGECI.js → chunk-52VXA3SC.js} +1 -1
- package/dist/{chunk-RIG7XBHW.js → chunk-537WSYHU.js} +1 -1
- package/dist/{chunk-A32ZEFZT.js → chunk-5GSEM63G.js} +12 -10
- package/dist/{chunk-SUQ77SEY.js → chunk-6CFBFWLF.js} +9 -2
- package/dist/{chunk-FGGZKCOT.js → chunk-6W3DY5BP.js} +2 -2
- package/dist/{chunk-RHEQ7RXZ.js → chunk-7D2LTSNV.js} +1 -1
- package/dist/{chunk-SW5XTDRD.js → chunk-7IH3RSSG.js} +82 -33
- package/dist/{chunk-YMKTEQIA.js → chunk-AIXH3V5A.js} +86 -51
- package/dist/{chunk-PBNWRWKA.js → chunk-AKMY4QVI.js} +2 -1
- package/dist/{chunk-NEVX7YHH.js → chunk-AN4USOFT.js} +5 -1
- package/dist/{chunk-KJ2ORDQZ.js → chunk-AOHG22HQ.js} +6 -5
- package/dist/{chunk-VZBJ5BQF.js → chunk-AW3XJY4S.js} +1 -1
- package/dist/{chunk-P3XF3ZZF.js → chunk-AXVTL7B6.js} +6 -6
- package/dist/{chunk-DWTFLQ3P.js → chunk-B2ZZYISD.js} +4 -2
- package/dist/{chunk-DA6GOIIA.js → chunk-BDZSH6P3.js} +6 -57
- package/dist/{chunk-RECS6EGQ.js → chunk-BPIY5LB3.js} +9 -8
- package/dist/{chunk-KSC4O2RY.js → chunk-C2KEGBR3.js} +53 -4
- package/dist/{chunk-PIKANFFV.js → chunk-CVY6OIKN.js} +4 -4
- package/dist/{chunk-XPV5K5MD.js → chunk-CZOC7WY7.js} +1 -1
- package/dist/{chunk-PCKWLYKA.js → chunk-D6LGD472.js} +4 -4
- package/dist/{chunk-NSJPSQZ3.js → chunk-DC26QLB7.js} +1 -1
- package/dist/{chunk-LZPNAI7P.js → chunk-DIXTEVWQ.js} +3 -3
- package/dist/{chunk-6CWSMSOC.js → chunk-DNTPNSH5.js} +3 -3
- package/dist/{chunk-OWV36OJP.js → chunk-DS372VSV.js} +2 -5
- package/dist/{chunk-O332YWQV.js → chunk-DSHFKKSZ.js} +3 -3
- package/dist/{chunk-UOIVSNPI.js → chunk-E5IIR67Q.js} +1 -1
- package/dist/{chunk-5RGVBSDS.js → chunk-EE7YWKDY.js} +3 -27
- package/dist/{chunk-XFMO3BEN.js → chunk-EGJ4UECR.js} +11 -5
- package/dist/{chunk-2MDFNL2E.js → chunk-EOUKB53E.js} +1 -1
- package/dist/{chunk-3422KMTD.js → chunk-EPQC3FGZ.js} +4 -0
- package/dist/{chunk-IZBJZBBF.js → chunk-F6QV5N3A.js} +2 -2
- package/dist/{chunk-EUZYVUUS.js → chunk-FMKI7ZLM.js} +2 -2
- package/dist/{chunk-DB6OJRZB.js → chunk-FT3CNACL.js} +5 -5
- package/dist/{chunk-5XOOBNU2.js → chunk-G2EY3MVW.js} +1 -1
- package/dist/{chunk-JIGD5ZXE.js → chunk-G675S644.js} +21 -22
- package/dist/{chunk-AUGHXWJC.js → chunk-GHEYGMKD.js} +2 -2
- package/dist/{chunk-TQ3W64VT.js → chunk-GODT7QDZ.js} +3 -3
- package/dist/{chunk-DBT7CRK4.js → chunk-GOWU3NCE.js} +1 -1
- package/dist/{chunk-SGTEKMJW.js → chunk-HOTXWVVP.js} +93 -5
- package/dist/{chunk-22U7OCYM.js → chunk-HQDHMAUI.js} +1 -1
- package/dist/{chunk-BIROA7JM.js → chunk-HYRPH6LL.js} +7 -6
- package/dist/{chunk-NYSB3CWY.js → chunk-IB7UYGXR.js} +10 -10
- package/dist/{chunk-DJWAL7AW.js → chunk-IGBOFU2Y.js} +3 -3
- package/dist/{chunk-NKNKRN7G.js → chunk-JQWITWVC.js} +2 -2
- package/dist/{chunk-ZS5PARPI.js → chunk-K5UCRKUK.js} +4 -6
- package/dist/{chunk-BASBBBNB.js → chunk-KEY2VA65.js} +1 -1
- package/dist/{chunk-RIYARQ2O.js → chunk-L37AZWB2.js} +2 -2
- package/dist/{chunk-OURH3TLX.js → chunk-L55LAERP.js} +1 -1
- package/dist/chunk-LL3VMDAC.js +5013 -0
- package/dist/chunk-MEJH7VEA.js +63 -0
- package/dist/{chunk-K7APBNPW.js → chunk-NUE44RN2.js} +1 -1
- package/dist/{chunk-VZVRF3JX.js → chunk-OAXWHPNS.js} +2 -2
- package/dist/{chunk-6A7DOGSP.js → chunk-OQLYKDL5.js} +1 -1
- package/dist/{chunk-VJGQLC2A.js → chunk-OROHGC7W.js} +8 -8
- package/dist/{chunk-6OXVMHTB.js → chunk-P5M3AXEP.js} +1 -1
- package/dist/{chunk-N4XNRHFM.js → chunk-QNW43LWB.js} +1 -1
- package/dist/{chunk-ARZGHKST.js → chunk-QOZPWIYV.js} +10 -10
- package/dist/{chunk-3F6EGZ6C.js → chunk-QYRMR45H.js} +2 -2
- package/dist/{chunk-AGFHQTZD.js → chunk-RIGSGNDQ.js} +54 -18
- package/dist/{chunk-CIUEQLWL.js → chunk-RRPO44PE.js} +5 -5
- package/dist/{chunk-YBNF5ZOC.js → chunk-SFS5BTQ3.js} +1 -1
- package/dist/{chunk-CMI2POHT.js → chunk-SKCS4SUZ.js} +4455 -4312
- package/dist/{chunk-J74ZUXVU.js → chunk-SWC3QIEH.js} +1 -1
- package/dist/{chunk-543U46OR.js → chunk-US4BCRYB.js} +5 -0
- package/dist/{chunk-D5TOH3QI.js → chunk-VJVVWYP6.js} +1 -1
- package/dist/{chunk-5SKC4G26.js → chunk-VMRQDPFL.js} +1 -1
- package/dist/{chunk-MHZB6QSC.js → chunk-VQMHDS2V.js} +123 -12
- package/dist/{chunk-IMVM6E65.js → chunk-WJYFJGYT.js} +3 -3
- package/dist/{chunk-MS2SDIPC.js → chunk-WWT6ETQA.js} +43 -43
- package/dist/chunk-WYKRGEDD.js +62 -0
- package/dist/{chunk-GLC5XHN5.js → chunk-XC3BGWCJ.js} +3 -44
- package/dist/{chunk-DEXGPHAZ.js → chunk-XHD7RKEZ.js} +2 -2
- package/dist/{chunk-RK3LW7NO.js → chunk-Y7IV5MAK.js} +2 -2
- package/dist/{chunk-2L645DAG.js → chunk-YEKJOA47.js} +1 -1
- package/dist/{chunk-RF5LOY22.js → chunk-YHL4CVTF.js} +14 -14
- package/dist/{chunk-FK5TW3IM.js → chunk-Z5VQBRU2.js} +1 -1
- package/dist/{chunk-24F7TOW2.js → chunk-ZAJQFY5Q.js} +126 -53
- package/dist/{chunk-X2YBRPCM.js → chunk-ZBNK6X5O.js} +5 -5
- package/dist/{chunk-NQP44XMF.js → chunk-ZLXWRYOO.js} +3 -3
- package/dist/{chunk-WQYLRTVT.js → chunk-ZPTNLDOB.js} +2 -2
- package/dist/{clean-AYZ2RAMN.js → clean-K6IM3LC4.js} +24 -23
- package/dist/cli.js +62 -60
- package/dist/{cloud-A53ZNOO6.js → cloud-OV7EA4BJ.js} +4 -4
- package/dist/{cloudrun-USB736UD.js → cloudrun-ZEMODIOP.js} +10 -9
- package/dist/commands/layout-audit.browser.js +19 -3
- package/dist/commands/motion-signature.browser.js +18 -9
- package/dist/{compare-42CWJXBR.js → compare-MJZ3D3HA.js} +37 -35
- package/dist/{compiler-SV2WYWTI.js → compiler-6KKETX77.js} +8 -8
- package/dist/{component-7JC7NQGM.js → component-EVXMYIP3.js} +3 -3
- package/dist/{compositions-6F6743GP.js → compositions-PZ7FQ7WN.js} +16 -15
- package/dist/{delete-7TRRZI5M.js → delete-DL3XA4QV.js} +2 -2
- package/dist/{deploy-6SSC2FBD.js → deploy-VEYP3IP5.js} +1 -1
- package/dist/{deterministicFonts-2ISM3LMW.js → deterministicFonts-LV2JMOJL.js} +2 -2
- package/dist/{dist-KP2GVAQU.js → dist-M77KFAYW.js} +7 -6
- package/dist/{dist-XXBCSQYF.js → dist-SHMQOKMF.js} +6 -6
- package/dist/docs/motion-blur.md +28 -0
- package/dist/{docs-6EM6FDNI.js → docs-VAF5NM5B.js} +4 -0
- package/dist/{doctor-XEG3GZAA.js → doctor-JM2WHH7Y.js} +16 -15
- package/dist/{dotEnv-BGFXSQOA.js → dotEnv-33RDHX7P.js} +1 -1
- package/dist/{events-I7F24HFX.js → events-GW5I5RCG.js} +2 -2
- package/dist/{events-33HQE43K.js → events-S7KVBRSL.js} +3 -3
- package/dist/{feedback-XDTUBZX3.js → feedback-7OR5FVTX.js} +11 -10
- package/dist/{ffmpeg-ABXU2TYH.js → ffmpeg-A7CSIX3U.js} +12 -11
- package/dist/{figma-4JKNWEKN.js → figma-444HKFX5.js} +3 -3
- package/dist/fontLocalizeCli.js +16 -15
- package/dist/{get-EX2INNLN.js → get-6UTF3225.js} +2 -2
- package/dist/{gpuPolicy-7TSXQHK4.js → gpuPolicy-ORPUS5Z2.js} +12 -11
- package/dist/{grade-compare-TLUTRM2K.js → grade-compare-UCTAYN3B.js} +38 -36
- package/dist/{heifImagePrep-UOBBQFA2.js → heifImagePrep-ED6V6RFN.js} +13 -12
- package/dist/{help-BB4FPW2K.js → help-HZR32XWP.js} +1 -1
- package/dist/{history-JNETCPLB.js → history-TQ56MZIA.js} +18 -9
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +69 -69
- package/dist/hyperframes-player.global.js +1 -1
- package/dist/hyperframes-slideshow.global.js +8 -8
- package/dist/{info-7LBANHQG.js → info-RPIIP7RN.js} +11 -10
- package/dist/{init-GZ36UP5K.js → init-ONAWKHFW.js} +34 -32
- package/dist/{inspect-OD54TEQN.js → inspect-A75PYOWJ.js} +38 -36
- package/dist/{installer-4KJ7T3KB.js → installer-ISMCCFBZ.js} +8 -7
- package/dist/{keyframes-KLBNYGYC.js → keyframes-2I75DP3O.js} +7 -7
- package/dist/{lambda-554LSIHM.js → lambda-4QIHGPGJ.js} +17 -16
- package/dist/{layout-EQAJKTIW.js → layout-GW7WE7RT.js} +38 -36
- package/dist/{lint-ZMSIAVMI.js → lint-OWP72OZQ.js} +12 -12
- package/dist/{lintProject-I4XPWIQZ.js → lintProject-XYQ5L7RQ.js} +6 -6
- package/dist/{list-KUZLCZUK.js → list-WVK7ZCPW.js} +2 -2
- package/dist/{localPage-MQJZAR7Z.js → localPage-IQWHN7BH.js} +12 -11
- package/dist/{login-644VKQTJ.js → login-Q5CNHYWU.js} +4 -4
- package/dist/{manager-3C33QHJB.js → manager-JCYVNEWH.js} +13 -12
- package/dist/{media-treatment-XYS2O3JD.js → media-treatment-M5IUP7H4.js} +21 -20
- package/dist/{models-KOTMJX4Z.js → models-CFXKDYZ3.js} +16 -15
- package/dist/{motionShot-YOSDJ26I.js → motionShot-CWUEI4ZM.js} +21 -20
- package/dist/{normalize-audio-FNT6Y4MC.js → normalize-audio-FASY33LR.js} +15 -14
- package/dist/{open-COIGEQCX.js → open-KOVVESYN.js} +16 -14
- package/dist/{parakeetRunner-BBXLGDZW.js → parakeetRunner-E4IP5SL4.js} +18 -17
- package/dist/{pipeline-23GAJEQO.js → pipeline-C6EZVV43.js} +15 -14
- package/dist/{play-GOCWJH7Z.js → play-MZJI6SMH.js} +28 -26
- package/dist/{preflight-7IWI3INL.js → preflight-K4SPUWXP.js} +13 -12
- package/dist/{present-VN2RAATE.js → present-7L7ZTG7F.js} +24 -23
- package/dist/{preview-MD7W5T56.js → preview-QGDVMR3X.js} +29 -26
- package/dist/{producer-IRENEI2Y.js → producer-EJPNNY3E.js} +1 -1
- package/dist/{projectConfig-3IXWY6VF.js → projectConfig-EEF6OPXO.js} +11 -9
- package/dist/{publication-MCDU4VIJ.js → publication-5KF44AKQ.js} +6 -5
- package/dist/{publish-5477WXAK.js → publish-SSKWZ5TE.js} +17 -15
- package/dist/{remove-background-XYO5ENFU.js → remove-background-PCL6I5SZ.js} +16 -15
- package/dist/{render-34GMNN2B.js → render-DH4UA7KW.js} +10 -9
- package/dist/{render-54SCVHMS.js → render-DRWQ6F37.js} +22 -21
- package/dist/{render-L66MXLV2.js → render-UPRWOGLS.js} +158 -43
- package/dist/{render-batch-DOCRB7KQ.js → render-batch-EBW5WHB5.js} +10 -9
- package/dist/renderSetupWorker.js +6 -6
- package/dist/{resolver-Q5XTMECS.js → resolver-ZSZXNRFP.js} +9 -7
- package/dist/{screenshotCapture-U3IYWTDB.js → screenshotCapture-4THETOMD.js} +2 -1
- package/dist/{sherpa-E7C2ZGKD.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/media-use/scripts/lib/adopt.mjs +11 -10
- package/dist/skills/media-use/scripts/lib/adopt.test.mjs +22 -0
- package/dist/{skills-DDZCYTVS.js → skills-ZREHX3TU.js} +5 -5
- package/dist/{skillsUpdateCheck-4XX7YYZA.js → skillsUpdateCheck-PPJ5NGAL.js} +3 -3
- package/dist/{slideshow-SJGK4RQS.js → slideshow-ARJR22W4.js} +1 -1
- package/dist/{snapshot-PTLZ25S3.js → snapshot-KPFLZNEL.js} +87 -52
- package/dist/{src-RDWYM4KF.js → src-EPOGDJTT.js} +11 -10
- package/dist/{src-KT325UQS.js → src-QRV3466B.js} +21 -14
- package/dist/{staticProjectServer-JCGTNF4E.js → staticProjectServer-ERKLMZVM.js} +26 -24
- package/dist/studio/assets/{hyperframes-player-CC1Ue2mg.js → hyperframes-player-Dka6e1BG.js} +1 -1
- package/dist/studio/assets/{index-BgjuGqZk.js → index-C8VIUiGz.js} +117 -117
- package/dist/studio/assets/{index-hc5Ru1gB.js → index-CVPNbydK.js} +1 -1
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-GTN767PW.js → studio-api-7WFZIIPL.js} +21 -16
- package/dist/{studioSelectionClient-D6VMGTKQ.js → studioSelectionClient-FA6XPVIL.js} +1 -1
- package/dist/{studioServer-X6O4WB7E.js → studioServer-3XZTLI26.js} +79 -121
- package/dist/{telemetry-OY2PKIWO.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-IZZRAXKP.js → timeline-EDCDO2ZR.js} +28 -26
- package/dist/{tokens-JHIYKROF.js → tokens-2ZFLFO3K.js} +2 -2
- package/dist/{transcribe-2MPZHRG5.js → transcribe-3WMH62HH.js} +16 -15
- package/dist/{transcribe-WJ2DIE3W.js → transcribe-Y2LPBT7I.js} +22 -21
- package/dist/{updateCheck-6XMEFB74.js → updateCheck-5LFZGC3P.js} +2 -2
- package/dist/{upgrade-MSNQIWR7.js → upgrade-X7QVSEKP.js} +2 -2
- package/dist/{urlDownloader-CD6NVJE5.js → urlDownloader-TYD6ROKL.js} +11 -10
- package/dist/{validate-7L5LJFTK.js → validate-26KQ5VX7.js} +31 -30
- package/dist/{video-HFIDOIQI.js → video-BPKLZIJK.js} +13 -12
- package/dist/warmCheck.js +48 -46
- package/package.json +1 -1
- package/dist/chunk-2Q7XV4F6.js +0 -5061
- /package/dist/{chunk-NHA4NRBE.js → chunk-T5ELONXY.js} +0 -0
|
@@ -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);
|
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
|
|
12
12
|
// ../parsers/dist/compositionContract.js
|
|
13
13
|
var COMPOSITION_CONTRACT_VERSION = 1;
|
|
14
|
+
var SPLIT_BOUNDARY_EPSILON_S = 0.03;
|
|
14
15
|
var COMPOSITION_ATTRIBUTES = Object.freeze({
|
|
15
16
|
start: "data-start",
|
|
16
17
|
duration: "data-duration",
|
|
@@ -410,8 +411,9 @@ function decodeCssEscapes(text) {
|
|
|
410
411
|
}
|
|
411
412
|
var CSS_URL_RE = /\burl\(\s*(["']?)([^)"'\s](?:[^)"']*[^)"'\s])?)\1\s*\)/g;
|
|
412
413
|
var PATH_ATTRS = ["src", "href"];
|
|
414
|
+
var URL_SCHEME_OF_TWO_OR_MORE_CHARS_RE = /^[a-z][a-z0-9+.-]+:/i;
|
|
413
415
|
function isNonRelativeUrl(val) {
|
|
414
|
-
return !val || val.startsWith("http://") || val.startsWith("https://") || val.startsWith("//") || val.startsWith("data:") || val.startsWith("#") || val.startsWith("/");
|
|
416
|
+
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);
|
|
415
417
|
}
|
|
416
418
|
var LEADING_PARENT_SEGMENT_RE = /^\.\.(?:[\\/]|$)/;
|
|
417
419
|
function isPathInside(childPath, parentPath) {
|
|
@@ -421,6 +423,44 @@ function isPathInside(childPath, parentPath) {
|
|
|
421
423
|
const rel = relative(absParent, absChild);
|
|
422
424
|
return rel !== "" && !LEADING_PARENT_SEGMENT_RE.test(rel) && !isAbsolute(rel);
|
|
423
425
|
}
|
|
426
|
+
function skipSrcsetDescriptors(srcset, position) {
|
|
427
|
+
let inParens = false;
|
|
428
|
+
while (position < srcset.length) {
|
|
429
|
+
const char = srcset.charAt(position++);
|
|
430
|
+
if (char === "(") inParens = true;
|
|
431
|
+
else if (char === ")") inParens = false;
|
|
432
|
+
else if (char === "," && !inParens) break;
|
|
433
|
+
}
|
|
434
|
+
return position;
|
|
435
|
+
}
|
|
436
|
+
function readSrcsetUrl(srcset, position) {
|
|
437
|
+
while (position < srcset.length && /[ \t\n\r\f,]/.test(srcset.charAt(position))) position++;
|
|
438
|
+
const start = position;
|
|
439
|
+
while (position < srcset.length && !/[ \t\n\r\f]/.test(srcset.charAt(position))) position++;
|
|
440
|
+
let end = position;
|
|
441
|
+
while (end > start && srcset.charAt(end - 1) === ",") end--;
|
|
442
|
+
return { start, end, next: position };
|
|
443
|
+
}
|
|
444
|
+
function rewriteSrcsetUrls(srcset, rewriteUrl) {
|
|
445
|
+
const parts = [];
|
|
446
|
+
let position = 0;
|
|
447
|
+
let written = 0;
|
|
448
|
+
while (position < srcset.length) {
|
|
449
|
+
const { start, end, next } = readSrcsetUrl(srcset, position);
|
|
450
|
+
position = next;
|
|
451
|
+
if (end > start) {
|
|
452
|
+
const url = srcset.slice(start, end);
|
|
453
|
+
const rewritten = rewriteUrl(url);
|
|
454
|
+
if (rewritten !== url) {
|
|
455
|
+
parts.push(srcset.slice(written, start), rewritten);
|
|
456
|
+
written = end;
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
if (end < position) continue;
|
|
460
|
+
position = skipSrcsetDescriptors(srcset, position);
|
|
461
|
+
}
|
|
462
|
+
return parts.length > 0 ? parts.join("") + srcset.slice(written) : srcset;
|
|
463
|
+
}
|
|
424
464
|
var { join, resolve: resolve2, dirname } = posix;
|
|
425
465
|
var isAbsoluteOrSpecial = isNonRelativeUrl;
|
|
426
466
|
function needsRewrite(val) {
|
|
@@ -442,11 +482,18 @@ function rewriteAssetPaths(elements, compSrcPath, getAttr, setAttr, assetExists)
|
|
|
442
482
|
for (const el of elements) {
|
|
443
483
|
for (const attr of PATH_ATTRS) {
|
|
444
484
|
const val = (getAttr(el, attr) || "").trim();
|
|
445
|
-
const
|
|
446
|
-
if (
|
|
447
|
-
setAttr(el, attr,
|
|
485
|
+
const rewritten2 = rewriteAssetPath(compSrcPath, val, assetExists);
|
|
486
|
+
if (rewritten2 !== val) {
|
|
487
|
+
setAttr(el, attr, rewritten2);
|
|
448
488
|
}
|
|
449
489
|
}
|
|
490
|
+
const srcset = getAttr(el, "srcset");
|
|
491
|
+
if (!srcset) continue;
|
|
492
|
+
const rewritten = rewriteSrcsetUrls(
|
|
493
|
+
srcset,
|
|
494
|
+
(url) => rewriteAssetPath(compSrcPath, url, assetExists)
|
|
495
|
+
);
|
|
496
|
+
if (rewritten !== srcset) setAttr(el, "srcset", rewritten);
|
|
450
497
|
}
|
|
451
498
|
}
|
|
452
499
|
function rewriteInlineStyleAssetUrls(elements, compSrcPath, getStyle, setStyle, assetExists) {
|
|
@@ -1477,6 +1524,7 @@ function extractMediaSrcMutations(script) {
|
|
|
1477
1524
|
|
|
1478
1525
|
export {
|
|
1479
1526
|
COMPOSITION_CONTRACT_VERSION,
|
|
1527
|
+
SPLIT_BOUNDARY_EPSILON_S,
|
|
1480
1528
|
COMPOSITION_ATTRIBUTES,
|
|
1481
1529
|
CANONICAL_AUTHORED_TIMING_ATTRIBUTES,
|
|
1482
1530
|
DERIVED_TIMING_ATTRIBUTES,
|
|
@@ -1504,6 +1552,7 @@ export {
|
|
|
1504
1552
|
PATH_ATTRS,
|
|
1505
1553
|
isNonRelativeUrl,
|
|
1506
1554
|
isPathInside,
|
|
1555
|
+
rewriteSrcsetUrls,
|
|
1507
1556
|
rewriteAssetPath,
|
|
1508
1557
|
rewriteAssetPaths,
|
|
1509
1558
|
rewriteInlineStyleAssetUrls,
|
|
@@ -15,16 +15,16 @@ import {
|
|
|
15
15
|
findFFmpeg,
|
|
16
16
|
findFFprobe,
|
|
17
17
|
getFFmpegInstallHint
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-5GSEM63G.js";
|
|
19
19
|
import {
|
|
20
20
|
registerBrowserSessionCleanup
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-L37AZWB2.js";
|
|
22
22
|
import {
|
|
23
23
|
DEFAULT_VP9_CPU_USED,
|
|
24
24
|
SDR_RGB_TO_BT709_FILTER,
|
|
25
25
|
SDR_RGB_TO_TAGGED_BT709_FILTER,
|
|
26
26
|
renderProvenanceArgs
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-AIXH3V5A.js";
|
|
28
28
|
import {
|
|
29
29
|
runCancellableProcess
|
|
30
30
|
} from "./chunk-X6JUUQCM.js";
|
|
@@ -391,7 +391,7 @@ async function decoderTransposesDimensions(inputPath) {
|
|
|
391
391
|
}
|
|
392
392
|
async function probeMedia(inputPath) {
|
|
393
393
|
const isImage = inferInputKind(inputPath) === "image";
|
|
394
|
-
const engine = await import("./src-
|
|
394
|
+
const engine = await import("./src-EPOGDJTT.js");
|
|
395
395
|
const meta = await engine.extractMediaMetadata(inputPath);
|
|
396
396
|
if (isImage) {
|
|
397
397
|
return { width: meta.width, height: meta.height, fps: 0, frameCount: 1 };
|
|
@@ -6,10 +6,10 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
probeAudio
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-SWC3QIEH.js";
|
|
10
10
|
import {
|
|
11
11
|
stoppedByCancelSignal
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-E5IIR67Q.js";
|
|
13
13
|
import {
|
|
14
14
|
DEFAULT_MODEL,
|
|
15
15
|
ensureModel,
|
|
@@ -17,12 +17,12 @@ import {
|
|
|
17
17
|
hasFFmpeg,
|
|
18
18
|
pinnedWhisperModel,
|
|
19
19
|
sha256File
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-KEY2VA65.js";
|
|
21
21
|
import {
|
|
22
22
|
findFFmpeg,
|
|
23
23
|
findFFprobe,
|
|
24
24
|
getFFmpegInstallHint
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-5GSEM63G.js";
|
|
26
26
|
import {
|
|
27
27
|
findWavChunk
|
|
28
28
|
} from "./chunk-UOFAE5RF.js";
|
|
@@ -21,13 +21,13 @@ import {
|
|
|
21
21
|
emitWords,
|
|
22
22
|
getPreparedWavDurationSeconds,
|
|
23
23
|
prepareWav
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-D6LGD472.js";
|
|
25
25
|
import {
|
|
26
26
|
stoppedByCancelSignal
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-E5IIR67Q.js";
|
|
28
28
|
import {
|
|
29
29
|
verifies
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-KEY2VA65.js";
|
|
31
31
|
import {
|
|
32
32
|
PARAKEET_MODEL_LABEL,
|
|
33
33
|
SHERPA_ERROR_PREFIX,
|
|
@@ -6,17 +6,17 @@ 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-DC26QLB7.js";
|
|
10
10
|
import {
|
|
11
11
|
errorBox
|
|
12
12
|
} from "./chunk-5ZBMHUY2.js";
|
|
13
13
|
import {
|
|
14
14
|
DEFAULT_CONFIG,
|
|
15
15
|
resolvePageNavigationTimeout
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-AIXH3V5A.js";
|
|
17
17
|
import {
|
|
18
18
|
parseFps
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-BDZSH6P3.js";
|
|
20
20
|
import {
|
|
21
21
|
failUsage
|
|
22
22
|
} from "./chunk-DP5LF7GF.js";
|
|
@@ -16,6 +16,7 @@ import {
|
|
|
16
16
|
|
|
17
17
|
// src/utils/reject-extra-positionals.ts
|
|
18
18
|
var ACCEPTS_EXTRA_POSITIONALS = /* @__PURE__ */ new Set([
|
|
19
|
+
"add",
|
|
19
20
|
"audio",
|
|
20
21
|
"compare",
|
|
21
22
|
"figma asset",
|
|
@@ -23,9 +24,6 @@ var ACCEPTS_EXTRA_POSITIONALS = /* @__PURE__ */ new Set([
|
|
|
23
24
|
"timeline set"
|
|
24
25
|
]);
|
|
25
26
|
var JOINS_EXTRA_POSITIONALS = /* @__PURE__ */ new Set(["catalog", "tts"]);
|
|
26
|
-
var EXTRA_POSITIONAL_HINTS = {
|
|
27
|
-
add: "Run add once per item, or pass a single tag to install every item tagged with it."
|
|
28
|
-
};
|
|
29
27
|
function wantsJson(value) {
|
|
30
28
|
return value === true || typeof value === "string" && value !== "false" && value !== "0";
|
|
31
29
|
}
|
|
@@ -63,8 +61,7 @@ function resolveExtraPositionals(cmd, path, parsed) {
|
|
|
63
61
|
}
|
|
64
62
|
const plural = extra.length === 1 ? "" : "s";
|
|
65
63
|
const message = `Unexpected extra argument${plural} for hyperframes ${path}: ${extra.join(", ")}
|
|
66
|
-
Usage: ${usageLine(path, args)}
|
|
67
|
-
${EXTRA_POSITIONAL_HINTS[path]}` : "");
|
|
64
|
+
Usage: ${usageLine(path, args)}`;
|
|
68
65
|
if (wantsJson(parsed?.json)) console.log(JSON.stringify(jsonFailure("usage_error", message)));
|
|
69
66
|
else console.error(message);
|
|
70
67
|
throw new CliUsageError(
|
|
@@ -6,14 +6,14 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
loadProducer
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-OQLYKDL5.js";
|
|
10
10
|
import {
|
|
11
11
|
resolveProjectRelativeSrc
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-AKMY4QVI.js";
|
|
13
13
|
|
|
14
14
|
// src/utils/projectMedia.ts
|
|
15
15
|
async function collectProjectMedia(projectDir) {
|
|
16
|
-
const { bundleToSingleHtml } = await import("./compiler-
|
|
16
|
+
const { bundleToSingleHtml } = await import("./compiler-6KKETX77.js");
|
|
17
17
|
const html = await bundleToSingleHtml(projectDir);
|
|
18
18
|
const producer = await loadProducer();
|
|
19
19
|
if (!producer.collectRenderMedia) throw new Error("Render media collector unavailable");
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
} from "./chunk-TSYRN646.js";
|
|
12
12
|
import {
|
|
13
13
|
fetchLocalPageUrl
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-EOUKB53E.js";
|
|
15
15
|
import {
|
|
16
16
|
ensureCaptureDirSync,
|
|
17
17
|
writeCaptureFileSync
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
} from "./chunk-AWDFDFI3.js";
|
|
26
26
|
import {
|
|
27
27
|
isBlockedNetworkHost
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-AIXH3V5A.js";
|
|
29
29
|
import {
|
|
30
30
|
DOMParser,
|
|
31
31
|
parseHTML
|
|
@@ -44,32 +44,8 @@ import { request as httpsRequest } from "https";
|
|
|
44
44
|
import { connect as tlsConnect } from "tls";
|
|
45
45
|
var DNS_TIMEOUT_MS = 1e4;
|
|
46
46
|
var CARES_TIMEOUT_MS = 5e3;
|
|
47
|
-
function ipv4Number(address) {
|
|
48
|
-
return address.split(".").reduce((value, octet) => value * 256 + Number(octet), 0);
|
|
49
|
-
}
|
|
50
|
-
var NON_PUBLIC_IPV4 = [
|
|
51
|
-
["0.0.0.0", 8],
|
|
52
|
-
["10.0.0.0", 8],
|
|
53
|
-
["100.64.0.0", 10],
|
|
54
|
-
["127.0.0.0", 8],
|
|
55
|
-
["169.254.0.0", 16],
|
|
56
|
-
["172.16.0.0", 12],
|
|
57
|
-
["192.0.0.0", 16],
|
|
58
|
-
["192.88.99.0", 24],
|
|
59
|
-
["192.168.0.0", 16],
|
|
60
|
-
["198.18.0.0", 15],
|
|
61
|
-
["198.51.100.0", 24],
|
|
62
|
-
["203.0.113.0", 24],
|
|
63
|
-
["224.0.0.0", 3]
|
|
64
|
-
];
|
|
65
|
-
var NON_PUBLIC_RANGES = NON_PUBLIC_IPV4.map(([network, prefix]) => ({
|
|
66
|
-
start: ipv4Number(network),
|
|
67
|
-
end: ipv4Number(network) + 2 ** (32 - prefix)
|
|
68
|
-
}));
|
|
69
47
|
function isPublicIPv4(address) {
|
|
70
|
-
|
|
71
|
-
const value = ipv4Number(address);
|
|
72
|
-
return !NON_PUBLIC_RANGES.some(({ start, end }) => value >= start && value < end);
|
|
48
|
+
return isIP(address) === 4 && !isBlockedNetworkHost(address);
|
|
73
49
|
}
|
|
74
50
|
function assertPublicHostname(hostname) {
|
|
75
51
|
const host = hostname.toLowerCase().replace(/\.$/, "");
|
|
@@ -8,14 +8,14 @@ var __dirname = __hf_dirname(__filename);
|
|
|
8
8
|
// src/utils/jsonFlag.ts
|
|
9
9
|
import { readFileSync } from "fs";
|
|
10
10
|
import { resolve } from "path";
|
|
11
|
-
function
|
|
11
|
+
function decodeJsonText(bytes) {
|
|
12
12
|
if (bytes[0] === 255 && bytes[1] === 254)
|
|
13
13
|
return bytes.toString("utf16le").replace(/^\uFEFF/, "");
|
|
14
14
|
return bytes.toString("utf8").replace(/^\uFEFF/, "");
|
|
15
15
|
}
|
|
16
16
|
var defaultIO = {
|
|
17
|
-
readFile: (path) =>
|
|
18
|
-
readStdin: () =>
|
|
17
|
+
readFile: (path) => decodeJsonText(readFileSync(resolve(path))),
|
|
18
|
+
readStdin: () => decodeJsonText(readFileSync(0))
|
|
19
19
|
};
|
|
20
20
|
var JsonFlagReadError = class extends Error {
|
|
21
21
|
constructor(path, cause) {
|
|
@@ -36,7 +36,10 @@ function isJsonScalar(text) {
|
|
|
36
36
|
}
|
|
37
37
|
var errorText = (error) => error instanceof Error ? error.message : String(error);
|
|
38
38
|
function readJsonFlagText(value, partialIo = {}) {
|
|
39
|
-
const io = {
|
|
39
|
+
const io = {
|
|
40
|
+
readFile: partialIo.readFile ?? defaultIO.readFile,
|
|
41
|
+
readStdin: partialIo.readStdin ?? defaultIO.readStdin
|
|
42
|
+
};
|
|
40
43
|
const trimmed = value.trim();
|
|
41
44
|
if (trimmed.startsWith("{") || trimmed.startsWith("[") || isJsonScalar(trimmed)) return value;
|
|
42
45
|
const source = trimmed === "-" ? "stdin" : value;
|
|
@@ -47,13 +50,14 @@ function readJsonFlagText(value, partialIo = {}) {
|
|
|
47
50
|
}
|
|
48
51
|
}
|
|
49
52
|
var inlineJsonHint = (flag) => `PowerShell strips the quotes from inline JSON; pass a file (${flag} payload.json) or pipe it (${flag} -)`;
|
|
53
|
+
var unreadableJsonHint = (flag, value) => value.includes(":") && !/^\s*[A-Za-z]:[\\/]/.test(value) ? ` (${inlineJsonHint(flag)})` : "";
|
|
50
54
|
function readJsonFlag(flag, value, io) {
|
|
51
55
|
let text;
|
|
52
56
|
try {
|
|
53
57
|
text = readJsonFlagText(value, io);
|
|
54
58
|
} catch (error) {
|
|
55
59
|
if (!(error instanceof JsonFlagReadError)) throw error;
|
|
56
|
-
throw new Error(`Could not read ${flag}: ${error.message}`);
|
|
60
|
+
throw new Error(`Could not read ${flag}: ${error.message}${unreadableJsonHint(flag, value)}`);
|
|
57
61
|
}
|
|
58
62
|
try {
|
|
59
63
|
return JSON.parse(text);
|
|
@@ -64,8 +68,10 @@ function readJsonFlag(flag, value, io) {
|
|
|
64
68
|
}
|
|
65
69
|
|
|
66
70
|
export {
|
|
71
|
+
decodeJsonText,
|
|
67
72
|
JsonFlagReadError,
|
|
68
73
|
readJsonFlagText,
|
|
69
74
|
inlineJsonHint,
|
|
75
|
+
unreadableJsonHint,
|
|
70
76
|
readJsonFlag
|
|
71
77
|
};
|
|
@@ -31,6 +31,9 @@ function parseSlideshowManifest(html) {
|
|
|
31
31
|
function isOptionalNumberArray(v) {
|
|
32
32
|
return v === void 0 || Array.isArray(v) && v.every((n) => typeof n === "number");
|
|
33
33
|
}
|
|
34
|
+
function isOptionalFiniteNumber(v) {
|
|
35
|
+
return v === void 0 || typeof v === "number" && Number.isFinite(v);
|
|
36
|
+
}
|
|
34
37
|
function isOptionalBoolean(v) {
|
|
35
38
|
return v === void 0 || typeof v === "boolean";
|
|
36
39
|
}
|
|
@@ -49,6 +52,7 @@ function isSlideRef(v) {
|
|
|
49
52
|
if (!isRecord(v)) return false;
|
|
50
53
|
const r = v;
|
|
51
54
|
if (typeof r["sceneId"] !== "string") return false;
|
|
55
|
+
if (![r["startTime"], r["endTime"]].every(isOptionalFiniteNumber)) return false;
|
|
52
56
|
if (!isOptionalNumberArray(r["fragments"])) return false;
|
|
53
57
|
if (r["hotspots"] !== void 0 && (!Array.isArray(r["hotspots"]) || !r["hotspots"].every(isSlideHotspot)))
|
|
54
58
|
return false;
|
|
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
resolveConfig,
|
|
9
9
|
usesSoftwareWebGpu
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-AIXH3V5A.js";
|
|
11
11
|
|
|
12
12
|
// src/browser/gpuPolicy.ts
|
|
13
13
|
function resolveLocalBrowserGpuMode(browserGpuArg, envMode = process.env.PRODUCER_BROWSER_GPU_MODE) {
|
|
@@ -17,7 +17,7 @@ function resolveLocalBrowserGpuMode(browserGpuArg, envMode = process.env.PRODUCE
|
|
|
17
17
|
return "auto";
|
|
18
18
|
}
|
|
19
19
|
async function resolveCaptureBrowserGpuMode(requestedMode, chromePath, probeLifecycle) {
|
|
20
|
-
const { resolveBrowserGpuMode } = await import("./src-
|
|
20
|
+
const { resolveBrowserGpuMode } = await import("./src-EPOGDJTT.js");
|
|
21
21
|
return resolveBrowserGpuMode(requestedMode, { chromePath, probeLifecycle });
|
|
22
22
|
}
|
|
23
23
|
function resolveLocalWebGpu(browserGpuMode, requiresWebGpu) {
|
|
@@ -13,10 +13,10 @@ import {
|
|
|
13
13
|
} from "./chunk-XQ26I3PL.js";
|
|
14
14
|
import {
|
|
15
15
|
createProjectConfig
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-P5M3AXEP.js";
|
|
17
17
|
import {
|
|
18
18
|
isHyperframesProject
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-BDZSH6P3.js";
|
|
20
20
|
|
|
21
21
|
// src/utils/desktopApp.ts
|
|
22
22
|
import { spawn, spawnSync } from "child_process";
|
|
@@ -6,26 +6,26 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
parakeetRunner
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-537WSYHU.js";
|
|
10
10
|
import {
|
|
11
11
|
DecodeCancelled,
|
|
12
12
|
prepareSherpaWav,
|
|
13
13
|
sherpaUnsupportedReason,
|
|
14
14
|
transcribeWithSherpa
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-DIXTEVWQ.js";
|
|
16
16
|
import {
|
|
17
17
|
initialModelForLanguage,
|
|
18
18
|
transcribe
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-D6LGD472.js";
|
|
20
20
|
import {
|
|
21
21
|
createRenderCancellationScope,
|
|
22
22
|
stoppedByCancelSignal
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-E5IIR67Q.js";
|
|
24
24
|
import {
|
|
25
25
|
DEFAULT_MODEL,
|
|
26
26
|
findWhisper,
|
|
27
27
|
isWhisperUnavailable
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-KEY2VA65.js";
|
|
29
29
|
import {
|
|
30
30
|
formatSrt,
|
|
31
31
|
formatVtt,
|