hyperframes 0.8.211 → 0.8.212
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-WERDY37C.js → add-JSM7YBQX.js} +14 -13
- package/dist/{agentPromptGenerator-SEAPWYY5.js → agentPromptGenerator-NTPYCKOI.js} +5 -5
- package/dist/{animatedGifPrep-LC43PROA.js → animatedGifPrep-XTK7UWXF.js} +5 -5
- package/dist/api.js +17 -17
- package/dist/{asset-IVDQNYHP.js → asset-SMY2EGPH.js} +5 -4
- package/dist/{assetCataloger-PPE7M2WM.js → assetCataloger-CVPWY34W.js} +6 -6
- package/dist/{audio-IJ22GXO6.js → audio-Y4OYLTWN.js} +20 -19
- package/dist/{auth-FZMDHX2H.js → auth-MDEHZR7R.js} +4 -4
- package/dist/{autoUpdate-EO6SFALF.js → autoUpdate-3FL6EDPM.js} +4 -2
- package/dist/{backgroundChecks-YW5VIAYF.js → backgroundChecks-A6TG2BT3.js} +5 -3
- package/dist/backgroundChecksWorker.js +5 -3
- package/dist/{batchRender-OOXYNZOT.js → batchRender-K2PBRRTQ.js} +8 -7
- package/dist/{beats-X7GRQA4J.js → beats-RA6XK6J5.js} +13 -12
- package/dist/{benchmark-JGGBMRZO.js → benchmark-EHU5O4PP.js} +19 -17
- package/dist/{browser-FQ5JPTME.js → browser-7RUIZT2H.js} +12 -10
- package/dist/{bundleWithLocalizedFonts-XA73ZJ4S.js → bundleWithLocalizedFonts-O2U2FYY2.js} +2 -2
- package/dist/{capture-GUVCA5JQ.js → capture-77KDKKNK.js} +13 -12
- package/dist/{capture-KKVB3MKM.js → capture-JGYBORAG.js} +12 -9
- package/dist/{captureCompositionFrame-LNKWWCXE.js → captureCompositionFrame-DZ7EHPZV.js} +13 -12
- package/dist/{catalog-LKJEMEOC.js → catalog-CUP3SYAI.js} +18 -17
- package/dist/{catch-up-FA6KWX4S.js → catch-up-ZGUCWH5Q.js} +8 -7
- package/dist/{check-6GIDKL6S.js → check-ITGFVBT6.js} +41 -40
- package/dist/{checkAudio-H3AUFC4M.js → checkAudio-CTLPD6YT.js} +8 -8
- package/dist/{checkBrowser-YWWF63S6.js → checkBrowser-G2N4JI6N.js} +34 -33
- package/dist/{chunk-Q52ISCT4.js → chunk-25MKZTRT.js} +1 -1
- package/dist/{chunk-KSNIYQRB.js → chunk-26AQTUU4.js} +5 -7
- package/dist/{chunk-3LACB6HG.js → chunk-2YDIEZSF.js} +3 -3
- package/dist/{chunk-QVHC77IF.js → chunk-3JQ2YOKL.js} +2 -2
- package/dist/{chunk-FI7SSV73.js → chunk-3YBXKWAF.js} +1 -1
- package/dist/{chunk-5KOZRJR7.js → chunk-45JN2GIZ.js} +1 -1
- package/dist/{chunk-MMJAHBH2.js → chunk-5SKC4G26.js} +4 -1
- package/dist/{chunk-ZNSKOXFW.js → chunk-5TQ4AEPF.js} +3 -3
- package/dist/{chunk-J2JG4XGP.js → chunk-5ZBMHUY2.js} +4 -0
- package/dist/{chunk-KZBBY72Q.js → chunk-64XQS7AP.js} +1 -1
- package/dist/{chunk-ABBVDJMG.js → chunk-6SG3RRAQ.js} +2 -2
- package/dist/{chunk-JMD5HDPB.js → chunk-6ZLDIMPL.js} +2 -2
- package/dist/{chunk-CJ5QZRY7.js → chunk-7KBS6ZLB.js} +2 -2
- package/dist/{chunk-OOA6C4AG.js → chunk-7Q5TBUC2.js} +2 -2
- package/dist/{chunk-FBN5AQJL.js → chunk-7TWX4Y7I.js} +3 -3
- package/dist/{chunk-BGC5S3OZ.js → chunk-7W7ANGR4.js} +48 -35
- package/dist/{chunk-DJ3H6EW3.js → chunk-7ZAVTGGT.js} +10 -9
- package/dist/{chunk-3NIESDKN.js → chunk-A2WPZE2R.js} +1 -1
- package/dist/{chunk-CNU65QE2.js → chunk-AJAXP4HF.js} +9 -5
- package/dist/{chunk-2QAR7ZNY.js → chunk-BLVHVXRU.js} +2 -2
- package/dist/{chunk-472C35EW.js → chunk-BYRXSKIY.js} +1 -1
- package/dist/{chunk-5AKWJHRJ.js → chunk-CODPTVC2.js} +1 -1
- package/dist/{chunk-LALLQUSK.js → chunk-DP5LF7GF.js} +2 -0
- package/dist/{chunk-AIY2Y5UY.js → chunk-DS7ANFBV.js} +5 -5
- package/dist/{chunk-6J2G57BB.js → chunk-DVVTBVKA.js} +7 -7
- package/dist/{chunk-CGAUUUDL.js → chunk-DXPC7Z6L.js} +3 -3
- package/dist/{chunk-3R5MYOJN.js → chunk-EC77ZBCP.js} +2 -2
- package/dist/{chunk-VWG7OQKU.js → chunk-EQGKUPBJ.js} +4 -1
- package/dist/{chunk-CZCRSS3U.js → chunk-F5XADOGC.js} +1 -1
- package/dist/chunk-FJ646TIT.js +201 -0
- package/dist/{chunk-77KGX4A3.js → chunk-FKFGGAXN.js} +50 -8
- package/dist/{chunk-PICG2XRD.js → chunk-FW6CYA5D.js} +2 -2
- package/dist/{chunk-VUEWZXZG.js → chunk-G6HUXX3L.js} +1 -1
- package/dist/{chunk-5YHQBCWH.js → chunk-G6OKQMJI.js} +12 -2
- package/dist/{chunk-DPYI2HRJ.js → chunk-GQ724553.js} +5 -5
- package/dist/{chunk-SXJJTFV4.js → chunk-GVE6I5EL.js} +4 -4
- package/dist/{chunk-NEQIJUV2.js → chunk-HXZNCXQX.js} +1 -1
- package/dist/{chunk-LAR5VTCN.js → chunk-J7GPSY5N.js} +4 -4
- package/dist/{chunk-4JWKC3GH.js → chunk-JZNQQI5M.js} +5 -5
- package/dist/{chunk-IEVU4FXB.js → chunk-KZZWYIEB.js} +3 -3
- package/dist/{chunk-AHPGAESX.js → chunk-L72RQ45A.js} +1 -1
- package/dist/{chunk-4D46TX6Q.js → chunk-MJCIAZSK.js} +1 -1
- package/dist/{chunk-5LITFBMY.js → chunk-MX2GMAAW.js} +9 -9
- package/dist/{chunk-B2B4MN3R.js → chunk-N3J2MLXC.js} +2 -2
- package/dist/{chunk-JZVUSRZ5.js → chunk-N7XJHZ35.js} +1 -1
- package/dist/{chunk-RQNFW6YC.js → chunk-NGSENR4J.js} +8 -3
- package/dist/{chunk-VGKQFZCC.js → chunk-NXDKBFEO.js} +14 -14
- package/dist/{chunk-UI7X4L4M.js → chunk-OL5E4Y4L.js} +2074 -2060
- package/dist/{chunk-XNFDDVJS.js → chunk-ONMTNYGR.js} +4 -1
- package/dist/{chunk-PKWZG642.js → chunk-ORJY6Z6G.js} +3 -3
- package/dist/{chunk-YWPCMOX4.js → chunk-OSCWTA2O.js} +5 -5
- package/dist/{chunk-SJK64HHG.js → chunk-OWV36OJP.js} +5 -2
- package/dist/{chunk-DAXKGMJL.js → chunk-P2VGMOX7.js} +5 -5
- package/dist/{chunk-OE5EHGDG.js → chunk-PW7FCVHR.js} +1 -1
- package/dist/{chunk-K43XLAQV.js → chunk-Q55JNFDV.js} +3 -3
- package/dist/{chunk-VBC3DQFS.js → chunk-QUXWS5UG.js} +1 -1
- package/dist/{chunk-DMIFCIG6.js → chunk-R5B6GXQM.js} +1 -1
- package/dist/{chunk-5MCR5DA5.js → chunk-RDZKBIEB.js} +5 -5
- package/dist/{chunk-B4KGJHTE.js → chunk-RJILJ4OR.js} +2 -2
- package/dist/{chunk-6EN2LWOM.js → chunk-RQC4PHO3.js} +1 -1
- package/dist/{chunk-ORXLO64X.js → chunk-S2HWGG5O.js} +1 -1
- package/dist/chunk-SJGE5I5F.js +131 -0
- package/dist/{chunk-ZPXXWUQ3.js → chunk-SPDSRBIN.js} +30 -4
- package/dist/{chunk-WNDTMINP.js → chunk-SXTWQ7CH.js} +2 -2
- package/dist/{chunk-22OGII5H.js → chunk-T7KNW7PE.js} +1 -1
- package/dist/{chunk-2RQZQJHV.js → chunk-TPO32Z65.js} +1 -1
- package/dist/{chunk-66KMYUNO.js → chunk-UBUKKTNW.js} +2 -2
- package/dist/{chunk-T2L2GJ4C.js → chunk-UE4CXHMF.js} +7 -7
- package/dist/{chunk-K3LLHG6I.js → chunk-UULZKCBI.js} +1 -1
- package/dist/{chunk-DDRCX7P2.js → chunk-UXH6E5HC.js} +2 -2
- package/dist/{chunk-AQMGYRX6.js → chunk-V6OSE6VT.js} +1 -1
- package/dist/{chunk-67JTGRNM.js → chunk-VKD23SIO.js} +1 -1
- package/dist/{chunk-3JYKWNFR.js → chunk-VVDHSRKD.js} +1 -1
- package/dist/{chunk-KF6I5WA7.js → chunk-W2VJTKIW.js} +15 -18
- package/dist/{chunk-FIC3E7IM.js → chunk-W55BW7KA.js} +9 -9
- package/dist/{chunk-FWKZ3O52.js → chunk-W5OBRMZ6.js} +1 -1
- package/dist/{chunk-YPNBEBQ6.js → chunk-WVIH5BBZ.js} +25 -18
- package/dist/{chunk-Z2UZAY2Q.js → chunk-XEWMJWNW.js} +2 -2
- package/dist/{chunk-DWIMUPFK.js → chunk-XGXTZNES.js} +2 -2
- package/dist/{chunk-GSXA4YLV.js → chunk-Y3U7ECBH.js} +1 -1
- package/dist/{chunk-KDDO3UYI.js → chunk-YACECUHX.js} +3 -3
- package/dist/{chunk-3WL7WU6K.js → chunk-YVT5IU6J.js} +19 -20
- package/dist/{chunk-4EO7DNRJ.js → chunk-YX5ELTKV.js} +2 -2
- package/dist/{chunk-FVY2XRX4.js → chunk-ZCYSQ3NQ.js} +2 -2
- package/dist/{clean-SVEOBRPM.js → clean-FBZ7GHRY.js} +21 -20
- package/dist/cli.js +143 -77
- package/dist/{cloud-ADFJGIEH.js → cloud-VYSWJ7UO.js} +4 -4
- package/dist/{cloudrun-BNY7Q5RK.js → cloudrun-U6LI7KLV.js} +23 -20
- package/dist/{compare-QC3T22KV.js → compare-YR7BMEHJ.js} +44 -45
- package/dist/{compiler-4ITKK4XI.js → compiler-6YCAUK7Z.js} +2 -2
- package/dist/{component-CNZCB3RY.js → component-HVSM6FJV.js} +6 -5
- package/dist/{compositions-UO32IP6Z.js → compositions-QTFL2VNL.js} +13 -12
- package/dist/{delete-RWTOSI24.js → delete-2FHCQ72T.js} +13 -11
- package/dist/{deploy-OKWS53NP.js → deploy-6S45QWG6.js} +5 -5
- package/dist/{destroy-4RL5VOXQ.js → destroy-BQ5R7LUF.js} +3 -3
- package/dist/{dist-AEE3QTRB.js → dist-B4KLCLZ5.js} +2 -2
- package/dist/{docs-UMIA66EZ.js → docs-6EM6FDNI.js} +5 -4
- package/dist/{doctor-SIF72ESZ.js → doctor-4MRS6RED.js} +11 -9
- package/dist/{events-S3VUTFEG.js → events-4VBBY7PP.js} +5 -3
- package/dist/{events-34PIVLZQ.js → events-FN45HVPM.js} +6 -5
- package/dist/{feedback-VS4LRXHW.js → feedback-T67P2CDA.js} +20 -19
- package/dist/{ffmpeg-YVQOKNV6.js → ffmpeg-ED7ZK6XH.js} +5 -5
- package/dist/{figma-AF4JKDBA.js → figma-UXAWKPOY.js} +3 -3
- package/dist/fontLocalizeCli.js +9 -9
- package/dist/{get-UQGCS6Q4.js → get-EFH3PPJA.js} +8 -7
- package/dist/{gpuPolicy-Q4B3D6PW.js → gpuPolicy-ZADQMXQT.js} +5 -5
- package/dist/{grade-compare-G34673XC.js → grade-compare-425BFHSF.js} +46 -44
- package/dist/{heifImagePrep-XD4DGOUS.js → heifImagePrep-ZJM7N2XY.js} +6 -6
- package/dist/{help-3QSD26IC.js → help-23PPB2BD.js} +11 -7
- package/dist/{history-6DC24UCF.js → history-CHJV33M5.js} +15 -12
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +63 -63
- package/dist/hyperframes-player.global.js +1 -1
- package/dist/{info-6JUHWWJK.js → info-36YPISVA.js} +11 -10
- package/dist/{init-2DPX6U3J.js → init-U6EE2EIU.js} +37 -36
- package/dist/{inspect-Z55YUSXC.js → inspect-NI2RMUFR.js} +32 -31
- package/dist/{installer-XVKYJU7S.js → installer-K3HIZ5CF.js} +4 -4
- package/dist/{keyframes-YHF4AQIL.js → keyframes-I6T2IT6I.js} +10 -9
- package/dist/{lambda-JITTS37E.js → lambda-WL64Z2F3.js} +31 -29
- package/dist/{layout-V5NYJXIX.js → layout-R2YZ4N6P.js} +32 -31
- package/dist/{lint-V4WMO7YL.js → lint-IAAG6Z65.js} +17 -14
- package/dist/{list-W7UCIYKA.js → list-3O6743DJ.js} +11 -10
- package/dist/{live-LAHBXVK2.js → live-WWPFZQ74.js} +33 -7
- package/dist/{localPage-BLQFFIDF.js → localPage-L5FRBCNP.js} +5 -5
- package/dist/{login-IX3MOREU.js → login-27TRFTYB.js} +11 -11
- package/dist/{logout-46NLNY2K.js → logout-C6P6ERZ3.js} +5 -5
- package/dist/{manager-WJOWZNHM.js → manager-D6TE4ENP.js} +7 -7
- package/dist/{media-treatment-XBO6EXL4.js → media-treatment-E3YLZVXC.js} +43 -33
- package/dist/{media-use-3RFKY7XJ.js → media-use-ZRHFRO46.js} +1 -1
- package/dist/{models-P3NSHDQS.js → models-2Q3TGNH5.js} +26 -19
- package/dist/{motionShot-D4QMLTQP.js → motionShot-XYW2HMVI.js} +16 -15
- package/dist/{normalize-audio-Q4VUR3QJ.js → normalize-audio-D5WNUNDM.js} +30 -19
- package/dist/{open-LGKX534P.js → open-3KO7UUPC.js} +17 -16
- package/dist/{parakeetRunner-FAOQMPS6.js → parakeetRunner-WX6L6MW5.js} +11 -11
- package/dist/{pipeline-2YONKZYC.js → pipeline-WYIO4KGN.js} +10 -10
- package/dist/{play-PJOUIY55.js → play-ZM3ZUJSZ.js} +31 -33
- package/dist/{policies-UPNRQ7IW.js → policies-J5BWAZHM.js} +11 -10
- package/dist/{preflight-3PPM7QBU.js → preflight-7OMCIXNM.js} +6 -6
- package/dist/{present-323D6OE2.js → present-E2PLH2GJ.js} +27 -29
- package/dist/{preview-E42QP2KX.js → preview-TVRM75FN.js} +24 -23
- package/dist/{producer-MTMNLJSC.js → producer-M5F6KZEF.js} +1 -1
- package/dist/{progress-LMQ2DXM4.js → progress-X3QFO3FE.js} +4 -4
- package/dist/{projectConfig-5QRVB5KY.js → projectConfig-VFKGY3XE.js} +6 -6
- package/dist/{prompts-P3IT5H36.js → prompts-VAO7RDKX.js} +2 -2
- package/dist/{publication-AUZLFOG5.js → publication-AF33R7LF.js} +2 -2
- package/dist/{publish-H5P7UHRV.js → publish-Z7HGDQ5R.js} +17 -17
- package/dist/{refresh-4XRQS3N6.js → refresh-IYRGLHG5.js} +5 -5
- package/dist/{remove-background-T2RV476S.js → remove-background-PN3KCBT4.js} +21 -17
- package/dist/{render-4XEB3XWI.js → render-I3HBIJX3.js} +59 -57
- package/dist/{render-GJH7446R.js → render-IZNPEXMU.js} +11 -10
- package/dist/{render-3FRGIWES.js → render-SEODWRRR.js} +27 -26
- package/dist/{render-batch-77X5453X.js → render-batch-MQSORY55.js} +12 -11
- package/dist/{resolver-DIUNK525.js → resolver-HXE4F2G4.js} +4 -4
- package/dist/{sam-FHJ7IL7T.js → sam-QA7JT7IM.js} +2 -1
- package/dist/{sherpa-SUS3YSEP.js → sherpa-NPT6S3RP.js} +10 -10
- package/dist/{sites-V42IFVTK.js → sites-MTLVMYJ6.js} +2 -2
- package/dist/{skills-YCGSIOCE.js → skills-P3BI55YP.js} +17 -13
- package/dist/{skillsUpdateCheck-VCQIZGOL.js → skillsUpdateCheck-43Q4ZHWN.js} +5 -3
- package/dist/{snapshot-H6R5PWNS.js → snapshot-YLT64YQS.js} +71 -53
- package/dist/{src-ED5VCIRC.js → src-7S7K4QUN.js} +8 -8
- package/dist/{src-HHDLJV4L.js → src-OHJ7USRX.js} +6 -4
- package/dist/{state-D5SYQFCB.js → state-6QHNNHDA.js} +2 -2
- package/dist/{staticProjectServer-VY7QG5XH.js → staticProjectServer-RP3MW2EW.js} +17 -17
- package/dist/{status-GEZNVPII.js → status-SLILCDBZ.js} +12 -7
- package/dist/studio/assets/{hyperframes-player-CzrqgMUX.js → hyperframes-player-DHfuW7Lt.js} +1 -1
- package/dist/studio/assets/{index-k4nVfS2D.js → index-CWgIsKzV.js} +4 -4
- package/dist/studio/assets/{index-B3SPHPi1.js → index-CkjUY33q.js} +1 -1
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-TR5RPX57.js → studio-api-BZPZCJL6.js} +9 -9
- package/dist/{studioServer-4SZLLQOV.js → studioServer-QLRIXNYM.js} +50 -49
- package/dist/{synthesize-QALK5SQR.js → synthesize-FQML2LN2.js} +2 -2
- package/dist/{telemetry-KGY7G3UR.js → telemetry-NTO4FJFN.js} +5 -4
- package/dist/{telemetry-7HUKOQ6X.js → telemetry-QOBPRUWF.js} +6 -5
- package/dist/{timeline-CGIKWCQI.js → timeline-OLQFVWVU.js} +30 -26
- package/dist/{tokens-AZALDJEK.js → tokens-BAHLVGEC.js} +5 -4
- package/dist/{transcribe-CTF5EIXJ.js → transcribe-3NHUWW4J.js} +27 -24
- package/dist/{transcribe-V6K5547L.js → transcribe-HR6BFDUR.js} +9 -9
- package/dist/{tts-C2HBLFKK.js → tts-K5HRN6NQ.js} +17 -13
- package/dist/{updateCheck-5I563YLB.js → updateCheck-BGHPCA7J.js} +4 -2
- package/dist/{upgrade-GRPVQE7Z.js → upgrade-NFI6JOME.js} +7 -6
- package/dist/{urlDownloader-EP6Q4WES.js → urlDownloader-P35K74RS.js} +4 -4
- package/dist/{validate-TVCDSQS3.js → validate-Q57ZCI4Q.js} +26 -25
- package/dist/{video-CFEIRKAE.js → video-OO2M2AKD.js} +9 -9
- package/dist/warmCheck.js +43 -42
- package/package.json +1 -1
- package/dist/chunk-WQ6ZXHFQ.js +0 -133
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var HyperframesPlayer=(()=>{var Be=Object.defineProperty;var oi=Object.getOwnPropertyDescriptor;var ai=Object.getOwnPropertyNames;var si=Object.prototype.hasOwnProperty;var li=(n,e)=>{for(var t in e)Be(n,t,{get:e[t],enumerable:!0})},ui=(n,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of ai(e))!si.call(n,r)&&r!==t&&Be(n,r,{get:()=>e[r],enumerable:!(i=oi(e,r))||i.enumerable});return n};var di=n=>ui(Be({},"__esModule",{value:!0}),n);var no={};li(no,{HyperframesPlayer:()=>$e,SPEED_PRESETS:()=>lt,formatSpeed:()=>W,formatTime:()=>De});var Dt=n=>n!==null&&Number.isFinite(n)&&n>0;function Se(n){let e=n.clipEndsSeconds.filter(i=>i===null).length;if(Dt(n.authoredDurationSeconds))return{seconds:n.authoredDurationSeconds,source:"authored",pendingClips:e};let t=n.clipEndsSeconds.filter(Dt);return t.length>0?{seconds:Math.max(...t),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 ci="http://www.w3.org/1999/xhtml";function Pt(n){return n!=null&&n.nodeType===1}function Ge(n){return Pt(n)&&n.namespaceURI===ci}function ze(n,e){return Ge(n)&&n.localName===e}function mi(n){return ze(n,"video")}function pi(n){return ze(n,"audio")}function P(n){return mi(n)||pi(n)}function Lt(n){return ze(n,"img")}function Ae(n){if(n==null||n.trim()==="")return null;let e=Number.parseInt(n,10);return Number.isFinite(e)&&e>0?e:null}function Q(n=document){let e=n.querySelector('[data-composition-id][data-root="true"]');return Ge(e)?e:n.querySelector("[data-composition-id]")}var G=Object.freeze({start:"data-start",duration:"data-duration",trackIndex:"data-track-index",derivedEnd:"data-end",legacyTrack:"data-layer"}),lo=Object.freeze([G.start,G.duration,G.trackIndex]),uo=Object.freeze([G.derivedEnd]),co=Object.freeze([G.derivedEnd,G.legacyTrack]);function je(n){if(n==null||n.trim()==="")return null;let e=Number(n);return Number.isFinite(e)?e:null}var Nt=n=>{let e=je(n);return e!==null&&e>=0?e:null};function Ee(n){return Nt(n("data-playback-start"))??Nt(n("data-media-start"))??0}var ee=.1,te=10;function qe(n){return Number.isFinite(n)&&n>0?Math.max(ee,Math.min(te,n)):1}function Ot(n,e=1){let t=Number.parseFloat(n("data-playback-rate")??"");return qe(Number.isFinite(t)&&t>0?t:e)}function Ye(n){let e=je(n("data-duration"));return e!==null&&e>0?e:null}function Ft(n,e){let t=Ye(n);if(t!==null)return t;let i=je(n("data-end"));return i!==null?i-e:null}var hi=3;function Xe(n,e,t){return Number.isFinite(n)?Math.max(0,n-e)/qe(t):null}function Ke(n){let{tag:e,authoredDurationSeconds:t,sourceDurationSeconds:i,mediaStartSeconds:r,playbackRate:o}=n;if(t!==null&&t>0)return{seconds:t,source:"authored"};if(e==="img")return{seconds:hi,source:"default"};if(i===null)return{seconds:null,source:"pending",reason:"source duration not yet probed"};let a=Xe(i,r,o);return a===null?{seconds:null,source:"pending",reason:"source reported a non-finite duration"}:{seconds:a,source:"media"}}var fi="data-fx-chain",po=fi.slice(5);var ne=(n="frequency",e="Frequency",t=1e3,i=20,r=2e4)=>({kind:"number",key:n,label:e,unit:"Hz",min:i,max:r,step:1,default:t,scale:"log",automatable:!0}),Ze=(n=.707,e="Bandwidth: higher is narrower.")=>({kind:"number",key:"q",label:"Q",unit:"",min:.1,max:20,step:.01,default:n,scale:"log",automatable:!0,hint:e}),Te=(n=-40,e=40,t=0)=>({kind:"number",key:"gain",label:"Gain",unit:"dB",min:n,max:e,step:.1,default:t,automatable:!0}),Ut={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."},Ht=[{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:[ne("frequency","Frequency",1e3),Te(-40,40,0),Ze(1)],web:"biquad-peaking"},{id:"lowshelf",label:"Low Shelf",group:"filter",description:"Lift or drop everything below the corner frequency.",params:[ne("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:[ne("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:[ne("frequency","Cutoff",300,20,2e4),Ze(.707),Ut],web:"biquad-highpass"},{id:"lowpass",label:"Low-pass",group:"filter",description:"Remove high frequencies, which darkens or muffles a track.",params:[ne("frequency","Cutoff",8e3,100,2e4),Ze(.707),Ut],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"}],ho=new Map(Ht.map(n=>[n.id,n]));var fo=Ht.map(n=>n.id);function bi(n){return 10**(n/20)}var Vt=bi(12);var Wt="data-automation",xo=Wt.slice(5),Je=1,gi=512,L=class extends Error{constructor(e){super(e),this.name="AudioAutomationError"}},Re="volume",xe="rate";function $t(n){if(n===Re)return{kind:"volume"};if(n===xe)return{kind:"rate"};let e=n.split(".");if(e.length===3&&e[0]==="fx"&&e[1]===_i){let r=e[2];return r?{kind:"preset",presetId:r}:null}if(e.length!==3||e[0]!=="fx")return null;let[,t,i]=e;return!t||!i?null:{kind:"fx",nodeId:t,param:i}}var _i="preset";var yi={min:0,max:Vt,step:.01,unit:"",label:"Volume",scale:"linear",default:1};var vi={min:ee,max:te,step:.05,unit:"x",label:"Speed",scale:"log",default:1};function ie(n){if(typeof n=="number")return Number.isFinite(n)?n:null;if(typeof n=="string"&&n.trim()!==""){let e=Number(n);return Number.isFinite(e)?e:null}return null}function Si(n){let e=ie(n);return e===null||e===0?0:Math.min(1,Math.max(-1,e))}function Bt(n,e){let t=ie(n),i=ie(e);if(t===null||i===null)return null;let r=s=>Math.min(.999,Math.max(.001,s)),o=r(t),a=r(i);return Math.abs(o-a)<1e-6?null:{x:o,y:a}}function Ai(n){let e=Si(n?.curve),t=Bt(n?.viaX,n?.viaY);return{...e?{curve:e}:{},...t?{viaX:t.x,viaY:t.y}:{}}}function Ei(n,e){let t=ie(n?.t),i=ie(n?.v);if(t===null||i===null)return null;let r=e?Math.min(e.max,Math.max(e.min,i)):i;return{t:Math.max(0,t),v:r,...Ai(n)}}function Ti(n,e){let t=n.map(r=>Ei(r,e)).filter(r=>r!==null).sort((r,o)=>r.t-o.t),i=[];for(let r of t)i.length>0&&i[i.length-1].t===r.t?i[i.length-1]=r:i.push(r);return i.slice(0,gi)}function Ri(n){let e=[];for(let t of n.lanes){if(!$t(t.target))continue;let i=t.target===Re?yi:t.target===xe?vi:null,r=Ti(t.points??[],i);r.length>0&&e.push({target:t.target,points:r})}return{version:Je,lanes:e}}function Gt(n){let e;try{e=JSON.parse(n)}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 t=e;if(t.version!==Je)throw new L(`Unsupported automation version: ${String(t.version)}`);if(!Array.isArray(t.lanes))throw new L("Automation is missing a `lanes` array.");let i=t.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"||!$t(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 Ri({version:Je,lanes:i})}function xi(n,e){return e?Math.pow(n,Math.pow(2,2*e)):n}function wi(n,e){let t=n-.5,i=e-.5,r=.999,o=1e6,a=t>0?t/(r-n):t<0?-t/(n-(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:n+t/l,cy:e+i/l,w:l}}function ki(n,e,t){let{cx:i,cy:r,w:o}=wi(e,t),a=2-2*o,s=n*a-1+2*o*i,l=-n*a-2*o*i,d=Mi(s,l,n),m=1-d,f=m*m+2*o*d*m+d*d;return f>0?(2*o*r*d*m+d*d)/f:n}function Mi(n,e,t){if(Math.abs(n)<1e-12)return Math.abs(e)<1e-12?t:-t/e;let i=Math.sqrt(Math.max(0,e*e-4*n*t)),r=(-e+i)/(2*n),o=(-e-i)/(2*n),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)):t}function Ci(n,e){let t=Bt(e.viaX,e.viaY);return t?ki(Math.min(1,Math.max(0,n)),t.x,t.y):xi(n,e.curve)}function Ii(n,e,t,i){return i==="log"&&n>0&&e>0?Math.exp(Math.log(n)+(Math.log(e)-Math.log(n))*t):n+(e-n)*t}function we(n,e,t="linear"){let i=n.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 f=a+s>>1;i[f].t<=e?a=f:s=f}let l=i[a],d=i[s],m=d.t-l.t;return m<=0?d.v:Ii(l.v,d.v,Ci((e-l.t)/m,l),t)}var ke=new Map,Di=64;function zt(n,e=Re){let t=`${e}\0${n}`,i=ke.get(t);if(i!==void 0)return i;let r=null;try{r=Gt(n).lanes.find(o=>o.target===e)??null}catch{r=null}return ke.size>Di&&ke.clear(),ke.set(t,r),r}var jt=48,qt=new WeakMap;function Pi(n){let e=n.points,t=e[0].v,i=e[e.length-1].v,r=[0],o=[0],a=l=>{let d=r[r.length-1];if(l<=d)return;let m=we(n,d,"log");r.push(l),o.push(o[o.length-1]+(m+we(n,l,"log"))/2*(l-d))},s=Math.max(0,e[0].t);a(s);for(let l=1;l<e.length;l+=1){let d=e[l-1].t,m=e[l].t;if(!(m<=0))for(let f=1;f<=jt;f+=1)a(Math.max(d,0)+(m-d)*f/jt)}return{ts:Float64Array.from(r),ss:Float64Array.from(o),firstRate:t,lastRate:i}}function Li(n){let e=qt.get(n);return e||(e=Pi(n),qt.set(n,e)),e}function Ni(n){return typeof n!="number"&&n.points.length>0}function Oi(n,e,t){let i=0,r=n.length-1;for(;r-i>1;){let o=i+r>>1;n[o]<=t?i=o:r=o}return e[i]+(e[r]-e[i])*(t-n[i])/(n[r]-n[i])}function Yt(n,e){if(typeof n=="number")return e/n;if(!Ni(n))return e;let{ts:t,ss:i,firstRate:r,lastRate:o}=Li(n),a=t.length-1;return e<=0?e/r:e>=i[a]?t[a]+(e-i[a])/o:Oi(i,t,e)}function Fi(n){return n?zt(n,xe):null}function Xt(n,e){return Fi(n)??e}var Po=[{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"}),No=Object.freeze([y.start,y.duration,y.trackIndex]),Oo=Object.freeze([y.derivedEnd]),Fo=Object.freeze([y.derivedEnd,y.legacyTrack]);function N(n){if(n==null||n.trim()==="")return null;let e=Number(n);return Number.isFinite(e)?e:null}var Jt=/^[A-Za-z0-9_.:-]+$/;function Qt(n,e){let t=n.charCodeAt(e);return t>=48&&t<=57}function Kt(n,e){let t=e;for(;t>=0&&Qt(n,t);)t--;return t}function Ui(n,e){let t=e;for(;t>=0&&(n[t]??"").trim()==="";)t--;return t}function Hi(n){let e=n.length-1;if(!Qt(n,e))return null;let t=Kt(n,e);return n[t]==="."&&(t=Kt(n,t-1)),t+1}function Vi(n){let e=Hi(n);if(e==null)return null;let t=Ui(n,e-1),i=n[t];if(i!=="+"&&i!=="-")return null;let r=n.slice(0,t).trim();if(!Jt.test(r))return null;let o=Number(n.slice(e));return Number.isFinite(o)?{refId:r,operator:i,magnitude:o}:null}function re(n){let e=(n??"").trim();if(!e)return null;let t=N(e);if(t!=null)return{kind:"absolute",value:t};if(Jt.test(e))return{kind:"reference",refId:e,offset:0};let i=Vi(e);return i?{kind:"reference",refId:i.refId,offset:i.operator==="-"?-i.magnitude:i.magnitude}:null}function x(n,e,t,i){n.push({code:e,attribute:t,value:i})}function Wi(n,e,t,i){if(e==null||e.trim()==="")return t.defaultStart===void 0?0:t.defaultStart;if(!n)return x(i,"invalid-start",y.start,e),null;if(n.kind==="absolute")return Math.max(0,n.value);let r=t.resolveReferenceEnd?.(n.refId);return r==null||!Number.isFinite(r)?(x(i,"unresolved-start-reference",y.start,e),null):Math.max(0,r+n.offset)}var $i=1e-9;function Bi(n,e){return Math.abs(n-e)<=$i}function Gi(n,e,t){let i=N(n);if(i==null){x(t,"deprecated-end",y.derivedEnd,n),x(t,"invalid-end",y.derivedEnd,n);return}if(e==null){x(t,"deprecated-end",y.derivedEnd,n);return}Bi(i,e)||(x(t,"deprecated-end",y.derivedEnd,n),x(t,"conflicting-end",y.derivedEnd,n))}function zi(n,e,t){let i=N(n);return i==null||i<0?(x(t,"invalid-duration",y.duration,n),{duration:null,end:null,durationSource:"invalid"}):{duration:i,end:e==null?null:e+i,durationSource:"duration"}}function ji(n,e,t){x(t,"deprecated-end",y.derivedEnd,n);let i=N(n);return i==null?(x(t,"invalid-end",y.derivedEnd,n),{duration:null,end:null,durationSource:"invalid"}):e==null?{duration:null,end:i,durationSource:"legacy-end"}:i<e?(x(t,"end-before-start",y.derivedEnd,n),{duration:null,end:null,durationSource:"invalid"}):{duration:i-e,end:i,durationSource:"legacy-end"}}function qi(n,e,t){let i=n.getAttribute(y.duration),r=n.getAttribute(y.derivedEnd);if(i==null)return r==null?{duration:null,end:null,durationSource:"missing"}:ji(r,e,t);let o=zi(i,e,t);return r!=null&&Gi(r,o.end,t),o}function Zt(n,e,t,i){let r=N(n);return r==null||!Number.isInteger(r)?(x(i,"invalid-track-index",e,n),{trackIndex:0,trackSource:"invalid"}):{trackIndex:r,trackSource:t}}function Yi(n,e){let t=n.getAttribute(y.trackIndex),i=n.getAttribute(y.legacyTrack);if(t==null&&i==null)return{trackIndex:0,trackSource:"default"};if(t==null&&i!=null)return x(e,"deprecated-layer",y.legacyTrack,i),Zt(i,y.legacyTrack,"legacy-layer",e);let r=Zt(t??"",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 Qe(n,e={}){let t=[],i=n.getAttribute(y.start),r=re(i),o=Wi(r,i,e,t),a=qi(n,o,t),s=Yi(n,t);return{startExpression:r,start:o,...a,...s,diagnostics:t}}function V(n){return N(n)}function et(n){return Ot(e=>n.getAttribute(e),P(n)?n.defaultPlaybackRate:1)}function Xi(n){return Xt(n.getAttribute("data-automation"),et(n))}function tt(n){return Ee(e=>n.getAttribute(e))}function oe(n,e){return Ki(e,tt(n),Xi(n))}function nt(n){let e=Ke({tag:"video",authoredDurationSeconds:Ye(t=>n.getAttribute(t)),sourceDurationSeconds:Number.isFinite(n.duration)?n.duration:null,mediaStartSeconds:tt(n),playbackRate:et(n)});return e.source==="media"?oe(n,n.duration):e.seconds}function Me(n,e=0){return!Lt(n)||!n.hasAttribute("data-start")&&!n.hasAttribute("data-track-index")?null:Ke({tag:"img",authoredDurationSeconds:Ft(t=>n.getAttribute(t),e),sourceDurationSeconds:null,mediaStartSeconds:0,playbackRate:1}).seconds}function Ki(n,e,t){return typeof t=="number"?Xe(n,e,t):Number.isFinite(n)?Yt(t,Math.max(0,n-e)):null}function en(){return globalThis}function it(n,e){if(typeof window>"u")return;let t=en(),i=t.__hf?.onSwallowed;if(i)try{i({label:n,error:e})}catch(r){}(t.__hfDebug||t.__HYPERFRAMES_DEBUG)&&console.debug(`[hyperframes] ${n} swallowed:`,e)}var Zi=n=>n.paused?.()===!0?(n.startTime?.()??0)+(n.totalDuration?.()??0)/Math.abs(n.timeScale?.()||1):0;function ae(n){try{if(typeof n?.duration!="function")return null;let e=n.getChildren?.(!1,!1,!0),t=Array.isArray(e)?e:[],i=Math.max(Number(n.duration()),...t.map(Zi));return Number.isFinite(i)?i:null}catch(e){return it("runtime.timelineDuration",e),null}}var tn="data-hf-authored-duration",nn="data-hf-authored-end";function se(n){if(n==null||typeof n=="string"&&n.trim()==="")return null;let e=typeof n=="number"?n:Number(n);return Number.isFinite(e)?e:null}function Ce(n){let e=se(n.start);if(e==null)return null;let t=Math.max(0,e),i=se(n.duration),r=se(n.authoredDuration),o=i!=null&&i>0?i:r!=null&&r>0?r:null;if(o!=null)return{start:t,duration:o,end:t+o};let a=se(n.end),s=se(n.authoredEnd),l=a!=null&&a>t?a:s!=null&&s>t?s:null;return{start:t,duration:l==null?null:l-t,end:l}}var z=Object.freeze({start:"data-start",duration:"data-duration",trackIndex:"data-track-index",derivedEnd:"data-end",legacyTrack:"data-layer"}),Jo=Object.freeze([z.start,z.duration,z.trackIndex]),Qo=Object.freeze([z.derivedEnd]),ea=Object.freeze([z.derivedEnd,z.legacyTrack]);function Ji(n){if(n==null||n.trim()==="")return null;let e=Number(n);return Number.isFinite(e)?e:null}var rn=n=>{let e=Ji(n);return e!==null&&e>=0?e:null};function Qi(n){return rn(n("data-playback-start"))??rn(n("data-media-start"))??0}var on="data-hf-media-start-basis";function an(n){return n?.trim().toLowerCase()==="global"?"global":"local"}function er(n){return an(n.basis)==="global"?n.authoredStart:n.hostStart+n.authoredStart}function sn(n){return un(n)?er({authoredStart:n.authoredStart,hostStart:n.hostStart,basis:n.basis}):n.ordinaryStart()}function ln(n){return un(n)&&an(n.basis)==="global"}function un(n){return!n.hasAutoStart&&n.authoredStart!=null&&n.hostStart!==0}function rt(n){return Qi(e=>n.getAttribute(e))}function dn(n,e){return n-rt(e)}function le(n){let e=n.timelineRegistry??{},t=n.includeAuthoredTimingAttrs??!1,i=n.documentRef??document,r=new WeakMap,o=new WeakMap,a=new Set,s=u=>(u.hasAttribute("data-composition-id")?u.parentElement:u)?.closest("[data-composition-id]")??null,l=(u,h)=>{let g=s(h);if(g){for(let k of g.querySelectorAll(`[id="${u}"]`))if(s(k)===g)return k}let R=i.getElementById(u);return R||(Array.from(i.querySelectorAll("[data-composition-id]")).find(k=>k.getAttribute("data-composition-id")===u)??null)},d=(u,h)=>t?u.getAttribute(h):null,m=u=>Ce({start:0,duration:u.getAttribute("data-duration"),authoredDuration:d(u,"data-hf-authored-duration")})?.duration??Ce({start:T(u,0),end:u.getAttribute("data-end"),authoredEnd:d(u,"data-hf-authored-end")})?.duration??null,f=u=>u!=null&&Number.isFinite(u)&&u>0?u:null,v=u=>{let h=u.getAttribute("data-composition-id");return h?f(ae(e[h])):null},b=u=>{let h=o.get(u);if(h!==void 0)return h;let g=m(u)??f(P(u)?oe(u,u.duration):null)??f(Me(u))??v(u);return o.set(u,g),g},S="[data-composition-src], [data-composition-id], [data-composition-file]",_=u=>u.matches(S),A=u=>!u.hasAttribute("data-composition-id")||re(u.getAttribute("data-start"))?null:u.parentElement?.closest(`[data-start], ${S}`)??null,C=(u,h)=>dn(T(u,h),A(u)??u),M=(u,h)=>{let g=u.hasAttribute("data-composition-id")?u.parentElement?.closest("[data-composition-id]"):u.closest("[data-composition-id]");return g?C(g,h):0},I=(u,h)=>{let g=re(u.getAttribute("data-start"));if(!g){let H=A(u);return H?T(H,h):h}if(g.kind==="absolute")return M(u,h)+Math.max(0,g.value);let R=l(g.refId,u);if(!R)return h;let k=T(R,0),ye=b(R)??0,ve=Math.min(0,M(u,0));return Math.max(ve,k+ye+g.offset)},T=(u,h)=>{let g=r.get(u);if(g!==void 0)return g??h;if(a.has(u))return h;a.add(u);try{let R=I(u,h);return r.set(u,R),R}finally{a.delete(u)}},U=u=>{let h=u.closest("[data-composition-id]");return{authoredStart:V(u.getAttribute("data-start")),hostStart:h?C(h,0):0,hasAutoStart:u.hasAttribute("data-hf-auto-start"),basis:u.getAttribute(on)}};return{resolveStartForElement:(u,h=0)=>T(u,Math.max(0,h)),resolveDurationForElement:u=>b(u),resolveMediaStartForElement:u=>{let h=U(u);return sn({...h,ordinaryStart:()=>T(u,h.hostStart)})},resolveHostStartForElement:u=>M(u,0),resolveHostSlotsForElement:u=>{let h=[];for(let g=u.parentElement;g;g=g.parentElement){if(!_(g)||A(g)||rt(g)<=0)continue;let R=T(g,0),k=m(g);h.push({start:R,end:k?R+k:1/0})}return h},isRootGlobalMediaStartForElement:u=>P(u)&&ln(U(u))}}function cn(){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 mn=7200,ot=1/60,ue=n=>n!==null&&n>ot?n:null;function tr(n){return{width:Ae(n.getAttribute("data-width")),height:Ae(n.getAttribute("data-height"))}}function nr(n,e){let t=[];for(let i of n.querySelectorAll("video[data-start], audio[data-start]")){let r=e.mediaStart(i);if(!Number.isFinite(r))continue;let o=e.mediaDuration(i);o==null||o<=ot||t.push(Math.max(0,r)+o)}return ue(Se({authoredDurationSeconds:null,clipEndsSeconds:t}).seconds)}function ir(n,e){let t=[];for(let r of n.querySelectorAll("[data-composition-id][data-start]")){if(r.parentElement?.closest("[data-composition-id]")!==n)continue;let o=e.resolveStartForElement(r,0),a=e.resolveDurationForElement(r);!Number.isFinite(o)||a==null||a<=0||t.push(Math.max(0,o)+a)}let i=V(n.getAttribute("data-duration"));return ue(Se({authoredDurationSeconds:null,clipEndsSeconds:[i,...t]}).seconds)}var rr=n=>n.hasAttribute("data-composition-id")||n.hasAttribute("data-composition-src");function or(n,e,{unregisteredLottie:t}){let i=[];for(let o of n.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)||rr(o))&&i.push(null)}(t||n.querySelector("[data-lottie-src]"))&&i.push(null);let r=Se({authoredDurationSeconds:null,clipEndsSeconds:i});return r.pendingClips>0?{...r,seconds:null,source:"unresolved",reason:"a clip's length is pending"}:r}function ar(n){if(n.declared!==null&&Number.isFinite(n.declared)&&n.declared>0)return n.declared;let e=ue(n.timeline()),t=Math.max(0,...n.floors().map(l=>l??0)),i=Number.isFinite(n.fallback)&&n.fallback>ot?n.fallback:0,r=Math.max(t,i),a=e!==null&&e>=mn&&ue(r)!==null?null:e,s;return a!==null?s=Math.max(a,r):ue(t)!==null?s=r:i>0?s=i:s=n.derived(),s>0?s:0}function pn(n){let e=Q(n);if(!e)return null;let t=le({timelineRegistry:{},includeAuthoredTimingAttrs:!0,documentRef:n}),i=ar({declared:V(e.getAttribute("data-duration")),timeline:()=>null,floors:()=>[nr(n,{mediaStart:t.resolveMediaStartForElement,mediaDuration:nt}),ir(e,t)],fallback:0,derived:()=>or(e,t,{unregisteredLottie:!1}).seconds??0});return{...tr(e),fps:cn().canonicalFps,durationSeconds:i}}var hn="hyperframes-studio-preview";var fn="__hfPreviewErrors";function bn(n){return n.hasRuntime||n.runtimeInjected?!1:!!(n.hasNestedCompositions||n.hasTimelines&&n.attempts>=5)}function j(n){return typeof n=="object"&&n!==null}function gn(n){return j(n)&&typeof n.getDuration=="function"}function _n(n){return j(n)&&typeof n.duration=="function"&&typeof n.time=="function"&&typeof n.seek=="function"&&typeof n.play=="function"&&typeof n.pause=="function"}var q="https://cdn.jsdelivr.net/npm/@hyperframes/core@0.8.211/dist/hyperframe.runtime.iife.js";function de(n){if(n===null)return null;let e=Number.parseInt(n,10);return Number.isFinite(e)&&e>0?e:null}function sr(n){let e=n?.querySelector("[data-composition-id][data-width][data-height]")??n?.querySelector("[data-width][data-height]");if(!e)return null;let t=de(e.getAttribute("data-width")),i=de(e.getAttribute("data-height"));return t!==null&&i!==null?{width:t,height:i}:null}function lr(n){return Array.isArray(n)?n.find(e=>typeof e=="string"&&e.trim()!==""&&e!=="[object Event]")??null:null}var Ie=class{constructor(e,t){this._iframe=e;this._callbacks=t}_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 t=null;try{t=this._poll(e)}catch(i){i instanceof DOMException&&i.name==="SecurityError"||(t={kind:"error",message:i instanceof Error?i.message:String(i)})}t??=this._deadlineOutcome(e),t&&(this.stop(),t.kind==="error"?(this._failure={document:this._iframe.contentDocument},this._callbacks.onError(t.message)):this._callbacks.onReady(t.result))},200)}_deadlineOutcome(e){return e<40||this._callbacks.hostOwnsDeadline?.()?null:{kind:"error",message:"Composition timeline not found after 8s"}}_poll(e){let t=this._iframe.contentWindow;if(!t)return null;let i=lr(Reflect.get(t,fn));if(i!==null)return{kind:"error",message:i};let r=this._iframe.contentDocument,o=Reflect.get(t,"__timelines"),a=this.hasRuntimeBridge(t);if(bn({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(t,r);return s?{kind:"ready",result:s}:null}_resolveReadyResult(e,t){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=t?pn(t)?.durationSeconds??0:0}return r<=0?null:{duration:r,adapter:{...i,getDuration:()=>r},compositionSize:sr(t)}}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 t=e.createElement("script");t.src=this._callbacks.resolveRuntimeUrl?.()??q,this._runtimeScript=t,t.onerror=()=>{this._runtimeScript!==t||this._iframe.contentDocument!==e||(this.stop(),this._failure={document:e},this._callbacks.onError("HyperFrames runtime failed to load from "+t.src))},(e.head||e.documentElement).appendChild(t),this._callbacks.onRuntimeInjected?.()}catch{}}_resolveDirectTimelineAdapterFromWindow(e){if(this.hasRuntimeBridge(e))return null;let t=Reflect.get(e,"__timelines");if(!j(t))return null;let i=Object.keys(t);if(i.length===0)return null;let r=this._iframe.contentDocument?.querySelector("[data-composition-id]")?.getAttribute("data-composition-id"),o=r&&r in t?r:i[i.length-1],a=t[o];return _n(a)?a:null}_resolvePlaybackDurationAdapter(e){let t=Reflect.get(e,"__player");if(gn(t))return{kind:"runtime",getDuration:()=>t.getDuration()};let i=this._resolveDirectTimelineAdapterFromWindow(e);return i?{kind:"direct-timeline",timeline:i,getDuration:()=>i.duration()}:null}};var yn=`
|
|
1
|
+
"use strict";var HyperframesPlayer=(()=>{var Be=Object.defineProperty;var oi=Object.getOwnPropertyDescriptor;var ai=Object.getOwnPropertyNames;var si=Object.prototype.hasOwnProperty;var li=(n,e)=>{for(var t in e)Be(n,t,{get:e[t],enumerable:!0})},ui=(n,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of ai(e))!si.call(n,r)&&r!==t&&Be(n,r,{get:()=>e[r],enumerable:!(i=oi(e,r))||i.enumerable});return n};var di=n=>ui(Be({},"__esModule",{value:!0}),n);var no={};li(no,{HyperframesPlayer:()=>$e,SPEED_PRESETS:()=>lt,formatSpeed:()=>W,formatTime:()=>De});var Dt=n=>n!==null&&Number.isFinite(n)&&n>0;function Se(n){let e=n.clipEndsSeconds.filter(i=>i===null).length;if(Dt(n.authoredDurationSeconds))return{seconds:n.authoredDurationSeconds,source:"authored",pendingClips:e};let t=n.clipEndsSeconds.filter(Dt);return t.length>0?{seconds:Math.max(...t),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 ci="http://www.w3.org/1999/xhtml";function Pt(n){return n!=null&&n.nodeType===1}function Ge(n){return Pt(n)&&n.namespaceURI===ci}function ze(n,e){return Ge(n)&&n.localName===e}function mi(n){return ze(n,"video")}function pi(n){return ze(n,"audio")}function P(n){return mi(n)||pi(n)}function Lt(n){return ze(n,"img")}function Ae(n){if(n==null||n.trim()==="")return null;let e=Number.parseInt(n,10);return Number.isFinite(e)&&e>0?e:null}function Q(n=document){let e=n.querySelector('[data-composition-id][data-root="true"]');return Ge(e)?e:n.querySelector("[data-composition-id]")}var G=Object.freeze({start:"data-start",duration:"data-duration",trackIndex:"data-track-index",derivedEnd:"data-end",legacyTrack:"data-layer"}),lo=Object.freeze([G.start,G.duration,G.trackIndex]),uo=Object.freeze([G.derivedEnd]),co=Object.freeze([G.derivedEnd,G.legacyTrack]);function je(n){if(n==null||n.trim()==="")return null;let e=Number(n);return Number.isFinite(e)?e:null}var Nt=n=>{let e=je(n);return e!==null&&e>=0?e:null};function Ee(n){return Nt(n("data-playback-start"))??Nt(n("data-media-start"))??0}var ee=.1,te=10;function qe(n){return Number.isFinite(n)&&n>0?Math.max(ee,Math.min(te,n)):1}function Ot(n,e=1){let t=Number.parseFloat(n("data-playback-rate")??"");return qe(Number.isFinite(t)&&t>0?t:e)}function Ye(n){let e=je(n("data-duration"));return e!==null&&e>0?e:null}function Ft(n,e){let t=Ye(n);if(t!==null)return t;let i=je(n("data-end"));return i!==null?i-e:null}var hi=3;function Xe(n,e,t){return Number.isFinite(n)?Math.max(0,n-e)/qe(t):null}function Ke(n){let{tag:e,authoredDurationSeconds:t,sourceDurationSeconds:i,mediaStartSeconds:r,playbackRate:o}=n;if(t!==null&&t>0)return{seconds:t,source:"authored"};if(e==="img")return{seconds:hi,source:"default"};if(i===null)return{seconds:null,source:"pending",reason:"source duration not yet probed"};let a=Xe(i,r,o);return a===null?{seconds:null,source:"pending",reason:"source reported a non-finite duration"}:{seconds:a,source:"media"}}var fi="data-fx-chain",po=fi.slice(5);var ne=(n="frequency",e="Frequency",t=1e3,i=20,r=2e4)=>({kind:"number",key:n,label:e,unit:"Hz",min:i,max:r,step:1,default:t,scale:"log",automatable:!0}),Ze=(n=.707,e="Bandwidth: higher is narrower.")=>({kind:"number",key:"q",label:"Q",unit:"",min:.1,max:20,step:.01,default:n,scale:"log",automatable:!0,hint:e}),Te=(n=-40,e=40,t=0)=>({kind:"number",key:"gain",label:"Gain",unit:"dB",min:n,max:e,step:.1,default:t,automatable:!0}),Ut={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."},Ht=[{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:[ne("frequency","Frequency",1e3),Te(-40,40,0),Ze(1)],web:"biquad-peaking"},{id:"lowshelf",label:"Low Shelf",group:"filter",description:"Lift or drop everything below the corner frequency.",params:[ne("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:[ne("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:[ne("frequency","Cutoff",300,20,2e4),Ze(.707),Ut],web:"biquad-highpass"},{id:"lowpass",label:"Low-pass",group:"filter",description:"Remove high frequencies, which darkens or muffles a track.",params:[ne("frequency","Cutoff",8e3,100,2e4),Ze(.707),Ut],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"}],ho=new Map(Ht.map(n=>[n.id,n]));var fo=Ht.map(n=>n.id);function bi(n){return 10**(n/20)}var Vt=bi(12);var Wt="data-automation",xo=Wt.slice(5),Je=1,gi=512,L=class extends Error{constructor(e){super(e),this.name="AudioAutomationError"}},Re="volume",xe="rate";function $t(n){if(n===Re)return{kind:"volume"};if(n===xe)return{kind:"rate"};let e=n.split(".");if(e.length===3&&e[0]==="fx"&&e[1]===_i){let r=e[2];return r?{kind:"preset",presetId:r}:null}if(e.length!==3||e[0]!=="fx")return null;let[,t,i]=e;return!t||!i?null:{kind:"fx",nodeId:t,param:i}}var _i="preset";var yi={min:0,max:Vt,step:.01,unit:"",label:"Volume",scale:"linear",default:1};var vi={min:ee,max:te,step:.05,unit:"x",label:"Speed",scale:"log",default:1};function ie(n){if(typeof n=="number")return Number.isFinite(n)?n:null;if(typeof n=="string"&&n.trim()!==""){let e=Number(n);return Number.isFinite(e)?e:null}return null}function Si(n){let e=ie(n);return e===null||e===0?0:Math.min(1,Math.max(-1,e))}function Bt(n,e){let t=ie(n),i=ie(e);if(t===null||i===null)return null;let r=s=>Math.min(.999,Math.max(.001,s)),o=r(t),a=r(i);return Math.abs(o-a)<1e-6?null:{x:o,y:a}}function Ai(n){let e=Si(n?.curve),t=Bt(n?.viaX,n?.viaY);return{...e?{curve:e}:{},...t?{viaX:t.x,viaY:t.y}:{}}}function Ei(n,e){let t=ie(n?.t),i=ie(n?.v);if(t===null||i===null)return null;let r=e?Math.min(e.max,Math.max(e.min,i)):i;return{t:Math.max(0,t),v:r,...Ai(n)}}function Ti(n,e){let t=n.map(r=>Ei(r,e)).filter(r=>r!==null).sort((r,o)=>r.t-o.t),i=[];for(let r of t)i.length>0&&i[i.length-1].t===r.t?i[i.length-1]=r:i.push(r);return i.slice(0,gi)}function Ri(n){let e=[];for(let t of n.lanes){if(!$t(t.target))continue;let i=t.target===Re?yi:t.target===xe?vi:null,r=Ti(t.points??[],i);r.length>0&&e.push({target:t.target,points:r})}return{version:Je,lanes:e}}function Gt(n){let e;try{e=JSON.parse(n)}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 t=e;if(t.version!==Je)throw new L(`Unsupported automation version: ${String(t.version)}`);if(!Array.isArray(t.lanes))throw new L("Automation is missing a `lanes` array.");let i=t.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"||!$t(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 Ri({version:Je,lanes:i})}function xi(n,e){return e?Math.pow(n,Math.pow(2,2*e)):n}function wi(n,e){let t=n-.5,i=e-.5,r=.999,o=1e6,a=t>0?t/(r-n):t<0?-t/(n-(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:n+t/l,cy:e+i/l,w:l}}function ki(n,e,t){let{cx:i,cy:r,w:o}=wi(e,t),a=2-2*o,s=n*a-1+2*o*i,l=-n*a-2*o*i,d=Mi(s,l,n),m=1-d,f=m*m+2*o*d*m+d*d;return f>0?(2*o*r*d*m+d*d)/f:n}function Mi(n,e,t){if(Math.abs(n)<1e-12)return Math.abs(e)<1e-12?t:-t/e;let i=Math.sqrt(Math.max(0,e*e-4*n*t)),r=(-e+i)/(2*n),o=(-e-i)/(2*n),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)):t}function Ci(n,e){let t=Bt(e.viaX,e.viaY);return t?ki(Math.min(1,Math.max(0,n)),t.x,t.y):xi(n,e.curve)}function Ii(n,e,t,i){return i==="log"&&n>0&&e>0?Math.exp(Math.log(n)+(Math.log(e)-Math.log(n))*t):n+(e-n)*t}function we(n,e,t="linear"){let i=n.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 f=a+s>>1;i[f].t<=e?a=f:s=f}let l=i[a],d=i[s],m=d.t-l.t;return m<=0?d.v:Ii(l.v,d.v,Ci((e-l.t)/m,l),t)}var ke=new Map,Di=64;function zt(n,e=Re){let t=`${e}\0${n}`,i=ke.get(t);if(i!==void 0)return i;let r=null;try{r=Gt(n).lanes.find(o=>o.target===e)??null}catch{r=null}return ke.size>Di&&ke.clear(),ke.set(t,r),r}var jt=48,qt=new WeakMap;function Pi(n){let e=n.points,t=e[0].v,i=e[e.length-1].v,r=[0],o=[0],a=l=>{let d=r[r.length-1];if(l<=d)return;let m=we(n,d,"log");r.push(l),o.push(o[o.length-1]+(m+we(n,l,"log"))/2*(l-d))},s=Math.max(0,e[0].t);a(s);for(let l=1;l<e.length;l+=1){let d=e[l-1].t,m=e[l].t;if(!(m<=0))for(let f=1;f<=jt;f+=1)a(Math.max(d,0)+(m-d)*f/jt)}return{ts:Float64Array.from(r),ss:Float64Array.from(o),firstRate:t,lastRate:i}}function Li(n){let e=qt.get(n);return e||(e=Pi(n),qt.set(n,e)),e}function Ni(n){return typeof n!="number"&&n.points.length>0}function Oi(n,e,t){let i=0,r=n.length-1;for(;r-i>1;){let o=i+r>>1;n[o]<=t?i=o:r=o}return e[i]+(e[r]-e[i])*(t-n[i])/(n[r]-n[i])}function Yt(n,e){if(typeof n=="number")return e/n;if(!Ni(n))return e;let{ts:t,ss:i,firstRate:r,lastRate:o}=Li(n),a=t.length-1;return e<=0?e/r:e>=i[a]?t[a]+(e-i[a])/o:Oi(i,t,e)}function Fi(n){return n?zt(n,xe):null}function Xt(n,e){return Fi(n)??e}var Po=[{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"}),No=Object.freeze([y.start,y.duration,y.trackIndex]),Oo=Object.freeze([y.derivedEnd]),Fo=Object.freeze([y.derivedEnd,y.legacyTrack]);function N(n){if(n==null||n.trim()==="")return null;let e=Number(n);return Number.isFinite(e)?e:null}var Jt=/^[A-Za-z0-9_.:-]+$/;function Qt(n,e){let t=n.charCodeAt(e);return t>=48&&t<=57}function Kt(n,e){let t=e;for(;t>=0&&Qt(n,t);)t--;return t}function Ui(n,e){let t=e;for(;t>=0&&(n[t]??"").trim()==="";)t--;return t}function Hi(n){let e=n.length-1;if(!Qt(n,e))return null;let t=Kt(n,e);return n[t]==="."&&(t=Kt(n,t-1)),t+1}function Vi(n){let e=Hi(n);if(e==null)return null;let t=Ui(n,e-1),i=n[t];if(i!=="+"&&i!=="-")return null;let r=n.slice(0,t).trim();if(!Jt.test(r))return null;let o=Number(n.slice(e));return Number.isFinite(o)?{refId:r,operator:i,magnitude:o}:null}function re(n){let e=(n??"").trim();if(!e)return null;let t=N(e);if(t!=null)return{kind:"absolute",value:t};if(Jt.test(e))return{kind:"reference",refId:e,offset:0};let i=Vi(e);return i?{kind:"reference",refId:i.refId,offset:i.operator==="-"?-i.magnitude:i.magnitude}:null}function x(n,e,t,i){n.push({code:e,attribute:t,value:i})}function Wi(n,e,t,i){if(e==null||e.trim()==="")return t.defaultStart===void 0?0:t.defaultStart;if(!n)return x(i,"invalid-start",y.start,e),null;if(n.kind==="absolute")return Math.max(0,n.value);let r=t.resolveReferenceEnd?.(n.refId);return r==null||!Number.isFinite(r)?(x(i,"unresolved-start-reference",y.start,e),null):Math.max(0,r+n.offset)}var $i=1e-9;function Bi(n,e){return Math.abs(n-e)<=$i}function Gi(n,e,t){let i=N(n);if(i==null){x(t,"deprecated-end",y.derivedEnd,n),x(t,"invalid-end",y.derivedEnd,n);return}if(e==null){x(t,"deprecated-end",y.derivedEnd,n);return}Bi(i,e)||(x(t,"deprecated-end",y.derivedEnd,n),x(t,"conflicting-end",y.derivedEnd,n))}function zi(n,e,t){let i=N(n);return i==null||i<0?(x(t,"invalid-duration",y.duration,n),{duration:null,end:null,durationSource:"invalid"}):{duration:i,end:e==null?null:e+i,durationSource:"duration"}}function ji(n,e,t){x(t,"deprecated-end",y.derivedEnd,n);let i=N(n);return i==null?(x(t,"invalid-end",y.derivedEnd,n),{duration:null,end:null,durationSource:"invalid"}):e==null?{duration:null,end:i,durationSource:"legacy-end"}:i<e?(x(t,"end-before-start",y.derivedEnd,n),{duration:null,end:null,durationSource:"invalid"}):{duration:i-e,end:i,durationSource:"legacy-end"}}function qi(n,e,t){let i=n.getAttribute(y.duration),r=n.getAttribute(y.derivedEnd);if(i==null)return r==null?{duration:null,end:null,durationSource:"missing"}:ji(r,e,t);let o=zi(i,e,t);return r!=null&&Gi(r,o.end,t),o}function Zt(n,e,t,i){let r=N(n);return r==null||!Number.isInteger(r)?(x(i,"invalid-track-index",e,n),{trackIndex:0,trackSource:"invalid"}):{trackIndex:r,trackSource:t}}function Yi(n,e){let t=n.getAttribute(y.trackIndex),i=n.getAttribute(y.legacyTrack);if(t==null&&i==null)return{trackIndex:0,trackSource:"default"};if(t==null&&i!=null)return x(e,"deprecated-layer",y.legacyTrack,i),Zt(i,y.legacyTrack,"legacy-layer",e);let r=Zt(t??"",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 Qe(n,e={}){let t=[],i=n.getAttribute(y.start),r=re(i),o=Wi(r,i,e,t),a=qi(n,o,t),s=Yi(n,t);return{startExpression:r,start:o,...a,...s,diagnostics:t}}function V(n){return N(n)}function et(n){return Ot(e=>n.getAttribute(e),P(n)?n.defaultPlaybackRate:1)}function Xi(n){return Xt(n.getAttribute("data-automation"),et(n))}function tt(n){return Ee(e=>n.getAttribute(e))}function oe(n,e){return Ki(e,tt(n),Xi(n))}function nt(n){let e=Ke({tag:"video",authoredDurationSeconds:Ye(t=>n.getAttribute(t)),sourceDurationSeconds:Number.isFinite(n.duration)?n.duration:null,mediaStartSeconds:tt(n),playbackRate:et(n)});return e.source==="media"?oe(n,n.duration):e.seconds}function Me(n,e=0){return!Lt(n)||!n.hasAttribute("data-start")&&!n.hasAttribute("data-track-index")?null:Ke({tag:"img",authoredDurationSeconds:Ft(t=>n.getAttribute(t),e),sourceDurationSeconds:null,mediaStartSeconds:0,playbackRate:1}).seconds}function Ki(n,e,t){return typeof t=="number"?Xe(n,e,t):Number.isFinite(n)?Yt(t,Math.max(0,n-e)):null}function en(){return globalThis}function it(n,e){if(typeof window>"u")return;let t=en(),i=t.__hf?.onSwallowed;if(i)try{i({label:n,error:e})}catch(r){}(t.__hfDebug||t.__HYPERFRAMES_DEBUG)&&console.debug(`[hyperframes] ${n} swallowed:`,e)}var Zi=n=>n.paused?.()===!0?(n.startTime?.()??0)+(n.totalDuration?.()??0)/Math.abs(n.timeScale?.()||1):0;function ae(n){try{if(typeof n?.duration!="function")return null;let e=n.getChildren?.(!1,!1,!0),t=Array.isArray(e)?e:[],i=Math.max(Number(n.duration()),...t.map(Zi));return Number.isFinite(i)?i:null}catch(e){return it("runtime.timelineDuration",e),null}}var tn="data-hf-authored-duration",nn="data-hf-authored-end";function se(n){if(n==null||typeof n=="string"&&n.trim()==="")return null;let e=typeof n=="number"?n:Number(n);return Number.isFinite(e)?e:null}function Ce(n){let e=se(n.start);if(e==null)return null;let t=Math.max(0,e),i=se(n.duration),r=se(n.authoredDuration),o=i!=null&&i>0?i:r!=null&&r>0?r:null;if(o!=null)return{start:t,duration:o,end:t+o};let a=se(n.end),s=se(n.authoredEnd),l=a!=null&&a>t?a:s!=null&&s>t?s:null;return{start:t,duration:l==null?null:l-t,end:l}}var z=Object.freeze({start:"data-start",duration:"data-duration",trackIndex:"data-track-index",derivedEnd:"data-end",legacyTrack:"data-layer"}),Jo=Object.freeze([z.start,z.duration,z.trackIndex]),Qo=Object.freeze([z.derivedEnd]),ea=Object.freeze([z.derivedEnd,z.legacyTrack]);function Ji(n){if(n==null||n.trim()==="")return null;let e=Number(n);return Number.isFinite(e)?e:null}var rn=n=>{let e=Ji(n);return e!==null&&e>=0?e:null};function Qi(n){return rn(n("data-playback-start"))??rn(n("data-media-start"))??0}var on="data-hf-media-start-basis";function an(n){return n?.trim().toLowerCase()==="global"?"global":"local"}function er(n){return an(n.basis)==="global"?n.authoredStart:n.hostStart+n.authoredStart}function sn(n){return un(n)?er({authoredStart:n.authoredStart,hostStart:n.hostStart,basis:n.basis}):n.ordinaryStart()}function ln(n){return un(n)&&an(n.basis)==="global"}function un(n){return!n.hasAutoStart&&n.authoredStart!=null&&n.hostStart!==0}function rt(n){return Qi(e=>n.getAttribute(e))}function dn(n,e){return n-rt(e)}function le(n){let e=n.timelineRegistry??{},t=n.includeAuthoredTimingAttrs??!1,i=n.documentRef??document,r=new WeakMap,o=new WeakMap,a=new Set,s=u=>(u.hasAttribute("data-composition-id")?u.parentElement:u)?.closest("[data-composition-id]")??null,l=(u,h)=>{let g=s(h);if(g){for(let k of g.querySelectorAll(`[id="${u}"]`))if(s(k)===g)return k}let R=i.getElementById(u);return R||(Array.from(i.querySelectorAll("[data-composition-id]")).find(k=>k.getAttribute("data-composition-id")===u)??null)},d=(u,h)=>t?u.getAttribute(h):null,m=u=>Ce({start:0,duration:u.getAttribute("data-duration"),authoredDuration:d(u,"data-hf-authored-duration")})?.duration??Ce({start:T(u,0),end:u.getAttribute("data-end"),authoredEnd:d(u,"data-hf-authored-end")})?.duration??null,f=u=>u!=null&&Number.isFinite(u)&&u>0?u:null,v=u=>{let h=u.getAttribute("data-composition-id");return h?f(ae(e[h])):null},b=u=>{let h=o.get(u);if(h!==void 0)return h;let g=m(u)??f(P(u)?oe(u,u.duration):null)??f(Me(u))??v(u);return o.set(u,g),g},S="[data-composition-src], [data-composition-id], [data-composition-file]",_=u=>u.matches(S),A=u=>!u.hasAttribute("data-composition-id")||re(u.getAttribute("data-start"))?null:u.parentElement?.closest(`[data-start], ${S}`)??null,C=(u,h)=>dn(T(u,h),A(u)??u),M=(u,h)=>{let g=u.hasAttribute("data-composition-id")?u.parentElement?.closest("[data-composition-id]"):u.closest("[data-composition-id]");return g?C(g,h):0},I=(u,h)=>{let g=re(u.getAttribute("data-start"));if(!g){let H=A(u);return H?T(H,h):h}if(g.kind==="absolute")return M(u,h)+Math.max(0,g.value);let R=l(g.refId,u);if(!R)return h;let k=T(R,0),ye=b(R)??0,ve=Math.min(0,M(u,0));return Math.max(ve,k+ye+g.offset)},T=(u,h)=>{let g=r.get(u);if(g!==void 0)return g??h;if(a.has(u))return h;a.add(u);try{let R=I(u,h);return r.set(u,R),R}finally{a.delete(u)}},U=u=>{let h=u.closest("[data-composition-id]");return{authoredStart:V(u.getAttribute("data-start")),hostStart:h?C(h,0):0,hasAutoStart:u.hasAttribute("data-hf-auto-start"),basis:u.getAttribute(on)}};return{resolveStartForElement:(u,h=0)=>T(u,Math.max(0,h)),resolveDurationForElement:u=>b(u),resolveMediaStartForElement:u=>{let h=U(u);return sn({...h,ordinaryStart:()=>T(u,h.hostStart)})},resolveHostStartForElement:u=>M(u,0),resolveHostSlotsForElement:u=>{let h=[];for(let g=u.parentElement;g;g=g.parentElement){if(!_(g)||A(g)||rt(g)<=0)continue;let R=T(g,0),k=m(g);h.push({start:R,end:k?R+k:1/0})}return h},isRootGlobalMediaStartForElement:u=>P(u)&&ln(U(u))}}function cn(){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 mn=7200,ot=1/60,ue=n=>n!==null&&n>ot?n:null;function tr(n){return{width:Ae(n.getAttribute("data-width")),height:Ae(n.getAttribute("data-height"))}}function nr(n,e){let t=[];for(let i of n.querySelectorAll("video[data-start], audio[data-start]")){let r=e.mediaStart(i);if(!Number.isFinite(r))continue;let o=e.mediaDuration(i);o==null||o<=ot||t.push(Math.max(0,r)+o)}return ue(Se({authoredDurationSeconds:null,clipEndsSeconds:t}).seconds)}function ir(n,e){let t=[];for(let r of n.querySelectorAll("[data-composition-id][data-start]")){if(r.parentElement?.closest("[data-composition-id]")!==n)continue;let o=e.resolveStartForElement(r,0),a=e.resolveDurationForElement(r);!Number.isFinite(o)||a==null||a<=0||t.push(Math.max(0,o)+a)}let i=V(n.getAttribute("data-duration"));return ue(Se({authoredDurationSeconds:null,clipEndsSeconds:[i,...t]}).seconds)}var rr=n=>n.hasAttribute("data-composition-id")||n.hasAttribute("data-composition-src");function or(n,e,{unregisteredLottie:t}){let i=[];for(let o of n.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)||rr(o))&&i.push(null)}(t||n.querySelector("[data-lottie-src]"))&&i.push(null);let r=Se({authoredDurationSeconds:null,clipEndsSeconds:i});return r.pendingClips>0?{...r,seconds:null,source:"unresolved",reason:"a clip's length is pending"}:r}function ar(n){if(n.declared!==null&&Number.isFinite(n.declared)&&n.declared>0)return n.declared;let e=ue(n.timeline()),t=Math.max(0,...n.floors().map(l=>l??0)),i=Number.isFinite(n.fallback)&&n.fallback>ot?n.fallback:0,r=Math.max(t,i),a=e!==null&&e>=mn&&ue(r)!==null?null:e,s;return a!==null?s=Math.max(a,r):ue(t)!==null?s=r:i>0?s=i:s=n.derived(),s>0?s:0}function pn(n){let e=Q(n);if(!e)return null;let t=le({timelineRegistry:{},includeAuthoredTimingAttrs:!0,documentRef:n}),i=ar({declared:V(e.getAttribute("data-duration")),timeline:()=>null,floors:()=>[nr(n,{mediaStart:t.resolveMediaStartForElement,mediaDuration:nt}),ir(e,t)],fallback:0,derived:()=>or(e,t,{unregisteredLottie:!1}).seconds??0});return{...tr(e),fps:cn().canonicalFps,durationSeconds:i}}var hn="hyperframes-studio-preview";var fn="__hfPreviewErrors";function bn(n){return n.hasRuntime||n.runtimeInjected?!1:!!(n.hasNestedCompositions||n.hasTimelines&&n.attempts>=5)}function j(n){return typeof n=="object"&&n!==null}function gn(n){return j(n)&&typeof n.getDuration=="function"}function _n(n){return j(n)&&typeof n.duration=="function"&&typeof n.time=="function"&&typeof n.seek=="function"&&typeof n.play=="function"&&typeof n.pause=="function"}var q="https://cdn.jsdelivr.net/npm/@hyperframes/core@0.8.212/dist/hyperframe.runtime.iife.js";function de(n){if(n===null)return null;let e=Number.parseInt(n,10);return Number.isFinite(e)&&e>0?e:null}function sr(n){let e=n?.querySelector("[data-composition-id][data-width][data-height]")??n?.querySelector("[data-width][data-height]");if(!e)return null;let t=de(e.getAttribute("data-width")),i=de(e.getAttribute("data-height"));return t!==null&&i!==null?{width:t,height:i}:null}function lr(n){return Array.isArray(n)?n.find(e=>typeof e=="string"&&e.trim()!==""&&e!=="[object Event]")??null:null}var Ie=class{constructor(e,t){this._iframe=e;this._callbacks=t}_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 t=null;try{t=this._poll(e)}catch(i){i instanceof DOMException&&i.name==="SecurityError"||(t={kind:"error",message:i instanceof Error?i.message:String(i)})}t??=this._deadlineOutcome(e),t&&(this.stop(),t.kind==="error"?(this._failure={document:this._iframe.contentDocument},this._callbacks.onError(t.message)):this._callbacks.onReady(t.result))},200)}_deadlineOutcome(e){return e<40||this._callbacks.hostOwnsDeadline?.()?null:{kind:"error",message:"Composition timeline not found after 8s"}}_poll(e){let t=this._iframe.contentWindow;if(!t)return null;let i=lr(Reflect.get(t,fn));if(i!==null)return{kind:"error",message:i};let r=this._iframe.contentDocument,o=Reflect.get(t,"__timelines"),a=this.hasRuntimeBridge(t);if(bn({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(t,r);return s?{kind:"ready",result:s}:null}_resolveReadyResult(e,t){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=t?pn(t)?.durationSeconds??0:0}return r<=0?null:{duration:r,adapter:{...i,getDuration:()=>r},compositionSize:sr(t)}}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 t=e.createElement("script");t.src=this._callbacks.resolveRuntimeUrl?.()??q,this._runtimeScript=t,t.onerror=()=>{this._runtimeScript!==t||this._iframe.contentDocument!==e||(this.stop(),this._failure={document:e},this._callbacks.onError("HyperFrames runtime failed to load from "+t.src))},(e.head||e.documentElement).appendChild(t),this._callbacks.onRuntimeInjected?.()}catch{}}_resolveDirectTimelineAdapterFromWindow(e){if(this.hasRuntimeBridge(e))return null;let t=Reflect.get(e,"__timelines");if(!j(t))return null;let i=Object.keys(t);if(i.length===0)return null;let r=this._iframe.contentDocument?.querySelector("[data-composition-id]")?.getAttribute("data-composition-id"),o=r&&r in t?r:i[i.length-1],a=t[o];return _n(a)?a:null}_resolvePlaybackDurationAdapter(e){let t=Reflect.get(e,"__player");if(gn(t))return{kind:"runtime",getDuration:()=>t.getDuration()};let i=this._resolveDirectTimelineAdapterFromWindow(e);return i?{kind:"direct-timeline",timeline:i,getDuration:()=>i.duration()}:null}};var yn=`
|
|
2
2
|
:host {
|
|
3
3
|
display: block;
|
|
4
4
|
position: relative;
|
|
@@ -9,27 +9,26 @@ import {
|
|
|
9
9
|
} from "./chunk-ZBAF6L74.js";
|
|
10
10
|
import {
|
|
11
11
|
resolveProject
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-KZZWYIEB.js";
|
|
13
13
|
import {
|
|
14
14
|
formatBytes,
|
|
15
15
|
label
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
16
|
+
} from "./chunk-5ZBMHUY2.js";
|
|
17
|
+
import "./chunk-GVE6I5EL.js";
|
|
18
|
+
import "./chunk-EC77ZBCP.js";
|
|
19
|
+
import "./chunk-EQGKUPBJ.js";
|
|
20
20
|
import {
|
|
21
21
|
defineCommand
|
|
22
22
|
} from "./chunk-DL4OD7IA.js";
|
|
23
23
|
import "./chunk-S3S4TGEH.js";
|
|
24
24
|
import "./chunk-54HJ63Q2.js";
|
|
25
|
-
import "./chunk-LALLQUSK.js";
|
|
26
25
|
import {
|
|
27
26
|
c
|
|
28
27
|
} from "./chunk-2GICKZ3I.js";
|
|
29
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-BYRXSKIY.js";
|
|
30
29
|
import {
|
|
31
30
|
isHtmlElement
|
|
32
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-W5OBRMZ6.js";
|
|
33
32
|
import "./chunk-VC76R6W2.js";
|
|
34
33
|
import "./chunk-OFQWTKPW.js";
|
|
35
34
|
import "./chunk-RQVDTPGD.js";
|
|
@@ -53,12 +52,14 @@ import "./chunk-WC4MTXGN.js";
|
|
|
53
52
|
import "./chunk-32NEJ553.js";
|
|
54
53
|
import {
|
|
55
54
|
withMeta
|
|
56
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-NGSENR4J.js";
|
|
57
56
|
import "./chunk-K4WIOZFP.js";
|
|
58
57
|
import "./chunk-ZCHULPJZ.js";
|
|
59
58
|
import "./chunk-ISN5GRYI.js";
|
|
59
|
+
import "./chunk-SJGE5I5F.js";
|
|
60
|
+
import "./chunk-DP5LF7GF.js";
|
|
60
61
|
import "./chunk-J3RXEDR2.js";
|
|
61
|
-
import "./chunk-
|
|
62
|
+
import "./chunk-UXH6E5HC.js";
|
|
62
63
|
import "./chunk-E63BDV4Z.js";
|
|
63
64
|
import "./chunk-G7VEYUZ2.js";
|
|
64
65
|
import "./chunk-XT6MXC7A.js";
|
|
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
gateRegistryItemsCompatibility
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-25MKZTRT.js";
|
|
10
10
|
import {
|
|
11
11
|
copyDirSync
|
|
12
12
|
} from "./chunk-CIWX5UKC.js";
|
|
@@ -20,22 +20,22 @@ import {
|
|
|
20
20
|
select,
|
|
21
21
|
spinner,
|
|
22
22
|
text
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-26AQTUU4.js";
|
|
24
24
|
import {
|
|
25
25
|
initialModelForLanguage
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-ORJY6Z6G.js";
|
|
27
27
|
import "./chunk-7VZEOCUY.js";
|
|
28
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-VKD23SIO.js";
|
|
29
29
|
import {
|
|
30
30
|
DEFAULT_MODEL,
|
|
31
31
|
hasFFmpeg
|
|
32
|
-
} from "./chunk-
|
|
33
|
-
import "./chunk-
|
|
32
|
+
} from "./chunk-3JQ2YOKL.js";
|
|
33
|
+
import "./chunk-FJ646TIT.js";
|
|
34
34
|
import {
|
|
35
35
|
findFFmpeg,
|
|
36
36
|
findFFprobe,
|
|
37
37
|
getFFmpegInstallHint
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-T7KNW7PE.js";
|
|
39
39
|
import "./chunk-UOFAE5RF.js";
|
|
40
40
|
import {
|
|
41
41
|
TRANSCRIPT_FILE
|
|
@@ -49,21 +49,21 @@ import {
|
|
|
49
49
|
listRegistryItems,
|
|
50
50
|
loadAllItems,
|
|
51
51
|
resolveItemWithDependencies
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-Y3U7ECBH.js";
|
|
53
53
|
import "./chunk-JHOCK3DG.js";
|
|
54
54
|
import {
|
|
55
55
|
installItem
|
|
56
|
-
} from "./chunk-
|
|
57
|
-
import "./chunk-
|
|
56
|
+
} from "./chunk-XGXTZNES.js";
|
|
57
|
+
import "./chunk-45JN2GIZ.js";
|
|
58
58
|
import "./chunk-AWDFDFI3.js";
|
|
59
59
|
import "./chunk-P6LJ4Y32.js";
|
|
60
60
|
import "./chunk-T2WJO4XM.js";
|
|
61
61
|
import "./chunk-A4ZTSQLW.js";
|
|
62
62
|
import {
|
|
63
63
|
trackInitTemplate
|
|
64
|
-
} from "./chunk-
|
|
65
|
-
import "./chunk-
|
|
66
|
-
import "./chunk-
|
|
64
|
+
} from "./chunk-GVE6I5EL.js";
|
|
65
|
+
import "./chunk-EC77ZBCP.js";
|
|
66
|
+
import "./chunk-EQGKUPBJ.js";
|
|
67
67
|
import {
|
|
68
68
|
defineCommand
|
|
69
69
|
} from "./chunk-DL4OD7IA.js";
|
|
@@ -71,25 +71,20 @@ import {
|
|
|
71
71
|
runCommand
|
|
72
72
|
} from "./chunk-S3S4TGEH.js";
|
|
73
73
|
import "./chunk-54HJ63Q2.js";
|
|
74
|
-
import {
|
|
75
|
-
failCommand,
|
|
76
|
-
failUsage,
|
|
77
|
-
finishCommand
|
|
78
|
-
} from "./chunk-LALLQUSK.js";
|
|
79
74
|
import {
|
|
80
75
|
c,
|
|
81
76
|
isColorSupported
|
|
82
77
|
} from "./chunk-2GICKZ3I.js";
|
|
83
|
-
import "./chunk-
|
|
78
|
+
import "./chunk-OL5E4Y4L.js";
|
|
84
79
|
import "./chunk-Z5J67X44.js";
|
|
85
80
|
import "./chunk-5S7W3TUO.js";
|
|
86
81
|
import {
|
|
87
82
|
decodableAudioStream
|
|
88
83
|
} from "./chunk-D3MUHMFG.js";
|
|
89
|
-
import "./chunk-
|
|
84
|
+
import "./chunk-QUXWS5UG.js";
|
|
90
85
|
import "./chunk-YWRUQ7XZ.js";
|
|
91
|
-
import "./chunk-
|
|
92
|
-
import "./chunk-
|
|
86
|
+
import "./chunk-BYRXSKIY.js";
|
|
87
|
+
import "./chunk-W5OBRMZ6.js";
|
|
93
88
|
import "./chunk-VC76R6W2.js";
|
|
94
89
|
import "./chunk-OFQWTKPW.js";
|
|
95
90
|
import "./chunk-RQVDTPGD.js";
|
|
@@ -124,12 +119,18 @@ import "./chunk-32NEJ553.js";
|
|
|
124
119
|
import "./chunk-K4WIOZFP.js";
|
|
125
120
|
import "./chunk-ZCHULPJZ.js";
|
|
126
121
|
import "./chunk-ISN5GRYI.js";
|
|
122
|
+
import "./chunk-SJGE5I5F.js";
|
|
123
|
+
import {
|
|
124
|
+
failCommand,
|
|
125
|
+
failUsage,
|
|
126
|
+
finishCommand
|
|
127
|
+
} from "./chunk-DP5LF7GF.js";
|
|
127
128
|
import {
|
|
128
129
|
isUnattended
|
|
129
130
|
} from "./chunk-J3RXEDR2.js";
|
|
130
131
|
import {
|
|
131
132
|
VERSION
|
|
132
|
-
} from "./chunk-
|
|
133
|
+
} from "./chunk-UXH6E5HC.js";
|
|
133
134
|
import "./chunk-E63BDV4Z.js";
|
|
134
135
|
import "./chunk-G7VEYUZ2.js";
|
|
135
136
|
import "./chunk-XT6MXC7A.js";
|
|
@@ -713,7 +714,7 @@ async function scaffoldProject(destDir, name, templateId, media, tailwind = fals
|
|
|
713
714
|
"utf-8"
|
|
714
715
|
);
|
|
715
716
|
if (!existsSync2(resolve(destDir, "hyperframes.json"))) {
|
|
716
|
-
const { createProjectConfig, DEFAULT_PROJECT_CONFIG } = await import("./projectConfig-
|
|
717
|
+
const { createProjectConfig, DEFAULT_PROJECT_CONFIG } = await import("./projectConfig-VFKGY3XE.js");
|
|
717
718
|
const { normalizeSkillSlug } = await import("./skill-ZHVLH7KX.js");
|
|
718
719
|
const skill = normalizeSkillSlug(authoringSkill);
|
|
719
720
|
createProjectConfig(
|
|
@@ -734,7 +735,7 @@ async function scaffoldProject(destDir, name, templateId, media, tailwind = fals
|
|
|
734
735
|
}
|
|
735
736
|
}
|
|
736
737
|
async function keepSkillsCurrent(destDir) {
|
|
737
|
-
const { updateSkills } = await import("./skills-
|
|
738
|
+
const { updateSkills } = await import("./skills-P3BI55YP.js");
|
|
738
739
|
console.log();
|
|
739
740
|
console.log(c.bold("Checking AI coding skills against GitHub..."));
|
|
740
741
|
try {
|
|
@@ -845,7 +846,7 @@ var init_default = defineCommand({
|
|
|
845
846
|
npx hyperframes init ${args.name ?? "my-video"} --example "${args.template}"`
|
|
846
847
|
)
|
|
847
848
|
);
|
|
848
|
-
|
|
849
|
+
failUsage();
|
|
849
850
|
}
|
|
850
851
|
if (args["video-legacy"] !== void 0) {
|
|
851
852
|
console.error(
|
|
@@ -854,7 +855,7 @@ var init_default = defineCommand({
|
|
|
854
855
|
npx hyperframes init ${args.name ?? "my-video"} --video "${args["video-legacy"]}"`
|
|
855
856
|
)
|
|
856
857
|
);
|
|
857
|
-
|
|
858
|
+
failUsage();
|
|
858
859
|
}
|
|
859
860
|
const exampleFlag = args.example;
|
|
860
861
|
const videoFlag = args.video;
|
|
@@ -898,7 +899,7 @@ var init_default = defineCommand({
|
|
|
898
899
|
}
|
|
899
900
|
if (videoFlag && audioFlag) {
|
|
900
901
|
console.error(c.error("Cannot use --video and --audio together"));
|
|
901
|
-
|
|
902
|
+
failUsage();
|
|
902
903
|
}
|
|
903
904
|
const videoPath = videoFlag ? resolve(videoFlag) : void 0;
|
|
904
905
|
if (videoPath && !existsSync2(videoPath)) {
|
|
@@ -930,17 +931,17 @@ var init_default = defineCommand({
|
|
|
930
931
|
if (audioPath) {
|
|
931
932
|
sourceFilePath2 = audioPath;
|
|
932
933
|
copyFileSync(audioPath, resolve(destDir2, basename(audioPath)));
|
|
933
|
-
const { getMediaDurationSeconds } = await import("./transcribe-
|
|
934
|
+
const { getMediaDurationSeconds } = await import("./transcribe-HR6BFDUR.js");
|
|
934
935
|
videoDuration2 = getMediaDurationSeconds(audioPath) ?? void 0;
|
|
935
936
|
console.log(`Audio: ${basename(audioPath)}`);
|
|
936
937
|
}
|
|
937
938
|
if (sourceFilePath2 && !skipTranscribe) {
|
|
938
939
|
try {
|
|
939
|
-
const { ensureWhisper, ensureModel } = await import("./manager-
|
|
940
|
+
const { ensureWhisper, ensureModel } = await import("./manager-D6TE4ENP.js");
|
|
940
941
|
await ensureWhisper();
|
|
941
942
|
await ensureModel(initialTranscriptionModel);
|
|
942
943
|
console.log("Transcribing...");
|
|
943
|
-
const { transcribe: runTranscribe } = await import("./transcribe-
|
|
944
|
+
const { transcribe: runTranscribe } = await import("./transcribe-HR6BFDUR.js");
|
|
944
945
|
const result = await runTranscribe(sourceFilePath2, destDir2, {
|
|
945
946
|
model: modelFlag,
|
|
946
947
|
language: languageFlag
|
|
@@ -1086,7 +1087,7 @@ var init_default = defineCommand({
|
|
|
1086
1087
|
mkdirSync(destDir, { recursive: true });
|
|
1087
1088
|
sourceFilePath = audioPath;
|
|
1088
1089
|
copyFileSync(audioPath, resolve(destDir, basename(audioPath)));
|
|
1089
|
-
const { getMediaDurationSeconds } = await import("./transcribe-
|
|
1090
|
+
const { getMediaDurationSeconds } = await import("./transcribe-HR6BFDUR.js");
|
|
1090
1091
|
videoDuration = getMediaDurationSeconds(audioPath) ?? void 0;
|
|
1091
1092
|
R.info(`Audio copied to ${c.accent(basename(audioPath))}`);
|
|
1092
1093
|
}
|
|
@@ -1096,7 +1097,7 @@ var init_default = defineCommand({
|
|
|
1096
1097
|
initialValue: true
|
|
1097
1098
|
});
|
|
1098
1099
|
if (!q(transcribeChoice) && transcribeChoice) {
|
|
1099
|
-
const { findWhisper } = await import("./manager-
|
|
1100
|
+
const { findWhisper } = await import("./manager-D6TE4ENP.js");
|
|
1100
1101
|
const needsInstall = findWhisper() === void 0;
|
|
1101
1102
|
if (needsInstall) {
|
|
1102
1103
|
R.info(c.dim("whisper-cpp not found \u2014 installing automatically..."));
|
|
@@ -1106,7 +1107,7 @@ var init_default = defineCommand({
|
|
|
1106
1107
|
needsInstall ? "Installing whisper-cpp (this may take a moment)..." : "Preparing transcription..."
|
|
1107
1108
|
);
|
|
1108
1109
|
try {
|
|
1109
|
-
const { ensureWhisper, ensureModel } = await import("./manager-
|
|
1110
|
+
const { ensureWhisper, ensureModel } = await import("./manager-D6TE4ENP.js");
|
|
1110
1111
|
await ensureWhisper({
|
|
1111
1112
|
onProgress: (msg) => spin2.message(msg)
|
|
1112
1113
|
});
|
|
@@ -1114,7 +1115,7 @@ var init_default = defineCommand({
|
|
|
1114
1115
|
onProgress: (msg) => spin2.message(msg)
|
|
1115
1116
|
});
|
|
1116
1117
|
spin2.message("Transcribing audio...");
|
|
1117
|
-
const { transcribe: runTranscribe } = await import("./transcribe-
|
|
1118
|
+
const { transcribe: runTranscribe } = await import("./transcribe-HR6BFDUR.js");
|
|
1118
1119
|
const transcribeResult = await runTranscribe(sourceFilePath, destDir, {
|
|
1119
1120
|
model: modelFlag,
|
|
1120
1121
|
language: languageFlag,
|
|
@@ -1192,7 +1193,7 @@ ${c.dim("Use --example blank for offline use.")}`
|
|
|
1192
1193
|
}
|
|
1193
1194
|
R.info("Opening studio preview...");
|
|
1194
1195
|
try {
|
|
1195
|
-
const previewCmd = await import("./preview-
|
|
1196
|
+
const previewCmd = await import("./preview-TVRM75FN.js").then((m) => m.default);
|
|
1196
1197
|
await runCommand(previewCmd, { rawArgs: [destDir] });
|
|
1197
1198
|
} catch {
|
|
1198
1199
|
}
|
|
@@ -6,62 +6,61 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
createInspectCommand
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-YVT5IU6J.js";
|
|
10
10
|
import "./chunk-TQBQYO4L.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-KZZWYIEB.js";
|
|
12
|
+
import "./chunk-DVVTBVKA.js";
|
|
13
|
+
import "./chunk-5TQ4AEPF.js";
|
|
14
14
|
import "./chunk-X7MTZ4T2.js";
|
|
15
15
|
import "./chunk-XUHOIDKG.js";
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-W55BW7KA.js";
|
|
17
|
+
import "./chunk-SXTWQ7CH.js";
|
|
18
18
|
import "./chunk-CTZJSMGU.js";
|
|
19
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-ZCYSQ3NQ.js";
|
|
20
20
|
import "./chunk-24F7TOW2.js";
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-FW6CYA5D.js";
|
|
22
|
+
import "./chunk-R5B6GXQM.js";
|
|
23
23
|
import "./chunk-ALVXFXUG.js";
|
|
24
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-7ZAVTGGT.js";
|
|
25
25
|
import "./chunk-7J6LQ3SQ.js";
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-UE4CXHMF.js";
|
|
27
|
+
import "./chunk-V6OSE6VT.js";
|
|
28
|
+
import "./chunk-5ZBMHUY2.js";
|
|
29
29
|
import "./chunk-EHSBBBR2.js";
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-A2WPZE2R.js";
|
|
31
|
+
import "./chunk-F5XADOGC.js";
|
|
32
32
|
import "./chunk-XT7X6QCP.js";
|
|
33
33
|
import "./chunk-5YPMCCCA.js";
|
|
34
34
|
import "./chunk-HVW7ABXD.js";
|
|
35
|
-
import "./chunk-
|
|
35
|
+
import "./chunk-Y3U7ECBH.js";
|
|
36
36
|
import "./chunk-JHOCK3DG.js";
|
|
37
|
-
import "./chunk-
|
|
38
|
-
import "./chunk-
|
|
37
|
+
import "./chunk-XGXTZNES.js";
|
|
38
|
+
import "./chunk-45JN2GIZ.js";
|
|
39
39
|
import "./chunk-AWDFDFI3.js";
|
|
40
40
|
import "./chunk-P6LJ4Y32.js";
|
|
41
41
|
import "./chunk-T2WJO4XM.js";
|
|
42
42
|
import "./chunk-W4DMQZL5.js";
|
|
43
|
-
import "./chunk-
|
|
44
|
-
import "./chunk-
|
|
43
|
+
import "./chunk-RDZKBIEB.js";
|
|
44
|
+
import "./chunk-XEWMJWNW.js";
|
|
45
45
|
import "./chunk-A4ZTSQLW.js";
|
|
46
|
-
import "./chunk-
|
|
47
|
-
import "./chunk-
|
|
48
|
-
import "./chunk-
|
|
46
|
+
import "./chunk-GVE6I5EL.js";
|
|
47
|
+
import "./chunk-EC77ZBCP.js";
|
|
48
|
+
import "./chunk-EQGKUPBJ.js";
|
|
49
49
|
import "./chunk-DL4OD7IA.js";
|
|
50
50
|
import "./chunk-S3S4TGEH.js";
|
|
51
51
|
import "./chunk-54HJ63Q2.js";
|
|
52
|
-
import "./chunk-LALLQUSK.js";
|
|
53
52
|
import "./chunk-2GICKZ3I.js";
|
|
54
|
-
import "./chunk-
|
|
53
|
+
import "./chunk-G6OKQMJI.js";
|
|
55
54
|
import "./chunk-EVMY7IPL.js";
|
|
56
55
|
import "./chunk-7FMUTGOH.js";
|
|
57
|
-
import "./chunk-
|
|
56
|
+
import "./chunk-OL5E4Y4L.js";
|
|
58
57
|
import "./chunk-Z5J67X44.js";
|
|
59
58
|
import "./chunk-5S7W3TUO.js";
|
|
60
59
|
import "./chunk-D3MUHMFG.js";
|
|
61
|
-
import "./chunk-
|
|
60
|
+
import "./chunk-QUXWS5UG.js";
|
|
62
61
|
import "./chunk-YWRUQ7XZ.js";
|
|
63
|
-
import "./chunk-
|
|
64
|
-
import "./chunk-
|
|
62
|
+
import "./chunk-BYRXSKIY.js";
|
|
63
|
+
import "./chunk-W5OBRMZ6.js";
|
|
65
64
|
import "./chunk-VC76R6W2.js";
|
|
66
65
|
import "./chunk-OFQWTKPW.js";
|
|
67
66
|
import "./chunk-RQVDTPGD.js";
|
|
@@ -85,12 +84,14 @@ import "./chunk-2RY2LWAA.js";
|
|
|
85
84
|
import "./chunk-3422KMTD.js";
|
|
86
85
|
import "./chunk-WC4MTXGN.js";
|
|
87
86
|
import "./chunk-32NEJ553.js";
|
|
88
|
-
import "./chunk-
|
|
87
|
+
import "./chunk-NGSENR4J.js";
|
|
89
88
|
import "./chunk-K4WIOZFP.js";
|
|
90
89
|
import "./chunk-ZCHULPJZ.js";
|
|
91
90
|
import "./chunk-ISN5GRYI.js";
|
|
91
|
+
import "./chunk-SJGE5I5F.js";
|
|
92
|
+
import "./chunk-DP5LF7GF.js";
|
|
92
93
|
import "./chunk-J3RXEDR2.js";
|
|
93
|
-
import "./chunk-
|
|
94
|
+
import "./chunk-UXH6E5HC.js";
|
|
94
95
|
import "./chunk-E63BDV4Z.js";
|
|
95
96
|
import "./chunk-G7VEYUZ2.js";
|
|
96
97
|
import "./chunk-XT6MXC7A.js";
|
|
@@ -10,14 +10,14 @@ import {
|
|
|
10
10
|
prepareItem,
|
|
11
11
|
publishItem,
|
|
12
12
|
recordRewrittenInstall
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import "./chunk-
|
|
13
|
+
} from "./chunk-XGXTZNES.js";
|
|
14
|
+
import "./chunk-45JN2GIZ.js";
|
|
15
15
|
import "./chunk-AWDFDFI3.js";
|
|
16
16
|
import "./chunk-P6LJ4Y32.js";
|
|
17
17
|
import "./chunk-T2WJO4XM.js";
|
|
18
18
|
import "./chunk-YWRUQ7XZ.js";
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-BYRXSKIY.js";
|
|
20
|
+
import "./chunk-W5OBRMZ6.js";
|
|
21
21
|
import "./chunk-VC76R6W2.js";
|
|
22
22
|
import "./chunk-OFQWTKPW.js";
|
|
23
23
|
import "./chunk-RQVDTPGD.js";
|
|
@@ -9,17 +9,16 @@ import {
|
|
|
9
9
|
} from "./chunk-ZBAF6L74.js";
|
|
10
10
|
import {
|
|
11
11
|
resolveProject
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-KZZWYIEB.js";
|
|
13
|
+
import "./chunk-5ZBMHUY2.js";
|
|
14
|
+
import "./chunk-GVE6I5EL.js";
|
|
15
|
+
import "./chunk-EC77ZBCP.js";
|
|
16
|
+
import "./chunk-EQGKUPBJ.js";
|
|
17
17
|
import {
|
|
18
18
|
defineCommand
|
|
19
19
|
} from "./chunk-DL4OD7IA.js";
|
|
20
20
|
import "./chunk-S3S4TGEH.js";
|
|
21
21
|
import "./chunk-54HJ63Q2.js";
|
|
22
|
-
import "./chunk-LALLQUSK.js";
|
|
23
22
|
import {
|
|
24
23
|
c
|
|
25
24
|
} from "./chunk-2GICKZ3I.js";
|
|
@@ -42,12 +41,14 @@ import {
|
|
|
42
41
|
import "./chunk-32NEJ553.js";
|
|
43
42
|
import {
|
|
44
43
|
withMeta
|
|
45
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-NGSENR4J.js";
|
|
46
45
|
import "./chunk-K4WIOZFP.js";
|
|
47
46
|
import "./chunk-ZCHULPJZ.js";
|
|
48
47
|
import "./chunk-ISN5GRYI.js";
|
|
48
|
+
import "./chunk-SJGE5I5F.js";
|
|
49
|
+
import "./chunk-DP5LF7GF.js";
|
|
49
50
|
import "./chunk-J3RXEDR2.js";
|
|
50
|
-
import "./chunk-
|
|
51
|
+
import "./chunk-UXH6E5HC.js";
|
|
51
52
|
import "./chunk-E63BDV4Z.js";
|
|
52
53
|
import "./chunk-G7VEYUZ2.js";
|
|
53
54
|
import "./chunk-XT6MXC7A.js";
|
|
@@ -2543,7 +2544,7 @@ function printOnionShotSaved(saved, elementCount) {
|
|
|
2543
2544
|
console.log();
|
|
2544
2545
|
}
|
|
2545
2546
|
async function runOnionShot(comps, allComps, projectDir, entryFile, args) {
|
|
2546
|
-
const { captureMotionPathShot } = await import("./motionShot-
|
|
2547
|
+
const { captureMotionPathShot } = await import("./motionShot-XYW2HMVI.js");
|
|
2547
2548
|
const requests = collectShotSelectors(args.selector ? allComps : comps);
|
|
2548
2549
|
const guardError = onionShotGuardError(projectDir, requests, args.ghost ?? false);
|
|
2549
2550
|
if (guardError) {
|