(()=>{var e,t,r={},n={};function o(e){var t=n[e];if(void 0!==t)return t.exports;var a=n[e]={id:e,exports:{}};return r[e].call(a.exports,a,a.exports,o),a.exports}o.m=r,o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((t,r)=>(o.f[r](e,t),t)),[])),o.u=e=>"./build/"+e+".js",o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="piano-roll:",o.l=(r,n,a,i)=>{if(e[r])e[r].push(n);else{var s,c;if(void 0!==a)for(var l=document.getElementsByTagName("script"),u=0;u<l.length;u++){var d=l[u];if(d.getAttribute("src")==r||d.getAttribute("data-webpack")==t+a){s=d;break}}s||(c=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,o.nc&&s.setAttribute("nonce",o.nc),s.setAttribute("data-webpack",t+a),s.src=r),e[r]=[n];var p=(t,n)=>{s.onerror=s.onload=null,clearTimeout(f);var o=e[r];if(delete e[r],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach((e=>e(n))),t)return t(n)},f=setTimeout(p.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=p.bind(null,s.onerror),s.onload=p.bind(null,s.onload),c&&document.head.appendChild(s)}},(()=>{var e;o.g.importScripts&&(e=o.g.location+"");var t=o.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");r.length&&(e=r[r.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=e+"../"})(),(()=>{var e={309:0};o.f.j=(t,r)=>{var n=o.o(e,t)?e[t]:void 0;if(0!==n)if(n)r.push(n[2]);else{var a=new Promise(((r,o)=>n=e[t]=[r,o]));r.push(n[2]=a);var i=o.p+o.u(t),s=new Error;o.l(i,(r=>{if(o.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var a=r&&("load"===r.type?"missing":r.type),i=r&&r.target&&r.target.src;s.message="Loading chunk "+t+" failed.\n("+a+": "+i+")",s.name="ChunkLoadError",s.type=a,s.request=i,n[1](s)}}),"chunk-"+t,t)}};var t=(t,r)=>{var n,a,[i,s,c]=r,l=0;if(i.some((t=>0!==e[t]))){for(n in s)o.o(s,n)&&(o.m[n]=s[n]);c&&c(o)}for(t&&t(r);l<i.length;l++)a=i[l],o.o(e,a)&&e[a]&&e[a][0](),e[a]=0},r=self.webpackChunkpiano_roll=self.webpackChunkpiano_roll||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})(),Promise.all([o.e(644),o.e(808)]).then((function(){var e=[o(5093),o(4977),o(7365),o(8437),o(6775),o(1538),o(3210),o(5645),o(1826),o(9666),o(1740)];(function(e,t,r,n,o,a,i,s,c,l,u){e((function(){var e=new r,s=new t(document.body),d=new n(document.body);new u(document.body,s,d),s.setScore(a),d.onInstrument((function(t){e.setInstrument(t)})),d.onPlay((function(t){t?s.start():(s.stop(),e.releaseAll())})),d.onScore((function(e){s.setScore(e)}));var p=!1;if(d.onRecord((function(e){e?(p="started"===o.state,s.stop()):p&&(p=!1,s.start())})),d.onBuffer((function(t,r,n){e.setBuffer(t,r,n)})),s.onnote=function(t,r,n,o){e.triggerAttackRelease(t,r,n,o)},s.onstop=function(){e.releaseAll()},new l((function(){o.stop(),s.stop(),d.stop()})),window.parent.postMessage("loaded","*"),/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream){var f=document.createElement("div");f.id="iOSTap",document.body.appendChild(f),new i(c.context,f).then((function(){f.remove(),window.parent.postMessage("ready","*")}))}else window.parent.postMessage("ready","*")}))}).apply(null,e)})).catch(o.oe)})();