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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var HyperframesPlayer=(()=>{var je=Object.defineProperty;var hi=Object.getOwnPropertyDescriptor;var fi=Object.getOwnPropertyNames;var bi=Object.prototype.hasOwnProperty;var gi=(t,e)=>{for(var n in e)je(t,n,{get:e[n],enumerable:!0})},_i=(t,e,n,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of fi(e))!bi.call(t,r)&&r!==n&&je(t,r,{get:()=>e[r],enumerable:!(i=hi(e,r))||i.enumerable});return t};var yi=t=>_i(je({},"__esModule",{value:!0}),t);var _o={};gi(_o,{HyperframesPlayer:()=>ze,SPEED_PRESETS:()=>pt,formatSpeed:()=>W,formatTime:()=>Le});var Ft=t=>t!==null&&Number.isFinite(t)&&t>0;function qe(t){let e=t.clipEndsSeconds.filter(i=>i===null).length;if(Ft(t.authoredDurationSeconds))return{seconds:t.authoredDurationSeconds,source:"authored",pendingClips:e};let n=t.clipEndsSeconds.filter(Ft);return n.length>0?{seconds:Math.max(...n),source:"derived",pendingClips:e}:{seconds:null,source:"unresolved",pendingClips:e,reason:e>0?"every clip's length is still pending":"no authored duration and no clip with a length"}}var vi="http://www.w3.org/1999/xhtml";function Ut(t){return t!=null&&t.nodeType===1}function Ye(t){return Ut(t)&&t.namespaceURI===vi}function Xe(t,e){return Ye(t)&&t.localName===e}function Ai(t){return Xe(t,"video")}function Si(t){return Xe(t,"audio")}function P(t){return Ai(t)||Si(t)}function Ht(t){return Xe(t,"img")}function Se(t){if(t==null||t.trim()==="")return null;let e=Number.parseInt(t,10);return Number.isFinite(e)&&e>0?e:null}function ee(t=document){let e=t.querySelector('[data-composition-id][data-root="true"]');return Ye(e)?e:t.querySelector("[data-composition-id]")}var G=Object.freeze({start:"data-start",duration:"data-duration",trackIndex:"data-track-index",derivedEnd:"data-end",legacyTrack:"data-layer"}),To=Object.freeze([G.start,G.duration,G.trackIndex]),Ro=Object.freeze([G.derivedEnd]),xo=Object.freeze([G.derivedEnd,G.legacyTrack]);function Ke(t){if(t==null||t.trim()==="")return null;let e=Number(t);return Number.isFinite(e)?e:null}var Vt=t=>{let e=Ke(t);return e!==null&&e>=0?e:null};function Ee(t){return Vt(t("data-playback-start"))??Vt(t("data-media-start"))??0}var te=.1,ne=10;function Ze(t){return Number.isFinite(t)&&t>0?Math.max(te,Math.min(ne,t)):1}function Wt(t,e=1){let n=Number.parseFloat(t("data-playback-rate")??"");return Ze(Number.isFinite(n)&&n>0?n:e)}function Je(t){let e=Ke(t("data-duration"));return e!==null&&e>0?e:null}function $t(t,e){let n=Je(t);if(n!==null)return n;let i=Ke(t("data-end"));return i!==null?i-e:null}var Ei=3;function Qe(t,e,n){return Number.isFinite(t)?Math.max(0,t-e)/Ze(n):null}function et(t){let{tag:e,authoredDurationSeconds:n,sourceDurationSeconds:i,mediaStartSeconds:r,playbackRate:o}=t;if(n!==null&&n>0)return{seconds:n,source:"authored"};if(e==="img")return{seconds:Ei,source:"default"};if(i===null)return{seconds:null,source:"pending",reason:"source duration not yet probed"};let a=Qe(i,r,o);return a===null?{seconds:null,source:"pending",reason:"source reported a non-finite duration"}:{seconds:a,source:"media"}}var Ti="data-fx-chain",ko=Ti.slice(5);var ie=(t="frequency",e="Frequency",n=1e3,i=20,r=2e4)=>({kind:"number",key:t,label:e,unit:"Hz",min:i,max:r,step:1,default:n,scale:"log",automatable:!0}),tt=(t=.707,e="Bandwidth: higher is narrower.")=>({kind:"number",key:"q",label:"Q",unit:"",min:.1,max:20,step:.01,default:t,scale:"log",automatable:!0,hint:e}),Te=(t=-40,e=40,n=0)=>({kind:"number",key:"gain",label:"Gain",unit:"dB",min:t,max:e,step:.1,default:n,automatable:!0}),Bt={kind:"enum",key:"poles",label:"Slope",options:[{value:"1",label:"6 dB/oct"},{value:"2",label:"12 dB/oct"}],default:"2",hint:"Two poles is the usual biquad; one pole is gentler."},Gt=[{id:"gain",label:"Gain",group:"dynamics",description:"Raise or lower the whole signal. Automate it to duck under something else.",params:[Te(-60,12,0)],web:"gain-node"},{id:"peaking",label:"Peaking EQ",group:"filter",description:"Boost or cut a band, leaving everything either side alone.",params:[ie("frequency","Frequency",1e3),Te(-40,40,0),tt(1)],web:"biquad-peaking"},{id:"lowshelf",label:"Low Shelf",group:"filter",description:"Lift or drop everything below the corner frequency.",params:[ie("frequency","Frequency",200,20,2e3),Te(-40,40,0)],web:"biquad-lowshelf"},{id:"highshelf",label:"High Shelf",group:"filter",description:"Lift or drop everything above the corner frequency.",params:[ie("frequency","Frequency",4e3,500,2e4),Te(-40,40,0)],web:"biquad-highshelf"},{id:"highpass",label:"High-pass",group:"filter",description:"Remove low frequencies: the usual fix for rumble on a voice.",params:[ie("frequency","Cutoff",300,20,2e4),tt(.707),Bt],web:"biquad-highpass"},{id:"lowpass",label:"Low-pass",group:"filter",description:"Remove high frequencies, which darkens or muffles a track.",params:[ie("frequency","Cutoff",8e3,100,2e4),tt(.707),Bt],web:"biquad-lowpass"},{id:"compressor",label:"Compressor",group:"dynamics",description:"Pull loud parts down so the quiet ones can come up.",params:[{kind:"number",key:"threshold",label:"Threshold",unit:"dB",min:-60,max:0,step:.5,default:-24,hint:"Level above which the compressor starts working."},{kind:"number",key:"ratio",label:"Ratio",unit:":1",min:1,max:20,step:.1,default:4},{kind:"number",key:"attack",label:"Attack",unit:"ms",min:.01,max:2e3,step:.1,default:20,scale:"log"},{kind:"number",key:"release",label:"Release",unit:"ms",min:.01,max:9e3,step:1,default:250,scale:"log"},{kind:"number",key:"knee",label:"Knee",unit:"",min:1,max:8,step:.01,default:2.83,hint:"1 is a hard corner; higher eases into it."},{kind:"number",key:"makeup",label:"Makeup",unit:"dB",min:0,max:36,step:.1,default:0},{kind:"number",key:"mix",label:"Mix",unit:"",min:0,max:1,step:.01,default:1,hint:"Below 1 blends the dry signal back in."}],web:"worklet-compressor"},{id:"limiter",label:"Limiter",group:"dynamics",description:"Peak limiter that follows the signal's level. It has no lookahead, so a fast peak or an inter-sample peak can pass the ceiling; use the true-peak limiter for a delivery limit.",params:[{kind:"number",key:"limit",label:"Ceiling",unit:"dB",min:-24,max:0,step:.1,default:-1},{kind:"number",key:"attack",label:"Attack",unit:"ms",min:.1,max:80,step:.1,default:5},{kind:"number",key:"release",label:"Release",unit:"ms",min:1,max:8e3,step:1,default:50,scale:"log"},{kind:"number",key:"level_out",label:"Output",unit:"dB",min:-24,max:24,step:.1,default:0}],web:"worklet-limiter"},{id:"truepeak",label:"True-peak limiter",group:"dynamics",description:"Lookahead limiter that holds a 4x estimate of the inter-sample peak at a dBTP ceiling; full-band noise can land up to about 1.7 dB above it. Adds lookahead plus about 0.3 ms of latency.",params:[{kind:"number",key:"ceiling",label:"Ceiling",unit:"dBTP",min:-24,max:0,step:.1,default:-1,hint:"Target true peak, measured on a 4x oversampled signal. Dense full-band sound can end up to about 1.7 dB above it."},{kind:"number",key:"lookahead",label:"Lookahead",unit:"ms",min:.5,max:10,step:.1,default:3,hint:"How far ahead the gain starts falling. Longer is smoother and adds the same latency."},{kind:"number",key:"release",label:"Release",unit:"ms",min:10,max:2e3,step:1,default:80,scale:"log"}],web:"worklet-truepeak"},{id:"gate",label:"Noise Gate",group:"dynamics",description:"Silence the track when it drops below the threshold.",params:[{kind:"number",key:"threshold",label:"Threshold",unit:"dB",min:-80,max:0,step:.5,default:-35},{kind:"number",key:"range",label:"Range",unit:"dB",min:-80,max:0,step:.5,default:-24,hint:"How far down the gate pulls when closed."},{kind:"number",key:"ratio",label:"Ratio",unit:":1",min:1,max:20,step:.1,default:10},{kind:"number",key:"attack",label:"Attack",unit:"ms",min:.01,max:9e3,step:.1,default:1,scale:"log"},{kind:"number",key:"release",label:"Release",unit:"ms",min:.01,max:9e3,step:1,default:100,scale:"log"},{kind:"number",key:"knee",label:"Knee",unit:"",min:1,max:8,step:.01,default:2.83}],web:"worklet-gate"},{id:"saturate",label:"Saturation",group:"nonlinear",description:"Soft-clip the waveform for warmth or outright distortion.",params:[{kind:"enum",key:"type",label:"Curve",options:[{value:"tanh",label:"Tanh"},{value:"atan",label:"Arctan"},{value:"cubic",label:"Cubic"},{value:"exp",label:"Exponential"},{value:"alg",label:"Algebraic"},{value:"quintic",label:"Quintic"},{value:"sin",label:"Sine"},{value:"erf",label:"Error function"},{value:"hard",label:"Hard clip"}],default:"tanh"},{kind:"number",key:"threshold",label:"Threshold",unit:"dB",min:-40,max:0,step:.1,default:-6},{kind:"number",key:"output",automatable:!0,label:"Output",unit:"dB",min:-24,max:24,step:.1,default:0},{kind:"number",key:"oversample",label:"Oversample",unit:"x",min:1,max:8,step:1,default:4,hint:"Higher costs more but keeps aliasing down."}],web:"waveshaper"},{id:"bitcrush",label:"Bitcrush",group:"nonlinear",description:"Drop bit depth and sample rate for a lo-fi, digital sound.",params:[{kind:"number",key:"bits",label:"Bit depth",unit:"bit",min:1,max:32,step:.1,default:8},{kind:"number",key:"samples",label:"Sample hold",unit:"x",min:1,max:250,step:1,default:1,hint:"Repeats each sample N times, a crude downsample."},{kind:"number",key:"mix",label:"Mix",unit:"",min:0,max:1,step:.01,default:1}],web:"worklet-bitcrush"},{id:"pitchshift",label:"Pitch shift",group:"time",description:"Shifts pitch up or down without changing playback speed. Adds ~50 ms of latency.",params:[{kind:"number",key:"semitones",label:"Semitones",unit:"st",min:-12,max:12,step:1,default:0},{kind:"number",key:"mix",label:"Mix",unit:"",min:0,max:1,step:.01,default:1}],web:"worklet-pitchshift"},{id:"delay",label:"Delay",group:"time",description:"Repeating echoes behind the dry signal.",params:[{kind:"number",key:"time",automatable:!0,label:"Time",unit:"ms",min:1,max:5e3,step:1,default:250,scale:"log"},{kind:"number",key:"feedback",automatable:!0,label:"Feedback",unit:"",min:.01,max:.95,step:.01,default:.35},{kind:"number",key:"mix",automatable:!0,label:"Mix",unit:"",min:0,max:1,step:.01,default:.4}],web:"delay-feedback"},{id:"chorus",label:"Chorus",group:"time",description:"Detuned copies of the signal for width and thickness.",params:[{kind:"number",key:"delay",automatable:!0,label:"Delay",unit:"ms",min:1,max:100,step:.1,default:7},{kind:"number",key:"depth",automatable:!0,label:"Depth",unit:"ms",min:0,max:10,step:.01,default:2},{kind:"number",key:"speed",automatable:!0,label:"Rate",unit:"Hz",min:.01,max:10,step:.01,default:1},{kind:"number",key:"mix",automatable:!0,label:"Mix",unit:"",min:0,max:1,step:.01,default:.5}],web:"chorus-lfo"},{id:"phaser",label:"Phaser",group:"time",description:"Sweeping notches moving through the spectrum.",params:[{kind:"number",key:"in_gain",automatable:!0,label:"Input",unit:"",min:0,max:1,step:.01,default:.4},{kind:"number",key:"out_gain",automatable:!0,label:"Output",unit:"",min:0,max:2,step:.01,default:.74},{kind:"number",key:"delay",label:"Delay",unit:"ms",min:.1,max:5,step:.1,default:3},{kind:"number",key:"decay",label:"Decay",unit:"",min:0,max:.99,step:.01,default:.4},{kind:"number",key:"speed",automatable:!0,label:"Rate",unit:"Hz",min:.1,max:2,step:.01,default:.5},{kind:"enum",key:"type",label:"Waveform",options:[{value:"0",label:"Triangular"},{value:"1",label:"Sinusoidal"}],default:"0"}],web:"allpass-phaser"},{id:"reverb",label:"Reverb",group:"time",description:"Room tail. Both ends convolve the same generated impulse, so preview matches render.",params:[{kind:"number",key:"size",label:"Room size",unit:"",min:.05,max:1,step:.01,default:.7},{kind:"number",key:"damping",label:"Damping",unit:"",min:0,max:1,step:.01,default:.5,hint:"Higher rolls the top off the tail faster."},{kind:"number",key:"wet",automatable:!0,label:"Wet",unit:"",min:0,max:1,step:.01,default:.35},{kind:"number",key:"dry",automatable:!0,label:"Dry",unit:"",min:0,max:1,step:.01,default:.7}],web:"convolver"}],Mo=new Map(Gt.map(t=>[t.id,t]));var Co=Gt.map(t=>t.id);function Ri(t){return 10**(t/20)}var zt=Ri(12);var jt="data-automation",Wo=jt.slice(5),nt=1,xi=512,L=class extends Error{constructor(e){super(e),this.name="AudioAutomationError"}},Re="volume",xe="rate";function qt(t){if(t===Re)return{kind:"volume"};if(t===xe)return{kind:"rate"};let e=t.split(".");if(e.length===3&&e[0]==="fx"&&e[1]===wi){let r=e[2];return r?{kind:"preset",presetId:r}:null}if(e.length!==3||e[0]!=="fx")return null;let[,n,i]=e;return!n||!i?null:{kind:"fx",nodeId:n,param:i}}var wi="preset";var ki={min:0,max:zt,step:.01,unit:"",label:"Volume",scale:"linear",default:1};var Mi={min:te,max:ne,step:.05,unit:"x",label:"Speed",scale:"log",default:1};function re(t){if(typeof t=="number")return Number.isFinite(t)?t:null;if(typeof t=="string"&&t.trim()!==""){let e=Number(t);return Number.isFinite(e)?e:null}return null}function Ci(t){let e=re(t);return e===null||e===0?0:Math.min(1,Math.max(-1,e))}function Yt(t,e){let n=re(t),i=re(e);if(n===null||i===null)return null;let r=s=>Math.min(.999,Math.max(.001,s)),o=r(n),a=r(i);return Math.abs(o-a)<1e-6?null:{x:o,y:a}}function Ii(t){let e=Ci(t?.curve),n=Yt(t?.viaX,t?.viaY);return{...e?{curve:e}:{},...n?{viaX:n.x,viaY:n.y}:{}}}function Di(t,e){let n=re(t?.t),i=re(t?.v);if(n===null||i===null)return null;let r=e?Math.min(e.max,Math.max(e.min,i)):i;return{t:Math.max(0,n),v:r,...Ii(t)}}function Pi(t,e){let n=t.map(r=>Di(r,e)).filter(r=>r!==null).sort((r,o)=>r.t-o.t),i=[];for(let r of n)i.length>0&&i[i.length-1].t===r.t?i[i.length-1]=r:i.push(r);return i.slice(0,xi)}function Li(t){let e=[];for(let n of t.lanes){if(!qt(n.target))continue;let i=n.target===Re?ki:n.target===xe?Mi:null,r=Pi(n.points??[],i);r.length>0&&e.push({target:n.target,points:r})}return{version:nt,lanes:e}}function Xt(t){let e;try{e=JSON.parse(t)}catch(r){throw new L(`Automation is not valid JSON: ${r.message}`)}if(typeof e!="object"||e===null)throw new L("Automation must be a JSON object.");let n=e;if(n.version!==nt)throw new L(`Unsupported automation version: ${String(n.version)}`);if(!Array.isArray(n.lanes))throw new L("Automation is missing a `lanes` array.");let i=n.lanes.map((r,o)=>{if(typeof r!="object"||r===null)throw new L(`Lane ${o} is not an object.`);let a=r;if(typeof a.target!="string"||!qt(a.target))throw new L(`Lane ${o} has an unreadable target: ${String(a.target)}`);if(!Array.isArray(a.points))throw new L(`Lane ${o} is missing a \`points\` array.`);return{target:a.target,points:a.points}});return Li({version:nt,lanes:i})}function Ni(t,e){return e?Math.pow(t,Math.pow(2,2*e)):t}function Oi(t,e){let n=t-.5,i=e-.5,r=.999,o=1e6,a=n>0?n/(r-t):n<0?-n/(t-(1-r)):0,s=i>0?i/(r-e):i<0?-i/(e-(1-r)):0,l=Math.min(o,Math.max(1,a,s));return{cx:t+n/l,cy:e+i/l,w:l}}function Fi(t,e,n){let{cx:i,cy:r,w:o}=Oi(e,n),a=2-2*o,s=t*a-1+2*o*i,l=-t*a-2*o*i,u=Ui(s,l,t),c=1-u,h=c*c+2*o*u*c+u*u;return h>0?(2*o*r*u*c+u*u)/h:t}function Ui(t,e,n){if(Math.abs(t)<1e-12)return Math.abs(e)<1e-12?n:-n/e;let i=Math.sqrt(Math.max(0,e*e-4*t*n)),r=(-e+i)/(2*t),o=(-e-i)/(2*t),a=s=>s>=-1e-9&&s<=1+1e-9;return a(r)?Math.min(1,Math.max(0,r)):a(o)?Math.min(1,Math.max(0,o)):n}function Hi(t,e){let n=Yt(e.viaX,e.viaY);return n?Fi(Math.min(1,Math.max(0,t)),n.x,n.y):Ni(t,e.curve)}function Vi(t,e,n,i){return i==="log"&&t>0&&e>0?Math.exp(Math.log(t)+(Math.log(e)-Math.log(t))*n):t+(e-t)*n}function we(t,e,n="linear"){let i=t.points;if(i.length===0)return 0;let r=i[0];if(e<=r.t)return r.v;let o=i[i.length-1];if(e>=o.t)return o.v;let a=0,s=i.length-1;for(;s-a>1;){let h=a+s>>1;i[h].t<=e?a=h:s=h}let l=i[a],u=i[s],c=u.t-l.t;return c<=0?u.v:Vi(l.v,u.v,Hi((e-l.t)/c,l),n)}var ke=new Map,Wi=64;function Kt(t,e=Re){let n=`${e}\0${t}`,i=ke.get(n);if(i!==void 0)return i;let r=null;try{r=Xt(t).lanes.find(o=>o.target===e)??null}catch{r=null}return ke.size>Wi&&ke.clear(),ke.set(n,r),r}var Zt=48,Jt=new WeakMap;function $i(t){let e=t.points,n=e[0].v,i=e[e.length-1].v,r=[0],o=[0],a=l=>{let u=r[r.length-1];if(l<=u)return;let c=we(t,u,"log");r.push(l),o.push(o[o.length-1]+(c+we(t,l,"log"))/2*(l-u))},s=Math.max(0,e[0].t);a(s);for(let l=1;l<e.length;l+=1){let u=e[l-1].t,c=e[l].t;if(!(c<=0))for(let h=1;h<=Zt;h+=1)a(Math.max(u,0)+(c-u)*h/Zt)}return{ts:Float64Array.from(r),ss:Float64Array.from(o),firstRate:n,lastRate:i}}function Bi(t){let e=Jt.get(t);return e||(e=$i(t),Jt.set(t,e)),e}function Gi(t){return typeof t!="number"&&t.points.length>0}function zi(t,e,n){let i=0,r=t.length-1;for(;r-i>1;){let o=i+r>>1;t[o]<=n?i=o:r=o}return e[i]+(e[r]-e[i])*(n-t[i])/(t[r]-t[i])}function Qt(t,e){if(typeof t=="number")return e/t;if(!Gi(t))return e;let{ts:n,ss:i,firstRate:r,lastRate:o}=Bi(t),a=n.length-1;return e<=0?e/r:e>=i[a]?n[a]+(e-i[a])/o:zi(i,n,e)}function ji(t){return t?Kt(t,xe):null}function en(t,e){return ji(t)??e}var Yo=[{id:"montage",label:"Montage",points:[[0,.9],[.15,.3],[.5,2.5],[.85,.3],[1,.9]]},{id:"hero",label:"Hero",points:[[0,1],[.25,1.6],[.5,.25],[.75,1.6],[1,1]]},{id:"bullet",label:"Bullet",points:[[0,3],[.4,3],[.5,.15],[.6,3],[1,3]]},{id:"jump-cut",label:"Jump cut",points:[[0,.5],[.24,.5],[.26,3],[.5,3],[.52,.5],[.74,.5],[.76,3],[1,3]]},{id:"flash-in",label:"Flash in",points:[[0,.3],[.6,.6],[1,5]]},{id:"flash-out",label:"Flash out",points:[[0,5],[.4,.6],[1,.3]]},{id:"ramp-in",label:"Ramp in",points:[[0,.5],[1,1]]},{id:"ramp-out",label:"Ramp out",points:[[0,1],[1,.5]]},{id:"slowmo-middle",label:"Slow-mo middle",points:[[0,1],[1/3,.35],[2/3,.35],[1,1]]}];var y=Object.freeze({start:"data-start",duration:"data-duration",trackIndex:"data-track-index",derivedEnd:"data-end",legacyTrack:"data-layer"}),Ko=Object.freeze([y.start,y.duration,y.trackIndex]),Zo=Object.freeze([y.derivedEnd]),Jo=Object.freeze([y.derivedEnd,y.legacyTrack]);function N(t){if(t==null||t.trim()==="")return null;let e=Number(t);return Number.isFinite(e)?e:null}var rn=/^[A-Za-z0-9_.:-]+$/;function on(t,e){let n=t.charCodeAt(e);return n>=48&&n<=57}function tn(t,e){let n=e;for(;n>=0&&on(t,n);)n--;return n}function qi(t,e){let n=e;for(;n>=0&&(t[n]??"").trim()==="";)n--;return n}function Yi(t){let e=t.length-1;if(!on(t,e))return null;let n=tn(t,e);return t[n]==="."&&(n=tn(t,n-1)),n+1}function Xi(t){let e=Yi(t);if(e==null)return null;let n=qi(t,e-1),i=t[n];if(i!=="+"&&i!=="-")return null;let r=t.slice(0,n).trim();if(!rn.test(r))return null;let o=Number(t.slice(e));return Number.isFinite(o)?{refId:r,operator:i,magnitude:o}:null}function oe(t){let e=(t??"").trim();if(!e)return null;let n=N(e);if(n!=null)return{kind:"absolute",value:n};if(rn.test(e))return{kind:"reference",refId:e,offset:0};let i=Xi(e);return i?{kind:"reference",refId:i.refId,offset:i.operator==="-"?-i.magnitude:i.magnitude}:null}function x(t,e,n,i){t.push({code:e,attribute:n,value:i})}function Ki(t,e,n,i){if(e==null||e.trim()==="")return n.defaultStart===void 0?0:n.defaultStart;if(!t)return x(i,"invalid-start",y.start,e),null;if(t.kind==="absolute")return Math.max(0,t.value);let r=n.resolveReferenceEnd?.(t.refId);return r==null||!Number.isFinite(r)?(x(i,"unresolved-start-reference",y.start,e),null):Math.max(0,r+t.offset)}var Zi=1e-9;function Ji(t,e){return Math.abs(t-e)<=Zi}function Qi(t,e,n){let i=N(t);if(i==null){x(n,"deprecated-end",y.derivedEnd,t),x(n,"invalid-end",y.derivedEnd,t);return}if(e==null){x(n,"deprecated-end",y.derivedEnd,t);return}Ji(i,e)||(x(n,"deprecated-end",y.derivedEnd,t),x(n,"conflicting-end",y.derivedEnd,t))}function er(t,e,n){let i=N(t);return i==null||i<0?(x(n,"invalid-duration",y.duration,t),{duration:null,end:null,durationSource:"invalid"}):{duration:i,end:e==null?null:e+i,durationSource:"duration"}}function tr(t,e,n){x(n,"deprecated-end",y.derivedEnd,t);let i=N(t);return i==null?(x(n,"invalid-end",y.derivedEnd,t),{duration:null,end:null,durationSource:"invalid"}):e==null?{duration:null,end:i,durationSource:"legacy-end"}:i<e?(x(n,"end-before-start",y.derivedEnd,t),{duration:null,end:null,durationSource:"invalid"}):{duration:i-e,end:i,durationSource:"legacy-end"}}function nr(t,e,n){let i=t.getAttribute(y.duration),r=t.getAttribute(y.derivedEnd);if(i==null)return r==null?{duration:null,end:null,durationSource:"missing"}:tr(r,e,n);let o=er(i,e,n);return r!=null&&Qi(r,o.end,n),o}function nn(t,e,n,i){let r=N(t);return r==null||!Number.isInteger(r)?(x(i,"invalid-track-index",e,t),{trackIndex:0,trackSource:"invalid"}):{trackIndex:r,trackSource:n}}function ir(t,e){let n=t.getAttribute(y.trackIndex),i=t.getAttribute(y.legacyTrack);if(n==null&&i==null)return{trackIndex:0,trackSource:"default"};if(n==null&&i!=null)return x(e,"deprecated-layer",y.legacyTrack,i),nn(i,y.legacyTrack,"legacy-layer",e);let r=nn(n??"",y.trackIndex,"track-index",e);if(i==null)return r;x(e,"deprecated-layer",y.legacyTrack,i);let o=N(i);return o!=null&&o!==r.trackIndex&&x(e,"conflicting-layer",y.legacyTrack,i),r}function it(t,e={}){let n=[],i=t.getAttribute(y.start),r=oe(i),o=Ki(r,i,e,n),a=nr(t,o,n),s=ir(t,n);return{startExpression:r,start:o,...a,...s,diagnostics:n}}function V(t){return N(t)}function rt(t){return Wt(e=>t.getAttribute(e),P(t)?t.defaultPlaybackRate:1)}function rr(t){return en(t.getAttribute("data-automation"),rt(t))}function ot(t){return Ee(e=>t.getAttribute(e))}function ae(t,e){return or(e,ot(t),rr(t))}function at(t){let e=et({tag:"video",authoredDurationSeconds:Je(n=>t.getAttribute(n)),sourceDurationSeconds:Number.isFinite(t.duration)?t.duration:null,mediaStartSeconds:ot(t),playbackRate:rt(t)});return e.source==="media"?ae(t,t.duration):e.seconds}function Me(t,e=0){return!Ht(t)||!t.hasAttribute("data-start")&&!t.hasAttribute("data-track-index")?null:et({tag:"img",authoredDurationSeconds:$t(n=>t.getAttribute(n),e),sourceDurationSeconds:null,mediaStartSeconds:0,playbackRate:1}).seconds}function or(t,e,n){return typeof n=="number"?Qe(t,e,n):Number.isFinite(t)?Qt(n,Math.max(0,t-e)):null}function an(){return globalThis}function st(t,e){if(typeof window>"u")return;let n=an(),i=n.__hf?.onSwallowed;if(i)try{i({label:t,error:e})}catch(r){}(n.__hfDebug||n.__HYPERFRAMES_DEBUG)&&console.debug(`[hyperframes] ${t} swallowed:`,e)}var ar=t=>t.paused?.()===!0?(t.startTime?.()??0)+(t.totalDuration?.()??0)/Math.abs(t.timeScale?.()||1):0;function se(t){try{if(typeof t?.duration!="function")return null;let e=t.getChildren?.(!1,!1,!0),n=Array.isArray(e)?e:[],i=Math.max(Number(t.duration()),...n.map(ar));return Number.isFinite(i)?i:null}catch(e){return st("runtime.timelineDuration",e),null}}var sn="data-hf-authored-duration",ln="data-hf-authored-end";function le(t){if(t==null||typeof t=="string"&&t.trim()==="")return null;let e=typeof t=="number"?t:Number(t);return Number.isFinite(e)?e:null}function Ce(t){let e=le(t.start);if(e==null)return null;let n=Math.max(0,e),i=le(t.duration),r=le(t.authoredDuration),o=i!=null&&i>0?i:r!=null&&r>0?r:null;if(o!=null)return{start:n,duration:o,end:n+o};let a=le(t.end),s=le(t.authoredEnd),l=a!=null&&a>n?a:s!=null&&s>n?s:null;return{start:n,duration:l==null?null:l-n,end:l}}var z=Object.freeze({start:"data-start",duration:"data-duration",trackIndex:"data-track-index",derivedEnd:"data-end",legacyTrack:"data-layer"}),pa=Object.freeze([z.start,z.duration,z.trackIndex]),ha=Object.freeze([z.derivedEnd]),fa=Object.freeze([z.derivedEnd,z.legacyTrack]);function sr(t){if(t==null||t.trim()==="")return null;let e=Number(t);return Number.isFinite(e)?e:null}var un=t=>{let e=sr(t);return e!==null&&e>=0?e:null};function lr(t){return un(t("data-playback-start"))??un(t("data-media-start"))??0}var dn="data-hf-media-start-basis";function cn(t){return t?.trim().toLowerCase()==="global"?"global":"local"}function ur(t){return cn(t.basis)==="global"?t.authoredStart:t.hostStart+t.authoredStart}function mn(t){return hn(t)?ur({authoredStart:t.authoredStart,hostStart:t.hostStart,basis:t.basis}):t.ordinaryStart()}function pn(t){return hn(t)&&cn(t.basis)==="global"}function hn(t){return!t.hasAutoStart&&t.authoredStart!=null&&t.hostStart!==0}function lt(t){return lr(e=>t.getAttribute(e))}function fn(t,e){return t-lt(e)}function ue(t){let e=t.timelineRegistry??{},n=t.includeAuthoredTimingAttrs??!1,i=t.documentRef??document,r=new WeakMap,o=new WeakMap,a=new Set,s=d=>(d.hasAttribute("data-composition-id")?d.parentElement:d)?.closest("[data-composition-id]")??null,l=(d,f)=>{let g=s(f);if(g){for(let M of g.querySelectorAll(`[id="${d}"]`))if(s(M)===g)return M}let R=i.getElementById(d);return R||(Array.from(i.querySelectorAll("[data-composition-id]")).find(M=>M.getAttribute("data-composition-id")===d)??null)},u=(d,f)=>n?d.getAttribute(f):null,c=d=>Ce({start:0,duration:d.getAttribute("data-duration"),authoredDuration:u(d,"data-hf-authored-duration")})?.duration??Ce({start:T(d,0),end:d.getAttribute("data-end"),authoredEnd:u(d,"data-hf-authored-end")})?.duration??null,h=d=>d!=null&&Number.isFinite(d)&&d>0?d:null,v=d=>{let f=d.getAttribute("data-composition-id");return f?h(se(e[f])):null},_=d=>{let f=o.get(d);if(f!==void 0)return f;let g=c(d)??h(P(d)?ae(d,d.duration):null)??h(Me(d))??v(d);return o.set(d,g),g},A="[data-composition-src], [data-composition-id], [data-composition-file]",b=d=>d.matches(A),S=d=>!d.hasAttribute("data-composition-id")||oe(d.getAttribute("data-start"))?null:d.parentElement?.closest(`[data-start], ${A}`)??null,k=(d,f)=>fn(T(d,f),S(d)??d),C=(d,f)=>{let g=d.hasAttribute("data-composition-id")?d.parentElement?.closest("[data-composition-id]"):d.closest("[data-composition-id]");return g?k(g,f):0},I=(d,f)=>{let g=oe(d.getAttribute("data-start"));if(!g){let H=S(d);return H?T(H,f):f}if(g.kind==="absolute")return C(d,f)+Math.max(0,g.value);let R=l(g.refId,d);if(!R)return f;let M=T(R,0),ve=_(R)??0,Ae=Math.min(0,C(d,0));return Math.max(Ae,M+ve+g.offset)},T=(d,f)=>{let g=r.get(d);if(g!==void 0)return g??f;if(a.has(d))return f;a.add(d);try{let R=I(d,f);return r.set(d,R),R}finally{a.delete(d)}},U=d=>{let f=d.closest("[data-composition-id]");return{authoredStart:V(d.getAttribute("data-start")),hostStart:f?k(f,0):0,hasAutoStart:d.hasAttribute("data-hf-auto-start"),basis:d.getAttribute(dn)}};return{resolveStartForElement:(d,f=0)=>T(d,Math.max(0,f)),resolveDurationForElement:d=>_(d),resolveMediaStartForElement:d=>{let f=U(d);return mn({...f,ordinaryStart:()=>T(d,f.hostStart)})},resolveHostStartForElement:d=>C(d,0),resolveHostSlotsForElement:d=>{let f=[];for(let g=d.parentElement;g;g=g.parentElement){if(!b(g)||S(g)||lt(g)<=0)continue;let R=T(g,0),M=c(g);f.push({start:R,end:M?R+M:1/0})}return f},isRootGlobalMediaStartForElement:d=>P(d)&&pn(U(d))}}function bn(){return{capturedTimeline:null,isPlaying:!1,currentTime:0,deterministicAdapters:[],canonicalFps:30,bridgeMuted:!1,bridgeVolume:1,mediaOutputMuted:!1,nativeMediaSyncDisabled:!1,webAudioMediaDisabled:!1,mediaAutoplayBlockedPosted:!1,mediaForceSyncNextTick:!1,playbackRate:1,bridgeLastPostedFrame:-1,bridgeLastPostedAt:0,bridgeLastPostedPlaying:!1,bridgeLastPostedMuted:!1,bridgeMaxPostIntervalMs:80,controlBridgeHandler:null,beforeUnloadHandler:null,injectedCompStyles:[],injectedCompScripts:[],injectedCompLinks:[],cachedTimedMediaEls:[],cachedMediaClips:[],cachedVideoClips:[],cachedMediaTimelineDurationSeconds:0,tornDown:!1,transportClock:null,transportRafId:null}}var gn=7200,ut=1/60,de=t=>t!==null&&t>ut?t:null;function dr(t){return{width:Se(t.getAttribute("data-width")),height:Se(t.getAttribute("data-height"))}}function cr(t,e){let n=null;for(let i of t.querySelectorAll("video[data-start], audio[data-start]")){let r=e.mediaStart(i);if(!Number.isFinite(r))continue;let o=e.mediaDuration(i);if(o==null||o<=ut)continue;let a=Math.max(0,r)+o;(!n||a>n.seconds)&&(n={seconds:a,element:i})}return n&&de(n.seconds)!==null?n:null}function mr(t,e){return cr(t,e)?.seconds??null}function pr(t,e){let n=[];for(let r of t.querySelectorAll("[data-composition-id][data-start]")){if(r.parentElement?.closest("[data-composition-id]")!==t)continue;let o=e.resolveStartForElement(r,0),a=e.resolveDurationForElement(r);!Number.isFinite(o)||a==null||a<=0||n.push(Math.max(0,o)+a)}let i=V(t.getAttribute("data-duration"));return de(qe({authoredDurationSeconds:null,clipEndsSeconds:[i,...n]}).seconds)}var hr=t=>t.hasAttribute("data-composition-id")||t.hasAttribute("data-composition-src");function fr(t,e,{unregisteredLottie:n}){let i=[];for(let o of t.querySelectorAll("[data-start]")){let a=e.resolveStartForElement(o,0);if(!Number.isFinite(a))continue;let s=e.resolveDurationForElement(o);s!=null?i.push(Math.max(0,a)+s):(P(o)||hr(o))&&i.push(null)}(n||t.querySelector("[data-lottie-src]"))&&i.push(null);let r=qe({authoredDurationSeconds:null,clipEndsSeconds:i});return r.pendingClips>0?{...r,seconds:null,source:"unresolved",reason:"a clip's length is pending"}:r}function br(t){return gr(t).seconds}function gr(t){if(t.declared!==null&&Number.isFinite(t.declared)&&t.declared>0)return{seconds:t.declared,from:"declared",floorIndex:null};let e=de(t.timeline()),n=t.floors().map(h=>h??0),i=Math.max(0,...n),r=Number.isFinite(t.fallback)&&t.fallback>ut?t.fallback:0,o=Math.max(i,r),s=e!==null&&e>=gn&&de(o)!==null?null:e,l=i>=r,u=h=>({seconds:h,from:l?"floor":"fallback",floorIndex:l?n.indexOf(i):null});if(s!==null)return s>=o?{seconds:s,from:"timeline",floorIndex:null}:u(o);if(de(i)!==null)return u(o);if(r>0)return{seconds:r,from:"fallback",floorIndex:null};let c=t.derived();return{seconds:c>0?c:0,from:"derived",floorIndex:null}}function _n(t){let e=ee(t);if(!e)return null;let n=ue({timelineRegistry:{},includeAuthoredTimingAttrs:!0,documentRef:t}),i=br({declared:V(e.getAttribute("data-duration")),timeline:()=>null,floors:()=>[mr(t,{mediaStart:n.resolveMediaStartForElement,mediaDuration:at}),pr(e,n)],fallback:0,derived:()=>fr(e,n,{unregisteredLottie:!1}).seconds??0});return{...dr(e),fps:bn().canonicalFps,durationSeconds:i}}function Ie(t){return t+1e-5}function yn(){let{userAgent:t,maxTouchPoints:e}=navigator;return/iP(hone|ad|od)/.test(t)||/Macintosh/.test(t)&&e>1}function De(){let{userAgent:t}=navigator;return/AppleWebKit/.test(t)&&!/Chrom(e|ium)\/|Edg\/|Android/.test(t)}var _r="hyperframes-studio-preview";var dt="data-hf-player-frame";function yr(t){return De()&&t.defaultView?.frameElement?.hasAttribute(dt)===!0}function vn(t){return t.querySelector(`meta[name="${_r}"]`)!==null||yr(t)}var An="__hfPreviewErrors";function Sn(t){return t.hasRuntime||t.runtimeInjected?!1:!!(t.hasNestedCompositions||t.hasTimelines&&t.attempts>=5)}function j(t){return typeof t=="object"&&t!==null}function En(t){return j(t)&&typeof t.getDuration=="function"}function Tn(t){return j(t)&&typeof t.duration=="function"&&typeof t.time=="function"&&typeof t.seek=="function"&&typeof t.play=="function"&&typeof t.pause=="function"}var q="https://cdn.jsdelivr.net/npm/@hyperframes/core@0.9.13/dist/hyperframe.runtime.iife.js";function ce(t){if(t===null)return null;let e=Number.parseInt(t,10);return Number.isFinite(e)&&e>0?e:null}function vr(t){let e=t?.querySelector("[data-composition-id][data-width][data-height]")??t?.querySelector("[data-width][data-height]");if(!e)return null;let n=ce(e.getAttribute("data-width")),i=ce(e.getAttribute("data-height"));return n!==null&&i!==null?{width:n,height:i}:null}function Ar(t){return Array.isArray(t)?t.find(e=>typeof e=="string"&&e.trim()!==""&&e!=="[object Event]")??null:null}var Pe=class{constructor(e,n){this._iframe=e;this._callbacks=n}_iframe;_callbacks;_interval=null;_runtimeInjected=!1;_runtimeScript=null;_failure=null;get failed(){return this._failure!==null&&this._failure.document===this._iframe.contentDocument}get runtimeInjected(){return this._runtimeInjected}start(){this.stop(),this._failure=null,this._runtimeInjected=!1;let e=0;this._interval=setInterval(()=>{e++;let n=null;try{n=this._poll(e)}catch(i){i instanceof DOMException&&i.name==="SecurityError"||(n={kind:"error",message:i instanceof Error?i.message:String(i)})}n??=this._deadlineOutcome(e),n&&(this.stop(),n.kind==="error"?(this._failure={document:this._iframe.contentDocument},this._callbacks.onError(n.message)):this._callbacks.onReady(n.result))},200)}_deadlineOutcome(e){return e<40||this._callbacks.hostOwnsDeadline?.()?null:{kind:"error",message:"Composition timeline not found after 8s"}}_poll(e){let n=this._iframe.contentWindow;if(!n)return null;let i=Ar(Reflect.get(n,An));if(i!==null)return{kind:"error",message:i};let r=this._iframe.contentDocument,o=Reflect.get(n,"__timelines"),a=this.hasRuntimeBridge(n);if(Sn({hasRuntime:a,hasTimelines:j(o)&&Object.keys(o).length>0,hasNestedCompositions:!!r?.querySelector("[data-composition-src]"),runtimeInjected:this._runtimeInjected,attempts:e}))return this._injectRuntime(),null;if(this._runtimeInjected&&!a)return null;let s=this._resolveReadyResult(n,r);return s?{kind:"ready",result:s}:null}_resolveReadyResult(e,n){let i=this._resolvePlaybackDurationAdapter(e)??{kind:"document",getDuration:()=>0},r=i.getDuration();if(!Number.isFinite(r)||r<=0){if(i.kind==="direct-timeline")return null;r=n?_n(n)?.durationSeconds??0:0}return r<=0?null:{duration:r,adapter:{...i,getDuration:()=>r},compositionSize:vr(n)}}stop(){this._runtimeScript&&(this._runtimeScript.onerror=null,this._runtimeScript=null),this.failed||(this._failure=null),this._interval!==null&&(clearInterval(this._interval),this._interval=null)}resolveDirectTimelineAdapter(){try{let e=this._iframe.contentWindow;return e?this._resolveDirectTimelineAdapterFromWindow(e):null}catch{return null}}resolveDirectTimelineAdapterFromWindow(e){return this._resolveDirectTimelineAdapterFromWindow(e)}hasRuntimeBridge(e){return j(Reflect.get(e,"__player"))}_injectRuntime(){this._runtimeInjected=!0;try{let e=this._iframe.contentDocument;if(!e)return;let n=e.createElement("script");n.src=this._callbacks.resolveRuntimeUrl?.()??q,this._runtimeScript=n,n.onerror=()=>{this._runtimeScript!==n||this._iframe.contentDocument!==e||(this.stop(),this._failure={document:e},this._callbacks.onError("HyperFrames runtime failed to load from "+n.src))},(e.head||e.documentElement).appendChild(n),this._callbacks.onRuntimeInjected?.()}catch{}}_resolveDirectTimelineAdapterFromWindow(e){if(this.hasRuntimeBridge(e))return null;let n=Reflect.get(e,"__timelines");if(!j(n))return null;let i=Object.keys(n);if(i.length===0)return null;let r=this._iframe.contentDocument?.querySelector("[data-composition-id]")?.getAttribute("data-composition-id"),o=r&&r in n?r:i[i.length-1],a=n[o];return Tn(a)?a:null}_resolvePlaybackDurationAdapter(e){let n=Reflect.get(e,"__player");if(En(n))return{kind:"runtime",getDuration:()=>n.getDuration()};let i=this._resolveDirectTimelineAdapterFromWindow(e);return i?{kind:"direct-timeline",timeline:i,getDuration:()=>i.duration()}:null}};var Rn=`
|
|
1
|
+
"use strict";var HyperframesPlayer=(()=>{var je=Object.defineProperty;var hi=Object.getOwnPropertyDescriptor;var fi=Object.getOwnPropertyNames;var bi=Object.prototype.hasOwnProperty;var gi=(t,e)=>{for(var n in e)je(t,n,{get:e[n],enumerable:!0})},_i=(t,e,n,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of fi(e))!bi.call(t,r)&&r!==n&&je(t,r,{get:()=>e[r],enumerable:!(i=hi(e,r))||i.enumerable});return t};var yi=t=>_i(je({},"__esModule",{value:!0}),t);var _o={};gi(_o,{HyperframesPlayer:()=>ze,SPEED_PRESETS:()=>pt,formatSpeed:()=>W,formatTime:()=>Le});var Ft=t=>t!==null&&Number.isFinite(t)&&t>0;function qe(t){let e=t.clipEndsSeconds.filter(i=>i===null).length;if(Ft(t.authoredDurationSeconds))return{seconds:t.authoredDurationSeconds,source:"authored",pendingClips:e};let n=t.clipEndsSeconds.filter(Ft);return n.length>0?{seconds:Math.max(...n),source:"derived",pendingClips:e}:{seconds:null,source:"unresolved",pendingClips:e,reason:e>0?"every clip's length is still pending":"no authored duration and no clip with a length"}}var vi="http://www.w3.org/1999/xhtml";function Ut(t){return t!=null&&t.nodeType===1}function Ye(t){return Ut(t)&&t.namespaceURI===vi}function Xe(t,e){return Ye(t)&&t.localName===e}function Ai(t){return Xe(t,"video")}function Si(t){return Xe(t,"audio")}function P(t){return Ai(t)||Si(t)}function Ht(t){return Xe(t,"img")}function Se(t){if(t==null||t.trim()==="")return null;let e=Number.parseInt(t,10);return Number.isFinite(e)&&e>0?e:null}function ee(t=document){let e=t.querySelector('[data-composition-id][data-root="true"]');return Ye(e)?e:t.querySelector("[data-composition-id]")}var G=Object.freeze({start:"data-start",duration:"data-duration",trackIndex:"data-track-index",derivedEnd:"data-end",legacyTrack:"data-layer"}),To=Object.freeze([G.start,G.duration,G.trackIndex]),Ro=Object.freeze([G.derivedEnd]),xo=Object.freeze([G.derivedEnd,G.legacyTrack]);function Ke(t){if(t==null||t.trim()==="")return null;let e=Number(t);return Number.isFinite(e)?e:null}var Vt=t=>{let e=Ke(t);return e!==null&&e>=0?e:null};function Ee(t){return Vt(t("data-playback-start"))??Vt(t("data-media-start"))??0}var te=.1,ne=10;function Ze(t){return Number.isFinite(t)&&t>0?Math.max(te,Math.min(ne,t)):1}function Wt(t,e=1){let n=Number.parseFloat(t("data-playback-rate")??"");return Ze(Number.isFinite(n)&&n>0?n:e)}function Je(t){let e=Ke(t("data-duration"));return e!==null&&e>0?e:null}function $t(t,e){let n=Je(t);if(n!==null)return n;let i=Ke(t("data-end"));return i!==null?i-e:null}var Ei=3;function Qe(t,e,n){return Number.isFinite(t)?Math.max(0,t-e)/Ze(n):null}function et(t){let{tag:e,authoredDurationSeconds:n,sourceDurationSeconds:i,mediaStartSeconds:r,playbackRate:o}=t;if(n!==null&&n>0)return{seconds:n,source:"authored"};if(e==="img")return{seconds:Ei,source:"default"};if(i===null)return{seconds:null,source:"pending",reason:"source duration not yet probed"};let a=Qe(i,r,o);return a===null?{seconds:null,source:"pending",reason:"source reported a non-finite duration"}:{seconds:a,source:"media"}}var Ti="data-fx-chain",ko=Ti.slice(5);var ie=(t="frequency",e="Frequency",n=1e3,i=20,r=2e4)=>({kind:"number",key:t,label:e,unit:"Hz",min:i,max:r,step:1,default:n,scale:"log",automatable:!0}),tt=(t=.707,e="Bandwidth: higher is narrower.")=>({kind:"number",key:"q",label:"Q",unit:"",min:.1,max:20,step:.01,default:t,scale:"log",automatable:!0,hint:e}),Te=(t=-40,e=40,n=0)=>({kind:"number",key:"gain",label:"Gain",unit:"dB",min:t,max:e,step:.1,default:n,automatable:!0}),Bt={kind:"enum",key:"poles",label:"Slope",options:[{value:"1",label:"6 dB/oct"},{value:"2",label:"12 dB/oct"}],default:"2",hint:"Two poles is the usual biquad; one pole is gentler."},Gt=[{id:"gain",label:"Gain",group:"dynamics",description:"Raise or lower the whole signal. Automate it to duck under something else.",params:[Te(-60,12,0)],web:"gain-node"},{id:"peaking",label:"Peaking EQ",group:"filter",description:"Boost or cut a band, leaving everything either side alone.",params:[ie("frequency","Frequency",1e3),Te(-40,40,0),tt(1)],web:"biquad-peaking"},{id:"lowshelf",label:"Low Shelf",group:"filter",description:"Lift or drop everything below the corner frequency.",params:[ie("frequency","Frequency",200,20,2e3),Te(-40,40,0)],web:"biquad-lowshelf"},{id:"highshelf",label:"High Shelf",group:"filter",description:"Lift or drop everything above the corner frequency.",params:[ie("frequency","Frequency",4e3,500,2e4),Te(-40,40,0)],web:"biquad-highshelf"},{id:"highpass",label:"High-pass",group:"filter",description:"Remove low frequencies: the usual fix for rumble on a voice.",params:[ie("frequency","Cutoff",300,20,2e4),tt(.707),Bt],web:"biquad-highpass"},{id:"lowpass",label:"Low-pass",group:"filter",description:"Remove high frequencies, which darkens or muffles a track.",params:[ie("frequency","Cutoff",8e3,100,2e4),tt(.707),Bt],web:"biquad-lowpass"},{id:"compressor",label:"Compressor",group:"dynamics",description:"Pull loud parts down so the quiet ones can come up.",params:[{kind:"number",key:"threshold",label:"Threshold",unit:"dB",min:-60,max:0,step:.5,default:-24,hint:"Level above which the compressor starts working."},{kind:"number",key:"ratio",label:"Ratio",unit:":1",min:1,max:20,step:.1,default:4},{kind:"number",key:"attack",label:"Attack",unit:"ms",min:.01,max:2e3,step:.1,default:20,scale:"log"},{kind:"number",key:"release",label:"Release",unit:"ms",min:.01,max:9e3,step:1,default:250,scale:"log"},{kind:"number",key:"knee",label:"Knee",unit:"",min:1,max:8,step:.01,default:2.83,hint:"1 is a hard corner; higher eases into it."},{kind:"number",key:"makeup",label:"Makeup",unit:"dB",min:0,max:36,step:.1,default:0},{kind:"number",key:"mix",label:"Mix",unit:"",min:0,max:1,step:.01,default:1,hint:"Below 1 blends the dry signal back in."}],web:"worklet-compressor"},{id:"limiter",label:"Limiter",group:"dynamics",description:"Peak limiter that follows the signal's level. It has no lookahead, so a fast peak or an inter-sample peak can pass the ceiling; use the true-peak limiter for a delivery limit.",params:[{kind:"number",key:"limit",label:"Ceiling",unit:"dB",min:-24,max:0,step:.1,default:-1},{kind:"number",key:"attack",label:"Attack",unit:"ms",min:.1,max:80,step:.1,default:5},{kind:"number",key:"release",label:"Release",unit:"ms",min:1,max:8e3,step:1,default:50,scale:"log"},{kind:"number",key:"level_out",label:"Output",unit:"dB",min:-24,max:24,step:.1,default:0}],web:"worklet-limiter"},{id:"truepeak",label:"True-peak limiter",group:"dynamics",description:"Lookahead limiter that holds a 4x estimate of the inter-sample peak at a dBTP ceiling; full-band noise can land up to about 1.7 dB above it. Adds lookahead plus about 0.3 ms of latency.",params:[{kind:"number",key:"ceiling",label:"Ceiling",unit:"dBTP",min:-24,max:0,step:.1,default:-1,hint:"Target true peak, measured on a 4x oversampled signal. Dense full-band sound can end up to about 1.7 dB above it."},{kind:"number",key:"lookahead",label:"Lookahead",unit:"ms",min:.5,max:10,step:.1,default:3,hint:"How far ahead the gain starts falling. Longer is smoother and adds the same latency."},{kind:"number",key:"release",label:"Release",unit:"ms",min:10,max:2e3,step:1,default:80,scale:"log"}],web:"worklet-truepeak"},{id:"gate",label:"Noise Gate",group:"dynamics",description:"Silence the track when it drops below the threshold.",params:[{kind:"number",key:"threshold",label:"Threshold",unit:"dB",min:-80,max:0,step:.5,default:-35},{kind:"number",key:"range",label:"Range",unit:"dB",min:-80,max:0,step:.5,default:-24,hint:"How far down the gate pulls when closed."},{kind:"number",key:"ratio",label:"Ratio",unit:":1",min:1,max:20,step:.1,default:10},{kind:"number",key:"attack",label:"Attack",unit:"ms",min:.01,max:9e3,step:.1,default:1,scale:"log"},{kind:"number",key:"release",label:"Release",unit:"ms",min:.01,max:9e3,step:1,default:100,scale:"log"},{kind:"number",key:"knee",label:"Knee",unit:"",min:1,max:8,step:.01,default:2.83}],web:"worklet-gate"},{id:"saturate",label:"Saturation",group:"nonlinear",description:"Soft-clip the waveform for warmth or outright distortion.",params:[{kind:"enum",key:"type",label:"Curve",options:[{value:"tanh",label:"Tanh"},{value:"atan",label:"Arctan"},{value:"cubic",label:"Cubic"},{value:"exp",label:"Exponential"},{value:"alg",label:"Algebraic"},{value:"quintic",label:"Quintic"},{value:"sin",label:"Sine"},{value:"erf",label:"Error function"},{value:"hard",label:"Hard clip"}],default:"tanh"},{kind:"number",key:"threshold",label:"Threshold",unit:"dB",min:-40,max:0,step:.1,default:-6},{kind:"number",key:"output",automatable:!0,label:"Output",unit:"dB",min:-24,max:24,step:.1,default:0},{kind:"number",key:"oversample",label:"Oversample",unit:"x",min:1,max:8,step:1,default:4,hint:"Higher costs more but keeps aliasing down."}],web:"waveshaper"},{id:"bitcrush",label:"Bitcrush",group:"nonlinear",description:"Drop bit depth and sample rate for a lo-fi, digital sound.",params:[{kind:"number",key:"bits",label:"Bit depth",unit:"bit",min:1,max:32,step:.1,default:8},{kind:"number",key:"samples",label:"Sample hold",unit:"x",min:1,max:250,step:1,default:1,hint:"Repeats each sample N times, a crude downsample."},{kind:"number",key:"mix",label:"Mix",unit:"",min:0,max:1,step:.01,default:1}],web:"worklet-bitcrush"},{id:"pitchshift",label:"Pitch shift",group:"time",description:"Shifts pitch up or down without changing playback speed. Adds ~50 ms of latency.",params:[{kind:"number",key:"semitones",label:"Semitones",unit:"st",min:-12,max:12,step:1,default:0},{kind:"number",key:"mix",label:"Mix",unit:"",min:0,max:1,step:.01,default:1}],web:"worklet-pitchshift"},{id:"delay",label:"Delay",group:"time",description:"Repeating echoes behind the dry signal.",params:[{kind:"number",key:"time",automatable:!0,label:"Time",unit:"ms",min:1,max:5e3,step:1,default:250,scale:"log"},{kind:"number",key:"feedback",automatable:!0,label:"Feedback",unit:"",min:.01,max:.95,step:.01,default:.35},{kind:"number",key:"mix",automatable:!0,label:"Mix",unit:"",min:0,max:1,step:.01,default:.4}],web:"delay-feedback"},{id:"chorus",label:"Chorus",group:"time",description:"Detuned copies of the signal for width and thickness.",params:[{kind:"number",key:"delay",automatable:!0,label:"Delay",unit:"ms",min:1,max:100,step:.1,default:7},{kind:"number",key:"depth",automatable:!0,label:"Depth",unit:"ms",min:0,max:10,step:.01,default:2},{kind:"number",key:"speed",automatable:!0,label:"Rate",unit:"Hz",min:.01,max:10,step:.01,default:1},{kind:"number",key:"mix",automatable:!0,label:"Mix",unit:"",min:0,max:1,step:.01,default:.5}],web:"chorus-lfo"},{id:"phaser",label:"Phaser",group:"time",description:"Sweeping notches moving through the spectrum.",params:[{kind:"number",key:"in_gain",automatable:!0,label:"Input",unit:"",min:0,max:1,step:.01,default:.4},{kind:"number",key:"out_gain",automatable:!0,label:"Output",unit:"",min:0,max:2,step:.01,default:.74},{kind:"number",key:"delay",label:"Delay",unit:"ms",min:.1,max:5,step:.1,default:3},{kind:"number",key:"decay",label:"Decay",unit:"",min:0,max:.99,step:.01,default:.4},{kind:"number",key:"speed",automatable:!0,label:"Rate",unit:"Hz",min:.1,max:2,step:.01,default:.5},{kind:"enum",key:"type",label:"Waveform",options:[{value:"0",label:"Triangular"},{value:"1",label:"Sinusoidal"}],default:"0"}],web:"allpass-phaser"},{id:"reverb",label:"Reverb",group:"time",description:"Room tail. Both ends convolve the same generated impulse, so preview matches render.",params:[{kind:"number",key:"size",label:"Room size",unit:"",min:.05,max:1,step:.01,default:.7},{kind:"number",key:"damping",label:"Damping",unit:"",min:0,max:1,step:.01,default:.5,hint:"Higher rolls the top off the tail faster."},{kind:"number",key:"wet",automatable:!0,label:"Wet",unit:"",min:0,max:1,step:.01,default:.35},{kind:"number",key:"dry",automatable:!0,label:"Dry",unit:"",min:0,max:1,step:.01,default:.7}],web:"convolver"}],Mo=new Map(Gt.map(t=>[t.id,t]));var Co=Gt.map(t=>t.id);function Ri(t){return 10**(t/20)}var zt=Ri(12);var jt="data-automation",Wo=jt.slice(5),nt=1,xi=512,L=class extends Error{constructor(e){super(e),this.name="AudioAutomationError"}},Re="volume",xe="rate";function qt(t){if(t===Re)return{kind:"volume"};if(t===xe)return{kind:"rate"};let e=t.split(".");if(e.length===3&&e[0]==="fx"&&e[1]===wi){let r=e[2];return r?{kind:"preset",presetId:r}:null}if(e.length!==3||e[0]!=="fx")return null;let[,n,i]=e;return!n||!i?null:{kind:"fx",nodeId:n,param:i}}var wi="preset";var ki={min:0,max:zt,step:.01,unit:"",label:"Volume",scale:"linear",default:1};var Mi={min:te,max:ne,step:.05,unit:"x",label:"Speed",scale:"log",default:1};function re(t){if(typeof t=="number")return Number.isFinite(t)?t:null;if(typeof t=="string"&&t.trim()!==""){let e=Number(t);return Number.isFinite(e)?e:null}return null}function Ci(t){let e=re(t);return e===null||e===0?0:Math.min(1,Math.max(-1,e))}function Yt(t,e){let n=re(t),i=re(e);if(n===null||i===null)return null;let r=s=>Math.min(.999,Math.max(.001,s)),o=r(n),a=r(i);return Math.abs(o-a)<1e-6?null:{x:o,y:a}}function Ii(t){let e=Ci(t?.curve),n=Yt(t?.viaX,t?.viaY);return{...e?{curve:e}:{},...n?{viaX:n.x,viaY:n.y}:{}}}function Di(t,e){let n=re(t?.t),i=re(t?.v);if(n===null||i===null)return null;let r=e?Math.min(e.max,Math.max(e.min,i)):i;return{t:Math.max(0,n),v:r,...Ii(t)}}function Pi(t,e){let n=t.map(r=>Di(r,e)).filter(r=>r!==null).sort((r,o)=>r.t-o.t),i=[];for(let r of n)i.length>0&&i[i.length-1].t===r.t?i[i.length-1]=r:i.push(r);return i.slice(0,xi)}function Li(t){let e=[];for(let n of t.lanes){if(!qt(n.target))continue;let i=n.target===Re?ki:n.target===xe?Mi:null,r=Pi(n.points??[],i);r.length>0&&e.push({target:n.target,points:r})}return{version:nt,lanes:e}}function Xt(t){let e;try{e=JSON.parse(t)}catch(r){throw new L(`Automation is not valid JSON: ${r.message}`)}if(typeof e!="object"||e===null)throw new L("Automation must be a JSON object.");let n=e;if(n.version!==nt)throw new L(`Unsupported automation version: ${String(n.version)}`);if(!Array.isArray(n.lanes))throw new L("Automation is missing a `lanes` array.");let i=n.lanes.map((r,o)=>{if(typeof r!="object"||r===null)throw new L(`Lane ${o} is not an object.`);let a=r;if(typeof a.target!="string"||!qt(a.target))throw new L(`Lane ${o} has an unreadable target: ${String(a.target)}`);if(!Array.isArray(a.points))throw new L(`Lane ${o} is missing a \`points\` array.`);return{target:a.target,points:a.points}});return Li({version:nt,lanes:i})}function Ni(t,e){return e?Math.pow(t,Math.pow(2,2*e)):t}function Oi(t,e){let n=t-.5,i=e-.5,r=.999,o=1e6,a=n>0?n/(r-t):n<0?-n/(t-(1-r)):0,s=i>0?i/(r-e):i<0?-i/(e-(1-r)):0,l=Math.min(o,Math.max(1,a,s));return{cx:t+n/l,cy:e+i/l,w:l}}function Fi(t,e,n){let{cx:i,cy:r,w:o}=Oi(e,n),a=2-2*o,s=t*a-1+2*o*i,l=-t*a-2*o*i,u=Ui(s,l,t),c=1-u,h=c*c+2*o*u*c+u*u;return h>0?(2*o*r*u*c+u*u)/h:t}function Ui(t,e,n){if(Math.abs(t)<1e-12)return Math.abs(e)<1e-12?n:-n/e;let i=Math.sqrt(Math.max(0,e*e-4*t*n)),r=(-e+i)/(2*t),o=(-e-i)/(2*t),a=s=>s>=-1e-9&&s<=1+1e-9;return a(r)?Math.min(1,Math.max(0,r)):a(o)?Math.min(1,Math.max(0,o)):n}function Hi(t,e){let n=Yt(e.viaX,e.viaY);return n?Fi(Math.min(1,Math.max(0,t)),n.x,n.y):Ni(t,e.curve)}function Vi(t,e,n,i){return i==="log"&&t>0&&e>0?Math.exp(Math.log(t)+(Math.log(e)-Math.log(t))*n):t+(e-t)*n}function we(t,e,n="linear"){let i=t.points;if(i.length===0)return 0;let r=i[0];if(e<=r.t)return r.v;let o=i[i.length-1];if(e>=o.t)return o.v;let a=0,s=i.length-1;for(;s-a>1;){let h=a+s>>1;i[h].t<=e?a=h:s=h}let l=i[a],u=i[s],c=u.t-l.t;return c<=0?u.v:Vi(l.v,u.v,Hi((e-l.t)/c,l),n)}var ke=new Map,Wi=64;function Kt(t,e=Re){let n=`${e}\0${t}`,i=ke.get(n);if(i!==void 0)return i;let r=null;try{r=Xt(t).lanes.find(o=>o.target===e)??null}catch{r=null}return ke.size>Wi&&ke.clear(),ke.set(n,r),r}var Zt=48,Jt=new WeakMap;function $i(t){let e=t.points,n=e[0].v,i=e[e.length-1].v,r=[0],o=[0],a=l=>{let u=r[r.length-1];if(l<=u)return;let c=we(t,u,"log");r.push(l),o.push(o[o.length-1]+(c+we(t,l,"log"))/2*(l-u))},s=Math.max(0,e[0].t);a(s);for(let l=1;l<e.length;l+=1){let u=e[l-1].t,c=e[l].t;if(!(c<=0))for(let h=1;h<=Zt;h+=1)a(Math.max(u,0)+(c-u)*h/Zt)}return{ts:Float64Array.from(r),ss:Float64Array.from(o),firstRate:n,lastRate:i}}function Bi(t){let e=Jt.get(t);return e||(e=$i(t),Jt.set(t,e)),e}function Gi(t){return typeof t!="number"&&t.points.length>0}function zi(t,e,n){let i=0,r=t.length-1;for(;r-i>1;){let o=i+r>>1;t[o]<=n?i=o:r=o}return e[i]+(e[r]-e[i])*(n-t[i])/(t[r]-t[i])}function Qt(t,e){if(typeof t=="number")return e/t;if(!Gi(t))return e;let{ts:n,ss:i,firstRate:r,lastRate:o}=Bi(t),a=n.length-1;return e<=0?e/r:e>=i[a]?n[a]+(e-i[a])/o:zi(i,n,e)}function ji(t){return t?Kt(t,xe):null}function en(t,e){return ji(t)??e}var Yo=[{id:"montage",label:"Montage",points:[[0,.9],[.15,.3],[.5,2.5],[.85,.3],[1,.9]]},{id:"hero",label:"Hero",points:[[0,1],[.25,1.6],[.5,.25],[.75,1.6],[1,1]]},{id:"bullet",label:"Bullet",points:[[0,3],[.4,3],[.5,.15],[.6,3],[1,3]]},{id:"jump-cut",label:"Jump cut",points:[[0,.5],[.24,.5],[.26,3],[.5,3],[.52,.5],[.74,.5],[.76,3],[1,3]]},{id:"flash-in",label:"Flash in",points:[[0,.3],[.6,.6],[1,5]]},{id:"flash-out",label:"Flash out",points:[[0,5],[.4,.6],[1,.3]]},{id:"ramp-in",label:"Ramp in",points:[[0,.5],[1,1]]},{id:"ramp-out",label:"Ramp out",points:[[0,1],[1,.5]]},{id:"slowmo-middle",label:"Slow-mo middle",points:[[0,1],[1/3,.35],[2/3,.35],[1,1]]}];var y=Object.freeze({start:"data-start",duration:"data-duration",trackIndex:"data-track-index",derivedEnd:"data-end",legacyTrack:"data-layer"}),Ko=Object.freeze([y.start,y.duration,y.trackIndex]),Zo=Object.freeze([y.derivedEnd]),Jo=Object.freeze([y.derivedEnd,y.legacyTrack]);function N(t){if(t==null||t.trim()==="")return null;let e=Number(t);return Number.isFinite(e)?e:null}var rn=/^[A-Za-z0-9_.:-]+$/;function on(t,e){let n=t.charCodeAt(e);return n>=48&&n<=57}function tn(t,e){let n=e;for(;n>=0&&on(t,n);)n--;return n}function qi(t,e){let n=e;for(;n>=0&&(t[n]??"").trim()==="";)n--;return n}function Yi(t){let e=t.length-1;if(!on(t,e))return null;let n=tn(t,e);return t[n]==="."&&(n=tn(t,n-1)),n+1}function Xi(t){let e=Yi(t);if(e==null)return null;let n=qi(t,e-1),i=t[n];if(i!=="+"&&i!=="-")return null;let r=t.slice(0,n).trim();if(!rn.test(r))return null;let o=Number(t.slice(e));return Number.isFinite(o)?{refId:r,operator:i,magnitude:o}:null}function oe(t){let e=(t??"").trim();if(!e)return null;let n=N(e);if(n!=null)return{kind:"absolute",value:n};if(rn.test(e))return{kind:"reference",refId:e,offset:0};let i=Xi(e);return i?{kind:"reference",refId:i.refId,offset:i.operator==="-"?-i.magnitude:i.magnitude}:null}function x(t,e,n,i){t.push({code:e,attribute:n,value:i})}function Ki(t,e,n,i){if(e==null||e.trim()==="")return n.defaultStart===void 0?0:n.defaultStart;if(!t)return x(i,"invalid-start",y.start,e),null;if(t.kind==="absolute")return Math.max(0,t.value);let r=n.resolveReferenceEnd?.(t.refId);return r==null||!Number.isFinite(r)?(x(i,"unresolved-start-reference",y.start,e),null):Math.max(0,r+t.offset)}var Zi=1e-9;function Ji(t,e){return Math.abs(t-e)<=Zi}function Qi(t,e,n){let i=N(t);if(i==null){x(n,"deprecated-end",y.derivedEnd,t),x(n,"invalid-end",y.derivedEnd,t);return}if(e==null){x(n,"deprecated-end",y.derivedEnd,t);return}Ji(i,e)||(x(n,"deprecated-end",y.derivedEnd,t),x(n,"conflicting-end",y.derivedEnd,t))}function er(t,e,n){let i=N(t);return i==null||i<0?(x(n,"invalid-duration",y.duration,t),{duration:null,end:null,durationSource:"invalid"}):{duration:i,end:e==null?null:e+i,durationSource:"duration"}}function tr(t,e,n){x(n,"deprecated-end",y.derivedEnd,t);let i=N(t);return i==null?(x(n,"invalid-end",y.derivedEnd,t),{duration:null,end:null,durationSource:"invalid"}):e==null?{duration:null,end:i,durationSource:"legacy-end"}:i<e?(x(n,"end-before-start",y.derivedEnd,t),{duration:null,end:null,durationSource:"invalid"}):{duration:i-e,end:i,durationSource:"legacy-end"}}function nr(t,e,n){let i=t.getAttribute(y.duration),r=t.getAttribute(y.derivedEnd);if(i==null)return r==null?{duration:null,end:null,durationSource:"missing"}:tr(r,e,n);let o=er(i,e,n);return r!=null&&Qi(r,o.end,n),o}function nn(t,e,n,i){let r=N(t);return r==null||!Number.isInteger(r)?(x(i,"invalid-track-index",e,t),{trackIndex:0,trackSource:"invalid"}):{trackIndex:r,trackSource:n}}function ir(t,e){let n=t.getAttribute(y.trackIndex),i=t.getAttribute(y.legacyTrack);if(n==null&&i==null)return{trackIndex:0,trackSource:"default"};if(n==null&&i!=null)return x(e,"deprecated-layer",y.legacyTrack,i),nn(i,y.legacyTrack,"legacy-layer",e);let r=nn(n??"",y.trackIndex,"track-index",e);if(i==null)return r;x(e,"deprecated-layer",y.legacyTrack,i);let o=N(i);return o!=null&&o!==r.trackIndex&&x(e,"conflicting-layer",y.legacyTrack,i),r}function it(t,e={}){let n=[],i=t.getAttribute(y.start),r=oe(i),o=Ki(r,i,e,n),a=nr(t,o,n),s=ir(t,n);return{startExpression:r,start:o,...a,...s,diagnostics:n}}function V(t){return N(t)}function rt(t){return Wt(e=>t.getAttribute(e),P(t)?t.defaultPlaybackRate:1)}function rr(t){return en(t.getAttribute("data-automation"),rt(t))}function ot(t){return Ee(e=>t.getAttribute(e))}function ae(t,e){return or(e,ot(t),rr(t))}function at(t){let e=et({tag:"video",authoredDurationSeconds:Je(n=>t.getAttribute(n)),sourceDurationSeconds:Number.isFinite(t.duration)?t.duration:null,mediaStartSeconds:ot(t),playbackRate:rt(t)});return e.source==="media"?ae(t,t.duration):e.seconds}function Me(t,e=0){return!Ht(t)||!t.hasAttribute("data-start")&&!t.hasAttribute("data-track-index")?null:et({tag:"img",authoredDurationSeconds:$t(n=>t.getAttribute(n),e),sourceDurationSeconds:null,mediaStartSeconds:0,playbackRate:1}).seconds}function or(t,e,n){return typeof n=="number"?Qe(t,e,n):Number.isFinite(t)?Qt(n,Math.max(0,t-e)):null}function an(){return globalThis}function st(t,e){if(typeof window>"u")return;let n=an(),i=n.__hf?.onSwallowed;if(i)try{i({label:t,error:e})}catch(r){}(n.__hfDebug||n.__HYPERFRAMES_DEBUG)&&console.debug(`[hyperframes] ${t} swallowed:`,e)}var ar=t=>t.paused?.()===!0?(t.startTime?.()??0)+(t.totalDuration?.()??0)/Math.abs(t.timeScale?.()||1):0;function se(t){try{if(typeof t?.duration!="function")return null;let e=t.getChildren?.(!1,!1,!0),n=Array.isArray(e)?e:[],i=Math.max(Number(t.duration()),...n.map(ar));return Number.isFinite(i)?i:null}catch(e){return st("runtime.timelineDuration",e),null}}var sn="data-hf-authored-duration",ln="data-hf-authored-end";function le(t){if(t==null||typeof t=="string"&&t.trim()==="")return null;let e=typeof t=="number"?t:Number(t);return Number.isFinite(e)?e:null}function Ce(t){let e=le(t.start);if(e==null)return null;let n=Math.max(0,e),i=le(t.duration),r=le(t.authoredDuration),o=i!=null&&i>0?i:r!=null&&r>0?r:null;if(o!=null)return{start:n,duration:o,end:n+o};let a=le(t.end),s=le(t.authoredEnd),l=a!=null&&a>n?a:s!=null&&s>n?s:null;return{start:n,duration:l==null?null:l-n,end:l}}var z=Object.freeze({start:"data-start",duration:"data-duration",trackIndex:"data-track-index",derivedEnd:"data-end",legacyTrack:"data-layer"}),pa=Object.freeze([z.start,z.duration,z.trackIndex]),ha=Object.freeze([z.derivedEnd]),fa=Object.freeze([z.derivedEnd,z.legacyTrack]);function sr(t){if(t==null||t.trim()==="")return null;let e=Number(t);return Number.isFinite(e)?e:null}var un=t=>{let e=sr(t);return e!==null&&e>=0?e:null};function lr(t){return un(t("data-playback-start"))??un(t("data-media-start"))??0}var dn="data-hf-media-start-basis";function cn(t){return t?.trim().toLowerCase()==="global"?"global":"local"}function ur(t){return cn(t.basis)==="global"?t.authoredStart:t.hostStart+t.authoredStart}function mn(t){return hn(t)?ur({authoredStart:t.authoredStart,hostStart:t.hostStart,basis:t.basis}):t.ordinaryStart()}function pn(t){return hn(t)&&cn(t.basis)==="global"}function hn(t){return!t.hasAutoStart&&t.authoredStart!=null&&t.hostStart!==0}function lt(t){return lr(e=>t.getAttribute(e))}function fn(t,e){return t-lt(e)}function ue(t){let e=t.timelineRegistry??{},n=t.includeAuthoredTimingAttrs??!1,i=t.documentRef??document,r=new WeakMap,o=new WeakMap,a=new Set,s=d=>(d.hasAttribute("data-composition-id")?d.parentElement:d)?.closest("[data-composition-id]")??null,l=(d,f)=>{let g=s(f);if(g){for(let M of g.querySelectorAll(`[id="${d}"]`))if(s(M)===g)return M}let R=i.getElementById(d);return R||(Array.from(i.querySelectorAll("[data-composition-id]")).find(M=>M.getAttribute("data-composition-id")===d)??null)},u=(d,f)=>n?d.getAttribute(f):null,c=d=>Ce({start:0,duration:d.getAttribute("data-duration"),authoredDuration:u(d,"data-hf-authored-duration")})?.duration??Ce({start:T(d,0),end:d.getAttribute("data-end"),authoredEnd:u(d,"data-hf-authored-end")})?.duration??null,h=d=>d!=null&&Number.isFinite(d)&&d>0?d:null,v=d=>{let f=d.getAttribute("data-composition-id");return f?h(se(e[f])):null},_=d=>{let f=o.get(d);if(f!==void 0)return f;let g=c(d)??h(P(d)?ae(d,d.duration):null)??h(Me(d))??v(d);return o.set(d,g),g},A="[data-composition-src], [data-composition-id], [data-composition-file]",b=d=>d.matches(A),S=d=>!d.hasAttribute("data-composition-id")||oe(d.getAttribute("data-start"))?null:d.parentElement?.closest(`[data-start], ${A}`)??null,k=(d,f)=>fn(T(d,f),S(d)??d),C=(d,f)=>{let g=d.hasAttribute("data-composition-id")?d.parentElement?.closest("[data-composition-id]"):d.closest("[data-composition-id]");return g?k(g,f):0},I=(d,f)=>{let g=oe(d.getAttribute("data-start"));if(!g){let H=S(d);return H?T(H,f):f}if(g.kind==="absolute")return C(d,f)+Math.max(0,g.value);let R=l(g.refId,d);if(!R)return f;let M=T(R,0),ve=_(R)??0,Ae=Math.min(0,C(d,0));return Math.max(Ae,M+ve+g.offset)},T=(d,f)=>{let g=r.get(d);if(g!==void 0)return g??f;if(a.has(d))return f;a.add(d);try{let R=I(d,f);return r.set(d,R),R}finally{a.delete(d)}},U=d=>{let f=d.closest("[data-composition-id]");return{authoredStart:V(d.getAttribute("data-start")),hostStart:f?k(f,0):0,hasAutoStart:d.hasAttribute("data-hf-auto-start"),basis:d.getAttribute(dn)}};return{resolveStartForElement:(d,f=0)=>T(d,Math.max(0,f)),resolveDurationForElement:d=>_(d),resolveMediaStartForElement:d=>{let f=U(d);return mn({...f,ordinaryStart:()=>T(d,f.hostStart)})},resolveHostStartForElement:d=>C(d,0),resolveHostSlotsForElement:d=>{let f=[];for(let g=d.parentElement;g;g=g.parentElement){if(!b(g)||S(g)||lt(g)<=0)continue;let R=T(g,0),M=c(g);f.push({start:R,end:M?R+M:1/0})}return f},isRootGlobalMediaStartForElement:d=>P(d)&&pn(U(d))}}function bn(){return{capturedTimeline:null,isPlaying:!1,currentTime:0,deterministicAdapters:[],canonicalFps:30,bridgeMuted:!1,bridgeVolume:1,mediaOutputMuted:!1,nativeMediaSyncDisabled:!1,webAudioMediaDisabled:!1,mediaAutoplayBlockedPosted:!1,mediaForceSyncNextTick:!1,playbackRate:1,bridgeLastPostedFrame:-1,bridgeLastPostedAt:0,bridgeLastPostedPlaying:!1,bridgeLastPostedMuted:!1,bridgeMaxPostIntervalMs:80,controlBridgeHandler:null,beforeUnloadHandler:null,injectedCompStyles:[],injectedCompScripts:[],injectedCompLinks:[],cachedTimedMediaEls:[],cachedMediaClips:[],cachedVideoClips:[],cachedMediaTimelineDurationSeconds:0,tornDown:!1,transportClock:null,transportRafId:null}}var gn=7200,ut=1/60,de=t=>t!==null&&t>ut?t:null;function dr(t){return{width:Se(t.getAttribute("data-width")),height:Se(t.getAttribute("data-height"))}}function cr(t,e){let n=null;for(let i of t.querySelectorAll("video[data-start], audio[data-start]")){let r=e.mediaStart(i);if(!Number.isFinite(r))continue;let o=e.mediaDuration(i);if(o==null||o<=ut)continue;let a=Math.max(0,r)+o;(!n||a>n.seconds)&&(n={seconds:a,element:i})}return n&&de(n.seconds)!==null?n:null}function mr(t,e){return cr(t,e)?.seconds??null}function pr(t,e){let n=[];for(let r of t.querySelectorAll("[data-composition-id][data-start]")){if(r.parentElement?.closest("[data-composition-id]")!==t)continue;let o=e.resolveStartForElement(r,0),a=e.resolveDurationForElement(r);!Number.isFinite(o)||a==null||a<=0||n.push(Math.max(0,o)+a)}let i=V(t.getAttribute("data-duration"));return de(qe({authoredDurationSeconds:null,clipEndsSeconds:[i,...n]}).seconds)}var hr=t=>t.hasAttribute("data-composition-id")||t.hasAttribute("data-composition-src");function fr(t,e,{unregisteredLottie:n}){let i=[];for(let o of t.querySelectorAll("[data-start]")){let a=e.resolveStartForElement(o,0);if(!Number.isFinite(a))continue;let s=e.resolveDurationForElement(o);s!=null?i.push(Math.max(0,a)+s):(P(o)||hr(o))&&i.push(null)}(n||t.querySelector("[data-lottie-src]"))&&i.push(null);let r=qe({authoredDurationSeconds:null,clipEndsSeconds:i});return r.pendingClips>0?{...r,seconds:null,source:"unresolved",reason:"a clip's length is pending"}:r}function br(t){return gr(t).seconds}function gr(t){if(t.declared!==null&&Number.isFinite(t.declared)&&t.declared>0)return{seconds:t.declared,from:"declared",floorIndex:null};let e=de(t.timeline()),n=t.floors().map(h=>h??0),i=Math.max(0,...n),r=Number.isFinite(t.fallback)&&t.fallback>ut?t.fallback:0,o=Math.max(i,r),s=e!==null&&e>=gn&&de(o)!==null?null:e,l=i>=r,u=h=>({seconds:h,from:l?"floor":"fallback",floorIndex:l?n.indexOf(i):null});if(s!==null)return s>=o?{seconds:s,from:"timeline",floorIndex:null}:u(o);if(de(i)!==null)return u(o);if(r>0)return{seconds:r,from:"fallback",floorIndex:null};let c=t.derived();return{seconds:c>0?c:0,from:"derived",floorIndex:null}}function _n(t){let e=ee(t);if(!e)return null;let n=ue({timelineRegistry:{},includeAuthoredTimingAttrs:!0,documentRef:t}),i=br({declared:V(e.getAttribute("data-duration")),timeline:()=>null,floors:()=>[mr(t,{mediaStart:n.resolveMediaStartForElement,mediaDuration:at}),pr(e,n)],fallback:0,derived:()=>fr(e,n,{unregisteredLottie:!1}).seconds??0});return{...dr(e),fps:bn().canonicalFps,durationSeconds:i}}function Ie(t){return t+1e-5}function yn(){let{userAgent:t,maxTouchPoints:e}=navigator;return/iP(hone|ad|od)/.test(t)||/Macintosh/.test(t)&&e>1}function De(){let{userAgent:t}=navigator;return/AppleWebKit/.test(t)&&!/Chrom(e|ium)\/|Edg\/|Android/.test(t)}var _r="hyperframes-studio-preview";var dt="data-hf-player-frame";function yr(t){return De()&&t.defaultView?.frameElement?.hasAttribute(dt)===!0}function vn(t){return t.querySelector(`meta[name="${_r}"]`)!==null||yr(t)}var An="__hfPreviewErrors";function Sn(t){return t.hasRuntime||t.runtimeInjected?!1:!!(t.hasNestedCompositions||t.hasTimelines&&t.attempts>=5)}function j(t){return typeof t=="object"&&t!==null}function En(t){return j(t)&&typeof t.getDuration=="function"}function Tn(t){return j(t)&&typeof t.duration=="function"&&typeof t.time=="function"&&typeof t.seek=="function"&&typeof t.play=="function"&&typeof t.pause=="function"}var q="https://cdn.jsdelivr.net/npm/@hyperframes/core@0.9.14/dist/hyperframe.runtime.iife.js";function ce(t){if(t===null)return null;let e=Number.parseInt(t,10);return Number.isFinite(e)&&e>0?e:null}function vr(t){let e=t?.querySelector("[data-composition-id][data-width][data-height]")??t?.querySelector("[data-width][data-height]");if(!e)return null;let n=ce(e.getAttribute("data-width")),i=ce(e.getAttribute("data-height"));return n!==null&&i!==null?{width:n,height:i}:null}function Ar(t){return Array.isArray(t)?t.find(e=>typeof e=="string"&&e.trim()!==""&&e!=="[object Event]")??null:null}var Pe=class{constructor(e,n){this._iframe=e;this._callbacks=n}_iframe;_callbacks;_interval=null;_runtimeInjected=!1;_runtimeScript=null;_failure=null;get failed(){return this._failure!==null&&this._failure.document===this._iframe.contentDocument}get runtimeInjected(){return this._runtimeInjected}start(){this.stop(),this._failure=null,this._runtimeInjected=!1;let e=0;this._interval=setInterval(()=>{e++;let n=null;try{n=this._poll(e)}catch(i){i instanceof DOMException&&i.name==="SecurityError"||(n={kind:"error",message:i instanceof Error?i.message:String(i)})}n??=this._deadlineOutcome(e),n&&(this.stop(),n.kind==="error"?(this._failure={document:this._iframe.contentDocument},this._callbacks.onError(n.message)):this._callbacks.onReady(n.result))},200)}_deadlineOutcome(e){return e<40||this._callbacks.hostOwnsDeadline?.()?null:{kind:"error",message:"Composition timeline not found after 8s"}}_poll(e){let n=this._iframe.contentWindow;if(!n)return null;let i=Ar(Reflect.get(n,An));if(i!==null)return{kind:"error",message:i};let r=this._iframe.contentDocument,o=Reflect.get(n,"__timelines"),a=this.hasRuntimeBridge(n);if(Sn({hasRuntime:a,hasTimelines:j(o)&&Object.keys(o).length>0,hasNestedCompositions:!!r?.querySelector("[data-composition-src]"),runtimeInjected:this._runtimeInjected,attempts:e}))return this._injectRuntime(),null;if(this._runtimeInjected&&!a)return null;let s=this._resolveReadyResult(n,r);return s?{kind:"ready",result:s}:null}_resolveReadyResult(e,n){let i=this._resolvePlaybackDurationAdapter(e)??{kind:"document",getDuration:()=>0},r=i.getDuration();if(!Number.isFinite(r)||r<=0){if(i.kind==="direct-timeline")return null;r=n?_n(n)?.durationSeconds??0:0}return r<=0?null:{duration:r,adapter:{...i,getDuration:()=>r},compositionSize:vr(n)}}stop(){this._runtimeScript&&(this._runtimeScript.onerror=null,this._runtimeScript=null),this.failed||(this._failure=null),this._interval!==null&&(clearInterval(this._interval),this._interval=null)}resolveDirectTimelineAdapter(){try{let e=this._iframe.contentWindow;return e?this._resolveDirectTimelineAdapterFromWindow(e):null}catch{return null}}resolveDirectTimelineAdapterFromWindow(e){return this._resolveDirectTimelineAdapterFromWindow(e)}hasRuntimeBridge(e){return j(Reflect.get(e,"__player"))}_injectRuntime(){this._runtimeInjected=!0;try{let e=this._iframe.contentDocument;if(!e)return;let n=e.createElement("script");n.src=this._callbacks.resolveRuntimeUrl?.()??q,this._runtimeScript=n,n.onerror=()=>{this._runtimeScript!==n||this._iframe.contentDocument!==e||(this.stop(),this._failure={document:e},this._callbacks.onError("HyperFrames runtime failed to load from "+n.src))},(e.head||e.documentElement).appendChild(n),this._callbacks.onRuntimeInjected?.()}catch{}}_resolveDirectTimelineAdapterFromWindow(e){if(this.hasRuntimeBridge(e))return null;let n=Reflect.get(e,"__timelines");if(!j(n))return null;let i=Object.keys(n);if(i.length===0)return null;let r=this._iframe.contentDocument?.querySelector("[data-composition-id]")?.getAttribute("data-composition-id"),o=r&&r in n?r:i[i.length-1],a=n[o];return Tn(a)?a:null}_resolvePlaybackDurationAdapter(e){let n=Reflect.get(e,"__player");if(En(n))return{kind:"runtime",getDuration:()=>n.getDuration()};let i=this._resolveDirectTimelineAdapterFromWindow(e);return i?{kind:"direct-timeline",timeline:i,getDuration:()=>i.duration()}:null}};var Rn=`
|
|
2
2
|
:host {
|
|
3
3
|
display: block;
|
|
4
4
|
position: relative;
|
|
@@ -9,13 +9,13 @@ import {
|
|
|
9
9
|
} from "./chunk-ZBAF6L74.js";
|
|
10
10
|
import {
|
|
11
11
|
resolveProject
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-AOJBIFKU.js";
|
|
13
13
|
import {
|
|
14
14
|
formatBytes,
|
|
15
15
|
label
|
|
16
16
|
} from "./chunk-M3JU24AI.js";
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-O4ZD7TVR.js";
|
|
18
|
+
import "./chunk-XMOWL46H.js";
|
|
19
19
|
import "./chunk-PXVQOMKL.js";
|
|
20
20
|
import "./chunk-MCDNAIFF.js";
|
|
21
21
|
import "./chunk-BVAPHHMQ.js";
|
|
@@ -27,11 +27,11 @@ import "./chunk-54HJ63Q2.js";
|
|
|
27
27
|
import {
|
|
28
28
|
c
|
|
29
29
|
} from "./chunk-HOCC4J5C.js";
|
|
30
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-N7ZKI2CE.js";
|
|
31
31
|
import "./chunk-MEJH7VEA.js";
|
|
32
32
|
import {
|
|
33
33
|
isHtmlElement
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-EAO46VPT.js";
|
|
35
35
|
import "./chunk-VC76R6W2.js";
|
|
36
36
|
import "./chunk-OFQWTKPW.js";
|
|
37
37
|
import "./chunk-RQVDTPGD.js";
|
|
@@ -41,11 +41,11 @@ import "./chunk-LAGZGKKN.js";
|
|
|
41
41
|
import "./chunk-CZGHFATT.js";
|
|
42
42
|
import {
|
|
43
43
|
readDataDurationSeconds
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-OHQRQE7F.js";
|
|
45
45
|
import {
|
|
46
46
|
CANVAS_DIMENSIONS,
|
|
47
47
|
parseHtml
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-CUCP7FKH.js";
|
|
49
49
|
import "./chunk-FR7YBU3H.js";
|
|
50
50
|
import "./chunk-DPVXBVLL.js";
|
|
51
51
|
import "./chunk-GWTIFRF5.js";
|
|
@@ -55,7 +55,7 @@ import "./chunk-WC4MTXGN.js";
|
|
|
55
55
|
import "./chunk-FBN2M2HK.js";
|
|
56
56
|
import {
|
|
57
57
|
withMeta
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-IO3BC2ZK.js";
|
|
59
59
|
import "./chunk-BR2JQQC5.js";
|
|
60
60
|
import "./chunk-CKEOCCMK.js";
|
|
61
61
|
import "./chunk-ISN5GRYI.js";
|
|
@@ -63,7 +63,7 @@ import "./chunk-ADVVQX4I.js";
|
|
|
63
63
|
import "./chunk-66W5IWLO.js";
|
|
64
64
|
import "./chunk-FYZFURBN.js";
|
|
65
65
|
import "./chunk-QBXDU24O.js";
|
|
66
|
-
import "./chunk-
|
|
66
|
+
import "./chunk-FQFWGAON.js";
|
|
67
67
|
import "./chunk-E63BDV4Z.js";
|
|
68
68
|
import "./chunk-G7VEYUZ2.js";
|
|
69
69
|
import "./chunk-XT6MXC7A.js";
|
|
@@ -4,9 +4,12 @@ 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
|
+
cliSourced
|
|
9
|
+
} from "./chunk-LSUM6RTW.js";
|
|
7
10
|
import {
|
|
8
11
|
gateRegistryItemsCompatibility
|
|
9
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-2L4HQ5K4.js";
|
|
10
13
|
import {
|
|
11
14
|
copyDirSync
|
|
12
15
|
} from "./chunk-CIWX5UKC.js";
|
|
@@ -23,20 +26,20 @@ import {
|
|
|
23
26
|
} from "./chunk-LISUH6KH.js";
|
|
24
27
|
import {
|
|
25
28
|
initialModelForLanguage
|
|
26
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-T32JKZX3.js";
|
|
27
30
|
import "./chunk-SWC3QIEH.js";
|
|
28
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-DD47NQJZ.js";
|
|
29
32
|
import {
|
|
30
33
|
DEFAULT_MODEL,
|
|
31
34
|
hasFFmpeg
|
|
32
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-FZRTCVU6.js";
|
|
33
36
|
import "./chunk-RZ6CXJ56.js";
|
|
34
37
|
import "./chunk-R4EWRIDL.js";
|
|
35
38
|
import {
|
|
36
39
|
findFFmpeg,
|
|
37
40
|
findFFprobe,
|
|
38
41
|
getFFmpegInstallHint
|
|
39
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-ZNHWAGMH.js";
|
|
40
43
|
import "./chunk-UOFAE5RF.js";
|
|
41
44
|
import {
|
|
42
45
|
TRANSCRIPT_FILE
|
|
@@ -46,25 +49,25 @@ import "./chunk-XT7X6QCP.js";
|
|
|
46
49
|
import {
|
|
47
50
|
writeNewFileSync
|
|
48
51
|
} from "./chunk-5YPMCCCA.js";
|
|
52
|
+
import "./chunk-A4ZTSQLW.js";
|
|
49
53
|
import {
|
|
50
54
|
listRegistryItems,
|
|
51
55
|
loadAllItems,
|
|
52
56
|
resolveItemWithDependencies
|
|
53
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-VD5G4Y6U.js";
|
|
54
58
|
import "./chunk-JHOCK3DG.js";
|
|
55
59
|
import {
|
|
56
60
|
installItem
|
|
57
|
-
} from "./chunk-
|
|
58
|
-
import "./chunk-
|
|
61
|
+
} from "./chunk-K5CK4G75.js";
|
|
62
|
+
import "./chunk-7LQVFIO4.js";
|
|
59
63
|
import "./chunk-AWDFDFI3.js";
|
|
60
64
|
import "./chunk-P6LJ4Y32.js";
|
|
61
|
-
import "./chunk-T2WJO4XM.js";
|
|
62
|
-
import "./chunk-A4ZTSQLW.js";
|
|
63
65
|
import "./chunk-D3UCUI7G.js";
|
|
66
|
+
import "./chunk-T2WJO4XM.js";
|
|
64
67
|
import {
|
|
65
68
|
trackInitTemplate
|
|
66
|
-
} from "./chunk-
|
|
67
|
-
import "./chunk-
|
|
69
|
+
} from "./chunk-O4ZD7TVR.js";
|
|
70
|
+
import "./chunk-XMOWL46H.js";
|
|
68
71
|
import "./chunk-PXVQOMKL.js";
|
|
69
72
|
import "./chunk-MCDNAIFF.js";
|
|
70
73
|
import "./chunk-BVAPHHMQ.js";
|
|
@@ -80,17 +83,17 @@ import {
|
|
|
80
83
|
c,
|
|
81
84
|
isColorSupported
|
|
82
85
|
} from "./chunk-HOCC4J5C.js";
|
|
83
|
-
import "./chunk-
|
|
86
|
+
import "./chunk-6ZRGEVAM.js";
|
|
84
87
|
import "./chunk-Z5J67X44.js";
|
|
85
88
|
import "./chunk-5S7W3TUO.js";
|
|
86
89
|
import {
|
|
87
90
|
decodableAudioStream
|
|
88
91
|
} from "./chunk-D3MUHMFG.js";
|
|
89
|
-
import "./chunk-
|
|
92
|
+
import "./chunk-53UV2EUT.js";
|
|
90
93
|
import "./chunk-YWRUQ7XZ.js";
|
|
91
|
-
import "./chunk-
|
|
94
|
+
import "./chunk-N7ZKI2CE.js";
|
|
92
95
|
import "./chunk-MEJH7VEA.js";
|
|
93
|
-
import "./chunk-
|
|
96
|
+
import "./chunk-EAO46VPT.js";
|
|
94
97
|
import "./chunk-VC76R6W2.js";
|
|
95
98
|
import "./chunk-OFQWTKPW.js";
|
|
96
99
|
import "./chunk-RQVDTPGD.js";
|
|
@@ -103,18 +106,18 @@ import "./chunk-KGPLIH7B.js";
|
|
|
103
106
|
import "./chunk-LAGZGKKN.js";
|
|
104
107
|
import "./chunk-K4MJX7SR.js";
|
|
105
108
|
import "./chunk-WE42NVH7.js";
|
|
106
|
-
import "./chunk-
|
|
109
|
+
import "./chunk-CZ5NNJ6H.js";
|
|
107
110
|
import "./chunk-WVRAFHJU.js";
|
|
108
111
|
import "./chunk-CZGHFATT.js";
|
|
109
112
|
import "./chunk-HYRPH6LL.js";
|
|
110
|
-
import "./chunk-
|
|
113
|
+
import "./chunk-OHQRQE7F.js";
|
|
111
114
|
import {
|
|
112
115
|
CANVAS_DIMENSIONS,
|
|
113
116
|
HTML_BODY_CSS_HEIGHT_FIRST_RE,
|
|
114
117
|
HTML_BODY_CSS_WIDTH_FIRST_RE,
|
|
115
118
|
VIEWPORT_META_SIZE_RE,
|
|
116
119
|
normalizeResolutionFlag
|
|
117
|
-
} from "./chunk-
|
|
120
|
+
} from "./chunk-CUCP7FKH.js";
|
|
118
121
|
import "./chunk-FR7YBU3H.js";
|
|
119
122
|
import "./chunk-DPVXBVLL.js";
|
|
120
123
|
import "./chunk-GWTIFRF5.js";
|
|
@@ -138,7 +141,7 @@ import {
|
|
|
138
141
|
import "./chunk-QBXDU24O.js";
|
|
139
142
|
import {
|
|
140
143
|
VERSION
|
|
141
|
-
} from "./chunk-
|
|
144
|
+
} from "./chunk-FQFWGAON.js";
|
|
142
145
|
import "./chunk-E63BDV4Z.js";
|
|
143
146
|
import "./chunk-G7VEYUZ2.js";
|
|
144
147
|
import "./chunk-XT6MXC7A.js";
|
|
@@ -725,7 +728,7 @@ async function scaffoldProject(destDir, name, templateId, media, tailwind = fals
|
|
|
725
728
|
"utf-8"
|
|
726
729
|
);
|
|
727
730
|
if (!existsSync2(resolve(destDir, "hyperframes.json"))) {
|
|
728
|
-
const { createProjectConfig, DEFAULT_PROJECT_CONFIG } = await import("./projectConfig-
|
|
731
|
+
const { createProjectConfig, DEFAULT_PROJECT_CONFIG } = await import("./projectConfig-FIW6FPZW.js");
|
|
729
732
|
const { normalizeSkillSlug } = await import("./skill-ZHVLH7KX.js");
|
|
730
733
|
const skill = normalizeSkillSlug(authoringSkill);
|
|
731
734
|
createProjectConfig(
|
|
@@ -746,7 +749,7 @@ async function scaffoldProject(destDir, name, templateId, media, tailwind = fals
|
|
|
746
749
|
}
|
|
747
750
|
}
|
|
748
751
|
async function keepSkillsCurrent(destDir) {
|
|
749
|
-
const { updateSkills } = await import("./skills-
|
|
752
|
+
const { updateSkills } = await import("./skills-SOXKW42T.js");
|
|
750
753
|
console.log();
|
|
751
754
|
console.log(c.bold("Checking AI coding skills against GitHub..."));
|
|
752
755
|
try {
|
|
@@ -944,17 +947,17 @@ var init_default = defineCommand({
|
|
|
944
947
|
if (audioPath) {
|
|
945
948
|
sourceFilePath2 = audioPath;
|
|
946
949
|
copyFileSync(audioPath, resolve(destDir2, basename(audioPath)));
|
|
947
|
-
const { getMediaDurationSeconds } = await import("./transcribe-
|
|
950
|
+
const { getMediaDurationSeconds } = await import("./transcribe-GL3J3JB3.js");
|
|
948
951
|
videoDuration2 = getMediaDurationSeconds(audioPath) ?? void 0;
|
|
949
952
|
console.log(`Audio: ${basename(audioPath)}`);
|
|
950
953
|
}
|
|
951
954
|
if (sourceFilePath2 && !skipTranscribe) {
|
|
952
955
|
try {
|
|
953
|
-
const { ensureWhisper, ensureModel } = await import("./manager-
|
|
956
|
+
const { ensureWhisper, ensureModel } = await import("./manager-F4F4A734.js");
|
|
954
957
|
await ensureWhisper();
|
|
955
958
|
await ensureModel(initialTranscriptionModel);
|
|
956
959
|
console.log("Transcribing...");
|
|
957
|
-
const { transcribe: runTranscribe } = await import("./transcribe-
|
|
960
|
+
const { transcribe: runTranscribe } = await import("./transcribe-GL3J3JB3.js");
|
|
958
961
|
const result = await runTranscribe(sourceFilePath2, destDir2, {
|
|
959
962
|
model: modelFlag,
|
|
960
963
|
language: languageFlag
|
|
@@ -1022,7 +1025,9 @@ var init_default = defineCommand({
|
|
|
1022
1025
|
console.log(
|
|
1023
1026
|
` ${c.dim('"Using /hyperframes, create a 15-second intro about [your topic]"')}`
|
|
1024
1027
|
);
|
|
1025
|
-
console.log(
|
|
1028
|
+
console.log(
|
|
1029
|
+
` ${c.dim(`More patterns: ${cliSourced("https://hyperframes.heygen.com/prompting/overview")}`)}`
|
|
1030
|
+
);
|
|
1026
1031
|
console.log();
|
|
1027
1032
|
console.log(` ${c.accent("4.")} Preview in the browser:`);
|
|
1028
1033
|
console.log(` ${c.accent(`cd ${name2}`)} && ${c.accent("npm run dev")}`);
|
|
@@ -1033,7 +1038,7 @@ var init_default = defineCommand({
|
|
|
1033
1038
|
console.log(` ${c.accent("6.")} Render to MP4 when ready:`);
|
|
1034
1039
|
console.log(` ${c.accent(`cd ${name2}`)} && ${c.accent("npm run render")}`);
|
|
1035
1040
|
console.log();
|
|
1036
|
-
console.log(` ${c.dim(
|
|
1041
|
+
console.log(` ${c.dim(`Full docs: ${cliSourced("https://hyperframes.heygen.com")}`)}`);
|
|
1037
1042
|
return;
|
|
1038
1043
|
}
|
|
1039
1044
|
printBanner();
|
|
@@ -1100,7 +1105,7 @@ var init_default = defineCommand({
|
|
|
1100
1105
|
mkdirSync(destDir, { recursive: true });
|
|
1101
1106
|
sourceFilePath = audioPath;
|
|
1102
1107
|
copyFileSync(audioPath, resolve(destDir, basename(audioPath)));
|
|
1103
|
-
const { getMediaDurationSeconds } = await import("./transcribe-
|
|
1108
|
+
const { getMediaDurationSeconds } = await import("./transcribe-GL3J3JB3.js");
|
|
1104
1109
|
videoDuration = getMediaDurationSeconds(audioPath) ?? void 0;
|
|
1105
1110
|
R.info(`Audio copied to ${c.accent(basename(audioPath))}`);
|
|
1106
1111
|
}
|
|
@@ -1110,7 +1115,7 @@ var init_default = defineCommand({
|
|
|
1110
1115
|
initialValue: true
|
|
1111
1116
|
});
|
|
1112
1117
|
if (!q(transcribeChoice) && transcribeChoice) {
|
|
1113
|
-
const { findWhisper } = await import("./manager-
|
|
1118
|
+
const { findWhisper } = await import("./manager-F4F4A734.js");
|
|
1114
1119
|
const needsInstall = findWhisper() === void 0;
|
|
1115
1120
|
if (needsInstall) {
|
|
1116
1121
|
R.info(c.dim("whisper-cpp not found \u2014 installing automatically..."));
|
|
@@ -1120,7 +1125,7 @@ var init_default = defineCommand({
|
|
|
1120
1125
|
needsInstall ? "Installing whisper-cpp (this may take a moment)..." : "Preparing transcription..."
|
|
1121
1126
|
);
|
|
1122
1127
|
try {
|
|
1123
|
-
const { ensureWhisper, ensureModel } = await import("./manager-
|
|
1128
|
+
const { ensureWhisper, ensureModel } = await import("./manager-F4F4A734.js");
|
|
1124
1129
|
await ensureWhisper({
|
|
1125
1130
|
onProgress: (msg) => spin2.message(msg)
|
|
1126
1131
|
});
|
|
@@ -1128,7 +1133,7 @@ var init_default = defineCommand({
|
|
|
1128
1133
|
onProgress: (msg) => spin2.message(msg)
|
|
1129
1134
|
});
|
|
1130
1135
|
spin2.message("Transcribing audio...");
|
|
1131
|
-
const { transcribe: runTranscribe } = await import("./transcribe-
|
|
1136
|
+
const { transcribe: runTranscribe } = await import("./transcribe-GL3J3JB3.js");
|
|
1132
1137
|
const transcribeResult = await runTranscribe(sourceFilePath, destDir, {
|
|
1133
1138
|
model: modelFlag,
|
|
1134
1139
|
language: languageFlag,
|
|
@@ -1206,7 +1211,7 @@ ${c.dim("Use --example blank for offline use.")}`
|
|
|
1206
1211
|
}
|
|
1207
1212
|
R.info("Opening studio preview...");
|
|
1208
1213
|
try {
|
|
1209
|
-
const previewCmd = await import("./preview-
|
|
1214
|
+
const previewCmd = await import("./preview-6U62DM4P.js").then((m) => m.default);
|
|
1210
1215
|
await runCommand(previewCmd, { rawArgs: [destDir] });
|
|
1211
1216
|
} catch {
|
|
1212
1217
|
}
|
|
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
inkOf
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-SAAJ2O7A.js";
|
|
10
10
|
import {
|
|
11
11
|
jsonArg,
|
|
12
12
|
num,
|
|
@@ -14,26 +14,26 @@ import {
|
|
|
14
14
|
runMeasure,
|
|
15
15
|
videoAndRoi,
|
|
16
16
|
videoArg
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-GY7D2OEQ.js";
|
|
18
18
|
import {
|
|
19
19
|
Fix,
|
|
20
20
|
readFrameAt
|
|
21
|
-
} from "./chunk-
|
|
22
|
-
import "./chunk-
|
|
21
|
+
} from "./chunk-T4FLVFQE.js";
|
|
22
|
+
import "./chunk-ZNHWAGMH.js";
|
|
23
23
|
import {
|
|
24
24
|
defineCommand
|
|
25
25
|
} from "./chunk-DL4OD7IA.js";
|
|
26
26
|
import "./chunk-S3S4TGEH.js";
|
|
27
27
|
import "./chunk-HOCC4J5C.js";
|
|
28
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-6ZRGEVAM.js";
|
|
29
29
|
import "./chunk-Z5J67X44.js";
|
|
30
30
|
import "./chunk-5S7W3TUO.js";
|
|
31
31
|
import "./chunk-D3MUHMFG.js";
|
|
32
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-53UV2EUT.js";
|
|
33
33
|
import "./chunk-YWRUQ7XZ.js";
|
|
34
|
-
import "./chunk-
|
|
34
|
+
import "./chunk-N7ZKI2CE.js";
|
|
35
35
|
import "./chunk-MEJH7VEA.js";
|
|
36
|
-
import "./chunk-
|
|
36
|
+
import "./chunk-EAO46VPT.js";
|
|
37
37
|
import "./chunk-VC76R6W2.js";
|
|
38
38
|
import "./chunk-OFQWTKPW.js";
|
|
39
39
|
import "./chunk-RQVDTPGD.js";
|
|
@@ -44,12 +44,12 @@ import "./chunk-X6JUUQCM.js";
|
|
|
44
44
|
import "./chunk-KGPLIH7B.js";
|
|
45
45
|
import "./chunk-K4MJX7SR.js";
|
|
46
46
|
import "./chunk-WE42NVH7.js";
|
|
47
|
-
import "./chunk-
|
|
47
|
+
import "./chunk-CZ5NNJ6H.js";
|
|
48
48
|
import "./chunk-WVRAFHJU.js";
|
|
49
49
|
import "./chunk-CZGHFATT.js";
|
|
50
50
|
import "./chunk-HYRPH6LL.js";
|
|
51
|
-
import "./chunk-
|
|
52
|
-
import "./chunk-
|
|
51
|
+
import "./chunk-OHQRQE7F.js";
|
|
52
|
+
import "./chunk-CUCP7FKH.js";
|
|
53
53
|
import "./chunk-FR7YBU3H.js";
|
|
54
54
|
import "./chunk-DPVXBVLL.js";
|
|
55
55
|
import "./chunk-GWTIFRF5.js";
|
|
@@ -58,7 +58,7 @@ import "./chunk-EPQC3FGZ.js";
|
|
|
58
58
|
import "./chunk-WC4MTXGN.js";
|
|
59
59
|
import "./chunk-FBN2M2HK.js";
|
|
60
60
|
import "./chunk-766MOTIZ.js";
|
|
61
|
-
import "./chunk-
|
|
61
|
+
import "./chunk-IO3BC2ZK.js";
|
|
62
62
|
import "./chunk-BR2JQQC5.js";
|
|
63
63
|
import "./chunk-CKEOCCMK.js";
|
|
64
64
|
import "./chunk-ISN5GRYI.js";
|
|
@@ -66,7 +66,7 @@ import "./chunk-ADVVQX4I.js";
|
|
|
66
66
|
import "./chunk-66W5IWLO.js";
|
|
67
67
|
import "./chunk-FYZFURBN.js";
|
|
68
68
|
import "./chunk-QBXDU24O.js";
|
|
69
|
-
import "./chunk-
|
|
69
|
+
import "./chunk-FQFWGAON.js";
|
|
70
70
|
import "./chunk-E63BDV4Z.js";
|
|
71
71
|
import "./chunk-G7VEYUZ2.js";
|
|
72
72
|
import "./chunk-XT6MXC7A.js";
|