hyperframes 0.9.49 → 0.9.51
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-PALFYN7F.js → add-SERNROOY.js} +8 -8
- package/dist/{agentPromptGenerator-W7YECUWC.js → agentPromptGenerator-GVWX5P55.js} +13 -14
- package/dist/{animatedGifPrep-RGTZSKE4.js → animatedGifPrep-53UU67BG.js} +9 -8
- package/dist/api.d.ts +1 -0
- package/dist/api.js +30 -29
- package/dist/{asset-JI35ENTB.js → asset-MCBHJZCT.js} +2 -2
- package/dist/{assetCataloger-A3T63E76.js → assetCataloger-4DS44LB2.js} +8 -8
- package/dist/{audio-PWT3Y4ER.js → audio-RCVQDNXZ.js} +15 -15
- package/dist/{auth-HVB4YRTT.js → auth-MS46YSQ5.js} +2 -2
- package/dist/{autoUpdate-6DLBJZZW.js → autoUpdate-KECZLRZD.js} +2 -2
- package/dist/{avatars-VKB5R2JP.js → avatars-VYEPMXIO.js} +11 -11
- package/dist/{backgroundChecks-XCMKJT4Z.js → backgroundChecks-HAX5LQ2L.js} +3 -3
- package/dist/backgroundChecksWorker.js +3 -3
- package/dist/{batchRender-XYL2E7IX.js → batchRender-VKM4E7PI.js} +1 -1
- package/dist/{beats-C2HOZUAS.js → beats-WZSPVMQ4.js} +10 -10
- package/dist/{benchmark-TWKPWI27.js → benchmark-O5GWBFWE.js} +10 -9
- package/dist/{billing-74IFJYAX.js → billing-D6ZZNKPW.js} +8 -7
- package/dist/{browser-GG3NMOT2.js → browser-YHAPXFOK.js} +7 -7
- package/dist/{bundleWithLocalizedFonts-HBFTQBPU.js → bundleWithLocalizedFonts-Z5IHK62J.js} +1 -1
- package/dist/{capture-ZGZPBEA3.js → capture-5WTC5QWV.js} +4 -4
- package/dist/{capture-S76Z24SZ.js → capture-VAY75ASS.js} +31 -18
- package/dist/{captureCompositionFrame-GX7OQSDA.js → captureCompositionFrame-6DCRCIKA.js} +10 -10
- package/dist/{catalog-U5IHPRJZ.js → catalog-CH4H6C5E.js} +8 -8
- package/dist/{catch-up-XCQZZDVD.js → catch-up-KT6MHQBO.js} +8 -7
- package/dist/{check-ZEG6CTIC.js → check-6L7IEY5U.js} +33 -32
- package/dist/{checkAudio-SAEK5LIU.js → checkAudio-EAM7FCLJ.js} +10 -10
- package/dist/{checkBrowser-UDT2ROZ3.js → checkBrowser-IIMZI2LZ.js} +27 -26
- package/dist/{chunk-RWCYIF4C.js → chunk-2BRVSU2O.js} +3 -3
- package/dist/{chunk-IML2Z4HA.js → chunk-2L2A2HRW.js} +50 -20
- package/dist/{chunk-OT4X3UJO.js → chunk-3VPBUDK6.js} +1 -1
- package/dist/{chunk-QE2G4RUL.js → chunk-445BBSZS.js} +1 -1
- package/dist/{chunk-FWABCPJF.js → chunk-4Q2HYZZK.js} +1 -1
- package/dist/{chunk-XHLWZTCQ.js → chunk-4ZNB3EXI.js} +5 -5
- package/dist/{chunk-IXJNKHSW.js → chunk-5XSIAXIP.js} +2 -2
- package/dist/{chunk-67QXALQY.js → chunk-6PXVXIC7.js} +24 -8
- package/dist/{chunk-6TKGMCMZ.js → chunk-6WHTS73J.js} +1 -1
- package/dist/{chunk-FOIT542N.js → chunk-76HCZQ2W.js} +1 -1
- package/dist/{chunk-YZFBMMY2.js → chunk-77KEU6NG.js} +2 -2
- package/dist/{chunk-KZYOTTKM.js → chunk-7ADDESOW.js} +1 -1
- package/dist/{chunk-AVND7IBZ.js → chunk-7DJVLFIL.js} +2 -2
- package/dist/chunk-7RLMDAUO.js +60 -0
- package/dist/{chunk-PKIQ4ZR3.js → chunk-ACFNPUL7.js} +2 -2
- package/dist/{chunk-ISMKLYU5.js → chunk-AGTOSMG6.js} +1 -1
- package/dist/{chunk-ARKLBIF5.js → chunk-BPNCNZG5.js} +1 -1
- package/dist/{chunk-JZ7MGLDY.js → chunk-BQCW5T3M.js} +1 -1
- package/dist/{chunk-26UWY6Y7.js → chunk-BQWFOVLO.js} +1 -1
- package/dist/{chunk-SJLVYPVA.js → chunk-BSHZIPFP.js} +9 -9
- package/dist/{chunk-6RHYYH7J.js → chunk-CLRM7ZI5.js} +2 -2
- package/dist/{chunk-IWZDLLVZ.js → chunk-COHL5422.js} +3 -3
- package/dist/{chunk-W5LEGKUI.js → chunk-CTFMKRFI.js} +4 -4
- package/dist/{chunk-CPKLZATK.js → chunk-CTRYPHSE.js} +2 -2
- package/dist/{chunk-ESO4PNZJ.js → chunk-D3DY7Q6S.js} +2 -2
- package/dist/{chunk-PGY4WFKL.js → chunk-DMF4ML3Y.js} +1 -1
- package/dist/{chunk-BLZS4ZNW.js → chunk-DP7LWIKE.js} +1 -1
- package/dist/{chunk-D6YNLDSQ.js → chunk-ECJX6EJN.js} +2 -2
- package/dist/{chunk-SWNYAKJZ.js → chunk-EEVDBYVF.js} +1 -1
- package/dist/{chunk-IDX4AAHE.js → chunk-EMX4P4WP.js} +2 -2
- package/dist/{chunk-IHD5UW2O.js → chunk-EVHZDKB2.js} +2 -2
- package/dist/{chunk-DOFY4D3Q.js → chunk-EYXMXWME.js} +41 -16
- package/dist/{chunk-G5NF5RYM.js → chunk-FDBK2NOH.js} +4 -4
- package/dist/{chunk-YZJSU2XH.js → chunk-FXQ5577T.js} +4 -4
- package/dist/{chunk-JQPR3J5V.js → chunk-GTCPI2UK.js} +2 -2
- package/dist/{chunk-DNDMJYSA.js → chunk-H4LCNEA2.js} +131 -56
- package/dist/{chunk-L3IF3ICK.js → chunk-HGDOOG4T.js} +1 -1
- package/dist/{chunk-RAIAWYV6.js → chunk-HZLN3V3P.js} +1 -1
- package/dist/{chunk-2IIKGFO3.js → chunk-I4XV2UMQ.js} +1 -1
- package/dist/{chunk-M3MXR3HG.js → chunk-I6SCA2ME.js} +22 -11
- package/dist/{chunk-2RNRAB6U.js → chunk-ILQAOOR4.js} +1 -1
- package/dist/{chunk-7IQ4S5B3.js → chunk-IUIFNZTJ.js} +21 -21
- package/dist/{chunk-ULPGXTB4.js → chunk-IZQDQ5AN.js} +1 -1
- package/dist/{chunk-PXYO7CSG.js → chunk-K27EQ4Z4.js} +4 -4
- package/dist/{chunk-UETMAXZF.js → chunk-K4SWGMPO.js} +9 -4
- package/dist/{chunk-7CLDXOEJ.js → chunk-KLIVZ5VG.js} +2 -1
- package/dist/{chunk-VC77JQWW.js → chunk-KQFGINDM.js} +309 -197
- package/dist/{chunk-CYWEBM2Q.js → chunk-KQRSEH4X.js} +1 -1
- package/dist/chunk-L2U4ISSS.js +93 -0
- package/dist/{chunk-GJUX6ELV.js → chunk-LJFGZKVL.js} +11 -11
- package/dist/{chunk-BIFCKMA2.js → chunk-LOKPWAFW.js} +7 -7
- package/dist/{chunk-W4JWPYLU.js → chunk-MQGRMXFN.js} +50 -11
- package/dist/{chunk-SC2UNTNA.js → chunk-MRJQQDZR.js} +2 -2
- package/dist/{chunk-INKZ3QC6.js → chunk-MZD5KJDU.js} +12 -12
- package/dist/{chunk-DLRGADJX.js → chunk-N5IAKDUQ.js} +1 -1
- package/dist/{chunk-GWTNXGIH.js → chunk-NFRKPLTJ.js} +1 -1
- package/dist/{chunk-UL2P4PMR.js → chunk-P3K7LZCY.js} +1 -1
- package/dist/{chunk-MYEVOW4Z.js → chunk-PALZMYFH.js} +2 -2
- package/dist/{chunk-PQFUF5XD.js → chunk-PNJ4M4QZ.js} +2 -2
- package/dist/{chunk-TCNUA5RK.js → chunk-QKCU2J2V.js} +4 -4
- package/dist/{chunk-PNHLR7UQ.js → chunk-R5OSZK62.js} +8 -8
- package/dist/{chunk-MXOWNQCI.js → chunk-R64WJS45.js} +2 -2
- package/dist/{chunk-DS3IJC74.js → chunk-RQX5C7JD.js} +1 -1
- package/dist/{chunk-NQW4IK5U.js → chunk-SBQLLGXW.js} +2 -2
- package/dist/{chunk-IS6FYK3E.js → chunk-SFJWTPOF.js} +1 -1
- package/dist/{chunk-23PJ2IA5.js → chunk-SMUNLDEY.js} +2 -2
- package/dist/{chunk-DDXHYDJW.js → chunk-TDQUQAW5.js} +3 -3
- package/dist/{chunk-B2DE7LZ6.js → chunk-TE3CITOB.js} +2 -2
- package/dist/{chunk-PWMGT73E.js → chunk-TJXXLWQ4.js} +2 -2
- package/dist/{chunk-5TJRJXFQ.js → chunk-TQMTMD72.js} +1 -1
- package/dist/{chunk-2HNZSVMA.js → chunk-TQW3G23G.js} +10 -10
- package/dist/{chunk-HYMWSWKM.js → chunk-U3LWQGCD.js} +7 -2
- package/dist/{chunk-7SY3DERR.js → chunk-UBHBB3TB.js} +1 -1
- package/dist/{chunk-LS2FSESG.js → chunk-UHTWJOJ6.js} +56 -3
- package/dist/{chunk-6OPBJLMM.js → chunk-USYPUTGC.js} +1 -1
- package/dist/{chunk-AOITLZJO.js → chunk-UX2KMUKC.js} +6 -2
- package/dist/{chunk-6LDIZ4GJ.js → chunk-UX2SUCRS.js} +1 -1
- package/dist/{chunk-C4YBN5X6.js → chunk-UZGN5MTD.js} +1 -1
- package/dist/{chunk-LGXOIEXD.js → chunk-V7M6HV23.js} +1 -1
- package/dist/{chunk-EPQC3FGZ.js → chunk-WFQJ6EJ6.js} +19 -4
- package/dist/{chunk-Y4CPI5F6.js → chunk-WIZBFUBI.js} +2 -2
- package/dist/{chunk-S6TSXBWT.js → chunk-WQ2N2AG7.js} +4 -4
- package/dist/{chunk-2PZSUSHI.js → chunk-WQ3WMTSS.js} +3 -3
- package/dist/{chunk-37NCCCVV.js → chunk-WSZJS4QC.js} +5 -34
- package/dist/{chunk-UDFMNCZR.js → chunk-XEMS4TXW.js} +1 -1
- package/dist/{chunk-2KPNFTOV.js → chunk-XILU2D2B.js} +1 -1
- package/dist/{chunk-ADY66LYZ.js → chunk-XPAQK6E4.js} +9 -9
- package/dist/{chunk-L4XB67KR.js → chunk-YQSW3GXC.js} +2 -2
- package/dist/{chunk-6D2TEACV.js → chunk-ZXIWAD2G.js} +1 -1
- package/dist/{clean-XXEL3ZBK.js → clean-E6CXNNF5.js} +20 -19
- package/dist/cli.js +62 -62
- package/dist/{cloud-XXMDGEMK.js → cloud-2M4WWTSQ.js} +4 -4
- package/dist/{cloudrun-XXGMWBUO.js → cloudrun-EULFHQQL.js} +1 -1
- package/dist/{compare-JUVSFZRQ.js → compare-MHFCJIWI.js} +24 -23
- package/dist/{compiler-XTVXLGQA.js → compiler-DUG4GFRI.js} +3 -3
- package/dist/{component-KEJ34SM2.js → component-KRPXKVZH.js} +3 -3
- package/dist/{compositions-BF3NDKKG.js → compositions-MXESIGTW.js} +12 -12
- package/dist/{curve-QHLJ452Y.js → curve-BE2B7NIC.js} +11 -11
- package/dist/{cuts-VKKXIQPW.js → cuts-7GJF6CE2.js} +12 -12
- package/dist/{delete-GEZVZPWY.js → delete-6NUSXGFC.js} +2 -2
- package/dist/{deploy-ORQ7QDRG.js → deploy-D3NO4UPN.js} +2 -2
- package/dist/{describeProject-LEBOC6CL.js → describeProject-6Y7GXXYM.js} +7 -7
- package/dist/{destroy-ANCSST2S.js → destroy-6ESKQA5T.js} +2 -2
- package/dist/{diff-5X65JPB2.js → diff-NB4SANJX.js} +25 -25
- package/dist/{dist-4ZDHU5RE.js → dist-2YJCNIWI.js} +2 -2
- package/dist/{dist-BKWVQR7A.js → dist-MNFB4YKV.js} +9 -8
- package/dist/{dist-YX7FMBUD.js → dist-MXWEGMRB.js} +1 -1
- package/dist/{doctor-WUL4VESK.js → doctor-JAZHU2BT.js} +13 -13
- package/dist/{energy-L2VWHVVA.js → energy-X5E2NPBL.js} +12 -12
- package/dist/{events-3SKWRLOR.js → events-5QYPAD2S.js} +5 -4
- package/dist/{events-5EEASGJC.js → events-JWW4ASN3.js} +7 -6
- package/dist/{events-7FFAOKAE.js → events-XA2QQBP7.js} +14 -14
- package/dist/{execute-6VLBSJWW.js → execute-N7L5W7DV.js} +20 -19
- package/dist/{extract-NW3KYNN4.js → extract-YQAMVIVK.js} +12 -12
- package/dist/{face-4S5NWVNA.js → face-M7VZIIEP.js} +12 -12
- package/dist/{feedback-3OW5JVE4.js → feedback-DX6N4RT3.js} +13 -12
- package/dist/{ffmpeg-64HDYTRA.js → ffmpeg-U2UP72FB.js} +7 -7
- package/dist/{figma-SN5Z2GUZ.js → figma-BMMVU5ML.js} +3 -3
- package/dist/fontLocalizeCli.js +12 -11
- package/dist/{frames-NZNNVA3R.js → frames-XB4N4WW2.js} +13 -13
- package/dist/{generate-22O776FD.js → generate-M5ACNHVM.js} +18 -18
- package/dist/{get-O6YCY5BU.js → get-65JSCBTR.js} +2 -2
- package/dist/{gpuPolicy-26UL7BND.js → gpuPolicy-XC2BONM7.js} +7 -7
- package/dist/{grade-compare-6JGG6AUM.js → grade-compare-LPDDN5LL.js} +25 -24
- package/dist/{heifImagePrep-6ZP77OL4.js → heifImagePrep-QMFBHJQG.js} +10 -9
- package/dist/{help-4IHXYFYU.js → help-VLKAJCUD.js} +1 -1
- package/dist/{history-ACOL6DPJ.js → history-XPGU76VB.js} +10 -9
- package/dist/hyperframes-player.global.js +1 -1
- package/dist/hyperframes-slideshow.global.js +14 -14
- package/dist/{info-MVEC7EO5.js → info-DGY5NFZJ.js} +14 -14
- package/dist/{init-YQRSQKD2.js → init-OYK5QV3A.js} +26 -26
- package/dist/{ink-A63OPAUS.js → ink-UJ6T72I6.js} +12 -12
- package/dist/{inspect-5FWI42ZE.js → inspect-GNE5FQDJ.js} +25 -24
- package/dist/{installer-2LTM4GWP.js → installer-FI6HT2FW.js} +1 -1
- package/dist/{keyframes-4ANCPAXZ.js → keyframes-MFGXRBMS.js} +10 -9
- package/dist/{lambda-A7UY44ZG.js → lambda-OOESQH7O.js} +11 -11
- package/dist/{layout-7GGOEVCP.js → layout-67GYUHRL.js} +25 -24
- package/dist/{lint-AYAPUYJA.js → lint-GW3AGJO3.js} +10 -10
- package/dist/{lintProject-7C4U6NHF.js → lintProject-G4MXY4YA.js} +2 -2
- package/dist/{list-TGPJOBFL.js → list-FMAPGP4I.js} +2 -2
- package/dist/{localPage-YJNVGFUR.js → localPage-76LUQEMF.js} +7 -7
- package/dist/{login-UFEGKTWJ.js → login-YOMRKZTT.js} +4 -4
- package/dist/{look-TS4DMBJZ.js → look-CTRMUUY6.js} +12 -12
- package/dist/{manager-25RJ4IZN.js → manager-TMKN4DX5.js} +3 -3
- package/dist/{manager-RN3IP5UM.js → manager-ZNADMKUJ.js} +8 -8
- package/dist/{measure-L2FJMFZQ.js → measure-RPPQJGKH.js} +11 -11
- package/dist/{media-treatment-JB5W5JI4.js → media-treatment-UZ4L4MDB.js} +14 -14
- package/dist/{media-use-TMR5E5WJ.js → media-use-B7OLG3J3.js} +3 -3
- package/dist/{models-R5L2ZQFX.js → models-ZXXLZBLQ.js} +11 -11
- package/dist/{motionShot-FXPW7WFS.js → motionShot-DBW6UXTD.js} +14 -14
- package/dist/{normalize-audio-IWEUGFKJ.js → normalize-audio-L4AE5ASS.js} +10 -9
- package/dist/{open-YKOIAP7J.js → open-YBZJF2HO.js} +8 -7
- package/dist/{parakeetRunner-BMBL6UGF.js → parakeetRunner-ZLFQAJ45.js} +13 -13
- package/dist/{pipeline-HRJ3VN5Z.js → pipeline-3L4HX4CH.js} +10 -10
- package/dist/{plan-IIQ7SXWV.js → plan-R4I5XT6L.js} +14 -14
- package/dist/{play-FPIHIX3E.js → play-J54FH42B.js} +19 -18
- package/dist/{preflight-4AV5WOGU.js → preflight-SMPZLLLL.js} +10 -10
- package/dist/{present-4K3VJUM7.js → present-AXOSYIJE.js} +20 -19
- package/dist/{preview-2NIQ2EBG.js → preview-6VDMGAQI.js} +14 -14
- package/dist/{probe-O42OCKVH.js → probe-CXIQVZAM.js} +12 -12
- package/dist/{producer-MTQYIIGW.js → producer-EQOO6NE2.js} +1 -1
- package/dist/{projectConfig-LSJSU4UR.js → projectConfig-VPL64JBD.js} +1 -1
- package/dist/{publicNetwork-CWKAKZXP.js → publicNetwork-GFQID4Q6.js} +1 -1
- package/dist/{publication-4EYVOO47.js → publication-ST3VFFWM.js} +1 -1
- package/dist/{publish-QU6NA5UG.js → publish-DCOFEASH.js} +13 -12
- package/dist/{remove-background-55RUOFXG.js → remove-background-OHGBEI7B.js} +11 -11
- package/dist/{render-UWWZFXK5.js → render-CMY2ELLE.js} +23 -22
- package/dist/{render-IFRE426H.js → render-MG5MX45D.js} +1 -1
- package/dist/{render-WRCZGKUW.js → render-ONBJRZRU.js} +30 -29
- package/dist/{render-batch-2BWEMPAQ.js → render-batch-C3XGAQGX.js} +1 -1
- package/dist/renderSetupWorker.js +5 -5
- package/dist/{resolver-PM56BNET.js → resolver-AGMKICJW.js} +1 -1
- package/dist/{reverse-HIJSN6T6.js → reverse-UIQAE3DC.js} +1 -1
- package/dist/{run-GGMHXAKM.js → run-NQBD5RDR.js} +2 -2
- package/dist/{screenshotCapture-F2G3ASF3.js → screenshotCapture-PUK46H3O.js} +7 -7
- package/dist/{service-DLHBDMEI.js → service-HULLICEP.js} +12 -12
- package/dist/{share-GS3Z4J2Z.js → share-VKY5LLZ7.js} +15 -15
- package/dist/{sherpa-VL2QSAMK.js → sherpa-WDVEYQHZ.js} +12 -12
- package/dist/{skills-LXKJRUCF.js → skills-6K2EZEJK.js} +10 -9
- package/dist/{skillsUpdateCheck-XMFKI3F2.js → skillsUpdateCheck-UXRH4JIW.js} +3 -3
- package/dist/{slideshow-ARJR22W4.js → slideshow-PC3BBO5F.js} +1 -1
- package/dist/{snapshot-6BVWACEB.js → snapshot-UDJB33E5.js} +32 -31
- package/dist/{src-5DALALRV.js → src-66ZYEQPG.js} +14 -10
- package/dist/{src-K6EIKBHK.js → src-6GRYTLZ5.js} +16 -10
- package/dist/{start-GSVOQ7VY.js → start-VJPLZ7YN.js} +16 -16
- package/dist/{staticProjectServer-PXZAGXPM.js → staticProjectServer-5QU3ICQV.js} +14 -13
- package/dist/{status-U532HK6C.js → status-SZ4QKSVN.js} +7 -7
- package/dist/studio/assets/{hyperframes-player-DhaQoeHg.js → hyperframes-player-i4dtJlrd.js} +1 -1
- package/dist/studio/assets/{index-qILK-NRY.js → index-Be_pDhIw.js} +1 -1
- package/dist/studio/assets/{index-DPeGppVA.js → index-Dvlt50yp.js} +117 -117
- package/dist/studio/assets/{pausedVideoDecoder-DqCJ5lI8.js → pausedVideoDecoder-C_20YkSR.js} +1 -1
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-BTDNUTUL.js → studio-api-OJEU24EG.js} +9 -8
- package/dist/{studioServer-ZDIVHU5Q.js → studioServer-VRYGQOGN.js} +48 -47
- package/dist/{sync-KXUIN2XW.js → sync-NSGF4MPJ.js} +12 -12
- package/dist/{system-BONOLEJX.js → system-I5KGZTUG.js} +3 -2
- package/dist/{telemetry-BE6NYAAP.js → telemetry-Q45SZSZC.js} +7 -6
- package/dist/{templates-6DXDZKQT.js → templates-X7UD7HRJ.js} +8 -7
- package/dist/{timeline-DYU2RWSB.js → timeline-JVN34ETY.js} +19 -18
- package/dist/{tokens-SSWEYFOF.js → tokens-GWFTTI5U.js} +2 -2
- package/dist/{transcribe-EHMQS2JF.js → transcribe-7MADUIYX.js} +11 -11
- package/dist/{transcribe-7E653TIR.js → transcribe-PJRBKRPT.js} +21 -21
- package/dist/{update-5PNT24HU.js → update-D3V2PW3U.js} +11 -10
- package/dist/{updateCheck-DS6TTOUW.js → updateCheck-5G4ZILYA.js} +2 -2
- package/dist/{upgrade-EHJ32IGT.js → upgrade-4BNSDRCV.js} +3 -3
- package/dist/{urlDownloader-6ZROXAQ7.js → urlDownloader-RLZ7H7NM.js} +6 -6
- package/dist/{validate-OPKF4E6C.js → validate-JW6LLGWB.js} +23 -22
- package/dist/{video-BRGYDCC2.js → video-WOBS7YW2.js} +8 -8
- package/dist/{voices-CYPYVEAI.js → voices-E6WE2Q2U.js} +16 -16
- package/dist/warmCheck.js +33 -32
- package/package.json +1 -1
- package/dist/chunk-47JAY366.js +0 -44
|
@@ -13,23 +13,25 @@ import {
|
|
|
13
13
|
rewriteHtmlAttributes,
|
|
14
14
|
rewriteStyleBlocks,
|
|
15
15
|
stagedSize
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-TDQUQAW5.js";
|
|
17
17
|
import {
|
|
18
18
|
probeAudio
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-KLIVZ5VG.js";
|
|
20
20
|
import {
|
|
21
21
|
findFFmpeg,
|
|
22
22
|
findFFprobe,
|
|
23
23
|
getFFmpegInstallHint
|
|
24
|
-
} from "./chunk-
|
|
25
|
-
import {
|
|
26
|
-
AUDIO_EXTS,
|
|
27
|
-
CONVERTIBLE_IMAGE_EXTS,
|
|
28
|
-
VIDEO_EXTS
|
|
29
|
-
} from "./chunk-37NCCCVV.js";
|
|
24
|
+
} from "./chunk-UZGN5MTD.js";
|
|
30
25
|
import {
|
|
31
26
|
formatBytes
|
|
32
27
|
} from "./chunk-ZLTB7ZCQ.js";
|
|
28
|
+
import {
|
|
29
|
+
AUDIO_EXTS,
|
|
30
|
+
CONVERTIBLE_IMAGE_EXTS,
|
|
31
|
+
MEDIA_INPUT_ARGS,
|
|
32
|
+
VIDEO_EXTS,
|
|
33
|
+
startsAsMediaPlaylist
|
|
34
|
+
} from "./chunk-7RLMDAUO.js";
|
|
33
35
|
import {
|
|
34
36
|
parseAnimatedGifMetadata
|
|
35
37
|
} from "./chunk-U7ZCBWNM.js";
|
|
@@ -268,6 +270,7 @@ async function probeVideo(path) {
|
|
|
268
270
|
"stream=codec_name,pix_fmt,color_primaries,color_transfer,color_space:stream_tags",
|
|
269
271
|
"-of",
|
|
270
272
|
"json",
|
|
273
|
+
...MEDIA_INPUT_ARGS,
|
|
271
274
|
"--",
|
|
272
275
|
path
|
|
273
276
|
]);
|
|
@@ -304,10 +307,16 @@ function hdrColorArgs({ color }) {
|
|
|
304
307
|
}
|
|
305
308
|
var seconds = (t) => (Math.floor(t * 1e6) / 1e6).toFixed(6);
|
|
306
309
|
async function segmentArgs(sourcePath, decoder, segments, media) {
|
|
307
|
-
if (media === "image") return [...decoder, "-i", sourcePath];
|
|
310
|
+
if (media === "image") return [...decoder, ...MEDIA_INPUT_ARGS, "-i", sourcePath];
|
|
308
311
|
const audio = await keptAudio(sourcePath, media);
|
|
309
312
|
const cuts = segments?.length ? segments : [void 0];
|
|
310
|
-
const inputs = cuts.flatMap((s) => [
|
|
313
|
+
const inputs = cuts.flatMap((s) => [
|
|
314
|
+
...decoder,
|
|
315
|
+
...seekArgs(s),
|
|
316
|
+
...MEDIA_INPUT_ARGS,
|
|
317
|
+
"-i",
|
|
318
|
+
sourcePath
|
|
319
|
+
]);
|
|
311
320
|
const video = media === "video";
|
|
312
321
|
return [
|
|
313
322
|
...inputs,
|
|
@@ -315,7 +324,7 @@ async function segmentArgs(sourcePath, decoder, segments, media) {
|
|
|
315
324
|
];
|
|
316
325
|
}
|
|
317
326
|
async function keptAudio(sourcePath, media) {
|
|
318
|
-
const audio = (await probeAudio(sourcePath))?.audioStream ?? null;
|
|
327
|
+
const audio = (await probeAudio(sourcePath, MEDIA_INPUT_ARGS))?.audioStream ?? null;
|
|
319
328
|
if (media === "audio" && audio === null) {
|
|
320
329
|
throw new Error("the file has no audio track ffmpeg can decode");
|
|
321
330
|
}
|
|
@@ -354,7 +363,15 @@ async function durationSeconds(sourcePath) {
|
|
|
354
363
|
const ffprobe = findFFprobe();
|
|
355
364
|
if (!ffprobe) return null;
|
|
356
365
|
const { stdout } = await execFileAsync(ffprobe, [
|
|
357
|
-
|
|
366
|
+
"-v",
|
|
367
|
+
"error",
|
|
368
|
+
"-show_entries",
|
|
369
|
+
"format=duration",
|
|
370
|
+
"-of",
|
|
371
|
+
"csv=p=0",
|
|
372
|
+
...MEDIA_INPUT_ARGS,
|
|
373
|
+
"--",
|
|
374
|
+
sourcePath
|
|
358
375
|
]);
|
|
359
376
|
const value = Number(stdout.trim());
|
|
360
377
|
return Number.isFinite(value) && value > 0 ? value : null;
|
|
@@ -425,6 +442,7 @@ async function isAnimatedImage(path) {
|
|
|
425
442
|
"stream=nb_frames",
|
|
426
443
|
"-of",
|
|
427
444
|
"csv=p=0",
|
|
445
|
+
...MEDIA_INPUT_ARGS,
|
|
428
446
|
"--",
|
|
429
447
|
path
|
|
430
448
|
]);
|
|
@@ -447,6 +465,7 @@ async function trimGrid(sourcePath, kind) {
|
|
|
447
465
|
"stream=r_frame_rate,avg_frame_rate",
|
|
448
466
|
"-of",
|
|
449
467
|
"csv=p=0",
|
|
468
|
+
...MEDIA_INPUT_ARGS,
|
|
450
469
|
"--",
|
|
451
470
|
sourcePath
|
|
452
471
|
]);
|
|
@@ -471,6 +490,7 @@ async function hasVideoStream(sourcePath) {
|
|
|
471
490
|
"stream=codec_type",
|
|
472
491
|
"-of",
|
|
473
492
|
"csv=p=0",
|
|
493
|
+
...MEDIA_INPUT_ARGS,
|
|
474
494
|
"--",
|
|
475
495
|
sourcePath
|
|
476
496
|
]);
|
|
@@ -543,10 +563,14 @@ function readHead(file) {
|
|
|
543
563
|
closeSync(fd);
|
|
544
564
|
}
|
|
545
565
|
}
|
|
566
|
+
function mediaFileKind(path, file) {
|
|
567
|
+
const kind = mediaKind(path);
|
|
568
|
+
return kind && !startsAsMediaPlaylist(readHead(file)) ? kind : null;
|
|
569
|
+
}
|
|
546
570
|
async function planFile(ctx, path, file) {
|
|
547
|
-
let kind = mediaKind(path);
|
|
548
571
|
const size = stagedSize(file);
|
|
549
|
-
|
|
572
|
+
let kind = size < OFFLOAD_MIN_BYTES ? null : mediaFileKind(path, file);
|
|
573
|
+
if (!kind) return null;
|
|
550
574
|
const ext = extname(path).toLowerCase();
|
|
551
575
|
const accepted = ACCEPTED[ext];
|
|
552
576
|
let asIs = accepted !== void 0 && size <= accepted.maxBytes && bytesMatchExtension(ext, readHead(file));
|
|
@@ -630,7 +654,7 @@ async function prepareEntryGifs(ctx, fileMap) {
|
|
|
630
654
|
if (!html || !/\.gif\b/i.test(html)) return;
|
|
631
655
|
const sourceAssets = entryGifSources(ctx, entryPath, html);
|
|
632
656
|
if (!sourceAssets) return;
|
|
633
|
-
const prep = ctx.opts.gifPrep ?? (await import("./src-
|
|
657
|
+
const prep = ctx.opts.gifPrep ?? (await import("./src-66ZYEQPG.js")).prepareAnimatedGifInputs;
|
|
634
658
|
const outputDir = mkdtempSync(join(tmpdir(), "hf-offload-gif-"));
|
|
635
659
|
ctx.tempFiles.push(outputDir);
|
|
636
660
|
const result = await prep(html, {
|
|
@@ -639,7 +663,8 @@ async function prepareEntryGifs(ctx, fileMap) {
|
|
|
639
663
|
outputDir,
|
|
640
664
|
outputSrcPrefix: posix.relative(posix.dirname(entryPath), GIF_PREFIX),
|
|
641
665
|
cacheDir: hyperframesCacheDir("animated-gif"),
|
|
642
|
-
sourceAssets
|
|
666
|
+
sourceAssets,
|
|
667
|
+
assetRoot: outputDir
|
|
643
668
|
});
|
|
644
669
|
if (result.preparedGifs.length === 0) return;
|
|
645
670
|
fileMap.set(entryPath, Buffer.from(result.html, "utf-8"));
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
} from "./chunk-JJ47LVJ7.js";
|
|
19
19
|
import {
|
|
20
20
|
trackSkillsInstallSkipped
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-77KEU6NG.js";
|
|
22
22
|
import {
|
|
23
23
|
diag
|
|
24
24
|
} from "./chunk-MCDNAIFF.js";
|
|
@@ -39,11 +39,11 @@ import {
|
|
|
39
39
|
isCoreSkill,
|
|
40
40
|
presentSkills,
|
|
41
41
|
retiredSkillNotice
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-CTRYPHSE.js";
|
|
43
43
|
import {
|
|
44
44
|
NO_UPDATE_NOTICE,
|
|
45
45
|
withMeta
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-3VPBUDK6.js";
|
|
47
47
|
import {
|
|
48
48
|
failureMessage,
|
|
49
49
|
jsonFailure
|
|
@@ -54,7 +54,7 @@ import {
|
|
|
54
54
|
} from "./chunk-66W5IWLO.js";
|
|
55
55
|
import {
|
|
56
56
|
VERSION
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-TE3CITOB.js";
|
|
58
58
|
|
|
59
59
|
// src/commands/skills.ts
|
|
60
60
|
import { execFileSync, spawn } from "child_process";
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
import {
|
|
16
16
|
resetTelemetryPostureCache,
|
|
17
17
|
trackEvent
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-SMUNLDEY.js";
|
|
19
19
|
import {
|
|
20
20
|
AuthError,
|
|
21
21
|
ErrLoginChanged,
|
|
@@ -3635,9 +3635,9 @@ async function prepareShareRender(dir) {
|
|
|
3635
3635
|
const id = randomUUID9();
|
|
3636
3636
|
const output = join8(folder, `${id}.mp4`);
|
|
3637
3637
|
const [{ createRenderPlan }, { executeRenderPlan }, render] = await Promise.all([
|
|
3638
|
-
import("./plan-
|
|
3639
|
-
import("./execute-
|
|
3640
|
-
import("./render-
|
|
3638
|
+
import("./plan-R4I5XT6L.js"),
|
|
3639
|
+
import("./execute-N7L5W7DV.js"),
|
|
3640
|
+
import("./render-ONBJRZRU.js")
|
|
3641
3641
|
]);
|
|
3642
3642
|
const target = join8(stateFolder, "share-render.json");
|
|
3643
3643
|
const temporary = `${target}.${id}.tmp`;
|
|
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
fetchLocalPageUrl
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-DMF4ML3Y.js";
|
|
10
10
|
import {
|
|
11
11
|
ensureCaptureDirSync,
|
|
12
12
|
writeCaptureFileSync
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
import {
|
|
22
22
|
isBlockedNetworkHost,
|
|
23
23
|
publicRequest
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-UHTWJOJ6.js";
|
|
25
25
|
import {
|
|
26
26
|
DOMParser,
|
|
27
27
|
parseHTML
|
|
@@ -71,7 +71,7 @@ import {
|
|
|
71
71
|
isSceneLikeCompositionId,
|
|
72
72
|
parseSlideshowManifest,
|
|
73
73
|
resolveSlideshow
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-WFQJ6EJ6.js";
|
|
75
75
|
import {
|
|
76
76
|
__commonJS,
|
|
77
77
|
__require,
|
|
@@ -4013,7 +4013,6 @@ var TIMELINE_REGISTRY_INIT_PATTERN = /window\.__timelines\s*=\s*window\.__timeli
|
|
|
4013
4013
|
var TIMELINE_REGISTRY_OBJECT_LITERAL_PATTERN = /window\.__timelines\s*=\s*\{\s*(?:["'][^"']+["']|[A-Za-z_$][\w$]*)\s*:/i;
|
|
4014
4014
|
var TIMELINE_REGISTRY_ASSIGN_PATTERN = /window\.__timelines(?:\[[^\]]+\]|\.[A-Za-z_$][\w$]*)\s*=/i;
|
|
4015
4015
|
var WINDOW_TIMELINE_ASSIGN_PATTERN = /window\.__timelines(?:\[\s*(?:["']([^"']+)["']|[A-Za-z_$][\w$.]*)\s*\]|\.\s*([A-Za-z_$][\w$]*))\s*=\s*([A-Za-z_$][\w$]*)/i;
|
|
4016
|
-
var INVALID_SCRIPT_CLOSE_PATTERN = /<script[^>]*>[\s\S]*?<\s*\/\s*script(?!>)/i;
|
|
4017
4016
|
var TIMELINE_REGISTRY_KEY_PATTERN = /window\.__timelines(?:\[\s*["']([^"']+)["']\s*\]|\.\s*([A-Za-z_$][\w$]*))\s*(?:\?\?|\|\||&&)?=/g;
|
|
4018
4017
|
var TIMELINE_REGISTRY_OBJECT_OPEN_PATTERN = /window\.__timelines\s*=\s*\{/i;
|
|
4019
4018
|
var TIMELINE_REGISTRY_OBJECT_ENTRY_PATTERN = /(?:["']([^"']+)["']|([A-Za-z_$][\w$]*))\s*:\s*[A-Za-z_$][\w$]*/g;
|
|
@@ -4823,6 +4822,116 @@ function buildLintContext(html, options = {}) {
|
|
|
4823
4822
|
options
|
|
4824
4823
|
};
|
|
4825
4824
|
}
|
|
4825
|
+
function execFrom(pattern, source, from) {
|
|
4826
|
+
pattern.lastIndex = from;
|
|
4827
|
+
return pattern.exec(source);
|
|
4828
|
+
}
|
|
4829
|
+
function* blockComments(source) {
|
|
4830
|
+
for (let from = 0; ; ) {
|
|
4831
|
+
const start = source.indexOf("/*", from);
|
|
4832
|
+
if (start < 0) return;
|
|
4833
|
+
const close = source.indexOf("*/", start + 2);
|
|
4834
|
+
if (close < 0) return;
|
|
4835
|
+
yield { index: start, text: source.slice(start, close + 2) };
|
|
4836
|
+
from = close + 2;
|
|
4837
|
+
}
|
|
4838
|
+
}
|
|
4839
|
+
function replaceBlockComments(source, replacement) {
|
|
4840
|
+
let out = "";
|
|
4841
|
+
let kept = 0;
|
|
4842
|
+
for (const { index, text } of blockComments(source)) {
|
|
4843
|
+
out += source.slice(kept, index) + replacement;
|
|
4844
|
+
kept = index + text.length;
|
|
4845
|
+
}
|
|
4846
|
+
return out + source.slice(kept);
|
|
4847
|
+
}
|
|
4848
|
+
function hasInvalidScriptClose(source) {
|
|
4849
|
+
const open = execFrom(/<script/gi, source, 0);
|
|
4850
|
+
const gt = open ? source.indexOf(">", open.index + open[0].length) : -1;
|
|
4851
|
+
return gt >= 0 && execFrom(/<\s*\/\s*script(?!>)/gi, source, gt + 1) !== null;
|
|
4852
|
+
}
|
|
4853
|
+
function emptyStyleBlocks(source) {
|
|
4854
|
+
let out = "";
|
|
4855
|
+
let kept = 0;
|
|
4856
|
+
const opener = /<style\b/gi;
|
|
4857
|
+
for (let open = execFrom(opener, source, 0); open; open = opener.exec(source)) {
|
|
4858
|
+
const gt = source.indexOf(">", open.index + 6);
|
|
4859
|
+
const close = gt < 0 ? null : execFrom(/<\/style>/gi, source, gt + 1);
|
|
4860
|
+
if (!close) break;
|
|
4861
|
+
out += `${source.slice(kept, open.index)}<style></style>`;
|
|
4862
|
+
kept = close.index + close[0].length;
|
|
4863
|
+
opener.lastIndex = kept;
|
|
4864
|
+
}
|
|
4865
|
+
return out + source.slice(kept);
|
|
4866
|
+
}
|
|
4867
|
+
function styleTagTokens(source) {
|
|
4868
|
+
const tokens = [];
|
|
4869
|
+
const token = /<script\b|<style\b|<\/style\s*>/gi;
|
|
4870
|
+
let scriptsClose = true;
|
|
4871
|
+
for (let match = token.exec(source); match; match = token.exec(source)) {
|
|
4872
|
+
if (!/^<script/i.test(match[0])) {
|
|
4873
|
+
tokens.push(match[0]);
|
|
4874
|
+
continue;
|
|
4875
|
+
}
|
|
4876
|
+
if (!scriptsClose) continue;
|
|
4877
|
+
const close = execFrom(/<\/script/gi, source, match.index + 7);
|
|
4878
|
+
const gt = close ? source.indexOf(">", close.index + 8) : -1;
|
|
4879
|
+
if (gt < 0) scriptsClose = false;
|
|
4880
|
+
else token.lastIndex = gt + 1;
|
|
4881
|
+
}
|
|
4882
|
+
return tokens;
|
|
4883
|
+
}
|
|
4884
|
+
var PROTECTED_NAMES = "style|script|template|title|noscript|pre|code|textarea|text";
|
|
4885
|
+
function protectedBlockRanges(source) {
|
|
4886
|
+
const ranges = [];
|
|
4887
|
+
const unclosed = /* @__PURE__ */ new Set();
|
|
4888
|
+
const lastGt = source.lastIndexOf(">");
|
|
4889
|
+
const opener = new RegExp(`<(${PROTECTED_NAMES})\\b`, "gi");
|
|
4890
|
+
for (let open = opener.exec(source); open; open = opener.exec(source)) {
|
|
4891
|
+
const name = open[1].toLowerCase();
|
|
4892
|
+
if (unclosed.has(name)) continue;
|
|
4893
|
+
const gt = source.indexOf(">", open.index + open[0].length);
|
|
4894
|
+
if (gt < 0) break;
|
|
4895
|
+
const end = protectedBlockEnd(source, name, gt + 1, lastGt);
|
|
4896
|
+
if (end < 0) {
|
|
4897
|
+
unclosed.add(name);
|
|
4898
|
+
continue;
|
|
4899
|
+
}
|
|
4900
|
+
ranges.push({ start: open.index, end });
|
|
4901
|
+
opener.lastIndex = end;
|
|
4902
|
+
}
|
|
4903
|
+
return ranges;
|
|
4904
|
+
}
|
|
4905
|
+
function protectedBlockEnd(source, name, from, lastGt) {
|
|
4906
|
+
const closer = new RegExp(`</${name}`, "gi");
|
|
4907
|
+
for (let close = execFrom(closer, source, from); close; close = closer.exec(source)) {
|
|
4908
|
+
const after = close.index + close[0].length;
|
|
4909
|
+
if (after > lastGt) return -1;
|
|
4910
|
+
if (source[after] === ">") return after + 1;
|
|
4911
|
+
if (/\s/.test(source[after] ?? "")) return source.indexOf(">", after) + 1;
|
|
4912
|
+
}
|
|
4913
|
+
return -1;
|
|
4914
|
+
}
|
|
4915
|
+
function htmlTagTracker(source) {
|
|
4916
|
+
let i = 0;
|
|
4917
|
+
let inTag = false;
|
|
4918
|
+
let quote = null;
|
|
4919
|
+
return (index) => {
|
|
4920
|
+
for (; i < index; i++) {
|
|
4921
|
+
const char = source[i];
|
|
4922
|
+
if (!inTag) inTag = char === "<";
|
|
4923
|
+
else if (quote) quote = char === quote ? null : quote;
|
|
4924
|
+
else if (char === '"' || char === "'") quote = char;
|
|
4925
|
+
else if (char === ">") inTag = false;
|
|
4926
|
+
}
|
|
4927
|
+
return inTag;
|
|
4928
|
+
};
|
|
4929
|
+
}
|
|
4930
|
+
function hasScriptWithSrc(source) {
|
|
4931
|
+
for (const [tag] of source.matchAll(/<script\b[^>]*>?/gi))
|
|
4932
|
+
if (/\bsrc\s*=/i.test(tag)) return true;
|
|
4933
|
+
return false;
|
|
4934
|
+
}
|
|
4826
4935
|
var parsed = /* @__PURE__ */ new WeakMap();
|
|
4827
4936
|
function styleRoot(style) {
|
|
4828
4937
|
let entry = parsed.get(style);
|
|
@@ -5182,45 +5291,15 @@ function describeStudioElement(tag) {
|
|
|
5182
5291
|
parts.push(">");
|
|
5183
5292
|
return parts.join("");
|
|
5184
5293
|
}
|
|
5185
|
-
var VISIBLE_MARKUP_COMMENT_PATTERN = /\/\*[\s\S]*?\*\//g;
|
|
5186
|
-
var VISIBLE_MARKUP_COMMENT_PROTECTED_BLOCK_PATTERN = /<(style|script|template|title|noscript|pre|code|textarea|text)\b[^>]*>[\s\S]*?<\/\1(?:\s[^>]*)?>/gi;
|
|
5187
|
-
function findProtectedVisibleMarkupRanges(source) {
|
|
5188
|
-
const ranges = [];
|
|
5189
|
-
for (const match of source.matchAll(VISIBLE_MARKUP_COMMENT_PROTECTED_BLOCK_PATTERN)) {
|
|
5190
|
-
ranges.push({ start: match.index, end: match.index + match[0].length });
|
|
5191
|
-
}
|
|
5192
|
-
return ranges;
|
|
5193
|
-
}
|
|
5194
|
-
function isInsideSourceRange(index, ranges) {
|
|
5195
|
-
return ranges.some((range) => range.start <= index && index < range.end);
|
|
5196
|
-
}
|
|
5197
|
-
function isInsideHtmlTag(source, index) {
|
|
5198
|
-
let inTag = false;
|
|
5199
|
-
let quote = null;
|
|
5200
|
-
for (let i = 0; i < index; i++) {
|
|
5201
|
-
const char = source[i];
|
|
5202
|
-
if (!inTag) {
|
|
5203
|
-
if (char === "<") inTag = true;
|
|
5204
|
-
continue;
|
|
5205
|
-
}
|
|
5206
|
-
if (quote) {
|
|
5207
|
-
if (char === quote) quote = null;
|
|
5208
|
-
continue;
|
|
5209
|
-
}
|
|
5210
|
-
if (char === '"' || char === "'") {
|
|
5211
|
-
quote = char;
|
|
5212
|
-
} else if (char === ">") {
|
|
5213
|
-
inTag = false;
|
|
5214
|
-
}
|
|
5215
|
-
}
|
|
5216
|
-
return inTag;
|
|
5217
|
-
}
|
|
5218
5294
|
function findVisibleMarkupCommentLeak(source) {
|
|
5219
|
-
const protectedRanges =
|
|
5220
|
-
|
|
5221
|
-
|
|
5222
|
-
|
|
5223
|
-
|
|
5295
|
+
const protectedRanges = protectedBlockRanges(source);
|
|
5296
|
+
const insideHtmlTag = htmlTagTracker(source);
|
|
5297
|
+
let range = 0;
|
|
5298
|
+
for (const comment of blockComments(source)) {
|
|
5299
|
+
if (insideHtmlTag(comment.index)) continue;
|
|
5300
|
+
while (protectedRanges[range] && protectedRanges[range].end <= comment.index) range++;
|
|
5301
|
+
if ((protectedRanges[range]?.start ?? Infinity) <= comment.index) continue;
|
|
5302
|
+
return comment.text;
|
|
5224
5303
|
}
|
|
5225
5304
|
return null;
|
|
5226
5305
|
}
|
|
@@ -5359,14 +5438,10 @@ var coreRules = [
|
|
|
5359
5438
|
let opens = 0;
|
|
5360
5439
|
let closes = 0;
|
|
5361
5440
|
let firstTag = "";
|
|
5362
|
-
for (const
|
|
5363
|
-
|
|
5364
|
-
)) {
|
|
5365
|
-
const token = match[0].toLowerCase();
|
|
5366
|
-
if (token.startsWith("<script")) continue;
|
|
5367
|
-
if (token.startsWith("</style")) closes += 1;
|
|
5441
|
+
for (const tag of styleTagTokens(source)) {
|
|
5442
|
+
if (tag.toLowerCase().startsWith("</style")) closes += 1;
|
|
5368
5443
|
else opens += 1;
|
|
5369
|
-
if (!firstTag) firstTag =
|
|
5444
|
+
if (!firstTag) firstTag = tag;
|
|
5370
5445
|
}
|
|
5371
5446
|
if (opens === closes) return [];
|
|
5372
5447
|
return [
|
|
@@ -5562,7 +5637,7 @@ var coreRules = [
|
|
|
5562
5637
|
},
|
|
5563
5638
|
// invalid_inline_script_syntax (malformed close tag)
|
|
5564
5639
|
({ source }) => {
|
|
5565
|
-
if (!
|
|
5640
|
+
if (!hasInvalidScriptClose(source)) return [];
|
|
5566
5641
|
return [
|
|
5567
5642
|
{
|
|
5568
5643
|
code: "invalid_inline_script_syntax",
|
|
@@ -6893,7 +6968,7 @@ function countPhysicalLines(source) {
|
|
|
6893
6968
|
return withoutFinalNewline.split("\n").length;
|
|
6894
6969
|
}
|
|
6895
6970
|
function countStructuralLines(source) {
|
|
6896
|
-
return countPhysicalLines(source
|
|
6971
|
+
return countPhysicalLines(emptyStyleBlocks(source));
|
|
6897
6972
|
}
|
|
6898
6973
|
function isCaptionCue(tag) {
|
|
6899
6974
|
const classTokens2 = (readAttr(tag.raw, "class") || "").split(/\s+/).filter(Boolean);
|
|
@@ -6915,7 +6990,7 @@ function isCompositionRootOrMount(rawTag) {
|
|
|
6915
6990
|
}
|
|
6916
6991
|
function extractCssUrlReferences(css) {
|
|
6917
6992
|
const out = [];
|
|
6918
|
-
const noComments = css
|
|
6993
|
+
const noComments = replaceBlockComments(css, "");
|
|
6919
6994
|
const urlPattern = /\burl\(\s*(["']?)([^)"']+)\1\s*\)/g;
|
|
6920
6995
|
let m;
|
|
6921
6996
|
while ((m = urlPattern.exec(noComments)) !== null) {
|
|
@@ -6944,7 +7019,7 @@ function climbsAboveRoot(fileDepth, path) {
|
|
|
6944
7019
|
}
|
|
6945
7020
|
function extractCssSelectors(css) {
|
|
6946
7021
|
const out = [];
|
|
6947
|
-
const noComments = css
|
|
7022
|
+
const noComments = replaceBlockComments(css, "");
|
|
6948
7023
|
const ruleHeader = /(?<![^{}])([^{}]+)\{/g;
|
|
6949
7024
|
let m;
|
|
6950
7025
|
while ((m = ruleHeader.exec(noComments)) !== null) {
|
|
@@ -6969,7 +7044,7 @@ function collectHeavyOverlayHooks(styles) {
|
|
|
6969
7044
|
const classes = /* @__PURE__ */ new Set();
|
|
6970
7045
|
const ids = /* @__PURE__ */ new Set();
|
|
6971
7046
|
for (const style of styles) {
|
|
6972
|
-
const noComments = style.content
|
|
7047
|
+
const noComments = replaceBlockComments(style.content, "");
|
|
6973
7048
|
const ruleWithBody = /(?<![^{}])([^{}]+)\{([^{}]*)\}/g;
|
|
6974
7049
|
let m;
|
|
6975
7050
|
while ((m = ruleWithBody.exec(noComments)) !== null) {
|
|
@@ -7712,7 +7787,7 @@ var compositionRules = [
|
|
|
7712
7787
|
// opts out with data-no-timeline.
|
|
7713
7788
|
({ rootTag, rootCompositionId, tags, scripts, rawSource, options }) => {
|
|
7714
7789
|
if (!rootCompositionId || !rootTag) return [];
|
|
7715
|
-
if (
|
|
7790
|
+
if (hasScriptWithSrc(rawSource)) return [];
|
|
7716
7791
|
if (hasComputedTimelineRegistration(scripts)) return [];
|
|
7717
7792
|
const registeredIds = new Set(
|
|
7718
7793
|
scripts.flatMap((script) => extractTimelineRegistryKeys(stripJsComments(script.content)))
|
|
@@ -8013,8 +8088,8 @@ var compositionRules = [
|
|
|
8013
8088
|
if (hasGsapTimeline && hasRegisteredTimeline) return [];
|
|
8014
8089
|
const allCss = styles.map((s) => s.content).join("\n");
|
|
8015
8090
|
const allInlineStyles = tags.map((t) => readAttr(t.raw, "style") || "").join("\n");
|
|
8016
|
-
const combinedCss = `${allCss}
|
|
8017
|
-
${allInlineStyles}
|
|
8091
|
+
const combinedCss = replaceBlockComments(`${allCss}
|
|
8092
|
+
${allInlineStyles}`, "");
|
|
8018
8093
|
const usesLottie = tags.some((t) => readAttr(t.raw, "data-lottie-src") !== null) || allScriptTexts.some((t) => /lottie\.(loadAnimation)\b|__hfLottie\b/.test(t));
|
|
8019
8094
|
const usesThree = allScriptTexts.some((t) => /\bTHREE\./.test(t));
|
|
8020
8095
|
const usesWaapi = allScriptTexts.some((t) => /\.animate\s*\(\s*[[{$A-Za-z_]/.test(t));
|
|
@@ -8402,7 +8477,7 @@ function collectStaticCssVariableDefinitions(tags, styles) {
|
|
|
8402
8477
|
];
|
|
8403
8478
|
const definitionPattern = /(?:^|[;{])\s*(--[A-Za-z0-9_-]+)\s*:/gm;
|
|
8404
8479
|
for (const source of sources) {
|
|
8405
|
-
const withoutComments2 = source
|
|
8480
|
+
const withoutComments2 = replaceBlockComments(source, " ");
|
|
8406
8481
|
for (const match of withoutComments2.matchAll(definitionPattern)) {
|
|
8407
8482
|
if (match[1]) definitions.add(match[1]);
|
|
8408
8483
|
}
|
|
@@ -7,7 +7,11 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
probeFirstFrameColour,
|
|
9
9
|
probeMediaMetadata
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-MQGRMXFN.js";
|
|
11
|
+
import {
|
|
12
|
+
MEDIA_INPUT_ARGS,
|
|
13
|
+
NOT_MEDIA
|
|
14
|
+
} from "./chunk-7RLMDAUO.js";
|
|
11
15
|
import {
|
|
12
16
|
isLinkFreeWithinProject
|
|
13
17
|
} from "./chunk-SZGQU7EB.js";
|
|
@@ -41,7 +45,7 @@ import {
|
|
|
41
45
|
scanHtmlOpeningTags
|
|
42
46
|
} from "./chunk-M425BL2U.js";
|
|
43
47
|
|
|
44
|
-
// ../studio-server/dist/chunk-
|
|
48
|
+
// ../studio-server/dist/chunk-WSUEYGY3.js
|
|
45
49
|
import { statSync } from "fs";
|
|
46
50
|
import { sep } from "path";
|
|
47
51
|
import { spawn } from "child_process";
|
|
@@ -269,7 +273,7 @@ async function scanProjectMediaCodecMap(projectDir, htmlSources, options = {}) {
|
|
|
269
273
|
return (await scanProjectMedia(projectDir, htmlSources, options)).codecMap;
|
|
270
274
|
}
|
|
271
275
|
|
|
272
|
-
// ../studio-server/dist/chunk-
|
|
276
|
+
// ../studio-server/dist/chunk-E2IWTNJW.js
|
|
273
277
|
import { spawn as spawn2 } from "child_process";
|
|
274
278
|
import { randomUUID } from "crypto";
|
|
275
279
|
import {
|
|
@@ -1020,6 +1024,7 @@ async function buildVideoFilter(ffmpegPath, sourcePath, metadata, keepsAlpha, bo
|
|
|
1020
1024
|
}
|
|
1021
1025
|
async function runFfmpeg(sourcePath, outputPath, chunkPrefix, variant, box, limitSeconds, signal, onProgress, isBackground = () => false) {
|
|
1022
1026
|
const metadata = await probeMediaMetadata(sourcePath);
|
|
1027
|
+
if (metadata.probeError === NOT_MEDIA) throw new ProxyTranscodeError(NOT_MEDIA, null, "");
|
|
1023
1028
|
const ffmpegPath = findFfBinary("ffmpeg", { configuredMustExist: true });
|
|
1024
1029
|
if (!ffmpegPath) {
|
|
1025
1030
|
throw new FfmpegUnavailableError();
|
|
@@ -1047,6 +1052,7 @@ async function runFfmpeg(sourcePath, outputPath, chunkPrefix, variant, box, limi
|
|
|
1047
1052
|
"-nostats",
|
|
1048
1053
|
...range ? ["-ss", String(range.startSeconds)] : [],
|
|
1049
1054
|
...decoderArgs,
|
|
1055
|
+
...MEDIA_INPUT_ARGS,
|
|
1050
1056
|
"-i",
|
|
1051
1057
|
sourcePath,
|
|
1052
1058
|
...streamArgs,
|
|
@@ -1366,17 +1372,22 @@ function resolveStill(projectDir, absoluteSourcePath, atSeconds, box) {
|
|
|
1366
1372
|
async function makeStill(source, at, box, cachePath) {
|
|
1367
1373
|
const ffmpegPath = findFfBinary("ffmpeg", { configuredMustExist: true });
|
|
1368
1374
|
if (!ffmpegPath) throw new FfmpegUnavailableError();
|
|
1369
|
-
const
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
await probeMediaMetadata(source.sourcePath),
|
|
1373
|
-
false,
|
|
1374
|
-
box
|
|
1375
|
-
);
|
|
1375
|
+
const metadata = await probeMediaMetadata(source.sourcePath);
|
|
1376
|
+
if (metadata.probeError === NOT_MEDIA) throw new ProxyTranscodeError(NOT_MEDIA, null, "");
|
|
1377
|
+
const filter = await buildVideoFilter(ffmpegPath, source.sourcePath, metadata, false, box);
|
|
1376
1378
|
mkdirWithinProject(source.projectDir, dirname4(cachePath));
|
|
1377
1379
|
const tempPath = join4(dirname4(cachePath), `.tmp-${randomUUID()}-${basename3(cachePath)}`);
|
|
1378
1380
|
try {
|
|
1379
|
-
const args = [
|
|
1381
|
+
const args = [
|
|
1382
|
+
"-y",
|
|
1383
|
+
"-ss",
|
|
1384
|
+
String(at),
|
|
1385
|
+
...MEDIA_INPUT_ARGS,
|
|
1386
|
+
"-i",
|
|
1387
|
+
source.sourcePath,
|
|
1388
|
+
"-map",
|
|
1389
|
+
"0:V:0"
|
|
1390
|
+
];
|
|
1380
1391
|
args.push("-frames:v", "1", "-vf", filter, "-pix_fmt", "yuvj420p", "-q:v", "3", tempPath);
|
|
1381
1392
|
await spawnFfmpeg(ffmpegPath, args, TRANSCODE_STALL_MS, new AbortController().signal);
|
|
1382
1393
|
renameSync(tempPath, cachePath);
|