hyperframes 0.9.51 → 0.9.52
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-SERNROOY.js → add-Z6G2DLNE.js} +5 -5
- package/dist/{agentPromptGenerator-GVWX5P55.js → agentPromptGenerator-RCTC2XXL.js} +3 -3
- package/dist/{animatedGifPrep-53UU67BG.js → animatedGifPrep-X7KILCDI.js} +3 -3
- package/dist/api.js +20 -20
- package/dist/{asset-MCBHJZCT.js → asset-A3ENWWCU.js} +2 -2
- package/dist/{assetCataloger-4DS44LB2.js → assetCataloger-TIMZTOYH.js} +4 -4
- package/dist/{audio-RCVQDNXZ.js → audio-HMCUO2CV.js} +8 -8
- package/dist/{auth-MS46YSQ5.js → auth-NXR3QM4C.js} +2 -2
- package/dist/{autoUpdate-KECZLRZD.js → autoUpdate-TY7P2Z4F.js} +2 -2
- package/dist/{avatars-VYEPMXIO.js → avatars-36MYJUPA.js} +7 -7
- package/dist/{backgroundChecks-HAX5LQ2L.js → backgroundChecks-EWWJEGF6.js} +3 -3
- package/dist/backgroundChecksWorker.js +3 -3
- package/dist/{beats-WZSPVMQ4.js → beats-Z4B4B4KM.js} +4 -4
- package/dist/{benchmark-O5GWBFWE.js → benchmark-PLGO2THH.js} +6 -6
- package/dist/{billing-D6ZZNKPW.js → billing-ZIXACCLR.js} +4 -4
- package/dist/{browser-YHAPXFOK.js → browser-VZFBNASB.js} +3 -3
- package/dist/{bundleWithLocalizedFonts-Z5IHK62J.js → bundleWithLocalizedFonts-XD2XDEQL.js} +1 -1
- package/dist/{capture-VAY75ASS.js → capture-BAFLHNDI.js} +9 -9
- package/dist/{capture-5WTC5QWV.js → capture-GC4F54XT.js} +4 -4
- package/dist/{captureCompositionFrame-6DCRCIKA.js → captureCompositionFrame-YBVEFKWM.js} +6 -6
- package/dist/{catalog-CH4H6C5E.js → catalog-LHOCJUO2.js} +5 -5
- package/dist/{catch-up-KT6MHQBO.js → catch-up-6FNQ6I7Q.js} +4 -4
- package/dist/{check-6L7IEY5U.js → check-S7T5LE6V.js} +21 -21
- package/dist/{checkAudio-EAM7FCLJ.js → checkAudio-AKOI4AWK.js} +5 -5
- package/dist/{checkBrowser-IIMZI2LZ.js → checkBrowser-NABXGNNM.js} +15 -15
- package/dist/{chunk-HGDOOG4T.js → chunk-24M5C5EQ.js} +1 -1
- package/dist/{chunk-EVHZDKB2.js → chunk-2AZMG6DR.js} +1 -1
- package/dist/{chunk-GTCPI2UK.js → chunk-2MNSS7PH.js} +2 -2
- package/dist/{chunk-XPAQK6E4.js → chunk-42JBYXIQ.js} +5 -5
- package/dist/{chunk-CTFMKRFI.js → chunk-4FWR7OE3.js} +3 -3
- package/dist/{chunk-USYPUTGC.js → chunk-4OHV7UZZ.js} +1 -1
- package/dist/{chunk-BQWFOVLO.js → chunk-5B425ZB3.js} +1 -1
- package/dist/{chunk-WIZBFUBI.js → chunk-64T46P7K.js} +2 -2
- package/dist/{chunk-DMF4ML3Y.js → chunk-6NGJ55V5.js} +1 -1
- package/dist/{chunk-BQCW5T3M.js → chunk-7GVHPY7W.js} +1 -1
- package/dist/{chunk-2BRVSU2O.js → chunk-7QM73IH2.js} +2 -2
- package/dist/{chunk-TE3CITOB.js → chunk-7SZ7QQJ3.js} +2 -2
- package/dist/{chunk-TQW3G23G.js → chunk-7VQ3RAKO.js} +8 -8
- package/dist/{chunk-COHL5422.js → chunk-AMWWQXTC.js} +1 -1
- package/dist/{chunk-RQX5C7JD.js → chunk-APT2TSYC.js} +1 -1
- package/dist/{chunk-7DJVLFIL.js → chunk-C66O6A2J.js} +2 -2
- package/dist/{chunk-K27EQ4Z4.js → chunk-CDK23M57.js} +4 -4
- package/dist/{chunk-TJXXLWQ4.js → chunk-CIGQUDEV.js} +2 -2
- package/dist/{chunk-YQSW3GXC.js → chunk-CIMOTEZB.js} +2 -2
- package/dist/{chunk-V7M6HV23.js → chunk-CQ5VQNOD.js} +1 -1
- package/dist/{chunk-D3DY7Q6S.js → chunk-DE7Q2LWF.js} +2 -2
- package/dist/{chunk-AGTOSMG6.js → chunk-DYYAFCZH.js} +1 -1
- package/dist/{chunk-SBQLLGXW.js → chunk-E2KJT7JR.js} +2 -2
- package/dist/{chunk-FXQ5577T.js → chunk-ETXOQXWT.js} +4 -4
- package/dist/{chunk-UZGN5MTD.js → chunk-G6QCHM2N.js} +1 -1
- package/dist/{chunk-R5OSZK62.js → chunk-GEIWJSWN.js} +4 -4
- package/dist/{chunk-XEMS4TXW.js → chunk-H4S3WY2N.js} +1 -1
- package/dist/{chunk-4ZNB3EXI.js → chunk-HLXZFHEY.js} +4 -4
- package/dist/{chunk-6WHTS73J.js → chunk-HS7LT4PL.js} +1 -1
- package/dist/{chunk-ILQAOOR4.js → chunk-HT4FWRIT.js} +1 -1
- package/dist/{chunk-ZXIWAD2G.js → chunk-IB722ALN.js} +1 -1
- package/dist/{chunk-LOKPWAFW.js → chunk-J45SCYTD.js} +7 -7
- package/dist/{chunk-EEVDBYVF.js → chunk-JJLPGVTA.js} +1 -1
- package/dist/{chunk-EYXMXWME.js → chunk-KUZTIMY3.js} +2 -2
- package/dist/{chunk-UX2SUCRS.js → chunk-L2KUIV56.js} +1 -1
- package/dist/{chunk-K4SWGMPO.js → chunk-L56WTLQP.js} +1 -1
- package/dist/{chunk-QKCU2J2V.js → chunk-LIPVGXPV.js} +4 -4
- package/dist/{chunk-BSHZIPFP.js → chunk-LNZHSISH.js} +8 -8
- package/dist/{chunk-UHTWJOJ6.js → chunk-LZTBL7SR.js} +10 -1
- package/dist/{chunk-ECJX6EJN.js → chunk-M4E7CMYS.js} +2 -2
- package/dist/{chunk-WQ3WMTSS.js → chunk-M6TIOPL5.js} +2 -2
- package/dist/{chunk-7ADDESOW.js → chunk-MF53JVZ5.js} +1 -1
- package/dist/{chunk-EMX4P4WP.js → chunk-NQ3NHCF6.js} +2 -2
- package/dist/{chunk-TQMTMD72.js → chunk-NXDFCWF2.js} +1 -1
- package/dist/{chunk-IUIFNZTJ.js → chunk-O45HB74L.js} +18 -18
- package/dist/{chunk-P3K7LZCY.js → chunk-P27QDOID.js} +1 -1
- package/dist/{chunk-PALZMYFH.js → chunk-P37ZACC6.js} +2 -2
- package/dist/{chunk-PNJ4M4QZ.js → chunk-POGZYVM2.js} +1 -1
- package/dist/{chunk-ACFNPUL7.js → chunk-PRG42HNH.js} +1 -1
- package/dist/{chunk-HZLN3V3P.js → chunk-QP7MQ43Y.js} +1 -1
- package/dist/{chunk-MZD5KJDU.js → chunk-RIHRYTNB.js} +9 -9
- package/dist/{chunk-FDBK2NOH.js → chunk-RMO7KIFX.js} +4 -4
- package/dist/{chunk-76HCZQ2W.js → chunk-RULKJFRT.js} +1 -1
- package/dist/{chunk-CLRM7ZI5.js → chunk-S5EMQAKL.js} +2 -2
- package/dist/{chunk-77KEU6NG.js → chunk-SQ64IEA7.js} +1 -1
- package/dist/{chunk-N5IAKDUQ.js → chunk-TI7JN55F.js} +1 -1
- package/dist/{chunk-XILU2D2B.js → chunk-UB44XZOI.js} +1 -1
- package/dist/{chunk-5XSIAXIP.js → chunk-UFET7UTU.js} +2 -2
- package/dist/{chunk-3VPBUDK6.js → chunk-UIIQA7DN.js} +1 -1
- package/dist/{chunk-KQFGINDM.js → chunk-VXX4S2PH.js} +1 -1
- package/dist/{chunk-2L2A2HRW.js → chunk-WPC2FKNB.js} +6 -6
- package/dist/{chunk-DP7LWIKE.js → chunk-X3IULMVV.js} +1 -1
- package/dist/{chunk-BPNCNZG5.js → chunk-XHUFLQGD.js} +1 -1
- package/dist/{chunk-I4XV2UMQ.js → chunk-YJFIGFON.js} +1 -1
- package/dist/{chunk-CTRYPHSE.js → chunk-YPURY3MW.js} +2 -2
- package/dist/{chunk-KQRSEH4X.js → chunk-YXQA6MKA.js} +1 -1
- package/dist/{chunk-MRJQQDZR.js → chunk-YXR5MVBM.js} +2 -2
- package/dist/{chunk-WQ2N2AG7.js → chunk-ZG6BVWQ7.js} +3 -3
- package/dist/{chunk-SMUNLDEY.js → chunk-ZGWOCGSJ.js} +1 -1
- package/dist/{chunk-SFJWTPOF.js → chunk-ZW6ZUKBB.js} +1 -1
- package/dist/{chunk-LJFGZKVL.js → chunk-ZXMZSU5Y.js} +9 -9
- package/dist/{clean-E6CXNNF5.js → clean-Y6YIQRPM.js} +8 -8
- package/dist/cli.js +61 -61
- package/dist/{cloud-2M4WWTSQ.js → cloud-A5U7YYNA.js} +4 -4
- package/dist/{compare-MHFCJIWI.js → compare-6XCTMUF3.js} +11 -11
- package/dist/{component-KRPXKVZH.js → component-JDQIZSAL.js} +3 -3
- package/dist/{compositions-MXESIGTW.js → compositions-HZDEOSRL.js} +7 -7
- package/dist/{curve-BE2B7NIC.js → curve-SE7ZAMI6.js} +7 -7
- package/dist/{cuts-7GJF6CE2.js → cuts-AEFJGBFP.js} +8 -8
- package/dist/{delete-6NUSXGFC.js → delete-EQUQ7Z2K.js} +2 -2
- package/dist/{deploy-D3NO4UPN.js → deploy-NSLC6BYZ.js} +2 -2
- package/dist/{describeProject-6Y7GXXYM.js → describeProject-FTJBPDL3.js} +3 -3
- package/dist/{destroy-6ESKQA5T.js → destroy-4O4T3KL3.js} +2 -2
- package/dist/{diff-NB4SANJX.js → diff-VJ3CS7YE.js} +20 -20
- package/dist/{doctor-JAZHU2BT.js → doctor-RR7SNO6X.js} +7 -7
- package/dist/{energy-X5E2NPBL.js → energy-PN23W2UJ.js} +8 -8
- package/dist/{events-JWW4ASN3.js → events-4ECJEB2W.js} +3 -3
- package/dist/{events-XA2QQBP7.js → events-5OLO73VJ.js} +9 -9
- package/dist/{events-5QYPAD2S.js → events-NR6UPBHG.js} +2 -2
- package/dist/{execute-N7L5W7DV.js → execute-TS3BP65F.js} +13 -13
- package/dist/{extract-YQAMVIVK.js → extract-GCZ5HSEN.js} +8 -8
- package/dist/{face-M7VZIIEP.js → face-QKMYBRV3.js} +8 -8
- package/dist/{feedback-DX6N4RT3.js → feedback-3H43EK7N.js} +5 -5
- package/dist/{ffmpeg-U2UP72FB.js → ffmpeg-JRNM74WY.js} +3 -3
- package/dist/{figma-BMMVU5ML.js → figma-JGP2UGGU.js} +3 -3
- package/dist/fontLocalizeCli.js +6 -6
- package/dist/{frames-XB4N4WW2.js → frames-OYSWKB3F.js} +9 -9
- package/dist/{generate-M5ACNHVM.js → generate-TDXLUFMR.js} +13 -13
- package/dist/{get-65JSCBTR.js → get-UB2MNBYO.js} +2 -2
- package/dist/{gpuPolicy-XC2BONM7.js → gpuPolicy-6CTTH3NY.js} +3 -3
- package/dist/{grade-compare-LPDDN5LL.js → grade-compare-2DXT4RWV.js} +12 -12
- package/dist/{heifImagePrep-QMFBHJQG.js → heifImagePrep-VDZVZ4G7.js} +4 -4
- package/dist/{help-VLKAJCUD.js → help-RGKY4DR4.js} +1 -1
- package/dist/{history-XPGU76VB.js → history-AVDXYNAP.js} +6 -6
- package/dist/hyperframes-player.global.js +1 -1
- package/dist/{info-DGY5NFZJ.js → info-NGTQABZC.js} +9 -9
- package/dist/{init-OYK5QV3A.js → init-C3EARHDW.js} +19 -19
- package/dist/{ink-UJ6T72I6.js → ink-ISO3VXRQ.js} +8 -8
- package/dist/{inspect-GNE5FQDJ.js → inspect-V6MPU5I5.js} +13 -13
- package/dist/{keyframes-MFGXRBMS.js → keyframes-PTJDE47Y.js} +6 -6
- package/dist/{lambda-OOESQH7O.js → lambda-JTO5YD2I.js} +5 -5
- package/dist/{layout-67GYUHRL.js → layout-QMLEZP5T.js} +13 -13
- package/dist/{lint-GW3AGJO3.js → lint-6BWOQAW6.js} +6 -6
- package/dist/{list-FMAPGP4I.js → list-7E4VD7JA.js} +2 -2
- package/dist/{localPage-76LUQEMF.js → localPage-BQOYZAOW.js} +3 -3
- package/dist/{login-YOMRKZTT.js → login-37MSZXCY.js} +4 -4
- package/dist/{look-CTRMUUY6.js → look-5GXW3NVP.js} +8 -8
- package/dist/{manager-ZNADMKUJ.js → manager-J2IRAOR7.js} +4 -4
- package/dist/{measure-RPPQJGKH.js → measure-23IL23BL.js} +11 -11
- package/dist/{media-treatment-UZ4L4MDB.js → media-treatment-7ODBREPX.js} +8 -8
- package/dist/{media-use-B7OLG3J3.js → media-use-QJA6NB3V.js} +3 -3
- package/dist/{models-ZXXLZBLQ.js → models-2Z6SURXU.js} +7 -7
- package/dist/{motionShot-DBW6UXTD.js → motionShot-CYS3L6FK.js} +8 -8
- package/dist/{normalize-audio-L4AE5ASS.js → normalize-audio-6YVF4LED.js} +4 -4
- package/dist/{open-YBZJF2HO.js → open-WQ6NRHCN.js} +4 -4
- package/dist/{parakeetRunner-ZLFQAJ45.js → parakeetRunner-R7KK6ZHD.js} +8 -8
- package/dist/{pipeline-3L4HX4CH.js → pipeline-HRCK2JQL.js} +6 -6
- package/dist/{plan-R4I5XT6L.js → plan-FQNKACYR.js} +9 -9
- package/dist/{play-J54FH42B.js → play-UJZBNX2O.js} +4 -4
- package/dist/{preflight-SMPZLLLL.js → preflight-VIMLSE3I.js} +4 -4
- package/dist/{present-AXOSYIJE.js → present-JIOVM3ZH.js} +4 -4
- package/dist/{preview-6VDMGAQI.js → preview-HCYGBEWR.js} +9 -9
- package/dist/{probe-CXIQVZAM.js → probe-6YQA2ZZC.js} +8 -8
- package/dist/{producer-EQOO6NE2.js → producer-JIM74BGL.js} +1 -1
- package/dist/{publicNetwork-GFQID4Q6.js → publicNetwork-F3ZXSVOD.js} +3 -1
- package/dist/{publish-DCOFEASH.js → publish-3TTCO4R4.js} +3 -3
- package/dist/{remove-background-OHGBEI7B.js → remove-background-XTICO22L.js} +7 -7
- package/dist/{render-ONBJRZRU.js → render-PFBZJRAN.js} +21 -21
- package/dist/{render-CMY2ELLE.js → render-WYDOZEZ5.js} +13 -13
- package/dist/{reverse-UIQAE3DC.js → reverse-TV524NFW.js} +1 -1
- package/dist/{screenshotCapture-PUK46H3O.js → screenshotCapture-OUZMH7EQ.js} +3 -3
- package/dist/{service-HULLICEP.js → service-UIHDIMFM.js} +7 -7
- package/dist/{share-VKY5LLZ7.js → share-WD7MCA4I.js} +10 -10
- package/dist/{sherpa-WDVEYQHZ.js → sherpa-H67ZJICN.js} +7 -7
- package/dist/{skills-6K2EZEJK.js → skills-7TUSQF6W.js} +6 -6
- package/dist/{skillsUpdateCheck-UXRH4JIW.js → skillsUpdateCheck-HF6SQWRA.js} +3 -3
- package/dist/{snapshot-UDJB33E5.js → snapshot-P7ZSTKED.js} +19 -19
- package/dist/{src-66ZYEQPG.js → src-H2EUJUV3.js} +8 -6
- package/dist/{src-6GRYTLZ5.js → src-TQQ743H4.js} +4 -2
- package/dist/{start-VJPLZ7YN.js → start-7ZTAKHD4.js} +11 -11
- package/dist/{staticProjectServer-5QU3ICQV.js → staticProjectServer-X4PARIVN.js} +3 -3
- package/dist/{status-SZ4QKSVN.js → status-ELQXIXIB.js} +4 -4
- package/dist/studio/assets/{hyperframes-player-i4dtJlrd.js → hyperframes-player-D7LhzIg1.js} +1 -1
- package/dist/studio/assets/{index-Be_pDhIw.js → index-CQ7o0CBU.js} +1 -1
- package/dist/studio/assets/{index-CU24FmKd.css → index-CRiuMxyq.css} +1 -1
- package/dist/studio/assets/{index-Dvlt50yp.js → index-D3WxJaqm.js} +5 -5
- package/dist/studio/assets/{pausedVideoDecoder-C_20YkSR.js → pausedVideoDecoder-BVUmBgn0.js} +1 -1
- package/dist/studio/index.html +2 -2
- package/dist/{studioServer-VRYGQOGN.js → studioServer-E5CLZC46.js} +27 -27
- package/dist/{sync-NSGF4MPJ.js → sync-VEJWMKDP.js} +8 -8
- package/dist/{telemetry-Q45SZSZC.js → telemetry-3U4UGQ5V.js} +3 -3
- package/dist/{templates-X7UD7HRJ.js → templates-AUAOWIYA.js} +4 -4
- package/dist/{timeline-JVN34ETY.js → timeline-YO27AP66.js} +8 -8
- package/dist/{tokens-GWFTTI5U.js → tokens-UXLQGLVG.js} +2 -2
- package/dist/{transcribe-7MADUIYX.js → transcribe-FZ3TE4FK.js} +6 -6
- package/dist/{transcribe-PJRBKRPT.js → transcribe-I7MTUH4M.js} +15 -15
- package/dist/{update-D3V2PW3U.js → update-KBKSO3SH.js} +7 -7
- package/dist/{updateCheck-5G4ZILYA.js → updateCheck-MUYN55HR.js} +2 -2
- package/dist/{upgrade-4BNSDRCV.js → upgrade-CRCX7CCK.js} +3 -3
- package/dist/{urlDownloader-RLZ7H7NM.js → urlDownloader-4EM6GLN4.js} +2 -2
- package/dist/{validate-JW6LLGWB.js → validate-Y2KF2DU3.js} +12 -12
- package/dist/{video-WOBS7YW2.js → video-HG6SINBD.js} +4 -4
- package/dist/{voices-E6WE2Q2U.js → voices-O4UHHFZS.js} +11 -11
- package/dist/warmCheck.js +21 -21
- package/package.json +1 -1
|
@@ -18,26 +18,26 @@ import {
|
|
|
18
18
|
import "./chunk-6BEFEWFB.js";
|
|
19
19
|
import {
|
|
20
20
|
findFFmpeg
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-G6QCHM2N.js";
|
|
22
22
|
import {
|
|
23
23
|
parseTimeoutMs
|
|
24
24
|
} from "./chunk-MRM2XDPQ.js";
|
|
25
25
|
import {
|
|
26
26
|
serveStaticProjectHtml
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-L56WTLQP.js";
|
|
28
28
|
import "./chunk-4Q2HYZZK.js";
|
|
29
29
|
import "./chunk-X7MTZ4T2.js";
|
|
30
30
|
import "./chunk-XUHOIDKG.js";
|
|
31
31
|
import {
|
|
32
32
|
openSettledCompositionPage,
|
|
33
33
|
runFfmpegOnce
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-LNZHSISH.js";
|
|
35
35
|
import "./chunk-47MEWWCO.js";
|
|
36
36
|
import "./chunk-YGGZ23BB.js";
|
|
37
37
|
import "./chunk-MR7VKWYT.js";
|
|
38
38
|
import "./chunk-262C25DQ.js";
|
|
39
39
|
import "./chunk-WN4W76IQ.js";
|
|
40
|
-
import "./chunk-
|
|
40
|
+
import "./chunk-XHUFLQGD.js";
|
|
41
41
|
import "./chunk-Z2EKCD7H.js";
|
|
42
42
|
import "./chunk-6PXVXIC7.js";
|
|
43
43
|
import "./chunk-R64WJS45.js";
|
|
@@ -47,9 +47,9 @@ import "./chunk-I6SCA2ME.js";
|
|
|
47
47
|
import "./chunk-MQGRMXFN.js";
|
|
48
48
|
import "./chunk-22EEGJLH.js";
|
|
49
49
|
import "./chunk-BZULWFMJ.js";
|
|
50
|
-
import "./chunk-
|
|
50
|
+
import "./chunk-DE7Q2LWF.js";
|
|
51
51
|
import "./chunk-ZLTB7ZCQ.js";
|
|
52
|
-
import "./chunk-
|
|
52
|
+
import "./chunk-NQ3NHCF6.js";
|
|
53
53
|
import {
|
|
54
54
|
readJsonFileText
|
|
55
55
|
} from "./chunk-EHZESMRB.js";
|
|
@@ -67,8 +67,8 @@ import "./chunk-D3UCUI7G.js";
|
|
|
67
67
|
import "./chunk-4XETQ5LC.js";
|
|
68
68
|
import {
|
|
69
69
|
trackCompareSheet
|
|
70
|
-
} from "./chunk-
|
|
71
|
-
import "./chunk-
|
|
70
|
+
} from "./chunk-SQ64IEA7.js";
|
|
71
|
+
import "./chunk-ZGWOCGSJ.js";
|
|
72
72
|
import "./chunk-PXVQOMKL.js";
|
|
73
73
|
import "./chunk-MCDNAIFF.js";
|
|
74
74
|
import "./chunk-DMW5SSUN.js";
|
|
@@ -86,8 +86,8 @@ import "./chunk-ZB2XGJSP.js";
|
|
|
86
86
|
import "./chunk-4QFWV5GQ.js";
|
|
87
87
|
import "./chunk-7RLMDAUO.js";
|
|
88
88
|
import "./chunk-SZGQU7EB.js";
|
|
89
|
-
import "./chunk-
|
|
90
|
-
import "./chunk-
|
|
89
|
+
import "./chunk-VXX4S2PH.js";
|
|
90
|
+
import "./chunk-LZTBL7SR.js";
|
|
91
91
|
import "./chunk-Z5J67X44.js";
|
|
92
92
|
import "./chunk-5S7W3TUO.js";
|
|
93
93
|
import "./chunk-D54ZDCZR.js";
|
|
@@ -128,7 +128,7 @@ import "./chunk-4NTCQF3L.js";
|
|
|
128
128
|
import "./chunk-JOQR4AP6.js";
|
|
129
129
|
import {
|
|
130
130
|
withMeta
|
|
131
|
-
} from "./chunk-
|
|
131
|
+
} from "./chunk-UIIQA7DN.js";
|
|
132
132
|
import "./chunk-BR2JQQC5.js";
|
|
133
133
|
import "./chunk-AWD2MWWL.js";
|
|
134
134
|
import "./chunk-ISN5GRYI.js";
|
|
@@ -141,7 +141,7 @@ import {
|
|
|
141
141
|
} from "./chunk-66W5IWLO.js";
|
|
142
142
|
import "./chunk-CPHQTXP5.js";
|
|
143
143
|
import "./chunk-QBXDU24O.js";
|
|
144
|
-
import "./chunk-
|
|
144
|
+
import "./chunk-7SZ7QQJ3.js";
|
|
145
145
|
import {
|
|
146
146
|
normalizeErrorMessage
|
|
147
147
|
} from "./chunk-E63BDV4Z.js";
|
|
@@ -12,16 +12,16 @@ import {
|
|
|
12
12
|
isHeifBytes,
|
|
13
13
|
prepareHeifImageInputs,
|
|
14
14
|
primaryGrid
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
15
|
+
} from "./chunk-64T46P7K.js";
|
|
16
|
+
import "./chunk-2AZMG6DR.js";
|
|
17
17
|
import "./chunk-BZ56MTDX.js";
|
|
18
18
|
import "./chunk-WSZJS4QC.js";
|
|
19
19
|
import "./chunk-X7MTZ4T2.js";
|
|
20
20
|
import "./chunk-4QFWV5GQ.js";
|
|
21
21
|
import "./chunk-7RLMDAUO.js";
|
|
22
22
|
import "./chunk-SZGQU7EB.js";
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-VXX4S2PH.js";
|
|
24
|
+
import "./chunk-LZTBL7SR.js";
|
|
25
25
|
import "./chunk-Z5J67X44.js";
|
|
26
26
|
import "./chunk-5S7W3TUO.js";
|
|
27
27
|
import "./chunk-D54ZDCZR.js";
|
|
@@ -12,9 +12,9 @@ import {
|
|
|
12
12
|
withOwner,
|
|
13
13
|
withReader,
|
|
14
14
|
writeTurn
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-YJFIGFON.js";
|
|
16
16
|
import "./chunk-X7MTZ4T2.js";
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-UB44XZOI.js";
|
|
18
18
|
import {
|
|
19
19
|
AmbiguousPreviewServerError
|
|
20
20
|
} from "./chunk-3L2POG2J.js";
|
|
@@ -28,8 +28,8 @@ import {
|
|
|
28
28
|
import "./chunk-ZLTB7ZCQ.js";
|
|
29
29
|
import {
|
|
30
30
|
trackHistoryAction
|
|
31
|
-
} from "./chunk-
|
|
32
|
-
import "./chunk-
|
|
31
|
+
} from "./chunk-SQ64IEA7.js";
|
|
32
|
+
import "./chunk-ZGWOCGSJ.js";
|
|
33
33
|
import "./chunk-PXVQOMKL.js";
|
|
34
34
|
import "./chunk-MCDNAIFF.js";
|
|
35
35
|
import "./chunk-DMW5SSUN.js";
|
|
@@ -61,7 +61,7 @@ import "./chunk-WFQJ6EJ6.js";
|
|
|
61
61
|
import "./chunk-JOQR4AP6.js";
|
|
62
62
|
import {
|
|
63
63
|
withMeta
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-UIIQA7DN.js";
|
|
65
65
|
import "./chunk-BR2JQQC5.js";
|
|
66
66
|
import "./chunk-AWD2MWWL.js";
|
|
67
67
|
import "./chunk-ISN5GRYI.js";
|
|
@@ -74,7 +74,7 @@ import {
|
|
|
74
74
|
} from "./chunk-66W5IWLO.js";
|
|
75
75
|
import "./chunk-CPHQTXP5.js";
|
|
76
76
|
import "./chunk-QBXDU24O.js";
|
|
77
|
-
import "./chunk-
|
|
77
|
+
import "./chunk-7SZ7QQJ3.js";
|
|
78
78
|
import "./chunk-E63BDV4Z.js";
|
|
79
79
|
import "./chunk-LW33P24U.js";
|
|
80
80
|
import "./chunk-XT6MXC7A.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var HyperframesPlayer=(()=>{var je=Object.defineProperty;var hi=Object.getOwnPropertyDescriptor;var fi=Object.getOwnPropertyNames;var gi=Object.prototype.hasOwnProperty;var bi=(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))!gi.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 yo={};bi(yo,{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"}),Ro=Object.freeze([G.start,G.duration,G.trackIndex]),xo=Object.freeze([G.derivedEnd]),wo=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",Mo=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"}],Co=new Map(Gt.map(t=>[t.id,t]));var Io=Gt.map(t=>t.id);function Ri(t){return 10**(t/20)}var zt=Ri(12);var jt="data-automation",$o=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 Xo=[{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"}),Zo=Object.freeze([y.start,y.duration,y.trackIndex]),Jo=Object.freeze([y.derivedEnd]),Qo=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"}),ha=Object.freeze([z.start,z.duration,z.trackIndex]),fa=Object.freeze([z.derivedEnd]),ga=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 b=s(f);if(b){for(let M of b.querySelectorAll(`[id="${d}"]`))if(s(M)===b)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 b=c(d)??h(P(d)?ae(d,d.duration):null)??h(Me(d))??v(d);return o.set(d,b),b},A="[data-composition-src], [data-composition-id], [data-composition-file]",g=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 b=d.hasAttribute("data-composition-id")?d.parentElement?.closest("[data-composition-id]"):d.closest("[data-composition-id]");return b?k(b,f):0},I=(d,f)=>{let b=oe(d.getAttribute("data-start"));if(!b){let H=S(d);return H?T(H,f):f}if(b.kind==="absolute")return C(d,f)+Math.max(0,b.value);let R=l(b.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+b.offset)},T=(d,f)=>{let b=r.get(d);if(b!==void 0)return b??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 b=d.parentElement;b;b=b.parentElement){if(!g(b)||S(b)||lt(b)<=0)continue;let R=T(b,0),M=c(b);f.push({start:R,end:M?R+M:1/0})}return f},isRootGlobalMediaStartForElement:d=>P(d)&&pn(U(d))}}function gn(){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 bn=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 gr(t){return br(t).seconds}function br(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>=bn&&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=gr({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:gn().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.51/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 gi=Object.prototype.hasOwnProperty;var bi=(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))!gi.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 yo={};bi(yo,{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"}),Ro=Object.freeze([G.start,G.duration,G.trackIndex]),xo=Object.freeze([G.derivedEnd]),wo=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",Mo=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"}],Co=new Map(Gt.map(t=>[t.id,t]));var Io=Gt.map(t=>t.id);function Ri(t){return 10**(t/20)}var zt=Ri(12);var jt="data-automation",$o=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 Xo=[{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"}),Zo=Object.freeze([y.start,y.duration,y.trackIndex]),Jo=Object.freeze([y.derivedEnd]),Qo=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"}),ha=Object.freeze([z.start,z.duration,z.trackIndex]),fa=Object.freeze([z.derivedEnd]),ga=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 b=s(f);if(b){for(let M of b.querySelectorAll(`[id="${d}"]`))if(s(M)===b)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 b=c(d)??h(P(d)?ae(d,d.duration):null)??h(Me(d))??v(d);return o.set(d,b),b},A="[data-composition-src], [data-composition-id], [data-composition-file]",g=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 b=d.hasAttribute("data-composition-id")?d.parentElement?.closest("[data-composition-id]"):d.closest("[data-composition-id]");return b?k(b,f):0},I=(d,f)=>{let b=oe(d.getAttribute("data-start"));if(!b){let H=S(d);return H?T(H,f):f}if(b.kind==="absolute")return C(d,f)+Math.max(0,b.value);let R=l(b.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+b.offset)},T=(d,f)=>{let b=r.get(d);if(b!==void 0)return b??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 b=d.parentElement;b;b=b.parentElement){if(!g(b)||S(b)||lt(b)<=0)continue;let R=T(b,0),M=c(b);f.push({start:R,end:M?R+M:1/0})}return f},isRootGlobalMediaStartForElement:d=>P(d)&&pn(U(d))}}function gn(){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 bn=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 gr(t){return br(t).seconds}function br(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>=bn&&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=gr({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:gn().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.52/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,17 +9,17 @@ import {
|
|
|
9
9
|
} from "./chunk-ZBAF6L74.js";
|
|
10
10
|
import {
|
|
11
11
|
heardClips
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-7QM73IH2.js";
|
|
13
|
+
import "./chunk-APT2TSYC.js";
|
|
14
14
|
import {
|
|
15
15
|
resolveProject
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-UB44XZOI.js";
|
|
17
17
|
import {
|
|
18
18
|
formatBytes,
|
|
19
19
|
label
|
|
20
20
|
} from "./chunk-ZLTB7ZCQ.js";
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-SQ64IEA7.js";
|
|
22
|
+
import "./chunk-ZGWOCGSJ.js";
|
|
23
23
|
import "./chunk-PXVQOMKL.js";
|
|
24
24
|
import "./chunk-MCDNAIFF.js";
|
|
25
25
|
import "./chunk-DMW5SSUN.js";
|
|
@@ -31,8 +31,8 @@ import "./chunk-54HJ63Q2.js";
|
|
|
31
31
|
import {
|
|
32
32
|
c
|
|
33
33
|
} from "./chunk-JCNPHRGX.js";
|
|
34
|
-
import "./chunk-
|
|
35
|
-
import "./chunk-
|
|
34
|
+
import "./chunk-VXX4S2PH.js";
|
|
35
|
+
import "./chunk-LZTBL7SR.js";
|
|
36
36
|
import "./chunk-Z5J67X44.js";
|
|
37
37
|
import "./chunk-5S7W3TUO.js";
|
|
38
38
|
import "./chunk-D54ZDCZR.js";
|
|
@@ -70,7 +70,7 @@ import "./chunk-4NTCQF3L.js";
|
|
|
70
70
|
import "./chunk-JOQR4AP6.js";
|
|
71
71
|
import {
|
|
72
72
|
withMeta
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-UIIQA7DN.js";
|
|
74
74
|
import "./chunk-BR2JQQC5.js";
|
|
75
75
|
import "./chunk-AWD2MWWL.js";
|
|
76
76
|
import "./chunk-ISN5GRYI.js";
|
|
@@ -79,7 +79,7 @@ import "./chunk-GR2E54E6.js";
|
|
|
79
79
|
import "./chunk-66W5IWLO.js";
|
|
80
80
|
import "./chunk-CPHQTXP5.js";
|
|
81
81
|
import "./chunk-QBXDU24O.js";
|
|
82
|
-
import "./chunk-
|
|
82
|
+
import "./chunk-7SZ7QQJ3.js";
|
|
83
83
|
import "./chunk-E63BDV4Z.js";
|
|
84
84
|
import "./chunk-LW33P24U.js";
|
|
85
85
|
import "./chunk-XT6MXC7A.js";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-LSUM6RTW.js";
|
|
10
10
|
import {
|
|
11
11
|
gateRegistryItemsCompatibility
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-NXDFCWF2.js";
|
|
13
13
|
import {
|
|
14
14
|
shellArg
|
|
15
15
|
} from "./chunk-MI54IK7G.js";
|
|
@@ -29,13 +29,13 @@ import {
|
|
|
29
29
|
} from "./chunk-D2LIT7UR.js";
|
|
30
30
|
import {
|
|
31
31
|
initialModelForLanguage
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-4FWR7OE3.js";
|
|
33
33
|
import "./chunk-KLIVZ5VG.js";
|
|
34
|
-
import "./chunk-
|
|
34
|
+
import "./chunk-HS7LT4PL.js";
|
|
35
35
|
import {
|
|
36
36
|
DEFAULT_MODEL,
|
|
37
37
|
hasFFmpeg
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-YXQA6MKA.js";
|
|
39
39
|
import "./chunk-RZ6CXJ56.js";
|
|
40
40
|
import "./chunk-R4EWRIDL.js";
|
|
41
41
|
import "./chunk-JJ47LVJ7.js";
|
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
findFFmpeg,
|
|
44
44
|
findFFprobe,
|
|
45
45
|
getFFmpegInstallHint
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-G6QCHM2N.js";
|
|
47
47
|
import "./chunk-CDNVZEGQ.js";
|
|
48
48
|
import "./chunk-UOFAE5RF.js";
|
|
49
49
|
import {
|
|
@@ -71,8 +71,8 @@ import "./chunk-D3UCUI7G.js";
|
|
|
71
71
|
import "./chunk-4XETQ5LC.js";
|
|
72
72
|
import {
|
|
73
73
|
trackInitTemplate
|
|
74
|
-
} from "./chunk-
|
|
75
|
-
import "./chunk-
|
|
74
|
+
} from "./chunk-SQ64IEA7.js";
|
|
75
|
+
import "./chunk-ZGWOCGSJ.js";
|
|
76
76
|
import "./chunk-PXVQOMKL.js";
|
|
77
77
|
import "./chunk-MCDNAIFF.js";
|
|
78
78
|
import "./chunk-DMW5SSUN.js";
|
|
@@ -88,8 +88,8 @@ import {
|
|
|
88
88
|
c,
|
|
89
89
|
isColorSupported
|
|
90
90
|
} from "./chunk-JCNPHRGX.js";
|
|
91
|
-
import "./chunk-
|
|
92
|
-
import "./chunk-
|
|
91
|
+
import "./chunk-VXX4S2PH.js";
|
|
92
|
+
import "./chunk-LZTBL7SR.js";
|
|
93
93
|
import "./chunk-Z5J67X44.js";
|
|
94
94
|
import "./chunk-5S7W3TUO.js";
|
|
95
95
|
import {
|
|
@@ -145,7 +145,7 @@ import {
|
|
|
145
145
|
import "./chunk-QBXDU24O.js";
|
|
146
146
|
import {
|
|
147
147
|
VERSION
|
|
148
|
-
} from "./chunk-
|
|
148
|
+
} from "./chunk-7SZ7QQJ3.js";
|
|
149
149
|
import "./chunk-E63BDV4Z.js";
|
|
150
150
|
import "./chunk-LW33P24U.js";
|
|
151
151
|
import "./chunk-XT6MXC7A.js";
|
|
@@ -788,7 +788,7 @@ async function scaffoldProject(destDir, name, templateId, media, tailwind = fals
|
|
|
788
788
|
}
|
|
789
789
|
}
|
|
790
790
|
async function keepSkillsCurrent(destDir) {
|
|
791
|
-
const { updateSkills } = await import("./skills-
|
|
791
|
+
const { updateSkills } = await import("./skills-7TUSQF6W.js");
|
|
792
792
|
console.log();
|
|
793
793
|
console.log(c.bold("Checking AI coding skills against GitHub..."));
|
|
794
794
|
try {
|
|
@@ -986,17 +986,17 @@ var init_default = defineCommand({
|
|
|
986
986
|
if (audioPath) {
|
|
987
987
|
sourceFilePath2 = audioPath;
|
|
988
988
|
copyIntoProjectUnlessAlreadyThere(audioPath, resolve(destDir2, basename(audioPath)));
|
|
989
|
-
const { getMediaDurationSeconds } = await import("./transcribe-
|
|
989
|
+
const { getMediaDurationSeconds } = await import("./transcribe-FZ3TE4FK.js");
|
|
990
990
|
videoDuration2 = getMediaDurationSeconds(audioPath) ?? void 0;
|
|
991
991
|
console.log(`Audio: ${basename(audioPath)}`);
|
|
992
992
|
}
|
|
993
993
|
if (sourceFilePath2 && !skipTranscribe) {
|
|
994
994
|
try {
|
|
995
|
-
const { ensureWhisper, ensureModel } = await import("./manager-
|
|
995
|
+
const { ensureWhisper, ensureModel } = await import("./manager-J2IRAOR7.js");
|
|
996
996
|
await ensureWhisper();
|
|
997
997
|
await ensureModel(initialTranscriptionModel);
|
|
998
998
|
console.log("Transcribing...");
|
|
999
|
-
const { transcribe: runTranscribe } = await import("./transcribe-
|
|
999
|
+
const { transcribe: runTranscribe } = await import("./transcribe-FZ3TE4FK.js");
|
|
1000
1000
|
const result = await runTranscribe(sourceFilePath2, destDir2, {
|
|
1001
1001
|
model: modelFlag,
|
|
1002
1002
|
language: languageFlag
|
|
@@ -1144,7 +1144,7 @@ var init_default = defineCommand({
|
|
|
1144
1144
|
mkdirSync(destDir, { recursive: true });
|
|
1145
1145
|
sourceFilePath = audioPath;
|
|
1146
1146
|
copyIntoProjectUnlessAlreadyThere(audioPath, resolve(destDir, basename(audioPath)));
|
|
1147
|
-
const { getMediaDurationSeconds } = await import("./transcribe-
|
|
1147
|
+
const { getMediaDurationSeconds } = await import("./transcribe-FZ3TE4FK.js");
|
|
1148
1148
|
videoDuration = getMediaDurationSeconds(audioPath) ?? void 0;
|
|
1149
1149
|
R.info(`Audio copied to ${c.accent(basename(audioPath))}`);
|
|
1150
1150
|
}
|
|
@@ -1154,7 +1154,7 @@ var init_default = defineCommand({
|
|
|
1154
1154
|
initialValue: true
|
|
1155
1155
|
});
|
|
1156
1156
|
if (!q(transcribeChoice) && transcribeChoice) {
|
|
1157
|
-
const { findWhisper } = await import("./manager-
|
|
1157
|
+
const { findWhisper } = await import("./manager-J2IRAOR7.js");
|
|
1158
1158
|
const needsInstall = findWhisper() === void 0;
|
|
1159
1159
|
if (needsInstall) {
|
|
1160
1160
|
R.info(c.dim("whisper-cpp not found \u2014 installing automatically..."));
|
|
@@ -1164,7 +1164,7 @@ var init_default = defineCommand({
|
|
|
1164
1164
|
needsInstall ? "Installing whisper-cpp (this may take a moment)..." : "Preparing transcription..."
|
|
1165
1165
|
);
|
|
1166
1166
|
try {
|
|
1167
|
-
const { ensureWhisper, ensureModel } = await import("./manager-
|
|
1167
|
+
const { ensureWhisper, ensureModel } = await import("./manager-J2IRAOR7.js");
|
|
1168
1168
|
await ensureWhisper({
|
|
1169
1169
|
onProgress: (msg) => spin2.message(msg)
|
|
1170
1170
|
});
|
|
@@ -1172,7 +1172,7 @@ var init_default = defineCommand({
|
|
|
1172
1172
|
onProgress: (msg) => spin2.message(msg)
|
|
1173
1173
|
});
|
|
1174
1174
|
spin2.message("Transcribing audio...");
|
|
1175
|
-
const { transcribe: runTranscribe } = await import("./transcribe-
|
|
1175
|
+
const { transcribe: runTranscribe } = await import("./transcribe-FZ3TE4FK.js");
|
|
1176
1176
|
const transcribeResult = await runTranscribe(sourceFilePath, destDir, {
|
|
1177
1177
|
model: modelFlag,
|
|
1178
1178
|
language: languageFlag,
|
|
@@ -1250,7 +1250,7 @@ ${c.dim("Use --example blank for offline use.")}`
|
|
|
1250
1250
|
}
|
|
1251
1251
|
R.info("Opening studio preview...");
|
|
1252
1252
|
try {
|
|
1253
|
-
const previewCmd = await import("./preview-
|
|
1253
|
+
const previewCmd = await import("./preview-HCYGBEWR.js").then((m) => m.default);
|
|
1254
1254
|
await runCommand(previewCmd, { rawArgs: [destDir] });
|
|
1255
1255
|
} catch {
|
|
1256
1256
|
}
|
|
@@ -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-MF53JVZ5.js";
|
|
10
10
|
import {
|
|
11
11
|
jsonArg,
|
|
12
12
|
num,
|
|
@@ -14,19 +14,19 @@ import {
|
|
|
14
14
|
runMeasure,
|
|
15
15
|
videoAndRoi,
|
|
16
16
|
videoArg
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-YXR5MVBM.js";
|
|
18
18
|
import {
|
|
19
19
|
Fix,
|
|
20
20
|
readFrameAt
|
|
21
|
-
} from "./chunk-
|
|
22
|
-
import "./chunk-
|
|
21
|
+
} from "./chunk-DYYAFCZH.js";
|
|
22
|
+
import "./chunk-G6QCHM2N.js";
|
|
23
23
|
import {
|
|
24
24
|
defineCommand
|
|
25
25
|
} from "./chunk-DL4OD7IA.js";
|
|
26
26
|
import "./chunk-S3S4TGEH.js";
|
|
27
27
|
import "./chunk-JCNPHRGX.js";
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-VXX4S2PH.js";
|
|
29
|
+
import "./chunk-LZTBL7SR.js";
|
|
30
30
|
import "./chunk-Z5J67X44.js";
|
|
31
31
|
import "./chunk-5S7W3TUO.js";
|
|
32
32
|
import "./chunk-D54ZDCZR.js";
|
|
@@ -56,7 +56,7 @@ import "./chunk-WC4MTXGN.js";
|
|
|
56
56
|
import "./chunk-WFQJ6EJ6.js";
|
|
57
57
|
import "./chunk-4NTCQF3L.js";
|
|
58
58
|
import "./chunk-JOQR4AP6.js";
|
|
59
|
-
import "./chunk-
|
|
59
|
+
import "./chunk-UIIQA7DN.js";
|
|
60
60
|
import "./chunk-BR2JQQC5.js";
|
|
61
61
|
import "./chunk-AWD2MWWL.js";
|
|
62
62
|
import "./chunk-ISN5GRYI.js";
|
|
@@ -65,7 +65,7 @@ import "./chunk-GR2E54E6.js";
|
|
|
65
65
|
import "./chunk-66W5IWLO.js";
|
|
66
66
|
import "./chunk-CPHQTXP5.js";
|
|
67
67
|
import "./chunk-QBXDU24O.js";
|
|
68
|
-
import "./chunk-
|
|
68
|
+
import "./chunk-7SZ7QQJ3.js";
|
|
69
69
|
import "./chunk-E63BDV4Z.js";
|
|
70
70
|
import "./chunk-LW33P24U.js";
|
|
71
71
|
import "./chunk-XT6MXC7A.js";
|