(function(e){function t(t){for(var r,s,o=t[0],u=t[1],c=t[2],h=0,d=[];h0?r("v-slider",{staticClass:"progress-slider",attrs:{value:this.playbackEngine.currentIterationStep,min:0,max:this.playbackEngine.iterationSteps,step:1},on:{input:function(t){return e.playbackEngine.jumpToStep(t)}}}):t._e(),r("v-list-tile",[r("v-list-tile-content",[r("v-list-tile-title",[t._v(t._s(t.scoreTitle))]),r("v-list-tile-sub-title")],1),r("v-list-tile-action",{class:{"mr-2":t.$vuetify.breakpoint.mdAndUp}},["PLAYING"!==t.playbackEngine.state?r("v-btn",{attrs:{icon:""},on:{click:function(e){return t.playbackEngine.play()}}},[r("v-icon",{attrs:{dark:""}},[t._v("play_arrow")])],1):r("v-btn",{attrs:{icon:""},on:{click:function(e){return t.playbackEngine.pause()}}},[r("v-icon",{attrs:{dark:""}},[t._v("pause")])],1)],1),r("v-list-tile-action",[r("v-btn",{attrs:{icon:""},on:{click:function(e){return t.playbackEngine.stop()}}},[r("v-icon",{attrs:{dark:""}},[t._v("stop")])],1)],1)],1)],1)],1)],1)],1)},B=[],D={props:{playbackEngine:Object,scoreTitle:String}},M=D,V=(n("d155"),Object(y["a"])(M,j,B,!1,null,null,null)),G=V.exports,H=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.scoreLoading||!e.ready?n("div",{staticClass:"score-progress"},[n("v-progress-circular",{attrs:{size:60,color:"primary",indeterminate:""}})],1):e._e(),n("div",{directives:[{name:"show",rawName:"v-show",value:!e.scoreLoading,expression:"!scoreLoading"}],ref:"scorediv",staticClass:"score",style:{opacity:e.ready?100:0}})])},$=[],Q=n("bc3a"),R=n.n(Q),z=n("2938");function U(e,t,n,r,i,a,s){try{var o=e[a](s),u=o.value}catch(c){return void n(c)}o.done?t(u):Promise.resolve(u).then(r,i)}function X(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function s(e){U(a,r,i,s,o,"next",e)}function o(e){U(a,r,i,s,o,"throw",e)}s(void 0)}))}}var Y={props:["score","ready"],data:function(){return{osmd:null,scoreLoading:!1}},watch:{score:function(e,t){e&&e!==t&&this.loadScore(e)}},mounted:function(){var e=X(c.a.mark((function e(){return c.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.osmd=new z["OpenSheetMusicDisplay"](this.$refs.scorediv,{followCursor:!0,autoResize:!1}),this.$emit("osmdInit",this.osmd),this.score&&this.loadScore(this.score);case 3:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),methods:{loadScore:function(){var e=X(c.a.mark((function e(t){var n;return c.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.scoreLoading=!0,e.next=3,R.a.get(t);case 3:return n=e.sent,e.next=6,this.osmd.load(n.data);case 6:return this.scoreLoading=!1,e.next=9,this.$nextTick();case 9:return e.next=11,this.osmd.render();case 11:this.$emit("scoreLoaded");case 12:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()}},W=Y,J=(n("b569"),n("dbf1"),Object(y["a"])(W,H,$,!1,null,"1dc2239e",null)),K=J.exports,q=[{value:"/sheets/Fundamental-Level 1-4 Alto Saxophone.xml",text:"Fundamental-Level 1-4 Alto Saxophone"},{value:"/sheets/Beethoven_AnDieFerneGeliebte.xml",text:"Beethoven_AnDieFerneGeliebte"},{value:"/sheets/Fundamental-Level 1-4 Baritone Saxophone.xml",text:"Fundamental-Level 1-4 Baritone Saxophone"},{value:"/sheets/Fundamental-Level 1-4 Bassoon.xml",text:"Fundamental-Level 1-4 Bassoon"},{value:"/sheets/Fundamental-Level 1-4 Bass Clarinet in Bb.xml",text:"Fundamental-Level 1-4 Bass Clarinet in Bb"},{value:"/sheets/Fundamental-Level 1-4 Clarinet in Bb.xml",text:"Fundamental-Level 1-4 Clarinet in Bb"},{value:"/sheets/Fundamental-Level 1-4 Clarinet in Eb.xml",text:"Fundamental-Level 1-4 Clarinet in Eb"},{value:"/sheets/Fundamental-Level 1-4 Euphonium.xml",text:"Fundamental-Level 1-4 Euphonium"},{value:"/sheets/Fundamental-Level 1-4 Flute.xml",text:"Fundamental-Level 1-4 Flute"},{value:"/sheets/Fundamental-Level 1-4 Horn in F.xml",text:"Fundamental-Level 1-4 Horn in F"},{value:"/sheets/Fundamental-Level 1-4 Oboe.xml",text:"Fundamental-Level 1-4 Oboe"},{value:"/sheets/Fundamental-Level 1-4 percussion.xml",text:"Fundamental-Level 1-4 percussion"},{value:"/sheets/Fundamental-Level 1-4 Tenor Saxophone.xml",text:"Fundamental-Level 1-4 Tenor Saxophone"},{value:"/sheets/Fundamental-Level 1-4 Trombone.xml",text:"Fundamental-Level 1-4 Trombone"},{value:"/sheets/Fundamental-Level 1-4 Trumpet in Bb.xml",text:"Fundamental-Level 1-4 Trumpet in Bb"},{value:"/sheets/Fundamental-Level 1-4 Tuba.xml",text:"Fundamental-Level 1-4 Tuba"}];function Z(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ee(e,t){for(var n=0;n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,o=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return s=e.done,e},e:function(e){o=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(o)throw a}}}}function ie(e,t){if(e){if("string"===typeof e)return ae(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ae(e,t):void 0}}function ae(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&(t=this.stepQueue.getFirstEmptyTick());var n,r=re(e);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(!i.IsGrace){var a,s=re(i.Notes);try{for(s.s();!(a=s.n()).done;){var o=a.value;this.stepQueue.addNote(t,o),this.stepQueue.createStep(t+o.Length.RealValue*this.tickDenominator)}}catch(u){s.e(u)}finally{s.f()}}}}catch(u){r.e(u)}finally{r.f()}}},{key:"scheduleIterationStep",value:function(){var e,t;if(this.playing){this.currentTick=this.calculatedTick,this.currentTickTimestamp=this.audioContextTime;var n=null===(e=this.stepQueue.steps[this.stepQueueIndex])||void 0===e?void 0:e.tick;while(this.nextTickAvailableAndWithinSchedulePeriod(n)){var r=this.stepQueue.steps[this.stepQueueIndex],i=(r.tick-this.currentTick)*this.tickDuration;i<0&&(i=0),this.scheduledTicks.add(r.tick),this.noteSchedulingCallback(i/1e3,r.notes),this.stepQueueIndex++,n=null===(t=this.stepQueue.steps[this.stepQueueIndex])||void 0===t?void 0:t.tick}var a,s=re(this.scheduledTicks);try{for(s.s();!(a=s.n()).done;){var o=a.value;o<=this.currentTick&&this.scheduledTicks.delete(o)}}catch(u){s.e(u)}finally{s.f()}}}},{key:"nextTickAvailableAndWithinSchedulePeriod",value:function(e){return e&&this.currentTickTimestamp+(e-this.currentTick)*this.tickDuration<=this.currentTickTimestamp+this.schedulePeriod}},{key:"schedulePeriodTicks",get:function(){return this.schedulePeriod/this.tickDuration}},{key:"audioContextTime",get:function(){return this.audioContext?1e3*(this.audioContext.currentTime-this.audioContextStartTime):0}},{key:"tickDuration",get:function(){return this.wholeNoteLength/this.tickDenominator}},{key:"calculatedTick",get:function(){return this.currentTick+Math.round((this.audioContextTime-this.currentTickTimestamp)/this.tickDuration)}}]),e}();(function(e){e[e["None"]=0]="None",e[e["Staccato"]=1]="Staccato",e[e["Legato"]=2]="Legato"})(ce||(ce={}));var he=[[0,"Acoustic Grand Piano"],[1,"Bright Acoustic Piano"],[2,"Electric Grand Piano"],[3,"Honky-tonk Piano"],[4,"Electric Piano 1"],[5,"Electric Piano 2"],[6,"Harpsichord"],[7,"Clavi"],[8,"Celesta"],[9,"Glockenspiel"],[10,"Music Box"],[11,"Vibraphone"],[12,"Marimba"],[13,"Xylophone"],[14,"Tubular Bells"],[15,"Dulcimer"],[16,"Drawbar Organ"],[17,"Percussive Organ"],[18,"Rock Organ"],[19,"Church Organ"],[20,"Reed Organ"],[21,"Accordion"],[22,"Harmonica"],[23,"Tango Accordion"],[24,"Acoustic Guitar (nylon)"],[25,"Acoustic Guitar (steel)"],[26,"Electric Guitar (jazz)"],[27,"Electric Guitar (clean)"],[28,"Electric Guitar (muted)"],[29,"Overdriven Guitar"],[30,"Distortion Guitar"],[31,"Guitar harmonics"],[32,"Acoustic Bass"],[33,"Electric Bass (finger)"],[34,"Electric Bass (pick)"],[35,"Fretless Bass"],[36,"Slap Bass 1"],[37,"Slap Bass 2"],[38,"Synth Bass 1"],[39,"Synth Bass 2"],[40,"Violin"],[41,"Viola"],[42,"Cello"],[43,"Contrabass"],[44,"Tremolo Strings"],[45,"Pizzicato Strings"],[46,"Orchestral Harp"],[47,"Timpani"],[48,"String Ensemble 1"],[49,"String Ensemble 2"],[50,"SynthStrings 1"],[51,"SynthStrings 2"],[52,"Choir Aahs"],[53,"Voice Oohs"],[54,"Synth Choir"],[55,"Orchestra Hit"],[56,"Trumpet"],[57,"Trombone"],[58,"Tuba"],[59,"Muted Trumpet"],[60,"French Horn"],[61,"Brass Section"],[62,"SynthBrass 1"],[63,"SynthBrass 2"],[64,"Soprano Sax"],[65,"Alto Sax"],[66,"Tenor Sax"],[67,"Baritone Sax"],[68,"Oboe"],[69,"English Horn"],[70,"Bassoon"],[71,"Clarinet"],[72,"Piccolo"],[73,"Flute"],[74,"Recorder"],[75,"Pan Flute"],[76,"Blown Bottle"],[77,"Shakuhachi"],[78,"Whistle"],[79,"Ocarina"],[80,"Lead 1 (square)"],[81,"Lead 2 (sawtooth)"],[82,"Lead 3 (calliope)"],[83,"Lead 4 (chiff)"],[84,"Lead 5 (charang)"],[85,"Lead 6 (voice)"],[86,"Lead 7 (fifths)"],[87,"Lead 8 (bass + lead)"],[88,"Pad 1 (new age)"],[89,"Pad 2 (warm)"],[90,"Pad 3 (polysynth)"],[91,"Pad 4 (choir)"],[92,"Pad 5 (bowed)"],[93,"Pad 6 (metallic)"],[94,"Pad 7 (halo)"],[95,"Pad 8 (sweep)"],[96,"FX 1 (rain)"],[97,"FX 2 (soundtrack)"],[98,"FX 3 (crystal)"],[99,"FX 4 (atmosphere)"],[100,"FX 5 (brightness)"],[101,"FX 6 (goblins)"],[102,"FX 7 (echoes)"],[103,"FX 8 (sci-fi)"],[104,"Sitar"],[105,"Banjo"],[106,"Shamisen"],[107,"Koto"],[108,"Kalimba"],[109,"Bag pipe"],[110,"Fiddle"],[111,"Shanai"],[112,"Tinkle Bell"],[113,"Agogo"],[114,"Steel Drums"],[115,"Woodblock"],[116,"Taiko Drum"],[117,"Melodic Tom"],[118,"Synth Drum"],[119,"Reverse Cymbal"],[120,"Guitar Fret Noise"],[121,"Breath Noise"],[122,"Seashore"],[123,"Bird Tweet"],[124,"Telephone Ring"],[125,"Helicopter"],[126,"Applause"],[127,"Gunshot"]],de=["accordion","acoustic_bass","acoustic_grand_piano","acoustic_guitar_nylon","acoustic_guitar_steel","agogo","alto_sax","applause","bagpipe","banjo","baritone_sax","bassoon","bird_tweet","blown_bottle","brass_section","breath_noise","bright_acoustic_piano","celesta","cello","choir_aahs","church_organ","clarinet","clavinet","contrabass","distortion_guitar","drawbar_organ","dulcimer","electric_bass_finger","electric_bass_pick","electric_grand_piano","electric_guitar_clean","electric_guitar_jazz","electric_guitar_muted","electric_piano_1","electric_piano_2","english_horn","fiddle","flute","french_horn","fretless_bass","fx_1_rain","fx_2_soundtrack","fx_3_crystal","fx_4_atmosphere","fx_5_brightness","fx_6_goblins","fx_7_echoes","fx_8_scifi","glockenspiel","guitar_fret_noise","guitar_harmonics","gunshot","harmonica","harpsichord","helicopter","honkytonk_piano","kalimba","koto","lead_1_square","lead_2_sawtooth","lead_3_calliope","lead_4_chiff","lead_5_charang","lead_6_voice","lead_7_fifths","lead_8_bass__lead","marimba","melodic_tom","music_box","muted_trumpet","oboe","ocarina","orchestra_hit","orchestral_harp","overdriven_guitar","pad_1_new_age","pad_2_warm","pad_3_polysynth","pad_4_choir","pad_5_bowed","pad_6_metallic","pad_7_halo","pad_8_sweep","pan_flute","percussive_organ","piccolo","pizzicato_strings","recorder","reed_organ","reverse_cymbal","rock_organ","seashore","shakuhachi","shamisen","shanai","sitar","slap_bass_1","slap_bass_2","soprano_sax","steel_drums","string_ensemble_1","string_ensemble_2","synth_bass_1","synth_bass_2","synth_brass_1","synth_brass_2","synth_choir","synth_drum","synth_strings_1","synth_strings_2","taiko_drum","tango_accordion","telephone_ring","tenor_sax","timpani","tinkle_bell","tremolo_strings","trombone","trumpet","tuba","tubular_bells","vibraphone","viola","violin","voice_oohs","whistle","woodblock","xylophone"],fe=n("7c27");function pe(e,t){var n;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=me(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,o=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return s=e.done,e},e:function(e){o=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(o)throw a}}}}function me(e,t){if(e){if("string"===typeof e)return ve(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ve(e,t):void 0}}function ve(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,o=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return s=e.done,e},e:function(e){o=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(o)throw a}}}}function Te(e,t){if(e){if("string"===typeof e)return Pe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Pe(e,t):void 0}}function Pe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?n-1:0),i=1;i=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,o=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return s=e.done,e},e:function(e){o=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(o)throw a}}}}function Me(e,t){if(e){if("string"===typeof e)return Ve(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ve(e,t):void 0}}function Ve(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:new Oe["AudioContext"],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new _e;Ge(this,e),this.defaultBpm=100,this.scoreInstruments=[],this.ready=!1,this.ac=t,this.ac.suspend(),this.instrumentPlayer=n,this.instrumentPlayer.init(this.ac),this.availableInstruments=this.instrumentPlayer.instruments,this.events=new Ce,this.cursor=null,this.sheet=null,this.denominator=null,this.scheduler=null,this.iterationSteps=0,this.currentIterationStep=0,this.timeoutHandles=[],this.playbackSettings={bpm:this.defaultBpm,masterVolume:1},this.setState(Qe.INIT)}return $e(e,[{key:"getPlaybackInstrument",value:function(e){if(!this.sheet)return null;var t=this.sheet.Instruments.flatMap((function(e){return e.Voices})).find((function(t){return t.VoiceId===e}));return this.availableInstruments.find((function(e){return e.midiId===t.midiInstrumentId}))}},{key:"setInstrument",value:function(e,t){return ze(this,void 0,void 0,c.a.mark((function n(){return c.a.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,this.instrumentPlayer.load(t);case 2:e.midiInstrumentId=t;case 3:case"end":return n.stop()}}),n,this)})))}},{key:"loadScore",value:function(e){return ze(this,void 0,void 0,c.a.mark((function t(){var n=this;return c.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.ready=!1,this.sheet=e.Sheet,this.scoreInstruments=this.sheet.Instruments,this.cursor=e.cursor,this.denominator=this.sheet.SheetPlaybackSetting.rhythm.Denominator,this.sheet.HasBPMInfo&&this.setBpm(this.sheet.DefaultStartTempoInBpm),t.next=8,this.loadInstruments();case 8:this.initInstruments(),this.scheduler=new le(this.denominator,this.wholeNoteLength,this.ac,(function(e,t){return n.notePlaybackCallback(e,t)})),this.countAndSetIterationSteps(),this.ready=!0,this.setState(Qe.STOPPED);case 13:case"end":return t.stop()}}),t,this)})))}},{key:"initInstruments",value:function(){var e,t=De(this.sheet.Instruments);try{for(t.s();!(e=t.n()).done;){var n,r=e.value,i=De(r.Voices);try{for(i.s();!(n=i.n()).done;){var a=n.value;a.midiInstrumentId=r.MidiInstrumentId}}catch(s){i.e(s)}finally{i.f()}}}catch(s){t.e(s)}finally{t.f()}}},{key:"loadInstruments",value:function(){return ze(this,void 0,void 0,c.a.mark((function e(){var t,n,r,i,a=this;return c.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t=[],n=De(this.sheet.Instruments);try{for(i=function(){var e=r.value,n=a.availableInstruments.find((function(t){return t.midiId===e.MidiInstrumentId}));null==n&&a.fallbackToPiano(e),t.push(a.instrumentPlayer.load(e.MidiInstrumentId))},n.s();!(r=n.n()).done;)i()}catch(s){n.e(s)}finally{n.f()}return e.next=5,Promise.all(t);case 5:case"end":return e.stop()}}),e,this)})))}},{key:"fallbackToPiano",value:function(e){if(console.warn("Can't find playback instrument for midiInstrumentId ".concat(e.MidiInstrumentId,". Falling back to piano")),e.MidiInstrumentId=0,null==this.availableInstruments.find((function(e){return 0===e.midiId})))throw new Error("Piano fallback failed, grand piano not supported")}},{key:"play",value:function(){return ze(this,void 0,void 0,c.a.mark((function e(){return c.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.ac.resume();case 2:this.state!==Qe.INIT&&this.state!==Qe.STOPPED||this.cursor.show(),this.setState(Qe.PLAYING),this.scheduler.start();case 5:case"end":return e.stop()}}),e,this)})))}},{key:"stop",value:function(){return ze(this,void 0,void 0,c.a.mark((function e(){return c.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.setState(Qe.STOPPED),this.stopPlayers(),this.clearTimeouts(),this.scheduler.reset(),this.cursor.reset(),this.currentIterationStep=0,this.cursor.hide();case 7:case"end":return e.stop()}}),e,this)})))}},{key:"pause",value:function(){this.setState(Qe.PAUSED),this.ac.suspend(),this.stopPlayers(),this.scheduler.setIterationStep(this.currentIterationStep),this.scheduler.pause(),this.clearTimeouts()}},{key:"jumpToStep",value:function(e){this.pause(),this.currentIterationStep>e&&(this.cursor.reset(),this.currentIterationStep=0);while(this.currentIterationStep0&&this.currentIterationStep0&&this.cursor.next(),++this.currentIterationStep)}},{key:"wholeNoteLength",get:function(){return Math.round(60/this.playbackSettings.bpm*this.denominator*1e3)}}]),e}();function Xe(e,t,n,r,i,a,s){try{var o=e[a](s),u=o.value}catch(c){return void n(c)}o.done?t(u):Promise.resolve(u).then(r,i)}function Ye(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function s(e){Xe(a,r,i,s,o,"next",e)}function o(e){Xe(a,r,i,s,o,"throw",e)}s(void 0)}))}}var We={name:"app",components:{osmd:null,Score:K,PlaybackSidebar:N,PlaybackControls:G},data:function(){return{pbEngine:new Ue,pbEngineReady:!1,scores:q,selectedScore:null,osmd:null,scoreTitle:"",drawer:!0,mounted:!1}},computed:{},methods:{osmdInit:function(e){console.log("OSMD init"),this.osmd=e,this.selectedScore=q[0].value},scoreLoaded:function(){var e=Ye(c.a.mark((function e(){return c.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return console.log("Score loaded"),this.osmd.sheet.title&&(this.scoreTitle=this.osmd.sheet.title.text),e.next=4,this.pbEngine.loadScore(this.osmd);case 4:console.log("pbEngine ready"),this.pbEngineReady=!0;case 6:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),scoreChanged:function(e){"PLAYING"===this.pbEngine.state&&this.pbEngine.stop(),this.selectedScore=e,this.pbEngineReady=!1}},mounted:function(){var e=this;setTimeout((function(){e.mounted=!0}),200)}},Je=We,Ke=(n("5c0b"),Object(y["a"])(Je,s,o,!1,null,null,null)),qe=Ke.exports;r["default"].use(a.a),r["default"].config.productionTip=!1,new r["default"]({render:function(e){return e(qe)}}).$mount("#app")},"5c0b":function(e,t,n){"use strict";var r=n("e332"),i=n.n(r);i.a},"6a4b":function(e,t,n){},aaab:function(e,t,n){},b1a1:function(e,t,n){"use strict";var r=n("dec8"),i=n.n(r);i.a},b569:function(e,t,n){"use strict";var r=n("6a4b"),i=n.n(r);i.a},d155:function(e,t,n){"use strict";var r=n("aaab"),i=n.n(r);i.a},dbf1:function(e,t,n){"use strict";var r=n("19e7"),i=n.n(r);i.a},dec8:function(e,t,n){},e332:function(e,t,n){}});