hyperframes 0.8.222 → 0.8.224
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-6MPLIWVP.js → add-JEPKJ2F4.js} +15 -15
- package/dist/{agentPromptGenerator-X7SQPCXZ.js → agentPromptGenerator-ZBNWLX5D.js} +7 -7
- package/dist/{animatedGifPrep-ESOJ4FQ7.js → animatedGifPrep-43LLMTN5.js} +7 -7
- package/dist/api.d.ts +5 -3
- package/dist/api.js +33 -22
- package/dist/{asset-Y735VQV6.js → asset-M6SH6PUW.js} +5 -5
- package/dist/{assetCataloger-AOJAUEZW.js → assetCataloger-BLQ7UVJ5.js} +8 -8
- package/dist/{audio-VMMCGPOV.js → audio-J3QREJK4.js} +150 -1158
- package/dist/{auth-BD5NHYRA.js → auth-7TRCBCKA.js} +5 -5
- package/dist/{autoUpdate-VTMNHOAJ.js → autoUpdate-WTFSYLTK.js} +4 -4
- package/dist/{backgroundChecks-SUDYQZSW.js → backgroundChecks-YZW7AMMJ.js} +5 -5
- package/dist/backgroundChecksWorker.js +5 -5
- package/dist/{batchRender-4NR7RMT7.js → batchRender-LDZ6NO2X.js} +11 -11
- package/dist/{beats-PKEHQHBY.js → beats-JWUADKHV.js} +14 -14
- package/dist/{benchmark-K55DDFHG.js → benchmark-QOQZ7UGD.js} +13 -13
- package/dist/billing-3GVNEE56.js +86 -0
- package/dist/{browser-G2WFWJJ3.js → browser-4HNCSPUR.js} +8 -8
- package/dist/{bundleWithLocalizedFonts-MNG2UVH3.js → bundleWithLocalizedFonts-GTKHB45M.js} +2 -2
- package/dist/{capture-24PIC3TZ.js → capture-5OYZNIOR.js} +31 -31
- package/dist/{capture-U3EEAPI6.js → capture-XSRWYHAM.js} +7 -7
- package/dist/{captureCompositionFrame-KL4V6ORD.js → captureCompositionFrame-4F7PPQKB.js} +17 -17
- package/dist/{captureTimeout-RIMG6IYH.js → captureTimeout-7Y2RUBCU.js} +3 -1
- package/dist/{catalog-J3BU4TFW.js → catalog-4FVQSID5.js} +16 -16
- package/dist/{catch-up-LDGNMEGL.js → catch-up-KQVK2QZC.js} +8 -8
- package/dist/{check-J6HG6EKE.js → check-3YHLB6FM.js} +47 -46
- package/dist/{checkAudio-MAX7JUYG.js → checkAudio-7ZSZVBSJ.js} +15 -15
- package/dist/{checkBrowser-3W74WJ26.js → checkBrowser-VX5CHNQS.js} +40 -39
- package/dist/{chunk-L55LAERP.js → chunk-2KDHJCH2.js} +2 -2
- package/dist/{chunk-CVY6OIKN.js → chunk-2M6B2JKZ.js} +73 -39
- package/dist/{chunk-OROHGC7W.js → chunk-2QQO3J3B.js} +7 -7
- package/dist/chunk-2WVQ3CCN.js +113 -0
- package/dist/{chunk-RRPO44PE.js → chunk-34GAW4GO.js} +5 -5
- package/dist/{chunk-WWT6ETQA.js → chunk-35NDLXHZ.js} +50 -55
- package/dist/{chunk-YHL4CVTF.js → chunk-3NHCTTLP.js} +15 -15
- package/dist/chunk-3ZDOAVZM.js +570 -0
- package/dist/{chunk-6ZLDIMPL.js → chunk-4H4DR36N.js} +2 -2
- package/dist/{chunk-IB7UYGXR.js → chunk-4ZAOAPWP.js} +17 -11
- package/dist/{chunk-GOWU3NCE.js → chunk-52B3AOIV.js} +1 -1
- package/dist/{chunk-F6QV5N3A.js → chunk-53JEHQBW.js} +2 -2
- package/dist/{chunk-YEKJOA47.js → chunk-53TKUWDX.js} +3 -3
- package/dist/{chunk-6MUI2H6P.js → chunk-54Q3H2UQ.js} +5 -2
- package/dist/chunk-5KAGTSLY.js +205 -0
- package/dist/{chunk-5ZBMHUY2.js → chunk-5LOZWO2M.js} +1 -1
- package/dist/{chunk-DSHFKKSZ.js → chunk-5N5FYE5K.js} +2 -2
- package/dist/{chunk-ZBNK6X5O.js → chunk-652ERUZD.js} +2 -2
- package/dist/{chunk-DP5LF7GF.js → chunk-66W5IWLO.js} +12 -0
- package/dist/{chunk-JQWITWVC.js → chunk-6QIYQ43G.js} +2 -2
- package/dist/chunk-6UWSEXQ3.js +5030 -0
- package/dist/{chunk-35JKCWYI.js → chunk-7HSV5SJ4.js} +3 -3
- package/dist/{chunk-3RXZZIDQ.js → chunk-7RTPHNOO.js} +2 -2
- package/dist/{chunk-6CFBFWLF.js → chunk-A25SCSOK.js} +1 -1
- package/dist/{chunk-SJGE5I5F.js → chunk-ADVVQX4I.js} +1 -1
- package/dist/{chunk-GHEYGMKD.js → chunk-AMQFGICP.js} +1 -1
- package/dist/chunk-BAXL3U3T.js +312 -0
- package/dist/{chunk-YSTBSLWY.js → chunk-BEMGUGGJ.js} +1 -1
- package/dist/chunk-BTK3T4HJ.js +250 -0
- package/dist/{chunk-UBDO4EHA.js → chunk-C5JKRCSG.js} +1 -1
- package/dist/{chunk-ZLXWRYOO.js → chunk-CGX4EOGT.js} +3 -3
- package/dist/{chunk-ZPTNLDOB.js → chunk-D4M37ATV.js} +2 -2
- package/dist/chunk-DY7PQLIE.js +248 -0
- package/dist/{chunk-DNTPNSH5.js → chunk-E2ZY4GWH.js} +5 -5
- package/dist/{chunk-QYRMR45H.js → chunk-E47ZWDMH.js} +1 -1
- package/dist/{chunk-EGJ4UECR.js → chunk-EHZESMRB.js} +8 -2
- package/dist/{chunk-VJVVWYP6.js → chunk-EQFDOQTG.js} +1 -1
- package/dist/{chunk-42Q3VX34.js → chunk-F34GYYXO.js} +5 -5
- package/dist/{chunk-7IH3RSSG.js → chunk-F3CTUCFD.js} +12 -12
- package/dist/chunk-F7T57BZZ.js +95 -0
- package/dist/{chunk-BDZSH6P3.js → chunk-FJ3KUOUZ.js} +1 -1
- package/dist/{chunk-7KBS6ZLB.js → chunk-FPR57WRR.js} +2 -2
- package/dist/{chunk-BPIY5LB3.js → chunk-G45NYKSM.js} +39 -4
- package/dist/{chunk-AXVTL7B6.js → chunk-GE4ABM5K.js} +2 -2
- package/dist/{chunk-HQDHMAUI.js → chunk-GLTSINRP.js} +1 -1
- package/dist/chunk-GQ2QER6M.js +70 -0
- package/dist/{chunk-Y7IV5MAK.js → chunk-H6APAFKE.js} +2 -2
- package/dist/{chunk-5GSEM63G.js → chunk-HANNA5JJ.js} +1 -1
- package/dist/{chunk-RIGSGNDQ.js → chunk-HDPW7THH.js} +30 -21
- package/dist/{chunk-L37AZWB2.js → chunk-HIPW4JXL.js} +3 -3
- package/dist/{chunk-VQMHDS2V.js → chunk-HT3D5AKG.js} +52 -12
- package/dist/{chunk-K5UCRKUK.js → chunk-IORJ42GY.js} +2 -2
- package/dist/{chunk-OAXWHPNS.js → chunk-IYYQRNIZ.js} +1 -1
- package/dist/{chunk-G675S644.js → chunk-J7FVF73D.js} +33 -31
- package/dist/{chunk-S2HWGG5O.js → chunk-JHOPRAJN.js} +1 -1
- package/dist/{chunk-WJYFJGYT.js → chunk-JIF347PW.js} +3 -3
- package/dist/{chunk-XHD7RKEZ.js → chunk-JK2KNL6F.js} +2 -2
- package/dist/{chunk-CZOC7WY7.js → chunk-JKLWWGE6.js} +1 -1
- package/dist/{chunk-SKCS4SUZ.js → chunk-JMP52GTN.js} +44 -19
- package/dist/chunk-JUF43Q7Q.js +59 -0
- package/dist/chunk-K3QT232E.js +71 -0
- package/dist/chunk-KEDN4LSV.js +1048 -0
- package/dist/{chunk-G2EY3MVW.js → chunk-L4ULTWCD.js} +1 -1
- package/dist/{chunk-7D2LTSNV.js → chunk-LRS4FV5W.js} +3 -3
- package/dist/{chunk-VMRQDPFL.js → chunk-M336YVCP.js} +1 -1
- package/dist/{chunk-6W3DY5BP.js → chunk-MA5AQK7T.js} +2 -2
- package/dist/{chunk-EQGKUPBJ.js → chunk-MCDNAIFF.js} +1 -1
- package/dist/{chunk-EOUKB53E.js → chunk-MOXNAVCW.js} +1 -1
- package/dist/{chunk-AIXH3V5A.js → chunk-NFUR6NNT.js} +20 -5
- package/dist/{chunk-AN4USOFT.js → chunk-NI35PAVN.js} +2 -2
- package/dist/{chunk-E5IIR67Q.js → chunk-O2VKGYSK.js} +1 -1
- package/dist/chunk-ODJ2WBZX.js +288 -0
- package/dist/{chunk-52VXA3SC.js → chunk-OZMZFJDW.js} +1 -1
- package/dist/{chunk-EE7YWKDY.js → chunk-PKMAWQUI.js} +4 -4
- package/dist/{chunk-D6LGD472.js → chunk-POOLZTMZ.js} +6 -4
- package/dist/chunk-QK6ZNEBW.js +46 -0
- package/dist/{chunk-NUE44RN2.js → chunk-QOI46C6F.js} +17 -4
- package/dist/{chunk-MESSJFK3.js → chunk-QOYZ3U6G.js} +39 -29
- package/dist/{chunk-ZAJQFY5Q.js → chunk-QU5OYMTB.js} +15 -2
- package/dist/{chunk-HOTXWVVP.js → chunk-R2C5EON5.js} +2 -6
- package/dist/{chunk-FMKI7ZLM.js → chunk-RR5QE7DB.js} +2 -2
- package/dist/{chunk-OQLYKDL5.js → chunk-RU7KMDFL.js} +1 -1
- package/dist/{chunk-ONMTNYGR.js → chunk-RXJUMVCA.js} +1 -1
- package/dist/chunk-RZ6CXJ56.js +24 -0
- package/dist/{chunk-GODT7QDZ.js → chunk-SGMCQAYU.js} +3 -3
- package/dist/{chunk-QOZPWIYV.js → chunk-THL3N377.js} +19 -16
- package/dist/{chunk-IGBOFU2Y.js → chunk-UCPEABYK.js} +2 -2
- package/dist/{chunk-AOHG22HQ.js → chunk-UZ5AWZCA.js} +6 -6
- package/dist/{chunk-4VEXJTUT.js → chunk-VCJE7IMY.js} +2 -2
- package/dist/{chunk-Z5VQBRU2.js → chunk-VPMHRLJH.js} +3 -3
- package/dist/{chunk-FT3CNACL.js → chunk-VXRBPWVW.js} +144 -41
- package/dist/{chunk-537WSYHU.js → chunk-W7MJPKBJ.js} +1 -1
- package/dist/{chunk-26AQTUU4.js → chunk-WJD3GVAA.js} +1 -1
- package/dist/{chunk-DS372VSV.js → chunk-WW7Z2W73.js} +2 -2
- package/dist/{chunk-DC26QLB7.js → chunk-X5BSSPC2.js} +1 -1
- package/dist/{chunk-DIXTEVWQ.js → chunk-Y5HVDK7X.js} +3 -3
- package/dist/{chunk-EHSBBBR2.js → chunk-YGGZ23BB.js} +2 -0
- package/dist/{chunk-NHXGFQWQ.js → chunk-Z7GIHPAZ.js} +1 -1
- package/dist/{chunk-XC3BGWCJ.js → chunk-ZFQSXMX6.js} +1 -1
- package/dist/{chunk-P5M3AXEP.js → chunk-ZGQC6IU7.js} +1 -1
- package/dist/{chunk-KEY2VA65.js → chunk-ZLZXGJ63.js} +6 -20
- package/dist/{clean-K6IM3LC4.js → clean-SXEI6FT4.js} +24 -24
- package/dist/cli.js +73 -63
- package/dist/{cloud-OV7EA4BJ.js → cloud-SKN6FWAZ.js} +4 -4
- package/dist/{cloudrun-ZEMODIOP.js → cloudrun-RHPVVXCR.js} +9 -9
- package/dist/{compare-MJZ3D3HA.js → compare-RTXF2NSK.js} +36 -36
- package/dist/{compiler-6KKETX77.js → compiler-SKRY6FPA.js} +4 -4
- package/dist/{component-EVXMYIP3.js → component-2NPF5PA6.js} +6 -6
- package/dist/{compositions-PZ7FQ7WN.js → compositions-AZRVHGBT.js} +17 -17
- package/dist/curve-QSFEGBUH.js +329 -0
- package/dist/cuts-6AWEJH2H.js +123 -0
- package/dist/{delete-DL3XA4QV.js → delete-NOHFVICL.js} +9 -9
- package/dist/{deploy-VEYP3IP5.js → deploy-UFRADJOA.js} +10 -10
- package/dist/describeProject-F43LI3YQ.js +56 -0
- package/dist/{destroy-BQ5R7LUF.js → destroy-IQLGADZM.js} +6 -6
- package/dist/diff-3WS6NMSE.js +1825 -0
- package/dist/{dist-SHMQOKMF.js → dist-24QQO5IL.js} +2 -2
- package/dist/{dist-M77KFAYW.js → dist-YEYUGCOR.js} +2 -2
- package/dist/{docs-VAF5NM5B.js → docs-IB3KETC6.js} +1 -1
- package/dist/{doctor-JM2WHH7Y.js → doctor-F4VJYQXC.js} +13 -13
- package/dist/energy-BN3QD6Y7.js +134 -0
- package/dist/events-5W7ETFWR.js +221 -0
- package/dist/{events-GW5I5RCG.js → events-PZH4C7VA.js} +5 -5
- package/dist/{events-S7KVBRSL.js → events-YJ3XSIPL.js} +6 -6
- package/dist/extract-S34DWGAD.js +309 -0
- package/dist/face-3SCJADG4.js +171 -0
- package/dist/{feedback-7OR5FVTX.js → feedback-3K6NSKIC.js} +16 -16
- package/dist/{ffmpeg-A7CSIX3U.js → ffmpeg-2RBDDMHU.js} +7 -7
- package/dist/{figma-444HKFX5.js → figma-NWAJYMAI.js} +3 -3
- package/dist/fontLocalizeCli.js +10 -10
- package/dist/frames-6UARLPLK.js +352 -0
- package/dist/generate-KBVWFVXN.js +74 -0
- package/dist/{get-6UTF3225.js → get-SEZZMLQ3.js} +8 -8
- package/dist/{gpuPolicy-ORPUS5Z2.js → gpuPolicy-VIZAJ3GY.js} +7 -7
- package/dist/{grade-compare-UCTAYN3B.js → grade-compare-PMAK4PJD.js} +40 -37
- package/dist/{heifImagePrep-ED6V6RFN.js → heifImagePrep-6NYIR7WN.js} +8 -8
- package/dist/{help-HZR32XWP.js → help-4UPSHWI2.js} +7 -1
- package/dist/{history-TQ56MZIA.js → history-VNAZEQDE.js} +11 -11
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +70 -70
- package/dist/hyperframes-player.global.js +3 -3
- package/dist/index-gen-OPMQ5WSN.js +61 -0
- package/dist/{info-RPIIP7RN.js → info-OREET5PM.js} +11 -11
- package/dist/{init-ONAWKHFW.js → init-K7AEJBAL.js} +33 -32
- package/dist/{inspect-A75PYOWJ.js → inspect-STME5DNY.js} +37 -36
- package/dist/{installer-ISMCCFBZ.js → installer-NQA4KXRP.js} +4 -4
- package/dist/{keyframes-2I75DP3O.js → keyframes-JQWZ235Q.js} +10 -10
- package/dist/{lambda-4QIHGPGJ.js → lambda-RJNLW2EO.js} +21 -21
- package/dist/{layout-GW7WE7RT.js → layout-MTZWBPNZ.js} +37 -36
- package/dist/{lint-OWP72OZQ.js → lint-AQWTSL75.js} +12 -12
- package/dist/{lintProject-XYQ5L7RQ.js → lintProject-6H64SX3V.js} +2 -2
- package/dist/{list-WVK7ZCPW.js → list-ZEBZ5DB5.js} +9 -9
- package/dist/{localPage-IQWHN7BH.js → localPage-CQ3H4N2N.js} +7 -7
- package/dist/{login-Q5CNHYWU.js → login-VHCZHENV.js} +17 -11
- package/dist/{logout-6VFJ7WMW.js → logout-LHTQV2BZ.js} +3 -3
- package/dist/look-25TSRPSV.js +180 -0
- package/dist/{manager-JCYVNEWH.js → manager-57SX7D5G.js} +9 -8
- package/dist/manifest-QSJYVERU.js +49 -0
- package/dist/measure-Y2R3G5OJ.js +46 -0
- package/dist/{media-treatment-M5IUP7H4.js → media-treatment-3G2IVS64.js} +20 -20
- package/dist/{media-use-ZNTB7W6N.js → media-use-LUAOZJNV.js} +10 -6
- package/dist/{models-CFXKDYZ3.js → models-NT56FKRG.js} +15 -15
- package/dist/{motionShot-CWUEI4ZM.js → motionShot-P4NTFKYS.js} +20 -20
- package/dist/{normalize-QJVXFMWO.js → normalize-MBNGRVQA.js} +2 -1
- package/dist/{normalize-audio-FASY33LR.js → normalize-audio-2DUTZ6QK.js} +12 -12
- package/dist/{open-KOVVESYN.js → open-OATYOOR7.js} +15 -15
- package/dist/{parakeetRunner-E4IP5SL4.js → parakeetRunner-UASHW3A4.js} +13 -12
- package/dist/{pipeline-C6EZVV43.js → pipeline-GGAYP5Q6.js} +11 -11
- package/dist/{play-MZJI6SMH.js → play-GHXBJS3T.js} +28 -28
- package/dist/{policies-J5BWAZHM.js → policies-EERREOZJ.js} +6 -4
- package/dist/{preflight-K4SPUWXP.js → preflight-6VOP3IOI.js} +8 -8
- package/dist/{present-7L7ZTG7F.js → present-M7UYHVEZ.js} +23 -23
- package/dist/{preview-QGDVMR3X.js → preview-YWT5WA3W.js} +26 -26
- package/dist/probe-CQAGZJLP.js +178 -0
- package/dist/{producer-EJPNNY3E.js → producer-OU2BCMLY.js} +1 -1
- package/dist/{progress-X3QFO3FE.js → progress-STSH2JRY.js} +2 -2
- package/dist/{projectConfig-EEF6OPXO.js → projectConfig-UI4NZDN7.js} +6 -6
- package/dist/{prompts-VAO7RDKX.js → prompts-ZEVFT7US.js} +2 -2
- package/dist/{publication-5KF44AKQ.js → publication-VPJZQCLA.js} +2 -2
- package/dist/{publish-SSKWZ5TE.js → publish-7RA2MK2M.js} +18 -18
- package/dist/{refresh-I6ITGHKL.js → refresh-AM2ULRRV.js} +3 -3
- package/dist/{remove-background-PCL6I5SZ.js → remove-background-A5KJUH6W.js} +14 -14
- package/dist/{render-UPRWOGLS.js → render-EMW4I6C6.js} +45 -45
- package/dist/{render-DH4UA7KW.js → render-IYV73CG6.js} +10 -10
- package/dist/{render-DRWQ6F37.js → render-Z5IS4AUP.js} +39 -39
- package/dist/{render-batch-EBW5WHB5.js → render-batch-IN2ZXPS7.js} +10 -10
- package/dist/renderSetupWorker.js +2 -2
- package/dist/{resolver-ZSZXNRFP.js → resolver-DIXFK5ZR.js} +4 -4
- package/dist/run-MCVU7AZX.js +31 -0
- package/dist/{sam-QA7JT7IM.js → sam-EGFXZF56.js} +2 -2
- package/dist/{screenshotCapture-4THETOMD.js → screenshotCapture-RUDON2HB.js} +2 -2
- package/dist/{sherpa-IKVUCBOW.js → sherpa-SAY3I7PK.js} +12 -11
- package/dist/{sites-MTLVMYJ6.js → sites-EAGXQOKI.js} +2 -2
- package/dist/skills/hyperframes-cli/SKILL.md +4 -4
- package/dist/skills/hyperframes-cli/references/cloud.md +3 -1
- package/dist/skills/hyperframes-cli/references/preview-render.md +1 -1
- package/dist/skills/media-use/SKILL.md +20 -21
- package/dist/skills/media-use/audio/scripts/lib/heygen.mjs +26 -1
- package/dist/skills/media-use/audio/scripts/lib/heygen.test.mjs +33 -0
- package/dist/skills/media-use/references/heygen.md +58 -0
- package/dist/skills/media-use/references/operations.md +9 -6
- package/dist/skills/media-use/references/setup-providers.md +11 -12
- package/dist/skills/media-use/scripts/lib/index-gen.d.mts +1 -0
- package/dist/skills/media-use/scripts/lib/manifest.d.mts +21 -0
- package/dist/{skills-ZREHX3TU.js → skills-YWQ5XKH6.js} +9 -9
- package/dist/{skillsUpdateCheck-PPJ5NGAL.js → skillsUpdateCheck-ST5ZFEET.js} +5 -5
- package/dist/{snapshot-KPFLZNEL.js → snapshot-57YYYE5J.js} +43 -42
- package/dist/{src-QRV3466B.js → src-7MEBCSTP.js} +9 -9
- package/dist/{src-EPOGDJTT.js → src-LNSJHD25.js} +10 -6
- package/dist/{state-6QHNNHDA.js → state-W3AS6O2J.js} +2 -2
- package/dist/{staticProjectServer-ERKLMZVM.js → staticProjectServer-TTJSAB2Q.js} +19 -19
- package/dist/{status-4AAPTTRW.js → status-FGXBUX2T.js} +36 -11
- package/dist/studio/assets/hyperframes-player-Bzcd9O2g.js +478 -0
- package/dist/studio/assets/{index-C8VIUiGz.js → index-CZI-XmnO.js} +119 -119
- package/dist/studio/assets/{index-CVPNbydK.js → index-LW6kxYVF.js} +1 -1
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-7WFZIIPL.js → studio-api-57E36S5N.js} +15 -15
- package/dist/{studioServer-3XZTLI26.js → studioServer-2AIRUNBA.js} +55 -55
- package/dist/sync-52GUXEYZ.js +115 -0
- package/dist/{telemetry-BMLI4TMC.js → telemetry-RVY6RSCD.js} +6 -6
- package/dist/{telemetry-QHYJJAJU.js → telemetry-T73TKZOL.js} +1 -1
- package/dist/{timeline-EDCDO2ZR.js → timeline-MMZF4AX3.js} +31 -27
- package/dist/{tokens-2ZFLFO3K.js → tokens-WGWCYFTY.js} +5 -5
- package/dist/{transcribe-Y2LPBT7I.js → transcribe-6BF5FFPV.js} +39 -22
- package/dist/{transcribe-3WMH62HH.js → transcribe-YYDHXRQW.js} +11 -10
- package/dist/{tts-BVTJEP72.js → tts-ZLNNIS6W.js} +5 -5
- package/dist/{updateCheck-5LFZGC3P.js → updateCheck-AAR5LLUF.js} +4 -4
- package/dist/{upgrade-X7QVSEKP.js → upgrade-Y7CIRL4B.js} +5 -5
- package/dist/{urlDownloader-TYD6ROKL.js → urlDownloader-KZOD7EWX.js} +6 -6
- package/dist/{validate-26KQ5VX7.js → validate-K3PHAA2E.js} +30 -30
- package/dist/{video-BPKLZIJK.js → video-Z6EBVCAT.js} +9 -9
- package/dist/warmCheck.js +47 -46
- package/package.json +1 -1
- package/dist/chunk-LL3VMDAC.js +0 -5013
- package/dist/studio/assets/hyperframes-player-Dka6e1BG.js +0 -478
- package/dist/{chunk-NOH32H42.js → chunk-HBAUU3IK.js} +124 -124
- package/dist/{synthesize-4JC74JW5.js → synthesize-DIT2SR3D.js} +5 -5
|
@@ -8,12 +8,12 @@ import {
|
|
|
8
8
|
Semaphore,
|
|
9
9
|
prepareHeifImageInputs,
|
|
10
10
|
withMediaProbeSlot
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-H6APAFKE.js";
|
|
12
12
|
import {
|
|
13
13
|
EncoderInterruptedError,
|
|
14
14
|
encoderFailureError,
|
|
15
15
|
prepareAnimatedGifInputs
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-D4M37ATV.js";
|
|
17
17
|
import {
|
|
18
18
|
GENERIC_FAMILIES,
|
|
19
19
|
collectFontFamilyCustomProperties,
|
|
@@ -114,7 +114,9 @@ import {
|
|
|
114
114
|
getEncoderPreset,
|
|
115
115
|
getFfmpegBinary,
|
|
116
116
|
getFfprobeBinary,
|
|
117
|
+
gradingKeepsSdr,
|
|
117
118
|
groupIntoLayers,
|
|
119
|
+
hasGradedCanvas,
|
|
118
120
|
initTransparentBackground,
|
|
119
121
|
initializeSession,
|
|
120
122
|
isDrawElementCaptureError,
|
|
@@ -174,7 +176,7 @@ import {
|
|
|
174
176
|
videoAudioId,
|
|
175
177
|
videoStartOnMediaTimeline,
|
|
176
178
|
writeCapturedFrame
|
|
177
|
-
} from "./chunk-
|
|
179
|
+
} from "./chunk-NFUR6NNT.js";
|
|
178
180
|
import {
|
|
179
181
|
assignBundledRuntimeCompositionIds,
|
|
180
182
|
emitMountedModuleScripts,
|
|
@@ -186,7 +188,7 @@ import {
|
|
|
186
188
|
parsesAsScript,
|
|
187
189
|
prepareFlattenedInnerRoot,
|
|
188
190
|
stripSdrPngColourTags
|
|
189
|
-
} from "./chunk-
|
|
191
|
+
} from "./chunk-7RTPHNOO.js";
|
|
190
192
|
import {
|
|
191
193
|
collectScratchLeftovers,
|
|
192
194
|
removeScratch,
|
|
@@ -205,7 +207,7 @@ import {
|
|
|
205
207
|
parseVfxChain,
|
|
206
208
|
resolveAuthoredTimingWindow,
|
|
207
209
|
toFps
|
|
208
|
-
} from "./chunk-
|
|
210
|
+
} from "./chunk-FJ3KUOUZ.js";
|
|
209
211
|
import {
|
|
210
212
|
gsapCdnDist,
|
|
211
213
|
normalizeGsapBaseUrl
|
|
@@ -244,7 +246,7 @@ import {
|
|
|
244
246
|
sourceTimeAt,
|
|
245
247
|
styleElementsFor,
|
|
246
248
|
timeAtSourceTime
|
|
247
|
-
} from "./chunk-
|
|
249
|
+
} from "./chunk-6UWSEXQ3.js";
|
|
248
250
|
import {
|
|
249
251
|
TRANSITIONS,
|
|
250
252
|
convertTransfer,
|
|
@@ -260,7 +262,7 @@ import {
|
|
|
260
262
|
import {
|
|
261
263
|
lintHyperframeHtml,
|
|
262
264
|
resolveReferencedStart
|
|
263
|
-
} from "./chunk-
|
|
265
|
+
} from "./chunk-HT3D5AKG.js";
|
|
264
266
|
import {
|
|
265
267
|
isUnresolvedAssetPlaceholder,
|
|
266
268
|
readProjectFile,
|
|
@@ -5033,13 +5035,28 @@ function findRenderHdrAutoPromotionTrigger(input) {
|
|
|
5033
5035
|
}
|
|
5034
5036
|
return input.images.find(({ id }) => input.nativeHdrImageIds.has(id))?.src;
|
|
5035
5037
|
}
|
|
5036
|
-
function
|
|
5038
|
+
function logGradingResolution(input, hdrMode, effectiveHdr, hasHdrSource) {
|
|
5039
|
+
const keptSdr = hasHdrSource && gradingKeepsSdr(hdrMode, input.media);
|
|
5040
|
+
if (keptSdr) {
|
|
5041
|
+
input.log.warn(
|
|
5042
|
+
"[Render] HDR source detected, but color grading is SDR-only, so rendering SDR: HDR sources are tone-mapped before the grade. Use --hdr to force HDR output (grades stay SDR)."
|
|
5043
|
+
);
|
|
5044
|
+
} else if (effectiveHdr && [...input.media.videos, ...input.media.images].some((m) => m.graded)) {
|
|
5045
|
+
input.log.warn(
|
|
5046
|
+
"[Render] HDR output with graded media: color grading is SDR-only, so graded elements are graded in SDR and placed in the HDR output."
|
|
5047
|
+
);
|
|
5048
|
+
}
|
|
5049
|
+
return keptSdr;
|
|
5050
|
+
}
|
|
5051
|
+
function logHdrResolution(input, hdrMode, effectiveHdr, forcedHdrWithoutSources, hasHdrSource) {
|
|
5052
|
+
const keptSdrForGrading = logGradingResolution(input, hdrMode, effectiveHdr, hasHdrSource);
|
|
5037
5053
|
if (forcedHdrWithoutSources) {
|
|
5038
5054
|
input.log.warn(
|
|
5039
5055
|
"[Render] HDR forced by --hdr flag, but no HDR sources were detected, defaulting to HLG. SDR-only compositions may look perceptually wrong on HDR displays."
|
|
5040
5056
|
);
|
|
5041
5057
|
}
|
|
5042
5058
|
if (!effectiveHdr) {
|
|
5059
|
+
if (keptSdrForGrading) return;
|
|
5043
5060
|
input.log.info(
|
|
5044
5061
|
hdrMode === "force-sdr" ? "[Render] SDR forced by --sdr flag" : "[Render] No HDR sources detected, rendering SDR"
|
|
5045
5062
|
);
|
|
@@ -5064,8 +5081,8 @@ function logHdrResolution(input, hdrMode, effectiveHdr, forcedHdrWithoutSources)
|
|
|
5064
5081
|
function formatCarriesHdr(format) {
|
|
5065
5082
|
return format === "mp4";
|
|
5066
5083
|
}
|
|
5067
|
-
function rendersSdrOnly(config) {
|
|
5068
|
-
return config.hdrMode === "force-sdr" || !formatCarriesHdr(config.format ?? "mp4");
|
|
5084
|
+
function rendersSdrOnly(config, media) {
|
|
5085
|
+
return config.hdrMode === "force-sdr" || gradingKeepsSdr(config.hdrMode, media) || !formatCarriesHdr(config.format ?? "mp4");
|
|
5069
5086
|
}
|
|
5070
5087
|
function resolveEffectiveHdrMode(input) {
|
|
5071
5088
|
const hdrMode = input.hdrMode ?? "auto";
|
|
@@ -5076,7 +5093,7 @@ function resolveEffectiveHdrMode(input) {
|
|
|
5076
5093
|
const info = allColorSpaces.length > 0 ? analyzeCompositionHdr(allColorSpaces) : null;
|
|
5077
5094
|
let effectiveHdr;
|
|
5078
5095
|
let forcedHdrWithoutSources = false;
|
|
5079
|
-
if (hdrMode === "force-sdr") {
|
|
5096
|
+
if (hdrMode === "force-sdr" || gradingKeepsSdr(hdrMode, input.media)) {
|
|
5080
5097
|
effectiveHdr = void 0;
|
|
5081
5098
|
} else if (hdrMode === "force-hdr") {
|
|
5082
5099
|
if (info?.hasHdr && info.dominantTransfer) {
|
|
@@ -5092,7 +5109,7 @@ function resolveEffectiveHdrMode(input) {
|
|
|
5092
5109
|
input.log.warn(formatDowngradeWarning(input.outputFormat, forcedHdrWithoutSources));
|
|
5093
5110
|
effectiveHdr = void 0;
|
|
5094
5111
|
}
|
|
5095
|
-
logHdrResolution(input, hdrMode, effectiveHdr, forcedHdrWithoutSources);
|
|
5112
|
+
logHdrResolution(input, hdrMode, effectiveHdr, forcedHdrWithoutSources, info?.hasHdr === true);
|
|
5096
5113
|
return effectiveHdr;
|
|
5097
5114
|
}
|
|
5098
5115
|
|
|
@@ -5991,7 +6008,7 @@ function collectRenderMedia(html) {
|
|
|
5991
6008
|
if (placed) audios.push(placed);
|
|
5992
6009
|
else droppedMediaIds.add(elementId);
|
|
5993
6010
|
}
|
|
5994
|
-
return { videos, audios, images, droppedMediaIds };
|
|
6011
|
+
return { videos, audios, images, droppedMediaIds, gradedCanvas: hasGradedCanvas(html) };
|
|
5995
6012
|
}
|
|
5996
6013
|
function placeAudio(audio, window2) {
|
|
5997
6014
|
const authoredEnd = audio.end > 0 ? audio.end : Infinity;
|
|
@@ -7385,7 +7402,7 @@ async function compileForRender(projectDir, htmlPath, downloadDir, options = {})
|
|
|
7385
7402
|
for (const [relPath, absPath] of preparedHeifAssets) {
|
|
7386
7403
|
externalAssets.set(relPath, absPath);
|
|
7387
7404
|
}
|
|
7388
|
-
const { videos, audios, images, droppedMediaIds } = collectRenderMedia(html);
|
|
7405
|
+
const { videos, audios, images, droppedMediaIds, gradedCanvas } = collectRenderMedia(html);
|
|
7389
7406
|
const masterFxChain = parseMasterFxChain(html);
|
|
7390
7407
|
const advised = /* @__PURE__ */ new Set();
|
|
7391
7408
|
for (const video of videos) {
|
|
@@ -7424,6 +7441,7 @@ async function compileForRender(projectDir, htmlPath, downloadDir, options = {})
|
|
|
7424
7441
|
audios,
|
|
7425
7442
|
images,
|
|
7426
7443
|
droppedMediaIds,
|
|
7444
|
+
gradedCanvas,
|
|
7427
7445
|
...masterFxChain ? { masterFxChain } : {},
|
|
7428
7446
|
unresolvedCompositions,
|
|
7429
7447
|
externalAssets,
|
|
@@ -7877,6 +7895,7 @@ async function runCompileStage(input) {
|
|
|
7877
7895
|
videos: compiled.videos,
|
|
7878
7896
|
audios: compiled.audios,
|
|
7879
7897
|
images: compiled.images,
|
|
7898
|
+
gradedCanvas: compiled.gradedCanvas,
|
|
7880
7899
|
masterFxChain: compiled.masterFxChain,
|
|
7881
7900
|
width: compiled.width,
|
|
7882
7901
|
height: compiled.height
|
|
@@ -8845,10 +8864,11 @@ async function runExtractVideosStage(input) {
|
|
|
8845
8864
|
let failureToEnforce = null;
|
|
8846
8865
|
let videoReadinessSkipIds = [];
|
|
8847
8866
|
let videoMetadataHints = [];
|
|
8867
|
+
const probesHdr = job.config.hdrMode !== "force-sdr" && !gradingKeepsSdr(job.config.hdrMode, composition);
|
|
8848
8868
|
const nativeHdrVideoIds = /* @__PURE__ */ new Set();
|
|
8849
8869
|
const videoTransfers = /* @__PURE__ */ new Map();
|
|
8850
8870
|
let hdrProbeTransientRetries = 0;
|
|
8851
|
-
if (
|
|
8871
|
+
if (probesHdr && composition.videos.length > 0) {
|
|
8852
8872
|
log?.info("Probing video color spaces...", { videoCount: composition.videos.length });
|
|
8853
8873
|
const probeFailures = await Promise.all(
|
|
8854
8874
|
composition.videos.map(async (v) => {
|
|
@@ -8887,7 +8907,7 @@ async function runExtractVideosStage(input) {
|
|
|
8887
8907
|
const imageTransfers = /* @__PURE__ */ new Map();
|
|
8888
8908
|
const hdrImageSrcPaths = /* @__PURE__ */ new Map();
|
|
8889
8909
|
const imageColorSpaces = [];
|
|
8890
|
-
if (
|
|
8910
|
+
if (probesHdr && composition.images.length > 0) {
|
|
8891
8911
|
const probed = await Promise.all(
|
|
8892
8912
|
composition.images.map(async (img) => {
|
|
8893
8913
|
const imgPath = resolveProjectRelativeSrc(img.src, projectDir, compiledDir);
|
|
@@ -8924,7 +8944,7 @@ async function runExtractVideosStage(input) {
|
|
|
8924
8944
|
fps: job.config.fps,
|
|
8925
8945
|
outputDir: join16(compiledDir, "__hyperframes_video_frames"),
|
|
8926
8946
|
format: job.config.videoFrameFormat ?? "auto",
|
|
8927
|
-
toneMapHdrToSdr: rendersSdrOnly(job.config),
|
|
8947
|
+
toneMapHdrToSdr: rendersSdrOnly(job.config, composition),
|
|
8928
8948
|
timelineEnd: composition.duration,
|
|
8929
8949
|
maxTransientRetries: extractionPolicy.maxTransientRetries,
|
|
8930
8950
|
collectProbeFailures: extractionPolicy.failureMode === "enforce",
|
|
@@ -10619,6 +10639,7 @@ async function runCaptureHdrStage(input) {
|
|
|
10619
10639
|
let lastBrowserConsole = [];
|
|
10620
10640
|
let captureDurationMs = 0;
|
|
10621
10641
|
let encodeMs = 0;
|
|
10642
|
+
let encoderDrainWaitMs;
|
|
10622
10643
|
const nativeHdrIds = /* @__PURE__ */ new Set([...nativeHdrVideoIds, ...nativeHdrImageIds]);
|
|
10623
10644
|
log.info(
|
|
10624
10645
|
hasHdrContent ? "[Render] HDR layered composite: z-ordered DOM + native HDR video/image layers" : "[Render] Shader transition composite: z-ordered SDR DOM layers"
|
|
@@ -10856,6 +10877,7 @@ async function runCaptureHdrStage(input) {
|
|
|
10856
10877
|
reportEncodeProgress(job, totalFrames, totalFrames, onProgress, encodeFrom);
|
|
10857
10878
|
captureDurationMs = Date.now() - stageStart;
|
|
10858
10879
|
encodeMs = hdrEncodeResult.durationMs;
|
|
10880
|
+
encoderDrainWaitMs = hdrEncodeResult.drainWaitMs;
|
|
10859
10881
|
} catch (error) {
|
|
10860
10882
|
lastBrowserConsole = domSession.browserConsoleBuffer;
|
|
10861
10883
|
throw wrapCaptureStageError(error, lastBrowserConsole);
|
|
@@ -10888,6 +10910,7 @@ async function runCaptureHdrStage(input) {
|
|
|
10888
10910
|
hdrPerf,
|
|
10889
10911
|
captureDurationMs,
|
|
10890
10912
|
encodeMs,
|
|
10913
|
+
encoderDrainWaitMs,
|
|
10891
10914
|
warnings: cloneCaptureWarnings(domSession.warnings)
|
|
10892
10915
|
};
|
|
10893
10916
|
}
|
|
@@ -12771,6 +12794,7 @@ async function executeRenderPipeline(input) {
|
|
|
12771
12794
|
});
|
|
12772
12795
|
const effectiveHdr = resolveEffectiveHdrMode({
|
|
12773
12796
|
hdrMode: job.config.hdrMode,
|
|
12797
|
+
media: composition,
|
|
12774
12798
|
outputFormat,
|
|
12775
12799
|
extractionResult,
|
|
12776
12800
|
imageColorSpaces,
|
|
@@ -13585,6 +13609,7 @@ async function executeRenderPipeline(input) {
|
|
|
13585
13609
|
perfStages.captureFrameMs = hdrRes.captureDurationMs;
|
|
13586
13610
|
perfStages.captureSetupMs = Math.max(0, Date.now() - stage4Start - hdrRes.captureDurationMs);
|
|
13587
13611
|
perfStages.encodeMs = hdrRes.encodeMs;
|
|
13612
|
+
perfStages.encoderDrainWaitMs = hdrRes.encoderDrainWaitMs ?? 0;
|
|
13588
13613
|
} else {
|
|
13589
13614
|
let streamingHandled = false;
|
|
13590
13615
|
if (capturePlan.kind === "sdr_segmented") {
|
|
@@ -16558,7 +16583,7 @@ async function compilePlanComposition(projectDir, config, planDir, options) {
|
|
|
16558
16583
|
if (probeResult.fileServer) closeFileServerSafely(probeResult.fileServer, "plan", log);
|
|
16559
16584
|
if (probeResult.probeSession) {
|
|
16560
16585
|
try {
|
|
16561
|
-
const { closeCaptureSession: closeCaptureSession2 } = await import("./src-
|
|
16586
|
+
const { closeCaptureSession: closeCaptureSession2 } = await import("./src-LNSJHD25.js");
|
|
16562
16587
|
await closeCaptureSession2(probeResult.probeSession);
|
|
16563
16588
|
} catch (err) {
|
|
16564
16589
|
log.warn("[plan] probe session close failed", {
|
|
@@ -19932,7 +19957,7 @@ function startServer(options = {}) {
|
|
|
19932
19957
|
});
|
|
19933
19958
|
async function shutdown(signal) {
|
|
19934
19959
|
log.info(`Received ${signal}, shutting down`);
|
|
19935
|
-
const { drainBrowserPool } = await import("./src-
|
|
19960
|
+
const { drainBrowserPool } = await import("./src-LNSJHD25.js");
|
|
19936
19961
|
await drainBrowserPool().catch(() => {
|
|
19937
19962
|
});
|
|
19938
19963
|
const handle = await Promise.race([
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { createRequire as __hf_createRequire } from "node:module";
|
|
2
|
+
import { fileURLToPath as __hf_fileURLToPath } from "node:url";
|
|
3
|
+
import { dirname as __hf_dirname } from "node:path";
|
|
4
|
+
var require = __hf_createRequire(import.meta.url);
|
|
5
|
+
var __filename = __hf_fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = __hf_dirname(__filename);
|
|
7
|
+
import {
|
|
8
|
+
resolveCloudAuthHeaders,
|
|
9
|
+
resolveCloudBaseUrl
|
|
10
|
+
} from "./chunk-BEMGUGGJ.js";
|
|
11
|
+
import {
|
|
12
|
+
oauthEnvironment
|
|
13
|
+
} from "./chunk-VLA6UJGH.js";
|
|
14
|
+
|
|
15
|
+
// src/heygen/plan.ts
|
|
16
|
+
var UNPAID = /* @__PURE__ */ new Set(["incomplete", "incomplete_expired"]);
|
|
17
|
+
var isRecord = (v) => typeof v === "object" && v !== null && !Array.isArray(v);
|
|
18
|
+
function mockPlan() {
|
|
19
|
+
const raw = process.env["HYPERFRAMES_MOCK_PLAN"]?.trim();
|
|
20
|
+
if (!raw) return null;
|
|
21
|
+
const [plan = "none", credits = "0"] = raw.split(":");
|
|
22
|
+
return { plan, credits: Number(credits) || 0, mock: true };
|
|
23
|
+
}
|
|
24
|
+
var billingBaseUrl = () => resolveCloudBaseUrl().replace("://api.", "://api2.");
|
|
25
|
+
async function readPlan() {
|
|
26
|
+
try {
|
|
27
|
+
const res = await fetch(`${billingBaseUrl()}/v1/payment/hyperframes/subscription`, {
|
|
28
|
+
headers: { ...await resolveCloudAuthHeaders(), accept: "application/json" },
|
|
29
|
+
signal: AbortSignal.timeout(15e3)
|
|
30
|
+
});
|
|
31
|
+
const body = await res.json().catch(() => null);
|
|
32
|
+
const data = isRecord(body) && isRecord(body.data) ? body.data : body;
|
|
33
|
+
if (!res.ok || !isRecord(data)) return mockPlan();
|
|
34
|
+
const usage = isRecord(data.usage) ? data.usage : {};
|
|
35
|
+
const sub = isRecord(data.subscription) ? data.subscription : null;
|
|
36
|
+
const paid = !!sub && !UNPAID.has(String(sub.status));
|
|
37
|
+
return {
|
|
38
|
+
plan: paid ? String(sub.plan_name ?? "paid") : "none",
|
|
39
|
+
credits: Number(usage.remaining_units ?? 0) || 0
|
|
40
|
+
};
|
|
41
|
+
} catch {
|
|
42
|
+
return mockPlan();
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
var webBase = () => oauthEnvironment() === "dev" ? "https://dev.hyperframes.dev" : "https://hyperframes.studio";
|
|
46
|
+
var plansUrl = () => process.env["HYPERFRAMES_PLANS_URL"] || `${webBase()}/pricing`;
|
|
47
|
+
var creditsUrl = () => process.env["HYPERFRAMES_CREDITS_URL"] || `${webBase()}/plan`;
|
|
48
|
+
function pageUrl(kind, fields = {}) {
|
|
49
|
+
const url = new URL(fields.base ?? (kind === "plans" ? plansUrl() : creditsUrl()));
|
|
50
|
+
url.searchParams.set("from", "cli");
|
|
51
|
+
if (fields.needed) url.searchParams.set("needed_credits", String(fields.needed));
|
|
52
|
+
if (fields.tool) url.searchParams.set("tool", fields.tool);
|
|
53
|
+
return url.toString();
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export {
|
|
57
|
+
readPlan,
|
|
58
|
+
pageUrl
|
|
59
|
+
};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { createRequire as __hf_createRequire } from "node:module";
|
|
2
|
+
import { fileURLToPath as __hf_fileURLToPath } from "node:url";
|
|
3
|
+
import { dirname as __hf_dirname } from "node:path";
|
|
4
|
+
var require = __hf_createRequire(import.meta.url);
|
|
5
|
+
var __filename = __hf_fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = __hf_dirname(__filename);
|
|
7
|
+
import {
|
|
8
|
+
decode,
|
|
9
|
+
meanAbsDiff
|
|
10
|
+
} from "./chunk-BTK3T4HJ.js";
|
|
11
|
+
|
|
12
|
+
// src/measure/cuts.ts
|
|
13
|
+
var SIG_W = 64;
|
|
14
|
+
var SIG_H = 36;
|
|
15
|
+
var CUT_LEVEL = 12;
|
|
16
|
+
var CUT_RATIO = 4;
|
|
17
|
+
var SOFT_LEVEL = 10;
|
|
18
|
+
var SOFT_RATIO = 8;
|
|
19
|
+
var SOFT_ALONE = 4;
|
|
20
|
+
var CONFIRM_LEVEL = 6;
|
|
21
|
+
var CONFIRM_SHARE = 0.5;
|
|
22
|
+
var NEIGHBOURS = 12;
|
|
23
|
+
function signatures(input, filters = []) {
|
|
24
|
+
return decode(input, [...filters, `scale=${SIG_W}:${SIG_H}:flags=area`], SIG_W, SIG_H, true);
|
|
25
|
+
}
|
|
26
|
+
var median = (values) => {
|
|
27
|
+
const sorted = [...values].sort((x, y) => x - y);
|
|
28
|
+
return sorted[Math.floor(sorted.length / 2)] ?? 0;
|
|
29
|
+
};
|
|
30
|
+
function frameChanges(frames) {
|
|
31
|
+
return frames.map((f, i) => i ? meanAbsDiff(frames[i - 1], f) : 0);
|
|
32
|
+
}
|
|
33
|
+
var neighbours = (diffs, i) => diffs.slice(Math.max(1, i - NEIGHBOURS), i).concat(diffs.slice(i + 1, i + NEIGHBOURS + 1));
|
|
34
|
+
function cutsIn(diffs) {
|
|
35
|
+
const hits = diffs.flatMap((d, i) => {
|
|
36
|
+
if (i === 0) return [];
|
|
37
|
+
const around = neighbours(diffs, i);
|
|
38
|
+
const typical = Math.max(1, median(around));
|
|
39
|
+
if (d >= CUT_LEVEL && d >= CUT_RATIO * typical) return [{ frame: i, change: d }];
|
|
40
|
+
const alone = d >= SOFT_ALONE * Math.max(0, ...around);
|
|
41
|
+
return d >= SOFT_LEVEL && d >= SOFT_RATIO * typical && alone ? [{ frame: i, change: d, soft: true }] : [];
|
|
42
|
+
});
|
|
43
|
+
const out = [];
|
|
44
|
+
for (const { soft, ...h } of hits) {
|
|
45
|
+
const last = out.at(-1);
|
|
46
|
+
if (last && h.frame === last.frame + last.frames) {
|
|
47
|
+
last.frames++;
|
|
48
|
+
last.change = Math.max(last.change, h.change);
|
|
49
|
+
if (!soft) delete last.soft;
|
|
50
|
+
} else out.push({ ...h, frames: 1, ...soft ? { soft } : {} });
|
|
51
|
+
}
|
|
52
|
+
return out;
|
|
53
|
+
}
|
|
54
|
+
function findCuts(frames) {
|
|
55
|
+
return cutsIn(frameChanges(frames));
|
|
56
|
+
}
|
|
57
|
+
function confirmsCut(diffs, cut) {
|
|
58
|
+
return [cut.frame - 1, cut.frame, cut.frame + 1].some((i) => {
|
|
59
|
+
const d = diffs[i];
|
|
60
|
+
if (i < 1 || d === void 0) return false;
|
|
61
|
+
return d >= Math.max(CONFIRM_LEVEL, CONFIRM_SHARE * cut.change) && d >= CUT_RATIO * Math.max(1, median(neighbours(diffs, i)));
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export {
|
|
66
|
+
signatures,
|
|
67
|
+
frameChanges,
|
|
68
|
+
cutsIn,
|
|
69
|
+
findCuts,
|
|
70
|
+
confirmsCut
|
|
71
|
+
};
|