hyperframes 0.8.190-hdr.1 → 0.8.190-hdr.2

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.
Files changed (87) hide show
  1. package/dist/{add-42OFT2PY.js → add-XKIGIQBD.js} +5 -5
  2. package/dist/{asset-O67VPO3R.js → asset-EPVBGPLD.js} +2 -2
  3. package/dist/{audio-XKJ3ZIDS.js → audio-ESSDPMTI.js} +5 -5
  4. package/dist/{auth-OQPI6LUT.js → auth-UZNUA2ZH.js} +1 -1
  5. package/dist/{autoUpdate-A2N5A6DZ.js → autoUpdate-G6XGA656.js} +2 -2
  6. package/dist/{backgroundChecks-WMA3TUHP.js → backgroundChecks-7RTB6UEO.js} +6 -4
  7. package/dist/backgroundChecksWorker.js +5 -5
  8. package/dist/{beats-36HTUETR.js → beats-YJ6FI3KK.js} +4 -4
  9. package/dist/{benchmark-PPJOA4I5.js → benchmark-LKHRLJZ5.js} +5 -5
  10. package/dist/{browser-ZVRJHCG5.js → browser-FUVMB4QH.js} +3 -3
  11. package/dist/{catalog-AYZ2KQMV.js → catalog-MY56BHW2.js} +5 -5
  12. package/dist/{catch-up-EXF4BC4Z.js → catch-up-UTZ2NVJX.js} +4 -4
  13. package/dist/{check-4CTWFC7P.js → check-OJ3WQFBR.js} +12 -12
  14. package/dist/{checkBrowser-JCZJGHYX.js → checkBrowser-DVIDJUMU.js} +8 -8
  15. package/dist/{chunk-OAZGGUCB.js → chunk-27RI5H2Z.js} +2 -2
  16. package/dist/{chunk-GWE3UEGX.js → chunk-5KQ73IK4.js} +1 -1
  17. package/dist/{chunk-UASUPXBJ.js → chunk-6Q3H2XVO.js} +2 -2
  18. package/dist/{chunk-O6NHRPQV.js → chunk-AVQTEDEB.js} +2 -2
  19. package/dist/{chunk-6OJBN6P4.js → chunk-C4ZVVVFQ.js} +2 -2
  20. package/dist/{chunk-ID4S5OVW.js → chunk-KDSGIYWD.js} +9 -9
  21. package/dist/{chunk-EYBS6GH2.js → chunk-KI3QWUHQ.js} +2 -2
  22. package/dist/{chunk-3Q5WJY5E.js → chunk-L5CVDVRP.js} +2 -2
  23. package/dist/{chunk-AMGFHO6X.js → chunk-LDKJ62JI.js} +2 -2
  24. package/dist/{chunk-KVZ4ZANT.js → chunk-OXCMV46X.js} +1 -1
  25. package/dist/{chunk-2ICQSIZZ.js → chunk-PERQ4IPF.js} +1 -1
  26. package/dist/{chunk-T6MUUXE3.js → chunk-QX5OEEM2.js} +1 -1
  27. package/dist/{chunk-JVG4G46L.js → chunk-RK5TC65X.js} +1 -1
  28. package/dist/{chunk-ZKWXDQAE.js → chunk-RZOJAYLC.js} +1 -1
  29. package/dist/{chunk-UWSJL63I.js → chunk-SFBJTOLH.js} +1 -1
  30. package/dist/{chunk-CWRAVNDW.js → chunk-TBABDQTP.js} +2 -2
  31. package/dist/{chunk-E65UJDKR.js → chunk-TBTJ54LD.js} +1 -1
  32. package/dist/{chunk-4TFBD773.js → chunk-UCMEEIKT.js} +25 -6
  33. package/dist/{chunk-LJKMM3XW.js → chunk-UVGJJPQ5.js} +1 -1
  34. package/dist/{chunk-XRYN74FP.js → chunk-ZCLG4ABT.js} +2 -2
  35. package/dist/{clean-2JS7FOL5.js → clean-BEXKV2SR.js} +3 -3
  36. package/dist/cli.js +48 -48
  37. package/dist/{cloud-HCB6VY6B.js → cloud-W4HIAHWW.js} +4 -4
  38. package/dist/{compare-ISRKIX34.js → compare-OCQRHWFL.js} +4 -4
  39. package/dist/{component-ZBPQXTNP.js → component-PFABMIJR.js} +3 -3
  40. package/dist/{compositions-WOZU3EYH.js → compositions-4DP75HPB.js} +5 -5
  41. package/dist/{delete-NX3DWOKP.js → delete-Q2BAXC5U.js} +2 -2
  42. package/dist/{deploy-RW7L3BHN.js → deploy-YP53TJ6W.js} +1 -1
  43. package/dist/{doctor-KFHSQJWL.js → doctor-GXZ6S2LQ.js} +3 -3
  44. package/dist/{events-YT6WKFUT.js → events-W7TSCTSB.js} +3 -3
  45. package/dist/{events-RY3Z2CFX.js → events-XRDEDXEM.js} +2 -2
  46. package/dist/{feedback-GRNEVOPP.js → feedback-NDRLEQ5F.js} +4 -4
  47. package/dist/{figma-WN7BLU45.js → figma-6I7HWT33.js} +3 -3
  48. package/dist/fontLocalizeCli.js +1 -1
  49. package/dist/{get-DVXYGS3H.js → get-IUA43NWT.js} +2 -2
  50. package/dist/{grade-compare-LQXE5JYS.js → grade-compare-SVITPFG2.js} +4 -4
  51. package/dist/{help-22RCD5VH.js → help-2SM5W6OD.js} +1 -1
  52. package/dist/{history-IF553ERO.js → history-J2ISDA2B.js} +6 -6
  53. package/dist/hyperframes-player.global.js +1 -1
  54. package/dist/{info-VQGFR3XN.js → info-ADENRM7W.js} +5 -5
  55. package/dist/{init-UPM6HJKO.js → init-4EQWQACX.js} +6 -6
  56. package/dist/{inspect-S2XEY7E2.js → inspect-SSQSCUXI.js} +6 -6
  57. package/dist/{keyframes-54Q3I2A5.js → keyframes-Q6KD6WSI.js} +5 -5
  58. package/dist/{lambda-6IGRFK3D.js → lambda-ORO4HBID.js} +1 -1
  59. package/dist/{layout-ZIE7P36K.js → layout-HB2FKFAK.js} +6 -6
  60. package/dist/{lint-ONB3UNVL.js → lint-LW4QXZME.js} +6 -6
  61. package/dist/{list-P5VNTBT4.js → list-TEEARTVC.js} +2 -2
  62. package/dist/{login-7ROFE2PP.js → login-NIKXV3QQ.js} +4 -4
  63. package/dist/{media-treatment-GUZYPOL5.js → media-treatment-OESASVIP.js} +5 -5
  64. package/dist/{normalize-audio-SFFU7VUW.js → normalize-audio-7JD5K7GC.js} +4 -4
  65. package/dist/{open-2MY4ESCL.js → open-JDEJFR3T.js} +4 -4
  66. package/dist/{play-IOELJ2NM.js → play-ZYNVP6HL.js} +4 -4
  67. package/dist/{present-7LOVKMN7.js → present-SRIQEU6T.js} +4 -4
  68. package/dist/{preview-XN7YD5ZP.js → preview-W35WS3JE.js} +5 -5
  69. package/dist/{render-IDI4KMVH.js → render-FEBO2JDM.js} +5 -5
  70. package/dist/{render-E27W7W3K.js → render-SE6XZB6N.js} +8 -8
  71. package/dist/{skills-JASL5NGP.js → skills-DYG3RB2L.js} +5 -5
  72. package/dist/{skillsUpdateCheck-OTF363HZ.js → skillsUpdateCheck-2ID3ANHR.js} +3 -3
  73. package/dist/{snapshot-MWBENTZA.js → snapshot-3B2ZKIYT.js} +7 -7
  74. package/dist/studio/assets/{hyperframes-player-BV6dTpsG.js → hyperframes-player-rtpRPPQj.js} +1 -1
  75. package/dist/studio/assets/{index-CPVUyhno.js → index-BYkcPMaj.js} +1 -1
  76. package/dist/studio/assets/{index-Ct_WfjBH.js → index-fdM_H88D.js} +4 -4
  77. package/dist/studio/index.html +1 -1
  78. package/dist/{studioServer-6JDUXBF7.js → studioServer-QMPQY5ZS.js} +5 -5
  79. package/dist/{telemetry-R7QKFTNL.js → telemetry-TAPCDKRW.js} +3 -3
  80. package/dist/{timeline-GTUWGREV.js → timeline-TE3AJBIY.js} +5 -5
  81. package/dist/{tokens-2JZSWS5F.js → tokens-W2OSWWTP.js} +2 -2
  82. package/dist/{transcribe-M7OSQ5OU.js → transcribe-ZX6DVTCZ.js} +3 -3
  83. package/dist/{updateCheck-Y4MKTYXE.js → updateCheck-I6L3XF6H.js} +2 -2
  84. package/dist/{upgrade-WHEHL2KG.js → upgrade-4KKC2XO4.js} +2 -2
  85. package/dist/{validate-TC66RN5I.js → validate-TEVGGWHK.js} +6 -6
  86. package/dist/warmCheck.js +12 -12
  87. package/package.json +1 -1
