hyperframes 0.8.201 → 0.8.202
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-33XNCMY4.js → add-YC7QXNDO.js} +12 -12
- package/dist/{animatedGifPrep-MI7Z4OYQ.js → animatedGifPrep-SFHFVFFE.js} +6 -6
- package/dist/api.js +14 -14
- package/dist/{asset-RMRQN24O.js → asset-5E5BQ6BR.js} +2 -2
- package/dist/{assetCataloger-KWTQNFUU.js → assetCataloger-F6YSU3H6.js} +6 -6
- package/dist/{audio-SQDZZS6X.js → audio-UZKBYVZ5.js} +12 -12
- package/dist/{auth-PNC6K5ZD.js → auth-5DWW5DMO.js} +1 -1
- package/dist/{autoUpdate-MBZFLUF2.js → autoUpdate-D6HTQGOE.js} +2 -2
- package/dist/{backgroundChecks-ZMSPA6TK.js → backgroundChecks-FW4MBBK2.js} +3 -3
- package/dist/backgroundChecksWorker.js +3 -3
- package/dist/{batchRender-2MMOZRMW.js → batchRender-DXD5THWY.js} +4 -4
- package/dist/{beats-GDLNPR4A.js → beats-WRF4CRL7.js} +8 -8
- package/dist/{benchmark-AUKB3XDF.js → benchmark-NDCR2AAG.js} +9 -9
- package/dist/{browser-C3AU5TST.js → browser-KSG6M66G.js} +3 -3
- package/dist/{bundleWithLocalizedFonts-G3UT65XI.js → bundleWithLocalizedFonts-GJ2UYZ6E.js} +2 -2
- package/dist/{capture-XGBPNGC5.js → capture-DTF47QX3.js} +2 -2
- package/dist/{capture-EKNPCFPF.js → capture-FRVDEVPB.js} +9 -9
- package/dist/{captureCompositionFrame-4HHLPTDH.js → captureCompositionFrame-IC3MEOJR.js} +11 -11
- package/dist/{catalog-HLDNEJX3.js → catalog-TX3BMPOA.js} +12 -12
- package/dist/{catch-up-LRFV4LJO.js → catch-up-YMVIJI2W.js} +4 -4
- package/dist/{check-XWHWGNYE.js → check-2LBOZR6Z.js} +35 -35
- package/dist/{checkBrowser-KSOBXPJ3.js → checkBrowser-56C73ZNX.js} +29 -29
- package/dist/{chunk-DS3XITZ5.js → chunk-24PUQCZO.js} +2 -2
- package/dist/{chunk-ITJAHKYO.js → chunk-3HTXEXQ6.js} +1 -1
- package/dist/{chunk-UOSTDTBF.js → chunk-4OPDZMV6.js} +1 -1
- package/dist/{chunk-GC6N2LH5.js → chunk-5KPZ4QAS.js} +5 -5
- package/dist/{chunk-YBJECXQJ.js → chunk-73BGPSUW.js} +3 -3
- package/dist/{chunk-UKB62QOT.js → chunk-75KIZWAD.js} +2 -2
- package/dist/{chunk-AK2MOAJY.js → chunk-7J4GQHSG.js} +10 -10
- package/dist/{chunk-QXBZ6VBL.js → chunk-7KGCJQGS.js} +1 -1
- package/dist/{chunk-LVEXHBSH.js → chunk-ABTBAQDB.js} +1 -1
- package/dist/{chunk-TAXGZAXM.js → chunk-ANH7DV34.js} +9 -9
- package/dist/{chunk-A7YO6YSD.js → chunk-AQLRXGNN.js} +5 -5
- package/dist/{chunk-GNX3BCQP.js → chunk-AQVLMH5C.js} +1 -1
- package/dist/{chunk-JOI7TNCX.js → chunk-B22YBW5W.js} +1 -1
- package/dist/{chunk-Q6SHXSZX.js → chunk-B2OUZUY5.js} +1 -1
- package/dist/{chunk-7EJ7OZGC.js → chunk-BIV4FVEN.js} +1 -1
- package/dist/{chunk-YTBE4JCX.js → chunk-BU6XD7H2.js} +1 -1
- package/dist/{chunk-I4DHHX7E.js → chunk-BUIJG2BQ.js} +3 -3
- package/dist/{chunk-Q537KXWA.js → chunk-CL6ZTNQH.js} +180 -54
- package/dist/{chunk-B67P2WP3.js → chunk-COHU6S2X.js} +2 -2
- package/dist/{chunk-XG365L6T.js → chunk-CXTXB2LZ.js} +1 -1
- package/dist/{chunk-XONIZ5CH.js → chunk-DMZ3SCCU.js} +107 -19
- package/dist/{chunk-VKTUZP7U.js → chunk-DYDFCX4L.js} +1 -1
- package/dist/{chunk-MSGWR7WP.js → chunk-E3F5L6AB.js} +29 -0
- package/dist/{chunk-CD5ZU6PN.js → chunk-EPZXTQOO.js} +5 -5
- package/dist/{chunk-47NZWTJL.js → chunk-FWS2ZWV6.js} +2 -2
- package/dist/{chunk-SZNCAINN.js → chunk-GZCACSED.js} +1 -1
- package/dist/{chunk-SEAHCCQ4.js → chunk-I64A5P5H.js} +1 -1
- package/dist/{chunk-53E45AKI.js → chunk-IB6ICAI7.js} +9 -9
- package/dist/{chunk-QTWSMJ22.js → chunk-IKX2UHEM.js} +12 -12
- package/dist/{chunk-X72DJZCM.js → chunk-J3CZK6PI.js} +1 -1
- package/dist/{chunk-GKXH4C2B.js → chunk-JCS7WFRM.js} +1 -1
- package/dist/{chunk-3J5KO4EJ.js → chunk-JNBHYUEU.js} +3 -3
- package/dist/{chunk-TOT3CLUK.js → chunk-KFJMWPZT.js} +1 -1
- package/dist/{chunk-T33GLS6C.js → chunk-L5IKISP2.js} +3 -3
- package/dist/{chunk-74UH2KGI.js → chunk-LEQU6P6H.js} +2 -2
- package/dist/{chunk-FDWN4XAD.js → chunk-LMRTEJYY.js} +1 -1
- package/dist/{chunk-QYTGUWNF.js → chunk-MO4VKSFT.js} +1 -1
- package/dist/{chunk-IIH24PKY.js → chunk-MS4BAXOQ.js} +2 -2
- package/dist/{chunk-SIZYTGG4.js → chunk-NT3L4IMM.js} +1 -1
- package/dist/{chunk-IHQBTZHE.js → chunk-NZEASM7M.js} +1 -1
- package/dist/{chunk-7WEGIXI3.js → chunk-OJDOYHPQ.js} +1 -1
- package/dist/chunk-PH5PJY5Z.js +39 -0
- package/dist/{chunk-XHVQIOOF.js → chunk-PI256PSW.js} +24 -18
- package/dist/{chunk-RVKJDAYE.js → chunk-PLL6VC4F.js} +1 -1
- package/dist/{chunk-6UFEOVR5.js → chunk-PYS6IKKM.js} +1 -1
- package/dist/{chunk-57GN6KWT.js → chunk-PZIWSVMO.js} +11 -1
- package/dist/{chunk-VCVUEK65.js → chunk-QDEZ7LRH.js} +2 -2
- package/dist/{chunk-6XGO7ZKS.js → chunk-QGB5DECO.js} +1 -1
- package/dist/chunk-QTGKDF7D.js +3983 -0
- package/dist/{chunk-UIIGEPYY.js → chunk-QXQ74PYD.js} +2 -2
- package/dist/{chunk-K2AUGELJ.js → chunk-QZTFCWG7.js} +1 -1
- package/dist/{chunk-U2EK5MFR.js → chunk-REFMKHRE.js} +9 -9
- package/dist/{chunk-IFOZZYHK.js → chunk-REUZB3HL.js} +7 -7
- package/dist/{chunk-WO3XZ6HC.js → chunk-RFZJGC6V.js} +1 -1
- package/dist/{chunk-IDRUJFT4.js → chunk-RNLJJDGE.js} +2 -2
- package/dist/{chunk-2FA53V5S.js → chunk-SQNPFWFM.js} +2 -2
- package/dist/{chunk-L33EDCSR.js → chunk-TOFL5P27.js} +5 -5
- package/dist/{chunk-SGKG7DNX.js → chunk-UI7YYCN2.js} +2 -2
- package/dist/{chunk-VF2VMKNI.js → chunk-UMGDRGF5.js} +2 -2
- package/dist/{chunk-DWULQYOQ.js → chunk-V6MTGX7B.js} +3 -3
- package/dist/{chunk-TYRDDIIH.js → chunk-VOKI2HSE.js} +1 -1
- package/dist/{chunk-ORMTNJBS.js → chunk-WAXBJLV6.js} +3 -3
- package/dist/{chunk-ZDVJXWEG.js → chunk-Z4PSJSDF.js} +2 -2
- package/dist/{clean-EUKURSX2.js → clean-LFPT6GNS.js} +15 -15
- package/dist/cli.js +53 -53
- package/dist/{cloud-LJDRNQ2N.js → cloud-XX5XB277.js} +4 -4
- package/dist/{cloudrun-AXVFD6KV.js → cloudrun-ANWC6QGV.js} +6 -6
- package/dist/{compare-T3LMATAF.js → compare-CISKXIRF.js} +26 -26
- package/dist/{compiler-KH6DMHIJ.js → compiler-XYZMBTYR.js} +3 -3
- package/dist/{component-2FOHCMP2.js → component-D4JJIDOC.js} +3 -3
- package/dist/{compositions-REQ6ARAO.js → compositions-UGRTLUBT.js} +10 -10
- package/dist/{delete-KEPP2QAZ.js → delete-TPH7N5PK.js} +2 -2
- package/dist/{deploy-N756FEME.js → deploy-ZUXLAVVX.js} +72 -20
- package/dist/{deterministicFonts-4FULD3AS.js → deterministicFonts-NQ6KL66D.js} +2 -2
- package/dist/{dist-5ULOGA6A.js → dist-UXLDRI4D.js} +5 -3
- package/dist/{doctor-2SJPC4WZ.js → doctor-LVOS4EDV.js} +10 -10
- package/dist/{events-24ZE2PKB.js → events-FIWA6UBT.js} +3 -3
- package/dist/{events-U53QH4XZ.js → events-UHIKJIWA.js} +2 -2
- package/dist/{feedback-QFMLDLUN.js → feedback-SPOCVRKJ.js} +8 -8
- package/dist/{ffmpeg-7XNWNO7M.js → ffmpeg-7SDXE5P5.js} +6 -6
- package/dist/{figma-B4JO44CV.js → figma-ONGILUUE.js} +3 -3
- package/dist/fontLocalizeCli.js +9 -9
- package/dist/{get-7CFVCINR.js → get-W7ADZ5XS.js} +2 -2
- package/dist/{gpuPolicy-MU7CFSAF.js → gpuPolicy-GETTDB3G.js} +6 -6
- package/dist/{grade-compare-Q23U2HGS.js → grade-compare-YIIQJNL3.js} +27 -27
- package/dist/{help-M67MEDV3.js → help-HSKEDFT6.js} +1 -1
- package/dist/{history-I2PZXOFL.js → history-JS6QALDS.js} +6 -6
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +48 -48
- package/dist/hyperframes-player.global.js +1 -1
- package/dist/{info-Z2MX54IE.js → info-BIIA6M7Q.js} +8 -8
- package/dist/{init-SWH5KZO2.js → init-TGDKBWUY.js} +26 -26
- package/dist/{inspect-WBBDB3YS.js → inspect-MVMUFUHY.js} +27 -27
- package/dist/{installer-DQIHGUBJ.js → installer-HITNNXHY.js} +5 -5
- package/dist/{keyframes-PSNEUS6P.js → keyframes-XJ7DUUBW.js} +6 -6
- package/dist/{lambda-KSZFMQ3L.js → lambda-4C7APDR5.js} +23 -11
- package/dist/{layout-AAOI7W2M.js → layout-O3LEAM7S.js} +27 -27
- package/dist/{lint-GGNVITIK.js → lint-72FKMBD2.js} +6 -6
- package/dist/{list-OFPDL2AM.js → list-YUK5VA2D.js} +2 -2
- package/dist/{login-MZAHGGP4.js → login-TXBDKLOH.js} +4 -4
- package/dist/{manager-ZOFTZTRY.js → manager-APB2JLSH.js} +7 -7
- package/dist/{media-treatment-PF67GSUD.js → media-treatment-GMP4JL46.js} +12 -12
- package/dist/{models-WR7CL54R.js → models-DW22WMQ5.js} +10 -10
- package/dist/{motionShot-ISLDWLIU.js → motionShot-UQJVQT76.js} +14 -14
- package/dist/{normalize-audio-D7AH5GFZ.js → normalize-audio-4KYSZBWI.js} +8 -8
- package/dist/{open-HPVBB2CX.js → open-HNYN6VM2.js} +12 -12
- package/dist/{parakeetRunner-P6PE4WXG.js → parakeetRunner-SJ2QW77R.js} +11 -11
- package/dist/{pipeline-XKBZG2CM.js → pipeline-MG2W6NIW.js} +7 -7
- package/dist/{play-QXHO47ZH.js → play-ZQ6RNKIE.js} +18 -18
- package/dist/{preflight-KZCU66ES.js → preflight-HSQEJNA2.js} +7 -7
- package/dist/{present-ERGC5PR4.js → present-7M3W5E3Q.js} +14 -14
- package/dist/{preview-AGTOQIE7.js → preview-TT5Z6JK6.js} +17 -17
- package/dist/{producer-4ONVM5A2.js → producer-B2Y4IKZS.js} +1 -1
- package/dist/{projectConfig-7T4VY6RJ.js → projectConfig-VZVY6ZZP.js} +7 -7
- package/dist/{publication-J5TS5VR3.js → publication-SRAYE6LT.js} +3 -3
- package/dist/{publish-BSOVXRF4.js → publish-3QMV3Q7B.js} +9 -9
- package/dist/{remove-background-645NVCGL.js → remove-background-5GA2S5OI.js} +8 -8
- package/dist/{render-IAVH33YG.js → render-LN24E3OI.js} +14 -14
- package/dist/{render-55TYPJ5U.js → render-W3VX647V.js} +16 -14
- package/dist/{render-R3L44QAP.js → render-WRLXYVSQ.js} +27 -27
- package/dist/{render-batch-JWWLQ7ZC.js → render-batch-C73ELOQ7.js} +16 -14
- package/dist/{resolver-DBAFWC4F.js → resolver-ALD2ZELQ.js} +5 -5
- package/dist/{sherpa-UPWG6TKY.js → sherpa-AHD5UPU3.js} +10 -10
- package/dist/skills/hyperframes-cli/references/lambda.md +1 -0
- package/dist/{skills-ILH52UL4.js → skills-WYJGVMR5.js} +5 -5
- package/dist/{skillsUpdateCheck-ZHFDGMEL.js → skillsUpdateCheck-OHEGRQ2N.js} +3 -3
- package/dist/{snapshot-WMVHIQVQ.js → snapshot-S6CGQACZ.js} +32 -32
- package/dist/{src-HPLELQRK.js → src-DAW4JYSR.js} +5 -5
- package/dist/{src-46QTOHZE.js → src-I6WD5SMQ.js} +8 -8
- package/dist/{staticProjectServer-FHP2YQFV.js → staticProjectServer-3BFEACQ6.js} +15 -15
- package/dist/studio/assets/{hyperframes-player-BNeO6YSP.js → hyperframes-player-DnrkDR-_.js} +1 -1
- package/dist/studio/assets/{index-CZWE0FI8.js → index-BhFxhBMA.js} +4 -4
- package/dist/studio/assets/{index-DiNYtcMK.js → index-WFQeAouT.js} +1 -1
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-5YHQ4Y2D.js → studio-api-2O6R4CM5.js} +8 -8
- package/dist/{studioServer-P6IC76SV.js → studioServer-6ZSAJBVY.js} +45 -45
- package/dist/{telemetry-WZ7OGFWQ.js → telemetry-WFLPGSUG.js} +3 -3
- package/dist/{timeline-U6S7BGMI.js → timeline-BZJH266Q.js} +16 -16
- package/dist/{tokens-FPUYNZSV.js → tokens-5TX42ZMQ.js} +2 -2
- package/dist/{transcribe-DJX4E2PE.js → transcribe-IEYR46HB.js} +15 -15
- package/dist/{transcribe-DZHTKXI5.js → transcribe-WPFFLNTS.js} +9 -9
- package/dist/{updateCheck-2LHWRDE7.js → updateCheck-TESZGKRJ.js} +2 -2
- package/dist/{upgrade-WAQHCAUS.js → upgrade-3EW4MYS7.js} +2 -2
- package/dist/{urlDownloader-HZQPXQET.js → urlDownloader-JULHEBLS.js} +5 -5
- package/dist/{validate-D6XJ7OSS.js → validate-RSJPGXUZ.js} +21 -21
- package/dist/{video-A4CQ4WDL.js → video-TW4TSAM4.js} +6 -6
- package/dist/warmCheck.js +35 -35
- package/package.json +1 -1
- package/dist/chunk-JXLHLR26.js +0 -40
- package/dist/chunk-ZKHXN2BV.js +0 -3983
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var HyperframesPlayer=(()=>{var ze=Object.defineProperty;var ri=Object.getOwnPropertyDescriptor;var oi=Object.getOwnPropertyNames;var ai=Object.prototype.hasOwnProperty;var si=(t,e)=>{for(var n in e)ze(t,n,{get:e[n],enumerable:!0})},ui=(t,e,n,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of oi(e))!ai.call(t,r)&&r!==n&&ze(t,r,{get:()=>e[r],enumerable:!(i=ri(e,r))||i.enumerable});return t};var li=t=>ui(ze({},"__esModule",{value:!0}),t);var no={};si(no,{HyperframesPlayer:()=>Ge,SPEED_PRESETS:()=>ct,formatSpeed:()=>U,formatTime:()=>Le});var Pt=t=>t!==null&&Number.isFinite(t)&&t>0;function Se(t){let e=t.clipEndsSeconds.filter(i=>i===null).length;if(Pt(t.authoredDurationSeconds))return{seconds:t.authoredDurationSeconds,source:"authored",pendingClips:e};let n=t.clipEndsSeconds.filter(Pt);return n.length>0?{seconds:Math.max(...n),source:"derived",pendingClips:e}:{seconds:null,source:"unresolved",pendingClips:e,reason:e>0?"every clip's length is still pending":"no authored duration and no clip with a length"}}var di="http://www.w3.org/1999/xhtml";function Nt(t){return t!=null&&t.nodeType===1}function qe(t){return Nt(t)&&t.namespaceURI===di}function je(t,e){return qe(t)&&t.localName===e}function ci(t){return je(t,"video")}function mi(t){return je(t,"audio")}function M(t){return ci(t)||mi(t)}function Ye(t){return je(t,"img")}function Te(t){if(t==null||t.trim()==="")return null;let e=Number.parseInt(t,10);return Number.isFinite(e)&&e>0?e:null}function Q(t=document){let e=t.querySelector('[data-composition-id][data-root="true"]');return qe(e)?e:t.querySelector("[data-composition-id]")}var $=Object.freeze({start:"data-start",duration:"data-duration",trackIndex:"data-track-index",derivedEnd:"data-end",legacyTrack:"data-layer"}),uo=Object.freeze([$.start,$.duration,$.trackIndex]),lo=Object.freeze([$.derivedEnd]),co=Object.freeze([$.derivedEnd,$.legacyTrack]);function Xe(t){if(t==null||t.trim()==="")return null;let e=Number(t);return Number.isFinite(e)?e:null}var Lt=t=>{let e=Xe(t);return e!==null&&e>=0?e:null};function Ot(t){return Lt(t("data-playback-start"))??Lt(t("data-media-start"))??0}var ee=.1,te=10;function Ke(t){return Number.isFinite(t)&&t>0?Math.max(ee,Math.min(te,t)):1}function Ft(t,e=1){let n=Number.parseFloat(t("data-playback-rate")??"");return Ke(Number.isFinite(n)&&n>0?n:e)}function Je(t){let e=Xe(t("data-duration"));return e!==null&&e>0?e:null}function Vt(t,e){let n=Je(t);if(n!==null)return n;let i=Xe(t("data-end"));return i!==null?i-e:null}var pi=3;function Ze(t,e,n){return Number.isFinite(t)?Math.max(0,t-e)/Ke(n):null}function Qe(t){let{tag:e,authoredDurationSeconds:n,sourceDurationSeconds:i,mediaStartSeconds:r,playbackRate:o}=t;if(n!==null&&n>0)return{seconds:n,source:"authored"};if(e==="img")return{seconds:pi,source:"default"};if(i===null)return{seconds:null,source:"pending",reason:"source duration not yet probed"};let a=Ze(i,r,o);return a===null?{seconds:null,source:"pending",reason:"source reported a non-finite duration"}:{seconds:a,source:"media"}}var Ht="data-fx-chain",po=Ht.slice(5);var ne=(t="frequency",e="Frequency",n=1e3,i=20,r=2e4)=>({kind:"number",key:t,label:e,unit:"Hz",min:i,max:r,step:1,default:n,scale:"log",automatable:!0}),et=(t=.707,e="Bandwidth: higher is narrower.")=>({kind:"number",key:"q",label:"Q",unit:"",min:.1,max:20,step:.01,default:t,scale:"log",automatable:!0,hint:e}),Re=(t=-40,e=40,n=0)=>({kind:"number",key:"gain",label:"Gain",unit:"dB",min:t,max:e,step:.1,default:n,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."},$t=[{id:"gain",label:"Gain",group:"dynamics",description:"Raise or lower the whole signal. Automate it to duck under something else.",params:[Re(-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),Re(-40,40,0),et(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),Re(-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),Re(-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),et(.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),et(.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"}],fo=new Map($t.map(t=>[t.id,t]));var ho=$t.map(t=>t.id);function fi(t){return 10**(t/20)}var Wt=fi(12);var nt="data-automation",To=nt.slice(5),tt=1,bi=512,C=class extends Error{constructor(e){super(e),this.name="AudioAutomationError"}},xe="volume",we="rate";function Gt(t){if(t===xe)return{kind:"volume"};if(t===we)return{kind:"rate"};let e=t.split(".");if(e.length===3&&e[0]==="fx"&&e[1]===gi){let r=e[2];return r?{kind:"preset",presetId:r}:null}if(e.length!==3||e[0]!=="fx")return null;let[,n,i]=e;return!n||!i?null:{kind:"fx",nodeId:n,param:i}}var gi="preset";var _i={min:0,max:Wt,step:.01,unit:"",label:"Volume",scale:"linear",default:1};var yi={min:ee,max:te,step:.05,unit:"x",label:"Speed",scale:"log",default:1};function ie(t){if(typeof t=="number")return Number.isFinite(t)?t:null;if(typeof t=="string"&&t.trim()!==""){let e=Number(t);return Number.isFinite(e)?e:null}return null}function vi(t){let e=ie(t);return e===null||e===0?0:Math.min(1,Math.max(-1,e))}function zt(t,e){let n=ie(t),i=ie(e);if(n===null||i===null)return null;let r=s=>Math.min(.999,Math.max(.001,s)),o=r(n),a=r(i);return Math.abs(o-a)<1e-6?null:{x:o,y:a}}function Ai(t){let e=vi(t?.curve),n=zt(t?.viaX,t?.viaY);return{...e?{curve:e}:{},...n?{viaX:n.x,viaY:n.y}:{}}}function Ei(t,e){let n=ie(t?.t),i=ie(t?.v);if(n===null||i===null)return null;let r=e?Math.min(e.max,Math.max(e.min,i)):i;return{t:Math.max(0,n),v:r,...Ai(t)}}function Si(t,e){let n=t.map(r=>Ei(r,e)).filter(r=>r!==null).sort((r,o)=>r.t-o.t),i=[];for(let r of n)i.length>0&&i[i.length-1].t===r.t?i[i.length-1]=r:i.push(r);return i.slice(0,bi)}function Ti(t){let e=[];for(let n of t.lanes){if(!Gt(n.target))continue;let i=n.target===xe?_i:n.target===we?yi:null,r=Si(n.points??[],i);r.length>0&&e.push({target:n.target,points:r})}return{version:tt,lanes:e}}function qt(t){let e;try{e=JSON.parse(t)}catch(r){throw new C(`Automation is not valid JSON: ${r.message}`)}if(typeof e!="object"||e===null)throw new C("Automation must be a JSON object.");let n=e;if(n.version!==tt)throw new C(`Unsupported automation version: ${String(n.version)}`);if(!Array.isArray(n.lanes))throw new C("Automation is missing a `lanes` array.");let i=n.lanes.map((r,o)=>{if(typeof r!="object"||r===null)throw new C(`Lane ${o} is not an object.`);let a=r;if(typeof a.target!="string"||!Gt(a.target))throw new C(`Lane ${o} has an unreadable target: ${String(a.target)}`);if(!Array.isArray(a.points))throw new C(`Lane ${o} is missing a \`points\` array.`);return{target:a.target,points:a.points}});return Ti({version:tt,lanes:i})}function Ri(t,e){return e?Math.pow(t,Math.pow(2,2*e)):t}function xi(t,e){let n=t-.5,i=e-.5,r=.999,o=1e6,a=n>0?n/(r-t):n<0?-n/(t-(1-r)):0,s=i>0?i/(r-e):i<0?-i/(e-(1-r)):0,u=Math.min(o,Math.max(1,a,s));return{cx:t+n/u,cy:e+i/u,w:u}}function wi(t,e,n){let{cx:i,cy:r,w:o}=xi(e,n),a=2-2*o,s=t*a-1+2*o*i,u=-t*a-2*o*i,d=ki(s,u,t),m=1-d,b=m*m+2*o*d*m+d*d;return b>0?(2*o*r*d*m+d*d)/b:t}function ki(t,e,n){if(Math.abs(t)<1e-12)return Math.abs(e)<1e-12?n:-n/e;let i=Math.sqrt(Math.max(0,e*e-4*t*n)),r=(-e+i)/(2*t),o=(-e-i)/(2*t),a=s=>s>=-1e-9&&s<=1+1e-9;return a(r)?Math.min(1,Math.max(0,r)):a(o)?Math.min(1,Math.max(0,o)):n}function Ii(t,e){let n=zt(e.viaX,e.viaY);return n?wi(Math.min(1,Math.max(0,t)),n.x,n.y):Ri(t,e.curve)}function Mi(t,e,n,i){return i==="log"&&t>0&&e>0?Math.exp(Math.log(t)+(Math.log(e)-Math.log(t))*n):t+(e-t)*n}function ke(t,e,n="linear"){let i=t.points;if(i.length===0)return 0;let r=i[0];if(e<=r.t)return r.v;let o=i[i.length-1];if(e>=o.t)return o.v;let a=0,s=i.length-1;for(;s-a>1;){let b=a+s>>1;i[b].t<=e?a=b:s=b}let u=i[a],d=i[s],m=d.t-u.t;return m<=0?d.v:Mi(u.v,d.v,Ii((e-u.t)/m,u),n)}var Ie=new Map,Ci=64;function jt(t,e=xe){let n=`${e}\0${t}`,i=Ie.get(n);if(i!==void 0)return i;let r=null;try{r=qt(t).lanes.find(o=>o.target===e)??null}catch{r=null}return Ie.size>Ci&&Ie.clear(),Ie.set(n,r),r}var Yt=48,Xt=new WeakMap;function Di(t){let e=t.points,n=e[0].v,i=e[e.length-1].v,r=[0],o=[0],a=u=>{let d=r[r.length-1];if(u<=d)return;let m=ke(t,d,"log");r.push(u),o.push(o[o.length-1]+(m+ke(t,u,"log"))/2*(u-d))},s=Math.max(0,e[0].t);a(s);for(let u=1;u<e.length;u+=1){let d=e[u-1].t,m=e[u].t;if(!(m<=0))for(let b=1;b<=Yt;b+=1)a(Math.max(d,0)+(m-d)*b/Yt)}return{ts:Float64Array.from(r),ss:Float64Array.from(o),firstRate:n,lastRate:i}}function Pi(t){let e=Xt.get(t);return e||(e=Di(t),Xt.set(t,e)),e}function Ni(t){return typeof t!="number"&&t.points.length>0}function Li(t,e,n){let i=0,r=t.length-1;for(;r-i>1;){let o=i+r>>1;t[o]<=n?i=o:r=o}return e[i]+(e[r]-e[i])*(n-t[i])/(t[r]-t[i])}function it(t,e){if(typeof t=="number")return e/t;if(!Ni(t))return e;let{ts:n,ss:i,firstRate:r,lastRate:o}=Pi(t),a=n.length-1;return e<=0?e/r:e>=i[a]?n[a]+(e-i[a])/o:Li(i,n,e)}function Oi(t){return t?jt(t,we):null}function Kt(t,e){return Oi(t)??e}var Co=[{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"}),Po=Object.freeze([y.start,y.duration,y.trackIndex]),No=Object.freeze([y.derivedEnd]),Lo=Object.freeze([y.derivedEnd,y.legacyTrack]);function D(t){if(t==null||t.trim()==="")return null;let e=Number(t);return Number.isFinite(e)?e:null}var Qt=/^[A-Za-z0-9_.:-]+$/;function en(t,e){let n=t.charCodeAt(e);return n>=48&&n<=57}function Jt(t,e){let n=e;for(;n>=0&&en(t,n);)n--;return n}function Fi(t,e){let n=e;for(;n>=0&&(t[n]??"").trim()==="";)n--;return n}function Vi(t){let e=t.length-1;if(!en(t,e))return null;let n=Jt(t,e);return t[n]==="."&&(n=Jt(t,n-1)),n+1}function Ui(t){let e=Vi(t);if(e==null)return null;let n=Fi(t,e-1),i=t[n];if(i!=="+"&&i!=="-")return null;let r=t.slice(0,n).trim();if(!Qt.test(r))return null;let o=Number(t.slice(e));return Number.isFinite(o)?{refId:r,operator:i,magnitude:o}:null}function re(t){let e=(t??"").trim();if(!e)return null;let n=D(e);if(n!=null)return{kind:"absolute",value:n};if(Qt.test(e))return{kind:"reference",refId:e,offset:0};let i=Ui(e);return i?{kind:"reference",refId:i.refId,offset:i.operator==="-"?-i.magnitude:i.magnitude}:null}function x(t,e,n,i){t.push({code:e,attribute:n,value:i})}function Hi(t,e,n,i){if(e==null||e.trim()==="")return n.defaultStart===void 0?0:n.defaultStart;if(!t)return x(i,"invalid-start",y.start,e),null;if(t.kind==="absolute")return Math.max(0,t.value);let r=n.resolveReferenceEnd?.(t.refId);return r==null||!Number.isFinite(r)?(x(i,"unresolved-start-reference",y.start,e),null):Math.max(0,r+t.offset)}var $i=1e-9;function Wi(t,e){return Math.abs(t-e)<=$i}function Bi(t,e,n){let i=D(t);if(i==null){x(n,"deprecated-end",y.derivedEnd,t),x(n,"invalid-end",y.derivedEnd,t);return}if(e==null){x(n,"deprecated-end",y.derivedEnd,t);return}Wi(i,e)||(x(n,"deprecated-end",y.derivedEnd,t),x(n,"conflicting-end",y.derivedEnd,t))}function Gi(t,e,n){let i=D(t);return i==null||i<0?(x(n,"invalid-duration",y.duration,t),{duration:null,end:null,durationSource:"invalid"}):{duration:i,end:e==null?null:e+i,durationSource:"duration"}}function zi(t,e,n){x(n,"deprecated-end",y.derivedEnd,t);let i=D(t);return i==null?(x(n,"invalid-end",y.derivedEnd,t),{duration:null,end:null,durationSource:"invalid"}):e==null?{duration:null,end:i,durationSource:"legacy-end"}:i<e?(x(n,"end-before-start",y.derivedEnd,t),{duration:null,end:null,durationSource:"invalid"}):{duration:i-e,end:i,durationSource:"legacy-end"}}function qi(t,e,n){let i=t.getAttribute(y.duration),r=t.getAttribute(y.derivedEnd);if(i==null)return r==null?{duration:null,end:null,durationSource:"missing"}:zi(r,e,n);let o=Gi(i,e,n);return r!=null&&Bi(r,o.end,n),o}function Zt(t,e,n,i){let r=D(t);return r==null||!Number.isInteger(r)?(x(i,"invalid-track-index",e,t),{trackIndex:0,trackSource:"invalid"}):{trackIndex:r,trackSource:n}}function ji(t,e){let n=t.getAttribute(y.trackIndex),i=t.getAttribute(y.legacyTrack);if(n==null&&i==null)return{trackIndex:0,trackSource:"default"};if(n==null&&i!=null)return x(e,"deprecated-layer",y.legacyTrack,i),Zt(i,y.legacyTrack,"legacy-layer",e);let r=Zt(n??"",y.trackIndex,"track-index",e);if(i==null)return r;x(e,"deprecated-layer",y.legacyTrack,i);let o=D(i);return o!=null&&o!==r.trackIndex&&x(e,"conflicting-layer",y.legacyTrack,i),r}function rt(t,e={}){let n=[],i=t.getAttribute(y.start),r=re(i),o=Hi(r,i,e,n),a=qi(t,o,n),s=ji(t,n);return{startExpression:r,start:o,...a,...s,diagnostics:n}}function P(t){return D(t)}function oe(t){return Ft(e=>t.getAttribute(e),M(t)?t.defaultPlaybackRate:1)}function ot(t){return Kt(t.getAttribute("data-automation"),oe(t))}function Me(t){return Ot(e=>t.getAttribute(e))}function W(t,e){return Yi(e,Me(t),ot(t))}function at(t){let e=Qe({tag:"video",authoredDurationSeconds:Je(n=>t.getAttribute(n)),sourceDurationSeconds:Number.isFinite(t.duration)?t.duration:null,mediaStartSeconds:Me(t),playbackRate:oe(t)});return e.source==="media"?W(t,t.duration):e.seconds}function Ce(t,e=0){return!Ye(t)||!t.hasAttribute("data-start")&&!t.hasAttribute("data-track-index")?null:Qe({tag:"img",authoredDurationSeconds:Vt(n=>t.getAttribute(n),e),sourceDurationSeconds:null,mediaStartSeconds:0,playbackRate:1}).seconds}function Yi(t,e,n){return typeof n=="number"?Ze(t,e,n):Number.isFinite(t)?it(n,Math.max(0,t-e)):null}function tn(){return globalThis}function B(t,e){if(typeof window>"u")return;let n=tn(),i=n.__hf?.onSwallowed;if(i)try{i({label:t,error:e})}catch(r){}(n.__hfDebug||n.__HYPERFRAMES_DEBUG)&&console.debug(`[hyperframes] ${t} swallowed:`,e)}var Xi=t=>t.paused?.()===!0?(t.startTime?.()??0)+(t.totalDuration?.()??0)/Math.abs(t.timeScale?.()||1):0;function ae(t){try{if(typeof t?.duration!="function")return null;let e=t.getChildren?.(!1,!1,!0),n=Array.isArray(e)?e:[],i=Math.max(Number(t.duration()),...n.map(Xi));return Number.isFinite(i)?i:null}catch(e){return B("runtime.timelineDuration",e),null}}var nn="data-hf-authored-duration",rn="data-hf-authored-end";function se(t){if(t==null||typeof t=="string"&&t.trim()==="")return null;let e=typeof t=="number"?t:Number(t);return Number.isFinite(e)?e:null}function De(t){let e=se(t.start);if(e==null)return null;let n=Math.max(0,e),i=se(t.duration),r=se(t.authoredDuration),o=i!=null&&i>0?i:r!=null&&r>0?r:null;if(o!=null)return{start:n,duration:o,end:n+o};let a=se(t.end),s=se(t.authoredEnd),u=a!=null&&a>n?a:s!=null&&s>n?s:null;return{start:n,duration:u==null?null:u-n,end:u}}var G=Object.freeze({start:"data-start",duration:"data-duration",trackIndex:"data-track-index",derivedEnd:"data-end",legacyTrack:"data-layer"}),Ko=Object.freeze([G.start,G.duration,G.trackIndex]),Jo=Object.freeze([G.derivedEnd]),Zo=Object.freeze([G.derivedEnd,G.legacyTrack]);function Ki(t){if(t==null||t.trim()==="")return null;let e=Number(t);return Number.isFinite(e)?e:null}var on=t=>{let e=Ki(t);return e!==null&&e>=0?e:null};function Ji(t){return on(t("data-playback-start"))??on(t("data-media-start"))??0}var an="data-hf-media-start-basis";function sn(t){return t?.trim().toLowerCase()==="global"?"global":"local"}function Zi(t){return sn(t.basis)==="global"?t.authoredStart:t.hostStart+t.authoredStart}function un(t){return dn(t)?Zi({authoredStart:t.authoredStart,hostStart:t.hostStart,basis:t.basis}):t.ordinaryStart()}function ln(t){return dn(t)&&sn(t.basis)==="global"}function dn(t){return!t.hasAutoStart&&t.authoredStart!=null&&t.hostStart!==0}function st(t){return Ji(e=>t.getAttribute(e))}function cn(t,e){return t-st(e)}function V(t){let e=t.timelineRegistry??{},n=t.includeAuthoredTimingAttrs??!1,i=t.documentRef??document,r=new WeakMap,o=new WeakMap,a=new Set,s=l=>(l.hasAttribute("data-composition-id")?l.parentElement:l)?.closest("[data-composition-id]")??null,u=(l,f)=>{let _=s(f);if(_){for(let k of _.querySelectorAll(`[id="${l}"]`))if(s(k)===_)return k}let R=i.getElementById(l);return R||(Array.from(i.querySelectorAll("[data-composition-id]")).find(k=>k.getAttribute("data-composition-id")===l)??null)},d=(l,f)=>n?l.getAttribute(f):null,m=l=>De({start:0,duration:l.getAttribute("data-duration"),authoredDuration:d(l,"data-hf-authored-duration")})?.duration??De({start:T(l,0),end:l.getAttribute("data-end"),authoredEnd:d(l,"data-hf-authored-end")})?.duration??null,b=l=>l!=null&&Number.isFinite(l)&&l>0?l:null,v=l=>{let f=l.getAttribute("data-composition-id");return f?b(ae(e[f])):null},g=l=>{let f=o.get(l);if(f!==void 0)return f;let _=m(l)??b(M(l)?W(l,l.duration):null)??b(Ce(l))??v(l);return o.set(l,_),_},A=l=>l.hasAttribute("data-composition-src")||l.hasAttribute("data-composition-id")||l.hasAttribute("data-composition-file"),h=l=>{let f=l.parentElement;return!f||!l.hasAttribute("data-composition-id")||re(l.getAttribute("data-start"))?null:A(f)?f:null},S=(l,f)=>cn(T(l,f),h(l)??l),I=(l,f)=>{let _=l.hasAttribute("data-composition-id")?l.parentElement?.closest("[data-composition-id]"):l.closest("[data-composition-id]");return _?S(_,f):0},N=(l,f)=>{let _=re(l.getAttribute("data-start"));if(!_){let Z=h(l);return Z?T(Z,f):f}if(_.kind==="absolute")return I(l,f)+Math.max(0,_.value);let R=u(_.refId,l);if(!R)return f;let k=T(R,0),ye=g(R)??0,ve=Math.min(0,I(l,0));return Math.max(ve,k+ye+_.offset)},T=(l,f)=>{let _=r.get(l);if(_!==void 0)return _??f;if(a.has(l))return f;a.add(l);try{let R=N(l,f);return r.set(l,R),R}finally{a.delete(l)}},L=l=>{let f=l.closest("[data-composition-id]");return{authoredStart:P(l.getAttribute("data-start")),hostStart:f?S(f,0):0,hasAutoStart:l.hasAttribute("data-hf-auto-start"),basis:l.getAttribute(an)}};return{resolveStartForElement:(l,f=0)=>T(l,Math.max(0,f)),resolveDurationForElement:l=>g(l),resolveMediaStartForElement:l=>{let f=L(l);return un({...f,ordinaryStart:()=>T(l,f.hostStart)})},resolveHostStartForElement:l=>I(l,0),resolveHostSlotsForElement:l=>{let f=[];for(let _=l.parentElement;_;_=_.parentElement){if(!A(_)||h(_)||st(_)<=0)continue;let R=T(_,0),k=m(_);f.push({start:R,end:k?R+k:1/0})}return f},isRootGlobalMediaStartForElement:l=>M(l)&&ln(L(l))}}function mn(){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 pn=7200,ut=1/60,ue=t=>t!==null&&t>ut?t:null;function Qi(t){return{width:Te(t.getAttribute("data-width")),height:Te(t.getAttribute("data-height"))}}function er(t,e){let n=[];for(let i of t.querySelectorAll("video[data-start], audio[data-start]")){let r=e.mediaStart(i);if(!Number.isFinite(r))continue;let o=e.mediaDuration(i);o==null||o<=ut||n.push(Math.max(0,r)+o)}return ue(Se({authoredDurationSeconds:null,clipEndsSeconds:n}).seconds)}function tr(t,e){let n=[];for(let r of t.querySelectorAll("[data-composition-id][data-start]")){if(r.parentElement?.closest("[data-composition-id]")!==t)continue;let o=e.resolveStartForElement(r,0),a=e.resolveDurationForElement(r);!Number.isFinite(o)||a==null||a<=0||n.push(Math.max(0,o)+a)}let i=P(t.getAttribute("data-duration"));return ue(Se({authoredDurationSeconds:null,clipEndsSeconds:[i,...n]}).seconds)}var nr=t=>t.hasAttribute("data-composition-id")||t.hasAttribute("data-composition-src");function ir(t,e,{unregisteredLottie:n}){let i=[];for(let o of t.querySelectorAll("[data-start]")){let a=e.resolveStartForElement(o,0);if(!Number.isFinite(a))continue;let s=e.resolveDurationForElement(o);s!=null?i.push(Math.max(0,a)+s):(M(o)||nr(o))&&i.push(null)}(n||t.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 rr(t){if(t.declared!==null&&Number.isFinite(t.declared)&&t.declared>0)return t.declared;let e=ue(t.timeline()),n=Math.max(0,...t.floors().map(u=>u??0)),i=Number.isFinite(t.fallback)&&t.fallback>ut?t.fallback:0,r=Math.max(n,i),a=e!==null&&e>=pn&&ue(r)!==null?null:e,s;return a!==null?s=Math.max(a,r):ue(n)!==null?s=r:i>0?s=i:s=t.derived(),s>0?s:0}function fn(t){let e=Q(t);if(!e)return null;let n=V({timelineRegistry:{},includeAuthoredTimingAttrs:!0,documentRef:t}),i=rr({declared:P(e.getAttribute("data-duration")),timeline:()=>null,floors:()=>[er(t,{mediaStart:n.resolveMediaStartForElement,mediaDuration:at}),tr(e,n)],fallback:0,derived:()=>ir(e,n,{unregisteredLottie:!1}).seconds??0});return{...Qi(e),fps:mn().canonicalFps,durationSeconds:i}}var Pe="hyperframes-studio-preview";var hn="data-hf-upcoming";var bn="__hfPreviewErrors";var gn="data-hf-autostamped";function _n(t){return t.hasRuntime||t.runtimeInjected?!1:!!(t.hasNestedCompositions||t.hasTimelines&&t.attempts>=5)}function z(t){return typeof t=="object"&&t!==null}function yn(t){return z(t)&&typeof t.getDuration=="function"}function vn(t){return z(t)&&typeof t.duration=="function"&&typeof t.time=="function"&&typeof t.seek=="function"&&typeof t.play=="function"&&typeof t.pause=="function"}var q="https://cdn.jsdelivr.net/npm/@hyperframes/core@0.8.201/dist/hyperframe.runtime.iife.js";function le(t){if(t===null)return null;let e=Number.parseInt(t,10);return Number.isFinite(e)&&e>0?e:null}function or(t){let e=t?.querySelector("[data-composition-id][data-width][data-height]")??t?.querySelector("[data-width][data-height]");if(!e)return null;let n=le(e.getAttribute("data-width")),i=le(e.getAttribute("data-height"));return n!==null&&i!==null?{width:n,height:i}:null}function ar(t){return Array.isArray(t)?t.find(e=>typeof e=="string"&&e.trim()!==""&&e!=="[object Event]")??null:null}var Ne=class{constructor(e,n){this._iframe=e;this._callbacks=n}_iframe;_callbacks;_interval=null;_runtimeInjected=!1;_runtimeScript=null;_failure=null;get failed(){return this._failure!==null&&this._failure.document===this._iframe.contentDocument}get runtimeInjected(){return this._runtimeInjected}start(){this.stop(),this._failure=null,this._runtimeInjected=!1;let e=0;this._interval=setInterval(()=>{e++;let n=null;try{n=this._poll(e)}catch(i){i instanceof DOMException&&i.name==="SecurityError"||(n={kind:"error",message:i instanceof Error?i.message:String(i)})}n??=this._deadlineOutcome(e),n&&(this.stop(),n.kind==="error"?(this._failure={document:this._iframe.contentDocument},this._callbacks.onError(n.message)):this._callbacks.onReady(n.result))},200)}_deadlineOutcome(e){return e<40||this._callbacks.hostOwnsDeadline?.()?null:{kind:"error",message:"Composition timeline not found after 8s"}}_poll(e){let n=this._iframe.contentWindow;if(!n)return null;let i=ar(Reflect.get(n,bn));if(i!==null)return{kind:"error",message:i};let r=this._iframe.contentDocument,o=Reflect.get(n,"__timelines"),a=this.hasRuntimeBridge(n);if(_n({hasRuntime:a,hasTimelines:z(o)&&Object.keys(o).length>0,hasNestedCompositions:!!r?.querySelector("[data-composition-src]"),runtimeInjected:this._runtimeInjected,attempts:e}))return this._injectRuntime(),null;if(this._runtimeInjected&&!a)return null;let s=this._resolveReadyResult(n,r);return s?{kind:"ready",result:s}:null}_resolveReadyResult(e,n){let i=this._resolvePlaybackDurationAdapter(e)??{kind:"document",getDuration:()=>0},r=i.getDuration();if(!Number.isFinite(r)||r<=0){if(i.kind==="direct-timeline")return null;r=n?fn(n)?.durationSeconds??0:0}return r<=0?null:{duration:r,adapter:{...i,getDuration:()=>r},compositionSize:or(n)}}stop(){this._runtimeScript&&(this._runtimeScript.onerror=null,this._runtimeScript=null),this.failed||(this._failure=null),this._interval!==null&&(clearInterval(this._interval),this._interval=null)}resolveDirectTimelineAdapter(){try{let e=this._iframe.contentWindow;return e?this._resolveDirectTimelineAdapterFromWindow(e):null}catch{return null}}resolveDirectTimelineAdapterFromWindow(e){return this._resolveDirectTimelineAdapterFromWindow(e)}hasRuntimeBridge(e){return z(Reflect.get(e,"__player"))}_injectRuntime(){this._runtimeInjected=!0;try{let e=this._iframe.contentDocument;if(!e)return;let n=e.createElement("script");n.src=this._callbacks.resolveRuntimeUrl?.()??q,this._runtimeScript=n,n.onerror=()=>{this._runtimeScript!==n||this._iframe.contentDocument!==e||(this.stop(),this._failure={document:e},this._callbacks.onError("HyperFrames runtime failed to load from "+n.src))},(e.head||e.documentElement).appendChild(n),this._callbacks.onRuntimeInjected?.()}catch{}}_resolveDirectTimelineAdapterFromWindow(e){if(this.hasRuntimeBridge(e))return null;let n=Reflect.get(e,"__timelines");if(!z(n))return null;let i=Object.keys(n);if(i.length===0)return null;let r=this._iframe.contentDocument?.querySelector("[data-composition-id]")?.getAttribute("data-composition-id"),o=r&&r in n?r:i[i.length-1],a=n[o];return vn(a)?a:null}_resolvePlaybackDurationAdapter(e){let n=Reflect.get(e,"__player");if(yn(n))return{kind:"runtime",getDuration:()=>n.getDuration()};let i=this._resolveDirectTimelineAdapterFromWindow(e);return i?{kind:"direct-timeline",timeline:i,getDuration:()=>i.duration()}:null}};var An=`
|
|
1
|
+
"use strict";var HyperframesPlayer=(()=>{var ze=Object.defineProperty;var ri=Object.getOwnPropertyDescriptor;var oi=Object.getOwnPropertyNames;var ai=Object.prototype.hasOwnProperty;var si=(t,e)=>{for(var n in e)ze(t,n,{get:e[n],enumerable:!0})},ui=(t,e,n,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of oi(e))!ai.call(t,r)&&r!==n&&ze(t,r,{get:()=>e[r],enumerable:!(i=ri(e,r))||i.enumerable});return t};var li=t=>ui(ze({},"__esModule",{value:!0}),t);var no={};si(no,{HyperframesPlayer:()=>Ge,SPEED_PRESETS:()=>ct,formatSpeed:()=>U,formatTime:()=>Le});var Pt=t=>t!==null&&Number.isFinite(t)&&t>0;function Se(t){let e=t.clipEndsSeconds.filter(i=>i===null).length;if(Pt(t.authoredDurationSeconds))return{seconds:t.authoredDurationSeconds,source:"authored",pendingClips:e};let n=t.clipEndsSeconds.filter(Pt);return n.length>0?{seconds:Math.max(...n),source:"derived",pendingClips:e}:{seconds:null,source:"unresolved",pendingClips:e,reason:e>0?"every clip's length is still pending":"no authored duration and no clip with a length"}}var di="http://www.w3.org/1999/xhtml";function Nt(t){return t!=null&&t.nodeType===1}function qe(t){return Nt(t)&&t.namespaceURI===di}function je(t,e){return qe(t)&&t.localName===e}function ci(t){return je(t,"video")}function mi(t){return je(t,"audio")}function M(t){return ci(t)||mi(t)}function Ye(t){return je(t,"img")}function Te(t){if(t==null||t.trim()==="")return null;let e=Number.parseInt(t,10);return Number.isFinite(e)&&e>0?e:null}function Q(t=document){let e=t.querySelector('[data-composition-id][data-root="true"]');return qe(e)?e:t.querySelector("[data-composition-id]")}var $=Object.freeze({start:"data-start",duration:"data-duration",trackIndex:"data-track-index",derivedEnd:"data-end",legacyTrack:"data-layer"}),uo=Object.freeze([$.start,$.duration,$.trackIndex]),lo=Object.freeze([$.derivedEnd]),co=Object.freeze([$.derivedEnd,$.legacyTrack]);function Xe(t){if(t==null||t.trim()==="")return null;let e=Number(t);return Number.isFinite(e)?e:null}var Lt=t=>{let e=Xe(t);return e!==null&&e>=0?e:null};function Ot(t){return Lt(t("data-playback-start"))??Lt(t("data-media-start"))??0}var ee=.1,te=10;function Ke(t){return Number.isFinite(t)&&t>0?Math.max(ee,Math.min(te,t)):1}function Ft(t,e=1){let n=Number.parseFloat(t("data-playback-rate")??"");return Ke(Number.isFinite(n)&&n>0?n:e)}function Je(t){let e=Xe(t("data-duration"));return e!==null&&e>0?e:null}function Vt(t,e){let n=Je(t);if(n!==null)return n;let i=Xe(t("data-end"));return i!==null?i-e:null}var pi=3;function Ze(t,e,n){return Number.isFinite(t)?Math.max(0,t-e)/Ke(n):null}function Qe(t){let{tag:e,authoredDurationSeconds:n,sourceDurationSeconds:i,mediaStartSeconds:r,playbackRate:o}=t;if(n!==null&&n>0)return{seconds:n,source:"authored"};if(e==="img")return{seconds:pi,source:"default"};if(i===null)return{seconds:null,source:"pending",reason:"source duration not yet probed"};let a=Ze(i,r,o);return a===null?{seconds:null,source:"pending",reason:"source reported a non-finite duration"}:{seconds:a,source:"media"}}var Ht="data-fx-chain",po=Ht.slice(5);var ne=(t="frequency",e="Frequency",n=1e3,i=20,r=2e4)=>({kind:"number",key:t,label:e,unit:"Hz",min:i,max:r,step:1,default:n,scale:"log",automatable:!0}),et=(t=.707,e="Bandwidth: higher is narrower.")=>({kind:"number",key:"q",label:"Q",unit:"",min:.1,max:20,step:.01,default:t,scale:"log",automatable:!0,hint:e}),Re=(t=-40,e=40,n=0)=>({kind:"number",key:"gain",label:"Gain",unit:"dB",min:t,max:e,step:.1,default:n,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."},$t=[{id:"gain",label:"Gain",group:"dynamics",description:"Raise or lower the whole signal. Automate it to duck under something else.",params:[Re(-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),Re(-40,40,0),et(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),Re(-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),Re(-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),et(.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),et(.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"}],fo=new Map($t.map(t=>[t.id,t]));var ho=$t.map(t=>t.id);function fi(t){return 10**(t/20)}var Wt=fi(12);var nt="data-automation",To=nt.slice(5),tt=1,bi=512,C=class extends Error{constructor(e){super(e),this.name="AudioAutomationError"}},xe="volume",we="rate";function Gt(t){if(t===xe)return{kind:"volume"};if(t===we)return{kind:"rate"};let e=t.split(".");if(e.length===3&&e[0]==="fx"&&e[1]===gi){let r=e[2];return r?{kind:"preset",presetId:r}:null}if(e.length!==3||e[0]!=="fx")return null;let[,n,i]=e;return!n||!i?null:{kind:"fx",nodeId:n,param:i}}var gi="preset";var _i={min:0,max:Wt,step:.01,unit:"",label:"Volume",scale:"linear",default:1};var yi={min:ee,max:te,step:.05,unit:"x",label:"Speed",scale:"log",default:1};function ie(t){if(typeof t=="number")return Number.isFinite(t)?t:null;if(typeof t=="string"&&t.trim()!==""){let e=Number(t);return Number.isFinite(e)?e:null}return null}function vi(t){let e=ie(t);return e===null||e===0?0:Math.min(1,Math.max(-1,e))}function zt(t,e){let n=ie(t),i=ie(e);if(n===null||i===null)return null;let r=s=>Math.min(.999,Math.max(.001,s)),o=r(n),a=r(i);return Math.abs(o-a)<1e-6?null:{x:o,y:a}}function Ai(t){let e=vi(t?.curve),n=zt(t?.viaX,t?.viaY);return{...e?{curve:e}:{},...n?{viaX:n.x,viaY:n.y}:{}}}function Ei(t,e){let n=ie(t?.t),i=ie(t?.v);if(n===null||i===null)return null;let r=e?Math.min(e.max,Math.max(e.min,i)):i;return{t:Math.max(0,n),v:r,...Ai(t)}}function Si(t,e){let n=t.map(r=>Ei(r,e)).filter(r=>r!==null).sort((r,o)=>r.t-o.t),i=[];for(let r of n)i.length>0&&i[i.length-1].t===r.t?i[i.length-1]=r:i.push(r);return i.slice(0,bi)}function Ti(t){let e=[];for(let n of t.lanes){if(!Gt(n.target))continue;let i=n.target===xe?_i:n.target===we?yi:null,r=Si(n.points??[],i);r.length>0&&e.push({target:n.target,points:r})}return{version:tt,lanes:e}}function qt(t){let e;try{e=JSON.parse(t)}catch(r){throw new C(`Automation is not valid JSON: ${r.message}`)}if(typeof e!="object"||e===null)throw new C("Automation must be a JSON object.");let n=e;if(n.version!==tt)throw new C(`Unsupported automation version: ${String(n.version)}`);if(!Array.isArray(n.lanes))throw new C("Automation is missing a `lanes` array.");let i=n.lanes.map((r,o)=>{if(typeof r!="object"||r===null)throw new C(`Lane ${o} is not an object.`);let a=r;if(typeof a.target!="string"||!Gt(a.target))throw new C(`Lane ${o} has an unreadable target: ${String(a.target)}`);if(!Array.isArray(a.points))throw new C(`Lane ${o} is missing a \`points\` array.`);return{target:a.target,points:a.points}});return Ti({version:tt,lanes:i})}function Ri(t,e){return e?Math.pow(t,Math.pow(2,2*e)):t}function xi(t,e){let n=t-.5,i=e-.5,r=.999,o=1e6,a=n>0?n/(r-t):n<0?-n/(t-(1-r)):0,s=i>0?i/(r-e):i<0?-i/(e-(1-r)):0,u=Math.min(o,Math.max(1,a,s));return{cx:t+n/u,cy:e+i/u,w:u}}function wi(t,e,n){let{cx:i,cy:r,w:o}=xi(e,n),a=2-2*o,s=t*a-1+2*o*i,u=-t*a-2*o*i,d=ki(s,u,t),m=1-d,b=m*m+2*o*d*m+d*d;return b>0?(2*o*r*d*m+d*d)/b:t}function ki(t,e,n){if(Math.abs(t)<1e-12)return Math.abs(e)<1e-12?n:-n/e;let i=Math.sqrt(Math.max(0,e*e-4*t*n)),r=(-e+i)/(2*t),o=(-e-i)/(2*t),a=s=>s>=-1e-9&&s<=1+1e-9;return a(r)?Math.min(1,Math.max(0,r)):a(o)?Math.min(1,Math.max(0,o)):n}function Ii(t,e){let n=zt(e.viaX,e.viaY);return n?wi(Math.min(1,Math.max(0,t)),n.x,n.y):Ri(t,e.curve)}function Mi(t,e,n,i){return i==="log"&&t>0&&e>0?Math.exp(Math.log(t)+(Math.log(e)-Math.log(t))*n):t+(e-t)*n}function ke(t,e,n="linear"){let i=t.points;if(i.length===0)return 0;let r=i[0];if(e<=r.t)return r.v;let o=i[i.length-1];if(e>=o.t)return o.v;let a=0,s=i.length-1;for(;s-a>1;){let b=a+s>>1;i[b].t<=e?a=b:s=b}let u=i[a],d=i[s],m=d.t-u.t;return m<=0?d.v:Mi(u.v,d.v,Ii((e-u.t)/m,u),n)}var Ie=new Map,Ci=64;function jt(t,e=xe){let n=`${e}\0${t}`,i=Ie.get(n);if(i!==void 0)return i;let r=null;try{r=qt(t).lanes.find(o=>o.target===e)??null}catch{r=null}return Ie.size>Ci&&Ie.clear(),Ie.set(n,r),r}var Yt=48,Xt=new WeakMap;function Di(t){let e=t.points,n=e[0].v,i=e[e.length-1].v,r=[0],o=[0],a=u=>{let d=r[r.length-1];if(u<=d)return;let m=ke(t,d,"log");r.push(u),o.push(o[o.length-1]+(m+ke(t,u,"log"))/2*(u-d))},s=Math.max(0,e[0].t);a(s);for(let u=1;u<e.length;u+=1){let d=e[u-1].t,m=e[u].t;if(!(m<=0))for(let b=1;b<=Yt;b+=1)a(Math.max(d,0)+(m-d)*b/Yt)}return{ts:Float64Array.from(r),ss:Float64Array.from(o),firstRate:n,lastRate:i}}function Pi(t){let e=Xt.get(t);return e||(e=Di(t),Xt.set(t,e)),e}function Ni(t){return typeof t!="number"&&t.points.length>0}function Li(t,e,n){let i=0,r=t.length-1;for(;r-i>1;){let o=i+r>>1;t[o]<=n?i=o:r=o}return e[i]+(e[r]-e[i])*(n-t[i])/(t[r]-t[i])}function it(t,e){if(typeof t=="number")return e/t;if(!Ni(t))return e;let{ts:n,ss:i,firstRate:r,lastRate:o}=Pi(t),a=n.length-1;return e<=0?e/r:e>=i[a]?n[a]+(e-i[a])/o:Li(i,n,e)}function Oi(t){return t?jt(t,we):null}function Kt(t,e){return Oi(t)??e}var Co=[{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"}),Po=Object.freeze([y.start,y.duration,y.trackIndex]),No=Object.freeze([y.derivedEnd]),Lo=Object.freeze([y.derivedEnd,y.legacyTrack]);function D(t){if(t==null||t.trim()==="")return null;let e=Number(t);return Number.isFinite(e)?e:null}var Qt=/^[A-Za-z0-9_.:-]+$/;function en(t,e){let n=t.charCodeAt(e);return n>=48&&n<=57}function Jt(t,e){let n=e;for(;n>=0&&en(t,n);)n--;return n}function Fi(t,e){let n=e;for(;n>=0&&(t[n]??"").trim()==="";)n--;return n}function Vi(t){let e=t.length-1;if(!en(t,e))return null;let n=Jt(t,e);return t[n]==="."&&(n=Jt(t,n-1)),n+1}function Ui(t){let e=Vi(t);if(e==null)return null;let n=Fi(t,e-1),i=t[n];if(i!=="+"&&i!=="-")return null;let r=t.slice(0,n).trim();if(!Qt.test(r))return null;let o=Number(t.slice(e));return Number.isFinite(o)?{refId:r,operator:i,magnitude:o}:null}function re(t){let e=(t??"").trim();if(!e)return null;let n=D(e);if(n!=null)return{kind:"absolute",value:n};if(Qt.test(e))return{kind:"reference",refId:e,offset:0};let i=Ui(e);return i?{kind:"reference",refId:i.refId,offset:i.operator==="-"?-i.magnitude:i.magnitude}:null}function x(t,e,n,i){t.push({code:e,attribute:n,value:i})}function Hi(t,e,n,i){if(e==null||e.trim()==="")return n.defaultStart===void 0?0:n.defaultStart;if(!t)return x(i,"invalid-start",y.start,e),null;if(t.kind==="absolute")return Math.max(0,t.value);let r=n.resolveReferenceEnd?.(t.refId);return r==null||!Number.isFinite(r)?(x(i,"unresolved-start-reference",y.start,e),null):Math.max(0,r+t.offset)}var $i=1e-9;function Wi(t,e){return Math.abs(t-e)<=$i}function Bi(t,e,n){let i=D(t);if(i==null){x(n,"deprecated-end",y.derivedEnd,t),x(n,"invalid-end",y.derivedEnd,t);return}if(e==null){x(n,"deprecated-end",y.derivedEnd,t);return}Wi(i,e)||(x(n,"deprecated-end",y.derivedEnd,t),x(n,"conflicting-end",y.derivedEnd,t))}function Gi(t,e,n){let i=D(t);return i==null||i<0?(x(n,"invalid-duration",y.duration,t),{duration:null,end:null,durationSource:"invalid"}):{duration:i,end:e==null?null:e+i,durationSource:"duration"}}function zi(t,e,n){x(n,"deprecated-end",y.derivedEnd,t);let i=D(t);return i==null?(x(n,"invalid-end",y.derivedEnd,t),{duration:null,end:null,durationSource:"invalid"}):e==null?{duration:null,end:i,durationSource:"legacy-end"}:i<e?(x(n,"end-before-start",y.derivedEnd,t),{duration:null,end:null,durationSource:"invalid"}):{duration:i-e,end:i,durationSource:"legacy-end"}}function qi(t,e,n){let i=t.getAttribute(y.duration),r=t.getAttribute(y.derivedEnd);if(i==null)return r==null?{duration:null,end:null,durationSource:"missing"}:zi(r,e,n);let o=Gi(i,e,n);return r!=null&&Bi(r,o.end,n),o}function Zt(t,e,n,i){let r=D(t);return r==null||!Number.isInteger(r)?(x(i,"invalid-track-index",e,t),{trackIndex:0,trackSource:"invalid"}):{trackIndex:r,trackSource:n}}function ji(t,e){let n=t.getAttribute(y.trackIndex),i=t.getAttribute(y.legacyTrack);if(n==null&&i==null)return{trackIndex:0,trackSource:"default"};if(n==null&&i!=null)return x(e,"deprecated-layer",y.legacyTrack,i),Zt(i,y.legacyTrack,"legacy-layer",e);let r=Zt(n??"",y.trackIndex,"track-index",e);if(i==null)return r;x(e,"deprecated-layer",y.legacyTrack,i);let o=D(i);return o!=null&&o!==r.trackIndex&&x(e,"conflicting-layer",y.legacyTrack,i),r}function rt(t,e={}){let n=[],i=t.getAttribute(y.start),r=re(i),o=Hi(r,i,e,n),a=qi(t,o,n),s=ji(t,n);return{startExpression:r,start:o,...a,...s,diagnostics:n}}function P(t){return D(t)}function oe(t){return Ft(e=>t.getAttribute(e),M(t)?t.defaultPlaybackRate:1)}function ot(t){return Kt(t.getAttribute("data-automation"),oe(t))}function Me(t){return Ot(e=>t.getAttribute(e))}function W(t,e){return Yi(e,Me(t),ot(t))}function at(t){let e=Qe({tag:"video",authoredDurationSeconds:Je(n=>t.getAttribute(n)),sourceDurationSeconds:Number.isFinite(t.duration)?t.duration:null,mediaStartSeconds:Me(t),playbackRate:oe(t)});return e.source==="media"?W(t,t.duration):e.seconds}function Ce(t,e=0){return!Ye(t)||!t.hasAttribute("data-start")&&!t.hasAttribute("data-track-index")?null:Qe({tag:"img",authoredDurationSeconds:Vt(n=>t.getAttribute(n),e),sourceDurationSeconds:null,mediaStartSeconds:0,playbackRate:1}).seconds}function Yi(t,e,n){return typeof n=="number"?Ze(t,e,n):Number.isFinite(t)?it(n,Math.max(0,t-e)):null}function tn(){return globalThis}function B(t,e){if(typeof window>"u")return;let n=tn(),i=n.__hf?.onSwallowed;if(i)try{i({label:t,error:e})}catch(r){}(n.__hfDebug||n.__HYPERFRAMES_DEBUG)&&console.debug(`[hyperframes] ${t} swallowed:`,e)}var Xi=t=>t.paused?.()===!0?(t.startTime?.()??0)+(t.totalDuration?.()??0)/Math.abs(t.timeScale?.()||1):0;function ae(t){try{if(typeof t?.duration!="function")return null;let e=t.getChildren?.(!1,!1,!0),n=Array.isArray(e)?e:[],i=Math.max(Number(t.duration()),...n.map(Xi));return Number.isFinite(i)?i:null}catch(e){return B("runtime.timelineDuration",e),null}}var nn="data-hf-authored-duration",rn="data-hf-authored-end";function se(t){if(t==null||typeof t=="string"&&t.trim()==="")return null;let e=typeof t=="number"?t:Number(t);return Number.isFinite(e)?e:null}function De(t){let e=se(t.start);if(e==null)return null;let n=Math.max(0,e),i=se(t.duration),r=se(t.authoredDuration),o=i!=null&&i>0?i:r!=null&&r>0?r:null;if(o!=null)return{start:n,duration:o,end:n+o};let a=se(t.end),s=se(t.authoredEnd),u=a!=null&&a>n?a:s!=null&&s>n?s:null;return{start:n,duration:u==null?null:u-n,end:u}}var G=Object.freeze({start:"data-start",duration:"data-duration",trackIndex:"data-track-index",derivedEnd:"data-end",legacyTrack:"data-layer"}),Ko=Object.freeze([G.start,G.duration,G.trackIndex]),Jo=Object.freeze([G.derivedEnd]),Zo=Object.freeze([G.derivedEnd,G.legacyTrack]);function Ki(t){if(t==null||t.trim()==="")return null;let e=Number(t);return Number.isFinite(e)?e:null}var on=t=>{let e=Ki(t);return e!==null&&e>=0?e:null};function Ji(t){return on(t("data-playback-start"))??on(t("data-media-start"))??0}var an="data-hf-media-start-basis";function sn(t){return t?.trim().toLowerCase()==="global"?"global":"local"}function Zi(t){return sn(t.basis)==="global"?t.authoredStart:t.hostStart+t.authoredStart}function un(t){return dn(t)?Zi({authoredStart:t.authoredStart,hostStart:t.hostStart,basis:t.basis}):t.ordinaryStart()}function ln(t){return dn(t)&&sn(t.basis)==="global"}function dn(t){return!t.hasAutoStart&&t.authoredStart!=null&&t.hostStart!==0}function st(t){return Ji(e=>t.getAttribute(e))}function cn(t,e){return t-st(e)}function V(t){let e=t.timelineRegistry??{},n=t.includeAuthoredTimingAttrs??!1,i=t.documentRef??document,r=new WeakMap,o=new WeakMap,a=new Set,s=l=>(l.hasAttribute("data-composition-id")?l.parentElement:l)?.closest("[data-composition-id]")??null,u=(l,f)=>{let _=s(f);if(_){for(let k of _.querySelectorAll(`[id="${l}"]`))if(s(k)===_)return k}let R=i.getElementById(l);return R||(Array.from(i.querySelectorAll("[data-composition-id]")).find(k=>k.getAttribute("data-composition-id")===l)??null)},d=(l,f)=>n?l.getAttribute(f):null,m=l=>De({start:0,duration:l.getAttribute("data-duration"),authoredDuration:d(l,"data-hf-authored-duration")})?.duration??De({start:T(l,0),end:l.getAttribute("data-end"),authoredEnd:d(l,"data-hf-authored-end")})?.duration??null,b=l=>l!=null&&Number.isFinite(l)&&l>0?l:null,v=l=>{let f=l.getAttribute("data-composition-id");return f?b(ae(e[f])):null},g=l=>{let f=o.get(l);if(f!==void 0)return f;let _=m(l)??b(M(l)?W(l,l.duration):null)??b(Ce(l))??v(l);return o.set(l,_),_},A=l=>l.hasAttribute("data-composition-src")||l.hasAttribute("data-composition-id")||l.hasAttribute("data-composition-file"),h=l=>{let f=l.parentElement;return!f||!l.hasAttribute("data-composition-id")||re(l.getAttribute("data-start"))?null:A(f)?f:null},S=(l,f)=>cn(T(l,f),h(l)??l),I=(l,f)=>{let _=l.hasAttribute("data-composition-id")?l.parentElement?.closest("[data-composition-id]"):l.closest("[data-composition-id]");return _?S(_,f):0},N=(l,f)=>{let _=re(l.getAttribute("data-start"));if(!_){let Z=h(l);return Z?T(Z,f):f}if(_.kind==="absolute")return I(l,f)+Math.max(0,_.value);let R=u(_.refId,l);if(!R)return f;let k=T(R,0),ye=g(R)??0,ve=Math.min(0,I(l,0));return Math.max(ve,k+ye+_.offset)},T=(l,f)=>{let _=r.get(l);if(_!==void 0)return _??f;if(a.has(l))return f;a.add(l);try{let R=N(l,f);return r.set(l,R),R}finally{a.delete(l)}},L=l=>{let f=l.closest("[data-composition-id]");return{authoredStart:P(l.getAttribute("data-start")),hostStart:f?S(f,0):0,hasAutoStart:l.hasAttribute("data-hf-auto-start"),basis:l.getAttribute(an)}};return{resolveStartForElement:(l,f=0)=>T(l,Math.max(0,f)),resolveDurationForElement:l=>g(l),resolveMediaStartForElement:l=>{let f=L(l);return un({...f,ordinaryStart:()=>T(l,f.hostStart)})},resolveHostStartForElement:l=>I(l,0),resolveHostSlotsForElement:l=>{let f=[];for(let _=l.parentElement;_;_=_.parentElement){if(!A(_)||h(_)||st(_)<=0)continue;let R=T(_,0),k=m(_);f.push({start:R,end:k?R+k:1/0})}return f},isRootGlobalMediaStartForElement:l=>M(l)&&ln(L(l))}}function mn(){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 pn=7200,ut=1/60,ue=t=>t!==null&&t>ut?t:null;function Qi(t){return{width:Te(t.getAttribute("data-width")),height:Te(t.getAttribute("data-height"))}}function er(t,e){let n=[];for(let i of t.querySelectorAll("video[data-start], audio[data-start]")){let r=e.mediaStart(i);if(!Number.isFinite(r))continue;let o=e.mediaDuration(i);o==null||o<=ut||n.push(Math.max(0,r)+o)}return ue(Se({authoredDurationSeconds:null,clipEndsSeconds:n}).seconds)}function tr(t,e){let n=[];for(let r of t.querySelectorAll("[data-composition-id][data-start]")){if(r.parentElement?.closest("[data-composition-id]")!==t)continue;let o=e.resolveStartForElement(r,0),a=e.resolveDurationForElement(r);!Number.isFinite(o)||a==null||a<=0||n.push(Math.max(0,o)+a)}let i=P(t.getAttribute("data-duration"));return ue(Se({authoredDurationSeconds:null,clipEndsSeconds:[i,...n]}).seconds)}var nr=t=>t.hasAttribute("data-composition-id")||t.hasAttribute("data-composition-src");function ir(t,e,{unregisteredLottie:n}){let i=[];for(let o of t.querySelectorAll("[data-start]")){let a=e.resolveStartForElement(o,0);if(!Number.isFinite(a))continue;let s=e.resolveDurationForElement(o);s!=null?i.push(Math.max(0,a)+s):(M(o)||nr(o))&&i.push(null)}(n||t.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 rr(t){if(t.declared!==null&&Number.isFinite(t.declared)&&t.declared>0)return t.declared;let e=ue(t.timeline()),n=Math.max(0,...t.floors().map(u=>u??0)),i=Number.isFinite(t.fallback)&&t.fallback>ut?t.fallback:0,r=Math.max(n,i),a=e!==null&&e>=pn&&ue(r)!==null?null:e,s;return a!==null?s=Math.max(a,r):ue(n)!==null?s=r:i>0?s=i:s=t.derived(),s>0?s:0}function fn(t){let e=Q(t);if(!e)return null;let n=V({timelineRegistry:{},includeAuthoredTimingAttrs:!0,documentRef:t}),i=rr({declared:P(e.getAttribute("data-duration")),timeline:()=>null,floors:()=>[er(t,{mediaStart:n.resolveMediaStartForElement,mediaDuration:at}),tr(e,n)],fallback:0,derived:()=>ir(e,n,{unregisteredLottie:!1}).seconds??0});return{...Qi(e),fps:mn().canonicalFps,durationSeconds:i}}var Pe="hyperframes-studio-preview";var hn="data-hf-upcoming";var bn="__hfPreviewErrors";var gn="data-hf-autostamped";function _n(t){return t.hasRuntime||t.runtimeInjected?!1:!!(t.hasNestedCompositions||t.hasTimelines&&t.attempts>=5)}function z(t){return typeof t=="object"&&t!==null}function yn(t){return z(t)&&typeof t.getDuration=="function"}function vn(t){return z(t)&&typeof t.duration=="function"&&typeof t.time=="function"&&typeof t.seek=="function"&&typeof t.play=="function"&&typeof t.pause=="function"}var q="https://cdn.jsdelivr.net/npm/@hyperframes/core@0.8.202/dist/hyperframe.runtime.iife.js";function le(t){if(t===null)return null;let e=Number.parseInt(t,10);return Number.isFinite(e)&&e>0?e:null}function or(t){let e=t?.querySelector("[data-composition-id][data-width][data-height]")??t?.querySelector("[data-width][data-height]");if(!e)return null;let n=le(e.getAttribute("data-width")),i=le(e.getAttribute("data-height"));return n!==null&&i!==null?{width:n,height:i}:null}function ar(t){return Array.isArray(t)?t.find(e=>typeof e=="string"&&e.trim()!==""&&e!=="[object Event]")??null:null}var Ne=class{constructor(e,n){this._iframe=e;this._callbacks=n}_iframe;_callbacks;_interval=null;_runtimeInjected=!1;_runtimeScript=null;_failure=null;get failed(){return this._failure!==null&&this._failure.document===this._iframe.contentDocument}get runtimeInjected(){return this._runtimeInjected}start(){this.stop(),this._failure=null,this._runtimeInjected=!1;let e=0;this._interval=setInterval(()=>{e++;let n=null;try{n=this._poll(e)}catch(i){i instanceof DOMException&&i.name==="SecurityError"||(n={kind:"error",message:i instanceof Error?i.message:String(i)})}n??=this._deadlineOutcome(e),n&&(this.stop(),n.kind==="error"?(this._failure={document:this._iframe.contentDocument},this._callbacks.onError(n.message)):this._callbacks.onReady(n.result))},200)}_deadlineOutcome(e){return e<40||this._callbacks.hostOwnsDeadline?.()?null:{kind:"error",message:"Composition timeline not found after 8s"}}_poll(e){let n=this._iframe.contentWindow;if(!n)return null;let i=ar(Reflect.get(n,bn));if(i!==null)return{kind:"error",message:i};let r=this._iframe.contentDocument,o=Reflect.get(n,"__timelines"),a=this.hasRuntimeBridge(n);if(_n({hasRuntime:a,hasTimelines:z(o)&&Object.keys(o).length>0,hasNestedCompositions:!!r?.querySelector("[data-composition-src]"),runtimeInjected:this._runtimeInjected,attempts:e}))return this._injectRuntime(),null;if(this._runtimeInjected&&!a)return null;let s=this._resolveReadyResult(n,r);return s?{kind:"ready",result:s}:null}_resolveReadyResult(e,n){let i=this._resolvePlaybackDurationAdapter(e)??{kind:"document",getDuration:()=>0},r=i.getDuration();if(!Number.isFinite(r)||r<=0){if(i.kind==="direct-timeline")return null;r=n?fn(n)?.durationSeconds??0:0}return r<=0?null:{duration:r,adapter:{...i,getDuration:()=>r},compositionSize:or(n)}}stop(){this._runtimeScript&&(this._runtimeScript.onerror=null,this._runtimeScript=null),this.failed||(this._failure=null),this._interval!==null&&(clearInterval(this._interval),this._interval=null)}resolveDirectTimelineAdapter(){try{let e=this._iframe.contentWindow;return e?this._resolveDirectTimelineAdapterFromWindow(e):null}catch{return null}}resolveDirectTimelineAdapterFromWindow(e){return this._resolveDirectTimelineAdapterFromWindow(e)}hasRuntimeBridge(e){return z(Reflect.get(e,"__player"))}_injectRuntime(){this._runtimeInjected=!0;try{let e=this._iframe.contentDocument;if(!e)return;let n=e.createElement("script");n.src=this._callbacks.resolveRuntimeUrl?.()??q,this._runtimeScript=n,n.onerror=()=>{this._runtimeScript!==n||this._iframe.contentDocument!==e||(this.stop(),this._failure={document:e},this._callbacks.onError("HyperFrames runtime failed to load from "+n.src))},(e.head||e.documentElement).appendChild(n),this._callbacks.onRuntimeInjected?.()}catch{}}_resolveDirectTimelineAdapterFromWindow(e){if(this.hasRuntimeBridge(e))return null;let n=Reflect.get(e,"__timelines");if(!z(n))return null;let i=Object.keys(n);if(i.length===0)return null;let r=this._iframe.contentDocument?.querySelector("[data-composition-id]")?.getAttribute("data-composition-id"),o=r&&r in n?r:i[i.length-1],a=n[o];return vn(a)?a:null}_resolvePlaybackDurationAdapter(e){let n=Reflect.get(e,"__player");if(yn(n))return{kind:"runtime",getDuration:()=>n.getDuration()};let i=this._resolveDirectTimelineAdapterFromWindow(e);return i?{kind:"direct-timeline",timeline:i,getDuration:()=>i.duration()}:null}};var An=`
|
|
2
2
|
:host {
|
|
3
3
|
display: block;
|
|
4
4
|
position: relative;
|
|
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
resolveProject
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-3HTXEXQ6.js";
|
|
10
10
|
import {
|
|
11
11
|
formatBytes,
|
|
12
12
|
label
|
|
@@ -14,8 +14,8 @@ import {
|
|
|
14
14
|
import {
|
|
15
15
|
ensureDOMParser
|
|
16
16
|
} from "./chunk-442JNXRM.js";
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-B2OUZUY5.js";
|
|
18
|
+
import "./chunk-B22YBW5W.js";
|
|
19
19
|
import "./chunk-VWG7OQKU.js";
|
|
20
20
|
import {
|
|
21
21
|
defineCommand
|
|
@@ -25,16 +25,16 @@ import "./chunk-JVBRJMOP.js";
|
|
|
25
25
|
import {
|
|
26
26
|
c
|
|
27
27
|
} from "./chunk-ZTZA4UWZ.js";
|
|
28
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-LEQU6P6H.js";
|
|
29
29
|
import "./chunk-RQVDTPGD.js";
|
|
30
30
|
import {
|
|
31
31
|
isHtmlElement
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-QTGKDF7D.js";
|
|
33
33
|
import "./chunk-VC76R6W2.js";
|
|
34
34
|
import {
|
|
35
35
|
CANVAS_DIMENSIONS,
|
|
36
36
|
parseHtml
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-E3F5L6AB.js";
|
|
38
38
|
import "./chunk-OFQWTKPW.js";
|
|
39
39
|
import "./chunk-DPVXBVLL.js";
|
|
40
40
|
import "./chunk-634HSJ3J.js";
|
|
@@ -51,12 +51,12 @@ import "./chunk-RXATE6FZ.js";
|
|
|
51
51
|
import "./chunk-UIOZIIB7.js";
|
|
52
52
|
import {
|
|
53
53
|
withMeta
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-GZCACSED.js";
|
|
55
55
|
import "./chunk-K4WIOZFP.js";
|
|
56
56
|
import "./chunk-PSX5SF2N.js";
|
|
57
57
|
import "./chunk-WERLJGIC.js";
|
|
58
58
|
import "./chunk-ISN5GRYI.js";
|
|
59
|
-
import "./chunk-
|
|
59
|
+
import "./chunk-MS4BAXOQ.js";
|
|
60
60
|
import "./chunk-T2EUWCJE.js";
|
|
61
61
|
import "./chunk-M2WBOQ2Q.js";
|
|
62
62
|
|
|
@@ -6,24 +6,24 @@ 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-PLL6VC4F.js";
|
|
10
10
|
import {
|
|
11
11
|
copyDirSync
|
|
12
12
|
} from "./chunk-CIWX5UKC.js";
|
|
13
13
|
import {
|
|
14
14
|
initialModelForLanguage
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
15
|
+
} from "./chunk-WAXBJLV6.js";
|
|
16
|
+
import "./chunk-MO4VKSFT.js";
|
|
17
17
|
import {
|
|
18
18
|
DEFAULT_MODEL,
|
|
19
19
|
hasFFmpeg
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-QGB5DECO.js";
|
|
21
21
|
import "./chunk-WQ6ZXHFQ.js";
|
|
22
22
|
import {
|
|
23
23
|
findFFmpeg,
|
|
24
24
|
findFFprobe,
|
|
25
25
|
getFFmpegInstallHint
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-AQVLMH5C.js";
|
|
27
27
|
import {
|
|
28
28
|
Ee,
|
|
29
29
|
R,
|
|
@@ -43,19 +43,19 @@ import {
|
|
|
43
43
|
listRegistryItems,
|
|
44
44
|
loadAllItems,
|
|
45
45
|
resolveItemWithDependencies
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-ABTBAQDB.js";
|
|
47
47
|
import "./chunk-JHOCK3DG.js";
|
|
48
48
|
import {
|
|
49
49
|
installItem
|
|
50
|
-
} from "./chunk-
|
|
51
|
-
import "./chunk-
|
|
50
|
+
} from "./chunk-QDEZ7LRH.js";
|
|
51
|
+
import "./chunk-CXTXB2LZ.js";
|
|
52
52
|
import "./chunk-AWDFDFI3.js";
|
|
53
53
|
import "./chunk-P6LJ4Y32.js";
|
|
54
54
|
import "./chunk-GMECXFAN.js";
|
|
55
55
|
import {
|
|
56
56
|
trackInitTemplate
|
|
57
|
-
} from "./chunk-
|
|
58
|
-
import "./chunk-
|
|
57
|
+
} from "./chunk-B2OUZUY5.js";
|
|
58
|
+
import "./chunk-B22YBW5W.js";
|
|
59
59
|
import "./chunk-VWG7OQKU.js";
|
|
60
60
|
import {
|
|
61
61
|
defineCommand,
|
|
@@ -70,12 +70,12 @@ import {
|
|
|
70
70
|
c,
|
|
71
71
|
isColorSupported
|
|
72
72
|
} from "./chunk-ZTZA4UWZ.js";
|
|
73
|
-
import "./chunk-
|
|
73
|
+
import "./chunk-75KIZWAD.js";
|
|
74
74
|
import "./chunk-5S7W3TUO.js";
|
|
75
|
-
import "./chunk-
|
|
75
|
+
import "./chunk-LEQU6P6H.js";
|
|
76
76
|
import "./chunk-RQVDTPGD.js";
|
|
77
|
-
import "./chunk-
|
|
78
|
-
import "./chunk-
|
|
77
|
+
import "./chunk-I64A5P5H.js";
|
|
78
|
+
import "./chunk-QTGKDF7D.js";
|
|
79
79
|
import "./chunk-VC76R6W2.js";
|
|
80
80
|
import {
|
|
81
81
|
CANVAS_DIMENSIONS,
|
|
@@ -83,7 +83,7 @@ import {
|
|
|
83
83
|
HTML_BODY_CSS_WIDTH_FIRST_RE,
|
|
84
84
|
VIEWPORT_META_SIZE_RE,
|
|
85
85
|
normalizeResolutionFlag
|
|
86
|
-
} from "./chunk-
|
|
86
|
+
} from "./chunk-E3F5L6AB.js";
|
|
87
87
|
import "./chunk-OFQWTKPW.js";
|
|
88
88
|
import "./chunk-DPVXBVLL.js";
|
|
89
89
|
import "./chunk-3GXQPCJC.js";
|
|
@@ -110,7 +110,7 @@ import "./chunk-WERLJGIC.js";
|
|
|
110
110
|
import "./chunk-ISN5GRYI.js";
|
|
111
111
|
import {
|
|
112
112
|
VERSION
|
|
113
|
-
} from "./chunk-
|
|
113
|
+
} from "./chunk-MS4BAXOQ.js";
|
|
114
114
|
import "./chunk-T2EUWCJE.js";
|
|
115
115
|
import "./chunk-UOFAE5RF.js";
|
|
116
116
|
import {
|
|
@@ -700,7 +700,7 @@ async function scaffoldProject(destDir, name, templateId, media, tailwind = fals
|
|
|
700
700
|
"utf-8"
|
|
701
701
|
);
|
|
702
702
|
if (!existsSync2(resolve(destDir, "hyperframes.json"))) {
|
|
703
|
-
const { createProjectConfig, DEFAULT_PROJECT_CONFIG } = await import("./projectConfig-
|
|
703
|
+
const { createProjectConfig, DEFAULT_PROJECT_CONFIG } = await import("./projectConfig-VZVY6ZZP.js");
|
|
704
704
|
const { normalizeSkillSlug } = await import("./skill-ZHVLH7KX.js");
|
|
705
705
|
const skill = normalizeSkillSlug(authoringSkill);
|
|
706
706
|
createProjectConfig(
|
|
@@ -721,7 +721,7 @@ async function scaffoldProject(destDir, name, templateId, media, tailwind = fals
|
|
|
721
721
|
}
|
|
722
722
|
}
|
|
723
723
|
async function keepSkillsCurrent(destDir) {
|
|
724
|
-
const { updateSkills } = await import("./skills-
|
|
724
|
+
const { updateSkills } = await import("./skills-WYJGVMR5.js");
|
|
725
725
|
console.log();
|
|
726
726
|
console.log(c.bold("Checking AI coding skills against GitHub..."));
|
|
727
727
|
try {
|
|
@@ -917,17 +917,17 @@ var init_default = defineCommand({
|
|
|
917
917
|
if (audioPath) {
|
|
918
918
|
sourceFilePath2 = audioPath;
|
|
919
919
|
copyFileSync(audioPath, resolve(destDir2, basename(audioPath)));
|
|
920
|
-
const { getMediaDurationSeconds } = await import("./transcribe-
|
|
920
|
+
const { getMediaDurationSeconds } = await import("./transcribe-WPFFLNTS.js");
|
|
921
921
|
videoDuration2 = getMediaDurationSeconds(audioPath) ?? void 0;
|
|
922
922
|
console.log(`Audio: ${basename(audioPath)}`);
|
|
923
923
|
}
|
|
924
924
|
if (sourceFilePath2 && !skipTranscribe) {
|
|
925
925
|
try {
|
|
926
|
-
const { ensureWhisper, ensureModel } = await import("./manager-
|
|
926
|
+
const { ensureWhisper, ensureModel } = await import("./manager-APB2JLSH.js");
|
|
927
927
|
await ensureWhisper();
|
|
928
928
|
await ensureModel(initialTranscriptionModel);
|
|
929
929
|
console.log("Transcribing...");
|
|
930
|
-
const { transcribe: runTranscribe } = await import("./transcribe-
|
|
930
|
+
const { transcribe: runTranscribe } = await import("./transcribe-WPFFLNTS.js");
|
|
931
931
|
const result = await runTranscribe(sourceFilePath2, destDir2, {
|
|
932
932
|
model: modelFlag,
|
|
933
933
|
language: languageFlag
|
|
@@ -1073,7 +1073,7 @@ var init_default = defineCommand({
|
|
|
1073
1073
|
mkdirSync(destDir, { recursive: true });
|
|
1074
1074
|
sourceFilePath = audioPath;
|
|
1075
1075
|
copyFileSync(audioPath, resolve(destDir, basename(audioPath)));
|
|
1076
|
-
const { getMediaDurationSeconds } = await import("./transcribe-
|
|
1076
|
+
const { getMediaDurationSeconds } = await import("./transcribe-WPFFLNTS.js");
|
|
1077
1077
|
videoDuration = getMediaDurationSeconds(audioPath) ?? void 0;
|
|
1078
1078
|
R.info(`Audio copied to ${c.accent(basename(audioPath))}`);
|
|
1079
1079
|
}
|
|
@@ -1083,7 +1083,7 @@ var init_default = defineCommand({
|
|
|
1083
1083
|
initialValue: true
|
|
1084
1084
|
});
|
|
1085
1085
|
if (!q(transcribeChoice) && transcribeChoice) {
|
|
1086
|
-
const { findWhisper } = await import("./manager-
|
|
1086
|
+
const { findWhisper } = await import("./manager-APB2JLSH.js");
|
|
1087
1087
|
const needsInstall = findWhisper() === void 0;
|
|
1088
1088
|
if (needsInstall) {
|
|
1089
1089
|
R.info(c.dim("whisper-cpp not found \u2014 installing automatically..."));
|
|
@@ -1093,7 +1093,7 @@ var init_default = defineCommand({
|
|
|
1093
1093
|
needsInstall ? "Installing whisper-cpp (this may take a moment)..." : "Preparing transcription..."
|
|
1094
1094
|
);
|
|
1095
1095
|
try {
|
|
1096
|
-
const { ensureWhisper, ensureModel } = await import("./manager-
|
|
1096
|
+
const { ensureWhisper, ensureModel } = await import("./manager-APB2JLSH.js");
|
|
1097
1097
|
await ensureWhisper({
|
|
1098
1098
|
onProgress: (msg) => spin2.message(msg)
|
|
1099
1099
|
});
|
|
@@ -1101,7 +1101,7 @@ var init_default = defineCommand({
|
|
|
1101
1101
|
onProgress: (msg) => spin2.message(msg)
|
|
1102
1102
|
});
|
|
1103
1103
|
spin2.message("Transcribing audio...");
|
|
1104
|
-
const { transcribe: runTranscribe } = await import("./transcribe-
|
|
1104
|
+
const { transcribe: runTranscribe } = await import("./transcribe-WPFFLNTS.js");
|
|
1105
1105
|
const transcribeResult = await runTranscribe(sourceFilePath, destDir, {
|
|
1106
1106
|
model: modelFlag,
|
|
1107
1107
|
language: languageFlag,
|
|
@@ -1179,7 +1179,7 @@ ${c.dim("Use --example blank for offline use.")}`
|
|
|
1179
1179
|
}
|
|
1180
1180
|
R.info("Opening studio preview...");
|
|
1181
1181
|
try {
|
|
1182
|
-
const previewCmd = await import("./preview-
|
|
1182
|
+
const previewCmd = await import("./preview-TT5Z6JK6.js").then((m) => m.default);
|
|
1183
1183
|
await runCommand(previewCmd, { rawArgs: [destDir] });
|
|
1184
1184
|
} catch {
|
|
1185
1185
|
}
|
|
@@ -6,45 +6,45 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
createInspectCommand
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-ANH7DV34.js";
|
|
10
|
+
import "./chunk-3HTXEXQ6.js";
|
|
11
|
+
import "./chunk-AQLRXGNN.js";
|
|
12
|
+
import "./chunk-RNLJJDGE.js";
|
|
13
13
|
import "./chunk-X7MTZ4T2.js";
|
|
14
14
|
import "./chunk-XUHOIDKG.js";
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-IB6ICAI7.js";
|
|
16
|
+
import "./chunk-JNBHYUEU.js";
|
|
17
17
|
import "./chunk-IXXVS2Z4.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-QXQ74PYD.js";
|
|
19
19
|
import "./chunk-XDMZY3H7.js";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-CL6ZTNQH.js";
|
|
21
21
|
import "./chunk-ALVXFXUG.js";
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-REFMKHRE.js";
|
|
23
|
+
import "./chunk-VOKI2HSE.js";
|
|
24
24
|
import "./chunk-MOEGCMKI.js";
|
|
25
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-L5IKISP2.js";
|
|
26
26
|
import "./chunk-DKPNNYBZ.js";
|
|
27
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-BU6XD7H2.js";
|
|
28
28
|
import "./chunk-K2FLNJVB.js";
|
|
29
29
|
import "./chunk-EHSBBBR2.js";
|
|
30
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-JCS7WFRM.js";
|
|
31
31
|
import "./chunk-442JNXRM.js";
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-COHU6S2X.js";
|
|
33
|
+
import "./chunk-4OPDZMV6.js";
|
|
34
34
|
import "./chunk-XT7X6QCP.js";
|
|
35
35
|
import "./chunk-4YYJOFKS.js";
|
|
36
36
|
import "./chunk-HVW7ABXD.js";
|
|
37
|
-
import "./chunk-
|
|
37
|
+
import "./chunk-ABTBAQDB.js";
|
|
38
38
|
import "./chunk-JHOCK3DG.js";
|
|
39
|
-
import "./chunk-
|
|
40
|
-
import "./chunk-
|
|
39
|
+
import "./chunk-QDEZ7LRH.js";
|
|
40
|
+
import "./chunk-CXTXB2LZ.js";
|
|
41
41
|
import "./chunk-AWDFDFI3.js";
|
|
42
42
|
import "./chunk-P6LJ4Y32.js";
|
|
43
43
|
import "./chunk-GMECXFAN.js";
|
|
44
44
|
import "./chunk-FLREUEHW.js";
|
|
45
45
|
import "./chunk-EOVYQ3IG.js";
|
|
46
|
-
import "./chunk-
|
|
47
|
-
import "./chunk-
|
|
46
|
+
import "./chunk-B2OUZUY5.js";
|
|
47
|
+
import "./chunk-B22YBW5W.js";
|
|
48
48
|
import "./chunk-VWG7OQKU.js";
|
|
49
49
|
import "./chunk-S3S4TGEH.js";
|
|
50
50
|
import "./chunk-54HJ63Q2.js";
|
|
@@ -53,14 +53,14 @@ import "./chunk-ZTZA4UWZ.js";
|
|
|
53
53
|
import "./chunk-KLIKCX6Q.js";
|
|
54
54
|
import "./chunk-EVMY7IPL.js";
|
|
55
55
|
import "./chunk-7FMUTGOH.js";
|
|
56
|
-
import "./chunk-
|
|
56
|
+
import "./chunk-75KIZWAD.js";
|
|
57
57
|
import "./chunk-5S7W3TUO.js";
|
|
58
|
-
import "./chunk-
|
|
58
|
+
import "./chunk-LEQU6P6H.js";
|
|
59
59
|
import "./chunk-RQVDTPGD.js";
|
|
60
|
-
import "./chunk-
|
|
61
|
-
import "./chunk-
|
|
60
|
+
import "./chunk-I64A5P5H.js";
|
|
61
|
+
import "./chunk-QTGKDF7D.js";
|
|
62
62
|
import "./chunk-VC76R6W2.js";
|
|
63
|
-
import "./chunk-
|
|
63
|
+
import "./chunk-E3F5L6AB.js";
|
|
64
64
|
import "./chunk-OFQWTKPW.js";
|
|
65
65
|
import "./chunk-DPVXBVLL.js";
|
|
66
66
|
import "./chunk-3GXQPCJC.js";
|
|
@@ -79,12 +79,12 @@ import "./chunk-SDYDNHEE.js";
|
|
|
79
79
|
import "./chunk-3422KMTD.js";
|
|
80
80
|
import "./chunk-RXATE6FZ.js";
|
|
81
81
|
import "./chunk-UIOZIIB7.js";
|
|
82
|
-
import "./chunk-
|
|
82
|
+
import "./chunk-GZCACSED.js";
|
|
83
83
|
import "./chunk-K4WIOZFP.js";
|
|
84
84
|
import "./chunk-PSX5SF2N.js";
|
|
85
85
|
import "./chunk-WERLJGIC.js";
|
|
86
86
|
import "./chunk-ISN5GRYI.js";
|
|
87
|
-
import "./chunk-
|
|
87
|
+
import "./chunk-MS4BAXOQ.js";
|
|
88
88
|
import "./chunk-T2EUWCJE.js";
|
|
89
89
|
import "./chunk-KGPLIH7B.js";
|
|
90
90
|
import "./chunk-M2WBOQ2Q.js";
|
|
@@ -10,16 +10,16 @@ import {
|
|
|
10
10
|
prepareItem,
|
|
11
11
|
publishItem,
|
|
12
12
|
recordRewrittenInstall
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import "./chunk-
|
|
13
|
+
} from "./chunk-QDEZ7LRH.js";
|
|
14
|
+
import "./chunk-CXTXB2LZ.js";
|
|
15
15
|
import "./chunk-AWDFDFI3.js";
|
|
16
16
|
import "./chunk-P6LJ4Y32.js";
|
|
17
17
|
import "./chunk-GMECXFAN.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-LEQU6P6H.js";
|
|
19
19
|
import "./chunk-RQVDTPGD.js";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-QTGKDF7D.js";
|
|
21
21
|
import "./chunk-VC76R6W2.js";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-E3F5L6AB.js";
|
|
23
23
|
import "./chunk-OFQWTKPW.js";
|
|
24
24
|
import "./chunk-DPVXBVLL.js";
|
|
25
25
|
import "./chunk-634HSJ3J.js";
|
|
@@ -6,13 +6,13 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
resolveProject
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-3HTXEXQ6.js";
|
|
10
10
|
import "./chunk-K2FLNJVB.js";
|
|
11
11
|
import {
|
|
12
12
|
ensureDOMParser
|
|
13
13
|
} from "./chunk-442JNXRM.js";
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-B2OUZUY5.js";
|
|
15
|
+
import "./chunk-B22YBW5W.js";
|
|
16
16
|
import "./chunk-VWG7OQKU.js";
|
|
17
17
|
import {
|
|
18
18
|
defineCommand
|
|
@@ -41,12 +41,12 @@ import {
|
|
|
41
41
|
import "./chunk-UIOZIIB7.js";
|
|
42
42
|
import {
|
|
43
43
|
withMeta
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-GZCACSED.js";
|
|
45
45
|
import "./chunk-K4WIOZFP.js";
|
|
46
46
|
import "./chunk-PSX5SF2N.js";
|
|
47
47
|
import "./chunk-WERLJGIC.js";
|
|
48
48
|
import "./chunk-ISN5GRYI.js";
|
|
49
|
-
import "./chunk-
|
|
49
|
+
import "./chunk-MS4BAXOQ.js";
|
|
50
50
|
import "./chunk-T2EUWCJE.js";
|
|
51
51
|
import {
|
|
52
52
|
__toESM
|
|
@@ -2539,7 +2539,7 @@ function printOnionShotSaved(saved, elementCount) {
|
|
|
2539
2539
|
console.log();
|
|
2540
2540
|
}
|
|
2541
2541
|
async function runOnionShot(comps, allComps, projectDir, entryFile, args) {
|
|
2542
|
-
const { captureMotionPathShot } = await import("./motionShot-
|
|
2542
|
+
const { captureMotionPathShot } = await import("./motionShot-UQJVQT76.js");
|
|
2543
2543
|
const requests = collectShotSelectors(args.selector ? allComps : comps);
|
|
2544
2544
|
const guardError = onionShotGuardError(projectDir, requests, args.ghost ?? false);
|
|
2545
2545
|
if (guardError) {
|