diff --git a/AnimatedSprite-888875f6.js b/AnimatedSprite-b795c45d.js similarity index 98% rename from AnimatedSprite-888875f6.js rename to AnimatedSprite-b795c45d.js index 7d2a39b..04c8053 100644 --- a/AnimatedSprite-888875f6.js +++ b/AnimatedSprite-b795c45d.js @@ -1 +1 @@ -import{P as a,w as r,c as h,U as u}from"./ChartManager-d5d16ca9.js";class n extends a{constructor(t,e=!0){super(t[0]instanceof r?t[0]:t[0].texture),this._textures=null,this._durations=null,this._autoUpdate=e,this._isConnectedToTicker=!1,this.animationSpeed=1,this.loop=!0,this.updateAnchor=!1,this.onComplete=null,this.onFrameChange=null,this.onLoop=null,this._currentTime=0,this._playing=!1,this._previousFrame=null,this.textures=t}stop(){this._playing&&(this._playing=!1,this._autoUpdate&&this._isConnectedToTicker&&(h.shared.remove(this.update,this),this._isConnectedToTicker=!1))}play(){this._playing||(this._playing=!0,this._autoUpdate&&!this._isConnectedToTicker&&(h.shared.add(this.update,this,u.HIGH),this._isConnectedToTicker=!0))}gotoAndStop(t){this.stop(),this.currentFrame=t}gotoAndPlay(t){this.currentFrame=t,this.play()}update(t){if(!this._playing)return;const e=this.animationSpeed*t,s=this.currentFrame;if(this._durations!==null){let i=this._currentTime%1*this._durations[this.currentFrame];for(i+=e/60*1e3;i<0;)this._currentTime--,i+=this._durations[this.currentFrame];const o=Math.sign(this.animationSpeed*t);for(this._currentTime=Math.floor(this._currentTime);i>=this._durations[this.currentFrame];)i-=this._durations[this.currentFrame]*o,this._currentTime+=o;this._currentTime+=i/this._durations[this.currentFrame]}else this._currentTime+=e;this._currentTime<0&&!this.loop?(this.gotoAndStop(0),this.onComplete&&this.onComplete()):this._currentTime>=this._textures.length&&!this.loop?(this.gotoAndStop(this._textures.length-1),this.onComplete&&this.onComplete()):s!==this.currentFrame&&(this.loop&&this.onLoop&&(this.animationSpeed>0&&this.currentFrames)&&this.onLoop(),this.updateTexture())}updateTexture(){const t=this.currentFrame;this._previousFrame!==t&&(this._previousFrame=t,this._texture=this._textures[t],this._textureID=-1,this._textureTrimmedID=-1,this._cachedTint=16777215,this.uvs=this._texture._uvs.uvsFloat32,this.updateAnchor&&this._anchor.copyFrom(this._texture.defaultAnchor),this.onFrameChange&&this.onFrameChange(this.currentFrame))}destroy(t){this.stop(),super.destroy(t),this.onComplete=null,this.onFrameChange=null,this.onLoop=null}static fromFrames(t){const e=[];for(let s=0;sthis.totalFrames-1)throw new Error(`[AnimatedSprite]: Invalid frame index value ${t}, expected to be between 0 and totalFrames ${this.totalFrames}.`);const e=this.currentFrame;this._currentTime=t,e!==this.currentFrame&&this.updateTexture()}get playing(){return this._playing}get autoUpdate(){return this._autoUpdate}set autoUpdate(t){t!==this._autoUpdate&&(this._autoUpdate=t,!this._autoUpdate&&this._isConnectedToTicker?(h.shared.remove(this.update,this),this._isConnectedToTicker=!1):this._autoUpdate&&!this._isConnectedToTicker&&this._playing&&(h.shared.add(this.update,this),this._isConnectedToTicker=!0))}}export{n as A}; +import{L as a,v as r,c as h,U as u}from"./ChartManager-47a72d67.js";class n extends a{constructor(t,e=!0){super(t[0]instanceof r?t[0]:t[0].texture),this._textures=null,this._durations=null,this._autoUpdate=e,this._isConnectedToTicker=!1,this.animationSpeed=1,this.loop=!0,this.updateAnchor=!1,this.onComplete=null,this.onFrameChange=null,this.onLoop=null,this._currentTime=0,this._playing=!1,this._previousFrame=null,this.textures=t}stop(){this._playing&&(this._playing=!1,this._autoUpdate&&this._isConnectedToTicker&&(h.shared.remove(this.update,this),this._isConnectedToTicker=!1))}play(){this._playing||(this._playing=!0,this._autoUpdate&&!this._isConnectedToTicker&&(h.shared.add(this.update,this,u.HIGH),this._isConnectedToTicker=!0))}gotoAndStop(t){this.stop(),this.currentFrame=t}gotoAndPlay(t){this.currentFrame=t,this.play()}update(t){if(!this._playing)return;const e=this.animationSpeed*t,s=this.currentFrame;if(this._durations!==null){let i=this._currentTime%1*this._durations[this.currentFrame];for(i+=e/60*1e3;i<0;)this._currentTime--,i+=this._durations[this.currentFrame];const o=Math.sign(this.animationSpeed*t);for(this._currentTime=Math.floor(this._currentTime);i>=this._durations[this.currentFrame];)i-=this._durations[this.currentFrame]*o,this._currentTime+=o;this._currentTime+=i/this._durations[this.currentFrame]}else this._currentTime+=e;this._currentTime<0&&!this.loop?(this.gotoAndStop(0),this.onComplete&&this.onComplete()):this._currentTime>=this._textures.length&&!this.loop?(this.gotoAndStop(this._textures.length-1),this.onComplete&&this.onComplete()):s!==this.currentFrame&&(this.loop&&this.onLoop&&(this.animationSpeed>0&&this.currentFrames)&&this.onLoop(),this.updateTexture())}updateTexture(){const t=this.currentFrame;this._previousFrame!==t&&(this._previousFrame=t,this._texture=this._textures[t],this._textureID=-1,this._textureTrimmedID=-1,this._cachedTint=16777215,this.uvs=this._texture._uvs.uvsFloat32,this.updateAnchor&&this._anchor.copyFrom(this._texture.defaultAnchor),this.onFrameChange&&this.onFrameChange(this.currentFrame))}destroy(t){this.stop(),super.destroy(t),this.onComplete=null,this.onFrameChange=null,this.onLoop=null}static fromFrames(t){const e=[];for(let s=0;sthis.totalFrames-1)throw new Error(`[AnimatedSprite]: Invalid frame index value ${t}, expected to be between 0 and totalFrames ${this.totalFrames}.`);const e=this.currentFrame;this._currentTime=t,e!==this.currentFrame&&this.updateTexture()}get playing(){return this._playing}get autoUpdate(){return this._autoUpdate}set autoUpdate(t){t!==this._autoUpdate&&(this._autoUpdate=t,!this._autoUpdate&&this._isConnectedToTicker?(h.shared.remove(this.update,this),this._isConnectedToTicker=!1):this._autoUpdate&&!this._isConnectedToTicker&&this._playing&&(h.shared.add(this.update,this),this._isConnectedToTicker=!0))}}export{n as A}; diff --git a/ChartManager-d5d16ca9.js b/ChartManager-47a72d67.js similarity index 99% rename from ChartManager-d5d16ca9.js rename to ChartManager-47a72d67.js index 17764ad..8dc6e48 100644 --- a/ChartManager-d5d16ca9.js +++ b/ChartManager-47a72d67.js @@ -1144,7 +1144,7 @@ void main(void)\r font-weight: ${t.weight}; font-style: ${t.style}; font-display: ${t.display}; - }`,this._stylesheet)}get stylesheet(){return this._stylesheet}set stylesheet(e){this._stylesheet!==e&&(this._stylesheet=e,this.styleID++)}normalizeColor(e){return Array.isArray(e)&&(e=Vw(e)),typeof e=="number"?Gw(e):e}dropShadowToCSS(){let e=this.normalizeColor(this.dropShadowColor);const t=this.dropShadowAlpha,i=Math.round(Math.cos(this.dropShadowAngle)*this.dropShadowDistance),s=Math.round(Math.sin(this.dropShadowAngle)*this.dropShadowDistance);e.startsWith("#")&&t<1&&(e+=(t*255|0).toString(16).padStart(2,"0"));const n=`${i}px ${s}px`;return this.dropShadowBlur>0?`text-shadow: ${n} ${this.dropShadowBlur}px ${e}`:`text-shadow: ${n} ${e}`}reset(){Object.assign(this,cn.defaultOptions)}onBeforeDraw(){const{fontsDirty:e}=this;return this.fontsDirty=!1,this.isSafari&&this._fonts.length>0&&e?new Promise(t=>setTimeout(t,100)):Promise.resolve()}get isSafari(){const{userAgent:e}=de.ADAPTER.getNavigator();return/^((?!chrome|android).)*safari/i.test(e)}set fillGradientStops(e){console.warn("[HTMLTextStyle] fillGradientStops is not supported by HTMLText")}get fillGradientStops(){return super.fillGradientStops}set fillGradientType(e){console.warn("[HTMLTextStyle] fillGradientType is not supported by HTMLText")}get fillGradientType(){return super.fillGradientType}set miterLimit(e){console.warn("[HTMLTextStyle] miterLimit is not supported by HTMLText")}get miterLimit(){return super.miterLimit}set trim(e){console.warn("[HTMLTextStyle] trim is not supported by HTMLText")}get trim(){return super.trim}set textBaseline(e){console.warn("[HTMLTextStyle] textBaseline is not supported by HTMLText")}get textBaseline(){return super.textBaseline}set leading(e){console.warn("[HTMLTextStyle] leading is not supported by HTMLText")}get leading(){return super.leading}set lineJoin(e){console.warn("[HTMLTextStyle] lineJoin is not supported by HTMLText")}get lineJoin(){return super.lineJoin}};Iu.availableFonts={},Iu.defaultOptions={align:"left",breakWords:!1,dropShadow:!1,dropShadowAlpha:1,dropShadowAngle:Math.PI/6,dropShadowBlur:0,dropShadowColor:"black",dropShadowDistance:5,fill:"black",fontFamily:"Arial",fontSize:26,fontStyle:"normal",fontVariant:"normal",fontWeight:"normal",letterSpacing:0,lineHeight:0,padding:0,stroke:"black",strokeThickness:0,whiteSpace:"normal",wordWrap:!1,wordWrapWidth:100};let nc=Iu;const Lo=class un extends Ne{constructor(e="",t={}){super(te.EMPTY),this._text=null,this._style=null,this._autoResolution=!0,this.localStyleID=-1,this.dirty=!1,this._updateID=0,this.ownsStyle=!1;const i=new Image,s=te.from(i,{scaleMode:de.SCALE_MODE,resourceOptions:{autoLoad:!1}});s.orig=new ke,s.trim=new ke,this.texture=s;const n="http://www.w3.org/2000/svg",a="http://www.w3.org/1999/xhtml",o=document.createElementNS(n,"svg"),l=document.createElementNS(n,"foreignObject"),c=document.createElementNS(a,"div"),u=document.createElementNS(a,"style");l.setAttribute("width","10000"),l.setAttribute("height","10000"),l.style.overflow="hidden",o.appendChild(l),this.maxWidth=un.defaultMaxWidth,this.maxHeight=un.defaultMaxHeight,this._domElement=c,this._styleElement=u,this._svgRoot=o,this._foreignObject=l,this._foreignObject.appendChild(u),this._foreignObject.appendChild(c),this._image=i,this._loadImage=new Image,this._autoResolution=un.defaultAutoResolution,this._resolution=un.defaultResolution??de.RESOLUTION,this.text=e,this.style=t}measureText(e){const{text:t,style:i,resolution:s}=Object.assign({text:this._text,style:this._style,resolution:this._resolution},e);Object.assign(this._domElement,{innerHTML:t,style:i.toCSS(s)}),this._styleElement.textContent=i.toGlobalCSS(),document.body.appendChild(this._svgRoot);const n=this._domElement.getBoundingClientRect();this._svgRoot.remove();const{width:a,height:o}=n;(a>this.maxWidth||o>this.maxHeight)&&console.warn("[HTMLText] Large expanse of text, increase HTMLText.maxWidth or HTMLText.maxHeight property.");const l=Math.min(this.maxWidth,Math.ceil(a)),c=Math.min(this.maxHeight,Math.ceil(o));return this._svgRoot.setAttribute("width",l.toString()),this._svgRoot.setAttribute("height",c.toString()),t!==this._text&&(this._domElement.innerHTML=this._text),i!==this._style&&(Object.assign(this._domElement,{style:this._style?.toCSS(s)}),this._styleElement.textContent=this._style?.toGlobalCSS()),{width:l+i.padding*2,height:c+i.padding*2}}async updateText(e=!0){const{style:t,_image:i,_loadImage:s}=this;if(this.localStyleID!==t.styleID&&(this.dirty=!0,this.localStyleID=t.styleID),!this.dirty&&e)return;const{width:n,height:a}=this.measureText();i.width=s.width=Math.ceil(Math.max(1,n)),i.height=s.height=Math.ceil(Math.max(1,a)),this._updateID++;const o=this._updateID;await new Promise(l=>{s.onload=async()=>{if(o/gi,"
").replace(/
/gi,"
").replace(/ /gi," ")}};Lo.defaultDestroyOptions={texture:!0,children:!1,baseTexture:!0},Lo.defaultMaxWidth=2024,Lo.defaultMaxHeight=2024,Lo.defaultAutoResolution=!0;var Kt="top",vi="bottom",wi="right",Zt="left",dd="auto",eo=[Kt,vi,wi,Zt],Bn="start",Fa="end",eT="clippingParents",Kg="viewport",na="popper",tT="reference",Ip=eo.reduce(function(r,e){return r.concat([e+"-"+Bn,e+"-"+Fa])},[]),Zg=[].concat(eo,[dd]).reduce(function(r,e){return r.concat([e,e+"-"+Bn,e+"-"+Fa])},[]),iT="beforeRead",rT="read",sT="afterRead",nT="beforeMain",aT="main",oT="afterMain",lT="beforeWrite",hT="write",cT="afterWrite",uT=[iT,rT,sT,nT,aT,oT,lT,hT,cT];function dr(r){return r?(r.nodeName||"").toLowerCase():null}function ti(r){if(r==null)return window;if(r.toString()!=="[object Window]"){var e=r.ownerDocument;return e&&e.defaultView||window}return r}function zs(r){var e=ti(r).Element;return r instanceof e||r instanceof Element}function yi(r){var e=ti(r).HTMLElement;return r instanceof e||r instanceof HTMLElement}function fd(r){if(typeof ShadowRoot>"u")return!1;var e=ti(r).ShadowRoot;return r instanceof e||r instanceof ShadowRoot}function dT(r){var e=r.state;Object.keys(e.elements).forEach(function(t){var i=e.styles[t]||{},s=e.attributes[t]||{},n=e.elements[t];!yi(n)||!dr(n)||(Object.assign(n.style,i),Object.keys(s).forEach(function(a){var o=s[a];o===!1?n.removeAttribute(a):n.setAttribute(a,o===!0?"":o)}))})}function fT(r){var e=r.state,t={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,t.popper),e.styles=t,e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow),function(){Object.keys(e.elements).forEach(function(i){var s=e.elements[i],n=e.attributes[i]||{},a=Object.keys(e.styles.hasOwnProperty(i)?e.styles[i]:t[i]),o=a.reduce(function(l,c){return l[c]="",l},{});!yi(s)||!dr(s)||(Object.assign(s.style,o),Object.keys(n).forEach(function(l){s.removeAttribute(l)}))})}}const Jg={name:"applyStyles",enabled:!0,phase:"write",fn:dT,effect:fT,requires:["computeStyles"]};function or(r){return r.split("-")[0]}var Ns=Math.max,Bl=Math.min,Rn=Math.round;function Pu(){var r=navigator.userAgentData;return r!=null&&r.brands&&Array.isArray(r.brands)?r.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Qg(){return!/^((?!chrome|android).)*safari/i.test(Pu())}function Fn(r,e,t){e===void 0&&(e=!1),t===void 0&&(t=!1);var i=r.getBoundingClientRect(),s=1,n=1;e&&yi(r)&&(s=r.offsetWidth>0&&Rn(i.width)/r.offsetWidth||1,n=r.offsetHeight>0&&Rn(i.height)/r.offsetHeight||1);var a=zs(r)?ti(r):window,o=a.visualViewport,l=!Qg()&&t,c=(i.left+(l&&o?o.offsetLeft:0))/s,u=(i.top+(l&&o?o.offsetTop:0))/n,h=i.width/s,d=i.height/n;return{width:h,height:d,top:u,right:c+h,bottom:u+d,left:c,x:c,y:u}}function pd(r){var e=Fn(r),t=r.offsetWidth,i=r.offsetHeight;return Math.abs(e.width-t)<=1&&(t=e.width),Math.abs(e.height-i)<=1&&(i=e.height),{x:r.offsetLeft,y:r.offsetTop,width:t,height:i}}function eb(r,e){var t=e.getRootNode&&e.getRootNode();if(r.contains(e))return!0;if(t&&fd(t)){var i=e;do{if(i&&r.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Pr(r){return ti(r).getComputedStyle(r)}function pT(r){return["table","td","th"].indexOf(dr(r))>=0}function us(r){return((zs(r)?r.ownerDocument:r.document)||window.document).documentElement}function th(r){return dr(r)==="html"?r:r.assignedSlot||r.parentNode||(fd(r)?r.host:null)||us(r)}function Pp(r){return!yi(r)||Pr(r).position==="fixed"?null:r.offsetParent}function mT(r){var e=/firefox/i.test(Pu()),t=/Trident/i.test(Pu());if(t&&yi(r)){var i=Pr(r);if(i.position==="fixed")return null}var s=th(r);for(fd(s)&&(s=s.host);yi(s)&&["html","body"].indexOf(dr(s))<0;){var n=Pr(s);if(n.transform!=="none"||n.perspective!=="none"||n.contain==="paint"||["transform","perspective"].indexOf(n.willChange)!==-1||e&&n.willChange==="filter"||e&&n.filter&&n.filter!=="none")return s;s=s.parentNode}return null}function to(r){for(var e=ti(r),t=Pp(r);t&&pT(t)&&Pr(t).position==="static";)t=Pp(t);return t&&(dr(t)==="html"||dr(t)==="body"&&Pr(t).position==="static")?e:t||mT(r)||e}function md(r){return["top","bottom"].indexOf(r)>=0?"x":"y"}function Ta(r,e,t){return Ns(r,Bl(e,t))}function gT(r,e,t){var i=Ta(r,e,t);return i>t?t:i}function tb(){return{top:0,right:0,bottom:0,left:0}}function ib(r){return Object.assign({},tb(),r)}function rb(r,e){return e.reduce(function(t,i){return t[i]=r,t},{})}var bT=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,ib(typeof e!="number"?e:rb(e,eo))};function yT(r){var e,t=r.state,i=r.name,s=r.options,n=t.elements.arrow,a=t.modifiersData.popperOffsets,o=or(t.placement),l=md(o),c=[Zt,wi].indexOf(o)>=0,u=c?"height":"width";if(!(!n||!a)){var h=bT(s.padding,t),d=pd(n),f=l==="y"?Kt:Zt,p=l==="y"?vi:wi,m=t.rects.reference[u]+t.rects.reference[l]-a[l]-t.rects.popper[u],g=a[l]-t.rects.reference[l],b=to(n),w=b?l==="y"?b.clientHeight||0:b.clientWidth||0:0,v=m/2-g/2,y=h[f],E=w-d[u]-h[p],C=w/2-d[u]/2+v,k=Ta(y,C,E),B=l;t.modifiersData[i]=(e={},e[B]=k,e.centerOffset=k-C,e)}}function vT(r){var e=r.state,t=r.options,i=t.element,s=i===void 0?"[data-popper-arrow]":i;s!=null&&(typeof s=="string"&&(s=e.elements.popper.querySelector(s),!s)||eb(e.elements.popper,s)&&(e.elements.arrow=s))}const wT={name:"arrow",enabled:!0,phase:"main",fn:yT,effect:vT,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ln(r){return r.split("-")[1]}var xT={top:"auto",right:"auto",bottom:"auto",left:"auto"};function _T(r,e){var t=r.x,i=r.y,s=e.devicePixelRatio||1;return{x:Rn(t*s)/s||0,y:Rn(i*s)/s||0}}function Bp(r){var e,t=r.popper,i=r.popperRect,s=r.placement,n=r.variation,a=r.offsets,o=r.position,l=r.gpuAcceleration,c=r.adaptive,u=r.roundOffsets,h=r.isFixed,d=a.x,f=d===void 0?0:d,p=a.y,m=p===void 0?0:p,g=typeof u=="function"?u({x:f,y:m}):{x:f,y:m};f=g.x,m=g.y;var b=a.hasOwnProperty("x"),w=a.hasOwnProperty("y"),v=Zt,y=Kt,E=window;if(c){var C=to(t),k="clientHeight",B="clientWidth";if(C===ti(t)&&(C=us(t),Pr(C).position!=="static"&&o==="absolute"&&(k="scrollHeight",B="scrollWidth")),C=C,s===Kt||(s===Zt||s===wi)&&n===Fa){y=vi;var M=h&&C===E&&E.visualViewport?E.visualViewport.height:C[k];m-=M-i.height,m*=l?1:-1}if(s===Zt||(s===Kt||s===vi)&&n===Fa){v=wi;var U=h&&C===E&&E.visualViewport?E.visualViewport.width:C[B];f-=U-i.width,f*=l?1:-1}}var V=Object.assign({position:o},c&&xT),T=u===!0?_T({x:f,y:m},ti(t)):{x:f,y:m};if(f=T.x,m=T.y,l){var S;return Object.assign({},V,(S={},S[y]=w?"0":"",S[v]=b?"0":"",S.transform=(E.devicePixelRatio||1)<=1?"translate("+f+"px, "+m+"px)":"translate3d("+f+"px, "+m+"px, 0)",S))}return Object.assign({},V,(e={},e[y]=w?m+"px":"",e[v]=b?f+"px":"",e.transform="",e))}function ET(r){var e=r.state,t=r.options,i=t.gpuAcceleration,s=i===void 0?!0:i,n=t.adaptive,a=n===void 0?!0:n,o=t.roundOffsets,l=o===void 0?!0:o,c={placement:or(e.placement),variation:Ln(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:s,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,Bp(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,Bp(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const AT={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:ET,data:{}};var Oo={passive:!0};function TT(r){var e=r.state,t=r.instance,i=r.options,s=i.scroll,n=s===void 0?!0:s,a=i.resize,o=a===void 0?!0:a,l=ti(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return n&&c.forEach(function(u){u.addEventListener("scroll",t.update,Oo)}),o&&l.addEventListener("resize",t.update,Oo),function(){n&&c.forEach(function(u){u.removeEventListener("scroll",t.update,Oo)}),o&&l.removeEventListener("resize",t.update,Oo)}}const CT={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:TT,data:{}};var ST={left:"right",right:"left",bottom:"top",top:"bottom"};function ul(r){return r.replace(/left|right|bottom|top/g,function(e){return ST[e]})}var MT={start:"end",end:"start"};function Rp(r){return r.replace(/start|end/g,function(e){return MT[e]})}function gd(r){var e=ti(r),t=e.pageXOffset,i=e.pageYOffset;return{scrollLeft:t,scrollTop:i}}function bd(r){return Fn(us(r)).left+gd(r).scrollLeft}function kT(r,e){var t=ti(r),i=us(r),s=t.visualViewport,n=i.clientWidth,a=i.clientHeight,o=0,l=0;if(s){n=s.width,a=s.height;var c=Qg();(c||!c&&e==="fixed")&&(o=s.offsetLeft,l=s.offsetTop)}return{width:n,height:a,x:o+bd(r),y:l}}function DT(r){var e,t=us(r),i=gd(r),s=(e=r.ownerDocument)==null?void 0:e.body,n=Ns(t.scrollWidth,t.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),a=Ns(t.scrollHeight,t.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),o=-i.scrollLeft+bd(r),l=-i.scrollTop;return Pr(s||t).direction==="rtl"&&(o+=Ns(t.clientWidth,s?s.clientWidth:0)-n),{width:n,height:a,x:o,y:l}}function yd(r){var e=Pr(r),t=e.overflow,i=e.overflowX,s=e.overflowY;return/auto|scroll|overlay|hidden/.test(t+s+i)}function sb(r){return["html","body","#document"].indexOf(dr(r))>=0?r.ownerDocument.body:yi(r)&&yd(r)?r:sb(th(r))}function Ca(r,e){var t;e===void 0&&(e=[]);var i=sb(r),s=i===((t=r.ownerDocument)==null?void 0:t.body),n=ti(i),a=s?[n].concat(n.visualViewport||[],yd(i)?i:[]):i,o=e.concat(a);return s?o:o.concat(Ca(th(a)))}function Bu(r){return Object.assign({},r,{left:r.x,top:r.y,right:r.x+r.width,bottom:r.y+r.height})}function IT(r,e){var t=Fn(r,!1,e==="fixed");return t.top=t.top+r.clientTop,t.left=t.left+r.clientLeft,t.bottom=t.top+r.clientHeight,t.right=t.left+r.clientWidth,t.width=r.clientWidth,t.height=r.clientHeight,t.x=t.left,t.y=t.top,t}function Fp(r,e,t){return e===Kg?Bu(kT(r,t)):zs(e)?IT(e,t):Bu(DT(us(r)))}function PT(r){var e=Ca(th(r)),t=["absolute","fixed"].indexOf(Pr(r).position)>=0,i=t&&yi(r)?to(r):r;return zs(i)?e.filter(function(s){return zs(s)&&eb(s,i)&&dr(s)!=="body"}):[]}function BT(r,e,t,i){var s=e==="clippingParents"?PT(r):[].concat(e),n=[].concat(s,[t]),a=n[0],o=n.reduce(function(l,c){var u=Fp(r,c,i);return l.top=Ns(u.top,l.top),l.right=Bl(u.right,l.right),l.bottom=Bl(u.bottom,l.bottom),l.left=Ns(u.left,l.left),l},Fp(r,a,i));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function nb(r){var e=r.reference,t=r.element,i=r.placement,s=i?or(i):null,n=i?Ln(i):null,a=e.x+e.width/2-t.width/2,o=e.y+e.height/2-t.height/2,l;switch(s){case Kt:l={x:a,y:e.y-t.height};break;case vi:l={x:a,y:e.y+e.height};break;case wi:l={x:e.x+e.width,y:o};break;case Zt:l={x:e.x-t.width,y:o};break;default:l={x:e.x,y:e.y}}var c=s?md(s):null;if(c!=null){var u=c==="y"?"height":"width";switch(n){case Bn:l[c]=l[c]-(e[u]/2-t[u]/2);break;case Fa:l[c]=l[c]+(e[u]/2-t[u]/2);break}}return l}function La(r,e){e===void 0&&(e={});var t=e,i=t.placement,s=i===void 0?r.placement:i,n=t.strategy,a=n===void 0?r.strategy:n,o=t.boundary,l=o===void 0?eT:o,c=t.rootBoundary,u=c===void 0?Kg:c,h=t.elementContext,d=h===void 0?na:h,f=t.altBoundary,p=f===void 0?!1:f,m=t.padding,g=m===void 0?0:m,b=ib(typeof g!="number"?g:rb(g,eo)),w=d===na?tT:na,v=r.rects.popper,y=r.elements[p?w:d],E=BT(zs(y)?y:y.contextElement||us(r.elements.popper),l,u,a),C=Fn(r.elements.reference),k=nb({reference:C,element:v,strategy:"absolute",placement:s}),B=Bu(Object.assign({},v,k)),M=d===na?B:C,U={top:E.top-M.top+b.top,bottom:M.bottom-E.bottom+b.bottom,left:E.left-M.left+b.left,right:M.right-E.right+b.right},V=r.modifiersData.offset;if(d===na&&V){var T=V[s];Object.keys(U).forEach(function(S){var _=[wi,vi].indexOf(S)>=0?1:-1,R=[Kt,vi].indexOf(S)>=0?"y":"x";U[S]+=T[R]*_})}return U}function RT(r,e){e===void 0&&(e={});var t=e,i=t.placement,s=t.boundary,n=t.rootBoundary,a=t.padding,o=t.flipVariations,l=t.allowedAutoPlacements,c=l===void 0?Zg:l,u=Ln(i),h=u?o?Ip:Ip.filter(function(p){return Ln(p)===u}):eo,d=h.filter(function(p){return c.indexOf(p)>=0});d.length===0&&(d=h);var f=d.reduce(function(p,m){return p[m]=La(r,{placement:m,boundary:s,rootBoundary:n,padding:a})[or(m)],p},{});return Object.keys(f).sort(function(p,m){return f[p]-f[m]})}function FT(r){if(or(r)===dd)return[];var e=ul(r);return[Rp(r),e,Rp(e)]}function LT(r){var e=r.state,t=r.options,i=r.name;if(!e.modifiersData[i]._skip){for(var s=t.mainAxis,n=s===void 0?!0:s,a=t.altAxis,o=a===void 0?!0:a,l=t.fallbackPlacements,c=t.padding,u=t.boundary,h=t.rootBoundary,d=t.altBoundary,f=t.flipVariations,p=f===void 0?!0:f,m=t.allowedAutoPlacements,g=e.options.placement,b=or(g),w=b===g,v=l||(w||!p?[ul(g)]:FT(g)),y=[g].concat(v).reduce(function(Q,Z){return Q.concat(or(Z)===dd?RT(e,{placement:Z,boundary:u,rootBoundary:h,padding:c,flipVariations:p,allowedAutoPlacements:m}):Z)},[]),E=e.rects.reference,C=e.rects.popper,k=new Map,B=!0,M=y[0],U=0;U=0,R=_?"width":"height",q=La(e,{placement:V,boundary:u,rootBoundary:h,altBoundary:d,padding:c}),F=_?S?wi:Zt:S?vi:Kt;E[R]>C[R]&&(F=ul(F));var L=ul(F),W=[];if(n&&W.push(q[T]<=0),o&&W.push(q[F]<=0,q[L]<=0),W.every(function(Q){return Q})){M=V,B=!1;break}k.set(V,W)}if(B)for(var z=p?3:1,O=function(Z){var be=y.find(function(Se){var ce=k.get(Se);if(ce)return ce.slice(0,Z).every(function(pe){return pe})});if(be)return M=be,"break"},N=z;N>0;N--){var ie=O(N);if(ie==="break")break}e.placement!==M&&(e.modifiersData[i]._skip=!0,e.placement=M,e.reset=!0)}}const OT={name:"flip",enabled:!0,phase:"main",fn:LT,requiresIfExists:["offset"],data:{_skip:!1}};function Lp(r,e,t){return t===void 0&&(t={x:0,y:0}),{top:r.top-e.height-t.y,right:r.right-e.width+t.x,bottom:r.bottom-e.height+t.y,left:r.left-e.width-t.x}}function Op(r){return[Kt,wi,vi,Zt].some(function(e){return r[e]>=0})}function NT(r){var e=r.state,t=r.name,i=e.rects.reference,s=e.rects.popper,n=e.modifiersData.preventOverflow,a=La(e,{elementContext:"reference"}),o=La(e,{altBoundary:!0}),l=Lp(a,i),c=Lp(o,s,n),u=Op(l),h=Op(c);e.modifiersData[t]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:h},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":h})}const UT={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:NT};function HT(r,e,t){var i=or(r),s=[Zt,Kt].indexOf(i)>=0?-1:1,n=typeof t=="function"?t(Object.assign({},e,{placement:r})):t,a=n[0],o=n[1];return a=a||0,o=(o||0)*s,[Zt,wi].indexOf(i)>=0?{x:o,y:a}:{x:a,y:o}}function GT(r){var e=r.state,t=r.options,i=r.name,s=t.offset,n=s===void 0?[0,0]:s,a=Zg.reduce(function(u,h){return u[h]=HT(h,e.rects,n),u},{}),o=a[e.placement],l=o.x,c=o.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[i]=a}const VT={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:GT};function zT(r){var e=r.state,t=r.name;e.modifiersData[t]=nb({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const WT={name:"popperOffsets",enabled:!0,phase:"read",fn:zT,data:{}};function $T(r){return r==="x"?"y":"x"}function jT(r){var e=r.state,t=r.options,i=r.name,s=t.mainAxis,n=s===void 0?!0:s,a=t.altAxis,o=a===void 0?!1:a,l=t.boundary,c=t.rootBoundary,u=t.altBoundary,h=t.padding,d=t.tether,f=d===void 0?!0:d,p=t.tetherOffset,m=p===void 0?0:p,g=La(e,{boundary:l,rootBoundary:c,padding:h,altBoundary:u}),b=or(e.placement),w=Ln(e.placement),v=!w,y=md(b),E=$T(y),C=e.modifiersData.popperOffsets,k=e.rects.reference,B=e.rects.popper,M=typeof m=="function"?m(Object.assign({},e.rects,{placement:e.placement})):m,U=typeof M=="number"?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),V=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,T={x:0,y:0};if(C){if(n){var S,_=y==="y"?Kt:Zt,R=y==="y"?vi:wi,q=y==="y"?"height":"width",F=C[y],L=F+g[_],W=F-g[R],z=f?-B[q]/2:0,O=w===Bn?k[q]:B[q],N=w===Bn?-B[q]:-k[q],ie=e.elements.arrow,Q=f&&ie?pd(ie):{width:0,height:0},Z=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:tb(),be=Z[_],Se=Z[R],ce=Ta(0,k[q],Q[q]),pe=v?k[q]/2-z-ce-be-U.mainAxis:O-ce-be-U.mainAxis,xe=v?-k[q]/2+z+ce+Se+U.mainAxis:N+ce+Se+U.mainAxis,le=e.elements.arrow&&to(e.elements.arrow),fe=le?y==="y"?le.clientTop||0:le.clientLeft||0:0,we=(S=V?.[y])!=null?S:0,A=F+pe-we-fe,Y=F+xe-we,j=Ta(f?Bl(L,A):L,F,f?Ns(W,Y):W);C[y]=j,T[y]=j-F}if(o){var I,D=y==="x"?Kt:Zt,G=y==="x"?vi:wi,J=C[E],ee=E==="y"?"height":"width",$=J+g[D],re=J-g[G],he=[Kt,Zt].indexOf(b)!==-1,ne=(I=V?.[E])!=null?I:0,_e=he?$:J-k[ee]-B[ee]-ne+U.altAxis,Xe=he?J+k[ee]+B[ee]-ne-U.altAxis:re,Ue=f&&he?gT(_e,J,Xe):Ta(f?_e:$,J,f?Xe:re);C[E]=Ue,T[E]=Ue-J}e.modifiersData[i]=T}}const qT={name:"preventOverflow",enabled:!0,phase:"main",fn:jT,requiresIfExists:["offset"]};function YT(r){return{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}}function XT(r){return r===ti(r)||!yi(r)?gd(r):YT(r)}function KT(r){var e=r.getBoundingClientRect(),t=Rn(e.width)/r.offsetWidth||1,i=Rn(e.height)/r.offsetHeight||1;return t!==1||i!==1}function ZT(r,e,t){t===void 0&&(t=!1);var i=yi(e),s=yi(e)&&KT(e),n=us(e),a=Fn(r,s,t),o={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!t)&&((dr(e)!=="body"||yd(n))&&(o=XT(e)),yi(e)?(l=Fn(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):n&&(l.x=bd(n))),{x:a.left+o.scrollLeft-l.x,y:a.top+o.scrollTop-l.y,width:a.width,height:a.height}}function JT(r){var e=new Map,t=new Set,i=[];r.forEach(function(n){e.set(n.name,n)});function s(n){t.add(n.name);var a=[].concat(n.requires||[],n.requiresIfExists||[]);a.forEach(function(o){if(!t.has(o)){var l=e.get(o);l&&s(l)}}),i.push(n)}return r.forEach(function(n){t.has(n.name)||s(n)}),i}function QT(r){var e=JT(r);return uT.reduce(function(t,i){return t.concat(e.filter(function(s){return s.phase===i}))},[])}function e2(r){var e;return function(){return e||(e=new Promise(function(t){Promise.resolve().then(function(){e=void 0,t(r())})})),e}}function t2(r){var e=r.reduce(function(t,i){var s=t[i.name];return t[i.name]=s?Object.assign({},s,i,{options:Object.assign({},s.options,i.options),data:Object.assign({},s.data,i.data)}):i,t},{});return Object.keys(e).map(function(t){return e[t]})}var Np={placement:"bottom",modifiers:[],strategy:"absolute"};function Up(){for(var r=arguments.length,e=new Array(r),t=0;t-1}function cb(r,e){return typeof r=="function"?r.apply(void 0,e):r}function Hp(r,e){if(e===0)return r;var t;return function(i){clearTimeout(t),t=setTimeout(function(){r(i)},e)}}function o2(r){return r.split(/\s+/).filter(Boolean)}function dn(r){return[].concat(r)}function Gp(r,e){r.indexOf(e)===-1&&r.push(e)}function l2(r){return r.filter(function(e,t){return r.indexOf(e)===t})}function h2(r){return r.split("-")[0]}function Rl(r){return[].slice.call(r)}function Vp(r){return Object.keys(r).reduce(function(e,t){return r[t]!==void 0&&(e[t]=r[t]),e},{})}function Sa(){return document.createElement("div")}function ih(r){return["Element","Fragment"].some(function(e){return vd(r,e)})}function c2(r){return vd(r,"NodeList")}function u2(r){return vd(r,"MouseEvent")}function d2(r){return!!(r&&r._tippy&&r._tippy.reference===r)}function f2(r){return ih(r)?[r]:c2(r)?Rl(r):Array.isArray(r)?r:Rl(document.querySelectorAll(r))}function oc(r,e){r.forEach(function(t){t&&(t.style.transitionDuration=e+"ms")})}function zp(r,e){r.forEach(function(t){t&&t.setAttribute("data-state",e)})}function p2(r){var e,t=dn(r),i=t[0];return i!=null&&(e=i.ownerDocument)!=null&&e.body?i.ownerDocument:document}function m2(r,e){var t=e.clientX,i=e.clientY;return r.every(function(s){var n=s.popperRect,a=s.popperState,o=s.props,l=o.interactiveBorder,c=h2(a.placement),u=a.modifiersData.offset;if(!u)return!0;var h=c==="bottom"?u.top.y:0,d=c==="top"?u.bottom.y:0,f=c==="right"?u.left.x:0,p=c==="left"?u.right.x:0,m=n.top-i+h>l,g=i-n.bottom-d>l,b=n.left-t+f>l,w=t-n.right-p>l;return m||g||b||w})}function lc(r,e,t){var i=e+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(s){r[i](s,t)})}function Wp(r,e){for(var t=e;t;){var i;if(r.contains(t))return!0;t=t.getRootNode==null||(i=t.getRootNode())==null?void 0:i.host}return!1}var Qi={isTouch:!1},$p=0;function g2(){Qi.isTouch||(Qi.isTouch=!0,window.performance&&document.addEventListener("mousemove",ub))}function ub(){var r=performance.now();r-$p<20&&(Qi.isTouch=!1,document.removeEventListener("mousemove",ub)),$p=r}function b2(){var r=document.activeElement;if(d2(r)){var e=r._tippy;r.blur&&!e.state.isVisible&&r.blur()}}function y2(){document.addEventListener("touchstart",g2,As),window.addEventListener("blur",b2)}var v2=typeof window<"u"&&typeof document<"u",w2=v2?!!window.msCrypto:!1,x2={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},_2={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},Di=Object.assign({appendTo:hb,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},x2,_2),E2=Object.keys(Di),A2=function(e){var t=Object.keys(e);t.forEach(function(i){Di[i]=e[i]})};function db(r){var e=r.plugins||[],t=e.reduce(function(i,s){var n=s.name,a=s.defaultValue;if(n){var o;i[n]=r[n]!==void 0?r[n]:(o=Di[n])!=null?o:a}return i},{});return Object.assign({},r,t)}function T2(r,e){var t=e?Object.keys(db(Object.assign({},Di,{plugins:e}))):E2,i=t.reduce(function(s,n){var a=(r.getAttribute("data-tippy-"+n)||"").trim();if(!a)return s;if(n==="content")s[n]=a;else try{s[n]=JSON.parse(a)}catch{s[n]=a}return s},{});return i}function jp(r,e){var t=Object.assign({},e,{content:cb(e.content,[r])},e.ignoreAttributes?{}:T2(r,e.plugins));return t.aria=Object.assign({},Di.aria,t.aria),t.aria={expanded:t.aria.expanded==="auto"?e.interactive:t.aria.expanded,content:t.aria.content==="auto"?e.interactive?null:"describedby":t.aria.content},t}var C2=function(){return"innerHTML"};function Ru(r,e){r[C2()]=e}function qp(r){var e=Sa();return r===!0?e.className=ob:(e.className=lb,ih(r)?e.appendChild(r):Ru(e,r)),e}function Yp(r,e){ih(e.content)?(Ru(r,""),r.appendChild(e.content)):typeof e.content!="function"&&(e.allowHTML?Ru(r,e.content):r.textContent=e.content)}function Fu(r){var e=r.firstElementChild,t=Rl(e.children);return{box:e,content:t.find(function(i){return i.classList.contains(ab)}),arrow:t.find(function(i){return i.classList.contains(ob)||i.classList.contains(lb)}),backdrop:t.find(function(i){return i.classList.contains(a2)})}}function fb(r){var e=Sa(),t=Sa();t.className=n2,t.setAttribute("data-state","hidden"),t.setAttribute("tabindex","-1");var i=Sa();i.className=ab,i.setAttribute("data-state","hidden"),Yp(i,r.props),e.appendChild(t),t.appendChild(i),s(r.props,r.props);function s(n,a){var o=Fu(e),l=o.box,c=o.content,u=o.arrow;a.theme?l.setAttribute("data-theme",a.theme):l.removeAttribute("data-theme"),typeof a.animation=="string"?l.setAttribute("data-animation",a.animation):l.removeAttribute("data-animation"),a.inertia?l.setAttribute("data-inertia",""):l.removeAttribute("data-inertia"),l.style.maxWidth=typeof a.maxWidth=="number"?a.maxWidth+"px":a.maxWidth,a.role?l.setAttribute("role",a.role):l.removeAttribute("role"),(n.content!==a.content||n.allowHTML!==a.allowHTML)&&Yp(c,r.props),a.arrow?u?n.arrow!==a.arrow&&(l.removeChild(u),l.appendChild(qp(a.arrow))):l.appendChild(qp(a.arrow)):u&&l.removeChild(u)}return{popper:e,onUpdate:s}}fb.$$tippy=!0;var S2=1,No=[],hc=[];function M2(r,e){var t=jp(r,Object.assign({},Di,db(Vp(e)))),i,s,n,a=!1,o=!1,l=!1,c=!1,u,h,d,f=[],p=Hp(A,t.interactiveDebounce),m,g=S2++,b=null,w=l2(t.plugins),v={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},y={id:g,reference:r,popper:Sa(),popperInstance:b,props:t,state:v,plugins:w,clearDelayTimeouts:_e,setProps:Xe,setContent:Ue,show:jt,hide:fs,hideWithInteractivity:ri,enable:he,disable:ne,unmount:ps,destroy:dt};if(!t.render)return y;var E=t.render(y),C=E.popper,k=E.onUpdate;C.setAttribute("data-tippy-root",""),C.id="tippy-"+y.id,y.popper=C,r._tippy=y,C._tippy=y;var B=w.map(function(X){return X.fn(y)}),M=r.hasAttribute("aria-expanded");return le(),z(),F(),L("onCreate",[y]),t.showOnCreate&&$(),C.addEventListener("mouseenter",function(){y.props.interactive&&y.state.isVisible&&y.clearDelayTimeouts()}),C.addEventListener("mouseleave",function(){y.props.interactive&&y.props.trigger.indexOf("mouseenter")>=0&&_().addEventListener("mousemove",p)}),y;function U(){var X=y.props.touch;return Array.isArray(X)?X:[X,0]}function V(){return U()[0]==="hold"}function T(){var X;return!!((X=y.props.render)!=null&&X.$$tippy)}function S(){return m||r}function _(){var X=S().parentNode;return X?p2(X):document}function R(){return Fu(C)}function q(X){return y.state.isMounted&&!y.state.isVisible||Qi.isTouch||u&&u.type==="focus"?0:ac(y.props.delay,X?0:1,Di.delay)}function F(X){X===void 0&&(X=!1),C.style.pointerEvents=y.props.interactive&&!X?"":"none",C.style.zIndex=""+y.props.zIndex}function L(X,me,Te){if(Te===void 0&&(Te=!0),B.forEach(function(Ve){Ve[X]&&Ve[X].apply(Ve,me)}),Te){var qe;(qe=y.props)[X].apply(qe,me)}}function W(){var X=y.props.aria;if(X.content){var me="aria-"+X.content,Te=C.id,qe=dn(y.props.triggerTarget||r);qe.forEach(function(Ve){var Bt=Ve.getAttribute(me);if(y.state.isVisible)Ve.setAttribute(me,Bt?Bt+" "+Te:Te);else{var qt=Bt&&Bt.replace(Te,"").trim();qt?Ve.setAttribute(me,qt):Ve.removeAttribute(me)}})}}function z(){if(!(M||!y.props.aria.expanded)){var X=dn(y.props.triggerTarget||r);X.forEach(function(me){y.props.interactive?me.setAttribute("aria-expanded",y.state.isVisible&&me===S()?"true":"false"):me.removeAttribute("aria-expanded")})}}function O(){_().removeEventListener("mousemove",p),No=No.filter(function(X){return X!==p})}function N(X){if(!(Qi.isTouch&&(l||X.type==="mousedown"))){var me=X.composedPath&&X.composedPath()[0]||X.target;if(!(y.props.interactive&&Wp(C,me))){if(dn(y.props.triggerTarget||r).some(function(Te){return Wp(Te,me)})){if(Qi.isTouch||y.state.isVisible&&y.props.trigger.indexOf("click")>=0)return}else L("onClickOutside",[y,X]);y.props.hideOnClick===!0&&(y.clearDelayTimeouts(),y.hide(),o=!0,setTimeout(function(){o=!1}),y.state.isMounted||be())}}}function ie(){l=!0}function Q(){l=!1}function Z(){var X=_();X.addEventListener("mousedown",N,!0),X.addEventListener("touchend",N,As),X.addEventListener("touchstart",Q,As),X.addEventListener("touchmove",ie,As)}function be(){var X=_();X.removeEventListener("mousedown",N,!0),X.removeEventListener("touchend",N,As),X.removeEventListener("touchstart",Q,As),X.removeEventListener("touchmove",ie,As)}function Se(X,me){pe(X,function(){!y.state.isVisible&&C.parentNode&&C.parentNode.contains(C)&&me()})}function ce(X,me){pe(X,me)}function pe(X,me){var Te=R().box;function qe(Ve){Ve.target===Te&&(lc(Te,"remove",qe),me())}if(X===0)return me();lc(Te,"remove",h),lc(Te,"add",qe),h=qe}function xe(X,me,Te){Te===void 0&&(Te=!1);var qe=dn(y.props.triggerTarget||r);qe.forEach(function(Ve){Ve.addEventListener(X,me,Te),f.push({node:Ve,eventType:X,handler:me,options:Te})})}function le(){V()&&(xe("touchstart",we,{passive:!0}),xe("touchend",Y,{passive:!0})),o2(y.props.trigger).forEach(function(X){if(X!=="manual")switch(xe(X,we),X){case"mouseenter":xe("mouseleave",Y);break;case"focus":xe(w2?"focusout":"blur",j);break;case"focusin":xe("focusout",j);break}})}function fe(){f.forEach(function(X){var me=X.node,Te=X.eventType,qe=X.handler,Ve=X.options;me.removeEventListener(Te,qe,Ve)}),f=[]}function we(X){var me,Te=!1;if(!(!y.state.isEnabled||I(X)||o)){var qe=((me=u)==null?void 0:me.type)==="focus";u=X,m=X.currentTarget,z(),!y.state.isVisible&&u2(X)&&No.forEach(function(Ve){return Ve(X)}),X.type==="click"&&(y.props.trigger.indexOf("mouseenter")<0||a)&&y.props.hideOnClick!==!1&&y.state.isVisible?Te=!0:$(X),X.type==="click"&&(a=!Te),Te&&!qe&&re(X)}}function A(X){var me=X.target,Te=S().contains(me)||C.contains(me);if(!(X.type==="mousemove"&&Te)){var qe=ee().concat(C).map(function(Ve){var Bt,qt=Ve._tippy,gr=(Bt=qt.popperInstance)==null?void 0:Bt.state;return gr?{popperRect:Ve.getBoundingClientRect(),popperState:gr,props:t}:null}).filter(Boolean);m2(qe,X)&&(O(),re(X))}}function Y(X){var me=I(X)||y.props.trigger.indexOf("click")>=0&&a;if(!me){if(y.props.interactive){y.hideWithInteractivity(X);return}re(X)}}function j(X){y.props.trigger.indexOf("focusin")<0&&X.target!==S()||y.props.interactive&&X.relatedTarget&&C.contains(X.relatedTarget)||re(X)}function I(X){return Qi.isTouch?V()!==X.type.indexOf("touch")>=0:!1}function D(){G();var X=y.props,me=X.popperOptions,Te=X.placement,qe=X.offset,Ve=X.getReferenceClientRect,Bt=X.moveTransition,qt=T()?Fu(C).arrow:null,gr=Ve?{getBoundingClientRect:Ve,contextElement:Ve.contextElement||S()}:r,Or={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(lo){var qs=lo.state;if(T()){var Cy=R(),vh=Cy.box;["placement","reference-hidden","escaped"].forEach(function(ho){ho==="placement"?vh.setAttribute("data-placement",qs.placement):qs.attributes.popper["data-popper-"+ho]?vh.setAttribute("data-"+ho,""):vh.removeAttribute("data-"+ho)}),qs.attributes.popper={}}}},si=[{name:"offset",options:{offset:qe}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!Bt}},Or];T()&&qt&&si.push({name:"arrow",options:{element:qt,padding:3}}),si.push.apply(si,me?.modifiers||[]),y.popperInstance=s2(gr,C,Object.assign({},me,{placement:Te,onFirstUpdate:d,modifiers:si}))}function G(){y.popperInstance&&(y.popperInstance.destroy(),y.popperInstance=null)}function J(){var X=y.props.appendTo,me,Te=S();y.props.interactive&&X===hb||X==="parent"?me=Te.parentNode:me=cb(X,[Te]),me.contains(C)||me.appendChild(C),y.state.isMounted=!0,D()}function ee(){return Rl(C.querySelectorAll("[data-tippy-root]"))}function $(X){y.clearDelayTimeouts(),X&&L("onTrigger",[y,X]),Z();var me=q(!0),Te=U(),qe=Te[0],Ve=Te[1];Qi.isTouch&&qe==="hold"&&Ve&&(me=Ve),me?i=setTimeout(function(){y.show()},me):y.show()}function re(X){if(y.clearDelayTimeouts(),L("onUntrigger",[y,X]),!y.state.isVisible){be();return}if(!(y.props.trigger.indexOf("mouseenter")>=0&&y.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(X.type)>=0&&a)){var me=q(!1);me?s=setTimeout(function(){y.state.isVisible&&y.hide()},me):n=requestAnimationFrame(function(){y.hide()})}}function he(){y.state.isEnabled=!0}function ne(){y.hide(),y.state.isEnabled=!1}function _e(){clearTimeout(i),clearTimeout(s),cancelAnimationFrame(n)}function Xe(X){if(!y.state.isDestroyed){L("onBeforeUpdate",[y,X]),fe();var me=y.props,Te=jp(r,Object.assign({},me,Vp(X),{ignoreAttributes:!0}));y.props=Te,le(),me.interactiveDebounce!==Te.interactiveDebounce&&(O(),p=Hp(A,Te.interactiveDebounce)),me.triggerTarget&&!Te.triggerTarget?dn(me.triggerTarget).forEach(function(qe){qe.removeAttribute("aria-expanded")}):Te.triggerTarget&&r.removeAttribute("aria-expanded"),z(),F(),k&&k(me,Te),y.popperInstance&&(D(),ee().forEach(function(qe){requestAnimationFrame(qe._tippy.popperInstance.forceUpdate)})),L("onAfterUpdate",[y,X])}}function Ue(X){y.setProps({content:X})}function jt(){var X=y.state.isVisible,me=y.state.isDestroyed,Te=!y.state.isEnabled,qe=Qi.isTouch&&!y.props.touch,Ve=ac(y.props.duration,0,Di.duration);if(!(X||me||Te||qe)&&!S().hasAttribute("disabled")&&(L("onShow",[y],!1),y.props.onShow(y)!==!1)){if(y.state.isVisible=!0,T()&&(C.style.visibility="visible"),F(),Z(),y.state.isMounted||(C.style.transition="none"),T()){var Bt=R(),qt=Bt.box,gr=Bt.content;oc([qt,gr],0)}d=function(){var si;if(!(!y.state.isVisible||c)){if(c=!0,C.offsetHeight,C.style.transition=y.props.moveTransition,T()&&y.props.animation){var yh=R(),lo=yh.box,qs=yh.content;oc([lo,qs],Ve),zp([lo,qs],"visible")}W(),z(),Gp(hc,y),(si=y.popperInstance)==null||si.forceUpdate(),L("onMount",[y]),y.props.animation&&T()&&ce(Ve,function(){y.state.isShown=!0,L("onShown",[y])})}},J()}}function fs(){var X=!y.state.isVisible,me=y.state.isDestroyed,Te=!y.state.isEnabled,qe=ac(y.props.duration,1,Di.duration);if(!(X||me||Te)&&(L("onHide",[y],!1),y.props.onHide(y)!==!1)){if(y.state.isVisible=!1,y.state.isShown=!1,c=!1,a=!1,T()&&(C.style.visibility="hidden"),O(),be(),F(!0),T()){var Ve=R(),Bt=Ve.box,qt=Ve.content;y.props.animation&&(oc([Bt,qt],qe),zp([Bt,qt],"hidden"))}W(),z(),y.props.animation?T()&&Se(qe,y.unmount):y.unmount()}}function ri(X){_().addEventListener("mousemove",p),Gp(No,p),p(X)}function ps(){y.state.isVisible&&y.hide(),y.state.isMounted&&(G(),ee().forEach(function(X){X._tippy.unmount()}),C.parentNode&&C.parentNode.removeChild(C),hc=hc.filter(function(X){return X!==y}),y.state.isMounted=!1,L("onHidden",[y]))}function dt(){y.state.isDestroyed||(y.clearDelayTimeouts(),y.unmount(),fe(),delete r._tippy,y.state.isDestroyed=!0,L("onDestroy",[y]))}}function Ze(r,e){e===void 0&&(e={});var t=Di.plugins.concat(e.plugins||[]);y2();var i=Object.assign({},e,{plugins:t}),s=f2(r),n=s.reduce(function(a,o){var l=o&&M2(o,i);return l&&a.push(l),a},[]);return ih(r)?n[0]:n}Ze.defaultProps=Di;Ze.setDefaultProps=A2;Ze.currentInput=Qi;Object.assign({},Jg,{effect:function(e){var t=e.state,i={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,i.popper),t.styles=i,t.elements.arrow&&Object.assign(t.elements.arrow.style,i.arrow)}});Ze.setDefaultProps({render:fb});const k2="modulepreload",D2=function(r){return"/smeditor/"+r},Xp={},Qe=function(e,t,i){if(!t||t.length===0)return e();const s=document.getElementsByTagName("link");return Promise.all(t.map(n=>{if(n=D2(n),n in Xp)return;Xp[n]=!0;const a=n.endsWith(".css"),o=a?'[rel="stylesheet"]':"";if(!!i)for(let u=s.length-1;u>=0;u--){const h=s[u];if(h.href===n&&(!a||h.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${n}"]${o}`))return;const c=document.createElement("link");if(c.rel=a?"stylesheet":k2,a||(c.as="script",c.crossOrigin=""),c.href=n,document.head.appendChild(c),a)return new Promise((u,h)=>{c.addEventListener("load",u),c.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${n}`)))})})).then(()=>e()).catch(n=>{const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=n,window.dispatchEvent(a),!a.defaultPrevented)throw n})},Ma={INVALID:["seeking position failed.","InvalidStateError"],GONE:["A requested file or directory could not be found at the time an operation was processed.","NotFoundError"],MISMATCH:["The path supplied exists, but was not an entry of requested type.","TypeMismatchError"],MOD_ERR:["The object can not be modified in this way.","InvalidModificationError"],SYNTAX:r=>[`Failed to execute 'write' on 'UnderlyingSinkBase': Invalid params passed. ${r}`,"SyntaxError"],ABORT:["The operation was aborted","AbortError"],SECURITY:["It was determined that certain files are unsafe for access within a Web application, or that too many calls are being made on file resources.","SecurityError"],DISALLOWED:["The request is not allowed by the user agent or the platform in the current context.","NotAllowedError"]},I2=r=>typeof r=="object"&&typeof r.type<"u";async function P2(r){var e,t,i;const{FolderHandle:s,FileHandle:n}=await Qe(()=>import("./memory-e6387387.js"),[]),{FileSystemDirectoryHandle:a}=await Qe(()=>Promise.resolve().then(()=>k3),void 0),o=(t=(e=r[0].webkitRelativePath)===null||e===void 0?void 0:e.split("/",1)[0])!==null&&t!==void 0?t:"",l=new s(o,!1);for(let c=0;c(p._entries[m]||(p._entries[m]=new s(m,!1)),p._entries[m]),l);f._entries[d]=new n(u.name,u,!1)}return new a(l)}async function B2(r){const{FileHandle:e}=await Qe(()=>import("./memory-e6387387.js"),[]),{FileSystemFileHandle:t}=await Qe(()=>Promise.resolve().then(()=>ty),void 0);return Array.from(r).map(s=>new t(new e(s.name,s,!1)))}const pb=Object.freeze(Object.defineProperty({__proto__:null,errors:Ma,isChunkObject:I2,makeDirHandleFromFileList:P2,makeFileHandlesFromFileList:B2},Symbol.toStringTag,{value:"Module"}));var Fl={};/*! howler.js v2.2.4 | (c) 2013-2020, James Simpson of GoldFire Studios | MIT License | howlerjs.com */(function(r){(function(){var e=function(){this.init()};e.prototype={init:function(){var h=this||t;return h._counter=1e3,h._html5AudioPool=[],h.html5PoolSize=10,h._codecs={},h._howls=[],h._muted=!1,h._volume=1,h._canPlayEvent="canplaythrough",h._navigator=typeof window<"u"&&window.navigator?window.navigator:null,h.masterGain=null,h.noAudio=!1,h.usingWebAudio=!0,h.autoSuspend=!0,h.ctx=null,h.autoUnlock=!0,h._setup(),h},volume:function(h){var d=this||t;if(h=parseFloat(h),d.ctx||u(),h!==void 0&&h>=0&&h<=1){if(d._volume=h,d._muted)return d;d.usingWebAudio&&d.masterGain.gain.setValueAtTime(h,t.ctx.currentTime);for(var f=0;f=0;d--)h._howls[d].unload();return h.usingWebAudio&&h.ctx&&h.ctx.close!==void 0&&(h.ctx.close(),h.ctx=null,u()),h},codecs:function(h){return(this||t)._codecs[h.replace(/^x-/,"")]},_setup:function(){var h=this||t;if(h.state=h.ctx&&h.ctx.state||"suspended",h._autoSuspend(),!h.usingWebAudio)if(typeof Audio<"u")try{var d=new Audio;d.oncanplaythrough===void 0&&(h._canPlayEvent="canplay")}catch{h.noAudio=!0}else h.noAudio=!0;try{var d=new Audio;d.muted&&(h.noAudio=!0)}catch{}return h.noAudio||h._setupCodecs(),h},_setupCodecs:function(){var h=this||t,d=null;try{d=typeof Audio<"u"?new Audio:null}catch{return h}if(!d||typeof d.canPlayType!="function")return h;var f=d.canPlayType("audio/mpeg;").replace(/^no$/,""),p=h._navigator?h._navigator.userAgent:"",m=p.match(/OPR\/(\d+)/g),g=m&&parseInt(m[0].split("/")[1],10)<33,b=p.indexOf("Safari")!==-1&&p.indexOf("Chrome")===-1,w=p.match(/Version\/(.*?) /),v=b&&w&&parseInt(w[1],10)<15;return h._codecs={mp3:!(g||!f&&!d.canPlayType("audio/mp3;").replace(/^no$/,"")),mpeg:!!f,opus:!!d.canPlayType('audio/ogg; codecs="opus"').replace(/^no$/,""),ogg:!!d.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),oga:!!d.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),wav:!!(d.canPlayType('audio/wav; codecs="1"')||d.canPlayType("audio/wav")).replace(/^no$/,""),aac:!!d.canPlayType("audio/aac;").replace(/^no$/,""),caf:!!d.canPlayType("audio/x-caf;").replace(/^no$/,""),m4a:!!(d.canPlayType("audio/x-m4a;")||d.canPlayType("audio/m4a;")||d.canPlayType("audio/aac;")).replace(/^no$/,""),m4b:!!(d.canPlayType("audio/x-m4b;")||d.canPlayType("audio/m4b;")||d.canPlayType("audio/aac;")).replace(/^no$/,""),mp4:!!(d.canPlayType("audio/x-mp4;")||d.canPlayType("audio/mp4;")||d.canPlayType("audio/aac;")).replace(/^no$/,""),weba:!(v||!d.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),webm:!(v||!d.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),dolby:!!d.canPlayType('audio/mp4; codecs="ec-3"').replace(/^no$/,""),flac:!!(d.canPlayType("audio/x-flac;")||d.canPlayType("audio/flac;")).replace(/^no$/,"")},h},_unlockAudio:function(){var h=this||t;if(!h._audioUnlocked&&h.ctx){h._audioUnlocked=!1,h.autoUnlock=!1,h._mobileUnloaded||h.ctx.sampleRate===44100||(h._mobileUnloaded=!0,h.unload()),h._scratchBuffer=h.ctx.createBuffer(1,1,22050);var d=function(f){for(;h._html5AudioPool.length0?b._seek:f._sprite[h][0]/1e3),y=Math.max(0,(f._sprite[h][0]+f._sprite[h][1])/1e3-v),E=1e3*y/Math.abs(b._rate),C=f._sprite[h][0]/1e3,k=(f._sprite[h][0]+f._sprite[h][1])/1e3;b._sprite=h,b._ended=!1;var B=function(){b._paused=!1,b._seek=v,b._start=C,b._stop=k,b._loop=!(!b._loop&&!f._sprite[h][2])};if(v>=k)return void f._ended(b);var M=b._node;if(f._webAudio){var U=function(){f._playLock=!1,B(),f._refreshBuffer(b);var _=b._muted||f._muted?0:b._volume;M.gain.setValueAtTime(_,t.ctx.currentTime),b._playStart=t.ctx.currentTime,M.bufferSource.start===void 0?b._loop?M.bufferSource.noteGrainOn(0,v,86400):M.bufferSource.noteGrainOn(0,v,y):b._loop?M.bufferSource.start(0,v,86400):M.bufferSource.start(0,v,y),E!==1/0&&(f._endTimers[b._id]=setTimeout(f._ended.bind(f,b),E)),d||setTimeout(function(){f._emit("play",b._id),f._loadQueue()},0)};t.state==="running"&&t.ctx.state!=="interrupted"?U():(f._playLock=!0,f.once("resume",U),f._clearTimer(b._id))}else{var V=function(){M.currentTime=v,M.muted=b._muted||f._muted||t._muted||M.muted,M.volume=b._volume*t.volume(),M.playbackRate=b._rate;try{var _=M.play();if(_&&typeof Promise<"u"&&(_ instanceof Promise||typeof _.then=="function")?(f._playLock=!0,B(),_.then(function(){f._playLock=!1,M._unlocked=!0,d?f._loadQueue():f._emit("play",b._id)}).catch(function(){f._playLock=!1,f._emit("playerror",b._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction."),b._ended=!0,b._paused=!0})):d||(f._playLock=!1,B(),f._emit("play",b._id)),M.playbackRate=b._rate,M.paused)return void f._emit("playerror",b._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction.");h!=="__default"||b._loop?f._endTimers[b._id]=setTimeout(f._ended.bind(f,b),E):(f._endTimers[b._id]=function(){f._ended(b),M.removeEventListener("ended",f._endTimers[b._id],!1)},M.addEventListener("ended",f._endTimers[b._id],!1))}catch(R){f._emit("playerror",b._id,R)}};M.src==="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA"&&(M.src=f._src,M.load());var T=window&&window.ejecta||!M.readyState&&t._navigator.isCocoonJS;if(M.readyState>=3||T)V();else{f._playLock=!0,f._state="loading";var S=function(){f._state="loaded",V(),M.removeEventListener(t._canPlayEvent,S,!1)};M.addEventListener(t._canPlayEvent,S,!1),f._clearTimer(b._id)}}return b._id},pause:function(h){var d=this;if(d._state!=="loaded"||d._playLock)return d._queue.push({event:"pause",action:function(){d.pause(h)}}),d;for(var f=d._getSoundIds(h),p=0;p=0?d=parseInt(p[0],10):h=parseFloat(p[0]):p.length>=2&&(h=parseFloat(p[0]),d=parseInt(p[1],10));var m;if(!(h!==void 0&&h>=0&&h<=1))return m=d?f._soundById(d):f._sounds[0],m?m._volume:0;if(f._state!=="loaded"||f._playLock)return f._queue.push({event:"volume",action:function(){f.volume.apply(f,p)}}),f;d===void 0&&(f._volume=h),d=f._getSoundIds(d);for(var g=0;g0?p/y:p),C=Date.now();h._fadeTo=f,h._interval=setInterval(function(){var k=(Date.now()-C)/p;C=Date.now(),w+=v*k,w=Math.round(100*w)/100,w=v<0?Math.max(f,w):Math.min(f,w),b._webAudio?h._volume=w:b.volume(w,h._id,!0),g&&(b._volume=w),(fd&&w>=f)&&(clearInterval(h._interval),h._interval=null,h._fadeTo=null,b.volume(f,h._id),b._emit("fade",h._id))},E)},_stopFade:function(h){var d=this,f=d._soundById(h);return f&&f._interval&&(d._webAudio&&f._node.gain.cancelScheduledValues(t.ctx.currentTime),clearInterval(f._interval),f._interval=null,d.volume(f._fadeTo,h),f._fadeTo=null,d._emit("fade",h)),d},loop:function(){var h,d,f,p=this,m=arguments;if(m.length===0)return p._loop;if(m.length===1){if(typeof m[0]!="boolean")return!!(f=p._soundById(parseInt(m[0],10)))&&f._loop;h=m[0],p._loop=h}else m.length===2&&(h=m[0],d=parseInt(m[1],10));for(var g=p._getSoundIds(d),b=0;b=0?d=parseInt(p[0],10):h=parseFloat(p[0])}else p.length===2&&(h=parseFloat(p[0]),d=parseInt(p[1],10));var b;if(typeof h!="number")return b=f._soundById(d),b?b._rate:f._rate;if(f._state!=="loaded"||f._playLock)return f._queue.push({event:"rate",action:function(){f.rate.apply(f,p)}}),f;d===void 0&&(f._rate=h),d=f._getSoundIds(d);for(var w=0;w=0?d=parseInt(p[0],10):f._sounds.length&&(d=f._sounds[0]._id,h=parseFloat(p[0]))}else p.length===2&&(h=parseFloat(p[0]),d=parseInt(p[1],10));if(d===void 0)return 0;if(typeof h=="number"&&(f._state!=="loaded"||f._playLock))return f._queue.push({event:"seek",action:function(){f.seek.apply(f,p)}}),f;var b=f._soundById(d);if(b){if(!(typeof h=="number"&&h>=0)){if(f._webAudio){var w=f.playing(d)?t.ctx.currentTime-b._playStart:0,v=b._rateSeek?b._rateSeek-b._seek:0;return b._seek+(v+w*Math.abs(b._rate))}return b._node.currentTime}var y=f.playing(d);y&&f.pause(d,!0),b._seek=h,b._ended=!1,f._clearTimer(d),f._webAudio||!b._node||isNaN(b._node.duration)||(b._node.currentTime=h);var E=function(){y&&f.play(d,!0),f._emit("seek",d)};if(y&&!f._webAudio){var C=function(){f._playLock?setTimeout(C,0):E()};setTimeout(C,0)}else E()}return f},playing:function(h){var d=this;if(typeof h=="number"){var f=d._soundById(h);return!!f&&!f._paused}for(var p=0;p=0&&t._howls.splice(p,1);var m=!0;for(f=0;f=0){m=!1;break}return n&&m&&delete n[h._src],t.noAudio=!1,h._state="unloaded",h._sounds=[],h=null,null},on:function(h,d,f,p){var m=this,g=m["_on"+h];return typeof d=="function"&&g.push(p?{id:f,fn:d,once:p}:{id:f,fn:d}),m},off:function(h,d,f){var p=this,m=p["_on"+h],g=0;if(typeof d=="number"&&(f=d,d=null),d||f)for(g=0;g=0;g--)m[g].id&&m[g].id!==d&&h!=="load"||(setTimeout(function(b){b.call(this,d,f)}.bind(p,m[g].fn),0),m[g].once&&p.off(h,m[g].fn,m[g].id));return p._loadQueue(h),p},_loadQueue:function(h){var d=this;if(d._queue.length>0){var f=d._queue[0];f.event===h&&(d._queue.shift(),d._loadQueue()),h||f.action()}return d},_ended:function(h){var d=this,f=h._sprite;if(!d._webAudio&&h._node&&!h._node.paused&&!h._node.ended&&h._node.currentTime=0;p--){if(f<=d)return;h._sounds[p]._ended&&(h._webAudio&&h._sounds[p]._node&&h._sounds[p]._node.disconnect(0),h._sounds.splice(p,1),f--)}}},_getSoundIds:function(h){var d=this;if(h===void 0){for(var f=[],p=0;p=0;if(!h.bufferSource)return d;if(t._scratchBuffer&&h.bufferSource&&(h.bufferSource.onended=null,h.bufferSource.disconnect(0),f))try{h.bufferSource.buffer=t._scratchBuffer}catch{}return h.bufferSource=null,d},_clearSound:function(h){/MSIE |Trident\//.test(t._navigator&&t._navigator.userAgent)||(h.src="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA")}};var s=function(h){this._parent=h,this.init()};s.prototype={init:function(){var h=this,d=h._parent;return h._muted=d._muted,h._loop=d._loop,h._volume=d._volume,h._rate=d._rate,h._seek=0,h._paused=!0,h._ended=!0,h._sprite="__default",h._id=++t._counter,d._sounds.push(h),h.create(),h},create:function(){var h=this,d=h._parent,f=t._muted||h._muted||h._parent._muted?0:h._volume;return d._webAudio?(h._node=t.ctx.createGain===void 0?t.ctx.createGainNode():t.ctx.createGain(),h._node.gain.setValueAtTime(f,t.ctx.currentTime),h._node.paused=!0,h._node.connect(t.masterGain)):t.noAudio||(h._node=t._obtainHtml5Audio(),h._errorFn=h._errorListener.bind(h),h._node.addEventListener("error",h._errorFn,!1),h._loadFn=h._loadListener.bind(h),h._node.addEventListener(t._canPlayEvent,h._loadFn,!1),h._endFn=h._endListener.bind(h),h._node.addEventListener("ended",h._endFn,!1),h._node.src=d._src,h._node.preload=d._preload===!0?"auto":d._preload,h._node.volume=f*t.volume(),h._node.load()),h},reset:function(){var h=this,d=h._parent;return h._muted=d._muted,h._loop=d._loop,h._volume=d._volume,h._rate=d._rate,h._seek=0,h._rateSeek=0,h._paused=!0,h._ended=!0,h._sprite="__default",h._id=++t._counter,h},_errorListener:function(){var h=this;h._parent._emit("loaderror",h._id,h._node.error?h._node.error.code:0),h._node.removeEventListener("error",h._errorFn,!1)},_loadListener:function(){var h=this,d=h._parent;d._duration=Math.ceil(10*h._node.duration)/10,Object.keys(d._sprite).length===0&&(d._sprite={__default:[0,1e3*d._duration]}),d._state!=="loaded"&&(d._state="loaded",d._emit("load"),d._loadQueue()),h._node.removeEventListener(t._canPlayEvent,h._loadFn,!1)},_endListener:function(){var h=this,d=h._parent;d._duration===1/0&&(d._duration=Math.ceil(10*h._node.duration)/10,d._sprite.__default[1]===1/0&&(d._sprite.__default[1]=1e3*d._duration),d._ended(h)),h._node.removeEventListener("ended",h._endFn,!1)}};var n={},a=function(h){var d=h._src;if(n[d])return h._duration=n[d].duration,void c(h);if(/^data:[^;]+;base64,/.test(d)){for(var f=atob(d.split(",")[1]),p=new Uint8Array(f.length),m=0;m0?(n[d._src]=m,c(d,m)):f()};typeof Promise<"u"&&t.ctx.decodeAudioData.length===1?t.ctx.decodeAudioData(h).then(p).catch(f):t.ctx.decodeAudioData(h,p,f)},c=function(h,d){d&&!h._duration&&(h._duration=d.duration),Object.keys(h._sprite).length===0&&(h._sprite={__default:[0,1e3*h._duration]}),h._state!=="loaded"&&(h._state="loaded",h._emit("load"),h._loadQueue())},u=function(){if(t.usingWebAudio){try{typeof AudioContext<"u"?t.ctx=new AudioContext:typeof webkitAudioContext<"u"?t.ctx=new webkitAudioContext:t.usingWebAudio=!1}catch{t.usingWebAudio=!1}t.ctx||(t.usingWebAudio=!1);var h=/iP(hone|od|ad)/.test(t._navigator&&t._navigator.platform),d=t._navigator&&t._navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/),f=d?parseInt(d[1],10):null;if(h&&f&&f<9){var p=/safari/.test(t._navigator&&t._navigator.userAgent.toLowerCase());t._navigator&&!p&&(t.usingWebAudio=!1)}t.usingWebAudio&&(t.masterGain=t.ctx.createGain===void 0?t.ctx.createGainNode():t.ctx.createGain(),t.masterGain.gain.setValueAtTime(t._muted?0:t._volume,t.ctx.currentTime),t.masterGain.connect(t.ctx.destination)),t._setup()}};r.Howler=t,r.Howl=i,typeof Yt<"u"?(Yt.HowlerGlobal=e,Yt.Howler=t,Yt.Howl=i,Yt.Sound=s):typeof window<"u"&&(window.HowlerGlobal=e,window.Howler=t,window.Howl=i,window.Sound=s)})()})(Fl);const R2="data:audio/wav;base64,UklGRkYEAABXQVZFZm10IBAAAAABAAEARKwAAIhYAQACABAATElTVBoAAABJTkZPSVNGVA0AAABMYXZmNjAuMy4xMDAAAGRhdGEABAAAAIDfjHvG/eK+8VP5Bvyg/v3+Dv8O/1v+8P59B0sXqgoxBa4BQgEEAIMATAAyAE4AnwA8APf/oH+tf3J/6F74LWgXiQpfBbABbAGy/+b/4f+X/w+AAIAKjAzF7uIk8Ln4efsB/jf+Of66/kv+Ev84/6sBbf+eAMn/IADgACQA3gBXABMBrP9/ACIAvgraEnAIfwVbAdYCxf5zAVr/iQBb/6cAMP9KAKtP4H9VaPUyfhjgC0EFigNcAL4AqP/qABoA5wAc/T7yE/iK/CX94v+A/a3+4P7n/eX+cv0b/w7/v/4AgGK2Qdso7ub2vfsQ/ef96/6b/u//+/1UANb9sIAAgJq/3N4+8MX37PtP/fD+Hf5S/zf+c/80/f3DWsiL5Cby0fm5/OT9IQAG/y0A1P6S/1z/jP//f/9/un+oY5kwqheUC5oFXAGAAFv/WwDN/xQBRf9mgACAWoT+weri4/BI+aH7Xv+l/Zr/Nf3k/xT9/3/1ff9/OkPbIUEPXQiVBN4AiQDT//YA0/8JAA2AAICvgIWfetA55xX0Mfmz/Az+w/5H/4r+Zf8r/015Q1d6KlgVZwkkBqUBigHH/q4A6/7WACL/qgBtHDFPaCbnE/sIigQNAloBpf8qALn/aP9vAMj+mABm5FLnpvMc+iz99f51/wH/zP4c/wcAjf+X/zD/+CAbf51Znio6FNwI5AS5AdUAnf8g/93/yv6lAJH/R4AAgDetL9ZL7LH1VPum/Lr+JP+Y/5z+0v4b/pP+AdF63vruUPj4+7r9nP6Y/Qz/Bv5Q/3P+jf+i/ln8K+1/9y769f1I/RQAxP4RABT+5/8x/mH/ff6k//hB7n/0U6opvRPDCUkEOgF5ASD/PwBI/4cAsP9iAEgHfg1JBb4DCwGVAJz/iQCX/30Awf8LAND/HADc/xLy0+8l+K/7/v06/+b+Bf/W/sH+x/7U/tv+k/4A/yoVChNQCeEDSgLoAEEABQA9ABUABADR/xUAx/8WAHvQ7dWg6v/1wfpZ/eb9OP/6/h7/7f76/sz+zf7X/tkgHR0mDiMHGwP+AC4A9v8xAAoAQgDi/ywA9v9aABMAIAGa/+b/+v8TALT/5v8gAPT/8f8OAC4ANAAFAA3pyuQE8+D5Rf3y/Rr/5f7H/rP+g/7t/q7+Iv/Q/oAALQB9AAcAJQAJAPv/2v/O/yAAWgAbAFkBSAP+ATMCCgIGAY0AKwAzADEAMABIABMAHAC4/17/x/4J//T+Uv9b/6b/wP/Y//D/3v8QAPz/7v8GAEAAFQA4ACoAEwAIAAIABwD9//L/CAADAAkADgAWABMAGwAPAA0ACwAQAAgABQAJAAoAAwD///b/9f/y/+n/9//2//f//f/9/w==",mb="/smeditor/assets/metronome_high-bd539a8c.wav",gb="/smeditor/assets/metronome_low-cbca5846.wav",F2="/smeditor/assets/mine-b973f34e.wav",rh=[".aac",".mid",".midi",".mp3",".oga",".ogg",".opus",".wav",".webm",".weba",".flac",".aiff"],Ts=[".bmp",".gif",".jpeg",".jpg",".png",".tif",".tiff",".webp"],wd=["Hold","Roll"];function bb(r){return!wd.includes(r.type)}function Be(r){return wd.includes(r.type)}var di="INUMBER",Kn="IOP1",Zn="IOP2",Jn="IOP3",Br="IVAR",Ws="IVARNAME",On="IFUNCALL",sh="IFUNDEF",Jt="IEXPR",xd="IEXPREVAL",js="IMEMBER",nh="IENDSTATEMENT",Nn="IARRAY";function je(r,e){this.type=r,this.value=e??0}je.prototype.toString=function(){switch(this.type){case di:case Kn:case Zn:case Jn:case Br:case Ws:case nh:return this.value;case On:return"CALL "+this.value;case sh:return"DEF "+this.value;case Nn:return"ARRAY "+this.value;case js:return"."+this.value;default:return"Invalid Instruction"}};function ah(r){return new je(Kn,r)}function Fr(r){return new je(Zn,r)}function yb(r){return new je(Jn,r)}function Lu(r,e,t,i,s){for(var n=[],a=[],o,l,c,u,h=0;h1)l=n.pop(),o=n.pop(),u=t[d.value],d=new je(di,u(o.value,l.value)),n.push(d);else if(f===Jn&&n.length>2)c=n.pop(),l=n.pop(),o=n.pop(),d.value==="?"?n.push(o.value?l.value:c.value):(u=i[d.value],d=new je(di,u(o.value,l.value,c.value)),n.push(d));else if(f===Kn&&n.length>0)o=n.pop(),u=e[d.value],d=new je(di,u(o.value)),n.push(d);else if(f===Jt){for(;n.length>0;)a.push(n.shift());a.push(new je(Jt,Lu(d.value,e,t,i,s)))}else if(f===js&&n.length>0)o=n.pop(),n.push(new je(di,o.value[d.value]));else{for(;n.length>0;)a.push(n.shift());a.push(d)}}for(;n.length>0;)a.push(n.shift());return a}function vb(r,e,t){for(var i=[],s=0;s0;)l.unshift(vr(i.pop(),t));if(o=i.pop(),o.apply&&o.call)i.push(o.apply(void 0,l));else throw new Error(o+" is not a function")}else if(f===sh)i.push(function(){for(var m=i.pop(),g=[],b=d.value;b-- >0;)g.unshift(i.pop());var w=i.pop(),v=function(){for(var y=Object.assign({},t),E=0,C=g.length;E0;)l.unshift(i.pop());i.push(l)}else throw new Error("invalid Expression")}if(i.length>1)throw new Error("invalid Expression (parity)");return i[0]===0?0:vr(i[0],t)}function L2(r,e,t){return _d(r)?r:{type:xd,value:function(i){return Ds(r.value,e,i)}}}function _d(r){return r&&r.type===xd}function vr(r,e){return _d(r)?r.value(e):r}function Ed(r,e){for(var t=[],i,s,n,a,o,l,c=0;c0;)o.unshift(t.pop());a=t.pop(),t.push(a+"("+o.join(", ")+")")}else if(h===sh){for(s=t.pop(),l=u.value,o=[];l-- >0;)o.unshift(t.pop());i=t.pop(),e?t.push("("+i+" = function("+o.join(", ")+") { return "+s+" })"):t.push("("+i+"("+o.join(", ")+") = "+s+")")}else if(h===js)i=t.pop(),t.push(i+"."+u.value);else if(h===Nn){for(l=u.value,o=[];l-- >0;)o.unshift(t.pop());t.push("["+o.join(", ")+"]")}else if(h===Jt)t.push("("+Ed(u.value,e)+")");else if(h!==nh)throw new Error("invalid Expression")}return t.length>1&&(e?t=[t.join(",")]:t=[t.join(";")]),String(t[0])}function Kp(r){return typeof r=="string"?JSON.stringify(r).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029"):r}function yn(r,e){for(var t=0;t=this.expression.length)return this.newToken(Oa,"EOF");if(this.isWhitespace()||this.isComment())return this.next();if(this.isRadixInteger()||this.isNumber()||this.isOperator()||this.isString()||this.isParen()||this.isBracket()||this.isComma()||this.isSemicolon()||this.isNamedOp()||this.isConst()||this.isName())return this.current;this.parseError('Unknown character "'+this.expression.charAt(this.pos)+'"')};wt.prototype.isString=function(){var r=!1,e=this.pos,t=this.expression.charAt(e);if(t==="'"||t==='"')for(var i=this.expression.indexOf(t,e+1);i>=0&&this.pos"9")))break}if(e>r){var i=this.expression.substring(r,e);if(i in this.consts)return this.current=this.newToken(oh,this.consts[i]),this.pos+=i.length,!0}return!1};wt.prototype.isNamedOp=function(){for(var r=this.pos,e=r;e"9")))break}if(e>r){var i=this.expression.substring(r,e);if(this.isOperatorEnabled(i)&&(i in this.binaryOps||i in this.unaryOps||i in this.ternaryOps))return this.current=this.newToken(it,i),this.pos+=i.length,!0}return!1};wt.prototype.isName=function(){for(var r=this.pos,e=r,t=!1;e"9"))break}else t=!0}if(t){var s=this.expression.substring(r,e);return this.current=this.newToken(Td,s),this.pos+=s.length,!0}return!1};wt.prototype.isWhitespace=function(){for(var r=!1,e=this.expression.charAt(this.pos);(e===" "||e===" "||e===` + }`,this._stylesheet)}get stylesheet(){return this._stylesheet}set stylesheet(e){this._stylesheet!==e&&(this._stylesheet=e,this.styleID++)}normalizeColor(e){return Array.isArray(e)&&(e=Vw(e)),typeof e=="number"?Gw(e):e}dropShadowToCSS(){let e=this.normalizeColor(this.dropShadowColor);const t=this.dropShadowAlpha,i=Math.round(Math.cos(this.dropShadowAngle)*this.dropShadowDistance),s=Math.round(Math.sin(this.dropShadowAngle)*this.dropShadowDistance);e.startsWith("#")&&t<1&&(e+=(t*255|0).toString(16).padStart(2,"0"));const n=`${i}px ${s}px`;return this.dropShadowBlur>0?`text-shadow: ${n} ${this.dropShadowBlur}px ${e}`:`text-shadow: ${n} ${e}`}reset(){Object.assign(this,cn.defaultOptions)}onBeforeDraw(){const{fontsDirty:e}=this;return this.fontsDirty=!1,this.isSafari&&this._fonts.length>0&&e?new Promise(t=>setTimeout(t,100)):Promise.resolve()}get isSafari(){const{userAgent:e}=de.ADAPTER.getNavigator();return/^((?!chrome|android).)*safari/i.test(e)}set fillGradientStops(e){console.warn("[HTMLTextStyle] fillGradientStops is not supported by HTMLText")}get fillGradientStops(){return super.fillGradientStops}set fillGradientType(e){console.warn("[HTMLTextStyle] fillGradientType is not supported by HTMLText")}get fillGradientType(){return super.fillGradientType}set miterLimit(e){console.warn("[HTMLTextStyle] miterLimit is not supported by HTMLText")}get miterLimit(){return super.miterLimit}set trim(e){console.warn("[HTMLTextStyle] trim is not supported by HTMLText")}get trim(){return super.trim}set textBaseline(e){console.warn("[HTMLTextStyle] textBaseline is not supported by HTMLText")}get textBaseline(){return super.textBaseline}set leading(e){console.warn("[HTMLTextStyle] leading is not supported by HTMLText")}get leading(){return super.leading}set lineJoin(e){console.warn("[HTMLTextStyle] lineJoin is not supported by HTMLText")}get lineJoin(){return super.lineJoin}};Iu.availableFonts={},Iu.defaultOptions={align:"left",breakWords:!1,dropShadow:!1,dropShadowAlpha:1,dropShadowAngle:Math.PI/6,dropShadowBlur:0,dropShadowColor:"black",dropShadowDistance:5,fill:"black",fontFamily:"Arial",fontSize:26,fontStyle:"normal",fontVariant:"normal",fontWeight:"normal",letterSpacing:0,lineHeight:0,padding:0,stroke:"black",strokeThickness:0,whiteSpace:"normal",wordWrap:!1,wordWrapWidth:100};let nc=Iu;const Lo=class un extends Ne{constructor(e="",t={}){super(te.EMPTY),this._text=null,this._style=null,this._autoResolution=!0,this.localStyleID=-1,this.dirty=!1,this._updateID=0,this.ownsStyle=!1;const i=new Image,s=te.from(i,{scaleMode:de.SCALE_MODE,resourceOptions:{autoLoad:!1}});s.orig=new ke,s.trim=new ke,this.texture=s;const n="http://www.w3.org/2000/svg",a="http://www.w3.org/1999/xhtml",o=document.createElementNS(n,"svg"),l=document.createElementNS(n,"foreignObject"),c=document.createElementNS(a,"div"),u=document.createElementNS(a,"style");l.setAttribute("width","10000"),l.setAttribute("height","10000"),l.style.overflow="hidden",o.appendChild(l),this.maxWidth=un.defaultMaxWidth,this.maxHeight=un.defaultMaxHeight,this._domElement=c,this._styleElement=u,this._svgRoot=o,this._foreignObject=l,this._foreignObject.appendChild(u),this._foreignObject.appendChild(c),this._image=i,this._loadImage=new Image,this._autoResolution=un.defaultAutoResolution,this._resolution=un.defaultResolution??de.RESOLUTION,this.text=e,this.style=t}measureText(e){const{text:t,style:i,resolution:s}=Object.assign({text:this._text,style:this._style,resolution:this._resolution},e);Object.assign(this._domElement,{innerHTML:t,style:i.toCSS(s)}),this._styleElement.textContent=i.toGlobalCSS(),document.body.appendChild(this._svgRoot);const n=this._domElement.getBoundingClientRect();this._svgRoot.remove();const{width:a,height:o}=n;(a>this.maxWidth||o>this.maxHeight)&&console.warn("[HTMLText] Large expanse of text, increase HTMLText.maxWidth or HTMLText.maxHeight property.");const l=Math.min(this.maxWidth,Math.ceil(a)),c=Math.min(this.maxHeight,Math.ceil(o));return this._svgRoot.setAttribute("width",l.toString()),this._svgRoot.setAttribute("height",c.toString()),t!==this._text&&(this._domElement.innerHTML=this._text),i!==this._style&&(Object.assign(this._domElement,{style:this._style?.toCSS(s)}),this._styleElement.textContent=this._style?.toGlobalCSS()),{width:l+i.padding*2,height:c+i.padding*2}}async updateText(e=!0){const{style:t,_image:i,_loadImage:s}=this;if(this.localStyleID!==t.styleID&&(this.dirty=!0,this.localStyleID=t.styleID),!this.dirty&&e)return;const{width:n,height:a}=this.measureText();i.width=s.width=Math.ceil(Math.max(1,n)),i.height=s.height=Math.ceil(Math.max(1,a)),this._updateID++;const o=this._updateID;await new Promise(l=>{s.onload=async()=>{if(o/gi,"
").replace(/
/gi,"
").replace(/ /gi," ")}};Lo.defaultDestroyOptions={texture:!0,children:!1,baseTexture:!0},Lo.defaultMaxWidth=2024,Lo.defaultMaxHeight=2024,Lo.defaultAutoResolution=!0;var Kt="top",vi="bottom",wi="right",Zt="left",dd="auto",eo=[Kt,vi,wi,Zt],Bn="start",Fa="end",eT="clippingParents",Kg="viewport",na="popper",tT="reference",Ip=eo.reduce(function(r,e){return r.concat([e+"-"+Bn,e+"-"+Fa])},[]),Zg=[].concat(eo,[dd]).reduce(function(r,e){return r.concat([e,e+"-"+Bn,e+"-"+Fa])},[]),iT="beforeRead",rT="read",sT="afterRead",nT="beforeMain",aT="main",oT="afterMain",lT="beforeWrite",hT="write",cT="afterWrite",uT=[iT,rT,sT,nT,aT,oT,lT,hT,cT];function dr(r){return r?(r.nodeName||"").toLowerCase():null}function ti(r){if(r==null)return window;if(r.toString()!=="[object Window]"){var e=r.ownerDocument;return e&&e.defaultView||window}return r}function zs(r){var e=ti(r).Element;return r instanceof e||r instanceof Element}function yi(r){var e=ti(r).HTMLElement;return r instanceof e||r instanceof HTMLElement}function fd(r){if(typeof ShadowRoot>"u")return!1;var e=ti(r).ShadowRoot;return r instanceof e||r instanceof ShadowRoot}function dT(r){var e=r.state;Object.keys(e.elements).forEach(function(t){var i=e.styles[t]||{},s=e.attributes[t]||{},n=e.elements[t];!yi(n)||!dr(n)||(Object.assign(n.style,i),Object.keys(s).forEach(function(a){var o=s[a];o===!1?n.removeAttribute(a):n.setAttribute(a,o===!0?"":o)}))})}function fT(r){var e=r.state,t={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,t.popper),e.styles=t,e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow),function(){Object.keys(e.elements).forEach(function(i){var s=e.elements[i],n=e.attributes[i]||{},a=Object.keys(e.styles.hasOwnProperty(i)?e.styles[i]:t[i]),o=a.reduce(function(l,c){return l[c]="",l},{});!yi(s)||!dr(s)||(Object.assign(s.style,o),Object.keys(n).forEach(function(l){s.removeAttribute(l)}))})}}const Jg={name:"applyStyles",enabled:!0,phase:"write",fn:dT,effect:fT,requires:["computeStyles"]};function or(r){return r.split("-")[0]}var Ns=Math.max,Bl=Math.min,Rn=Math.round;function Pu(){var r=navigator.userAgentData;return r!=null&&r.brands&&Array.isArray(r.brands)?r.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Qg(){return!/^((?!chrome|android).)*safari/i.test(Pu())}function Fn(r,e,t){e===void 0&&(e=!1),t===void 0&&(t=!1);var i=r.getBoundingClientRect(),s=1,n=1;e&&yi(r)&&(s=r.offsetWidth>0&&Rn(i.width)/r.offsetWidth||1,n=r.offsetHeight>0&&Rn(i.height)/r.offsetHeight||1);var a=zs(r)?ti(r):window,o=a.visualViewport,l=!Qg()&&t,c=(i.left+(l&&o?o.offsetLeft:0))/s,u=(i.top+(l&&o?o.offsetTop:0))/n,h=i.width/s,d=i.height/n;return{width:h,height:d,top:u,right:c+h,bottom:u+d,left:c,x:c,y:u}}function pd(r){var e=Fn(r),t=r.offsetWidth,i=r.offsetHeight;return Math.abs(e.width-t)<=1&&(t=e.width),Math.abs(e.height-i)<=1&&(i=e.height),{x:r.offsetLeft,y:r.offsetTop,width:t,height:i}}function eb(r,e){var t=e.getRootNode&&e.getRootNode();if(r.contains(e))return!0;if(t&&fd(t)){var i=e;do{if(i&&r.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Pr(r){return ti(r).getComputedStyle(r)}function pT(r){return["table","td","th"].indexOf(dr(r))>=0}function us(r){return((zs(r)?r.ownerDocument:r.document)||window.document).documentElement}function th(r){return dr(r)==="html"?r:r.assignedSlot||r.parentNode||(fd(r)?r.host:null)||us(r)}function Pp(r){return!yi(r)||Pr(r).position==="fixed"?null:r.offsetParent}function mT(r){var e=/firefox/i.test(Pu()),t=/Trident/i.test(Pu());if(t&&yi(r)){var i=Pr(r);if(i.position==="fixed")return null}var s=th(r);for(fd(s)&&(s=s.host);yi(s)&&["html","body"].indexOf(dr(s))<0;){var n=Pr(s);if(n.transform!=="none"||n.perspective!=="none"||n.contain==="paint"||["transform","perspective"].indexOf(n.willChange)!==-1||e&&n.willChange==="filter"||e&&n.filter&&n.filter!=="none")return s;s=s.parentNode}return null}function to(r){for(var e=ti(r),t=Pp(r);t&&pT(t)&&Pr(t).position==="static";)t=Pp(t);return t&&(dr(t)==="html"||dr(t)==="body"&&Pr(t).position==="static")?e:t||mT(r)||e}function md(r){return["top","bottom"].indexOf(r)>=0?"x":"y"}function Ta(r,e,t){return Ns(r,Bl(e,t))}function gT(r,e,t){var i=Ta(r,e,t);return i>t?t:i}function tb(){return{top:0,right:0,bottom:0,left:0}}function ib(r){return Object.assign({},tb(),r)}function rb(r,e){return e.reduce(function(t,i){return t[i]=r,t},{})}var bT=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,ib(typeof e!="number"?e:rb(e,eo))};function yT(r){var e,t=r.state,i=r.name,s=r.options,n=t.elements.arrow,a=t.modifiersData.popperOffsets,o=or(t.placement),l=md(o),c=[Zt,wi].indexOf(o)>=0,u=c?"height":"width";if(!(!n||!a)){var h=bT(s.padding,t),d=pd(n),f=l==="y"?Kt:Zt,p=l==="y"?vi:wi,m=t.rects.reference[u]+t.rects.reference[l]-a[l]-t.rects.popper[u],g=a[l]-t.rects.reference[l],b=to(n),w=b?l==="y"?b.clientHeight||0:b.clientWidth||0:0,v=m/2-g/2,y=h[f],E=w-d[u]-h[p],C=w/2-d[u]/2+v,k=Ta(y,C,E),B=l;t.modifiersData[i]=(e={},e[B]=k,e.centerOffset=k-C,e)}}function vT(r){var e=r.state,t=r.options,i=t.element,s=i===void 0?"[data-popper-arrow]":i;s!=null&&(typeof s=="string"&&(s=e.elements.popper.querySelector(s),!s)||eb(e.elements.popper,s)&&(e.elements.arrow=s))}const wT={name:"arrow",enabled:!0,phase:"main",fn:yT,effect:vT,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ln(r){return r.split("-")[1]}var xT={top:"auto",right:"auto",bottom:"auto",left:"auto"};function _T(r,e){var t=r.x,i=r.y,s=e.devicePixelRatio||1;return{x:Rn(t*s)/s||0,y:Rn(i*s)/s||0}}function Bp(r){var e,t=r.popper,i=r.popperRect,s=r.placement,n=r.variation,a=r.offsets,o=r.position,l=r.gpuAcceleration,c=r.adaptive,u=r.roundOffsets,h=r.isFixed,d=a.x,f=d===void 0?0:d,p=a.y,m=p===void 0?0:p,g=typeof u=="function"?u({x:f,y:m}):{x:f,y:m};f=g.x,m=g.y;var b=a.hasOwnProperty("x"),w=a.hasOwnProperty("y"),v=Zt,y=Kt,E=window;if(c){var C=to(t),k="clientHeight",B="clientWidth";if(C===ti(t)&&(C=us(t),Pr(C).position!=="static"&&o==="absolute"&&(k="scrollHeight",B="scrollWidth")),C=C,s===Kt||(s===Zt||s===wi)&&n===Fa){y=vi;var M=h&&C===E&&E.visualViewport?E.visualViewport.height:C[k];m-=M-i.height,m*=l?1:-1}if(s===Zt||(s===Kt||s===vi)&&n===Fa){v=wi;var U=h&&C===E&&E.visualViewport?E.visualViewport.width:C[B];f-=U-i.width,f*=l?1:-1}}var V=Object.assign({position:o},c&&xT),T=u===!0?_T({x:f,y:m},ti(t)):{x:f,y:m};if(f=T.x,m=T.y,l){var S;return Object.assign({},V,(S={},S[y]=w?"0":"",S[v]=b?"0":"",S.transform=(E.devicePixelRatio||1)<=1?"translate("+f+"px, "+m+"px)":"translate3d("+f+"px, "+m+"px, 0)",S))}return Object.assign({},V,(e={},e[y]=w?m+"px":"",e[v]=b?f+"px":"",e.transform="",e))}function ET(r){var e=r.state,t=r.options,i=t.gpuAcceleration,s=i===void 0?!0:i,n=t.adaptive,a=n===void 0?!0:n,o=t.roundOffsets,l=o===void 0?!0:o,c={placement:or(e.placement),variation:Ln(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:s,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,Bp(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,Bp(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const AT={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:ET,data:{}};var Oo={passive:!0};function TT(r){var e=r.state,t=r.instance,i=r.options,s=i.scroll,n=s===void 0?!0:s,a=i.resize,o=a===void 0?!0:a,l=ti(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return n&&c.forEach(function(u){u.addEventListener("scroll",t.update,Oo)}),o&&l.addEventListener("resize",t.update,Oo),function(){n&&c.forEach(function(u){u.removeEventListener("scroll",t.update,Oo)}),o&&l.removeEventListener("resize",t.update,Oo)}}const CT={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:TT,data:{}};var ST={left:"right",right:"left",bottom:"top",top:"bottom"};function ul(r){return r.replace(/left|right|bottom|top/g,function(e){return ST[e]})}var MT={start:"end",end:"start"};function Rp(r){return r.replace(/start|end/g,function(e){return MT[e]})}function gd(r){var e=ti(r),t=e.pageXOffset,i=e.pageYOffset;return{scrollLeft:t,scrollTop:i}}function bd(r){return Fn(us(r)).left+gd(r).scrollLeft}function kT(r,e){var t=ti(r),i=us(r),s=t.visualViewport,n=i.clientWidth,a=i.clientHeight,o=0,l=0;if(s){n=s.width,a=s.height;var c=Qg();(c||!c&&e==="fixed")&&(o=s.offsetLeft,l=s.offsetTop)}return{width:n,height:a,x:o+bd(r),y:l}}function DT(r){var e,t=us(r),i=gd(r),s=(e=r.ownerDocument)==null?void 0:e.body,n=Ns(t.scrollWidth,t.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),a=Ns(t.scrollHeight,t.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),o=-i.scrollLeft+bd(r),l=-i.scrollTop;return Pr(s||t).direction==="rtl"&&(o+=Ns(t.clientWidth,s?s.clientWidth:0)-n),{width:n,height:a,x:o,y:l}}function yd(r){var e=Pr(r),t=e.overflow,i=e.overflowX,s=e.overflowY;return/auto|scroll|overlay|hidden/.test(t+s+i)}function sb(r){return["html","body","#document"].indexOf(dr(r))>=0?r.ownerDocument.body:yi(r)&&yd(r)?r:sb(th(r))}function Ca(r,e){var t;e===void 0&&(e=[]);var i=sb(r),s=i===((t=r.ownerDocument)==null?void 0:t.body),n=ti(i),a=s?[n].concat(n.visualViewport||[],yd(i)?i:[]):i,o=e.concat(a);return s?o:o.concat(Ca(th(a)))}function Bu(r){return Object.assign({},r,{left:r.x,top:r.y,right:r.x+r.width,bottom:r.y+r.height})}function IT(r,e){var t=Fn(r,!1,e==="fixed");return t.top=t.top+r.clientTop,t.left=t.left+r.clientLeft,t.bottom=t.top+r.clientHeight,t.right=t.left+r.clientWidth,t.width=r.clientWidth,t.height=r.clientHeight,t.x=t.left,t.y=t.top,t}function Fp(r,e,t){return e===Kg?Bu(kT(r,t)):zs(e)?IT(e,t):Bu(DT(us(r)))}function PT(r){var e=Ca(th(r)),t=["absolute","fixed"].indexOf(Pr(r).position)>=0,i=t&&yi(r)?to(r):r;return zs(i)?e.filter(function(s){return zs(s)&&eb(s,i)&&dr(s)!=="body"}):[]}function BT(r,e,t,i){var s=e==="clippingParents"?PT(r):[].concat(e),n=[].concat(s,[t]),a=n[0],o=n.reduce(function(l,c){var u=Fp(r,c,i);return l.top=Ns(u.top,l.top),l.right=Bl(u.right,l.right),l.bottom=Bl(u.bottom,l.bottom),l.left=Ns(u.left,l.left),l},Fp(r,a,i));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function nb(r){var e=r.reference,t=r.element,i=r.placement,s=i?or(i):null,n=i?Ln(i):null,a=e.x+e.width/2-t.width/2,o=e.y+e.height/2-t.height/2,l;switch(s){case Kt:l={x:a,y:e.y-t.height};break;case vi:l={x:a,y:e.y+e.height};break;case wi:l={x:e.x+e.width,y:o};break;case Zt:l={x:e.x-t.width,y:o};break;default:l={x:e.x,y:e.y}}var c=s?md(s):null;if(c!=null){var u=c==="y"?"height":"width";switch(n){case Bn:l[c]=l[c]-(e[u]/2-t[u]/2);break;case Fa:l[c]=l[c]+(e[u]/2-t[u]/2);break}}return l}function La(r,e){e===void 0&&(e={});var t=e,i=t.placement,s=i===void 0?r.placement:i,n=t.strategy,a=n===void 0?r.strategy:n,o=t.boundary,l=o===void 0?eT:o,c=t.rootBoundary,u=c===void 0?Kg:c,h=t.elementContext,d=h===void 0?na:h,f=t.altBoundary,p=f===void 0?!1:f,m=t.padding,g=m===void 0?0:m,b=ib(typeof g!="number"?g:rb(g,eo)),w=d===na?tT:na,v=r.rects.popper,y=r.elements[p?w:d],E=BT(zs(y)?y:y.contextElement||us(r.elements.popper),l,u,a),C=Fn(r.elements.reference),k=nb({reference:C,element:v,strategy:"absolute",placement:s}),B=Bu(Object.assign({},v,k)),M=d===na?B:C,U={top:E.top-M.top+b.top,bottom:M.bottom-E.bottom+b.bottom,left:E.left-M.left+b.left,right:M.right-E.right+b.right},V=r.modifiersData.offset;if(d===na&&V){var T=V[s];Object.keys(U).forEach(function(S){var _=[wi,vi].indexOf(S)>=0?1:-1,R=[Kt,vi].indexOf(S)>=0?"y":"x";U[S]+=T[R]*_})}return U}function RT(r,e){e===void 0&&(e={});var t=e,i=t.placement,s=t.boundary,n=t.rootBoundary,a=t.padding,o=t.flipVariations,l=t.allowedAutoPlacements,c=l===void 0?Zg:l,u=Ln(i),h=u?o?Ip:Ip.filter(function(p){return Ln(p)===u}):eo,d=h.filter(function(p){return c.indexOf(p)>=0});d.length===0&&(d=h);var f=d.reduce(function(p,m){return p[m]=La(r,{placement:m,boundary:s,rootBoundary:n,padding:a})[or(m)],p},{});return Object.keys(f).sort(function(p,m){return f[p]-f[m]})}function FT(r){if(or(r)===dd)return[];var e=ul(r);return[Rp(r),e,Rp(e)]}function LT(r){var e=r.state,t=r.options,i=r.name;if(!e.modifiersData[i]._skip){for(var s=t.mainAxis,n=s===void 0?!0:s,a=t.altAxis,o=a===void 0?!0:a,l=t.fallbackPlacements,c=t.padding,u=t.boundary,h=t.rootBoundary,d=t.altBoundary,f=t.flipVariations,p=f===void 0?!0:f,m=t.allowedAutoPlacements,g=e.options.placement,b=or(g),w=b===g,v=l||(w||!p?[ul(g)]:FT(g)),y=[g].concat(v).reduce(function(Q,Z){return Q.concat(or(Z)===dd?RT(e,{placement:Z,boundary:u,rootBoundary:h,padding:c,flipVariations:p,allowedAutoPlacements:m}):Z)},[]),E=e.rects.reference,C=e.rects.popper,k=new Map,B=!0,M=y[0],U=0;U=0,R=_?"width":"height",q=La(e,{placement:V,boundary:u,rootBoundary:h,altBoundary:d,padding:c}),F=_?S?wi:Zt:S?vi:Kt;E[R]>C[R]&&(F=ul(F));var L=ul(F),W=[];if(n&&W.push(q[T]<=0),o&&W.push(q[F]<=0,q[L]<=0),W.every(function(Q){return Q})){M=V,B=!1;break}k.set(V,W)}if(B)for(var z=p?3:1,O=function(Z){var be=y.find(function(Se){var ce=k.get(Se);if(ce)return ce.slice(0,Z).every(function(pe){return pe})});if(be)return M=be,"break"},N=z;N>0;N--){var ie=O(N);if(ie==="break")break}e.placement!==M&&(e.modifiersData[i]._skip=!0,e.placement=M,e.reset=!0)}}const OT={name:"flip",enabled:!0,phase:"main",fn:LT,requiresIfExists:["offset"],data:{_skip:!1}};function Lp(r,e,t){return t===void 0&&(t={x:0,y:0}),{top:r.top-e.height-t.y,right:r.right-e.width+t.x,bottom:r.bottom-e.height+t.y,left:r.left-e.width-t.x}}function Op(r){return[Kt,wi,vi,Zt].some(function(e){return r[e]>=0})}function NT(r){var e=r.state,t=r.name,i=e.rects.reference,s=e.rects.popper,n=e.modifiersData.preventOverflow,a=La(e,{elementContext:"reference"}),o=La(e,{altBoundary:!0}),l=Lp(a,i),c=Lp(o,s,n),u=Op(l),h=Op(c);e.modifiersData[t]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:h},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":h})}const UT={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:NT};function HT(r,e,t){var i=or(r),s=[Zt,Kt].indexOf(i)>=0?-1:1,n=typeof t=="function"?t(Object.assign({},e,{placement:r})):t,a=n[0],o=n[1];return a=a||0,o=(o||0)*s,[Zt,wi].indexOf(i)>=0?{x:o,y:a}:{x:a,y:o}}function GT(r){var e=r.state,t=r.options,i=r.name,s=t.offset,n=s===void 0?[0,0]:s,a=Zg.reduce(function(u,h){return u[h]=HT(h,e.rects,n),u},{}),o=a[e.placement],l=o.x,c=o.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[i]=a}const VT={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:GT};function zT(r){var e=r.state,t=r.name;e.modifiersData[t]=nb({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const WT={name:"popperOffsets",enabled:!0,phase:"read",fn:zT,data:{}};function $T(r){return r==="x"?"y":"x"}function jT(r){var e=r.state,t=r.options,i=r.name,s=t.mainAxis,n=s===void 0?!0:s,a=t.altAxis,o=a===void 0?!1:a,l=t.boundary,c=t.rootBoundary,u=t.altBoundary,h=t.padding,d=t.tether,f=d===void 0?!0:d,p=t.tetherOffset,m=p===void 0?0:p,g=La(e,{boundary:l,rootBoundary:c,padding:h,altBoundary:u}),b=or(e.placement),w=Ln(e.placement),v=!w,y=md(b),E=$T(y),C=e.modifiersData.popperOffsets,k=e.rects.reference,B=e.rects.popper,M=typeof m=="function"?m(Object.assign({},e.rects,{placement:e.placement})):m,U=typeof M=="number"?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),V=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,T={x:0,y:0};if(C){if(n){var S,_=y==="y"?Kt:Zt,R=y==="y"?vi:wi,q=y==="y"?"height":"width",F=C[y],L=F+g[_],W=F-g[R],z=f?-B[q]/2:0,O=w===Bn?k[q]:B[q],N=w===Bn?-B[q]:-k[q],ie=e.elements.arrow,Q=f&&ie?pd(ie):{width:0,height:0},Z=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:tb(),be=Z[_],Se=Z[R],ce=Ta(0,k[q],Q[q]),pe=v?k[q]/2-z-ce-be-U.mainAxis:O-ce-be-U.mainAxis,xe=v?-k[q]/2+z+ce+Se+U.mainAxis:N+ce+Se+U.mainAxis,le=e.elements.arrow&&to(e.elements.arrow),fe=le?y==="y"?le.clientTop||0:le.clientLeft||0:0,we=(S=V?.[y])!=null?S:0,A=F+pe-we-fe,Y=F+xe-we,j=Ta(f?Bl(L,A):L,F,f?Ns(W,Y):W);C[y]=j,T[y]=j-F}if(o){var I,D=y==="x"?Kt:Zt,G=y==="x"?vi:wi,J=C[E],ee=E==="y"?"height":"width",$=J+g[D],re=J-g[G],he=[Kt,Zt].indexOf(b)!==-1,ne=(I=V?.[E])!=null?I:0,_e=he?$:J-k[ee]-B[ee]-ne+U.altAxis,Xe=he?J+k[ee]+B[ee]-ne-U.altAxis:re,Ue=f&&he?gT(_e,J,Xe):Ta(f?_e:$,J,f?Xe:re);C[E]=Ue,T[E]=Ue-J}e.modifiersData[i]=T}}const qT={name:"preventOverflow",enabled:!0,phase:"main",fn:jT,requiresIfExists:["offset"]};function YT(r){return{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}}function XT(r){return r===ti(r)||!yi(r)?gd(r):YT(r)}function KT(r){var e=r.getBoundingClientRect(),t=Rn(e.width)/r.offsetWidth||1,i=Rn(e.height)/r.offsetHeight||1;return t!==1||i!==1}function ZT(r,e,t){t===void 0&&(t=!1);var i=yi(e),s=yi(e)&&KT(e),n=us(e),a=Fn(r,s,t),o={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!t)&&((dr(e)!=="body"||yd(n))&&(o=XT(e)),yi(e)?(l=Fn(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):n&&(l.x=bd(n))),{x:a.left+o.scrollLeft-l.x,y:a.top+o.scrollTop-l.y,width:a.width,height:a.height}}function JT(r){var e=new Map,t=new Set,i=[];r.forEach(function(n){e.set(n.name,n)});function s(n){t.add(n.name);var a=[].concat(n.requires||[],n.requiresIfExists||[]);a.forEach(function(o){if(!t.has(o)){var l=e.get(o);l&&s(l)}}),i.push(n)}return r.forEach(function(n){t.has(n.name)||s(n)}),i}function QT(r){var e=JT(r);return uT.reduce(function(t,i){return t.concat(e.filter(function(s){return s.phase===i}))},[])}function e2(r){var e;return function(){return e||(e=new Promise(function(t){Promise.resolve().then(function(){e=void 0,t(r())})})),e}}function t2(r){var e=r.reduce(function(t,i){var s=t[i.name];return t[i.name]=s?Object.assign({},s,i,{options:Object.assign({},s.options,i.options),data:Object.assign({},s.data,i.data)}):i,t},{});return Object.keys(e).map(function(t){return e[t]})}var Np={placement:"bottom",modifiers:[],strategy:"absolute"};function Up(){for(var r=arguments.length,e=new Array(r),t=0;t-1}function cb(r,e){return typeof r=="function"?r.apply(void 0,e):r}function Hp(r,e){if(e===0)return r;var t;return function(i){clearTimeout(t),t=setTimeout(function(){r(i)},e)}}function o2(r){return r.split(/\s+/).filter(Boolean)}function dn(r){return[].concat(r)}function Gp(r,e){r.indexOf(e)===-1&&r.push(e)}function l2(r){return r.filter(function(e,t){return r.indexOf(e)===t})}function h2(r){return r.split("-")[0]}function Rl(r){return[].slice.call(r)}function Vp(r){return Object.keys(r).reduce(function(e,t){return r[t]!==void 0&&(e[t]=r[t]),e},{})}function Sa(){return document.createElement("div")}function ih(r){return["Element","Fragment"].some(function(e){return vd(r,e)})}function c2(r){return vd(r,"NodeList")}function u2(r){return vd(r,"MouseEvent")}function d2(r){return!!(r&&r._tippy&&r._tippy.reference===r)}function f2(r){return ih(r)?[r]:c2(r)?Rl(r):Array.isArray(r)?r:Rl(document.querySelectorAll(r))}function oc(r,e){r.forEach(function(t){t&&(t.style.transitionDuration=e+"ms")})}function zp(r,e){r.forEach(function(t){t&&t.setAttribute("data-state",e)})}function p2(r){var e,t=dn(r),i=t[0];return i!=null&&(e=i.ownerDocument)!=null&&e.body?i.ownerDocument:document}function m2(r,e){var t=e.clientX,i=e.clientY;return r.every(function(s){var n=s.popperRect,a=s.popperState,o=s.props,l=o.interactiveBorder,c=h2(a.placement),u=a.modifiersData.offset;if(!u)return!0;var h=c==="bottom"?u.top.y:0,d=c==="top"?u.bottom.y:0,f=c==="right"?u.left.x:0,p=c==="left"?u.right.x:0,m=n.top-i+h>l,g=i-n.bottom-d>l,b=n.left-t+f>l,w=t-n.right-p>l;return m||g||b||w})}function lc(r,e,t){var i=e+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(s){r[i](s,t)})}function Wp(r,e){for(var t=e;t;){var i;if(r.contains(t))return!0;t=t.getRootNode==null||(i=t.getRootNode())==null?void 0:i.host}return!1}var Qi={isTouch:!1},$p=0;function g2(){Qi.isTouch||(Qi.isTouch=!0,window.performance&&document.addEventListener("mousemove",ub))}function ub(){var r=performance.now();r-$p<20&&(Qi.isTouch=!1,document.removeEventListener("mousemove",ub)),$p=r}function b2(){var r=document.activeElement;if(d2(r)){var e=r._tippy;r.blur&&!e.state.isVisible&&r.blur()}}function y2(){document.addEventListener("touchstart",g2,As),window.addEventListener("blur",b2)}var v2=typeof window<"u"&&typeof document<"u",w2=v2?!!window.msCrypto:!1,x2={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},_2={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},Di=Object.assign({appendTo:hb,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},x2,_2),E2=Object.keys(Di),A2=function(e){var t=Object.keys(e);t.forEach(function(i){Di[i]=e[i]})};function db(r){var e=r.plugins||[],t=e.reduce(function(i,s){var n=s.name,a=s.defaultValue;if(n){var o;i[n]=r[n]!==void 0?r[n]:(o=Di[n])!=null?o:a}return i},{});return Object.assign({},r,t)}function T2(r,e){var t=e?Object.keys(db(Object.assign({},Di,{plugins:e}))):E2,i=t.reduce(function(s,n){var a=(r.getAttribute("data-tippy-"+n)||"").trim();if(!a)return s;if(n==="content")s[n]=a;else try{s[n]=JSON.parse(a)}catch{s[n]=a}return s},{});return i}function jp(r,e){var t=Object.assign({},e,{content:cb(e.content,[r])},e.ignoreAttributes?{}:T2(r,e.plugins));return t.aria=Object.assign({},Di.aria,t.aria),t.aria={expanded:t.aria.expanded==="auto"?e.interactive:t.aria.expanded,content:t.aria.content==="auto"?e.interactive?null:"describedby":t.aria.content},t}var C2=function(){return"innerHTML"};function Ru(r,e){r[C2()]=e}function qp(r){var e=Sa();return r===!0?e.className=ob:(e.className=lb,ih(r)?e.appendChild(r):Ru(e,r)),e}function Yp(r,e){ih(e.content)?(Ru(r,""),r.appendChild(e.content)):typeof e.content!="function"&&(e.allowHTML?Ru(r,e.content):r.textContent=e.content)}function Fu(r){var e=r.firstElementChild,t=Rl(e.children);return{box:e,content:t.find(function(i){return i.classList.contains(ab)}),arrow:t.find(function(i){return i.classList.contains(ob)||i.classList.contains(lb)}),backdrop:t.find(function(i){return i.classList.contains(a2)})}}function fb(r){var e=Sa(),t=Sa();t.className=n2,t.setAttribute("data-state","hidden"),t.setAttribute("tabindex","-1");var i=Sa();i.className=ab,i.setAttribute("data-state","hidden"),Yp(i,r.props),e.appendChild(t),t.appendChild(i),s(r.props,r.props);function s(n,a){var o=Fu(e),l=o.box,c=o.content,u=o.arrow;a.theme?l.setAttribute("data-theme",a.theme):l.removeAttribute("data-theme"),typeof a.animation=="string"?l.setAttribute("data-animation",a.animation):l.removeAttribute("data-animation"),a.inertia?l.setAttribute("data-inertia",""):l.removeAttribute("data-inertia"),l.style.maxWidth=typeof a.maxWidth=="number"?a.maxWidth+"px":a.maxWidth,a.role?l.setAttribute("role",a.role):l.removeAttribute("role"),(n.content!==a.content||n.allowHTML!==a.allowHTML)&&Yp(c,r.props),a.arrow?u?n.arrow!==a.arrow&&(l.removeChild(u),l.appendChild(qp(a.arrow))):l.appendChild(qp(a.arrow)):u&&l.removeChild(u)}return{popper:e,onUpdate:s}}fb.$$tippy=!0;var S2=1,No=[],hc=[];function M2(r,e){var t=jp(r,Object.assign({},Di,db(Vp(e)))),i,s,n,a=!1,o=!1,l=!1,c=!1,u,h,d,f=[],p=Hp(A,t.interactiveDebounce),m,g=S2++,b=null,w=l2(t.plugins),v={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},y={id:g,reference:r,popper:Sa(),popperInstance:b,props:t,state:v,plugins:w,clearDelayTimeouts:_e,setProps:Xe,setContent:Ue,show:jt,hide:fs,hideWithInteractivity:ri,enable:he,disable:ne,unmount:ps,destroy:dt};if(!t.render)return y;var E=t.render(y),C=E.popper,k=E.onUpdate;C.setAttribute("data-tippy-root",""),C.id="tippy-"+y.id,y.popper=C,r._tippy=y,C._tippy=y;var B=w.map(function(X){return X.fn(y)}),M=r.hasAttribute("aria-expanded");return le(),z(),F(),L("onCreate",[y]),t.showOnCreate&&$(),C.addEventListener("mouseenter",function(){y.props.interactive&&y.state.isVisible&&y.clearDelayTimeouts()}),C.addEventListener("mouseleave",function(){y.props.interactive&&y.props.trigger.indexOf("mouseenter")>=0&&_().addEventListener("mousemove",p)}),y;function U(){var X=y.props.touch;return Array.isArray(X)?X:[X,0]}function V(){return U()[0]==="hold"}function T(){var X;return!!((X=y.props.render)!=null&&X.$$tippy)}function S(){return m||r}function _(){var X=S().parentNode;return X?p2(X):document}function R(){return Fu(C)}function q(X){return y.state.isMounted&&!y.state.isVisible||Qi.isTouch||u&&u.type==="focus"?0:ac(y.props.delay,X?0:1,Di.delay)}function F(X){X===void 0&&(X=!1),C.style.pointerEvents=y.props.interactive&&!X?"":"none",C.style.zIndex=""+y.props.zIndex}function L(X,me,Te){if(Te===void 0&&(Te=!0),B.forEach(function(Ve){Ve[X]&&Ve[X].apply(Ve,me)}),Te){var qe;(qe=y.props)[X].apply(qe,me)}}function W(){var X=y.props.aria;if(X.content){var me="aria-"+X.content,Te=C.id,qe=dn(y.props.triggerTarget||r);qe.forEach(function(Ve){var Bt=Ve.getAttribute(me);if(y.state.isVisible)Ve.setAttribute(me,Bt?Bt+" "+Te:Te);else{var qt=Bt&&Bt.replace(Te,"").trim();qt?Ve.setAttribute(me,qt):Ve.removeAttribute(me)}})}}function z(){if(!(M||!y.props.aria.expanded)){var X=dn(y.props.triggerTarget||r);X.forEach(function(me){y.props.interactive?me.setAttribute("aria-expanded",y.state.isVisible&&me===S()?"true":"false"):me.removeAttribute("aria-expanded")})}}function O(){_().removeEventListener("mousemove",p),No=No.filter(function(X){return X!==p})}function N(X){if(!(Qi.isTouch&&(l||X.type==="mousedown"))){var me=X.composedPath&&X.composedPath()[0]||X.target;if(!(y.props.interactive&&Wp(C,me))){if(dn(y.props.triggerTarget||r).some(function(Te){return Wp(Te,me)})){if(Qi.isTouch||y.state.isVisible&&y.props.trigger.indexOf("click")>=0)return}else L("onClickOutside",[y,X]);y.props.hideOnClick===!0&&(y.clearDelayTimeouts(),y.hide(),o=!0,setTimeout(function(){o=!1}),y.state.isMounted||be())}}}function ie(){l=!0}function Q(){l=!1}function Z(){var X=_();X.addEventListener("mousedown",N,!0),X.addEventListener("touchend",N,As),X.addEventListener("touchstart",Q,As),X.addEventListener("touchmove",ie,As)}function be(){var X=_();X.removeEventListener("mousedown",N,!0),X.removeEventListener("touchend",N,As),X.removeEventListener("touchstart",Q,As),X.removeEventListener("touchmove",ie,As)}function Se(X,me){pe(X,function(){!y.state.isVisible&&C.parentNode&&C.parentNode.contains(C)&&me()})}function ce(X,me){pe(X,me)}function pe(X,me){var Te=R().box;function qe(Ve){Ve.target===Te&&(lc(Te,"remove",qe),me())}if(X===0)return me();lc(Te,"remove",h),lc(Te,"add",qe),h=qe}function xe(X,me,Te){Te===void 0&&(Te=!1);var qe=dn(y.props.triggerTarget||r);qe.forEach(function(Ve){Ve.addEventListener(X,me,Te),f.push({node:Ve,eventType:X,handler:me,options:Te})})}function le(){V()&&(xe("touchstart",we,{passive:!0}),xe("touchend",Y,{passive:!0})),o2(y.props.trigger).forEach(function(X){if(X!=="manual")switch(xe(X,we),X){case"mouseenter":xe("mouseleave",Y);break;case"focus":xe(w2?"focusout":"blur",j);break;case"focusin":xe("focusout",j);break}})}function fe(){f.forEach(function(X){var me=X.node,Te=X.eventType,qe=X.handler,Ve=X.options;me.removeEventListener(Te,qe,Ve)}),f=[]}function we(X){var me,Te=!1;if(!(!y.state.isEnabled||I(X)||o)){var qe=((me=u)==null?void 0:me.type)==="focus";u=X,m=X.currentTarget,z(),!y.state.isVisible&&u2(X)&&No.forEach(function(Ve){return Ve(X)}),X.type==="click"&&(y.props.trigger.indexOf("mouseenter")<0||a)&&y.props.hideOnClick!==!1&&y.state.isVisible?Te=!0:$(X),X.type==="click"&&(a=!Te),Te&&!qe&&re(X)}}function A(X){var me=X.target,Te=S().contains(me)||C.contains(me);if(!(X.type==="mousemove"&&Te)){var qe=ee().concat(C).map(function(Ve){var Bt,qt=Ve._tippy,gr=(Bt=qt.popperInstance)==null?void 0:Bt.state;return gr?{popperRect:Ve.getBoundingClientRect(),popperState:gr,props:t}:null}).filter(Boolean);m2(qe,X)&&(O(),re(X))}}function Y(X){var me=I(X)||y.props.trigger.indexOf("click")>=0&&a;if(!me){if(y.props.interactive){y.hideWithInteractivity(X);return}re(X)}}function j(X){y.props.trigger.indexOf("focusin")<0&&X.target!==S()||y.props.interactive&&X.relatedTarget&&C.contains(X.relatedTarget)||re(X)}function I(X){return Qi.isTouch?V()!==X.type.indexOf("touch")>=0:!1}function D(){G();var X=y.props,me=X.popperOptions,Te=X.placement,qe=X.offset,Ve=X.getReferenceClientRect,Bt=X.moveTransition,qt=T()?Fu(C).arrow:null,gr=Ve?{getBoundingClientRect:Ve,contextElement:Ve.contextElement||S()}:r,Or={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(lo){var qs=lo.state;if(T()){var Cy=R(),vh=Cy.box;["placement","reference-hidden","escaped"].forEach(function(ho){ho==="placement"?vh.setAttribute("data-placement",qs.placement):qs.attributes.popper["data-popper-"+ho]?vh.setAttribute("data-"+ho,""):vh.removeAttribute("data-"+ho)}),qs.attributes.popper={}}}},si=[{name:"offset",options:{offset:qe}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!Bt}},Or];T()&&qt&&si.push({name:"arrow",options:{element:qt,padding:3}}),si.push.apply(si,me?.modifiers||[]),y.popperInstance=s2(gr,C,Object.assign({},me,{placement:Te,onFirstUpdate:d,modifiers:si}))}function G(){y.popperInstance&&(y.popperInstance.destroy(),y.popperInstance=null)}function J(){var X=y.props.appendTo,me,Te=S();y.props.interactive&&X===hb||X==="parent"?me=Te.parentNode:me=cb(X,[Te]),me.contains(C)||me.appendChild(C),y.state.isMounted=!0,D()}function ee(){return Rl(C.querySelectorAll("[data-tippy-root]"))}function $(X){y.clearDelayTimeouts(),X&&L("onTrigger",[y,X]),Z();var me=q(!0),Te=U(),qe=Te[0],Ve=Te[1];Qi.isTouch&&qe==="hold"&&Ve&&(me=Ve),me?i=setTimeout(function(){y.show()},me):y.show()}function re(X){if(y.clearDelayTimeouts(),L("onUntrigger",[y,X]),!y.state.isVisible){be();return}if(!(y.props.trigger.indexOf("mouseenter")>=0&&y.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(X.type)>=0&&a)){var me=q(!1);me?s=setTimeout(function(){y.state.isVisible&&y.hide()},me):n=requestAnimationFrame(function(){y.hide()})}}function he(){y.state.isEnabled=!0}function ne(){y.hide(),y.state.isEnabled=!1}function _e(){clearTimeout(i),clearTimeout(s),cancelAnimationFrame(n)}function Xe(X){if(!y.state.isDestroyed){L("onBeforeUpdate",[y,X]),fe();var me=y.props,Te=jp(r,Object.assign({},me,Vp(X),{ignoreAttributes:!0}));y.props=Te,le(),me.interactiveDebounce!==Te.interactiveDebounce&&(O(),p=Hp(A,Te.interactiveDebounce)),me.triggerTarget&&!Te.triggerTarget?dn(me.triggerTarget).forEach(function(qe){qe.removeAttribute("aria-expanded")}):Te.triggerTarget&&r.removeAttribute("aria-expanded"),z(),F(),k&&k(me,Te),y.popperInstance&&(D(),ee().forEach(function(qe){requestAnimationFrame(qe._tippy.popperInstance.forceUpdate)})),L("onAfterUpdate",[y,X])}}function Ue(X){y.setProps({content:X})}function jt(){var X=y.state.isVisible,me=y.state.isDestroyed,Te=!y.state.isEnabled,qe=Qi.isTouch&&!y.props.touch,Ve=ac(y.props.duration,0,Di.duration);if(!(X||me||Te||qe)&&!S().hasAttribute("disabled")&&(L("onShow",[y],!1),y.props.onShow(y)!==!1)){if(y.state.isVisible=!0,T()&&(C.style.visibility="visible"),F(),Z(),y.state.isMounted||(C.style.transition="none"),T()){var Bt=R(),qt=Bt.box,gr=Bt.content;oc([qt,gr],0)}d=function(){var si;if(!(!y.state.isVisible||c)){if(c=!0,C.offsetHeight,C.style.transition=y.props.moveTransition,T()&&y.props.animation){var yh=R(),lo=yh.box,qs=yh.content;oc([lo,qs],Ve),zp([lo,qs],"visible")}W(),z(),Gp(hc,y),(si=y.popperInstance)==null||si.forceUpdate(),L("onMount",[y]),y.props.animation&&T()&&ce(Ve,function(){y.state.isShown=!0,L("onShown",[y])})}},J()}}function fs(){var X=!y.state.isVisible,me=y.state.isDestroyed,Te=!y.state.isEnabled,qe=ac(y.props.duration,1,Di.duration);if(!(X||me||Te)&&(L("onHide",[y],!1),y.props.onHide(y)!==!1)){if(y.state.isVisible=!1,y.state.isShown=!1,c=!1,a=!1,T()&&(C.style.visibility="hidden"),O(),be(),F(!0),T()){var Ve=R(),Bt=Ve.box,qt=Ve.content;y.props.animation&&(oc([Bt,qt],qe),zp([Bt,qt],"hidden"))}W(),z(),y.props.animation?T()&&Se(qe,y.unmount):y.unmount()}}function ri(X){_().addEventListener("mousemove",p),Gp(No,p),p(X)}function ps(){y.state.isVisible&&y.hide(),y.state.isMounted&&(G(),ee().forEach(function(X){X._tippy.unmount()}),C.parentNode&&C.parentNode.removeChild(C),hc=hc.filter(function(X){return X!==y}),y.state.isMounted=!1,L("onHidden",[y]))}function dt(){y.state.isDestroyed||(y.clearDelayTimeouts(),y.unmount(),fe(),delete r._tippy,y.state.isDestroyed=!0,L("onDestroy",[y]))}}function Ze(r,e){e===void 0&&(e={});var t=Di.plugins.concat(e.plugins||[]);y2();var i=Object.assign({},e,{plugins:t}),s=f2(r),n=s.reduce(function(a,o){var l=o&&M2(o,i);return l&&a.push(l),a},[]);return ih(r)?n[0]:n}Ze.defaultProps=Di;Ze.setDefaultProps=A2;Ze.currentInput=Qi;Object.assign({},Jg,{effect:function(e){var t=e.state,i={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,i.popper),t.styles=i,t.elements.arrow&&Object.assign(t.elements.arrow.style,i.arrow)}});Ze.setDefaultProps({render:fb});const k2="modulepreload",D2=function(r){return"/smeditor/"+r},Xp={},Qe=function(e,t,i){if(!t||t.length===0)return e();const s=document.getElementsByTagName("link");return Promise.all(t.map(n=>{if(n=D2(n),n in Xp)return;Xp[n]=!0;const a=n.endsWith(".css"),o=a?'[rel="stylesheet"]':"";if(!!i)for(let u=s.length-1;u>=0;u--){const h=s[u];if(h.href===n&&(!a||h.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${n}"]${o}`))return;const c=document.createElement("link");if(c.rel=a?"stylesheet":k2,a||(c.as="script",c.crossOrigin=""),c.href=n,document.head.appendChild(c),a)return new Promise((u,h)=>{c.addEventListener("load",u),c.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${n}`)))})})).then(()=>e()).catch(n=>{const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=n,window.dispatchEvent(a),!a.defaultPrevented)throw n})},Ma={INVALID:["seeking position failed.","InvalidStateError"],GONE:["A requested file or directory could not be found at the time an operation was processed.","NotFoundError"],MISMATCH:["The path supplied exists, but was not an entry of requested type.","TypeMismatchError"],MOD_ERR:["The object can not be modified in this way.","InvalidModificationError"],SYNTAX:r=>[`Failed to execute 'write' on 'UnderlyingSinkBase': Invalid params passed. ${r}`,"SyntaxError"],ABORT:["The operation was aborted","AbortError"],SECURITY:["It was determined that certain files are unsafe for access within a Web application, or that too many calls are being made on file resources.","SecurityError"],DISALLOWED:["The request is not allowed by the user agent or the platform in the current context.","NotAllowedError"]},I2=r=>typeof r=="object"&&typeof r.type<"u";async function P2(r){var e,t,i;const{FolderHandle:s,FileHandle:n}=await Qe(()=>import("./memory-2bb6a5a3.js"),[]),{FileSystemDirectoryHandle:a}=await Qe(()=>Promise.resolve().then(()=>k3),void 0),o=(t=(e=r[0].webkitRelativePath)===null||e===void 0?void 0:e.split("/",1)[0])!==null&&t!==void 0?t:"",l=new s(o,!1);for(let c=0;c(p._entries[m]||(p._entries[m]=new s(m,!1)),p._entries[m]),l);f._entries[d]=new n(u.name,u,!1)}return new a(l)}async function B2(r){const{FileHandle:e}=await Qe(()=>import("./memory-2bb6a5a3.js"),[]),{FileSystemFileHandle:t}=await Qe(()=>Promise.resolve().then(()=>ty),void 0);return Array.from(r).map(s=>new t(new e(s.name,s,!1)))}const pb=Object.freeze(Object.defineProperty({__proto__:null,errors:Ma,isChunkObject:I2,makeDirHandleFromFileList:P2,makeFileHandlesFromFileList:B2},Symbol.toStringTag,{value:"Module"}));var Fl={};/*! howler.js v2.2.4 | (c) 2013-2020, James Simpson of GoldFire Studios | MIT License | howlerjs.com */(function(r){(function(){var e=function(){this.init()};e.prototype={init:function(){var h=this||t;return h._counter=1e3,h._html5AudioPool=[],h.html5PoolSize=10,h._codecs={},h._howls=[],h._muted=!1,h._volume=1,h._canPlayEvent="canplaythrough",h._navigator=typeof window<"u"&&window.navigator?window.navigator:null,h.masterGain=null,h.noAudio=!1,h.usingWebAudio=!0,h.autoSuspend=!0,h.ctx=null,h.autoUnlock=!0,h._setup(),h},volume:function(h){var d=this||t;if(h=parseFloat(h),d.ctx||u(),h!==void 0&&h>=0&&h<=1){if(d._volume=h,d._muted)return d;d.usingWebAudio&&d.masterGain.gain.setValueAtTime(h,t.ctx.currentTime);for(var f=0;f=0;d--)h._howls[d].unload();return h.usingWebAudio&&h.ctx&&h.ctx.close!==void 0&&(h.ctx.close(),h.ctx=null,u()),h},codecs:function(h){return(this||t)._codecs[h.replace(/^x-/,"")]},_setup:function(){var h=this||t;if(h.state=h.ctx&&h.ctx.state||"suspended",h._autoSuspend(),!h.usingWebAudio)if(typeof Audio<"u")try{var d=new Audio;d.oncanplaythrough===void 0&&(h._canPlayEvent="canplay")}catch{h.noAudio=!0}else h.noAudio=!0;try{var d=new Audio;d.muted&&(h.noAudio=!0)}catch{}return h.noAudio||h._setupCodecs(),h},_setupCodecs:function(){var h=this||t,d=null;try{d=typeof Audio<"u"?new Audio:null}catch{return h}if(!d||typeof d.canPlayType!="function")return h;var f=d.canPlayType("audio/mpeg;").replace(/^no$/,""),p=h._navigator?h._navigator.userAgent:"",m=p.match(/OPR\/(\d+)/g),g=m&&parseInt(m[0].split("/")[1],10)<33,b=p.indexOf("Safari")!==-1&&p.indexOf("Chrome")===-1,w=p.match(/Version\/(.*?) /),v=b&&w&&parseInt(w[1],10)<15;return h._codecs={mp3:!(g||!f&&!d.canPlayType("audio/mp3;").replace(/^no$/,"")),mpeg:!!f,opus:!!d.canPlayType('audio/ogg; codecs="opus"').replace(/^no$/,""),ogg:!!d.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),oga:!!d.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),wav:!!(d.canPlayType('audio/wav; codecs="1"')||d.canPlayType("audio/wav")).replace(/^no$/,""),aac:!!d.canPlayType("audio/aac;").replace(/^no$/,""),caf:!!d.canPlayType("audio/x-caf;").replace(/^no$/,""),m4a:!!(d.canPlayType("audio/x-m4a;")||d.canPlayType("audio/m4a;")||d.canPlayType("audio/aac;")).replace(/^no$/,""),m4b:!!(d.canPlayType("audio/x-m4b;")||d.canPlayType("audio/m4b;")||d.canPlayType("audio/aac;")).replace(/^no$/,""),mp4:!!(d.canPlayType("audio/x-mp4;")||d.canPlayType("audio/mp4;")||d.canPlayType("audio/aac;")).replace(/^no$/,""),weba:!(v||!d.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),webm:!(v||!d.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),dolby:!!d.canPlayType('audio/mp4; codecs="ec-3"').replace(/^no$/,""),flac:!!(d.canPlayType("audio/x-flac;")||d.canPlayType("audio/flac;")).replace(/^no$/,"")},h},_unlockAudio:function(){var h=this||t;if(!h._audioUnlocked&&h.ctx){h._audioUnlocked=!1,h.autoUnlock=!1,h._mobileUnloaded||h.ctx.sampleRate===44100||(h._mobileUnloaded=!0,h.unload()),h._scratchBuffer=h.ctx.createBuffer(1,1,22050);var d=function(f){for(;h._html5AudioPool.length0?b._seek:f._sprite[h][0]/1e3),y=Math.max(0,(f._sprite[h][0]+f._sprite[h][1])/1e3-v),E=1e3*y/Math.abs(b._rate),C=f._sprite[h][0]/1e3,k=(f._sprite[h][0]+f._sprite[h][1])/1e3;b._sprite=h,b._ended=!1;var B=function(){b._paused=!1,b._seek=v,b._start=C,b._stop=k,b._loop=!(!b._loop&&!f._sprite[h][2])};if(v>=k)return void f._ended(b);var M=b._node;if(f._webAudio){var U=function(){f._playLock=!1,B(),f._refreshBuffer(b);var _=b._muted||f._muted?0:b._volume;M.gain.setValueAtTime(_,t.ctx.currentTime),b._playStart=t.ctx.currentTime,M.bufferSource.start===void 0?b._loop?M.bufferSource.noteGrainOn(0,v,86400):M.bufferSource.noteGrainOn(0,v,y):b._loop?M.bufferSource.start(0,v,86400):M.bufferSource.start(0,v,y),E!==1/0&&(f._endTimers[b._id]=setTimeout(f._ended.bind(f,b),E)),d||setTimeout(function(){f._emit("play",b._id),f._loadQueue()},0)};t.state==="running"&&t.ctx.state!=="interrupted"?U():(f._playLock=!0,f.once("resume",U),f._clearTimer(b._id))}else{var V=function(){M.currentTime=v,M.muted=b._muted||f._muted||t._muted||M.muted,M.volume=b._volume*t.volume(),M.playbackRate=b._rate;try{var _=M.play();if(_&&typeof Promise<"u"&&(_ instanceof Promise||typeof _.then=="function")?(f._playLock=!0,B(),_.then(function(){f._playLock=!1,M._unlocked=!0,d?f._loadQueue():f._emit("play",b._id)}).catch(function(){f._playLock=!1,f._emit("playerror",b._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction."),b._ended=!0,b._paused=!0})):d||(f._playLock=!1,B(),f._emit("play",b._id)),M.playbackRate=b._rate,M.paused)return void f._emit("playerror",b._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction.");h!=="__default"||b._loop?f._endTimers[b._id]=setTimeout(f._ended.bind(f,b),E):(f._endTimers[b._id]=function(){f._ended(b),M.removeEventListener("ended",f._endTimers[b._id],!1)},M.addEventListener("ended",f._endTimers[b._id],!1))}catch(R){f._emit("playerror",b._id,R)}};M.src==="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA"&&(M.src=f._src,M.load());var T=window&&window.ejecta||!M.readyState&&t._navigator.isCocoonJS;if(M.readyState>=3||T)V();else{f._playLock=!0,f._state="loading";var S=function(){f._state="loaded",V(),M.removeEventListener(t._canPlayEvent,S,!1)};M.addEventListener(t._canPlayEvent,S,!1),f._clearTimer(b._id)}}return b._id},pause:function(h){var d=this;if(d._state!=="loaded"||d._playLock)return d._queue.push({event:"pause",action:function(){d.pause(h)}}),d;for(var f=d._getSoundIds(h),p=0;p=0?d=parseInt(p[0],10):h=parseFloat(p[0]):p.length>=2&&(h=parseFloat(p[0]),d=parseInt(p[1],10));var m;if(!(h!==void 0&&h>=0&&h<=1))return m=d?f._soundById(d):f._sounds[0],m?m._volume:0;if(f._state!=="loaded"||f._playLock)return f._queue.push({event:"volume",action:function(){f.volume.apply(f,p)}}),f;d===void 0&&(f._volume=h),d=f._getSoundIds(d);for(var g=0;g0?p/y:p),C=Date.now();h._fadeTo=f,h._interval=setInterval(function(){var k=(Date.now()-C)/p;C=Date.now(),w+=v*k,w=Math.round(100*w)/100,w=v<0?Math.max(f,w):Math.min(f,w),b._webAudio?h._volume=w:b.volume(w,h._id,!0),g&&(b._volume=w),(fd&&w>=f)&&(clearInterval(h._interval),h._interval=null,h._fadeTo=null,b.volume(f,h._id),b._emit("fade",h._id))},E)},_stopFade:function(h){var d=this,f=d._soundById(h);return f&&f._interval&&(d._webAudio&&f._node.gain.cancelScheduledValues(t.ctx.currentTime),clearInterval(f._interval),f._interval=null,d.volume(f._fadeTo,h),f._fadeTo=null,d._emit("fade",h)),d},loop:function(){var h,d,f,p=this,m=arguments;if(m.length===0)return p._loop;if(m.length===1){if(typeof m[0]!="boolean")return!!(f=p._soundById(parseInt(m[0],10)))&&f._loop;h=m[0],p._loop=h}else m.length===2&&(h=m[0],d=parseInt(m[1],10));for(var g=p._getSoundIds(d),b=0;b=0?d=parseInt(p[0],10):h=parseFloat(p[0])}else p.length===2&&(h=parseFloat(p[0]),d=parseInt(p[1],10));var b;if(typeof h!="number")return b=f._soundById(d),b?b._rate:f._rate;if(f._state!=="loaded"||f._playLock)return f._queue.push({event:"rate",action:function(){f.rate.apply(f,p)}}),f;d===void 0&&(f._rate=h),d=f._getSoundIds(d);for(var w=0;w=0?d=parseInt(p[0],10):f._sounds.length&&(d=f._sounds[0]._id,h=parseFloat(p[0]))}else p.length===2&&(h=parseFloat(p[0]),d=parseInt(p[1],10));if(d===void 0)return 0;if(typeof h=="number"&&(f._state!=="loaded"||f._playLock))return f._queue.push({event:"seek",action:function(){f.seek.apply(f,p)}}),f;var b=f._soundById(d);if(b){if(!(typeof h=="number"&&h>=0)){if(f._webAudio){var w=f.playing(d)?t.ctx.currentTime-b._playStart:0,v=b._rateSeek?b._rateSeek-b._seek:0;return b._seek+(v+w*Math.abs(b._rate))}return b._node.currentTime}var y=f.playing(d);y&&f.pause(d,!0),b._seek=h,b._ended=!1,f._clearTimer(d),f._webAudio||!b._node||isNaN(b._node.duration)||(b._node.currentTime=h);var E=function(){y&&f.play(d,!0),f._emit("seek",d)};if(y&&!f._webAudio){var C=function(){f._playLock?setTimeout(C,0):E()};setTimeout(C,0)}else E()}return f},playing:function(h){var d=this;if(typeof h=="number"){var f=d._soundById(h);return!!f&&!f._paused}for(var p=0;p=0&&t._howls.splice(p,1);var m=!0;for(f=0;f=0){m=!1;break}return n&&m&&delete n[h._src],t.noAudio=!1,h._state="unloaded",h._sounds=[],h=null,null},on:function(h,d,f,p){var m=this,g=m["_on"+h];return typeof d=="function"&&g.push(p?{id:f,fn:d,once:p}:{id:f,fn:d}),m},off:function(h,d,f){var p=this,m=p["_on"+h],g=0;if(typeof d=="number"&&(f=d,d=null),d||f)for(g=0;g=0;g--)m[g].id&&m[g].id!==d&&h!=="load"||(setTimeout(function(b){b.call(this,d,f)}.bind(p,m[g].fn),0),m[g].once&&p.off(h,m[g].fn,m[g].id));return p._loadQueue(h),p},_loadQueue:function(h){var d=this;if(d._queue.length>0){var f=d._queue[0];f.event===h&&(d._queue.shift(),d._loadQueue()),h||f.action()}return d},_ended:function(h){var d=this,f=h._sprite;if(!d._webAudio&&h._node&&!h._node.paused&&!h._node.ended&&h._node.currentTime=0;p--){if(f<=d)return;h._sounds[p]._ended&&(h._webAudio&&h._sounds[p]._node&&h._sounds[p]._node.disconnect(0),h._sounds.splice(p,1),f--)}}},_getSoundIds:function(h){var d=this;if(h===void 0){for(var f=[],p=0;p=0;if(!h.bufferSource)return d;if(t._scratchBuffer&&h.bufferSource&&(h.bufferSource.onended=null,h.bufferSource.disconnect(0),f))try{h.bufferSource.buffer=t._scratchBuffer}catch{}return h.bufferSource=null,d},_clearSound:function(h){/MSIE |Trident\//.test(t._navigator&&t._navigator.userAgent)||(h.src="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA")}};var s=function(h){this._parent=h,this.init()};s.prototype={init:function(){var h=this,d=h._parent;return h._muted=d._muted,h._loop=d._loop,h._volume=d._volume,h._rate=d._rate,h._seek=0,h._paused=!0,h._ended=!0,h._sprite="__default",h._id=++t._counter,d._sounds.push(h),h.create(),h},create:function(){var h=this,d=h._parent,f=t._muted||h._muted||h._parent._muted?0:h._volume;return d._webAudio?(h._node=t.ctx.createGain===void 0?t.ctx.createGainNode():t.ctx.createGain(),h._node.gain.setValueAtTime(f,t.ctx.currentTime),h._node.paused=!0,h._node.connect(t.masterGain)):t.noAudio||(h._node=t._obtainHtml5Audio(),h._errorFn=h._errorListener.bind(h),h._node.addEventListener("error",h._errorFn,!1),h._loadFn=h._loadListener.bind(h),h._node.addEventListener(t._canPlayEvent,h._loadFn,!1),h._endFn=h._endListener.bind(h),h._node.addEventListener("ended",h._endFn,!1),h._node.src=d._src,h._node.preload=d._preload===!0?"auto":d._preload,h._node.volume=f*t.volume(),h._node.load()),h},reset:function(){var h=this,d=h._parent;return h._muted=d._muted,h._loop=d._loop,h._volume=d._volume,h._rate=d._rate,h._seek=0,h._rateSeek=0,h._paused=!0,h._ended=!0,h._sprite="__default",h._id=++t._counter,h},_errorListener:function(){var h=this;h._parent._emit("loaderror",h._id,h._node.error?h._node.error.code:0),h._node.removeEventListener("error",h._errorFn,!1)},_loadListener:function(){var h=this,d=h._parent;d._duration=Math.ceil(10*h._node.duration)/10,Object.keys(d._sprite).length===0&&(d._sprite={__default:[0,1e3*d._duration]}),d._state!=="loaded"&&(d._state="loaded",d._emit("load"),d._loadQueue()),h._node.removeEventListener(t._canPlayEvent,h._loadFn,!1)},_endListener:function(){var h=this,d=h._parent;d._duration===1/0&&(d._duration=Math.ceil(10*h._node.duration)/10,d._sprite.__default[1]===1/0&&(d._sprite.__default[1]=1e3*d._duration),d._ended(h)),h._node.removeEventListener("ended",h._endFn,!1)}};var n={},a=function(h){var d=h._src;if(n[d])return h._duration=n[d].duration,void c(h);if(/^data:[^;]+;base64,/.test(d)){for(var f=atob(d.split(",")[1]),p=new Uint8Array(f.length),m=0;m0?(n[d._src]=m,c(d,m)):f()};typeof Promise<"u"&&t.ctx.decodeAudioData.length===1?t.ctx.decodeAudioData(h).then(p).catch(f):t.ctx.decodeAudioData(h,p,f)},c=function(h,d){d&&!h._duration&&(h._duration=d.duration),Object.keys(h._sprite).length===0&&(h._sprite={__default:[0,1e3*h._duration]}),h._state!=="loaded"&&(h._state="loaded",h._emit("load"),h._loadQueue())},u=function(){if(t.usingWebAudio){try{typeof AudioContext<"u"?t.ctx=new AudioContext:typeof webkitAudioContext<"u"?t.ctx=new webkitAudioContext:t.usingWebAudio=!1}catch{t.usingWebAudio=!1}t.ctx||(t.usingWebAudio=!1);var h=/iP(hone|od|ad)/.test(t._navigator&&t._navigator.platform),d=t._navigator&&t._navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/),f=d?parseInt(d[1],10):null;if(h&&f&&f<9){var p=/safari/.test(t._navigator&&t._navigator.userAgent.toLowerCase());t._navigator&&!p&&(t.usingWebAudio=!1)}t.usingWebAudio&&(t.masterGain=t.ctx.createGain===void 0?t.ctx.createGainNode():t.ctx.createGain(),t.masterGain.gain.setValueAtTime(t._muted?0:t._volume,t.ctx.currentTime),t.masterGain.connect(t.ctx.destination)),t._setup()}};r.Howler=t,r.Howl=i,typeof Yt<"u"?(Yt.HowlerGlobal=e,Yt.Howler=t,Yt.Howl=i,Yt.Sound=s):typeof window<"u"&&(window.HowlerGlobal=e,window.Howler=t,window.Howl=i,window.Sound=s)})()})(Fl);const R2="data:audio/wav;base64,UklGRkYEAABXQVZFZm10IBAAAAABAAEARKwAAIhYAQACABAATElTVBoAAABJTkZPSVNGVA0AAABMYXZmNjAuMy4xMDAAAGRhdGEABAAAAIDfjHvG/eK+8VP5Bvyg/v3+Dv8O/1v+8P59B0sXqgoxBa4BQgEEAIMATAAyAE4AnwA8APf/oH+tf3J/6F74LWgXiQpfBbABbAGy/+b/4f+X/w+AAIAKjAzF7uIk8Ln4efsB/jf+Of66/kv+Ev84/6sBbf+eAMn/IADgACQA3gBXABMBrP9/ACIAvgraEnAIfwVbAdYCxf5zAVr/iQBb/6cAMP9KAKtP4H9VaPUyfhjgC0EFigNcAL4AqP/qABoA5wAc/T7yE/iK/CX94v+A/a3+4P7n/eX+cv0b/w7/v/4AgGK2Qdso7ub2vfsQ/ef96/6b/u//+/1UANb9sIAAgJq/3N4+8MX37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ca5846.wav",F2="/smeditor/assets/mine-b973f34e.wav",rh=[".aac",".mid",".midi",".mp3",".oga",".ogg",".opus",".wav",".webm",".weba",".flac",".aiff"],Ts=[".bmp",".gif",".jpeg",".jpg",".png",".tif",".tiff",".webp"],wd=["Hold","Roll"];function bb(r){return!wd.includes(r.type)}function Be(r){return wd.includes(r.type)}var di="INUMBER",Kn="IOP1",Zn="IOP2",Jn="IOP3",Br="IVAR",Ws="IVARNAME",On="IFUNCALL",sh="IFUNDEF",Jt="IEXPR",xd="IEXPREVAL",js="IMEMBER",nh="IENDSTATEMENT",Nn="IARRAY";function je(r,e){this.type=r,this.value=e??0}je.prototype.toString=function(){switch(this.type){case di:case Kn:case Zn:case Jn:case Br:case Ws:case nh:return this.value;case On:return"CALL "+this.value;case sh:return"DEF "+this.value;case Nn:return"ARRAY "+this.value;case js:return"."+this.value;default:return"Invalid Instruction"}};function ah(r){return new je(Kn,r)}function Fr(r){return new je(Zn,r)}function yb(r){return new je(Jn,r)}function Lu(r,e,t,i,s){for(var n=[],a=[],o,l,c,u,h=0;h1)l=n.pop(),o=n.pop(),u=t[d.value],d=new je(di,u(o.value,l.value)),n.push(d);else if(f===Jn&&n.length>2)c=n.pop(),l=n.pop(),o=n.pop(),d.value==="?"?n.push(o.value?l.value:c.value):(u=i[d.value],d=new je(di,u(o.value,l.value,c.value)),n.push(d));else if(f===Kn&&n.length>0)o=n.pop(),u=e[d.value],d=new je(di,u(o.value)),n.push(d);else if(f===Jt){for(;n.length>0;)a.push(n.shift());a.push(new je(Jt,Lu(d.value,e,t,i,s)))}else if(f===js&&n.length>0)o=n.pop(),n.push(new je(di,o.value[d.value]));else{for(;n.length>0;)a.push(n.shift());a.push(d)}}for(;n.length>0;)a.push(n.shift());return a}function vb(r,e,t){for(var i=[],s=0;s0;)l.unshift(vr(i.pop(),t));if(o=i.pop(),o.apply&&o.call)i.push(o.apply(void 0,l));else throw new Error(o+" is not a function")}else if(f===sh)i.push(function(){for(var m=i.pop(),g=[],b=d.value;b-- >0;)g.unshift(i.pop());var w=i.pop(),v=function(){for(var y=Object.assign({},t),E=0,C=g.length;E0;)l.unshift(i.pop());i.push(l)}else throw new Error("invalid Expression")}if(i.length>1)throw new Error("invalid Expression (parity)");return i[0]===0?0:vr(i[0],t)}function L2(r,e,t){return _d(r)?r:{type:xd,value:function(i){return Ds(r.value,e,i)}}}function _d(r){return r&&r.type===xd}function vr(r,e){return _d(r)?r.value(e):r}function Ed(r,e){for(var t=[],i,s,n,a,o,l,c=0;c0;)o.unshift(t.pop());a=t.pop(),t.push(a+"("+o.join(", ")+")")}else if(h===sh){for(s=t.pop(),l=u.value,o=[];l-- >0;)o.unshift(t.pop());i=t.pop(),e?t.push("("+i+" = function("+o.join(", ")+") { return "+s+" })"):t.push("("+i+"("+o.join(", ")+") = "+s+")")}else if(h===js)i=t.pop(),t.push(i+"."+u.value);else if(h===Nn){for(l=u.value,o=[];l-- >0;)o.unshift(t.pop());t.push("["+o.join(", ")+"]")}else if(h===Jt)t.push("("+Ed(u.value,e)+")");else if(h!==nh)throw new Error("invalid Expression")}return t.length>1&&(e?t=[t.join(",")]:t=[t.join(";")]),String(t[0])}function Kp(r){return typeof r=="string"?JSON.stringify(r).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029"):r}function yn(r,e){for(var t=0;t=this.expression.length)return this.newToken(Oa,"EOF");if(this.isWhitespace()||this.isComment())return this.next();if(this.isRadixInteger()||this.isNumber()||this.isOperator()||this.isString()||this.isParen()||this.isBracket()||this.isComma()||this.isSemicolon()||this.isNamedOp()||this.isConst()||this.isName())return this.current;this.parseError('Unknown character "'+this.expression.charAt(this.pos)+'"')};wt.prototype.isString=function(){var r=!1,e=this.pos,t=this.expression.charAt(e);if(t==="'"||t==='"')for(var i=this.expression.indexOf(t,e+1);i>=0&&this.pos"9")))break}if(e>r){var i=this.expression.substring(r,e);if(i in this.consts)return this.current=this.newToken(oh,this.consts[i]),this.pos+=i.length,!0}return!1};wt.prototype.isNamedOp=function(){for(var r=this.pos,e=r;e"9")))break}if(e>r){var i=this.expression.substring(r,e);if(this.isOperatorEnabled(i)&&(i in this.binaryOps||i in this.unaryOps||i in this.ternaryOps))return this.current=this.newToken(it,i),this.pos+=i.length,!0}return!1};wt.prototype.isName=function(){for(var r=this.pos,e=r,t=!1;e"9"))break}else t=!0}if(t){var s=this.expression.substring(r,e);return this.current=this.newToken(Td,s),this.pos+=s.length,!0}return!1};wt.prototype.isWhitespace=function(){for(var r=!1,e=this.expression.charAt(this.pos);(e===" "||e===" "||e===` `||e==="\r")&&(r=!0,this.pos++,!(this.pos>=this.expression.length));)e=this.expression.charAt(this.pos);return r};var O2=/^[0-9a-f]{4}$/i;wt.prototype.unescape=function(r){var e=r.indexOf("\\");if(e<0)return r;for(var t=r.substring(0,e);e>=0;){var i=r.charAt(++e);switch(i){case"'":t+="'";break;case'"':t+='"';break;case"\\":t+="\\";break;case"/":t+="/";break;case"b":t+="\b";break;case"f":t+="\f";break;case"n":t+=` `;break;case"r":t+="\r";break;case"t":t+=" ";break;case"u":var s=r.substring(e+1,e+5);O2.test(s)||this.parseError("Illegal escape sequence: \\u"+s),t+=String.fromCharCode(parseInt(s,16)),e+=4;break;default:throw this.parseError('Illegal escape sequence: "\\'+i+'"')}++e;var n=r.indexOf("\\",e);t+=r.substring(e,n<0?r.length:n),e=n}return t};wt.prototype.isComment=function(){var r=this.expression.charAt(this.pos);return r==="/"&&this.expression.charAt(this.pos+1)==="*"?(this.pos=this.expression.indexOf("*/",this.pos)+2,this.pos===1&&(this.pos=this.expression.length),!0):!1};wt.prototype.isRadixInteger=function(){var r=this.pos;if(r>=this.expression.length-2||this.expression.charAt(r)!=="0")return!1;++r;var e,t;if(this.expression.charAt(r)==="x")e=16,t=/^[0-9a-f]$/i,++r;else if(this.expression.charAt(r)==="b")e=2,t=/^[01]$/i,++r;else return!1;for(var i=!1,s=r;r="0"&&a<="9"||!s&&a===".");)a==="."?s=!0:n=!0,e++,r=n;if(r&&(i=e),a==="e"||a==="E"){e++;for(var o=!0,l=!1;e="0"&&a<="9")l=!0,o=!1;else break;e++}l||(e=i)}return r?(this.current=this.newToken(oh,parseFloat(this.expression.substring(t,e))),this.pos=e):this.pos=i,r};wt.prototype.isOperator=function(){var r=this.pos,e=this.expression.charAt(this.pos);if(e==="+"||e==="-"||e==="*"||e==="/"||e==="%"||e==="^"||e==="?"||e===":"||e===".")this.current=this.newToken(it,e);else if(e==="∙"||e==="•")this.current=this.newToken(it,"*");else if(e===">")this.expression.charAt(this.pos+1)==="="?(this.current=this.newToken(it,">="),this.pos++):this.current=this.newToken(it,">");else if(e==="<")this.expression.charAt(this.pos+1)==="="?(this.current=this.newToken(it,"<="),this.pos++):this.current=this.newToken(it,"<");else if(e==="|")if(this.expression.charAt(this.pos+1)==="|")this.current=this.newToken(it,"||"),this.pos++;else return!1;else if(e==="=")this.expression.charAt(this.pos+1)==="="?(this.current=this.newToken(it,"=="),this.pos++):this.current=this.newToken(it,e);else if(e==="!")this.expression.charAt(this.pos+1)==="="?(this.current=this.newToken(it,"!="),this.pos++):this.current=this.newToken(it,e);else return!1;return this.pos++,this.isOperatorEnabled(this.current.value)?!0:(this.pos=r,!1)};wt.prototype.isOperatorEnabled=function(r){return this.parser.isOperatorEnabled(r)};wt.prototype.getCoordinates=function(){var r=0,e,t=-1;do r++,e=this.pos-t,t=this.expression.indexOf(` `,t+1);while(t>=0&&t"u"?!0:Array.isArray(e)?yn(e,r.value):typeof e=="function"?e(r):r.value===e};ot.prototype.save=function(){this.savedCurrent=this.current,this.savedNextToken=this.nextToken,this.tokens.save()};ot.prototype.restore=function(){this.tokens.restore(),this.current=this.savedCurrent,this.nextToken=this.savedNextToken};ot.prototype.accept=function(r,e){return this.nextToken.type===r&&this.tokenMatches(this.nextToken,e)?(this.next(),!0):!1};ot.prototype.expect=function(r,e){if(!this.accept(r,e)){var t=this.tokens.getCoordinates();throw new Error("parse error ["+t.line+":"+t.column+"]: Expected "+(e||r))}};ot.prototype.parseAtom=function(r){var e=this.tokens.unaryOps;function t(s){return s.value in e}if(this.accept(Td)||this.accept(it,t))r.push(new je(Br,this.current.value));else if(this.accept(oh))r.push(new je(di,this.current.value));else if(this.accept(wb))r.push(new je(di,this.current.value));else if(this.accept(Rr,"("))this.parseExpression(r),this.expect(Rr,")");else if(this.accept(Un,"["))if(this.accept(Un,"]"))r.push(new je(Nn,0));else{var i=this.parseArrayList(r);r.push(new je(Nn,i))}else throw new Error("unexpected "+this.nextToken)};ot.prototype.parseExpression=function(r){var e=[];this.parseUntilEndStatement(r,e)||(this.parseVariableAssignmentExpression(e),!this.parseUntilEndStatement(r,e)&&this.pushExpression(r,e))};ot.prototype.pushExpression=function(r,e){for(var t=0,i=e.length;t=",">","in"];ot.prototype.parseComparison=function(r){for(this.parseAddSub(r);this.accept(it,N2);){var e=this.current;this.parseAddSub(r),r.push(Fr(e.value))}};var U2=["+","-","||"];ot.prototype.parseAddSub=function(r){for(this.parseTerm(r);this.accept(it,U2);){var e=this.current;this.parseTerm(r),r.push(Fr(e.value))}};var H2=["*","/","%"];ot.prototype.parseTerm=function(r){for(this.parseFactor(r);this.accept(it,H2);){var e=this.current;this.parseFactor(r),r.push(Fr(e.value))}};ot.prototype.parseFactor=function(r){var e=this.tokens.unaryOps;function t(s){return s.value in e}if(this.save(),this.accept(it,t)){if(this.current.value!=="-"&&this.current.value!=="+"){if(this.nextToken.type===Rr&&this.nextToken.value==="("){this.restore(),this.parseExponential(r);return}else if(this.nextToken.type===Cd||this.nextToken.type===lh||this.nextToken.type===Oa||this.nextToken.type===Rr&&this.nextToken.value===")"){this.restore(),this.parseAtom(r);return}}var i=this.current;this.parseFactor(r),r.push(ah(i.value))}else this.parseExponential(r)};ot.prototype.parseExponential=function(r){for(this.parsePostfixExpression(r);this.accept(it,"^");)this.parseFactor(r),r.push(Fr("^"))};ot.prototype.parsePostfixExpression=function(r){for(this.parseFunctionCall(r);this.accept(it,"!");)r.push(ah("!"))};ot.prototype.parseFunctionCall=function(r){var e=this.tokens.unaryOps;function t(n){return n.value in e}if(this.accept(it,t)){var i=this.current;this.parseAtom(r),r.push(ah(i.value))}else for(this.parseMemberExpression(r);this.accept(Rr,"(");)if(this.accept(Rr,")"))r.push(new je(On,0));else{var s=this.parseArgumentList(r);r.push(new je(On,s))}};ot.prototype.parseArgumentList=function(r){for(var e=0;!this.accept(Rr,")");)for(this.parseExpression(r),++e;this.accept(lh);)this.parseExpression(r),++e;return e};ot.prototype.parseMemberExpression=function(r){for(this.parseAtom(r);this.accept(it,".")||this.accept(Un,"[");){var e=this.current;if(e.value==="."){if(!this.allowMemberAccess)throw new Error('unexpected ".", member access is not permitted');this.expect(Td),r.push(new je(js,this.current.value))}else if(e.value==="["){if(!this.tokens.isOperatorEnabled("["))throw new Error('unexpected "[]", arrays are disabled');this.parseExpression(r),this.expect(Un,"]"),r.push(Fr("["))}else throw new Error("unexpected symbol: "+e.value)}};function G2(r,e){return Number(r)+Number(e)}function V2(r,e){return r-e}function z2(r,e){return r*e}function W2(r,e){return r/e}function $2(r,e){return r%e}function j2(r,e){return Array.isArray(r)&&Array.isArray(e)?r.concat(e):""+r+e}function q2(r,e){return r===e}function Y2(r,e){return r!==e}function X2(r,e){return r>e}function K2(r,e){return r=e}function J2(r,e){return r<=e}function Q2(r,e){return!!(r&&e)}function eC(r,e){return!!(r||e)}function tC(r,e){return yn(e,r)}function iC(r){return(Math.exp(r)-Math.exp(-r))/2}function rC(r){return(Math.exp(r)+Math.exp(-r))/2}function sC(r){return r===1/0?1:r===-1/0?-1:(Math.exp(r)-Math.exp(-r))/(Math.exp(r)+Math.exp(-r))}function nC(r){return r===-1/0?r:Math.log(r+Math.sqrt(r*r+1))}function aC(r){return Math.log(r+Math.sqrt(r*r-1))}function oC(r){return Math.log((1+r)/(1-r))/2}function Zp(r){return Math.log(r)*Math.LOG10E}function lC(r){return-r}function hC(r){return!r}function cC(r){return r<0?Math.ceil(r):Math.floor(r)}function uC(r){return Math.random()*(r||1)}function Jp(r){return Sd(r+1)}function dC(r){return isFinite(r)&&r===Math.round(r)}var fC=4.7421875,cc=[.9999999999999971,57.15623566586292,-59.59796035547549,14.136097974741746,-.4919138160976202,3399464998481189e-20,4652362892704858e-20,-9837447530487956e-20,.0001580887032249125,-.00021026444172410488,.00021743961811521265,-.0001643181065367639,8441822398385275e-20,-26190838401581408e-21,36899182659531625e-22];function Sd(r){var e,t;if(dC(r)){if(r<=0)return isFinite(r)?1/0:NaN;if(r>171)return 1/0;for(var i=r-2,s=r-1;i>1;)s*=i,i--;return s===0&&(s=1),s}if(r<.5)return Math.PI/(Math.sin(Math.PI*r)*Sd(1-r));if(r>=171.35)return 1/0;if(r>85){var n=r*r,a=n*r,o=a*r,l=o*r;return Math.sqrt(2*Math.PI/r)*Math.pow(r/Math.E,r)*(1+1/(12*r)+1/(288*n)-139/(51840*a)-571/(2488320*o)+163879/(209018880*l)+5246819/(75246796800*l*r))}--r,t=cc[0];for(var c=1;c0?(s=i/e,r+=s*s):r+=i}return e===1/0?1/0:e*Math.sqrt(r)}function em(r,e,t){return r?e:t}function mC(r,e){return typeof e>"u"||+e==0?Math.round(r):(r=+r,e=-+e,isNaN(r)||!(typeof e=="number"&&e%1===0)?NaN:(r=r.toString().split("e"),r=Math.round(+(r[0]+"e"+(r[1]?+r[1]-e:-e))),r=r.toString().split("e"),+(r[0]+"e"+(r[1]?+r[1]+e:e))))}function gC(r,e,t){return t&&(t[r]=e),e}function bC(r,e){return r[e|0]}function yC(r){return arguments.length===1&&Array.isArray(r)?Math.max.apply(Math,r):Math.max.apply(Math,arguments)}function vC(r){return arguments.length===1&&Array.isArray(r)?Math.min.apply(Math,r):Math.min.apply(Math,arguments)}function wC(r,e){if(typeof r!="function")throw new Error("First argument to map is not a function");if(!Array.isArray(e))throw new Error("Second argument to map is not an array");return e.map(function(t,i){return r(t,i)})}function xC(r,e,t){if(typeof r!="function")throw new Error("First argument to fold is not a function");if(!Array.isArray(t))throw new Error("Second argument to fold is not an array");return t.reduce(function(i,s,n){return r(i,s,n)},e)}function _C(r,e){if(typeof r!="function")throw new Error("First argument to filter is not a function");if(!Array.isArray(e))throw new Error("Second argument to filter is not an array");return e.filter(function(t,i){return r(t,i)})}function EC(r,e){if(!(Array.isArray(e)||typeof e=="string"))throw new Error("Second argument to indexOf is not a string or array");return e.indexOf(r)}function AC(r,e){if(!Array.isArray(e))throw new Error("Second argument to join is not an array");return e.join(r)}function TC(r){return(r>0)-(r<0)||+r}var tm=1/3;function CC(r){return r<0?-Math.pow(-r,tm):Math.pow(r,tm)}function SC(r){return Math.exp(r)-1}function MC(r){return Math.log(1+r)}function kC(r){return Math.log(r)/Math.LN2}function Lr(r){this.options=r||{},this.unaryOps={sin:Math.sin,cos:Math.cos,tan:Math.tan,asin:Math.asin,acos:Math.acos,atan:Math.atan,sinh:Math.sinh||iC,cosh:Math.cosh||rC,tanh:Math.tanh||sC,asinh:Math.asinh||nC,acosh:Math.acosh||aC,atanh:Math.atanh||oC,sqrt:Math.sqrt,cbrt:Math.cbrt||CC,log:Math.log,log2:Math.log2||kC,ln:Math.log,lg:Math.log10||Zp,log10:Math.log10||Zp,expm1:Math.expm1||SC,log1p:Math.log1p||MC,abs:Math.abs,ceil:Math.ceil,floor:Math.floor,round:Math.round,trunc:Math.trunc||cC,"-":lC,"+":Number,exp:Math.exp,not:hC,length:pC,"!":Jp,sign:Math.sign||TC},this.binaryOps={"+":G2,"-":V2,"*":z2,"/":W2,"%":$2,"^":Math.pow,"||":j2,"==":q2,"!=":Y2,">":X2,"<":K2,">=":Z2,"<=":J2,and:Q2,or:eC,in:tC,"=":gC,"[":bC},this.ternaryOps={"?":em},this.functions={random:uC,fac:Jp,min:vC,max:yC,hypot:Math.hypot||Qp,pyt:Math.hypot||Qp,pow:Math.pow,atan2:Math.atan2,if:em,gamma:Sd,roundTo:mC,map:wC,fold:xC,filter:_C,indexOf:EC,join:AC},this.consts={E:Math.E,PI:Math.PI,true:!0,false:!1}}Lr.prototype.parse=function(r){var e=[],t=new ot(this,new wt(this,r),{allowMemberAccess:this.options.allowMemberAccess});return t.parseExpression(e),t.expect(Oa,"EOF"),new Fi(e,this)};Lr.prototype.evaluate=function(r,e){return this.parse(r).evaluate(e)};var _b=new Lr;Lr.parse=function(r){return _b.parse(r)};Lr.evaluate=function(r,e){return _b.parse(r).evaluate(e)};var im={"+":"add","-":"subtract","*":"multiply","/":"divide","%":"remainder","^":"power","!":"factorial","<":"comparison",">":"comparison","<=":"comparison",">=":"comparison","==":"comparison","!=":"comparison","||":"concatenate",and:"logical",or:"logical",not:"logical","?":"conditional",":":"conditional","=":"assignment","[":"array","()=":"fndef"};function DC(r){return im.hasOwnProperty(r)?im[r]:r}Lr.prototype.isOperatorEnabled=function(r){var e=DC(r),t=this.options.operators||{};return!(e in t)||!!t[e]};const _r=[1,1/2,1/3,1/4,1/6,1/8,1/12,1/16,1/24,1/48],Gi=["4th","8th","12th","16th","24th","32nd","48th","64th","96th","192nd"],rm=[4,8,12,16,24,32,48,64,96,192];function IC(r){for(let e=0;e<_r.length;e++)if(Math.abs(r-Math.round(r/_r[e])*_r[e])<.01)return e;return 9}function lr(r){return r.beat+(Be(r)?r.hold:0)}function Ou(r){return 4/_r[IC(r)]}function Nt(r,e,t){if(t=t??(n=>n),r.length==0)return-1;if(e>=t(r[r.length-1])){let n=r.length-1;for(;n>0&&t(r[n-1])==e;)n--;return n}let i=0,s=r.length;for(;i<=s&&i>>1;if(t(r[n])==e){for(;n>0&&t(r[n-1])==e;)n--;return n}t(r[n])e&&(s=n-1)}return Math.max(0,s)}function Uo(r,e,t){if(t=t??(s=>s),r.length==0)return-1;let i=Nt(r,e,t);for(;r[i-1]&&t(r[i-1])==e;)i--;return i}function sm(r,e){return!(Object.keys(r).some(t=>r[t]!=e[t])||Object.keys(e).some(t=>r[t]!=e[t]))}function Na(r){try{return Lr.evaluate(r)}catch{return null}}function hr(r,e){let t=r.length;if(r.length!=0)for(;t--;)e(r[t],t)&&r[t].destroy()}function Nu(r){return r==""?"":r.slice(0,1).toUpperCase()+r.slice(1).toLowerCase()}function Uu(r){return r.button==2||r.getModifierState("Control")&&Ii}function HD(){try{return window.self!==window.top}catch{return!0}}function GD(r,e,t,i,s){const n=[];for(let a=0;aPromise.resolve().then(()=>pb),void 0);return new Promise((i,s)=>{e.addEventListener("change",()=>{t(e.files).then(i).catch(s),document.body.removeChild(e)}),e.click()})}const Mm=globalThis.showOpenFilePicker;async function ey(r={}){if(Mm&&!r._preferPolyfill)return Mm(r);const e=document.createElement("input");e.type="file",e.multiple=!!r.multiple,e.accept=(r.accepts||[]).map(i=>[...(i.extensions||[]).map(s=>"."+s),...i.mimeTypes||[]]).flat().join(","),e.style.position="fixed",e.style.top="-100000px",e.style.left="-100000px",document.body.appendChild(e);const{makeFileHandlesFromFileList:t}=await Qe(()=>Promise.resolve().then(()=>pb),void 0);return new Promise((i,s)=>{e.addEventListener("change",()=>{t(e.files).then(i).catch(s),document.body.removeChild(e)}),e.click()})}const km=globalThis.showSaveFilePicker;async function M3(r={}){if(km&&!r._preferPolyfill)return km(r);const{FileSystemFileHandle:e}=await Qe(()=>Promise.resolve().then(()=>ty),void 0),{FileHandle:t}=await Qe(()=>import("./downloader-42744bfb.js"),[]);return new e(new t(r.suggestedName))}const tn=Symbol("adapter");let Ld=class{constructor(e){this.kind=e.kind,this.name=e.name,this[tn]=e}get isFile(){return this.kind==="file"}get isDirectory(){return this.kind==="directory"}async queryPermission(e={mode:"read"}){const t=this[tn];if(t.queryPermission)return t.queryPermission(e);if(e.mode==="read")return"granted";if(e.mode==="readwrite")return t.writable?"granted":"denied";throw new TypeError(`Mode ${e.mode} must be 'read' or 'readwrite'`)}async requestPermission(e={mode:"read"}){const t=this[tn];if(t.requestPermission)return t.requestPermission(e);if(e.mode==="read")return"granted";if(e.mode==="readwrite")return t.writable?"granted":"denied";throw new TypeError(`Mode ${e.mode} must be 'read' or 'readwrite'`)}async isSameEntry(e){return this===e?!0:this.kind!==e.kind||!e[tn]?!1:await this[tn].isSameEntry(e[tn])}};Object.defineProperty(Ld.prototype,Symbol.toStringTag,{value:"FileSystemHandle",writable:!1,enumerable:!1,configurable:!0});const yc=Symbol("adapter");let zn=class extends Ld{constructor(e){super(e),this.kind="file",this[yc]=e}async createWritable(e={}){const{FileSystemWritableFileStream:t}=await Qe(()=>import("./FileSystemWritableFileStream-e4c13ad9.js"),["FileSystemWritableFileStream-e4c13ad9.js","web-streams-ponyfill-4a0f4950.js"]);return new t(await this[yc].createWritable(e))}async getFile(){return this[yc].getFile()}};Object.defineProperty(zn.prototype,Symbol.toStringTag,{value:"FileSystemFileHandle",writable:!1,enumerable:!1,configurable:!0});Object.defineProperties(zn.prototype,{createWritable:{enumerable:!0},getFile:{enumerable:!0}});const ty=Object.freeze(Object.defineProperty({__proto__:null,FileSystemFileHandle:zn,default:zn},Symbol.toStringTag,{value:"Module"})),rn=Symbol("adapter");class ls extends Ld{constructor(e){super(e),this.kind="directory",this[rn]=e}async getDirectoryHandle(e,t={}){if(e==="")throw new TypeError("Name can't be an empty string.");if(e==="."||e===".."||e.includes("/"))throw new TypeError("Name contains invalid characters.");return new ls(await this[rn].getDirectoryHandle(e,t))}getDirectory(e,t={}){return this.getDirectoryHandle(e,t)}async*entries(){for await(const[e,t]of this[rn].entries())yield[t.name,t.kind==="file"?new zn(t):new ls(t)]}async*getEntries(){return this.entries()}async*keys(){for await(const[e]of this[rn].entries())yield e}async*values(){for await(const[e,t]of this.entries())yield t}async getFileHandle(e,t={}){if(e==="")throw new TypeError("Name can't be an empty string.");if(e==="."||e===".."||e.includes("/"))throw new TypeError("Name contains invalid characters.");return t.create=!!t.create,new zn(await this[rn].getFileHandle(e,t))}getFile(e,t={}){return this.getFileHandle(e,t)}async removeEntry(e,t={}){if(e==="")throw new TypeError("Name can't be an empty string.");if(e==="."||e===".."||e.includes("/"))throw new TypeError("Name contains invalid characters.");return t.recursive=!!t.recursive,this[rn].removeEntry(e,t)}async resolve(e){if(await e.isSameEntry(this))return[];const t=[{handle:this,path:[]}];for(;t.length;){let{handle:i,path:s}=t.pop();for await(const n of i.values()){if(await n.isSameEntry(e))return[...s,n.name];n.kind==="directory"&&t.push({handle:n,path:[...s,n.name]})}}return null}[Symbol.asyncIterator](){return this.entries()}}Object.defineProperty(ls.prototype,Symbol.toStringTag,{value:"FileSystemDirectoryHandle",writable:!1,enumerable:!1,configurable:!0});Object.defineProperties(ls.prototype,{getDirectoryHandle:{enumerable:!0},entries:{enumerable:!0},getFileHandle:{enumerable:!0},removeEntry:{enumerable:!0}});const k3=Object.freeze(Object.defineProperty({__proto__:null,FileSystemDirectoryHandle:ls,default:ls},Symbol.toStringTag,{value:"Module"}));async function Dm(r,e={}){var t,i,s,n;if(!r){if(!(!((t=globalThis.navigator)===null||t===void 0)&&t.storage)&&((i=globalThis.location)===null||i===void 0?void 0:i.protocol)==="http:")throw new Error("Native getDirectory not supported in HTTP context. Please use HTTPS instead or provide an adapter.");if(!(!((n=(s=globalThis.navigator)===null||s===void 0?void 0:s.storage)===null||n===void 0)&&n.getDirectory))throw new Error("Native StorageManager.getDirectory() is not supported in current environment. Please provide an adapter instead.");return globalThis.navigator.storage.getDirectory()}const a=await r,o=typeof a=="function"?await a(e):await a.default(e);return new ls(o)}var vc,wc;const D3={adapter:{cache:!!(globalThis.CacheStorage&&globalThis.caches instanceof CacheStorage),native:typeof((wc=(vc=globalThis.navigator)===null||vc===void 0?void 0:vc.storage)===null||wc===void 0?void 0:wc.getDirectory)=="function",sandbox:typeof window<"u"&&typeof window.webkitRequestFileSystem=="function"}},Im=r=>typeof r=="object"&&r!=null&&r.nodeType===1,Pm=(r,e)=>(!e||r!=="hidden")&&r!=="visible"&&r!=="clip",xc=(r,e)=>{if(r.clientHeight{const s=(n=>{if(!n.ownerDocument||!n.ownerDocument.defaultView)return null;try{return n.ownerDocument.defaultView.frameElement}catch{return null}})(i);return!!s&&(s.clientHeightne||n>r&&a=e&&o>=t?n-r-i:a>e&&ot?a-e+s:0,I3=r=>{const e=r.parentElement;return e??(r.getRootNode().host||null)},Bm=(r,e)=>{var t,i,s,n;if(typeof document>"u")return[];const{scrollMode:a,block:o,inline:l,boundary:c,skipOverflowHiddenElements:u}=e,h=typeof c=="function"?c:q=>q!==c;if(!Im(r))throw new TypeError("Invalid target");const d=document.scrollingElement||document.documentElement,f=[];let p=r;for(;Im(p)&&h(p);){if(p=I3(p),p===d){f.push(p);break}p!=null&&p===document.body&&xc(p)&&!xc(document.documentElement)||p!=null&&xc(p,u)&&f.push(p)}const m=(i=(t=window.visualViewport)==null?void 0:t.width)!=null?i:innerWidth,g=(n=(s=window.visualViewport)==null?void 0:s.height)!=null?n:innerHeight,{scrollX:b,scrollY:w}=window,{height:v,width:y,top:E,right:C,bottom:k,left:B}=r.getBoundingClientRect(),{top:M,right:U,bottom:V,left:T}=(q=>{const F=window.getComputedStyle(q);return{top:parseFloat(F.scrollMarginTop)||0,right:parseFloat(F.scrollMarginRight)||0,bottom:parseFloat(F.scrollMarginBottom)||0,left:parseFloat(F.scrollMarginLeft)||0}})(r);let S=o==="start"||o==="nearest"?E-M:o==="end"?k+V:E+v/2-M+V,_=l==="center"?B+y/2-T+U:l==="end"?C+U:B-T;const R=[];for(let q=0;q=0&&B>=0&&k<=g&&C<=m&&E>=z&&k<=N&&B>=ie&&C<=O)return R;const Q=getComputedStyle(F),Z=parseInt(Q.borderLeftWidth,10),be=parseInt(Q.borderTopWidth,10),Se=parseInt(Q.borderRightWidth,10),ce=parseInt(Q.borderBottomWidth,10);let pe=0,xe=0;const le="offsetWidth"in F?F.offsetWidth-F.clientWidth-Z-Se:0,fe="offsetHeight"in F?F.offsetHeight-F.clientHeight-be-ce:0,we="offsetWidth"in F?F.offsetWidth===0?0:W/F.offsetWidth:0,A="offsetHeight"in F?F.offsetHeight===0?0:L/F.offsetHeight:0;if(d===F)pe=o==="start"?S:o==="end"?S-g:o==="nearest"?$o(w,w+g,g,be,ce,w+S,w+S+v,v):S-g/2,xe=l==="start"?_:l==="center"?_-m/2:l==="end"?_-m:$o(b,b+m,m,Z,Se,b+_,b+_+y,y),pe=Math.max(0,pe+w),xe=Math.max(0,xe+b);else{pe=o==="start"?S-z-be:o==="end"?S-N+ce+fe:o==="nearest"?$o(z,N,L,be,ce+fe,S,S+v,v):S-(z+L/2)+fe/2,xe=l==="start"?_-ie-Z:l==="center"?_-(ie+W/2)+le/2:l==="end"?_-O+Se+le:$o(ie,O,W,Z,Se+le,_,_+y,y);const{scrollLeft:Y,scrollTop:j}=F;pe=A===0?0:Math.max(0,Math.min(j+pe/A,F.scrollHeight-L/A+fe)),xe=we===0?0:Math.max(0,Math.min(Y+xe/we,F.scrollWidth-W/we+le)),S+=j-pe,_+=Y-xe}R.push({el:F,top:pe,left:xe})}return R},P3=r=>r===!1?{block:"end",inline:"nearest"}:(e=>e===Object(e)&&Object.keys(e).length!==0)(r)?r:{block:"start",inline:"nearest"};function ka(r,e){if(!r.isConnected||!(s=>{let n=s;for(;n&&n.parentNode;){if(n.parentNode===document)return!0;n=n.parentNode instanceof ShadowRoot?n.parentNode.host:n.parentNode}return!1})(r))return;const t=(s=>{const n=window.getComputedStyle(s);return{top:parseFloat(n.scrollMarginTop)||0,right:parseFloat(n.scrollMarginRight)||0,bottom:parseFloat(n.scrollMarginBottom)||0,left:parseFloat(n.scrollMarginLeft)||0}})(r);if((s=>typeof s=="object"&&typeof s.behavior=="function")(e))return e.behavior(Bm(r,e));const i=typeof e=="boolean"||e==null?void 0:e.behavior;for(const{el:s,top:n,left:a}of Bm(r,P3(e))){const o=n-t.top+t.bottom,l=a-t.left+t.right;s.scroll({top:o,left:l,behavior:i})}}function er(r,e){let t=Od(r)[2];return e&&t.slice(-1*e.length)===e&&(t=t.slice(0,t.length-e.length)),t}function Ht(r){const e=Od(r),t=e[0];let i=e[1];return!t&&!i?"":(i&&(i=i.slice(0,i.length-1)),t+i)}function sr(r){return Od(r)[3]}const B3=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^/]+?|)(\.[^./]*|))(?:[/]*)$/;function Od(r){return B3.exec(r).slice(1)}const{GONE:iy}=Ma;FileSystemFileHandle;class Nd{_path;kind="file";name;isFile=!0;isDirectory=!1;constructor(e){this._path=e,this.name=new URL(e).pathname.split("/").pop()??""}async getFile(){return fetch(this._path).then(e=>e.blob()).then(e=>new File([e],this.name)).catch(()=>{throw new DOMException(...iy)})}async createWritable(){throw Error("Cannot call createWriteable from a URLFileHandle")}async isSameEntry(e){return FileSystemHandle instanceof Nd?e._path==this._path:!1}async queryPermission(){return"granted"}async requestPermission(){return"granted"}}class R3{async handleDropEvent(e,t){throw Error("Cannot call handleDropEvent from a URLFileHandler")}async getDirectoryHandle(e,t,i){throw Error("Cannot call getDirectoryHandle from a URLFileHandler")}async hasFile(e){return fetch(e).then(t=>t.ok).catch(()=>!1)}async getFileHandle(e,t){try{if(!await this.hasFile(e))throw new DOMException(...iy);return new Nd(e)}catch(i){console.error("Failed to get file "+e+": "+i);return}}async getFileHandleRelativeTo(e,t){const i=new URL(e);sr(i.pathname)!=""&&(i.pathname=i.pathname.split("/").slice(0,-1).join("/")),i.pathname+="/"+t;try{return this.getFileHandle(i.toString())}catch(s){console.error("Failed to get relative file "+i+": "+s);return}}async getDirectoryFiles(e){throw Error("Cannot call getDirectoryFiles from a URLFileHandler")}async getDirectoryFolders(e){throw Error("Cannot call getDirectoryFolders from a URLFileHandler")}async writeFile(e,t){throw Error("Cannot save to a URL file!")}async removeFile(e){throw Error("Cannot remove a URL file!")}getRelativePath(e,t){throw Error("Cannot call getRelativePath from a URLFileHandler")}}function jo(r){throw new Error('Could not dynamically require "'+r+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var ry={exports:{}};/*! +`,t}requiresSSC(){return this.chartName!==""||this.chartStyle!==""||this.credit!==""||this.music!==void 0||this.timingData.requiresSSC()}}const Sm=globalThis.showDirectoryPicker;async function S3(r={}){if(Sm&&!r._preferPolyfill)return Sm(r);const e=document.createElement("input");e.type="file",e.webkitdirectory=!0,e.multiple=!0,e.style.position="fixed",e.style.top="-100000px",e.style.left="-100000px",document.body.appendChild(e);const{makeDirHandleFromFileList:t}=await Qe(()=>Promise.resolve().then(()=>pb),void 0);return new Promise((i,s)=>{e.addEventListener("change",()=>{t(e.files).then(i).catch(s),document.body.removeChild(e)}),e.click()})}const Mm=globalThis.showOpenFilePicker;async function ey(r={}){if(Mm&&!r._preferPolyfill)return Mm(r);const e=document.createElement("input");e.type="file",e.multiple=!!r.multiple,e.accept=(r.accepts||[]).map(i=>[...(i.extensions||[]).map(s=>"."+s),...i.mimeTypes||[]]).flat().join(","),e.style.position="fixed",e.style.top="-100000px",e.style.left="-100000px",document.body.appendChild(e);const{makeFileHandlesFromFileList:t}=await Qe(()=>Promise.resolve().then(()=>pb),void 0);return new Promise((i,s)=>{e.addEventListener("change",()=>{t(e.files).then(i).catch(s),document.body.removeChild(e)}),e.click()})}const km=globalThis.showSaveFilePicker;async function M3(r={}){if(km&&!r._preferPolyfill)return km(r);const{FileSystemFileHandle:e}=await Qe(()=>Promise.resolve().then(()=>ty),void 0),{FileHandle:t}=await Qe(()=>import("./downloader-b5db5e8a.js"),[]);return new e(new t(r.suggestedName))}const tn=Symbol("adapter");let Ld=class{constructor(e){this.kind=e.kind,this.name=e.name,this[tn]=e}get isFile(){return this.kind==="file"}get isDirectory(){return this.kind==="directory"}async queryPermission(e={mode:"read"}){const t=this[tn];if(t.queryPermission)return t.queryPermission(e);if(e.mode==="read")return"granted";if(e.mode==="readwrite")return t.writable?"granted":"denied";throw new TypeError(`Mode ${e.mode} must be 'read' or 'readwrite'`)}async requestPermission(e={mode:"read"}){const t=this[tn];if(t.requestPermission)return t.requestPermission(e);if(e.mode==="read")return"granted";if(e.mode==="readwrite")return t.writable?"granted":"denied";throw new TypeError(`Mode ${e.mode} must be 'read' or 'readwrite'`)}async isSameEntry(e){return this===e?!0:this.kind!==e.kind||!e[tn]?!1:await this[tn].isSameEntry(e[tn])}};Object.defineProperty(Ld.prototype,Symbol.toStringTag,{value:"FileSystemHandle",writable:!1,enumerable:!1,configurable:!0});const yc=Symbol("adapter");let zn=class extends Ld{constructor(e){super(e),this.kind="file",this[yc]=e}async createWritable(e={}){const{FileSystemWritableFileStream:t}=await Qe(()=>import("./FileSystemWritableFileStream-e4c13ad9.js"),["FileSystemWritableFileStream-e4c13ad9.js","web-streams-ponyfill-4a0f4950.js"]);return new t(await this[yc].createWritable(e))}async getFile(){return this[yc].getFile()}};Object.defineProperty(zn.prototype,Symbol.toStringTag,{value:"FileSystemFileHandle",writable:!1,enumerable:!1,configurable:!0});Object.defineProperties(zn.prototype,{createWritable:{enumerable:!0},getFile:{enumerable:!0}});const ty=Object.freeze(Object.defineProperty({__proto__:null,FileSystemFileHandle:zn,default:zn},Symbol.toStringTag,{value:"Module"})),rn=Symbol("adapter");class ls extends Ld{constructor(e){super(e),this.kind="directory",this[rn]=e}async getDirectoryHandle(e,t={}){if(e==="")throw new TypeError("Name can't be an empty string.");if(e==="."||e===".."||e.includes("/"))throw new TypeError("Name contains invalid characters.");return new ls(await this[rn].getDirectoryHandle(e,t))}getDirectory(e,t={}){return this.getDirectoryHandle(e,t)}async*entries(){for await(const[e,t]of this[rn].entries())yield[t.name,t.kind==="file"?new zn(t):new ls(t)]}async*getEntries(){return this.entries()}async*keys(){for await(const[e]of this[rn].entries())yield e}async*values(){for await(const[e,t]of this.entries())yield t}async getFileHandle(e,t={}){if(e==="")throw new TypeError("Name can't be an empty string.");if(e==="."||e===".."||e.includes("/"))throw new TypeError("Name contains invalid characters.");return t.create=!!t.create,new zn(await this[rn].getFileHandle(e,t))}getFile(e,t={}){return this.getFileHandle(e,t)}async removeEntry(e,t={}){if(e==="")throw new TypeError("Name can't be an empty string.");if(e==="."||e===".."||e.includes("/"))throw new TypeError("Name contains invalid characters.");return t.recursive=!!t.recursive,this[rn].removeEntry(e,t)}async resolve(e){if(await e.isSameEntry(this))return[];const t=[{handle:this,path:[]}];for(;t.length;){let{handle:i,path:s}=t.pop();for await(const n of i.values()){if(await n.isSameEntry(e))return[...s,n.name];n.kind==="directory"&&t.push({handle:n,path:[...s,n.name]})}}return null}[Symbol.asyncIterator](){return this.entries()}}Object.defineProperty(ls.prototype,Symbol.toStringTag,{value:"FileSystemDirectoryHandle",writable:!1,enumerable:!1,configurable:!0});Object.defineProperties(ls.prototype,{getDirectoryHandle:{enumerable:!0},entries:{enumerable:!0},getFileHandle:{enumerable:!0},removeEntry:{enumerable:!0}});const k3=Object.freeze(Object.defineProperty({__proto__:null,FileSystemDirectoryHandle:ls,default:ls},Symbol.toStringTag,{value:"Module"}));async function Dm(r,e={}){var t,i,s,n;if(!r){if(!(!((t=globalThis.navigator)===null||t===void 0)&&t.storage)&&((i=globalThis.location)===null||i===void 0?void 0:i.protocol)==="http:")throw new Error("Native getDirectory not supported in HTTP context. Please use HTTPS instead or provide an adapter.");if(!(!((n=(s=globalThis.navigator)===null||s===void 0?void 0:s.storage)===null||n===void 0)&&n.getDirectory))throw new Error("Native StorageManager.getDirectory() is not supported in current environment. Please provide an adapter instead.");return globalThis.navigator.storage.getDirectory()}const a=await r,o=typeof a=="function"?await a(e):await a.default(e);return new ls(o)}var vc,wc;const D3={adapter:{cache:!!(globalThis.CacheStorage&&globalThis.caches instanceof CacheStorage),native:typeof((wc=(vc=globalThis.navigator)===null||vc===void 0?void 0:vc.storage)===null||wc===void 0?void 0:wc.getDirectory)=="function",sandbox:typeof window<"u"&&typeof window.webkitRequestFileSystem=="function"}},Im=r=>typeof r=="object"&&r!=null&&r.nodeType===1,Pm=(r,e)=>(!e||r!=="hidden")&&r!=="visible"&&r!=="clip",xc=(r,e)=>{if(r.clientHeight{const s=(n=>{if(!n.ownerDocument||!n.ownerDocument.defaultView)return null;try{return n.ownerDocument.defaultView.frameElement}catch{return null}})(i);return!!s&&(s.clientHeightne||n>r&&a=e&&o>=t?n-r-i:a>e&&ot?a-e+s:0,I3=r=>{const e=r.parentElement;return e??(r.getRootNode().host||null)},Bm=(r,e)=>{var t,i,s,n;if(typeof document>"u")return[];const{scrollMode:a,block:o,inline:l,boundary:c,skipOverflowHiddenElements:u}=e,h=typeof c=="function"?c:q=>q!==c;if(!Im(r))throw new TypeError("Invalid target");const d=document.scrollingElement||document.documentElement,f=[];let p=r;for(;Im(p)&&h(p);){if(p=I3(p),p===d){f.push(p);break}p!=null&&p===document.body&&xc(p)&&!xc(document.documentElement)||p!=null&&xc(p,u)&&f.push(p)}const m=(i=(t=window.visualViewport)==null?void 0:t.width)!=null?i:innerWidth,g=(n=(s=window.visualViewport)==null?void 0:s.height)!=null?n:innerHeight,{scrollX:b,scrollY:w}=window,{height:v,width:y,top:E,right:C,bottom:k,left:B}=r.getBoundingClientRect(),{top:M,right:U,bottom:V,left:T}=(q=>{const F=window.getComputedStyle(q);return{top:parseFloat(F.scrollMarginTop)||0,right:parseFloat(F.scrollMarginRight)||0,bottom:parseFloat(F.scrollMarginBottom)||0,left:parseFloat(F.scrollMarginLeft)||0}})(r);let S=o==="start"||o==="nearest"?E-M:o==="end"?k+V:E+v/2-M+V,_=l==="center"?B+y/2-T+U:l==="end"?C+U:B-T;const R=[];for(let q=0;q=0&&B>=0&&k<=g&&C<=m&&E>=z&&k<=N&&B>=ie&&C<=O)return R;const Q=getComputedStyle(F),Z=parseInt(Q.borderLeftWidth,10),be=parseInt(Q.borderTopWidth,10),Se=parseInt(Q.borderRightWidth,10),ce=parseInt(Q.borderBottomWidth,10);let pe=0,xe=0;const le="offsetWidth"in F?F.offsetWidth-F.clientWidth-Z-Se:0,fe="offsetHeight"in F?F.offsetHeight-F.clientHeight-be-ce:0,we="offsetWidth"in F?F.offsetWidth===0?0:W/F.offsetWidth:0,A="offsetHeight"in F?F.offsetHeight===0?0:L/F.offsetHeight:0;if(d===F)pe=o==="start"?S:o==="end"?S-g:o==="nearest"?$o(w,w+g,g,be,ce,w+S,w+S+v,v):S-g/2,xe=l==="start"?_:l==="center"?_-m/2:l==="end"?_-m:$o(b,b+m,m,Z,Se,b+_,b+_+y,y),pe=Math.max(0,pe+w),xe=Math.max(0,xe+b);else{pe=o==="start"?S-z-be:o==="end"?S-N+ce+fe:o==="nearest"?$o(z,N,L,be,ce+fe,S,S+v,v):S-(z+L/2)+fe/2,xe=l==="start"?_-ie-Z:l==="center"?_-(ie+W/2)+le/2:l==="end"?_-O+Se+le:$o(ie,O,W,Z,Se+le,_,_+y,y);const{scrollLeft:Y,scrollTop:j}=F;pe=A===0?0:Math.max(0,Math.min(j+pe/A,F.scrollHeight-L/A+fe)),xe=we===0?0:Math.max(0,Math.min(Y+xe/we,F.scrollWidth-W/we+le)),S+=j-pe,_+=Y-xe}R.push({el:F,top:pe,left:xe})}return R},P3=r=>r===!1?{block:"end",inline:"nearest"}:(e=>e===Object(e)&&Object.keys(e).length!==0)(r)?r:{block:"start",inline:"nearest"};function ka(r,e){if(!r.isConnected||!(s=>{let n=s;for(;n&&n.parentNode;){if(n.parentNode===document)return!0;n=n.parentNode instanceof ShadowRoot?n.parentNode.host:n.parentNode}return!1})(r))return;const t=(s=>{const n=window.getComputedStyle(s);return{top:parseFloat(n.scrollMarginTop)||0,right:parseFloat(n.scrollMarginRight)||0,bottom:parseFloat(n.scrollMarginBottom)||0,left:parseFloat(n.scrollMarginLeft)||0}})(r);if((s=>typeof s=="object"&&typeof s.behavior=="function")(e))return e.behavior(Bm(r,e));const i=typeof e=="boolean"||e==null?void 0:e.behavior;for(const{el:s,top:n,left:a}of Bm(r,P3(e))){const o=n-t.top+t.bottom,l=a-t.left+t.right;s.scroll({top:o,left:l,behavior:i})}}function er(r,e){let t=Od(r)[2];return e&&t.slice(-1*e.length)===e&&(t=t.slice(0,t.length-e.length)),t}function Ht(r){const e=Od(r),t=e[0];let i=e[1];return!t&&!i?"":(i&&(i=i.slice(0,i.length-1)),t+i)}function sr(r){return Od(r)[3]}const B3=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^/]+?|)(\.[^./]*|))(?:[/]*)$/;function Od(r){return B3.exec(r).slice(1)}const{GONE:iy}=Ma;FileSystemFileHandle;class Nd{_path;kind="file";name;isFile=!0;isDirectory=!1;constructor(e){this._path=e,this.name=new URL(e).pathname.split("/").pop()??""}async getFile(){return fetch(this._path).then(e=>e.blob()).then(e=>new File([e],this.name)).catch(()=>{throw new DOMException(...iy)})}async createWritable(){throw Error("Cannot call createWriteable from a URLFileHandle")}async isSameEntry(e){return FileSystemHandle instanceof Nd?e._path==this._path:!1}async queryPermission(){return"granted"}async requestPermission(){return"granted"}}class R3{async handleDropEvent(e,t){throw Error("Cannot call handleDropEvent from a URLFileHandler")}async getDirectoryHandle(e,t,i){throw Error("Cannot call getDirectoryHandle from a URLFileHandler")}async hasFile(e){return fetch(e).then(t=>t.ok).catch(()=>!1)}async getFileHandle(e,t){try{if(!await this.hasFile(e))throw new DOMException(...iy);return new Nd(e)}catch(i){console.error("Failed to get file "+e+": "+i);return}}async getFileHandleRelativeTo(e,t){const i=new URL(e);sr(i.pathname)!=""&&(i.pathname=i.pathname.split("/").slice(0,-1).join("/")),i.pathname+="/"+t;try{return this.getFileHandle(i.toString())}catch(s){console.error("Failed to get relative file "+i+": "+s);return}}async getDirectoryFiles(e){throw Error("Cannot call getDirectoryFiles from a URLFileHandler")}async getDirectoryFolders(e){throw Error("Cannot call getDirectoryFolders from a URLFileHandler")}async writeFile(e,t){throw Error("Cannot save to a URL file!")}async removeFile(e){throw Error("Cannot remove a URL file!")}getRelativePath(e,t){throw Error("Cannot call getRelativePath from a URLFileHandler")}}function jo(r){throw new Error('Could not dynamically require "'+r+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var ry={exports:{}};/*! JSZip v3.10.1 - A JavaScript class for generating and reading zip files @@ -1200,7 +1200,7 @@ Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/js JSZip uses the library pako released under the MIT license : https://github.com/nodeca/pako/blob/main/LICENSE */(function(r,e){(function(t){r.exports=t()})(function(){return function t(i,s,n){function a(c,u){if(!s[c]){if(!i[c]){var h=typeof jo=="function"&&jo;if(!u&&h)return h(c,!0);if(o)return o(c,!0);var d=new Error("Cannot find module '"+c+"'");throw d.code="MODULE_NOT_FOUND",d}var f=s[c]={exports:{}};i[c][0].call(f.exports,function(p){var m=i[c][1][p];return a(m||p)},f,f.exports,t,i,s,n)}return s[c].exports}for(var o=typeof jo=="function"&&jo,l=0;l>2,f=(3&c)<<4|u>>4,p=1>6:64,m=2>4,u=(15&d)<<4|(f=o.indexOf(l.charAt(m++)))>>2,h=(3&f)<<6|(p=o.indexOf(l.charAt(m++))),w[g++]=c,f!==64&&(w[g++]=u),p!==64&&(w[g++]=h);return w}},{"./support":30,"./utils":32}],2:[function(t,i,s){var n=t("./external"),a=t("./stream/DataWorker"),o=t("./stream/Crc32Probe"),l=t("./stream/DataLengthProbe");function c(u,h,d,f,p){this.compressedSize=u,this.uncompressedSize=h,this.crc32=d,this.compression=f,this.compressedContent=p}c.prototype={getContentWorker:function(){var u=new a(n.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new l("data_length")),h=this;return u.on("end",function(){if(this.streamInfo.data_length!==h.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),u},getCompressedWorker:function(){return new a(n.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},c.createWorkerFrom=function(u,h,d){return u.pipe(new o).pipe(new l("uncompressedSize")).pipe(h.compressWorker(d)).pipe(new l("compressedSize")).withStreamInfo("compression",h)},i.exports=c},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(t,i,s){var n=t("./stream/GenericWorker");s.STORE={magic:"\0\0",compressWorker:function(){return new n("STORE compression")},uncompressWorker:function(){return new n("STORE decompression")}},s.DEFLATE=t("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(t,i,s){var n=t("./utils"),a=function(){for(var o,l=[],c=0;c<256;c++){o=c;for(var u=0;u<8;u++)o=1&o?3988292384^o>>>1:o>>>1;l[c]=o}return l}();i.exports=function(o,l){return o!==void 0&&o.length?n.getTypeOf(o)!=="string"?function(c,u,h,d){var f=a,p=d+h;c^=-1;for(var m=d;m>>8^f[255&(c^u[m])];return-1^c}(0|l,o,o.length,0):function(c,u,h,d){var f=a,p=d+h;c^=-1;for(var m=d;m>>8^f[255&(c^u.charCodeAt(m))];return-1^c}(0|l,o,o.length,0):0}},{"./utils":32}],5:[function(t,i,s){s.base64=!1,s.binary=!1,s.dir=!1,s.createFolders=!0,s.date=null,s.compression=null,s.compressionOptions=null,s.comment=null,s.unixPermissions=null,s.dosPermissions=null},{}],6:[function(t,i,s){var n=null;n=typeof Promise<"u"?Promise:t("lie"),i.exports={Promise:n}},{lie:37}],7:[function(t,i,s){var n=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",a=t("pako"),o=t("./utils"),l=t("./stream/GenericWorker"),c=n?"uint8array":"array";function u(h,d){l.call(this,"FlateWorker/"+h),this._pako=null,this._pakoAction=h,this._pakoOptions=d,this.meta={}}s.magic="\b\0",o.inherits(u,l),u.prototype.processChunk=function(h){this.meta=h.meta,this._pako===null&&this._createPako(),this._pako.push(o.transformTo(c,h.data),!1)},u.prototype.flush=function(){l.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},u.prototype.cleanUp=function(){l.prototype.cleanUp.call(this),this._pako=null},u.prototype._createPako=function(){this._pako=new a[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var h=this;this._pako.onData=function(d){h.push({data:d,meta:h.meta})}},s.compressWorker=function(h){return new u("Deflate",h)},s.uncompressWorker=function(){return new u("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(t,i,s){function n(f,p){var m,g="";for(m=0;m>>=8;return g}function a(f,p,m,g,b,w){var v,y,E=f.file,C=f.compression,k=w!==c.utf8encode,B=o.transformTo("string",w(E.name)),M=o.transformTo("string",c.utf8encode(E.name)),U=E.comment,V=o.transformTo("string",w(U)),T=o.transformTo("string",c.utf8encode(U)),S=M.length!==E.name.length,_=T.length!==U.length,R="",q="",F="",L=E.dir,W=E.date,z={crc32:0,compressedSize:0,uncompressedSize:0};p&&!m||(z.crc32=f.crc32,z.compressedSize=f.compressedSize,z.uncompressedSize=f.uncompressedSize);var O=0;p&&(O|=8),k||!S&&!_||(O|=2048);var N=0,ie=0;L&&(N|=16),b==="UNIX"?(ie=798,N|=function(Z,be){var Se=Z;return Z||(Se=be?16893:33204),(65535&Se)<<16}(E.unixPermissions,L)):(ie=20,N|=function(Z){return 63&(Z||0)}(E.dosPermissions)),v=W.getUTCHours(),v<<=6,v|=W.getUTCMinutes(),v<<=5,v|=W.getUTCSeconds()/2,y=W.getUTCFullYear()-1980,y<<=4,y|=W.getUTCMonth()+1,y<<=5,y|=W.getUTCDate(),S&&(q=n(1,1)+n(u(B),4)+M,R+="up"+n(q.length,2)+q),_&&(F=n(1,1)+n(u(V),4)+T,R+="uc"+n(F.length,2)+F);var Q="";return Q+=` -\0`,Q+=n(O,2),Q+=C.magic,Q+=n(v,2),Q+=n(y,2),Q+=n(z.crc32,4),Q+=n(z.compressedSize,4),Q+=n(z.uncompressedSize,4),Q+=n(B.length,2),Q+=n(R.length,2),{fileRecord:h.LOCAL_FILE_HEADER+Q+B+R,dirRecord:h.CENTRAL_FILE_HEADER+n(ie,2)+Q+n(V.length,2)+"\0\0\0\0"+n(N,4)+n(g,4)+B+R+V}}var o=t("../utils"),l=t("../stream/GenericWorker"),c=t("../utf8"),u=t("../crc32"),h=t("../signature");function d(f,p,m,g){l.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=p,this.zipPlatform=m,this.encodeFileName=g,this.streamFiles=f,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}o.inherits(d,l),d.prototype.push=function(f){var p=f.meta.percent||0,m=this.entriesCount,g=this._sources.length;this.accumulate?this.contentBuffer.push(f):(this.bytesWritten+=f.data.length,l.prototype.push.call(this,{data:f.data,meta:{currentFile:this.currentFile,percent:m?(p+100*(m-g-1))/m:100}}))},d.prototype.openedSource=function(f){this.currentSourceOffset=this.bytesWritten,this.currentFile=f.file.name;var p=this.streamFiles&&!f.file.dir;if(p){var m=a(f,p,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:m.fileRecord,meta:{percent:0}})}else this.accumulate=!0},d.prototype.closedSource=function(f){this.accumulate=!1;var p=this.streamFiles&&!f.file.dir,m=a(f,p,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(m.dirRecord),p)this.push({data:function(g){return h.DATA_DESCRIPTOR+n(g.crc32,4)+n(g.compressedSize,4)+n(g.uncompressedSize,4)}(f),meta:{percent:100}});else for(this.push({data:m.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},d.prototype.flush=function(){for(var f=this.bytesWritten,p=0;p=this.index;l--)c=(c<<8)+this.byteAt(l);return this.index+=o,c},readString:function(o){return n.transformTo("string",this.readData(o))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var o=this.readInt(4);return new Date(Date.UTC(1980+(o>>25&127),(o>>21&15)-1,o>>16&31,o>>11&31,o>>5&63,(31&o)<<1))}},i.exports=a},{"../utils":32}],19:[function(t,i,s){var n=t("./Uint8ArrayReader");function a(o){n.call(this,o)}t("../utils").inherits(a,n),a.prototype.readData=function(o){this.checkOffset(o);var l=this.data.slice(this.zero+this.index,this.zero+this.index+o);return this.index+=o,l},i.exports=a},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(t,i,s){var n=t("./DataReader");function a(o){n.call(this,o)}t("../utils").inherits(a,n),a.prototype.byteAt=function(o){return this.data.charCodeAt(this.zero+o)},a.prototype.lastIndexOfSignature=function(o){return this.data.lastIndexOf(o)-this.zero},a.prototype.readAndCheckSignature=function(o){return o===this.readData(4)},a.prototype.readData=function(o){this.checkOffset(o);var l=this.data.slice(this.zero+this.index,this.zero+this.index+o);return this.index+=o,l},i.exports=a},{"../utils":32,"./DataReader":18}],21:[function(t,i,s){var n=t("./ArrayReader");function a(o){n.call(this,o)}t("../utils").inherits(a,n),a.prototype.readData=function(o){if(this.checkOffset(o),o===0)return new Uint8Array(0);var l=this.data.subarray(this.zero+this.index,this.zero+this.index+o);return this.index+=o,l},i.exports=a},{"../utils":32,"./ArrayReader":17}],22:[function(t,i,s){var n=t("../utils"),a=t("../support"),o=t("./ArrayReader"),l=t("./StringReader"),c=t("./NodeBufferReader"),u=t("./Uint8ArrayReader");i.exports=function(h){var d=n.getTypeOf(h);return n.checkSupport(d),d!=="string"||a.uint8array?d==="nodebuffer"?new c(h):a.uint8array?new u(n.transformTo("uint8array",h)):new o(n.transformTo("array",h)):new l(h)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(t,i,s){s.LOCAL_FILE_HEADER="PK",s.CENTRAL_FILE_HEADER="PK",s.CENTRAL_DIRECTORY_END="PK",s.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",s.ZIP64_CENTRAL_DIRECTORY_END="PK",s.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(t,i,s){var n=t("./GenericWorker"),a=t("../utils");function o(l){n.call(this,"ConvertWorker to "+l),this.destType=l}a.inherits(o,n),o.prototype.processChunk=function(l){this.push({data:a.transformTo(this.destType,l.data),meta:l.meta})},i.exports=o},{"../utils":32,"./GenericWorker":28}],25:[function(t,i,s){var n=t("./GenericWorker"),a=t("../crc32");function o(){n.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}t("../utils").inherits(o,n),o.prototype.processChunk=function(l){this.streamInfo.crc32=a(l.data,this.streamInfo.crc32||0),this.push(l)},i.exports=o},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(t,i,s){var n=t("../utils"),a=t("./GenericWorker");function o(l){a.call(this,"DataLengthProbe for "+l),this.propName=l,this.withStreamInfo(l,0)}n.inherits(o,a),o.prototype.processChunk=function(l){if(l){var c=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=c+l.data.length}a.prototype.processChunk.call(this,l)},i.exports=o},{"../utils":32,"./GenericWorker":28}],27:[function(t,i,s){var n=t("../utils"),a=t("./GenericWorker");function o(l){a.call(this,"DataWorker");var c=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,l.then(function(u){c.dataIsReady=!0,c.data=u,c.max=u&&u.length||0,c.type=n.getTypeOf(u),c.isPaused||c._tickAndRepeat()},function(u){c.error(u)})}n.inherits(o,a),o.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this.data=null},o.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,n.delay(this._tickAndRepeat,[],this)),!0)},o.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(n.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},o.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var l=null,c=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":l=this.data.substring(this.index,c);break;case"uint8array":l=this.data.subarray(this.index,c);break;case"array":case"nodebuffer":l=this.data.slice(this.index,c)}return this.index=c,this.push({data:l,meta:{percent:this.max?this.index/this.max*100:0}})},i.exports=o},{"../utils":32,"./GenericWorker":28}],28:[function(t,i,s){function n(a){this.name=a||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}n.prototype={push:function(a){this.emit("data",a)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(a){this.emit("error",a)}return!0},error:function(a){return!this.isFinished&&(this.isPaused?this.generatedError=a:(this.isFinished=!0,this.emit("error",a),this.previous&&this.previous.error(a),this.cleanUp()),!0)},on:function(a,o){return this._listeners[a].push(o),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(a,o){if(this._listeners[a])for(var l=0;l "+a:a}},i.exports=n},{}],29:[function(t,i,s){var n=t("../utils"),a=t("./ConvertWorker"),o=t("./GenericWorker"),l=t("../base64"),c=t("../support"),u=t("../external"),h=null;if(c.nodestream)try{h=t("../nodejs/NodejsStreamOutputAdapter")}catch{}function d(p,m){return new u.Promise(function(g,b){var w=[],v=p._internalType,y=p._outputType,E=p._mimeType;p.on("data",function(C,k){w.push(C),m&&m(k)}).on("error",function(C){w=[],b(C)}).on("end",function(){try{var C=function(k,B,M){switch(k){case"blob":return n.newBlob(n.transformTo("arraybuffer",B),M);case"base64":return l.encode(B);default:return n.transformTo(k,B)}}(y,function(k,B){var M,U=0,V=null,T=0;for(M=0;M"u")s.blob=!1;else{var n=new ArrayBuffer(0);try{s.blob=new Blob([n],{type:"application/zip"}).size===0}catch{try{var a=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);a.append(n),s.blob=a.getBlob("application/zip").size===0}catch{s.blob=!1}}}try{s.nodestream=!!t("readable-stream").Readable}catch{s.nodestream=!1}},{"readable-stream":16}],31:[function(t,i,s){for(var n=t("./utils"),a=t("./support"),o=t("./nodejsUtils"),l=t("./stream/GenericWorker"),c=new Array(256),u=0;u<256;u++)c[u]=252<=u?6:248<=u?5:240<=u?4:224<=u?3:192<=u?2:1;c[254]=c[254]=1;function h(){l.call(this,"utf-8 decode"),this.leftOver=null}function d(){l.call(this,"utf-8 encode")}s.utf8encode=function(f){return a.nodebuffer?o.newBufferFrom(f,"utf-8"):function(p){var m,g,b,w,v,y=p.length,E=0;for(w=0;w>>6:(g<65536?m[v++]=224|g>>>12:(m[v++]=240|g>>>18,m[v++]=128|g>>>12&63),m[v++]=128|g>>>6&63),m[v++]=128|63&g);return m}(f)},s.utf8decode=function(f){return a.nodebuffer?n.transformTo("nodebuffer",f).toString("utf-8"):function(p){var m,g,b,w,v=p.length,y=new Array(2*v);for(m=g=0;m>10&1023,y[g++]=56320|1023&b)}return y.length!==g&&(y.subarray?y=y.subarray(0,g):y.length=g),n.applyFromCharCode(y)}(f=n.transformTo(a.uint8array?"uint8array":"array",f))},n.inherits(h,l),h.prototype.processChunk=function(f){var p=n.transformTo(a.uint8array?"uint8array":"array",f.data);if(this.leftOver&&this.leftOver.length){if(a.uint8array){var m=p;(p=new Uint8Array(m.length+this.leftOver.length)).set(this.leftOver,0),p.set(m,this.leftOver.length)}else p=this.leftOver.concat(p);this.leftOver=null}var g=function(w,v){var y;for((v=v||w.length)>w.length&&(v=w.length),y=v-1;0<=y&&(192&w[y])==128;)y--;return y<0||y===0?v:y+c[w[y]]>v?y:v}(p),b=p;g!==p.length&&(a.uint8array?(b=p.subarray(0,g),this.leftOver=p.subarray(g,p.length)):(b=p.slice(0,g),this.leftOver=p.slice(g,p.length))),this.push({data:s.utf8decode(b),meta:f.meta})},h.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:s.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},s.Utf8DecodeWorker=h,n.inherits(d,l),d.prototype.processChunk=function(f){this.push({data:s.utf8encode(f.data),meta:f.meta})},s.Utf8EncodeWorker=d},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(t,i,s){var n=t("./support"),a=t("./base64"),o=t("./nodejsUtils"),l=t("./external");function c(m){return m}function u(m,g){for(var b=0;b>8;this.dir=!!(16&this.externalFileAttributes),f==0&&(this.dosPermissions=63&this.externalFileAttributes),f==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var f=n(this.extraFields[1].value);this.uncompressedSize===a.MAX_VALUE_32BITS&&(this.uncompressedSize=f.readInt(8)),this.compressedSize===a.MAX_VALUE_32BITS&&(this.compressedSize=f.readInt(8)),this.localHeaderOffset===a.MAX_VALUE_32BITS&&(this.localHeaderOffset=f.readInt(8)),this.diskNumberStart===a.MAX_VALUE_32BITS&&(this.diskNumberStart=f.readInt(4))}},readExtraFields:function(f){var p,m,g,b=f.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});f.index+4>>6:(f<65536?d[g++]=224|f>>>12:(d[g++]=240|f>>>18,d[g++]=128|f>>>12&63),d[g++]=128|f>>>6&63),d[g++]=128|63&f);return d},s.buf2binstring=function(h){return u(h,h.length)},s.binstring2buf=function(h){for(var d=new n.Buf8(h.length),f=0,p=d.length;f>10&1023,w[p++]=56320|1023&m)}return u(w,p)},s.utf8border=function(h,d){var f;for((d=d||h.length)>h.length&&(d=h.length),f=d-1;0<=f&&(192&h[f])==128;)f--;return f<0||f===0?d:f+l[h[f]]>d?f:d}},{"./common":41}],43:[function(t,i,s){i.exports=function(n,a,o,l){for(var c=65535&n|0,u=n>>>16&65535|0,h=0;o!==0;){for(o-=h=2e3>>1:a>>>1;o[l]=a}return o}();i.exports=function(a,o,l,c){var u=n,h=c+l;a^=-1;for(var d=c;d>>8^u[255&(a^o[d])];return-1^a}},{}],46:[function(t,i,s){var n,a=t("../utils/common"),o=t("./trees"),l=t("./adler32"),c=t("./crc32"),u=t("./messages"),h=0,d=4,f=0,p=-2,m=-1,g=4,b=2,w=8,v=9,y=286,E=30,C=19,k=2*y+1,B=15,M=3,U=258,V=U+M+1,T=42,S=113,_=1,R=2,q=3,F=4;function L(A,Y){return A.msg=u[Y],Y}function W(A){return(A<<1)-(4A.avail_out&&(j=A.avail_out),j!==0&&(a.arraySet(A.output,Y.pending_buf,Y.pending_out,j,A.next_out),A.next_out+=j,Y.pending_out+=j,A.total_out+=j,A.avail_out-=j,Y.pending-=j,Y.pending===0&&(Y.pending_out=0))}function N(A,Y){o._tr_flush_block(A,0<=A.block_start?A.block_start:-1,A.strstart-A.block_start,Y),A.block_start=A.strstart,O(A.strm)}function ie(A,Y){A.pending_buf[A.pending++]=Y}function Q(A,Y){A.pending_buf[A.pending++]=Y>>>8&255,A.pending_buf[A.pending++]=255&Y}function Z(A,Y){var j,I,D=A.max_chain_length,G=A.strstart,J=A.prev_length,ee=A.nice_match,$=A.strstart>A.w_size-V?A.strstart-(A.w_size-V):0,re=A.window,he=A.w_mask,ne=A.prev,_e=A.strstart+U,Xe=re[G+J-1],Ue=re[G+J];A.prev_length>=A.good_match&&(D>>=2),ee>A.lookahead&&(ee=A.lookahead);do if(re[(j=Y)+J]===Ue&&re[j+J-1]===Xe&&re[j]===re[G]&&re[++j]===re[G+1]){G+=2,j++;do;while(re[++G]===re[++j]&&re[++G]===re[++j]&&re[++G]===re[++j]&&re[++G]===re[++j]&&re[++G]===re[++j]&&re[++G]===re[++j]&&re[++G]===re[++j]&&re[++G]===re[++j]&&G<_e);if(I=U-(_e-G),G=_e-U,J$&&--D!=0);return J<=A.lookahead?J:A.lookahead}function be(A){var Y,j,I,D,G,J,ee,$,re,he,ne=A.w_size;do{if(D=A.window_size-A.lookahead-A.strstart,A.strstart>=ne+(ne-V)){for(a.arraySet(A.window,A.window,ne,ne,0),A.match_start-=ne,A.strstart-=ne,A.block_start-=ne,Y=j=A.hash_size;I=A.head[--Y],A.head[Y]=ne<=I?I-ne:0,--j;);for(Y=j=ne;I=A.prev[--Y],A.prev[Y]=ne<=I?I-ne:0,--j;);D+=ne}if(A.strm.avail_in===0)break;if(J=A.strm,ee=A.window,$=A.strstart+A.lookahead,re=D,he=void 0,he=J.avail_in,re=M)for(G=A.strstart-A.insert,A.ins_h=A.window[G],A.ins_h=(A.ins_h<=M&&(A.ins_h=(A.ins_h<=M)if(I=o._tr_tally(A,A.strstart-A.match_start,A.match_length-M),A.lookahead-=A.match_length,A.match_length<=A.max_lazy_match&&A.lookahead>=M){for(A.match_length--;A.strstart++,A.ins_h=(A.ins_h<=M&&(A.ins_h=(A.ins_h<=M&&A.match_length<=A.prev_length){for(D=A.strstart+A.lookahead-M,I=o._tr_tally(A,A.strstart-1-A.prev_match,A.prev_length-M),A.lookahead-=A.prev_length-1,A.prev_length-=2;++A.strstart<=D&&(A.ins_h=(A.ins_h<A.pending_buf_size-5&&(j=A.pending_buf_size-5);;){if(A.lookahead<=1){if(be(A),A.lookahead===0&&Y===h)return _;if(A.lookahead===0)break}A.strstart+=A.lookahead,A.lookahead=0;var I=A.block_start+j;if((A.strstart===0||A.strstart>=I)&&(A.lookahead=A.strstart-I,A.strstart=I,N(A,!1),A.strm.avail_out===0)||A.strstart-A.block_start>=A.w_size-V&&(N(A,!1),A.strm.avail_out===0))return _}return A.insert=0,Y===d?(N(A,!0),A.strm.avail_out===0?q:F):(A.strstart>A.block_start&&(N(A,!1),A.strm.avail_out),_)}),new pe(4,4,8,4,Se),new pe(4,5,16,8,Se),new pe(4,6,32,32,Se),new pe(4,4,16,16,ce),new pe(8,16,32,32,ce),new pe(8,16,128,128,ce),new pe(8,32,128,256,ce),new pe(32,128,258,1024,ce),new pe(32,258,258,4096,ce)],s.deflateInit=function(A,Y){return we(A,Y,w,15,8,0)},s.deflateInit2=we,s.deflateReset=fe,s.deflateResetKeep=le,s.deflateSetHeader=function(A,Y){return A&&A.state?A.state.wrap!==2?p:(A.state.gzhead=Y,f):p},s.deflate=function(A,Y){var j,I,D,G;if(!A||!A.state||5>8&255),ie(I,I.gzhead.time>>16&255),ie(I,I.gzhead.time>>24&255),ie(I,I.level===9?2:2<=I.strategy||I.level<2?4:0),ie(I,255&I.gzhead.os),I.gzhead.extra&&I.gzhead.extra.length&&(ie(I,255&I.gzhead.extra.length),ie(I,I.gzhead.extra.length>>8&255)),I.gzhead.hcrc&&(A.adler=c(A.adler,I.pending_buf,I.pending,0)),I.gzindex=0,I.status=69):(ie(I,0),ie(I,0),ie(I,0),ie(I,0),ie(I,0),ie(I,I.level===9?2:2<=I.strategy||I.level<2?4:0),ie(I,3),I.status=S);else{var J=w+(I.w_bits-8<<4)<<8;J|=(2<=I.strategy||I.level<2?0:I.level<6?1:I.level===6?2:3)<<6,I.strstart!==0&&(J|=32),J+=31-J%31,I.status=S,Q(I,J),I.strstart!==0&&(Q(I,A.adler>>>16),Q(I,65535&A.adler)),A.adler=1}if(I.status===69)if(I.gzhead.extra){for(D=I.pending;I.gzindex<(65535&I.gzhead.extra.length)&&(I.pending!==I.pending_buf_size||(I.gzhead.hcrc&&I.pending>D&&(A.adler=c(A.adler,I.pending_buf,I.pending-D,D)),O(A),D=I.pending,I.pending!==I.pending_buf_size));)ie(I,255&I.gzhead.extra[I.gzindex]),I.gzindex++;I.gzhead.hcrc&&I.pending>D&&(A.adler=c(A.adler,I.pending_buf,I.pending-D,D)),I.gzindex===I.gzhead.extra.length&&(I.gzindex=0,I.status=73)}else I.status=73;if(I.status===73)if(I.gzhead.name){D=I.pending;do{if(I.pending===I.pending_buf_size&&(I.gzhead.hcrc&&I.pending>D&&(A.adler=c(A.adler,I.pending_buf,I.pending-D,D)),O(A),D=I.pending,I.pending===I.pending_buf_size)){G=1;break}G=I.gzindexD&&(A.adler=c(A.adler,I.pending_buf,I.pending-D,D)),G===0&&(I.gzindex=0,I.status=91)}else I.status=91;if(I.status===91)if(I.gzhead.comment){D=I.pending;do{if(I.pending===I.pending_buf_size&&(I.gzhead.hcrc&&I.pending>D&&(A.adler=c(A.adler,I.pending_buf,I.pending-D,D)),O(A),D=I.pending,I.pending===I.pending_buf_size)){G=1;break}G=I.gzindexD&&(A.adler=c(A.adler,I.pending_buf,I.pending-D,D)),G===0&&(I.status=103)}else I.status=103;if(I.status===103&&(I.gzhead.hcrc?(I.pending+2>I.pending_buf_size&&O(A),I.pending+2<=I.pending_buf_size&&(ie(I,255&A.adler),ie(I,A.adler>>8&255),A.adler=0,I.status=S)):I.status=S),I.pending!==0){if(O(A),A.avail_out===0)return I.last_flush=-1,f}else if(A.avail_in===0&&W(Y)<=W(j)&&Y!==d)return L(A,-5);if(I.status===666&&A.avail_in!==0)return L(A,-5);if(A.avail_in!==0||I.lookahead!==0||Y!==h&&I.status!==666){var ee=I.strategy===2?function($,re){for(var he;;){if($.lookahead===0&&(be($),$.lookahead===0)){if(re===h)return _;break}if($.match_length=0,he=o._tr_tally($,0,$.window[$.strstart]),$.lookahead--,$.strstart++,he&&(N($,!1),$.strm.avail_out===0))return _}return $.insert=0,re===d?(N($,!0),$.strm.avail_out===0?q:F):$.last_lit&&(N($,!1),$.strm.avail_out===0)?_:R}(I,Y):I.strategy===3?function($,re){for(var he,ne,_e,Xe,Ue=$.window;;){if($.lookahead<=U){if(be($),$.lookahead<=U&&re===h)return _;if($.lookahead===0)break}if($.match_length=0,$.lookahead>=M&&0<$.strstart&&(ne=Ue[_e=$.strstart-1])===Ue[++_e]&&ne===Ue[++_e]&&ne===Ue[++_e]){Xe=$.strstart+U;do;while(ne===Ue[++_e]&&ne===Ue[++_e]&&ne===Ue[++_e]&&ne===Ue[++_e]&&ne===Ue[++_e]&&ne===Ue[++_e]&&ne===Ue[++_e]&&ne===Ue[++_e]&&_e$.lookahead&&($.match_length=$.lookahead)}if($.match_length>=M?(he=o._tr_tally($,1,$.match_length-M),$.lookahead-=$.match_length,$.strstart+=$.match_length,$.match_length=0):(he=o._tr_tally($,0,$.window[$.strstart]),$.lookahead--,$.strstart++),he&&(N($,!1),$.strm.avail_out===0))return _}return $.insert=0,re===d?(N($,!0),$.strm.avail_out===0?q:F):$.last_lit&&(N($,!1),$.strm.avail_out===0)?_:R}(I,Y):n[I.level].func(I,Y);if(ee!==q&&ee!==F||(I.status=666),ee===_||ee===q)return A.avail_out===0&&(I.last_flush=-1),f;if(ee===R&&(Y===1?o._tr_align(I):Y!==5&&(o._tr_stored_block(I,0,0,!1),Y===3&&(z(I.head),I.lookahead===0&&(I.strstart=0,I.block_start=0,I.insert=0))),O(A),A.avail_out===0))return I.last_flush=-1,f}return Y!==d?f:I.wrap<=0?1:(I.wrap===2?(ie(I,255&A.adler),ie(I,A.adler>>8&255),ie(I,A.adler>>16&255),ie(I,A.adler>>24&255),ie(I,255&A.total_in),ie(I,A.total_in>>8&255),ie(I,A.total_in>>16&255),ie(I,A.total_in>>24&255)):(Q(I,A.adler>>>16),Q(I,65535&A.adler)),O(A),0=j.w_size&&(G===0&&(z(j.head),j.strstart=0,j.block_start=0,j.insert=0),re=new a.Buf8(j.w_size),a.arraySet(re,Y,he-j.w_size,j.w_size,0),Y=re,he=j.w_size),J=A.avail_in,ee=A.next_in,$=A.input,A.avail_in=he,A.next_in=0,A.input=Y,be(j);j.lookahead>=M;){for(I=j.strstart,D=j.lookahead-(M-1);j.ins_h=(j.ins_h<>>=M=B>>>24,v-=M,(M=B>>>16&255)===0)R[u++]=65535&B;else{if(!(16&M)){if(!(64&M)){B=y[(65535&B)+(w&(1<>>=M,v-=M),v<15&&(w+=_[l++]<>>=M=B>>>24,v-=M,!(16&(M=B>>>16&255))){if(!(64&M)){B=E[(65535&B)+(w&(1<>>=M,v-=M,(M=u-h)>3,w&=(1<<(v-=U<<3))-1,n.next_in=l,n.next_out=u,n.avail_in=l>>24&255)+(T>>>8&65280)+((65280&T)<<8)+((255&T)<<24)}function w(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function v(T){var S;return T&&T.state?(S=T.state,T.total_in=T.total_out=S.total=0,T.msg="",S.wrap&&(T.adler=1&S.wrap),S.mode=p,S.last=0,S.havedict=0,S.dmax=32768,S.head=null,S.hold=0,S.bits=0,S.lencode=S.lendyn=new n.Buf32(m),S.distcode=S.distdyn=new n.Buf32(g),S.sane=1,S.back=-1,d):f}function y(T){var S;return T&&T.state?((S=T.state).wsize=0,S.whave=0,S.wnext=0,v(T)):f}function E(T,S){var _,R;return T&&T.state?(R=T.state,S<0?(_=0,S=-S):(_=1+(S>>4),S<48&&(S&=15)),S&&(S<8||15=F.wsize?(n.arraySet(F.window,S,_-F.wsize,F.wsize,0),F.wnext=0,F.whave=F.wsize):(R<(q=F.wsize-F.wnext)&&(q=R),n.arraySet(F.window,S,_-R,q,F.wnext),(R-=q)?(n.arraySet(F.window,S,_-R,R,0),F.wnext=R,F.whave=F.wsize):(F.wnext+=q,F.wnext===F.wsize&&(F.wnext=0),F.whave>>8&255,_.check=o(_.check,G,2,0),N=O=0,_.mode=2;break}if(_.flags=0,_.head&&(_.head.done=!1),!(1&_.wrap)||(((255&O)<<8)+(O>>8))%31){T.msg="incorrect header check",_.mode=30;break}if((15&O)!=8){T.msg="unknown compression method",_.mode=30;break}if(N-=4,A=8+(15&(O>>>=4)),_.wbits===0)_.wbits=A;else if(A>_.wbits){T.msg="invalid window size",_.mode=30;break}_.dmax=1<>8&1),512&_.flags&&(G[0]=255&O,G[1]=O>>>8&255,_.check=o(_.check,G,2,0)),N=O=0,_.mode=3;case 3:for(;N<32;){if(W===0)break e;W--,O+=R[F++]<>>8&255,G[2]=O>>>16&255,G[3]=O>>>24&255,_.check=o(_.check,G,4,0)),N=O=0,_.mode=4;case 4:for(;N<16;){if(W===0)break e;W--,O+=R[F++]<>8),512&_.flags&&(G[0]=255&O,G[1]=O>>>8&255,_.check=o(_.check,G,2,0)),N=O=0,_.mode=5;case 5:if(1024&_.flags){for(;N<16;){if(W===0)break e;W--,O+=R[F++]<>>8&255,_.check=o(_.check,G,2,0)),N=O=0}else _.head&&(_.head.extra=null);_.mode=6;case 6:if(1024&_.flags&&(W<(Z=_.length)&&(Z=W),Z&&(_.head&&(A=_.head.extra_len-_.length,_.head.extra||(_.head.extra=new Array(_.head.extra_len)),n.arraySet(_.head.extra,R,F,Z,A)),512&_.flags&&(_.check=o(_.check,R,Z,F)),W-=Z,F+=Z,_.length-=Z),_.length))break e;_.length=0,_.mode=7;case 7:if(2048&_.flags){if(W===0)break e;for(Z=0;A=R[F+Z++],_.head&&A&&_.length<65536&&(_.head.name+=String.fromCharCode(A)),A&&Z>9&1,_.head.done=!0),T.adler=_.check=0,_.mode=12;break;case 10:for(;N<32;){if(W===0)break e;W--,O+=R[F++]<>>=7&N,N-=7&N,_.mode=27;break}for(;N<3;){if(W===0)break e;W--,O+=R[F++]<>>=1)){case 0:_.mode=14;break;case 1:if(U(_),_.mode=20,S!==6)break;O>>>=2,N-=2;break e;case 2:_.mode=17;break;case 3:T.msg="invalid block type",_.mode=30}O>>>=2,N-=2;break;case 14:for(O>>>=7&N,N-=7&N;N<32;){if(W===0)break e;W--,O+=R[F++]<>>16^65535)){T.msg="invalid stored block lengths",_.mode=30;break}if(_.length=65535&O,N=O=0,_.mode=15,S===6)break e;case 15:_.mode=16;case 16:if(Z=_.length){if(W>>=5,N-=5,_.ndist=1+(31&O),O>>>=5,N-=5,_.ncode=4+(15&O),O>>>=4,N-=4,286<_.nlen||30<_.ndist){T.msg="too many length or distance symbols",_.mode=30;break}_.have=0,_.mode=18;case 18:for(;_.have<_.ncode;){for(;N<3;){if(W===0)break e;W--,O+=R[F++]<>>=3,N-=3}for(;_.have<19;)_.lens[J[_.have++]]=0;if(_.lencode=_.lendyn,_.lenbits=7,j={bits:_.lenbits},Y=c(0,_.lens,0,19,_.lencode,0,_.work,j),_.lenbits=j.bits,Y){T.msg="invalid code lengths set",_.mode=30;break}_.have=0,_.mode=19;case 19:for(;_.have<_.nlen+_.ndist;){for(;pe=(D=_.lencode[O&(1<<_.lenbits)-1])>>>16&255,xe=65535&D,!((ce=D>>>24)<=N);){if(W===0)break e;W--,O+=R[F++]<>>=ce,N-=ce,_.lens[_.have++]=xe;else{if(xe===16){for(I=ce+2;N>>=ce,N-=ce,_.have===0){T.msg="invalid bit length repeat",_.mode=30;break}A=_.lens[_.have-1],Z=3+(3&O),O>>>=2,N-=2}else if(xe===17){for(I=ce+3;N>>=ce)),O>>>=3,N-=3}else{for(I=ce+7;N>>=ce)),O>>>=7,N-=7}if(_.have+Z>_.nlen+_.ndist){T.msg="invalid bit length repeat",_.mode=30;break}for(;Z--;)_.lens[_.have++]=A}}if(_.mode===30)break;if(_.lens[256]===0){T.msg="invalid code -- missing end-of-block",_.mode=30;break}if(_.lenbits=9,j={bits:_.lenbits},Y=c(u,_.lens,0,_.nlen,_.lencode,0,_.work,j),_.lenbits=j.bits,Y){T.msg="invalid literal/lengths set",_.mode=30;break}if(_.distbits=6,_.distcode=_.distdyn,j={bits:_.distbits},Y=c(h,_.lens,_.nlen,_.ndist,_.distcode,0,_.work,j),_.distbits=j.bits,Y){T.msg="invalid distances set",_.mode=30;break}if(_.mode=20,S===6)break e;case 20:_.mode=21;case 21:if(6<=W&&258<=z){T.next_out=L,T.avail_out=z,T.next_in=F,T.avail_in=W,_.hold=O,_.bits=N,l(T,Q),L=T.next_out,q=T.output,z=T.avail_out,F=T.next_in,R=T.input,W=T.avail_in,O=_.hold,N=_.bits,_.mode===12&&(_.back=-1);break}for(_.back=0;pe=(D=_.lencode[O&(1<<_.lenbits)-1])>>>16&255,xe=65535&D,!((ce=D>>>24)<=N);){if(W===0)break e;W--,O+=R[F++]<>le)])>>>16&255,xe=65535&D,!(le+(ce=D>>>24)<=N);){if(W===0)break e;W--,O+=R[F++]<>>=le,N-=le,_.back+=le}if(O>>>=ce,N-=ce,_.back+=ce,_.length=xe,pe===0){_.mode=26;break}if(32&pe){_.back=-1,_.mode=12;break}if(64&pe){T.msg="invalid literal/length code",_.mode=30;break}_.extra=15&pe,_.mode=22;case 22:if(_.extra){for(I=_.extra;N>>=_.extra,N-=_.extra,_.back+=_.extra}_.was=_.length,_.mode=23;case 23:for(;pe=(D=_.distcode[O&(1<<_.distbits)-1])>>>16&255,xe=65535&D,!((ce=D>>>24)<=N);){if(W===0)break e;W--,O+=R[F++]<>le)])>>>16&255,xe=65535&D,!(le+(ce=D>>>24)<=N);){if(W===0)break e;W--,O+=R[F++]<>>=le,N-=le,_.back+=le}if(O>>>=ce,N-=ce,_.back+=ce,64&pe){T.msg="invalid distance code",_.mode=30;break}_.offset=xe,_.extra=15&pe,_.mode=24;case 24:if(_.extra){for(I=_.extra;N>>=_.extra,N-=_.extra,_.back+=_.extra}if(_.offset>_.dmax){T.msg="invalid distance too far back",_.mode=30;break}_.mode=25;case 25:if(z===0)break e;if(Z=Q-z,_.offset>Z){if((Z=_.offset-Z)>_.whave&&_.sane){T.msg="invalid distance too far back",_.mode=30;break}be=Z>_.wnext?(Z-=_.wnext,_.wsize-Z):_.wnext-Z,Z>_.length&&(Z=_.length),Se=_.window}else Se=q,be=L-_.offset,Z=_.length;for(zk?(M=be[Se+g[S]],N[ie+g[S]]):(M=96,0),w=1<>L)+(v-=w)]=B<<24|M<<16|U|0,v!==0;);for(w=1<>=1;if(w!==0?(O&=w-1,O+=w):O=0,S++,--Q[T]==0){if(T===R)break;T=h[d+g[S]]}if(q>>7)]}function ie(D,G){D.pending_buf[D.pending++]=255&G,D.pending_buf[D.pending++]=G>>>8&255}function Q(D,G,J){D.bi_valid>b-J?(D.bi_buf|=G<>b-D.bi_valid,D.bi_valid+=J-b):(D.bi_buf|=G<>>=1,J<<=1,0<--G;);return J>>>1}function Se(D,G,J){var ee,$,re=new Array(g+1),he=0;for(ee=1;ee<=g;ee++)re[ee]=he=he+J[ee-1]<<1;for($=0;$<=G;$++){var ne=D[2*$+1];ne!==0&&(D[2*$]=be(re[ne]++,ne))}}function ce(D){var G;for(G=0;G>1;1<=J;J--)le(D,re,J);for($=_e;J=D.heap[1],D.heap[1]=D.heap[D.heap_len--],le(D,re,1),ee=D.heap[1],D.heap[--D.heap_max]=J,D.heap[--D.heap_max]=ee,re[2*$]=re[2*J]+re[2*ee],D.depth[$]=(D.depth[J]>=D.depth[ee]?D.depth[J]:D.depth[ee])+1,re[2*J+1]=re[2*ee+1]=$,D.heap[1]=$++,le(D,re,1),2<=D.heap_len;);D.heap[--D.heap_max]=D.heap[1],function(Ue,jt){var fs,ri,ps,dt,X,me,Te=jt.dyn_tree,qe=jt.max_code,Ve=jt.stat_desc.static_tree,Bt=jt.stat_desc.has_stree,qt=jt.stat_desc.extra_bits,gr=jt.stat_desc.extra_base,Or=jt.stat_desc.max_length,si=0;for(dt=0;dt<=g;dt++)Ue.bl_count[dt]=0;for(Te[2*Ue.heap[Ue.heap_max]+1]=0,fs=Ue.heap_max+1;fs>=7;$>>=1)if(1&Xe&&ne.dyn_ltree[2*_e]!==0)return a;if(ne.dyn_ltree[18]!==0||ne.dyn_ltree[20]!==0||ne.dyn_ltree[26]!==0)return o;for(_e=32;_e>>3,(re=D.static_len+3+7>>>3)<=$&&($=re)):$=re=J+5,J+4<=$&&G!==-1?I(D,G,J,ee):D.strategy===4||re===$?(Q(D,2+(ee?1:0),3),fe(D,V,T)):(Q(D,4+(ee?1:0),3),function(ne,_e,Xe,Ue){var jt;for(Q(ne,_e-257,5),Q(ne,Xe-1,5),Q(ne,Ue-4,4),jt=0;jt>>8&255,D.pending_buf[D.d_buf+2*D.last_lit+1]=255&G,D.pending_buf[D.l_buf+D.last_lit]=255&J,D.last_lit++,G===0?D.dyn_ltree[2*J]++:(D.matches++,G--,D.dyn_ltree[2*(_[J]+h+1)]++,D.dyn_dtree[2*N(G)]++),D.last_lit===D.lit_bufsize-1},s._tr_align=function(D){Q(D,2,3),Z(D,v,V),function(G){G.bi_valid===16?(ie(G,G.bi_buf),G.bi_buf=0,G.bi_valid=0):8<=G.bi_valid&&(G.pending_buf[G.pending++]=255&G.bi_buf,G.bi_buf>>=8,G.bi_valid-=8)}(D)}},{"../utils/common":41}],53:[function(t,i,s){i.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(t,i,s){(function(n){(function(a,o){if(!a.setImmediate){var l,c,u,h,d=1,f={},p=!1,m=a.document,g=Object.getPrototypeOf&&Object.getPrototypeOf(a);g=g&&g.setTimeout?g:a,l={}.toString.call(a.process)==="[object process]"?function(y){process.nextTick(function(){w(y)})}:function(){if(a.postMessage&&!a.importScripts){var y=!0,E=a.onmessage;return a.onmessage=function(){y=!1},a.postMessage("","*"),a.onmessage=E,y}}()?(h="setImmediate$"+Math.random()+"$",a.addEventListener?a.addEventListener("message",v,!1):a.attachEvent("onmessage",v),function(y){a.postMessage(h+y,"*")}):a.MessageChannel?((u=new MessageChannel).port1.onmessage=function(y){w(y.data)},function(y){u.port2.postMessage(y)}):m&&"onreadystatechange"in m.createElement("script")?(c=m.documentElement,function(y){var E=m.createElement("script");E.onreadystatechange=function(){w(y),E.onreadystatechange=null,c.removeChild(E),E=null},c.appendChild(E)}):function(y){setTimeout(w,0,y)},g.setImmediate=function(y){typeof y!="function"&&(y=new Function(""+y));for(var E=new Array(arguments.length-1),C=0;C"u"?n===void 0?this:n:self)}).call(this,typeof Yt<"u"?Yt:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})})(ry);var F3=ry.exports;const L3=Xa(F3),xr=class xr{static async writeHandle(e,t){const i=this.workID++,s=new Promise((o,l)=>this.map.set(i,[o,l])),n=new TextEncoder,a=typeof t=="string"?n.encode(t):await t.arrayBuffer();return this.worker.postMessage([i,e,a],[a]),s}};Ys(xr,"worker",new Worker(new URL("/smeditor/assets/SafariFileWorker-557e53c3.js",self.location),{type:"module"})),Ys(xr,"workID",0),Ys(xr,"map",new Map),xr.worker.onmessage=e=>{const t=e.data;t.success?xr.map.get(t.id)[0]():xr.map.get(t.id)[1](t.reason),xr.map.delete(t.id)};let zu=xr;class O3{_root;async getRoot(){return this._root||(D3.adapter.native?await Dm().then(e=>this._root=e):await Dm(Qe(()=>import("./memory-e6387387.js"),[])).then(e=>this._root=e)),this._root}async uploadHandle(e,t){let i;if(typeof t=="string"){const s=await this.getDirectoryHandle(t,{create:!0});if(!s)return;i=s}else i=t??await this.getRoot();if(e.kind=="file"){const s=await i.getFileHandle(e.name,{create:!0});await this.writeFile(s,await e.getFile())}else{const s=await i.getDirectoryHandle(e.name,{create:!0}),n=[];for await(const a of e.values())n.push(this.uploadHandle(a,s));await Promise.all(n)}}async uploadFiles(e,t){let i;if(typeof t=="string"){const s=await this.getDirectoryHandle(t,{create:!0});if(!s)return;i=s}else i=t??await this.getRoot();if(e.isFile){const s=e;if(s.name==".DS_Store")return;s.file(async n=>{const a=await i.getFileHandle(n.name,{create:!0});await this.writeHandle(a,n)})}else if(e.isDirectory){const s=e.createReader(),n=await i.getDirectoryHandle(e.name,{create:!0});for await(const a of n.values())await n.removeEntry(a.name,{recursive:!0});s.readEntries(async a=>{const o=[];for(let l=0;li!="."&&i!="");t.indexOf("..")>-1;){const i=t.indexOf("..");if(i==0)throw Error("Path"+t.join("/")+"is invalid!");t.splice(i-1,2)}return t.join("/")}async zipDirectory(e,t){const i=t??new L3,s=sr(e)==""?e:Ht(e),n=await this.getDirectoryHandle(s);if(n){for(const a of await this.getDirectoryFiles(n))i.file(a.name,await a.getFile());for(const a of await this.getDirectoryFolders(n)){const o=i.folder(a.name);if(!o){console.error("Failed to zip folder "+s+"/"+a.name);continue}await this.zipDirectory(s+"/"+a.name,o)}return i}}async saveDirectory(e){const t=sr(e)==""?e:Ht(e);Ee.create("Exporting "+t+".zip");const i=await M3({_preferPolyfill:!1,suggestedName:`${t}.zip`,types:[{accept:{"application/zip":[".zip"]}}],excludeAcceptAllOption:!1}),s=await this.zipDirectory(e);s&&await s.generateAsync({type:"blob"}).then(async n=>{if(!window.showSaveFilePicker){console.log(n);const a=document.createElement("a"),o=URL.createObjectURL(n);document.body.appendChild(a),a.href=o,a.download=t+".zip",a.click(),a.remove(),window.URL.revokeObjectURL(o);return}await this.writeHandle(i,n)})}async renameFile(e,t){if(e!=t)try{const i=await this.getDirectoryHandle(Ht(e)),s=await this.getDirectoryHandle(Ht(t),{create:!0}),n=await this.getFileHandle(e);if(!i||!s||!n)return;await this.copyToHandle(s,n,er(t)),await i.removeEntry(er(e))}catch(i){console.error(i)}}async renameDirectory(e,t){if(!t.startsWith(e))try{const i=await this.getDirectoryHandle(Ht(e)),s=await this.getDirectoryHandle(Ht(t),{create:!0}),n=await this.getDirectoryHandle(e);if(!i||!s||!n)return;await this.copyToHandle(s,n,er(t)),await i.removeEntry(er(e),{recursive:!0})}catch(i){console.error(i)}}async copyToHandle(e,t,i){try{if(t.kind=="directory"){const s=await e.getDirectoryHandle(i??t.name,{create:!0}),n=[];for await(const a of t.values())n.push(this.copyToHandle(s,a));await Promise.all(n)}else{const s=await t.getFile(),n=await e.getFileHandle(i??t.name,{create:!0});await this.writeHandle(n,s)}}catch(s){console.error(s)}}getRelativePath(e,t){const i=e.split("/"),s=t.split("/"),n=Math.min(i.length,s.length);let a=n;for(let l=0;limport("./NodeFileHandler-cefd0d25.js"),[])).NodeFileHandler:new O3}static getStandardHandler(){return this.standardHandler}static getHandler(e){return e!==void 0&&e.startsWith("https://")||e?.startsWith("http://")?this.urlHandler:this.standardHandler}static handleDropEvent(e,t){return this.getHandler().handleDropEvent(e,t)}static getDirectoryHandle(e,t){return Le.getHandler(e).getDirectoryHandle(e,t)}static hasFile(e){return Le.getHandler(e).hasFile(e)}static getFileHandle(e,t){return Le.getHandler(e).getFileHandle(e,t)}static getFileHandleRelativeTo(e,t){return Le.getHandler(e).getFileHandleRelativeTo(e,t)}static getDirectoryFiles(e){return Le.getHandler(typeof e=="string"?e:void 0).getDirectoryFiles(e)}static getDirectoryFolders(e){return Le.getHandler(typeof e=="string"?e:void 0).getDirectoryFolders(e)}static writeFile(e,t){return Le.getHandler(typeof e=="string"?e:void 0).writeFile(e,t)}static removeFile(e){return Le.getHandler(e).removeFile(e)}static getRelativePath(e,t){return Le.getHandler().getRelativePath(e,t)}}class Ud extends Tt{app;dirOptions;fileDropPath="";draggedElement;draggedCopy;keyHandler;dropHandler;mouseHandler;dragHandler;constructor(e,t,i){super({title:t.title,width:500,height:400,disableClose:t.disableClose,win_id:"file_selector"+Math.random(),blocking:!0}),this.app=e,this.dirOptions=t,t.accepted_file_types||=[],this.keyHandler=this.handleKeyEvent.bind(this),this.dropHandler=this.handleDropEvent.bind(this),this.mouseHandler=this.handleMouseEvent.bind(this),this.dragHandler=this.handleDragEvent.bind(this),this.initView().then(()=>{i&&this.selectPath(i),t.onload?.()})}async initView(){this.viewElement.replaceChildren();const e=document.createElement("div");e.classList.add("padding");const t=document.createElement("div");t.classList.add("menu-options");const i=document.createElement("div");i.classList.add("menu-left");const s=document.createElement("div");s.classList.add("menu-right"),t.appendChild(i),t.appendChild(s);const n=document.createElement("button");n.innerText="Cancel",n.onclick=()=>{window.removeEventListener("keydown",this.keyHandler,!0),window.removeEventListener("drop",this.dropHandler,!0),this.closeWindow()};const a=document.createElement("button");a.innerText="Select",a.classList.add("confirm"),a.onclick=()=>this.confirmFile(),a.disabled=!0,i.appendChild(n),s.appendChild(a);const o=document.createElement("div");o.classList.add("dir-selector"),o.onclick=b=>{b.target==o&&this.selectElement(void 0)};const l=document.createElement("div");l.classList.add("file-options");const c=document.createElement("button"),u=Ce.getIcon("ADD_FILE",16);c.appendChild(u),c.appendChild(document.createTextNode("Upload files")),l.appendChild(c),c.onclick=async()=>{const b=this.fileDropPath,w=await ey({_preferPolyfill:!0,excludeAcceptAllOption:!1,multiple:!0}),y=this.viewElement.querySelector(".info.selected")?.dataset.path??"",E=[];for(const C of w)E.push(Le.getStandardHandler().uploadHandle(C,y));await Promise.all(E),await this.refreshDirectory(b),this.getAcceptableFile(b).then(C=>this.selectPath(C))};const h=document.createElement("button"),d=Ce.getIcon("FOLDER",16);h.appendChild(d),h.appendChild(document.createTextNode("Upload folder")),l.appendChild(h),h.onclick=async()=>{const b=this.fileDropPath,w=await S3({_preferPolyfill:!0}),y=this.viewElement.querySelector(".info.selected")?.dataset.path??"";await Le.getStandardHandler().uploadHandle(w,y),await this.refreshDirectory(b),this.getAcceptableFile(b==""?w.name:b+"/"+w.name).then(E=>this.selectPath(E))};const f=document.createElement("button");f.classList.add("rename");const p=Ce.getIcon("EDIT",16);f.appendChild(p),f.appendChild(document.createTextNode("Rename")),f.disabled=!0,f.onclick=()=>{const b=this.viewElement.querySelector(".info.selected");b?.dataset.path&&this.startEditing(b.querySelector("textarea"))},l.appendChild(f);const m=document.createElement("button");m.classList.add("delete");const g=Ce.getIcon("TRASH",16);m.appendChild(g),m.appendChild(document.createTextNode("Delete")),m.disabled=!0,m.onclick=()=>{const b=this.viewElement.querySelector(".info.selected"),w=b?.dataset.path;if(!w)return;const v=b.parentElement.classList.contains("folder");Le.getStandardHandler()[v?"removeDirectory":"removeFile"](w).then(()=>{const y=this.getElement(w);y&&(y.parentElement?.remove(),m.disabled=!0,f.disabled=!0)})},l.appendChild(m),e.appendChild(o),e.appendChild(l),e.appendChild(t),this.viewElement.appendChild(e),window.addEventListener("keydown",this.keyHandler,!0),window.addEventListener("drop",this.dropHandler,!0),window.addEventListener("mousemove",this.dragHandler,!0),this.viewElement.addEventListener("dragover",this.mouseHandler),await this.createDiv("").then(b=>o.replaceChildren(...b))}async expand(e){if(!e.parentElement.classList.contains("folder"))return;e.parentElement.classList.remove("collapsed");const t=e.nextSibling;await this.createDiv(e.dataset.path).then(i=>{t.replaceChildren(...i)})}collapse(e){if(!e.parentElement.classList.contains("folder"))return;e.parentElement.classList.add("collapsed"),e.nextSibling.replaceChildren()}selectElement(e){if(this.viewElement.querySelector(".info.selected")?.classList.remove("selected"),!e){this.viewElement.querySelector(".delete").disabled=!0,this.viewElement.querySelector(".rename").disabled=!0;return}e.classList.add("selected"),ka(e,{scrollMode:"if-needed",block:"nearest",inline:"nearest"});const t=this.viewElement.querySelector("button.confirm"),i=e.dataset.path;t.disabled=!0,i&&(t.disabled=!this.acceptableFileType(i),this.viewElement.querySelector(".delete").disabled=!1,this.viewElement.querySelector(".rename").disabled=!1)}async createDiv(e){const t=await Le.getStandardHandler().getDirectoryFolders(e);let i=await Le.getStandardHandler().getDirectoryFiles(e);return t.sort((s,n)=>s.name.toLowerCase().localeCompare(n.name.toLowerCase())),i.sort((s,n)=>s.name.toLowerCase().localeCompare(n.name.toLowerCase())),i=i.filter(s=>sr(s.name)!=".crswap"),t.map(s=>this.createBaseElement(e,s)).concat(i.map(s=>this.createBaseElement(e,s)))}createBaseElement(e,t){e!=""&&(e+="/");const i=document.createElement("div");i.classList.add("item");const s=document.createElement("div");if(s.classList.add("info"),i.appendChild(s),t.kind=="directory"){const a=Ce.getIcon("CHEVRON",16);a.classList.add("folder-icon"),s.appendChild(a);const o=document.createElement("div");o.classList.add("children"),i.appendChild(o),i.classList.add("folder"),i.classList.add("collapsed"),s.addEventListener("click",l=>{const c=l.target;c?.classList.contains("options-icon")||c.tagName=="TEXTAREA"&&!c.disabled||(i.classList.contains("collapsed")?this.expand(s):this.collapse(s))})}else{this.acceptableFileType(t.name)||s.classList.add("disabled");const a=Ce.getIcon(this.getIconId(t.name),16);s.appendChild(a)}s.dataset.path=e+t.name;const n=document.createElement("textarea");return n.rows=1,n.disabled=!0,n.autocomplete="off",n.autocapitalize="off",n.spellcheck=!1,n.innerText=t.name,n.style.pointerEvents="none",n.classList.add("title"),s.appendChild(n),s.addEventListener("click",()=>this.selectElement(s)),s.addEventListener("mousedown",()=>this.startDragging(s)),s.ondblclick=()=>this.confirmFile(),i}confirmFile(){const t=this.viewElement.querySelector(".info.selected")?.dataset.path;t&&this.acceptableFileType(t)&&(this.dirOptions.callback?.(t),window.removeEventListener("keydown",this.keyHandler,!0),window.removeEventListener("drop",this.dropHandler,!0),window.removeEventListener("mousemove",this.dragHandler,!0),this.closeWindow())}acceptableFileType(e){return this.dirOptions.accepted_file_types.length==0||this.dirOptions.accepted_file_types.includes(sr(e))}getIconId(e){const t=sr(e);return t==""&&!e.startsWith(".")?"FOLDER":Ts.includes(t)?"IMAGE_FILE":rh.includes(t)?"VOLUME":[".sm",".ssc"].includes(t)?"SM_FILE":"UNKNOWN_FILE"}startEditing(e){const t=e.value,i=!!e.parentElement?.parentElement?.classList.contains("folder"),s=e.parentElement?.dataset.path??"",n=Ht(s);e.value=s.split("/").at(-1)??"",window.removeEventListener("keydown",this.keyHandler,!0),e.disabled=!1,e.style.pointerEvents="",e.focus(),e.addEventListener("keypress",a=>{a.code=="Enter"&&(a.preventDefault(),a.stopImmediatePropagation(),e.blur())},!0),e.addEventListener("blur",async()=>{if(window.addEventListener("keydown",this.keyHandler,!0),e.disabled=!0,e.style.pointerEvents="none",e.value.startsWith(".")){e.value=t;return}e.value=e.value.replaceAll("/","");const a=n==""?e.value:n+"/"+e.value;a!=s&&(e.parentElement.dataset.path=a,await Le.getStandardHandler()[i?"renameDirectory":"renameFile"](s,a),this.refreshDirectory(n),e.value.length>32&&(e.value=e.value.slice(0,32)+"..."))})}async refreshDirectory(e){const t=this.viewElement.querySelector(".dir-selector");if(!t)return;let i=t.querySelector("div[data-path='"+this.escapeSelector(e)+"']")?.nextSibling;if(e==""&&(i=t),!i)return;const s=Array.from(i.parentElement.querySelectorAll(".folder:not(.collapsed)")).map(n=>n.children[0].dataset.path);await this.createDiv(e).then(n=>i.replaceChildren(...n)),await Promise.all(s.map(n=>this.expand(t.querySelector("div[data-path='"+this.escapeSelector(n)+"']"))))}getElement(e){const t=this.viewElement.querySelector(".dir-selector");return t?t.querySelector("div[data-path='"+this.escapeSelector(e)+"']"):null}async getAcceptableFile(e){const t=await Le.getStandardHandler().getDirectoryHandle(e);if(!t)return;const i=[{path:e,handle:t}];for(;i.length>0;){const s=i.shift(),n=s.handle;for await(const a of n.values()){const o=s.path==""?"":s.path+"/";if(a.kind=="directory")i.push({path:o+a.name,handle:a});else if(this.acceptableFileType(a.name))return o+a.name}}}async selectPath(e){if(!e)return;const t=this.viewElement.querySelector(".dir-selector");if(!t)return;const i=e.split("/");i.pop();const s=[];for(;i.length>0;){s.push(i.shift());const a=t.querySelector("div[data-path='"+this.escapeSelector(s.join("/"))+"']");if(!a)return;await this.expand(a)}const n=t.querySelector("div[data-path='"+this.escapeSelector(e)+"']");n&&this.selectElement(n)}handleKeyEvent(e){if(!this.windowElement.classList.contains("focused"))return;const t=this.viewElement.querySelector(".info.selected");if(t==null){if(e.code.startsWith("Arrow")){const i=this.viewElement.querySelector(".info");i&&this.selectElement(i)}return}if(e.code=="ArrowUp"){e.preventDefault(),e.stopImmediatePropagation();const i=t.parentElement;let s=i.previousSibling?.querySelector(".info");s&&!s.parentElement.classList.contains("collapsed")&&s.parentElement.classList.contains("folder")&&(s=s.parentElement.querySelector(".children").lastChild.querySelector(".info")),!s&&i.parentElement.classList.contains("children")&&(s=i.parentElement.parentElement.querySelector(".info")),s&&(this.selectElement(s),ka(s,{scrollMode:"if-needed",block:"nearest",inline:"nearest"}))}if(e.code=="ArrowDown"){e.preventDefault(),e.stopImmediatePropagation();const i=t.parentElement;let s;i.classList.contains("folder")&&!i.classList.contains("collapsed")&&(s=i.querySelector(".children").children[0].querySelector(".info")),s||(s=t.parentElement.nextSibling?.querySelector(".info")),!s&&i.parentElement.classList.contains("children")&&(s=i.parentElement.parentElement.nextSibling.querySelector(".info")),s&&(this.selectElement(s),ka(s,{scrollMode:"if-needed",block:"nearest",inline:"nearest"}))}if(e.code=="ArrowLeft"&&(e.preventDefault(),e.stopImmediatePropagation(),this.collapse(t)),e.code=="ArrowRight"&&(e.preventDefault(),e.stopImmediatePropagation(),this.expand(t)),e.code=="Enter"&&(e.preventDefault(),e.stopImmediatePropagation(),t.parentElement?.querySelector(".title")&&this.startEditing(t.parentElement?.querySelector(".title"))),e.code=="Delete"||e.code=="Backspace"){const i=this.viewElement.querySelector(".info.selected"),s=i?.dataset.path;if(!s)return;const n=i.parentElement.classList.contains("folder");Le.getStandardHandler()[n?"removeDirectory":"removeFile"](s).then(()=>{const a=this.getElement(s);a&&(a.parentElement?.remove(),this.viewElement.querySelector(".delete").disabled=!0,this.viewElement.querySelector(".rename").disabled=!0)})}}startDragging(e){const t=e;t.totalMovementX=0,t.totalMovementY=0,this.draggedElement=t;const i=()=>{this.stopDragging(),window.removeEventListener("mouseup",i)};window.addEventListener("mouseup",i)}handleDragEvent(e){if(this.draggedElement){if(this.draggedElement.totalMovementX+=e.movementX,this.draggedElement.totalMovementY+=e.movementY,!this.draggedCopy)if(Math.abs(this.draggedElement.totalMovementX)+Math.abs(this.draggedElement.totalMovementY)>8){this.viewElement.addEventListener("mousemove",this.mouseHandler),this.draggedCopy=this.draggedElement.parentElement.cloneNode(!0),this.draggedCopy.style.position="fixed";const t=this.draggedElement.getBoundingClientRect();this.draggedCopy.style.top=t.top+this.draggedElement.totalMovementY+"px",this.draggedCopy.style.left=t.left+this.draggedElement.totalMovementX+"px",this.draggedCopy.style.width=t.width+"px",this.draggedCopy.style.boxShadow="3px 3px 3px #222",this.draggedCopy.querySelector(".children")&&this.draggedCopy.removeChild(this.draggedCopy.querySelector(".children")),this.viewElement.appendChild(this.draggedCopy)}else return;this.draggedCopy.style.top=parseFloat(this.draggedCopy.style.top.slice(0,-2))+e.movementY+"px",this.draggedCopy.style.left=parseFloat(this.draggedCopy.style.left.slice(0,-2))+e.movementX+"px"}}async stopDragging(){if(this.draggedCopy){this.draggedCopy.remove(),this.viewElement.removeEventListener("mousemove",this.mouseHandler);const e=this.draggedCopy.classList.contains("folder"),t=this.draggedElement.dataset.path,i=this.fileDropPath==""?er(this.draggedElement.dataset.path):this.fileDropPath+"/"+er(this.draggedElement.dataset.path);t!=i&&await Le.getStandardHandler()[e?"renameDirectory":"renameFile"](t,i),await this.refreshDirectory(Ht(t)),await this.refreshDirectory(Ht(i)),this.viewElement.querySelector(".outlined")?.classList.remove("outlined"),this.fileDropPath=""}this.draggedCopy=void 0,this.draggedElement=void 0}handleDropEvent(e){e.preventDefault(),e.stopImmediatePropagation(),this.viewElement.querySelector(".outlined")?.classList.remove("outlined"),e.target.closest(".dir-selector")&&Le.getStandardHandler().handleDropEvent(e,this.fileDropPath).then(async t=>{await this.refreshDirectory(this.fileDropPath),this.getAcceptableFile(t??this.fileDropPath).then(i=>this.selectPath(i)),this.fileDropPath=""})}handleMouseEvent(e){const t=this.viewElement.querySelector(".dir-selector");let i=Array.from(t.querySelectorAll("div.item.folder"));const s=this.viewElement.querySelector(".outlined");i=i.filter(n=>!n.parentElement.closest(".collapsed")),i.reverse(),i.push(t);for(const n of i){const a=n.getBoundingClientRect();if(e.clientX>=a.x&&e.clientX<=a.x+a.width&&e.clientY>=a.y&&e.clientY<=a.y+a.height){s!=n&&s?.classList.remove("outlined");const o=n.querySelector(".info");this.fileDropPath=o?.dataset.path??"",n.classList.contains("dir-selector")&&(this.fileDropPath=""),n.classList.add("outlined");return}}this.viewElement.querySelector(".outlined")?.classList.remove("outlined"),this.fileDropPath=""}escapeSelector(e){return e.replaceAll(/'/g,"\\'")}}class Ye{items=[];itemIndex=0;limit=0;app;static instance;constructor(e){this.app=e,Ye.instance||(Ye.instance=this)}run(e){e.action(this.app),this.items.splice(this.itemIndex,this.items.length-this.itemIndex,e),this.itemIndex++}undo(){this.items[this.itemIndex-1]&&(this.items[this.itemIndex-1].undo(this.app),this.itemIndex--,H.emit("undo"))}redo(){this.items[this.itemIndex]&&(this.items[this.itemIndex].redo?this.items[this.itemIndex].redo(this.app):this.items[this.itemIndex].action(this.app),this.itemIndex++,H.emit("redo"))}reset(){this.itemIndex=0,this.limit=0,this.items=[]}canUndo(){return this.itemIndex>0}canRedo(){return this.itemIndex!=this.items.length}setLimit(){this.limit=this.itemIndex}isDirty(){return this.itemIndex!=this.limit}merge(e){const t=this.items.splice(-e),i=t.reverse();this.itemIndex-=e,this.run({action:()=>{},redo:s=>{t.forEach(n=>n.action(s))},undo:s=>{i.forEach(n=>n.undo(s))}})}}function sy(){const r=document.createElement("div");return r.spellcheck=!1,r.contentEditable="true",r.classList.add("inlineEdit"),r.onkeydown=e=>{e.key=="Enter"&&r.blur()},r}function qo(r,e){return{title:r,element:t=>{const i=sy();return i.onblur=()=>{const s=i.innerText,n=t[e];Ye.instance.run({action:()=>{t[e]=s,i.innerText=s},undo:()=>{t[e]=n,i.innerText=n}}),i.scrollLeft=0},i.innerText=t[e],i}}}const N3={name:qo("Name","chartName"),credit:qo("Artist","credit"),style:qo("Style","chartStyle"),description:qo("Description","description"),music:{title:"Music File",element:(r,e)=>{const t=document.createElement("div");t.classList.add("flex-row","flex-column-gap","flex-static","hide-buttons");const i=()=>{if(s.innerText==(r.music??e.chartManager.loadedSM.properties.MUSIC??""))return;const c=e.chartManager.chartAudio.isPlaying();if(s.innerText==""||s.innerText==e.chartManager.loadedSM.properties.MUSIC){r.music=void 0,s.innerText=e.chartManager.loadedSM.properties.MUSIC+"",e.chartManager.loadAudio(),c&&e.chartManager.chartAudio.play();return}const u=s.innerText==e.chartManager.loadedSM.properties.MUSIC?void 0:s.innerText,h=r.music;Ye.instance.run({action:()=>{r.music=u,s.innerText=u??e.chartManager.loadedSM.properties.MUSIC??"",e.chartManager.loadAudio(),c&&e.chartManager.chartAudio.play()},undo:()=>{r.music=h,s.innerText=h??e.chartManager.loadedSM.properties.MUSIC??"",e.chartManager.loadAudio(),c&&e.chartManager.chartAudio.play()}})},s=sy();s.style.flex="1",s.onblur=i,s.innerText=r.music??e.chartManager.loadedSM.properties.MUSIC??"";const n=document.createElement("button");n.onclick=()=>{const c=Ht(e.chartManager.smPath);if(window.nw){const u=document.createElement("input");u.type="file",u.accept="audio/*",u.onchange=()=>{s.innerText=Le.getRelativePath(c,u.value),i()},u.click()}else e.windowManager.openWindow(new Ud(e,{title:"Select an audio file...",accepted_file_types:rh,disableClose:!0,callback:u=>{s.innerText=Le.getRelativePath(c,u),i()}},c+"/"+(r.music??e.chartManager.loadedSM.properties.MUSIC??"")))};const a=Ce.getIcon("FOLDER",12);n.appendChild(a);const o=document.createElement("button");o.onclick=()=>{s.innerText!=(e.chartManager.loadedSM.properties.MUSIC??"")&&(s.innerText=e.chartManager.loadedSM.properties.MUSIC??"",i())};const l=Ce.getIcon("REVERT",12);return o.appendChild(l),t.appendChild(s),t.appendChild(n),t.appendChild(o),t}}};class Oi{view;items=[];selectedItem;onChangeHandlers=[];static create(e,t){return new Oi(document.createElement("div"),e,t)}constructor(e,t,i){this.view=e,e.classList.add("dropdown"),this.items=t??[],this.selectedItem=i??this.items[0];const s=document.createElement("div");s.classList.add("dropdown-selected");const n=document.createElement("div");n.classList.add("dropdown-selected-text");const a=Ce.getIcon("CHEVRON",12);s.appendChild(n),s.appendChild(a);const o=document.createElement("div");o.classList.add("dropdown-items"),o.style.height="",s.onclick=()=>{if(!s.classList.contains("disabled")){if(this.items.length==0){o.style.height="";return}this.createDropdown(),o.style.height==""?(o.classList.remove("collapsed"),o.style.width=Math.max(o.scrollWidth,s.clientWidth)+"px",o.style.height=o.scrollHeight+"px",Array.from(o.children).forEach((l,c)=>{l.style.animationDelay=c*.02+"s"})):(o.style.height="",o.classList.add("collapsed"))}},window.addEventListener("click",l=>{const c=l.target;(!c.closest(".dropdown")||c.closest(".dropdown")!=e)&&(o.style.height="")}),o.classList.add("collapsed"),this.view.appendChild(s),this.view.appendChild(o),this.setSelected()}onChange(e){this.onChangeHandlers.push(e)}removeHandler(e){this.onChangeHandlers.includes(e)&&this.onChangeHandlers.splice(this.onChangeHandlers.indexOf(e),1)}getItems(){return this.items}setItems(e){this.items=e,e.includes(this.selectedItem)||(this.selectedItem=this.items[0],this.setSelected())}setSelected(e){this.selectedItem=e??this.selectedItem;const t=this.view.querySelector(".dropdown-selected-text");t.innerText=this.selectedItem?this.selectedItem+"":""}closeDropdown(){const e=this.view.querySelector(".dropdown-items");e&&(e.style.height="")}get value(){return this.selectedItem}get disabled(){return this.view.querySelector(".dropdown-selected").classList.contains("disabled")}set disabled(e){e?this.view.querySelector(".dropdown-selected").classList.add("disabled"):this.view.querySelector(".dropdown-selected").classList.remove("disabled")}createDropdown(){const e=this.view.querySelector(".dropdown-items"),t=this.items.map((i,s)=>{const n=document.createElement("div");return n.classList.add("dropdown-item"),n.innerText=i+"",n.onclick=()=>{e.style.height="",e.classList.add("collapsed"),this.selectedItem!=i&&(this.setSelected(i),this.onChangeHandlers.forEach(a=>a(i,s)))},n});e.replaceChildren(...t)}}class Wa extends Tt{app;buttonOptions;message;resolve;resolved=new Promise(e=>this.resolve=e);constructor(e,t,i,s){super({title:t,width:300,height:100,disableClose:!0,win_id:"confirm",blocking:!0}),this.app=e,this.message=i,this.buttonOptions=s,this.initView()}initView(){this.viewElement.replaceChildren(),this.viewElement.classList.add("confirmation");const e=document.createElement("div");e.classList.add("padding");const t=document.createElement("div");t.classList.add("label"),t.innerText=this.message,e.appendChild(t);const i=document.createElement("div");i.classList.add("menu-options"),this.buttonOptions.forEach(s=>{const n=document.createElement("button");n.innerText=s.label,n.onclick=()=>{s.callback?.(),this.resolve?.(s.label),this.closeWindow()},s.type!="default"&&n.classList.add(s.type),i.append(n)}),e.appendChild(i),this.viewElement.appendChild(e)}}class ny extends Tt{app;gameType;chartList;chartInfo;gameTypeDropdown;smLoadHandler=()=>{this.gameTypeDropdown.setItems(We.getPriority().map(e=>{const t=this.app.chartManager.loadedSM?.charts[e.id]??[];return e.id+" ("+t.length+")"})),this.gameTypeDropdown.setSelected(this.gameType.id+" ("+(this.app.chartManager.loadedSM?.charts[this.gameType.id]??[]).length+") "),this.gameType=this.app.chartManager.loadedChart?.gameType??this.gameType,this.loadCharts()};constructor(e,t){super({title:"Chart List",width:500,height:400,win_id:"chart_list"}),this.app=e,this.gameType=t??e.chartManager.loadedChart?.gameType??We.getPriority()[0],this.initView(),H.on("smLoadedAfter",this.smLoadHandler)}initView(){this.viewElement.replaceChildren();const e=document.createElement("div");e.classList.add("padding");const t=document.createElement("div");t.classList.add("chart-view-type-wrapper");const i=document.createElement("div");i.classList.add("chart-view-type-label"),i.innerText="Game Type:",this.gameTypeDropdown=Oi.create(We.getPriority().map(n=>{const a=this.app.chartManager.loadedSM?.charts[n.id]??[];return n.id+" ("+a.length+")"}),this.gameType.id+" ("+(this.app.chartManager.loadedSM?.charts[this.gameType.id]??[]).length+") "),this.gameTypeDropdown.onChange(n=>{this.gameType=We.getGameType(n.split(" ")[0])??this.gameType,this.loadCharts()}),t.appendChild(i),t.appendChild(this.gameTypeDropdown.view);const s=document.createElement("div");s.classList.add("chart-view-scroller"),e.appendChild(t),e.appendChild(s),this.chartList=document.createElement("div"),this.chartList.classList.add("chart-list"),this.chartInfo=document.createElement("div"),this.chartInfo.classList.add("chart-info"),s.appendChild(this.chartList),s.appendChild(this.chartInfo),this.viewElement.appendChild(e),this.loadCharts()}onClose(){H.off("smLoadedAfter",this.smLoadHandler)}loadCharts(){const e=this.app.chartManager.loadedSM?.charts[this.gameType.id]??[],t=[];this.gameTypeDropdown.setItems(We.getPriority().map(a=>{const o=this.app.chartManager.loadedSM?.charts[a.id]??[];return a.id+" ("+o.length+")"})),this.gameTypeDropdown.setSelected(this.gameType.id+" ("+(this.app.chartManager.loadedSM?.charts[this.gameType.id]??[]).length+") "),e.forEach(a=>{const o=document.createElement("div");o.classList.add("chart-list-item"),o.chart=a,this.app.chartManager.loadedChart==a&&o.classList.add("selected"),o.onclick=()=>{o.chart!=this.app.chartManager.loadedChart&&(this.app.chartManager.loadChart(o.chart),this.chartList.querySelectorAll(".selected").forEach(d=>d.classList.remove("selected")),o.classList.add("selected"))},o.onmouseenter=()=>{this.loadChartDetails(o.chart)},o.onmouseleave=()=>{this.loadChartDetails()};const l=document.createElement("div");l.innerText=a.meter+"",l.classList.add("title",a.difficulty);const c=document.createElement("div");c.classList.add("chart-list-info");const u=document.createElement("div");u.innerText=a.credit,u.classList.add("title","chart-credit");const h=document.createElement("div");h.innerText=a.getNotedata().length+"",h.classList.add("title","chart-step-count"),c.appendChild(u),c.appendChild(h),o.appendChild(l),o.appendChild(c),t.push(o)});const i=document.createElement("div");i.classList.add("chart-list-item");const s=document.createElement("div");s.innerText="+",s.classList.add("title");const n=document.createElement("div");n.classList.add("chart-list-info"),n.innerText="New Blank Chart",i.appendChild(s),i.appendChild(n),i.onclick=()=>{const a=new Qb(this.app.chartManager.loadedSM);a.gameType=this.gameType,this.app.chartManager.loadedSM.addChart(a),this.app.chartManager.loadChart(a),this.loadCharts()},this.chartList.replaceChildren(...t,i),this.loadChartDetails()}loadChartDetails(e){if(e=e??this.app.chartManager.loadedChart,e?.gameType.id!=this.gameType.id){this.chartInfo.replaceChildren();return}if(!e)return;const t=()=>this.app.chartManager.loadedSM.charts[e.gameType.id].sort((m,g)=>ki.indexOf(m.difficulty)==ki.indexOf(g.difficulty)?m.meter-g.meter:ki.indexOf(m.difficulty)-ki.indexOf(g.difficulty)),i=document.createElement("div");i.classList.add("chart-info-main");const s=Oi.create(ki,e.difficulty);s.view.classList.add("no-border","white"),s.onChange(m=>{const g=e.difficulty;Ye.instance.run({action:()=>{e.difficulty=m,t(),this.loadCharts()},undo:()=>{e.difficulty=g,t(),this.loadCharts()}})});const n=document.createElement("div");n.spellcheck=!1,n.contentEditable="true",n.classList.add("inlineEdit","chart-meter"),n.onkeydown=m=>{m.key=="Enter"&&n.blur()},n.onblur=()=>{let m=Na(n.innerText);if(m===null){n.innerText=e?.meter+"";return}m=Math.round(Oe(1,m,2**31-1));const g=e.meter;Ye.instance.run({action:()=>{e.meter=m,e.meterF=m,t(),this.loadCharts()},undo:()=>{e.meter=g,e.meterF=g,t(),this.loadCharts()}}),n.scrollLeft=0},n.innerText=e.meter+"";const a=document.createElement("div");a.classList.add("chart-properties"),i.appendChild(s.view),i.appendChild(n),Object.values(N3).forEach(m=>{const g=document.createElement("div");g.classList.add("label"),g.innerText=m.title;const b=m.element(e,this.app);m.title=="Artist"&&b.addEventListener("blur",()=>this.loadCharts()),a.appendChild(g),a.appendChild(b)});const o=e.getNotedataStats(),l=document.createElement("div");l.classList.add("chart-info-grid-item");const c=document.createElement("div");c.innerText="Peak NPS",c.classList.add("title","chart-info-grid-label");const u=document.createElement("div");u.innerText=e.getMaxNPS().toFixed(2)+"",u.classList.add("title","chart-info-grid-count"),l.appendChild(c),l.appendChild(u);const h=document.createElement("div");h.classList.add("chart-info-grid"),Object.entries(o).forEach(m=>{const g=document.createElement("div");g.classList.add("chart-info-grid-item");const b=document.createElement("div");b.innerText=m[0],b.classList.add("title","chart-info-grid-label");const w=document.createElement("div");w.innerText=m[1]+"",w.classList.add("title","chart-info-grid-count"),g.appendChild(b),g.appendChild(w),h.appendChild(g)});const d=document.createElement("div");d.classList.add("menu-options");const f=document.createElement("button");f.innerText="Duplicate Chart",f.onclick=()=>{const m=Object.assign(Object.create(Object.getPrototypeOf(e)),e);m.setNotedata(e.getNotedata().map(g=>e.computeNote(g))??[]),this.app.chartManager.loadedSM.addChart(m),this.app.chartManager.loadChart(m),this.loadCharts()},d.append(f);const p=document.createElement("button");p.innerText="Delete Chart",p.onclick=()=>{this.app.windowManager.openWindow(new Wa(this.app,"Delete chart","Are you sure you want to delete this chart?",[{type:"default",label:"Cancel"},{type:"delete",label:"Delete",callback:()=>{this.app.chartManager.loadedSM.removeChart(e)&&(this.app.chartManager.loadChart(),this.gameType=this.app.chartManager.loadedChart?.gameType??this.gameType,this.loadCharts())}}]))},p.classList.add("delete"),d.append(p),this.chartInfo.replaceChildren(i,a,l,h,d)}}var U3=4,H3=.001,G3=1e-7,V3=10,ga=11,Yo=1/(ga-1),z3=typeof Float32Array=="function";function ay(r,e){return 1-3*e+3*r}function oy(r,e){return 3*e-6*r}function ly(r){return 3*r}function Ul(r,e,t){return((ay(e,t)*r+oy(e,t))*r+ly(e))*r}function hy(r,e,t){return 3*ay(e,t)*r*r+2*oy(e,t)*r+ly(e)}function W3(r,e,t,i,s){var n,a,o=0;do a=e+(t-e)/2,n=Ul(a,i,s)-r,n>0?t=a:e=a;while(Math.abs(n)>G3&&++o=H3?$3(l,f,e,i):p===0?f:W3(l,c,c+Yo,e,i)}return function(c){return c===0?0:c===1?1:Ul(o(c),t,s)}};const Sr=Xa(q3),Y3=Sr(0,0,1,1);function Rm(r,e){const t=e?e.split("."):[];for(;t.length&&r;){const i=t.shift(),s=new RegExp("(.+)\\[([0-9]*)\\]").exec(i);if(s!==null&&s.length==3){const n={arrName:s[1],arrIndex:s[2]};r[n.arrName]!==void 0?r=r[n.arrName][n.arrIndex]:r=void 0;continue}r=r[i]}return r}function X3(r,e,t){const i=e?e.split("."):[];for(;i.length&&r;){const s=i.shift(),n=new RegExp("(.+)\\[([0-9]*)\\]").exec(s);if(n!==null&&n.length==3){const a={arrName:n[1],arrIndex:n[2]};r[a.arrName]!==void 0&&i.length===0&&(r[a.arrName][a.arrIndex]=t);continue}r[s]===void 0&&(r[s]={}),i.length===0&&(r[s]=t),r=r[s]}return r}const Yr=class Yr{static updateObject(e,t,i){const s=Object.keys(t).sort((o,l)=>parseFloat(o)-parseFloat(l));let n="0";for(let o=s.length-2;o>=0;o--)if(parseFloat(s[o])<=i){n=s[o];break}let a="1";for(let o=1;oi){a=s[o];break}Object.keys(t[0]).forEach(o=>{let l=t[n][o],c=t[a][o];l==="inherit"&&(t[n][o]=Rm(e,o),l=t[n][o]),c==="inherit"&&(t[a][o]=Rm(e,o),c=t[a][o]);const u=l+(i-parseFloat(n))/(parseFloat(a)-parseFloat(n))*(c-l);X3(e,o,u)})}static stop(e,t=null){e!==void 0&&(t!==null&&this.animations.get(e)?.obj&&!this.animations.get(e).obj.destroyed&&this.updateObject(this.animations.get(e).obj,this.animations.get(e).animation,t),this.animations.delete(e))}static finish(e){e!==void 0&&this.stop(e,1)}static animate(e,t,i,s,n=()=>{},a){return a||=`${++this._id}`,this.animations.set(a,{obj:e,animation:t,seconds:1/(60*i),progress:0,curve:s!==void 0?s:Y3,onend:n}),a}};Ys(Yr,"animations",new Map),Ys(Yr,"_id",0),It.shared.add(e=>{for(const[t,i]of Yr.animations.entries())i.obj._destroyed?Yr.stop(t):(i.progress=Math.min(1,i.progress+i.seconds*e),Yr.updateObject(i.obj,i.animation,i.curve(i.progress)),i.progress>=1&&(i.onend(i.obj),Yr.stop(t,1)))});let mi=Yr;const Fm=["accent-color","editor-bg","widget-bg","editable-overlay-hover","editable-overlay-active","text-color","text-color-secondary","text-color-detail","text-color-disabled","primary-bg","primary-border","primary-bg-active","primary-bg-hover","secondary-bg","secondary-border","secondary-bg-active","secondary-bg-hover","tooltip-bg","input-bg","input-bg-active","input-bg-hover","input-border","navbar-bg","navbar-bg-inactive","window-bg","window-border"],K3=["primary-bg","secondary-bg","text-color","accent-color","widget-bg","editor-bg","editable-overlay-active","input-bg","window-bg"],Z3=[{name:"primary-bg",ids:[{id:"primary-bg",label:"base"},{id:"primary-bg-active",label:"active"},{id:"primary-bg-hover",label:"hover"},{id:"primary-border",label:"border"}]},{name:"secondary-bg",ids:[{id:"secondary-bg",label:"base"},{id:"secondary-bg-active",label:"active"},{id:"secondary-bg-hover",label:"hover"},{id:"secondary-border",label:"border"}]},{name:"text-color",ids:[{id:"text-color",label:"primary"},{id:"text-color-secondary",label:"secondary"},{id:"text-color-detail",label:"detail"},{id:"text-color-disabled",label:"disabled"}]},{name:"other",ids:[{id:"accent-color",label:"accent-color"},{id:"widget-bg",label:"widget-bg"},{id:"tooltip-bg",label:"tooltip-bg"},{id:"editor-bg",label:"editor-bg"}]},{name:"editable-overlay",ids:[{id:"editable-overlay-hover",label:"hover"},{id:"editable-overlay-active",label:"active"}]},{name:"input",ids:[{id:"input-bg",label:"background"},{id:"input-bg-active",label:"active"},{id:"input-bg-hover",label:"hover"},{id:"input-border",label:"border"}]},{name:"window",ids:[{id:"window-bg",label:"background"},{id:"window-border",label:"border"}]},{name:"window-navbar",ids:[{id:"navbar-bg",label:"active"},{id:"navbar-bg-inactive",label:"inactive"}]}],Lm={"accent-color":"Color used for focus input rings, confirm buttons","text-color":"Base text color","text-color-secondary":"Secondary text color, used for text in recent files, menubar keybinds","text-color-detail":"Detail text color, used for text in timing event boxes","text-color-disabled":"Used for texts relating to empty/disabled things (ex. no files in directory picker)","primary-bg":"Primary background, used for menubar, context/dropdown menus","primary-border":"","primary-bg-active":"","primary-bg-hover":"","navbar-bg":"Window navbar background","navbar-bg-inactive":"","window-bg":"Window background","window-border":"","secondary-bg":"Secondary background, used for subareas in menus","secondary-border":"","secondary-bg-active":"","secondary-bg-hover":"","editable-overlay-hover":"Overlay on top of editable items (status widget buttons, playback option toggles, textareas)","editable-overlay-active":"","input-bg":"Background color for input","input-bg-active":"","input-bg-hover":"","input-border":"","widget-bg":"Widget background","tooltip-bg":"Color of these tooltips","editor-bg":"Editor background"},_c={"primary-bg":{"primary-border":function(r){return this.lighten(r,10).setAlpha(187/255)},"primary-bg-active":function(r){return this.lighten(r,10)},"primary-bg-hover":function(r){return this.lighten(r,30)},"widget-bg":function(r){return this.add(r,-50).setAlpha(136/255)},"window-bg":function(r){return this.lighten(r,-10)},"text-color":function(r){return this.average(r)>.5?new P("#000"):new P("#fff")},"input-bg":function(r){return this.average(r)<.5?new P("#000"):new P("#fff")},"input-border":function(r){return this.average(r)>.5?this.add(r,-30).setAlpha(119/255):this.add(r,30).setAlpha(119/255)},"tooltip-bg":function(r){return this.lighten(r,-10).setAlpha(238/255)},"secondary-bg":function(r){return this.lighten(r,-20)},"editor-bg":function(r){return this.lighten(r,-60)}},"window-bg":{"navbar-bg":function(r){return new P(r)}},"secondary-bg":{"secondary-border":function(r){return this.lighten(r,10).setAlpha(187/255)},"secondary-bg-active":function(r){return this.lighten(r,50)},"secondary-bg-hover":function(r){return this.lighten(r,30)}},"navbar-bg":{"navbar-bg-inactive":function(r){return this.lighten(r,-33)}},"text-color":{"text-color-secondary":function(r){return new P(r).setAlpha(119/255)},"text-color-detail":function(r){return new P(r).setAlpha(68/255)},"text-color-disabled":function(r){return new P(r).setAlpha(136/255)}},"input-bg":{"input-border":function(r){return this.lighten(r,10).setAlpha(187/255)},"input-bg-active":function(r){return this.lighten(r,50)},"input-bg-hover":function(r){return this.lighten(r,30)}}},Cs={default:{"accent-color":new P("rgb(23, 131, 208)"),"text-color":new P("#fff"),"text-color-secondary":new P("#888"),"text-color-detail":new P("#757a89"),"text-color-disabled":new P("#888"),"primary-bg":new P("#555"),"primary-border":new P("#444"),"primary-bg-active":new P("#575757"),"primary-bg-hover":new P("#666"),"navbar-bg":new P("#3d3d3d"),"navbar-bg-inactive":new P("#626262"),"window-bg":new P("#3d3d3d"),"window-border":new P("#00000000"),"secondary-bg":new P("#373737"),"secondary-border":new P("#333"),"secondary-bg-active":new P("#555"),"secondary-bg-hover":new P("#454545"),"editable-overlay-hover":new P("rgb(255, 255, 255, 0.1)"),"editable-overlay-active":new P("rgb(255, 255, 255, 0.2)"),"input-bg":new P("rgba(35, 35, 35, 0.309)"),"input-bg-active":new P("rgba(50, 50, 50, 0.309)"),"input-bg-hover":new P("rgba(79, 79, 79, 0.309)"),"input-border":new P("rgba(0, 0, 0, 0.3)"),"widget-bg":new P("rgba(0, 0, 0, 0.5)"),"tooltip-bg":new P("rgba(20, 20, 20, 0.95)"),"editor-bg":new P("#18191c")},dusk:{"accent-color":new P("#b34e97ff"),"text-color":new P("#ffffffff"),"text-color-secondary":new P("#ffffff77"),"text-color-detail":new P("#ffffff44"),"text-color-disabled":new P("#ffffff88"),"primary-bg":new P("#1b0131ff"),"primary-border":new P("#1e0136bb"),"primary-bg-active":new P("#2f0057ff"),"primary-bg-hover":new P("#230140ff"),"navbar-bg":new P("#18012cff"),"navbar-bg-inactive":new P("#10011dff"),"window-bg":new P("#18012cff"),"window-border":new P("#00000000"),"secondary-bg":new P("#160127ff"),"secondary-border":new P("#18012bbb"),"secondary-bg-active":new P("#310a52ff"),"secondary-bg-hover":new P("#25033fff"),"editable-overlay-hover":new P("#e79dff1a"),"editable-overlay-active":new P("#e79dff33"),"input-bg":new P("#000000ff"),"input-bg-active":new P("#000000ff"),"input-bg-hover":new P("#000000ff"),"input-border":new P("#391f4f77"),"widget-bg":new P("#00000088"),"tooltip-bg":new P("#18012cee"),"editor-bg":new P("#0b0014ff")},nord:{"accent-color":new P("#1783d0ff"),"text-color":new P("#d9dee8ff"),"text-color-secondary":new P("#d9dee878"),"text-color-detail":new P("#d9dee845"),"text-color-disabled":new P("#d9dee887"),"primary-bg":new P("#2e3440ff"),"primary-border":new P("#323946ba"),"primary-bg-active":new P("#636d83ff"),"primary-bg-hover":new P("#485061ff"),"navbar-bg":new P("#292e39ff"),"navbar-bg-inactive":new P("#2f333cff"),"window-bg":new P("#292e39ff"),"window-border":new P("#00000000"),"secondary-bg":new P("#242933ff"),"secondary-border":new P("#272d38ba"),"secondary-bg-active":new P("#444d5fff"),"secondary-bg-hover":new P("#3f4755ff"),"editable-overlay-hover":new P("#ffffff1a"),"editable-overlay-active":new P("#ffffff33"),"input-bg":new P("#1212124f"),"input-bg-active":new P("#141414ff"),"input-bg-hover":new P("#171717ff"),"input-border":new P("#121212ff"),"widget-bg":new P("#00020e87"),"tooltip-bg":new P("#292e39ed"),"editor-bg":new P("#18191cff")},light:{"accent-color":new P("#ff594cff"),"text-color":new P("#000000ff"),"text-color-secondary":new P("#00000078"),"text-color-detail":new P("#00000045"),"text-color-disabled":new P("#00000087"),"primary-bg":new P("#ffffffff"),"primary-border":new P("#b5b5b5ff"),"primary-bg-active":new P("#ebebebff"),"primary-bg-hover":new P("#ffd4d1ff"),"navbar-bg":new P("#edededff"),"navbar-bg-inactive":new P("#d1d1d1ff"),"window-bg":new P("#edededff"),"window-border":new P("#00000000"),"secondary-bg":new P("#d9d9d9ff"),"secondary-border":new P("#c7c7c7ff"),"secondary-bg-active":new P("#f0f0f0ff"),"secondary-bg-hover":new P("#e3e3e3ff"),"editable-overlay-hover":new P("#ff594c3d"),"editable-overlay-active":new P("#ff594c73"),"input-bg":new P("#ebebebff"),"input-bg-active":new P("#e0e0e0ff"),"input-bg-hover":new P("#ffffffff"),"input-border":new P("#9e9e9eff"),"widget-bg":new P("#f7f7f7e5"),"tooltip-bg":new P("#ffffffff"),"editor-bg":new P("#cfcfcfff")},rust:{"accent-color":new P("#b37100ff"),"text-color":new P("#ffd7bdf2"),"text-color-secondary":new P("#ffd7bd78"),"text-color-detail":new P("#ffd7bd45"),"text-color-disabled":new P("#ffd7bd87"),"primary-bg":new P("#3c2e2aff"),"primary-border":new P("#42332eff"),"primary-bg-active":new P("#68524bff"),"primary-bg-hover":new P("#4e3c37ff"),"navbar-bg":new P("#362926ff"),"navbar-bg-inactive":new P("#241b19ff"),"window-bg":new P("#58413cff"),"window-border":new P("#00000000"),"secondary-bg":new P("#40302ba1"),"secondary-border":new P("#46352fff"),"secondary-bg-active":new P("#614a42ff"),"secondary-bg-hover":new P("#533e38ff"),"editable-overlay-hover":new P("#fff8e01a"),"editable-overlay-active":new P("#fff8e033"),"input-bg":new P("#231515ff"),"input-bg-active":new P("#271717ff"),"input-bg-hover":new P("#2e1b1bff"),"input-border":new P("#4b413fff"),"widget-bg":new P("#311e1cdd"),"tooltip-bg":new P("#362926ff"),"editor-bg":new P("#181211ff")},tron:{"accent-color":new P("#00ccffff"),"text-color":new P("#ffffffff"),"text-color-secondary":new P("#ffffffe4"),"text-color-detail":new P("#ffffff5b"),"text-color-disabled":new P("#ffffff88"),"primary-bg":new P("#000000ff"),"primary-border":new P("#ff7b00c9"),"primary-bg-active":new P("#00e1ff98"),"primary-bg-hover":new P("#ff751a5a"),"navbar-bg":new P("#000000ff"),"navbar-bg-inactive":new P("#000000ff"),"window-bg":new P("#000000ff"),"window-border":new P("#ff880085"),"secondary-bg":new P("#121212ff"),"secondary-border":new P("#ff8800aa"),"secondary-bg-active":new P("#00e1ffa3"),"secondary-bg-hover":new P("#ff7e145a"),"editable-overlay-hover":new P("#ffffff1a"),"editable-overlay-active":new P("#ffffff33"),"input-bg":new P("#000000ff"),"input-bg-active":new P("#000000ff"),"input-bg-hover":new P("#000000ff"),"input-border":new P("#1e1e1eff"),"widget-bg":new P("#000000ad"),"tooltip-bg":new P("#000000ff"),"editor-bg":new P("#000000ff")},gilded:{"accent-color":new P("#ffc014ff"),"text-color":new P("#e6e6e6ff"),"text-color-secondary":new P("#ffffff6b"),"text-color-detail":new P("#e6e6e645"),"text-color-disabled":new P("#e6e6e687"),"primary-bg":new P("#232325ff"),"primary-border":new P("#272729ff"),"primary-bg-active":new P("#ffc0145b"),"primary-bg-hover":new P("#ffc01421"),"navbar-bg":new P("#202021ff"),"navbar-bg-inactive":new P("#151516ff"),"window-bg":new P("#202021ff"),"window-border":new P("#00000000"),"secondary-bg":new P("#1c1c1eff"),"secondary-border":new P("#1f1f21ff"),"secondary-bg-active":new P("#1f1f21ff"),"secondary-bg-hover":new P("#242427ff"),"editable-overlay-hover":new P("#ffffff1a"),"editable-overlay-active":new P("#ffffff33"),"input-bg":new P("#0d0d0dff"),"input-bg-active":new P("#0e0e0eff"),"input-bg-hover":new P("#111111ff"),"input-border":new P("#0e0e0eff"),"widget-bg":new P("#171717db"),"tooltip-bg":new P("#202021ff"),"editor-bg":new P("#0e0e0fff")}};class $e{static _themes=Cs;static _userThemes={};static _initialized=!1;static style;static currentTheme;static initialize(){this._createThemeStyle(),this._loadUserThemes(),this._initialized=!0}static _createThemeStyle(){const e=document.createElement("style");document.getElementsByTagName("head")[0].appendChild(e),this.style=e}static _loadUserThemes(){let e={};try{e=JSON.parse(localStorage.getItem("themes")??"{}")}catch{console.warn("Error loading user themes")}const t={};for(const[i,s]of Object.entries(e))t[i]=this.validateTheme(s);this._userThemes=t}static _saveUserThemes(){const e=Object.fromEntries(Object.entries(this._userThemes).map(([t,i])=>[t,this.convertThemeToString(i)]));localStorage.setItem("themes",JSON.stringify(e))}static validateTheme(e){const t={...Cs.default};if(typeof e!="object")return t;for(const i of Fm)if(e[i]!==void 0)try{t[i]=new P(e[i])}catch{console.warn(`Invalid color ${e[i]} for ${i}`)}return t}static getThemes(){return{...this._themes,...this._userThemes}}static getBuiltinThemes(){return this._themes}static getUserThemes(){return this._userThemes}static loadTheme(e){this._initialized||this.initialize();let t=this.getThemes()[e];t||(Ee.createFormatted("Error loading theme: Invalid theme id","error"),t=Cs.default),x.general.theme=e,this._applyTheme(t)}static _applyTheme(e){const t=`body{${Fm.map(i=>`--${i}: ${(e[i]??Cs.default[i]).toHexa()};`).join("")}}`;this.style.innerHTML=t,this.currentTheme={...e},H.emit("themeChanged")}static loadThemeFromColors(e){this._applyTheme(this.validateTheme(e))}static getCurrentTheme(){return this.currentTheme}static convertThemeToString(e){return Object.fromEntries(Object.entries(e).map(([t,i])=>[t,i.toHexa()]))}static exportCurrentTheme(e){return e={code:!1,spaces:!1,...e},e.code?JSON.stringify(Object.fromEntries(Object.entries(this.currentTheme).map(([t,i])=>[t,`^new Color('${i.toHexa()}')^`])),null,e.spaces?2:0).replaceAll('"^',"").replaceAll('^"',""):JSON.stringify(this.convertThemeToString(this.currentTheme),null,e.spaces?2:0)}static createUserTheme(e,t){this.getThemes()[e]===void 0&&(t?this._userThemes[e]={...t}:this._userThemes[e]={...Cs.default},this._saveUserThemes())}static setUserTheme(e,t){this._userThemes[e]!==void 0&&(this._userThemes[e]={...t},this._saveUserThemes())}static deleteUserTheme(e){this._userThemes[e]!==void 0&&(delete this._userThemes[e],this.loadTheme("default"),this._saveUserThemes())}static renameUserTheme(e,t){this._userThemes[e]!==void 0&&this.getThemes()[t]===void 0&&(this._userThemes[t]=this._userThemes[e],delete this._userThemes[e],this._saveUserThemes())}static parseThemeText(e){let t;try{t=JSON.parse(e)}catch{return null}return this.validateTheme(t)}static getColor(e){return this.currentTheme?.[e]??Cs.default[e]}}function Hd(r,e,t){return(r<<16)+(e<<8)+t}function Gd(r,e){let t=r>>16,i=r>>8&255,s=r&255;return t=Oe(Math.round(t*e),0,255),i=Oe(Math.round(i*e),0,255),s=Oe(Math.round(s*e),0,255),Hd(t,i,s)}function J3(r,e){let t=r>>16,i=r>>8&255,s=r&255;return t=Oe(Math.round(t+e),0,255),i=Oe(Math.round(i+e),0,255),s=Oe(Math.round(s+e),0,255),Hd(t,i,s)}function Wu(r){return(r.red+r.green+r.blue)/3}function Hl(r,e,t){const[i,s,n]=r.match(/\w\w/g).map(d=>parseInt(d,16)),[a,o,l]=e.match(/\w\w/g).map(d=>parseInt(d,16)),c=Math.round(i+(a-i)*t).toString(16).padStart(2,"0"),u=Math.round(s+(o-s)*t).toString(16).padStart(2,"0"),h=Math.round(n+(l-n)*t).toString(16).padStart(2,"0");return"#"+c+u+h}function Xi(r,e,t){const i=$t(r.red,e.red,t),s=$t(r.green,e.green,t),n=$t(r.blue,e.blue,t),a=$t(r.alpha,e.alpha,t);return new P([i,s,n,a])}const Da=new Map;H.on("themeChanged",()=>{for(const[r,e]of Da.entries()){const t=$e.getColor(r);e.forEach(i=>{i.destroyed||(i.tint=t.toNumber(),i.alpha=t.alpha)}),Da.set(r,e.filter(i=>!i.destroyed))}});function et(r,e){Da.has(e)||Da.set(e,[]),Da.get(e).push(r);const t=$e.getColor(e);r.tint=t.toNumber(),r.alpha=t.alpha}function Ec(r){const{r:e,g:t,b:i,a:s}=r.toRgba(),n=Math.max(e,t,i),a=Math.min(e,t,i);let o=0,l=0;const c=(n+a)/2;if(n==a)o=l=0;else{const u=n-a;switch(l=c>.5?u/(2-n-a):u/(n+a),n){case e:o=(t-i)/u+(tVd(e)),Q3=new Float32Array(Gl);function Vl(r){return Math.log(r/20)/Math.log(1102.5)*Hs}function Vd(r){return Math.pow(1102.5,r/Hs)*20}function Is(r){return-r*6+Ft/2}function Nm(r){return-(r-Ft/2)/6}class ek extends Tt{app;cachedReponse=new Array(Hs).fill(0);onAudioLoad=this.onAudio.bind(this);onThemeChange=this.changeHTMLColors.bind(this);points=[];icons;info;trackedFilter=null;constructor(e){super({title:"Audio Equalizer",width:600,height:245,win_id:"audio-eq"}),this.app=e,this.initView(),this.onAudioLoad(),H.on("audioLoaded",this.onAudioLoad),H.on("themeChanged",this.onThemeChange)}destroy(){H.off("audioLoaded",this.onAudioLoad),H.off("themeChanged",this.onThemeChange)}initView(){this.viewElement.replaceChildren();const e=document.createElement("div");e.classList.add("eq-container");const t=document.createElement("div");t.classList.add("icon-container"),this.app.chartManager.chartAudio.getFilters().forEach((v,y)=>{const E=Ce.getIcon(v.type.toUpperCase(),36,24,Ss[y]);E.classList.add("eq-icon"),E.style.backgroundColor=`${Ss[y]}40`,E.onclick=()=>{this.app.chartManager.chartAudio.getFilter(y).enabled?this.app.chartManager.chartAudio.disableFilter(y):this.app.chartManager.chartAudio.enableFilter(y),this.endTrack(),this.updateIcons()},E.onmouseenter=()=>this.points[y].highlight(),E.onmouseleave=()=>this.points[y].unhighlight(),t.appendChild(E)}),this.icons=t,this.updateIcons();const i=document.createElement("canvas");i.style.width="600px",i.style.height="200px",i.onmousedown=v=>{const y=this.points.filter(E=>E.hitTest(v.offsetX*2,v.offsetY*2)).at(-1);this.endTrack(),y?.mouseDown(v)};const s=document.createElement("div");s.classList.add("eq-info-container");const n=document.createElement("div");n.classList.add("eq-info");const a=document.createElement("div");a.innerText="Type",a.classList.add("eq-info-label");const o=document.createElement("div");o.classList.add("eq-info-value"),n.replaceChildren(a,o);const l=document.createElement("div");l.classList.add("eq-info");const c=document.createElement("div");c.innerText="Frequency",c.classList.add("eq-info-label");const u=document.createElement("div");u.contentEditable="false",u.classList.add("eq-info-value","inlineEdit"),l.replaceChildren(c,u),this.setupInput(u,"frequency",20,22050," Hz");const h=document.createElement("div");h.classList.add("eq-info");const d=document.createElement("div");d.innerText="Gain",d.classList.add("eq-info-label");const f=document.createElement("div");f.contentEditable="false",f.classList.add("eq-info-value","inlineEdit"),h.replaceChildren(d,f),this.setupInput(f,"gain",-24,24," dB",1);const p=document.createElement("div");p.classList.add("eq-info");const m=document.createElement("div");m.innerText="Q",m.classList.add("eq-info-label");const g=document.createElement("div");g.contentEditable="false",g.classList.add("eq-info-value","inlineEdit"),p.replaceChildren(m,g),this.setupInput(g,"Q",1e-4,1e3,"",4);const b=document.createElement("div");b.classList.add("eq-reset","disabled"),b.innerText="Reset",b.onclick=()=>{if(this.trackedFilter==null)for(let v=0;v{o=this.app.chartManager.chartAudio.getFilter(this.trackedFilter)[t].value,e.innerText=ae(o,a)+"",this.selectText(e)},e.onkeydown=l=>{if(l.key=="Enter"){e.blur();return}if(l.key=="Tab"){const u=[...e.parentElement.parentElement.children],h=u.indexOf(e.parentElement);for(let d=1;d{const c=Na(e.innerText);c!==null&&(this.app.chartManager.chartAudio.updateFilter(this.trackedFilter,{[t]:Oe(c,i,s)}),this.points[this.trackedFilter].refreshPoint(),this.getResponse())})},e.onblur=()=>{Na(e.innerText)===null&&(this.app.chartManager.chartAudio.updateFilter(this.trackedFilter,{[t]:Oe(o,i,s)}),this.points[this.trackedFilter].refreshPoint(),this.getResponse()),e.innerText=ae(this.app.chartManager.chartAudio.getFilter(this.trackedFilter)[t].value,a)+n}}onAudio(){this.points=this.app.chartManager.chartAudio.getFilters().map((e,t)=>new tk(this,t)),this.getResponse(),this.updateIcons(),this.endTrack()}getResponse(){this.cachedReponse=this.app.chartManager.chartAudio.getFrequencyResponse(Gl)}drawEQ(e){const t=e.getContext("2d");t.canvas.width=1200,t.canvas.height=400;const i=()=>{if(!this.app.chartManager.chartAudio)return;const s=t.createRadialGradient(e.width/2,e.height/2,0,e.width/2,e.height/2,e.width/2);let n,a;const o=$e.getColor("accent-color");Wu($e.getColor("primary-bg"))>.5?(n=new P("white"),a=new P("black")):(n=new P("black"),a=new P("white"));const l=Xi(o,n,.95);s.addColorStop(0,Xi(o,n,.9).toHexa()),s.addColorStop(1,l.toHexa()),t.fillStyle=s,t.fillRect(0,0,e.width,e.height),t.fillStyle=Xi(o,n,.2).toHex(),this.drawFrequencies(t,this.app.chartManager.chartAudio.getFrequencyData()),this.app.chartManager.chartAudio.hasFilters()&&(t.fillStyle=Xi(o,a,.2).toHex()+"50",this.drawFrequencies(t,this.app.chartManager.chartAudio.getFilteredFrequencyData())),t.fillStyle="rgba(200, 200, 200, 0.5)",this.drawResponse(t),t.fillStyle=Xi(o,a,.2).toHex()+"80",t.font="22px Assistant",this.drawGrid(t),this.points.forEach(c=>c.draw(t)),e.closest("#windows")&&requestAnimationFrame(i)};return i}drawFrequencies(e,t){for(let i=0;i.5?e=new P("white"):e=new P("black");const i=Xi(t,e,.95),s=Xi(t,e,.5);this.icons.style.backgroundColor=i.toHexa(),this.icons.style.borderImageSource=`linear-gradient(to right, ${i.toHexa()}, ${s.toHexa()}, ${i.toHexa()})`,this.info.style.backgroundColor=i.toHexa(),this.info.style.borderImageSource=`linear-gradient(to right, ${i.toHexa()}, ${s.toHexa()}, ${i.toHexa()})`,this.info.style.color=t.toHexa()}updateIcons(){[...this.icons.children].forEach((e,t)=>{this.app.chartManager.chartAudio.getFilter(t).enabled?e.classList.remove("disabled"):e.classList.add("disabled")}),this.getResponse()}trackFilter(e){this.trackedFilter=e;const t=this.app.chartManager.chartAudio.getFilter(e),[i,s,n,a]=[...this.info.children].map(o=>o.children[1]);i.innerText=t.type,s.innerText=Math.round(t.frequency.value)+" Hz",n.innerText=t.type.endsWith("pass")?"-":ae(t.gain.value,1)+" dB",a.innerText=t.type.endsWith("shelf")?"-":ae(t.Q.value,2)+"",i.style.color=Ss[e],s.style.color=Ss[e],n.style.color=Ss[e],a.style.color=Ss[e],s.contentEditable="true",n.contentEditable=`${!t.type.endsWith("pass")}`,a.contentEditable=`${!t.type.endsWith("shelf")}`}endTrack(){setTimeout(()=>{this.trackedFilter=null,this.points.forEach(n=>n.unhighlight());const[e,t,i,s]=[...this.info.children].map(n=>n.children[1]);e.innerText="",t.innerText="",i.innerText="",s.innerText="",t.contentEditable="false",i.contentEditable="false",s.contentEditable="false"})}}const Ko=16,Ss=["#a3001b","#a34f00","#d6d606","#19c402","#02c4ba","#022fc4","#5602c4","#c402b4"];class tk{filterIndex;window;dragging=!1;x=0;y=0;type;response=new Float32Array(Gl.length);_empty=new Float32Array(Gl.length);highlighted=!1;pointSize=.4;constructor(e,t){this.filterIndex=t,this.window=e,this.type=this.window.app.chartManager.chartAudio.getFilter(t).type,this.x=Vl(this.window.app.chartManager.chartAudio.getFilter(t).frequency.value??10),this.getY()}hitTest(e,t){return(e-this.x)*(e-this.x)+(t-this.y)*(t-this.y)<=Ko*Ko}canChangeGain(){return this.type=="lowshelf"||this.type=="highshelf"||this.type=="peaking"}canChangeQ(){return!this.type.endsWith("shelf")}getY(){this.type.endsWith("shelf")?this.y=Is((this.window.app.chartManager.chartAudio.getFilter(this.filterIndex).gain.value??0)/2):this.canChangeGain()?this.y=Is(this.window.app.chartManager.chartAudio.getFilter(this.filterIndex).gain.value??0):this.y=Ft/2}getGain(){if(this.canChangeGain())return this.type.endsWith("shelf")?Nm(this.y)*2:Nm(this.y)}mouseDown(e){this.calcResponse(),this.dragging=!0,this.highlighted=!0,this.window.app.chartManager.chartAudio.getFilter(this.filterIndex).enabled||(this.window.app.chartManager.chartAudio.enableFilter(this.filterIndex),this.window.updateIcons());const t=this.x,i=this.y,s=e.clientX,n=e.clientY,a=l=>{this.x=(l.clientX-s)*2+t,this.canChangeGain()?this.y=(l.clientY-n)*2+i:this.y=Ft/2,this.x=Oe(this.x,0,Hs),this.y=Oe(this.y,this.type.endsWith("shelf")?Ft/4:Is(24),this.type.endsWith("shelf")?3*Ft/4:Is(-24)),this.window.app.chartManager.chartAudio.updateFilter(this.filterIndex,{frequency:Vd(this.x),gain:this.getGain()}),this.window.getResponse(),this.window.trackFilter(this.filterIndex),this.calcResponse()};this.window.trackFilter(this.filterIndex);const o=()=>{mi.animate(this,{0:{pointSize:"inherit"},1:{pointSize:.3}},.3,Sr(.11,.71,.41,.86),()=>{},`eq-point${this.filterIndex}`),this.dragging=!1,window.removeEventListener("mousemove",a),window.removeEventListener("mouseup",o)};mi.animate(this,{0:{pointSize:"inherit"},1:{pointSize:.9}},.3,Sr(.11,.71,.41,.86),()=>{},`eq-point${this.filterIndex}`),window.addEventListener("mousemove",a),window.addEventListener("mouseup",o)}calcResponse(){this.window.app.chartManager.chartAudio.getFilter(this.filterIndex).getFrequencyResponse(Q3,this.response,this._empty)}draw(e){const t=this.highlighted||this.window.app.chartManager.chartAudio.getFilter(this.filterIndex).enabled?Ss[this.filterIndex]:"#888888";if(e.fillStyle=t+"60",this.dragging)for(let i=0;i{navigator.clipboard.writeText(s.innerText)}),this.outputDiv=s;const n=document.createElement("div");n.classList.add("export-section-label"),n.innerText="Include",i.appendChild(n),Object.keys(this.exportOptions.include).forEach(o=>{const l=document.createElement("input");l.type="checkbox",l.id="en-i-"+o,l.checked=this.exportOptions.include[o],l.onchange=()=>{this.exportOptions.include[o]=l.checked,this.export()};const c=document.createElement("label");c.classList.add("export-label"),c.htmlFor=l.id,c.innerText=o;const u=document.createElement("div");u.replaceChildren(l,c),u.classList.add("export-option"),i.appendChild(u)});const a=document.createElement("div");a.classList.add("export-section-label"),a.innerText="Options",i.appendChild(a),Object.keys(this.exportOptions.options).forEach(o=>{const l=document.createElement("input");l.id="en-o-"+o,l.type="checkbox",l.checked=this.exportOptions.options[o],l.onchange=()=>{this.exportOptions.options[o]=l.checked,this.export()};const c=document.createElement("label");c.classList.add("export-label"),c.htmlFor=l.id,c.innerText=Tc[o].label;const u=document.createElement("div");u.replaceChildren(l,c),u.classList.add("export-option"),i.appendChild(u),Tc[o].tooltip!==void 0&&Ze(u,{content:Tc[o].tooltip})}),t.replaceChildren(i,s),e.appendChild(t),this.viewElement.appendChild(e)}export(){let e=`{ +\0`,Q+=n(O,2),Q+=C.magic,Q+=n(v,2),Q+=n(y,2),Q+=n(z.crc32,4),Q+=n(z.compressedSize,4),Q+=n(z.uncompressedSize,4),Q+=n(B.length,2),Q+=n(R.length,2),{fileRecord:h.LOCAL_FILE_HEADER+Q+B+R,dirRecord:h.CENTRAL_FILE_HEADER+n(ie,2)+Q+n(V.length,2)+"\0\0\0\0"+n(N,4)+n(g,4)+B+R+V}}var o=t("../utils"),l=t("../stream/GenericWorker"),c=t("../utf8"),u=t("../crc32"),h=t("../signature");function d(f,p,m,g){l.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=p,this.zipPlatform=m,this.encodeFileName=g,this.streamFiles=f,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}o.inherits(d,l),d.prototype.push=function(f){var p=f.meta.percent||0,m=this.entriesCount,g=this._sources.length;this.accumulate?this.contentBuffer.push(f):(this.bytesWritten+=f.data.length,l.prototype.push.call(this,{data:f.data,meta:{currentFile:this.currentFile,percent:m?(p+100*(m-g-1))/m:100}}))},d.prototype.openedSource=function(f){this.currentSourceOffset=this.bytesWritten,this.currentFile=f.file.name;var p=this.streamFiles&&!f.file.dir;if(p){var m=a(f,p,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:m.fileRecord,meta:{percent:0}})}else this.accumulate=!0},d.prototype.closedSource=function(f){this.accumulate=!1;var p=this.streamFiles&&!f.file.dir,m=a(f,p,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(m.dirRecord),p)this.push({data:function(g){return h.DATA_DESCRIPTOR+n(g.crc32,4)+n(g.compressedSize,4)+n(g.uncompressedSize,4)}(f),meta:{percent:100}});else for(this.push({data:m.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},d.prototype.flush=function(){for(var f=this.bytesWritten,p=0;p=this.index;l--)c=(c<<8)+this.byteAt(l);return this.index+=o,c},readString:function(o){return n.transformTo("string",this.readData(o))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var o=this.readInt(4);return new Date(Date.UTC(1980+(o>>25&127),(o>>21&15)-1,o>>16&31,o>>11&31,o>>5&63,(31&o)<<1))}},i.exports=a},{"../utils":32}],19:[function(t,i,s){var n=t("./Uint8ArrayReader");function a(o){n.call(this,o)}t("../utils").inherits(a,n),a.prototype.readData=function(o){this.checkOffset(o);var l=this.data.slice(this.zero+this.index,this.zero+this.index+o);return this.index+=o,l},i.exports=a},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(t,i,s){var n=t("./DataReader");function a(o){n.call(this,o)}t("../utils").inherits(a,n),a.prototype.byteAt=function(o){return this.data.charCodeAt(this.zero+o)},a.prototype.lastIndexOfSignature=function(o){return this.data.lastIndexOf(o)-this.zero},a.prototype.readAndCheckSignature=function(o){return o===this.readData(4)},a.prototype.readData=function(o){this.checkOffset(o);var l=this.data.slice(this.zero+this.index,this.zero+this.index+o);return this.index+=o,l},i.exports=a},{"../utils":32,"./DataReader":18}],21:[function(t,i,s){var n=t("./ArrayReader");function a(o){n.call(this,o)}t("../utils").inherits(a,n),a.prototype.readData=function(o){if(this.checkOffset(o),o===0)return new Uint8Array(0);var l=this.data.subarray(this.zero+this.index,this.zero+this.index+o);return this.index+=o,l},i.exports=a},{"../utils":32,"./ArrayReader":17}],22:[function(t,i,s){var n=t("../utils"),a=t("../support"),o=t("./ArrayReader"),l=t("./StringReader"),c=t("./NodeBufferReader"),u=t("./Uint8ArrayReader");i.exports=function(h){var d=n.getTypeOf(h);return n.checkSupport(d),d!=="string"||a.uint8array?d==="nodebuffer"?new c(h):a.uint8array?new u(n.transformTo("uint8array",h)):new o(n.transformTo("array",h)):new l(h)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(t,i,s){s.LOCAL_FILE_HEADER="PK",s.CENTRAL_FILE_HEADER="PK",s.CENTRAL_DIRECTORY_END="PK",s.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",s.ZIP64_CENTRAL_DIRECTORY_END="PK",s.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(t,i,s){var n=t("./GenericWorker"),a=t("../utils");function o(l){n.call(this,"ConvertWorker to "+l),this.destType=l}a.inherits(o,n),o.prototype.processChunk=function(l){this.push({data:a.transformTo(this.destType,l.data),meta:l.meta})},i.exports=o},{"../utils":32,"./GenericWorker":28}],25:[function(t,i,s){var n=t("./GenericWorker"),a=t("../crc32");function o(){n.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}t("../utils").inherits(o,n),o.prototype.processChunk=function(l){this.streamInfo.crc32=a(l.data,this.streamInfo.crc32||0),this.push(l)},i.exports=o},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(t,i,s){var n=t("../utils"),a=t("./GenericWorker");function o(l){a.call(this,"DataLengthProbe for "+l),this.propName=l,this.withStreamInfo(l,0)}n.inherits(o,a),o.prototype.processChunk=function(l){if(l){var c=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=c+l.data.length}a.prototype.processChunk.call(this,l)},i.exports=o},{"../utils":32,"./GenericWorker":28}],27:[function(t,i,s){var n=t("../utils"),a=t("./GenericWorker");function o(l){a.call(this,"DataWorker");var c=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,l.then(function(u){c.dataIsReady=!0,c.data=u,c.max=u&&u.length||0,c.type=n.getTypeOf(u),c.isPaused||c._tickAndRepeat()},function(u){c.error(u)})}n.inherits(o,a),o.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this.data=null},o.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,n.delay(this._tickAndRepeat,[],this)),!0)},o.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(n.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},o.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var l=null,c=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":l=this.data.substring(this.index,c);break;case"uint8array":l=this.data.subarray(this.index,c);break;case"array":case"nodebuffer":l=this.data.slice(this.index,c)}return this.index=c,this.push({data:l,meta:{percent:this.max?this.index/this.max*100:0}})},i.exports=o},{"../utils":32,"./GenericWorker":28}],28:[function(t,i,s){function n(a){this.name=a||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}n.prototype={push:function(a){this.emit("data",a)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(a){this.emit("error",a)}return!0},error:function(a){return!this.isFinished&&(this.isPaused?this.generatedError=a:(this.isFinished=!0,this.emit("error",a),this.previous&&this.previous.error(a),this.cleanUp()),!0)},on:function(a,o){return this._listeners[a].push(o),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(a,o){if(this._listeners[a])for(var l=0;l "+a:a}},i.exports=n},{}],29:[function(t,i,s){var n=t("../utils"),a=t("./ConvertWorker"),o=t("./GenericWorker"),l=t("../base64"),c=t("../support"),u=t("../external"),h=null;if(c.nodestream)try{h=t("../nodejs/NodejsStreamOutputAdapter")}catch{}function d(p,m){return new u.Promise(function(g,b){var w=[],v=p._internalType,y=p._outputType,E=p._mimeType;p.on("data",function(C,k){w.push(C),m&&m(k)}).on("error",function(C){w=[],b(C)}).on("end",function(){try{var C=function(k,B,M){switch(k){case"blob":return n.newBlob(n.transformTo("arraybuffer",B),M);case"base64":return l.encode(B);default:return n.transformTo(k,B)}}(y,function(k,B){var M,U=0,V=null,T=0;for(M=0;M"u")s.blob=!1;else{var n=new ArrayBuffer(0);try{s.blob=new Blob([n],{type:"application/zip"}).size===0}catch{try{var a=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);a.append(n),s.blob=a.getBlob("application/zip").size===0}catch{s.blob=!1}}}try{s.nodestream=!!t("readable-stream").Readable}catch{s.nodestream=!1}},{"readable-stream":16}],31:[function(t,i,s){for(var n=t("./utils"),a=t("./support"),o=t("./nodejsUtils"),l=t("./stream/GenericWorker"),c=new Array(256),u=0;u<256;u++)c[u]=252<=u?6:248<=u?5:240<=u?4:224<=u?3:192<=u?2:1;c[254]=c[254]=1;function h(){l.call(this,"utf-8 decode"),this.leftOver=null}function d(){l.call(this,"utf-8 encode")}s.utf8encode=function(f){return a.nodebuffer?o.newBufferFrom(f,"utf-8"):function(p){var m,g,b,w,v,y=p.length,E=0;for(w=0;w>>6:(g<65536?m[v++]=224|g>>>12:(m[v++]=240|g>>>18,m[v++]=128|g>>>12&63),m[v++]=128|g>>>6&63),m[v++]=128|63&g);return m}(f)},s.utf8decode=function(f){return a.nodebuffer?n.transformTo("nodebuffer",f).toString("utf-8"):function(p){var m,g,b,w,v=p.length,y=new Array(2*v);for(m=g=0;m>10&1023,y[g++]=56320|1023&b)}return y.length!==g&&(y.subarray?y=y.subarray(0,g):y.length=g),n.applyFromCharCode(y)}(f=n.transformTo(a.uint8array?"uint8array":"array",f))},n.inherits(h,l),h.prototype.processChunk=function(f){var p=n.transformTo(a.uint8array?"uint8array":"array",f.data);if(this.leftOver&&this.leftOver.length){if(a.uint8array){var m=p;(p=new Uint8Array(m.length+this.leftOver.length)).set(this.leftOver,0),p.set(m,this.leftOver.length)}else p=this.leftOver.concat(p);this.leftOver=null}var g=function(w,v){var y;for((v=v||w.length)>w.length&&(v=w.length),y=v-1;0<=y&&(192&w[y])==128;)y--;return y<0||y===0?v:y+c[w[y]]>v?y:v}(p),b=p;g!==p.length&&(a.uint8array?(b=p.subarray(0,g),this.leftOver=p.subarray(g,p.length)):(b=p.slice(0,g),this.leftOver=p.slice(g,p.length))),this.push({data:s.utf8decode(b),meta:f.meta})},h.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:s.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},s.Utf8DecodeWorker=h,n.inherits(d,l),d.prototype.processChunk=function(f){this.push({data:s.utf8encode(f.data),meta:f.meta})},s.Utf8EncodeWorker=d},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(t,i,s){var n=t("./support"),a=t("./base64"),o=t("./nodejsUtils"),l=t("./external");function c(m){return m}function u(m,g){for(var b=0;b>8;this.dir=!!(16&this.externalFileAttributes),f==0&&(this.dosPermissions=63&this.externalFileAttributes),f==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var f=n(this.extraFields[1].value);this.uncompressedSize===a.MAX_VALUE_32BITS&&(this.uncompressedSize=f.readInt(8)),this.compressedSize===a.MAX_VALUE_32BITS&&(this.compressedSize=f.readInt(8)),this.localHeaderOffset===a.MAX_VALUE_32BITS&&(this.localHeaderOffset=f.readInt(8)),this.diskNumberStart===a.MAX_VALUE_32BITS&&(this.diskNumberStart=f.readInt(4))}},readExtraFields:function(f){var p,m,g,b=f.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});f.index+4>>6:(f<65536?d[g++]=224|f>>>12:(d[g++]=240|f>>>18,d[g++]=128|f>>>12&63),d[g++]=128|f>>>6&63),d[g++]=128|63&f);return d},s.buf2binstring=function(h){return u(h,h.length)},s.binstring2buf=function(h){for(var d=new n.Buf8(h.length),f=0,p=d.length;f>10&1023,w[p++]=56320|1023&m)}return u(w,p)},s.utf8border=function(h,d){var f;for((d=d||h.length)>h.length&&(d=h.length),f=d-1;0<=f&&(192&h[f])==128;)f--;return f<0||f===0?d:f+l[h[f]]>d?f:d}},{"./common":41}],43:[function(t,i,s){i.exports=function(n,a,o,l){for(var c=65535&n|0,u=n>>>16&65535|0,h=0;o!==0;){for(o-=h=2e3>>1:a>>>1;o[l]=a}return o}();i.exports=function(a,o,l,c){var u=n,h=c+l;a^=-1;for(var d=c;d>>8^u[255&(a^o[d])];return-1^a}},{}],46:[function(t,i,s){var n,a=t("../utils/common"),o=t("./trees"),l=t("./adler32"),c=t("./crc32"),u=t("./messages"),h=0,d=4,f=0,p=-2,m=-1,g=4,b=2,w=8,v=9,y=286,E=30,C=19,k=2*y+1,B=15,M=3,U=258,V=U+M+1,T=42,S=113,_=1,R=2,q=3,F=4;function L(A,Y){return A.msg=u[Y],Y}function W(A){return(A<<1)-(4A.avail_out&&(j=A.avail_out),j!==0&&(a.arraySet(A.output,Y.pending_buf,Y.pending_out,j,A.next_out),A.next_out+=j,Y.pending_out+=j,A.total_out+=j,A.avail_out-=j,Y.pending-=j,Y.pending===0&&(Y.pending_out=0))}function N(A,Y){o._tr_flush_block(A,0<=A.block_start?A.block_start:-1,A.strstart-A.block_start,Y),A.block_start=A.strstart,O(A.strm)}function ie(A,Y){A.pending_buf[A.pending++]=Y}function Q(A,Y){A.pending_buf[A.pending++]=Y>>>8&255,A.pending_buf[A.pending++]=255&Y}function Z(A,Y){var j,I,D=A.max_chain_length,G=A.strstart,J=A.prev_length,ee=A.nice_match,$=A.strstart>A.w_size-V?A.strstart-(A.w_size-V):0,re=A.window,he=A.w_mask,ne=A.prev,_e=A.strstart+U,Xe=re[G+J-1],Ue=re[G+J];A.prev_length>=A.good_match&&(D>>=2),ee>A.lookahead&&(ee=A.lookahead);do if(re[(j=Y)+J]===Ue&&re[j+J-1]===Xe&&re[j]===re[G]&&re[++j]===re[G+1]){G+=2,j++;do;while(re[++G]===re[++j]&&re[++G]===re[++j]&&re[++G]===re[++j]&&re[++G]===re[++j]&&re[++G]===re[++j]&&re[++G]===re[++j]&&re[++G]===re[++j]&&re[++G]===re[++j]&&G<_e);if(I=U-(_e-G),G=_e-U,J$&&--D!=0);return J<=A.lookahead?J:A.lookahead}function be(A){var Y,j,I,D,G,J,ee,$,re,he,ne=A.w_size;do{if(D=A.window_size-A.lookahead-A.strstart,A.strstart>=ne+(ne-V)){for(a.arraySet(A.window,A.window,ne,ne,0),A.match_start-=ne,A.strstart-=ne,A.block_start-=ne,Y=j=A.hash_size;I=A.head[--Y],A.head[Y]=ne<=I?I-ne:0,--j;);for(Y=j=ne;I=A.prev[--Y],A.prev[Y]=ne<=I?I-ne:0,--j;);D+=ne}if(A.strm.avail_in===0)break;if(J=A.strm,ee=A.window,$=A.strstart+A.lookahead,re=D,he=void 0,he=J.avail_in,re=M)for(G=A.strstart-A.insert,A.ins_h=A.window[G],A.ins_h=(A.ins_h<=M&&(A.ins_h=(A.ins_h<=M)if(I=o._tr_tally(A,A.strstart-A.match_start,A.match_length-M),A.lookahead-=A.match_length,A.match_length<=A.max_lazy_match&&A.lookahead>=M){for(A.match_length--;A.strstart++,A.ins_h=(A.ins_h<=M&&(A.ins_h=(A.ins_h<=M&&A.match_length<=A.prev_length){for(D=A.strstart+A.lookahead-M,I=o._tr_tally(A,A.strstart-1-A.prev_match,A.prev_length-M),A.lookahead-=A.prev_length-1,A.prev_length-=2;++A.strstart<=D&&(A.ins_h=(A.ins_h<A.pending_buf_size-5&&(j=A.pending_buf_size-5);;){if(A.lookahead<=1){if(be(A),A.lookahead===0&&Y===h)return _;if(A.lookahead===0)break}A.strstart+=A.lookahead,A.lookahead=0;var I=A.block_start+j;if((A.strstart===0||A.strstart>=I)&&(A.lookahead=A.strstart-I,A.strstart=I,N(A,!1),A.strm.avail_out===0)||A.strstart-A.block_start>=A.w_size-V&&(N(A,!1),A.strm.avail_out===0))return _}return A.insert=0,Y===d?(N(A,!0),A.strm.avail_out===0?q:F):(A.strstart>A.block_start&&(N(A,!1),A.strm.avail_out),_)}),new pe(4,4,8,4,Se),new pe(4,5,16,8,Se),new pe(4,6,32,32,Se),new pe(4,4,16,16,ce),new pe(8,16,32,32,ce),new pe(8,16,128,128,ce),new pe(8,32,128,256,ce),new pe(32,128,258,1024,ce),new pe(32,258,258,4096,ce)],s.deflateInit=function(A,Y){return we(A,Y,w,15,8,0)},s.deflateInit2=we,s.deflateReset=fe,s.deflateResetKeep=le,s.deflateSetHeader=function(A,Y){return A&&A.state?A.state.wrap!==2?p:(A.state.gzhead=Y,f):p},s.deflate=function(A,Y){var j,I,D,G;if(!A||!A.state||5>8&255),ie(I,I.gzhead.time>>16&255),ie(I,I.gzhead.time>>24&255),ie(I,I.level===9?2:2<=I.strategy||I.level<2?4:0),ie(I,255&I.gzhead.os),I.gzhead.extra&&I.gzhead.extra.length&&(ie(I,255&I.gzhead.extra.length),ie(I,I.gzhead.extra.length>>8&255)),I.gzhead.hcrc&&(A.adler=c(A.adler,I.pending_buf,I.pending,0)),I.gzindex=0,I.status=69):(ie(I,0),ie(I,0),ie(I,0),ie(I,0),ie(I,0),ie(I,I.level===9?2:2<=I.strategy||I.level<2?4:0),ie(I,3),I.status=S);else{var J=w+(I.w_bits-8<<4)<<8;J|=(2<=I.strategy||I.level<2?0:I.level<6?1:I.level===6?2:3)<<6,I.strstart!==0&&(J|=32),J+=31-J%31,I.status=S,Q(I,J),I.strstart!==0&&(Q(I,A.adler>>>16),Q(I,65535&A.adler)),A.adler=1}if(I.status===69)if(I.gzhead.extra){for(D=I.pending;I.gzindex<(65535&I.gzhead.extra.length)&&(I.pending!==I.pending_buf_size||(I.gzhead.hcrc&&I.pending>D&&(A.adler=c(A.adler,I.pending_buf,I.pending-D,D)),O(A),D=I.pending,I.pending!==I.pending_buf_size));)ie(I,255&I.gzhead.extra[I.gzindex]),I.gzindex++;I.gzhead.hcrc&&I.pending>D&&(A.adler=c(A.adler,I.pending_buf,I.pending-D,D)),I.gzindex===I.gzhead.extra.length&&(I.gzindex=0,I.status=73)}else I.status=73;if(I.status===73)if(I.gzhead.name){D=I.pending;do{if(I.pending===I.pending_buf_size&&(I.gzhead.hcrc&&I.pending>D&&(A.adler=c(A.adler,I.pending_buf,I.pending-D,D)),O(A),D=I.pending,I.pending===I.pending_buf_size)){G=1;break}G=I.gzindexD&&(A.adler=c(A.adler,I.pending_buf,I.pending-D,D)),G===0&&(I.gzindex=0,I.status=91)}else I.status=91;if(I.status===91)if(I.gzhead.comment){D=I.pending;do{if(I.pending===I.pending_buf_size&&(I.gzhead.hcrc&&I.pending>D&&(A.adler=c(A.adler,I.pending_buf,I.pending-D,D)),O(A),D=I.pending,I.pending===I.pending_buf_size)){G=1;break}G=I.gzindexD&&(A.adler=c(A.adler,I.pending_buf,I.pending-D,D)),G===0&&(I.status=103)}else I.status=103;if(I.status===103&&(I.gzhead.hcrc?(I.pending+2>I.pending_buf_size&&O(A),I.pending+2<=I.pending_buf_size&&(ie(I,255&A.adler),ie(I,A.adler>>8&255),A.adler=0,I.status=S)):I.status=S),I.pending!==0){if(O(A),A.avail_out===0)return I.last_flush=-1,f}else if(A.avail_in===0&&W(Y)<=W(j)&&Y!==d)return L(A,-5);if(I.status===666&&A.avail_in!==0)return L(A,-5);if(A.avail_in!==0||I.lookahead!==0||Y!==h&&I.status!==666){var ee=I.strategy===2?function($,re){for(var he;;){if($.lookahead===0&&(be($),$.lookahead===0)){if(re===h)return _;break}if($.match_length=0,he=o._tr_tally($,0,$.window[$.strstart]),$.lookahead--,$.strstart++,he&&(N($,!1),$.strm.avail_out===0))return _}return $.insert=0,re===d?(N($,!0),$.strm.avail_out===0?q:F):$.last_lit&&(N($,!1),$.strm.avail_out===0)?_:R}(I,Y):I.strategy===3?function($,re){for(var he,ne,_e,Xe,Ue=$.window;;){if($.lookahead<=U){if(be($),$.lookahead<=U&&re===h)return _;if($.lookahead===0)break}if($.match_length=0,$.lookahead>=M&&0<$.strstart&&(ne=Ue[_e=$.strstart-1])===Ue[++_e]&&ne===Ue[++_e]&&ne===Ue[++_e]){Xe=$.strstart+U;do;while(ne===Ue[++_e]&&ne===Ue[++_e]&&ne===Ue[++_e]&&ne===Ue[++_e]&&ne===Ue[++_e]&&ne===Ue[++_e]&&ne===Ue[++_e]&&ne===Ue[++_e]&&_e$.lookahead&&($.match_length=$.lookahead)}if($.match_length>=M?(he=o._tr_tally($,1,$.match_length-M),$.lookahead-=$.match_length,$.strstart+=$.match_length,$.match_length=0):(he=o._tr_tally($,0,$.window[$.strstart]),$.lookahead--,$.strstart++),he&&(N($,!1),$.strm.avail_out===0))return _}return $.insert=0,re===d?(N($,!0),$.strm.avail_out===0?q:F):$.last_lit&&(N($,!1),$.strm.avail_out===0)?_:R}(I,Y):n[I.level].func(I,Y);if(ee!==q&&ee!==F||(I.status=666),ee===_||ee===q)return A.avail_out===0&&(I.last_flush=-1),f;if(ee===R&&(Y===1?o._tr_align(I):Y!==5&&(o._tr_stored_block(I,0,0,!1),Y===3&&(z(I.head),I.lookahead===0&&(I.strstart=0,I.block_start=0,I.insert=0))),O(A),A.avail_out===0))return I.last_flush=-1,f}return Y!==d?f:I.wrap<=0?1:(I.wrap===2?(ie(I,255&A.adler),ie(I,A.adler>>8&255),ie(I,A.adler>>16&255),ie(I,A.adler>>24&255),ie(I,255&A.total_in),ie(I,A.total_in>>8&255),ie(I,A.total_in>>16&255),ie(I,A.total_in>>24&255)):(Q(I,A.adler>>>16),Q(I,65535&A.adler)),O(A),0=j.w_size&&(G===0&&(z(j.head),j.strstart=0,j.block_start=0,j.insert=0),re=new a.Buf8(j.w_size),a.arraySet(re,Y,he-j.w_size,j.w_size,0),Y=re,he=j.w_size),J=A.avail_in,ee=A.next_in,$=A.input,A.avail_in=he,A.next_in=0,A.input=Y,be(j);j.lookahead>=M;){for(I=j.strstart,D=j.lookahead-(M-1);j.ins_h=(j.ins_h<>>=M=B>>>24,v-=M,(M=B>>>16&255)===0)R[u++]=65535&B;else{if(!(16&M)){if(!(64&M)){B=y[(65535&B)+(w&(1<>>=M,v-=M),v<15&&(w+=_[l++]<>>=M=B>>>24,v-=M,!(16&(M=B>>>16&255))){if(!(64&M)){B=E[(65535&B)+(w&(1<>>=M,v-=M,(M=u-h)>3,w&=(1<<(v-=U<<3))-1,n.next_in=l,n.next_out=u,n.avail_in=l>>24&255)+(T>>>8&65280)+((65280&T)<<8)+((255&T)<<24)}function w(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function v(T){var S;return T&&T.state?(S=T.state,T.total_in=T.total_out=S.total=0,T.msg="",S.wrap&&(T.adler=1&S.wrap),S.mode=p,S.last=0,S.havedict=0,S.dmax=32768,S.head=null,S.hold=0,S.bits=0,S.lencode=S.lendyn=new n.Buf32(m),S.distcode=S.distdyn=new n.Buf32(g),S.sane=1,S.back=-1,d):f}function y(T){var S;return T&&T.state?((S=T.state).wsize=0,S.whave=0,S.wnext=0,v(T)):f}function E(T,S){var _,R;return T&&T.state?(R=T.state,S<0?(_=0,S=-S):(_=1+(S>>4),S<48&&(S&=15)),S&&(S<8||15=F.wsize?(n.arraySet(F.window,S,_-F.wsize,F.wsize,0),F.wnext=0,F.whave=F.wsize):(R<(q=F.wsize-F.wnext)&&(q=R),n.arraySet(F.window,S,_-R,q,F.wnext),(R-=q)?(n.arraySet(F.window,S,_-R,R,0),F.wnext=R,F.whave=F.wsize):(F.wnext+=q,F.wnext===F.wsize&&(F.wnext=0),F.whave>>8&255,_.check=o(_.check,G,2,0),N=O=0,_.mode=2;break}if(_.flags=0,_.head&&(_.head.done=!1),!(1&_.wrap)||(((255&O)<<8)+(O>>8))%31){T.msg="incorrect header check",_.mode=30;break}if((15&O)!=8){T.msg="unknown compression method",_.mode=30;break}if(N-=4,A=8+(15&(O>>>=4)),_.wbits===0)_.wbits=A;else if(A>_.wbits){T.msg="invalid window size",_.mode=30;break}_.dmax=1<>8&1),512&_.flags&&(G[0]=255&O,G[1]=O>>>8&255,_.check=o(_.check,G,2,0)),N=O=0,_.mode=3;case 3:for(;N<32;){if(W===0)break e;W--,O+=R[F++]<>>8&255,G[2]=O>>>16&255,G[3]=O>>>24&255,_.check=o(_.check,G,4,0)),N=O=0,_.mode=4;case 4:for(;N<16;){if(W===0)break e;W--,O+=R[F++]<>8),512&_.flags&&(G[0]=255&O,G[1]=O>>>8&255,_.check=o(_.check,G,2,0)),N=O=0,_.mode=5;case 5:if(1024&_.flags){for(;N<16;){if(W===0)break e;W--,O+=R[F++]<>>8&255,_.check=o(_.check,G,2,0)),N=O=0}else _.head&&(_.head.extra=null);_.mode=6;case 6:if(1024&_.flags&&(W<(Z=_.length)&&(Z=W),Z&&(_.head&&(A=_.head.extra_len-_.length,_.head.extra||(_.head.extra=new Array(_.head.extra_len)),n.arraySet(_.head.extra,R,F,Z,A)),512&_.flags&&(_.check=o(_.check,R,Z,F)),W-=Z,F+=Z,_.length-=Z),_.length))break e;_.length=0,_.mode=7;case 7:if(2048&_.flags){if(W===0)break e;for(Z=0;A=R[F+Z++],_.head&&A&&_.length<65536&&(_.head.name+=String.fromCharCode(A)),A&&Z>9&1,_.head.done=!0),T.adler=_.check=0,_.mode=12;break;case 10:for(;N<32;){if(W===0)break e;W--,O+=R[F++]<>>=7&N,N-=7&N,_.mode=27;break}for(;N<3;){if(W===0)break e;W--,O+=R[F++]<>>=1)){case 0:_.mode=14;break;case 1:if(U(_),_.mode=20,S!==6)break;O>>>=2,N-=2;break e;case 2:_.mode=17;break;case 3:T.msg="invalid block type",_.mode=30}O>>>=2,N-=2;break;case 14:for(O>>>=7&N,N-=7&N;N<32;){if(W===0)break e;W--,O+=R[F++]<>>16^65535)){T.msg="invalid stored block lengths",_.mode=30;break}if(_.length=65535&O,N=O=0,_.mode=15,S===6)break e;case 15:_.mode=16;case 16:if(Z=_.length){if(W>>=5,N-=5,_.ndist=1+(31&O),O>>>=5,N-=5,_.ncode=4+(15&O),O>>>=4,N-=4,286<_.nlen||30<_.ndist){T.msg="too many length or distance symbols",_.mode=30;break}_.have=0,_.mode=18;case 18:for(;_.have<_.ncode;){for(;N<3;){if(W===0)break e;W--,O+=R[F++]<>>=3,N-=3}for(;_.have<19;)_.lens[J[_.have++]]=0;if(_.lencode=_.lendyn,_.lenbits=7,j={bits:_.lenbits},Y=c(0,_.lens,0,19,_.lencode,0,_.work,j),_.lenbits=j.bits,Y){T.msg="invalid code lengths set",_.mode=30;break}_.have=0,_.mode=19;case 19:for(;_.have<_.nlen+_.ndist;){for(;pe=(D=_.lencode[O&(1<<_.lenbits)-1])>>>16&255,xe=65535&D,!((ce=D>>>24)<=N);){if(W===0)break e;W--,O+=R[F++]<>>=ce,N-=ce,_.lens[_.have++]=xe;else{if(xe===16){for(I=ce+2;N>>=ce,N-=ce,_.have===0){T.msg="invalid bit length repeat",_.mode=30;break}A=_.lens[_.have-1],Z=3+(3&O),O>>>=2,N-=2}else if(xe===17){for(I=ce+3;N>>=ce)),O>>>=3,N-=3}else{for(I=ce+7;N>>=ce)),O>>>=7,N-=7}if(_.have+Z>_.nlen+_.ndist){T.msg="invalid bit length repeat",_.mode=30;break}for(;Z--;)_.lens[_.have++]=A}}if(_.mode===30)break;if(_.lens[256]===0){T.msg="invalid code -- missing end-of-block",_.mode=30;break}if(_.lenbits=9,j={bits:_.lenbits},Y=c(u,_.lens,0,_.nlen,_.lencode,0,_.work,j),_.lenbits=j.bits,Y){T.msg="invalid literal/lengths set",_.mode=30;break}if(_.distbits=6,_.distcode=_.distdyn,j={bits:_.distbits},Y=c(h,_.lens,_.nlen,_.ndist,_.distcode,0,_.work,j),_.distbits=j.bits,Y){T.msg="invalid distances set",_.mode=30;break}if(_.mode=20,S===6)break e;case 20:_.mode=21;case 21:if(6<=W&&258<=z){T.next_out=L,T.avail_out=z,T.next_in=F,T.avail_in=W,_.hold=O,_.bits=N,l(T,Q),L=T.next_out,q=T.output,z=T.avail_out,F=T.next_in,R=T.input,W=T.avail_in,O=_.hold,N=_.bits,_.mode===12&&(_.back=-1);break}for(_.back=0;pe=(D=_.lencode[O&(1<<_.lenbits)-1])>>>16&255,xe=65535&D,!((ce=D>>>24)<=N);){if(W===0)break e;W--,O+=R[F++]<>le)])>>>16&255,xe=65535&D,!(le+(ce=D>>>24)<=N);){if(W===0)break e;W--,O+=R[F++]<>>=le,N-=le,_.back+=le}if(O>>>=ce,N-=ce,_.back+=ce,_.length=xe,pe===0){_.mode=26;break}if(32&pe){_.back=-1,_.mode=12;break}if(64&pe){T.msg="invalid literal/length code",_.mode=30;break}_.extra=15&pe,_.mode=22;case 22:if(_.extra){for(I=_.extra;N>>=_.extra,N-=_.extra,_.back+=_.extra}_.was=_.length,_.mode=23;case 23:for(;pe=(D=_.distcode[O&(1<<_.distbits)-1])>>>16&255,xe=65535&D,!((ce=D>>>24)<=N);){if(W===0)break e;W--,O+=R[F++]<>le)])>>>16&255,xe=65535&D,!(le+(ce=D>>>24)<=N);){if(W===0)break e;W--,O+=R[F++]<>>=le,N-=le,_.back+=le}if(O>>>=ce,N-=ce,_.back+=ce,64&pe){T.msg="invalid distance code",_.mode=30;break}_.offset=xe,_.extra=15&pe,_.mode=24;case 24:if(_.extra){for(I=_.extra;N>>=_.extra,N-=_.extra,_.back+=_.extra}if(_.offset>_.dmax){T.msg="invalid distance too far back",_.mode=30;break}_.mode=25;case 25:if(z===0)break e;if(Z=Q-z,_.offset>Z){if((Z=_.offset-Z)>_.whave&&_.sane){T.msg="invalid distance too far back",_.mode=30;break}be=Z>_.wnext?(Z-=_.wnext,_.wsize-Z):_.wnext-Z,Z>_.length&&(Z=_.length),Se=_.window}else Se=q,be=L-_.offset,Z=_.length;for(zk?(M=be[Se+g[S]],N[ie+g[S]]):(M=96,0),w=1<>L)+(v-=w)]=B<<24|M<<16|U|0,v!==0;);for(w=1<>=1;if(w!==0?(O&=w-1,O+=w):O=0,S++,--Q[T]==0){if(T===R)break;T=h[d+g[S]]}if(q>>7)]}function ie(D,G){D.pending_buf[D.pending++]=255&G,D.pending_buf[D.pending++]=G>>>8&255}function Q(D,G,J){D.bi_valid>b-J?(D.bi_buf|=G<>b-D.bi_valid,D.bi_valid+=J-b):(D.bi_buf|=G<>>=1,J<<=1,0<--G;);return J>>>1}function Se(D,G,J){var ee,$,re=new Array(g+1),he=0;for(ee=1;ee<=g;ee++)re[ee]=he=he+J[ee-1]<<1;for($=0;$<=G;$++){var ne=D[2*$+1];ne!==0&&(D[2*$]=be(re[ne]++,ne))}}function ce(D){var G;for(G=0;G>1;1<=J;J--)le(D,re,J);for($=_e;J=D.heap[1],D.heap[1]=D.heap[D.heap_len--],le(D,re,1),ee=D.heap[1],D.heap[--D.heap_max]=J,D.heap[--D.heap_max]=ee,re[2*$]=re[2*J]+re[2*ee],D.depth[$]=(D.depth[J]>=D.depth[ee]?D.depth[J]:D.depth[ee])+1,re[2*J+1]=re[2*ee+1]=$,D.heap[1]=$++,le(D,re,1),2<=D.heap_len;);D.heap[--D.heap_max]=D.heap[1],function(Ue,jt){var fs,ri,ps,dt,X,me,Te=jt.dyn_tree,qe=jt.max_code,Ve=jt.stat_desc.static_tree,Bt=jt.stat_desc.has_stree,qt=jt.stat_desc.extra_bits,gr=jt.stat_desc.extra_base,Or=jt.stat_desc.max_length,si=0;for(dt=0;dt<=g;dt++)Ue.bl_count[dt]=0;for(Te[2*Ue.heap[Ue.heap_max]+1]=0,fs=Ue.heap_max+1;fs>=7;$>>=1)if(1&Xe&&ne.dyn_ltree[2*_e]!==0)return a;if(ne.dyn_ltree[18]!==0||ne.dyn_ltree[20]!==0||ne.dyn_ltree[26]!==0)return o;for(_e=32;_e>>3,(re=D.static_len+3+7>>>3)<=$&&($=re)):$=re=J+5,J+4<=$&&G!==-1?I(D,G,J,ee):D.strategy===4||re===$?(Q(D,2+(ee?1:0),3),fe(D,V,T)):(Q(D,4+(ee?1:0),3),function(ne,_e,Xe,Ue){var jt;for(Q(ne,_e-257,5),Q(ne,Xe-1,5),Q(ne,Ue-4,4),jt=0;jt>>8&255,D.pending_buf[D.d_buf+2*D.last_lit+1]=255&G,D.pending_buf[D.l_buf+D.last_lit]=255&J,D.last_lit++,G===0?D.dyn_ltree[2*J]++:(D.matches++,G--,D.dyn_ltree[2*(_[J]+h+1)]++,D.dyn_dtree[2*N(G)]++),D.last_lit===D.lit_bufsize-1},s._tr_align=function(D){Q(D,2,3),Z(D,v,V),function(G){G.bi_valid===16?(ie(G,G.bi_buf),G.bi_buf=0,G.bi_valid=0):8<=G.bi_valid&&(G.pending_buf[G.pending++]=255&G.bi_buf,G.bi_buf>>=8,G.bi_valid-=8)}(D)}},{"../utils/common":41}],53:[function(t,i,s){i.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(t,i,s){(function(n){(function(a,o){if(!a.setImmediate){var l,c,u,h,d=1,f={},p=!1,m=a.document,g=Object.getPrototypeOf&&Object.getPrototypeOf(a);g=g&&g.setTimeout?g:a,l={}.toString.call(a.process)==="[object process]"?function(y){process.nextTick(function(){w(y)})}:function(){if(a.postMessage&&!a.importScripts){var y=!0,E=a.onmessage;return a.onmessage=function(){y=!1},a.postMessage("","*"),a.onmessage=E,y}}()?(h="setImmediate$"+Math.random()+"$",a.addEventListener?a.addEventListener("message",v,!1):a.attachEvent("onmessage",v),function(y){a.postMessage(h+y,"*")}):a.MessageChannel?((u=new MessageChannel).port1.onmessage=function(y){w(y.data)},function(y){u.port2.postMessage(y)}):m&&"onreadystatechange"in m.createElement("script")?(c=m.documentElement,function(y){var E=m.createElement("script");E.onreadystatechange=function(){w(y),E.onreadystatechange=null,c.removeChild(E),E=null},c.appendChild(E)}):function(y){setTimeout(w,0,y)},g.setImmediate=function(y){typeof y!="function"&&(y=new Function(""+y));for(var E=new Array(arguments.length-1),C=0;C"u"?n===void 0?this:n:self)}).call(this,typeof Yt<"u"?Yt:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})})(ry);var F3=ry.exports;const L3=Xa(F3),xr=class xr{static async writeHandle(e,t){const i=this.workID++,s=new Promise((o,l)=>this.map.set(i,[o,l])),n=new TextEncoder,a=typeof t=="string"?n.encode(t):await t.arrayBuffer();return this.worker.postMessage([i,e,a],[a]),s}};Ys(xr,"worker",new Worker(new URL("/smeditor/assets/SafariFileWorker-557e53c3.js",self.location),{type:"module"})),Ys(xr,"workID",0),Ys(xr,"map",new Map),xr.worker.onmessage=e=>{const t=e.data;t.success?xr.map.get(t.id)[0]():xr.map.get(t.id)[1](t.reason),xr.map.delete(t.id)};let zu=xr;class O3{_root;async getRoot(){return this._root||(D3.adapter.native?await Dm().then(e=>this._root=e):await Dm(Qe(()=>import("./memory-2bb6a5a3.js"),[])).then(e=>this._root=e)),this._root}async uploadHandle(e,t){let i;if(typeof t=="string"){const s=await this.getDirectoryHandle(t,{create:!0});if(!s)return;i=s}else i=t??await this.getRoot();if(e.kind=="file"){const s=await i.getFileHandle(e.name,{create:!0});await this.writeFile(s,await e.getFile())}else{const s=await i.getDirectoryHandle(e.name,{create:!0}),n=[];for await(const a of e.values())n.push(this.uploadHandle(a,s));await Promise.all(n)}}async uploadFiles(e,t){let i;if(typeof t=="string"){const s=await this.getDirectoryHandle(t,{create:!0});if(!s)return;i=s}else i=t??await this.getRoot();if(e.isFile){const s=e;if(s.name==".DS_Store")return;s.file(async n=>{const a=await i.getFileHandle(n.name,{create:!0});await this.writeHandle(a,n)})}else if(e.isDirectory){const s=e.createReader(),n=await i.getDirectoryHandle(e.name,{create:!0});for await(const a of n.values())await n.removeEntry(a.name,{recursive:!0});s.readEntries(async a=>{const o=[];for(let l=0;li!="."&&i!="");t.indexOf("..")>-1;){const i=t.indexOf("..");if(i==0)throw Error("Path"+t.join("/")+"is invalid!");t.splice(i-1,2)}return t.join("/")}async zipDirectory(e,t){const i=t??new L3,s=sr(e)==""?e:Ht(e),n=await this.getDirectoryHandle(s);if(n){for(const a of await this.getDirectoryFiles(n))i.file(a.name,await a.getFile());for(const a of await this.getDirectoryFolders(n)){const o=i.folder(a.name);if(!o){console.error("Failed to zip folder "+s+"/"+a.name);continue}await this.zipDirectory(s+"/"+a.name,o)}return i}}async saveDirectory(e){const t=sr(e)==""?e:Ht(e);Ee.create("Exporting "+t+".zip");const i=await M3({_preferPolyfill:!1,suggestedName:`${t}.zip`,types:[{accept:{"application/zip":[".zip"]}}],excludeAcceptAllOption:!1}),s=await this.zipDirectory(e);s&&await s.generateAsync({type:"blob"}).then(async n=>{if(!window.showSaveFilePicker){console.log(n);const a=document.createElement("a"),o=URL.createObjectURL(n);document.body.appendChild(a),a.href=o,a.download=t+".zip",a.click(),a.remove(),window.URL.revokeObjectURL(o);return}await this.writeHandle(i,n)})}async renameFile(e,t){if(e!=t)try{const i=await this.getDirectoryHandle(Ht(e)),s=await this.getDirectoryHandle(Ht(t),{create:!0}),n=await this.getFileHandle(e);if(!i||!s||!n)return;await this.copyToHandle(s,n,er(t)),await i.removeEntry(er(e))}catch(i){console.error(i)}}async renameDirectory(e,t){if(!t.startsWith(e))try{const i=await this.getDirectoryHandle(Ht(e)),s=await this.getDirectoryHandle(Ht(t),{create:!0}),n=await this.getDirectoryHandle(e);if(!i||!s||!n)return;await this.copyToHandle(s,n,er(t)),await i.removeEntry(er(e),{recursive:!0})}catch(i){console.error(i)}}async copyToHandle(e,t,i){try{if(t.kind=="directory"){const s=await e.getDirectoryHandle(i??t.name,{create:!0}),n=[];for await(const a of t.values())n.push(this.copyToHandle(s,a));await Promise.all(n)}else{const s=await t.getFile(),n=await e.getFileHandle(i??t.name,{create:!0});await this.writeHandle(n,s)}}catch(s){console.error(s)}}getRelativePath(e,t){const i=e.split("/"),s=t.split("/"),n=Math.min(i.length,s.length);let a=n;for(let l=0;limport("./NodeFileHandler-71538046.js"),[])).NodeFileHandler:new O3}static getStandardHandler(){return this.standardHandler}static getHandler(e){return e!==void 0&&e.startsWith("https://")||e?.startsWith("http://")?this.urlHandler:this.standardHandler}static handleDropEvent(e,t){return this.getHandler().handleDropEvent(e,t)}static getDirectoryHandle(e,t){return Le.getHandler(e).getDirectoryHandle(e,t)}static hasFile(e){return Le.getHandler(e).hasFile(e)}static getFileHandle(e,t){return Le.getHandler(e).getFileHandle(e,t)}static getFileHandleRelativeTo(e,t){return Le.getHandler(e).getFileHandleRelativeTo(e,t)}static getDirectoryFiles(e){return Le.getHandler(typeof e=="string"?e:void 0).getDirectoryFiles(e)}static getDirectoryFolders(e){return Le.getHandler(typeof e=="string"?e:void 0).getDirectoryFolders(e)}static writeFile(e,t){return Le.getHandler(typeof e=="string"?e:void 0).writeFile(e,t)}static removeFile(e){return Le.getHandler(e).removeFile(e)}static getRelativePath(e,t){return Le.getHandler().getRelativePath(e,t)}}class Ud extends Tt{app;dirOptions;fileDropPath="";draggedElement;draggedCopy;keyHandler;dropHandler;mouseHandler;dragHandler;constructor(e,t,i){super({title:t.title,width:500,height:400,disableClose:t.disableClose,win_id:"file_selector"+Math.random(),blocking:!0}),this.app=e,this.dirOptions=t,t.accepted_file_types||=[],this.keyHandler=this.handleKeyEvent.bind(this),this.dropHandler=this.handleDropEvent.bind(this),this.mouseHandler=this.handleMouseEvent.bind(this),this.dragHandler=this.handleDragEvent.bind(this),this.initView().then(()=>{i&&this.selectPath(i),t.onload?.()})}async initView(){this.viewElement.replaceChildren();const e=document.createElement("div");e.classList.add("padding");const t=document.createElement("div");t.classList.add("menu-options");const i=document.createElement("div");i.classList.add("menu-left");const s=document.createElement("div");s.classList.add("menu-right"),t.appendChild(i),t.appendChild(s);const n=document.createElement("button");n.innerText="Cancel",n.onclick=()=>{window.removeEventListener("keydown",this.keyHandler,!0),window.removeEventListener("drop",this.dropHandler,!0),this.closeWindow()};const a=document.createElement("button");a.innerText="Select",a.classList.add("confirm"),a.onclick=()=>this.confirmFile(),a.disabled=!0,i.appendChild(n),s.appendChild(a);const o=document.createElement("div");o.classList.add("dir-selector"),o.onclick=b=>{b.target==o&&this.selectElement(void 0)};const l=document.createElement("div");l.classList.add("file-options");const c=document.createElement("button"),u=Ce.getIcon("ADD_FILE",16);c.appendChild(u),c.appendChild(document.createTextNode("Upload files")),l.appendChild(c),c.onclick=async()=>{const b=this.fileDropPath,w=await ey({_preferPolyfill:!0,excludeAcceptAllOption:!1,multiple:!0}),y=this.viewElement.querySelector(".info.selected")?.dataset.path??"",E=[];for(const C of w)E.push(Le.getStandardHandler().uploadHandle(C,y));await Promise.all(E),await this.refreshDirectory(b),this.getAcceptableFile(b).then(C=>this.selectPath(C))};const h=document.createElement("button"),d=Ce.getIcon("FOLDER",16);h.appendChild(d),h.appendChild(document.createTextNode("Upload folder")),l.appendChild(h),h.onclick=async()=>{const b=this.fileDropPath,w=await S3({_preferPolyfill:!0}),y=this.viewElement.querySelector(".info.selected")?.dataset.path??"";await Le.getStandardHandler().uploadHandle(w,y),await this.refreshDirectory(b),this.getAcceptableFile(b==""?w.name:b+"/"+w.name).then(E=>this.selectPath(E))};const f=document.createElement("button");f.classList.add("rename");const p=Ce.getIcon("EDIT",16);f.appendChild(p),f.appendChild(document.createTextNode("Rename")),f.disabled=!0,f.onclick=()=>{const b=this.viewElement.querySelector(".info.selected");b?.dataset.path&&this.startEditing(b.querySelector("textarea"))},l.appendChild(f);const m=document.createElement("button");m.classList.add("delete");const g=Ce.getIcon("TRASH",16);m.appendChild(g),m.appendChild(document.createTextNode("Delete")),m.disabled=!0,m.onclick=()=>{const b=this.viewElement.querySelector(".info.selected"),w=b?.dataset.path;if(!w)return;const v=b.parentElement.classList.contains("folder");Le.getStandardHandler()[v?"removeDirectory":"removeFile"](w).then(()=>{const y=this.getElement(w);y&&(y.parentElement?.remove(),m.disabled=!0,f.disabled=!0)})},l.appendChild(m),e.appendChild(o),e.appendChild(l),e.appendChild(t),this.viewElement.appendChild(e),window.addEventListener("keydown",this.keyHandler,!0),window.addEventListener("drop",this.dropHandler,!0),window.addEventListener("mousemove",this.dragHandler,!0),this.viewElement.addEventListener("dragover",this.mouseHandler),await this.createDiv("").then(b=>o.replaceChildren(...b))}async expand(e){if(!e.parentElement.classList.contains("folder"))return;e.parentElement.classList.remove("collapsed");const t=e.nextSibling;await this.createDiv(e.dataset.path).then(i=>{t.replaceChildren(...i)})}collapse(e){if(!e.parentElement.classList.contains("folder"))return;e.parentElement.classList.add("collapsed"),e.nextSibling.replaceChildren()}selectElement(e){if(this.viewElement.querySelector(".info.selected")?.classList.remove("selected"),!e){this.viewElement.querySelector(".delete").disabled=!0,this.viewElement.querySelector(".rename").disabled=!0;return}e.classList.add("selected"),ka(e,{scrollMode:"if-needed",block:"nearest",inline:"nearest"});const t=this.viewElement.querySelector("button.confirm"),i=e.dataset.path;t.disabled=!0,i&&(t.disabled=!this.acceptableFileType(i),this.viewElement.querySelector(".delete").disabled=!1,this.viewElement.querySelector(".rename").disabled=!1)}async createDiv(e){const t=await Le.getStandardHandler().getDirectoryFolders(e);let i=await Le.getStandardHandler().getDirectoryFiles(e);return t.sort((s,n)=>s.name.toLowerCase().localeCompare(n.name.toLowerCase())),i.sort((s,n)=>s.name.toLowerCase().localeCompare(n.name.toLowerCase())),i=i.filter(s=>sr(s.name)!=".crswap"),t.map(s=>this.createBaseElement(e,s)).concat(i.map(s=>this.createBaseElement(e,s)))}createBaseElement(e,t){e!=""&&(e+="/");const i=document.createElement("div");i.classList.add("item");const s=document.createElement("div");if(s.classList.add("info"),i.appendChild(s),t.kind=="directory"){const a=Ce.getIcon("CHEVRON",16);a.classList.add("folder-icon"),s.appendChild(a);const o=document.createElement("div");o.classList.add("children"),i.appendChild(o),i.classList.add("folder"),i.classList.add("collapsed"),s.addEventListener("click",l=>{const c=l.target;c?.classList.contains("options-icon")||c.tagName=="TEXTAREA"&&!c.disabled||(i.classList.contains("collapsed")?this.expand(s):this.collapse(s))})}else{this.acceptableFileType(t.name)||s.classList.add("disabled");const a=Ce.getIcon(this.getIconId(t.name),16);s.appendChild(a)}s.dataset.path=e+t.name;const n=document.createElement("textarea");return n.rows=1,n.disabled=!0,n.autocomplete="off",n.autocapitalize="off",n.spellcheck=!1,n.innerText=t.name,n.style.pointerEvents="none",n.classList.add("title"),s.appendChild(n),s.addEventListener("click",()=>this.selectElement(s)),s.addEventListener("mousedown",()=>this.startDragging(s)),s.ondblclick=()=>this.confirmFile(),i}confirmFile(){const t=this.viewElement.querySelector(".info.selected")?.dataset.path;t&&this.acceptableFileType(t)&&(this.dirOptions.callback?.(t),window.removeEventListener("keydown",this.keyHandler,!0),window.removeEventListener("drop",this.dropHandler,!0),window.removeEventListener("mousemove",this.dragHandler,!0),this.closeWindow())}acceptableFileType(e){return this.dirOptions.accepted_file_types.length==0||this.dirOptions.accepted_file_types.includes(sr(e))}getIconId(e){const t=sr(e);return t==""&&!e.startsWith(".")?"FOLDER":Ts.includes(t)?"IMAGE_FILE":rh.includes(t)?"VOLUME":[".sm",".ssc"].includes(t)?"SM_FILE":"UNKNOWN_FILE"}startEditing(e){const t=e.value,i=!!e.parentElement?.parentElement?.classList.contains("folder"),s=e.parentElement?.dataset.path??"",n=Ht(s);e.value=s.split("/").at(-1)??"",window.removeEventListener("keydown",this.keyHandler,!0),e.disabled=!1,e.style.pointerEvents="",e.focus(),e.addEventListener("keypress",a=>{a.code=="Enter"&&(a.preventDefault(),a.stopImmediatePropagation(),e.blur())},!0),e.addEventListener("blur",async()=>{if(window.addEventListener("keydown",this.keyHandler,!0),e.disabled=!0,e.style.pointerEvents="none",e.value.startsWith(".")){e.value=t;return}e.value=e.value.replaceAll("/","");const a=n==""?e.value:n+"/"+e.value;a!=s&&(e.parentElement.dataset.path=a,await Le.getStandardHandler()[i?"renameDirectory":"renameFile"](s,a),this.refreshDirectory(n),e.value.length>32&&(e.value=e.value.slice(0,32)+"..."))})}async refreshDirectory(e){const t=this.viewElement.querySelector(".dir-selector");if(!t)return;let i=t.querySelector("div[data-path='"+this.escapeSelector(e)+"']")?.nextSibling;if(e==""&&(i=t),!i)return;const s=Array.from(i.parentElement.querySelectorAll(".folder:not(.collapsed)")).map(n=>n.children[0].dataset.path);await this.createDiv(e).then(n=>i.replaceChildren(...n)),await Promise.all(s.map(n=>this.expand(t.querySelector("div[data-path='"+this.escapeSelector(n)+"']"))))}getElement(e){const t=this.viewElement.querySelector(".dir-selector");return t?t.querySelector("div[data-path='"+this.escapeSelector(e)+"']"):null}async getAcceptableFile(e){const t=await Le.getStandardHandler().getDirectoryHandle(e);if(!t)return;const i=[{path:e,handle:t}];for(;i.length>0;){const s=i.shift(),n=s.handle;for await(const a of n.values()){const o=s.path==""?"":s.path+"/";if(a.kind=="directory")i.push({path:o+a.name,handle:a});else if(this.acceptableFileType(a.name))return o+a.name}}}async selectPath(e){if(!e)return;const t=this.viewElement.querySelector(".dir-selector");if(!t)return;const i=e.split("/");i.pop();const s=[];for(;i.length>0;){s.push(i.shift());const a=t.querySelector("div[data-path='"+this.escapeSelector(s.join("/"))+"']");if(!a)return;await this.expand(a)}const n=t.querySelector("div[data-path='"+this.escapeSelector(e)+"']");n&&this.selectElement(n)}handleKeyEvent(e){if(!this.windowElement.classList.contains("focused"))return;const t=this.viewElement.querySelector(".info.selected");if(t==null){if(e.code.startsWith("Arrow")){const i=this.viewElement.querySelector(".info");i&&this.selectElement(i)}return}if(e.code=="ArrowUp"){e.preventDefault(),e.stopImmediatePropagation();const i=t.parentElement;let s=i.previousSibling?.querySelector(".info");s&&!s.parentElement.classList.contains("collapsed")&&s.parentElement.classList.contains("folder")&&(s=s.parentElement.querySelector(".children").lastChild.querySelector(".info")),!s&&i.parentElement.classList.contains("children")&&(s=i.parentElement.parentElement.querySelector(".info")),s&&(this.selectElement(s),ka(s,{scrollMode:"if-needed",block:"nearest",inline:"nearest"}))}if(e.code=="ArrowDown"){e.preventDefault(),e.stopImmediatePropagation();const i=t.parentElement;let s;i.classList.contains("folder")&&!i.classList.contains("collapsed")&&(s=i.querySelector(".children").children[0].querySelector(".info")),s||(s=t.parentElement.nextSibling?.querySelector(".info")),!s&&i.parentElement.classList.contains("children")&&(s=i.parentElement.parentElement.nextSibling.querySelector(".info")),s&&(this.selectElement(s),ka(s,{scrollMode:"if-needed",block:"nearest",inline:"nearest"}))}if(e.code=="ArrowLeft"&&(e.preventDefault(),e.stopImmediatePropagation(),this.collapse(t)),e.code=="ArrowRight"&&(e.preventDefault(),e.stopImmediatePropagation(),this.expand(t)),e.code=="Enter"&&(e.preventDefault(),e.stopImmediatePropagation(),t.parentElement?.querySelector(".title")&&this.startEditing(t.parentElement?.querySelector(".title"))),e.code=="Delete"||e.code=="Backspace"){const i=this.viewElement.querySelector(".info.selected"),s=i?.dataset.path;if(!s)return;const n=i.parentElement.classList.contains("folder");Le.getStandardHandler()[n?"removeDirectory":"removeFile"](s).then(()=>{const a=this.getElement(s);a&&(a.parentElement?.remove(),this.viewElement.querySelector(".delete").disabled=!0,this.viewElement.querySelector(".rename").disabled=!0)})}}startDragging(e){const t=e;t.totalMovementX=0,t.totalMovementY=0,this.draggedElement=t;const i=()=>{this.stopDragging(),window.removeEventListener("mouseup",i)};window.addEventListener("mouseup",i)}handleDragEvent(e){if(this.draggedElement){if(this.draggedElement.totalMovementX+=e.movementX,this.draggedElement.totalMovementY+=e.movementY,!this.draggedCopy)if(Math.abs(this.draggedElement.totalMovementX)+Math.abs(this.draggedElement.totalMovementY)>8){this.viewElement.addEventListener("mousemove",this.mouseHandler),this.draggedCopy=this.draggedElement.parentElement.cloneNode(!0),this.draggedCopy.style.position="fixed";const t=this.draggedElement.getBoundingClientRect();this.draggedCopy.style.top=t.top+this.draggedElement.totalMovementY+"px",this.draggedCopy.style.left=t.left+this.draggedElement.totalMovementX+"px",this.draggedCopy.style.width=t.width+"px",this.draggedCopy.style.boxShadow="3px 3px 3px #222",this.draggedCopy.querySelector(".children")&&this.draggedCopy.removeChild(this.draggedCopy.querySelector(".children")),this.viewElement.appendChild(this.draggedCopy)}else return;this.draggedCopy.style.top=parseFloat(this.draggedCopy.style.top.slice(0,-2))+e.movementY+"px",this.draggedCopy.style.left=parseFloat(this.draggedCopy.style.left.slice(0,-2))+e.movementX+"px"}}async stopDragging(){if(this.draggedCopy){this.draggedCopy.remove(),this.viewElement.removeEventListener("mousemove",this.mouseHandler);const e=this.draggedCopy.classList.contains("folder"),t=this.draggedElement.dataset.path,i=this.fileDropPath==""?er(this.draggedElement.dataset.path):this.fileDropPath+"/"+er(this.draggedElement.dataset.path);t!=i&&await Le.getStandardHandler()[e?"renameDirectory":"renameFile"](t,i),await this.refreshDirectory(Ht(t)),await this.refreshDirectory(Ht(i)),this.viewElement.querySelector(".outlined")?.classList.remove("outlined"),this.fileDropPath=""}this.draggedCopy=void 0,this.draggedElement=void 0}handleDropEvent(e){e.preventDefault(),e.stopImmediatePropagation(),this.viewElement.querySelector(".outlined")?.classList.remove("outlined"),e.target.closest(".dir-selector")&&Le.getStandardHandler().handleDropEvent(e,this.fileDropPath).then(async t=>{await this.refreshDirectory(this.fileDropPath),this.getAcceptableFile(t??this.fileDropPath).then(i=>this.selectPath(i)),this.fileDropPath=""})}handleMouseEvent(e){const t=this.viewElement.querySelector(".dir-selector");let i=Array.from(t.querySelectorAll("div.item.folder"));const s=this.viewElement.querySelector(".outlined");i=i.filter(n=>!n.parentElement.closest(".collapsed")),i.reverse(),i.push(t);for(const n of i){const a=n.getBoundingClientRect();if(e.clientX>=a.x&&e.clientX<=a.x+a.width&&e.clientY>=a.y&&e.clientY<=a.y+a.height){s!=n&&s?.classList.remove("outlined");const o=n.querySelector(".info");this.fileDropPath=o?.dataset.path??"",n.classList.contains("dir-selector")&&(this.fileDropPath=""),n.classList.add("outlined");return}}this.viewElement.querySelector(".outlined")?.classList.remove("outlined"),this.fileDropPath=""}escapeSelector(e){return e.replaceAll(/'/g,"\\'")}}class Ye{items=[];itemIndex=0;limit=0;app;static instance;constructor(e){this.app=e,Ye.instance||(Ye.instance=this)}run(e){e.action(this.app),this.items.splice(this.itemIndex,this.items.length-this.itemIndex,e),this.itemIndex++}undo(){this.items[this.itemIndex-1]&&(this.items[this.itemIndex-1].undo(this.app),this.itemIndex--,H.emit("undo"))}redo(){this.items[this.itemIndex]&&(this.items[this.itemIndex].redo?this.items[this.itemIndex].redo(this.app):this.items[this.itemIndex].action(this.app),this.itemIndex++,H.emit("redo"))}reset(){this.itemIndex=0,this.limit=0,this.items=[]}canUndo(){return this.itemIndex>0}canRedo(){return this.itemIndex!=this.items.length}setLimit(){this.limit=this.itemIndex}isDirty(){return this.itemIndex!=this.limit}merge(e){const t=this.items.splice(-e),i=t.reverse();this.itemIndex-=e,this.run({action:()=>{},redo:s=>{t.forEach(n=>n.action(s))},undo:s=>{i.forEach(n=>n.undo(s))}})}}function sy(){const r=document.createElement("div");return r.spellcheck=!1,r.contentEditable="true",r.classList.add("inlineEdit"),r.onkeydown=e=>{e.key=="Enter"&&r.blur()},r}function qo(r,e){return{title:r,element:t=>{const i=sy();return i.onblur=()=>{const s=i.innerText,n=t[e];Ye.instance.run({action:()=>{t[e]=s,i.innerText=s},undo:()=>{t[e]=n,i.innerText=n}}),i.scrollLeft=0},i.innerText=t[e],i}}}const N3={name:qo("Name","chartName"),credit:qo("Artist","credit"),style:qo("Style","chartStyle"),description:qo("Description","description"),music:{title:"Music File",element:(r,e)=>{const t=document.createElement("div");t.classList.add("flex-row","flex-column-gap","flex-static","hide-buttons");const i=()=>{if(s.innerText==(r.music??e.chartManager.loadedSM.properties.MUSIC??""))return;const c=e.chartManager.chartAudio.isPlaying();if(s.innerText==""||s.innerText==e.chartManager.loadedSM.properties.MUSIC){r.music=void 0,s.innerText=e.chartManager.loadedSM.properties.MUSIC+"",e.chartManager.loadAudio(),c&&e.chartManager.chartAudio.play();return}const u=s.innerText==e.chartManager.loadedSM.properties.MUSIC?void 0:s.innerText,h=r.music;Ye.instance.run({action:()=>{r.music=u,s.innerText=u??e.chartManager.loadedSM.properties.MUSIC??"",e.chartManager.loadAudio(),c&&e.chartManager.chartAudio.play()},undo:()=>{r.music=h,s.innerText=h??e.chartManager.loadedSM.properties.MUSIC??"",e.chartManager.loadAudio(),c&&e.chartManager.chartAudio.play()}})},s=sy();s.style.flex="1",s.onblur=i,s.innerText=r.music??e.chartManager.loadedSM.properties.MUSIC??"";const n=document.createElement("button");n.onclick=()=>{const c=Ht(e.chartManager.smPath);if(window.nw){const u=document.createElement("input");u.type="file",u.accept="audio/*",u.onchange=()=>{s.innerText=Le.getRelativePath(c,u.value),i()},u.click()}else e.windowManager.openWindow(new Ud(e,{title:"Select an audio file...",accepted_file_types:rh,disableClose:!0,callback:u=>{s.innerText=Le.getRelativePath(c,u),i()}},c+"/"+(r.music??e.chartManager.loadedSM.properties.MUSIC??"")))};const a=Ce.getIcon("FOLDER",12);n.appendChild(a);const o=document.createElement("button");o.onclick=()=>{s.innerText!=(e.chartManager.loadedSM.properties.MUSIC??"")&&(s.innerText=e.chartManager.loadedSM.properties.MUSIC??"",i())};const l=Ce.getIcon("REVERT",12);return o.appendChild(l),t.appendChild(s),t.appendChild(n),t.appendChild(o),t}}};class Oi{view;items=[];selectedItem;onChangeHandlers=[];static create(e,t){return new Oi(document.createElement("div"),e,t)}constructor(e,t,i){this.view=e,e.classList.add("dropdown"),this.items=t??[],this.selectedItem=i??this.items[0];const s=document.createElement("div");s.classList.add("dropdown-selected");const n=document.createElement("div");n.classList.add("dropdown-selected-text");const a=Ce.getIcon("CHEVRON",12);s.appendChild(n),s.appendChild(a);const o=document.createElement("div");o.classList.add("dropdown-items"),o.style.height="",s.onclick=()=>{if(!s.classList.contains("disabled")){if(this.items.length==0){o.style.height="";return}this.createDropdown(),o.style.height==""?(o.classList.remove("collapsed"),o.style.width=Math.max(o.scrollWidth,s.clientWidth)+"px",o.style.height=o.scrollHeight+"px",Array.from(o.children).forEach((l,c)=>{l.style.animationDelay=c*.02+"s"})):(o.style.height="",o.classList.add("collapsed"))}},window.addEventListener("click",l=>{const c=l.target;(!c.closest(".dropdown")||c.closest(".dropdown")!=e)&&(o.style.height="")}),o.classList.add("collapsed"),this.view.appendChild(s),this.view.appendChild(o),this.setSelected()}onChange(e){this.onChangeHandlers.push(e)}removeHandler(e){this.onChangeHandlers.includes(e)&&this.onChangeHandlers.splice(this.onChangeHandlers.indexOf(e),1)}getItems(){return this.items}setItems(e){this.items=e,e.includes(this.selectedItem)||(this.selectedItem=this.items[0],this.setSelected())}setSelected(e){this.selectedItem=e??this.selectedItem;const t=this.view.querySelector(".dropdown-selected-text");t.innerText=this.selectedItem?this.selectedItem+"":""}closeDropdown(){const e=this.view.querySelector(".dropdown-items");e&&(e.style.height="")}get value(){return this.selectedItem}get disabled(){return this.view.querySelector(".dropdown-selected").classList.contains("disabled")}set disabled(e){e?this.view.querySelector(".dropdown-selected").classList.add("disabled"):this.view.querySelector(".dropdown-selected").classList.remove("disabled")}createDropdown(){const e=this.view.querySelector(".dropdown-items"),t=this.items.map((i,s)=>{const n=document.createElement("div");return n.classList.add("dropdown-item"),n.innerText=i+"",n.onclick=()=>{e.style.height="",e.classList.add("collapsed"),this.selectedItem!=i&&(this.setSelected(i),this.onChangeHandlers.forEach(a=>a(i,s)))},n});e.replaceChildren(...t)}}class Wa extends Tt{app;buttonOptions;message;resolve;resolved=new Promise(e=>this.resolve=e);constructor(e,t,i,s){super({title:t,width:300,height:100,disableClose:!0,win_id:"confirm",blocking:!0}),this.app=e,this.message=i,this.buttonOptions=s,this.initView()}initView(){this.viewElement.replaceChildren(),this.viewElement.classList.add("confirmation");const e=document.createElement("div");e.classList.add("padding");const t=document.createElement("div");t.classList.add("label"),t.innerText=this.message,e.appendChild(t);const i=document.createElement("div");i.classList.add("menu-options"),this.buttonOptions.forEach(s=>{const n=document.createElement("button");n.innerText=s.label,n.onclick=()=>{s.callback?.(),this.resolve?.(s.label),this.closeWindow()},s.type!="default"&&n.classList.add(s.type),i.append(n)}),e.appendChild(i),this.viewElement.appendChild(e)}}class ny extends Tt{app;gameType;chartList;chartInfo;gameTypeDropdown;smLoadHandler=()=>{this.gameTypeDropdown.setItems(We.getPriority().map(e=>{const t=this.app.chartManager.loadedSM?.charts[e.id]??[];return e.id+" ("+t.length+")"})),this.gameTypeDropdown.setSelected(this.gameType.id+" ("+(this.app.chartManager.loadedSM?.charts[this.gameType.id]??[]).length+") "),this.gameType=this.app.chartManager.loadedChart?.gameType??this.gameType,this.loadCharts()};constructor(e,t){super({title:"Chart List",width:500,height:400,win_id:"chart_list"}),this.app=e,this.gameType=t??e.chartManager.loadedChart?.gameType??We.getPriority()[0],this.initView(),H.on("smLoadedAfter",this.smLoadHandler)}initView(){this.viewElement.replaceChildren();const e=document.createElement("div");e.classList.add("padding");const t=document.createElement("div");t.classList.add("chart-view-type-wrapper");const i=document.createElement("div");i.classList.add("chart-view-type-label"),i.innerText="Game Type:",this.gameTypeDropdown=Oi.create(We.getPriority().map(n=>{const a=this.app.chartManager.loadedSM?.charts[n.id]??[];return n.id+" ("+a.length+")"}),this.gameType.id+" ("+(this.app.chartManager.loadedSM?.charts[this.gameType.id]??[]).length+") "),this.gameTypeDropdown.onChange(n=>{this.gameType=We.getGameType(n.split(" ")[0])??this.gameType,this.loadCharts()}),t.appendChild(i),t.appendChild(this.gameTypeDropdown.view);const s=document.createElement("div");s.classList.add("chart-view-scroller"),e.appendChild(t),e.appendChild(s),this.chartList=document.createElement("div"),this.chartList.classList.add("chart-list"),this.chartInfo=document.createElement("div"),this.chartInfo.classList.add("chart-info"),s.appendChild(this.chartList),s.appendChild(this.chartInfo),this.viewElement.appendChild(e),this.loadCharts()}onClose(){H.off("smLoadedAfter",this.smLoadHandler)}loadCharts(){const e=this.app.chartManager.loadedSM?.charts[this.gameType.id]??[],t=[];this.gameTypeDropdown.setItems(We.getPriority().map(a=>{const o=this.app.chartManager.loadedSM?.charts[a.id]??[];return a.id+" ("+o.length+")"})),this.gameTypeDropdown.setSelected(this.gameType.id+" ("+(this.app.chartManager.loadedSM?.charts[this.gameType.id]??[]).length+") "),e.forEach(a=>{const o=document.createElement("div");o.classList.add("chart-list-item"),o.chart=a,this.app.chartManager.loadedChart==a&&o.classList.add("selected"),o.onclick=()=>{o.chart!=this.app.chartManager.loadedChart&&(this.app.chartManager.loadChart(o.chart),this.chartList.querySelectorAll(".selected").forEach(d=>d.classList.remove("selected")),o.classList.add("selected"))},o.onmouseenter=()=>{this.loadChartDetails(o.chart)},o.onmouseleave=()=>{this.loadChartDetails()};const l=document.createElement("div");l.innerText=a.meter+"",l.classList.add("title",a.difficulty);const c=document.createElement("div");c.classList.add("chart-list-info");const u=document.createElement("div");u.innerText=a.credit,u.classList.add("title","chart-credit");const h=document.createElement("div");h.innerText=a.getNotedata().length+"",h.classList.add("title","chart-step-count"),c.appendChild(u),c.appendChild(h),o.appendChild(l),o.appendChild(c),t.push(o)});const i=document.createElement("div");i.classList.add("chart-list-item");const s=document.createElement("div");s.innerText="+",s.classList.add("title");const n=document.createElement("div");n.classList.add("chart-list-info"),n.innerText="New Blank Chart",i.appendChild(s),i.appendChild(n),i.onclick=()=>{const a=new Qb(this.app.chartManager.loadedSM);a.gameType=this.gameType,this.app.chartManager.loadedSM.addChart(a),this.app.chartManager.loadChart(a),this.loadCharts()},this.chartList.replaceChildren(...t,i),this.loadChartDetails()}loadChartDetails(e){if(e=e??this.app.chartManager.loadedChart,e?.gameType.id!=this.gameType.id){this.chartInfo.replaceChildren();return}if(!e)return;const t=()=>this.app.chartManager.loadedSM.charts[e.gameType.id].sort((m,g)=>ki.indexOf(m.difficulty)==ki.indexOf(g.difficulty)?m.meter-g.meter:ki.indexOf(m.difficulty)-ki.indexOf(g.difficulty)),i=document.createElement("div");i.classList.add("chart-info-main");const s=Oi.create(ki,e.difficulty);s.view.classList.add("no-border","white"),s.onChange(m=>{const g=e.difficulty;Ye.instance.run({action:()=>{e.difficulty=m,t(),this.loadCharts()},undo:()=>{e.difficulty=g,t(),this.loadCharts()}})});const n=document.createElement("div");n.spellcheck=!1,n.contentEditable="true",n.classList.add("inlineEdit","chart-meter"),n.onkeydown=m=>{m.key=="Enter"&&n.blur()},n.onblur=()=>{let m=Na(n.innerText);if(m===null){n.innerText=e?.meter+"";return}m=Math.round(Oe(1,m,2**31-1));const g=e.meter;Ye.instance.run({action:()=>{e.meter=m,e.meterF=m,t(),this.loadCharts()},undo:()=>{e.meter=g,e.meterF=g,t(),this.loadCharts()}}),n.scrollLeft=0},n.innerText=e.meter+"";const a=document.createElement("div");a.classList.add("chart-properties"),i.appendChild(s.view),i.appendChild(n),Object.values(N3).forEach(m=>{const g=document.createElement("div");g.classList.add("label"),g.innerText=m.title;const b=m.element(e,this.app);m.title=="Artist"&&b.addEventListener("blur",()=>this.loadCharts()),a.appendChild(g),a.appendChild(b)});const o=e.getNotedataStats(),l=document.createElement("div");l.classList.add("chart-info-grid-item");const c=document.createElement("div");c.innerText="Peak NPS",c.classList.add("title","chart-info-grid-label");const u=document.createElement("div");u.innerText=e.getMaxNPS().toFixed(2)+"",u.classList.add("title","chart-info-grid-count"),l.appendChild(c),l.appendChild(u);const h=document.createElement("div");h.classList.add("chart-info-grid"),Object.entries(o).forEach(m=>{const g=document.createElement("div");g.classList.add("chart-info-grid-item");const b=document.createElement("div");b.innerText=m[0],b.classList.add("title","chart-info-grid-label");const w=document.createElement("div");w.innerText=m[1]+"",w.classList.add("title","chart-info-grid-count"),g.appendChild(b),g.appendChild(w),h.appendChild(g)});const d=document.createElement("div");d.classList.add("menu-options");const f=document.createElement("button");f.innerText="Duplicate Chart",f.onclick=()=>{const m=Object.assign(Object.create(Object.getPrototypeOf(e)),e);m.setNotedata(e.getNotedata().map(g=>e.computeNote(g))??[]),this.app.chartManager.loadedSM.addChart(m),this.app.chartManager.loadChart(m),this.loadCharts()},d.append(f);const p=document.createElement("button");p.innerText="Delete Chart",p.onclick=()=>{this.app.windowManager.openWindow(new Wa(this.app,"Delete chart","Are you sure you want to delete this chart?",[{type:"default",label:"Cancel"},{type:"delete",label:"Delete",callback:()=>{this.app.chartManager.loadedSM.removeChart(e)&&(this.app.chartManager.loadChart(),this.gameType=this.app.chartManager.loadedChart?.gameType??this.gameType,this.loadCharts())}}]))},p.classList.add("delete"),d.append(p),this.chartInfo.replaceChildren(i,a,l,h,d)}}var U3=4,H3=.001,G3=1e-7,V3=10,ga=11,Yo=1/(ga-1),z3=typeof Float32Array=="function";function ay(r,e){return 1-3*e+3*r}function oy(r,e){return 3*e-6*r}function ly(r){return 3*r}function Ul(r,e,t){return((ay(e,t)*r+oy(e,t))*r+ly(e))*r}function hy(r,e,t){return 3*ay(e,t)*r*r+2*oy(e,t)*r+ly(e)}function W3(r,e,t,i,s){var n,a,o=0;do a=e+(t-e)/2,n=Ul(a,i,s)-r,n>0?t=a:e=a;while(Math.abs(n)>G3&&++o=H3?$3(l,f,e,i):p===0?f:W3(l,c,c+Yo,e,i)}return function(c){return c===0?0:c===1?1:Ul(o(c),t,s)}};const Sr=Xa(q3),Y3=Sr(0,0,1,1);function Rm(r,e){const t=e?e.split("."):[];for(;t.length&&r;){const i=t.shift(),s=new RegExp("(.+)\\[([0-9]*)\\]").exec(i);if(s!==null&&s.length==3){const n={arrName:s[1],arrIndex:s[2]};r[n.arrName]!==void 0?r=r[n.arrName][n.arrIndex]:r=void 0;continue}r=r[i]}return r}function X3(r,e,t){const i=e?e.split("."):[];for(;i.length&&r;){const s=i.shift(),n=new RegExp("(.+)\\[([0-9]*)\\]").exec(s);if(n!==null&&n.length==3){const a={arrName:n[1],arrIndex:n[2]};r[a.arrName]!==void 0&&i.length===0&&(r[a.arrName][a.arrIndex]=t);continue}r[s]===void 0&&(r[s]={}),i.length===0&&(r[s]=t),r=r[s]}return r}const Yr=class Yr{static updateObject(e,t,i){const s=Object.keys(t).sort((o,l)=>parseFloat(o)-parseFloat(l));let n="0";for(let o=s.length-2;o>=0;o--)if(parseFloat(s[o])<=i){n=s[o];break}let a="1";for(let o=1;oi){a=s[o];break}Object.keys(t[0]).forEach(o=>{let l=t[n][o],c=t[a][o];l==="inherit"&&(t[n][o]=Rm(e,o),l=t[n][o]),c==="inherit"&&(t[a][o]=Rm(e,o),c=t[a][o]);const u=l+(i-parseFloat(n))/(parseFloat(a)-parseFloat(n))*(c-l);X3(e,o,u)})}static stop(e,t=null){e!==void 0&&(t!==null&&this.animations.get(e)?.obj&&!this.animations.get(e).obj.destroyed&&this.updateObject(this.animations.get(e).obj,this.animations.get(e).animation,t),this.animations.delete(e))}static finish(e){e!==void 0&&this.stop(e,1)}static animate(e,t,i,s,n=()=>{},a){return a||=`${++this._id}`,this.animations.set(a,{obj:e,animation:t,seconds:1/(60*i),progress:0,curve:s!==void 0?s:Y3,onend:n}),a}};Ys(Yr,"animations",new Map),Ys(Yr,"_id",0),It.shared.add(e=>{for(const[t,i]of Yr.animations.entries())i.obj._destroyed?Yr.stop(t):(i.progress=Math.min(1,i.progress+i.seconds*e),Yr.updateObject(i.obj,i.animation,i.curve(i.progress)),i.progress>=1&&(i.onend(i.obj),Yr.stop(t,1)))});let mi=Yr;const Fm=["accent-color","editor-bg","widget-bg","editable-overlay-hover","editable-overlay-active","text-color","text-color-secondary","text-color-detail","text-color-disabled","primary-bg","primary-border","primary-bg-active","primary-bg-hover","secondary-bg","secondary-border","secondary-bg-active","secondary-bg-hover","tooltip-bg","input-bg","input-bg-active","input-bg-hover","input-border","navbar-bg","navbar-bg-inactive","window-bg","window-border"],K3=["primary-bg","secondary-bg","text-color","accent-color","widget-bg","editor-bg","editable-overlay-active","input-bg","window-bg"],Z3=[{name:"primary-bg",ids:[{id:"primary-bg",label:"base"},{id:"primary-bg-active",label:"active"},{id:"primary-bg-hover",label:"hover"},{id:"primary-border",label:"border"}]},{name:"secondary-bg",ids:[{id:"secondary-bg",label:"base"},{id:"secondary-bg-active",label:"active"},{id:"secondary-bg-hover",label:"hover"},{id:"secondary-border",label:"border"}]},{name:"text-color",ids:[{id:"text-color",label:"primary"},{id:"text-color-secondary",label:"secondary"},{id:"text-color-detail",label:"detail"},{id:"text-color-disabled",label:"disabled"}]},{name:"other",ids:[{id:"accent-color",label:"accent-color"},{id:"widget-bg",label:"widget-bg"},{id:"tooltip-bg",label:"tooltip-bg"},{id:"editor-bg",label:"editor-bg"}]},{name:"editable-overlay",ids:[{id:"editable-overlay-hover",label:"hover"},{id:"editable-overlay-active",label:"active"}]},{name:"input",ids:[{id:"input-bg",label:"background"},{id:"input-bg-active",label:"active"},{id:"input-bg-hover",label:"hover"},{id:"input-border",label:"border"}]},{name:"window",ids:[{id:"window-bg",label:"background"},{id:"window-border",label:"border"}]},{name:"window-navbar",ids:[{id:"navbar-bg",label:"active"},{id:"navbar-bg-inactive",label:"inactive"}]}],Lm={"accent-color":"Color used for focus input rings, confirm buttons","text-color":"Base text color","text-color-secondary":"Secondary text color, used for text in recent files, menubar keybinds","text-color-detail":"Detail text color, used for text in timing event boxes","text-color-disabled":"Used for texts relating to empty/disabled things (ex. no files in directory picker)","primary-bg":"Primary background, used for menubar, context/dropdown menus","primary-border":"","primary-bg-active":"","primary-bg-hover":"","navbar-bg":"Window navbar background","navbar-bg-inactive":"","window-bg":"Window background","window-border":"","secondary-bg":"Secondary background, used for subareas in menus","secondary-border":"","secondary-bg-active":"","secondary-bg-hover":"","editable-overlay-hover":"Overlay on top of editable items (status widget buttons, playback option toggles, textareas)","editable-overlay-active":"","input-bg":"Background color for input","input-bg-active":"","input-bg-hover":"","input-border":"","widget-bg":"Widget background","tooltip-bg":"Color of these tooltips","editor-bg":"Editor background"},_c={"primary-bg":{"primary-border":function(r){return this.lighten(r,10).setAlpha(187/255)},"primary-bg-active":function(r){return this.lighten(r,10)},"primary-bg-hover":function(r){return this.lighten(r,30)},"widget-bg":function(r){return this.add(r,-50).setAlpha(136/255)},"window-bg":function(r){return this.lighten(r,-10)},"text-color":function(r){return this.average(r)>.5?new P("#000"):new P("#fff")},"input-bg":function(r){return this.average(r)<.5?new P("#000"):new P("#fff")},"input-border":function(r){return this.average(r)>.5?this.add(r,-30).setAlpha(119/255):this.add(r,30).setAlpha(119/255)},"tooltip-bg":function(r){return this.lighten(r,-10).setAlpha(238/255)},"secondary-bg":function(r){return this.lighten(r,-20)},"editor-bg":function(r){return this.lighten(r,-60)}},"window-bg":{"navbar-bg":function(r){return new P(r)}},"secondary-bg":{"secondary-border":function(r){return this.lighten(r,10).setAlpha(187/255)},"secondary-bg-active":function(r){return this.lighten(r,50)},"secondary-bg-hover":function(r){return this.lighten(r,30)}},"navbar-bg":{"navbar-bg-inactive":function(r){return this.lighten(r,-33)}},"text-color":{"text-color-secondary":function(r){return new P(r).setAlpha(119/255)},"text-color-detail":function(r){return new P(r).setAlpha(68/255)},"text-color-disabled":function(r){return new P(r).setAlpha(136/255)}},"input-bg":{"input-border":function(r){return this.lighten(r,10).setAlpha(187/255)},"input-bg-active":function(r){return this.lighten(r,50)},"input-bg-hover":function(r){return this.lighten(r,30)}}},Cs={default:{"accent-color":new P("rgb(23, 131, 208)"),"text-color":new P("#fff"),"text-color-secondary":new P("#888"),"text-color-detail":new P("#757a89"),"text-color-disabled":new P("#888"),"primary-bg":new P("#555"),"primary-border":new P("#444"),"primary-bg-active":new P("#575757"),"primary-bg-hover":new P("#666"),"navbar-bg":new P("#3d3d3d"),"navbar-bg-inactive":new P("#626262"),"window-bg":new P("#3d3d3d"),"window-border":new P("#00000000"),"secondary-bg":new P("#373737"),"secondary-border":new P("#333"),"secondary-bg-active":new P("#555"),"secondary-bg-hover":new P("#454545"),"editable-overlay-hover":new P("rgb(255, 255, 255, 0.1)"),"editable-overlay-active":new P("rgb(255, 255, 255, 0.2)"),"input-bg":new P("rgba(35, 35, 35, 0.309)"),"input-bg-active":new P("rgba(50, 50, 50, 0.309)"),"input-bg-hover":new P("rgba(79, 79, 79, 0.309)"),"input-border":new P("rgba(0, 0, 0, 0.3)"),"widget-bg":new P("rgba(0, 0, 0, 0.5)"),"tooltip-bg":new P("rgba(20, 20, 20, 0.95)"),"editor-bg":new P("#18191c")},dusk:{"accent-color":new P("#b34e97ff"),"text-color":new P("#ffffffff"),"text-color-secondary":new P("#ffffff77"),"text-color-detail":new P("#ffffff44"),"text-color-disabled":new P("#ffffff88"),"primary-bg":new P("#1b0131ff"),"primary-border":new P("#1e0136bb"),"primary-bg-active":new P("#2f0057ff"),"primary-bg-hover":new P("#230140ff"),"navbar-bg":new P("#18012cff"),"navbar-bg-inactive":new P("#10011dff"),"window-bg":new P("#18012cff"),"window-border":new P("#00000000"),"secondary-bg":new P("#160127ff"),"secondary-border":new P("#18012bbb"),"secondary-bg-active":new P("#310a52ff"),"secondary-bg-hover":new P("#25033fff"),"editable-overlay-hover":new P("#e79dff1a"),"editable-overlay-active":new P("#e79dff33"),"input-bg":new P("#000000ff"),"input-bg-active":new P("#000000ff"),"input-bg-hover":new P("#000000ff"),"input-border":new P("#391f4f77"),"widget-bg":new P("#00000088"),"tooltip-bg":new P("#18012cee"),"editor-bg":new P("#0b0014ff")},nord:{"accent-color":new P("#1783d0ff"),"text-color":new P("#d9dee8ff"),"text-color-secondary":new P("#d9dee878"),"text-color-detail":new P("#d9dee845"),"text-color-disabled":new P("#d9dee887"),"primary-bg":new P("#2e3440ff"),"primary-border":new P("#323946ba"),"primary-bg-active":new P("#636d83ff"),"primary-bg-hover":new P("#485061ff"),"navbar-bg":new P("#292e39ff"),"navbar-bg-inactive":new P("#2f333cff"),"window-bg":new P("#292e39ff"),"window-border":new P("#00000000"),"secondary-bg":new P("#242933ff"),"secondary-border":new P("#272d38ba"),"secondary-bg-active":new P("#444d5fff"),"secondary-bg-hover":new P("#3f4755ff"),"editable-overlay-hover":new P("#ffffff1a"),"editable-overlay-active":new P("#ffffff33"),"input-bg":new P("#1212124f"),"input-bg-active":new P("#141414ff"),"input-bg-hover":new P("#171717ff"),"input-border":new P("#121212ff"),"widget-bg":new P("#00020e87"),"tooltip-bg":new P("#292e39ed"),"editor-bg":new P("#18191cff")},light:{"accent-color":new P("#ff594cff"),"text-color":new P("#000000ff"),"text-color-secondary":new P("#00000078"),"text-color-detail":new P("#00000045"),"text-color-disabled":new P("#00000087"),"primary-bg":new P("#ffffffff"),"primary-border":new P("#b5b5b5ff"),"primary-bg-active":new P("#ebebebff"),"primary-bg-hover":new P("#ffd4d1ff"),"navbar-bg":new P("#edededff"),"navbar-bg-inactive":new P("#d1d1d1ff"),"window-bg":new P("#edededff"),"window-border":new P("#00000000"),"secondary-bg":new P("#d9d9d9ff"),"secondary-border":new P("#c7c7c7ff"),"secondary-bg-active":new P("#f0f0f0ff"),"secondary-bg-hover":new P("#e3e3e3ff"),"editable-overlay-hover":new P("#ff594c3d"),"editable-overlay-active":new P("#ff594c73"),"input-bg":new P("#ebebebff"),"input-bg-active":new P("#e0e0e0ff"),"input-bg-hover":new P("#ffffffff"),"input-border":new P("#9e9e9eff"),"widget-bg":new P("#f7f7f7e5"),"tooltip-bg":new P("#ffffffff"),"editor-bg":new P("#cfcfcfff")},rust:{"accent-color":new P("#b37100ff"),"text-color":new P("#ffd7bdf2"),"text-color-secondary":new P("#ffd7bd78"),"text-color-detail":new P("#ffd7bd45"),"text-color-disabled":new P("#ffd7bd87"),"primary-bg":new P("#3c2e2aff"),"primary-border":new P("#42332eff"),"primary-bg-active":new P("#68524bff"),"primary-bg-hover":new P("#4e3c37ff"),"navbar-bg":new P("#362926ff"),"navbar-bg-inactive":new P("#241b19ff"),"window-bg":new P("#58413cff"),"window-border":new P("#00000000"),"secondary-bg":new P("#40302ba1"),"secondary-border":new P("#46352fff"),"secondary-bg-active":new P("#614a42ff"),"secondary-bg-hover":new P("#533e38ff"),"editable-overlay-hover":new P("#fff8e01a"),"editable-overlay-active":new P("#fff8e033"),"input-bg":new P("#231515ff"),"input-bg-active":new P("#271717ff"),"input-bg-hover":new P("#2e1b1bff"),"input-border":new P("#4b413fff"),"widget-bg":new P("#311e1cdd"),"tooltip-bg":new P("#362926ff"),"editor-bg":new P("#181211ff")},tron:{"accent-color":new P("#00ccffff"),"text-color":new P("#ffffffff"),"text-color-secondary":new P("#ffffffe4"),"text-color-detail":new P("#ffffff5b"),"text-color-disabled":new P("#ffffff88"),"primary-bg":new P("#000000ff"),"primary-border":new P("#ff7b00c9"),"primary-bg-active":new P("#00e1ff98"),"primary-bg-hover":new P("#ff751a5a"),"navbar-bg":new P("#000000ff"),"navbar-bg-inactive":new P("#000000ff"),"window-bg":new P("#000000ff"),"window-border":new P("#ff880085"),"secondary-bg":new P("#121212ff"),"secondary-border":new P("#ff8800aa"),"secondary-bg-active":new P("#00e1ffa3"),"secondary-bg-hover":new P("#ff7e145a"),"editable-overlay-hover":new P("#ffffff1a"),"editable-overlay-active":new P("#ffffff33"),"input-bg":new P("#000000ff"),"input-bg-active":new P("#000000ff"),"input-bg-hover":new P("#000000ff"),"input-border":new P("#1e1e1eff"),"widget-bg":new P("#000000ad"),"tooltip-bg":new P("#000000ff"),"editor-bg":new P("#000000ff")},gilded:{"accent-color":new P("#ffc014ff"),"text-color":new P("#e6e6e6ff"),"text-color-secondary":new P("#ffffff6b"),"text-color-detail":new P("#e6e6e645"),"text-color-disabled":new P("#e6e6e687"),"primary-bg":new P("#232325ff"),"primary-border":new P("#272729ff"),"primary-bg-active":new P("#ffc0145b"),"primary-bg-hover":new P("#ffc01421"),"navbar-bg":new P("#202021ff"),"navbar-bg-inactive":new P("#151516ff"),"window-bg":new P("#202021ff"),"window-border":new P("#00000000"),"secondary-bg":new P("#1c1c1eff"),"secondary-border":new P("#1f1f21ff"),"secondary-bg-active":new P("#1f1f21ff"),"secondary-bg-hover":new P("#242427ff"),"editable-overlay-hover":new P("#ffffff1a"),"editable-overlay-active":new P("#ffffff33"),"input-bg":new P("#0d0d0dff"),"input-bg-active":new P("#0e0e0eff"),"input-bg-hover":new P("#111111ff"),"input-border":new P("#0e0e0eff"),"widget-bg":new P("#171717db"),"tooltip-bg":new P("#202021ff"),"editor-bg":new P("#0e0e0fff")}};class $e{static _themes=Cs;static _userThemes={};static _initialized=!1;static style;static currentTheme;static initialize(){this._createThemeStyle(),this._loadUserThemes(),this._initialized=!0}static _createThemeStyle(){const e=document.createElement("style");document.getElementsByTagName("head")[0].appendChild(e),this.style=e}static _loadUserThemes(){let e={};try{e=JSON.parse(localStorage.getItem("themes")??"{}")}catch{console.warn("Error loading user themes")}const t={};for(const[i,s]of Object.entries(e))t[i]=this.validateTheme(s);this._userThemes=t}static _saveUserThemes(){const e=Object.fromEntries(Object.entries(this._userThemes).map(([t,i])=>[t,this.convertThemeToString(i)]));localStorage.setItem("themes",JSON.stringify(e))}static validateTheme(e){const t={...Cs.default};if(typeof e!="object")return t;for(const i of Fm)if(e[i]!==void 0)try{t[i]=new P(e[i])}catch{console.warn(`Invalid color ${e[i]} for ${i}`)}return t}static getThemes(){return{...this._themes,...this._userThemes}}static getBuiltinThemes(){return this._themes}static getUserThemes(){return this._userThemes}static loadTheme(e){this._initialized||this.initialize();let t=this.getThemes()[e];t||(Ee.createFormatted("Error loading theme: Invalid theme id","error"),t=Cs.default),x.general.theme=e,this._applyTheme(t)}static _applyTheme(e){const t=`body{${Fm.map(i=>`--${i}: ${(e[i]??Cs.default[i]).toHexa()};`).join("")}}`;this.style.innerHTML=t,this.currentTheme={...e},H.emit("themeChanged")}static loadThemeFromColors(e){this._applyTheme(this.validateTheme(e))}static getCurrentTheme(){return this.currentTheme}static convertThemeToString(e){return Object.fromEntries(Object.entries(e).map(([t,i])=>[t,i.toHexa()]))}static exportCurrentTheme(e){return e={code:!1,spaces:!1,...e},e.code?JSON.stringify(Object.fromEntries(Object.entries(this.currentTheme).map(([t,i])=>[t,`^new Color('${i.toHexa()}')^`])),null,e.spaces?2:0).replaceAll('"^',"").replaceAll('^"',""):JSON.stringify(this.convertThemeToString(this.currentTheme),null,e.spaces?2:0)}static createUserTheme(e,t){this.getThemes()[e]===void 0&&(t?this._userThemes[e]={...t}:this._userThemes[e]={...Cs.default},this._saveUserThemes())}static setUserTheme(e,t){this._userThemes[e]!==void 0&&(this._userThemes[e]={...t},this._saveUserThemes())}static deleteUserTheme(e){this._userThemes[e]!==void 0&&(delete this._userThemes[e],this.loadTheme("default"),this._saveUserThemes())}static renameUserTheme(e,t){this._userThemes[e]!==void 0&&this.getThemes()[t]===void 0&&(this._userThemes[t]=this._userThemes[e],delete this._userThemes[e],this._saveUserThemes())}static parseThemeText(e){let t;try{t=JSON.parse(e)}catch{return null}return this.validateTheme(t)}static getColor(e){return this.currentTheme?.[e]??Cs.default[e]}}function Hd(r,e,t){return(r<<16)+(e<<8)+t}function Gd(r,e){let t=r>>16,i=r>>8&255,s=r&255;return t=Oe(Math.round(t*e),0,255),i=Oe(Math.round(i*e),0,255),s=Oe(Math.round(s*e),0,255),Hd(t,i,s)}function J3(r,e){let t=r>>16,i=r>>8&255,s=r&255;return t=Oe(Math.round(t+e),0,255),i=Oe(Math.round(i+e),0,255),s=Oe(Math.round(s+e),0,255),Hd(t,i,s)}function Wu(r){return(r.red+r.green+r.blue)/3}function Hl(r,e,t){const[i,s,n]=r.match(/\w\w/g).map(d=>parseInt(d,16)),[a,o,l]=e.match(/\w\w/g).map(d=>parseInt(d,16)),c=Math.round(i+(a-i)*t).toString(16).padStart(2,"0"),u=Math.round(s+(o-s)*t).toString(16).padStart(2,"0"),h=Math.round(n+(l-n)*t).toString(16).padStart(2,"0");return"#"+c+u+h}function Xi(r,e,t){const i=$t(r.red,e.red,t),s=$t(r.green,e.green,t),n=$t(r.blue,e.blue,t),a=$t(r.alpha,e.alpha,t);return new P([i,s,n,a])}const Da=new Map;H.on("themeChanged",()=>{for(const[r,e]of Da.entries()){const t=$e.getColor(r);e.forEach(i=>{i.destroyed||(i.tint=t.toNumber(),i.alpha=t.alpha)}),Da.set(r,e.filter(i=>!i.destroyed))}});function et(r,e){Da.has(e)||Da.set(e,[]),Da.get(e).push(r);const t=$e.getColor(e);r.tint=t.toNumber(),r.alpha=t.alpha}function Ec(r){const{r:e,g:t,b:i,a:s}=r.toRgba(),n=Math.max(e,t,i),a=Math.min(e,t,i);let o=0,l=0;const c=(n+a)/2;if(n==a)o=l=0;else{const u=n-a;switch(l=c>.5?u/(2-n-a):u/(n+a),n){case e:o=(t-i)/u+(tVd(e)),Q3=new Float32Array(Gl);function Vl(r){return Math.log(r/20)/Math.log(1102.5)*Hs}function Vd(r){return Math.pow(1102.5,r/Hs)*20}function Is(r){return-r*6+Ft/2}function Nm(r){return-(r-Ft/2)/6}class ek extends Tt{app;cachedReponse=new Array(Hs).fill(0);onAudioLoad=this.onAudio.bind(this);onThemeChange=this.changeHTMLColors.bind(this);points=[];icons;info;trackedFilter=null;constructor(e){super({title:"Audio Equalizer",width:600,height:245,win_id:"audio-eq"}),this.app=e,this.initView(),this.onAudioLoad(),H.on("audioLoaded",this.onAudioLoad),H.on("themeChanged",this.onThemeChange)}destroy(){H.off("audioLoaded",this.onAudioLoad),H.off("themeChanged",this.onThemeChange)}initView(){this.viewElement.replaceChildren();const e=document.createElement("div");e.classList.add("eq-container");const t=document.createElement("div");t.classList.add("icon-container"),this.app.chartManager.chartAudio.getFilters().forEach((v,y)=>{const E=Ce.getIcon(v.type.toUpperCase(),36,24,Ss[y]);E.classList.add("eq-icon"),E.style.backgroundColor=`${Ss[y]}40`,E.onclick=()=>{this.app.chartManager.chartAudio.getFilter(y).enabled?this.app.chartManager.chartAudio.disableFilter(y):this.app.chartManager.chartAudio.enableFilter(y),this.endTrack(),this.updateIcons()},E.onmouseenter=()=>this.points[y].highlight(),E.onmouseleave=()=>this.points[y].unhighlight(),t.appendChild(E)}),this.icons=t,this.updateIcons();const i=document.createElement("canvas");i.style.width="600px",i.style.height="200px",i.onmousedown=v=>{const y=this.points.filter(E=>E.hitTest(v.offsetX*2,v.offsetY*2)).at(-1);this.endTrack(),y?.mouseDown(v)};const s=document.createElement("div");s.classList.add("eq-info-container");const n=document.createElement("div");n.classList.add("eq-info");const a=document.createElement("div");a.innerText="Type",a.classList.add("eq-info-label");const o=document.createElement("div");o.classList.add("eq-info-value"),n.replaceChildren(a,o);const l=document.createElement("div");l.classList.add("eq-info");const c=document.createElement("div");c.innerText="Frequency",c.classList.add("eq-info-label");const u=document.createElement("div");u.contentEditable="false",u.classList.add("eq-info-value","inlineEdit"),l.replaceChildren(c,u),this.setupInput(u,"frequency",20,22050," Hz");const h=document.createElement("div");h.classList.add("eq-info");const d=document.createElement("div");d.innerText="Gain",d.classList.add("eq-info-label");const f=document.createElement("div");f.contentEditable="false",f.classList.add("eq-info-value","inlineEdit"),h.replaceChildren(d,f),this.setupInput(f,"gain",-24,24," dB",1);const p=document.createElement("div");p.classList.add("eq-info");const m=document.createElement("div");m.innerText="Q",m.classList.add("eq-info-label");const g=document.createElement("div");g.contentEditable="false",g.classList.add("eq-info-value","inlineEdit"),p.replaceChildren(m,g),this.setupInput(g,"Q",1e-4,1e3,"",4);const b=document.createElement("div");b.classList.add("eq-reset","disabled"),b.innerText="Reset",b.onclick=()=>{if(this.trackedFilter==null)for(let v=0;v{o=this.app.chartManager.chartAudio.getFilter(this.trackedFilter)[t].value,e.innerText=ae(o,a)+"",this.selectText(e)},e.onkeydown=l=>{if(l.key=="Enter"){e.blur();return}if(l.key=="Tab"){const u=[...e.parentElement.parentElement.children],h=u.indexOf(e.parentElement);for(let d=1;d{const c=Na(e.innerText);c!==null&&(this.app.chartManager.chartAudio.updateFilter(this.trackedFilter,{[t]:Oe(c,i,s)}),this.points[this.trackedFilter].refreshPoint(),this.getResponse())})},e.onblur=()=>{Na(e.innerText)===null&&(this.app.chartManager.chartAudio.updateFilter(this.trackedFilter,{[t]:Oe(o,i,s)}),this.points[this.trackedFilter].refreshPoint(),this.getResponse()),e.innerText=ae(this.app.chartManager.chartAudio.getFilter(this.trackedFilter)[t].value,a)+n}}onAudio(){this.points=this.app.chartManager.chartAudio.getFilters().map((e,t)=>new tk(this,t)),this.getResponse(),this.updateIcons(),this.endTrack()}getResponse(){this.cachedReponse=this.app.chartManager.chartAudio.getFrequencyResponse(Gl)}drawEQ(e){const t=e.getContext("2d");t.canvas.width=1200,t.canvas.height=400;const i=()=>{if(!this.app.chartManager.chartAudio)return;const s=t.createRadialGradient(e.width/2,e.height/2,0,e.width/2,e.height/2,e.width/2);let n,a;const o=$e.getColor("accent-color");Wu($e.getColor("primary-bg"))>.5?(n=new P("white"),a=new P("black")):(n=new P("black"),a=new P("white"));const l=Xi(o,n,.95);s.addColorStop(0,Xi(o,n,.9).toHexa()),s.addColorStop(1,l.toHexa()),t.fillStyle=s,t.fillRect(0,0,e.width,e.height),t.fillStyle=Xi(o,n,.2).toHex(),this.drawFrequencies(t,this.app.chartManager.chartAudio.getFrequencyData()),this.app.chartManager.chartAudio.hasFilters()&&(t.fillStyle=Xi(o,a,.2).toHex()+"50",this.drawFrequencies(t,this.app.chartManager.chartAudio.getFilteredFrequencyData())),t.fillStyle="rgba(200, 200, 200, 0.5)",this.drawResponse(t),t.fillStyle=Xi(o,a,.2).toHex()+"80",t.font="22px Assistant",this.drawGrid(t),this.points.forEach(c=>c.draw(t)),e.closest("#windows")&&requestAnimationFrame(i)};return i}drawFrequencies(e,t){for(let i=0;i.5?e=new P("white"):e=new P("black");const i=Xi(t,e,.95),s=Xi(t,e,.5);this.icons.style.backgroundColor=i.toHexa(),this.icons.style.borderImageSource=`linear-gradient(to right, ${i.toHexa()}, ${s.toHexa()}, ${i.toHexa()})`,this.info.style.backgroundColor=i.toHexa(),this.info.style.borderImageSource=`linear-gradient(to right, ${i.toHexa()}, ${s.toHexa()}, ${i.toHexa()})`,this.info.style.color=t.toHexa()}updateIcons(){[...this.icons.children].forEach((e,t)=>{this.app.chartManager.chartAudio.getFilter(t).enabled?e.classList.remove("disabled"):e.classList.add("disabled")}),this.getResponse()}trackFilter(e){this.trackedFilter=e;const t=this.app.chartManager.chartAudio.getFilter(e),[i,s,n,a]=[...this.info.children].map(o=>o.children[1]);i.innerText=t.type,s.innerText=Math.round(t.frequency.value)+" Hz",n.innerText=t.type.endsWith("pass")?"-":ae(t.gain.value,1)+" dB",a.innerText=t.type.endsWith("shelf")?"-":ae(t.Q.value,2)+"",i.style.color=Ss[e],s.style.color=Ss[e],n.style.color=Ss[e],a.style.color=Ss[e],s.contentEditable="true",n.contentEditable=`${!t.type.endsWith("pass")}`,a.contentEditable=`${!t.type.endsWith("shelf")}`}endTrack(){setTimeout(()=>{this.trackedFilter=null,this.points.forEach(n=>n.unhighlight());const[e,t,i,s]=[...this.info.children].map(n=>n.children[1]);e.innerText="",t.innerText="",i.innerText="",s.innerText="",t.contentEditable="false",i.contentEditable="false",s.contentEditable="false"})}}const Ko=16,Ss=["#a3001b","#a34f00","#d6d606","#19c402","#02c4ba","#022fc4","#5602c4","#c402b4"];class tk{filterIndex;window;dragging=!1;x=0;y=0;type;response=new Float32Array(Gl.length);_empty=new Float32Array(Gl.length);highlighted=!1;pointSize=.4;constructor(e,t){this.filterIndex=t,this.window=e,this.type=this.window.app.chartManager.chartAudio.getFilter(t).type,this.x=Vl(this.window.app.chartManager.chartAudio.getFilter(t).frequency.value??10),this.getY()}hitTest(e,t){return(e-this.x)*(e-this.x)+(t-this.y)*(t-this.y)<=Ko*Ko}canChangeGain(){return this.type=="lowshelf"||this.type=="highshelf"||this.type=="peaking"}canChangeQ(){return!this.type.endsWith("shelf")}getY(){this.type.endsWith("shelf")?this.y=Is((this.window.app.chartManager.chartAudio.getFilter(this.filterIndex).gain.value??0)/2):this.canChangeGain()?this.y=Is(this.window.app.chartManager.chartAudio.getFilter(this.filterIndex).gain.value??0):this.y=Ft/2}getGain(){if(this.canChangeGain())return this.type.endsWith("shelf")?Nm(this.y)*2:Nm(this.y)}mouseDown(e){this.calcResponse(),this.dragging=!0,this.highlighted=!0,this.window.app.chartManager.chartAudio.getFilter(this.filterIndex).enabled||(this.window.app.chartManager.chartAudio.enableFilter(this.filterIndex),this.window.updateIcons());const t=this.x,i=this.y,s=e.clientX,n=e.clientY,a=l=>{this.x=(l.clientX-s)*2+t,this.canChangeGain()?this.y=(l.clientY-n)*2+i:this.y=Ft/2,this.x=Oe(this.x,0,Hs),this.y=Oe(this.y,this.type.endsWith("shelf")?Ft/4:Is(24),this.type.endsWith("shelf")?3*Ft/4:Is(-24)),this.window.app.chartManager.chartAudio.updateFilter(this.filterIndex,{frequency:Vd(this.x),gain:this.getGain()}),this.window.getResponse(),this.window.trackFilter(this.filterIndex),this.calcResponse()};this.window.trackFilter(this.filterIndex);const o=()=>{mi.animate(this,{0:{pointSize:"inherit"},1:{pointSize:.3}},.3,Sr(.11,.71,.41,.86),()=>{},`eq-point${this.filterIndex}`),this.dragging=!1,window.removeEventListener("mousemove",a),window.removeEventListener("mouseup",o)};mi.animate(this,{0:{pointSize:"inherit"},1:{pointSize:.9}},.3,Sr(.11,.71,.41,.86),()=>{},`eq-point${this.filterIndex}`),window.addEventListener("mousemove",a),window.addEventListener("mouseup",o)}calcResponse(){this.window.app.chartManager.chartAudio.getFilter(this.filterIndex).getFrequencyResponse(Q3,this.response,this._empty)}draw(e){const t=this.highlighted||this.window.app.chartManager.chartAudio.getFilter(this.filterIndex).enabled?Ss[this.filterIndex]:"#888888";if(e.fillStyle=t+"60",this.dragging)for(let i=0;i{navigator.clipboard.writeText(s.innerText)}),this.outputDiv=s;const n=document.createElement("div");n.classList.add("export-section-label"),n.innerText="Include",i.appendChild(n),Object.keys(this.exportOptions.include).forEach(o=>{const l=document.createElement("input");l.type="checkbox",l.id="en-i-"+o,l.checked=this.exportOptions.include[o],l.onchange=()=>{this.exportOptions.include[o]=l.checked,this.export()};const c=document.createElement("label");c.classList.add("export-label"),c.htmlFor=l.id,c.innerText=o;const u=document.createElement("div");u.replaceChildren(l,c),u.classList.add("export-option"),i.appendChild(u)});const a=document.createElement("div");a.classList.add("export-section-label"),a.innerText="Options",i.appendChild(a),Object.keys(this.exportOptions.options).forEach(o=>{const l=document.createElement("input");l.id="en-o-"+o,l.type="checkbox",l.checked=this.exportOptions.options[o],l.onchange=()=>{this.exportOptions.options[o]=l.checked,this.export()};const c=document.createElement("label");c.classList.add("export-label"),c.htmlFor=l.id,c.innerText=Tc[o].label;const u=document.createElement("div");u.replaceChildren(l,c),u.classList.add("export-option"),i.appendChild(u),Tc[o].tooltip!==void 0&&Ze(u,{content:Tc[o].tooltip})}),t.replaceChildren(i,s),e.appendChild(t),this.viewElement.appendChild(e)}export(){let e=`{ `+this.selection.map(t=>{let i=" {";return this.exportOptions.include.Beat&&(i+=this.padNum(t.beat)+","),this.exportOptions.include.Second&&(i+=this.padNum(t.second)+","),this.exportOptions.include.Column&&(this.exportOptions.options.columnOneBased?i+=t.col+1+",":i+=t.col+","),this.exportOptions.include.Type&&(this.exportOptions.options.notitgNoteTypes&&Um[t.type]!==void 0?i+=Um[t.type]+",":i+='"'+t.type+'",'),this.exportOptions.include.Quantization&&(i+=t.quant+","),this.exportOptions.include.Length&&Be(t)&&(this.exportOptions.options.lengthAsNumberIndex?i+=this.padNum(t.hold)+",":i+="length="+this.padNum(t.hold)+","),i.endsWith(",")&&(i=i.slice(0,-1)),i+="}",this.getNumIncludes()==1&&(i=i.replaceAll("{",""),i=i.replaceAll("}","")),i}).join(`, `)+` }`;this.exportOptions.options.minify&&(e=e.replaceAll(/\s/g,"")),this.outputDiv.innerText=e}getNumIncludes(){return Object.values(this.exportOptions.include).map(e=>+e).reduce((e,t)=>e+t,0)}padNum(e){return this.exportOptions.options.padNumbers?(Math.round(e*1e3)/1e3).toFixed(3):Math.round(e*1e3)/1e3}}const Zr={"dance-single":[{label:"Left",keys:["Left","A"]},{label:"Down",keys:["Down","S"]},{label:"Up",keys:["Up","W"]},{label:"Right",keys:["Right","D"]}],"dance-double":[{label:"P1 Left",keys:["Left"]},{label:"P1 Down",keys:["Down"]},{label:"P1 Up",keys:["Up"]},{label:"P1 Right",keys:["Right"]},{label:"P2 Left",keys:["A"]},{label:"P2 Down",keys:["S"]},{label:"P2 Up",keys:["W"]},{label:"P2 Right",keys:["D"]}],"dance-couple":[{label:"P1 Left",keys:["Left"]},{label:"P1 Down",keys:["Down"]},{label:"P1 Up",keys:["Up"]},{label:"P1 Right",keys:["Right"]},{label:"P2 Left",keys:["A"]},{label:"P2 Down",keys:["S"]},{label:"P2 Up",keys:["W"]},{label:"P2 Right",keys:["D"]}],"dance-solo":[{label:"Left",keys:["Left","A"]},{label:"UpLeft",keys:["Q"]},{label:"Down",keys:["Down","S"]},{label:"Up",keys:["Up","W"]},{label:"UpRight",keys:["E"]},{label:"Right",keys:["Right","D"]}],"dance-solodouble":[{label:"P1 Left",keys:["A"]},{label:"P1 UpLeft",keys:["Q"]},{label:"P1 Down",keys:["S"]},{label:"P1 Up",keys:["W"]},{label:"P1 UpRight",keys:["E"]},{label:"P1 Right",keys:["D"]},{label:"P2 Left",keys:["J"]},{label:"P2 UpLeft",keys:["U"]},{label:"P2 Down",keys:["K"]},{label:"P2 Up",keys:["I"]},{label:"P2 UpRight",keys:["O"]},{label:"P2 Right",keys:["L"]}],"dance-threepanel":[{label:"UpLeft",keys:["Left","Q"]},{label:"Down",keys:["Down","S"]},{label:"UpRight",keys:["Right","E"]}],"dance-threedouble":[{label:"P1 UpLeft",keys:["Left"]},{label:"P1 Down",keys:["Down"]},{label:"P1 UpRight",keys:["Right"]},{label:"P2 UpLeft",keys:["Q"]},{label:"P2 Down",keys:["S"]},{label:"P2 UpRight",keys:["E"]}],"pump-single":[{label:"DownLeft",keys:["Z"]},{label:"UpLeft",keys:["Q"]},{label:"Center",keys:["S"]},{label:"UpRight",keys:["E"]},{label:"DownRight",keys:["C"]}],"pump-double":[{label:"P1 DownLeft",keys:["Z"]},{label:"P1 UpLeft",keys:["Q"]},{label:"P1 Center",keys:["S"]},{label:"P1 UpRight",keys:["E"]},{label:"P1 DownRight",keys:["C"]},{label:"P2 DownLeft",keys:["V"]},{label:"P2 UpLeft",keys:["R"]},{label:"P2 Center",keys:["G"]},{label:"P2 UpRight",keys:["Y"]},{label:"P2 DownRight",keys:["N"]}],"pump-versus":[{label:"P1 DownLeft",keys:["Z"]},{label:"P1 UpLeft",keys:["Q"]},{label:"P1 Center",keys:["S"]},{label:"P1 UpRight",keys:["E"]},{label:"P1 DownRight",keys:["C"]},{label:"P2 DownLeft",keys:["V"]},{label:"P2 UpLeft",keys:["R"]},{label:"P2 Center",keys:["G"]},{label:"P2 UpRight",keys:["Y"]},{label:"P2 DownRight",keys:["N"]}],"pump-couple":[{label:"P1 DownLeft",keys:["Z"]},{label:"P1 UpLeft",keys:["Q"]},{label:"P1 Center",keys:["S"]},{label:"P1 UpRight",keys:["E"]},{label:"P1 DownRight",keys:["C"]},{label:"P2 DownLeft",keys:["V"]},{label:"P2 UpLeft",keys:["R"]},{label:"P2 Center",keys:["G"]},{label:"P2 UpRight",keys:["Y"]},{label:"P2 DownRight",keys:["N"]}],"pump-halfdouble":[{label:"P1 Center",keys:["S"]},{label:"P1 UpRight",keys:["E"]},{label:"P1 DownRight",keys:["C"]},{label:"P2 DownLeft",keys:["V"]},{label:"P2 UpLeft",keys:["R"]},{label:"P2 Center",keys:["G"]}]};class Re{static app;static userKeybinds=new Map;static userGameplayKeybinds=new Map;static load(e){this.app=e;try{this.loadKeybinds()}catch(t){console.error("Failed to load user keybinds!"),console.error(t.stack),this.userKeybinds.clear(),this.userGameplayKeybinds.clear()}window.addEventListener("keydown",t=>this.checkKey(t,"keydown")),window.addEventListener("keyup",t=>this.checkKey(t,"keyup"))}static checkKey(e,t){if(e.target.classList.contains("inlineEdit")||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLButtonElement||["Meta","Control","Shift","Alt"].includes(e.key))return;const i=[];for(let a=0;a(o[u]??c.keys).some(h=>s==h));if(l!=-1){if(e.preventDefault(),this.app.windowManager.getFocusedWindow()?.options?.win_id=="keybind_options"||this.app.windowManager.isBlocked())return;this.app.chartManager[t=="keydown"?"judgeCol":"judgeColUp"](l);return}}const n=Object.keys(ct).filter(a=>!["cut","copy","paste","pasteReplace"].includes(a)).filter(a=>{for(const o of this.getCombosForKeybind(a))if(this.compareModifiers(o.mods,i)&&o.key==s)return!0;return!1}).map(a=>ct[a]);if(n.length>0){if(n.every(a=>a.preventDefault!=!1)&&e.preventDefault(),this.app.windowManager.getFocusedWindow()?.options?.win_id=="keybind_options"||this.app.windowManager.isBlocked())return;for(const a of n){let o=a.disabled;if(o instanceof Function&&(o=o(this.app)),!o&&!(a.disableRepeat&&e.repeat)){t=="keydown"?a.callback(this.app):a.callbackKeyUp?.(this.app);return}}}}static getKeyNameFromCode(e){let t=e;return t.startsWith("Digit")&&(t=t.slice(5)),t.startsWith("Key")&&(t=t.slice(3)),t in jm&&(t=jm[t]),t}static getKeybindString(e){return this.getCombosForKeybind(e).map(t=>this.getComboString(t)).join(" / ")}static getComboString(e){const t=dl.filter(i=>e.mods.includes(i)).map(i=>Ek[i]).join("");return t+(t!=""?" ":"")+(vy[e.key]??e.key)}static getCombosForKeybind(e){return e in ct?this.userKeybinds.get(e)??ct[e].combos:(console.log("Couldn't find keybind with id "+e),[])}static getKeysForGameType(e){const t=We.getGameType(e);return t?new Array(t.numCols).fill(null).map((i,s)=>this.userGameplayKeybinds.get(e)?.[s]??Zr[e]?.[s].keys??[]):(console.log("Couldn't find game type with id "+e),[])}static compareModifiers(e,t){if(e.length!=t.length)return!1;for(const i of dl)if((e.includes(i)?1:0)+(t.includes(i)?1:0)==1)return!1;return!0}static compareCombos(e,t){return e.key==t.key&&this.compareModifiers(e.mods,t.mods)}static loadKeybinds(){const e=localStorage.getItem("keybinds");if(e){const i=JSON.parse(e);if(typeof i!="object")return console.error("Couldn't load keybinds from storage");for(const[s,n]of Object.entries(i)){if(!(s in ct)){console.warn("Couldn't load keybind "+s+": key doesn't exist");continue}Array.isArray(n)||console.warn("Couldn't load keybind "+s+": value is not an array"),this.userKeybinds.set(s,n.filter(a=>typeof a.key!="string"||!Array.isArray(a.mods)?(console.warn("Couldn't load keycombo for keybind "+s+": "+JSON.stringify(a)),!1):!0))}}const t=localStorage.getItem("keybindsGP");if(t){const i=JSON.parse(t);if(typeof i!="object")return console.error("Couldn't load gameplay keybinds from storage");for(const[s,n]of Object.entries(i)){if(!We.getGameType(s)){console.warn("Couldn't load gameplay keybinds for gameType "+s+": gameType doesn't exist");continue}Array.isArray(n)||console.warn("Couldn't load gameplay keybind "+s+": value is not an array"),this.userGameplayKeybinds.set(s,n.map((a,o)=>!Array.isArray(a)&&a!==null?(console.warn("Couldn't load gameplay keys for type "+s+" col "+o+": "+JSON.stringify(a)),null):a))}}}static clearSave(){localStorage.removeItem("keybinds"),localStorage.removeItem("keybindsGP")}static setKeybind(e,t){this.userKeybinds.has(e)||this.userKeybinds.set(e,[...ct[e].combos]),this.userKeybinds.get(e)?.push(t),this.checkIsDefault(e),this.saveKeybinds()}static removeKeybind(e,t){this.userKeybinds.has(e)||this.userKeybinds.set(e,[...ct[e].combos]),this.userKeybinds.set(e,this.userKeybinds.get(e).filter(i=>!this.compareCombos(i,t))),this.checkIsDefault(e),this.saveKeybinds()}static revertKeybind(e){this.userKeybinds.delete(e),this.saveKeybinds()}static revertGameplayKeybind(e,t){this.userGameplayKeybinds.has(e)&&(this.userGameplayKeybinds.get(e)[t]=null,this.userGameplayKeybinds.get(e).every(i=>i===null)&&this.userGameplayKeybinds.delete(e)),this.saveKeybinds()}static setGameplayKeybind(e,t,i){this.userGameplayKeybinds.has(e)||this.userGameplayKeybinds.set(e,new Array(We.getGameType(e).numCols).fill(null)),this.userGameplayKeybinds.get(e)[t]==null&&(this.userGameplayKeybinds.get(e)[t]=[...Zr[e]?.[t].keys??[]]),this.userGameplayKeybinds.get(e)[t].push(i),this.checkIsDefaultGameplay(e,t),this.saveKeybinds()}static removeGameplayKeybind(e,t,i){this.userGameplayKeybinds.has(e)||this.userGameplayKeybinds.set(e,new Array(We.getGameType(e).numCols).fill(null)),this.userGameplayKeybinds.get(e)[t]==null&&(this.userGameplayKeybinds.get(e)[t]=[...Zr[e]?.[t].keys??[]]),this.userGameplayKeybinds.get(e)[t]=this.userGameplayKeybinds.get(e)[t].filter(s=>s!=i),this.checkIsDefaultGameplay(e,t),this.saveKeybinds()}static checkIsDefault(e){if(!this.userKeybinds.has(e))return!0;const t=this.userKeybinds.get(e),i=[...ct[e].combos];return t.length!=i.length?!1:t.map(s=>this.getComboString(s)).sort().join("∆")==i.map(s=>this.getComboString(s)).sort().join("∆")?(this.userKeybinds.delete(e),!0):!1}static checkIsDefaultGameplay(e,t){if(!this.userGameplayKeybinds.has(e)||this.userGameplayKeybinds.get(e)[t]===null)return!0;const i=this.userGameplayKeybinds.get(e)[t],s=[...Zr[e]?.[t].keys??[]];return i.length!=s.length?!1:i.sort().join("∆")==s.sort().join("∆")?(this.userGameplayKeybinds.get(e)[t]=null,this.userGameplayKeybinds.get(e).every(n=>n===null)&&this.userGameplayKeybinds.delete(e),!0):!1}static saveKeybinds(){const e={};for(const[i,s]of this.userKeybinds.entries())e[i]=s;localStorage.setItem("keybinds",JSON.stringify(e));const t={};for(const[i,s]of this.userGameplayKeybinds.entries())t[i]=s;localStorage.setItem("keybindsGP",JSON.stringify(t))}static getKeybindTooltip(e){return this.getCombosForKeybind(e).map(i=>{let s=this.getComboString(i);return s==""?"":(s=s.replaceAll("&","&").replaceAll("<","<").replaceAll(">",">").replaceAll('"',""").replaceAll("'","'"),"")}).join("")}static evaluateTaggedTooltip(e,t){t=t.map(s=>s.startsWith("\\")?s.slice(1):this.getKeybindTooltip(s));const i=[];for(let s=0;s"+i.join("")+""}static createKeybindTooltip(e){return(t,...i)=>{Ze(e,{allowHTML:!0,onShow:s=>{s.setContent(this.evaluateTaggedTooltip(t,i))}})}}}class Wn extends Tt{app;allowMods;callback;combo={mods:[],key:""};conflictCheck;listener;static active=!0;constructor(e,t,i,s){super({title:"",width:300,height:168,disableClose:!0,win_id:"keyComboSelector",blocking:!0}),this.app=e,this.allowMods=t,this.callback=i,this.conflictCheck=s??(()=>[]),this.initView(),Wn.active=!0}initView(){this.viewElement.replaceChildren(),this.viewElement.classList.add("confirmation");const e=document.createElement("div");e.classList.add("padding"),e.style.gap="8px";const t=document.createElement("div");t.classList.add("label"),t.innerText="Input a key combo and select Ok when finished.",e.appendChild(t);const i=document.createElement("input");i.type="text",i.disabled=!0,i.style.fontSize="18px",i.style.height="24px",i.style.flex="0",i.style.textAlign="center",e.appendChild(i);const s=document.createElement("div");s.classList.add("detail"),s.innerText="No conflicts",s.style.flex="1",e.appendChild(s);const n=document.createElement("div");n.classList.add("menu-options");const a=document.createElement("button");a.innerText="Ok",a.onclick=()=>{this.callback(this.combo),this.closeWindow()},a.classList.add("confirm"),a.disabled=!0;const o=document.createElement("button");o.innerText="Cancel",o.onclick=()=>{this.closeWindow()},n.append(o),n.append(a),e.appendChild(n),this.viewElement.appendChild(e),this.listener=l=>{if(["Meta","Control","Shift","Alt","Escape"].includes(l.key))return;if(this.combo.key=Re.getKeyNameFromCode(l.code),this.allowMods){const u=[];for(let h=0;h=3?s.innerText=`Conflicts with ${c.length} keybinds`:c.length>=1?s.innerText=`Conflicts with ${c.join(",")}`:s.innerText="No conflicts"),l.preventDefault()},window.addEventListener("keydown",this.listener,!0)}onClose(){window.removeEventListener("keydown",this.listener,!0),Wn.active=!1}}class rk extends Tt{app;observer;conflictMap=this.calculateConflicts();constructor(e){super({title:"Gameplay Keybind Options",width:600,height:400,disableClose:!1,win_id:"gameplay_keybind_options",blocking:!1}),this.app=e,this.initView()}initView(){this.viewElement.replaceChildren();const e=document.createElement("div");e.classList.add("padding");const t=document.createElement("div");t.classList.add("pref-container");const i=document.createElement("div");i.classList.add("pref-scrollers");const s=document.createElement("div");s.classList.add("pref-section-scroller");const n=document.createElement("div");n.classList.add("pref-option-scroller"),i.replaceChildren(s,n),this.observer=new IntersectionObserver(a=>{a.forEach(o=>{const l=o.target.dataset.id,c=s.querySelector(`.pref-section[data-id=${l}]`);c&&(o.intersectionRatio>0?c.classList.add("selected"):c.classList.remove("selected"))})},{}),t.replaceChildren(i),s.replaceChildren(...this.createSections()),n.replaceChildren(...this.createOptions()),e.appendChild(t),this.viewElement.appendChild(e)}createSections(){return Object.keys(We.getTypes()).map(e=>this.createEmptySection(e))}createOptions(){return Object.keys(We.getTypes()).map(e=>{const t=new Array(We.getTypes()[e].numCols).fill(null).map((n,a)=>this.createKeybindItem(e,a)),i=document.createElement("div");i.classList.add("pref-group"),i.dataset.id=e;const s=document.createElement("div");return s.classList.add("pref-group-label"),s.innerText=e,i.replaceChildren(s,...t),this.observer.observe(i),i})}createEmptySection(e){const t=document.createElement("div");return t.classList.add("pref-section"),t.dataset.id=e,t.innerText=e,t.onclick=()=>{t.parentElement.parentElement.querySelector(`.pref-group[data-id=${e}]`).scrollIntoView()},t}createKeybindItem(e,t){const i=document.createElement("div");i.classList.add("pref-keybind"),i.dataset.id=e+"-"+t,i.onclick=o=>{o.target.classList.contains("pref-keybind-combo")||i.querySelector(".icon")?.contains(o.target)||this.app.windowManager.openWindow(new Wn(this.app,!1,l=>{Re.setGameplayKeybind(e,t,l.key),this.conflictMap=this.calculateConflicts(),i.replaceWith(this.createKeybindItem(e,t))},l=>{const c=this.conflictMap.get(e)?.get(l.key)?.map(u=>Zr[u[0]]?.[u[1]].label??"Column "+u[1])??[];return c.includes(Zr[e]?.[t].label??"Column "+t)?"self":c}))};const s=document.createElement("div");s.classList.add("pref-keybind-label"),s.innerText=Zr[e]?.[t].label??"Column "+t;const n=Ce.getIcon("REVERT");n.style.width="12px",n.addEventListener("click",()=>{Re.revertGameplayKeybind(e,t),this.conflictMap=this.calculateConflicts(),i.replaceWith(this.createKeybindItem(e,t))}),n.style.display=Re.checkIsDefaultGameplay(e,t)?"none":"block";const a=document.createElement("div");return a.classList.add("pref-keybind-combos"),a.replaceChildren(...Re.getKeysForGameType(e)[t].map(o=>{const l=document.createElement("button");return l.classList.add("pref-keybind-combo"),l.innerText=o,this.conflictMap.get(e).get(o).length>1&&l.classList.add("conflict"),l.onclick=()=>{Re.removeGameplayKeybind(e,t,o),this.conflictMap=this.calculateConflicts(),i.replaceWith(this.createKeybindItem(e,t))},l})),i.replaceChildren(s,n,a),i}calculateConflicts(){const e=new Map;Object.keys(We.getTypes()).forEach(t=>{const i=new Map;Re.getKeysForGameType(t).forEach((s,n)=>{s.forEach((a,o)=>{i.has(a)||i.set(a,[]),i.get(a).push([t,n,o])})}),e.set(t,i)}),[...this.viewElement.querySelectorAll(".pref-keybind-combo.conflict")].forEach(t=>t.classList.remove("conflict"));for(const t of e.values())for(const i of t.values())i.length!=1&&i.forEach(s=>{const n=this.viewElement.querySelector(`.pref-keybind[data-id=${s[0]}-${s[1]}] .pref-keybind-combos`);n?.children[s[2]]&&n.children[s[2]].classList.add("conflict")});return e}onClose(){this.observer?.disconnect()}}class cy{static _model;static async getModel(){return this._model||await this._load(),this._model}static async _load(){this._model=[];const e=localStorage.getItem("recentFiles");if(e){try{const t=JSON.parse(e);if(!Array.isArray(t))return;for(const i of t)typeof i!="object"||Array.isArray(i)||typeof i?.name!="string"||typeof i?.path!="string"||this._model.find(s=>s.path==i.path)||this._model.push({name:i.name,path:i.path})}catch{console.log("Failed to load recent file entries");return}await this.saveEntries()}}static async getRecents(){return await this.getModel()}static async addSM(e,t){const i=await this.getModel(),s=i.findIndex(n=>n.path==e);s!=-1&&i.splice(s,1),i.unshift({name:t.properties.TITLE??"Untitled Song",path:e}),this.saveEntries()}static async limitEntries(){(await this.getModel()).splice(15)}static async saveEntries(){this.limitEntries();const e=await Promise.all(this._model.map(t=>Le.hasFile(t.path)));this._model=this._model.filter((t,i)=>e[i]),localStorage.setItem("recentFiles",JSON.stringify(this._model))}}const sk=["TITLE","SUBTITLE","ARTIST","TITLETRANSLIT","SUBTITLETRANSLIT","ARTISTTRANSLIT","GENRE","CREDIT","ORIGIN","BACKGROUND","BANNER","MUSIC","CDTITLE","JACKET","DISCIMAGE","CDIMAGE","PREVIEW","LYRICSPATH","SAMPLESTART","SAMPLELENGTH","SELECTABLE"];class uy{_cache={warpedBeats:new Map,beatsToSeconds:new Map};columns={};offset;buildBeatTimingDataCache(){const e=[];let t=this.getTimingData("BPMS","STOPS","WARPS","DELAYS");t=t.concat(this.getTimingData("WARPS").map(n=>({type:"WARP_DEST",beat:n.beat+n.value,value:n.value})));const i=["WARP_DEST","BPMS","STOPS","WARPS","DELAYS"];t.sort((n,a)=>n.beat==a.beat?i.indexOf(n.type)-i.indexOf(a.type):n.beat-a.beat);const s=this.getOffset();e.push({beat:0,secondBefore:-s,secondOf:-s,secondAfter:-s,secondClamp:-s,bpm:this.getTimingData("BPMS")[0]?.value??120,warped:!1});for(const n of t){if(e.at(-1)?.beat!=n.beat){e.at(-1).secondClamp=Math.max(Math.max(e.at(-2)?.secondClamp??-s,e.at(-2)?.secondAfter??-s),e.at(-1).secondBefore);let a=(n.beat-e.at(-1).beat)*60/e.at(-1).bpm;e.at(-1).warped&&(a=0),e.push({beat:n.beat,secondBefore:e.at(-1).secondAfter+a,secondOf:e.at(-1).secondAfter+a,secondAfter:e.at(-1).secondAfter+a,secondClamp:0,bpm:e.at(-1).bpm,warped:e.at(-1).warped})}n.type=="WARPS"&&(e.at(-1).warped=!0),n.type=="WARP_DEST"&&(e.at(-1).warped=!1),n.type=="BPMS"&&(e.at(-1).bpm=n.value),n.type=="STOPS"&&(e.at(-1).secondAfter+=n.value),n.type=="DELAYS"&&(e.at(-1).secondOf+=n.value,e.at(-1).secondAfter+=n.value)}e.at(-1).secondClamp=Math.max(e.at(-2)?.secondClamp??-s,e.at(-1).secondBefore),this._cache.beatTiming=e,this._cache.warpedBeats.clear(),this._cache.beatsToSeconds.clear()}buildEffectiveBeatTimingDataCache(){const e=[...this.getTimingData("SCROLLS")];let t=0;if(e.length==0){this._cache.effectiveBeatTiming=[];return}e[0].beat!=0&&e.unshift({type:"SCROLLS",beat:0,value:e[0].value??1}),t=e[0].beat;for(let i=0;is[t])}mergeColumns(e){if(e.length==0)return[];for(e=e.filter(t=>t.length>0);e.length>1;){const t=[];for(let i=0;i=e.length)return n.concat(t.slice(s))}else if(n.push(t[s]),s++,s>=t.length)return n.concat(e.slice(i))}splitEvents(e){const t=new Map;return e.forEach(i=>{t.has(i.type)||t.set(i.type,[]),t.get(i.type).push(i)}),t}splitEventPairs(e){const t=new Map;return e.forEach(i=>{t.has(i[0].type)||t.set(i[0].type,[]),t.get(i[0].type).push(i)}),t}parse(e,t){if(e=="OFFSET"){this.offset=parseFloat(t);return}e in this.columns||this.createColumn(e),this.parseEvents(e,t)}setOffset(e){const t=this.offset;Ye.instance.run({action:()=>{this.offset=e,this.reloadCache(["OFFSET"]),H.emit("timingModified"),H.emit("chartModified")},undo:()=>{this.offset=t,this.reloadCache(["OFFSET"]),H.emit("timingModified"),H.emit("chartModified")}})}serialize(e){this.reloadCache();let t="";this.offset&&(t+="#OFFSET:"+this.offset+`; @@ -1255,7 +1255,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE #FGCHANGES:; #KEYSOUNDS:; #ATTACKS:; -`;class ft{view;input;onChange;min=-Number.MAX_VALUE;max=Number.MAX_VALUE;precision;step=1;lastVal="";constructor(e,t,i,s,n,a){this.view=e,this.view.classList.add("spinner"),this.view.onfocus=()=>{o.focus()};const o=document.createElement("input");o.classList.add("spinner-input"),o.type="text",o.autocomplete="off",o.spellcheck=!1,o.onblur=()=>{if(o.value===this.lastVal)return;if(o.value===""){this.onChange?.(void 0);return}const h=Na(o.value);if(h===null){o.value=this.lastVal;return}let d=ae(h,this.precision??3);d=Oe(d,this.min,this.max),o.value=this.formatValue(d),this.onChange?.(d)},o.onkeydown=h=>{h.key=="Enter"&&o.blur(),h.key=="Escape"&&(o.value=this.lastVal,o.blur())},o.onfocus=()=>{this.lastVal=o.value},this.input=o,this.min=n??this.min,this.max=a??this.max,this.step=i,this.precision=s,this.setValue(t),e.appendChild(o);const l=document.createElement("div");l.classList.add("spinner-btns"),e.appendChild(l);const c=document.createElement("button");c.classList.add("spinner-up"),c.appendChild(Ce.getIcon("CHEVRON",10)),c.tabIndex=-1,c.onclick=h=>{let d=i??x.general.spinnerStep;h.getModifierState("Shift")&&(d/=10),!(a!==void 0&&parseFloat(o.value)+d>a)&&(o.value=this.formatValue(parseFloat(o.value)+d),this.onChange?.(parseFloat(o.value)))},l.appendChild(c);const u=document.createElement("button");u.classList.add("spinner-down"),u.appendChild(Ce.getIcon("CHEVRON",10)),u.tabIndex=-1,u.onclick=h=>{let d=i??x.general.spinnerStep;h.getModifierState("Shift")&&(d/=10),!(n!==void 0&&parseFloat(o.value)-dr.chartManager.loadAudio()}},{title:"Background Image",propName:"BACKGROUND",input:{type:"file",typeName:"image",accept:Ts}},{title:"Banner Image",propName:"BANNER",input:{type:"file",typeName:"image",accept:Ts}},{title:"CD Title",propName:"CDTITLE",input:{type:"file",typeName:"image",accept:Ts}},{title:"CD Image",propName:"CDIMAGE",input:{type:"file",typeName:"image",accept:Ts}},{title:"Jacket",propName:"JACKET",input:{type:"file",typeName:"image",accept:Ts}},{title:"Disc Image",propName:"DISCIMAGE",input:{type:"file",typeName:"image",accept:Ts}}]},{title:"Song",items:[{title:"Song Preview",propName:"SAMPLESTART",input:{type:"custom",create:(r,e,t)=>{const i=t??Ye.instance,s=()=>{a.value{(e??f.chartManager.loadedSM).properties.SAMPLESTART=h,(e??f.chartManager.loadedSM).properties.SAMPLELENGTH=d,n.setValue(parseFloat(h)),a.setValue(parseFloat(h)+parseFloat(d))},undo:()=>{(e??r.chartManager.loadedSM).properties.SAMPLESTART=c,(e??r.chartManager.loadedSM).properties.SAMPLELENGTH=u,n.setValue(parseFloat(c)),a.setValue(parseFloat(c)+parseFloat(u))}})},n=ft.create(parseFloat((e??r.chartManager.loadedSM).properties.SAMPLESTART??"0"),void 0,3,0);n.onChange=c=>{if(c===void 0){n.setValue(parseFloat((e??r.chartManager.loadedSM).properties.SAMPLESTART??"0"));return}s()};const a=ft.create(parseFloat((e??r.chartManager.loadedSM).properties.SAMPLESTART??"0")+parseFloat((e??r.chartManager.loadedSM).properties.SAMPLELENGTH??"10"),void 0,3,0);a.onChange=c=>{if(c===void 0){a.setValue(parseFloat((e??r.chartManager.loadedSM).properties.SAMPLESTART??"0")+parseFloat((e??r.chartManager.loadedSM).properties.SAMPLELENGTH??"10"));return}s()};const o=document.createElement("div"),l=document.createElement("div");return l.innerText="to",o.classList.add("flex-row","flex-column-gap"),o.replaceChildren(n.view,l,a.view),o}}}]}];function py(r,e,t,i){const s=i??Ye.instance;switch(e.input.type){case"custom":return e.input.create(r,t,i);case"string":{const n=document.createElement("input");return n.type="text",n.autocomplete="off",n.spellcheck=!1,n.onkeydown=a=>{a.key=="Enter"&&n.blur()},n.onblur=()=>{const a=(t??r.chartManager.loadedSM).properties[e.propName],o=n.value;s.run({action:l=>{(t??l.chartManager.loadedSM).properties[e.propName]=o,n.value=o},undo:()=>{(t??r.chartManager.loadedSM).properties[e.propName]=a,n.value=a??""}})},n.value=(t??r.chartManager.loadedSM).properties[e.propName]??"",n}case"number":{const n=e.input,a=ft.create(parseFloat((t??r.chartManager.loadedSM).properties[e.propName])??15,n.step,n.precision,n.min,n.max);return a.onChange=o=>{if(o===void 0){a.setValue(parseFloat((t??r.chartManager.loadedSM).properties[e.propName]??"0"));return}const l=(t??r.chartManager.loadedSM).properties[e.propName],c=o.toString();s.run({action:u=>{(t??u.chartManager.loadedSM).properties[e.propName]=c,a.setValue(parseFloat(c))},undo:()=>{(t??r.chartManager.loadedSM).properties[e.propName]=l,a.setValue(parseFloat(l??"0"))}})},a.view}case"file":{const n=e.input,a=e.input.onChange,o=document.createElement("div");o.classList.add("flex-row","flex-column-gap");const l=document.createElement("input");l.type="text",l.autocomplete="off",l.spellcheck=!1,l.placeholder="click to select a file",l.onclick=h=>{h.preventDefault(),l.blur();const d=Ht(r.chartManager.smPath);if(window.nw){const f=document.createElement("input");f.type="file",f.accept=n.accept.join(","),f.onchange=()=>{const p=Le.getRelativePath(d,f.value),m=(t??r.chartManager.loadedSM).properties[e.propName]??"";s.run({action:g=>{(t??g.chartManager.loadedSM).properties[e.propName]=p,l.value=p},undo:()=>{(t??r.chartManager.loadedSM).properties[e.propName]=m,l.value=m}}),a?.(r)},f.click()}else r.windowManager.openWindow(new Ud(r,{title:`Select a${n.typeName.match(/^[aieouAIEOU].*/)?"n":""} ${n.typeName} file...`,accepted_file_types:n.accept,disableClose:!0,callback:f=>{const p=Le.getRelativePath(d,f),m=(t??r.chartManager.loadedSM).properties[e.propName]??"";s.run({action:g=>{(t??g.chartManager.loadedSM).properties[e.propName]=p,l.value=p},undo:()=>{(t??r.chartManager.loadedSM).properties[e.propName]=m,l.value=m}}),a?.(r)}},(t??r.chartManager.loadedSM).properties[e.propName]?d+"/"+(t??r.chartManager.loadedSM).properties[e.propName]:r.chartManager.smPath))},l.value=(t??r.chartManager.loadedSM).properties[e.propName]??"",o.appendChild(l);const c=document.createElement("button");c.style.height="100%",c.classList.add("delete"),c.disabled=!(t??r.chartManager.loadedSM).properties[e.propName],c.onclick=()=>{l.value="",c.disabled=!0};const u=Ce.getIcon("TRASH",12);return c.appendChild(u),o.appendChild(c),o}}}class my extends Tt{app;sm;actionHistory;fileTable={};constructor(e){super({title:"New Song",width:450,height:492,disableClose:!0,win_id:"sm_properties",blocking:!0});const t=new Blob([ok],{type:"text/plain"}),i=new File([t],"song.sm",{type:"text/plain"});this.sm=new dy(i),this.app=e,this.actionHistory=new Ye(this.app),this.initView()}initView(){this.viewElement.replaceChildren(),this.viewElement.classList.add("sm-properties");const e=document.createElement("div");e.classList.add("padding");const t=document.createElement("div");t.classList.add("label"),t.innerText="Apply to",fy.forEach(l=>{const c=document.createElement("div");c.classList.add("sm-container");const u=document.createElement("div");u.classList.add("sm-title"),u.innerText=l.title;const h=document.createElement("div");h.classList.add("property-grid"),l.items.forEach(d=>{const f=document.createElement("div");f.classList.add("label"),f.innerText=d.title,h.appendChild(f),d.input.type=="file"?h.appendChild(this.createFileElement(d.propName,d.input.typeName)):h.appendChild(py(this.app,d,this.sm,this.actionHistory))}),c.appendChild(u),c.appendChild(h),e.appendChild(c)});const i=document.createElement("div");i.classList.add("menu-options");const s=document.createElement("div");s.classList.add("menu-left");const n=document.createElement("div");n.classList.add("menu-right"),i.appendChild(s),i.appendChild(n);const a=document.createElement("button");a.innerText="Cancel",a.onclick=()=>{this.closeWindow()};const o=document.createElement("button");o.innerText="Create",o.classList.add("confirm"),o.onclick=()=>{this.sm.properties.MUSIC===void 0||this.sm.properties.MUSIC===""?this.app.windowManager.openWindow(new Wa(this.app,"No audio file uploaded","Are you sure you want to create a file with no audio?",[{type:"confirm",label:"Yes",callback:()=>{this.createSong(),this.closeWindow()}},{type:"default",label:"No"}])):(this.createSong(),this.closeWindow())},s.appendChild(a),n.appendChild(o),e.appendChild(i),this.viewElement.appendChild(e)}async createSong(){let e=this.sm.properties.TITLE;if(window.nw){const t=nw.require("path"),i=document.createElement("input");i.type="file",i.nwsaveas=e+".sm",i.onchange=async()=>{const s=t.basename(i.value,t.extname(i.value));e=t.dirname(i.value);const n=t.join(e,s+".sm");await Le.writeFile(n,this.sm.serialize("sm")),await Promise.all(Object.entries(this.fileTable).map(a=>Le.writeFile(e+`/${a[0]}`,a[1]))),await this.app.chartManager.loadSM(n),this.app.windowManager?.getWindowById("select_sm_initial")?.closeWindow()},i.click()}else{if(await Le.getDirectoryHandle(e)){let t=2;for(;await Le.getDirectoryHandle(e);)e=`${this.sm.properties.TITLE} ${t++}`}await Le.writeFile(e+"/song.sm",this.sm.serialize("sm")),await Promise.all(Object.entries(this.fileTable).map(t=>Le.writeFile(e+`/${t[0]}`,t[1]))),await this.app.chartManager.loadSM(e+"/song.sm"),this.app.windowManager?.getWindowById("select_sm_initial")?.closeWindow()}}createFileElement(e,t){const i=document.createElement("div");i.classList.add("flex-row","flex-column-gap");const s=document.createElement("input");s.type="text",s.autocomplete="off",s.spellcheck=!1,s.placeholder="click to upload a file",s.readOnly=!0,s.onclick=o=>{o.preventDefault(),s.blur();const l=document.createElement("input");l.type="file",l.accept=t=="audio"?"audio/*":"image/*",l.onchange=()=>{const c=l.files?.[0];if(!c)return;this.sm.properties[e]&&this.fileTable[this.sm.properties[e]]&&delete this.fileTable[this.sm.properties[e]];let u=c.name;for(;this.fileTable[c.name]&&(this.fileTable[c.name].size!=c.size||this.fileTable[c.name].type!=c.type);)u="_"+u;this.fileTable[u]=c,s.value=u,this.sm.properties[e]=s.value,n.disabled=!1},l.click()},s.value=this.sm.properties[e]??"",i.appendChild(s);const n=document.createElement("button");n.style.height="100%",n.classList.add("delete"),n.disabled=!0,n.onclick=()=>{this.sm.properties[e]&&this.fileTable[this.sm.properties[e]]&&delete this.fileTable[this.sm.properties[e]],this.sm.properties[e]=void 0,s.value="",n.disabled=!0};const a=Ce.getIcon("TRASH",12);return n.appendChild(a),i.appendChild(n),i}}class gy extends Tt{app;keyHandler;constructor(e,t=!0){super({title:"Open a Song",width:400,height:320,disableClose:t,win_id:"select_sm_initial"}),this.app=e,this.keyHandler=this.handleKeyEvent.bind(this),window.addEventListener("keydown",this.keyHandler),this.initView(),H.on("resize",()=>{this.move(window.innerWidth/2-this.options.width/2,window.innerHeight/2-this.options.height/2)})}onClose(){window.removeEventListener("keydown",this.keyHandler)}initView(){this.viewElement.replaceChildren();const e=document.createElement("div");e.classList.add("padding");const t=document.createElement("div");t.classList.add("open-container"),e.appendChild(t);const i=document.createElement("div");i.classList.add("top-container");const s=document.createElement("div");s.classList.add("separator"),s.style.margin="10px";const n=document.createElement("div");n.classList.add("bottom-container"),t.appendChild(i),t.appendChild(s),t.appendChild(n);const a=document.createElement("button");a.style.display="flex",a.style.flexDirection="column",a.style.padding="10px",a.style.backgroundColor="#414352",a.style.color="white",i.appendChild(a);const o=Ce.getIcon("UPLOAD",30);a.appendChild(o);const l=document.createElement("div");l.innerText=window.nw?"Open an existing song":"Import a song folder",a.appendChild(l),a.onclick=()=>{if(window.nw){const p=document.createElement("input");p.type="file",p.accept=".sm,.ssc",p.onchange=()=>{this.app.chartManager.loadSM(p.value),this.closeWindow()},p.click()}else this.app.windowManager.openWindow(new Ud(this.app,{title:"Select an sm/ssc file...",accepted_file_types:[".sm",".ssc"],disableClose:!0,callback:p=>{this.app.chartManager.loadSM(p),this.closeWindow()}}))};const c=document.createElement("button");c.style.display="flex",c.style.flexDirection="column",c.style.padding="10px",c.style.backgroundColor="#506352",c.style.color="white",i.appendChild(c);const u=Ce.getIcon("PLUS",30);c.appendChild(u);const h=document.createElement("div");h.innerText="New Song",c.appendChild(h),c.onclick=()=>{this.app.windowManager.openWindow(new my(this.app))};const d=document.createElement("div");d.innerText="Recently Opened",d.classList.add("title"),n.appendChild(d);const f=document.createElement("div");f.classList.add("recent-selector"),n.appendChild(f),cy.getRecents().then(p=>p.forEach(m=>{const g=document.createElement("div");g.classList.add("recent-item");const b=document.createElement("div");b.classList.add("recent-name"),b.innerText=m.name;const w=document.createElement("div");w.classList.add("recent-path"),w.innerText=m.path,g.appendChild(b),g.appendChild(w),g.onclick=()=>{f.querySelectorAll(".selected").forEach(v=>v.classList.remove("selected")),g.classList.add("selected")},g.ondblclick=()=>{this.app.chartManager.loadSM(m.path),this.closeWindow()},f.appendChild(g)})),this.viewElement.appendChild(e)}handleKeyEvent(e){if(!this.windowElement.classList.contains("focused"))return;const t=this.viewElement.querySelector(".selected");if(t){if(e.code=="ArrowUp"){e.preventDefault(),e.stopImmediatePropagation();const i=t.previousElementSibling;i&&(t.parentElement.querySelectorAll(".selected").forEach(s=>s.classList.remove("selected")),i.classList.add("selected"),ka(i,{scrollMode:"if-needed",block:"nearest",inline:"nearest"}))}if(e.code=="ArrowDown"){e.preventDefault(),e.stopImmediatePropagation();const i=t.nextElementSibling;i&&(t.parentElement.querySelectorAll(".selected").forEach(s=>s.classList.remove("selected")),i.classList.add("selected"),ka(i,{scrollMode:"if-needed",block:"nearest",inline:"nearest"}))}}}}function $D(){const r=new URLSearchParams(location.search),e=r.get("flags");if(e!=null){const n=new Set(e.split("").map(a=>hk[a]).filter(a=>a));for(const a of n.values())De[a]=!De[a]}const t=r.get("url");if(t!=null)try{De.url=new URL(t).toString()}catch{Ee.createFormatted("Invalid url "+t,"warn"),De.url=null}const i=r.get("chartIndex");if(i!=null)try{De.chartIndex=parseInt(i)}catch{Ee.createFormatted("Invalid chartIndex "+i,"warn"),De.chartIndex=null}const s=r.get("chartType");s!==null&&(We.getGameType(s)?De.chartType=s:(Ee.createFormatted("Invalid chartType "+s,"warn"),De.chartType=null))}const lk={viewMode:{char:"V",name:"Force view mode (disables record mode)"},menuBar:{char:"M",name:"Hide menu bar"},playbackOptions:{char:"o",name:"Hide playback options"},barlines:{char:"B",name:"Hide barlines, waveform, and timing boxes"},assist:{char:"A",name:"Disable assist sounds"},recordMode:{char:"R",name:"Disable record mode"},playMode:{char:"P",name:"Disable play mode"},layout:{char:"L",name:"Hide note layout"},status:{char:"S",name:"Hide status bar"},autoPlay:{char:"a",name:"Play automatically"},openWindows:{char:"O",name:"Disable opening windows"},hidePoweredByText:{char:"H",name:'Hide "Powered by SMEditor" text'}},hk=Object.fromEntries(Object.entries(lk).map(([r,e])=>[e.char,r])),De={viewMode:!1,menuBar:!0,playbackOptions:!0,barlines:!0,assist:!0,recordMode:!0,playMode:!0,layout:!0,status:!0,autoPlay:!1,hidePoweredByText:!1,openWindows:!0,url:null,chartIndex:null,chartType:null},ba={file:{type:"menu",title:"File",options:[{type:"selection",id:"newSong"},{type:"selection",id:"openSong"},{type:"separator"},{type:"selection",id:"save"},{type:"selection",id:"export"}]},edit:{type:"menu",title:"Edit",options:[{type:"selection",id:"cut"},{type:"selection",id:"copy"},{type:"selection",id:"paste"},{type:"selection",id:"pasteReplace"},{type:"separator"},{type:"selection",id:"undo"},{type:"selection",id:"redo"},{type:"separator"},{type:"checkbox",id:"mousePlacement",checked:()=>x.chart.mousePlacement}]},view:{type:"menu",title:"View",options:[{type:"dropdown",title:"Cursor",options:[{type:"selection",id:"cursorUp"},{type:"selection",id:"cursorDown"},{type:"separator"},{type:"selection",id:"previousNote"},{type:"selection",id:"nextNote"},{type:"separator"},{type:"selection",id:"previousMeasure"},{type:"selection",id:"nextMeasure"},{type:"separator"},{type:"selection",id:"jumpChartStart"},{type:"selection",id:"jumpChartEnd"},{type:"separator"},{type:"selection",id:"jumpSongStart"},{type:"selection",id:"jumpSongEnd"}]},{type:"dropdown",title:"Snap",options:[{type:"selection",id:"decreaseSnap"},{type:"selection",id:"increaseSnap"}]},{type:"dropdown",title:"Scroll",options:[{type:"checkbox",id:"XMod",checked:()=>!x.chart.CMod},{type:"checkbox",id:"CMod",checked:()=>x.chart.CMod},{type:"separator"},{type:"selection",id:"increaseScrollSpeed"},{type:"selection",id:"decreaseScrollSpeed"}]},{type:"dropdown",title:"Zoom",options:[{type:"selection",id:"zoomIn"},{type:"selection",id:"zoomOut"},{type:"separator"},{type:"selection",id:"zoomDefault"}]},{type:"separator"},{type:"selection",id:"playMode"},{type:"selection",id:"playModeStart"},{type:"separator"},{type:"selection",id:"recordMode"},{type:"selection",id:"recordModeStart"},{type:"separator"},{type:"checkbox",id:"reverse",checked:()=>x.chart.reverse},{type:"checkbox",id:"hideWarpedArrows",checked:()=>x.chart.hideWarpedArrows},{type:"checkbox",id:"hideFakedArrows",checked:()=>x.chart.hideFakedArrows},{type:"checkbox",id:"doSpeedChanges",checked:()=>x.chart.doSpeedChanges}]},chart:{type:"menu",title:"Chart",options:[{type:"selection",id:"openChart"},{type:"separator"},{type:"selection",id:"previousChart"},{type:"selection",id:"nextChart"},{type:"separator"},{type:"selection",id:"songProperties"},{type:"separator"},{type:"selection",id:"timingDataRow"}]},selection:{type:"menu",title:"Selection",options:[{type:"dropdown",title:"Convert",options:[{type:"selection",id:"convertHoldsRolls"},{type:"selection",id:"convertRollsHolds"},{type:"selection",id:"swapHoldsRolls"},{type:"separator"},{type:"selection",id:"convertHoldsTaps"},{type:"selection",id:"convertTapsMines"},{type:"selection",id:"convertTapsLifts"},{type:"selection",id:"convertTapsFakes"}]},{type:"dropdown",title:"Mirror",options:[{type:"selection",id:"mirrorHorizontally"},{type:"selection",id:"mirrorVertically"},{type:"selection",id:"mirrorBoth"}]},{type:"dropdown",title:"Stretch",options:[{type:"selection",id:"expand2to1"},{type:"selection",id:"expand3to2"},{type:"selection",id:"expand4to3"},{type:"separator"},{type:"selection",id:"compress1to2"},{type:"selection",id:"compress2to3"},{type:"selection",id:"compress3to4"}]},{type:"dropdown",title:"Shift",options:[{type:"dropdown",title:"Up",options:[{type:"selection",id:"shiftUp4m"},{type:"selection",id:"shiftUp2m"},{type:"selection",id:"shiftUp1m"},{type:"selection",id:"shiftUp4th"},{type:"selection",id:"shiftUp8th"},{type:"selection",id:"shiftUp12th"},{type:"selection",id:"shiftUp16th"},{type:"selection",id:"shiftUp24th"},{type:"selection",id:"shiftUp32nd"},{type:"selection",id:"shiftUp48th"},{type:"selection",id:"shiftUp64th"},{type:"selection",id:"shiftUp96th"},{type:"selection",id:"shiftUp192nd"}]},{type:"dropdown",title:"Down",options:[{type:"selection",id:"shiftDown4m"},{type:"selection",id:"shiftDown2m"},{type:"selection",id:"shiftDown1m"},{type:"selection",id:"shiftDown4th"},{type:"selection",id:"shiftDown8th"},{type:"selection",id:"shiftDown12th"},{type:"selection",id:"shiftDown16th"},{type:"selection",id:"shiftDown24th"},{type:"selection",id:"shiftDown32nd"},{type:"selection",id:"shiftDown48th"},{type:"selection",id:"shiftDown64th"},{type:"selection",id:"shiftDown96th"},{type:"selection",id:"shiftDown192nd"}]}]},{type:"dropdown",title:"Quantize",options:[{type:"selection",id:"quantize4th"},{type:"selection",id:"quantize8th"},{type:"selection",id:"quantize12th"},{type:"selection",id:"quantize16th"},{type:"selection",id:"quantize24th"},{type:"selection",id:"quantize32nd"},{type:"selection",id:"quantize48th"},{type:"selection",id:"quantize64th"},{type:"selection",id:"quantize96th"}]},{type:"separator"},{type:"selection",id:"setSongPreview"},{type:"separator"},{type:"selection",id:"exportNotedata"},{type:"separator"},{type:"selection",id:"selectBeforeCursor"},{type:"selection",id:"selectAfterCursor"},{type:"selection",id:"selectAll"}]},audio:{type:"menu",title:"Audio",options:[{type:"selection",id:"detectSync"},{type:"separator"},{type:"checkbox",id:"assistTick",checked:()=>x.audio.assistTick&&De.assist},{type:"checkbox",id:"metronome",checked:()=>x.audio.metronome&&De.assist},{type:"separator"},{type:"dropdown",title:()=>"Master Volume ("+Math.round(x.audio.masterVolume*100)+"%)",options:[{type:"selection",id:"volumeUp"},{type:"selection",id:"volumeDown"}]},{type:"dropdown",title:()=>"Song Volume ("+Math.round(x.audio.songVolume*100)+"%)",options:[{type:"selection",id:"songVolumeUp"},{type:"selection",id:"songVolumeDown"}]},{type:"dropdown",title:()=>"Effect Volume ("+Math.round(x.audio.soundEffectVolume*100)+"%)",options:[{type:"selection",id:"effectvolumeUp"},{type:"selection",id:"effectvolumeDown"}]},{type:"dropdown",title:()=>"Playback rate ("+Math.round(x.audio.rate*100)+"%)",options:[{type:"selection",id:"rateUp"},{type:"selection",id:"rateDown"},{type:"separator"},{type:"selection",id:"rateDefault"}]},{type:"separator"},{type:"selection",id:"showEq"}]},preferences:{type:"menu",title:"Preferences",options:[{type:"selection",id:"options"},{type:"selection",id:"themes"},{type:"selection",id:"keybinds"},{type:"selection",id:"gameplayKeybinds"},{type:"selection",id:"noteskinWindow"}]},help:{type:"menu",title:"Help",options:[{type:"selection",id:"openGuide"},{type:"selection",id:"openChangelog"}]}},Hm=["cut","copy","paste","pasteReplace"],Gm={edit:[{ids:["delete"],after:"redo"},{ids:["toggleEditTiming","toggleAddTiming","previousNoteType","nextNoteType","noteTypeTap","noteTypeMine","noteTypeFake","noteTypeLift","quant4","quant8","quant12","quant16","quant24","quant32","quant48","quant64","quant96","quant192"],after:"mousePlacement"}],view:[{ids:["playback","selectRegion"]}],debug:[{ids:["showFPSCounter","showDebugTimers"]}]};class qi extends Tt{static GROUPS;app;observer;searchDropdown;conflictMap=this.calculateConflicts();constructor(e){super({title:"Keybind Options",width:600,height:400,disableClose:!1,win_id:"keybind_options",blocking:!1}),this.app=e,qi.GROUPS||(qi.GROUPS=qi.createGroups()),this.initView()}initView(){this.viewElement.replaceChildren();const e=document.createElement("div");e.classList.add("padding");const t=document.createElement("div");t.classList.add("pref-container");const i=document.createElement("div");i.classList.add("pref-search");const s=document.createElement("input");s.classList.add("pref-search-bar"),s.type="text",s.placeholder="Search for a keybind...",s.oninput=()=>{o.replaceChildren(...this.createSections(s.value)),l.replaceChildren(...this.createOptions(s.value))};const n=Oi.create(["Name","Key"],"Name");n.onChange(()=>{o.replaceChildren(...this.createSections(s.value)),l.replaceChildren(...this.createOptions(s.value))}),this.searchDropdown=n,i.replaceChildren(s,n.view);const a=document.createElement("div");a.classList.add("pref-scrollers");const o=document.createElement("div");o.classList.add("pref-section-scroller");const l=document.createElement("div");l.classList.add("pref-option-scroller"),a.replaceChildren(o,l),this.observer=new IntersectionObserver(c=>{c.forEach(u=>{const h=u.target.dataset.id,d=o.querySelector(`.pref-section[data-id=${h}]`);d&&(u.intersectionRatio>0?d.classList.add("selected"):d.classList.remove("selected"))})},{}),t.replaceChildren(i,a),o.replaceChildren(...this.createSections()),l.replaceChildren(...this.createOptions()),e.appendChild(t),this.viewElement.appendChild(e)}createSections(e=""){return Object.keys(qi.GROUPS).filter(t=>qi.GROUPS[t].some(i=>this.filterID(e,i))).map(t=>this.createEmptySection(ba[t]?.title??Nu(t),t))}createOptions(e=""){return Object.keys(qi.GROUPS).filter(t=>qi.GROUPS[t].some(i=>this.filterID(e,i))).map(t=>{const i=qi.GROUPS[t].filter(a=>this.filterID(e,a)).map(a=>this.createKeybindItem(a)),s=document.createElement("div");s.classList.add("pref-group"),s.dataset.id=t;const n=document.createElement("div");return n.classList.add("pref-group-label"),n.innerText=ba[t]?.title??Nu(t),s.replaceChildren(n,...i),this.observer.observe(s),s})}static createGroups(){const e=Object.keys(ct),t={};return Object.keys(ba).forEach(i=>{t[i]=this.expandMenubarOptions(ba[i]).map(s=>{const n=e.indexOf(s);return n!=-1&&e.splice(n,1),s}).filter(s=>!Hm.includes(s))}),Object.keys(Gm).forEach(i=>{t[i]===void 0&&(t[i]=[]),Gm[i].forEach(s=>{let n=0;if(s.after){const a=t[i].findIndex(o=>s.after==o)+1;a!=0&&(n=a)}t[i].splice(n,0,...s.ids),s.ids.forEach(a=>{const o=e.indexOf(a);o!=-1&&e.splice(o,1)})})}),Hm.forEach(i=>{const s=e.indexOf(i);s!=-1&&e.splice(s,1)}),e.length>0&&(console.warn("Missing keybinds not shown:"),console.warn(e)),t}filterID(e,t){if((this.searchDropdown?.value??"Name")=="Name")return(ct[t].bindLabel??ct[t].label).toLowerCase().includes(e.toLowerCase());{const i=Re.getCombosForKeybind(t);if(i.some(n=>n.key.toLowerCase().includes(e.toLowerCase()))||i.some(n=>(vy[n.key]??n.key).toLowerCase().includes(e.toLowerCase())))return!0;let s=e.split(" ").map(n=>n.toLowerCase());return i.some(n=>(s.includes("shift")||s.includes("⇧"))&&!n.mods.includes(ya.SHIFT)||(s.includes("ctrl")||s.includes("control")||s.includes("⌃"))&&!n.mods.includes(ya.CTRL)||(s.includes("meta")||s.includes("cmd")||s.includes("command")||s.includes("⌘"))&&!n.mods.includes(ya.META)||(s.includes("alt")||s.includes("⌥"))&&!n.mods.includes(ya.ALT)?!1:(s=s.filter(a=>!["shift","ctrl","control","meta","cmd","command","alt","⇧","⌃","⌘","⌥",""].includes(a)),s.length==0||s.length==1&&n.key.toLowerCase().includes(s[0])))}}static expandMenubarOptions(e){switch(e.type){case"menu":case"dropdown":return e.options.map(t=>this.expandMenubarOptions(t)).flat();case"selection":case"checkbox":return[e.id];case"separator":return[]}}createEmptySection(e,t){const i=document.createElement("div");return i.classList.add("pref-section"),i.dataset.id=t,i.innerText=e,i.onclick=()=>{i.parentElement.parentElement.querySelector(`.pref-group[data-id=${t}]`).scrollIntoView()},i}createKeybindItem(e){const t=document.createElement("div");t.classList.add("pref-keybind"),t.dataset.id=e,t.onclick=a=>{a.target.classList.contains("pref-keybind-combo")||t.querySelector(".icon")?.contains(a.target)||this.app.windowManager.openWindow(new Wn(this.app,!0,o=>{Re.setKeybind(e,o),this.conflictMap=this.calculateConflicts(),t.replaceWith(this.createKeybindItem(e))},o=>{const l=this.conflictMap.get(Re.getComboString(o))?.map(c=>c[0]).map(c=>ct[c].bindLabel??ct[c].label)??[];return l.includes(e)?"self":l}))};const i=document.createElement("div");i.classList.add("pref-keybind-label"),i.innerText=ct[e].bindLabel??ct[e].label;const s=Ce.getIcon("REVERT");s.style.width="12px",s.addEventListener("click",()=>{Re.revertKeybind(e),this.conflictMap=this.calculateConflicts(),t.replaceWith(this.createKeybindItem(e))}),s.style.display=Re.checkIsDefault(e)?"none":"block";const n=document.createElement("div");return n.classList.add("pref-keybind-combos"),n.replaceChildren(...Re.getCombosForKeybind(e).map(a=>{const o=document.createElement("button");return o.classList.add("pref-keybind-combo"),o.innerText=Re.getComboString(a),this.conflictMap.get(Re.getComboString(a)).length>1&&o.classList.add("conflict"),o.onclick=()=>{Re.removeKeybind(e,a),this.conflictMap=this.calculateConflicts(),t.replaceWith(this.createKeybindItem(e))},o})),t.replaceChildren(i,s,n),t}calculateConflicts(){const e=new Map;Object.keys(ct).forEach(t=>{Re.getCombosForKeybind(t).forEach((i,s)=>{const n=Re.getComboString(i);e.has(n)||e.set(n,[]),e.get(n).push([t,s])})}),[...this.viewElement.querySelectorAll(".pref-keybind-combo.conflict")].forEach(t=>t.classList.remove("conflict"));for(const t of e.values())t.length!=1&&t.forEach(i=>{const s=this.viewElement.querySelector(`.pref-keybind[data-id=${i[0]}] .pref-keybind-combos`);s?.children[i[1]]&&s.children[i[1]].classList.add("conflict")});return e}onClose(){this.observer?.disconnect()}}class ut{static noteskins=new Map;static register(e){for(const t of new Set(e.gameTypes))ut.noteskins.has(t)||ut.noteskins.set(t,new Map),ut.noteskins.get(t).set(e.id,e)}static async getNoteskin(e,t){const i=this.noteskins.get(e.id);if(!i||i.size==0)return;const s=i.get(t)??[...i.values()][0];return i.get(t)||Ee.createFormatted(`Couldn't find the noteskin ${t}!`,"warn"),await s.load()}static getNoteskinData(e,t){const i=this.noteskins.get(e.id);return!i||i.size==0?void 0:i.get(t)??[...i.values()][0]}static getNoteskins(){return this.noteskins}static getPreviewUrl(e,t){return this.getNoteskinData(e,t).preview}}ut.register({id:"default",gameTypes:["dance-single","dance-double","dance-couple","dance-solo","dance-solodouble","dance-threepanel","dance-threedouble"],load:async()=>(await Qe(()=>import("./Noteskin-b4edfbfa.js"),["Noteskin-b4edfbfa.js","HoldBody-36fc6457.js"])).default,preview:new URL("/smeditor/assets/preview-17ffcc02.png",self.location).href,title:"Scalable",subtitle:"Pete-Lawrence"});ut.register({id:"cf-chrome",gameTypes:["dance-single","dance-double","dance-couple","dance-solo","dance-solodouble","dance-threepanel","dance-threedouble"],load:async()=>(await Qe(()=>import("./Noteskin-6f35f83c.js"),["Noteskin-6f35f83c.js","HoldBody-36fc6457.js"])).default,preview:new URL("/smeditor/assets/preview-40b76b28.png",self.location).href,title:"CF_CHROME",subtitle:"Pete-Lawrence"});ut.register({id:"ddr-note",gameTypes:["dance-single","dance-double","dance-couple","dance-solo","dance-solodouble","dance-threepanel","dance-threedouble"],load:async()=>(await Qe(()=>import("./Noteskin-168ea4f3.js"),["Noteskin-168ea4f3.js","AnimatedSprite-888875f6.js","HoldBody-36fc6457.js"])).default,preview:new URL("/smeditor/assets/preview-b8f75a15.png",self.location).href,title:"DDR-Note",subtitle:"Pete-Lawrence"});ut.register({id:"ddr-note-itg",gameTypes:["dance-single","dance-double","dance-couple","dance-solo","dance-solodouble","dance-threepanel","dance-threedouble"],load:async()=>(await Qe(()=>import("./Noteskin-4810f636.js"),["Noteskin-4810f636.js","AnimatedSprite-888875f6.js","HoldBody-36fc6457.js"])).default,preview:new URL("/smeditor/assets/preview-f113aacc.png",self.location).href,title:"DDR-Note (ITG quants)",subtitle:"Pete-Lawrence"});ut.register({id:"ddr-rainbow",gameTypes:["dance-single","dance-double","dance-couple"],load:async()=>(await Qe(()=>import("./Noteskin-d59ba98d.js"),["Noteskin-d59ba98d.js","AnimatedSprite-888875f6.js","HoldBody-36fc6457.js"])).default,preview:new URL("/smeditor/assets/preview-0f9b00cd.png",self.location).href,title:"DDR-Rainbow",subtitle:"LemmaEOF"});ut.register({id:"ddr-rainbow-itg",gameTypes:["dance-single","dance-double","dance-couple"],load:async()=>(await Qe(()=>import("./Noteskin-0dfbdb39.js"),["Noteskin-0dfbdb39.js","AnimatedSprite-888875f6.js","HoldBody-36fc6457.js"])).default,preview:new URL("/smeditor/assets/preview-2fd7d50c.png",self.location).href,title:"DDR-Rainbow (ITG quants)",subtitle:"LemmaEOF"});ut.register({id:"metal",gameTypes:["dance-single","dance-double","dance-couple","dance-solo","dance-solodouble","dance-threepanel","dance-threedouble"],load:async()=>(await Qe(()=>import("./Noteskin-f760aef8.js"),["Noteskin-f760aef8.js","HoldBody-36fc6457.js"])).default,preview:new URL("/smeditor/assets/preview-26b1bdce.png",self.location).href,title:"Metal",subtitle:"Pete-Lawrence"});ut.register({id:"pastel",gameTypes:["dance-single","dance-double","dance-couple","dance-solo","dance-solodouble","dance-threepanel","dance-threedouble"],load:async()=>(await Qe(()=>import("./Noteskin-39cb880c.js"),["Noteskin-39cb880c.js","AnimatedSprite-888875f6.js","HoldBody-36fc6457.js"])).default,preview:new URL("/smeditor/assets/preview-d67630f1.png",self.location).href,title:"Pastel",subtitle:"halcyoniix"});ut.register({id:"dividebyzero",gameTypes:["dance-single","dance-double","dance-couple","dance-solo","dance-solodouble","dance-threepanel","dance-threedouble"],load:async()=>(await Qe(()=>import("./Noteskin-cdd3cf8b.js"),["Noteskin-cdd3cf8b.js","AnimatedSprite-888875f6.js","HoldBody-36fc6457.js"])).default,preview:new URL("/smeditor/assets/preview-d763e667.png",self.location).href,title:"DivideByZero",subtitle:"MinaciousGrace"});ut.register({id:"subtractbyzero",gameTypes:["dance-single","dance-double","dance-couple","dance-solo","dance-solodouble","dance-threepanel","dance-threedouble"],load:async()=>(await Qe(()=>import("./Noteskin-38ed4224.js"),["Noteskin-38ed4224.js","AnimatedSprite-888875f6.js","HoldBody-36fc6457.js"])).default,preview:new URL("/smeditor/assets/preview-72ea0444.png",self.location).href,title:"SubtractByZero",subtitle:"qwertyzoro/Vague"});ut.register({id:"sm4",gameTypes:["dance-single","dance-double","dance-couple","dance-solo","dance-solodouble","dance-threepanel","dance-threedouble"],load:async()=>(await Qe(()=>import("./Noteskin-d61aa979.js"),["Noteskin-d61aa979.js","AnimatedSprite-888875f6.js","HoldBody-36fc6457.js"])).default,preview:new URL("/smeditor/assets/preview-3514cbb3.png",self.location).href,title:"SM4",subtitle:"from SM4"});ut.register({id:"sm4-bold",gameTypes:["dance-single","dance-double","dance-couple","dance-solo","dance-solodouble","dance-threepanel","dance-threedouble"],load:async()=>(await Qe(()=>import("./Noteskin-8545d825.js"),["Noteskin-8545d825.js","AnimatedSprite-888875f6.js","HoldBody-36fc6457.js"])).default,preview:new URL("/smeditor/assets/preview-9fe2bd96.png",self.location).href,title:"SM4 Bold",subtitle:"from SM4"});ut.register({id:"starlight-vivid",gameTypes:["dance-single","dance-double","dance-couple"],load:async()=>(await Qe(()=>import("./Noteskin-9def79a7.js"),["Noteskin-9def79a7.js","AnimatedSprite-888875f6.js","HoldBody-36fc6457.js"])).default,preview:new URL("/smeditor/assets/preview-5ecfc22a.png",self.location).href,title:"SLNEXXT-vivid",subtitle:"from STARLiGHT-NEXXT"});ut.register({id:"default",gameTypes:["pump-single","pump-double","pump-couple","pump-versus","pump-halfdouble"],load:async()=>(await Qe(()=>import("./Noteskin-db33d8af.js"),["Noteskin-db33d8af.js","AnimatedSprite-888875f6.js","HoldBody-36fc6457.js"])).default,preview:new URL("/smeditor/assets/preview-d6d59d37.png",self.location).href,title:"Fiesta"});ut.register({id:"fourv2",gameTypes:["pump-single","pump-double","pump-couple","pump-versus","pump-halfdouble"],load:async()=>(await Qe(()=>import("./Noteskin-7178dd69.js"),["Noteskin-7178dd69.js","AnimatedSprite-888875f6.js","HoldBody-36fc6457.js"])).default,preview:new URL("/smeditor/assets/preview-5d9781d2.png",self.location).href,title:"FourV2",subtitle:"Jousway"});ut.register({id:"prime",gameTypes:["pump-single","pump-double","pump-couple","pump-versus","pump-halfdouble"],load:async()=>(await Qe(()=>import("./Noteskin-2e2cbbde.js"),["Noteskin-2e2cbbde.js","AnimatedSprite-888875f6.js","HoldBody-36fc6457.js"])).default,preview:new URL("/smeditor/assets/preview-4f79831b.png",self.location).href,title:"Prime"});const ck="/smeditor/assets/preview-747db171.png";class uk extends Tt{app;grid;lastGameType=null;constructor(e){super({title:"Noteskin Selection",width:600,height:400,disableClose:!1,win_id:"noteskin-selection",blocking:!1}),this.app=e,this.initView(),this.loadGrid(),H.on("chartLoaded",()=>{const t=e.chartManager.loadedChart.gameType.id;this.lastGameType!=t&&this.loadGrid()})}initView(){this.viewElement.replaceChildren();const e=document.createElement("div");e.classList.add("padding");const t=document.createElement("input");t.classList.add("pref-search-bar"),t.type="text",t.placeholder="Search for a noteskin...",t.oninput=()=>{this.filterGrid(t.value)};const i=document.createElement("div");i.classList.add("noteskin-grid"),this.grid=i,e.replaceChildren(t,i),this.viewElement.appendChild(e)}loadGrid(){if(this.grid.replaceChildren(),!this.app.chartManager.loadedChart)return;const e=this.app.chartManager.loadedChart.gameType;this.lastGameType=e.id;const t=ut.getNoteskins().get(e.id);if(t)for(const[i,s]of t.entries()){const n=document.createElement("div"),a=document.createElement("img"),o=document.createElement("div"),l=document.createElement("div"),c=document.createElement("div");n.classList.add("noteskin-cell"),o.classList.add("noteskin-label"),l.classList.add("noteskin-title"),c.classList.add("noteskin-subtitle"),l.innerText=s.title??i,c.innerText=s.subtitle??"",a.src=ut.getPreviewUrl(e,i),a.onerror=()=>{a.src=ck},n.replaceChildren(a,o),o.replaceChildren(l,c),this.grid.appendChild(n),i==x.chart.noteskin.name&&(n.classList.add("selected"),setTimeout(()=>{n.scrollIntoView({behavior:x.general.smoothAnimations?"smooth":"instant",block:"center"})})),n.dataset.id=i,n.dataset.title=s.title??"",n.dataset.subtitle=s.subtitle??"",n.onclick=()=>{x.chart.noteskin.name!=i&&(this.app.chartManager.chartView?.swapNoteskin(i),this.removeAllSelections(),n.classList.add("selected"))}}}removeAllSelections(){[...this.grid.querySelectorAll(".selected")].forEach(e=>e.classList.remove("selected"))}filterGrid(e){[...this.grid.children].forEach(t=>{if(!(t instanceof HTMLDivElement))return;const i=t,s=this.containsQuery(e,i.dataset.id)||this.containsQuery(e,i.dataset.title)||this.containsQuery(e,i.dataset.subtitle);i.style.display=s?"":"none"})}containsQuery(e,t){return t?t.toLowerCase().includes(e.trim().toLowerCase()):!1}}class dk extends Tt{app;metronomeInterval;startTime;me_high=new Fl.Howl({src:mb,volume:x.audio.soundEffectVolume});me_low=new Fl.Howl({src:gb,volume:x.audio.soundEffectVolume});tickLines=[];resultLines=[];previousOffsets=[];keyHandler;constructor(e){super({title:"Offset Adjuster",width:300,height:200,win_id:"offset",blocking:!0}),this.app=e,this.initView(),this.startTime=performance.now();let t=this.startTime+500;this.tickLines.push({time:t+500,beat:0}),this.tickLines.push({time:t+500*2,beat:1}),this.tickLines.push({time:t+500*3,beat:2}),this.tickLines.push({time:t+500*4,beat:3});let i=0;this.metronomeInterval=setInterval(()=>{const s=performance.now();if(s-t>500){for(t=s,(i%4==0?this.me_high:this.me_low).play();this.tickLines[0]?.time+1e3s-n.startTime<8e3)},5),this.keyHandler=s=>{if(s.code.startsWith("Digit")||s.code.startsWith("Key")||s.code=="Space"){let n=this.tickLines[0];const a=performance.now();for(const l of this.tickLines)if(a-l.time+x.play.offset*1e3<300){n=l;break}s.preventDefault();const o=a-n.time+x.play.offset*1e3;o>-300&&(this.tickLines.splice(this.tickLines.indexOf(n),1),this.resultLines.push({startTime:performance.now(),offset:o}),this.previousOffsets.push(o),this.previousOffsets.length==16&&(Yb(this.previousOffsets)<70&&(x.play.offset-=fh(this.previousOffsets)/1e3),this.previousOffsets=[]))}},window.addEventListener("keydown",this.keyHandler)}initView(){this.viewElement.replaceChildren();const e=document.createElement("canvas");this.viewElement.appendChild(e);const t=this.drawEQ(e);requestAnimationFrame(t)}drawEQ(e){const t=e.getContext("2d");t.canvas.width=250,t.canvas.height=100;const i=()=>{t.fillStyle="rgba(0, 0, 0, 1)",t.fillRect(0,0,e.width,e.height),t.fillStyle="rgb(255, 255, 255)",t.fillRect(e.width/2-1,8,2,e.height-16);const s=performance.now();for(const n of this.resultLines){t.fillStyle="rgba(255, 255, 255, 1)";const a=Math.min(1,4-(s-n.startTime)/2e3);if(n.offset<0&&(t.fillStyle=`rgba(160, ${$t(160,0,-n.offset/250)}, ${$t(160,0,-n.offset/250)}, ${a})`),n.offset>0&&(t.fillStyle=`rgba(${$t(160,0,n.offset/250)}, ${$t(160,0,n.offset/250)}, 160, ${a})`),t.fillRect(e.width/2-.5+n.offset/4,12,1,e.height-24),s-n.startTime<250){const o=(s-n.startTime)/250;t.globalAlpha=1-o,t.fillRect(e.width/2-.5-o*3+n.offset/4,12-o*10,1+o*6,e.height-24+o*20)}t.globalAlpha=1}for(const n of this.tickLines){const a=n.time-s-x.play.offset*1e3;t.fillStyle="rgba(255, 255, 255, 0.8)",n.beat%4!=0?t.fillRect(e.width/2-1-a/4,12,2,e.height-24):t.fillRect(e.width/2-2-a/4,12,4,e.height-24)}e.closest("#windows")&&requestAnimationFrame(i)};return i}onClose(){clearInterval(this.metronomeInterval),window.removeEventListener("keydown",this.keyHandler)}}class fk extends Tt{app;changeHandler=()=>this.initView();constructor(e){super({title:"Song Properties",width:450,height:486,disableClose:!1,win_id:"sm_properties",blocking:!1}),this.app=e,this.initView(),H.on("smLoaded",this.changeHandler),H.on("undo",this.changeHandler),H.on("redo",this.changeHandler)}onClose(){H.off("smLoaded",this.changeHandler),H.off("undo",this.changeHandler),H.off("redo",this.changeHandler)}initView(){this.viewElement.replaceChildren(),this.viewElement.classList.add("sm-properties");const e=document.createElement("div");e.classList.add("padding");const t=document.createElement("div");t.classList.add("label"),t.innerText="Apply to",fy.forEach(i=>{const s=document.createElement("div");s.classList.add("sm-container");const n=document.createElement("div");n.classList.add("sm-title"),n.innerText=i.title;const a=document.createElement("div");a.classList.add("property-grid"),i.items.forEach(o=>{const l=document.createElement("div");l.classList.add("label"),l.innerText=o.title,a.appendChild(l),a.appendChild(py(this.app,o))}),s.appendChild(n),s.appendChild(a),e.appendChild(s)}),this.viewElement.appendChild(e)}}var pk=yk,zl=8192,zd=65536,Wd=new ArrayBuffer(zd*4),mk=new Float64Array(Wd,zd,zl),gk=new Float64Array(Wd,zd*2,zl/2),bk=vk({Math,Float64Array},null,Wd);function yk(r){if(!r)throw Error("Input data is not provided, pass an array.");var e=r.length;if(e>zl)throw Error("Input length is too big, must be under "+zl);var t=Math.floor(Math.log(e)/Math.LN2);if(Math.pow(2,t)!==e)throw Error("Invalid array size, must be a power of 2.");return mk.set(r),bk(e,t),gk.subarray(0,e/2)}function vk(r,e,t){var i=6.283185307179586,s=r.Math.sqrt,n=r.Math.sin,a=r.Math.cos,o=r.Math.abs,l=r.Math.SQRT1_2,c=r.Math.imul,u=new r.Float64Array(t),h=new r.Float64Array(t),d=8192,f=16384;function p(g,b){g=g|0,b=b|0;var w=0,v=0,y=0,E=0,C=0,k=0,B=0,M=0,U=0,V=0,T=0,S=0,_=0,R=0,q=0,F=0,L=0,W=0,z=0,O=0,N=0,ie=0,Q=0,Z=0,be=0,Se=0,ce=0,pe=0,xe=0,le=0,fe=0,we=0;for(w=g>>>1,y=2/+(g|0),m(g),le=0,we=4;(le|0)<(g|0);we=c(we,4)){for(fe=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3]*Z+h[q<<3>>3]*Q,O=U-T,U=U+T,T=O,h[z<<3>>3]=U+h[L<<3>>3],h[R<<3>>3]=U-h[L<<3>>3],O=V-M,M=M+V,V=O,h[q<<3>>3]=V+h[_<<3>>3],h[W<<3>>3]=V-h[_<<3>>3],h[L<<3>>3]=h[S<<3>>3]-M,h[S<<3>>3]=h[S<<3>>3]+M,h[_<<3>>3]=T+h[F<<3>>3],h[F<<3>>3]=h[F<<3>>3]-T;le=(we<<1)-E|0,we=we<<2}while((le|0)<(g|0))}}for(;w=w-1|0;)ce=+h[w<<3>>3],pe=+h[g-w-1<<3>>3],xe=y*s(ce*ce+pe*pe),u[f+w<<3>>3]=xe;u[f+0<<3>>3]=o(y*h[0])}function m(g){g=g|0;var b=0,w=0,v=1,y=0,E=0;b=g>>>1,w=g-1|0,h[0]=u[d+0<<3>>3];do{for(y=y+b|0,h[v<<3>>3]=u[d+y<<3>>3],h[y<<3>>3]=u[d+v<<3>>3],v=v+1|0,E=b<<1;E=E>>1,((y=y^E)&E)==0;);(y|0)>=(v|0)&&(h[v<<3>>3]=u[d+y<<3>>3],h[y<<3>>3]=u[d+v<<3>>3],h[w-v<<3>>3]=u[d+w-y<<3>>3],h[w-y<<3>>3]=u[d+w-v<<3>>3]),v=v+1|0}while((v|0)<(b|0));h[w<<3>>3]=u[d+w<<3>>3]}return p}const Vm=Xa(pk);class Ps{view;slider;text;options;constructor(e,t){this.view=e,this.options=t,this.view.classList.add("slider");const i=document.createElement("input");i.classList.add("slider-input"),i.type="range",i.min=t.min.toString(),i.max=t.max.toString(),i.step=t.step.toString(),i.value=(t.value??(t.min+t.max)/2).toString(),i.oninput=()=>{s.innerText=this.formatValue(parseFloat(i.value))+"",this.options.onChange?.(parseFloat(i.value))},t.width!==void 0&&(i.style.width=t.width+"px"),this.slider=i,e.appendChild(i);const s=document.createElement("div");s.innerText=this.formatValue(parseFloat(i.value))+"",s.style.width="30px",this.text=s,e.appendChild(s)}get value(){return parseFloat(this.slider.value)}setValue(e){this.slider.value=e+"",this.text.innerText=this.formatValue(parseFloat(this.slider.value))+""}static create(e){return new Ps(document.createElement("div"),e)}formatValue(e){return this.options.transformer?this.options.transformer(e):this.options.precision===void 0?ae(e,3).toString():ae(e,this.options.precision).toFixed(this.options.precision)}}const ni=800,nt=200,Cc=3,aa=125,oa=250,Zo=3,wk=.02,sn=6,Sc=800,zm=15,ai=32768,Mc=[{frequency:20,weight:.4006009013520281},{frequency:25,weight:.4258037044922291},{frequency:31.5,weight:.4536690484291709},{frequency:40,weight:.4840856831659204},{frequency:50,weight:.5142710208279764},{frequency:63,weight:.5473453749315819},{frequency:80,weight:.5841121495327103},{frequency:100,weight:.6214074879602299},{frequency:125,weight:.6601749463607856},{frequency:160,weight:.7054673721340388},{frequency:200,weight:.7489234225800412},{frequency:250,weight:.7936507936507937},{frequency:315,weight:.8406893652795292},{frequency:400,weight:.889284126278346},{frequency:500,weight:.9291521486643438},{frequency:630,weight:.9675858732462506},{frequency:800,weight:.9985022466300548},{frequency:1e3,weight:.9997500624843789},{frequency:1250,weight:.9564801530368244},{frequency:1600,weight:.9409550693954364},{frequency:2e3,weight:1.0196278358399185},{frequency:2500,weight:1.0955902492467817},{frequency:3150,weight:1.1232799775344005},{frequency:4e3,weight:1.0914051841746248},{frequency:5e3,weight:.9997500624843789},{frequency:6300,weight:.8727907484180668},{frequency:8e3,weight:.7722007722007722},{frequency:1e4,weight:.7369196757553427},{frequency:12500,weight:.7768498737618955},{frequency:16e3,weight:.7698229407236336},{frequency:2e4,weight:.4311738708634257},{frequency:22550,weight:.2},{frequency:25e3,weight:0}];class by extends Tt{app;onAudioLoad=this.reset.bind(this);windowStep=512;fftSize=1024;tempoFftSize=4096;tempoStep=2;monoAudioData;audioLength=0;sampleRate=44100;tempogram=[];tempogramGroups=[];spectrogram=[];spectrogramDifference=[];noveltyCurve=[];noveltyCurveIsolated=[];spectrogramCanvases=[];lowestFinishedBlock=0;numRenderedBlocks=0;peaks=[];_threshold=.3;spectroHeights=[];spectroWeights=[];placeNotesSelectionButton;toggleButton;resetButton;onsetResults;offsetTableLabel;offsetRows=[];bpmRows=[];covers=[];doAnalysis=!1;lastSecond=0;constructor(e){super({title:"Detect Audio Sync",width:400,height:450,win_id:"detect-sync"}),this.app=e,this.initView(),this.reset(),H.on("audioLoaded",this.onAudioLoad)}onClose(){H.off("audioLoaded",this.onAudioLoad),this.app.chartManager.chartAudio.offLoad(this.onAudioLoad)}initView(){this.viewElement.replaceChildren();const e=document.createElement("div");e.classList.add("sync-container"),e.style.display="flex",e.style.flexDirection="column",e.style.alignItems="center";const t=document.createElement("canvas");t.style.width=`${ni/2}px`,t.style.height=`${nt}px`;const i=document.createElement("div");i.classList.add("sync-tab-container");const s=document.createElement("div");s.classList.add("sync-tab-option","active"),s.innerText="Analysis Options";const n=document.createElement("div");n.classList.add("sync-tab-option"),n.innerText="Tempo Results";const a=document.createElement("div");a.classList.add("sync-tab-option"),a.innerText="Onset Results",i.replaceChildren(s,n,a),[...i.children].forEach((m,g)=>{m.onclick=()=>{l.scrollLeft=370*g,i.querySelectorAll(".active").forEach(b=>b.classList.remove("active")),m.classList.add("active")}});const o=document.createElement("div");o.classList.add("sync-tab-view");const l=document.createElement("div");l.classList.add("sync-tab-scroller");const c=this.createOptionsView(),u=this.createTempoView(),h=this.createOnsetsView(),d=(m,g)=>{const b=document.createElement("div");return b.classList.add("sync-cover"),b.innerText=m,b.style.left=`${g*370}px`,b};this.covers=[d("Clear analysis results to edit",0),d("Start analysis to view",1),d("Start analysis to view",2)],o.appendChild(l),l.replaceChildren(c,this.covers[0],u,this.covers[1],h,this.covers[2]);const f=document.createElement("div");f.classList.add("sync-bottom-container"),this.resetButton=document.createElement("button"),this.resetButton.classList.add("delete"),this.resetButton.innerText="Clear results",this.resetButton.style.width="120px",this.resetButton.disabled=!0,this.resetButton.onclick=()=>{this.resetButton.disabled=!0,s.click(),this.reset()},this.toggleButton=document.createElement("button"),this.toggleButton.innerText="Start analyzing",this.toggleButton.style.width="200px",this.toggleButton.onclick=()=>{this.doAnalysis||n.click(),this.doAnalysis=!this.doAnalysis,this.toggleButton.innerText=this.doAnalysis?"Stop analyzing":this.hasData()?"Resume analyzing":"Start analyzing",this.resetButton.disabled=this.doAnalysis},f.replaceChildren(this.toggleButton,this.resetButton),e.replaceChildren(t,i,o,f),this.viewElement.appendChild(e);const p=this.windowLoop(t);requestAnimationFrame(p)}createOptionsView(){const e=document.createElement("div");e.style.display="flex",e.style.position="relative",e.style.flexDirection="column",e.style.gap="3px",e.style.height="100%";const t=(c,u,h)=>{const d=document.createElement("div");d.style.display="flex",d.style.flexDirection="row",d.style.justifyContent="space-between",d.style.alignItems="center";const f=document.createElement("div");return f.innerText=c,d.replaceChildren(f,u),Ze(d,{content:h}),d},i=document.createElement("div");i.innerText="Onsets",i.style.fontWeight="600";const s=Ps.create({min:Math.log2(128),max:Math.log2(8192),step:1,value:Math.log2(this.fftSize),transformer:c=>2**c,onChange:c=>{this.fftSize=2**c,this.windowStep>this.fftSize&&(this.windowStep=this.fftSize,n.setValue(c)),this.reset()}}),n=Ps.create({min:Math.log2(128),max:Math.log2(8192),step:1,value:Math.log2(this.windowStep),transformer:c=>2**c,onChange:c=>{this.windowStep=2**c,this.windowStep>this.fftSize&&(this.windowStep=this.fftSize,n.setValue(Math.log2(this.fftSize))),this.reset()}}),a=document.createElement("div");a.innerText="Tempo",a.style.fontWeight="600",a.style.marginTop="15px";const o=Ps.create({min:Math.log2(128),max:Math.log2(8192),step:1,value:Math.log2(this.tempoFftSize),transformer:c=>2**c,onChange:c=>{this.tempoStep=2**c,this.tempoStep>this.tempoFftSize&&(this.tempoStep=this.tempoFftSize,l.setValue(c)),this.reset()}}),l=Ps.create({min:Math.log2(1),max:Math.log2(1024),step:1,value:Math.log2(this.tempoStep),transformer:c=>2**c,onChange:c=>{this.tempoStep=2**c,this.tempoStep>this.tempoFftSize&&(this.tempoStep=this.tempoFftSize,l.setValue(Math.log2(this.tempoFftSize))),this.reset()}});return e.replaceChildren(i,t("FFT Size",s.view,"Determines the amount of audio to analyze at every block. Higher values result in more accurate frequencies, while lower values result in more accurate timings. Defaults to 1024."),t("Window Step",n.view,"Determines the number of blocks per second. Lower values result in more time-accurate spectrograms, but may take more time and mess up tempo analysis. Defaults to 512 and must be lower than FFT Size."),a,t("FFT Size",o.view,"Determines the amount of the onset graph to analyze at every block. Higher values result in more accurate tempos, while lower values result in more accurate timings. Defaults to 4096."),t("Window Step",l.view,"Determines the number of blocks per second. Lower values result in more time-accurate tempograms, but may take more time. Defaults to 2 and must be lower than FFT Size.")),e}createTempoView(){const e=document.createElement("div");e.style.display="flex",e.style.position="relative",e.style.gap="10px";const t=document.createElement("div");t.style.flex="1";const i=document.createElement("div");i.classList.add("sync-table-label"),i.innerText="Offsets",this.offsetTableLabel=i;const s=document.createElement("table");s.classList.add("sync-table");const n=document.createElement("tr"),a=document.createElement("th");a.innerText="Offset";const o=document.createElement("th");o.innerText="Confidence",n.replaceChildren(a,o),s.appendChild(n),t.replaceChildren(i,s);const l=document.createElement("div");l.style.flex="1";const c=document.createElement("div");c.classList.add("sync-table-label"),c.innerText="Current Tempos";const u=document.createElement("table");u.classList.add("sync-table");const h=document.createElement("tr"),d=document.createElement("th");d.innerText="BPM";const f=document.createElement("th");f.innerText="Confidence",h.replaceChildren(d,f),u.appendChild(h);for(let p=0;p<5;p++){const m=document.createElement("tr"),g=document.createElement("td");g.innerText="-";const b=document.createElement("td");b.innerText="-",m.replaceChildren(g,b),s.appendChild(m),this.offsetRows.push(m);const w=m.cloneNode(!0);u.appendChild(w),this.bpmRows.push(w)}return l.replaceChildren(c,u),e.replaceChildren(t,l),e}createOnsetsView(){const e=document.createElement("div");e.style.display="flex",e.style.flexDirection="column",e.style.gap="10px",e.style.justifyContent="center",e.style.alignItems="center",e.style.position="relative";const t=document.createElement("div");t.style.display="flex",t.style.justifyContent="space-between",t.style.alignItems="center",t.style.width="100%",Ze(t,{content:"Adjust the threshold for a block to be considered an onset (red line)."});const i=document.createElement("div");i.innerText="Onset Threshold";const s=Ps.create({min:0,max:1,step:.01,value:.3,onChange:c=>{this.threshold=c}}),n=document.createElement("div");n.style.color="#888888",n.style.fontStyle="italic",n.style.fontSize="11px",n.style.marginBottom="15px",n.style.marginTop="-6px",n.innerText="Found 0 onsets",this.onsetResults=n,t.replaceChildren(i,s.view);const a=document.createElement("div");a.style.display="flex",a.style.justifyContent="space-between",a.style.alignItems="center",a.style.width="100%";const o=document.createElement("button");o.innerText="Place onsets as notes",o.onclick=()=>this.placeOnsets();const l=document.createElement("button");return l.innerText="Place onsets as notes in selection",l.disabled=!0,l.onclick=()=>this.placeOnsets(!0),this.placeNotesSelectionButton=l,a.replaceChildren(o,l),e.replaceChildren(t,n,a),e}async reset(){this._threshold=.3,this.doAnalysis=!1,this.toggleButton.disabled=!1,this.toggleButton.style.background="",this.toggleButton.innerText="Start analyzing",this.app.chartManager.chartAudio.onLoad(this.onAudioLoad),await this.getMonoAudioData(),this.sampleRate=this.app.chartManager.chartAudio.getSampleRate(),this.spectroHeights=new Array(this.fftSize).fill(0).map((t,i)=>{const s=i/(this.fftSize/2)*this.sampleRate/2,n=(i+1)/(this.fftSize/2)*this.sampleRate/2,a=nt-Oe(Math.log(s/20)/Math.log(this.sampleRate/40)*nt,0,nt),o=nt-Oe(Math.log(n/20)/Math.log(this.sampleRate/40)*nt,0,nt);return{y:o,height:a-o}}),this.spectroWeights=new Array(this.fftSize).fill(0).map((t,i)=>{const s=i/(this.fftSize/2)*this.sampleRate/2,n=Mc.findIndex(l=>l.frequency>s);if(n<1)return 0;const a=Mc[n-1],o=Mc[n];return $t(a.weight,o.weight,Vt(Math.log(1+a.frequency),Math.log(1+o.frequency),Math.log(1+s)))});const e=Math.max(1,Math.ceil(this.audioLength/this.windowStep));this.spectrogramCanvases=[];for(let t=0;t{t.firstChild.innerText="-",t.lastChild.innerText="-"}),this.bpmRows.forEach(t=>{t.firstChild.innerText="-",t.lastChild.innerText="-"})}hasData(){return this.numRenderedBlocks>0}windowLoop(e){const t=e.getContext("2d");t.canvas.width=ni,t.canvas.height=nt*2,t.imageSmoothingEnabled=!1;const i=()=>{if(this.placeNotesSelectionButton.disabled=this.app.chartManager.startRegion===void 0||this.app.chartManager.endRegion===void 0||this.app.chartManager.startRegion==this.app.chartManager.endRegion,this.covers[0].classList.toggle("active",this.hasData()),this.covers[1].classList.toggle("active",!this.hasData()),this.covers[2].classList.toggle("active",!this.hasData()),!this.app.chartManager.chartAudio)return;const s=Math.ceil(this.audioLength/this.windowStep);if(this.monoAudioData!==void 0&&this.doAnalysis){const d=performance.now();for(;performance.now()-d=s){this.tempogram.length==0&&(this.toggleButton.disabled=!0,this.calcTempogram());break}this.spectrogram[this.lowestFinishedBlock]===void 0&&(this.renderBlock(this.lowestFinishedBlock),this.calcDifference(this.lowestFinishedBlock),this.calcIsolatedNovelty(this.lowestFinishedBlock),this.numRenderedBlocks++),this.lowestFinishedBlock++}this.lowestFinishedBlock.5?l=new P("white"):l=new P("black"),t.fillStyle=Xi($e.getColor("accent-color"),l,.1).toHexa(),t.fillRect(0,0,e.width,e.height),t.globalCompositeOperation="destination-over",t.fillStyle=Xi($e.getColor("accent-color"),l,.9).toHexa(),t.fillRect(0,0,e.width,e.height),t.globalCompositeOperation="source-over";const c=a*this.windowStep/this.sampleRate,u=o*this.windowStep/this.sampleRate;if(this.app.chartManager.loadedChart){const d=this.app.chartManager.loadedChart.getBeatFromSeconds(c),f=this.app.chartManager.loadedChart.getBeatFromSeconds(Math.min(u,this.app.chartManager.chartAudio.getSongLength()));t.fillStyle="rgba(255, 255, 255, 0.2)";for(const[p,m]of this.app.chartManager.loadedChart.timingData.getMeasureBeats(d,f)){const g=this.app.chartManager.loadedChart.getSecondsFromBeat(p);t.fillRect(Vt(c,u,g)*ni-(m?2:1),0,m?5:3,nt*1.5)}}t.fillStyle="rgba(255, 0, 0, 0.3)";for(let d=Math.floor(a);d<=Math.ceil(o);d++)this.peaks[d]&&t.fillRect(Vt(a,o,d)*ni-.5,0,2,nt*1.5);t.fillStyle="rgba(50, 255, 20, 0.3)",t.fillRect(ni*.2-1,0,3,nt*2),t.fillStyle="rgba(255, 0, 255, 0.5)",t.fillRect(0,nt*1.5-this._threshold*nt*.5,ni,1);const h=Math.round(this.app.chartManager.time*this.sampleRate/this.windowStep/this.tempoStep);if(t.fillStyle=$e.getColor("accent-color").toHex(),t.textAlign="right",t.textBaseline="top",t.font="22px Assistant",t.fillText(`${this.numRenderedBlocks}/${s} blocks rendered`,ni-10,10),t.textAlign="right",t.textBaseline="middle",this.tempogramGroups[h]){const d=[];for(const f of this.tempogramGroups[h]){let p=0,m=0,g=0;for(let b=h-Zo;b<=h+Zo;b++){if(this.tempogramGroups[b]===void 0)continue;const w=this.tempogramGroups[b].find(v=>v.centerf.center-sn);w!==void 0&&(p+=w.groups[0].value,m+=w.avg,g++)}p/=g,m/=g,d.push({bpm:m,weight:f.groups[0].value,smoothedWeight:p})}d.sort((f,p)=>p.smoothedWeight-f.smoothedWeight);for(const f of d)f.weight<.01||(t.font=`${18+f.weight*300}px Assistant`,t.globalAlpha=Math.min(1,f.weight*100),t.fillText(ae(f.bpm,0)+"",200,$t(nt*2,nt*1.5,Vt(aa,oa,f.bpm))));if(this.lastSecond!=this.app.chartManager.time){this.lastSecond=this.app.chartManager.time;const f=d.slice(0,5).reduce((p,m)=>p+m.smoothedWeight,0);for(let p=0;p<5;p++){const m=this.bpmRows[p],g=d[p]?.bpm,b=d[p]?.weight;m.firstChild.innerText=g===void 0?"-":Math.round(g).toString(),m.lastChild.innerText=b===void 0?"-":Math.round(b/f*100)+"%"}}}t.globalAlpha=1,t.font="22px Assistant",t.textAlign="left",t.textBaseline="top",t.fillText("Spectrogram",10,10),t.fillText("Onsets",10,nt+10),t.fillText("Tempogram",10,nt*1.5+10),e.closest("#windows")&&requestAnimationFrame(i)};return i}renderBlock(e){if(!this.monoAudioData)return;const t=new Float32Array(this.fftSize);t.set(this.monoAudioData.subarray(Math.max(0,e*this.windowStep-this.fftSize/2),e*this.windowStep+this.fftSize/2),-Math.min(0,e*this.windowStep-this.fftSize/2));for(let s=0;s{const a=this.spectroHeights[n],o=Oe(s*2e3,0,255);i.globalAlpha=o/255,i.fillRect(e%ai,a.y,1,a.height)}),i.globalAlpha=1}storeDifferenceResponse(e,t){this.spectrogramDifference[e]=t;const i=t.reduce((s,n)=>s+n,0);this.noveltyCurve[e]=i}calcIsolatedNovelty(e){for(let t=e-Cc;t<=e;t++){if(t<0)continue;let i=0,s=0;for(let n=t-Cc;n<=t+Cc;n++)this.noveltyCurve[n]!==void 0&&(i+=this.noveltyCurve[n],s++);i/=s,this.storeIsolatedNovelty(t,Math.max(0,this.noveltyCurve[t]-i))}}storeIsolatedNovelty(e,t){this.noveltyCurveIsolated[e]=Math.log(1+t),Math.log(1+t)>this._threshold&&Math.log(1+t)>(this.noveltyCurveIsolated[e-1]??0)?(this.peaks[e-1]&&(this.peaks[e-1]=!1),this.peaks[e]=!0,this.onsetResults.innerText=`Found ${this.peaks.filter(n=>n).length} onsets`):this.peaks[e]=!1;const i=this.spectrogramCanvases[Math.floor(e/ai)].getContext("2d"),s=Math.min(1,Math.log(1+t))*nt*.5;i.fillStyle="white",i.fillRect(e%ai,nt*1.5-s,1,s)}async getMonoAudioData(){const e=this.app.chartManager.chartAudio;if(!e)return;const t=e.getBuffer(),i=new OfflineAudioContext(t.numberOfChannels,t.length,t.sampleRate),s=i.createBufferSource();s.buffer=t;const n=i.createChannelMerger(t.numberOfChannels);s.connect(n),n.connect(i.destination),s.start(),await i.startRendering().then(a=>{this.monoAudioData=a.getChannelData(0),this.audioLength=this.monoAudioData.length}).catch(()=>{Ee.createFormatted("Failed to load audio: audio rendering failed","error")})}get threshold(){return this._threshold}set threshold(e){this._threshold=e,this.peaks=this.noveltyCurveIsolated.map((t,i)=>t>this._threshold&&(this.noveltyCurveIsolated[i-1]??0)t).length} onsets`}calculateOffset(){const e=new Map;let t=0,i=0,s=0;for(let c=0;cd.groups[0].value>=wk);if(h.length!=0&&(i=c,h.forEach(d=>{let f=0,p=0;for(let g=c-Zo;g<=c+Zo;g++){if(this.tempogramGroups[g]===void 0)continue;const b=this.tempogramGroups[g].find(w=>w.centerd.center-sn);b!==void 0&&(p+=b.avg,f++)}const m=Math.round(p/f);e.has(m)||e.set(m,0),e.set(m,e.get(m)+1),e.get(m)>t&&(t=e.get(m),s=m)}),t>50))break}if(s==0)return;const n=60/s*(this.sampleRate/this.windowStep),a=new Array(Sc).fill(0).map((c,u)=>{const h=u%n/n;let d=0,f=0;for(let p=1;p<=4;p++)f+=Math.max(1-Math.abs(Math.round(h*p)/p-h)*12,0)*1/p,d+=1/p;return f/d}),o=[];for(let c=i;ca[d]*h).reduce((h,d)=>h+d,0);o.push({block:c,offset:-(c*this.windowStep/this.sampleRate)%(60/s),response:u,curve:this.noveltyCurveIsolated.slice(c,c+Sc).map((h,d)=>a[d]*h)})}o.sort((c,u)=>u.response-c.response);const l=o.slice(0,5).reduce((c,u)=>c+u.response,0);this.offsetTableLabel.innerText=`Offsets (first BPM: ${s})`;for(let c=0;c{if(!i)return null;let n=this.app.chartManager.loadedChart.getBeatFromSeconds(s*this.windowStep/this.sampleRate);return n=Math.round(n*48)/48,n<0?null:{type:"Tap",beat:n,col:0}}).filter(i=>i!==null).filter(i=>e?i.beat>this.app.chartManager.startRegion&&i.beate&&(e=this.noveltyCurveIsolated[a]);const t=new Float32Array(this.noveltyCurveIsolated.length);for(let a=0;a{const o=new Float32Array(this.tempoFftSize);o.set(t.subarray(Math.max(0,a*this.tempoStep-this.tempoFftSize/2),a*this.tempoStep+this.tempoFftSize/2),-Math.min(0,a*this.tempoStep-this.tempoFftSize/2));for(let c=0;cn(++a),1)):(this.calculateOffset(),this.spectrogram=[],this.noveltyCurve=[],this.tempogram=[],this.monoAudioData=void 0,this.toggleButton.innerText="Finished analyzing",this.resetButton.disabled=!1,this.doAnalysis=!1,this.toggleButton.style.background="var(--accent-color)")};n(0)}storeTempogram(e,t){const i=new Map,s=[];t.forEach((a,o)=>{let l=this.sampleRate*60/(this.windowStep*this.tempoFftSize)*o;if(!(l>oa*4||loa&&l!=1/0;)l/=2;for(;l({bpm:a,value:o})).sort((a,o)=>o.value-a.value).filter(a=>a.value!=0);for(let a=0;ac.centero.bpm-sn);if(l===void 0){s.push({center:o.bpm,groups:[o]});continue}l.groups.push(o)}this.tempogramGroups[e]=s.map(a=>({...a,avg:a.groups.reduce((o,l)=>o+l.bpm*l.value,0)/a.groups.reduce((o,l)=>o+l.value,0)}));const n=this.spectrogramCanvases[Math.floor(e*this.tempoStep/ai)].getContext("2d");n.fillStyle="white",this.tempogram[e].forEach(a=>{const o=Oe(a.value*8e3,0,255);n.globalAlpha=o/255,n.fillRect(e*this.tempoStep%ai,$t(nt*2,nt*1.5,Vt(aa,oa,a.bpm)),1*this.tempoStep,nt*.5/(oa-aa))})}}class yy extends HTMLDivElement{colorElement;set color(e){this.colorElement.style.background=e.toHexa()}}function kc(){const r=document.createElement("div");r.classList.add("color-picker-transparent"),Object.setPrototypeOf(r,yy.prototype);const e=document.createElement("div");return e.style.width="100%",e.style.height="100%",r.colorElement=e,r.appendChild(e),r}class vn extends HTMLDivElement{inputs;opts;getValue;onupdate;static create(e){const t=document.createElement("div");Object.setPrototypeOf(t,vn.prototype),t.opts=e.inputs,t.inputs={},t.getValue=e.getValue.bind(t),t.onupdate=e.onupdate,t.classList.add("color-format");const i=document.createElement("div");i.classList.add("color-format-label"),i.innerText=e.label;const s=document.createElement("div");return s.classList.add("color-format-inputs"),Object.entries(e.inputs).forEach(([n,a])=>{const o=document.createElement("input");o.type="text";let l="";o.onfocus=()=>{l=o.value},o.onkeydown=c=>{c.key=="Enter"&&(o.blur(),c.preventDefault()),c.key=="Escape"&&(o.value=l,o.blur(),c.stopImmediatePropagation())},o.oninput=()=>{a.isValid(o.value)!==null&&t.onupdate?.(t.getValue())},o.onblur=()=>{const c=a.isValid(o.value);c===null?o.value=l:o.value=c,t.onupdate?.(t.getValue())},t.inputs[n]=o,s.appendChild(o)}),t.replaceChildren(i,s),t}setValue(e){Object.entries(this.inputs).forEach(([t,i])=>{document.activeElement!=i&&(i.value=this.opts[t].setValue(e))})}}const oi=(r,e,t)=>i=>{t!==void 0&&i.endsWith(t)&&(i=i.slice(0,i.length-t.length));let s;try{s=parseInt(i)}catch{return null}return Oe(s,r,e)+""},li=(r,e,t,i)=>{let s;i!==void 0&&r.endsWith(i)&&(r=r.slice(0,r.length-i.length));try{s=parseInt(r)}catch{return e}return Oe(s,e,t)};class gh extends yy{_value;_hue=0;_sat=0;_val=0;_alp=1;popup;matrix;matrixDot;matrixDragging=!1;hueDragging=!1;hueThumb;alphaDragging=!1;alphaBg;alphaThumb;previewNew;formats=[];onColorChange;static create(e){const t=kc();return Object.setPrototypeOf(t,gh.prototype),t.value=$a(e.value),t.classList.add("color-picker"),t.formats=[],e.height!==void 0&&(t.style.height=e.height+"px"),e.width!==void 0&&(t.style.width=e.width+"px"),t.addEventListener("click",()=>{t.createPopup()}),t}updatePreview(){this.color=this._value}get value(){return this._value}set value(e){this._value=e;const t=Xo(this._value);this._hue=t[0],this._sat=t[1],this._val=t[2],this._alp=t[3],this.updatePreview(),this.updatePopup()}get hue(){return this._hue}set hue(e){this._hue=e,this.updateColor()}get sat(){return this._sat}set sat(e){this._sat=e,this.updateColor()}get val(){return this._val}set val(e){this._val=e,this.updateColor()}get alpha(){return this._alp}set alpha(e){this._alp=e,this.updateColor()}updateColor(){this._value=new P({h:this._hue*360,s:this._sat*100,v:this._val*100,a:this._alp}),this.updatePreview(),this.updatePopup()}createPopup(){if(this.popup){this.closePopup();return}const e=document.createElement("div");e.classList.add("color-picker-popup");const t=document.createElement("div");t.classList.add("color-picker-area");const[i,s]=this.createMatrix();this.matrix=i,this.matrixDot=s,s.style.background="#f00";const[n,a]=this.createSlider({ondrag:()=>this.hueDragging=!0,offdrag:()=>this.hueDragging=!1,change:E=>{this.hue=E,this.onColorChange?.(this._value)}});this.hueThumb=a,n.style.background="linear-gradient(to right, red 0%, #ff0 17%, lime 33%, cyan 50%, blue 66%, #f0f 83%, red 100%)";const[o,l]=this.createSlider({ondrag:()=>this.alphaDragging=!0,offdrag:()=>this.alphaDragging=!1,change:E=>{this.alpha=E,this.onColorChange?.(this._value)}});this.alphaThumb=l,o.classList.add("color-picker-transparent");const c=document.createElement("div");c.classList.add("color-slider"),o.appendChild(c),this.alphaBg=c,t.replaceChildren(i,n,o);const u=document.createElement("div");u.classList.add("color-picker-area");const h=vn.create({label:"HEX",inputs:{hex:{setValue:E=>E.alpha!=1?E.toHexa():E.toHex(),isValid:E=>{const C=/#?([0-9a-fA-F]+)/.exec(E);return C&&[3,4,6,8].includes(C[1].length)?(E[0]!="#"&&(E="#"+E),E):null}}},getValue(){let E=this.inputs.hex.value;return E[0]!="#"&&(E="#"+E),new P(E)},onupdate:E=>{this.value=E,this.onColorChange?.(this._value)}});this.formats.push(h),u.appendChild(h);const d=vn.create({label:"RGBA",inputs:{r:{setValue:E=>Math.round(E.red*255).toString(),isValid:oi(0,255)},g:{setValue:E=>Math.round(E.green*255).toString(),isValid:oi(0,255)},b:{setValue:E=>Math.round(E.blue*255).toString(),isValid:oi(0,255)},a:{setValue:E=>Math.round(E.alpha*100)+"%",isValid:oi(0,100,"%")}},getValue(){return new P({r:li(this.inputs.r.value,0,255),g:li(this.inputs.g.value,0,255),b:li(this.inputs.b.value,0,255),a:li(this.inputs.a.value,0,100,"%")/100})},onupdate:E=>{this.value=E,this.onColorChange?.(this._value)}});this.formats.push(d),u.appendChild(d);const f=vn.create({label:"HSVA",inputs:{h:{setValue:E=>Math.round(Xo(E)[0]*360)+"º",isValid:oi(0,360,"º")},s:{setValue:E=>Math.round(Xo(E)[1]*100)+"%",isValid:oi(0,100,"%")},v:{setValue:E=>Math.round(Xo(E)[2]*100)+"%",isValid:oi(0,100,"%")},a:{setValue:E=>Math.round(E.alpha*100)+"%",isValid:oi(0,100,"%")}},getValue(){return new P({h:li(this.inputs.h.value,0,360,"º"),s:li(this.inputs.s.value,0,100,"%"),v:li(this.inputs.v.value,0,100,"%"),a:li(this.inputs.a.value,0,100,"%")/100})},onupdate:E=>{this.value=E,this.onColorChange?.(this._value)}});this.formats.push(f),u.appendChild(f);const p=vn.create({label:"HSLA",inputs:{h:{setValue:E=>Math.round(Ec(E)[0]*360)+"º",isValid:oi(0,360,"º")},s:{setValue:E=>Math.round(Ec(E)[1]*100)+"%",isValid:oi(0,100,"%")},l:{setValue:E=>Math.round(Ec(E)[2]*100)+"%",isValid:oi(0,100,"%")},a:{setValue:E=>Math.round(E.alpha*100)+"%",isValid:oi(0,100,"%")}},getValue(){return new P({h:li(this.inputs.h.value,0,360,"º"),s:li(this.inputs.s.value,0,100,"%"),l:li(this.inputs.l.value,0,100,"%"),a:li(this.inputs.a.value,0,100,"%")/100})},onupdate:E=>{this.value=E,this.onColorChange?.(this._value)}});this.formats.push(p),u.appendChild(p);const m=document.createElement("div");m.classList.add("color-picker-preview");const g=kc(),b=kc();b.color=this._value,g.color=this._value,m.replaceChildren(g,b),this.previewNew=g,u.appendChild(m),e.replaceChildren(t,u),this.popup=e,this.updatePopup();const w=this._value,v=E=>{E.key=="Escape"&&(E.stopImmediatePropagation(),window.removeEventListener("keydown",v),window.removeEventListener("mousedown",y),this.closePopup(),this.value=w,this.onColorChange?.(this._value))},y=E=>{e.contains(E.target)||(window.removeEventListener("keydown",v),window.removeEventListener("mousedown",y),this.closePopup())};window.addEventListener("keydown",v),window.addEventListener("mousedown",y),document.getElementById("popups").appendChild(e),setTimeout(()=>this.movePosition())}updatePopup(){if(!this.popup)return;this.matrix.style.backgroundColor=`hsl(${this._hue*360} 100% 50%)`,this.matrixDot.style.backgroundColor=this._value.toHex(),this.matrixDragging||(this.matrixDot.style.left=this._sat*200+"px",this.matrixDot.style.top=(1-this._val)*200+"px"),this.hueDragging||(this.hueThumb.style.left=this._hue*200+"px");const e=`rgba(${this._value.red*255}, ${this._value.green*255}, ${this._value.blue*255}`;this.alphaBg.style.background=`linear-gradient(to right, ${e}, 0 ), ${e}, 1))`,this.alphaDragging||(this.alphaThumb.style.left=this._alp*200+"px"),this.formats.forEach(t=>t.setValue(this._value)),this.previewNew.color=this._value}closePopup(){const e=this.popup;this.popup=void 0,e&&(e.classList.add("exiting"),setTimeout(()=>{e.remove()},500))}createMatrix(){const e=document.createElement("div");e.classList.add("color-matrix"),e.style.backgroundColor="#ff0000";const t=document.createElement("div");t.classList.add("color-matrix-x");const i=document.createElement("div");i.classList.add("color-matrix-y");const s=document.createElement("div");s.classList.add("color-matrix-dot"),e.appendChild(s),e.replaceChildren(t,i,s),e.onmousedown=o=>{window.addEventListener("mousemove",n),window.addEventListener("mouseup",a),n(o),this.matrixDragging=!0};const n=o=>{const l=e.getBoundingClientRect(),c=Oe((o.clientX-l.left)/l.width,0,1),u=Oe((o.clientY-l.top)/l.height,0,1);s.style.left=c*l.width+"px",s.style.top=u*l.height+"px",this._sat=c,this.val=1-u,this.onColorChange?.(this._value)},a=()=>{window.removeEventListener("mousemove",n),window.removeEventListener("mouseup",a),this.matrixDragging=!1};return[e,s]}createSlider(e){const t=document.createElement("div");t.classList.add("color-slider");const i=document.createElement("div");i.classList.add("color-slider-thumb"),t.appendChild(i),t.onmousedown=a=>{window.addEventListener("mousemove",s),window.addEventListener("mouseup",n),s(a),e.ondrag?.(),this.onColorChange?.(this._value)};const s=a=>{const o=t.getBoundingClientRect(),l=Oe((a.clientX-o.left)/o.width,0,1);i.style.left=l*o.width+"px",e.change(l)},n=()=>{window.removeEventListener("mousemove",s),window.removeEventListener("mouseup",n),e.offdrag?.()};return[t,i]}movePosition(){const e=this.getBoundingClientRect(),t=e.left+e.width/2-this.popup.clientWidth/2,i=e.top+e.height+10,s=15,n=window.innerWidth-this.popup.clientWidth-15;this.popup.style.left=`${Oe(t,s,n)}px`,this.popup.style.top=`${i}px`,i+this.popup.clientHeight>window.innerHeight-15&&(this.popup.style.transformOrigin="bottom center",this.popup.style.top=`${e.top-this.popup.clientHeight-10}px`)}isActive(){return this.popup!==void 0}}class $u extends Tt{app;grid;actions={};constructor(e){super({title:"Themes",width:600,height:400,disableClose:!1,win_id:"theme-selection",blocking:!1}),this.app=e,this.initView(),this.loadGrid()}initView(){this.viewElement.replaceChildren();const e=document.createElement("div");e.classList.add("padding");const t=document.createElement("div");t.classList.add("pref-search");const i=document.createElement("input");i.classList.add("pref-search-bar"),i.type="text",i.placeholder="Search for a theme...",i.oninput=()=>{this.filterGrid(i.value)},t.appendChild(i);const s=document.createElement("div");s.classList.add("theme-grid"),this.grid=s;const n=this.createOptionTray();e.replaceChildren(t,s,n),this.viewElement.appendChild(e)}createOptionTray(){const e=document.createElement("div");e.classList.add("theme-tray");const t=document.createElement("button");t.appendChild(Ce.getIcon("PLUS",16)),t.appendChild(document.createTextNode("New")),t.onclick=()=>{const l=this.getNonConflictingName("new-theme");$e.createUserTheme(l),$e.loadTheme(l),this.loadGrid()},this.actions.add=t,e.appendChild(t);const i=document.createElement("button");i.appendChild(Ce.getIcon("COPY",16)),i.appendChild(document.createTextNode("Duplicate")),i.onclick=()=>{const l=this.getNonConflictingName(x.general.theme);$e.createUserTheme(l,$e.getCurrentTheme()),$e.loadTheme(l),this.loadGrid()},i.disabled=!0,this.actions.copy=i,e.appendChild(i);const s=document.createElement("button");s.classList.add("confirm"),s.appendChild(Ce.getIcon("EDIT",16)),s.appendChild(document.createTextNode("Edit")),s.onclick=()=>{this.closeWindow(),this.app.windowManager.openWindow(new ja(this.app))},s.disabled=!0,this.actions.edit=s,e.appendChild(s);const n=document.createElement("button");n.classList.add("delete"),n.appendChild(Ce.getIcon("TRASH",16)),n.appendChild(document.createTextNode("Delete")),n.onclick=()=>{this.app.windowManager.openWindow(new Wa(this.app,"Delete theme","Are you sure you want to delete this theme?",[{type:"default",label:"Cancel"},{type:"delete",label:"Delete",callback:()=>{$e.deleteUserTheme(x.general.theme),this.loadGrid()}}]))},n.disabled=!0,this.actions.del=n,e.appendChild(n);const a=document.createElement("button");a.appendChild(Ce.getIcon("UPLOAD",16)),a.appendChild(document.createTextNode("Import")),a.onclick=async()=>{(await ey({_preferPolyfill:!1,excludeAcceptAllOption:!1,multiple:!0,accepts:[{extensions:["txt"]}]})).forEach(c=>{c.getFile().then(u=>u.text()).then(u=>{const h=$e.parseThemeText(u);let d=er(c.name,".txt");if(!h){Ee.createFormatted("Failed to load theme "+d,"error");return}d=this.getNonConflictingName(d),$e.createUserTheme(d,h),this.loadGrid()})})},this.actions.imp=a,e.appendChild(a);const o=document.createElement("button");return o.appendChild(Ce.getIcon("DOWNLOAD",16)),o.appendChild(document.createTextNode("Export")),o.onclick=()=>{const l=$e.exportCurrentTheme({spaces:!0}),c=new File([l],x.general.theme+".txt",{type:"text/plain"}),u=document.createElement("a"),h=URL.createObjectURL(c);u.href=h,u.download=c.name,document.body.appendChild(u),u.click(),document.body.removeChild(u),window.URL.revokeObjectURL(h)},this.actions.exp=o,o.disabled=!0,e.appendChild(o),e}loadGrid(){this.grid.replaceChildren();const e=$e.getThemes();if(e)for(const[t,i]of Object.entries(e)){let s=t;const n=Cs[t]!==void 0,a=document.createElement("div"),o=document.createElement("div");if(o.classList.add("inlineEdit"),n)o.style.fontWeight="bold";else{o.contentEditable="true";let c=t;o.onfocus=()=>{c=o.innerText},o.onkeydown=u=>{u.key=="Enter"&&(o.blur(),u.preventDefault()),u.key=="Escape"&&(o.innerText=c,o.blur(),u.stopImmediatePropagation())},o.onblur=()=>{if(o.innerText==c)return;const u=this.getNonConflictingName(o.innerText);$e.renameUserTheme(c,u),$e.loadTheme(u),o.innerText=u,s=u,a.dataset.id=u}}const l=document.createElement("div");l.classList.add("theme-preview-grid");for(const c of K3){const u=document.createElement("div");u.style.backgroundColor=i[c].toHex(),l.appendChild(u)}o.innerText=t,a.classList.add("theme-cell"),o.classList.add("theme-title"),a.replaceChildren(o,l),this.grid.appendChild(a),t==x.general.theme&&(a.classList.add("selected"),setTimeout(()=>{a.scrollIntoView({behavior:x.general.smoothAnimations?"smooth":"instant",block:"center"})}),this.actions.edit.disabled=n,this.actions.del.disabled=n,this.actions.copy.disabled=!1,this.actions.exp.disabled=!1),a.dataset.id=t,a.onclick=()=>{x.general.theme!=s&&($e.loadTheme(s),this.removeAllSelections(),a.classList.add("selected"),this.actions.edit.disabled=n,this.actions.del.disabled=n,this.actions.copy.disabled=!1,this.actions.exp.disabled=!1)}}}removeAllSelections(){[...this.grid.querySelectorAll(".selected")].forEach(e=>e.classList.remove("selected"))}filterGrid(e){[...this.grid.children].forEach(t=>{if(!(t instanceof HTMLDivElement))return;const i=t,s=this.containsQuery(e,i.dataset.id);i.style.display=s?"":"none"})}containsQuery(e,t){return t?t.toLowerCase().includes(e.trim().toLowerCase()):!1}getNonConflictingName(e){const t=$e.getThemes();if(t[e]==null)return e;let i=2;const s=/([^]+)-(\d+)$/.exec(e);s&&(e=s[1],i=parseInt(s[2]));let n=`${e}-${i}`;for(;t[n]!==void 0;)n=`${e}-${i}`,i++;return n}}class ja extends Tt{app;pickers={};handlers=[];linkBlacklist=new Set;static isOpen=!1;constructor(e){super({title:"Theme Color Editor",width:500,height:400,win_id:"theme-editor",disableClose:!0}),this.app=e,this.initView(),ja.isOpen=!0}initView(){this.viewElement.replaceChildren();const e=document.createElement("div");e.classList.add("padding");const t=document.createElement("div");t.classList.add("theme-color-grid"),Z3.forEach(l=>{t.appendChild(this.createGroup(l))});const i=document.createElement("div");i.classList.add("menu-options");const s=document.createElement("div");s.classList.add("menu-left");const n=document.createElement("div");n.classList.add("menu-right"),i.appendChild(s),i.appendChild(n);const a=document.createElement("button");a.innerText="Cancel",a.onclick=()=>{this.closeWindow(),$e.loadTheme(x.general.theme),this.app.windowManager.openWindow(new $u(this.app))},s.appendChild(a);const o=document.createElement("button");o.innerText="Save",o.classList.add("confirm"),o.onclick=()=>{$e.setUserTheme(x.general.theme,$e.getCurrentTheme()),$e.loadTheme(x.general.theme),this.app.windowManager.openWindow(new $u(this.app)),this.closeWindow()},n.appendChild(o),e.replaceChildren(t,i),this.viewElement.appendChild(e)}createGroup(e){const t=document.createElement("div");t.classList.add("theme-group");const i=document.createElement("div");i.classList.add("theme-group-label"),i.innerText=e.name;const s=document.createElement("div");return s.classList.add("theme-picker-grid"),e.ids.forEach(n=>{s.appendChild(this.createPicker(n))}),t.replaceChildren(i,s),t}createPicker(e){const t=()=>{const u=new P($e.getCurrentTheme()[e.id]);o.innerText=u.toHex()+" | "+Math.round(u.alpha*100)+"%",!l.isActive()&&(l.value=u)},i=u=>{const h=$e.getCurrentTheme();h[e.id]=u,$e._applyTheme(this.updateLinks(e.id,h))},s=document.createElement("div");s.classList.add("theme-color-cell"),Lm[e.id]!=""&&Ze(s,{content:Lm[e.id]});const n=_c[e.id];n&&(s.onmouseover=()=>{Object.keys(n).forEach(u=>{this.linkBlacklist.has(u)||this.pickers[u].classList.add("linked")})},s.onmouseout=()=>{Object.keys(n).forEach(u=>{this.pickers[u].classList.remove("linked")})});const a=document.createElement("div");a.innerText=e.label;const o=document.createElement("div");o.classList.add("theme-color-detail");const l=gh.create({value:"white",width:30,height:30});l.onColorChange=i,s.replaceChildren(a,o,l);const c=this.getLink(e.id);if(c!==null){const u=document.createElement("div");u.classList.add("ico-checkbox");const h=Ce.getIcon("LINK",16),d=Ce.getIcon("LINK_BROKEN",16);let f=!0;const p=()=>{f?this.linkBlacklist.delete(e.id):this.linkBlacklist.add(e.id),h.style.display=f?"":"none",d.style.display=f?"none":""};u.onclick=()=>{f=!f,p()},Ze(u,{onShow(g){g.setContent(f?`Linked to ${c}`:"Unlinked")}}),Ze(u,{trigger:"click",onShow(g){g.setContent(f?`Linked to ${c}`:"Unlinked")}}),p(),u.replaceChildren(h,d),s.appendChild(u);const m=g=>{f&&(f=!1,p()),i(g)};l.onColorChange=m}return t(),H.on("themeChanged",t),this.handlers.push(t),this.pickers[e.id]=s,s}getLink(e){for(const[t,i]of Object.entries(_c))if(e in i)return t;return null}average(e){return(e.red+e.green+e.blue)/3}lighten(e,t){return new P(Gd(new P(e).toNumber(),1+t/100))}add(e,t){return new P(J3(new P(e).toNumber(),t))}updateLinks(e,t){const i=new Set,s=[e];for(;s.length!=0;){const n=s.shift(),a=_c[n];if(a)for(const[o,l]of Object.entries(a))this.linkBlacklist.has(o)||i.has(o)||(t[o]=l.bind(this)(t[n]),s.push(o),i.add(o))}return t}onClose(){ja.isOpen=!1}}const hi=r=>r,Wm={offset:{title:"Offset",element:hi({create:r=>{const e=ft.create(0,x.general.spinnerStep/100,3);return e.onChange=t=>{const i=r.chartManager.loadedChart.timingData;t!=null&&(i.hasChartOffset()?i.setOffset(t):i.songTimingData.setOffset(t))},e.view},update:(r,e)=>{const t=r.querySelector(".spinner-input");if(document.activeElement==t)return;const i=e.getOffset();t.value!=ae(i,3).toFixed(3)&&(t.value=ae(i,3).toFixed(3))}})},bpm:{title:"BPM",element:hi({create:r=>{const e=ft.create(120,void 0,3);return e.onChange=t=>{const i=r.chartManager.loadedChart.timingData;if(t==null){const s=r.chartManager.beat;i.deleteMulti([{type:"BPMS",beat:s}]);return}i.insertMulti([{type:"BPMS",beat:r.chartManager.beat,value:t}])},e.view},update:(r,e,t)=>{const i=r.querySelector(".spinner-input");if(document.activeElement==i)return;const s=e.getEventAtBeat("BPMS",t)?.value??120;i.value!=ae(s,3).toFixed(3)&&(i.value=ae(s,3).toFixed(3))}})},stop:{title:"Stop",element:hi({create:r=>{const e=ft.create(0,void 0,3);return e.onChange=t=>{const i=r.chartManager.loadedChart.timingData;if(t==null||t==0){const s=r.chartManager.beat;i.deleteMulti([{type:"STOPS",beat:s}]);return}i.insertMulti([{type:"STOPS",beat:r.chartManager.beat,value:t}])},e.view},update:(r,e,t)=>{const i=r.querySelector(".spinner-input");if(document.activeElement==i)return;const s=e.getEventAtBeat("STOPS",t);let n=s?.value??0;t!=s?.beat&&(n=0),i.value!=ae(n,3).toFixed(3)&&(i.value=ae(n,3).toFixed(3))}})},delay:{title:"Delay",element:hi({create:r=>{const e=ft.create(0,void 0,3);return e.onChange=t=>{const i=r.chartManager.loadedChart.timingData;if(t==null||t==0){const s=r.chartManager.beat;i.deleteMulti([{type:"DELAYS",beat:s}]);return}i.insertMulti([{type:"DELAYS",beat:r.chartManager.beat,value:t}])},e.view},update:(r,e,t)=>{const i=r.querySelector(".spinner-input");if(document.activeElement==i)return;const s=e.getEventAtBeat("DELAYS",t);let n=s?.value??0;t!=s?.beat&&(n=0),i.value!=ae(n,3).toFixed(3)&&(i.value=ae(n,3).toFixed(3))}})},warp:{title:"Warp",element:hi({create:r=>{const e=ft.create(0,void 0,3,0);return e.onChange=t=>{const i=r.chartManager.loadedChart.timingData;if(t==null||t==0){const s=r.chartManager.beat;i.deleteMulti([{type:"WARPS",beat:s}]);return}t<0||i.insertMulti([{type:"WARPS",beat:r.chartManager.beat,value:t}])},e.view},update:(r,e,t)=>{const i=r.querySelector(".spinner-input");if(document.activeElement==i)return;const s=e.getEventAtBeat("WARPS",t);let n=s?.value??0;t!=s?.beat&&(n=0),i.value!=ae(n,3).toFixed(3)&&(i.value=ae(n,3).toFixed(3))}})},timeSig:{title:"Time Sig.",element:hi({create:r=>{const e=document.createElement("div");e.classList.add("flex-column-gap");const t=ft.create(4,1,0,1);t.onChange=s=>{const n=r.chartManager.loadedChart.timingData;if(s==null){const a=r.chartManager.beat;n.deleteMulti([{type:"TIMESIGNATURES",beat:a}]);return}s<1||n.insertMulti([{type:"TIMESIGNATURES",beat:r.chartManager.beat,upper:s,lower:i.value}])};const i=ft.create(4,1,0,1);return i.onChange=s=>{const n=r.chartManager.loadedChart.timingData;if(s==null){const a=r.chartManager.beat;n.deleteMulti([{type:"TIMESIGNATURES",beat:a}]);return}s<1||n.insertMulti([{type:"TIMESIGNATURES",beat:r.chartManager.beat,upper:t.value,lower:s}])},e.appendChild(t.view),e.appendChild(i.view),e},update:(r,e,t)=>{const i=r.firstElementChild.querySelector(".spinner-input"),s=r.lastElementChild.querySelector(".spinner-input"),n=e.getEventAtBeat("TIMESIGNATURES",t),a=n?.upper??4,o=n?.lower??4;document.activeElement!=i&&i.value!=Math.round(a).toString()&&(i.value=Math.round(a).toString()),document.activeElement!=s&&s.value!=Math.round(o).toString()&&(s.value=Math.round(o).toString())}})},tick:{title:"Tickcount",element:hi({create:r=>{const e=ft.create(4,1,0,0);return e.onChange=t=>{const i=r.chartManager.loadedChart.timingData;if(t==null){const s=r.chartManager.beat;i.deleteMulti([{type:"TICKCOUNTS",beat:s}]);return}t<0||i.insertMulti([{type:"TICKCOUNTS",beat:r.chartManager.beat,value:t}])},e.view},update:(r,e,t)=>{const i=r.querySelector(".spinner-input");if(document.activeElement==i)return;const s=e.getEventAtBeat("TICKCOUNTS",t)?.value??4;i.value!=Math.round(s).toString()&&(i.value=Math.round(s).toString())}})},combo:{title:"Combo",element:hi({create:r=>{const e=document.createElement("div");e.classList.add("flex-column-gap");const t=ft.create(1,1,0,0);t.onChange=s=>{const n=r.chartManager.loadedChart.timingData;if(s==null){const a=r.chartManager.beat;n.deleteMulti([{type:"COMBOS",beat:a}]);return}s<0||n.insertMulti([{type:"COMBOS",beat:r.chartManager.beat,hitMult:s,missMult:i.value}])};const i=ft.create(1,1,0,0);return i.onChange=s=>{const n=r.chartManager.loadedChart.timingData;if(s==null){const a=r.chartManager.beat;i.setValue(r.chartManager.loadedChart?.timingData.getEventAtBeat("COMBOS",a)?.missMult??1);return}s<0||n.insertMulti([{type:"COMBOS",beat:r.chartManager.beat,hitMult:t.value,missMult:s}])},e.appendChild(t.view),e.appendChild(i.view),e},update:(r,e,t)=>{const i=r.firstElementChild.querySelector(".spinner-input"),s=r.lastElementChild.querySelector(".spinner-input"),n=e.getEventAtBeat("COMBOS",t),a=n?.hitMult??1,o=n?.missMult??1;document.activeElement!=i&&i.value!=Math.round(a).toString()&&(i.value=Math.round(a).toString()),document.activeElement!=s&&s.value!=Math.round(o).toString()&&(s.value=Math.round(o).toString())}})},speed:{title:"Speed",element:hi({create:r=>{const e=document.createElement("div");e.classList.add("flex-column-gap");const t=()=>{r.chartManager.loadedChart.timingData.insertMulti([{type:"SPEEDS",beat:r.chartManager.beat,value:i.value,delay:s.value,unit:n.value=="Beats"?"B":"T"}])},i=ft.create(1,.1,0);i.onChange=a=>{const o=r.chartManager.loadedChart.timingData;if(a==null){const l=r.chartManager.beat;o.deleteMulti([{type:"SPEEDS",beat:l}]);return}t()};const s=ft.create(1,.1,0);s.onChange=a=>{a==null||a<0||t()};const n=Oi.create(["Beat","Time"],"Beats");return n.onChange=t,e.appendChild(i.view),e.appendChild(s.view),e.appendChild(n.view),e},update:(r,e,t)=>{const i=r.firstElementChild.querySelector(".spinner-input"),s=r.children[1].querySelector(".spinner-input"),n=e.getEventAtBeat("SPEEDS",t),a=n?.value??1,o=n?.delay??0,l=n?.unit=="B"?"Beat":"Time";document.activeElement!=i&&i.value!=ae(a,3).toFixed(3)&&(i.value=ae(a,3).toFixed(3)),document.activeElement!=s&&s.value!=ae(o,3).toFixed(3)&&(s.value=ae(o,3).toFixed(3)),s.disabled=n?.beat!=t;const c=r.lastElementChild.querySelector(".dropdown-selected-text");c.innerText!=l&&(c.innerText=l),n?.beat!=t?c.classList.add("disabled"):c.classList.remove("disabled")}})},scroll:{title:"Scroll",element:hi({create:r=>{const e=ft.create(1,void 0,3);return e.onChange=t=>{const i=r.chartManager.loadedChart.timingData;if(t==null){const s=r.chartManager.beat;i.deleteMulti([{type:"SCROLLS",beat:s}]);return}i.insertMulti([{type:"SCROLLS",beat:r.chartManager.beat,value:t}])},e.view},update:(r,e,t)=>{const i=r.querySelector(".spinner-input");if(document.activeElement==i)return;const s=e.getEventAtBeat("SCROLLS",t)?.value??1;i.value!=ae(s,3).toFixed(3)&&(i.value=ae(s,3).toFixed(3))}})},fake:{title:"Fake",element:hi({create:r=>{const e=ft.create(1,void 0,3,0);return e.onChange=t=>{const i=r.chartManager.loadedChart.timingData;if(t==null){const s=r.chartManager.beat;i.deleteMulti([{type:"FAKES",beat:s}]);return}t<0||i.insertMulti([{type:"FAKES",beat:r.chartManager.beat,value:t}])},e.view},update:(r,e,t)=>{const i=r.querySelector(".spinner-input");if(document.activeElement==i)return;const s=e.getEventAtBeat("FAKES",t);let n=s?.value??1;t!=s?.beat&&(n=0),i.value!=ae(n,3).toFixed(3)&&(i.value=ae(n,3).toFixed(3))}})},label:{title:"Label",element:hi({create:r=>{const e=document.createElement("input");return e.type="text",e.autocomplete="off",e.spellcheck=!1,e.onkeydown=t=>{t.key=="Enter"&&e.blur()},e.onblur=()=>{const t=r.chartManager.loadedChart.timingData;if(e.value==""){const i=r.chartManager.beat;t.deleteMulti([{type:"LABELS",beat:i}]);return}t.insertMulti([{type:"LABELS",beat:r.chartManager.beat,value:e.value}])},e},update:(r,e,t)=>{const i=r;if(document.activeElement==i)return;const n=e.getEventAtBeat("LABELS",t)?.value??"";i.value!=n&&(i.value=n)}})}};class xk extends Tt{app;lastBeat;interval;changeHandler=()=>this.setData();constructor(e){super({title:"Edit Timing Data",width:300,height:340,disableClose:!1,win_id:"timing_data",blocking:!1}),this.app=e,this.lastBeat=Math.round(this.app.chartManager.beat*1e3)/1e3,this.initView(),this.interval=setInterval(()=>{Math.round(this.app.chartManager.beat*1e3)/1e3!=this.lastBeat&&(this.lastBeat=Math.round(this.app.chartManager.beat*1e3)/1e3,this.setData())},17),H.on("timingModified",this.changeHandler),H.on("chartLoaded",this.changeHandler)}onClose(){H.off("timingModified",this.changeHandler),clearInterval(this.interval)}initView(){this.viewElement.replaceChildren(),this.viewElement.classList.add("timing-data");const e=document.createElement("div");e.classList.add("padding"),Object.values(Wm).forEach(t=>{const i=document.createElement("div");i.classList.add("label"),i.innerText=t.title;const s=t.element.create(this.app);e.appendChild(i),e.appendChild(s)}),this.viewElement.appendChild(e),this.setData()}setData(){this.app.chartManager.loadedChart&&Object.values(Wm).forEach((e,t)=>{const i=this.viewElement.children[0].children[t*2+1];e.element.update(i,this.app.chartManager.loadedChart.timingData,this.lastBeat)})}}const $m=[{type:"group",id:"app",label:"App",disable:()=>window.nw===void 0,children:[{type:"subgroup",children:[{type:"item",label:"Window Width",id:"app.width",input:{type:"number",step:50,min:300,onChange:(r,e)=>{const t=nw.Window.get();t.isFullscreen||(t.width=e)}}},{type:"item",label:"Window Height",id:"app.height",input:{type:"number",step:50,min:300,onChange:(r,e)=>{const t=nw.Window.get();t.isFullscreen||(t.height=e)}}}]},{type:"subgroup",children:[{type:"item",label:"Fullscreen",id:"app.fullscreen",input:{type:"checkbox",onChange:(r,e)=>{const t=nw.Window.get();e?nw.Window.get().enterFullscreen():(t.hide(),nw.Window.get().leaveFullscreen(),t.show())}}}]}]},{type:"group",id:"general",label:"General",children:[{type:"subgroup",children:[{type:"item",label:"Smooth Animations",id:"general.smoothAnimations",input:{type:"checkbox",onChange:(r,e)=>{e?document.body.classList.add("animated"):document.body.classList.remove("animated")}}},{type:"item",label:"Autosave interval",id:"general.autosaveInterval",input:{type:"slider",min:30,step:5,max:600,hardMin:15,hardMax:2**31-1},tooltip:"Interval in seconds between autosaves"},{type:"item",label:"Warn before exit",id:"general.warnBeforeExit",input:{type:"checkbox"},tooltip:"Warn before exiting the editor if you have unsaved changes."},{type:"item",label:"Spinner step",id:"general.spinnerStep",input:{type:"slider",min:0,step:.1,max:5,hardMin:0,hardMax:2**31-1},tooltip:"The default increment for all number spinners."}]}]},{type:"group",id:"chart",label:"Chart",children:[{type:"subgroup",label:"Playfield",children:[{type:"subgroup",children:[{type:"item",label:"Enable mouse placement",id:"chart.mousePlacement",input:{type:"checkbox"}},{type:"item",label:"Directional hold placement behavior",id:"chart.defaultHoldPlacement",input:{type:"checkbox"},tooltip:"Changes the hold placement behavior. By default, holds can only be extended in one direction when placed. Turn this off to mimic the behavior of AV/Stepmania."}]},{type:"subgroup",children:[{type:"item",label:"Zoom",id:"chart.zoom",input:{type:"slider",min:50,step:1,max:200,hardMax:2**31-1,transformers:{serialize:r=>r*100,deserialize:r=>r/100}}},{type:"item",label:"Reverse playfield",id:"chart.reverse",input:{type:"checkbox"}}]},{type:"subgroup",children:[{type:"item",label:"Allow receptor dragging",id:"chart.allowReceptorDrag",input:{type:"checkbox"},tooltip:"Allows the receptors to be dragged to move the playfield."},{type:"item",label:"X position",id:"chart.receptorXPos",input:{type:"slider",min:-400,max:400,hardMin:-(2**31-1),hardMax:2**31-1}},{type:"item",label:"Y position",id:"chart.receptorYPos",input:{type:"slider",min:-400,max:0,hardMin:-(2**31-1),hardMax:2**31-1}}]},{type:"subgroup",children:[{type:"item",label:"Draw length",id:"chart.maxDrawBeats",input:{type:"slider",min:0,max:30,hardMax:2**31-1},tooltip:"Maximum number of beats to draw notes. Increasing this works well for songs with high bpm but can affect performance. Only applies to XMod."},{type:"item",label:"Draw length past receptors",id:"chart.maxDrawBeatsBack",input:{type:"slider",min:0,max:30,hardMax:2**31-1},tooltip:"Maximum number of beats to draw notes past the receptors. Increasing this can affect performance. Only applies to XMod."}]},{type:"subgroup",children:[{type:"item",label:"Draw noteflashes",id:"chart.drawNoteFlash",input:{type:"checkbox"}},{type:"item",label:"Draw note icons",id:"chart.drawIcons",input:{type:"checkbox"},tooltip:"Draw indicators above notes that some noteskins may not differentiate, like Fakes and Lifts."}]}]},{type:"subgroup",label:"Scrolling",children:[{type:"item",label:"Scroll sensitivity",id:"chart.scroll.scrollSensitivity",input:{type:"slider",min:0,step:1,max:200,hardMax:2**31-1,transformers:{serialize:r=>r*100,deserialize:r=>r/100}},tooltip:"Adjust the scroll sensitivity when scrolling through the chart."},{type:"item",label:"Snap every scroll",id:"chart.scroll.scrollSnapEveryScroll",input:{type:"checkbox"},tooltip:"Whether each scroll movement corresponds to moving one snap unit when scrolling. Turning this on will have the same behavior as ArrowVortex. Recommended on for those using a mouse, off for those using trackpad."},{type:"item",label:"Invert zoom in/out",id:"chart.scroll.invertZoomScroll",input:{type:"checkbox"},tooltip:"Inverts the zoom in/out control when scrolling."},{type:"item",label:"Invert scroll direction when in reverse",id:"chart.scroll.invertReverseScroll",input:{type:"checkbox"}}]},{type:"subgroup",label:"Waveform",children:[{type:"item",label:"Draw waveform",id:"chart.waveform.enabled",input:{type:"checkbox"}},{type:"subgroup",children:[{type:"item",label:"Color",id:"chart.waveform.color",input:{type:"color"}}]},{type:"subgroup",children:[{type:"item",label:"Draw filtered waveform",id:"chart.waveform.allowFilter",input:{type:"checkbox"}},{type:"item",label:"Filtered color",id:"chart.waveform.filteredColor",input:{type:"color"}}]},{type:"item",label:"Line height",id:"chart.waveform.lineHeight",input:{type:"slider",min:1,max:3,step:.1,hardMax:100},tooltip:"The height of each line of the waveform. Increasing this can help performance."},{type:"item",label:"Antialiasing",id:"chart.waveform.antialiasing",input:{type:"checkbox"}},{type:"item",label:"Allow speed changes",id:"chart.waveform.speedChanges",input:{type:"checkbox"},tooltip:"Allows the waveform to be affected by SPEEDS and SCROLLS."}]},{type:"subgroup",label:"Note Layout",children:[{type:"item",label:"Show Note Layout",id:"chart.noteLayout.enabled",input:{type:"checkbox"}}]},{type:"subgroup",label:"NPS Graph",children:[{type:"item",label:"Show NPS Graph",id:"chart.npsGraph.enabled",input:{type:"checkbox"}},{type:"subgroup",children:[{type:"item",label:"Start Color",id:"chart.npsGraph.color1",input:{type:"color"}},{type:"item",label:"End Color",id:"chart.npsGraph.color2",input:{type:"color"}}]}]}]},{type:"group",id:"audio",label:"Audio",children:[{type:"subgroup",children:[{type:"item",label:"Master volume",id:"audio.masterVolume",input:{type:"slider",min:0,step:1,max:100,hardMax:2**31-1,transformers:{serialize:r=>r*100,deserialize:r=>r/100}}},{type:"item",label:"Song volume",id:"audio.songVolume",input:{type:"slider",min:0,step:1,max:100,hardMax:2**31-1,transformers:{serialize:r=>r*100,deserialize:r=>r/100}}},{type:"item",label:"Sound effect volume",id:"audio.soundEffectVolume",input:{type:"slider",min:0,step:1,max:100,hardMax:2**31-1,transformers:{serialize:r=>r*100,deserialize:r=>r/100}}}]},{type:"subgroup",children:[{type:"item",label:"Enable assist tick",id:"audio.assistTick",input:{type:"checkbox"},tooltip:"Plays a sound when a note passes the receptors"},{type:"item",label:"Enable metronome",id:"audio.metronome",input:{type:"checkbox"}}]},{type:"subgroup",children:[{type:"item",label:"Allow filters to affect audio",id:"audio.allowFilter",input:{type:"checkbox",onChange:r=>{r.chartManager.chartAudio.reload()}}},{type:"item",label:"Enable metronome",id:"audio.metronome",input:{type:"checkbox"}}]}]},{type:"group",id:"play",label:"Play mode",children:[{type:"subgroup",label:"Calibration",children:[{type:"item",label:"Global offset",id:"play.offset",input:{type:"slider",min:-1,step:.001,max:1,hardMin:-(2**31-1),hardMax:2**31-1},tooltip:"Offset in seconds when playing a chart. Set to positive if you are hitting early and negative if you are hitting late."},{type:"item",label:"Sound effect offset",id:"play.effectOffset",input:{type:"slider",min:-1,step:.001,max:1,hardMin:-(2**31-1),hardMax:2**31-1},tooltip:"Offset in seconds when playing sound effects like assist tick and metronome."},{type:"item",label:"Visual offset",id:"play.visualOffset",input:{type:"slider",min:-1,step:.001,max:1,hardMin:-(2**31-1),hardMax:2**31-1},tooltip:"Offset in seconds when displaying notes."}]},{type:"subgroup",children:[{type:"item",label:"Judgement tilt",id:"play.judgementTilt",input:{type:"checkbox"},tooltip:"Tilts the judgement text left if you are hitting early and right if you are hitting late."},{type:"item",label:"Hide barlines during play",id:"play.hideBarlines",input:{type:"checkbox"}}]},{type:"subgroup",label:"Timing windows",children:[{type:"item",id:"play.timingCollection",label:"Timing window collection",input:{type:"dropdown",advanced:!1,get items(){return Object.keys(rt.getCollections())}}},{type:"item",id:"play.timingWindowScale",label:"Timing window scale",input:{type:"slider",min:0,step:.001,max:2,hardMax:2**31-1},tooltip:"Scales all timing windows by the given amount."},{type:"item",id:"play.timingWindowAdd",label:"Timing window add",input:{type:"slider",min:0,step:.001,max:1,hardMax:2**31-1},tooltip:"Adds this value (in seconds) to all timing windows."}]}]},{type:"group",id:"performance",label:"Performance",children:[{type:"item",label:"Antialiasing",id:"performance.antialiasing",input:{type:"checkbox"}},{type:"item",label:"Resolution",id:"performance.resolution",input:{type:"slider",min:1,step:1,max:4,hardMin:0,hardMax:2**31-1},tooltip:"Requires a reload."}]},{type:"group",id:"debug",label:"Debug",children:[{type:"item",label:"Show FPS",id:"debug.showFPS",input:{type:"checkbox"}},{type:"item",label:"Show rendering timers",id:"debug.showTimers",input:{type:"checkbox"}},{type:"item",label:"Show scrolls/speeds debug visual",id:"debug.showScroll",input:{type:"checkbox"}},{type:"item",label:"Show noteskin errors",id:"debug.showNoteskinErrors",input:{type:"checkbox"}}]}];class _k extends Tt{app;observer;sectionContainer;constructor(e){super({title:"Options",width:600,height:400,disableClose:!1,win_id:"user_options",blocking:!1}),this.app=e,this.initView(),H.on("resize",()=>{this.move(window.innerWidth/2-this.options.width/2,window.innerHeight/2-this.options.height/2)})}initView(){this.viewElement.replaceChildren();const e=document.createElement("div");e.classList.add("padding");const t=document.createElement("div");t.classList.add("pref-container");const i=document.createElement("div");i.classList.add("pref-search");const s=document.createElement("input");s.classList.add("pref-search-bar"),s.type="text",s.placeholder="Search for an option...",s.oninput=()=>{a.replaceChildren(),o.replaceChildren(...this.createOptions(this.filterOptions(s.value)))},i.appendChild(s);const n=document.createElement("div");n.classList.add("pref-scrollers");const a=document.createElement("div");a.classList.add("pref-section-scroller"),this.sectionContainer=a;const o=document.createElement("div");o.classList.add("pref-option-scroller"),n.replaceChildren(a,o),this.observer=new IntersectionObserver(l=>{l.forEach(c=>{const u=c.target.dataset.id,h=a.querySelector(`.pref-section[data-id=${u}]`);h&&(c.intersectionRatio>0?h.classList.add("selected"):h.classList.remove("selected"))})},{}),t.replaceChildren(i,n),a.replaceChildren(),o.replaceChildren(...this.createOptions($m)),e.appendChild(t),this.viewElement.appendChild(e)}createOptions(e){return e.filter(t=>!t.disable?.(this.app)).map(t=>{const i=this.makeOption(t);return t.type=="group"&&(this.observer.observe(i),this.sectionContainer?.appendChild(this.createEmptyGroup(t))),i})}makeOption(e){const t=document.createElement("div");t.classList.add("pref-"+e.type),(e.type=="group"||e.type=="item")&&(t.dataset.id=e.id);const i=document.createElement("div");i.classList.add(`pref-${e.type}-label`),e.label!==void 0&&(i.innerText=e.label,t.appendChild(i));const s=Ce.getIcon("REVERT");if(e.type=="item"&&(s.style.width="12px",s.addEventListener("click",()=>{x.applyOption([e.id,x.getDefaultOption(e.id)]);const n=e.input.onChange;n?.(this.app,x.getDefaultOption(e.id)),t.replaceWith(this.makeOption(e))}),s.style.display=x.getDefaultOption(e.id)===x.getOption(e.id)?"none":"block",t.appendChild(s)),e.type=="item"){const n=x.getOption(e.id);let a;if(!e.input)return t;switch(i.innerText=e.label,e.input.type){case"checkbox":{const o=document.createElement("input"),l=e.input.onChange;o.type="checkbox",o.checked=n,o.onblur=null,o.onchange=()=>{x.applyOption([e.id,o.checked]),s.style.display=x.getDefaultOption(e.id)===x.getOption(e.id)?"none":"block",l?.(this.app,o.checked)},o.classList.add("pref-input","right"),o.onkeydown=c=>{c.key=="Enter"&&o.blur()},a=o;break}case"dropdown":{if(e.input.advanced){const o=e.input.transformers.deserialize,l=e.input.transformers.serialize,c=e.input.onChange,u=Oi.create(e.input.items,l(n));u.onChange(h=>{x.applyOption([e.id,o(h)]),s.style.display=x.getDefaultOption(e.id)===x.getOption(e.id)?"none":"block",c?.(this.app,o(h))}),u.view.classList.add("pref-input","dropdown-right"),a=u.view}else{const o=e.input.onChange,l=Oi.create(e.input.items,n);l.onChange(c=>{x.applyOption([e.id,c]),s.style.display=x.getDefaultOption(e.id)===x.getOption(e.id)?"none":"block",o?.(this.app,c)}),l.view.classList.add("pref-input","dropdown-right"),a=l.view}break}case"number":{const o=e.input.transformers?.deserialize??(h=>h),l=e.input.transformers?.serialize??(h=>h),c=e.input.onChange,u=ft.create(l(n),e.input.step,e.input.precision,e.input.min,e.input.max);u.onChange=h=>{if(!h){u.setValue(l(h));return}x.applyOption([e.id,o(h)]),s.style.display=x.getDefaultOption(e.id)===x.getOption(e.id)?"none":"block",c?.(this.app,o(h))},a=u.view;break}case"slider":{const o=e.input.transformers?.deserialize??(m=>m),l=e.input.transformers?.serialize??(m=>m),c=e.input.onChange,u=document.createElement("div");u.style.display="flex",u.style.alignItems="center";const h=document.createElement("input");h.type="range",h.min=e.input.min?.toString()??"",h.max=e.input.max?.toString()??"",h.step=e.input.step?.toString()??"1",h.value=l(n).toString();const d=document.createElement("input");d.type="text",d.value=(Math.round(l(n)*1e3)/1e3).toString();const f=e.input.min??e.input.hardMin??-Number.MAX_VALUE,p=e.input.max??e.input.hardMax??Number.MAX_VALUE;d.onblur=()=>{let m=Na(d.value);if(m===null){d.value=(Math.round(l(n)*1e3)/1e3).toString();return}m=Oe(m,f,p),d.value=ae(m,3).toString(),d.blur(),d.value==""?d.value=l(m).toString():x.applyOption([e.id,o(m)]),h.value=m.toString(),s.style.display=x.getDefaultOption(e.id)===x.getOption(e.id)?"none":"block",c?.(this.app,o(m))},h.oninput=()=>{const m=parseFloat(h.value);d.value=ae(m,3).toString(),x.applyOption([e.id,o(m)]),s.style.display=x.getDefaultOption(e.id)===x.getOption(e.id)?"none":"block"},d.style.width="50px",d.onkeydown=m=>{m.key=="Enter"&&d.blur()},u.appendChild(h),u.appendChild(d),a=u;break}case"text":{const o=e.input.onChange,l=document.createElement("input");l.type="text",l.value=n.toString(),l.onblur=()=>{x.applyOption([e.id,l.value]),s.style.display=x.getDefaultOption(e.id)===x.getOption(e.id)?"none":"block",o?.(this.app,l.value)},l.onkeydown=c=>{c.key=="Enter"&&l.blur()},a=l;break}case"color":{const o=e.input.onChange,l=gh.create({value:n});l.onColorChange=c=>{x.applyOption([e.id,c.toHexa()]),s.style.display=x.getDefaultOption(e.id)===x.getOption(e.id)?"none":"block",o?.(this.app,c)},a=l}}a.classList.add("pref-item-input"),t.appendChild(a)}else{const n=document.createElement("div");n.classList.add("pref-children"),t.appendChild(n),n.replaceChildren(...this.createOptions(e.children))}return e.type=="item"&&e.tooltip!==void 0&&Ze(t,{content:e.tooltip}),t}filterOptions(e,t=$m){const i=[];return t.forEach(s=>{if(s.label&&s.label.toLowerCase().includes(e.toLowerCase())){i.push(s);return}if(s.type=="group"||s.type=="subgroup"){const n=this.filterOptions(e,s.children);n.length!=0&&i.push({...s,children:n})}}),i}createEmptyGroup(e){const t=document.createElement("div");return t.classList.add("pref-section"),t.dataset.id=e.id,t.innerText=e.label,t.onclick=()=>{t.parentElement.parentElement.querySelector(`.pref-group[data-id=${e.id}]`).scrollIntoView()},t}onClose(){this.observer?.disconnect()}}var ya=(r=>(r.SHIFT="Shift",r.CTRL="Ctrl",r.ALT="Alt",r.META="Command",r))(ya||{});const Ii=navigator.userAgent.indexOf("Mac OS X")>-1,bt=Ii?"Command":"Ctrl",Ek={Shift:Ii?"⇧":"Shift",Ctrl:Ii?"⌃":"Ctrl",Alt:Ii?"⌥":"Alt",Command:"⌘"},jm={ArrowLeft:"Left",ArrowUp:"Up",ArrowRight:"Right",ArrowDown:"Down",BracketLeft:"[",BracketRight:"]",Semicolon:";",Quote:"'",Backslash:"\\",Slash:"/",Period:".",Comma:",",Backquote:"`",Minus:"-",Equal:"+"},vy={Home:Ii?"fn Left":"Home",End:Ii?"fn Right":"End",PageUp:Ii?"fn Up":"End",PageDown:Ii?"fn Down":"End"},Wl=["ctrlKey","altKey","shiftKey","metaKey"],dl=["Ctrl","Alt","Shift","Command"],ct={playback:{label:"Play/Pause",combos:[{key:"Space",mods:[]}],disabled:r=>!r.chartManager.chartView||r.chartManager.getMode()==K.Play||r.chartManager.getMode()==K.Record,callback:r=>r.chartManager.playPause()},decreaseSnap:{label:"Decrease snap",combos:[{key:"Left",mods:[]}],disabled:r=>!r.chartManager.chartView||r.chartManager.getMode()==K.Play||r.chartManager.getMode()==K.Record,callback:r=>r.chartManager.previousSnap()},increaseSnap:{label:"Increase snap",combos:[{key:"Right",mods:[]}],disabled:r=>!r.chartManager.chartView||r.chartManager.getMode()==K.Play||r.chartManager.getMode()==K.Record,callback:r=>r.chartManager.nextSnap()},cursorUp:{label:"Move cursor up",combos:[{key:"Up",mods:[]}],disabled:r=>!r.chartManager.chartView||r.chartManager.getMode()==K.Play||r.chartManager.getMode()==K.Record,callback:r=>{r.chartManager.snapToPreviousTick()}},cursorDown:{label:"Move cursor down",combos:[{key:"Down",mods:[]}],disabled:r=>!r.chartManager.chartView||r.chartManager.getMode()==K.Play||r.chartManager.getMode()==K.Record,callback:r=>{r.chartManager.snapToNextTick()}},increaseScrollSpeed:{label:"Increase scroll speed",combos:[{key:"Up",mods:[bt]}],disabled:r=>!r.chartManager.chartView,callback:()=>x.chart.speed=Math.max(10,x.chart.speed*Math.pow(1.01,30))},decreaseScrollSpeed:{label:"Decrease scroll speed",combos:[{key:"Down",mods:[bt]}],disabled:r=>!r.chartManager.chartView,callback:()=>x.chart.speed=Math.max(10,x.chart.speed*Math.pow(1.01,-30))},zoomIn:{label:"Zoom in",combos:[{key:"+",mods:[bt]}],disabled:r=>!r.chartManager.chartView,callback:()=>{x.chart.zoom+=.1,Ee.create("Zoom: "+Math.round(x.chart.zoom*100)+"%")}},zoomOut:{label:"Zoom out",combos:[{key:"-",mods:[bt]}],disabled:r=>!r.chartManager.chartView,callback:()=>{x.chart.zoom=Math.max(.1,x.chart.zoom-.1),Ee.create("Zoom: "+Math.round(x.chart.zoom*100)+"%")}},zoomDefault:{label:"Reset zoom",combos:[{key:"0",mods:[bt]}],disabled:r=>!r.chartManager.chartView,callback:()=>{x.chart.zoom=1,Ee.create("Zoom: "+Math.round(x.chart.zoom*100)+"%")}},newSong:{label:"New song...",bindLabel:"New song",combos:[{key:"N",mods:[bt]}],disabled:r=>!r.chartManager.loadedSM||!De.openWindows,callback:r=>{r.windowManager.openWindow(new my(r))}},openSong:{label:"Open song...",bindLabel:"Open song",combos:[{key:"O",mods:[bt]}],disabled:r=>!r.chartManager.loadedSM||!De.openWindows,callback:r=>{if(window.nw){const e=document.createElement("input");e.type="file",e.accept=".sm,.ssc",e.onchange=()=>r.chartManager.loadSM(e.value),e.click()}else r.windowManager.openWindow(new gy(r,!1))}},songProperties:{label:"Song properties...",bindLabel:"Open song properties",combos:[{key:"O",mods:["Shift"]}],disabled:r=>!r.chartManager.loadedSM||!De.openWindows,callback:r=>r.windowManager.openWindow(new fk(r))},save:{label:"Save...",bindLabel:"Save",combos:[{key:"S",mods:[bt]}],disabled:r=>!r.chartManager.loadedSM||r.chartManager.smPath.startsWith("https://")||r.chartManager.smPath.startsWith("http://"),callback:r=>r.chartManager.save()},export:{label:"Save and export current song",combos:[{key:"E",mods:[bt]}],disabled:r=>!!window.nw||!r.chartManager.loadedSM||r.chartManager.smPath.startsWith("https://")||r.chartManager.smPath.startsWith("http://"),callback:r=>{r.chartManager.save(),Le.getStandardHandler().saveDirectory(r.chartManager.smPath)}},exportNotedata:{label:"Export to notedata...",bindLabel:"Export to notedata",combos:[{key:"E",mods:[bt,"Shift"]}],disabled:r=>!r.chartManager.loadedSM||!De.openWindows,callback:r=>r.windowManager.openWindow(new ik(r,r.chartManager.selection.notes))},openChart:{label:"Chart list",bindLabel:"Open chart list",combos:[{key:"O",mods:[bt,"Shift"]}],disabled:r=>!r.chartManager.loadedSM||!De.openWindows,callback:r=>r.windowManager.openWindow(new ny(r))},timingDataRow:{label:"Edit timing data at row",combos:[{key:"T",mods:["Shift"]}],disabled:r=>!r.chartManager.chartView||!De.openWindows,callback:r=>r.windowManager.openWindow(new xk(r))},selectRegion:{label:"Select region",combos:[{key:"Tab",mods:[]}],disabled:r=>!r.chartManager.loadedChart&&r.chartManager.getMode()!=K.Edit,callback:r=>r.chartManager.selectRegion()},volumeUp:{label:"Increase master volume",combos:[{key:"Up",mods:["Alt"]}],disabled:!1,callback:()=>{x.audio.masterVolume=Math.min(x.audio.masterVolume+.05,1),Ee.create("Master volume: "+Math.round(x.audio.masterVolume*100)+"%")}},volumeDown:{label:"Decrease master volume",combos:[{key:"Down",mods:["Alt"]}],disabled:!1,callback:()=>{x.audio.masterVolume=Math.max(x.audio.masterVolume-.05,0),Ee.create("Master volume: "+Math.round(x.audio.masterVolume*100)+"%")}},songVolumeUp:{label:"Increase song volume",combos:[{key:"Up",mods:["Shift","Alt"]}],disabled:!1,callback:()=>{x.audio.songVolume=Math.min(x.audio.songVolume+.05,1),Ee.create("Song volume: "+Math.round(x.audio.songVolume*100)+"%")}},songVolumeDown:{label:"Decrease song volume",combos:[{key:"Down",mods:["Shift","Alt"]}],disabled:!1,callback:()=>{x.audio.songVolume=Math.max(x.audio.songVolume-.05,0),Ee.create("Song volume: "+Math.round(x.audio.songVolume*100)+"%")}},effectvolumeUp:{label:"Increase tick/metronome volume",combos:[{key:"Up",mods:["Shift",bt,"Alt"]}],disabled:!1,callback:()=>{x.audio.soundEffectVolume=Math.min(x.audio.soundEffectVolume+.05,1),Ee.create("Effect volume: "+Math.round(x.audio.soundEffectVolume*100)+"%")}},effectvolumeDown:{label:"Decrease tick/metronome volume",combos:[{key:"Down",mods:["Shift",bt,"Alt"]}],disabled:!1,callback:()=>{x.audio.soundEffectVolume=Math.max(x.audio.soundEffectVolume-.05,0),Ee.create("Effect Volume: "+Math.round(x.audio.soundEffectVolume*100)+"%")}},rateUp:{label:"Increase playback rate",combos:[{key:"Right",mods:["Shift"]}],disabled:r=>r.chartManager.getMode()==K.Play||r.chartManager.getMode()==K.Record,callback:()=>{x.audio.rate+=.05,Ee.create("Playback Rate: "+Math.round(x.audio.rate*100)+"%")}},rateDown:{label:"Decrease playback rate",combos:[{key:"Left",mods:["Shift"]}],disabled:r=>r.chartManager.getMode()==K.Play||r.chartManager.getMode()==K.Record,callback:()=>{x.audio.rate=Math.max(x.audio.rate-.05,.1),Ee.create("Playback Rate: "+Math.round(x.audio.rate*100)+"%")}},rateDefault:{label:"Reset playback rate",combos:[],disabled:!1,callback:()=>{x.audio.rate=1,Ee.create("Playback Rate: "+Math.round(x.audio.rate)+"%")}},previousMeasure:{label:"Previous measure",combos:[{key:"PageUp",mods:[]},{key:";",mods:[]}],disabled:r=>!r.chartManager.chartView||r.chartManager.getMode()==K.Play||r.chartManager.getMode()==K.Record,callback:r=>{const e=r.chartManager.beat,t=r.chartManager.loadedChart.timingData.getMeasureLength(e-.001);r.chartManager.snapToNearestTick(Math.max(0,e-t))}},nextMeasure:{label:"Next measure",combos:[{key:"PageDown",mods:[]},{key:"'",mods:[]}],disabled:r=>!r.chartManager.chartView||r.chartManager.getMode()==K.Play||r.chartManager.getMode()==K.Record,callback:r=>{const e=r.chartManager.beat,t=r.chartManager.loadedChart.timingData.getMeasureLength(e);r.chartManager.snapToNearestTick(Math.max(0,e+t))}},previousNote:{label:"Previous note",combos:[{key:",",mods:[]}],disabled:r=>!r.chartManager.chartView||r.chartManager.getMode()==K.Play||r.chartManager.getMode()==K.Record,callback:r=>r.chartManager.previousNote()},nextNote:{label:"Next note",combos:[{key:".",mods:[]}],disabled:r=>!r.chartManager.chartView||r.chartManager.getMode()==K.Play||r.chartManager.getMode()==K.Record,callback:r=>r.chartManager.nextNote()},jumpChartStart:{label:"Jump to first note",combos:[],disabled:r=>!r.chartManager.chartView||r.chartManager.getMode()==K.Play||r.chartManager.getMode()==K.Record,callback:r=>r.chartManager.firstNote()},jumpChartEnd:{label:"Jump to last note",combos:[],disabled:r=>!r.chartManager.chartView||r.chartManager.getMode()==K.Play||r.chartManager.getMode()==K.Record,callback:r=>r.chartManager.lastNote()},jumpSongStart:{label:"Jump to song start",combos:[{key:"Home",mods:[]}],disabled:r=>!r.chartManager.chartView||r.chartManager.getMode()==K.Play||r.chartManager.getMode()==K.Record,callback:r=>r.chartManager.beat=Math.max(0,r.chartManager.loadedChart.getBeatFromSeconds(0))},jumpSongEnd:{label:"Jump to song end",combos:[{key:"End",mods:[]}],disabled:r=>!r.chartManager.chartView||r.chartManager.getMode()==K.Play||r.chartManager.getMode()==K.Record,callback:r=>r.chartManager.beat=r.chartManager.loadedChart.getBeatFromSeconds(r.chartManager.chartAudio.getSongLength())},assistTick:{label:"Assist tick",combos:[{key:"F7",mods:[]}],disabled:()=>!De.assist,callback:()=>{x.audio.assistTick=!x.audio.assistTick,Ee.create("Assist Tick: "+(x.audio.assistTick?"on":"off"))}},metronome:{label:"Metronome",combos:[{key:"F7",mods:["Alt"]}],disabled:()=>!De.assist,callback:()=>{x.audio.metronome=!x.audio.metronome,Ee.create("Metronome: "+(x.audio.metronome?"on":"off"))}},XMod:{label:"XMod (Beat-based)",combos:[{key:"X",mods:["Shift"]}],disabled:!1,callback:()=>{x.chart.CMod=!1,Ee.create("Switched to XMod")}},CMod:{label:"CMod (Time-based)",combos:[{key:"C",mods:["Shift"]}],disabled:!1,callback:()=>{x.chart.CMod=!0,Ee.create("Switched to CMod")}},reverse:{label:"Reverse playfield",combos:[],disabled:!1,callback:()=>{x.chart.reverse=!x.chart.reverse,Ee.create("Reverse Playfield: "+(x.chart.reverse?"on":"off"))}},hideWarpedArrows:{label:"Hide warped notes (CMod only)",combos:[{key:"W",mods:["Shift"]}],disabled:!1,callback:()=>{x.chart.hideWarpedArrows=!x.chart.hideWarpedArrows,Ee.create("Hide Warped Arrows: "+(x.chart.hideWarpedArrows?"on":"off"))}},hideFakedArrows:{label:"Hide faked notes (CMod only)",combos:[{key:"F",mods:["Shift"]}],disabled:!1,callback:()=>{x.chart.hideFakedArrows=!x.chart.hideFakedArrows,Ee.create("Hide Faked Arrows: "+(x.chart.hideFakedArrows?"on":"off"))}},doSpeedChanges:{label:"Do speed changes (XMod only)",combos:[{key:"S",mods:["Shift"]}],disabled:!1,callback:()=>{x.chart.doSpeedChanges=!x.chart.doSpeedChanges,Ee.create("Speed Changes: "+(x.chart.doSpeedChanges?"on":"off"))}},showEq:{label:"Equalizer",combos:[{key:"E",mods:["Shift"]}],disabled:r=>!r.chartManager.chartAudio||!De.openWindows,callback:r=>r.windowManager.openWindow(new ek(r))},detectSync:{label:"Detect audio sync",combos:[{key:"L",mods:["Shift"]}],disabled:r=>!r.chartManager.chartAudio||!De.openWindows,callback:r=>r.windowManager.openWindow(new by(r))},previousNoteType:{label:"Previous note type",combos:[{key:"N",mods:[]}],disabled:r=>!r.chartManager.chartView||r.chartManager.getMode()==K.Play||r.chartManager.getMode()==K.Record,callback:r=>r.chartManager.previousNoteType()},nextNoteType:{label:"Next note type",combos:[{key:"M",mods:[]}],disabled:r=>!r.chartManager.chartView||r.chartManager.getMode()==K.Play||r.chartManager.getMode()==K.Record,callback:r=>r.chartManager.nextNoteType()},undo:{label:"Undo",combos:[{key:"Z",mods:[bt]}],disabled:r=>!r.actionHistory.canUndo()||r.chartManager.getMode()!=K.Edit,callback:r=>r.actionHistory.undo()},redo:{label:"Redo",combos:[{key:"Y",mods:[bt]},{key:"Z",mods:[bt,"Shift"]}],disabled:r=>!r.actionHistory.canRedo()||r.chartManager.getMode()!=K.Edit,callback:r=>r.actionHistory.redo()},mousePlacement:{label:"Enable Mouse Note Placement",combos:[{key:"M",mods:["Shift"]}],disabled:!1,callback:()=>{x.chart.mousePlacement=!x.chart.mousePlacement,Ee.create("Mouse Note Placement: "+(x.chart.mousePlacement?"on":"off"))}},playMode:{label:"Enter/Exit Play Mode",combos:[{key:"P",mods:[]}],disabled:r=>!r.chartManager.chartView||r.chartManager.getMode()==K.Record||!De.playMode,callback:r=>r.chartManager.setMode(K.Play)},recordMode:{label:"Enter/Exit Record Mode",combos:[{key:"R",mods:[]}],disabled:r=>!r.chartManager.chartView||r.chartManager.getMode()==K.Play||r.chartManager.getMode()==K.View||!De.recordMode,callback:r=>r.chartManager.setMode(K.Record)},playModeStart:{label:"Play from start",combos:[{key:"P",mods:["Shift"]}],disabled:r=>!r.chartManager.chartView||r.chartManager.getMode()==K.Record||!De.playMode,callback:r=>{r.chartManager.beat=0,r.chartManager.setMode(K.Play)}},recordModeStart:{label:"Record from start",combos:[{key:"R",mods:["Shift"]}],disabled:r=>!r.chartManager.chartView||r.chartManager.getMode()==K.Play||r.chartManager.getMode()==K.View||!De.recordMode,callback:r=>r.chartManager.setMode(K.Record)},options:{label:"Options...",bindLabel:"Edit options",combos:[{key:",",mods:[bt]}],disabled:()=>!De.openWindows||!De.openWindows,callback:r=>{r.windowManager.openWindow(new _k(r))}},keybinds:{label:"Keybinds...",bindLabel:"Edit keybinds",combos:[],disabled:()=>!De.openWindows||!De.openWindows,callback:r=>{r.windowManager.openWindow(new qi(r))}},gameplayKeybinds:{label:"Gameplay keybinds...",bindLabel:"Edit gameplay keybinds",combos:[],disabled:()=>!De.openWindows||!De.openWindows,callback:r=>{r.windowManager.openWindow(new rk(r))}},themes:{label:"Themes...",bindLabel:"Edit themes",combos:[],disabled:()=>!De.openWindows||!De.openWindows||ja.isOpen,callback:r=>{r.windowManager.openWindow(new $u(r))}},convertHoldsRolls:{label:"Holds to rolls",bindLabel:"Convert holds to rolls",combos:[],disabled:r=>r.chartManager.selection.notes.length==0||r.chartManager.getMode()!=K.Edit,callback:r=>{r.chartManager.modifySelection(e=>(e.type=="Hold"&&(e.type="Roll"),e))}},convertRollsHolds:{label:"Rolls to holds",bindLabel:"Convert rolls to holds",combos:[],disabled:r=>r.chartManager.selection.notes.length==0||r.chartManager.getMode()!=K.Edit,callback:r=>{r.chartManager.modifySelection(e=>(e.type=="Roll"&&(e.type="Hold"),e))}},swapHoldsRolls:{label:"Swap holds and rolls",combos:[],disabled:r=>r.chartManager.selection.notes.length==0||r.chartManager.getMode()!=K.Edit,callback:r=>{r.chartManager.modifySelection(e=>(e.type=="Hold"?e.type="Roll":e.type=="Roll"&&(e.type="Hold"),e))}},convertHoldsTaps:{label:"Holds/rolls to taps",bindLabel:"Convert holds/rolls to taps",combos:[],disabled:r=>r.chartManager.selection.notes.length==0||r.chartManager.getMode()!=K.Edit,callback:r=>{r.chartManager.modifySelection(e=>((e.type=="Hold"||e.type=="Roll")&&(e.type="Tap"),e))}},convertTapsMines:{label:"Taps to mines",bindLabel:"Convert taps to mines",combos:[],disabled:r=>r.chartManager.selection.notes.length==0||r.chartManager.getMode()!=K.Edit,callback:r=>{r.chartManager.modifySelection(e=>(e.type=="Tap"&&(e.type="Mine"),e))}},convertTapsLifts:{label:"Taps to lifts",bindLabel:"Convert taps to lifts",combos:[],disabled:r=>r.chartManager.selection.notes.length==0||r.chartManager.getMode()!=K.Edit,callback:r=>{r.chartManager.modifySelection(e=>(e.type=="Tap"&&(e.type="Lift"),e))}},convertTapsFakes:{label:"Taps to fakes",bindLabel:"Convert taps to fakes",combos:[],disabled:r=>r.chartManager.selection.notes.length==0||r.chartManager.getMode()!=K.Edit,callback:r=>{r.chartManager.modifySelection(e=>(e.type=="Tap"&&(e.type="Fake"),e))}},mirrorHorizontally:{label:"Horizontally",bindLabel:"Mirror horizontally",combos:[],disabled:r=>r.chartManager.selection.notes.length==0||r.chartManager.getMode()!=K.Edit,callback:r=>{r.chartManager.modifySelection(e=>(e.col=r.chartManager.loadedChart.gameType.flipColumns.horizontal[e.col],e))}},mirrorVertically:{label:"Vertically",bindLabel:"Mirror vertically",combos:[],disabled:r=>r.chartManager.selection.notes.length==0||r.chartManager.getMode()!=K.Edit,callback:r=>{r.chartManager.modifySelection(e=>(e.col=r.chartManager.loadedChart.gameType.flipColumns.vertical[e.col],e))}},mirrorBoth:{label:"Both",bindLabel:"Mirror both",combos:[],disabled:r=>r.chartManager.selection.notes.length==0||r.chartManager.getMode()!=K.Edit,callback:r=>{r.chartManager.modifySelection(e=>(e.col=r.chartManager.loadedChart.gameType.flipColumns.horizontal[e.col],e.col=r.chartManager.loadedChart.gameType.flipColumns.vertical[e.col],e))}},selectBeforeCursor:{label:"Select before cursor",combos:[{key:"Home",mods:["Shift"]}],disabled:r=>!r.chartManager.loadedChart,callback:r=>{r.chartManager.editTimingMode==Ie.Off?r.chartManager.setNoteSelection(r.chartManager.loadedChart.getNotedata().filter(e=>e.beate.beat!r.chartManager.loadedChart,callback:r=>{r.chartManager.editTimingMode==Ie.Off?r.chartManager.setNoteSelection(r.chartManager.loadedChart.getNotedata().filter(e=>e.beat>r.chartManager.beat)):r.chartManager.setEventSelection(r.chartManager.loadedChart.timingData.getTimingData().filter(e=>e.beat>r.chartManager.beat))}},selectAll:{label:"Select all",combos:[{key:"A",mods:[bt]}],disabled:r=>!r.chartManager.loadedChart,callback:r=>{r.chartManager.editTimingMode==Ie.Off?r.chartManager.setNoteSelection(r.chartManager.loadedChart.getNotedata()):r.chartManager.setEventSelection(r.chartManager.loadedChart.timingData.getTimingData())}},expand2to1:{label:"Expand 2:1 (8th to 4th)",combos:[],disabled:r=>r.chartManager.selection.notes.length<2||r.chartManager.getMode()!=K.Edit,callback:r=>{const e=Math.min(...r.chartManager.selection.notes.map(t=>t.beat));r.chartManager.modifySelection(t=>(t.beat=(t.beat-e)*2+e,t.beat=Math.round(t.beat*48)/48,Be(t)&&(t.hold*=2,t.hold=Math.round(t.hold*48)/48),t))}},expand3to2:{label:"Expand 3:2 (12th to 8th)",combos:[],disabled:r=>r.chartManager.selection.notes.length<2||r.chartManager.getMode()!=K.Edit,callback:r=>{const e=Math.min(...r.chartManager.selection.notes.map(t=>t.beat));r.chartManager.modifySelection(t=>(t.beat=(t.beat-e)*1.5+e,t.beat=Math.round(t.beat*48)/48,Be(t)&&(t.hold*=1.5,t.hold=Math.round(t.hold*48)/48),t))}},expand4to3:{label:"Expand 4:3 (16th to 2th)",combos:[],disabled:r=>r.chartManager.selection.notes.length<2||r.chartManager.getMode()!=K.Edit,callback:r=>{const e=Math.min(...r.chartManager.selection.notes.map(t=>t.beat));r.chartManager.modifySelection(t=>(t.beat=(t.beat-e)*4/3+e,t.beat=Math.round(t.beat*48)/48,Be(t)&&(t.hold*=4/3,t.hold=Math.round(t.hold*48)/48),t))}},compress1to2:{label:"Compress 1:2 (4th to 8th)",combos:[],disabled:r=>r.chartManager.selection.notes.length<2||r.chartManager.getMode()!=K.Edit,callback:r=>{const e=Math.min(...r.chartManager.selection.notes.map(t=>t.beat));r.chartManager.modifySelection(t=>(t.beat=(t.beat-e)/2+e,t.beat=Math.round(t.beat*48)/48,Be(t)&&(t.hold/=2,t.hold=Math.round(t.hold*48)/48),t))}},compress2to3:{label:"Compress 2:3 (8th to 12th)",combos:[],disabled:r=>r.chartManager.selection.notes.length<2||r.chartManager.getMode()!=K.Edit,callback:r=>{const e=Math.min(...r.chartManager.selection.notes.map(t=>t.beat));r.chartManager.modifySelection(t=>(t.beat=(t.beat-e)/1.5+e,t.beat=Math.round(t.beat*48)/48,Be(t)&&(t.hold/=1.5,t.hold=Math.round(t.hold*48)/48),t))}},compress3to4:{label:"Compress 3:4 (12th to 16th)",combos:[],disabled:r=>r.chartManager.selection.notes.length<2||r.chartManager.getMode()!=K.Edit,callback:r=>{const e=Math.min(...r.chartManager.selection.notes.map(t=>t.beat));r.chartManager.modifySelection(t=>(t.beat=(t.beat-e)*.75+e,t.beat=Math.round(t.beat*48)/48,Be(t)&&(t.hold*=.75,t.hold=Math.round(t.hold*48)/48),t))}},delete:{label:"Delete",combos:[{key:"Backspace",mods:[]},{key:"Delete",mods:[]}],disabled:r=>r.chartManager.getMode()!=K.Edit||r.chartManager.selection.notes.length==0&&r.chartManager.eventSelection.timingEvents.length==0,callback:r=>{r.chartManager.deleteSelection(),r.chartManager.deleteEventSelection()}},paste:{label:"Paste",combos:[{mods:[bt],key:"V"}],preventDefault:!1,disabled:r=>!r.chartManager.chartView||r.chartManager.getMode()!=K.Edit,callback:async r=>{const e=await navigator.clipboard.readText();r.chartManager.paste(e)}},pasteReplace:{label:"Clear and paste",combos:[{mods:[bt,"Shift"],key:"V"}],preventDefault:!1,disabled:r=>!r.chartManager.chartView||r.chartManager.getMode()!=K.Edit,callback:async r=>{const e=await navigator.clipboard.readText();r.chartManager.paste(e,!0)}},copy:{label:"Copy",combos:[{mods:[bt],key:"C"}],preventDefault:!1,disabled:r=>!r.chartManager.chartView||r.chartManager.getMode()!=K.Edit||!r.chartManager.hasSelection(),callback:async r=>{const e=r.chartManager.copy();e&&await navigator.clipboard.writeText(e)}},cut:{label:"Cut",combos:[{mods:[bt],key:"X"}],preventDefault:!1,disabled:r=>!r.chartManager.chartView||r.chartManager.getMode()!=K.Edit||!r.chartManager.hasSelection(),callback:async r=>{const e=r.chartManager.copy();e&&await navigator.clipboard.writeText(e),r.chartManager.deleteSelection()}},adjustOffset:{label:"Adjust offset",combos:[],disabled:()=>!De.openWindows,callback:r=>r.windowManager.openWindow(new dk(r))},setSongPreview:{label:"Set as song preview",combos:[],disabled:r=>!r.chartManager.chartView||r.chartManager.getMode()!=K.Edit||!r.chartManager.hasRange(),callback:r=>{const e=r.chartManager.loadedChart,t=r.chartManager.loadedSM.properties.SAMPLESTART??"0",i=r.chartManager.loadedSM.properties.SAMPLELENGTH??"10";let s="",n="";if(r.chartManager.startRegion!==void 0&&r.chartManager.endRegion!==void 0){const a=e.getSecondsFromBeat(r.chartManager.startRegion),o=e.getSecondsFromBeat(r.chartManager.endRegion);s=ae(a,3).toString(),n=ae(o-a,3).toString()}else{const o=(r.chartManager.selection.notes.length>0?r.chartManager.selection.notes:r.chartManager.eventSelection.timingEvents).map(u=>u.beat),l=e.getSecondsFromBeat(Math.min(...o)),c=e.getSecondsFromBeat(Math.max(...o));s=ae(l,3).toString(),n=ae(c-l,3).toString()}Ye.instance.run({action:a=>{a.chartManager.loadedSM.properties.SAMPLESTART=s,a.chartManager.loadedSM.properties.SAMPLELENGTH=n},undo:()=>{r.chartManager.loadedSM.properties.SAMPLESTART=t,r.chartManager.loadedSM.properties.SAMPLELENGTH=i}})}},showDebugTimers:{label:"Toggle Debug Timers",combos:[{key:"F3",mods:["Shift"]}],disabled:!1,callback:()=>{x.debug.showTimers=!x.debug.showTimers}},showFPSCounter:{label:"Toggle FPS Counter",combos:[{key:"F3",mods:[]}],disabled:!1,callback:()=>{x.debug.showFPS=!x.debug.showFPS}},noteTypeTap:{label:"Switch to Taps",combos:[],disabled:r=>!r.chartManager.chartView,callback:r=>{r.chartManager.setEditingNoteType("Tap")}},noteTypeLift:{label:"Switch to Lifts",combos:[],disabled:r=>!r.chartManager.chartView,callback:r=>{r.chartManager.setEditingNoteType("Lift")}},noteTypeMine:{label:"Switch to Mines",combos:[],disabled:r=>!r.chartManager.chartView,callback:r=>{r.chartManager.setEditingNoteType("Mine")}},noteTypeFake:{label:"Switch to Fakes",combos:[],disabled:r=>!r.chartManager.chartView,callback:r=>{r.chartManager.setEditingNoteType("Fake")}},openGuide:{label:"Open Help Guide",combos:[],disabled:!1,callback:()=>{window.open("/smeditor/guide/")}},openChangelog:{label:"Open Changelog",combos:[],disabled:!1,callback:r=>{r.windowManager.openWindow(new v3(r))}},noteskinWindow:{label:"Noteskins...",bindLabel:"Open Noteskin Window",combos:[{mods:["Shift"],key:"N"}],disabled:r=>!r.chartManager.chartView,callback:r=>r.windowManager.openWindow(new uk(r))},previousChart:{label:"Previous chart",combos:[{key:"F5",mods:[]}],disabled:r=>!r.chartManager.chartView,callback:r=>{if(!r.chartManager.loadedSM?.charts||!r.chartManager.loadedChart)return;const e=r.chartManager.loadedSM?.charts[r.chartManager.loadedChart.gameType.id],t=e.indexOf(r.chartManager.loadedChart);e[t-1]&&r.chartManager.loadChart(e[t-1])}},nextChart:{label:"Next chart",combos:[{key:"F6",mods:[]}],disabled:r=>!r.chartManager.chartView,callback:r=>{if(!r.chartManager.loadedSM?.charts||!r.chartManager.loadedChart)return;const e=r.chartManager.loadedSM?.charts[r.chartManager.loadedChart.gameType.id],t=e.indexOf(r.chartManager.loadedChart);e[t+1]&&r.chartManager.loadChart(e[t+1])}},toggleEditTiming:{label:"Toggle Edit Timing",combos:[{key:"T",mods:[]}],disabled:r=>!r.chartManager.chartView,callback:r=>{r.chartManager.editTimingMode!=Ie.Off?r.chartManager.editTimingMode=Ie.Off:r.chartManager.editTimingMode=Ie.Edit}},toggleAddTiming:{label:"Toggle Add Timing",combos:[{key:"T",mods:["Alt"]}],disabled:r=>!r.chartManager.chartView,callback:r=>{r.chartManager.editTimingMode!=Ie.Add?r.chartManager.editTimingMode=Ie.Add:r.chartManager.editTimingMode=Ie.Edit}}};for(const r of[4,2,1])ct[`shiftUp${r}m`]={label:`${r} measure`+(r==1,""),bindLabel:`Shift up by ${r} measure`+(r==1,""),combos:[],disabled:e=>!e.chartManager.chartView,callback:e=>{const t=e.chartManager.selection.notes[0].beat,i=e.chartManager.loadedChart.timingData.getMeasureLength(t);e.chartManager.modifySelection(s=>(s.beat-=i*r,s),!0)}},ct[`shiftDown${r}m`]={label:`${r} measure`+(r==1,""),bindLabel:`Shift down by ${r} measure`+(r==1,""),combos:[],disabled:e=>!e.chartManager.chartView,callback:e=>{const t=e.chartManager.selection.notes[0].beat,i=e.chartManager.loadedChart.timingData.getMeasureLength(t);e.chartManager.modifySelection(s=>(s.beat+=i*r,s),!0)}};for(let r=0;r<_r.length;r++)ct["quant"+rm[r]]={label:`Switch to ${Gi[r]}s`,combos:[],disabled:e=>!e.chartManager.chartView,callback:()=>{x.chart.snap=_r[r]}},ct[`shiftUp${Gi[r]}`]={label:`${Gi[r]}`,bindLabel:`Shift up by ${Gi[r]}`,combos:[],disabled:e=>!e.chartManager.chartView,callback:e=>e.chartManager.modifySelection(t=>(t.beat-=_r[r],t),!0)},ct[`shiftDown${Gi[r]}`]={label:`${Gi[r]}`,bindLabel:`Shift down by ${Gi[r]}`,combos:[],disabled:e=>!e.chartManager.chartView,callback:e=>e.chartManager.modifySelection(t=>(t.beat+=_r[r],t),!0)},r!=_r.length-1&&(ct["quantize"+Gi[r]]={label:`${Gi[r]}s`,bindLabel:`Quantize to ${Gi[r]}s`,combos:[],disabled:e=>e.chartManager.selection.notes.length==0||e.chartManager.getMode()!=K.Edit,callback:e=>{e.chartManager.modifySelection(t=>(t.beat=e.chartManager.getClosestTick(t.beat,rm[r]),t.beat=Math.round(t.beat*48)/48,t))}});class $d{static popup;static build(e){const t=document.createElement("div");t.classList.add("update-popup");const i=document.createElement("div");i.classList.add("title"),i.innerText=e.title;const s=document.createElement("div");s.classList.add("desc"),s.innerText=e.desc;const n=document.createElement("div");if(n.classList.add("update-options"),t.replaceChildren(i,s),e.options.length>0){for(const a of e.options){const o=document.createElement("button");o.innerText=a.label,o.onclick=()=>{a.callback?.(this)},o.classList.add(a.type),n.appendChild(o)}t.appendChild(n)}this.popup=t,document.getElementById("popups")?.appendChild(this.popup)}static close(){this.popup&&(this.popup.classList.add("exiting"),this.popup.style.pointerEvents="none",setTimeout(()=>this.popup.remove(),300))}}class Ak extends $d{static open(e,t){super.build({title:`A new version of the desktop app is available! (${e})`,desc:"Click here to download the new version.",options:[{label:"Close",type:"default",callback:()=>this.close()},{label:"Download",type:"confirm",callback:()=>{localStorage.setItem("downloadedVersion",e),nw.require("nw.gui").Shell.openExternal(t),this.close()}}]})}}class Tk extends $d{static open(e){super.build({title:"A new version of the app is available!",desc:"Refresh the page to get the new version.",options:[{label:"Close",type:"default",callback:()=>this.close()},{label:"Refresh",type:"confirm",callback:()=>{e()}}]})}}class Ck extends $d{static open(){super.build({title:"SMEditor was loaded offline!",desc:"You can now use SMEditor without an internet connection.",options:[]}),setTimeout(()=>this.close(),5e3)}}class zt extends Fg{static graphics=new Xn;static textures={default:Gt.create({width:50,height:50}),noBorder:Gt.create({width:50,height:50}),onlyBorder:Gt.create({width:50,height:50})};static init(e){this.textures.default=Gt.create({width:50,height:50,resolution:e.resolution}),this.textures.noBorder=Gt.create({width:50,height:50,resolution:e.resolution}),this.textures.onlyBorder=Gt.create({width:50,height:50,resolution:e.resolution}),this.graphics.beginFill(16777215,1),this.graphics.lineStyle(1,0),this.graphics.drawRoundedRect(0,0,50,50,5),this.graphics.endFill(),e.render(this.graphics,{renderTexture:this.textures.default}),this.graphics.clear(),this.graphics.beginFill(16777215,1),this.graphics.lineStyle(0,16777215),this.graphics.drawRoundedRect(0,0,50,50,5),this.graphics.endFill(),e.render(this.graphics,{renderTexture:this.textures.noBorder}),this.graphics.clear(),this.graphics.beginFill(16777215,0),this.graphics.lineStyle(2,16777215),this.graphics.drawRoundedRect(0,0,50,50,5),this.graphics.endFill(),e.render(this.graphics,{renderTexture:this.textures.onlyBorder})}constructor(e){super(zt.textures[e??"default"],5,5,5,5)}}const va=[];function qm(){return va.length}function jD(){for(va.push(Date.now());va.length>0&&va[0]0&&wa[0]qm()+" FPS"});drawUpdateTimeGraph=new la({width:300,height:Ti,color:6034982,min:0,unit:"ms",label:"DrawUpdate",precision:1});updateTimeGraph=new la({width:300,height:Ti,color:1516101,min:0,unit:"ms",label:"Update",precision:1,sublabel:()=>Ym()+" TPS"});memoryTimeGraph=new la({width:300,height:Ti,color:6626406,min:0,formatter:e=>Math.round(e/1048576)+" MB",label:"Memory"});cpuGraph=new la({width:300,height:Ti,color:5190685,min:0,label:"CPU"});graphs=new ve;fpsCounter=new ve;fpsBg=new zt("noBorder");fpsText=new Fe("",{fontName:"Main",fontSize:12});lastFrameTime=0;properties=new Map;constructor(e){super(e),this.drawUpdateTimeGraph.y+=Ti+5,this.updateTimeGraph.y+=(Ti+5)*2,this.memoryTimeGraph.y+=(Ti+5)*3,this.cpuGraph.y+=(Ti+5)*4,qa.instance=this,this.fpsText.x=5,this.fpsBg.y=-5,et(this.fpsBg,"widget-bg"),et(this.fpsText,"text-color"),this.graphs.addChild(this.frameTimeGraph,this.drawUpdateTimeGraph,this.updateTimeGraph),performance.memory&&this.graphs.addChild(this.memoryTimeGraph),this.fpsCounter.addChild(this.fpsBg,this.fpsText),this.graphs.visible=x.debug.showTimers,this.fpsCounter.visible=x.debug.showFPS,this.addChild(this.graphs,this.fpsCounter)}update(){this.x=-this.manager.app.renderer.screen.width/2+20,this.y=-this.manager.app.renderer.screen.height/2+20,this.graphs.children.forEach(e=>e.update()),this.graphs.visible=x.debug.showTimers,this.fpsCounter.visible=x.debug.showFPS,this.fpsText.text=`${qm()} FPS +`;class ft{view;input;onChange;min=-Number.MAX_VALUE;max=Number.MAX_VALUE;precision;step=1;lastVal="";constructor(e,t,i,s,n,a){this.view=e,this.view.classList.add("spinner"),this.view.onfocus=()=>{o.focus()};const o=document.createElement("input");o.classList.add("spinner-input"),o.type="text",o.autocomplete="off",o.spellcheck=!1,o.onblur=()=>{if(o.value===this.lastVal)return;if(o.value===""){this.onChange?.(void 0);return}const h=Na(o.value);if(h===null){o.value=this.lastVal;return}let d=ae(h,this.precision??3);d=Oe(d,this.min,this.max),o.value=this.formatValue(d),this.onChange?.(d)},o.onkeydown=h=>{h.key=="Enter"&&o.blur(),h.key=="Escape"&&(o.value=this.lastVal,o.blur())},o.onfocus=()=>{this.lastVal=o.value},this.input=o,this.min=n??this.min,this.max=a??this.max,this.step=i,this.precision=s,this.setValue(t),e.appendChild(o);const l=document.createElement("div");l.classList.add("spinner-btns"),e.appendChild(l);const c=document.createElement("button");c.classList.add("spinner-up"),c.appendChild(Ce.getIcon("CHEVRON",10)),c.tabIndex=-1,c.onclick=h=>{let d=i??x.general.spinnerStep;h.getModifierState("Shift")&&(d/=10),!(a!==void 0&&parseFloat(o.value)+d>a)&&(o.value=this.formatValue(parseFloat(o.value)+d),this.onChange?.(parseFloat(o.value)))},l.appendChild(c);const u=document.createElement("button");u.classList.add("spinner-down"),u.appendChild(Ce.getIcon("CHEVRON",10)),u.tabIndex=-1,u.onclick=h=>{let d=i??x.general.spinnerStep;h.getModifierState("Shift")&&(d/=10),!(n!==void 0&&parseFloat(o.value)-dr.chartManager.loadAudio()}},{title:"Background Image",propName:"BACKGROUND",input:{type:"file",typeName:"image",accept:Ts}},{title:"Banner Image",propName:"BANNER",input:{type:"file",typeName:"image",accept:Ts}},{title:"CD Title",propName:"CDTITLE",input:{type:"file",typeName:"image",accept:Ts}},{title:"CD Image",propName:"CDIMAGE",input:{type:"file",typeName:"image",accept:Ts}},{title:"Jacket",propName:"JACKET",input:{type:"file",typeName:"image",accept:Ts}},{title:"Disc Image",propName:"DISCIMAGE",input:{type:"file",typeName:"image",accept:Ts}}]},{title:"Song",items:[{title:"Song Preview",propName:"SAMPLESTART",input:{type:"custom",create:(r,e,t)=>{const i=t??Ye.instance,s=()=>{a.value{(e??f.chartManager.loadedSM).properties.SAMPLESTART=h,(e??f.chartManager.loadedSM).properties.SAMPLELENGTH=d,n.setValue(parseFloat(h)),a.setValue(parseFloat(h)+parseFloat(d))},undo:()=>{(e??r.chartManager.loadedSM).properties.SAMPLESTART=c,(e??r.chartManager.loadedSM).properties.SAMPLELENGTH=u,n.setValue(parseFloat(c)),a.setValue(parseFloat(c)+parseFloat(u))}})},n=ft.create(parseFloat((e??r.chartManager.loadedSM).properties.SAMPLESTART??"0"),void 0,3,0);n.onChange=c=>{if(c===void 0){n.setValue(parseFloat((e??r.chartManager.loadedSM).properties.SAMPLESTART??"0"));return}s()};const a=ft.create(parseFloat((e??r.chartManager.loadedSM).properties.SAMPLESTART??"0")+parseFloat((e??r.chartManager.loadedSM).properties.SAMPLELENGTH??"10"),void 0,3,0);a.onChange=c=>{if(c===void 0){a.setValue(parseFloat((e??r.chartManager.loadedSM).properties.SAMPLESTART??"0")+parseFloat((e??r.chartManager.loadedSM).properties.SAMPLELENGTH??"10"));return}s()};const o=document.createElement("div"),l=document.createElement("div");return l.innerText="to",o.classList.add("flex-row","flex-column-gap"),o.replaceChildren(n.view,l,a.view),o}}}]}];function py(r,e,t,i){const s=i??Ye.instance;switch(e.input.type){case"custom":return e.input.create(r,t,i);case"string":{const n=document.createElement("input");return n.type="text",n.autocomplete="off",n.spellcheck=!1,n.onkeydown=a=>{a.key=="Enter"&&n.blur()},n.onblur=()=>{const a=(t??r.chartManager.loadedSM).properties[e.propName],o=n.value;s.run({action:l=>{(t??l.chartManager.loadedSM).properties[e.propName]=o,n.value=o},undo:()=>{(t??r.chartManager.loadedSM).properties[e.propName]=a,n.value=a??""}})},n.value=(t??r.chartManager.loadedSM).properties[e.propName]??"",n}case"number":{const n=e.input,a=ft.create(parseFloat((t??r.chartManager.loadedSM).properties[e.propName])??15,n.step,n.precision,n.min,n.max);return a.onChange=o=>{if(o===void 0){a.setValue(parseFloat((t??r.chartManager.loadedSM).properties[e.propName]??"0"));return}const l=(t??r.chartManager.loadedSM).properties[e.propName],c=o.toString();s.run({action:u=>{(t??u.chartManager.loadedSM).properties[e.propName]=c,a.setValue(parseFloat(c))},undo:()=>{(t??r.chartManager.loadedSM).properties[e.propName]=l,a.setValue(parseFloat(l??"0"))}})},a.view}case"file":{const n=e.input,a=e.input.onChange,o=document.createElement("div");o.classList.add("flex-row","flex-column-gap");const l=document.createElement("input");l.type="text",l.autocomplete="off",l.spellcheck=!1,l.placeholder="click to select a file",l.onclick=h=>{h.preventDefault(),l.blur();const d=Ht(r.chartManager.smPath);if(window.nw){const f=document.createElement("input");f.type="file",f.accept=n.accept.join(","),f.onchange=()=>{const p=Le.getRelativePath(d,f.value),m=(t??r.chartManager.loadedSM).properties[e.propName]??"";s.run({action:g=>{(t??g.chartManager.loadedSM).properties[e.propName]=p,l.value=p},undo:()=>{(t??r.chartManager.loadedSM).properties[e.propName]=m,l.value=m}}),a?.(r)},f.click()}else r.windowManager.openWindow(new Ud(r,{title:`Select a${n.typeName.match(/^[aieouAIEOU].*/)?"n":""} ${n.typeName} file...`,accepted_file_types:n.accept,disableClose:!0,callback:f=>{const p=Le.getRelativePath(d,f),m=(t??r.chartManager.loadedSM).properties[e.propName]??"";s.run({action:g=>{(t??g.chartManager.loadedSM).properties[e.propName]=p,l.value=p},undo:()=>{(t??r.chartManager.loadedSM).properties[e.propName]=m,l.value=m}}),a?.(r)}},(t??r.chartManager.loadedSM).properties[e.propName]?d+"/"+(t??r.chartManager.loadedSM).properties[e.propName]:r.chartManager.smPath))},l.value=(t??r.chartManager.loadedSM).properties[e.propName]??"",o.appendChild(l);const c=document.createElement("button");c.style.height="100%",c.classList.add("delete"),c.disabled=!(t??r.chartManager.loadedSM).properties[e.propName],c.onclick=()=>{l.value="",c.disabled=!0};const u=Ce.getIcon("TRASH",12);return c.appendChild(u),o.appendChild(c),o}}}class my extends Tt{app;sm;actionHistory;fileTable={};constructor(e){super({title:"New Song",width:450,height:492,disableClose:!0,win_id:"sm_properties",blocking:!0});const t=new Blob([ok],{type:"text/plain"}),i=new File([t],"song.sm",{type:"text/plain"});this.sm=new dy(i),this.app=e,this.actionHistory=new Ye(this.app),this.initView()}initView(){this.viewElement.replaceChildren(),this.viewElement.classList.add("sm-properties");const e=document.createElement("div");e.classList.add("padding");const t=document.createElement("div");t.classList.add("label"),t.innerText="Apply to",fy.forEach(l=>{const c=document.createElement("div");c.classList.add("sm-container");const u=document.createElement("div");u.classList.add("sm-title"),u.innerText=l.title;const h=document.createElement("div");h.classList.add("property-grid"),l.items.forEach(d=>{const f=document.createElement("div");f.classList.add("label"),f.innerText=d.title,h.appendChild(f),d.input.type=="file"?h.appendChild(this.createFileElement(d.propName,d.input.typeName)):h.appendChild(py(this.app,d,this.sm,this.actionHistory))}),c.appendChild(u),c.appendChild(h),e.appendChild(c)});const i=document.createElement("div");i.classList.add("menu-options");const s=document.createElement("div");s.classList.add("menu-left");const n=document.createElement("div");n.classList.add("menu-right"),i.appendChild(s),i.appendChild(n);const a=document.createElement("button");a.innerText="Cancel",a.onclick=()=>{this.closeWindow()};const o=document.createElement("button");o.innerText="Create",o.classList.add("confirm"),o.onclick=()=>{this.sm.properties.MUSIC===void 0||this.sm.properties.MUSIC===""?this.app.windowManager.openWindow(new Wa(this.app,"No audio file uploaded","Are you sure you want to create a file with no audio?",[{type:"confirm",label:"Yes",callback:()=>{this.createSong(),this.closeWindow()}},{type:"default",label:"No"}])):(this.createSong(),this.closeWindow())},s.appendChild(a),n.appendChild(o),e.appendChild(i),this.viewElement.appendChild(e)}async createSong(){let e=this.sm.properties.TITLE;if(window.nw){const t=nw.require("path"),i=document.createElement("input");i.type="file",i.nwsaveas=e+".sm",i.onchange=async()=>{const s=t.basename(i.value,t.extname(i.value));e=t.dirname(i.value);const n=t.join(e,s+".sm");await Le.writeFile(n,this.sm.serialize("sm")),await Promise.all(Object.entries(this.fileTable).map(a=>Le.writeFile(e+`/${a[0]}`,a[1]))),await this.app.chartManager.loadSM(n),this.app.windowManager?.getWindowById("select_sm_initial")?.closeWindow()},i.click()}else{if(await Le.getDirectoryHandle(e)){let t=2;for(;await Le.getDirectoryHandle(e);)e=`${this.sm.properties.TITLE} ${t++}`}await Le.writeFile(e+"/song.sm",this.sm.serialize("sm")),await Promise.all(Object.entries(this.fileTable).map(t=>Le.writeFile(e+`/${t[0]}`,t[1]))),await this.app.chartManager.loadSM(e+"/song.sm"),this.app.windowManager?.getWindowById("select_sm_initial")?.closeWindow()}}createFileElement(e,t){const i=document.createElement("div");i.classList.add("flex-row","flex-column-gap");const s=document.createElement("input");s.type="text",s.autocomplete="off",s.spellcheck=!1,s.placeholder="click to upload a file",s.readOnly=!0,s.onclick=o=>{o.preventDefault(),s.blur();const l=document.createElement("input");l.type="file",l.accept=t=="audio"?"audio/*":"image/*",l.onchange=()=>{const c=l.files?.[0];if(!c)return;this.sm.properties[e]&&this.fileTable[this.sm.properties[e]]&&delete this.fileTable[this.sm.properties[e]];let u=c.name;for(;this.fileTable[c.name]&&(this.fileTable[c.name].size!=c.size||this.fileTable[c.name].type!=c.type);)u="_"+u;this.fileTable[u]=c,s.value=u,this.sm.properties[e]=s.value,n.disabled=!1},l.click()},s.value=this.sm.properties[e]??"",i.appendChild(s);const n=document.createElement("button");n.style.height="100%",n.classList.add("delete"),n.disabled=!0,n.onclick=()=>{this.sm.properties[e]&&this.fileTable[this.sm.properties[e]]&&delete this.fileTable[this.sm.properties[e]],this.sm.properties[e]=void 0,s.value="",n.disabled=!0};const a=Ce.getIcon("TRASH",12);return n.appendChild(a),i.appendChild(n),i}}class gy extends Tt{app;keyHandler;constructor(e,t=!0){super({title:"Open a Song",width:400,height:320,disableClose:t,win_id:"select_sm_initial"}),this.app=e,this.keyHandler=this.handleKeyEvent.bind(this),window.addEventListener("keydown",this.keyHandler),this.initView(),H.on("resize",()=>{this.move(window.innerWidth/2-this.options.width/2,window.innerHeight/2-this.options.height/2)})}onClose(){window.removeEventListener("keydown",this.keyHandler)}initView(){this.viewElement.replaceChildren();const e=document.createElement("div");e.classList.add("padding");const t=document.createElement("div");t.classList.add("open-container"),e.appendChild(t);const i=document.createElement("div");i.classList.add("top-container");const s=document.createElement("div");s.classList.add("separator"),s.style.margin="10px";const n=document.createElement("div");n.classList.add("bottom-container"),t.appendChild(i),t.appendChild(s),t.appendChild(n);const a=document.createElement("button");a.style.display="flex",a.style.flexDirection="column",a.style.padding="10px",a.style.backgroundColor="#414352",a.style.color="white",i.appendChild(a);const o=Ce.getIcon("UPLOAD",30);a.appendChild(o);const l=document.createElement("div");l.innerText=window.nw?"Open an existing song":"Import a song folder",a.appendChild(l),a.onclick=()=>{if(window.nw){const p=document.createElement("input");p.type="file",p.accept=".sm,.ssc",p.onchange=()=>{this.app.chartManager.loadSM(p.value),this.closeWindow()},p.click()}else this.app.windowManager.openWindow(new Ud(this.app,{title:"Select an sm/ssc file...",accepted_file_types:[".sm",".ssc"],disableClose:!0,callback:p=>{this.app.chartManager.loadSM(p),this.closeWindow()}}))};const c=document.createElement("button");c.style.display="flex",c.style.flexDirection="column",c.style.padding="10px",c.style.backgroundColor="#506352",c.style.color="white",i.appendChild(c);const u=Ce.getIcon("PLUS",30);c.appendChild(u);const h=document.createElement("div");h.innerText="New Song",c.appendChild(h),c.onclick=()=>{this.app.windowManager.openWindow(new my(this.app))};const d=document.createElement("div");d.innerText="Recently Opened",d.classList.add("title"),n.appendChild(d);const f=document.createElement("div");f.classList.add("recent-selector"),n.appendChild(f),cy.getRecents().then(p=>p.forEach(m=>{const g=document.createElement("div");g.classList.add("recent-item");const b=document.createElement("div");b.classList.add("recent-name"),b.innerText=m.name;const w=document.createElement("div");w.classList.add("recent-path"),w.innerText=m.path,g.appendChild(b),g.appendChild(w),g.onclick=()=>{f.querySelectorAll(".selected").forEach(v=>v.classList.remove("selected")),g.classList.add("selected")},g.ondblclick=()=>{this.app.chartManager.loadSM(m.path),this.closeWindow()},f.appendChild(g)})),this.viewElement.appendChild(e)}handleKeyEvent(e){if(!this.windowElement.classList.contains("focused"))return;const t=this.viewElement.querySelector(".selected");if(t){if(e.code=="ArrowUp"){e.preventDefault(),e.stopImmediatePropagation();const i=t.previousElementSibling;i&&(t.parentElement.querySelectorAll(".selected").forEach(s=>s.classList.remove("selected")),i.classList.add("selected"),ka(i,{scrollMode:"if-needed",block:"nearest",inline:"nearest"}))}if(e.code=="ArrowDown"){e.preventDefault(),e.stopImmediatePropagation();const i=t.nextElementSibling;i&&(t.parentElement.querySelectorAll(".selected").forEach(s=>s.classList.remove("selected")),i.classList.add("selected"),ka(i,{scrollMode:"if-needed",block:"nearest",inline:"nearest"}))}}}}function $D(){const r=new URLSearchParams(location.search),e=r.get("flags");if(e!=null){const n=new Set(e.split("").map(a=>hk[a]).filter(a=>a));for(const a of n.values())De[a]=!De[a]}const t=r.get("url");if(t!=null)try{De.url=new URL(t).toString()}catch{Ee.createFormatted("Invalid url "+t,"warn"),De.url=null}const i=r.get("chartIndex");if(i!=null)try{De.chartIndex=parseInt(i)}catch{Ee.createFormatted("Invalid chartIndex "+i,"warn"),De.chartIndex=null}const s=r.get("chartType");s!==null&&(We.getGameType(s)?De.chartType=s:(Ee.createFormatted("Invalid chartType "+s,"warn"),De.chartType=null))}const lk={viewMode:{char:"V",name:"Force view mode (disables record mode)"},menuBar:{char:"M",name:"Hide menu bar"},playbackOptions:{char:"o",name:"Hide playback options"},barlines:{char:"B",name:"Hide barlines, waveform, and timing boxes"},assist:{char:"A",name:"Disable assist sounds"},recordMode:{char:"R",name:"Disable record mode"},playMode:{char:"P",name:"Disable play mode"},layout:{char:"L",name:"Hide note layout"},status:{char:"S",name:"Hide status bar"},autoPlay:{char:"a",name:"Play automatically"},openWindows:{char:"O",name:"Disable opening windows"},hidePoweredByText:{char:"H",name:'Hide "Powered by SMEditor" text'}},hk=Object.fromEntries(Object.entries(lk).map(([r,e])=>[e.char,r])),De={viewMode:!1,menuBar:!0,playbackOptions:!0,barlines:!0,assist:!0,recordMode:!0,playMode:!0,layout:!0,status:!0,autoPlay:!1,hidePoweredByText:!1,openWindows:!0,url:null,chartIndex:null,chartType:null},ba={file:{type:"menu",title:"File",options:[{type:"selection",id:"newSong"},{type:"selection",id:"openSong"},{type:"separator"},{type:"selection",id:"save"},{type:"selection",id:"export"}]},edit:{type:"menu",title:"Edit",options:[{type:"selection",id:"cut"},{type:"selection",id:"copy"},{type:"selection",id:"paste"},{type:"selection",id:"pasteReplace"},{type:"separator"},{type:"selection",id:"undo"},{type:"selection",id:"redo"},{type:"separator"},{type:"checkbox",id:"mousePlacement",checked:()=>x.chart.mousePlacement}]},view:{type:"menu",title:"View",options:[{type:"dropdown",title:"Cursor",options:[{type:"selection",id:"cursorUp"},{type:"selection",id:"cursorDown"},{type:"separator"},{type:"selection",id:"previousNote"},{type:"selection",id:"nextNote"},{type:"separator"},{type:"selection",id:"previousMeasure"},{type:"selection",id:"nextMeasure"},{type:"separator"},{type:"selection",id:"jumpChartStart"},{type:"selection",id:"jumpChartEnd"},{type:"separator"},{type:"selection",id:"jumpSongStart"},{type:"selection",id:"jumpSongEnd"}]},{type:"dropdown",title:"Snap",options:[{type:"selection",id:"decreaseSnap"},{type:"selection",id:"increaseSnap"}]},{type:"dropdown",title:"Scroll",options:[{type:"checkbox",id:"XMod",checked:()=>!x.chart.CMod},{type:"checkbox",id:"CMod",checked:()=>x.chart.CMod},{type:"separator"},{type:"selection",id:"increaseScrollSpeed"},{type:"selection",id:"decreaseScrollSpeed"}]},{type:"dropdown",title:"Zoom",options:[{type:"selection",id:"zoomIn"},{type:"selection",id:"zoomOut"},{type:"separator"},{type:"selection",id:"zoomDefault"}]},{type:"separator"},{type:"selection",id:"playMode"},{type:"selection",id:"playModeStart"},{type:"separator"},{type:"selection",id:"recordMode"},{type:"selection",id:"recordModeStart"},{type:"separator"},{type:"checkbox",id:"reverse",checked:()=>x.chart.reverse},{type:"checkbox",id:"hideWarpedArrows",checked:()=>x.chart.hideWarpedArrows},{type:"checkbox",id:"hideFakedArrows",checked:()=>x.chart.hideFakedArrows},{type:"checkbox",id:"doSpeedChanges",checked:()=>x.chart.doSpeedChanges}]},chart:{type:"menu",title:"Chart",options:[{type:"selection",id:"openChart"},{type:"separator"},{type:"selection",id:"previousChart"},{type:"selection",id:"nextChart"},{type:"separator"},{type:"selection",id:"songProperties"},{type:"separator"},{type:"selection",id:"timingDataRow"}]},selection:{type:"menu",title:"Selection",options:[{type:"dropdown",title:"Convert",options:[{type:"selection",id:"convertHoldsRolls"},{type:"selection",id:"convertRollsHolds"},{type:"selection",id:"swapHoldsRolls"},{type:"separator"},{type:"selection",id:"convertHoldsTaps"},{type:"selection",id:"convertTapsMines"},{type:"selection",id:"convertTapsLifts"},{type:"selection",id:"convertTapsFakes"}]},{type:"dropdown",title:"Mirror",options:[{type:"selection",id:"mirrorHorizontally"},{type:"selection",id:"mirrorVertically"},{type:"selection",id:"mirrorBoth"}]},{type:"dropdown",title:"Stretch",options:[{type:"selection",id:"expand2to1"},{type:"selection",id:"expand3to2"},{type:"selection",id:"expand4to3"},{type:"separator"},{type:"selection",id:"compress1to2"},{type:"selection",id:"compress2to3"},{type:"selection",id:"compress3to4"}]},{type:"dropdown",title:"Shift",options:[{type:"dropdown",title:"Up",options:[{type:"selection",id:"shiftUp4m"},{type:"selection",id:"shiftUp2m"},{type:"selection",id:"shiftUp1m"},{type:"selection",id:"shiftUp4th"},{type:"selection",id:"shiftUp8th"},{type:"selection",id:"shiftUp12th"},{type:"selection",id:"shiftUp16th"},{type:"selection",id:"shiftUp24th"},{type:"selection",id:"shiftUp32nd"},{type:"selection",id:"shiftUp48th"},{type:"selection",id:"shiftUp64th"},{type:"selection",id:"shiftUp96th"},{type:"selection",id:"shiftUp192nd"}]},{type:"dropdown",title:"Down",options:[{type:"selection",id:"shiftDown4m"},{type:"selection",id:"shiftDown2m"},{type:"selection",id:"shiftDown1m"},{type:"selection",id:"shiftDown4th"},{type:"selection",id:"shiftDown8th"},{type:"selection",id:"shiftDown12th"},{type:"selection",id:"shiftDown16th"},{type:"selection",id:"shiftDown24th"},{type:"selection",id:"shiftDown32nd"},{type:"selection",id:"shiftDown48th"},{type:"selection",id:"shiftDown64th"},{type:"selection",id:"shiftDown96th"},{type:"selection",id:"shiftDown192nd"}]}]},{type:"dropdown",title:"Quantize",options:[{type:"selection",id:"quantize4th"},{type:"selection",id:"quantize8th"},{type:"selection",id:"quantize12th"},{type:"selection",id:"quantize16th"},{type:"selection",id:"quantize24th"},{type:"selection",id:"quantize32nd"},{type:"selection",id:"quantize48th"},{type:"selection",id:"quantize64th"},{type:"selection",id:"quantize96th"}]},{type:"separator"},{type:"selection",id:"setSongPreview"},{type:"separator"},{type:"selection",id:"exportNotedata"},{type:"separator"},{type:"selection",id:"selectBeforeCursor"},{type:"selection",id:"selectAfterCursor"},{type:"selection",id:"selectAll"}]},audio:{type:"menu",title:"Audio",options:[{type:"selection",id:"detectSync"},{type:"separator"},{type:"checkbox",id:"assistTick",checked:()=>x.audio.assistTick&&De.assist},{type:"checkbox",id:"metronome",checked:()=>x.audio.metronome&&De.assist},{type:"separator"},{type:"dropdown",title:()=>"Master Volume ("+Math.round(x.audio.masterVolume*100)+"%)",options:[{type:"selection",id:"volumeUp"},{type:"selection",id:"volumeDown"}]},{type:"dropdown",title:()=>"Song Volume ("+Math.round(x.audio.songVolume*100)+"%)",options:[{type:"selection",id:"songVolumeUp"},{type:"selection",id:"songVolumeDown"}]},{type:"dropdown",title:()=>"Effect Volume ("+Math.round(x.audio.soundEffectVolume*100)+"%)",options:[{type:"selection",id:"effectvolumeUp"},{type:"selection",id:"effectvolumeDown"}]},{type:"dropdown",title:()=>"Playback rate ("+Math.round(x.audio.rate*100)+"%)",options:[{type:"selection",id:"rateUp"},{type:"selection",id:"rateDown"},{type:"separator"},{type:"selection",id:"rateDefault"}]},{type:"separator"},{type:"selection",id:"showEq"}]},preferences:{type:"menu",title:"Preferences",options:[{type:"selection",id:"options"},{type:"selection",id:"themes"},{type:"selection",id:"keybinds"},{type:"selection",id:"gameplayKeybinds"},{type:"selection",id:"noteskinWindow"}]},help:{type:"menu",title:"Help",options:[{type:"selection",id:"openGuide"},{type:"selection",id:"openChangelog"}]}},Hm=["cut","copy","paste","pasteReplace"],Gm={edit:[{ids:["delete"],after:"redo"},{ids:["toggleEditTiming","toggleAddTiming","previousNoteType","nextNoteType","noteTypeTap","noteTypeMine","noteTypeFake","noteTypeLift","quant4","quant8","quant12","quant16","quant24","quant32","quant48","quant64","quant96","quant192"],after:"mousePlacement"}],view:[{ids:["playback","selectRegion"]}],debug:[{ids:["showFPSCounter","showDebugTimers"]}]};class qi extends Tt{static GROUPS;app;observer;searchDropdown;conflictMap=this.calculateConflicts();constructor(e){super({title:"Keybind Options",width:600,height:400,disableClose:!1,win_id:"keybind_options",blocking:!1}),this.app=e,qi.GROUPS||(qi.GROUPS=qi.createGroups()),this.initView()}initView(){this.viewElement.replaceChildren();const e=document.createElement("div");e.classList.add("padding");const t=document.createElement("div");t.classList.add("pref-container");const i=document.createElement("div");i.classList.add("pref-search");const s=document.createElement("input");s.classList.add("pref-search-bar"),s.type="text",s.placeholder="Search for a keybind...",s.oninput=()=>{o.replaceChildren(...this.createSections(s.value)),l.replaceChildren(...this.createOptions(s.value))};const n=Oi.create(["Name","Key"],"Name");n.onChange(()=>{o.replaceChildren(...this.createSections(s.value)),l.replaceChildren(...this.createOptions(s.value))}),this.searchDropdown=n,i.replaceChildren(s,n.view);const a=document.createElement("div");a.classList.add("pref-scrollers");const o=document.createElement("div");o.classList.add("pref-section-scroller");const l=document.createElement("div");l.classList.add("pref-option-scroller"),a.replaceChildren(o,l),this.observer=new IntersectionObserver(c=>{c.forEach(u=>{const h=u.target.dataset.id,d=o.querySelector(`.pref-section[data-id=${h}]`);d&&(u.intersectionRatio>0?d.classList.add("selected"):d.classList.remove("selected"))})},{}),t.replaceChildren(i,a),o.replaceChildren(...this.createSections()),l.replaceChildren(...this.createOptions()),e.appendChild(t),this.viewElement.appendChild(e)}createSections(e=""){return Object.keys(qi.GROUPS).filter(t=>qi.GROUPS[t].some(i=>this.filterID(e,i))).map(t=>this.createEmptySection(ba[t]?.title??Nu(t),t))}createOptions(e=""){return Object.keys(qi.GROUPS).filter(t=>qi.GROUPS[t].some(i=>this.filterID(e,i))).map(t=>{const i=qi.GROUPS[t].filter(a=>this.filterID(e,a)).map(a=>this.createKeybindItem(a)),s=document.createElement("div");s.classList.add("pref-group"),s.dataset.id=t;const n=document.createElement("div");return n.classList.add("pref-group-label"),n.innerText=ba[t]?.title??Nu(t),s.replaceChildren(n,...i),this.observer.observe(s),s})}static createGroups(){const e=Object.keys(ct),t={};return Object.keys(ba).forEach(i=>{t[i]=this.expandMenubarOptions(ba[i]).map(s=>{const n=e.indexOf(s);return n!=-1&&e.splice(n,1),s}).filter(s=>!Hm.includes(s))}),Object.keys(Gm).forEach(i=>{t[i]===void 0&&(t[i]=[]),Gm[i].forEach(s=>{let n=0;if(s.after){const a=t[i].findIndex(o=>s.after==o)+1;a!=0&&(n=a)}t[i].splice(n,0,...s.ids),s.ids.forEach(a=>{const o=e.indexOf(a);o!=-1&&e.splice(o,1)})})}),Hm.forEach(i=>{const s=e.indexOf(i);s!=-1&&e.splice(s,1)}),e.length>0&&(console.warn("Missing keybinds not shown:"),console.warn(e)),t}filterID(e,t){if((this.searchDropdown?.value??"Name")=="Name")return(ct[t].bindLabel??ct[t].label).toLowerCase().includes(e.toLowerCase());{const i=Re.getCombosForKeybind(t);if(i.some(n=>n.key.toLowerCase().includes(e.toLowerCase()))||i.some(n=>(vy[n.key]??n.key).toLowerCase().includes(e.toLowerCase())))return!0;let s=e.split(" ").map(n=>n.toLowerCase());return i.some(n=>(s.includes("shift")||s.includes("⇧"))&&!n.mods.includes(ya.SHIFT)||(s.includes("ctrl")||s.includes("control")||s.includes("⌃"))&&!n.mods.includes(ya.CTRL)||(s.includes("meta")||s.includes("cmd")||s.includes("command")||s.includes("⌘"))&&!n.mods.includes(ya.META)||(s.includes("alt")||s.includes("⌥"))&&!n.mods.includes(ya.ALT)?!1:(s=s.filter(a=>!["shift","ctrl","control","meta","cmd","command","alt","⇧","⌃","⌘","⌥",""].includes(a)),s.length==0||s.length==1&&n.key.toLowerCase().includes(s[0])))}}static expandMenubarOptions(e){switch(e.type){case"menu":case"dropdown":return e.options.map(t=>this.expandMenubarOptions(t)).flat();case"selection":case"checkbox":return[e.id];case"separator":return[]}}createEmptySection(e,t){const i=document.createElement("div");return i.classList.add("pref-section"),i.dataset.id=t,i.innerText=e,i.onclick=()=>{i.parentElement.parentElement.querySelector(`.pref-group[data-id=${t}]`).scrollIntoView()},i}createKeybindItem(e){const t=document.createElement("div");t.classList.add("pref-keybind"),t.dataset.id=e,t.onclick=a=>{a.target.classList.contains("pref-keybind-combo")||t.querySelector(".icon")?.contains(a.target)||this.app.windowManager.openWindow(new Wn(this.app,!0,o=>{Re.setKeybind(e,o),this.conflictMap=this.calculateConflicts(),t.replaceWith(this.createKeybindItem(e))},o=>{const l=this.conflictMap.get(Re.getComboString(o))?.map(c=>c[0]).map(c=>ct[c].bindLabel??ct[c].label)??[];return l.includes(e)?"self":l}))};const i=document.createElement("div");i.classList.add("pref-keybind-label"),i.innerText=ct[e].bindLabel??ct[e].label;const s=Ce.getIcon("REVERT");s.style.width="12px",s.addEventListener("click",()=>{Re.revertKeybind(e),this.conflictMap=this.calculateConflicts(),t.replaceWith(this.createKeybindItem(e))}),s.style.display=Re.checkIsDefault(e)?"none":"block";const n=document.createElement("div");return n.classList.add("pref-keybind-combos"),n.replaceChildren(...Re.getCombosForKeybind(e).map(a=>{const o=document.createElement("button");return o.classList.add("pref-keybind-combo"),o.innerText=Re.getComboString(a),this.conflictMap.get(Re.getComboString(a)).length>1&&o.classList.add("conflict"),o.onclick=()=>{Re.removeKeybind(e,a),this.conflictMap=this.calculateConflicts(),t.replaceWith(this.createKeybindItem(e))},o})),t.replaceChildren(i,s,n),t}calculateConflicts(){const e=new Map;Object.keys(ct).forEach(t=>{Re.getCombosForKeybind(t).forEach((i,s)=>{const n=Re.getComboString(i);e.has(n)||e.set(n,[]),e.get(n).push([t,s])})}),[...this.viewElement.querySelectorAll(".pref-keybind-combo.conflict")].forEach(t=>t.classList.remove("conflict"));for(const t of e.values())t.length!=1&&t.forEach(i=>{const s=this.viewElement.querySelector(`.pref-keybind[data-id=${i[0]}] .pref-keybind-combos`);s?.children[i[1]]&&s.children[i[1]].classList.add("conflict")});return e}onClose(){this.observer?.disconnect()}}class ut{static noteskins=new Map;static register(e){for(const t of new Set(e.gameTypes))ut.noteskins.has(t)||ut.noteskins.set(t,new Map),ut.noteskins.get(t).set(e.id,e)}static async getNoteskin(e,t){const i=this.noteskins.get(e.id);if(!i||i.size==0)return;const s=i.get(t)??[...i.values()][0];return i.get(t)||Ee.createFormatted(`Couldn't find the noteskin ${t}!`,"warn"),await s.load()}static getNoteskinData(e,t){const i=this.noteskins.get(e.id);return!i||i.size==0?void 0:i.get(t)??[...i.values()][0]}static getNoteskins(){return this.noteskins}static getPreviewUrl(e,t){return this.getNoteskinData(e,t).preview}}ut.register({id:"default",gameTypes:["dance-single","dance-double","dance-couple","dance-solo","dance-solodouble","dance-threepanel","dance-threedouble"],load:async()=>(await Qe(()=>import("./Noteskin-bbfb29fa.js"),["Noteskin-bbfb29fa.js","HoldBody-be07a70c.js"])).default,preview:new URL("/smeditor/assets/preview-17ffcc02.png",self.location).href,title:"Scalable",subtitle:"Pete-Lawrence"});ut.register({id:"cf-chrome",gameTypes:["dance-single","dance-double","dance-couple","dance-solo","dance-solodouble","dance-threepanel","dance-threedouble"],load:async()=>(await Qe(()=>import("./Noteskin-ca87104e.js"),["Noteskin-ca87104e.js","HoldBody-be07a70c.js"])).default,preview:new URL("/smeditor/assets/preview-40b76b28.png",self.location).href,title:"CF_CHROME",subtitle:"Pete-Lawrence"});ut.register({id:"ddr-note",gameTypes:["dance-single","dance-double","dance-couple","dance-solo","dance-solodouble","dance-threepanel","dance-threedouble"],load:async()=>(await Qe(()=>import("./Noteskin-abdfd413.js"),["Noteskin-abdfd413.js","AnimatedSprite-b795c45d.js","HoldBody-be07a70c.js"])).default,preview:new URL("/smeditor/assets/preview-b8f75a15.png",self.location).href,title:"DDR-Note",subtitle:"Pete-Lawrence"});ut.register({id:"ddr-note-itg",gameTypes:["dance-single","dance-double","dance-couple","dance-solo","dance-solodouble","dance-threepanel","dance-threedouble"],load:async()=>(await Qe(()=>import("./Noteskin-8752563b.js"),["Noteskin-8752563b.js","AnimatedSprite-b795c45d.js","HoldBody-be07a70c.js"])).default,preview:new URL("/smeditor/assets/preview-f113aacc.png",self.location).href,title:"DDR-Note (ITG quants)",subtitle:"Pete-Lawrence"});ut.register({id:"ddr-rainbow",gameTypes:["dance-single","dance-double","dance-couple"],load:async()=>(await Qe(()=>import("./Noteskin-8063a766.js"),["Noteskin-8063a766.js","AnimatedSprite-b795c45d.js","HoldBody-be07a70c.js"])).default,preview:new URL("/smeditor/assets/preview-0f9b00cd.png",self.location).href,title:"DDR-Rainbow",subtitle:"LemmaEOF"});ut.register({id:"ddr-rainbow-itg",gameTypes:["dance-single","dance-double","dance-couple"],load:async()=>(await Qe(()=>import("./Noteskin-8865056a.js"),["Noteskin-8865056a.js","AnimatedSprite-b795c45d.js","HoldBody-be07a70c.js"])).default,preview:new URL("/smeditor/assets/preview-2fd7d50c.png",self.location).href,title:"DDR-Rainbow (ITG quants)",subtitle:"LemmaEOF"});ut.register({id:"metal",gameTypes:["dance-single","dance-double","dance-couple","dance-solo","dance-solodouble","dance-threepanel","dance-threedouble"],load:async()=>(await Qe(()=>import("./Noteskin-ca147e57.js"),["Noteskin-ca147e57.js","HoldBody-be07a70c.js"])).default,preview:new URL("/smeditor/assets/preview-26b1bdce.png",self.location).href,title:"Metal",subtitle:"Pete-Lawrence"});ut.register({id:"pastel",gameTypes:["dance-single","dance-double","dance-couple","dance-solo","dance-solodouble","dance-threepanel","dance-threedouble"],load:async()=>(await Qe(()=>import("./Noteskin-4eedff13.js"),["Noteskin-4eedff13.js","AnimatedSprite-b795c45d.js","HoldBody-be07a70c.js"])).default,preview:new URL("/smeditor/assets/preview-d67630f1.png",self.location).href,title:"Pastel",subtitle:"halcyoniix"});ut.register({id:"dividebyzero",gameTypes:["dance-single","dance-double","dance-couple","dance-solo","dance-solodouble","dance-threepanel","dance-threedouble"],load:async()=>(await Qe(()=>import("./Noteskin-d08f1b21.js"),["Noteskin-d08f1b21.js","AnimatedSprite-b795c45d.js","HoldBody-be07a70c.js"])).default,preview:new URL("/smeditor/assets/preview-d763e667.png",self.location).href,title:"DivideByZero",subtitle:"MinaciousGrace"});ut.register({id:"subtractbyzero",gameTypes:["dance-single","dance-double","dance-couple","dance-solo","dance-solodouble","dance-threepanel","dance-threedouble"],load:async()=>(await Qe(()=>import("./Noteskin-619dd7ae.js"),["Noteskin-619dd7ae.js","AnimatedSprite-b795c45d.js","HoldBody-be07a70c.js"])).default,preview:new URL("/smeditor/assets/preview-72ea0444.png",self.location).href,title:"SubtractByZero",subtitle:"qwertyzoro/Vague"});ut.register({id:"sm4",gameTypes:["dance-single","dance-double","dance-couple","dance-solo","dance-solodouble","dance-threepanel","dance-threedouble"],load:async()=>(await Qe(()=>import("./Noteskin-7e766ee5.js"),["Noteskin-7e766ee5.js","AnimatedSprite-b795c45d.js","HoldBody-be07a70c.js"])).default,preview:new URL("/smeditor/assets/preview-3514cbb3.png",self.location).href,title:"SM4",subtitle:"from SM4"});ut.register({id:"sm4-bold",gameTypes:["dance-single","dance-double","dance-couple","dance-solo","dance-solodouble","dance-threepanel","dance-threedouble"],load:async()=>(await Qe(()=>import("./Noteskin-7ba57491.js"),["Noteskin-7ba57491.js","AnimatedSprite-b795c45d.js","HoldBody-be07a70c.js"])).default,preview:new URL("/smeditor/assets/preview-9fe2bd96.png",self.location).href,title:"SM4 Bold",subtitle:"from SM4"});ut.register({id:"starlight-vivid",gameTypes:["dance-single","dance-double","dance-couple"],load:async()=>(await Qe(()=>import("./Noteskin-b3cab24d.js"),["Noteskin-b3cab24d.js","AnimatedSprite-b795c45d.js","HoldBody-be07a70c.js"])).default,preview:new URL("/smeditor/assets/preview-5ecfc22a.png",self.location).href,title:"SLNEXXT-vivid",subtitle:"from STARLiGHT-NEXXT"});ut.register({id:"default",gameTypes:["pump-single","pump-double","pump-couple","pump-versus","pump-halfdouble"],load:async()=>(await Qe(()=>import("./Noteskin-4e0593e6.js"),["Noteskin-4e0593e6.js","AnimatedSprite-b795c45d.js","HoldBody-be07a70c.js"])).default,preview:new URL("/smeditor/assets/preview-d6d59d37.png",self.location).href,title:"Fiesta"});ut.register({id:"fourv2",gameTypes:["pump-single","pump-double","pump-couple","pump-versus","pump-halfdouble"],load:async()=>(await Qe(()=>import("./Noteskin-578b9537.js"),["Noteskin-578b9537.js","AnimatedSprite-b795c45d.js","HoldBody-be07a70c.js"])).default,preview:new URL("/smeditor/assets/preview-5d9781d2.png",self.location).href,title:"FourV2",subtitle:"Jousway"});ut.register({id:"prime",gameTypes:["pump-single","pump-double","pump-couple","pump-versus","pump-halfdouble"],load:async()=>(await Qe(()=>import("./Noteskin-04a83d23.js"),["Noteskin-04a83d23.js","AnimatedSprite-b795c45d.js","HoldBody-be07a70c.js"])).default,preview:new URL("/smeditor/assets/preview-4f79831b.png",self.location).href,title:"Prime"});const ck="/smeditor/assets/preview-747db171.png";class uk extends Tt{app;grid;lastGameType=null;constructor(e){super({title:"Noteskin Selection",width:600,height:400,disableClose:!1,win_id:"noteskin-selection",blocking:!1}),this.app=e,this.initView(),this.loadGrid(),H.on("chartLoaded",()=>{const t=e.chartManager.loadedChart.gameType.id;this.lastGameType!=t&&this.loadGrid()})}initView(){this.viewElement.replaceChildren();const e=document.createElement("div");e.classList.add("padding");const t=document.createElement("input");t.classList.add("pref-search-bar"),t.type="text",t.placeholder="Search for a noteskin...",t.oninput=()=>{this.filterGrid(t.value)};const i=document.createElement("div");i.classList.add("noteskin-grid"),this.grid=i,e.replaceChildren(t,i),this.viewElement.appendChild(e)}loadGrid(){if(this.grid.replaceChildren(),!this.app.chartManager.loadedChart)return;const e=this.app.chartManager.loadedChart.gameType;this.lastGameType=e.id;const t=ut.getNoteskins().get(e.id);if(t)for(const[i,s]of t.entries()){const n=document.createElement("div"),a=document.createElement("img"),o=document.createElement("div"),l=document.createElement("div"),c=document.createElement("div");n.classList.add("noteskin-cell"),o.classList.add("noteskin-label"),l.classList.add("noteskin-title"),c.classList.add("noteskin-subtitle"),l.innerText=s.title??i,c.innerText=s.subtitle??"",a.src=ut.getPreviewUrl(e,i),a.onerror=()=>{a.src=ck},n.replaceChildren(a,o),o.replaceChildren(l,c),this.grid.appendChild(n),i==x.chart.noteskin.name&&(n.classList.add("selected"),setTimeout(()=>{n.scrollIntoView({behavior:x.general.smoothAnimations?"smooth":"instant",block:"center"})})),n.dataset.id=i,n.dataset.title=s.title??"",n.dataset.subtitle=s.subtitle??"",n.onclick=()=>{x.chart.noteskin.name!=i&&(this.app.chartManager.chartView?.swapNoteskin(i),this.removeAllSelections(),n.classList.add("selected"))}}}removeAllSelections(){[...this.grid.querySelectorAll(".selected")].forEach(e=>e.classList.remove("selected"))}filterGrid(e){[...this.grid.children].forEach(t=>{if(!(t instanceof HTMLDivElement))return;const i=t,s=this.containsQuery(e,i.dataset.id)||this.containsQuery(e,i.dataset.title)||this.containsQuery(e,i.dataset.subtitle);i.style.display=s?"":"none"})}containsQuery(e,t){return t?t.toLowerCase().includes(e.trim().toLowerCase()):!1}}class dk extends Tt{app;metronomeInterval;startTime;me_high=new Fl.Howl({src:mb,volume:x.audio.soundEffectVolume});me_low=new Fl.Howl({src:gb,volume:x.audio.soundEffectVolume});tickLines=[];resultLines=[];previousOffsets=[];keyHandler;constructor(e){super({title:"Offset Adjuster",width:300,height:200,win_id:"offset",blocking:!0}),this.app=e,this.initView(),this.startTime=performance.now();let t=this.startTime+500;this.tickLines.push({time:t+500,beat:0}),this.tickLines.push({time:t+500*2,beat:1}),this.tickLines.push({time:t+500*3,beat:2}),this.tickLines.push({time:t+500*4,beat:3});let i=0;this.metronomeInterval=setInterval(()=>{const s=performance.now();if(s-t>500){for(t=s,(i%4==0?this.me_high:this.me_low).play();this.tickLines[0]?.time+1e3s-n.startTime<8e3)},5),this.keyHandler=s=>{if(s.code.startsWith("Digit")||s.code.startsWith("Key")||s.code=="Space"){let n=this.tickLines[0];const a=performance.now();for(const l of this.tickLines)if(a-l.time+x.play.offset*1e3<300){n=l;break}s.preventDefault();const o=a-n.time+x.play.offset*1e3;o>-300&&(this.tickLines.splice(this.tickLines.indexOf(n),1),this.resultLines.push({startTime:performance.now(),offset:o}),this.previousOffsets.push(o),this.previousOffsets.length==16&&(Yb(this.previousOffsets)<70&&(x.play.offset-=fh(this.previousOffsets)/1e3),this.previousOffsets=[]))}},window.addEventListener("keydown",this.keyHandler)}initView(){this.viewElement.replaceChildren();const e=document.createElement("canvas");this.viewElement.appendChild(e);const t=this.drawEQ(e);requestAnimationFrame(t)}drawEQ(e){const t=e.getContext("2d");t.canvas.width=250,t.canvas.height=100;const i=()=>{t.fillStyle="rgba(0, 0, 0, 1)",t.fillRect(0,0,e.width,e.height),t.fillStyle="rgb(255, 255, 255)",t.fillRect(e.width/2-1,8,2,e.height-16);const s=performance.now();for(const n of this.resultLines){t.fillStyle="rgba(255, 255, 255, 1)";const a=Math.min(1,4-(s-n.startTime)/2e3);if(n.offset<0&&(t.fillStyle=`rgba(160, ${$t(160,0,-n.offset/250)}, ${$t(160,0,-n.offset/250)}, ${a})`),n.offset>0&&(t.fillStyle=`rgba(${$t(160,0,n.offset/250)}, ${$t(160,0,n.offset/250)}, 160, ${a})`),t.fillRect(e.width/2-.5+n.offset/4,12,1,e.height-24),s-n.startTime<250){const o=(s-n.startTime)/250;t.globalAlpha=1-o,t.fillRect(e.width/2-.5-o*3+n.offset/4,12-o*10,1+o*6,e.height-24+o*20)}t.globalAlpha=1}for(const n of this.tickLines){const a=n.time-s-x.play.offset*1e3;t.fillStyle="rgba(255, 255, 255, 0.8)",n.beat%4!=0?t.fillRect(e.width/2-1-a/4,12,2,e.height-24):t.fillRect(e.width/2-2-a/4,12,4,e.height-24)}e.closest("#windows")&&requestAnimationFrame(i)};return i}onClose(){clearInterval(this.metronomeInterval),window.removeEventListener("keydown",this.keyHandler)}}class fk extends Tt{app;changeHandler=()=>this.initView();constructor(e){super({title:"Song Properties",width:450,height:486,disableClose:!1,win_id:"sm_properties",blocking:!1}),this.app=e,this.initView(),H.on("smLoaded",this.changeHandler),H.on("undo",this.changeHandler),H.on("redo",this.changeHandler)}onClose(){H.off("smLoaded",this.changeHandler),H.off("undo",this.changeHandler),H.off("redo",this.changeHandler)}initView(){this.viewElement.replaceChildren(),this.viewElement.classList.add("sm-properties");const e=document.createElement("div");e.classList.add("padding");const t=document.createElement("div");t.classList.add("label"),t.innerText="Apply to",fy.forEach(i=>{const s=document.createElement("div");s.classList.add("sm-container");const n=document.createElement("div");n.classList.add("sm-title"),n.innerText=i.title;const a=document.createElement("div");a.classList.add("property-grid"),i.items.forEach(o=>{const l=document.createElement("div");l.classList.add("label"),l.innerText=o.title,a.appendChild(l),a.appendChild(py(this.app,o))}),s.appendChild(n),s.appendChild(a),e.appendChild(s)}),this.viewElement.appendChild(e)}}var pk=yk,zl=8192,zd=65536,Wd=new ArrayBuffer(zd*4),mk=new Float64Array(Wd,zd,zl),gk=new Float64Array(Wd,zd*2,zl/2),bk=vk({Math,Float64Array},null,Wd);function yk(r){if(!r)throw Error("Input data is not provided, pass an array.");var e=r.length;if(e>zl)throw Error("Input length is too big, must be under "+zl);var t=Math.floor(Math.log(e)/Math.LN2);if(Math.pow(2,t)!==e)throw Error("Invalid array size, must be a power of 2.");return mk.set(r),bk(e,t),gk.subarray(0,e/2)}function vk(r,e,t){var i=6.283185307179586,s=r.Math.sqrt,n=r.Math.sin,a=r.Math.cos,o=r.Math.abs,l=r.Math.SQRT1_2,c=r.Math.imul,u=new r.Float64Array(t),h=new r.Float64Array(t),d=8192,f=16384;function p(g,b){g=g|0,b=b|0;var w=0,v=0,y=0,E=0,C=0,k=0,B=0,M=0,U=0,V=0,T=0,S=0,_=0,R=0,q=0,F=0,L=0,W=0,z=0,O=0,N=0,ie=0,Q=0,Z=0,be=0,Se=0,ce=0,pe=0,xe=0,le=0,fe=0,we=0;for(w=g>>>1,y=2/+(g|0),m(g),le=0,we=4;(le|0)<(g|0);we=c(we,4)){for(fe=le;(fe|0)<(g|0);fe=fe+we|0)O=h[fe<<3>>3]-h[fe+1<<3>>3],h[fe<<3>>3]=h[fe<<3>>3]+h[fe+1<<3>>3],h[fe+1<<3>>3]=O;le=c(2,we-1)}for(E=2,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h[W<<3>>3]=V-h[_<<3>>3],h[L<<3>>3]=h[S<<3>>3]-M,h[S<<3>>3]=h[S<<3>>3]+M,h[_<<3>>3]=T+h[F<<3>>3],h[F<<3>>3]=h[F<<3>>3]-T;le=(we<<1)-E|0,we=we<<2}while((le|0)<(g|0))}}for(;w=w-1|0;)ce=+h[w<<3>>3],pe=+h[g-w-1<<3>>3],xe=y*s(ce*ce+pe*pe),u[f+w<<3>>3]=xe;u[f+0<<3>>3]=o(y*h[0])}function m(g){g=g|0;var b=0,w=0,v=1,y=0,E=0;b=g>>>1,w=g-1|0,h[0]=u[d+0<<3>>3];do{for(y=y+b|0,h[v<<3>>3]=u[d+y<<3>>3],h[y<<3>>3]=u[d+v<<3>>3],v=v+1|0,E=b<<1;E=E>>1,((y=y^E)&E)==0;);(y|0)>=(v|0)&&(h[v<<3>>3]=u[d+y<<3>>3],h[y<<3>>3]=u[d+v<<3>>3],h[w-v<<3>>3]=u[d+w-y<<3>>3],h[w-y<<3>>3]=u[d+w-v<<3>>3]),v=v+1|0}while((v|0)<(b|0));h[w<<3>>3]=u[d+w<<3>>3]}return p}const Vm=Xa(pk);class Ps{view;slider;text;options;constructor(e,t){this.view=e,this.options=t,this.view.classList.add("slider");const i=document.createElement("input");i.classList.add("slider-input"),i.type="range",i.min=t.min.toString(),i.max=t.max.toString(),i.step=t.step.toString(),i.value=(t.value??(t.min+t.max)/2).toString(),i.oninput=()=>{s.innerText=this.formatValue(parseFloat(i.value))+"",this.options.onChange?.(parseFloat(i.value))},t.width!==void 0&&(i.style.width=t.width+"px"),this.slider=i,e.appendChild(i);const s=document.createElement("div");s.innerText=this.formatValue(parseFloat(i.value))+"",s.style.width="30px",this.text=s,e.appendChild(s)}get value(){return parseFloat(this.slider.value)}setValue(e){this.slider.value=e+"",this.text.innerText=this.formatValue(parseFloat(this.slider.value))+""}static create(e){return new Ps(document.createElement("div"),e)}formatValue(e){return this.options.transformer?this.options.transformer(e):this.options.precision===void 0?ae(e,3).toString():ae(e,this.options.precision).toFixed(this.options.precision)}}const ni=800,nt=200,Cc=3,aa=125,oa=250,Zo=3,wk=.02,sn=6,Sc=800,zm=15,ai=32768,Mc=[{frequency:20,weight:.4006009013520281},{frequency:25,weight:.4258037044922291},{frequency:31.5,weight:.4536690484291709},{frequency:40,weight:.4840856831659204},{frequency:50,weight:.5142710208279764},{frequency:63,weight:.5473453749315819},{frequency:80,weight:.5841121495327103},{frequency:100,weight:.6214074879602299},{frequency:125,weight:.6601749463607856},{frequency:160,weight:.7054673721340388},{frequency:200,weight:.7489234225800412},{frequency:250,weight:.7936507936507937},{frequency:315,weight:.8406893652795292},{frequency:400,weight:.889284126278346},{frequency:500,weight:.9291521486643438},{frequency:630,weight:.9675858732462506},{frequency:800,weight:.9985022466300548},{frequency:1e3,weight:.9997500624843789},{frequency:1250,weight:.9564801530368244},{frequency:1600,weight:.9409550693954364},{frequency:2e3,weight:1.0196278358399185},{frequency:2500,weight:1.0955902492467817},{frequency:3150,weight:1.1232799775344005},{frequency:4e3,weight:1.0914051841746248},{frequency:5e3,weight:.9997500624843789},{frequency:6300,weight:.8727907484180668},{frequency:8e3,weight:.7722007722007722},{frequency:1e4,weight:.7369196757553427},{frequency:12500,weight:.7768498737618955},{frequency:16e3,weight:.7698229407236336},{frequency:2e4,weight:.4311738708634257},{frequency:22550,weight:.2},{frequency:25e3,weight:0}];class by extends Tt{app;onAudioLoad=this.reset.bind(this);windowStep=512;fftSize=1024;tempoFftSize=4096;tempoStep=2;monoAudioData;audioLength=0;sampleRate=44100;tempogram=[];tempogramGroups=[];spectrogram=[];spectrogramDifference=[];noveltyCurve=[];noveltyCurveIsolated=[];spectrogramCanvases=[];lowestFinishedBlock=0;numRenderedBlocks=0;peaks=[];_threshold=.3;spectroHeights=[];spectroWeights=[];placeNotesSelectionButton;toggleButton;resetButton;onsetResults;offsetTableLabel;offsetRows=[];bpmRows=[];covers=[];doAnalysis=!1;lastSecond=0;constructor(e){super({title:"Detect Audio Sync",width:400,height:450,win_id:"detect-sync"}),this.app=e,this.initView(),this.reset(),H.on("audioLoaded",this.onAudioLoad)}onClose(){H.off("audioLoaded",this.onAudioLoad),this.app.chartManager.chartAudio.offLoad(this.onAudioLoad)}initView(){this.viewElement.replaceChildren();const e=document.createElement("div");e.classList.add("sync-container"),e.style.display="flex",e.style.flexDirection="column",e.style.alignItems="center";const t=document.createElement("canvas");t.style.width=`${ni/2}px`,t.style.height=`${nt}px`;const i=document.createElement("div");i.classList.add("sync-tab-container");const s=document.createElement("div");s.classList.add("sync-tab-option","active"),s.innerText="Analysis Options";const n=document.createElement("div");n.classList.add("sync-tab-option"),n.innerText="Tempo Results";const a=document.createElement("div");a.classList.add("sync-tab-option"),a.innerText="Onset Results",i.replaceChildren(s,n,a),[...i.children].forEach((m,g)=>{m.onclick=()=>{l.scrollLeft=370*g,i.querySelectorAll(".active").forEach(b=>b.classList.remove("active")),m.classList.add("active")}});const o=document.createElement("div");o.classList.add("sync-tab-view");const l=document.createElement("div");l.classList.add("sync-tab-scroller");const c=this.createOptionsView(),u=this.createTempoView(),h=this.createOnsetsView(),d=(m,g)=>{const b=document.createElement("div");return b.classList.add("sync-cover"),b.innerText=m,b.style.left=`${g*370}px`,b};this.covers=[d("Clear analysis results to edit",0),d("Start analysis to view",1),d("Start analysis to view",2)],o.appendChild(l),l.replaceChildren(c,this.covers[0],u,this.covers[1],h,this.covers[2]);const f=document.createElement("div");f.classList.add("sync-bottom-container"),this.resetButton=document.createElement("button"),this.resetButton.classList.add("delete"),this.resetButton.innerText="Clear results",this.resetButton.style.width="120px",this.resetButton.disabled=!0,this.resetButton.onclick=()=>{this.resetButton.disabled=!0,s.click(),this.reset()},this.toggleButton=document.createElement("button"),this.toggleButton.innerText="Start analyzing",this.toggleButton.style.width="200px",this.toggleButton.onclick=()=>{this.doAnalysis||n.click(),this.doAnalysis=!this.doAnalysis,this.toggleButton.innerText=this.doAnalysis?"Stop analyzing":this.hasData()?"Resume analyzing":"Start analyzing",this.resetButton.disabled=this.doAnalysis},f.replaceChildren(this.toggleButton,this.resetButton),e.replaceChildren(t,i,o,f),this.viewElement.appendChild(e);const p=this.windowLoop(t);requestAnimationFrame(p)}createOptionsView(){const e=document.createElement("div");e.style.display="flex",e.style.position="relative",e.style.flexDirection="column",e.style.gap="3px",e.style.height="100%";const t=(c,u,h)=>{const d=document.createElement("div");d.style.display="flex",d.style.flexDirection="row",d.style.justifyContent="space-between",d.style.alignItems="center";const f=document.createElement("div");return f.innerText=c,d.replaceChildren(f,u),Ze(d,{content:h}),d},i=document.createElement("div");i.innerText="Onsets",i.style.fontWeight="600";const s=Ps.create({min:Math.log2(128),max:Math.log2(8192),step:1,value:Math.log2(this.fftSize),transformer:c=>2**c,onChange:c=>{this.fftSize=2**c,this.windowStep>this.fftSize&&(this.windowStep=this.fftSize,n.setValue(c)),this.reset()}}),n=Ps.create({min:Math.log2(128),max:Math.log2(8192),step:1,value:Math.log2(this.windowStep),transformer:c=>2**c,onChange:c=>{this.windowStep=2**c,this.windowStep>this.fftSize&&(this.windowStep=this.fftSize,n.setValue(Math.log2(this.fftSize))),this.reset()}}),a=document.createElement("div");a.innerText="Tempo",a.style.fontWeight="600",a.style.marginTop="15px";const o=Ps.create({min:Math.log2(128),max:Math.log2(8192),step:1,value:Math.log2(this.tempoFftSize),transformer:c=>2**c,onChange:c=>{this.tempoStep=2**c,this.tempoStep>this.tempoFftSize&&(this.tempoStep=this.tempoFftSize,l.setValue(c)),this.reset()}}),l=Ps.create({min:Math.log2(1),max:Math.log2(1024),step:1,value:Math.log2(this.tempoStep),transformer:c=>2**c,onChange:c=>{this.tempoStep=2**c,this.tempoStep>this.tempoFftSize&&(this.tempoStep=this.tempoFftSize,l.setValue(Math.log2(this.tempoFftSize))),this.reset()}});return e.replaceChildren(i,t("FFT Size",s.view,"Determines the amount of audio to analyze at every block. Higher values result in more accurate frequencies, while lower values result in more accurate timings. Defaults to 1024."),t("Window Step",n.view,"Determines the number of blocks per second. Lower values result in more time-accurate spectrograms, but may take more time and mess up tempo analysis. Defaults to 512 and must be lower than FFT Size."),a,t("FFT Size",o.view,"Determines the amount of the onset graph to analyze at every block. Higher values result in more accurate tempos, while lower values result in more accurate timings. Defaults to 4096."),t("Window Step",l.view,"Determines the number of blocks per second. Lower values result in more time-accurate tempograms, but may take more time. Defaults to 2 and must be lower than FFT Size.")),e}createTempoView(){const e=document.createElement("div");e.style.display="flex",e.style.position="relative",e.style.gap="10px";const t=document.createElement("div");t.style.flex="1";const i=document.createElement("div");i.classList.add("sync-table-label"),i.innerText="Offsets",this.offsetTableLabel=i;const s=document.createElement("table");s.classList.add("sync-table");const n=document.createElement("tr"),a=document.createElement("th");a.innerText="Offset";const o=document.createElement("th");o.innerText="Confidence",n.replaceChildren(a,o),s.appendChild(n),t.replaceChildren(i,s);const l=document.createElement("div");l.style.flex="1";const c=document.createElement("div");c.classList.add("sync-table-label"),c.innerText="Current Tempos";const u=document.createElement("table");u.classList.add("sync-table");const h=document.createElement("tr"),d=document.createElement("th");d.innerText="BPM";const f=document.createElement("th");f.innerText="Confidence",h.replaceChildren(d,f),u.appendChild(h);for(let p=0;p<5;p++){const m=document.createElement("tr"),g=document.createElement("td");g.innerText="-";const b=document.createElement("td");b.innerText="-",m.replaceChildren(g,b),s.appendChild(m),this.offsetRows.push(m);const w=m.cloneNode(!0);u.appendChild(w),this.bpmRows.push(w)}return l.replaceChildren(c,u),e.replaceChildren(t,l),e}createOnsetsView(){const e=document.createElement("div");e.style.display="flex",e.style.flexDirection="column",e.style.gap="10px",e.style.justifyContent="center",e.style.alignItems="center",e.style.position="relative";const t=document.createElement("div");t.style.display="flex",t.style.justifyContent="space-between",t.style.alignItems="center",t.style.width="100%",Ze(t,{content:"Adjust the threshold for a block to be considered an onset (red line)."});const i=document.createElement("div");i.innerText="Onset Threshold";const s=Ps.create({min:0,max:1,step:.01,value:.3,onChange:c=>{this.threshold=c}}),n=document.createElement("div");n.style.color="#888888",n.style.fontStyle="italic",n.style.fontSize="11px",n.style.marginBottom="15px",n.style.marginTop="-6px",n.innerText="Found 0 onsets",this.onsetResults=n,t.replaceChildren(i,s.view);const a=document.createElement("div");a.style.display="flex",a.style.justifyContent="space-between",a.style.alignItems="center",a.style.width="100%";const o=document.createElement("button");o.innerText="Place onsets as notes",o.onclick=()=>this.placeOnsets();const l=document.createElement("button");return l.innerText="Place onsets as notes in selection",l.disabled=!0,l.onclick=()=>this.placeOnsets(!0),this.placeNotesSelectionButton=l,a.replaceChildren(o,l),e.replaceChildren(t,n,a),e}async reset(){this._threshold=.3,this.doAnalysis=!1,this.toggleButton.disabled=!1,this.toggleButton.style.background="",this.toggleButton.innerText="Start analyzing",this.app.chartManager.chartAudio.onLoad(this.onAudioLoad),await this.getMonoAudioData(),this.sampleRate=this.app.chartManager.chartAudio.getSampleRate(),this.spectroHeights=new Array(this.fftSize).fill(0).map((t,i)=>{const s=i/(this.fftSize/2)*this.sampleRate/2,n=(i+1)/(this.fftSize/2)*this.sampleRate/2,a=nt-Oe(Math.log(s/20)/Math.log(this.sampleRate/40)*nt,0,nt),o=nt-Oe(Math.log(n/20)/Math.log(this.sampleRate/40)*nt,0,nt);return{y:o,height:a-o}}),this.spectroWeights=new Array(this.fftSize).fill(0).map((t,i)=>{const s=i/(this.fftSize/2)*this.sampleRate/2,n=Mc.findIndex(l=>l.frequency>s);if(n<1)return 0;const a=Mc[n-1],o=Mc[n];return $t(a.weight,o.weight,Vt(Math.log(1+a.frequency),Math.log(1+o.frequency),Math.log(1+s)))});const e=Math.max(1,Math.ceil(this.audioLength/this.windowStep));this.spectrogramCanvases=[];for(let t=0;t{t.firstChild.innerText="-",t.lastChild.innerText="-"}),this.bpmRows.forEach(t=>{t.firstChild.innerText="-",t.lastChild.innerText="-"})}hasData(){return this.numRenderedBlocks>0}windowLoop(e){const t=e.getContext("2d");t.canvas.width=ni,t.canvas.height=nt*2,t.imageSmoothingEnabled=!1;const i=()=>{if(this.placeNotesSelectionButton.disabled=this.app.chartManager.startRegion===void 0||this.app.chartManager.endRegion===void 0||this.app.chartManager.startRegion==this.app.chartManager.endRegion,this.covers[0].classList.toggle("active",this.hasData()),this.covers[1].classList.toggle("active",!this.hasData()),this.covers[2].classList.toggle("active",!this.hasData()),!this.app.chartManager.chartAudio)return;const s=Math.ceil(this.audioLength/this.windowStep);if(this.monoAudioData!==void 0&&this.doAnalysis){const d=performance.now();for(;performance.now()-d=s){this.tempogram.length==0&&(this.toggleButton.disabled=!0,this.calcTempogram());break}this.spectrogram[this.lowestFinishedBlock]===void 0&&(this.renderBlock(this.lowestFinishedBlock),this.calcDifference(this.lowestFinishedBlock),this.calcIsolatedNovelty(this.lowestFinishedBlock),this.numRenderedBlocks++),this.lowestFinishedBlock++}this.lowestFinishedBlock.5?l=new P("white"):l=new P("black"),t.fillStyle=Xi($e.getColor("accent-color"),l,.1).toHexa(),t.fillRect(0,0,e.width,e.height),t.globalCompositeOperation="destination-over",t.fillStyle=Xi($e.getColor("accent-color"),l,.9).toHexa(),t.fillRect(0,0,e.width,e.height),t.globalCompositeOperation="source-over";const c=a*this.windowStep/this.sampleRate,u=o*this.windowStep/this.sampleRate;if(this.app.chartManager.loadedChart){const d=this.app.chartManager.loadedChart.getBeatFromSeconds(c),f=this.app.chartManager.loadedChart.getBeatFromSeconds(Math.min(u,this.app.chartManager.chartAudio.getSongLength()));t.fillStyle="rgba(255, 255, 255, 0.2)";for(const[p,m]of this.app.chartManager.loadedChart.timingData.getMeasureBeats(d,f)){const g=this.app.chartManager.loadedChart.getSecondsFromBeat(p);t.fillRect(Vt(c,u,g)*ni-(m?2:1),0,m?5:3,nt*1.5)}}t.fillStyle="rgba(255, 0, 0, 0.3)";for(let d=Math.floor(a);d<=Math.ceil(o);d++)this.peaks[d]&&t.fillRect(Vt(a,o,d)*ni-.5,0,2,nt*1.5);t.fillStyle="rgba(50, 255, 20, 0.3)",t.fillRect(ni*.2-1,0,3,nt*2),t.fillStyle="rgba(255, 0, 255, 0.5)",t.fillRect(0,nt*1.5-this._threshold*nt*.5,ni,1);const h=Math.round(this.app.chartManager.time*this.sampleRate/this.windowStep/this.tempoStep);if(t.fillStyle=$e.getColor("accent-color").toHex(),t.textAlign="right",t.textBaseline="top",t.font="22px Assistant",t.fillText(`${this.numRenderedBlocks}/${s} blocks rendered`,ni-10,10),t.textAlign="right",t.textBaseline="middle",this.tempogramGroups[h]){const d=[];for(const f of this.tempogramGroups[h]){let p=0,m=0,g=0;for(let b=h-Zo;b<=h+Zo;b++){if(this.tempogramGroups[b]===void 0)continue;const w=this.tempogramGroups[b].find(v=>v.centerf.center-sn);w!==void 0&&(p+=w.groups[0].value,m+=w.avg,g++)}p/=g,m/=g,d.push({bpm:m,weight:f.groups[0].value,smoothedWeight:p})}d.sort((f,p)=>p.smoothedWeight-f.smoothedWeight);for(const f of d)f.weight<.01||(t.font=`${18+f.weight*300}px Assistant`,t.globalAlpha=Math.min(1,f.weight*100),t.fillText(ae(f.bpm,0)+"",200,$t(nt*2,nt*1.5,Vt(aa,oa,f.bpm))));if(this.lastSecond!=this.app.chartManager.time){this.lastSecond=this.app.chartManager.time;const f=d.slice(0,5).reduce((p,m)=>p+m.smoothedWeight,0);for(let p=0;p<5;p++){const m=this.bpmRows[p],g=d[p]?.bpm,b=d[p]?.weight;m.firstChild.innerText=g===void 0?"-":Math.round(g).toString(),m.lastChild.innerText=b===void 0?"-":Math.round(b/f*100)+"%"}}}t.globalAlpha=1,t.font="22px Assistant",t.textAlign="left",t.textBaseline="top",t.fillText("Spectrogram",10,10),t.fillText("Onsets",10,nt+10),t.fillText("Tempogram",10,nt*1.5+10),e.closest("#windows")&&requestAnimationFrame(i)};return i}renderBlock(e){if(!this.monoAudioData)return;const t=new Float32Array(this.fftSize);t.set(this.monoAudioData.subarray(Math.max(0,e*this.windowStep-this.fftSize/2),e*this.windowStep+this.fftSize/2),-Math.min(0,e*this.windowStep-this.fftSize/2));for(let s=0;s{const a=this.spectroHeights[n],o=Oe(s*2e3,0,255);i.globalAlpha=o/255,i.fillRect(e%ai,a.y,1,a.height)}),i.globalAlpha=1}storeDifferenceResponse(e,t){this.spectrogramDifference[e]=t;const i=t.reduce((s,n)=>s+n,0);this.noveltyCurve[e]=i}calcIsolatedNovelty(e){for(let t=e-Cc;t<=e;t++){if(t<0)continue;let i=0,s=0;for(let n=t-Cc;n<=t+Cc;n++)this.noveltyCurve[n]!==void 0&&(i+=this.noveltyCurve[n],s++);i/=s,this.storeIsolatedNovelty(t,Math.max(0,this.noveltyCurve[t]-i))}}storeIsolatedNovelty(e,t){this.noveltyCurveIsolated[e]=Math.log(1+t),Math.log(1+t)>this._threshold&&Math.log(1+t)>(this.noveltyCurveIsolated[e-1]??0)?(this.peaks[e-1]&&(this.peaks[e-1]=!1),this.peaks[e]=!0,this.onsetResults.innerText=`Found ${this.peaks.filter(n=>n).length} onsets`):this.peaks[e]=!1;const i=this.spectrogramCanvases[Math.floor(e/ai)].getContext("2d"),s=Math.min(1,Math.log(1+t))*nt*.5;i.fillStyle="white",i.fillRect(e%ai,nt*1.5-s,1,s)}async getMonoAudioData(){const e=this.app.chartManager.chartAudio;if(!e)return;const t=e.getBuffer(),i=new OfflineAudioContext(t.numberOfChannels,t.length,t.sampleRate),s=i.createBufferSource();s.buffer=t;const n=i.createChannelMerger(t.numberOfChannels);s.connect(n),n.connect(i.destination),s.start(),await i.startRendering().then(a=>{this.monoAudioData=a.getChannelData(0),this.audioLength=this.monoAudioData.length}).catch(()=>{Ee.createFormatted("Failed to load audio: audio rendering failed","error")})}get threshold(){return this._threshold}set threshold(e){this._threshold=e,this.peaks=this.noveltyCurveIsolated.map((t,i)=>t>this._threshold&&(this.noveltyCurveIsolated[i-1]??0)t).length} onsets`}calculateOffset(){const e=new Map;let t=0,i=0,s=0;for(let c=0;cd.groups[0].value>=wk);if(h.length!=0&&(i=c,h.forEach(d=>{let f=0,p=0;for(let g=c-Zo;g<=c+Zo;g++){if(this.tempogramGroups[g]===void 0)continue;const b=this.tempogramGroups[g].find(w=>w.centerd.center-sn);b!==void 0&&(p+=b.avg,f++)}const m=Math.round(p/f);e.has(m)||e.set(m,0),e.set(m,e.get(m)+1),e.get(m)>t&&(t=e.get(m),s=m)}),t>50))break}if(s==0)return;const n=60/s*(this.sampleRate/this.windowStep),a=new Array(Sc).fill(0).map((c,u)=>{const h=u%n/n;let d=0,f=0;for(let p=1;p<=4;p++)f+=Math.max(1-Math.abs(Math.round(h*p)/p-h)*12,0)*1/p,d+=1/p;return f/d}),o=[];for(let c=i;ca[d]*h).reduce((h,d)=>h+d,0);o.push({block:c,offset:-(c*this.windowStep/this.sampleRate)%(60/s),response:u,curve:this.noveltyCurveIsolated.slice(c,c+Sc).map((h,d)=>a[d]*h)})}o.sort((c,u)=>u.response-c.response);const l=o.slice(0,5).reduce((c,u)=>c+u.response,0);this.offsetTableLabel.innerText=`Offsets (first BPM: ${s})`;for(let c=0;c{if(!i)return null;let n=this.app.chartManager.loadedChart.getBeatFromSeconds(s*this.windowStep/this.sampleRate);return n=Math.round(n*48)/48,n<0?null:{type:"Tap",beat:n,col:0}}).filter(i=>i!==null).filter(i=>e?i.beat>this.app.chartManager.startRegion&&i.beate&&(e=this.noveltyCurveIsolated[a]);const t=new Float32Array(this.noveltyCurveIsolated.length);for(let a=0;a{const o=new Float32Array(this.tempoFftSize);o.set(t.subarray(Math.max(0,a*this.tempoStep-this.tempoFftSize/2),a*this.tempoStep+this.tempoFftSize/2),-Math.min(0,a*this.tempoStep-this.tempoFftSize/2));for(let c=0;cn(++a),1)):(this.calculateOffset(),this.spectrogram=[],this.noveltyCurve=[],this.tempogram=[],this.monoAudioData=void 0,this.toggleButton.innerText="Finished analyzing",this.resetButton.disabled=!1,this.doAnalysis=!1,this.toggleButton.style.background="var(--accent-color)")};n(0)}storeTempogram(e,t){const i=new Map,s=[];t.forEach((a,o)=>{let l=this.sampleRate*60/(this.windowStep*this.tempoFftSize)*o;if(!(l>oa*4||loa&&l!=1/0;)l/=2;for(;l({bpm:a,value:o})).sort((a,o)=>o.value-a.value).filter(a=>a.value!=0);for(let a=0;ac.centero.bpm-sn);if(l===void 0){s.push({center:o.bpm,groups:[o]});continue}l.groups.push(o)}this.tempogramGroups[e]=s.map(a=>({...a,avg:a.groups.reduce((o,l)=>o+l.bpm*l.value,0)/a.groups.reduce((o,l)=>o+l.value,0)}));const n=this.spectrogramCanvases[Math.floor(e*this.tempoStep/ai)].getContext("2d");n.fillStyle="white",this.tempogram[e].forEach(a=>{const o=Oe(a.value*8e3,0,255);n.globalAlpha=o/255,n.fillRect(e*this.tempoStep%ai,$t(nt*2,nt*1.5,Vt(aa,oa,a.bpm)),1*this.tempoStep,nt*.5/(oa-aa))})}}class yy extends HTMLDivElement{colorElement;set color(e){this.colorElement.style.background=e.toHexa()}}function kc(){const r=document.createElement("div");r.classList.add("color-picker-transparent"),Object.setPrototypeOf(r,yy.prototype);const e=document.createElement("div");return e.style.width="100%",e.style.height="100%",r.colorElement=e,r.appendChild(e),r}class vn extends HTMLDivElement{inputs;opts;getValue;onupdate;static create(e){const t=document.createElement("div");Object.setPrototypeOf(t,vn.prototype),t.opts=e.inputs,t.inputs={},t.getValue=e.getValue.bind(t),t.onupdate=e.onupdate,t.classList.add("color-format");const i=document.createElement("div");i.classList.add("color-format-label"),i.innerText=e.label;const s=document.createElement("div");return s.classList.add("color-format-inputs"),Object.entries(e.inputs).forEach(([n,a])=>{const o=document.createElement("input");o.type="text";let l="";o.onfocus=()=>{l=o.value},o.onkeydown=c=>{c.key=="Enter"&&(o.blur(),c.preventDefault()),c.key=="Escape"&&(o.value=l,o.blur(),c.stopImmediatePropagation())},o.oninput=()=>{a.isValid(o.value)!==null&&t.onupdate?.(t.getValue())},o.onblur=()=>{const c=a.isValid(o.value);c===null?o.value=l:o.value=c,t.onupdate?.(t.getValue())},t.inputs[n]=o,s.appendChild(o)}),t.replaceChildren(i,s),t}setValue(e){Object.entries(this.inputs).forEach(([t,i])=>{document.activeElement!=i&&(i.value=this.opts[t].setValue(e))})}}const oi=(r,e,t)=>i=>{t!==void 0&&i.endsWith(t)&&(i=i.slice(0,i.length-t.length));let s;try{s=parseInt(i)}catch{return null}return Oe(s,r,e)+""},li=(r,e,t,i)=>{let s;i!==void 0&&r.endsWith(i)&&(r=r.slice(0,r.length-i.length));try{s=parseInt(r)}catch{return e}return Oe(s,e,t)};class gh extends yy{_value;_hue=0;_sat=0;_val=0;_alp=1;popup;matrix;matrixDot;matrixDragging=!1;hueDragging=!1;hueThumb;alphaDragging=!1;alphaBg;alphaThumb;previewNew;formats=[];onColorChange;static create(e){const t=kc();return Object.setPrototypeOf(t,gh.prototype),t.value=$a(e.value),t.classList.add("color-picker"),t.formats=[],e.height!==void 0&&(t.style.height=e.height+"px"),e.width!==void 0&&(t.style.width=e.width+"px"),t.addEventListener("click",()=>{t.createPopup()}),t}updatePreview(){this.color=this._value}get value(){return this._value}set value(e){this._value=e;const t=Xo(this._value);this._hue=t[0],this._sat=t[1],this._val=t[2],this._alp=t[3],this.updatePreview(),this.updatePopup()}get hue(){return this._hue}set hue(e){this._hue=e,this.updateColor()}get sat(){return this._sat}set sat(e){this._sat=e,this.updateColor()}get val(){return this._val}set val(e){this._val=e,this.updateColor()}get alpha(){return this._alp}set alpha(e){this._alp=e,this.updateColor()}updateColor(){this._value=new P({h:this._hue*360,s:this._sat*100,v:this._val*100,a:this._alp}),this.updatePreview(),this.updatePopup()}createPopup(){if(this.popup){this.closePopup();return}const e=document.createElement("div");e.classList.add("color-picker-popup");const t=document.createElement("div");t.classList.add("color-picker-area");const[i,s]=this.createMatrix();this.matrix=i,this.matrixDot=s,s.style.background="#f00";const[n,a]=this.createSlider({ondrag:()=>this.hueDragging=!0,offdrag:()=>this.hueDragging=!1,change:E=>{this.hue=E,this.onColorChange?.(this._value)}});this.hueThumb=a,n.style.background="linear-gradient(to right, red 0%, #ff0 17%, lime 33%, cyan 50%, blue 66%, #f0f 83%, red 100%)";const[o,l]=this.createSlider({ondrag:()=>this.alphaDragging=!0,offdrag:()=>this.alphaDragging=!1,change:E=>{this.alpha=E,this.onColorChange?.(this._value)}});this.alphaThumb=l,o.classList.add("color-picker-transparent");const c=document.createElement("div");c.classList.add("color-slider"),o.appendChild(c),this.alphaBg=c,t.replaceChildren(i,n,o);const u=document.createElement("div");u.classList.add("color-picker-area");const h=vn.create({label:"HEX",inputs:{hex:{setValue:E=>E.alpha!=1?E.toHexa():E.toHex(),isValid:E=>{const C=/#?([0-9a-fA-F]+)/.exec(E);return C&&[3,4,6,8].includes(C[1].length)?(E[0]!="#"&&(E="#"+E),E):null}}},getValue(){let E=this.inputs.hex.value;return E[0]!="#"&&(E="#"+E),new P(E)},onupdate:E=>{this.value=E,this.onColorChange?.(this._value)}});this.formats.push(h),u.appendChild(h);const d=vn.create({label:"RGBA",inputs:{r:{setValue:E=>Math.round(E.red*255).toString(),isValid:oi(0,255)},g:{setValue:E=>Math.round(E.green*255).toString(),isValid:oi(0,255)},b:{setValue:E=>Math.round(E.blue*255).toString(),isValid:oi(0,255)},a:{setValue:E=>Math.round(E.alpha*100)+"%",isValid:oi(0,100,"%")}},getValue(){return new P({r:li(this.inputs.r.value,0,255),g:li(this.inputs.g.value,0,255),b:li(this.inputs.b.value,0,255),a:li(this.inputs.a.value,0,100,"%")/100})},onupdate:E=>{this.value=E,this.onColorChange?.(this._value)}});this.formats.push(d),u.appendChild(d);const f=vn.create({label:"HSVA",inputs:{h:{setValue:E=>Math.round(Xo(E)[0]*360)+"º",isValid:oi(0,360,"º")},s:{setValue:E=>Math.round(Xo(E)[1]*100)+"%",isValid:oi(0,100,"%")},v:{setValue:E=>Math.round(Xo(E)[2]*100)+"%",isValid:oi(0,100,"%")},a:{setValue:E=>Math.round(E.alpha*100)+"%",isValid:oi(0,100,"%")}},getValue(){return new P({h:li(this.inputs.h.value,0,360,"º"),s:li(this.inputs.s.value,0,100,"%"),v:li(this.inputs.v.value,0,100,"%"),a:li(this.inputs.a.value,0,100,"%")/100})},onupdate:E=>{this.value=E,this.onColorChange?.(this._value)}});this.formats.push(f),u.appendChild(f);const p=vn.create({label:"HSLA",inputs:{h:{setValue:E=>Math.round(Ec(E)[0]*360)+"º",isValid:oi(0,360,"º")},s:{setValue:E=>Math.round(Ec(E)[1]*100)+"%",isValid:oi(0,100,"%")},l:{setValue:E=>Math.round(Ec(E)[2]*100)+"%",isValid:oi(0,100,"%")},a:{setValue:E=>Math.round(E.alpha*100)+"%",isValid:oi(0,100,"%")}},getValue(){return new P({h:li(this.inputs.h.value,0,360,"º"),s:li(this.inputs.s.value,0,100,"%"),l:li(this.inputs.l.value,0,100,"%"),a:li(this.inputs.a.value,0,100,"%")/100})},onupdate:E=>{this.value=E,this.onColorChange?.(this._value)}});this.formats.push(p),u.appendChild(p);const m=document.createElement("div");m.classList.add("color-picker-preview");const g=kc(),b=kc();b.color=this._value,g.color=this._value,m.replaceChildren(g,b),this.previewNew=g,u.appendChild(m),e.replaceChildren(t,u),this.popup=e,this.updatePopup();const w=this._value,v=E=>{E.key=="Escape"&&(E.stopImmediatePropagation(),window.removeEventListener("keydown",v),window.removeEventListener("mousedown",y),this.closePopup(),this.value=w,this.onColorChange?.(this._value))},y=E=>{e.contains(E.target)||(window.removeEventListener("keydown",v),window.removeEventListener("mousedown",y),this.closePopup())};window.addEventListener("keydown",v),window.addEventListener("mousedown",y),document.getElementById("popups").appendChild(e),setTimeout(()=>this.movePosition())}updatePopup(){if(!this.popup)return;this.matrix.style.backgroundColor=`hsl(${this._hue*360} 100% 50%)`,this.matrixDot.style.backgroundColor=this._value.toHex(),this.matrixDragging||(this.matrixDot.style.left=this._sat*200+"px",this.matrixDot.style.top=(1-this._val)*200+"px"),this.hueDragging||(this.hueThumb.style.left=this._hue*200+"px");const e=`rgba(${this._value.red*255}, ${this._value.green*255}, ${this._value.blue*255}`;this.alphaBg.style.background=`linear-gradient(to right, ${e}, 0 ), ${e}, 1))`,this.alphaDragging||(this.alphaThumb.style.left=this._alp*200+"px"),this.formats.forEach(t=>t.setValue(this._value)),this.previewNew.color=this._value}closePopup(){const e=this.popup;this.popup=void 0,e&&(e.classList.add("exiting"),setTimeout(()=>{e.remove()},500))}createMatrix(){const e=document.createElement("div");e.classList.add("color-matrix"),e.style.backgroundColor="#ff0000";const t=document.createElement("div");t.classList.add("color-matrix-x");const i=document.createElement("div");i.classList.add("color-matrix-y");const s=document.createElement("div");s.classList.add("color-matrix-dot"),e.appendChild(s),e.replaceChildren(t,i,s),e.onmousedown=o=>{window.addEventListener("mousemove",n),window.addEventListener("mouseup",a),n(o),this.matrixDragging=!0};const n=o=>{const l=e.getBoundingClientRect(),c=Oe((o.clientX-l.left)/l.width,0,1),u=Oe((o.clientY-l.top)/l.height,0,1);s.style.left=c*l.width+"px",s.style.top=u*l.height+"px",this._sat=c,this.val=1-u,this.onColorChange?.(this._value)},a=()=>{window.removeEventListener("mousemove",n),window.removeEventListener("mouseup",a),this.matrixDragging=!1};return[e,s]}createSlider(e){const t=document.createElement("div");t.classList.add("color-slider");const i=document.createElement("div");i.classList.add("color-slider-thumb"),t.appendChild(i),t.onmousedown=a=>{window.addEventListener("mousemove",s),window.addEventListener("mouseup",n),s(a),e.ondrag?.(),this.onColorChange?.(this._value)};const s=a=>{const o=t.getBoundingClientRect(),l=Oe((a.clientX-o.left)/o.width,0,1);i.style.left=l*o.width+"px",e.change(l)},n=()=>{window.removeEventListener("mousemove",s),window.removeEventListener("mouseup",n),e.offdrag?.()};return[t,i]}movePosition(){const e=this.getBoundingClientRect(),t=e.left+e.width/2-this.popup.clientWidth/2,i=e.top+e.height+10,s=15,n=window.innerWidth-this.popup.clientWidth-15;this.popup.style.left=`${Oe(t,s,n)}px`,this.popup.style.top=`${i}px`,i+this.popup.clientHeight>window.innerHeight-15&&(this.popup.style.transformOrigin="bottom center",this.popup.style.top=`${e.top-this.popup.clientHeight-10}px`)}isActive(){return this.popup!==void 0}}class $u extends Tt{app;grid;actions={};constructor(e){super({title:"Themes",width:600,height:400,disableClose:!1,win_id:"theme-selection",blocking:!1}),this.app=e,this.initView(),this.loadGrid()}initView(){this.viewElement.replaceChildren();const e=document.createElement("div");e.classList.add("padding");const t=document.createElement("div");t.classList.add("pref-search");const i=document.createElement("input");i.classList.add("pref-search-bar"),i.type="text",i.placeholder="Search for a theme...",i.oninput=()=>{this.filterGrid(i.value)},t.appendChild(i);const s=document.createElement("div");s.classList.add("theme-grid"),this.grid=s;const n=this.createOptionTray();e.replaceChildren(t,s,n),this.viewElement.appendChild(e)}createOptionTray(){const e=document.createElement("div");e.classList.add("theme-tray");const t=document.createElement("button");t.appendChild(Ce.getIcon("PLUS",16)),t.appendChild(document.createTextNode("New")),t.onclick=()=>{const l=this.getNonConflictingName("new-theme");$e.createUserTheme(l),$e.loadTheme(l),this.loadGrid()},this.actions.add=t,e.appendChild(t);const i=document.createElement("button");i.appendChild(Ce.getIcon("COPY",16)),i.appendChild(document.createTextNode("Duplicate")),i.onclick=()=>{const l=this.getNonConflictingName(x.general.theme);$e.createUserTheme(l,$e.getCurrentTheme()),$e.loadTheme(l),this.loadGrid()},i.disabled=!0,this.actions.copy=i,e.appendChild(i);const s=document.createElement("button");s.classList.add("confirm"),s.appendChild(Ce.getIcon("EDIT",16)),s.appendChild(document.createTextNode("Edit")),s.onclick=()=>{this.closeWindow(),this.app.windowManager.openWindow(new ja(this.app))},s.disabled=!0,this.actions.edit=s,e.appendChild(s);const n=document.createElement("button");n.classList.add("delete"),n.appendChild(Ce.getIcon("TRASH",16)),n.appendChild(document.createTextNode("Delete")),n.onclick=()=>{this.app.windowManager.openWindow(new Wa(this.app,"Delete theme","Are you sure you want to delete this theme?",[{type:"default",label:"Cancel"},{type:"delete",label:"Delete",callback:()=>{$e.deleteUserTheme(x.general.theme),this.loadGrid()}}]))},n.disabled=!0,this.actions.del=n,e.appendChild(n);const a=document.createElement("button");a.appendChild(Ce.getIcon("UPLOAD",16)),a.appendChild(document.createTextNode("Import")),a.onclick=async()=>{(await ey({_preferPolyfill:!1,excludeAcceptAllOption:!1,multiple:!0,accepts:[{extensions:["txt"]}]})).forEach(c=>{c.getFile().then(u=>u.text()).then(u=>{const h=$e.parseThemeText(u);let d=er(c.name,".txt");if(!h){Ee.createFormatted("Failed to load theme "+d,"error");return}d=this.getNonConflictingName(d),$e.createUserTheme(d,h),this.loadGrid()})})},this.actions.imp=a,e.appendChild(a);const o=document.createElement("button");return o.appendChild(Ce.getIcon("DOWNLOAD",16)),o.appendChild(document.createTextNode("Export")),o.onclick=()=>{const l=$e.exportCurrentTheme({spaces:!0}),c=new File([l],x.general.theme+".txt",{type:"text/plain"}),u=document.createElement("a"),h=URL.createObjectURL(c);u.href=h,u.download=c.name,document.body.appendChild(u),u.click(),document.body.removeChild(u),window.URL.revokeObjectURL(h)},this.actions.exp=o,o.disabled=!0,e.appendChild(o),e}loadGrid(){this.grid.replaceChildren();const e=$e.getThemes();if(e)for(const[t,i]of Object.entries(e)){let s=t;const n=Cs[t]!==void 0,a=document.createElement("div"),o=document.createElement("div");if(o.classList.add("inlineEdit"),n)o.style.fontWeight="bold";else{o.contentEditable="true";let c=t;o.onfocus=()=>{c=o.innerText},o.onkeydown=u=>{u.key=="Enter"&&(o.blur(),u.preventDefault()),u.key=="Escape"&&(o.innerText=c,o.blur(),u.stopImmediatePropagation())},o.onblur=()=>{if(o.innerText==c)return;const u=this.getNonConflictingName(o.innerText);$e.renameUserTheme(c,u),$e.loadTheme(u),o.innerText=u,s=u,a.dataset.id=u}}const l=document.createElement("div");l.classList.add("theme-preview-grid");for(const c of K3){const u=document.createElement("div");u.style.backgroundColor=i[c].toHex(),l.appendChild(u)}o.innerText=t,a.classList.add("theme-cell"),o.classList.add("theme-title"),a.replaceChildren(o,l),this.grid.appendChild(a),t==x.general.theme&&(a.classList.add("selected"),setTimeout(()=>{a.scrollIntoView({behavior:x.general.smoothAnimations?"smooth":"instant",block:"center"})}),this.actions.edit.disabled=n,this.actions.del.disabled=n,this.actions.copy.disabled=!1,this.actions.exp.disabled=!1),a.dataset.id=t,a.onclick=()=>{x.general.theme!=s&&($e.loadTheme(s),this.removeAllSelections(),a.classList.add("selected"),this.actions.edit.disabled=n,this.actions.del.disabled=n,this.actions.copy.disabled=!1,this.actions.exp.disabled=!1)}}}removeAllSelections(){[...this.grid.querySelectorAll(".selected")].forEach(e=>e.classList.remove("selected"))}filterGrid(e){[...this.grid.children].forEach(t=>{if(!(t instanceof HTMLDivElement))return;const i=t,s=this.containsQuery(e,i.dataset.id);i.style.display=s?"":"none"})}containsQuery(e,t){return t?t.toLowerCase().includes(e.trim().toLowerCase()):!1}getNonConflictingName(e){const t=$e.getThemes();if(t[e]==null)return e;let i=2;const s=/([^]+)-(\d+)$/.exec(e);s&&(e=s[1],i=parseInt(s[2]));let n=`${e}-${i}`;for(;t[n]!==void 0;)n=`${e}-${i}`,i++;return n}}class ja extends Tt{app;pickers={};handlers=[];linkBlacklist=new Set;static isOpen=!1;constructor(e){super({title:"Theme Color Editor",width:500,height:400,win_id:"theme-editor",disableClose:!0}),this.app=e,this.initView(),ja.isOpen=!0}initView(){this.viewElement.replaceChildren();const e=document.createElement("div");e.classList.add("padding");const t=document.createElement("div");t.classList.add("theme-color-grid"),Z3.forEach(l=>{t.appendChild(this.createGroup(l))});const i=document.createElement("div");i.classList.add("menu-options");const s=document.createElement("div");s.classList.add("menu-left");const n=document.createElement("div");n.classList.add("menu-right"),i.appendChild(s),i.appendChild(n);const a=document.createElement("button");a.innerText="Cancel",a.onclick=()=>{this.closeWindow(),$e.loadTheme(x.general.theme),this.app.windowManager.openWindow(new $u(this.app))},s.appendChild(a);const o=document.createElement("button");o.innerText="Save",o.classList.add("confirm"),o.onclick=()=>{$e.setUserTheme(x.general.theme,$e.getCurrentTheme()),$e.loadTheme(x.general.theme),this.app.windowManager.openWindow(new $u(this.app)),this.closeWindow()},n.appendChild(o),e.replaceChildren(t,i),this.viewElement.appendChild(e)}createGroup(e){const t=document.createElement("div");t.classList.add("theme-group");const i=document.createElement("div");i.classList.add("theme-group-label"),i.innerText=e.name;const s=document.createElement("div");return s.classList.add("theme-picker-grid"),e.ids.forEach(n=>{s.appendChild(this.createPicker(n))}),t.replaceChildren(i,s),t}createPicker(e){const t=()=>{const u=new P($e.getCurrentTheme()[e.id]);o.innerText=u.toHex()+" | "+Math.round(u.alpha*100)+"%",!l.isActive()&&(l.value=u)},i=u=>{const h=$e.getCurrentTheme();h[e.id]=u,$e._applyTheme(this.updateLinks(e.id,h))},s=document.createElement("div");s.classList.add("theme-color-cell"),Lm[e.id]!=""&&Ze(s,{content:Lm[e.id]});const n=_c[e.id];n&&(s.onmouseover=()=>{Object.keys(n).forEach(u=>{this.linkBlacklist.has(u)||this.pickers[u].classList.add("linked")})},s.onmouseout=()=>{Object.keys(n).forEach(u=>{this.pickers[u].classList.remove("linked")})});const a=document.createElement("div");a.innerText=e.label;const o=document.createElement("div");o.classList.add("theme-color-detail");const l=gh.create({value:"white",width:30,height:30});l.onColorChange=i,s.replaceChildren(a,o,l);const c=this.getLink(e.id);if(c!==null){const u=document.createElement("div");u.classList.add("ico-checkbox");const h=Ce.getIcon("LINK",16),d=Ce.getIcon("LINK_BROKEN",16);let f=!0;const p=()=>{f?this.linkBlacklist.delete(e.id):this.linkBlacklist.add(e.id),h.style.display=f?"":"none",d.style.display=f?"none":""};u.onclick=()=>{f=!f,p()},Ze(u,{onShow(g){g.setContent(f?`Linked to ${c}`:"Unlinked")}}),Ze(u,{trigger:"click",onShow(g){g.setContent(f?`Linked to ${c}`:"Unlinked")}}),p(),u.replaceChildren(h,d),s.appendChild(u);const m=g=>{f&&(f=!1,p()),i(g)};l.onColorChange=m}return t(),H.on("themeChanged",t),this.handlers.push(t),this.pickers[e.id]=s,s}getLink(e){for(const[t,i]of Object.entries(_c))if(e in i)return t;return null}average(e){return(e.red+e.green+e.blue)/3}lighten(e,t){return new P(Gd(new P(e).toNumber(),1+t/100))}add(e,t){return new P(J3(new P(e).toNumber(),t))}updateLinks(e,t){const i=new Set,s=[e];for(;s.length!=0;){const n=s.shift(),a=_c[n];if(a)for(const[o,l]of Object.entries(a))this.linkBlacklist.has(o)||i.has(o)||(t[o]=l.bind(this)(t[n]),s.push(o),i.add(o))}return t}onClose(){ja.isOpen=!1}}const hi=r=>r,Wm={offset:{title:"Offset",element:hi({create:r=>{const e=ft.create(0,x.general.spinnerStep/100,3);return e.onChange=t=>{const i=r.chartManager.loadedChart.timingData;t!=null&&(i.hasChartOffset()?i.setOffset(t):i.songTimingData.setOffset(t))},e.view},update:(r,e)=>{const t=r.querySelector(".spinner-input");if(document.activeElement==t)return;const i=e.getOffset();t.value!=ae(i,3).toFixed(3)&&(t.value=ae(i,3).toFixed(3))}})},bpm:{title:"BPM",element:hi({create:r=>{const e=ft.create(120,void 0,3);return e.onChange=t=>{const i=r.chartManager.loadedChart.timingData;if(t==null){const s=r.chartManager.beat;i.deleteMulti([{type:"BPMS",beat:s}]);return}i.insertMulti([{type:"BPMS",beat:r.chartManager.beat,value:t}])},e.view},update:(r,e,t)=>{const i=r.querySelector(".spinner-input");if(document.activeElement==i)return;const s=e.getEventAtBeat("BPMS",t)?.value??120;i.value!=ae(s,3).toFixed(3)&&(i.value=ae(s,3).toFixed(3))}})},stop:{title:"Stop",element:hi({create:r=>{const e=ft.create(0,void 0,3);return e.onChange=t=>{const i=r.chartManager.loadedChart.timingData;if(t==null||t==0){const s=r.chartManager.beat;i.deleteMulti([{type:"STOPS",beat:s}]);return}i.insertMulti([{type:"STOPS",beat:r.chartManager.beat,value:t}])},e.view},update:(r,e,t)=>{const i=r.querySelector(".spinner-input");if(document.activeElement==i)return;const s=e.getEventAtBeat("STOPS",t);let n=s?.value??0;t!=s?.beat&&(n=0),i.value!=ae(n,3).toFixed(3)&&(i.value=ae(n,3).toFixed(3))}})},delay:{title:"Delay",element:hi({create:r=>{const e=ft.create(0,void 0,3);return e.onChange=t=>{const i=r.chartManager.loadedChart.timingData;if(t==null||t==0){const s=r.chartManager.beat;i.deleteMulti([{type:"DELAYS",beat:s}]);return}i.insertMulti([{type:"DELAYS",beat:r.chartManager.beat,value:t}])},e.view},update:(r,e,t)=>{const i=r.querySelector(".spinner-input");if(document.activeElement==i)return;const s=e.getEventAtBeat("DELAYS",t);let n=s?.value??0;t!=s?.beat&&(n=0),i.value!=ae(n,3).toFixed(3)&&(i.value=ae(n,3).toFixed(3))}})},warp:{title:"Warp",element:hi({create:r=>{const e=ft.create(0,void 0,3,0);return e.onChange=t=>{const i=r.chartManager.loadedChart.timingData;if(t==null||t==0){const s=r.chartManager.beat;i.deleteMulti([{type:"WARPS",beat:s}]);return}t<0||i.insertMulti([{type:"WARPS",beat:r.chartManager.beat,value:t}])},e.view},update:(r,e,t)=>{const i=r.querySelector(".spinner-input");if(document.activeElement==i)return;const s=e.getEventAtBeat("WARPS",t);let n=s?.value??0;t!=s?.beat&&(n=0),i.value!=ae(n,3).toFixed(3)&&(i.value=ae(n,3).toFixed(3))}})},timeSig:{title:"Time Sig.",element:hi({create:r=>{const e=document.createElement("div");e.classList.add("flex-column-gap");const t=ft.create(4,1,0,1);t.onChange=s=>{const n=r.chartManager.loadedChart.timingData;if(s==null){const a=r.chartManager.beat;n.deleteMulti([{type:"TIMESIGNATURES",beat:a}]);return}s<1||n.insertMulti([{type:"TIMESIGNATURES",beat:r.chartManager.beat,upper:s,lower:i.value}])};const i=ft.create(4,1,0,1);return i.onChange=s=>{const n=r.chartManager.loadedChart.timingData;if(s==null){const a=r.chartManager.beat;n.deleteMulti([{type:"TIMESIGNATURES",beat:a}]);return}s<1||n.insertMulti([{type:"TIMESIGNATURES",beat:r.chartManager.beat,upper:t.value,lower:s}])},e.appendChild(t.view),e.appendChild(i.view),e},update:(r,e,t)=>{const i=r.firstElementChild.querySelector(".spinner-input"),s=r.lastElementChild.querySelector(".spinner-input"),n=e.getEventAtBeat("TIMESIGNATURES",t),a=n?.upper??4,o=n?.lower??4;document.activeElement!=i&&i.value!=Math.round(a).toString()&&(i.value=Math.round(a).toString()),document.activeElement!=s&&s.value!=Math.round(o).toString()&&(s.value=Math.round(o).toString())}})},tick:{title:"Tickcount",element:hi({create:r=>{const e=ft.create(4,1,0,0);return e.onChange=t=>{const i=r.chartManager.loadedChart.timingData;if(t==null){const s=r.chartManager.beat;i.deleteMulti([{type:"TICKCOUNTS",beat:s}]);return}t<0||i.insertMulti([{type:"TICKCOUNTS",beat:r.chartManager.beat,value:t}])},e.view},update:(r,e,t)=>{const i=r.querySelector(".spinner-input");if(document.activeElement==i)return;const s=e.getEventAtBeat("TICKCOUNTS",t)?.value??4;i.value!=Math.round(s).toString()&&(i.value=Math.round(s).toString())}})},combo:{title:"Combo",element:hi({create:r=>{const e=document.createElement("div");e.classList.add("flex-column-gap");const t=ft.create(1,1,0,0);t.onChange=s=>{const n=r.chartManager.loadedChart.timingData;if(s==null){const a=r.chartManager.beat;n.deleteMulti([{type:"COMBOS",beat:a}]);return}s<0||n.insertMulti([{type:"COMBOS",beat:r.chartManager.beat,hitMult:s,missMult:i.value}])};const i=ft.create(1,1,0,0);return i.onChange=s=>{const n=r.chartManager.loadedChart.timingData;if(s==null){const a=r.chartManager.beat;i.setValue(r.chartManager.loadedChart?.timingData.getEventAtBeat("COMBOS",a)?.missMult??1);return}s<0||n.insertMulti([{type:"COMBOS",beat:r.chartManager.beat,hitMult:t.value,missMult:s}])},e.appendChild(t.view),e.appendChild(i.view),e},update:(r,e,t)=>{const i=r.firstElementChild.querySelector(".spinner-input"),s=r.lastElementChild.querySelector(".spinner-input"),n=e.getEventAtBeat("COMBOS",t),a=n?.hitMult??1,o=n?.missMult??1;document.activeElement!=i&&i.value!=Math.round(a).toString()&&(i.value=Math.round(a).toString()),document.activeElement!=s&&s.value!=Math.round(o).toString()&&(s.value=Math.round(o).toString())}})},speed:{title:"Speed",element:hi({create:r=>{const e=document.createElement("div");e.classList.add("flex-column-gap");const t=()=>{r.chartManager.loadedChart.timingData.insertMulti([{type:"SPEEDS",beat:r.chartManager.beat,value:i.value,delay:s.value,unit:n.value=="Beats"?"B":"T"}])},i=ft.create(1,.1,0);i.onChange=a=>{const o=r.chartManager.loadedChart.timingData;if(a==null){const l=r.chartManager.beat;o.deleteMulti([{type:"SPEEDS",beat:l}]);return}t()};const s=ft.create(1,.1,0);s.onChange=a=>{a==null||a<0||t()};const n=Oi.create(["Beat","Time"],"Beats");return n.onChange=t,e.appendChild(i.view),e.appendChild(s.view),e.appendChild(n.view),e},update:(r,e,t)=>{const i=r.firstElementChild.querySelector(".spinner-input"),s=r.children[1].querySelector(".spinner-input"),n=e.getEventAtBeat("SPEEDS",t),a=n?.value??1,o=n?.delay??0,l=n?.unit=="B"?"Beat":"Time";document.activeElement!=i&&i.value!=ae(a,3).toFixed(3)&&(i.value=ae(a,3).toFixed(3)),document.activeElement!=s&&s.value!=ae(o,3).toFixed(3)&&(s.value=ae(o,3).toFixed(3)),s.disabled=n?.beat!=t;const c=r.lastElementChild.querySelector(".dropdown-selected-text");c.innerText!=l&&(c.innerText=l),n?.beat!=t?c.classList.add("disabled"):c.classList.remove("disabled")}})},scroll:{title:"Scroll",element:hi({create:r=>{const e=ft.create(1,void 0,3);return e.onChange=t=>{const i=r.chartManager.loadedChart.timingData;if(t==null){const s=r.chartManager.beat;i.deleteMulti([{type:"SCROLLS",beat:s}]);return}i.insertMulti([{type:"SCROLLS",beat:r.chartManager.beat,value:t}])},e.view},update:(r,e,t)=>{const i=r.querySelector(".spinner-input");if(document.activeElement==i)return;const s=e.getEventAtBeat("SCROLLS",t)?.value??1;i.value!=ae(s,3).toFixed(3)&&(i.value=ae(s,3).toFixed(3))}})},fake:{title:"Fake",element:hi({create:r=>{const e=ft.create(1,void 0,3,0);return e.onChange=t=>{const i=r.chartManager.loadedChart.timingData;if(t==null){const s=r.chartManager.beat;i.deleteMulti([{type:"FAKES",beat:s}]);return}t<0||i.insertMulti([{type:"FAKES",beat:r.chartManager.beat,value:t}])},e.view},update:(r,e,t)=>{const i=r.querySelector(".spinner-input");if(document.activeElement==i)return;const s=e.getEventAtBeat("FAKES",t);let n=s?.value??1;t!=s?.beat&&(n=0),i.value!=ae(n,3).toFixed(3)&&(i.value=ae(n,3).toFixed(3))}})},label:{title:"Label",element:hi({create:r=>{const e=document.createElement("input");return e.type="text",e.autocomplete="off",e.spellcheck=!1,e.onkeydown=t=>{t.key=="Enter"&&e.blur()},e.onblur=()=>{const t=r.chartManager.loadedChart.timingData;if(e.value==""){const i=r.chartManager.beat;t.deleteMulti([{type:"LABELS",beat:i}]);return}t.insertMulti([{type:"LABELS",beat:r.chartManager.beat,value:e.value}])},e},update:(r,e,t)=>{const i=r;if(document.activeElement==i)return;const n=e.getEventAtBeat("LABELS",t)?.value??"";i.value!=n&&(i.value=n)}})}};class xk extends Tt{app;lastBeat;interval;changeHandler=()=>this.setData();constructor(e){super({title:"Edit Timing Data",width:300,height:340,disableClose:!1,win_id:"timing_data",blocking:!1}),this.app=e,this.lastBeat=Math.round(this.app.chartManager.beat*1e3)/1e3,this.initView(),this.interval=setInterval(()=>{Math.round(this.app.chartManager.beat*1e3)/1e3!=this.lastBeat&&(this.lastBeat=Math.round(this.app.chartManager.beat*1e3)/1e3,this.setData())},17),H.on("timingModified",this.changeHandler),H.on("chartLoaded",this.changeHandler)}onClose(){H.off("timingModified",this.changeHandler),clearInterval(this.interval)}initView(){this.viewElement.replaceChildren(),this.viewElement.classList.add("timing-data");const e=document.createElement("div");e.classList.add("padding"),Object.values(Wm).forEach(t=>{const i=document.createElement("div");i.classList.add("label"),i.innerText=t.title;const s=t.element.create(this.app);e.appendChild(i),e.appendChild(s)}),this.viewElement.appendChild(e),this.setData()}setData(){this.app.chartManager.loadedChart&&Object.values(Wm).forEach((e,t)=>{const i=this.viewElement.children[0].children[t*2+1];e.element.update(i,this.app.chartManager.loadedChart.timingData,this.lastBeat)})}}const $m=[{type:"group",id:"app",label:"App",disable:()=>window.nw===void 0,children:[{type:"subgroup",children:[{type:"item",label:"Window Width",id:"app.width",input:{type:"number",step:50,min:300,onChange:(r,e)=>{const t=nw.Window.get();t.isFullscreen||(t.width=e)}}},{type:"item",label:"Window Height",id:"app.height",input:{type:"number",step:50,min:300,onChange:(r,e)=>{const t=nw.Window.get();t.isFullscreen||(t.height=e)}}}]},{type:"subgroup",children:[{type:"item",label:"Fullscreen",id:"app.fullscreen",input:{type:"checkbox",onChange:(r,e)=>{const t=nw.Window.get();e?nw.Window.get().enterFullscreen():(t.hide(),nw.Window.get().leaveFullscreen(),t.show())}}}]}]},{type:"group",id:"general",label:"General",children:[{type:"subgroup",children:[{type:"item",label:"Smooth Animations",id:"general.smoothAnimations",input:{type:"checkbox",onChange:(r,e)=>{e?document.body.classList.add("animated"):document.body.classList.remove("animated")}}},{type:"item",label:"Autosave interval",id:"general.autosaveInterval",input:{type:"slider",min:30,step:5,max:600,hardMin:15,hardMax:2**31-1},tooltip:"Interval in seconds between autosaves"},{type:"item",label:"Warn before exit",id:"general.warnBeforeExit",input:{type:"checkbox"},tooltip:"Warn before exiting the editor if you have unsaved changes."},{type:"item",label:"Spinner step",id:"general.spinnerStep",input:{type:"slider",min:0,step:.1,max:5,hardMin:0,hardMax:2**31-1},tooltip:"The default increment for all number spinners."}]}]},{type:"group",id:"chart",label:"Chart",children:[{type:"subgroup",label:"Playfield",children:[{type:"subgroup",children:[{type:"item",label:"Enable mouse placement",id:"chart.mousePlacement",input:{type:"checkbox"}},{type:"item",label:"Directional hold placement behavior",id:"chart.defaultHoldPlacement",input:{type:"checkbox"},tooltip:"Changes the hold placement behavior. By default, holds can only be extended in one direction when placed. Turn this off to mimic the behavior of AV/Stepmania."}]},{type:"subgroup",children:[{type:"item",label:"Zoom",id:"chart.zoom",input:{type:"slider",min:50,step:1,max:200,hardMax:2**31-1,transformers:{serialize:r=>r*100,deserialize:r=>r/100}}},{type:"item",label:"Reverse playfield",id:"chart.reverse",input:{type:"checkbox"}}]},{type:"subgroup",children:[{type:"item",label:"Allow receptor dragging",id:"chart.allowReceptorDrag",input:{type:"checkbox"},tooltip:"Allows the receptors to be dragged to move the playfield."},{type:"item",label:"X position",id:"chart.receptorXPos",input:{type:"slider",min:-400,max:400,hardMin:-(2**31-1),hardMax:2**31-1}},{type:"item",label:"Y position",id:"chart.receptorYPos",input:{type:"slider",min:-400,max:0,hardMin:-(2**31-1),hardMax:2**31-1}}]},{type:"subgroup",children:[{type:"item",label:"Draw length",id:"chart.maxDrawBeats",input:{type:"slider",min:0,max:30,hardMax:2**31-1},tooltip:"Maximum number of beats to draw notes. Increasing this works well for songs with high bpm but can affect performance. Only applies to XMod."},{type:"item",label:"Draw length past receptors",id:"chart.maxDrawBeatsBack",input:{type:"slider",min:0,max:30,hardMax:2**31-1},tooltip:"Maximum number of beats to draw notes past the receptors. Increasing this can affect performance. Only applies to XMod."}]},{type:"subgroup",children:[{type:"item",label:"Draw noteflashes",id:"chart.drawNoteFlash",input:{type:"checkbox"}},{type:"item",label:"Draw note icons",id:"chart.drawIcons",input:{type:"checkbox"},tooltip:"Draw indicators above notes that some noteskins may not differentiate, like Fakes and Lifts."}]}]},{type:"subgroup",label:"Scrolling",children:[{type:"item",label:"Scroll sensitivity",id:"chart.scroll.scrollSensitivity",input:{type:"slider",min:0,step:1,max:200,hardMax:2**31-1,transformers:{serialize:r=>r*100,deserialize:r=>r/100}},tooltip:"Adjust the scroll sensitivity when scrolling through the chart."},{type:"item",label:"Snap every scroll",id:"chart.scroll.scrollSnapEveryScroll",input:{type:"checkbox"},tooltip:"Whether each scroll movement corresponds to moving one snap unit when scrolling. Turning this on will have the same behavior as ArrowVortex. Recommended on for those using a mouse, off for those using trackpad."},{type:"item",label:"Invert zoom in/out",id:"chart.scroll.invertZoomScroll",input:{type:"checkbox"},tooltip:"Inverts the zoom in/out control when scrolling."},{type:"item",label:"Invert scroll direction when in reverse",id:"chart.scroll.invertReverseScroll",input:{type:"checkbox"}}]},{type:"subgroup",label:"Waveform",children:[{type:"item",label:"Draw waveform",id:"chart.waveform.enabled",input:{type:"checkbox"}},{type:"subgroup",children:[{type:"item",label:"Color",id:"chart.waveform.color",input:{type:"color"}}]},{type:"subgroup",children:[{type:"item",label:"Draw filtered waveform",id:"chart.waveform.allowFilter",input:{type:"checkbox"}},{type:"item",label:"Filtered color",id:"chart.waveform.filteredColor",input:{type:"color"}}]},{type:"item",label:"Line height",id:"chart.waveform.lineHeight",input:{type:"slider",min:1,max:3,step:.1,hardMax:100},tooltip:"The height of each line of the waveform. Increasing this can help performance."},{type:"item",label:"Antialiasing",id:"chart.waveform.antialiasing",input:{type:"checkbox"}},{type:"item",label:"Allow speed changes",id:"chart.waveform.speedChanges",input:{type:"checkbox"},tooltip:"Allows the waveform to be affected by SPEEDS and SCROLLS."}]},{type:"subgroup",label:"Note Layout",children:[{type:"item",label:"Show Note Layout",id:"chart.noteLayout.enabled",input:{type:"checkbox"}}]},{type:"subgroup",label:"NPS Graph",children:[{type:"item",label:"Show NPS Graph",id:"chart.npsGraph.enabled",input:{type:"checkbox"}},{type:"subgroup",children:[{type:"item",label:"Start Color",id:"chart.npsGraph.color1",input:{type:"color"}},{type:"item",label:"End Color",id:"chart.npsGraph.color2",input:{type:"color"}}]}]}]},{type:"group",id:"audio",label:"Audio",children:[{type:"subgroup",children:[{type:"item",label:"Master volume",id:"audio.masterVolume",input:{type:"slider",min:0,step:1,max:100,hardMax:2**31-1,transformers:{serialize:r=>r*100,deserialize:r=>r/100}}},{type:"item",label:"Song volume",id:"audio.songVolume",input:{type:"slider",min:0,step:1,max:100,hardMax:2**31-1,transformers:{serialize:r=>r*100,deserialize:r=>r/100}}},{type:"item",label:"Sound effect volume",id:"audio.soundEffectVolume",input:{type:"slider",min:0,step:1,max:100,hardMax:2**31-1,transformers:{serialize:r=>r*100,deserialize:r=>r/100}}}]},{type:"subgroup",children:[{type:"item",label:"Enable assist tick",id:"audio.assistTick",input:{type:"checkbox"},tooltip:"Plays a sound when a note passes the receptors"},{type:"item",label:"Enable metronome",id:"audio.metronome",input:{type:"checkbox"}}]},{type:"subgroup",children:[{type:"item",label:"Allow filters to affect audio",id:"audio.allowFilter",input:{type:"checkbox",onChange:r=>{r.chartManager.chartAudio.reload()}}},{type:"item",label:"Enable metronome",id:"audio.metronome",input:{type:"checkbox"}}]}]},{type:"group",id:"play",label:"Play mode",children:[{type:"subgroup",label:"Calibration",children:[{type:"item",label:"Global offset",id:"play.offset",input:{type:"slider",min:-1,step:.001,max:1,hardMin:-(2**31-1),hardMax:2**31-1},tooltip:"Offset in seconds when playing a chart. Set to positive if you are hitting early and negative if you are hitting late."},{type:"item",label:"Sound effect offset",id:"play.effectOffset",input:{type:"slider",min:-1,step:.001,max:1,hardMin:-(2**31-1),hardMax:2**31-1},tooltip:"Offset in seconds when playing sound effects like assist tick and metronome."},{type:"item",label:"Visual offset",id:"play.visualOffset",input:{type:"slider",min:-1,step:.001,max:1,hardMin:-(2**31-1),hardMax:2**31-1},tooltip:"Offset in seconds when displaying notes."}]},{type:"subgroup",children:[{type:"item",label:"Judgement tilt",id:"play.judgementTilt",input:{type:"checkbox"},tooltip:"Tilts the judgement text left if you are hitting early and right if you are hitting late."},{type:"item",label:"Hide barlines during play",id:"play.hideBarlines",input:{type:"checkbox"}}]},{type:"subgroup",label:"Timing windows",children:[{type:"item",id:"play.timingCollection",label:"Timing window collection",input:{type:"dropdown",advanced:!1,get items(){return Object.keys(rt.getCollections())}}},{type:"item",id:"play.timingWindowScale",label:"Timing window scale",input:{type:"slider",min:0,step:.001,max:2,hardMax:2**31-1},tooltip:"Scales all timing windows by the given amount."},{type:"item",id:"play.timingWindowAdd",label:"Timing window add",input:{type:"slider",min:0,step:.001,max:1,hardMax:2**31-1},tooltip:"Adds this value (in seconds) to all timing windows."}]}]},{type:"group",id:"performance",label:"Performance",children:[{type:"item",label:"Antialiasing",id:"performance.antialiasing",input:{type:"checkbox"}},{type:"item",label:"Resolution",id:"performance.resolution",input:{type:"slider",min:1,step:1,max:4,hardMin:0,hardMax:2**31-1},tooltip:"Requires a reload."}]},{type:"group",id:"debug",label:"Debug",children:[{type:"item",label:"Show FPS",id:"debug.showFPS",input:{type:"checkbox"}},{type:"item",label:"Show rendering timers",id:"debug.showTimers",input:{type:"checkbox"}},{type:"item",label:"Show scrolls/speeds debug visual",id:"debug.showScroll",input:{type:"checkbox"}},{type:"item",label:"Show noteskin errors",id:"debug.showNoteskinErrors",input:{type:"checkbox"}}]}];class _k extends Tt{app;observer;sectionContainer;constructor(e){super({title:"Options",width:600,height:400,disableClose:!1,win_id:"user_options",blocking:!1}),this.app=e,this.initView(),H.on("resize",()=>{this.move(window.innerWidth/2-this.options.width/2,window.innerHeight/2-this.options.height/2)})}initView(){this.viewElement.replaceChildren();const e=document.createElement("div");e.classList.add("padding");const t=document.createElement("div");t.classList.add("pref-container");const i=document.createElement("div");i.classList.add("pref-search");const s=document.createElement("input");s.classList.add("pref-search-bar"),s.type="text",s.placeholder="Search for an option...",s.oninput=()=>{a.replaceChildren(),o.replaceChildren(...this.createOptions(this.filterOptions(s.value)))},i.appendChild(s);const n=document.createElement("div");n.classList.add("pref-scrollers");const a=document.createElement("div");a.classList.add("pref-section-scroller"),this.sectionContainer=a;const o=document.createElement("div");o.classList.add("pref-option-scroller"),n.replaceChildren(a,o),this.observer=new IntersectionObserver(l=>{l.forEach(c=>{const u=c.target.dataset.id,h=a.querySelector(`.pref-section[data-id=${u}]`);h&&(c.intersectionRatio>0?h.classList.add("selected"):h.classList.remove("selected"))})},{}),t.replaceChildren(i,n),a.replaceChildren(),o.replaceChildren(...this.createOptions($m)),e.appendChild(t),this.viewElement.appendChild(e)}createOptions(e){return e.filter(t=>!t.disable?.(this.app)).map(t=>{const i=this.makeOption(t);return t.type=="group"&&(this.observer.observe(i),this.sectionContainer?.appendChild(this.createEmptyGroup(t))),i})}makeOption(e){const t=document.createElement("div");t.classList.add("pref-"+e.type),(e.type=="group"||e.type=="item")&&(t.dataset.id=e.id);const i=document.createElement("div");i.classList.add(`pref-${e.type}-label`),e.label!==void 0&&(i.innerText=e.label,t.appendChild(i));const s=Ce.getIcon("REVERT");if(e.type=="item"&&(s.style.width="12px",s.addEventListener("click",()=>{x.applyOption([e.id,x.getDefaultOption(e.id)]);const n=e.input.onChange;n?.(this.app,x.getDefaultOption(e.id)),t.replaceWith(this.makeOption(e))}),s.style.display=x.getDefaultOption(e.id)===x.getOption(e.id)?"none":"block",t.appendChild(s)),e.type=="item"){const n=x.getOption(e.id);let a;if(!e.input)return t;switch(i.innerText=e.label,e.input.type){case"checkbox":{const o=document.createElement("input"),l=e.input.onChange;o.type="checkbox",o.checked=n,o.onblur=null,o.onchange=()=>{x.applyOption([e.id,o.checked]),s.style.display=x.getDefaultOption(e.id)===x.getOption(e.id)?"none":"block",l?.(this.app,o.checked)},o.classList.add("pref-input","right"),o.onkeydown=c=>{c.key=="Enter"&&o.blur()},a=o;break}case"dropdown":{if(e.input.advanced){const o=e.input.transformers.deserialize,l=e.input.transformers.serialize,c=e.input.onChange,u=Oi.create(e.input.items,l(n));u.onChange(h=>{x.applyOption([e.id,o(h)]),s.style.display=x.getDefaultOption(e.id)===x.getOption(e.id)?"none":"block",c?.(this.app,o(h))}),u.view.classList.add("pref-input","dropdown-right"),a=u.view}else{const o=e.input.onChange,l=Oi.create(e.input.items,n);l.onChange(c=>{x.applyOption([e.id,c]),s.style.display=x.getDefaultOption(e.id)===x.getOption(e.id)?"none":"block",o?.(this.app,c)}),l.view.classList.add("pref-input","dropdown-right"),a=l.view}break}case"number":{const o=e.input.transformers?.deserialize??(h=>h),l=e.input.transformers?.serialize??(h=>h),c=e.input.onChange,u=ft.create(l(n),e.input.step,e.input.precision,e.input.min,e.input.max);u.onChange=h=>{if(!h){u.setValue(l(h));return}x.applyOption([e.id,o(h)]),s.style.display=x.getDefaultOption(e.id)===x.getOption(e.id)?"none":"block",c?.(this.app,o(h))},a=u.view;break}case"slider":{const o=e.input.transformers?.deserialize??(m=>m),l=e.input.transformers?.serialize??(m=>m),c=e.input.onChange,u=document.createElement("div");u.style.display="flex",u.style.alignItems="center";const h=document.createElement("input");h.type="range",h.min=e.input.min?.toString()??"",h.max=e.input.max?.toString()??"",h.step=e.input.step?.toString()??"1",h.value=l(n).toString();const d=document.createElement("input");d.type="text",d.value=(Math.round(l(n)*1e3)/1e3).toString();const f=e.input.min??e.input.hardMin??-Number.MAX_VALUE,p=e.input.max??e.input.hardMax??Number.MAX_VALUE;d.onblur=()=>{let m=Na(d.value);if(m===null){d.value=(Math.round(l(n)*1e3)/1e3).toString();return}m=Oe(m,f,p),d.value=ae(m,3).toString(),d.blur(),d.value==""?d.value=l(m).toString():x.applyOption([e.id,o(m)]),h.value=m.toString(),s.style.display=x.getDefaultOption(e.id)===x.getOption(e.id)?"none":"block",c?.(this.app,o(m))},h.oninput=()=>{const m=parseFloat(h.value);d.value=ae(m,3).toString(),x.applyOption([e.id,o(m)]),s.style.display=x.getDefaultOption(e.id)===x.getOption(e.id)?"none":"block"},d.style.width="50px",d.onkeydown=m=>{m.key=="Enter"&&d.blur()},u.appendChild(h),u.appendChild(d),a=u;break}case"text":{const o=e.input.onChange,l=document.createElement("input");l.type="text",l.value=n.toString(),l.onblur=()=>{x.applyOption([e.id,l.value]),s.style.display=x.getDefaultOption(e.id)===x.getOption(e.id)?"none":"block",o?.(this.app,l.value)},l.onkeydown=c=>{c.key=="Enter"&&l.blur()},a=l;break}case"color":{const o=e.input.onChange,l=gh.create({value:n});l.onColorChange=c=>{x.applyOption([e.id,c.toHexa()]),s.style.display=x.getDefaultOption(e.id)===x.getOption(e.id)?"none":"block",o?.(this.app,c)},a=l}}a.classList.add("pref-item-input"),t.appendChild(a)}else{const n=document.createElement("div");n.classList.add("pref-children"),t.appendChild(n),n.replaceChildren(...this.createOptions(e.children))}return e.type=="item"&&e.tooltip!==void 0&&Ze(t,{content:e.tooltip}),t}filterOptions(e,t=$m){const i=[];return t.forEach(s=>{if(s.label&&s.label.toLowerCase().includes(e.toLowerCase())){i.push(s);return}if(s.type=="group"||s.type=="subgroup"){const n=this.filterOptions(e,s.children);n.length!=0&&i.push({...s,children:n})}}),i}createEmptyGroup(e){const t=document.createElement("div");return t.classList.add("pref-section"),t.dataset.id=e.id,t.innerText=e.label,t.onclick=()=>{t.parentElement.parentElement.querySelector(`.pref-group[data-id=${e.id}]`).scrollIntoView()},t}onClose(){this.observer?.disconnect()}}var ya=(r=>(r.SHIFT="Shift",r.CTRL="Ctrl",r.ALT="Alt",r.META="Command",r))(ya||{});const Ii=navigator.userAgent.indexOf("Mac OS X")>-1,bt=Ii?"Command":"Ctrl",Ek={Shift:Ii?"⇧":"Shift",Ctrl:Ii?"⌃":"Ctrl",Alt:Ii?"⌥":"Alt",Command:"⌘"},jm={ArrowLeft:"Left",ArrowUp:"Up",ArrowRight:"Right",ArrowDown:"Down",BracketLeft:"[",BracketRight:"]",Semicolon:";",Quote:"'",Backslash:"\\",Slash:"/",Period:".",Comma:",",Backquote:"`",Minus:"-",Equal:"+"},vy={Home:Ii?"fn Left":"Home",End:Ii?"fn Right":"End",PageUp:Ii?"fn Up":"End",PageDown:Ii?"fn Down":"End"},Wl=["ctrlKey","altKey","shiftKey","metaKey"],dl=["Ctrl","Alt","Shift","Command"],ct={playback:{label:"Play/Pause",combos:[{key:"Space",mods:[]}],disabled:r=>!r.chartManager.chartView||r.chartManager.getMode()==K.Play||r.chartManager.getMode()==K.Record,callback:r=>r.chartManager.playPause()},decreaseSnap:{label:"Decrease snap",combos:[{key:"Left",mods:[]}],disabled:r=>!r.chartManager.chartView||r.chartManager.getMode()==K.Play||r.chartManager.getMode()==K.Record,callback:r=>r.chartManager.previousSnap()},increaseSnap:{label:"Increase snap",combos:[{key:"Right",mods:[]}],disabled:r=>!r.chartManager.chartView||r.chartManager.getMode()==K.Play||r.chartManager.getMode()==K.Record,callback:r=>r.chartManager.nextSnap()},cursorUp:{label:"Move cursor up",combos:[{key:"Up",mods:[]}],disabled:r=>!r.chartManager.chartView||r.chartManager.getMode()==K.Play||r.chartManager.getMode()==K.Record,callback:r=>{r.chartManager.snapToPreviousTick()}},cursorDown:{label:"Move cursor down",combos:[{key:"Down",mods:[]}],disabled:r=>!r.chartManager.chartView||r.chartManager.getMode()==K.Play||r.chartManager.getMode()==K.Record,callback:r=>{r.chartManager.snapToNextTick()}},increaseScrollSpeed:{label:"Increase scroll speed",combos:[{key:"Up",mods:[bt]}],disabled:r=>!r.chartManager.chartView,callback:()=>x.chart.speed=Math.max(10,x.chart.speed*Math.pow(1.01,30))},decreaseScrollSpeed:{label:"Decrease scroll speed",combos:[{key:"Down",mods:[bt]}],disabled:r=>!r.chartManager.chartView,callback:()=>x.chart.speed=Math.max(10,x.chart.speed*Math.pow(1.01,-30))},zoomIn:{label:"Zoom in",combos:[{key:"+",mods:[bt]}],disabled:r=>!r.chartManager.chartView,callback:()=>{x.chart.zoom+=.1,Ee.create("Zoom: "+Math.round(x.chart.zoom*100)+"%")}},zoomOut:{label:"Zoom out",combos:[{key:"-",mods:[bt]}],disabled:r=>!r.chartManager.chartView,callback:()=>{x.chart.zoom=Math.max(.1,x.chart.zoom-.1),Ee.create("Zoom: "+Math.round(x.chart.zoom*100)+"%")}},zoomDefault:{label:"Reset zoom",combos:[{key:"0",mods:[bt]}],disabled:r=>!r.chartManager.chartView,callback:()=>{x.chart.zoom=1,Ee.create("Zoom: "+Math.round(x.chart.zoom*100)+"%")}},newSong:{label:"New song...",bindLabel:"New song",combos:[{key:"N",mods:[bt]}],disabled:r=>!r.chartManager.loadedSM||!De.openWindows,callback:r=>{r.windowManager.openWindow(new my(r))}},openSong:{label:"Open song...",bindLabel:"Open song",combos:[{key:"O",mods:[bt]}],disabled:r=>!r.chartManager.loadedSM||!De.openWindows,callback:r=>{if(window.nw){const e=document.createElement("input");e.type="file",e.accept=".sm,.ssc",e.onchange=()=>r.chartManager.loadSM(e.value),e.click()}else r.windowManager.openWindow(new gy(r,!1))}},songProperties:{label:"Song properties...",bindLabel:"Open song properties",combos:[{key:"O",mods:["Shift"]}],disabled:r=>!r.chartManager.loadedSM||!De.openWindows,callback:r=>r.windowManager.openWindow(new fk(r))},save:{label:"Save...",bindLabel:"Save",combos:[{key:"S",mods:[bt]}],disabled:r=>!r.chartManager.loadedSM||r.chartManager.smPath.startsWith("https://")||r.chartManager.smPath.startsWith("http://"),callback:r=>r.chartManager.save()},export:{label:"Save and export current song",combos:[{key:"E",mods:[bt]}],disabled:r=>!!window.nw||!r.chartManager.loadedSM||r.chartManager.smPath.startsWith("https://")||r.chartManager.smPath.startsWith("http://"),callback:r=>{r.chartManager.save(),Le.getStandardHandler().saveDirectory(r.chartManager.smPath)}},exportNotedata:{label:"Export to notedata...",bindLabel:"Export to notedata",combos:[{key:"E",mods:[bt,"Shift"]}],disabled:r=>!r.chartManager.loadedSM||!De.openWindows,callback:r=>r.windowManager.openWindow(new ik(r,r.chartManager.selection.notes))},openChart:{label:"Chart list",bindLabel:"Open chart list",combos:[{key:"O",mods:[bt,"Shift"]}],disabled:r=>!r.chartManager.loadedSM||!De.openWindows,callback:r=>r.windowManager.openWindow(new ny(r))},timingDataRow:{label:"Edit timing data at row",combos:[{key:"T",mods:["Shift"]}],disabled:r=>!r.chartManager.chartView||!De.openWindows,callback:r=>r.windowManager.openWindow(new xk(r))},selectRegion:{label:"Select region",combos:[{key:"Tab",mods:[]}],disabled:r=>!r.chartManager.loadedChart&&r.chartManager.getMode()!=K.Edit,callback:r=>r.chartManager.selectRegion()},volumeUp:{label:"Increase master volume",combos:[{key:"Up",mods:["Alt"]}],disabled:!1,callback:()=>{x.audio.masterVolume=Math.min(x.audio.masterVolume+.05,1),Ee.create("Master volume: "+Math.round(x.audio.masterVolume*100)+"%")}},volumeDown:{label:"Decrease master volume",combos:[{key:"Down",mods:["Alt"]}],disabled:!1,callback:()=>{x.audio.masterVolume=Math.max(x.audio.masterVolume-.05,0),Ee.create("Master volume: "+Math.round(x.audio.masterVolume*100)+"%")}},songVolumeUp:{label:"Increase song volume",combos:[{key:"Up",mods:["Shift","Alt"]}],disabled:!1,callback:()=>{x.audio.songVolume=Math.min(x.audio.songVolume+.05,1),Ee.create("Song volume: "+Math.round(x.audio.songVolume*100)+"%")}},songVolumeDown:{label:"Decrease song volume",combos:[{key:"Down",mods:["Shift","Alt"]}],disabled:!1,callback:()=>{x.audio.songVolume=Math.max(x.audio.songVolume-.05,0),Ee.create("Song volume: "+Math.round(x.audio.songVolume*100)+"%")}},effectvolumeUp:{label:"Increase tick/metronome volume",combos:[{key:"Up",mods:["Shift",bt,"Alt"]}],disabled:!1,callback:()=>{x.audio.soundEffectVolume=Math.min(x.audio.soundEffectVolume+.05,1),Ee.create("Effect volume: "+Math.round(x.audio.soundEffectVolume*100)+"%")}},effectvolumeDown:{label:"Decrease tick/metronome volume",combos:[{key:"Down",mods:["Shift",bt,"Alt"]}],disabled:!1,callback:()=>{x.audio.soundEffectVolume=Math.max(x.audio.soundEffectVolume-.05,0),Ee.create("Effect Volume: "+Math.round(x.audio.soundEffectVolume*100)+"%")}},rateUp:{label:"Increase playback rate",combos:[{key:"Right",mods:["Shift"]}],disabled:r=>r.chartManager.getMode()==K.Play||r.chartManager.getMode()==K.Record,callback:()=>{x.audio.rate+=.05,Ee.create("Playback Rate: "+Math.round(x.audio.rate*100)+"%")}},rateDown:{label:"Decrease playback rate",combos:[{key:"Left",mods:["Shift"]}],disabled:r=>r.chartManager.getMode()==K.Play||r.chartManager.getMode()==K.Record,callback:()=>{x.audio.rate=Math.max(x.audio.rate-.05,.1),Ee.create("Playback Rate: "+Math.round(x.audio.rate*100)+"%")}},rateDefault:{label:"Reset playback rate",combos:[],disabled:!1,callback:()=>{x.audio.rate=1,Ee.create("Playback Rate: "+Math.round(x.audio.rate)+"%")}},previousMeasure:{label:"Previous measure",combos:[{key:"PageUp",mods:[]},{key:";",mods:[]}],disabled:r=>!r.chartManager.chartView||r.chartManager.getMode()==K.Play||r.chartManager.getMode()==K.Record,callback:r=>{const e=r.chartManager.beat,t=r.chartManager.loadedChart.timingData.getMeasureLength(e-.001);r.chartManager.snapToNearestTick(Math.max(0,e-t))}},nextMeasure:{label:"Next measure",combos:[{key:"PageDown",mods:[]},{key:"'",mods:[]}],disabled:r=>!r.chartManager.chartView||r.chartManager.getMode()==K.Play||r.chartManager.getMode()==K.Record,callback:r=>{const e=r.chartManager.beat,t=r.chartManager.loadedChart.timingData.getMeasureLength(e);r.chartManager.snapToNearestTick(Math.max(0,e+t))}},previousNote:{label:"Previous note",combos:[{key:",",mods:[]}],disabled:r=>!r.chartManager.chartView||r.chartManager.getMode()==K.Play||r.chartManager.getMode()==K.Record,callback:r=>r.chartManager.previousNote()},nextNote:{label:"Next note",combos:[{key:".",mods:[]}],disabled:r=>!r.chartManager.chartView||r.chartManager.getMode()==K.Play||r.chartManager.getMode()==K.Record,callback:r=>r.chartManager.nextNote()},jumpChartStart:{label:"Jump to first note",combos:[],disabled:r=>!r.chartManager.chartView||r.chartManager.getMode()==K.Play||r.chartManager.getMode()==K.Record,callback:r=>r.chartManager.firstNote()},jumpChartEnd:{label:"Jump to last note",combos:[],disabled:r=>!r.chartManager.chartView||r.chartManager.getMode()==K.Play||r.chartManager.getMode()==K.Record,callback:r=>r.chartManager.lastNote()},jumpSongStart:{label:"Jump to song start",combos:[{key:"Home",mods:[]}],disabled:r=>!r.chartManager.chartView||r.chartManager.getMode()==K.Play||r.chartManager.getMode()==K.Record,callback:r=>r.chartManager.beat=Math.max(0,r.chartManager.loadedChart.getBeatFromSeconds(0))},jumpSongEnd:{label:"Jump to song end",combos:[{key:"End",mods:[]}],disabled:r=>!r.chartManager.chartView||r.chartManager.getMode()==K.Play||r.chartManager.getMode()==K.Record,callback:r=>r.chartManager.beat=r.chartManager.loadedChart.getBeatFromSeconds(r.chartManager.chartAudio.getSongLength())},assistTick:{label:"Assist tick",combos:[{key:"F7",mods:[]}],disabled:()=>!De.assist,callback:()=>{x.audio.assistTick=!x.audio.assistTick,Ee.create("Assist Tick: "+(x.audio.assistTick?"on":"off"))}},metronome:{label:"Metronome",combos:[{key:"F7",mods:["Alt"]}],disabled:()=>!De.assist,callback:()=>{x.audio.metronome=!x.audio.metronome,Ee.create("Metronome: "+(x.audio.metronome?"on":"off"))}},XMod:{label:"XMod (Beat-based)",combos:[{key:"X",mods:["Shift"]}],disabled:!1,callback:()=>{x.chart.CMod=!1,Ee.create("Switched to XMod")}},CMod:{label:"CMod (Time-based)",combos:[{key:"C",mods:["Shift"]}],disabled:!1,callback:()=>{x.chart.CMod=!0,Ee.create("Switched to CMod")}},reverse:{label:"Reverse playfield",combos:[],disabled:!1,callback:()=>{x.chart.reverse=!x.chart.reverse,Ee.create("Reverse Playfield: "+(x.chart.reverse?"on":"off"))}},hideWarpedArrows:{label:"Hide warped notes (CMod only)",combos:[{key:"W",mods:["Shift"]}],disabled:!1,callback:()=>{x.chart.hideWarpedArrows=!x.chart.hideWarpedArrows,Ee.create("Hide Warped Arrows: "+(x.chart.hideWarpedArrows?"on":"off"))}},hideFakedArrows:{label:"Hide faked notes (CMod only)",combos:[{key:"F",mods:["Shift"]}],disabled:!1,callback:()=>{x.chart.hideFakedArrows=!x.chart.hideFakedArrows,Ee.create("Hide Faked Arrows: "+(x.chart.hideFakedArrows?"on":"off"))}},doSpeedChanges:{label:"Do speed changes (XMod only)",combos:[{key:"S",mods:["Shift"]}],disabled:!1,callback:()=>{x.chart.doSpeedChanges=!x.chart.doSpeedChanges,Ee.create("Speed Changes: "+(x.chart.doSpeedChanges?"on":"off"))}},showEq:{label:"Equalizer",combos:[{key:"E",mods:["Shift"]}],disabled:r=>!r.chartManager.chartAudio||!De.openWindows,callback:r=>r.windowManager.openWindow(new ek(r))},detectSync:{label:"Detect audio sync",combos:[{key:"L",mods:["Shift"]}],disabled:r=>!r.chartManager.chartAudio||!De.openWindows,callback:r=>r.windowManager.openWindow(new by(r))},previousNoteType:{label:"Previous note type",combos:[{key:"N",mods:[]}],disabled:r=>!r.chartManager.chartView||r.chartManager.getMode()==K.Play||r.chartManager.getMode()==K.Record,callback:r=>r.chartManager.previousNoteType()},nextNoteType:{label:"Next note type",combos:[{key:"M",mods:[]}],disabled:r=>!r.chartManager.chartView||r.chartManager.getMode()==K.Play||r.chartManager.getMode()==K.Record,callback:r=>r.chartManager.nextNoteType()},undo:{label:"Undo",combos:[{key:"Z",mods:[bt]}],disabled:r=>!r.actionHistory.canUndo()||r.chartManager.getMode()!=K.Edit,callback:r=>r.actionHistory.undo()},redo:{label:"Redo",combos:[{key:"Y",mods:[bt]},{key:"Z",mods:[bt,"Shift"]}],disabled:r=>!r.actionHistory.canRedo()||r.chartManager.getMode()!=K.Edit,callback:r=>r.actionHistory.redo()},mousePlacement:{label:"Enable Mouse Note Placement",combos:[{key:"M",mods:["Shift"]}],disabled:!1,callback:()=>{x.chart.mousePlacement=!x.chart.mousePlacement,Ee.create("Mouse Note Placement: "+(x.chart.mousePlacement?"on":"off"))}},playMode:{label:"Enter/Exit Play Mode",combos:[{key:"P",mods:[]}],disabled:r=>!r.chartManager.chartView||r.chartManager.getMode()==K.Record||!De.playMode,callback:r=>r.chartManager.setMode(K.Play)},recordMode:{label:"Enter/Exit Record Mode",combos:[{key:"R",mods:[]}],disabled:r=>!r.chartManager.chartView||r.chartManager.getMode()==K.Play||r.chartManager.getMode()==K.View||!De.recordMode,callback:r=>r.chartManager.setMode(K.Record)},playModeStart:{label:"Play from start",combos:[{key:"P",mods:["Shift"]}],disabled:r=>!r.chartManager.chartView||r.chartManager.getMode()==K.Record||!De.playMode,callback:r=>{r.chartManager.beat=0,r.chartManager.setMode(K.Play)}},recordModeStart:{label:"Record from start",combos:[{key:"R",mods:["Shift"]}],disabled:r=>!r.chartManager.chartView||r.chartManager.getMode()==K.Play||r.chartManager.getMode()==K.View||!De.recordMode,callback:r=>r.chartManager.setMode(K.Record)},options:{label:"Options...",bindLabel:"Edit options",combos:[{key:",",mods:[bt]}],disabled:()=>!De.openWindows||!De.openWindows,callback:r=>{r.windowManager.openWindow(new _k(r))}},keybinds:{label:"Keybinds...",bindLabel:"Edit keybinds",combos:[],disabled:()=>!De.openWindows||!De.openWindows,callback:r=>{r.windowManager.openWindow(new qi(r))}},gameplayKeybinds:{label:"Gameplay keybinds...",bindLabel:"Edit gameplay keybinds",combos:[],disabled:()=>!De.openWindows||!De.openWindows,callback:r=>{r.windowManager.openWindow(new rk(r))}},themes:{label:"Themes...",bindLabel:"Edit themes",combos:[],disabled:()=>!De.openWindows||!De.openWindows||ja.isOpen,callback:r=>{r.windowManager.openWindow(new $u(r))}},convertHoldsRolls:{label:"Holds to rolls",bindLabel:"Convert holds to rolls",combos:[],disabled:r=>r.chartManager.selection.notes.length==0||r.chartManager.getMode()!=K.Edit,callback:r=>{r.chartManager.modifySelection(e=>(e.type=="Hold"&&(e.type="Roll"),e))}},convertRollsHolds:{label:"Rolls to holds",bindLabel:"Convert rolls to holds",combos:[],disabled:r=>r.chartManager.selection.notes.length==0||r.chartManager.getMode()!=K.Edit,callback:r=>{r.chartManager.modifySelection(e=>(e.type=="Roll"&&(e.type="Hold"),e))}},swapHoldsRolls:{label:"Swap holds and rolls",combos:[],disabled:r=>r.chartManager.selection.notes.length==0||r.chartManager.getMode()!=K.Edit,callback:r=>{r.chartManager.modifySelection(e=>(e.type=="Hold"?e.type="Roll":e.type=="Roll"&&(e.type="Hold"),e))}},convertHoldsTaps:{label:"Holds/rolls to taps",bindLabel:"Convert holds/rolls to taps",combos:[],disabled:r=>r.chartManager.selection.notes.length==0||r.chartManager.getMode()!=K.Edit,callback:r=>{r.chartManager.modifySelection(e=>((e.type=="Hold"||e.type=="Roll")&&(e.type="Tap"),e))}},convertTapsMines:{label:"Taps to mines",bindLabel:"Convert taps to mines",combos:[],disabled:r=>r.chartManager.selection.notes.length==0||r.chartManager.getMode()!=K.Edit,callback:r=>{r.chartManager.modifySelection(e=>(e.type=="Tap"&&(e.type="Mine"),e))}},convertTapsLifts:{label:"Taps to lifts",bindLabel:"Convert taps to lifts",combos:[],disabled:r=>r.chartManager.selection.notes.length==0||r.chartManager.getMode()!=K.Edit,callback:r=>{r.chartManager.modifySelection(e=>(e.type=="Tap"&&(e.type="Lift"),e))}},convertTapsFakes:{label:"Taps to fakes",bindLabel:"Convert taps to fakes",combos:[],disabled:r=>r.chartManager.selection.notes.length==0||r.chartManager.getMode()!=K.Edit,callback:r=>{r.chartManager.modifySelection(e=>(e.type=="Tap"&&(e.type="Fake"),e))}},mirrorHorizontally:{label:"Horizontally",bindLabel:"Mirror horizontally",combos:[],disabled:r=>r.chartManager.selection.notes.length==0||r.chartManager.getMode()!=K.Edit,callback:r=>{r.chartManager.modifySelection(e=>(e.col=r.chartManager.loadedChart.gameType.flipColumns.horizontal[e.col],e))}},mirrorVertically:{label:"Vertically",bindLabel:"Mirror vertically",combos:[],disabled:r=>r.chartManager.selection.notes.length==0||r.chartManager.getMode()!=K.Edit,callback:r=>{r.chartManager.modifySelection(e=>(e.col=r.chartManager.loadedChart.gameType.flipColumns.vertical[e.col],e))}},mirrorBoth:{label:"Both",bindLabel:"Mirror both",combos:[],disabled:r=>r.chartManager.selection.notes.length==0||r.chartManager.getMode()!=K.Edit,callback:r=>{r.chartManager.modifySelection(e=>(e.col=r.chartManager.loadedChart.gameType.flipColumns.horizontal[e.col],e.col=r.chartManager.loadedChart.gameType.flipColumns.vertical[e.col],e))}},selectBeforeCursor:{label:"Select before cursor",combos:[{key:"Home",mods:["Shift"]}],disabled:r=>!r.chartManager.loadedChart,callback:r=>{r.chartManager.editTimingMode==Ie.Off?r.chartManager.setNoteSelection(r.chartManager.loadedChart.getNotedata().filter(e=>e.beate.beat!r.chartManager.loadedChart,callback:r=>{r.chartManager.editTimingMode==Ie.Off?r.chartManager.setNoteSelection(r.chartManager.loadedChart.getNotedata().filter(e=>e.beat>r.chartManager.beat)):r.chartManager.setEventSelection(r.chartManager.loadedChart.timingData.getTimingData().filter(e=>e.beat>r.chartManager.beat))}},selectAll:{label:"Select all",combos:[{key:"A",mods:[bt]}],disabled:r=>!r.chartManager.loadedChart,callback:r=>{r.chartManager.editTimingMode==Ie.Off?r.chartManager.setNoteSelection(r.chartManager.loadedChart.getNotedata()):r.chartManager.setEventSelection(r.chartManager.loadedChart.timingData.getTimingData())}},expand2to1:{label:"Expand 2:1 (8th to 4th)",combos:[],disabled:r=>r.chartManager.selection.notes.length<2||r.chartManager.getMode()!=K.Edit,callback:r=>{const e=Math.min(...r.chartManager.selection.notes.map(t=>t.beat));r.chartManager.modifySelection(t=>(t.beat=(t.beat-e)*2+e,t.beat=Math.round(t.beat*48)/48,Be(t)&&(t.hold*=2,t.hold=Math.round(t.hold*48)/48),t))}},expand3to2:{label:"Expand 3:2 (12th to 8th)",combos:[],disabled:r=>r.chartManager.selection.notes.length<2||r.chartManager.getMode()!=K.Edit,callback:r=>{const e=Math.min(...r.chartManager.selection.notes.map(t=>t.beat));r.chartManager.modifySelection(t=>(t.beat=(t.beat-e)*1.5+e,t.beat=Math.round(t.beat*48)/48,Be(t)&&(t.hold*=1.5,t.hold=Math.round(t.hold*48)/48),t))}},expand4to3:{label:"Expand 4:3 (16th to 2th)",combos:[],disabled:r=>r.chartManager.selection.notes.length<2||r.chartManager.getMode()!=K.Edit,callback:r=>{const e=Math.min(...r.chartManager.selection.notes.map(t=>t.beat));r.chartManager.modifySelection(t=>(t.beat=(t.beat-e)*4/3+e,t.beat=Math.round(t.beat*48)/48,Be(t)&&(t.hold*=4/3,t.hold=Math.round(t.hold*48)/48),t))}},compress1to2:{label:"Compress 1:2 (4th to 8th)",combos:[],disabled:r=>r.chartManager.selection.notes.length<2||r.chartManager.getMode()!=K.Edit,callback:r=>{const e=Math.min(...r.chartManager.selection.notes.map(t=>t.beat));r.chartManager.modifySelection(t=>(t.beat=(t.beat-e)/2+e,t.beat=Math.round(t.beat*48)/48,Be(t)&&(t.hold/=2,t.hold=Math.round(t.hold*48)/48),t))}},compress2to3:{label:"Compress 2:3 (8th to 12th)",combos:[],disabled:r=>r.chartManager.selection.notes.length<2||r.chartManager.getMode()!=K.Edit,callback:r=>{const e=Math.min(...r.chartManager.selection.notes.map(t=>t.beat));r.chartManager.modifySelection(t=>(t.beat=(t.beat-e)/1.5+e,t.beat=Math.round(t.beat*48)/48,Be(t)&&(t.hold/=1.5,t.hold=Math.round(t.hold*48)/48),t))}},compress3to4:{label:"Compress 3:4 (12th to 16th)",combos:[],disabled:r=>r.chartManager.selection.notes.length<2||r.chartManager.getMode()!=K.Edit,callback:r=>{const e=Math.min(...r.chartManager.selection.notes.map(t=>t.beat));r.chartManager.modifySelection(t=>(t.beat=(t.beat-e)*.75+e,t.beat=Math.round(t.beat*48)/48,Be(t)&&(t.hold*=.75,t.hold=Math.round(t.hold*48)/48),t))}},delete:{label:"Delete",combos:[{key:"Backspace",mods:[]},{key:"Delete",mods:[]}],disabled:r=>r.chartManager.getMode()!=K.Edit||r.chartManager.selection.notes.length==0&&r.chartManager.eventSelection.timingEvents.length==0,callback:r=>{r.chartManager.deleteSelection(),r.chartManager.deleteEventSelection()}},paste:{label:"Paste",combos:[{mods:[bt],key:"V"}],preventDefault:!1,disabled:r=>!r.chartManager.chartView||r.chartManager.getMode()!=K.Edit,callback:async r=>{const e=await navigator.clipboard.readText();r.chartManager.paste(e)}},pasteReplace:{label:"Clear and paste",combos:[{mods:[bt,"Shift"],key:"V"}],preventDefault:!1,disabled:r=>!r.chartManager.chartView||r.chartManager.getMode()!=K.Edit,callback:async r=>{const e=await navigator.clipboard.readText();r.chartManager.paste(e,!0)}},copy:{label:"Copy",combos:[{mods:[bt],key:"C"}],preventDefault:!1,disabled:r=>!r.chartManager.chartView||r.chartManager.getMode()!=K.Edit||!r.chartManager.hasSelection(),callback:async r=>{const e=r.chartManager.copy();e&&await navigator.clipboard.writeText(e)}},cut:{label:"Cut",combos:[{mods:[bt],key:"X"}],preventDefault:!1,disabled:r=>!r.chartManager.chartView||r.chartManager.getMode()!=K.Edit||!r.chartManager.hasSelection(),callback:async r=>{const e=r.chartManager.copy();e&&await navigator.clipboard.writeText(e),r.chartManager.deleteSelection()}},adjustOffset:{label:"Adjust offset",combos:[],disabled:()=>!De.openWindows,callback:r=>r.windowManager.openWindow(new dk(r))},setSongPreview:{label:"Set as song preview",combos:[],disabled:r=>!r.chartManager.chartView||r.chartManager.getMode()!=K.Edit||!r.chartManager.hasRange(),callback:r=>{const e=r.chartManager.loadedChart,t=r.chartManager.loadedSM.properties.SAMPLESTART??"0",i=r.chartManager.loadedSM.properties.SAMPLELENGTH??"10";let s="",n="";if(r.chartManager.startRegion!==void 0&&r.chartManager.endRegion!==void 0){const a=e.getSecondsFromBeat(r.chartManager.startRegion),o=e.getSecondsFromBeat(r.chartManager.endRegion);s=ae(a,3).toString(),n=ae(o-a,3).toString()}else{const o=(r.chartManager.selection.notes.length>0?r.chartManager.selection.notes:r.chartManager.eventSelection.timingEvents).map(u=>u.beat),l=e.getSecondsFromBeat(Math.min(...o)),c=e.getSecondsFromBeat(Math.max(...o));s=ae(l,3).toString(),n=ae(c-l,3).toString()}Ye.instance.run({action:a=>{a.chartManager.loadedSM.properties.SAMPLESTART=s,a.chartManager.loadedSM.properties.SAMPLELENGTH=n},undo:()=>{r.chartManager.loadedSM.properties.SAMPLESTART=t,r.chartManager.loadedSM.properties.SAMPLELENGTH=i}})}},showDebugTimers:{label:"Toggle Debug Timers",combos:[{key:"F3",mods:["Shift"]}],disabled:!1,callback:()=>{x.debug.showTimers=!x.debug.showTimers}},showFPSCounter:{label:"Toggle FPS Counter",combos:[{key:"F3",mods:[]}],disabled:!1,callback:()=>{x.debug.showFPS=!x.debug.showFPS}},noteTypeTap:{label:"Switch to Taps",combos:[],disabled:r=>!r.chartManager.chartView,callback:r=>{r.chartManager.setEditingNoteType("Tap")}},noteTypeLift:{label:"Switch to Lifts",combos:[],disabled:r=>!r.chartManager.chartView,callback:r=>{r.chartManager.setEditingNoteType("Lift")}},noteTypeMine:{label:"Switch to Mines",combos:[],disabled:r=>!r.chartManager.chartView,callback:r=>{r.chartManager.setEditingNoteType("Mine")}},noteTypeFake:{label:"Switch to Fakes",combos:[],disabled:r=>!r.chartManager.chartView,callback:r=>{r.chartManager.setEditingNoteType("Fake")}},openGuide:{label:"Open Help Guide",combos:[],disabled:!1,callback:()=>{window.open("/smeditor/guide/")}},openChangelog:{label:"Open Changelog",combos:[],disabled:!1,callback:r=>{r.windowManager.openWindow(new v3(r))}},noteskinWindow:{label:"Noteskins...",bindLabel:"Open Noteskin Window",combos:[{mods:["Shift"],key:"N"}],disabled:r=>!r.chartManager.chartView,callback:r=>r.windowManager.openWindow(new uk(r))},previousChart:{label:"Previous chart",combos:[{key:"F5",mods:[]}],disabled:r=>!r.chartManager.chartView,callback:r=>{if(!r.chartManager.loadedSM?.charts||!r.chartManager.loadedChart)return;const e=r.chartManager.loadedSM?.charts[r.chartManager.loadedChart.gameType.id],t=e.indexOf(r.chartManager.loadedChart);e[t-1]&&r.chartManager.loadChart(e[t-1])}},nextChart:{label:"Next chart",combos:[{key:"F6",mods:[]}],disabled:r=>!r.chartManager.chartView,callback:r=>{if(!r.chartManager.loadedSM?.charts||!r.chartManager.loadedChart)return;const e=r.chartManager.loadedSM?.charts[r.chartManager.loadedChart.gameType.id],t=e.indexOf(r.chartManager.loadedChart);e[t+1]&&r.chartManager.loadChart(e[t+1])}},toggleEditTiming:{label:"Toggle Edit Timing",combos:[{key:"T",mods:[]}],disabled:r=>!r.chartManager.chartView,callback:r=>{r.chartManager.editTimingMode!=Ie.Off?r.chartManager.editTimingMode=Ie.Off:r.chartManager.editTimingMode=Ie.Edit}},toggleAddTiming:{label:"Toggle Add Timing",combos:[{key:"T",mods:["Alt"]}],disabled:r=>!r.chartManager.chartView,callback:r=>{r.chartManager.editTimingMode!=Ie.Add?r.chartManager.editTimingMode=Ie.Add:r.chartManager.editTimingMode=Ie.Edit}}};for(const r of[4,2,1])ct[`shiftUp${r}m`]={label:`${r} measure`+(r==1,""),bindLabel:`Shift up by ${r} measure`+(r==1,""),combos:[],disabled:e=>!e.chartManager.chartView,callback:e=>{const t=e.chartManager.selection.notes[0].beat,i=e.chartManager.loadedChart.timingData.getMeasureLength(t);e.chartManager.modifySelection(s=>(s.beat-=i*r,s),!0)}},ct[`shiftDown${r}m`]={label:`${r} measure`+(r==1,""),bindLabel:`Shift down by ${r} measure`+(r==1,""),combos:[],disabled:e=>!e.chartManager.chartView,callback:e=>{const t=e.chartManager.selection.notes[0].beat,i=e.chartManager.loadedChart.timingData.getMeasureLength(t);e.chartManager.modifySelection(s=>(s.beat+=i*r,s),!0)}};for(let r=0;r<_r.length;r++)ct["quant"+rm[r]]={label:`Switch to ${Gi[r]}s`,combos:[],disabled:e=>!e.chartManager.chartView,callback:()=>{x.chart.snap=_r[r]}},ct[`shiftUp${Gi[r]}`]={label:`${Gi[r]}`,bindLabel:`Shift up by ${Gi[r]}`,combos:[],disabled:e=>!e.chartManager.chartView,callback:e=>e.chartManager.modifySelection(t=>(t.beat-=_r[r],t),!0)},ct[`shiftDown${Gi[r]}`]={label:`${Gi[r]}`,bindLabel:`Shift down by ${Gi[r]}`,combos:[],disabled:e=>!e.chartManager.chartView,callback:e=>e.chartManager.modifySelection(t=>(t.beat+=_r[r],t),!0)},r!=_r.length-1&&(ct["quantize"+Gi[r]]={label:`${Gi[r]}s`,bindLabel:`Quantize to ${Gi[r]}s`,combos:[],disabled:e=>e.chartManager.selection.notes.length==0||e.chartManager.getMode()!=K.Edit,callback:e=>{e.chartManager.modifySelection(t=>(t.beat=e.chartManager.getClosestTick(t.beat,rm[r]),t.beat=Math.round(t.beat*48)/48,t))}});class $d{static popup;static build(e){const t=document.createElement("div");t.classList.add("update-popup");const i=document.createElement("div");i.classList.add("title"),i.innerText=e.title;const s=document.createElement("div");s.classList.add("desc"),s.innerText=e.desc;const n=document.createElement("div");if(n.classList.add("update-options"),t.replaceChildren(i,s),e.options.length>0){for(const a of e.options){const o=document.createElement("button");o.innerText=a.label,o.onclick=()=>{a.callback?.(this)},o.classList.add(a.type),n.appendChild(o)}t.appendChild(n)}this.popup=t,document.getElementById("popups")?.appendChild(this.popup)}static close(){this.popup&&(this.popup.classList.add("exiting"),this.popup.style.pointerEvents="none",setTimeout(()=>this.popup.remove(),300))}}class Ak extends $d{static open(e,t){super.build({title:`A new version of the desktop app is available! (${e})`,desc:"Click here to download the new version.",options:[{label:"Close",type:"default",callback:()=>this.close()},{label:"Download",type:"confirm",callback:()=>{localStorage.setItem("downloadedVersion",e),nw.require("nw.gui").Shell.openExternal(t),this.close()}}]})}}class Tk extends $d{static open(e){super.build({title:"A new version of the app is available!",desc:"Refresh the page to get the new version.",options:[{label:"Close",type:"default",callback:()=>this.close()},{label:"Refresh",type:"confirm",callback:()=>{e(),window.location.reload()}}]})}}class Ck extends $d{static open(){super.build({title:"SMEditor was loaded offline!",desc:"You can now use SMEditor without an internet connection.",options:[]}),setTimeout(()=>this.close(),5e3)}}class zt extends Fg{static graphics=new Xn;static textures={default:Gt.create({width:50,height:50}),noBorder:Gt.create({width:50,height:50}),onlyBorder:Gt.create({width:50,height:50})};static init(e){this.textures.default=Gt.create({width:50,height:50,resolution:e.resolution}),this.textures.noBorder=Gt.create({width:50,height:50,resolution:e.resolution}),this.textures.onlyBorder=Gt.create({width:50,height:50,resolution:e.resolution}),this.graphics.beginFill(16777215,1),this.graphics.lineStyle(1,0),this.graphics.drawRoundedRect(0,0,50,50,5),this.graphics.endFill(),e.render(this.graphics,{renderTexture:this.textures.default}),this.graphics.clear(),this.graphics.beginFill(16777215,1),this.graphics.lineStyle(0,16777215),this.graphics.drawRoundedRect(0,0,50,50,5),this.graphics.endFill(),e.render(this.graphics,{renderTexture:this.textures.noBorder}),this.graphics.clear(),this.graphics.beginFill(16777215,0),this.graphics.lineStyle(2,16777215),this.graphics.drawRoundedRect(0,0,50,50,5),this.graphics.endFill(),e.render(this.graphics,{renderTexture:this.textures.onlyBorder})}constructor(e){super(zt.textures[e??"default"],5,5,5,5)}}const va=[];function qm(){return va.length}function jD(){for(va.push(Date.now());va.length>0&&va[0]0&&wa[0]qm()+" FPS"});drawUpdateTimeGraph=new la({width:300,height:Ti,color:6034982,min:0,unit:"ms",label:"DrawUpdate",precision:1});updateTimeGraph=new la({width:300,height:Ti,color:1516101,min:0,unit:"ms",label:"Update",precision:1,sublabel:()=>Ym()+" TPS"});memoryTimeGraph=new la({width:300,height:Ti,color:6626406,min:0,formatter:e=>Math.round(e/1048576)+" MB",label:"Memory"});cpuGraph=new la({width:300,height:Ti,color:5190685,min:0,label:"CPU"});graphs=new ve;fpsCounter=new ve;fpsBg=new zt("noBorder");fpsText=new Fe("",{fontName:"Main",fontSize:12});lastFrameTime=0;properties=new Map;constructor(e){super(e),this.drawUpdateTimeGraph.y+=Ti+5,this.updateTimeGraph.y+=(Ti+5)*2,this.memoryTimeGraph.y+=(Ti+5)*3,this.cpuGraph.y+=(Ti+5)*4,qa.instance=this,this.fpsText.x=5,this.fpsBg.y=-5,et(this.fpsBg,"widget-bg"),et(this.fpsText,"text-color"),this.graphs.addChild(this.frameTimeGraph,this.drawUpdateTimeGraph,this.updateTimeGraph),performance.memory&&this.graphs.addChild(this.memoryTimeGraph),this.fpsCounter.addChild(this.fpsBg,this.fpsText),this.graphs.visible=x.debug.showTimers,this.fpsCounter.visible=x.debug.showFPS,this.addChild(this.graphs,this.fpsCounter)}update(){this.x=-this.manager.app.renderer.screen.width/2+20,this.y=-this.manager.app.renderer.screen.height/2+20,this.graphs.children.forEach(e=>e.update()),this.graphs.visible=x.debug.showTimers,this.fpsCounter.visible=x.debug.showFPS,this.fpsText.text=`${qm()} FPS ${Ym()} TPS ${this.lastFrameTime.toFixed(2)} ms `,x.debug.showDebugVariables&&this.properties.forEach((e,t)=>{this.fpsText.text+=`${t}: ${e} @@ -1268,4 +1268,4 @@ yEnd:${ae(o,1)} val:${e[n].value} h:${ae(o-a,1)}`,oe[n].beat&&te[n+1].beat&&(l.text.y=l.box.height),l.x=(n%4-1.5)*150}for(const[n,a]of this.scrollMap.entries())if(!a.marked){this.scrollMap.delete(n),a.destroy();continue}const i=this.renderer.findFirstOnScreenScroll(),s=this.renderer.findLastOnScreenScroll();{const n=this.scrollMap.get(i);n&&(n.text.text+=` start`,n.box.tint==16777215&&(n.box.tint=16777096),n.text.tint=16777096)}{const n=this.scrollMap.get(s);n&&(n.text.text+=` -end`,n.box.tint==16777215&&(n.box.tint=8978431),n.text.tint=8978431)}this.receptors.y=this.renderer.getActualReceptorYPos(),this.topBound.y=this.renderer.getUpperBound(),this.bottomBound.y=this.renderer.getLowerBound(),this.topBoundBeat.y=this.renderer.getYPosFromBeat(this.renderer.getVisualBeat()-x.chart.maxDrawBeatsBack),this.bottomBoundBeat.y=this.renderer.getYPosFromBeat(this.renderer.getVisualBeat()+x.chart.maxDrawBeats),this.topScreenBeat.y=this.renderer.getYPosFromBeat(this.renderer.getTopOnScreenBeat()),this.bottomScreenBeat.y=this.renderer.getYPosFromBeat(this.renderer.getBottomOnScreenBeat()),this.topScreenBeatText.y=this.topScreenBeat.y,this.topScreenBeatText.text=ae(this.renderer.getTopOnScreenBeat(),3)+"",this.bottomScreenBeatText.y=this.bottomScreenBeat.y,this.bottomScreenBeatText.text=ae(this.renderer.getBottomOnScreenBeat(),3)+""}inBounds(e){const t=this.renderer.chartManager.app.renderer.screen.height/this.scale.y;return Math.abs(e)this.renderer.getVisualBeat()),this.trackVariable(()=>this.renderer.getVisualTime()),this.trackVariable(()=>x.chart.speed),this.trackVariable(()=>this.getSpeed(),n=>{this.speed=n,clearTimeout(this.lastSpeedTimeout),this.lastSpeedTimeout=setTimeout(()=>{this.blockCache.clear(),this.lastSpeed=this.speed,this.drawDirty=!0},200)}),this.trackVariable(()=>x.chart.zoom),this.trackVariable(()=>x.chart.CMod),this.trackVariable(()=>x.chart.doSpeedChanges),this.trackVariable(()=>x.chart.waveform.allowFilter),this.trackVariable(()=>x.chart.reverse),this.trackVariable(()=>x.chart.waveform.antialiasing,n=>{this.filters=n?[new gu]:[]}),this.trackVariable(()=>this.renderer.chartManager.app.renderer.screen.width,()=>this.resizeWaveform()),this.trackVariable(()=>this.renderer.chartManager.app.renderer.screen.height,()=>this.resizeWaveform()),this.trackVariable(()=>x.chart.waveform.filteredColor),this.trackVariable(()=>x.chart.waveform.color),this.trackVariable(()=>x.chart.waveform.speedChanges),this.trackVariable(()=>x.chart.receptorYPos),this.trackVariable(()=>x.chart.waveform.lineHeight,()=>{x.chart.waveform.lineHeight<=0&&(x.chart.waveform.lineHeight=1),this.updateLineHeight()}),this.trackVariable(()=>x.chart.zoom,()=>this.resizeWaveform()),this.trackVariable(()=>this.renderer.chartManager.chartAudio.hasFilters());const t=()=>this.getData();this.anchor.set(.5),this.renderer.chartManager.chartAudio.onUpdate(t),this.getData(),this.resizeWaveform(),this.filters=x.chart.waveform.antialiasing?[new gu]:[];const i=()=>this.drawDirty=!0,s=()=>{this.getData(),this.resizeWaveform(),this.renderer.chartManager.chartAudio.onUpdate(t)};H.on("timingModified",i),this.on("destroyed",()=>{H.off("timingModified",i)}),H.on("audioLoaded",s),this.on("destroyed",()=>{H.off("audioLoaded",s),this.renderer.chartManager.chartAudio.offUpdate(t)})}getData(){this.rawData=this.renderer.chartManager.chartAudio.getRawData(),this.filteredRawData=this.renderer.chartManager.chartAudio.getFilteredRawData(),this.sampleRate=this.renderer.chartManager.chartAudio.getSampleRate(),this.blockCache.clear(),this.drawDirty=!0}resizeWaveform(){this.waveformTex.resize(Oe((this.rawData?.length??0)*288*x.chart.zoom,1,this.renderer.chartManager.app.renderer.screen.width),this.renderer.chartManager.app.renderer.screen.height)}update(){this.visible=x.chart.waveform.enabled&&this.renderer.shouldDisplayBarlines(),x.chart.waveform.enabled&&((this.drawDirty||this.variableChanged())&&(this.colorCache.toHexa()!=x.chart.waveform.color&&(this.colorCache=$a(x.chart.waveform.color)),this.filteredColorCache.toHexa()!=x.chart.waveform.filteredColor&&(this.filteredColorCache=$a(x.chart.waveform.filteredColor)),this.drawDirty=!1,this.renderData(),this.renderer.chartManager.app.renderer.render(this.lineContainer,{renderTexture:this.waveformTex})),this.scale.set(1/x.chart.zoom))}trackVariable(e,t){this.trackedVariables.set(e,{value:e(),cb:t})}variableChanged(){let e=!1;for(const[t,i]of this.trackedVariables.entries())t()!=i.value&&(this.trackedVariables.get(t).value=t(),this.trackedVariables.get(t).cb?.(t()),e=!0);return e}getSample(e,t,i){if(t<0)return 0;const s=this.sampleRate/(this.lastSpeed*4),n=Math.floor(t*this.lastSpeed*4);if(this.blockCache.get(i)?.[n]!==void 0)return this.blockCache.get(i)[n];const a=Math.floor(n*s),o=e.slice(a,Math.floor(a+s)).reduce((l,c)=>l+Math.abs(c),0)/s;return this.blockCache.has(i)||this.blockCache.set(i,[]),this.blockCache.get(i)[n]=o,o}renderData(){this.resetPool();const e=x.chart.waveform.allowFilter&&this.renderer.chartManager.chartAudio.hasFilters(),t={data:{bpms:[],bpmIndex:0,timing:[],timingIndex:0,offset:0,lastBeat:-999,timingData:null},init(i){if(this.data.bpms=i.getTimingData("BPMS"),this.data.timing=i.getBeatTiming(),this.data.offset=i.getOffset(),this.data.bpms[0]?.beat!==0){const s=structuredClone(this.data.bpms[0])??{value:120,type:"BPMS",beat:0};s.beat=0,this.data.bpms.unshift(s)}this.data.timing.length==0&&this.data.timing.unshift({beat:0,secondBefore:-this.data.offset,secondAfter:-this.data.offset,secondClamp:-this.data.offset,secondOf:-this.data.offset,warped:!1,bpm:120}),this.data.timingData=i},getBPM(i){for(;i>this.data.bpms[this.data.bpmIndex+1]?.beat;)this.data.bpmIndex++;return this.data.bpms[this.data.bpmIndex].value},getSecond(i){const s=Math.floor(i*1e3)/1e3;if(i<=0)return-this.data.offset+i*60/this.getBPM(i);if(s>=this.data.timing[this.data.timingIndex+1]?.beat){for(;s>=this.data.timing[this.data.timingIndex+1]?.beat;)this.data.timingIndex++;return this.data.timingData.getSecondsFromBeat(i)}else{const n=this.data.timing[this.data.timingIndex];let o=(i-n.beat)*60/n.bpm;return n.warped&&(o=0),Math.max(n.secondClamp,n.secondAfter+o)}}};if(x.chart.waveform.speedChanges&&!x.chart.CMod&&x.chart.doSpeedChanges){const i=x.chart.speed,s=this.renderer.getCurrentSpeedMult(),n=this.renderer.getTopOnScreenBeat(),a=this.renderer.getBottomOnScreenBeat(),o=Math.min(n,a),l=Math.max(n,a),c=this.renderer.findFirstOnScreenScroll(),u=this.renderer.findLastOnScreenScroll(),h=[...this.renderer.chart.timingData.getTimingData("SCROLLS")];h[0]?.beat!=0&&h.unshift({type:"SCROLLS",beat:0,value:h[0]?.value??1}),t.init(this.renderer.chart.timingData);const d=h.findIndex(v=>v.beat==c.beat),f=h.findIndex(v=>v.beat==u.beat),p=100/i/Math.abs(s)/64/x.chart.zoom,m=this.renderer.chartManager.app.renderer.screen.height;let g=o,b=Math.round(this.renderer.getYPosFromBeat(g)*x.chart.zoom+this.parent.y),w=this.renderer.chart.getSecondsFromBeat(g);for(const v of h.slice(d,f+1)){if(v.value==0)continue;const y=p/Math.abs(v.value);v.beat!=c.beat?g=v.beat:g=Math.round((g-v.beat)/y)*y+v.beat,b=Math.round(this.renderer.getYPosFromBeat(g)*x.chart.zoom+this.parent.y),w=this.renderer.chart.getSecondsFromBeat(g);const E=this.renderer.getScrollDirection(v.value),C=h[h.indexOf(v)+1]?.beat??Number.MAX_VALUE;for(;gm){if(E>0){g=C;break}g+=y*(b-m),b=m;continue}g+=y*x.chart.waveform.lineHeight,b+=E*x.chart.waveform.lineHeight,w=t.getSecond(g),this.drawLine(w,b,e)}}}else if(x.chart.CMod){let i=this.renderer.getSecondFromYPos((-this.parent.y+(x.chart.reverse?this.renderer.chartManager.app.renderer.screen.height:0))/x.chart.zoom);const s=this.renderer.getPixelsToSecondsRatio()/x.chart.zoom;i=Math.floor(i/s)*s;const n=a=>{i+=s*x.chart.waveform.lineHeight,this.drawLine(i,a,e)};if(x.chart.reverse)for(let a=this.renderer.chartManager.app.renderer.screen.height;a>=0;a-=x.chart.waveform.lineHeight)n(a);else for(let a=0;a<=this.renderer.chartManager.app.renderer.screen.height;a+=x.chart.waveform.lineHeight)n(a)}else{let i=this.renderer.getBeatFromYPos((-this.parent.y+(x.chart.reverse?this.renderer.chartManager.app.renderer.screen.height:0))/x.chart.zoom);t.init(this.renderer.chart.timingData);const s=this.renderer.getPixelsToEffectiveBeatsRatio()/x.chart.zoom;i=Math.floor(i/s)*s;let n=this.renderer.chart.getSecondsFromBeat(i);const a=o=>{i+=s*x.chart.waveform.lineHeight,n=t.getSecond(i),this.drawLine(n,o,e)};if(x.chart.reverse)for(let o=this.renderer.chartManager.app.renderer.screen.height;o>=0;o-=x.chart.waveform.lineHeight)a(o);else for(let o=0;o<=this.renderer.chartManager.app.renderer.screen.height;o+=x.chart.waveform.lineHeight)a(o)}this.purgePool()}drawLine(e,t,i){if(!(e<0))for(let s=0;st>=this.poolSearch)}updateLineHeight(){for(const e of this.lineContainer.children){const t=e;t.height=x.chart.waveform.lineHeight}}getLine(){if(this.lineContainer.children[this.poolSearch]){const t=this.lineContainer.children[this.poolSearch];return t.visible=!0,this.poolSearch++,t}const e=new Ne(te.WHITE);return e.height=x.chart.waveform.lineHeight,e.anchor.set(.5),e.visible=!0,this.poolSearch++,this.lineContainer.addChild(e),e}getSpeed(){return Math.min(x.chart.speed,cD)}}const dD="/smeditor/assets/missing-81d55ba9.png",Ay=te.from(dD),fD={HoldBodyTopOffset:0,HoldBodyBottomOffset:0,RollBodyTopOffset:0,RollBodyBottomOffset:0};class pD{renderer;options;objects=[];updateHooks=new Set;hooks={};metrics;constructor(e,t){this.renderer=e,this.options=t,this.options.init?.(e),this.metrics={...fD,...this.options.metrics}}update(e){this.options.update?.(e),this.updateHooks.forEach(({item:t,cb:i})=>{t.destroyed||i(e)})}getPlaceholderSprite(){const e=new Ne(Ay);return e.anchor.set(.5),e}getBlankSprite(){return new Ne(te.EMPTY)}getElement(e,t={}){try{return this.options.load?this.options.load.bind(this)(e,{noteskin:this,columnName:e.columnName,columnNumber:e.columnNumber,...t})??this.getPlaceholderSprite():this.loadElement(e,t)??this.getPlaceholderSprite()}catch(i){return console.error(i),x.debug.showNoteskinErrors&&Ee.createFormatted("Noteskin Error: "+i,"error"),this.getPlaceholderSprite()}}loadElement(e,t={}){const i=this.followRedirs(e);return i===void 0?(x.debug.showNoteskinErrors&&Ee.createFormatted(`Noteskin element ${e.columnName} ${e.element} failed to load for noteskin: Redirect loop`,"error"),this.getPlaceholderSprite()):i({noteskin:this,columnName:e.columnName,columnNumber:e.columnNumber,...t})}followRedirs(e){const t=[e];let i=e;for(;;){const s=this.options.elements[i.columnName]?.[i.element];if(s===void 0)return;if(typeof s=="function")return s;if(i={columnName:s.columnName??i.columnName,columnNumber:s.columnNumber??i.columnNumber,element:s.element},t.some(n=>i.columnName==n.columnName&&i.element==n.element))return;t.push(i)}}on(e,t,i){this.hooks[t]===void 0&&(this.hooks[t]=new Set);const s={item:e,cb:i};this.hooks[t].add(s),e.once("destroyed",()=>this.hooks[t].delete(s))}onUpdate(e,t){const i={item:e,cb:t};this.updateHooks.add(i),e.once("destroyed",()=>this.updateHooks.delete(i))}broadcast(e){if(this.hooks[e.type]===void 0)return;this.hooks[e.type].forEach(({item:i,cb:s})=>{i.destroyed||s(e)})}}const mD="/smeditor/assets/hold_judgement-82934f15.png";class Bs extends ve{children=[];static held_tex;static dropped_tex;notefield;constructor(e){super(),Bs.held_tex||this.loadTex(),this.notefield=e}async loadTex(){const e=await bn.load(mD),t=e.height,i=e.width;Bs.held_tex=new te(e,new ke(0,0,i,t/2)),Bs.dropped_tex=new te(e,new ke(0,t/2,i,t/2))}update(){this.y=this.notefield.renderer.getActualReceptorYPos()+(x.chart.reverse?-48:48);for(const e of this.children){const t=(Date.now()-e.createTime)/1e3;if(t<.1){const i=1-(1-t/.1)*(1-t/.1);e.scale.set(.3*i)}else if(t>.6&&t<.8){const i=(t-.6)/.2*(t-.6)/.2;e.scale.set(.3*(1-i))}}hr(this.children,e=>Date.now()-e.createTime>800)}addJudge(e,t){if(!Vn(t)&&!Us(t))return;const i=new Ne(Vn(t)?Bs.dropped_tex:Bs.held_tex);i.anchor.set(.5),i.x=this.notefield.getColumnX(e),i.createTime=Date.now(),i.scale.set(0),this.addChild(i)}}const gD={L:233724,l:11261687,R:16559363,r:16442809};class bD extends ve{notefield;arrowMap=new Map;notesDirty=!1;children=[];constructor(e){super(),this.notefield=e,this.sortableChildren=!0;const t=()=>{this.arrowMap.clear(),this.removeChildren()},i=()=>this.notesDirty=!0;H.on("timeSigChanged",t),H.on("chartModified",i),this.on("destroyed",()=>{H.off("timeSigChanged",t),H.off("chartModified",i)})}update(e,t){const i=this.notefield.renderer.chart.getNotedata();if(this.notesDirty){for(const[s,n]of this.arrowMap.entries())i.includes(s)||(n.destroy(),this.arrowMap.delete(s));this.notesDirty=!1}for(const s of i){if(s.beat>t)break;if(this.shouldDisplayNote(s,e,t)&&!this.arrowMap.has(s)){const n=new ve,a=this.notefield.createNote(s);Object.assign(n,{x:this.notefield.getColumnX(s.col),zIndex:s.beat});const o=new Ne(te.WHITE),l=a.getBounds();o.x=l.x,o.y=l.y,o.width=l.width,o.height=l.height,o.alpha=0;const c=new Ne(te.WHITE);c.x=l.x,c.y=l.y,c.width=l.width,c.height=l.height,c.alpha=0,this.notefield.renderer.registerDragNote(n,s),n.wrapper=a,n.selection=o,n.parity=c,n.lastActive=!1,this.arrowMap.set(s,n),n.addChild(a,o,c),this.addChild(n)}}for(const[s,n]of this.arrowMap.entries()){if(!this.shouldDisplayNote(s,e,t)){n.destroy(),this.arrowMap.delete(s);continue}if(n.y=this.notefield.renderer.getActualReceptorYPos(),(!Be(s)||!s.gameplay?.lastHoldActivation||this.notefield.renderer.getVisualBeat(){e=="chart.allowReceptorDrag"&&(this.eventMode=x.chart.allowReceptorDrag?"static":"passive")};constructor(e){super(),this.notefield=e;for(let s=0;s{!this.dragStart||!this.dragOptionsStart||(x.chart.receptorXPos=Math.round(this.dragOptionsStart[0]+s.global.x-this.dragStart.x),x.chart.receptorYPos=Math.round(this.dragOptionsStart[1]+s.global.y-this.dragStart.y))},i=()=>{this.notefield.renderer.off("pointermove",t),this.notefield.renderer.off("pointerup",i)};this.on("pointerdown",s=>{this.dragStart=new ze(s.globalX,s.globalY),this.dragOptionsStart=[x.chart.receptorXPos,x.chart.receptorYPos],s.preventDefault(),s.stopImmediatePropagation(),this.notefield.renderer.on("pointermove",t),this.notefield.renderer.on("pointerup",i)}),H.on("userOptionUpdated",this.optionUpdate),this.optionUpdate("chart.allowReceptorDrag")}destroy(){H.off("userOptionUpdated",this.optionUpdate)}update(){this.y=this.notefield.renderer.getActualReceptorYPos()}}class wD extends ve{notefield;arrowMap=new Map;children=[];lastBeatShift=0;lastColShift=0;constructor(e){super(),this.notefield=e,this.sortableChildren=!0}update(e,t){if(!this.notefield.renderer.chartManager.selection.shift){this.removeChildren(),this.arrowMap.clear();return}const i=this.notefield.renderer.chartManager.selection.shift.beatShift,s=this.notefield.renderer.chartManager.selection.shift.columnShift;if(this.lastBeatShift!=i||this.lastColShift!=s){this.lastBeatShift=i,this.lastColShift=s;for(const[n,a]of this.arrowMap.entries()){const o=this.notefield.renderer.chartManager.loadedChart.computeNote({...n,beat:n.beat+i,col:n.col+s});a.x=this.notefield.getColumnX(o.col),a.wrapper.destroy(),a.wrapper.alpha=.4,a.wrapper=this.notefield.createNote(o);const l=a.wrapper.getBounds();a.selection.x=l.x,a.selection.y=l.y,a.selection.width=l.width,a.selection.height=l.height,a.addChild(a.wrapper,a.selection)}}for(const n of this.notefield.renderer.chartManager.selection.notes)if(!(n.beat+i+(Be(n)?n.hold:0)t)&&!this.arrowMap.has(n)){const a={...n,beat:n.beat+i,col:n.col+s},o=new ve,l=this.notefield.createNote(a);Object.assign(o,{x:this.notefield.getColumnX(a.col),zIndex:a.beat,alpha:.4});const c=new Ne(te.WHITE),u=l.getBounds();c.x=u.x,c.y=u.y,c.width=u.width,c.height=u.height,c.alpha=0,this.notefield.renderer.registerDragNote(l,a),o.wrapper=l,o.selection=c,this.arrowMap.set(n,o),o.addChild(l,c),this.addChild(o)}for(const[n,a]of this.arrowMap.entries()){if(n.beat+i+(Be(n)?n.hold:0)t){a.destroy(),this.arrowMap.delete(n);continue}const o=n.beat+i;if(a.y=this.notefield.renderer.getYPosFromBeat(o),a.selection.alpha=Math.sin(Date.now()/320)*.1+.3,Be(n)){const l=this.notefield.renderer.getYPosFromBeat(o+(Be(n)?n.hold:0))-a.y,c=a.wrapper.object;c.setLength(l),c.setBrightness(1);const u=a.wrapper.getLocalBounds();a.selection.x=u.x,a.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TC2qq8EQ0lMzliv9eYBWSUSBlpu1y/e/P9KrU3g9+WAtJFzfbURm78QR4eJOIQbeZyzuyPIKumzAMWeH3wcDsqKc2BXztrOQhI9RNhnz65lbB9KvySZkwVb/T39mO+f6ajj7oDr5yv22IE3GzkBvsXvLHZ/yI7fGeAREr7FX7bMByafmFtNCPvM1naIcC8uoBBOSlXDHotHupk8izVuSNXutvVPRFm2mk5ALCnZ1oli0yZSEHQ8m11owFsMGGYSsh90BG8vOyB10WjmydXXD3gvglTxCexSQkT5+HZbMaEkbd2p4BjeyPqkcoxMyqId67S8OW4tnMPvEZtim1l80bam5XQkQQmK+KL2kWbKamce721GN8uPYwgt4dQgRfYipFB7l/Yy2ifSaXgEh8TltdULCNXcP/xWCsHLTMhxXuAXmQzirwqURPbaUTcA3Wvoarj6/WbQgl33BnDIk41HIOSqxKD7p1SmpVy3yfaE05142tJSVHCPFR1Y/y6zRamvEX1JFLEQQCSJB5B9BfgCwNDJ0if9eSgAAAABJRU5ErkJggg==";class ED extends Fg{offsetY=0;setY=0;_last=0;_lastTop=!1;constructor(e){super(e,0,0,0,0),this.scale.cb=()=>{this.refresh()}}cropBottom(e,t=!1){this._last==e&&!this._lastTop&&!t||(this._last=e,this._lastTop=!1,this._height=this.texture.height-e/Math.abs(this.scale.y),this._bottomHeight=0,this.offsetY=0,this.topHeight=this.texture.height-e/Math.abs(this.scale.y),this._updateY())}cropTop(e,t=!1){this._last==e&&this._lastTop&&!t||(this._last=e,this._lastTop=!0,this._height=this.texture.height-e/Math.abs(this.scale.y),this._topHeight=0,this.bottomHeight=this.texture.height-e/Math.abs(this.scale.y),this.offsetY=e/Math.abs(this.scale.y),this._updateY())}get y(){return this.setY}set y(e){this.setY=e,this._updateY()}_updateY(){super.y=this.setY+this.offsetY*Math.abs(this.scale.y)}refresh(){this._lastTop?this.cropTop(this._last,!0):this.cropBottom(this._last,!0)}}class Ty extends ED{constructor(e,t=64){super(e),this.scale.set(t/this.texture.width),this.pivot.x=t/2/this.scale.x,this.texture.on("update",()=>{this.width=this.texture.width,this.height=this.texture.height,this.scale.set(t/this.texture.width),this.pivot.x=t/2/this.scale.x,this.refresh()})}}class qD extends Ty{_playing=!1;_autoUpdate=!1;_isConnectedToTicker=!1;_tickerUpdate=this.update.bind(this);_currentTime=0;_textures;_previousFrame=null;onComplete=null;onLoop=null;onFrameChange=null;animationSpeed=1;loop=!1;updateAnchor=!1;constructor(e,t){super(e[0],t),this.textures=e}stop(){this._playing&&(this._playing=!1,this._autoUpdate&&this._isConnectedToTicker&&(It.shared.remove(this._tickerUpdate),this._isConnectedToTicker=!1))}play(){this._playing||(this._playing=!0,this._autoUpdate&&!this._isConnectedToTicker&&(It.shared.add(this._tickerUpdate,this,ns.HIGH),this._isConnectedToTicker=!0))}gotoAndStop(e){this.stop(),this.currentFrame=e}gotoAndPlay(e){this.currentFrame=e,this.play()}update(e){if(!this._playing)return;const t=this.animationSpeed*e,i=this.currentFrame;this._currentTime+=t,this._currentTime<0&&!this.loop?(this.gotoAndStop(0),this.onComplete?.()):this._currentTime>=this._textures.length&&!this.loop?(this.gotoAndStop(this._textures.length-1),this.onComplete?.()):i!==this.currentFrame&&(this.loop&&this.onLoop&&(this.animationSpeed>0&&this.currentFramei)&&this.onLoop(),this.updateTexture())}updateTexture(){const e=this.currentFrame;this._previousFrame!==e&&(this._previousFrame=e,this.texture=this._textures[e],this.onFrameChange?.(this.currentFrame))}destroy(e){this.stop(),super.destroy(e),this.onComplete=null,this.onFrameChange=null,this.onLoop=null}get totalFrames(){return this._textures?.length??0}get textures(){return this._textures??[]}set textures(e){this._textures=e,this._previousFrame=null,this.gotoAndStop(0),this.updateTexture()}get currentFrame(){let e=Math.floor(this._currentTime)%this._textures.length;return e<0&&(e+=this._textures.length),e}set currentFrame(e){if(e<0||e>this.totalFrames-1)throw new Error(`[AnimatedSprite]: Invalid frame index value ${e}, expected to be between 0 and totalFrames ${this.totalFrames}.`);const t=this.currentFrame;this._currentTime=e,t!==this.currentFrame&&this.updateTexture()}get playing(){return this._playing}get autoUpdate(){return this._autoUpdate}set autoUpdate(e){e!==this._autoUpdate&&(this._autoUpdate=e,!this._autoUpdate&&this._isConnectedToTicker?(It.shared.remove(this._tickerUpdate),this._isConnectedToTicker=!1):this._autoUpdate&&!this._isConnectedToTicker&&this._playing&&(It.shared.add(this._tickerUpdate),this._isConnectedToTicker=!0))}}const AD={Fake:te.from(xD),Lift:te.from(_D)};class Qm extends ve{object;icon;constructor(e){super(),this.object=e,this.icon=new Ne(AD[e.note.type]),this.icon.anchor.set(.5),this.icon.scale.set(.3),this.icon.alpha=.8,this.icon.visible=!1,this.addChild(e,this.icon),e.nf.noteskin===void 0?H.on("noteskinLoaded",()=>this.loadEventHandler()):this.loadEventHandler()}loadEventHandler(){this.object.nf.noteskin.onUpdate(this,e=>{if(!x.chart.drawIcons){this.icon.visible=!1;return}if(this.object.nf.noteskinOptions?.hideIcons?.includes(this.object.note.type)){this.icon.visible=!1;return}this.icon.visible=!0,this.object.note.type=="Fake"&&(this.icon.visible=e.chartManager.getMode()!=K.Play)})}}class TD extends ve{type="note";note;nf;constructor(e,t){super(),this.note=t,this.nf=e,this.nf.noteskin===void 0?H.on("noteskinLoaded",()=>{this.loadElement(t)}):this.loadElement(t)}loadElement(e){const t=this.nf.noteskin.getElement({element:e.type,columnName:this.nf.getColumnName(e.col),columnNumber:e.col},{note:e});this.addChild(t)}}function CD(r){return r.cropTop!==void 0}class SD extends ve{type="hold";note;active;inactive;wasActive=!1;lastLength=null;elements;metrics;ns;nf;loaded=!1;constructor(e,t){super();const i=new ve,s=new ve;this.note=t,this.ns=e.noteskin,this.nf=e,this.metrics=this.ns.metrics,i.visible=!1,this.active=i,this.inactive=s,this.addChild(s,i),e.noteskin===void 0?H.on("noteskinLoaded",()=>{this.loadElements()}):this.loadElements()}loadElements(){if(!this.loaded){this.elements={};for(const e of["Active","Inactive"]){this.elements[e]={};for(const t of["BottomCap","Body","TopCap","Head"]){const i=this.getNoteskinElement(`${e} ${t}`);t=="BottomCap"?CD(i)?this.elements[e][t]=i:(x.debug.showNoteskinErrors&&Ee.createFormatted(`Noteskin Error: invalid tail found for ${e} ${t}!`,"error"),this.elements[e][t]=new Ty(Ay,64)):this.elements[e][t]=i,(e=="Active"?this.active:this.inactive).addChild(this.elements[e][t])}}this.loaded=!0}}getNoteskinElement(e){return this.ns.getElement({element:`${this.note.type} ${e}`,columnName:this.nf.getColumnName(this.note.col),columnNumber:this.note.col},{note:this.note})}setActive(e){this.wasActive!=e&&(this.wasActive=e,this.active.visible=e,this.inactive.visible=!e)}setBrightness(e){if(!this.loaded)return;const t=["Active","Inactive"],i=["Body","TopCap","BottomCap"];for(const s of t)for(const n of i)"tint"in this.elements[s][n]&&(this.elements[s][n].tint=Hd(e*255,e*255,e*255))}setLength(e){if(!this.loaded||this.lastLength==e)return;this.lastLength=e;const t=this.metrics[`${this.note.type}BodyBottomOffset`],i=this.metrics[`${this.note.type}BodyTopOffset`],s=["Active","Inactive"],n=e>=0?1:-1,a=Math.abs(e);for(const o of s){this.elements[o].Body.height=Math.max(0,a+t-i),this.elements[o].Body.y=a+t,this.elements[o].BottomCap.y=a+t,this.elements[o].BottomCap.y<0?(this.elements[o].BottomCap.cropTop(-this.elements[o].BottomCap.y),e<0&&(this.elements[o].BottomCap.y-=this.elements[o].BottomCap.y/Math.abs(this.elements[o].BottomCap.scale.y))):this.elements[o].BottomCap.cropTop(0),this.elements[o].TopCap.y=i;const l=Math.abs(this.elements[o].BottomCap.scale.y);this.elements[o].BottomCap.scale.y=e<0?-l:l;const c=Math.abs(this.elements[o].TopCap.scale.y);this.elements[o].TopCap.scale.y=e<0?-c:c,this.elements[o].Body.height*=n,this.elements[o].Body.y*=n,this.elements[o].BottomCap.y*=n,this.elements[o].TopCap.y*=n}}}class e0 extends ve{noteskinOptions;noteskin;gameType;renderer;receptors;notes;selectionNotes;flashes;holdJudges;ghostNote;ghostNoteEntry;columnX=[];constructor(e){super(),this.renderer=e,this.gameType=e.chart.gameType,ut.getNoteskin(this.gameType,x.chart.noteskin.name).then(t=>{if(!t){Ee.createFormatted("Couldn't find an available noteskin!","error");return}let i=0;for(let s=0;s=e&&this.ghostNoteEntry.beat<=t&&this.ghostNoteEntry.beat>=0))}onJudgement(e,t){this.noteskin!==void 0&&(this.holdJudges.addJudge(e,t),cr(t)&&this.noteskin.broadcast({type:"hit",judgement:t,columnName:this.getColumnName(e),columnNumber:e}),Us(t)&&this.noteskin.broadcast({type:"held",columnName:this.getColumnName(e),columnNumber:e}),Vn(t)&&this.noteskin.broadcast({type:"letgo",columnName:this.getColumnName(e),columnNumber:e}),Li(t)&&this.noteskin.broadcast({type:"miss",judgement:t,columnName:this.getColumnName(e),columnNumber:e}),mh(t)&&this.noteskin.broadcast({type:"hitmine",columnName:this.getColumnName(e),columnNumber:e}))}startPlay(){}endPlay(){if(this.noteskin!==void 0)for(let e=0;eDate.now()-e.createTime>5e3),x.general.smoothAnimations?this.currentMedian.x=(this.currentMedian.x-this.target)*.8+this.target:this.currentMedian.x=this.target}addBar(e,t){if(e==null||!Li(t)&&!cr(t))return;const i=new Ne(te.WHITE);i.width=kD,i.height=t0,i.anchor.set(.5),i.x=e*400,i.tint=t.color,i.createTime=Date.now(),i.miss=Li(t),i.ms=Math.round(e*1e3),this.errorText.tint=t.color,this.errorText.text=(e*1e3).toFixed(1)+"ms",this.errorTextTime=Date.now(),this.barlines.addChild(i),this.target=fh(this.barlines.children.filter(s=>!s.miss).map(s=>s.ms))*.4}reset(){this.currentMedian.x=0,this.target=0,hr(this.barlines.children,()=>!0)}}class PD extends Ne{createTime=-1;active=!1;type=Jb;constructor(){super(),this.anchor.set(.5)}update(){if(this.y=x.chart.reverse?40:-40,this.visible=this.active,this.active){const e=(Date.now()-this.createTime)/1e3;let t=1.2;if(rt.getCollection(x.play.timingCollection).shouldHideNote(this.type)||(t=.8),e<.1){const i=1-(1-e/.1)*(1-e/.1),s=(1-t)*i+t;this.scale.x=.4*s,this.scale.y=.4*s}else if(e>.6&&e<.8){const i=(e-.6)/.2*(e-.6)/.2;this.scale.x=.4*(1-i),this.scale.y=.4*(1-i)}else e>.8&&(this.active=!1)}}doJudge(e,t){if(e==null&&(e=0),!cr(t)&&!Li(t))return;const i=t.judgementTexture.getTexture(e,t);i&&(this.texture=i,this.texture.updateUvs(),this.active=!0,this.type=t,this.createTime=Date.now(),x.play.judgementTilt?this.rotation=Oe(e,-.05,.05)*300/180*Math.PI:this.rotation=0)}reset(){this.active=!1}}class wr extends oo{static options;static convertText;static convertBtnOne;static convertBtnTwo;static onTimingChange=this.updateValues.bind(this);onConfirm=()=>{};persistent=!1;static open(e){super._open({...e,title:"Column",description:"",width:255,editable:!0,cancelableOnOpen:!1}),H.on("timingModified",this.onTimingChange),this.updateValues()}static buildContent(){const e=document.createElement("div");e.style.display="flex",e.style.gap="4px",e.style.alignItems="center",e.style.flexDirection="column",e.style.marginTop="10px",e.style.fontSize="12px";const t=document.createElement("div"),i=document.createElement("button"),s=document.createElement("button");this.convertBtnOne=i,this.convertBtnTwo=s,this.convertText=t,e.replaceChildren(t,i,s),this.view.appendChild(e)}static close(){!this.popup||!this.active||(super.close(),H.off("timingModified",this.onTimingChange))}static updateValues(){const e=this.options.timingData.isPropertyChartSpecific(this.options.type),t=e?"chart":"song";this.title.innerText=Je[t].title,this.desc.innerText=Je[t].desc,this.convertText.innerText=Je[t].convertText,this.convertBtnOne.innerText=Je[t].buttonOne.text,this.convertBtnTwo.innerText=Je[t].buttonTwo.text,this.convertBtnTwo.classList.toggle("delete",e),Ze(this.convertBtnOne,{content:Je[t].buttonOne.tooltip}),Ze(this.convertBtnTwo,{content:Je[t].buttonTwo.tooltip}),this.convertBtnOne.onclick=()=>{Je[t].buttonOne.action(this.options.timingData,this.options.type),this.close()},this.convertBtnTwo.onclick=()=>{Je[t].buttonTwo.action(this.options.timingData,this.options.type),this.close()}}}const Qo={BPMS:{title:"BPM Event",rows:[{label:"Tempo",key:"value",input:{type:"spinner",precision:3}}]},STOPS:{title:"Stop Event",description:"Stops for a number of seconds. Notes on this beat are hit before the stop occurs.",rows:[{label:"Seconds",key:"value",input:{type:"spinner",precision:3}}]},WARPS:{title:"Warp Event",description:"Warps ahead a number of beats. Warped notes do not count towards score.",rows:[{label:"Beats",key:"value",input:{type:"spinner",precision:3,min:0}}]},DELAYS:{title:"Delay Event",description:"Stops for a number of seconds. Notes on this beat are hit after the delay occurs.",rows:[{label:"Seconds",key:"value",input:{type:"spinner",precision:3}}]},SCROLLS:{title:"Scroll Event",description:"Notes after this event will scroll at the specified speed.",rows:[{label:"Multiplier",key:"value",input:{type:"spinner",precision:3}}]},TICKCOUNTS:{title:"Tickcount Event",description:"Number of ticks per beat in a hold. Only applies to pump gamemodes.",rows:[{label:"Ticks",key:"value",input:{type:"spinner",step:1,precision:0,min:0}}]},FAKES:{title:"Fake Event",description:"Creates an area of notes that cannot be hit and do not count towards score.",rows:[{label:"Beats",key:"value",input:{type:"spinner",precision:3,min:0}}]},LABELS:{title:"Label Event",rows:[{label:"Label",key:"value",input:{type:"text"}}]},SPEEDS:{title:"Speed Event",width:200,description:"The entire playfield scrolls at the specified speed. Can slowly ease over a certain amount of time.",rows:[{label:"Multiplier",key:"value",input:{type:"spinner",precision:3}},{label:"Ease time",key:"delay",input:{type:"spinner",precision:3,min:0}},{label:"Ease unit",key:"unit",input:{type:"dropdown",items:["Beats","Seconds"],transformers:{serialize:r=>r=="B"?"Beats":"Seconds",deserialize:r=>r=="Beats"?"B":"T"}}}]},TIMESIGNATURES:{title:"Time Signature Event",width:200,rows:[{label:"Upper",key:"upper",input:{type:"spinner",step:1,precision:0,min:1}},{label:"Lower",key:"lower",input:{type:"spinner",step:1,precision:0,min:1}}]},COMBOS:{title:"Combo Event",width:200,description:"Multiplies the combo gained from hitting/missing notes after this event.",rows:[{label:"Hit multiplier",key:"hitMult",input:{type:"spinner",step:1,precision:0,min:0}},{label:"Miss multiplier",key:"missMult",input:{type:"spinner",step:1,precision:0,min:0}}]},ATTACKS:{title:"Attack Event",width:200,description:"Applies a modifier to the playfield. Can specify the length of the applied attack in seconds or the end time of the attack.",rows:[{label:"Timing type",key:"endType",input:{type:"dropdown",items:["Length","End"],transformers:{serialize:r=>r=="LEN"?"Length":"End",deserialize:r=>r=="Length"?"LEN":"END"}}},{label:"Seconds",key:"value",input:{type:"spinner",precision:3}},{label:"Mods",key:"mods",input:{type:"text"}}]},BGCHANGES:{title:"BG Change Event",width:250,rows:[{label:"File",key:"file",input:{type:"text"}},{label:"Update rate",key:"updateRate",input:{type:"spinner",precision:3,min:0}},{label:"Crossfade",key:"crossfade",input:{type:"checkbox"}},{label:"StretchRewind",key:"stretchRewind",input:{type:"checkbox"}},{label:"StretchNoLoop",key:"StretchNoLoop",input:{type:"checkbox"}},{label:"Effect",key:"effect",input:{type:"text"}},{label:"File2",key:"file2",input:{type:"text"}},{label:"Transition",key:"transition",input:{type:"text"}},{label:"Color1",key:"color1",input:{type:"text"}},{label:"Color2",key:"color2",input:{type:"text"}}]},FGCHANGES:{title:"FG Change Event",width:250,rows:[{label:"File",key:"file",input:{type:"text"}},{label:"Update rate",key:"updateRate",input:{type:"spinner",precision:3,min:0}},{label:"Crossfade",key:"crossfade",input:{type:"checkbox"}},{label:"StretchRewind",key:"stretchRewind",input:{type:"checkbox"}},{label:"StretchNoLoop",key:"StretchNoLoop",input:{type:"checkbox"}},{label:"Effect",key:"effect",input:{type:"text"}},{label:"File2",key:"file2",input:{type:"text"}},{label:"Transition",key:"transition",input:{type:"text"}},{label:"Color1",key:"color1",input:{type:"text"}},{label:"Color2",key:"color2",input:{type:"text"}}]}};class tt extends oo{static options;static cachedEvent;static rows=[];static onTimingChange;static open(e){this.active||(super._open({...e,attach:e.box.backgroundObj,title:Qo[e.box.event.type].title,description:Qo[e.box.event.type].description,width:Qo[e.box.event.type].width??150,editable:!0,cancelableOnOpen:!1,background:Hl(kr[e.box.event.type].toString(16).padStart(6,"0"),"#333333",.75),textColor:"#ffffff",options:[{label:"Ok",type:"confirm",callback:()=>{this.close(),this.options.onConfirm(this.cachedEvent)}},{label:"Delete",type:"delete",callback:()=>{this.options.modifyBox||this.options.timingData.delete([{type:this.cachedEvent.type,[this.cachedEvent.type=="ATTACKS"?"second":"beat"]:this.cachedEvent.type=="ATTACKS"?this.cachedEvent.second:this.cachedEvent.beat}]),this.close()}}]}),this.cachedEvent=structuredClone(e.box.event),this.onTimingChange=this.updateValues.bind(this),H.on("timingModified",this.onTimingChange))}static buildContent(){const e=Qo[this.options.box.event.type],t=document.createElement("div");t.classList.add("popup-grid"),this.view.appendChild(t),e.rows.forEach(i=>t.append(...this.buildRow(i)))}static buildRow(e){const t=structuredClone(this.options.box.event),i=document.createElement("div");i.innerText=e.label,i.classList.add("popup-label");const s=[];switch(s.push(i),e.input.type){case"spinner":{const n=ft.create(t[e.key],e.input.step,e.input.precision,e.input.min,e.input.max);n.onChange=a=>{a!==void 0&&this.modifyEvent(e.key,a)},this.rows.push({data:e,el:n}),s.push(n.view);break}case"text":{const n=document.createElement("input");n.type="text",n.autocomplete="off",n.spellcheck=!1,n.onkeydown=a=>{a.key=="Enter"&&n.blur()},n.onblur=()=>{this.modifyEvent(e.key,n.value)},n.value=t[e.key],this.rows.push({data:e,el:n}),s.push(n);break}case"dropdown":{if(e.input.transformers){const n=e.input.transformers.deserialize,a=e.input.transformers.serialize,o=Oi.create(e.input.items,a(t[e.key]));o.onChange(l=>{this.modifyEvent(e.key,n(l))}),this.rows.push({data:e,el:o}),s.push(o.view)}else{const n=Oi.create(e.input.items,t[e.key]);n.onChange(a=>{this.modifyEvent(e.key,a)}),this.rows.push({data:e,el:n}),s.push(n.view)}break}case"checkbox":{const n=document.createElement("input");n.type="checkbox",n.checked=t[e.key],n.onchange=()=>{this.modifyEvent(e.key,n.checked)},this.rows.push({data:e,el:n}),s.push(n);break}}return s}static modifyEvent(e,t){this.options.modifyBox?Object.assign(this.options.box.event,{[e]:t}):this.options.timingData.modify([[structuredClone(this.options.box.event),Object.assign(this.options.box.event,{[e]:t})]]),this.cachedEvent=structuredClone(this.options.box.event)}static updateValues(){const e=this.options.timingData.getEventAtBeat(this.options.box.event.type,this.options.box.event.beat,!1);if(!this.options.box||!e||e.beat!=this.options.box.event.beat){this.close();return}this.rows.forEach(t=>{switch(t.data.input.type){case"spinner":{t.el.setValue(e[t.data.key]);break}case"text":{t.el.value=e[t.data.key];break}case"dropdown":{const i=t.el;t.data.input.transformers?i.setSelected(t.data.input.transformers.serialize(e[t.data.key])):i.setSelected(e[t.data.key]);break}case"checkbox":{t.el.checked=e[t.data.key];break}}})}static close(){this.active&&(super.close(),H.off("timingModified",this.onTimingChange))}static getEvent(){return this.cachedEvent}static attach(e){super.attach(e.backgroundObj),this.options.box=e,this.cachedEvent=e.event}}const fl={fontName:"Main",fontSize:15},Ki={BPMS:55,STOPS:55,DELAYS:55,WARPS:55,FAKES:55,COMBOS:40,SPEEDS:80,LABELS:80,SCROLLS:55,TIMESIGNATURES:40,TICKCOUNTS:40,BGCHANGES:55,FGCHANGES:55,ATTACKS:55};class BD extends ve{tracks=new ve;renderer;timingBoxMap=new Map;wasEditingTiming=!1;boxPool=new Ya({create:()=>{const e=new ve;return e.textObj=new Fe("",fl),e.backgroundObj=new zt,e.selection=new zt("onlyBorder"),e.selection.tint=3841008,e.addChild(e.backgroundObj,e.textObj,e.selection),e}});ghostBox;timingDirty=!1;tracksDirty=!0;constructor(e){super(),this.renderer=e,this.boxPool.sortableChildren=!0,this.sortableChildren=!0,this.addChild(this.tracks,this.boxPool);const t=()=>{this.timingDirty=!0,this.tracksDirty=!0},i=s=>{s.startsWith("chart.timingEventOrder")&&(this.tracksDirty=!0)};H.on("timingModified",t),H.on("userOptionUpdated",i),this.on("destroyed",()=>{H.off("timingModified",t),H.off("userOptionUpdated",i)})}update(e,t){this.renderer.chartManager.editTimingMode!=Ie.Add&&(this.ghostBox?.removeFromParent(),this.ghostBox?.destroy(),this.ghostBox=void 0),this.updateTracks(),this.updateBoxes(e,t)}createTrack(e,t){const i=Object.assign(new ve,{alpha:0,name:e,x:t,type:e,timingMode:"song",background:new Ne(te.WHITE),btns:new ve});i.background=new Ne(te.WHITE),i.background.width=Ki[e],i.background.height=5e3,i.background.tint=2503250,i.background.anchor.y=.5,i.background.alpha=0,i.btns.y=this.renderer.getActualReceptorYPos()+(x.chart.reverse?50:-50);const s=new ve,n=new zt,a=new Fe(e,fl);return n.width=20,n.height=20,et(n,"widget-bg"),n.pivot.set(10,10),a.anchor.set(.5,.55),a.text="S",et(a,"text-color"),s.alpha=.4,s.name="timingTypeBtn",s.eventMode="static",s.on("mouseenter",()=>{wr.persistent||wr.open({attach:s,type:e,timingData:this.renderer.chart.timingData})}),s.on("mouseleave",()=>{wr.persistent||wr.close()}),s.on("pointerdown",()=>{wr.persistent&&wr.open({attach:s,type:e,timingData:this.renderer.chart.timingData}),wr.select()}),s.addChild(n,a),i.btns.addChild(s),i.addChild(i.background,i.btns),this.tracks.addChild(i),i}initializeBox(e,t){if(mi.stop(e.animationId),Object.assign(e,{event:t,lastX:void 0,lastAnchor:void 0,animationId:void 0,zIndex:t.beat,eventMode:"static"}),e.textObj.text=this.getLabelFromEvent(t),e.textObj.anchor.set(.5,.55),e.backgroundObj.width=e.textObj.width+10,e.backgroundObj.height=25,e.backgroundObj.position.x=-e.backgroundObj.width/2,e.backgroundObj.position.y=-25/2,e.selection.width=e.textObj.width+10,e.selection.height=25,e.selection.position=e.backgroundObj.position,tt.active){const i=tt.getEvent();i.type=="ATTACKS"&&t.type=="ATTACKS"&&i.second==t.second&&tt.attach(e),i.type!="ATTACKS"&&t.type!="ATTACKS"&&i.type==t.type&&i.beat==t.beat&&tt.attach(e)}}addDragListeners(e,t){e.on("mouseenter",()=>{tt.persistent||this.renderer.chartManager.eventSelection.timingEvents.length>0||this.renderer.isDragSelecting()||(tt.active&&tt.close(),this.renderer.chartManager.getMode()==K.Edit&&tt.open({box:e,timingData:this.getTargetTimingData(e.event),modifyBox:!1,onConfirm:()=>{this.renderer.chartManager.removeEventFromSelection(t)}}))}),e.on("mouseleave",()=>{tt.persistent||tt.close()});let i=0,s;const n=a=>{const o=s,l=this.toLocal(a.global);if(Math.abs(l.y-i)<32){this.renderer.chartManager.eventSelection.shift&&(this.renderer.chartManager.eventSelection.shift={beatShift:0});return}tt.close();const c=this.renderer.getBeatFromYPos(l.y),u=x.chart.snap==0?1/1e3:x.chart.snap;let h=Math.round(c/u)*u;Math.abs(h-c)>Math.abs(c-o.beat)&&(h=o.beat),this.renderer.chartManager.eventSelection.shift||={beatShift:0},this.renderer.chartManager.eventSelection.shift.beatShift=Math.max(-Math.min(...this.renderer.chartManager.eventSelection.timingEvents.map(d=>d.beat)),h-o.beat)};e.on("pointerdown",a=>{if(Uu(a)){this.renderer.chartManager.clearSelections(),this.renderer.chartManager.addEventToSelection(t),tt.close();return}if(a.stopImmediatePropagation(),this.renderer.chartManager.isEventInSelection(t)?(a.getModifierState("Control")||a.getModifierState("Meta"))&&this.renderer.chartManager.removeEventFromSelection(t):(!a.getModifierState("Control")&&!a.getModifierState("Meta")&&!a.getModifierState("Shift")&&this.renderer.chartManager.clearSelections(),this.renderer.chartManager.addEventToSelection(t)),this.renderer.chartManager.getMode()==K.Edit&&this.renderer.chartManager.eventSelection.timingEvents.length==1&&tt.options?.box!=e&&(tt.close(),tt.open({box:e,timingData:this.getTargetTimingData(e.event),modifyBox:!1,onConfirm:()=>{this.renderer.chartManager.removeEventFromSelection(t)}})),tt.active&&!a.getModifierState("Control")&&!a.getModifierState("Meta")&&!a.getModifierState("Shift")?tt.select():tt.close(),i=e.y,s=t,this.renderer.chartManager.editTimingMode==Ie.Add)return;this.renderer.on("pointermove",n);const o=()=>{this.renderer.off("pointermove",n),this.renderer.off("pointerup",o),(this.renderer.chartManager.eventSelection.shift?.beatShift??0)!=0&&this.renderer.chartManager.modifyEventSelection(l=>(l.type=="ATTACKS"&&(l.second=this.renderer.chart.timingData.getSecondsFromBeat(l.beat+this.renderer.chartManager.eventSelection.shift.beatShift)),l.beat+=this.renderer.chartManager.eventSelection.shift.beatShift,l)),this.renderer.chartManager.eventSelection.shift=void 0};this.renderer.on("pointerup",o)})}updateTracks(){const e=this.renderer.chartManager.editTimingMode!=Ie.Off&&this.renderer.chartManager.getMode()==K.Edit;if(e&&this.tracks.children.forEach(a=>{a.btns.y=this.renderer.getActualReceptorYPos()+(x.chart.reverse?50:-50)}),!this.tracksDirty&&this.wasEditingTiming==e)return;this.wasEditingTiming=e,this.tracksDirty=!1;const t=x.chart.timingEventOrder.left,i=x.chart.timingEventOrder.right;this.tracks.children.forEach(a=>{a.visible=!1});let s=-this.renderer.chart.gameType.notefieldWidth*.5-128;const n=(a,o,l,c,u)=>{mi.animate(a,{0:{[o]:"inherit"},1:{[o]:l}},c,Sr(0,0,.16,1.01),()=>{},u)};for(let a=t.length-1;a>=0;a--){const o=t[a],l=this.tracks.getChildByName(o)??this.createTrack(o,s);l.visible=!0;const c=a%2==0?.1:0;n(l,"x",s,.3,`track-${o}-x`),n(l.btns,"x",-Ki[o]/2,.3,`track-${o}-btn-x`),n(l.background,"anchor.x",1,.3,`track-${o}-anchor-x`),n(l.background,"alpha",e?c:0,.3,`track-${o}-bg-alpha`),s-=Ki[o]}s=this.renderer.chart.gameType.notefieldWidth*.5+128;for(let a=0;a{const o=a.btns.getChildByName("timingTypeBtn"),l=o?.children[1];o&&(o.eventMode=e?"static":"none"),l&&(l.text=this.renderer.chart.timingData.isPropertyChartSpecific(a.type)?"C":"S")})}updateBoxes(e,t){this.timingDirty&&(this.timingBoxMap.clear(),this.boxPool.destroyAll(),this.timingDirty=!1);const i=this.renderer.chartManager.editTimingMode!=Ie.Off&&this.renderer.chartManager.getMode()==K.Edit;this.boxPool.visible=this.renderer.shouldDisplayBarlines(),this.ghostBox&&(this.ghostBox.visible=this.renderer.shouldDisplayBarlines()&&i);for(const n of this.renderer.chart.timingData.getTimingData()){if(tn.beat)&&!this.timingBoxMap.has(n)){const a=this.boxPool.createChild();if(!a)break;this.initializeBox(a,n),this.addDragListeners(a,n),this.timingBoxMap.set(n,a)}}const s={beat:-Number.MAX_SAFE_INTEGER,second:-Number.MAX_SAFE_INTEGER,leftOffset:0,rightOffset:0};for(const[n,a]of this.timingBoxMap.entries()){if(n.beatt||!x.chart.timingEventOrder.left.includes(n.type)&&!x.chart.timingEventOrder.right.includes(n.type)){this.timingBoxMap.delete(n),tt.options?.box==a?tt.detach():tt.persistent||tt.close(),this.boxPool.destroyChild(a);continue}let o=0,l=0;const c=a.backgroundObj.width,u=x.chart.timingEventOrder.right.includes(n.type)?"right":"left";i?(o=this.tracks.getChildByName(n.type)?.x??a.x,o+=Ki[n.type]/2*(o>0?1:-1),l=.5):(o=(u=="right"?1:-1)*(this.renderer.chart.gameType.notefieldWidth*.5+80),u=="left"&&(o-=30),(s.beat!=n.beat||n.second&&s.second!=n.second)&&(s.leftOffset=0,s.rightOffset=0,s.beat=n.beat,s.second=n.second),u=="left"?(o-=s.leftOffset,s.leftOffset+=c+5):(o+=s.rightOffset,s.rightOffset+=c+5),l=u=="right"?0:1),a.lastX===void 0||a.lastAnchor===void 0?(a.x=o,a.pivot.x=(l-.5)*c):(a.lastX!=o||a.lastAnchor!=l)&&(a.animationId=mi.animate(a,{0:{x:"inherit","pivot.x":"inherit"},1:{x:o,"pivot.x":(l-.5)*c}},.3,Sr(0,0,.16,1.01),()=>{},a.animationId)),a.lastX=o,a.lastAnchor=l,a.y=x.chart.CMod&&n.type=="ATTACKS"?this.renderer.getYPosFromSecond(n.second):this.renderer.getYPosFromBeat(n.beat);const h=this.renderer.chartManager.getMode()!=K.Play&&this.renderer.chartManager.isEventInSelection(n);if(a.backgroundObj.tint=h?Gd(kr[n.type]??0,Math.sin(Date.now()/320)*.4+1.5):kr[n.type]??0,a.selection.alpha=h?1:0,a.visible=!h||!this.renderer.chartManager.eventSelection.shift,this.renderer.chartManager.editTimingMode!=Ie.Off){const d=this.renderer.selectionTest(a);!h&&d&&this.renderer.chartManager.addEventToDragSelection(n),h&&!d&&this.renderer.chartManager.removeEventFromDragSelection(n)}}}updateGhostEvent(e){const t=x.chart.snap==0?.001:x.chart.snap,i=Math.round(this.renderer.getBeatFromYPos(e.y)/t)*t,s=tt.active&&tt.options?.box==this.ghostBox,n=s?this.ghostBox.event.type:this.getClosestTrack(e.x)?.name;if(!n){this.ghostBox?.removeFromParent(),this.ghostBox?.destroy(),this.ghostBox=void 0;return}if(!this.ghostBox){const l=new ve;l.textObj=new Fe("",fl),l.backgroundObj=new zt,l.selection=new zt("onlyBorder"),l.guideLine=new Ne(te.WHITE),l.selection.tint=3841008,l.selection.alpha=0,l.addChild(l.guideLine,l.backgroundObj,l.textObj,l.selection),this.addChild(l),l.visible=this.renderer.shouldDisplayBarlines(),l.textObj.anchor.set(.5,.55),l.backgroundObj.height=25,l.selection.height=25,l.guideLine.height=1,l.guideLine.anchor.y=.5,this.ghostBox=l}!s&&(this.ghostBox.event?.beat!=i||this.ghostBox.event?.type!=n)&&(this.ghostBox.event=structuredClone(this.renderer.chart.timingData.getEventAtBeat(n,i))??this.renderer.chart.timingData.getDefaultEvent(n,i),this.ghostBox.event.beat=i,n=="ATTACKS"&&(this.ghostBox.event.second=this.renderer.chart.getSecondsFromBeat(i)),this.ghostBox.textObj.text=this.getLabelFromEvent(this.ghostBox.event),this.ghostBox.backgroundObj.width=this.ghostBox.textObj.width+10,this.ghostBox.selection.width=this.ghostBox.textObj.width+10),this.ghostBox.alpha=s?1:.4,this.ghostBox.selection.alpha=s?1:0,this.ghostBox.name=n;const a=this.renderer.getYPosFromBeat(s?this.ghostBox.event.beat:i);let o=this.tracks.getChildByName(n).x;o+=Ki[n]/2*(o>0?1:-1),this.ghostBox.position.x=o,this.ghostBox.backgroundObj.tint=kr[n]??0,this.ghostBox.backgroundObj.position.x=-this.ghostBox.backgroundObj.width/2,this.ghostBox.backgroundObj.position.y=-25/2,this.ghostBox.guideLine.anchor.x=o<0?0:1,this.ghostBox.guideLine.width=Math.abs(this.ghostBox.position.x)+192-this.ghostBox.backgroundObj.width/2,this.ghostBox.guideLine.position.x=(o<0?1:-1)*this.ghostBox.backgroundObj.width/2,this.ghostBox.y=a,this.ghostBox.selection.position=this.ghostBox.backgroundObj.position}placeGhostEvent(){if(!this.ghostBox)return;const e=this.renderer.chart.timingData.getEventAtBeat(this.ghostBox.event.type,this.ghostBox.event.beat,!1);this.ghostBox.event.type=="ATTACKS"&&this.ghostBox.event.second==e?.second||this.ghostBox.event.type!="ATTACKS"&&this.ghostBox.event.beat==e?.beat||(this.renderer.chartManager.clearSelections(),tt.open({box:this.ghostBox,timingData:this.getTargetTimingData(this.ghostBox.event),modifyBox:!0,onConfirm:t=>{this.getTargetTimingData(this.ghostBox.event).insert([t])}}),tt.select())}getClosestTrack(e){let t=Number.MAX_SAFE_INTEGER,i=this.tracks.children[0];for(const s of this.tracks.children){const n=Math.abs(s.x+(.5-s.background.anchor.x)*s.width-e);ni.width))return i}getLabelFromEvent(e){let t="";switch(e.type){case"BPMS":case"STOPS":case"WARPS":case"DELAYS":case"TICKCOUNTS":case"FAKES":case"SCROLLS":t=ae(e.value,3).toString();break;case"SPEEDS":t=`${ae(e.value,3)}/${ae(e.delay,3)}/${e.unit}`;break;case"LABELS":t=e.value;break;case"TIMESIGNATURES":t=`${ae(e.upper,3)}/${ae(e.lower,3)}`;break;case"COMBOS":t=`${ae(e.hitMult,3)}/${ae(e.missMult,3)}`;break;case"BGCHANGES":case"FGCHANGES":t=e.file;break;case"ATTACKS":t=`${e.mods}`}return t}getTargetTimingData(e){return this.renderer.chart.timingData.isPropertyChartSpecific(e.type)?this.renderer.chart.timingData:this.renderer.chart.timingData.songTimingData}}class RD extends ve{children=[];renderer;timingBoxMap=new Map;trackPosCache=new Map;timingBoxPool=new Ya({create:()=>{const e=new ve;return e.guideLine=new Ne(te.WHITE),e.textObj=new Fe("",fl),e.backgroundObj=new zt,e.addChild(e.guideLine,e.backgroundObj,e.textObj),e}});constructor(e){super(),this.renderer=e,this.timingBoxPool.sortableChildren=!0,this.addChild(this.timingBoxPool)}update(e,t){if(!this.renderer.chartManager.eventSelection.shift){this.timingBoxPool.destroyAll(),this.timingBoxMap.clear(),this.trackPosCache.clear();return}const i=this.renderer.chartManager.eventSelection.shift.beatShift;for(const s of this.renderer.chartManager.eventSelection.timingEvents)if(!(ts.beat+i)&&!this.timingBoxMap.has(s)){const n=this.timingBoxPool.createChild();if(!n)continue;this.timingBoxMap.set(s,n);let a="";switch(s.type){case"BPMS":case"STOPS":case"WARPS":case"DELAYS":case"TICKCOUNTS":case"FAKES":case"SCROLLS":a=ae(s.value,3).toString();break;case"SPEEDS":a=`${ae(s.value,3)}/${ae(s.delay,3)}/${s.unit}`;break;case"LABELS":a=s.value;break;case"TIMESIGNATURES":a=`${ae(s.upper,3)}/${ae(s.lower,3)}`;break;case"COMBOS":a=`${ae(s.hitMult,3)}/${ae(s.missMult,3)}`;break;case"BGCHANGES":case"FGCHANGES":a=s.file;break;case"ATTACKS":a=`${s.mods} (${s.endType}=${s.value})`}const o=x.chart.timingEventOrder.right.includes(s.type)?"right":"left";if(Object.assign(n,{alpha:.4,zIndex:s.beat}),n.textObj.text=a,n.textObj.anchor.set(.5,.55),n.backgroundObj.width=n.textObj.width+10,n.backgroundObj.height=25,n.backgroundObj.tint=kr[s.type]??0,n.backgroundObj.position.x=-n.backgroundObj.width/2,n.backgroundObj.position.y=-n.backgroundObj.height/2,n.guideLine.height=1,n.guideLine.anchor.set(o=="left"?0:1,.5),n.guideLine.width=Math.abs(n.position.x)+192-n.backgroundObj.width/2,n.guideLine.position.x=(o=="left"?1:-1)*n.backgroundObj.width/2,this.renderer.chartManager.editTimingMode!=Ie.Off){let l=this.getTrackPos(s.type);l+=Ki[s.type]/2*(l>0?1:-1),n.position.x=l,n.pivot.x=0}else{let l=(o=="right"?1:-1)*(this.renderer.chart.gameType.notefieldWidth*.5+80);o=="left"&&(l-=30),n.position.x=l,n.pivot.x=o=="right"?-n.backgroundObj.width/2:n.backgroundObj.width/2}}for(const[s,n]of this.timingBoxMap.entries()){if(ts.beat+i){this.timingBoxPool.destroyChild(n),this.timingBoxMap.delete(s);continue}n.y=x.chart.CMod&&s.second?this.renderer.getYPosFromSecond(s.second):this.renderer.getYPosFromBeat(s.beat+i)}}getTrackPos(e){if(this.trackPosCache.has(e))return this.trackPosCache.get(e);const t=x.chart.timingEventOrder.left,i=x.chart.timingEventOrder.right;let s=-this.renderer.chart.gameType.notefieldWidth*.5-128;for(let n=t.length-1;n>=0;n--){const a=t[n];this.trackPosCache.set(a,s),s-=Ki[a]}s=this.renderer.chart.gameType.notefieldWidth*.5+128;for(let n=0;n{if(this.editingCol!=-1){const a=x.chart.snap==0?.020833333333333332:x.chart.snap,o=Math.round(this.getBeatFromYPos(this.lastMousePos.y)/a)*a;this.chartManager.editHoldBeat(this.editingCol,o,n.shiftKey)}};let i=0;const s=()=>{if(!this.chartManager.selection.shift&&!this.selectionBounds||i==0)return;const n=this.getYPosFromBeat(Math.max(0,this.chartManager.beat+i));this.chartManager.beat=Math.max(0,this.chartManager.beat+i),this.selectionBounds&&(x.chart.reverse?this.selectionBounds.start.y-=x.chart.receptorYPos/x.chart.zoom+n:this.selectionBounds.start.y+=x.chart.receptorYPos/x.chart.zoom-n,this.selectionBoundary.update())};this.chartManager.app.ticker.add(s),window.addEventListener("keydown",t),this.on("destroyed",()=>{window.removeEventListener("keydown",t),this.removeAllListeners(),this.chartManager.app.ticker.remove(s)}),this.on("pointerdown",n=>{Uu(n)||this.chartManager.getMode()==K.Play||this.chartManager.getMode()==K.View||(this.chartManager.editTimingMode==Ie.Add&&this.lastMousePos?this.timingTracks.placeGhostEvent():this.chartManager.editTimingMode==Ie.Off&&x.chart.mousePlacement&&this.lastMouseBeat!=-1&&this.lastMouseCol!=-1&&!n.getModifierState("Shift")?(this.chartManager.clearSelections(),this.editingCol=this.lastMouseCol,this.chartManager.setNote(this.lastMouseCol,"mouse",this.lastMouseBeat)):(!n.getModifierState("Control")&&!n.getModifierState("Meta")&&!n.getModifierState("Shift")&&this.chartManager.clearSelections(),this.chartManager[this.chartManager.editTimingMode==Ie.Off?"startDragSelection":"startDragEventSelection"](),this.selectionBounds={start:this.toLocal(n.global),end:this.toLocal(n.global)},this.selectionBoundary.update()))}),this.on("mousemove",n=>{if(this.lastMousePos=this.toLocal(n.global),this.editingCol!=-1){const a=x.chart.snap==0?.020833333333333332:x.chart.snap,o=Math.round(this.getBeatFromYPos(this.lastMousePos.y)/a)*a;this.chartManager.editHoldBeat(this.editingCol,o,n.shiftKey)}this.selectionBounds&&(this.selectionBounds.end=this.toLocal(n.global),this.selectionBoundary.update()),i=Math.max(0,this.lastMousePos.y-this.getLowerBound()+100)/600,this.lastMousePos.y<0&&(i=Math.min(0,this.lastMousePos.y-this.getUpperBound()-100)/600),x.chart.reverse&&(i=Math.max(0,this.getUpperBound()-this.lastMousePos.y+100)/600,this.lastMousePos.y>0&&(i=Math.min(0,this.getLowerBound()-this.lastMousePos.y-100)/600))}),this.on("pointerup",()=>{this.editingCol!=-1&&(this.chartManager.endEditing(this.editingCol),this.editingCol=-1),this.chartManager[this.chartManager.editTimingMode==Ie.Off?"endDragSelection":"endDragEventSelection"](),this.selectionBounds=void 0,this.selectionBoundary.update(),i=0})}isDragSelecting(){return!!this.selectionBounds}doJudgement(e,t,i){this.chartManager.getMode()==K.Play&&(this.judgement.doJudge(t,i),this.timingBar.addBar(t,i)),this.notefield.onJudgement(e.col,i)}startPlay(){this.notefield.startPlay()}endPlay(){this.notefield.endPlay(),this.timingBar.reset(),this.judgement.reset()}update(){if(this.destroyed)return;this.cachedBeat=this.chartManager.beat,this.cachedTime=this.chartManager.time,this.x=this.chartManager.app.renderer.screen.width/2+x.chart.receptorXPos,this.speedMult=x.chart.doSpeedChanges?this.getCurrentSpeedMult():1;const e=this.getTopOnScreenBeat(),t=this.getBottomOnScreenBeat(),i=Math.min(e,t),s=Math.max(e,t);if(this.scale.x=x.chart.zoom,this.scale.y=x.chart.zoom,this.children.forEach(n=>n.update(i,s)),this.notefield.alpha=this.chartManager.editTimingMode==Ie.Off||this.chartManager.getMode()==K.Play?1:.3,x.chart.mousePlacement&&this.lastMousePos&&this.chartManager.getMode()!=K.Play){const n=x.chart.snap==0?.020833333333333332:x.chart.snap,a=Math.round(this.getBeatFromYPos(this.lastMousePos.y)/n)*n;let o=-1;for(let l=0;lu-c/2){o=l;break}}(a!=this.lastMouseBeat||o!=this.lastMouseCol||this.chartManager.getEditingNoteType()!=this.lastNoteType)&&(this.lastMouseBeat=a,this.lastMouseCol=o,this.lastNoteType=this.chartManager.getEditingNoteType(),this.editingCol!=-1&&this.chartManager.editHoldBeat(this.editingCol,a,!1),o===-1?(this.lastMouseBeat=-1,this.lastMouseCol=-1,this.notefield.setGhostNote()):this.notefield.setGhostNote(this.chart.computeNote({beat:a,col:this.lastMouseCol,type:this.chartManager.getEditingNoteType()})))}this.lastMousePos&&this.chartManager.editTimingMode==Ie.Add&&this.timingTracks.updateGhostEvent(this.lastMousePos)}getTimeWithOffset(){let e=this.cachedTime;return(this.chartManager.getMode()==K.Play||this.chartManager.getMode()==K.Record)&&(e+=x.play.offset*x.audio.rate),e}getBeatWithOffset(){let e=this.cachedBeat;return(this.chartManager.getMode()==K.Play||this.chartManager.getMode()==K.Record)&&(e=this.chart.getBeatFromSeconds(this.getTimeWithOffset())),e}getVisualTime(){let e=this.cachedTime;return(this.chartManager.getMode()==K.Play||this.chartManager.getMode()==K.Record)&&(e+=(x.play.offset+x.play.visualOffset)*x.audio.rate),e}getVisualBeat(){let e=this.cachedBeat;return(this.chartManager.getMode()==K.Play||this.chartManager.getMode()==K.Record)&&(e=this.chart.getBeatFromSeconds(this.getVisualTime())),e}getYPosFromBeat(e){const t=this.getVisualTime(),i=this.getVisualBeat(),s=x.chart.reverse?-1:1;return x.chart.CMod?(this.chart.getSecondsFromBeat(e)-t)*this.getSecondsToPixelsRatio()*s+this.getActualReceptorYPos():i==e?this.getActualReceptorYPos():(x.chart.doSpeedChanges?this.chart.timingData.getEffectiveBeat(e)-this.chart.timingData.getEffectiveBeat(i):e-i)*this.getEffectiveBeatsToPixelsRatio()*s+this.getActualReceptorYPos()}getYPosFromSecond(e){const t=this.getVisualTime(),i=x.chart.reverse?-1:1;return x.chart.CMod?(e-t)*this.getSecondsToPixelsRatio()*i+this.getActualReceptorYPos():this.getYPosFromBeat(this.chart.timingData.getBeatFromSeconds(e))}getSecondFromYPos(e){const t=x.chart.reverse?-1:1;if(x.chart.CMod){const i=this.getPixelsToSecondsRatio(),s=this.getVisualTime(),a=(e-this.getActualReceptorYPos())*i*t;return s+a}return this.chart.getSecondsFromBeat(this.getBeatFromYPos(e))}getBeatFromYPos(e,t){const i=this.getVisualBeat(),s=x.chart.reverse?-1:1;if(x.chart.CMod)return this.chart.getBeatFromSeconds(this.getSecondFromYPos(e));const a=(e-this.getActualReceptorYPos())*this.getPixelsToEffectiveBeatsRatio()*s;if(x.chart.doSpeedChanges&&!t){const o=this.chart.timingData.getEffectiveBeat(i)+a;return this.chart.getBeatFromEffectiveBeat(o)}return i+a}getColumnFromXPos(e){const t=this.chart.gameType;let i=null;for(let s=0;si)return s-1;i=n}return t.numCols-1}getActualReceptorYPos(){return x.chart.receptorYPos/x.chart.zoom*(x.chart.reverse?-1:1)}getEffectiveBeatsToPixelsRatio(){return x.chart.speed/100*64*this.speedMult}getPixelsToEffectiveBeatsRatio(){return 1/this.getEffectiveBeatsToPixelsRatio()}getSecondsToPixelsRatio(){return x.chart.speed/100*64*4}getPixelsToSecondsRatio(){return 1/this.getSecondsToPixelsRatio()}isNegScroll(e){return x.chart.doSpeedChanges&&(this.speedMult<0||(this.chart.timingData.getEventAtBeat("SCROLLS",e)?.value??1)<0||(this.chart.timingData.getEventAtBeat("BPMS",e)?.value??120)<0)}getUpperBound(){return-this.y/x.chart.zoom-64}getLowerBound(){return(this.chartManager.app.renderer.screen.height-this.y)/x.chart.zoom+64}findFirstOnScreenScroll(){const e=[...this.chart.timingData.getTimingData("SCROLLS")];e[0]?.beat!=0&&e.splice(0,0,{beat:0,value:e[0]?.value??1,type:"SCROLLS"});let t=Nt(e,this.getVisualBeat()-x.chart.maxDrawBeatsBack,i=>i.beat);for(;ts.beat);const i=Nt(e,this.getVisualBeat()-x.chart.maxDrawBeatsBack,s=>s.beat);for(;t>=i;){const s=e[t];t--;const n=s===void 0?-1/0*this.getScrollDirection(e[0]?.value??1):this.getYPosFromBeat(s.beat??0),a=e[t+2]===void 0?1/0*this.getScrollDirection(s.value):this.getYPosFromBeat(e[t+2].beat);if(this.isAreaOnScreen(n,a))return s}return{beat:0,value:1,type:"SCROLLS"}}getTopOnScreenBeat(){if(x.chart.waveform.speedChanges&&!x.chart.CMod&&x.chart.doSpeedChanges){const e=this.findFirstOnScreenScroll(),t=1/Math.abs(this.getEffectiveBeatsToPixelsRatio()),i=this.getYPosFromBeat(e.beat),s=t/Math.abs(e.value),n=this.getScrollDirection(e.value),a=n==1?this.getUpperBound():this.getLowerBound(),o=n*(a-i)*s+e.beat;return Math.max(this.getVisualBeat()-x.chart.maxDrawBeatsBack,o)}return x.chart.CMod?this.getBeatFromYPos(this.getUpperBound()):Math.max(this.getVisualBeat()-x.chart.maxDrawBeatsBack,this.getBeatFromYPos(this.getUpperBound()))}getBottomOnScreenBeat(){if(x.chart.waveform.speedChanges&&!x.chart.CMod&&x.chart.doSpeedChanges){const e=this.findLastOnScreenScroll(),t=1/Math.abs(this.getEffectiveBeatsToPixelsRatio()),i=this.getYPosFromBeat(e.beat),s=t/Math.abs(e.value),n=this.getScrollDirection(e.value),a=n==1?this.getLowerBound():this.getUpperBound(),o=n*(a-i)*s+e.beat;return Math.min(this.getVisualBeat()+x.chart.maxDrawBeats,o)}return x.chart.CMod?this.getBeatFromYPos(this.getLowerBound()):Math.min(this.getVisualBeat()+x.chart.maxDrawBeats,this.getBeatFromYPos(this.getLowerBound()))}isAreaOnScreen(e,t){ti}getCurrentSpeedMult(){return this.chart.timingData.getSpeedMult(this.getVisualBeat(),this.getVisualTime())}getScrollDirection(e){let t=1;return this.getCurrentSpeedMult()<0&&(t*=-1),x.chart.reverse&&(t*=-1),e<0&&(t*=-1),t}getUpperBoundBeat(){if(x.chart.waveform.speedChanges&&!x.chart.CMod&&x.chart.doSpeedChanges){const e=x.chart.speed,t=this.chart.timingData.getSpeedMult(this.getVisualBeat(),this.getVisualTime()),i=t>=0!=x.chart.reverse?1:-1,s=this.chart.timingData.getTimingData("SCROLLS"),n=100/e/Math.abs(t)/64/x.chart.zoom,a=this.getUpperBound(),o=this.getLowerBound();let l=Nt(s,this.getVisualBeat()-x.chart.maxDrawBeatsBack,m=>m.beat);for(this.getVisualBeat()-x.chart.maxDrawBeatsBack0&&w>a&&(ga||!s[l-1]||s[l-1].beat0?s[l-1]?.value==0&&this.getYPosFromBeat(s[l-1].beat)>p?this.getVisualBeat()-x.chart.maxDrawBeatsBack:Math.max(this.getVisualBeat()-x.chart.maxDrawBeatsBack,c+d*(p-u)):s[l-1]?.value==0&&this.getYPosFromBeat(s[l-1].beat)=0!=x.chart.reverse?1:-1,s=this.chart.timingData.getTimingData("SCROLLS"),n=100/e/Math.abs(t)/64/x.chart.zoom,a=this.getUpperBound(),o=this.getLowerBound();let l=Nt(s,this.getVisualBeat()+x.chart.maxDrawBeats,m=>m.beat);for(;l=0&&(s[l].beat??0)>this.getVisualBeat()-x.chart.maxDrawBeatsBack;){const m=s[l],g=this.getYPosFromBeat(m?.beat??0),b=s[l+1]?.beat??this.getVisualBeat()+x.chart.maxDrawBeats,w=this.getYPosFromBeat(b);if((m?.value??1)*i>0&&go||!s[l+1]||s[l+1].beat>this.getVisualBeat()+x.chart.maxDrawBeatsBack||s[l+1].value==0)||(m?.value??1)*i<0&&g>o&&(wthis.getVisualBeat()+x.chart.maxDrawBeatsBack||s[l+1].value==0))break;l--}const c=s[l]?.beat??0,u=this.getYPosFromBeat(c),h=s[l]?.value??1,d=n/Math.abs(h)*x.chart.zoom,f=x.chart.reverse?o:a,p=x.chart.reverse?a:o;return h*i>0?s[l+1]?.value==0&&this.getYPosFromBeat(s[l+1].beat)f?this.getVisualBeat()+x.chart.maxDrawBeats:Math.min(this.getVisualBeat()+x.chart.maxDrawBeats,c+d*(u-f))}return x.chart.CMod?this.getBeatFromYPos(this.getLowerBound()):Math.min(this.getVisualBeat()+x.chart.maxDrawBeats,this.getBeatFromYPos(this.getLowerBound()))}selectionTest(e){if(!this.selectionBounds)return!1;const t=this.selectionBoundary.getBounds(),i=e.getBounds(),s=16*x.chart.zoom;return t.x+t.width>i.x+s&&t.xi.y+s&&t.y{const u=o,h=this.toLocal(c.global);if(Math.abs(h.y-a-n)**2+Math.abs(h.x-s)**2<32*32){this.chartManager.selection.shift&&(this.chartManager.selection.shift={columnShift:0,beatShift:0});return}const d=this.getBeatFromYPos(h.y-a),f=x.chart.snap==0?1/48:x.chart.snap;let p=Math.round(d/f)*f;Math.abs(p-d)>Math.abs(d-u.beat)&&(p=u.beat);const m=this.getColumnFromXPos(h.x);this.chartManager.selection.shift||={columnShift:0,beatShift:0},i!=m-u.col&&(i=m-u.col,this.chartManager.selection.notes.every(g=>{const b=g.col+i;return b>=0&&bg.beat)),p-u.beat)};e.on("pointerdown",c=>{if(this.chartManager.getMode()==K.View)return;if(Uu(c)){this.chartManager.isNoteInSelection(t)||(this.chartManager.clearSelections(),this.chartManager.addNoteToSelection(t)),rD.open(this.chartManager.app,c),c.preventDefault();return}if(x.chart.mousePlacement&&!c.getModifierState("Meta")&&!c.getModifierState("Control")&&!c.getModifierState("Shift")&&!this.chartManager.isNoteInSelection(t))return;c.stopImmediatePropagation(),this.chartManager.isNoteInSelection(t)?(c.getModifierState("Control")||c.getModifierState("Meta"))&&this.chartManager.removeNoteFromSelection(t):(!c.getModifierState("Control")&&!c.getModifierState("Meta")&&!c.getModifierState("Shift")&&this.chartManager.clearSelections(),this.chartManager.addNoteToSelection(t)),s=e.x,n=e.y,a=this.toLocal(c.global).y-e.y,o=t,this.on("pointermove",l);const u=()=>{this.off("pointermove",l),this.off("pointerup",u),((this.chartManager.selection.shift?.beatShift??0)!=0||(this.chartManager.selection.shift?.columnShift??0)!=0)&&this.chartManager.modifySelection(h=>(h.beat+=this.chartManager.selection.shift.beatShift,h.col+=this.chartManager.selection.shift.columnShift,h)),this.chartManager.selection.shift=void 0};this.on("pointerup",u)}),e.on("destroyed",()=>{e?.removeAllListeners()})}getNotefield(){return this.notefield}swapNoteskin(e){x.chart.noteskin.name=e,x.chart.lastNoteskins[this.chart.gameType.id]=e,this.reloadNotefield()}reloadNotefield(){const e=new e0(this);this.addChildAt(e,this.children.indexOf(this.notefield)),this.notefield.destroy(),this.notefield=e}getSelectionBounds(){return this.selectionBounds}shouldDisplayBarlines(){return(this.chartManager.getMode()!=K.Play||!x.play.hideBarlines)&&De.barlines}}class Yd extends AudioBufferSourceNode{started=!1;start(e,t,i){this.started||super.start(e,t,i),this.started=!0}stop(e){this.started&&super.stop(e),this.started=!1}static create(e){const t=e;return t.started=!1,Object.setPrototypeOf(t,Yd.prototype),t}}class LD extends BiquadFilterNode{enabled=!1;static create(e){const t=e;return t.enabled=!1,t}}class el{_audioAnalyzer;_filteredAudioAnalyzer;_freqData;_filteredFreqData;_gainNode;type;_audioContext=new AudioContext;_source;_playbackTime=0;_startTimestamp=0;_rate=1;_isPlaying=!1;_buffer;_filteredBuffer;_loadedBuffer;_delay;_loadListeners=[];_updateListeners=[];_volume=1;_destroyed=!1;_renderTimeout;_filters=[this.createFilter({type:"highpass",frequency:20,Q:.71}),this.createFilter({type:"lowshelf",frequency:75,gain:0}),this.createFilter({type:"peaking",frequency:100,gain:0,Q:.6}),this.createFilter({type:"peaking",frequency:250,gain:0,Q:.3}),this.createFilter({type:"peaking",frequency:1040,gain:0,Q:.41}),this.createFilter({type:"peaking",frequency:2500,gain:0,Q:.2}),this.createFilter({type:"highshelf",frequency:7500,gain:0}),this.createFilter({type:"lowpass",frequency:2e4,Q:.71})];_filtersEnabled=!1;onStop;loaded;constructor(e,t){this.type=t??"",this._filters[0].gain.value=-25,this._audioAnalyzer=this._audioContext.createAnalyser(),this._audioAnalyzer.fftSize=4096,this._audioAnalyzer.maxDecibels=0,this._freqData=new Uint8Array(this._audioAnalyzer.frequencyBinCount),this._filteredAudioAnalyzer=this._audioContext.createAnalyser(),this._filteredAudioAnalyzer.fftSize=4096,this._filteredAudioAnalyzer.maxDecibels=0,this._filteredFreqData=new Uint8Array(this._filteredAudioAnalyzer.frequencyBinCount),this._gainNode=this._audioContext.createGain(),this._buffer=this._audioContext.createBuffer(2,1,44100),this._filteredBuffer=this._audioContext.createBuffer(2,1,44100),this._loadedBuffer=this._audioContext.createBuffer(2,1,44100),this.initSource(),this.loaded=new Promise(i=>{this.decodeData(e).then(s=>{if(s)return this._loadedBuffer=s,s}).then(async s=>(await this.renderBuffer(s),await this.renderFilteredBuffer(s),s)).catch(s=>{s.name=="EncodingError"?Ee.createFormatted("Failed to load audio: file format not supported","error"):Ee.createFormatted("Failed to load audio: "+s.message,"error")}).finally(()=>{this.initSource(),this.callLoadListeners(),this.callUpdateListeners(),i()})})}async renderBuffer(e){if(!e)return;const t=new OfflineAudioContext(e.numberOfChannels,e.length,e.sampleRate),i=t.createBufferSource();return i.buffer=e,i.connect(t.destination),i.start(),await t.startRendering().then(s=>{this._buffer=s}).catch(()=>{Ee.createFormatted("Failed to load audio: audio rendering failed","error")})}async renderFilteredBuffer(e){if(!e)return;const t=new OfflineAudioContext(e.numberOfChannels,e.length,e.sampleRate),i=t.createBufferSource();i.buffer=e;let s=i;for(const n of this._filters){if(!n.enabled)continue;const a=t.createBiquadFilter();a.type=n.type,a.Q.setValueAtTime(n.Q.value,0),a.frequency.setValueAtTime(n.frequency.value,0),a.gain.setValueAtTime(n.gain.value,0),s.connect(a),s=a}return s.connect(t.destination),i.start(),await t.startRendering().then(n=>{this._filteredBuffer=n}).catch(()=>{Ee.createFormatted("Failed to load audio: audio rendering failed","error")})}createFilter(e){const t=LD.create(this._audioContext.createBiquadFilter());return t.type=e.type,e.Q!==void 0&&(t.Q.value=e.Q),e.gain!==void 0&&(t.gain.value=e.gain),e.frequency!==void 0&&(t.frequency.value=e.frequency),t}getFilters(){return this._filters}getFilter(e){return this._filters[e]}updateFilter(e,t){this._filters[e]&&(t.Q!==void 0&&(this._filters[e].Q.value=t.Q),t.frequency!==void 0&&(this._filters[e].frequency.value=t.frequency),t.gain!==void 0&&(this._filters[e].gain.value=t.gain),clearTimeout(this._renderTimeout),this._renderTimeout=setTimeout(()=>this.renderFilteredBuffer(this._loadedBuffer).then(()=>this.callUpdateListeners()),500))}enableFilter(e){this._filters[e].enabled=!0,this.initSource(),clearTimeout(this._renderTimeout),this._renderTimeout=setTimeout(()=>this.renderFilteredBuffer(this._loadedBuffer).then(()=>this.callUpdateListeners()),500),this._filtersEnabled=!0}disableFilter(e){this._filters[e].enabled=!1,this.initSource(),clearTimeout(this._renderTimeout),this._renderTimeout=setTimeout(()=>this.renderFilteredBuffer(this._loadedBuffer).then(()=>this.callUpdateListeners()),500),this._filtersEnabled=this._filters.some(t=>t.enabled)}hasFilters(){return this._filtersEnabled}onLoad(e){this._loadListeners.push(e)}offLoad(e){this._loadListeners=this._loadListeners.filter(t=>t!=e)}onUpdate(e){this._updateListeners.push(e)}offUpdate(e){this._updateListeners=this._updateListeners.filter(t=>t!=e)}getSongLength(){return this._buffer.length/this._buffer.sampleRate}getFrequencyData(){return this._destroyed?new Uint8Array:(this._audioAnalyzer.getByteFrequencyData(this._freqData),this._freqData)}getFilteredFrequencyData(){return this._destroyed?new Uint8Array:(this._filteredAudioAnalyzer.getByteFrequencyData(this._filteredFreqData),this._filteredFreqData)}getSampleRate(){return this._buffer.sampleRate}getFFTSize(){return this._audioAnalyzer.fftSize}getRawData(){if(this._destroyed)return[];const e=[];for(let t=0;ti.enabled)?this._filters.filter(i=>i.enabled).map(i=>{const s=new Float32Array(e.length);return i.getFrequencyResponse(t,s,new Float32Array(e.length)),[...s]}).reduce((i,s)=>i.map((n,a)=>n*s[a])):new Array(e.length).fill(1)}callLoadListeners(){this._loadListeners.forEach(e=>e())}callUpdateListeners(){this._updateListeners.forEach(e=>e())}async decodeData(e){return new Promise((t,i)=>{if(!e){t();return}(async()=>{try{t(await this._audioContext.decodeAudioData(e))}catch(s){if(this.type==".ogg"){const n=(await Qe(()=>import("./OggDec-2941c3fd.js"),[])).default;try{t(await n.decodeOggData(e))}catch(a){i(a)}return}i(s)}})()})}initSource(){for(const t of this._filters)t.disconnect();this._audioAnalyzer.disconnect(),this._filteredAudioAnalyzer.disconnect(),this._gainNode.disconnect(),this._audioContext.destination.disconnect(),this._source?.stop(),this._source=Yd.create(this._audioContext.createBufferSource()),this._source.buffer=this._buffer,this._source.connect(this._audioAnalyzer);let e=this._audioAnalyzer;for(const t of this._filters)t.enabled&&(e.connect(t),e=t);e.connect(this._filteredAudioAnalyzer),x.audio.allowFilter?this._filteredAudioAnalyzer.connect(this._gainNode):this._audioAnalyzer.connect(this._gainNode),this._gainNode.connect(this._audioContext.destination),this._source.playbackRate.value=this._rate,this._isPlaying&&(this.pause(),this.play())}volume(e){this._destroyed||this._volume!=e&&(this._volume=e,this._gainNode.gain.setValueAtTime(e,this._audioContext.currentTime))}rate(e){this._destroyed||this._rate!=e&&(this._rate=e,this._source&&(this._isPlaying&&(this._playbackTime+=(this._audioContext.currentTime-this._startTimestamp)*this._source.playbackRate.value),this._startTimestamp=this._audioContext.currentTime,this._source.playbackRate.value=e))}play(){this._destroyed||this._source&&(this._isPlaying||(this.initSource(),this._playbackTime<=this._buffer.duration&&this._source.start(Math.max(0,this._audioContext.currentTime-this._playbackTime/x.audio.rate),Math.max(0,this._playbackTime)),this._startTimestamp=this._audioContext.currentTime,this._isPlaying=!0))}seek(e){if(e===void 0)return this._destroyed?this._playbackTime:this._source?this._isPlaying?(this._audioContext.currentTime-this._startTimestamp)*this._source.playbackRate.value+this._playbackTime:this._playbackTime:this._playbackTime;this._isPlaying?(this.stop(),this._playbackTime=e,this.play()):this._playbackTime=e}pause(){this._destroyed||this.stop(!0)}stop(e){this._destroyed||this._source&&this._isPlaying&&(this.onStop?.(),clearTimeout(this._delay),this._isPlaying=!1,this._playbackTime<=this._buffer.duration&&this._source.stop(),this._playbackTime=e?(this._audioContext.currentTime-this._startTimestamp)*this._source.playbackRate.value+this._playbackTime:0)}}class OD{judgementCounts=new Map;holdJudgementCounts=new Map;dancePoints=0;maxCumulativeDancePoints=0;maxDancePoints=0;chartManager;notedata;dataPoints=[];handlers=[];combo=0;missCombo=0;maxCombo=0;bestJudge;constructor(e){this.notedata=e.loadedChart.getNotedata(),this.chartManager=e,this.bestJudge=rt.getCollection(x.play.timingCollection).getStandardWindows()[0],this.calculateMaxDP()}onJudge(e){this.handlers.push(e)}applyOffset(e){this.dataPoints=this.dataPoints.map(t=>Li(t.judgement)||!cr(t.judgement)?t:{...t,error:t.error!==null?t.error+e:null})}addDataPoint(e,t,i){this.judgementCounts.has(t)||this.judgementCounts.set(t,0),this.judgementCounts.set(t,this.judgementCounts.get(t)+1),this.dancePoints+=t.dancePoints;const s=this.chartManager.loadedChart.timingData.getEventAtBeat("COMBOS",e[0].beat),n=s?.hitMult??1,a=s?.missMult??1;mh(t)||(this.maxCumulativeDancePoints+=rt.getCollection(x.play.timingCollection).getMaxDancePoints()),Li(t)?(this.chartManager.loadedChart.gameType.gameLogic.usesHoldTicks||(this.maxCumulativeDancePoints+=e.filter(Be).reduce((o,l)=>o+rt.getCollection(x.play.timingCollection).getMaxHoldDancePoints(l.type),0)),this.combo=0,this.missCombo+=a,this.bestJudge=void 0):cr(t)&&(rt.getCollection(x.play.timingCollection).shouldHideNote(t)?(this.combo+=e.length*n,this.combo>this.maxCombo&&(this.maxCombo=this.combo),this.missCombo=0,this.bestJudge&&t.getTimingWindowMS()>this.bestJudge.getTimingWindowMS()&&(this.bestJudge=t)):(this.bestJudge=void 0,this.combo=0)),this.handlers.forEach(o=>o(i,t)),this.dataPoints.push({second:e[0].second,error:i,judgement:t,notes:e})}addHoldDataPoint(e,t){this.judgementCounts.has(t)||this.judgementCounts.set(t,0),this.judgementCounts.set(t,this.judgementCounts.get(t)+1);const i=rt.getCollection(x.play.timingCollection).getHeldJudgement(e);this.holdJudgementCounts.has(i)||this.holdJudgementCounts.set(i,[0,0]);const s=this.holdJudgementCounts.get(i);Us(t)?s[0]++:s[1]++,this.holdJudgementCounts.set(i,s),this.dancePoints+=t.dancePoints,this.maxCumulativeDancePoints+=rt.getCollection(x.play.timingCollection).getMaxHoldDancePoints(e.type),this.handlers.forEach(n=>n(0,t)),Vn(t)&&(this.bestJudge=void 0)}getScore(){return this.maxDancePoints==0?0:this.dancePoints/this.maxDancePoints}getCumulativeScore(){return this.maxCumulativeDancePoints==0?0:this.dancePoints/this.maxCumulativeDancePoints}getDataPoints(){return this.dataPoints}getMedian(){return fh(this.dataPoints.filter(e=>!Li(e.judgement)&&cr(e.judgement)&&e.error!=null).map(e=>e.error))}getMaxCombo(){return this.maxCombo}calculateMaxDP(){this.maxDancePoints=this.chartManager.loadedChart.gameType.gameLogic.calculateMaxDP(this.notedata,this.chartManager.loadedChart.timingData)}getCount(e){return this.judgementCounts.get(e)??0}getCombo(){return this.combo}getMissCombo(){return this.missCombo}getBestJudge(){return this.bestJudge}}const ci=[1,2,3,4,6,8,12,16,24,48,-1],i0=.2;var K=(r=>(r.View="View Mode",r.Edit="Edit Mode",r.Play="Play Mode",r.Record="Record Mode",r))(K||{}),Ie=(r=>(r[r.Off=0]="Off",r[r.Edit=1]="Edit",r[r.Add=2]="Add",r))(Ie||{});class YD{app;chartAudio=new el;chartView;widgetManager;assistTick=new Pc({src:R2,volume:.5});me_high=new Pc({src:mb,volume:.5});me_low=new Pc({src:gb,volume:.5});mine=new Fl.Howl({src:F2,volume:.5});loadedSM;smPath="";loadedChart;selection={notes:[],inProgressNotes:[]};eventSelection={timingEvents:[],inProgressTimingEvents:[]};editTimingMode=0;holdEditing=[];editNoteTypeIndex=0;partialScroll=0;noteFlashIndex=0;assistTickIndex=0;lastMetronomeDivision=-1;lastMetronomeMeasure=-1;lastSong=null;mode="Edit Mode";lastMode="Edit Mode";_beat=0;noChartTextA;noChartTextB;loadingText;shiftPressed=0;virtualClipboard="";lastAutoSave=0;startRegion;endRegion;gameStats;constructor(e){this.app=e,document.addEventListener("keydown",i=>{i.key=="Shift"&&this.shiftPressed++}),document.addEventListener("keyup",i=>{i.key=="Shift"&&(this.shiftPressed=Math.max(this.shiftPressed-1,0))}),document.addEventListener("cut",i=>{if(i.target.classList.contains("inlineEdit")||i.target instanceof HTMLTextAreaElement||i.target instanceof HTMLInputElement||this.mode!="Edit Mode")return;const s=this.copy();s&&i.clipboardData?.setData("text/plain",s),this.eventSelection.timingEvents.length>0?this.deleteEventSelection():this.deleteSelection(),i.preventDefault()},!0),document.addEventListener("copy",i=>{if(i.target.classList.contains("inlineEdit")||i.target instanceof HTMLTextAreaElement||i.target instanceof HTMLInputElement||this.mode!="Edit Mode")return;const s=this.copy();s&&i.clipboardData?.setData("text/plain",s),i.preventDefault(),i.stopImmediatePropagation()},!0),document.addEventListener("paste",i=>{if(i.target.classList.contains("inlineEdit")||i.target instanceof HTMLTextAreaElement||i.target instanceof HTMLInputElement||this.mode!="Edit Mode")return;const s=i.clipboardData?.getData("text/plain");s&&this.paste(s,this.shiftPressed>0),i.preventDefault(),i.stopImmediatePropagation()},!0),e.view.addEventListener?.("wheel",i=>{if(!(this.loadedSM==null||this.loadedChart==null||this.chartView==null))if(i.preventDefault(),Ii&&i.metaKey||!Ii&&i.ctrlKey){const s=i.deltaY/5*x.chart.scroll.scrollSensitivity*(x.chart.scroll.invertZoomScroll?-1:1);x.chart.speed=Oe(x.chart.speed*Math.pow(1.01,s),10,35e3)}else{if(this.mode=="Play Mode"||this.mode=="Record Mode")return;let s=this.beat;const n=x.chart.snap,a=x.chart.speed*(x.chart.reverse&&x.chart.scroll.invertReverseScroll?-1:1),o=i.deltaY/a*x.chart.scroll.scrollSensitivity;if(n==0?(this.partialScroll=0,s=this.beat+o):x.chart.scroll.scrollSnapEveryScroll?i.deltaY<0!=x.chart.scroll.invertReverseScroll?s=Math.round((this.beat-n)/n)*n:s=Math.round((this.beat+n)/n)*n:(this.partialScroll+=o,Math.abs(this.partialScroll)>n&&(this.partialScroll<0?s=Math.round((this.beat+Math.ceil(this.partialScroll/n)*n)/n)*n:s=Math.round((this.beat+Math.floor(this.partialScroll/n)*n)/n)*n,this.partialScroll%=n)),s=Math.max(0,s),s!=this.beat&&(this.beat=s),!this.holdEditing.every(l=>l==null))for(let l=0;l{this.noChartTextB.tint=8952234}),this.noChartTextB.on("mouseleave",()=>{this.noChartTextB.tint=5596791}),this.noChartTextB.on("mousedown",()=>{this.app.windowManager.openWindow(new ny(e,We.getGameType("dance-single")))}),this.noChartTextA.visible=!1,this.noChartTextB.visible=!1,this.app.stage.addChild(this.noChartTextB),this.loadingText=new Fe("Loading simfile...",{fontName:"Main",fontSize:20}),this.loadingText.anchor.set(.5),this.loadingText.tint=5592405,this.app.stage.addChild(this.loadingText),this.loadingText.visible=!1;const t=()=>{this.noChartTextA.x=this.app.renderer.screen.width/2,this.noChartTextA.y=this.app.renderer.screen.height/2-20,this.noChartTextB.x=this.app.renderer.screen.width/2,this.noChartTextB.y=this.app.renderer.screen.height/2+10,this.loadingText.x=this.app.renderer.screen.width/2,this.loadingText.y=this.app.renderer.screen.height/2};t(),this.app.ticker.add(()=>{const i=performance.now();this.widgetManager.update(),this.loadedSM&&this.loadedChart&&this.chartView&&this.chartView.update(),qa.instance?.addDrawUpdateTimeValue(performance.now()-i)}),setInterval(()=>{if(!this.loadedSM||!this.loadedChart||!this.chartView)return;const i=performance.now(),s=this.chartAudio.seek();if(this.chartAudio.isPlaying()&&!this.holdEditing.every(a=>!a))for(let a=0;a.3&&this.editHoldBeat(a,c,!1)}const n=this.loadedChart.getNotedata();if(this.chartAudio.isPlaying()){for(this._beat=this.loadedChart?.getBeatFromSeconds(this.time)??0;this.noteFlashIndexn[this.noteFlashIndex].second;)this.mode!="Record Mode"&&this.loadedChart.gameType.gameLogic.shouldAssistTick(n[this.noteFlashIndex])&&this.mode!="Play Mode"&&this.chartView.doJudgement(n[this.noteFlashIndex],0,Jb),this.noteFlashIndex++;const a=new Set;for(;this.assistTickIndexn[this.assistTickIndex].second+x.play.effectOffset-i0;){if(a.has(n[this.assistTickIndex].second)||n[this.assistTickIndex].second+x.play.effectOffset-s<0){this.assistTickIndex++;continue}this.mode!="Record Mode"&&this.loadedChart.gameType.gameLogic.shouldAssistTick(n[this.assistTickIndex])&&(x.audio.assistTick&&De.assist&&this.assistTick.play((n[this.assistTickIndex].second+x.play.effectOffset-s)/x.audio.rate),a.add(n[this.assistTickIndex].second)),this.assistTickIndex++}}if(this.chartAudio.isPlaying()&&x.audio.metronome&&De.assist){const a=this.loadedChart.timingData,o=this.loadedChart.getBeatFromSeconds(this.time+x.play.effectOffset+i0),l=new Set,c=a.getBeatFromMeasure(this.lastMetronomeMeasure),u=a.getDivisionLength(c),h=c+u*this.lastMetronomeDivision,d=[...a.getMeasureBeats(h,o)].slice(1);for(const[f,p]of d){if(this.beat>f)continue;const m=a.getSecondsFromBeat(f);if(l.has(m))continue;l.add(m);const g=(m+x.play.effectOffset-this.time)/x.audio.rate;p?this.me_high.play(g):this.me_low.play(g)}if(d.length>0){const f=d.at(-1)[0];this.lastMetronomeMeasure=Math.floor(a.getMeasure(f)),this.lastMetronomeDivision=Math.round(a.getDivisionOfMeasure(f))}}this.mode=="Play Mode"&&this.loadedChart.gameType.gameLogic.update(this),this.lastAutoSave+x.general.autosaveInterval*1e3{this.chartView&&(this.chartView.x=this.app.renderer.screen.width/2,this.chartView.y=this.app.renderer.screen.height/2),t()}),H.on("chartModified",()=>{this.loadedChart&&(this.loadedChart.recalculateStats(),this.setNoteIndex(),H.emit("chartModifiedAfter"))}),H.on("userOptionUpdated",i=>{i!="audio.rate"&&i!="play.effectOffset"&&i!="audio.assistTick"&&i!="audio.metronome"||(this.assistTick.stop(),this.me_low.stop(),this.me_high.stop(),this.setNoteIndex())}),window.addEventListener("keyup",i=>{if(this.mode=="Edit Mode"&&i.code.startsWith("Digit")){let s=parseInt(i.code.slice(5))-1;s==-1&&(s=9),this.endEditing(s)}},!0),window.addEventListener("keydown",i=>{const s=Re.getKeyNameFromCode(i.code);if(this.mode=="Edit Mode"&&!i.target.classList.contains("inlineEdit")&&!(i.target instanceof HTMLTextAreaElement)&&!(i.target instanceof HTMLInputElement)&&!Wn.active){if(i.code.startsWith("Digit")&&!i.repeat&&!i.ctrlKey&&!i.metaKey&&!i.altKey&&!i.ctrlKey){let n=parseInt(i.code.slice(5))-1;n==-1&&(n=9),n<(this.loadedChart?.gameType.numCols??4)&&(this.setNote(n,"key"),i.preventDefault(),i.stopImmediatePropagation())}if(!this.holdEditing.every(n=>n==null)){const n=["cursorUp","cursorDown","previousNote","nextNote","previousMeasure","nextMeasure","jumpChartStart","jumpChartEnd","jumpSongStart","jumpSongEnd"];for(const a of n)if(Re.getCombosForKeybind(a).map(o=>o.key).includes(s)){i.preventDefault(),i.stopImmediatePropagation(),ct[a].callback(this.app);for(let o=0;oo.key).includes(s)){this.holdEditing=[];return}}}},!0),window.addEventListener("keydown",i=>{this.mode!="Play Mode"&&this.mode!="Record Mode"||i.key=="Escape"&&(this.setMode(this.lastMode),this.chartAudio.pause())},!0)}get beat(){return this.loadedChart?this.chartAudio.isPlaying()?this.loadedChart.getBeatFromSeconds(this.time):this._beat:0}set beat(e){this.loadedChart&&(this.chartAudio.seek(this.loadedChart.getSecondsFromBeat(e)),this._beat=e,this.setNoteIndex(),this.lastMetronomeMeasure=Math.floor(this.loadedChart.timingData.getMeasure(this.beat)),this.lastMetronomeDivision=Math.floor(this.loadedChart.timingData.getDivisionOfMeasure(this.beat)))}get time(){return this.chartAudio.seek()}set time(e){this.loadedChart&&(this.chartAudio.seek(e),this.setNoteIndex())}async loadSM(e){if(Ak.close(),Tk.close(),Ck.close(),Ye.instance.isDirty()){const a=new Wa(this.app,"Save","Do you wish to save the current file?",[{label:"Cancel",type:"default"},{label:"No",type:"default"},{label:"Yes",type:"confirm"}]);this.app.windowManager.openWindow(a);const o=await a.resolved;if(o=="Cancel")return;o=="Yes"&&this.save(),o=="No"&&await this.removeAutosaves()}if(!e){this.smPath="",this.loadedSM=void 0,this.chartAudio.stop(),this.noChartTextA.visible=!1,this.noChartTextB.visible=!1,this.chartView?.destroy({children:!0});return}this.chartAudio.stop(),this.chartAudio.seek(0),this.lastSong=null,this.smPath=e,this.loadingText.visible=!0;let t=this.smPath;const i=this.getSMPath(".smebak");if(await Le.hasFile(i)){const a=new Wa(this.app,"Autosave","An autosave was found. Do you wish to load the autosave?",[{label:"No",type:"default"},{label:"Yes",type:"confirm"}]);this.app.windowManager.openWindow(a),await a.resolved=="Yes"&&(t=i)}const s=await Le.getFileHandle(t);if(!s){Ee.createFormatted("Couldn't load the file at "+t,"error"),this.app.windowManager.openWindow(new gy(this.app)),this.loadingText.visible=!1;return}const n=await s.getFile();this.loadedSM=new dy(n),await this.loadedSM.loaded,this.loadingText.visible=!1,this.noChartTextA.visible=!0,this.noChartTextB.visible=!0,this.editTimingMode=0,H.emit("smLoaded"),await this.loadChart(),H.emit("smLoadedAfter"),this.beat=0,cy.addSM(this.smPath,this.loadedSM)}async loadChart(e){if(this.loadedSM==null)return;if(e==null){if(this.loadedChart){const s=this.loadedSM.charts[this.loadedChart.gameType.id];s&&s.length>0&&(e=s.at(-1))}if(!e)for(const s of We.getPriority()){const n=this.loadedSM.charts[s.id];if(n&&n.length>0){e=n.at(-1);break}}if(!e){this.chartView?.destroy({children:!0}),this.chartView?.removeChildren(),this.beat=0,this.loadedChart=void 0,this.chartView=void 0,this.noChartTextA.visible=!0,this.noChartTextB.visible=!0,H.emit("chartLoaded"),H.emit("chartModified");return}}if(e==this.loadedChart)return;this.chartView?.destroy({children:!0}),this.chartView?.removeChildren(),this.clearSelections(),this.loadedChart=e,this.beat=this.loadedChart.getBeatFromSeconds(this.time),Ye.instance.reset(),x.play.timingCollection=x.play.defaultTimingCollection[e.gameType.id]??"ITG";const t=We.getGameType(x.chart.noteskin.type),i={type:e.gameType.id,name:x.chart.lastNoteskins[e.gameType.id]??"default"};if(t){const s=ut.getNoteskinData(t,x.chart.noteskin.name);s?.gameTypes.includes(e.gameType.id)&&(i.name=s.id)}if(x.chart.noteskin=i,x.chart.lastNoteskins[e.gameType.id]=i.name,this.setNoteIndex(),this.chartView=new FD(this),this.chartView.x=this.app.renderer.screen.width/2,this.chartView.y=this.app.renderer.screen.height/2,(this.mode=="Play Mode"||this.mode=="Record Mode")&&this.setMode(this.lastMode),De.viewMode&&this.setMode("View Mode"),this.noChartTextA.visible=!1,this.noChartTextB.visible=!1,this.loadedChart.getMusicPath()!=this.lastSong){this.lastSong=this.loadedChart.getMusicPath();const s=this.chartAudio.isPlaying();await this.loadAudio(),H.emit("audioLoaded"),s&&this.chartAudio.play()}Ee.create("Loaded chart "+e.difficulty+" "+e.meter+" "+e.gameType.id),H.emit("chartLoaded"),H.emit("audioLoaded"),H.emit("chartModified"),this.loadedChart.gameType.id=="dance-single"?window.Parity=new Qk(this.app,this.loadedChart.gameType.id):window.Parity=void 0,De.autoPlay&&this.playPause()}async loadAudio(){if(!this.loadedSM||!this.loadedChart)return;this.chartAudio.stop(),this.chartAudio?.destroy();const e=this.loadedChart.getMusicPath();if(Ee.create("Loading audio..."),e==""){Ee.createFormatted("Failed to load audio: no audio file","error");const n=Math.max(0,this.beat);this.chartAudio=new el(void 0),this.beat=n;return}const t=await this.getAudioHandle(e);if(t==null){Ee.createFormatted("Failed to load audio: couldn't find audio file "+e,"error");const n=Math.max(0,this.beat);this.chartAudio=new el(void 0),this.beat=n;return}const i=await t.getFile(),s=Math.max(0,this.beat);this.chartAudio=new el(await i.arrayBuffer(),sr(i.name)),this.chartAudio.onLoad(()=>{Ee.create("Loaded audio")}),this.beat=s,this.chartAudio.onStop=()=>{this.assistTick.stop(),this.me_high.stop(),this.me_low.stop()},this.setNoteIndex()}async getAudioHandle(e){let t=await Le.getFileHandleRelativeTo(this.smPath,e);if(t)return t;try{const i=await Le.getDirectoryFiles(Ht(this.smPath));if(t=i.filter(s=>s.name.toLowerCase()==er(e).toLowerCase())[0],t)return Ee.createFormatted("Failed to locate audio file "+e+", using file "+t.name+" instead","warn"),t;t=i.filter(s=>rh.includes(sr(s.name)))[0],t&&Ee.createFormatted("Failed to locate audio file "+e+", using file "+t.name+" instead","warn")}catch{return}return t}getAudio(){return this.chartAudio}updateSoundProperties(){this.setEffectVolume(x.audio.soundEffectVolume*x.audio.masterVolume),this.setVolume(x.audio.songVolume*x.audio.masterVolume),this.setRate(x.audio.rate)}setRate(e){this.chartAudio.rate(e)}setVolume(e){this.chartAudio.volume(e)}setEffectVolume(e){this.assistTick.volume(e),this.me_high.volume(e),this.me_low.volume(e),this.mine.volume()!=e&&this.mine.volume(e)}setNoteIndex(){if(this.loadedSM==null||this.loadedChart==null||this.chartView==null||this.loadedChart.getNotedata().length==0){this.noteFlashIndex=0,this.assistTickIndex=0;return}this.assistTick.stop(),this.noteFlashIndex=Nt(this.loadedChart.getNotedata(),this.time,e=>e.second)+1,this.noteFlashIndex>=1&&this.time<=this.loadedChart.getNotedata()[this.noteFlashIndex-1].second&&this.noteFlashIndex--,this.assistTickIndex=this.noteFlashIndex}playPause(){this.setNoteIndex(),this.chartAudio.isPlaying()?(this.chartAudio.pause(),this._beat=this.loadedChart?.getBeatFromSeconds(this.time)??0):this.chartAudio.play()}getClosestTick(e,t){if(!this.loadedChart)return 0;const i=Math.max(.001,4/t),s=this.loadedChart.timingData.getBeatOfMeasure(e),n=e-s,a=Math.round(s/i)*i;return Math.max(0,n+a)}snapToNearestTick(e){this.beat=Math.max(0,this.getClosestTick(e,4/x.chart.snap))}snapToPreviousTick(){if(!this.loadedChart)return;const e=Math.max(.001,x.chart.snap),t=Math.floor(this.loadedChart.timingData.getMeasure(this.beat)),i=this.loadedChart.timingData.getBeatFromMeasure(t),s=Math.floor((this.beat-i)/e)*e,n=Math.abs(s-(this.beat-i))<5e-4?s-e:s,a=n+i;if(n<0){const o=this.loadedChart.timingData.getBeatFromMeasure(t-1),l=Math.round((a-o)/e)*e;this.beat=Math.max(0,o+l);return}this.beat=Math.max(0,a)}snapToNextTick(){if(!this.loadedChart)return;const e=Math.max(.001,x.chart.snap),t=Math.floor(this.loadedChart.timingData.getMeasure(this.beat)),i=this.loadedChart.timingData.getBeatFromMeasure(t),a=Math.floor((this.beat-i+5e-4)/e)*e+e+i,o=this.loadedChart.timingData.getBeatFromMeasure(t+1);if(a>o){this.beat=o;return}this.beat=a}previousSnap(){let e=this.getSnapIndex()-1;e=(e+ci.length)%ci.length,x.chart.snap=ci[e]==-1?0:1/ci[e],H.emit("snapChanged")}nextSnap(){let e=this.getSnapIndex();(e==ci.length-1||Math.abs(1/x.chart.snap-ci[e])<=5e-4)&&e++,e=(e+ci.length)%ci.length,x.chart.snap=ci[e]==-1?0:1/ci[e],H.emit("snapChanged")}getSnapIndex(){return x.chart.snap==0?ci.length-1:ci.findIndex(e=>1/e<=x.chart.snap)}removeDuplicateBeats(e){if(e.length===0)return e;const t=[e[0]];for(let i=1;ii.beat+i.hold),t=this.loadedChart.getNotedata().map(i=>i.beat).concat(e).sort((i,s)=>i-s);return this.removeDuplicateBeats(t)}previousNote(){const e=this.getRows();if(e.length==0)return;let t=Nt(e,this.beat);this.beat==e[t]&&t--,this.beat=e[Math.max(0,t)]}nextNote(){const e=this.getRows();if(e.length==0)return;let t=Nt(e,this.beat);this.beat>=e[t]&&t++,this.beat=e[Math.min(e.length-1,t)]}firstNote(){if(this.loadedSM==null||this.loadedChart==null||this.chartView==null)return;const e=this.loadedChart.getNotedata();e.length!=0&&(this.beat=e[0].beat)}lastNote(){if(this.loadedSM==null||this.loadedChart==null||this.chartView==null)return;const e=this.loadedChart.getNotedata();if(e.length==0)return;const t=e[e.length-1];this.beat=lr(t)}truncateHold(e,t){const i=Oe(Math.round((t-Math.max(.020833333333333332,x.chart.snap))*48)/48,e.beat,e.beat+e.hold-.020833333333333332);return i==e.beat?{beat:e.beat,col:e.col,type:"Tap"}:{beat:e.beat,col:e.col,type:e.type,hold:i-e.beat}}setNote(e,t,i=this.beat){if(this.loadedSM==null||this.loadedChart==null||this.chartView==null)return;i=Math.max(0,Math.round(i*48)/48);const s=this.loadedChart.getNotedata().filter(o=>o.col!=e?!1:Math.abs(o.beat-i)<.003?!0:Be(o)&&o.beat==i),n=this.loadedChart.getNotedata().filter(o=>Be(o)&&o.col==e&&i>o.beat&&i<=Math.round((o.beat+o.hold)*48)/48).map(o=>({oldNote:o,newNote:this.truncateHold(o,i)})),a={startBeat:i,endBeat:i,roll:!1,originalNote:void 0,type:t,removedNotes:s,truncatedHolds:n,direction:null};this.holdEditing[e]=a,s.length==0&&(a.originalNote={beat:i,col:e,type:this.getEditingNoteType()}),this.setNoteIndex(),this.app.actionHistory.run({action:()=>{a.removedNotes.forEach(o=>{this.loadedChart.removeNote(o),this.removeNoteFromSelection(o)}),a.truncatedHolds.forEach(o=>this.loadedChart.modifyNote(o.oldNote,o.newNote)),a.originalNote&&this.loadedChart.addNote(a.originalNote)},undo:()=>{a.originalNote&&this.loadedChart.removeNote(a.originalNote),a.truncatedHolds.forEach(o=>this.loadedChart.modifyNote(o.newNote,o.oldNote)),a.removedNotes.forEach(o=>this.loadedChart.addNote(o))}})}editHoldBeat(e,t,i){if(this.loadedSM==null||this.loadedChart==null||this.chartView==null)return;const s=this.holdEditing[e];if(s==null||t==s.startBeat&&t==s.endBeat)return;if(s.direction===null&&(ta.beat==s.originalNote.beat&&a.col==s.originalNote.col||a.col!=e?!1:a.beat>=s.startBeat&&a.beat<=s.endBeat?!0:Be(a)&&a.beat+a.hold>=s.startBeat&&a.beat+a.hold<=s.endBeat);s.removedNotes=s.removedNotes.concat(n),n.forEach(a=>this.loadedChart.removeNote(a)),this.setNoteIndex()}endEditing(e){this.holdEditing[e]=void 0}previousNoteType(){const e=this.loadedChart?.gameType.editNoteTypes.length??0;this.editNoteTypeIndex=(this.editNoteTypeIndex-1+e)%e}nextNoteType(){const e=this.loadedChart?.gameType.editNoteTypes.length??0;this.editNoteTypeIndex=(this.editNoteTypeIndex+1+e)%e}getEditingNoteType(){return this.loadedChart?.gameType.editNoteTypes[this.editNoteTypeIndex]??null}setEditingNoteType(e){if(!this.loadedChart)return;const i=(this.loadedChart?.gameType.editNoteTypes).indexOf(e);i!=-1&&(this.editNoteTypeIndex=i)}getMode(){return this.mode}setMode(e){if(!this.loadedChart||!this.chartView)return;if(this.mode==e){(e=="Play Mode"||e=="Record Mode")&&(this.setMode(this.lastMode),this.setNoteIndex(),this.chartAudio.pause());return}(this.mode=="View Mode"||this.mode=="Edit Mode")&&(this.lastMode=this.mode),this.mode=e;const t=this.loadedChart.getNotedata();if(this.mode=="Play Mode"){t.forEach(i=>{i.gameplay={hideNote:!1,hasHit:!1}});for(const i of t)if(i.secondi.gameplay=void 0))}judgeCol(e){if(!(!this.loadedChart||!this.chartView)){if(this.mode=="Play Mode")this.loadedChart.gameType.gameLogic.keyDown(this,e);else if(this.mode=="Record Mode"){const t=this.loadedChart.getBeatFromSeconds(this.time+x.play.offset),i=x.chart.snap==0?1/48:x.chart.snap,s=Math.round(t/i)*i;this.setNote(e,"key",s)}}}judgeColUp(e){!this.loadedChart||!this.chartView||(this.mode=="Play Mode"?this.loadedChart.gameType.gameLogic.keyUp(this,e):this.mode=="Record Mode"&&this.endEditing(e))}async save(){if(!this.loadedSM||this.smPath.startsWith("https://")||this.smPath.startsWith("http://"))return;const e=this.getSMPath(".sm"),t=this.getSMPath(".ssc");let i=null;!this.loadedSM.usesChartTiming()&&await Le.getFileHandle(this.getSMPath(".smebak"))&&await Le.writeFile(e,this.loadedSM.serialize("sm")).catch(s=>{const n=s.message;n.includes(Ma.GONE[0])||(i=n)}),(this.loadedSM.requiresSSC()||await Le.getFileHandle(t))&&await Le.writeFile(t,this.loadedSM.serialize("ssc")).catch(s=>{const n=s.message;n.includes(Ma.GONE[0])||(i=n)}),i==null?(this.loadedSM.usesChartTiming()?Ee.create("Saved. No SM file since split timing was used."):Ee.create("Saved"),await this.removeAutosaves()):Ee.createFormatted("Failed to save file: "+i,"error"),Ye.instance.setLimit()}getSMPath(e){if(window.nw){const t=window.nw.require("path"),i=t.parse(this.smPath);return t.resolve(i.dir,i.name+e)}else{const t=Ht(this.smPath),i=er(this.smPath),s=i.includes(".")?i.split(".").slice(0,-1).join("."):i;return t+"/"+s+e}}async removeAutosaves(){await Le.removeFile(this.getSMPath(".smebak")).catch(()=>{})}async autosave(){if(!this.loadedSM||this.smPath.startsWith("https://")||this.smPath.startsWith("http://"))return;let e=null;await Le.writeFile(this.getSMPath(".smebak"),this.loadedSM.serialize("ssc")).catch(t=>{const i=t.message;i.includes(Ma.GONE[0])||(e=i)}),e==null?Ee.create("Autosaved"):Ee.createFormatted("Failed to autosave file: "+e,"error")}hasSelection(){return this.hasNoteSelection()||this.hasEventSelection()}hasNoteSelection(){return this.selection.notes.length>0||this.startRegion!==void 0&&this.endRegion!==void 0}hasEventSelection(){return this.eventSelection.timingEvents.length>0}hasRange(){return this.selection.notes.length>1||this.eventSelection.timingEvents.length>1||this.startRegion!==void 0&&this.endRegion!==void 0}clearSelections(){this.selection={notes:[],inProgressNotes:[]},this.eventSelection={timingEvents:[],inProgressTimingEvents:[]}}startDragSelection(){this.selection.inProgressNotes=[]}endDragSelection(){let e=0,t=0;const i=[],s=this.selection.inProgressNotes,n=this.selection.notes,a=(o,l)=>o.beat==l.beat?o.col-l.col:o.beat-l.beat;if(s.length==0||n.length==0){this.selection.notes=s.concat(n),this.selection.inProgressNotes=[];return}for(;;)if(a(s[e],n[t])<0){if(i.push(s[e]),e++,e>=s.length){this.selection.notes=i.concat(n.slice(t));break}}else if(i.push(n[t]),t++,t>=n.length){this.selection.notes=i.concat(s.slice(e));break}this.selection.inProgressNotes=[]}startDragEventSelection(){this.eventSelection.inProgressTimingEvents=[]}endDragEventSelection(){let e=0,t=0;const i=[],s=this.eventSelection.inProgressTimingEvents,n=this.eventSelection.timingEvents,a=(o,l)=>o.beat-l.beat;if(s.length==0||n.length==0){this.eventSelection.timingEvents=s.concat(n),this.eventSelection.inProgressTimingEvents=[];return}for(;;)if(a(s[e],n[t])<0){if(i.push(s[e]),e++,e>=s.length){this.eventSelection.timingEvents=i.concat(n.slice(t));break}}else if(i.push(n[t]),t++,t>=n.length){this.eventSelection.timingEvents=i.concat(s.slice(e));break}this.eventSelection.inProgressTimingEvents=[]}addNoteToDragSelection(e){this.addNoteSelection(this.selection.inProgressNotes,e)}removeNoteFromDragSelection(e){this.removeNoteSelection(this.selection.inProgressNotes,e)}addEventToDragSelection(e){this.addEventSelection(this.eventSelection.inProgressTimingEvents,e)}removeEventFromDragSelection(e){this.removeEventSelection(this.eventSelection.inProgressTimingEvents,e)}addNoteToSelection(e){this.addNoteSelection(this.selection.notes,e)}removeNoteFromSelection(e){this.removeNoteSelection(this.selection.notes,e)}setNoteSelection(e){this.selection.inProgressNotes=[],this.selection.notes=[...e].sort((t,i)=>t.beat==i.beat?t.col-i.col:t.beat-i.beat)}addEventToSelection(e){this.addEventSelection(this.eventSelection.timingEvents,e)}removeEventFromSelection(e){this.removeEventSelection(this.eventSelection.timingEvents,e)}setEventSelection(e){this.eventSelection.inProgressTimingEvents=[],this.eventSelection.timingEvents=e.sort((t,i)=>t.beat-i.beat)}isNoteInSelection(e){return this.getNoteSelectionIndex(this.selection.notes,e)!=-1||this.getNoteSelectionIndex(this.selection.inProgressNotes,e)!=-1}isEventInSelection(e){return this.getEventSelectionIndex(this.eventSelection.timingEvents,e)!=-1||this.getEventSelectionIndex(this.eventSelection.inProgressTimingEvents,e)!=-1}addNoteSelection(e,t){let i=Uo(e,t.beat,s=>s.beat);for(;e[i]&&(e[i].beats.beat);for(;e[i]&&e[i].beat==t.beat;){if(sm(e[i],t))return i;i++}return-1}addEventSelection(e,t){let i=Uo(e,t.beat,s=>s.beat);for(;e[i]&&e[i].beat<=t.beat;)i++;e.splice(i,0,t)}removeEventSelection(e,t){const i=this.getEventSelectionIndex(e,t);i!=-1&&e.splice(i,1)}getEventSelectionIndex(e,t){let i=Uo(e,t.beat,s=>s.beat);for(;e[i]&&e[i].beat==t.beat;){if(sm(e[i],t))return i;i++}return-1}selectRegion(){if(this.loadedChart){if(this.endRegion!==void 0&&(this.startRegion=void 0,this.endRegion=void 0),this.startRegion===void 0){this.clearSelections(),this.startRegion=this.beat;return}this.endRegion=this.beat,this.endRegione.beat>=this.startRegion&&e.beat<=this.endRegion)):this.setEventSelection(Ot.flatMap(e=>this.loadedChart.timingData.getColumn(e).events).filter(e=>e.beat>=this.startRegion&&e.beat<=this.endRegion))}}modifySelection(e,t=!1){if(!this.loadedChart)return;const i=this.selection.notes,s=structuredClone(this.selection.notes).map(e).sort((l,c)=>l.beat==c.beat?l.col-c.col:l.beat-c.beat);if(s.length==0)return;const n=[];for(const l of s){const c=n.at(-1);c!==void 0&&c.beat==l.beat&&c.col==l.col||n.push(l)}if(n.length==0)return;const{removedNotes:a,truncatedHolds:o}=this.checkConflicts(n,i);if(t){const l=n.map(f=>lr(f));let c=0;for(const f of l)f>c&&(c=f);const u=new Array(this.loadedChart.gameType.numCols).fill(0).map((f,p)=>({type:"Hold",hold:c-n[0].beat,col:p,beat:n[0].beat})),{removedNotes:h,truncatedHolds:d}=this.checkConflicts(u,i);h.forEach(f=>{a.includes(f)||a.push(f)}),d.forEach(f=>{const p=o.find(m=>m.oldNote==f.oldNote);if(p){const m=Be(p.newNote)?p.newNote.hold:0,g=Be(p.newNote)?p.newNote.hold:0,b=Math.min(m,g);b==0?p.newNote={beat:p.newNote.beat,col:p.newNote.col,type:"Tap"}:p.newNote={beat:p.newNote.beat,col:p.newNote.col,type:p.newNote.type,hold:b}}}),a.sort((f,p)=>f.beat==p.beat?f.col-p.col:f.beat-p.beat),o.sort((f,p)=>f.newNote.beat==p.newNote.beat?f.newNote.col-p.newNote.col:f.newNote.beat-p.newNote.beat)}this.app.actionHistory.run({action:()=>{this.loadedChart.removeNotes(i.concat(a),!1),o.forEach(l=>this.loadedChart.modifyNote(l.oldNote,l.newNote,!1)),this.clearSelections(),this.setNoteSelection(this.loadedChart.addNotes(n))},undo:()=>{this.loadedChart.removeNotes(n,!1),o.forEach(l=>this.loadedChart.modifyNote(l.newNote,l.oldNote,!1)),this.loadedChart.addNotes(a,!1),this.clearSelections(),this.setNoteSelection(this.loadedChart.addNotes(i))}})}checkConflicts(e,t=[]){if(e.length==0)return{removedNotes:[],truncatedHolds:[]};const i=this.loadedChart.getNotedata(),s=this.loadedChart.gameType.numCols,n=new Array(s).fill(0).map(u=>[]);for(const u of i)n[u.col].push(u);const a=new Array(s).fill(0).map(u=>[]);for(const u of e)u.col>s||a[u.col].push(u);const o=[],l=[],c=[];for(let u=0;ua[u][0].beat<=(Be(d)?d.beat+d.hold:d.beat));for(const d of a[u])for(;n[u][h];){const f=n[u][h],p=Be(d)?d.beat+d.hold:d.beat;if(!t.includes(f)&&!c.includes(f)&&(d.beat<=f.beat&&p>=f.beat?(c.push(f),o.push(f)):Be(f)&&f.beat+f.hold>=d.beat&&f.beatp)break;h++}}return o.sort((u,h)=>u.beat==h.beat?u.col-h.col:u.beat-h.beat),l.sort((u,h)=>u.newNote.beat==h.newNote.beat?u.newNote.col-h.newNote.col:u.newNote.beat-h.newNote.beat),{removedNotes:o,truncatedHolds:l}}modifyEventSelection(e){if(!this.loadedChart||!this.loadedSM)return;const t=this.eventSelection.timingEvents.map(i=>[i,e(structuredClone(i))]);this.loadedChart.timingData.modifyMulti(t)}deleteSelection(){if(this.selection.notes.length==0)return;const e=this.selection.notes;this.app.actionHistory.run({action:()=>{this.loadedChart.removeNotes(e),this.clearSelections()},undo:()=>{this.selection.notes=this.loadedChart.addNotes(e)}})}deleteEventSelection(){this.eventSelection.timingEvents.length!=0&&(!this.loadedChart||!this.loadedSM||this.loadedChart.timingData.deleteMulti(this.eventSelection.timingEvents))}paste(e,t=!1){if(this.loadedChart&&(e.startsWith("ArrowVortex:notes:")&&(this.pasteNotes(e,t)||this.pasteNotes(this.virtualClipboard,t)),e.startsWith("ArrowVortex:tempo:")||e.startsWith("SMEditor:tempo:"))){this.pasteTempo(e)||this.pasteTempo(this.virtualClipboard);return}}pasteNotes(e,t=!1){if(!this.loadedChart)return!0;const i=Uk(e);return!i||i.length==0?!1:(this.insertNotes(i.map(s=>(s.beat+=this.beat,s.beat=Math.round(s.beat*48)/48,s)),t),!0)}insertNotes(e,t=!1){e.sort((n,a)=>n.beat==a.beat?n.col-a.col:n.beat-a.beat);const{removedNotes:i,truncatedHolds:s}=this.checkConflicts(e);if(t){const n=e.map(u=>lr(u));let a=0;for(const u of n)u>a&&(a=u);const o=new Array(this.loadedChart.gameType.numCols).fill(0).map((u,h)=>({type:"Hold",hold:a-e[0].beat,col:h,beat:e[0].beat})),{removedNotes:l,truncatedHolds:c}=this.checkConflicts(o);l.forEach(u=>{i.includes(u)||i.push(u)}),c.forEach(u=>{const h=s.find(d=>d.oldNote==u.oldNote);if(h){const d=Be(h.newNote)?h.newNote.hold:0,f=Be(h.newNote)?h.newNote.hold:0,p=Math.min(d,f);p==0?h.newNote={beat:h.newNote.beat,col:h.newNote.col,type:"Tap"}:h.newNote={beat:h.newNote.beat,col:h.newNote.col,type:h.newNote.type,hold:p}}}),i.sort((u,h)=>u.beat==h.beat?u.col-h.col:u.beat-h.beat),s.sort((u,h)=>u.newNote.beat==h.newNote.beat?u.newNote.col-h.newNote.col:u.newNote.beat-h.newNote.beat)}this.app.actionHistory.run({action:()=>{this.loadedChart.removeNotes(i,!1),s.forEach(n=>{this.loadedChart.modifyNote(n.oldNote,n.newNote,!1)}),this.clearSelections(),this.setNoteSelection(this.loadedChart.addNotes(e))},undo:()=>{this.loadedChart.removeNotes(e,!1),s.forEach(n=>{this.loadedChart.modifyNote(n.newNote,n.oldNote,!1)}),this.setNoteSelection(this.loadedChart.addNotes(i)),this.clearSelections()}})}pasteTempo(e){if(!this.loadedChart||!this.loadedSM)return!0;const t=jk(e);return!t||t.length==0?!1:(t.forEach(i=>{i.type=="ATTACKS"?i.second+=this.time:i.beat+=this.beat}),this.loadedChart.timingData.insertMulti(t),!0)}copy(){if(this.selection.notes.length!=0){const e=Math.min(...this.selection.notes.map(s=>s.beat)),t=structuredClone(this.selection.notes).map(s=>(s.beat-=e,s)).sort((s,n)=>s.beat==n.beat?s.col-n.col:s.beat-n.beat),i=Hk(t);return this.virtualClipboard=i,i}else if(this.eventSelection.timingEvents.length!=0){const e=Math.min(...this.eventSelection.timingEvents.map(n=>n.beat)),t=this.loadedChart.timingData.getSecondsFromBeat(e),i=structuredClone(this.eventSelection.timingEvents).map(n=>n.type=="ATTACKS"?(n.second-=t,n):(n.beat-=e,n)).sort((n,a)=>n.type!=a.type?n.type.localeCompare(a.type):n.type=="ATTACKS"?n.second-a.second:n.beat-a.beat),s=zk(i);return this.virtualClipboard=s,s}}}export{Ty as $,Ye as A,zt as B,rD as C,qa as D,H as E,De as F,We as G,VD as H,Ce as I,ar as J,ct as K,Tu as L,ba as M,ut as N,x as O,Ne as P,ke as Q,ad as R,dy as S,$e as T,ns as U,mi as V,Ee as W,Sr as X,Me as Y,Hd as Z,Qe as _,Re as a,Oe as a0,GD as a1,qD as a2,sd as a3,K0 as a4,ze as a5,Yt as a6,K1 as a7,Ma as a8,I2 as a9,ls as aa,zn as ab,ve as b,It as c,YD as d,Le as e,gy as f,Xa as g,sr as h,HD as i,Wr as j,eh as k,$D as l,P as m,Ud as n,Ak as o,Tk as p,v3 as q,Ck as r,jD as s,Ze as t,Oi as u,lk as v,te as w,Pe as x,ur as y,Gt as z}; +end`,n.box.tint==16777215&&(n.box.tint=8978431),n.text.tint=8978431)}this.receptors.y=this.renderer.getActualReceptorYPos(),this.topBound.y=this.renderer.getUpperBound(),this.bottomBound.y=this.renderer.getLowerBound(),this.topBoundBeat.y=this.renderer.getYPosFromBeat(this.renderer.getVisualBeat()-x.chart.maxDrawBeatsBack),this.bottomBoundBeat.y=this.renderer.getYPosFromBeat(this.renderer.getVisualBeat()+x.chart.maxDrawBeats),this.topScreenBeat.y=this.renderer.getYPosFromBeat(this.renderer.getTopOnScreenBeat()),this.bottomScreenBeat.y=this.renderer.getYPosFromBeat(this.renderer.getBottomOnScreenBeat()),this.topScreenBeatText.y=this.topScreenBeat.y,this.topScreenBeatText.text=ae(this.renderer.getTopOnScreenBeat(),3)+"",this.bottomScreenBeatText.y=this.bottomScreenBeat.y,this.bottomScreenBeatText.text=ae(this.renderer.getBottomOnScreenBeat(),3)+""}inBounds(e){const t=this.renderer.chartManager.app.renderer.screen.height/this.scale.y;return Math.abs(e)this.renderer.getVisualBeat()),this.trackVariable(()=>this.renderer.getVisualTime()),this.trackVariable(()=>x.chart.speed),this.trackVariable(()=>this.getSpeed(),n=>{this.speed=n,clearTimeout(this.lastSpeedTimeout),this.lastSpeedTimeout=setTimeout(()=>{this.blockCache.clear(),this.lastSpeed=this.speed,this.drawDirty=!0},200)}),this.trackVariable(()=>x.chart.zoom),this.trackVariable(()=>x.chart.CMod),this.trackVariable(()=>x.chart.doSpeedChanges),this.trackVariable(()=>x.chart.waveform.allowFilter),this.trackVariable(()=>x.chart.reverse),this.trackVariable(()=>x.chart.waveform.antialiasing,n=>{this.filters=n?[new gu]:[]}),this.trackVariable(()=>this.renderer.chartManager.app.renderer.screen.width,()=>this.resizeWaveform()),this.trackVariable(()=>this.renderer.chartManager.app.renderer.screen.height,()=>this.resizeWaveform()),this.trackVariable(()=>x.chart.waveform.filteredColor),this.trackVariable(()=>x.chart.waveform.color),this.trackVariable(()=>x.chart.waveform.speedChanges),this.trackVariable(()=>x.chart.receptorYPos),this.trackVariable(()=>x.chart.waveform.lineHeight,()=>{x.chart.waveform.lineHeight<=0&&(x.chart.waveform.lineHeight=1),this.updateLineHeight()}),this.trackVariable(()=>x.chart.zoom,()=>this.resizeWaveform()),this.trackVariable(()=>this.renderer.chartManager.chartAudio.hasFilters());const t=()=>this.getData();this.anchor.set(.5),this.renderer.chartManager.chartAudio.onUpdate(t),this.getData(),this.resizeWaveform(),this.filters=x.chart.waveform.antialiasing?[new gu]:[];const i=()=>this.drawDirty=!0,s=()=>{this.getData(),this.resizeWaveform(),this.renderer.chartManager.chartAudio.onUpdate(t)};H.on("timingModified",i),this.on("destroyed",()=>{H.off("timingModified",i)}),H.on("audioLoaded",s),this.on("destroyed",()=>{H.off("audioLoaded",s),this.renderer.chartManager.chartAudio.offUpdate(t)})}getData(){this.rawData=this.renderer.chartManager.chartAudio.getRawData(),this.filteredRawData=this.renderer.chartManager.chartAudio.getFilteredRawData(),this.sampleRate=this.renderer.chartManager.chartAudio.getSampleRate(),this.blockCache.clear(),this.drawDirty=!0}resizeWaveform(){this.waveformTex.resize(Oe((this.rawData?.length??0)*288*x.chart.zoom,1,this.renderer.chartManager.app.renderer.screen.width),this.renderer.chartManager.app.renderer.screen.height)}update(){this.visible=x.chart.waveform.enabled&&this.renderer.shouldDisplayBarlines(),x.chart.waveform.enabled&&((this.drawDirty||this.variableChanged())&&(this.colorCache.toHexa()!=x.chart.waveform.color&&(this.colorCache=$a(x.chart.waveform.color)),this.filteredColorCache.toHexa()!=x.chart.waveform.filteredColor&&(this.filteredColorCache=$a(x.chart.waveform.filteredColor)),this.drawDirty=!1,this.renderData(),this.renderer.chartManager.app.renderer.render(this.lineContainer,{renderTexture:this.waveformTex})),this.scale.set(1/x.chart.zoom))}trackVariable(e,t){this.trackedVariables.set(e,{value:e(),cb:t})}variableChanged(){let e=!1;for(const[t,i]of this.trackedVariables.entries())t()!=i.value&&(this.trackedVariables.get(t).value=t(),this.trackedVariables.get(t).cb?.(t()),e=!0);return e}getSample(e,t,i){if(t<0)return 0;const s=this.sampleRate/(this.lastSpeed*4),n=Math.floor(t*this.lastSpeed*4);if(this.blockCache.get(i)?.[n]!==void 0)return this.blockCache.get(i)[n];const a=Math.floor(n*s),o=e.slice(a,Math.floor(a+s)).reduce((l,c)=>l+Math.abs(c),0)/s;return this.blockCache.has(i)||this.blockCache.set(i,[]),this.blockCache.get(i)[n]=o,o}renderData(){this.resetPool();const e=x.chart.waveform.allowFilter&&this.renderer.chartManager.chartAudio.hasFilters(),t={data:{bpms:[],bpmIndex:0,timing:[],timingIndex:0,offset:0,lastBeat:-999,timingData:null},init(i){if(this.data.bpms=i.getTimingData("BPMS"),this.data.timing=i.getBeatTiming(),this.data.offset=i.getOffset(),this.data.bpms[0]?.beat!==0){const s=structuredClone(this.data.bpms[0])??{value:120,type:"BPMS",beat:0};s.beat=0,this.data.bpms.unshift(s)}this.data.timing.length==0&&this.data.timing.unshift({beat:0,secondBefore:-this.data.offset,secondAfter:-this.data.offset,secondClamp:-this.data.offset,secondOf:-this.data.offset,warped:!1,bpm:120}),this.data.timingData=i},getBPM(i){for(;i>this.data.bpms[this.data.bpmIndex+1]?.beat;)this.data.bpmIndex++;return this.data.bpms[this.data.bpmIndex].value},getSecond(i){const s=Math.floor(i*1e3)/1e3;if(i<=0)return-this.data.offset+i*60/this.getBPM(i);if(s>=this.data.timing[this.data.timingIndex+1]?.beat){for(;s>=this.data.timing[this.data.timingIndex+1]?.beat;)this.data.timingIndex++;return this.data.timingData.getSecondsFromBeat(i)}else{const n=this.data.timing[this.data.timingIndex];let o=(i-n.beat)*60/n.bpm;return n.warped&&(o=0),Math.max(n.secondClamp,n.secondAfter+o)}}};if(x.chart.waveform.speedChanges&&!x.chart.CMod&&x.chart.doSpeedChanges){const i=x.chart.speed,s=this.renderer.getCurrentSpeedMult(),n=this.renderer.getTopOnScreenBeat(),a=this.renderer.getBottomOnScreenBeat(),o=Math.min(n,a),l=Math.max(n,a),c=this.renderer.findFirstOnScreenScroll(),u=this.renderer.findLastOnScreenScroll(),h=[...this.renderer.chart.timingData.getTimingData("SCROLLS")];h[0]?.beat!=0&&h.unshift({type:"SCROLLS",beat:0,value:h[0]?.value??1}),t.init(this.renderer.chart.timingData);const d=h.findIndex(v=>v.beat==c.beat),f=h.findIndex(v=>v.beat==u.beat),p=100/i/Math.abs(s)/64/x.chart.zoom,m=this.renderer.chartManager.app.renderer.screen.height;let g=o,b=Math.round(this.renderer.getYPosFromBeat(g)*x.chart.zoom+this.parent.y),w=this.renderer.chart.getSecondsFromBeat(g);for(const v of h.slice(d,f+1)){if(v.value==0)continue;const y=p/Math.abs(v.value);v.beat!=c.beat?g=v.beat:g=Math.round((g-v.beat)/y)*y+v.beat,b=Math.round(this.renderer.getYPosFromBeat(g)*x.chart.zoom+this.parent.y),w=this.renderer.chart.getSecondsFromBeat(g);const E=this.renderer.getScrollDirection(v.value),C=h[h.indexOf(v)+1]?.beat??Number.MAX_VALUE;for(;gm){if(E>0){g=C;break}g+=y*(b-m),b=m;continue}g+=y*x.chart.waveform.lineHeight,b+=E*x.chart.waveform.lineHeight,w=t.getSecond(g),this.drawLine(w,b,e)}}}else if(x.chart.CMod){let i=this.renderer.getSecondFromYPos((-this.parent.y+(x.chart.reverse?this.renderer.chartManager.app.renderer.screen.height:0))/x.chart.zoom);const s=this.renderer.getPixelsToSecondsRatio()/x.chart.zoom;i=Math.floor(i/s)*s;const n=a=>{i+=s*x.chart.waveform.lineHeight,this.drawLine(i,a,e)};if(x.chart.reverse)for(let a=this.renderer.chartManager.app.renderer.screen.height;a>=0;a-=x.chart.waveform.lineHeight)n(a);else for(let a=0;a<=this.renderer.chartManager.app.renderer.screen.height;a+=x.chart.waveform.lineHeight)n(a)}else{let i=this.renderer.getBeatFromYPos((-this.parent.y+(x.chart.reverse?this.renderer.chartManager.app.renderer.screen.height:0))/x.chart.zoom);t.init(this.renderer.chart.timingData);const s=this.renderer.getPixelsToEffectiveBeatsRatio()/x.chart.zoom;i=Math.floor(i/s)*s;let n=this.renderer.chart.getSecondsFromBeat(i);const a=o=>{i+=s*x.chart.waveform.lineHeight,n=t.getSecond(i),this.drawLine(n,o,e)};if(x.chart.reverse)for(let o=this.renderer.chartManager.app.renderer.screen.height;o>=0;o-=x.chart.waveform.lineHeight)a(o);else for(let o=0;o<=this.renderer.chartManager.app.renderer.screen.height;o+=x.chart.waveform.lineHeight)a(o)}this.purgePool()}drawLine(e,t,i){if(!(e<0))for(let s=0;st>=this.poolSearch)}updateLineHeight(){for(const e of this.lineContainer.children){const t=e;t.height=x.chart.waveform.lineHeight}}getLine(){if(this.lineContainer.children[this.poolSearch]){const t=this.lineContainer.children[this.poolSearch];return t.visible=!0,this.poolSearch++,t}const e=new Ne(te.WHITE);return e.height=x.chart.waveform.lineHeight,e.anchor.set(.5),e.visible=!0,this.poolSearch++,this.lineContainer.addChild(e),e}getSpeed(){return Math.min(x.chart.speed,cD)}}const dD="/smeditor/assets/missing-81d55ba9.png",Ay=te.from(dD),fD={HoldBodyTopOffset:0,HoldBodyBottomOffset:0,RollBodyTopOffset:0,RollBodyBottomOffset:0};class pD{renderer;options;objects=[];updateHooks=new Set;hooks={};metrics;constructor(e,t){this.renderer=e,this.options=t,this.options.init?.(e),this.metrics={...fD,...this.options.metrics}}update(e){this.options.update?.(e),this.updateHooks.forEach(({item:t,cb:i})=>{t.destroyed||i(e)})}getPlaceholderSprite(){const e=new Ne(Ay);return e.anchor.set(.5),e}getBlankSprite(){return new Ne(te.EMPTY)}getElement(e,t={}){try{return this.options.load?this.options.load.bind(this)(e,{noteskin:this,columnName:e.columnName,columnNumber:e.columnNumber,...t})??this.getPlaceholderSprite():this.loadElement(e,t)??this.getPlaceholderSprite()}catch(i){return console.error(i),x.debug.showNoteskinErrors&&Ee.createFormatted("Noteskin Error: "+i,"error"),this.getPlaceholderSprite()}}loadElement(e,t={}){const i=this.followRedirs(e);return i===void 0?(x.debug.showNoteskinErrors&&Ee.createFormatted(`Noteskin element ${e.columnName} ${e.element} failed to load for noteskin: Redirect loop`,"error"),this.getPlaceholderSprite()):i({noteskin:this,columnName:e.columnName,columnNumber:e.columnNumber,...t})}followRedirs(e){const t=[e];let i=e;for(;;){const s=this.options.elements[i.columnName]?.[i.element];if(s===void 0)return;if(typeof s=="function")return s;if(i={columnName:s.columnName??i.columnName,columnNumber:s.columnNumber??i.columnNumber,element:s.element},t.some(n=>i.columnName==n.columnName&&i.element==n.element))return;t.push(i)}}on(e,t,i){this.hooks[t]===void 0&&(this.hooks[t]=new Set);const s={item:e,cb:i};this.hooks[t].add(s),e.once("destroyed",()=>this.hooks[t].delete(s))}onUpdate(e,t){const i={item:e,cb:t};this.updateHooks.add(i),e.once("destroyed",()=>this.updateHooks.delete(i))}broadcast(e){if(this.hooks[e.type]===void 0)return;this.hooks[e.type].forEach(({item:i,cb:s})=>{i.destroyed||s(e)})}}const mD="/smeditor/assets/hold_judgement-82934f15.png";class Bs extends ve{children=[];static held_tex;static dropped_tex;notefield;constructor(e){super(),Bs.held_tex||this.loadTex(),this.notefield=e}async loadTex(){const e=await bn.load(mD),t=e.height,i=e.width;Bs.held_tex=new te(e,new ke(0,0,i,t/2)),Bs.dropped_tex=new te(e,new ke(0,t/2,i,t/2))}update(){this.y=this.notefield.renderer.getActualReceptorYPos()+(x.chart.reverse?-48:48);for(const e of this.children){const t=(Date.now()-e.createTime)/1e3;if(t<.1){const i=1-(1-t/.1)*(1-t/.1);e.scale.set(.3*i)}else if(t>.6&&t<.8){const i=(t-.6)/.2*(t-.6)/.2;e.scale.set(.3*(1-i))}}hr(this.children,e=>Date.now()-e.createTime>800)}addJudge(e,t){if(!Vn(t)&&!Us(t))return;const i=new Ne(Vn(t)?Bs.dropped_tex:Bs.held_tex);i.anchor.set(.5),i.x=this.notefield.getColumnX(e),i.createTime=Date.now(),i.scale.set(0),this.addChild(i)}}const gD={L:233724,l:11261687,R:16559363,r:16442809};class bD extends ve{notefield;arrowMap=new Map;notesDirty=!1;children=[];constructor(e){super(),this.notefield=e,this.sortableChildren=!0;const t=()=>{this.arrowMap.clear(),this.removeChildren()},i=()=>this.notesDirty=!0;H.on("timeSigChanged",t),H.on("chartModified",i),this.on("destroyed",()=>{H.off("timeSigChanged",t),H.off("chartModified",i)})}update(e,t){const i=this.notefield.renderer.chart.getNotedata();if(this.notesDirty){for(const[s,n]of this.arrowMap.entries())i.includes(s)||(n.destroy(),this.arrowMap.delete(s));this.notesDirty=!1}for(const s of i){if(s.beat>t)break;if(this.shouldDisplayNote(s,e,t)&&!this.arrowMap.has(s)){const n=new ve,a=this.notefield.createNote(s);Object.assign(n,{x:this.notefield.getColumnX(s.col),zIndex:s.beat});const o=new Ne(te.WHITE),l=a.getBounds();o.x=l.x,o.y=l.y,o.width=l.width,o.height=l.height,o.alpha=0;const c=new Ne(te.WHITE);c.x=l.x,c.y=l.y,c.width=l.width,c.height=l.height,c.alpha=0,this.notefield.renderer.registerDragNote(n,s),n.wrapper=a,n.selection=o,n.parity=c,n.lastActive=!1,this.arrowMap.set(s,n),n.addChild(a,o,c),this.addChild(n)}}for(const[s,n]of this.arrowMap.entries()){if(!this.shouldDisplayNote(s,e,t)){n.destroy(),this.arrowMap.delete(s);continue}if(n.y=this.notefield.renderer.getActualReceptorYPos(),(!Be(s)||!s.gameplay?.lastHoldActivation||this.notefield.renderer.getVisualBeat(){e=="chart.allowReceptorDrag"&&(this.eventMode=x.chart.allowReceptorDrag?"static":"passive")};constructor(e){super(),this.notefield=e;for(let s=0;s{!this.dragStart||!this.dragOptionsStart||(x.chart.receptorXPos=Math.round(this.dragOptionsStart[0]+s.global.x-this.dragStart.x),x.chart.receptorYPos=Math.round(this.dragOptionsStart[1]+s.global.y-this.dragStart.y))},i=()=>{this.notefield.renderer.off("pointermove",t),this.notefield.renderer.off("pointerup",i)};this.on("pointerdown",s=>{this.dragStart=new ze(s.globalX,s.globalY),this.dragOptionsStart=[x.chart.receptorXPos,x.chart.receptorYPos],s.preventDefault(),s.stopImmediatePropagation(),this.notefield.renderer.on("pointermove",t),this.notefield.renderer.on("pointerup",i)}),H.on("userOptionUpdated",this.optionUpdate),this.optionUpdate("chart.allowReceptorDrag")}destroy(){H.off("userOptionUpdated",this.optionUpdate)}update(){this.y=this.notefield.renderer.getActualReceptorYPos()}}class wD extends ve{notefield;arrowMap=new Map;children=[];lastBeatShift=0;lastColShift=0;constructor(e){super(),this.notefield=e,this.sortableChildren=!0}update(e,t){if(!this.notefield.renderer.chartManager.selection.shift){this.removeChildren(),this.arrowMap.clear();return}const i=this.notefield.renderer.chartManager.selection.shift.beatShift,s=this.notefield.renderer.chartManager.selection.shift.columnShift;if(this.lastBeatShift!=i||this.lastColShift!=s){this.lastBeatShift=i,this.lastColShift=s;for(const[n,a]of this.arrowMap.entries()){const o=this.notefield.renderer.chartManager.loadedChart.computeNote({...n,beat:n.beat+i,col:n.col+s});a.x=this.notefield.getColumnX(o.col),a.wrapper.destroy(),a.wrapper.alpha=.4,a.wrapper=this.notefield.createNote(o);const l=a.wrapper.getBounds();a.selection.x=l.x,a.selection.y=l.y,a.selection.width=l.width,a.selection.height=l.height,a.addChild(a.wrapper,a.selection)}}for(const n of this.notefield.renderer.chartManager.selection.notes)if(!(n.beat+i+(Be(n)?n.hold:0)t)&&!this.arrowMap.has(n)){const a={...n,beat:n.beat+i,col:n.col+s},o=new ve,l=this.notefield.createNote(a);Object.assign(o,{x:this.notefield.getColumnX(a.col),zIndex:a.beat,alpha:.4});const c=new Ne(te.WHITE),u=l.getBounds();c.x=u.x,c.y=u.y,c.width=u.width,c.height=u.height,c.alpha=0,this.notefield.renderer.registerDragNote(l,a),o.wrapper=l,o.selection=c,this.arrowMap.set(n,o),o.addChild(l,c),this.addChild(o)}for(const[n,a]of this.arrowMap.entries()){if(n.beat+i+(Be(n)?n.hold:0)t){a.destroy(),this.arrowMap.delete(n);continue}const o=n.beat+i;if(a.y=this.notefield.renderer.getYPosFromBeat(o),a.selection.alpha=Math.sin(Date.now()/320)*.1+.3,Be(n)){const l=this.notefield.renderer.getYPosFromBeat(o+(Be(n)?n.hold:0))-a.y,c=a.wrapper.object;c.setLength(l),c.setBrightness(1);const u=a.wrapper.getLocalBounds();a.selection.x=u.x,a.selection.y=u.y,a.selection.width=u.width,a.selection.height=u.height}}}}const xD="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAAAXNSR0IB2cksfwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAZ5QTFRFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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vVPRFm2mk5ALCnZ1oli0yZSEHQ8m11owFsMGGYSsh90BG8vOyB10WjmydXXD3gvglTxCexSQkT5+HZbMaEkbd2p4BjeyPqkcoxMyqId67S8OW4tnMPvEZtim1l80bam5XQkQQmK+KL2kWbKamce721GN8uPYwgt4dQgRfYipFB7l/Yy2ifSaXgEh8TltdULCNXcP/xWCsHLTMhxXuAXmQzirwqURPbaUTcA3Wvoarj6/WbQgl33BnDIk41HIOSqxKD7p1SmpVy3yfaE05142tJSVHCPFR1Y/y6zRamvEX1JFLEQQCSJB5B9BfgCwNDJ0if9eSgAAAABJRU5ErkJggg==";class ED extends Fg{offsetY=0;setY=0;_last=0;_lastTop=!1;constructor(e){super(e,0,0,0,0),this.scale.cb=()=>{this.refresh()}}cropBottom(e,t=!1){this._last==e&&!this._lastTop&&!t||(this._last=e,this._lastTop=!1,this._height=this.texture.height-e/Math.abs(this.scale.y),this._bottomHeight=0,this.offsetY=0,this.topHeight=this.texture.height-e/Math.abs(this.scale.y),this._updateY())}cropTop(e,t=!1){this._last==e&&this._lastTop&&!t||(this._last=e,this._lastTop=!0,this._height=this.texture.height-e/Math.abs(this.scale.y),this._topHeight=0,this.bottomHeight=this.texture.height-e/Math.abs(this.scale.y),this.offsetY=e/Math.abs(this.scale.y),this._updateY())}get y(){return this.setY}set y(e){this.setY=e,this._updateY()}_updateY(){super.y=this.setY+this.offsetY*Math.abs(this.scale.y)}refresh(){this._lastTop?this.cropTop(this._last,!0):this.cropBottom(this._last,!0)}}class Ty extends ED{constructor(e,t=64){super(e),this.scale.set(t/this.texture.width),this.pivot.x=t/2/this.scale.x,this.texture.on("update",()=>{this.width=this.texture.width,this.height=this.texture.height,this.scale.set(t/this.texture.width),this.pivot.x=t/2/this.scale.x,this.refresh()})}}class qD extends Ty{_playing=!1;_autoUpdate=!1;_isConnectedToTicker=!1;_tickerUpdate=this.update.bind(this);_currentTime=0;_textures;_previousFrame=null;onComplete=null;onLoop=null;onFrameChange=null;animationSpeed=1;loop=!1;updateAnchor=!1;constructor(e,t){super(e[0],t),this.textures=e}stop(){this._playing&&(this._playing=!1,this._autoUpdate&&this._isConnectedToTicker&&(It.shared.remove(this._tickerUpdate),this._isConnectedToTicker=!1))}play(){this._playing||(this._playing=!0,this._autoUpdate&&!this._isConnectedToTicker&&(It.shared.add(this._tickerUpdate,this,ns.HIGH),this._isConnectedToTicker=!0))}gotoAndStop(e){this.stop(),this.currentFrame=e}gotoAndPlay(e){this.currentFrame=e,this.play()}update(e){if(!this._playing)return;const t=this.animationSpeed*e,i=this.currentFrame;this._currentTime+=t,this._currentTime<0&&!this.loop?(this.gotoAndStop(0),this.onComplete?.()):this._currentTime>=this._textures.length&&!this.loop?(this.gotoAndStop(this._textures.length-1),this.onComplete?.()):i!==this.currentFrame&&(this.loop&&this.onLoop&&(this.animationSpeed>0&&this.currentFramei)&&this.onLoop(),this.updateTexture())}updateTexture(){const e=this.currentFrame;this._previousFrame!==e&&(this._previousFrame=e,this.texture=this._textures[e],this.onFrameChange?.(this.currentFrame))}destroy(e){this.stop(),super.destroy(e),this.onComplete=null,this.onFrameChange=null,this.onLoop=null}get totalFrames(){return this._textures?.length??0}get textures(){return this._textures??[]}set textures(e){this._textures=e,this._previousFrame=null,this.gotoAndStop(0),this.updateTexture()}get currentFrame(){let e=Math.floor(this._currentTime)%this._textures.length;return e<0&&(e+=this._textures.length),e}set currentFrame(e){if(e<0||e>this.totalFrames-1)throw new Error(`[AnimatedSprite]: Invalid frame index value ${e}, expected to be between 0 and totalFrames ${this.totalFrames}.`);const t=this.currentFrame;this._currentTime=e,t!==this.currentFrame&&this.updateTexture()}get playing(){return this._playing}get autoUpdate(){return this._autoUpdate}set autoUpdate(e){e!==this._autoUpdate&&(this._autoUpdate=e,!this._autoUpdate&&this._isConnectedToTicker?(It.shared.remove(this._tickerUpdate),this._isConnectedToTicker=!1):this._autoUpdate&&!this._isConnectedToTicker&&this._playing&&(It.shared.add(this._tickerUpdate),this._isConnectedToTicker=!0))}}const AD={Fake:te.from(xD),Lift:te.from(_D)};class Qm extends ve{object;icon;constructor(e){super(),this.object=e,this.icon=new Ne(AD[e.note.type]),this.icon.anchor.set(.5),this.icon.scale.set(.3),this.icon.alpha=.8,this.icon.visible=!1,this.addChild(e,this.icon),e.nf.noteskin===void 0?H.on("noteskinLoaded",()=>this.loadEventHandler()):this.loadEventHandler()}loadEventHandler(){this.object.nf.noteskin.onUpdate(this,e=>{if(!x.chart.drawIcons){this.icon.visible=!1;return}if(this.object.nf.noteskinOptions?.hideIcons?.includes(this.object.note.type)){this.icon.visible=!1;return}this.icon.visible=!0,this.object.note.type=="Fake"&&(this.icon.visible=e.chartManager.getMode()!=K.Play)})}}class TD extends ve{type="note";note;nf;constructor(e,t){super(),this.note=t,this.nf=e,this.nf.noteskin===void 0?H.on("noteskinLoaded",()=>{this.loadElement(t)}):this.loadElement(t)}loadElement(e){const t=this.nf.noteskin.getElement({element:e.type,columnName:this.nf.getColumnName(e.col),columnNumber:e.col},{note:e});this.addChild(t)}}function CD(r){return r.cropTop!==void 0}class SD extends ve{type="hold";note;active;inactive;wasActive=!1;lastLength=null;elements;metrics;ns;nf;loaded=!1;constructor(e,t){super();const i=new ve,s=new ve;this.note=t,this.ns=e.noteskin,this.nf=e,this.metrics=this.ns.metrics,i.visible=!1,this.active=i,this.inactive=s,this.addChild(s,i),e.noteskin===void 0?H.on("noteskinLoaded",()=>{this.loadElements()}):this.loadElements()}loadElements(){if(!this.loaded){this.elements={};for(const e of["Active","Inactive"]){this.elements[e]={};for(const t of["BottomCap","Body","TopCap","Head"]){const i=this.getNoteskinElement(`${e} ${t}`);t=="BottomCap"?CD(i)?this.elements[e][t]=i:(x.debug.showNoteskinErrors&&Ee.createFormatted(`Noteskin Error: invalid tail found for ${e} ${t}!`,"error"),this.elements[e][t]=new Ty(Ay,64)):this.elements[e][t]=i,(e=="Active"?this.active:this.inactive).addChild(this.elements[e][t])}}this.loaded=!0}}getNoteskinElement(e){return this.ns.getElement({element:`${this.note.type} ${e}`,columnName:this.nf.getColumnName(this.note.col),columnNumber:this.note.col},{note:this.note})}setActive(e){this.wasActive!=e&&(this.wasActive=e,this.active.visible=e,this.inactive.visible=!e)}setBrightness(e){if(!this.loaded)return;const t=["Active","Inactive"],i=["Body","TopCap","BottomCap"];for(const s of t)for(const n of i)"tint"in this.elements[s][n]&&(this.elements[s][n].tint=Hd(e*255,e*255,e*255))}setLength(e){if(!this.loaded||this.lastLength==e)return;this.lastLength=e;const t=this.metrics[`${this.note.type}BodyBottomOffset`],i=this.metrics[`${this.note.type}BodyTopOffset`],s=["Active","Inactive"],n=e>=0?1:-1,a=Math.abs(e);for(const o of s){this.elements[o].Body.height=Math.max(0,a+t-i),this.elements[o].Body.y=a+t,this.elements[o].BottomCap.y=a+t,this.elements[o].BottomCap.y<0?(this.elements[o].BottomCap.cropTop(-this.elements[o].BottomCap.y),e<0&&(this.elements[o].BottomCap.y-=this.elements[o].BottomCap.y/Math.abs(this.elements[o].BottomCap.scale.y))):this.elements[o].BottomCap.cropTop(0),this.elements[o].TopCap.y=i;const l=Math.abs(this.elements[o].BottomCap.scale.y);this.elements[o].BottomCap.scale.y=e<0?-l:l;const c=Math.abs(this.elements[o].TopCap.scale.y);this.elements[o].TopCap.scale.y=e<0?-c:c,this.elements[o].Body.height*=n,this.elements[o].Body.y*=n,this.elements[o].BottomCap.y*=n,this.elements[o].TopCap.y*=n}}}class e0 extends ve{noteskinOptions;noteskin;gameType;renderer;receptors;notes;selectionNotes;flashes;holdJudges;ghostNote;ghostNoteEntry;columnX=[];constructor(e){super(),this.renderer=e,this.gameType=e.chart.gameType,ut.getNoteskin(this.gameType,x.chart.noteskin.name).then(t=>{if(!t){Ee.createFormatted("Couldn't find an available noteskin!","error");return}let i=0;for(let s=0;s=e&&this.ghostNoteEntry.beat<=t&&this.ghostNoteEntry.beat>=0))}onJudgement(e,t){this.noteskin!==void 0&&(this.holdJudges.addJudge(e,t),cr(t)&&this.noteskin.broadcast({type:"hit",judgement:t,columnName:this.getColumnName(e),columnNumber:e}),Us(t)&&this.noteskin.broadcast({type:"held",columnName:this.getColumnName(e),columnNumber:e}),Vn(t)&&this.noteskin.broadcast({type:"letgo",columnName:this.getColumnName(e),columnNumber:e}),Li(t)&&this.noteskin.broadcast({type:"miss",judgement:t,columnName:this.getColumnName(e),columnNumber:e}),mh(t)&&this.noteskin.broadcast({type:"hitmine",columnName:this.getColumnName(e),columnNumber:e}))}startPlay(){}endPlay(){if(this.noteskin!==void 0)for(let e=0;eDate.now()-e.createTime>5e3),x.general.smoothAnimations?this.currentMedian.x=(this.currentMedian.x-this.target)*.8+this.target:this.currentMedian.x=this.target}addBar(e,t){if(e==null||!Li(t)&&!cr(t))return;const i=new Ne(te.WHITE);i.width=kD,i.height=t0,i.anchor.set(.5),i.x=e*400,i.tint=t.color,i.createTime=Date.now(),i.miss=Li(t),i.ms=Math.round(e*1e3),this.errorText.tint=t.color,this.errorText.text=(e*1e3).toFixed(1)+"ms",this.errorTextTime=Date.now(),this.barlines.addChild(i),this.target=fh(this.barlines.children.filter(s=>!s.miss).map(s=>s.ms))*.4}reset(){this.currentMedian.x=0,this.target=0,hr(this.barlines.children,()=>!0)}}class PD extends Ne{createTime=-1;active=!1;type=Jb;constructor(){super(),this.anchor.set(.5)}update(){if(this.y=x.chart.reverse?40:-40,this.visible=this.active,this.active){const e=(Date.now()-this.createTime)/1e3;let t=1.2;if(rt.getCollection(x.play.timingCollection).shouldHideNote(this.type)||(t=.8),e<.1){const i=1-(1-e/.1)*(1-e/.1),s=(1-t)*i+t;this.scale.x=.4*s,this.scale.y=.4*s}else if(e>.6&&e<.8){const i=(e-.6)/.2*(e-.6)/.2;this.scale.x=.4*(1-i),this.scale.y=.4*(1-i)}else e>.8&&(this.active=!1)}}doJudge(e,t){if(e==null&&(e=0),!cr(t)&&!Li(t))return;const i=t.judgementTexture.getTexture(e,t);i&&(this.texture=i,this.texture.updateUvs(),this.active=!0,this.type=t,this.createTime=Date.now(),x.play.judgementTilt?this.rotation=Oe(e,-.05,.05)*300/180*Math.PI:this.rotation=0)}reset(){this.active=!1}}class wr extends oo{static options;static convertText;static convertBtnOne;static convertBtnTwo;static onTimingChange=this.updateValues.bind(this);onConfirm=()=>{};persistent=!1;static open(e){super._open({...e,title:"Column",description:"",width:255,editable:!0,cancelableOnOpen:!1}),H.on("timingModified",this.onTimingChange),this.updateValues()}static buildContent(){const e=document.createElement("div");e.style.display="flex",e.style.gap="4px",e.style.alignItems="center",e.style.flexDirection="column",e.style.marginTop="10px",e.style.fontSize="12px";const t=document.createElement("div"),i=document.createElement("button"),s=document.createElement("button");this.convertBtnOne=i,this.convertBtnTwo=s,this.convertText=t,e.replaceChildren(t,i,s),this.view.appendChild(e)}static close(){!this.popup||!this.active||(super.close(),H.off("timingModified",this.onTimingChange))}static updateValues(){const e=this.options.timingData.isPropertyChartSpecific(this.options.type),t=e?"chart":"song";this.title.innerText=Je[t].title,this.desc.innerText=Je[t].desc,this.convertText.innerText=Je[t].convertText,this.convertBtnOne.innerText=Je[t].buttonOne.text,this.convertBtnTwo.innerText=Je[t].buttonTwo.text,this.convertBtnTwo.classList.toggle("delete",e),Ze(this.convertBtnOne,{content:Je[t].buttonOne.tooltip}),Ze(this.convertBtnTwo,{content:Je[t].buttonTwo.tooltip}),this.convertBtnOne.onclick=()=>{Je[t].buttonOne.action(this.options.timingData,this.options.type),this.close()},this.convertBtnTwo.onclick=()=>{Je[t].buttonTwo.action(this.options.timingData,this.options.type),this.close()}}}const Qo={BPMS:{title:"BPM Event",rows:[{label:"Tempo",key:"value",input:{type:"spinner",precision:3}}]},STOPS:{title:"Stop Event",description:"Stops for a number of seconds. Notes on this beat are hit before the stop occurs.",rows:[{label:"Seconds",key:"value",input:{type:"spinner",precision:3}}]},WARPS:{title:"Warp Event",description:"Warps ahead a number of beats. Warped notes do not count towards score.",rows:[{label:"Beats",key:"value",input:{type:"spinner",precision:3,min:0}}]},DELAYS:{title:"Delay Event",description:"Stops for a number of seconds. Notes on this beat are hit after the delay occurs.",rows:[{label:"Seconds",key:"value",input:{type:"spinner",precision:3}}]},SCROLLS:{title:"Scroll Event",description:"Notes after this event will scroll at the specified speed.",rows:[{label:"Multiplier",key:"value",input:{type:"spinner",precision:3}}]},TICKCOUNTS:{title:"Tickcount Event",description:"Number of ticks per beat in a hold. Only applies to pump gamemodes.",rows:[{label:"Ticks",key:"value",input:{type:"spinner",step:1,precision:0,min:0}}]},FAKES:{title:"Fake Event",description:"Creates an area of notes that cannot be hit and do not count towards score.",rows:[{label:"Beats",key:"value",input:{type:"spinner",precision:3,min:0}}]},LABELS:{title:"Label Event",rows:[{label:"Label",key:"value",input:{type:"text"}}]},SPEEDS:{title:"Speed Event",width:200,description:"The entire playfield scrolls at the specified speed. Can slowly ease over a certain amount of time.",rows:[{label:"Multiplier",key:"value",input:{type:"spinner",precision:3}},{label:"Ease time",key:"delay",input:{type:"spinner",precision:3,min:0}},{label:"Ease unit",key:"unit",input:{type:"dropdown",items:["Beats","Seconds"],transformers:{serialize:r=>r=="B"?"Beats":"Seconds",deserialize:r=>r=="Beats"?"B":"T"}}}]},TIMESIGNATURES:{title:"Time Signature Event",width:200,rows:[{label:"Upper",key:"upper",input:{type:"spinner",step:1,precision:0,min:1}},{label:"Lower",key:"lower",input:{type:"spinner",step:1,precision:0,min:1}}]},COMBOS:{title:"Combo Event",width:200,description:"Multiplies the combo gained from hitting/missing notes after this event.",rows:[{label:"Hit multiplier",key:"hitMult",input:{type:"spinner",step:1,precision:0,min:0}},{label:"Miss multiplier",key:"missMult",input:{type:"spinner",step:1,precision:0,min:0}}]},ATTACKS:{title:"Attack Event",width:200,description:"Applies a modifier to the playfield. Can specify the length of the applied attack in seconds or the end time of the attack.",rows:[{label:"Timing type",key:"endType",input:{type:"dropdown",items:["Length","End"],transformers:{serialize:r=>r=="LEN"?"Length":"End",deserialize:r=>r=="Length"?"LEN":"END"}}},{label:"Seconds",key:"value",input:{type:"spinner",precision:3}},{label:"Mods",key:"mods",input:{type:"text"}}]},BGCHANGES:{title:"BG Change Event",width:250,rows:[{label:"File",key:"file",input:{type:"text"}},{label:"Update rate",key:"updateRate",input:{type:"spinner",precision:3,min:0}},{label:"Crossfade",key:"crossfade",input:{type:"checkbox"}},{label:"StretchRewind",key:"stretchRewind",input:{type:"checkbox"}},{label:"StretchNoLoop",key:"StretchNoLoop",input:{type:"checkbox"}},{label:"Effect",key:"effect",input:{type:"text"}},{label:"File2",key:"file2",input:{type:"text"}},{label:"Transition",key:"transition",input:{type:"text"}},{label:"Color1",key:"color1",input:{type:"text"}},{label:"Color2",key:"color2",input:{type:"text"}}]},FGCHANGES:{title:"FG Change Event",width:250,rows:[{label:"File",key:"file",input:{type:"text"}},{label:"Update rate",key:"updateRate",input:{type:"spinner",precision:3,min:0}},{label:"Crossfade",key:"crossfade",input:{type:"checkbox"}},{label:"StretchRewind",key:"stretchRewind",input:{type:"checkbox"}},{label:"StretchNoLoop",key:"StretchNoLoop",input:{type:"checkbox"}},{label:"Effect",key:"effect",input:{type:"text"}},{label:"File2",key:"file2",input:{type:"text"}},{label:"Transition",key:"transition",input:{type:"text"}},{label:"Color1",key:"color1",input:{type:"text"}},{label:"Color2",key:"color2",input:{type:"text"}}]}};class tt extends oo{static options;static cachedEvent;static rows=[];static onTimingChange;static open(e){this.active||(super._open({...e,attach:e.box.backgroundObj,title:Qo[e.box.event.type].title,description:Qo[e.box.event.type].description,width:Qo[e.box.event.type].width??150,editable:!0,cancelableOnOpen:!1,background:Hl(kr[e.box.event.type].toString(16).padStart(6,"0"),"#333333",.75),textColor:"#ffffff",options:[{label:"Ok",type:"confirm",callback:()=>{this.close(),this.options.onConfirm(this.cachedEvent)}},{label:"Delete",type:"delete",callback:()=>{this.options.modifyBox||this.options.timingData.delete([{type:this.cachedEvent.type,[this.cachedEvent.type=="ATTACKS"?"second":"beat"]:this.cachedEvent.type=="ATTACKS"?this.cachedEvent.second:this.cachedEvent.beat}]),this.close()}}]}),this.cachedEvent=structuredClone(e.box.event),this.onTimingChange=this.updateValues.bind(this),H.on("timingModified",this.onTimingChange))}static buildContent(){const e=Qo[this.options.box.event.type],t=document.createElement("div");t.classList.add("popup-grid"),this.view.appendChild(t),e.rows.forEach(i=>t.append(...this.buildRow(i)))}static buildRow(e){const t=structuredClone(this.options.box.event),i=document.createElement("div");i.innerText=e.label,i.classList.add("popup-label");const s=[];switch(s.push(i),e.input.type){case"spinner":{const n=ft.create(t[e.key],e.input.step,e.input.precision,e.input.min,e.input.max);n.onChange=a=>{a!==void 0&&this.modifyEvent(e.key,a)},this.rows.push({data:e,el:n}),s.push(n.view);break}case"text":{const n=document.createElement("input");n.type="text",n.autocomplete="off",n.spellcheck=!1,n.onkeydown=a=>{a.key=="Enter"&&n.blur()},n.onblur=()=>{this.modifyEvent(e.key,n.value)},n.value=t[e.key],this.rows.push({data:e,el:n}),s.push(n);break}case"dropdown":{if(e.input.transformers){const n=e.input.transformers.deserialize,a=e.input.transformers.serialize,o=Oi.create(e.input.items,a(t[e.key]));o.onChange(l=>{this.modifyEvent(e.key,n(l))}),this.rows.push({data:e,el:o}),s.push(o.view)}else{const n=Oi.create(e.input.items,t[e.key]);n.onChange(a=>{this.modifyEvent(e.key,a)}),this.rows.push({data:e,el:n}),s.push(n.view)}break}case"checkbox":{const n=document.createElement("input");n.type="checkbox",n.checked=t[e.key],n.onchange=()=>{this.modifyEvent(e.key,n.checked)},this.rows.push({data:e,el:n}),s.push(n);break}}return s}static modifyEvent(e,t){this.options.modifyBox?Object.assign(this.options.box.event,{[e]:t}):this.options.timingData.modify([[structuredClone(this.options.box.event),Object.assign(this.options.box.event,{[e]:t})]]),this.cachedEvent=structuredClone(this.options.box.event)}static updateValues(){const e=this.options.timingData.getEventAtBeat(this.options.box.event.type,this.options.box.event.beat,!1);if(!this.options.box||!e||e.beat!=this.options.box.event.beat){this.close();return}this.rows.forEach(t=>{switch(t.data.input.type){case"spinner":{t.el.setValue(e[t.data.key]);break}case"text":{t.el.value=e[t.data.key];break}case"dropdown":{const i=t.el;t.data.input.transformers?i.setSelected(t.data.input.transformers.serialize(e[t.data.key])):i.setSelected(e[t.data.key]);break}case"checkbox":{t.el.checked=e[t.data.key];break}}})}static close(){this.active&&(super.close(),H.off("timingModified",this.onTimingChange))}static getEvent(){return this.cachedEvent}static attach(e){super.attach(e.backgroundObj),this.options.box=e,this.cachedEvent=e.event}}const fl={fontName:"Main",fontSize:15},Ki={BPMS:55,STOPS:55,DELAYS:55,WARPS:55,FAKES:55,COMBOS:40,SPEEDS:80,LABELS:80,SCROLLS:55,TIMESIGNATURES:40,TICKCOUNTS:40,BGCHANGES:55,FGCHANGES:55,ATTACKS:55};class BD extends ve{tracks=new ve;renderer;timingBoxMap=new Map;wasEditingTiming=!1;boxPool=new Ya({create:()=>{const e=new ve;return e.textObj=new Fe("",fl),e.backgroundObj=new zt,e.selection=new zt("onlyBorder"),e.selection.tint=3841008,e.addChild(e.backgroundObj,e.textObj,e.selection),e}});ghostBox;timingDirty=!1;tracksDirty=!0;constructor(e){super(),this.renderer=e,this.boxPool.sortableChildren=!0,this.sortableChildren=!0,this.addChild(this.tracks,this.boxPool);const t=()=>{this.timingDirty=!0,this.tracksDirty=!0},i=s=>{s.startsWith("chart.timingEventOrder")&&(this.tracksDirty=!0)};H.on("timingModified",t),H.on("userOptionUpdated",i),this.on("destroyed",()=>{H.off("timingModified",t),H.off("userOptionUpdated",i)})}update(e,t){this.renderer.chartManager.editTimingMode!=Ie.Add&&(this.ghostBox?.removeFromParent(),this.ghostBox?.destroy(),this.ghostBox=void 0),this.updateTracks(),this.updateBoxes(e,t)}createTrack(e,t){const i=Object.assign(new ve,{alpha:0,name:e,x:t,type:e,timingMode:"song",background:new Ne(te.WHITE),btns:new ve});i.background=new Ne(te.WHITE),i.background.width=Ki[e],i.background.height=5e3,i.background.tint=2503250,i.background.anchor.y=.5,i.background.alpha=0,i.btns.y=this.renderer.getActualReceptorYPos()+(x.chart.reverse?50:-50);const s=new ve,n=new zt,a=new Fe(e,fl);return n.width=20,n.height=20,et(n,"widget-bg"),n.pivot.set(10,10),a.anchor.set(.5,.55),a.text="S",et(a,"text-color"),s.alpha=.4,s.name="timingTypeBtn",s.eventMode="static",s.on("mouseenter",()=>{wr.persistent||wr.open({attach:s,type:e,timingData:this.renderer.chart.timingData})}),s.on("mouseleave",()=>{wr.persistent||wr.close()}),s.on("pointerdown",()=>{wr.persistent&&wr.open({attach:s,type:e,timingData:this.renderer.chart.timingData}),wr.select()}),s.addChild(n,a),i.btns.addChild(s),i.addChild(i.background,i.btns),this.tracks.addChild(i),i}initializeBox(e,t){if(mi.stop(e.animationId),Object.assign(e,{event:t,lastX:void 0,lastAnchor:void 0,animationId:void 0,zIndex:t.beat,eventMode:"static"}),e.textObj.text=this.getLabelFromEvent(t),e.textObj.anchor.set(.5,.55),e.backgroundObj.width=e.textObj.width+10,e.backgroundObj.height=25,e.backgroundObj.position.x=-e.backgroundObj.width/2,e.backgroundObj.position.y=-25/2,e.selection.width=e.textObj.width+10,e.selection.height=25,e.selection.position=e.backgroundObj.position,tt.active){const i=tt.getEvent();i.type=="ATTACKS"&&t.type=="ATTACKS"&&i.second==t.second&&tt.attach(e),i.type!="ATTACKS"&&t.type!="ATTACKS"&&i.type==t.type&&i.beat==t.beat&&tt.attach(e)}}addDragListeners(e,t){e.on("mouseenter",()=>{tt.persistent||this.renderer.chartManager.eventSelection.timingEvents.length>0||this.renderer.isDragSelecting()||(tt.active&&tt.close(),this.renderer.chartManager.getMode()==K.Edit&&tt.open({box:e,timingData:this.getTargetTimingData(e.event),modifyBox:!1,onConfirm:()=>{this.renderer.chartManager.removeEventFromSelection(t)}}))}),e.on("mouseleave",()=>{tt.persistent||tt.close()});let i=0,s;const n=a=>{const o=s,l=this.toLocal(a.global);if(Math.abs(l.y-i)<32){this.renderer.chartManager.eventSelection.shift&&(this.renderer.chartManager.eventSelection.shift={beatShift:0});return}tt.close();const c=this.renderer.getBeatFromYPos(l.y),u=x.chart.snap==0?1/1e3:x.chart.snap;let h=Math.round(c/u)*u;Math.abs(h-c)>Math.abs(c-o.beat)&&(h=o.beat),this.renderer.chartManager.eventSelection.shift||={beatShift:0},this.renderer.chartManager.eventSelection.shift.beatShift=Math.max(-Math.min(...this.renderer.chartManager.eventSelection.timingEvents.map(d=>d.beat)),h-o.beat)};e.on("pointerdown",a=>{if(Uu(a)){this.renderer.chartManager.clearSelections(),this.renderer.chartManager.addEventToSelection(t),tt.close();return}if(a.stopImmediatePropagation(),this.renderer.chartManager.isEventInSelection(t)?(a.getModifierState("Control")||a.getModifierState("Meta"))&&this.renderer.chartManager.removeEventFromSelection(t):(!a.getModifierState("Control")&&!a.getModifierState("Meta")&&!a.getModifierState("Shift")&&this.renderer.chartManager.clearSelections(),this.renderer.chartManager.addEventToSelection(t)),this.renderer.chartManager.getMode()==K.Edit&&this.renderer.chartManager.eventSelection.timingEvents.length==1&&tt.options?.box!=e&&(tt.close(),tt.open({box:e,timingData:this.getTargetTimingData(e.event),modifyBox:!1,onConfirm:()=>{this.renderer.chartManager.removeEventFromSelection(t)}})),tt.active&&!a.getModifierState("Control")&&!a.getModifierState("Meta")&&!a.getModifierState("Shift")?tt.select():tt.close(),i=e.y,s=t,this.renderer.chartManager.editTimingMode==Ie.Add)return;this.renderer.on("pointermove",n);const o=()=>{this.renderer.off("pointermove",n),this.renderer.off("pointerup",o),(this.renderer.chartManager.eventSelection.shift?.beatShift??0)!=0&&this.renderer.chartManager.modifyEventSelection(l=>(l.type=="ATTACKS"&&(l.second=this.renderer.chart.timingData.getSecondsFromBeat(l.beat+this.renderer.chartManager.eventSelection.shift.beatShift)),l.beat+=this.renderer.chartManager.eventSelection.shift.beatShift,l)),this.renderer.chartManager.eventSelection.shift=void 0};this.renderer.on("pointerup",o)})}updateTracks(){const e=this.renderer.chartManager.editTimingMode!=Ie.Off&&this.renderer.chartManager.getMode()==K.Edit;if(e&&this.tracks.children.forEach(a=>{a.btns.y=this.renderer.getActualReceptorYPos()+(x.chart.reverse?50:-50)}),!this.tracksDirty&&this.wasEditingTiming==e)return;this.wasEditingTiming=e,this.tracksDirty=!1;const t=x.chart.timingEventOrder.left,i=x.chart.timingEventOrder.right;this.tracks.children.forEach(a=>{a.visible=!1});let s=-this.renderer.chart.gameType.notefieldWidth*.5-128;const n=(a,o,l,c,u)=>{mi.animate(a,{0:{[o]:"inherit"},1:{[o]:l}},c,Sr(0,0,.16,1.01),()=>{},u)};for(let a=t.length-1;a>=0;a--){const o=t[a],l=this.tracks.getChildByName(o)??this.createTrack(o,s);l.visible=!0;const c=a%2==0?.1:0;n(l,"x",s,.3,`track-${o}-x`),n(l.btns,"x",-Ki[o]/2,.3,`track-${o}-btn-x`),n(l.background,"anchor.x",1,.3,`track-${o}-anchor-x`),n(l.background,"alpha",e?c:0,.3,`track-${o}-bg-alpha`),s-=Ki[o]}s=this.renderer.chart.gameType.notefieldWidth*.5+128;for(let a=0;a{const o=a.btns.getChildByName("timingTypeBtn"),l=o?.children[1];o&&(o.eventMode=e?"static":"none"),l&&(l.text=this.renderer.chart.timingData.isPropertyChartSpecific(a.type)?"C":"S")})}updateBoxes(e,t){this.timingDirty&&(this.timingBoxMap.clear(),this.boxPool.destroyAll(),this.timingDirty=!1);const i=this.renderer.chartManager.editTimingMode!=Ie.Off&&this.renderer.chartManager.getMode()==K.Edit;this.boxPool.visible=this.renderer.shouldDisplayBarlines(),this.ghostBox&&(this.ghostBox.visible=this.renderer.shouldDisplayBarlines()&&i);for(const n of this.renderer.chart.timingData.getTimingData()){if(tn.beat)&&!this.timingBoxMap.has(n)){const a=this.boxPool.createChild();if(!a)break;this.initializeBox(a,n),this.addDragListeners(a,n),this.timingBoxMap.set(n,a)}}const s={beat:-Number.MAX_SAFE_INTEGER,second:-Number.MAX_SAFE_INTEGER,leftOffset:0,rightOffset:0};for(const[n,a]of this.timingBoxMap.entries()){if(n.beatt||!x.chart.timingEventOrder.left.includes(n.type)&&!x.chart.timingEventOrder.right.includes(n.type)){this.timingBoxMap.delete(n),tt.options?.box==a?tt.detach():tt.persistent||tt.close(),this.boxPool.destroyChild(a);continue}let o=0,l=0;const c=a.backgroundObj.width,u=x.chart.timingEventOrder.right.includes(n.type)?"right":"left";i?(o=this.tracks.getChildByName(n.type)?.x??a.x,o+=Ki[n.type]/2*(o>0?1:-1),l=.5):(o=(u=="right"?1:-1)*(this.renderer.chart.gameType.notefieldWidth*.5+80),u=="left"&&(o-=30),(s.beat!=n.beat||n.second&&s.second!=n.second)&&(s.leftOffset=0,s.rightOffset=0,s.beat=n.beat,s.second=n.second),u=="left"?(o-=s.leftOffset,s.leftOffset+=c+5):(o+=s.rightOffset,s.rightOffset+=c+5),l=u=="right"?0:1),a.lastX===void 0||a.lastAnchor===void 0?(a.x=o,a.pivot.x=(l-.5)*c):(a.lastX!=o||a.lastAnchor!=l)&&(a.animationId=mi.animate(a,{0:{x:"inherit","pivot.x":"inherit"},1:{x:o,"pivot.x":(l-.5)*c}},.3,Sr(0,0,.16,1.01),()=>{},a.animationId)),a.lastX=o,a.lastAnchor=l,a.y=x.chart.CMod&&n.type=="ATTACKS"?this.renderer.getYPosFromSecond(n.second):this.renderer.getYPosFromBeat(n.beat);const h=this.renderer.chartManager.getMode()!=K.Play&&this.renderer.chartManager.isEventInSelection(n);if(a.backgroundObj.tint=h?Gd(kr[n.type]??0,Math.sin(Date.now()/320)*.4+1.5):kr[n.type]??0,a.selection.alpha=h?1:0,a.visible=!h||!this.renderer.chartManager.eventSelection.shift,this.renderer.chartManager.editTimingMode!=Ie.Off){const d=this.renderer.selectionTest(a);!h&&d&&this.renderer.chartManager.addEventToDragSelection(n),h&&!d&&this.renderer.chartManager.removeEventFromDragSelection(n)}}}updateGhostEvent(e){const t=x.chart.snap==0?.001:x.chart.snap,i=Math.round(this.renderer.getBeatFromYPos(e.y)/t)*t,s=tt.active&&tt.options?.box==this.ghostBox,n=s?this.ghostBox.event.type:this.getClosestTrack(e.x)?.name;if(!n){this.ghostBox?.removeFromParent(),this.ghostBox?.destroy(),this.ghostBox=void 0;return}if(!this.ghostBox){const l=new ve;l.textObj=new Fe("",fl),l.backgroundObj=new zt,l.selection=new zt("onlyBorder"),l.guideLine=new Ne(te.WHITE),l.selection.tint=3841008,l.selection.alpha=0,l.addChild(l.guideLine,l.backgroundObj,l.textObj,l.selection),this.addChild(l),l.visible=this.renderer.shouldDisplayBarlines(),l.textObj.anchor.set(.5,.55),l.backgroundObj.height=25,l.selection.height=25,l.guideLine.height=1,l.guideLine.anchor.y=.5,this.ghostBox=l}!s&&(this.ghostBox.event?.beat!=i||this.ghostBox.event?.type!=n)&&(this.ghostBox.event=structuredClone(this.renderer.chart.timingData.getEventAtBeat(n,i))??this.renderer.chart.timingData.getDefaultEvent(n,i),this.ghostBox.event.beat=i,n=="ATTACKS"&&(this.ghostBox.event.second=this.renderer.chart.getSecondsFromBeat(i)),this.ghostBox.textObj.text=this.getLabelFromEvent(this.ghostBox.event),this.ghostBox.backgroundObj.width=this.ghostBox.textObj.width+10,this.ghostBox.selection.width=this.ghostBox.textObj.width+10),this.ghostBox.alpha=s?1:.4,this.ghostBox.selection.alpha=s?1:0,this.ghostBox.name=n;const a=this.renderer.getYPosFromBeat(s?this.ghostBox.event.beat:i);let o=this.tracks.getChildByName(n).x;o+=Ki[n]/2*(o>0?1:-1),this.ghostBox.position.x=o,this.ghostBox.backgroundObj.tint=kr[n]??0,this.ghostBox.backgroundObj.position.x=-this.ghostBox.backgroundObj.width/2,this.ghostBox.backgroundObj.position.y=-25/2,this.ghostBox.guideLine.anchor.x=o<0?0:1,this.ghostBox.guideLine.width=Math.abs(this.ghostBox.position.x)+192-this.ghostBox.backgroundObj.width/2,this.ghostBox.guideLine.position.x=(o<0?1:-1)*this.ghostBox.backgroundObj.width/2,this.ghostBox.y=a,this.ghostBox.selection.position=this.ghostBox.backgroundObj.position}placeGhostEvent(){if(!this.ghostBox)return;const e=this.renderer.chart.timingData.getEventAtBeat(this.ghostBox.event.type,this.ghostBox.event.beat,!1);this.ghostBox.event.type=="ATTACKS"&&this.ghostBox.event.second==e?.second||this.ghostBox.event.type!="ATTACKS"&&this.ghostBox.event.beat==e?.beat||(this.renderer.chartManager.clearSelections(),tt.open({box:this.ghostBox,timingData:this.getTargetTimingData(this.ghostBox.event),modifyBox:!0,onConfirm:t=>{this.getTargetTimingData(this.ghostBox.event).insert([t])}}),tt.select())}getClosestTrack(e){let t=Number.MAX_SAFE_INTEGER,i=this.tracks.children[0];for(const s of this.tracks.children){const n=Math.abs(s.x+(.5-s.background.anchor.x)*s.width-e);ni.width))return i}getLabelFromEvent(e){let t="";switch(e.type){case"BPMS":case"STOPS":case"WARPS":case"DELAYS":case"TICKCOUNTS":case"FAKES":case"SCROLLS":t=ae(e.value,3).toString();break;case"SPEEDS":t=`${ae(e.value,3)}/${ae(e.delay,3)}/${e.unit}`;break;case"LABELS":t=e.value;break;case"TIMESIGNATURES":t=`${ae(e.upper,3)}/${ae(e.lower,3)}`;break;case"COMBOS":t=`${ae(e.hitMult,3)}/${ae(e.missMult,3)}`;break;case"BGCHANGES":case"FGCHANGES":t=e.file;break;case"ATTACKS":t=`${e.mods}`}return t}getTargetTimingData(e){return this.renderer.chart.timingData.isPropertyChartSpecific(e.type)?this.renderer.chart.timingData:this.renderer.chart.timingData.songTimingData}}class RD extends ve{children=[];renderer;timingBoxMap=new Map;trackPosCache=new Map;timingBoxPool=new Ya({create:()=>{const e=new ve;return e.guideLine=new Ne(te.WHITE),e.textObj=new Fe("",fl),e.backgroundObj=new zt,e.addChild(e.guideLine,e.backgroundObj,e.textObj),e}});constructor(e){super(),this.renderer=e,this.timingBoxPool.sortableChildren=!0,this.addChild(this.timingBoxPool)}update(e,t){if(!this.renderer.chartManager.eventSelection.shift){this.timingBoxPool.destroyAll(),this.timingBoxMap.clear(),this.trackPosCache.clear();return}const i=this.renderer.chartManager.eventSelection.shift.beatShift;for(const s of this.renderer.chartManager.eventSelection.timingEvents)if(!(ts.beat+i)&&!this.timingBoxMap.has(s)){const n=this.timingBoxPool.createChild();if(!n)continue;this.timingBoxMap.set(s,n);let a="";switch(s.type){case"BPMS":case"STOPS":case"WARPS":case"DELAYS":case"TICKCOUNTS":case"FAKES":case"SCROLLS":a=ae(s.value,3).toString();break;case"SPEEDS":a=`${ae(s.value,3)}/${ae(s.delay,3)}/${s.unit}`;break;case"LABELS":a=s.value;break;case"TIMESIGNATURES":a=`${ae(s.upper,3)}/${ae(s.lower,3)}`;break;case"COMBOS":a=`${ae(s.hitMult,3)}/${ae(s.missMult,3)}`;break;case"BGCHANGES":case"FGCHANGES":a=s.file;break;case"ATTACKS":a=`${s.mods} (${s.endType}=${s.value})`}const o=x.chart.timingEventOrder.right.includes(s.type)?"right":"left";if(Object.assign(n,{alpha:.4,zIndex:s.beat}),n.textObj.text=a,n.textObj.anchor.set(.5,.55),n.backgroundObj.width=n.textObj.width+10,n.backgroundObj.height=25,n.backgroundObj.tint=kr[s.type]??0,n.backgroundObj.position.x=-n.backgroundObj.width/2,n.backgroundObj.position.y=-n.backgroundObj.height/2,n.guideLine.height=1,n.guideLine.anchor.set(o=="left"?0:1,.5),n.guideLine.width=Math.abs(n.position.x)+192-n.backgroundObj.width/2,n.guideLine.position.x=(o=="left"?1:-1)*n.backgroundObj.width/2,this.renderer.chartManager.editTimingMode!=Ie.Off){let l=this.getTrackPos(s.type);l+=Ki[s.type]/2*(l>0?1:-1),n.position.x=l,n.pivot.x=0}else{let l=(o=="right"?1:-1)*(this.renderer.chart.gameType.notefieldWidth*.5+80);o=="left"&&(l-=30),n.position.x=l,n.pivot.x=o=="right"?-n.backgroundObj.width/2:n.backgroundObj.width/2}}for(const[s,n]of this.timingBoxMap.entries()){if(ts.beat+i){this.timingBoxPool.destroyChild(n),this.timingBoxMap.delete(s);continue}n.y=x.chart.CMod&&s.second?this.renderer.getYPosFromSecond(s.second):this.renderer.getYPosFromBeat(s.beat+i)}}getTrackPos(e){if(this.trackPosCache.has(e))return this.trackPosCache.get(e);const t=x.chart.timingEventOrder.left,i=x.chart.timingEventOrder.right;let s=-this.renderer.chart.gameType.notefieldWidth*.5-128;for(let n=t.length-1;n>=0;n--){const a=t[n];this.trackPosCache.set(a,s),s-=Ki[a]}s=this.renderer.chart.gameType.notefieldWidth*.5+128;for(let n=0;n{if(this.editingCol!=-1){const a=x.chart.snap==0?.020833333333333332:x.chart.snap,o=Math.round(this.getBeatFromYPos(this.lastMousePos.y)/a)*a;this.chartManager.editHoldBeat(this.editingCol,o,n.shiftKey)}};let i=0;const s=()=>{if(!this.chartManager.selection.shift&&!this.selectionBounds||i==0)return;const n=this.getYPosFromBeat(Math.max(0,this.chartManager.beat+i));this.chartManager.beat=Math.max(0,this.chartManager.beat+i),this.selectionBounds&&(x.chart.reverse?this.selectionBounds.start.y-=x.chart.receptorYPos/x.chart.zoom+n:this.selectionBounds.start.y+=x.chart.receptorYPos/x.chart.zoom-n,this.selectionBoundary.update())};this.chartManager.app.ticker.add(s),window.addEventListener("keydown",t),this.on("destroyed",()=>{window.removeEventListener("keydown",t),this.removeAllListeners(),this.chartManager.app.ticker.remove(s)}),this.on("pointerdown",n=>{Uu(n)||this.chartManager.getMode()==K.Play||this.chartManager.getMode()==K.View||(this.chartManager.editTimingMode==Ie.Add&&this.lastMousePos?this.timingTracks.placeGhostEvent():this.chartManager.editTimingMode==Ie.Off&&x.chart.mousePlacement&&this.lastMouseBeat!=-1&&this.lastMouseCol!=-1&&!n.getModifierState("Shift")?(this.chartManager.clearSelections(),this.editingCol=this.lastMouseCol,this.chartManager.setNote(this.lastMouseCol,"mouse",this.lastMouseBeat)):(!n.getModifierState("Control")&&!n.getModifierState("Meta")&&!n.getModifierState("Shift")&&this.chartManager.clearSelections(),this.chartManager[this.chartManager.editTimingMode==Ie.Off?"startDragSelection":"startDragEventSelection"](),this.selectionBounds={start:this.toLocal(n.global),end:this.toLocal(n.global)},this.selectionBoundary.update()))}),this.on("mousemove",n=>{if(this.lastMousePos=this.toLocal(n.global),this.editingCol!=-1){const a=x.chart.snap==0?.020833333333333332:x.chart.snap,o=Math.round(this.getBeatFromYPos(this.lastMousePos.y)/a)*a;this.chartManager.editHoldBeat(this.editingCol,o,n.shiftKey)}this.selectionBounds&&(this.selectionBounds.end=this.toLocal(n.global),this.selectionBoundary.update()),i=Math.max(0,this.lastMousePos.y-this.getLowerBound()+100)/600,this.lastMousePos.y<0&&(i=Math.min(0,this.lastMousePos.y-this.getUpperBound()-100)/600),x.chart.reverse&&(i=Math.max(0,this.getUpperBound()-this.lastMousePos.y+100)/600,this.lastMousePos.y>0&&(i=Math.min(0,this.getLowerBound()-this.lastMousePos.y-100)/600))}),this.on("pointerup",()=>{this.editingCol!=-1&&(this.chartManager.endEditing(this.editingCol),this.editingCol=-1),this.chartManager[this.chartManager.editTimingMode==Ie.Off?"endDragSelection":"endDragEventSelection"](),this.selectionBounds=void 0,this.selectionBoundary.update(),i=0})}isDragSelecting(){return!!this.selectionBounds}doJudgement(e,t,i){this.chartManager.getMode()==K.Play&&(this.judgement.doJudge(t,i),this.timingBar.addBar(t,i)),this.notefield.onJudgement(e.col,i)}startPlay(){this.notefield.startPlay()}endPlay(){this.notefield.endPlay(),this.timingBar.reset(),this.judgement.reset()}update(){if(this.destroyed)return;this.cachedBeat=this.chartManager.beat,this.cachedTime=this.chartManager.time,this.x=this.chartManager.app.renderer.screen.width/2+x.chart.receptorXPos,this.speedMult=x.chart.doSpeedChanges?this.getCurrentSpeedMult():1;const e=this.getTopOnScreenBeat(),t=this.getBottomOnScreenBeat(),i=Math.min(e,t),s=Math.max(e,t);if(this.scale.x=x.chart.zoom,this.scale.y=x.chart.zoom,this.children.forEach(n=>n.update(i,s)),this.notefield.alpha=this.chartManager.editTimingMode==Ie.Off||this.chartManager.getMode()==K.Play?1:.3,x.chart.mousePlacement&&this.lastMousePos&&this.chartManager.getMode()!=K.Play){const n=x.chart.snap==0?.020833333333333332:x.chart.snap,a=Math.round(this.getBeatFromYPos(this.lastMousePos.y)/n)*n;let o=-1;for(let l=0;lu-c/2){o=l;break}}(a!=this.lastMouseBeat||o!=this.lastMouseCol||this.chartManager.getEditingNoteType()!=this.lastNoteType)&&(this.lastMouseBeat=a,this.lastMouseCol=o,this.lastNoteType=this.chartManager.getEditingNoteType(),this.editingCol!=-1&&this.chartManager.editHoldBeat(this.editingCol,a,!1),o===-1?(this.lastMouseBeat=-1,this.lastMouseCol=-1,this.notefield.setGhostNote()):this.notefield.setGhostNote(this.chart.computeNote({beat:a,col:this.lastMouseCol,type:this.chartManager.getEditingNoteType()})))}this.lastMousePos&&this.chartManager.editTimingMode==Ie.Add&&this.timingTracks.updateGhostEvent(this.lastMousePos)}getTimeWithOffset(){let e=this.cachedTime;return(this.chartManager.getMode()==K.Play||this.chartManager.getMode()==K.Record)&&(e+=x.play.offset*x.audio.rate),e}getBeatWithOffset(){let e=this.cachedBeat;return(this.chartManager.getMode()==K.Play||this.chartManager.getMode()==K.Record)&&(e=this.chart.getBeatFromSeconds(this.getTimeWithOffset())),e}getVisualTime(){let e=this.cachedTime;return(this.chartManager.getMode()==K.Play||this.chartManager.getMode()==K.Record)&&(e+=(x.play.offset+x.play.visualOffset)*x.audio.rate),e}getVisualBeat(){let e=this.cachedBeat;return(this.chartManager.getMode()==K.Play||this.chartManager.getMode()==K.Record)&&(e=this.chart.getBeatFromSeconds(this.getVisualTime())),e}getYPosFromBeat(e){const t=this.getVisualTime(),i=this.getVisualBeat(),s=x.chart.reverse?-1:1;return x.chart.CMod?(this.chart.getSecondsFromBeat(e)-t)*this.getSecondsToPixelsRatio()*s+this.getActualReceptorYPos():i==e?this.getActualReceptorYPos():(x.chart.doSpeedChanges?this.chart.timingData.getEffectiveBeat(e)-this.chart.timingData.getEffectiveBeat(i):e-i)*this.getEffectiveBeatsToPixelsRatio()*s+this.getActualReceptorYPos()}getYPosFromSecond(e){const t=this.getVisualTime(),i=x.chart.reverse?-1:1;return x.chart.CMod?(e-t)*this.getSecondsToPixelsRatio()*i+this.getActualReceptorYPos():this.getYPosFromBeat(this.chart.timingData.getBeatFromSeconds(e))}getSecondFromYPos(e){const t=x.chart.reverse?-1:1;if(x.chart.CMod){const i=this.getPixelsToSecondsRatio(),s=this.getVisualTime(),a=(e-this.getActualReceptorYPos())*i*t;return s+a}return this.chart.getSecondsFromBeat(this.getBeatFromYPos(e))}getBeatFromYPos(e,t){const i=this.getVisualBeat(),s=x.chart.reverse?-1:1;if(x.chart.CMod)return this.chart.getBeatFromSeconds(this.getSecondFromYPos(e));const a=(e-this.getActualReceptorYPos())*this.getPixelsToEffectiveBeatsRatio()*s;if(x.chart.doSpeedChanges&&!t){const o=this.chart.timingData.getEffectiveBeat(i)+a;return this.chart.getBeatFromEffectiveBeat(o)}return i+a}getColumnFromXPos(e){const t=this.chart.gameType;let i=null;for(let s=0;si)return s-1;i=n}return t.numCols-1}getActualReceptorYPos(){return x.chart.receptorYPos/x.chart.zoom*(x.chart.reverse?-1:1)}getEffectiveBeatsToPixelsRatio(){return x.chart.speed/100*64*this.speedMult}getPixelsToEffectiveBeatsRatio(){return 1/this.getEffectiveBeatsToPixelsRatio()}getSecondsToPixelsRatio(){return x.chart.speed/100*64*4}getPixelsToSecondsRatio(){return 1/this.getSecondsToPixelsRatio()}isNegScroll(e){return x.chart.doSpeedChanges&&(this.speedMult<0||(this.chart.timingData.getEventAtBeat("SCROLLS",e)?.value??1)<0||(this.chart.timingData.getEventAtBeat("BPMS",e)?.value??120)<0)}getUpperBound(){return-this.y/x.chart.zoom-64}getLowerBound(){return(this.chartManager.app.renderer.screen.height-this.y)/x.chart.zoom+64}findFirstOnScreenScroll(){const e=[...this.chart.timingData.getTimingData("SCROLLS")];e[0]?.beat!=0&&e.splice(0,0,{beat:0,value:e[0]?.value??1,type:"SCROLLS"});let t=Nt(e,this.getVisualBeat()-x.chart.maxDrawBeatsBack,i=>i.beat);for(;ts.beat);const i=Nt(e,this.getVisualBeat()-x.chart.maxDrawBeatsBack,s=>s.beat);for(;t>=i;){const s=e[t];t--;const n=s===void 0?-1/0*this.getScrollDirection(e[0]?.value??1):this.getYPosFromBeat(s.beat??0),a=e[t+2]===void 0?1/0*this.getScrollDirection(s.value):this.getYPosFromBeat(e[t+2].beat);if(this.isAreaOnScreen(n,a))return s}return{beat:0,value:1,type:"SCROLLS"}}getTopOnScreenBeat(){if(x.chart.waveform.speedChanges&&!x.chart.CMod&&x.chart.doSpeedChanges){const e=this.findFirstOnScreenScroll(),t=1/Math.abs(this.getEffectiveBeatsToPixelsRatio()),i=this.getYPosFromBeat(e.beat),s=t/Math.abs(e.value),n=this.getScrollDirection(e.value),a=n==1?this.getUpperBound():this.getLowerBound(),o=n*(a-i)*s+e.beat;return Math.max(this.getVisualBeat()-x.chart.maxDrawBeatsBack,o)}return x.chart.CMod?this.getBeatFromYPos(this.getUpperBound()):Math.max(this.getVisualBeat()-x.chart.maxDrawBeatsBack,this.getBeatFromYPos(this.getUpperBound()))}getBottomOnScreenBeat(){if(x.chart.waveform.speedChanges&&!x.chart.CMod&&x.chart.doSpeedChanges){const e=this.findLastOnScreenScroll(),t=1/Math.abs(this.getEffectiveBeatsToPixelsRatio()),i=this.getYPosFromBeat(e.beat),s=t/Math.abs(e.value),n=this.getScrollDirection(e.value),a=n==1?this.getLowerBound():this.getUpperBound(),o=n*(a-i)*s+e.beat;return Math.min(this.getVisualBeat()+x.chart.maxDrawBeats,o)}return x.chart.CMod?this.getBeatFromYPos(this.getLowerBound()):Math.min(this.getVisualBeat()+x.chart.maxDrawBeats,this.getBeatFromYPos(this.getLowerBound()))}isAreaOnScreen(e,t){ti}getCurrentSpeedMult(){return this.chart.timingData.getSpeedMult(this.getVisualBeat(),this.getVisualTime())}getScrollDirection(e){let t=1;return this.getCurrentSpeedMult()<0&&(t*=-1),x.chart.reverse&&(t*=-1),e<0&&(t*=-1),t}getUpperBoundBeat(){if(x.chart.waveform.speedChanges&&!x.chart.CMod&&x.chart.doSpeedChanges){const e=x.chart.speed,t=this.chart.timingData.getSpeedMult(this.getVisualBeat(),this.getVisualTime()),i=t>=0!=x.chart.reverse?1:-1,s=this.chart.timingData.getTimingData("SCROLLS"),n=100/e/Math.abs(t)/64/x.chart.zoom,a=this.getUpperBound(),o=this.getLowerBound();let l=Nt(s,this.getVisualBeat()-x.chart.maxDrawBeatsBack,m=>m.beat);for(this.getVisualBeat()-x.chart.maxDrawBeatsBack0&&w>a&&(ga||!s[l-1]||s[l-1].beat0?s[l-1]?.value==0&&this.getYPosFromBeat(s[l-1].beat)>p?this.getVisualBeat()-x.chart.maxDrawBeatsBack:Math.max(this.getVisualBeat()-x.chart.maxDrawBeatsBack,c+d*(p-u)):s[l-1]?.value==0&&this.getYPosFromBeat(s[l-1].beat)=0!=x.chart.reverse?1:-1,s=this.chart.timingData.getTimingData("SCROLLS"),n=100/e/Math.abs(t)/64/x.chart.zoom,a=this.getUpperBound(),o=this.getLowerBound();let l=Nt(s,this.getVisualBeat()+x.chart.maxDrawBeats,m=>m.beat);for(;l=0&&(s[l].beat??0)>this.getVisualBeat()-x.chart.maxDrawBeatsBack;){const m=s[l],g=this.getYPosFromBeat(m?.beat??0),b=s[l+1]?.beat??this.getVisualBeat()+x.chart.maxDrawBeats,w=this.getYPosFromBeat(b);if((m?.value??1)*i>0&&go||!s[l+1]||s[l+1].beat>this.getVisualBeat()+x.chart.maxDrawBeatsBack||s[l+1].value==0)||(m?.value??1)*i<0&&g>o&&(wthis.getVisualBeat()+x.chart.maxDrawBeatsBack||s[l+1].value==0))break;l--}const c=s[l]?.beat??0,u=this.getYPosFromBeat(c),h=s[l]?.value??1,d=n/Math.abs(h)*x.chart.zoom,f=x.chart.reverse?o:a,p=x.chart.reverse?a:o;return h*i>0?s[l+1]?.value==0&&this.getYPosFromBeat(s[l+1].beat)f?this.getVisualBeat()+x.chart.maxDrawBeats:Math.min(this.getVisualBeat()+x.chart.maxDrawBeats,c+d*(u-f))}return x.chart.CMod?this.getBeatFromYPos(this.getLowerBound()):Math.min(this.getVisualBeat()+x.chart.maxDrawBeats,this.getBeatFromYPos(this.getLowerBound()))}selectionTest(e){if(!this.selectionBounds)return!1;const t=this.selectionBoundary.getBounds(),i=e.getBounds(),s=16*x.chart.zoom;return t.x+t.width>i.x+s&&t.xi.y+s&&t.y{const u=o,h=this.toLocal(c.global);if(Math.abs(h.y-a-n)**2+Math.abs(h.x-s)**2<32*32){this.chartManager.selection.shift&&(this.chartManager.selection.shift={columnShift:0,beatShift:0});return}const d=this.getBeatFromYPos(h.y-a),f=x.chart.snap==0?1/48:x.chart.snap;let p=Math.round(d/f)*f;Math.abs(p-d)>Math.abs(d-u.beat)&&(p=u.beat);const m=this.getColumnFromXPos(h.x);this.chartManager.selection.shift||={columnShift:0,beatShift:0},i!=m-u.col&&(i=m-u.col,this.chartManager.selection.notes.every(g=>{const b=g.col+i;return b>=0&&bg.beat)),p-u.beat)};e.on("pointerdown",c=>{if(this.chartManager.getMode()==K.View)return;if(Uu(c)){this.chartManager.isNoteInSelection(t)||(this.chartManager.clearSelections(),this.chartManager.addNoteToSelection(t)),rD.open(this.chartManager.app,c),c.preventDefault();return}if(x.chart.mousePlacement&&!c.getModifierState("Meta")&&!c.getModifierState("Control")&&!c.getModifierState("Shift")&&!this.chartManager.isNoteInSelection(t))return;c.stopImmediatePropagation(),this.chartManager.isNoteInSelection(t)?(c.getModifierState("Control")||c.getModifierState("Meta"))&&this.chartManager.removeNoteFromSelection(t):(!c.getModifierState("Control")&&!c.getModifierState("Meta")&&!c.getModifierState("Shift")&&this.chartManager.clearSelections(),this.chartManager.addNoteToSelection(t)),s=e.x,n=e.y,a=this.toLocal(c.global).y-e.y,o=t,this.on("pointermove",l);const u=()=>{this.off("pointermove",l),this.off("pointerup",u),((this.chartManager.selection.shift?.beatShift??0)!=0||(this.chartManager.selection.shift?.columnShift??0)!=0)&&this.chartManager.modifySelection(h=>(h.beat+=this.chartManager.selection.shift.beatShift,h.col+=this.chartManager.selection.shift.columnShift,h)),this.chartManager.selection.shift=void 0};this.on("pointerup",u)}),e.on("destroyed",()=>{e?.removeAllListeners()})}getNotefield(){return this.notefield}swapNoteskin(e){x.chart.noteskin.name=e,x.chart.lastNoteskins[this.chart.gameType.id]=e,this.reloadNotefield()}reloadNotefield(){const e=new e0(this);this.addChildAt(e,this.children.indexOf(this.notefield)),this.notefield.destroy(),this.notefield=e}getSelectionBounds(){return this.selectionBounds}shouldDisplayBarlines(){return(this.chartManager.getMode()!=K.Play||!x.play.hideBarlines)&&De.barlines}}class Yd extends AudioBufferSourceNode{started=!1;start(e,t,i){this.started||super.start(e,t,i),this.started=!0}stop(e){this.started&&super.stop(e),this.started=!1}static create(e){const t=e;return t.started=!1,Object.setPrototypeOf(t,Yd.prototype),t}}class LD extends BiquadFilterNode{enabled=!1;static create(e){const t=e;return t.enabled=!1,t}}class el{_audioAnalyzer;_filteredAudioAnalyzer;_freqData;_filteredFreqData;_gainNode;type;_audioContext=new AudioContext;_source;_playbackTime=0;_startTimestamp=0;_rate=1;_isPlaying=!1;_buffer;_filteredBuffer;_loadedBuffer;_delay;_loadListeners=[];_updateListeners=[];_volume=1;_destroyed=!1;_renderTimeout;_filters=[this.createFilter({type:"highpass",frequency:20,Q:.71}),this.createFilter({type:"lowshelf",frequency:75,gain:0}),this.createFilter({type:"peaking",frequency:100,gain:0,Q:.6}),this.createFilter({type:"peaking",frequency:250,gain:0,Q:.3}),this.createFilter({type:"peaking",frequency:1040,gain:0,Q:.41}),this.createFilter({type:"peaking",frequency:2500,gain:0,Q:.2}),this.createFilter({type:"highshelf",frequency:7500,gain:0}),this.createFilter({type:"lowpass",frequency:2e4,Q:.71})];_filtersEnabled=!1;onStop;loaded;constructor(e,t){this.type=t??"",this._filters[0].gain.value=-25,this._audioAnalyzer=this._audioContext.createAnalyser(),this._audioAnalyzer.fftSize=4096,this._audioAnalyzer.maxDecibels=0,this._freqData=new Uint8Array(this._audioAnalyzer.frequencyBinCount),this._filteredAudioAnalyzer=this._audioContext.createAnalyser(),this._filteredAudioAnalyzer.fftSize=4096,this._filteredAudioAnalyzer.maxDecibels=0,this._filteredFreqData=new Uint8Array(this._filteredAudioAnalyzer.frequencyBinCount),this._gainNode=this._audioContext.createGain(),this._buffer=this._audioContext.createBuffer(2,1,44100),this._filteredBuffer=this._audioContext.createBuffer(2,1,44100),this._loadedBuffer=this._audioContext.createBuffer(2,1,44100),this.initSource(),this.loaded=new Promise(i=>{this.decodeData(e).then(s=>{if(s)return this._loadedBuffer=s,s}).then(async s=>(await this.renderBuffer(s),await this.renderFilteredBuffer(s),s)).catch(s=>{s.name=="EncodingError"?Ee.createFormatted("Failed to load audio: file format not supported","error"):Ee.createFormatted("Failed to load audio: "+s.message,"error")}).finally(()=>{this.initSource(),this.callLoadListeners(),this.callUpdateListeners(),i()})})}async renderBuffer(e){if(!e)return;const t=new OfflineAudioContext(e.numberOfChannels,e.length,e.sampleRate),i=t.createBufferSource();return i.buffer=e,i.connect(t.destination),i.start(),await t.startRendering().then(s=>{this._buffer=s}).catch(()=>{Ee.createFormatted("Failed to load audio: audio rendering failed","error")})}async renderFilteredBuffer(e){if(!e)return;const t=new OfflineAudioContext(e.numberOfChannels,e.length,e.sampleRate),i=t.createBufferSource();i.buffer=e;let s=i;for(const n of this._filters){if(!n.enabled)continue;const a=t.createBiquadFilter();a.type=n.type,a.Q.setValueAtTime(n.Q.value,0),a.frequency.setValueAtTime(n.frequency.value,0),a.gain.setValueAtTime(n.gain.value,0),s.connect(a),s=a}return s.connect(t.destination),i.start(),await t.startRendering().then(n=>{this._filteredBuffer=n}).catch(()=>{Ee.createFormatted("Failed to load audio: audio rendering failed","error")})}createFilter(e){const t=LD.create(this._audioContext.createBiquadFilter());return t.type=e.type,e.Q!==void 0&&(t.Q.value=e.Q),e.gain!==void 0&&(t.gain.value=e.gain),e.frequency!==void 0&&(t.frequency.value=e.frequency),t}getFilters(){return this._filters}getFilter(e){return this._filters[e]}updateFilter(e,t){this._filters[e]&&(t.Q!==void 0&&(this._filters[e].Q.value=t.Q),t.frequency!==void 0&&(this._filters[e].frequency.value=t.frequency),t.gain!==void 0&&(this._filters[e].gain.value=t.gain),clearTimeout(this._renderTimeout),this._renderTimeout=setTimeout(()=>this.renderFilteredBuffer(this._loadedBuffer).then(()=>this.callUpdateListeners()),500))}enableFilter(e){this._filters[e].enabled=!0,this.initSource(),clearTimeout(this._renderTimeout),this._renderTimeout=setTimeout(()=>this.renderFilteredBuffer(this._loadedBuffer).then(()=>this.callUpdateListeners()),500),this._filtersEnabled=!0}disableFilter(e){this._filters[e].enabled=!1,this.initSource(),clearTimeout(this._renderTimeout),this._renderTimeout=setTimeout(()=>this.renderFilteredBuffer(this._loadedBuffer).then(()=>this.callUpdateListeners()),500),this._filtersEnabled=this._filters.some(t=>t.enabled)}hasFilters(){return this._filtersEnabled}onLoad(e){this._loadListeners.push(e)}offLoad(e){this._loadListeners=this._loadListeners.filter(t=>t!=e)}onUpdate(e){this._updateListeners.push(e)}offUpdate(e){this._updateListeners=this._updateListeners.filter(t=>t!=e)}getSongLength(){return this._buffer.length/this._buffer.sampleRate}getFrequencyData(){return this._destroyed?new Uint8Array:(this._audioAnalyzer.getByteFrequencyData(this._freqData),this._freqData)}getFilteredFrequencyData(){return this._destroyed?new Uint8Array:(this._filteredAudioAnalyzer.getByteFrequencyData(this._filteredFreqData),this._filteredFreqData)}getSampleRate(){return this._buffer.sampleRate}getFFTSize(){return this._audioAnalyzer.fftSize}getRawData(){if(this._destroyed)return[];const e=[];for(let t=0;ti.enabled)?this._filters.filter(i=>i.enabled).map(i=>{const s=new Float32Array(e.length);return i.getFrequencyResponse(t,s,new Float32Array(e.length)),[...s]}).reduce((i,s)=>i.map((n,a)=>n*s[a])):new Array(e.length).fill(1)}callLoadListeners(){this._loadListeners.forEach(e=>e())}callUpdateListeners(){this._updateListeners.forEach(e=>e())}async decodeData(e){return new Promise((t,i)=>{if(!e){t();return}(async()=>{try{t(await this._audioContext.decodeAudioData(e))}catch(s){if(this.type==".ogg"){const n=(await Qe(()=>import("./OggDec-2941c3fd.js"),[])).default;try{t(await n.decodeOggData(e))}catch(a){i(a)}return}i(s)}})()})}initSource(){for(const t of this._filters)t.disconnect();this._audioAnalyzer.disconnect(),this._filteredAudioAnalyzer.disconnect(),this._gainNode.disconnect(),this._audioContext.destination.disconnect(),this._source?.stop(),this._source=Yd.create(this._audioContext.createBufferSource()),this._source.buffer=this._buffer,this._source.connect(this._audioAnalyzer);let e=this._audioAnalyzer;for(const t of this._filters)t.enabled&&(e.connect(t),e=t);e.connect(this._filteredAudioAnalyzer),x.audio.allowFilter?this._filteredAudioAnalyzer.connect(this._gainNode):this._audioAnalyzer.connect(this._gainNode),this._gainNode.connect(this._audioContext.destination),this._source.playbackRate.value=this._rate,this._isPlaying&&(this.pause(),this.play())}volume(e){this._destroyed||this._volume!=e&&(this._volume=e,this._gainNode.gain.setValueAtTime(e,this._audioContext.currentTime))}rate(e){this._destroyed||this._rate!=e&&(this._rate=e,this._source&&(this._isPlaying&&(this._playbackTime+=(this._audioContext.currentTime-this._startTimestamp)*this._source.playbackRate.value),this._startTimestamp=this._audioContext.currentTime,this._source.playbackRate.value=e))}play(){this._destroyed||this._source&&(this._isPlaying||(this.initSource(),this._playbackTime<=this._buffer.duration&&this._source.start(Math.max(0,this._audioContext.currentTime-this._playbackTime/x.audio.rate),Math.max(0,this._playbackTime)),this._startTimestamp=this._audioContext.currentTime,this._isPlaying=!0))}seek(e){if(e===void 0)return this._destroyed?this._playbackTime:this._source?this._isPlaying?(this._audioContext.currentTime-this._startTimestamp)*this._source.playbackRate.value+this._playbackTime:this._playbackTime:this._playbackTime;this._isPlaying?(this.stop(),this._playbackTime=e,this.play()):this._playbackTime=e}pause(){this._destroyed||this.stop(!0)}stop(e){this._destroyed||this._source&&this._isPlaying&&(this.onStop?.(),clearTimeout(this._delay),this._isPlaying=!1,this._playbackTime<=this._buffer.duration&&this._source.stop(),this._playbackTime=e?(this._audioContext.currentTime-this._startTimestamp)*this._source.playbackRate.value+this._playbackTime:0)}}class OD{judgementCounts=new Map;holdJudgementCounts=new Map;dancePoints=0;maxCumulativeDancePoints=0;maxDancePoints=0;chartManager;notedata;dataPoints=[];handlers=[];combo=0;missCombo=0;maxCombo=0;bestJudge;constructor(e){this.notedata=e.loadedChart.getNotedata(),this.chartManager=e,this.bestJudge=rt.getCollection(x.play.timingCollection).getStandardWindows()[0],this.calculateMaxDP()}onJudge(e){this.handlers.push(e)}applyOffset(e){this.dataPoints=this.dataPoints.map(t=>Li(t.judgement)||!cr(t.judgement)?t:{...t,error:t.error!==null?t.error+e:null})}addDataPoint(e,t,i){this.judgementCounts.has(t)||this.judgementCounts.set(t,0),this.judgementCounts.set(t,this.judgementCounts.get(t)+1),this.dancePoints+=t.dancePoints;const s=this.chartManager.loadedChart.timingData.getEventAtBeat("COMBOS",e[0].beat),n=s?.hitMult??1,a=s?.missMult??1;mh(t)||(this.maxCumulativeDancePoints+=rt.getCollection(x.play.timingCollection).getMaxDancePoints()),Li(t)?(this.chartManager.loadedChart.gameType.gameLogic.usesHoldTicks||(this.maxCumulativeDancePoints+=e.filter(Be).reduce((o,l)=>o+rt.getCollection(x.play.timingCollection).getMaxHoldDancePoints(l.type),0)),this.combo=0,this.missCombo+=a,this.bestJudge=void 0):cr(t)&&(rt.getCollection(x.play.timingCollection).shouldHideNote(t)?(this.combo+=e.length*n,this.combo>this.maxCombo&&(this.maxCombo=this.combo),this.missCombo=0,this.bestJudge&&t.getTimingWindowMS()>this.bestJudge.getTimingWindowMS()&&(this.bestJudge=t)):(this.bestJudge=void 0,this.combo=0)),this.handlers.forEach(o=>o(i,t)),this.dataPoints.push({second:e[0].second,error:i,judgement:t,notes:e})}addHoldDataPoint(e,t){this.judgementCounts.has(t)||this.judgementCounts.set(t,0),this.judgementCounts.set(t,this.judgementCounts.get(t)+1);const i=rt.getCollection(x.play.timingCollection).getHeldJudgement(e);this.holdJudgementCounts.has(i)||this.holdJudgementCounts.set(i,[0,0]);const s=this.holdJudgementCounts.get(i);Us(t)?s[0]++:s[1]++,this.holdJudgementCounts.set(i,s),this.dancePoints+=t.dancePoints,this.maxCumulativeDancePoints+=rt.getCollection(x.play.timingCollection).getMaxHoldDancePoints(e.type),this.handlers.forEach(n=>n(0,t)),Vn(t)&&(this.bestJudge=void 0)}getScore(){return this.maxDancePoints==0?0:this.dancePoints/this.maxDancePoints}getCumulativeScore(){return this.maxCumulativeDancePoints==0?0:this.dancePoints/this.maxCumulativeDancePoints}getDataPoints(){return this.dataPoints}getMedian(){return fh(this.dataPoints.filter(e=>!Li(e.judgement)&&cr(e.judgement)&&e.error!=null).map(e=>e.error))}getMaxCombo(){return this.maxCombo}calculateMaxDP(){this.maxDancePoints=this.chartManager.loadedChart.gameType.gameLogic.calculateMaxDP(this.notedata,this.chartManager.loadedChart.timingData)}getCount(e){return this.judgementCounts.get(e)??0}getCombo(){return this.combo}getMissCombo(){return this.missCombo}getBestJudge(){return this.bestJudge}}const ci=[1,2,3,4,6,8,12,16,24,48,-1],i0=.2;var K=(r=>(r.View="View Mode",r.Edit="Edit Mode",r.Play="Play Mode",r.Record="Record Mode",r))(K||{}),Ie=(r=>(r[r.Off=0]="Off",r[r.Edit=1]="Edit",r[r.Add=2]="Add",r))(Ie||{});class YD{app;chartAudio=new el;chartView;widgetManager;assistTick=new Pc({src:R2,volume:.5});me_high=new Pc({src:mb,volume:.5});me_low=new Pc({src:gb,volume:.5});mine=new Fl.Howl({src:F2,volume:.5});loadedSM;smPath="";loadedChart;selection={notes:[],inProgressNotes:[]};eventSelection={timingEvents:[],inProgressTimingEvents:[]};editTimingMode=0;holdEditing=[];editNoteTypeIndex=0;partialScroll=0;noteFlashIndex=0;assistTickIndex=0;lastMetronomeDivision=-1;lastMetronomeMeasure=-1;lastSong=null;mode="Edit Mode";lastMode="Edit Mode";_beat=0;noChartTextA;noChartTextB;loadingText;shiftPressed=0;virtualClipboard="";lastAutoSave=0;startRegion;endRegion;gameStats;constructor(e){this.app=e,document.addEventListener("keydown",i=>{i.key=="Shift"&&this.shiftPressed++}),document.addEventListener("keyup",i=>{i.key=="Shift"&&(this.shiftPressed=Math.max(this.shiftPressed-1,0))}),document.addEventListener("cut",i=>{if(i.target.classList.contains("inlineEdit")||i.target instanceof HTMLTextAreaElement||i.target instanceof HTMLInputElement||this.mode!="Edit Mode")return;const s=this.copy();s&&i.clipboardData?.setData("text/plain",s),this.eventSelection.timingEvents.length>0?this.deleteEventSelection():this.deleteSelection(),i.preventDefault()},!0),document.addEventListener("copy",i=>{if(i.target.classList.contains("inlineEdit")||i.target instanceof HTMLTextAreaElement||i.target instanceof HTMLInputElement||this.mode!="Edit Mode")return;const s=this.copy();s&&i.clipboardData?.setData("text/plain",s),i.preventDefault(),i.stopImmediatePropagation()},!0),document.addEventListener("paste",i=>{if(i.target.classList.contains("inlineEdit")||i.target instanceof HTMLTextAreaElement||i.target instanceof HTMLInputElement||this.mode!="Edit Mode")return;const s=i.clipboardData?.getData("text/plain");s&&this.paste(s,this.shiftPressed>0),i.preventDefault(),i.stopImmediatePropagation()},!0),e.view.addEventListener?.("wheel",i=>{if(!(this.loadedSM==null||this.loadedChart==null||this.chartView==null))if(i.preventDefault(),Ii&&i.metaKey||!Ii&&i.ctrlKey){const s=i.deltaY/5*x.chart.scroll.scrollSensitivity*(x.chart.scroll.invertZoomScroll?-1:1);x.chart.speed=Oe(x.chart.speed*Math.pow(1.01,s),10,35e3)}else{if(this.mode=="Play Mode"||this.mode=="Record Mode")return;let s=this.beat;const n=x.chart.snap,a=x.chart.speed*(x.chart.reverse&&x.chart.scroll.invertReverseScroll?-1:1),o=i.deltaY/a*x.chart.scroll.scrollSensitivity;if(n==0?(this.partialScroll=0,s=this.beat+o):x.chart.scroll.scrollSnapEveryScroll?i.deltaY<0!=x.chart.scroll.invertReverseScroll?s=Math.round((this.beat-n)/n)*n:s=Math.round((this.beat+n)/n)*n:(this.partialScroll+=o,Math.abs(this.partialScroll)>n&&(this.partialScroll<0?s=Math.round((this.beat+Math.ceil(this.partialScroll/n)*n)/n)*n:s=Math.round((this.beat+Math.floor(this.partialScroll/n)*n)/n)*n,this.partialScroll%=n)),s=Math.max(0,s),s!=this.beat&&(this.beat=s),!this.holdEditing.every(l=>l==null))for(let l=0;l{this.noChartTextB.tint=8952234}),this.noChartTextB.on("mouseleave",()=>{this.noChartTextB.tint=5596791}),this.noChartTextB.on("mousedown",()=>{this.app.windowManager.openWindow(new ny(e,We.getGameType("dance-single")))}),this.noChartTextA.visible=!1,this.noChartTextB.visible=!1,this.app.stage.addChild(this.noChartTextB),this.loadingText=new Fe("Loading simfile...",{fontName:"Main",fontSize:20}),this.loadingText.anchor.set(.5),this.loadingText.tint=5592405,this.app.stage.addChild(this.loadingText),this.loadingText.visible=!1;const t=()=>{this.noChartTextA.x=this.app.renderer.screen.width/2,this.noChartTextA.y=this.app.renderer.screen.height/2-20,this.noChartTextB.x=this.app.renderer.screen.width/2,this.noChartTextB.y=this.app.renderer.screen.height/2+10,this.loadingText.x=this.app.renderer.screen.width/2,this.loadingText.y=this.app.renderer.screen.height/2};t(),this.app.ticker.add(()=>{const i=performance.now();this.widgetManager.update(),this.loadedSM&&this.loadedChart&&this.chartView&&this.chartView.update(),qa.instance?.addDrawUpdateTimeValue(performance.now()-i)}),setInterval(()=>{if(!this.loadedSM||!this.loadedChart||!this.chartView)return;const i=performance.now(),s=this.chartAudio.seek();if(this.chartAudio.isPlaying()&&!this.holdEditing.every(a=>!a))for(let a=0;a.3&&this.editHoldBeat(a,c,!1)}const n=this.loadedChart.getNotedata();if(this.chartAudio.isPlaying()){for(this._beat=this.loadedChart?.getBeatFromSeconds(this.time)??0;this.noteFlashIndexn[this.noteFlashIndex].second;)this.mode!="Record Mode"&&this.loadedChart.gameType.gameLogic.shouldAssistTick(n[this.noteFlashIndex])&&this.mode!="Play Mode"&&this.chartView.doJudgement(n[this.noteFlashIndex],0,Jb),this.noteFlashIndex++;const a=new Set;for(;this.assistTickIndexn[this.assistTickIndex].second+x.play.effectOffset-i0;){if(a.has(n[this.assistTickIndex].second)||n[this.assistTickIndex].second+x.play.effectOffset-s<0){this.assistTickIndex++;continue}this.mode!="Record Mode"&&this.loadedChart.gameType.gameLogic.shouldAssistTick(n[this.assistTickIndex])&&(x.audio.assistTick&&De.assist&&this.assistTick.play((n[this.assistTickIndex].second+x.play.effectOffset-s)/x.audio.rate),a.add(n[this.assistTickIndex].second)),this.assistTickIndex++}}if(this.chartAudio.isPlaying()&&x.audio.metronome&&De.assist){const a=this.loadedChart.timingData,o=this.loadedChart.getBeatFromSeconds(this.time+x.play.effectOffset+i0),l=new Set,c=a.getBeatFromMeasure(this.lastMetronomeMeasure),u=a.getDivisionLength(c),h=c+u*this.lastMetronomeDivision,d=[...a.getMeasureBeats(h,o)].slice(1);for(const[f,p]of d){if(this.beat>f)continue;const m=a.getSecondsFromBeat(f);if(l.has(m))continue;l.add(m);const g=(m+x.play.effectOffset-this.time)/x.audio.rate;p?this.me_high.play(g):this.me_low.play(g)}if(d.length>0){const f=d.at(-1)[0];this.lastMetronomeMeasure=Math.floor(a.getMeasure(f)),this.lastMetronomeDivision=Math.round(a.getDivisionOfMeasure(f))}}this.mode=="Play Mode"&&this.loadedChart.gameType.gameLogic.update(this),this.lastAutoSave+x.general.autosaveInterval*1e3{this.chartView&&(this.chartView.x=this.app.renderer.screen.width/2,this.chartView.y=this.app.renderer.screen.height/2),t()}),H.on("chartModified",()=>{this.loadedChart&&(this.loadedChart.recalculateStats(),this.setNoteIndex(),H.emit("chartModifiedAfter"))}),H.on("userOptionUpdated",i=>{i!="audio.rate"&&i!="play.effectOffset"&&i!="audio.assistTick"&&i!="audio.metronome"||(this.assistTick.stop(),this.me_low.stop(),this.me_high.stop(),this.setNoteIndex())}),window.addEventListener("keyup",i=>{if(this.mode=="Edit Mode"&&i.code.startsWith("Digit")){let s=parseInt(i.code.slice(5))-1;s==-1&&(s=9),this.endEditing(s)}},!0),window.addEventListener("keydown",i=>{const s=Re.getKeyNameFromCode(i.code);if(this.mode=="Edit Mode"&&!i.target.classList.contains("inlineEdit")&&!(i.target instanceof HTMLTextAreaElement)&&!(i.target instanceof HTMLInputElement)&&!Wn.active){if(i.code.startsWith("Digit")&&!i.repeat&&!i.ctrlKey&&!i.metaKey&&!i.altKey&&!i.ctrlKey){let n=parseInt(i.code.slice(5))-1;n==-1&&(n=9),n<(this.loadedChart?.gameType.numCols??4)&&(this.setNote(n,"key"),i.preventDefault(),i.stopImmediatePropagation())}if(!this.holdEditing.every(n=>n==null)){const n=["cursorUp","cursorDown","previousNote","nextNote","previousMeasure","nextMeasure","jumpChartStart","jumpChartEnd","jumpSongStart","jumpSongEnd"];for(const a of n)if(Re.getCombosForKeybind(a).map(o=>o.key).includes(s)){i.preventDefault(),i.stopImmediatePropagation(),ct[a].callback(this.app);for(let o=0;oo.key).includes(s)){this.holdEditing=[];return}}}},!0),window.addEventListener("keydown",i=>{this.mode!="Play Mode"&&this.mode!="Record Mode"||i.key=="Escape"&&(this.setMode(this.lastMode),this.chartAudio.pause())},!0)}get beat(){return this.loadedChart?this.chartAudio.isPlaying()?this.loadedChart.getBeatFromSeconds(this.time):this._beat:0}set beat(e){this.loadedChart&&(this.chartAudio.seek(this.loadedChart.getSecondsFromBeat(e)),this._beat=e,this.setNoteIndex(),this.lastMetronomeMeasure=Math.floor(this.loadedChart.timingData.getMeasure(this.beat)),this.lastMetronomeDivision=Math.floor(this.loadedChart.timingData.getDivisionOfMeasure(this.beat)))}get time(){return this.chartAudio.seek()}set time(e){this.loadedChart&&(this.chartAudio.seek(e),this.setNoteIndex())}async loadSM(e){if(Ak.close(),Tk.close(),Ck.close(),Ye.instance.isDirty()){const a=new Wa(this.app,"Save","Do you wish to save the current file?",[{label:"Cancel",type:"default"},{label:"No",type:"default"},{label:"Yes",type:"confirm"}]);this.app.windowManager.openWindow(a);const o=await a.resolved;if(o=="Cancel")return;o=="Yes"&&this.save(),o=="No"&&await this.removeAutosaves()}if(!e){this.smPath="",this.loadedSM=void 0,this.chartAudio.stop(),this.noChartTextA.visible=!1,this.noChartTextB.visible=!1,this.chartView?.destroy({children:!0});return}this.chartAudio.stop(),this.chartAudio.seek(0),this.lastSong=null,this.smPath=e,this.loadingText.visible=!0;let t=this.smPath;const i=this.getSMPath(".smebak");if(await Le.hasFile(i)){const a=new Wa(this.app,"Autosave","An autosave was found. Do you wish to load the autosave?",[{label:"No",type:"default"},{label:"Yes",type:"confirm"}]);this.app.windowManager.openWindow(a),await a.resolved=="Yes"&&(t=i)}const s=await Le.getFileHandle(t);if(!s){Ee.createFormatted("Couldn't load the file at "+t,"error"),this.app.windowManager.openWindow(new gy(this.app)),this.loadingText.visible=!1;return}const n=await s.getFile();this.loadedSM=new dy(n),await this.loadedSM.loaded,this.loadingText.visible=!1,this.noChartTextA.visible=!0,this.noChartTextB.visible=!0,this.editTimingMode=0,H.emit("smLoaded"),await this.loadChart(),H.emit("smLoadedAfter"),this.beat=0,cy.addSM(this.smPath,this.loadedSM)}async loadChart(e){if(this.loadedSM==null)return;if(e==null){if(this.loadedChart){const s=this.loadedSM.charts[this.loadedChart.gameType.id];s&&s.length>0&&(e=s.at(-1))}if(!e)for(const s of We.getPriority()){const n=this.loadedSM.charts[s.id];if(n&&n.length>0){e=n.at(-1);break}}if(!e){this.chartView?.destroy({children:!0}),this.chartView?.removeChildren(),this.beat=0,this.loadedChart=void 0,this.chartView=void 0,this.noChartTextA.visible=!0,this.noChartTextB.visible=!0,H.emit("chartLoaded"),H.emit("chartModified");return}}if(e==this.loadedChart)return;this.chartView?.destroy({children:!0}),this.chartView?.removeChildren(),this.clearSelections(),this.loadedChart=e,this.beat=this.loadedChart.getBeatFromSeconds(this.time),Ye.instance.reset(),x.play.timingCollection=x.play.defaultTimingCollection[e.gameType.id]??"ITG";const t=We.getGameType(x.chart.noteskin.type),i={type:e.gameType.id,name:x.chart.lastNoteskins[e.gameType.id]??"default"};if(t){const s=ut.getNoteskinData(t,x.chart.noteskin.name);s?.gameTypes.includes(e.gameType.id)&&(i.name=s.id)}if(x.chart.noteskin=i,x.chart.lastNoteskins[e.gameType.id]=i.name,this.setNoteIndex(),this.chartView=new FD(this),this.chartView.x=this.app.renderer.screen.width/2,this.chartView.y=this.app.renderer.screen.height/2,(this.mode=="Play Mode"||this.mode=="Record Mode")&&this.setMode(this.lastMode),De.viewMode&&this.setMode("View Mode"),this.noChartTextA.visible=!1,this.noChartTextB.visible=!1,this.loadedChart.getMusicPath()!=this.lastSong){this.lastSong=this.loadedChart.getMusicPath();const s=this.chartAudio.isPlaying();await this.loadAudio(),H.emit("audioLoaded"),s&&this.chartAudio.play()}Ee.create("Loaded chart "+e.difficulty+" "+e.meter+" "+e.gameType.id),H.emit("chartLoaded"),H.emit("audioLoaded"),H.emit("chartModified"),this.loadedChart.gameType.id=="dance-single"?window.Parity=new Qk(this.app,this.loadedChart.gameType.id):window.Parity=void 0,De.autoPlay&&this.playPause()}async loadAudio(){if(!this.loadedSM||!this.loadedChart)return;this.chartAudio.stop(),this.chartAudio?.destroy();const e=this.loadedChart.getMusicPath();if(Ee.create("Loading audio..."),e==""){Ee.createFormatted("Failed to load audio: no audio file","error");const n=Math.max(0,this.beat);this.chartAudio=new el(void 0),this.beat=n;return}const t=await this.getAudioHandle(e);if(t==null){Ee.createFormatted("Failed to load audio: couldn't find audio file "+e,"error");const n=Math.max(0,this.beat);this.chartAudio=new el(void 0),this.beat=n;return}const i=await t.getFile(),s=Math.max(0,this.beat);this.chartAudio=new el(await i.arrayBuffer(),sr(i.name)),this.chartAudio.onLoad(()=>{Ee.create("Loaded audio")}),this.beat=s,this.chartAudio.onStop=()=>{this.assistTick.stop(),this.me_high.stop(),this.me_low.stop()},this.setNoteIndex()}async getAudioHandle(e){let t=await Le.getFileHandleRelativeTo(this.smPath,e);if(t)return t;try{const i=await Le.getDirectoryFiles(Ht(this.smPath));if(t=i.filter(s=>s.name.toLowerCase()==er(e).toLowerCase())[0],t)return Ee.createFormatted("Failed to locate audio file "+e+", using file "+t.name+" instead","warn"),t;t=i.filter(s=>rh.includes(sr(s.name)))[0],t&&Ee.createFormatted("Failed to locate audio file "+e+", using file "+t.name+" instead","warn")}catch{return}return t}getAudio(){return this.chartAudio}updateSoundProperties(){this.setEffectVolume(x.audio.soundEffectVolume*x.audio.masterVolume),this.setVolume(x.audio.songVolume*x.audio.masterVolume),this.setRate(x.audio.rate)}setRate(e){this.chartAudio.rate(e)}setVolume(e){this.chartAudio.volume(e)}setEffectVolume(e){this.assistTick.volume(e),this.me_high.volume(e),this.me_low.volume(e),this.mine.volume()!=e&&this.mine.volume(e)}setNoteIndex(){if(this.loadedSM==null||this.loadedChart==null||this.chartView==null||this.loadedChart.getNotedata().length==0){this.noteFlashIndex=0,this.assistTickIndex=0;return}this.assistTick.stop(),this.noteFlashIndex=Nt(this.loadedChart.getNotedata(),this.time,e=>e.second)+1,this.noteFlashIndex>=1&&this.time<=this.loadedChart.getNotedata()[this.noteFlashIndex-1].second&&this.noteFlashIndex--,this.assistTickIndex=this.noteFlashIndex}playPause(){this.setNoteIndex(),this.chartAudio.isPlaying()?(this.chartAudio.pause(),this._beat=this.loadedChart?.getBeatFromSeconds(this.time)??0):this.chartAudio.play()}getClosestTick(e,t){if(!this.loadedChart)return 0;const i=Math.max(.001,4/t),s=this.loadedChart.timingData.getBeatOfMeasure(e),n=e-s,a=Math.round(s/i)*i;return Math.max(0,n+a)}snapToNearestTick(e){this.beat=Math.max(0,this.getClosestTick(e,4/x.chart.snap))}snapToPreviousTick(){if(!this.loadedChart)return;const e=Math.max(.001,x.chart.snap),t=Math.floor(this.loadedChart.timingData.getMeasure(this.beat)),i=this.loadedChart.timingData.getBeatFromMeasure(t),s=Math.floor((this.beat-i)/e)*e,n=Math.abs(s-(this.beat-i))<5e-4?s-e:s,a=n+i;if(n<0){const o=this.loadedChart.timingData.getBeatFromMeasure(t-1),l=Math.round((a-o)/e)*e;this.beat=Math.max(0,o+l);return}this.beat=Math.max(0,a)}snapToNextTick(){if(!this.loadedChart)return;const e=Math.max(.001,x.chart.snap),t=Math.floor(this.loadedChart.timingData.getMeasure(this.beat)),i=this.loadedChart.timingData.getBeatFromMeasure(t),a=Math.floor((this.beat-i+5e-4)/e)*e+e+i,o=this.loadedChart.timingData.getBeatFromMeasure(t+1);if(a>o){this.beat=o;return}this.beat=a}previousSnap(){let e=this.getSnapIndex()-1;e=(e+ci.length)%ci.length,x.chart.snap=ci[e]==-1?0:1/ci[e],H.emit("snapChanged")}nextSnap(){let e=this.getSnapIndex();(e==ci.length-1||Math.abs(1/x.chart.snap-ci[e])<=5e-4)&&e++,e=(e+ci.length)%ci.length,x.chart.snap=ci[e]==-1?0:1/ci[e],H.emit("snapChanged")}getSnapIndex(){return x.chart.snap==0?ci.length-1:ci.findIndex(e=>1/e<=x.chart.snap)}removeDuplicateBeats(e){if(e.length===0)return e;const t=[e[0]];for(let i=1;ii.beat+i.hold),t=this.loadedChart.getNotedata().map(i=>i.beat).concat(e).sort((i,s)=>i-s);return this.removeDuplicateBeats(t)}previousNote(){const e=this.getRows();if(e.length==0)return;let t=Nt(e,this.beat);this.beat==e[t]&&t--,this.beat=e[Math.max(0,t)]}nextNote(){const e=this.getRows();if(e.length==0)return;let t=Nt(e,this.beat);this.beat>=e[t]&&t++,this.beat=e[Math.min(e.length-1,t)]}firstNote(){if(this.loadedSM==null||this.loadedChart==null||this.chartView==null)return;const e=this.loadedChart.getNotedata();e.length!=0&&(this.beat=e[0].beat)}lastNote(){if(this.loadedSM==null||this.loadedChart==null||this.chartView==null)return;const e=this.loadedChart.getNotedata();if(e.length==0)return;const t=e[e.length-1];this.beat=lr(t)}truncateHold(e,t){const i=Oe(Math.round((t-Math.max(.020833333333333332,x.chart.snap))*48)/48,e.beat,e.beat+e.hold-.020833333333333332);return i==e.beat?{beat:e.beat,col:e.col,type:"Tap"}:{beat:e.beat,col:e.col,type:e.type,hold:i-e.beat}}setNote(e,t,i=this.beat){if(this.loadedSM==null||this.loadedChart==null||this.chartView==null)return;i=Math.max(0,Math.round(i*48)/48);const s=this.loadedChart.getNotedata().filter(o=>o.col!=e?!1:Math.abs(o.beat-i)<.003?!0:Be(o)&&o.beat==i),n=this.loadedChart.getNotedata().filter(o=>Be(o)&&o.col==e&&i>o.beat&&i<=Math.round((o.beat+o.hold)*48)/48).map(o=>({oldNote:o,newNote:this.truncateHold(o,i)})),a={startBeat:i,endBeat:i,roll:!1,originalNote:void 0,type:t,removedNotes:s,truncatedHolds:n,direction:null};this.holdEditing[e]=a,s.length==0&&(a.originalNote={beat:i,col:e,type:this.getEditingNoteType()}),this.setNoteIndex(),this.app.actionHistory.run({action:()=>{a.removedNotes.forEach(o=>{this.loadedChart.removeNote(o),this.removeNoteFromSelection(o)}),a.truncatedHolds.forEach(o=>this.loadedChart.modifyNote(o.oldNote,o.newNote)),a.originalNote&&this.loadedChart.addNote(a.originalNote)},undo:()=>{a.originalNote&&this.loadedChart.removeNote(a.originalNote),a.truncatedHolds.forEach(o=>this.loadedChart.modifyNote(o.newNote,o.oldNote)),a.removedNotes.forEach(o=>this.loadedChart.addNote(o))}})}editHoldBeat(e,t,i){if(this.loadedSM==null||this.loadedChart==null||this.chartView==null)return;const s=this.holdEditing[e];if(s==null||t==s.startBeat&&t==s.endBeat)return;if(s.direction===null&&(ta.beat==s.originalNote.beat&&a.col==s.originalNote.col||a.col!=e?!1:a.beat>=s.startBeat&&a.beat<=s.endBeat?!0:Be(a)&&a.beat+a.hold>=s.startBeat&&a.beat+a.hold<=s.endBeat);s.removedNotes=s.removedNotes.concat(n),n.forEach(a=>this.loadedChart.removeNote(a)),this.setNoteIndex()}endEditing(e){this.holdEditing[e]=void 0}previousNoteType(){const e=this.loadedChart?.gameType.editNoteTypes.length??0;this.editNoteTypeIndex=(this.editNoteTypeIndex-1+e)%e}nextNoteType(){const e=this.loadedChart?.gameType.editNoteTypes.length??0;this.editNoteTypeIndex=(this.editNoteTypeIndex+1+e)%e}getEditingNoteType(){return this.loadedChart?.gameType.editNoteTypes[this.editNoteTypeIndex]??null}setEditingNoteType(e){if(!this.loadedChart)return;const i=(this.loadedChart?.gameType.editNoteTypes).indexOf(e);i!=-1&&(this.editNoteTypeIndex=i)}getMode(){return this.mode}setMode(e){if(!this.loadedChart||!this.chartView)return;if(this.mode==e){(e=="Play Mode"||e=="Record Mode")&&(this.setMode(this.lastMode),this.setNoteIndex(),this.chartAudio.pause());return}(this.mode=="View Mode"||this.mode=="Edit Mode")&&(this.lastMode=this.mode),this.mode=e;const t=this.loadedChart.getNotedata();if(this.mode=="Play Mode"){t.forEach(i=>{i.gameplay={hideNote:!1,hasHit:!1}});for(const i of t)if(i.secondi.gameplay=void 0))}judgeCol(e){if(!(!this.loadedChart||!this.chartView)){if(this.mode=="Play Mode")this.loadedChart.gameType.gameLogic.keyDown(this,e);else if(this.mode=="Record Mode"){const t=this.loadedChart.getBeatFromSeconds(this.time+x.play.offset),i=x.chart.snap==0?1/48:x.chart.snap,s=Math.round(t/i)*i;this.setNote(e,"key",s)}}}judgeColUp(e){!this.loadedChart||!this.chartView||(this.mode=="Play Mode"?this.loadedChart.gameType.gameLogic.keyUp(this,e):this.mode=="Record Mode"&&this.endEditing(e))}async save(){if(!this.loadedSM||this.smPath.startsWith("https://")||this.smPath.startsWith("http://"))return;const e=this.getSMPath(".sm"),t=this.getSMPath(".ssc");let i=null;!this.loadedSM.usesChartTiming()&&await Le.getFileHandle(this.getSMPath(".smebak"))&&await Le.writeFile(e,this.loadedSM.serialize("sm")).catch(s=>{const n=s.message;n.includes(Ma.GONE[0])||(i=n)}),(this.loadedSM.requiresSSC()||await Le.getFileHandle(t))&&await Le.writeFile(t,this.loadedSM.serialize("ssc")).catch(s=>{const n=s.message;n.includes(Ma.GONE[0])||(i=n)}),i==null?(this.loadedSM.usesChartTiming()?Ee.create("Saved. No SM file since split timing was used."):Ee.create("Saved"),await this.removeAutosaves()):Ee.createFormatted("Failed to save file: "+i,"error"),Ye.instance.setLimit()}getSMPath(e){if(window.nw){const t=window.nw.require("path"),i=t.parse(this.smPath);return t.resolve(i.dir,i.name+e)}else{const t=Ht(this.smPath),i=er(this.smPath),s=i.includes(".")?i.split(".").slice(0,-1).join("."):i;return t+"/"+s+e}}async removeAutosaves(){await Le.removeFile(this.getSMPath(".smebak")).catch(()=>{})}async autosave(){if(!this.loadedSM||this.smPath.startsWith("https://")||this.smPath.startsWith("http://"))return;let e=null;await Le.writeFile(this.getSMPath(".smebak"),this.loadedSM.serialize("ssc")).catch(t=>{const i=t.message;i.includes(Ma.GONE[0])||(e=i)}),e==null?Ee.create("Autosaved"):Ee.createFormatted("Failed to autosave file: "+e,"error")}hasSelection(){return this.hasNoteSelection()||this.hasEventSelection()}hasNoteSelection(){return this.selection.notes.length>0||this.startRegion!==void 0&&this.endRegion!==void 0}hasEventSelection(){return this.eventSelection.timingEvents.length>0}hasRange(){return this.selection.notes.length>1||this.eventSelection.timingEvents.length>1||this.startRegion!==void 0&&this.endRegion!==void 0}clearSelections(){this.selection={notes:[],inProgressNotes:[]},this.eventSelection={timingEvents:[],inProgressTimingEvents:[]}}startDragSelection(){this.selection.inProgressNotes=[]}endDragSelection(){let e=0,t=0;const i=[],s=this.selection.inProgressNotes,n=this.selection.notes,a=(o,l)=>o.beat==l.beat?o.col-l.col:o.beat-l.beat;if(s.length==0||n.length==0){this.selection.notes=s.concat(n),this.selection.inProgressNotes=[];return}for(;;)if(a(s[e],n[t])<0){if(i.push(s[e]),e++,e>=s.length){this.selection.notes=i.concat(n.slice(t));break}}else if(i.push(n[t]),t++,t>=n.length){this.selection.notes=i.concat(s.slice(e));break}this.selection.inProgressNotes=[]}startDragEventSelection(){this.eventSelection.inProgressTimingEvents=[]}endDragEventSelection(){let e=0,t=0;const i=[],s=this.eventSelection.inProgressTimingEvents,n=this.eventSelection.timingEvents,a=(o,l)=>o.beat-l.beat;if(s.length==0||n.length==0){this.eventSelection.timingEvents=s.concat(n),this.eventSelection.inProgressTimingEvents=[];return}for(;;)if(a(s[e],n[t])<0){if(i.push(s[e]),e++,e>=s.length){this.eventSelection.timingEvents=i.concat(n.slice(t));break}}else if(i.push(n[t]),t++,t>=n.length){this.eventSelection.timingEvents=i.concat(s.slice(e));break}this.eventSelection.inProgressTimingEvents=[]}addNoteToDragSelection(e){this.addNoteSelection(this.selection.inProgressNotes,e)}removeNoteFromDragSelection(e){this.removeNoteSelection(this.selection.inProgressNotes,e)}addEventToDragSelection(e){this.addEventSelection(this.eventSelection.inProgressTimingEvents,e)}removeEventFromDragSelection(e){this.removeEventSelection(this.eventSelection.inProgressTimingEvents,e)}addNoteToSelection(e){this.addNoteSelection(this.selection.notes,e)}removeNoteFromSelection(e){this.removeNoteSelection(this.selection.notes,e)}setNoteSelection(e){this.selection.inProgressNotes=[],this.selection.notes=[...e].sort((t,i)=>t.beat==i.beat?t.col-i.col:t.beat-i.beat)}addEventToSelection(e){this.addEventSelection(this.eventSelection.timingEvents,e)}removeEventFromSelection(e){this.removeEventSelection(this.eventSelection.timingEvents,e)}setEventSelection(e){this.eventSelection.inProgressTimingEvents=[],this.eventSelection.timingEvents=e.sort((t,i)=>t.beat-i.beat)}isNoteInSelection(e){return this.getNoteSelectionIndex(this.selection.notes,e)!=-1||this.getNoteSelectionIndex(this.selection.inProgressNotes,e)!=-1}isEventInSelection(e){return this.getEventSelectionIndex(this.eventSelection.timingEvents,e)!=-1||this.getEventSelectionIndex(this.eventSelection.inProgressTimingEvents,e)!=-1}addNoteSelection(e,t){let i=Uo(e,t.beat,s=>s.beat);for(;e[i]&&(e[i].beats.beat);for(;e[i]&&e[i].beat==t.beat;){if(sm(e[i],t))return i;i++}return-1}addEventSelection(e,t){let i=Uo(e,t.beat,s=>s.beat);for(;e[i]&&e[i].beat<=t.beat;)i++;e.splice(i,0,t)}removeEventSelection(e,t){const i=this.getEventSelectionIndex(e,t);i!=-1&&e.splice(i,1)}getEventSelectionIndex(e,t){let i=Uo(e,t.beat,s=>s.beat);for(;e[i]&&e[i].beat==t.beat;){if(sm(e[i],t))return i;i++}return-1}selectRegion(){if(this.loadedChart){if(this.endRegion!==void 0&&(this.startRegion=void 0,this.endRegion=void 0),this.startRegion===void 0){this.clearSelections(),this.startRegion=this.beat;return}this.endRegion=this.beat,this.endRegione.beat>=this.startRegion&&e.beat<=this.endRegion)):this.setEventSelection(Ot.flatMap(e=>this.loadedChart.timingData.getColumn(e).events).filter(e=>e.beat>=this.startRegion&&e.beat<=this.endRegion))}}modifySelection(e,t=!1){if(!this.loadedChart)return;const i=this.selection.notes,s=structuredClone(this.selection.notes).map(e).sort((l,c)=>l.beat==c.beat?l.col-c.col:l.beat-c.beat);if(s.length==0)return;const n=[];for(const l of s){const c=n.at(-1);c!==void 0&&c.beat==l.beat&&c.col==l.col||n.push(l)}if(n.length==0)return;const{removedNotes:a,truncatedHolds:o}=this.checkConflicts(n,i);if(t){const l=n.map(f=>lr(f));let c=0;for(const f of l)f>c&&(c=f);const u=new Array(this.loadedChart.gameType.numCols).fill(0).map((f,p)=>({type:"Hold",hold:c-n[0].beat,col:p,beat:n[0].beat})),{removedNotes:h,truncatedHolds:d}=this.checkConflicts(u,i);h.forEach(f=>{a.includes(f)||a.push(f)}),d.forEach(f=>{const p=o.find(m=>m.oldNote==f.oldNote);if(p){const m=Be(p.newNote)?p.newNote.hold:0,g=Be(p.newNote)?p.newNote.hold:0,b=Math.min(m,g);b==0?p.newNote={beat:p.newNote.beat,col:p.newNote.col,type:"Tap"}:p.newNote={beat:p.newNote.beat,col:p.newNote.col,type:p.newNote.type,hold:b}}}),a.sort((f,p)=>f.beat==p.beat?f.col-p.col:f.beat-p.beat),o.sort((f,p)=>f.newNote.beat==p.newNote.beat?f.newNote.col-p.newNote.col:f.newNote.beat-p.newNote.beat)}this.app.actionHistory.run({action:()=>{this.loadedChart.removeNotes(i.concat(a),!1),o.forEach(l=>this.loadedChart.modifyNote(l.oldNote,l.newNote,!1)),this.clearSelections(),this.setNoteSelection(this.loadedChart.addNotes(n))},undo:()=>{this.loadedChart.removeNotes(n,!1),o.forEach(l=>this.loadedChart.modifyNote(l.newNote,l.oldNote,!1)),this.loadedChart.addNotes(a,!1),this.clearSelections(),this.setNoteSelection(this.loadedChart.addNotes(i))}})}checkConflicts(e,t=[]){if(e.length==0)return{removedNotes:[],truncatedHolds:[]};const i=this.loadedChart.getNotedata(),s=this.loadedChart.gameType.numCols,n=new Array(s).fill(0).map(u=>[]);for(const u of i)n[u.col].push(u);const a=new Array(s).fill(0).map(u=>[]);for(const u of e)u.col>s||a[u.col].push(u);const o=[],l=[],c=[];for(let u=0;ua[u][0].beat<=(Be(d)?d.beat+d.hold:d.beat));for(const d of a[u])for(;n[u][h];){const f=n[u][h],p=Be(d)?d.beat+d.hold:d.beat;if(!t.includes(f)&&!c.includes(f)&&(d.beat<=f.beat&&p>=f.beat?(c.push(f),o.push(f)):Be(f)&&f.beat+f.hold>=d.beat&&f.beatp)break;h++}}return o.sort((u,h)=>u.beat==h.beat?u.col-h.col:u.beat-h.beat),l.sort((u,h)=>u.newNote.beat==h.newNote.beat?u.newNote.col-h.newNote.col:u.newNote.beat-h.newNote.beat),{removedNotes:o,truncatedHolds:l}}modifyEventSelection(e){if(!this.loadedChart||!this.loadedSM)return;const t=this.eventSelection.timingEvents.map(i=>[i,e(structuredClone(i))]);this.loadedChart.timingData.modifyMulti(t)}deleteSelection(){if(this.selection.notes.length==0)return;const e=this.selection.notes;this.app.actionHistory.run({action:()=>{this.loadedChart.removeNotes(e),this.clearSelections()},undo:()=>{this.selection.notes=this.loadedChart.addNotes(e)}})}deleteEventSelection(){this.eventSelection.timingEvents.length!=0&&(!this.loadedChart||!this.loadedSM||this.loadedChart.timingData.deleteMulti(this.eventSelection.timingEvents))}paste(e,t=!1){if(this.loadedChart&&(e.startsWith("ArrowVortex:notes:")&&(this.pasteNotes(e,t)||this.pasteNotes(this.virtualClipboard,t)),e.startsWith("ArrowVortex:tempo:")||e.startsWith("SMEditor:tempo:"))){this.pasteTempo(e)||this.pasteTempo(this.virtualClipboard);return}}pasteNotes(e,t=!1){if(!this.loadedChart)return!0;const i=Uk(e);return!i||i.length==0?!1:(this.insertNotes(i.map(s=>(s.beat+=this.beat,s.beat=Math.round(s.beat*48)/48,s)),t),!0)}insertNotes(e,t=!1){e.sort((n,a)=>n.beat==a.beat?n.col-a.col:n.beat-a.beat);const{removedNotes:i,truncatedHolds:s}=this.checkConflicts(e);if(t){const n=e.map(u=>lr(u));let a=0;for(const u of n)u>a&&(a=u);const o=new Array(this.loadedChart.gameType.numCols).fill(0).map((u,h)=>({type:"Hold",hold:a-e[0].beat,col:h,beat:e[0].beat})),{removedNotes:l,truncatedHolds:c}=this.checkConflicts(o);l.forEach(u=>{i.includes(u)||i.push(u)}),c.forEach(u=>{const h=s.find(d=>d.oldNote==u.oldNote);if(h){const d=Be(h.newNote)?h.newNote.hold:0,f=Be(h.newNote)?h.newNote.hold:0,p=Math.min(d,f);p==0?h.newNote={beat:h.newNote.beat,col:h.newNote.col,type:"Tap"}:h.newNote={beat:h.newNote.beat,col:h.newNote.col,type:h.newNote.type,hold:p}}}),i.sort((u,h)=>u.beat==h.beat?u.col-h.col:u.beat-h.beat),s.sort((u,h)=>u.newNote.beat==h.newNote.beat?u.newNote.col-h.newNote.col:u.newNote.beat-h.newNote.beat)}this.app.actionHistory.run({action:()=>{this.loadedChart.removeNotes(i,!1),s.forEach(n=>{this.loadedChart.modifyNote(n.oldNote,n.newNote,!1)}),this.clearSelections(),this.setNoteSelection(this.loadedChart.addNotes(e))},undo:()=>{this.loadedChart.removeNotes(e,!1),s.forEach(n=>{this.loadedChart.modifyNote(n.newNote,n.oldNote,!1)}),this.setNoteSelection(this.loadedChart.addNotes(i)),this.clearSelections()}})}pasteTempo(e){if(!this.loadedChart||!this.loadedSM)return!0;const t=jk(e);return!t||t.length==0?!1:(t.forEach(i=>{i.type=="ATTACKS"?i.second+=this.time:i.beat+=this.beat}),this.loadedChart.timingData.insertMulti(t),!0)}copy(){if(this.selection.notes.length!=0){const e=Math.min(...this.selection.notes.map(s=>s.beat)),t=structuredClone(this.selection.notes).map(s=>(s.beat-=e,s)).sort((s,n)=>s.beat==n.beat?s.col-n.col:s.beat-n.beat),i=Hk(t);return this.virtualClipboard=i,i}else if(this.eventSelection.timingEvents.length!=0){const e=Math.min(...this.eventSelection.timingEvents.map(n=>n.beat)),t=this.loadedChart.timingData.getSecondsFromBeat(e),i=structuredClone(this.eventSelection.timingEvents).map(n=>n.type=="ATTACKS"?(n.second-=t,n):(n.beat-=e,n)).sort((n,a)=>n.type!=a.type?n.type.localeCompare(a.type):n.type=="ATTACKS"?n.second-a.second:n.beat-a.beat),s=zk(i);return this.virtualClipboard=s,s}}}export{Oe as $,Ye as A,zt as B,rD as C,qa as D,H as E,De as F,We as G,ar as H,Ce as I,Tu as J,ct as K,Ne as L,ba as M,ut as N,x as O,ke as P,mi as Q,ad as R,dy as S,$e as T,ns as U,Sr as V,Ee as W,Me as X,Hd as Y,Ty as Z,Qe as _,Re as a,GD as a0,qD as a1,sd as a2,K0 as a3,ze as a4,Yt as a5,K1 as a6,Ma as a7,I2 as a8,ls as a9,zn as aa,ve as b,It as c,YD as d,Le as e,gy as f,Xa as g,sr as h,HD as i,Wr as j,eh as k,$D as l,P as m,Ud as n,Ak as o,Tk as p,v3 as q,jD as r,Oi as s,Ze as t,lk as u,te as v,Pe as w,ur as x,Gt as y,VD as z}; diff --git a/HoldBody-36fc6457.js b/HoldBody-be07a70c.js similarity index 97% rename from HoldBody-36fc6457.js rename to HoldBody-be07a70c.js index a956d1e..57036c4 100644 --- a/HoldBody-36fc6457.js +++ b/HoldBody-be07a70c.js @@ -1 +1 @@ -import{P as c,a3 as l,a4 as _,Q as d,w as o,a5 as p,c as h,U as m}from"./ChartManager-d5d16ca9.js";const s=new p;class n extends c{constructor(t,e=100,i=100){super(t),this.tileTransform=new l,this._width=e,this._height=i,this.uvMatrix=this.texture.uvMatrix||new _(t),this.pluginName="tilingSprite",this.uvRespectAnchor=!1}get clampMargin(){return this.uvMatrix.clampMargin}set clampMargin(t){this.uvMatrix.clampMargin=t,this.uvMatrix.update(!0)}get tileScale(){return this.tileTransform.scale}set tileScale(t){this.tileTransform.scale.copyFrom(t)}get tilePosition(){return this.tileTransform.position}set tilePosition(t){this.tileTransform.position.copyFrom(t)}_onTextureUpdate(){this.uvMatrix&&(this.uvMatrix.texture=this._texture),this._cachedTint=16777215}_render(t){const e=this._texture;!e||!e.valid||(this.tileTransform.updateLocalTransform(),this.uvMatrix.update(),t.batch.setObjectRenderer(t.plugins[this.pluginName]),t.plugins[this.pluginName].render(this))}_calculateBounds(){const t=this._width*-this._anchor._x,e=this._height*-this._anchor._y,i=this._width*(1-this._anchor._x),r=this._height*(1-this._anchor._y);this._bounds.addFrame(this.transform,t,e,i,r)}getLocalBounds(t){return this.children.length===0?(this._bounds.minX=this._width*-this._anchor._x,this._bounds.minY=this._height*-this._anchor._y,this._bounds.maxX=this._width*(1-this._anchor._x),this._bounds.maxY=this._height*(1-this._anchor._y),t||(this._localBoundsRect||(this._localBoundsRect=new d),t=this._localBoundsRect),this._bounds.getRectangle(t)):super.getLocalBounds.call(this,t)}containsPoint(t){this.worldTransform.applyInverse(t,s);const e=this._width,i=this._height,r=-e*this.anchor._x;if(s.x>=r&&s.x=a&&s.y{this.tileScale.set(e/this.texture.width)}),this.uvRespectAnchor=!0,this.anchor.y=1,this.x=-e/2,this.width=e}}class T extends g{_playing=!1;_autoUpdate=!1;_isConnectedToTicker=!1;_tickerUpdate=this.update.bind(this);_currentTime=0;_textures;_previousFrame=null;onComplete=null;onLoop=null;onFrameChange=null;animationSpeed=1;loop=!1;updateAnchor=!1;constructor(t,e){super(t[0],e),this.textures=t}stop(){this._playing&&(this._playing=!1,this._autoUpdate&&this._isConnectedToTicker&&(h.shared.remove(this._tickerUpdate),this._isConnectedToTicker=!1))}play(){this._playing||(this._playing=!0,this._autoUpdate&&!this._isConnectedToTicker&&(h.shared.add(this._tickerUpdate,this,m.HIGH),this._isConnectedToTicker=!0))}gotoAndStop(t){this.stop(),this.currentFrame=t}gotoAndPlay(t){this.currentFrame=t,this.play()}update(t){if(!this._playing)return;const e=this.animationSpeed*t,i=this.currentFrame;this._currentTime+=e,this._currentTime<0&&!this.loop?(this.gotoAndStop(0),this.onComplete?.()):this._currentTime>=this._textures.length&&!this.loop?(this.gotoAndStop(this._textures.length-1),this.onComplete?.()):i!==this.currentFrame&&(this.loop&&this.onLoop&&(this.animationSpeed>0&&this.currentFramei)&&this.onLoop(),this.updateTexture())}updateTexture(){const t=this.currentFrame;this._previousFrame!==t&&(this._previousFrame=t,this.texture=this._textures[t],this._textureID=-1,this._textureTrimmedID=-1,this._cachedTint=16777215,this.uvs=this._texture._uvs.uvsFloat32,this.updateAnchor&&this._anchor.copyFrom(this._texture.defaultAnchor),this.onFrameChange?.(this.currentFrame))}destroy(t){this.stop(),super.destroy(t),this.onComplete=null,this.onFrameChange=null,this.onLoop=null}get totalFrames(){return this._textures?.length??0}get textures(){return this._textures??[]}set textures(t){this._textures=t,this._previousFrame=null,this.gotoAndStop(0),this.updateTexture()}get currentFrame(){let t=Math.floor(this._currentTime)%this._textures.length;return t<0&&(t+=this._textures.length),t}set currentFrame(t){if(t<0||t>this.totalFrames-1)throw new Error(`[AnimatedSprite]: Invalid frame index value ${t}, expected to be between 0 and totalFrames ${this.totalFrames}.`);const e=this.currentFrame;this._currentTime=t,e!==this.currentFrame&&this.updateTexture()}get playing(){return this._playing}get autoUpdate(){return this._autoUpdate}set autoUpdate(t){t!==this._autoUpdate&&(this._autoUpdate=t,!this._autoUpdate&&this._isConnectedToTicker?(h.shared.remove(this._tickerUpdate),this._isConnectedToTicker=!1):this._autoUpdate&&!this._isConnectedToTicker&&this._playing&&(h.shared.add(this._tickerUpdate),this._isConnectedToTicker=!0))}}export{T as A,g as H,n as T}; +import{L as c,a2 as l,a3 as _,P as d,v as o,a4 as p,c as h,U as m}from"./ChartManager-47a72d67.js";const s=new p;class n extends c{constructor(t,e=100,i=100){super(t),this.tileTransform=new l,this._width=e,this._height=i,this.uvMatrix=this.texture.uvMatrix||new _(t),this.pluginName="tilingSprite",this.uvRespectAnchor=!1}get clampMargin(){return this.uvMatrix.clampMargin}set clampMargin(t){this.uvMatrix.clampMargin=t,this.uvMatrix.update(!0)}get tileScale(){return this.tileTransform.scale}set tileScale(t){this.tileTransform.scale.copyFrom(t)}get tilePosition(){return this.tileTransform.position}set tilePosition(t){this.tileTransform.position.copyFrom(t)}_onTextureUpdate(){this.uvMatrix&&(this.uvMatrix.texture=this._texture),this._cachedTint=16777215}_render(t){const e=this._texture;!e||!e.valid||(this.tileTransform.updateLocalTransform(),this.uvMatrix.update(),t.batch.setObjectRenderer(t.plugins[this.pluginName]),t.plugins[this.pluginName].render(this))}_calculateBounds(){const t=this._width*-this._anchor._x,e=this._height*-this._anchor._y,i=this._width*(1-this._anchor._x),r=this._height*(1-this._anchor._y);this._bounds.addFrame(this.transform,t,e,i,r)}getLocalBounds(t){return this.children.length===0?(this._bounds.minX=this._width*-this._anchor._x,this._bounds.minY=this._height*-this._anchor._y,this._bounds.maxX=this._width*(1-this._anchor._x),this._bounds.maxY=this._height*(1-this._anchor._y),t||(this._localBoundsRect||(this._localBoundsRect=new d),t=this._localBoundsRect),this._bounds.getRectangle(t)):super.getLocalBounds.call(this,t)}containsPoint(t){this.worldTransform.applyInverse(t,s);const e=this._width,i=this._height,r=-e*this.anchor._x;if(s.x>=r&&s.x=a&&s.y{this.tileScale.set(e/this.texture.width)}),this.uvRespectAnchor=!0,this.anchor.y=1,this.x=-e/2,this.width=e}}class T extends g{_playing=!1;_autoUpdate=!1;_isConnectedToTicker=!1;_tickerUpdate=this.update.bind(this);_currentTime=0;_textures;_previousFrame=null;onComplete=null;onLoop=null;onFrameChange=null;animationSpeed=1;loop=!1;updateAnchor=!1;constructor(t,e){super(t[0],e),this.textures=t}stop(){this._playing&&(this._playing=!1,this._autoUpdate&&this._isConnectedToTicker&&(h.shared.remove(this._tickerUpdate),this._isConnectedToTicker=!1))}play(){this._playing||(this._playing=!0,this._autoUpdate&&!this._isConnectedToTicker&&(h.shared.add(this._tickerUpdate,this,m.HIGH),this._isConnectedToTicker=!0))}gotoAndStop(t){this.stop(),this.currentFrame=t}gotoAndPlay(t){this.currentFrame=t,this.play()}update(t){if(!this._playing)return;const e=this.animationSpeed*t,i=this.currentFrame;this._currentTime+=e,this._currentTime<0&&!this.loop?(this.gotoAndStop(0),this.onComplete?.()):this._currentTime>=this._textures.length&&!this.loop?(this.gotoAndStop(this._textures.length-1),this.onComplete?.()):i!==this.currentFrame&&(this.loop&&this.onLoop&&(this.animationSpeed>0&&this.currentFramei)&&this.onLoop(),this.updateTexture())}updateTexture(){const t=this.currentFrame;this._previousFrame!==t&&(this._previousFrame=t,this.texture=this._textures[t],this._textureID=-1,this._textureTrimmedID=-1,this._cachedTint=16777215,this.uvs=this._texture._uvs.uvsFloat32,this.updateAnchor&&this._anchor.copyFrom(this._texture.defaultAnchor),this.onFrameChange?.(this.currentFrame))}destroy(t){this.stop(),super.destroy(t),this.onComplete=null,this.onFrameChange=null,this.onLoop=null}get totalFrames(){return this._textures?.length??0}get textures(){return this._textures??[]}set textures(t){this._textures=t,this._previousFrame=null,this.gotoAndStop(0),this.updateTexture()}get currentFrame(){let t=Math.floor(this._currentTime)%this._textures.length;return t<0&&(t+=this._textures.length),t}set currentFrame(t){if(t<0||t>this.totalFrames-1)throw new Error(`[AnimatedSprite]: Invalid frame index value ${t}, expected to be between 0 and totalFrames ${this.totalFrames}.`);const e=this.currentFrame;this._currentTime=t,e!==this.currentFrame&&this.updateTexture()}get playing(){return this._playing}get autoUpdate(){return this._autoUpdate}set autoUpdate(t){t!==this._autoUpdate&&(this._autoUpdate=t,!this._autoUpdate&&this._isConnectedToTicker?(h.shared.remove(this._tickerUpdate),this._isConnectedToTicker=!1):this._autoUpdate&&!this._isConnectedToTicker&&this._playing&&(h.shared.add(this._tickerUpdate),this._isConnectedToTicker=!0))}}export{T as A,g as H,n as T}; diff --git a/NodeFileHandler-cefd0d25.js b/NodeFileHandler-71538046.js similarity index 99% rename from NodeFileHandler-cefd0d25.js rename to NodeFileHandler-71538046.js index d6597f4..9d92244 100644 --- a/NodeFileHandler-cefd0d25.js +++ b/NodeFileHandler-71538046.js @@ -1,4 +1,4 @@ -import{a6 as Nr,a7 as Xr,g as ra,a8 as bi,a9 as na,aa as oi,ab as ai,W as ia}from"./ChartManager-d5d16ca9.js";var hr={exports:{}};/** +import{a5 as Nr,a6 as Xr,g as ra,a7 as bi,a8 as na,a9 as oi,aa as ai,W as ia}from"./ChartManager-47a72d67.js";var hr={exports:{}};/** * @license * web-streams-polyfill v3.3.3 * Copyright 2024 Mattias Buelens, Diwank Singh Tomer and other contributors. diff --git a/Noteskin-2e2cbbde.js b/Noteskin-04a83d23.js similarity index 84% rename from Noteskin-2e2cbbde.js rename to Noteskin-04a83d23.js index 56d22a8..c078558 100644 --- a/Noteskin-2e2cbbde.js +++ b/Noteskin-04a83d23.js @@ -1 +1 @@ -import{a1 as d,w as i,b as f,z as u,O as T,Q as g,P as l,Y as m,V as p,a2 as U}from"./ChartManager-d5d16ca9.js";import{A as w}from"./AnimatedSprite-888875f6.js";import{A as H}from"./HoldBody-36fc6457.js";const L="/smeditor/assets/Center-df4c129b.png",B="/smeditor/assets/DownLeft-63c88ff1.png",y="/smeditor/assets/DownRight-bcd0e463.png",M="/smeditor/assets/UpLeft-ef9a2609.png",O="/smeditor/assets/UpRight-7924deeb.png",I="/smeditor/assets/Center-461a85de.png",E="/smeditor/assets/DownLeft-4943410c.png",S="/smeditor/assets/DownRight-d5c3b98a.png",F="/smeditor/assets/UpLeft-be2bb52b.png",$="/smeditor/assets/UpRight-2e4dc3f1.png",N="/smeditor/assets/Center-274a1642.png",P="/smeditor/assets/DownLeft-15647c81.png",V="/smeditor/assets/DownRight-9aba7559.png",Y="/smeditor/assets/UpLeft-36744666.png",j="/smeditor/assets/UpRight-af6dd110.png",v={},c=["DownLeft","UpLeft","Center","UpRight","DownRight"];for(const t of c)v[t]=d(i.from(new URL(Object.assign({"./tap/Center.png":I,"./tap/DownLeft.png":E,"./tap/DownRight.png":S,"./tap/UpLeft.png":F,"./tap/UpRight.png":$})[`./tap/${t}.png`],self.location).href),3,2,96,96).flat();const D={};for(const t of c)D[t]=d(i.from(new URL(Object.assign({"./roll/Center.png":N,"./roll/DownLeft.png":P,"./roll/DownRight.png":V,"./roll/UpLeft.png":Y,"./roll/UpRight.png":j})[`./roll/${t}.png`],self.location).href),3,2,96,96).flat();const k=d(i.from(new URL("/smeditor/assets/mine-0e34ec01.png",self.location).href),3,2,96,96).flat();class a{static noteTex;static noteContainer=new f;static rollTex;static rollContainer=new f;static mineTex;static mine;static loaded=!1;static async initArrowTex(){if(!this.loaded){a.noteTex=u.create({width:96*5,height:96,resolution:T.performance.resolution}),a.rollTex=u.create({width:96*5,height:96,resolution:T.performance.resolution}),a.mineTex=u.create({width:96,height:96,resolution:T.performance.resolution});for(const e of c)this.createSprite(this.noteContainer,e,v);for(const e of c)this.createSprite(this.rollContainer,e,D);this.mine=new w(k),this.loaded=!0}}static createSprite(e,o,n){const s=c.indexOf(o)*96,r=new w(n[o]);r.x=s,e.addChild(r)}static setArrowTexTime(e){if(!this.loaded)return;const o=e.chartManager.chartView.getVisualTime(),n=Math.floor((o%.3+.3)%.3/.3*6);this.noteContainer.children.forEach(s=>s.currentFrame=n),this.rollContainer.children.forEach(s=>s.currentFrame=n),this.mine.currentFrame=n,e.renderer.render(a.noteContainer,{renderTexture:a.noteTex}),e.renderer.render(a.rollContainer,{renderTexture:a.rollTex}),e.renderer.render(a.mine,{renderTexture:a.mineTex})}static setNoteTex(e,o,n){if(o===void 0)return i.WHITE;if(o.type=="Mine")e.texture=this.mineTex;else{const s=c.indexOf(n)*96;e.texture=new i(this.noteTex.baseTexture,new g(s,0,96,96))}}static setRollTex(e,o){const n=c.indexOf(o)*96;e.texture=new i(this.rollTex.baseTexture,new g(n,0,96,96))}}const W="/smeditor/assets/receptors-5a0beefb.png",z="/smeditor/assets/flash-d0eff0a1.png",J="/smeditor/assets/mine-590d445e.png",Q="/smeditor/assets/press-55cccb8c.png",q=d(i.from(z),5,1,128,128)[0],G=i.from(J),C=d(i.from(Q),5,2,96,96),K=["w0","w1","w2","w3"];class X extends f{press;pressAnim;hitContainer=new f;tap;note;flash;hitAnim;anims=new Set;constructor(e,o,n){super();const s=1/1.5;this.press=new l(C[1][_.indexOf(o)]),this.press.alpha=0,this.press.anchor.set(.5),this.tap=new l(C[0][_.indexOf(o)]),this.tap.blendMode=m.ADD,this.tap.scale.set(s),this.tap.anchor.set(.5),this.note=new w(v[o]),this.note.scale.set(s),this.note.blendMode=m.ADD,this.note.animationSpeed=1/3,this.note.play(),this.note.anchor.set(.5),this.flash=new w(q),this.flash.scale.set(2),this.flash.blendMode=m.ADD,this.flash.animationSpeed=1/3,this.flash.loop=!1,this.flash.visible=!1,this.flash.anchor.set(.5),this.flash.onComplete=()=>{this.flash.visible=!1,this.flash.stop()},this.hitContainer.alpha=0,this.hitContainer.addChild(this.tap,this.note),e.on(this,"ghosttap",r=>{n==r.columnNumber&&(p.finish(this.pressAnim),this.pressAnim=p.animate(this.press,{0:{alpha:1,"scale.x":1*s,"scale.y":1*s},1:{alpha:0,"scale.x":1.3*s,"scale.y":1.3*s}},.25))}),e.on(this,"hit",r=>{if(n==r.columnNumber){if(!K.includes(r.judgement.id))return;p.finish(this.pressAnim),p.finish(this.hitAnim),this.hitAnim=p.animate(this.hitContainer,{0:{alpha:1,"scale.x":1,"scale.y":1},1:{alpha:0,"scale.x":1.2,"scale.y":1.2}},.4),this.flash.visible=!0,this.flash.currentFrame=0,this.flash.play()}}),e.on(this,"hitmine",r=>{if(n==r.columnNumber){const h=new l(G);h.alpha=0,h.anchor.set(.5),h.blendMode=m.ADD,this.addChild(h),p.animate(h,{0:{alpha:1,rotation:0},"0.5":{alpha:1,rotation:90*Math.PI/180},1:{alpha:0,rotation:180*Math.PI/180}},.4,void 0,()=>h.destroy())}}),this.addChild(this.press,this.hitContainer,this.flash)}}const A=d(i.from(W),5,2,96,96),_=["DownLeft","UpLeft","Center","UpRight","DownRight"],b={},x=96;for(const t of _){const e=i.from(new URL(Object.assign({"./hold/Center.png":L,"./hold/DownLeft.png":B,"./hold/DownRight.png":y,"./hold/UpLeft.png":M,"./hold/UpRight.png":O})[`./hold/${t}.png`],self.location).href),o=[],n=[];for(let s=0;s<6;s++)o.push(new i(e.baseTexture,new g(s*96,0,96,288-x))),n.push(new i(e.baseTexture,new g(s*96,288-x,96,x)));b[t]={body:o,cap:n}}const se={elements:{DownLeft:{Receptor:t=>{const e=new f,o=_.indexOf(t.columnName),n=new l(A[0][o]);n.width=72,n.height=72,n.anchor.set(.5);const s=new l(A[1][o]);return s.width=n.width,s.height=n.height,s.anchor.set(.5),s.blendMode=m.ADD,e.addChild(n,s),t.noteskin.onUpdate(e,r=>{const R=(r.getVisualBeat()%1+1)%1;s.alpha=(1-R)/2}),e},Tap:t=>{const e=new l(i.WHITE);return a.setNoteTex(e,t.note,t.columnName),e.anchor.set(.5),e.width=72,e.height=72,e},Fake:{element:"Tap"},Lift:{element:"Tap"},Mine:{element:"Tap"},NoteFlash:t=>new X(t.noteskin,t.columnName,t.columnNumber),"Hold Active Head":{element:"Tap"},"Hold Inactive Head":{element:"Tap"},"Hold Active Body":t=>{const e=new H(b[t.columnName].body,72);return t.noteskin.onUpdate(e,o=>{const n=o.getVisualTime(),s=Math.floor((n%.3+.3)%.3/.3*6);e.currentFrame=s}),e},"Hold Inactive Body":{element:"Hold Active Body"},"Hold Active TopCap":()=>new l(i.EMPTY),"Hold Inactive TopCap":()=>new l(i.EMPTY),"Hold Active BottomCap":t=>{const e=new U(b[t.columnName].cap,72);return t.noteskin.onUpdate(e,o=>{const n=o.getVisualTime(),s=Math.floor((n%.3+.3)%.3/.3*6);e.currentFrame=s}),e},"Hold Inactive BottomCap":{element:"Hold Active BottomCap"},"Roll Active Head":t=>{const e=new l(i.WHITE);return a.setRollTex(e,t.columnName),e.anchor.set(.5),e.width=72,e.height=72,e},"Roll Inactive Head":{element:"Roll Active Head"},"Roll Active Body":{element:"Hold Active Body"},"Roll Inactive Body":{element:"Hold Active Body"},"Roll Active TopCap":()=>new l(i.EMPTY),"Roll Inactive TopCap":()=>new l(i.EMPTY),"Roll Active BottomCap":{element:"Hold Active BottomCap"},"Roll Inactive BottomCap":{element:"Hold Active BottomCap"}}},load:function(t,e){return t.columnName="DownLeft",this.loadElement(t,e)},init(){a.initArrowTex()},update(t){a.setArrowTexTime(t.chartManager.app)},metrics:{HoldBodyBottomOffset:-36,RollBodyBottomOffset:-36}};export{se as default,_ as texOrder}; +import{a0 as d,v as i,b as f,y as u,O as T,P as g,L as l,X as m,Q as p,a1 as U}from"./ChartManager-47a72d67.js";import{A as w}from"./AnimatedSprite-b795c45d.js";import{A as H}from"./HoldBody-be07a70c.js";const L="/smeditor/assets/Center-df4c129b.png",y="/smeditor/assets/DownLeft-63c88ff1.png",B="/smeditor/assets/DownRight-bcd0e463.png",M="/smeditor/assets/UpLeft-ef9a2609.png",O="/smeditor/assets/UpRight-7924deeb.png",I="/smeditor/assets/Center-461a85de.png",E="/smeditor/assets/DownLeft-4943410c.png",S="/smeditor/assets/DownRight-d5c3b98a.png",F="/smeditor/assets/UpLeft-be2bb52b.png",$="/smeditor/assets/UpRight-2e4dc3f1.png",N="/smeditor/assets/Center-274a1642.png",P="/smeditor/assets/DownLeft-15647c81.png",V="/smeditor/assets/DownRight-9aba7559.png",j="/smeditor/assets/UpLeft-36744666.png",k="/smeditor/assets/UpRight-af6dd110.png",v={},c=["DownLeft","UpLeft","Center","UpRight","DownRight"];for(const t of c)v[t]=d(i.from(new URL(Object.assign({"./tap/Center.png":I,"./tap/DownLeft.png":E,"./tap/DownRight.png":S,"./tap/UpLeft.png":F,"./tap/UpRight.png":$})[`./tap/${t}.png`],self.location).href),3,2,96,96).flat();const D={};for(const t of c)D[t]=d(i.from(new URL(Object.assign({"./roll/Center.png":N,"./roll/DownLeft.png":P,"./roll/DownRight.png":V,"./roll/UpLeft.png":j,"./roll/UpRight.png":k})[`./roll/${t}.png`],self.location).href),3,2,96,96).flat();const Y=d(i.from(new URL("/smeditor/assets/mine-0e34ec01.png",self.location).href),3,2,96,96).flat();class a{static noteTex;static noteContainer=new f;static rollTex;static rollContainer=new f;static mineTex;static mine;static loaded=!1;static async initArrowTex(){if(!this.loaded){a.noteTex=u.create({width:96*5,height:96,resolution:T.performance.resolution}),a.rollTex=u.create({width:96*5,height:96,resolution:T.performance.resolution}),a.mineTex=u.create({width:96,height:96,resolution:T.performance.resolution});for(const e of c)this.createSprite(this.noteContainer,e,v);for(const e of c)this.createSprite(this.rollContainer,e,D);this.mine=new w(Y),this.loaded=!0}}static createSprite(e,o,n){const s=c.indexOf(o)*96,r=new w(n[o]);r.x=s,e.addChild(r)}static setArrowTexTime(e){if(!this.loaded)return;const o=e.chartManager.chartView.getVisualTime(),n=Math.floor((o%.3+.3)%.3/.3*6);this.noteContainer.children.forEach(s=>s.currentFrame=n),this.rollContainer.children.forEach(s=>s.currentFrame=n),this.mine.currentFrame=n,e.renderer.render(a.noteContainer,{renderTexture:a.noteTex}),e.renderer.render(a.rollContainer,{renderTexture:a.rollTex}),e.renderer.render(a.mine,{renderTexture:a.mineTex})}static setNoteTex(e,o,n){if(o===void 0)return i.WHITE;if(o.type=="Mine")e.texture=this.mineTex;else{const s=c.indexOf(n)*96;e.texture=new i(this.noteTex.baseTexture,new g(s,0,96,96))}}static setRollTex(e,o){const n=c.indexOf(o)*96;e.texture=new i(this.rollTex.baseTexture,new g(n,0,96,96))}}const W="/smeditor/assets/receptors-5a0beefb.png",z="/smeditor/assets/flash-d0eff0a1.png",J="/smeditor/assets/mine-590d445e.png",Q="/smeditor/assets/press-55cccb8c.png",X=d(i.from(z),5,1,128,128)[0],q=i.from(J),C=d(i.from(Q),5,2,96,96),G=["w0","w1","w2","w3"];class K extends f{press;pressAnim;hitContainer=new f;tap;note;flash;hitAnim;anims=new Set;constructor(e,o,n){super();const s=1/1.5;this.press=new l(C[1][_.indexOf(o)]),this.press.alpha=0,this.press.anchor.set(.5),this.tap=new l(C[0][_.indexOf(o)]),this.tap.blendMode=m.ADD,this.tap.scale.set(s),this.tap.anchor.set(.5),this.note=new w(v[o]),this.note.scale.set(s),this.note.blendMode=m.ADD,this.note.animationSpeed=1/3,this.note.play(),this.note.anchor.set(.5),this.flash=new w(X),this.flash.scale.set(2),this.flash.blendMode=m.ADD,this.flash.animationSpeed=1/3,this.flash.loop=!1,this.flash.visible=!1,this.flash.anchor.set(.5),this.flash.onComplete=()=>{this.flash.visible=!1,this.flash.stop()},this.hitContainer.alpha=0,this.hitContainer.addChild(this.tap,this.note),e.on(this,"ghosttap",r=>{n==r.columnNumber&&(p.finish(this.pressAnim),this.pressAnim=p.animate(this.press,{0:{alpha:1,"scale.x":1*s,"scale.y":1*s},1:{alpha:0,"scale.x":1.3*s,"scale.y":1.3*s}},.25))}),e.on(this,"hit",r=>{if(n==r.columnNumber){if(!G.includes(r.judgement.id))return;p.finish(this.pressAnim),p.finish(this.hitAnim),this.hitAnim=p.animate(this.hitContainer,{0:{alpha:1,"scale.x":1,"scale.y":1},1:{alpha:0,"scale.x":1.2,"scale.y":1.2}},.4),this.flash.visible=!0,this.flash.currentFrame=0,this.flash.play()}}),e.on(this,"hitmine",r=>{if(n==r.columnNumber){const h=new l(q);h.alpha=0,h.anchor.set(.5),h.blendMode=m.ADD,this.addChild(h),p.animate(h,{0:{alpha:1,rotation:0},"0.5":{alpha:1,rotation:90*Math.PI/180},1:{alpha:0,rotation:180*Math.PI/180}},.4,void 0,()=>h.destroy())}}),this.addChild(this.press,this.hitContainer,this.flash)}}const A=d(i.from(W),5,2,96,96),_=["DownLeft","UpLeft","Center","UpRight","DownRight"],b={},x=96;for(const t of _){const e=i.from(new URL(Object.assign({"./hold/Center.png":L,"./hold/DownLeft.png":y,"./hold/DownRight.png":B,"./hold/UpLeft.png":M,"./hold/UpRight.png":O})[`./hold/${t}.png`],self.location).href),o=[],n=[];for(let s=0;s<6;s++)o.push(new i(e.baseTexture,new g(s*96,0,96,288-x))),n.push(new i(e.baseTexture,new g(s*96,288-x,96,x)));b[t]={body:o,cap:n}}const se={elements:{DownLeft:{Receptor:t=>{const e=new f,o=_.indexOf(t.columnName),n=new l(A[0][o]);n.width=72,n.height=72,n.anchor.set(.5);const s=new l(A[1][o]);return s.width=n.width,s.height=n.height,s.anchor.set(.5),s.blendMode=m.ADD,e.addChild(n,s),t.noteskin.onUpdate(e,r=>{const R=(r.getVisualBeat()%1+1)%1;s.alpha=(1-R)/2}),e},Tap:t=>{const e=new l(i.WHITE);return a.setNoteTex(e,t.note,t.columnName),e.anchor.set(.5),e.width=72,e.height=72,e},Fake:{element:"Tap"},Lift:{element:"Tap"},Mine:{element:"Tap"},NoteFlash:t=>new K(t.noteskin,t.columnName,t.columnNumber),"Hold Active Head":{element:"Tap"},"Hold Inactive Head":{element:"Tap"},"Hold Active Body":t=>{const e=new H(b[t.columnName].body,72);return t.noteskin.onUpdate(e,o=>{const n=o.getVisualTime(),s=Math.floor((n%.3+.3)%.3/.3*6);e.currentFrame=s}),e},"Hold Inactive Body":{element:"Hold Active Body"},"Hold Active TopCap":()=>new l(i.EMPTY),"Hold Inactive TopCap":()=>new l(i.EMPTY),"Hold Active BottomCap":t=>{const e=new U(b[t.columnName].cap,72);return t.noteskin.onUpdate(e,o=>{const n=o.getVisualTime(),s=Math.floor((n%.3+.3)%.3/.3*6);e.currentFrame=s}),e},"Hold Inactive BottomCap":{element:"Hold Active BottomCap"},"Roll Active Head":t=>{const e=new l(i.WHITE);return a.setRollTex(e,t.columnName),e.anchor.set(.5),e.width=72,e.height=72,e},"Roll Inactive Head":{element:"Roll Active Head"},"Roll Active Body":{element:"Hold Active Body"},"Roll Inactive Body":{element:"Hold Active Body"},"Roll Active TopCap":()=>new l(i.EMPTY),"Roll Inactive TopCap":()=>new l(i.EMPTY),"Roll Active BottomCap":{element:"Hold Active BottomCap"},"Roll Inactive BottomCap":{element:"Hold Active BottomCap"}}},load:function(t,e){return t.columnName="DownLeft",this.loadElement(t,e)},init(){a.initArrowTex()},update(t){a.setArrowTexTime(t.chartManager.app)},metrics:{HoldBodyBottomOffset:-36,RollBodyBottomOffset:-36}};export{se as default,_ as texOrder}; diff --git a/Noteskin-db33d8af.js b/Noteskin-4e0593e6.js similarity index 84% rename from Noteskin-db33d8af.js rename to Noteskin-4e0593e6.js index ba4f8ce..5afb34a 100644 --- a/Noteskin-db33d8af.js +++ b/Noteskin-4e0593e6.js @@ -1 +1 @@ -import{a1 as d,w as i,b as f,z as u,O as T,Q as g,P as l,Y as m,V as p,a2 as U}from"./ChartManager-d5d16ca9.js";import{A as w}from"./AnimatedSprite-888875f6.js";import{A as H}from"./HoldBody-36fc6457.js";const L="/smeditor/assets/Center-1b6bfec9.png",B="/smeditor/assets/DownLeft-242c6bf3.png",y="/smeditor/assets/DownRight-a869fa38.png",M="/smeditor/assets/UpLeft-d457a441.png",O="/smeditor/assets/UpRight-fda6b516.png",I="/smeditor/assets/Center-cb4b6c25.png",E="/smeditor/assets/DownLeft-94341616.png",S="/smeditor/assets/DownRight-3c57e4fa.png",F="/smeditor/assets/UpLeft-752b6821.png",$="/smeditor/assets/UpRight-91e454bc.png",N="/smeditor/assets/Center-55e9b68a.png",P="/smeditor/assets/DownLeft-19d91486.png",V="/smeditor/assets/DownRight-e2cf2b7d.png",Y="/smeditor/assets/UpLeft-28515625.png",j="/smeditor/assets/UpRight-8a892589.png",v={},c=["DownLeft","UpLeft","Center","UpRight","DownRight"];for(const t of c)v[t]=d(i.from(new URL(Object.assign({"./tap/Center.png":I,"./tap/DownLeft.png":E,"./tap/DownRight.png":S,"./tap/UpLeft.png":F,"./tap/UpRight.png":$})[`./tap/${t}.png`],self.location).href),3,2,96,96).flat();const D={};for(const t of c)D[t]=d(i.from(new URL(Object.assign({"./roll/Center.png":N,"./roll/DownLeft.png":P,"./roll/DownRight.png":V,"./roll/UpLeft.png":Y,"./roll/UpRight.png":j})[`./roll/${t}.png`],self.location).href),3,2,96,96).flat();const k=d(i.from(new URL("/smeditor/assets/mine-0e34ec01.png",self.location).href),3,2,96,96).flat();class a{static noteTex;static noteContainer=new f;static rollTex;static rollContainer=new f;static mineTex;static mine;static loaded=!1;static async initArrowTex(){if(!this.loaded){a.noteTex=u.create({width:96*5,height:96,resolution:T.performance.resolution}),a.rollTex=u.create({width:96*5,height:96,resolution:T.performance.resolution}),a.mineTex=u.create({width:96,height:96,resolution:T.performance.resolution});for(const e of c)this.createSprite(this.noteContainer,e,v);for(const e of c)this.createSprite(this.rollContainer,e,D);this.mine=new w(k),this.loaded=!0}}static createSprite(e,o,n){const s=c.indexOf(o)*96,r=new w(n[o]);r.x=s,e.addChild(r)}static setArrowTexTime(e){if(!this.loaded)return;const o=e.chartManager.chartView.getVisualTime(),n=Math.floor((o%.3+.3)%.3/.3*6);this.noteContainer.children.forEach(s=>s.currentFrame=n),this.rollContainer.children.forEach(s=>s.currentFrame=n),this.mine.currentFrame=n,e.renderer.render(a.noteContainer,{renderTexture:a.noteTex}),e.renderer.render(a.rollContainer,{renderTexture:a.rollTex}),e.renderer.render(a.mine,{renderTexture:a.mineTex})}static setNoteTex(e,o,n){if(o===void 0)return i.WHITE;if(o.type=="Mine")e.texture=this.mineTex;else{const s=c.indexOf(n)*96;e.texture=new i(this.noteTex.baseTexture,new g(s,0,96,96))}}static setRollTex(e,o){const n=c.indexOf(o)*96;e.texture=new i(this.rollTex.baseTexture,new g(n,0,96,96))}}const W="/smeditor/assets/receptors-0a59df78.png",z="/smeditor/assets/flash-e524b5bd.png",J="/smeditor/assets/mine-590d445e.png",Q="/smeditor/assets/press-feed8aa6.png",q=d(i.from(z),5,1,128,128)[0],G=i.from(J),C=d(i.from(Q),5,2,96,96),K=["w0","w1","w2","w3"];class X extends f{press;pressAnim;hitContainer=new f;tap;note;flash;hitAnim;anims=new Set;constructor(e,o,n){super();const s=1/1.5;this.press=new l(C[1][_.indexOf(o)]),this.press.alpha=0,this.press.anchor.set(.5),this.tap=new l(C[0][_.indexOf(o)]),this.tap.blendMode=m.ADD,this.tap.scale.set(s),this.tap.anchor.set(.5),this.note=new w(v[o]),this.note.scale.set(s),this.note.blendMode=m.ADD,this.note.animationSpeed=1/3,this.note.play(),this.note.anchor.set(.5),this.flash=new w(q),this.flash.scale.set(2),this.flash.blendMode=m.ADD,this.flash.animationSpeed=1/3,this.flash.loop=!1,this.flash.visible=!1,this.flash.anchor.set(.5),this.flash.onComplete=()=>{this.flash.visible=!1,this.flash.stop()},this.hitContainer.alpha=0,this.hitContainer.addChild(this.tap,this.note),e.on(this,"ghosttap",r=>{n==r.columnNumber&&(p.finish(this.pressAnim),this.pressAnim=p.animate(this.press,{0:{alpha:1,"scale.x":1*s,"scale.y":1*s},1:{alpha:0,"scale.x":1.3*s,"scale.y":1.3*s}},.25))}),e.on(this,"hit",r=>{if(n==r.columnNumber){if(!K.includes(r.judgement.id))return;p.finish(this.pressAnim),p.finish(this.hitAnim),this.hitAnim=p.animate(this.hitContainer,{0:{alpha:1,"scale.x":1,"scale.y":1},1:{alpha:0,"scale.x":1.2,"scale.y":1.2}},.4),this.flash.visible=!0,this.flash.currentFrame=0,this.flash.play()}}),e.on(this,"hitmine",r=>{if(n==r.columnNumber){const h=new l(G);h.alpha=0,h.anchor.set(.5),h.blendMode=m.ADD,this.addChild(h),p.animate(h,{0:{alpha:1,rotation:0},"0.5":{alpha:1,rotation:90*Math.PI/180},1:{alpha:0,rotation:180*Math.PI/180}},.4,void 0,()=>h.destroy())}}),this.addChild(this.press,this.hitContainer,this.flash)}}const A=d(i.from(W),5,2,96,96),_=["DownLeft","UpLeft","Center","UpRight","DownRight"],b={},x=96;for(const t of _){const e=i.from(new URL(Object.assign({"./hold/Center.png":L,"./hold/DownLeft.png":B,"./hold/DownRight.png":y,"./hold/UpLeft.png":M,"./hold/UpRight.png":O})[`./hold/${t}.png`],self.location).href),o=[],n=[];for(let s=0;s<6;s++)o.push(new i(e.baseTexture,new g(s*96,0,96,288-x))),n.push(new i(e.baseTexture,new g(s*96,288-x,96,x)));b[t]={body:o,cap:n}}const se={elements:{DownLeft:{Receptor:t=>{const e=new f,o=_.indexOf(t.columnName),n=new l(A[0][o]);n.width=72,n.height=72,n.anchor.set(.5);const s=new l(A[1][o]);return s.width=n.width,s.height=n.height,s.anchor.set(.5),s.blendMode=m.ADD,e.addChild(n,s),t.noteskin.onUpdate(e,r=>{const R=(r.getVisualBeat()%1+1)%1;s.alpha=(1-R)/2}),e},Tap:t=>{const e=new l(i.WHITE);return a.setNoteTex(e,t.note,t.columnName),e.anchor.set(.5),e.width=72,e.height=72,e},Fake:{element:"Tap"},Lift:{element:"Tap"},Mine:{element:"Tap"},NoteFlash:t=>new X(t.noteskin,t.columnName,t.columnNumber),"Hold Active Head":{element:"Tap"},"Hold Inactive Head":{element:"Tap"},"Hold Active Body":t=>{const e=new H(b[t.columnName].body,72);return t.noteskin.onUpdate(e,o=>{const n=o.getVisualTime(),s=Math.floor((n%.3+.3)%.3/.3*6);e.currentFrame=s}),e},"Hold Inactive Body":{element:"Hold Active Body"},"Hold Active TopCap":()=>new l(i.EMPTY),"Hold Inactive TopCap":()=>new l(i.EMPTY),"Hold Active BottomCap":t=>{const e=new U(b[t.columnName].cap,72);return t.noteskin.onUpdate(e,o=>{const n=o.getVisualTime(),s=Math.floor((n%.3+.3)%.3/.3*6);e.currentFrame=s}),e},"Hold Inactive BottomCap":{element:"Hold Active BottomCap"},"Roll Active Head":t=>{const e=new l(i.WHITE);return a.setRollTex(e,t.columnName),e.anchor.set(.5),e.width=72,e.height=72,e},"Roll Inactive Head":{element:"Roll Active Head"},"Roll Active Body":{element:"Hold Active Body"},"Roll Inactive Body":{element:"Hold Active Body"},"Roll Active TopCap":()=>new l(i.EMPTY),"Roll Inactive TopCap":()=>new l(i.EMPTY),"Roll Active BottomCap":{element:"Hold Active BottomCap"},"Roll Inactive BottomCap":{element:"Hold Active BottomCap"}}},load:function(t,e){return t.columnName="DownLeft",this.loadElement(t,e)},init(){a.initArrowTex()},update(t){a.setArrowTexTime(t.chartManager.app)},metrics:{HoldBodyBottomOffset:-36,RollBodyBottomOffset:-36}};export{se as default,_ as texOrder}; +import{a0 as d,v as i,b as f,y as u,O as T,P as g,L as l,X as m,Q as p,a1 as U}from"./ChartManager-47a72d67.js";import{A as w}from"./AnimatedSprite-b795c45d.js";import{A as H}from"./HoldBody-be07a70c.js";const L="/smeditor/assets/Center-1b6bfec9.png",y="/smeditor/assets/DownLeft-242c6bf3.png",B="/smeditor/assets/DownRight-a869fa38.png",M="/smeditor/assets/UpLeft-d457a441.png",O="/smeditor/assets/UpRight-fda6b516.png",I="/smeditor/assets/Center-cb4b6c25.png",E="/smeditor/assets/DownLeft-94341616.png",S="/smeditor/assets/DownRight-3c57e4fa.png",F="/smeditor/assets/UpLeft-752b6821.png",$="/smeditor/assets/UpRight-91e454bc.png",N="/smeditor/assets/Center-55e9b68a.png",P="/smeditor/assets/DownLeft-19d91486.png",V="/smeditor/assets/DownRight-e2cf2b7d.png",j="/smeditor/assets/UpLeft-28515625.png",k="/smeditor/assets/UpRight-8a892589.png",v={},c=["DownLeft","UpLeft","Center","UpRight","DownRight"];for(const t of c)v[t]=d(i.from(new URL(Object.assign({"./tap/Center.png":I,"./tap/DownLeft.png":E,"./tap/DownRight.png":S,"./tap/UpLeft.png":F,"./tap/UpRight.png":$})[`./tap/${t}.png`],self.location).href),3,2,96,96).flat();const D={};for(const t of c)D[t]=d(i.from(new URL(Object.assign({"./roll/Center.png":N,"./roll/DownLeft.png":P,"./roll/DownRight.png":V,"./roll/UpLeft.png":j,"./roll/UpRight.png":k})[`./roll/${t}.png`],self.location).href),3,2,96,96).flat();const Y=d(i.from(new URL("/smeditor/assets/mine-0e34ec01.png",self.location).href),3,2,96,96).flat();class a{static noteTex;static noteContainer=new f;static rollTex;static rollContainer=new f;static mineTex;static mine;static loaded=!1;static async initArrowTex(){if(!this.loaded){a.noteTex=u.create({width:96*5,height:96,resolution:T.performance.resolution}),a.rollTex=u.create({width:96*5,height:96,resolution:T.performance.resolution}),a.mineTex=u.create({width:96,height:96,resolution:T.performance.resolution});for(const e of c)this.createSprite(this.noteContainer,e,v);for(const e of c)this.createSprite(this.rollContainer,e,D);this.mine=new w(Y),this.loaded=!0}}static createSprite(e,o,n){const s=c.indexOf(o)*96,r=new w(n[o]);r.x=s,e.addChild(r)}static setArrowTexTime(e){if(!this.loaded)return;const o=e.chartManager.chartView.getVisualTime(),n=Math.floor((o%.3+.3)%.3/.3*6);this.noteContainer.children.forEach(s=>s.currentFrame=n),this.rollContainer.children.forEach(s=>s.currentFrame=n),this.mine.currentFrame=n,e.renderer.render(a.noteContainer,{renderTexture:a.noteTex}),e.renderer.render(a.rollContainer,{renderTexture:a.rollTex}),e.renderer.render(a.mine,{renderTexture:a.mineTex})}static setNoteTex(e,o,n){if(o===void 0)return i.WHITE;if(o.type=="Mine")e.texture=this.mineTex;else{const s=c.indexOf(n)*96;e.texture=new i(this.noteTex.baseTexture,new g(s,0,96,96))}}static setRollTex(e,o){const n=c.indexOf(o)*96;e.texture=new i(this.rollTex.baseTexture,new g(n,0,96,96))}}const W="/smeditor/assets/receptors-0a59df78.png",z="/smeditor/assets/flash-e524b5bd.png",J="/smeditor/assets/mine-590d445e.png",Q="/smeditor/assets/press-feed8aa6.png",X=d(i.from(z),5,1,128,128)[0],q=i.from(J),C=d(i.from(Q),5,2,96,96),G=["w0","w1","w2","w3"];class K extends f{press;pressAnim;hitContainer=new f;tap;note;flash;hitAnim;anims=new Set;constructor(e,o,n){super();const s=1/1.5;this.press=new l(C[1][_.indexOf(o)]),this.press.alpha=0,this.press.anchor.set(.5),this.tap=new l(C[0][_.indexOf(o)]),this.tap.blendMode=m.ADD,this.tap.scale.set(s),this.tap.anchor.set(.5),this.note=new w(v[o]),this.note.scale.set(s),this.note.blendMode=m.ADD,this.note.animationSpeed=1/3,this.note.play(),this.note.anchor.set(.5),this.flash=new w(X),this.flash.scale.set(2),this.flash.blendMode=m.ADD,this.flash.animationSpeed=1/3,this.flash.loop=!1,this.flash.visible=!1,this.flash.anchor.set(.5),this.flash.onComplete=()=>{this.flash.visible=!1,this.flash.stop()},this.hitContainer.alpha=0,this.hitContainer.addChild(this.tap,this.note),e.on(this,"ghosttap",r=>{n==r.columnNumber&&(p.finish(this.pressAnim),this.pressAnim=p.animate(this.press,{0:{alpha:1,"scale.x":1*s,"scale.y":1*s},1:{alpha:0,"scale.x":1.3*s,"scale.y":1.3*s}},.25))}),e.on(this,"hit",r=>{if(n==r.columnNumber){if(!G.includes(r.judgement.id))return;p.finish(this.pressAnim),p.finish(this.hitAnim),this.hitAnim=p.animate(this.hitContainer,{0:{alpha:1,"scale.x":1,"scale.y":1},1:{alpha:0,"scale.x":1.2,"scale.y":1.2}},.4),this.flash.visible=!0,this.flash.currentFrame=0,this.flash.play()}}),e.on(this,"hitmine",r=>{if(n==r.columnNumber){const h=new l(q);h.alpha=0,h.anchor.set(.5),h.blendMode=m.ADD,this.addChild(h),p.animate(h,{0:{alpha:1,rotation:0},"0.5":{alpha:1,rotation:90*Math.PI/180},1:{alpha:0,rotation:180*Math.PI/180}},.4,void 0,()=>h.destroy())}}),this.addChild(this.press,this.hitContainer,this.flash)}}const A=d(i.from(W),5,2,96,96),_=["DownLeft","UpLeft","Center","UpRight","DownRight"],b={},x=96;for(const t of _){const e=i.from(new URL(Object.assign({"./hold/Center.png":L,"./hold/DownLeft.png":y,"./hold/DownRight.png":B,"./hold/UpLeft.png":M,"./hold/UpRight.png":O})[`./hold/${t}.png`],self.location).href),o=[],n=[];for(let s=0;s<6;s++)o.push(new i(e.baseTexture,new g(s*96,0,96,288-x))),n.push(new i(e.baseTexture,new g(s*96,288-x,96,x)));b[t]={body:o,cap:n}}const se={elements:{DownLeft:{Receptor:t=>{const e=new f,o=_.indexOf(t.columnName),n=new l(A[0][o]);n.width=72,n.height=72,n.anchor.set(.5);const s=new l(A[1][o]);return s.width=n.width,s.height=n.height,s.anchor.set(.5),s.blendMode=m.ADD,e.addChild(n,s),t.noteskin.onUpdate(e,r=>{const R=(r.getVisualBeat()%1+1)%1;s.alpha=(1-R)/2}),e},Tap:t=>{const e=new l(i.WHITE);return a.setNoteTex(e,t.note,t.columnName),e.anchor.set(.5),e.width=72,e.height=72,e},Fake:{element:"Tap"},Lift:{element:"Tap"},Mine:{element:"Tap"},NoteFlash:t=>new K(t.noteskin,t.columnName,t.columnNumber),"Hold Active Head":{element:"Tap"},"Hold Inactive Head":{element:"Tap"},"Hold Active Body":t=>{const e=new H(b[t.columnName].body,72);return t.noteskin.onUpdate(e,o=>{const n=o.getVisualTime(),s=Math.floor((n%.3+.3)%.3/.3*6);e.currentFrame=s}),e},"Hold Inactive Body":{element:"Hold Active Body"},"Hold Active TopCap":()=>new l(i.EMPTY),"Hold Inactive TopCap":()=>new l(i.EMPTY),"Hold Active BottomCap":t=>{const e=new U(b[t.columnName].cap,72);return t.noteskin.onUpdate(e,o=>{const n=o.getVisualTime(),s=Math.floor((n%.3+.3)%.3/.3*6);e.currentFrame=s}),e},"Hold Inactive BottomCap":{element:"Hold Active BottomCap"},"Roll Active Head":t=>{const e=new l(i.WHITE);return a.setRollTex(e,t.columnName),e.anchor.set(.5),e.width=72,e.height=72,e},"Roll Inactive Head":{element:"Roll Active Head"},"Roll Active Body":{element:"Hold Active Body"},"Roll Inactive Body":{element:"Hold Active Body"},"Roll Active TopCap":()=>new l(i.EMPTY),"Roll Inactive TopCap":()=>new l(i.EMPTY),"Roll Active BottomCap":{element:"Hold Active BottomCap"},"Roll Inactive BottomCap":{element:"Hold Active BottomCap"}}},load:function(t,e){return t.columnName="DownLeft",this.loadElement(t,e)},init(){a.initArrowTex()},update(t){a.setArrowTexTime(t.chartManager.app)},metrics:{HoldBodyBottomOffset:-36,RollBodyBottomOffset:-36}};export{se as default,_ as texOrder}; diff --git a/Noteskin-39cb880c.js b/Noteskin-4eedff13.js similarity index 94% rename from Noteskin-39cb880c.js rename to Noteskin-4eedff13.js index d4f5026..a619ca8 100644 --- a/Noteskin-39cb880c.js +++ b/Noteskin-4eedff13.js @@ -1,4 +1,4 @@ -import{w as s,x as v,y as w,b as h,z as x,O as B,H as u,J as D,L as b,P as r,V as l,X as A,Y as H,a1 as T,$ as d}from"./ChartManager-d5d16ca9.js";import{A as C}from"./AnimatedSprite-888875f6.js";import{H as m}from"./HoldBody-36fc6457.js";const I="/smeditor/assets/0-c5249fef.png",U="/smeditor/assets/1-0e354907.png",M="/smeditor/assets/2-ce5f7b2f.png",P="/smeditor/assets/3-648105cf.png",y="/smeditor/assets/4-da345826.png",F="/smeditor/assets/5-f6bb9779.png",O="/smeditor/assets/6-12d00670.png",Y="/smeditor/assets/7-00801dd0.png",G="/smeditor/assets/8-9a73d4f3.png",Q="/smeditor/assets/0-0543793c.png",z="/smeditor/assets/1-84dd19f7.png",L="/smeditor/assets/2-3b873573.png",_="/smeditor/assets/3-e5952ffa.png",N="/smeditor/assets/4-1f9a4a43.png",E="/smeditor/assets/5-b9acdc27.png",j="/smeditor/assets/6-565a7261.png",W="/smeditor/assets/7-dd1c0ecf.png",R="/smeditor/assets/8-94163432.png",X="/smeditor/assets/frame-d599a2fe.png",S="/smeditor/assets/parts-b37af2cf.png",k=`precision mediump float; +import{v as s,w as v,x as w,b as h,y as x,O as B,z as u,H as D,J as b,L as r,Q as l,V as A,X as H,a0 as T,Z as d}from"./ChartManager-47a72d67.js";import{A as C}from"./AnimatedSprite-b795c45d.js";import{H as m}from"./HoldBody-be07a70c.js";const I="/smeditor/assets/0-c5249fef.png",U="/smeditor/assets/1-0e354907.png",M="/smeditor/assets/2-ce5f7b2f.png",y="/smeditor/assets/3-648105cf.png",P="/smeditor/assets/4-da345826.png",F="/smeditor/assets/5-f6bb9779.png",O="/smeditor/assets/6-12d00670.png",Y="/smeditor/assets/7-00801dd0.png",G="/smeditor/assets/8-9a73d4f3.png",Q="/smeditor/assets/0-0543793c.png",z="/smeditor/assets/1-84dd19f7.png",L="/smeditor/assets/2-3b873573.png",_="/smeditor/assets/3-e5952ffa.png",N="/smeditor/assets/4-1f9a4a43.png",E="/smeditor/assets/5-b9acdc27.png",j="/smeditor/assets/6-565a7261.png",W="/smeditor/assets/7-dd1c0ecf.png",R="/smeditor/assets/8-94163432.png",X="/smeditor/assets/frame-d599a2fe.png",S="/smeditor/assets/parts-b37af2cf.png",k=`precision mediump float; varying vec2 vUvs; @@ -139,4 +139,4 @@ void main() { 30 31 42 31 43 42 31 20 43 -20 32 43`,q=s.from(X);class a{static minePartsTex=v.from(S,{mipmap:w.OFF});static mineBodyGeom;static mineTex;static mineContainer=new h;static loaded=!1;static async initArrowTex(){if(this.loaded)return;a.mineTex=x.create({width:64,height:64,resolution:B.performance.resolution}),this.mineBodyGeom=await u(V);const o=D.from(K,k,{sampler0:this.minePartsTex,time:0}),t=new b(a.mineBodyGeom,o),e=new r(q);e.width=64,e.height=64,e.anchor.set(.5),e.pivot.y=3,a.mineContainer.position.set(32),a.mineContainer.addChild(t),a.mineContainer.addChild(e),this.loaded=!0}static setArrowTexTime(o){if(!this.loaded)return;const t=o.chartManager.chartView.getVisualTime();a.mineContainer.children[0].shader.uniforms.time=t,a.mineContainer.rotation=t%1*Math.PI*2,o.renderer.render(a.mineContainer,{renderTexture:a.mineTex})}}const J="/smeditor/assets/flash-be9c0562.png",Z="/smeditor/assets/mine-590d445e.png",g=s.from(J),$=s.from(Z);class nn extends h{standard=new r(g);hold=new r(g);anims=new Set;constructor(o,t){super(),o.on(this,"hit",e=>{t==e.columnNumber&&(this.anims.forEach(i=>l.finish(i)),this.anims.clear(),this.anims.add(l.animate(this.standard,{0:{alpha:1.2,"scale.x":1.1,"scale.y":1.1},1:{alpha:0,"scale.x":1,"scale.y":1}},.15,A(.11,0,.5,0))))}),o.on(this,"held",e=>{t==e.columnNumber&&(this.anims.forEach(i=>l.finish(i)),this.anims.clear(),this.anims.add(l.animate(this.standard,{0:{alpha:1.2,"scale.x":1.1,"scale.y":1.1},1:{alpha:0,"scale.x":1,"scale.y":1}},.09,A(.11,0,.5,0))))}),o.on(this,"holdon",e=>{t==e.columnNumber&&(this.hold.visible=!0)}),o.on(this,"holdoff",e=>{t==e.columnNumber&&(this.hold.visible=!1)}),o.on(this,"rollon",e=>{t==e.columnNumber&&(this.hold.visible=!0)}),o.on(this,"rolloff",e=>{t==e.columnNumber&&(this.hold.visible=!1)}),o.on(this,"hitmine",e=>{if(t==e.columnNumber){const i=new r($);i.alpha=0,i.anchor.set(.5),i.blendMode=H.ADD,this.addChild(i),l.animate(i,{0:{alpha:1,rotation:0},"0.5":{alpha:1,rotation:90*Math.PI/180},1:{alpha:0,rotation:180*Math.PI/180}},.4,void 0,()=>i.destroy())}}),this.standard.alpha=0,this.standard.anchor.set(.5),this.addChild(this.standard),o.onUpdate(this,()=>{this.hold.alpha=Math.sin(Date.now()/1e3*Math.PI*2*20)*.1+1}),this.hold.visible=!1,this.hold.anchor.set(.5),this.addChild(this.hold)}}const tn="/smeditor/assets/receptor-3e38f29b.png",en="/smeditor/assets/body-0862c984.png",on="/smeditor/assets/cap-8cc2992c.png",sn="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IB2cksfwAAAAlwSFlzAAALEwAACxMBAJqcGAAAD5RJREFUeJztXc2O3LgRJqUez3gcB84C60tOueUQ+OTzwtiLnyFAggTZfYA8Sp4hhwTxwY+weQgnQBIY8MEn/8DwJrHjnW6RYZEqqlgqSexpdY8M8cP2qiVSJFVV/FhVVI83KsWZ+9Tu8wlOtFK/+N1vfvX7X/76t9+8f/9v9erVq+bp06f62bNn1fn5mbp9+7Z69OiRevnypXr+/LnabrexIa11/G6tFc+To20LKy2Xu6MxRum6SurTdrFtet3qcK1SoR1sH8+rqrK+Xa0tlvvbrL/Pkv5DeTi3IBxfYNtu2uv+CBdtuGagJVdX463+NmXrdhyu2LegfY/QaOO7qd1zGmNRKqFBqO/+2+126vHjx/b169fqn//6h/r++/+oi/Nzdf/+/e23335jLi7O3//k3r3LJ0+efPenP//lD+7+v7XtXEAH7hMVtWEGULcfxBcPHz782gkpFDq0worChjJ3uR1cOOeKo6Dnvo72X5SyXR28D+vi0Y/Di0kHWWEb1iZtJv1hfSzj5/6gw/9aUaMSoT8T1Kk0aTv2ofvjiMdWwTWWo+HFetgOGIlxfQXr0Lpun8dbWJSnH7XuZ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xFak8TgbY1BCVEU2AAXh8Nht7++i03Cd1ho4LKvDWMOgISA1AJQoNfEgFp/B4FBt9H1n7JB+CUyZVGl4kp8NCJKyD3/sEQDJ1U1bVHwywp/0ExNo5o6IqyUN+I+LPRiYbLZ/fbQK1xtxZ056rfosPhY+AGwCvUd+/euaRv/fbCO5gpdV9R/MEldgBUA7M/9jmwSwbXvUAMW2La69a0/kfrVygzvA6PwgS6d+5vpOWdm1iV6l7BlpxRHiJTB046p77DGHDy+T/OopV43507d9TFxYW6d+/epTuteRP0hBtAw87fvXjx4q9fffXoZ+0gUVo6sU4znuDhMzPJG4QKiTCS5QMNgLWHx0ozyuXnuOYPOG05kQR3Zr1xmvSPZEhMBpBYTByn7u+RDLFk16fpyR2+v3nz5u8fPny4fPbs2Xfu0jvSdaOYjv8P3pF7dZQ5oocAAAAASUVORK5CYII=",an="/smeditor/assets/cap-e2813a45.png",rn=s.from(tn),p=[];for(let n=0;n<9;n++)p[n]=s.from(new URL(Object.assign({"./tap/0.png":I,"./tap/1.png":U,"./tap/2.png":M,"./tap/3.png":P,"./tap/4.png":y,"./tap/5.png":F,"./tap/6.png":O,"./tap/7.png":Y,"./tap/8.png":G})[`./tap/${n}.png`],self.location).href);const f=[];for(let n=0;n<9;n++)f[n]=s.from(new URL(Object.assign({"./lift/0.png":Q,"./lift/1.png":z,"./lift/2.png":L,"./lift/3.png":_,"./lift/4.png":N,"./lift/5.png":E,"./lift/6.png":j,"./lift/7.png":W,"./lift/8.png":R})[`./lift/${n}.png`],self.location).href);const c={hold:{body:s.from(sn),cap:s.from(an)},roll:{body:s.from(en),cap:s.from(on)}},ln={Left:90,Down:0,Up:180,Right:-90,UpLeft:135,UpRight:-135,DownRight:-45,DownLeft:45},cn=["Receptor","Tap","Lift","Fake","Hold Inactive Head","Hold Active Head","Roll Inactive Head","Roll Active Head","NoteFlash"],gn={elements:{Left:{Receptor:n=>{let o;const t=new C(T(rn,2,1,128,128)[0]);return t.width=64,t.height=64,t.anchor.set(.5),n.noteskin.on(t,"ghosttap",e=>{e.columnNumber==n.columnNumber&&(l.finish(o),o=l.animate(t,{0:{alpha:1.2,width:48,height:48},1:{alpha:1,width:64,height:64}},.06))}),n.noteskin.onUpdate(t,e=>{const i=(e.getVisualBeat()%1+1)%1;t.currentFrame=i<.2?0:1}),t},Tap:n=>{const o=p[[4,8,12,16,24,32,48,64,96,192].indexOf(n.note?.quant??4)??0],t=new r(o);return t.anchor.set(.5),t.width=64,t.height=64,t},NoteFlash:n=>new nn(n.noteskin,n.columnNumber),Fake:{element:"Tap"},Lift:n=>{const o=f[[4,8,12,16,24,32,48,64,96,192].indexOf(n.note?.quant??4)??0],t=new r(o);return t.anchor.set(.5),t.width=64,t.height=64,t},Mine:()=>{const n=new r(a.mineTex);return n.anchor.set(.5),n.width=64,n.height=64,n},"Hold Active Head":{element:"Tap"},"Hold Inactive Head":{element:"Tap"},"Hold Active Body":()=>new m(c.hold.body),"Hold Inactive Body":{element:"Hold Active Body"},"Hold Active TopCap":()=>new r(s.EMPTY),"Hold Inactive TopCap":()=>new r(s.EMPTY),"Hold Active BottomCap":()=>new d(c.hold.cap),"Hold Inactive BottomCap":{element:"Hold Active BottomCap"},"Roll Active Head":{element:"Tap"},"Roll Inactive Head":{element:"Tap"},"Roll Active Body":()=>new m(c.roll.body),"Roll Inactive Body":{element:"Roll Active Body"},"Roll Active TopCap":()=>new r(s.EMPTY),"Roll Inactive TopCap":()=>new r(s.EMPTY),"Roll Active BottomCap":()=>new d(c.roll.cap),"Roll Inactive BottomCap":{element:"Roll Active BottomCap"}}},load:function(n,o){const t=n.columnName;n.columnName="Left";const e=this.loadElement(n,o);return cn.includes(n.element)&&(e.rotation=ln[t]*Math.PI/180),e},init(){a.initArrowTex()},update(n){a.setArrowTexTime(n.chartManager.app)},hideIcons:["Lift"]};export{gn as default}; +20 32 43`,Z=s.from(X);class a{static minePartsTex=v.from(S,{mipmap:w.OFF});static mineBodyGeom;static mineTex;static mineContainer=new h;static loaded=!1;static async initArrowTex(){if(this.loaded)return;a.mineTex=x.create({width:64,height:64,resolution:B.performance.resolution}),this.mineBodyGeom=await u(V);const o=D.from(K,k,{sampler0:this.minePartsTex,time:0}),t=new b(a.mineBodyGeom,o),e=new r(Z);e.width=64,e.height=64,e.anchor.set(.5),e.pivot.y=3,a.mineContainer.position.set(32),a.mineContainer.addChild(t),a.mineContainer.addChild(e),this.loaded=!0}static setArrowTexTime(o){if(!this.loaded)return;const t=o.chartManager.chartView.getVisualTime();a.mineContainer.children[0].shader.uniforms.time=t,a.mineContainer.rotation=t%1*Math.PI*2,o.renderer.render(a.mineContainer,{renderTexture:a.mineTex})}}const q="/smeditor/assets/flash-be9c0562.png",J="/smeditor/assets/mine-590d445e.png",g=s.from(q),$=s.from(J);class nn extends h{standard=new r(g);hold=new r(g);anims=new Set;constructor(o,t){super(),o.on(this,"hit",e=>{t==e.columnNumber&&(this.anims.forEach(i=>l.finish(i)),this.anims.clear(),this.anims.add(l.animate(this.standard,{0:{alpha:1.2,"scale.x":1.1,"scale.y":1.1},1:{alpha:0,"scale.x":1,"scale.y":1}},.15,A(.11,0,.5,0))))}),o.on(this,"held",e=>{t==e.columnNumber&&(this.anims.forEach(i=>l.finish(i)),this.anims.clear(),this.anims.add(l.animate(this.standard,{0:{alpha:1.2,"scale.x":1.1,"scale.y":1.1},1:{alpha:0,"scale.x":1,"scale.y":1}},.09,A(.11,0,.5,0))))}),o.on(this,"holdon",e=>{t==e.columnNumber&&(this.hold.visible=!0)}),o.on(this,"holdoff",e=>{t==e.columnNumber&&(this.hold.visible=!1)}),o.on(this,"rollon",e=>{t==e.columnNumber&&(this.hold.visible=!0)}),o.on(this,"rolloff",e=>{t==e.columnNumber&&(this.hold.visible=!1)}),o.on(this,"hitmine",e=>{if(t==e.columnNumber){const i=new r($);i.alpha=0,i.anchor.set(.5),i.blendMode=H.ADD,this.addChild(i),l.animate(i,{0:{alpha:1,rotation:0},"0.5":{alpha:1,rotation:90*Math.PI/180},1:{alpha:0,rotation:180*Math.PI/180}},.4,void 0,()=>i.destroy())}}),this.standard.alpha=0,this.standard.anchor.set(.5),this.addChild(this.standard),o.onUpdate(this,()=>{this.hold.alpha=Math.sin(Date.now()/1e3*Math.PI*2*20)*.1+1}),this.hold.visible=!1,this.hold.anchor.set(.5),this.addChild(this.hold)}}const tn="/smeditor/assets/receptor-3e38f29b.png",en="/smeditor/assets/body-0862c984.png",on="/smeditor/assets/cap-8cc2992c.png",sn="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IB2cksfwAAAAlwSFlzAAALEwAACxMBAJqcGAAAD5RJREFUeJztXc2O3LgRJqUez3gcB84C60tOueUQ+OTzwtiLnyFAggTZfYA8Sp4hhwTxwY+weQgnQBIY8MEn/8DwJrHjnW6RYZEqqlgqSexpdY8M8cP2qiVSJFVV/FhVVI83KsWZ+9Tu8wlOtFK/+N1vfvX7X/76t9+8f/9v9erVq+bp06f62bNn1fn5mbp9+7Z69OiRevnypXr+/LnabrexIa11/G6tFc+To20LKy2Xu6MxRum6SurTdrFtet3qcK1SoR1sH8+rqrK+Xa0tlvvbrL/Pkv5DeTi3IBxfYNtu2uv+CBdtuGagJVdX463+NmXrdhyu2LegfY/QaOO7qd1zGmNRKqFBqO/+2+126vHjx/b169fqn//6h/r++/+oi/Nzdf/+/e23335jLi7O3//k3r3LJ0+efPenP//lD+7+v7XtXEAH7hMVtWEGULcfxBcPHz782gkpFDq0worChjJ3uR1cOOeKo6Dnvo72X5SyXR28D+vi0Y/Di0kHWWEb1iZtJv1hfSzj5/6gw/9aUaMSoT8T1Kk0aTv2ofvjiMdWwTWWo+HFetgOGIlxfQXr0Lpun8dbWJSnH7XuZH7uFO77Msrfu9ls/ISEz5f3v/jp3Ts/Vg8ePPjaGcAfmX4BgwZg2Xnz9u27jz9vlUEVQ4WgWwNB5UlHWk4NQzISL3hjVEXaHQJtn7bFDWPqft5ObK9q21Ndezg++n3oecfGEeVJ2rZWic/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056rfosPhY+AGwCvUd+/euaRv/fbCO5gpdV9R/MEldgBUA7M/9jmwSwbXvUAMW2La69a0/kfrVygzvA6PwgS6d+5vpOWdm1iV6l7BlpxRHiJTB046p77DGHDy+T/OopV43507d9TFxYW6d+/epTuteRP0hBtAw87fvXjx4q9fffXoZ+0gUVo6sU4znuDhMzPJG4QKiTCS5QMNgLWHx0ozyuXnuOYPOG05kQR3Zr1xmvSPZEhMBpBYTByn7u+RDLFk16fpyR2+v3nz5u8fPny4fPbs2Xfu0jvSdaOYjv8P3pF7dZQ5oocAAAAASUVORK5CYII=",an="/smeditor/assets/cap-e2813a45.png",rn=s.from(tn),p=[];for(let n=0;n<9;n++)p[n]=s.from(new URL(Object.assign({"./tap/0.png":I,"./tap/1.png":U,"./tap/2.png":M,"./tap/3.png":y,"./tap/4.png":P,"./tap/5.png":F,"./tap/6.png":O,"./tap/7.png":Y,"./tap/8.png":G})[`./tap/${n}.png`],self.location).href);const f=[];for(let n=0;n<9;n++)f[n]=s.from(new URL(Object.assign({"./lift/0.png":Q,"./lift/1.png":z,"./lift/2.png":L,"./lift/3.png":_,"./lift/4.png":N,"./lift/5.png":E,"./lift/6.png":j,"./lift/7.png":W,"./lift/8.png":R})[`./lift/${n}.png`],self.location).href);const c={hold:{body:s.from(sn),cap:s.from(an)},roll:{body:s.from(en),cap:s.from(on)}},ln={Left:90,Down:0,Up:180,Right:-90,UpLeft:135,UpRight:-135,DownRight:-45,DownLeft:45},cn=["Receptor","Tap","Lift","Fake","Hold Inactive Head","Hold Active Head","Roll Inactive Head","Roll Active Head","NoteFlash"],gn={elements:{Left:{Receptor:n=>{let o;const t=new C(T(rn,2,1,128,128)[0]);return t.width=64,t.height=64,t.anchor.set(.5),n.noteskin.on(t,"ghosttap",e=>{e.columnNumber==n.columnNumber&&(l.finish(o),o=l.animate(t,{0:{alpha:1.2,width:48,height:48},1:{alpha:1,width:64,height:64}},.06))}),n.noteskin.onUpdate(t,e=>{const i=(e.getVisualBeat()%1+1)%1;t.currentFrame=i<.2?0:1}),t},Tap:n=>{const o=p[[4,8,12,16,24,32,48,64,96,192].indexOf(n.note?.quant??4)??0],t=new r(o);return t.anchor.set(.5),t.width=64,t.height=64,t},NoteFlash:n=>new nn(n.noteskin,n.columnNumber),Fake:{element:"Tap"},Lift:n=>{const o=f[[4,8,12,16,24,32,48,64,96,192].indexOf(n.note?.quant??4)??0],t=new r(o);return t.anchor.set(.5),t.width=64,t.height=64,t},Mine:()=>{const n=new r(a.mineTex);return n.anchor.set(.5),n.width=64,n.height=64,n},"Hold Active Head":{element:"Tap"},"Hold Inactive Head":{element:"Tap"},"Hold Active Body":()=>new m(c.hold.body),"Hold Inactive Body":{element:"Hold Active Body"},"Hold Active TopCap":()=>new r(s.EMPTY),"Hold Inactive TopCap":()=>new r(s.EMPTY),"Hold Active BottomCap":()=>new d(c.hold.cap),"Hold Inactive BottomCap":{element:"Hold Active BottomCap"},"Roll Active Head":{element:"Tap"},"Roll Inactive Head":{element:"Tap"},"Roll Active Body":()=>new m(c.roll.body),"Roll Inactive Body":{element:"Roll Active Body"},"Roll Active TopCap":()=>new r(s.EMPTY),"Roll Inactive TopCap":()=>new r(s.EMPTY),"Roll Active BottomCap":()=>new d(c.roll.cap),"Roll Inactive BottomCap":{element:"Roll Active BottomCap"}}},load:function(n,o){const t=n.columnName;n.columnName="Left";const e=this.loadElement(n,o);return cn.includes(n.element)&&(e.rotation=ln[t]*Math.PI/180),e},init(){a.initArrowTex()},update(n){a.setArrowTexTime(n.chartManager.app)},hideIcons:["Lift"]};export{gn as default}; diff --git a/Noteskin-7178dd69.js b/Noteskin-578b9537.js similarity index 98% rename from Noteskin-7178dd69.js rename to Noteskin-578b9537.js index 6e1bcdd..e600229 100644 --- a/Noteskin-7178dd69.js +++ b/Noteskin-578b9537.js @@ -1 +1 @@ -import{w as o,b as w,z as C,O as B,a1 as u,P as l,Z as I,Q as x,Y as L,V as h,$ as T}from"./ChartManager-d5d16ca9.js";import{A as v}from"./AnimatedSprite-888875f6.js";import{H as m}from"./HoldBody-36fc6457.js";const N="/smeditor/assets/tapCenter-103680e8.png",V="/smeditor/assets/tapDownLeft-17ba3b42.png",y="/smeditor/assets/liftCenter-9712ce74.png",E="/smeditor/assets/liftDownLeft-0205bdc8.png",Q="/smeditor/assets/fakeCenter-581c6a3b.png",R="/smeditor/assets/fakeDownLeft-e3208bb3.png",Z="/smeditor/assets/base-29930c78.png",b="/smeditor/assets/overlay-f63a3b18.png",D="/smeditor/assets/underlay-95144bef.png",d={Tap:{DownLeft:o.from(V),Center:o.from(N)},Lift:{DownLeft:o.from(E),Center:o.from(y)},Fake:{DownLeft:o.from(R),Center:o.from(Q)},Mine:{Base:o.from(Z),Overlay:o.from(b),Underlay:o.from(D)}};class s{static downLeftTex;static downLeftContainer=new w;static centerTex;static centerContainer=new w;static mineTex;static mineContainer=new w;static loaded=!1;static async initArrowTex(){this.loaded||(s.downLeftTex=C.create({width:128*9,height:128*3,resolution:B.performance.resolution}),s.centerTex=C.create({width:128*9,height:128*3,resolution:B.performance.resolution}),s.mineTex=C.create({width:128*9,height:128,resolution:B.performance.resolution}),this.layoutRow(this.downLeftContainer,d.Tap.DownLeft,0),this.layoutRow(this.downLeftContainer,d.Fake.DownLeft,1),this.layoutRow(this.downLeftContainer,d.Lift.DownLeft,2),this.layoutRow(this.centerContainer,d.Tap.Center,0),this.layoutRow(this.centerContainer,d.Fake.Center,1),this.layoutRow(this.centerContainer,d.Lift.Center,2),this.createMines(this.mineContainer),this.loaded=!0)}static layoutRow(t,a,e){const n=u(a,6,9,128,128);for(let A=0;A<9;A++){const c=new v(n[A]);c.x=A*128,c.y=e*128,t.addChild(c)}}static createMines(t){const a=u(d.Mine.Base,1,9,128,128).map(A=>A[0]),e=u(d.Mine.Overlay,1,9,128,128).map(A=>A[0]),n=u(d.Mine.Underlay,1,9,128,128).map(A=>A[0]);for(let A=0;A<9;A++){const c=new l(n[A]);c.x=A*128+64,c.y=64,c.name="u"+A,c.anchor.set(.5);const p=new l(a[A]);p.x=A*128+64,p.y=64,p.name="b"+A,p.anchor.set(.5);const g=new l(e[A]);g.x=A*128+64,g.y=64,g.name="o"+A,g.anchor.set(.5),t.addChild(c,p,g)}}static setArrowTexTime(t){if(!this.loaded)return;const a=t.chartManager.chartView.getVisualBeat(),e=(a%1+1)%1,n=Math.floor(e*6);this.downLeftContainer.children.forEach(A=>A.currentFrame=n),this.centerContainer.children.forEach(A=>A.currentFrame=n),t.renderer.render(s.downLeftContainer,{renderTexture:s.downLeftTex}),t.renderer.render(s.centerContainer,{renderTexture:s.centerTex}),t.renderer.render(s.mineContainer,{renderTexture:s.mineTex});for(let A=0;A<9;A++)this.mineContainer.getChildByName("u"+A).tint=I(Math.round(255-153*e),0,0),this.mineContainer.getChildByName("b"+A).rotation=80/180*Math.PI*a,this.mineContainer.getChildByName("o"+A).rotation=-40/180*Math.PI*a}static setNoteTex(t,a,e){if(a===void 0)return o.WHITE;if(a.type=="Mine"){const n=[4,8,12,16,24,32,48,64,96,192].indexOf(a.quant);t.texture=new o(this.mineTex.baseTexture,new x(Math.min(8,n)*128,0,128,128))}else{const n=[4,8,12,16,24,32,48,64,96,192].indexOf(a.quant),A=this.getNoteRow(a.type),c=e=="Center"?this.centerTex:this.downLeftTex;t.texture=new o(c.baseTexture,new x(Math.min(8,n)*128,A*128,128,128))}}static getNoteRow(t){switch(t){case"Fake":return 1;case"Lift":return 2;default:return 0}}}const q="/smeditor/assets/centerReceptor-44665c43.png",Y="/smeditor/assets/downLeftReceptor-9be8faae.png",U="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAABACAYAAADS1n9/AAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDN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Ybrnjg+OTniP3L96fynQ89kzyaeF/6i/suuFxYvfvjV69fO0ZjRoZfyl5O/bXyl/erA6xmv28bCxh6+yXgzMV70VvvtwXfcdx3vo98PT+R8IH8o/2j5sfVT0Kf7kxmTk/8EA5jz/GMzLdsAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgAABdvkl/FRgAAASdJREFUeNrs3TFqAkEYhuEvy8IKgQ2SwjK1l7DxADZe02prGy9hndIiiDYqqOMZVlCW8Dz9DD//vP18lFLSx3w+/z2fz19N02Q6naZt29zv94zH48xms0wmk7xCKSWllHRdl9VqldPplKqqMgS32y1N02S5XGaxWLx0rt1ul81mk/1+n6qqcjwes91uc7lcMhqNDuv1+qfPffUTM3wn+QxD1Ps9n0n1as+DdX1HAPwjAhAAAkAACAABIAAEgAAQAAJAAAgAASAABIAAEAACQAAIAAEgAASAABAAAkAACAABIAAEgAAQAAJAAAgAASAABIAAEAACQAAIAAEgAASAABAAAkAACAABIAAEgAAQAEMJoLa2warf8Zh/8YH0UB36HngAAAD//wMAIFk3fb/ypPcAAAAASUVORK5CYII=",H="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAABACAYAAADS1n9/AAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiI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iwGSRjuUvTMb9+B1ew9uzt3tICwaNPQaINGQ5nn28yffeffzNk1T5tjv9z/X6/Wzqqq0bZvdbpckGYYhx+Mx5/M5RVHkWcqyfOr+Sz0ej4zjmLnznHtG0zTpui7b7TZJ0vd9TqdTbrdb6rq+HA6H7zl7bhbc4yvJR1ij2e/5vuCQuzmv1v0VAfCPCEAACAABIAAEgAAQAAJAAAgAASAABIAAEAACQAAIAAEgAASAABAAAkAACAABIAAEgAAQAAJAAAgAASAABIAAEAACQAAIAAEgAASAABAAAkAACAABIAAEgAAQAAJAAKwlgI2xrdbmFY/5Gx9Ir9Vl7oI/AAAA//8DAOX/Ln1VvXQfAAAAAElFTkSuQmCC",K="/smeditor/assets/capActive-59a3b423.png",O="/smeditor/assets/capInactive-efc3b952.png";class f extends l{constructor(t,a=64,e=!1){super(t),this.scale.set(a/this.texture.width),this.anchor.x=.5,e&&(this.rotation=Math.PI),this.texture.on("update",()=>{this.scale.set(a/this.texture.width)})}}const P="/smeditor/assets/flash-5a32532f.png",G="/smeditor/assets/mine-590d445e.png",S={w0:[1,1,1,1],w2:[1,1,.3,1],w3:[0,1,.4,1],w4:[.3,.8,1,1],w5:[.8,0,.6,1],held:[1,1,1,1]},z=o.from(P),X=o.from(G);class F extends w{standard=new l(z);standardAnim;anims=new Set;constructor(t,a){super(),this.standard.blendMode=L.ADD;const e=.5;t.on(this,"hit",n=>{if(a==n.columnNumber){const A=S[n.judgement.id]??[1,1,1,1];this.standard.tint=I(A[0]*255,A[1]*255,A[2]*255),h.finish(this.standardAnim),this.standardAnim=h.animate(this.standard,{0:{alpha:1,"scale.x":1*e,"scale.y":1*e},"0.5":{alpha:1.1,"scale.x":1.1*e,"scale.y":1.1*e},1:{alpha:0,"scale.x":1.1*e,"scale.y":1.1*e}},.12)}}),t.on(this,"held",n=>{a==n.columnNumber&&(this.standard.tint=16777215,h.finish(this.standardAnim),this.standardAnim=h.animate(this.standard,{0:{alpha:1,"scale.x":1*e,"scale.y":1*e},"0.5":{alpha:1.1,"scale.x":1.1*e,"scale.y":1.1*e},1:{alpha:0,"scale.x":1.1*e,"scale.y":1.1*e}},.12))}),t.on(this,"holdon",n=>{a==n.columnNumber&&(this.standard.alpha=1)}),t.on(this,"holdoff",n=>{a==n.columnNumber&&(this.standard.alpha=0)}),t.on(this,"rollon",n=>{a==n.columnNumber&&(this.standard.alpha=1)}),t.on(this,"rolloff",n=>{a==n.columnNumber&&(this.standard.alpha=0)}),t.on(this,"hitmine",n=>{if(a==n.columnNumber){const A=new l(X);A.alpha=0,A.anchor.set(.5),A.blendMode=L.ADD,this.addChild(A),h.animate(A,{0:{alpha:1,rotation:0},"0.5":{alpha:1,rotation:90*Math.PI/180},1:{alpha:0,rotation:180*Math.PI/180}},.4,void 0,()=>A.destroy())}}),this.standard.alpha=0,this.standard.anchor.set(.5),this.addChild(this.standard)}}const k="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAABACAYAAADS1n9/AAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+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AABIAAEgAAQAAJAAAgAASAABIAAEAACQAB0JYDi2DqrHOIy5/GBdFct2g74AwAA//8DANl4L31+t8K2AAAAAElFTkSuQmCC",M="/smeditor/assets/capActive-e83fb138.png",W="/smeditor/assets/capInactive-4622d5f2.png",j=o.from(Y),$=o.from(q),i={hold:{active:{body:o.from(U),cap:o.from(K)},inactive:{body:o.from(H),cap:o.from(O)}},roll:{active:{body:o.from(k),cap:o.from(M)},inactive:{body:o.from(J),cap:o.from(W)}}},_={Center:0,DownLeft:0,UpLeft:90,UpRight:180,DownRight:270},AA=["Receptor","Tap","Lift","Fake","Hold Inactive Head","Hold Active Head","Roll Inactive Head","Roll Active Head"],nA={elements:{DownLeft:{Receptor:r=>{const t=new l(r.columnName=="Center"?$:j);t.width=72,t.height=72,t.anchor.set(.5);let a;return r.noteskin.on(t,"ghosttap",e=>{e.columnNumber==r.columnNumber&&(h.finish(a),a=h.animate(t,{0:{width:54,height:54},1:{width:72,height:72}},.11))}),r.noteskin.onUpdate(t,e=>{const n=e.getVisualBeat();let A=204;(n%1+1)%1>.2&&(A=102),t.tint=I(A,A,A)}),t},Tap:r=>{const t=new l(o.WHITE);return s.setNoteTex(t,r.note,r.columnName),t.anchor.set(.5),t.width=72,t.height=72,t},Fake:{element:"Tap"},Lift:{element:"Tap"},Mine:{element:"Tap"},NoteFlash:r=>new F(r.noteskin,r.columnNumber),"Hold Active Head":{element:"Tap"},"Hold Inactive Head":{element:"Tap"},"Hold Active Body":()=>new m(i.hold.active.body),"Hold Inactive Body":()=>new m(i.hold.inactive.body),"Hold Active TopCap":()=>new f(i.hold.active.cap,64,!0),"Hold Inactive TopCap":()=>new f(i.hold.inactive.cap,64,!0),"Hold Active BottomCap":()=>new T(i.hold.active.cap),"Hold Inactive BottomCap":()=>new T(i.hold.inactive.cap),"Roll Active Head":{element:"Tap"},"Roll Inactive Head":{element:"Tap"},"Roll Active Body":()=>new m(i.roll.active.body),"Roll Inactive Body":()=>new m(i.roll.inactive.body),"Roll Active TopCap":()=>new f(i.roll.active.cap,64,!0),"Roll Inactive TopCap":()=>new f(i.roll.inactive.cap,64,!0),"Roll Active BottomCap":()=>new T(i.roll.active.cap),"Roll Inactive BottomCap":()=>new T(i.roll.inactive.cap)}},load:function(r,t){const a=r.columnName;r.columnName="DownLeft";const e=this.loadElement(r,t);return AA.includes(r.element)&&(e.rotation=_[a]*Math.PI/180),e},init(){s.initArrowTex()},update(r){s.setArrowTexTime(r.chartManager.app)},hideIcons:["Lift","Fake"]};export{nA as default}; +import{v as o,b as w,y as C,O as B,a0 as u,L as l,Y as I,P as x,X as L,Q as h,Z as T}from"./ChartManager-47a72d67.js";import{A as v}from"./AnimatedSprite-b795c45d.js";import{H as m}from"./HoldBody-be07a70c.js";const N="/smeditor/assets/tapCenter-103680e8.png",V="/smeditor/assets/tapDownLeft-17ba3b42.png",y="/smeditor/assets/liftCenter-9712ce74.png",E="/smeditor/assets/liftDownLeft-0205bdc8.png",Q="/smeditor/assets/fakeCenter-581c6a3b.png",R="/smeditor/assets/fakeDownLeft-e3208bb3.png",Z="/smeditor/assets/base-29930c78.png",b="/smeditor/assets/overlay-f63a3b18.png",D="/smeditor/assets/underlay-95144bef.png",d={Tap:{DownLeft:o.from(V),Center:o.from(N)},Lift:{DownLeft:o.from(E),Center:o.from(y)},Fake:{DownLeft:o.from(R),Center:o.from(Q)},Mine:{Base:o.from(Z),Overlay:o.from(b),Underlay:o.from(D)}};class s{static downLeftTex;static downLeftContainer=new w;static centerTex;static centerContainer=new w;static mineTex;static mineContainer=new w;static loaded=!1;static async initArrowTex(){this.loaded||(s.downLeftTex=C.create({width:128*9,height:128*3,resolution:B.performance.resolution}),s.centerTex=C.create({width:128*9,height:128*3,resolution:B.performance.resolution}),s.mineTex=C.create({width:128*9,height:128,resolution:B.performance.resolution}),this.layoutRow(this.downLeftContainer,d.Tap.DownLeft,0),this.layoutRow(this.downLeftContainer,d.Fake.DownLeft,1),this.layoutRow(this.downLeftContainer,d.Lift.DownLeft,2),this.layoutRow(this.centerContainer,d.Tap.Center,0),this.layoutRow(this.centerContainer,d.Fake.Center,1),this.layoutRow(this.centerContainer,d.Lift.Center,2),this.createMines(this.mineContainer),this.loaded=!0)}static layoutRow(t,a,e){const n=u(a,6,9,128,128);for(let A=0;A<9;A++){const c=new v(n[A]);c.x=A*128,c.y=e*128,t.addChild(c)}}static createMines(t){const a=u(d.Mine.Base,1,9,128,128).map(A=>A[0]),e=u(d.Mine.Overlay,1,9,128,128).map(A=>A[0]),n=u(d.Mine.Underlay,1,9,128,128).map(A=>A[0]);for(let A=0;A<9;A++){const c=new l(n[A]);c.x=A*128+64,c.y=64,c.name="u"+A,c.anchor.set(.5);const p=new l(a[A]);p.x=A*128+64,p.y=64,p.name="b"+A,p.anchor.set(.5);const g=new l(e[A]);g.x=A*128+64,g.y=64,g.name="o"+A,g.anchor.set(.5),t.addChild(c,p,g)}}static setArrowTexTime(t){if(!this.loaded)return;const a=t.chartManager.chartView.getVisualBeat(),e=(a%1+1)%1,n=Math.floor(e*6);this.downLeftContainer.children.forEach(A=>A.currentFrame=n),this.centerContainer.children.forEach(A=>A.currentFrame=n),t.renderer.render(s.downLeftContainer,{renderTexture:s.downLeftTex}),t.renderer.render(s.centerContainer,{renderTexture:s.centerTex}),t.renderer.render(s.mineContainer,{renderTexture:s.mineTex});for(let A=0;A<9;A++)this.mineContainer.getChildByName("u"+A).tint=I(Math.round(255-153*e),0,0),this.mineContainer.getChildByName("b"+A).rotation=80/180*Math.PI*a,this.mineContainer.getChildByName("o"+A).rotation=-40/180*Math.PI*a}static setNoteTex(t,a,e){if(a===void 0)return o.WHITE;if(a.type=="Mine"){const n=[4,8,12,16,24,32,48,64,96,192].indexOf(a.quant);t.texture=new o(this.mineTex.baseTexture,new x(Math.min(8,n)*128,0,128,128))}else{const n=[4,8,12,16,24,32,48,64,96,192].indexOf(a.quant),A=this.getNoteRow(a.type),c=e=="Center"?this.centerTex:this.downLeftTex;t.texture=new o(c.baseTexture,new x(Math.min(8,n)*128,A*128,128,128))}}static getNoteRow(t){switch(t){case"Fake":return 1;case"Lift":return 2;default:return 0}}}const q="/smeditor/assets/centerReceptor-44665c43.png",Y="/smeditor/assets/downLeftReceptor-9be8faae.png",U="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAABACAYAAADS1n9/AAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgDgGiD4c93/+8//UegJQCAZkmScQAAXkQkLlTKsz/HCAAARKCBKrBBG/TBGCzABhzBBdzBC/xgNoRCJMTCQhBCCmSAHHJgKayCQiiG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Xa1ObXHtxwPSA/0HIw6217nU1R3SPVRSj9Yr60cOxx++/p3vdy0NNg1VjZzG4iNwRHnk6fcJ3/ceDTradox7rOEH0x92HWcdL2pCmvKaRptTmvtbYlu6T8w+0dbq3nr8R9sfD5w0PFl5SvNUyWna6YLTk2fyz4ydlZ19fi753GDborZ752PO32oPb++6EHTh0kX/i+c7vDvOXPK4dPKy2+UTV7hXmq86X23qdOo8/pPTT8e7nLuarrlca7nuer21e2b36RueN87d9L158Rb/1tWeOT3dvfN6b/fF9/XfFt1+cif9zsu72Xcn7q28T7xf9EDtQdlD3YfVP1v+3Njv3H9qwHeg89HcR/cGhYPP/pH1jw9DBY+Zj8uGDYbrnjg+OTniP3L96fynQ89kzyaeF/6i/suuFxYvfvjV69fO0ZjRoZfyl5O/bXyl/erA6xmv28bCxh6+yXgzMV70VvvtwXfcdx3vo98PT+R8IH8o/2j5sfVT0Kf7kxmTk/8EA5jz/GMzLdsAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgAABdvkl/FRgAAASdJREFUeNrs3TFqAkEYhuEvy8IKgQ2SwjK1l7DxADZe02prGy9hndIiiDYqqOMZVlCW8Dz9DD//vP18lFLSx3w+/z2fz19N02Q6naZt29zv94zH48xms0wmk7xCKSWllHRdl9VqldPplKqqMgS32y1N02S5XGaxWLx0rt1ul81mk/1+n6qqcjwes91uc7lcMhqNDuv1+qfPffUTM3wn+QxD1Ps9n0n1as+DdX1HAPwjAhAAAkAACAABIAAEgAAQAAJAAAgAASAABIAAEAACQAAIAAEgAASAABAAAkAACAABIAAEgAAQAAJAAAgAASAABIAAEAACQAAIAAEgAASAABAAAkAACAABIAAEgAAQAEMJoLa2warf8Zh/8YH0UB36HngAAAD//wMAIFk3fb/ypPcAAAAASUVORK5CYII=",H="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAABACAYAAADS1n9/AAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3Ag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8/pPTT8e7nLuarrlca7nuer21e2b36RueN87d9L158Rb/1tWeOT3dvfN6b/fF9/XfFt1+cif9zsu72Xcn7q28T7xf9EDtQdlD3YfVP1v+3Njv3H9qwHeg89HcR/cGhYPP/pH1jw9DBY+Zj8uGDYbrnjg+OTniP3L96fynQ89kzyaeF/6i/suuFxYvfvjV69fO0ZjRoZfyl5O/bXyl/erA6xmv28bCxh6+yXgzMV70VvvtwXfcdx3vo98PT+R8IH8o/2j5sfVT0Kf7kxmTk/8EA5jz/GMzLdsAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgAABdvkl/FRgAAARNJREFUeNrs3b9uglAYh+FfiwGSRjuUvTMb9+B1ew9uzt3tICwaNPQaINGQ5nn28yffeffzNk1T5tjv9z/X6/Wzqqq0bZvdbpckGYYhx+Mx5/M5RVHkWcqyfOr+Sz0ej4zjmLnznHtG0zTpui7b7TZJ0vd9TqdTbrdb6rq+HA6H7zl7bhbc4yvJR1ij2e/5vuCQuzmv1v0VAfCPCEAACAABIAAEgAAQAAJAAAgAASAABIAAEAACQAAIAAEgAASAABAAAkAACAABIAAEgAAQAAJAAAgAASAABIAAEAACQAAIAAEgAASAABAAAkAACAABIAAEgAAQAAJAAKwlgI2xrdbmFY/5Gx9Ir9Vl7oI/AAAA//8DAOX/Ln1VvXQfAAAAAElFTkSuQmCC",K="/smeditor/assets/capActive-59a3b423.png",O="/smeditor/assets/capInactive-efc3b952.png";class f extends l{constructor(t,a=64,e=!1){super(t),this.scale.set(a/this.texture.width),this.anchor.x=.5,e&&(this.rotation=Math.PI),this.texture.on("update",()=>{this.scale.set(a/this.texture.width)})}}const P="/smeditor/assets/flash-5a32532f.png",G="/smeditor/assets/mine-590d445e.png",S={w0:[1,1,1,1],w2:[1,1,.3,1],w3:[0,1,.4,1],w4:[.3,.8,1,1],w5:[.8,0,.6,1],held:[1,1,1,1]},z=o.from(P),X=o.from(G);class F extends w{standard=new l(z);standardAnim;anims=new Set;constructor(t,a){super(),this.standard.blendMode=L.ADD;const e=.5;t.on(this,"hit",n=>{if(a==n.columnNumber){const A=S[n.judgement.id]??[1,1,1,1];this.standard.tint=I(A[0]*255,A[1]*255,A[2]*255),h.finish(this.standardAnim),this.standardAnim=h.animate(this.standard,{0:{alpha:1,"scale.x":1*e,"scale.y":1*e},"0.5":{alpha:1.1,"scale.x":1.1*e,"scale.y":1.1*e},1:{alpha:0,"scale.x":1.1*e,"scale.y":1.1*e}},.12)}}),t.on(this,"held",n=>{a==n.columnNumber&&(this.standard.tint=16777215,h.finish(this.standardAnim),this.standardAnim=h.animate(this.standard,{0:{alpha:1,"scale.x":1*e,"scale.y":1*e},"0.5":{alpha:1.1,"scale.x":1.1*e,"scale.y":1.1*e},1:{alpha:0,"scale.x":1.1*e,"scale.y":1.1*e}},.12))}),t.on(this,"holdon",n=>{a==n.columnNumber&&(this.standard.alpha=1)}),t.on(this,"holdoff",n=>{a==n.columnNumber&&(this.standard.alpha=0)}),t.on(this,"rollon",n=>{a==n.columnNumber&&(this.standard.alpha=1)}),t.on(this,"rolloff",n=>{a==n.columnNumber&&(this.standard.alpha=0)}),t.on(this,"hitmine",n=>{if(a==n.columnNumber){const A=new l(X);A.alpha=0,A.anchor.set(.5),A.blendMode=L.ADD,this.addChild(A),h.animate(A,{0:{alpha:1,rotation:0},"0.5":{alpha:1,rotation:90*Math.PI/180},1:{alpha:0,rotation:180*Math.PI/180}},.4,void 0,()=>A.destroy())}}),this.standard.alpha=0,this.standard.anchor.set(.5),this.addChild(this.standard)}}const k="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAABACAYAAADS1n9/AAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAy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AAICDAAD5/wAAgOkAAHUwAADqYAAAOpgAABdvkl/FRgAAAShJREFUeNrs3T1OAkEAhuEPHCEEEgq0sDBGK49g4wG8h8fyHh7AxiNYaYyFhVKQQBSy7HqGJYFszPP085OZd+rpNU2TNq7ub96r5XpaxoOc3F5meDpJkmzmq3w+vuTnY5Fe6WdfjkbH6Zd+0kt3NEmzrbP9rdLUzf6WqeqMzqc5u7vOYDZOkqy/lvl+eku12qRMhovXh+eLNnOWHfYxSzIOXdT6Pnd5qpVz7qzqEAHwjwhAAAgAASAABIAAEAACQAAIAAEgAASAABAAAkAACAABIAAEgAAQAAJAAAgAASAABIAAEAACQAAIAAEgAASAABAAAkAACAABIAAEgAAQAAJAAAgAASAABIAAEAACQAB0JYDi2DqrHOIy5/GBdFct2g74AwAA//8DANl4L31+t8K2AAAAAElFTkSuQmCC",M="/smeditor/assets/capActive-e83fb138.png",W="/smeditor/assets/capInactive-4622d5f2.png",j=o.from(Y),$=o.from(q),i={hold:{active:{body:o.from(U),cap:o.from(K)},inactive:{body:o.from(H),cap:o.from(O)}},roll:{active:{body:o.from(k),cap:o.from(M)},inactive:{body:o.from(J),cap:o.from(W)}}},_={Center:0,DownLeft:0,UpLeft:90,UpRight:180,DownRight:270},AA=["Receptor","Tap","Lift","Fake","Hold Inactive Head","Hold Active Head","Roll Inactive Head","Roll Active Head"],nA={elements:{DownLeft:{Receptor:r=>{const t=new l(r.columnName=="Center"?$:j);t.width=72,t.height=72,t.anchor.set(.5);let a;return r.noteskin.on(t,"ghosttap",e=>{e.columnNumber==r.columnNumber&&(h.finish(a),a=h.animate(t,{0:{width:54,height:54},1:{width:72,height:72}},.11))}),r.noteskin.onUpdate(t,e=>{const n=e.getVisualBeat();let A=204;(n%1+1)%1>.2&&(A=102),t.tint=I(A,A,A)}),t},Tap:r=>{const t=new l(o.WHITE);return s.setNoteTex(t,r.note,r.columnName),t.anchor.set(.5),t.width=72,t.height=72,t},Fake:{element:"Tap"},Lift:{element:"Tap"},Mine:{element:"Tap"},NoteFlash:r=>new F(r.noteskin,r.columnNumber),"Hold Active Head":{element:"Tap"},"Hold Inactive Head":{element:"Tap"},"Hold Active Body":()=>new m(i.hold.active.body),"Hold Inactive Body":()=>new m(i.hold.inactive.body),"Hold Active TopCap":()=>new f(i.hold.active.cap,64,!0),"Hold Inactive TopCap":()=>new f(i.hold.inactive.cap,64,!0),"Hold Active BottomCap":()=>new T(i.hold.active.cap),"Hold Inactive BottomCap":()=>new T(i.hold.inactive.cap),"Roll Active Head":{element:"Tap"},"Roll Inactive Head":{element:"Tap"},"Roll Active Body":()=>new m(i.roll.active.body),"Roll Inactive Body":()=>new m(i.roll.inactive.body),"Roll Active TopCap":()=>new f(i.roll.active.cap,64,!0),"Roll Inactive TopCap":()=>new f(i.roll.inactive.cap,64,!0),"Roll Active BottomCap":()=>new T(i.roll.active.cap),"Roll Inactive BottomCap":()=>new T(i.roll.inactive.cap)}},load:function(r,t){const a=r.columnName;r.columnName="DownLeft";const e=this.loadElement(r,t);return AA.includes(r.element)&&(e.rotation=_[a]*Math.PI/180),e},init(){s.initArrowTex()},update(r){s.setArrowTexTime(r.chartManager.app)},hideIcons:["Lift","Fake"]};export{nA as default}; diff --git a/Noteskin-38ed4224.js b/Noteskin-619dd7ae.js similarity index 95% rename from Noteskin-38ed4224.js rename to Noteskin-619dd7ae.js index 98cfc5d..628bff5 100644 --- a/Noteskin-38ed4224.js +++ b/Noteskin-619dd7ae.js @@ -1 +1 @@ -import{w as o,b as r,a1 as i,P as g,Y as c,V as l,$ as s}from"./ChartManager-d5d16ca9.js";import{A as B}from"./AnimatedSprite-888875f6.js";import{H as h}from"./HoldBody-36fc6457.js";const D="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAABACAYAAADS1n9/AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsEAAA7BAbiRa+0AAAOLSURBVHhe7ZvLitRAGEY7KuMFbyiiggsviCheVuozCF72vogrV658Effqw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FJvxSKBeAwZJfC08w/jzY0AiGmPbWIk+Hmf8xZGU1YF2EVILPKU81px6/McYYY4wxxhhjjDHGGGOMMcaYQcEbQWHVpAhvwpiEcQNImtHoDycKQp3RP5gyAAAAAElFTkSuQmCC",d="/smeditor/assets/mine-590d445e.png",C=o.from(D),m=o.from(d);class f extends r{hold=new B(i(C,2,1,64,64)[0]);anims=new Set;constructor(e,A){super(),e.on(this,"holdon",n=>{A==n.columnNumber&&(this.hold.visible=!0)}),e.on(this,"holdoff",n=>{A==n.columnNumber&&(this.hold.visible=!1)}),e.on(this,"rollon",n=>{A==n.columnNumber&&(this.hold.visible=!0)}),e.on(this,"rolloff",n=>{A==n.columnNumber&&(this.hold.visible=!1)}),e.on(this,"hitmine",n=>{if(A==n.columnNumber){const a=new g(m);a.alpha=0,a.anchor.set(.5),a.blendMode=c.ADD,this.addChild(a),l.animate(a,{0:{alpha:1,rotation:0},"0.5":{alpha:1,rotation:90*Math.PI/180},1:{alpha:0,rotation:180*Math.PI/180}},.4,void 0,()=>a.destroy())}}),e.onUpdate(this,()=>{this.hold.alpha=Math.sin(Date.now()/1e3*Math.PI*2*20)*.1+1}),this.hold.visible=!1,this.hold.anchor.set(.5),this.addChild(this.hold)}}const w="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAACACAMAAACMX59YAAAAIVBMVEUAAAD///+6urq4uLizs7OoqKinp6ecnJyVlZWUlJSIiIh18TD6AAAAAXRSTlMAQObYZgAAAKhJREFUeNrt2AMCA0EQRNFRVXD/A8fmWv/F6vTuCOGj+CBUMGgAAMDw4p4UKpHiXpsB3HsGfg7g1/+QfL68furfGUiWrnc1MogPfmZgVQsgtZ2Bqmbg1wwq8XA1sf1DAACM3+v8oILv84Pxr97ZPwAAxL2UQyUlNVwzyQ2XfW5//0DV5gevAfx9ftDH8n/wAJUPYeYVqf39AwAA+wfrtVbbzf52fAyf7ADSzwa2IX7vawAAAABJRU5ErkJggg==",E="data:image/png;base64,iVBORw0KGgoA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ORw0KGgoAAAANSUhEUgAAAgAAAABACAMAAABbYT+NAAAAOVBMVEUAAAAAAAAICAgoKChAQEBfAABvAACRAACYmJieAACoqKi4uLi7AADQ0NDRAADg4ODpAADw8PD////pSTDZAAAAAXRSTlMAQObYZgAAATxJREFUeNrt2EGOgzAMQNGxSVxI0hK4/2Fnokx7AHuBVP7bf0W2WgT5AQAAAAAAAAAAAAAAAAAAAAAAAPB9ZLhrTy+q2bKKBPoc6SXcD9Hz4/Nftv8lpbQEelv3Y19NxdnnXmrp2d+33ntz96K2bZupBM+Pz3/R/lP560savYfa8xyeJr4+r3VYs3OA/OrDy9vrow0PjZ8fn9+//+rdf5r9M3n3t57TquLqe526s299as7e2mTR8+PzX7H/pZxTWcT3B9jPac/i6kudirPvb75etzZtGjw/Pv8V+0+fPvl+AHac02G+Aerb/X4A8fnj+0+fPvEE4AnAOwDvAP6vAA2+BevNvwLUuf96DtU0+BWg3ANwD+AhEryJkjvfBMb7+P7/bwK5C6cHAAAAAAAAAAAAAAAAAAAAAADAl/kFHH4jM43eaVYAAAAASUVORK5CYII=",v="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAABAAgMAAACvuJfsAAAACVBMVEVlAEsAAAD////TJSq6AAAAAXRSTlMAQObYZgAAACxJREFUSMdjYBgFo2CoAa5VKGABOp+BA1W9Ajp/VMGoAnorIJhoR8EoGGoAAAiuLhkqD4nBAAAAAElFTkSuQmCC",Q="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAAIACAMAAAAFcJqpAAAAflBMVEUAAAD///8AAAAAQP8A/wAA//8BAQECAgIDAwMEBAQFAAAFBQUGBgYHBwcICAgJAAAJCQkKCgoLCwsODg5AQEBAUIBAgEBAgIB/Pz+APz+AQECAQHCAaUCAgECCPj6EPT2oqKj5AAD7AQH7AgL8AQH+AAD/AL//pAD//wD///82s5ztAAAAAnRSTlMAAHaTzTgAAAHgSURBVHja7djZTgIxFIBh1wPIIjhu4IJsLu//gsapTUCpctomPZP5v0uif5ouc3GOjgAAOX0kcIETZzIej0bD4WDQ7/d63U5H5GTLhXPpdN2PPrDZtnA2B9gfUFAF1l+Wy9UqHJjVnp3pl9ke7sc/AofZDVR/B+7/DSSvwAfmP//M34EDA7/+XxuYlQtI6iZKrlPIEthzfetbPf2+4vN5OFBbLutXs454jYvk57yIDzj1t+r7y3Wx9TET6XS63V6/PxgMh6PReDyZXF3tfNJSP6oAAAAA84PQ/OA0krnAjULmQFV8BcGAvwMtCEjqJordY1QGGv2cmR8AAAAAVucHZ5HMBW4VMgeq4isIBvwdaEFAUjdR7B6jMtDo58z8AAAAALA6P3iPZC7wpJA5UBVfQTDg70ALApK6iWL3GJWBRj9n5gcAAACA1fnBayRzgQeFzIGq+AqCAX8HWhCQ1E0Uu8eoDDT6OTM/AAAAAKzOD94imQs8KmQOVMVXEAz4O9CCgKRuotg9RmWg0c+Z+QEAAABgdX5wHslc4E4hc6AqvoJgwN+BFgQkdRPF7jEqA41+zswPAAAAAKvzg5dI5gLXCpkDVfEVBAP+DrQgIKmbKHaPURlo9HNmfgAAznGi8oFPHljdxHwy+70AAAAASUVORK5CYII=",U=i(o.from(v),2,1,64,64)[0],R=i(o.from(M),8,1,64,64)[0],I=i(o.from(Q),1,8,64,64),H=i(o.from(P),1,8,64,64),T=i(o.from(p),1,8,64,64),u=o.from(E),V=o.from(w),S={elements:{Left:{Receptor:t=>{let e;const A=new B(U);return A.width=64,A.height=64,A.anchor.set(.5),t.noteskin.on(A,"ghosttap",n=>{n.columnNumber==t.columnNumber&&(l.finish(e),e=l.animate(A,{0:{alpha:1.2,width:48,height:48},1:{alpha:1,width:64,height:64}},.06))}),t.noteskin.onUpdate(A,n=>{const a=(n.getVisualBeat()%1+1)%1;A.currentFrame=a<.2?0:1}),A},Tap:t=>{const e=I[Math.min([4,8,12,16,24,32,48,64,96,192].indexOf(t.note?.quant??4)??0,7)],A=new g(e[0]);return A.anchor.set(.5),A.width=64,A.height=64,A},NoteFlash:t=>new f(t.noteskin,t.columnNumber),Fake:{element:"Tap"},Lift:t=>{const e=T[Math.min([4,8,12,16,24,32,48,64,96,192].indexOf(t.note?.quant??4)??0,7)],A=new g(e[0]);return A.anchor.set(.5),A.width=64,A.height=64,A},Mine:t=>{const e=new B(R);return e.anchor.set(.5),e.width=64,e.height=64,t.noteskin.onUpdate(e,A=>e.currentFrame=Math.floor((A.getVisualBeat()%4+4)%4*2)),e},"Hold Active Head":t=>{const e=H[Math.min([4,8,12,16,24,32,48,64,96,192].indexOf(t.note?.quant??4)??0,7)],A=new g(e[0]);return A.anchor.set(.5),A.width=64,A.height=64,A},"Hold Inactive Head":{element:"Tap"},"Hold Active Body":()=>new h(u),"Hold Inactive Body":{element:"Hold Active Body"},"Hold Active TopCap":()=>new g(o.EMPTY),"Hold Inactive TopCap":()=>new g(o.EMPTY),"Hold Active BottomCap":()=>new s(o.EMPTY),"Hold Inactive BottomCap":{element:"Hold Active BottomCap"},"Roll Active Head":{element:"Hold Active Head"},"Roll Inactive Head":{element:"Tap"},"Roll Active Body":()=>new h(V),"Roll Inactive Body":{element:"Roll Active Body"},"Roll Active TopCap":()=>new g(o.EMPTY),"Roll Inactive TopCap":()=>new g(o.EMPTY),"Roll Active BottomCap":()=>new s(o.EMPTY),"Roll Inactive BottomCap":{element:"Roll Active BottomCap"}}},load:function(t,e){return t.columnName="Left",this.loadElement(t,e)},hideIcons:["Lift"]};export{S as default}; +import{v as o,b as r,a0 as i,L as g,X as c,Q as l,Z as s}from"./ChartManager-47a72d67.js";import{A as B}from"./AnimatedSprite-b795c45d.js";import{H as h}from"./HoldBody-be07a70c.js";const D="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAABACAYAAADS1n9/AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsEAAA7BAbiRa+0AAAOLSURBVHhe7ZvLitRAGEY7KuMFbyiiggsviCheVuozCF72vogrV658EffqwmdQV/aAOsioC0FFFG/gBZ32O6FqiL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Ik+Hmf8xZGU1YF2EVILPKU81px6/McYYY4wxxhhjjDHGGGOMMcaYQcEbQWHVpAhvwpiEcQNImtHoDycKQp3RP5gyAAAAAElFTkSuQmCC",d="/smeditor/assets/mine-590d445e.png",C=o.from(D),m=o.from(d);class f extends r{hold=new B(i(C,2,1,64,64)[0]);anims=new Set;constructor(e,A){super(),e.on(this,"holdon",n=>{A==n.columnNumber&&(this.hold.visible=!0)}),e.on(this,"holdoff",n=>{A==n.columnNumber&&(this.hold.visible=!1)}),e.on(this,"rollon",n=>{A==n.columnNumber&&(this.hold.visible=!0)}),e.on(this,"rolloff",n=>{A==n.columnNumber&&(this.hold.visible=!1)}),e.on(this,"hitmine",n=>{if(A==n.columnNumber){const a=new g(m);a.alpha=0,a.anchor.set(.5),a.blendMode=c.ADD,this.addChild(a),l.animate(a,{0:{alpha:1,rotation:0},"0.5":{alpha:1,rotation:90*Math.PI/180},1:{alpha:0,rotation:180*Math.PI/180}},.4,void 0,()=>a.destroy())}}),e.onUpdate(this,()=>{this.hold.alpha=Math.sin(Date.now()/1e3*Math.PI*2*20)*.1+1}),this.hold.visible=!1,this.hold.anchor.set(.5),this.addChild(this.hold)}}const w="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAACACAMAAACMX59YAAAAIVBMVEUAAAD///+6urq4uLizs7OoqKinp6ecnJyVlZWUlJSIiIh18TD6AAAAAXRSTlMAQObYZgAAAKhJREFUeNrt2AMCA0EQRNFRVXD/A8fmWv/F6vTuCOGj+CBUMGgAAMDw4p4UKpHiXpsB3HsGfg7g1/+QfL68furfGUiWrnc1MogPfmZgVQsgtZ2Bqmbg1wwq8XA1sf1DAACM3+v8oILv84Pxr97ZPwAAxL2UQyUlNVwzyQ2XfW5//0DV5gevAfx9ftDH8n/wAJUPYeYVqf39AwAA+wfrtVbbzf52fAyf7ADSzwa2IX7vawAAAABJRU5ErkJggg==",E="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAACAAgMAAADG74f5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AAABbYT+NAAAAOVBMVEUAAAAAAAAICAgoKChAQEBfAABvAACRAACYmJieAACoqKi4uLi7AADQ0NDRAADg4ODpAADw8PD////pSTDZAAAAAXRSTlMAQObYZgAAATxJREFUeNrt2EGOgzAMQNGxSVxI0hK4/2Fnokx7AHuBVP7bf0W2WgT5AQAAAAAAAAAAAAAAAAAAAAAAAPB9ZLhrTy+q2bKKBPoc6SXcD9Hz4/Nftv8lpbQEelv3Y19NxdnnXmrp2d+33ntz96K2bZupBM+Pz3/R/lP560savYfa8xyeJr4+r3VYs3OA/OrDy9vrow0PjZ8fn9+//+rdf5r9M3n3t57TquLqe526s299as7e2mTR8+PzX7H/pZxTWcT3B9jPac/i6kudirPvb75etzZtGjw/Pv8V+0+fPvl+AHac02G+Aerb/X4A8fnj+0+fPvEE4AnAOwDvAP6vAA2+BevNvwLUuf96DtU0+BWg3ANwD+AhEryJkjvfBMb7+P7/bwK5C6cHAAAAAAAAAAAAAAAAAAAAAADAl/kFHH4jM43eaVYAAAAASUVORK5CYII=",M="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAABAAgMAAACvuJfsAAAACVBMVEVlAEsAAAD////TJSq6AAAAAXRSTlMAQObYZgAAACxJREFUSMdjYBgFo2CoAa5VKGABOp+BA1W9Ajp/VMGoAnorIJhoR8EoGGoAAAiuLhkqD4nBAAAAAElFTkSuQmCC",Q="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAAIACAMAAAAFcJqpAAAAflBMVEUAAAD///8AAAAAQP8A/wAA//8BAQECAgIDAwMEBAQFAAAFBQUGBgYHBwcICAgJAAAJCQkKCgoLCwsODg5AQEBAUIBAgEBAgIB/Pz+APz+AQECAQHCAaUCAgECCPj6EPT2oqKj5AAD7AQH7AgL8AQH+AAD/AL//pAD//wD///82s5ztAAAAAnRSTlMAAHaTzTgAAAHgSURBVHja7djZTgIxFIBh1wPIIjhu4IJsLu//gsapTUCpctomPZP5v0uif5ouc3GOjgAAOX0kcIETZzIej0bD4WDQ7/d63U5H5GTLhXPpdN2PPrDZtnA2B9gfUFAF1l+Wy9UqHJjVnp3pl9ke7sc/AofZDVR/B+7/DSSvwAfmP//M34EDA7/+XxuYlQtI6iZKrlPIEthzfetbPf2+4vN5OFBbLutXs454jYvk57yIDzj1t+r7y3Wx9TET6XS63V6/PxgMh6PReDyZXF3tfNJSP6oAAAAA84PQ/OA0krnAjULmQFV8BcGAvwMtCEjqJordY1QGGv2cmR8AAAAAVucHZ5HMBW4VMgeq4isIBvwdaEFAUjdR7B6jMtDo58z8AAAAALA6P3iPZC7wpJA5UBVfQTDg70ALApK6iWL3GJWBRj9n5gcAAACA1fnBayRzgQeFzIGq+AqCAX8HWhCQ1E0Uu8eoDDT6OTM/AAAAAKzOD94imQs8KmQOVMVXEAz4O9CCgKRuotg9RmWg0c+Z+QEAAABgdX5wHslc4E4hc6AqvoJgwN+BFgQkdRPF7jEqA41+zswPAAAAAKvzg5dI5gLXCpkDVfEVBAP+DrQgIKmbKHaPURlo9HNmfgAAznGi8oFPHljdxHwy+70AAAAASUVORK5CYII=",U=i(o.from(M),2,1,64,64)[0],R=i(o.from(v),8,1,64,64)[0],I=i(o.from(Q),1,8,64,64),H=i(o.from(P),1,8,64,64),T=i(o.from(p),1,8,64,64),u=o.from(E),V=o.from(w),S={elements:{Left:{Receptor:t=>{let e;const A=new B(U);return A.width=64,A.height=64,A.anchor.set(.5),t.noteskin.on(A,"ghosttap",n=>{n.columnNumber==t.columnNumber&&(l.finish(e),e=l.animate(A,{0:{alpha:1.2,width:48,height:48},1:{alpha:1,width:64,height:64}},.06))}),t.noteskin.onUpdate(A,n=>{const a=(n.getVisualBeat()%1+1)%1;A.currentFrame=a<.2?0:1}),A},Tap:t=>{const e=I[Math.min([4,8,12,16,24,32,48,64,96,192].indexOf(t.note?.quant??4)??0,7)],A=new g(e[0]);return A.anchor.set(.5),A.width=64,A.height=64,A},NoteFlash:t=>new f(t.noteskin,t.columnNumber),Fake:{element:"Tap"},Lift:t=>{const e=T[Math.min([4,8,12,16,24,32,48,64,96,192].indexOf(t.note?.quant??4)??0,7)],A=new g(e[0]);return A.anchor.set(.5),A.width=64,A.height=64,A},Mine:t=>{const e=new B(R);return e.anchor.set(.5),e.width=64,e.height=64,t.noteskin.onUpdate(e,A=>e.currentFrame=Math.floor((A.getVisualBeat()%4+4)%4*2)),e},"Hold Active Head":t=>{const e=H[Math.min([4,8,12,16,24,32,48,64,96,192].indexOf(t.note?.quant??4)??0,7)],A=new g(e[0]);return A.anchor.set(.5),A.width=64,A.height=64,A},"Hold Inactive Head":{element:"Tap"},"Hold Active Body":()=>new h(u),"Hold Inactive Body":{element:"Hold Active Body"},"Hold Active TopCap":()=>new g(o.EMPTY),"Hold Inactive TopCap":()=>new g(o.EMPTY),"Hold Active BottomCap":()=>new s(o.EMPTY),"Hold Inactive BottomCap":{element:"Hold Active BottomCap"},"Roll Active Head":{element:"Hold Active Head"},"Roll Inactive Head":{element:"Tap"},"Roll Active Body":()=>new h(V),"Roll Inactive Body":{element:"Roll Active Body"},"Roll Active TopCap":()=>new g(o.EMPTY),"Roll Inactive TopCap":()=>new g(o.EMPTY),"Roll Active BottomCap":()=>new s(o.EMPTY),"Roll Inactive BottomCap":{element:"Roll Active BottomCap"}}},load:function(t,e){return t.columnName="Left",this.loadElement(t,e)},hideIcons:["Lift"]};export{S as default}; diff --git a/Noteskin-8545d825.js b/Noteskin-7ba57491.js similarity index 98% rename from Noteskin-8545d825.js rename to Noteskin-7ba57491.js index bdf8c6c..1589202 100644 --- a/Noteskin-8545d825.js +++ b/Noteskin-7ba57491.js @@ -1,4 +1,4 @@ -import{w as a,a1 as T,x as B,y as N,b as p,z as f,O as u,H as y,J as V,L as E,P as r,Q,Z as x,V as c,Y as w,$ as h,a0 as L}from"./ChartManager-d5d16ca9.js";import{A as C}from"./AnimatedSprite-888875f6.js";import{H as m}from"./HoldBody-36fc6457.js";const P="/smeditor/assets/frame-d599a2fe.png",H="/smeditor/assets/parts-b37af2cf.png",b=`precision mediump float; +import{v as a,a0 as T,w as B,x as N,b as p,y as f,O as u,z as y,H as V,J as E,L as r,P as Q,Y as x,Q as c,X as w,Z as h,$ as L}from"./ChartManager-47a72d67.js";import{A as C}from"./AnimatedSprite-b795c45d.js";import{H as m}from"./HoldBody-be07a70c.js";const P="/smeditor/assets/frame-d599a2fe.png",H="/smeditor/assets/parts-b37af2cf.png",b=`precision mediump float; varying vec2 vUvs; diff --git a/Noteskin-d61aa979.js b/Noteskin-7e766ee5.js similarity index 98% rename from Noteskin-d61aa979.js rename to Noteskin-7e766ee5.js index 0405bd3..b95bdb9 100644 --- a/Noteskin-d61aa979.js +++ b/Noteskin-7e766ee5.js @@ -1,4 +1,4 @@ -import{w as a,a1 as T,x as u,y as Q,b as d,z as C,O as f,H as E,J as N,L as y,P as r,Q as D,Z as B,V as c,Y as v,$ as p,a0 as H}from"./ChartManager-d5d16ca9.js";import{A as I}from"./AnimatedSprite-888875f6.js";import{H as h}from"./HoldBody-36fc6457.js";const P="/smeditor/assets/frame-d599a2fe.png",Y="/smeditor/assets/parts-b37af2cf.png",Z=`precision mediump float; +import{v as a,a0 as T,w as u,x as Q,b as d,y as C,O as f,z as E,H as N,J as y,L as r,P as D,Y as B,Q as c,X as v,Z as p,$ as H}from"./ChartManager-47a72d67.js";import{A as I}from"./AnimatedSprite-b795c45d.js";import{H as h}from"./HoldBody-be07a70c.js";const P="/smeditor/assets/frame-d599a2fe.png",Y="/smeditor/assets/parts-b37af2cf.png",Z=`precision mediump float; varying vec2 vUvs; @@ -37,7 +37,7 @@ void main() { ); } -`,V=`45 +`,b=`45 -16.0 0.0 0 0.75 -11.31 -11.31 0 0.75 0.0 -16.0 0 0.75 @@ -139,4 +139,4 @@ void main() { 30 31 42 31 43 42 31 20 43 -20 32 43`,b="/smeditor/assets/lift-6db682e7.png",L="/smeditor/assets/tap-c1e36633.png",U=a.from(P),R=T(a.from(L),8,8,64,64),K=T(a.from(b),4,1,64,64)[0];class e{static minePartsTex=u.from(Y,{mipmap:Q.OFF});static mineBodyGeom;static arrowTex;static arrowContainer=new d;static mineTex;static mineContainer=new d;static liftTex;static liftContainer=new d;static loaded=!1;static async initArrowTex(){if(!this.loaded){e.arrowTex=C.create({width:256,height:256,resolution:f.performance.resolution}),e.mineTex=C.create({width:64,height:64,resolution:f.performance.resolution}),e.liftTex=C.create({width:64,height:64,resolution:f.performance.resolution}),this.mineBodyGeom=await E(V);for(let A=0;A<8;A++){const n=new I(R[A]);n.x=A%3*64+32,n.y=Math.floor(A/3)*64+32,n.anchor.set(.5),n.name="note"+A,e.arrowContainer.addChild(n)}{const A=new I(K);A.x=32,A.y=32,A.anchor.set(.5),A.name="note",e.liftContainer.addChild(A)}{const A=N.from(G,Z,{sampler0:this.minePartsTex,time:0}),n=new y(e.mineBodyGeom,A),t=new r(U);t.width=64,t.height=64,t.anchor.set(.5),t.pivot.y=3,e.mineContainer.position.set(32),e.mineContainer.addChild(n),e.mineContainer.addChild(t)}this.loaded=!0}}static setArrowTexTime(A){if(!this.loaded)return;const n=A.chartManager.chartView.getVisualBeat(),t=A.chartManager.chartView.getVisualTime(),o=(n%4+4)%4;for(let g=0;g<8;g++){const m=e.arrowContainer.getChildByName("note"+g);m.currentFrame=Math.floor(o*2)}const s=e.liftContainer.children[0];s.currentFrame=Math.floor(o),e.mineContainer.children[0].shader.uniforms.time=t,e.mineContainer.rotation=t%1*Math.PI*2,A.renderer.render(e.arrowContainer,{renderTexture:e.arrowTex}),A.renderer.render(e.mineContainer,{renderTexture:e.mineTex}),A.renderer.render(e.liftContainer,{renderTexture:e.liftTex})}static setNoteTex(A,n){if(n!==void 0&&n.type=="Mine")A.texture=e.mineTex;else if(n!==void 0&&n.type=="Lift")A.texture=e.liftTex;else{const t=Math.min([4,8,12,16,24,32,48,64,96,192].indexOf(n?.quant??4),7);A.texture=new a(e.arrowTex.baseTexture,new D(t%3*64,Math.floor(t/3)*64,64,64))}}}const O="data:image/png;base64,iVBORw0KGgoAAAANSUhE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JCgtgmFFqhlA7fjVD7yYA/egK0JAGFhR7f/cfnCax5vfrGCcETOH9iGhdfz08C/EkQ4J0k8Dj6yyQL2HaG19eCBDZiQtaYpUwJnBL851TAnwwBWpCA7z3c4pEsdPgU3zZGR7Y8oc2HtO0bzN6lBE6ZyVMJPrbVKAGGJYFnwPJtaKC+YYv3uTl8eTSAf8tG/13E3lMmTy34U+rTyb05tCEJXu1DBNUeRv4Kd+PA6R5L9vzl8XP4uzusJfA06repgD9JAjQkQXQfIm4Zf8BQbiEIsMYzB+lcPwKdp27vUgJ/sgR4gwReFH5Q8xpVPT9dnL67YyBvGegyeTMZ8A2GRmbiEnulizx23okiT+OS+xZ3DHQ56ifp7SenAYS6txFA5EsaCEz+HkB5UPPeVJ/rX/WSB6MEGB8JigpfQJ7nbyNmI/ZmD58i+CkRgANiI4Dxad7Yi6V8hDA+UpIBPiUfoM4viPkI8lpGDiaiRUyK4KemAeq0ATcTx3w/WeBTJ0AMuGNPH/PmA4gzH0e8UXklmXaBEkBFCaCiBFBRAqgoAVSUACpKABUlgIoSQEUJoKIEUFECqCgBVJQAKkoAFSWAihJARQmgogRQUQKoKAFUJi7/CzAAViL+nRwsI+kAAAAASUVORK5CYII=",J="/smeditor/assets/hold-5651661d.png",q="/smeditor/assets/mine-590d445e.png",F=a.from(J),k=a.from(q),X=a.from(O),x={w0:[1,1,1,1],w2:[1,1,.3,1],w3:[0,1,.4,1],w4:[.3,.8,1,1],w5:[.8,0,.6,1],held:[1,1,1,1]};class z extends d{holdExplosion=new I(T(F,2,1,128,128)[0]);standard=new r(X);anims=new Set;constructor(A,n){super(),A.on(this,"hit",t=>{if(n==t.columnNumber){const o=x[t.judgement.id]??[1,1,1,1];this.standard.tint=B(o[0]*255,o[1]*255,o[2]*255),this.anims.forEach(s=>c.finish(s)),this.anims.clear(),this.anims.add(c.animate(this.standard,{0:{alpha:1,"scale.x":1,"scale.y":1},"0.5":{alpha:1,"scale.x":1.1,"scale.y":1.1},1:{alpha:0,"scale.x":1.1,"scale.y":1.1}},.12))}}),A.on(this,"held",t=>{if(n==t.columnNumber){const o=x.w2;this.standard.tint=B(o[0]*255,o[1]*255,o[2]*255),this.anims.forEach(s=>c.finish(s)),this.anims.clear(),this.anims.add(c.animate(this.standard,{0:{alpha:1,"scale.x":1,"scale.y":1},"0.5":{alpha:1,"scale.x":1.1,"scale.y":1.1},1:{alpha:0,"scale.x":1.1,"scale.y":1.1}},.12))}}),A.on(this,"holdon",t=>{n==t.columnNumber&&(this.holdExplosion.visible=!0)}),A.on(this,"holdoff",t=>{n==t.columnNumber&&(this.holdExplosion.visible=!1)}),A.on(this,"rollon",t=>{n==t.columnNumber&&(this.holdExplosion.visible=!0)}),A.on(this,"rolloff",t=>{n==t.columnNumber&&(this.holdExplosion.visible=!1)}),A.on(this,"hitmine",t=>{if(n==t.columnNumber){const o=new r(k);o.alpha=0,o.anchor.set(.5),o.blendMode=v.ADD,this.addChild(o),c.animate(o,{0:{alpha:1,rotation:0},"0.5":{alpha:1,rotation:90*Math.PI/180},1:{alpha:0,rotation:180*Math.PI/180}},.4,void 0,()=>o.destroy())}}),A.onUpdate(this,()=>{this.holdExplosion.rotation=-this.rotation}),this.holdExplosion.visible=!1,this.holdExplosion.anchor.set(.5),this.holdExplosion.play(),this.addChild(this.holdExplosion),this.standard.alpha=0,this.standard.anchor.set(.5),this.addChild(this.standard)}}const j="/smeditor/assets/receptor-13e43ffb.png",M="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAACACAYAAAC7gW9qAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHv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12rN/AiUAAQhAAAIQgAAEIAABCEAAAhCAAAQggM+tHEB2/R6uE7Ct7LOYtK/FZNWxHoDyAa9llA84Hah8QK+UD+jHUD6gr9WUDxiAonzAGVpZ+YDzlfIBygdcwl5gFKV8gLbDAhCAAAQgAAEIQAACEIAABCAAAQhAAAIYSSkfAMoH9GSUDzgdqHxAr5QP6MdQPqCv1ZQPGICifMAZWln5gPOV8gHKB1zCXmAUpXyAtsMCEIAABCAAAQhAAAIQgAAEIAABCEAAAhhJKR8Aygf0ZJQPOB2ofECvlA/ox1A+oK/VlA8YgKJ8wBlaWfmA85XyAcoHXMJeYBSlfIC2wwIQgAAEIAABCEAAAhCAAAQgAAEIQAACGEn9NQCksfvD1tn91AAAAABJRU5ErkJggg==",W="/smeditor/assets/bottomCapActive-32ba7c5b.png",$="/smeditor/assets/bottomCapInactive-d8fa251d.png",_="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAACACAYAAAC7gW9qAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/y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ifoAuhwUgAAEIQAACEIAABCAAAQhAAAIQgAAEMJL8OwABOvuvN0VT2wAAAABJRU5ErkJggg==",tA="/smeditor/assets/bottomCapActive-75c2fd66.png",nA="/smeditor/assets/bottomCapInactive-d275b2b2.png",w=a.from(j),l={hold:{active:{body:a.from(M),bottomCap:a.from(W)},inactive:{body:a.from(S),bottomCap:a.from($)}},roll:{active:{body:a.from(_),bottomCap:a.from(tA)},inactive:{body:a.from(AA),bottomCap:a.from(nA)}}},oA={Left:90,Down:0,Up:180,Right:-90,UpLeft:135,UpRight:-135,DownRight:-45,DownLeft:45},eA=["Receptor","Tap","Lift","Fake","Hold Inactive Head","Hold Active Head","Roll Inactive Head","Roll Active Head","NoteFlash"],rA={elements:{Left:{Receptor:i=>{let A;const n=new d,t=new r(w);t.width=64,t.height=64,t.anchor.set(.5);const o=new r(w);return o.width=64,o.height=64,o.alpha=0,o.blendMode=v.ADD,o.anchor.set(.5),n.addChild(t,o),i.noteskin.on(n,"press",s=>s.columnNumber==i.columnNumber&&(o.alpha=.2)),i.noteskin.on(n,"lift",s=>s.columnNumber==i.columnNumber&&(o.alpha=0)),i.noteskin.on(n,"ghosttap",s=>{s.columnNumber==i.columnNumber&&(c.finish(A),A=c.animate(n,{0:{"scale.x":.75,"scale.y":.75},1:{"scale.x":1,"scale.y":1}},.11))}),i.noteskin.onUpdate(n,s=>{const g=(s.getVisualBeat()%1+1)%1,m=H(1-g,.5,1)*255;t.tint=B(m,m,m)}),n},Tap:i=>{const A=new r(a.WHITE);return e.setNoteTex(A,i.note),A.anchor.set(.5),A},NoteFlash:i=>new z(i.noteskin,i.columnNumber),Fake:{element:"Tap"},Lift:{element:"Tap"},Mine:{element:"Tap"},"Hold Active Head":{element:"Tap"},"Hold Inactive Head":{element:"Tap"},"Hold Active Body":()=>new h(l.hold.active.body),"Hold Inactive Body":()=>new h(l.hold.inactive.body),"Hold Active TopCap":()=>new r(a.EMPTY),"Hold Inactive TopCap":()=>new r(a.EMPTY),"Hold Active BottomCap":()=>new p(l.hold.active.bottomCap),"Hold Inactive BottomCap":()=>new p(l.hold.inactive.bottomCap),"Roll Active Head":{element:"Tap"},"Roll Inactive Head":{element:"Tap"},"Roll Active Body":()=>new h(l.roll.active.body),"Roll Inactive Body":()=>new h(l.roll.inactive.body),"Roll Active TopCap":()=>new r(a.EMPTY),"Roll Inactive TopCap":()=>new r(a.EMPTY),"Roll Active BottomCap":()=>new p(l.roll.active.bottomCap),"Roll Inactive BottomCap":()=>new p(l.roll.inactive.bottomCap)}},load:function(i,A){const n=i.columnName;i.columnName="Left";const t=this.loadElement(i,A);return eA.includes(i.element)&&(t.rotation=oA[n]*Math.PI/180),t},init(){e.initArrowTex()},update(i){e.setArrowTexTime(i.chartManager.app)},hideIcons:["Lift"],metrics:{HoldBodyBottomOffset:-32,RollBodyBottomOffset:-32}};export{rA as default}; +20 32 43`,L="/smeditor/assets/lift-6db682e7.png",V="/smeditor/assets/tap-c1e36633.png",U=a.from(P),R=T(a.from(V),8,8,64,64),K=T(a.from(L),4,1,64,64)[0];class e{static minePartsTex=u.from(Y,{mipmap:Q.OFF});static mineBodyGeom;static arrowTex;static arrowContainer=new d;static mineTex;static mineContainer=new d;static liftTex;static liftContainer=new d;static loaded=!1;static async initArrowTex(){if(!this.loaded){e.arrowTex=C.create({width:256,height:256,resolution:f.performance.resolution}),e.mineTex=C.create({width:64,height:64,resolution:f.performance.resolution}),e.liftTex=C.create({width:64,height:64,resolution:f.performance.resolution}),this.mineBodyGeom=await E(b);for(let A=0;A<8;A++){const n=new I(R[A]);n.x=A%3*64+32,n.y=Math.floor(A/3)*64+32,n.anchor.set(.5),n.name="note"+A,e.arrowContainer.addChild(n)}{const A=new I(K);A.x=32,A.y=32,A.anchor.set(.5),A.name="note",e.liftContainer.addChild(A)}{const A=N.from(G,Z,{sampler0:this.minePartsTex,time:0}),n=new y(e.mineBodyGeom,A),t=new r(U);t.width=64,t.height=64,t.anchor.set(.5),t.pivot.y=3,e.mineContainer.position.set(32),e.mineContainer.addChild(n),e.mineContainer.addChild(t)}this.loaded=!0}}static setArrowTexTime(A){if(!this.loaded)return;const n=A.chartManager.chartView.getVisualBeat(),t=A.chartManager.chartView.getVisualTime(),o=(n%4+4)%4;for(let g=0;g<8;g++){const m=e.arrowContainer.getChildByName("note"+g);m.currentFrame=Math.floor(o*2)}const s=e.liftContainer.children[0];s.currentFrame=Math.floor(o),e.mineContainer.children[0].shader.uniforms.time=t,e.mineContainer.rotation=t%1*Math.PI*2,A.renderer.render(e.arrowContainer,{renderTexture:e.arrowTex}),A.renderer.render(e.mineContainer,{renderTexture:e.mineTex}),A.renderer.render(e.liftContainer,{renderTexture:e.liftTex})}static setNoteTex(A,n){if(n!==void 0&&n.type=="Mine")A.texture=e.mineTex;else if(n!==void 0&&n.type=="Lift")A.texture=e.liftTex;else{const t=Math.min([4,8,12,16,24,32,48,64,96,192].indexOf(n?.quant??4),7);A.texture=new a(e.arrowTex.baseTexture,new D(t%3*64,Math.floor(t/3)*64,64,64))}}}const O="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAArjSURBVHja7F2Jcts4DCUl2o5ztOmx/f//63bTnI4vcQkFaGGEUuRI1sEAMxwqTqxQfI84SJCy3nuj8nEl0y5QAqgoAVSUACpKABUlgIoSQEUJoKIEUFECqCgBVJQAKkoAFSWAihJARQmgogRQUQKoKAFUlAAqSgAVJYCKEkBlyuI+wDPalt/3SoDpAy+vbQ3YXvxsUyaDSxh4KwC3AnxbMdJ9pHAyeCXANMCnkomaX0sCFAz0QtRJksAlCj4HPcfrHAv/HRcO+B6Lx1qSIRkSuETBzxj4VByWnP3eCrW/Z2WHxTISmNRI4BIG37Eyw3rOyJAxLVCwkQ+gb7HeYJ1hbVIjwWgJsNvtmj2Ac1Xgz7DMWVngZ1A7731eftnaAgFeI+hUMqy3kX9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Aeq0ATcTx3w/WeBTJ0AMuGNPH/PmA4gzH0e8UXklmXaBEkBFCaCiBFBRAqgoAVSUACpKABUlgIoSQEUJoKIEUFECqCgBVJQAKkoAFSWAihJARQmgogRQUQKoKAFUJi7/CzAAViL+nRwsI+kAAAAASUVORK5CYII=",J="/smeditor/assets/hold-5651661d.png",q="/smeditor/assets/mine-590d445e.png",F=a.from(J),k=a.from(q),X=a.from(O),x={w0:[1,1,1,1],w2:[1,1,.3,1],w3:[0,1,.4,1],w4:[.3,.8,1,1],w5:[.8,0,.6,1],held:[1,1,1,1]};class z extends d{holdExplosion=new I(T(F,2,1,128,128)[0]);standard=new r(X);anims=new Set;constructor(A,n){super(),A.on(this,"hit",t=>{if(n==t.columnNumber){const o=x[t.judgement.id]??[1,1,1,1];this.standard.tint=B(o[0]*255,o[1]*255,o[2]*255),this.anims.forEach(s=>c.finish(s)),this.anims.clear(),this.anims.add(c.animate(this.standard,{0:{alpha:1,"scale.x":1,"scale.y":1},"0.5":{alpha:1,"scale.x":1.1,"scale.y":1.1},1:{alpha:0,"scale.x":1.1,"scale.y":1.1}},.12))}}),A.on(this,"held",t=>{if(n==t.columnNumber){const o=x.w2;this.standard.tint=B(o[0]*255,o[1]*255,o[2]*255),this.anims.forEach(s=>c.finish(s)),this.anims.clear(),this.anims.add(c.animate(this.standard,{0:{alpha:1,"scale.x":1,"scale.y":1},"0.5":{alpha:1,"scale.x":1.1,"scale.y":1.1},1:{alpha:0,"scale.x":1.1,"scale.y":1.1}},.12))}}),A.on(this,"holdon",t=>{n==t.columnNumber&&(this.holdExplosion.visible=!0)}),A.on(this,"holdoff",t=>{n==t.columnNumber&&(this.holdExplosion.visible=!1)}),A.on(this,"rollon",t=>{n==t.columnNumber&&(this.holdExplosion.visible=!0)}),A.on(this,"rolloff",t=>{n==t.columnNumber&&(this.holdExplosion.visible=!1)}),A.on(this,"hitmine",t=>{if(n==t.columnNumber){const o=new r(k);o.alpha=0,o.anchor.set(.5),o.blendMode=v.ADD,this.addChild(o),c.animate(o,{0:{alpha:1,rotation:0},"0.5":{alpha:1,rotation:90*Math.PI/180},1:{alpha:0,rotation:180*Math.PI/180}},.4,void 0,()=>o.destroy())}}),A.onUpdate(this,()=>{this.holdExplosion.rotation=-this.rotation}),this.holdExplosion.visible=!1,this.holdExplosion.anchor.set(.5),this.holdExplosion.play(),this.addChild(this.holdExplosion),this.standard.alpha=0,this.standard.anchor.set(.5),this.addChild(this.standard)}}const j="/smeditor/assets/receptor-13e43ffb.png",M="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAACACAYAAAC7gW9qAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0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+35jPqk/7RRHs8/ywn7AKsty6u25dVewkY3Pt4HhNNx7VmebHXRsvLS8udvJYq1wPU7jmszjsmrnolLOdVKuPA1YCuN2Upj1tsx66lloxO/vxE6y1fleV9INzUs/Z2w+CI52vEVyoGJSc+Vqzn1S556PadcChSLgfHq6RPT7kW0egZjoNGJSPsR252YZi8izQxbh+/uuzvBT9krfM53p983bG7GbG7Hp26FJ+s5zW5E5s1Hb4W5gG9ey4iy3YyPT26E+fo2/QIQgAAEIAABCEAAAhCAAAQgAAEIQAACEMCJsQDX7jv2+wH/D4964qmV3DGA+gEHUT/gIOoHDET9gIGoHzA4auoHDFlp1Q84wyirH3C+qB+gfsAFXAuMIuoH6HJYAAIQgAAEIAABCEAAAhCAAAQgAAEIQAAjifoBoH7AUdQPOIj6AQNRP2Ag6gcMjpr6AUNWWvUDzjDK6gecL+oHqB9wAdcCo4j6AbocFoAABCAAAQhAAAIQgAAEIAABCEAAAhDASKJ+AKgfcBT1Aw6ifsBA1A8YiPoBg6OmfsCQlVb9gDOMsvoB54v6AeoHXMC1wCiifoAuhwUgAAEIQAACEIAABCAAAQhAAAIQgAAEMJL8OwABOvuvN0VT2wAAAABJRU5ErkJggg==",tA="/smeditor/assets/bottomCapActive-75c2fd66.png",nA="/smeditor/assets/bottomCapInactive-d275b2b2.png",w=a.from(j),l={hold:{active:{body:a.from(M),bottomCap:a.from(W)},inactive:{body:a.from(S),bottomCap:a.from($)}},roll:{active:{body:a.from(_),bottomCap:a.from(tA)},inactive:{body:a.from(AA),bottomCap:a.from(nA)}}},oA={Left:90,Down:0,Up:180,Right:-90,UpLeft:135,UpRight:-135,DownRight:-45,DownLeft:45},eA=["Receptor","Tap","Lift","Fake","Hold Inactive Head","Hold Active Head","Roll Inactive Head","Roll Active Head","NoteFlash"],rA={elements:{Left:{Receptor:i=>{let A;const n=new d,t=new r(w);t.width=64,t.height=64,t.anchor.set(.5);const o=new r(w);return o.width=64,o.height=64,o.alpha=0,o.blendMode=v.ADD,o.anchor.set(.5),n.addChild(t,o),i.noteskin.on(n,"press",s=>s.columnNumber==i.columnNumber&&(o.alpha=.2)),i.noteskin.on(n,"lift",s=>s.columnNumber==i.columnNumber&&(o.alpha=0)),i.noteskin.on(n,"ghosttap",s=>{s.columnNumber==i.columnNumber&&(c.finish(A),A=c.animate(n,{0:{"scale.x":.75,"scale.y":.75},1:{"scale.x":1,"scale.y":1}},.11))}),i.noteskin.onUpdate(n,s=>{const g=(s.getVisualBeat()%1+1)%1,m=H(1-g,.5,1)*255;t.tint=B(m,m,m)}),n},Tap:i=>{const A=new r(a.WHITE);return e.setNoteTex(A,i.note),A.anchor.set(.5),A},NoteFlash:i=>new z(i.noteskin,i.columnNumber),Fake:{element:"Tap"},Lift:{element:"Tap"},Mine:{element:"Tap"},"Hold Active Head":{element:"Tap"},"Hold Inactive Head":{element:"Tap"},"Hold Active Body":()=>new h(l.hold.active.body),"Hold Inactive Body":()=>new h(l.hold.inactive.body),"Hold Active TopCap":()=>new r(a.EMPTY),"Hold Inactive TopCap":()=>new r(a.EMPTY),"Hold Active BottomCap":()=>new p(l.hold.active.bottomCap),"Hold Inactive BottomCap":()=>new p(l.hold.inactive.bottomCap),"Roll Active Head":{element:"Tap"},"Roll Inactive Head":{element:"Tap"},"Roll Active Body":()=>new h(l.roll.active.body),"Roll Inactive Body":()=>new h(l.roll.inactive.body),"Roll Active TopCap":()=>new r(a.EMPTY),"Roll Inactive TopCap":()=>new r(a.EMPTY),"Roll Active BottomCap":()=>new p(l.roll.active.bottomCap),"Roll Inactive BottomCap":()=>new p(l.roll.inactive.bottomCap)}},load:function(i,A){const n=i.columnName;i.columnName="Left";const t=this.loadElement(i,A);return eA.includes(i.element)&&(t.rotation=oA[n]*Math.PI/180),t},init(){e.initArrowTex()},update(i){e.setArrowTexTime(i.chartManager.app)},hideIcons:["Lift"],metrics:{HoldBodyBottomOffset:-32,RollBodyBottomOffset:-32}};export{rA as default}; diff --git a/Noteskin-d59ba98d.js b/Noteskin-8063a766.js similarity index 99% rename from Noteskin-d59ba98d.js rename to Noteskin-8063a766.js index 12a1cf6..0d2c65b 100644 --- a/Noteskin-d59ba98d.js +++ b/Noteskin-8063a766.js @@ -1,4 +1,4 @@ -import{w as e,x as D,y as H,b as l,z as E,O as f,H as Q,J as I,L as c,P as a,Q as J,a1 as d,V as s,Y as h,$ as v}from"./ChartManager-d5d16ca9.js";import{A as F}from"./AnimatedSprite-888875f6.js";import{H as P}from"./HoldBody-36fc6457.js";const L="/smeditor/assets/downBodyActive-dd1fd694.png",Y="/smeditor/assets/downBodyInactive-c781a303.png",p="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB98FAw0dOV1YU4MAAAPKSURBVHja7d1dTupQFIbh0pwJkDBA4xjEQVjGcOIATZwBnFslHC1l7b2/v3WHiUL6PimUwHI3Xc1pWS5fbz8/vU5bZn843/07nx/zVDVb7h/5sW29/7/vb99uvxyPu6+356nRbHnAldEqg7HGXzPt/rIIAuX4zQGwI1CP3wUAKwKH+N0AsCFwid8VAAsCp/jdAaAjcIs/BAAqAsf4wwCgIXCNPxQACgLn+MMBICBwjg8BQAEBa3wYAMwImONDAWBEwB4fDgATAoX4kAAYEKjEhwWAjEApPjQARARq8eEBICFQjE8BAAGBanwaACMRKMefpmn60+NUWXVAPj/mu4PsD+fN94/4yeZqXHPr+NWn415nAtSPtVe/vplbP2BGBOjfaag8ll2frBgQqH2hBe5FIDICt/jDrgIQETjGH3oZiITANX4pAMYvf+wPZ8r4lfdfegZQ+kKoQ/wmTwHKCBQ/QDqjHCh0BKqfHs5+AOP4za8Csh8AO36Xy8DsB8CN3+19gOwHyH6A7AcAjN8VAAuC7AcwRpD9AMYIsh/AGEH2AxgjyH6AwZP9AJM3AAUE2Q9gjCD7AYwRZD+AMYLsBzBGkP0AxgiyH8AYQfYDG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Jggg==",b="/smeditor/assets/leftBodyActive-75d41033.png",z="/smeditor/assets/leftBodyInactive-bbc074cd.png",x="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IArs4c6QAAAAZiS0dEANIA0gBQ7xAn7AAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB+EDFAI2I6Ho7PYAAANMSURBVHja7Z1bTgMxDEU7VjeAxAJR10C7CMoaEAus1B0Av6XiMY/EsX2PJT4GoTHpOZNJMhl32t3F6/n8eXt8eDrt1sTD48eiv79ebNcqluZumX9N7p7/39v7y7fj5+Nxuj3e7zrF9WKzP4xM8HsBHhXW8+RzPtgqVz4CrPiAM8IfIUzPnDaqAZmvfE8JeueyEQ2p0O17SOCRw7U/u16s1D2/JyCvXibtCCjKgC/LOX+LPfBzAZPvAZjqCQsAfGEBgC8sAPCFBQC+sADAFxYA+MICAF9YAOD7xh74f+evLpcB/+/81XYAhRQgKnwFCQz4ta/w0AIAX1gA4AvPApTgR5/WGvDjrTN4CmrAjwXfWwIDfjz4nhIY8GPC95LAgB8XvocEBnztqaYBX3udIczTQOoDFBOA+gA5gvoA1AcY17VTH2B8TuoDBAPinYv6AIEloD5A8Hs+9QEGBvUBiq0DZB7tUx9AGD7TQOAjAPARAPgIAHwEAD4CjIRPFBEA+MICAF9YAOALCwB8YQGALyxAS/hMAZMJAHxhAYAfI/YV4fccU3jkoz6AMHzvQbEBP2Y+6gMIw/fMYcCPCd8rlwE/LnyPnJbZXm8YFVcsDfi68GcJcP/980RxAZ6Px6mFBL0XM7xX/6quNv7YKiTQkeDXFkWUwPsLHaJ8gcSw+gBIMF6CLbnmsJrmnOj1fP68/93h6cSaQOeZQWv4P13Q09wTIoFvPg/4iwRAAr98XvAXC5BJAsVYCn+VAEhQB/5qAZCgBvxNAiBBfvj/rgP8F1lWDIHfSQAkyA2/iQBIkBd+MwGQICf8zYPAiAPDpQJl3++wBX7THoCeIB/8LgKMlkDlTe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s42vtoDgEAEwbtDQDgE3j/oEOUHJEauDwCCwQiO9FqT1bzyuX4f/7DntnHmBIaHP+8FAALnfh7hbwUAgin+18Fbwt8DIA0Cxdoa/l4AICgS/hEAICgQ/lEAIEge/pp5gM2AIs4YEn4/ACBIHH4rACBIGn5LACBIGH6LQWC4geFWQAWudziUoXm8IPYEMcPvBWAoAqE7jZvsvc3zBYIgVvi9xgBhxgR78LQeZMlIAgEAQAAAEAAABAAAAQBAAAAQAAAEAAABAEAAABAAAAQAAAEAQAAAEEQqywY08kUlkX9pPSuAdAgAAAIAgAAA5RAAAAQAAAEAQAAAPQSVkViB99AVQfU9RKVLnJtMGx+tJ/iYCs60J2AMAIKWn34OASqHA74OFkbABSHCCLgkTBgBF4UKI+CycGEE3BgijIBbwwoiUN6GigBaIuD2cGEELBAhjEB9u1EURVEUlbz+AOnsq2p4bKxbAAAAAElFTkSuQmCC",y="/smeditor/assets/rightBodyActive-07f95372.png",R="/smeditor/assets/rightBodyInactive-fdefc2a4.png",X="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IArs4c6QAAAAZiS0dEAAAAAAAA+UO7fwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB+EDFAI3NtUuOVwAAAOHSURBVHja7Z3RTSsxEEUdKw0gUSCiBkIRhBoQBSLRQeDr6YWQEK/j8c7MPfcvIO0sPmcd24RhU07yut9/Hb9+fHguPbm7PxSLfH7UIdfpub9RtXvq99Z+e3/58fppt9scv96WYLk2cK0D9flRF0O4uz8Mk2BJ/ZHinaYW4fQM7MiZraW+JXxTAaxvfFRNzxLMGMPqDcgatTxKMGvsqmcwM2t4kmDmg1O9P50zr+1BgtlvndOqWfxgXq5pteWdkanbwDUWhtZbNIstYsoZgC0iAiABAiABAiABAiABAiABAiABAiABAiDButlmB3Vu0Nf4UMfx/Xg6Maxq8Ec/idFngqoGHwlYAyABAiABAiDB/F3A2p/Fn7U6j7Q7qBGf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3twYgviTQ9YZoaTMBXucxAPQ5CSBZD9+MfDzBV+AxAPQ5CaDwCuZ9NRa8zmMAyDaBvS8H3cZeDnqsYb0vx4TXeQwA2RKA2wDSMJ/LBrA4r4DwOo8BIBFR7h/f20beKL+LHb/r7WXP8FV5DABNXUJ82fOUACSYAJrg6cNrwgCQrQToT1xrSbCT4ACmjz8njwGgMgOIJoDgPoBSwWMAqIYBeEuAXfTwx1Xs3AsiCb4CjwGgZRJAX8YE0J42svgaYfA6jwGgeQ0gmAC64COx4HkkGKoxgZ01PF0AugDohjX5/PixN0tlI7+LHb8deTdZgq/CYwBomTUA507C81727PoaeJ3HAFDZFTwFeSI4JQC6I7UTtfvUuwOD+wCYwBgAuoUE0JvAORkNINwFWI84UIKvwGMAqCwBHIfPcRw9GROAjCSBZurwlzVs+enDazwGgHTtJ0qA6BrAU1mELb8dFl7jMQBUZgASNIBcagDDG1lKr4Dww/x/miXBOjSLcSMAAAAASUVORK5CYII=",G=`precision mediump float; +import{v as e,w as D,x as H,b as l,y as E,O as f,z as Q,H as I,J as c,L as a,P as J,a0 as d,Q as s,X as h,Z as v}from"./ChartManager-47a72d67.js";import{A as F}from"./AnimatedSprite-b795c45d.js";import{H as P}from"./HoldBody-be07a70c.js";const L="/smeditor/assets/downBodyActive-dd1fd694.png",Y="/smeditor/assets/downBodyInactive-c781a303.png",p="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB98FAw0dOV1YU4MAAAPKSURBVHja7d1dTupQFIbh0pwJkDBA4xjEQVjGcOIATZwBnFslHC1l7b2/v3WHiUL6PimUwHI3Xc1pWS5fbz8/vU5bZn843/07nx/zVDVb7h/5sW29/7/vb99uvxyPu6+356nRbHnAldEqg7HGXzPt/rIIAuX4zQGwI1CP3wUAKwKH+N0AsCFwid8VAAsCp/jdAaA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YIFOKvAGCBQCX+KgDSCJTirwQgiUAt/moAUggU41cAkECgGr8KADUC5fiVACgRqMevBkCFwCF+BwAKBC7xuwBAI3CK3wkAEoFb/G4AUAgc4yMAgEDgGh8FQCuCkaUSHwkADQKl+GgA4BGoxUcEAItAMT4qADgEqvGRAcAgUI6PDqAdgXp8BgBtCBziswAoR+ASnwlAGQKn+GwAliNwi88IYBkCx/isAKYjcI3PDGAagpGlEp8dQAsCpfgKAEoRqMVXAVCCQDG+EoClCFTjqwFYgkA5viKAqQjU46sCmILAIb4ygIcQuMRXBzCEwCm+A4BTCNziuwA4hMAxvhOALxG4xncDcBeB+764ATiCwGpPHAF8hcBuP1wB3EPgvBfWCK7ZhqysrKysrCy39Q9gQ/q5SfcuvQAAAABJRU5ErkJggg==",b="/smeditor/assets/leftBodyActive-75d41033.png",z="/smeditor/assets/leftBodyInactive-bbc074cd.png",x="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IArs4c6QAAAAZiS0dEANIA0gBQ7xAn7AAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB+EDFAI2I6Ho7PYAAANMSURBVHja7Z1bTgMxDEU7VjeAxAJR10C7CMoaEAus1B0Av6XiMY/EsX2PJT4GoTHpOZNJMhl32t3F6/n8eXt8eDrt1sTD48eiv79ebNcqluZumX9N7p7/39v7y7fj5+Nxuj3e7zrF9WKzP4xM8HsBHhXW8+RzPtgqVz4CrPiAM8IfIUzPnDaqAZmvfE8JeueyEQ2p0O17SOCRw7U/u16s1D2/JyCvXibtCCjKgC/LOX+LPfBzAZPvAZjqCQsAfGEBgC8sAPCFBQC+sADAFxYA+MICAF9YAOD7xh74f+evLpcB/+/81XYAhRQgKnwFCQz4ta/w0AIAX1gA4AvPApTgR5/WGvDjrTN4CmrAjwXfWwIDfjz4nhIY8GPC95LAgB8XvocEBnztqaYBX3udIczTQOoDFBOA+gA5gvoA1AcY17VTH2B8TuoDBAPinYv6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nATYlrSgDvizP+aoWws8VWNoxAKd6ACB8ABA+AAgfAIQPAMIHAOEDgPABQPhjayH89/2r4zLCf9+/2hVAIQFEDV8BgRF+7U94aACELwyA8IXPApTCj35aa4Qfb57BE6gRfqzwvREY4ccL3xOBEX7M8L0QGOHHDd8DgRG+9qmmEb72PEOYbwNZH6AYANYHyFGsD8D6AON27awPML4n6wMEC8S7F+sDBEbA+gAJjvmsDyAcfqbnDD8PkHm0z/oAwuFzGkj4ACB8ABA+AAgfAIQPgJHhU0UAEL4wAMIXBkD4wgAIXxgA4QsDaBk+p4DJABC+MADCj1FLxfB7jik8+rE+gHD43oNiI/yY/VgfQDh8zx5G+DHD9+plhB83fI+ellmvdxgVZyyN8HXDXwXgyZ0lVHEAcwsEvSczvGf/qs42vtoDgEAEwbtDQDgE3j/oEOUHJEauDwCCwQiO9FqT1bzyuX4f/7DntnHmBIaHP+8FAALnfh7hbwUAgin+18Fbwt8DIA0Cxdoa/l4AICgS/hEAICgQ/lEAIEge/pp5gM2AIs4YEn4/ACBIHH4rACBIGn5LACBIGH6LQWC4geFWQAWudziUoXm8IPYEMcPvBWAoAqE7jZvsvc3zBYIgVvi9xgBhxgR78LQeZMlIAgEAQAAAEAAABAAAAQBAAAAQAAAEAAABAEAAABAAAAQAAAEAQAAAEEQqywY08kUlkX9pPSuAdAgAAAIAgAAA5RAAAAQAAAEAQAAAPQSVkViB99AVQfU9RKVLnJtMGx+tJ/iYCs60J2AMAIKWn34OASqHA74OFkbABSHCCLgkTBgBF4UKI+CycGEE3BgijIBbwwoiUN6GigBaIuD2cGEELBAhjEB9u1EURVEUlbz+AOnsq2p4bKxbAAAAAElFTkSuQmCC",y="/smeditor/assets/rightBodyActive-07f95372.png",R="/smeditor/assets/rightBodyInactive-fdefc2a4.png",X="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IArs4c6QAAAAZiS0dEAAAAAAAA+UO7fwAAAAlwSFlzAAALEwAAC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QWgJobwba/QG3xEFs38FSzyUVtXqGTxTYft32HTucbneQGJroAb/WyW7joEgroN7ENBRBANtHNBAzAthGOBAhAN1JOBAQw2UqKFwPAbDsvXV7tvJ7svxZ7rtud17P931ZQbn4f7X83O9+XNr9v5w+cdv6DPwWiAkzzlaAAyJZDQXEQyuECcsDJmViATmKR+UogAfSAFy5wAH7ADBaww3B0PhbQ03h0PhSUp/GcethVOXjKqVw4QgrEwWj0wLN2Qn0w2gsc+QamFEfDbecTbucTnnY+pp8sjgkNLT+ffpyoPadU5tMFGKDz4ZLysFx1CO5g0eJhudeLFVqtjA+WNecV22OIR4LiyOjmfOiF8cHSm/rkdnsY9mAxAPD8iaAHmPyBoAW4fC/oADZfCxqAz7eC+gKFsBDenyBvUCgBs3wnqADTfCUoALLlUAABpKERFIDFS2DYFTELL60tQXfZ2PzZpTfFdULPs/k1QSsvVy2r+4x0PhZU9xmlK6HcVVHF0HJLd7MbCOkEJ93shiKkwAPaACfQANBeCSwANTcCCYCthcBdsBgav8hEd8Mjb8unGoDI55MFQOXj6Rwg8+kCDND5cAkFdM3spbwW0OdPBeW14/Ii5cHC5t5ze5HzREAANH8kAACePxH0AJM/ELQAl+8FHcDma0ED8PlW8AT4F0zxmObwVcrYAAAAAElFTkSuQmCC",j="/smeditor/assets/upBodyInactive-87a7969e.png",N="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IArs4c6QAAAAZiS0dEAHgAeQB3paCnMQAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB+EDFAI5IlF3wK8AAAPCSURBVHja7Z1bbsIwFETNKBtAYoFV11C6iNI1VF0gEjug/YUoRbWxfR8zV+oHH9TG58QhUe6wK6v6PJ1+bl+/vryX2tofrtXvuZxRelXL+BHm2DL+1/fH3eu343F3+xq9Fykr/N7/u+Uzj/hsEHxuCcAM/3KGOQTr8VGMytP5NKIEoQXw+GWKVQIIPrcEEHxuCTBr4pGuob1L0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C6C9ine9nz/AVeAzgwTXavzcawCQ/lgCyjT8/0UZ6Az/BV+AxAHRnawAZviKPAaB5DWDjGreGGjaZFhXgdR4DQDeeALrBGiIZTxBe5zEAtGwCCHYBrh+JtYYP8BgAshlArTZgtRIAvgaPAaB5E8B6pHQtfh6A73YYeJ3HANAyJUBwDSA5b4eB13kM4MH1+voy+PvJ/j78l+AxAKRrH+S3EyXARJegk0a98jUCH+ExAGQzAO8i4N5Vup7UTgzRDXyIxwDQMgnAaSD9AVz6Zhx4nccA0LIlgDsB+F6OCa/zGACa1wB2sRKgG61yE3wFHgNAd5IAxOUk8DqPAaBlE0DhfpbuMETHbmeFj/EYALrQVf94H+S3Mb49RFjrAzHgy3gMANkSgLcNuIvxbXCIwtMGRF9qDQAeA0D3twYgviTQ9YZoaTMBXucxAPQ5CSBZD9+MfDzBV+AxAPQ5CaDwCuZ9NRa8zmMAyDaBvS8H3cZeDnqsYb0vx4TXeQwA2RKA2wDSMJ/LBrA4r4DwOo8BIBFR7h/f20beKL+LHb/r7WXP8FV5DABNXUJ82fOUACSYAJrg6cNrwgCQrQToT1xrSbCT4ACmjz8njwGgMgOIJoDgPoBSwWMAqIYBeEuAXfTwx1Xs3AsiCb4CjwGgZRJAX8YE0J42svgaYfA6jwGgeQ0gmAC64COx4HkkGKoxgZ01PF0AugDohjX5/PixN0tlI7+LHb8deTdZgq/CYwBomTUA507C81727PoaeJ3HAFDZFTwFeSI4JQC6I7UTtfvUuwOD+wCYwBgAuoUE0JvAORkNINwFWI84UIKvwGMAqCwBHIfPcRw9GROAjCSBZurwlzVs+enDazwGgHTtJ0qA6BrAU1mELb8dFl7jMQBUZgASNIBcagDDG1lKr4Dww/x/miXBOjSLcSMAAAAASUVORK5CYII=",G=`precision mediump float; varying vec2 vUvs; diff --git a/Noteskin-4810f636.js b/Noteskin-8752563b.js similarity index 99% rename from Noteskin-4810f636.js rename to Noteskin-8752563b.js index 37de8a2..c4eb0cd 100644 --- a/Noteskin-4810f636.js +++ b/Noteskin-8752563b.js @@ -1,4 +1,4 @@ -import{w as B,x as I,y as E,b as v,z as P,O as l,H as w,J as c,L as f,P as r,Q as p,a1 as F,V as s,Y as y,$ as D}from"./ChartManager-d5d16ca9.js";import{A as x}from"./AnimatedSprite-888875f6.js";import{H as m}from"./HoldBody-36fc6457.js";const U="/smeditor/assets/downBodyActive-dd1fd694.png",b="/smeditor/assets/downBodyInactive-c781a303.png",N="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB98FAw0dOV1YU4MAAAPKSURBVHja7d1dTupQFIbh0pwJkDBA4xjEQVjGcOIATZwBnFslHC1l7b2/v3WHiUL6PimUwHI3Xc1pWS5fbz8/vU5bZn843/07nx/zVDVb7h/5sW29/7/vb99uvxyPu6+356nRbHnAldEqg7HGXzPt/rIIAuX4zQGwI1CP3wUAKwKH+N0AsCFwid8VAAsCp/jdAaAjcIs/BAAqAsf4wwCgIXCNPxQACgLn+MMBICBwjg8BQAEBa3wYAMwImONDAWBEwB4fDgATAoX4kAAYEKjEhwWAjEApPjQARARq8eEBICFQjE8BAAGBanwaACMRKMefpmn60+NUWXVAPj/mu4PsD+fN94/4yeZqXHPr+NWn415nAtSPtVe/vplbP2BGBOjfaag8ll2frBgQqH2hBe5FIDICt/jDrgIQETjGH3oZiITANX4pAMYvf+wPZ8r4lfdfegZQ+kKoQ/wmTwHKCBQ/QDqjHCh0BKqfHs5+AOP4za8Csh8AO36Xy8DsB8CN3+19gOwHyH6A7AcAjN8VAAuC7AcwRpD9AMYIsh/AGEH2AxgjyH6AwZP9AJM3AAUE2Q9gjCD7AYwRZD+AMYLsBzBGkP0AxgiyH8AYQfYDGCPIfgBjBNkPYIwg+wEKDlj2A+AdyyZngOwHyH6ALs/J2Q+Q/QDZD8D6IjD7AXDiD7sKyH4AjPhDLwOzH2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PDwAJgWJ8CgAICFTj0wDoRKAcf9sWvBZwb8NYX2xBfGfz2X+/9LWAzzas++1dI7eP+rb22dc3e9X/TCYE6J9pmLmXpdcADAjUPtACdxGIjMAtftspABGBY/zWYyASAtf404+BLhvJdKwtPQYqfSBUIX7LQ4AyAsV3D+8oG4WOQPWt45kPYBx/+Skg8wGw45ccAzMfADd+2fMAmQ+Q+QCZDwAYvxQAC4LMBzBGkPkAxggyH8AYQeYDfFyZDyD0t2Q+gHF86IcAJQSZD2CMIPMBjBFkPoAxgswHMEaQ+QDGCDIfwBhB5gMYI8h8AGMEmQ9gjCDzATIfoC1+5gM03hNkPsDkDct8AMy9zHwAsvj0F4GZD4ATv+0UkPkAGPFbj4GZD9Aff/oxMPMB8I6amQ9gHL/lISDzAXjiHwJw5y7EEgFj/CPtLp98/3r7jZG3h6tcEwjFvxwFEAQG8b8DYI9APf4RALYIHOIfBWCHwCX+GQA2CJzinwUgj8At/ggAWQSO8UcByCFwjf8IABkEMxdb/EcBBAF5/BkAgoA4/iwA1giY488EYImAPf5sAFYIFOKvAGCBQCX+KgDSCJTirwQgiUAt/moAUggU41cAkECgGr8KADUC5fiVACgRqMevBkCFwCF+BwAKBC7xuwBAI3CK3wkAEoFb/G4AUAgc4yMAgEDgGh8FQCuCkaUSHwkADQKl+GgA4BGoxUcEAItAMT4qADgEqvGRAcAgUI6PDqAdgXp8BgBtCBziswAoR+ASnwlAGQKn+GwAliNwi88IYBkCx/isAKYjcI3PDGAagpGlEp8dQAsCpfgKAEoRqMVXAVCCQDG+EoClCFTjqwFYgkA5viKAqQjU46sCmILAIb4ygIcQuMRXBzCEwCm+A4BTCNziuwA4hMAxvhOALxG4xncDcBeB+764ATiCwGpPHAF8hcBuP1wB3EPgvBfWCK7ZhqysrKysrCy39Q9gQ/q5SfcuvQAAAABJRU5ErkJggg==",G="/smeditor/assets/leftBodyActive-75d41033.png",R="/smeditor/assets/leftBodyInactive-bbc074cd.png",J="data:image/png;base64,iVBORw0KGgoA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wt8DIA0Cxdoa/l4AICgS/hEAICgQ/lEAIEge/pp5gM2AIs4YEn4/ACBIHH4rACBIGn5LACBIGH6LQWC4geFWQAWudziUoXm8IPYEMcPvBWAoAqE7jZvsvc3zBYIgVvi9xgBhxgR78LQeZMlIAgEAQAAAEAAABAAAAQBAAAAQAAAEAAABAEAAABAAAAQAAAEAQAAAEEQqywY08kUlkX9pPSuAdAgAAAIAgAAA5RAAAAQAAAEAQAAAPQSVkViB99AVQfU9RKVLnJtMGx+tJ/iYCs60J2AMAIKWn34OASqHA74OFkbABSHCCLgkTBgBF4UKI+CycGEE3BgijIBbwwoiUN6GigBaIuD2cGEELBAhjEB9u1EURVEUlbz+AOnsq2p4bKxbAAAAAElFTkSuQmCC",Y="/smeditor/assets/rightBodyActive-07f95372.png",Z="/smeditor/assets/rightBodyInactive-fdefc2a4.png",K="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IArs4c6QAAAAZiS0dEAAAAAAAA+UO7fwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB+EDFAI3NtUuOVwAAAOHSURBVHja7Z3RTSsxEEUdKw0gUSCiBkIRhBoQBSLRQeDr6YWQEK/j8c7MPfcvIO0sPmcd24RhU07yut9/Hb9+fHguPbm7PxSLfH7UIdfpub9RtXvq99Z+e3/58fppt9scv96WYLk2cK0D9flRF0O4uz8Mk2BJ/ZHinaYW4fQM7MiZraW+JXxTAaxvfFRNzxLMGMPqDcgatTxKMGvsqmcwM2t4kmDmg1O9P50zr+1BgtlvndOqWfxgXq5pteWdkanbwDUWhtZbNIstYsoZgC0iAiABAiABAiABAiABAiABAiABAiABAiDButlmB3Vu0Nf4UMfx/Xg6Maxq8Ec/idFngqoGHwlYAyABAiABAiDB/F3A2p/Fn7U6j7Q7qBGfsghPYpSZoGaEjwSOBFh7kYMEKwrgZa+LBCsI4O3cGwmCbgMzQfAoQYhzACQ4aAvwbxBGDURECaxCf4CFtekP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JRDwvSUQ8L0lkDP8t/enkgc9UwgQ6QyhswRyh+8ugYDvLYGA7y2BgO8tgYDvLYGA7y2BgO8tgYDvLYGA7y0B/QHMJaA/gLkEAr63BLb9AbJLkFqA7PArSSDge0sg4HtLYNMfoJIE9AcIGvQHSJTgLFvd1fiuP8CxJYkZs6vXNd7en0KeXA71HiDi/uqyVaUSYPYdtpsEcob/qC7ASQI5w//XtVwkkDt8dwkEfG8JBHxvCQR8bwlCvAkcfZikNeGjrzHjZVH4TqFR4Z/9XvoDBIQ/O+gPYAw/qwQCvrcEAr63BAK+twQCvrcEAr63BAK+twQCvrcEAr63BEc2+PfvtlefWm4Zz+vLx+kcjTpoKma+90og4HtLIOB7S5CqP8AXf9sOFy1jpD9AEfgZJRDwvSU4HOGPrg38PPazj6ktj4ghVoARNe0z4Y+agSNWAov+AA8St49egTokdx8pQW9Jj5kzLBr8P0vt/dc6LMP7dne6unU7KPkUEAn+o70/ykowOr6tC9i2ee/b/xP+5bqFR7O701a1Z8qnopg7YuafvdMfdPcdOp+KMOgI8CtJcCafWj3oSPArSHA2n1o56IjwM0vQkk+tGnRk+BklaM2nVgx6FvzAESafmj1o4MfK59Ew6Fvn5csRfph8ajEwZ/gh8qmFgwZ+gHxq0aCBHySfB7O47HYwfAUgCgQCIACBAAQCEAhAIACBAAQCEAhAIACBAAQCZI8rFT4OHUwsVoAWkC7ta2y2gDNAnXoXWd0DzP7XsQiQTALHrmXHZhi0p+MxkKgiwMqmCxm7l91H1kOdy5oufAN/RwADCSqVt2U/1j1dgmq1jRXO9U+ToGJha5XCjuESVK1qrlTZM0yCyiXt1Uq7uktQvZ9Bxdq+bhI4NLOoWtx5WQKXTiaVq3ubJXBqY1O9vPu0BG49jBzq+2/kyFuAKxKUz49Th48bufEW4IwEtL4hCIIgCKJ0/AYcP+o66BZ87AAAAABJRU5ErkJggg==",j="/smeditor/assets/upleftBodyActive-bc79d60f.png",q="/smeditor/assets/upleftBodyInactive-f60085c6.png",W="data:image/png;base64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OCxxWDf/eEFMOi0RsA1tJQ4BF2kYSUW8N+24mSDxjGHcn0O4gXAASEIAEBCDB0gKcTi8kSBXgX/gkCBTgfegkMAP8SIKajCrBUgKczw8kSK8AJNACtAMC2CISgAQEmEECArShkEAFIIEWQAIzAAkMgSQgAAkIQAICdJZgBHkI0EmCUSoHATpIMFLb8D+DPkpwuSbBZy8zzz4TqAAVKgEBSEAAEhBg96m4Q39dXoKhKsBXAXccrpaWYLgWcC3oASbrZSUoFa/9Zjt16zZqD64EU2o8p1bP7RPRypIVwGDYLvwlBWhQlptJUDv8pi1g9lJ5azuYrWWXyr9wMwkah99DgjLNRVtL0Cn8lhKU6S7cSoLO4beQoGyzXry2BIOE7z5ADwmEP6cANcul8CdatIvwswXYUwLhT7x4F+EDAAAAAAAAAAAAAAAAAAAAwD38AT8g+uUAT65wAAAAAElFTkSuQmCC",$="/smeditor/assets/uprightBodyActive-3d912f52.png",A0="/smeditor/assets/uprightBodyInactive-01c6c977.png",n0="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAK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B2cksfwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAq9QTFRFAAAA/////4SJAAAA/qa9hYP/pqb+zJL/3LT/g/+Dpv6m/oT+/qb+/7lv/8qRrP/lzv/vwcHBzdfN/6K4pKT+27L/pP6k/qT+/8mPzP/vzNbM/pywnZ3916r/nf2d/J39/8WHxP/sydHJ/pGgk5P906D/k/2T/JT8/8B9uv/pxcvF/4ePh4f/zpb/h/+H/oj+/7tzsP/mw8PD/n19f3/9yYz/f/1//ID8/7Zppv/jvr6+/3FxcnL+xID/cv5y/XP9/7Fdmv/fuLi4/2dnaGj+v3b/aP5o/Wn9/6xTkP/cs7Oz/VxcXl78umr/Xvxe+1/7/6ZH/vr+hP/Yra2t/U5OT0/9s1z/T/1P/FD8/585/O78dv/Upqam/z8/Pz//rU7/P/8/90f3/5gr++L7Zv/Kn5+f/y4uLy//pED9L/8v8D7w/ZEb99T3Vf/Al5eX/xcXFxf/li34F/8X5y/n+IkD7sHuPP+yi4uL/wAAAQH/ihr0Af8B4R/h4n8A6K/oJf+mgICA/w0NDQ3/kCX2Df8N5Cjk74UA67nrMf+shoaG/ygoKSn/oDv8Kf8p7jru/I8V9c/1T/+8lJSU/zk5OTn/qkj/Of859UP1/5Ul+tz6YP/GnJyc/UpKS0v9sVj/S/1L/Ez8/501/Or8cv/SpKSk/ldXWFj+uGb/WP5Y/Vn9/6RD/vb+gP/Xq6ur/2JiZGT+vXL/ZP5k/WX9/6pPjP/bsbGx/25ucHD+w37/cP5w/XH9/7BbmP/et7e3/Xl5eXn9x4b/ef15/Hr8/7NjoP/hu7u7hYX/zZT/hf+F/ob+/7pxrv/lwsLC/Y+dj4/90Zz/j/2P/JD8/755tv/oxMjE/5iqmZn/16j/mf+Z/pr+/8SFwv/syc/J/6CzoqD+267/oP6i/qD8/8mLyP/vytTK2fi5aQAAAOV0Uk5T////AP///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////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/lwsLC/Y+dj4/90Zz/j/2P/JD8/755/tX+tv/oxMjE/5iqmZn/16j/mf+Z/pr+/8SF/93/wv/syc/J/6CzoqD+267/oP6i/qD8/8mL/+L+yP/vytTKfd22ZwAAAPV0Uk5T////AP////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////90oRikAAAGVUlEQVR4nO2bd4xUVRSHz0qMMcbYe8Ne6Ci9g3TsvYO9914XCyr23qUjHelIRzrSkY50pOOwDMu6rqs573z3zQ4zJs71jzWZd5N3f/nIm9lzP2Z2303OzZH/OHK87s8JX2dZLGWSuEj2T+JCOSCJC+TAJM6Xg5I4LgcncZ4cksQxOcyz/pQRCfC6P0cOh2PBXCxHwLuCuUiOhPOCuVCOgncHc4EcDceDOV+Ogffwr8fC+bzLcfBefurxnvWnDF8BJ8CbgrlYToQ3B3ORnARvCeZCORneGswFcgq8LZjzpSy8PZjjciq8I5jz5DR4ZzDH5HTP+lOGjwC9zoBXiS5f5Ex4tejyRc6C14guX+RseK3o8kXOgdeJ/S+fC68X+1ScB28Q+xSVgzeKferKe9afdkGZ3q9XBXiRmICK8GIxAZXgJWICKsNLxQRUgZeJCagKLxcTcD68QkzABfBKMQHVPOtPu6BM79erOjxLTEANeLaYgJrwHDEBteC5YgJqw/PEBNSB54sJqAsvEBNQD14oJqC+Z/1pF5Tp/Xo1gCeJCWgITxYT0AieIiagMTxVTEATeJqYgAvh6WICmsIzxAQ0g2eKCWjuWX/aBWV2v72iBTwqWL5IS3h0sHyRVvCYYPkireGxwfJF2sDj+D1/ETyevwsXwxP4O3IJPJG/O5d61p8yfAVcBg9CwOXwYARcAQ9BwJXwUARcBQ9DwNXwcARcA49AwLXwSARc51l/yvAVcD3cCwE3wL0RcCPcBwE3wX0RcDPcDwG3wP0R0BYegIB28EAE3OpZf8rwFXAb3AkBt8OdEXAH3AUBd8JdEXAX3A0Bd8PdEXAP3AMB98I9EX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IWwrUQ8DNcGwGL4DoIWOxZf8rwFbAELoeApXB5BCyDKyBgOVwRASvgSghYCVdGwC9wFQSsgqsiYLVn/SnDdzO0hixLriXdgch1pDswuZ50Byo3kO7A5UbSHcj8lXQnRDeR7gTpZrLUBGwh3ZHXraQ7EruNdEdmt5PuSO0O0h253Um6I7m/ke6McIw8lNxFlpoA97rE7wIbf5Lu8PQfpDs8/TvpDk/vJd3h6T2kOzy9m3SHp93CS+3w9P9NwN85VJDW1dBaWwAAAABJRU5ErkJggg==",u=`precision mediump float; +import{v as B,w as I,x as E,b as v,y as P,O as l,z as w,H as c,J as f,L as r,P as p,a0 as F,Q as s,X as y,Z as D}from"./ChartManager-47a72d67.js";import{A as x}from"./AnimatedSprite-b795c45d.js";import{H as m}from"./HoldBody-be07a70c.js";const U="/smeditor/assets/downBodyActive-dd1fd694.png",b="/smeditor/assets/downBodyInactive-c781a303.png",N="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB98FAw0dOV1YU4MAAAPKSURBVHja7d1dTupQFIbh0pwJkDBA4xjEQVjGcOIATZwBnFslHC1l7b2/v3WHiUL6PimUwHI3Xc1pWS5fbz8/vU5bZn843/07nx/zVDVb7h/5sW29/7/vb99uvxyPu6+356nRbHnAldEqg7HGXzPt/rIIAuX4zQGwI1CP3wUAKwKH+N0AsCFwid8VAAsCp/jdAaAjcIs/BAAqAsf4wwCgIXCNPxQACgLn+MMBICBwjg8BQAEBa3wYAMwImONDAWBEwB4fDgATAoX4kAAYEKjEhwWAjEApPjQARARq8eEBICFQjE8BAAGBanwaACMRKMefpmn60+NUWXVAPj/mu4PsD+fN94/4yeZqXHPr+NWn415nAtSPtVe/vplbP2BGBOjfaag8ll2frBgQqH2hBe5FIDICt/jDrgIQETjGH3oZiITANX4pAMYvf+wPZ8r4lfdfeg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KAEoRqMVXAVCCQDG+EoClCFTjqwFYgkA5viKAqQjU46sCmILAIb4ygIcQuMRXBzCEwCm+A4BTCNziuwA4hMAxvhOALxG4xncDcBeB+764ATiCwGpPHAF8hcBuP1wB3EPgvBfWCK7ZhqysrKysrCy39Q9gQ/q5SfcuvQAAAABJRU5ErkJggg==",G="/smeditor/assets/leftBodyActive-75d41033.png",R="/smeditor/assets/leftBodyInactive-bbc074cd.png",J="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IArs4c6QAAAAZiS0dEANIA0gBQ7xAn7AAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB+EDFAI2I6Ho7PYAAANMSURBVHja7Z1bTgMxDEU7VjeAxAJR10C7CMoaEAus1B0Av6XiMY/EsX2PJT4GoTHpOZNJMhl32t3F6/n8eXt8eDrt1sTD48eiv79ebNcqluZumX9N7p7/39v7y7fj5+Nxuj3e7zrF9WKzP4xM8HsBHhXW8+RzPtgqVz4CrPiAM8IfIUzPnDaqAZmvfE8JeueyEQ2p0O17SOCRw7U/u16s1D2/JyCvXibtCCjKgC/LOX+LPfBzAZPvAZjqCQsAfGEBgC8sAPCFBQC+sADAFxYA+MICAF9YAOD7xh74f+evLpcB/+/81XYAhRQgKnwFCQz4ta/w0AIAX1gA4AvPApTgR5/WGvDjrTN4CmrAjwXfWwIDfjz4nhIY8GPC95LAgB8XvocEBnztqaYBX3udIczTQOoDFBOA+gA5gvoA1AcY17VTH2B8TuoDBAPinYv6AIEloD5A8Hs+9QEGBvUBiq0DZB7tUx9AGD7TQOAjAPARAPgIAHwEAD4CjIRPFBEA+MICAF9YAOALCwB8YQGALyxAS/hMAZMJAHxhAYAfI/YV4fccU3jkoz6AMHzvQbEBP2Y+6gMIw/fMYcCPCd8rlwE/LnyPnJbZXm8YFVcsDfi68GcJcP/980RxAZ6Px6mFBL0XM7xX/6quNv7YKiTQkeDXFkWUwPsLHaJ8gcSw+gBIMF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/oAwuFzGkj4ACB8ABA+AAgfAIQPgJHhU0UAEL4wAMIXBkD4wgAIXxgA4QsDaBk+p4DJABC+MADCj1FLxfB7jik8+rE+gHD43oNiI/yY/VgfQDh8zx5G+DHD9+plhB83fI+ellmvdxgVZyyN8HXDXwXgyZ0lVHEAcwsEvSczvGf/qs42vtoDgEAEwbtDQDgE3j/oEOUHJEauDwCCwQiO9FqT1bzyuX4f/7DntnHmBIaHP+8FAALnfh7hbwUAgin+18Fbwt8DIA0Cxdoa/l4AICgS/hEAICgQ/lEAIEge/pp5gM2AIs4YEn4/ACBIHH4rACBIGn5LACBIGH6LQWC4geFWQAWudziUoXm8IPYEMcPvBWAoAqE7jZvsvc3zBYIgVvi9xgBhxgR78LQeZMlIAgEAQAAAEAAABAAAAQBAAAAQAAAEAAABAEAAABAAAAQAAAEAQAAAEEQqywY08kUlkX9pPSuAdAgAAAIAgAAA5RAAAAQAAAEAQAAAPQSVkViB99AVQfU9RKVLnJtMGx+tJ/iYCs60J2AMAIKWn34OASqHA74OFkbABSHCCLgkTBgBF4UKI+CycGEE3BgijIBbwwoiUN6GigBaIuD2cGEELBAhjEB9u1EURVEUlbz+AOnsq2p4bKxbAAAAAElFTkSuQmCC",Y="/smeditor/assets/rightBodyActive-07f95372.png",Z="/smeditor/assets/rightBodyInactive-fdefc2a4.png",K="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IArs4c6QAAAAZiS0dEAAAAAAAA+UO7fwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB+EDFAI3NtUuOVwAAAOHSURBVHja7Z3RTSsxEEUdKw0gUSCiBkIRhBoQBSLRQeDr6YWQEK/j8c7MPfcvIO0sPmcd24RhU07yut9/Hb9+fHguPbm7PxSLfH7UIdfpub9RtXvq99Z+e3/58fppt9scv96WYLk2cK0D9flRF0O4uz8Mk2BJ/ZHinaYW4fQM7MiZraW+JXxTAaxvfFRNzxLMGMPqDcgat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N2Qn0w2gsc+QamFEfDbecTbucTnnY+pp8sjgkNLT+ffpyoPadU5tMFGKDz4ZLysFx1CO5g0eJhudeLFVqtjA+WNecV22OIR4LiyOjmfOiF8cHSm/rkdnsY9mAxAPD8iaAHmPyBoAW4fC/oADZfCxqAz7eC+gKFsBDenyBvUCgBs3wnqADTfCUoALLlUAABpKERFIDFS2DYFTELL60tQXfZ2PzZpTfFdULPs/k1QSsvVy2r+4x0PhZU9xmlK6HcVVHF0HJLd7MbCOkEJ93shiKkwAPaACfQANBeCSwANTcCCYCthcBdsBgav8hEd8Mjb8unGoDI55MFQOXj6Rwg8+kCDND5cAkFdM3spbwW0OdPBeW14/Ii5cHC5t5ze5HzREAANH8kAACePxH0AJM/ELQAl+8FHcDma0ED8PlW8AT4F0zxmObwVcrYAAAAAElFTkSuQmCC",V="/smeditor/assets/upBodyInactive-87a7969e.png",z="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IArs4c6QAAAAZiS0dEAHgAeQB3paCnMQAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB+EDFAI5IlF3wK8AAAPCSURBVHja7Z1bbsIwFETNKBtAYoFV11C6iNI1VF0gEjug/YUoRbWxfR8zV+oHH9TG58QhUe6wK6v6PJ1+bl+/vryX2tofrtXvuZxRelXL+BHm2DL+1/fH3eu343F3+xq9Fykr/N7/u+Uzj/hsEHxuCcAM/3KGOQTr8VGMytP5NKIEoQXw+GWKVQIIPrcEEHxuCTBr4pGuob1L0HMtMeMIj3gDxasEvXeIxfM2b32peTmjesz94dptDWacDuyuP4LcZ/Byx45aAOubTJklgOBzSwDB55YAgs8tAQSfWwIIPrcEEHxuCSD43BJA8LklgOBzSwBm+PvDNeWDniEE8PQMIbMEYIfPLgEEn1sCCD63BBB8bgkg+NwSQPC5JYDgc0sAweeWAILPLYHyAcglUD4AuQQQfG4JaPMBoksQWoDo8DNJAMHnlgCCzy0BTT5AJgmUD+C0l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ADCSqVt2U/1j1dgmq1jRXO9U+ToGJha5XCjuESVK1qrlTZM0yCyiXt1Uq7uktQvZ9Bxdq+bhI4NLOoWtx5WQKXTiaVq3ubJXBqY1O9vPu0BG49jBzq+2/kyFuAKxKUz49Th48bufEW4IwEtL4hCIIgCKJ0/AYcP+o66BZ87AAAAABJRU5ErkJggg==",j="/smeditor/assets/upleftBodyActive-bc79d60f.png",q="/smeditor/assets/upleftBodyInactive-f60085c6.png",W="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HU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EB4+AcLDX3IGSA4zvgIIf+IKIDwVAAQAAUAAEAAEAAFAABAABAABQAAQAAQAAbAbQ50I8t6A9uciDsIfi9broAWES0CAcAkIYBcAAoAAyNwOEiD8XgABgsPfNp8P0D0AM4DwCSD8fhyFaBsofAIInwDCNwPMHv5PX0EjT/guwCEU28B4CdwHCJeAAOESECBcAgKES0CAcAkIEC4BAcIlIEC4BAQIl8CnhYdLsFwFIIEWQIIEAb4LmQS3cVz5L/zp8fWusBLOCxxWDf/eEFMOi0RsA1tJQ4BF2kYSUW8N+24mSDxjGHcn0O4gXAASEIAEBCDB0gKcTi8kSBXgX/gkCBTgfegkMAP8SIKajCrBUgKczw8kSK8AJNACtAMC2CISgAQEmEECArShkEAFIIEWQAIzAAkMgSQgAAkIQAICdJZgBHkI0EmCUSoHATpIMFLb8D+DPkpwuSbBZy8zzz4TqAAVKgEBSEAAEhBg96m4Q39dXoKhKsBXAXccrpaWYLgWcC3oASbrZSUoFa/9Zjt16zZqD64EU2o8p1bP7RPRypIVwGDYLvwlBWhQlptJUDv8pi1g9lJ5azuYrWWXyr9wMwkah99DgjLNRVtL0Cn8lhKU6S7cSoLO4beQoGyzXry2BIOE7z5ADwmEP6cANcul8CdatIvwswXYUwLhT7x4F+EDAAAAAAAAAAAAAAAAAAAAwD38AT8g+uUAT65wAAAAAElFTkSuQmCC",$="/smeditor/assets/uprightBodyActive-3d912f52.png",A0="/smeditor/assets/uprightBodyInactive-01c6c977.png",n0="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCAD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rvoh0gfx95PL8c2xZ9AmxXCLLgS3oJGBLBLPkZ9w72OmF75mOZdGnbVjppoyPoPfaHRTBS/pQTt+AxDItgtPxRJ29PIL97BDPkWzEHiWCWfAEEiGCmfAHEvLQNdSKAWBEM9yGAOBFMcSGAGBHwAAAAAAAAAAAAAAAAAAAAAOBGPgB2WwC5W8OZ7AAAAABJRU5ErkJggg==",o0="/smeditor/assets/bodyActive-889762ad.png",g0="/smeditor/assets/bodyInactive-5d99335a.png",a0="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB+AMCwUON+iUkUgAAAcOSURBVHja7Z1/iBVVFMfvXadIWKiEhSRJMtTWcKEf9sO31mI/iKL8QVEUCFKwJVmozwgKIiiIfLpuhrVQCEJRFK4VSfRDKn+U2Q9YiSzJMAyDBStYMKp90z++f173zdyZc+6Ze+85X9h/xJ1zZuZ+PjNv3tt3tHKUxoYNafu/ranvA22zS42C+2qqZZXXyMtQo/a/f6uvX69dnKdEESZV1Sdlsp+20VT0PwKkP0Eg819LMilrdcowkQUSoZ+3BTQF/auB9J+JQOTfBYmsomZ7thBYgMQATQ9WepNJzUoNYKJ/FZD+qQgknipJYpW1W9nq2AKJ0M/bAtol/YNA+rsRCJwAEuhDDyMOLZAI/bwtoF3Rfx+Q/nMQyPsDSJ5PvbziyALODMDtdX+ozwW0C/pXAumfhkDcSQviWnWK/F/XPWVlmwMLODFAaNfdpoc9BWEAE/0rgPT3IJA2bkFae50yv+Oqt6xsR7YAugFCvfanHvfmpQFM9N8LpP88BMJ+syCsUx3I72L3mJVXES2QCP28LaCx6L8bSP/5CGT9akFWXh2MbWD1mpXXkSyQCP28LaAx6L8TSP8FCET9YkGUbR3MbUHrZOVNBAskQj9vC2go/cuB9F+IQNLPFiQVreNim2XrZGUH0AKJ0M/bAhpC/1Ig/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mP/et7e3/Xl5eXn9x4b/ef15/Hr8/7NjoP/hu7u7hYX/zZT/hf+F/ob+/7pxrv/lwsLC/Y+dj4/90Zz/j/2P/JD8/755tv/oxMjE/5iqmZn/16j/mf+Z/pr+/8SFwv/syc/J/6CzoqD+267/oP6i/qD8/8mLyP/vytTK2fi5aQAAAOV0Uk5T////AP///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////xt8+5oAAAYhSURBVHic7Zt3bBxFFIefHSGEEL33hN5DTyWQgtMIaYReHHrvvYbeO4RO6DgNcBqkk0o66aST0EQXchxzHMbA2/fN3l12LXHDH4d0u9LNT59uz37zefe8I70pkf94lHidXxJ+zrJOGuRwrWyQw2nZMIdTslEO18jG8NpgLP3nJ9qxaTBWyyY551fJZp71R45EgNf5JbI5XBWMdbIFbBOolS3h6mBMy1bwumBMydZwDeM28PfBGBWwLZzit27nWX/k8BWwPfxDMNbJDvCPwVgrO8I/BWNadoJ/DsaU7Az/Eow1sgu8JhijAnaFfw3GKtnNs/7I4SNAXw3hL0WCYhvBX4lOX2R3+GvR6YvsAX8j9lfcE/5W7CrYC14qOn3JEaBX0d7wd2JX3T6e9cdOKN/z9bUvvEys2P3g5WIC9odXiAk4AF4pJuBAeJWYgIPgeRIv4GB4tZiAxp71x04o3/P1dQg8X6zYQ+EFYgIOgxeKCTgcXiQm4Ah4sZiAI+HpEi/gKHiJmIAmnvXHTijf8/XVFJ4hVmwzeKaYgObwLDEBLeDZYgJawnPEBBwNT5B4Aa3guWICjvGsP3ZC+Z1vnzgWnkipreFJwfRF2sCTg+mLtIWn8D3eDp7K/4Hj4JHB9LMF2P+RMnga/3fae9YfOXwFdIBHUWpHeDQCOsFjENAZHouA4+FxCOgCVyLghPB9E9AVHo+Abp71Rw5fAd3hSgT0gIcgoCc8FAEnwsMQ0AsejoCT4AoEnBy+bwJOgUcg4FTP+iOHr4DT4AoEnA73R8AZ8AAEnA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8lJSU/zk5OTn/qkj/Of859UP1/5Ul+HH4YP/GnJyc/UpKS0v9sVj/S/1L/Ez8/501/X39cv/SpKSk/ldXWFj+uGb/WP5Y/Vn9/6RD/pL+gP/Xq6ur/2JiZGT+vXL/ZP5k/WX9/6pP/qP+jP/bsbGx/25ucHD+w37/cP5w/XH9/7Bb/rL+mP/et7e3/Xl5eXn9x4b/ef15/Hr8/7Nj/r7+oP/hu7u7hYX/zZT/hf+F/ob+/7px/8r/rv/lwsLC/Y+dj4/90Zz/j/2P/JD8/755/tX+tv/oxMjE/5iqmZn/16j/mf+Z/pr+/8SF/93/wv/syc/J/6CzoqD+267/oP6i/qD8/8mL/+L+yP/vytTKfd22ZwAAAPV0Uk5T////AP////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////90oRikAAAGVUlEQVR4nO2bd4xUVRSHz0qMMcbYe8Ne6Ci9g3TsvYO9914XCyr23qUjHelIRzrSkY50pOOwDMu6rqs573z3zQ4zJs71jzWZd5N3f/nIm9lzP2Z2303OzZH/OHK87s8JX2dZLGWSuEj2T+JCOSCJC+TAJM6Xg5I4LgcncZ4cksQxOcyz/pQRCfC6P0cOh2PBXCxHwLuCuUiOhPOCuVCOgncHc4EcDceDOV+Ogffwr8fC+bzLcfBefurxnvWnDF8BJ8CbgrlYToQ3B3ORnARvCeZCORneGswFcgq8LZjzpSy8PZjjciq8I5jz5DR4ZzDH5HTP+lOGjwC9zoBXiS5f5Ex4tejyRc6C14guX+RseK3o8kXOgdeJ/S+fC68X+1ScB28Q+xSVgzeKferKe9afdkGZ3q9XBXiRmICK8GIxAZXgJWICKsNLxQRUgZeJCagKLxcTcD68QkzABfBKMQHVPOtPu6BM79erOjxLTEANeLaYgJrwHDEBteC5YgJqw/PEBNSB54sJqAsvEBNQD14oJqC+Z/1pF5Tp/Xo1gCeJCWgITxYT0AieIiagMTxVTEATeJqYgAvh6WICmsIzx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AQrD3GKmAwrD3GKmCIZ/1pF5Tp/XoNhbWtXQUMg7WtXQUMh7WtXQWMgLXLXAWMhLXLXAX8AGuXuQoYBWuXuQoYDWuXuQoY41l/2gVldr+9YizclM3QOLgZm6HxcHM2QxPgFmyGJsIt2Qz9CLdiMzQJbs1maDLchs3QFM/6U4avgKlwXQRMg+shYDpcHwEz4AYImAk3RMBPcCMEzIIbI2A23AQBczzrTxm+Av6CyyBgLlwNAfPg6giYD9dAwAK4JgIWwrUQ8DNcGwGL4DoIWOxZf8rwFbAELoeApXB5BCyDKyBgOVwRASvgSghYCVdGwC9wFQSsgqsiYLVn/SnDdzO0hixLriXdgch1pDswuZ50Byo3kO7A5UbSHcj8lXQnRDeR7gTpZrLUBGwh3ZHXraQ7EruNdEdmt5PuSO0O0h253Um6I7m/ke6McIw8lNxFlpoA97rE7wIbf5Lu8PQfpDs8/TvpDk/vJd3h6T2kOzy9m3SHp93CS+3w9P9NwN85VJDW1dBaWwAAAABJRU5ErkJggg==",u=`precision mediump float; varying vec2 vUvs; diff --git a/Noteskin-0dfbdb39.js b/Noteskin-8865056a.js similarity index 99% rename from Noteskin-0dfbdb39.js rename to Noteskin-8865056a.js index e239196..d825c0a 100644 --- a/Noteskin-0dfbdb39.js +++ b/Noteskin-8865056a.js @@ -1,4 +1,4 @@ -import{w as o,x as H,y as r,b as G,z as E,O as f,H as Q,J as I,L as c,P as C,Q as F,a1 as K,V as a,Y as u,$ as P}from"./ChartManager-d5d16ca9.js";import{A as h}from"./AnimatedSprite-888875f6.js";import{H as v}from"./HoldBody-36fc6457.js";const L="/smeditor/assets/downBodyActive-dd1fd694.png",k="/smeditor/assets/downBodyInactive-c781a303.png",Y="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB98FAw0dOV1YU4MAAAPKSURBVHja7d1d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aff/oxMPMB8I6amQ9gHL/lISDzAXjiHwJw5y7EEgFj/CPtLp98/3r7jZG3h6tcEwjFvxwFEAQG8b8DYI9APf4RALYIHOIfBWCHwCX+GQA2CJzinwUgj8At/ggAWQSO8UcByCFwjf8IABkEMxdb/EcBBAF5/BkAgoA4/iwA1giY488EYImAPf5sAFYIFOKvAGCBQCX+KgDSCJTirwQgiUAt/moAUggU41cAkECgGr8KADUC5fiVACgRqMevBkCFwCF+BwAKBC7xuwBAI3CK3wkAEoFb/G4AUAgc4yMAgEDgGh8FQCuCkaUSHwkADQKl+GgA4BGoxUcEAItAMT4qADgEqvGRAcAgUI6PDqAdgXp8BgBtCBziswAoR+ASnwlAGQKn+GwAliNwi88IYBkCx/isAKYjcI3PDGAagpGlEp8dQAsCpfgKAEoRqMVXAVCCQDG+EoClCFTjqwFYgkA5viKAqQjU46sCmILAIb4ygIcQuMRXBzCEwCm+A4BTCNziuwA4hMAxvhOALxG4xncDcBeB+764ATiCwGpPHAF8hcBuP1wB3EPgvBfWCK7ZhqysrKysrCy39Q9gQ/q5SfcuvQAAAABJRU5ErkJggg==",p="/smeditor/assets/leftBodyActive-75d41033.png",b="/smeditor/assets/leftBodyInactive-bbc074cd.png",O="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IArs4c6QAAAAZiS0dEANIA0gBQ7xAn7AAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB+EDFAI2I6Ho7PYAAANMSURBVHja7Z1bTgMxDEU7VjeAxAJR10C7CMoaEAus1B0Av6XiMY/EsX2PJT4GoTHpOZNJMhl32t3F6/n8eXt8eDrt1sTD48eiv79ebNcqluZumX9N7p7/39v7y7fj5+Nxuj3e7zrF9WKzP4xM8HsBHhXW8+RzPtgqVz4CrPiAM8IfIUzPnDaqAZmvfE8JeueyEQ2p0O17SOCRw7U/u16s1D2/JyCvXibtCCjKgC/LOX+LPfBzAZPvAZjqCQsAfGEBgC8s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SuQmCC",x="/smeditor/assets/rightBodyActive-07f95372.png",y="/smeditor/assets/rightBodyInactive-fdefc2a4.png",T="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IArs4c6QAAAAZiS0dEAAAAAAAA+UO7fwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB+EDFAI3NtUuOVwAAAOHSURBVHja7Z3RTSsxEEUdKw0gUSCiBkIRhBoQBSLRQeDr6YWQEK/j8c7MPfcvIO0sPmcd24RhU07yut9/Hb9+fHguPbm7PxSLfH7UIdfpub9RtXvq99Z+e3/58fppt9scv96WYLk2cK0D9flRF0O4uz8Mk2BJ/ZHinaYW4fQM7MiZraW+JXxTAaxvfFRNzxLMGMPqDcgatTxKMGvsqmcwM2t4kmDmg1O9P50zr+1BgtlvndOqWfxgXq5pteWdkanbwDUWhtZbNIstYsoZgC0iAiABAiABAiABAiABAiABAiABAiABAiDButlmB3Vu0Nf4UMfx/Xg6Maxq8Ec/idFngqoGHwlYAyABAiABAiDB/F3A2p/Fn7U6j7Q7qBGfsghPYpSZoGaEjwSOBFh7kYMEKwrgZa+LBCsI4O3cGwmCbgMzQfAoQYhzACQ4aAvwbxBGDURECaxCf4CFtekPkCj0B6A/AP0BvAFZoxb9AYJLQH8A52sA+gO016c/QMBr0h8g4P7X8xYx5QzAFhEBkAABkAABkAABkAABkAABdEJ/AEJ/AOJTAgQQlwABxCVAAHEJEGDCVtCzBAggLgECiEvgvj/AUgiWg3lar+dzA3+NDf0BBlzTchCt69EfAAnoD4AE9AdAgkJ/ACQo9AcIIZ51PfoDIAH9AUhf3t5fNAWYfaBiXa/n+ufgP+12m/QCAL8dvqkAXvoDzDwaHl3PGn6TAC3vIx4kAP5y+KWUcvabr/v91+nXHh+e3a6Sgd8H/6IAkSQAfj/8PwWIIAHwb4N/VQALCTIlOvwmAZAgL/xmAZAgJ/xFAiBBPvhN5wDXCt1yTqAcD/AXC4AEueB3CYAEee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PbJ8P/N8+H7i44L+fOBofLCx/Y+J/ETIREMDkV0F4MQDMfh1Hl/cA9QtJL9ieH9ieH9ieHygAsuVQAAGk4eyBJwZgb0gIJIB+QScPnRWP8/XP76Vx9thfGKseaKyfX1x8UJE8+BhHyicqdT4UTJ4pxSH24Vf5bDl4XFc+/usBbYATaABorwQWgJobwba/QG3xEFs38FSzyUVtXqGTxTYft32HTucbneQGJroAb/WyW7joEgroN7ENBRBANtHNBAzAthGOBAhAN1JOBAQw2UqKFwPAbDsvXV7tvJ7svxZ7rtud17P931ZQbn4f7X83O9+XNr9v5w+cdv6DPwWiAkzzlaAAyJZDQXEQyuECcsDJmViATmKR+UogAfSAFy5wAH7ADBaww3B0PhbQ03h0PhSUp/GcethVOXjKqVw4QgrEwWj0wLN2Qn0w2gsc+QamFEfDbecTbucTnnY+pp8sjgkNLT+ffpyoPadU5tMFGKDz4ZLysFx1CO5g0eJhudeLFVqtjA+WNecV22OIR4LiyOjmfOiF8cHSm/rkdnsY9mAxAPD8iaAHmPyBoAW4fC/oADZfCxqAz7eC+gKFsBDenyBvUCgBs3wnqADTfCUoALLlUAABpKERFIDFS2DYFTELL60tQXfZ2PzZpTfFdULPs/k1QSsvVy2r+4x0PhZU9xmlK6HcVVHF0HJLd7MbCOkEJ93shiKkwAPaACfQANBeCSwANTcCCYCthcBdsBgav8hEd8Mjb8unGoDI55MFQOXj6Rwg8+kCDND5cAkFdM3spbwW0OdPBeW14/Ii5cHC5t5ze5HzREAANH8kAACePxH0AJM/ELQAl+8FHcDma0ED8PlW8AT4F0zxmObwVcrYAAAAAElFTkSuQmCC",j="/smeditor/assets/upBodyInactive-87a7969e.png",N="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IArs4c6QAAAAZiS0dEAHgAeQB3paCnMQAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB+EDFAI5IlF3wK8AAAPCSURBVHja7Z1bbsIwFETNKBtAYo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frA4XQFBzCbDlQJjCYmoygk/tSpSrAPUGgBSBgBV4hAkSBQVmoBbsLBT4cAcBNv4ed9ALiJSPl5FwFuckUA6z/wkwH80WqAXVEABkcDGD0NcHgVgPUNYMb1TQCIAlJxtTCPqJUAUCbMqZSggpaAgpbQCpDQCpCggpTQCpDQCpDQClgMk5JgmIQEw6QkoPCz1h+YGLTO62qDAQAAAABJRU5ErkJggg==",a0="/smeditor/assets/parts-9a3f637b.png",Q0="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAABACAYAAAD1Xam+AAAAAXNSR0IB2cksfwAAAAlwSFlzAAALEwAACxMBAJqcGAAADKZJREFUeJztnU2IJVcVx099vNf1Xvc4MaF7MowOjhFEQUz8WCW0JCAITkARIUpwQEUNJhs3koCIMCvBLEQRdKerIW4UXYkI40aQWQgudCO6UKKSqJl+H/1eVV3vqbqnuvp2B+45t5me4p0fHKom5OS9fpnzv/977qnXOSiDZvkrMPA/e4Pxhgt7X7wMSdB/4I2lgdfsFeN1d8V4vgjKn8FNM4Nt8OMp+GhQ/r+WqfnncmSvOfzbXTFuPvpqUL756teMmSVgZpmNAuqDKdSzi1DceS4of/06mHoBUC9duPuLT4R9fge/+6vNr6GaG6hmANVBBuUshysvvC0ovzCfMmY1BbOagFlPAPBqo7z6zaD827dvm9P++f7+flB+HvIvKfcxhy5WLug+lIWLpXcfyArGsIbRsSgZf61mZQbzMoWFjbmLRZUG5xv8Wdf27/raCsAqt0U0too4Cc8vvajaa3D+2rjA+wRqDBOmvU1+NbJhP6/ahr3ivanvXVmqAAyd04r/kJF/WvEvwtNPK368hkIFP3fR3JfhAoDFb9apDSx+W0zl2NbSdnB6v+j7IhCeb6C2ObUVgHpl34t971UaLgDgir8RgZ4QxHB4GP4XQAVg6FDB94uf4wCo4JfefSBU8Hile44ALKqkcwCLMmE7ACjd6m+dBJRWAGprocdMASAR6AkBKx9X/7It/tq+9ypnOID6qPD79zEsl+H/A1UAhs5pDoArAP04BJYA+A6AK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Cdo/nX5wr0/kTYrvzyfO/p71qgADB2p9SeEzT9C2vwjpnnFGv09+QYqUfOPkO79u3xh86/jnJp/hArA0DlnByBt/hHRDkDY/Ovyhef/R6+PIXfv3Md/zxoVgKET6wCEzT8idgvAffz35BuoRc0/4ty3AOoAlCikzwAQ594DkHX/iWb1jyjA6C2AXf1jHID2AJQ4Bt8DaGcA5G8gbg+eCI//unx0AFnEFqBxAPImZiwqAEMnpviRuFHyqNUfkQz/HH8DEeKBRFZA1OqPnKP9R1QABk5xPe7328PDsvN/4gH4elT+tZ0yKj/94ctR+eO9uM/vwhPXovKX+a1zOf8nVAAUZYNRAVCUDUYFQFE2GBUARdlgVAAUZYNRAVCUDUYFQFE2mP8D644ti6CF+lcAAAAASUVORK5CYII=",I0="/smeditor/assets/frame-d599a2fe.png",c0="/smeditor/assets/parts-b37af2cf.png",D0="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAABACAIAAAB6Pz7pAAAAAXNSR0IB2cksfwAAAAlwSFlzAAALEwAACxMBAJqcGAAACxZJREFUeJztXb1uJEUQnp5Ze9cnJCR0EgkBOTnxBQS8AGSgk0gQPADvQE5AdikJEQ9wGRcS8gikJOdde36wp+eneuqnq2a8fXuov8BerWt6er31df12z654z9F13bueQoDT6bR458WLVw8/X//zPX3B30dS/s2/L+e3wEc8/rUcwMt/+WaWd+CvPy2HH8f/8VdyOsev/iTlf/v0JRZ+wMev6PF//4b+vB99R3/eX374lpT/7OuSlH/z8yek/PHzL0j558//IOV35LsZT48r8FrD2Wvb8Luinl674Cb0V3yohr9PC4g8qbKtmb8wKrTU2whc13J3Zt5uHn/Ok3a02IjD4fDws22Hu0wvMgFS4Qq9I2scJECo0SR2RdOLYCH6K96X7TiLWXWEO7i2YSTo8V3Fj0XK90Q0WPMlAQqZAwsCFKPvkAmQCv4/DVS5c/MbBPbW4eEK3YGbMcNXk+6otK5s75nhmYlaCdAPOgzprZITF3XXgDmAYRjs98Q8H/iQCZAKcEX3369GHq794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cJ1hjAngUyHulGu0AsuGa4/wBTjZtfVontJAAAAABJRU5ErkJggg==",M=`precision mediump float; +import{v as o,w as H,x as r,b as G,y as E,O as f,z as Q,H as I,J as c,L as C,P as F,a0 as K,Q as a,X as u,Z as P}from"./ChartManager-47a72d67.js";import{A as h}from"./AnimatedSprite-b795c45d.js";import{H as v}from"./HoldBody-be07a70c.js";const L="/smeditor/assets/downBodyActive-dd1fd694.png",k="/smeditor/assets/downBodyInactive-c781a303.png",Y="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB98FAw0dOV1YU4MAAAPKSURBVHja7d1dTupQFIbh0pwJkDBA4xjEQVjGcOIATZwBnFslHC1l7b2/v3WHiUL6PimUwHI3Xc1pWS5fbz8/vU5bZn843/07nx/zVDVb7h/5sW29/7/vb99uvxyPu6+356nRbHnAldEqg7HGXzPt/rIIAuX4zQGwI1CP3wUAKwKH+N0AsCFwid8VAAsCp/jdAaAjcIs/BAAqAsf4wwCgIXCNPxQACgLn+MMBICBwjg8BQAEBa3wYAMwImONDAWBEwB4fDgATAoX4kAAYEKjEhwWAjEApPjQARARq8eEBICFQjE8BAAGBanwaACMRKMefpmn60+NUWXVAPj/mu4PsD+fN94/4yeZqXHPr+NWn415nAtSPtVe/vplbP2BGBOjfaag8ll2frBgQqH2hBe5FIDICt/jDrgIQETjGH3oZiITANX4pAMYvf+wPZ8r4lfdfegZQ+kKoQ/wmTwHKCBQ/QDqjHCh0BKqfHs5+AOP4za8Csh8AO36Xy8DsB8CN3+19gOwHyH6A7AcAjN8VAAuC7AcwRpD9AMYIsh/AGEH2AxgjyH6AwZP9AJM3AAUE2Q9gjCD7AYwRZD+AMYLsBzBGkP0AxgiyH8AYQfYDGCPIfgBjBNkPYIwg+wEKDlj2A+AdyyZngOwHyH6ALs/J2Q+Q/QDZ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ntnHmBIaHP+8FAALnfh7hbwUAgin+18Fbwt8DIA0Cxdoa/l4AICgS/hEAICgQ/lEAIEge/pp5gM2AIs4YEn4/ACBIHH4rACBIGn5LACBIGH6LQWC4geFWQAWudziUoXm8IPYEMcPvBWAoAqE7jZvsvc3zBYIgVvi9xgBhxgR78LQeZMlIAgEAQAAAEAAABAAAAQBAAAAQAAAEAAABAEAAABAAAAQAAAEAQAAAEEQqywY08kUlkX9pPSuAdAgAAAIAgAAA5RAAAAQAAAEAQAAAPQSVkViB99AVQfU9RKVLnJtMGx+tJ/iYCs60J2AMAIKWn34OASqHA74OFkbABSHCCLgkTBgBF4UKI+CycGEE3BgijIBbwwoiUN6GigBaIuD2cGEELBAhjEB9u1EURVEUlbz+AOnsq2p4bKxbAAAAAElFTkSuQmCC",x="/smeditor/assets/rightBodyActive-07f95372.png",y="/smeditor/assets/rightBodyInactive-fdefc2a4.png",T="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IArs4c6QAAAAZiS0dEAAAAAAAA+UO7fwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB+EDFAI3NtUuOVwAAAOHSURBVHja7Z3RTSsxEEUdKw0gUSCiBkIRhBoQBSLRQeDr6YWQEK/j8c7MPfcvIO0sPmcd24RhU07yut9/Hb9+fHguPbm7PxSLfH7UIdfpub9RtXvq99Z+e3/58fppt9scv96WYLk2cK0D9flRF0O4uz8Mk2BJ/ZHinaYW4fQM7MiZraW+JXxTAaxvfFRNzxLMGMPqDcgatTxKMGvsqmcwM2t4kmDmg1O9P50zr+1BgtlvndOqWfxgXq5pteWdkanbwDUWhtZbNIstYsoZgC0iAiABAiABAiABAiABAiABAiABAiABAiDButlmB3Vu0Nf4UMfx/Xg6Maxq8Ec/idFngqoGHwlYAyABAiABAiDB/F3A2p/Fn7U6j7Q7qBGfsghPYpSZoGaEjwSOBFh7kYMEKwrgZa+LBCsI4O3cGwmCbgMzQfAoQ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HGWZFOlGcsACdfo7MXnSjPHYvCyXsL4Pq106/W8vgcAVj5Ejo/s0Kz8kwhjJO/vR2ec7xIhmYCpMKWLJACYy9Qp7zoOB+LAuG4A+y68goI0+W2ANZ2aAe22mggFsIwvAsE136PTIBUgCu6fkOMGmYXKIwBilGhP2DkPQH0MPcCWesA3c7U//xAAKz9RSZAOnAPcOH0ylgHOHcM0JY2VTETwNrS09g+79u3b8n3MwFSAQXBg8pxBDBngeBAccbAHWEatBXaECNqrJkAJZjP0GdnrQNIc5piAIhcCEsIFAQPK/ANI8+dDcosfDWIATSwHo3YehdI36O9ygIME9C4Qx0+GlEs/PVZIOgF5UJYWuBeIBmcBWAIA10gTTHMxwCFuhTQlWfeFG/uBVoQIHL5IgjOhbDkeKodYSwBloUwGUfipDcJ1hjAngUyHulGu0AsuGa4/wBTjZtfVontJAAAAABJRU5ErkJggg==",M=`precision mediump float; varying vec2 vUvs; diff --git a/Noteskin-168ea4f3.js b/Noteskin-abdfd413.js similarity index 99% rename from Noteskin-168ea4f3.js rename to Noteskin-abdfd413.js index c82a60d..a214cd4 100644 --- a/Noteskin-168ea4f3.js +++ b/Noteskin-abdfd413.js @@ -1,4 +1,4 @@ -import{w as r,x as I,y as E,b as P,z as v,O as m,H as w,J as c,L as Q,P as a,Q as p,a1 as L,V as C,Y as x,$ as l}from"./ChartManager-d5d16ca9.js";import{A as H}from"./AnimatedSprite-888875f6.js";import{H as d}from"./HoldBody-36fc6457.js";const b="/smeditor/assets/downBodyActive-dd1fd694.png",G="/smeditor/assets/downBodyInactive-c781a303.png",y="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB98FAw0dOV1YU4MAAAPKSURBVHja7d1dTupQFIbh0pwJkDBA4xjEQVjGcOIATZwBnFslHC1l7b2/v3WHiUL6PimUwHI3Xc1p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jFvxwFEAQG8b8DYI9APf4RALYIHOIfBWCHwCX+GQA2CJzinwUgj8At/ggAWQSO8UcByCFwjf8IABkEMxdb/EcBBAF5/BkAgoA4/iwA1giY488EYImAPf5sAFYIFOKvAGCBQCX+KgDSCJTirwQgiUAt/moAUggU41cAkECgGr8KADUC5fiVACgRqMevBkCFwCF+BwAKBC7xuwBAI3CK3wkAEoFb/G4AUAgc4yMAgEDgGh8FQCuCkaUSHwkADQKl+GgA4BGoxUcEAItAMT4qADgEqvGRAcAgUI6PDqAdgXp8BgBtCBziswAoR+ASnwlAGQKn+GwAliNwi88IYBkCx/isAKYjcI3PDGAagpGlEp8dQAsCpfgKAEoRqMVXAVCCQDG+EoClCFTjqwFYgkA5viKAqQjU46sCmILAIb4ygIcQuMRXBzCEwCm+A4BTCNziuwA4hMAxvhOALxG4xncDcBeB+764ATiCwGpPHAF8hcBuP1wB3EPgvBfWCK7ZhqysrKysrCy39Q9gQ/q5SfcuvQAAAABJRU5ErkJggg==",Y="/smeditor/assets/leftBodyActive-75d41033.png",V="/smeditor/assets/leftBodyInactive-bbc074cd.png",N="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IArs4c6QAAAAZiS0dEANIA0gBQ7xAn7AAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB+EDFAI2I6Ho7PYAAANMSURBVHja7Z1bTgMxDEU7VjeAxAJR10C7CMoaEAus1B0Av6XiMY/EsX2PJT4GoTHpOZNJMhl32t3F6/n8eXt8eDrt1sTD48eiv79ebNcqluZumX9N7p7/39v7y7fj5+Nxuj3e7zrF9WKzP4xM8HsBHhXW8+RzPtgqVz4CrPiAM8IfIUzPnDaqAZmvfE8JeueyEQ2p0O17SOCRw7U/u16s1D2/JyCvXibtCCjKgC/LOX+LPfBzAZPvAZjqCQsAfGEBgC8sAPCFBQC+sADAFxYA+MICAF9YAOD7xh74f+evLpcB/+/81XYAhRQgKnwFCQz4ta/w0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n29SqtvZu2X9P756v73T6efzTfP9gmTrV5XxbvTEyhd8r4FFlPZ98zYat8skHwI4NnDH8EWB69rRRbyDzJ98TQe9eNuKNVNjteyDw6DH3OgvwqAjH/Gij/q1nATYlrSgDvizP+aoWws8VWNoxAKd6ACB8ABA+AAgfAIQPAMIHAOEDgPABQPhjayH89/2r4zLCf9+/2hVAIQFEDV8BgRF+7U94aACELwyA8IXPApTCj35aa4Qfb57BE6gRfqzwvREY4ccL3xOBEX7M8L0QGOHHDd8DgRG+9qmmEb72PEOYbwNZH6AYANYHyFGsD8D6AON27awPML4n6wMEC8S7F+sDBEbA+gAJjvmsDyAcfqbnDD8PkHm0z/oAwuFzGkj4ACB8ABA+AAgfAIQPgJHhU0UAEL4wAMIXBkD4wgAIXxgA4QsDaBk+p4DJABC+MADCj1FLxfB7jik8+rE+gHD43oNiI/yY/VgfQDh8zx5G+DHD9+plhB83fI+ellmvdxgVZyyN8HXDXwXgyZ0lVHEAcwsEvSczvGf/qs42vtoDgEAEwbtDQDgE3j/oEOUHJEauDwCCwQiO9FqT1bzyuX4f/7DntnHmBIaHP+8FAALnfh7hbwUAgin+18Fbwt8DIA0Cxdoa/l4AICgS/hEAICgQ/lEAIEge/pp5gM2AIs4YEn4/ACBIHH4rACBIGn5LACBIGH6LQWC4geFWQAWudziUoXm8IPYEMcPvBWAoAqE7jZvsvc3zBYIgVvi9xgBhxgR78LQeZMlIAgEAQAAAEAAABAAAAQBAAAAQAAAEAAABAEAAABAAAAQAAAEAQAAAEEQqywY08kUlkX9pPSuAdAgAAAIAgAAA5RAAAAQAAAEAQAAAPQSVkViB99AVQfU9RKVLnJtMGx+tJ/iYCs60J2AMAIKWn34OASqHA74OFkbABSHCCLgkTBgBF4UKI+CycGEE3BgijIBbwwoiUN6GigBaIuD2cGEELBAhjEB9u1EURVEUlbz+AOnsq2p4bKxbAAAAAElFTkSuQmCC",X="/smeditor/assets/rightBodyActive-07f95372.png",K="/smeditor/assets/rightBodyInactive-fdefc2a4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ieH9ieH9ieHygAsuVQAAGk4eyBJwZgb0gIJIB+QScPnRWP8/XP76Vx9thfGKseaKyfX1x8UJE8+BhHyicqdT4UTJ4pxSH24Vf5bDl4XFc+/usBbYATaABorwQWgJobwba/QG3xEFs38FSzyUVtXqGTxTYft32HTucbneQGJroAb/WyW7joEgroN7ENBRBANtHNBAzAthGOBAhAN1JOBAQw2UqKFwPAbDsvXV7tvJ7svxZ7rtud17P931ZQbn4f7X83O9+XNr9v5w+cdv6DPwWiAkzzlaAAyJZDQXEQyuECcsDJmViATmKR+UogAfSAFy5wAH7ADBaww3B0PhbQ03h0PhSUp/GcethVOXjKqVw4QgrEwWj0wLN2Qn0w2gsc+QamFEfDbecTbucTnnY+pp8sjgkNLT+ffpyoPadU5tMFGKDz4ZLysFx1CO5g0eJhudeLFVqtjA+WNecV22OIR4LiyOjmfOiF8cHSm/rkdnsY9mAxAPD8iaAHmPyBoAW4fC/oADZfCxqAz7eC+gKFsBDenyBvUCgBs3wnqADTfCUoALLlUAABpKERFIDFS2DYFTELL60tQXfZ2PzZpTfFdULPs/k1QSsvVy2r+4x0PhZU9xmlK6HcVVHF0HJLd7MbCOkEJ93shiKkwAPaACfQANBeCSwANTcCCYCthcBdsBgav8hEd8Mjb8unGoDI55MFQOXj6Rwg8+kCDND5cAkFdM3spbwW0OdPBeW14/Ii5cHC5t5ze5HzREAANH8kAACePxH0AJM/ELQAl+8FHcDma0ED8PlW8AT4F0zxmObwVcrYAAAAAElFTkSuQmCC",Z="/smeditor/assets/upBodyInactive-87a7969e.png",J="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IArs4c6QAAAAZiS0dEAHgAeQB3paCnMQAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB+EDFAI5IlF3wK8AAAPCSURBVHja7Z1bbsIwFETNKBtAYoFV11C6iNI1VF0gEjug/YUoRbWxfR8zV+oHH9TG58QhUe6wK6v6PJ1+bl+/vryX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egTokdx8pQW9Jj5kzLBr8P0vt/dc6LMP7dne6unU7KPkUEAn+o70/ykowOr6tC9i2ee/b/xP+5bqFR7O701a1Z8qnopg7YuafvdMfdPcdOp+KMOgI8CtJcCafWj3oSPArSHA2n1o56IjwM0vQkk+tGnRk+BklaM2nVgx6FvzAESafmj1o4MfK59Ew6Fvn5csRfph8ajEwZ/gh8qmFgwZ+gHxq0aCBHySfB7O47HYwfAUgCgQCIACBAAQCEAhAIACBAAQCEAhAIACBAAQCZI8rFT4OHUwsVoAWkC7ta2y2gDNAnXoXWd0DzP7XsQiQTALHrmXHZhi0p+MxkKgiwMqmCxm7l91H1kOdy5oufAN/RwADCSqVt2U/1j1dgmq1jRXO9U+ToGJha5XCjuESVK1qrlTZM0yCyiXt1Uq7uktQvZ9Bxdq+bhI4NLOoWtx5WQKXTiaVq3ubJXBqY1O9vPu0BG49jBzq+2/kyFuAKxKUz49Th48bufEW4IwEtL4hCIIgCKJ0/AYcP+o66BZ87AAAAABJRU5ErkJggg==",j="/smeditor/assets/upleftBodyActive-bc79d60f.png",q="/smeditor/assets/upleftBodyInactive-f60085c6.png",W="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8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AElFTkSuQmCC",$="/smeditor/assets/uprightBodyActive-3d912f52.png",A0="/smeditor/assets/uprightBodyInactive-01c6c977.png",n0="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgDgGiD4c93/+8//UegJQCAZkmScQAAXkQkLlTKsz/HCAAARKCBKrBBG/TBGCzABhzBBdzBC/xgNoRCJMTCQhBCCmSAHHJgKayCQiiGzbAdKmAv1EAdNMBRaIaTcA4uwlW4Dj1wD/phCJ7BKLyBCQRByAgTYSHaiAFiilgjjggXmYX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ddTwCAHACDgUrf/iKgzM2N26o/i4AQZvdveARXnfevGwBV563rHgBV5/2z7Mf4h6onAEBeA1BOAP2+7h+47/q6CSBL2vW3YesJABBJfAHgfBVAPgB9S4TDRDcCL5eywxOlf+75Bl3XEwCgmwA8I3aa5hq5SfNU9fkzzwTwROmfJVnQegKA7i8OkUlfHiFPjuVr/tNUPgCPPdesp0n6oO6/YbXKH9Sd6/of2+Og9QQAeErkY6VctwbwWLkGsFqZrfp3XU8AgFzxd3QB0NvV+e8qd9H12ncdgmvVv+t67gYEiJh/AchBW6zwsfy0AAAAAElFTkSuQmCC",i0="/smeditor/assets/frame-d599a2fe.png",C0="/smeditor/assets/parts-b37af2cf.png",s0="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAABACAYAAAD1Xam+AAAKTWlDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVN3WJP3Fj7f92UPVkLY8LGXbIEAIiOsCMgQWaIQkgBhhBASQMWFiApWFBURnEhVxILVCkidiOKgKLhnQYqIWotVXDjuH9yntX167+3t+9f7vOec5/zOec8PgBESJpHmomoAOVKFPDrYH49PSMTJvYACFUjgBCAQ5svCZwXFAADwA3l4fnSwP/wBr28AAgBw1S4kEsfh/4O6UCZXACCRAOAiEucLAZBSAMguVMgUAMgYALBTs2QKAJQAAGx5fEIiAKoNAOz0ST4FANipk9wXANiiHKkIAI0BAJkoRyQCQLsAYFWBUiwCwMIAoKxAIi4EwK4BgFm2MkcCgL0FAHaOWJAPQGAAgJlCLMwAIDgCAEMeE80DIEwDoDDSv+CpX3CFuEgBAMDLlc2XS9IzFLiV0Bp38vDg4iHiwmyxQmEXKRBmCeQinJebIxNI5wNMzgwAABr50cH+OD+Q5+bk4eZm52zv9MWi/mvwbyI+IfHf/ryMAgQAEE7P79pf5eXWA3DHAbB1v2upWwDaVgBo3/ldM9sJoFoK0Hr5i3k4/EAenqFQyDwdHAoLC+0lYqG9MOOLPv8z4W/gi372/EAe/tt68ABxmkCZ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OkUlfHiFPjuVr/tNUPgCPPdesp0n6oO6/YbXKH9Sd6/of2+Og9QQAeErkY6VctwbwWLkGsFqZrfp3XU8AgFzxd3QB0NvV+e8qd9H12ncdgmvVv+t67gYEiJh/AchBW6zwsfy0AAAAAElFTkSuQmCC",u=`precision mediump float; +import{v as r,w as I,x as E,b as P,y as v,O as m,z as w,H as c,J as Q,L as a,P as p,a0 as L,Q as C,X as x,Z as l}from"./ChartManager-47a72d67.js";import{A as H}from"./AnimatedSprite-b795c45d.js";import{H as d}from"./HoldBody-be07a70c.js";const b="/smeditor/assets/downBodyActive-dd1fd694.png",G="/smeditor/assets/downBodyInactive-c781a303.png",y="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB98FAw0dOV1YU4MAAAPKSURBVHja7d1dTupQFIbh0pwJkDBA4xjEQVjGcOIATZwBnFslHC1l7b2/v3WHiUL6PimUwHI3Xc1pWS5fbz8/vU5bZn843/07nx/zVDVb7h/5sW29/7/vb99uvxyPu6+356nRbHnAldEqg7HGXzPt/rIIAuX4zQGwI1CP3wUAKwKH+N0AsCFwid8VAAsCp/jdAaAjcIs/BAAqAsf4wwCgIXCNPxQACgLn+MMBICBwjg8BQAEBa3wYAMwImONDAWBEwB4fDgATAoX4kAAYEKjEhwWAjEApPjQARARq8eEBICFQjE8BAAGBanwaACMRKMefpmn60+NUWXVAPj/mu4PsD+fN94/4yeZqXHPr+NWn415nAtSPtVe/vplbP2BGBOjfaag8ll2frBgQqH2hBe5FIDICt/jDrgIQETjGH3oZiITANX4pAMYvf+wPZ8r4lfdfegZQ+kKoQ/wmTwHKCBQ/QDqjHCh0BKqfHs5+AOP4za8Csh8AO36Xy8DsB8CN3+19gOwHyH6A7AcAjN8VAAuC7AcwRpD9AMYIsh/AGEH2AxgjyH6AwZP9AJM3AAUE2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CK7ZhqysrKysrCy39Q9gQ/q5SfcuvQAAAABJRU5ErkJggg==",Y="/smeditor/assets/leftBodyActive-75d41033.png",V="/smeditor/assets/leftBodyInactive-bbc074cd.png",N="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IArs4c6QAAAAZiS0dEANIA0gBQ7xAn7AAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB+EDFAI2I6Ho7PYAAANMSURBVHja7Z1bTgMxDEU7VjeAxAJR10C7CMoaEAus1B0Av6XiMY/EsX2PJT4GoTHpOZNJMhl32t3F6/n8eXt8eDrt1sTD48eiv79ebNcqluZumX9N7p7/39v7y7fj5+Nxuj3e7zrF9WKzP4xM8HsBHhXW8+RzPtgqVz4CrPiAM8IfIUzPnDaqAZmvfE8JeueyEQ2p0O17SOCRw7U/u16s1D2/JyCvXibtCCjKgC/LOX+LPfBzAZPvAZjqCQsAfGEBgC8sAPCFBQC+sADAFxYA+MICAF9YAOD7xh74f+evLpcB/+/81XYAhRQgKnwFCQz4ta/w0AIAX1gA4AvPApTgR5/WGvDjrTN4CmrAjwXfWwIDfjz4nhIY8GPC95LAgB8XvocEBnztqaYBX3udIczTQOoDFBOA+gA5gvoA1AcY17VTH2B8TuoDBAPinYv6AIEloD5A8Hs+9QEGBvUBiq0DZB7tUx9AGD7TQOAjAPARAPgIAHwEAD4CjIRPFBEA+MICAF9YAOALCwB8YQGALyxAS/hMAZMJAHxhAYAfI/YV4fccU3jkoz6AMHzvQbEBP2Y+6gMIw/fMYcCPCd8rlwE/LnyPnJbZXm8YFVcsDfi68GcJcP/980RxAZ6Px6mFBL0XM7xX/6quNv7YKiTQkeDXFkWUwPsLHaJ8gcSw+gBIMF6CLbnmsJrmnOj1fP68/93h6cSaQOeZQWv4P13Q09wTIoFvPg/4iwRAAr98XvAXC5BJAsVYCn+VAEhQB/5qAZCgBvxNAiBBfvj/rgP8F1lWDIHfSQAkyA2/iQBIkBd+M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+ellmvdxgVZyyN8HXDXwXgyZ0lVHEAcwsEvSczvGf/qs42vtoDgEAEwbtDQDgE3j/oEOUHJEauDwCCwQiO9FqT1bzyuX4f/7DntnHmBIaHP+8FAALnfh7hbwUAgin+18Fbwt8DIA0Cxdoa/l4AICgS/hEAICgQ/lEAIEge/pp5gM2AIs4YEn4/ACBIHH4rACBIGn5LACBIGH6LQWC4geFWQAWudziUoXm8IPYEMcPvBWAoAqE7jZvsvc3zBYIgVvi9xgBhxgR78LQeZMlIAgEAQAAAEAAABAAAAQBAAAAQAAAEAAABAEAAABAAAAQAAAEAQAAAEEQqywY08kUlkX9pPSuAdAgAAAIAgAAA5RAAAAQAAAEAQAAAPQSVkViB99AVQfU9RKVLnJtMGx+tJ/iYCs60J2AMAIKWn34OASqHA74OFkbABSHCCLgkTBgBF4UKI+CycGEE3BgijIBbwwoiUN6GigBaIuD2cGEELBAhjEB9u1EURVEUlbz+AOnsq2p4bKxbAAAAAElFTkSuQmCC",X="/smeditor/assets/rightBodyActive-07f95372.png",K="/smeditor/assets/rightBodyInactive-fdefc2a4.png",R="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IArs4c6QAAAAZiS0dEAAAAAAAA+UO7fwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB+EDFAI3NtUuOVwAAAOHSURBVHja7Z3RTSsxEEUdKw0gUSCiBkIRhBoQBSLRQeDr6YWQEK/j8c7MPfcvIO0sPmcd24RhU07yut9/Hb9+fHguPbm7PxSLfH7UIdfpub9RtXvq99Z+e3/58fppt9scv96WYLk2cK0D9flRF0O4uz8Mk2BJ/ZHinaYW4fQM7MiZraW+JXxTAaxvfFRNzxLMGMPqDcgatTxKMGvsqmcwM2t4kmDmg1O9P50zr+1BgtlvndOqWfxgXq5pteWdkanbwDUWhtZbNIstYsoZgC0iAiABAiABAiABAiABAiABAiABAiABAiDButlmB3Vu0Nf4UMfx/Xg6Maxq8Ec/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z49Th48bufEW4IwEtL4hCIIgCKJ0/AYcP+o66BZ87AAAAABJRU5ErkJggg==",j="/smeditor/assets/upleftBodyActive-bc79d60f.png",q="/smeditor/assets/upleftBodyInactive-f60085c6.png",W="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgDgGiD4c93/+8//UegJQCAZkmScQAAXkQkLlTKsz/HCAAARKCBKrBBG/TBGCzABhzBBdzBC/xgNoRCJMTCQhBCCmSAHHJgKayCQiiGzbAdKmAv1EAdNMBRaIaTcA4uwlW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CSD8fhyFaBsofAIInwDCNwPMHv5PX0EjT/guwCEU28B4CdwHCJeAAOESECBcAgKES0CAcAkIEC4BAcIlIEC4BAQIl8CnhYdLsFwFIIEWQIIEAb4LmQS3cVz5L/zp8fWusBLOCxxWDf/eEFMOi0RsA1tJQ4BF2kYSUW8N+24mSDxjGHcn0O4gXAASEIAEBCDB0gKcTi8kSBXgX/gkCBTgfegkMAP8SIKajCrBUgKczw8kSK8AJNACtAMC2CISgAQEmEECArShkEAFIIEWQAIzAAkMgSQgAAkIQAICdJZgBHkI0EmCUSoHATpIMFLb8D+DPkpwuSbBZy8zzz4TqAAVKgEBSEAAEhBg96m4Q39dXoKhKsBXAXccrpaWYLgWcC3oASbrZSUoFa/9Zjt16zZqD64EU2o8p1bP7RPRypIVwGDYLvwlBWhQlptJUDv8pi1g9lJ5azuYrWWXyr9wMwkah99DgjLNRVtL0Cn8lhKU6S7cSoLO4beQoGyzXry2BIOE7z5ADwmEP6cANcul8CdatIvwswXYUwLhT7x4F+EDAAAAAAAAAAAAAAAAAAAAwD38AT8g+uUAT65wAAAAAElFTkSuQmCC",$="/smeditor/assets/uprightBodyActive-3d912f52.png",A0="/smeditor/assets/uprightBodyInactive-01c6c977.png",n0="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANg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EM9yGAOBFMcSGAGBHwAAAAAAAAAAAAAAAAAAAAAOBGPgB2WwC5W8OZ7AAAAABJRU5ErkJggg==",o0="/smeditor/assets/bodyActive-889762ad.png",g0="/smeditor/assets/bodyInactive-5d99335a.png",e0="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB+AMCwUON+iUkUgAAAcOSURBVHja7Z1/iBVVFMfvXadIWKiEhSRJMtTWcKEf9sO31mI/iKL8QVEUCFKwJVmozwgKIiiIfLpuhrVQCEJRFK4VSfRDKn+U2Q9YiSzJMAyDBStYMKp90z++f173zdyZc+6Ze+85X9h/xJ1zZuZ+PjNv3tt3tHKUxoYNafu/ranvA22zS42C+2qqZZXXyMtQo/a/f6uvX69dnKdEESZV1Sdlsp+20VT0PwKkP0Eg819LMilrdcowkQUSoZ+3BTQF/auB9J+JQOTfBYmsomZ7thBYgMQATQ9WepNJzUoNYKJ/FZD+qQgknipJYpW1W9nq2AKJ0M/bAtol/YNA+rsRCJwAEuhDDyMOLZAI/bwtoF3Rfx+Q/nMQyPsDSJ5PvbziyALODMDtdX+ozwW0C/pXAumfhkDcSQviWnWK/F/XPWVlmwMLODFAaNfdpoc9BWEAE/0rgPT3IJA2bkFae50yv+Oqt6xsR7YAugFCvfanHvfmpQFM9N8LpP88BMJ+syCsUx3I72L3mJVXES2QCP28LaCx6L8bSP/5CGT9akFWXh2MbWD1mpXXkSyQCP28LaAx6L8TSP8FCET9YkGUbR3MbUHrZOVNBAskQj9vC2go/cuB9F+IQNLPFiQVreNim2XrZGUH0AKJ0M/bAhpC/1Ig/RchEPSTBUFl67jcdtE6WdkJsADIALG/187hPQJdlv7bgPTPQSDnRwtyoHUoatjWycq7JS1Q2gDyVz5x3AvoMvTfCqT/YgRiDlsQg1GHstZhoAXeK2GBUgbg9jm7mO8FdFH6b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uLu/teJftDs4EH8ge3kp6g8P5R/44kL2P3SHst5eiPoPl/L+/fLAtOrfdT0TAMh8/qySX1/r7K+NbgPPftmuf9f1TABMAPIE4Nk/rOdiVGvlH9g52d86+W4+Z52ov/Poex691r/reu4GBIgYKkDkuLdvS/8hKq8LKHB+Vv4PX3VdQJEzd1aqrzqvXeT9X+UTStV1Af+3f+h6JgCAiCEAAAgAAGANAKKnbvevom73r6Jud62ibvdvyz80PRMAABUAAAgAAGANAOj+dP849EwAAFQAACAAACCu6me4GzDuHYC7AbkbEACoAABAAABALHAdQOTwPACeBwAAVAAAIAAAgDUAiBPuCeB5AABABQAAAgAAWAMAuj/d/+fTMwEAUAEAgAAAgLiqn+F5AHHvADwPgOcBAAAVAAAIAACIBa4DiByeB8DzAACACQCghNFIJR8OdfZD49vAQn534TnLM9L6h60nAEDm+XOVfH9fZ79vfBv4KL776ZNH/kLrH7aeAAC5+4/HjfTF7r+318y/2F33TLMNFLv/P19+rH9oegIARPKGAVBkMsl1+nyi0s9mSbv+Sdh6AgDkiUC5BjAaWZ3e6vy9awAt+3ddTwCAHACDgUrf/iKgzM2N26o/i4AQZvdveARXnfevGwBV563rHgBV5/2z7Mf4h6onAEBeA1BOAP2+7h+47/q6CSBL2vW3YesJABBJfAHgfBVAPgB9S4TDRDcCL5eywxOlf+75Bl3XEwCgmwA8I3aa5hq5SfNU9fkzzwTwROmfJVnQegKA7i8OkUlfHiFPjuVr/tNUPgCPPdesp0n6oO6/YbXKH9Sd6/of2+Og9QQAeErkY6VctwbwWLkGsFqZrfp3XU8AgFzxd3QB0NvV+e8qd9H12ncdgmvVv+t67gYEiJh/AchBW6zwsfy0AAAAAElFTkSuQmCC",i0="/smeditor/assets/frame-d599a2fe.png",C0="/smeditor/assets/parts-b37af2cf.png",s0="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAABACAYAAAD1Xam+AAAKTWlDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVN3WJP3Fj7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qrzqvXeT9X+UTStV1Af+3f+h6JgCAiCEAAAgAAGANAKKnbvevom73r6Jud62ibvdvyz80PRMAABUAAAgAAGANAOj+dP849EwAAFQAACAAACCu6me4GzDuHYC7AbkbEACoAABAAABALHAdQOTwPACeBwAAVAAAIAAAgDUAiBPuCeB5AABABQAAAgAAWAMAuj/d/+fTMwEAUAEAgAAAgLiqn+F5AHHvADwPgOcBAAAVAAAIAACIBa4DiByeB8DzAACACQCghNFIJR8OdfZD49vAQn534TnLM9L6h60nAEDm+XOVfH9fZ79vfBv4KL776ZNH/kLrH7aeAAC5+4/HjfTF7r+318y/2F33TLMNFLv/P19+rH9oegIARPKGAVBkMsl1+nyi0s9mSbv+Sdh6AgDkiUC5BjAaWZ3e6vy9awAt+3ddTwCAHACDgUrf/iKgzM2N26o/i4AQZvdveARXnfevGwBV563rHgBV5/2z7Mf4h6onAEBeA1BOAP2+7h+47/q6CSBL2vW3YesJABBJfAHgfBVAPgB9S4TDRDcCL5eywxOlf+75Bl3XEwCgmwA8I3aa5hq5SfNU9fkzzwTwROmfJVnQegKA7i8OkUlfHiFPjuVr/tNUPgCPPdesp0n6oO6/YbXKH9Sd6/of2+Og9QQAeErkY6VctwbwWLkGsFqZrfp3XU8AgFzxd3QB0NvV+e8qd9H12ncdgmvVv+t67gYEiJh/AchBW6zwsfy0AAAAAElFTkSuQmCC",u=`precision mediump float; varying vec2 vUvs; diff --git a/Noteskin-9def79a7.js b/Noteskin-b3cab24d.js similarity index 88% rename from Noteskin-9def79a7.js rename to Noteskin-b3cab24d.js index e6ac2ad..89d145c 100644 --- a/Noteskin-9def79a7.js +++ b/Noteskin-b3cab24d.js @@ -1 +1 @@ -import{w as i,a1 as b,b as g,P as l,Y as B,V as r,X as A,O as y,z as I,Q as H,$ as v}from"./ChartManager-d5d16ca9.js";import{A as u}from"./AnimatedSprite-888875f6.js";import{T as R,H as f}from"./HoldBody-36fc6457.js";const M="/smeditor/assets/active-d06e5c33.png",U="/smeditor/assets/downBodyActive-8cf886d3.png",F="/smeditor/assets/downBodyInactive-7465edd0.png",L="/smeditor/assets/downBottomCapActive-b10d1f0d.png",k="/smeditor/assets/downBottomCapInactive-12cafebe.png",P="/smeditor/assets/inactive-a4aecb82.png",O="/smeditor/assets/leftBodyActive-5d89f111.png",D="/smeditor/assets/leftBodyInactive-1110dc77.png",S="/smeditor/assets/leftBottomCapActive-f759c91c.png",j="/smeditor/assets/leftBottomCapInactive-a4ac7bba.png",V="/smeditor/assets/rightBodyActive-8af7624b.png",Y="/smeditor/assets/rightBodyInactive-695480aa.png",z="/smeditor/assets/rightBottomCapActive-6edeea1e.png",X="/smeditor/assets/rightBottomCapInactive-d674960e.png",q="/smeditor/assets/upBodyActive-c813881f.png",Q="/smeditor/assets/upBodyInactive-0222237a.png",W="/smeditor/assets/upBottomCapActive-19e4c05d.png",G="/smeditor/assets/upBottomCapInactive-23aae747.png",J="/smeditor/assets/active-29dd632a.png",K="/smeditor/assets/downBodyActive-77f6502e.png",Z="/smeditor/assets/downBodyInactive-a5759c62.png",tt="/smeditor/assets/downBottomCapActive-57ef4d54.png",et="/smeditor/assets/downBottomCapInactive-13ddf252.png",ot="/smeditor/assets/inactive-48f23de3.png",st="/smeditor/assets/leftBodyActive-fd4e902b.png",at="/smeditor/assets/leftBodyInactive-8fe6311e.png",nt="/smeditor/assets/leftBottomCapActive-057c49fb.png",it="/smeditor/assets/leftBottomCapInactive-df6350c7.png",ct="/smeditor/assets/rightBodyActive-751fadec.png",lt="/smeditor/assets/rightBodyInactive-46202369.png",rt="/smeditor/assets/rightBottomCapActive-a736d803.png",dt="/smeditor/assets/rightBottomCapInactive-a64cea2c.png",pt="/smeditor/assets/upBodyActive-b06d82f3.png",ht="/smeditor/assets/upBodyInactive-4ef75342.png",mt="/smeditor/assets/upBottomCapActive-07fb7c6e.png",_t="/smeditor/assets/upBottomCapInactive-75f78aac.png",gt="/smeditor/assets/hold-4cf23d59.png",vt="/smeditor/assets/mine-f6147b04.png",ft="/smeditor/assets/particles-18ec6c1d.png",wt="/smeditor/assets/w0-6f86addb.png",ut="/smeditor/assets/w1-c8c43b0f.png",bt="/smeditor/assets/w2-37282ba8.png",Bt="/smeditor/assets/w3-3c2ca2d8.png",At="/smeditor/assets/w4-ce0f95de.png",yt="/smeditor/assets/w5-23173d4f.png",Ct="/smeditor/assets/hold-4cf23d59.png",xt="/smeditor/assets/mine-f6147b04.png",It="/smeditor/assets/particles-18ec6c1d.png",Tt=i.from(Ct),Nt=b(i.from(xt),16,1,160,1024)[0],$t=i.from(It),N=["w0","w1","w2","w3","w4","w5"],$={};N.forEach(t=>$[t]=i.from(new URL(Object.assign({"./flash/hold.png":gt,"./flash/mine.png":vt,"./flash/particles.png":ft,"./flash/w0.png":wt,"./flash/w1.png":ut,"./flash/w2.png":bt,"./flash/w3.png":Bt,"./flash/w4.png":At,"./flash/w5.png":yt})[`./flash/${t}.png`],self.location).href));class Et extends g{holdExplosion=new l(Tt);particles=new l($t);mine=new u(Nt);standard={};anims=new Set;particleAnim;mineAnim;constructor(e,s,n){super();const a=.5;N.forEach(o=>{const c=new l($[o]);c.anchor.set(.5),c.alpha=0,c.blendMode=B.ADD,this.standard[o]=c,this.addChild(c)}),e.on(this,"hit",o=>{if(s==o.columnNumber){const c=this.standard[o.judgement.id];if(!c)return;this.anims.forEach(d=>r.finish(d)),this.anims.clear(),this.anims.add(r.animate(c,{0:{alpha:.875,"scale.x":.8*a,"scale.y":.8*a},"0.5":{alpha:.875,"scale.x":1.1*a,"scale.y":1.1*a},1:{alpha:0,"scale.x":1.1*a,"scale.y":1.1*a}},.12))}}),e.on(this,"held",o=>{s==o.columnNumber&&(this.anims.forEach(c=>r.finish(c)),this.anims.clear(),this.anims.add(r.animate(this.standard.w0,{0:{alpha:.875,"scale.x":.8*a,"scale.y":.8*a},"0.5":{alpha:.875,"scale.x":1.1*a,"scale.y":1.1*a},1:{alpha:0,"scale.x":1.1*a,"scale.y":1.1*a}},.12)))}),e.on(this,"holdon",o=>{s==o.columnNumber&&(this.holdExplosion.visible=!0)}),e.on(this,"holdoff",o=>{s==o.columnNumber&&(this.holdExplosion.visible=!1)}),e.on(this,"rollon",o=>{s==o.columnNumber&&(this.holdExplosion.visible=!0)}),e.on(this,"rolloff",o=>{s==o.columnNumber&&(this.holdExplosion.visible=!1)}),e.onUpdate(this,()=>{this.holdExplosion.alpha=Math.sin(Date.now()/1e3*Math.PI*2*20)*.1+1}),this.holdExplosion.visible=!1,this.holdExplosion.anchor.set(.5),this.holdExplosion.scale.set(.5),this.addChild(this.holdExplosion),this.particles.alpha=0,this.particles.blendMode=B.ADD,this.particles.anchor.set(.5),e.on(this,"hit",o=>{if(s==o.columnNumber){if(this.particles.rotation=Math.random()*Math.PI*2,r.finish(this.particleAnim),!["w0","w1","w2","w3"].includes(o.judgement.id))return;this.particleAnim=r.animate(this.particles,{0:{alpha:.6,"scale.x":1*a,"scale.y":1*a},"0.7":{alpha:.6,"scale.x":1.2*a,"scale.y":1.2*a},1:{alpha:0,"scale.x":1.2*a,"scale.y":1.2*a}},.185,A(.16,.73,.63,.75))}}),this.addChild(this.particles),this.mine.anchor.x=.5,this.mine.scale.set(.5),this.mine.rotation=-C[n]*Math.PI/180,this.mine.animationSpeed=1/3,this.mine.alpha=0,this.addChild(this.mine),e.on(this,"hitmine",o=>{s==o.columnNumber&&(r.finish(this.mineAnim),this.mine.anchor.y=y.chart.reverse?1:0,this.mine.currentFrame=0,this.mine.play(),this.mineAnim=r.animate(this.mine,{0:{alpha:1},"0.5":{alpha:1},1:{alpha:0}},.6))})}}const Ht="/smeditor/assets/colors-63f923d2.png",Rt="/smeditor/assets/mask-f1b4d033.png",Mt="/smeditor/assets/note-07e5d79f.png",Ut="/smeditor/assets/outline-72e881a7.png",Ft="/smeditor/assets/stroke-1f54ba14.png",Lt="/smeditor/assets/top-74da30ae.png",_={};["colors","mask","note","outline","stroke","top"].forEach(t=>_[t]=i.from(new URL(Object.assign({"./tap/colors.png":Ht,"./tap/mask.png":Rt,"./tap/note.png":Mt,"./tap/outline.png":Ut,"./tap/stroke.png":Ft,"./tap/top.png":Lt})[`./tap/${t}.png`],self.location).href));const kt=b(_.top,4,1,384,384)[0],T=[-80,0,80];class p{static arrowFrameTex;static arrowFrameContainer=new g;static arrowTex;static arrowContainer=new g;static loaded=!1;static async initArrowTex(){if(!this.loaded){p.arrowFrameTex=I.create({width:64,height:64,resolution:y.performance.resolution}),p.arrowTex=I.create({width:64*3,height:64,resolution:y.performance.resolution});{const e=new l(_.note);e.width=64,e.height=64;const s=new l(_.outline);s.width=64,s.height=64;const n=new l(_.stroke);n.width=64,n.height=64,this.arrowFrameContainer.addChild(e,s,n)}for(let e=0;e<3;e++){const s=new l(this.arrowFrameTex);s.x=e*64;const n=new l(_.mask);n.scale.set(1/6),n.x=e*64,n.y=32,n.anchor.y=.5,n.alpha=1;const a=new R(_.colors,256,1024);a.tileScale.y=1/4,a.uvRespectAnchor=!0,a.x=e*64,a.y=32,a.tilePosition.y=128+T[e],a.anchor.y=.5,a.height=64,a.width=64,a.alpha=1,a.mask=n,a.name="c"+e;const o=new u(kt);o.scale.set(1/6),o.x=e*64,o.y=32,o.anchor.y=.5,o.alpha=1,o.name="t"+e,this.arrowContainer.addChild(s,a,n,o)}this.loaded=!0}}static setArrowTexTime(e){if(!this.loaded)return;const s=e.chartManager.chartView.getVisualBeat(),n=(s%1+1)%1,a=(s%4+4)%4;for(let o=0;o<3;o++)this.arrowContainer.getChildByName("c"+o).tilePosition.y=128+T[o]-a/4*256,this.arrowContainer.getChildByName("t"+o).currentFrame=Math.floor(n*4);e.renderer.render(p.arrowFrameContainer,{renderTexture:p.arrowFrameTex}),e.renderer.render(p.arrowContainer,{renderTexture:p.arrowTex})}static setNoteTex(e,s){let n=[4,8].indexOf(s?.quant??4);n==-1&&(n=2),e.texture=new i(p.arrowTex.baseTexture,new H(n*64,0,64,64))}}const Pt="/smeditor/assets/mine-335f4545.png",Ot="/smeditor/assets/spark-2c59cc0e.png",Dt="/smeditor/assets/receptor-a0a69b2b.png",St="/smeditor/assets/receptorFlash-c7675c53.png",jt=i.from(Dt),Vt=i.from(St),Yt=i.from(Pt),zt=b(i.from(Ot),4,4,160,128).flat(),Xt={Left:0,Down:5,Up:8,Right:13},h={},m={},w={Hold:{Active:i.from(new URL("/smeditor/assets/active-d06e5c33.png",self.location).href),Inactive:i.from(new URL("/smeditor/assets/inactive-a4aecb82.png",self.location).href)},Roll:{Active:i.from(new URL("/smeditor/assets/active-29dd632a.png",self.location).href),Inactive:i.from(new URL("/smeditor/assets/inactive-48f23de3.png",self.location).href)}};for(const t of["Left","Down","Up","Right"])for(const e of["Body","BottomCap"])for(const s of["Active","Inactive"])h[t]===void 0&&(h[t]={}),h[t][s]===void 0&&(h[t][s]={}),h[t][s][e]=i.from(new URL(Object.assign({"./hold/active.png":M,"./hold/downBodyActive.png":U,"./hold/downBodyInactive.png":F,"./hold/downBottomCapActive.png":L,"./hold/downBottomCapInactive.png":k,"./hold/inactive.png":P,"./hold/leftBodyActive.png":O,"./hold/leftBodyInactive.png":D,"./hold/leftBottomCapActive.png":S,"./hold/leftBottomCapInactive.png":j,"./hold/rightBodyActive.png":V,"./hold/rightBodyInactive.png":Y,"./hold/rightBottomCapActive.png":z,"./hold/rightBottomCapInactive.png":X,"./hold/upBodyActive.png":q,"./hold/upBodyInactive.png":Q,"./hold/upBottomCapActive.png":W,"./hold/upBottomCapInactive.png":G})[`./hold/${t.toLowerCase()}${e}${s}.png`],self.location).href),m[t]===void 0&&(m[t]={}),m[t][s]===void 0&&(m[t][s]={}),m[t][s][e]=i.from(new URL(Object.assign({"./roll/active.png":J,"./roll/downBodyActive.png":K,"./roll/downBodyInactive.png":Z,"./roll/downBottomCapActive.png":tt,"./roll/downBottomCapInactive.png":et,"./roll/inactive.png":ot,"./roll/leftBodyActive.png":st,"./roll/leftBodyInactive.png":at,"./roll/leftBottomCapActive.png":nt,"./roll/leftBottomCapInactive.png":it,"./roll/rightBodyActive.png":ct,"./roll/rightBodyInactive.png":lt,"./roll/rightBottomCapActive.png":rt,"./roll/rightBottomCapInactive.png":dt,"./roll/upBodyActive.png":pt,"./roll/upBodyInactive.png":ht,"./roll/upBottomCapActive.png":mt,"./roll/upBottomCapInactive.png":_t})[`./roll/${t.toLowerCase()}${e}${s}.png`],self.location).href);const C={Left:90,Down:0,Up:180,Right:-90},qt=["Receptor","Tap","Lift","Fake","Hold Inactive Head","Hold Active Head","Roll Inactive Head","Roll Active Head","NoteFlash"],Jt={elements:{Left:{Receptor:t=>{let e,s;const n=b(jt,2,1,404,404),a=new g,o=new u(n[0]);o.width=64,o.height=64,o.anchor.set(.5),t.noteskin.on(o,"ghosttap",d=>{d.columnNumber==t.columnNumber&&(r.finish(e),e=r.animate(o,{0:{alpha:.9,width:.85*64,height:.85*64},1:{alpha:1,width:64,height:64}},.11))});const c=new l(Vt);return c.blendMode=B.ADD,c.width=64,c.height=64,c.anchor.set(.5),c.alpha=0,t.noteskin.on(a,"press",d=>{d.columnNumber==t.columnNumber&&(r.finish(s),s=r.animate(c,{0:{alpha:0,width:.85*64,height:.85*64},1:{alpha:.6,width:64,height:64}},.12,A(.5,1,.89,1)))}),t.noteskin.on(a,"lift",d=>{d.columnNumber==t.columnNumber&&(r.finish(s),s=r.animate(c,{0:{alpha:"inherit",width:"inherit",height:"inherit"},1:{alpha:0,width:64*1.2,height:64}},.12,A(.11,0,.5,1)))}),t.noteskin.onUpdate(a,d=>{const x=d.chart.getNotedata()[0]?.beat;if(x===void 0||d.getVisualBeat(){const e=new l(i.WHITE);return p.setNoteTex(e,t.note),e.anchor.set(.5),e},NoteFlash:t=>new Et(t.noteskin,t.columnNumber,t.columnName),Fake:{element:"Tap"},Lift:{element:"Tap"},Mine:t=>{const e=new g,s=new l(Yt);s.anchor.set(.5),s.width=64,s.height=64,s.rotation=C[t.columnName]*Math.PI/180;const n=new u(zt);return n.anchor.set(.5),n.scale.set(.5),e.addChild(s,n),t.noteskin.onUpdate(e,a=>{const o=a.getVisualTime();n.currentFrame=((Math.floor(o*20)+Xt[t.columnName])%16+16)%16}),e},"Hold Active Head":()=>{const t=new l(w.Hold.Active);return t.anchor.set(.5),t.scale.set(1/6),t},"Hold Inactive Head":()=>{const t=new l(w.Hold.Inactive);return t.anchor.set(.5),t.scale.set(1/6),t},"Hold Active Body":t=>new f(h[t.columnName].Active.Body),"Hold Inactive Body":t=>new f(h[t.columnName].Inactive.Body),"Hold Active TopCap":()=>new l(i.EMPTY),"Hold Inactive TopCap":()=>new l(i.EMPTY),"Hold Active BottomCap":t=>new v(h[t.columnName].Active.BottomCap),"Hold Inactive BottomCap":t=>new v(h[t.columnName].Inactive.BottomCap),"Roll Active Head":()=>{const t=new l(w.Roll.Active);return t.anchor.set(.5),t.scale.set(1/6),t},"Roll Inactive Head":()=>{const t=new l(w.Roll.Inactive);return t.anchor.set(.5),t.scale.set(1/6),t},"Roll Active Body":t=>new f(m[t.columnName].Active.Body),"Roll Inactive Body":t=>new f(m[t.columnName].Inactive.Body),"Roll Active TopCap":()=>new l(i.EMPTY),"Roll Inactive TopCap":()=>new l(i.EMPTY),"Roll Active BottomCap":t=>new v(m[t.columnName].Active.BottomCap),"Roll Inactive BottomCap":t=>new v(m[t.columnName].Inactive.BottomCap)}},load:function(t,e){const s=t.columnName;t.columnName="Left";const n=this.loadElement(t,e);return qt.includes(t.element)&&(n.rotation=C[s]*Math.PI/180),n},init(){p.initArrowTex()},update(t){p.setArrowTexTime(t.chartManager.app)},metrics:{HoldBodyBottomOffset:-16,RollBodyBottomOffset:-16}};export{Jt as default,C as rotationMap}; +import{v as i,a0 as b,b as g,L as l,X as B,Q as r,V as A,O as y,y as I,P as R,Z as v}from"./ChartManager-47a72d67.js";import{A as u}from"./AnimatedSprite-b795c45d.js";import{T as $,H as f}from"./HoldBody-be07a70c.js";const M="/smeditor/assets/active-d06e5c33.png",U="/smeditor/assets/downBodyActive-8cf886d3.png",F="/smeditor/assets/downBodyInactive-7465edd0.png",L="/smeditor/assets/downBottomCapActive-b10d1f0d.png",k="/smeditor/assets/downBottomCapInactive-12cafebe.png",P="/smeditor/assets/inactive-a4aecb82.png",O="/smeditor/assets/leftBodyActive-5d89f111.png",D="/smeditor/assets/leftBodyInactive-1110dc77.png",S="/smeditor/assets/leftBottomCapActive-f759c91c.png",j="/smeditor/assets/leftBottomCapInactive-a4ac7bba.png",V="/smeditor/assets/rightBodyActive-8af7624b.png",Y="/smeditor/assets/rightBodyInactive-695480aa.png",z="/smeditor/assets/rightBottomCapActive-6edeea1e.png",X="/smeditor/assets/rightBottomCapInactive-d674960e.png",q="/smeditor/assets/upBodyActive-c813881f.png",Q="/smeditor/assets/upBodyInactive-0222237a.png",W="/smeditor/assets/upBottomCapActive-19e4c05d.png",Z="/smeditor/assets/upBottomCapInactive-23aae747.png",G="/smeditor/assets/active-29dd632a.png",J="/smeditor/assets/downBodyActive-77f6502e.png",K="/smeditor/assets/downBodyInactive-a5759c62.png",tt="/smeditor/assets/downBottomCapActive-57ef4d54.png",et="/smeditor/assets/downBottomCapInactive-13ddf252.png",ot="/smeditor/assets/inactive-48f23de3.png",st="/smeditor/assets/leftBodyActive-fd4e902b.png",at="/smeditor/assets/leftBodyInactive-8fe6311e.png",nt="/smeditor/assets/leftBottomCapActive-057c49fb.png",it="/smeditor/assets/leftBottomCapInactive-df6350c7.png",ct="/smeditor/assets/rightBodyActive-751fadec.png",lt="/smeditor/assets/rightBodyInactive-46202369.png",rt="/smeditor/assets/rightBottomCapActive-a736d803.png",dt="/smeditor/assets/rightBottomCapInactive-a64cea2c.png",pt="/smeditor/assets/upBodyActive-b06d82f3.png",ht="/smeditor/assets/upBodyInactive-4ef75342.png",mt="/smeditor/assets/upBottomCapActive-07fb7c6e.png",_t="/smeditor/assets/upBottomCapInactive-75f78aac.png",gt="/smeditor/assets/hold-4cf23d59.png",vt="/smeditor/assets/mine-f6147b04.png",ft="/smeditor/assets/particles-18ec6c1d.png",wt="/smeditor/assets/w0-6f86addb.png",ut="/smeditor/assets/w1-c8c43b0f.png",bt="/smeditor/assets/w2-37282ba8.png",Bt="/smeditor/assets/w3-3c2ca2d8.png",At="/smeditor/assets/w4-ce0f95de.png",yt="/smeditor/assets/w5-23173d4f.png",Ct="/smeditor/assets/hold-4cf23d59.png",xt="/smeditor/assets/mine-f6147b04.png",It="/smeditor/assets/particles-18ec6c1d.png",Tt=i.from(Ct),Nt=b(i.from(xt),16,1,160,1024)[0],Et=i.from(It),N=["w0","w1","w2","w3","w4","w5"],E={};N.forEach(t=>E[t]=i.from(new URL(Object.assign({"./flash/hold.png":gt,"./flash/mine.png":vt,"./flash/particles.png":ft,"./flash/w0.png":wt,"./flash/w1.png":ut,"./flash/w2.png":bt,"./flash/w3.png":Bt,"./flash/w4.png":At,"./flash/w5.png":yt})[`./flash/${t}.png`],self.location).href));class Ht extends g{holdExplosion=new l(Tt);particles=new l(Et);mine=new u(Nt);standard={};anims=new Set;particleAnim;mineAnim;constructor(e,s,n){super();const a=.5;N.forEach(o=>{const c=new l(E[o]);c.anchor.set(.5),c.alpha=0,c.blendMode=B.ADD,this.standard[o]=c,this.addChild(c)}),e.on(this,"hit",o=>{if(s==o.columnNumber){const c=this.standard[o.judgement.id];if(!c)return;this.anims.forEach(d=>r.finish(d)),this.anims.clear(),this.anims.add(r.animate(c,{0:{alpha:.875,"scale.x":.8*a,"scale.y":.8*a},"0.5":{alpha:.875,"scale.x":1.1*a,"scale.y":1.1*a},1:{alpha:0,"scale.x":1.1*a,"scale.y":1.1*a}},.12))}}),e.on(this,"held",o=>{s==o.columnNumber&&(this.anims.forEach(c=>r.finish(c)),this.anims.clear(),this.anims.add(r.animate(this.standard.w0,{0:{alpha:.875,"scale.x":.8*a,"scale.y":.8*a},"0.5":{alpha:.875,"scale.x":1.1*a,"scale.y":1.1*a},1:{alpha:0,"scale.x":1.1*a,"scale.y":1.1*a}},.12)))}),e.on(this,"holdon",o=>{s==o.columnNumber&&(this.holdExplosion.visible=!0)}),e.on(this,"holdoff",o=>{s==o.columnNumber&&(this.holdExplosion.visible=!1)}),e.on(this,"rollon",o=>{s==o.columnNumber&&(this.holdExplosion.visible=!0)}),e.on(this,"rolloff",o=>{s==o.columnNumber&&(this.holdExplosion.visible=!1)}),e.onUpdate(this,()=>{this.holdExplosion.alpha=Math.sin(Date.now()/1e3*Math.PI*2*20)*.1+1}),this.holdExplosion.visible=!1,this.holdExplosion.anchor.set(.5),this.holdExplosion.scale.set(.5),this.addChild(this.holdExplosion),this.particles.alpha=0,this.particles.blendMode=B.ADD,this.particles.anchor.set(.5),e.on(this,"hit",o=>{if(s==o.columnNumber){if(this.particles.rotation=Math.random()*Math.PI*2,r.finish(this.particleAnim),!["w0","w1","w2","w3"].includes(o.judgement.id))return;this.particleAnim=r.animate(this.particles,{0:{alpha:.6,"scale.x":1*a,"scale.y":1*a},"0.7":{alpha:.6,"scale.x":1.2*a,"scale.y":1.2*a},1:{alpha:0,"scale.x":1.2*a,"scale.y":1.2*a}},.185,A(.16,.73,.63,.75))}}),this.addChild(this.particles),this.mine.anchor.x=.5,this.mine.scale.set(.5),this.mine.rotation=-C[n]*Math.PI/180,this.mine.animationSpeed=1/3,this.mine.alpha=0,this.addChild(this.mine),e.on(this,"hitmine",o=>{s==o.columnNumber&&(r.finish(this.mineAnim),this.mine.anchor.y=y.chart.reverse?1:0,this.mine.currentFrame=0,this.mine.play(),this.mineAnim=r.animate(this.mine,{0:{alpha:1},"0.5":{alpha:1},1:{alpha:0}},.6))})}}const Rt="/smeditor/assets/colors-63f923d2.png",$t="/smeditor/assets/mask-f1b4d033.png",Mt="/smeditor/assets/note-07e5d79f.png",Ut="/smeditor/assets/outline-72e881a7.png",Ft="/smeditor/assets/stroke-1f54ba14.png",Lt="/smeditor/assets/top-74da30ae.png",_={};["colors","mask","note","outline","stroke","top"].forEach(t=>_[t]=i.from(new URL(Object.assign({"./tap/colors.png":Rt,"./tap/mask.png":$t,"./tap/note.png":Mt,"./tap/outline.png":Ut,"./tap/stroke.png":Ft,"./tap/top.png":Lt})[`./tap/${t}.png`],self.location).href));const kt=b(_.top,4,1,384,384)[0],T=[-80,0,80];class p{static arrowFrameTex;static arrowFrameContainer=new g;static arrowTex;static arrowContainer=new g;static loaded=!1;static async initArrowTex(){if(!this.loaded){p.arrowFrameTex=I.create({width:64,height:64,resolution:y.performance.resolution}),p.arrowTex=I.create({width:64*3,height:64,resolution:y.performance.resolution});{const e=new l(_.note);e.width=64,e.height=64;const s=new l(_.outline);s.width=64,s.height=64;const n=new l(_.stroke);n.width=64,n.height=64,this.arrowFrameContainer.addChild(e,s,n)}for(let e=0;e<3;e++){const s=new l(this.arrowFrameTex);s.x=e*64;const n=new l(_.mask);n.scale.set(1/6),n.x=e*64,n.y=32,n.anchor.y=.5,n.alpha=1;const a=new $(_.colors,256,1024);a.tileScale.y=1/4,a.uvRespectAnchor=!0,a.x=e*64,a.y=32,a.tilePosition.y=128+T[e],a.anchor.y=.5,a.height=64,a.width=64,a.alpha=1,a.mask=n,a.name="c"+e;const o=new u(kt);o.scale.set(1/6),o.x=e*64,o.y=32,o.anchor.y=.5,o.alpha=1,o.name="t"+e,this.arrowContainer.addChild(s,a,n,o)}this.loaded=!0}}static setArrowTexTime(e){if(!this.loaded)return;const s=e.chartManager.chartView.getVisualBeat(),n=(s%1+1)%1,a=(s%4+4)%4;for(let o=0;o<3;o++)this.arrowContainer.getChildByName("c"+o).tilePosition.y=128+T[o]-a/4*256,this.arrowContainer.getChildByName("t"+o).currentFrame=Math.floor(n*4);e.renderer.render(p.arrowFrameContainer,{renderTexture:p.arrowFrameTex}),e.renderer.render(p.arrowContainer,{renderTexture:p.arrowTex})}static setNoteTex(e,s){let n=[4,8].indexOf(s?.quant??4);n==-1&&(n=2),e.texture=new i(p.arrowTex.baseTexture,new R(n*64,0,64,64))}}const Pt="/smeditor/assets/mine-335f4545.png",Ot="/smeditor/assets/spark-2c59cc0e.png",Dt="/smeditor/assets/receptor-a0a69b2b.png",St="/smeditor/assets/receptorFlash-c7675c53.png",jt=i.from(Dt),Vt=i.from(St),Yt=i.from(Pt),zt=b(i.from(Ot),4,4,160,128).flat(),Xt={Left:0,Down:5,Up:8,Right:13},h={},m={},w={Hold:{Active:i.from(new URL("/smeditor/assets/active-d06e5c33.png",self.location).href),Inactive:i.from(new URL("/smeditor/assets/inactive-a4aecb82.png",self.location).href)},Roll:{Active:i.from(new URL("/smeditor/assets/active-29dd632a.png",self.location).href),Inactive:i.from(new URL("/smeditor/assets/inactive-48f23de3.png",self.location).href)}};for(const t of["Left","Down","Up","Right"])for(const e of["Body","BottomCap"])for(const s of["Active","Inactive"])h[t]===void 0&&(h[t]={}),h[t][s]===void 0&&(h[t][s]={}),h[t][s][e]=i.from(new URL(Object.assign({"./hold/active.png":M,"./hold/downBodyActive.png":U,"./hold/downBodyInactive.png":F,"./hold/downBottomCapActive.png":L,"./hold/downBottomCapInactive.png":k,"./hold/inactive.png":P,"./hold/leftBodyActive.png":O,"./hold/leftBodyInactive.png":D,"./hold/leftBottomCapActive.png":S,"./hold/leftBottomCapInactive.png":j,"./hold/rightBodyActive.png":V,"./hold/rightBodyInactive.png":Y,"./hold/rightBottomCapActive.png":z,"./hold/rightBottomCapInactive.png":X,"./hold/upBodyActive.png":q,"./hold/upBodyInactive.png":Q,"./hold/upBottomCapActive.png":W,"./hold/upBottomCapInactive.png":Z})[`./hold/${t.toLowerCase()}${e}${s}.png`],self.location).href),m[t]===void 0&&(m[t]={}),m[t][s]===void 0&&(m[t][s]={}),m[t][s][e]=i.from(new URL(Object.assign({"./roll/active.png":G,"./roll/downBodyActive.png":J,"./roll/downBodyInactive.png":K,"./roll/downBottomCapActive.png":tt,"./roll/downBottomCapInactive.png":et,"./roll/inactive.png":ot,"./roll/leftBodyActive.png":st,"./roll/leftBodyInactive.png":at,"./roll/leftBottomCapActive.png":nt,"./roll/leftBottomCapInactive.png":it,"./roll/rightBodyActive.png":ct,"./roll/rightBodyInactive.png":lt,"./roll/rightBottomCapActive.png":rt,"./roll/rightBottomCapInactive.png":dt,"./roll/upBodyActive.png":pt,"./roll/upBodyInactive.png":ht,"./roll/upBottomCapActive.png":mt,"./roll/upBottomCapInactive.png":_t})[`./roll/${t.toLowerCase()}${e}${s}.png`],self.location).href);const C={Left:90,Down:0,Up:180,Right:-90},qt=["Receptor","Tap","Lift","Fake","Hold Inactive Head","Hold Active Head","Roll Inactive Head","Roll Active Head","NoteFlash"],Gt={elements:{Left:{Receptor:t=>{let e,s;const n=b(jt,2,1,404,404),a=new g,o=new u(n[0]);o.width=64,o.height=64,o.anchor.set(.5),t.noteskin.on(o,"ghosttap",d=>{d.columnNumber==t.columnNumber&&(r.finish(e),e=r.animate(o,{0:{alpha:.9,width:.85*64,height:.85*64},1:{alpha:1,width:64,height:64}},.11))});const c=new l(Vt);return c.blendMode=B.ADD,c.width=64,c.height=64,c.anchor.set(.5),c.alpha=0,t.noteskin.on(a,"press",d=>{d.columnNumber==t.columnNumber&&(r.finish(s),s=r.animate(c,{0:{alpha:0,width:.85*64,height:.85*64},1:{alpha:.6,width:64,height:64}},.12,A(.5,1,.89,1)))}),t.noteskin.on(a,"lift",d=>{d.columnNumber==t.columnNumber&&(r.finish(s),s=r.animate(c,{0:{alpha:"inherit",width:"inherit",height:"inherit"},1:{alpha:0,width:64*1.2,height:64}},.12,A(.11,0,.5,1)))}),t.noteskin.onUpdate(a,d=>{const x=d.chart.getNotedata()[0]?.beat;if(x===void 0||d.getVisualBeat(){const e=new l(i.WHITE);return p.setNoteTex(e,t.note),e.anchor.set(.5),e},NoteFlash:t=>new Ht(t.noteskin,t.columnNumber,t.columnName),Fake:{element:"Tap"},Lift:{element:"Tap"},Mine:t=>{const e=new g,s=new l(Yt);s.anchor.set(.5),s.width=64,s.height=64,s.rotation=C[t.columnName]*Math.PI/180;const n=new u(zt);return n.anchor.set(.5),n.scale.set(.5),e.addChild(s,n),t.noteskin.onUpdate(e,a=>{const o=a.getVisualTime();n.currentFrame=((Math.floor(o*20)+Xt[t.columnName])%16+16)%16}),e},"Hold Active Head":()=>{const t=new l(w.Hold.Active);return t.anchor.set(.5),t.scale.set(1/6),t},"Hold Inactive Head":()=>{const t=new l(w.Hold.Inactive);return t.anchor.set(.5),t.scale.set(1/6),t},"Hold Active Body":t=>new f(h[t.columnName].Active.Body),"Hold Inactive Body":t=>new f(h[t.columnName].Inactive.Body),"Hold Active TopCap":()=>new l(i.EMPTY),"Hold Inactive TopCap":()=>new l(i.EMPTY),"Hold Active BottomCap":t=>new v(h[t.columnName].Active.BottomCap),"Hold Inactive BottomCap":t=>new v(h[t.columnName].Inactive.BottomCap),"Roll Active Head":()=>{const t=new l(w.Roll.Active);return t.anchor.set(.5),t.scale.set(1/6),t},"Roll Inactive Head":()=>{const t=new l(w.Roll.Inactive);return t.anchor.set(.5),t.scale.set(1/6),t},"Roll Active Body":t=>new f(m[t.columnName].Active.Body),"Roll Inactive Body":t=>new f(m[t.columnName].Inactive.Body),"Roll Active TopCap":()=>new l(i.EMPTY),"Roll Inactive TopCap":()=>new l(i.EMPTY),"Roll Active BottomCap":t=>new v(m[t.columnName].Active.BottomCap),"Roll Inactive BottomCap":t=>new v(m[t.columnName].Inactive.BottomCap)}},load:function(t,e){const s=t.columnName;t.columnName="Left";const n=this.loadElement(t,e);return qt.includes(t.element)&&(n.rotation=C[s]*Math.PI/180),n},init(){p.initArrowTex()},update(t){p.setArrowTexTime(t.chartManager.app)},metrics:{HoldBodyBottomOffset:-16,RollBodyBottomOffset:-16}};export{Gt as default,C as rotationMap}; diff --git a/Noteskin-b4edfbfa.js b/Noteskin-bbfb29fa.js similarity index 98% rename from Noteskin-b4edfbfa.js rename to Noteskin-bbfb29fa.js index d25a7db..f1a876a 100644 --- a/Noteskin-b4edfbfa.js +++ b/Noteskin-bbfb29fa.js @@ -1,4 +1,4 @@ -import{w as e,x as v,y as U,b as c,z as w,O as m,H as l,J as Q,L as h,P as i,Q as u,V as C,X as F,Y as x,Z as G,$ as f,a0 as b}from"./ChartManager-d5d16ca9.js";import{H as E}from"./HoldBody-36fc6457.js";const S="/smeditor/assets/parts-0c8fa692.png",M="/smeditor/assets/frame-d599a2fe.png",T="/smeditor/assets/parts-b37af2cf.png",K="/smeditor/assets/parts-9668caec.png",P=`precision mediump float; +import{v as e,w as v,x as U,b as c,y as w,O as m,z as l,H as Q,J as h,L as i,P as u,Q as C,V as F,X as x,Y as G,Z as f,$ as b}from"./ChartManager-47a72d67.js";import{H as E}from"./HoldBody-be07a70c.js";const S="/smeditor/assets/parts-0c8fa692.png",M="/smeditor/assets/frame-d599a2fe.png",T="/smeditor/assets/parts-b37af2cf.png",K="/smeditor/assets/parts-9668caec.png",P=`precision mediump float; varying vec2 vUvs; diff --git a/Noteskin-f760aef8.js b/Noteskin-ca147e57.js similarity index 99% rename from Noteskin-f760aef8.js rename to Noteskin-ca147e57.js index a2883ee..d0130a9 100644 --- a/Noteskin-f760aef8.js +++ b/Noteskin-ca147e57.js @@ -1,4 +1,4 @@ -import{w as o,x as v,y as p,b as C,z as c,O as l,H as m,J as f,L as h,P as i,Q as G,V as B,X as F,Y as H,Z as U,$ as E,a0 as Y}from"./ChartManager-d5d16ca9.js";import{H as D}from"./HoldBody-36fc6457.js";const u="/smeditor/assets/parts-0c8fa692.png",b="/smeditor/assets/frame-d599a2fe.png",x="/smeditor/assets/parts-b37af2cf.png",J="/smeditor/assets/parts-9668caec.png",T=`precision mediump float; +import{v as o,w as v,x as p,b as C,y as c,O as l,z as m,H as f,J as h,L as i,P as G,Q as B,V as F,X as H,Y as U,Z as E,$ as Y}from"./ChartManager-47a72d67.js";import{H as D}from"./HoldBody-be07a70c.js";const u="/smeditor/assets/parts-0c8fa692.png",b="/smeditor/assets/frame-d599a2fe.png",x="/smeditor/assets/parts-b37af2cf.png",J="/smeditor/assets/parts-9668caec.png",T=`precision mediump float; varying vec2 vUvs; diff --git a/Noteskin-6f35f83c.js b/Noteskin-ca87104e.js similarity index 86% rename from Noteskin-6f35f83c.js rename to Noteskin-ca87104e.js index f07b12b..201fc74 100644 --- a/Noteskin-6f35f83c.js +++ b/Noteskin-ca87104e.js @@ -1,4 +1,4 @@ -import{w as a,x as h,y as d,b as x,z as u,O as g,H as w,J as f,L as p,P as s,Q as E,V as A,X as F,Y as I,Z as G,$ as v,a0 as H}from"./ChartManager-d5d16ca9.js";import{H as B}from"./HoldBody-36fc6457.js";const P="/smeditor/assets/frame-d599a2fe.png",N="/smeditor/assets/parts-b37af2cf.png",k="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAABACAIAAABdtOgoAAAAAXNSR0IB2cksfwAAAAlwSFlzAAAuIwAALiMBeKU/dgAAB1lJREFUeJztnD2uLDUQhV22ewa4CRIheyAk4q2EJbAo1kGERExKxAKIkEiuYGa627g8c9Hj9neG5yuE2iMq9Lj/6rhO/bg8ef3GAkn86hTKZtRC+XrC+V/8/OV28LNf0/fvPg+3G71/u0+ff/wW7/P03U84bqdf/PGvpfzw7oDzR5EcVvFLCQCAFoSxDYoHqOcqSUvnBWOIBgDHNSQWVtuiYBre+R/f7e+SVrSAzrvsTnJZmYIcAKQgcSNb6y+bRVoqX0WcrgEQ75PZAta115T2JZkVUZVw4QvU9BjKFpvoeCW6Im3Beu9mJJkVXeCxI0le1Ur0cTD5i/jeEs7bwdUBAKddKvACYGEx9Tb8ossytm/IZYYV50qeSyhbTi8z6cfVHOE+OVW/gFHT5BZAFBdMUNZhIWxWtIA6aEbftb/xPCsAzgVIxcppO7vN/4io4+hPPdL8Q5EWkHl4Cuhy57nXm+9LNAU5o8AHK70dCYCDD6IFpG4KOnKgO7wTxpXoir9UAt/4T2O86vwD6WdyZSIAwvm7KB/Azmd4H7AoCjoFtIAzKbpRECjuWAndMFM9SAswjJqqDygYFCznwQFYLwKAqiBwwhTrXC2AnHDzzABAqetZ6g0BuFIQPGL5fXQAiApeLAAEF26dfyQADjFKCpJ6ExSUZ7SAdRWADSLVAmC0haF8wVmEodIHREFBygdEodBJZcL7Ciu7w1D0AS5ETXUNIgUFEaQcHC0IQ+svRZQ6JAUltoDBo1AVBVkDAHyAKd+JFtAAw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FQ5lLEkQCo88+KgvxgKwBQoyAGYBYALGwB4/sAen//0CngGTFJQbIaN1M/Y/PArDoE4NowBO3pw1sAOuGbDyAKUgDow4pnBiCRPi3ImPXC542HtwD8JwH/JnEyndOhdrBeyMLnzdAC7gCwsg8Y3gknFYZO7APU/1OdJABnOnHpTriHguowJ2Ljh6GYiNl1qcM1MhNWAKxn7uhNoqyB/fLhWgt6RAuQmbBY6tIH+PmM1yDYtU7KPqAIC1A+4EFLEUb/wWAmfYCkIO7PqbZ0wVMdmoIEAMxx44ehiQC4WQCFoSoRO9HWZvuNfYDzD1uTOLAwP2wtCEabE+Z6saKg06KcgIiClA9QFuB+hCjo49EpiLRw6yqnPECtN3VyRgJQLY9DWgHkCdtYLD4NDkBWYeiBtyTVjtgfsglOhKFoAf5AQUFn7DB61DA0XLXzoWGolyIUBfmGzNY8WimiIwy1Vo6GUsTwe8IxCQvIRnvClmXnFMfpra8finHSCauzS56IbflvGb4WhMvQJyd2wrhqTTZmWTtVtgWgJQFdYeiMxaPx94SlVxXFOBn0uSm91l0jmpWrCzIKElTGmXAcHgBDk+eY+17nZgmRmuPUje4AIGRmH9Bziz0KN2a59AJgdAwKiO864tthvCEjHyD+Anlw+RN6wStDGkmeZgAAAABJRU5ErkJggg==",O="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAIAAAD91JpzAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAAFiUAABYlAUlSJPAAAAAMSURBVBhXY0ACDAwAAA4AAXqxuTAAAAAASUVORK5CYII=",Y="/smeditor/assets/frameChrome-2ea8bbf3.png",L="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAIAAAD91JpzAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAAFiUAABYlAUlSJPAAAAAMSURBVBhXY0ACDAwAAA4AAXqxuTAAAAAASUVORK5CYII=",V="/smeditor/assets/frameChrome-2ea8bbf3.png",T=`precision mediump float; +import{v as a,w as h,x as d,b as x,y as u,O as g,z as w,H as f,J as p,L as s,P as E,Q as A,V as F,X as I,Y as G,Z as v,$ as H}from"./ChartManager-47a72d67.js";import{H as B}from"./HoldBody-be07a70c.js";const P="/smeditor/assets/frame-d599a2fe.png",N="/smeditor/assets/parts-b37af2cf.png",k="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAABACAIAAABdtOgoAAAAAXNSR0IB2cksfwAAAAlwSFlzAAAuIwAALiMBeKU/dgAAB1lJREFUeJztnD2uLDUQhV22ewa4CRIheyAk4q2EJbAo1kGERExKxAKIkEiuYGa627g8c9Hj9neG5yuE2iMq9Lj/6rhO/bg8ef3GAkn86hTKZtRC+XrC+V/8/OV28LNf0/fvPg+3G71/u0+ff/wW7/P03U84bqdf/PGvpfzw7oDzR5EcVvFLCQCAFoSxDYoHqOcqSUvnBWOIBgDHNSQWVtuiYBre+R/f7e+SVrSAzrvsTnJZmYIcAKQgcSNb6y+bRVoqX0WcrgEQ75PZAta115T2JZkVUZVw4QvU9BjKFpvoeCW6Im3Beu9mJJkVXeCxI0le1Ur0cTD5i/jeEs7bwdUBAKddKvACYGEx9Tb8ossytm/IZYYV50qeSyhbTi8z6cfVHOE+OVW/gFHT5BZAFBdMUNZhIWxWtIA6aEbftb/xPCsAzgVIxcppO7vN/4io4+hPPdL8Q5EWkHl4Cuhy57nXm+9LNAU5o8AHK70dCYCDD6IFpG4KOnKgO7wTxpXoir9UAt/4T2O86vwD6WdyZSIAwvm7KB/Azmd4H7AoCjoFtIAzKbpRECjuWAndMFM9SAswjJqqDygYFCznwQFYLwKAqiBwwhTrXC2AnHDzzABAqetZ6g0BuFIQPGL5fXQAiApeLAAEF26dfyQADjFKCpJ6ExSUZ7SAdRWADSLVAmC0haF8wVmEodIHREFBygdEodBJZcL7Ciu7w1D0AS5ETXUNIgUFEaQcHC0IQ+svRZQ6JAUltoDBo1AVBVkDAHyAKd+JFtAAwLg+y0RMUVDkc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+KgvxgKwBQoyAGYBYALGwB4/sAen//0CngGTFJQbIaN1M/Y/PArDoE4NowBO3pw1sAOuGbDyAKUgDow4pnBiCRPi3ImPXC542HtwD8JwH/JnEyndOhdrBeyMLnzdAC7gCwsg8Y3gknFYZO7APU/1OdJABnOnHpTriHguowJ2Ljh6GYiNl1qcM1MhNWAKxn7uhNoqyB/fLhWgt6RAuQmbBY6tIH+PmM1yDYtU7KPqAIC1A+4EFLEUb/wWAmfYCkIO7PqbZ0wVMdmoIEAMxx44ehiQC4WQCFoSoRO9HWZvuNfYDzD1uTOLAwP2wtCEabE+Z6saKg06KcgIiClA9QFuB+hCjo49EpiLRw6yqnPECtN3VyRgJQLY9DWgHkCdtYLD4NDkBWYeiBtyTVjtgfsglOhKFoAf5AQUFn7DB61DA0XLXzoWGolyIUBfmGzNY8WimiIwy1Vo6GUsTwe8IxCQvIRnvClmXnFMfpra8finHSCauzS56IbflvGb4WhMvQJyd2wrhqTTZmWTtVtgWgJQFdYeiMxaPx94SlVxXFOBn0uSm91l0jmpWrCzIKElTGmXAcHgBDk+eY+17nZgmRmuPUje4AIGRmH9Bziz0KN2a59AJgdAwKiO864tthvCEjHyD+Anlw+RN6wStDGkmeZgAAAABJRU5ErkJggg==",O="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAIAAAD91JpzAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAAFiUAABYlAUlSJPAAAAAMSURBVBhXY0ACDAwAAA4AAXqxuTAAAAAASUVORK5CYII=",Y="/smeditor/assets/frameChrome-2ea8bbf3.png",L="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAIAAAD91JpzAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAAFiUAABYlAUlSJPAAAAAMSURBVBhXY0ACDAwAAA4AAXqxuTAAAAAASUVORK5CYII=",V="/smeditor/assets/frameChrome-2ea8bbf3.png",T=`precision mediump float; varying vec2 vUvs; diff --git a/Noteskin-cdd3cf8b.js b/Noteskin-d08f1b21.js similarity index 97% rename from Noteskin-cdd3cf8b.js rename to Noteskin-d08f1b21.js index d636e91..af15bff 100644 --- a/Noteskin-cdd3cf8b.js +++ b/Noteskin-d08f1b21.js @@ -1 +1 @@ -import{w as B,b as n,a1 as Q,P as C,Y as s,V as a,$ as D}from"./ChartManager-d5d16ca9.js";import{A as i}from"./AnimatedSprite-888875f6.js";import{H as h}from"./HoldBody-36fc6457.js";const w="/smeditor/assets/hold-3ccaaf09.png",E="/smeditor/assets/mine-590d445e.png",l=B.from(w),f=B.from(E);class c extends n{hold=new i(Q(l,2,1,72,128)[0]);anims=new Set;constructor(e,A){super(),e.on(this,"holdon",g=>{A==g.columnNumber&&(this.hold.visible=!0)}),e.on(this,"holdoff",g=>{A==g.columnNumber&&(this.hold.visible=!1)}),e.on(this,"rollon",g=>{A==g.columnNumber&&(this.hold.visible=!0)}),e.on(this,"rolloff",g=>{A==g.columnNumber&&(this.hold.visible=!1)}),e.on(this,"hitmine",g=>{if(A==g.columnNumber){const t=new C(f);t.alpha=0,t.anchor.set(.5),t.blendMode=s.ADD,this.addChild(t),a.animate(t,{0:{alpha:1,rotation:0},"0.5":{alpha:1,rotation:90*Math.PI/180},1:{alpha:0,rotation:180*Math.PI/180}},.4,void 0,()=>t.destroy())}}),e.onUpdate(this,()=>{this.hold.alpha=Math.sin(Date.now()/1e3*Math.PI*2*20)*.1+1}),this.hold.visible=!1,this.hold.anchor.set(.5),this.addChild(this.hold)}}const r="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAACACAMAAACMX59YAAAAIVBMVEUAAAD///+6urq4uLizs7OoqKinp6ecnJyVlZWUlJSIiIh18TD6AAAAAXRSTlMAQObYZgAAAKhJREFUeNrt2AMCA0EQRNFRVXD/A8fmWv/F6vTuCOGj+CBUMGgAAMDw4p4UKpHiXpsB3HsGfg7g1/+QfL68furfGUiWrnc1MogPfmZgVQsgtZ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MVEUAAAAAAAAICAgoKChAQEBfAABvAACRAACYmJieAACoqKi4uLi7AADQ0NDRAADg4ODpAADw8PD////pSTDZAAAAAXRSTlMAQObYZgAAATxJREFUeNrt2EGOgzAMQNGxSVxI0hK4/2Fnokx7AHuBVP7bf0W2WgT5AQAAAAAAAAAAAAAAAAAAAAAAAPB9ZLhrTy+q2bKKBPoc6SXcD9Hz4/Nftv8lpbQEelv3Y19NxdnnXmrp2d+33ntz96K2bZupBM+Pz3/R/lP560savYfa8xyeJr4+r3VYs3OA/OrDy9vrow0PjZ8fn9+//+rdf5r9M3n3t57TquLqe526s299as7e2mTR8+PzX7H/pZxTWcT3B9jPac/i6kudirPvb75etzZtGjw/Pv8V+0+fPvl+AHac02G+Aerb/X4A8fnj+0+fPvEE4AnAOwDvAP6vAA2+BevNvwLUuf96DtU0+BWg3ANwD+AhEryJkjvfBMb7+P7/bwK5C6cHAAAAAAAAAAAAAAAAAAAAAADAl/kFHH4jM43eaVYAAAAASUVORK5CYII=",F="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAABAAQMAAADoGO08AAAABlBMVEUAAAD///+l2Z/dAAAAAXRSTlMAQObYZgAAANlJREFUeNrN04GGpWAYBuAnIUAAH47ObRzE3lbABuxtBexttBYHsAF7MKYBL/LDYDA/eSjpy/u9vuiMx1X311XzfNUyXXWMV7t9WCHqt36DaFi7HaKBPX7nG8P5iz/nHo3nb/6eRzR1T57rEt38559HVH7yrqLygzcVlTsvFZWRQ0VlYFdR6dlUVDpWFRVQ0Q14RMk1Sq5Rco2Sa5RcIweMRAtMRDPMRBMsRCMcRMNKtxP12/WSp5G8H/OFmBlipoz5j9hscrPrbRvavrSNajvXtrLt7bCLnzkfnOqGiVWVifMAAAAASUVORK5CYII=",H="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAAIACAMAAAAFcJqpAAAAOVBMVEUAAAD///+oqKiAgECAaUCAQECAQHBAUIBAgIBAgEBAQEAAAAD/AAD/pAD//w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IRQ9hKrv/2xTKHoI6AsBfSGgr4Sf/37wD9JlHdUacfGtAAAAAElFTkSuQmCC",M=B.from(F),U=Q(B.from(v),8,1,64,64)[0],m=Q(B.from(H),1,8,64,64),p=Q(B.from(P),1,8,64,64),u=Q(B.from(d),1,8,64,64),K=B.from(I),R=B.from(r),X={Left:90,Down:0,Up:180,Right:-90,UpLeft:135,UpRight:-135,DownRight:-45,DownLeft:45},L=["Receptor","Tap","Lift","Fake","Hold Inactive Head","Hold Active Head","Roll Inactive Head","Roll Active Head","NoteFlash"],Y={elements:{Left:{Receptor:o=>{let e;const A=new i(Q(M,2,1,64,64)[0]);return A.width=64,A.height=64,A.anchor.set(.5),o.noteskin.on(A,"ghosttap",g=>{g.columnNumber==o.columnNumber&&(a.finish(e),e=a.animate(A,{0:{alpha:1.2,width:48,height:48},1:{alpha:1,width:64,height:64}},.06))}),o.noteskin.onUpdate(A,g=>{const t=(g.getVisualBeat()%1+1)%1;A.currentFrame=t<.2?0:1}),A},Tap:o=>{const e=m[Math.min([4,8,12,16,24,32,48,64,96,192].indexOf(o.note?.quant??4)??0,7)],A=new C(e[0]);return A.anchor.set(.5),A.width=64,A.height=64,A},NoteFlash:o=>new c(o.noteskin,o.columnNumber),Fake:{element:"Tap"},Lift:o=>{const e=u[Math.min([4,8,12,16,24,32,48,64,96,192].indexOf(o.note?.quant??4)??0,7)],A=new C(e[0]);return A.anchor.set(.5),A.width=64,A.height=64,A},Mine:o=>{const e=new i(U);return e.anchor.set(.5),e.width=64,e.height=64,o.noteskin.onUpdate(e,A=>e.currentFrame=Math.floor((A.getVisualBeat()%4+4)%4*2)),e},"Hold Active Head":o=>{const e=p[Math.min([4,8,12,16,24,32,48,64,96,192].indexOf(o.note?.quant??4)??0,7)],A=new C(e[0]);return A.anchor.set(.5),A.width=64,A.height=64,A},"Hold Inactive Head":{element:"Tap"},"Hold Active Body":()=>new h(K),"Hold Inactive Body":{element:"Hold Active Body"},"Hold Active TopCap":()=>new C(B.EMPTY),"Hold Inactive TopCap":()=>new C(B.EMPTY),"Hold Active BottomCap":()=>new D(B.EMPTY),"Hold Inactive BottomCap":{element:"Hold Active BottomCap"},"Roll Active Head":{element:"Hold Active Head"},"Roll Inactive Head":{element:"Tap"},"Roll Active Body":()=>new h(R),"Roll Inactive Body":{element:"Roll Active Body"},"Roll Active TopCap":()=>new C(B.EMPTY),"Roll Inactive TopCap":()=>new C(B.EMPTY),"Roll Active BottomCap":()=>new D(B.EMPTY),"Roll Inactive BottomCap":{element:"Roll Active BottomCap"}}},load:function(o,e){const A=o.columnName;o.columnName="Left";const g=this.loadElement(o,e);return L.includes(o.element)&&(g.rotation=X[A]*Math.PI/180),g},hideIcons:["Lift"]};export{Y as default}; +import{v as B,b as n,a0 as Q,L as C,X as s,Q as a,Z as D}from"./ChartManager-47a72d67.js";import{A as i}from"./AnimatedSprite-b795c45d.js";import{H as h}from"./HoldBody-be07a70c.js";const w="/smeditor/assets/hold-3ccaaf09.png",E="/smeditor/assets/mine-590d445e.png",l=B.from(w),f=B.from(E);class c extends n{hold=new i(Q(l,2,1,72,128)[0]);anims=new Set;constructor(e,A){super(),e.on(this,"holdon",g=>{A==g.columnNumber&&(this.hold.visible=!0)}),e.on(this,"holdoff",g=>{A==g.columnNumber&&(this.hold.visible=!1)}),e.on(this,"rollon",g=>{A==g.columnNumber&&(this.hold.visible=!0)}),e.on(this,"rolloff",g=>{A==g.columnNumber&&(this.hold.visible=!1)}),e.on(this,"hitmine",g=>{if(A==g.columnNumber){const t=new C(f);t.alpha=0,t.anchor.set(.5),t.blendMode=s.ADD,this.addChild(t),a.animate(t,{0:{alpha:1,rotation:0},"0.5":{alpha:1,rotation:90*Math.PI/180},1:{alpha:0,rotation:180*Math.PI/180}},.4,void 0,()=>t.destroy())}}),e.onUpdate(this,()=>{this.hold.alpha=Math.sin(Date.now()/1e3*Math.PI*2*20)*.1+1}),this.hold.visible=!1,this.hold.anchor.set(.5),this.addChild(this.hold)}}const r="data:image/png;base64,iVBORw0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EFBVSAhzakkJqhIGCIrSIxD5XhB4SIFNoDYXBSRVaZAFIFLHHdPSsIjahAvZQYxHG4UUFVGkEQIFNCuMfFdjFm6niapnX10F1odRXEin6MUvNK9atIF2srrusIAVc+9m9Wl/NvwJJIwFbHuLc4AAAAABJRU5ErkJggg==",v="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAABACAMAAABbYT+NAAAAOVBMVEUAAAAAAAAICAgoKChAQEBfAABvAACRAACYmJieAACoqKi4uLi7AADQ0NDRAADg4ODpAADw8PD////pSTDZAAAAAXRSTlMAQObYZgAAATxJREFUeNrt2EGOgzAMQNGxSVxI0hK4/2Fnokx7AHuBVP7bf0W2WgT5AQAAAAAAAAAAAAAAAAAAAAAAAPB9ZLhrTy+q2bKKBPoc6SXcD9Hz4/Nftv8lpbQEelv3Y19NxdnnXmrp2d+33ntz96K2bZupBM+Pz3/R/lP560savYfa8xyeJr4+r3VYs3OA/OrDy9vrow0PjZ8fn9+//+rdf5r9M3n3t57TquLqe526s299as7e2mTR8+PzX7H/pZxTWcT3B9jPac/i6kudirPvb75etzZtGjw/Pv8V+0+fPvl+AHac02G+Aerb/X4A8fnj+0+fPvEE4AnAOwDvAP6vAA2+BevNvwLUuf96DtU0+BWg3ANwD+AhEryJkjvfBMb7+P7/bwK5C6cHAAAAAAAAAAAAAAAAAAAAAADAl/kFHH4jM43eaVYAAAAASUVORK5CYII=",F="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAABAAQMAAADoGO08AAAABlBMVEUAAAD///+l2Z/dAAAAAXRSTlMAQObYZgAAANlJREFUeNrN04GGpWAYBuAnIUAAH47ObRzE3lbABuxtBexttBYHsAF7MKYBL/LDYDA/eSjpy/u9vuiMx1X311XzfNUyXXWMV7t9WCHqt36DaFi7HaKBPX7nG8P5iz/nHo3nb/6eRzR1T57rEt38559HVH7yrqLygzcVlTsvFZWRQ0VlYFdR6dlUVDpWFRVQ0Q14RMk1Sq5Rco2Sa5RcIweMRA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pQ9hKKHUPQQir4S0lM4Bizd+/0VjgPpI9TAO2uB9FkLJM464L2ZACcg7wcG7H8/UMDfD3DzDeAtHYEIAqAXIMIMpBcAggDpBYAwAukdWIIIBHiowPIxAJ45kK2/Rp9sc7QPeBvw3gNkM/B2YBAATP0KDAKAuQ9gAgDvXXhvZr0LnPcUyt4F71Xoehe8d6HrXfDehbJ3wXsXvK8E710oeghFD6HoIRQ9hKrv/2xTKHoI6AsBfSGgr4Sf/37wD9JlHdUacfGtAAAAAElFTkSuQmCC",M=B.from(F),U=Q(B.from(v),8,1,64,64)[0],m=Q(B.from(H),1,8,64,64),p=Q(B.from(d),1,8,64,64),u=Q(B.from(P),1,8,64,64),K=B.from(I),R=B.from(r),X={Left:90,Down:0,Up:180,Right:-90,UpLeft:135,UpRight:-135,DownRight:-45,DownLeft:45},L=["Receptor","Tap","Lift","Fake","Hold Inactive Head","Hold Active Head","Roll Inactive Head","Roll Active Head","NoteFlash"],Y={elements:{Left:{Receptor:o=>{let e;const A=new i(Q(M,2,1,64,64)[0]);return A.width=64,A.height=64,A.anchor.set(.5),o.noteskin.on(A,"ghosttap",g=>{g.columnNumber==o.columnNumber&&(a.finish(e),e=a.animate(A,{0:{alpha:1.2,width:48,height:48},1:{alpha:1,width:64,height:64}},.06))}),o.noteskin.onUpdate(A,g=>{const t=(g.getVisualBeat()%1+1)%1;A.currentFrame=t<.2?0:1}),A},Tap:o=>{const e=m[Math.min([4,8,12,16,24,32,48,64,96,192].indexOf(o.note?.quant??4)??0,7)],A=new C(e[0]);return A.anchor.set(.5),A.width=64,A.height=64,A},NoteFlash:o=>new c(o.noteskin,o.columnNumber),Fake:{element:"Tap"},Lift:o=>{const e=u[Math.min([4,8,12,16,24,32,48,64,96,192].indexOf(o.note?.quant??4)??0,7)],A=new C(e[0]);return A.anchor.set(.5),A.width=64,A.height=64,A},Mine:o=>{const e=new i(U);return e.anchor.set(.5),e.width=64,e.height=64,o.noteskin.onUpdate(e,A=>e.currentFrame=Math.floor((A.getVisualBeat()%4+4)%4*2)),e},"Hold Active Head":o=>{const e=p[Math.min([4,8,12,16,24,32,48,64,96,192].indexOf(o.note?.quant??4)??0,7)],A=new C(e[0]);return A.anchor.set(.5),A.width=64,A.height=64,A},"Hold Inactive Head":{element:"Tap"},"Hold Active Body":()=>new h(K),"Hold Inactive Body":{element:"Hold Active Body"},"Hold Active TopCap":()=>new C(B.EMPTY),"Hold Inactive TopCap":()=>new C(B.EMPTY),"Hold Active BottomCap":()=>new D(B.EMPTY),"Hold Inactive BottomCap":{element:"Hold Active BottomCap"},"Roll Active Head":{element:"Hold Active Head"},"Roll Inactive Head":{element:"Tap"},"Roll Active Body":()=>new h(R),"Roll Inactive Body":{element:"Roll Active Body"},"Roll Active TopCap":()=>new C(B.EMPTY),"Roll Inactive TopCap":()=>new C(B.EMPTY),"Roll Active BottomCap":()=>new D(B.EMPTY),"Roll Inactive BottomCap":{element:"Roll Active BottomCap"}}},load:function(o,e){const A=o.columnName;o.columnName="Left";const g=this.loadElement(o,e);return L.includes(o.element)&&(g.rotation=X[A]*Math.PI/180),g},hideIcons:["Lift"]};export{Y as default}; diff --git a/app.js b/app.js index a24d4f1..e34908a 100644 --- a/app.js +++ b/app.js @@ -1,4 +1,4 @@ -import{g as At,_ as Zt,F as W,M as Jt,K as Qt,a as Ot,I as er,G as tr,N as rr,O as k,E as Ne,T as Ae,t as nr,l as sr,C as Je,b as ir,R as or,c as ar,D as Qe,U as lr,B as cr,d as hr,A as et,i as fr,e as tt,f as ur,h as fe,j as rt,k as dr,m as pr,n as mr,o as Er,p as wr,q as gr,W as nt,r as vr,s as $r}from"./ChartManager-d5d16ca9.js";var be={exports:{}};const Rr="2.0.0",Ct=256,Ir=Number.MAX_SAFE_INTEGER||9007199254740991,yr=16,Lr=Ct-6,Tr=["major","premajor","minor","preminor","patch","prepatch","prerelease"];var Ee={MAX_LENGTH:Ct,MAX_SAFE_COMPONENT_LENGTH:yr,MAX_SAFE_BUILD_LENGTH:Lr,MAX_SAFE_INTEGER:Ir,RELEASE_TYPES:Tr,SEMVER_SPEC_VERSION:Rr,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2};const Sr=typeof process=="object"&&process.env&&{}.NODE_DEBUG&&/\bsemver\b/i.test({}.NODE_DEBUG)?(...i)=>console.error("SEMVER",...i):()=>{};var we=Sr;(function(i,e){const{MAX_SAFE_COMPONENT_LENGTH:t,MAX_SAFE_BUILD_LENGTH:s,MAX_LENGTH:o}=Ee,f=we;e=i.exports={};const u=e.re=[],w=e.safeRe=[],l=e.src=[],c=e.t={};let m=0;const v="[a-zA-Z0-9-]",O=[["\\s",1],["\\d",o],[v,s]],I=B=>{for(const[U,q]of O)B=B.split(`${U}*`).join(`${U}{0,${q}}`).split(`${U}+`).join(`${U}{1,${q}}`);return B},T=(B,U,q)=>{const te=I(U),b=m++;f(B,b,U),c[B]=b,l[b]=U,u[b]=new RegExp(U,q?"g":void 0),w[b]=new RegExp(te,q?"g":void 0)};T("NUMERICIDENTIFIER","0|[1-9]\\d*"),T("NUMERICIDENTIFIERLOOSE","\\d+"),T("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${v}*`),T("MAINVERSION",`(${l[c.NUMERICIDENTIFIER]})\\.(${l[c.NUMERICIDENTIFIER]})\\.(${l[c.NUMERICIDENTIFIER]})`),T("MAINVERSIONLOOSE",`(${l[c.NUMERICIDENTIFIERLOOSE]})\\.(${l[c.NUMERICIDENTIFIERLOOSE]})\\.(${l[c.NUMERICIDENTIFIERLOOSE]})`),T("PRERELEASEIDENTIFIER",`(?:${l[c.NUMERICIDENTIFIER]}|${l[c.NONNUMERICIDENTIFIER]})`),T("PRERELEASEIDENTIFIERLOOSE",`(?:${l[c.NUMERICIDENTIFIERLOOSE]}|${l[c.NONNUMERICIDENTIFIER]})`),T("PRERELEASE",`(?:-(${l[c.PRERELEASEIDENTIFIER]}(?:\\.${l[c.PRERELEASEIDENTIFIER]})*))`),T("PRERELEASELOOSE",`(?:-?(${l[c.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${l[c.PRERELEASEIDENTIFIERLOOSE]})*))`),T("BUILDIDENTIFIER",`${v}+`),T("BUILD",`(?:\\+(${l[c.BUILDIDENTIFIER]}(?:\\.${l[c.BUILDIDENTIFIER]})*))`),T("FULLPLAIN",`v?${l[c.MAINVERSION]}${l[c.PRERELEASE]}?${l[c.BUILD]}?`),T("FULL",`^${l[c.FULLPLAIN]}$`),T("LOOSEPLAIN",`[v=\\s]*${l[c.MAINVERSIONLOOSE]}${l[c.PRERELEASELOOSE]}?${l[c.BUILD]}?`),T("LOOSE",`^${l[c.LOOSEPLAIN]}$`),T("GTLT","((?:<|>)?=?)"),T("XRANGEIDENTIFIERLOOSE",`${l[c.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),T("XRANGEIDENTIFIER",`${l[c.NUMERICIDENTIFIER]}|x|X|\\*`),T("XRANGEPLAIN",`[v=\\s]*(${l[c.XRANGEIDENTIFIER]})(?:\\.(${l[c.XRANGEIDENTIFIER]})(?:\\.(${l[c.XRANGEIDENTIFIER]})(?:${l[c.PRERELEASE]})?${l[c.BUILD]}?)?)?`),T("XRANGEPLAINLOOSE",`[v=\\s]*(${l[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[c.XRANGEIDENTIFIERLOOSE]})(?:${l[c.PRERELEASELOOSE]})?${l[c.BUILD]}?)?)?`),T("XRANGE",`^${l[c.GTLT]}\\s*${l[c.XRANGEPLAIN]}$`),T("XRANGELOOSE",`^${l[c.GTLT]}\\s*${l[c.XRANGEPLAINLOOSE]}$`),T("COERCEPLAIN",`(^|[^\\d])(\\d{1,${t}})(?:\\.(\\d{1,${t}}))?(?:\\.(\\d{1,${t}}))?`),T("COERCE",`${l[c.COERCEPLAIN]}(?:$|[^\\d])`),T("COERCEFULL",l[c.COERCEPLAIN]+`(?:${l[c.PRERELEASE]})?(?:${l[c.BUILD]})?(?:$|[^\\d])`),T("COERCERTL",l[c.COERCE],!0),T("COERCERTLFULL",l[c.COERCEFULL],!0),T("LONETILDE","(?:~>?)"),T("TILDETRIM",`(\\s*)${l[c.LONETILDE]}\\s+`,!0),e.tildeTrimReplace="$1~",T("TILDE",`^${l[c.LONETILDE]}${l[c.XRANGEPLAIN]}$`),T("TILDELOOSE",`^${l[c.LONETILDE]}${l[c.XRANGEPLAINLOOSE]}$`),T("LONECARET","(?:\\^)"),T("CARETTRIM",`(\\s*)${l[c.LONECARET]}\\s+`,!0),e.caretTrimReplace="$1^",T("CARET",`^${l[c.LONECARET]}${l[c.XRANGEPLAIN]}$`),T("CARETLOOSE",`^${l[c.LONECARET]}${l[c.XRANGEPLAINLOOSE]}$`),T("COMPARATORLOOSE",`^${l[c.GTLT]}\\s*(${l[c.LOOSEPLAIN]})$|^$`),T("COMPARATOR",`^${l[c.GTLT]}\\s*(${l[c.FULLPLAIN]})$|^$`),T("COMPARATORTRIM",`(\\s*)${l[c.GTLT]}\\s*(${l[c.LOOSEPLAIN]}|${l[c.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace="$1$2$3",T("HYPHENRANGE",`^\\s*(${l[c.XRANGEPLAIN]})\\s+-\\s+(${l[c.XRANGEPLAIN]})\\s*$`),T("HYPHENRANGELOOSE",`^\\s*(${l[c.XRANGEPLAINLOOSE]})\\s+-\\s+(${l[c.XRANGEPLAINLOOSE]})\\s*$`),T("STAR","(<|>)?=?\\s*\\*"),T("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),T("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(be,be.exports);var oe=be.exports;const Nr=Object.freeze({loose:!0}),Ar=Object.freeze({}),Or=i=>i?typeof i!="object"?Nr:i:Ar;var De=Or;const st=/^[0-9]+$/,_t=(i,e)=>{const t=st.test(i),s=st.test(e);return t&&s&&(i=+i,e=+e),i===e?0:t&&!s?-1:s&&!t?1:i_t(e,i);var Pt={compareIdentifiers:_t,rcompareIdentifiers:Cr};const ue=we,{MAX_LENGTH:it,MAX_SAFE_INTEGER:de}=Ee,{safeRe:ot,t:at}=oe,_r=De,{compareIdentifiers:ne}=Pt;let Pr=class Z{constructor(e,t){if(t=_r(t),e instanceof Z){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>it)throw new TypeError(`version is longer than ${it} characters`);ue("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const s=e.trim().match(t.loose?ot[at.LOOSE]:ot[at.FULL]);if(!s)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+s[1],this.minor=+s[2],this.patch=+s[3],this.major>de||this.major<0)throw new TypeError("Invalid major version");if(this.minor>de||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>de||this.patch<0)throw new TypeError("Invalid patch version");s[4]?this.prerelease=s[4].split(".").map(o=>{if(/^[0-9]+$/.test(o)){const f=+o;if(f>=0&&f=0;)typeof this.prerelease[f]=="number"&&(this.prerelease[f]++,f=-2);if(f===-1){if(t===this.prerelease.join(".")&&s===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(o)}}if(t){let f=[t,o];s===!1&&(f=[t]),ne(this.prerelease[0],t)===0?isNaN(this.prerelease[1])&&(this.prerelease=f):this.prerelease=f}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};var V=Pr;const lt=V,xr=(i,e,t=!1)=>{if(i instanceof lt)return i;try{return new lt(i,e)}catch(s){if(!t)return null;throw s}};var se=xr;const br=se,Dr=(i,e)=>{const t=br(i,e);return t?t.version:null};var Fr=Dr;const jr=se,Gr=(i,e)=>{const t=jr(i.trim().replace(/^[=v]+/,""),e);return t?t.version:null};var kr=Gr;const ct=V,Wr=(i,e,t,s,o)=>{typeof t=="string"&&(o=s,s=t,t=void 0);try{return new ct(i instanceof ct?i.version:i,t).inc(e,s,o).version}catch{return null}};var Mr=Wr;const ht=se,Vr=(i,e)=>{const t=ht(i,null,!0),s=ht(e,null,!0),o=t.compare(s);if(o===0)return null;const f=o>0,u=f?t:s,w=f?s:t,l=!!u.prerelease.length;if(!!w.prerelease.length&&!l)return!w.patch&&!w.minor?"major":u.patch?"patch":u.minor?"minor":"major";const m=l?"pre":"";return t.major!==s.major?m+"major":t.minor!==s.minor?m+"minor":t.patch!==s.patch?m+"patch":"prerelease"};var Ur=Vr;const Xr=V,Hr=(i,e)=>new Xr(i,e).major;var Br=Hr;const qr=V,zr=(i,e)=>new qr(i,e).minor;var Yr=zr;const Kr=V,Zr=(i,e)=>new Kr(i,e).patch;var Jr=Zr;const Qr=se,en=(i,e)=>{const t=Qr(i,e);return t&&t.prerelease.length?t.prerelease:null};var tn=en;const ft=V,rn=(i,e,t)=>new ft(i,t).compare(new ft(e,t));var Y=rn;const nn=Y,sn=(i,e,t)=>nn(e,i,t);var on=sn;const an=Y,ln=(i,e)=>an(i,e,!0);var cn=ln;const ut=V,hn=(i,e,t)=>{const s=new ut(i,t),o=new ut(e,t);return s.compare(o)||s.compareBuild(o)};var Fe=hn;const fn=Fe,un=(i,e)=>i.sort((t,s)=>fn(t,s,e));var dn=un;const pn=Fe,mn=(i,e)=>i.sort((t,s)=>pn(s,t,e));var En=mn;const wn=Y,gn=(i,e,t)=>wn(i,e,t)>0;var ge=gn;const vn=Y,$n=(i,e,t)=>vn(i,e,t)<0;var je=$n;const Rn=Y,In=(i,e,t)=>Rn(i,e,t)===0;var xt=In;const yn=Y,Ln=(i,e,t)=>yn(i,e,t)!==0;var bt=Ln;const Tn=Y,Sn=(i,e,t)=>Tn(i,e,t)>=0;var Ge=Sn;const Nn=Y,An=(i,e,t)=>Nn(i,e,t)<=0;var ke=An;const On=xt,Cn=bt,_n=ge,Pn=Ge,xn=je,bn=ke,Dn=(i,e,t,s)=>{switch(e){case"===":return typeof i=="object"&&(i=i.version),typeof t=="object"&&(t=t.version),i===t;case"!==":return typeof i=="object"&&(i=i.version),typeof t=="object"&&(t=t.version),i!==t;case"":case"=":case"==":return On(i,t,s);case"!=":return Cn(i,t,s);case">":return _n(i,t,s);case">=":return Pn(i,t,s);case"<":return xn(i,t,s);case"<=":return bn(i,t,s);default:throw new TypeError(`Invalid operator: ${e}`)}};var Dt=Dn;const Fn=V,jn=se,{safeRe:pe,t:me}=oe,Gn=(i,e)=>{if(i instanceof Fn)return i;if(typeof i=="number"&&(i=String(i)),typeof i!="string")return null;e=e||{};let t=null;if(!e.rtl)t=i.match(e.includePrerelease?pe[me.COERCEFULL]:pe[me.COERCE]);else{const l=e.includePrerelease?pe[me.COERCERTLFULL]:pe[me.COERCERTL];let c;for(;(c=l.exec(i))&&(!t||t.index+t[0].length!==i.length);)(!t||c.index+c[0].length!==t.index+t[0].length)&&(t=c),l.lastIndex=c.index+c[1].length+c[2].length;l.lastIndex=-1}if(t===null)return null;const s=t[2],o=t[3]||"0",f=t[4]||"0",u=e.includePrerelease&&t[5]?`-${t[5]}`:"",w=e.includePrerelease&&t[6]?`+${t[6]}`:"";return jn(`${s}.${o}.${f}${u}${w}`,e)};var kn=Gn;class Wn{constructor(){this.max=1e3,this.map=new Map}get(e){const t=this.map.get(e);if(t!==void 0)return this.map.delete(e),this.map.set(e,t),t}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&t!==void 0){if(this.map.size>=this.max){const o=this.map.keys().next().value;this.delete(o)}this.map.set(e,t)}return this}}var Mn=Wn,Oe,dt;function K(){if(dt)return Oe;dt=1;const i=/\s+/g;class e{constructor(p,y){if(y=o(y),p instanceof e)return p.loose===!!y.loose&&p.includePrerelease===!!y.includePrerelease?p:new e(p.raw,y);if(p instanceof f)return this.raw=p.value,this.set=[[p]],this.formatted=void 0,this;if(this.options=y,this.loose=!!y.loose,this.includePrerelease=!!y.includePrerelease,this.raw=p.trim().replace(i," "),this.set=this.raw.split("||").map(g=>this.parseRange(g.trim())).filter(g=>g.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const g=this.set[0];if(this.set=this.set.filter(L=>!B(L[0])),this.set.length===0)this.set=[g];else if(this.set.length>1){for(const L of this.set)if(L.length===1&&U(L[0])){this.set=[L];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let p=0;p0&&(this.formatted+="||");const y=this.set[p];for(let g=0;g0&&(this.formatted+=" "),this.formatted+=y[g].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(p){const g=((this.options.includePrerelease&&I)|(this.options.loose&&T))+":"+p,L=s.get(g);if(L)return L;const $=this.options.loose,N=$?l[c.HYPHENRANGELOOSE]:l[c.HYPHENRANGE];p=p.replace(N,ce(this.options.includePrerelease)),u("hyphen replace",p),p=p.replace(l[c.COMPARATORTRIM],m),u("comparator trim",p),p=p.replace(l[c.TILDETRIM],v),u("tilde trim",p),p=p.replace(l[c.CARETTRIM],O),u("caret trim",p);let C=p.split(" ").map(D=>te(D,this.options)).join(" ").split(/\s+/).map(D=>Le(D,this.options));$&&(C=C.filter(D=>(u("loose invalid filter",D,this.options),!!D.match(l[c.COMPARATORLOOSE])))),u("range list",C);const A=new Map,x=C.map(D=>new f(D,this.options));for(const D of x){if(B(D))return[D];A.set(D.value,D)}A.size>1&&A.has("")&&A.delete("");const G=[...A.values()];return s.set(g,G),G}intersects(p,y){if(!(p instanceof e))throw new TypeError("a Range is required");return this.set.some(g=>q(g,y)&&p.set.some(L=>q(L,y)&&g.every($=>L.every(N=>$.intersects(N,y)))))}test(p){if(!p)return!1;if(typeof p=="string")try{p=new w(p,this.options)}catch{return!1}for(let y=0;yE.value==="<0.0.0-0",U=E=>E.value==="",q=(E,p)=>{let y=!0;const g=E.slice();let L=g.pop();for(;y&&g.length;)y=g.every($=>L.intersects($,p)),L=g.pop();return y},te=(E,p)=>(u("comp",E,p),E=ae(E,p),u("caret",E),E=H(E,p),u("tildes",E),E=le(E,p),u("xrange",E),E=ye(E,p),u("stars",E),E),b=E=>!E||E.toLowerCase()==="x"||E==="*",H=(E,p)=>E.trim().split(/\s+/).map(y=>Re(y,p)).join(" "),Re=(E,p)=>{const y=p.loose?l[c.TILDELOOSE]:l[c.TILDE];return E.replace(y,(g,L,$,N,C)=>{u("tilde",E,g,L,$,N,C);let A;return b(L)?A="":b($)?A=`>=${L}.0.0 <${+L+1}.0.0-0`:b(N)?A=`>=${L}.${$}.0 <${L}.${+$+1}.0-0`:C?(u("replaceTilde pr",C),A=`>=${L}.${$}.${N}-${C} <${L}.${+$+1}.0-0`):A=`>=${L}.${$}.${N} <${L}.${+$+1}.0-0`,u("tilde return",A),A})},ae=(E,p)=>E.trim().split(/\s+/).map(y=>X(y,p)).join(" "),X=(E,p)=>{u("caret",E,p);const y=p.loose?l[c.CARETLOOSE]:l[c.CARET],g=p.includePrerelease?"-0":"";return E.replace(y,(L,$,N,C,A)=>{u("caret",E,L,$,N,C,A);let x;return b($)?x="":b(N)?x=`>=${$}.0.0${g} <${+$+1}.0.0-0`:b(C)?$==="0"?x=`>=${$}.${N}.0${g} <${$}.${+N+1}.0-0`:x=`>=${$}.${N}.0${g} <${+$+1}.0.0-0`:A?(u("replaceCaret pr",A),$==="0"?N==="0"?x=`>=${$}.${N}.${C}-${A} <${$}.${N}.${+C+1}-0`:x=`>=${$}.${N}.${C}-${A} <${$}.${+N+1}.0-0`:x=`>=${$}.${N}.${C}-${A} <${+$+1}.0.0-0`):(u("no pr"),$==="0"?N==="0"?x=`>=${$}.${N}.${C}${g} <${$}.${N}.${+C+1}-0`:x=`>=${$}.${N}.${C}${g} <${$}.${+N+1}.0-0`:x=`>=${$}.${N}.${C} <${+$+1}.0.0-0`),u("caret return",x),x})},le=(E,p)=>(u("replaceXRanges",E,p),E.split(/\s+/).map(y=>Ie(y,p)).join(" ")),Ie=(E,p)=>{E=E.trim();const y=p.loose?l[c.XRANGELOOSE]:l[c.XRANGE];return E.replace(y,(g,L,$,N,C,A)=>{u("xRange",E,g,L,$,N,C,A);const x=b($),G=x||b(N),D=G||b(C),ee=D;return L==="="&&ee&&(L=""),A=p.includePrerelease?"-0":"",x?L===">"||L==="<"?g="<0.0.0-0":g="*":L&&ee?(G&&(N=0),C=0,L===">"?(L=">=",G?($=+$+1,N=0,C=0):(N=+N+1,C=0)):L==="<="&&(L="<",G?$=+$+1:N=+N+1),L==="<"&&(A="-0"),g=`${L+$}.${N}.${C}${A}`):G?g=`>=${$}.0.0${A} <${+$+1}.0.0-0`:D&&(g=`>=${$}.${N}.0${A} <${$}.${+N+1}.0-0`),u("xRange return",g),g})},ye=(E,p)=>(u("replaceStars",E,p),E.trim().replace(l[c.STAR],"")),Le=(E,p)=>(u("replaceGTE0",E,p),E.trim().replace(l[p.includePrerelease?c.GTE0PRE:c.GTE0],"")),ce=E=>(p,y,g,L,$,N,C,A,x,G,D,ee)=>(b(g)?y="":b(L)?y=`>=${g}.0.0${E?"-0":""}`:b($)?y=`>=${g}.${L}.0${E?"-0":""}`:N?y=`>=${y}`:y=`>=${y}${E?"-0":""}`,b(x)?A="":b(G)?A=`<${+x+1}.0.0-0`:b(D)?A=`<${x}.${+G+1}.0-0`:ee?A=`<=${x}.${G}.${D}-${ee}`:E?A=`<${x}.${G}.${+D+1}-0`:A=`<=${A}`,`${y} ${A}`.trim()),J=(E,p,y)=>{for(let g=0;g0){const L=E[g].semver;if(L.major===p.major&&L.minor===p.minor&&L.patch===p.patch)return!0}return!1}return!0};return Oe}var Ce,pt;function ve(){if(pt)return Ce;pt=1;const i=Symbol("SemVer ANY");class e{static get ANY(){return i}constructor(m,v){if(v=t(v),m instanceof e){if(m.loose===!!v.loose)return m;m=m.value}m=m.trim().split(/\s+/).join(" "),u("comparator",m,v),this.options=v,this.loose=!!v.loose,this.parse(m),this.semver===i?this.value="":this.value=this.operator+this.semver.version,u("comp",this)}parse(m){const v=this.options.loose?s[o.COMPARATORLOOSE]:s[o.COMPARATOR],O=m.match(v);if(!O)throw new TypeError(`Invalid comparator: ${m}`);this.operator=O[1]!==void 0?O[1]:"",this.operator==="="&&(this.operator=""),O[2]?this.semver=new w(O[2],this.options.loose):this.semver=i}toString(){return this.value}test(m){if(u("Comparator.test",m,this.options.loose),this.semver===i||m===i)return!0;if(typeof m=="string")try{m=new w(m,this.options)}catch{return!1}return f(m,this.operator,this.semver,this.options)}intersects(m,v){if(!(m instanceof e))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new l(m.value,v).test(this.value):m.operator===""?m.value===""?!0:new l(this.value,v).test(m.semver):(v=t(v),v.includePrerelease&&(this.value==="<0.0.0-0"||m.value==="<0.0.0-0")||!v.includePrerelease&&(this.value.startsWith("<0.0.0")||m.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&m.operator.startsWith(">")||this.operator.startsWith("<")&&m.operator.startsWith("<")||this.semver.version===m.semver.version&&this.operator.includes("=")&&m.operator.includes("=")||f(this.semver,"<",m.semver,v)&&this.operator.startsWith(">")&&m.operator.startsWith("<")||f(this.semver,">",m.semver,v)&&this.operator.startsWith("<")&&m.operator.startsWith(">")))}}Ce=e;const t=De,{safeRe:s,t:o}=oe,f=Dt,u=we,w=V,l=K();return Ce}const Vn=K(),Un=(i,e,t)=>{try{e=new Vn(e,t)}catch{return!1}return e.test(i)};var $e=Un;const Xn=K(),Hn=(i,e)=>new Xn(i,e).set.map(t=>t.map(s=>s.value).join(" ").trim().split(" "));var Bn=Hn;const qn=V,zn=K(),Yn=(i,e,t)=>{let s=null,o=null,f=null;try{f=new zn(e,t)}catch{return null}return i.forEach(u=>{f.test(u)&&(!s||o.compare(u)===-1)&&(s=u,o=new qn(s,t))}),s};var Kn=Yn;const Zn=V,Jn=K(),Qn=(i,e,t)=>{let s=null,o=null,f=null;try{f=new Jn(e,t)}catch{return null}return i.forEach(u=>{f.test(u)&&(!s||o.compare(u)===1)&&(s=u,o=new Zn(s,t))}),s};var es=Qn;const _e=V,ts=K(),mt=ge,rs=(i,e)=>{i=new ts(i,e);let t=new _e("0.0.0");if(i.test(t)||(t=new _e("0.0.0-0"),i.test(t)))return t;t=null;for(let s=0;s{const w=new _e(u.semver.version);switch(u.operator){case">":w.prerelease.length===0?w.patch++:w.prerelease.push(0),w.raw=w.format();case"":case">=":(!f||mt(w,f))&&(f=w);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${u.operator}`)}}),f&&(!t||mt(t,f))&&(t=f)}return t&&i.test(t)?t:null};var ns=rs;const ss=K(),is=(i,e)=>{try{return new ss(i,e).range||"*"}catch{return null}};var os=is;const as=V,Ft=ve(),{ANY:ls}=Ft,cs=K(),hs=$e,Et=ge,wt=je,fs=ke,us=Ge,ds=(i,e,t,s)=>{i=new as(i,s),e=new cs(e,s);let o,f,u,w,l;switch(t){case">":o=Et,f=fs,u=wt,w=">",l=">=";break;case"<":o=wt,f=us,u=Et,w="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(hs(i,e,s))return!1;for(let c=0;c{I.semver===ls&&(I=new Ft(">=0.0.0")),v=v||I,O=O||I,o(I.semver,v.semver,s)?v=I:u(I.semver,O.semver,s)&&(O=I)}),v.operator===w||v.operator===l||(!O.operator||O.operator===w)&&f(i,O.semver))return!1;if(O.operator===l&&u(i,O.semver))return!1}return!0};var We=ds;const ps=We,ms=(i,e,t)=>ps(i,e,">",t);var Es=ms;const ws=We,gs=(i,e,t)=>ws(i,e,"<",t);var vs=gs;const gt=K(),$s=(i,e,t)=>(i=new gt(i,t),e=new gt(e,t),i.intersects(e,t));var Rs=$s;const Is=$e,ys=Y;var Ls=(i,e,t)=>{const s=[];let o=null,f=null;const u=i.sort((m,v)=>ys(m,v,t));for(const m of u)Is(m,e,t)?(f=m,o||(o=m)):(f&&s.push([o,f]),f=null,o=null);o&&s.push([o,null]);const w=[];for(const[m,v]of s)m===v?w.push(m):!v&&m===u[0]?w.push("*"):v?m===u[0]?w.push(`<=${v}`):w.push(`${m} - ${v}`):w.push(`>=${m}`);const l=w.join(" || "),c=typeof e.raw=="string"?e.raw:String(e);return l.length{if(i===e)return!0;i=new vt(i,t),e=new vt(e,t);let s=!1;e:for(const o of i.set){for(const f of e.set){const u=Ns(o,f,t);if(s=s||u!==null,u)continue e}if(s)return!1}return!0},Ss=[new Me(">=0.0.0-0")],$t=[new Me(">=0.0.0")],Ns=(i,e,t)=>{if(i===e)return!0;if(i.length===1&&i[0].semver===Pe){if(e.length===1&&e[0].semver===Pe)return!0;t.includePrerelease?i=Ss:i=$t}if(e.length===1&&e[0].semver===Pe){if(t.includePrerelease)return!0;e=$t}const s=new Set;let o,f;for(const I of i)I.operator===">"||I.operator===">="?o=Rt(o,I,t):I.operator==="<"||I.operator==="<="?f=It(f,I,t):s.add(I.semver);if(s.size>1)return null;let u;if(o&&f){if(u=Ve(o.semver,f.semver,t),u>0)return null;if(u===0&&(o.operator!==">="||f.operator!=="<="))return null}for(const I of s){if(o&&!ie(I,String(o),t)||f&&!ie(I,String(f),t))return null;for(const T of e)if(!ie(I,String(T),t))return!1;return!0}let w,l,c,m,v=f&&!t.includePrerelease&&f.semver.prerelease.length?f.semver:!1,O=o&&!t.includePrerelease&&o.semver.prerelease.length?o.semver:!1;v&&v.prerelease.length===1&&f.operator==="<"&&v.prerelease[0]===0&&(v=!1);for(const I of e){if(m=m||I.operator===">"||I.operator===">=",c=c||I.operator==="<"||I.operator==="<=",o){if(O&&I.semver.prerelease&&I.semver.prerelease.length&&I.semver.major===O.major&&I.semver.minor===O.minor&&I.semver.patch===O.patch&&(O=!1),I.operator===">"||I.operator===">="){if(w=Rt(o,I,t),w===I&&w!==o)return!1}else if(o.operator===">="&&!ie(o.semver,String(I),t))return!1}if(f){if(v&&I.semver.prerelease&&I.semver.prerelease.length&&I.semver.major===v.major&&I.semver.minor===v.minor&&I.semver.patch===v.patch&&(v=!1),I.operator==="<"||I.operator==="<="){if(l=It(f,I,t),l===I&&l!==f)return!1}else if(f.operator==="<="&&!ie(f.semver,String(I),t))return!1}if(!I.operator&&(f||o)&&u!==0)return!1}return!(o&&c&&!f&&u!==0||f&&m&&!o&&u!==0||O||v)},Rt=(i,e,t)=>{if(!i)return e;const s=Ve(i.semver,e.semver,t);return s>0?i:s<0||e.operator===">"&&i.operator===">="?e:i},It=(i,e,t)=>{if(!i)return e;const s=Ve(i.semver,e.semver,t);return s<0?i:s>0||e.operator==="<"&&i.operator==="<="?e:i};var As=Ts;const xe=oe,yt=Ee,Os=V,Lt=Pt,Cs=se,_s=Fr,Ps=kr,xs=Mr,bs=Ur,Ds=Br,Fs=Yr,js=Jr,Gs=tn,ks=Y,Ws=on,Ms=cn,Vs=Fe,Us=dn,Xs=En,Hs=ge,Bs=je,qs=xt,zs=bt,Ys=Ge,Ks=ke,Zs=Dt,Js=kn,Qs=ve(),ei=K(),ti=$e,ri=Bn,ni=Kn,si=es,ii=ns,oi=os,ai=We,li=Es,ci=vs,hi=Rs,fi=Ls,ui=As;var di={parse:Cs,valid:_s,clean:Ps,inc:xs,diff:bs,major:Ds,minor:Fs,patch:js,prerelease:Gs,compare:ks,rcompare:Ws,compareLoose:Ms,compareBuild:Vs,sort:Us,rsort:Xs,gt:Hs,lt:Bs,eq:qs,neq:zs,gte:Ys,lte:Ks,cmp:Zs,coerce:Js,Comparator:Qs,Range:ei,satisfies:ti,toComparators:ri,maxSatisfying:ni,minSatisfying:si,minVersion:ii,validRange:oi,outside:ai,gtr:li,ltr:ci,intersects:hi,simplifyRange:fi,subset:ui,SemVer:Os,re:xe.re,src:xe.src,tokens:xe.t,SEMVER_SPEC_VERSION:yt.SEMVER_SPEC_VERSION,RELEASE_TYPES:yt.RELEASE_TYPES,compareIdentifiers:Lt.compareIdentifiers,rcompareIdentifiers:Lt.rcompareIdentifiers};const Tt=At(di);function pi(i={}){const{immediate:e=!1,onNeedRefresh:t,onOfflineReady:s,onRegistered:o,onRegisteredSW:f,onRegisterError:u}=i;let w,l;const c=async(v=!0)=>{await l};async function m(){if("serviceWorker"in navigator){const{Workbox:v}=await Zt(()=>import("./workbox-window.prod.es5-c46a1faa.js"),[]);w=new v("/smeditor/sw.js",{scope:"/smeditor/",type:"classic"}),w.addEventListener("activated",O=>{(O.isUpdate||O.isExternal)&&window.location.reload()}),w.addEventListener("installed",O=>{O.isUpdate||s?.()}),w.register({immediate:e}).then(O=>{f?f("/smeditor/sw.js",O):o?.(O)}).catch(O=>{u?.(O)})}}return l=m(),c}var jt={exports:{}};(function(i){(function(){function e(r,n,h){return r.call.apply(r.bind,arguments)}function t(r,n,h){if(!r)throw Error();if(2=n.f?_():r.fonts.load(Re(n.a),n.h).then(function(F){1<=F.length?S():setTimeout(P,25)},function(){_()})}P()}),d=null,R=new Promise(function(S,_){d=setTimeout(_,n.f)});Promise.race([R,a]).then(function(){d&&(clearTimeout(d),d=null),n.g(n.a)},function(){n.j(n.a)})};function N(r,n,h,a,d,R,S){this.v=r,this.B=n,this.c=h,this.a=a,this.s=S||"BESbswy",this.f={},this.w=d||3e3,this.u=R||null,this.m=this.j=this.h=this.g=null,this.g=new y(this.c,this.s),this.h=new y(this.c,this.s),this.j=new y(this.c,this.s),this.m=new y(this.c,this.s),r=new H(this.a.c+",serif",X(this.a)),r=L(r),this.g.a.style.cssText=r,r=new H(this.a.c+",sans-serif",X(this.a)),r=L(r),this.h.a.style.cssText=r,r=new H("serif",X(this.a)),r=L(r),this.j.a.style.cssText=r,r=new H("sans-serif",X(this.a)),r=L(r),this.m.a.style.cssText=r,g(this.g),g(this.h),g(this.j),g(this.m)}var C={D:"serif",C:"sans-serif"},A=null;function x(){if(A===null){var r=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);A=!!r&&(536>parseInt(r[1],10)||parseInt(r[1],10)===536&&11>=parseInt(r[2],10))}return A}N.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=o(),D(this)};function G(r,n,h){for(var a in C)if(C.hasOwnProperty(a)&&n===r.f[C[a]]&&h===r.f[C[a]])return!0;return!1}function D(r){var n=r.g.a.offsetWidth,h=r.h.a.offsetWidth,a;(a=n===r.f.serif&&h===r.f["sans-serif"])||(a=x()&&G(r,n,h)),a?o()-r.A>=r.w?x()&&G(r,n,h)&&(r.u===null||r.u.hasOwnProperty(r.a.c))?Te(r,r.v):Te(r,r.B):ee(r):Te(r,r.v)}function ee(r){setTimeout(s(function(){D(this)},r),50)}function Te(r,n){setTimeout(s(function(){c(this.g.a),c(this.h.a),c(this.j.a),c(this.m.a),n(this.a)},r),0)}function Se(r,n,h){this.c=r,this.a=n,this.f=0,this.m=this.j=!1,this.s=h}var he=null;Se.prototype.g=function(r){var n=this.a;n.g&&m(n.f,[n.a.c("wf",r.c,X(r).toString(),"active")],[n.a.c("wf",r.c,X(r).toString(),"loading"),n.a.c("wf",r.c,X(r).toString(),"inactive")]),J(n,"fontactive",r),this.m=!0,Ue(this)},Se.prototype.h=function(r){var n=this.a;if(n.g){var h=v(n.f,n.a.c("wf",r.c,X(r).toString(),"active")),a=[],d=[n.a.c("wf",r.c,X(r).toString(),"loading")];h||a.push(n.a.c("wf",r.c,X(r).toString(),"inactive")),m(n.f,a,d)}J(n,"fontinactive",r),Ue(this)};function Ue(r){--r.f==0&&r.j&&(r.m?(r=r.a,r.g&&m(r.f,[r.a.c("wf","active")],[r.a.c("wf","loading"),r.a.c("wf","inactive")]),J(r,"active")):ce(r.a))}function Xe(r){this.j=r,this.a=new E,this.h=0,this.f=this.g=!0}Xe.prototype.load=function(r){this.c=new f(this.j,r.context||this.j),this.g=r.events!==!1,this.f=r.classes!==!1,kt(this,new ye(this.c,r),r)};function Gt(r,n,h,a,d){var R=--r.h==0;(r.f||r.g)&&setTimeout(function(){var S=d||null,_=a||null||{};if(h.length===0&&R)ce(n.a);else{n.f+=h.length,R&&(n.j=R);var P,F=[];for(P=0;Pthis.createElement(o));t.replaceChildren(...s)}createElement(e){if(e.type=="separator"){const t=document.createElement("div");return t.classList.add("separator"),t}if(e.type=="selection"||e.type=="checkbox"||e.type=="dropdown"){const t=document.createElement("div"),s=document.createElement("div"),o=document.createElement("div");let f;if(e.type=="selection"||e.type=="checkbox"){const u=Qt[e.id]??{label:e.id,combos:[],callback:()=>{}};f=document.createElement("div"),f.innerText=Ot.getKeybindString(e.id),f.classList.add("keybind","unselectable"),o.innerText=u.label;let w=u.disabled;typeof w=="function"&&(w=w(this.app)),w&&t.classList.add("disabled"),t.addEventListener("click",()=>{if(w)return;u.callback(this.app),t.closest(".menu-main").querySelector(".menubar-dropdown").replaceChildren()})}else f=er.getIcon("CHEVRON",16),f.style.transform="rotate(-90deg)",o.innerText=typeof e.title=="function"?e.title(this.app):e.title;if(s.appendChild(o),s.appendChild(f),t.appendChild(s),t.classList.add("menu-item"),s.classList.add("menu-item-title","menu-hover"),o.classList.add("title","unselectable"),e.type=="dropdown"){const u=document.createElement("div");t.appendChild(u),u.classList.add("menubar-dropdown"),e.options.map(w=>this.createElement(w)).forEach(w=>u.appendChild(w))}if(e.type=="checkbox"){let u=e.checked;typeof u=="function"&&(u=u(this.app)),u&&(o.innerText="✓ "+o.innerText)}return t}if(e.type=="menu"){const t=document.createElement("div"),s=document.createElement("div"),o=document.createElement("div");return t.appendChild(s),s.innerText=e.title,t.appendChild(o),s.classList.add("title","unselectable"),t.classList.add("menu-item","menu-main"),s.classList.add("menu-hover"),o.classList.add("menubar-dropdown","unselectable"),t.onmouseenter=()=>{o.replaceChildren(...e.options.map(f=>this.createElement(f)))},t.onmouseleave=()=>{o.replaceChildren()},t}return document.createElement("div")}}class gi{view;windows=[];app;constructor(e,t){this.app=e,this.view=t}unfocusAll(){for(const e of this.view.querySelectorAll(".focused"))e.classList.remove("focused")}getFocusedWindow(){for(const e of this.windows)if(e.windowElement.classList.contains("focused"))return e;return null}isBlocked(){return!this.windows.every(e=>!e.options.blocking)}openWindow(e){if(e.options.win_id){const t=this.getWindowById(e.options.win_id);if(t){t.focus();return}}e.addToManager(this),this.windows.push(e)}removeWindow(e){this.windows.splice(this.windows.indexOf(e),1)}getWindowById(e){for(const t of this.windows)if(t.options.win_id==e)return t}}const St="1.1.0";class vi{options=k;events=Ne;themes=Ae;renderer;ticker;stage;view;chartManager;windowManager;menubarManager;actionHistory;lastWidth=window.innerWidth;lastHeight=window.innerHeight;constructor(){if(nr.setDefaultProps({duration:[200,100],theme:"sm"}),k.loadOptions(),sr(),Ot.load(this),window.nw){const e=nw.Window.get();k.app.fullscreen?e.enterFullscreen():e.resizeTo(k.app.width,k.app.height)}if(setInterval(()=>k.saveOptions(),1e4),k.general.smoothAnimations&&document.body.classList.add("animated"),this.registerFonts(),this.view=document.getElementById("pixi"),document.oncontextmenu=e=>{e.preventDefault(),this.chartManager.loadedChart&&e.target==this.view&&Je.open(this,e)},this.view.onmousedown=()=>{Je.close()},this.stage=new ir,this.stage.sortableChildren=!0,this.renderer=new or({backgroundColor:1579292,antialias:k.performance.antialiasing,width:this.view.clientWidth,height:this.view.clientHeight,resolution:k.performance.resolution,autoDensity:!0,view:this.view,powerPreference:"low-power"}),this.ticker=new ar,this.ticker.maxFPS=0,this.ticker.add(()=>{const e=performance.now();this.renderer.render(this.stage),Qe.instance?.addFrameTimeValue(performance.now()-e),performance.memory?.usedJSHeapSize&&Qe.instance?.addMemoryTimeValue(performance.memory.usedJSHeapSize),$r()},lr.LOW),this.ticker.start(),cr.init(this.renderer),this.chartManager=new hr(this),this.menubarManager=new wi(this,document.getElementById("menubar")),this.windowManager=new gi(this,document.getElementById("windows")),this.actionHistory=new et(this),this.registerListeners(),!W.hidePoweredByText&&fr()){const e=document.getElementById("embed");e.appendChild(document.createTextNode("Powered by "));const t=document.createElement("a");if(t.href="https://tillvit.github.io/smeditor/",t.innerText="SMEditor",t.target="_blank",e.appendChild(t),W.url!=null){e.appendChild(document.createTextNode(" | Open this chart in a "));const s=document.createElement("a"),o=new URL(location.origin+"/smeditor/app/");s.innerText="new tab",s.target="_blank",o.searchParams.append("url",W.url),W.chartType!==null&&o.searchParams.append("chartType",W.chartType),W.chartIndex!==null&&o.searchParams.append("chartIndex",W.chartIndex+""),s.href=o.toString(),e.appendChild(s)}}tt.initFileSystem().then(()=>{if(W.url){this.chartManager.loadSM(W.url).then(()=>{const e=this.chartManager.loadedSM;if(!e)return;let t;if(W.chartType!=null&&(t=e.charts[W.chartType],t===void 0)){nt.createFormatted(`Couldn't find chart with type ${W.chartType}`,"warn");return}if(t===void 0){const o=Object.keys(e.charts);if(o.length==0||(t=e.charts[o[0]],t.length==0))return}let s;if(W.chartIndex!=null&&(s=t.at(W.chartIndex),s===void 0)){nt.createFormatted(`Couldn't find chart with index ${W.chartIndex}`,"warn");return}s===void 0&&(s=t.at(-1),!s)||this.chartManager.loadChart(s)});return}if(this.windowManager.openWindow(new ur(this)),window.nw){const e=nw.Window.get();nw.App.on("open",t=>{if(!t||t?.length===0){nw.Window.open(window.location.href);return}let s="";for(let o of t)if(o.startsWith("file://")&&(o=o.substring(7)),fe(o)==".ssc"){s=o;break}else s==""&&fe(o)==".sm"&&(s=o);s!=""&&(this.chartManager.loadSM(s),this.windowManager.getWindowById("select_sm_initial")?.closeWindow())}),window.addEventListener("keydown",t=>{t.key=="r"&&(t.metaKey||t.ctrlKey)&&(t.preventDefault(),e.reload()),t.code=="KeyW"&&(t.metaKey||t.ctrlKey)&&(t.preventDefault(),e.close()),process.versions["nw-flavor"]=="sdk"&&t.code=="KeyI"&&t.metaKey&&t.altKey&&(t.preventDefault(),e.showDevTools())}),e.on("enter-fullscreen",()=>{k.app.fullscreen=e.isFullscreen}),e.on("resize",(t,s)=>{e.isFullscreen||(k.app.width=t,k.app.height=s)}),e.on("restore",()=>{k.app.fullscreen=e.isFullscreen}),this.checkAppVersion()}this.checkCoreVersion()}),window.onbeforeunload=e=>{if(et.instance.isDirty()&&k.general.warnBeforeExit)return e.preventDefault(),e.returnValue="Are you sure you want to exit?"},window.onpagehide=()=>{k.saveOptions()},Ae.loadTheme(k.general.theme)}registerFonts(){rt.from("Main",{fontFamily:"Assistant",fontSize:20,fill:"white"},{chars:[["a","z"],["A","Z"],"!@#$%^&*()~{}[]:.-?=,_","0123456789/"," "],resolution:window.devicePixelRatio}),rt.from("Fancy",{fontFamily:"Assistant",fontSize:40,fontWeight:"700",fill:["#dddddd","#ffffff"],fillGradientType:dr.LINEAR_VERTICAL,stroke:11184810,strokeThickness:3},{chars:[["a","z"],["A","Z"],"!@#$%^&*()~{}[]:.-?=,_","0123456789/"," "],resolution:window.devicePixelRatio})}registerListeners(){this.view.addEventListener("mousedown",()=>{this.windowManager.unfocusAll()}),Ne.on("themeChanged",()=>{this.renderer.background.color=new pr(Ae.getCurrentTheme()["editor-bg"]).toNumber()}),window.addEventListener("keydown",function(e){e.code=="Enter"&&e.target instanceof HTMLButtonElement&&e.preventDefault()}),window.addEventListener("dragstart",function(e){e.target instanceof HTMLImageElement&&e.preventDefault()}),setInterval(()=>{const e=window.innerWidth,t=window.innerHeight-document.getElementById("menubar").clientHeight-document.getElementById("playback-options").clientHeight;(this.lastHeight!=t||this.lastWidth!=e)&&(this.lastHeight=t,this.lastWidth=e,this.onResize(e,t),Ne.emit("resize"))},100),window.addEventListener("dragover",e=>{e.preventDefault(),e.dataTransfer.dropEffect="copy"}),window.addEventListener("drop",e=>{if(window.nw){e.stopPropagation(),e.preventDefault();let t="";for(const s of e.dataTransfer.files)if(s.path)if(fe(s.path)==".ssc"){t=s.path;break}else t==""&&fe(s.path)==".sm"&&(t=s.path);t!=""&&(this.chartManager.loadSM(t),this.windowManager.getWindowById("select_sm_initial")?.closeWindow())}else tt.handleDropEvent(e).then(t=>{const s=new mr(this,{title:"Select an sm/ssc file...",accepted_file_types:[".sm",".ssc"],disableClose:!0,callback:o=>{this.chartManager.loadSM(o),this.windowManager.getWindowById("select_sm_initial")?.closeWindow()},onload:()=>{s.getAcceptableFile(t??"").then(o=>s.selectPath(o))}});this.windowManager.openWindow(s)})})}onResize(e,t){this.renderer.screen.width=e,this.renderer.screen.height=t,this.view.width=e*this.renderer.resolution,this.view.height=t*this.renderer.resolution,this.view.style.width=`${e}px`,this.view.style.height=`${t}px`}checkAppVersion(){if(!window.nw)return;const e=nw.require("nw.gui"),t={stable:3,beta:2,alpha:1,nightly:0};let s="win";process.platform=="darwin"?s=nw.require("os").arch()=="arm64"?"mac-arm":"mac-x64":process.platform=="linux"&&(s="linux"),fetch("/smeditor/assets/app/versions.json").then(o=>o.json()).then(o=>{o=o.sort((u,w)=>t[u.type]!=t[w.type]?t[w.type]-t[u.type]:w.date-u.date);const f=o[0];Tt.lt(e.App.manifest.version,f.version)&&localStorage.getItem("downloadedVersion")!==f.version&&Er.open(f.version,f.downloads[s])})}checkCoreVersion(){const e=pi({onOfflineReady(){vr.open(),console.log("Offline use ready")}});navigator.serviceWorker.addEventListener("controllerchange",()=>{wr.open(e),console.log("Found new version")});const t=localStorage.getItem("coreVersion");t!==null&&Tt.lt(t,St)&&this.windowManager.openWindow(new gr(this)),localStorage.setItem("coreVersion",St)}}document.querySelector("body").innerHTML=`
+import{g as At,_ as Zt,F as W,M as Jt,K as Qt,a as Ot,I as er,G as tr,N as rr,O as k,E as Ne,T as Ae,t as nr,l as sr,C as Je,b as ir,R as or,c as ar,D as Qe,U as lr,B as cr,d as hr,A as et,i as fr,e as tt,f as ur,h as fe,j as rt,k as dr,m as pr,n as mr,o as Er,p as wr,q as gr,W as nt,r as vr}from"./ChartManager-47a72d67.js";var be={exports:{}};const $r="2.0.0",Ct=256,Rr=Number.MAX_SAFE_INTEGER||9007199254740991,Ir=16,yr=Ct-6,Lr=["major","premajor","minor","preminor","patch","prepatch","prerelease"];var Ee={MAX_LENGTH:Ct,MAX_SAFE_COMPONENT_LENGTH:Ir,MAX_SAFE_BUILD_LENGTH:yr,MAX_SAFE_INTEGER:Rr,RELEASE_TYPES:Lr,SEMVER_SPEC_VERSION:$r,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2};const Tr=typeof process=="object"&&process.env&&{}.NODE_DEBUG&&/\bsemver\b/i.test({}.NODE_DEBUG)?(...i)=>console.error("SEMVER",...i):()=>{};var we=Tr;(function(i,e){const{MAX_SAFE_COMPONENT_LENGTH:t,MAX_SAFE_BUILD_LENGTH:s,MAX_LENGTH:o}=Ee,f=we;e=i.exports={};const u=e.re=[],w=e.safeRe=[],l=e.src=[],c=e.t={};let m=0;const v="[a-zA-Z0-9-]",O=[["\\s",1],["\\d",o],[v,s]],I=B=>{for(const[U,q]of O)B=B.split(`${U}*`).join(`${U}{0,${q}}`).split(`${U}+`).join(`${U}{1,${q}}`);return B},T=(B,U,q)=>{const te=I(U),b=m++;f(B,b,U),c[B]=b,l[b]=U,u[b]=new RegExp(U,q?"g":void 0),w[b]=new RegExp(te,q?"g":void 0)};T("NUMERICIDENTIFIER","0|[1-9]\\d*"),T("NUMERICIDENTIFIERLOOSE","\\d+"),T("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${v}*`),T("MAINVERSION",`(${l[c.NUMERICIDENTIFIER]})\\.(${l[c.NUMERICIDENTIFIER]})\\.(${l[c.NUMERICIDENTIFIER]})`),T("MAINVERSIONLOOSE",`(${l[c.NUMERICIDENTIFIERLOOSE]})\\.(${l[c.NUMERICIDENTIFIERLOOSE]})\\.(${l[c.NUMERICIDENTIFIERLOOSE]})`),T("PRERELEASEIDENTIFIER",`(?:${l[c.NUMERICIDENTIFIER]}|${l[c.NONNUMERICIDENTIFIER]})`),T("PRERELEASEIDENTIFIERLOOSE",`(?:${l[c.NUMERICIDENTIFIERLOOSE]}|${l[c.NONNUMERICIDENTIFIER]})`),T("PRERELEASE",`(?:-(${l[c.PRERELEASEIDENTIFIER]}(?:\\.${l[c.PRERELEASEIDENTIFIER]})*))`),T("PRERELEASELOOSE",`(?:-?(${l[c.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${l[c.PRERELEASEIDENTIFIERLOOSE]})*))`),T("BUILDIDENTIFIER",`${v}+`),T("BUILD",`(?:\\+(${l[c.BUILDIDENTIFIER]}(?:\\.${l[c.BUILDIDENTIFIER]})*))`),T("FULLPLAIN",`v?${l[c.MAINVERSION]}${l[c.PRERELEASE]}?${l[c.BUILD]}?`),T("FULL",`^${l[c.FULLPLAIN]}$`),T("LOOSEPLAIN",`[v=\\s]*${l[c.MAINVERSIONLOOSE]}${l[c.PRERELEASELOOSE]}?${l[c.BUILD]}?`),T("LOOSE",`^${l[c.LOOSEPLAIN]}$`),T("GTLT","((?:<|>)?=?)"),T("XRANGEIDENTIFIERLOOSE",`${l[c.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),T("XRANGEIDENTIFIER",`${l[c.NUMERICIDENTIFIER]}|x|X|\\*`),T("XRANGEPLAIN",`[v=\\s]*(${l[c.XRANGEIDENTIFIER]})(?:\\.(${l[c.XRANGEIDENTIFIER]})(?:\\.(${l[c.XRANGEIDENTIFIER]})(?:${l[c.PRERELEASE]})?${l[c.BUILD]}?)?)?`),T("XRANGEPLAINLOOSE",`[v=\\s]*(${l[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[c.XRANGEIDENTIFIERLOOSE]})(?:${l[c.PRERELEASELOOSE]})?${l[c.BUILD]}?)?)?`),T("XRANGE",`^${l[c.GTLT]}\\s*${l[c.XRANGEPLAIN]}$`),T("XRANGELOOSE",`^${l[c.GTLT]}\\s*${l[c.XRANGEPLAINLOOSE]}$`),T("COERCEPLAIN",`(^|[^\\d])(\\d{1,${t}})(?:\\.(\\d{1,${t}}))?(?:\\.(\\d{1,${t}}))?`),T("COERCE",`${l[c.COERCEPLAIN]}(?:$|[^\\d])`),T("COERCEFULL",l[c.COERCEPLAIN]+`(?:${l[c.PRERELEASE]})?(?:${l[c.BUILD]})?(?:$|[^\\d])`),T("COERCERTL",l[c.COERCE],!0),T("COERCERTLFULL",l[c.COERCEFULL],!0),T("LONETILDE","(?:~>?)"),T("TILDETRIM",`(\\s*)${l[c.LONETILDE]}\\s+`,!0),e.tildeTrimReplace="$1~",T("TILDE",`^${l[c.LONETILDE]}${l[c.XRANGEPLAIN]}$`),T("TILDELOOSE",`^${l[c.LONETILDE]}${l[c.XRANGEPLAINLOOSE]}$`),T("LONECARET","(?:\\^)"),T("CARETTRIM",`(\\s*)${l[c.LONECARET]}\\s+`,!0),e.caretTrimReplace="$1^",T("CARET",`^${l[c.LONECARET]}${l[c.XRANGEPLAIN]}$`),T("CARETLOOSE",`^${l[c.LONECARET]}${l[c.XRANGEPLAINLOOSE]}$`),T("COMPARATORLOOSE",`^${l[c.GTLT]}\\s*(${l[c.LOOSEPLAIN]})$|^$`),T("COMPARATOR",`^${l[c.GTLT]}\\s*(${l[c.FULLPLAIN]})$|^$`),T("COMPARATORTRIM",`(\\s*)${l[c.GTLT]}\\s*(${l[c.LOOSEPLAIN]}|${l[c.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace="$1$2$3",T("HYPHENRANGE",`^\\s*(${l[c.XRANGEPLAIN]})\\s+-\\s+(${l[c.XRANGEPLAIN]})\\s*$`),T("HYPHENRANGELOOSE",`^\\s*(${l[c.XRANGEPLAINLOOSE]})\\s+-\\s+(${l[c.XRANGEPLAINLOOSE]})\\s*$`),T("STAR","(<|>)?=?\\s*\\*"),T("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),T("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(be,be.exports);var oe=be.exports;const Sr=Object.freeze({loose:!0}),Nr=Object.freeze({}),Ar=i=>i?typeof i!="object"?Sr:i:Nr;var De=Ar;const st=/^[0-9]+$/,_t=(i,e)=>{const t=st.test(i),s=st.test(e);return t&&s&&(i=+i,e=+e),i===e?0:t&&!s?-1:s&&!t?1:i_t(e,i);var Pt={compareIdentifiers:_t,rcompareIdentifiers:Or};const ue=we,{MAX_LENGTH:it,MAX_SAFE_INTEGER:de}=Ee,{safeRe:ot,t:at}=oe,Cr=De,{compareIdentifiers:ne}=Pt;let _r=class Z{constructor(e,t){if(t=Cr(t),e instanceof Z){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>it)throw new TypeError(`version is longer than ${it} characters`);ue("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const s=e.trim().match(t.loose?ot[at.LOOSE]:ot[at.FULL]);if(!s)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+s[1],this.minor=+s[2],this.patch=+s[3],this.major>de||this.major<0)throw new TypeError("Invalid major version");if(this.minor>de||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>de||this.patch<0)throw new TypeError("Invalid patch version");s[4]?this.prerelease=s[4].split(".").map(o=>{if(/^[0-9]+$/.test(o)){const f=+o;if(f>=0&&f=0;)typeof this.prerelease[f]=="number"&&(this.prerelease[f]++,f=-2);if(f===-1){if(t===this.prerelease.join(".")&&s===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(o)}}if(t){let f=[t,o];s===!1&&(f=[t]),ne(this.prerelease[0],t)===0?isNaN(this.prerelease[1])&&(this.prerelease=f):this.prerelease=f}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};var V=_r;const lt=V,Pr=(i,e,t=!1)=>{if(i instanceof lt)return i;try{return new lt(i,e)}catch(s){if(!t)return null;throw s}};var se=Pr;const xr=se,br=(i,e)=>{const t=xr(i,e);return t?t.version:null};var Dr=br;const Fr=se,jr=(i,e)=>{const t=Fr(i.trim().replace(/^[=v]+/,""),e);return t?t.version:null};var Gr=jr;const ct=V,kr=(i,e,t,s,o)=>{typeof t=="string"&&(o=s,s=t,t=void 0);try{return new ct(i instanceof ct?i.version:i,t).inc(e,s,o).version}catch{return null}};var Wr=kr;const ht=se,Mr=(i,e)=>{const t=ht(i,null,!0),s=ht(e,null,!0),o=t.compare(s);if(o===0)return null;const f=o>0,u=f?t:s,w=f?s:t,l=!!u.prerelease.length;if(!!w.prerelease.length&&!l)return!w.patch&&!w.minor?"major":u.patch?"patch":u.minor?"minor":"major";const m=l?"pre":"";return t.major!==s.major?m+"major":t.minor!==s.minor?m+"minor":t.patch!==s.patch?m+"patch":"prerelease"};var Vr=Mr;const Ur=V,Xr=(i,e)=>new Ur(i,e).major;var Hr=Xr;const Br=V,qr=(i,e)=>new Br(i,e).minor;var zr=qr;const Yr=V,Kr=(i,e)=>new Yr(i,e).patch;var Zr=Kr;const Jr=se,Qr=(i,e)=>{const t=Jr(i,e);return t&&t.prerelease.length?t.prerelease:null};var en=Qr;const ft=V,tn=(i,e,t)=>new ft(i,t).compare(new ft(e,t));var Y=tn;const rn=Y,nn=(i,e,t)=>rn(e,i,t);var sn=nn;const on=Y,an=(i,e)=>on(i,e,!0);var ln=an;const ut=V,cn=(i,e,t)=>{const s=new ut(i,t),o=new ut(e,t);return s.compare(o)||s.compareBuild(o)};var Fe=cn;const hn=Fe,fn=(i,e)=>i.sort((t,s)=>hn(t,s,e));var un=fn;const dn=Fe,pn=(i,e)=>i.sort((t,s)=>dn(s,t,e));var mn=pn;const En=Y,wn=(i,e,t)=>En(i,e,t)>0;var ge=wn;const gn=Y,vn=(i,e,t)=>gn(i,e,t)<0;var je=vn;const $n=Y,Rn=(i,e,t)=>$n(i,e,t)===0;var xt=Rn;const In=Y,yn=(i,e,t)=>In(i,e,t)!==0;var bt=yn;const Ln=Y,Tn=(i,e,t)=>Ln(i,e,t)>=0;var Ge=Tn;const Sn=Y,Nn=(i,e,t)=>Sn(i,e,t)<=0;var ke=Nn;const An=xt,On=bt,Cn=ge,_n=Ge,Pn=je,xn=ke,bn=(i,e,t,s)=>{switch(e){case"===":return typeof i=="object"&&(i=i.version),typeof t=="object"&&(t=t.version),i===t;case"!==":return typeof i=="object"&&(i=i.version),typeof t=="object"&&(t=t.version),i!==t;case"":case"=":case"==":return An(i,t,s);case"!=":return On(i,t,s);case">":return Cn(i,t,s);case">=":return _n(i,t,s);case"<":return Pn(i,t,s);case"<=":return xn(i,t,s);default:throw new TypeError(`Invalid operator: ${e}`)}};var Dt=bn;const Dn=V,Fn=se,{safeRe:pe,t:me}=oe,jn=(i,e)=>{if(i instanceof Dn)return i;if(typeof i=="number"&&(i=String(i)),typeof i!="string")return null;e=e||{};let t=null;if(!e.rtl)t=i.match(e.includePrerelease?pe[me.COERCEFULL]:pe[me.COERCE]);else{const l=e.includePrerelease?pe[me.COERCERTLFULL]:pe[me.COERCERTL];let c;for(;(c=l.exec(i))&&(!t||t.index+t[0].length!==i.length);)(!t||c.index+c[0].length!==t.index+t[0].length)&&(t=c),l.lastIndex=c.index+c[1].length+c[2].length;l.lastIndex=-1}if(t===null)return null;const s=t[2],o=t[3]||"0",f=t[4]||"0",u=e.includePrerelease&&t[5]?`-${t[5]}`:"",w=e.includePrerelease&&t[6]?`+${t[6]}`:"";return Fn(`${s}.${o}.${f}${u}${w}`,e)};var Gn=jn;class kn{constructor(){this.max=1e3,this.map=new Map}get(e){const t=this.map.get(e);if(t!==void 0)return this.map.delete(e),this.map.set(e,t),t}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&t!==void 0){if(this.map.size>=this.max){const o=this.map.keys().next().value;this.delete(o)}this.map.set(e,t)}return this}}var Wn=kn,Oe,dt;function K(){if(dt)return Oe;dt=1;const i=/\s+/g;class e{constructor(p,y){if(y=o(y),p instanceof e)return p.loose===!!y.loose&&p.includePrerelease===!!y.includePrerelease?p:new e(p.raw,y);if(p instanceof f)return this.raw=p.value,this.set=[[p]],this.formatted=void 0,this;if(this.options=y,this.loose=!!y.loose,this.includePrerelease=!!y.includePrerelease,this.raw=p.trim().replace(i," "),this.set=this.raw.split("||").map(g=>this.parseRange(g.trim())).filter(g=>g.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const g=this.set[0];if(this.set=this.set.filter(L=>!B(L[0])),this.set.length===0)this.set=[g];else if(this.set.length>1){for(const L of this.set)if(L.length===1&&U(L[0])){this.set=[L];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let p=0;p0&&(this.formatted+="||");const y=this.set[p];for(let g=0;g0&&(this.formatted+=" "),this.formatted+=y[g].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(p){const g=((this.options.includePrerelease&&I)|(this.options.loose&&T))+":"+p,L=s.get(g);if(L)return L;const $=this.options.loose,N=$?l[c.HYPHENRANGELOOSE]:l[c.HYPHENRANGE];p=p.replace(N,ce(this.options.includePrerelease)),u("hyphen replace",p),p=p.replace(l[c.COMPARATORTRIM],m),u("comparator trim",p),p=p.replace(l[c.TILDETRIM],v),u("tilde trim",p),p=p.replace(l[c.CARETTRIM],O),u("caret trim",p);let C=p.split(" ").map(D=>te(D,this.options)).join(" ").split(/\s+/).map(D=>Le(D,this.options));$&&(C=C.filter(D=>(u("loose invalid filter",D,this.options),!!D.match(l[c.COMPARATORLOOSE])))),u("range list",C);const A=new Map,x=C.map(D=>new f(D,this.options));for(const D of x){if(B(D))return[D];A.set(D.value,D)}A.size>1&&A.has("")&&A.delete("");const G=[...A.values()];return s.set(g,G),G}intersects(p,y){if(!(p instanceof e))throw new TypeError("a Range is required");return this.set.some(g=>q(g,y)&&p.set.some(L=>q(L,y)&&g.every($=>L.every(N=>$.intersects(N,y)))))}test(p){if(!p)return!1;if(typeof p=="string")try{p=new w(p,this.options)}catch{return!1}for(let y=0;yE.value==="<0.0.0-0",U=E=>E.value==="",q=(E,p)=>{let y=!0;const g=E.slice();let L=g.pop();for(;y&&g.length;)y=g.every($=>L.intersects($,p)),L=g.pop();return y},te=(E,p)=>(u("comp",E,p),E=ae(E,p),u("caret",E),E=H(E,p),u("tildes",E),E=le(E,p),u("xrange",E),E=ye(E,p),u("stars",E),E),b=E=>!E||E.toLowerCase()==="x"||E==="*",H=(E,p)=>E.trim().split(/\s+/).map(y=>Re(y,p)).join(" "),Re=(E,p)=>{const y=p.loose?l[c.TILDELOOSE]:l[c.TILDE];return E.replace(y,(g,L,$,N,C)=>{u("tilde",E,g,L,$,N,C);let A;return b(L)?A="":b($)?A=`>=${L}.0.0 <${+L+1}.0.0-0`:b(N)?A=`>=${L}.${$}.0 <${L}.${+$+1}.0-0`:C?(u("replaceTilde pr",C),A=`>=${L}.${$}.${N}-${C} <${L}.${+$+1}.0-0`):A=`>=${L}.${$}.${N} <${L}.${+$+1}.0-0`,u("tilde return",A),A})},ae=(E,p)=>E.trim().split(/\s+/).map(y=>X(y,p)).join(" "),X=(E,p)=>{u("caret",E,p);const y=p.loose?l[c.CARETLOOSE]:l[c.CARET],g=p.includePrerelease?"-0":"";return E.replace(y,(L,$,N,C,A)=>{u("caret",E,L,$,N,C,A);let x;return b($)?x="":b(N)?x=`>=${$}.0.0${g} <${+$+1}.0.0-0`:b(C)?$==="0"?x=`>=${$}.${N}.0${g} <${$}.${+N+1}.0-0`:x=`>=${$}.${N}.0${g} <${+$+1}.0.0-0`:A?(u("replaceCaret pr",A),$==="0"?N==="0"?x=`>=${$}.${N}.${C}-${A} <${$}.${N}.${+C+1}-0`:x=`>=${$}.${N}.${C}-${A} <${$}.${+N+1}.0-0`:x=`>=${$}.${N}.${C}-${A} <${+$+1}.0.0-0`):(u("no pr"),$==="0"?N==="0"?x=`>=${$}.${N}.${C}${g} <${$}.${N}.${+C+1}-0`:x=`>=${$}.${N}.${C}${g} <${$}.${+N+1}.0-0`:x=`>=${$}.${N}.${C} <${+$+1}.0.0-0`),u("caret return",x),x})},le=(E,p)=>(u("replaceXRanges",E,p),E.split(/\s+/).map(y=>Ie(y,p)).join(" ")),Ie=(E,p)=>{E=E.trim();const y=p.loose?l[c.XRANGELOOSE]:l[c.XRANGE];return E.replace(y,(g,L,$,N,C,A)=>{u("xRange",E,g,L,$,N,C,A);const x=b($),G=x||b(N),D=G||b(C),ee=D;return L==="="&&ee&&(L=""),A=p.includePrerelease?"-0":"",x?L===">"||L==="<"?g="<0.0.0-0":g="*":L&&ee?(G&&(N=0),C=0,L===">"?(L=">=",G?($=+$+1,N=0,C=0):(N=+N+1,C=0)):L==="<="&&(L="<",G?$=+$+1:N=+N+1),L==="<"&&(A="-0"),g=`${L+$}.${N}.${C}${A}`):G?g=`>=${$}.0.0${A} <${+$+1}.0.0-0`:D&&(g=`>=${$}.${N}.0${A} <${$}.${+N+1}.0-0`),u("xRange return",g),g})},ye=(E,p)=>(u("replaceStars",E,p),E.trim().replace(l[c.STAR],"")),Le=(E,p)=>(u("replaceGTE0",E,p),E.trim().replace(l[p.includePrerelease?c.GTE0PRE:c.GTE0],"")),ce=E=>(p,y,g,L,$,N,C,A,x,G,D,ee)=>(b(g)?y="":b(L)?y=`>=${g}.0.0${E?"-0":""}`:b($)?y=`>=${g}.${L}.0${E?"-0":""}`:N?y=`>=${y}`:y=`>=${y}${E?"-0":""}`,b(x)?A="":b(G)?A=`<${+x+1}.0.0-0`:b(D)?A=`<${x}.${+G+1}.0-0`:ee?A=`<=${x}.${G}.${D}-${ee}`:E?A=`<${x}.${G}.${+D+1}-0`:A=`<=${A}`,`${y} ${A}`.trim()),J=(E,p,y)=>{for(let g=0;g0){const L=E[g].semver;if(L.major===p.major&&L.minor===p.minor&&L.patch===p.patch)return!0}return!1}return!0};return Oe}var Ce,pt;function ve(){if(pt)return Ce;pt=1;const i=Symbol("SemVer ANY");class e{static get ANY(){return i}constructor(m,v){if(v=t(v),m instanceof e){if(m.loose===!!v.loose)return m;m=m.value}m=m.trim().split(/\s+/).join(" "),u("comparator",m,v),this.options=v,this.loose=!!v.loose,this.parse(m),this.semver===i?this.value="":this.value=this.operator+this.semver.version,u("comp",this)}parse(m){const v=this.options.loose?s[o.COMPARATORLOOSE]:s[o.COMPARATOR],O=m.match(v);if(!O)throw new TypeError(`Invalid comparator: ${m}`);this.operator=O[1]!==void 0?O[1]:"",this.operator==="="&&(this.operator=""),O[2]?this.semver=new w(O[2],this.options.loose):this.semver=i}toString(){return this.value}test(m){if(u("Comparator.test",m,this.options.loose),this.semver===i||m===i)return!0;if(typeof m=="string")try{m=new w(m,this.options)}catch{return!1}return f(m,this.operator,this.semver,this.options)}intersects(m,v){if(!(m instanceof e))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new l(m.value,v).test(this.value):m.operator===""?m.value===""?!0:new l(this.value,v).test(m.semver):(v=t(v),v.includePrerelease&&(this.value==="<0.0.0-0"||m.value==="<0.0.0-0")||!v.includePrerelease&&(this.value.startsWith("<0.0.0")||m.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&m.operator.startsWith(">")||this.operator.startsWith("<")&&m.operator.startsWith("<")||this.semver.version===m.semver.version&&this.operator.includes("=")&&m.operator.includes("=")||f(this.semver,"<",m.semver,v)&&this.operator.startsWith(">")&&m.operator.startsWith("<")||f(this.semver,">",m.semver,v)&&this.operator.startsWith("<")&&m.operator.startsWith(">")))}}Ce=e;const t=De,{safeRe:s,t:o}=oe,f=Dt,u=we,w=V,l=K();return Ce}const Mn=K(),Vn=(i,e,t)=>{try{e=new Mn(e,t)}catch{return!1}return e.test(i)};var $e=Vn;const Un=K(),Xn=(i,e)=>new Un(i,e).set.map(t=>t.map(s=>s.value).join(" ").trim().split(" "));var Hn=Xn;const Bn=V,qn=K(),zn=(i,e,t)=>{let s=null,o=null,f=null;try{f=new qn(e,t)}catch{return null}return i.forEach(u=>{f.test(u)&&(!s||o.compare(u)===-1)&&(s=u,o=new Bn(s,t))}),s};var Yn=zn;const Kn=V,Zn=K(),Jn=(i,e,t)=>{let s=null,o=null,f=null;try{f=new Zn(e,t)}catch{return null}return i.forEach(u=>{f.test(u)&&(!s||o.compare(u)===1)&&(s=u,o=new Kn(s,t))}),s};var Qn=Jn;const _e=V,es=K(),mt=ge,ts=(i,e)=>{i=new es(i,e);let t=new _e("0.0.0");if(i.test(t)||(t=new _e("0.0.0-0"),i.test(t)))return t;t=null;for(let s=0;s{const w=new _e(u.semver.version);switch(u.operator){case">":w.prerelease.length===0?w.patch++:w.prerelease.push(0),w.raw=w.format();case"":case">=":(!f||mt(w,f))&&(f=w);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${u.operator}`)}}),f&&(!t||mt(t,f))&&(t=f)}return t&&i.test(t)?t:null};var rs=ts;const ns=K(),ss=(i,e)=>{try{return new ns(i,e).range||"*"}catch{return null}};var is=ss;const os=V,Ft=ve(),{ANY:as}=Ft,ls=K(),cs=$e,Et=ge,wt=je,hs=ke,fs=Ge,us=(i,e,t,s)=>{i=new os(i,s),e=new ls(e,s);let o,f,u,w,l;switch(t){case">":o=Et,f=hs,u=wt,w=">",l=">=";break;case"<":o=wt,f=fs,u=Et,w="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(cs(i,e,s))return!1;for(let c=0;c{I.semver===as&&(I=new Ft(">=0.0.0")),v=v||I,O=O||I,o(I.semver,v.semver,s)?v=I:u(I.semver,O.semver,s)&&(O=I)}),v.operator===w||v.operator===l||(!O.operator||O.operator===w)&&f(i,O.semver))return!1;if(O.operator===l&&u(i,O.semver))return!1}return!0};var We=us;const ds=We,ps=(i,e,t)=>ds(i,e,">",t);var ms=ps;const Es=We,ws=(i,e,t)=>Es(i,e,"<",t);var gs=ws;const gt=K(),vs=(i,e,t)=>(i=new gt(i,t),e=new gt(e,t),i.intersects(e,t));var $s=vs;const Rs=$e,Is=Y;var ys=(i,e,t)=>{const s=[];let o=null,f=null;const u=i.sort((m,v)=>Is(m,v,t));for(const m of u)Rs(m,e,t)?(f=m,o||(o=m)):(f&&s.push([o,f]),f=null,o=null);o&&s.push([o,null]);const w=[];for(const[m,v]of s)m===v?w.push(m):!v&&m===u[0]?w.push("*"):v?m===u[0]?w.push(`<=${v}`):w.push(`${m} - ${v}`):w.push(`>=${m}`);const l=w.join(" || "),c=typeof e.raw=="string"?e.raw:String(e);return l.length{if(i===e)return!0;i=new vt(i,t),e=new vt(e,t);let s=!1;e:for(const o of i.set){for(const f of e.set){const u=Ss(o,f,t);if(s=s||u!==null,u)continue e}if(s)return!1}return!0},Ts=[new Me(">=0.0.0-0")],$t=[new Me(">=0.0.0")],Ss=(i,e,t)=>{if(i===e)return!0;if(i.length===1&&i[0].semver===Pe){if(e.length===1&&e[0].semver===Pe)return!0;t.includePrerelease?i=Ts:i=$t}if(e.length===1&&e[0].semver===Pe){if(t.includePrerelease)return!0;e=$t}const s=new Set;let o,f;for(const I of i)I.operator===">"||I.operator===">="?o=Rt(o,I,t):I.operator==="<"||I.operator==="<="?f=It(f,I,t):s.add(I.semver);if(s.size>1)return null;let u;if(o&&f){if(u=Ve(o.semver,f.semver,t),u>0)return null;if(u===0&&(o.operator!==">="||f.operator!=="<="))return null}for(const I of s){if(o&&!ie(I,String(o),t)||f&&!ie(I,String(f),t))return null;for(const T of e)if(!ie(I,String(T),t))return!1;return!0}let w,l,c,m,v=f&&!t.includePrerelease&&f.semver.prerelease.length?f.semver:!1,O=o&&!t.includePrerelease&&o.semver.prerelease.length?o.semver:!1;v&&v.prerelease.length===1&&f.operator==="<"&&v.prerelease[0]===0&&(v=!1);for(const I of e){if(m=m||I.operator===">"||I.operator===">=",c=c||I.operator==="<"||I.operator==="<=",o){if(O&&I.semver.prerelease&&I.semver.prerelease.length&&I.semver.major===O.major&&I.semver.minor===O.minor&&I.semver.patch===O.patch&&(O=!1),I.operator===">"||I.operator===">="){if(w=Rt(o,I,t),w===I&&w!==o)return!1}else if(o.operator===">="&&!ie(o.semver,String(I),t))return!1}if(f){if(v&&I.semver.prerelease&&I.semver.prerelease.length&&I.semver.major===v.major&&I.semver.minor===v.minor&&I.semver.patch===v.patch&&(v=!1),I.operator==="<"||I.operator==="<="){if(l=It(f,I,t),l===I&&l!==f)return!1}else if(f.operator==="<="&&!ie(f.semver,String(I),t))return!1}if(!I.operator&&(f||o)&&u!==0)return!1}return!(o&&c&&!f&&u!==0||f&&m&&!o&&u!==0||O||v)},Rt=(i,e,t)=>{if(!i)return e;const s=Ve(i.semver,e.semver,t);return s>0?i:s<0||e.operator===">"&&i.operator===">="?e:i},It=(i,e,t)=>{if(!i)return e;const s=Ve(i.semver,e.semver,t);return s<0?i:s>0||e.operator==="<"&&i.operator==="<="?e:i};var Ns=Ls;const xe=oe,yt=Ee,As=V,Lt=Pt,Os=se,Cs=Dr,_s=Gr,Ps=Wr,xs=Vr,bs=Hr,Ds=zr,Fs=Zr,js=en,Gs=Y,ks=sn,Ws=ln,Ms=Fe,Vs=un,Us=mn,Xs=ge,Hs=je,Bs=xt,qs=bt,zs=Ge,Ys=ke,Ks=Dt,Zs=Gn,Js=ve(),Qs=K(),ei=$e,ti=Hn,ri=Yn,ni=Qn,si=rs,ii=is,oi=We,ai=ms,li=gs,ci=$s,hi=ys,fi=Ns;var ui={parse:Os,valid:Cs,clean:_s,inc:Ps,diff:xs,major:bs,minor:Ds,patch:Fs,prerelease:js,compare:Gs,rcompare:ks,compareLoose:Ws,compareBuild:Ms,sort:Vs,rsort:Us,gt:Xs,lt:Hs,eq:Bs,neq:qs,gte:zs,lte:Ys,cmp:Ks,coerce:Zs,Comparator:Js,Range:Qs,satisfies:ei,toComparators:ti,maxSatisfying:ri,minSatisfying:ni,minVersion:si,validRange:ii,outside:oi,gtr:ai,ltr:li,intersects:ci,simplifyRange:hi,subset:fi,SemVer:As,re:xe.re,src:xe.src,tokens:xe.t,SEMVER_SPEC_VERSION:yt.SEMVER_SPEC_VERSION,RELEASE_TYPES:yt.RELEASE_TYPES,compareIdentifiers:Lt.compareIdentifiers,rcompareIdentifiers:Lt.rcompareIdentifiers};const Tt=At(ui);function di(i={}){const{immediate:e=!1,onNeedRefresh:t,onOfflineReady:s,onRegistered:o,onRegisteredSW:f,onRegisterError:u}=i;let w,l;const c=async(v=!0)=>{await l};async function m(){if("serviceWorker"in navigator){const{Workbox:v}=await Zt(()=>import("./workbox-window.prod.es5-c46a1faa.js"),[]);w=new v("/smeditor/sw.js",{scope:"/smeditor/",type:"classic"}),w.addEventListener("activated",O=>{(O.isUpdate||O.isExternal)&&window.location.reload()}),w.addEventListener("installed",O=>{O.isUpdate||s?.()}),w.register({immediate:e}).then(O=>{f?f("/smeditor/sw.js",O):o?.(O)}).catch(O=>{u?.(O)})}}return l=m(),c}var jt={exports:{}};(function(i){(function(){function e(r,n,h){return r.call.apply(r.bind,arguments)}function t(r,n,h){if(!r)throw Error();if(2=n.f?_():r.fonts.load(Re(n.a),n.h).then(function(F){1<=F.length?S():setTimeout(P,25)},function(){_()})}P()}),d=null,R=new Promise(function(S,_){d=setTimeout(_,n.f)});Promise.race([R,a]).then(function(){d&&(clearTimeout(d),d=null),n.g(n.a)},function(){n.j(n.a)})};function N(r,n,h,a,d,R,S){this.v=r,this.B=n,this.c=h,this.a=a,this.s=S||"BESbswy",this.f={},this.w=d||3e3,this.u=R||null,this.m=this.j=this.h=this.g=null,this.g=new y(this.c,this.s),this.h=new y(this.c,this.s),this.j=new y(this.c,this.s),this.m=new y(this.c,this.s),r=new H(this.a.c+",serif",X(this.a)),r=L(r),this.g.a.style.cssText=r,r=new H(this.a.c+",sans-serif",X(this.a)),r=L(r),this.h.a.style.cssText=r,r=new H("serif",X(this.a)),r=L(r),this.j.a.style.cssText=r,r=new H("sans-serif",X(this.a)),r=L(r),this.m.a.style.cssText=r,g(this.g),g(this.h),g(this.j),g(this.m)}var C={D:"serif",C:"sans-serif"},A=null;function x(){if(A===null){var r=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);A=!!r&&(536>parseInt(r[1],10)||parseInt(r[1],10)===536&&11>=parseInt(r[2],10))}return A}N.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=o(),D(this)};function G(r,n,h){for(var a in C)if(C.hasOwnProperty(a)&&n===r.f[C[a]]&&h===r.f[C[a]])return!0;return!1}function D(r){var n=r.g.a.offsetWidth,h=r.h.a.offsetWidth,a;(a=n===r.f.serif&&h===r.f["sans-serif"])||(a=x()&&G(r,n,h)),a?o()-r.A>=r.w?x()&&G(r,n,h)&&(r.u===null||r.u.hasOwnProperty(r.a.c))?Te(r,r.v):Te(r,r.B):ee(r):Te(r,r.v)}function ee(r){setTimeout(s(function(){D(this)},r),50)}function Te(r,n){setTimeout(s(function(){c(this.g.a),c(this.h.a),c(this.j.a),c(this.m.a),n(this.a)},r),0)}function Se(r,n,h){this.c=r,this.a=n,this.f=0,this.m=this.j=!1,this.s=h}var he=null;Se.prototype.g=function(r){var n=this.a;n.g&&m(n.f,[n.a.c("wf",r.c,X(r).toString(),"active")],[n.a.c("wf",r.c,X(r).toString(),"loading"),n.a.c("wf",r.c,X(r).toString(),"inactive")]),J(n,"fontactive",r),this.m=!0,Ue(this)},Se.prototype.h=function(r){var n=this.a;if(n.g){var h=v(n.f,n.a.c("wf",r.c,X(r).toString(),"active")),a=[],d=[n.a.c("wf",r.c,X(r).toString(),"loading")];h||a.push(n.a.c("wf",r.c,X(r).toString(),"inactive")),m(n.f,a,d)}J(n,"fontinactive",r),Ue(this)};function Ue(r){--r.f==0&&r.j&&(r.m?(r=r.a,r.g&&m(r.f,[r.a.c("wf","active")],[r.a.c("wf","loading"),r.a.c("wf","inactive")]),J(r,"active")):ce(r.a))}function Xe(r){this.j=r,this.a=new E,this.h=0,this.f=this.g=!0}Xe.prototype.load=function(r){this.c=new f(this.j,r.context||this.j),this.g=r.events!==!1,this.f=r.classes!==!1,kt(this,new ye(this.c,r),r)};function Gt(r,n,h,a,d){var R=--r.h==0;(r.f||r.g)&&setTimeout(function(){var S=d||null,_=a||null||{};if(h.length===0&&R)ce(n.a);else{n.f+=h.length,R&&(n.j=R);var P,F=[];for(P=0;Pthis.createElement(o));t.replaceChildren(...s)}createElement(e){if(e.type=="separator"){const t=document.createElement("div");return t.classList.add("separator"),t}if(e.type=="selection"||e.type=="checkbox"||e.type=="dropdown"){const t=document.createElement("div"),s=document.createElement("div"),o=document.createElement("div");let f;if(e.type=="selection"||e.type=="checkbox"){const u=Qt[e.id]??{label:e.id,combos:[],callback:()=>{}};f=document.createElement("div"),f.innerText=Ot.getKeybindString(e.id),f.classList.add("keybind","unselectable"),o.innerText=u.label;let w=u.disabled;typeof w=="function"&&(w=w(this.app)),w&&t.classList.add("disabled"),t.addEventListener("click",()=>{if(w)return;u.callback(this.app),t.closest(".menu-main").querySelector(".menubar-dropdown").replaceChildren()})}else f=er.getIcon("CHEVRON",16),f.style.transform="rotate(-90deg)",o.innerText=typeof e.title=="function"?e.title(this.app):e.title;if(s.appendChild(o),s.appendChild(f),t.appendChild(s),t.classList.add("menu-item"),s.classList.add("menu-item-title","menu-hover"),o.classList.add("title","unselectable"),e.type=="dropdown"){const u=document.createElement("div");t.appendChild(u),u.classList.add("menubar-dropdown"),e.options.map(w=>this.createElement(w)).forEach(w=>u.appendChild(w))}if(e.type=="checkbox"){let u=e.checked;typeof u=="function"&&(u=u(this.app)),u&&(o.innerText="✓ "+o.innerText)}return t}if(e.type=="menu"){const t=document.createElement("div"),s=document.createElement("div"),o=document.createElement("div");return t.appendChild(s),s.innerText=e.title,t.appendChild(o),s.classList.add("title","unselectable"),t.classList.add("menu-item","menu-main"),s.classList.add("menu-hover"),o.classList.add("menubar-dropdown","unselectable"),t.onmouseenter=()=>{o.replaceChildren(...e.options.map(f=>this.createElement(f)))},t.onmouseleave=()=>{o.replaceChildren()},t}return document.createElement("div")}}class wi{view;windows=[];app;constructor(e,t){this.app=e,this.view=t}unfocusAll(){for(const e of this.view.querySelectorAll(".focused"))e.classList.remove("focused")}getFocusedWindow(){for(const e of this.windows)if(e.windowElement.classList.contains("focused"))return e;return null}isBlocked(){return!this.windows.every(e=>!e.options.blocking)}openWindow(e){if(e.options.win_id){const t=this.getWindowById(e.options.win_id);if(t){t.focus();return}}e.addToManager(this),this.windows.push(e)}removeWindow(e){this.windows.splice(this.windows.indexOf(e),1)}getWindowById(e){for(const t of this.windows)if(t.options.win_id==e)return t}}const St="1.1.0";class gi{options=k;events=Ne;themes=Ae;renderer;ticker;stage;view;chartManager;windowManager;menubarManager;actionHistory;lastWidth=window.innerWidth;lastHeight=window.innerHeight;constructor(){if(nr.setDefaultProps({duration:[200,100],theme:"sm"}),k.loadOptions(),sr(),Ot.load(this),window.nw){const e=nw.Window.get();k.app.fullscreen?e.enterFullscreen():e.resizeTo(k.app.width,k.app.height)}if(setInterval(()=>k.saveOptions(),1e4),k.general.smoothAnimations&&document.body.classList.add("animated"),this.registerFonts(),this.view=document.getElementById("pixi"),document.oncontextmenu=e=>{e.preventDefault(),this.chartManager.loadedChart&&e.target==this.view&&Je.open(this,e)},this.view.onmousedown=()=>{Je.close()},this.stage=new ir,this.stage.sortableChildren=!0,this.renderer=new or({backgroundColor:1579292,antialias:k.performance.antialiasing,width:this.view.clientWidth,height:this.view.clientHeight,resolution:k.performance.resolution,autoDensity:!0,view:this.view,powerPreference:"low-power"}),this.ticker=new ar,this.ticker.maxFPS=0,this.ticker.add(()=>{const e=performance.now();this.renderer.render(this.stage),Qe.instance?.addFrameTimeValue(performance.now()-e),performance.memory?.usedJSHeapSize&&Qe.instance?.addMemoryTimeValue(performance.memory.usedJSHeapSize),vr()},lr.LOW),this.ticker.start(),cr.init(this.renderer),this.chartManager=new hr(this),this.menubarManager=new Ei(this,document.getElementById("menubar")),this.windowManager=new wi(this,document.getElementById("windows")),this.actionHistory=new et(this),this.registerListeners(),!W.hidePoweredByText&&fr()){const e=document.getElementById("embed");e.appendChild(document.createTextNode("Powered by "));const t=document.createElement("a");if(t.href="https://tillvit.github.io/smeditor/",t.innerText="SMEditor",t.target="_blank",e.appendChild(t),W.url!=null){e.appendChild(document.createTextNode(" | Open this chart in a "));const s=document.createElement("a"),o=new URL(location.origin+"/smeditor/app/");s.innerText="new tab",s.target="_blank",o.searchParams.append("url",W.url),W.chartType!==null&&o.searchParams.append("chartType",W.chartType),W.chartIndex!==null&&o.searchParams.append("chartIndex",W.chartIndex+""),s.href=o.toString(),e.appendChild(s)}}tt.initFileSystem().then(()=>{if(W.url){this.chartManager.loadSM(W.url).then(()=>{const e=this.chartManager.loadedSM;if(!e)return;let t;if(W.chartType!=null&&(t=e.charts[W.chartType],t===void 0)){nt.createFormatted(`Couldn't find chart with type ${W.chartType}`,"warn");return}if(t===void 0){const o=Object.keys(e.charts);if(o.length==0||(t=e.charts[o[0]],t.length==0))return}let s;if(W.chartIndex!=null&&(s=t.at(W.chartIndex),s===void 0)){nt.createFormatted(`Couldn't find chart with index ${W.chartIndex}`,"warn");return}s===void 0&&(s=t.at(-1),!s)||this.chartManager.loadChart(s)});return}if(this.windowManager.openWindow(new ur(this)),window.nw){const e=nw.Window.get();nw.App.on("open",t=>{if(!t||t?.length===0){nw.Window.open(window.location.href);return}let s="";for(let o of t)if(o.startsWith("file://")&&(o=o.substring(7)),fe(o)==".ssc"){s=o;break}else s==""&&fe(o)==".sm"&&(s=o);s!=""&&(this.chartManager.loadSM(s),this.windowManager.getWindowById("select_sm_initial")?.closeWindow())}),window.addEventListener("keydown",t=>{t.key=="r"&&(t.metaKey||t.ctrlKey)&&(t.preventDefault(),e.reload()),t.code=="KeyW"&&(t.metaKey||t.ctrlKey)&&(t.preventDefault(),e.close()),process.versions["nw-flavor"]=="sdk"&&t.code=="KeyI"&&t.metaKey&&t.altKey&&(t.preventDefault(),e.showDevTools())}),e.on("enter-fullscreen",()=>{k.app.fullscreen=e.isFullscreen}),e.on("resize",(t,s)=>{e.isFullscreen||(k.app.width=t,k.app.height=s)}),e.on("restore",()=>{k.app.fullscreen=e.isFullscreen}),this.checkAppVersion()}this.checkCoreVersion()}),window.onbeforeunload=e=>{if(et.instance.isDirty()&&k.general.warnBeforeExit)return e.preventDefault(),e.returnValue="Are you sure you want to exit?"},window.onpagehide=()=>{k.saveOptions()},Ae.loadTheme(k.general.theme)}registerFonts(){rt.from("Main",{fontFamily:"Assistant",fontSize:20,fill:"white"},{chars:[["a","z"],["A","Z"],"!@#$%^&*()~{}[]:.-?=,_","0123456789/"," "],resolution:window.devicePixelRatio}),rt.from("Fancy",{fontFamily:"Assistant",fontSize:40,fontWeight:"700",fill:["#dddddd","#ffffff"],fillGradientType:dr.LINEAR_VERTICAL,stroke:11184810,strokeThickness:3},{chars:[["a","z"],["A","Z"],"!@#$%^&*()~{}[]:.-?=,_","0123456789/"," "],resolution:window.devicePixelRatio})}registerListeners(){this.view.addEventListener("mousedown",()=>{this.windowManager.unfocusAll()}),Ne.on("themeChanged",()=>{this.renderer.background.color=new pr(Ae.getCurrentTheme()["editor-bg"]).toNumber()}),window.addEventListener("keydown",function(e){e.code=="Enter"&&e.target instanceof HTMLButtonElement&&e.preventDefault()}),window.addEventListener("dragstart",function(e){e.target instanceof HTMLImageElement&&e.preventDefault()}),setInterval(()=>{const e=window.innerWidth,t=window.innerHeight-document.getElementById("menubar").clientHeight-document.getElementById("playback-options").clientHeight;(this.lastHeight!=t||this.lastWidth!=e)&&(this.lastHeight=t,this.lastWidth=e,this.onResize(e,t),Ne.emit("resize"))},100),window.addEventListener("dragover",e=>{e.preventDefault(),e.dataTransfer.dropEffect="copy"}),window.addEventListener("drop",e=>{if(window.nw){e.stopPropagation(),e.preventDefault();let t="";for(const s of e.dataTransfer.files)if(s.path)if(fe(s.path)==".ssc"){t=s.path;break}else t==""&&fe(s.path)==".sm"&&(t=s.path);t!=""&&(this.chartManager.loadSM(t),this.windowManager.getWindowById("select_sm_initial")?.closeWindow())}else tt.handleDropEvent(e).then(t=>{const s=new mr(this,{title:"Select an sm/ssc file...",accepted_file_types:[".sm",".ssc"],disableClose:!0,callback:o=>{this.chartManager.loadSM(o),this.windowManager.getWindowById("select_sm_initial")?.closeWindow()},onload:()=>{s.getAcceptableFile(t??"").then(o=>s.selectPath(o))}});this.windowManager.openWindow(s)})})}onResize(e,t){this.renderer.screen.width=e,this.renderer.screen.height=t,this.view.width=e*this.renderer.resolution,this.view.height=t*this.renderer.resolution,this.view.style.width=`${e}px`,this.view.style.height=`${t}px`}checkAppVersion(){if(!window.nw)return;const e=nw.require("nw.gui"),t={stable:3,beta:2,alpha:1,nightly:0};let s="win";process.platform=="darwin"?s=nw.require("os").arch()=="arm64"?"mac-arm":"mac-x64":process.platform=="linux"&&(s="linux"),fetch("/smeditor/assets/app/versions.json").then(o=>o.json()).then(o=>{o=o.sort((u,w)=>t[u.type]!=t[w.type]?t[w.type]-t[u.type]:w.date-u.date);const f=o[0];Tt.lt(e.App.manifest.version,f.version)&&localStorage.getItem("downloadedVersion")!==f.version&&Er.open(f.version,f.downloads[s])})}checkCoreVersion(){const e=di({});navigator.serviceWorker.addEventListener("controllerchange",()=>{wr.open(e),console.log("Found new version")});const t=localStorage.getItem("coreVersion");t!==null&&Tt.lt(t,St)&&this.windowManager.openWindow(new gr(this)),localStorage.setItem("coreVersion",St)}}document.querySelector("body").innerHTML=`
@@ -8,7 +8,7 @@ import{g as At,_ as Zt,F as W,M as Jt,K as Qt,a as Ot,I as er,G as tr,N as rr,O
- `;Ei.load({custom:{families:["Assistant"]},active:Nt,inactive:Nt,classes:!1});function Nt(){const i=document.createElement("canvas");i.getContext("webgl")||i.getContext("experimental-webgl")?(window.app=new vi,window.GameTypeRegistry=tr,window.NoteskinRegistry=rr):document.querySelector("body").innerHTML=`
+ `;mi.load({custom:{families:["Assistant"]},active:Nt,inactive:Nt,classes:!1});function Nt(){const i=document.createElement("canvas");i.getContext("webgl")||i.getContext("experimental-webgl")?(window.app=new gi,window.GameTypeRegistry=tr,window.NoteskinRegistry=rr):document.querySelector("body").innerHTML=`

WebGL is not enabled

Please visit your browser settings and enable WebGL.
diff --git a/app/index.html b/app/index.html index a419022..df4dbda 100644 --- a/app/index.html +++ b/app/index.html @@ -24,7 +24,7 @@ SMEditor - + diff --git a/downloader-42744bfb.js b/downloader-b5db5e8a.js similarity index 97% rename from downloader-42744bfb.js rename to downloader-b5db5e8a.js index 4fd4a09..695fe79 100644 --- a/downloader-42744bfb.js +++ b/downloader-b5db5e8a.js @@ -1 +1 @@ -import{_ as w,a8 as b}from"./ChartManager-d5d16ca9.js";const{GONE:v}=b,E=/constructor/i.test(window.HTMLElement)||window.safari||window.WebKitPoint;class j{constructor(e="unknown"){this.kind="file",this.writable=!0,this.name=e}async getFile(){throw new DOMException(...v)}async createWritable(e={}){var t;if(e.keepExistingData)throw new TypeError("Option keepExistingData is not implemented");const h=globalThis.TransformStream||(await w(()=>import("./web-streams-ponyfill-4a0f4950.js"),[])).TransformStream,p=globalThis.WritableStream||(await w(()=>import("./web-streams-ponyfill-4a0f4950.js"),[])).WritableStream,s=await((t=navigator.serviceWorker)===null||t===void 0?void 0:t.getRegistration()),o=document.createElement("a"),i=new h,u=i.writable;if(o.download=this.name,E||!s){let a=[];i.readable.pipeTo(new p({write(r){a.push(new Blob([r]))},close(){const r=new Blob(a,{type:"application/octet-stream; charset=utf-8"});a=[],o.href=URL.createObjectURL(r),o.click(),setTimeout(()=>URL.revokeObjectURL(o.href),1e4)}}))}else{const{writable:a,readablePort:r}=new k(p),n=encodeURIComponent(this.name).replace(/['()]/g,escape).replace(/\*/g,"%2A"),f={"content-disposition":"attachment; filename*=UTF-8''"+n,"content-type":"application/octet-stream; charset=utf-8",...e.size?{"content-length":e.size}:{}},g=setTimeout(()=>s.active.postMessage(0),1e4);i.readable.pipeThrough(new h({transform(l,_){if(l instanceof Uint8Array)return _.enqueue(l);const R=new Response(l).body.getReader(),m=W=>R.read().then(y=>y.done?0:m(_.enqueue(y.value)));return m()}})).pipeTo(a).finally(()=>{clearInterval(g)}),s.active.postMessage({url:s.scope+n,headers:f,readablePort:r},[r]);const c=document.createElement("iframe");c.hidden=!0,c.src=s.scope+n,document.body.appendChild(c)}return u.getWriter()}async isSameEntry(e){return this===e}}const P=0,T=0,M=1,S=1,L=2;class O{constructor(e){this._readyPending=!1,this._port=e,this._resetReady(),this._port.onmessage=t=>this._onMessage(t.data)}start(e){return this._controller=e,this._readyPromise}write(e){const t={type:P,chunk:e};return this._port.postMessage(t,[e.buffer]),this._resetReady(),this._readyPromise}close(){this._port.postMessage({type:L}),this._port.close()}abort(e){this._port.postMessage({type:S,reason:e}),this._port.close()}_onMessage(e){e.type===T&&this._resolveReady(),e.type===M&&this._onError(e.reason)}_onError(e){this._controller.error(e),this._rejectReady(e),this._port.close()}_resetReady(){this._readyPromise=new Promise((e,t)=>{this._readyResolve=e,this._readyReject=t}),this._readyPending=!0}_resolveReady(){this._readyResolve(),this._readyPending=!1}_rejectReady(e){this._readyPending||this._resetReady(),this._readyPromise.catch(()=>{}),this._readyReject(e),this._readyPending=!1}}class k{constructor(e){const t=new MessageChannel;this.readablePort=t.port1,this.writable=new e(new O(t.port2))}}export{j as FileHandle}; +import{_ as w,a7 as b}from"./ChartManager-47a72d67.js";const{GONE:v}=b,E=/constructor/i.test(window.HTMLElement)||window.safari||window.WebKitPoint;class j{constructor(e="unknown"){this.kind="file",this.writable=!0,this.name=e}async getFile(){throw new DOMException(...v)}async createWritable(e={}){var t;if(e.keepExistingData)throw new TypeError("Option keepExistingData is not implemented");const h=globalThis.TransformStream||(await w(()=>import("./web-streams-ponyfill-4a0f4950.js"),[])).TransformStream,p=globalThis.WritableStream||(await w(()=>import("./web-streams-ponyfill-4a0f4950.js"),[])).WritableStream,s=await((t=navigator.serviceWorker)===null||t===void 0?void 0:t.getRegistration()),o=document.createElement("a"),i=new h,u=i.writable;if(o.download=this.name,E||!s){let a=[];i.readable.pipeTo(new p({write(r){a.push(new Blob([r]))},close(){const r=new Blob(a,{type:"application/octet-stream; charset=utf-8"});a=[],o.href=URL.createObjectURL(r),o.click(),setTimeout(()=>URL.revokeObjectURL(o.href),1e4)}}))}else{const{writable:a,readablePort:r}=new k(p),n=encodeURIComponent(this.name).replace(/['()]/g,escape).replace(/\*/g,"%2A"),f={"content-disposition":"attachment; filename*=UTF-8''"+n,"content-type":"application/octet-stream; charset=utf-8",...e.size?{"content-length":e.size}:{}},g=setTimeout(()=>s.active.postMessage(0),1e4);i.readable.pipeThrough(new h({transform(l,_){if(l instanceof Uint8Array)return _.enqueue(l);const R=new Response(l).body.getReader(),m=W=>R.read().then(y=>y.done?0:m(_.enqueue(y.value)));return m()}})).pipeTo(a).finally(()=>{clearInterval(g)}),s.active.postMessage({url:s.scope+n,headers:f,readablePort:r},[r]);const c=document.createElement("iframe");c.hidden=!0,c.src=s.scope+n,document.body.appendChild(c)}return u.getWriter()}async isSameEntry(e){return this===e}}const P=0,T=0,M=1,S=1,L=2;class O{constructor(e){this._readyPending=!1,this._port=e,this._resetReady(),this._port.onmessage=t=>this._onMessage(t.data)}start(e){return this._controller=e,this._readyPromise}write(e){const t={type:P,chunk:e};return this._port.postMessage(t,[e.buffer]),this._resetReady(),this._readyPromise}close(){this._port.postMessage({type:L}),this._port.close()}abort(e){this._port.postMessage({type:S,reason:e}),this._port.close()}_onMessage(e){e.type===T&&this._resolveReady(),e.type===M&&this._onError(e.reason)}_onError(e){this._controller.error(e),this._rejectReady(e),this._port.close()}_resetReady(){this._readyPromise=new Promise((e,t)=>{this._readyResolve=e,this._readyReject=t}),this._readyPending=!0}_resolveReady(){this._readyResolve(),this._readyPending=!1}_rejectReady(e){this._readyPending||this._resetReady(),this._readyPromise.catch(()=>{}),this._readyReject(e),this._readyPending=!1}}class k{constructor(e){const t=new MessageChannel;this.readablePort=t.port1,this.writable=new e(new O(t.port2))}}export{j as FileHandle}; diff --git a/embed.js b/embed.js index acad255..aab599d 100644 --- a/embed.js +++ b/embed.js @@ -1 +1 @@ -import{t as I,u as T,v as E,S as P,G as R}from"./ChartManager-d5d16ca9.js";const u=new Set;document.addEventListener("DOMContentLoaded",()=>{const c=document.getElementById("output-url"),w=document.getElementById("output-iframe"),o=document.getElementById("sm-url"),b=document.getElementById("chart-container");let r=document.getElementById("loading-output");const f=document.getElementById("option-grid");let h,p,k="",d,m;I.setDefaultProps({duration:[200,100]}),I(c,{content:"Click to copy to clipboard",placement:"bottom"});function i(e,t){const n=r.cloneNode(!0);r.parentNode.replaceChild(n,r),r=n,r.innerText=e,t=="error"?r.style.color="rgba(222, 44, 44, 0.9)":r.style.color=""}function s(){const e=new URL(`${location.origin}/smeditor/app/`);p!==void 0&&e.searchParams.set("url",p),m!==void 0&&e.searchParams.set("chartType",m),d!==void 0&&e.searchParams.set("chartIndex",d+""),u.size>0&&e.searchParams.set("flags",[...u.values()].join("")),c.value=e.toString(),k!=e.toString()&&(w.src=e.toString()),k=e.toString()}s(),c.onclick=e=>{e.preventDefault(),c.blur(),navigator.clipboard.writeText(c.value),setTimeout(()=>c.select(),10)},c.onselect=e=>{e.preventDefault(),setTimeout(()=>c.select(),10)},c.ondblclick=e=>{e.preventDefault(),setTimeout(()=>c.select(),10)};let g;function L(){if(!o.checkValidity())return;p=void 0,s();const e=o.value;if(e===""){o.classList.remove("invalid","ok"),i("");return}o.classList.remove("invalid","ok"),i("Loading...");const t=new AbortController,n=setTimeout(()=>{o.classList.add("invalid"),t.abort(),i("Failed to load the specified URL!","error")},5e3);fetch(e,{signal:t.signal}).then(a=>{if(!a.ok){o.classList.add("invalid"),i("Failed to load the specified URL!","error");return}clearTimeout(n),a.text().then(async S=>{const B=new URL(e),D=new File([S],B.pathname.split("/").pop()??"song.sm");i("Loading charts...");const y=new P(D);await y.loaded,y.properties.TITLE===void 0&&i("Invalid file provided!","error"),h=y,p=e,d=void 0,m=void 0,i(""),s(),C()}),o.classList.add("ok")}).catch(()=>{o.classList.add("invalid"),i("Failed to load the specified URL!","error")})}o.onkeydown=e=>{o.classList.remove("invalid"),o.classList.remove("ok"),i(""),clearTimeout(g),g=setTimeout(()=>L(),1e3),(e.key=="Enter"||e.key=="Escape")&&o.blur()},o.onblur=()=>{o.checkValidity()&&(clearInterval(g),L())};const v=T.create([]);v.onChange(e=>{const t=e.split(" ")?.[0]??"dance-single",n=h?.charts[t]??[];l.setItems(n.map(a=>`${a.difficulty} ${a.meter}`)),l.setSelected(l.getItems().at(-1)),n.length!=0&&(console.log(n.length),t!="dance-single"?m=t:m=void 0,s())});const l=T.create([]);l.onChange((e,t)=>{d!=l.getItems().length-1?d=t:d=void 0,s()}),b.appendChild(v.view),b.appendChild(l.view);function C(){v.setItems(R.getPriority().map(t=>{const n=h.charts[t.id]??[];return t.id+" ("+n.length+")"}));const e=h?.charts["dance-single"]??[];l.setItems(e.map(t=>`${t.difficulty} ${t.meter}`)),l.setSelected(l.getItems().at(-1))}Object.entries(E).forEach(([e,t])=>{const n=document.createElement("label");n.classList.add("option");const a=document.createElement("input");a.type="checkbox",n.replaceChildren(a,document.createTextNode(t.name)),a.onchange=()=>{a.checked?u.add(t.char):u.delete(t.char),s()},f.appendChild(n)});const U=document.getElementById("enable-all");U.onclick=()=>{for(const e of f.children){const t=e.childNodes[0];t.checked=!0}for(const e of Object.values(E).map(t=>t.char))u.add(e);s()};const x=document.getElementById("disable-all");x.onclick=()=>{for(const e of f.children){const t=e.childNodes[0];t.checked=!1}u.clear(),s()}}); +import{t as I,s as T,u as E,S as P,G as R}from"./ChartManager-47a72d67.js";const u=new Set;document.addEventListener("DOMContentLoaded",()=>{const c=document.getElementById("output-url"),w=document.getElementById("output-iframe"),o=document.getElementById("sm-url"),b=document.getElementById("chart-container");let r=document.getElementById("loading-output");const f=document.getElementById("option-grid");let h,p,k="",d,m;I.setDefaultProps({duration:[200,100]}),I(c,{content:"Click to copy to clipboard",placement:"bottom"});function i(e,t){const n=r.cloneNode(!0);r.parentNode.replaceChild(n,r),r=n,r.innerText=e,t=="error"?r.style.color="rgba(222, 44, 44, 0.9)":r.style.color=""}function s(){const e=new URL(`${location.origin}/smeditor/app/`);p!==void 0&&e.searchParams.set("url",p),m!==void 0&&e.searchParams.set("chartType",m),d!==void 0&&e.searchParams.set("chartIndex",d+""),u.size>0&&e.searchParams.set("flags",[...u.values()].join("")),c.value=e.toString(),k!=e.toString()&&(w.src=e.toString()),k=e.toString()}s(),c.onclick=e=>{e.preventDefault(),c.blur(),navigator.clipboard.writeText(c.value),setTimeout(()=>c.select(),10)},c.onselect=e=>{e.preventDefault(),setTimeout(()=>c.select(),10)},c.ondblclick=e=>{e.preventDefault(),setTimeout(()=>c.select(),10)};let g;function L(){if(!o.checkValidity())return;p=void 0,s();const e=o.value;if(e===""){o.classList.remove("invalid","ok"),i("");return}o.classList.remove("invalid","ok"),i("Loading...");const t=new AbortController,n=setTimeout(()=>{o.classList.add("invalid"),t.abort(),i("Failed to load the specified URL!","error")},5e3);fetch(e,{signal:t.signal}).then(a=>{if(!a.ok){o.classList.add("invalid"),i("Failed to load the specified URL!","error");return}clearTimeout(n),a.text().then(async S=>{const B=new URL(e),D=new File([S],B.pathname.split("/").pop()??"song.sm");i("Loading charts...");const y=new P(D);await y.loaded,y.properties.TITLE===void 0&&i("Invalid file provided!","error"),h=y,p=e,d=void 0,m=void 0,i(""),s(),C()}),o.classList.add("ok")}).catch(()=>{o.classList.add("invalid"),i("Failed to load the specified URL!","error")})}o.onkeydown=e=>{o.classList.remove("invalid"),o.classList.remove("ok"),i(""),clearTimeout(g),g=setTimeout(()=>L(),1e3),(e.key=="Enter"||e.key=="Escape")&&o.blur()},o.onblur=()=>{o.checkValidity()&&(clearInterval(g),L())};const v=T.create([]);v.onChange(e=>{const t=e.split(" ")?.[0]??"dance-single",n=h?.charts[t]??[];l.setItems(n.map(a=>`${a.difficulty} ${a.meter}`)),l.setSelected(l.getItems().at(-1)),n.length!=0&&(console.log(n.length),t!="dance-single"?m=t:m=void 0,s())});const l=T.create([]);l.onChange((e,t)=>{d!=l.getItems().length-1?d=t:d=void 0,s()}),b.appendChild(v.view),b.appendChild(l.view);function C(){v.setItems(R.getPriority().map(t=>{const n=h.charts[t.id]??[];return t.id+" ("+n.length+")"}));const e=h?.charts["dance-single"]??[];l.setItems(e.map(t=>`${t.difficulty} ${t.meter}`)),l.setSelected(l.getItems().at(-1))}Object.entries(E).forEach(([e,t])=>{const n=document.createElement("label");n.classList.add("option");const a=document.createElement("input");a.type="checkbox",n.replaceChildren(a,document.createTextNode(t.name)),a.onchange=()=>{a.checked?u.add(t.char):u.delete(t.char),s()},f.appendChild(n)});const U=document.getElementById("enable-all");U.onclick=()=>{for(const e of f.children){const t=e.childNodes[0];t.checked=!0}for(const e of Object.values(E).map(t=>t.char))u.add(e);s()};const x=document.getElementById("disable-all");x.onclick=()=>{for(const e of f.children){const t=e.childNodes[0];t.checked=!1}u.clear(),s()}}); diff --git a/embed/index.html b/embed/index.html index 880dd0e..70edd35 100644 --- a/embed/index.html +++ b/embed/index.html @@ -16,7 +16,7 @@ SMEditor - + diff --git a/memory-e6387387.js b/memory-2bb6a5a3.js similarity index 98% rename from memory-e6387387.js rename to memory-2bb6a5a3.js index f739704..3d40871 100644 --- a/memory-e6387387.js +++ b/memory-2bb6a5a3.js @@ -1 +1 @@ -import{a8 as c,a9 as y}from"./ChartManager-d5d16ca9.js";let n=globalThis.File,p=globalThis.Blob;const b=o=>{n=o},m=o=>{p=o},{INVALID:z,GONE:s,MISMATCH:w,MOD_ERR:E,SYNTAX:l,DISALLOWED:O}=c;class D{constructor(e,i){this.fileHandle=e,this.file=i?e.file:new n([],e.file.name,e.file),this.size=i?e.file.size:0,this.position=0}async write(e){if(!this.fileHandle.file)throw new DOMException(...s);let i=this.file;if(y(e)){if(e.type==="write"){if(typeof e.position=="number"&&e.position>=0&&(this.position=e.position,this.size=0){if(this.size=0){i=e.sizei.size&&(this.position=i.size),this.file=i;return}else throw new DOMException(...l("truncate requires a size argument"))}e=new p([e]);let t=this.file;const a=t.slice(0,this.position),d=t.slice(this.position+e.size);let r=this.position-a.size;r<0&&(r=0),t=new n([a,new Uint8Array(r),e,d],t.name),this.size=t.size,this.position+=e.size,this.file=t}async close(){if(!this.fileHandle.file)throw new DOMException(...s);this.fileHandle.file=this.file,this.file=this.position=this.size=null,this.fileHandle.onclose&&this.fileHandle.onclose(this.fileHandle)}}class f{constructor(e="",i=new n([],e),t=!0){this.kind="file",this.deleted=!1,this.file=i,this.name=e,this.writable=t}async getFile(){if(this.deleted||this.file===null)throw new DOMException(...s);return this.file}async createWritable(e){if(!this.writable)throw new DOMException(...O);if(this.deleted)throw new DOMException(...s);return new D(this,!!e?.keepExistingData)}async isSameEntry(e){return this===e}destroy(){this.deleted=!0,this.file=null}}class h{constructor(e,i=!0){this.kind="directory",this.deleted=!1,this._entries={},this.name=e,this.writable=i}async*entries(){if(this.deleted)throw new DOMException(...s);yield*Object.entries(this._entries)}async isSameEntry(e){return this===e}async getDirectoryHandle(e,i={}){if(this.deleted)throw new DOMException(...s);const t=this._entries[e];if(t){if(t instanceof f)throw new DOMException(...w);return t}else{if(i.create)return this._entries[e]=new h(e);throw new DOMException(...s)}}async getFileHandle(e,i={}){const t=this._entries[e];if(t){if(t instanceof f)return t;throw new DOMException(...w)}else{if(i.create)return this._entries[e]=new f(e);throw new DOMException(...s)}}async removeEntry(e,i={}){const t=this._entries[e];if(!t)throw new DOMException(...s);t.destroy(i.recursive),delete this._entries[e]}destroy(e){for(let i of Object.values(this._entries)){if(!e)throw new DOMException(...E);i.destroy(e)}this._entries={},this.deleted=!0}}const M=new h(""),g=()=>M;export{f as FileHandle,h as FolderHandle,g as default,m as setBlobImpl,b as setFileImpl}; +import{a7 as c,a8 as y}from"./ChartManager-47a72d67.js";let n=globalThis.File,p=globalThis.Blob;const b=o=>{n=o},m=o=>{p=o},{INVALID:z,GONE:s,MISMATCH:w,MOD_ERR:E,SYNTAX:l,DISALLOWED:O}=c;class D{constructor(e,i){this.fileHandle=e,this.file=i?e.file:new n([],e.file.name,e.file),this.size=i?e.file.size:0,this.position=0}async write(e){if(!this.fileHandle.file)throw new DOMException(...s);let i=this.file;if(y(e)){if(e.type==="write"){if(typeof e.position=="number"&&e.position>=0&&(this.position=e.position,this.size=0){if(this.size=0){i=e.sizei.size&&(this.position=i.size),this.file=i;return}else throw new DOMException(...l("truncate requires a size argument"))}e=new p([e]);let t=this.file;const a=t.slice(0,this.position),d=t.slice(this.position+e.size);let r=this.position-a.size;r<0&&(r=0),t=new n([a,new Uint8Array(r),e,d],t.name),this.size=t.size,this.position+=e.size,this.file=t}async close(){if(!this.fileHandle.file)throw new DOMException(...s);this.fileHandle.file=this.file,this.file=this.position=this.size=null,this.fileHandle.onclose&&this.fileHandle.onclose(this.fileHandle)}}class f{constructor(e="",i=new n([],e),t=!0){this.kind="file",this.deleted=!1,this.file=i,this.name=e,this.writable=t}async getFile(){if(this.deleted||this.file===null)throw new DOMException(...s);return this.file}async createWritable(e){if(!this.writable)throw new DOMException(...O);if(this.deleted)throw new DOMException(...s);return new D(this,!!e?.keepExistingData)}async isSameEntry(e){return this===e}destroy(){this.deleted=!0,this.file=null}}class h{constructor(e,i=!0){this.kind="directory",this.deleted=!1,this._entries={},this.name=e,this.writable=i}async*entries(){if(this.deleted)throw new DOMException(...s);yield*Object.entries(this._entries)}async isSameEntry(e){return this===e}async getDirectoryHandle(e,i={}){if(this.deleted)throw new DOMException(...s);const t=this._entries[e];if(t){if(t instanceof f)throw new DOMException(...w);return t}else{if(i.create)return this._entries[e]=new h(e);throw new DOMException(...s)}}async getFileHandle(e,i={}){const t=this._entries[e];if(t){if(t instanceof f)return t;throw new DOMException(...w)}else{if(i.create)return this._entries[e]=new f(e);throw new DOMException(...s)}}async removeEntry(e,i={}){const t=this._entries[e];if(!t)throw new DOMException(...s);t.destroy(i.recursive),delete this._entries[e]}destroy(e){for(let i of Object.values(this._entries)){if(!e)throw new DOMException(...E);i.destroy(e)}this._entries={},this.deleted=!0}}const M=new h(""),g=()=>M;export{f as FileHandle,h as FolderHandle,g as default,m as setBlobImpl,b as setFileImpl}; diff --git a/sw.js b/sw.js index 799a108..0d82486 100644 --- a/sw.js +++ b/sw.js @@ -1 +1 @@ -if(!self.define){let s,e={};const n=(n,l)=>(n=new URL(n+".js",l).href,e[n]||new Promise((e=>{if("document"in self){const s=document.createElement("script");s.src=n,s.onload=e,document.head.appendChild(s)}else s=n,importScripts(n),e()})).then((()=>{let s=e[n];if(!s)throw new Error(`Module ${n} didn’t register its module`);return s})));self.define=(l,i)=>{const r=s||("document"in self?document.currentScript.src:"")||location.href;if(e[r])return;let a={};const u=s=>n(s,r),t={module:{uri:r},exports:a,require:u};e[r]=Promise.all(l.map((s=>t[s]||u(s)))).then((s=>(i(...s),a)))}}define(["./workbox-1ab968a5"],(function(s){"use strict";self.skipWaiting(),s.clientsClaim(),s.precacheAndRoute([{url:"AnimatedSprite-888875f6.js",revision:null},{url:"app.js",revision:"f9267599858c36402cc8a3f3a9722aa0"},{url:"app/index.html",revision:"4f4119ea35941ab0fd90f16475b46b7b"},{url:"assets/ChartManager-00dfcf8b.css",revision:null},{url:"assets/index-5508b070.css",revision:null},{url:"assets/index-8c6c3f75.css",revision:null},{url:"assets/index-d7a91955.css",revision:null},{url:"assets/SafariFileWorker-557e53c3.js",revision:null},{url:"ChartManager-d5d16ca9.js",revision:null},{url:"downloader-42744bfb.js",revision:null},{url:"embed.js",revision:"e52da4151e5b9d5cdbba55dd1a3e7288"},{url:"embed/index.html",revision:"1af794b1ddbd8f0ab1196cb2d123b291"},{url:"FileSystemWritableFileStream-e4c13ad9.js",revision:null},{url:"HoldBody-36fc6457.js",revision:null},{url:"index.html",revision:"18fca6f9c9df4dfb485b429cfb32fcef"},{url:"memory-e6387387.js",revision:null},{url:"NodeFileHandler-cefd0d25.js",revision:null},{url:"Noteskin-0dfbdb39.js",revision:null},{url:"Noteskin-168ea4f3.js",revision:null},{url:"Noteskin-2e2cbbde.js",revision:null},{url:"Noteskin-38ed4224.js",revision:null},{url:"Noteskin-39cb880c.js",revision:null},{url:"Noteskin-4810f636.js",revision:null},{url:"Noteskin-6f35f83c.js",revision:null},{url:"Noteskin-7178dd69.js",revision:null},{url:"Noteskin-8545d825.js",revision:null},{url:"Noteskin-9def79a7.js",revision:null},{url:"Noteskin-b4edfbfa.js",revision:null},{url:"Noteskin-cdd3cf8b.js",revision:null},{url:"Noteskin-d59ba98d.js",revision:null},{url:"Noteskin-d61aa979.js",revision:null},{url:"Noteskin-db33d8af.js",revision:null},{url:"Noteskin-f760aef8.js",revision:null},{url:"OggDec-2941c3fd.js",revision:null},{url:"web-streams-ponyfill-4a0f4950.js",revision:null},{url:"assets/0-0543793c.png",revision:null},{url:"assets/0-c5249fef.png",revision:null},{url:"assets/1-0e354907.png",revision:null},{url:"assets/1-84dd19f7.png",revision:null},{url:"assets/2-3b873573.png",revision:null},{url:"assets/2-ce5f7b2f.png",revision:null},{url:"assets/3-648105cf.png",revision:null},{url:"assets/3-e5952ffa.png",revision:null},{url:"assets/4-1f9a4a43.png",revision:null},{url:"assets/4-da345826.png",revision:null},{url:"assets/5-b9acdc27.png",revision:null},{url:"assets/5-f6bb9779.png",revision:null},{url:"assets/6-12d00670.png",revision:null},{url:"assets/6-565a7261.png",revision:null},{url:"assets/7-00801dd0.png",revision:null},{url:"assets/7-dd1c0ecf.png",revision:null},{url:"assets/8-94163432.png",revision:null},{url:"assets/8-9a73d4f3.png",revision:null},{url:"assets/active-29dd632a.png",revision:null},{url:"assets/active-d06e5c33.png",revision:null},{url:"assets/analyze-738fe825.mp4",revision:null},{url:"assets/app/changelog.json",revision:"6ed6903bbe0f368009b4c834aa75d93c"},{url:"assets/app/versions.json",revision:"223594f6ecde2ce4e9ed61e4f47c9378"},{url:"assets/av-05878b27.mp4",revision:null},{url:"assets/banner-fa29dd27.png",revision:null},{url:"assets/base-29930c78.png",revision:null},{url:"assets/body-0862c984.png",revision:null},{url:"assets/bodyActive-105f1d12.png",revision:null},{url:"assets/bodyActive-56c9977a.png",revision:null},{url:"assets/bodyActive-614d0188.png",revision:null},{url:"assets/bodyActive-889762ad.png",revision:null},{url:"assets/bodyActive-b3d95e51.png",revision:null},{url:"assets/bodyInactive-1234f594.png",revision:null},{url:"assets/bodyInactive-5d99335a.png",revision:null},{url:"assets/bodyInactive-72253162.png",revision:null},{url:"assets/bodyInactive-cfc41138.png",revision:null},{url:"assets/bodyInactive-e5ca65be.png",revision:null},{url:"assets/bottomCapActive-32ba7c5b.png",revision:null},{url:"assets/bottomCapActive-50553ab4.png",revision:null},{url:"assets/bottomCapActive-58c18c0b.png",revision:null},{url:"assets/bottomCapActive-75c2fd66.png",revision:null},{url:"assets/bottomCapInactive-177e377e.png",revision:null},{url:"assets/bottomCapInactive-d275b2b2.png",revision:null},{url:"assets/bottomCapInactive-d8fa251d.png",revision:null},{url:"assets/bottomCapInactive-e990106f.png",revision:null},{url:"assets/cap-8cc2992c.png",revision:null},{url:"assets/cap-e2813a45.png",revision:null},{url:"assets/capActive-59a3b423.png",revision:null},{url:"assets/capActive-e83fb138.png",revision:null},{url:"assets/capInactive-4622d5f2.png",revision:null},{url:"assets/capInactive-efc3b952.png",revision:null},{url:"assets/Center-1b6bfec9.png",revision:null},{url:"assets/Center-274a1642.png",revision:null},{url:"assets/Center-461a85de.png",revision:null},{url:"assets/Center-55e9b68a.png",revision:null},{url:"assets/Center-cb4b6c25.png",revision:null},{url:"assets/Center-df4c129b.png",revision:null},{url:"assets/centerReceptor-44665c43.png",revision:null},{url:"assets/colors-63f923d2.png",revision:null},{url:"assets/decent-79d4c208.png",revision:null},{url:"assets/decent-cc4ef7ea.png",revision:null},{url:"assets/decent-f3f8a110.png",revision:null},{url:"assets/downBodyActive-77f6502e.png",revision:null},{url:"assets/downBodyActive-8cf886d3.png",revision:null},{url:"assets/downBodyActive-dd1fd694.png",revision:null},{url:"assets/downBodyInactive-7465edd0.png",revision:null},{url:"assets/downBodyInactive-a5759c62.png",revision:null},{url:"assets/downBodyInactive-c781a303.png",revision:null},{url:"assets/downBottomCapActive-57ef4d54.png",revision:null},{url:"assets/downBottomCapActive-b10d1f0d.png",revision:null},{url:"assets/downBottomCapInactive-12cafebe.png",revision:null},{url:"assets/downBottomCapInactive-13ddf252.png",revision:null},{url:"assets/DownLeft-15647c81.png",revision:null},{url:"assets/DownLeft-19d91486.png",revision:null},{url:"assets/DownLeft-242c6bf3.png",revision:null},{url:"assets/DownLeft-4943410c.png",revision:null},{url:"assets/DownLeft-63c88ff1.png",revision:null},{url:"assets/DownLeft-94341616.png",revision:null},{url:"assets/downLeftReceptor-9be8faae.png",revision:null},{url:"assets/DownRight-3c57e4fa.png",revision:null},{url:"assets/DownRight-9aba7559.png",revision:null},{url:"assets/DownRight-a869fa38.png",revision:null},{url:"assets/DownRight-bcd0e463.png",revision:null},{url:"assets/DownRight-d5c3b98a.png",revision:null},{url:"assets/DownRight-e2cf2b7d.png",revision:null},{url:"assets/embed-8c85cbda.png",revision:null},{url:"assets/eq-6befbaef.mp4",revision:null},{url:"assets/excellent-30398c95.png",revision:null},{url:"assets/excellent-84718ac0.png",revision:null},{url:"assets/excellent-ab7ec4d8.png",revision:null},{url:"assets/exportlua-6de45f3b.png",revision:null},{url:"assets/fakeCenter-581c6a3b.png",revision:null},{url:"assets/fakeDownLeft-e3208bb3.png",revision:null},{url:"assets/fantastic-1755e773.png",revision:null},{url:"assets/fantastic-65c1c0cf.png",revision:null},{url:"assets/fantastic-ebaa2496.png",revision:null},{url:"assets/flash-5a32532f.png",revision:null},{url:"assets/flash-ac45db5d.png",revision:null},{url:"assets/flash-be9c0562.png",revision:null},{url:"assets/flash-d0eff0a1.png",revision:null},{url:"assets/flash-e524b5bd.png",revision:null},{url:"assets/flashBright-d5407f78.png",revision:null},{url:"assets/font/Assistant-Hebrew.woff2",revision:"e99c63e8dcd7799e8adf32df82b46376"},{url:"assets/font/Assistant-Latin.woff2",revision:"a416191c7641acf049f804b685235d3d"},{url:"assets/font/Assistant-LatinExt.woff2",revision:"2423d82cdbc6a34b99d5bbacf82623c7"},{url:"assets/frame-d599a2fe.png",revision:null},{url:"assets/frameChrome-2ea8bbf3.png",revision:null},{url:"assets/git-67477794.png",revision:null},{url:"assets/great-0e864574.png",revision:null},{url:"assets/great-cf911e79.png",revision:null},{url:"assets/great-f56818a7.png",revision:null},{url:"assets/hold_judgement-82934f15.png",revision:null},{url:"assets/hold-0c4ffc42.png",revision:null},{url:"assets/hold-160934d9.png",revision:null},{url:"assets/hold-3ccaaf09.png",revision:null},{url:"assets/hold-3f899175.png",revision:null},{url:"assets/hold-4cf23d59.png",revision:null},{url:"assets/hold-5651661d.png",revision:null},{url:"assets/hold-7b947e11.png",revision:null},{url:"assets/icon/favicon.ico",revision:"7bcbdd2344641a21b0f6f9393b491d65"},{url:"assets/icon/icon_512.png",revision:"1a4014fcbfaa08050ff38cabb8235165"},{url:"assets/icon/logo.png",revision:"3170c21a8539047fffea9eb4bd912d8e"},{url:"assets/icon/mac.icns",revision:"ac52a49fb658a942abeaa019bd05e9aa"},{url:"assets/inactive-48f23de3.png",revision:null},{url:"assets/inactive-a4aecb82.png",revision:null},{url:"assets/judgementITG-5390eacd.png",revision:null},{url:"assets/judgementWaterfall-5bb3f994.png",revision:null},{url:"assets/leftBodyActive-5d89f111.png",revision:null},{url:"assets/leftBodyActive-75d41033.png",revision:null},{url:"assets/leftBodyActive-fd4e902b.png",revision:null},{url:"assets/leftBodyInactive-1110dc77.png",revision:null},{url:"assets/leftBodyInactive-8fe6311e.png",revision:null},{url:"assets/leftBodyInactive-bbc074cd.png",revision:null},{url:"assets/leftBottomCapActive-057c49fb.png",revision:null},{url:"assets/leftBottomCapActive-f759c91c.png",revision:null},{url:"assets/leftBottomCapInactive-a4ac7bba.png",revision:null},{url:"assets/leftBottomCapInactive-df6350c7.png",revision:null},{url:"assets/lift-6db682e7.png",revision:null},{url:"assets/liftCenter-9712ce74.png",revision:null},{url:"assets/liftDownLeft-0205bdc8.png",revision:null},{url:"assets/mask-f1b4d033.png",revision:null},{url:"assets/metronome_high-bd539a8c.wav",revision:null},{url:"assets/metronome_low-cbca5846.wav",revision:null},{url:"assets/mine-0e34ec01.png",revision:null},{url:"assets/mine-335f4545.png",revision:null},{url:"assets/mine-590d445e.png",revision:null},{url:"assets/mine-b973f34e.wav",revision:null},{url:"assets/missing-81d55ba9.png",revision:null},{url:"assets/mode-cac62e2a.png",revision:null},{url:"assets/mouse-ef7f3cf3.mp4",revision:null},{url:"assets/note-07e5d79f.png",revision:null},{url:"assets/outline-72e881a7.png",revision:null},{url:"assets/overlay-f63a3b18.png",revision:null},{url:"assets/particles-18ec6c1d.png",revision:null},{url:"assets/parts-0c8fa692.png",revision:null},{url:"assets/parts-9668caec.png",revision:null},{url:"assets/parts-9a3f637b.png",revision:null},{url:"assets/parts-b37af2cf.png",revision:null},{url:"assets/playtest-f34f5856.mp4",revision:null},{url:"assets/popup-b6da9784.mp4",revision:null},{url:"assets/pref-fdc09174.mp4",revision:null},{url:"assets/press-55cccb8c.png",revision:null},{url:"assets/press-feed8aa6.png",revision:null},{url:"assets/preview-0f9b00cd.png",revision:null},{url:"assets/preview-17ffcc02.png",revision:null},{url:"assets/preview-26b1bdce.png",revision:null},{url:"assets/preview-2fd7d50c.png",revision:null},{url:"assets/preview-3514cbb3.png",revision:null},{url:"assets/preview-40b76b28.png",revision:null},{url:"assets/preview-4f79831b.png",revision:null},{url:"assets/preview-5d9781d2.png",revision:null},{url:"assets/preview-5ecfc22a.png",revision:null},{url:"assets/preview-72ea0444.png",revision:null},{url:"assets/preview-747db171.png",revision:null},{url:"assets/preview-9fe2bd96.png",revision:null},{url:"assets/preview-b8f75a15.png",revision:null},{url:"assets/preview-d67630f1.png",revision:null},{url:"assets/preview-d6d59d37.png",revision:null},{url:"assets/preview-d763e667.png",revision:null},{url:"assets/preview-f113aacc.png",revision:null},{url:"assets/receptor-13e43ffb.png",revision:null},{url:"assets/receptor-30ecd7a2.png",revision:null},{url:"assets/receptor-3e38f29b.png",revision:null},{url:"assets/receptor-59597a1d.png",revision:null},{url:"assets/receptor-6fa92e51.png",revision:null},{url:"assets/receptor-a0a69b2b.png",revision:null},{url:"assets/receptor-a4713728.png",revision:null},{url:"assets/receptor-d5ef8593.png",revision:null},{url:"assets/receptorFlash-c7675c53.png",revision:null},{url:"assets/receptors-0a59df78.png",revision:null},{url:"assets/receptors-5a0beefb.png",revision:null},{url:"assets/rightBodyActive-07f95372.png",revision:null},{url:"assets/rightBodyActive-751fadec.png",revision:null},{url:"assets/rightBodyActive-8af7624b.png",revision:null},{url:"assets/rightBodyInactive-46202369.png",revision:null},{url:"assets/rightBodyInactive-695480aa.png",revision:null},{url:"assets/rightBodyInactive-fdefc2a4.png",revision:null},{url:"assets/rightBottomCapActive-6edeea1e.png",revision:null},{url:"assets/rightBottomCapActive-a736d803.png",revision:null},{url:"assets/rightBottomCapInactive-a64cea2c.png",revision:null},{url:"assets/rightBottomCapInactive-d674960e.png",revision:null},{url:"assets/scrolls-a04758c8.mp4",revision:null},{url:"assets/spark-2c59cc0e.png",revision:null},{url:"assets/stroke-1f54ba14.png",revision:null},{url:"assets/svg/ADD_EVENT.svg",revision:"3bf1426558fe2c59723905769f9dbf44"},{url:"assets/svg/ADD_FILE.svg",revision:"0cbb4c6f95ccdae8e5c5e358e021874e"},{url:"assets/svg/CHEVRON.svg",revision:"e379dea6fdc3e7faa1033e01f5c9551f"},{url:"assets/svg/CLAP.svg",revision:"6e0ec4a2e34e1fc5643b1492deac520c"},{url:"assets/svg/CLOSE_WINDOW.svg",revision:"5a830a27cc07aae3a21deb2f5a6fa9b9"},{url:"assets/svg/COPY.svg",revision:"94fe4e617349ad3c89cede7ee900d391"},{url:"assets/svg/DBL_CHEVRON.svg",revision:"5baff238d099cd65a6b54bc41d92dc59"},{url:"assets/svg/DETECT_SYNC.svg",revision:"b9b6cc287adf7fef4485899835ea3c13"},{url:"assets/svg/DOWNLOAD.svg",revision:"67c6e0e66d510bfe9590a9f8154ddf43"},{url:"assets/svg/EDIT.svg",revision:"89ac21574175ba70a0ba09ca6ba784ba"},{url:"assets/svg/EYE.svg",revision:"d4400c91178716f68e9099e237c7c671"},{url:"assets/svg/FEET.svg",revision:"01607729992f69dd5731642a118c7677"},{url:"assets/svg/FOLDER.svg",revision:"5618bc8736afa888944207dac0d53c33"},{url:"assets/svg/HIGHPASS.svg",revision:"3d3c3465decabcb2d9e2c50ee7b0d047"},{url:"assets/svg/HIGHSHELF.svg",revision:"8d348b68061c498d9dca385be140eb95"},{url:"assets/svg/IMAGE_FILE.svg",revision:"33f6364c93e7c51a2fb539c536607659"},{url:"assets/svg/LINK_BROKEN.svg",revision:"d00f815ad8fd2dee1188d5b395f78e19"},{url:"assets/svg/LINK.svg",revision:"cea24cc83a677857158c8dcdf32d0228"},{url:"assets/svg/LOWPASS.svg",revision:"12694371d2572549fed0a48ed11cdee3"},{url:"assets/svg/LOWSHELF.svg",revision:"9b2e2fbf2c76fd115cb794bf2c4b4999"},{url:"assets/svg/MENU_VERTICAL.svg",revision:"4a0ffba6dfc324979b6204dd2354e8eb"},{url:"assets/svg/METRONOME.svg",revision:"6605cb1d1ec6821ccf0d73011739ae00"},{url:"assets/svg/MINIMIZE.svg",revision:"efea4d82097ceef2d001fc91325417da"},{url:"assets/svg/PEAKING.svg",revision:"ded7f8e515e7a552aab770eaf0edf93a"},{url:"assets/svg/PLAY.svg",revision:"47a3f485918a09effbcd1f99fbcc2ce3"},{url:"assets/svg/PLAYTEST.svg",revision:"ae455e6518022d467b0dd79269e9a8af"},{url:"assets/svg/PLUS.svg",revision:"f4694d31eb7f609c2510a9fe36dd4f12"},{url:"assets/svg/RECORD.svg",revision:"c94e7371259bc6a865996560b6656268"},{url:"assets/svg/REVERT.svg",revision:"ecd1fc1b8b0811062e3fc9a887bec68d"},{url:"assets/svg/SKIP_END.svg",revision:"43f4154ca656d2017a2b41a1dfacd671"},{url:"assets/svg/SKIP_START.svg",revision:"690fdfb6d41b25ccb4bd5aa9f65b81f1"},{url:"assets/svg/SM_FILE.svg",revision:"0c5917f0b2e2b7401097071030cc7bd1"},{url:"assets/svg/SPEED.svg",revision:"c8ecff8943040cee73642d289f25c5c9"},{url:"assets/svg/SPLIT_TIMING.svg",revision:"dcd9527c512275fa03ba587cbacda1dd"},{url:"assets/svg/STOP.svg",revision:"2dd4917e08b23080980202ed52b8a7eb"},{url:"assets/svg/TRASH.svg",revision:"55f80a8cf8bb4aed29a3089807064464"},{url:"assets/svg/UNKNOWN_FILE.svg",revision:"d1196a02d693ed3d3f0d064f5c3d1815"},{url:"assets/svg/UPLOAD.svg",revision:"3009c00a98d4a6fe2d0ebbb1e626ee43"},{url:"assets/svg/VOLUME.svg",revision:"b971f09af774996aeeee9749ddb6949a"},{url:"assets/svg/X_CLAP.svg",revision:"00875c090478341862b257d3655922d8"},{url:"assets/svg/X_EYE.svg",revision:"0bf002a7e35febde50e7b2ce116c2139"},{url:"assets/svg/X_METRONOME.svg",revision:"abcb5baff6f1683403a1362b5f0ee561"},{url:"assets/tap-69a9f81d.png",revision:null},{url:"assets/tap-c1e36633.png",revision:null},{url:"assets/tapCenter-103680e8.png",revision:null},{url:"assets/tapDownLeft-17ba3b42.png",revision:null},{url:"assets/timesig-9e28e1f2.png",revision:null},{url:"assets/top-74da30ae.png",revision:null},{url:"assets/underlay-95144bef.png",revision:null},{url:"assets/upBodyActive-b06d82f3.png",revision:null},{url:"assets/upBodyActive-c813881f.png",revision:null},{url:"assets/upBodyInactive-0222237a.png",revision:null},{url:"assets/upBodyInactive-4ef75342.png",revision:null},{url:"assets/upBodyInactive-87a7969e.png",revision:null},{url:"assets/upBottomCapActive-07fb7c6e.png",revision:null},{url:"assets/upBottomCapActive-19e4c05d.png",revision:null},{url:"assets/upBottomCapInactive-23aae747.png",revision:null},{url:"assets/upBottomCapInactive-75f78aac.png",revision:null},{url:"assets/UpLeft-28515625.png",revision:null},{url:"assets/UpLeft-36744666.png",revision:null},{url:"assets/UpLeft-752b6821.png",revision:null},{url:"assets/UpLeft-be2bb52b.png",revision:null},{url:"assets/UpLeft-d457a441.png",revision:null},{url:"assets/UpLeft-ef9a2609.png",revision:null},{url:"assets/upleftBodyActive-bc79d60f.png",revision:null},{url:"assets/upleftBodyInactive-f60085c6.png",revision:null},{url:"assets/UpRight-2e4dc3f1.png",revision:null},{url:"assets/UpRight-7924deeb.png",revision:null},{url:"assets/UpRight-8a892589.png",revision:null},{url:"assets/UpRight-91e454bc.png",revision:null},{url:"assets/UpRight-af6dd110.png",revision:null},{url:"assets/UpRight-fda6b516.png",revision:null},{url:"assets/uprightBodyActive-3d912f52.png",revision:null},{url:"assets/uprightBodyInactive-01c6c977.png",revision:null},{url:"assets/w0-6f86addb.png",revision:null},{url:"assets/w1-c8c43b0f.png",revision:null},{url:"assets/w2-37282ba8.png",revision:null},{url:"assets/w3-3c2ca2d8.png",revision:null},{url:"assets/w4-ce0f95de.png",revision:null},{url:"assets/w5-23173d4f.png",revision:null},{url:"assets/way_off-8bc3fd65.png",revision:null},{url:"assets/way_off-bc2cdf11.png",revision:null},{url:"assets/way_off-cc9a5377.png",revision:null},{url:"assets/white_fantastic-6c519378.png",revision:null},{url:"assets/white_fantastic-9f83da7a.png",revision:null},{url:"assets/white_fantastic-b65b4f11.png",revision:null},{url:"assets/icon/icon_512.png",revision:"1a4014fcbfaa08050ff38cabb8235165"},{url:"manifest.json",revision:"1d72161daa4e530e15d85baf4906bf4c"}],{ignoreURLParametersMatching:[/^flags/,/^url/,/^chartIndex/,/^chartType/]}),s.cleanupOutdatedCaches()})); +if(!self.define){let s,e={};const n=(n,l)=>(n=new URL(n+".js",l).href,e[n]||new Promise((e=>{if("document"in self){const s=document.createElement("script");s.src=n,s.onload=e,document.head.appendChild(s)}else s=n,importScripts(n),e()})).then((()=>{let s=e[n];if(!s)throw new Error(`Module ${n} didn’t register its module`);return s})));self.define=(l,i)=>{const r=s||("document"in self?document.currentScript.src:"")||location.href;if(e[r])return;let a={};const u=s=>n(s,r),t={module:{uri:r},exports:a,require:u};e[r]=Promise.all(l.map((s=>t[s]||u(s)))).then((s=>(i(...s),a)))}}define(["./workbox-1ab968a5"],(function(s){"use strict";self.skipWaiting(),s.clientsClaim(),s.precacheAndRoute([{url:"AnimatedSprite-b795c45d.js",revision:null},{url:"app.js",revision:"7bdaa4b944fe90de6603439ce941bf93"},{url:"app/index.html",revision:"08402d8a2de48cddfa5cd216f0cf63fb"},{url:"assets/ChartManager-00dfcf8b.css",revision:null},{url:"assets/index-5508b070.css",revision:null},{url:"assets/index-8c6c3f75.css",revision:null},{url:"assets/index-d7a91955.css",revision:null},{url:"assets/SafariFileWorker-557e53c3.js",revision:null},{url:"ChartManager-47a72d67.js",revision:null},{url:"downloader-b5db5e8a.js",revision:null},{url:"embed.js",revision:"05534f0e8ed61906b28e128b40e6ce7b"},{url:"embed/index.html",revision:"6be806dfe8c821019ae3c9b246efb222"},{url:"FileSystemWritableFileStream-e4c13ad9.js",revision:null},{url:"HoldBody-be07a70c.js",revision:null},{url:"index.html",revision:"18fca6f9c9df4dfb485b429cfb32fcef"},{url:"memory-2bb6a5a3.js",revision:null},{url:"NodeFileHandler-71538046.js",revision:null},{url:"Noteskin-04a83d23.js",revision:null},{url:"Noteskin-4e0593e6.js",revision:null},{url:"Noteskin-4eedff13.js",revision:null},{url:"Noteskin-578b9537.js",revision:null},{url:"Noteskin-619dd7ae.js",revision:null},{url:"Noteskin-7ba57491.js",revision:null},{url:"Noteskin-7e766ee5.js",revision:null},{url:"Noteskin-8063a766.js",revision:null},{url:"Noteskin-8752563b.js",revision:null},{url:"Noteskin-8865056a.js",revision:null},{url:"Noteskin-abdfd413.js",revision:null},{url:"Noteskin-b3cab24d.js",revision:null},{url:"Noteskin-bbfb29fa.js",revision:null},{url:"Noteskin-ca147e57.js",revision:null},{url:"Noteskin-ca87104e.js",revision:null},{url:"Noteskin-d08f1b21.js",revision:null},{url:"OggDec-2941c3fd.js",revision:null},{url:"web-streams-ponyfill-4a0f4950.js",revision:null},{url:"assets/0-0543793c.png",revision:null},{url:"assets/0-c5249fef.png",revision:null},{url:"assets/1-0e354907.png",revision:null},{url:"assets/1-84dd19f7.png",revision:null},{url:"assets/2-3b873573.png",revision:null},{url:"assets/2-ce5f7b2f.png",revision:null},{url:"assets/3-648105cf.png",revision:null},{url:"assets/3-e5952ffa.png",revision:null},{url:"assets/4-1f9a4a43.png",revision:null},{url:"assets/4-da345826.png",revision:null},{url:"assets/5-b9acdc27.png",revision:null},{url:"assets/5-f6bb9779.png",revision:null},{url:"assets/6-12d00670.png",revision:null},{url:"assets/6-565a7261.png",revision:null},{url:"assets/7-00801dd0.png",revision:null},{url:"assets/7-dd1c0ecf.png",revision:null},{url:"assets/8-94163432.png",revision:null},{url:"assets/8-9a73d4f3.png",revision:null},{url:"assets/active-29dd632a.png",revision:null},{url:"assets/active-d06e5c33.png",revision:null},{url:"assets/analyze-738fe825.mp4",revision:null},{url:"assets/app/changelog.json",revision:"6ed6903bbe0f368009b4c834aa75d93c"},{url:"assets/app/versions.json",revision:"223594f6ecde2ce4e9ed61e4f47c9378"},{url:"assets/av-05878b27.mp4",revision:null},{url:"assets/banner-fa29dd27.png",revision:null},{url:"assets/base-29930c78.png",revision:null},{url:"assets/body-0862c984.png",revision:null},{url:"assets/bodyActive-105f1d12.png",revision:null},{url:"assets/bodyActive-56c9977a.png",revision:null},{url:"assets/bodyActive-614d0188.png",revision:null},{url:"assets/bodyActive-889762ad.png",revision:null},{url:"assets/bodyActive-b3d95e51.png",revision:null},{url:"assets/bodyInactive-1234f594.png",revision:null},{url:"assets/bodyInactive-5d99335a.png",revision:null},{url:"assets/bodyInactive-72253162.png",revision:null},{url:"assets/bodyInactive-cfc41138.png",revision:null},{url:"assets/bodyInactive-e5ca65be.png",revision:null},{url:"assets/bottomCapActive-32ba7c5b.png",revision:null},{url:"assets/bottomCapActive-50553ab4.png",revision:null},{url:"assets/bottomCapActive-58c18c0b.png",revision:null},{url:"assets/bottomCapActive-75c2fd66.png",revision:null},{url:"assets/bottomCapInactive-177e377e.png",revision:null},{url:"assets/bottomCapInactive-d275b2b2.png",revision:null},{url:"assets/bottomCapInactive-d8fa251d.png",revision:null},{url:"assets/bottomCapInactive-e990106f.png",revision:null},{url:"assets/cap-8cc2992c.png",revision:null},{url:"assets/cap-e2813a45.png",revision:null},{url:"assets/capActive-59a3b423.png",revision:null},{url:"assets/capActive-e83fb138.png",revision:null},{url:"assets/capInactive-4622d5f2.png",revision:null},{url:"assets/capInactive-efc3b952.png",revision:null},{url:"assets/Center-1b6bfec9.png",revision:null},{url:"assets/Center-274a1642.png",revision:null},{url:"assets/Center-461a85de.png",revision:null},{url:"assets/Center-55e9b68a.png",revision:null},{url:"assets/Center-cb4b6c25.png",revision:null},{url:"assets/Center-df4c129b.png",revision:null},{url:"assets/centerReceptor-44665c43.png",revision:null},{url:"assets/colors-63f923d2.png",revision:null},{url:"assets/decent-79d4c208.png",revision:null},{url:"assets/decent-cc4ef7ea.png",revision:null},{url:"assets/decent-f3f8a110.png",revision:null},{url:"assets/downBodyActive-77f6502e.png",revision:null},{url:"assets/downBodyActive-8cf886d3.png",revision:null},{url:"assets/downBodyActive-dd1fd694.png",revision:null},{url:"assets/downBodyInactive-7465edd0.png",revision:null},{url:"assets/downBodyInactive-a5759c62.png",revision:null},{url:"assets/downBodyInactive-c781a303.png",revision:null},{url:"assets/downBottomCapActive-57ef4d54.png",revision:null},{url:"assets/downBottomCapActive-b10d1f0d.png",revision:null},{url:"assets/downBottomCapInactive-12cafebe.png",revision:null},{url:"assets/downBottomCapInactive-13ddf252.png",revision:null},{url:"assets/DownLeft-15647c81.png",revision:null},{url:"assets/DownLeft-19d91486.png",revision:null},{url:"assets/DownLeft-242c6bf3.png",revision:null},{url:"assets/DownLeft-4943410c.png",revision:null},{url:"assets/DownLeft-63c88ff1.png",revision:null},{url:"assets/DownLeft-94341616.png",revision:null},{url:"assets/downLeftReceptor-9be8faae.png",revision:null},{url:"assets/DownRight-3c57e4fa.png",revision:null},{url:"assets/DownRight-9aba7559.png",revision:null},{url:"assets/DownRight-a869fa38.png",revision:null},{url:"assets/DownRight-bcd0e463.png",revision:null},{url:"assets/DownRight-d5c3b98a.png",revision:null},{url:"assets/DownRight-e2cf2b7d.png",revision:null},{url:"assets/embed-8c85cbda.png",revision:null},{url:"assets/eq-6befbaef.mp4",revision:null},{url:"assets/excellent-30398c95.png",revision:null},{url:"assets/excellent-84718ac0.png",revision:null},{url:"assets/excellent-ab7ec4d8.png",revision:null},{url:"assets/exportlua-6de45f3b.png",revision:null},{url:"assets/fakeCenter-581c6a3b.png",revision:null},{url:"assets/fakeDownLeft-e3208bb3.png",revision:null},{url:"assets/fantastic-1755e773.png",revision:null},{url:"assets/fantastic-65c1c0cf.png",revision:null},{url:"assets/fantastic-ebaa2496.png",revision:null},{url:"assets/flash-5a32532f.png",revision:null},{url:"assets/flash-ac45db5d.png",revision:null},{url:"assets/flash-be9c0562.png",revision:null},{url:"assets/flash-d0eff0a1.png",revision:null},{url:"assets/flash-e524b5bd.png",revision:null},{url:"assets/flashBright-d5407f78.png",revision:null},{url:"assets/font/Assistant-Hebrew.woff2",revision:"e99c63e8dcd7799e8adf32df82b46376"},{url:"assets/font/Assistant-Latin.woff2",revision:"a416191c7641acf049f804b685235d3d"},{url:"assets/font/Assistant-LatinExt.woff2",revision:"2423d82cdbc6a34b99d5bbacf82623c7"},{url:"assets/frame-d599a2fe.png",revision:null},{url:"assets/frameChrome-2ea8bbf3.png",revision:null},{url:"assets/git-67477794.png",revision:null},{url:"assets/great-0e864574.png",revision:null},{url:"assets/great-cf911e79.png",revision:null},{url:"assets/great-f56818a7.png",revision:null},{url:"assets/hold_judgement-82934f15.png",revision:null},{url:"assets/hold-0c4ffc42.png",revision:null},{url:"assets/hold-160934d9.png",revision:null},{url:"assets/hold-3ccaaf09.png",revision:null},{url:"assets/hold-3f899175.png",revision:null},{url:"assets/hold-4cf23d59.png",revision:null},{url:"assets/hold-5651661d.png",revision:null},{url:"assets/hold-7b947e11.png",revision:null},{url:"assets/icon/favicon.ico",revision:"7bcbdd2344641a21b0f6f9393b491d65"},{url:"assets/icon/icon_512.png",revision:"1a4014fcbfaa08050ff38cabb8235165"},{url:"assets/icon/logo.png",revision:"3170c21a8539047fffea9eb4bd912d8e"},{url:"assets/icon/mac.icns",revision:"ac52a49fb658a942abeaa019bd05e9aa"},{url:"assets/inactive-48f23de3.png",revision:null},{url:"assets/inactive-a4aecb82.png",revision:null},{url:"assets/judgementITG-5390eacd.png",revision:null},{url:"assets/judgementWaterfall-5bb3f994.png",revision:null},{url:"assets/leftBodyActive-5d89f111.png",revision:null},{url:"assets/leftBodyActive-75d41033.png",revision:null},{url:"assets/leftBodyActive-fd4e902b.png",revision:null},{url:"assets/leftBodyInactive-1110dc77.png",revision:null},{url:"assets/leftBodyInactive-8fe6311e.png",revision:null},{url:"assets/leftBodyInactive-bbc074cd.png",revision:null},{url:"assets/leftBottomCapActive-057c49fb.png",revision:null},{url:"assets/leftBottomCapActive-f759c91c.png",revision:null},{url:"assets/leftBottomCapInactive-a4ac7bba.png",revision:null},{url:"assets/leftBottomCapInactive-df6350c7.png",revision:null},{url:"assets/lift-6db682e7.png",revision:null},{url:"assets/liftCenter-9712ce74.png",revision:null},{url:"assets/liftDownLeft-0205bdc8.png",revision:null},{url:"assets/mask-f1b4d033.png",revision:null},{url:"assets/metronome_high-bd539a8c.wav",revision:null},{url:"assets/metronome_low-cbca5846.wav",revision:null},{url:"assets/mine-0e34ec01.png",revision:null},{url:"assets/mine-335f4545.png",revision:null},{url:"assets/mine-590d445e.png",revision:null},{url:"assets/mine-b973f34e.wav",revision:null},{url:"assets/missing-81d55ba9.png",revision:null},{url:"assets/mode-cac62e2a.png",revision:null},{url:"assets/mouse-ef7f3cf3.mp4",revision:null},{url:"assets/note-07e5d79f.png",revision:null},{url:"assets/outline-72e881a7.png",revision:null},{url:"assets/overlay-f63a3b18.png",revision:null},{url:"assets/particles-18ec6c1d.png",revision:null},{url:"assets/parts-0c8fa692.png",revision:null},{url:"assets/parts-9668caec.png",revision:null},{url:"assets/parts-9a3f637b.png",revision:null},{url:"assets/parts-b37af2cf.png",revision:null},{url:"assets/playtest-f34f5856.mp4",revision:null},{url:"assets/popup-b6da9784.mp4",revision:null},{url:"assets/pref-fdc09174.mp4",revision:null},{url:"assets/press-55cccb8c.png",revision:null},{url:"assets/press-feed8aa6.png",revision:null},{url:"assets/preview-0f9b00cd.png",revision:null},{url:"assets/preview-17ffcc02.png",revision:null},{url:"assets/preview-26b1bdce.png",revision:null},{url:"assets/preview-2fd7d50c.png",revision:null},{url:"assets/preview-3514cbb3.png",revision:null},{url:"assets/preview-40b76b28.png",revision:null},{url:"assets/preview-4f79831b.png",revision:null},{url:"assets/preview-5d9781d2.png",revision:null},{url:"assets/preview-5ecfc22a.png",revision:null},{url:"assets/preview-72ea0444.png",revision:null},{url:"assets/preview-747db171.png",revision:null},{url:"assets/preview-9fe2bd96.png",revision:null},{url:"assets/preview-b8f75a15.png",revision:null},{url:"assets/preview-d67630f1.png",revision:null},{url:"assets/preview-d6d59d37.png",revision:null},{url:"assets/preview-d763e667.png",revision:null},{url:"assets/preview-f113aacc.png",revision:null},{url:"assets/receptor-13e43ffb.png",revision:null},{url:"assets/receptor-30ecd7a2.png",revision:null},{url:"assets/receptor-3e38f29b.png",revision:null},{url:"assets/receptor-59597a1d.png",revision:null},{url:"assets/receptor-6fa92e51.png",revision:null},{url:"assets/receptor-a0a69b2b.png",revision:null},{url:"assets/receptor-a4713728.png",revision:null},{url:"assets/receptor-d5ef8593.png",revision:null},{url:"assets/receptorFlash-c7675c53.png",revision:null},{url:"assets/receptors-0a59df78.png",revision:null},{url:"assets/receptors-5a0beefb.png",revision:null},{url:"assets/rightBodyActive-07f95372.png",revision:null},{url:"assets/rightBodyActive-751fadec.png",revision:null},{url:"assets/rightBodyActive-8af7624b.png",revision:null},{url:"assets/rightBodyInactive-46202369.png",revision:null},{url:"assets/rightBodyInactive-695480aa.png",revision:null},{url:"assets/rightBodyInactive-fdefc2a4.png",revision:null},{url:"assets/rightBottomCapActive-6edeea1e.png",revision:null},{url:"assets/rightBottomCapActive-a736d803.png",revision:null},{url:"assets/rightBottomCapInactive-a64cea2c.png",revision:null},{url:"assets/rightBottomCapInactive-d674960e.png",revision:null},{url:"assets/scrolls-a04758c8.mp4",revision:null},{url:"assets/spark-2c59cc0e.png",revision:null},{url:"assets/stroke-1f54ba14.png",revision:null},{url:"assets/svg/ADD_EVENT.svg",revision:"3bf1426558fe2c59723905769f9dbf44"},{url:"assets/svg/ADD_FILE.svg",revision:"0cbb4c6f95ccdae8e5c5e358e021874e"},{url:"assets/svg/CHEVRON.svg",revision:"e379dea6fdc3e7faa1033e01f5c9551f"},{url:"assets/svg/CLAP.svg",revision:"6e0ec4a2e34e1fc5643b1492deac520c"},{url:"assets/svg/CLOSE_WINDOW.svg",revision:"5a830a27cc07aae3a21deb2f5a6fa9b9"},{url:"assets/svg/COPY.svg",revision:"94fe4e617349ad3c89cede7ee900d391"},{url:"assets/svg/DBL_CHEVRON.svg",revision:"5baff238d099cd65a6b54bc41d92dc59"},{url:"assets/svg/DETECT_SYNC.svg",revision:"b9b6cc287adf7fef4485899835ea3c13"},{url:"assets/svg/DOWNLOAD.svg",revision:"67c6e0e66d510bfe9590a9f8154ddf43"},{url:"assets/svg/EDIT.svg",revision:"89ac21574175ba70a0ba09ca6ba784ba"},{url:"assets/svg/EYE.svg",revision:"d4400c91178716f68e9099e237c7c671"},{url:"assets/svg/FEET.svg",revision:"01607729992f69dd5731642a118c7677"},{url:"assets/svg/FOLDER.svg",revision:"5618bc8736afa888944207dac0d53c33"},{url:"assets/svg/HIGHPASS.svg",revision:"3d3c3465decabcb2d9e2c50ee7b0d047"},{url:"assets/svg/HIGHSHELF.svg",revision:"8d348b68061c498d9dca385be140eb95"},{url:"assets/svg/IMAGE_FILE.svg",revision:"33f6364c93e7c51a2fb539c536607659"},{url:"assets/svg/LINK_BROKEN.svg",revision:"d00f815ad8fd2dee1188d5b395f78e19"},{url:"assets/svg/LINK.svg",revision:"cea24cc83a677857158c8dcdf32d0228"},{url:"assets/svg/LOWPASS.svg",revision:"12694371d2572549fed0a48ed11cdee3"},{url:"assets/svg/LOWSHELF.svg",revision:"9b2e2fbf2c76fd115cb794bf2c4b4999"},{url:"assets/svg/MENU_VERTICAL.svg",revision:"4a0ffba6dfc324979b6204dd2354e8eb"},{url:"assets/svg/METRONOME.svg",revision:"6605cb1d1ec6821ccf0d73011739ae00"},{url:"assets/svg/MINIMIZE.svg",revision:"efea4d82097ceef2d001fc91325417da"},{url:"assets/svg/PEAKING.svg",revision:"ded7f8e515e7a552aab770eaf0edf93a"},{url:"assets/svg/PLAY.svg",revision:"47a3f485918a09effbcd1f99fbcc2ce3"},{url:"assets/svg/PLAYTEST.svg",revision:"ae455e6518022d467b0dd79269e9a8af"},{url:"assets/svg/PLUS.svg",revision:"f4694d31eb7f609c2510a9fe36dd4f12"},{url:"assets/svg/RECORD.svg",revision:"c94e7371259bc6a865996560b6656268"},{url:"assets/svg/REVERT.svg",revision:"ecd1fc1b8b0811062e3fc9a887bec68d"},{url:"assets/svg/SKIP_END.svg",revision:"43f4154ca656d2017a2b41a1dfacd671"},{url:"assets/svg/SKIP_START.svg",revision:"690fdfb6d41b25ccb4bd5aa9f65b81f1"},{url:"assets/svg/SM_FILE.svg",revision:"0c5917f0b2e2b7401097071030cc7bd1"},{url:"assets/svg/SPEED.svg",revision:"c8ecff8943040cee73642d289f25c5c9"},{url:"assets/svg/SPLIT_TIMING.svg",revision:"dcd9527c512275fa03ba587cbacda1dd"},{url:"assets/svg/STOP.svg",revision:"2dd4917e08b23080980202ed52b8a7eb"},{url:"assets/svg/TRASH.svg",revision:"55f80a8cf8bb4aed29a3089807064464"},{url:"assets/svg/UNKNOWN_FILE.svg",revision:"d1196a02d693ed3d3f0d064f5c3d1815"},{url:"assets/svg/UPLOAD.svg",revision:"3009c00a98d4a6fe2d0ebbb1e626ee43"},{url:"assets/svg/VOLUME.svg",revision:"b971f09af774996aeeee9749ddb6949a"},{url:"assets/svg/X_CLAP.svg",revision:"00875c090478341862b257d3655922d8"},{url:"assets/svg/X_EYE.svg",revision:"0bf002a7e35febde50e7b2ce116c2139"},{url:"assets/svg/X_METRONOME.svg",revision:"abcb5baff6f1683403a1362b5f0ee561"},{url:"assets/tap-69a9f81d.png",revision:null},{url:"assets/tap-c1e36633.png",revision:null},{url:"assets/tapCenter-103680e8.png",revision:null},{url:"assets/tapDownLeft-17ba3b42.png",revision:null},{url:"assets/timesig-9e28e1f2.png",revision:null},{url:"assets/top-74da30ae.png",revision:null},{url:"assets/underlay-95144bef.png",revision:null},{url:"assets/upBodyActive-b06d82f3.png",revision:null},{url:"assets/upBodyActive-c813881f.png",revision:null},{url:"assets/upBodyInactive-0222237a.png",revision:null},{url:"assets/upBodyInactive-4ef75342.png",revision:null},{url:"assets/upBodyInactive-87a7969e.png",revision:null},{url:"assets/upBottomCapActive-07fb7c6e.png",revision:null},{url:"assets/upBottomCapActive-19e4c05d.png",revision:null},{url:"assets/upBottomCapInactive-23aae747.png",revision:null},{url:"assets/upBottomCapInactive-75f78aac.png",revision:null},{url:"assets/UpLeft-28515625.png",revision:null},{url:"assets/UpLeft-36744666.png",revision:null},{url:"assets/UpLeft-752b6821.png",revision:null},{url:"assets/UpLeft-be2bb52b.png",revision:null},{url:"assets/UpLeft-d457a441.png",revision:null},{url:"assets/UpLeft-ef9a2609.png",revision:null},{url:"assets/upleftBodyActive-bc79d60f.png",revision:null},{url:"assets/upleftBodyInactive-f60085c6.png",revision:null},{url:"assets/UpRight-2e4dc3f1.png",revision:null},{url:"assets/UpRight-7924deeb.png",revision:null},{url:"assets/UpRight-8a892589.png",revision:null},{url:"assets/UpRight-91e454bc.png",revision:null},{url:"assets/UpRight-af6dd110.png",revision:null},{url:"assets/UpRight-fda6b516.png",revision:null},{url:"assets/uprightBodyActive-3d912f52.png",revision:null},{url:"assets/uprightBodyInactive-01c6c977.png",revision:null},{url:"assets/w0-6f86addb.png",revision:null},{url:"assets/w1-c8c43b0f.png",revision:null},{url:"assets/w2-37282ba8.png",revision:null},{url:"assets/w3-3c2ca2d8.png",revision:null},{url:"assets/w4-ce0f95de.png",revision:null},{url:"assets/w5-23173d4f.png",revision:null},{url:"assets/way_off-8bc3fd65.png",revision:null},{url:"assets/way_off-bc2cdf11.png",revision:null},{url:"assets/way_off-cc9a5377.png",revision:null},{url:"assets/white_fantastic-6c519378.png",revision:null},{url:"assets/white_fantastic-9f83da7a.png",revision:null},{url:"assets/white_fantastic-b65b4f11.png",revision:null},{url:"assets/icon/icon_512.png",revision:"1a4014fcbfaa08050ff38cabb8235165"},{url:"manifest.json",revision:"1d72161daa4e530e15d85baf4906bf4c"}],{ignoreURLParametersMatching:[/^flags/,/^url/,/^chartIndex/,/^chartType/]}),s.cleanupOutdatedCaches()}));