/*! For license information please see main.7aa540a7.js.LICENSE.txt */ (function(){var __webpack_modules__={1174:function(e,t,n){"use strict";var r,o=n(7061).default,i=n(7156).default,a=n(6690).default,u=n(9728).default,l=this&&this.__classPrivateFieldSet||function(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n},c=this&&this.__classPrivateFieldGet||function(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)};Object.defineProperty(t,"__esModule",{value:!0}),t.Omnibus=void 0;var s=n(8714),f=function(){function e(){a(this,e),r.set(this,void 0),l(this,r,new Map)}return u(e,[{key:"on",value:function(e,t){var n=this;return c(this,r).has(e)||c(this,r).set(e,[]),c(this,r).get(e).push(t),function(){n.off(e,t)}}},{key:"off",value:function(e,t){var n=c(this,r).get(e)||[];c(this,r).set(e,n.filter((function(e){return e!==t})))}},{key:"offAll",value:function(){l(this,r,new Map)}},{key:"trigger",value:function(){var e=i(o().mark((function e(t){var n,i,a,u,l=arguments;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(n=l.length,i=new Array(n>1?n-1:0),a=1;a1&&void 0!==arguments[1]?arguments[1]:y;o(this,e),this.omnibus=new u.Omnibus,this.tempoSamples=[],this.registerInput(t),this.options=n}return i(e,[{key:"tempo",get:function(){if(!this.options.computeClockTempo)throw new h.MIDIValConfigurationError("To use MIDIValInput.tempo you need to enable computeClockTempo option.");return(0,p.ticksToBPM)(this.tempoSamples)}},{key:"registerInput",value:function(e){return a(this,void 0,void 0,r().mark((function t(){var n,o=this;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.midiInput=e,t.next=3,e.onMessage((function(e){if(240!==e.data[0]){if(!o.isClockCommand(e)){var t=(0,l.toMidiMessage)(e.data);switch(t.command){case f.MidiCommand.NoteOn:o.omnibus.trigger("noteOn",(0,v.toNoteMessage)(t));break;case f.MidiCommand.NoteOff:o.omnibus.trigger("noteOff",(0,v.toNoteMessage)(t));break;case f.MidiCommand.ControlChange:o.omnibus.trigger("controlChange",(0,v.toControlChangeMessage)(t));break;case f.MidiCommand.ProgramChange:o.omnibus.trigger("programChange",(0,v.toProgramMessage)(t));break;case f.MidiCommand.PolyKeyPressure:o.omnibus.trigger("polyKeyPressure",t);break;case f.MidiCommand.PitchBend:o.omnibus.trigger("pitchBend",(0,s.splitValueIntoFraction)([t.data1,t.data2]));break;default:console.log("unknown msg",t)}}}else o.omnibus.trigger("sysex",e.data)}));case 3:this.unregisterInput=t.sent,this.options.computeClockTempo&&(this.onClockPulse((function(){o.tempoSamples.push(performance.now()),o.tempoSamples.length>20&&o.tempoSamples.shift()})),n=function(){o.tempoSamples=[]},this.onClockContinue(n),this.onClockStart(n));case 5:case"end":return t.stop()}}),t,this)})))}},{key:"isClockCommand",value:function(e){switch(e.data[0]){case f.MidiCommand.Clock.Pulse:return this.omnibus.trigger("clockPulse"),!0;case f.MidiCommand.Clock.Start:return this.omnibus.trigger("clockStart"),!0;case f.MidiCommand.Clock.Continue:return this.omnibus.trigger("clockContinue"),!0;case f.MidiCommand.Clock.Stop:return this.omnibus.trigger("clockStop"),!0;default:return!1}}},{key:"onBusKeyValue",value:function(e,t,n,r){return this.omnibus.on(e,(function(){if(arguments.length){var e=arguments.length<=0?void 0:arguments[0];e[t]===n&&r(e)}}))}},{key:"disconnect",value:function(){this.omnibus.offAll(),this.unregisterInput&&this.unregisterInput()}},{key:"onAllNoteOn",value:function(e){return this.omnibus.on("noteOn",e)}},{key:"onNoteOn",value:function(e,t){return this.omnibus.on("noteOn",(function(n){if(n.note===e)return t(n)}))}},{key:"onAllNoteOff",value:function(e){return this.omnibus.on("noteOff",e)}},{key:"onNoteOff",value:function(e,t){return this.onBusKeyValue("noteOff","note",e,t)}},{key:"onPitchBend",value:function(e){return this.omnibus.on("pitchBend",e)}},{key:"onAllControlChange",value:function(e){return this.omnibus.on("controlChange",e)}},{key:"onControlChange",value:function(e,t){return(0,l.isChannelMode)(e)&&console.warn("use designated Channel Mode callback instead of onControlChange for "+e),this.omnibus.on("controlChange",(function(n){n.control===e&&t(n)}))}},{key:"onAllProgramChange",value:function(e){return this.omnibus.on("programChange",e)}},{key:"onProgramChange",value:function(e,t){return this.onBusKeyValue("programChange","program",e,t)}},{key:"onAllPolyKeyPressure",value:function(e){return this.omnibus.on("polyKeyPressure",e)}},{key:"onPolyKeyPressure",value:function(e,t){return this.onBusKeyValue("polyKeyPressure","data1",e,t)}},{key:"onSysex",value:function(e){return this.omnibus.on("sysex",e)}},{key:"onAllSoundsOff",value:function(e){return this.onBusKeyValue("controlChange","control",d.MidiControlChange.AllSoundsOff,e)}},{key:"onResetAllControllers",value:function(e){return this.onBusKeyValue("controlChange","control",d.MidiControlChange.ResetAllControllers,e)}},{key:"onLocalControlChange",value:function(e){return this.onBusKeyValue("controlChange","control",d.MidiControlChange.LocalControlOnOff,(function(t){e(127===t.data2,t)}))}},{key:"onAllNotesOff",value:function(e){return this.onBusKeyValue("controlChange","control",d.MidiControlChange.AllNotesOff,e)}},{key:"onOmniModeOff",value:function(e){return this.onBusKeyValue("controlChange","control",d.MidiControlChange.OmniModeOff,e)}},{key:"onOmniModeOn",value:function(e){return this.onBusKeyValue("controlChange","control",d.MidiControlChange.OmniModeOn,e)}},{key:"onMonoModeOn",value:function(e){return this.onBusKeyValue("controlChange","control",d.MidiControlChange.MonoModeOn,e)}},{key:"onPolyModeOn",value:function(e){return this.onBusKeyValue("controlChange","control",d.MidiControlChange.PolyModeOn,e)}},{key:"onClockPulse",value:function(e){return this.omnibus.on("clockPulse",e)}},{key:"onClockStart",value:function(e){return this.omnibus.on("clockStart",e)}},{key:"onClockStop",value:function(e){return this.omnibus.on("clockStop",e)}},{key:"onClockContinue",value:function(e){return this.omnibus.on("clockContinue",e)}}],[{key:"fromInterfaceId",value:function(t,n){return a(this,void 0,void 0,r().mark((function o(){var i,a;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,this.getMidiAccess();case 2:if(i=r.sent,a=i.inputs.find((function(e){return e.id===t}))){r.next=6;break}throw new h.MIDIValError("".concat(t," not found"));case 6:return r.abrupt("return",new e(a,n));case 7:case"end":return r.stop()}}),o,this)})))}},{key:"fromInterfaceName",value:function(t,n){return a(this,void 0,void 0,r().mark((function o(){var i,a;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,this.getMidiAccess();case 2:if(i=r.sent,a=i.inputs.find((function(e){return e.name===t}))){r.next=6;break}throw new h.MIDIValError("".concat(t," not found"));case 6:return r.abrupt("return",new e(a,n));case 7:case"end":return r.stop()}}),o,this)})))}},{key:"getMidiAccess",value:function(){return a(this,void 0,void 0,r().mark((function e(){var t;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,c.MIDIVal.connect();case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)})))}}]),e}();t.MIDIValInput=g},5280:function(e,t,n){"use strict";var r=n(7061).default,o=n(861).default,i=n(6690).default,a=n(9728).default,u=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(t){i(t)}}function u(e){try{l(r.throw(e))}catch(t){i(t)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}l((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.MIDIValOutput=void 0;var l=n(4488),c=n(7313),s=n(8778),f=n(3713),d=function(){function e(t){i(this,e),this.midiOutput=t,this.defaultChannel=1}return a(e,[{key:"send",value:function(e){this.midiOutput&&this.midiOutput.send(e)}},{key:"setChannel",value:function(e){this.defaultChannel=e}},{key:"getChannel",value:function(e){return e?e-1:this.defaultChannel-1}},{key:"sendNoteOn",value:function(e,t,n){return this.send([s.MidiCommand.NoteOn+this.getChannel(n),e,t])}},{key:"sendNoteOff",value:function(e,t){return this.send([s.MidiCommand.NoteOff+this.getChannel(t),e,0])}},{key:"sendPolyKeyPressure",value:function(e,t,n){return this.send([s.MidiCommand.PolyKeyPressure+this.getChannel(n),e,t])}},{key:"sendControlChange",value:function(e,t,n){return this.send([s.MidiCommand.ControlChange+this.getChannel(n),e,t])}},{key:"sendProgramChange",value:function(e,t){return this.send([s.MidiCommand.ProgramChange+this.getChannel(t),e])}},{key:"sendChannelPressure",value:function(e,t){return this.send([s.MidiCommand.ChannelPressure+this.getChannel(t),e])}},{key:"sendPitchBend",value:function(e,t){return this.send(new Uint8Array([s.MidiCommand.PitchBend+this.getChannel(t)].concat(o((0,c.fractionToPitchBendAsUints)(e)))))}},{key:"sendAllSoundOff",value:function(e){return this.send([s.MidiCommand.ControlChange+this.getChannel(e),f.MidiControlChange.AllSoundsOff,0])}},{key:"sendResetAllControllers",value:function(e){return this.send([s.MidiCommand.ControlChange+this.getChannel(e),f.MidiControlChange.ResetAllControllers,0])}},{key:"sendLocalControlOff",value:function(e){return this.send([s.MidiCommand.ControlChange+this.getChannel(e),f.MidiControlChange.LocalControlOnOff,0])}},{key:"sendLocalControlOn",value:function(e){return this.send([s.MidiCommand.ControlChange+this.getChannel(e),f.MidiControlChange.LocalControlOnOff,127])}},{key:"sendAllNotesOff",value:function(e){return this.send([s.MidiCommand.ControlChange+this.getChannel(e),f.MidiControlChange.AllNotesOff,0])}},{key:"sendClockStart",value:function(){return this.send([s.MidiCommand.Clock.Start])}},{key:"sendClockStop",value:function(){return this.send([s.MidiCommand.Clock.Stop])}},{key:"sendClockContinue",value:function(){return this.send([s.MidiCommand.Clock.Continue])}},{key:"sendClockPulse",value:function(){return this.send([s.MidiCommand.Clock.Pulse])}}],[{key:"fromInterfaceName",value:function(t){return u(this,void 0,void 0,r().mark((function n(){var o,i;return r().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,this.getMidiAccess();case 2:if(o=n.sent,i=o.outputs.find((function(e){return e.name===t}))){n.next=6;break}throw new Error("".concat(t," not found"));case 6:return n.abrupt("return",new e(i));case 7:case"end":return n.stop()}}),n,this)})))}},{key:"getMidiAccess",value:function(){return u(this,void 0,void 0,r().mark((function e(){var t;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,l.MIDIVal.connect();case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)})))}}]),e}();t.MIDIValOutput=d},7410:function(e,t,n){"use strict";var r=n(7061).default,o=n(6690).default,i=n(9728).default,a=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(t){i(t)}}function u(e){try{l(r.throw(e))}catch(t){i(t)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}l((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.MIDIVal=t.matchesConfig=void 0;var u=n(5908),l=n(5280),c=n(2205);t.matchesConfig=function(e,t){return Object.keys(t).reduce((function(n,r){var o=t[r];return"string"===typeof o?n&&e[r]===o:n&&o.test(e[r])}),!0)};var s=function(){function e(){o(this,e)}return i(e,null,[{key:"configureAccessObject",value:function(e){this.isSetupComplete=!1,this.accessObject=e}},{key:"onInputDeviceConnected",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return a(this,void 0,void 0,r().mark((function n(){return r().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t&&this.accessObject.inputs.forEach(e),n.abrupt("return",this.accessObject.onInputConnected(e));case 2:case"end":return n.stop()}}),n,this)})))}},{key:"onInputDeviceWithConfigConnected",value:function(e,n){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return a(this,void 0,void 0,r().mark((function i(){return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",this.onInputDeviceConnected((function(r){(0,t.matchesConfig)(r,e)&&n(new u.MIDIValInput(r))}),o));case 1:case"end":return r.stop()}}),i,this)})))}},{key:"onOutputDeviceWithConfigConnected",value:function(e,n){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return a(this,void 0,void 0,r().mark((function i(){return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",this.onOutputDeviceConnected((function(r){(0,t.matchesConfig)(r,e)&&n(new l.MIDIValOutput(r))}),o));case 1:case"end":return r.stop()}}),i,this)})))}},{key:"onOutputDeviceConnected",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return a(this,void 0,void 0,r().mark((function n(){return r().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t&&this.accessObject.outputs.forEach(e),n.abrupt("return",this.accessObject.onOutputConnected(e));case 2:case"end":return n.stop()}}),n,this)})))}},{key:"onInputDeviceDisconnected",value:function(e){return a(this,void 0,void 0,r().mark((function t(){return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.accessObject.onInputDisconnected(e));case 1:case"end":return t.stop()}}),t,this)})))}},{key:"onOutputDeviceDisconnected",value:function(e){return a(this,void 0,void 0,r().mark((function t(){return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.accessObject.onOutputDisconnected(e));case 1:case"end":return t.stop()}}),t,this)})))}},{key:"fromMIDIInput",value:function(e){return new u.MIDIValInput(e)}},{key:"fromMIDIOutput",value:function(e){return new l.MIDIValOutput(e)}},{key:"connect",value:function(){return a(this,void 0,void 0,r().mark((function e(){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.setupDeviceWatchers();case 2:return e.abrupt("return",this.accessObject);case 3:case"end":return e.stop()}}),e,this)})))}},{key:"setupDeviceWatchers",value:function(){return a(this,void 0,void 0,r().mark((function e(){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.isSetupComplete){e.next=2;break}return e.abrupt("return");case 2:return this.isSetupComplete=!0,this.accessObject||(this.accessObject=new c.BrowserMIDIAccess),e.next=6,this.accessObject.connect();case 6:case"end":return e.stop()}}),e,this)})))}}]),e}();t.MIDIVal=s,s.isSetupComplete=!1},1088:function(e,t,n){"use strict";var r=n(6690).default,o=n(9728).default,i=n(1655).default,a=n(6389).default,u=n(3496).default;Object.defineProperty(t,"__esModule",{value:!0}),t.MIDIValConfigurationError=t.MIDIValError=void 0;var l=function(e){i(n,e);var t=a(n);function n(e){return r(this,n),t.call(this,e)}return o(n,[{key:"name",get:function(){return this.constructor.name}}]),n}(u(Error));t.MIDIValError=l;var c=function(e){i(n,e);var t=a(n);function n(){return r(this,n),t.apply(this,arguments)}return o(n)}(l);t.MIDIValConfigurationError=c},4488:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MIDIValOutput=t.MIDIValInput=t.MIDIVal=void 0;var r=n(7410);Object.defineProperty(t,"MIDIVal",{enumerable:!0,get:function(){return r.MIDIVal}});var o=n(5908);Object.defineProperty(t,"MIDIValInput",{enumerable:!0,get:function(){return o.MIDIValInput}});var i=n(5280);Object.defineProperty(t,"MIDIValOutput",{enumerable:!0,get:function(){return i.MIDIValOutput}})},3032:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toProgramMessage=t.toControlChangeMessage=t.toNoteMessage=void 0;t.toNoteMessage=function(e){return Object.assign(Object.assign({},e),{note:e.data1,velocity:e.data2})};t.toControlChangeMessage=function(e){return Object.assign(Object.assign({},e),{control:e.data1,value:e.data2})};t.toProgramMessage=function(e){return Object.assign(Object.assign({},e),{program:e.data1,value:e.data2})}},2103:function(e,t,n){"use strict";var r=n(7424).default;Object.defineProperty(t,"__esModule",{value:!0}),t.toMidiMessage=t.makeMessage=t.isChannelMode=void 0;t.isChannelMode=function(e){return e>=120};t.makeMessage=function(e){var t=e.channel,n=e.command,r=e.data1,o=e.data2;return Uint8Array.from([n+(t-1),r,o])};t.toMidiMessage=function(e){var t=r(e,3),n=t[0],o=n>>4<<4;return{channel:n-o+1,command:o,data1:t[1],data2:t[2]}}},9482:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ticksToBPM=t.quarternoteToBPM=t.averageIntervals=t.computeIntervalsInMs=void 0;var n=function(e,t){return e+t};t.computeIntervalsInMs=function(e){for(var t=[],n=1;n1)throw new Error("Pitch bend value outside the range");return Math.ceil(16383*(e+1)/2)};t.fractionToPitchBendAsUints=function(e){return(0,t.splitNumberIntoUInt8s)((0,t.fractionToPitchBend)(e))};t.splitNumberIntoUInt8s=function(e){var t=[];return t[0]=127&e,t[1]=e>>7,t};t.uIntsIntoNumber=function(e){return e[0]+(e[1]<<7)};t.splitValueIntoFraction=function(e){return 2*((0,t.uIntsIntoNumber)(e)/16363-.5)}},2205:function(e,t,n){"use strict";var r=n(7424).default,o=n(7061).default,i=n(6690).default,a=n(9728).default,u=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(t){i(t)}}function u(e){try{l(r.throw(e))}catch(t){i(t)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}l((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.BrowserMIDIAccess=void 0;var l=n(9079),c=n(9776),s=n(2088),f=function(){function e(){i(this,e),this.bus=new s.Omnibus}return a(e,[{key:"onInputConnected",value:function(e){return this.bus.on("inputConnected",e)}},{key:"onInputDisconnected",value:function(e){return this.bus.on("inputDisconnected",e)}},{key:"onOutputConnected",value:function(e){return this.bus.on("outputConnected",e)}},{key:"onOutputDisconnected",value:function(e){return this.bus.on("outputDisconnected",e)}},{key:"connect",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return u(this,void 0,void 0,o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(navigator.requestMIDIAccess){t.next=2;break}throw new Error("requestMIDIAccess not available, make sure you are using MIDI-compatible browser.");case 2:return t.next=4,navigator.requestMIDIAccess({sysex:e});case 4:this.access=t.sent,this.listenOnStateChange();case 6:case"end":return t.stop()}}),t,this)})))}},{key:"outputs",get:function(){return Array.from(this.access.outputs).map((function(e){var t=r(e,2)[1];return new l.BrowserMIDIOutput(t)}))}},{key:"inputs",get:function(){return Array.from(this.access.inputs).map((function(e){var t=r(e,2)[1];return new c.BrowserMIDIInput(t)}))}},{key:"getInputById",value:function(e){var t=Array.from(this.access.inputs).map((function(e){return r(e,2)[1]})).find((function(t){return t.id===e}));if(!t)throw new Error("Cannot find input ".concat(e));return new c.BrowserMIDIInput(t)}},{key:"getOutputById",value:function(e){var t=Array.from(this.access.outputs).map((function(e){return r(e,2)[1]})).find((function(t){return t.id===e}));if(!t)throw new Error("Cannot find output ".concat(e));return new l.BrowserMIDIOutput(t)}},{key:"listenOnStateChange",value:function(){var e=this;this.access.addEventListener("statechange",(function(t){if("input"===t.port.type)switch(t.port.state){case"disconnected":e.bus.trigger("inputDisconnected",new c.BrowserMIDIInput(t.port));break;case"connected":e.bus.trigger("inputConnected",new c.BrowserMIDIInput(t.port))}else switch(t.port.state){case"disconnected":e.bus.trigger("outputDisconnected",new l.BrowserMIDIOutput(t.port));break;case"connected":e.bus.trigger("outputConnected",new l.BrowserMIDIOutput(t.port))}}))}}]),e}();t.BrowserMIDIAccess=f},9776:function(e,t,n){"use strict";var r=n(7061).default,o=n(6690).default,i=n(9728).default,a=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(t){i(t)}}function u(e){try{l(r.throw(e))}catch(t){i(t)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}l((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.BrowserMIDIInput=void 0;var u=function(){function e(t){o(this,e),this.input=t}return i(e,[{key:"onMessage",value:function(e){return a(this,void 0,void 0,r().mark((function t(){var n=this;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.input.open();case 2:return this.input.addEventListener("midimessage",e),t.abrupt("return",(function(){n.input.removeEventListener("midimessage",e)}));case 4:case"end":return t.stop()}}),t,this)})))}},{key:"id",get:function(){return this.input.id}},{key:"name",get:function(){return this.input.name}},{key:"manufacturer",get:function(){return this.input.manufacturer}}]),e}();t.BrowserMIDIInput=u},9079:function(e,t,n){"use strict";var r=n(6690).default,o=n(9728).default;Object.defineProperty(t,"__esModule",{value:!0}),t.BrowserMIDIOutput=void 0;var i=function(){function e(t){r(this,e),this.output=t}return o(e,[{key:"send",value:function(e){this.output.send(e)}},{key:"id",get:function(){return this.output.id}},{key:"name",get:function(){return this.output.name}},{key:"manufacturer",get:function(){return this.output.manufacturer}}]),e}();t.BrowserMIDIOutput=i},9765:function(module){var e;window,e=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=164)}([function(e,t,n){"use strict";var r,o=n(5),i=n(1),a=n(11),u=n(8),l=n(51),c=n(9),s=n(13),f=n(7).f,d=n(50),p=n(37),h=n(4),v=n(44),y=i.DataView,g=y&&y.prototype,m=i.Int8Array,b=m&&m.prototype,_=i.Uint8ClampedArray,w=_&&_.prototype,S=m&&d(m),k=b&&d(b),x=Object.prototype,E=x.isPrototypeOf,C=h("toStringTag"),O=v("TYPED_ARRAY_TAG"),A=!(!i.ArrayBuffer||!y),P=A&&!!p&&"Opera"!==l(i.opera),M=!1,T={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},I=function(e){return a(e)&&u(T,l(e))};for(r in T)i[r]||(P=!1);if((!P||"function"!=typeof S||S===Function.prototype)&&(S=function(){throw TypeError("Incorrect invocation")},P))for(r in T)i[r]&&p(i[r],S);if((!P||!k||k===x)&&(k=S.prototype,P))for(r in T)i[r]&&p(i[r].prototype,k);if(P&&d(w)!==k&&p(w,k),o&&!u(k,C))for(r in M=!0,f(k,C,{get:function(){return a(this)?this[O]:void 0}}),T)i[r]&&c(i[r],O,r);A&&p&&d(g)!==x&&p(g,x),e.exports={NATIVE_ARRAY_BUFFER:A,NATIVE_ARRAY_BUFFER_VIEWS:P,TYPED_ARRAY_TAG:M&&O,aTypedArray:function(e){if(I(e))return e;throw TypeError("Target is not a typed array")},aTypedArrayConstructor:function(e){if(p){if(E.call(S,e))return e}else for(var t in T)if(u(T,r)){var n=i[t];if(n&&(e===n||E.call(n,e)))return e}throw TypeError("Target is not a typed array constructor")},exportProto:function(e,t,n){if(o){if(n)for(var r in T){var a=i[r];a&&u(a.prototype,e)&&delete a.prototype[e]}k[e]&&!n||s(k,e,n?t:P&&b[e]||t)}},exportStatic:function(e,t,n){var r,a;if(o){if(p){if(n)for(r in T)(a=i[r])&&u(a,e)&&delete a[e];if(S[e]&&!n)return;try{return s(S,e,n?t:P&&m[e]||t)}catch(e){}}for(r in T)!(a=i[r])||a[e]&&!n||s(a,e,t)}},isView:function(e){var t=l(e);return"DataView"===t||u(T,t)},isTypedArray:I,TypedArray:S,TypedArrayPrototype:k}},function(e,t,n){(function(t){var n="object",r=function(e){return e&&e.Math==Math&&e};e.exports=r(typeof globalThis==n&&globalThis)||r(typeof window==n&&window)||r(typeof self==n&&self)||r(typeof t==n&&t)||Function("return this")()}).call(this,n(100))},function(e,t,n){var r=n(1),o=n(33).f,i=n(9),a=n(13),u=n(55),l=n(71),c=n(75);e.exports=function(e,t){var n,s,f,d,p,h=e.target,v=e.global,y=e.stat;if(n=v?r:y?r[h]||u(h,{}):(r[h]||{}).prototype)for(s in t){if(d=t[s],f=e.noTargetGet?(p=o(n,s))&&p.value:n[s],!c(v?s:h+(y?".":"#")+s,e.forced)&&void 0!==f){if(typeof d==typeof f)continue;l(d,f)}(e.sham||f&&f.sham)&&i(d,"sham",!0),a(n,s,d,e)}}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var r=n(1),o=n(34),i=n(44),a=n(76),u=r.Symbol,l=o("wks");e.exports=function(e){return l[e]||(l[e]=a&&u[e]||(a?u:i)("Symbol."+e))}},function(e,t,n){var r=n(3);e.exports=!r((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(e,t,n){var r=n(17),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},function(e,t,n){var r=n(5),o=n(68),i=n(10),a=n(24),u=Object.defineProperty;t.f=r?u:function(e,t,n){if(i(e),t=a(t,!0),i(n),o)try{return u(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(5),o=n(7),i=n(21);e.exports=r?function(e,t,n){return o.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(11);e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){var r=n(23);e.exports=function(e){return Object(r(e))}},function(e,t,n){var r=n(1),o=n(34),i=n(9),a=n(8),u=n(55),l=n(70),c=n(25),s=c.get,f=c.enforce,d=String(l).split("toString");o("inspectSource",(function(e){return l.call(e)})),(e.exports=function(e,t,n,o){var l=!!o&&!!o.unsafe,c=!!o&&!!o.enumerable,s=!!o&&!!o.noTargetGet;"function"==typeof n&&("string"!=typeof t||a(n,"name")||i(n,"name",t),f(n).source=d.join("string"==typeof t?t:"")),e!==r?(l?!s&&e[t]&&(c=!0):delete e[t],c?e[t]=n:i(e,t,n)):c?e[t]=n:u(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&s(this).source||l.call(this)}))},function(e,t,n){var r=n(41),o=n(23);e.exports=function(e){return r(o(e))}},function(e,t,n){var r=n(58),o=n(41),i=n(12),a=n(6),u=n(106),l=[].push,c=function(e){var t=1==e,n=2==e,c=3==e,s=4==e,f=6==e,d=5==e||f;return function(p,h,v,y){for(var g,m,b=i(p),_=o(b),w=r(h,v,3),S=a(_.length),k=0,x=y||u,E=t?x(p,S):n?x(p,0):void 0;S>k;k++)if((d||k in _)&&(m=w(g=_[k],k,b),e))if(t)E[k]=m;else if(m)switch(e){case 3:return!0;case 5:return g;case 6:return k;case 2:l.call(E,g)}else if(s)return!1;return f?-1:c||s?s:E}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6)}},function(e,t,n){"use strict";var r=n(14),o=n(107),i=n(36),a=n(25),u=n(79),l=a.set,c=a.getterFor("Array Iterator");e.exports=u(Array,"Array",(function(e,t){l(this,{type:"Array Iterator",target:r(e),index:0,kind:t})}),(function(){var e=c(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(13),o=n(113),i=Object.prototype;o!==i.toString&&r(i,"toString",o,{unsafe:!0})},function(e,t,n){"use strict";var r=n(82).charAt,o=n(25),i=n(79),a=o.set,u=o.getterFor("String Iterator");i(String,"String",(function(e){a(this,{type:"String Iterator",string:String(e),index:0})}),(function(){var e,t=u(this),n=t.string,o=t.index;return o>=n.length?{value:void 0,done:!0}:(e=r(n,o),t.index+=e.length,{value:e,done:!1})}))},function(e,t,n){"use strict";var r=n(2),o=n(1),i=n(42),a=n(5),u=n(76),l=n(3),c=n(8),s=n(57),f=n(11),d=n(10),p=n(12),h=n(14),v=n(24),y=n(21),g=n(27),m=n(48),b=n(26),_=n(105),w=n(74),S=n(33),k=n(7),x=n(54),E=n(9),C=n(13),O=n(34),A=n(43),P=n(45),M=n(44),T=n(4),I=n(77),L=n(78),R=n(49),N=n(25),D=n(15).forEach,B=A("hidden"),F=T("toPrimitive"),j=N.set,q=N.getterFor("Symbol"),U=Object.prototype,W=o.Symbol,z=o.JSON,V=z&&z.stringify,K=S.f,G=k.f,H=_.f,Y=x.f,Q=O("symbols"),J=O("op-symbols"),X=O("string-to-symbol-registry"),$=O("symbol-to-string-registry"),Z=O("wks"),ee=o.QObject,te=!ee||!ee.prototype||!ee.prototype.findChild,ne=a&&l((function(){return 7!=g(G({},"a",{get:function(){return G(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=K(U,t);r&&delete U[t],G(e,t,n),r&&e!==U&&G(U,t,r)}:G,re=function(e,t){var n=Q[e]=g(W.prototype);return j(n,{type:"Symbol",tag:e,description:t}),a||(n.description=t),n},oe=u&&"symbol"==typeof W.iterator?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof W},ie=function e(t,n,r){t===U&&e(J,n,r),d(t);var o=v(n,!0);return d(r),c(Q,o)?(r.enumerable?(c(t,B)&&t[B][o]&&(t[B][o]=!1),r=g(r,{enumerable:y(0,!1)})):(c(t,B)||G(t,B,y(1,{})),t[B][o]=!0),ne(t,o,r)):G(t,o,r)},ae=function(e,t){d(e);var n=h(t),r=m(n).concat(se(n));return D(r,(function(t){a&&!ue.call(n,t)||ie(e,t,n[t])})),e},ue=function(e){var t=v(e,!0),n=Y.call(this,t);return!(this===U&&c(Q,t)&&!c(J,t))&&(!(n||!c(this,t)||!c(Q,t)||c(this,B)&&this[B][t])||n)},le=function(e,t){var n=h(e),r=v(t,!0);if(n!==U||!c(Q,r)||c(J,r)){var o=K(n,r);return!o||!c(Q,r)||c(n,B)&&n[B][r]||(o.enumerable=!0),o}},ce=function(e){var t=H(h(e)),n=[];return D(t,(function(e){c(Q,e)||c(P,e)||n.push(e)})),n},se=function(e){var t=e===U,n=H(t?J:h(e)),r=[];return D(n,(function(e){!c(Q,e)||t&&!c(U,e)||r.push(Q[e])})),r};u||(C((W=function(){if(this instanceof W)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=M(e),n=function e(n){this===U&&e.call(J,n),c(this,B)&&c(this[B],t)&&(this[B][t]=!1),ne(this,t,y(1,n))};return a&&te&&ne(U,t,{configurable:!0,set:n}),re(t,e)}).prototype,"toString",(function(){return q(this).tag})),x.f=ue,k.f=ie,S.f=le,b.f=_.f=ce,w.f=se,a&&(G(W.prototype,"description",{configurable:!0,get:function(){return q(this).description}}),i||C(U,"propertyIsEnumerable",ue,{unsafe:!0})),I.f=function(e){return re(T(e),e)}),r({global:!0,wrap:!0,forced:!u,sham:!u},{Symbol:W}),D(m(Z),(function(e){L(e)})),r({target:"Symbol",stat:!0,forced:!u},{for:function(e){var t=String(e);if(c(X,t))return X[t];var n=W(t);return X[t]=n,$[n]=t,n},keyFor:function(e){if(!oe(e))throw TypeError(e+" is not a symbol");if(c($,e))return $[e]},useSetter:function(){te=!0},useSimple:function(){te=!1}}),r({target:"Object",stat:!0,forced:!u,sham:!a},{create:function(e,t){return void 0===t?g(e):ae(g(e),t)},defineProperty:ie,defineProperties:ae,getOwnPropertyDescriptor:le}),r({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:ce,getOwnPropertySymbols:se}),r({target:"Object",stat:!0,forced:l((function(){w.f(1)}))},{getOwnPropertySymbols:function(e){return w.f(p(e))}}),z&&r({target:"JSON",stat:!0,forced:!u||l((function(){var e=W();return"[null]"!=V([e])||"{}"!=V({a:e})||"{}"!=V(Object(e))}))},{stringify:function(e){for(var t,n,r=[e],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=t=r[1],(f(t)||void 0!==e)&&!oe(e))return s(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!oe(t))return t}),r[1]=t,V.apply(z,r)}}),W.prototype[F]||E(W.prototype,F,W.prototype.valueOf),R(W,"Symbol"),P[B]=!0},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r=n(11);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var r,o,i,a=n(101),u=n(1),l=n(11),c=n(9),s=n(8),f=n(43),d=n(45),p=u.WeakMap;if(a){var h=new p,v=h.get,y=h.has,g=h.set;r=function(e,t){return g.call(h,e,t),t},o=function(e){return v.call(h,e)||{}},i=function(e){return y.call(h,e)}}else{var m=f("state");d[m]=!0,r=function(e,t){return c(e,m,t),t},o=function(e){return s(e,m)?e[m]:{}},i=function(e){return s(e,m)}}e.exports={set:r,get:o,has:i,enforce:function(e){return i(e)?o(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!l(t)||(n=o(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},function(e,t,n){var r=n(73),o=n(56).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},function(e,t,n){var r=n(10),o=n(103),i=n(56),a=n(45),u=n(104),l=n(69),c=n(43)("IE_PROTO"),s=function(){},f=function(){var e,t=l("iframe"),n=i.length;for(t.style.display="none",u.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write("