@@ -12,9 +12,9 @@ import {
12
12
  withOwner,
13
13
  withReader,
14
14
  writeTurn
15
- } from "./chunk-T6MUUXE3.js";
15
+ } from "./chunk-QX5OEEM2.js";
16
16
  import "./chunk-X7MTZ4T2.js";
17
- import "./chunk-GWE3UEGX.js";
17
+ import "./chunk-5KQ73IK4.js";
18
18
  import {
19
19
  HistoryBusyError,
20
20
  HistoryIdError,
@@ -28,8 +28,8 @@ import {
28
28
  import "./chunk-EOVYQ3IG.js";
29
29
  import {
30
30
  trackHistoryAction
31
- } from "./chunk-ZKWXDQAE.js";
32
- import "./chunk-UWSJL63I.js";
31
+ } from "./chunk-RZOJAYLC.js";
32
+ import "./chunk-SFBJTOLH.js";
33
33
  import "./chunk-VWG7OQKU.js";
34
34
  import {
35
35
  defineCommand
@@ -48,12 +48,12 @@ import "./chunk-XT6MXC7A.js";
48
48
  import "./chunk-W2LGJSEN.js";
49
49
  import {
50
50
  withMeta
51
- } from "./chunk-LJKMM3XW.js";
51
+ } from "./chunk-UVGJJPQ5.js";
52
52
  import "./chunk-K4WIOZFP.js";
53
53
  import "./chunk-XUXGIA7H.js";
54
54
  import "./chunk-WERLJGIC.js";
55
55
  import "./chunk-ISN5GRYI.js";
56
- import "./chunk-EYBS6GH2.js";
56
+ import "./chunk-KI3QWUHQ.js";
57
57
  import "./chunk-KNU5COPB.js";
58
58
  import "./chunk-M2WBOQ2Q.js";
59
59
 
@@ -1,4 +1,4 @@
1
- "use strict";var HyperframesPlayer=(()=>{var Ge=Object.defineProperty;var ri=Object.getOwnPropertyDescriptor;var oi=Object.getOwnPropertyNames;var ai=Object.prototype.hasOwnProperty;var si=(t,e)=>{for(var n in e)Ge(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&&Ge(t,r,{get:()=>e[r],enumerable:!(i=ri(e,r))||i.enumerable});return t};var li=t=>ui(Ge({},"__esModule",{value:!0}),t);var ro={};si(ro,{HyperframesPlayer:()=>We,SPEED_PRESETS:()=>lt,formatSpeed:()=>se,formatTime:()=>Ce});var Nt=t=>t!==null&&Number.isFinite(t)&&t>0;function ve(t){let e=t.clipEndsSeconds.filter(i=>i===null).length;if(Nt(t.authoredDurationSeconds))return{seconds:t.authoredDurationSeconds,source:"authored",pendingClips:e};let n=t.clipEndsSeconds.filter(Nt);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 Pt(t){return t!=null&&t.nodeType===1}function $e(t){return Pt(t)&&t.namespaceURI===di}function Be(t,e){return $e(t)&&t.localName===e}function ci(t){return Be(t,"video")}function mi(t){return Be(t,"audio")}function I(t){return ci(t)||mi(t)}function ze(t){return Be(t,"img")}function Ae(t){if(t==null||t.trim()==="")return null;let e=Number.parseInt(t,10);return Number.isFinite(e)&&e>0?e:null}function Se(t=document){let e=t.querySelector('[data-composition-id][data-root="true"]');return $e(e)?e:t.querySelector("[data-composition-id]")}var V=Object.freeze({start:"data-start",duration:"data-duration",trackIndex:"data-track-index",derivedEnd:"data-end",legacyTrack:"data-layer"}),co=Object.freeze([V.start,V.duration,V.trackIndex]),mo=Object.freeze([V.derivedEnd]),po=Object.freeze([V.derivedEnd,V.legacyTrack]);function je(t){if(t==null||t.trim()==="")return null;let e=Number(t);return Number.isFinite(e)?e:null}var Lt=t=>{let e=je(t);return e!==null&&e>=0?e:null};function Ot(t){return Lt(t("data-playback-start"))??Lt(t("data-media-start"))??0}var K=.1,J=10;function qe(t){return Number.isFinite(t)&&t>0?Math.max(K,Math.min(J,t)):1}function Ft(t,e=1){let n=Number.parseFloat(t("data-playback-rate")??"");return qe(Number.isFinite(n)&&n>0?n:e)}function Ye(t){let e=je(t("data-duration"));return e!==null&&e>0?e:null}function Ut(t,e){let n=Ye(t);if(n!==null)return n;let i=je(t("data-end"));return i!==null?i-e:null}var pi=3;function Xe(t,e,n){return Number.isFinite(t)?Math.max(0,t-e)/qe(n):null}function Ke(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=Xe(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",ho=Ht.slice(5);var Z=(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}),Je=(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}),Ee=(t=-40,e=40,n=0)=>({kind:"number",key:"gain",label:"Gain",unit:"dB",min:t,max:e,step:.1,default:n,automatable:!0}),Vt={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."},Wt=[{id:"gain",label:"Gain",group:"dynamics",description:"Raise or lower the whole signal. Automate it to duck under something else.",params:[Ee(-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:[Z("frequency","Frequency",1e3),Ee(-40,40,0),Je(1)],web:"biquad-peaking"},{id:"lowshelf",label:"Low Shelf",group:"filter",description:"Lift or drop everything below the corner frequency.",params:[Z("frequency","Frequency",200,20,2e3),Ee(-40,40,0)],web:"biquad-lowshelf"},{id:"highshelf",label:"High Shelf",group:"filter",description:"Lift or drop everything above the corner frequency.",params:[Z("frequency","Frequency",4e3,500,2e4),Ee(-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:[Z("frequency","Cutoff",300,20,2e4),Je(.707),Vt],web:"biquad-highpass"},{id:"lowpass",label:"Low-pass",group:"filter",description:"Remove high frequencies, which darkens or muffles a track.",params:[Z("frequency","Cutoff",8e3,100,2e4),Je(.707),Vt],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"}],bo=new Map(Wt.map(t=>[t.id,t]));var go=Wt.map(t=>t.id);function fi(t){return 10**(t/20)}var Gt=fi(12);var Qe="data-automation",wo=Qe.slice(5),Ze=1,bi=512,M=class extends Error{constructor(e){super(e),this.name="AudioAutomationError"}},Te="volume",Re="rate";function Bt(t){if(t===Te)return{kind:"volume"};if(t===Re)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:Gt,step:.01,unit:"",label:"Volume",scale:"linear",default:1};var yi={min:K,max:J,step:.05,unit:"x",label:"Speed",scale:"log",default:1};function Q(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=Q(t);return e===null||e===0?0:Math.min(1,Math.max(-1,e))}function zt(t,e){let n=Q(t),i=Q(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 Si(t,e){let n=Q(t?.t),i=Q(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 Ei(t,e){let n=t.map(r=>Si(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(!Bt(n.target))continue;let i=n.target===Te?_i:n.target===Re?yi:null,r=Ei(n.points??[],i);r.length>0&&e.push({target:n.target,points:r})}return{version:Ze,lanes:e}}function jt(t){let e;try{e=JSON.parse(t)}catch(r){throw new M(`Automation is not valid JSON: ${r.message}`)}if(typeof e!="object"||e===null)throw new M("Automation must be a JSON object.");let n=e;if(n.version!==Ze)throw new M(`Unsupported automation version: ${String(n.version)}`);if(!Array.isArray(n.lanes))throw new M("Automation is missing a `lanes` array.");let i=n.lanes.map((r,o)=>{if(typeof r!="object"||r===null)throw new M(`Lane ${o} is not an object.`);let a=r;if(typeof a.target!="string"||!Bt(a.target))throw new M(`Lane ${o} has an unreadable target: ${String(a.target)}`);if(!Array.isArray(a.points))throw new M(`Lane ${o} is missing a \`points\` array.`);return{target:a.target,points:a.points}});return Ti({version:Ze,lanes:i})}function Ri(t,e){return e?Math.pow(t,Math.pow(2,2*e)):t}function wi(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 xi(t,e,n){let{cx:i,cy:r,w:o}=wi(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,g=m*m+2*o*d*m+d*d;return g>0?(2*o*r*d*m+d*d)/g: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?xi(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 we(t,e,n="linear"){let i=t.points;if(i.length===0)return 0;let r=i[0];if(e<=r.t)return r.v;let o=i[i.length-1];if(e>=o.t)return o.v;let a=0,s=i.length-1;for(;s-a>1;){let g=a+s>>1;i[g].t<=e?a=g:s=g}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 xe=new Map,Di=64;function qt(t,e=Te){let n=`${e}\0${t}`,i=xe.get(n);if(i!==void 0)return i;let r=null;try{r=jt(t).lanes.find(o=>o.target===e)??null}catch{r=null}return xe.size>Di&&xe.clear(),xe.set(n,r),r}var Yt=48,Xt=new WeakMap;function Ci(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=we(t,d,"log");r.push(u),o.push(o[o.length-1]+(m+we(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 g=1;g<=Yt;g+=1)a(Math.max(d,0)+(m-d)*g/Yt)}return{ts:Float64Array.from(r),ss:Float64Array.from(o),firstRate:n,lastRate:i}}function Ni(t){let e=Xt.get(t);return e||(e=Ci(t),Xt.set(t,e)),e}function Pi(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 et(t,e){if(typeof t=="number")return e/t;if(!Pi(t))return e;let{ts:n,ss:i,firstRate:r,lastRate:o}=Ni(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?qt(t,Re):null}function Kt(t,e){return Oi(t)??e}var No=[{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 v=Object.freeze({start:"data-start",duration:"data-duration",trackIndex:"data-track-index",derivedEnd:"data-end",legacyTrack:"data-layer"}),Lo=Object.freeze([v.start,v.duration,v.trackIndex]),Oo=Object.freeze([v.derivedEnd]),Fo=Object.freeze([v.derivedEnd,v.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 Ui(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 Vi(t){let e=Ui(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 ee(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=Vi(e);return i?{kind:"reference",refId:i.refId,offset:i.operator==="-"?-i.magnitude:i.magnitude}:null}function T(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 T(i,"invalid-start",v.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)?(T(i,"unresolved-start-reference",v.start,e),null):Math.max(0,r+t.offset)}var Wi=1e-9;function Gi(t,e){return Math.abs(t-e)<=Wi}function $i(t,e,n){let i=D(t);if(i==null){T(n,"deprecated-end",v.derivedEnd,t),T(n,"invalid-end",v.derivedEnd,t);return}if(e==null){T(n,"deprecated-end",v.derivedEnd,t);return}Gi(i,e)||(T(n,"deprecated-end",v.derivedEnd,t),T(n,"conflicting-end",v.derivedEnd,t))}function Bi(t,e,n){let i=D(t);return i==null||i<0?(T(n,"invalid-duration",v.duration,t),{duration:null,end:null,durationSource:"invalid"}):{duration:i,end:e==null?null:e+i,durationSource:"duration"}}function zi(t,e,n){T(n,"deprecated-end",v.derivedEnd,t);let i=D(t);return i==null?(T(n,"invalid-end",v.derivedEnd,t),{duration:null,end:null,durationSource:"invalid"}):e==null?{duration:null,end:i,durationSource:"legacy-end"}:i<e?(T(n,"end-before-start",v.derivedEnd,t),{duration:null,end:null,durationSource:"invalid"}):{duration:i-e,end:i,durationSource:"legacy-end"}}function ji(t,e,n){let i=t.getAttribute(v.duration),r=t.getAttribute(v.derivedEnd);if(i==null)return r==null?{duration:null,end:null,durationSource:"missing"}:zi(r,e,n);let o=Bi(i,e,n);return r!=null&&$i(r,o.end,n),o}function Zt(t,e,n,i){let r=D(t);return r==null||!Number.isInteger(r)?(T(i,"invalid-track-index",e,t),{trackIndex:0,trackSource:"invalid"}):{trackIndex:r,trackSource:n}}function qi(t,e){let n=t.getAttribute(v.trackIndex),i=t.getAttribute(v.legacyTrack);if(n==null&&i==null)return{trackIndex:0,trackSource:"default"};if(n==null&&i!=null)return T(e,"deprecated-layer",v.legacyTrack,i),Zt(i,v.legacyTrack,"legacy-layer",e);let r=Zt(n??"",v.trackIndex,"track-index",e);if(i==null)return r;T(e,"deprecated-layer",v.legacyTrack,i);let o=D(i);return o!=null&&o!==r.trackIndex&&T(e,"conflicting-layer",v.legacyTrack,i),r}function tt(t,e={}){let n=[],i=t.getAttribute(v.start),r=ee(i),o=Hi(r,i,e,n),a=ji(t,o,n),s=qi(t,n);return{startExpression:r,start:o,...a,...s,diagnostics:n}}function C(t){return D(t)}function te(t){return Ft(e=>t.getAttribute(e),I(t)?t.defaultPlaybackRate:1)}function nt(t){return Kt(t.getAttribute("data-automation"),te(t))}function it(t){return Ot(e=>t.getAttribute(e))}function H(t,e){return Yi(e,it(t),nt(t))}function rt(t){let e=Ke({tag:"video",authoredDurationSeconds:Ye(n=>t.getAttribute(n)),sourceDurationSeconds:Number.isFinite(t.duration)?t.duration:null,mediaStartSeconds:it(t),playbackRate:te(t)});return e.source==="media"?H(t,t.duration):e.seconds}function ke(t,e=0){return!ze(t)||!t.hasAttribute("data-start")&&!t.hasAttribute("data-track-index")?null:Ke({tag:"img",authoredDurationSeconds:Ut(n=>t.getAttribute(n),e),sourceDurationSeconds:null,mediaStartSeconds:0,playbackRate:1}).seconds}function Yi(t,e,n){return typeof n=="number"?Xe(t,e,n):Number.isFinite(t)?et(n,Math.max(0,t-e)):null}function tn(){return globalThis}function ne(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 ie(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 ne("runtime.timelineDuration",e),null}}var nn="data-hf-authored-duration",rn="data-hf-authored-end";function re(t){if(t==null||typeof t=="string"&&t.trim()==="")return null;let e=typeof t=="number"?t:Number(t);return Number.isFinite(e)?e:null}function Ie(t){let e=re(t.start);if(e==null)return null;let n=Math.max(0,e),i=re(t.duration),r=re(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=re(t.end),s=re(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 W=Object.freeze({start:"data-start",duration:"data-duration",trackIndex:"data-track-index",derivedEnd:"data-end",legacyTrack:"data-layer"}),Zo=Object.freeze([W.start,W.duration,W.trackIndex]),Qo=Object.freeze([W.derivedEnd]),ea=Object.freeze([W.derivedEnd,W.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 ot(t){return Ji(e=>t.getAttribute(e))}function cn(t,e){return t-ot(e)}function O(t){let e=t.timelineRegistry??{},n=t.includeAuthoredTimingAttrs??!1,i=t.documentRef??document,r=new WeakMap,o=new WeakMap,a=new Set,s=l=>{let f=i.getElementById(l);return f||(Array.from(i.querySelectorAll("[data-composition-id]")).find(_=>_.getAttribute("data-composition-id")===l)??null)},u=(l,f)=>n?l.getAttribute(f):null,d=l=>Ie({start:0,duration:l.getAttribute("data-duration"),authoredDuration:u(l,"data-hf-authored-duration")})?.duration??Ie({start:R(l,0),end:l.getAttribute("data-end"),authoredEnd:u(l,"data-hf-authored-end")})?.duration??null,m=l=>l!=null&&Number.isFinite(l)&&l>0?l:null,g=l=>{let f=l.getAttribute("data-composition-id");return f?m(ie(e[f])):null},y=l=>{let f=o.get(l);if(f!==void 0)return f;let _=d(l)??m(I(l)?H(l,l.duration):null)??m(ke(l))??g(l);return o.set(l,_),_},h=l=>l.hasAttribute("data-composition-src")||l.hasAttribute("data-composition-id")||l.hasAttribute("data-composition-file"),A=l=>{let f=l.parentElement;return!f||!l.hasAttribute("data-composition-id")||ee(l.getAttribute("data-start"))?null:h(f)?f:null},b=(l,f)=>cn(R(l,f),A(l)??l),S=(l,f)=>{let _=l.hasAttribute("data-composition-id")?l.parentElement?.closest("[data-composition-id]"):l.closest("[data-composition-id]");return _?b(_,f):0},N=(l,f)=>{let _=ee(l.getAttribute("data-start"));if(!_){let X=A(l);return X?R(X,f):f}if(_.kind==="absolute")return S(l,f)+Math.max(0,_.value);let x=s(_.refId);if(!x)return f;let L=R(x,0),be=y(x)??0,ge=Math.min(0,S(l,0));return Math.max(ge,L+be+_.offset)},R=(l,f)=>{let _=r.get(l);if(_!==void 0)return _??f;if(a.has(l))return f;a.add(l);try{let x=N(l,f);return r.set(l,x),x}finally{a.delete(l)}},k=l=>{let f=l.closest("[data-composition-id]");return{authoredStart:C(l.getAttribute("data-start")),hostStart:f?b(f,0):0,hasAutoStart:l.hasAttribute("data-hf-auto-start"),basis:l.getAttribute(an)}};return{resolveStartForElement:(l,f=0)=>R(l,Math.max(0,f)),resolveDurationForElement:l=>y(l),resolveMediaStartForElement:l=>{let f=k(l);return un({...f,ordinaryStart:()=>R(l,f.hostStart)})},resolveHostStartForElement:l=>S(l,0),resolveHostSlotsForElement:l=>{let f=[];for(let _=l.parentElement;_;_=_.parentElement){if(!h(_)||A(_)||ot(_)<=0)continue;let x=R(_,0),L=d(_);f.push({start:x,end:L?x+L:1/0})}return f},isRootGlobalMediaStartForElement:l=>I(l)&&ln(k(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,at=1/60,oe=t=>t!==null&&t>at?t:null;function Qi(t){return{width:Ae(t.getAttribute("data-width")),height:Ae(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<=at||n.push(Math.max(0,r)+o)}return oe(ve({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=C(t.getAttribute("data-duration"));return oe(ve({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):(I(o)||nr(o))&&i.push(null)}(n||t.querySelector("[data-lottie-src]"))&&i.push(null);let r=ve({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=oe(t.timeline()),n=Math.max(0,...t.floors().map(u=>u??0)),i=Number.isFinite(t.fallback)&&t.fallback>at?t.fallback:0,r=Math.max(n,i),a=e!==null&&e>=pn&&oe(r)!==null?null:e,s;return a!==null?s=Math.max(a,r):oe(n)!==null?s=r:i>0?s=i:s=t.derived(),s>0?s:0}function fn(t){let e=Se(t);if(!e)return null;let n=O({timelineRegistry:{},includeAuthoredTimingAttrs:!0,documentRef:t}),i=rr({declared:C(e.getAttribute("data-duration")),timeline:()=>null,floors:()=>[er(t,{mediaStart:n.resolveMediaStartForElement,mediaDuration:rt}),tr(e,n)],fallback:0,derived:()=>ir(e,n,{unregisteredLottie:!1}).seconds??0});return{...Qi(e),fps:mn().canonicalFps,durationSeconds:i}}var Me="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 G(t){return typeof t=="object"&&t!==null}function yn(t){return G(t)&&typeof t.getDuration=="function"}function vn(t){return G(t)&&typeof t.duration=="function"&&typeof t.time=="function"&&typeof t.seek=="function"&&typeof t.play=="function"&&typeof t.pause=="function"}var $="https://cdn.jsdelivr.net/npm/@hyperframes/core@0.8.190-hdr.1/dist/hyperframe.runtime.iife.js";function ae(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=ae(e.getAttribute("data-width")),i=ae(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 De=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:G(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 G(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?.()??$,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(!G(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 Ge=Object.defineProperty;var ri=Object.getOwnPropertyDescriptor;var oi=Object.getOwnPropertyNames;var ai=Object.prototype.hasOwnProperty;var si=(t,e)=>{for(var n in e)Ge(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&&Ge(t,r,{get:()=>e[r],enumerable:!(i=ri(e,r))||i.enumerable});return t};var li=t=>ui(Ge({},"__esModule",{value:!0}),t);var ro={};si(ro,{HyperframesPlayer:()=>We,SPEED_PRESETS:()=>lt,formatSpeed:()=>se,formatTime:()=>Ce});var Nt=t=>t!==null&&Number.isFinite(t)&&t>0;function ve(t){let e=t.clipEndsSeconds.filter(i=>i===null).length;if(Nt(t.authoredDurationSeconds))return{seconds:t.authoredDurationSeconds,source:"authored",pendingClips:e};let n=t.clipEndsSeconds.filter(Nt);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 Pt(t){return t!=null&&t.nodeType===1}function $e(t){return Pt(t)&&t.namespaceURI===di}function Be(t,e){return $e(t)&&t.localName===e}function ci(t){return Be(t,"video")}function mi(t){return Be(t,"audio")}function I(t){return ci(t)||mi(t)}function ze(t){return Be(t,"img")}function Ae(t){if(t==null||t.trim()==="")return null;let e=Number.parseInt(t,10);return Number.isFinite(e)&&e>0?e:null}function Se(t=document){let e=t.querySelector('[data-composition-id][data-root="true"]');return $e(e)?e:t.querySelector("[data-composition-id]")}var V=Object.freeze({start:"data-start",duration:"data-duration",trackIndex:"data-track-index",derivedEnd:"data-end",legacyTrack:"data-layer"}),co=Object.freeze([V.start,V.duration,V.trackIndex]),mo=Object.freeze([V.derivedEnd]),po=Object.freeze([V.derivedEnd,V.legacyTrack]);function je(t){if(t==null||t.trim()==="")return null;let e=Number(t);return Number.isFinite(e)?e:null}var Lt=t=>{let e=je(t);return e!==null&&e>=0?e:null};function Ot(t){return Lt(t("data-playback-start"))??Lt(t("data-media-start"))??0}var K=.1,J=10;function qe(t){return Number.isFinite(t)&&t>0?Math.max(K,Math.min(J,t)):1}function Ft(t,e=1){let n=Number.parseFloat(t("data-playback-rate")??"");return qe(Number.isFinite(n)&&n>0?n:e)}function Ye(t){let e=je(t("data-duration"));return e!==null&&e>0?e:null}function Ut(t,e){let n=Ye(t);if(n!==null)return n;let i=je(t("data-end"));return i!==null?i-e:null}var pi=3;function Xe(t,e,n){return Number.isFinite(t)?Math.max(0,t-e)/qe(n):null}function Ke(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=Xe(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",ho=Ht.slice(5);var Z=(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}),Je=(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}),Ee=(t=-40,e=40,n=0)=>({kind:"number",key:"gain",label:"Gain",unit:"dB",min:t,max:e,step:.1,default:n,automatable:!0}),Vt={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."},Wt=[{id:"gain",label:"Gain",group:"dynamics",description:"Raise or lower the whole signal. Automate it to duck under something else.",params:[Ee(-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:[Z("frequency","Frequency",1e3),Ee(-40,40,0),Je(1)],web:"biquad-peaking"},{id:"lowshelf",label:"Low Shelf",group:"filter",description:"Lift or drop everything below the corner frequency.",params:[Z("frequency","Frequency",200,20,2e3),Ee(-40,40,0)],web:"biquad-lowshelf"},{id:"highshelf",label:"High Shelf",group:"filter",description:"Lift or drop everything above the corner frequency.",params:[Z("frequency","Frequency",4e3,500,2e4),Ee(-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:[Z("frequency","Cutoff",300,20,2e4),Je(.707),Vt],web:"biquad-highpass"},{id:"lowpass",label:"Low-pass",group:"filter",description:"Remove high frequencies, which darkens or muffles a track.",params:[Z("frequency","Cutoff",8e3,100,2e4),Je(.707),Vt],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"}],bo=new Map(Wt.map(t=>[t.id,t]));var go=Wt.map(t=>t.id);function fi(t){return 10**(t/20)}var Gt=fi(12);var Qe="data-automation",wo=Qe.slice(5),Ze=1,bi=512,M=class extends Error{constructor(e){super(e),this.name="AudioAutomationError"}},Te="volume",Re="rate";function Bt(t){if(t===Te)return{kind:"volume"};if(t===Re)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:Gt,step:.01,unit:"",label:"Volume",scale:"linear",default:1};var yi={min:K,max:J,step:.05,unit:"x",label:"Speed",scale:"log",default:1};function Q(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=Q(t);return e===null||e===0?0:Math.min(1,Math.max(-1,e))}function zt(t,e){let n=Q(t),i=Q(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 Si(t,e){let n=Q(t?.t),i=Q(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 Ei(t,e){let n=t.map(r=>Si(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(!Bt(n.target))continue;let i=n.target===Te?_i:n.target===Re?yi:null,r=Ei(n.points??[],i);r.length>0&&e.push({target:n.target,points:r})}return{version:Ze,lanes:e}}function jt(t){let e;try{e=JSON.parse(t)}catch(r){throw new M(`Automation is not valid JSON: ${r.message}`)}if(typeof e!="object"||e===null)throw new M("Automation must be a JSON object.");let n=e;if(n.version!==Ze)throw new M(`Unsupported automation version: ${String(n.version)}`);if(!Array.isArray(n.lanes))throw new M("Automation is missing a `lanes` array.");let i=n.lanes.map((r,o)=>{if(typeof r!="object"||r===null)throw new M(`Lane ${o} is not an object.`);let a=r;if(typeof a.target!="string"||!Bt(a.target))throw new M(`Lane ${o} has an unreadable target: ${String(a.target)}`);if(!Array.isArray(a.points))throw new M(`Lane ${o} is missing a \`points\` array.`);return{target:a.target,points:a.points}});return Ti({version:Ze,lanes:i})}function Ri(t,e){return e?Math.pow(t,Math.pow(2,2*e)):t}function wi(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 xi(t,e,n){let{cx:i,cy:r,w:o}=wi(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,g=m*m+2*o*d*m+d*d;return g>0?(2*o*r*d*m+d*d)/g: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?xi(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 we(t,e,n="linear"){let i=t.points;if(i.length===0)return 0;let r=i[0];if(e<=r.t)return r.v;let o=i[i.length-1];if(e>=o.t)return o.v;let a=0,s=i.length-1;for(;s-a>1;){let g=a+s>>1;i[g].t<=e?a=g:s=g}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 xe=new Map,Di=64;function qt(t,e=Te){let n=`${e}\0${t}`,i=xe.get(n);if(i!==void 0)return i;let r=null;try{r=jt(t).lanes.find(o=>o.target===e)??null}catch{r=null}return xe.size>Di&&xe.clear(),xe.set(n,r),r}var Yt=48,Xt=new WeakMap;function Ci(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=we(t,d,"log");r.push(u),o.push(o[o.length-1]+(m+we(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 g=1;g<=Yt;g+=1)a(Math.max(d,0)+(m-d)*g/Yt)}return{ts:Float64Array.from(r),ss:Float64Array.from(o),firstRate:n,lastRate:i}}function Ni(t){let e=Xt.get(t);return e||(e=Ci(t),Xt.set(t,e)),e}function Pi(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 et(t,e){if(typeof t=="number")return e/t;if(!Pi(t))return e;let{ts:n,ss:i,firstRate:r,lastRate:o}=Ni(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?qt(t,Re):null}function Kt(t,e){return Oi(t)??e}var No=[{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 v=Object.freeze({start:"data-start",duration:"data-duration",trackIndex:"data-track-index",derivedEnd:"data-end",legacyTrack:"data-layer"}),Lo=Object.freeze([v.start,v.duration,v.trackIndex]),Oo=Object.freeze([v.derivedEnd]),Fo=Object.freeze([v.derivedEnd,v.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 Ui(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 Vi(t){let e=Ui(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 ee(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=Vi(e);return i?{kind:"reference",refId:i.refId,offset:i.operator==="-"?-i.magnitude:i.magnitude}:null}function T(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 T(i,"invalid-start",v.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)?(T(i,"unresolved-start-reference",v.start,e),null):Math.max(0,r+t.offset)}var Wi=1e-9;function Gi(t,e){return Math.abs(t-e)<=Wi}function $i(t,e,n){let i=D(t);if(i==null){T(n,"deprecated-end",v.derivedEnd,t),T(n,"invalid-end",v.derivedEnd,t);return}if(e==null){T(n,"deprecated-end",v.derivedEnd,t);return}Gi(i,e)||(T(n,"deprecated-end",v.derivedEnd,t),T(n,"conflicting-end",v.derivedEnd,t))}function Bi(t,e,n){let i=D(t);return i==null||i<0?(T(n,"invalid-duration",v.duration,t),{duration:null,end:null,durationSource:"invalid"}):{duration:i,end:e==null?null:e+i,durationSource:"duration"}}function zi(t,e,n){T(n,"deprecated-end",v.derivedEnd,t);let i=D(t);return i==null?(T(n,"invalid-end",v.derivedEnd,t),{duration:null,end:null,durationSource:"invalid"}):e==null?{duration:null,end:i,durationSource:"legacy-end"}:i<e?(T(n,"end-before-start",v.derivedEnd,t),{duration:null,end:null,durationSource:"invalid"}):{duration:i-e,end:i,durationSource:"legacy-end"}}function ji(t,e,n){let i=t.getAttribute(v.duration),r=t.getAttribute(v.derivedEnd);if(i==null)return r==null?{duration:null,end:null,durationSource:"missing"}:zi(r,e,n);let o=Bi(i,e,n);return r!=null&&$i(r,o.end,n),o}function Zt(t,e,n,i){let r=D(t);return r==null||!Number.isInteger(r)?(T(i,"invalid-track-index",e,t),{trackIndex:0,trackSource:"invalid"}):{trackIndex:r,trackSource:n}}function qi(t,e){let n=t.getAttribute(v.trackIndex),i=t.getAttribute(v.legacyTrack);if(n==null&&i==null)return{trackIndex:0,trackSource:"default"};if(n==null&&i!=null)return T(e,"deprecated-layer",v.legacyTrack,i),Zt(i,v.legacyTrack,"legacy-layer",e);let r=Zt(n??"",v.trackIndex,"track-index",e);if(i==null)return r;T(e,"deprecated-layer",v.legacyTrack,i);let o=D(i);return o!=null&&o!==r.trackIndex&&T(e,"conflicting-layer",v.legacyTrack,i),r}function tt(t,e={}){let n=[],i=t.getAttribute(v.start),r=ee(i),o=Hi(r,i,e,n),a=ji(t,o,n),s=qi(t,n);return{startExpression:r,start:o,...a,...s,diagnostics:n}}function C(t){return D(t)}function te(t){return Ft(e=>t.getAttribute(e),I(t)?t.defaultPlaybackRate:1)}function nt(t){return Kt(t.getAttribute("data-automation"),te(t))}function it(t){return Ot(e=>t.getAttribute(e))}function H(t,e){return Yi(e,it(t),nt(t))}function rt(t){let e=Ke({tag:"video",authoredDurationSeconds:Ye(n=>t.getAttribute(n)),sourceDurationSeconds:Number.isFinite(t.duration)?t.duration:null,mediaStartSeconds:it(t),playbackRate:te(t)});return e.source==="media"?H(t,t.duration):e.seconds}function ke(t,e=0){return!ze(t)||!t.hasAttribute("data-start")&&!t.hasAttribute("data-track-index")?null:Ke({tag:"img",authoredDurationSeconds:Ut(n=>t.getAttribute(n),e),sourceDurationSeconds:null,mediaStartSeconds:0,playbackRate:1}).seconds}function Yi(t,e,n){return typeof n=="number"?Xe(t,e,n):Number.isFinite(t)?et(n,Math.max(0,t-e)):null}function tn(){return globalThis}function ne(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 ie(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 ne("runtime.timelineDuration",e),null}}var nn="data-hf-authored-duration",rn="data-hf-authored-end";function re(t){if(t==null||typeof t=="string"&&t.trim()==="")return null;let e=typeof t=="number"?t:Number(t);return Number.isFinite(e)?e:null}function Ie(t){let e=re(t.start);if(e==null)return null;let n=Math.max(0,e),i=re(t.duration),r=re(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=re(t.end),s=re(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 W=Object.freeze({start:"data-start",duration:"data-duration",trackIndex:"data-track-index",derivedEnd:"data-end",legacyTrack:"data-layer"}),Zo=Object.freeze([W.start,W.duration,W.trackIndex]),Qo=Object.freeze([W.derivedEnd]),ea=Object.freeze([W.derivedEnd,W.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 ot(t){return Ji(e=>t.getAttribute(e))}function cn(t,e){return t-ot(e)}function O(t){let e=t.timelineRegistry??{},n=t.includeAuthoredTimingAttrs??!1,i=t.documentRef??document,r=new WeakMap,o=new WeakMap,a=new Set,s=l=>{let f=i.getElementById(l);return f||(Array.from(i.querySelectorAll("[data-composition-id]")).find(_=>_.getAttribute("data-composition-id")===l)??null)},u=(l,f)=>n?l.getAttribute(f):null,d=l=>Ie({start:0,duration:l.getAttribute("data-duration"),authoredDuration:u(l,"data-hf-authored-duration")})?.duration??Ie({start:R(l,0),end:l.getAttribute("data-end"),authoredEnd:u(l,"data-hf-authored-end")})?.duration??null,m=l=>l!=null&&Number.isFinite(l)&&l>0?l:null,g=l=>{let f=l.getAttribute("data-composition-id");return f?m(ie(e[f])):null},y=l=>{let f=o.get(l);if(f!==void 0)return f;let _=d(l)??m(I(l)?H(l,l.duration):null)??m(ke(l))??g(l);return o.set(l,_),_},h=l=>l.hasAttribute("data-composition-src")||l.hasAttribute("data-composition-id")||l.hasAttribute("data-composition-file"),A=l=>{let f=l.parentElement;return!f||!l.hasAttribute("data-composition-id")||ee(l.getAttribute("data-start"))?null:h(f)?f:null},b=(l,f)=>cn(R(l,f),A(l)??l),S=(l,f)=>{let _=l.hasAttribute("data-composition-id")?l.parentElement?.closest("[data-composition-id]"):l.closest("[data-composition-id]");return _?b(_,f):0},N=(l,f)=>{let _=ee(l.getAttribute("data-start"));if(!_){let X=A(l);return X?R(X,f):f}if(_.kind==="absolute")return S(l,f)+Math.max(0,_.value);let x=s(_.refId);if(!x)return f;let L=R(x,0),be=y(x)??0,ge=Math.min(0,S(l,0));return Math.max(ge,L+be+_.offset)},R=(l,f)=>{let _=r.get(l);if(_!==void 0)return _??f;if(a.has(l))return f;a.add(l);try{let x=N(l,f);return r.set(l,x),x}finally{a.delete(l)}},k=l=>{let f=l.closest("[data-composition-id]");return{authoredStart:C(l.getAttribute("data-start")),hostStart:f?b(f,0):0,hasAutoStart:l.hasAttribute("data-hf-auto-start"),basis:l.getAttribute(an)}};return{resolveStartForElement:(l,f=0)=>R(l,Math.max(0,f)),resolveDurationForElement:l=>y(l),resolveMediaStartForElement:l=>{let f=k(l);return un({...f,ordinaryStart:()=>R(l,f.hostStart)})},resolveHostStartForElement:l=>S(l,0),resolveHostSlotsForElement:l=>{let f=[];for(let _=l.parentElement;_;_=_.parentElement){if(!h(_)||A(_)||ot(_)<=0)continue;let x=R(_,0),L=d(_);f.push({start:x,end:L?x+L:1/0})}return f},isRootGlobalMediaStartForElement:l=>I(l)&&ln(k(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,at=1/60,oe=t=>t!==null&&t>at?t:null;function Qi(t){return{width:Ae(t.getAttribute("data-width")),height:Ae(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<=at||n.push(Math.max(0,r)+o)}return oe(ve({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=C(t.getAttribute("data-duration"));return oe(ve({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):(I(o)||nr(o))&&i.push(null)}(n||t.querySelector("[data-lottie-src]"))&&i.push(null);let r=ve({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=oe(t.timeline()),n=Math.max(0,...t.floors().map(u=>u??0)),i=Number.isFinite(t.fallback)&&t.fallback>at?t.fallback:0,r=Math.max(n,i),a=e!==null&&e>=pn&&oe(r)!==null?null:e,s;return a!==null?s=Math.max(a,r):oe(n)!==null?s=r:i>0?s=i:s=t.derived(),s>0?s:0}function fn(t){let e=Se(t);if(!e)return null;let n=O({timelineRegistry:{},includeAuthoredTimingAttrs:!0,documentRef:t}),i=rr({declared:C(e.getAttribute("data-duration")),timeline:()=>null,floors:()=>[er(t,{mediaStart:n.resolveMediaStartForElement,mediaDuration:rt}),tr(e,n)],fallback:0,derived:()=>ir(e,n,{unregisteredLottie:!1}).seconds??0});return{...Qi(e),fps:mn().canonicalFps,durationSeconds:i}}var Me="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 G(t){return typeof t=="object"&&t!==null}function yn(t){return G(t)&&typeof t.getDuration=="function"}function vn(t){return G(t)&&typeof t.duration=="function"&&typeof t.time=="function"&&typeof t.seek=="function"&&typeof t.play=="function"&&typeof t.pause=="function"}var $="https://cdn.jsdelivr.net/npm/@hyperframes/core@0.8.190-hdr.2/dist/hyperframe.runtime.iife.js";function ae(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=ae(e.getAttribute("data-width")),i=ae(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 De=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:G(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 G(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?.()??$,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(!G(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-GWE3UEGX.js";
9
+ } from "./chunk-5KQ73IK4.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-ZKWXDQAE.js";
18
- import "./chunk-UWSJL63I.js";
17
+ import "./chunk-RZOJAYLC.js";
18
+ import "./chunk-SFBJTOLH.js";
19
19
  import "./chunk-VWG7OQKU.js";
20
20
  import {
21
21
  defineCommand
@@ -48,12 +48,12 @@ import "./chunk-I5JRXMCV.js";
48
48
  import "./chunk-W2LGJSEN.js";
49
49
  import {
50
50
  withMeta
51
- } from "./chunk-LJKMM3XW.js";
51
+ } from "./chunk-UVGJJPQ5.js";
52
52
  import "./chunk-K4WIOZFP.js";
53
53
  import "./chunk-XUXGIA7H.js";
54
54
  import "./chunk-WERLJGIC.js";
55
55
  import "./chunk-ISN5GRYI.js";
56
- import "./chunk-EYBS6GH2.js";
56
+ import "./chunk-KI3QWUHQ.js";
57
57
  import "./chunk-KNU5COPB.js";
58
58
  import "./chunk-M2WBOQ2Q.js";
59
59
 
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  gateRegistryItemsCompatibility
9
- } from "./chunk-E65UJDKR.js";
9
+ } from "./chunk-TBTJ54LD.js";
10
10
  import {
11
11
  copyDirSync
12
12
  } from "./chunk-CIWX5UKC.js";
@@ -54,8 +54,8 @@ import "./chunk-P6LJ4Y32.js";
54
54
  import "./chunk-GMECXFAN.js";
55
55
  import {
56
56
  trackInitTemplate
57
- } from "./chunk-ZKWXDQAE.js";
58
- import "./chunk-UWSJL63I.js";
57
+ } from "./chunk-RZOJAYLC.js";
58
+ import "./chunk-SFBJTOLH.js";
59
59
  import "./chunk-VWG7OQKU.js";
60
60
  import {
61
61
  defineCommand,
@@ -111,7 +111,7 @@ import "./chunk-WERLJGIC.js";
111
111
  import "./chunk-ISN5GRYI.js";
112
112
  import {
113
113
  VERSION
114
- } from "./chunk-EYBS6GH2.js";
114
+ } from "./chunk-KI3QWUHQ.js";
115
115
  import "./chunk-KNU5COPB.js";
116
116
  import "./chunk-UOFAE5RF.js";
117
117
  import {
@@ -722,7 +722,7 @@ async function scaffoldProject(destDir, name, templateId, media, tailwind = fals
722
722
  }
723
723
  }
724
724
  async function keepSkillsCurrent(destDir) {
725
- const { updateSkills } = await import("./skills-JASL5NGP.js");
725
+ const { updateSkills } = await import("./skills-DYG3RB2L.js");
726
726
  console.log();
727
727
  console.log(c.bold("Checking AI coding skills against GitHub..."));
728
728
  try {
@@ -1188,7 +1188,7 @@ ${c.dim("Use --example blank for offline use.")}`
1188
1188
  }
1189
1189
  R.info("Opening studio preview...");
1190
1190
  try {
1191
- const previewCmd = await import("./preview-XN7YD5ZP.js").then((m) => m.default);
1191
+ const previewCmd = await import("./preview-W35WS3JE.js").then((m) => m.default);
1192
1192
  await runCommand(previewCmd, { rawArgs: [destDir] });
1193
1193
  } catch {
1194
1194
  }
@@ -6,8 +6,8 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  createInspectCommand
9
- } from "./chunk-OAZGGUCB.js";
10
- import "./chunk-GWE3UEGX.js";
9
+ } from "./chunk-27RI5H2Z.js";
10
+ import "./chunk-5KQ73IK4.js";
11
11
  import "./chunk-HJZ5CPZA.js";
12
12
  import "./chunk-EPOYPP36.js";
13
13
  import "./chunk-X7MTZ4T2.js";
@@ -43,8 +43,8 @@ import "./chunk-P6LJ4Y32.js";
43
43
  import "./chunk-GMECXFAN.js";
44
44
  import "./chunk-7L37AB57.js";
45
45
  import "./chunk-EOVYQ3IG.js";
46
- import "./chunk-ZKWXDQAE.js";
47
- import "./chunk-UWSJL63I.js";
46
+ import "./chunk-RZOJAYLC.js";
47
+ import "./chunk-SFBJTOLH.js";
48
48
  import "./chunk-VWG7OQKU.js";
49
49
  import "./chunk-S3S4TGEH.js";
50
50
  import "./chunk-54HJ63Q2.js";
@@ -80,12 +80,12 @@ import "./chunk-SDYDNHEE.js";
80
80
  import "./chunk-IXLUTE6N.js";
81
81
  import "./chunk-I5JRXMCV.js";
82
82
  import "./chunk-W2LGJSEN.js";
83
- import "./chunk-LJKMM3XW.js";
83
+ import "./chunk-UVGJJPQ5.js";
84
84
  import "./chunk-K4WIOZFP.js";
85
85
  import "./chunk-XUXGIA7H.js";
86
86
  import "./chunk-WERLJGIC.js";
87
87
  import "./chunk-ISN5GRYI.js";
88
- import "./chunk-EYBS6GH2.js";
88
+ import "./chunk-KI3QWUHQ.js";
89
89
  import "./chunk-KNU5COPB.js";
90
90
  import "./chunk-KGPLIH7B.js";
91
91
  import "./chunk-M2WBOQ2Q.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-GWE3UEGX.js";
9
+ } from "./chunk-5KQ73IK4.js";
10
10
  import "./chunk-K2FLNJVB.js";
11
11
  import {
12
12
  ensureDOMParser
13
13
  } from "./chunk-442JNXRM.js";
14
- import "./chunk-ZKWXDQAE.js";
15
- import "./chunk-UWSJL63I.js";
14
+ import "./chunk-RZOJAYLC.js";
15
+ import "./chunk-SFBJTOLH.js";
16
16
  import "./chunk-VWG7OQKU.js";
17
17
  import {
18
18
  defineCommand
@@ -43,12 +43,12 @@ import {
43
43
  import "./chunk-W2LGJSEN.js";
44
44
  import {
45
45
  withMeta
46
- } from "./chunk-LJKMM3XW.js";
46
+ } from "./chunk-UVGJJPQ5.js";
47
47
  import "./chunk-K4WIOZFP.js";
48
48
  import "./chunk-XUXGIA7H.js";
49
49
  import "./chunk-WERLJGIC.js";
50
50
  import "./chunk-ISN5GRYI.js";
51
- import "./chunk-EYBS6GH2.js";
51
+ import "./chunk-KI3QWUHQ.js";
52
52
  import "./chunk-KNU5COPB.js";
53
53
  import {
54
54
  __toESM
@@ -244,7 +244,7 @@ var lambda_default = defineCommand({
244
244
  }
245
245
  switch (subcommand) {
246
246
  case "deploy": {
247
- const { runDeploy } = await import("./deploy-RW7L3BHN.js");
247
+ const { runDeploy } = await import("./deploy-YP53TJ6W.js");
248
248
  const { parseReservedConcurrency } = await import("./sam-FHJ7IL7T.js");
249
249
  await runDeploy({
250
250
  stackName,
@@ -10,8 +10,8 @@ import {
10
10
  layout_default,
11
11
  loadBrowserScript,
12
12
  parseAt
13
- } from "./chunk-OAZGGUCB.js";
14
- import "./chunk-GWE3UEGX.js";
13
+ } from "./chunk-27RI5H2Z.js";
14
+ import "./chunk-5KQ73IK4.js";
15
15
  import "./chunk-HJZ5CPZA.js";
16
16
  import "./chunk-EPOYPP36.js";
17
17
  import "./chunk-X7MTZ4T2.js";
@@ -47,8 +47,8 @@ import "./chunk-P6LJ4Y32.js";
47
47
  import "./chunk-GMECXFAN.js";
48
48
  import "./chunk-7L37AB57.js";
49
49
  import "./chunk-EOVYQ3IG.js";
50
- import "./chunk-ZKWXDQAE.js";
51
- import "./chunk-UWSJL63I.js";
50
+ import "./chunk-RZOJAYLC.js";
51
+ import "./chunk-SFBJTOLH.js";
52
52
  import "./chunk-VWG7OQKU.js";
53
53
  import "./chunk-S3S4TGEH.js";
54
54
  import "./chunk-54HJ63Q2.js";
@@ -84,12 +84,12 @@ import "./chunk-SDYDNHEE.js";
84
84
  import "./chunk-IXLUTE6N.js";
85
85
  import "./chunk-I5JRXMCV.js";
86
86
  import "./chunk-W2LGJSEN.js";
87
- import "./chunk-LJKMM3XW.js";
87
+ import "./chunk-UVGJJPQ5.js";
88
88
  import "./chunk-K4WIOZFP.js";
89
89
  import "./chunk-XUXGIA7H.js";
90
90
  import "./chunk-WERLJGIC.js";
91
91
  import "./chunk-ISN5GRYI.js";
92
- import "./chunk-EYBS6GH2.js";
92
+ import "./chunk-KI3QWUHQ.js";
93
93
  import "./chunk-KNU5COPB.js";
94
94
  import "./chunk-KGPLIH7B.js";
95
95
  import "./chunk-M2WBOQ2Q.js";
@@ -9,13 +9,13 @@ import {
9
9
  } from "./chunk-6CSYCFQV.js";
10
10
  import {
11
11
  trackLintRun
12
- } from "./chunk-AMGFHO6X.js";
12
+ } from "./chunk-LDKJ62JI.js";
13
13
  import {
14
14
  resolveProject
15
- } from "./chunk-GWE3UEGX.js";
15
+ } from "./chunk-5KQ73IK4.js";
16
16
  import "./chunk-K2FLNJVB.js";
17
- import "./chunk-ZKWXDQAE.js";
18
- import "./chunk-UWSJL63I.js";
17
+ import "./chunk-RZOJAYLC.js";
18
+ import "./chunk-SFBJTOLH.js";
19
19
  import "./chunk-VWG7OQKU.js";
20
20
  import {
21
21
  defineCommand
@@ -48,12 +48,12 @@ import "./chunk-I5JRXMCV.js";
48
48
  import "./chunk-W2LGJSEN.js";
49
49
  import {
50
50
  withMeta
51
- } from "./chunk-LJKMM3XW.js";
51
+ } from "./chunk-UVGJJPQ5.js";
52
52
  import "./chunk-K4WIOZFP.js";
53
53
  import "./chunk-XUXGIA7H.js";
54
54
  import "./chunk-WERLJGIC.js";
55
55
  import "./chunk-ISN5GRYI.js";
56
- import "./chunk-EYBS6GH2.js";
56
+ import "./chunk-KI3QWUHQ.js";
57
57
  import "./chunk-KNU5COPB.js";
58
58
  import "./chunk-M2WBOQ2Q.js";
59
59
 
@@ -34,12 +34,12 @@ import {
34
34
  import "./chunk-OFQWTKPW.js";
35
35
  import {
36
36
  withMeta
37
- } from "./chunk-LJKMM3XW.js";
37
+ } from "./chunk-UVGJJPQ5.js";
38
38
  import "./chunk-K4WIOZFP.js";
39
39
  import "./chunk-XUXGIA7H.js";
40
40
  import "./chunk-WERLJGIC.js";
41
41
  import "./chunk-ISN5GRYI.js";
42
- import "./chunk-EYBS6GH2.js";
42
+ import "./chunk-KI3QWUHQ.js";
43
43
  import "./chunk-KNU5COPB.js";
44
44
  import "./chunk-M2WBOQ2Q.js";
45
45
 
@@ -112,7 +112,7 @@ function assertAttendedDeviceFlow() {
112
112
  async function runDeviceLogin() {
113
113
  assertAttendedDeviceFlow();
114
114
  assertOAuthConfiguredOrExit();
115
- const { trackAuthLoginStarted, trackAuthLoginCompleted, trackAuthLoginFailed, identifyUser } = await import("./telemetry-R7QKFTNL.js");
115
+ const { trackAuthLoginStarted, trackAuthLoginCompleted, trackAuthLoginFailed, identifyUser } = await import("./telemetry-TAPCDKRW.js");
116
116
  trackAuthLoginStarted("device");
117
117
  let tokens;
118
118
  try {
@@ -179,7 +179,7 @@ async function revokeDeviceTokens(tokens) {
179
179
  }
180
180
  async function runOAuthLogin() {
181
181
  assertOAuthConfiguredOrExit();
182
- const { trackAuthLoginStarted, trackAuthLoginFailed } = await import("./telemetry-R7QKFTNL.js");
182
+ const { trackAuthLoginStarted, trackAuthLoginFailed } = await import("./telemetry-TAPCDKRW.js");
183
183
  trackAuthLoginStarted("oauth");
184
184
  let tokens;
185
185
  try {
@@ -193,7 +193,7 @@ async function runOAuthLogin() {
193
193
  await reportIdentity(issuedCredential(tokens));
194
194
  }
195
195
  async function reportIdentity(credential) {
196
- const { trackAuthLoginCompleted, identifyUser } = await import("./telemetry-R7QKFTNL.js");
196
+ const { trackAuthLoginCompleted, identifyUser } = await import("./telemetry-TAPCDKRW.js");
197
197
  const client = new AuthClient({
198
198
  onUnauthenticatedRefresh: async (rt) => await refreshTokens(rt)
199
199
  });
@@ -244,7 +244,7 @@ async function clearUserInfoBestEffort() {
244
244
  }
245
245
  }
246
246
  async function runApiKeyLogin(inlineKey) {
247
- const { trackAuthLoginStarted, trackAuthLoginCompleted, trackAuthLoginFailed, identifyUser } = await import("./telemetry-R7QKFTNL.js");
247
+ const { trackAuthLoginStarted, trackAuthLoginCompleted, trackAuthLoginFailed, identifyUser } = await import("./telemetry-TAPCDKRW.js");
248
248
  trackAuthLoginStarted("api_key");
249
249
  let key;
250
250
  try {
@@ -14,15 +14,15 @@ import {
14
14
  } from "./chunk-7KTMMDHC.js";
15
15
  import {
16
16
  resolveProject
17
- } from "./chunk-GWE3UEGX.js";
17
+ } from "./chunk-5KQ73IK4.js";
18
18
  import {
19
19
  isHTMLElement,
20
20
  parseSourceDocument
21
21
  } from "./chunk-RDHEG7RX.js";
22
22
  import "./chunk-6JR2XUEE.js";
23
23
  import "./chunk-K2FLNJVB.js";
24
- import "./chunk-ZKWXDQAE.js";
25
- import "./chunk-UWSJL63I.js";
24
+ import "./chunk-RZOJAYLC.js";
25
+ import "./chunk-SFBJTOLH.js";
26
26
  import "./chunk-VWG7OQKU.js";
27
27
  import {
28
28
  defineCommand
@@ -87,12 +87,12 @@ import "./chunk-I5JRXMCV.js";
87
87
  import "./chunk-W2LGJSEN.js";
88
88
  import {
89
89
  withMeta
90
- } from "./chunk-LJKMM3XW.js";
90
+ } from "./chunk-UVGJJPQ5.js";
91
91
  import "./chunk-K4WIOZFP.js";
92
92
  import "./chunk-XUXGIA7H.js";
93
93
  import "./chunk-WERLJGIC.js";
94
94
  import "./chunk-ISN5GRYI.js";
95
- import "./chunk-EYBS6GH2.js";
95
+ import "./chunk-KI3QWUHQ.js";
96
96
  import {
97
97
  normalizeErrorMessage
98
98
  } from "./chunk-KNU5COPB.js";
@@ -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-GWE3UEGX.js";
9
+ } from "./chunk-5KQ73IK4.js";
10
10
  import {
11
11
  DEFAULT_TARGET_LUFS,
12
12
  absoluteLoudnessPlan,
@@ -21,8 +21,8 @@ import {
21
21
  } from "./chunk-EI7FP7F3.js";
22
22
  import "./chunk-ALVXFXUG.js";
23
23
  import "./chunk-K2FLNJVB.js";
24
- import "./chunk-ZKWXDQAE.js";
25
- import "./chunk-UWSJL63I.js";
24
+ import "./chunk-RZOJAYLC.js";
25
+ import "./chunk-SFBJTOLH.js";
26
26
  import "./chunk-VWG7OQKU.js";
27
27
  import {
28
28
  defineCommand
@@ -48,7 +48,7 @@ import "./chunk-K4WIOZFP.js";
48
48
  import "./chunk-XUXGIA7H.js";
49
49
  import "./chunk-WERLJGIC.js";
50
50
  import "./chunk-ISN5GRYI.js";
51
- import "./chunk-EYBS6GH2.js";
51
+ import "./chunk-KI3QWUHQ.js";
52
52
  import "./chunk-KNU5COPB.js";
53
53
  import "./chunk-M2WBOQ2Q.js";
54
54
 
@@ -12,7 +12,7 @@ import "./chunk-DCAI5DBR.js";
12
12
  import {
13
13
  resolveProject,
14
14
  resolveProjectOrThrow
15
- } from "./chunk-GWE3UEGX.js";
15
+ } from "./chunk-5KQ73IK4.js";
16
16
  import "./chunk-K2FLNJVB.js";
17
17
  import "./chunk-UZ7RJDEC.js";
18
18
  import "./chunk-XT7X6QCP.js";
@@ -26,8 +26,8 @@ import "./chunk-AWDFDFI3.js";
26
26
  import "./chunk-P6LJ4Y32.js";
27
27
  import "./chunk-GMECXFAN.js";
28
28
  import "./chunk-EOVYQ3IG.js";
29
- import "./chunk-ZKWXDQAE.js";
30
- import "./chunk-UWSJL63I.js";
29
+ import "./chunk-RZOJAYLC.js";
30
+ import "./chunk-SFBJTOLH.js";
31
31
  import "./chunk-VWG7OQKU.js";
32
32
  import {
33
33
  defineCommand
@@ -62,7 +62,7 @@ import "./chunk-K4WIOZFP.js";
62
62
  import "./chunk-XUXGIA7H.js";
63
63
  import "./chunk-WERLJGIC.js";
64
64
  import "./chunk-ISN5GRYI.js";
65
- import "./chunk-EYBS6GH2.js";
65
+ import "./chunk-KI3QWUHQ.js";
66
66
  import "./chunk-KNU5COPB.js";
67
67
  import "./chunk-M2WBOQ2Q.js";
68
68
 
@@ -16,7 +16,7 @@ import {
16
16
  } from "./chunk-WMQNIQDJ.js";
17
17
  import {
18
18
  resolveProject
19
- } from "./chunk-GWE3UEGX.js";
19
+ } from "./chunk-5KQ73IK4.js";
20
20
  import {
21
21
  assetContentType,
22
22
  buildRangeResponse,
@@ -64,8 +64,8 @@ import "./chunk-P6LJ4Y32.js";
64
64
  import "./chunk-GMECXFAN.js";
65
65
  import "./chunk-7L37AB57.js";
66
66
  import "./chunk-EOVYQ3IG.js";
67
- import "./chunk-ZKWXDQAE.js";
68
- import "./chunk-UWSJL63I.js";
67
+ import "./chunk-RZOJAYLC.js";
68
+ import "./chunk-SFBJTOLH.js";
69
69
  import "./chunk-VWG7OQKU.js";
70
70
  import {
71
71
  defineCommand
@@ -108,7 +108,7 @@ import "./chunk-K4WIOZFP.js";
108
108
  import "./chunk-XUXGIA7H.js";
109
109
  import "./chunk-WERLJGIC.js";
110
110
  import "./chunk-ISN5GRYI.js";
111
- import "./chunk-EYBS6GH2.js";
111
+ import "./chunk-KI3QWUHQ.js";
112
112
  import "./chunk-KNU5COPB.js";
113
113
  import "./chunk-M2WBOQ2Q.js";
114
114