hyperframes 0.9.13 → 0.9.14
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-PXF5OGLI.js → add-JNKCTPWJ.js} +16 -16
- package/dist/{agentPromptGenerator-DWNK722M.js → agentPromptGenerator-DSF7AEVE.js} +8 -8
- package/dist/{animatedGifPrep-FFBCFFIY.js → animatedGifPrep-BIEUMGB3.js} +8 -8
- package/dist/api.js +45 -23
- package/dist/{asset-FZVMLDSY.js → asset-V6JAJRCF.js} +2 -2
- package/dist/{assetCataloger-FXBZK55R.js → assetCataloger-SCLH2WAC.js} +9 -9
- package/dist/{audio-QYNPBNZQ.js → audio-JX76VDCY.js} +15 -15
- package/dist/{auth-2FBS4QC4.js → auth-TRE4ASYT.js} +2 -2
- package/dist/{autoUpdate-VFGRGQTO.js → autoUpdate-D5UUCIOR.js} +2 -2
- package/dist/{avatars-UVZFK2JR.js → avatars-26EUVWXR.js} +12 -12
- package/dist/{backgroundChecks-FN53YXTW.js → backgroundChecks-RM5GWZIW.js} +3 -3
- package/dist/backgroundChecksWorker.js +3 -3
- package/dist/{batchRender-JB3D6X7U.js → batchRender-5ZEQ6U4N.js} +5 -5
- package/dist/{beats-5BJMEGGA.js → beats-3YW7MGZY.js} +22 -14
- package/dist/{benchmark-MP4JGPYM.js → benchmark-MYQTWUO3.js} +10 -10
- package/dist/{billing-XSPWEAYT.js → billing-2X3JNNM4.js} +95 -19
- package/dist/{browser-V4EB7UNU.js → browser-CQSY36GL.js} +3 -3
- package/dist/bundleWithLocalizedFonts-Z6KCDBP2.js +23 -0
- package/dist/{capture-L5TGT4SW.js → capture-IK5GIWOS.js} +20 -23
- package/dist/{capture-SQHH4HBC.js → capture-NWBNWBIX.js} +3 -3
- package/dist/{captureCompositionFrame-BAYKFJMM.js → captureCompositionFrame-KR3PELMO.js} +13 -13
- package/dist/{catalog-OLP2O5W6.js → catalog-2Q73F42B.js} +16 -16
- package/dist/{catch-up-LJWHENVV.js → catch-up-JP3FL3FX.js} +4 -4
- package/dist/{check-KGAKP3H5.js → check-UIMXDUPK.js} +46 -46
- package/dist/{checkAudio-QWBAUBJ2.js → checkAudio-CSX4G35O.js} +12 -12
- package/dist/{checkBrowser-J5UUWIPK.js → checkBrowser-MTCJVJYJ.js} +39 -39
- package/dist/{chunk-5Z7YSZRF.js → chunk-2BDSLTEG.js} +9 -9
- package/dist/{chunk-NXQMN7YC.js → chunk-2L4HQ5K4.js} +1 -1
- package/dist/{chunk-SGLX72IQ.js → chunk-2NHPNI42.js} +10 -10
- package/dist/{chunk-2WGAXAM7.js → chunk-2OIONPKY.js} +3 -3
- package/dist/{chunk-MJEE2WSS.js → chunk-2SYOEZ2Z.js} +2 -2
- package/dist/{chunk-O4Q44I77.js → chunk-2YT656R2.js} +6 -6
- package/dist/{chunk-VIEMTLSI.js → chunk-35RZMUTX.js} +7 -7
- package/dist/{chunk-U7AB4D6T.js → chunk-3B7TDQEW.js} +3 -3
- package/dist/{bundleWithLocalizedFonts-Z23O7MZ3.js → chunk-3BHDAXDA.js} +4 -8
- package/dist/{chunk-BYWQQMTB.js → chunk-3CXUZSLE.js} +2 -2
- package/dist/{chunk-EP6GCDZ6.js → chunk-4MY6FPX4.js} +1 -1
- package/dist/{chunk-6U6KMYIV.js → chunk-4NE6CBMW.js} +1 -1
- package/dist/{chunk-N2SXD5EG.js → chunk-53UV2EUT.js} +3 -3
- package/dist/{chunk-AR6IO4RY.js → chunk-5ENBFVPD.js} +2 -2
- package/dist/{chunk-AW3XJY4S.js → chunk-6FDVPIOO.js} +1 -1
- package/dist/{chunk-NW5QHUZO.js → chunk-6FOO4QTU.js} +1 -1
- package/dist/{chunk-WCNUB6WU.js → chunk-6OSVMSGV.js} +9 -9
- package/dist/{chunk-XHY36WZF.js → chunk-6UM5C4R6.js} +2 -2
- package/dist/{chunk-SFS5BTQ3.js → chunk-6YPQSVVR.js} +1 -1
- package/dist/{chunk-AB6DKVKC.js → chunk-6ZRGEVAM.js} +85 -25
- package/dist/{chunk-2QMEP4LR.js → chunk-7AVR3VZE.js} +1 -1
- package/dist/{chunk-3BLPPIJA.js → chunk-7LQVFIO4.js} +4 -4
- package/dist/{chunk-4HGTJHKB.js → chunk-7NPHPQH5.js} +2 -2
- package/dist/{chunk-CLT3CJKG.js → chunk-AOJBIFKU.js} +1 -1
- package/dist/{chunk-MDMQD6BV.js → chunk-B6C33MNL.js} +41 -17
- package/dist/{chunk-QVW57TUW.js → chunk-BNUN7KXZ.js} +2 -2
- package/dist/{chunk-2YVIA2BX.js → chunk-BXCPOMS3.js} +9 -7
- package/dist/{chunk-H6FRRSHM.js → chunk-CMPHS5E6.js} +2 -2
- package/dist/{chunk-JHILL4BN.js → chunk-CUCP7FKH.js} +461 -1
- package/dist/{chunk-CKZVLS3K.js → chunk-CZ5NNJ6H.js} +50 -20
- package/dist/{chunk-F6PFZMQU.js → chunk-D3FZQL5R.js} +8 -8
- package/dist/{chunk-TX3JT67F.js → chunk-DD47NQJZ.js} +1 -1
- package/dist/{chunk-EQSUX64Q.js → chunk-DSIGJUNY.js} +1 -1
- package/dist/{chunk-ZPJVKYDL.js → chunk-DTU4XJNP.js} +3 -3
- package/dist/{chunk-BE7Y3PJZ.js → chunk-DTZSKJV5.js} +3 -3
- package/dist/{chunk-6PGTJG3M.js → chunk-DVJUBMS7.js} +1 -1
- package/dist/{chunk-KUXOAS4Z.js → chunk-DX4OFRBN.js} +41 -37
- package/dist/{chunk-Y3ICFPFK.js → chunk-EAO46VPT.js} +3 -3
- package/dist/{chunk-M6JFR7KF.js → chunk-EOCFNE53.js} +21 -32
- package/dist/{chunk-LTBBFLOM.js → chunk-FC2OXEBQ.js} +1 -1
- package/dist/{chunk-N43XGFAZ.js → chunk-FF3VKFCN.js} +126 -66
- package/dist/{chunk-WSZWPYRG.js → chunk-FQFWGAON.js} +2 -2
- package/dist/{chunk-OPOYDJEW.js → chunk-FZRTCVU6.js} +1 -1
- package/dist/{chunk-FJIN5OWZ.js → chunk-GY7D2OEQ.js} +2 -2
- package/dist/chunk-HNZ2FZIB.js +45 -0
- package/dist/{chunk-7S2LS53F.js → chunk-HVIQQCLM.js} +13 -13
- package/dist/{chunk-7WSL3PT3.js → chunk-HZSAOL5O.js} +2 -2
- package/dist/{chunk-UPI2MZ5L.js → chunk-I5PI43EI.js} +1 -1
- package/dist/{chunk-MGAGDEBC.js → chunk-IO3BC2ZK.js} +1 -1
- package/dist/{chunk-JGTJEQ5X.js → chunk-IPZ3QGDO.js} +2 -2
- package/dist/{chunk-GPHY5R35.js → chunk-K5CK4G75.js} +3 -3
- package/dist/{chunk-RBF3AF7R.js → chunk-L24GJQNZ.js} +16 -12
- package/dist/chunk-LSUM6RTW.js +20 -0
- package/dist/{chunk-KHF5WT6E.js → chunk-LZYXYJMX.js} +1 -1
- package/dist/{chunk-H4VII7WN.js → chunk-M34AOUVK.js} +5 -5
- package/dist/{chunk-ITDHT7AO.js → chunk-MWPPZOY5.js} +4 -4
- package/dist/{chunk-2IB3XVAR.js → chunk-MY2W7VWC.js} +14 -14
- package/dist/{chunk-W5AUD5OL.js → chunk-N7ZKI2CE.js} +5 -5
- package/dist/{chunk-3SZZLHHM.js → chunk-NBUPR3ZF.js} +1 -1
- package/dist/{chunk-YHID4CM3.js → chunk-NLEIM52W.js} +83 -21
- package/dist/{chunk-TBXV7O3Z.js → chunk-NWFIYKEI.js} +4 -4
- package/dist/{chunk-N7EA7GWU.js → chunk-O4ONYFY3.js} +1 -1
- package/dist/{chunk-AIK4ETUZ.js → chunk-O4ZD7TVR.js} +17 -1
- package/dist/{chunk-C2KEGBR3.js → chunk-OHQRQE7F.js} +1 -394
- package/dist/{chunk-ZMRRTWKP.js → chunk-PA27AW3Y.js} +1 -1
- package/dist/{chunk-YMP5FTA3.js → chunk-PCY67JUL.js} +303 -29
- package/dist/{chunk-RADODJYB.js → chunk-PYPW33ET.js} +2 -2
- package/dist/{chunk-C5VZTKW2.js → chunk-QSEHVJFA.js} +67 -211
- package/dist/{chunk-CPMTEWQM.js → chunk-RX2PFZ5W.js} +4 -4
- package/dist/{chunk-MBX3BHW3.js → chunk-SAAJ2O7A.js} +1 -1
- package/dist/{chunk-GAKRZZHQ.js → chunk-SQC4CTD2.js} +2 -2
- package/dist/{chunk-WGQW65DO.js → chunk-SSBAETRX.js} +5 -5
- package/dist/{chunk-LGVUQ4GC.js → chunk-T32JKZX3.js} +3 -3
- package/dist/{chunk-NR2W7HUH.js → chunk-T4FLVFQE.js} +1 -1
- package/dist/{chunk-KWGOABKQ.js → chunk-TESXTEV5.js} +1 -1
- package/dist/{chunk-2IATDUYU.js → chunk-TRK77R5G.js} +1 -1
- package/dist/{chunk-T5ZEMZ3K.js → chunk-TTBCQFRY.js} +2 -2
- package/dist/{chunk-7AMCGJDM.js → chunk-U22NZEQV.js} +1 -1
- package/dist/{chunk-2ASPXS4U.js → chunk-VD5G4Y6U.js} +1 -1
- package/dist/{chunk-RL52TNCM.js → chunk-W7ITBVJE.js} +2 -2
- package/dist/{chunk-SXAZR7M4.js → chunk-WAH2X7FF.js} +2 -2
- package/dist/{chunk-HTSVFS4G.js → chunk-WXYV47JX.js} +2 -2
- package/dist/{chunk-NWQFOHXF.js → chunk-WYXBJVM2.js} +1 -1
- package/dist/{chunk-SM4F4H3T.js → chunk-X46MRJYK.js} +1 -1
- package/dist/{chunk-EZCMP7NJ.js → chunk-XMOWL46H.js} +1 -1
- package/dist/{chunk-SFO4FLUG.js → chunk-YBR4L5JA.js} +1 -1
- package/dist/{chunk-7FMUTGOH.js → chunk-ZB2XGJSP.js} +152 -5
- package/dist/{chunk-7Z7SREEU.js → chunk-ZE2QZHUH.js} +1 -1
- package/dist/{chunk-RWQEWEOV.js → chunk-ZNHWAGMH.js} +1 -1
- package/dist/{chunk-NMYRVKIL.js → chunk-ZSAKJRZB.js} +5 -5
- package/dist/{chunk-472XCBCV.js → chunk-ZZBO3GF5.js} +2 -2
- package/dist/{clean-NNYMY7FD.js → clean-P3SZCIFU.js} +20 -20
- package/dist/cli.js +60 -60
- package/dist/{cloud-6FBCPI3B.js → cloud-G7YQIVI7.js} +4 -4
- package/dist/{cloudrun-D4V4TV6S.js → cloudrun-LXZT5UDK.js} +7 -7
- package/dist/{compare-J3JV4AZ3.js → compare-BHQHEOMX.js} +35 -35
- package/dist/{compiler-5ANBCHB7.js → compiler-V72QWKGC.js} +5 -5
- package/dist/{component-QFREWBT5.js → component-6GDCT3GK.js} +3 -3
- package/dist/{compositions-NUTRZGAZ.js → compositions-JM6HKCRF.js} +12 -12
- package/dist/{curve-LR4THVRF.js → curve-Y7JRXLIJ.js} +12 -12
- package/dist/{cuts-5WPLSRM2.js → cuts-LDVDQTRL.js} +13 -13
- package/dist/{delete-KLIVMSTG.js → delete-NCZIKWHU.js} +2 -2
- package/dist/{deploy-CDWKRTWY.js → deploy-R4OEJEB6.js} +5 -2
- package/dist/{describeProject-YJEOPIW7.js → describeProject-4GKZTYHA.js} +10 -10
- package/dist/{deterministicFonts-GQMT52JQ.js → deterministicFonts-HY5GWGQQ.js} +3 -3
- package/dist/{diff-KY6T2E32.js → diff-C53GPSNU.js} +42 -24
- package/dist/{dist-GUX66F7V.js → dist-R7SPMKEZ.js} +4 -4
- package/dist/{dist-TQKOMXXI.js → dist-TI44VPHO.js} +3 -3
- package/dist/{dist-GVCHAZJU.js → dist-TJZSSDR2.js} +13 -13
- package/dist/{doctor-HLG4AP3Q.js → doctor-V4RICWU2.js} +12 -12
- package/dist/{energy-3T3DDIEN.js → energy-S5Z7CGSB.js} +13 -13
- package/dist/{events-LB2RDZX3.js → events-6HROTYLC.js} +11 -3
- package/dist/{events-HZG5BWCQ.js → events-QKJE5XRN.js} +2 -2
- package/dist/{events-ZZNUYUCY.js → events-RAJGQK7Y.js} +14 -14
- package/dist/{extract-7STXIEDI.js → extract-RYGWEC5V.js} +13 -13
- package/dist/{face-3DWRLSWO.js → face-IWRDW2QO.js} +13 -13
- package/dist/{feedback-4V2HGHTZ.js → feedback-HQTDLLPE.js} +9 -9
- package/dist/{ffmpeg-5BWHEWVW.js → ffmpeg-BX334YEK.js} +8 -8
- package/dist/{figma-4SSCW6YU.js → figma-P6U76KGI.js} +3 -3
- package/dist/fontLocalizeCli.js +13 -13
- package/dist/{frames-V3OUCXX6.js → frames-G2WYTVWV.js} +14 -14
- package/dist/{generate-W4HW4MJQ.js → generate-ZUE2AVOB.js} +35 -16
- package/dist/{get-FXFV3VDQ.js → get-7C3UC46A.js} +2 -2
- package/dist/{gpuPolicy-X4BOE2HD.js → gpuPolicy-5ZVYYWXN.js} +8 -8
- package/dist/{grade-compare-PV62LISL.js → grade-compare-IS3OVI7R.js} +39 -39
- package/dist/{heifImagePrep-2K2I4SCP.js → heifImagePrep-FBLLKI3P.js} +9 -9
- package/dist/{help-R2ASMVJB.js → help-2MPB27YU.js} +1 -1
- package/dist/{history-X24EZSOO.js → history-Q5EBBFPW.js} +6 -6
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +7 -7
- package/dist/hyperframes-player.global.js +1 -1
- package/dist/{info-DJ6TZSEF.js → info-TNG5QGFC.js} +9 -9
- package/dist/{init-GQ2GRVQS.js → init-UFPBBWC7.js} +37 -32
- package/dist/{ink-L4VRIFJ7.js → ink-UTPJHGZR.js} +13 -13
- package/dist/{inspect-5IXDDOJN.js → inspect-KXKKPWKX.js} +37 -37
- package/dist/{installer-ZIBXFENP.js → installer-UTFXM6KP.js} +7 -7
- package/dist/{keyframes-ASFH5XYJ.js → keyframes-S6V36BW6.js} +6 -6
- package/dist/{lambda-ELYE5XIZ.js → lambda-XWHALRKM.js} +13 -13
- package/dist/{layout-NNGVQWY4.js → layout-SSVKZKCZ.js} +37 -37
- package/dist/{lint-GYJFRDI2.js → lint-OQWGRKG5.js} +9 -9
- package/dist/{lintProject-NGMRZDNT.js → lintProject-Z2TEXMY4.js} +3 -3
- package/dist/{list-UBFDCTVO.js → list-FYLBMEL7.js} +2 -2
- package/dist/{localPage-DHAVU3EM.js → localPage-4GSU6N3J.js} +8 -8
- package/dist/{login-OKJT7QWG.js → login-JKFCYHRS.js} +4 -4
- package/dist/{look-4GINLBBO.js → look-WQ2DOKXH.js} +13 -13
- package/dist/{manager-Q5X74T5D.js → manager-F4F4A734.js} +9 -9
- package/dist/{measure-LICRA4FH.js → measure-XIFLTAMC.js} +11 -11
- package/dist/{media-treatment-PM3WLJZ4.js → media-treatment-S3LHQSQQ.js} +16 -16
- package/dist/{media-use-NUORYIBQ.js → media-use-NFM3ZXCF.js} +3 -3
- package/dist/{models-V2XJYFY5.js → models-G4KNLV66.js} +12 -12
- package/dist/{motionShot-YBJB6L3C.js → motionShot-IJGA5CBH.js} +16 -16
- package/dist/{normalize-audio-LUAEDEUM.js → normalize-audio-UP54N6J4.js} +11 -11
- package/dist/{open-RTL2AU5C.js → open-TAEKCYDB.js} +16 -16
- package/dist/{parakeetRunner-FBEL64JM.js → parakeetRunner-WFA4K7BH.js} +13 -13
- package/dist/{pipeline-2VN2FDAL.js → pipeline-SNENB5MZ.js} +11 -11
- package/dist/{play-U3EXVEC7.js → play-QTYMY453.js} +27 -27
- package/dist/{preflight-Z3U5OGW3.js → preflight-CZUKW3CW.js} +9 -9
- package/dist/{present-NXEDFMC4.js → present-KVHQECWG.js} +19 -19
- package/dist/{preview-AUDJW3KE.js → preview-6U62DM4P.js} +24 -24
- package/dist/{probe-QQXAWDZG.js → probe-UCVL3JDC.js} +13 -13
- package/dist/{producer-DNWWPGFA.js → producer-A4RPG3XL.js} +1 -1
- package/dist/{projectConfig-FMXOJBJY.js → projectConfig-FIW6FPZW.js} +10 -10
- package/dist/{publication-K4XAMUI6.js → publication-CCIGDK2X.js} +4 -4
- package/dist/{publish-7HSXMQEF.js → publish-VKSABRA4.js} +18 -15
- package/dist/{remove-background-AIYMKXZW.js → remove-background-CJJ54SHA.js} +12 -12
- package/dist/{render-RMPWJTY4.js → render-2YY64XPU.js} +346 -64
- package/dist/{render-SAAQKFHE.js → render-G54RA46B.js} +202 -35
- package/dist/{render-FD7LHCCC.js → render-I2MWX5GH.js} +7 -7
- package/dist/{render-batch-WPHP27VT.js → render-batch-X562GNRH.js} +10 -10
- package/dist/renderSetupWorker.js +3 -3
- package/dist/{resolver-E7IHSWCQ.js → resolver-GC4ZLQPV.js} +7 -7
- package/dist/{reverse-GHX5LUSV.js → reverse-2KZQ65Y7.js} +1 -1
- package/dist/{sherpa-QQZMXXO5.js → sherpa-SLRKS4SR.js} +12 -12
- package/dist/skills/hyperframes/SKILL.md +3 -1
- package/dist/skills/hyperframes/references/format.md +1 -1
- package/dist/skills/hyperframes-cli/SKILL.md +2 -0
- package/dist/skills/media-use/SKILL.md +2 -0
- package/dist/skills/media-use/audio/scripts/lib/heygen.mjs +2 -2
- package/dist/skills/media-use/audio/scripts/lib/heygen.test.mjs +2 -2
- package/dist/{skills-WCXVUM6C.js → skills-SOXKW42T.js} +6 -6
- package/dist/{skillsUpdateCheck-PEVW2JO6.js → skillsUpdateCheck-4RUEBT6B.js} +3 -3
- package/dist/{snapshot-2ACZXDLZ.js → snapshot-KIWJWZGW.js} +48 -48
- package/dist/{src-WISBTYBV.js → src-ABVBEVVK.js} +12 -12
- package/dist/{src-DA2HOM3K.js → src-DYWF24IK.js} +7 -7
- package/dist/{start-DDOWW7K5.js → start-EADJCDST.js} +49 -27
- package/dist/{staticProjectServer-MQ7H4MGQ.js → staticProjectServer-UCHJYCR6.js} +24 -24
- package/dist/{status-74IZXJKQ.js → status-E4OUQSHN.js} +45 -2
- package/dist/studio/assets/{hyperframes-player-B2_9tPTr.js → hyperframes-player-CfYFgHV8.js} +1 -1
- package/dist/studio/assets/{index-DToBQdGg.js → index-COfhX0Gz.js} +4 -4
- package/dist/studio/assets/{index-BHe_y2lu.js → index-Cj5x3rVD.js} +1 -1
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-UABUZ3PZ.js → studio-api-RGOTUJXP.js} +13 -13
- package/dist/{studioServer-FGXZA75B.js → studioServer-72COILB5.js} +61 -61
- package/dist/{sync-AVGYYG4D.js → sync-5Z5OQFB3.js} +13 -13
- package/dist/{telemetry-7IM2NV22.js → telemetry-OQ2JM37Y.js} +3 -3
- package/dist/{templates-5CWKOSBX.js → templates-YH5CUHHN.js} +45 -2
- package/dist/{timeline-A7R54T7C.js → timeline-IWU2T2BX.js} +21 -21
- package/dist/{tokens-W6RQVKWV.js → tokens-F7IBDWGE.js} +2 -2
- package/dist/{transcribe-N2C2MYCG.js → transcribe-GL3J3JB3.js} +11 -11
- package/dist/{transcribe-GPOMREHS.js → transcribe-YXDOCF32.js} +32 -20
- package/dist/{update-X643YOPS.js → update-MR5NL567.js} +7 -7
- package/dist/{updateCheck-O7IUSOXN.js → updateCheck-ONT2ZVAF.js} +2 -2
- package/dist/{upgrade-6NWYJUFT.js → upgrade-BJEGLKQS.js} +3 -3
- package/dist/{urlDownloader-PFHIVGDF.js → urlDownloader-3PV5WURP.js} +7 -7
- package/dist/{validate-IIFU6OEG.js → validate-GTTWJYCS.js} +26 -26
- package/dist/{video-R6TSXZMN.js → video-VP6X6YL5.js} +9 -9
- package/dist/{voices-Y572PKNN.js → voices-3EO2NQ5Q.js} +33 -14
- package/dist/warmCheck.js +46 -46
- package/package.json +1 -1
- package/dist/chunk-TSCUYZ4B.js +0 -29
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
} from "./chunk-6BEFEWFB.js";
|
|
16
16
|
import {
|
|
17
17
|
trackSkillsInstallSkipped
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-O4ZD7TVR.js";
|
|
19
19
|
import {
|
|
20
20
|
diag
|
|
21
21
|
} from "./chunk-MCDNAIFF.js";
|
|
@@ -36,11 +36,11 @@ import {
|
|
|
36
36
|
isCoreSkill,
|
|
37
37
|
presentSkills,
|
|
38
38
|
retiredSkillNotice
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-2SYOEZ2Z.js";
|
|
40
40
|
import {
|
|
41
41
|
NO_UPDATE_NOTICE,
|
|
42
42
|
withMeta
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-IO3BC2ZK.js";
|
|
44
44
|
import {
|
|
45
45
|
failureMessage,
|
|
46
46
|
jsonFailure
|
|
@@ -51,7 +51,7 @@ import {
|
|
|
51
51
|
} from "./chunk-66W5IWLO.js";
|
|
52
52
|
import {
|
|
53
53
|
VERSION
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-FQFWGAON.js";
|
|
55
55
|
|
|
56
56
|
// src/commands/skills.ts
|
|
57
57
|
import { execFileSync, spawn } from "child_process";
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
flush,
|
|
9
9
|
shouldTrack,
|
|
10
10
|
trackEvent
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-XMOWL46H.js";
|
|
12
12
|
import {
|
|
13
13
|
redactTelemetryString
|
|
14
14
|
} from "./chunk-TK7THLRO.js";
|
|
@@ -493,6 +493,18 @@ function trackCommandFailure(command, err, overrides = {}) {
|
|
|
493
493
|
function trackTranscribeUnavailable(props) {
|
|
494
494
|
trackEvent("transcribe_unavailable", { optional: props.optional });
|
|
495
495
|
}
|
|
496
|
+
function trackReverseStartUnrecorded(props) {
|
|
497
|
+
trackEvent("cli_reverse_start_unrecorded", { cause: props.cause, status: props.status });
|
|
498
|
+
}
|
|
499
|
+
function trackBillingCheckoutFailed(props) {
|
|
500
|
+
trackEvent("cli_billing_checkout_failed", { reason: props.reason });
|
|
501
|
+
}
|
|
502
|
+
function trackBillingCheckoutReturnRefused() {
|
|
503
|
+
trackEvent("cli_billing_checkout_return_refused", {});
|
|
504
|
+
}
|
|
505
|
+
function trackBillingWaitTimeout(props) {
|
|
506
|
+
trackEvent("cli_billing_wait_timeout", { action: props.action });
|
|
507
|
+
}
|
|
496
508
|
function trackCompareSheet(props) {
|
|
497
509
|
trackEvent("media_use_compare", {
|
|
498
510
|
command: props.command,
|
|
@@ -636,6 +648,10 @@ export {
|
|
|
636
648
|
trackFigmaImport,
|
|
637
649
|
trackCommandFailure,
|
|
638
650
|
trackTranscribeUnavailable,
|
|
651
|
+
trackReverseStartUnrecorded,
|
|
652
|
+
trackBillingCheckoutFailed,
|
|
653
|
+
trackBillingCheckoutReturnRefused,
|
|
654
|
+
trackBillingWaitTimeout,
|
|
639
655
|
trackCompareSheet,
|
|
640
656
|
trackHistoryAction,
|
|
641
657
|
trackSkillsInstallSkipped,
|
|
@@ -4,10 +4,6 @@ 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
|
-
ancestor,
|
|
9
|
-
fullAncestor
|
|
10
|
-
} from "./chunk-WC4MTXGN.js";
|
|
11
7
|
|
|
12
8
|
// ../parsers/dist/compositionContract.js
|
|
13
9
|
var COMPOSITION_CONTRACT_VERSION = 1;
|
|
@@ -1144,384 +1140,6 @@ function spansShareTime(aStart, aEnd, bStart, bEnd) {
|
|
|
1144
1140
|
}
|
|
1145
1141
|
var isInsideSpan = (time, start, end) => isBefore(start, time) && isBefore(time, end);
|
|
1146
1142
|
|
|
1147
|
-
// ../parsers/dist/composition.js
|
|
1148
|
-
import * as acorn from "acorn";
|
|
1149
|
-
import * as acorn2 from "acorn";
|
|
1150
|
-
var CANVAS_DIMENSIONS = {
|
|
1151
|
-
landscape: { width: 1920, height: 1080 },
|
|
1152
|
-
portrait: { width: 1080, height: 1920 },
|
|
1153
|
-
"landscape-4k": { width: 3840, height: 2160 },
|
|
1154
|
-
"portrait-4k": { width: 2160, height: 3840 },
|
|
1155
|
-
square: { width: 1080, height: 1080 },
|
|
1156
|
-
"square-4k": { width: 2160, height: 2160 },
|
|
1157
|
-
"landscape-720p": { width: 1280, height: 720 },
|
|
1158
|
-
"portrait-720p": { width: 720, height: 1280 },
|
|
1159
|
-
"square-720p": { width: 720, height: 720 },
|
|
1160
|
-
// 480 tall at 16:9 is 853.33 wide: 854 keeps both sides even for 4:2:0 encoders.
|
|
1161
|
-
"landscape-480p": { width: 854, height: 480 },
|
|
1162
|
-
"portrait-480p": { width: 480, height: 854 },
|
|
1163
|
-
"square-480p": { width: 480, height: 480 }
|
|
1164
|
-
};
|
|
1165
|
-
var VALID_CANVAS_RESOLUTIONS = Object.keys(
|
|
1166
|
-
CANVAS_DIMENSIONS
|
|
1167
|
-
);
|
|
1168
|
-
var COMPOSITION_VARIABLE_TYPES = [
|
|
1169
|
-
"string",
|
|
1170
|
-
"number",
|
|
1171
|
-
"color",
|
|
1172
|
-
"boolean",
|
|
1173
|
-
"enum",
|
|
1174
|
-
"font",
|
|
1175
|
-
"image"
|
|
1176
|
-
];
|
|
1177
|
-
var FONT_ALIAS_MAP = {
|
|
1178
|
-
// ── Canonical bundled fonts (self-referencing) ────────────────────────
|
|
1179
|
-
inter: "inter",
|
|
1180
|
-
montserrat: "montserrat",
|
|
1181
|
-
outfit: "outfit",
|
|
1182
|
-
nunito: "nunito",
|
|
1183
|
-
oswald: "oswald",
|
|
1184
|
-
"league gothic": "league-gothic",
|
|
1185
|
-
"archivo black": "archivo-black",
|
|
1186
|
-
"space mono": "space-mono",
|
|
1187
|
-
"ibm plex mono": "ibm-plex-mono",
|
|
1188
|
-
"jetbrains mono": "jetbrains-mono",
|
|
1189
|
-
"eb garamond": "eb-garamond",
|
|
1190
|
-
"playfair display": "playfair-display",
|
|
1191
|
-
"source code pro": "source-code-pro",
|
|
1192
|
-
"noto sans jp": "noto-sans-jp",
|
|
1193
|
-
roboto: "roboto",
|
|
1194
|
-
"open sans": "open-sans",
|
|
1195
|
-
lato: "lato",
|
|
1196
|
-
poppins: "poppins",
|
|
1197
|
-
// ── Common aliases → nearest canonical ────────────────────────────────
|
|
1198
|
-
"helvetica neue": "inter",
|
|
1199
|
-
helvetica: "inter",
|
|
1200
|
-
arial: "inter",
|
|
1201
|
-
"helvetica bold": "inter",
|
|
1202
|
-
futura: "montserrat",
|
|
1203
|
-
"din alternate": "montserrat",
|
|
1204
|
-
"arial black": "montserrat",
|
|
1205
|
-
"bebas neue": "league-gothic",
|
|
1206
|
-
"courier new": "jetbrains-mono",
|
|
1207
|
-
courier: "jetbrains-mono",
|
|
1208
|
-
garamond: "eb-garamond",
|
|
1209
|
-
"noto sans japanese": "noto-sans-jp",
|
|
1210
|
-
"segoe ui": "roboto",
|
|
1211
|
-
// ── macOS sans-serif system fonts → inter ─────────────────────────────
|
|
1212
|
-
"sf pro": "inter",
|
|
1213
|
-
"sf pro display": "inter",
|
|
1214
|
-
"sf pro text": "inter",
|
|
1215
|
-
"sf pro rounded": "inter",
|
|
1216
|
-
avenir: "inter",
|
|
1217
|
-
"avenir next": "inter",
|
|
1218
|
-
"lucida grande": "inter",
|
|
1219
|
-
geneva: "inter",
|
|
1220
|
-
optima: "inter",
|
|
1221
|
-
// ── Windows sans-serif system fonts → inter ───────────────────────────
|
|
1222
|
-
verdana: "inter",
|
|
1223
|
-
tahoma: "inter",
|
|
1224
|
-
"trebuchet ms": "inter",
|
|
1225
|
-
calibri: "inter",
|
|
1226
|
-
candara: "inter",
|
|
1227
|
-
corbel: "inter",
|
|
1228
|
-
"lucida sans": "inter",
|
|
1229
|
-
"lucida sans unicode": "inter",
|
|
1230
|
-
// ── Linux sans-serif system fonts → inter ─────────────────────────────
|
|
1231
|
-
"noto sans": "inter",
|
|
1232
|
-
"dejavu sans": "inter",
|
|
1233
|
-
"liberation sans": "inter",
|
|
1234
|
-
// ── Monospace system fonts → jetbrains-mono ───────────────────────────
|
|
1235
|
-
"sf mono": "jetbrains-mono",
|
|
1236
|
-
menlo: "jetbrains-mono",
|
|
1237
|
-
monaco: "jetbrains-mono",
|
|
1238
|
-
consolas: "jetbrains-mono",
|
|
1239
|
-
"lucida console": "jetbrains-mono",
|
|
1240
|
-
"lucida sans typewriter": "jetbrains-mono",
|
|
1241
|
-
"andale mono": "jetbrains-mono",
|
|
1242
|
-
"dejavu sans mono": "jetbrains-mono",
|
|
1243
|
-
"liberation mono": "jetbrains-mono",
|
|
1244
|
-
// ── Serif system fonts → eb-garamond ──────────────────────────────────
|
|
1245
|
-
georgia: "eb-garamond",
|
|
1246
|
-
palatino: "eb-garamond",
|
|
1247
|
-
"palatino linotype": "eb-garamond",
|
|
1248
|
-
"book antiqua": "eb-garamond",
|
|
1249
|
-
cambria: "eb-garamond",
|
|
1250
|
-
times: "eb-garamond",
|
|
1251
|
-
"times new roman": "eb-garamond",
|
|
1252
|
-
"dejavu serif": "eb-garamond",
|
|
1253
|
-
"liberation serif": "eb-garamond"
|
|
1254
|
-
};
|
|
1255
|
-
var FONT_ALIAS_KEYS = new Set(Object.keys(FONT_ALIAS_MAP));
|
|
1256
|
-
var CANONICAL_FONT_DISPLAY_NAMES = {
|
|
1257
|
-
inter: "Inter",
|
|
1258
|
-
montserrat: "Montserrat",
|
|
1259
|
-
outfit: "Outfit",
|
|
1260
|
-
nunito: "Nunito",
|
|
1261
|
-
oswald: "Oswald",
|
|
1262
|
-
"league-gothic": "League Gothic",
|
|
1263
|
-
"archivo-black": "Archivo Black",
|
|
1264
|
-
"space-mono": "Space Mono",
|
|
1265
|
-
"ibm-plex-mono": "IBM Plex Mono",
|
|
1266
|
-
"jetbrains-mono": "JetBrains Mono",
|
|
1267
|
-
"eb-garamond": "EB Garamond",
|
|
1268
|
-
"playfair-display": "Playfair Display",
|
|
1269
|
-
"source-code-pro": "Source Code Pro",
|
|
1270
|
-
"noto-sans-jp": "Noto Sans JP",
|
|
1271
|
-
roboto: "Roboto",
|
|
1272
|
-
"open-sans": "Open Sans",
|
|
1273
|
-
lato: "Lato",
|
|
1274
|
-
poppins: "Poppins"
|
|
1275
|
-
};
|
|
1276
|
-
function resolveAliasDisplayName(alias) {
|
|
1277
|
-
const slug = FONT_ALIAS_MAP[alias.toLowerCase()];
|
|
1278
|
-
if (!slug) return void 0;
|
|
1279
|
-
return CANONICAL_FONT_DISPLAY_NAMES[slug];
|
|
1280
|
-
}
|
|
1281
|
-
var DEFAULT_TYPEOF = {
|
|
1282
|
-
string: "string",
|
|
1283
|
-
number: "number",
|
|
1284
|
-
color: "string",
|
|
1285
|
-
boolean: "boolean",
|
|
1286
|
-
enum: "string",
|
|
1287
|
-
font: "string",
|
|
1288
|
-
image: "string"
|
|
1289
|
-
};
|
|
1290
|
-
function isRecord2(v) {
|
|
1291
|
-
return typeof v === "object" && v !== null && !Array.isArray(v);
|
|
1292
|
-
}
|
|
1293
|
-
function isFontValue(value) {
|
|
1294
|
-
return isRecord2(value) && typeof value.name === "string" && typeof value.source === "string";
|
|
1295
|
-
}
|
|
1296
|
-
function isImageValue(value) {
|
|
1297
|
-
return isRecord2(value) && typeof value.url === "string" && (value.alt === void 0 || typeof value.alt === "string") && (value.fit === void 0 || value.fit === "cover" || value.fit === "contain" || value.fit === "fill" || value.fit === "none" || value.fit === "scale-down");
|
|
1298
|
-
}
|
|
1299
|
-
function isVariableType(t) {
|
|
1300
|
-
return typeof t === "string" && t in DEFAULT_TYPEOF;
|
|
1301
|
-
}
|
|
1302
|
-
function isCompositionVariable(v) {
|
|
1303
|
-
if (!isRecord2(v)) return false;
|
|
1304
|
-
if (typeof v.id !== "string" || typeof v.label !== "string") return false;
|
|
1305
|
-
if (!isVariableType(v.type)) return false;
|
|
1306
|
-
if (v.type === "font") return typeof v.default === "string" || isFontValue(v.default);
|
|
1307
|
-
if (v.type === "image") return typeof v.default === "string" || isImageValue(v.default);
|
|
1308
|
-
if (typeof v.default !== DEFAULT_TYPEOF[v.type]) return false;
|
|
1309
|
-
if (v.type === "enum" && !Array.isArray(v.options)) return false;
|
|
1310
|
-
return true;
|
|
1311
|
-
}
|
|
1312
|
-
function isSafeMediaUrl(url) {
|
|
1313
|
-
const normalized = url.replace(/[\u0000-\u0020]/g, "");
|
|
1314
|
-
const scheme = /^([a-z][a-z0-9+.-]*):/i.exec(normalized);
|
|
1315
|
-
if (!scheme) return true;
|
|
1316
|
-
const proto = scheme[1]?.toLowerCase();
|
|
1317
|
-
if (!proto) return false;
|
|
1318
|
-
if (proto === "https" || proto === "http" || proto === "blob") return true;
|
|
1319
|
-
if (proto === "data") return /^data:image\//i.test(normalized);
|
|
1320
|
-
return false;
|
|
1321
|
-
}
|
|
1322
|
-
var COMPOSITION_ATTRIBUTES4 = Object.freeze({
|
|
1323
|
-
start: "data-start",
|
|
1324
|
-
duration: "data-duration",
|
|
1325
|
-
trackIndex: "data-track-index",
|
|
1326
|
-
derivedEnd: "data-end",
|
|
1327
|
-
legacyTrack: "data-layer"
|
|
1328
|
-
});
|
|
1329
|
-
var CANONICAL_AUTHORED_TIMING_ATTRIBUTES4 = Object.freeze([
|
|
1330
|
-
COMPOSITION_ATTRIBUTES4.start,
|
|
1331
|
-
COMPOSITION_ATTRIBUTES4.duration,
|
|
1332
|
-
COMPOSITION_ATTRIBUTES4.trackIndex
|
|
1333
|
-
]);
|
|
1334
|
-
var DERIVED_TIMING_ATTRIBUTES4 = Object.freeze([
|
|
1335
|
-
COMPOSITION_ATTRIBUTES4.derivedEnd
|
|
1336
|
-
]);
|
|
1337
|
-
var LEGACY_TIMING_ATTRIBUTES4 = Object.freeze([
|
|
1338
|
-
COMPOSITION_ATTRIBUTES4.derivedEnd,
|
|
1339
|
-
COMPOSITION_ATTRIBUTES4.legacyTrack
|
|
1340
|
-
]);
|
|
1341
|
-
var HTML_BODY_CSS_WIDTH_FIRST_RE = /(html\s*,\s*body\s*\{[^}]*?width:\s*)(\d+)px([^}]*?height:\s*)(\d+)px/i;
|
|
1342
|
-
var HTML_BODY_CSS_HEIGHT_FIRST_RE = /(html\s*,\s*body\s*\{[^}]*?height:\s*)(\d+)px([^}]*?width:\s*)(\d+)px/i;
|
|
1343
|
-
var VIEWPORT_META_SIZE_RE = /(<meta[^>]*name=["']viewport["'][^>]*content=["']width=)(\d+)(,\s*height=)(\d+)/i;
|
|
1344
|
-
function parseProgram(script) {
|
|
1345
|
-
try {
|
|
1346
|
-
return acorn2.parse(script, { ecmaVersion: "latest", sourceType: "script" });
|
|
1347
|
-
} catch {
|
|
1348
|
-
return acorn2.parse(script, { ecmaVersion: "latest", sourceType: "module" });
|
|
1349
|
-
}
|
|
1350
|
-
}
|
|
1351
|
-
function literalString(node) {
|
|
1352
|
-
if (node?.type === "Literal" && typeof node.value === "string") return node.value;
|
|
1353
|
-
if (node?.type === "TemplateLiteral" && node.expressions.length === 0) {
|
|
1354
|
-
return node.quasis[0]?.value.cooked ?? void 0;
|
|
1355
|
-
}
|
|
1356
|
-
return void 0;
|
|
1357
|
-
}
|
|
1358
|
-
function memberName(node) {
|
|
1359
|
-
if (node?.type !== "MemberExpression") return void 0;
|
|
1360
|
-
if (!node.computed && node.property.type === "Identifier") return node.property.name;
|
|
1361
|
-
return literalString(node.property);
|
|
1362
|
-
}
|
|
1363
|
-
function isFunctionScope(node) {
|
|
1364
|
-
return node.type === "Program" || node.type === "FunctionDeclaration" || node.type === "FunctionExpression" || node.type === "ArrowFunctionExpression" || node.type === "StaticBlock";
|
|
1365
|
-
}
|
|
1366
|
-
function isScope(node) {
|
|
1367
|
-
return isFunctionScope(node) || node.type === "BlockStatement" || node.type === "CatchClause" || node.type === "ForStatement" || node.type === "ForInStatement" || node.type === "ForOfStatement" || node.type === "SwitchStatement" || node.type === "ClassDeclaration" || node.type === "ClassExpression";
|
|
1368
|
-
}
|
|
1369
|
-
function declarePattern(pattern, initializer, scope, initializerScope = scope) {
|
|
1370
|
-
switch (pattern.type) {
|
|
1371
|
-
case "Identifier":
|
|
1372
|
-
if (initializer || !scope.bindings.has(pattern.name)) {
|
|
1373
|
-
scope.bindings.set(pattern.name, { initializer, scope: initializerScope });
|
|
1374
|
-
}
|
|
1375
|
-
break;
|
|
1376
|
-
case "RestElement":
|
|
1377
|
-
declarePattern(pattern.argument, null, scope);
|
|
1378
|
-
break;
|
|
1379
|
-
case "AssignmentPattern":
|
|
1380
|
-
declarePattern(pattern.left, null, scope);
|
|
1381
|
-
break;
|
|
1382
|
-
case "ArrayPattern":
|
|
1383
|
-
case "ObjectPattern":
|
|
1384
|
-
declarePatterns(destructuredPatterns(pattern), scope);
|
|
1385
|
-
break;
|
|
1386
|
-
}
|
|
1387
|
-
}
|
|
1388
|
-
function declarePatterns(patterns, scope) {
|
|
1389
|
-
for (const pattern of patterns) declarePattern(pattern, null, scope);
|
|
1390
|
-
}
|
|
1391
|
-
function destructuredPatterns(pattern) {
|
|
1392
|
-
if (pattern.type === "ObjectPattern") {
|
|
1393
|
-
return pattern.properties.map(
|
|
1394
|
-
(property) => property.type === "RestElement" ? property.argument : property.value
|
|
1395
|
-
);
|
|
1396
|
-
}
|
|
1397
|
-
return pattern.elements.filter((element) => element !== null);
|
|
1398
|
-
}
|
|
1399
|
-
function declareOptionalPattern(pattern, scope) {
|
|
1400
|
-
if (pattern) declarePattern(pattern, null, scope);
|
|
1401
|
-
}
|
|
1402
|
-
function declareScopedName(node, scope) {
|
|
1403
|
-
switch (node.type) {
|
|
1404
|
-
case "FunctionExpression":
|
|
1405
|
-
case "FunctionDeclaration":
|
|
1406
|
-
declareOptionalPattern(node.id, scope);
|
|
1407
|
-
declarePatterns(node.params, scope);
|
|
1408
|
-
break;
|
|
1409
|
-
case "ArrowFunctionExpression":
|
|
1410
|
-
declarePatterns(node.params, scope);
|
|
1411
|
-
break;
|
|
1412
|
-
case "ClassDeclaration":
|
|
1413
|
-
case "ClassExpression":
|
|
1414
|
-
declareOptionalPattern(node.id, scope);
|
|
1415
|
-
break;
|
|
1416
|
-
case "CatchClause":
|
|
1417
|
-
declareOptionalPattern(node.param, scope);
|
|
1418
|
-
break;
|
|
1419
|
-
case "ImportDeclaration":
|
|
1420
|
-
declarePatterns(
|
|
1421
|
-
node.specifiers.map((specifier) => specifier.local),
|
|
1422
|
-
scope
|
|
1423
|
-
);
|
|
1424
|
-
break;
|
|
1425
|
-
}
|
|
1426
|
-
}
|
|
1427
|
-
function lookupBinding(name, scope) {
|
|
1428
|
-
for (let current = scope; current; current = current.parent) {
|
|
1429
|
-
const binding = current.bindings.get(name);
|
|
1430
|
-
if (binding) return binding;
|
|
1431
|
-
}
|
|
1432
|
-
return void 0;
|
|
1433
|
-
}
|
|
1434
|
-
function collectBindings(ast) {
|
|
1435
|
-
const root = { bindings: /* @__PURE__ */ new Map() };
|
|
1436
|
-
const scopes = new WeakMap([[ast, root]]);
|
|
1437
|
-
const scopeAt = (ancestors, functionOnly = false) => {
|
|
1438
|
-
let parent = root;
|
|
1439
|
-
let selected = root;
|
|
1440
|
-
for (const node of ancestors) {
|
|
1441
|
-
if (!isScope(node)) continue;
|
|
1442
|
-
let scope = scopes.get(node);
|
|
1443
|
-
if (!scope) {
|
|
1444
|
-
scope = { parent, bindings: /* @__PURE__ */ new Map() };
|
|
1445
|
-
scopes.set(node, scope);
|
|
1446
|
-
}
|
|
1447
|
-
parent = scope;
|
|
1448
|
-
if (!functionOnly || isFunctionScope(node)) selected = scope;
|
|
1449
|
-
}
|
|
1450
|
-
return selected;
|
|
1451
|
-
};
|
|
1452
|
-
fullAncestor(ast, (node, _state, ancestors) => {
|
|
1453
|
-
const scope = scopeAt(ancestors);
|
|
1454
|
-
if (node.type === "VariableDeclarator") {
|
|
1455
|
-
const declaration = ancestors.at(-2);
|
|
1456
|
-
const bindingScope = scopeAt(
|
|
1457
|
-
ancestors,
|
|
1458
|
-
declaration?.type === "VariableDeclaration" && declaration.kind === "var"
|
|
1459
|
-
);
|
|
1460
|
-
declarePattern(node.id, node.init ?? null, bindingScope, scope);
|
|
1461
|
-
return;
|
|
1462
|
-
}
|
|
1463
|
-
if ((node.type === "FunctionDeclaration" || node.type === "ClassDeclaration") && node.id) {
|
|
1464
|
-
declarePattern(node.id, null, scopeAt(ancestors.slice(0, -1)));
|
|
1465
|
-
}
|
|
1466
|
-
declareScopedName(node, scope);
|
|
1467
|
-
});
|
|
1468
|
-
return scopeAt;
|
|
1469
|
-
}
|
|
1470
|
-
function lookupSelector(node, scope, seen = /* @__PURE__ */ new Set()) {
|
|
1471
|
-
if (node?.type === "Identifier") {
|
|
1472
|
-
const binding = lookupBinding(node.name, scope);
|
|
1473
|
-
if (!binding || seen.has(binding)) return void 0;
|
|
1474
|
-
seen.add(binding);
|
|
1475
|
-
return lookupSelector(binding.initializer, binding.scope, seen);
|
|
1476
|
-
}
|
|
1477
|
-
return selectorFromDomLookup(node);
|
|
1478
|
-
}
|
|
1479
|
-
function selectorFromDomLookup(node) {
|
|
1480
|
-
if (node?.type !== "CallExpression" || node.callee.type !== "MemberExpression") {
|
|
1481
|
-
return void 0;
|
|
1482
|
-
}
|
|
1483
|
-
const method = memberName(node.callee);
|
|
1484
|
-
if (method !== "getElementById" && method !== "querySelector") return void 0;
|
|
1485
|
-
const value = literalString(node.arguments[0]);
|
|
1486
|
-
if (!value) return void 0;
|
|
1487
|
-
return method === "getElementById" ? `#${value}` : value;
|
|
1488
|
-
}
|
|
1489
|
-
function extractMediaSrcMutations(script) {
|
|
1490
|
-
try {
|
|
1491
|
-
const ast = parseProgram(script);
|
|
1492
|
-
const scopeAt = collectBindings(ast);
|
|
1493
|
-
const mutations = [];
|
|
1494
|
-
ancestor(ast, {
|
|
1495
|
-
AssignmentExpression(node, _state, ancestors) {
|
|
1496
|
-
if (node.operator !== "=" || node.left.type !== "MemberExpression" || memberName(node.left) !== "src")
|
|
1497
|
-
return;
|
|
1498
|
-
const selector = lookupSelector(node.left.object, scopeAt(ancestors));
|
|
1499
|
-
if (!selector) return;
|
|
1500
|
-
mutations.push({
|
|
1501
|
-
selector,
|
|
1502
|
-
operation: "src_assignment",
|
|
1503
|
-
raw: script.slice(node.start, node.end)
|
|
1504
|
-
});
|
|
1505
|
-
},
|
|
1506
|
-
CallExpression(node, _state, ancestors) {
|
|
1507
|
-
if (node.callee.type !== "MemberExpression" || memberName(node.callee) !== "setAttribute")
|
|
1508
|
-
return;
|
|
1509
|
-
if (literalString(node.arguments[0])?.toLowerCase() !== "src") return;
|
|
1510
|
-
const selector = lookupSelector(node.callee.object, scopeAt(ancestors));
|
|
1511
|
-
if (!selector) return;
|
|
1512
|
-
mutations.push({
|
|
1513
|
-
selector,
|
|
1514
|
-
operation: "set_attribute",
|
|
1515
|
-
raw: script.slice(node.start, node.end)
|
|
1516
|
-
});
|
|
1517
|
-
}
|
|
1518
|
-
});
|
|
1519
|
-
return mutations;
|
|
1520
|
-
} catch {
|
|
1521
|
-
return [];
|
|
1522
|
-
}
|
|
1523
|
-
}
|
|
1524
|
-
|
|
1525
1143
|
export {
|
|
1526
1144
|
COMPOSITION_CONTRACT_VERSION,
|
|
1527
1145
|
SPLIT_BOUNDARY_EPSILON_S,
|
|
@@ -1589,16 +1207,5 @@ export {
|
|
|
1589
1207
|
sameInstant,
|
|
1590
1208
|
spansOverlap,
|
|
1591
1209
|
spansShareTime,
|
|
1592
|
-
isInsideSpan
|
|
1593
|
-
COMPOSITION_VARIABLE_TYPES,
|
|
1594
|
-
FONT_ALIAS_KEYS,
|
|
1595
|
-
resolveAliasDisplayName,
|
|
1596
|
-
isFontValue,
|
|
1597
|
-
isImageValue,
|
|
1598
|
-
isCompositionVariable,
|
|
1599
|
-
isSafeMediaUrl,
|
|
1600
|
-
HTML_BODY_CSS_WIDTH_FIRST_RE,
|
|
1601
|
-
HTML_BODY_CSS_HEIGHT_FIRST_RE,
|
|
1602
|
-
VIEWPORT_META_SIZE_RE,
|
|
1603
|
-
extractMediaSrcMutations
|
|
1210
|
+
isInsideSpan
|
|
1604
1211
|
};
|