hyperframes 0.9.54 → 0.9.56
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-OVHVUHQR.js → add-KW7OTOWF.js} +23 -23
- package/dist/{agentPromptGenerator-L2B3HMHF.js → agentPromptGenerator-NNXUWNU4.js} +14 -13
- package/dist/{animatedGifPrep-YMJH33FX.js → animatedGifPrep-6ATQHQON.js} +15 -14
- package/dist/api.d.ts +4 -2
- package/dist/api.js +46 -44
- package/dist/{appHistory-T3ZLA7QN.js → appHistory-KHX53SGI.js} +6 -4
- package/dist/{asset-ORCN4EVH.js → asset-QVINGJRK.js} +2 -2
- package/dist/{assetCataloger-X23VB66T.js → assetCataloger-DENJPUBH.js} +15 -14
- package/dist/{audio-NHNXBUI2.js → audio-LB7HQYPJ.js} +28 -27
- package/dist/{auth-DQDDXQFC.js → auth-7AGRVI5A.js} +2 -2
- package/dist/{autoUpdate-LF7BJN34.js → autoUpdate-ITCP2JDM.js} +4 -4
- package/dist/{avatars-KFUMWRVX.js → avatars-2K2C74EQ.js} +19 -17
- package/dist/{backgroundChecks-Y6RHADW6.js → backgroundChecks-UOTBCWPN.js} +5 -5
- package/dist/backgroundChecksWorker.js +5 -5
- package/dist/{batchRender-CMG4SVBX.js → batchRender-Z7ESYQDS.js} +9 -7
- package/dist/{beats-JXZBK7JI.js → beats-TG6ZB3XH.js} +14 -14
- package/dist/{benchmark-CLU6JUGY.js → benchmark-RU5MLZHE.js} +20 -20
- package/dist/{billing-5GMYFDMC.js → billing-VB5PYYSN.js} +19 -19
- package/dist/{browser-S4R6LZMF.js → browser-VSQRY5GG.js} +12 -12
- package/dist/{bundleWithLocalizedFonts-SFUFSBEU.js → bundleWithLocalizedFonts-XDPJE355.js} +1 -1
- package/dist/{capture-A3FLQIDI.js → capture-M4FL7MWI.js} +25 -24
- package/dist/{capture-NL7V23HG.js → capture-TQCFWPAT.js} +4 -4
- package/dist/{captureCompositionFrame-R7GYVNTF.js → captureCompositionFrame-XF67Q6YK.js} +20 -19
- package/dist/{captureFile-LXMDM5TD.js → captureFile-F254H22J.js} +3 -3
- package/dist/{catalog-42I7W7AU.js → catalog-24EGH662.js} +23 -23
- package/dist/catalog-artifact/media-vectors.json +205 -0
- package/dist/{catch-up-TFSQZQZD.js → catch-up-L23HGDLB.js} +16 -16
- package/dist/{check-CXRQZBLD.js → check-F4HQVV2M.js} +56 -53
- package/dist/{checkAudio-AJUH6RU6.js → checkAudio-6DT3ONR7.js} +17 -16
- package/dist/{checkBrowser-4BLSYI25.js → checkBrowser-S7P4X7QV.js} +46 -45
- package/dist/{chunk-Q42L7V5T.js → chunk-2GRCTZNS.js} +1 -1
- package/dist/{chunk-EKANCN4D.js → chunk-2ZOJCSLJ.js} +3 -3
- package/dist/{chunk-ER22SVLT.js → chunk-3GVHDPEP.js} +1 -1
- package/dist/{chunk-MPU2CRFV.js → chunk-43CQTZGB.js} +13 -14
- package/dist/{chunk-63ESYLBY.js → chunk-4DJGUZJR.js} +2 -2
- package/dist/{chunk-B6AK5P2D.js → chunk-4GPKDDQZ.js} +7 -7
- package/dist/{chunk-KYUCSRZU.js → chunk-4WSJ5MUN.js} +1 -1
- package/dist/{chunk-T5S7U5C6.js → chunk-52XHPMCX.js} +1 -1
- package/dist/chunk-56T2OGYR.js +5085 -0
- package/dist/{chunk-4Q3Q4NFK.js → chunk-5GSCSZOS.js} +2 -2
- package/dist/{chunk-3L2POG2J.js → chunk-5IE5ZI66.js} +37 -8
- package/dist/{chunk-SWAG64KW.js → chunk-5ZDNSYTO.js} +8 -13
- package/dist/{chunk-N7M2SNAF.js → chunk-664QGMR4.js} +2 -2
- package/dist/chunk-677JGYQL.js +91 -0
- package/dist/{chunk-GA6QR6LN.js → chunk-6LONEKJR.js} +253 -158
- package/dist/{chunk-LEIR7IDJ.js → chunk-6LU6JICP.js} +80 -1
- package/dist/{chunk-SVIA7POL.js → chunk-6XRXUMFG.js} +2 -2
- package/dist/{chunk-4ZFNNWUX.js → chunk-7DKWEIH4.js} +10 -10
- package/dist/{chunk-GEUM7NDY.js → chunk-7E7VKASF.js} +2 -2
- package/dist/{chunk-5HJZGP54.js → chunk-7F4RAWDS.js} +2 -2
- package/dist/{chunk-OWS4ZWEY.js → chunk-7HQC5MDZ.js} +1 -1
- package/dist/{chunk-P4YIRU76.js → chunk-7QFFS657.js} +1 -1
- package/dist/{chunk-AYESPEPQ.js → chunk-7QFLMCTD.js} +6 -1
- package/dist/chunk-AGTBMLNM.js +42 -0
- package/dist/{chunk-BNONW4QT.js → chunk-AN6KWGYI.js} +2 -2
- package/dist/{chunk-JAAIW4JR.js → chunk-ANYW22IT.js} +1 -1
- package/dist/{chunk-JRSBBFUU.js → chunk-APCVZGU6.js} +402 -110
- package/dist/{chunk-7WRLK2K4.js → chunk-B6BWLFAF.js} +2 -2
- package/dist/{chunk-VCKUDUPN.js → chunk-BA33QNKK.js} +199 -15
- package/dist/{chunk-WPSPW7SI.js → chunk-BMVUB2CY.js} +6 -6
- package/dist/{chunk-5XLTJMCN.js → chunk-BPYNILOZ.js} +5 -5
- package/dist/{chunk-H5KHQ6KS.js → chunk-BR7GOCQJ.js} +1 -1
- package/dist/{chunk-6SRBTOGD.js → chunk-BTJYK56C.js} +3 -3
- package/dist/{chunk-EA5W2DWO.js → chunk-BUG5AOPJ.js} +3 -3
- package/dist/{chunk-7RI3U46M.js → chunk-BW4H55SU.js} +1 -1
- package/dist/{chunk-SDFGDNWV.js → chunk-BZXW5QU7.js} +1 -1
- package/dist/{chunk-WPD7JH6F.js → chunk-CBG6MIT2.js} +2 -2
- package/dist/{chunk-O7TIBLSJ.js → chunk-CKIVYAKG.js} +80 -15
- package/dist/{chunk-YVCPUVHV.js → chunk-CKIYT34K.js} +1 -1
- package/dist/{chunk-DWDCE4PO.js → chunk-CLRHKYOK.js} +6 -6
- package/dist/{chunk-3IUBSGD2.js → chunk-CNXZCMJZ.js} +2 -2
- package/dist/{chunk-F64VFCVC.js → chunk-CPSD7337.js} +51 -28
- package/dist/{chunk-73UFPVUC.js → chunk-CUO2HF4M.js} +2 -2
- package/dist/{chunk-JSYLOPVJ.js → chunk-CWIOKI2R.js} +1 -1
- package/dist/{chunk-IB6FFEDH.js → chunk-CXFW7YPT.js} +42 -48
- package/dist/{chunk-YNF3SH26.js → chunk-CZCZ5YXT.js} +3 -2
- package/dist/{chunk-SUG2AA33.js → chunk-D3WRRPHI.js} +10 -10
- package/dist/{chunk-CWXJZB44.js → chunk-DDCXMXAD.js} +11 -11
- package/dist/{chunk-X6TDH2OM.js → chunk-DUZ6Z2ZN.js} +1 -1
- package/dist/{chunk-DXVK3NMV.js → chunk-EBRN4YJH.js} +3 -3
- package/dist/{chunk-RBBWUYMG.js → chunk-EGR2ZFFP.js} +4 -4
- package/dist/{chunk-AU4ZBCR3.js → chunk-EKSS3KI7.js} +1 -1
- package/dist/{chunk-TMV76KPG.js → chunk-EUP7ODOV.js} +1 -1
- package/dist/{chunk-E2DHBP6C.js → chunk-FGGRBKWL.js} +1 -1
- package/dist/{chunk-GIOLHGCC.js → chunk-GTC2STHN.js} +116 -27
- package/dist/{chunk-E7T5SMDK.js → chunk-GWSMTN55.js} +51 -10
- package/dist/{chunk-QGKRHG4Q.js → chunk-HCQXGGVY.js} +18 -18
- package/dist/{chunk-WAAXVZIT.js → chunk-HOCV5AW6.js} +2 -2
- package/dist/{chunk-7RGWVZOS.js → chunk-HVG656G6.js} +3 -3
- package/dist/{chunk-D4EGZYDN.js → chunk-ICDGP335.js} +13 -10
- package/dist/{chunk-NKAW4RVE.js → chunk-IDGWNOBX.js} +1 -1
- package/dist/{chunk-YU5LSWA2.js → chunk-IHX3AFTY.js} +2 -2
- package/dist/{chunk-CAYQATCT.js → chunk-IO7PRQQC.js} +1 -1
- package/dist/{chunk-BDWLBCTG.js → chunk-IRZUZ32B.js} +5 -5
- package/dist/{chunk-QONV77VI.js → chunk-IT2QBRVS.js} +1 -1
- package/dist/{chunk-PXLGDX2S.js → chunk-JDXALWOM.js} +39 -24
- package/dist/{chunk-E7X54BVP.js → chunk-JPEIUGS5.js} +1 -1
- package/dist/{chunk-4IUOWNDS.js → chunk-JQKCRTVQ.js} +2 -2
- package/dist/{chunk-UZJ7Y7WU.js → chunk-KRYXZVA2.js} +3 -3
- package/dist/{chunk-CIYNUD7Q.js → chunk-L27Z3PZT.js} +1 -1
- package/dist/{chunk-CBCB6GPL.js → chunk-L5CBCPUH.js} +60 -33
- package/dist/{chunk-BBDWXUO3.js → chunk-L5NPBGQB.js} +15 -22
- package/dist/{chunk-B5HSHXE2.js → chunk-LH5FRVAO.js} +12 -7
- package/dist/{chunk-YBLBI3O2.js → chunk-LK7F7P2X.js} +6 -3
- package/dist/{chunk-4WK4O5FI.js → chunk-LRQEIKFT.js} +67 -27
- package/dist/{chunk-FUPEHRNT.js → chunk-LRWWCTSJ.js} +2 -2
- package/dist/{chunk-RXJUMVCA.js → chunk-MDRLJ737.js} +5 -2
- package/dist/{chunk-VK3MQSA2.js → chunk-MK4RH5L7.js} +5 -2
- package/dist/{chunk-AROERRUJ.js → chunk-MP52CUHL.js} +2 -2
- package/dist/{chunk-ATKA5KHE.js → chunk-MPOWSPBD.js} +3 -3
- package/dist/{chunk-H7DKHNBF.js → chunk-MVLAPENI.js} +36 -8
- package/dist/{chunk-2PASB3PC.js → chunk-NCJSN6SV.js} +5 -5
- package/dist/{chunk-DVTRMGYG.js → chunk-NFST2HIM.js} +2 -2
- package/dist/{chunk-C7LNWZ7G.js → chunk-OXT2LXZB.js} +8 -6
- package/dist/{chunk-MEGSQW2I.js → chunk-OZDELWQP.js} +2 -29
- package/dist/{chunk-EB4IWBBC.js → chunk-PCKKKICA.js} +18 -4
- package/dist/{chunk-SOMX57XG.js → chunk-PGHROSLJ.js} +4 -4
- package/dist/{chunk-Q3ESTCZH.js → chunk-PGJYA6I3.js} +11 -11
- package/dist/{chunk-NKUUNSII.js → chunk-PHAZT6EB.js} +1 -1
- package/dist/{chunk-KCF6Q54R.js → chunk-PUTPYYE4.js} +1 -1
- package/dist/{chunk-NRGNEP3R.js → chunk-PVF32NRA.js} +2 -2
- package/dist/{chunk-32DAUKF5.js → chunk-Q2TT62RQ.js} +4 -4
- package/dist/{chunk-EXXIFMUX.js → chunk-QBADK3LD.js} +13 -5
- package/dist/{chunk-DOLVT6CH.js → chunk-QJDMX53S.js} +1 -1
- package/dist/{chunk-F7B2YDPM.js → chunk-QNIID7EN.js} +6 -8
- package/dist/{chunk-FICKJQU2.js → chunk-QTZICZWT.js} +4 -4
- package/dist/{chunk-Y6UCMYJZ.js → chunk-R2LP7QPB.js} +1 -1
- package/dist/{chunk-YUDWGRNZ.js → chunk-RCGNYXWK.js} +14 -14
- package/dist/{chunk-CNZOKODL.js → chunk-RFULFCYW.js} +3 -3
- package/dist/{chunk-26RTKW2U.js → chunk-RRT6URIP.js} +2 -2
- package/dist/{chunk-IR2GEREV.js → chunk-SEC76O65.js} +1 -1
- package/dist/{chunk-3NXY6O4X.js → chunk-SGWDJLFL.js} +1 -1
- package/dist/{chunk-RXSPJW77.js → chunk-T5HYPGST.js} +4 -4
- package/dist/{chunk-77U3646W.js → chunk-TVZTTWU7.js} +2 -2
- package/dist/{chunk-ELA3IV4P.js → chunk-TY7EHE4Q.js} +2 -2
- package/dist/{chunk-75TCOXNT.js → chunk-UHVKV5IF.js} +1 -1
- package/dist/{chunk-SULPT5X6.js → chunk-UIMXEY4U.js} +6 -6
- package/dist/{chunk-KWTTELUY.js → chunk-UVPLW55S.js} +37 -1
- package/dist/{chunk-EKCGL4MV.js → chunk-VC4YMXUQ.js} +1 -1
- package/dist/{chunk-H2GJDFF6.js → chunk-VCSQLM36.js} +14 -9
- package/dist/{chunk-VT2K6I4A.js → chunk-VVXSMYXQ.js} +3 -3
- package/dist/{chunk-NCLBKHCX.js → chunk-W4AR7UZH.js} +2 -2
- package/dist/{chunk-TM7D3NOR.js → chunk-WFB4XPJR.js} +45 -11
- package/dist/{chunk-PAA5FUUL.js → chunk-WGWKT7ME.js} +3 -3
- package/dist/{chunk-LRXARA5O.js → chunk-WHX2OV4C.js} +1 -1
- package/dist/{chunk-O6E5HSVF.js → chunk-WUY74LHU.js} +2 -2
- package/dist/{chunk-RZJ7BHXB.js → chunk-XD5T43S7.js} +1 -1
- package/dist/{chunk-3NPZZT2K.js → chunk-XEVAW42J.js} +9 -9
- package/dist/{chunk-JHOCK3DG.js → chunk-XFF4XJZO.js} +11 -3
- package/dist/{chunk-4NG5GSTO.js → chunk-XKNNZ4WR.js} +1 -1
- package/dist/{chunk-3IHRXHJQ.js → chunk-XLP34AJR.js} +2 -2
- package/dist/{chunk-QKYGGUOQ.js → chunk-YDNBMPP3.js} +4 -4
- package/dist/{chunk-PLOVBMJF.js → chunk-YFWFCKKF.js} +291 -235
- package/dist/{chunk-EZQJFCWA.js → chunk-YOMFN6HH.js} +2 -2
- package/dist/{chunk-TRAPS5WB.js → chunk-YQSVPHOS.js} +27 -37
- package/dist/{chunk-OTWFSHYH.js → chunk-YWH7HWDP.js} +269 -145
- package/dist/chunk-YXX6CIHL.js +25 -0
- package/dist/{chunk-TW4DB2NK.js → chunk-Z72VXQPN.js} +2 -2
- package/dist/{chunk-KTLRJZFK.js → chunk-ZIF44RW2.js} +9 -10
- package/dist/{clean-JK4VQMTH.js → clean-VB6BH3FV.js} +30 -29
- package/dist/cli.js +66 -66
- package/dist/{cloud-JZ2WKHQG.js → cloud-7KRPD2K4.js} +4 -4
- package/dist/{cloud-LU4FVT33.js → cloud-A67BW6OH.js} +3 -3
- package/dist/{cloudrun-QBXSGBGX.js → cloudrun-VKBARVVT.js} +22 -9
- package/dist/{compare-YE5BTDCG.js → compare-SE55PMC3.js} +45 -44
- package/dist/{compiler-QEA5UQRG.js → compiler-WK7ABGRW.js} +6 -6
- package/dist/{component-MGT5ZJ4M.js → component-XT2AT3RY.js} +3 -3
- package/dist/{compositions-7OF6FDCH.js → compositions-ZZWLQNDQ.js} +25 -23
- package/dist/{contactSheet-CCHQAZLA.js → contactSheet-MXOASCDR.js} +4 -4
- package/dist/{curve-JQLVUDXR.js → curve-4RQQKZ2K.js} +19 -17
- package/dist/{cuts-MCJP6LMJ.js → cuts-M3QU2CBE.js} +20 -18
- package/dist/{delete-PUYEW3RJ.js → delete-5ZZNPK5G.js} +7 -7
- package/dist/{deploy-M4XGMJM5.js → deploy-VR5SQP4U.js} +9 -4
- package/dist/{describeProject-P7CBZ6NW.js → describeProject-NU5BVVIA.js} +14 -13
- package/dist/{destroy-6XJWSH2A.js → destroy-FFS62PAW.js} +9 -4
- package/dist/{deterministicFonts-OXGNMVJE.js → deterministicFonts-FQQNGORI.js} +4 -4
- package/dist/{diff-BATSO64W.js → diff-NQGTF6GR.js} +58 -52
- package/dist/{dist-T62DJJZX.js → dist-6GYOC3BU.js} +4 -4
- package/dist/{dist-G6W7GKGP.js → dist-APXZ5EN2.js} +3 -3
- package/dist/{dist-PC3EMMET.js → dist-B7IBHWIW.js} +18 -15
- package/dist/{doctor-ONTGSPYF.js → doctor-FATJGTPD.js} +22 -21
- package/dist/{energy-FNZICGW2.js → energy-PHDK6SKL.js} +20 -18
- package/dist/{events-LBHSU7C2.js → events-25VQ2O66.js} +10 -10
- package/dist/{events-6TNBAVVY.js → events-OIWXSBZA.js} +25 -22
- package/dist/{events-ENJZNXWG.js → events-RXVHG2NT.js} +5 -5
- package/dist/{execute-RXTEBACV.js → execute-MKP4Z573.js} +36 -35
- package/dist/{extract-F2CWTMLX.js → extract-YYNYXPOC.js} +20 -18
- package/dist/{face-7HL4CP32.js → face-JSTMFQRM.js} +21 -19
- package/dist/{feedback-4NDDMECH.js → feedback-PY6LMZCX.js} +19 -19
- package/dist/{ffmpeg-3LL345SO.js → ffmpeg-KLIB55FK.js} +13 -12
- package/dist/{figma-474E54NB.js → figma-ACFOXVPM.js} +3 -3
- package/dist/fontLocalizeCli.js +20 -19
- package/dist/{frames-EZWGM7QQ.js → frames-BLZCBXO7.js} +22 -20
- package/dist/{generate-I75DZWDU.js → generate-DMVEKZEV.js} +33 -31
- package/dist/{get-BHU6CBWO.js → get-3WZDQ5YM.js} +7 -7
- package/dist/{gpuPolicy-6J2STCV2.js → gpuPolicy-TT6UCOLQ.js} +13 -12
- package/dist/{grade-compare-D4TBMCBG.js → grade-compare-F5DJ53XH.js} +47 -44
- package/dist/hangReport.js +2 -2
- package/dist/{heifImagePrep-VLYGRKSS.js → heifImagePrep-UV23RWOG.js} +16 -15
- package/dist/{help-2CUXKYJ6.js → help-QMP5KFYW.js} +1 -1
- package/dist/{history-LVAVYTAN.js → history-UOZ4RDEZ.js} +21 -18
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +76 -76
- package/dist/hyperframes-player.global.js +1 -1
- package/dist/{info-SUZOEH6L.js → info-A6KSO64E.js} +21 -20
- package/dist/{init-XI5QN3A6.js → init-OQU46K3Q.js} +52 -47
- package/dist/{ink-OVDZOCQJ.js → ink-HGRKLGII.js} +20 -18
- package/dist/{inspect-INBCGPBD.js → inspect-BKENKUXF.js} +44 -43
- package/dist/{installer-JNQKFCTN.js → installer-Z6FTR7BJ.js} +8 -8
- package/dist/{keyframes-LYZJK4RH.js → keyframes-UDQGWKPW.js} +14 -14
- package/dist/{lambda-DUDXZV6X.js → lambda-SHXQFHLE.js} +23 -22
- package/dist/{layout-JKUJW6A4.js → layout-CJAVQ4D3.js} +44 -43
- package/dist/{lint-NKDC7IJ2.js → lint-RAPNYPWS.js} +15 -15
- package/dist/{lintProject-5Z34NNS4.js → lintProject-JZRM7UKH.js} +3 -3
- package/dist/{list-5HUMDJYL.js → list-4BKFMJQN.js} +7 -7
- package/dist/{localPage-RRBRFR4Y.js → localPage-BJW2TP77.js} +14 -13
- package/dist/{login-C3SHKITR.js → login-S5VZAGCI.js} +4 -4
- package/dist/{look-3TX2U4BE.js → look-V2I6BGUY.js} +20 -18
- package/dist/{manager-MOR255LW.js → manager-OS2FYJI5.js} +14 -13
- package/dist/{manager-45VB2G5F.js → manager-WQWU5VJ4.js} +5 -5
- package/dist/{measure-ZAKBHNGY.js → measure-RO5R2SUZ.js} +11 -11
- package/dist/{media-treatment-QJ35DSED.js → media-treatment-CS7BVMJW.js} +21 -20
- package/dist/{media-use-YBKHJVXL.js → media-use-W3DGCKFB.js} +5 -5
- package/dist/{models-OQHKG7B4.js → models-ZOGYW2SC.js} +18 -17
- package/dist/{motionShot-TWQTREFH.js → motionShot-IMRI7W7T.js} +24 -23
- package/dist/{normalize-audio-PXHPUOMD.js → normalize-audio-HXTFAZUK.js} +14 -14
- package/dist/{open-TVGO5KVF.js → open-LJDQ37KV.js} +25 -24
- package/dist/{parakeetRunner-MVJMZSIG.js → parakeetRunner-CKMSKDH6.js} +21 -20
- package/dist/{pipeline-4S5UE4O4.js → pipeline-ZNCYOTUH.js} +16 -15
- package/dist/{plan-AMBZUX55.js → plan-NCFS5T6W.js} +28 -27
- package/dist/{play-KEAESNBM.js → play-5UZDFFXJ.js} +39 -32
- package/dist/{preflight-K3CM3W55.js → preflight-H5XYFKFF.js} +16 -15
- package/dist/{present-42WDBGBA.js → present-EFXUFT5Y.js} +62 -46
- package/dist/{preview-KSHBU7ZR.js → preview-RV7ALGDQ.js} +35 -33
- package/dist/{probe-TMSXGCL4.js → probe-UB6DM2Q3.js} +20 -18
- package/dist/{producer-KXRSJPJF.js → producer-2PKB5CW5.js} +1 -1
- package/dist/{progress-IY6U35WH.js → progress-S36VQBQW.js} +3 -1
- package/dist/{projectConfig-LOHNVOJG.js → projectConfig-EUH5DILC.js} +12 -12
- package/dist/{publication-LYPU7NTZ.js → publication-VI2AXXKR.js} +6 -6
- package/dist/{publish-PYZXDQJW.js → publish-225GB7R4.js} +25 -25
- package/dist/{remove-background-HVX52VOF.js → remove-background-W2RLEQHJ.js} +17 -16
- package/dist/{render-CM4MCNVA.js → render-KXKBSNOQ.js} +9 -8
- package/dist/{render-57ZYQ53S.js → render-WMWCCMWI.js} +71 -54
- package/dist/{render-5KMA5P2U.js → render-Y3JKWEN4.js} +42 -39
- package/dist/{render-batch-URBBGOVC.js → render-batch-GK6CDHKN.js} +10 -9
- package/dist/renderSetupWorker.js +8 -8
- package/dist/{resolver-UPUCU4XT.js → resolver-5CRZD5XB.js} +9 -9
- package/dist/{reverse-UYS7KVE2.js → reverse-YPYKKQSJ.js} +1 -1
- package/dist/{run-4LNEWQLG.js → run-FQ76QNES.js} +7 -7
- package/dist/{sam-EGFXZF56.js → sam-A4NXDWSU.js} +4 -1
- package/dist/{screenshotCapture-IF5AO5XM.js → screenshotCapture-R6VE66NR.js} +16 -15
- package/dist/{service-OEOC34BD.js → service-P3IKHZFC.js} +18 -17
- package/dist/{share-NS7CMVSU.js → share-BU4VQL3B.js} +21 -20
- package/dist/{sherpa-QBTXL6JA.js → sherpa-44GLXY3A.js} +20 -19
- package/dist/sherpaWorker.js +5 -3
- package/dist/{sites-QK3F4AUS.js → sites-TAX3JLNX.js} +3 -1
- package/dist/skills/hyperframes/SKILL.md +2 -2
- package/dist/skills/hyperframes/references/format.md +11 -2
- package/dist/skills/hyperframes/references/overlays.md +1 -1
- package/dist/skills/hyperframes/references/plugin-installation.md +33 -22
- package/dist/skills/hyperframes/references/sound.md +1 -0
- package/dist/skills/hyperframes/scripts/plugin-cli.mjs +18 -13
- package/dist/skills/hyperframes/scripts/plugin-cli.test.mjs +64 -40
- package/dist/skills/hyperframes-cli/SKILL.md +2 -2
- package/dist/skills/media-use/SKILL.md +1 -1
- package/dist/skills/media-use/audio/scripts/lib/bgm.mjs +4 -1
- package/dist/skills/media-use/audio/scripts/lib/bgm.test.mjs +62 -1
- package/dist/skills/media-use/audio/scripts/lib/python.mjs +9 -1
- package/dist/skills/media-use/audio/scripts/lib/python.test.mjs +16 -0
- package/dist/skills/media-use/scripts/lib/bundled-sfx-provider.mjs +27 -2
- package/dist/skills/media-use/scripts/lib/bundled-sfx-provider.test.mjs +40 -1
- package/dist/skills/media-use/scripts/lib/local-media-search.mjs +52 -23
- package/dist/skills/media-use/scripts/lib/local-media-search.test.mjs +73 -4
- package/dist/skills/media-use/scripts/lib/ltx-video-provider.mjs +3 -1
- package/dist/skills/media-use/scripts/lib/ltx-video-provider.test.mjs +16 -1
- package/dist/skills/media-use/scripts/resolve.mjs +4 -14
- package/dist/skills/media-use/scripts/transcribe.mjs +19 -3
- package/dist/skills/media-use/scripts/transcribe.test.mjs +60 -0
- package/dist/{skills-S5U2MQAI.js → skills-H4OZQ6VR.js} +15 -14
- package/dist/{skillsUpdateCheck-UZ7CZ6VC.js → skillsUpdateCheck-U3XZX7UE.js} +5 -5
- package/dist/{snapshot-YWFWQTAV.js → snapshot-FJQVXBFB.js} +59 -56
- package/dist/{src-N2SMYJ44.js → src-O6BHCR4O.js} +18 -17
- package/dist/{src-UQ3K3UW2.js → src-PAM5LJ6K.js} +12 -11
- package/dist/{start-4IA5GG5D.js → start-R7CYOQ5S.js} +31 -29
- package/dist/{state-7OIPR4BG.js → state-YFRV6TQH.js} +3 -1
- package/dist/{staticProjectServer-5JP25RRX.js → staticProjectServer-4X2OSUN4.js} +29 -28
- package/dist/{status-ITCKXFBF.js → status-VN3FAN4M.js} +21 -21
- package/dist/studio/assets/{hyperframes-player-Oju91F6x.js → hyperframes-player-SRLbmEDB.js} +1 -1
- package/dist/studio/assets/{index-B0VEzzD2.js → index-CgyBYe2L.js} +130 -130
- package/dist/studio/assets/{index-XEm_N45R.js → index-yuN1pZrv.js} +1 -1
- package/dist/studio/assets/{pausedVideoDecoder-p6zibxVM.js → pausedVideoDecoder-DtvSF8bV.js} +1 -1
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-GENM2XVL.js → studio-api-V3TMIWFB.js} +18 -15
- package/dist/{studioSelectionClient-W2S3H2VO.js → studioSelectionClient-S46TNAAZ.js} +2 -1
- package/dist/{studioServer-SWR5Q3PD.js → studioServer-GY2ZTR2E.js} +90 -77
- package/dist/{sync-CK6TTCXO.js → sync-2V3JYCDE.js} +20 -18
- package/dist/{synthesize-EXNEBJSY.js → synthesize-TQELPMS5.js} +5 -5
- package/dist/{system-JBPJHNTG.js → system-2YOII5LZ.js} +3 -3
- package/dist/{telemetry-T4HQ6AKZ.js → telemetry-KMRZ3IJV.js} +10 -10
- package/dist/{templates-7O7NOIUC.js → templates-EEFY4FPS.js} +129 -37
- package/dist/{timeline-P2PLN53O.js → timeline-HSRGYZ3Q.js} +28 -27
- package/dist/{tokens-SPQN27VG.js → tokens-NYFORL53.js} +2 -2
- package/dist/{transcribe-YJQ3DDDI.js → transcribe-CNIQYQ52.js} +37 -35
- package/dist/{transcribe-SCZG6IM4.js → transcribe-GFFWRWK3.js} +17 -16
- package/dist/{tts-5OAB5XX6.js → tts-NPMDYSXP.js} +1 -1
- package/dist/{update-JYPZW35A.js → update-BDMPUNNA.js} +17 -16
- package/dist/{updateCheck-5M2JJTH3.js → updateCheck-43UZ2USJ.js} +4 -4
- package/dist/{upgrade-BP62FM6V.js → upgrade-Z5B57UWL.js} +7 -7
- package/dist/{urlDownloader-WOZQCE6P.js → urlDownloader-KDZ76BKM.js} +12 -11
- package/dist/{validate-NEC5QLH7.js → validate-UQKZNR5K.js} +35 -34
- package/dist/{video-XEEBISSO.js → video-VR4363OG.js} +15 -14
- package/dist/{voices-GCHA27JA.js → voices-GUWAM3TH.js} +31 -29
- package/dist/warmCheck.js +56 -53
- package/dist/warmCheckClient.js +2 -2
- package/package.json +2 -1
- package/dist/chunk-XGEJPKRY.js +0 -5069
|
@@ -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"}],Io=new Map(Gt.map(t=>[t.id,t]));var Co=Gt.map(t=>t.id);function Ri(t){return 10**(t/20)}var zt=Ri(12);var jt="data-automation",$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 Ii(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 Ci(t){let e=Ii(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,...Ci(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 Ie(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=>Ie({start:0,duration:d.getAttribute("data-duration"),authoredDuration:u(d,"data-hf-authored-duration")})?.duration??Ie({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),I=(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},C=(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 I(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,I(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=C(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=>I(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 Ce(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.54/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"}],Io=new Map(Gt.map(t=>[t.id,t]));var Co=Gt.map(t=>t.id);function Ri(t){return 10**(t/20)}var zt=Ri(12);var jt="data-automation",$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 Ii(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 Ci(t){let e=Ii(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,...Ci(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 Ie(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=>Ie({start:0,duration:d.getAttribute("data-duration"),authoredDuration:u(d,"data-hf-authored-duration")})?.duration??Ie({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),I=(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},C=(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 I(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,I(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=C(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=>I(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 Ce(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.56/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,11 +9,11 @@ import {
|
|
|
9
9
|
} from "./chunk-ZBAF6L74.js";
|
|
10
10
|
import {
|
|
11
11
|
heardClips
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-WGWKT7ME.js";
|
|
13
|
+
import "./chunk-R2LP7QPB.js";
|
|
14
14
|
import {
|
|
15
15
|
resolveProject
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-4WSJ5MUN.js";
|
|
17
17
|
import {
|
|
18
18
|
terminalText
|
|
19
19
|
} from "./chunk-IJYIIHGK.js";
|
|
@@ -21,8 +21,8 @@ import {
|
|
|
21
21
|
formatBytes,
|
|
22
22
|
label
|
|
23
23
|
} from "./chunk-ZLTB7ZCQ.js";
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-RFULFCYW.js";
|
|
25
|
+
import "./chunk-WUY74LHU.js";
|
|
26
26
|
import "./chunk-PXVQOMKL.js";
|
|
27
27
|
import "./chunk-MCDNAIFF.js";
|
|
28
28
|
import "./chunk-DMW5SSUN.js";
|
|
@@ -34,34 +34,35 @@ import "./chunk-54HJ63Q2.js";
|
|
|
34
34
|
import {
|
|
35
35
|
c
|
|
36
36
|
} from "./chunk-JCNPHRGX.js";
|
|
37
|
-
import "./chunk-
|
|
37
|
+
import "./chunk-6LONEKJR.js";
|
|
38
38
|
import "./chunk-OSKSTJNQ.js";
|
|
39
39
|
import "./chunk-Z5J67X44.js";
|
|
40
|
+
import "./chunk-YXX6CIHL.js";
|
|
40
41
|
import "./chunk-5S7W3TUO.js";
|
|
41
42
|
import "./chunk-D54ZDCZR.js";
|
|
42
|
-
import "./chunk-
|
|
43
|
-
import "./chunk-
|
|
43
|
+
import "./chunk-L5NPBGQB.js";
|
|
44
|
+
import "./chunk-PUTPYYE4.js";
|
|
44
45
|
import "./chunk-3GXQPCJC.js";
|
|
45
|
-
import "./chunk-
|
|
46
|
+
import "./chunk-JQKCRTVQ.js";
|
|
46
47
|
import "./chunk-FXMKHHPO.js";
|
|
47
48
|
import {
|
|
48
49
|
isHtmlElement
|
|
49
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-56T2OGYR.js";
|
|
50
51
|
import "./chunk-VC76R6W2.js";
|
|
51
|
-
import "./chunk-
|
|
52
|
+
import "./chunk-UVPLW55S.js";
|
|
52
53
|
import "./chunk-RQVDTPGD.js";
|
|
53
|
-
import "./chunk-
|
|
54
|
-
import "./chunk-
|
|
55
|
-
import "./chunk-
|
|
54
|
+
import "./chunk-SEC76O65.js";
|
|
55
|
+
import "./chunk-6LU6JICP.js";
|
|
56
|
+
import "./chunk-YQSVPHOS.js";
|
|
56
57
|
import "./chunk-6EMFSRTW.js";
|
|
57
|
-
import "./chunk-
|
|
58
|
+
import "./chunk-L27Z3PZT.js";
|
|
58
59
|
import {
|
|
59
60
|
readDataDurationSeconds
|
|
60
61
|
} from "./chunk-IH2C53YV.js";
|
|
61
62
|
import {
|
|
62
63
|
CANVAS_DIMENSIONS,
|
|
63
64
|
parseHtml
|
|
64
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-BA33QNKK.js";
|
|
65
66
|
import "./chunk-FR7YBU3H.js";
|
|
66
67
|
import "./chunk-DZWAYZG2.js";
|
|
67
68
|
import "./chunk-GWTIFRF5.js";
|
|
@@ -72,7 +73,7 @@ import "./chunk-4NTCQF3L.js";
|
|
|
72
73
|
import "./chunk-JOQR4AP6.js";
|
|
73
74
|
import {
|
|
74
75
|
withMeta
|
|
75
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-YOMFN6HH.js";
|
|
76
77
|
import "./chunk-BR2JQQC5.js";
|
|
77
78
|
import "./chunk-AWD2MWWL.js";
|
|
78
79
|
import "./chunk-ISN5GRYI.js";
|
|
@@ -81,13 +82,13 @@ import "./chunk-GR2E54E6.js";
|
|
|
81
82
|
import "./chunk-66W5IWLO.js";
|
|
82
83
|
import "./chunk-CPHQTXP5.js";
|
|
83
84
|
import "./chunk-QBXDU24O.js";
|
|
84
|
-
import "./chunk-
|
|
85
|
+
import "./chunk-TY7EHE4Q.js";
|
|
85
86
|
import "./chunk-E63BDV4Z.js";
|
|
86
87
|
import "./chunk-LW33P24U.js";
|
|
87
88
|
import "./chunk-XT6MXC7A.js";
|
|
88
89
|
import "./chunk-7KDQAD2W.js";
|
|
89
|
-
import "./chunk-
|
|
90
|
-
import "./chunk-
|
|
90
|
+
import "./chunk-OZDELWQP.js";
|
|
91
|
+
import "./chunk-GWSMTN55.js";
|
|
91
92
|
import "./chunk-M2WBOQ2Q.js";
|
|
92
93
|
|
|
93
94
|
// src/commands/info.ts
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-LSUM6RTW.js";
|
|
10
10
|
import {
|
|
11
11
|
gateRegistryItemsCompatibility
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-7HQC5MDZ.js";
|
|
13
13
|
import {
|
|
14
14
|
shellArg
|
|
15
15
|
} from "./chunk-IEESWUIQ.js";
|
|
@@ -29,13 +29,13 @@ import {
|
|
|
29
29
|
} from "./chunk-D2LIT7UR.js";
|
|
30
30
|
import {
|
|
31
31
|
initialModelForLanguage
|
|
32
|
-
} from "./chunk-
|
|
33
|
-
import "./chunk-
|
|
34
|
-
import "./chunk-
|
|
32
|
+
} from "./chunk-T5HYPGST.js";
|
|
33
|
+
import "./chunk-UHVKV5IF.js";
|
|
34
|
+
import "./chunk-JPEIUGS5.js";
|
|
35
35
|
import {
|
|
36
36
|
DEFAULT_MODEL,
|
|
37
37
|
hasFFmpeg
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-XLP34AJR.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-B6BWLFAF.js";
|
|
47
47
|
import "./chunk-CDNVZEGQ.js";
|
|
48
48
|
import "./chunk-UOFAE5RF.js";
|
|
49
49
|
import {
|
|
@@ -54,25 +54,25 @@ import "./chunk-EHZESMRB.js";
|
|
|
54
54
|
import "./chunk-XT7X6QCP.js";
|
|
55
55
|
import {
|
|
56
56
|
writeNewFileSync
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-BZXW5QU7.js";
|
|
58
58
|
import {
|
|
59
59
|
listRegistryItems,
|
|
60
60
|
loadAllItems,
|
|
61
61
|
resolveItemWithDependencies
|
|
62
|
-
} from "./chunk-
|
|
63
|
-
import "./chunk-
|
|
62
|
+
} from "./chunk-6XRXUMFG.js";
|
|
63
|
+
import "./chunk-XFF4XJZO.js";
|
|
64
64
|
import {
|
|
65
65
|
installItem
|
|
66
|
-
} from "./chunk-
|
|
67
|
-
import "./chunk-
|
|
66
|
+
} from "./chunk-NCJSN6SV.js";
|
|
67
|
+
import "./chunk-MPOWSPBD.js";
|
|
68
68
|
import "./chunk-AWDFDFI3.js";
|
|
69
69
|
import "./chunk-662337AC.js";
|
|
70
70
|
import "./chunk-D3UCUI7G.js";
|
|
71
|
-
import "./chunk-
|
|
71
|
+
import "./chunk-CBG6MIT2.js";
|
|
72
72
|
import {
|
|
73
73
|
trackInitTemplate
|
|
74
|
-
} from "./chunk-
|
|
75
|
-
import "./chunk-
|
|
74
|
+
} from "./chunk-RFULFCYW.js";
|
|
75
|
+
import "./chunk-WUY74LHU.js";
|
|
76
76
|
import "./chunk-PXVQOMKL.js";
|
|
77
77
|
import "./chunk-MCDNAIFF.js";
|
|
78
78
|
import "./chunk-DMW5SSUN.js";
|
|
@@ -88,38 +88,40 @@ import {
|
|
|
88
88
|
c,
|
|
89
89
|
isColorSupported
|
|
90
90
|
} from "./chunk-JCNPHRGX.js";
|
|
91
|
-
import "./chunk-
|
|
91
|
+
import "./chunk-6LONEKJR.js";
|
|
92
92
|
import "./chunk-OSKSTJNQ.js";
|
|
93
93
|
import "./chunk-Z5J67X44.js";
|
|
94
|
+
import "./chunk-YXX6CIHL.js";
|
|
94
95
|
import "./chunk-5S7W3TUO.js";
|
|
95
96
|
import {
|
|
96
97
|
decodableAudioStream
|
|
97
98
|
} from "./chunk-D54ZDCZR.js";
|
|
98
|
-
import "./chunk-
|
|
99
|
-
import "./chunk-
|
|
99
|
+
import "./chunk-L5NPBGQB.js";
|
|
100
|
+
import "./chunk-PUTPYYE4.js";
|
|
100
101
|
import "./chunk-3GXQPCJC.js";
|
|
101
|
-
import "./chunk-
|
|
102
|
+
import "./chunk-JQKCRTVQ.js";
|
|
102
103
|
import "./chunk-FXMKHHPO.js";
|
|
103
|
-
import "./chunk-
|
|
104
|
+
import "./chunk-56T2OGYR.js";
|
|
104
105
|
import "./chunk-VC76R6W2.js";
|
|
105
|
-
import "./chunk-
|
|
106
|
+
import "./chunk-UVPLW55S.js";
|
|
106
107
|
import "./chunk-RQVDTPGD.js";
|
|
107
108
|
import "./chunk-CNAOJ7XI.js";
|
|
108
109
|
import "./chunk-X6JUUQCM.js";
|
|
109
110
|
import "./chunk-KGPLIH7B.js";
|
|
110
|
-
import "./chunk-
|
|
111
|
-
import "./chunk-
|
|
112
|
-
import "./chunk-
|
|
111
|
+
import "./chunk-SEC76O65.js";
|
|
112
|
+
import "./chunk-6LU6JICP.js";
|
|
113
|
+
import "./chunk-YQSVPHOS.js";
|
|
113
114
|
import "./chunk-6EMFSRTW.js";
|
|
114
|
-
import "./chunk-
|
|
115
|
+
import "./chunk-L27Z3PZT.js";
|
|
115
116
|
import "./chunk-IH2C53YV.js";
|
|
116
117
|
import {
|
|
117
118
|
CANVAS_DIMENSIONS,
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
normalizeResolutionFlag
|
|
122
|
-
|
|
119
|
+
matchHtmlBodyCssHeightFirst,
|
|
120
|
+
matchHtmlBodyCssWidthFirst,
|
|
121
|
+
matchViewportMetaSize,
|
|
122
|
+
normalizeResolutionFlag,
|
|
123
|
+
replaceCanvasScaffoldSize
|
|
124
|
+
} from "./chunk-BA33QNKK.js";
|
|
123
125
|
import "./chunk-FR7YBU3H.js";
|
|
124
126
|
import "./chunk-DZWAYZG2.js";
|
|
125
127
|
import "./chunk-GWTIFRF5.js";
|
|
@@ -144,12 +146,12 @@ import {
|
|
|
144
146
|
import "./chunk-QBXDU24O.js";
|
|
145
147
|
import {
|
|
146
148
|
VERSION
|
|
147
|
-
} from "./chunk-
|
|
149
|
+
} from "./chunk-TY7EHE4Q.js";
|
|
148
150
|
import "./chunk-E63BDV4Z.js";
|
|
149
151
|
import "./chunk-LW33P24U.js";
|
|
150
152
|
import "./chunk-XT6MXC7A.js";
|
|
151
153
|
import "./chunk-7KDQAD2W.js";
|
|
152
|
-
import "./chunk-
|
|
154
|
+
import "./chunk-GWSMTN55.js";
|
|
153
155
|
import "./chunk-M2WBOQ2Q.js";
|
|
154
156
|
|
|
155
157
|
// src/commands/initMedia.ts
|
|
@@ -726,16 +728,19 @@ function applyCanvasSize(destDir, { width, height }, resolution) {
|
|
|
726
728
|
changed = true;
|
|
727
729
|
}
|
|
728
730
|
}
|
|
729
|
-
|
|
730
|
-
|
|
731
|
+
const widthFirst = matchHtmlBodyCssWidthFirst(html);
|
|
732
|
+
if (widthFirst) {
|
|
733
|
+
html = replaceCanvasScaffoldSize(html, widthFirst, width, height);
|
|
731
734
|
changed = true;
|
|
732
735
|
}
|
|
733
|
-
|
|
734
|
-
|
|
736
|
+
const heightFirst = matchHtmlBodyCssHeightFirst(html);
|
|
737
|
+
if (heightFirst) {
|
|
738
|
+
html = replaceCanvasScaffoldSize(html, heightFirst, height, width);
|
|
735
739
|
changed = true;
|
|
736
740
|
}
|
|
737
|
-
|
|
738
|
-
|
|
741
|
+
const viewport = matchViewportMetaSize(html);
|
|
742
|
+
if (viewport) {
|
|
743
|
+
html = replaceCanvasScaffoldSize(html, viewport, width, height);
|
|
739
744
|
changed = true;
|
|
740
745
|
}
|
|
741
746
|
if (changed) writeFileSync(file, html, "utf-8");
|
|
@@ -767,7 +772,7 @@ async function scaffoldProject(destDir, name, templateId, media, tailwind = fals
|
|
|
767
772
|
"utf-8"
|
|
768
773
|
);
|
|
769
774
|
if (!existsSync2(resolve(destDir, "hyperframes.json"))) {
|
|
770
|
-
const { createProjectConfig, DEFAULT_PROJECT_CONFIG } = await import("./projectConfig-
|
|
775
|
+
const { createProjectConfig, DEFAULT_PROJECT_CONFIG } = await import("./projectConfig-EUH5DILC.js");
|
|
771
776
|
const { normalizeSkillSlug } = await import("./skill-ZHVLH7KX.js");
|
|
772
777
|
const skill = normalizeSkillSlug(authoringSkill);
|
|
773
778
|
createProjectConfig(
|
|
@@ -788,7 +793,7 @@ async function scaffoldProject(destDir, name, templateId, media, tailwind = fals
|
|
|
788
793
|
}
|
|
789
794
|
}
|
|
790
795
|
async function keepSkillsCurrent(destDir) {
|
|
791
|
-
const { updateSkills } = await import("./skills-
|
|
796
|
+
const { updateSkills } = await import("./skills-H4OZQ6VR.js");
|
|
792
797
|
console.log();
|
|
793
798
|
console.log(c.bold("Checking AI coding skills against GitHub..."));
|
|
794
799
|
try {
|
|
@@ -986,17 +991,17 @@ var init_default = defineCommand({
|
|
|
986
991
|
if (audioPath) {
|
|
987
992
|
sourceFilePath2 = audioPath;
|
|
988
993
|
copyIntoProjectUnlessAlreadyThere(audioPath, resolve(destDir2, basename(audioPath)));
|
|
989
|
-
const { getMediaDurationSeconds } = await import("./transcribe-
|
|
994
|
+
const { getMediaDurationSeconds } = await import("./transcribe-GFFWRWK3.js");
|
|
990
995
|
videoDuration2 = getMediaDurationSeconds(audioPath) ?? void 0;
|
|
991
996
|
console.log(`Audio: ${basename(audioPath)}`);
|
|
992
997
|
}
|
|
993
998
|
if (sourceFilePath2 && !skipTranscribe) {
|
|
994
999
|
try {
|
|
995
|
-
const { ensureWhisper, ensureModel } = await import("./manager-
|
|
1000
|
+
const { ensureWhisper, ensureModel } = await import("./manager-OS2FYJI5.js");
|
|
996
1001
|
await ensureWhisper();
|
|
997
1002
|
await ensureModel(initialTranscriptionModel);
|
|
998
1003
|
console.log("Transcribing...");
|
|
999
|
-
const { transcribe: runTranscribe } = await import("./transcribe-
|
|
1004
|
+
const { transcribe: runTranscribe } = await import("./transcribe-GFFWRWK3.js");
|
|
1000
1005
|
const result = await runTranscribe(sourceFilePath2, destDir2, {
|
|
1001
1006
|
model: modelFlag,
|
|
1002
1007
|
language: languageFlag
|
|
@@ -1146,7 +1151,7 @@ var init_default = defineCommand({
|
|
|
1146
1151
|
mkdirSync(destDir, { recursive: true });
|
|
1147
1152
|
sourceFilePath = audioPath;
|
|
1148
1153
|
copyIntoProjectUnlessAlreadyThere(audioPath, resolve(destDir, basename(audioPath)));
|
|
1149
|
-
const { getMediaDurationSeconds } = await import("./transcribe-
|
|
1154
|
+
const { getMediaDurationSeconds } = await import("./transcribe-GFFWRWK3.js");
|
|
1150
1155
|
videoDuration = getMediaDurationSeconds(audioPath) ?? void 0;
|
|
1151
1156
|
R.info(`Audio copied to ${c.accent(basename(audioPath))}`);
|
|
1152
1157
|
}
|
|
@@ -1156,7 +1161,7 @@ var init_default = defineCommand({
|
|
|
1156
1161
|
initialValue: true
|
|
1157
1162
|
});
|
|
1158
1163
|
if (!q(transcribeChoice) && transcribeChoice) {
|
|
1159
|
-
const { findWhisper } = await import("./manager-
|
|
1164
|
+
const { findWhisper } = await import("./manager-OS2FYJI5.js");
|
|
1160
1165
|
const needsInstall = findWhisper() === void 0;
|
|
1161
1166
|
if (needsInstall) {
|
|
1162
1167
|
R.info(c.dim("whisper-cpp not found \u2014 installing automatically..."));
|
|
@@ -1166,7 +1171,7 @@ var init_default = defineCommand({
|
|
|
1166
1171
|
needsInstall ? "Installing whisper-cpp (this may take a moment)..." : "Preparing transcription..."
|
|
1167
1172
|
);
|
|
1168
1173
|
try {
|
|
1169
|
-
const { ensureWhisper, ensureModel } = await import("./manager-
|
|
1174
|
+
const { ensureWhisper, ensureModel } = await import("./manager-OS2FYJI5.js");
|
|
1170
1175
|
await ensureWhisper({
|
|
1171
1176
|
onProgress: (msg) => spin2.message(msg)
|
|
1172
1177
|
});
|
|
@@ -1174,7 +1179,7 @@ var init_default = defineCommand({
|
|
|
1174
1179
|
onProgress: (msg) => spin2.message(msg)
|
|
1175
1180
|
});
|
|
1176
1181
|
spin2.message("Transcribing audio...");
|
|
1177
|
-
const { transcribe: runTranscribe } = await import("./transcribe-
|
|
1182
|
+
const { transcribe: runTranscribe } = await import("./transcribe-GFFWRWK3.js");
|
|
1178
1183
|
const transcribeResult = await runTranscribe(sourceFilePath, destDir, {
|
|
1179
1184
|
model: modelFlag,
|
|
1180
1185
|
language: languageFlag,
|
|
@@ -1252,7 +1257,7 @@ ${c.dim("Use --example blank for offline use.")}`
|
|
|
1252
1257
|
}
|
|
1253
1258
|
R.info("Opening studio preview...");
|
|
1254
1259
|
try {
|
|
1255
|
-
const previewCmd = await import("./preview-
|
|
1260
|
+
const previewCmd = await import("./preview-RV7ALGDQ.js").then((m) => m.default);
|
|
1256
1261
|
await runCommand(previewCmd, { rawArgs: [destDir] });
|
|
1257
1262
|
} catch {
|
|
1258
1263
|
}
|
|
@@ -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-BW4H55SU.js";
|
|
10
10
|
import {
|
|
11
11
|
jsonArg,
|
|
12
12
|
num,
|
|
@@ -14,39 +14,41 @@ import {
|
|
|
14
14
|
runMeasure,
|
|
15
15
|
videoAndRoi,
|
|
16
16
|
videoArg
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-4DJGUZJR.js";
|
|
18
18
|
import {
|
|
19
19
|
Fix,
|
|
20
20
|
readFrameAt
|
|
21
|
-
} from "./chunk-
|
|
22
|
-
import "./chunk-
|
|
21
|
+
} from "./chunk-MVLAPENI.js";
|
|
22
|
+
import "./chunk-B6BWLFAF.js";
|
|
23
|
+
import "./chunk-JDXALWOM.js";
|
|
23
24
|
import {
|
|
24
25
|
defineCommand
|
|
25
26
|
} from "./chunk-DL4OD7IA.js";
|
|
26
27
|
import "./chunk-S3S4TGEH.js";
|
|
27
28
|
import "./chunk-JCNPHRGX.js";
|
|
28
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-6LONEKJR.js";
|
|
29
30
|
import "./chunk-OSKSTJNQ.js";
|
|
30
31
|
import "./chunk-Z5J67X44.js";
|
|
32
|
+
import "./chunk-YXX6CIHL.js";
|
|
31
33
|
import "./chunk-5S7W3TUO.js";
|
|
32
34
|
import "./chunk-D54ZDCZR.js";
|
|
33
|
-
import "./chunk-
|
|
34
|
-
import "./chunk-
|
|
35
|
+
import "./chunk-L5NPBGQB.js";
|
|
36
|
+
import "./chunk-PUTPYYE4.js";
|
|
35
37
|
import "./chunk-3GXQPCJC.js";
|
|
36
|
-
import "./chunk-
|
|
38
|
+
import "./chunk-JQKCRTVQ.js";
|
|
37
39
|
import "./chunk-FXMKHHPO.js";
|
|
38
|
-
import "./chunk-
|
|
40
|
+
import "./chunk-56T2OGYR.js";
|
|
39
41
|
import "./chunk-VC76R6W2.js";
|
|
40
|
-
import "./chunk-
|
|
42
|
+
import "./chunk-UVPLW55S.js";
|
|
41
43
|
import "./chunk-RQVDTPGD.js";
|
|
42
44
|
import "./chunk-X6JUUQCM.js";
|
|
43
45
|
import "./chunk-KGPLIH7B.js";
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import "./chunk-
|
|
46
|
+
import "./chunk-6LU6JICP.js";
|
|
47
|
+
import "./chunk-YQSVPHOS.js";
|
|
46
48
|
import "./chunk-6EMFSRTW.js";
|
|
47
|
-
import "./chunk-
|
|
49
|
+
import "./chunk-L27Z3PZT.js";
|
|
48
50
|
import "./chunk-IH2C53YV.js";
|
|
49
|
-
import "./chunk-
|
|
51
|
+
import "./chunk-BA33QNKK.js";
|
|
50
52
|
import "./chunk-FR7YBU3H.js";
|
|
51
53
|
import "./chunk-DZWAYZG2.js";
|
|
52
54
|
import "./chunk-GWTIFRF5.js";
|
|
@@ -55,7 +57,7 @@ import "./chunk-WC4MTXGN.js";
|
|
|
55
57
|
import "./chunk-WFQJ6EJ6.js";
|
|
56
58
|
import "./chunk-4NTCQF3L.js";
|
|
57
59
|
import "./chunk-JOQR4AP6.js";
|
|
58
|
-
import "./chunk-
|
|
60
|
+
import "./chunk-YOMFN6HH.js";
|
|
59
61
|
import "./chunk-BR2JQQC5.js";
|
|
60
62
|
import "./chunk-AWD2MWWL.js";
|
|
61
63
|
import "./chunk-ISN5GRYI.js";
|
|
@@ -64,13 +66,13 @@ import "./chunk-GR2E54E6.js";
|
|
|
64
66
|
import "./chunk-66W5IWLO.js";
|
|
65
67
|
import "./chunk-CPHQTXP5.js";
|
|
66
68
|
import "./chunk-QBXDU24O.js";
|
|
67
|
-
import "./chunk-
|
|
69
|
+
import "./chunk-TY7EHE4Q.js";
|
|
68
70
|
import "./chunk-E63BDV4Z.js";
|
|
69
71
|
import "./chunk-LW33P24U.js";
|
|
70
72
|
import "./chunk-XT6MXC7A.js";
|
|
71
73
|
import "./chunk-7KDQAD2W.js";
|
|
72
|
-
import "./chunk-
|
|
73
|
-
import "./chunk-
|
|
74
|
+
import "./chunk-OZDELWQP.js";
|
|
75
|
+
import "./chunk-GWSMTN55.js";
|
|
74
76
|
import "./chunk-M2WBOQ2Q.js";
|
|
75
77
|
|
|
76
78
|
// src/measure/ink.ts
|