123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-vendors"],{"0019":function(t,e){},"003f":function(t,e){},"00d7":function(t,e){},"00e5":function(t,e){},"013e":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("5b43"),s=n("8af4");const r=(t,e,n,r,o,a)=>(c,{curve:l,oversample:u,...h})=>{const d=n(c,t=>t.createWaveShaper()),f=n(c,t=>t.createWaveShaper());Object(i["a"])(d,h),Object(i["a"])(f,h);const p=r(c,{...h,gain:1}),m=r(c,{...h,gain:-1}),g=r(c,{...h,gain:1}),b=r(c,{...h,gain:-1});let v=null,y=!1,S=null;const x={get bufferSize(){},get channelCount(){return d.channelCount},set channelCount(t){p.channelCount=t,m.channelCount=t,d.channelCount=t,g.channelCount=t,f.channelCount=t,b.channelCount=t},get channelCountMode(){return d.channelCountMode},set channelCountMode(t){p.channelCountMode=t,m.channelCountMode=t,d.channelCountMode=t,g.channelCountMode=t,f.channelCountMode=t,b.channelCountMode=t},get channelInterpretation(){return d.channelInterpretation},set channelInterpretation(t){p.channelInterpretation=t,m.channelInterpretation=t,d.channelInterpretation=t,g.channelInterpretation=t,f.channelInterpretation=t,b.channelInterpretation=t},get context(){return d.context},get curve(){return S},set curve(n){if(null!==l&&l.length<2)throw e();if(null===n)d.curve=n,f.curve=n;else{const t=n.length,e=new Float32Array(t+2-t%2),i=new Float32Array(t+2-t%2);e[0]=n[0],i[0]=-n[t-1];const s=Math.ceil((t+1)/2),r=(t+1)/2-1;for(let o=1;o<s;o+=1){const a=o/s*r,c=Math.floor(a),l=Math.ceil(a);e[o]=c===l?n[c]:(1-(a-c))*n[c]+(1-(l-a))*n[l],i[o]=c===l?-n[t-1-c]:-(1-(a-c))*n[t-1-c]-(1-(l-a))*n[t-1-l]}e[s]=t%2===1?n[s-1]:(n[s-2]+n[s-1])/2,d.curve=e,f.curve=i}S=n,y&&(o(S)&&null===v?v=t(c,p):null!==v&&(v(),v=null))},get inputs(){return[p]},get numberOfInputs(){return d.numberOfInputs},get numberOfOutputs(){return d.numberOfOutputs},get oversample(){return d.oversample},set oversample(t){d.oversample=t,f.oversample=t},addEventListener(...t){return p.addEventListener(t[0],t[1],t[2])},dispatchEvent(...t){return p.dispatchEvent(t[0])},removeEventListener(...t){return p.removeEventListener(t[0],t[1],t[2])}};l!==x.curve&&(x.curve=l),u!==x.oversample&&(x.oversample=u);const _=()=>{p.connect(d).connect(g),p.connect(m).connect(f).connect(b).connect(g),y=!0,o(S)&&(v=t(c,p))},w=()=>{p.disconnect(d),d.disconnect(g),p.disconnect(m),m.disconnect(f),f.disconnect(b),b.disconnect(g),y=!1,null!==v&&(v(),v=null)};return a(Object(s["a"])(x,g),_,w)}},"0148":function(t,e){},"0164":function(t,e){},"0183":function(t,e){},"01e7":function(t,e){},"01ef":function(t,e){},"01f0":function(t,e,n){var i;(function(e){t.exports=e()})((function(){return function t(e,n,s){function r(a,c){if(!n[a]){if(!e[a]){var l="function"==typeof i&&i;if(!c&&l)return i(a,!0);if(o)return o(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var h=n[a]={exports:{}};e[a][0].call(h.exports,(function(t){var n=e[a][1][t];return r(n||t)}),h,h.exports,t,e,n,s)}return n[a].exports}for(var o="function"==typeof i&&i,a=0;a<s.length;a++)r(s[a]);return r}({1:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n["default"]=function(t){function e(t){if(this._event=t,this._data=t.data,this.receivedTime=t.receivedTime,this._data&&this._data.length<2)console.warn("Illegal MIDI message of length",this._data.length);else switch(this._messageCode=240&t.data[0],this.channel=15&t.data[0],this._messageCode){case 128:this.messageType="noteoff",this.key=127&t.data[1],this.velocity=127&t.data[2];break;case 144:this.messageType="noteon",this.key=127&t.data[1],this.velocity=127&t.data[2];break;case 160:this.messageType="keypressure",this.key=127&t.data[1],this.pressure=127&t.data[2];break;case 176:this.messageType="controlchange",this.controllerNumber=127&t.data[1],this.controllerValue=127&t.data[2],120===this.controllerNumber&&0===this.controllerValue?this.channelModeMessage="allsoundoff":121===this.controllerNumber?this.channelModeMessage="resetallcontrollers":122===this.controllerNumber?0===this.controllerValue?this.channelModeMessage="localcontroloff":this.channelModeMessage="localcontrolon":123===this.controllerNumber&&0===this.controllerValue?this.channelModeMessage="allnotesoff":124===this.controllerNumber&&0===this.controllerValue?this.channelModeMessage="omnimodeoff":125===this.controllerNumber&&0===this.controllerValue?this.channelModeMessage="omnimodeon":126===this.controllerNumber?this.channelModeMessage="monomodeon":127===this.controllerNumber&&(this.channelModeMessage="polymodeon");break;case 192:this.messageType="programchange",this.program=t.data[1];break;case 208:this.messageType="channelpressure",this.pressure=127&t.data[1];break;case 224:this.messageType="pitchbendchange";var e=127&t.data[2],n=127&t.data[1];this.pitchBend=(e<<8)+n;break}}return new e(t)},e.exports=n["default"]},{}]},{},[1])(1)}))},"01f9":function(t,e,n){"use strict";var i=n("2d00"),s=n("5ca1"),r=n("2aba"),o=n("32e9"),a=n("84f2"),c=n("41a0"),l=n("7f20"),u=n("38fd"),h=n("2b4c")("iterator"),d=!([].keys&&"next"in[].keys()),f="@@iterator",p="keys",m="values",g=function(){return this};t.exports=function(t,e,n,b,v,y,S){c(n,e,b);var x,_,w,E=function(t){if(!d&&t in P)return P[t];switch(t){case p:return function(){return new n(this,t)};case m:return function(){return new n(this,t)}}return function(){return new n(this,t)}},T=e+" Iterator",C=v==m,M=!1,P=t.prototype,A=P[h]||P[f]||v&&P[v],I=A||E(v),L=v?C?E("entries"):I:void 0,O="Array"==e&&P.entries||A;if(O&&(w=u(O.call(new t)),w!==Object.prototype&&w.next&&(l(w,T,!0),i||"function"==typeof w[h]||o(w,h,g))),C&&A&&A.name!==m&&(M=!0,I=function(){return A.call(this)}),i&&!S||!d&&!M&&P[h]||o(P,h,I),a[e]=I,a[T]=g,v)if(x={values:C?I:E(m),keys:y?I:E(p),entries:L},S)for(_ in x)_ in P||r(P,_,x[_]);else s(s.P+s.F*(d||M),e,x);return x}},"0211":function(t,e){},"0286":function(t,e){},"02f4":function(t,e,n){var i=n("4588"),s=n("be13");t.exports=function(t){return function(e,n){var r,o,a=String(s(e)),c=i(n),l=a.length;return c<0||c>=l?t?"":void 0:(r=a.charCodeAt(c),r<55296||r>56319||c+1===l||(o=a.charCodeAt(c+1))<56320||o>57343?t?a.charAt(c):r:t?a.slice(c,c+2):o-56320+(r-55296<<10)+65536)}}},"0390":function(t,e,n){"use strict";var i=n("02f4")(!0);t.exports=function(t,e,n){return e+(n?i(t,e).length:1)}},"03ab":function(t,e){},"03fb":function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var i=n("383e"),s=n("1e82"),r=n("c895");const o={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",offset:1},a=(t,e,n,a,c,l,u)=>class extends t{constructor(t,s=o){const r=c(t),u={...o,...s},h=a(r,u),d=l(r),f=d?n():null;super(t,!1,h,f),this._constantSourceNodeRenderer=f,this._nativeConstantSourceNode=h,this._offset=e(this,d,h.offset,i["b"],i["a"]),this._onended=null}get offset(){return this._offset}get onended(){return this._onended}set onended(t){const e="function"===typeof t?u(this,t):null;this._nativeConstantSourceNode.onended=e;const n=this._nativeConstantSourceNode.onended;this._onended=null!==n&&n===e?t:n}start(t=0){if(this._nativeConstantSourceNode.start(t),null!==this._constantSourceNodeRenderer)this._constantSourceNodeRenderer.start=t;else{Object(s["a"])(this);const t=()=>{this._nativeConstantSourceNode.removeEventListener("ended",t),setTimeout(()=>Object(r["a"])(this),1e3)};this._nativeConstantSourceNode.addEventListener("ended",t)}}stop(t=0){this._nativeConstantSourceNode.stop(t),null!==this._constantSourceNodeRenderer&&(this._constantSourceNodeRenderer.stop=t)}}},"042e":function(t,e,n){var i=n("5ca1");i(i.S,"Math",{fround:n("91ca")})},"0454":function(t,e){},"049b":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=t=>{const e=new Uint32Array([1179011410,40,1163280727,544501094,16,131073,44100,176400,1048580,1635017060,4,0]);try{const n=t.decodeAudioData(e.buffer,()=>{});return void 0!==n&&(n.catch(()=>{}),!0)}catch{}return!1}},"049f":function(t,e,n){var i=n("5ca1");i(i.S,"Math",{log1p:n("d6c6")})},"04ff":function(t,e,n){var i=n("5ca1"),s=n("3ca5");i(i.S+i.F*(Number.parseInt!=s),"Number",{parseInt:s})},"050c":function(t,e){},"050d":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=t=>"inputs"in t},"0589":function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("a8ce");const s=(t,e,n,s,r)=>class extends s{constructor(t={}){if(null===r)throw new Error("Missing the native AudioContext constructor.");const s=new r(t);if(null===s)throw n();if(!Object(i["a"])(t.latencyHint))throw new TypeError(`The provided value '${t.latencyHint}' is not a valid enum value of type AudioContextLatencyCategory.`);if(void 0!==t.sampleRate&&s.sampleRate!==t.sampleRate)throw e();super(s,2);const{latencyHint:o}=t,{sampleRate:a}=s;if(this._baseLatency="number"===typeof s.baseLatency?s.baseLatency:"balanced"===o?512/a:"interactive"===o||void 0===o?256/a:"playback"===o?1024/a:128*Math.max(2,Math.min(128,Math.round(o*a/128)))/a,this._nativeAudioContext=s,this._state=null,"running"===s.state){this._state="suspended";const t=()=>{"suspended"===this._state&&(this._state=null),s.removeEventListener("statechange",t)};s.addEventListener("statechange",t)}}get baseLatency(){return this._baseLatency}get state(){return null!==this._state?this._state:this._nativeAudioContext.state}close(){return"closed"===this.state?this._nativeAudioContext.close().then(()=>{throw t()}):("suspended"===this._state&&(this._state=null),this._nativeAudioContext.close())}resume(){return"suspended"===this._state?new Promise((t,e)=>{const n=()=>{this._nativeAudioContext.removeEventListener("statechange",n),"running"===this._nativeAudioContext.state?t():this.resume().then(t,e)};this._nativeAudioContext.addEventListener("statechange",n)}):this._nativeAudioContext.resume().catch(e=>{if(void 0===e||15===e.code)throw t();throw e})}suspend(){return this._nativeAudioContext.suspend().catch(e=>{if(void 0===e)throw t();throw e})}}},"0596":function(t,e){},"05ac":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=t=>()=>{if(null===t)return!1;const e=new t(1,1,44100),n=e.createConvolver();n.buffer=e.createBuffer(1,1,e.sampleRate);try{n.buffer=e.createBuffer(1,1,e.sampleRate)}catch{return!1}return!0}},"0606":function(t,e){},"064c":function(t,e){},"06df":function(t,e){},"06ef":function(t,e){},"0799":function(t,e){},"07d2":function(t,e){},"0872":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("050d"),s=n("e190");const r=(t,e,n,r,o,a,c,l,u,h)=>()=>{const d=new WeakMap;let f=null;const p=async(p,m,g)=>{let b=null,v=a(p);const y={channelCount:v.channelCount,channelCountMode:v.channelCountMode,channelInterpretation:v.channelInterpretation},S={...y,coneInnerAngle:v.coneInnerAngle,coneOuterAngle:v.coneOuterAngle,coneOuterGain:v.coneOuterGain,distanceModel:v.distanceModel,maxDistance:v.maxDistance,panningModel:v.panningModel,refDistance:v.refDistance,rolloffFactor:v.rolloffFactor},x=Object(s["a"])(v,m);if("bufferSize"in v)b=r(m,{...y,gain:1});else if(!x){const t={...S,orientationX:v.orientationX.value,orientationY:v.orientationY.value,orientationZ:v.orientationZ.value,positionX:v.positionX.value,positionY:v.positionY.value,positionZ:v.positionZ.value};v=o(m,t)}if(d.set(m,null===b?v:b),null!==b){if(null===f){if(null===c)throw new Error("Missing the native OfflineAudioContext constructor.");const t=new c(6,p.context.length,m.sampleRate),i=e(t,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:6});i.connect(t.destination),f=(async()=>{const e=await Promise.all([p.orientationX,p.orientationY,p.orientationZ,p.positionX,p.positionY,p.positionZ].map(async(e,i)=>{const s=n(t,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",offset:0===i?1:0});return await l(t,e,s.offset,g),s}));for(let t=0;t<6;t+=1)e[t].connect(i,0,t),e[t].start(0);return h(t)})()}const t=await f,i=r(m,{...y,gain:1});await u(p,m,i,g);const s=[];for(let e=0;e<t.numberOfChannels;e+=1)s.push(t.getChannelData(e));let a=[s[0][0],s[1][0],s[2][0]],d=[s[3][0],s[4][0],s[5][0]],v=r(m,{...y,gain:1}),x=o(m,{...S,orientationX:a[0],orientationY:a[1],orientationZ:a[2],positionX:d[0],positionY:d[1],positionZ:d[2]});i.connect(v).connect(x.inputs[0]),x.connect(b);for(let e=128;e<t.length;e+=128){const t=[s[0][e],s[1][e],s[2][e]],n=[s[3][e],s[4][e],s[5][e]];if(t.some((t,e)=>t!==a[e])||n.some((t,e)=>t!==d[e])){a=t,d=n;const s=e/m.sampleRate;v.gain.setValueAtTime(0,s),v=r(m,{...y,gain:0}),x=o(m,{...S,orientationX:a[0],orientationY:a[1],orientationZ:a[2],positionX:d[0],positionY:d[1],positionZ:d[2]}),v.gain.setValueAtTime(1,s),i.connect(v).connect(x.inputs[0]),x.connect(b)}}return b}return x?(await t(m,p.orientationX,v.orientationX,g),await t(m,p.orientationY,v.orientationY,g),await t(m,p.orientationZ,v.orientationZ,g),await t(m,p.positionX,v.positionX,g),await t(m,p.positionY,v.positionY,g),await t(m,p.positionZ,v.positionZ,g)):(await l(m,p.orientationX,v.orientationX,g),await l(m,p.orientationY,v.orientationY,g),await l(m,p.orientationZ,v.orientationZ,g),await l(m,p.positionX,v.positionX,g),await l(m,p.positionY,v.positionY,g),await l(m,p.positionZ,v.positionZ,g)),Object(i["a"])(v)?await u(p,m,v.inputs[0],g):await u(p,m,v,g),v};return{render(t,e,n){const i=d.get(e);return void 0!==i?Promise.resolve(i):p(t,e,n)}}}},"08cd":function(t,e){},"091a":function(t,e){},"097d":function(t,e,n){"use strict";var i=n("5ca1"),s=n("8378"),r=n("7726"),o=n("ebd6"),a=n("bcaa");i(i.P+i.R,"Promise",{finally:function(t){var e=o(this,s.Promise||r.Promise),n="function"==typeof t;return this.then(n?function(n){return a(e,t()).then((function(){return n}))}:t,n?function(n){return a(e,t()).then((function(){throw n}))}:t)}})},"09a8":function(t,e){},"09fa":function(t,e,n){var i=n("4588"),s=n("9def");t.exports=function(t){if(void 0===t)return 0;var e=i(t),n=s(e);if(e!==n)throw RangeError("Wrong length!");return n}},"0a06":function(t,e,n){"use strict";var i=n("c532"),s=n("30b5"),r=n("f6b4"),o=n("5270"),a=n("4a7b");function c(t){this.defaults=t,this.interceptors={request:new r,response:new r}}c.prototype.request=function(t){"string"===typeof t?(t=arguments[1]||{},t.url=arguments[0]):t=t||{},t=a(this.defaults,t),t.method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var e=[o,void 0],n=Promise.resolve(t);this.interceptors.request.forEach((function(t){e.unshift(t.fulfilled,t.rejected)})),this.interceptors.response.forEach((function(t){e.push(t.fulfilled,t.rejected)}));while(e.length)n=n.then(e.shift(),e.shift());return n},c.prototype.getUri=function(t){return t=a(this.defaults,t),s(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},i.forEach(["delete","get","head","options"],(function(t){c.prototype[t]=function(e,n){return this.request(a(n||{},{method:t,url:e,data:(n||{}).data}))}})),i.forEach(["post","put","patch"],(function(t){c.prototype[t]=function(e,n,i){return this.request(a(i||{},{method:t,url:e,data:n}))}})),t.exports=c},"0a1f":function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var i=n("0bf9"),s=n("180a"),r=n("5b43"),o=n("7fa0"),a=n("545f");const c=(t,e,n,c,l,u,h)=>(d,f)=>{const p=n(d,t=>t.createOscillator());return Object(r["a"])(p,f),Object(i["a"])(p,f,"detune"),Object(i["a"])(p,f,"frequency"),void 0!==f.periodicWave?p.setPeriodicWave(f.periodicWave):Object(s["a"])(p,f,"type"),e(c,()=>c(d))||Object(o["a"])(p),e(l,()=>l(d))||h(p,d),e(u,()=>u(d))||Object(a["a"])(p),t(d,p),p}},"0a20":function(t,e,n){"use strict";n.d(e,"a",(function(){return X}));var i=n("752e"),s=n("59e9"),r=n("264b");const o=t=>"port"in t;var a=n("7b45"),c=n("e427");const l=(t,e)=>{const n=Object(c["a"])(t);if(!n.delete(e))throw new Error("Missing the expected event listener.")};var u=n("7af2"),h=n("7d82"),d=n("fe69"),f=n("8543"),p=n("38e4"),m=n("d057"),g=n("5d98"),b=n("aeeb"),v=n("2286");const y=t=>!i["a"].has(t),S=(t,e)=>{const n=Array.from(t).filter(e);if(n.length>1)throw Error("More than one element was found.");if(0===n.length)throw Error("No element was found.");const[i]=n;return t.delete(i),i};var x=n("1e82"),_=n("c895");const w=(t,e)=>{!o(t)&&e.every(t=>0===t.size)&&Object(_["a"])(t)},E=t=>new Promise(e=>{const n=t.createScriptProcessor(256,1,1),i=t.createGain(),s=t.createBuffer(1,2,44100),r=s.getChannelData(0);r[0]=1,r[1]=1;const o=t.createBufferSource();o.buffer=s,o.loop=!0,o.connect(n).connect(t.destination),o.connect(i),o.disconnect(i),n.onaudioprocess=i=>{const s=i.inputBuffer.getChannelData(0);Array.prototype.some.call(s,t=>1===t)?e(!0):e(!1),o.stop(),n.onaudioprocess=null,o.disconnect(n),n.disconnect(t.destination)},o.start()}),T=(t,e)=>{const n=new Map;for(const i of t)for(const t of i){const e=n.get(t);n.set(t,void 0===e?1:e+1)}n.forEach((t,n)=>e(n,t))};var C=n("c965");const M=t=>{const e=new Map;t.connect=(t=>(n,i=0,s=0)=>{const r=Object(C["a"])(n)?t(n,i,s):t(n,i),o=e.get(n);return void 0===o?e.set(n,[{input:s,output:i}]):o.every(t=>t.input!==s||t.output!==i)&&o.push({input:s,output:i}),r})(t.connect.bind(t)),t.disconnect=(n=>(i,s,r)=>{if(n.apply(t),void 0===i)e.clear();else if("number"===typeof i)for(const[t,n]of e){const s=n.filter(t=>t.output!==i);0===s.length?e.delete(t):e.set(t,s)}else if(e.has(i))if(void 0===s)e.delete(i);else{const t=e.get(i);if(void 0!==t){const n=t.filter(t=>t.output!==s&&(t.input!==r||void 0===r));0===n.length?e.delete(i):e.set(i,n)}}for(const[n,o]of e)o.forEach(e=>{Object(C["a"])(n)?t.connect(n,e.output,e.input):t.connect(n,e.output)})})(t.disconnect)},P=(t,e,[n,i,s],r)=>{Object(g["a"])(t[i],[e,n,s],t=>t[0]===e&&t[1]===n,r)},A=(t,e,[n,i],s)=>{Object(g["a"])(t,[e,n,i],t=>t[0]===e&&t[1]===n,s)},I=(t,e,n,i)=>S(t[i],t=>t[0]===e&&t[1]===n),L=(t,e,n)=>S(t,t=>t[0]===e&&t[1]===n),O=(t,e,[n,i,s],r)=>{const o=t.get(n);void 0===o?t.set(n,new Set([[i,e,s]])):Object(g["a"])(o,[i,e,s],t=>t[0]===i&&t[1]===e,r)},k=(t,[e,n,i],s)=>{const r=t.get(e);void 0===r?t.set(e,new Set([[n,i]])):Object(g["a"])(r,[n,i],t=>t[0]===n,s)},R=(t,e,n,i)=>{const s=Object(m["a"])(t,e),r=S(s,t=>t[0]===n&&t[1]===i);return 0===s.size&&t.delete(e),r},N=(t,e,n)=>{const i=Object(m["a"])(t,e),s=S(i,t=>t[0]===n);return 0===i.size&&t.delete(e),s},D=(t,e,n,i)=>{const{activeInputs:s,passiveInputs:r}=Object(h["a"])(e),{outputs:o}=Object(h["a"])(t),l=Object(c["a"])(t),d=o=>{const c=Object(f["a"])(e),l=Object(f["a"])(t);if(o){const o=R(r,t,n,i);P(s,t,o,!1),Object(v["a"])(t)||Object(a["a"])(l,c,n,i),y(e)&&Object(x["a"])(e)}else{const o=I(s,t,n,i);O(r,i,o,!1),Object(v["a"])(t)||Object(u["a"])(l,c,n,i),Object(b["a"])(e)&&w(e,s)}};return!!Object(g["a"])(o,[e,n,i],t=>t[0]===e&&t[1]===n&&t[2]===i,!0)&&(l.add(d),Object(b["a"])(t)?P(s,t,[n,i,d],!0):O(r,i,[t,n,d],!0),!0)},V=(t,e,n,i)=>{const{outputs:s}=Object(h["a"])(t);if(Object(g["a"])(s,[e,n,i],t=>t[0]===e&&t[1]===n&&t[2]===i,!0)){const{activeInputs:s}=Object(h["a"])(e);return P(s,t,[n,i,null],!0),!0}return!1},B=(t,e,n)=>{const{activeInputs:i,passiveInputs:s}=Object(d["a"])(e),{outputs:r}=Object(h["a"])(t),o=Object(c["a"])(t),a=r=>{const o=Object(f["a"])(t),a=Object(p["a"])(e);if(r){const e=N(s,t,n);A(i,t,e,!1),Object(v["a"])(t)||o.connect(a,n)}else{const e=L(i,t,n);k(s,e,!1),Object(v["a"])(t)||o.disconnect(a,n)}};return!!Object(g["a"])(r,[e,n],t=>t[0]===e&&t[1]===n,!0)&&(o.add(a),Object(b["a"])(t)?A(i,t,[n,a],!0):k(s,[t,n,a],!0),!0)},F=(t,e,n)=>{const{outputs:i}=Object(h["a"])(t);if(Object(g["a"])(i,[e,n],t=>t[0]===e&&t[1]===n,!0)){const{activeInputs:i}=Object(d["a"])(e);return A(i,t,[n,null],!0),!0}return!1},j=(t,e,n)=>{for(const i of t)if(i[0]===e&&i[1]===n)return t.delete(i),i;return null},G=(t,e,n,i)=>{const{activeInputs:s,passiveInputs:r}=Object(h["a"])(e),o=j(s[i],t,n);if(null===o){const e=R(r,t,n,i);return[e[2],!1]}return[o[2],!0]},W=(t,e,n)=>{const{activeInputs:i,passiveInputs:s}=Object(d["a"])(e),r=j(i,t,n);if(null===r){const e=N(s,t,n);return[e[1],!1]}return[r[2],!0]},$=(t,e,n,i)=>{const[s,r]=G(t,e,n,i);if(null!==s&&(l(t,s),r&&!Object(v["a"])(t)&&Object(u["a"])(Object(f["a"])(t),Object(f["a"])(e),n,i)),Object(b["a"])(e)){const{activeInputs:t}=Object(h["a"])(e);w(e,t)}},z=(t,e,n)=>{const[i,s]=W(t,e,n);null!==i&&(l(t,i),s&&!Object(v["a"])(t)&&Object(f["a"])(t).disconnect(Object(p["a"])(e),n))},H=t=>{const e=Object(h["a"])(t),n=[];for(const i of e.outputs)Object(r["a"])(i)?$(t,...i):z(t,...i),n.push(i[0]);return e.outputs.clear(),n},U=(t,e)=>{const n=Object(h["a"])(t),i=[];for(const s of n.outputs)s[1]===e&&(Object(r["a"])(s)?$(t,...s):z(t,...s),i.push(s[0]),n.outputs.delete(s));return i},Y=(t,e,n,i)=>{const s=Object(h["a"])(t);return Array.from(s.outputs).filter(t=>t[0]===e&&(void 0===n||t[1]===n)&&(void 0===i||t[2]===i)).map(e=>(Object(r["a"])(e)?$(t,...e):z(t,...e),s.outputs.delete(e),e[0]))},X=(t,e,n,r,c,l,u,h,d,m,g,b,v,S,_)=>class extends m{constructor(e,s,r,o){super(r),this._context=e,this._nativeAudioNode=r;const a=g(e);b(a)&&!0!==n(E,()=>E(a))&&M(r),i["c"].set(this,r),i["i"].set(this,new Set),s&&Object(x["a"])(this),t(this,o,r)}get channelCount(){return this._nativeAudioNode.channelCount}set channelCount(t){this._nativeAudioNode.channelCount=t}get channelCountMode(){return this._nativeAudioNode.channelCountMode}set channelCountMode(t){this._nativeAudioNode.channelCountMode=t}get channelInterpretation(){return this._nativeAudioNode.channelInterpretation}set channelInterpretation(t){this._nativeAudioNode.channelInterpretation=t}get context(){return this._context}get numberOfInputs(){return this._nativeAudioNode.numberOfInputs}get numberOfOutputs(){return this._nativeAudioNode.numberOfOutputs}connect(t,n=0,i=0){if(n<0||n>=this._nativeAudioNode.numberOfOutputs)throw c();const h=g(this._context),m=_(h);if(v(t)||S(t))throw l();if(Object(s["a"])(t)){const s=Object(f["a"])(t);try{const r=Object(a["a"])(this._nativeAudioNode,s,n,i);if(m||y(this)?this._nativeAudioNode.disconnect(...r):y(t)&&Object(x["a"])(t),o(t)){const t=e.get(s);if(void 0===t){const t=h.createGain();t.connect(r[0],0,r[2]),e.set(s,new Map([[i,t]]))}else if(void 0===t.get(i)){const e=h.createGain();e.connect(r[0],0,r[2]),t.set(i,e)}}}catch(E){if(12===E.code)throw l();throw E}const c=m?V(this,t,n,i):D(this,t,n,i);if(c){const e=d([this],t);T(e,r(m))}return t}const b=Object(p["a"])(t);if("playbackRate"===b.name)throw u();try{this._nativeAudioNode.connect(b,n),(m||y(this))&&this._nativeAudioNode.disconnect(b,n)}catch(E){if(12===E.code)throw l();throw E}const w=m?F(this,t,n):B(this,t,n);if(w){const e=d([this],t);T(e,r(m))}}disconnect(t,e,n){let i;if(void 0===t)i=H(this);else if("number"===typeof t){if(t<0||t>=this.numberOfOutputs)throw c();i=U(this,t)}else{if(void 0!==e&&(e<0||e>=this.numberOfOutputs))throw c();if(Object(s["a"])(t)&&void 0!==n&&(n<0||n>=t.numberOfInputs))throw c();if(i=Y(this,t,e,n),0===i.length)throw l()}for(const s of i){const t=d([this],s);T(t,h)}}}},"0a49":function(t,e,n){var i=n("9b43"),s=n("626a"),r=n("4bf8"),o=n("9def"),a=n("cd1c");t.exports=function(t,e){var n=1==t,c=2==t,l=3==t,u=4==t,h=6==t,d=5==t||h,f=e||a;return function(e,a,p){for(var m,g,b=r(e),v=s(b),y=i(a,p,3),S=o(v.length),x=0,_=n?f(e,S):c?f(e,0):void 0;S>x;x++)if((d||x in v)&&(m=v[x],g=y(m,x,b),t))if(n)_[x]=g;else if(g)switch(t){case 3:return!0;case 5:return m;case 6:return x;case 2:_.push(m)}else if(u)return!1;return h?-1:l||u?u:_}}},"0a90":function(t,e){},"0b21":function(t,e,n){var i=n("5ca1");i(i.S,"Math",{sign:n("96fb")})},"0b3f":function(t,e){},"0b89":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=(t,e,n)=>(i,{mediaStreamTrack:s})=>"function"===typeof i.createMediaStreamTrackSource?e(i,t=>t.createMediaStreamTrackSource(s)):e(i,e=>{const i=new MediaStream([s]),r=e.createMediaStreamSource(i);if("audio"!==s.kind)throw t();if(n(e))throw new TypeError;return r})},"0bba":function(t,e){},"0bd1":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=(t,e)=>n=>t.has(n)||e(n)},"0be3":function(t,e){},"0bf6":function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("dd25");const s=(t,e,n,s,r,o,a,c,l,u,h,d)=>(f,p,m,g=null,b=null)=>{const v=new i["AutomationEventList"](m.defaultValue),y=p?s(v):null,S={get defaultValue(){return m.defaultValue},get maxValue(){return null===g?m.maxValue:g},get minValue(){return null===b?m.minValue:b},get value(){return m.value},set value(t){m.value=t,S.setValueAtTime(t,f.context.currentTime)},cancelAndHoldAtTime(t){if("function"===typeof m.cancelAndHoldAtTime)null===y&&v.flush(f.context.currentTime),v.add(r(t)),m.cancelAndHoldAtTime(t);else{const e=Array.from(v).pop();null===y&&v.flush(f.context.currentTime),v.add(r(t));const n=Array.from(v).pop();m.cancelScheduledValues(t),e!==n&&void 0!==n&&("exponentialRampToValue"===n.type?m.exponentialRampToValueAtTime(n.value,n.endTime):"linearRampToValue"===n.type?m.linearRampToValueAtTime(n.value,n.endTime):"setValue"===n.type?m.setValueAtTime(n.value,n.startTime):"setValueCurve"===n.type&&m.setValueCurveAtTime(n.values,n.startTime,n.duration))}return S},cancelScheduledValues(t){return null===y&&v.flush(f.context.currentTime),v.add(o(t)),m.cancelScheduledValues(t),S},exponentialRampToValueAtTime(t,e){return null===y&&v.flush(f.context.currentTime),v.add(a(t,e)),m.exponentialRampToValueAtTime(t,e),S},linearRampToValueAtTime(t,e){return null===y&&v.flush(f.context.currentTime),v.add(c(t,e)),m.linearRampToValueAtTime(t,e),S},setTargetAtTime(t,e,n){return null===y&&v.flush(f.context.currentTime),v.add(l(t,e,n)),m.setTargetAtTime(t,e,n),S},setValueAtTime(t,e){return null===y&&v.flush(f.context.currentTime),v.add(u(t,e)),m.setValueAtTime(t,e),S},setValueCurveAtTime(t,e,n){if(null!==d&&"webkitAudioContext"===d.name){const i=e+n,s=f.context.sampleRate,r=Math.ceil(e*s),o=Math.floor(i*s),a=o-r,c=new Float32Array(a);for(let u=0;u<a;u+=1){const i=(t.length-1)/n*((r+u)/s-e),o=Math.floor(i),a=Math.ceil(i);c[u]=o===a?t[o]:(1-(i-o))*t[o]+(1-(a-i))*t[a]}null===y&&v.flush(f.context.currentTime),v.add(h(c,e,n)),m.setValueCurveAtTime(c,e,n);const l=o/s;l<i&&S.setValueAtTime(c[c.length-1],l),S.setValueAtTime(t[t.length-1],i)}else null===y&&v.flush(f.context.currentTime),v.add(h(t,e,n)),m.setValueCurveAtTime(t,e,n);return S}};return n.set(S,m),e.set(S,f),t(S,y),S}},"0bf9":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=(t,e,n)=>{const i=e[n];void 0!==i&&i!==t[n].value&&(t[n].value=i)}},"0bfb":function(t,e,n){"use strict";var i=n("cb7c");t.exports=function(){var t=i(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},"0c95":function(t,e){},"0d58":function(t,e,n){var i=n("ce10"),s=n("e11e");t.exports=Object.keys||function(t){return i(t,s)}},"0d6d":function(t,e,n){var i=n("d3f4"),s=n("67ab").onFreeze;n("5eda")("freeze",(function(t){return function(e){return t&&i(e)?t(s(e)):e}}))},"0d96":function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("e190");const s=(t,e,n,s,r)=>o=>{const a=new WeakMap,c=async(c,l,u)=>{let h=n(c);const d=Object(i["a"])(h,l);if(!d){const t={channelCount:h.channelCount,channelCountMode:h.channelCountMode,channelInterpretation:h.channelInterpretation,delayTime:h.delayTime.value,maxDelayTime:o};h=e(l,t)}return a.set(l,h),d?await t(l,c.delayTime,h.delayTime,u):await s(l,c.delayTime,h.delayTime,u),await r(c,l,h,u),h};return{render(t,e,n){const i=a.get(e);return void 0!==i?Promise.resolve(i):c(t,e,n)}}}},"0df6":function(t,e,n){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},"0f1e":function(t,e){},"0f88":function(t,e,n){var i,s=n("7726"),r=n("32e9"),o=n("ca5a"),a=o("typed_array"),c=o("view"),l=!(!s.ArrayBuffer||!s.DataView),u=l,h=0,d=9,f="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");while(h<d)(i=s[f[h++]])?(r(i.prototype,a,!0),r(i.prototype,c,!0)):u=!1;t.exports={ABV:l,CONSTR:u,TYPED:a,VIEW:c}},"0f9f":function(t,e){},"10ad":function(t,e,n){"use strict";var i,s=n("7726"),r=n("0a49")(0),o=n("2aba"),a=n("67ab"),c=n("7333"),l=n("643e"),u=n("d3f4"),h=n("b39a"),d=n("b39a"),f=!s.ActiveXObject&&"ActiveXObject"in s,p="WeakMap",m=a.getWeak,g=Object.isExtensible,b=l.ufstore,v=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},y={get:function(t){if(u(t)){var e=m(t);return!0===e?b(h(this,p)).get(t):e?e[this._i]:void 0}},set:function(t,e){return l.def(h(this,p),t,e)}},S=t.exports=n("e0b8")(p,v,y,l,!0,!0);d&&f&&(i=l.getConstructor(v,p),c(i.prototype,y),a.NEED=!0,r(["delete","has","get","set"],(function(t){var e=S.prototype,n=e[t];o(e,t,(function(e,s){if(u(e)&&!g(e)){this._f||(this._f=new i);var r=this._f[t](e,s);return"set"==t?this:r}return n.call(this,e,s)}))})))},"10c6":function(t,e){},1104:function(t,e){},1130:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=t=>e=>null!==t&&"function"===typeof t.AudioNode&&e instanceof t.AudioNode},1144:function(t,e){},1169:function(t,e,n){var i=n("2d95");t.exports=Array.isArray||function(t){return"Array"==i(t)}},1170:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("752e");const s=(t,e,n)=>s=>{if("closed"===s.state&&null!==e&&"webkitAudioContext"!==e.name){if(!t(s)){const t=i["f"].get(s);if(void 0!==t)return t;const n=new e;return i["f"].set(s,n),n}{const t=i["f"].get(s);if(void 0!==t)return t;if(null!==n){const t=new n(1,1,44100);return i["f"].set(s,t),t}}}return null}},1193:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=t=>null!==t&&t.isSecureContext},"11a8":function(t,e){},"11e9":function(t,e,n){var i=n("52a7"),s=n("4630"),r=n("6821"),o=n("6a99"),a=n("69a8"),c=n("c69a"),l=Object.getOwnPropertyDescriptor;e.f=n("9e1e")?l:function(t,e){if(t=r(t),e=o(e,!0),c)try{return l(t,e)}catch(n){}if(a(t,e))return s(!i.f.call(t,e),t[e])}},1289:function(t,e){},"12f1":function(t,e){},"130f":function(t,e,n){var i=n("5ca1"),s=n("1991");i(i.G+i.B,{setImmediate:s.set,clearImmediate:s.clear})},1364:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=t=>e=>{const n=t.get(e);if(void 0===n)throw new Error("The context has no set of AudioWorkletNodes.");return n}},"136a":function(t,e){},1376:function(t,e){},"137b":function(t,e){},"13b5":function(t,e){},"140e":function(t,e,n){"use strict";n.d(e,"AudioContext",(function(){return us}));var i=n("dd25"),s=n("7288"),r=n("87a6"),o=n("893e"),a=n("f003"),c=n("16fe"),l=n("22e6"),u=n("2d17"),h=n("8058"),d=n("b9b0"),f=n("5289"),p=n("97c9"),m=n("3af1"),g=n("c8a9"),b=n("c0b0"),v=n("fbd3"),y=n("0a20"),S=n("0bf6"),x=n("84dc"),_=n("2592"),w=n("d734"),E=n("2c2d"),T=n("19c0"),C=n("b5e3"),M=n("af70"),P=n("c3f1"),A=n("a2b4"),I=n("fc6f"),L=n("8a54"),O=n("c121"),k=n("d3d3"),R=n("49aa"),N=n("03fb"),D=n("3d86"),V=n("c1aa"),B=n("bcc4"),F=n("970e"),j=n("3797"),G=n("8d5d"),W=n("1ccf"),$=n("a57a"),z=n("7ab6"),H=n("0d96"),U=n("38e6"),Y=n("f06f"),X=n("2e93"),K=n("9d14"),q=n("4a2b"),Z=n("9557"),J=n("e9a4"),Q=n("2cae"),tt=n("d475"),et=n("2bb7"),nt=n("a8ba"),it=n("d89a"),st=n("654e"),rt=n("4919"),ot=n("1170"),at=n("98b0"),ct=n("1364"),lt=n("a7f0"),ut=n("894f"),ht=n("c3be"),dt=n("7b2d"),ft=n("a24e"),pt=n("cd00"),mt=n("8810"),gt=n("0bd1"),bt=n("6f7b"),vt=n("4163"),yt=n("91a2"),St=n("1130"),xt=n("bd82"),_t=n("b096"),wt=n("d562"),Et=n("1193"),Tt=(n("bdd3"),n("b510")),Ct=n("e12f"),Mt=n("dd4d"),Pt=n("4034"),At=n("0589"),It=n("c05b"),Lt=n("3673"),Ot=n("f6f8"),kt=n("c53d"),Rt=n("3331"),Nt=n("f988"),Dt=n("aad8"),Vt=n("5ad3"),Bt=n("c896"),Ft=n("6cc2"),jt=n("76a3"),Gt=n("8d85"),Wt=n("e945"),$t=n("3ee3"),zt=n("387e"),Ht=n("823e"),Ut=n("f02c"),Yt=n("afca"),Xt=n("1b8b"),Kt=n("4df9"),qt=n("ba7d"),Zt=n("cec8"),Jt=n("89a4"),Qt=n("df14"),te=n("6915"),ee=n("1b32"),ne=n("dd6b"),ie=n("0b89"),se=n("d017"),re=n("0a1f"),oe=n("cc54"),ae=n("d6db"),ce=n("7487"),le=n("9823"),ue=n("d11d"),he=n("4771"),de=n("a038"),fe=n("013e"),pe=n("f600"),me=n("1dc0"),ge=n("c569"),be=n("d9e7"),ve=n("763e"),ye=n("0872"),Se=n("28bd"),xe=n("e842"),_e=n("5aef"),we=n("fb05"),Ee=n("e70b"),Te=n("565e"),Ce=n("93ab"),Me=n("8338"),Pe=n("a971"),Ae=(n("f638"),n("efe6")),Ie=n("43f1"),Le=n("ed12"),Oe=n("16da"),ke=(n("ce7a"),n("181a"),n("db11"),n("7f19"),n("cafb")),Re=n("f9b9"),Ne=n("23e6"),De=(n("ce90"),n("ae5f"),n("ab1c"),n("05ac"),n("bd33"),n("d2cd"),n("bb21")),Ve=(n("e067"),n("918c")),Be=n("8cd4"),Fe=n("9031"),je=n("37c1"),Ge=n("4661"),We=n("82df"),$e=n("d9c5"),ze=n("b5c1"),He=n("2818"),Ue=n("752e"),Ye=n("7b45"),Xe=n("7af2"),Ke=n("7d82"),qe=n("fe69"),Ze=n("8543"),Je=n("38e4"),Qe=n("d057"),tn=n("5d98"),en=n("aeeb"),nn=n("3dcf"),sn=n("2286"),rn=n("9928"),on=n("fd82"),an=n("049b"),cn=(n("e26b"),n("7f7b")),ln=n("a15f");n("77e9"),n("961a");const un=Object(M["a"])(new Map,new WeakMap),hn=Object(je["a"])(),dn=Object(se["a"])(hn),fn=Object(wt["a"])(dn),pn=Object(Dt["a"])(hn),mn=Object(ot["a"])(fn,pn,dn),gn=Object(Bt["a"])(mn),bn=Object(kt["a"])(un,dt["a"],gn),vn=Object(st["a"])(Ke["a"]),yn=Object(_e["a"])(Ke["a"],vn,sn["a"]),Sn=Object(h["a"])(bn,Ze["a"],yn),xn=new WeakMap,_n=Object(at["a"])(Ue["g"]),wn=new WeakMap,En=Object(Q["a"])(ln["a"]),Tn=Object(yt["a"])(pn),Cn=Object(St["a"])(hn),Mn=Object(xt["a"])(hn),Pn=Object(y["a"])(Object(r["a"])(Ue["b"]),xn,un,Object(ht["a"])(Ue["h"],Xe["a"],Ke["a"],Ze["a"],Je["a"],en["a"]),dt["a"],ft["a"],pe["a"],Object($["a"])(Ye["a"],Ue["h"],Ke["a"],Ze["a"],Je["a"],_n,en["a"],fn),Object(Y["a"])(wn,Ke["a"],Qe["a"]),En,_n,Tn,Cn,Mn,fn),An=Object(u["a"])(Pn,Sn,dt["a"],bn,_n,fn),In=new WeakSet,Ln=Object(Rt["a"])(hn),On=Object(V["a"])(new Uint32Array(1)),kn=Object(Ge["a"])(On,dt["a"]),Rn=Object(We["a"])(On),Nn=Object(d["a"])(In,un,pe["a"],Ln,dn,Object(Pe["a"])(Ln),kn,Rn),Dn=Object(Zt["a"])(gn),Vn=Object(c["a"])(Dn),Bn=Object(ke["a"])(gn),Fn=Object(Re["a"])(gn),jn=Object(Ne["a"])(gn),Gn=Object(ze["a"])(gn),Wn=Object(we["a"])(vn,qe["a"],sn["a"]),$n=Object(O["a"])(Wn),zn=Object(Nt["a"])(Vn,un,gn,Object(Ae["a"])(gn),Object(Ie["a"])(dn),Object(Le["a"])(gn),Object(Oe["a"])(gn),Bn,Fn,jn,cn["a"],Object($e["a"])(rn["a"]),Gn),Hn=Object(xe["a"])(Object(rt["a"])(qe["a"]),Wn),Un=Object(p["a"])($n,zn,Ze["a"],Hn,yn),Yn=Object(S["a"])(Object(o["a"])(Ue["d"]),wn,Ue["e"],x["a"],i["createCancelAndHoldAutomationEvent"],i["createCancelScheduledValuesAutomationEvent"],i["createExponentialRampToValueAutomationEvent"],i["createLinearRampToValueAutomationEvent"],i["createSetTargetAutomationEvent"],i["createSetValueAutomationEvent"],i["createSetValueCurveAutomationEvent"],pn),Xn=Object(f["a"])(Pn,Un,Yn,pt["a"],zn,_n,fn,ln["a"]),Kn=Object(g["a"])(Pn,b["a"],dt["a"],pt["a"],Object(Vt["a"])(Dn,rn["a"]),_n,fn,yn),qn=Object(Wt["a"])(gn),Zn=Object(C["a"])($n,qn,Ze["a"],Hn,yn),Jn=Object(T["a"])(Pn,Yn,Zn,ft["a"],qn,_n,fn),Qn=Object(Ot["a"])(tn["a"],Cn),ti=Object(He["a"])(pt["a"],gn,Qn),ei=Object($t["a"])(gn,ti),ni=Object(A["a"])(ei,Ze["a"],yn),ii=Object(P["a"])(Pn,ni,ei,_n,fn),si=Object(zt["a"])(gn),ri=Object(L["a"])(si,Ze["a"],yn),oi=Object(I["a"])(Pn,ri,si,_n,fn),ai=Object(Ut["a"])(Vn,zn,Dn,Qn),ci=Object(Ht["a"])(Vn,un,gn,ai,Bn,jn),li=Object(D["a"])($n,ci,Ze["a"],Hn,yn),ui=Object(N["a"])(Pn,Yn,li,ci,_n,fn,ln["a"]),hi=Object(Xt["a"])(gn,Dn,Qn),di=Object(Yt["a"])(gn,hi,pe["a"],rn["a"]),fi=Object(F["a"])(di,Ze["a"],yn),pi=Object(B["a"])(Pn,fi,di,_n,fn),mi=Object(Kt["a"])(gn),gi=Object(H["a"])($n,mi,Ze["a"],Hn,yn),bi=Object(z["a"])(Pn,Yn,gi,mi,_n,fn),vi=Object(qt["a"])(gn,pe["a"]),yi=Object(q["a"])($n,vi,Ze["a"],Hn,yn),Si=Object(K["a"])(Pn,Yn,yi,vi,pe["a"],_n,fn),xi=Object(it["a"])($n,Dn,Ze["a"],Hn,yn),_i=Object(nt["a"])(Pn,Yn,xi,Dn,_n,fn),wi=Object(le["a"])(gn),Ei=Object(Qt["a"])(ft["a"],pt["a"],wi,pe["a"]),Ti=Object(Ee["a"])(un,Dn,wi,Object(De["a"])(Dn,dn)),Ci=Object(ut["a"])(zn,gn,Ze["a"],dn,yn,Ti),Mi=Object(Jt["a"])(gn,Ei),Pi=Object(lt["a"])(Pn,Mi,Ci,_n,fn),Ai=Object(v["a"])(Yn,ei,ci,wi,fn),Ii=new WeakMap,Li=Object(It["a"])(Kn,Ai,En,fn,Ii,ln["a"]),Oi=Object(re["a"])(Vn,un,gn,Bn,Fn,jn,Gn),ki=Object(be["a"])($n,Oi,Ze["a"],Hn,yn),Ri=Object(ge["a"])(Pn,Yn,pt["a"],Oi,ki,_n,fn,ln["a"]),Ni=Object(R["a"])(zn),Di=Object(fe["a"])(Ni,pt["a"],gn,Dn,nn["a"],Qn),Vi=Object(de["a"])(Ni,pt["a"],gn,Di,nn["a"],Qn,rn["a"]),Bi=Object(ae["a"])(Ye["a"],pt["a"],gn,ei,Dn,wi,Vi,pe["a"],Xe["a"],Qn),Fi=Object(oe["a"])(gn,Bi),ji=Object(ye["a"])($n,ei,ci,Dn,Fi,Ze["a"],dn,Hn,yn,Ti),Gi=Object(ve["a"])(Pn,Yn,Fi,ji,_n,fn),Wi=Object(ce["a"])(mn),$i=Object(Se["a"])(Wi,_n,new WeakSet),zi=Object(he["a"])(ei,si,Dn,Vi,pe["a"],Qn),Hi=Object(ue["a"])(gn,zi,pe["a"]),Ui=Object(Me["a"])($n,Hi,Ze["a"],Hn,yn),Yi=Object(Ce["a"])(Pn,Yn,Hi,Ui,_n,fn),Xi=Object(Fe["a"])(Vi,Ze["a"],yn),Ki=Object(Be["a"])(Pn,pt["a"],Vi,Xi,_n,fn),qi=Object(Et["a"])(hn),Zi=Object(tt["a"])(hn),Ji=qi?Object(a["a"])(pe["a"],Object(J["a"])(hn),Zi,Object(et["a"])(s["a"]),mn,_n,new WeakMap,new WeakMap,hn):void 0,Qi=Object(_t["a"])(Tn,fn),ts=Object(W["a"])(In,un,G["a"],Z["a"],new WeakSet,_n,Qi,fn,dn,on["a"],an["a"],kn,Rn),es=Object(E["a"])(Ji,An,Nn,Xn,Jn,ii,oi,ui,pi,ts,bi,Si,_i,Pi,Li,Ri,Gi,$i,Yi,Ki),ns=Object(te["a"])(gn),is=Object(Tt["a"])(Pn,ns,_n,fn),ss=Object(ee["a"])(gn,pe["a"]),rs=Object(Ct["a"])(Pn,ss,_n,fn),os=Object(ne["a"])(gn),as=Object(Mt["a"])(Pn,os,_n,fn),cs=Object(ie["a"])(pt["a"],gn,fn),ls=Object(Pt["a"])(Pn,cs,_n),us=Object(m["a"])(es,pt["a"],pe["a"],Ve["a"],is,rs,as,ls,pn),hs=Object(ct["a"])(Ii),ds=Object(l["a"])(hs),fs=Object(k["a"])(dt["a"]),ps=Object(U["a"])(hs),ms=Object(X["a"])(dt["a"]),gs=Object(Gt["a"])(xn,fs,dt["a"],pt["a"],ei,si,ci,Dn,wi,pe["a"],ms,Zi,Qn),bs=Object(jt["a"])(pt["a"],gn,gs,Dn,pe["a"],Qn),vs=Object(Ft["a"])(hn),ys=Object(w["a"])($n,fs,zn,ei,si,ci,Dn,ps,ms,Zi,Ze["a"],vs,dn,Hn,yn,Ti),Ss=(qi&&Object(_["a"])(ds,Pn,Yn,ys,bs,_n,fn,vs,ln["a"]),Object(At["a"])(pt["a"],pe["a"],Ve["a"],Li,pn),Object(j["a"])(pe["a"],dn)),xs=Object(Te["a"])(In,un,vn,hs,Ti,on["a"],kn,Rn);Object(Lt["a"])(un,pt["a"],Ss,Li,xs),Object(me["a"])(es,un,pt["a"],Ss,xs),Object(mt["a"])(Ue["g"],Tn),Object(gt["a"])(Ue["c"],Cn),Object(bt["a"])(Ue["e"],Mn),Object(vt["a"])(Ue["g"],fn)},1448:function(t,e,n){"use strict";n("386b")("strike",(function(t){return function(){return t(this,"strike","","")}}))},"148c":function(t,e,n){var i=n("a256"),s=n("6c69"),r=n("cefa"),o=n("9dc3");function a(t,e){return i(t)||s(t,e)||r(t,e)||o()}t.exports=a},1495:function(t,e,n){var i=n("86cc"),s=n("cb7c"),r=n("0d58");t.exports=n("9e1e")?Object.defineProperties:function(t,e){s(t);var n,o=r(e),a=o.length,c=0;while(a>c)i.f(t,n=o[c++],e[n]);return t}},"14b9":function(t,e,n){var i=n("5ca1");i(i.P,"String",{repeat:n("9744")})},"14bf":function(t,e){},"152a":function(t,e){},"154b":function(t,e){},"15ac":function(t,e,n){n("ec30")("Int16",2,(function(t){return function(e,n,i){return t(this,e,n,i)}}))},"15dc":function(t,e){},"163c":function(t,e){},"165b":function(t,e,n){var i=n("d3f4");n("5eda")("isExtensible",(function(t){return function(e){return!!i(e)&&(!t||t(e))}}))},"16da":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=t=>e=>{const n=t(e,t=>t.createBufferSource());n.start();try{n.stop()}catch{return!1}return!0}},"16f7":function(t,e){},"16fe":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=t=>(e,n)=>{const i=t(e,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});n.connect(i).connect(i.context.destination);const s=()=>{n.removeEventListener("ended",s),n.disconnect(i),i.disconnect()};n.addEventListener("ended",s)}},"17d6":function(t,e){},"17e7":function(t,e){},"180a":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=(t,e,n)=>{const i=e[n];void 0!==i&&i!==t[n]&&(t[n]=i)}},"181a":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=t=>()=>{if(null===t)return Promise.resolve(!1);const e=new t(1,1,44100);return new Promise(t=>{let n=!0;const i=i=>{n&&(n=!1,e.startRendering(),t(i instanceof TypeError))};let s;try{s=e.decodeAudioData(null,()=>{},i)}catch(r){i(r)}void 0!==s&&s.catch(i)})}},1827:function(t,e){},"18b3":function(t,e){},"18bf":function(t,e){},1991:function(t,e,n){var i,s,r,o=n("9b43"),a=n("31f4"),c=n("fab2"),l=n("230e"),u=n("7726"),h=u.process,d=u.setImmediate,f=u.clearImmediate,p=u.MessageChannel,m=u.Dispatch,g=0,b={},v="onreadystatechange",y=function(){var t=+this;if(b.hasOwnProperty(t)){var e=b[t];delete b[t],e()}},S=function(t){y.call(t.data)};d&&f||(d=function(t){var e=[],n=1;while(arguments.length>n)e.push(arguments[n++]);return b[++g]=function(){a("function"==typeof t?t:Function(t),e)},i(g),g},f=function(t){delete b[t]},"process"==n("2d95")(h)?i=function(t){h.nextTick(o(y,t,1))}:m&&m.now?i=function(t){m.now(o(y,t,1))}:p?(s=new p,r=s.port2,s.port1.onmessage=S,i=o(r.postMessage,r,1)):u.addEventListener&&"function"==typeof postMessage&&!u.importScripts?(i=function(t){u.postMessage(t+"","*")},u.addEventListener("message",S,!1)):i=v in l("script")?function(t){c.appendChild(l("script"))[v]=function(){c.removeChild(this),y.call(t)}}:function(t){setTimeout(o(y,t,1),0)}),t.exports={set:d,clear:f}},"19c0":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("383e");const s={Q:1,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",detune:0,frequency:350,gain:0,type:"lowpass"},r=(t,e,n,r,o,a,c)=>class extends t{constructor(t,r=s){const l=a(t),u={...s,...r},h=o(l,u),d=c(l),f=d?n():null;super(t,!1,h,f),this._Q=e(this,d,h.Q,i["b"],i["a"]),this._detune=e(this,d,h.detune,1200*Math.log2(i["b"]),-1200*Math.log2(i["b"])),this._frequency=e(this,d,h.frequency,t.sampleRate/2,0),this._gain=e(this,d,h.gain,40*Math.log10(i["b"]),i["a"]),this._nativeBiquadFilterNode=h}get detune(){return this._detune}get frequency(){return this._frequency}get gain(){return this._gain}get Q(){return this._Q}get type(){return this._nativeBiquadFilterNode.type}set type(t){this._nativeBiquadFilterNode.type=t}getFrequencyResponse(t,e,n){if(this._nativeBiquadFilterNode.getFrequencyResponse(t,e,n),t.length!==e.length||e.length!==n.length)throw r()}}},"1ace":function(t,e){},"1b0e":function(t,e){},"1b1e":function(t,e){},"1b30":function(t,e){},"1b32":function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("5b43");const s=(t,e)=>(n,s)=>{if(void 0===n.createMediaStreamDestination)throw e();const r=t(n,t=>t.createMediaStreamDestination());return Object(i["a"])(r,s),1===r.numberOfOutputs&&Object.defineProperty(r,"numberOfOutputs",{get:()=>0}),r}},"1b8b":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("5b43"),s=n("8af4");const r=(t,e,n)=>(r,{buffer:o,channelCount:a,channelCountMode:c,channelInterpretation:l,disableNormalization:u})=>{const h=t(r,t=>t.createConvolver());Object(i["a"])(h,{channelCount:Math.max(a,2),channelCountMode:"max"===c?c:"clamped-max",channelInterpretation:l});const d=e(r,{channelCount:a,channelCountMode:c,channelInterpretation:l,gain:1}),f={get buffer(){return h.buffer},set buffer(t){h.buffer=t},get bufferSize(){},get channelCount(){return d.channelCount},set channelCount(t){t>2&&(h.channelCount=t),d.channelCount=t},get channelCountMode(){return d.channelCountMode},set channelCountMode(t){"max"===t&&(h.channelCountMode=t),d.channelCountMode=t},get channelInterpretation(){return h.channelInterpretation},set channelInterpretation(t){h.channelInterpretation=t,d.channelInterpretation=t},get context(){return h.context},get inputs(){return[h]},get numberOfInputs(){return h.numberOfInputs},get numberOfOutputs(){return h.numberOfOutputs},get normalize(){return h.normalize},set normalize(t){h.normalize=t},addEventListener(...t){return h.addEventListener(t[0],t[1],t[2])},dispatchEvent(...t){return h.dispatchEvent(t[0])},removeEventListener(...t){return h.removeEventListener(t[0],t[1],t[2])}};u===f.normalize&&(f.normalize=!u),o!==f.buffer&&(f.buffer=o);const p=()=>h.connect(d),m=()=>h.disconnect(d);return n(Object(s["a"])(f,d),p,m)}},"1c15":function(t,e,n){"use strict";function i(t,e){return Array(e+1).join(t)}function s(t){return"number"===typeof t}function r(t){return"string"===typeof t}function o(t){return"undefined"!==typeof t}function a(t,e){return Math.pow(2,(t-69)/12)*(e||440)}n.r(e),n.d(e,"regex",(function(){return l})),n.d(e,"parse",(function(){return h})),n.d(e,"build",(function(){return m})),n.d(e,"midi",(function(){return g})),n.d(e,"freq",(function(){return b})),n.d(e,"letter",(function(){return v})),n.d(e,"acc",(function(){return y})),n.d(e,"pc",(function(){return S})),n.d(e,"step",(function(){return x})),n.d(e,"alt",(function(){return _})),n.d(e,"chroma",(function(){return w})),n.d(e,"oct",(function(){return E}));var c=/^([a-gA-G])(#{1,}|b{1,}|x{1,}|)(-?\d*)\s*(.*)\s*$/;function l(){return c}var u=[0,2,4,5,7,9,11];function h(t,e,n){if("string"!==typeof t)return null;var i=c.exec(t);if(!i||!e&&i[4])return null;var s={letter:i[1].toUpperCase(),acc:i[2].replace(/x/g,"##")};s.pc=s.letter+s.acc,s.step=(s.letter.charCodeAt(0)+3)%7,s.alt="b"===s.acc[0]?-s.acc.length:s.acc.length;var r=u[s.step]+s.alt;return s.chroma=r<0?12+r:r%12,i[3]&&(s.oct=+i[3],s.midi=r+12*(s.oct+1),s.freq=a(s.midi,n)),e&&(s.tonicOf=i[4]),s}var d="CDEFGAB";function f(t){return s(t)?t<0?i("b",-t):i("#",t):""}function p(t){return s(t)?""+t:""}function m(t,e,n){return null===t||"undefined"===typeof t?null:t.step?m(t.step,t.alt,t.oct):t<0||t>6?null:d.charAt(t)+f(e)+p(n)}function g(t){if((s(t)||r(t))&&t>=0&&t<128)return+t;var e=h(t);return e&&o(e.midi)?e.midi:null}function b(t,e){var n=g(t);return null===n?null:a(n,e)}function v(t){return(h(t)||{}).letter}function y(t){return(h(t)||{}).acc}function S(t){return(h(t)||{}).pc}function x(t){return(h(t)||{}).step}function _(t){return(h(t)||{}).alt}function w(t){return(h(t)||{}).chroma}function E(t){return(h(t)||{}).oct}},"1c4c":function(t,e,n){"use strict";var i=n("9b43"),s=n("5ca1"),r=n("4bf8"),o=n("1fa8"),a=n("33a4"),c=n("9def"),l=n("f1ae"),u=n("27ee");s(s.S+s.F*!n("5cc5")((function(t){Array.from(t)})),"Array",{from:function(t){var e,n,s,h,d=r(t),f="function"==typeof this?this:Array,p=arguments.length,m=p>1?arguments[1]:void 0,g=void 0!==m,b=0,v=u(d);if(g&&(m=i(m,p>2?arguments[2]:void 0,2)),void 0==v||f==Array&&a(v))for(e=c(d.length),n=new f(e);e>b;b++)l(n,b,g?m(d[b],b):d[b]);else for(h=v.call(d),n=new f;!(s=h.next()).done;b++)l(n,b,g?o(h,m,[s.value,b],!0):s.value);return n.length=b,n}})},"1c8b":function(t,e){},"1ccf":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const i=t=>{const{port1:e}=new MessageChannel;e.postMessage(t,[t])};var s=n("aa59");const r=(t,e,n,r,o,a,c,l,u,h,d,f,p)=>(m,g)=>{const b=c(m)?m:a(m);if(o.has(g)){const t=n();return Promise.reject(t)}try{o.add(g)}catch{}if(e(d,()=>d(b))){const n="closed"===b.state&&null!==u&&l(b)?new u(1,1,b.sampleRate):b,i=n.decodeAudioData(g).catch(t=>{if(t instanceof DOMException&&"NotSupportedError"===t.name)throw new TypeError;throw t});return i.then(n=>(e(h,()=>h(n))||p(n),t.add(n),n))}return new Promise((e,n)=>{const o=()=>{try{i(g)}catch{}},a=t=>{n(t),o()};try{b.decodeAudioData(g,n=>{"function"!==typeof n.copyFromChannel&&(f(n),Object(s["a"])(n)),t.add(n),o(),e(n)},t=>{a(null===t?r():t)})}catch(c){a(c)}})}},"1d2b":function(t,e,n){"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),i=0;i<n.length;i++)n[i]=arguments[i];return t.apply(e,n)}}},"1dc0":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("049b");const s={numberOfChannels:1},r=(t,e,n,r,o)=>class extends t{constructor(t,n,o){let a;if("number"===typeof t&&void 0!==n&&void 0!==o)a={length:n,numberOfChannels:t,sampleRate:o};else{if("object"!==typeof t)throw new Error("The given parameters are not valid.");a=t}const{length:c,numberOfChannels:l,sampleRate:u}={...s,...a},h=r(l,c,u);e(i["a"],()=>Object(i["a"])(h))||h.addEventListener("statechange",(()=>{let t=0;const e=n=>{"running"===this._state&&(t>0?(h.removeEventListener("statechange",e),n.stopImmediatePropagation(),this._waitForThePromiseToSettle(n)):t+=1)};return e})()),super(h,l),this._length=c,this._nativeOfflineAudioContext=h,this._state=null}get length(){return void 0===this._nativeOfflineAudioContext.length?this._length:this._nativeOfflineAudioContext.length}get state(){return null===this._state?this._nativeOfflineAudioContext.state:this._state}startRendering(){return"running"===this._state?Promise.reject(n()):(this._state="running",o(this.destination,this._nativeOfflineAudioContext).then(t=>(this._state=null,t)).catch(t=>{throw this._state=null,t}))}_waitForThePromiseToSettle(t){null===this._state?this._nativeOfflineAudioContext.dispatchEvent(t):setTimeout(()=>this._waitForThePromiseToSettle(t))}}},"1dc8":function(t,e){},"1e82":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("752e"),s=n("e427");const r=t=>{if(i["a"].has(t))throw new Error("The AudioNode is already stored.");i["a"].add(t),Object(s["a"])(t).forEach(t=>t(!0))}},"1e94":function(t,e){},"1f43":function(t,e){},"1fa8":function(t,e,n){var i=n("cb7c");t.exports=function(t,e,n,s){try{return s?e(i(n)[0],n[1]):e(n)}catch(o){var r=t["return"];throw void 0!==r&&i(r.call(t)),o}}},2018:function(t,e){},2026:function(t,e){},"204f":function(t,e){},"20d6":function(t,e,n){"use strict";var i=n("5ca1"),s=n("0a49")(6),r="findIndex",o=!0;r in[]&&Array(1)[r]((function(){o=!1})),i(i.P+i.F*o,"Array",{findIndex:function(t){return s(this,t,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")(r)},"214f":function(t,e,n){"use strict";n("b0c5");var i=n("2aba"),s=n("32e9"),r=n("79e5"),o=n("be13"),a=n("2b4c"),c=n("520a"),l=a("species"),u=!r((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),h=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();t.exports=function(t,e,n){var d=a(t),f=!r((function(){var e={};return e[d]=function(){return 7},7!=""[t](e)})),p=f?!r((function(){var e=!1,n=/a/;return n.exec=function(){return e=!0,null},"split"===t&&(n.constructor={},n.constructor[l]=function(){return n}),n[d](""),!e})):void 0;if(!f||!p||"replace"===t&&!u||"split"===t&&!h){var m=/./[d],g=n(o,d,""[t],(function(t,e,n,i,s){return e.exec===c?f&&!s?{done:!0,value:m.call(e,n,i)}:{done:!0,value:t.call(n,e,i)}:{done:!1}})),b=g[0],v=g[1];i(String.prototype,t,b),s(RegExp.prototype,d,2==e?function(t,e){return v.call(t,this,e)}:function(t){return v.call(t,this)})}}},"217b":function(t,e,n){"use strict";var i=n("d3f4"),s=n("38fd"),r=n("2b4c")("hasInstance"),o=Function.prototype;r in o||n("86cc").f(o,r,{value:function(t){if("function"!=typeof this||!i(t))return!1;if(!i(this.prototype))return t instanceof this;while(t=s(t))if(this.prototype===t)return!0;return!1}})},"224e":function(t,e){},2251:function(t,e,n){var i=n("5ca1"),s=n("cb7c"),r=Object.isExtensible;i(i.S,"Reflect",{isExtensible:function(t){return s(t),!r||r(t)}})},2286:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("752e");const s=t=>i["h"].has(t)},"229f":function(t,e){},"22e6":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=t=>(e,n)=>{t(e).add(n)}},"230e":function(t,e,n){var i=n("d3f4"),s=n("7726").document,r=i(s)&&i(s.createElement);t.exports=function(t){return r?s.createElement(t):{}}},"234f":function(t,e){},2397:function(t,e,n){var i=n("5ca1"),s=n("2aeb"),r=n("d8e8"),o=n("cb7c"),a=n("d3f4"),c=n("79e5"),l=n("f0c1"),u=(n("7726").Reflect||{}).construct,h=c((function(){function t(){}return!(u((function(){}),[],t)instanceof t)})),d=!c((function(){u((function(){}))}));i(i.S+i.F*(h||d),"Reflect",{construct:function(t,e){r(t),o(e);var n=arguments.length<3?t:r(arguments[2]);if(d&&!h)return u(t,e,n);if(t==n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var i=[null];return i.push.apply(i,e),new(l.apply(t,i))}var c=n.prototype,f=s(a(c)?c:Object.prototype),p=Function.apply.call(t,f,e);return a(p)?p:f}})},"23a9":function(t,e){},"23c6":function(t,e,n){var i=n("2d95"),s=n("2b4c")("toStringTag"),r="Arguments"==i(function(){return arguments}()),o=function(t,e){try{return t[e]}catch(n){}};t.exports=function(t){var e,n,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=o(e=Object(t),s))?n:r?i(e):"Object"==(a=i(e))&&"function"==typeof e.callee?"Arguments":a}},"23ca":function(t,e){},"23e6":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=t=>e=>{const n=t(e,t=>t.createOscillator());try{n.stop(-1)}catch(i){return i instanceof RangeError}return!1}},"242a":function(t,e,n){"use strict";n("386b")("sup",(function(t){return function(){return t(this,"sup","","")}}))},2440:function(t,e){},2444:function(t,e,n){"use strict";(function(e){var i=n("c532"),s=n("c8af"),r={"Content-Type":"application/x-www-form-urlencoded"};function o(t,e){!i.isUndefined(t)&&i.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}function a(){var t;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof e&&"[object process]"===Object.prototype.toString.call(e))&&(t=n("b50d")),t}var c={adapter:a(),transformRequest:[function(t,e){return s(e,"Accept"),s(e,"Content-Type"),i.isFormData(t)||i.isArrayBuffer(t)||i.isBuffer(t)||i.isStream(t)||i.isFile(t)||i.isBlob(t)?t:i.isArrayBufferView(t)?t.buffer:i.isURLSearchParams(t)?(o(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):i.isObject(t)?(o(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"===typeof t)try{t=JSON.parse(t)}catch(e){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};i.forEach(["delete","get","head"],(function(t){c.headers[t]={}})),i.forEach(["post","put","patch"],(function(t){c.headers[t]=i.merge(r)})),t.exports=c}).call(this,n("f28c"))},2592:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var i=n("752e"),s=n("5046");const r={channelCount:2,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:1,numberOfOutputs:1,outputChannelCount:void 0,parameterData:{},processorOptions:{}},o=t=>{const e=[];for(let n=0;n<t;n+=1)e.push(1);return e},a=t=>({...t,outputChannelCount:void 0!==t.outputChannelCount?t.outputChannelCount:1===t.numberOfInputs&&1===t.numberOfOutputs?[t.channelCount]:o(t.numberOfOutputs)}),c=(t,e,n,o,c,l,u,h,d)=>class extends e{constructor(e,d,f=r){const p=l(e),m=u(p),g=a({...r,...f}),b=i["j"].get(p),v=void 0===b?void 0:b.get(d),y=c(p,m?null:e.baseLatency,h,d,v,g),S=m?o(d,g,v):null;super(e,!0,y,S);const x=[];y.parameters.forEach((t,e)=>{const i=n(this,m,t);x.push([e,i])}),this._nativeAudioWorkletNode=y,this._onprocessorerror=null,this._parameters=new s["a"](x),m&&t(p,this)}get onprocessorerror(){return this._onprocessorerror}set onprocessorerror(t){const e="function"===typeof t?d(this,t):null;this._nativeAudioWorkletNode.onprocessorerror=e;const n=this._nativeAudioWorkletNode.onprocessorerror;this._onprocessorerror=null!==n&&n===e?t:n}get parameters(){return null===this._parameters?this._nativeAudioWorkletNode.parameters:this._parameters}get port(){return this._nativeAudioWorkletNode.port}}},"25c9":function(t,e,n){var i=n("5ca1"),s=Math.exp;i(i.S,"Math",{cosh:function(t){return(s(t=+t)+s(-t))/2}})},"25db":function(t,e,n){n("5eda")("getOwnPropertyNames",(function(){return n("7bbc").f}))},2621:function(t,e){e.f=Object.getOwnPropertySymbols},"264b":function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("59e9");const s=t=>Object(i["a"])(t[0])},"27ee":function(t,e,n){var i=n("23c6"),s=n("2b4c")("iterator"),r=n("84f2");t.exports=n("8378").getIteratorMethod=function(t){if(void 0!=t)return t[s]||t["@@iterator"]||r[i(t)]}},2818:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=(t,e,n)=>(i,s)=>{s.channelCount=1,s.channelCountMode="explicit",Object.defineProperty(s,"channelCount",{get:()=>1,set:()=>{throw t()}}),Object.defineProperty(s,"channelCountMode",{get:()=>"explicit",set:()=>{throw t()}});const r=e(i,t=>t.createBufferSource()),o=()=>{const t=s.numberOfInputs;for(let e=0;e<t;e+=1)r.connect(s,0,e)},a=()=>r.disconnect(s);n(s,o,a)}},2877:function(t,e,n){"use strict";function i(t,e,n,i,s,r,o,a){var c,l="function"===typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=n,l._compiled=!0),i&&(l.functional=!0),r&&(l._scopeId="data-v-"+r),o?(c=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),s&&s.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},l._ssrRegister=c):s&&(c=a?function(){s.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:s),c)if(l.functional){l._injectStyles=c;var u=l.render;l.render=function(t,e){return c.call(e),u(t,e)}}else{var h=l.beforeCreate;l.beforeCreate=h?[].concat(h,c):[c]}return{exports:t,options:l}}n.d(e,"a",(function(){return i}))},"28a5":function(t,e,n){"use strict";var i=n("aae3"),s=n("cb7c"),r=n("ebd6"),o=n("0390"),a=n("9def"),c=n("5f1b"),l=n("520a"),u=n("79e5"),h=Math.min,d=[].push,f="split",p="length",m="lastIndex",g=4294967295,b=!u((function(){RegExp(g,"y")}));n("214f")("split",2,(function(t,e,n,u){var v;return v="c"=="abbc"[f](/(b)*/)[1]||4!="test"[f](/(?:)/,-1)[p]||2!="ab"[f](/(?:ab)*/)[p]||4!="."[f](/(.?)(.?)/)[p]||"."[f](/()()/)[p]>1||""[f](/.?/)[p]?function(t,e){var s=String(this);if(void 0===t&&0===e)return[];if(!i(t))return n.call(s,t,e);var r,o,a,c=[],u=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),h=0,f=void 0===e?g:e>>>0,b=new RegExp(t.source,u+"g");while(r=l.call(b,s)){if(o=b[m],o>h&&(c.push(s.slice(h,r.index)),r[p]>1&&r.index<s[p]&&d.apply(c,r.slice(1)),a=r[0][p],h=o,c[p]>=f))break;b[m]===r.index&&b[m]++}return h===s[p]?!a&&b.test("")||c.push(""):c.push(s.slice(h)),c[p]>f?c.slice(0,f):c}:"0"[f](void 0,0)[p]?function(t,e){return void 0===t&&0===e?[]:n.call(this,t,e)}:n,[function(n,i){var s=t(this),r=void 0==n?void 0:n[e];return void 0!==r?r.call(n,s,i):v.call(String(s),n,i)},function(t,e){var i=u(v,t,this,e,v!==n);if(i.done)return i.value;var l=s(t),d=String(this),f=r(l,RegExp),p=l.unicode,m=(l.ignoreCase?"i":"")+(l.multiline?"m":"")+(l.unicode?"u":"")+(b?"y":"g"),y=new f(b?l:"^(?:"+l.source+")",m),S=void 0===e?g:e>>>0;if(0===S)return[];if(0===d.length)return null===c(y,d)?[d]:[];var x=0,_=0,w=[];while(_<d.length){y.lastIndex=b?_:0;var E,T=c(y,b?d:d.slice(_));if(null===T||(E=h(a(y.lastIndex+(b?0:_)),d.length))===x)_=o(d,_,p);else{if(w.push(d.slice(x,_)),w.length===S)return w;for(var C=1;C<=T.length-1;C++)if(w.push(T[C]),w.length===S)return w;_=x=E}}return w.push(d.slice(x)),w}]}))},"28bd":function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));const i={disableNormalization:!1},s=(t,e,n)=>class s{constructor(s,r){const o=e(s),a={...i,...r},c=t(o,a);return n.add(c),c}static[Symbol.hasInstance](t){return null!==t&&"object"===typeof t&&Object.getPrototypeOf(t)===s.prototype||n.has(t)}}},2938:function(t,e,n){!function(e,n){t.exports=n()}(window,(function(){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var s=e[i]={i:i,l:!1,exports:{}};return t[i].call(s.exports,s,s.exports,n),s.l=!0,s.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var s in t)n.d(i,s,function(e){return t[e]}.bind(null,s));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=178)}([function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Fraction=void 0;class i{constructor(t=0,e=1,n=0,i=!0){this.numerator=0,this.denominator=1,this.wholeValue=0,this.numerator=t,this.denominator=e,this.wholeValue=n,i&&this.simplify(),this.setRealValue()}static max(t,e){return t.RealValue>e.RealValue?t:e}static Equal(t,e){return t.wholeValue===e.wholeValue&&t.Denominator===e.Denominator&&t.Numerator===e.Numerator}static createFromFraction(t){return new i(t.numerator,t.denominator,t.wholeValue,!1)}static plus(t,e){const n=t.clone();return n.Add(e),n}static minus(t,e){const n=t.clone();return n.Sub(e),n}static multiply(t,e){return new i((t.wholeValue*t.denominator+t.numerator)*(e.wholeValue*e.denominator+e.numerator),t.denominator*e.denominator)}static greatestCommonDenominator(t,e){if(0===t)return e;if(1===e)return 1;for(;0!==e;)t>e?t-=e:e-=t;return t}toString(){let t=this.numerator+"/"+this.denominator;return 0!==this.wholeValue&&(t=this.wholeValue+" "+t),t}clone(){return new i(this.numerator,this.denominator,this.wholeValue,!1)}get Numerator(){return this.numerator}set Numerator(t){this.numerator!==t&&(this.numerator=t,this.simplify(),this.setRealValue())}get Denominator(){return this.denominator}set Denominator(t){this.denominator!==t&&(this.denominator=t,0!==this.numerator&&this.simplify(),this.setRealValue())}get WholeValue(){return this.wholeValue}set WholeValue(t){this.wholeValue!==t&&(this.wholeValue=t,this.setRealValue())}GetExpandedNumerator(){return this.wholeValue*this.denominator+this.numerator}IsNegative(){return this.realValue<0}get RealValue(){return this.realValue}expand(t){this.numerator*=t,this.denominator*=t,0!==this.wholeValue&&(this.numerator+=this.wholeValue*this.denominator,this.wholeValue=0)}Add(t){this.numerator=(this.wholeValue*this.denominator+this.numerator)*t.denominator+(t.wholeValue*t.denominator+t.numerator)*this.denominator,this.denominator=this.denominator*t.denominator,this.wholeValue=0,this.simplify(),this.setRealValue()}Sub(t){this.numerator=(this.wholeValue*this.denominator+this.numerator)*t.denominator-(t.wholeValue*t.denominator+t.numerator)*this.denominator,this.denominator=this.denominator*t.denominator,this.wholeValue=0,this.simplify(),this.setRealValue()}Quantize(t){if(this.denominator<=t)return this;const e=new i(this.numerator+1,this.denominator,this.wholeValue);for(;e.Denominator>t;)e.Numerator++;if(this.numerator>this.denominator){const n=new i(this.numerator-1,this.denominator,this.wholeValue);for(;n.Denominator>t;)n.Numerator--;if(n.Denominator<e.Denominator)return n}return e}Equals(t){return this.realValue===(null==t?void 0:t.realValue)}CompareTo(t){const e=this.realValue-t.realValue;return e?e<0?-1:1:0}lt(t){return this.realValue<t.realValue}lte(t){return this.realValue<=t.realValue}gt(t){return!this.lte(t)}gte(t){return!this.lt(t)}setRealValue(){this.realValue=this.wholeValue+this.numerator/this.denominator}simplify(){if(0===this.numerator)return void(this.denominator=1);const t=i.greatestCommonDenominator(Math.abs(this.numerator),Math.abs(this.denominator));this.numerator/=t,this.denominator/=t;const e=Math.floor(this.numerator/this.denominator);if(0!==e&&(this.wholeValue+=e,this.numerator-=e*this.denominator,0===this.numerator&&(this.denominator=1)),this.denominator>i.maximumAllowedNumber){const t=this.denominator/i.maximumAllowedNumber;this.numerator=Math.round(this.numerator/t),this.denominator=Math.round(this.denominator/t)}if(this.numerator>i.maximumAllowedNumber){const t=this.numerator/i.maximumAllowedNumber;this.numerator=Math.round(this.numerator/t),this.denominator=Math.round(this.denominator/t)}}isOnBeat(t){const e=this.distanceFromBeat(t);return Math.abs(e)<i.FloatInaccuracyTolerance}distanceFromBeat(t){const e=new i(1,t.Denominator);return this.RealValue%e.RealValue}}e.Fraction=i,i.maximumAllowedNumber=46340,i.FloatInaccuracyTolerance=1e-4},function(t,e,n){var i,s;!function(r,o){"use strict";void 0===(s="function"==typeof(i=function(){var t=function(){},e="undefined"!=typeof window&&void 0!==window.navigator&&/Trident\/|MSIE /.test(window.navigator.userAgent),n=["trace","debug","info","warn","error"];function i(t,e){var n=t[e];if("function"==typeof n.bind)return n.bind(t);try{return Function.prototype.bind.call(n,t)}catch(e){return function(){return Function.prototype.apply.apply(n,[t,arguments])}}}function s(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function r(n){return"debug"===n&&(n="log"),"undefined"!=typeof console&&("trace"===n&&e?s:void 0!==console[n]?i(console,n):void 0!==console.log?i(console,"log"):t)}function o(e,i){for(var s=0;s<n.length;s++){var r=n[s];this[r]=s<e?t:this.methodFactory(r,e,i)}this.log=this.debug}function a(t,e,n){return function(){"undefined"!=typeof console&&(o.call(this,e,n),this[t].apply(this,arguments))}}function c(t,e,n){return r(t)||a.apply(this,arguments)}function l(t,e,i){var s,r=this,a="loglevel";function l(){var t;if("undefined"!=typeof window){try{t=window.localStorage[a]}catch(t){}if(void 0===t)try{var e=window.document.cookie,n=e.indexOf(encodeURIComponent(a)+"=");-1!==n&&(t=/^([^;]+)/.exec(e.slice(n))[1])}catch(t){}return void 0===r.levels[t]&&(t=void 0),t}}t&&(a+=":"+t),r.name=t,r.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},r.methodFactory=i||c,r.getLevel=function(){return s},r.setLevel=function(e,i){if("string"==typeof e&&void 0!==r.levels[e.toUpperCase()]&&(e=r.levels[e.toUpperCase()]),!("number"==typeof e&&e>=0&&e<=r.levels.SILENT))throw"log.setLevel() called with invalid level: "+e;if(s=e,!1!==i&&function(t){var e=(n[t]||"silent").toUpperCase();if("undefined"!=typeof window){try{return void(window.localStorage[a]=e)}catch(t){}try{window.document.cookie=encodeURIComponent(a)+"="+e+";"}catch(t){}}}(e),o.call(r,e,t),"undefined"==typeof console&&e<r.levels.SILENT)return"No console available for logging"},r.setDefaultLevel=function(t){l()||r.setLevel(t,!1)},r.enableAll=function(t){r.setLevel(r.levels.TRACE,t)},r.disableAll=function(t){r.setLevel(r.levels.SILENT,t)};var u=l();null==u&&(u=null==e?"WARN":e),r.setLevel(u,!1)}var u=new l,h={};u.getLogger=function(t){if("string"!=typeof t||""===t)throw new TypeError("You must supply a name when creating a logger.");var e=h[t];return e||(e=h[t]=new l(t,u.getLevel(),u.methodFactory)),e};var d="undefined"!=typeof window?window.log:void 0;return u.noConflict=function(){return"undefined"!=typeof window&&window.log===u&&(window.log=d),u},u.getLoggers=function(){return h},u})?i.call(e,n,e,t):i)||(t.exports=s)}()},function(t,e,n){"use strict";var i,s;Object.defineProperty(e,"__esModule",{value:!0}),e.Pitch=e.AccidentalEnum=e.NoteEnum=void 0,function(t){t[t.C=0]="C",t[t.D=2]="D",t[t.E=4]="E",t[t.F=5]="F",t[t.G=7]="G",t[t.A=9]="A",t[t.B=11]="B"}(i=e.NoteEnum||(e.NoteEnum={})),function(t){t[t.SHARP=0]="SHARP",t[t.FLAT=1]="FLAT",t[t.NONE=2]="NONE",t[t.NATURAL=3]="NATURAL",t[t.DOUBLESHARP=4]="DOUBLESHARP",t[t.DOUBLEFLAT=5]="DOUBLEFLAT",t[t.TRIPLESHARP=6]="TRIPLESHARP",t[t.TRIPLEFLAT=7]="TRIPLEFLAT",t[t.QUARTERTONESHARP=8]="QUARTERTONESHARP",t[t.QUARTERTONEFLAT=9]="QUARTERTONEFLAT"}(s=e.AccidentalEnum||(e.AccidentalEnum={}));class r{constructor(t,e,n){this.accidental=s.NONE,this.fundamentalNote=t,this.octave=e,this.accidental=n,this.halfTone=t+12*(e+r.octXmlDiff)+r.HalfTonesFromAccidental(n),this.frequency=r.calcFrequency(this)}static getNoteEnumString(t){switch(t){case i.C:return"C";case i.D:return"D";case i.E:return"E";case i.F:return"F";case i.G:return"G";case i.A:return"A";case i.B:return"B";default:return""}}static CalculateTransposedHalfTone(t,e){const n=t.fundamentalNote+t.AccidentalHalfTones+e;return r.WrapAroundCheck(n,12)}static WrapAroundCheck(t,e){let n=0;for(;t<0;)t+=e,n--;for(;t>=e;)t-=e,n++;return{overflow:n,halftone:t}}static calcFrequency(t){let e,n=0;if(t instanceof r){const s=t;n=s.octave-1,e=s.fundamentalNote-i.A+s.AccidentalHalfTones}else"number"==typeof t&&(e=t-57);return 440*Math.pow(2,n)*Math.pow(2,e/12)}static calcFractionalKey(t){return Math.log(t/440)/Math.LN10*r.halftoneFactor+57}static fromFrequency(t){const e=r.calcFractionalKey(t)+.5,n=Math.floor(e/12)-r.octXmlDiff,i=Math.floor(e)%12;let o=i,a=s.NONE;return-1===this.pitchEnumValues.indexOf(o)&&(o=i-1,a=s.SHARP),new r(o,n,a)}static fromHalftone(t){const e=Math.floor(t/12)-r.octXmlDiff,n=t%12;let i=n,o=s.NONE;return-1===this.pitchEnumValues.indexOf(i)&&(i=n-1,o=s.SHARP),new r(i,e,o)}static ceiling(t){let e=t%=12;return-1===this.pitchEnumValues.indexOf(e)&&(e=t+1),e}static floor(t){let e=t%=12;return-1===this.pitchEnumValues.indexOf(e)&&(e=t-1),e}static HalfTonesFromAccidental(t){switch(t){case s.NONE:return 0;case s.SHARP:return 1;case s.FLAT:return-1;case s.NATURAL:return 0;case s.DOUBLESHARP:return 2;case s.DOUBLEFLAT:return-2;case s.QUARTERTONESHARP:return.5;case s.QUARTERTONEFLAT:return-.5;case s.TRIPLESHARP:return 3;case s.TRIPLEFLAT:return-3;default:throw new Error("Unhandled AccidentalEnum value")}}static AccidentalFromHalfTones(t){switch(t){case 0:return s.NONE;case 1:return s.SHARP;case-1:return s.FLAT;case 2:return s.DOUBLESHARP;case-2:return s.DOUBLEFLAT;case.5:return s.QUARTERTONESHARP;case-.5:return s.QUARTERTONEFLAT;case 3:return s.TRIPLESHARP;case-3:return s.TRIPLEFLAT;default:return t>0&&t<1?s.QUARTERTONESHARP:t<0&&t>-1?s.QUARTERTONEFLAT:s.QUARTERTONESHARP}}static accidentalVexflow(t){let e;switch(t){case s.NATURAL:e="n";break;case s.FLAT:e="b";break;case s.SHARP:e="#";break;case s.DOUBLESHARP:e="##";break;case s.TRIPLESHARP:e="++";break;case s.DOUBLEFLAT:e="bb";break;case s.TRIPLEFLAT:e="bbs";break;case s.QUARTERTONESHARP:e="+";break;case s.QUARTERTONEFLAT:e="d"}return e}get AccidentalHalfTones(){return r.HalfTonesFromAccidental(this.accidental)}get Octave(){return this.octave}get FundamentalNote(){return this.fundamentalNote}get Accidental(){return this.accidental}get Frequency(){return this.frequency}static get OctaveXmlDifference(){return r.octXmlDiff}getHalfTone(){return this.halfTone}getTransposedPitch(t){if(t>12)throw new Error("rewrite this method to handle bigger octave changes or don't use is with bigger octave changes!");return t>0?this.getHigherPitchByTransposeFactor(t):t<0?this.getLowerPitchByTransposeFactor(-t):this}DoEnharmonicChange(){switch(this.accidental){case s.FLAT:case s.DOUBLEFLAT:this.fundamentalNote=this.getPreviousFundamentalNote(this.fundamentalNote),this.accidental=r.AccidentalFromHalfTones(this.halfTone-(this.fundamentalNote+12*(this.octave+r.octXmlDiff)));break;case s.SHARP:case s.DOUBLESHARP:this.fundamentalNote=this.getNextFundamentalNote(this.fundamentalNote),this.accidental=r.AccidentalFromHalfTones(this.halfTone-(this.fundamentalNote+12*(this.octave+r.octXmlDiff)));break;default:return}}ToString(){let t=r.accidentalVexflow(this.accidental);return t||(t=""),"Key: "+r.getNoteEnumString(this.fundamentalNote)+t+", Note: "+this.fundamentalNote+", octave: "+this.octave.toString()}OperatorEquals(t){return!(!this||!t)&&this.FundamentalNote===t.FundamentalNote&&this.Octave===t.Octave&&this.Accidental===t.Accidental}OperatorNotEqual(t){return!(this===t)}OperatorFundamentalGreaterThan(t){const e=this;return e.Octave===t.Octave?e.FundamentalNote>t.FundamentalNote:e.Octave>t.Octave}OperatorFundamentalLessThan(t){const e=this;return e.Octave===t.Octave?e.FundamentalNote<t.FundamentalNote:e.Octave<t.Octave}getHigherPitchByTransposeFactor(t){const e=r.pitchEnumValues.indexOf(this.fundamentalNote);let n,i=this.octave;return e+t>r.pitchEnumValues.length-1?(n=r.pitchEnumValues[e+t-r.pitchEnumValues.length],i++):n=r.pitchEnumValues[e+t],new r(n,i,s.NONE)}getLowerPitchByTransposeFactor(t){const e=r.pitchEnumValues.indexOf(this.fundamentalNote);let n,i=this.octave;return e-t<0?(n=r.pitchEnumValues[r.pitchEnumValues.length+e-t],i--):n=r.pitchEnumValues[e-t],new r(n,i,s.NONE)}getNextFundamentalNote(t){let e=r.pitchEnumValues.indexOf(t);return e=(e+1)%r.pitchEnumValues.length,r.pitchEnumValues[e]}getPreviousFundamentalNote(t){const e=r.pitchEnumValues.indexOf(t);return e>0?r.pitchEnumValues[e-1]:r.pitchEnumValues[r.pitchEnumValues.length-1]}}e.Pitch=r,r.pitchEnumValues=[i.C,i.D,i.E,i.F,i.G,i.A,i.B],r.halftoneFactor=12/(Math.LN2/Math.LN10),r.octXmlDiff=3},function(t,e,n){"use strict";var i;Object.defineProperty(e,"__esModule",{value:!0}),e.PlacementEnum=e.AbstractExpression=void 0,e.AbstractExpression=class{constructor(t){this.placement=t}static isStringInStringList(t,e){for(let n=0,i=t.length;n<i;++n){const i=t[n];if(e.toLowerCase()===i.toLowerCase().trim())return!0}return!1}get Placement(){return this.placement}static PlacementEnumFromString(t){switch(t.toLowerCase()){case"above":return i.Above;case"below":return i.Below;case"left":return i.Left;case"right":return i.Right;case"auto":default:return i.NotYetDefined}}},function(t){t[t.Above=0]="Above",t[t.Below=1]="Below",t[t.Left=2]="Left",t[t.Right=3]="Right",t[t.NotYetDefined=4]="NotYetDefined"}(i=e.PlacementEnum||(e.PlacementEnum={}))},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.ColDirEnum=e.BoundingBox=void 0;const s=i(n(1)),r=n(11),o=n(5),a=n(78),c=n(50),l=n(55),u=n(26);var h;e.BoundingBox=class{constructor(t,e,n=!1){this.isSymbol=!1,this.relativePositionHasBeenSet=!1,this.xBordersHaveBeenSet=!1,this.yBordersHaveBeenSet=!1,this.absolutePosition=new o.PointF2D,this.relativePosition=new o.PointF2D,this.size=new a.SizeF2D,this.marginSize=new a.SizeF2D,this.upperLeftCorner=new o.PointF2D,this.upperLeftMarginCorner=new o.PointF2D,this.borderLeft=0,this.borderRight=0,this.borderTop=0,this.borderBottom=0,this.borderMarginLeft=0,this.borderMarginRight=0,this.borderMarginTop=0,this.borderMarginBottom=0,this.childElements=[],this.parent=e,this.dataObject=t,this.isSymbol=n,this.xBordersHaveBeenSet=!1,this.yBordersHaveBeenSet=!1,e&&(this.Parent=e)}get RelativePositionHasBeenSet(){return this.relativePositionHasBeenSet}get XBordersHaveBeenSet(){return this.xBordersHaveBeenSet}set XBordersHaveBeenSet(t){this.xBordersHaveBeenSet=t}get YBordersHaveBeenSet(){return this.yBordersHaveBeenSet}set YBordersHaveBeenSet(t){this.yBordersHaveBeenSet=t}get AbsolutePosition(){return this.absolutePosition}set AbsolutePosition(t){this.absolutePosition=t}get RelativePosition(){return this.relativePosition}set RelativePosition(t){this.relativePosition=t,this.relativePositionHasBeenSet=!0}get Size(){return this.size}set Size(t){this.size=t}get MarginSize(){return this.marginSize}get UpperLeftCorner(){return this.upperLeftCorner}get UpperLeftMarginCorner(){return this.upperLeftMarginCorner}get BorderLeft(){return this.borderLeft}set BorderLeft(t){this.borderLeft=t,this.calculateRectangle()}get BorderRight(){return this.borderRight}set BorderRight(t){this.borderRight=t,this.calculateRectangle()}get BorderTop(){return this.borderTop}set BorderTop(t){this.borderTop=t,this.calculateRectangle()}get BorderBottom(){return this.borderBottom}set BorderBottom(t){this.borderBottom=t,this.calculateRectangle()}get BorderMarginLeft(){return this.borderMarginLeft>this.borderLeft?this.borderLeft:this.borderMarginLeft}set BorderMarginLeft(t){this.borderMarginLeft=t,this.calculateMarginRectangle()}get BorderMarginRight(){return this.borderMarginRight<this.borderRight?this.borderRight:this.borderMarginRight}set BorderMarginRight(t){this.borderMarginRight=t,this.calculateMarginRectangle()}get BorderMarginTop(){return this.borderMarginTop>this.borderTop?this.borderTop:this.borderMarginTop}set BorderMarginTop(t){this.borderMarginTop=t,this.calculateMarginRectangle()}get BorderMarginBottom(){return this.borderMarginBottom<this.borderBottom?this.borderBottom:this.borderMarginBottom}set BorderMarginBottom(t){this.borderMarginBottom=t,this.calculateMarginRectangle()}get BoundingRectangle(){return this.boundingRectangle}get BoundingMarginRectangle(){return this.boundingMarginRectangle}get ChildElements(){return this.childElements}set ChildElements(t){this.childElements=t}get Parent(){return this.parent}set Parent(t){if(this.parent){const t=this.parent.ChildElements.indexOf(this,0);t>-1&&this.parent.ChildElements.splice(t,1)}this.parent=t,this.parent.ChildElements.indexOf(this)>-1?s.default.error("BoundingBox of "+this.dataObject.constructor.name+" already in children list of "+this.parent.dataObject.constructor.name+"'s BoundingBox"):this.parent.ChildElements.push(this)}get DataObject(){return this.dataObject}get Center(){return new o.PointF2D(this.RelativePosition.x+(this.BorderMarginRight+this.BorderMarginLeft),this.RelativePosition.y+(this.BorderMarginBottom+this.BorderMarginTop))}setAbsolutePositionFromParent(){this.parent?(this.absolutePosition.x=this.parent.AbsolutePosition.x+this.relativePosition.x,this.absolutePosition.y=this.parent.AbsolutePosition.y+this.relativePosition.y):this.absolutePosition=this.relativePosition}calculateAbsolutePosition(){this.absolutePosition.x=this.relativePosition.x,this.absolutePosition.y=this.relativePosition.y;let t=this.parent;for(;t;)this.absolutePosition.x+=t.relativePosition.x,this.absolutePosition.y+=t.relativePosition.y,t=t.parent}calculateAbsolutePositionsRecursiveWithoutTopelement(){this.absolutePosition.x=0,this.absolutePosition.y=0;for(let t=0,e=this.ChildElements.length;t<e;++t)this.ChildElements[t].calculateAbsolutePositionsRecursive(this.absolutePosition.x,this.absolutePosition.y)}calculateAbsolutePositionsRecursive(t,e){this.absolutePosition.x=this.relativePosition.x+t,this.absolutePosition.y=this.relativePosition.y+e;for(let n=0,i=this.ChildElements.length;n<i;++n)this.ChildElements[n].calculateAbsolutePositionsRecursive(this.absolutePosition.x,this.absolutePosition.y)}calculateAbsolutePositionsOfChildren(){for(let t=0,e=this.ChildElements.length;t<e;++t)this.ChildElements[t].calculateAbsolutePositionsRecursive(this.absolutePosition.x,this.absolutePosition.y)}calculateBoundingBox(){if(0===this.childElements.length)return;for(let c=0,l=this.ChildElements.length;c<l;++c)this.ChildElements[c].calculateBoundingBox();let t=Number.MAX_VALUE,e=Number.MIN_VALUE,n=Number.MAX_VALUE,i=Number.MIN_VALUE,s=Number.MAX_VALUE,r=Number.MIN_VALUE,o=Number.MAX_VALUE,a=Number.MIN_VALUE;this.isSymbol&&(t=this.borderLeft,e=this.borderRight,n=this.borderTop,i=this.borderBottom,s=this.borderMarginLeft,r=this.borderMarginRight,o=this.borderMarginTop,a=this.borderMarginBottom);for(let c=0,l=this.ChildElements.length;c<l;++c){const l=this.ChildElements[c];t=Math.min(t,l.relativePosition.x+l.borderLeft),e=Math.max(e,l.relativePosition.x+l.borderRight),n=Math.min(n,l.relativePosition.y+l.borderTop),i=Math.max(i,l.relativePosition.y+l.borderBottom),s=Math.min(s,l.relativePosition.x+l.borderMarginLeft),r=Math.max(r,l.relativePosition.x+l.borderMarginRight),o=Math.min(o,l.relativePosition.y+l.borderMarginTop),a=Math.max(a,l.relativePosition.y+l.borderMarginBottom)}this.borderLeft=t,this.borderRight=e,this.borderTop=n,this.borderBottom=i,this.borderMarginLeft=s,this.borderMarginRight=r,this.borderMarginTop=o,this.borderMarginBottom=a,this.calculateRectangle(),this.calculateMarginRectangle(),this.xBordersHaveBeenSet=!0,this.yBordersHaveBeenSet=!0}calculateTopBottomBorders(){if(0===this.childElements.length)return;for(let s=0,r=this.ChildElements.length;s<r;++s)this.ChildElements[s].calculateTopBottomBorders();let t=Number.MAX_VALUE,e=Number.MIN_VALUE,n=Number.MAX_VALUE,i=Number.MIN_VALUE;this.yBordersHaveBeenSet&&(t=this.borderTop,e=this.borderBottom,n=this.borderMarginTop,i=this.borderMarginBottom);for(let s=0,r=this.ChildElements.length;s<r;++s){const r=this.ChildElements[s];t=Math.min(t,r.relativePosition.y+r.borderTop),u.EngravingRules.FixStafflineBoundingBox&&r.dataObject instanceof l.StaffLineActivitySymbol||(e=Math.max(e,r.relativePosition.y+r.borderBottom)),n=Math.min(n,r.relativePosition.y+r.borderMarginTop),i=Math.max(i,r.relativePosition.y+r.borderMarginBottom)}this.borderTop=t,this.borderBottom=e,this.borderMarginTop=n,this.borderMarginBottom=i,this.calculateRectangle(),this.calculateMarginRectangle()}computeNonOverlappingPositionWithMargin(t,e,n){this.RelativePosition=new o.PointF2D(n.x,n.y),this.setAbsolutePositionFromParent();let i=0,s=!1;do{switch(e){case h.Left:case h.Right:i=this.relativePosition.x,t.calculateMarginPositionAlongDirection(this,e),s=Math.abs(i-this.relativePosition.x)>.001;break;case h.Up:case h.Down:i=this.relativePosition.y,t.calculateMarginPositionAlongDirection(this,e),s=Math.abs(i-this.relativePosition.y)>.001;break;default:throw new r.ArgumentOutOfRangeException("direction")}}while(s)}collisionDetection(t){const e=Math.min(this.AbsolutePosition.x+this.borderRight,t.absolutePosition.x+t.borderRight)-Math.max(this.AbsolutePosition.x+this.borderLeft,t.absolutePosition.x+t.borderLeft),n=Math.min(this.AbsolutePosition.y+this.borderBottom,t.absolutePosition.y+t.borderBottom)-Math.max(this.AbsolutePosition.y+this.borderTop,t.absolutePosition.y+t.borderTop);return e>0&&n>0}liesInsideBorders(t){const e=this.AbsolutePosition.x+this.borderLeft<=t.absolutePosition.x+t.borderLeft&&t.absolutePosition.x+t.borderLeft<=this.AbsolutePosition.x+this.borderRight,n=this.AbsolutePosition.x+this.borderLeft<=t.absolutePosition.x+t.borderRight&&t.absolutePosition.x+t.borderRight<=this.AbsolutePosition.x+this.borderRight;if(e&&n){const e=this.AbsolutePosition.y+this.borderTop<=t.absolutePosition.y+t.borderTop&&t.absolutePosition.y+t.borderTop<=this.AbsolutePosition.y+this.borderBottom,n=this.AbsolutePosition.y+this.borderTop<=t.absolutePosition.y+t.borderBottom&&t.absolutePosition.y+t.borderBottom<=this.AbsolutePosition.y+this.borderBottom;if(e&&n)return!0}return!1}pointLiesInsideBorders(t){return this.AbsolutePosition.x+this.borderLeft<=t.x&&t.x<=this.AbsolutePosition.x+this.borderRight&&this.AbsolutePosition.y+this.borderTop<=t.y&&t.y<=this.AbsolutePosition.y+this.borderBottom}marginCollisionDetection(t){const e=Math.min(this.AbsolutePosition.x+this.borderMarginRight,t.absolutePosition.x+t.borderMarginRight)-Math.max(this.AbsolutePosition.x+this.borderMarginLeft,t.absolutePosition.x+t.borderMarginLeft),n=Math.min(this.AbsolutePosition.y+this.borderMarginBottom,t.absolutePosition.y+t.borderMarginBottom)-Math.max(this.AbsolutePosition.y+this.borderMarginTop,t.absolutePosition.y+t.borderMarginTop);return e>0&&n>0}liesInsideMargins(t){const e=this.AbsolutePosition.x+this.borderMarginLeft<=t.absolutePosition.x+t.borderMarginLeft&&t.absolutePosition.x+t.borderMarginLeft<=this.AbsolutePosition.x+this.borderMarginRight,n=this.AbsolutePosition.x+this.borderMarginLeft<=t.absolutePosition.x+t.borderMarginRight&&t.absolutePosition.x+t.borderMarginRight<=this.AbsolutePosition.x+this.borderMarginRight;if(e&&n){const e=this.AbsolutePosition.y+this.borderMarginTop<=t.absolutePosition.y+t.borderMarginTop&&t.absolutePosition.y+t.borderMarginTop<=this.AbsolutePosition.y+this.borderMarginBottom,n=this.AbsolutePosition.y+this.borderMarginTop<=t.absolutePosition.y+t.borderMarginBottom&&t.absolutePosition.y+t.borderMarginBottom<=this.AbsolutePosition.y+this.borderMarginBottom;if(e&&n)return!0}return!1}pointLiesInsideMargins(t){return this.AbsolutePosition.x+this.borderMarginLeft<=t.x&&t.x<=this.AbsolutePosition.x+this.borderMarginRight&&this.AbsolutePosition.y+this.borderMarginTop<=t.y&&t.y<=this.AbsolutePosition.y+this.borderMarginBottom}computeNonOverlappingPosition(t,e,n){this.RelativePosition=new o.PointF2D(n.x,n.y),this.setAbsolutePositionFromParent();let i=0,s=!1;do{switch(e){case h.Left:case h.Right:i=this.relativePosition.x,t.calculatePositionAlongDirection(this,e),s=Math.abs(i-this.relativePosition.x)>1e-4;break;case h.Up:case h.Down:i=this.relativePosition.y,t.calculatePositionAlongDirection(this,e),s=Math.abs(i-this.relativePosition.y)>1e-4;break;default:throw new r.ArgumentOutOfRangeException("direction")}}while(s)}getClickedObjectOfType(t){const e=this.dataObject;if(this.pointLiesInsideBorders(t)&&e)return e;for(let n=0,i=this.childElements.length;n<i;++n){const e=this.childElements[n].getClickedObjectOfType(t);if(e)return e}}getObjectsInRegion(t,e=!0){if(this.dataObject)if(e){if(t.liesInsideBorders(this))return[this.dataObject]}else if(t.collisionDetection(this))return[this.dataObject];const n=[];for(const i of this.childElements)n.concat(i.getObjectsInRegion(t,e));return n}calculateRectangle(){this.upperLeftCorner=new o.PointF2D(this.BorderLeft,this.BorderTop),this.size=new a.SizeF2D(this.BorderRight-this.BorderLeft,this.BorderBottom-this.BorderTop),this.boundingRectangle=c.RectangleF2D.createFromLocationAndSize(this.upperLeftCorner,this.size)}calculateMarginRectangle(){this.upperLeftMarginCorner=new o.PointF2D(this.BorderMarginLeft,this.BorderMarginTop),this.marginSize=new a.SizeF2D(this.BorderMarginRight-this.BorderMarginLeft,this.BorderMarginBottom-this.BorderMarginTop),this.boundingMarginRectangle=c.RectangleF2D.createFromLocationAndSize(this.upperLeftMarginCorner,this.marginSize)}calculateMarginPositionAlongDirection(t,e){if(this!==t){if(this.isSymbol&&this.marginCollisionDetection(t)){let n=0;switch(e){case h.Left:return n=this.absolutePosition.x+this.borderMarginLeft-(t.absolutePosition.x+t.borderMarginRight),t.relativePosition.x+=n,void(t.absolutePosition.x+=n);case h.Right:return n=this.absolutePosition.x+this.borderMarginRight-(t.absolutePosition.x+t.borderMarginLeft),t.relativePosition.x+=n,void(t.absolutePosition.x+=n);case h.Up:return n=this.absolutePosition.y+this.borderMarginTop-(t.absolutePosition.y+t.borderMarginBottom),t.relativePosition.y+=n,void(t.absolutePosition.y+=n);case h.Down:return n=this.absolutePosition.y+this.borderMarginBottom-(t.absolutePosition.y+t.borderMarginTop),t.relativePosition.y+=n,void(t.absolutePosition.y+=n);default:throw new r.ArgumentOutOfRangeException("direction")}}for(let n=0,i=this.ChildElements.length;n<i;++n)this.ChildElements[n].calculateMarginPositionAlongDirection(t,e)}}calculatePositionAlongDirection(t,e){if(this!==t){if(this.isSymbol&&this.collisionDetection(t)){let n;switch(e){case h.Left:return n=this.absolutePosition.x+this.borderLeft-(t.absolutePosition.x+t.borderRight),t.relativePosition.x+=n,void(t.absolutePosition.x+=n);case h.Right:return n=this.absolutePosition.x+this.borderRight-(t.absolutePosition.x+t.borderLeft),t.relativePosition.x+=n,void(t.absolutePosition.x+=n);case h.Up:return n=this.absolutePosition.y+this.borderTop-(t.absolutePosition.y+t.borderBottom),t.relativePosition.y+=n,void(t.absolutePosition.y+=n);case h.Down:return n=this.absolutePosition.y+this.borderBottom-(t.absolutePosition.y+t.borderTop),t.relativePosition.y+=n,void(t.absolutePosition.y+=n);default:throw new r.ArgumentOutOfRangeException("direction")}}for(let n=0,i=this.ChildElements.length;n<i;++n)this.ChildElements[n].calculatePositionAlongDirection(t,e)}}},function(t){t[t.Left=0]="Left",t[t.Right=1]="Right",t[t.Up=2]="Up",t[t.Down=3]="Down"}(h=e.ColDirEnum||(e.ColDirEnum={}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PointF2D=void 0;class i{constructor(t=0,e=0){this.x=0,this.y=0,this.x=t,this.y=e}static get Empty(){return new i}static pointsAreEqual(t,e){return t.x===e.x&&t.y===e.y}ToString(){return"["+this.x+", "+this.y+"]"}}e.PointF2D=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GraphicalObject=void 0,e.GraphicalObject=class{get PositionAndShape(){return this.boundingBox}set PositionAndShape(t){this.boundingBox=t}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MidiInstrument=e.ClefEnum=e.ClefInstruction=void 0;const i=n(2),s=n(45),r=n(2),o=n(2),a=n(11);class c extends s.AbstractNotationInstruction{constructor(t=l.G,e=0,n=2){super(void 0),this.clefType=l.G,this.line=2,this.octaveOffset=0,this.line=n,this.clefType=t,this.octaveOffset=e,this.calcParameters()}static getDefaultClefFromMidiInstrument(t){switch(t){case u.Acoustic_Grand_Piano:case u.Electric_Bass_finger:case u.Electric_Bass_pick:case u.Fretless_Bass:case u.Slap_Bass_1:case u.Slap_Bass_2:case u.Synth_Bass_1:case u.Synth_Bass_2:case u.Contrabass:return new c(l.F,0,4);default:return new c(l.G,0,2)}}static getAllPossibleClefs(){const t=[];for(let e=0;e<=2;e++){const n=new c(l.G,e,2);t.push(n)}for(let e=-2;e<=0;e++){const n=new c(l.F,e,4);t.push(n)}return t}static isSupportedClef(t){switch(t){case l.G:case l.F:case l.C:case l.percussion:case l.TAB:return!0;default:return!1}}get ClefType(){return this.clefType}set ClefType(t){this.clefType=t}get Line(){return this.line}set Line(t){this.line=t}get OctaveOffset(){return this.octaveOffset}set OctaveOffset(t){this.octaveOffset=t}get ClefPitch(){return this.clefPitch}set ClefPitch(t){this.clefPitch=t}get ReferenceCyPosition(){return this.referenceCyPosition}set ReferenceCyPosition(t){this.referenceCyPosition=t}Equals(t){return this===t||!(!this||!t)&&this.clefPitch===t.clefPitch&&this.Line===t.Line}NotEqual(t){return!this.Equals(t)}ToString(){return"ClefType: "+this.clefType}calcParameters(){switch(this.clefType){case l.G:this.clefPitch=new i.Pitch(r.NoteEnum.G,1+this.octaveOffset,o.AccidentalEnum.NONE),this.referenceCyPosition=5-this.line+2;break;case l.F:this.clefPitch=new i.Pitch(r.NoteEnum.F,0+this.octaveOffset,o.AccidentalEnum.NONE),this.referenceCyPosition=5-this.line+1.5;break;case l.C:this.clefPitch=new i.Pitch(r.NoteEnum.C,1+this.octaveOffset,o.AccidentalEnum.NONE),this.referenceCyPosition=5-this.line;break;case l.percussion:this.clefPitch=new i.Pitch(r.NoteEnum.C,2,o.AccidentalEnum.NONE),this.referenceCyPosition=2;break;case l.TAB:this.clefPitch=new i.Pitch(r.NoteEnum.G,0,o.AccidentalEnum.NONE),this.referenceCyPosition=0;break;default:throw new a.ArgumentOutOfRangeException("clefType")}}}var l,u;e.ClefInstruction=c,function(t){t[t.G=0]="G",t[t.F=1]="F",t[t.C=2]="C",t[t.percussion=3]="percussion",t[t.TAB=4]="TAB"}(l=e.ClefEnum||(e.ClefEnum={})),function(t){t[t.None=-1]="None",t[t.Acoustic_Grand_Piano=0]="Acoustic_Grand_Piano",t[t.Bright_Acoustic_Piano=1]="Bright_Acoustic_Piano",t[t.Electric_Grand_Piano=2]="Electric_Grand_Piano",t[t.Honky_tonk_Piano=3]="Honky_tonk_Piano",t[t.Electric_Piano_1=4]="Electric_Piano_1",t[t.Electric_Piano_2=5]="Electric_Piano_2",t[t.Harpsichord=6]="Harpsichord",t[t.Clavinet=7]="Clavinet",t[t.Celesta=8]="Celesta",t[t.Glockenspiel=9]="Glockenspiel",t[t.Music_Box=10]="Music_Box",t[t.Vibraphone=11]="Vibraphone",t[t.Marimba=12]="Marimba",t[t.Xylophone=13]="Xylophone",t[t.Tubular_Bells=14]="Tubular_Bells",t[t.Dulcimer=15]="Dulcimer",t[t.Drawbar_Organ=16]="Drawbar_Organ",t[t.Percussive_Organ=17]="Percussive_Organ",t[t.Rock_Organ=18]="Rock_Organ",t[t.Church_Organ=19]="Church_Organ",t[t.Reed_Organ=20]="Reed_Organ",t[t.Accordion=21]="Accordion",t[t.Harmonica=22]="Harmonica",t[t.Tango_Accordion=23]="Tango_Accordion",t[t.Acoustic_Guitar_nylon=24]="Acoustic_Guitar_nylon",t[t.Acoustic_Guitar_steel=25]="Acoustic_Guitar_steel",t[t.Electric_Guitar_jazz=26]="Electric_Guitar_jazz",t[t.Electric_Guitar_clean=27]="Electric_Guitar_clean",t[t.Electric_Guitar_muted=28]="Electric_Guitar_muted",t[t.Overdriven_Guitar=29]="Overdriven_Guitar",t[t.Distortion_Guitar=30]="Distortion_Guitar",t[t.Guitar_harmonics=31]="Guitar_harmonics",t[t.Acoustic_Bass=32]="Acoustic_Bass",t[t.Electric_Bass_finger=33]="Electric_Bass_finger",t[t.Electric_Bass_pick=34]="Electric_Bass_pick",t[t.Fretless_Bass=35]="Fretless_Bass",t[t.Slap_Bass_1=36]="Slap_Bass_1",t[t.Slap_Bass_2=37]="Slap_Bass_2",t[t.Synth_Bass_1=38]="Synth_Bass_1",t[t.Synth_Bass_2=39]="Synth_Bass_2",t[t.Violin=40]="Violin",t[t.Viola=41]="Viola",t[t.Cello=42]="Cello",t[t.Contrabass=43]="Contrabass",t[t.Tremolo_Strings=44]="Tremolo_Strings",t[t.Pizzicato_Strings=45]="Pizzicato_Strings",t[t.Orchestral_Harp=46]="Orchestral_Harp",t[t.Timpani=47]="Timpani",t[t.String_Ensemble_1=48]="String_Ensemble_1",t[t.String_Ensemble_2=49]="String_Ensemble_2",t[t.Synth_Strings_1=50]="Synth_Strings_1",t[t.Synth_Strings_2=51]="Synth_Strings_2",t[t.Choir_Aahs=52]="Choir_Aahs",t[t.Voice_Oohs=53]="Voice_Oohs",t[t.Synth_Voice=54]="Synth_Voice",t[t.Orchestra_Hit=55]="Orchestra_Hit",t[t.Trumpet=56]="Trumpet",t[t.Trombone=57]="Trombone",t[t.Tuba=58]="Tuba",t[t.Muted_Trumpet=59]="Muted_Trumpet",t[t.French_Horn=60]="French_Horn",t[t.Brass_Section=61]="Brass_Section",t[t.Synth_Brass_1=62]="Synth_Brass_1",t[t.Synth_Brass_2=63]="Synth_Brass_2",t[t.Soprano_Sax=64]="Soprano_Sax",t[t.Alto_Sax=65]="Alto_Sax",t[t.Tenor_Sax=66]="Tenor_Sax",t[t.Baritone_Sax=67]="Baritone_Sax",t[t.Oboe=68]="Oboe",t[t.English_Horn=69]="English_Horn",t[t.Bassoon=70]="Bassoon",t[t.Clarinet=71]="Clarinet",t[t.Piccolo=72]="Piccolo",t[t.Flute=73]="Flute",t[t.Recorder=74]="Recorder",t[t.Pan_Flute=75]="Pan_Flute",t[t.Blown_Bottle=76]="Blown_Bottle",t[t.Shakuhachi=77]="Shakuhachi",t[t.Whistle=78]="Whistle",t[t.Ocarina=79]="Ocarina",t[t.Lead_1_square=80]="Lead_1_square",t[t.Lead_2_sawtooth=81]="Lead_2_sawtooth",t[t.Lead_3_calliope=82]="Lead_3_calliope",t[t.Lead_4_chiff=83]="Lead_4_chiff",t[t.Lead_5_charang=84]="Lead_5_charang",t[t.Lead_6_voice=85]="Lead_6_voice",t[t.Lead_7_fifths=86]="Lead_7_fifths",t[t.Lead_8_bass_lead=87]="Lead_8_bass_lead",t[t.Pad_1_new_age=88]="Pad_1_new_age",t[t.Pad_2_warm=89]="Pad_2_warm",t[t.Pad_3_polysynth=90]="Pad_3_polysynth",t[t.Pad_4_choir=91]="Pad_4_choir",t[t.Pad_5_bowed=92]="Pad_5_bowed",t[t.Pad_6_metallic=93]="Pad_6_metallic",t[t.Pad_7_halo=94]="Pad_7_halo",t[t.Pad_8_sweep=95]="Pad_8_sweep",t[t.FX_1_rain=96]="FX_1_rain",t[t.FX_2_soundtrack=97]="FX_2_soundtrack",t[t.FX_3_crystal=98]="FX_3_crystal",t[t.FX_4_atmosphere=99]="FX_4_atmosphere",t[t.FX_5_brightness=100]="FX_5_brightness",t[t.FX_6_goblins=101]="FX_6_goblins",t[t.FX_7_echoes=102]="FX_7_echoes",t[t.FX_8_scifi=103]="FX_8_scifi",t[t.Sitar=104]="Sitar",t[t.Banjo=105]="Banjo",t[t.Shamisen=106]="Shamisen",t[t.Koto=107]="Koto",t[t.Kalimba=108]="Kalimba",t[t.Bag_pipe=109]="Bag_pipe",t[t.Fiddle=110]="Fiddle",t[t.Shanai=111]="Shanai",t[t.Tinkle_Bell=112]="Tinkle_Bell",t[t.Agogo=113]="Agogo",t[t.Steel_Drums=114]="Steel_Drums",t[t.Woodblock=115]="Woodblock",t[t.Taiko_Drum=116]="Taiko_Drum",t[t.Melodic_Tom=117]="Melodic_Tom",t[t.Synth_Drum=118]="Synth_Drum",t[t.Reverse_Cymbal=119]="Reverse_Cymbal",t[t.Guitar_Fret_Noise=120]="Guitar_Fret_Noise",t[t.Breath_Noise=121]="Breath_Noise",t[t.Seashore=122]="Seashore",t[t.Bird_Tweet=123]="Bird_Tweet",t[t.Telephone_Ring=124]="Telephone_Ring",t[t.Helicopter=125]="Helicopter",t[t.Applause=126]="Applause",t[t.Gunshot=127]="Gunshot",t[t.Percussion=128]="Percussion"}(u=e.MidiInstrument||(e.MidiInstrument={}))},function(t,e,n){"use strict";var i;Object.defineProperty(e,"__esModule",{value:!0}),e.TextAlignment=e.TextAlignmentEnum=void 0,function(t){t[t.LeftTop=0]="LeftTop",t[t.LeftCenter=1]="LeftCenter",t[t.LeftBottom=2]="LeftBottom",t[t.CenterTop=3]="CenterTop",t[t.CenterCenter=4]="CenterCenter",t[t.CenterBottom=5]="CenterBottom",t[t.RightTop=6]="RightTop",t[t.RightCenter=7]="RightCenter",t[t.RightBottom=8]="RightBottom"}(i=e.TextAlignmentEnum||(e.TextAlignmentEnum={})),e.TextAlignment=class{static IsLeft(t){return t===i.LeftTop||t===i.LeftCenter||t===i.LeftBottom}static IsCenterAligned(t){return t===i.CenterTop||t===i.CenterCenter||t===i.CenterBottom}static IsRight(t){return t===i.RightTop||t===i.RightCenter||t===i.RightBottom}}},function(t,e,n){"use strict";n.r(e);const i=()=>{};i.L=(t,e)=>{if(!e)return;const n=Array.prototype.slice.call(e).join(" ");window.console.log(t+": "+n)},i.MakeException=t=>class extends Error{constructor(e,n){super(e),this.name=t,this.message=e,this.data=n}},i.RERR=i.RuntimeError=class{constructor(t,e){this.code=t,this.message=e}toString(){return"[RuntimeError] "+this.code+":"+this.message}},i.Merge=(t,e)=>{for(const n in e)t[n]=e[n];return t},i.Min=Math.min,i.Max=Math.max,i.forEach=(t,e)=>{for(let n=0;n<t.length;n++)e(t[n],n)},i.RoundN=(t,e)=>t%e>=e/2?parseInt(t/e,10)*e+e:parseInt(t/e,10)*e,i.MidLine=(t,e)=>{let n=e+(t-e)/2;return n%2>0&&(n=i.RoundN(10*n,5)/10),n},i.SortAndUnique=(t,e,n)=>{if(t.length>1){const i=[];let s;t.sort(e);for(let e=0;e<t.length;++e)0!==e&&n(t[e],s)||i.push(t[e]),s=t[e];return i}return t},i.Contains=(t,e)=>{let n=t.length;for(;n--;)if(t[n]===e)return!0;return!1},i.getCanvasContext=t=>{if(!t)throw new i.RERR("BadArgument","Invalid canvas selector: "+t);const e=document.getElementById(t);if(!e||!e.getContext)throw new i.RERR("UnsupportedBrowserError","This browser does not support HTML5 Canvas");return e.getContext("2d")},i.drawDot=(t,e,n,i="#55")=>{t.save(),t.setFillStyle(i),t.beginPath(),t.arc(e,n,3,0,2*Math.PI,!0),t.closePath(),t.fill(),t.restore()},i.BM=(t,e)=>{const n=(new Date).getTime();e();const s=(new Date).getTime()-n;i.L(t+s+"ms")},i.StackTrace=()=>(new Error).stack,i.W=(...t)=>{const e=t.join(" ");window.console.log("Warning: ",e,i.StackTrace())},(i.Prefix=t=>i.Prefix.prefix+t).prefix="vf-";class s{static GCD(t,e){if("number"!=typeof t||"number"!=typeof e)throw new i.RERR("BadArgument",`Invalid numbers: ${t}, ${e}`);let n;for(;0!==e;)n=e,e=t%e,t=n;return t}static LCM(t,e){return t*e/s.GCD(t,e)}static LCMM(t){if(0===t.length)return 0;if(1===t.length)return t[0];if(2===t.length)return s.LCM(t[0],t[1]);{const e=t[0];return t.shift(),s.LCM(e,s.LCMM(t))}}constructor(t,e){this.set(t,e)}set(t,e){return this.numerator=void 0===t?1:t,this.denominator=void 0===e?1:e,this}value(){return this.numerator/this.denominator}simplify(){let t=this.numerator,e=this.denominator;const n=s.GCD(t,e);return t/=n,e/=n,e<0&&(e=-e,t=-t),this.set(t,e)}add(t,e){let n,i;t instanceof s?(n=t.numerator,i=t.denominator):(n=void 0!==t?t:0,i=void 0!==e?e:1);const r=s.LCM(this.denominator,i),o=r/this.denominator,a=r/i,c=this.numerator*o+n*a;return this.set(c,r)}subtract(t,e){let n,i;t instanceof s?(n=t.numerator,i=t.denominator):(n=void 0!==t?t:0,i=void 0!==e?e:1);const r=s.LCM(this.denominator,i),o=r/this.denominator,a=r/i,c=this.numerator*o-n*a;return this.set(c,r)}multiply(t,e){let n,i;return t instanceof s?(n=t.numerator,i=t.denominator):(n=void 0!==t?t:1,i=void 0!==e?e:1),this.set(this.numerator*n,this.denominator*i)}divide(t,e){let n,i;return t instanceof s?(n=t.numerator,i=t.denominator):(n=void 0!==t?t:1,i=void 0!==e?e:1),this.set(this.numerator*i,this.denominator*n)}equals(t){const e=s.__compareA.copy(t).simplify(),n=s.__compareB.copy(this).simplify();return e.numerator===n.numerator&&e.denominator===n.denominator}greaterThan(t){const e=s.__compareB.copy(this);return e.subtract(t),e.numerator>0}greaterThanEquals(t){const e=s.__compareB.copy(this);return e.subtract(t),e.numerator>=0}lessThan(t){return!this.greaterThanEquals(t)}lessThanEquals(t){return!this.greaterThan(t)}clone(){return new s(this.numerator,this.denominator)}copy(t){return"number"==typeof t?this.set(t||0,1):this.set(t.numerator,t.denominator)}quotient(){return Math.floor(this.numerator/this.denominator)}fraction(){return this.numerator%this.denominator}abs(){return this.denominator=Math.abs(this.denominator),this.numerator=Math.abs(this.numerator),this}toString(){return this.numerator+"/"+this.denominator}toSimplifiedString(){return s.__tmp.copy(this).simplify().toString()}toMixedString(){let t="";const e=this.quotient(),n=s.__tmp.copy(this);return e<0?n.abs().fraction():n.fraction(),0!==e?(t+=e,0!==n.numerator&&(t+=" "+n.toSimplifiedString())):t=0===n.numerator?"0":n.toSimplifiedString(),t}parse(t){const e=t.split("/"),n=parseInt(e[0],10),i=e[1]?parseInt(e[1],10):1;return this.set(n,i)}}s.__compareA=new s,s.__compareB=new s,s.__tmp=new s;const r=i.MakeException("RegistryError");function o(t,e,n,i,s){t[e][n]||(t[e][n]={}),t[e][n][i]=s}class a{static get INDEXES(){return["type"]}constructor(){this.clear()}static enableDefaultRegistry(t){a.defaultRegistry=t}static getDefaultRegistry(){return a.defaultRegistry}static disableDefaultRegistry(){a.defaultRegistry=null}clear(){return this.index={id:{},type:{},class:{}},this}updateIndex({id:t,name:e,value:n,oldValue:i}){const s=this.getElementById(t);null!==i&&this.index[e][i]&&delete this.index[e][i][t],null!==n&&o(this.index,e,n,s.getAttribute("id"),s)}register(t,e){if(!(e=e||t.getAttribute("id")))throw new r("Can't add element without `id` attribute to registry",t);return t.setAttribute("id",e),o(this.index,"id",e,e,t),a.INDEXES.forEach(n=>{this.updateIndex({id:e,name:n,value:t.getAttribute(n),oldValue:null})}),t.onRegister(this),this}getElementById(t){return this.index.id[t]?this.index.id[t][t]:null}getElementsByAttribute(t,e){const n=this.index[t];return n&&n[e]?Object.keys(n[e]).map(t=>n[e][t]):[]}getElementsByType(t){return this.getElementsByAttribute("type",t)}getElementsByClass(t){return this.getElementsByAttribute("class",t)}onUpdate({id:t,name:e,value:n,oldValue:i}){return function(t,e){return t.filter(t=>t===e).length>0}(a.INDEXES.concat(["id","class"]),e)?(this.updateIndex({id:t,name:e,value:n,oldValue:i}),this):this}}a.defaultRegistry=null;class c{static newID(){return"auto"+c.ID++}constructor({type:t}={}){this.attrs={id:c.newID(),el:null,type:t||"Base",classes:{}},this.boundingBox=null,this.context=null,this.rendered=!1,a.getDefaultRegistry()&&a.getDefaultRegistry().register(this)}setStyle(t){return this.style=t,this}getStyle(){return this.style}applyStyle(t=this.context,e=this.getStyle()){return e?(t.save(),e.shadowColor&&t.setShadowColor(e.shadowColor),e.shadowBlur&&t.setShadowBlur(e.shadowBlur),e.fillStyle&&t.setFillStyle(e.fillStyle),e.strokeStyle&&t.setStrokeStyle(e.strokeStyle),e.lineWidth&&t.setLineWidth(e.lineWidth),this):this}restoreStyle(t=this.context,e=this.getStyle()){return e?(t.restore(),this):this}drawWithStyle(){this.checkContext(),this.applyStyle(),this.draw(),this.restoreStyle()}hasClass(t){return!0===this.attrs.classes[t]}addClass(t){return this.attrs.classes[t]=!0,this.registry&&this.registry.onUpdate({id:this.getAttribute("id"),name:"class",value:t,oldValue:null}),this}removeClass(t){return delete this.attrs.classes[t],this.registry&&this.registry.onUpdate({id:this.getAttribute("id"),name:"class",value:null,oldValue:t}),this}onRegister(t){return this.registry=t,this}isRendered(){return this.rendered}setRendered(t=!0){return this.rendered=t,this}getAttributes(){return this.attrs}getAttribute(t){return this.attrs[t]}setAttribute(t,e){const n=this.attrs.id,i=this.attrs[t];return this.attrs[t]=e,this.registry&&this.registry.onUpdate({id:n,name:t,value:e,oldValue:i}),this}getContext(){return this.context}setContext(t){return this.context=t,this}getBoundingBox(){return this.boundingBox}checkContext(){if(!this.context)throw new i.RERR("NoContext","No rendering context attached to instance");return this.context}}c.ID=1e3;class l{constructor(t,e,n,i){this.x1=Number.NaN,this.y1=Number.NaN,this.x2=Number.NaN,this.y2=Number.NaN,this.addPoint(t,e),this.addPoint(n,i)}width(){return this.x2-this.x1}height(){return this.y2-this.y1}addPoint(t,e){null!=t&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=t,this.x2=t),t<this.x1&&(this.x1=t),t>this.x2&&(this.x2=t)),null!=e&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=e,this.y2=e),e<this.y1&&(this.y1=e),e>this.y2&&(this.y2=e))}addX(t){this.addPoint(t,null)}addY(t){this.addPoint(null,t)}addQuadraticCurve(t,e,n,i,s,r){const o=t+2/3*(n-t),a=e+2/3*(i-e),c=o+1/3*(s-t),l=a+1/3*(r-e);this.addBezierCurve(t,e,o,a,c,l,s,r)}addBezierCurve(t,e,n,i,s,r,o,a){const c=[t,e],l=[n,i],u=[s,r],h=[o,a];let d;this.addPoint(c[0],c[1]),this.addPoint(h[0],h[1]);const f=(t,e)=>Math.pow(1-t,3)*c[e]+3*Math.pow(1-t,2)*t*l[e]+3*(1-t)*Math.pow(t,2)*u[e]+Math.pow(t,3)*h[e];for(d=0;d<=1;d++){const t=6*c[d]-12*l[d]+6*u[d],e=-3*c[d]+9*l[d]-9*u[d]+3*h[d],n=3*l[d]-3*c[d];if(0===e){if(0===t)continue;const e=-n/t;0<e&&e<1&&(0===d&&this.addX(f(e,d)),1===d&&this.addY(f(e,d)));continue}const i=Math.pow(t,2)-4*n*e;if(i<0)continue;const s=(-t+Math.sqrt(i))/(2*e);0<s&&s<1&&(0===d&&this.addX(f(s,d)),1===d&&this.addY(f(s,d)));const r=(-t-Math.sqrt(i))/(2*e);0<r&&r<1&&(0===d&&this.addX(f(r,d)),1===d&&this.addY(f(r,d)))}}}class u{static copy(t){return new u(t.x,t.y,t.w,t.h)}constructor(t,e,n,i){this.x=t,this.y=e,this.w=n,this.h=i}getX(){return this.x}getY(){return this.y}getW(){return this.w}getH(){return this.h}setX(t){return this.x=t,this}setY(t){return this.y=t,this}setW(t){return this.w=t,this}setH(t){return this.h=t,this}move(t,e){this.x+=t,this.y+=e}clone(){return u.copy(this)}mergeWith(t,e){const n=t,i=this.x<n.x?this.x:n.x,s=this.y<n.y?this.y:n.y,r=Math.max(this.x+this.w,n.x+n.w)-i,o=Math.max(this.y+this.h,n.y+n.h)-s;return this.x=i,this.y=s,this.w=r,this.h=o,e&&this.draw(e),this}draw(t,e,n){e||(e=0),n||(n=0),t.rect(this.x+e,this.y+n,this.w,this.h),t.stroke()}}const h={glyphs:{v0:{x_min:0,x_max:514.5,ha:525,o:"m 236 648 b 246 648 238 648 242 648 b 288 646 261 648 283 648 b 472 513 364 634 428 587 b 514 347 502 464 514 413 b 462 163 514 272 499 217 b 257 44 409 83 333 44 b 50 163 181 44 103 83 b 0 347 14 217 0 272 b 40 513 0 413 12 464 b 236 648 87 591 155 638 m 277 614 b 253 616 273 616 261 616 b 242 616 247 616 243 616 b 170 499 193 609 181 589 b 159 348 163 446 159 398 b 166 222 159 308 161 266 b 201 91 174 138 183 106 b 257 76 215 81 235 76 b 311 91 277 76 299 81 b 347 222 330 106 338 138 b 353 348 352 266 353 308 b 344 499 353 398 351 446 b 277 614 333 587 322 606 m 257 -1 l 258 -1 l 255 -1 l 257 -1 m 257 673 l 258 673 l 255 673 l 257 673 "},v1:{x_min:-1.359375,x_max:344.359375,ha:351,o:"m 126 637 l 129 638 l 198 638 l 266 638 l 269 635 b 274 631 272 634 273 632 l 277 627 l 277 395 b 279 156 277 230 277 161 b 329 88 281 123 295 106 b 344 69 341 81 344 79 b 337 55 344 62 343 59 l 333 54 l 197 54 l 61 54 l 58 55 b 50 69 53 59 50 62 b 65 88 50 79 53 81 b 80 97 72 91 74 93 b 117 156 103 113 112 129 b 117 345 117 161 117 222 l 117 528 l 100 503 l 38 406 b 14 383 24 384 23 383 b -1 398 5 383 -1 390 b 4 415 -1 403 1 409 b 16 437 5 416 10 426 l 72 539 l 100 596 b 121 632 119 631 119 631 b 126 637 122 634 125 635 m 171 -1 l 172 -1 l 170 -1 l 171 -1 m 171 673 l 172 673 l 170 673 l 171 673 "},v2:{x_min:-1.359375,x_max:458.6875,ha:468,o:"m 197 648 b 216 648 201 648 208 648 b 258 646 232 648 253 648 b 419 546 333 637 393 599 b 432 489 428 528 432 509 b 356 342 432 440 405 384 b 235 278 322 313 288 295 b 69 170 166 256 107 217 b 69 169 69 170 69 169 b 69 169 69 169 69 169 b 74 173 69 169 72 170 b 209 222 112 204 163 222 b 310 195 247 222 274 215 b 371 179 332 184 352 179 b 396 181 379 179 387 179 b 428 202 409 184 423 194 b 442 212 431 209 436 212 b 458 197 450 212 458 206 b 441 148 458 190 449 165 b 299 44 409 84 353 44 b 288 45 295 44 292 44 b 250 61 274 45 268 49 b 122 99 212 86 164 99 b 73 91 104 99 88 97 b 28 63 53 84 34 72 b 14 54 25 56 20 54 b 1 62 9 54 4 56 l -1 65 l -1 79 b 0 99 -1 91 0 95 b 2 113 1 102 2 108 b 164 309 20 197 81 272 b 285 470 232 341 277 398 b 287 487 287 476 287 481 b 171 595 287 551 239 595 b 155 595 166 595 160 595 b 142 592 145 594 142 594 b 145 589 142 592 142 591 b 179 527 168 576 179 551 b 132 455 179 496 163 467 b 104 451 122 452 112 451 b 27 530 62 451 27 487 b 29 555 27 538 27 546 b 197 648 44 601 115 639 m 228 -1 l 230 -1 l 227 -1 l 228 -1 m 228 673 l 230 673 l 227 673 l 228 673 "},v3:{x_min:-1.359375,x_max:409.6875,ha:418,o:"m 174 648 b 191 648 176 648 183 648 b 225 648 204 648 220 648 b 402 523 317 638 389 588 b 404 503 404 517 404 510 b 402 484 404 495 404 488 b 264 373 389 437 334 394 b 257 370 259 371 257 371 b 257 370 257 370 257 370 b 264 369 258 370 261 369 b 409 202 359 334 409 267 b 318 72 409 152 381 104 b 200 43 281 52 240 43 b 23 113 134 43 69 68 b 0 169 6 129 0 149 b 77 249 0 210 29 249 l 77 249 b 152 174 125 249 152 212 b 103 102 152 145 137 116 b 103 102 103 102 103 102 b 147 94 103 101 132 95 b 153 94 149 94 151 94 b 265 206 219 94 265 141 b 264 226 265 213 265 219 b 147 355 253 299 204 353 b 126 371 133 356 126 362 b 147 388 126 383 132 388 b 254 474 196 391 238 424 b 259 502 258 484 259 494 b 182 592 259 544 228 582 b 156 595 175 595 166 595 b 115 592 142 595 129 594 l 111 591 l 115 588 b 152 524 141 574 152 549 b 92 449 152 491 130 458 b 76 448 87 448 81 448 b -1 530 32 448 -1 488 b 20 581 -1 548 5 566 b 174 648 55 619 108 641 m 204 -1 l 205 -1 l 202 -1 l 204 -1 m 204 673 l 205 673 l 202 673 l 204 673 "},v4:{x_min:0,x_max:468.21875,ha:478,o:"m 174 637 b 232 638 175 638 189 638 b 277 638 245 638 259 638 l 378 638 l 381 635 b 389 623 386 632 389 627 b 382 609 389 617 386 613 b 366 589 381 606 372 598 l 313 528 l 245 451 l 209 410 l 155 348 l 84 267 b 59 240 72 252 59 240 b 59 240 59 240 59 240 b 151 238 59 238 68 238 l 242 238 l 242 303 b 243 371 242 369 242 370 b 289 426 245 374 254 385 l 303 441 l 317 456 l 338 483 l 360 506 l 371 520 b 386 527 375 526 381 527 b 400 519 392 527 397 524 b 401 440 401 516 401 514 b 401 377 401 423 401 402 l 401 238 l 426 238 b 453 237 449 238 450 238 b 465 217 461 234 465 226 b 460 202 465 212 464 206 b 426 197 454 197 453 197 l 401 197 l 401 180 b 451 88 402 129 412 109 b 468 69 465 81 468 79 b 461 55 468 62 466 59 l 458 54 l 321 54 l 185 54 l 182 55 b 175 69 176 59 175 62 b 191 88 175 79 176 81 b 240 180 230 109 240 129 l 240 197 l 125 197 b 73 195 104 195 87 195 b 8 197 10 195 9 197 b 0 212 2 199 0 205 b 0 212 0 212 0 212 b 20 242 0 219 0 219 b 163 610 104 344 163 492 b 174 637 163 628 166 634 m 234 -1 l 235 -1 l 232 -1 l 234 -1 m 234 673 l 235 673 l 232 673 l 234 673 "},v5:{x_min:0,x_max:409.6875,ha:418,o:"m 47 637 b 53 638 49 638 50 638 b 69 634 55 638 61 637 b 210 610 114 619 161 610 b 363 634 259 610 311 619 b 382 638 372 637 378 638 b 392 634 386 638 389 637 b 397 623 396 630 397 627 b 393 610 397 620 396 616 b 298 505 368 552 338 520 b 212 494 277 498 246 494 b 65 517 163 494 106 502 b 61 517 62 517 61 517 b 61 517 61 517 61 517 b 51 408 61 517 51 412 b 51 408 51 408 51 408 b 51 408 51 408 51 408 b 61 412 53 408 55 409 b 125 434 80 421 103 430 b 185 441 145 440 166 441 b 409 244 310 441 409 353 b 401 191 409 227 406 209 b 197 43 375 105 287 43 b 159 47 183 43 171 44 b 23 123 112 56 61 86 b 0 180 6 140 0 159 b 76 260 0 220 31 260 b 92 259 81 260 87 259 b 152 183 132 251 152 216 b 100 112 152 152 134 122 b 95 111 98 112 95 111 b 95 111 95 111 95 111 b 129 98 95 109 119 101 b 148 97 136 97 141 97 b 264 235 206 97 261 158 b 265 248 265 240 265 244 b 210 398 265 312 243 373 b 179 408 201 406 194 408 b 174 408 178 408 176 408 b 53 369 130 408 88 394 b 34 359 39 359 38 359 b 17 374 24 359 17 365 b 39 628 17 384 38 625 b 47 637 40 631 43 635 m 204 -1 l 205 -1 l 202 -1 l 204 -1 m 204 673 l 205 673 l 202 673 l 204 673 "},v6:{x_min:0,x_max:475.03125,ha:485,o:"m 255 648 b 274 648 259 648 266 648 b 314 646 288 648 307 648 b 450 555 374 637 438 594 b 454 530 453 546 454 538 b 375 451 454 485 416 451 b 328 467 359 451 343 455 b 300 526 310 483 300 503 b 352 598 300 557 319 589 b 356 599 355 598 356 599 b 352 602 356 599 355 601 b 288 616 330 612 308 616 b 210 584 257 616 230 605 b 164 433 189 559 174 508 b 160 374 163 415 160 381 b 160 374 160 374 160 374 b 160 374 160 374 160 374 b 168 377 160 374 164 376 b 258 395 200 390 228 395 b 366 367 294 395 328 387 b 475 223 436 333 475 283 b 472 197 475 215 473 206 b 349 65 462 141 419 95 b 259 43 317 51 288 43 b 167 69 230 43 200 52 b 4 290 80 113 20 195 b 0 349 1 309 0 328 b 20 467 0 391 6 433 b 255 648 58 563 155 637 m 269 363 b 257 363 265 363 261 363 b 210 345 236 363 220 356 b 186 226 196 324 186 272 b 187 198 186 216 186 206 b 213 95 191 151 202 112 b 257 76 221 83 238 76 b 270 77 261 76 266 76 b 321 156 299 81 310 99 b 329 229 326 183 329 206 b 321 301 329 252 326 274 b 269 363 311 342 298 359 m 236 -1 l 238 -1 l 235 -1 l 236 -1 m 236 673 l 238 673 l 235 673 l 236 673 "},v7:{x_min:0,x_max:442.359375,ha:451,o:"m 147 648 b 166 649 153 649 160 649 b 313 598 217 649 273 630 b 340 587 323 588 328 587 l 341 587 b 412 628 367 587 390 601 b 427 638 416 635 421 638 b 439 632 431 638 435 637 b 442 623 441 630 442 628 b 430 569 442 616 439 603 b 352 369 408 492 377 410 b 300 259 325 324 313 298 b 273 84 283 205 273 140 b 265 55 273 65 272 59 l 261 54 l 181 54 l 99 54 l 96 55 b 91 61 95 56 92 59 l 89 63 l 89 77 b 147 263 89 133 111 202 b 261 401 176 313 212 355 b 378 541 315 449 349 489 l 382 548 l 375 544 b 240 495 333 512 285 495 b 129 535 198 495 160 509 b 84 560 108 552 95 560 b 76 559 81 560 78 560 b 31 487 59 555 43 530 b 14 470 27 473 24 470 b 1 477 8 470 4 471 l 0 480 l 0 553 l 0 627 l 1 630 b 16 638 4 635 9 638 b 23 635 17 638 20 637 b 49 626 36 626 39 626 b 96 638 59 626 80 630 b 104 639 99 638 102 639 b 117 644 107 641 112 642 b 147 648 125 645 137 648 m 220 -1 l 221 -1 l 219 -1 l 220 -1 m 220 673 l 221 673 l 219 673 l 220 673 "},v8:{x_min:0,x_max:488.640625,ha:499,o:"m 217 648 b 245 649 225 648 235 649 b 453 516 343 649 430 595 b 458 478 455 503 458 491 b 412 370 458 440 441 398 b 411 369 412 369 411 369 b 415 365 411 367 412 367 b 488 231 462 331 488 281 b 472 165 488 208 483 186 b 243 43 434 86 338 43 b 63 104 178 43 112 62 b 0 233 20 140 0 186 b 73 365 0 283 24 331 l 77 369 l 72 374 b 29 476 42 406 29 441 b 217 648 29 557 103 635 m 258 605 b 242 606 253 605 247 606 b 157 552 198 606 157 580 b 160 541 157 548 159 544 b 319 413 176 503 242 452 l 337 403 l 338 406 b 359 476 352 428 359 452 b 258 605 359 537 318 595 m 138 326 b 130 330 134 328 130 330 b 130 330 130 330 130 330 b 107 305 127 330 112 313 b 84 231 91 281 84 256 b 243 86 84 156 151 86 b 249 87 245 86 246 87 b 347 156 303 88 347 120 b 344 172 347 162 345 167 b 156 319 325 227 257 281 b 138 326 151 322 144 324 m 243 -1 l 245 -1 l 242 -1 l 243 -1 m 243 673 l 245 673 l 242 673 l 243 673 "},v9:{x_min:0,x_max:475.03125,ha:485,o:"m 191 646 b 212 649 198 648 205 649 b 255 644 227 649 243 646 b 458 448 348 616 428 539 b 475 342 469 415 475 378 b 460 244 475 308 469 274 b 193 44 421 124 303 44 b 91 69 157 44 122 51 b 19 161 43 97 19 126 b 21 181 19 167 20 174 b 98 241 32 220 65 241 b 170 186 129 241 160 223 b 172 166 171 179 172 173 b 121 94 172 134 152 102 b 117 93 118 94 117 93 b 121 90 117 93 118 91 b 185 76 142 80 164 76 b 270 119 220 76 251 91 b 308 259 287 145 300 194 b 313 317 310 277 313 310 b 313 317 313 317 313 317 b 313 317 313 317 313 317 b 304 315 313 317 308 316 b 216 295 273 302 245 295 b 145 308 193 295 170 299 b 19 398 88 327 42 360 b 0 469 5 420 0 444 b 24 551 0 496 8 526 b 191 646 54 596 125 637 m 227 614 b 215 616 224 616 220 616 b 202 614 210 616 206 616 b 152 535 174 610 163 592 b 144 463 147 509 144 485 b 152 391 144 440 147 417 b 216 328 163 344 179 328 b 280 391 253 328 269 344 b 288 463 285 417 288 440 b 280 535 288 485 285 509 b 227 614 269 594 258 610 m 236 -1 l 238 -1 l 235 -1 l 236 -1 m 236 673 l 238 673 l 235 673 l 236 673 "},va:{x_min:-149.71875,x_max:148.359375,ha:151,o:"m -8 -1 b -1 0 -5 -1 -4 0 b 16 -11 5 0 13 -4 b 83 -186 17 -12 47 -90 l 148 -358 l 148 -363 b 127 -385 148 -376 138 -385 b 112 -378 122 -385 118 -383 b 54 -226 110 -374 114 -385 b 0 -81 24 -147 0 -81 b -55 -226 -1 -81 -25 -147 b -114 -378 -115 -385 -111 -374 b -129 -385 -119 -383 -123 -385 b -149 -363 -140 -385 -149 -376 l -149 -358 l -84 -186 b -19 -11 -49 -90 -19 -12 b -8 -1 -17 -8 -12 -4 "},vb:{x_min:0,x_max:428.75,ha:438,o:"m 262 186 b 273 186 266 186 272 186 b 274 186 273 186 274 186 b 285 186 274 186 280 186 b 428 48 375 181 428 122 b 386 -68 428 12 416 -29 b 155 -187 329 -145 236 -187 b 12 -111 92 -187 38 -162 b 0 -51 4 -91 0 -72 b 262 186 0 58 122 179 "},vc:{x_min:0,x_max:447.8125,ha:457,o:"m 0 86 l 0 173 l 223 173 l 447 173 l 447 86 l 447 0 l 223 0 l 0 0 l 0 86 "},vf:{x_min:0,x_max:370.21875,ha:378,o:"m 0 0 l 0 277 l 61 277 l 122 277 l 122 0 l 122 -278 l 61 -278 l 0 -278 l 0 0 m 246 -1 l 246 277 l 308 277 l 370 277 l 370 -1 l 370 -278 l 308 -278 l 246 -278 l 246 -1 "},v10:{x_min:0,x_max:559.421875,ha:571,o:"m 5 127 b 14 127 6 127 9 127 b 51 126 25 127 43 127 b 175 98 93 122 138 112 l 186 94 b 279 51 210 86 255 65 b 285 47 280 51 283 48 b 319 27 291 44 311 31 l 326 22 b 359 0 332 19 352 4 l 367 -6 b 371 -9 368 -6 370 -8 l 379 -15 b 387 -22 383 -18 386 -20 l 398 -30 l 411 -40 l 417 -47 l 427 -55 l 434 -61 b 441 -66 436 -62 439 -65 l 446 -72 l 453 -77 l 462 -87 b 558 -188 490 -113 549 -176 b 559 -195 559 -191 559 -194 b 548 -205 559 -201 555 -205 b 541 -204 547 -205 544 -205 b 534 -198 539 -201 536 -199 l 525 -191 b 481 -162 518 -187 490 -167 b 472 -155 477 -159 472 -156 b 468 -152 470 -155 469 -154 b 461 -149 466 -152 464 -151 b 428 -130 454 -145 441 -137 b 371 -99 413 -122 372 -99 b 363 -95 371 -99 367 -98 b 353 -91 357 -94 353 -91 b 348 -90 353 -91 352 -91 b 332 -81 343 -87 341 -86 b 27 -12 230 -37 127 -13 b 0 -5 4 -11 2 -11 b 0 58 0 -2 0 27 b 0 122 0 88 0 120 b 5 127 1 124 4 126 "},v11:{x_min:-155.171875,x_max:153.8125,ha:157,o:"m -137 353 b -130 353 -136 353 -133 353 b -112 349 -125 353 -119 352 b -100 342 -110 347 -104 344 b 0 317 -69 326 -35 317 b 111 349 38 317 76 328 b 129 353 117 352 123 353 b 153 327 142 353 153 344 b 144 302 153 320 153 317 b 27 6 93 226 50 113 b 21 -13 24 -11 24 -11 b 0 -26 17 -22 8 -26 b -24 -12 -9 -26 -19 -22 b -28 5 -24 -9 -27 -2 b -145 302 -53 117 -95 224 b -155 327 -155 317 -155 320 b -137 353 -155 340 -148 349 "},v18:{x_min:0,x_max:323.9375,ha:331,o:"m 217 535 b 225 537 220 537 221 537 b 245 524 235 537 242 533 l 246 521 l 247 390 l 247 258 l 273 265 b 306 270 288 269 299 270 b 322 259 315 270 319 267 b 323 208 323 256 323 233 b 322 158 323 184 323 159 b 288 140 318 148 315 147 b 247 130 254 131 247 130 b 247 65 247 130 247 104 b 247 20 247 51 247 36 l 247 -88 l 273 -81 b 306 -76 289 -77 299 -76 b 318 -81 311 -76 315 -77 b 323 -123 323 -87 323 -86 l 323 -138 l 323 -154 b 318 -195 323 -191 323 -190 b 269 -210 314 -199 315 -199 b 249 -216 259 -213 250 -216 l 247 -216 l 247 -349 l 246 -483 l 245 -487 b 225 -499 242 -495 234 -499 b 206 -487 219 -499 210 -495 l 205 -483 l 205 -355 l 205 -227 l 204 -227 l 181 -233 l 138 -244 b 117 -249 127 -247 117 -249 b 115 -385 115 -249 115 -256 l 115 -523 l 114 -526 b 95 -538 110 -534 102 -538 b 74 -526 87 -538 78 -534 l 73 -523 l 73 -391 b 72 -260 73 -269 73 -260 b 72 -260 72 -260 72 -260 b 19 -273 61 -263 23 -273 b 0 -260 10 -273 4 -267 b 0 -209 0 -256 0 -256 l 0 -162 l 1 -158 b 61 -134 5 -148 5 -148 l 73 -131 l 73 -22 b 72 86 73 79 73 86 b 72 86 72 86 72 86 b 19 74 61 83 23 74 b 0 86 10 74 4 79 b 0 137 0 90 0 90 l 0 184 l 1 188 b 61 212 5 198 5 198 l 73 215 l 73 348 l 73 481 l 74 485 b 95 498 78 492 87 498 b 103 495 98 498 100 496 b 114 485 107 494 111 489 l 115 481 l 115 353 l 115 226 l 121 226 b 159 235 123 227 141 231 l 198 247 l 205 248 l 205 384 l 205 521 l 206 524 b 217 535 209 528 212 533 m 205 9 b 205 119 205 70 205 119 l 205 119 b 182 113 204 119 194 116 l 138 102 b 117 97 127 99 117 97 b 115 -12 115 97 115 91 l 115 -122 l 121 -120 b 159 -111 123 -119 141 -115 l 198 -101 l 205 -98 l 205 9 "},v1b:{x_min:0,x_max:559.421875,ha:571,o:"m 544 204 b 548 204 545 204 547 204 b 559 194 555 204 559 199 b 559 190 559 192 559 191 b 530 156 559 188 556 184 b 462 86 510 134 481 104 b 453 76 458 81 454 77 l 446 70 l 441 65 b 434 59 439 63 436 61 l 427 54 b 409 37 426 51 416 44 b 392 23 398 29 394 26 b 387 19 389 22 387 20 b 379 13 386 19 383 16 l 371 8 l 367 5 l 359 -1 l 337 -16 b 285 -48 319 -29 298 -41 l 279 -52 b 186 -95 255 -66 210 -87 l 175 -99 b 23 -129 127 -117 68 -129 b 17 -129 20 -129 19 -129 b 1 -123 2 -129 2 -129 b 0 -49 0 -122 0 -83 b 0 4 0 -22 0 1 b 27 11 2 9 4 9 b 185 31 78 12 145 20 b 198 34 186 31 193 33 b 314 73 234 44 277 58 b 349 88 328 79 340 84 b 353 90 352 90 353 90 b 363 94 353 90 357 93 b 371 98 367 97 371 98 b 428 129 372 98 413 120 b 461 148 441 136 454 144 b 468 151 464 149 466 151 b 472 154 469 152 470 154 b 481 161 473 155 477 158 b 525 190 490 166 518 186 l 534 197 b 540 201 536 198 539 199 b 544 204 541 202 544 204 "},v1d:{x_min:0,x_max:619.3125,ha:632,o:"m 274 184 b 307 186 285 186 296 186 b 616 22 465 186 597 116 b 619 -1 617 13 619 5 b 308 -187 619 -104 483 -187 b 0 -1 133 -187 0 -102 b 5 36 0 11 1 23 b 274 184 29 115 141 176 m 289 161 b 272 162 284 162 277 162 b 171 41 209 162 171 108 b 205 -73 171 5 182 -34 b 345 -163 243 -133 298 -163 b 436 -98 385 -163 420 -142 b 446 -43 443 -80 446 -62 b 289 161 446 47 377 147 "},v1e:{x_min:-402.890625,x_max:401.53125,ha:410,o:"m -219 173 b -213 174 -217 174 -215 174 b -202 173 -209 174 -205 173 b -114 86 -200 172 -179 151 b -28 0 -66 37 -28 0 b 40 84 -28 0 2 37 b 117 174 111 173 110 172 b 122 174 118 174 119 174 b 132 173 125 174 129 173 b 295 11 134 172 171 134 l 307 -1 l 336 34 b 374 76 366 72 368 74 b 381 77 375 77 378 77 b 401 56 392 77 401 68 b 400 48 401 54 401 51 b 223 -172 397 41 230 -166 b 210 -176 220 -174 215 -176 b 201 -174 206 -176 204 -176 b 112 -87 198 -173 178 -152 b 27 0 65 -38 27 0 b -42 -86 27 0 -4 -38 b -118 -174 -112 -174 -111 -173 b -123 -176 -119 -176 -121 -176 b -133 -174 -126 -176 -130 -174 b -296 -12 -136 -173 -172 -137 l -308 0 l -337 -34 b -375 -77 -367 -73 -370 -76 b -382 -79 -377 -79 -379 -79 b -402 -58 -393 -79 -402 -69 b -401 -49 -402 -55 -402 -52 b -224 172 -398 -43 -228 167 b -219 173 -223 172 -220 173 "},v1f:{x_min:-340.28125,x_max:338.921875,ha:346,o:"m -32 520 b -29 521 -31 520 -31 521 b -23 519 -27 521 -24 520 b -20 513 -21 517 -20 516 b -21 506 -20 512 -20 509 b -31 474 -23 502 -27 488 l -53 402 l -66 352 l -68 349 l -57 349 b -32 351 -51 349 -40 351 b 123 370 19 352 74 359 b 137 371 127 370 133 371 b 170 356 152 371 164 366 b 171 355 170 355 170 355 b 216 366 174 355 183 358 b 280 378 268 377 266 377 b 287 378 283 378 284 378 b 332 349 307 378 322 369 b 338 319 336 341 338 330 b 332 301 338 310 336 302 b 242 280 329 299 246 280 b 242 280 242 280 242 280 b 235 288 236 280 235 283 b 235 292 235 290 235 291 b 236 302 236 297 236 299 b 220 337 236 316 230 330 l 216 340 l 210 335 b 159 276 189 322 172 301 b 118 149 152 265 156 274 b 81 34 84 36 85 36 b -8 13 78 33 -4 13 b -8 13 -8 13 -8 13 b -14 20 -12 15 -14 15 b -8 44 -14 24 -12 31 b -2 66 -5 55 -2 65 b -2 66 -2 66 -2 66 l -2 66 b -43 41 -2 66 -21 55 b -114 4 -98 8 -98 8 b -144 0 -123 0 -134 0 b -242 99 -197 0 -242 43 b -242 109 -242 102 -242 105 b -212 219 -240 122 -242 116 b -185 312 -197 270 -185 312 l -185 312 b -189 312 -185 312 -186 312 b -259 312 -200 312 -227 312 b -321 310 -291 312 -310 310 b -334 312 -330 310 -334 312 b -340 319 -338 313 -340 316 b -336 326 -340 322 -338 324 b -291 337 -334 326 -314 331 l -247 347 l -210 348 b -172 348 -190 348 -172 348 b -168 363 -172 348 -171 355 b -145 442 -151 424 -145 441 b -133 452 -144 444 -140 446 l -77 489 b -32 520 -53 506 -32 520 m 57 334 b 53 335 55 335 54 335 b 44 334 50 335 49 335 b -70 316 8 326 -28 320 b -78 309 -78 316 -78 316 b -108 202 -80 305 -88 274 b -141 81 -136 112 -141 93 b -140 74 -141 79 -141 77 b -117 49 -137 59 -127 49 b -107 52 -114 49 -110 51 b 16 127 -106 54 14 126 b 42 217 16 127 42 215 b 49 241 42 222 44 229 b 73 320 53 251 73 317 b 57 334 73 327 65 333 "},v20:{x_min:-571.671875,x_max:570.3125,ha:582,o:"m -559 351 b -551 352 -556 352 -553 352 b -530 338 -543 352 -533 348 b -529 169 -530 337 -529 291 l -529 1 l -507 27 l -441 112 b -382 174 -394 169 -390 174 b -378 174 -381 174 -379 174 b -281 86 -370 174 -375 179 b -196 0 -234 37 -196 0 b -126 84 -196 0 -164 37 b -50 174 -55 173 -57 172 b -44 174 -49 174 -47 174 b -35 173 -42 174 -38 173 b 53 86 -32 172 -12 151 b 138 0 100 37 138 0 b 208 84 140 0 170 37 b 284 174 279 173 279 172 b 289 174 285 174 288 174 b 300 173 294 174 298 173 b 462 11 303 172 340 134 l 475 -1 l 503 34 b 541 76 534 72 536 74 b 548 77 544 77 545 77 b 570 56 560 77 570 68 b 567 48 570 54 568 51 b 392 -172 564 41 397 -166 b 378 -176 387 -174 382 -176 b 368 -174 375 -176 371 -176 b 280 -87 367 -173 347 -152 b 194 0 234 -38 194 0 b 126 -86 194 0 163 -38 b 49 -174 54 -174 55 -173 b 44 -176 47 -176 46 -176 b 34 -174 40 -176 36 -174 b -54 -87 31 -173 10 -152 b -140 0 -102 -38 -140 0 b -209 -86 -140 0 -171 -38 b -285 -174 -280 -174 -279 -173 b -291 -176 -287 -176 -288 -176 b -300 -174 -294 -176 -298 -174 b -464 -11 -303 -173 -374 -102 l -476 0 l -506 -37 b -539 -76 -528 -65 -537 -74 b -551 -80 -543 -79 -547 -80 b -570 -68 -558 -80 -566 -76 l -571 -65 l -571 136 b -570 340 -571 331 -571 337 b -559 351 -568 344 -564 348 "},v22:{x_min:0,x_max:432.828125,ha:442,o:"m 209 186 b 213 187 210 187 212 187 b 216 187 215 187 216 187 b 224 174 216 186 220 180 b 420 -1 269 105 338 43 b 432 -12 431 -8 432 -9 b 421 -23 432 -15 432 -16 b 228 -180 345 -70 264 -137 b 219 -188 221 -188 221 -188 l 219 -188 b 208 -177 215 -188 215 -188 b 10 1 163 -106 93 -44 b 0 11 0 6 0 8 b 10 22 0 13 0 15 b 202 179 87 69 167 136 b 209 186 206 183 209 186 "},v23:{x_min:0,x_max:133.390625,ha:136,o:"m 54 66 b 65 68 58 68 61 68 b 122 37 88 68 110 56 b 133 -1 130 26 133 12 b 104 -58 133 -23 123 -44 b 66 -69 92 -65 78 -69 b 10 -38 44 -69 23 -58 b 0 -1 2 -27 0 -13 b 54 66 0 30 20 61 "},v25:{x_min:0,x_max:318.5,ha:325,o:"m 20 376 b 167 377 23 377 96 377 b 296 376 231 377 294 377 b 318 347 311 371 318 359 b 296 316 318 333 311 320 b 159 315 294 315 227 315 b 21 316 91 315 24 315 b 0 345 6 320 0 333 b 20 376 0 359 6 371 "},v26:{x_min:-21.78125,x_max:483.1875,ha:493,o:"m -8 631 b -1 632 -6 632 -4 632 b 19 620 8 632 16 628 b 20 383 20 616 20 616 l 20 148 l 21 151 b 140 199 59 183 102 199 b 206 179 164 199 187 192 l 210 176 l 210 396 l 210 617 l 212 621 b 231 632 216 628 223 632 b 250 620 239 632 247 628 b 251 383 251 616 251 616 l 251 148 l 254 151 b 370 199 291 183 332 199 b 415 191 385 199 400 197 b 483 84 458 176 483 134 b 461 0 483 58 476 29 b 332 -142 439 -40 411 -72 l 255 -215 b 231 -229 240 -229 239 -229 b 216 -223 224 -229 220 -227 b 210 -158 210 -217 210 -223 b 210 -120 210 -148 210 -136 l 210 -29 l 205 -34 b 100 -142 182 -65 159 -88 l 23 -215 b -1 -229 9 -229 6 -229 b -20 -216 -9 -229 -17 -224 l -21 -212 l -21 201 l -21 616 l -20 620 b -8 631 -17 624 -13 630 m 110 131 b 96 133 106 133 100 133 b 89 133 93 133 91 133 b 24 87 63 129 40 113 l 20 80 l 20 -37 l 20 -156 l 23 -152 b 144 81 96 -72 144 20 l 144 83 b 110 131 144 113 134 126 m 341 131 b 328 133 337 133 332 133 b 322 133 326 133 323 133 b 257 87 296 129 273 113 l 251 80 l 251 -37 l 251 -156 l 255 -152 b 375 81 328 -72 375 20 l 375 83 b 341 131 375 113 367 126 "},v27:{x_min:0,x_max:432.828125,ha:442,o:"m 208 184 b 213 187 209 186 212 187 b 224 176 217 187 221 183 b 245 147 225 172 235 159 b 419 -1 288 90 347 38 b 431 -8 424 -4 431 -8 b 432 -12 432 -9 432 -11 b 430 -18 432 -13 432 -16 b 364 -61 424 -20 383 -47 b 225 -183 307 -102 250 -152 b 223 -187 224 -184 223 -187 b 220 -188 221 -188 220 -188 b 208 -176 216 -188 210 -184 b 187 -148 205 -173 197 -159 b 12 0 144 -90 84 -38 b 0 11 4 5 0 8 b 16 24 0 13 4 18 b 183 158 83 69 141 115 b 208 184 194 169 198 173 m 183 105 b 176 113 181 109 176 113 b 172 109 176 113 175 112 b 92 45 149 90 117 62 l 88 41 l 102 31 b 247 -105 160 -6 210 -55 l 254 -115 l 257 -112 l 269 -102 b 340 -45 287 -87 319 -61 l 344 -43 l 330 -33 b 183 105 272 6 221 54 "},v28:{x_min:-73.5,x_max:72.140625,ha:74,o:"m -72 252 l -73 254 l 0 254 l 72 254 l 70 252 b 0 -1 70 248 0 -1 b -72 252 -1 -1 -72 248 "},v29:{x_min:-590.71875,x_max:589.359375,ha:601,o:"m 175 273 b 182 274 178 273 181 274 b 202 262 190 274 198 269 b 204 158 204 259 204 259 l 204 56 l 250 112 b 303 174 296 172 298 172 b 308 174 304 174 307 174 b 318 173 313 174 317 173 b 481 11 322 172 357 134 l 494 -1 l 522 34 b 560 76 553 72 555 74 b 567 77 563 77 564 77 b 589 56 579 77 589 68 b 586 48 589 54 588 51 b 411 -172 583 41 416 -166 b 397 -176 406 -174 401 -176 b 387 -174 393 -176 390 -176 b 299 -87 386 -173 366 -152 b 213 0 253 -38 213 0 b 208 -6 213 0 210 -2 l 204 -12 l 204 -147 b 204 -210 204 -173 204 -194 b 198 -292 204 -297 204 -287 b 183 -299 194 -297 189 -299 b 164 -287 175 -299 167 -295 b 163 -174 163 -284 163 -284 l 161 -63 l 119 -117 b 65 -176 76 -170 73 -176 b 61 -176 63 -176 62 -176 b -35 -87 51 -174 57 -180 b -121 0 -83 -38 -121 0 b -190 -86 -122 0 -152 -38 b -266 -174 -261 -174 -259 -173 b -272 -176 -268 -176 -270 -176 b -281 -174 -276 -176 -280 -174 b -371 -86 -284 -173 -304 -152 b -457 0 -417 -38 -457 0 l -457 0 b -477 -26 -457 0 -470 -16 b -548 -227 -524 -88 -548 -161 b -536 -303 -548 -254 -544 -280 b -533 -317 -534 -309 -533 -313 b -553 -338 -533 -330 -541 -338 b -577 -315 -566 -338 -571 -333 b -590 -227 -586 -287 -590 -258 b -518 -9 -590 -154 -564 -77 b -465 56 -509 2 -504 8 l -402 134 b -363 174 -374 170 -371 174 b -359 174 -362 174 -360 174 b -262 86 -351 174 -356 179 b -176 0 -216 37 -176 0 b -107 84 -176 0 -145 37 b -31 174 -36 173 -38 172 b -25 174 -29 174 -28 174 b -16 173 -23 174 -19 173 b 147 11 -13 172 35 123 l 157 -1 l 160 1 l 163 4 l 163 130 b 164 260 163 256 163 258 b 175 273 166 266 170 270 "},v2a:{x_min:-21.78125,x_max:366.140625,ha:374,o:"m 276 1378 b 284 1379 279 1379 281 1379 b 306 1360 292 1379 298 1374 b 352 1247 326 1326 343 1286 b 366 1139 362 1213 366 1175 b 347 1009 366 1093 359 1049 l 344 1002 l 347 992 b 352 971 348 986 351 977 b 366 863 362 936 366 899 b 347 732 366 818 359 773 l 344 725 l 347 716 b 352 695 348 710 351 700 b 366 588 362 659 366 623 b 223 262 366 464 314 345 b 189 233 212 252 212 252 b 35 76 126 183 73 129 b -1 16 20 56 2 27 b -19 4 -4 9 -12 4 l -21 4 l -21 137 l -21 270 l -17 270 b 186 344 59 281 134 308 b 319 606 270 399 319 499 b 317 650 319 620 319 635 l 315 659 l 314 655 b 223 537 288 607 258 570 b 189 509 212 528 212 528 b 35 352 126 459 73 405 b -1 292 20 333 2 303 b -19 280 -4 285 -12 280 l -21 280 l -21 413 l -21 546 l -17 546 b 186 620 59 557 134 584 b 319 882 270 675 319 775 b 317 925 319 896 319 911 l 315 935 l 314 931 b 223 813 288 884 258 846 b 189 785 212 805 212 805 b 35 628 126 735 73 681 b -1 569 20 609 2 580 b -19 556 -4 562 -12 556 l -21 556 l -21 689 l -21 823 l -17 823 b 202 907 68 835 152 867 b 319 1157 280 968 319 1061 b 270 1338 319 1218 303 1281 b 262 1358 264 1349 262 1353 b 262 1364 262 1360 262 1363 b 276 1378 265 1371 269 1376 "},v2c:{x_min:-597.53125,x_max:596.171875,ha:608,o:"m -413 173 b -408 174 -412 174 -409 174 b -397 173 -404 174 -400 173 b -308 86 -394 172 -374 151 b -223 0 -261 37 -223 0 b -153 84 -223 0 -191 37 b -77 174 -83 173 -84 172 b -72 174 -76 174 -74 174 b -62 173 -68 174 -63 173 b 25 86 -59 172 -39 151 b 112 0 73 37 111 0 b 181 84 112 0 144 37 b 257 174 251 173 251 172 b 262 174 258 174 261 174 b 273 173 266 174 270 173 b 436 9 276 172 347 101 l 447 -1 l 477 36 b 522 79 511 79 513 79 l 522 79 b 552 51 533 79 539 73 b 596 -112 582 6 596 -51 b 567 -262 596 -161 586 -213 b 539 -322 558 -287 544 -316 b 524 -327 534 -326 529 -327 b 504 -315 515 -327 507 -323 b 503 -308 503 -312 503 -309 b 511 -285 503 -302 504 -297 b 555 -113 540 -227 555 -169 b 544 -34 555 -86 551 -59 b 522 19 540 -16 530 8 l 521 22 l 481 -26 l 405 -122 b 353 -176 366 -172 362 -176 b 349 -176 352 -176 351 -176 b 253 -87 341 -176 347 -180 b 167 0 206 -38 167 0 b 99 -86 167 0 136 -38 b 21 -174 27 -174 28 -173 b 17 -176 20 -176 19 -176 b 6 -174 13 -176 9 -174 b -81 -87 4 -173 -14 -152 b -167 0 -129 -38 -167 0 b -236 -86 -167 0 -198 -38 b -313 -174 -307 -174 -306 -173 b -318 -176 -314 -176 -315 -176 b -328 -174 -321 -176 -325 -174 b -491 -12 -330 -173 -367 -137 l -503 0 l -530 -34 b -570 -77 -562 -73 -564 -76 b -577 -79 -571 -79 -574 -79 b -597 -58 -588 -79 -597 -69 b -596 -49 -597 -55 -597 -52 b -417 172 -593 -43 -423 167 b -413 173 -417 172 -415 173 "},v2d:{x_min:0,x_max:438.28125,ha:447,o:"m 212 190 b 219 191 213 191 216 191 b 236 176 225 191 228 190 b 419 18 277 105 341 49 b 436 5 431 13 434 11 b 438 -1 438 4 438 1 b 424 -16 438 -8 432 -13 b 356 -49 409 -20 379 -36 b 234 -180 306 -83 258 -133 b 219 -192 230 -188 224 -192 b 200 -176 213 -192 206 -187 b 9 -15 157 -102 89 -45 b 0 0 2 -12 0 -6 b 16 18 0 9 2 12 b 200 176 93 48 159 104 b 212 190 205 186 208 188 m 239 113 b 236 117 238 116 238 117 b 230 108 235 117 234 115 b 92 -15 196 58 140 8 b 88 -18 91 -16 88 -18 b 92 -20 88 -18 91 -19 b 198 -116 130 -43 166 -74 b 200 -117 200 -117 200 -117 b 201 -117 200 -117 201 -117 b 264 -43 212 -98 242 -62 b 345 15 288 -19 321 4 b 348 18 347 16 348 16 b 344 20 348 18 347 19 b 239 113 307 41 266 79 "},v2f:{x_min:-1.359375,x_max:680.5625,ha:694,o:"m 597 1042 b 604 1042 600 1042 602 1042 b 642 1002 627 1042 642 1022 b 619 966 642 988 635 974 b 439 927 574 942 503 927 l 426 927 l 426 921 b 430 838 428 893 430 866 b 345 480 430 696 398 560 b 179 391 307 423 249 391 b 156 392 171 391 164 392 b 138 394 149 394 142 394 b 103 434 115 396 103 416 b 129 471 103 451 111 466 b 141 474 133 473 137 474 b 172 459 153 474 164 469 b 181 455 175 456 176 455 b 187 456 182 455 185 455 b 253 520 212 460 234 483 b 315 836 294 605 315 714 b 311 928 315 867 314 898 b 302 945 310 943 311 942 b 245 953 283 950 262 953 b 130 891 193 953 149 931 b 84 860 119 870 102 860 b 36 905 61 860 39 877 b 36 910 36 907 36 909 b 80 970 36 931 50 949 b 249 1017 125 1000 187 1017 b 322 1009 273 1017 299 1014 l 341 1003 b 436 991 372 995 406 991 b 577 1031 495 991 545 1004 b 597 1042 583 1038 590 1041 m 416 360 b 424 360 419 360 421 360 b 481 309 454 360 479 338 b 503 145 484 280 495 199 b 585 -185 525 16 555 -106 b 630 -245 596 -213 613 -237 l 634 -247 l 638 -245 b 647 -244 641 -245 645 -244 b 680 -278 666 -244 680 -262 b 664 -308 680 -290 675 -301 b 638 -312 658 -310 650 -312 b 613 -309 631 -312 623 -310 b 477 -201 555 -303 502 -260 b 417 -2 460 -159 434 -72 b 416 5 417 1 416 5 b 416 5 416 5 416 5 b 411 -5 415 5 413 0 b 359 -97 397 -33 377 -70 b 353 -106 355 -102 353 -105 b 359 -112 353 -108 355 -109 b 409 -130 375 -123 390 -129 b 426 -134 420 -130 421 -131 b 431 -147 428 -137 431 -141 b 420 -162 431 -152 427 -159 b 382 -169 409 -166 396 -169 b 323 -155 363 -169 341 -165 l 317 -152 l 314 -155 b 62 -303 240 -240 148 -295 b 36 -305 55 -305 44 -305 b 23 -303 29 -305 24 -305 b -1 -273 6 -299 -1 -287 b 31 -240 -1 -256 10 -240 b 36 -240 32 -240 34 -240 b 42 -241 38 -241 39 -241 b 134 -204 63 -241 99 -226 b 367 288 265 -115 357 81 b 375 330 368 313 370 320 b 416 360 383 347 400 358 m 360 -359 b 379 -359 363 -359 371 -359 b 424 -360 396 -359 416 -359 b 646 -502 536 -373 624 -430 b 649 -527 649 -510 649 -519 b 530 -673 649 -578 604 -635 l 521 -677 l 529 -681 b 653 -811 592 -714 637 -762 b 660 -853 658 -827 660 -839 b 645 -911 660 -873 656 -892 b 426 -1021 608 -981 519 -1021 b 283 -989 377 -1021 328 -1011 b 235 -949 249 -972 239 -964 b 234 -936 234 -946 234 -941 b 234 -928 234 -934 234 -931 l 235 -925 l 234 -927 l 225 -934 b 87 -982 186 -966 138 -982 b 80 -982 85 -982 83 -982 b 55 -981 70 -981 58 -981 b 17 -943 32 -981 17 -964 b 54 -904 17 -921 35 -904 b 78 -914 62 -904 72 -909 l 83 -918 l 88 -918 b 190 -831 122 -918 166 -881 b 269 -506 242 -727 269 -612 b 268 -462 269 -492 269 -477 b 266 -449 266 -458 266 -452 b 265 -444 266 -445 266 -444 b 257 -446 264 -444 261 -445 b 132 -545 196 -470 152 -505 b 88 -573 122 -563 104 -573 b 39 -523 63 -573 39 -553 b 63 -476 39 -505 44 -494 b 360 -359 136 -408 235 -369 m 419 -424 b 393 -423 411 -423 406 -423 l 375 -423 l 377 -426 b 379 -439 377 -427 378 -434 b 383 -510 382 -463 383 -487 b 314 -811 383 -609 360 -710 b 266 -893 296 -850 285 -870 b 264 -898 265 -896 264 -898 l 264 -898 b 264 -898 264 -898 264 -898 b 268 -898 264 -898 266 -898 b 273 -898 270 -898 272 -898 b 300 -909 283 -898 291 -900 b 426 -957 340 -941 385 -957 b 476 -949 443 -957 460 -954 b 547 -853 522 -931 547 -893 b 485 -745 547 -816 526 -775 b 397 -707 460 -727 432 -714 b 366 -675 375 -703 366 -692 b 396 -642 366 -657 377 -645 b 530 -557 455 -637 511 -601 b 536 -527 534 -548 536 -537 b 419 -424 536 -480 490 -437 "},v30:{x_min:-21.78125,x_max:367.5,ha:375,o:"m 276 1900 b 284 1901 279 1900 281 1901 b 306 1883 291 1901 298 1896 b 367 1686 347 1825 367 1757 b 343 1558 367 1643 359 1600 l 338 1549 l 343 1537 b 367 1411 359 1497 367 1454 b 343 1282 367 1367 359 1324 l 338 1272 l 343 1261 b 367 1135 359 1221 367 1178 b 343 1007 367 1090 359 1047 l 338 996 l 343 985 b 367 859 359 945 367 902 b 343 731 367 814 359 771 l 338 720 l 343 709 b 367 582 359 667 367 626 b 289 362 367 503 340 426 b 239 312 276 345 259 330 b 29 77 152 237 76 152 b -1 18 14 54 2 30 b -19 4 -4 11 -12 4 l -21 4 l -21 133 l -20 260 l -13 262 b 98 299 17 269 62 284 b 111 305 103 302 110 305 b 167 334 123 310 156 327 b 319 595 264 391 319 491 b 313 659 319 616 318 638 b 310 667 311 664 311 667 b 307 663 310 667 308 666 b 240 588 289 637 269 614 b 16 331 141 505 62 413 b -1 294 8 316 1 302 b -19 280 -4 287 -12 280 l -21 280 l -21 408 l -20 537 l -13 538 b 98 576 17 545 62 560 b 111 581 103 578 110 581 b 167 610 123 587 156 603 b 319 871 264 667 319 767 b 313 935 319 892 318 913 b 310 942 311 941 311 942 b 307 939 310 942 308 941 b 240 864 289 913 269 889 b 16 607 141 781 62 689 b -1 570 8 592 1 578 b -19 556 -4 563 -12 556 l -21 556 l -21 684 l -20 813 l -13 814 b 98 852 17 821 62 836 b 111 857 103 855 110 857 b 167 886 123 863 156 880 b 319 1147 264 943 319 1043 b 313 1211 319 1168 318 1189 b 310 1218 311 1217 311 1218 b 307 1215 310 1218 308 1217 b 240 1140 289 1188 269 1165 b 16 884 141 1057 62 966 b -1 846 8 868 1 855 b -19 832 -4 839 -12 832 l -21 832 l -21 960 l -20 1089 l -13 1090 b 98 1128 17 1097 62 1111 b 111 1134 103 1131 110 1134 b 167 1163 123 1139 156 1156 b 319 1424 264 1220 319 1320 b 313 1486 319 1444 318 1465 b 310 1494 311 1493 311 1494 b 307 1492 310 1494 308 1493 b 240 1417 289 1464 269 1442 b 16 1160 141 1333 62 1242 b -1 1121 8 1145 1 1131 b -19 1109 -4 1115 -12 1109 l -21 1109 l -21 1236 l -20 1365 l -13 1367 b 98 1404 17 1374 62 1388 b 111 1410 103 1407 110 1410 b 250 1508 172 1437 215 1467 b 319 1701 296 1564 319 1633 b 270 1859 319 1757 303 1814 b 262 1882 265 1868 262 1875 b 276 1900 262 1890 266 1896 "},v31:{x_min:0,x_max:386.5625,ha:394,o:"m 0 173 l 0 347 l 193 347 l 386 347 l 386 173 l 386 0 l 193 0 l 0 0 l 0 173 "},v33:{x_min:-423.3125,x_max:421.9375,ha:431,o:"m -10 276 b -2 277 -8 277 -5 277 b 17 265 5 277 13 273 b 19 163 19 260 19 260 l 19 68 l 39 45 b 277 -95 122 -34 200 -81 b 289 -97 281 -97 285 -97 b 378 0 332 -97 371 -54 b 378 11 378 4 378 6 b 302 83 378 55 345 83 b 242 66 283 83 262 77 b 208 56 231 59 219 56 b 148 120 175 56 148 81 b 200 186 148 151 164 172 b 261 198 220 194 240 198 b 420 45 341 198 411 137 b 421 22 421 37 421 29 b 257 -198 421 -86 347 -188 b 242 -198 251 -198 247 -198 b 20 -105 181 -198 95 -163 l 19 -104 l 19 -183 b 19 -216 19 -195 19 -206 b 12 -273 19 -272 17 -267 b -2 -278 8 -277 2 -278 b -21 -266 -10 -278 -19 -274 b -23 -165 -23 -263 -23 -262 l -23 -69 l -44 -47 b -250 86 -117 23 -183 66 b -295 94 -270 93 -284 94 b -315 91 -302 94 -308 94 b -381 5 -356 81 -381 43 b -355 -56 -381 -16 -372 -40 b -299 -81 -338 -73 -319 -81 b -246 -68 -283 -81 -265 -77 b -212 -58 -234 -61 -223 -58 b -168 -77 -196 -58 -179 -65 b -151 -122 -156 -90 -151 -105 b -179 -174 -151 -141 -160 -162 b -239 -195 -194 -184 -217 -192 b -257 -197 -245 -195 -250 -197 b -423 -5 -349 -197 -423 -113 b -423 0 -423 -4 -423 -1 b -277 194 -420 97 -362 173 b -247 197 -268 197 -258 197 b -24 104 -185 197 -100 162 l -23 102 l -23 181 b -21 265 -23 260 -23 260 b -10 276 -20 269 -14 274 "},v34:{x_min:0,x_max:622.03125,ha:635,o:"m 398 417 b 406 419 401 419 404 419 b 427 398 417 419 427 409 b 427 391 427 395 427 392 b 34 -274 424 385 38 -272 b 20 -280 29 -278 25 -280 b 0 -259 9 -280 0 -270 b 0 -252 0 -256 0 -254 b 393 413 2 -247 389 410 b 398 417 394 415 397 416 m 592 417 b 600 419 594 419 597 419 b 622 398 611 419 622 409 b 620 391 622 395 620 392 b 227 -274 617 385 231 -272 b 213 -280 223 -278 219 -280 b 193 -259 202 -280 193 -270 b 194 -252 193 -256 193 -254 b 586 413 196 -247 582 410 b 592 417 588 415 590 416 "},v36:{x_min:-1.359375,x_max:1064.390625,ha:1086,o:"m 296 692 b 314 694 302 694 307 694 b 386 685 337 694 366 689 b 548 498 480 660 548 580 b 548 481 548 492 548 487 b 455 395 541 426 499 395 b 370 462 420 395 383 417 b 362 496 364 477 362 488 b 377 514 362 509 367 514 b 393 501 386 514 390 510 b 432 474 397 484 413 474 b 470 487 445 474 458 478 b 491 530 484 496 491 510 b 490 544 491 534 491 539 b 333 660 479 606 411 657 l 323 662 l 315 646 b 269 524 285 591 269 556 b 321 431 269 492 287 466 b 349 395 338 413 343 408 b 363 342 359 378 363 362 b 359 312 363 333 362 322 b 285 158 348 266 318 206 b 281 152 283 155 281 152 b 281 152 281 152 281 152 b 287 154 283 152 284 152 b 318 155 298 154 308 155 b 461 98 371 155 419 136 l 464 97 l 483 112 b 503 129 494 120 503 127 b 504 130 503 129 504 129 b 503 138 504 131 503 134 b 500 180 500 152 500 166 b 553 326 500 238 518 288 b 604 366 560 331 592 358 b 649 381 617 376 632 381 b 696 362 665 381 681 374 b 724 302 714 347 724 324 b 695 238 724 278 714 255 b 660 210 691 234 662 212 b 579 148 658 209 582 151 b 579 148 579 148 579 148 b 596 106 579 144 589 119 b 622 77 604 88 609 83 b 657 69 632 72 645 69 b 748 112 688 69 721 84 b 755 123 754 117 755 120 b 755 127 755 124 755 126 b 751 165 752 137 751 151 b 758 219 751 183 754 202 b 894 387 774 290 820 347 b 896 390 896 388 896 388 b 891 398 896 391 895 392 b 622 560 827 477 730 535 b 600 580 605 564 600 569 b 617 596 600 591 607 596 b 628 595 622 596 624 596 b 1057 248 846 552 1020 412 b 1064 191 1061 229 1064 209 b 922 0 1064 94 1005 9 b 902 -1 916 -1 909 -1 b 774 76 847 -1 800 26 b 769 83 770 81 770 83 b 769 81 769 83 769 83 b 627 -1 733 29 677 -1 b 548 27 597 -1 570 8 b 515 88 537 37 525 61 l 513 95 l 510 93 l 453 45 b 390 0 396 0 396 0 b 390 0 390 0 390 0 b 374 15 381 0 377 4 b 268 105 359 69 314 105 b 250 104 262 105 257 105 l 243 102 l 234 90 b 155 1 201 49 159 2 b 147 -1 152 0 149 -1 b 130 15 138 -1 130 6 b 132 20 130 18 132 19 b 136 31 133 22 134 27 b 220 131 149 74 178 109 b 231 137 225 134 230 136 b 302 278 280 202 302 244 b 265 335 302 299 295 309 b 209 442 234 363 213 402 b 209 455 209 446 209 451 b 279 648 209 502 232 564 l 285 659 l 283 659 b 176 627 238 653 210 645 b 57 477 111 594 66 538 b 55 459 55 471 55 464 b 72 409 55 437 61 415 b 93 403 78 405 87 403 b 152 467 123 403 151 431 b 168 488 153 483 157 488 b 185 462 181 488 185 483 l 185 460 b 137 344 183 409 168 369 b 78 322 119 328 98 322 b 13 360 50 322 25 335 b -1 426 4 380 -1 402 b 89 610 -1 488 32 559 b 296 692 147 659 210 685 m 926 348 b 921 353 924 351 922 353 b 914 348 920 353 918 351 b 823 167 857 306 823 237 b 828 124 823 154 826 138 b 890 31 837 79 862 40 b 896 31 892 31 894 31 b 956 104 916 31 940 59 b 970 191 965 129 970 159 b 966 241 970 208 969 224 b 926 348 959 277 945 313 m 627 326 b 619 326 624 326 622 326 b 598 316 611 326 604 323 b 568 215 579 288 568 255 b 568 208 568 213 568 210 b 571 183 570 195 570 184 l 571 183 b 594 201 571 183 582 191 l 634 231 b 660 259 653 247 656 248 b 664 278 662 266 664 272 b 627 326 664 299 649 320 "},v38:{x_min:-1.359375,x_max:651.96875,ha:665,o:"m 389 644 b 405 645 394 645 400 645 b 504 566 450 645 492 613 b 507 541 506 557 507 549 b 480 471 507 514 498 489 l 477 467 l 483 470 b 609 591 539 485 586 531 b 613 601 611 595 613 599 b 631 609 619 607 624 609 b 651 588 641 609 651 602 b 200 -946 651 584 204 -941 b 182 -957 197 -953 190 -957 b 163 -945 174 -957 166 -953 b 161 -939 161 -942 161 -942 b 217 -743 161 -931 170 -904 b 272 -555 247 -639 272 -555 b 272 -555 272 -555 272 -555 b 264 -560 272 -555 268 -557 b 140 -603 227 -589 182 -603 b 36 -567 102 -603 65 -592 b -1 -487 12 -548 -1 -517 b 17 -427 -1 -466 5 -445 b 103 -380 38 -395 70 -380 b 191 -433 137 -380 172 -398 b 205 -484 201 -448 205 -466 b 178 -553 205 -509 196 -535 l 175 -557 l 182 -555 b 307 -435 236 -539 284 -494 b 372 -213 308 -430 372 -215 b 372 -213 372 -213 372 -213 b 364 -219 372 -213 368 -216 b 240 -262 328 -247 283 -262 b 137 -226 202 -262 166 -249 b 99 -145 112 -206 99 -176 b 118 -84 99 -124 106 -104 b 204 -38 138 -54 171 -38 b 292 -91 238 -38 273 -56 b 306 -141 302 -106 306 -124 b 279 -212 306 -167 296 -194 l 276 -215 l 281 -213 b 408 -93 336 -198 385 -151 b 473 129 409 -88 473 127 b 473 129 473 129 473 129 b 465 122 473 129 469 126 b 341 80 428 94 383 80 b 236 115 303 80 266 91 b 200 195 213 136 200 165 b 217 256 200 217 206 238 b 304 303 239 287 272 303 b 393 249 338 303 374 285 b 406 199 402 234 406 217 b 379 129 406 173 397 148 l 377 126 l 382 127 b 509 248 436 142 485 190 b 574 470 510 254 574 469 b 574 470 574 470 574 470 b 566 464 574 470 570 467 b 442 421 529 435 484 421 b 337 458 404 421 367 433 b 300 537 313 478 300 508 b 389 644 300 585 334 635 "},v39:{x_min:-171.5,x_max:251.8125,ha:257,o:"m -8 631 b -1 632 -6 632 -4 632 b 19 620 8 632 16 628 b 20 553 20 616 20 614 b 20 491 20 503 20 491 l 20 491 b 153 535 47 501 149 535 b 174 514 167 535 174 524 b 164 496 174 508 171 501 b 92 470 164 495 132 484 l 20 445 l 20 390 b 20 363 20 378 20 370 b 20 333 20 340 20 333 l 20 333 b 153 377 47 344 149 377 b 174 356 167 377 174 367 b 164 338 174 349 171 342 b 92 312 164 338 132 326 l 20 288 l 20 219 l 20 148 l 21 151 b 137 199 59 183 99 199 b 182 191 152 199 167 197 b 251 84 227 176 251 134 b 228 0 251 58 243 29 b 100 -142 206 -40 178 -72 l 23 -215 b -1 -229 9 -229 6 -229 b -20 -216 -9 -229 -17 -224 b -21 30 -21 -212 -21 -212 b -21 273 -21 163 -21 273 b -84 252 -21 273 -50 263 b -152 230 -133 234 -145 230 b -157 231 -155 230 -156 231 b -171 252 -166 234 -171 244 b -160 270 -171 259 -167 266 b -27 316 -159 270 -93 294 l -21 319 l -21 374 b -21 431 -21 406 -21 431 b -84 409 -21 431 -50 421 b -152 388 -133 392 -145 388 b -157 390 -155 388 -156 388 b -171 409 -166 392 -171 401 b -160 428 -171 417 -167 424 b -27 474 -159 428 -93 451 l -21 476 l -21 546 b -20 620 -21 614 -21 616 b -8 631 -17 624 -13 630 m 110 131 b 96 133 106 133 100 133 b 89 133 93 133 91 133 b 24 87 63 129 40 113 l 20 80 l 20 -37 l 20 -156 l 23 -152 b 144 81 96 -72 144 20 l 144 83 b 110 131 144 113 134 126 "},v3b:{x_min:0,x_max:484.5625,ha:494,o:"m 228 245 b 239 247 234 247 239 247 b 243 247 240 247 242 247 b 303 238 257 247 287 242 b 484 -2 417 208 484 104 b 412 -177 484 -65 461 -127 b 243 -248 363 -226 303 -248 b 6 -63 138 -248 36 -180 b 0 -1 1 -41 0 -20 b 228 245 0 127 98 240 m 255 181 b 240 183 247 183 245 183 b 232 181 238 183 235 183 b 142 152 200 180 168 170 l 138 149 l 190 97 l 242 44 l 294 97 l 345 149 l 340 152 b 255 181 315 169 284 180 m 147 -54 l 197 -1 l 147 51 l 95 104 l 91 99 b 62 -1 72 70 62 34 b 66 -43 62 -15 63 -29 b 91 -101 72 -63 80 -84 l 95 -106 l 147 -54 m 393 99 b 389 104 390 102 389 104 b 337 51 389 104 366 80 l 285 -1 l 337 -54 l 389 -106 l 393 -101 b 421 -1 412 -72 421 -36 b 393 99 421 34 412 69 m 294 -98 b 242 -45 265 -69 242 -45 b 190 -98 242 -45 219 -69 l 138 -151 l 142 -154 b 242 -184 172 -174 206 -184 b 340 -154 276 -184 311 -174 l 345 -151 l 294 -98 "},v3c:{x_min:0,x_max:450.53125,ha:460,o:"m 189 302 b 204 303 193 302 198 303 b 303 224 250 303 292 270 b 306 199 304 216 306 208 b 279 129 306 173 296 147 l 276 126 l 281 127 b 408 249 337 142 385 190 b 412 259 409 254 412 258 b 430 267 417 265 423 267 b 450 247 441 267 450 259 b 200 -605 450 242 204 -599 b 182 -616 197 -612 190 -616 b 163 -602 174 -616 166 -610 b 161 -598 161 -601 161 -601 b 217 -402 161 -589 170 -562 b 272 -213 247 -298 272 -213 b 272 -213 272 -213 272 -213 b 264 -219 272 -213 268 -216 b 140 -262 227 -247 182 -262 b 36 -226 102 -262 65 -249 b 0 -145 12 -206 0 -176 b 17 -84 0 -124 5 -104 b 103 -38 38 -54 70 -38 b 191 -91 137 -38 172 -56 b 205 -141 201 -106 205 -124 b 178 -212 205 -167 196 -194 l 175 -215 l 182 -213 b 307 -93 236 -198 284 -151 b 372 129 308 -88 372 127 b 372 129 372 129 372 129 b 364 122 372 129 368 126 b 240 80 328 94 283 80 b 137 115 202 80 166 91 b 99 194 111 136 99 165 b 189 302 99 244 133 292 "},v3e:{x_min:0,x_max:406.96875,ha:415,o:"m 21 183 b 28 183 24 183 25 183 b 42 181 34 183 39 183 b 127 108 47 179 47 179 b 202 41 168 72 202 41 b 279 108 204 41 238 72 b 357 177 321 145 356 176 b 375 183 363 181 370 183 b 406 151 392 183 406 169 b 404 137 406 147 405 141 b 322 62 401 131 398 129 b 251 0 284 27 251 0 b 322 -63 251 -1 284 -29 b 404 -138 398 -130 401 -133 b 406 -152 405 -142 406 -148 b 375 -184 406 -170 392 -184 b 357 -179 370 -184 363 -183 b 279 -109 356 -177 321 -147 b 202 -43 238 -73 204 -43 b 127 -109 202 -43 168 -73 b 49 -179 85 -147 50 -177 b 31 -184 43 -183 36 -184 b 0 -152 13 -184 0 -170 b 2 -138 0 -148 0 -142 b 83 -63 5 -133 8 -130 b 155 0 122 -29 155 -1 b 83 62 155 0 122 27 b 8 129 43 97 10 127 b 0 151 2 136 0 144 b 21 183 0 165 8 177 "},v3f:{x_min:-24.5,x_max:317.140625,ha:324,o:"m -24 -147 l -24 -5 l -20 -5 b -1 -19 -12 -5 -4 -11 b 58 -123 6 -43 31 -86 b 196 -278 93 -173 134 -219 b 317 -570 274 -356 317 -460 b 294 -713 317 -617 308 -666 l 289 -724 l 294 -735 b 317 -873 308 -780 317 -827 b 235 -1132 317 -963 288 -1054 b 209 -1165 228 -1140 224 -1146 b 189 -1177 204 -1172 196 -1177 b 171 -1164 182 -1177 175 -1172 b 168 -1154 170 -1161 168 -1159 b 181 -1132 168 -1149 172 -1142 b 269 -891 238 -1064 269 -975 b 269 -881 269 -886 269 -884 b 262 -814 269 -857 265 -827 b 258 -800 261 -811 259 -806 b 142 -628 240 -731 198 -667 b -8 -589 112 -606 47 -589 b -20 -589 -13 -589 -19 -589 l -24 -589 l -24 -449 l -24 -308 l -20 -308 b -1 -322 -12 -308 -4 -313 b 58 -424 6 -345 31 -388 b 194 -580 93 -476 136 -523 b 259 -660 221 -606 245 -635 b 261 -663 259 -662 261 -663 b 264 -656 262 -663 262 -660 b 269 -587 268 -632 269 -610 b 264 -521 269 -566 268 -544 b 262 -512 264 -517 262 -513 b 258 -498 261 -509 259 -503 b 142 -326 240 -428 198 -365 b -8 -287 112 -303 47 -288 b -20 -287 -13 -287 -19 -287 l -24 -287 l -24 -147 "},v40:{x_min:-1.359375,x_max:436.921875,ha:446,o:"m 213 205 b 217 205 215 205 216 205 b 234 194 224 205 234 199 b 236 187 234 194 235 190 l 245 167 l 261 129 l 270 106 b 355 -61 294 54 329 -13 b 420 -163 381 -105 402 -138 b 436 -188 435 -184 436 -184 b 436 -191 436 -190 436 -190 b 421 -206 436 -201 431 -206 l 421 -206 l 416 -206 l 405 -201 b 217 -158 347 -172 283 -158 b 31 -201 153 -158 88 -172 l 20 -206 l 14 -206 l 14 -206 b 0 -191 5 -206 0 -201 b -1 -188 0 -190 -1 -190 b 14 -163 -1 -186 0 -184 b 95 -34 36 -136 72 -77 b 166 106 119 8 148 68 l 175 129 l 183 148 l 200 188 b 213 205 205 199 208 202 "},v41:{x_min:-1.359375,x_max:556.6875,ha:568,o:"m 294 322 b 318 323 299 322 308 323 b 360 320 334 323 352 322 b 526 217 430 310 490 273 b 543 166 537 202 543 184 b 447 70 543 117 503 70 b 445 70 447 70 446 70 b 359 159 394 72 359 113 b 368 201 359 173 362 187 b 442 245 382 229 412 245 b 455 244 446 245 451 245 b 460 244 458 244 460 244 b 460 244 460 244 460 244 b 454 248 460 244 458 245 b 325 291 417 276 372 291 b 285 287 313 291 299 290 b 144 -2 183 269 144 190 b 281 -290 144 -208 179 -280 b 304 -291 289 -291 298 -291 b 524 -105 412 -291 506 -212 b 541 -84 526 -88 530 -84 b 556 -101 551 -84 556 -90 b 549 -138 556 -111 553 -122 b 334 -322 521 -237 435 -310 b 302 -324 323 -323 313 -324 b 13 -101 172 -324 54 -234 b -1 -1 4 -68 -1 -34 b 294 322 -1 161 121 303 "},v42:{x_min:-348.4375,x_max:24.5,ha:25,o:"m -330 155 b -322 156 -329 156 -326 156 b -315 156 -319 156 -317 156 b -298 147 -311 155 -308 154 b -19 30 -224 98 -122 55 l 2 26 b 24 -1 17 22 24 13 b 2 -27 24 -15 17 -23 l -19 -31 b -298 -148 -122 -56 -224 -99 b -322 -158 -313 -158 -315 -158 b -348 -131 -338 -158 -348 -145 b -344 -117 -348 -127 -347 -122 b -328 -104 -341 -112 -338 -111 b -127 -8 -269 -65 -202 -33 b -106 0 -115 -4 -106 -1 b -127 6 -106 0 -115 2 b -328 102 -202 31 -269 63 b -344 116 -338 109 -341 111 b -348 130 -347 120 -348 124 b -330 155 -348 141 -341 152 "},v43:{x_min:-442.359375,x_max:441,ha:450,o:"m -31 487 b -1 488 -21 488 -10 488 b 434 104 216 488 397 330 b 441 27 438 79 441 47 b 439 12 441 20 439 15 b 419 0 435 4 427 0 b 404 5 413 0 408 1 b 398 30 400 11 398 13 b 0 351 390 213 213 351 b -59 348 -20 351 -39 349 b -400 30 -251 324 -393 191 b -405 5 -400 13 -401 11 b -420 0 -409 1 -415 0 b -441 12 -428 0 -436 4 b -442 27 -441 15 -442 20 b -435 104 -442 47 -439 79 b -31 487 -401 316 -235 474 m -13 131 b -1 133 -9 133 -5 133 b 51 105 19 133 39 123 b 61 70 58 95 61 83 b 51 34 61 58 58 45 b -1 6 39 16 19 6 b -46 27 -17 6 -34 13 b -62 69 -57 38 -62 54 b -13 131 -62 98 -44 124 "},v44:{x_min:-21.78125,x_max:251.8125,ha:257,o:"m -8 631 b -1 632 -6 632 -4 632 b 19 620 8 632 16 628 b 20 383 20 616 20 616 l 20 148 l 21 151 b 137 199 59 183 99 199 b 182 191 152 199 167 197 b 251 84 227 176 251 134 b 228 0 251 58 243 29 b 100 -142 206 -40 178 -72 l 23 -215 b 0 -229 9 -229 6 -229 b -20 -216 -9 -229 -17 -224 l -21 -212 l -21 201 l -21 616 l -20 620 b -8 631 -17 624 -13 630 m 110 131 b 96 133 106 133 100 133 b 89 133 93 133 91 133 b 24 87 63 129 40 113 l 20 80 l 20 -37 l 20 -156 l 23 -152 b 144 81 96 -72 144 20 l 144 83 b 110 131 144 113 134 126 "},v45:{x_min:-402.890625,x_max:401.53125,ha:410,o:"m -10 273 b -4 274 -9 273 -6 274 b 16 262 4 274 12 269 b 17 158 17 259 17 259 l 17 56 l 62 112 b 117 174 110 172 110 172 b 122 174 118 174 119 174 b 132 173 125 174 129 173 b 295 11 134 172 171 134 l 307 -1 l 336 34 b 374 76 366 72 368 74 b 381 77 375 77 378 77 b 401 56 392 77 401 68 b 400 48 401 54 401 51 b 223 -172 397 41 230 -166 b 210 -176 220 -174 215 -176 b 201 -174 206 -176 204 -176 b 112 -87 198 -173 178 -152 b 27 0 65 -38 27 0 b 21 -6 27 0 24 -2 l 17 -12 l 17 -147 b 17 -210 17 -173 17 -194 b 10 -292 17 -297 16 -287 b -2 -299 6 -297 2 -299 b -21 -287 -10 -299 -19 -295 b -24 -174 -23 -284 -23 -284 l -24 -63 l -66 -117 b -121 -176 -110 -170 -114 -176 b -125 -176 -122 -176 -123 -176 b -296 -12 -134 -174 -125 -184 l -308 0 l -337 -34 b -375 -77 -367 -73 -370 -76 b -382 -79 -377 -79 -379 -79 b -402 -58 -393 -79 -402 -69 b -401 -49 -402 -55 -402 -52 b -224 170 -398 -43 -231 165 b -212 174 -221 173 -216 174 b -202 173 -208 174 -205 174 b -39 11 -200 172 -151 122 l -28 -1 l -25 1 l -24 4 l -24 130 b -23 260 -24 256 -24 258 b -10 273 -20 266 -16 270 "},v46:{x_min:0,x_max:627.46875,ha:640,o:"m 306 190 b 314 191 308 191 311 191 b 326 184 318 191 322 190 l 336 173 b 510 52 377 127 442 80 b 515 49 513 51 515 49 b 611 16 537 40 579 24 b 627 0 624 13 627 9 b 607 -18 627 -11 624 -13 b 330 -181 490 -49 389 -109 b 314 -192 323 -190 319 -192 b 306 -191 311 -192 308 -192 b 294 -177 302 -188 302 -188 b 257 -140 287 -170 265 -148 b 19 -18 193 -84 114 -44 b 0 0 2 -13 0 -11 b 16 16 0 9 2 13 b 110 49 47 24 89 40 b 117 52 111 49 114 51 b 145 65 126 56 130 58 b 281 163 200 93 245 124 b 300 186 288 170 291 174 b 306 190 300 187 303 188 m 317 137 b 313 142 315 141 314 142 b 308 137 313 142 311 141 b 161 4 276 84 220 33 b 155 0 159 1 155 0 b 163 -4 155 0 159 -2 b 308 -138 220 -34 276 -84 b 313 -142 311 -141 313 -142 b 317 -138 314 -142 315 -141 b 464 -4 351 -84 406 -34 b 470 0 468 -2 470 0 b 464 4 470 0 468 1 b 317 137 406 33 351 84 "},v47:{x_min:-24.5,x_max:315.78125,ha:322,o:"m -24 -145 l -24 -5 l -20 -5 b 1 -26 -10 -5 -6 -9 b 175 -241 31 -86 96 -166 b 314 -548 259 -323 304 -420 b 315 -589 315 -555 315 -571 b 314 -630 315 -606 315 -623 b 298 -730 311 -664 306 -699 l 295 -742 l 296 -748 b 314 -850 304 -778 311 -813 b 315 -892 315 -857 315 -874 b 314 -932 315 -909 315 -925 b 298 -1032 311 -967 306 -1002 l 295 -1045 l 296 -1050 b 314 -1153 304 -1081 311 -1115 b 315 -1193 315 -1160 315 -1177 b 314 -1235 315 -1211 315 -1228 b 217 -1526 306 -1338 270 -1444 b 201 -1533 213 -1532 208 -1533 b 182 -1522 193 -1533 185 -1529 b 179 -1514 181 -1518 179 -1517 b 189 -1489 179 -1508 182 -1501 b 266 -1217 240 -1403 266 -1308 b 262 -1156 266 -1196 265 -1177 b 110 -907 247 -1043 190 -950 b 0 -889 87 -895 50 -889 l -1 -889 l -24 -889 l -24 -749 l -24 -610 l -20 -610 b 1 -631 -10 -610 -6 -614 b 175 -846 31 -691 96 -771 b 259 -956 213 -884 236 -914 b 265 -966 262 -961 264 -966 b 265 -966 265 -966 265 -966 b 265 -953 265 -964 265 -959 b 266 -920 266 -943 266 -932 b 262 -853 266 -898 265 -873 b 110 -605 247 -741 190 -648 b 0 -587 87 -592 50 -587 l -1 -587 l -24 -587 l -24 -448 l -24 -308 l -20 -308 b 1 -328 -10 -308 -6 -312 b 175 -544 31 -388 96 -469 b 259 -655 213 -581 236 -612 b 265 -663 262 -659 264 -663 b 265 -663 265 -663 265 -663 b 265 -650 265 -663 265 -657 b 266 -617 266 -641 266 -630 b 262 -551 266 -595 265 -570 b 110 -303 247 -438 190 -345 b 0 -284 87 -290 50 -284 l -1 -284 l -24 -284 l -24 -145 "},v49:{x_min:0,x_max:630.203125,ha:643,o:"m 308 204 b 314 205 310 205 313 205 b 326 201 319 205 323 204 b 355 154 328 199 338 180 b 401 83 362 142 392 95 l 409 72 b 431 41 412 66 424 49 b 619 -174 498 -51 570 -134 b 630 -192 626 -180 630 -186 b 626 -202 630 -195 628 -199 b 616 -206 623 -205 620 -206 b 552 -188 608 -206 592 -202 b 310 -155 488 -169 392 -155 b 268 -156 295 -155 281 -155 b 77 -188 197 -161 126 -173 b 13 -206 35 -202 20 -206 b 9 -206 12 -206 10 -206 b 0 -191 2 -202 0 -197 b 8 -176 0 -186 2 -180 b 204 49 58 -136 138 -43 l 220 72 l 227 83 b 295 188 245 108 281 166 b 308 204 299 197 304 202 m 315 147 b 314 147 315 147 314 147 b 314 147 314 147 314 147 b 306 129 314 145 310 138 l 296 105 b 281 72 292 97 284 77 l 274 56 b 181 -123 247 -4 212 -72 l 174 -134 l 176 -133 b 314 -123 215 -127 272 -123 b 451 -133 356 -123 413 -127 l 454 -134 l 449 -123 b 353 56 417 -72 381 -4 l 347 72 b 332 105 344 77 336 97 l 322 129 b 315 147 318 138 315 145 "},v4a:{x_min:70.78125,x_max:378.390625,ha:315,o:"m 246 373 b 254 373 249 373 251 373 b 372 324 303 373 360 351 b 378 302 377 317 378 309 b 338 251 378 278 362 255 b 328 249 334 249 332 249 b 283 294 303 249 283 270 b 288 315 283 301 284 308 b 289 319 289 317 289 319 b 289 319 289 319 289 319 b 283 320 289 320 287 320 b 270 322 279 322 274 322 b 206 288 242 322 215 308 b 206 283 206 287 206 285 b 257 223 206 267 230 238 b 284 206 272 213 277 210 b 351 90 328 173 351 130 b 340 47 351 74 348 59 b 205 -30 314 -2 264 -30 b 182 -29 198 -30 190 -30 b 84 15 147 -24 103 -5 b 70 48 74 24 70 36 b 108 99 70 70 85 94 b 121 102 112 101 117 102 b 167 56 147 102 167 80 b 159 31 167 48 164 40 l 156 26 l 157 26 b 190 20 167 22 178 20 b 220 26 201 20 212 22 b 258 65 243 34 258 51 b 257 70 258 66 258 69 b 204 126 249 94 234 109 b 114 258 148 158 114 209 b 125 302 114 273 118 288 b 246 373 147 342 193 370 "},v4b:{x_min:0,x_max:503.609375,ha:514,o:"m 274 430 b 277 430 276 430 277 430 b 310 394 296 430 310 415 b 308 383 310 391 308 387 b 306 367 307 381 307 374 b 236 120 298 305 272 210 b 40 -273 189 -5 125 -134 b 20 -287 35 -283 27 -287 b 5 -281 14 -287 9 -285 b 0 -267 1 -277 0 -273 b 9 -242 0 -262 2 -255 b 246 395 137 -12 232 242 b 274 430 249 416 257 427 m 468 430 b 472 430 469 430 470 430 b 503 394 490 430 503 415 b 502 383 503 391 503 387 b 499 367 502 381 500 374 b 431 120 491 305 465 210 b 234 -273 382 -5 318 -134 b 213 -287 228 -283 220 -287 b 198 -281 208 -287 202 -285 b 193 -267 194 -277 193 -273 b 202 -242 193 -262 196 -255 b 439 395 330 -12 426 242 b 468 430 442 416 451 427 "},v4d:{x_min:-311.6875,x_max:310.328125,ha:317,o:"m -9 388 b -2 390 -8 390 -5 390 b 5 388 1 390 4 390 b 19 378 10 387 16 383 b 23 333 23 371 23 371 b 24 298 23 299 24 298 b 81 276 34 298 65 285 b 213 91 145 240 190 177 b 224 24 217 76 224 36 b 257 24 224 24 235 24 b 299 19 292 24 292 24 b 310 -1 306 15 310 6 b 299 -23 310 -11 306 -19 b 257 -27 292 -27 292 -27 b 224 -29 235 -27 224 -29 b 213 -95 224 -40 217 -80 b 81 -280 190 -181 145 -244 b 24 -301 65 -290 34 -301 b 23 -335 24 -301 23 -303 l 23 -340 b 17 -381 23 -374 23 -374 b -1 -391 13 -388 5 -391 b -21 -381 -9 -391 -17 -388 b -27 -340 -27 -374 -27 -374 l -27 -335 b -28 -301 -27 -303 -27 -301 b -85 -280 -38 -301 -69 -290 b -217 -95 -149 -244 -194 -181 b -228 -29 -221 -80 -228 -40 b -259 -27 -228 -29 -238 -27 b -300 -23 -294 -27 -294 -27 b -311 -2 -307 -19 -311 -11 b -294 23 -311 8 -304 19 b -259 24 -291 23 -284 24 b -228 24 -239 24 -228 24 b -217 91 -228 36 -221 76 b -85 276 -194 177 -149 240 b -28 298 -69 285 -38 298 b -27 333 -27 298 -27 299 b -27 371 -27 362 -27 369 b -9 388 -24 378 -17 385 m -27 136 b -28 247 -27 197 -28 247 b -61 216 -31 247 -53 226 b -123 33 -95 172 -121 98 l -125 24 l -76 24 l -27 24 l -27 136 m 29 242 b 24 247 27 245 24 247 b 23 136 24 247 23 197 l 23 24 l 72 24 l 121 24 l 119 33 b 29 242 115 116 77 206 m -27 -140 l -27 -27 l -76 -27 l -125 -27 l -123 -36 b -61 -220 -121 -102 -95 -176 b -28 -251 -53 -230 -31 -251 b -27 -140 -28 -251 -27 -201 m 119 -36 l 121 -27 l 72 -27 l 23 -27 l 23 -140 b 24 -251 23 -201 24 -251 b 57 -220 27 -251 49 -230 b 119 -36 91 -176 117 -102 "},v4e:{x_min:0,x_max:239.5625,ha:244,o:"m 10 460 b 20 462 13 462 14 462 b 39 449 28 462 35 458 l 40 446 l 40 326 b 40 205 40 259 40 205 b 127 227 40 205 80 215 b 220 249 196 244 213 249 b 227 247 224 249 225 248 b 238 237 231 245 235 241 l 239 233 l 239 -106 l 239 -448 l 238 -451 b 219 -463 234 -459 225 -463 b 198 -451 210 -463 202 -459 l 197 -448 l 197 -324 b 197 -201 197 -248 197 -201 b 110 -223 196 -201 157 -210 b 17 -245 42 -240 24 -245 b 10 -242 13 -245 13 -244 b 0 -233 6 -241 2 -237 l 0 -230 l 0 108 l 0 446 l 0 449 b 10 460 2 453 6 458 m 197 22 b 197 70 197 41 197 58 b 196 116 197 113 197 116 l 196 116 b 118 97 196 116 160 106 l 40 77 l 40 -18 b 40 -112 40 -69 40 -112 l 119 -93 l 197 -73 l 197 22 "},v51:{x_min:-1.359375,x_max:455.96875,ha:465,o:"m 352 541 b 357 542 353 542 355 542 b 377 530 364 542 372 537 l 378 526 l 378 394 l 379 262 l 404 266 b 436 270 420 269 430 270 b 450 265 443 270 446 269 b 455 220 455 259 455 260 l 455 208 l 455 161 l 454 156 b 411 140 449 147 447 147 b 378 133 393 137 379 134 b 378 68 378 133 378 106 b 378 22 378 54 378 38 l 379 -87 l 404 -83 b 436 -79 420 -80 430 -79 b 450 -84 443 -79 446 -80 b 455 -129 455 -90 455 -88 l 455 -141 l 455 -188 l 454 -192 b 413 -209 449 -202 447 -202 b 382 -215 398 -212 383 -215 l 378 -215 l 378 -345 l 378 -380 b 375 -485 378 -484 378 -480 b 357 -494 371 -491 364 -494 b 340 -485 351 -494 344 -491 b 336 -383 337 -480 336 -484 l 336 -349 l 336 -223 l 334 -223 b 291 -231 334 -223 314 -227 l 247 -240 l 247 -371 l 246 -503 l 245 -506 b 225 -519 242 -514 234 -519 b 206 -506 219 -519 210 -514 l 205 -503 l 205 -376 l 205 -248 l 160 -256 l 115 -265 l 115 -396 l 115 -527 l 114 -531 b 95 -544 110 -539 102 -544 b 76 -531 87 -544 78 -539 l 73 -527 l 73 -399 b 73 -273 73 -330 73 -273 b 49 -277 73 -273 61 -274 b 17 -281 32 -280 24 -281 b 4 -276 10 -281 8 -280 b -1 -234 0 -269 -1 -272 b 0 -219 -1 -229 0 -224 l 0 -170 l 1 -167 b 10 -158 2 -163 6 -159 b 49 -149 13 -156 16 -155 l 73 -145 l 73 -34 b 73 76 73 26 73 76 b 49 72 73 76 61 74 b 17 68 32 69 24 68 b 4 73 10 68 8 69 b -1 115 0 80 -1 77 b 0 130 -1 120 0 124 l 0 179 l 1 181 b 10 191 2 186 6 190 b 49 199 13 192 16 194 l 73 204 l 73 338 b 73 374 73 352 73 365 b 77 483 73 484 73 477 b 95 492 81 489 88 492 b 111 483 100 492 107 489 b 115 378 115 477 115 483 l 115 342 b 117 212 115 223 115 212 b 204 229 117 212 200 227 l 205 229 l 205 365 l 205 502 l 206 505 b 225 517 210 513 219 517 b 245 505 234 517 242 513 l 246 502 l 247 369 l 247 237 l 249 237 b 336 254 253 238 336 254 b 337 390 336 254 337 302 l 337 526 l 338 530 b 352 541 341 535 347 539 m 336 15 b 336 126 336 102 336 126 l 336 126 b 291 117 336 126 315 122 l 247 109 l 247 -1 l 247 -112 l 249 -112 b 336 -95 253 -111 336 -95 b 336 15 336 -95 336 -56 m 205 -120 b 205 -55 205 -120 205 -93 b 205 -9 205 -41 205 -24 l 205 101 l 160 93 l 115 84 l 115 -26 b 115 -83 115 -49 115 -69 b 117 -137 115 -133 115 -137 b 205 -120 118 -137 204 -120 "},v52:{x_min:-10.890625,x_max:298.078125,ha:294,o:"m 138 473 b 142 474 140 473 141 474 b 164 459 148 474 153 470 b 191 402 183 442 191 423 b 181 353 191 388 187 371 b 178 349 179 352 178 349 b 179 348 178 348 179 348 b 185 349 181 348 182 348 b 255 376 210 355 234 363 b 272 381 264 381 266 381 b 298 355 287 381 298 370 b 288 330 298 348 298 345 b 171 34 238 254 194 141 b 166 13 168 16 168 16 b 144 1 161 5 152 1 b 121 15 134 1 125 5 b 115 33 119 18 117 24 b 0 330 91 145 49 252 b -10 355 -9 345 -10 348 b 13 381 -10 371 0 381 b 31 376 19 381 25 380 b 132 345 61 358 103 345 l 136 345 l 137 355 b 145 378 138 359 142 370 b 152 415 149 394 152 405 b 137 452 152 427 148 438 b 133 464 134 458 133 460 b 138 473 133 467 134 470 "},v53:{x_min:0,x_max:902.421875,ha:921,o:"m 17 240 b 24 241 19 241 21 241 b 32 240 28 241 31 241 b 46 229 38 238 43 234 b 50 88 50 223 50 237 b 50 -1 50 63 50 34 b 50 -90 50 -36 50 -65 b 46 -231 50 -238 50 -224 b 25 -242 42 -238 34 -242 b 0 -224 14 -242 4 -235 b 0 2 0 -222 0 -108 b 0 223 0 112 0 220 b 17 240 2 230 9 237 m 110 240 b 118 241 111 241 114 241 b 126 240 121 241 123 241 b 142 223 133 237 140 230 b 144 123 144 220 144 205 b 144 29 144 45 144 29 b 144 29 144 29 144 29 b 393 183 166 106 264 167 b 450 186 412 184 431 186 b 756 29 600 186 732 120 b 756 29 756 29 756 29 b 758 123 758 29 758 45 b 760 227 758 226 758 223 b 784 241 766 237 774 241 b 804 229 792 241 800 237 b 809 88 808 223 809 237 l 809 -1 l 809 -90 b 804 -231 809 -238 808 -224 b 784 -242 800 -238 792 -242 b 762 -231 775 -242 766 -238 b 758 -124 756 -224 758 -231 b 756 -30 758 -47 758 -30 b 756 -30 756 -30 756 -30 b 509 -184 736 -108 637 -169 b 450 -187 488 -187 469 -187 b 144 -30 300 -187 168 -122 b 144 -30 144 -30 144 -30 b 144 -124 144 -30 144 -47 b 140 -231 144 -231 144 -224 b 118 -242 134 -238 126 -242 b 92 -224 107 -242 96 -235 b 92 2 92 -222 92 -108 b 92 223 92 112 92 220 b 110 240 95 230 102 237 m 432 161 b 413 162 426 162 420 162 b 313 41 351 162 313 109 b 347 -73 313 5 323 -34 b 487 -163 385 -133 439 -163 b 578 -97 526 -163 562 -142 b 588 -43 585 -80 588 -62 b 432 161 588 47 518 147 m 868 240 b 876 241 869 241 872 241 b 884 240 879 241 882 241 b 898 229 890 238 894 234 b 902 88 902 223 902 237 l 902 -1 l 902 -90 b 898 -231 902 -238 902 -224 b 876 -242 892 -238 884 -242 b 852 -224 865 -242 854 -235 b 850 2 850 -222 850 -108 b 852 223 850 112 850 220 b 868 240 853 230 860 237 "},v54:{x_min:-24.5,x_max:317.140625,ha:324,o:"m -24 -161 l -24 -5 l -20 -5 b 0 -24 -9 -5 -2 -12 b 171 -315 21 -124 84 -233 b 317 -660 268 -406 317 -531 b 187 -1014 317 -782 274 -909 b 161 -1034 172 -1034 171 -1034 b 141 -1013 149 -1034 141 -1025 b 152 -991 141 -1004 142 -1002 b 266 -682 228 -899 266 -788 b 174 -430 266 -588 236 -498 b -23 -317 136 -388 66 -348 b -24 -161 -23 -316 -24 -285 "},v55:{x_min:0,x_max:551.25,ha:563,o:"m 289 644 b 304 645 294 645 299 645 b 404 566 349 645 392 613 b 406 541 405 557 406 549 b 379 471 406 514 397 489 l 377 467 l 382 470 b 509 591 438 485 485 531 b 513 601 510 595 513 599 b 530 609 518 607 524 609 b 551 588 540 609 551 602 b 200 -605 551 584 204 -599 b 182 -616 197 -612 190 -616 b 163 -602 174 -616 166 -610 b 161 -598 161 -601 161 -601 b 217 -402 161 -589 170 -562 b 272 -213 247 -298 272 -213 b 272 -213 272 -213 272 -213 b 264 -219 272 -213 268 -216 b 140 -262 227 -247 182 -262 b 36 -226 102 -262 65 -249 b 0 -145 12 -206 0 -176 b 17 -84 0 -124 5 -104 b 103 -38 38 -54 70 -38 b 191 -91 137 -38 172 -56 b 205 -141 201 -106 205 -124 b 178 -212 205 -167 196 -194 l 175 -215 l 182 -213 b 307 -93 236 -198 284 -151 b 372 129 308 -88 372 127 b 372 129 372 129 372 129 b 364 122 372 129 368 126 b 240 80 328 94 283 80 b 137 115 202 80 166 91 b 99 195 112 136 99 165 b 118 256 99 217 106 238 b 204 303 138 287 171 303 b 292 249 238 303 273 285 b 306 199 302 234 306 217 b 279 129 306 173 296 148 l 276 126 l 281 127 b 408 248 336 142 385 190 b 473 470 409 254 473 469 b 473 470 473 470 473 470 b 465 464 473 470 469 467 b 341 421 428 435 383 421 b 236 458 303 421 266 433 b 200 537 212 478 200 508 b 289 644 200 585 234 635 "},v58:{x_min:-21.78125,x_max:367.5,ha:375,o:"m 259 1553 b 265 1553 261 1553 264 1553 b 288 1540 272 1553 277 1550 b 367 1351 340 1493 367 1424 b 336 1221 367 1308 357 1263 l 332 1211 l 333 1208 b 367 1077 356 1170 367 1124 b 336 945 367 1032 357 986 l 332 935 l 333 932 b 367 800 356 893 367 848 b 336 669 367 756 357 710 l 332 659 l 333 656 b 367 523 356 617 367 571 b 345 412 367 485 360 446 b 231 273 322 356 284 310 b -1 19 121 195 27 93 b -17 4 -4 11 -10 5 l -21 4 l -21 134 l -21 265 l -17 265 b 133 291 20 265 96 278 b 318 537 245 328 318 433 b 307 603 318 559 315 582 b 303 614 304 612 304 614 b 298 609 302 614 300 613 b 231 549 281 589 258 567 b -1 295 121 471 27 369 b -17 280 -4 287 -10 281 l -21 280 l -21 410 l -21 541 l -17 541 b 133 567 20 541 96 555 b 318 813 245 605 318 709 b 307 880 318 835 315 859 b 303 891 304 888 304 891 b 298 885 302 891 300 888 b 231 825 281 866 258 843 b -1 571 121 748 27 645 b -17 556 -4 563 -10 557 l -21 556 l -21 687 l -21 817 l -17 817 b 133 843 20 817 96 830 b 318 1089 245 881 318 985 b 307 1156 318 1111 315 1134 b 303 1167 304 1164 304 1167 b 298 1161 302 1167 300 1164 b 231 1102 281 1140 258 1120 b -1 848 121 1024 27 921 b -17 832 -4 839 -10 834 l -21 832 l -21 963 l -21 1093 l -17 1093 b 114 1113 12 1093 78 1103 b 313 1314 215 1142 289 1218 b 318 1364 317 1331 318 1347 b 255 1511 318 1422 295 1478 b 243 1532 247 1519 243 1525 b 259 1553 243 1540 250 1550 "},v59:{x_min:0,x_max:464.140625,ha:474,o:"m 0 0 l 0 347 l 76 347 l 153 347 l 153 0 l 153 -348 l 76 -348 l 0 -348 l 0 0 m 308 -1 l 308 347 l 386 347 l 464 347 l 464 -1 l 464 -348 l 386 -348 l 308 -348 l 308 -1 "},v5a:{x_min:-171.5,x_max:170.140625,ha:174,o:"m -6 566 b 0 567 -5 567 -2 567 b 14 556 6 567 12 563 b 92 285 14 555 50 433 b 170 13 166 33 170 19 b 168 13 170 13 170 13 b 161 1 168 8 167 4 l 159 0 l 122 0 l 84 0 l 81 1 b 21 195 76 5 78 -5 b -32 381 -8 297 -32 381 b -87 197 -32 381 -57 298 b -141 8 -115 94 -140 9 b -155 0 -142 2 -149 0 b -171 15 -163 0 -171 5 b -14 556 -171 18 -24 528 b -6 566 -14 560 -10 564 "},v5b:{x_min:-441,x_max:439.640625,ha:449,o:"m -428 -2 b -421 0 -427 -1 -424 0 b -406 -6 -416 0 -409 -2 b -400 -31 -401 -12 -400 -15 b -1 -352 -392 -215 -215 -352 b 58 -349 19 -352 38 -351 b 398 -31 250 -326 392 -192 b 404 -6 398 -15 400 -12 b 419 -1 408 -2 413 -1 b 439 -13 427 -1 435 -5 b 439 -29 439 -16 439 -22 b 434 -105 439 -48 438 -80 b 0 -489 397 -333 213 -489 b -68 -484 -23 -489 -44 -488 b -441 -36 -280 -452 -436 -263 b -441 -30 -441 -34 -441 -31 b -428 -2 -441 -11 -439 -5 m -13 -9 b -1 -8 -9 -8 -5 -8 b 50 -36 19 -8 39 -19 b 61 -72 57 -47 61 -59 b 50 -106 61 -84 57 -97 b -1 -134 39 -124 19 -134 b -46 -115 -17 -134 -34 -129 b -62 -72 -57 -102 -62 -87 b -13 -9 -62 -44 -44 -16 "},v5c:{x_min:0,x_max:447.8125,ha:457,o:"m 0 -87 l 0 0 l 223 0 l 447 0 l 447 -87 l 447 -174 l 223 -174 l 0 -174 l 0 -87 "},v5d:{x_min:-1.359375,x_max:592.078125,ha:604,o:"m 280 692 b 295 694 283 692 289 694 b 310 692 300 694 307 692 b 357 630 340 684 357 657 b 336 580 357 612 351 594 b 311 538 321 566 311 549 b 352 492 311 512 330 492 b 366 495 357 492 362 492 b 397 553 390 503 397 517 b 415 603 397 576 402 591 b 460 623 427 617 443 623 b 509 599 479 623 498 614 b 522 559 518 587 522 573 b 494 506 522 538 513 519 b 451 495 481 498 473 496 b 415 488 432 495 426 494 b 394 449 404 483 394 464 b 394 448 394 448 394 448 l 394 440 l 397 433 b 428 409 404 420 413 413 b 438 408 431 408 435 408 b 479 431 450 408 462 415 b 528 455 495 448 510 455 b 548 452 534 455 541 453 b 592 391 577 442 592 416 b 549 331 592 365 577 340 b 528 327 541 328 534 327 b 479 351 510 327 495 335 b 438 374 464 367 450 374 b 417 369 431 374 424 373 b 394 333 402 360 394 348 b 400 312 394 326 396 319 b 451 287 408 294 420 288 b 513 258 484 285 499 278 b 522 223 519 247 522 234 b 461 159 522 190 496 159 b 449 161 457 159 453 159 b 397 229 416 167 397 191 b 366 288 397 265 390 278 b 352 290 362 290 357 290 b 315 262 336 290 321 280 b 311 245 313 256 311 251 b 334 204 311 233 318 220 b 355 170 348 190 351 184 b 357 152 356 166 357 159 b 355 136 357 147 356 140 b 295 88 345 104 321 88 b 232 152 264 88 232 112 b 255 204 232 174 238 186 b 279 244 273 222 279 231 l 279 245 b 238 290 279 270 259 290 b 224 288 234 290 228 290 b 193 229 200 278 193 265 b 141 161 193 191 174 167 b 129 159 137 159 133 159 b 68 223 93 159 68 190 b 77 258 68 234 70 247 b 138 287 91 278 106 285 b 185 302 166 287 175 291 b 196 333 193 312 196 323 b 174 369 196 347 187 360 b 152 374 166 373 159 374 b 111 351 140 374 126 367 b 62 327 95 335 80 327 b 51 328 58 327 54 327 b -1 391 16 334 -1 363 b 53 455 -1 420 17 449 b 62 455 57 455 59 455 b 111 431 80 455 95 448 b 152 408 127 415 140 408 b 161 409 155 408 159 408 b 193 433 176 413 186 420 l 196 440 l 196 448 b 196 451 196 449 196 449 b 190 471 196 459 194 463 b 137 495 182 489 167 495 l 134 495 l 134 495 b 68 560 95 495 68 521 b 129 623 68 596 95 623 b 144 621 134 623 138 623 b 193 553 175 614 193 589 b 224 495 193 517 200 503 b 238 492 228 492 234 492 b 279 538 259 492 279 512 b 254 580 279 549 269 566 b 232 630 239 594 232 612 b 280 692 232 657 250 684 m 307 456 b 295 458 303 458 299 458 b 230 391 258 458 230 426 b 236 360 230 381 231 371 b 295 324 249 337 272 324 b 353 360 318 324 341 337 b 360 391 357 370 360 381 b 307 456 360 421 340 451 "},v60:{x_min:-590.71875,x_max:589.359375,ha:601,o:"m -367 173 b -362 174 -366 174 -364 174 b -351 173 -357 174 -353 173 b -262 86 -348 172 -328 151 b -176 0 -216 37 -176 0 b -107 84 -176 0 -145 37 b -31 174 -36 173 -38 172 b -25 174 -29 174 -28 174 b -16 173 -23 174 -19 173 b 72 86 -13 172 6 151 b 157 0 119 37 157 0 b 227 84 159 0 189 37 b 303 174 298 173 296 172 b 308 174 304 174 307 174 b 318 173 313 174 317 173 b 481 11 322 172 357 134 l 494 -1 l 522 34 b 560 76 553 72 555 74 b 567 77 563 77 564 77 b 589 56 579 77 589 68 b 586 48 589 54 588 51 b 411 -172 583 41 416 -166 b 397 -176 406 -174 401 -176 b 387 -174 393 -176 390 -176 b 299 -87 386 -173 366 -152 b 213 0 253 -38 213 0 b 144 -86 213 0 182 -38 b 68 -174 73 -174 74 -173 b 62 -176 66 -176 65 -176 b 53 -174 59 -176 55 -174 b -35 -87 50 -173 29 -152 b -121 0 -83 -38 -121 0 b -190 -86 -122 0 -152 -38 b -266 -174 -261 -174 -259 -173 b -272 -176 -268 -176 -270 -176 b -281 -174 -276 -176 -280 -174 b -371 -86 -284 -173 -304 -152 b -457 0 -417 -38 -457 0 l -457 0 b -477 -26 -457 0 -470 -16 b -548 -227 -524 -88 -548 -161 b -536 -303 -548 -254 -544 -280 b -533 -317 -534 -309 -533 -313 b -553 -338 -533 -330 -541 -338 b -577 -315 -566 -338 -571 -333 b -590 -227 -586 -287 -590 -258 b -518 -9 -590 -154 -564 -77 b -465 56 -509 2 -504 8 l -402 134 b -367 173 -375 169 -372 172 "},v62:{x_min:46.28125,x_max:669.671875,ha:563,o:"m 183 376 b 189 376 185 376 187 376 b 212 374 197 376 208 376 b 265 337 234 369 253 355 b 274 317 268 331 273 320 b 274 316 274 317 274 316 b 280 323 276 316 276 319 b 311 358 288 337 299 348 b 319 366 315 360 318 365 b 356 376 326 373 340 376 b 382 371 364 376 374 374 b 428 337 400 366 417 352 b 436 317 431 331 436 320 b 438 316 436 317 436 316 b 442 323 438 316 439 319 b 475 358 451 337 462 348 b 483 366 477 360 481 365 b 518 376 488 373 503 376 b 544 373 528 376 536 376 b 604 285 579 360 604 326 b 597 249 604 273 601 258 b 543 63 596 247 544 70 b 541 54 543 61 541 55 b 540 44 540 51 540 47 b 552 23 540 33 545 23 b 552 23 552 23 552 23 b 647 126 586 29 627 72 b 658 138 651 136 653 138 b 660 138 660 138 660 138 b 669 129 666 137 669 136 b 654 88 669 122 665 109 b 562 -12 631 43 602 9 l 549 -19 b 521 -27 540 -24 530 -27 b 447 30 490 -27 458 -4 b 443 58 445 38 443 48 b 450 93 443 72 446 84 b 504 278 453 97 504 272 b 507 288 506 283 506 287 b 509 298 507 292 509 295 b 491 326 509 310 502 320 b 487 327 490 327 488 327 b 479 324 484 327 483 326 b 441 270 462 316 443 288 b 435 249 441 265 436 254 b 398 127 434 248 419 195 b 362 4 379 61 362 5 b 328 -1 359 -1 362 -1 b 314 -1 323 -1 319 -1 b 302 -1 310 -1 306 -1 b 266 4 266 -1 269 -1 b 265 6 265 5 265 5 b 303 144 265 13 272 34 b 343 278 325 216 343 276 b 344 288 343 281 344 285 b 345 298 345 291 345 295 b 330 326 345 310 340 320 b 323 327 328 327 325 327 b 317 324 322 327 321 326 b 279 270 300 316 281 288 b 273 249 279 265 274 254 b 236 127 272 248 255 195 b 200 4 216 61 200 5 b 164 -1 197 -1 198 -1 b 151 -1 161 -1 156 -1 b 140 -1 147 -1 142 -1 b 103 4 104 -1 106 -1 b 103 6 103 5 103 5 b 141 144 103 13 108 34 b 181 278 161 216 179 276 b 182 288 181 281 181 285 b 183 298 182 291 183 295 b 168 324 183 310 178 320 b 160 327 166 326 163 327 b 141 320 156 327 151 324 b 69 230 112 305 85 272 b 57 215 65 217 62 215 b 55 215 57 215 55 215 b 46 224 49 215 46 217 b 59 260 46 231 50 242 b 151 363 81 306 112 341 b 161 369 155 365 160 367 b 183 376 166 371 174 374 "},v68:{x_min:-597.53125,x_max:596.171875,ha:608,o:"m -533 324 b -525 327 -530 326 -528 327 b -504 305 -514 327 -504 317 b -504 305 -504 305 -504 305 b -513 284 -504 299 -504 299 b -556 112 -541 226 -556 167 b -545 33 -556 84 -552 58 b -524 -20 -541 15 -532 -9 l -522 -23 l -491 15 l -413 111 b -355 174 -367 169 -363 174 b -351 174 -353 174 -352 174 b -254 86 -343 174 -348 179 b -168 -1 -208 37 -168 -1 b -100 84 -168 -1 -137 37 b -23 173 -28 173 -29 172 b -19 174 -21 174 -20 174 b -8 173 -14 174 -10 173 b 155 11 -5 172 43 123 l 166 -1 l 168 1 l 170 4 l 170 130 b 171 260 170 256 170 258 b 191 274 175 269 183 274 b 205 267 196 274 201 272 b 212 158 212 262 210 273 l 212 56 l 257 112 b 311 173 304 172 304 172 b 317 174 313 174 314 174 b 326 173 319 174 323 173 b 490 11 329 172 366 134 l 502 -1 l 530 34 b 568 76 560 72 563 74 b 575 77 570 77 573 77 b 596 56 586 77 596 68 b 594 48 596 54 596 51 b 417 -172 592 41 424 -166 b 405 -176 415 -174 409 -176 b 396 -174 401 -176 398 -176 b 307 -87 393 -173 372 -152 b 221 -1 259 -38 221 -1 b 216 -6 221 -1 219 -2 l 212 -12 l 212 -147 b 212 -210 212 -173 212 -194 b 205 -292 212 -297 210 -287 b 191 -299 201 -297 196 -299 b 172 -287 183 -299 175 -295 b 170 -174 171 -284 171 -284 l 170 -63 l 127 -117 b 73 -176 84 -170 80 -176 b 68 -176 72 -176 70 -176 b -27 -87 59 -174 65 -180 b -114 0 -74 -38 -112 0 b -182 -86 -114 0 -145 -38 b -258 -174 -253 -174 -253 -173 b -264 -176 -259 -176 -262 -176 b -274 -174 -268 -176 -272 -174 b -438 -11 -277 -173 -348 -102 l -449 0 l -479 -37 b -524 -80 -513 -80 -514 -80 l -524 -80 b -553 -52 -534 -80 -540 -74 b -597 109 -583 -8 -597 48 b -560 280 -597 165 -585 224 b -533 324 -548 310 -540 322 "},v6c:{x_min:-1.359375,x_max:193.28125,ha:197,o:"m 78 233 b 87 233 81 233 84 233 b 187 140 132 233 174 195 b 193 102 190 127 193 115 b 43 -113 193 22 136 -62 b 27 -119 36 -116 31 -119 b 19 -108 21 -119 19 -115 b 29 -97 19 -102 20 -101 b 102 13 73 -72 102 -27 b 92 51 102 26 98 40 l 91 54 l 84 54 b 8 104 53 54 21 74 b -1 142 1 116 -1 130 b 78 233 -1 187 31 227 "},v6d:{x_min:-590.71875,x_max:589.359375,ha:601,o:"m 544 335 b 553 337 548 337 551 337 b 575 313 563 337 570 330 b 589 226 583 285 589 256 b 517 8 589 152 563 76 b 464 -58 507 -4 503 -9 l 401 -136 b 362 -176 372 -172 370 -176 b 357 -176 360 -176 359 -176 b 261 -87 349 -174 355 -180 b 175 0 215 -38 175 0 b 106 -86 175 0 144 -38 b 29 -174 35 -174 36 -173 b 24 -176 28 -176 27 -176 b 14 -174 21 -176 17 -174 b -73 -87 12 -173 -8 -152 b -159 0 -121 -38 -159 0 b -228 -86 -160 0 -190 -38 b -304 -174 -299 -174 -298 -173 b -310 -176 -306 -176 -308 -176 b -319 -174 -314 -176 -318 -174 b -483 -12 -323 -173 -359 -137 l -495 0 l -524 -34 b -562 -77 -553 -73 -556 -76 b -568 -79 -564 -79 -566 -79 b -590 -58 -581 -79 -590 -69 b -588 -49 -590 -55 -589 -52 b -412 170 -585 -43 -417 165 b -398 174 -408 173 -402 174 b -389 173 -394 174 -392 174 b -300 86 -387 172 -366 151 b -215 -1 -254 37 -215 -1 b -145 84 -215 -1 -183 37 b -69 173 -74 173 -76 172 b -63 174 -68 174 -66 174 b -54 173 -61 174 -57 173 b 34 86 -51 172 -31 151 b 119 -1 81 37 119 -1 b 189 84 121 -1 151 37 b 265 173 259 173 258 172 b 270 174 266 174 269 174 b 280 173 274 174 279 173 b 370 84 283 172 303 151 b 455 -1 416 37 455 -1 l 455 -1 b 476 24 455 -1 469 15 b 547 226 522 87 547 159 b 534 302 547 252 543 278 b 532 317 533 308 532 313 b 544 335 532 326 536 333 "},v6f:{x_min:-80.3125,x_max:78.9375,ha:81,o:"m 63 191 b 69 192 65 192 66 192 b 77 188 72 192 76 191 b 78 183 78 187 78 186 b 74 158 78 179 77 172 l 66 115 b 9 -161 49 30 10 -158 b -10 -187 6 -172 -1 -181 b -34 -194 -17 -191 -25 -194 b -80 -147 -58 -194 -80 -174 b -80 -141 -80 -144 -80 -142 b 9 70 -80 -134 -73 -117 l 49 163 b 63 191 59 188 61 190 "},v70:{x_min:0,x_max:436.921875,ha:446,o:"m 213 190 b 217 191 215 191 216 191 b 231 184 223 191 228 188 b 249 154 240 167 246 159 b 419 18 292 91 348 45 b 436 -1 435 11 436 8 b 424 -16 436 -9 434 -13 b 308 -87 394 -26 340 -59 b 231 -186 276 -117 257 -142 b 219 -192 228 -191 225 -192 b 198 -174 209 -192 208 -191 b 47 -33 161 -113 110 -63 b 10 -16 34 -26 17 -19 b 0 -1 2 -13 0 -9 b 17 18 0 8 1 11 b 198 173 95 48 156 101 b 213 190 206 187 208 188 "},v72:{x_min:-423.3125,x_max:421.9375,ha:431,o:"m -262 197 b -247 197 -257 197 -253 197 b -118 162 -210 197 -163 184 b 40 45 -61 134 -13 98 b 277 -95 119 -33 200 -81 b 289 -97 281 -97 285 -97 b 378 0 332 -97 371 -55 b 378 11 378 4 378 6 b 302 83 378 55 345 83 b 242 66 283 83 262 77 b 208 56 231 59 219 56 b 148 120 175 56 148 81 b 201 186 148 151 164 172 b 261 198 220 194 240 198 b 420 45 341 198 411 136 b 421 22 421 37 421 29 b 245 -199 421 -93 338 -199 b 238 -198 243 -199 240 -199 b -44 -47 148 -194 50 -141 b -250 86 -114 22 -183 66 b -295 94 -270 91 -283 94 b -315 91 -302 94 -307 94 b -381 4 -356 81 -381 43 b -355 -56 -381 -18 -372 -40 b -298 -81 -338 -73 -319 -81 b -246 -68 -283 -81 -265 -77 b -212 -58 -234 -61 -223 -58 b -178 -69 -200 -58 -189 -62 b -151 -122 -160 -81 -151 -101 b -171 -167 -151 -138 -157 -155 b -239 -195 -185 -181 -213 -192 b -257 -197 -245 -197 -250 -197 b -423 -5 -352 -197 -423 -109 b -412 65 -423 16 -419 40 b -262 197 -389 137 -329 188 "},v74:{x_min:-206.890625,x_max:428.75,ha:438,o:"m 389 -351 b 394 -351 390 -351 393 -351 b 428 -385 413 -351 428 -367 b 428 -394 428 -388 428 -391 b 394 -428 426 -406 421 -410 l 332 -473 l 269 -516 l 205 -560 l 141 -603 l 77 -648 l 13 -692 l -50 -737 l -114 -780 l -145 -802 b -171 -813 -157 -810 -163 -813 b -175 -813 -172 -813 -174 -813 b -206 -777 -194 -811 -206 -795 b -202 -760 -206 -771 -205 -766 b -87 -675 -197 -752 -206 -757 l -34 -639 l 83 -557 l 145 -514 l 209 -470 l 272 -427 b 389 -351 375 -356 381 -352 "},v75:{x_min:-149.71875,x_max:148.359375,ha:151,o:"m -137 381 b -130 383 -134 383 -133 383 b -111 371 -122 383 -114 378 b -55 224 -110 370 -85 305 b 0 80 -25 145 -1 80 b 54 224 0 80 24 145 b 112 377 114 384 110 373 b 127 384 118 381 122 384 b 148 362 138 384 148 374 l 148 356 l 83 183 b 16 9 47 88 17 11 b -1 0 12 2 5 0 b -14 5 -5 0 -10 1 b -84 183 -19 9 -13 -6 l -149 356 l -149 362 b -137 381 -149 371 -145 378 "},v78:{x_min:0,x_max:193.28125,ha:197,o:"m 85 514 b 95 517 88 517 89 517 b 114 505 103 517 110 513 l 115 502 l 115 376 b 115 249 115 306 115 249 b 141 258 117 249 127 252 l 167 266 l 172 266 b 190 254 181 265 187 262 l 193 251 l 193 202 l 193 188 b 187 147 193 149 191 152 b 147 130 183 142 182 141 l 115 119 l 115 9 b 115 -99 115 -51 115 -99 b 141 -91 115 -99 127 -95 b 171 -81 166 -81 167 -81 l 171 -81 b 191 -94 181 -81 189 -87 b 193 -142 191 -97 193 -120 b 191 -195 193 -167 191 -194 b 125 -227 187 -205 187 -204 l 115 -230 l 115 -366 l 115 -503 l 114 -506 b 95 -519 110 -514 102 -519 b 74 -506 87 -519 78 -514 l 73 -503 l 73 -374 b 73 -245 73 -260 73 -245 b 73 -245 73 -245 73 -245 b 55 -252 72 -245 63 -249 l 32 -260 b 19 -263 27 -262 23 -263 b 4 -256 13 -263 8 -260 b 0 -215 0 -251 0 -254 b 0 -199 0 -210 0 -206 l 0 -152 l 1 -149 b 8 -140 2 -145 5 -141 b 42 -127 9 -140 24 -133 l 73 -116 l 73 -5 b 73 23 73 4 73 15 b 73 105 73 70 73 105 b 49 97 73 105 61 101 b 17 88 32 91 23 88 b 4 95 10 88 8 91 b 0 137 0 101 0 98 b 0 151 0 141 0 145 l 0 199 l 1 202 b 43 224 5 212 5 212 l 73 234 l 73 367 l 73 502 l 74 505 b 85 514 77 509 81 513 "},v79:{x_min:-1.359375,x_max:899.703125,ha:918,o:"m 307 349 b 332 351 315 351 323 351 b 443 340 367 351 408 347 b 741 47 607 306 720 195 b 744 0 743 31 744 16 b 660 -303 744 -90 713 -206 b 28 -755 534 -531 304 -695 b 14 -756 23 -755 19 -756 b -1 -741 4 -756 -1 -750 b 21 -720 -1 -731 1 -728 b 567 -56 337 -601 548 -344 b 568 -11 568 -41 568 -24 b 442 285 568 129 525 233 b 325 319 406 308 367 319 b 93 177 232 319 137 266 b 84 154 91 170 84 155 b 84 154 84 154 84 154 b 88 156 84 154 85 155 b 159 177 110 170 134 177 b 257 134 194 177 231 162 b 294 41 281 108 294 73 b 171 -97 294 -24 246 -90 b 156 -98 166 -97 161 -98 b 6 74 73 -98 6 -22 b 6 80 6 76 6 79 b 307 349 10 223 141 340 m 839 215 b 845 216 841 216 842 216 b 862 213 852 216 860 215 b 899 163 887 206 899 184 b 872 117 899 145 890 127 b 847 111 865 112 856 111 b 808 130 833 111 818 117 b 796 162 800 140 796 151 b 839 215 796 187 812 212 m 839 -112 b 845 -112 841 -112 842 -112 b 862 -115 852 -112 860 -113 b 899 -165 887 -122 899 -144 b 872 -210 899 -183 890 -201 b 847 -217 865 -215 856 -217 b 808 -198 833 -217 818 -210 b 796 -165 800 -188 796 -177 b 839 -112 796 -140 812 -116 "},v7a:{x_min:-1.359375,x_max:386.5625,ha:394,o:"m 249 535 b 257 537 251 537 253 537 b 276 524 266 537 273 533 l 277 521 l 279 419 l 279 316 l 304 323 b 337 328 319 326 330 328 b 353 316 347 328 349 324 b 355 266 355 315 355 290 b 353 215 355 241 355 217 b 319 198 349 206 347 205 b 279 187 284 190 279 188 b 279 156 279 187 279 174 b 279 136 279 151 279 144 l 279 84 l 289 87 l 330 98 b 367 105 352 102 362 105 b 378 101 372 105 375 104 b 386 61 385 95 386 94 b 386 40 386 55 386 48 l 386 -5 l 385 -8 b 374 -19 383 -12 378 -18 b 291 -40 372 -19 347 -26 b 279 -43 284 -41 279 -43 b 279 -83 279 -43 279 -59 b 279 -95 279 -87 279 -91 l 279 -145 l 304 -140 b 337 -133 321 -136 330 -133 b 349 -140 343 -133 347 -136 b 355 -181 355 -145 355 -142 l 355 -197 l 355 -210 b 349 -252 355 -249 355 -247 b 300 -269 345 -258 347 -258 b 280 -274 291 -272 281 -273 l 279 -274 l 277 -378 l 277 -483 l 276 -487 b 257 -499 273 -495 265 -499 b 238 -487 249 -499 242 -495 l 236 -483 l 236 -384 l 236 -285 l 235 -285 l 212 -291 l 170 -301 b 148 -308 159 -305 148 -306 b 147 -415 147 -308 147 -313 l 147 -523 l 145 -526 b 126 -538 141 -534 133 -538 b 106 -526 118 -538 110 -534 l 104 -523 l 104 -420 b 103 -317 104 -326 104 -317 b 103 -317 103 -317 103 -317 b 50 -330 92 -322 54 -330 b 31 -317 42 -330 35 -326 b 29 -267 29 -315 29 -315 l 29 -219 l 32 -216 b 92 -192 36 -206 36 -206 l 104 -190 l 104 -138 b 103 -87 104 -91 104 -87 b 103 -87 103 -87 103 -87 b 88 -91 103 -87 96 -88 l 49 -101 b 17 -106 32 -105 23 -106 b 6 -102 13 -106 10 -105 b -1 -62 0 -97 -1 -95 b 0 -41 -1 -56 0 -49 l 0 4 l 1 6 b 10 16 2 11 6 15 b 91 37 12 18 38 24 l 104 41 l 104 93 b 103 144 104 140 104 144 b 103 144 103 144 103 144 b 50 131 92 141 54 131 b 31 144 42 131 35 137 b 29 195 29 147 29 148 l 29 242 l 32 245 b 92 269 36 255 36 255 l 104 273 l 104 377 l 104 481 l 106 485 b 126 498 110 492 118 498 b 134 495 129 498 132 496 b 145 485 138 494 142 489 l 147 481 l 147 383 l 147 283 l 152 284 b 190 294 155 285 171 290 l 230 303 l 236 305 l 236 413 l 236 521 l 238 524 b 249 535 240 528 243 533 m 236 126 b 235 177 236 154 236 177 l 235 177 b 213 172 235 177 225 174 l 170 161 b 147 155 157 158 147 155 b 147 124 147 155 147 142 b 147 102 147 117 147 111 l 147 52 l 153 54 l 228 72 l 236 74 l 236 126 m 236 -105 b 235 -54 236 -65 236 -54 l 235 -54 b 231 -55 235 -54 234 -54 b 172 -69 227 -55 204 -62 l 149 -76 l 147 -76 l 147 -127 l 147 -179 l 152 -177 b 190 -167 155 -177 171 -173 l 230 -158 l 236 -156 l 236 -105 "},v7c:{x_min:0,x_max:300.8125,ha:307,o:"m 49 505 b 53 506 50 505 51 506 b 70 496 58 506 62 503 b 81 485 73 492 78 488 l 96 473 l 111 459 l 122 449 l 134 438 l 182 396 l 255 330 b 292 291 292 298 292 298 l 292 290 l 292 284 l 283 270 b 209 36 234 197 209 113 b 288 -170 209 -44 235 -119 b 299 -184 295 -179 299 -181 b 300 -191 300 -187 300 -188 b 285 -206 300 -199 294 -206 b 280 -206 283 -206 281 -206 b 247 -201 270 -202 259 -201 b 176 -222 223 -201 197 -208 b 114 -340 136 -249 114 -292 b 172 -471 114 -384 134 -433 b 185 -492 182 -481 185 -487 b 181 -502 185 -496 183 -499 b 171 -508 176 -505 174 -508 b 152 -498 166 -508 160 -503 b 0 -284 65 -428 12 -352 b 0 -260 0 -278 0 -270 b 1 -238 0 -252 0 -242 b 148 -140 16 -177 73 -140 b 209 -148 167 -140 189 -142 b 215 -149 212 -148 215 -149 b 215 -149 215 -149 215 -149 l 215 -149 b 201 -136 215 -148 209 -142 l 157 -97 l 96 -41 b 17 34 21 24 17 29 b 17 37 17 36 17 36 b 17 38 17 37 17 38 b 25 56 17 44 17 44 b 110 298 81 131 110 219 b 46 474 110 367 88 431 b 38 491 40 480 38 487 b 49 505 38 498 42 502 "},v7d:{x_min:-1.359375,x_max:436.921875,ha:446,o:"m 213 205 b 217 205 215 205 216 205 b 234 194 224 205 234 199 b 236 187 234 194 235 190 l 245 167 l 261 129 l 270 106 b 355 -61 294 54 329 -13 b 420 -163 381 -105 402 -138 b 436 -188 435 -184 436 -184 b 436 -191 436 -190 436 -190 b 421 -206 436 -201 431 -206 l 421 -206 l 416 -206 l 405 -201 b 217 -158 347 -172 283 -158 b 31 -201 153 -158 88 -172 l 20 -206 l 14 -206 l 14 -206 b 0 -191 5 -206 0 -201 b -1 -188 0 -190 -1 -190 b 14 -163 -1 -186 0 -184 b 95 -34 36 -136 72 -77 b 166 106 119 8 148 68 l 175 129 l 183 148 l 200 188 b 213 205 205 199 208 202 "},v7f:{x_min:0,x_max:367.5,ha:375,o:"m 0 124 l 0 187 l 61 187 l 122 187 l 122 138 l 122 91 l 153 61 l 183 30 l 213 61 l 243 91 l 243 138 l 243 187 l 306 187 l 367 187 l 367 124 l 367 61 l 321 61 l 274 61 l 243 30 l 213 0 l 243 -31 l 274 -62 l 321 -62 l 367 -62 l 367 -124 l 367 -188 l 306 -188 l 243 -188 l 243 -140 l 243 -93 l 213 -62 l 183 -31 l 153 -62 l 122 -93 l 122 -140 l 122 -188 l 61 -188 l 0 -188 l 0 -124 l 0 -62 l 46 -62 l 92 -62 l 123 -31 l 153 0 l 123 30 l 92 61 l 46 61 l 0 61 l 0 124 "},v80:{x_min:29.9375,x_max:420.578125,ha:371,o:"m 115 345 b 221 347 117 345 166 347 b 411 345 306 347 409 345 b 420 330 416 342 420 335 b 415 319 420 326 419 321 b 178 118 397 303 179 118 b 178 117 178 118 178 117 b 181 117 178 117 178 117 b 189 117 182 117 185 117 b 193 117 190 117 191 117 b 247 98 215 117 232 111 b 296 75 266 83 280 76 b 302 75 299 75 300 75 b 322 91 311 75 315 79 b 322 91 322 91 322 91 b 322 91 322 91 322 91 b 319 91 322 91 321 91 b 313 90 318 90 315 90 b 283 107 300 90 288 97 b 277 126 279 114 277 121 b 319 167 277 149 295 167 b 319 167 319 167 319 167 b 362 118 347 167 362 147 b 355 82 362 108 359 96 b 311 33 349 65 340 55 b 224 1 284 12 253 1 b 194 5 213 1 204 2 b 168 18 183 8 178 11 b 110 36 151 30 130 36 b 57 15 88 36 68 29 b 47 11 54 12 51 11 b 31 20 40 11 34 13 b 29 26 31 22 29 25 b 68 66 29 36 39 45 b 285 250 73 71 281 248 b 285 250 285 250 285 250 b 231 252 285 252 261 252 b 137 250 190 252 141 250 b 93 227 122 248 110 241 b 78 220 88 222 83 220 b 66 227 74 220 70 222 b 63 234 65 229 63 231 b 85 291 63 241 69 252 b 115 345 108 342 108 344 "},v81:{x_min:0,x_max:428.75,ha:438,o:"m 262 186 b 273 186 266 186 272 186 b 274 186 273 186 274 186 b 285 186 274 186 280 186 b 428 48 375 181 428 122 b 386 -68 428 12 416 -29 b 155 -187 329 -145 236 -187 b 12 -111 92 -187 38 -162 b 0 -51 4 -91 0 -72 b 262 186 0 58 122 179 m 366 131 b 352 134 362 133 357 134 b 219 81 321 134 269 115 b 47 -111 126 23 50 -62 b 47 -112 47 -111 47 -112 b 77 -136 47 -129 58 -136 b 264 -45 118 -136 194 -101 b 382 109 336 12 382 76 b 366 131 382 120 377 129 "},v83:{x_min:-1.359375,x_max:847.96875,ha:865,o:"m 488 1499 b 495 1500 490 1500 492 1500 b 541 1465 507 1500 521 1490 b 679 1078 622 1372 679 1210 b 677 1050 679 1068 677 1060 b 477 642 668 893 604 764 l 443 609 l 431 596 l 431 592 l 438 562 l 449 508 l 460 458 b 481 355 475 390 481 355 b 481 355 481 355 481 355 b 490 356 481 355 485 355 b 528 358 495 356 511 358 b 558 356 540 358 552 356 b 839 95 699 338 808 237 b 847 22 845 72 847 47 b 631 -303 847 -113 766 -242 b 620 -309 623 -308 620 -309 l 620 -310 b 631 -359 620 -310 626 -333 l 646 -435 l 660 -496 b 672 -588 668 -535 672 -563 b 664 -653 672 -610 669 -630 b 383 -875 630 -792 509 -875 b 201 -810 321 -875 257 -855 b 129 -680 151 -768 129 -730 b 274 -530 129 -592 200 -530 b 351 -553 300 -530 326 -538 b 412 -669 393 -582 412 -626 b 287 -805 412 -735 366 -800 l 279 -805 l 285 -809 b 383 -830 318 -823 351 -830 b 586 -718 464 -830 540 -789 b 626 -584 612 -678 626 -631 b 619 -528 626 -566 623 -548 b 612 -495 619 -526 616 -510 b 577 -324 590 -387 577 -324 b 577 -324 577 -324 577 -324 b 568 -326 575 -324 571 -324 b 528 -334 558 -328 537 -333 b 465 -338 506 -337 485 -338 b 24 -11 269 -338 87 -206 b -1 145 8 41 -1 93 b 96 442 -1 249 32 351 b 322 714 166 541 236 626 l 352 745 l 345 782 l 332 843 l 315 921 b 303 984 310 950 304 978 b 295 1082 298 1017 295 1049 b 413 1426 295 1208 336 1329 b 488 1499 436 1456 477 1496 m 549 1301 b 541 1301 547 1301 544 1301 b 411 1207 500 1301 447 1263 b 355 1004 374 1152 355 1079 b 359 942 355 984 356 963 b 371 881 362 927 363 917 l 385 818 b 392 782 389 799 392 784 l 392 782 b 434 828 393 782 424 816 b 607 1165 534 941 594 1060 b 608 1193 608 1175 608 1183 b 597 1270 608 1224 604 1254 b 549 1301 589 1286 571 1299 m 398 528 b 393 555 396 542 393 553 b 392 555 393 555 393 555 b 317 470 390 555 347 505 b 190 298 266 408 212 334 b 127 70 148 227 127 148 b 155 -77 127 19 137 -30 b 468 -303 209 -216 333 -303 b 519 -299 484 -303 502 -302 b 568 -284 541 -295 568 -287 l 568 -284 b 563 -263 568 -284 566 -274 l 534 -120 l 511 -13 l 496 61 l 480 133 b 469 187 472 176 469 187 b 468 188 469 187 469 188 b 416 162 462 188 430 172 b 337 13 364 126 337 69 b 413 -124 337 -40 363 -93 b 428 -144 424 -131 428 -137 b 428 -149 428 -145 428 -148 b 409 -166 426 -161 419 -166 b 394 -162 405 -166 400 -165 b 240 77 302 -122 240 -27 l 240 77 b 430 342 240 197 315 301 l 436 344 l 426 394 l 398 528 m 548 194 b 526 195 540 195 532 195 b 519 195 524 195 521 195 l 514 195 l 518 177 l 539 79 l 552 15 l 566 -48 l 594 -187 l 605 -240 b 612 -266 609 -254 611 -266 b 612 -266 612 -266 612 -266 b 641 -248 613 -266 630 -256 b 744 -98 692 -212 730 -156 b 751 -40 749 -79 751 -59 b 548 194 751 76 665 181 "},v84:{x_min:25.859375,x_max:164.6875,ha:168,o:"m 34 369 b 40 370 35 370 38 370 b 59 353 49 370 50 367 b 164 40 122 254 155 158 b 164 0 164 33 164 16 b 164 -40 164 -16 164 -34 b 59 -353 155 -158 122 -254 b 40 -371 53 -366 47 -371 b 34 -370 38 -371 36 -370 b 25 -358 28 -367 25 -363 b 31 -337 25 -352 27 -347 b 92 0 72 -234 92 -117 b 31 335 92 116 72 233 b 25 356 27 345 25 352 b 34 369 25 363 28 366 "},v86:{x_min:-571.671875,x_max:570.3125,ha:582,o:"m -386 173 b -381 174 -385 174 -383 174 b -370 173 -377 174 -372 173 b -281 86 -367 172 -347 151 b -196 0 -235 37 -196 0 b -126 84 -196 0 -164 37 b -50 174 -55 173 -57 172 b -44 174 -49 174 -47 174 b -35 173 -42 174 -38 173 b 53 86 -32 172 -12 151 b 138 0 100 37 138 0 b 208 84 140 0 170 37 b 284 174 279 173 277 172 b 289 174 285 174 288 174 b 299 173 294 174 298 173 b 462 11 303 172 338 134 l 475 -1 l 503 34 b 541 76 534 72 536 74 b 548 77 544 77 545 77 b 570 56 560 77 570 68 b 567 48 570 54 568 51 b 392 -172 564 41 397 -166 b 378 -176 387 -174 382 -176 b 368 -174 374 -176 371 -176 b 280 -87 367 -173 345 -152 b 194 0 234 -38 194 0 b 125 -86 194 0 163 -38 b 49 -174 54 -174 55 -173 b 43 -176 47 -176 46 -176 b 34 -174 40 -176 36 -174 b -54 -87 31 -173 10 -152 b -140 0 -102 -38 -140 0 b -209 -86 -141 0 -171 -38 b -285 -174 -280 -174 -279 -173 b -291 -176 -287 -176 -289 -176 b -300 -174 -295 -176 -299 -174 b -464 -12 -304 -173 -340 -137 l -476 0 l -504 -34 b -543 -77 -534 -73 -537 -76 b -549 -79 -545 -79 -547 -79 b -571 -58 -562 -79 -571 -69 b -568 -49 -571 -55 -570 -52 b -392 172 -566 -43 -396 167 b -386 173 -390 172 -387 173 "},v8a:{x_min:-170.140625,x_max:168.78125,ha:172,o:"m -160 567 b -122 567 -159 567 -149 567 l -87 567 l -84 566 b -74 553 -78 563 -77 560 b -20 366 -73 551 -49 466 b 31 186 8 267 31 186 b 85 371 31 186 55 269 b 140 559 114 473 138 557 b 153 567 141 564 148 567 b 168 559 159 567 166 564 b 168 555 168 557 168 557 b 92 281 168 548 159 513 b 14 13 50 134 14 13 b 0 0 14 6 6 0 b -17 15 -8 0 -17 8 b -93 283 -17 15 -51 136 b -170 552 -166 533 -170 548 b -170 553 -170 552 -170 552 b -160 567 -170 560 -167 564 "},v8b:{x_min:0,x_max:319.859375,ha:326,o:"m 149 508 b 159 509 152 509 155 509 b 186 494 170 509 181 503 b 190 440 190 487 190 488 l 190 430 l 190 377 l 242 377 l 251 377 b 303 373 298 377 296 377 b 319 345 314 367 319 356 b 304 319 319 335 314 324 b 250 315 296 315 299 315 l 242 315 l 190 315 l 190 262 l 190 252 b 186 198 190 204 190 205 b 159 183 179 188 170 183 b 132 198 148 183 138 188 b 127 252 127 205 127 204 l 127 262 l 127 315 l 76 315 l 68 315 b 14 319 20 315 21 315 b 0 347 4 324 0 335 b 14 373 0 356 4 367 b 68 377 21 377 20 377 l 76 377 l 127 377 l 127 430 l 127 440 b 132 494 127 488 127 487 b 149 508 136 501 142 505 "},v8c:{x_min:-330.75,x_max:329.390625,ha:336,o:"m -133 483 b -117 484 -127 484 -122 484 b 31 373 -51 484 9 440 b 35 348 34 365 35 356 b -25 285 35 313 10 285 b -87 331 -55 285 -76 302 b -167 402 -100 376 -133 402 b -191 398 -175 402 -183 401 b -227 341 -215 388 -227 369 b -225 320 -227 334 -227 327 b -13 74 -209 230 -125 133 b 6 65 -4 70 5 66 l 9 63 l 10 65 b 117 231 12 68 40 112 l 189 341 l 242 424 b 268 460 262 456 264 458 b 283 464 273 463 277 464 b 308 438 296 464 308 453 l 308 437 b 287 396 308 430 308 428 l 95 98 l 59 43 l 58 41 l 65 37 b 253 -156 151 -8 217 -77 b 281 -285 272 -199 281 -244 b 148 -481 281 -381 231 -463 b 115 -485 137 -484 126 -485 b -32 -376 51 -485 -9 -442 b -36 -349 -35 -366 -36 -358 b 25 -287 -36 -315 -12 -287 b 85 -333 54 -287 74 -302 b 166 -403 99 -377 133 -403 b 190 -399 174 -403 182 -402 b 225 -342 215 -390 225 -370 b 224 -322 225 -335 225 -328 b 12 -76 208 -231 125 -134 b -8 -66 2 -72 -6 -68 l -10 -65 l -12 -66 b -118 -231 -13 -68 -42 -113 l -190 -342 l -243 -426 b -269 -462 -264 -458 -265 -458 b -284 -466 -274 -464 -279 -466 b -310 -440 -298 -466 -310 -455 l -310 -438 b -288 -398 -310 -430 -308 -430 l -96 -99 l -59 -44 l -59 -43 l -66 -38 b -281 284 -198 33 -281 158 l -281 284 b -133 483 -281 392 -220 474 m 254 177 b 266 179 258 177 262 179 b 319 149 287 179 307 167 b 329 115 326 140 329 127 b 319 79 329 102 326 90 b 268 51 307 61 287 51 b 221 72 250 51 234 58 b 205 115 210 84 205 99 b 254 177 205 142 223 170 m -281 -54 b -269 -52 -277 -52 -273 -52 b -223 -73 -253 -52 -235 -59 b -206 -116 -212 -84 -206 -101 b -216 -151 -206 -129 -209 -141 b -269 -179 -228 -170 -249 -179 b -314 -159 -285 -179 -302 -173 b -330 -116 -325 -147 -330 -131 b -281 -54 -330 -88 -313 -61 "},v8d:{x_min:-1.359375,x_max:255.890625,ha:261,o:"m 118 514 b 127 517 121 517 122 517 b 147 505 136 517 142 513 l 148 502 l 148 403 b 148 306 148 351 148 306 b 174 315 149 306 160 310 l 200 324 l 205 323 b 223 312 213 323 220 319 l 225 308 l 225 260 b 225 245 225 255 225 249 b 220 204 225 208 224 209 b 179 188 216 199 215 199 l 148 177 l 148 124 l 148 70 l 189 84 b 236 98 219 94 230 98 b 247 94 240 98 243 97 b 255 52 254 88 255 87 b 255 33 255 47 255 40 l 254 -12 l 253 -15 b 249 -22 253 -18 250 -20 l 245 -24 l 196 -41 l 148 -58 l 148 -108 b 148 -158 148 -136 148 -158 b 174 -148 148 -158 160 -154 b 204 -140 198 -140 200 -140 l 204 -140 b 224 -152 213 -140 221 -145 b 225 -201 224 -155 225 -177 b 224 -254 225 -226 224 -251 b 157 -284 220 -262 220 -262 l 148 -288 l 148 -395 l 148 -503 l 147 -506 b 127 -519 142 -514 134 -519 b 107 -506 119 -519 111 -514 l 106 -503 l 106 -403 b 106 -303 106 -316 106 -303 b 104 -303 104 -303 104 -303 b 88 -310 104 -303 96 -306 l 63 -319 b 51 -322 59 -320 55 -322 b 36 -315 46 -322 40 -319 b 31 -273 32 -309 31 -312 b 31 -258 31 -269 31 -263 l 31 -210 l 34 -206 b 40 -198 35 -204 38 -199 b 74 -186 42 -197 57 -191 l 106 -173 l 106 -123 b 106 -97 106 -112 106 -104 b 106 -72 106 -76 106 -72 b 104 -72 106 -72 106 -72 b 20 -99 89 -79 23 -99 b 0 -84 10 -99 2 -93 b -1 -37 0 -81 -1 -59 b 0 11 -1 -15 0 9 b 58 40 4 22 2 22 l 106 56 l 106 109 b 106 123 106 115 106 119 b 106 162 106 147 106 162 b 81 155 106 162 93 159 b 50 147 65 149 55 147 b 36 152 43 147 40 148 b 31 194 32 158 31 156 b 31 209 31 198 31 204 l 31 256 l 34 260 b 76 281 38 269 38 269 l 106 292 l 106 396 l 106 502 l 107 505 b 118 514 110 509 114 513 "},v8f:{x_min:-21.78125,x_max:362.0625,ha:369,o:"m 302 1031 b 308 1032 304 1032 307 1032 b 330 1016 318 1032 325 1027 b 362 867 351 970 362 920 b 340 738 362 824 353 780 l 336 727 l 340 717 b 362 591 355 677 362 634 b 257 323 362 496 325 401 b 204 272 243 306 227 290 b 20 56 129 206 66 133 b -1 18 12 44 0 22 b -19 4 -4 9 -12 4 l -21 4 l -21 140 l -21 276 l -12 277 b 167 333 61 288 127 309 b 319 598 262 388 319 491 b 311 664 319 620 317 642 l 310 673 l 304 664 b 204 548 279 620 250 587 b 20 333 129 483 66 409 b -1 292 12 320 0 298 b -19 280 -4 285 -12 280 l -21 280 l -21 416 l -21 552 l -12 553 b 167 609 61 564 127 585 b 319 874 264 666 319 770 b 294 992 319 914 311 954 b 288 1011 288 1004 288 1007 b 302 1031 288 1021 294 1028 "},v90:{x_min:-171.5,x_max:483.1875,ha:493,o:"m -8 631 b -1 632 -6 632 -4 632 b 19 620 8 632 16 628 b 20 495 20 616 20 616 b 20 373 20 427 20 373 b 115 410 20 373 63 390 l 210 448 l 210 531 b 212 620 210 614 210 616 b 231 632 215 628 223 632 b 246 627 236 632 242 631 b 251 541 251 620 251 628 l 251 463 l 315 489 b 387 514 368 509 381 514 b 393 513 390 514 392 514 b 406 494 402 510 406 502 b 397 476 406 487 404 480 b 323 446 396 474 363 462 l 251 417 l 251 283 l 251 148 l 254 151 b 370 199 291 183 332 199 b 415 191 385 199 400 197 b 483 84 458 176 483 134 b 461 0 483 58 476 29 b 332 -142 439 -40 411 -72 l 255 -215 b 231 -229 240 -229 239 -229 b 216 -223 224 -229 220 -227 b 210 -158 210 -217 210 -223 b 210 -120 210 -148 210 -136 l 210 -29 l 205 -34 b 100 -142 182 -65 159 -88 l 23 -215 b -1 -229 9 -229 6 -229 b -19 -217 -9 -229 -16 -224 l -20 -215 l -21 48 l -21 310 l -83 287 b -152 262 -133 266 -145 262 b -157 263 -153 262 -155 262 b -171 283 -166 266 -171 274 b -161 301 -171 290 -167 297 b -91 328 -160 302 -129 315 l -21 356 l -21 487 l -20 617 l -19 621 b -8 631 -17 626 -12 630 m 210 288 b 210 401 210 351 210 401 b 114 365 209 401 167 384 l 20 327 l 20 238 l 20 148 l 21 151 b 140 199 59 183 102 199 b 206 180 164 199 187 192 l 209 177 b 209 177 209 177 209 177 b 210 288 210 177 210 199 m 110 131 b 96 133 106 133 100 133 b 89 133 93 133 91 133 b 24 87 63 129 40 113 l 20 80 l 20 -37 l 20 -156 l 23 -152 b 144 81 96 -72 144 20 l 144 83 b 110 131 144 113 134 126 m 341 131 b 328 133 337 133 332 133 b 322 133 326 133 323 133 b 257 87 296 129 273 113 l 251 80 l 251 -37 l 251 -156 l 255 -152 b 375 81 328 -72 375 20 l 375 83 b 341 131 375 113 367 126 "},v92:{x_min:0,x_max:598.890625,ha:611,o:"m 62 181 b 77 183 66 183 72 183 b 91 181 83 183 88 183 b 202 131 100 180 106 177 l 299 87 l 394 131 b 517 183 499 181 502 183 b 519 183 517 183 518 183 b 598 104 567 183 598 144 b 577 49 598 84 592 65 b 518 15 567 38 563 37 b 484 0 499 6 484 0 b 518 -16 484 -1 499 -8 b 577 -51 563 -38 567 -40 b 598 -105 592 -66 598 -86 b 519 -184 598 -145 567 -184 b 517 -184 518 -184 517 -184 b 394 -133 502 -184 499 -183 l 299 -88 l 202 -133 b 81 -184 99 -183 95 -184 b 77 -184 80 -184 78 -184 b 0 -105 29 -184 0 -145 b 20 -51 0 -86 5 -66 b 80 -16 29 -40 34 -38 b 114 -1 98 -8 114 -1 b 80 15 114 0 98 6 b 20 49 34 37 29 38 b 0 104 6 65 0 84 b 62 181 0 140 23 174 m 88 134 b 74 136 85 134 80 136 b 68 134 72 136 69 136 b 46 104 54 130 46 117 b 55 81 46 95 49 88 b 149 34 59 76 53 80 b 224 -1 190 15 224 0 b 144 -38 224 -1 187 -18 b 54 -84 59 -79 58 -79 b 46 -105 49 -90 46 -98 b 76 -137 46 -122 58 -137 b 78 -137 77 -137 77 -137 b 194 -86 87 -137 76 -141 b 298 -36 250 -58 298 -36 b 298 -36 298 -36 298 -36 b 402 -84 299 -36 345 -58 b 518 -137 522 -141 510 -137 b 521 -137 519 -137 519 -137 b 551 -105 539 -137 551 -122 b 541 -83 551 -98 548 -90 b 447 -36 537 -77 544 -81 b 374 -1 406 -16 374 -1 b 447 34 374 0 406 15 b 541 81 544 80 537 76 b 551 104 548 88 551 97 b 521 136 551 120 539 136 b 518 136 519 136 519 136 b 517 136 518 136 517 136 l 517 136 b 402 83 511 136 511 136 b 298 34 345 56 299 34 b 298 34 298 34 298 34 b 194 84 298 34 250 56 b 88 134 137 111 89 133 "},v93:{x_min:0,x_max:438.28125,ha:447,o:"m 212 205 b 219 205 213 205 216 205 b 239 183 228 205 231 204 b 421 -163 298 40 363 -83 b 438 -191 434 -180 438 -186 b 436 -197 438 -192 438 -195 b 424 -206 434 -204 431 -206 b 406 -201 420 -206 415 -205 b 216 -156 347 -172 281 -156 b 23 -205 148 -156 80 -173 b 14 -206 20 -206 17 -206 b 0 -191 6 -206 0 -201 b 6 -176 0 -187 1 -183 b 202 192 63 -104 142 45 b 212 205 205 199 208 202 m 264 48 l 249 81 l 243 94 l 242 91 b 89 -126 208 36 137 -66 b 81 -138 85 -133 81 -138 b 81 -138 81 -138 81 -138 b 81 -138 81 -138 81 -138 b 95 -133 81 -138 87 -136 b 280 -94 156 -108 221 -94 b 334 -98 299 -94 317 -95 b 343 -99 338 -99 343 -99 b 343 -99 343 -99 343 -99 b 338 -94 343 -99 341 -97 b 264 48 318 -58 287 1 "},v94:{x_min:-149.71875,x_max:148.359375,ha:151,o:"m -9 215 b 0 217 -6 217 -4 217 b 19 205 8 217 14 213 b 20 142 20 202 20 201 l 20 84 l 23 84 b 144 -27 81 74 129 30 b 148 -66 147 -40 148 -54 b 36 -213 148 -134 103 -197 b 0 -219 24 -217 12 -219 b -145 -104 -68 -219 -129 -173 b -149 -68 -148 -91 -149 -79 b -24 84 -149 6 -98 74 l -21 84 l -21 142 b -19 205 -20 201 -20 202 b -9 215 -17 209 -13 213 m -21 -15 b -23 41 -21 37 -21 41 b -23 41 -23 41 -23 41 b -76 11 -35 40 -62 26 b -108 -65 -98 -11 -108 -38 b -1 -176 -108 -122 -65 -176 b 107 -65 63 -176 107 -122 b 74 11 107 -38 96 -11 b 20 41 61 26 32 41 b 20 -15 20 41 20 15 b 19 -74 20 -72 20 -72 b 0 -87 14 -83 6 -87 b -19 -74 -8 -87 -16 -83 b -21 -15 -20 -72 -20 -72 "},v95:{x_min:0,x_max:406.96875,ha:415,o:"m 55 181 b 70 183 61 183 66 183 b 111 170 85 183 99 179 b 160 130 115 167 137 149 l 202 95 l 245 130 b 319 181 299 176 302 179 b 334 183 325 183 330 183 b 406 109 375 183 406 148 b 401 81 406 99 405 91 b 348 24 394 65 390 59 b 318 -1 332 11 318 0 b 348 -26 318 -1 332 -12 b 401 -83 390 -61 394 -66 b 406 -111 405 -93 406 -101 b 334 -184 406 -149 375 -184 b 319 -183 330 -184 325 -184 b 245 -131 302 -180 299 -177 l 202 -97 l 160 -131 b 85 -183 107 -177 103 -180 b 70 -184 80 -184 76 -184 b 0 -111 31 -184 0 -149 b 4 -83 0 -101 1 -93 b 58 -26 10 -66 16 -61 b 88 -1 74 -12 88 -1 b 58 24 88 0 74 11 b 10 69 23 54 17 59 b 0 109 2 81 0 95 b 55 181 0 142 21 173 m 83 133 b 72 136 78 136 76 136 b 57 131 66 136 61 134 b 46 109 49 126 46 117 b 50 93 46 104 47 98 b 107 45 51 91 77 70 b 160 0 137 20 160 0 b 107 -47 160 -1 137 -22 b 50 -94 77 -72 51 -93 b 46 -111 47 -99 46 -105 b 59 -134 46 -120 50 -130 b 72 -137 62 -136 68 -137 b 83 -136 76 -137 80 -136 b 144 -84 84 -134 107 -116 b 202 -36 176 -58 202 -36 b 261 -84 202 -36 230 -58 b 323 -136 299 -116 321 -134 b 334 -137 326 -136 330 -137 b 345 -134 338 -137 343 -136 b 360 -111 355 -130 360 -120 b 355 -94 360 -105 359 -99 b 299 -47 353 -93 329 -72 b 245 0 269 -22 245 -1 b 299 45 245 0 269 20 b 355 93 329 70 353 91 b 360 109 359 98 360 104 b 345 133 360 119 355 129 b 334 136 343 134 338 136 b 323 134 330 136 326 134 b 261 83 321 133 299 115 b 202 34 230 56 202 34 b 144 83 202 34 176 56 b 83 133 106 115 84 133 "},v97:{x_min:-228.671875,x_max:227.3125,ha:232,o:"m -217 487 l -213 488 l 0 488 l 212 488 l 216 487 b 225 476 220 484 224 480 l 227 473 l 227 244 l 227 15 l 225 12 b 206 0 223 4 215 0 b 197 1 204 0 200 0 b 187 12 193 4 189 6 l 186 15 l 186 138 l 186 262 l -1 262 l -187 262 l -187 138 l -187 15 l -189 12 b -208 0 -193 4 -200 0 b -227 12 -216 0 -223 4 l -228 15 l -228 244 l -228 473 l -227 476 b -217 487 -225 480 -221 484 "},v9a:{x_min:-21.78125,x_max:367.5,ha:375,o:"m 230 1031 b 238 1032 232 1032 235 1032 b 259 1014 245 1032 251 1027 b 367 662 330 906 367 782 b 364 602 367 641 367 621 b 232 317 352 488 304 384 b 57 120 155 245 103 187 b -1 18 31 84 6 40 b -19 4 -4 11 -12 4 l -21 4 l -21 159 l -21 315 l -16 315 b 96 335 10 315 62 324 b 315 695 227 380 315 527 b 313 738 315 709 314 724 b 224 991 304 825 273 916 b 216 1013 219 999 216 1007 b 230 1031 216 1021 220 1028 "},v9b:{x_min:-24.5,x_max:313.0625,ha:319,o:"m -24 -133 l -24 -5 l -20 -5 b -1 -19 -12 -5 -4 -11 b 142 -213 13 -61 74 -144 b 258 -376 196 -269 230 -315 b 313 -605 295 -449 313 -528 b 292 -742 313 -652 306 -699 b 288 -752 289 -748 288 -752 b 288 -752 288 -752 288 -752 b 292 -764 289 -753 291 -757 b 313 -907 306 -811 313 -860 b 292 -1045 313 -954 306 -1002 b 288 -1054 289 -1050 288 -1054 b 288 -1054 288 -1054 288 -1054 b 292 -1067 289 -1054 291 -1060 b 313 -1210 306 -1113 313 -1161 b 292 -1346 313 -1257 306 -1304 b 288 -1357 289 -1353 288 -1357 b 288 -1357 288 -1357 288 -1357 b 292 -1368 289 -1357 291 -1363 b 313 -1512 306 -1415 313 -1464 b 292 -1648 313 -1560 306 -1605 b 288 -1660 289 -1654 288 -1660 b 288 -1660 288 -1660 288 -1660 b 292 -1671 289 -1660 291 -1665 b 313 -1814 306 -1719 313 -1766 b 250 -2040 313 -1897 291 -1977 b 232 -2062 238 -2057 236 -2059 b 221 -2065 230 -2063 225 -2065 b 200 -2045 210 -2065 201 -2057 b 200 -2043 200 -2044 200 -2044 b 208 -2026 200 -2037 202 -2034 b 269 -1826 249 -1966 269 -1897 b 153 -1544 269 -1726 230 -1625 b -9 -1472 115 -1506 58 -1481 b -21 -1471 -14 -1471 -19 -1471 l -24 -1471 l -24 -1343 l -24 -1215 l -20 -1215 b -1 -1229 -12 -1215 -4 -1221 b 142 -1424 13 -1270 74 -1353 b 257 -1582 196 -1478 228 -1524 b 264 -1594 261 -1589 264 -1594 l 264 -1594 b 265 -1582 264 -1594 264 -1589 b 270 -1525 268 -1562 270 -1544 b 153 -1243 270 -1424 228 -1321 b -9 -1170 115 -1203 58 -1178 b -21 -1168 -14 -1170 -19 -1168 l -24 -1168 l -24 -1041 l -24 -913 l -20 -913 b -1 -927 -12 -913 -4 -918 b 142 -1121 13 -967 74 -1050 b 257 -1281 196 -1175 228 -1221 b 264 -1292 261 -1286 264 -1292 l 264 -1292 b 265 -1279 264 -1292 264 -1286 b 270 -1222 268 -1261 270 -1242 b 153 -941 270 -1121 228 -1018 b -9 -867 115 -900 58 -875 b -21 -866 -14 -867 -19 -866 l -24 -866 l -24 -738 l -24 -610 l -20 -610 b -1 -624 -12 -610 -4 -616 b 142 -818 13 -664 74 -749 b 257 -978 196 -873 228 -918 b 264 -989 261 -984 264 -989 l 264 -989 b 265 -977 264 -989 264 -984 b 270 -920 268 -959 270 -939 b 153 -638 270 -818 228 -716 b -9 -564 115 -598 58 -573 b -21 -563 -14 -564 -19 -563 l -24 -563 l -24 -435 l -24 -308 l -20 -308 b -1 -322 -12 -308 -4 -313 b 142 -516 13 -363 74 -446 b 257 -675 196 -571 228 -616 b 264 -687 261 -681 264 -687 l 264 -687 b 265 -674 264 -687 264 -681 b 270 -617 268 -656 270 -637 b 153 -335 270 -516 228 -413 b -9 -262 115 -295 58 -270 b -21 -260 -14 -262 -19 -260 l -24 -260 l -24 -133 "},v9c:{x_min:-166.0625,x_max:-25.859375,ha:0,o:"m -49 369 b -42 370 -46 369 -44 370 b -27 360 -36 370 -29 366 b -25 355 -27 359 -25 358 b -32 335 -25 351 -28 347 b -92 52 -66 248 -87 159 b -93 -1 -93 43 -93 20 b -92 -54 -93 -23 -93 -45 b -32 -337 -85 -162 -66 -251 b -25 -355 -27 -349 -25 -352 b -42 -371 -25 -365 -32 -371 b -61 -353 -50 -371 -51 -369 b -163 -63 -119 -262 -153 -165 b -166 -1 -166 -37 -166 -31 b -163 62 -166 30 -166 36 b -61 352 -153 163 -119 260 b -49 369 -54 365 -51 366 "},v9e:{x_min:0,x_max:607.0625,ha:619,o:"m 243 631 b 250 632 246 632 249 632 b 270 620 259 632 268 628 l 272 616 l 272 201 l 272 -212 l 270 -216 b 251 -229 268 -224 259 -229 b 227 -215 243 -229 240 -229 l 151 -142 b 32 -16 81 -80 53 -49 b 0 84 9 18 0 52 b 111 199 0 149 42 199 b 137 197 119 199 127 198 b 228 151 168 191 197 177 l 231 148 l 231 383 b 232 620 231 616 231 616 b 243 631 234 624 238 630 m 168 131 b 152 133 163 133 157 133 b 107 102 130 133 111 120 b 106 86 107 97 106 91 b 111 41 106 73 108 56 b 227 -152 125 -13 171 -90 l 231 -156 l 231 -37 l 231 80 l 225 87 b 168 131 210 111 190 126 m 347 631 b 353 632 348 632 351 632 b 374 620 363 632 371 628 b 375 383 375 616 375 616 l 375 148 l 377 151 b 492 199 415 183 454 199 b 537 191 507 199 522 197 b 607 84 582 176 607 134 b 583 0 607 58 598 29 b 455 -142 562 -40 533 -72 l 378 -215 b 355 -229 364 -229 362 -229 b 334 -216 345 -229 337 -224 l 333 -212 l 333 201 l 333 616 l 334 620 b 347 631 337 624 341 630 m 465 131 b 451 133 461 133 455 133 b 445 133 449 133 446 133 b 379 87 419 129 396 113 l 375 80 l 375 -37 l 375 -156 l 378 -152 b 499 81 451 -72 499 20 l 499 83 b 465 131 499 113 490 126 "},va3:{x_min:58.53125,x_max:228.671875,ha:294,o:"m 138 371 b 142 373 140 371 141 373 b 178 342 149 373 156 366 b 228 251 217 297 228 278 b 228 244 228 248 228 247 b 176 147 227 212 212 184 b 123 73 152 122 132 93 b 121 62 122 70 121 66 b 145 13 121 48 129 31 b 153 -2 151 6 153 1 b 149 -9 153 -5 152 -6 b 144 -11 148 -11 145 -11 b 129 -1 140 -11 136 -8 b 61 87 89 37 68 68 b 58 113 59 95 58 105 b 110 215 58 144 74 177 b 163 287 134 240 155 269 b 166 299 166 291 166 295 b 141 348 166 313 157 330 b 133 360 134 356 133 358 b 133 363 133 362 133 362 b 138 371 133 367 136 370 "},va5:{x_min:0,x_max:349.8125,ha:357,o:"m 88 302 b 103 303 93 302 98 303 b 202 224 149 303 191 270 b 205 199 204 216 205 208 b 178 129 205 173 196 147 l 175 126 l 182 127 b 307 249 236 142 284 190 b 313 259 308 254 311 258 b 329 267 317 265 323 267 b 349 247 340 267 349 259 b 201 -263 349 242 204 -258 b 182 -273 197 -270 190 -273 b 163 -260 174 -273 166 -269 b 161 -256 161 -259 161 -258 b 217 -59 161 -248 170 -220 b 272 129 247 43 272 127 b 272 129 272 129 272 129 b 264 122 272 129 268 126 b 140 80 227 94 183 80 b 36 115 102 80 65 91 b 0 194 10 136 0 165 b 88 302 0 244 32 292 "},va9:{x_min:-24.5,x_max:314.421875,ha:321,o:"m -24 -145 l -24 -5 l -20 -5 b 0 -23 -9 -5 -2 -12 b 27 -87 4 -38 14 -66 b 138 -220 53 -136 88 -177 b 235 -328 179 -255 208 -288 b 314 -592 287 -409 314 -501 b 292 -732 314 -639 307 -687 l 289 -742 l 294 -756 b 314 -896 307 -802 314 -849 b 292 -1035 314 -943 307 -991 l 289 -1045 l 294 -1057 b 314 -1197 307 -1104 314 -1152 b 292 -1338 314 -1246 307 -1292 l 289 -1347 l 294 -1360 b 314 -1500 307 -1407 314 -1454 b 273 -1689 314 -1565 300 -1628 b 250 -1712 265 -1710 261 -1712 b 228 -1691 236 -1712 228 -1704 l 228 -1685 l 234 -1675 b 270 -1507 258 -1621 270 -1564 b 98 -1193 270 -1381 209 -1261 b 40 -1174 76 -1179 58 -1174 b -10 -1189 24 -1174 8 -1178 b -20 -1192 -14 -1192 -16 -1192 l -24 -1192 l -24 -1052 l -24 -913 l -20 -913 b 0 -931 -9 -913 -2 -920 b 27 -995 4 -946 14 -974 b 138 -1128 53 -1043 88 -1085 b 257 -1275 190 -1172 228 -1220 b 262 -1283 259 -1279 262 -1283 l 262 -1283 b 269 -1249 264 -1282 268 -1260 b 270 -1206 270 -1233 270 -1220 b 98 -891 270 -1075 206 -957 b 40 -871 76 -877 58 -871 b -10 -886 24 -871 8 -875 b -20 -889 -14 -889 -16 -889 l -24 -889 l -24 -749 l -24 -610 l -20 -610 b 0 -628 -9 -610 -2 -617 b 27 -692 4 -644 14 -671 b 138 -825 53 -741 88 -782 b 257 -973 190 -870 228 -917 b 262 -981 259 -977 262 -981 l 262 -981 b 269 -946 264 -979 268 -957 b 270 -903 270 -931 270 -917 b 98 -588 270 -774 206 -655 b 40 -569 76 -574 58 -569 b -10 -584 24 -569 8 -574 b -20 -587 -14 -587 -16 -587 l -24 -587 l -24 -448 l -24 -308 l -20 -308 b 0 -326 -9 -308 -2 -315 b 27 -390 4 -341 14 -369 b 138 -523 53 -438 88 -480 b 257 -670 190 -567 228 -614 b 262 -678 259 -674 262 -678 b 262 -678 262 -678 262 -678 b 269 -644 264 -677 268 -656 b 270 -601 270 -628 270 -614 b 98 -285 270 -471 206 -352 b 40 -266 76 -273 58 -266 b -10 -281 24 -266 8 -272 b -20 -284 -14 -284 -16 -284 l -24 -284 l -24 -145 "},vaa:{x_min:-1.359375,x_max:752.703125,ha:768,o:"m 490 985 b 504 986 495 986 500 986 b 604 907 551 986 593 954 b 607 884 607 900 607 892 b 581 813 607 857 597 831 l 578 810 l 583 811 b 710 932 638 827 687 873 b 714 943 711 936 713 942 b 730 952 720 949 725 952 b 752 931 741 952 752 943 b 200 -946 752 927 204 -941 b 182 -957 197 -953 190 -957 b 163 -945 174 -957 166 -953 b 161 -939 161 -942 161 -942 b 217 -743 161 -931 170 -904 b 272 -555 247 -639 272 -555 b 272 -555 272 -555 272 -555 b 264 -560 272 -555 268 -557 b 140 -603 227 -589 182 -603 b 36 -567 102 -603 65 -592 b -1 -487 12 -548 -1 -517 b 17 -427 -1 -466 5 -445 b 103 -380 38 -395 70 -380 b 191 -433 137 -380 172 -398 b 205 -484 201 -448 205 -466 b 178 -553 205 -509 196 -535 l 175 -557 l 182 -555 b 307 -435 236 -539 284 -494 b 372 -213 308 -430 372 -215 b 372 -213 372 -213 372 -213 b 364 -219 372 -213 368 -216 b 240 -262 328 -247 283 -262 b 137 -226 202 -262 166 -249 b 99 -145 112 -206 99 -176 b 118 -84 99 -124 106 -104 b 204 -38 138 -54 171 -38 b 292 -91 238 -38 273 -56 b 306 -141 302 -106 306 -124 b 279 -212 306 -167 296 -194 l 276 -215 l 281 -213 b 408 -93 336 -198 385 -151 b 473 129 409 -88 473 127 b 473 129 473 129 473 129 b 465 122 473 129 469 126 b 341 80 428 94 383 80 b 236 115 303 80 266 91 b 200 195 213 136 200 165 b 217 256 200 217 206 238 b 304 303 239 287 272 303 b 393 249 338 303 374 285 b 406 199 402 234 406 217 b 379 129 406 173 397 148 l 377 126 l 382 127 b 509 248 436 142 485 190 b 574 470 510 254 574 469 b 574 470 574 470 574 470 b 566 464 574 470 570 467 b 442 421 529 435 484 421 b 337 458 404 421 367 433 b 300 538 314 477 300 508 b 318 598 300 559 306 580 b 404 645 340 630 372 645 b 494 592 439 645 475 627 b 507 541 502 577 507 559 b 480 471 507 516 498 489 l 477 467 l 483 470 b 608 589 537 485 586 531 b 675 811 611 595 675 810 b 675 811 675 811 675 811 b 666 806 675 811 671 809 b 543 763 628 777 585 763 b 438 799 504 763 468 775 b 401 878 412 820 401 849 b 490 985 401 928 434 977 "},vab:{x_min:0,x_max:272.21875,ha:278,o:"m 243 631 b 250 632 246 632 249 632 b 270 620 259 632 268 628 l 272 616 l 272 201 l 272 -212 l 270 -216 b 251 -229 268 -224 259 -229 b 227 -215 243 -229 240 -229 l 151 -142 b 32 -16 81 -80 53 -49 b 0 84 9 18 0 52 b 111 199 0 149 42 199 b 137 197 119 199 127 198 b 228 151 168 191 197 177 l 231 148 l 231 383 b 232 620 231 616 231 616 b 243 631 234 624 238 630 m 168 131 b 152 133 163 133 157 133 b 107 102 130 133 111 120 b 106 86 107 97 106 91 b 111 41 106 73 108 56 b 227 -152 125 -13 171 -90 l 231 -156 l 231 -37 l 231 80 l 225 87 b 168 131 210 111 190 126 "},vad:{x_min:0,x_max:873.828125,ha:892,o:"m 0 0 l 0 703 l 81 703 l 164 703 l 164 0 l 164 -705 l 81 -705 l 0 -705 l 0 0 m 225 0 l 225 703 l 246 703 l 268 703 l 268 366 l 268 30 l 274 36 b 314 79 284 44 302 63 b 413 302 357 137 392 213 b 432 327 419 324 421 327 b 449 306 443 327 447 322 b 611 115 457 195 529 115 b 651 122 624 115 638 117 b 728 316 705 140 724 188 b 729 388 728 342 729 366 b 671 635 729 533 711 602 b 581 662 649 652 616 662 b 477 637 545 662 510 653 l 475 635 l 477 634 b 503 627 488 632 495 631 b 545 556 532 612 545 584 b 491 480 545 524 526 491 b 465 474 481 476 473 474 b 379 563 417 474 379 516 b 389 602 379 576 382 588 b 541 691 409 641 479 681 b 582 694 555 692 568 694 b 865 462 714 694 834 598 b 873 392 871 440 873 416 b 865 317 873 367 871 341 b 639 84 839 194 748 101 b 612 83 630 83 620 83 b 511 116 577 83 543 94 b 504 120 509 119 506 120 b 504 120 504 120 504 120 b 469 59 504 120 488 93 l 432 -1 l 469 -61 b 504 -122 488 -94 504 -122 b 504 -122 504 -122 504 -122 b 511 -117 506 -122 509 -120 b 612 -84 543 -95 577 -84 b 665 -91 630 -84 647 -87 b 869 -338 771 -122 850 -216 b 873 -392 872 -356 873 -374 b 798 -595 873 -469 847 -539 b 581 -695 741 -662 660 -695 b 406 -626 517 -695 454 -671 b 381 -563 389 -607 381 -585 b 465 -477 381 -519 413 -477 b 545 -559 514 -477 545 -519 b 503 -628 545 -587 532 -613 b 477 -635 495 -632 488 -634 l 475 -637 l 477 -638 b 581 -663 510 -655 545 -663 b 671 -637 616 -663 649 -653 b 729 -391 711 -603 729 -534 b 728 -317 729 -367 728 -344 b 623 -117 722 -173 698 -124 b 611 -116 619 -116 615 -116 b 449 -308 528 -116 457 -198 b 432 -328 447 -323 443 -328 b 413 -303 421 -328 419 -326 b 314 -80 392 -215 357 -138 b 274 -37 302 -65 284 -45 l 268 -31 l 268 -367 l 268 -705 l 246 -705 l 225 -705 l 225 0 "},vb1:{x_min:78.9375,x_max:485.921875,ha:417,o:"m 362 378 b 378 380 367 380 372 380 b 472 348 415 380 453 367 b 485 315 481 338 485 327 b 462 273 485 298 477 281 b 439 267 454 269 446 267 b 398 290 424 267 409 274 b 344 319 385 309 364 319 b 281 269 315 319 289 301 b 279 262 280 266 279 262 b 276 256 279 260 277 258 b 274 249 276 254 274 251 b 238 127 273 248 257 192 b 201 4 217 61 201 5 b 166 -1 198 -1 200 -1 b 153 -1 163 -1 157 -1 b 141 -1 148 -1 144 -1 b 104 4 106 -1 107 -1 b 104 6 104 5 104 5 b 142 144 104 13 110 34 b 182 278 164 219 181 276 b 183 288 182 281 182 285 b 185 302 185 292 185 298 b 164 330 185 317 176 328 b 159 330 163 330 161 330 b 102 302 140 330 119 320 b 91 294 95 295 93 294 b 88 294 91 294 89 294 b 78 303 83 294 78 298 b 81 312 78 306 78 309 b 200 373 106 347 160 373 b 215 371 205 373 209 371 b 266 335 235 367 254 353 b 269 331 268 333 269 331 b 269 331 269 331 269 331 b 273 335 269 331 270 334 b 362 378 298 359 330 376 "},vb3:{x_min:0,x_max:227.3125,ha:232,o:"m 91 213 b 100 215 93 215 96 215 b 227 58 167 215 224 144 b 227 52 227 56 227 54 b 61 -201 227 -43 164 -138 b 29 -216 44 -212 36 -216 b 23 -210 27 -216 24 -213 b 21 -205 21 -208 21 -206 b 34 -192 21 -201 25 -197 b 122 -55 89 -161 122 -106 b 104 6 122 -33 117 -12 l 103 9 l 96 9 b 4 79 57 9 17 38 b 0 112 1 90 0 101 b 91 213 0 163 36 209 "},vb4:{x_min:-597.53125,x_max:596.171875,ha:608,o:"m -533 324 b -525 327 -530 326 -528 327 b -504 305 -514 327 -504 317 b -504 305 -504 305 -504 305 b -513 284 -504 299 -504 299 b -556 112 -541 226 -556 167 b -545 33 -556 84 -552 58 b -524 -20 -541 15 -532 -9 l -522 -23 l -491 15 l -413 111 b -355 174 -367 169 -363 174 b -351 174 -353 174 -352 174 b -254 86 -343 174 -348 179 b -168 -1 -208 37 -168 -1 b -100 84 -168 -1 -137 37 b -23 173 -28 173 -29 172 b -19 174 -21 174 -20 174 b -8 173 -14 174 -10 173 b 80 86 -5 172 13 151 b 166 -1 127 37 166 -1 b 235 84 166 -1 197 37 b 311 173 306 173 304 172 b 317 174 313 174 314 174 b 326 173 319 174 323 173 b 490 11 329 172 366 134 l 502 -1 l 530 34 b 568 76 560 72 563 74 b 575 77 570 77 573 77 b 596 56 586 77 596 68 b 594 48 596 54 596 51 b 417 -172 592 41 424 -166 b 405 -176 415 -174 409 -176 b 396 -174 401 -176 398 -176 b 307 -87 393 -173 372 -152 b 221 -1 259 -38 221 -1 b 152 -86 221 -1 190 -38 b 76 -176 81 -174 83 -173 b 70 -176 74 -176 73 -176 b 61 -174 66 -176 62 -174 b -27 -87 58 -173 38 -152 b -114 -1 -74 -38 -112 -1 b -182 -86 -114 -1 -145 -38 b -258 -176 -253 -174 -253 -173 b -264 -176 -259 -176 -262 -176 b -274 -174 -268 -176 -272 -174 b -438 -11 -277 -173 -348 -102 l -449 0 l -479 -37 b -524 -80 -513 -80 -514 -80 l -524 -80 b -553 -52 -534 -80 -540 -74 b -597 109 -583 -8 -597 48 b -560 280 -597 165 -585 224 b -533 324 -548 310 -540 322 "},vb6:{x_min:0,x_max:556.6875,ha:568,o:"m 289 545 b 298 546 292 545 295 546 b 318 533 306 546 315 541 b 319 428 319 530 319 528 l 319 327 l 334 327 b 526 223 412 326 485 285 b 543 172 537 206 543 190 b 447 76 543 122 503 76 b 445 76 446 76 446 76 b 359 165 394 77 359 119 b 368 205 359 179 362 192 b 441 251 382 233 412 251 b 455 249 446 251 451 251 b 460 248 458 249 460 248 b 460 248 460 248 460 248 b 454 254 460 249 458 251 b 334 295 419 280 378 294 l 319 295 l 319 4 l 319 -287 l 321 -285 b 328 -285 322 -285 325 -285 b 524 -99 424 -277 507 -198 b 541 -79 526 -84 530 -79 b 556 -97 551 -79 556 -84 b 548 -133 556 -105 553 -117 b 334 -317 521 -233 434 -306 b 322 -319 329 -317 323 -317 l 319 -319 l 319 -424 b 319 -471 319 -444 319 -459 b 313 -541 319 -544 318 -535 b 298 -548 308 -545 303 -548 b 279 -534 289 -548 281 -542 b 277 -424 277 -531 277 -530 l 277 -317 l 273 -317 b 13 -95 153 -305 51 -217 b 0 2 4 -62 0 -29 b 182 295 0 126 66 238 b 274 324 210 309 249 320 l 277 324 l 277 427 b 279 533 277 528 277 530 b 289 545 281 538 285 542 m 277 2 b 277 291 277 161 277 291 b 268 288 277 291 273 290 b 144 1 179 265 144 184 b 276 -284 144 -199 175 -267 l 277 -285 l 277 2 "},vb7:{x_min:-176.9375,x_max:251.8125,ha:257,o:"m -8 631 b -1 632 -6 632 -4 632 b 19 620 8 632 16 628 b 20 503 20 616 20 614 b 20 391 20 442 20 391 b 84 424 20 391 49 406 l 147 456 l 152 456 b 153 456 153 456 153 456 b 175 435 166 456 175 446 b 172 427 175 433 174 430 b 92 380 170 420 172 421 l 20 342 l 20 245 l 20 148 l 21 151 b 137 199 59 183 99 199 b 182 191 152 199 167 197 b 251 84 227 176 251 134 b 228 0 251 58 243 29 b 100 -142 206 -40 178 -72 l 23 -215 b 0 -229 9 -229 6 -229 b -20 -216 -9 -229 -17 -224 b -21 54 -21 -212 -21 -212 b -21 322 -21 201 -21 322 b -85 290 -21 322 -50 308 l -148 256 l -153 256 b -155 256 -155 256 -155 256 b -176 277 -167 256 -176 266 b -174 285 -176 280 -175 283 b -93 333 -171 294 -174 292 l -21 370 l -21 494 b -20 620 -21 616 -21 616 b -8 631 -17 624 -13 630 m 110 131 b 96 133 106 133 100 133 b 89 133 93 133 91 133 b 24 87 63 129 40 113 l 20 80 l 20 -37 l 20 -156 l 23 -152 b 144 81 96 -72 144 20 l 144 83 b 110 131 144 113 134 126 "},vb9:{x_min:-122.5,x_max:121.140625,ha:124,o:"m -16 145 b 0 147 -10 147 -5 147 b 121 -1 66 147 121 77 b 114 -49 121 -16 118 -33 b -1 -148 95 -112 47 -148 b -85 -106 -31 -148 -61 -134 b -122 -1 -110 -76 -122 -38 b -16 145 -122 68 -81 134 m 12 111 b 0 113 8 113 4 113 b -68 22 -29 113 -61 73 b -70 0 -69 15 -70 6 b -13 -113 -70 -49 -47 -98 b -1 -115 -9 -115 -5 -115 b 63 -40 24 -115 53 -83 b 68 -1 66 -27 68 -15 b 12 111 68 48 46 97 "},vba:{x_min:-118.421875,x_max:597.53125,ha:381,o:"m 460 574 b 464 574 461 574 462 574 b 488 574 470 574 481 574 b 500 573 491 574 498 574 b 594 503 543 570 588 538 b 597 488 596 498 597 494 b 528 417 597 449 564 417 b 502 423 519 417 510 419 b 465 481 477 434 465 458 b 488 528 465 499 472 516 b 490 530 490 530 490 530 b 490 530 490 530 490 530 b 468 517 488 530 475 523 b 349 340 419 485 377 420 b 347 330 348 334 347 330 b 383 328 347 328 363 328 b 428 326 423 328 424 328 b 442 302 438 320 442 312 b 430 281 442 294 438 285 b 385 276 424 277 426 276 l 377 276 l 332 276 l 330 269 b 178 -117 303 126 250 -9 b 1 -249 129 -194 69 -237 b -20 -251 -6 -251 -13 -251 b -114 -187 -65 -251 -100 -227 b -118 -156 -117 -177 -118 -166 b -51 -84 -118 -116 -91 -84 b -31 -87 -46 -84 -39 -86 b 16 -152 0 -95 16 -124 b -12 -205 16 -173 8 -194 b -16 -208 -14 -206 -16 -208 b -14 -208 -16 -208 -14 -208 b -9 -206 -14 -208 -12 -208 b 74 -124 23 -197 54 -166 b 172 224 98 -79 125 22 b 185 276 178 252 183 274 b 185 276 185 276 185 276 b 141 276 185 276 181 276 b 91 280 96 276 96 276 b 77 302 83 285 77 294 b 91 326 77 312 83 320 b 148 328 95 328 96 328 l 198 330 l 202 341 b 460 574 249 473 351 566 "},vbf:{x_min:-53.078125,x_max:513.140625,ha:485,o:"m 185 383 b 196 384 187 383 191 384 b 277 334 230 384 259 365 b 288 301 281 324 288 306 b 288 297 288 298 288 297 b 294 302 289 297 291 299 b 394 370 323 338 367 367 b 404 371 398 370 401 371 b 510 272 453 371 498 328 b 513 237 513 262 513 251 b 507 172 513 217 511 192 b 326 -34 487 59 412 -26 b 314 -36 322 -36 318 -36 b 274 -24 298 -36 283 -31 l 265 -16 b 224 44 246 -1 232 20 b 223 49 224 47 223 49 b 223 49 223 49 223 49 b 149 -197 221 48 149 -194 b 149 -198 149 -197 149 -198 b 170 -210 149 -202 155 -205 b 187 -215 174 -210 175 -212 b 204 -231 201 -219 204 -222 b 197 -245 204 -240 202 -242 l 194 -248 l 76 -248 l -42 -248 l -46 -245 b -53 -231 -51 -242 -53 -240 b -35 -215 -53 -222 -49 -217 b -13 -210 -21 -212 -20 -212 b -6 -208 -10 -209 -8 -208 b 0 -206 -6 -208 -2 -206 b 25 -188 13 -201 21 -195 b 163 280 28 -183 163 276 b 166 291 163 283 164 287 b 167 302 167 295 167 299 b 155 324 167 315 161 324 b 155 324 155 324 155 324 b 65 230 125 322 85 280 b 53 215 61 217 58 215 b 51 215 53 215 51 215 b 42 224 46 215 42 217 b 57 263 42 231 47 244 b 140 360 77 305 104 337 b 152 370 144 365 149 369 b 185 383 157 376 172 381 m 374 306 b 366 308 371 308 368 308 b 300 273 348 308 321 294 b 284 254 288 262 287 259 b 280 242 283 249 281 245 b 257 169 279 240 270 213 l 236 98 l 236 93 b 251 48 238 77 243 61 b 279 27 258 37 272 27 b 281 27 279 27 280 27 b 291 31 281 27 287 30 b 396 170 334 52 378 109 b 406 247 402 197 406 224 b 401 277 406 259 405 270 b 374 306 397 290 383 303 "},vc3:{x_min:-10.890625,x_max:299.4375,ha:294,o:"m 136 460 b 142 462 137 462 140 462 b 166 449 152 462 161 456 b 171 428 168 446 168 445 b 288 131 194 322 238 209 b 298 115 295 120 296 117 b 299 106 298 112 299 109 b 273 81 299 91 287 81 b 255 86 268 81 261 83 b 155 116 225 104 183 116 l 152 116 l 149 108 b 141 83 148 102 144 91 b 134 48 137 69 134 58 b 149 9 134 34 140 24 b 153 -1 152 5 153 1 b 149 -9 153 -5 152 -6 b 144 -11 148 -11 147 -11 b 122 2 138 -11 133 -6 b 95 61 104 20 95 38 b 107 108 95 74 99 90 b 108 113 107 111 108 112 b 107 113 108 113 108 113 b 102 113 106 113 104 113 b 31 86 76 108 53 98 b 14 80 24 81 20 80 b -10 106 0 80 -10 91 b 0 131 -10 115 -9 116 b 115 430 49 209 91 317 b 136 460 119 451 123 456 "},vd0:{x_min:-10.890625,x_max:299.4375,ha:294,o:"m 44 174 b 51 174 47 174 49 174 b 68 173 55 174 61 174 l 287 112 l 551 40 b 615 20 617 22 609 23 b 626 0 622 16 626 8 b 615 -22 626 -9 622 -18 b 613 -23 613 -23 613 -23 b 613 -23 613 -23 613 -23 b 287 -113 613 -24 597 -29 l 68 -174 b 53 -176 61 -176 57 -176 b 39 -172 47 -176 43 -174 b 27 -151 31 -167 27 -159 b 39 -129 27 -141 31 -133 b 230 -74 43 -124 20 -131 l 370 -36 l 468 -9 b 498 0 484 -4 498 -1 b 468 8 498 0 484 2 l 370 34 l 230 73 b 40 126 28 129 43 124 b 27 149 31 131 27 140 b 44 174 27 161 34 170 m 205 110 l 205 300 b 205 330 245 330 245 300 l 245 300 l 245 -300 b 245 -330 205 -330 205 -300 l 205 -300 l 205 110 l 345 90 m 345 90 l 345 330 b 345 360 385 360 385 330 l 385 330 l 385 -270 b 385 -300 345 -300 345 -270 l 345 -270 l 345 90 "},vd1:{x_min:-20,x_max:320,ha:257,o:"m -8 200 b -8 210 8 200 16 200 l 20 148 -199 l 23 -615 b 0 -629 9 -629 6 -629 l -21 -612 l -21 -201 l -21 216 l -20 200 m 16 200 l 310 0 l 240 0 l 16 140 l 16 -120 l 240 0 l 310 0 l 16 -200 "},vd2:{x_min:0,x_max:430.75,ha:386,o:"m 0 200 l 0 -200 l 430 -200 l 430 200 l 0 200 "},vd3:{x_min:0,x_max:430.75,ha:386,o:"m 0 200 l 0 -200 l 430 -200 l 430 200 l 0 200 l 50 150 l 380 150 l 380 -150 l 50 -150 l 50 150 "},vd4:{x_min:0,x_max:430.75,ha:360,o:"m 0 150 l 0 -150 l 430 -150 l 430 150 l 0 150 "},vd5:{x_min:0,x_max:430.75,ha:360,o:"m 0 150 l 0 -150 l 430 -150 l 430 150 l 0 150 l 50 100 l 380 100 l 380 -100 l 50 -100 l 50 100"},vd6:{x_min:0,x_max:430.75,ha:360,o:"m -146 537 b -138 538 -143 538 -141 538 b -118 525 -129 538 -121 533 b -117 390 -117 522 -117 521 b -115 259 -117 268 -117 259 b -115 259 -115 259 -115 259 b -59 272 -104 263 -62 272 b -39 259 -50 272 -42 267 b -37 209 -38 257 -37 233 b -39 159 -37 185 -38 162 b -85 138 -43 149 -44 149 l -117 131 l -117 21 b -115 -88 -117 -80 -117 -88 b -115 -88 -115 -88 -115 -88 b -59 -75 -104 -84 -62 -75 b -44 -81 -52 -75 -48 -77 b -38 -124 -38 -87 -38 -85 b -38 -138 -38 -124 -38 -138 b -38 -152 -38 -138 -38 -152 b -44 -195 -38 -191 -38 -190 b -85 -209 -48 -200 -48 -200 l -117 -217 l -117 -349 b -118 -486 -117 -481 -117 -482 b -138 -499 -121 -494 -129 -499 b -153 -493 -143 -499 -149 -497 b -159 -415 -158 -487 -159 -496 b -159 -355 -159 -398 -159 -379 b -159 -227 -159 -284 -159 -227 b -205 -238 -159 -227 -180 -232 b -250 -249 -230 -244 -250 -249 b -251 -386 -251 -249 -251 -311 b -252 -525 -251 -521 -251 -522 b -272 -538 -255 -534 -264 -538 b -287 -532 -277 -538 -283 -536 b -293 -452 -292 -527 -293 -536 b -293 -391 -293 -436 -293 -415 b -294 -260 -293 -269 -293 -260 b -294 -260 -294 -260 -294 -260 b -348 -272 -306 -264 -345 -272 b -368 -259 -357 -272 -365 -267 b -369 -209 -369 -257 -369 -233 b -368 -159 -369 -185 -369 -162 b -323 -139 -364 -149 -362 -148 l -293 -131 l -293 -22 b -294 87 -293 80 -293 87 b -294 87 -294 87 -294 87 b -348 75 -306 84 -345 75 b -368 88 -357 75 -365 80 b -369 138 -369 91 -369 114 b -368 188 -369 162 -369 186 b -323 209 -364 198 -362 199 l -293 216 l -293 349 b -292 486 -293 481 -293 482 b -272 499 -288 494 -280 499 b -257 493 -266 499 -261 497 b -251 414 -251 487 -251 496 b -251 354 -251 398 -251 378 b -251 226 -251 284 -251 226 b -205 238 -250 226 -230 231 b -159 249 -180 244 -159 249 b -159 385 -159 249 -159 310 b -157 525 -159 521 -159 522 b -146 537 -156 530 -151 535 z m -159 11 b -159 120 -159 98 -159 120 l -159 120 b -175 116 -160 120 -167 119 b -221 105 -184 114 -204 109 l -251 98 l -251 -12 b -251 -121 -251 -72 -251 -121 b -205 -110 -250 -121 -230 -116 b -159 -99 -180 -104 -159 -99 b -159 11 -159 -99 -159 -49 z m 89 517 b 97 519 92 518 94 519 b 117 505 106 519 114 513 b 119 376 119 502 119 501 l 119 249 l 145 258 b 176 267 169 266 172 267 b 177 267 176 267 177 267 b 196 255 186 267 192 263 l 197 252 l 197 205 b 197 181 197 195 197 187 b 193 149 197 153 197 153 b 152 131 190 144 187 143 l 119 120 l 119 10 b 119 -100 119 -62 119 -100 b 145 -91 120 -100 131 -96 b 173 -82 159 -86 171 -82 b 176 -81 174 -81 175 -81 b 196 -94 185 -81 193 -87 b 198 -151 197 -97 198 -125 b 197 -194 198 -172 197 -192 b 153 -218 193 -203 192 -204 l 119 -230 l 119 -367 l 118 -504 l 117 -507 b 97 -519 113 -514 105 -519 b 82 -512 92 -519 87 -517 b 76 -434 77 -507 76 -516 b 76 -374 76 -418 76 -398 b 76 -245 76 -303 76 -245 b 52 -254 76 -245 65 -249 b 19 -263 34 -260 25 -263 b 6 -257 13 -263 10 -261 b 0 -214 0 -251 0 -253 b 0 -200 0 -210 0 -205 b 0 -188 0 -196 0 -192 b 6 -143 0 -147 0 -149 b 46 -126 10 -139 10 -139 l 76 -115 l 76 -5 b 76 106 76 56 76 106 b 51 98 76 106 64 102 b 18 89 34 92 25 89 b 6 95 13 89 10 91 b 0 139 0 101 0 99 b 0 153 0 143 0 148 b 0 179 0 163 0 172 b 44 225 0 215 3 211 l 76 236 l 76 369 b 78 505 76 501 76 502 b 89 517 80 510 85 515 z "},vd7:{x_min:0,x_max:430.75,ha:360,o:"m 283 633 b 291 634 286 634 289 634 b 311 621 300 634 308 629 b 313 505 313 618 313 617 b 313 393 313 443 313 393 b 378 425 313 393 343 407 l 443 458 l 448 458 b 449 458 449 458 449 458 b 471 437 462 458 471 448 b 469 429 471 434 470 432 b 387 382 466 421 469 423 l 313 344 l 313 247 l 313 150 l 315 152 b 433 201 353 184 394 201 b 479 193 448 201 464 198 b 549 86 524 177 549 135 b 526 1 549 59 541 29 b 395 -143 504 -39 475 -71 b 316 -214 351 -182 341 -191 b 292 -229 302 -228 300 -229 b 272 -216 283 -229 275 -224 b 271 55 271 -212 271 -212 b 270 323 271 203 270 323 b 205 291 270 323 241 308 l 140 258 l 135 258 b 134 258 135 258 134 258 b 112 279 121 258 112 267 b 114 287 112 281 113 284 b 196 334 117 295 114 293 l 271 371 l 271 495 b 272 621 271 617 271 618 b 283 633 274 626 279 631 z m 404 133 b 391 134 400 134 395 134 b 384 134 388 134 386 134 b 318 88 358 130 335 114 l 313 81 l 313 -37 l 313 -156 l 316 -152 b 439 83 391 -71 439 22 l 439 84 b 404 133 439 115 430 128 z m -8 633 l -8 633 b 0 634 -6 634 -3 634 b 20 621 8 634 17 629 b 21 384 21 618 21 617 l 21 150 l 24 152 b 141 201 62 184 102 201 b 187 193 157 201 172 198 b 257 86 232 177 257 135 b 234 1 257 59 250 29 b 103 -143 212 -39 183 -71 b 24 -214 60 -182 49 -191 b 0 -229 10 -228 8 -229 b -20 -216 -9 -229 -17 -224 l -21 -212 l -21 203 l -21 618 l -20 621 b -8 633 -18 626 -13 631 z m 113 133 l 113 133 b 99 134 109 134 103 134 b 93 134 97 134 94 134 b 26 88 66 130 43 114 l 21 81 l 21 -37 l 21 -156 l 25 -152 b 148 83 99 -71 148 22 l 148 84 b 113 133 148 115 138 128 z "}},cssFontWeight:"normal",ascender:1903,underlinePosition:-125,cssFontStyle:"normal",boundingBox:{yMin:-2065.375,xMin:-695.53125,yMax:1901.578125,xMax:1159.671875},resolution:1e3,descender:-2066,familyName:"VexFlow-18",lineHeight:4093,underlineThickness:50};function d(t,e,n,i,s,r){let o,a,c,l=0;function u(){return e+t[l++]*i}function h(){return n+t[l++]*s}for(;l<t.length;)switch(o=t[l++],o){case"m":case"l":r[o](u(),h());break;case"q":a=u(),c=h(),r.q(u(),h(),a,c);break;case"b":a=u(),c=h(),r.b(u(),h(),u(),h(),a,c)}}class f extends c{static loadMetrics(t,e,n){const s=t.glyphs[e];if(!s)throw new i.RERR("BadGlyph",`Glyph ${e} does not exist in font.`);const r=s.x_min,o=s.x_max,a=s.ha;let c;if(s.o)return n?s.cached_outline?c=s.cached_outline:(c=s.o.split(" "),s.cached_outline=c):(s.cached_outline&&delete s.cached_outline,c=s.o.split(" ")),{x_min:r,x_max:o,ha:a,outline:c};throw new i.RERR("BadGlyph",`Glyph ${e} has no outline defined.`)}static renderGlyph(t,e,n,i,s,r){const o=72*i/(100*h.resolution),a=f.loadMetrics(h,s,!r);f.renderOutline(t,a.outline,o,e,n)}static renderOutline(t,e,n,i,s){t.beginPath(),t.moveTo(i,s),d(e,i,s,n,-n,{m:t.moveTo.bind(t),l:t.lineTo.bind(t),q:t.quadraticCurveTo.bind(t),b:t.bezierCurveTo.bind(t)}),t.fill()}static getOutlineBoundingBox(t,e,n,i){const s=new l;return d(t,n,i,e,-e,{m:s.addPoint.bind(s),l:s.addPoint.bind(s),q:s.addQuadraticCurve.bind(s),b:s.addBezierCurve.bind(s)}),new u(s.x1,s.y1,s.width(),s.height())}constructor(t,e,n){super(),this.setAttribute("type","Glyph"),this.code=t,this.point=e,this.options={cache:!0,font:h},this.metrics=null,this.x_shift=0,this.y_shift=0,this.originShift={x:0,y:0},n?this.setOptions(n):this.reset()}setOptions(t){i.Merge(this.options,t),this.reset()}setPoint(t){return this.point=t,this}setStave(t){return this.stave=t,this}setXShift(t){return this.x_shift=t,this}setYShift(t){return this.y_shift=t,this}reset(){this.scale=72*this.point/(100*this.options.font.resolution),this.metrics=f.loadMetrics(this.options.font,this.code,this.options.cache),this.bbox=f.getOutlineBoundingBox(this.metrics.outline,this.scale,0,0)}getMetrics(){if(!this.metrics)throw new i.RuntimeError("BadGlyph",`Glyph ${this.code} is not initialized.`);return{x_min:this.metrics.x_min*this.scale,x_max:this.metrics.x_max*this.scale,width:this.bbox.getW(),height:this.bbox.getH()}}setOriginX(t){const{bbox:e}=this,n=(t-Math.abs(e.getX()/e.getW()))*e.getW();this.originShift.x=-n}setOriginY(t){const{bbox:e}=this,n=(t-Math.abs(e.getY()/e.getH()))*e.getH();this.originShift.y=-n}setOrigin(t,e){this.setOriginX(t),this.setOriginY(e)}render(t,e,n){if(!this.metrics)throw new i.RuntimeError("BadGlyph",`Glyph ${this.code} is not initialized.`);const s=this.metrics.outline,r=this.scale;this.setRendered(),this.applyStyle(t),f.renderOutline(t,s,r,e+this.originShift.x,n+this.originShift.y),this.restoreStyle(t)}renderToStave(t){if(this.checkContext(),!this.metrics)throw new i.RuntimeError("BadGlyph",`Glyph ${this.code} is not initialized.`);if(!this.stave)throw new i.RuntimeError("GlyphError","No valid stave");const e=this.metrics.outline,n=this.scale;this.setRendered(),this.applyStyle(),f.renderOutline(this.context,e,n,t+this.x_shift,this.stave.getYForGlyphs()+this.y_shift),this.restoreStyle()}}const p={STEM_WIDTH:1.5,STEM_HEIGHT:35,STAVE_LINE_THICKNESS:1,RESOLUTION:16384,DEFAULT_NOTATION_FONT_SCALE:39,DEFAULT_TABLATURE_FONT_SCALE:39,SLASH_NOTEHEAD_WIDTH:15,TEXT_HEIGHT_OFFSET_HACK:1,IsKerned:!0,clefProperties:t=>{if(!t)throw new i.RERR("BadArgument","Invalid clef: "+t);const e=p.clefProperties.values[t];if(!e)throw new i.RERR("BadArgument","Invalid clef: "+t);return e}};p.clefProperties.values={treble:{line_shift:0},bass:{line_shift:6},tenor:{line_shift:4},alto:{line_shift:3},soprano:{line_shift:1},percussion:{line_shift:0},"mezzo-soprano":{line_shift:2},"baritone-c":{line_shift:5},"baritone-f":{line_shift:5},subbass:{line_shift:7},french:{line_shift:-1}},p.keyProperties=(t,e,n)=>{void 0===e&&(e="treble");const s={octave_shift:0};"object"==typeof n&&i.Merge(s,n);const r=t.split("/");if(r.length<2)throw new i.RERR("BadArguments","Key must have note + octave and an optional glyph: "+t);const o=r[0].toUpperCase(),a=p.keyProperties.note_values[o];if(!a)throw new i.RERR("BadArguments","Invalid key name: "+o);a.octave&&(r[1]=a.octave);let c=parseInt(r[1],10);c+=-1*s.octave_shift;let l=(7*c-28+a.index)/2;l+=p.clefProperties(e).line_shift;let u=0;l<=0&&2*l%2==0&&(u=1),l>=6&&2*l%2==0&&(u=-1);const h=void 0!==a.int_val?12*c+a.int_val:null,d=a.code,f=a.shift_right;let m={};if(r.length>2&&r[2]){const t=r[2].toUpperCase();m=p.keyProperties.customNoteHeads[t]||{}}return{key:o,octave:c,line:l,int_value:h,accidental:a.accidental,code:d,stroke:u,shift_right:f,displaced:!1,...m}},p.keyProperties.note_values={C:{index:0,int_val:0,accidental:null},CN:{index:0,int_val:0,accidental:"n"},"C#":{index:0,int_val:1,accidental:"#"},"C##":{index:0,int_val:2,accidental:"##"},CB:{index:0,int_val:-1,accidental:"b"},CBB:{index:0,int_val:-2,accidental:"bb"},D:{index:1,int_val:2,accidental:null},DN:{index:1,int_val:2,accidental:"n"},"D#":{index:1,int_val:3,accidental:"#"},"D##":{index:1,int_val:4,accidental:"##"},DB:{index:1,int_val:1,accidental:"b"},DBB:{index:1,int_val:0,accidental:"bb"},E:{index:2,int_val:4,accidental:null},EN:{index:2,int_val:4,accidental:"n"},"E#":{index:2,int_val:5,accidental:"#"},"E##":{index:2,int_val:6,accidental:"##"},EB:{index:2,int_val:3,accidental:"b"},EBB:{index:2,int_val:2,accidental:"bb"},F:{index:3,int_val:5,accidental:null},FN:{index:3,int_val:5,accidental:"n"},"F#":{index:3,int_val:6,accidental:"#"},"F##":{index:3,int_val:7,accidental:"##"},FB:{index:3,int_val:4,accidental:"b"},FBB:{index:3,int_val:3,accidental:"bb"},G:{index:4,int_val:7,accidental:null},GN:{index:4,int_val:7,accidental:"n"},"G#":{index:4,int_val:8,accidental:"#"},"G##":{index:4,int_val:9,accidental:"##"},GB:{index:4,int_val:6,accidental:"b"},GBB:{index:4,int_val:5,accidental:"bb"},A:{index:5,int_val:9,accidental:null},AN:{index:5,int_val:9,accidental:"n"},"A#":{index:5,int_val:10,accidental:"#"},"A##":{index:5,int_val:11,accidental:"##"},AB:{index:5,int_val:8,accidental:"b"},ABB:{index:5,int_val:7,accidental:"bb"},B:{index:6,int_val:11,accidental:null},BN:{index:6,int_val:11,accidental:"n"},"B#":{index:6,int_val:12,accidental:"#"},"B##":{index:6,int_val:13,accidental:"##"},BB:{index:6,int_val:10,accidental:"b"},BBB:{index:6,int_val:9,accidental:"bb"},R:{index:6,int_val:9,rest:!0},X:{index:6,accidental:"",octave:4,code:"v3e",shift_right:5.5}},p.keyProperties.customNoteHeads={D0:{code:"v27",shift_right:0,stem_up_x_offset:0,stem_down_x_offset:0,stem_up_y_offset:-1,stem_down_y_offset:0},D1:{code:"v2d",shift_right:-.5},D2:{code:"v22",shift_right:-.5},D3:{code:"v70",shift_right:-.5},T0:{code:"v49",shift_right:-2,stem_up_y_offset:-4,stem_down_y_offset:4},T1:{code:"v93",shift_right:.5,stem_up_y_offset:-4,stem_down_y_offset:4},T2:{code:"v40",shift_right:.5,stem_up_y_offset:-4,stem_down_y_offset:4},T3:{code:"v7d",shift_right:.5,stem_up_y_offset:-4,stem_down_y_offset:4},X0:{code:"v92",stem_up_x_offset:-2,stem_down_x_offset:0,stem_up_y_offset:4,stem_down_y_offset:4},X1:{code:"v95",shift_right:-.5,stem_up_y_offset:4,stem_down_y_offset:4},X2:{code:"v3e",shift_right:.5,stem_up_y_offset:4,stem_down_y_offset:4},X3:{code:"v3b",shift_right:0,stem_up_x_offset:-1.2,stem_down_x_offset:0,stem_up_y_offset:-1,stem_down_y_offset:2},S1:{code:"vd3",shift_right:0},S2:{code:"vd2",shift_right:0},R1:{code:"vd5",shift_right:0},R2:{code:"vd4",shift_right:0}},p.integerToNote=t=>{if(void 0===t)throw new i.RERR("BadArguments","Undefined integer for integerToNote");if(t<-2)throw new i.RERR("BadArguments","integerToNote requires integer > -2: "+t);const e=p.integerToNote.table[t];if(!e)throw new i.RERR("BadArguments","Unknown note value for integer: "+t);return e},p.integerToNote.table={0:"C",1:"C#",2:"D",3:"D#",4:"E",5:"F",6:"F#",7:"G",8:"G#",9:"A",10:"A#",11:"B"},p.tabToGlyph=(t,e=1)=>{let n=null,i=0,s=0;if("X"===t.toString().toUpperCase()){const t=new f("v7f",p.DEFAULT_TABLATURE_FONT_SCALE).getMetrics();n="v7f",i=t.width,s=-t.height/2}else i=p.textWidth(t.toString());return{text:t,code:n,getWidth:()=>i*e,shift_y:s}},p.textWidth=t=>7*t.toString().length,p.articulationCodes=t=>p.articulationCodes.articulations[t],p.articulationCodes.articulations={"a.":{code:"v23",between_lines:!0},av:{code:"v28",between_lines:!0},"a>":{code:"v42",between_lines:!0},"a-":{code:"v25",between_lines:!0},"a^":{code:"va",between_lines:!1},"a+":{code:"v8b",between_lines:!1},ao:{code:"v94",between_lines:!1},ah:{code:"vb9",between_lines:!1},"a@a":{code:"v43",between_lines:!1},"a@u":{code:"v5b",between_lines:!1},"a|":{code:"v75",between_lines:!1},am:{code:"v97",between_lines:!1},"a,":{code:"vb3",between_lines:!1}},p.accidentalCodes=t=>p.accidentalCodes.accidentals[t],p.accidentalCodes.accidentals={"#":{code:"v18",parenRightPaddingAdjustment:-1},"##":{code:"v7f",parenRightPaddingAdjustment:-1},b:{code:"v44",parenRightPaddingAdjustment:-2},bb:{code:"v26",parenRightPaddingAdjustment:-2},n:{code:"v4e",parenRightPaddingAdjustment:-1},"{":{code:"v9c",parenRightPaddingAdjustment:-1},"}":{code:"v84",parenRightPaddingAdjustment:-1},db:{code:"v9e",parenRightPaddingAdjustment:-1},d:{code:"vab",parenRightPaddingAdjustment:0},bbs:{code:"v90",parenRightPaddingAdjustment:-1},"++":{code:"v51",parenRightPaddingAdjustment:-1},"+":{code:"v78",parenRightPaddingAdjustment:-1},"+-":{code:"v8d",parenRightPaddingAdjustment:-1},"++-":{code:"v7a",parenRightPaddingAdjustment:-1},bs:{code:"vb7",parenRightPaddingAdjustment:-1},bss:{code:"v39",parenRightPaddingAdjustment:-1},o:{code:"vd0",parenRightPaddingAdjustment:-1},k:{code:"vd1",parenRightPaddingAdjustment:-1},ashs:{code:"vd6",parenRightPaddingAdjustment:-1},afhf:{code:"vd7",parenRightPaddingAdjustment:-1}},p.accidentalColumnsTable={1:{a:[1],b:[1]},2:{a:[1,2]},3:{a:[1,3,2],b:[1,2,1],second_on_bottom:[1,2,3]},4:{a:[1,3,4,2],b:[1,2,3,1],spaced_out_tetrachord:[1,2,1,2]},5:{a:[1,3,5,4,2],b:[1,2,4,3,1],spaced_out_pentachord:[1,2,3,2,1],very_spaced_out_pentachord:[1,2,1,2,1]},6:{a:[1,3,5,6,4,2],b:[1,2,4,5,3,1],spaced_out_hexachord:[1,3,2,1,3,2],very_spaced_out_hexachord:[1,2,1,2,1,2]}},p.ornamentCodes=t=>p.ornamentCodes.ornaments[t],p.ornamentCodes.ornaments={mordent:{code:"v1e"},mordent_inverted:{code:"v45"},turn:{code:"v72"},turn_inverted:{code:"v33"},tr:{code:"v1f"},upprall:{code:"v60"},downprall:{code:"vb4"},prallup:{code:"v6d"},pralldown:{code:"v2c"},upmordent:{code:"v29"},downmordent:{code:"v68"},lineprall:{code:"v20"},prallprall:{code:"v86"}},p.keySignature=t=>{const e=p.keySignature.keySpecs[t];if(!e)throw new i.RERR("BadKeySignature",`Bad key signature spec: '${t}'`);if(!e.acc)return[];const n=p.keySignature.accidentalList(e.acc),s=[];for(let i=0;i<e.num;++i){const t=n[i];s.push({type:e.acc,line:t})}return s},p.keySignature.keySpecs={C:{acc:null,num:0},Am:{acc:null,num:0},F:{acc:"b",num:1},Dm:{acc:"b",num:1},Bb:{acc:"b",num:2},Gm:{acc:"b",num:2},Eb:{acc:"b",num:3},Cm:{acc:"b",num:3},Ab:{acc:"b",num:4},Fm:{acc:"b",num:4},Db:{acc:"b",num:5},Bbm:{acc:"b",num:5},Gb:{acc:"b",num:6},Ebm:{acc:"b",num:6},Cb:{acc:"b",num:7},Abm:{acc:"b",num:7},G:{acc:"#",num:1},Em:{acc:"#",num:1},D:{acc:"#",num:2},Bm:{acc:"#",num:2},A:{acc:"#",num:3},"F#m":{acc:"#",num:3},E:{acc:"#",num:4},"C#m":{acc:"#",num:4},B:{acc:"#",num:5},"G#m":{acc:"#",num:5},"F#":{acc:"#",num:6},"D#m":{acc:"#",num:6},"C#":{acc:"#",num:7},"A#m":{acc:"#",num:7}},p.unicode={sharp:String.fromCharCode(parseInt("266F",16)),flat:String.fromCharCode(parseInt("266D",16)),natural:String.fromCharCode(parseInt("266E",16)),triangle:String.fromCharCode(parseInt("25B3",16)),"o-with-slash":String.fromCharCode(parseInt("00F8",16)),degrees:String.fromCharCode(parseInt("00B0",16)),circle:String.fromCharCode(parseInt("25CB",16))},p.keySignature.accidentalList=t=>({b:[2,.5,2.5,1,3,1.5,3.5],"#":[0,1.5,-.5,1,2.5,.5,2]}[t]),p.parseNoteDurationString=t=>{if("string"!=typeof t)return null;const e=/(\d*\/?\d+|[a-z])(d*)([nrhms]|$)/.exec(t);if(!e)return null;const n=e[1],i=e[2].length;let s=e[3];return 0===s.length&&(s="n"),{duration:n,dots:i,type:s}},p.parseNoteStruct=t=>{const e=t.duration,n=p.parseNoteDurationString(e);if(!n)return null;let i=p.durationToTicks(n.duration);if(null==i)return null;let s=t.type;const r=[];if(s){if(!p.getGlyphProps.validTypes[s])return null}else s=n.type||"n",void 0!==t.keys&&t.keys.forEach((t,e)=>{const n=t.split("/");n&&3===n.length&&(r[e]=n[2])});const o=t.dots?t.dots:n.dots;if("number"!=typeof o)return null;let a=i;for(let c=0;c<o;c++){if(a<=1)return null;a/=2,i+=a}return{duration:n.duration,type:s,customTypes:r,dots:o,ticks:i}},p.sanitizeDuration=t=>{const e=p.durationAliases[t];if(void 0!==e&&(t=e),void 0===p.durationToTicks.durations[t])throw new i.RERR("BadArguments","The provided duration is not valid: "+t);return t},p.durationToFraction=t=>(new s).parse(p.sanitizeDuration(t)),p.durationToNumber=t=>p.durationToFraction(t).value(),p.durationToTicks=t=>{t=p.sanitizeDuration(t);const e=p.durationToTicks.durations[t];return void 0===e?null:e},p.durationToTicks.durations={"1/2":2*p.RESOLUTION,1:p.RESOLUTION/1,2:p.RESOLUTION/2,4:p.RESOLUTION/4,8:p.RESOLUTION/8,16:p.RESOLUTION/16,32:p.RESOLUTION/32,64:p.RESOLUTION/64,128:p.RESOLUTION/128,256:p.RESOLUTION/256},p.durationAliases={w:"1",h:"2",q:"4",b:"256"},p.getGlyphProps=(t,e)=>{t=p.sanitizeDuration(t);const n=p.getGlyphProps.duration_codes[t];if(void 0===n)return null;e||(e="n");let i=n.type[e];if(void 0===i){const t=p.keyProperties.customNoteHeads[e.toUpperCase()];if(void 0===t)return null;i={code_head:t.code,...t}}return{...n.common,...i}},p.getGlyphProps.validTypes={n:{name:"note"},r:{name:"rest"},h:{name:"harmonic"},m:{name:"muted"},s:{name:"slash"}},p.getGlyphProps.duration_codes={"1/2":{common:{getWidth(t=p.DEFAULT_NOTATION_FONT_SCALE){return new f(this.code_head||"v53",t).getMetrics().width},stem:!1,stem_offset:0,flag:!1,stem_up_extension:-p.STEM_HEIGHT,stem_down_extension:-p.STEM_HEIGHT,tabnote_stem_up_extension:-p.STEM_HEIGHT,tabnote_stem_down_extension:-p.STEM_HEIGHT,dot_shiftY:0,line_above:0,line_below:0},type:{n:{code_head:"v53"},h:{code_head:"v59"},m:{code_head:"vf",stem_offset:0},r:{code_head:"v31",rest:!0,position:"B/5",dot_shiftY:.5},s:{getWidth:()=>p.SLASH_NOTEHEAD_WIDTH,position:"B/4"}}},1:{common:{getWidth(t=p.DEFAULT_NOTATION_FONT_SCALE){return new f(this.code_head||"v1d",t).getMetrics().width},stem:!1,stem_offset:0,flag:!1,stem_up_extension:-p.STEM_HEIGHT,stem_down_extension:-p.STEM_HEIGHT,tabnote_stem_up_extension:-p.STEM_HEIGHT,tabnote_stem_down_extension:-p.STEM_HEIGHT,dot_shiftY:0,line_above:0,line_below:0},type:{n:{code_head:"v1d"},h:{code_head:"v46"},m:{code_head:"v92",stem_offset:-3},r:{code_head:"v5c",rest:!0,position:"D/5",dot_shiftY:.5},s:{getWidth:()=>p.SLASH_NOTEHEAD_WIDTH,position:"B/4"}}},2:{common:{getWidth(t=p.DEFAULT_NOTATION_FONT_SCALE){return new f(this.code_head||"v81",t).getMetrics().width},stem:!0,stem_offset:0,flag:!1,stem_up_extension:0,stem_down_extension:0,tabnote_stem_up_extension:0,tabnote_stem_down_extension:0,dot_shiftY:0,line_above:0,line_below:0},type:{n:{code_head:"v81"},h:{code_head:"v2d"},m:{code_head:"v95",stem_offset:-3},r:{code_head:"vc",stem:!1,rest:!0,position:"B/4",dot_shiftY:-.5},s:{getWidth:()=>p.SLASH_NOTEHEAD_WIDTH,position:"B/4"}}},4:{common:{getWidth(t=p.DEFAULT_NOTATION_FONT_SCALE){return new f(this.code_head||"vb",t).getMetrics().width},stem:!0,stem_offset:0,flag:!1,stem_up_extension:0,stem_down_extension:0,tabnote_stem_up_extension:0,tabnote_stem_down_extension:0,dot_shiftY:0,line_above:0,line_below:0},type:{n:{code_head:"vb"},h:{code_head:"v22"},m:{code_head:"v3e",stem_offset:-3},r:{code_head:"v7c",stem:!1,rest:!0,position:"B/4",dot_shiftY:-.5,line_above:1.5,line_below:1.5},s:{getWidth:()=>p.SLASH_NOTEHEAD_WIDTH,position:"B/4"}}},8:{common:{getWidth(t=p.DEFAULT_NOTATION_FONT_SCALE){return new f(this.code_head||"vb",t).getMetrics().width},stem:!0,stem_offset:0,flag:!0,beam_count:1,code_flag_upstem:"v54",code_flag_downstem:"v9a",stem_up_extension:0,stem_down_extension:0,tabnote_stem_up_extension:0,tabnote_stem_down_extension:0,dot_shiftY:0,line_above:0,line_below:0},type:{n:{code_head:"vb"},h:{code_head:"v22"},m:{code_head:"v3e"},r:{code_head:"va5",stem:!1,flag:!1,rest:!0,position:"B/4",dot_shiftY:-.5,line_above:1,line_below:1},s:{getWidth:()=>p.SLASH_NOTEHEAD_WIDTH,position:"B/4"}}},16:{common:{beam_count:2,getWidth(t=p.DEFAULT_NOTATION_FONT_SCALE){return new f(this.code_head||"vb",t).getMetrics().width},stem:!0,stem_offset:0,flag:!0,code_flag_upstem:"v3f",code_flag_downstem:"v8f",stem_up_extension:0,stem_down_extension:0,tabnote_stem_up_extension:0,tabnote_stem_down_extension:0,dot_shiftY:0,line_above:0,line_below:0},type:{n:{code_head:"vb"},h:{code_head:"v22"},m:{code_head:"v3e"},r:{code_head:"v3c",stem:!1,flag:!1,rest:!0,position:"B/4",dot_shiftY:-.5,line_above:1,line_below:2},s:{getWidth:()=>p.SLASH_NOTEHEAD_WIDTH,position:"B/4"}}},32:{common:{beam_count:3,getWidth(t=p.DEFAULT_NOTATION_FONT_SCALE){return new f(this.code_head||"vb",t).getMetrics().width},stem:!0,stem_offset:0,flag:!0,code_flag_upstem:"v47",code_flag_downstem:"v2a",stem_up_extension:9,stem_down_extension:9,tabnote_stem_up_extension:8,tabnote_stem_down_extension:5,dot_shiftY:0,line_above:0,line_below:0},type:{n:{code_head:"vb"},h:{code_head:"v22"},m:{code_head:"v3e"},r:{code_head:"v55",stem:!1,flag:!1,rest:!0,position:"B/4",dot_shiftY:-1.5,line_above:2,line_below:2},s:{getWidth:()=>p.SLASH_NOTEHEAD_WIDTH,position:"B/4"}}},64:{common:{beam_count:4,getWidth(t=p.DEFAULT_NOTATION_FONT_SCALE){return new f(this.code_head||"vb",t).getMetrics().width},stem:!0,stem_offset:0,flag:!0,code_flag_upstem:"va9",code_flag_downstem:"v58",stem_up_extension:13,stem_down_extension:13,tabnote_stem_up_extension:12,tabnote_stem_down_extension:9,dot_shiftY:0,line_above:0,line_below:0},type:{n:{code_head:"vb"},h:{code_head:"v22"},m:{code_head:"v3e"},r:{code_head:"v38",stem:!1,flag:!1,rest:!0,position:"B/4",dot_shiftY:-1.5,line_above:2,line_below:3},s:{getWidth:()=>p.SLASH_NOTEHEAD_WIDTH,position:"B/4"}}},128:{common:{beam_count:5,getWidth(t=p.DEFAULT_NOTATION_FONT_SCALE){return new f(this.code_head||"vb",t).getMetrics().width},stem:!0,stem_offset:0,flag:!0,code_flag_upstem:"v9b",code_flag_downstem:"v30",stem_up_extension:22,stem_down_extension:22,tabnote_stem_up_extension:21,tabnote_stem_down_extension:18,dot_shiftY:0,line_above:0,line_below:0},type:{n:{code_head:"vb"},h:{code_head:"v22"},m:{code_head:"v3e"},r:{code_head:"vaa",stem:!1,flag:!1,rest:!0,position:"B/4",dot_shiftY:1.5,line_above:3,line_below:3},s:{getWidth:()=>p.SLASH_NOTEHEAD_WIDTH,position:"B/4"}}}},p.smufl={},p.smufl.to_code_points={bracketTop:"v1b",bracketBottom:"v10",barlineTick:"v6f",segno:"v8c",coda:"v4d",gClef:"v83",cClef:"vad",fClef:"v79",unpitchedPercussionClef1:"v59","6stringTabClef":"v2f",timeSig0:"v0",timeSig1:"v1",timeSig2:"v2",timeSig3:"v3",timeSig4:"v4",timeSig5:"v5",timeSig6:"v6",timeSig7:"v7",timeSig8:"v8",timeSig9:"v9",timeSigCommon:"v41",timeSigCutCommon:"vb6",noteheadDoubleWhole:"v53",noteheadWhole:"v1d",noteheadHalf:"v81",noteheadBlack:"vb",noteheadXWhole:"v92",noteheadXHalf:"v95",noteheadXBlack:"v3e",noteheadCircleX:"v3b",noteheadTriangleUpWhole:"v49",noteheadTriangleUpHalf:"v93",noteheadTriangleUpBlack:"v40",noteheadDiamondWhole:"v46",noteheadDiamondHalf:"v2d",noteheadDiamondBlack:"v22",augmentationDot:"v23",tremolo1:"v74",flag8thUp:"v54",flag8thDown:"v9a",flag16thUp:"v3f",flag16thDown:"v8f",flag32ndUp:"v47",flag32ndDown:"v2a",flag64thUp:"va9",flag64thDown:"v58",flag128thUp:"v9b",flag128thDown:"v30",accidentalFlat:"v44",accidentalNatural:"v4e",accidentalSharp:"v18",accidentalDoubleSharp:"v7f",accidentalDoubleFlat:"v26",accidentalParensLeft:"v9c",accidentalParensRight:"v84",accidentalQuarterToneFlatStein:"vab",accidentalThreeQuarterTonesFlatZimmermann:"v9e",accidentalQuarterToneSharpStein:"v78",accidentalThreeQuarterTonesSharpStein:"v51",accidentalBuyukMucennebFlat:"v39",accidentalBakiyeFlat:"vb7",accidentalKomaSharp:"v51",accidentalKucukMucennebSharp:"v8d",accidentalKoron:"vd1",accidentalSori:"vd0",articAccentAbove:"v42",articAccentBelow:"v42",articTenutoAbove:"v25",articTenutoBelow:"v25",articStaccatoAbove:"v23",articStaccatoBelow:"v23",articStaccatissimoAbove:"v28",articMarcatoAbove:"va",fermataAbove:"v43",fermataBelow:"v5b",breathMarkComma:"v6c",breathMarkUpbow:"v8a",caesura:"v34",caesuraCurved:"v4b",restMaxima:"v59",restDoubleWhole:"v31",restWhole:"v5c",restHalf:"vc",restQuarter:"v7c",rest8th:"va5",rest16th:"v3c",rest32nd:"v55",rest64th:"v38",rest128th:"vaa",dynamicPiano:"vbf",dynamicMezzo:"v62",dynamicForte:"vba",dynamicRinforzando:"vba",dynamicSforzando:"v4a",dynamicZ:"v80",ornamentTrill:"v1f",ornamentTurn:"v72",ornamentTurnSlash:"v33",ornamentMordent:"v45",ornamentMordentInverted:"v1e",ornamentTremblement:"v86",ornamentPrecompAppoggTrill:"v20",ornamentPrecompSlideTrillDAnglebert:"v60",ornamentPrecompSlideTrillBach:"v29",ornamentPrecompTrillSuffixDandrieu:"v6d",ornamentPrecompDoubleCadenceUpperPrefix:"vb4",ornamentPrecompDoubleCadenceUpperPrefixTurn:"v68",ornamentPrecompTrillLowerSuffix:"v2c",stringsDownBow:"v94",stringsUpBow:"v75",stringsHarmonic:"vb9",pluckedSnapPizzicatoAbove:"v94",pluckedLeftHandPizzicato:"v8b",keyboardPedalPed:"v36",keyboardPedalUp:"v5d",pictChokeCymbal:"vb3",wiggleArpeggiatoUp:"va3",arrowheadBlackUp:"vc3",arrowheadBlackDown:"v52"},p.TIME4_4={num_beats:4,beat_value:4,resolution:p.RESOLUTION};class m{static get WIDTH(){return 600}static get HEIGHT(){return 400}static get CANVAS_BROWSER_SIZE_LIMIT(){return 32767}static SanitizeCanvasDims(t,e){return Math.max(t,e)>this.CANVAS_BROWSER_SIZE_LIMIT&&(i.W("Canvas dimensions exceed browser limit. Cropping to "+this.CANVAS_BROWSER_SIZE_LIMIT),t>this.CANVAS_BROWSER_SIZE_LIMIT&&(t=this.CANVAS_BROWSER_SIZE_LIMIT),e>this.CANVAS_BROWSER_SIZE_LIMIT&&(e=this.CANVAS_BROWSER_SIZE_LIMIT)),[t,e]}constructor(t){this.vexFlowCanvasContext=t,t.canvas?this.canvas=t.canvas:this.canvas={width:m.WIDTH,height:m.HEIGHT}}clear(){this.vexFlowCanvasContext.clearRect(0,0,this.canvas.width,this.canvas.height)}openGroup(){}closeGroup(){}add(){}setFont(t,e,n){return this.vexFlowCanvasContext.font=(n||"")+" "+e+"pt "+t,this}setRawFont(t){return this.vexFlowCanvasContext.font=t,this}setFillStyle(t){return this.vexFlowCanvasContext.fillStyle=t,this}setBackgroundFillStyle(t){return this.background_fillStyle=t,this}setStrokeStyle(t){return this.vexFlowCanvasContext.strokeStyle=t,this}setShadowColor(t){return this.vexFlowCanvasContext.shadowColor=t,this}setShadowBlur(t){return this.vexFlowCanvasContext.shadowBlur=t,this}setLineWidth(t){return this.vexFlowCanvasContext.lineWidth=t,this}setLineCap(t){return this.vexFlowCanvasContext.lineCap=t,this}setLineDash(t){return this.vexFlowCanvasContext.lineDash=t,this}scale(t,e){return this.vexFlowCanvasContext.scale(parseFloat(t),parseFloat(e))}resize(t,e){return[t,e]=this.SanitizeCanvasDims(parseInt(t,10),parseInt(e,10)),this.vexFlowCanvasContext.resize(t,e)}rect(t,e,n,i){return this.vexFlowCanvasContext.rect(t,e,n,i)}fillRect(t,e,n,i){return this.vexFlowCanvasContext.fillRect(t,e,n,i)}clearRect(t,e,n,i){return this.vexFlowCanvasContext.clearRect(t,e,n,i)}beginPath(){return this.vexFlowCanvasContext.beginPath()}moveTo(t,e){return this.vexFlowCanvasContext.moveTo(t,e)}lineTo(t,e){return this.vexFlowCanvasContext.lineTo(t,e)}bezierCurveTo(t,e,n,i,s,r){return this.vexFlowCanvasContext.bezierCurveTo(t,e,n,i,s,r)}quadraticCurveTo(t,e,n,i){return this.vexFlowCanvasContext.quadraticCurveTo(t,e,n,i)}arc(t,e,n,i,s,r){return this.vexFlowCanvasContext.arc(t,e,n,i,s,r)}glow(){return this.vexFlowCanvasContext.glow()}fill(){return this.vexFlowCanvasContext.fill()}stroke(){return this.vexFlowCanvasContext.stroke()}closePath(){return this.vexFlowCanvasContext.closePath()}measureText(t){return this.vexFlowCanvasContext.measureText(t)}fillText(t,e,n){return this.vexFlowCanvasContext.fillText(t,e,n)}save(){return this.vexFlowCanvasContext.save()}restore(){return this.vexFlowCanvasContext.restore()}}class g{constructor(t){this.element=t,this.paper=Raphael(t),this.path="",this.pen={x:0,y:0},this.lineWidth=1,this.state={scale:{x:1,y:1},font_family:"Arial",font_size:8,font_weight:800},this.attributes={"stroke-width":.3,fill:"black",stroke:"black",font:"10pt Arial"},this.background_attributes={"stroke-width":0,fill:"white",stroke:"white",font:"10pt Arial"},this.shadow_attributes={width:0,color:"black"},this.state_stack=[]}openGroup(){}closeGroup(){}add(){}setFont(t,e,n){return this.state.font_family=t,this.state.font_size=e,this.state.font_weight=n,this.attributes.font=(this.state.font_weight||"")+" "+this.state.font_size*this.state.scale.x+"pt "+this.state.font_family,this}setRawFont(t){return this.attributes.font=t,this}setFillStyle(t){return this.attributes.fill=t,this}setBackgroundFillStyle(t){return this.background_attributes.fill=t,this.background_attributes.stroke=t,this}setStrokeStyle(t){return this.attributes.stroke=t,this}setShadowColor(t){return this.shadow_attributes.color=t,this}setShadowBlur(t){return this.shadow_attributes.width=t,this}setLineWidth(t){this.attributes["stroke-width"]=t,this.lineWidth=t}setLineDash(){return this}setLineCap(){return this}scale(t,e){return this.state.scale={x:t,y:e},this.attributes.transform="S"+t+","+e+",0,0",this.attributes.scale=t+","+e+",0,0",this.attributes.font=this.state.font_size*this.state.scale.x+"pt "+this.state.font_family,this.background_attributes.transform="S"+t+","+e+",0,0",this.background_attributes.font=this.state.font_size*this.state.scale.x+"pt "+this.state.font_family,this}clear(){this.paper.clear()}resize(t,e){return this.element.style.width=t,this.paper.setSize(t,e),this}setViewBox(t){this.paper.canvas.setAttribute("viewBox",t)}rect(t,e,n,i){return i<0&&(e+=i,i=-i),this.paper.rect(t,e,n-.5,i-.5).attr(this.attributes).attr("fill","none").attr("stroke-width",this.lineWidth),this}fillRect(t,e,n,i){return i<0&&(e+=i,i=-i),this.paper.rect(t,e,n-.5,i-.5).attr(this.attributes),this}clearRect(t,e,n,i){return i<0&&(e+=i,i=-i),this.paper.rect(t,e,n-.5,i-.5).attr(this.background_attributes),this}beginPath(){return this.path="",this.pen.x=0,this.pen.y=0,this}moveTo(t,e){return this.path+="M"+t+","+e,this.pen.x=t,this.pen.y=e,this}lineTo(t,e){return this.path+="L"+t+","+e,this.pen.x=t,this.pen.y=e,this}bezierCurveTo(t,e,n,i,s,r){return this.path+="C"+t+","+e+","+n+","+i+","+s+","+r,this.pen.x=s,this.pen.y=r,this}quadraticCurveTo(t,e,n,i){return this.path+="Q"+t+","+e+","+n+","+i,this.pen.x=n,this.pen.y=i,this}arc(t,e,n,i,s,r){function o(t){for(;t<0;)t+=2*Math.PI;for(;t>2*Math.PI;)t-=2*Math.PI;return t}if((i=o(i))>(s=o(s))){const t=i;i=s,s=t,r=!r}const a=s-i;return a>Math.PI?(this.arcHelper(t,e,n,i,i+a/2,r),this.arcHelper(t,e,n,i+a/2,s,r)):this.arcHelper(t,e,n,i,s,r),this}arcHelper(t,e,n,i,s,r){const o=t+n*Math.cos(i),a=e+n*Math.sin(i),c=t+n*Math.cos(s),l=e+n*Math.sin(s);let u=0,h=0;r?(h=1,s-i<Math.PI&&(u=1)):s-i>Math.PI&&(u=1),this.path+="M"+o+","+a+",A"+n+","+n+",0,"+u+","+h+","+c+","+l+"M"+this.pen.x+","+this.pen.y}glow(){const t=this.paper.set();if(this.shadow_attributes.width>0){const e=this.shadow_attributes,n=e.width/2;for(let i=1;i<=n;i++)t.push(this.paper.path(this.path).attr({stroke:e.color,"stroke-linejoin":"round","stroke-linecap":"round","stroke-width":+(e.width/n*i).toFixed(3),opacity:+((e.opacity||.3)/n).toFixed(3),transform:this.attributes.transform,scale:this.attributes.scale}))}return t}fill(){const t=this.paper.path(this.path).attr(this.attributes).attr("stroke-width",0);return this.glow(t),this}stroke(){const t=this.lineWidth*(this.state.scale.x+this.state.scale.y)/2,e=this.paper.path(this.path).attr(this.attributes).attr("fill","none").attr("stroke-width",t);return this.glow(e),this}closePath(){return this.path+="Z",this}measureText(t){const e=this.paper.text(0,0,t).attr(this.attributes).attr("fill","none").attr("stroke","none"),n=e.getBBox();return e.remove(),{width:n.width,height:n.height}}fillText(t,e,n){return this.paper.text(e+this.measureText(t).width/2,n-this.state.font_size/(2.25*this.state.scale.y),t).attr(this.attributes),this}save(){return this.state_stack.push({state:{font_family:this.state.font_family},attributes:{font:this.attributes.font,fill:this.attributes.fill,stroke:this.attributes.stroke,"stroke-width":this.attributes["stroke-width"]},shadow_attributes:{width:this.shadow_attributes.width,color:this.shadow_attributes.color}}),this}restore(){const t=this.state_stack.pop();return this.state.font_family=t.state.font_family,this.attributes.font=t.attributes.font,this.attributes.fill=t.attributes.fill,this.attributes.stroke=t.attributes.stroke,this.attributes["stroke-width"]=t.attributes["stroke-width"],this.shadow_attributes.width=t.shadow_attributes.width,this.shadow_attributes.color=t.shadow_attributes.color,this}}const b={path:{x:!0,y:!0,width:!0,height:!0},rect:{},text:{width:!0,height:!0}};{const t={"font-family":!0,"font-weight":!0,"font-style":!0,"font-size":!0};i.Merge(b.rect,t),i.Merge(b.path,t)}class v{constructor(t){this.element=t,this.svgNS="http://www.w3.org/2000/svg";const e=this.create("svg");this.element.appendChild(e),this.svg=e,this.groups=[this.svg],this.parent=this.svg,this.path="",this.pen={x:NaN,y:NaN},this.lineWidth=1,this.state={scale:{x:1,y:1},"font-family":"Arial","font-size":"8pt","font-weight":"normal"},this.attributes={"stroke-width":.3,fill:"black",stroke:"black","stroke-dasharray":"none","font-family":"Arial","font-size":"10pt","font-weight":"normal","font-style":"normal"},this.background_attributes={"stroke-width":0,fill:"white",stroke:"white","stroke-dasharray":"none","font-family":"Arial","font-size":"10pt","font-weight":"normal","font-style":"normal"},this.shadow_attributes={width:0,color:"black"},this.state_stack=[],this.iePolyfill()}create(t){return document.createElementNS(this.svgNS,t)}openGroup(t,e,n){const s=this.create("g");return this.groups.push(s),this.parent.appendChild(s),this.parent=s,t&&s.setAttribute("class",i.Prefix(t)),e&&s.setAttribute("id",i.Prefix(e)),n&&n.pointerBBox&&s.setAttribute("pointer-events","bounding-box"),s}closeGroup(){this.groups.pop(),this.parent=this.groups[this.groups.length-1]}add(t){this.parent.appendChild(t)}iePolyfill(){"undefined"!=typeof navigator&&(this.ie=/MSIE 9/i.test(navigator.userAgent)||/MSIE 10/i.test(navigator.userAgent)||/rv:11\.0/i.test(navigator.userAgent)||/Trident/i.test(navigator.userAgent))}setFont(t,e,n){let s=!1,r=!1,o="normal";"string"==typeof n&&(-1!==n.indexOf("italic")&&(n=n.replace(/italic/g,""),r=!0),-1!==n.indexOf("bold")&&(n=n.replace(/bold/g,""),s=!0),n=n.replace(/ /g,"")),o=r?"italic":o;const a={"font-family":t,"font-size":e+"pt","font-weight":n=void 0===(n=s?"bold":n)||""===n?"normal":n,"font-style":o};return this.fontSize=Number(e),i.Merge(this.attributes,a),i.Merge(this.state,a),this}setRawFont(t){const e=(t=t.trim()).split(" ");return this.attributes["font-family"]=e[1],this.state["font-family"]=e[1],this.attributes["font-size"]=e[0],this.state["font-size"]=e[0],this.fontSize=Number(e[0].match(/\d+/)),this}setFillStyle(t){return this.attributes.fill=t,this}setBackgroundFillStyle(t){return this.background_attributes.fill=t,this.background_attributes.stroke=t,this}setStrokeStyle(t){return this.attributes.stroke=t,this}setShadowColor(t){return this.shadow_attributes.color=t,this}setShadowBlur(t){return this.shadow_attributes.width=t,this}setLineWidth(t){this.attributes["stroke-width"]=t,this.lineWidth=t}setLineDash(t){if("[object Array]"===Object.prototype.toString.call(t))return t=t.join(", "),this.attributes["stroke-dasharray"]=t,this;throw new i.RERR("ArgumentError","lineDash must be an array of integers.")}setLineCap(t){return this.attributes["stroke-linecap"]=t,this}resize(t,e){this.width=t,this.height=e,this.element.style.width=t;const n={width:t,height:e};return this.applyAttributes(this.svg,n),this.scale(this.state.scale.x,this.state.scale.y),this}scale(t,e){this.state.scale={x:t,y:e};const n=this.width/t,i=this.height/e;return this.setViewBox(0,0,n,i),this}setViewBox(...t){if(1===t.length){const[e]=t;this.svg.setAttribute("viewBox",e)}else{const[e,n,i,s]=t,r=e+" "+n+" "+i+" "+s;this.svg.setAttribute("viewBox",r)}}applyAttributes(t,e){const n=b[t.nodeName];return Object.keys(e).forEach(i=>{n&&n[i]||t.setAttributeNS(null,i,e[i])}),t}clear(){for(;this.svg.lastChild;)this.svg.removeChild(this.svg.lastChild);this.scale(this.state.scale.x,this.state.scale.y)}rect(t,e,n,s,r){s<0&&(e+=s,s*=-1);const o=this.create("rect");return void 0===r&&(r={fill:"none","stroke-width":this.lineWidth,stroke:"black"}),i.Merge(r,{x:t,y:e,width:n,height:s}),this.applyAttributes(o,r),this.add(o),this}fillRect(t,e,n,i){return i<0&&(e+=i,i*=-1),this.rect(t,e,n,i,this.attributes),this}clearRect(t,e,n,i){return this.rect(t,e,n,i,this.background_attributes),this}beginPath(){return this.path="",this.pen.x=NaN,this.pen.y=NaN,this}moveTo(t,e){return this.path+="M"+t+" "+e,this.pen.x=t,this.pen.y=e,this}lineTo(t,e){return this.path+="L"+t+" "+e,this.pen.x=t,this.pen.y=e,this}bezierCurveTo(t,e,n,i,s,r){return this.path+="C"+t+" "+e+","+n+" "+i+","+s+" "+r,this.pen.x=s,this.pen.y=r,this}quadraticCurveTo(t,e,n,i){return this.path+="Q"+t+" "+e+","+n+" "+i,this.pen.x=n,this.pen.y=i,this}arc(t,e,n,i,s,r){function o(t){for(;t<0;)t+=2*Math.PI;for(;t>2*Math.PI;)t-=2*Math.PI;return t}if((i=o(i))>(s=o(s))){const t=i;i=s,s=t,r=!r}const a=s-i;return a>Math.PI?(this.arcHelper(t,e,n,i,i+a/2,r),this.arcHelper(t,e,n,i+a/2,s,r)):this.arcHelper(t,e,n,i,s,r),this}arcHelper(t,e,n,i,s,r){const o=t+n*Math.cos(i),a=e+n*Math.sin(i),c=t+n*Math.cos(s),l=e+n*Math.sin(s);let u=0,h=0;r?(h=1,s-i<Math.PI&&(u=1)):s-i>Math.PI&&(u=1),this.path+="M"+o+" "+a+" A"+n+" "+n+" 0 "+u+" "+h+" "+c+" "+l,isNaN(this.pen.x)||isNaN(this.pen.y)||(this.peth+="M"+this.pen.x+" "+this.pen.y)}closePath(){return this.path+="Z",this}glow(){if(this.shadow_attributes.width>0){const t=this.shadow_attributes,e=t.width/2;for(let n=1;n<=e;n++){const i={stroke:t.color,"stroke-linejoin":"round","stroke-linecap":"round","stroke-width":+(.4*t.width/e*n).toFixed(3),opacity:+((t.opacity||.3)/e).toFixed(3)},s=this.create("path");i.d=this.path,this.applyAttributes(s,i),this.add(s)}}return this}fill(t){this.glow();const e=this.create("path");return void 0===t&&(i.Merge(t={},this.attributes),t.stroke="none"),t.d=this.path,this.applyAttributes(e,t),this.add(e),this}stroke(){this.glow();const t=this.create("path"),e={};return i.Merge(e,this.attributes),e.fill="none",e["stroke-width"]=this.lineWidth,e.d=this.path,this.applyAttributes(t,e),this.add(t),this}measureText(t){const e=this.create("text");if("function"!=typeof e.getBBox)return{x:0,y:0,width:0,height:0};e.textContent=t,this.applyAttributes(e,this.attributes),this.svg.appendChild(e);let n=e.getBBox();return this.ie&&""!==t&&"italic"===this.attributes["font-style"]&&(n=this.ieMeasureTextFix(n,t)),this.svg.removeChild(e),n}ieMeasureTextFix(t){const e=1.196*Number(this.fontSize)+1.9598,n=t.width-e,i=t.height-1.5;return{x:t.x,y:t.y,width:n,height:i}}fillText(t,e,n){if(!t||t.length<=0)return;const s={};i.Merge(s,this.attributes),s.stroke="none",s.x=e,s.y=n;const r=this.create("text");r.textContent=t,this.applyAttributes(r,s),this.add(r)}save(){return this.state_stack.push({state:{"font-family":this.state["font-family"],"font-weight":this.state["font-weight"],"font-style":this.state["font-style"],"font-size":this.state["font-size"],scale:this.state.scale},attributes:{"font-family":this.attributes["font-family"],"font-weight":this.attributes["font-weight"],"font-style":this.attributes["font-style"],"font-size":this.attributes["font-size"],fill:this.attributes.fill,stroke:this.attributes.stroke,"stroke-width":this.attributes["stroke-width"],"stroke-dasharray":this.attributes["stroke-dasharray"]},shadow_attributes:{width:this.shadow_attributes.width,color:this.shadow_attributes.color},lineWidth:this.lineWidth}),this}restore(){const t=this.state_stack.pop();return this.state["font-family"]=t.state["font-family"],this.state["font-weight"]=t.state["font-weight"],this.state["font-style"]=t.state["font-style"],this.state["font-size"]=t.state["font-size"],this.state.scale=t.state.scale,this.attributes["font-family"]=t.attributes["font-family"],this.attributes["font-weight"]=t.attributes["font-weight"],this.attributes["font-style"]=t.attributes["font-style"],this.attributes["font-size"]=t.attributes["font-size"],this.attributes.fill=t.attributes.fill,this.attributes.stroke=t.attributes.stroke,this.attributes["stroke-width"]=t.attributes["stroke-width"],this.attributes["stroke-dasharray"]=t.attributes["stroke-dasharray"],this.shadow_attributes.width=t.shadow_attributes.width,this.shadow_attributes.color=t.shadow_attributes.color,this.lineWidth=t.lineWidth,this}}let y=null;class S{static get Backends(){return{CANVAS:1,RAPHAEL:2,SVG:3,VML:4}}static get LineEndType(){return{NONE:1,UP:2,DOWN:3}}static get USE_CANVAS_PROXY(){return!1}static get lastContext(){return y}static set lastContext(t){y=t}static buildContext(t,e,n,i,s){const r=new S(t,e);n&&i&&r.resize(n,i),s||(s="#FFF");const o=r.getContext();return o.setBackgroundFillStyle(s),S.lastContext=o,o}static getCanvasContext(t,e,n,i){return S.buildContext(t,S.Backends.CANVAS,e,n,i)}static getRaphaelContext(t,e,n,i){return S.buildContext(t,S.Backends.RAPHAEL,e,n,i)}static getSVGContext(t,e,n,i){return S.buildContext(t,S.Backends.SVG,e,n,i)}static bolsterCanvasContext(t){return S.USE_CANVAS_PROXY?new m(t):(t.vexFlowCanvasContext=t,["clear","setFont","setRawFont","setFillStyle","setBackgroundFillStyle","setStrokeStyle","setShadowColor","setShadowBlur","setLineWidth","setLineCap","setLineDash","openGroup","closeGroup","getGroup"].forEach(e=>{t[e]=t[e]||m.prototype[e]}),t)}static drawDashedLine(t,e,n,i,s,r){t.beginPath();const o=i-e,a=s-n,c=Math.atan2(a,o);let l=e,u=n;t.moveTo(e,n);let h=0,d=!0;for(;!(o<0?l<=i:l>=i)||!(a<0?u<=s:u>=s);){const e=r[h++%r.length],n=l+Math.cos(c)*e;l=o<0?Math.max(i,n):Math.min(i,n);const f=u+Math.sin(c)*e;u=a<0?Math.max(s,f):Math.min(s,f),d?t.lineTo(l,u):t.moveTo(l,u),d=!d}t.closePath(),t.stroke()}constructor(t,e){if(this.elementId=t,!this.elementId)throw new i.RERR("BadArgument","Invalid id for renderer.");if(this.element=document.getElementById(t),this.element||(this.element=t),this.ctx=null,this.paper=null,this.backend=e,this.backend===S.Backends.CANVAS){if(!this.element.getContext)throw new i.RERR("BadElement","Can't get canvas context from element: "+t);this.ctx=S.bolsterCanvasContext(this.element.getContext("2d"))}else if(this.backend===S.Backends.RAPHAEL)this.ctx=new g(this.element);else{if(this.backend!==S.Backends.SVG)throw new i.RERR("InvalidBackend","No support for backend: "+this.backend);this.ctx=new v(this.element)}}resize(t,e){if(this.backend===S.Backends.CANVAS){if(!this.element.getContext)throw new i.RERR("BadElement","Can't get canvas context from element: "+this.elementId);[t,e]=m.SanitizeCanvasDims(t,e);const n=window.devicePixelRatio||1;this.element.width=t*n,this.element.height=e*n,this.element.style.width=t+"px",this.element.style.height=e+"px",this.ctx=S.bolsterCanvasContext(this.element.getContext("2d")),this.ctx.scale(n,n)}else this.ctx.resize(t,e);return this}getContext(){return this.ctx}}class x extends c{static get CATEGORY(){return"stem"}static get UP(){return 1}static get DOWN(){return-1}static get WIDTH(){return p.STEM_WIDTH}static get HEIGHT(){return p.STEM_HEIGHT}constructor(t={}){super(),this.setAttribute("type","Stem"),this.x_begin=t.x_begin||0,this.x_end=t.x_end||0,this.y_top=t.y_top||0,this.y_bottom=t.y_bottom||0,this.stem_extension=t.stem_extension||0,this.stem_direction=t.stem_direction||0,this.hide=t.hide||!1,this.isStemlet=t.isStemlet||!1,this.stemletHeight=t.stemletHeight||0,this.renderHeightAdjustment=0,this.setOptions(t)}setOptions(t){this.stem_up_y_offset=t.stem_up_y_offset||0,this.stem_down_y_offset=t.stem_down_y_offset||0}setNoteHeadXBounds(t,e){return this.x_begin=t,this.x_end=e,this}setDirection(t){this.stem_direction=t}setExtension(t){this.stem_extension=t}getExtension(){return this.stem_extension}setYBounds(t,e){this.y_top=t,this.y_bottom=e}getCategory(){return x.CATEGORY}getHeight(){const t=this.stem_direction===x.UP?this.stem_up_y_offset:this.stem_down_y_offset;return(this.y_bottom-this.y_top)*this.stem_direction+(x.HEIGHT-t+this.stem_extension)*this.stem_direction}getBoundingBox(){throw new i.RERR("NotImplemented","getBoundingBox() not implemented.")}getExtents(){const t=this.stem_direction===x.UP,e=[this.y_top,this.y_bottom],n=x.HEIGHT+this.stem_extension,i=(t?Math.min:Math.max)(...e),s=(t?Math.max:Math.min)(...e);return{topY:i+n*-this.stem_direction,baseY:s}}setVisibility(t){return this.hide=!t,this}setStemlet(t,e){return this.isStemlet=t,this.stemletHeight=e,this}draw(){if(this.setRendered(),this.hide)return;const t=this.checkContext();let e,n;const s=this.stem_direction;s===x.DOWN?(e=this.x_begin,n=this.y_top+this.stem_down_y_offset):(e=this.x_end,n=this.y_bottom-this.stem_up_y_offset);const r=this.getHeight();!function(...t){x.DEBUG&&i.L("Vex.Flow.Stem",t)}("Rendering stem - ","Top Y: ",this.y_top,"Bottom Y: ",this.y_bottom);const o=this.isStemlet?r-this.stemletHeight*this.stem_direction:0;t.save(),this.applyStyle(t),t.beginPath(),t.setLineWidth(x.WIDTH),t.moveTo(e,n-o),t.lineTo(e,n-r-this.renderHeightAdjustment*s),t.stroke(),this.restoreStyle(t),t.restore()}}class _ extends c{static get LOCATION_TOP(){return 1}static get LOCATION_BOTTOM(){return-1}static get NESTING_OFFSET(){return 15}constructor(t,e){if(super(),this.setAttribute("type","Tuplet"),!t||!t.length)throw new i.RuntimeError("BadArguments","No notes provided for tuplet.");this.options=i.Merge({},e),this.notes=t,this.num_notes="num_notes"in this.options?this.options.num_notes:t.length,this.options.beats_occupied&&this.beatsOccupiedDeprecationWarning(),this.notes_occupied=this.options.notes_occupied||this.options.beats_occupied||2,"bracketed"in this.options?this.bracketed=this.options.bracketed:this.bracketed=t.some(t=>null===t.beam),this.ratioed="ratioed"in this.options?this.options.ratioed:Math.abs(this.notes_occupied-this.num_notes)>1,this.point=28,this.y_pos=16,this.x_pos=100,this.width=200,this.location=this.options.location||_.LOCATION_TOP,ht.AlignRestsToNotes(t,!0,!0),this.resolveGlyphs(),this.attach()}attach(){for(let t=0;t<this.notes.length;t++)this.notes[t].setTuplet(this)}detach(){for(let t=0;t<this.notes.length;t++)this.notes[t].resetTuplet(this)}setBracketed(t){return this.bracketed=!!t,this}setRatioed(t){return this.ratioed=!!t,this}setTupletLocation(t){if(t){if(t!==_.LOCATION_TOP&&t!==_.LOCATION_BOTTOM)throw new i.RERR("BadArgument","Invalid tuplet location: "+t)}else t=_.LOCATION_TOP;return this.location=t,this}getNotes(){return this.notes}getNoteCount(){return this.num_notes}beatsOccupiedDeprecationWarning(){const t=["beats_occupied has been deprecated as an ","option for tuplets. Please use notes_occupied ","instead. Calls to getBeatsOccupied and ","setBeatsOccupied should now be routed to ","getNotesOccupied and setNotesOccupied instead"].join("");console&&console.warn?console.warn(t):console&&console.log(t)}getBeatsOccupied(){return this.beatsOccupiedDeprecationWarning(),this.getNotesOccupied()}setBeatsOccupied(t){return this.beatsOccupiedDeprecationWarning(),this.setNotesOccupied(t)}getNotesOccupied(){return this.notes_occupied}setNotesOccupied(t){this.detach(),this.notes_occupied=t,this.resolveGlyphs(),this.attach()}resolveGlyphs(){this.numerator_glyphs=[];let t=this.num_notes;for(;t>=1;)this.numerator_glyphs.unshift(new f("v"+t%10,this.point)),t=parseInt(t/10,10);for(this.denom_glyphs=[],t=this.notes_occupied;t>=1;)this.denom_glyphs.unshift(new f("v"+t%10,this.point)),t=parseInt(t/10,10)}getNestedTupletCount(){const t=this.location,e=this.notes[0];let n=s(e,t),i=s(e,t);function s(t,e){return t.tupletStack.filter(t=>t.location===e).length}return this.notes.forEach(e=>{const r=s(e,t);n=r>n?r:n,i=r<i?r:i}),n-i}getYPosition(){const t=this.getNestedTupletCount()*_.NESTING_OFFSET*-this.location,e=this.options.y_offset||0,n=this.notes[0];let i;if(this.location===_.LOCATION_TOP){i=n.getStave().getYForLine(0)-15;for(let t=0;t<this.notes.length;++t){const e=this.notes[t].getStemDirection()===x.UP?this.notes[t].getStemExtents().topY-10:this.notes[t].getStemExtents().baseY-20;e<i&&(i=e)}}else{i=n.getStave().getYForLine(4)+20;for(let t=0;t<this.notes.length;++t){const e=this.notes[t].getStemDirection()===x.UP?this.notes[t].getStemExtents().baseY+20:this.notes[t].getStemExtents().topY+10;e>i&&(i=e)}}return i+t+e}draw(){this.checkContext(),this.setRendered();const t=this.notes[0],e=this.notes[this.notes.length-1];this.bracketed?(this.x_pos=t.getTieLeftX()-5,this.width=e.getTieRightX()-this.x_pos+5):(this.x_pos=t.getStemX(),this.width=e.getStemX()-this.x_pos),this.y_pos=this.getYPosition();const n=(t,e)=>t+e.getMetrics().width;let i=this.numerator_glyphs.reduce(n,0);this.ratioed&&(i=this.denom_glyphs.reduce(n,i),i+=.32*this.point);const s=this.x_pos+this.width/2-i/2;if(this.bracketed){const t=this.width/2-i/2-5;t>0&&(this.context.fillRect(this.x_pos,this.y_pos,t,1),this.context.fillRect(this.x_pos+this.width/2+i/2+5,this.y_pos,t,1),this.context.fillRect(this.x_pos,this.y_pos+(this.location===_.LOCATION_BOTTOM),1,10*this.location),this.context.fillRect(this.x_pos+this.width,this.y_pos+(this.location===_.LOCATION_BOTTOM),1,10*this.location))}let r=0;if(this.numerator_glyphs.forEach(t=>{t.render(this.context,s+r,this.y_pos+this.point/3-2),r+=t.getMetrics().width}),this.ratioed){const t=s+r+.16*this.point,e=.06*this.point;this.context.beginPath(),this.context.arc(t,this.y_pos-.08*this.point,e,0,2*Math.PI,!0),this.context.closePath(),this.context.fill(),this.context.beginPath(),this.context.arc(t,this.y_pos+.12*this.point,e,0,2*Math.PI,!0),this.context.closePath(),this.context.fill(),r+=.32*this.point,this.denom_glyphs.forEach(t=>{t.render(this.context,s+r,this.y_pos+this.point/3-2),r+=t.getMetrics().width})}}}function w(t){let e=0;return t.forEach(t=>{t.keyProps&&t.keyProps.forEach(t=>{e+=t.line-3})}),e>=0?x.DOWN:x.UP}const E="L",T="B";class C extends c{static getDefaultBeamGroups(t){t&&"c"!==t||(t="4/4");const e={"1/2":["1/2"],"2/2":["1/2"],"3/2":["1/2"],"4/2":["1/2"],"1/4":["1/4"],"2/4":["1/4"],"3/4":["1/4"],"4/4":["1/4"],"1/8":["1/8"],"2/8":["2/8"],"3/8":["3/8"],"4/8":["2/8"],"1/16":["1/16"],"2/16":["2/16"],"3/16":["3/16"],"4/16":["2/16"]}[t];if(void 0!==e)return e.map(t=>(new s).parse(t));{const e=parseInt(t.split("/")[0],10),n=parseInt(t.split("/")[1],10);if(e%3==0)return[new s(3,n)];if(n>4)return[new s(2,n)];if(n<=4)return[new s(1,n)]}return[new s(1,4)]}static applyAndGetBeams(t,e,n){return C.generateBeams(t.getTickables(),{groups:n,stem_direction:e})}static generateBeams(t,e){e||(e={}),e.groups&&e.groups.length||(e.groups=[new s(2,8)]);const n=e.groups.map(t=>{if(!t.multiply)throw new i.RuntimeError("InvalidBeamGroups","The beam groups must be an array of Vex.Flow.Fractions");return t.clone().multiply(p.RESOLUTION,1)}),r=t;let o=0,a=[],c=[];function l(){n.length-1>o?o+=1:o=0}!function(){let t=[];r.forEach(e=>{if(t=[],e.shouldIgnoreTicks())return a.push(c),void(c=t);c.push(e);const i=n[o].clone(),r=c.reduce((t,e)=>e.getTicks().clone().add(t),new s(0,1)),u=p.durationToNumber(e.duration)<8;u&&e.tuplet&&(i.numerator*=2),r.greaterThan(i)?(u||t.push(c.pop()),a.push(c),c=t,l()):r.equals(i)&&(a.push(c),c=t,l())}),c.length>0&&a.push(c)}(),function(){const t=[];a.forEach(n=>{let i=[];n.forEach((n,s,r)=>{const o=0===s||s===r.length-1,a=r[s-1],c=!e.beam_rests&&n.isRest(),l=e.beam_rests&&e.beam_middle_only&&n.isRest()&&o;let u=!1;if(e.maintain_stem_directions&&a&&!n.isRest()&&!a.isRest()){const t=a.getStemDirection();u=n.getStemDirection()!==t}const h=parseInt(n.duration,10)<8;c||l||u||h?(i.length>0&&t.push(i),i=u?[n]:[]):i.push(n)}),i.length>0&&t.push(i)}),a=t}(),a.forEach(t=>{let n;if(e.maintain_stem_directions){const e=function(t){for(let e=0;e<t.length;e++){const n=t[e];if(!n.isRest())return n}return!1}(t);n=e?e.getStemDirection():x.UP}else n=e.stem_direction?e.stem_direction:w(t);!function(t,e){t.forEach(t=>{t.setStemDirection(e)})}(t,n)});const u=a.filter(t=>{if(t.length>1){let e=!0;return t.forEach(t=>{t.getIntrinsicTicks()>=p.durationToTicks("4")&&(e=!1)}),e}return!1}),h=function(){const t=[];return a.forEach(e=>{let n=null;e.forEach(e=>{e.tuplet&&n!==e.tuplet&&(n=e.tuplet,t.push(n))})}),t}(),d=[];return u.forEach(t=>{const n=new C(t);e.show_stemlets&&(n.render_options.show_stemlets=!0),e.secondary_breaks&&(n.render_options.secondary_break_ticks=p.durationToTicks(e.secondary_breaks)),!0===e.flat_beams&&(n.render_options.flat_beams=!0,n.render_options.flat_beam_offset=e.flat_beam_offset),d.push(n)}),h.forEach(t=>{const e=t.notes[0].stem_direction===x.DOWN?_.LOCATION_BOTTOM:_.LOCATION_TOP;t.setTupletLocation(e);let n=!1;for(let i=0;i<t.notes.length;i++)if(null===t.notes[i].beam){n=!0;break}t.setBracketed(n)}),d}constructor(t,e){if(super(),this.setAttribute("type","Beam"),!t||t===[])throw new i.RuntimeError("BadArguments","No notes provided for beam.");if(1===t.length)throw new i.RuntimeError("BadArguments","Too few notes for beam.");if(this.ticks=t[0].getIntrinsicTicks(),this.ticks>=p.durationToTicks("4"))throw new i.RuntimeError("BadArguments","Beams can only be applied to notes shorter than a quarter note.");let n,s;for(this.stem_direction=x.UP,n=0;n<t.length;++n)if(s=t[n],s.hasStem()){this.stem_direction=s.getStemDirection();break}let r=this.stem_direction;for(e&&"stavenotes"===t[0].getCategory()?r=w(t):e&&"tabnotes"===t[0].getCategory()&&(r=t.reduce((t,e)=>t+e.stem_direction,0)>-1?x.UP:x.DOWN),n=0;n<t.length;++n)s=t[n],e&&(s.setStemDirection(r),this.stem_direction=r),s.setBeam(this);this.postFormatted=!1,this.notes=t,this.beam_count=this.getBeamCount(),this.break_on_indices=[],this.render_options={beam_width:5,max_slope:.25,min_slope:-.25,slope_iterations:20,slope_cost:100,show_stemlets:!1,stemlet_extension:7,partial_beam_length:10,flat_beams:!1,min_flat_beam_offset:15}}getNotes(){return this.notes}getBeamCount(){return this.notes.map(t=>t.getGlyph().beam_count).reduce((t,e)=>e>t?e:t)}breakSecondaryAt(t){return this.break_on_indices=t,this}getSlopeY(t,e,n,i){return n+(t-e)*i}calculateSlope(){const{notes:t,stem_direction:e,render_options:{max_slope:n,min_slope:i,slope_iterations:s,slope_cost:r}}=this,o=t[0],a=((t,e)=>{const n=t.getStemExtents().topY,i=t.getStemX();return(e.getStemExtents().topY-n)/(e.getStemX()-i)})(o,t[t.length-1]),c=(n-i)/s;let l=Number.MAX_VALUE,u=0,h=0;for(let d=i;d<=n;d+=c){let n=0,i=0;for(let r=1;r<t.length;++r){const s=t[r],a=this.getSlopeY(s.getStemX(),o.getStemX(),o.getStemExtents().topY,d)+i,c=s.getStemExtents().topY;if(c*e<a*e){const t=Math.abs(c-a);i+=t*-e,n+=t*r}else n+=(c-a)*e}const s=a/2,c=r*Math.abs(s-d)+Math.abs(n);c<l&&(l=c,u=d,h=i)}this.slope=u,this.y_shift=h}calculateFlatSlope(){const{notes:t,stem_direction:e,render_options:{beam_width:n,min_flat_beam_offset:i,flat_beam_offset:s}}=this;let r=0,o=0,a=0,c=0;for(let d=0;d<t.length;d++){const n=t[d],i=n.getStemExtents().topY;r+=i,e===x.DOWN&&c<i?(c=i,o=Math.max(...n.getYs()),a=n.getBeamCount()):e===x.UP&&(0===c||c>i)&&(c=i,o=Math.min(...n.getYs()),a=n.getBeamCount())}let l=r/t.length;const u=i+a*(1.5*n),h=o+u*-e;e===x.DOWN&&l<h?l=o+u:e===x.UP&&l>h&&(l=o-u),s?(e===x.DOWN&&l>s||e===x.UP&&l<s)&&(this.render_options.flat_beam_offset=l):this.render_options.flat_beam_offset=l,this.slope=0,this.y_shift=0}getBeamYToDraw(){let t=this.notes[0].getStemExtents().topY;return this.render_options.flat_beams&&this.render_options.flat_beam_offset&&(t=this.render_options.flat_beam_offset),t}applyStemExtensions(){const{notes:t,slope:e,y_shift:n,stem_direction:i,beam_count:s,render_options:{show_stemlets:r,stemlet_extension:o,beam_width:a}}=this,c=t[0],l=this.getBeamYToDraw(),u=c.getStemX();for(let h=0;h<t.length;++h){const c=t[h],d=c.getStemX(),{topY:f}=c.getStemExtents(),p=this.getSlopeY(d,u,l,e)+n,m=c.getStem().getExtension(),g=i===x.UP?f-p:p-f;if(c.stem.setExtension(m+g),c.stem.renderHeightAdjustment=-x.WIDTH/2,c.isRest()&&r){const t=(s-1)*a*1.5+a;c.stem.setVisibility(!0).setStemlet(!0,t+o)}}}lookupBeamDirection(t,e,n,i){if("4"===t)return E;const s=""+p.durationToNumber(t)/2,r=e<p.durationToTicks(s),o=i<p.durationToTicks(s),a=n<p.durationToTicks(s);return r&&o&&a?T:r&&!o&&a?E:!r&&o&&a?"R":this.lookupBeamDirection(s,e,n,i)}getBeamLines(t){const e=p.durationToTicks(t),n=[];let i=!1,s=null;const r=this.render_options.partial_beam_length;let o=!1,a=0;for(let l=0;l<this.notes.length;++l){const c=this.notes[l];a+=c.ticks.value();let u=!1;parseInt(t,10)>=8&&(u=-1!==this.break_on_indices.indexOf(l),this.render_options.secondary_break_ticks&&a>=this.render_options.secondary_break_ticks&&(a=0,u=!0));const h=c.getIntrinsicTicks()<e,d=c.getStemX()-x.WIDTH/2,f=this.notes[l-1],p=this.notes[l+1],m=p&&p.getIntrinsicTicks()<e,g=f&&f.getIntrinsicTicks()<e,b=f&&p&&h&&!g&&!m;if(h)if(i)s=n[n.length-1],s.end=d,u&&(i=!1,p&&!m&&null===s.end&&(s.end=s.start-r));else{if(s={start:d,end:null},i=!0,b){const e=f.getIntrinsicTicks(),n=p.getIntrinsicTicks(),i=c.getIntrinsicTicks(),o=this.lookupBeamDirection(t,e,i,n);[E,T].includes(o)?s.end=s.start-r:s.end=s.start+r}else m?u&&(s.end=s.start-r,i=!1):s.end=(o||0===l)&&p?s.start+r:s.start-r;n.push(s)}else i=!1;o=u}const c=n[n.length-1];return c&&null===c.end&&(c.end=c.start-r),n}drawStems(){this.notes.forEach(t=>{t.getStem()&&t.getStem().setContext(this.context).draw()},this)}drawBeamLines(){this.checkContext();const t=["4","8","16","32","64"],e=this.notes[0];let n=this.getBeamYToDraw();const i=e.getStemX(),s=this.render_options.beam_width*this.stem_direction;for(let r=0;r<t.length;++r){const e=t[r],o=this.getBeamLines(e);for(let t=0;t<o.length;++t){const e=o[t],r=e.start,a=this.getSlopeY(r,i,n,this.slope),c=e.end,l=this.getSlopeY(c,i,n,this.slope);this.context.beginPath(),this.context.moveTo(r,a),this.context.lineTo(r,a+s),this.context.lineTo(c+1,l+s),this.context.lineTo(c+1,l),this.context.closePath(),this.context.fill()}n+=1.5*s}}preFormat(){return this}postFormat(){this.postFormatted||("tabnotes"===this.notes[0].getCategory()||this.render_options.flat_beams?this.calculateFlatSlope():this.calculateSlope(),this.applyStemExtensions(),this.postFormatted=!0)}draw(){this.checkContext(),this.setRendered(),this.unbeamable||(this.postFormatted||this.postFormat(),this.drawStems(),this.applyStyle(),this.drawBeamLines(),this.restoreStyle())}}class M extends c{static get Mode(){return{STRICT:1,SOFT:2,FULL:3}}constructor(t){if(super(),this.setAttribute("type","Voice"),"string"==typeof t){const e=t.match(/(\d+)\/(\d+)/);e&&(t={num_beats:e[1],beat_value:e[2],resolution:p.RESOLUTION})}this.time=i.Merge({num_beats:4,beat_value:4,resolution:p.RESOLUTION},t),this.totalTicks=new s(this.time.num_beats*(this.time.resolution/this.time.beat_value),1),this.resolutionMultiplier=1,this.tickables=[],this.ticksUsed=new s(0,1),this.smallestTickCount=this.totalTicks.clone(),this.largestTickWidth=0,this.stave=null,this.mode=M.Mode.STRICT,this.voiceGroup=null}getTotalTicks(){return this.totalTicks}getTicksUsed(){return this.ticksUsed}getLargestTickWidth(){return this.largestTickWidth}getSmallestTickCount(){return this.smallestTickCount}getTickables(){return this.tickables}getMode(){return this.mode}setMode(t){return this.mode=t,this}getResolutionMultiplier(){return this.resolutionMultiplier}getActualResolution(){return this.resolutionMultiplier*this.time.resolution}setStave(t){return this.stave=t,this.boundingBox=null,this}getBoundingBox(){let t,e,n,s;if(!this.boundingBox){if(!this.stave)throw new i.RERR("NoStave","Can't get bounding box without stave.");for(t=this.stave,e=null,s=0;s<this.tickables.length;++s)this.tickables[s].setStave(t),n=this.tickables[s].getBoundingBox(),n&&(e=e?e.mergeWith(n):n);this.boundingBox=e}return this.boundingBox}getVoiceGroup(){if(!this.voiceGroup)throw new i.RERR("NoVoiceGroup","No voice group for voice.");return this.voiceGroup}setVoiceGroup(t){return this.voiceGroup=t,this}setStrict(t){return this.mode=t?M.Mode.STRICT:M.Mode.SOFT,this}isComplete(){return this.mode!==M.Mode.STRICT&&this.mode!==M.Mode.FULL||this.ticksUsed.equals(this.totalTicks)}addTickable(t){if(!t.shouldIgnoreTicks()){const e=t.getTicks();if(this.ticksUsed.add(e),(this.mode===M.Mode.STRICT||this.mode===M.Mode.FULL)&&this.ticksUsed.greaterThan(this.totalTicks))throw this.ticksUsed.subtract(e),new i.RERR("BadArgument","Too many ticks.");e.lessThan(this.smallestTickCount)&&(this.smallestTickCount=e.clone()),this.resolutionMultiplier=this.ticksUsed.denominator,this.totalTicks.add(0,this.ticksUsed.denominator)}return this.tickables.push(t),t.setVoice(this),this}addTickables(t){for(let e=0;e<t.length;++e)this.addTickable(t[e]);return this}preFormat(){return this.preFormatted||(this.tickables.forEach(t=>{t.getStave()||t.setStave(this.stave)}),this.preFormatted=!0),this}draw(t=this.context,e=this.stave){this.setRendered();let n=null;for(let s=0;s<this.tickables.length;++s){const r=this.tickables[s];if(e&&r.setStave(e),!r.getStave())throw new i.RuntimeError("MissingStave","The voice cannot draw tickables without staves.");if(0===s&&(n=r.getBoundingBox()),s>0&&n){const t=r.getBoundingBox();t&&n.mergeWith(t)}r.setContext(t),r.drawWithStyle()}this.boundingBox=n}}function P(t,e,n,s,r){if(e!==A.type.BOLD_DOUBLE_LEFT&&e!==A.type.BOLD_DOUBLE_RIGHT)throw new i.RERR("InvalidConnector","A REPEAT_BEGIN or REPEAT_END type must be provided.");let o=3,a=3.5;e===A.type.BOLD_DOUBLE_RIGHT&&(o=-5,a=3),t.fillRect(n+o,s,1,r-s),t.fillRect(n-2,s,a,r-s)}class A extends c{static get type(){return{SINGLE_RIGHT:0,SINGLE_LEFT:1,SINGLE:1,DOUBLE:2,BRACE:3,BRACKET:4,BOLD_DOUBLE_LEFT:5,BOLD_DOUBLE_RIGHT:6,THIN_DOUBLE:7,NONE:8}}static get typeString(){return{singleRight:A.type.SINGLE_RIGHT,singleLeft:A.type.SINGLE_LEFT,single:A.type.SINGLE,double:A.type.DOUBLE,brace:A.type.BRACE,bracket:A.type.BRACKET,boldDoubleLeft:A.type.BOLD_DOUBLE_LEFT,boldDoubleRight:A.type.BOLD_DOUBLE_RIGHT,thinDouble:A.type.THIN_DOUBLE,none:A.type.NONE}}constructor(t,e){super(),this.setAttribute("type","StaveConnector"),this.thickness=p.STAVE_LINE_THICKNESS,this.width=3,this.top_stave=t,this.bottom_stave=e,this.type=A.type.DOUBLE,this.font={family:"times",size:16,weight:"normal"},this.x_shift=0,this.texts=[]}setType(t){return(t="string"==typeof t?A.typeString[t]:t)>=A.type.SINGLE_RIGHT&&t<=A.type.NONE&&(this.type=t),this}setText(t,e){return this.texts.push({content:t,options:i.Merge({shift_x:0,shift_y:0},e)}),this}setFont(t){i.Merge(this.font,t)}setXShift(t){if("number"!=typeof t)throw i.RERR("InvalidType","x_shift must be a Number");return this.x_shift=t,this}draw(){const t=this.checkContext();this.setRendered();let e=this.top_stave.getYForLine(0),n=this.bottom_stave.getYForLine(this.bottom_stave.getNumLines()-1)+this.thickness,s=this.width,r=this.top_stave.getX();(this.type===A.type.SINGLE_RIGHT||this.type===A.type.BOLD_DOUBLE_RIGHT||this.type===A.type.THIN_DOUBLE)&&(r=this.top_stave.getX()+this.top_stave.width);let o=n-e;switch(this.type){case A.type.SINGLE:case A.type.SINGLE_LEFT:case A.type.SINGLE_RIGHT:s=1;break;case A.type.DOUBLE:r-=this.width+2;break;case A.type.BRACE:{s=12;const i=this.top_stave.getX()-2+this.x_shift,r=e,a=i,c=n,l=i-s,u=r+o/2,h=l-.9*s,d=r+.2*o,f=i+1.1*s,p=u-.135*o,m=f,g=u+.135*o,b=h,v=c-.2*o,y=l-s,S=v,x=i+.4*s,_=u+.135*o,w=x,E=u-.135*o,T=y,C=d;t.beginPath(),t.moveTo(i,r),t.bezierCurveTo(h,d,f,p,l,u),t.bezierCurveTo(m,g,b,v,a,c),t.bezierCurveTo(y,S,x,_,l,u),t.bezierCurveTo(w,E,T,C,i,r),t.fill(),t.stroke();break}case A.type.BRACKET:e-=4,n+=4,o=n-e,f.renderGlyph(t,r-5,e-3,40,"v1b",!0),f.renderGlyph(t,r-5,n+3,40,"v10",!0),r-=this.width+2;break;case A.type.BOLD_DOUBLE_LEFT:P(t,this.type,r+this.x_shift,e,n);break;case A.type.BOLD_DOUBLE_RIGHT:P(t,this.type,r,e,n);break;case A.type.THIN_DOUBLE:s=1;break;case A.type.NONE:break;default:throw new i.RERR("InvalidType",`The provided StaveConnector.type (${this.type}) is invalid`)}this.type!==A.type.BRACE&&this.type!==A.type.BOLD_DOUBLE_LEFT&&this.type!==A.type.BOLD_DOUBLE_RIGHT&&this.type!==A.type.NONE&&t.fillRect(r,e,s,o),this.type===A.type.THIN_DOUBLE&&t.fillRect(r-3,e,s,o),t.save(),t.lineWidth=2,t.setFont(this.font.family,this.font.size,this.font.weight);for(let i=0;i<this.texts.length;i++){const e=this.texts[i],n=t.measureText(""+e.content).width,s=this.top_stave.getX()-n-24+e.options.shift_x,r=(this.top_stave.getYForLine(0)+this.bottom_stave.getBottomLineY())/2+e.options.shift_y;t.fillText(""+e.content,s,r+4)}t.restore()}}class I extends c{constructor(){super(),this.setAttribute("type","Tickable"),this.ticks=new s(0,1),this.intrinsicTicks=0,this.tickMultiplier=new s(1,1),this.width=0,this.x_shift=0,this.voice=null,this.tickContext=null,this.modifierContext=null,this.modifiers=[],this.preFormatted=!1,this.postFormatted=!1,this.tuplet=null,this.tupletStack=[],this.align_center=!1,this.center_x_shift=0,this.ignore_ticks=!1,this.formatterMetrics={freedom:{left:0,right:0},duration:"",iterations:0,space:{used:0,mean:0,deviation:0}}}reset(){return this}getTicks(){return this.ticks}shouldIgnoreTicks(){return this.ignore_ticks}getWidth(){return this.width}getFormatterMetrics(){return this.formatterMetrics}setXShift(t){this.x_shift=t}getCenterXShift(){return this.isCenterAligned()?this.center_x_shift:0}isCenterAligned(){return this.align_center}setCenterAlignment(t){return this.align_center=t,this}getVoice(){if(!this.voice)throw new i.RERR("NoVoice","Tickable has no voice.");return this.voice}setVoice(t){this.voice=t}getTuplet(){return this.tuplet}resetTuplet(t){let e,n;if(t){const i=this.tupletStack.indexOf(t);return-1!==i&&(this.tupletStack.splice(i,1),e=t.getNoteCount(),n=t.getNotesOccupied(),this.applyTickMultiplier(e,n)),this}for(;this.tupletStack.length;)e=(t=this.tupletStack.pop()).getNoteCount(),n=t.getNotesOccupied(),this.applyTickMultiplier(e,n);return this}setTuplet(t){if(t){this.tupletStack.push(t);const e=t.getNoteCount(),n=t.getNotesOccupied();this.applyTickMultiplier(n,e)}return this.tuplet=t,this}addToModifierContext(t){this.modifierContext=t,this.preFormatted=!1}addModifier(t){return this.modifiers.push(t),this.preFormatted=!1,this}getModifiers(){return this.modifiers}setTickContext(t){this.tickContext=t,this.preFormatted=!1}preFormat(){this.preFormatted||(this.width=0,this.modifierContext&&(this.modifierContext.preFormat(),this.width+=this.modifierContext.getWidth()))}postFormat(){return this.postFormatted||(this.postFormatted=!0),this}getIntrinsicTicks(){return this.intrinsicTicks}setIntrinsicTicks(t){this.intrinsicTicks=t,this.ticks=this.tickMultiplier.clone().multiply(this.intrinsicTicks)}getTickMultiplier(){return this.tickMultiplier}applyTickMultiplier(t,e){this.tickMultiplier.multiply(t,e),this.ticks=this.tickMultiplier.clone().multiply(this.intrinsicTicks)}setDuration(t){const e=t.numerator*(p.RESOLUTION/t.denominator);this.ticks=this.tickMultiplier.clone().multiply(e),this.intrinsicTicks=this.ticks.value()}}class L extends I{static get CATEGORY(){return"note"}static get STAVEPADDING(){return 12}static plotMetrics(t,e,n){const s=e.getMetrics(),r=e.getAbsoluteX()-s.modLeftPx-s.extraLeftPx,o=e.getAbsoluteX()-s.extraLeftPx,a=e.getAbsoluteX(),c=e.getAbsoluteX()+s.noteWidth,l=e.getAbsoluteX()+s.noteWidth+s.extraRightPx,u=e.getAbsoluteX()+s.noteWidth+s.extraRightPx+s.modRightPx,h=u+e.getFormatterMetrics().freedom.right,d=u-r;t.save(),t.setFont("Arial",8,""),t.fillText(Math.round(d)+"px",r+e.getXShift(),n);const f=n+7;function p(n,i,s,r=f){t.beginPath(),t.setStrokeStyle(s),t.setFillStyle(s),t.setLineWidth(3),t.moveTo(n+e.getXShift(),r),t.lineTo(i+e.getXShift(),r),t.stroke()}p(r,o,"red"),p(o,a,"#999"),p(a,c,"green"),p(c,l,"#999"),p(l,u,"red"),p(u,h,"#DD0"),p(r-e.getXShift(),r,"#BBB"),i.drawDot(t,a+e.getXShift(),f,"blue");const m=e.getFormatterMetrics();if(m.iterations>0){const i=m.space.deviation,s=i>=0?"+":"";t.setFillStyle("red"),t.fillText(s+Math.round(i),a+e.getXShift(),n-10)}t.restore()}constructor(t){if(super(),this.setAttribute("type","Note"),!t)throw new i.RuntimeError("BadArguments","Note must have valid initialization data to identify duration and type.");const e=p.parseNoteStruct(t);if(!e)throw new i.RuntimeError("BadArguments","Invalid note initialization object: "+JSON.stringify(t));if(this.duration=e.duration,this.dots=e.dots,this.noteType=e.type,this.customTypes=e.customTypes,t.duration_override?this.setDuration(t.duration_override):this.setIntrinsicTicks(e.ticks),this.modifiers=[],this.glyph=p.getGlyphProps(this.duration,this.noteType),this.customGlyphs=this.customTypes.map(t=>p.getGlyphProps(this.duration,t)),this.positions&&("object"!=typeof this.positions||!this.positions.length))throw new i.RuntimeError("BadArguments","Note keys must be array type.");this.playNote=null,this.tickContext=null,this.modifierContext=null,this.ignore_ticks=!1,this.width=0,this.extraLeftPx=0,this.extraRightPx=0,this.x_shift=0,this.left_modPx=0,this.right_modPx=0,this.voice=null,this.preFormatted=!1,this.ys=[],t.align_center&&this.setCenterAlignment(t.align_center),this.stave=null,this.render_options={annotation_spacing:5,stave_padding:L.STAVEPADDING}}getPlayNote(){return this.playNote}setPlayNote(t){return this.playNote=t,this}isRest(){return!1}addStroke(t,e){return e.setNote(this),e.setIndex(t),this.modifiers.push(e),this.setPreFormatted(!1),this}getStave(){return this.stave}setStave(t){return this.stave=t,this.setYs([t.getYForLine(0)]),this.context=this.stave.context,this}getCategory(){return L.CATEGORY}setContext(t){return this.context=t,this}getExtraLeftPx(){return this.extraLeftPx}getExtraRightPx(){return this.extraRightPx}setExtraLeftPx(t){return this.extraLeftPx=t,this}setExtraRightPx(t){return this.extraRightPx=t,this}shouldIgnoreTicks(){return this.ignore_ticks}getLineNumber(){return 0}getLineForRest(){return 0}getGlyph(){return this.glyph}getGlyphWidth(){return this.glyph.getWidth(this.render_options.glyph_font_scale)}setYs(t){return this.ys=t,this}getYs(){if(0===this.ys.length)throw new i.RERR("NoYValues","No Y-values calculated for this note.");return this.ys}getYForTopText(t){if(!this.stave)throw new i.RERR("NoStave","No stave attached to this note.");return this.stave.getYForTopText(t)}getBoundingBox(){return null}getVoice(){if(!this.voice)throw new i.RERR("NoVoice","Note has no voice.");return this.voice}setVoice(t){return this.voice=t,this.preFormatted=!1,this}getTickContext(){return this.tickContext}setTickContext(t){return this.tickContext=t,this.preFormatted=!1,this}getDuration(){return this.duration}isDotted(){return this.dots>0}hasStem(){return!1}getDots(){return this.dots}getNoteType(){return this.noteType}setBeam(){return this}setModifierContext(t){return this.modifierContext=t,this}addModifier(t,e=0){return t.setNote(this),t.setIndex(e),this.modifiers.push(t),this.setPreFormatted(!1),this}getModifierStartXY(){if(!this.preFormatted)throw new i.RERR("UnformattedNote","Can't call GetModifierStartXY on an unformatted note");return{x:this.getAbsoluteX(),y:this.ys[0]}}getMetrics(){if(!this.preFormatted)throw new i.RERR("UnformattedNote","Can't call getMetrics on an unformatted note.");let t=0,e=0;null!=this.modifierContext&&(t=this.modifierContext.state.left_shift,e=this.modifierContext.state.right_shift);const n=this.getWidth();return{width:n,noteWidth:n-t-e-this.extraLeftPx-this.extraRightPx,left_shift:this.x_shift,modLeftPx:t,modRightPx:e,extraLeftPx:this.extraLeftPx,extraRightPx:this.extraRightPx}}setWidth(t){this.width=t}getWidth(){if(!this.preFormatted)throw new i.RERR("UnformattedNote","Can't call GetWidth on an unformatted note.");return this.width+(this.modifierContext?this.modifierContext.getWidth():0)}setXShift(t){return this.x_shift=t,this}getXShift(){return this.x_shift}getX(){if(!this.tickContext)throw new i.RERR("NoTickContext","Note needs a TickContext assigned for an X-Value");return this.tickContext.getX()+this.x_shift}getAbsoluteX(){if(!this.tickContext)throw new i.RERR("NoTickContext","Note needs a TickContext assigned for an X-Value");let t=this.tickContext.getX();return this.stave&&(t+=this.stave.getNoteStartX()+this.render_options.stave_padding),this.isCenterAligned()&&(t+=this.getCenterXShift()),t}setPreFormatted(t){if(this.preFormatted=t,this.preFormatted){const t=this.tickContext.getExtraPx();this.left_modPx=Math.max(this.left_modPx,t.left),this.right_modPx=Math.max(this.right_modPx,t.right)}}}class O extends L{static get CATEGORY(){return"notehead"}constructor(t){if(super(t),this.setAttribute("type","NoteHead"),this.index=t.index,this.x=t.x||0,this.y=t.y||0,this.note_type=t.note_type,this.duration=t.duration,this.displaced=t.displaced||!1,this.stem_direction=t.stem_direction||V.STEM_UP,this.line=t.line,this.glyph=p.getGlyphProps(this.duration,this.note_type),!this.glyph)throw new i.RuntimeError("BadArguments",`No glyph found for duration '${this.duration}' and type '${this.note_type}'`);this.glyph_code=this.glyph.code_head,this.x_shift=t.x_shift||0,t.custom_glyph_code&&(this.custom_glyph=!0,this.glyph_code=t.custom_glyph_code,this.stem_up_x_offset=t.stem_up_x_offset||0,this.stem_down_x_offset=t.stem_down_x_offset||0),this.style=t.style,this.slashed=t.slashed,i.Merge(this.render_options,{glyph_font_scale:t.glyph_font_scale||p.DEFAULT_NOTATION_FONT_SCALE,stroke_px:3}),this.setWidth(this.glyph.getWidth(this.render_options.glyph_font_scale))}getCategory(){return O.CATEGORY}getWidth(){return this.width}isDisplaced(){return!0===this.displaced}getGlyph(){return this.glyph}setX(t){return this.x=t,this}getY(){return this.y}setY(t){return this.y=t,this}getLine(){return this.line}setLine(t){return this.line=t,this}getAbsoluteX(){const t=this.preFormatted?super.getAbsoluteX():this.x,e=x.WIDTH/2;return t+(this.displaced?(this.width-e)*this.stem_direction:0)}getBoundingBox(){if(!this.preFormatted)throw new i.RERR("UnformattedNote","Can't call getBoundingBox on an unformatted note.");const t=this.stave.getSpacingBetweenLines(),e=t/2,n=this.y-e;return new p.BoundingBox(this.getAbsoluteX(),n,this.width,t)}setStave(t){const e=this.getLine();return this.stave=t,this.setY(t.getYForNote(e)),this.context=this.stave.context,this}preFormat(){if(this.preFormatted)return this;const t=this.getWidth()+this.extraLeftPx+this.extraRightPx;return this.setWidth(t),this.setPreFormatted(!0),this}draw(){this.checkContext(),this.setRendered();const t=this.context;let e=this.getAbsoluteX();this.custom_glyph&&(e+=this.stem_direction===x.UP?this.stem_up_x_offset:this.stem_down_x_offset);const n=this.y;!function(...t){O.DEBUG&&i.L("Vex.Flow.NoteHead",t)}("Drawing note head '",this.note_type,this.duration,"' at",e,n);const s=this.stem_direction,r=this.render_options.glyph_font_scale;if(this.style&&this.applyStyle(t),"s"===this.note_type){const i=this.stave.getSpacingBetweenLines();!function(t,e,n,i,s,r){const o=p.SLASH_NOTEHEAD_WIDTH;t.save(),t.setLineWidth(p.STEM_WIDTH);let a=!1;if(p.durationToNumber(e)>2&&(a=!0),a||(n-=p.STEM_WIDTH/2*s),t.beginPath(),t.moveTo(n,i+r),t.lineTo(n,i+1),t.lineTo(n+o,i-r),t.lineTo(n+o,i),t.lineTo(n,i+r),t.closePath(),a?t.fill():t.stroke(),p.durationToFraction(e).equals(.5)){const e=[-3,-1,o+1,o+3];for(let s=0;s<e.length;s++)t.beginPath(),t.moveTo(n+e[s],i-10),t.lineTo(n+e[s],i+11),t.stroke()}t.restore()}(t,this.duration,e,n,s,i)}else f.renderGlyph(t,e,n,r,this.glyph_code);this.style&&this.restoreStyle(t)}}class k extends L{constructor(t){super(t),this.setAttribute("type","StemmableNote"),this.stem=null,this.stemExtensionOverride=null,this.beam=null}getStem(){return this.stem}setStem(t){return this.stem=t,this}buildStem(){const t=new x;return this.setStem(t),this}buildFlag(){const{glyph:t,beam:e}=this,n=null===e;if(t&&t.flag&&n){const e=this.getStemDirection()===x.DOWN?t.code_flag_downstem:t.code_flag_upstem;this.flag=new f(e,this.render_options.glyph_font_scale)}}getTopGlyph(){return this.getStemDirection()===x.DOWN?this.customGlyphs[this.customGlyphs.length-1]:this.customGlyphs[0]}getStemLength(){return x.HEIGHT+this.getStemExtension()}getBeamCount(){const t=this.getGlyph();return t?t.beam_count:0}getStemMinumumLength(){let t=p.durationToFraction(this.duration).value()<=1?0:20;switch(this.duration){case"8":null==this.beam&&(t=35);break;case"16":t=null==this.beam?35:25;break;case"32":t=null==this.beam?45:35;break;case"64":t=null==this.beam?50:40;break;case"128":t=null==this.beam?55:45}return t}getStemDirection(){return this.stem_direction}setStemDirection(t){if(t||(t=x.UP),t!==x.UP&&t!==x.DOWN)throw new i.RERR("BadArgument","Invalid stem direction: "+t);if(this.stem_direction=t,this.stem){this.stem.setDirection(t),this.stem.setExtension(this.getStemExtension());const e=this.getTopGlyph()||this.getGlyph();this.stem.setOptions({stem_up_y_offset:e.stem_up_y_offset,stem_down_y_offset:e.stem_down_y_offset})}return this.reset(),this.flag&&this.buildFlag(),this.beam=null,this.preFormatted&&this.preFormat(),this}getStemX(){const t=this.getAbsoluteX()+this.x_shift,e=this.getAbsoluteX()+this.x_shift+this.getGlyphWidth();return this.stem_direction===x.DOWN?t:e}getCenterGlyphX(){return this.getAbsoluteX()+this.x_shift+this.getGlyphWidth()/2}getStemExtension(){const t=this.getGlyph();return null!=this.stemExtensionOverride?this.stemExtensionOverride:t?1===this.getStemDirection()?t.stem_up_extension:t.stem_down_extension:0}setStemLength(t){return this.stemExtensionOverride=t-x.HEIGHT,this}getStemExtents(){return this.stem.getExtents()}setBeam(t){return this.beam=t,this}getYForTopText(t){const e=this.getStemExtents();return this.hasStem()?Math.min(this.stave.getYForTopText(t),e.topY-this.render_options.annotation_spacing*(t+1)):this.stave.getYForTopText(t)}getYForBottomText(t){const e=this.getStemExtents();return this.hasStem()?Math.max(this.stave.getYForTopText(t),e.baseY+this.render_options.annotation_spacing*t):this.stave.getYForBottomText(t)}hasFlag(){return p.getGlyphProps(this.duration).flag&&!this.beam}postFormat(){return this.beam&&this.beam.postFormat(),this.postFormatted=!0,this}drawStem(t){this.checkContext(),this.setRendered(),this.setStem(new x(t)),this.stem.setContext(this.context).draw()}}class R extends c{static get CATEGORY(){return"none"}static get Position(){return{LEFT:1,RIGHT:2,ABOVE:3,BELOW:4}}static get PositionString(){return{above:R.Position.ABOVE,below:R.Position.BELOW,left:R.Position.LEFT,right:R.Position.RIGHT}}constructor(){super(),this.setAttribute("type","Modifier"),this.width=0,this.note=null,this.index=null,this.text_line=0,this.position=R.Position.LEFT,this.modifier_context=null,this.x_shift=0,this.y_shift=0,this.spacingFromNextModifier=0}getCategory(){return R.CATEGORY}getWidth(){return this.width}setWidth(t){return this.width=t,this}getNote(){return this.note}setNote(t){return this.note=t,this}getIndex(){return this.index}setIndex(t){return this.index=t,this}getModifierContext(){return this.modifier_context}setModifierContext(t){return this.modifier_context=t,this}getPosition(){return this.position}setPosition(t){return this.position="string"==typeof t?R.PositionString[t]:t,this}setTextLine(t){return this.text_line=t,this}setYShift(t){return this.y_shift=t,this}setSpacingFromNextModifier(t){this.spacingFromNextModifier=t}getSpacingFromNextModifier(){return this.spacingFromNextModifier}setXShift(t){this.x_shift=0,this.position===R.Position.LEFT?this.x_shift-=t:this.x_shift+=t}getXShift(){return this.x_shift}draw(){throw this.checkContext(),new i.RERR("MethodNotImplemented","draw() not implemented for this modifier.")}alignSubNotesWithNote(t,e){const n=e.getTickContext(),i=n.getExtraPx(),s=n.getX()-i.left-i.extraLeft+this.getSpacingFromNextModifier();t.forEach(t=>{const n=t.getTickContext();t.setStave(e.stave),n.setXOffset(s)})}}class N extends R{static get CATEGORY(){return"dots"}static format(t,e){const n=e.right_shift;if(!t||0===t.length)return!1;const i=[],s={};for(let h=0;h<t.length;++h){const e=t[h],n=e.getNote();let r,o;"function"==typeof n.getKeyProps?(r=n.getKeyProps()[e.getIndex()],o=r.displaced?n.getExtraRightPx():0):(r={line:.5},o=0);const a=n.getAttribute("id");i.push({line:r.line,note:n,note_id:a,dot:e}),s[a]=Math.max(s[a]||o,o)}i.sort((t,e)=>e.line-t.line);let r=n,o=0,a=null,c=null,l=null,u=0;for(let h=0;h<i.length;++h){const{dot:t,note:e,note_id:n,line:d}=i[h];d===a&&e===c||(r=s[n]),e.isRest()||d===a||(.5===Math.abs(d%1)?u=0:(u=.5,null==c||c.isRest()||a-d!=.5?d+u===l&&(u=-.5):u=-.5)),e.isRest()?t.dot_shiftY+=-u:t.dot_shiftY=-u,l=d+u,t.setXShift(r),r+=t.getWidth()+1,o=r>o?r:o,a=d,c=e}return e.right_shift+=o,!0}constructor(){super(),this.setAttribute("type","Dot"),this.note=null,this.index=null,this.position=R.Position.RIGHT,this.radius=2,this.setWidth(5),this.dot_shiftY=0}getCategory(){return N.CATEGORY}setNote(t){this.note=t,"gracenotes"===this.note.getCategory()&&(this.radius*=.5,this.setWidth(3))}setDotShiftY(t){return this.dot_shiftY=t,this}draw(){if(this.checkContext(),this.setRendered(),!this.note||null===this.index)throw new i.RERR("NoAttachedNote","Can't draw dot without a note and index.");const t=this.note.stave.options.spacing_between_lines_px,e=this.note.getModifierStartXY(this.position,this.index,{forceFlagRight:!0});"tabnotes"===this.note.getCategory()&&(e.y=this.note.getStemExtents().baseY);const n=e.x+this.x_shift+this.width-this.radius,s=e.y+this.y_shift+this.dot_shiftY*t,r=this.context;r.beginPath(),r.arc(n,s,this.radius,0,2*Math.PI,!1),r.fill()}}function D(t,e,n){const i=(e.isrest?0:1)*n;t.line+=i,t.maxLine+=i,t.minLine+=i,t.note.setKeyLine(0,t.note.getKeyLine(0)+i)}class V extends k{static get CATEGORY(){return"stavenotes"}static get STEM_UP(){return x.UP}static get STEM_DOWN(){return x.DOWN}static get DEFAULT_LEDGER_LINE_OFFSET(){return 3}static format(t,e){if(!t||t.length<2)return!1;if(t[0].getStave())return V.formatByY(t,e);const n=[];for(let i=0;i<t.length;i++){const e=t[i].getKeyProps(),s=e[0].line;let r=e[e.length-1].line;const o=t[i].getStemDirection(),a=t[i].getStemLength()/10,c=t[i].getStemMinumumLength()/10;let l;t[i].isRest()?(l=s+t[i].glyph.line_above,r=s-t[i].glyph.line_below):(l=1===o?e[e.length-1].line+a:e[e.length-1].line,r=1===o?e[0].line:e[0].line-a),n.push({line:e[0].line,maxLine:l,minLine:r,isrest:t[i].isRest(),stemDirection:o,stemMax:a,stemMin:c,voice_shift:t[i].getVoiceShiftWidth(),is_displaced:t[i].isDisplaced(),note:t[i]})}const s=n.length;let r=n[0];const o=s>2?n[1]:null;let a=s>2?n[2]:n[1];2===s&&-1===r.stemDirection&&1===a.stemDirection&&(r=n[1],a=n[0]);const c=Math.max(r.voice_shift,a.voice_shift);let l,u=0;if(2===s){const t=r.stemDirection===a.stemDirection?0:.5;return r.stemDirection===a.stemDirection&&r.minLine<=a.maxLine&&(r.isrest||(l=Math.abs(r.line-(a.maxLine+.5)),l=Math.max(l,r.stemMin),r.minLine=r.line-l,r.note.setStemLength(10*l))),r.minLine<=a.maxLine+t&&(r.isrest?D(r,a,1):a.isrest?D(a,r,-1):(u=c,r.stemDirection===a.stemDirection?r.note.setXShift(u+3):a.note.setXShift(u))),!0}return null!==o&&o.minLine<a.maxLine+.5&&(o.isrest||(l=Math.abs(o.line-(a.maxLine+.5)),l=Math.max(l,o.stemMin),o.minLine=o.line-l,o.note.setStemLength(10*l))),o.isrest&&!r.isrest&&!a.isrest&&(r.minLine<=o.maxLine||o.minLine<=a.maxLine)?(o.maxLine-o.minLine<r.minLine-a.maxLine?function(t,e,n){const s=t.line-i.MidLine(e.minLine,n.maxLine);t.note.setKeyLine(0,t.note.getKeyLine(0)-s),t.line-=s,t.maxLine-=s,t.minLine-=s}(o,r,a):(u=c+3,o.note.setXShift(u)),!0):r.isrest&&o.isrest&&a.isrest?(D(r,o,1),D(a,o,-1),!0):(o.isrest&&r.isrest&&o.minLine<=a.maxLine&&D(o,a,1),o.isrest&&a.isrest&&r.minLine<=o.maxLine&&D(o,r,-1),r.isrest&&r.minLine<=o.maxLine&&D(r,o,1),a.isrest&&o.minLine<=a.maxLine&&D(a,o,-1),(!r.isrest&&!o.isrest&&r.minLine<=o.maxLine+.5||!o.isrest&&!a.isrest&&o.minLine<=a.maxLine)&&(u=c+3,o.note.setXShift(u)),!0)}static formatByY(t,e){let n=!0;for(let i=0;i<t.length;i++)n=n&&null!=t[i].getStave();if(!n)throw new i.RERR("Stave Missing","All notes must have a stave - Vex.Flow.ModifierContext.formatMultiVoice!");let s=0;for(let i=0;i<t.length-1;i++){let e=t[i],n=t[i+1];e.getStemDirection()===x.DOWN&&(e=t[i+1],n=t[i]);const r=e.getKeyProps(),o=n.getKeyProps(),a=.5,c=e.getStave().getYForLine(5-r[0].line+a);n.getStave().getYForLine(5-o[o.length-1].line-a)-c<0&&(s=e.getVoiceShiftWidth()+2,n.setXShift(s))}e.right_shift+=s}static postFormat(t){return!!t&&(t.forEach(t=>t.postFormat()),!0)}constructor(t){if(super(t),this.setAttribute("type","StaveNote"),this.keys=t.keys,this.clef=t.clef,this.octave_shift=t.octave_shift,this.beam=null,this.glyph=p.getGlyphProps(this.duration,this.noteType),!this.glyph)throw new i.RuntimeError("BadArguments","Invalid note initialization data (No glyph found): "+JSON.stringify(t));this.displaced=!1,this.dot_shiftY=0,this.keyProps=[],this.use_default_head_x=!1,this.note_heads=[],this.modifiers=[],i.Merge(this.render_options,{glyph_font_scale:t.glyph_font_scale||p.DEFAULT_NOTATION_FONT_SCALE,stroke_px:t.stroke_px||V.DEFAULT_LEDGER_LINE_OFFSET}),this.calculateKeyProps(),this.buildStem(),t.auto_stem?this.autoStem():this.setStemDirection(t.stem_direction),this.reset(),this.buildFlag()}reset(){super.reset();const t=this.note_heads.map(t=>t.getStyle());this.buildNoteHeads(),this.note_heads.forEach((e,n)=>e.setStyle(t[n])),this.stave&&this.note_heads.forEach(t=>t.setStave(this.stave)),this.calcExtraPx()}setBeam(t){return this.beam=t,this.calcExtraPx(),this}getCategory(){return V.CATEGORY}buildStem(){this.setStem(new x({hide:!!this.isRest()}))}buildNoteHeads(){this.note_heads=[];const t=this.getStemDirection(),e=this.getKeys();let n,i,s,r=null,o=null,a=!1;t===x.UP?(n=0,i=e.length,s=1):t===x.DOWN&&(n=e.length-1,i=-1,s=-1);for(let c=n;c!==i;c+=s){const e=this.keyProps[c],n=e.line;null===r?r=n:(o=Math.abs(r-n),0===o||.5===o?a=!a:(a=!1,this.use_default_head_x=!0)),r=n;const i=new O({duration:this.duration,note_type:this.noteType,displaced:a,stem_direction:t,custom_glyph_code:e.code,glyph_font_scale:this.render_options.glyph_font_scale,x_shift:e.shift_right,stem_up_x_offset:e.stem_up_x_offset,stem_down_x_offset:e.stem_down_x_offset,line:e.line});this.note_heads[c]=i}}autoStem(){this.minLine=this.keyProps[0].line,this.maxLine=this.keyProps[this.keyProps.length-1].line;const t=(this.minLine+this.maxLine)/2<3?x.UP:x.DOWN;this.setStemDirection(t)}calculateKeyProps(){let t=null;for(let e=0;e<this.keys.length;++e){const n=this.keys[e];this.glyph.rest&&(this.glyph.position=n);const s={octave_shift:this.octave_shift||0},r=p.keyProperties(n,this.clef,s);if(!r)throw new i.RuntimeError("BadArguments","Invalid key for note properties: "+n);"R"===r.key&&("1"===this.duration||"w"===this.duration?r.line=4:r.line=3);const o=r.line;null===t?t=o:.5===Math.abs(t-o)&&(this.displaced=!0,r.displaced=!0,this.keyProps.length>0&&(this.keyProps[e-1].displaced=!0)),t=o,this.keyProps.push(r)}t=-1/0,this.keyProps.forEach(e=>{e.line<t&&i.W("Unsorted keys in note will be sorted. See https://github.com/0xfe/vexflow/issues/104 for details."),t=e.line}),this.keyProps.sort((t,e)=>t.line-e.line)}getBoundingBox(){if(!this.preFormatted)throw new i.RERR("UnformattedNote","Can't call getBoundingBox on an unformatted note.");const{width:t,modLeftPx:e,extraLeftPx:n}=this.getMetrics(),s=this.getAbsoluteX()-e-n;let r=0,o=0;const a=this.getStave().getSpacingBetweenLines()/2,c=2*a;if(this.isRest()){const t=this.ys[0],e=p.durationToFraction(this.duration);e.equals(1)||e.equals(2)?(r=t-a,o=t+a):(r=t-this.glyph.line_above*c,o=t+this.glyph.line_below*c)}else if(this.glyph.stem){const t=this.getStemExtents();t.baseY+=a*this.stem_direction,r=Math.min(t.topY,t.baseY),o=Math.max(t.topY,t.baseY)}else{r=null,o=null;for(let t=0;t<this.ys.length;++t){const e=this.ys[t];0===t?(r=e,o=e):(r=Math.min(e,r),o=Math.max(e,o))}r-=a,o+=a}return new u(s,r,t,o-r)}getLineNumber(t){if(!this.keyProps.length)throw new i.RERR("NoKeyProps","Can't get bottom note line, because note is not initialized properly.");let e=this.keyProps[0].line;for(let n=0;n<this.keyProps.length;n++){const i=this.keyProps[n].line;t?i>e&&(e=i):i<e&&(e=i)}return e}isRest(){return this.glyph.rest}isChord(){return!this.isRest()&&this.keys.length>1}hasStem(){return this.glyph.stem}hasFlag(){return super.hasFlag()&&!this.isRest()}getStemX(){return"r"===this.noteType?this.getCenterGlyphX():super.getStemX()+(t=this,x.WIDTH/(2*-t.getStemDirection()));var t}getYForTopText(t){const e=this.getStemExtents();return Math.min(this.stave.getYForTopText(t),e.topY-this.render_options.annotation_spacing*(t+1))}getYForBottomText(t){const e=this.getStemExtents();return Math.max(this.stave.getYForTopText(t),e.baseY+this.render_options.annotation_spacing*t)}setStave(t){super.setStave(t);const e=this.note_heads.map(e=>(e.setStave(t),e.getY()));if(this.setYs(e),this.stem){const{y_top:t,y_bottom:e}=this.getNoteHeadBounds();this.stem.setYBounds(t,e)}return this}getKeys(){return this.keys}getKeyProps(){return this.keyProps}isDisplaced(){return this.displaced}setNoteDisplaced(t){return this.displaced=t,this}getTieRightX(){let t=this.getAbsoluteX();return t+=this.getGlyphWidth()+this.x_shift+this.extraRightPx,this.modifierContext&&(t+=this.modifierContext.getExtraRightPx()),t}getTieLeftX(){let t=this.getAbsoluteX();return t+=this.x_shift-this.extraLeftPx,t}getLineForRest(){let t=this.keyProps[0].line;if(this.keyProps.length>1){const e=this.keyProps[this.keyProps.length-1].line,n=Math.max(t,e),s=Math.min(t,e);t=i.MidLine(n,s)}return t}getModifierStartXY(t,e,n){if(n=n||{},!this.preFormatted)throw new i.RERR("UnformattedNote","Can't call GetModifierStartXY on an unformatted note");if(0===this.ys.length)throw new i.RERR("NoYValues","No Y-Values calculated for this note.");const{ABOVE:s,BELOW:r,LEFT:o,RIGHT:a}=R.Position;let c=0;return t===o?c=-2:t===a?(c=this.getGlyphWidth()+this.x_shift+2,this.stem_direction===x.UP&&this.hasFlag()&&(n.forceFlagRight||((t,e)=>e===(t.getStemDirection()===x.UP?t.keyProps.length-1:0))(this,e))&&(c+=this.flag.getMetrics().width)):t!==r&&t!==s||(c=this.getGlyphWidth()/2),{x:this.getAbsoluteX()+c,y:this.ys[e]}}setStyle(t){super.setStyle(t),this.note_heads.forEach(e=>e.setStyle(t)),this.stem.setStyle(t)}setStemStyle(t){this.getStem().setStyle(t)}getStemStyle(){return this.stem.getStyle()}setLedgerLineStyle(t){this.ledgerLineStyle=t}getLedgerLineStyle(){return this.ledgerLineStyle}setFlagStyle(t){this.flagStyle=t}getFlagStyle(){return this.flagStyle}setKeyStyle(t,e){return this.note_heads[t].setStyle(e),this}setKeyLine(t,e){return this.keyProps[t].line=e,this.reset(),this}getKeyLine(t){return this.keyProps[t].line}addToModifierContext(t){this.setModifierContext(t);for(let e=0;e<this.modifiers.length;++e)this.modifierContext.addModifier(this.modifiers[e]);return this.modifierContext.addModifier(this),this.setPreFormatted(!1),this}addModifier(t,e){return e.setNote(this),e.setIndex(t),this.modifiers.push(e),this.setPreFormatted(!1),this}addAccidental(t,e){return this.addModifier(t,e)}addArticulation(t,e){return this.addModifier(t,e)}addAnnotation(t,e){return this.addModifier(t,e)}addDot(t){const e=new N;return e.setDotShiftY(this.glyph.dot_shiftY),this.dots++,this.addModifier(t,e)}addDotToAll(){for(let t=0;t<this.keys.length;++t)this.addDot(t);return this}getAccidentals(){return this.modifierContext.getModifiers("accidentals")}getDots(){return this.modifierContext.getModifiers("dots")}getVoiceShiftWidth(){return this.getGlyphWidth()*(this.displaced?2:1)}calcExtraPx(){this.setExtraLeftPx(this.displaced&&this.stem_direction===x.DOWN?this.getGlyphWidth():0),this.setExtraRightPx(!this.hasFlag()&&this.displaced&&this.stem_direction===x.UP?this.getGlyphWidth():0)}preFormat(){if(this.preFormatted)return;this.modifierContext&&this.modifierContext.preFormat();let t=this.getGlyphWidth()+this.extraLeftPx+this.extraRightPx;this.glyph.flag&&null===this.beam&&this.stem_direction===x.UP&&(t+=this.getGlyphWidth()),this.setWidth(t),this.setPreFormatted(!0)}getNoteHeadBounds(){let t=null,e=null,n=null,i=null,s=this.stave.getNumLines(),r=1,o=!1,a=!1,c=s,l=r;return this.note_heads.forEach(u=>{const h=u.getLine(),d=u.getY();(null===t||d<t)&&(t=d),(null===e||d>e)&&(e=d),null===i&&u.isDisplaced()&&(i=u.getAbsoluteX()),null!==n||u.isDisplaced()||(n=u.getAbsoluteX()),s=h>s?h:s,r=h<r?h:r,u.isDisplaced()?(o=!1===o?h:Math.max(h,o),a=!1===a?h:Math.min(h,a)):(c=Math.max(h,c),l=Math.min(h,l))},this),{y_top:t,y_bottom:e,displaced_x:i,non_displaced_x:n,highest_line:s,lowest_line:r,highest_displaced_line:o,lowest_displaced_line:a,highest_non_displaced_line:c,lowest_non_displaced_line:l}}getNoteHeadBeginX(){return this.getAbsoluteX()+this.x_shift}getNoteHeadEndX(){return this.getNoteHeadBeginX()+this.getGlyphWidth()}drawLedgerLines(){const{stave:t,glyph:e,render_options:{stroke_px:n},context:s}=this,r=e.getWidth()+2*n,o=2*(e.getWidth()+n)-x.WIDTH/2;if(this.isRest())return;if(!s)throw new i.RERR("NoCanvasContext","Can't draw without a canvas context.");const{highest_line:a,lowest_line:c,highest_displaced_line:l,highest_non_displaced_line:u,lowest_displaced_line:h,lowest_non_displaced_line:d,displaced_x:f,non_displaced_x:p}=this.getNoteHeadBounds(),m=Math.min(f,p),g=(t,e,i)=>{let a;a=i&&e?m-n:e?p-n:f-n;const c=e&&i?o:r;s.beginPath(),s.moveTo(a,t),s.lineTo(a+c,t),s.stroke()},b={...t.getStyle()||{},...this.getLedgerLineStyle()||{}};this.applyStyle(s,b);for(let i=6;i<=a;++i){const e=null!==p&&i<=u,n=null!==f&&i<=l;g(t.getYForNote(i),e,n)}for(let i=0;i>=c;--i){const e=null!==p&&i>=d,n=null!==f&&i>=h;g(t.getYForNote(i),e,n)}this.restoreStyle(s,b)}drawModifiers(){if(!this.context)throw new i.RERR("NoCanvasContext","Can't draw without a canvas context.");const t=this.context;t.openGroup("modifiers");for(let e=0;e<this.modifiers.length;e++){const n=this.modifiers[e],i=this.note_heads[n.getIndex()],s=i.getStyle();i.applyStyle(t,s),n.setContext(t),n.drawWithStyle(),i.restoreStyle(t,s)}t.closeGroup()}drawFlag(){const{stem:t,beam:e,context:n}=this;if(!n)throw new i.RERR("NoCanvasContext","Can't draw without a canvas context.");const s=null===e;if(this.getGlyph().flag&&s){const{y_top:e,y_bottom:i}=this.getNoteHeadBounds(),s=t.getHeight(),r=this.getStemX(),o=this.getStemDirection()===x.DOWN?e-s+2:i-s-2;n.openGroup("flag",null,{pointerBBox:!0}),this.applyStyle(n,this.getFlagStyle()||!1),this.flag.render(n,r,o),this.restoreStyle(n,this.getFlagStyle()||!1),n.closeGroup()}}drawNoteHeads(){this.note_heads.forEach(t=>{this.context.openGroup("notehead",null,{pointerBBox:!0}),t.setContext(this.context).draw(),this.context.closeGroup()})}drawStem(t){if(!this.context)throw new i.RERR("NoCanvasContext","Can't draw without a canvas context.");t&&this.setStem(new x(t)),this.context.openGroup("stem",null,{pointerBBox:!0}),this.stem.setContext(this.context).draw(),this.context.closeGroup()}draw(){if(!this.context)throw new i.RERR("NoCanvasContext","Can't draw without a canvas context.");if(!this.stave)throw new i.RERR("NoStave","Can't draw without a stave.");if(0===this.ys.length)throw new i.RERR("NoYValues","Can't draw note without Y values.");const t=this.getNoteHeadBeginX(),e=this.hasStem()&&!this.beam;this.note_heads.forEach(e=>e.setX(t));const n=this.getStemX();this.stem.setNoteHeadXBounds(n,n),function(...t){V.DEBUG&&i.L("Vex.Flow.StaveNote",t)}("Rendering ",this.isChord()?"chord :":"note :",this.keys),this.drawLedgerLines(),this.applyStyle(),this.setAttribute("el",this.context.openGroup("stavenote",this.getAttribute("id"))),this.context.openGroup("note",null,{pointerBBox:!0}),e&&this.drawStem(),this.drawNoteHeads(),this.drawFlag(),this.context.closeGroup(),this.drawModifiers(),this.context.closeGroup(),this.restoreStyle(),this.setRendered()}}class B extends R{static get CATEGORY(){return"frethandfinger"}static format(t,e){const{left_shift:n,right_shift:i}=e;if(!t||0===t.length)return!1;const s=[];let r=null,o=0,a=0;for(let p=0;p<t.length;++p){const e=t[p],c=e.getNote(),l=e.getPosition(),u=c.getKeyProps()[e.getIndex()];if(c!==r){for(let t=0;t<c.keys.length;++t){const e=c.getKeyProps()[t];0===n&&(o=e.displaced?c.getExtraLeftPx():o),0===i&&(a=e.displaced?c.getExtraRightPx():a)}r=c}s.push({note:c,num:e,pos:l,line:u.line,shiftL:o,shiftR:a})}s.sort((t,e)=>e.line-t.line);let c=0,l=0,u=0,h=0,d=null,f=null;for(let p=0;p<s.length;++p){let t=0;const{note:e,pos:r,num:o,line:m,shiftL:g,shiftR:b}=s[p];m===d&&e===f||(c=n+g,l=i+b);const v=o.getWidth()+1;r===R.Position.LEFT?(o.setXShift(n+c),t=n+v,u=t>u?t:u):r===R.Position.RIGHT&&(o.setXShift(l),t=a+v,h=t>h?t:h),d=m,f=e}return e.left_shift+=u,e.right_shift+=h,!0}constructor(t){super(),this.setAttribute("type","FretHandFinger"),this.note=null,this.index=null,this.finger=t,this.width=7,this.position=R.Position.LEFT,this.x_shift=0,this.y_shift=0,this.x_offset=0,this.y_offset=0,this.font={family:"sans-serif",size:9,weight:"bold"}}getCategory(){return B.CATEGORY}setFretHandFinger(t){return this.finger=t,this}setOffsetX(t){return this.x_offset=t,this}setOffsetY(t){return this.y_offset=t,this}draw(){if(this.checkContext(),!this.note||null==this.index)throw new i.RERR("NoAttachedNote","Can't draw string number without a note and index.");this.setRendered();const t=this.context,e=this.note.getModifierStartXY(this.position,this.index);let n=e.x+this.x_shift+this.x_offset,s=e.y+this.y_shift+this.y_offset+5;switch(this.position){case R.Position.ABOVE:n-=4,s-=12;break;case R.Position.BELOW:n-=2,s+=10;break;case R.Position.LEFT:n-=this.width;break;case R.Position.RIGHT:n+=1;break;default:throw new i.RERR("InvalidPostion",`The position ${this.position} does not exist`)}t.save(),t.setFont(this.font.family,this.font.size,this.font.weight),t.fillText(""+this.finger,n,s),t.restore()}}class F{static get NUM_TONES(){return 12}static get roots(){return["c","d","e","f","g","a","b"]}static get root_values(){return[0,2,4,5,7,9,11]}static get root_indices(){return{c:0,d:1,e:2,f:3,g:4,a:5,b:6}}static get canonical_notes(){return["c","c#","d","d#","e","f","f#","g","g#","a","a#","b"]}static get diatonic_intervals(){return["unison","m2","M2","m3","M3","p4","dim5","p5","m6","M6","b7","M7","octave"]}static get diatonic_accidentals(){return{unison:{note:0,accidental:0},m2:{note:1,accidental:-1},M2:{note:1,accidental:0},m3:{note:2,accidental:-1},M3:{note:2,accidental:0},p4:{note:3,accidental:0},dim5:{note:4,accidental:-1},p5:{note:4,accidental:0},m6:{note:5,accidental:-1},M6:{note:5,accidental:0},b7:{note:6,accidental:-1},M7:{note:6,accidental:0},octave:{note:7,accidental:0}}}static get intervals(){return{u:0,unison:0,m2:1,b2:1,min2:1,S:1,H:1,2:2,M2:2,maj2:2,T:2,W:2,m3:3,b3:3,min3:3,M3:4,3:4,maj3:4,4:5,p4:5,"#4":6,b5:6,aug4:6,dim5:6,5:7,p5:7,"#5":8,b6:8,aug5:8,6:9,M6:9,maj6:9,b7:10,m7:10,min7:10,dom7:10,M7:11,maj7:11,8:12,octave:12}}static get scales(){return{major:[2,2,1,2,2,2,1],dorian:[2,1,2,2,2,1,2],mixolydian:[2,2,1,2,2,1,2],minor:[2,1,2,2,1,2,2]}}static get scaleTypes(){return{M:F.scales.major,m:F.scales.minor}}static get accidentals(){return["bb","b","n","#","##"]}static get noteValues(){return{c:{root_index:0,int_val:0},cn:{root_index:0,int_val:0},"c#":{root_index:0,int_val:1},"c##":{root_index:0,int_val:2},cb:{root_index:0,int_val:11},cbb:{root_index:0,int_val:10},d:{root_index:1,int_val:2},dn:{root_index:1,int_val:2},"d#":{root_index:1,int_val:3},"d##":{root_index:1,int_val:4},db:{root_index:1,int_val:1},dbb:{root_index:1,int_val:0},e:{root_index:2,int_val:4},en:{root_index:2,int_val:4},"e#":{root_index:2,int_val:5},"e##":{root_index:2,int_val:6},eb:{root_index:2,int_val:3},ebb:{root_index:2,int_val:2},f:{root_index:3,int_val:5},fn:{root_index:3,int_val:5},"f#":{root_index:3,int_val:6},"f##":{root_index:3,int_val:7},fb:{root_index:3,int_val:4},fbb:{root_index:3,int_val:3},g:{root_index:4,int_val:7},gn:{root_index:4,int_val:7},"g#":{root_index:4,int_val:8},"g##":{root_index:4,int_val:9},gb:{root_index:4,int_val:6},gbb:{root_index:4,int_val:5},a:{root_index:5,int_val:9},an:{root_index:5,int_val:9},"a#":{root_index:5,int_val:10},"a##":{root_index:5,int_val:11},ab:{root_index:5,int_val:8},abb:{root_index:5,int_val:7},b:{root_index:6,int_val:11},bn:{root_index:6,int_val:11},"b#":{root_index:6,int_val:0},"b##":{root_index:6,int_val:1},bb:{root_index:6,int_val:10},bbb:{root_index:6,int_val:9}}}isValidNoteValue(t){return!(null==t||t<0||t>=F.NUM_TONES)}isValidIntervalValue(t){return this.isValidNoteValue(t)}getNoteParts(t){if(!t||t.length<1)throw new i.RERR("BadArguments","Invalid note name: "+t);if(t.length>3)throw new i.RERR("BadArguments","Invalid note name: "+t);const e=t.toLowerCase(),n=/^([cdefgab])(b|bb|n|#|##)?$/.exec(e);if(null!=n)return{root:n[1],accidental:n[2]};throw new i.RERR("BadArguments","Invalid note name: "+t)}getKeyParts(t){if(!t||t.length<1)throw new i.RERR("BadArguments","Invalid key: "+t);const e=t.toLowerCase(),n=/^([cdefgab])(b|#)?(mel|harm|m|M)?$/.exec(e);if(null!=n){const t=n[1],e=n[2];let i=n[3];return i||(i="M"),{root:t,accidental:e,type:i}}throw new i.RERR("BadArguments","Invalid key: "+t)}getNoteValue(t){const e=F.noteValues[t];if(null==e)throw new i.RERR("BadArguments","Invalid note name: "+t);return e.int_val}getIntervalValue(t){const e=F.intervals[t];if(null==e)throw new i.RERR("BadArguments","Invalid interval name: "+t);return e}getCanonicalNoteName(t){if(!this.isValidNoteValue(t))throw new i.RERR("BadArguments","Invalid note value: "+t);return F.canonical_notes[t]}getCanonicalIntervalName(t){if(!this.isValidIntervalValue(t))throw new i.RERR("BadArguments","Invalid interval value: "+t);return F.diatonic_intervals[t]}getRelativeNoteValue(t,e,n){if(null==n&&(n=1),1!==n&&-1!==n)throw new i.RERR("BadArguments","Invalid direction: "+n);let s=(t+n*e)%F.NUM_TONES;return s<0&&(s+=F.NUM_TONES),s}getRelativeNoteName(t,e){const n=this.getNoteParts(t),s=this.getNoteValue(n.root);let r=e-s;if(Math.abs(r)>F.NUM_TONES-3){let n=1;r>0&&(n=-1);const o=(e+1+(s+1))%F.NUM_TONES*n;if(Math.abs(o)>2)throw new i.RERR("BadArguments",`Notes not related: ${t}, ${e})`);r=o}if(Math.abs(r)>2)throw new i.RERR("BadArguments",`Notes not related: ${t}, ${e})`);let o=n.root;if(r>0)for(let i=1;i<=r;++i)o+="#";else if(r<0)for(let i=-1;i>=r;--i)o+="b";return o}getScaleTones(t,e){const n=[t];let i=t;for(let s=0;s<e.length;s+=1)i=this.getRelativeNoteValue(i,e[s]),i!==t&&n.push(i);return n}getIntervalBetween(t,e,n){if(null==n&&(n=1),1!==n&&-1!==n)throw new i.RERR("BadArguments","Invalid direction: "+n);if(!this.isValidNoteValue(t)||!this.isValidNoteValue(e))throw new i.RERR("BadArguments",`Invalid notes: ${t}, ${e}`);let s=1===n?e-t:t-e;return s<0&&(s+=F.NUM_TONES),s}createScaleMap(t){const e=this.getKeyParts(t),n=F.scaleTypes[e.type];let s=e.root;if(e.accidental&&(s+=e.accidental),!n)throw new i.RERR("BadArguments","Unsupported key type: "+t);const r=this.getScaleTones(this.getNoteValue(s),n),o=F.root_indices[e.root],a={};for(let i=0;i<F.roots.length;++i){const t=(o+i)%F.roots.length,e=F.roots[t];let n=this.getRelativeNoteName(e,r[i]);1===n.length&&(n+="n"),a[e]=n}return a}}function j(...t){W.DEBUG&&i.L("Vex.Flow.Accidental",t)}const G=t=>t.getMetrics().width;class W extends R{static get CATEGORY(){return"accidentals"}static format(t,e){const n=e.left_shift+1;if(!t||0===t.length)return;const i=[];let s,r=null,o=0;for(let p=0;p<t.length;++p){const e=t[p],n=e.getNote(),a=n.getStave(),c=n.getKeyProps()[e.getIndex()];if(n!==r){for(let t=0;t<n.keys.length;++t)s=n.getKeyProps()[t],o=s.displaced?n.getExtraLeftPx():o;r=n}if(null!==a){const t=a.options.spacing_between_lines_px,n=a.getYForLine(c.line),s=Math.round(n/t*2)/2;i.push({y:n,line:s,shift:o,acc:e,lineSpace:t})}else i.push({line:c.line,shift:o,acc:e})}i.sort((t,e)=>e.line-t.line);const a=[];let c=0,l=null;for(let p=0;p<i.length;p++){const t=i[p];null!==l&&l===t.line||a.push({line:t.line,flatLine:!0,dblSharpLine:!0,numAcc:0,width:0}),"b"!==t.acc.type&&"bb"!==t.acc.type&&(a[a.length-1].flatLine=!1),"##"!==t.acc.type&&(a[a.length-1].dblSharpLine=!1),a[a.length-1].numAcc++,a[a.length-1].width+=t.acc.getWidth()+3,c=t.shift>c?t.shift:c,l=t.line}let u=0;for(let g=0;g<a.length;g++){let t=!1;const e=g;let n=g;for(;n+1<a.length&&!t;)this.checkCollision(a[n],a[n+1])?n++:t=!0;const i=t=>a[e+t],s=t=>t.map(i),r=(t,e)=>{const[n,i]=s([t,e]).map(t=>t.line);return n-i},o=(...t)=>t.map(s).every(t=>!this.checkCollision(...t)),c=n-e+1;let l,h,d=this.checkCollision(a[e],a[n])?"a":"b";switch(c){case 3:"a"===d&&.5===r(1,2)&&.5!==r(0,1)&&(d="second_on_bottom");break;case 4:o([0,2],[1,3])&&(d="spaced_out_tetrachord");break;case 5:"b"===d&&o([1,3])&&(d="spaced_out_pentachord",o([0,2],[2,4])&&(d="very_spaced_out_pentachord"));break;case 6:o([0,3],[1,4],[2,5])&&(d="spaced_out_hexachord"),o([0,2],[2,4],[1,3],[3,5])&&(d="very_spaced_out_hexachord")}if(c>=7){let t=2,e=!0;for(;!0===e;){e=!1;for(let n=0;n+t<a.length;n++)if(this.checkCollision(a[n],a[n+t])){e=!0,t++;break}}for(l=g;l<=n;l++)h=(l-g)%t+1,a[l].column=h,u=u>h?u:h}else for(l=g;l<=n;l++)h=p.accidentalColumnsTable[c][d][l-g],a[l].column=h,u=u>h?u:h;g=n}const h=[],d=[];for(let p=0;p<=u;p++)h[p]=0,d[p]=0;h[0]=c+n,d[0]=c+n,a.forEach(t=>{t.width>h[t.column]&&(h[t.column]=t.width)});for(let p=1;p<h.length;p++)d[p]=h[p]+d[p-1];const f=d[d.length-1];let m=0;a.forEach(t=>{let e=0;const n=m+t.numAcc;for(;m<n;m++){const n=d[t.column-1]+e;i[m].acc.setXShift(n),e+=i[m].acc.getWidth()+3,j("Line, accCount, shift: ",t.line,m,n)}}),e.left_shift+=f}static checkCollision(t,e){let n=e.line-t.line,i=3;n>0?(i=e.flatLine||e.dblSharpLine?2.5:3,t.dblSharpLine&&(n-=.5)):(i=t.flatLine||t.dblSharpLine?2.5:3,e.dblSharpLine&&(n-=.5));const s=Math.abs(n)<i;return j("Line_1, Line_2, Collision: ",t.line,e.line,s),s}static applyAccidentals(t,e){const n=[],i={};t.forEach(t=>{const e=new s(0,1);t.getTickables().forEach(t=>{if(t.shouldIgnoreTicks())return;const s=i[e.value()];s?s.push(t):(n.push(e.value()),i[e.value()]=[t]),e.add(t.getTicks())})});const r=new F;e||(e="C");const o=r.createScaleMap(e);n.forEach(t=>{const e=i[t],n=[],s=t=>{t.isRest()||t.shouldIgnoreTicks()||(t.keys.forEach((e,i)=>{const s=r.getNoteParts(e.split("/")[0]),a=s.accidental||"n",c=s.root+a,l=o[s.root]===c,u=n.indexOf(c)>-1;if(!l||l&&u){o[s.root]=c;const e=new W(a);t.addAccidental(i,e),n.push(c)}}),t.getModifiers().forEach(t=>{"gracenotegroups"===t.getCategory()&&t.getGraceNotes().forEach(s)}))};e.forEach(s)})}constructor(t=null){if(super(),this.setAttribute("type","Accidental"),j("New accidental: ",t),this.note=null,this.index=null,this.type=t,this.position=R.Position.LEFT,this.render_options={font_scale:38,stroke_px:3,parenLeftPadding:2,parenRightPadding:2},this.accidental=p.accidentalCodes(this.type),!this.accidental)throw new i.RERR("ArgumentError","Unknown accidental type: "+t);this.cautionary=!1,this.parenLeft=null,this.parenRight=null,this.reset()}reset(){const t=this.render_options.font_scale;this.glyph=new f(this.accidental.code,t),this.glyph.setOriginX(1),this.cautionary&&(this.parenLeft=new f(p.accidentalCodes("{").code,t),this.parenRight=new f(p.accidentalCodes("}").code,t),this.parenLeft.setOriginX(1),this.parenRight.setOriginX(1))}getCategory(){return W.CATEGORY}getWidth(){const t=this.cautionary?G(this.parenLeft)+G(this.parenRight)+this.render_options.parenLeftPadding+this.render_options.parenRightPadding:0;return G(this.glyph)+t}setNote(t){if(!t)throw new i.RERR("ArgumentError","Bad note value: "+t);this.note=t,"gracenotes"===this.note.getCategory()&&(this.render_options.font_scale=25,this.reset())}setAsCautionary(){return this.cautionary=!0,this.render_options.font_scale=28,this.reset(),this}draw(){const{context:t,type:e,position:n,note:s,index:r,cautionary:o,x_shift:a,y_shift:c,glyph:l,parenLeft:u,parenRight:h,render_options:{parenLeftPadding:d,parenRightPadding:f}}=this;if(this.checkContext(),!s||null==r)throw new i.RERR("NoAttachedNote","Can't draw accidental without a note and index.");const p=s.getModifierStartXY(n,r);let m=p.x+a;const g=p.y+c;j("Rendering: ",e,m,g),o?(h.render(t,m,g),m-=G(h),m-=f,m-=this.accidental.parenRightPaddingAdjustment,l.render(t,m,g),m-=G(l),m-=d,u.render(t,m,g)):l.render(t,m,g),this.setRendered()}}class $ extends R{static get CATEGORY(){return"notesubgroup"}static format(t,e){if(!t||0===t.length)return!1;let n=0;for(let i=0;i<t.length;++i){const e=t[i];e.preFormat(),n+=e.getWidth()}return e.left_shift+=n,!0}constructor(t){return super(),this.setAttribute("type","NoteSubGroup"),this.note=null,this.index=null,this.position=R.Position.LEFT,this.subNotes=t,this.subNotes.forEach(t=>{t.ignore_ticks=!1}),this.width=0,this.preFormatted=!1,this.formatter=new ht,this.voice=new M({num_beats:4,beat_value:4,resolution:p.RESOLUTION}).setStrict(!1),this.voice.addTickables(this.subNotes),this}getCategory(){return $.CATEGORY}preFormat(){this.preFormatted||(this.formatter.joinVoices([this.voice]).format([this.voice],0),this.setWidth(this.formatter.getMinTotalWidth()),this.preFormatted=!0)}setNote(t){this.note=t}setWidth(t){this.width=t}getWidth(){return this.width}draw(){this.checkContext();const t=this.getNote();if(!t||null===this.index)throw new i.RuntimeError("NoAttachedNote","Can't draw notes without a parent note and parent note index.");this.setRendered(),this.alignSubNotesWithNote(this.subNotes,t),this.subNotes.forEach(t=>t.setContext(this.context).drawWithStyle())}}class z extends c{constructor(t,e){super(),this.setAttribute("type","StaveTie"),this.notes=t,this.context=null,this.text=e,this.direction=null,this.render_options={cp1:8,cp2:12,text_shift_x:0,first_x_shift:0,last_x_shift:0,y_shift:7,tie_spacing:0,font:{family:"Arial",size:10,style:""}},this.font=this.render_options.font,this.setNotes(t)}setFont(t){return this.font=t,this}setDirection(t){return this.direction=t,this}setNotes(t){if(!t.first_note&&!t.last_note)throw new i.RuntimeError("BadArguments","Tie needs to have either first_note or last_note set.");if(t.first_indices||(t.first_indices=[0]),t.last_indices||(t.last_indices=[0]),t.first_indices.length!==t.last_indices.length)throw new i.RuntimeError("BadArguments","Tied notes must have similar index sizes");return this.first_note=t.first_note,this.first_indices=t.first_indices,this.last_note=t.last_note,this.last_indices=t.last_indices,this}isPartial(){return!this.first_note||!this.last_note}renderTie(t){if(0===t.first_ys.length||0===t.last_ys.length)throw new i.RERR("BadArguments","No Y-values to render");const e=this.context;let n=this.render_options.cp1,s=this.render_options.cp2;Math.abs(t.last_x_px-t.first_x_px)<10&&(n=2,s=8);const r=this.render_options.first_x_shift,o=this.render_options.last_x_shift,a=this.render_options.y_shift*t.direction;for(let c=0;c<this.first_indices.length;++c){const l=(t.last_x_px+o+(t.first_x_px+r))/2,u=t.first_ys[this.first_indices[c]]+a,h=t.last_ys[this.last_indices[c]]+a;if(isNaN(u)||isNaN(h))throw new i.RERR("BadArguments","Bad indices for tie rendering.");const d=(u+h)/2+n*t.direction,f=(u+h)/2+s*t.direction;e.beginPath(),e.moveTo(t.first_x_px+r,u),e.quadraticCurveTo(l,d,t.last_x_px+o,h),e.quadraticCurveTo(l,f,t.first_x_px+r,u),e.closePath(),e.fill()}}renderText(t,e){if(!this.text)return;let n=(t+e)/2;n-=this.context.measureText(this.text).width/2,this.context.save(),this.context.setFont(this.font.family,this.font.size,this.font.style),this.context.fillText(this.text,n+this.render_options.text_shift_x,(this.first_note||this.last_note).getStave().getYForTopText()-1),this.context.restore()}draw(){this.checkContext(),this.setRendered();const t=this.first_note,e=this.last_note;let n,i,s,r,o;return t?(n=t.getTieRightX()+this.render_options.tie_spacing,o=t.getStemDirection(),s=t.getYs()):(n=e.getStave().getTieStartX(),s=e.getYs(),this.first_indices=this.last_indices),e?(i=e.getTieLeftX()+this.render_options.tie_spacing,o=e.getStemDirection(),r=e.getYs()):(i=t.getStave().getTieEndX(),r=t.getYs(),this.last_indices=this.first_indices),this.direction&&(o=this.direction),this.renderTie({first_x_px:n,last_x_px:i,first_ys:s,last_ys:r,direction:o}),this.renderText(n,i),!0}}class H extends z{static createHammeron(t){return new H(t,"H")}static createPulloff(t){return new H(t,"P")}constructor(t,e){super(t,e),this.setAttribute("type","TabTie"),this.render_options.cp1=9,this.render_options.cp2=11,this.render_options.y_shift=3,this.setNotes(t)}draw(){this.checkContext(),this.setRendered();const t=this.first_note,e=this.last_note;let n,i,s,r;return t?(n=t.getTieRightX()+this.render_options.tie_spacing,s=t.getYs()):(n=e.getStave().getTieStartX(),s=e.getYs(),this.first_indices=this.last_indices),e?(i=e.getTieLeftX()+this.render_options.tie_spacing,r=e.getYs()):(i=t.getStave().getTieEndX(),r=t.getYs(),this.last_indices=this.first_indices),this.renderTie({first_x_px:n,last_x_px:i,first_ys:s,last_ys:r,direction:-1}),this.renderText(n,i),!0}}class U extends R{static get CATEGORY(){return"gracenotegroups"}static format(t,e){if(!t||0===t.length)return!1;const n=[];let i=null,s=0;for(let a=0;a<t.length;++a){const e=t[a],r=e.getNote(),o=r.getCategory()===V.CATEGORY,c=o?4:0;if(o&&r!==i){for(let t=0;t<r.keys.length;++t)s=r.getKeyProps()[t].displaced?r.getExtraLeftPx():s;i=r}n.push({shift:s,gracenote_group:e,spacing:c})}let r,o=n[0].shift;for(let a=0;a<n.length;++a){const t=n[a].gracenote_group;t.preFormat(),r=t.getWidth()+n[a].spacing,o=Math.max(r,o)}for(let a=0;a<n.length;++a){const t=n[a].gracenote_group;r=t.getWidth()+n[a].spacing,t.setSpacingFromNextModifier(o-Math.min(r,o))}return e.left_shift+=o,!0}constructor(t,e){return super(),this.setAttribute("type","GraceNoteGroup"),this.note=null,this.index=null,this.position=R.Position.LEFT,this.grace_notes=t,this.width=0,this.preFormatted=!1,this.show_slur=e,this.slur=null,this.formatter=new ht,this.voice=new M({num_beats:4,beat_value:4,resolution:p.RESOLUTION}).setStrict(!1),this.render_options={slur_y_shift:0},this.beams=[],this.voice.addTickables(this.grace_notes),this}getCategory(){return U.CATEGORY}preFormat(){this.preFormatted||(this.formatter.joinVoices([this.voice]).format([this.voice],0),this.setWidth(this.formatter.getMinTotalWidth()),this.preFormatted=!0)}beamNotes(t){if((t=t||this.grace_notes).length>1){const e=new C(t);e.render_options.beam_width=3,e.render_options.partial_beam_length=4,this.beams.push(e)}return this}setNote(t){this.note=t}setWidth(t){this.width=t}getWidth(){return this.width}getGraceNotes(){return this.grace_notes}draw(){this.checkContext();const t=this.getNote();if(function(...t){U.DEBUG&&i.L("Vex.Flow.GraceNoteGroup",t)}("Drawing grace note group for:",t),!t||null===this.index)throw new i.RuntimeError("NoAttachedNote","Can't draw grace note without a parent note and parent note index.");if(this.setRendered(),this.alignSubNotesWithNote(this.getGraceNotes(),t),this.grace_notes.forEach(t=>{t.setContext(this.context).draw()}),this.beams.forEach(t=>{t.setContext(this.context).draw()}),this.show_slur){const e=this.getNote().getCategory()===V.CATEGORY,n=e?z:H;this.slur=new n({last_note:this.grace_notes[0],first_note:t,first_indices:[0],last_indices:[0]}),this.slur.render_options.cp2=12,this.slur.render_options.y_shift=(e?7:5)+this.render_options.slur_y_shift,this.slur.setContext(this.context).draw()}}}class Y extends R{static get CATEGORY(){return"strokes"}static get Type(){return{BRUSH_DOWN:1,BRUSH_UP:2,ROLL_DOWN:3,ROLL_UP:4,RASQUEDO_DOWN:5,RASQUEDO_UP:6,ARPEGGIO_DIRECTIONLESS:7}}static format(t,e){const n=e.left_shift;if(!t||0===t.length)return this;const i=t.map(t=>{const e=t.getNote();if(e instanceof V){const{line:n,displaced:i}=e.getKeyProps()[t.getIndex()];return{line:n,shift:i?e.getExtraLeftPx():0,stroke:t}}{const{str:n}=e.getPositions()[t.getIndex()];return{line:n,shift:0,stroke:t}}}),s=n,r=i.reduce((t,{stroke:e,shift:n})=>(e.setXShift(s+n),Math.max(e.getWidth()+0,t)),0);return e.left_shift+=r,!0}constructor(t,e){super(),this.setAttribute("type","Stroke"),this.note=null,this.options=i.Merge({},e),this.all_voices=!("all_voices"in this.options)||this.options.all_voices,this.note_end=null,this.index=null,this.type=t,this.position=R.Position.LEFT,this.render_options={font_scale:38,stroke_px:3,stroke_spacing:10},this.font={family:"serif",size:10,weight:"bold italic"},this.setXShift(0),this.setWidth(10)}getCategory(){return Y.CATEGORY}getPosition(){return this.position}addEndNote(t){return this.note_end=t,this}draw(){if(this.checkContext(),this.setRendered(),!this.note||null==this.index)throw new i.RERR("NoAttachedNote","Can't draw stroke without a note and index.");const t=this.note.getModifierStartXY(this.position,this.index);let e=this.note.getYs(),n=t.y,s=t.y;const r=t.x-5,o=this.note.stave.options.spacing_between_lines_px,a=this.getModifierContext().getModifiers(this.note.getCategory());for(let f=0;f<a.length;f++){e=a[f].getYs();for(let t=0;t<e.length;t++)(this.note===a[f]||this.all_voices)&&(n=i.Min(n,e[t]),s=i.Max(s,e[t]))}let c,l,u,h,d;switch(this.type){case Y.Type.BRUSH_DOWN:c="vc3",l=-3,u=n-o/2+10,s+=o/2;break;case Y.Type.BRUSH_UP:c="v11",l=.5,u=s+o/2,n-=o/2;break;case Y.Type.ROLL_DOWN:case Y.Type.RASQUEDO_DOWN:c="vc3",l=-3,h=this.x_shift+l-2,this.note instanceof V?(n+=1.5*o,s+=(s-n)%2!=0?.5*o:o,u=n-o,d=s+o+2):(n+=1.5*o,s+=o,u=n-.75*o,d=s+.25*o);break;case Y.Type.ROLL_UP:case Y.Type.RASQUEDO_UP:c="v52",l=-4,h=this.x_shift+l-1,this.note instanceof V?(u=o/2,n+=.5*o,(s-n)%2==0&&(s+=o/2),u=s+.5*o,d=n-1.25*o):(n+=.25*o,s+=.5*o,u=s+.25*o,d=n-o);break;case Y.Type.ARPEGGIO_DIRECTIONLESS:n+=.5*o,s+=o;break;default:throw new i.RERR("InvalidType",`The stroke type ${this.type} does not exist`)}if(this.type===Y.Type.BRUSH_DOWN||this.type===Y.Type.BRUSH_UP)this.context.fillRect(r+this.x_shift,n,1,s-n);else if(this.note instanceof V)for(let i=n;i<=s;i+=o)f.renderGlyph(this.context,r+this.x_shift-4,i,this.render_options.font_scale,"va3");else{let t;for(t=n;t<=s;t+=10)f.renderGlyph(this.context,r+this.x_shift-4,t,this.render_options.font_scale,"va3");this.type===Y.Type.RASQUEDO_DOWN&&(d=t+.25*o)}this.type!==Y.Type.ARPEGGIO_DIRECTIONLESS&&(f.renderGlyph(this.context,r+this.x_shift+l,u,this.render_options.font_scale,c),this.type!==Y.Type.RASQUEDO_DOWN&&this.type!==Y.Type.RASQUEDO_UP||(this.context.save(),this.context.setFont(this.font.family,this.font.size,this.font.weight),this.context.fillText("R",r+h,d),this.context.restore()))}}class X extends R{static get CATEGORY(){return"stringnumber"}static format(t,e){const n=e.left_shift,i=e.right_shift;if(!t||0===t.length)return this;const s=[];let r,o,a,c,l,u=null,h=0,d=0;for(r=0;r<t.length;++r)for(o=t[r],a=o.getNote(),r=0;r<t.length;++r){o=t[r],a=o.getNote(),c=o.getPosition();const e=a.getKeyProps()[o.getIndex()];if(a!==u){for(let t=0;t<a.keys.length;++t)l=a.getKeyProps()[t],0===n&&(h=l.displaced?a.getExtraLeftPx():h),0===i&&(d=l.displaced?a.getExtraRightPx():d);u=a}s.push({pos:c,note:a,num:o,line:e.line,shiftL:h,shiftR:d})}s.sort((t,e)=>e.line-t.line);let f=0,p=0,m=0,g=0,b=null,v=null;for(r=0;r<s.length;++r){let t=0;a=s[r].note,c=s[r].pos,o=s[r].num;const e=s[r].line,l=s[r].shiftL,u=s[r].shiftR;e===b&&a===v||(f=n+l,p=i+u);const d=o.getWidth()+1;c===R.Position.LEFT?(o.setXShift(n),t=h+d,m=t>m?t:m):c===R.Position.RIGHT&&(o.setXShift(p),t+=d,g=t>g?t:g),b=e,v=a}return e.left_shift+=m,e.right_shift+=g,!0}constructor(t){super(),this.setAttribute("type","StringNumber"),this.note=null,this.last_note=null,this.index=null,this.string_number=t,this.setWidth(20),this.position=R.Position.ABOVE,this.x_shift=0,this.y_shift=0,this.x_offset=0,this.y_offset=0,this.dashed=!0,this.leg=S.LineEndType.NONE,this.radius=8,this.font={family:"sans-serif",size:10,weight:"bold"}}getCategory(){return X.CATEGORY}getNote(){return this.note}setNote(t){return this.note=t,this}getIndex(){return this.index}setIndex(t){return this.index=t,this}setLineEndType(t){return t>=S.LineEndType.NONE&&t<=S.LineEndType.DOWN&&(this.leg=t),this}setStringNumber(t){return this.string_number=t,this}setOffsetX(t){return this.x_offset=t,this}setOffsetY(t){return this.y_offset=t,this}setLastNote(t){return this.last_note=t,this}setDashed(t){return this.dashed=t,this}draw(){const t=this.checkContext();if(!this.note||null==this.index)throw new i.RERR("NoAttachedNote","Can't draw string number without a note and index.");this.setRendered();const e=this.note.stave.options.spacing_between_lines_px,n=this.note.getModifierStartXY(this.position,this.index);let s=n.x+this.x_shift+this.x_offset,r=n.y+this.y_shift+this.y_offset;switch(this.position){case R.Position.ABOVE:case R.Position.BELOW:{const t=this.note.getStemExtents();let i=t.topY,s=t.baseY+2;this.note.stem_direction===V.STEM_DOWN&&(i=t.baseY,s=t.topY-2),r=this.position===R.Position.ABOVE?this.note.hasStem()?i-1.75*e:n.y-1.75*e:this.note.hasStem()?s+1.5*e:n.y+1.75*e,r+=this.y_shift+this.y_offset;break}case R.Position.LEFT:s-=this.radius/2+5;break;case R.Position.RIGHT:s+=this.radius/2+6;break;default:throw new i.RERR("InvalidPosition",`The position ${this.position} is invalid`)}t.save(),t.beginPath(),t.arc(s,r,this.radius,0,2*Math.PI,!1),t.lineWidth=1.5,t.stroke(),t.setFont(this.font.family,this.font.size,this.font.weight);const o=s-t.measureText(this.string_number).width/2;if(t.fillText(""+this.string_number,o,r+4.5),null!=this.last_note){const e=this.last_note.getStemX()-this.note.getX()+5;let n,i;switch(t.strokeStyle="#000000",t.lineCap="round",t.lineWidth=.6,this.dashed?S.drawDashedLine(t,s+10,r,s+e,r,[3,3]):S.drawDashedLine(t,s+10,r,s+e,r,[3,0]),this.leg){case S.LineEndType.UP:n=-10,i=this.dashed?[3,3]:[3,0],S.drawDashedLine(t,s+e,r,s+e,r+n,i);break;case S.LineEndType.DOWN:n=10,i=this.dashed?[3,3]:[3,0],S.drawDashedLine(t,s+e,r,s+e,r+n,i)}}t.restore()}}const{ABOVE:K,BELOW:q}=R.Position,Z=(t,e)=>.5*t(e/.5),J=(t,e)=>e===K?t<=5:t>=1,Q=(t,e)=>J(t,e)?e===K?Math.ceil:Math.floor:Math.round,tt=t=>{const e=t.getCategory();return"stavenotes"===e||"gracenotes"===e};class et extends R{static get CATEGORY(){return"articulations"}static get INITIAL_OFFSET(){return-.5}static format(t,e){if(!t||0===t.length)return!1;const n=(t,e,n)=>Z(Q(e,n),t.glyph.getMetrics().height/10+.5);t.filter(t=>t.getPosition()===K).forEach(t=>{t.setTextLine(e.top_text_line),e.top_text_line+=n(t,e.top_text_line,K)}),t.filter(t=>t.getPosition()===q).forEach(t=>{t.setTextLine(e.text_line),e.text_line+=n(t,e.text_line,q)});const i=t.map(t=>t.getWidth()).reduce((t,e)=>Math.max(e,t));return e.left_shift+=i/2,e.right_shift+=i/2,!0}static easyScoreHook({articulations:t},e,n){if(!t)return;const i={staccato:"a.",tenuto:"a-"};t.split(",").map(t=>t.trim().split(".")).map(([t,e])=>{const s={type:i[t]};return e&&(s.position=R.PositionString[e]),n.getFactory().Articulation(s)}).map(t=>e.addModifier(0,t))}constructor(t){if(super(),this.setAttribute("type","Articulation"),this.note=null,this.index=null,this.type=t,this.position=q,this.render_options={font_scale:38},this.articulation=p.articulationCodes(this.type),!this.articulation)throw new i.RERR("ArgumentError","Articulation not found: "+this.type);this.glyph=new f(this.articulation.code,this.render_options.font_scale),this.setWidth(this.glyph.getMetrics().width)}getCategory(){return et.CATEGORY}draw(){const{note:t,index:e,position:n,glyph:s,articulation:{between_lines:r},text_line:o,context:a}=this;if(this.checkContext(),!t||null==e)throw new i.RERR("NoAttachedNote","Can't draw Articulation without a note and index.");this.setRendered();const c=t.getStave(),l=c.getSpacingBetweenLines(),u="tabnotes"===t.getCategory(),{x:h}=t.getModifierStartXY(n,e),d=!r||u,f=((t,e)=>{const n=e===K&&t.getStemDirection()===x.UP||e===q&&t.getStemDirection()===x.DOWN;return tt(t)?t.hasStem()&&n?.5:1:t.hasStem()&&n?1:0})(t,n);let p={[K]:()=>{s.setOrigin(.5,1);const e=((t,e)=>{const n=t.getStave(),s=t.getStemDirection(),{topY:r,baseY:o}=t.getStemExtents();if(tt(t))return t.hasStem()?s===x.UP?r:o:Math.min(...t.getYs());if("tabnotes"===t.getCategory())return t.hasStem()&&s===x.UP?r:n.getYForTopText(e);throw new i.RERR("UnknownCategory","Only can get the top and bottom ys of stavenotes and tabnotes")})(t,o)-(o+f)*l;return d?Math.min(c.getYForTopText(et.INITIAL_OFFSET),e):e},[q]:()=>{s.setOrigin(.5,0);const e=((t,e)=>{const n=t.getStave(),s=t.getStemDirection(),{topY:r,baseY:o}=t.getStemExtents();if(tt(t))return t.hasStem()?s===x.UP?o:r:Math.max(...t.getYs());if("tabnotes"===t.getCategory())return t.hasStem()?s===x.UP?n.getYForBottomText(e):r:n.getYForBottomText(e);throw new i.RERR("UnknownCategory","Only can get the top and bottom ys of stavenotes and tabnotes")})(t,o)+(o+f)*l;return d?Math.max(c.getYForBottomText(et.INITIAL_OFFSET),e):e}}[n]();if(!u){const i=n===K?-1:1,o=u?t.positions[e].str:t.getKeyProps()[e].line,a=(t.getYs()[e]-p)/l+o,c=((t,e,n,i)=>{const s=Z(Q(e,n),e);return t&&J(s,n)&&s%1==0?s+.5*-i:s})(r,a,n,i);J(c,n)&&s.setOrigin(.5,.5),p+=Math.abs(c-a)*l*i}!function(...t){et.DEBUG&&i.L("Vex.Flow.Articulation",t)}(`Rendering articulation at (x: ${h}, y: ${p})`),s.render(a,h,p)}}class nt extends I{static getNextContext(t){const e=t.tContexts,n=e.indexOf(t);return e[n+1]}constructor(){super(),this.setAttribute("type","TickContext"),this.currentTick=new s(0,1),this.maxTicks=new s(0,1),this.minTicks=null,this.padding=3,this.x=0,this.xBase=0,this.xOffset=0,this.tickables=[],this.notePx=0,this.extraLeftPx=0,this.extraRightPx=0,this.tContexts=[]}getX(){return this.x}setX(t){return this.x=t,this.xBase=t,this.xOffset=0,this}getXBase(){return this.xBase}setXBase(t){this.xBase=t,this.x=t+this.xOffset}getXOffset(){return this.xOffset}setXOffset(t){this.xOffset=t,this.x=this.xBase+t}getWidth(){return this.width+2*this.padding}setPadding(t){return this.padding=t,this}getMaxTicks(){return this.maxTicks}getMinTicks(){return this.minTicks}getTickables(){return this.tickables}getCenterAlignedTickables(){return this.tickables.filter(t=>t.isCenterAligned())}getMetrics(){const{width:t,notePx:e,extraLeftPx:n,extraRightPx:i}=this;return{width:t,notePx:e,extraLeftPx:n,extraRightPx:i}}getCurrentTick(){return this.currentTick}setCurrentTick(t){this.currentTick=t,this.preFormatted=!1}getExtraPx(){let t=0,e=0,n=0,i=0;for(let s=0;s<this.tickables.length;s++){n=Math.max(this.tickables[s].extraLeftPx||0,n),i=Math.max(this.tickables[s].extraRightPx||0,i);const r=this.tickables[s].modifierContext;r&&null!=r&&(t=Math.max(t,r.state.left_shift),e=Math.max(e,r.state.right_shift))}return{left:t,right:e,extraLeft:n,extraRight:i}}addTickable(t){if(!t)throw new i.RERR("BadArgument","Invalid tickable added.");if(!t.shouldIgnoreTicks()){this.ignore_ticks=!1;const e=t.getTicks();e.greaterThan(this.maxTicks)&&(this.maxTicks=e.clone()),(null==this.minTicks||e.lessThan(this.minTicks))&&(this.minTicks=e.clone())}return t.setTickContext(this),this.tickables.push(t),this.preFormatted=!1,this}preFormat(){if(this.preFormatted)return this;for(let t=0;t<this.tickables.length;++t){const e=this.tickables[t];e.preFormat();const n=e.getMetrics();this.extraLeftPx=Math.max(this.extraLeftPx,n.extraLeftPx+n.modLeftPx),this.extraRightPx=Math.max(this.extraRightPx,n.extraRightPx+n.modRightPx),this.notePx=Math.max(this.notePx,n.noteWidth),this.width=this.notePx+this.extraLeftPx+this.extraRightPx}return this}postFormat(){return this.postFormatted||(this.postFormatted=!0),this}}class it extends R{static get CATEGORY(){return"ornaments"}static format(t,e){if(!t||0===t.length)return!1;let n=0;for(let i=0;i<t.length;++i){const s=t[i],r=2;n=Math.max(s.getWidth(),n),s.getPosition()===R.Position.ABOVE?(s.setTextLine(e.top_text_line),e.top_text_line+=r):(s.setTextLine(e.text_line),e.text_line+=r)}return e.left_shift+=n/2,e.right_shift+=n/2,!0}constructor(t){if(super(),this.setAttribute("type","Ornament"),this.note=null,this.index=null,this.type=t,this.position=R.Position.ABOVE,this.delayed=!1,this.accidentalUpper=null,this.accidentalLower=null,this.render_options={font_scale:38,accidentalLowerPadding:3,accidentalUpperPadding:3},this.ornament=p.ornamentCodes(this.type),!this.ornament)throw new i.RERR("ArgumentError",`Ornament not found: '${this.type}'`);this.glyph=new f(this.ornament.code,this.render_options.font_scale),this.glyph.setOrigin(.5,1)}getCategory(){return it.CATEGORY}setDelayed(t){return this.delayed=t,this}setUpperAccidental(t){const e=this.render_options.font_scale/1.3;return this.accidentalUpper=new f(p.accidentalCodes(t).code,e),this.accidentalUpper.setOrigin(.5,1),this}setLowerAccidental(t){const e=this.render_options.font_scale/1.3;return this.accidentalLower=new f(p.accidentalCodes(t).code,e),this.accidentalLower.setOrigin(.5,1),this}draw(){if(this.checkContext(),!this.note||null==this.index)throw new i.RERR("NoAttachedNote","Can't draw Ornament without a note and index.");this.setRendered();const t=this.context,e=this.note.getStemDirection(),n=this.note.getStave(),s=this.note.getStem().getExtents();let r=e===V.STEM_DOWN?s.baseY:s.topY;"tabnotes"===this.note.getCategory()&&(this.note.hasStem()?e===V.STEM_DOWN&&(r=n.getYForTopText(this.text_line)):r=n.getYForTopText(this.text_line));const o=e===V.STEM_DOWN,a=n.getSpacingBetweenLines();let c=1;!o&&this.note.beam&&(c+=.5);const l=r-a*(this.text_line+c);let u=this.note.getModifierStartXY(this.position,this.index).x,h=Math.min(n.getYForTopText(this.text_line),l);if(h+=this.y_shift,this.delayed){let t=0;if(void 0!==this.delayXShift)t=this.delayXShift;else{t+=this.glyph.getMetrics().width/2;const e=nt.getNextContext(this.note.getTickContext());t+=e?.5*(e.getX()-u):.5*(n.x+n.width-u),this.delayXShift=t}u+=t}!function(...t){it.DEBUG&&i.L("Vex.Flow.Ornament",t)}("Rendering ornament: ",this.ornament,u,h),this.accidentalLower&&(this.accidentalLower.render(t,u,h),h-=this.accidentalLower.getMetrics().height,h-=this.render_options.accidentalLowerPadding),this.glyph.render(t,u,h),h-=this.glyph.getMetrics().height,this.accidentalUpper&&(h-=this.render_options.accidentalUpperPadding,this.accidentalUpper.render(t,u,h))}}class st extends R{static get CATEGORY(){return"annotations"}static get Justify(){return{LEFT:1,CENTER:2,RIGHT:3,CENTER_STEM:4}}static get JustifyString(){return{left:st.Justify.LEFT,right:st.Justify.RIGHT,center:st.Justify.CENTER,centerStem:st.Justify.CENTER_STEM}}static get VerticalJustify(){return{TOP:1,CENTER:2,BOTTOM:3,CENTER_STEM:4}}static get VerticalJustifyString(){return{above:st.VerticalJustify.TOP,top:st.VerticalJustify.TOP,below:st.VerticalJustify.BOTTOM,bottom:st.VerticalJustify.BOTTOM,center:st.VerticalJustify.CENTER,centerStem:st.VerticalJustify.CENTER_STEM}}static format(t,e){if(!t||0===t.length)return!1;let n=0;for(let i=0;i<t.length;++i){const s=t[i];n=Math.max(s.getWidth(),n),s.getPosition()===R.Position.ABOVE?(s.setTextLine(e.top_text_line),e.top_text_line++):(s.setTextLine(e.text_line),e.text_line++)}return e.left_shift+=n/2,e.right_shift+=n/2,!0}constructor(t){super(),this.setAttribute("type","Annotation"),this.note=null,this.index=null,this.text=t,this.justification=st.Justify.CENTER,this.vert_justification=st.VerticalJustify.TOP,this.font={family:"Arial",size:10,weight:""},this.setWidth(p.textWidth(t))}getCategory(){return st.CATEGORY}setFont(t,e,n){return this.font={family:t,size:e,weight:n},this}setVerticalJustification(t){return this.vert_justification="string"==typeof t?st.VerticalJustifyString[t]:t,this}getJustification(){return this.justification}setJustification(t){return this.justification="string"==typeof t?st.JustifyString[t]:t,this}draw(){if(this.checkContext(),!this.note)throw new i.RERR("NoNoteForAnnotation","Can't draw text annotation without an attached note.");this.setRendered();const t=this.note.getModifierStartXY(R.Position.ABOVE,this.index);this.context.save(),this.context.setFont(this.font.family,this.font.size,this.font.weight);const e=this.context.measureText(this.text).width,n=this.context.measureText("m").width;let s,r,o,a;s=this.justification===st.Justify.LEFT?t.x:this.justification===st.Justify.RIGHT?t.x-e:this.justification===st.Justify.CENTER?t.x-e/2:this.note.getStemX()-e/2;const c=this.note.hasStem(),l=this.note.getStave();if(c&&(o=this.note.getStem().getExtents(),a=l.getSpacingBetweenLines()),this.vert_justification===st.VerticalJustify.BOTTOM){if(r=l.getYForBottomText(this.text_line+p.TEXT_HEIGHT_OFFSET_HACK),c){const t=1===this.note.getStemDirection()?o.baseY:o.topY;r=Math.max(r,t+a*(this.text_line+2))}}else if(this.vert_justification===st.VerticalJustify.CENTER){const t=this.note.getYForTopText(this.text_line)-1;r=t+(l.getYForBottomText(this.text_line)-t)/2+n/2}else if(this.vert_justification===st.VerticalJustify.TOP)r=Math.min(l.getYForTopText(this.text_line),this.note.getYs()[0]-10),c&&(r=Math.min(r,o.topY-5-a*this.text_line));else{const t=this.note.getStemExtents();r=t.topY+(t.baseY-t.topY)/2+n/2}!function(...t){st.DEBUG&&i.L("Vex.Flow.Annotation",t)}("Rendering annotation: ",this.text,s,r),this.context.fillText(this.text,s,r),this.context.restore()}}class rt extends R{static get CATEGORY(){return"bends"}static get UP(){return 0}static get DOWN(){return 1}static format(t,e){if(!t||0===t.length)return!1;let n=0;const i=e.top_text_line;for(let s=0;s<t.length;++s){const e=t[s];e.setXShift(n),n=e.getWidth(),e.setTextLine(i)}return e.right_shift+=n,e.top_text_line+=1,!0}constructor(t,e,n){super(),this.setAttribute("type","Bend"),this.text=t,this.x_shift=0,this.release=e||!1,this.font="10pt Arial",this.render_options={line_width:1.5,line_style:"#777777",bend_width:8,release_width:8},n?this.phrase=n:(this.phrase=[{type:rt.UP,text:this.text}],this.release&&this.phrase.push({type:rt.DOWN,text:""})),this.updateWidth()}getCategory(){return rt.CATEGORY}setXShift(t){this.x_shift=t,this.updateWidth()}setFont(t){return this.font=t,this}getText(){return this.text}updateWidth(){const t=this;function e(e){let n;return n=t.context?t.context.measureText(e).width:p.textWidth(e),n}let n=0;for(let s=0;s<this.phrase.length;++s){const t=this.phrase[s];if("width"in t)n+=t.width;else{const s=t.type===rt.UP?this.render_options.bend_width:this.render_options.release_width;t.width=i.Max(s,e(t.text))+3,t.draw_width=t.width/2,n+=t.width}}return this.setWidth(n+this.x_shift),this}draw(){if(this.checkContext(),!this.note||null==this.index)throw new i.RERR("NoNoteForBend","Can't draw bend without a note or index.");this.setRendered();const t=this.note.getModifierStartXY(R.Position.RIGHT,this.index);t.x+=3,t.y+=.5;const e=this.x_shift,n=this.context,s=this.note.getStave().getYForTopText(this.text_line)+3,r=this.note.getStave().getYForTopText(this.text_line)-1,o=this;function a(t,e,i,s){const r=t+i,a=e;n.save(),n.beginPath(),n.setLineWidth(o.render_options.line_width),n.setStrokeStyle(o.render_options.line_style),n.setFillStyle(o.render_options.line_style),n.moveTo(t,e),n.quadraticCurveTo(r,a,t+i,s),n.stroke(),n.restore()}function c(t,e,i,s){n.save(),n.beginPath(),n.setLineWidth(o.render_options.line_width),n.setStrokeStyle(o.render_options.line_style),n.setFillStyle(o.render_options.line_style),n.moveTo(t,s),n.quadraticCurveTo(t+i,s,t+i,e),n.stroke(),n.restore()}function l(t,e,i){const s=i||1;n.beginPath(),n.moveTo(t,e),n.lineTo(t-4,e+4*s),n.lineTo(t+4,e+4*s),n.closePath(),n.fill()}function u(t,e){n.save(),n.setRawFont(o.font);const i=t-n.measureText(e).width/2;n.fillText(e,i,r),n.restore()}let h=null,d=0;for(let i=0;i<this.phrase.length;++i){const n=this.phrase[i];0===i&&(n.draw_width+=e),d=n.draw_width+(h?h.draw_width:0)-(1===i?e:0),n.type===rt.UP&&(h&&h.type===rt.UP&&l(t.x,s),a(t.x,t.y,d,s)),n.type===rt.DOWN&&(h&&h.type===rt.UP&&c(t.x,t.y,d,s),h&&h.type===rt.DOWN&&(l(t.x,t.y,-1),c(t.x,t.y,d,s)),null===h&&(d=n.draw_width,c(t.x,t.y,d,s))),u(t.x+d,n.text),h=n,h.x=t.x,t.x+=d}h.type===rt.UP?l(h.x+d,s):h.type===rt.DOWN&&l(h.x+d,t.y,-1)}}class ot extends R{static get CATEGORY(){return"vibratos"}static format(t,e,n){if(!t||0===t.length)return!1;let i=e.top_text_line,s=0,r=e.right_shift-7;const o=n.getModifiers(rt.CATEGORY);o&&o.length>0&&i--;for(let a=0;a<t.length;++a){const e=t[a];e.setXShift(r),e.setTextLine(i),s+=e.getWidth(),r+=s}return e.right_shift+=s,e.top_text_line+=1,!0}constructor(){super(),this.setAttribute("type","Vibrato"),this.position=R.Position.RIGHT,this.render_options={harsh:!1,vibrato_width:20,wave_height:6,wave_width:4,wave_girth:2},this.setVibratoWidth(this.render_options.vibrato_width)}getCategory(){return ot.CATEGORY}setHarsh(t){return this.render_options.harsh=t,this}setVibratoWidth(t){return this.render_options.vibrato_width=t,this.setWidth(t),this}draw(){const t=this.checkContext();if(!this.note)throw new i.RERR("NoNoteForVibrato","Can't draw vibrato without an attached note.");this.setRendered();const e=this.note.getModifierStartXY(R.Position.RIGHT,this.index).x+this.x_shift,n=this.note.getYForTopText(this.text_line)+2;ot.renderVibrato(t,e,n,this.render_options)}static renderVibrato(t,e,n,i){const{harsh:s,vibrato_width:r,wave_width:o,wave_girth:a,wave_height:c}=i,l=r/o;let u;if(t.beginPath(),s){for(t.moveTo(e,n+a+1),u=0;u<l/2;++u)t.lineTo(e+o,n-c/2),e+=o,t.lineTo(e+o,n+c/2),e+=o;for(u=0;u<l/2;++u)t.lineTo(e-o,n-c/2+a+1),e-=o,t.lineTo(e-o,n+c/2+a+1),e-=o;t.fill()}else{for(t.moveTo(e,n+a),u=0;u<l/2;++u)t.quadraticCurveTo(e+o/2,n-c/2,e+o,n),e+=o,t.quadraticCurveTo(e+o/2,n+c/2,e+o,n),e+=o;for(u=0;u<l/2;++u)t.quadraticCurveTo(e-o/2,n+c/2+a,e-o,n+a),e-=o,t.quadraticCurveTo(e-o/2,n-c/2+a,e-o,n+a),e-=o;t.fill()}}}function at(...t){ct.DEBUG&&i.L("Vex.Flow.ModifierContext",t)}class ct{constructor(){this.modifiers={},this.preFormatted=!1,this.postFormatted=!1,this.width=0,this.spacing=0,this.state={left_shift:0,right_shift:0,text_line:0,top_text_line:0},this.PREFORMAT=[V,N,B,W,Y,U,$,X,et,it,st,rt,ot],this.POSTFORMAT=[V]}addModifier(t){const e=t.getCategory();return this.modifiers[e]||(this.modifiers[e]=[]),this.modifiers[e].push(t),t.setModifierContext(this),this.preFormatted=!1,this}getModifiers(t){return this.modifiers[t]}getWidth(){return this.width}getExtraLeftPx(){return this.state.left_shift}getExtraRightPx(){return this.state.right_shift}getState(){return this.state}getMetrics(){if(!this.formatted)throw new i.RERR("UnformattedModifier","Unformatted modifier has no metrics.");return{width:this.state.left_shift+this.state.right_shift+this.spacing,spacing:this.spacing,extra_left_px:this.state.left_shift,extra_right_px:this.state.right_shift}}preFormat(){this.preFormatted||(this.PREFORMAT.forEach(t=>{at("Preformatting ModifierContext: ",t.CATEGORY),t.format(this.getModifiers(t.CATEGORY),this.state,this)}),this.width=this.state.left_shift+this.state.right_shift,this.preFormatted=!0)}postFormat(){this.postFormatted||this.POSTFORMAT.forEach(t=>{at("Postformatting ModifierContext: ",t.CATEGORY),t.postFormat(this.getModifiers(t.CATEGORY),this)})}}function lt(t,e,n,s){let r=e;for(n+=1;n<t.length;n+=1){const e=t[n];if(!e.isRest()&&!e.shouldIgnoreTicks()){r=e.getLineForRest();break}}if(s&&e!==r){const t=Math.max(e,r),n=Math.min(e,r);r=i.MidLine(t,n)}return r}function ut(t,e,n){if(!t||!t.length)throw new i.RERR("BadArgument","No voices to format");const r=t[0].getTotalTicks(),o=t.reduce((t,e)=>{if(!e.getTotalTicks().equals(r))throw new i.RERR("TickMismatch","Voices should have same total note duration in ticks.");if(e.getMode()===M.Mode.STRICT&&!e.isComplete())throw new i.RERR("IncompleteVoice","Voice does not have enough notes.");return Math.max(t,s.LCM(t,e.getResolutionMultiplier()))},1),a={},c=[],l=[];return t.forEach(t=>{const i=new s(0,o);t.getTickables().forEach(t=>{const s=i.numerator;if(!a[s]){const t=new e;l.push(t),a[s]=t}n(t,a[s]),c.push(s),i.add(t.getTicks())})}),{map:a,array:l,list:i.SortAndUnique(c,(t,e)=>t-e,(t,e)=>t===e),resolutionMultiplier:o}}class ht{static SimpleFormat(t,e=0,{paddingBetween:n=10}={}){t.reduce((t,e)=>{e.addToModifierContext(new ct);const i=(new nt).addTickable(e).preFormat(),s=i.getExtraPx();return i.setX(t+s.left),t+i.getWidth()+s.right+n},e)}static plotDebugging(t,e,n,i,s){const r=n+L.STAVEPADDING,o=e.contextGaps;t.save(),t.setFont("Arial",8,""),o.gaps.forEach(e=>{var n,o,a;n=r+e.x1,o=r+e.x2,a="#aaa",t.beginPath(),t.setStrokeStyle(a),t.setFillStyle(a),t.setLineWidth(1),t.fillRect(n,i,o-n,s-i),t.fillText(Math.round(e.x2-e.x1),r+e.x1,s+12)}),t.fillText(Math.round(o.total)+"px",r-20,s+12),t.setFillStyle("red"),t.fillText("Loss: "+e.lossHistory.map(t=>Math.round(t)),r-20,s+22),t.restore()}static FormatAndDraw(t,e,n,s){const r={auto_beam:!1,align_rests:!1};"object"==typeof s?i.Merge(r,s):"boolean"==typeof s&&(r.auto_beam=s);const o=new M(p.TIME4_4).setMode(M.Mode.SOFT).addTickables(n),a=r.auto_beam?C.applyAndGetBeams(o):[];return(new ht).joinVoices([o],{align_rests:r.align_rests}).formatToStave([o],e,{align_rests:r.align_rests,stave:e}),o.setStave(e).draw(t,e),a.forEach(e=>e.setContext(t).draw()),o.getBoundingBox()}static FormatAndDrawTab(t,e,n,s,r,o,a){const c={auto_beam:o,align_rests:!1};"object"==typeof a?i.Merge(c,a):"boolean"==typeof a&&(c.auto_beam=a);const l=new M(p.TIME4_4).setMode(M.Mode.SOFT).addTickables(r),u=new M(p.TIME4_4).setMode(M.Mode.SOFT).addTickables(s),h=c.auto_beam?C.applyAndGetBeams(l):[];(new ht).joinVoices([l],{align_rests:c.align_rests}).joinVoices([u]).formatToStave([l,u],n,{align_rests:c.align_rests}),l.draw(t,n),u.draw(t,e),h.forEach(e=>e.setContext(t).draw()),new A(n,e).setContext(t).draw()}static AlignRestsToNotes(t,e,n){return t.forEach((i,s)=>{if(i instanceof V&&i.isRest()){if(i.tuplet&&!n)return;const r=i.getGlyph().position.toUpperCase();if("R/4"!==r&&"B/4"!==r)return;if(e||null!=i.beam){const e=i.getKeyProps()[0];if(0===s)e.line=lt(t,e.line,s,!1),i.setKeyLine(0,e.line);else if(s>0&&s<t.length){let n;t[s-1].isRest()?(n=t[s-1].getKeyProps()[0].line,e.line=n):(n=t[s-1].getLineForRest(),e.line=lt(t,n,s,!0)),i.setKeyLine(0,e.line)}}}}),this}constructor(){this.minTotalWidth=0,this.hasMinTotalWidth=!1,this.totalTicks=new s(0,1),this.tickContexts=null,this.modiferContexts=null,this.contextGaps={total:0,gaps:[]},this.voices=[]}alignRests(t,e){if(!t||!t.length)throw new i.RERR("BadArgument","No voices to format rests");t.forEach(t=>ht.AlignRestsToNotes(t.getTickables(),e))}preCalculateMinTotalWidth(t){if(this.hasMinTotalWidth)return this.minTotalWidth;if(!this.tickContexts){if(!t)throw new i.RERR("BadArgument","'voices' required to run preCalculateMinTotalWidth");this.createTickContexts(t)}const{list:e,map:n}=this.tickContexts;return this.minTotalWidth=e.map(t=>{const e=n[t];return e.preFormat(),e.getWidth()}).reduce((t,e)=>t+e,0),this.hasMinTotalWidth=!0,this.minTotalWidth}getMinTotalWidth(){if(!this.hasMinTotalWidth)throw new i.RERR("NoMinTotalWidth","Call 'preCalculateMinTotalWidth' or 'preFormat' before calling 'getMinTotalWidth'");return this.minTotalWidth}createModifierContexts(t){const e=ut(t,ct,(t,e)=>t.addToModifierContext(e));return this.modiferContexts=e,e}createTickContexts(t){const e=ut(t,nt,(t,e)=>e.addTickable(t));return e.array.forEach(t=>{t.tContexts=e.array}),this.totalTicks=t[0].getTicksUsed().clone(),this.tickContexts=e,e}preFormat(t=0,e,n,i){const s=this.tickContexts,{list:r,map:o,resolutionMultiplier:a}=s;n&&i&&n.forEach(t=>t.setStave(i).preFormat());let c=0,l=0;const u=t/2;if(this.minTotalWidth=0,r.forEach(t=>{const n=o[t];e&&n.setContext(e),n.preFormat();const i=n.getWidth();this.minTotalWidth+=i;const s=n.getMetrics();c=c+l+s.extraLeftPx,n.setX(c),l=i-s.extraLeftPx}),this.minTotalWidth=c+l,this.hasMinTotalWidth=!0,t<=0)return;const h=(t-this.minTotalWidth)/(this.totalTicks.value()*a);let d=0;r.forEach((t,e)=>{const n=r[e-1]||0,i=o[t];d+=(t-n)*h,i.setX(i.getX()+d),i.getCenterAlignedTickables().forEach(t=>{t.center_x_shift=u-i.getX()})}),1!==r.length&&(this.justifyWidth=t,this.lossHistory=[],this.evaluate())}evaluate(){const t=this.justifyWidth;this.contextGaps={total:0,gaps:[]},this.tickContexts.list.forEach((t,e)=>{if(0===e)return;const n=this.tickContexts.list[e-1],i=this.tickContexts.map[n],s=this.tickContexts.map[t],r=i.getMetrics(),o=i.getX()+r.width,a=s.getX(),c=a-o;this.contextGaps.total+=c,this.contextGaps.gaps.push({x1:o,x2:a}),s.getFormatterMetrics().freedom.left=c,i.getFormatterMetrics().freedom.right=c});const e=this.durationStats={};this.voices.forEach(n=>{n.getTickables().forEach((n,i,s)=>{const r=n.getTicks().clone().simplify().toString(),o=n.getMetrics(),a=n.getFormatterMetrics(),c=n.getX()+o.noteWidth+o.modRightPx+o.extraRightPx;let l=0;if(i<s.length-1){const t=s[i+1],e=t.getMetrics();l=t.getX()-e.modLeftPx-e.extraLeftPx-c,a.space.used=t.getX()-n.getX(),t.getFormatterMetrics().freedom.left=l}else l=t-c,a.space.used=t-n.getX();a.freedom.right=l,function(t,n){const i=e[t];void 0===i?e[t]={mean:n,count:1}:(i.count+=1,i.mean=(i.mean+n)/2)}(r,a.space.used)})});let n=0;return this.voices.forEach(t=>{t.getTickables().forEach(t=>{const i=t.getTicks().clone().simplify().toString(),s=t.getFormatterMetrics();s.iterations+=1,s.space.deviation=s.space.used-e[i].mean,s.duration=i,s.space.mean=e[i].mean,n+=Math.pow(e[i].mean,2)})}),this.totalCost=Math.sqrt(n),this.lossHistory.push(this.totalCost),this}tune(){let t=0;return this.tickContexts.list.forEach((e,n,i)=>{const s=this.tickContexts.map[e],r=n>0?this.tickContexts.map[i[n-1]]:null,o=n<i.length-1?this.tickContexts.map[i[n+1]]:null;!function(t,e,n,i){t.setX(t.getX()+i),t.getFormatterMetrics().freedom.left+=i,t.getFormatterMetrics().freedom.right-=i,e&&(e.getFormatterMetrics().freedom.right+=i),n&&(n.getFormatterMetrics().freedom.left-=i)}(s,r,o,t);const a=-s.getTickables().map(t=>t.getFormatterMetrics().space.deviation).reduce((t,e)=>t+e);a>0?t=-Math.min(s.getFormatterMetrics().freedom.right,Math.abs(a)):a<0&&(t=o?Math.min(o.getFormatterMetrics().freedom.right,Math.abs(a)):0);const c=Math.min(5,Math.abs(t));t=t>0?c:-c}),this.evaluate()}postFormat(){const t=t=>t.list.forEach(e=>t.map[e].postFormat());return t(this.modiferContexts),t(this.tickContexts),this}joinVoices(t){return this.createModifierContexts(t),this.hasMinTotalWidth=!1,this}format(t,e,n){const s={align_rests:!1,context:null,stave:null};return i.Merge(s,n),this.voices=t,this.alignRests(t,s.align_rests),this.createTickContexts(t),this.preFormat(e,s.context,t,s.stave),s.stave&&this.postFormat(),this}formatToStave(t,e,n){const s=e.getNoteEndX()-e.getNoteStartX()-10;!function(...t){ht.DEBUG&&i.L("Vex.Flow.Formatter",t)}("Formatting voices to width: ",s);const r={context:e.getContext()};return i.Merge(r,n),this.format(t,s,r)}}class dt extends c{static get Position(){return{LEFT:1,RIGHT:2,ABOVE:3,BELOW:4,BEGIN:5,END:6}}constructor(){super(),this.setAttribute("type","StaveModifier"),this.padding=10,this.position=dt.Position.ABOVE,this.layoutMetrics=null}getPosition(){return this.position}setPosition(t){return this.position=t,this}getStave(){return this.stave}setStave(t){return this.stave=t,this}getWidth(){return this.width}setWidth(t){return this.width=t,this}getX(){return this.x}setX(t){return this.x=t,this}getCategory(){return""}makeSpacer(t){return{getContext:()=>!0,setStave(){},renderToStave(){},getMetrics:()=>({width:t})}}placeGlyphOnLine(t,e,n){t.setYShift(e.getYForLine(n)-e.getYForGlyphs())}getPadding(t){return void 0!==t&&t<2?0:this.padding}setPadding(t){return this.padding=t,this}setLayoutMetrics(t){return this.layoutMetrics=t,this}getLayoutMetrics(){return this.layoutMetrics}}class ft extends dt{static get CATEGORY(){return"barlines"}static get type(){return{SINGLE:1,DOUBLE:2,END:3,REPEAT_BEGIN:4,REPEAT_END:5,REPEAT_BOTH:6,NONE:7}}static get typeString(){return{single:ft.type.SINGLE,double:ft.type.DOUBLE,end:ft.type.END,repeatBegin:ft.type.REPEAT_BEGIN,repeatEnd:ft.type.REPEAT_END,repeatBoth:ft.type.REPEAT_BOTH,none:ft.type.NONE}}constructor(t){super(),this.setAttribute("type","Barline"),this.thickness=p.STAVE_LINE_THICKNESS;const e=ft.type;this.widths={},this.widths[e.SINGLE]=5,this.widths[e.DOUBLE]=5,this.widths[e.END]=5,this.widths[e.REPEAT_BEGIN]=5,this.widths[e.REPEAT_END]=5,this.widths[e.REPEAT_BOTH]=5,this.widths[e.NONE]=5,this.paddings={},this.paddings[e.SINGLE]=0,this.paddings[e.DOUBLE]=0,this.paddings[e.END]=0,this.paddings[e.REPEAT_BEGIN]=15,this.paddings[e.REPEAT_END]=15,this.paddings[e.REPEAT_BOTH]=15,this.paddings[e.NONE]=0,this.layoutMetricsMap={},this.layoutMetricsMap[e.SINGLE]={xMin:0,xMax:1,paddingLeft:5,paddingRight:5},this.layoutMetricsMap[e.DOUBLE]={xMin:-3,xMax:1,paddingLeft:5,paddingRight:5},this.layoutMetricsMap[e.END]={xMin:-5,xMax:1,paddingLeft:5,paddingRight:5},this.layoutMetricsMap[e.REPEAT_END]={xMin:-10,xMax:1,paddingLeft:5,paddingRight:5},this.layoutMetricsMap[e.REPEAT_BEGIN]={xMin:-2,xMax:10,paddingLeft:5,paddingRight:5},this.layoutMetricsMap[e.REPEAT_BOTH]={xMin:-10,xMax:10,paddingLeft:5,paddingRight:5},this.layoutMetricsMap[e.NONE]={xMin:0,xMax:0,paddingLeft:5,paddingRight:5},this.setPosition(dt.Position.BEGIN),this.setType(t)}getCategory(){return ft.CATEGORY}getType(){return this.type}setType(t){return this.type="string"==typeof t?ft.typeString[t]:t,this.setWidth(this.widths[this.type]),this.setPadding(this.paddings[this.type]),this.setLayoutMetrics(this.layoutMetricsMap[this.type]),this}draw(t){switch(t.checkContext(),this.setRendered(),this.type){case ft.type.SINGLE:this.drawVerticalBar(t,this.x,!1);break;case ft.type.DOUBLE:this.drawVerticalBar(t,this.x,!0);break;case ft.type.END:this.drawVerticalEndBar(t,this.x);break;case ft.type.REPEAT_BEGIN:this.drawRepeatBar(t,this.x,!0),t.getX()!==this.x&&this.drawVerticalBar(t,t.getX());break;case ft.type.REPEAT_END:this.drawRepeatBar(t,this.x,!1);break;case ft.type.REPEAT_BOTH:this.drawRepeatBar(t,this.x,!1),this.drawRepeatBar(t,this.x,!0)}}drawVerticalBar(t,e,n){t.checkContext();const i=t.getTopLineTopY(),s=t.getBottomLineBottomY();n&&t.context.fillRect(e-3,i,1,s-i),t.context.fillRect(e,i,1,s-i)}drawVerticalEndBar(t,e){t.checkContext();const n=t.getTopLineTopY(),i=t.getBottomLineBottomY();t.context.fillRect(e-5,n,1,i-n),t.context.fillRect(e-2,n,3,i-n)}drawRepeatBar(t,e,n){t.checkContext();const i=t.getTopLineTopY(),s=t.getBottomLineBottomY();let r=3;n||(r=-5),t.context.fillRect(e+r,i,1,s-i),t.context.fillRect(e-2,i,3,s-i),n?r+=4:r-=4;const o=e+r+1;let a=(t.getNumLines()-1)*t.getSpacingBetweenLines();a=a/2-t.getSpacingBetweenLines()/2;let c=i+a+1;t.context.beginPath(),t.context.arc(o,c,2,0,2*Math.PI,!1),t.context.fill(),c+=t.getSpacingBetweenLines(),t.context.beginPath(),t.context.arc(o,c,2,0,2*Math.PI,!1),t.context.fill()}}class pt extends dt{static get CATEGORY(){return"repetitions"}static get type(){return{NONE:1,CODA_LEFT:2,CODA_RIGHT:3,SEGNO_LEFT:4,SEGNO_RIGHT:5,DC:6,DC_AL_CODA:7,DC_AL_FINE:8,DS:9,DS_AL_CODA:10,DS_AL_FINE:11,FINE:12}}constructor(t,e,n){super(),this.setAttribute("type","Repetition"),this.symbol_type=t,this.x=e,this.x_shift=0,this.y_shift=n,this.font={family:"times",size:12,weight:"bold italic"}}getCategory(){return pt.CATEGORY}setShiftX(t){return this.x_shift=t,this}setShiftY(t){return this.y_shift=t,this}draw(t,e){switch(this.setRendered(),this.symbol_type){case pt.type.CODA_RIGHT:this.drawCodaFixed(t,e+t.width);break;case pt.type.CODA_LEFT:this.drawSymbolText(t,e,"Coda",!0);break;case pt.type.SEGNO_LEFT:this.drawSignoFixed(t,e);break;case pt.type.SEGNO_RIGHT:this.drawSignoFixed(t,e+t.width);break;case pt.type.DC:this.drawSymbolText(t,e,"D.C.",!1);break;case pt.type.DC_AL_CODA:this.drawSymbolText(t,e,"D.C. al",!0);break;case pt.type.DC_AL_FINE:this.drawSymbolText(t,e,"D.C. al Fine",!1);break;case pt.type.DS:this.drawSymbolText(t,e,"D.S.",!1);break;case pt.type.DS_AL_CODA:this.drawSymbolText(t,e,"D.S. al",!0);break;case pt.type.DS_AL_FINE:this.drawSymbolText(t,e,"D.S. al Fine",!1);break;case pt.type.FINE:this.drawSymbolText(t,e,"Fine",!1)}return this}drawCodaFixed(t,e){const n=t.getYForTopText(t.options.num_lines)+this.y_shift;return f.renderGlyph(t.context,this.x+e+this.x_shift,n+25,40,"v4d",!0),this}drawSignoFixed(t,e){const n=t.getYForTopText(t.options.num_lines)+this.y_shift;return f.renderGlyph(t.context,this.x+e+this.x_shift,n+25,30,"v8c",!0),this}drawSymbolText(t,e,n,i){const s=t.checkContext();s.save(),s.setFont(this.font.family,this.font.size,this.font.weight);let r=0+this.x_shift,o=e+this.x_shift;this.symbol_type===pt.type.CODA_LEFT?(r=this.x+t.options.vertical_bar_width,o=r+s.measureText(n).width+12):(o=this.x+e+t.width-5+this.x_shift,r=o-+s.measureText(n).width-12);const a=t.getYForTopText(t.options.num_lines)+this.y_shift;return i&&f.renderGlyph(s,o,a,40,"v4d",!0),s.fillText(n,r,a+5),s.restore(),this}}class mt extends dt{static get CATEGORY(){return"stavesection"}constructor(t,e,n){super(),this.setAttribute("type","StaveSection"),this.setWidth(16),this.section=t,this.x=e,this.shift_x=0,this.shift_y=n,this.font={family:"sans-serif",size:12,weight:"bold"}}getCategory(){return mt.CATEGORY}setStaveSection(t){return this.section=t,this}setShiftX(t){return this.shift_x=t,this}setShiftY(t){return this.shift_y=t,this}draw(t,e){const n=t.checkContext();this.setRendered(),n.save(),n.lineWidth=2,n.setFont(this.font.family,this.font.size,this.font.weight);const i=n.measureText(""+this.section).width;let s=i+6;s<18&&(s=18);const r=t.getYForTopText(3)+this.shift_y;let o=this.x+e;return n.beginPath(),n.lineWidth=2,n.rect(o,r,s,20),n.stroke(),o+=(s-i)/2,n.fillText(""+this.section,o,r+16),n.restore(),this}}class gt extends dt{static get CATEGORY(){return"stavetempo"}constructor(t,e,n){super(),this.setAttribute("type","StaveTempo"),this.tempo=t,this.position=R.Position.ABOVE,this.x=e,this.shift_x=10,this.shift_y=n,this.font={family:"times",size:14,weight:"bold"},this.render_options={glyph_font_scale:30}}getCategory(){return gt.CATEGORY}setTempo(t){return this.tempo=t,this}setShiftX(t){return this.shift_x=t,this}setShiftY(t){return this.shift_y=t,this}draw(t,e){const n=t.checkContext();this.setRendered();const i=this.render_options,s=i.glyph_font_scale/38,r=this.tempo.name,o=this.tempo.duration,a=this.tempo.dots,c=this.tempo.bpm,l=this.font;let u=this.x+this.shift_x+e;const h=t.getYForTopText(1)+this.shift_y;if(n.save(),r&&(n.setFont(l.family,l.size,l.weight),n.fillText(r,u,h),u+=n.measureText(r).width),o&&c){n.setFont(l.family,l.size,"normal"),r&&(u+=n.measureText(" ").width,n.fillText("(",u,h),u+=n.measureText("(").width);const t=p.getGlyphProps(o);if(u+=3*s,f.renderGlyph(n,u,h,i.glyph_font_scale,t.code_head),u+=t.getWidth()*s,t.stem){let e=30;t.beam_count&&(e+=3*(t.beam_count-1)),e*=s;const r=h-e;n.fillRect(u-s,r,s,e),t.flag&&(f.renderGlyph(n,u,r,i.glyph_font_scale,t.code_flag_upstem),a||(u+=6*s))}for(let e=0;e<a;e++)u+=6*s,n.beginPath(),n.arc(u,h+2*s,2*s,0,2*Math.PI,!1),n.fill();n.fillText(" = "+c+(r?")":""),u+3*s,h)}return n.restore(),this}}class bt extends L{static get Justification(){return{LEFT:1,CENTER:2,RIGHT:3}}static get GLYPHS(){return{segno:{code:"v8c",point:40,x_shift:0,y_shift:-10},tr:{code:"v1f",point:40,x_shift:0,y_shift:0},mordent_upper:{code:"v1e",point:40,x_shift:0,y_shift:0},mordent_lower:{code:"v45",point:40,x_shift:0,y_shift:0},f:{code:"vba",point:40,x_shift:0,y_shift:0},p:{code:"vbf",point:40,x_shift:0,y_shift:0},m:{code:"v62",point:40,x_shift:0,y_shift:0},s:{code:"v4a",point:40,x_shift:0,y_shift:0},z:{code:"v80",point:40,x_shift:0,y_shift:0},coda:{code:"v4d",point:40,x_shift:0,y_shift:-8},pedal_open:{code:"v36",point:40,x_shift:0,y_shift:0},pedal_close:{code:"v5d",point:40,x_shift:0,y_shift:3},caesura_straight:{code:"v34",point:40,x_shift:0,y_shift:2},caesura_curved:{code:"v4b",point:40,x_shift:0,y_shift:2},breath:{code:"v6c",point:40,x_shift:0,y_shift:0},tick:{code:"v6f",point:50,x_shift:0,y_shift:0},turn:{code:"v72",point:40,x_shift:0,y_shift:0},turn_inverted:{code:"v33",point:40,x_shift:0,y_shift:0},mordent:{code:"v1e",point:40,x_shift:0,y_shift:0}}}constructor(t){if(super(t),this.setAttribute("type","TextNote"),this.text=t.text,this.superscript=t.superscript,this.subscript=t.subscript,this.glyph_type=t.glyph,this.glyph=null,this.font={family:"Arial",size:12,weight:""},t.font&&(this.font=t.font),this.glyph_type){const t=bt.GLYPHS[this.glyph_type];if(!t)throw new i.RERR("Invalid glyph type: "+this.glyph_type);this.glyph=new f(t.code,t.point,{cache:!1}),t.width?this.setWidth(t.width):this.setWidth(this.glyph.getMetrics().width),this.glyph_struct=t}else this.setWidth(p.textWidth(this.text));this.line=t.line||0,this.smooth=t.smooth||!1,this.ignore_ticks=t.ignore_ticks||!1,this.justification=bt.Justification.LEFT}setJustification(t){return this.justification=t,this}setLine(t){return this.line=t,this}preFormat(){this.checkContext(),this.preFormatted||(this.smooth?this.setWidth(0):this.glyph||this.setWidth(this.context.measureText(this.text).width),this.justification===bt.Justification.CENTER?this.extraLeftPx=this.width/2:this.justification===bt.Justification.RIGHT&&(this.extraLeftPx=this.width),this.setPreFormatted(!0))}draw(){if(this.checkContext(),!this.stave)throw new i.RERR("NoStave","Can't draw without a stave.");this.setRendered();const t=this.context;let e,n=this.getAbsoluteX();if(this.justification===bt.Justification.CENTER?n-=this.getWidth()/2:this.justification===bt.Justification.RIGHT&&(n-=this.getWidth()),this.glyph)e=this.stave.getYForLine(this.line+-3),this.glyph.render(this.context,n+this.glyph_struct.x_shift,e+this.glyph_struct.y_shift);else{e=this.stave.getYForLine(this.line+-3),this.applyStyle(t),t.setFont(this.font.family,this.font.size,this.font.weight),t.fillText(this.text,n,e);const i=t.measureText("M").width,s=t.measureText(this.text).width;this.superscript&&(t.setFont(this.font.family,this.font.size/1.3,this.font.weight),t.fillText(this.superscript,n+s+2,e-i/2.2)),this.subscript&&(t.setFont(this.font.family,this.font.size/1.3,this.font.weight),t.fillText(this.subscript,n+s+2,e+i/2.2-1)),this.restoreStyle(t)}}}class vt extends dt{static get CATEGORY(){return"stavetext"}constructor(t,e,n){super(),this.setAttribute("type","StaveText"),this.setWidth(16),this.text=t,this.position=e,this.options={shift_x:0,shift_y:0,justification:bt.Justification.CENTER},i.Merge(this.options,n),this.font={family:"times",size:16,weight:"normal"}}getCategory(){return vt.CATEGORY}setStaveText(t){return this.text=t,this}setShiftX(t){return this.shift_x=t,this}setShiftY(t){return this.shift_y=t,this}setFont(t){i.Merge(this.font,t)}setText(t){this.text=t}draw(t){const e=t.checkContext();this.setRendered(),e.save(),e.lineWidth=2,e.setFont(this.font.family,this.font.size,this.font.weight);const n=e.measureText(""+this.text).width;let s,r;const o=dt.Position,a=bt.Justification;switch(this.position){case o.LEFT:case o.RIGHT:r=(t.getYForLine(0)+t.getBottomLineY())/2+this.options.shift_y,s=this.position===o.LEFT?t.getX()-n-24+this.options.shift_x:t.getX()+t.getWidth()+24+this.options.shift_x;break;case o.ABOVE:case o.BELOW:s=t.getX()+this.options.shift_x,this.options.justification===a.CENTER?s+=t.getWidth()/2-n/2:this.options.justification===a.RIGHT&&(s+=t.getWidth()-n),r=this.position===o.ABOVE?t.getYForTopText(2)+this.options.shift_y:t.getYForBottomText(2)+this.options.shift_y;break;default:throw new i.RERR("InvalidPosition","Value Must be in Modifier.Position.")}return e.fillText(""+this.text,s,r+4),e.restore(),this}}class yt extends dt{static get CATEGORY(){return"clefs"}static get types(){return{treble:{code:"v83",line:3},bass:{code:"v79",line:1},alto:{code:"vad",line:2},tenor:{code:"vad",line:1},percussion:{code:"v59",line:2},soprano:{code:"vad",line:4},"mezzo-soprano":{code:"vad",line:3},"baritone-c":{code:"vad",line:0},"baritone-f":{code:"v79",line:2},subbass:{code:"v79",line:0},french:{code:"v83",line:4},tab:{code:"v2f"}}}static get sizes(){return{default:{point:40,width:26},small:{point:32,width:20}}}static get annotations(){return{"8va":{code:"v8",sizes:{default:{point:20,attachments:{treble:{line:-1.2,x_shift:11}}},small:{point:18,attachments:{treble:{line:-.4,x_shift:8}}}}},"8vb":{code:"v8",sizes:{default:{point:20,attachments:{treble:{line:6.3,x_shift:10},bass:{line:4,x_shift:1}}},small:{point:18,attachments:{treble:{line:5.8,x_shift:6},bass:{line:3.5,x_shift:.5}}}}}}}constructor(t,e,n){super(),this.setAttribute("type","Clef"),this.setPosition(dt.Position.BEGIN),this.setType(t,e,n),this.setWidth(yt.sizes[this.size].width),function(...t){yt.DEBUG&&i.L("Vex.Flow.Clef",t)}("Creating clef:",t)}getCategory(){return yt.CATEGORY}setType(t,e,n){if(this.type=t,this.clef=yt.types[t],this.size=void 0===e?"default":e,this.clef.point=yt.sizes[this.size].point,this.glyph=new f(this.clef.code,this.clef.point),void 0!==n){const t=yt.annotations[n];this.annotation={code:t.code,point:t.sizes[this.size].point,line:t.sizes[this.size].attachments[this.type].line,x_shift:t.sizes[this.size].attachments[this.type].x_shift},this.attachment=new f(this.annotation.code,this.annotation.point),this.attachment.metrics.x_max=0,this.attachment.setXShift(this.annotation.x_shift)}else this.annotation=void 0;return this}getWidth(){if("tab"===this.type&&!this.stave)throw new i.RERR("ClefError","Can't get width without stave.");return this.width}setStave(t){if(this.stave=t,"tab"!==this.type)return this;let e,n;const s=this.stave.getOptions().num_lines;switch(s){case 8:e=55,n=14;break;case 7:e=47,n=8;break;case 6:e=40,n=1;break;case 5:e=30,n=-6;break;case 4:e=23,n=-12;break;default:throw new i.RERR("ClefError","Invalid number of lines: "+s)}return this.glyph.setPoint(e),this.glyph.setYShift(n),this}draw(){if(!this.x)throw new i.RERR("ClefError","Can't draw clef without x.");if(!this.stave)throw new i.RERR("ClefError","Can't draw clef without stave.");this.setRendered(),this.glyph.setStave(this.stave),this.glyph.setContext(this.stave.context),void 0!==this.clef.line&&this.placeGlyphOnLine(this.glyph,this.stave,this.clef.line),this.glyph.renderToStave(this.x),void 0!==this.annotation&&(this.placeGlyphOnLine(this.attachment,this.stave,this.annotation.line),this.attachment.setStave(this.stave),this.attachment.setContext(this.stave.context),this.attachment.renderToStave(this.x))}}class St extends dt{static get CATEGORY(){return"keysignatures"}static get accidentalSpacing(){return{"#":{above:6,below:4},b:{above:4,below:7},n:{above:4,below:1},"##":{above:6,below:4},bb:{above:4,below:7},db:{above:4,below:7},d:{above:4,below:7},bbs:{above:4,below:7},"++":{above:6,below:4},"+":{above:6,below:4},"+-":{above:6,below:4},"++-":{above:6,below:4},bs:{above:4,below:10},bss:{above:4,below:10}}}constructor(t,e,n){super(),this.setAttribute("type","KeySignature"),this.setKeySig(t,e,n),this.setPosition(dt.Position.BEGIN),this.glyphFontScale=38,this.glyphs=[],this.xPositions=[],this.paddingForced=!1}getCategory(){return St.CATEGORY}convertToGlyph(t,e){const n=p.accidentalCodes(t.type),i=new f(n.code,this.glyphFontScale);let s=1;if("n"===t.type&&e){const n=St.accidentalSpacing[e.type];n&&(s=e.line>=t.line?n.above:n.below)}this.placeGlyphOnLine(i,this.stave,t.line),this.glyphs.push(i);const r=this.xPositions[this.xPositions.length-1],o=i.getMetrics().width+s;this.xPositions.push(r+o),this.width+=o}cancelKey(t){return this.formatted=!1,this.cancelKeySpec=t,this}convertToCancelAccList(t){const e=p.keySignature(t),n=this.accList.length>0&&e.length>0&&e[0].type!==this.accList[0].type,i=n?e.length:e.length-this.accList.length;if(i<1)return;const s=[];for(let r=0;r<i;r++){let t=r;n||(t=e.length-i+r);const o=e[t];s.push({type:"n",line:o.line})}return this.accList=s.concat(this.accList),{accList:s,type:e[0].type}}addToStave(t){return this.paddingForced=!0,t.addModifier(this),this}convertAccLines(t,e,n=this.accList){let i,s,r=0;switch(t){case"soprano":"#"===e?i=[2.5,.5,2,0,1.5,-.5,1]:r=-1;break;case"mezzo-soprano":"b"===e?i=[0,2,.5,2.5,1,3,1.5]:r=1.5;break;case"alto":r=.5;break;case"tenor":"#"===e?i=[3,1,2.5,.5,2,0,1.5]:r=-.5;break;case"baritone-f":case"baritone-c":"b"===e?i=[.5,2.5,1,3,1.5,3.5,2]:r=2;break;case"bass":case"french":r=1}if(void 0!==i)for(s=0;s<n.length;++s)n[s].line=i[s];else if(0!==r)for(s=0;s<n.length;++s)n[s].line+=r}getPadding(t){return this.formatted||this.format(),0===this.glyphs.length||!this.paddingForced&&t<2?0:this.padding}getWidth(){return this.formatted||this.format(),this.width}setKeySig(t,e,n){return this.formatted=!1,this.keySpec=t,this.cancelKeySpec=e,this.alterKeySpec=n,this}alterKey(t){return this.formatted=!1,this.alterKeySpec=t,this}convertToAlterAccList(t){const e=Math.min(t.length,this.accList.length);for(let n=0;n<e;++n)t[n]&&(this.accList[n].type=t[n])}format(){if(!this.stave)throw new i.RERR("KeySignatureError","Can't draw key signature without stave.");this.width=0,this.glyphs=[],this.xPositions=[0],this.accList=p.keySignature(this.keySpec);const t=this.accList,e=t.length>0?t[0].type:null;let n;if(this.cancelKeySpec&&(n=this.convertToCancelAccList(this.cancelKeySpec)),this.alterKeySpec&&this.convertToAlterAccList(this.alterKeySpec),this.accList.length>0){const i=(this.position===dt.Position.END?this.stave.endClef:this.stave.clef)||this.stave.clef;n&&this.convertAccLines(i,n.type,n.accList),this.convertAccLines(i,e,t);for(let t=0;t<this.accList.length;++t)this.convertToGlyph(this.accList[t],this.accList[t+1])}this.formatted=!0}draw(){if(!this.x)throw new i.RERR("KeySignatureError","Can't draw key signature without x.");if(!this.stave)throw new i.RERR("KeySignatureError","Can't draw key signature without stave.");this.formatted||this.format(),this.setRendered();for(let t=0;t<this.glyphs.length;t++){const e=this.glyphs[t],n=this.x+this.xPositions[t];e.setStave(this.stave),e.setContext(this.stave.context),e.renderToStave(n)}}}class xt extends dt{static get CATEGORY(){return"timesignatures"}static get glyphs(){return{C:{code:"v41",point:40,line:2},"C|":{code:"vb6",point:40,line:2}}}constructor(t=null,e=15,n=!0){if(super(),this.setAttribute("type","TimeSignature"),this.validate_args=n,null===t)return;const i=e;this.point=40,this.topLine=2,this.bottomLine=4,this.setPosition(dt.Position.BEGIN),this.setTimeSig(t),this.setWidth(this.timeSig.glyph.getMetrics().width),this.setPadding(i)}getCategory(){return xt.CATEGORY}parseTimeSpec(t){if("C"===t||"C|"===t){const{line:e,code:n,point:i}=xt.glyphs[t];return{line:e,num:!1,glyph:new f(n,i)}}this.validate_args&&(t=>{const e=t.split("/").filter(t=>""!==t);if(2!==e.length)throw new i.RERR("BadTimeSignature",`Invalid time spec: ${t}. Must be in the form "<numerator>/<denominator>"`);e.forEach(e=>{if(isNaN(Number(e)))throw new i.RERR("BadTimeSignature",`Invalid time spec: ${t}. Must contain two valid numbers.`)})})(t);const[e,n]=t.split("/").map(t=>t.split(""));return{num:!0,glyph:this.makeTimeSignatureGlyph(e,n)}}makeTimeSignatureGlyph(t,e){const n=new f("v0",this.point);n.topGlyphs=[],n.botGlyphs=[];let i=0;for(let u=0;u<t.length;++u){const e=t[u],s=new f("v"+e,this.point);n.topGlyphs.push(s),i+=s.getMetrics().width}let s=0;for(let u=0;u<e.length;++u){const t=e[u],i=new f("v"+t,this.point);n.botGlyphs.push(i),s+=i.getMetrics().width}const r=i>s?i:s,o=n.getMetrics().x_min;n.getMetrics=()=>({x_min:o,x_max:o+r,width:r});const a=(r-i)/2,c=(r-s)/2,l=this;return n.renderToStave=function(t){let e=t+a;for(let n=0;n<this.topGlyphs.length;++n){const t=this.topGlyphs[n];f.renderOutline(this.context,t.metrics.outline,t.scale,e+t.x_shift,this.stave.getYForLine(l.topLine)),e+=t.getMetrics().width}e=t+c;for(let n=0;n<this.botGlyphs.length;++n){const t=this.botGlyphs[n];l.placeGlyphOnLine(t,this.stave,t.line),f.renderOutline(this.context,t.metrics.outline,t.scale,e+t.x_shift,this.stave.getYForLine(l.bottomLine)),e+=t.getMetrics().width}},n}getTimeSig(){return this.timeSig}setTimeSig(t){return this.timeSig=this.parseTimeSpec(t),this}draw(){if(!this.x)throw new i.RERR("TimeSignatureError","Can't draw time signature without x.");if(!this.stave)throw new i.RERR("TimeSignatureError","Can't draw time signature without stave.");this.setRendered(),this.timeSig.glyph.setStave(this.stave),this.timeSig.glyph.setContext(this.stave.context),this.placeGlyphOnLine(this.timeSig.glyph,this.stave,this.timeSig.line),this.timeSig.glyph.renderToStave(this.x)}}class _t extends dt{static get CATEGORY(){return"voltas"}static get type(){return{NONE:1,BEGIN:2,MID:3,END:4,BEGIN_END:5}}constructor(t,e,n,i){super(),this.setAttribute("type","Volta"),this.volta=t,this.x=n,this.y_shift=i,this.number=e,this.font={family:"sans-serif",size:9,weight:"bold"}}getCategory(){return _t.CATEGORY}setShiftY(t){return this.y_shift=t,this}draw(t,e){const n=t.checkContext();this.setRendered();let i=t.width-e;const s=t.getYForTopText(t.options.num_lines)+this.y_shift,r=1.5*t.options.spacing_between_lines_px;switch(this.volta){case _t.type.BEGIN:n.fillRect(this.x+e,s,1,r);break;case _t.type.END:i-=5,n.fillRect(this.x+e+i,s,1,r);break;case _t.type.BEGIN_END:i-=3,n.fillRect(this.x+e,s,1,r),n.fillRect(this.x+e+i,s,1,r)}return this.volta!==_t.type.BEGIN&&this.volta!==_t.type.BEGIN_END||(n.save(),n.setFont(this.font.family,this.font.size,this.font.weight),n.fillText(this.number,this.x+e+5,s+15),n.restore()),n.fillRect(this.x+e,s,i,1),this}}class wt extends c{constructor(t,e,n,s){super(),this.setAttribute("type","Stave"),this.x=t,this.y=e,this.width=n,this.formatted=!1,this.start_x=t+5,this.end_x=t+n,this.modifiers=[],this.measure=0,this.clef="treble",this.endClef=void 0,this.font={family:"sans-serif",size:8,weight:""},this.options={vertical_bar_width:10,glyph_spacing_px:10,num_lines:5,fill_style:"#999999",left_bar:!0,right_bar:!0,spacing_between_lines_px:10,space_above_staff_ln:4,space_below_staff_ln:4,top_text_position:1},this.bounds={x:this.x,y:this.y,w:this.width,h:0},i.Merge(this.options,s),this.resetLines();const r=ft.type;this.addModifier(new ft(this.options.left_bar?r.SINGLE:r.NONE)),this.addEndModifier(new ft(this.options.right_bar?r.SINGLE:r.NONE))}space(t){return this.options.spacing_between_lines_px*t}resetLines(){this.options.line_config=[];for(let t=0;t<this.options.num_lines;t++)this.options.line_config.push({visible:!0});this.height=(this.options.num_lines+this.options.space_above_staff_ln)*this.options.spacing_between_lines_px,this.options.bottom_text_position=this.options.num_lines}getOptions(){return this.options}setNoteStartX(t){this.formatted||this.format(),this.start_x=t;const e=this.modifiers[0];return e.setX(this.start_x-e.getWidth()),this}getNoteStartX(){return this.formatted||this.format(),this.start_x}getNoteEndX(){return this.formatted||this.format(),this.end_x}getTieStartX(){return this.start_x}getTieEndX(){return this.x+this.width}getX(){return this.x}getNumLines(){return this.options.num_lines}setNumLines(t){return this.options.num_lines=parseInt(t,10),this.resetLines(),this}setY(t){return this.y=t,this}getTopLineTopY(){return this.getYForLine(0)-p.STAVE_LINE_THICKNESS/2}getBottomLineBottomY(){return this.getYForLine(this.getNumLines()-1)+p.STAVE_LINE_THICKNESS/2}setX(t){const e=t-this.x;this.formatted=!1,this.x=t,this.start_x+=e,this.end_x+=e;for(let n=0;n<this.modifiers.length;n++){const t=this.modifiers[n];void 0!==t.x&&(t.x+=e)}return this}setWidth(t){return this.formatted=!1,this.width=t,this.end_x=this.x+t,this}getWidth(){return this.width}getStyle(){return{fillStyle:this.options.fill_style,strokeStyle:this.options.fill_style,lineWidth:p.STAVE_LINE_THICKNESS,...this.style||{}}}setMeasure(t){return this.measure=t,this}getModifierXShift(t=0){if("number"!=typeof t)throw new i.RERR("InvalidIndex","Must be of number type");if(this.formatted||this.format(),1===this.getModifiers(dt.Position.BEGIN).length)return 0;let e=this.start_x-this.x;const n=this.modifiers[0];return n.getType()===ft.type.REPEAT_BEGIN&&e>n.getWidth()&&(e-=n.getWidth()),e}setRepetitionTypeLeft(t,e){return this.modifiers.push(new pt(t,this.x,e)),this}setRepetitionTypeRight(t,e){return this.modifiers.push(new pt(t,this.x,e)),this}setVoltaType(t,e,n){return this.modifiers.push(new _t(t,e,this.x,n)),this}setSection(t,e){return this.modifiers.push(new mt(t,this.x,e)),this}setTempo(t,e){return this.modifiers.push(new gt(t,this.x,e)),this}setText(t,e,n){return this.modifiers.push(new vt(t,e,n)),this}getHeight(){return this.height}getSpacingBetweenLines(){return this.options.spacing_between_lines_px}getBoundingBox(){return new u(this.x,this.y,this.width,this.getBottomY()-this.y)}getBottomY(){const t=this.options,e=t.spacing_between_lines_px;return this.getYForLine(t.num_lines)+t.space_below_staff_ln*e}getBottomLineY(){return this.getYForLine(this.options.num_lines)}getYForLine(t){const e=this.options,n=e.spacing_between_lines_px,i=e.space_above_staff_ln;return this.y+t*n+i*n}getLineForY(t){const e=this.options,n=e.spacing_between_lines_px,i=e.space_above_staff_ln;return(t-this.y)/n-i}getYForTopText(t){const e=t||0;return this.getYForLine(-e-this.options.top_text_position)}getYForBottomText(t){const e=t||0;return this.getYForLine(this.options.bottom_text_position+e)}getYForNote(t){const e=this.options,n=e.spacing_between_lines_px,i=e.space_above_staff_ln;return this.y+i*n+5*n-t*n}getYForGlyphs(){return this.getYForLine(3)}addModifier(t,e){return void 0!==e&&t.setPosition(e),t.setStave(this),this.formatted=!1,this.modifiers.push(t),this}addEndModifier(t){return this.addModifier(t,dt.Position.END),this}setBegBarType(t){const{SINGLE:e,REPEAT_BEGIN:n,NONE:i}=ft.type;return t!==e&&t!==n&&t!==i||(this.modifiers[0].setType(t),this.formatted=!1),this}setEndBarType(t){return t!==ft.type.REPEAT_BEGIN&&(this.modifiers[1].setType(t),this.formatted=!1),this}setClef(t,e,n,i){void 0===i&&(i=dt.Position.BEGIN),i===dt.Position.END?this.endClef=t:this.clef=t;const s=this.getModifiers(i,yt.CATEGORY);return 0===s.length?this.addClef(t,e,n,i):s[0].setType(t,e,n),this}setEndClef(t,e,n){return this.setClef(t,e,n,dt.Position.END),this}setKeySignature(t,e,n){void 0===n&&(n=dt.Position.BEGIN);const i=this.getModifiers(n,St.CATEGORY);return 0===i.length?this.addKeySignature(t,e,n):i[0].setKeySig(t,e),this}setEndKeySignature(t,e){return this.setKeySignature(t,e,dt.Position.END),this}setTimeSignature(t,e,n){void 0===n&&(n=dt.Position.BEGIN);const i=this.getModifiers(n,xt.CATEGORY);return 0===i.length?this.addTimeSignature(t,e,n):i[0].setTimeSig(t),this}setEndTimeSignature(t,e){return this.setTimeSignature(t,e,dt.Position.END),this}addKeySignature(t,e,n){return void 0===n&&(n=dt.Position.BEGIN),this.addModifier(new St(t,e).setPosition(n),n),this}addClef(t,e,n,i){return void 0===i||i===dt.Position.BEGIN?this.clef=t:i===dt.Position.END&&(this.endClef=t),this.addModifier(new yt(t,e,n),i),this}addEndClef(t,e,n){return this.addClef(t,e,n,dt.Position.END),this}addTimeSignature(t,e,n){return this.addModifier(new xt(t,e),n),this}addEndTimeSignature(t,e){return this.addTimeSignature(t,e,dt.Position.END),this}addTrebleGlyph(){return this.addClef("treble"),this}getModifiers(t,e){return void 0===t&&void 0===e?this.modifiers:this.modifiers.filter(n=>!(void 0!==t&&t!==n.getPosition()||void 0!==e&&e!==n.getCategory()))}sortByCategory(t,e){for(let n=t.length-1;n>=0;n--)for(let i=0;i<n;i++)if(e[t[i].getCategory()]>e[t[i+1].getCategory()]){const e=t[i];t[i]=t[i+1],t[i+1]=e}}format(){const t=this.modifiers[0],e=this.modifiers[1],n=this.getModifiers(dt.Position.BEGIN),i=this.getModifiers(dt.Position.END);let s,r,o;this.sortByCategory(n,{barlines:0,clefs:1,keysignatures:2,timesignatures:3}),this.sortByCategory(i,{timesignatures:0,keysignatures:1,barlines:2,clefs:3}),n.length>1&&t.getType()===ft.type.REPEAT_BEGIN&&(n.push(n.splice(0,1)[0]),n.splice(0,0,new ft(ft.type.SINGLE))),i.indexOf(e)>0&&i.splice(0,0,new ft(ft.type.NONE));let a=0,c=this.x;for(let h=0;h<n.length;h++)o=n[h],r=o.getPadding(h+a),s=o.getWidth(),c+=r,o.setX(c),c+=s,r+s===0&&a--;this.start_x=c,c=this.x+this.width;const l={left:0,right:0,paddingRight:0,paddingLeft:0};let u=0;for(let h=0;h<i.length;h++){o=i[h],u="barlines"===o.getCategory()?h:u,l.right=0,l.left=0,l.paddingRight=0,l.paddingLeft=0;const t=o.getLayoutMetrics();t?(0!==h&&(l.right=t.xMax||0,l.paddingRight=t.paddingRight||0),l.left=-t.xMin||0,l.paddingLeft=t.paddingLeft||0,h===i.length-1&&(l.paddingLeft=0)):(l.paddingRight=o.getPadding(h-u),0!==h&&(l.right=o.getWidth()),0===h&&(l.left=o.getWidth())),c-=l.paddingRight,c-=l.right,o.setX(c),c-=l.left,c-=l.paddingLeft}this.end_x=1===i.length?this.x+this.width:c,this.formatted=!0}draw(){this.checkContext(),this.setRendered(),this.formatted||this.format();const t=this.options.num_lines,e=this.width,n=this.x;let i;for(let s=0;s<t;s++)i=this.getYForLine(s),this.applyStyle(),this.options.line_config[s].visible&&(this.context.beginPath(),this.context.moveTo(n,i),this.context.lineTo(n+e,i),this.context.stroke()),this.restoreStyle();for(let s=0;s<this.modifiers.length;s++)"function"==typeof this.modifiers[s].draw&&(this.modifiers[s].applyStyle(this.context),this.modifiers[s].draw(this,this.getModifierXShift(s)),this.modifiers[s].restoreStyle(this.context));if(this.measure>0){this.context.save(),this.context.setFont(this.font.family,this.font.size,this.font.weight);const t=this.context.measureText(""+this.measure).width;i=this.getYForTopText(0)+3,this.context.fillText(""+this.measure,this.x-t/2,i),this.context.restore()}return this}drawVertical(t,e){this.drawVerticalFixed(this.x+t,e)}drawVerticalFixed(t,e){this.checkContext();const n=this.getYForLine(0),i=this.getYForLine(this.options.num_lines-1);e&&this.context.fillRect(t-3,n,1,i-n+1),this.context.fillRect(t,n,1,i-n+1)}drawVerticalBar(t){this.drawVerticalBarFixed(this.x+t,!1)}drawVerticalBarFixed(t){this.checkContext();const e=this.getYForLine(0),n=this.getYForLine(this.options.num_lines-1);this.context.fillRect(t,e,1,n-e+1)}getConfigForLines(){return this.options.line_config}setConfigForLine(t,e){if(t>=this.options.num_lines||t<0)throw new i.RERR("StaveConfigError","The line number must be within the range of the number of lines in the Stave.");if(void 0===e.visible)throw new i.RERR("StaveConfigError","The line configuration object is missing the 'visible' property.");if("boolean"!=typeof e.visible)throw new i.RERR("StaveConfigError","The line configuration objects 'visible' property must be true or false.");return this.options.line_config[t]=e,this}setConfigForLines(t){if(t.length!==this.options.num_lines)throw new i.RERR("StaveConfigError","The length of the lines configuration array must match the number of lines in the Stave");for(const e in t)t[e]||(t[e]=this.options.line_config[e]),i.Merge(this.options.line_config[e],t[e]);return this.options.line_config=t,this}}class Et extends wt{constructor(t,e,n,s){const r={spacing_between_lines_px:13,num_lines:6,top_text_position:1};i.Merge(r,s),super(t,e,n,r),this.setAttribute("type","TabStave")}getYForGlyphs(){return this.getYForLine(2.5)}addTabGlyph(){return this.addClef("tab"),this}}class Tt extends k{static get CATEGORY(){return"tabnotes"}constructor(t,e){if(super(t),this.setAttribute("type","TabNote"),this.ghost=!1,this.positions=t.positions,i.Merge(this.render_options,{glyph_font_scale:p.DEFAULT_TABLATURE_FONT_SCALE,draw_stem:e,draw_dots:e,draw_stem_through_stave:!1,y_shift:0,scale:1,font:"10pt Arial"}),this.glyph=p.getGlyphProps(this.duration,this.noteType),!this.glyph)throw new i.RuntimeError("BadArguments","Invalid note initialization data (No glyph found): "+JSON.stringify(t));this.buildStem(),t.stem_direction?this.setStemDirection(t.stem_direction):this.setStemDirection(x.UP),this.ghost=!1,this.updateWidth()}reset(){this.stave&&this.setStave(this.stave)}getCategory(){return Tt.CATEGORY}setGhost(t){return this.ghost=t,this.updateWidth(),this}hasStem(){return this.render_options.draw_stem}getStemExtension(){const t=this.getGlyph();return null!=this.stem_extension_override?this.stem_extension_override:t?1===this.getStemDirection()?t.tabnote_stem_up_extension:t.tabnote_stem_down_extension:0}addDot(){const t=new N;return this.dots+=1,this.addModifier(t,0)}updateWidth(){this.glyphs=[],this.width=0;for(let t=0;t<this.positions.length;++t){let e=this.positions[t].fret;this.ghost&&(e="("+e+")");const n=p.tabToGlyph(e,this.render_options.scale);this.glyphs.push(n),this.width=Math.max(n.getWidth(),this.width)}this.glyph.getWidth=()=>this.width}setStave(t){let e;if(super.setStave(t),this.context=t.context,this.context){const t=this.context;for(this.width=0,e=0;e<this.glyphs.length;++e){const n=this.glyphs[e],i=""+n.text;"X"!==i.toUpperCase()&&(t.save(),t.setRawFont(this.render_options.font),n.width=t.measureText(i).width,t.restore(),n.getWidth=()=>n.width),this.width=Math.max(n.getWidth(),this.width)}this.glyph.getWidth=()=>this.width}const n=this.positions.map(({str:e})=>t.getYForLine(e-1));return this.setYs(n),this.stem&&this.stem.setYBounds(this.getStemY(),this.getStemY()),this}getPositions(){return this.positions}addToModifierContext(t){this.setModifierContext(t);for(let e=0;e<this.modifiers.length;++e)this.modifierContext.addModifier(this.modifiers[e]);return this.modifierContext.addModifier(this),this.preFormatted=!1,this}getTieRightX(){let t=this.getAbsoluteX();return t+=this.glyph.getWidth()/2,t+=-this.width/2+this.width+2,t}getTieLeftX(){let t=this.getAbsoluteX();return t+=this.glyph.getWidth()/2,t-=this.width/2+2,t}getModifierStartXY(t,e){if(!this.preFormatted)throw new i.RERR("UnformattedNote","Can't call GetModifierStartXY on an unformatted note");if(0===this.ys.length)throw new i.RERR("NoYValues","No Y-Values calculated for this note.");let n=0;return t===R.Position.LEFT?n=-2:t===R.Position.RIGHT?n=this.width+2:t!==R.Position.BELOW&&t!==R.Position.ABOVE||(n=this.glyph.getWidth()/2),{x:this.getAbsoluteX()+n,y:this.ys[e]}}getLineForRest(){return this.positions[0].str}preFormat(){this.preFormatted||(this.modifierContext&&this.modifierContext.preFormat(),this.setPreFormatted(!0))}getStemX(){return this.getCenterGlyphX()}getStemY(){const t=this.stave.getNumLines()-.5,e=x.UP===this.stem_direction?-.5:t;return this.stave.getYForLine(e)}getStemExtents(){return this.stem.getExtents()}drawFlag(){const{beam:t,glyph:e,context:n,stem:i,stem_direction:s,render_options:{draw_stem:r,glyph_font_scale:o}}=this,a=null==t&&r;if(e.flag&&a){const t=this.getStemX()+1,r=this.getStemY()-i.getHeight(),a=s===x.DOWN?e.code_flag_downstem:e.code_flag_upstem;f.renderGlyph(n,t,r,o,a)}}drawModifiers(){this.modifiers.forEach(t=>{("dots"!==t.getCategory()||this.render_options.draw_dots)&&(t.setContext(this.context),t.drawWithStyle())})}drawStemThrough(){const t=this.getStemX(),e=this.getStemY(),n=this.context,i=this.render_options.draw_stem_through_stave;if(this.render_options.draw_stem&&i){const i=function(t,e,n,i){const s=1!==i,r=-1!==i,o=n.getSpacingBetweenLines(),a=n.getNumLines(),c=[];return e.forEach(e=>{const l=e.indexOf(a)>-1,u=e.indexOf(1)>-1;if(s&&u||r&&l)return;1===e.length&&e.push(e[0]);const h=[];e.forEach((e,s,r)=>{const c=1===e,l=e===a;let u=n.getYForLine(e-1);0!==s||c?s!==r.length-1||l||(u+=o/2-1):u-=o/2-1,h.push(u),1===i&&c?h.push(t-2):-1===i&&l&&h.push(t+2)}),c.push(h.sort((t,e)=>t-e))}),c}(e,function(t,e){const n=[];let i=[];for(let s=1;s<=t;s++)e.indexOf(s)>-1?(n.push(i),i=[]):i.push(s);return i.length>0&&n.push(i),n}(this.stave.getNumLines(),this.positions.map(t=>t.str)),this.getStave(),this.getStemDirection());n.save(),n.setLineWidth(x.WIDTH),i.forEach(e=>{0!==e.length&&(n.beginPath(),n.moveTo(t,e[0]),n.lineTo(t,e[e.length-1]),n.stroke(),n.closePath())}),n.restore()}}drawPositions(){const t=this.context,e=this.getAbsoluteX(),n=this.ys;for(let i=0;i<this.positions.length;++i){const s=n[i]+this.render_options.y_shift,r=this.glyphs[i],o=e+this.glyph.getWidth()/2-r.getWidth()/2;if(t.clearRect(o-2,s-3,r.getWidth()+4,6),r.code)f.renderGlyph(t,o,s,this.render_options.glyph_font_scale*this.render_options.scale,r.code);else{t.save(),t.setRawFont(this.render_options.font);const e=r.text.toString();t.fillText(e,o,s+5*this.render_options.scale),t.restore()}}}draw(){if(this.checkContext(),!this.stave)throw new i.RERR("NoStave","Can't draw without a stave.");if(0===this.ys.length)throw new i.RERR("NoYValues","Can't draw note without Y values.");this.setRendered();const t=null==this.beam&&this.render_options.draw_stem;this.context.openGroup("tabnote",null,{pointerBBox:!0}),this.drawPositions(),this.drawStemThrough();const e=this.getStemX();this.stem.setNoteHeadXBounds(e,e),t&&(this.context.openGroup("stem",null,{pointerBBox:!0}),this.stem.setContext(this.context).draw(),this.context.closeGroup()),this.drawFlag(),this.drawModifiers(),this.context.closeGroup()}}class Ct extends c{constructor(t){super(),this.setAttribute("type","VibratoBracket"),this.start=t.start,this.stop=t.stop,this.line=1,this.render_options={harsh:!1,wave_height:6,wave_width:4,wave_girth:2}}setLine(t){return this.line=t,this}setHarsh(t){return this.render_options.harsh=t,this}draw(){const t=this.context;this.setRendered();const e=this.start?this.start.getStave().getYForTopText(this.line):this.stop.getStave().getYForTopText(this.line),n=this.start?this.start.getAbsoluteX():this.stop.getStave().getTieStartX(),s=this.stop?this.stop.getAbsoluteX()-this.stop.getWidth()-5:this.start.getStave().getTieEndX()-10;this.render_options.vibrato_width=s-n,function(...t){Ct.DEBUG&&i.L("Vex.Flow.VibratoBracket",t)}("Rendering VibratoBracket: start_x:",n,"stop_x:",s,"y:",e),ot.renderVibrato(t,n,e,this.render_options)}}let Mt;class Pt extends c{constructor(t,e){super(),this.setAttribute("type","MultiMeasureRest"),this.render_options={show_number:!0,number_line:-.5,number_glyph_point:40,padding_left:void 0,padding_right:void 0,line:2,spacing_between_lines_px:10,line_thickness:void 0,serif_thickness:2,use_symbols:!1,symbol_spacing:void 0,semibrave_rest_glyph_scale:p.DEFAULT_NOTATION_FONT_SCALE},i.Merge(this.render_options,e),this.number_of_measures=t,this.xs={left:NaN,right:NaN}}getXs(){return this.xs}setStave(t){return this.stave=t,this}getStave(){return this.stave}drawLine(t,e,n,i){const s=this.stave.getYForLine(this.render_options.line),r=.1*(n-e);e+=r,n-=r;const o=this.render_options.serif_thickness;let a=.25*i;isNaN(this.render_options.line_thickness)||(a=.5*this.render_options.line_thickness),t.save(),t.beginPath(),t.moveTo(e,s-i),t.lineTo(e+o,s-i),t.lineTo(e+o,s-a),t.lineTo(n-o,s-a),t.lineTo(n-o,s-i),t.lineTo(n,s-i),t.lineTo(n,s+i),t.lineTo(n-o,s+i),t.lineTo(n-o,s+a),t.lineTo(e+o,s+a),t.lineTo(e+o,s+i),t.lineTo(e,s+i),t.closePath(),t.fill()}drawSymbols(t,e,n,i){const s=Math.floor(this.number_of_measures/4),r=this.number_of_measures%4,o=Math.floor(r/2),a=r%2,c=function(){if(!Mt){const t=new O({duration:"w",note_type:"r"});Mt={glyph_font_scale:t.render_options.glyph_font_scale,glyph_code:t.glyph_code,width:t.getWidth()}}return Mt}(),l=c.width*(this.render_options.semibrave_rest_glyph_scale/c.glyph_font_scale),u={2:{width:.5*l,height:i},1:{width:l}};let h=1.35*l;isNaN(this.render_options.symbol_spacing)||(h=this.render_options.symbol_spacing);let d=e+.5*(n-e)-.5*(s*u[2].width+o*u[2].width+a*u[1].width+(s+o+a-1)*h);const p=this.stave.getYForLine(this.render_options.line-1),m=this.stave.getYForLine(this.render_options.line),g=this.stave.getYForLine(this.render_options.line+1);t.save(),t.setStrokeStyle("none"),t.setLineWidth(0);for(let f=0;f<s;++f)t.fillRect(d,m-u[2].height,u[2].width,u[2].height),t.fillRect(d,g-u[2].height,u[2].width,u[2].height),d+=u[2].width+h;for(let f=0;f<o;++f)t.fillRect(d,m-u[2].height,u[2].width,u[2].height),d+=u[2].width+h;for(let b=0;b<a;++b)f.renderGlyph(t,d,p,this.render_options.semibrave_rest_glyph_scale,c.glyph_code),d+=u[1].width+h;t.restore()}draw(){this.checkContext(),this.setRendered();const t=this.context,e=this.stave,n=this.render_options.spacing_between_lines_px;let i=e.getNoteStartX(),s=e.getNoteEndX();const r=e.getModifiers(dt.Position.BEGIN);if(1===r.length&&"barlines"===r[0].getCategory()&&(i-=r[0].getWidth()),isNaN(this.render_options.padding_left)||(i=e.getX()+this.render_options.padding_left),isNaN(this.render_options.padding_right)||(s=e.getX()+e.getWidth()-this.render_options.padding_right),this.xs.left=i,this.xs.right=s,this.render_options.use_symbols?this.drawSymbols(t,i,s,n):this.drawLine(t,i,s,n),this.render_options.show_number){const n="/"+this.number_of_measures,r=new xt(null,void 0,!1);r.point=this.render_options.number_glyph_point,r.setTimeSig(n),r.setStave(e),r.x=i+.5*(s-i)-.5*r.timeSig.glyph.getMetrics().width,r.bottomLine=this.render_options.number_line,r.setContext(t).draw()}}}class At extends L{static get CATEGORY(){return"clefnote"}constructor(t,e,n){super({duration:"b"}),this.setAttribute("type","ClefNote"),this.setType(t,e,n),this.ignore_ticks=!0}setType(t,e,n){return this.type=t,this.clef_obj=new yt(t,e,n),this.clef=this.clef_obj.clef,this.glyph=new f(this.clef.code,this.clef.point),this.setWidth(this.glyph.getMetrics().width),this}getClef(){return this.clef}setContext(t){return this.context=t,this.glyph.setContext(this.context),this}getBoundingBox(){return super.getBoundingBox()}addToModifierContext(){return this}getCategory(){return At.CATEGORY}preFormat(){return this.setPreFormatted(!0),this}draw(){if(!this.stave)throw new i.RERR("NoStave","Can't draw without a stave.");this.glyph.getContext()||this.glyph.setContext(this.context),this.setRendered();const t=this.getAbsoluteX();if(this.glyph.setStave(this.stave),this.glyph.setYShift(this.stave.getYForLine(this.clef.line)-this.stave.getYForGlyphs()),this.glyph.renderToStave(t),void 0!==this.clef_obj.annotation){const e=new f(this.clef_obj.annotation.code,this.clef_obj.annotation.point);e.getContext()||e.setContext(this.context),e.setStave(this.stave),e.setYShift(this.stave.getYForLine(this.clef_obj.annotation.line)-this.stave.getYForGlyphs()),e.setXShift(this.clef_obj.annotation.x_shift),e.renderToStave(t)}}}class It extends L{constructor(t,e,n){super({duration:"b"}),this.setAttribute("type","KeySigNote"),this.keySignature=new St(t,e,n),this.ignore_ticks=!0}getBoundingBox(){return super.getBoundingBox()}addToModifierContext(){return this}preFormat(){return this.setPreFormatted(!0),this.keySignature.setStave(this.stave),this.keySignature.format(),this.setWidth(this.keySignature.width),this}draw(){this.stave.checkContext(),this.setRendered(),this.keySignature.x=this.getAbsoluteX(),this.keySignature.setContext(this.context),this.keySignature.draw()}}class Lt extends L{constructor(t,e){super({duration:"b"}),this.setAttribute("type","TimeSigNote");const n=new xt(t,e);this.timeSig=n.getTimeSig(),this.setWidth(this.timeSig.glyph.getMetrics().width),this.ignore_ticks=!0}getBoundingBox(){return super.getBoundingBox()}addToModifierContext(){return this}preFormat(){return this.setPreFormatted(!0),this}draw(){this.stave.checkContext(),this.setRendered(),this.timeSig.glyph.getContext()||this.timeSig.glyph.setContext(this.context),this.timeSig.glyph.setStave(this.stave),this.timeSig.glyph.setYShift(this.stave.getYForLine(this.timeSig.line)-this.stave.getYForGlyphs()),this.timeSig.glyph.renderToStave(this.getAbsoluteX())}}class Ot extends H{static get SLIDE_UP(){return 1}static get SLIDE_DOWN(){return-1}static createSlideUp(t){return new Ot(t,Ot.SLIDE_UP)}static createSlideDown(t){return new Ot(t,Ot.SLIDE_DOWN)}constructor(t,e){if(super(t,"sl."),this.setAttribute("type","TabSlide"),!e){const n=t.first_note.getPositions()[0].fret,i=t.last_note.getPositions()[0].fret;e=parseInt(n,10)>parseInt(i,10)?Ot.SLIDE_DOWN:Ot.SLIDE_UP}this.slide_direction=e,this.render_options.cp1=11,this.render_options.cp2=14,this.render_options.y_shift=.5,this.setFont({font:"Times",size:10,style:"bold italic"}),this.setNotes(t)}renderTie(t){if(0===t.first_ys.length||0===t.last_ys.length)throw new i.RERR("BadArguments","No Y-values to render");const e=this.context,n=t.first_x_px,s=t.first_ys,r=t.last_x_px,o=this.slide_direction;if(o!==Ot.SLIDE_UP&&o!==Ot.SLIDE_DOWN)throw new i.RERR("BadSlide","Invalid slide direction");for(let a=0;a<this.first_indices.length;++a){const t=s[this.first_indices[a]]+this.render_options.y_shift;if(isNaN(t))throw new i.RERR("BadArguments","Bad indices for slide rendering.");e.beginPath(),e.moveTo(n,t+3*o),e.lineTo(r,t-3*o),e.closePath(),e.stroke()}this.setRendered()}}class kt extends V{static get CATEGORY(){return"gracenotes"}static get LEDGER_LINE_OFFSET(){return 2}static get SCALE(){return.66}constructor(t){super(Object.assign(t,{glyph_font_scale:p.DEFAULT_NOTATION_FONT_SCALE*kt.SCALE,stroke_px:kt.LEDGER_LINE_OFFSET})),this.setAttribute("type","GraceNote"),this.slash=t.slash,this.slur=!0,this.buildNoteHeads(),this.width=3}getStemExtension(){if(null!=this.stem_extension_override)return this.stem_extension_override;const t=this.getGlyph();if(t){let e=super.getStemExtension();if(t.stem){const t=this.getStaveNoteScale();e=(x.HEIGHT+e)*t-x.HEIGHT}return e}return 0}getCategory(){return kt.CATEGORY}getStaveNoteScale(){return this.render_options.glyph_font_scale/p.DEFAULT_NOTATION_FONT_SCALE}draw(){super.draw(),this.setRendered();const t=this.stem;if(this.slash&&t){const e=this.getStaveNoteScale(),n=e/.66;let i=void 0;const s=this.beam;if(s)s.postFormatted||s.postFormat(),i=this.calcBeamedNotesSlashBBox(8*n,8*n,{stem:6*n,beam:5*n});else{const s=this.getStemDirection(),r=this.getNoteHeadBounds(),o=t.getHeight();let a=this.getAbsoluteX(),c=s===p.Stem.DOWN?r.y_top-o:r.y_bottom-o;const l=s===p.Stem.DOWN?this.glyph.stem_down_extension:this.glyph.stem_up_extension;let u=p.STEM_HEIGHT;u-=u/2.8,u+=l,c+=u*e*s;const h=s===p.Stem.UP?{x1:1,y1:0,x2:13,y2:-9}:{x1:-4,y1:1,x2:13,y2:9};a+=h.x1*n,c+=h.y1*n,i={x1:a,y1:c,x2:a+h.x2*n,y2:c+h.y2*n}}const r=this.context;r.save(),r.setLineWidth(1*n),r.beginPath(),r.moveTo(i.x1,i.y1),r.lineTo(i.x2,i.y2),r.closePath(),r.stroke(),r.restore()}}calcBeamedNotesSlashBBox(t,e,n){const i=this.beam,s=i.slope,r=i.notes[i.notes.length-1]===this?-1:1,o=Math.atan(s*r),a=Math.cos(o)*e,c=Math.sin(o)*e;t*=this.getStemDirection();const l=Math.atan((c-t)/a),u=Math.cos(l)*n.stem*r,h=Math.sin(l)*n.stem,d=Math.cos(l)*n.beam*r,f=Math.sin(l)*n.beam,p=this.getStemX(),m=i.notes[0].getStemX(),g=this.beam.getBeamYToDraw()+(p-m)*s;return{x1:p-u,y1:g+t-h,x2:p+a*r+d,y2:g+c+f}}}class Rt extends Tt{static get CATEGORY(){return"gracetabnotes"}constructor(t){super(t,!1),this.setAttribute("type","GraceTabNote"),i.Merge(this.render_options,{y_shift:.3,scale:.6,font:"7.5pt Arial"}),this.updateWidth()}getCategory(){return Rt.CATEGORY}draw(){super.draw(),this.setRendered()}}class Nt{static get names(){return{standard:"E/5,B/4,G/4,D/4,A/3,E/3",dagdad:"D/5,A/4,G/4,D/4,A/3,D/3",dropd:"E/5,B/4,G/4,D/4,A/3,D/3",eb:"Eb/5,Bb/4,Gb/4,Db/4,Ab/3,Db/3",standardBanjo:"D/5,B/4,G/4,D/4,G/5"}}constructor(t="E/5,B/4,G/4,D/4,A/3,E/3,B/2,E/2"){this.setTuning(t)}noteToInteger(t){return p.keyProperties(t).int_value}setTuning(t){Nt.names[t]&&(t=Nt.names[t]),this.tuningString=t,this.tuningValues=[],this.numStrings=0;const e=t.split(/\s*,\s*/);if(0===e.length)throw new i.RERR("BadArguments","Invalid tuning string: "+t);this.numStrings=e.length;for(let n=0;n<this.numStrings;++n)this.tuningValues[n]=this.noteToInteger(e[n])}getValueForString(t){const e=parseInt(t,10);if(e<1||e>this.numStrings)throw new i.RERR("BadArguments",`String number must be between 1 and ${this.numStrings}:${t}`);return this.tuningValues[e-1]}getValueForFret(t,e){const n=this.getValueForString(e),s=parseInt(t,10);if(s<0)throw new i.RERR("BadArguments","Fret number must be 0 or higher: "+t);return n+s}getNoteForFret(t,e){const n=this.getValueForFret(t,e),i=Math.floor(n/12),s=n%12;return p.integerToNote(s)+"/"+i}}class Dt extends c{static get type(){return{CRESC:1,DECRESC:2}}static FormatByTicksAndDraw(t,e,n,s,r,o){const a=e.pixelsPerTick;if(null==a)throw new i.RuntimeError("BadArguments","A valid Formatter must be provide to draw offsets by ticks.");const c=a*o.left_shift_ticks,l=a*o.right_shift_ticks,u={height:o.height,y_shift:o.y_shift,left_shift_px:c,right_shift_px:l};new Dt({first_note:n.first_note,last_note:n.last_note},s).setContext(t).setRenderOptions(u).setPosition(r).draw()}constructor(t,e){super(),this.setAttribute("type","StaveHairpin"),this.notes=t,this.hairpin=e,this.position=R.Position.BELOW,this.render_options={height:10,y_shift:0,left_shift_px:0,right_shift_px:0},this.setNotes(t)}setPosition(t){return t!==R.Position.ABOVE&&t!==R.Position.BELOW||(this.position=t),this}setRenderOptions(t){return null!=t.height&&null!=t.y_shift&&null!=t.left_shift_px&&null!=t.right_shift_px&&(this.render_options=t),this}setNotes(t){if(!t.first_note&&!t.last_note)throw new i.RuntimeError("BadArguments","Hairpin needs to have either first_note or last_note set.");return this.first_note=t.first_note,this.last_note=t.last_note,this}renderHairpin(t){const e=this.checkContext();let n=this.render_options.y_shift+20,i=t.first_y;this.position===R.Position.ABOVE&&(n=30-n,i=t.first_y-t.staff_height);const s=this.render_options.left_shift_px,r=this.render_options.right_shift_px;switch(e.beginPath(),this.hairpin){case Dt.type.CRESC:e.moveTo(t.last_x+r,i+n),e.lineTo(t.first_x+s,i+this.render_options.height/2+n),e.lineTo(t.last_x+r,i+this.render_options.height+n);break;case Dt.type.DECRESC:e.moveTo(t.first_x+s,i+n),e.lineTo(t.last_x+r,i+this.render_options.height/2+n),e.lineTo(t.first_x+s,i+this.render_options.height+n)}e.stroke(),e.closePath()}draw(){this.checkContext(),this.setRendered();const t=this.first_note,e=this.last_note,n=t.getModifierStartXY(this.position,0),i=e.getModifierStartXY(this.position,0);return this.renderHairpin({first_x:n.x,last_x:i.x,first_y:t.getStave().y+t.getStave().height,last_y:e.getStave().y+e.getStave().height,staff_height:t.getStave().height}),!0}}class Vt extends c{static get Position(){return{NEAR_HEAD:1,NEAR_TOP:2}}static get PositionString(){return{nearHead:Vt.Position.NEAR_HEAD,nearTop:Vt.Position.NEAR_TOP}}constructor(t,e,n){super(),this.setAttribute("type","Curve"),this.render_options={spacing:2,thickness:2,x_shift:0,y_shift:10,position:Vt.Position.NEAR_HEAD,position_end:Vt.Position.NEAR_HEAD,invert:!1,cps:[{x:0,y:10},{x:0,y:10}]},i.Merge(this.render_options,n),this.setNotes(t,e)}setNotes(t,e){if(!t&&!e)throw new i.RuntimeError("BadArguments","Curve needs to have either first_note or last_note set.");return this.from=t,this.to=e,this}isPartial(){return!this.from||!this.to}renderCurve(t){const e=this.context,n=this.render_options.cps,i=this.render_options.x_shift,s=this.render_options.y_shift*t.direction,r=t.first_x+i,o=t.first_y+s,a=t.last_x-i,c=t.last_y+s,l=this.render_options.thickness,u=(a-r)/(n.length+2);e.beginPath(),e.moveTo(r,o),e.bezierCurveTo(r+u+n[0].x,o+n[0].y*t.direction,a-u+n[1].x,c+n[1].y*t.direction,a,c),e.bezierCurveTo(a-u+n[1].x,c+(n[1].y+l)*t.direction,r+u+n[0].x,o+(n[0].y+l)*t.direction,r,o),e.stroke(),e.closePath(),e.fill()}draw(){this.checkContext(),this.setRendered();const t=this.from,e=this.to;let n,i,s,r,o,a="baseY",c="baseY";function l(t){return"string"==typeof t?Vt.PositionString[t]:t}const u=l(this.render_options.position),h=l(this.render_options.position_end);return u===Vt.Position.NEAR_TOP&&(a="topY",c="topY"),h===Vt.Position.NEAR_HEAD?c="baseY":h===Vt.Position.NEAR_TOP&&(c="topY"),t?(n=t.getTieRightX(),o=t.getStemDirection(),s=t.getStemExtents()[a]):(n=e.getStave().getTieStartX(),s=e.getStemExtents()[a]),e?(i=e.getTieLeftX(),o=e.getStemDirection(),r=e.getStemExtents()[c]):(i=t.getStave().getTieEndX(),r=t.getStemExtents()[c]),this.renderCurve({first_x:n,last_x:i,first_y:s,last_y:r,direction:o*(!0===this.render_options.invert?-1:1)}),!0}}function Bt(...t){Ft.DEBUG&&i.L("Vex.Flow.TextDynamics",t)}class Ft extends L{static get GLYPHS(){return{f:{code:"vba",width:12},p:{code:"vbf",width:14},m:{code:"v62",width:17},s:{code:"v4a",width:10},z:{code:"v80",width:12},r:{code:"vb1",width:12}}}constructor(t){super(t),this.setAttribute("type","TextDynamics"),this.sequence=t.text.toLowerCase(),this.line=t.line||0,this.glyphs=[],i.Merge(this.render_options,{glyph_font_size:40}),Bt("New Dynamics Text: ",this.sequence)}setLine(t){return this.line=t,this}preFormat(){let t=0;return this.sequence.split("").forEach(e=>{const n=Ft.GLYPHS[e];if(!n)throw new i.RERR("Invalid dynamics character: "+e);const s=this.render_options.glyph_font_size,r=new f(n.code,s);this.glyphs.push(r),t+=n.width}),this.setWidth(t),this.preFormatted=!0,this}draw(){this.setRendered();const t=this.getAbsoluteX(),e=this.stave.getYForLine(this.line+-3);Bt("Rendering Dynamics: ",this.sequence);let n=t;this.glyphs.forEach((t,i)=>{const s=this.sequence[i];t.render(this.context,n,e),n+=Ft.GLYPHS[s].width})}}function jt(t,e,n,i,s,r,o){t.beginPath(),t.moveTo(e,n),t.lineTo(i,s),t.lineTo(r,o),t.lineTo(e,n),t.closePath(),t.fill()}class Gt extends c{static get TextVerticalPosition(){return{TOP:1,BOTTOM:2}}static get TextJustification(){return{LEFT:1,CENTER:2,RIGHT:3}}constructor(t){super(),this.setAttribute("type","StaveLine"),this.notes=t,this.text="",this.font={family:"Arial",size:10,weight:""},this.render_options={padding_left:4,padding_right:3,line_width:1,line_dash:null,rounded_end:!0,color:null,draw_start_arrow:!1,draw_end_arrow:!1,arrowhead_length:10,arrowhead_angle:Math.PI/8,text_position_vertical:Gt.TextVerticalPosition.TOP,text_justification:Gt.TextJustification.CENTER},this.setNotes(t)}setFont(t){return this.font=t,this}setText(t){return this.text=t,this}setNotes(t){if(!t.first_note&&!t.last_note)throw new i.RuntimeError("BadArguments","Notes needs to have either first_note or last_note set.");if(t.first_indices||(t.first_indices=[0]),t.last_indices||(t.last_indices=[0]),t.first_indices.length!==t.last_indices.length)throw new i.RuntimeError("BadArguments","Connected notes must have similar index sizes");return this.first_note=t.first_note,this.first_indices=t.first_indices,this.last_note=t.last_note,this.last_indices=t.last_indices,this}applyLineStyle(){const t=this.checkContext(),e=this.render_options;e.line_dash&&t.setLineDash(e.line_dash),e.line_width&&t.setLineWidth(e.line_width),e.rounded_end?t.setLineCap("round"):t.setLineCap("square")}applyFontStyle(){const t=this.checkContext();this.font&&t.setFont(this.font.family,this.font.size,this.font.weight),this.render_options.color&&(t.setStrokeStyle(this.render_options.color),t.setFillStyle(this.render_options.color))}draw(){const t=this.checkContext();this.setRendered();const e=this.first_note,n=this.last_note,i=this.render_options;let s,r;t.save(),this.applyLineStyle(),this.first_indices.forEach((o,a)=>{const c=this.last_indices[a];s=e.getModifierStartXY(2,o),r=n.getModifierStartXY(1,c);const l=s.y>r.y;s.x+=e.getMetrics().modRightPx+i.padding_left,r.x-=n.getMetrics().modLeftPx+i.padding_right;const u=e.getGlyph().getWidth();e.getKeyProps()[o].displaced&&1===e.getStemDirection()&&(s.x+=u+i.padding_left),n.getKeyProps()[c].displaced&&-1===n.getStemDirection()&&(r.x-=u+i.padding_right),s.y+=l?-3:1,r.y+=l?2:0,function(t,e,n,i){const s=i.draw_start_arrow&&i.draw_end_arrow,r=e.x,o=e.y,a=n.x,c=n.y,l=Math.sqrt((a-r)*(a-r)+(c-o)*(c-o)),u=(l-i.arrowhead_length/3)/l;let h,d,f,p;i.draw_end_arrow||s?(h=Math.round(r+(a-r)*u),d=Math.round(o+(c-o)*u)):(h=a,d=c),i.draw_start_arrow||s?(f=r+(a-r)*(1-u),p=o+(c-o)*(1-u)):(f=r,p=o),i.color&&(t.setStrokeStyle(i.color),t.setFillStyle(i.color)),t.beginPath(),t.moveTo(f,p),t.lineTo(h,d),t.stroke(),t.closePath();const m=Math.atan2(c-o,a-r),g=Math.abs(i.arrowhead_length/Math.cos(i.arrowhead_angle));let b,v,y,S,x,_;(i.draw_end_arrow||s)&&(b=m+Math.PI+i.arrowhead_angle,y=a+Math.cos(b)*g,S=c+Math.sin(b)*g,v=m+Math.PI-i.arrowhead_angle,x=a+Math.cos(v)*g,_=c+Math.sin(v)*g,jt(t,y,S,a,c,x,_)),(i.draw_start_arrow||s)&&(b=m+i.arrowhead_angle,y=r+Math.cos(b)*g,S=o+Math.sin(b)*g,v=m-i.arrowhead_angle,x=r+Math.cos(v)*g,_=o+Math.sin(v)*g,jt(t,y,S,r,o,x,_))}(t,s,r,this.render_options)}),t.restore();const o=t.measureText(this.text).width,a=i.text_justification;let c,l=0;a===Gt.TextJustification.LEFT?l=s.x:a===Gt.TextJustification.CENTER?l=(r.x-s.x)/2+s.x-o/2:a===Gt.TextJustification.RIGHT&&(l=r.x-o);const u=i.text_position_vertical;return u===Gt.TextVerticalPosition.TOP?c=e.getStave().getYForTopText():u===Gt.TextVerticalPosition.BOTTOM&&(c=e.getStave().getYForBottomText(p.TEXT_HEIGHT_OFFSET_HACK)),t.save(),this.applyFontStyle(),t.fillText(this.text,l,c),t.restore(),this}}function Wt(t,e,n,i,s){const r=$t.GLYPHS[t];new f(r.code,s).render(e,n+r.x_shift,i+r.y_shift)}class $t extends c{static get GLYPHS(){return{pedal_depress:{code:"v36",x_shift:-10,y_shift:0},pedal_release:{code:"v5d",x_shift:-2,y_shift:3}}}static get Styles(){return{TEXT:1,BRACKET:2,MIXED:3}}static get StylesString(){return{text:$t.Styles.TEXT,bracket:$t.Styles.BRACKET,mixed:$t.Styles.MIXED}}static createSustain(t){return new $t(t)}static createSostenuto(t){const e=new $t(t);return e.setStyle($t.Styles.MIXED),e.setCustomText("Sost. Ped."),e}static createUnaCorda(t){const e=new $t(t);return e.setStyle($t.Styles.TEXT),e.setCustomText("una corda","tre corda"),e}constructor(t){super(),this.setAttribute("type","PedalMarking"),this.notes=t,this.style=$t.TEXT,this.line=0,this.custom_depress_text="",this.custom_release_text="",this.font={family:"Times New Roman",size:12,weight:"italic bold"},this.render_options={bracket_height:10,text_margin_right:6,bracket_line_width:1,glyph_point_size:40,color:"black"}}setCustomText(t,e){return this.custom_depress_text=t||"",this.custom_release_text=e||"",this}setStyle(t){if(t<1&&t>3)throw new i.RERR("InvalidParameter","The style must be one found in PedalMarking.Styles");return this.style=t,this}setLine(t){return this.line=t,this}drawBracketed(){const t=this.context;let e,n,s=!1;const r=this;this.notes.forEach((o,a,c)=>{s=!s;const l=o.getAbsoluteX(),u=o.getStave().getYForBottomText(r.line+3);if(l<e)throw new i.RERR("InvalidConfiguration","The notes provided must be in order of ascending x positions");const h=c[a+1]===o,d=c[a-1]===o;let f=0;if(s)if(f=d?5:0,r.style!==$t.Styles.MIXED||d)t.beginPath(),t.moveTo(l,u-r.render_options.bracket_height),t.lineTo(l+f,u),t.stroke(),t.closePath();else if(r.custom_depress_text){const e=t.measureText(r.custom_depress_text).width;t.fillText(r.custom_depress_text,l-e/2,u),f=e/2+r.render_options.text_margin_right}else Wt("pedal_depress",t,l,u,r.render_options.glyph_point_size),f=20+r.render_options.text_margin_right;else f=h?-5:0,t.beginPath(),t.moveTo(e,n),t.lineTo(l+f,u),t.lineTo(l,u-r.render_options.bracket_height),t.stroke(),t.closePath();e=l+f,n=u})}drawText(){const t=this.context;let e=!1;const n=this,i=n.render_options.glyph_point_size;this.notes.forEach(s=>{e=!e;const r=s.getStave(),o=s.getAbsoluteX(),a=r.getYForBottomText(n.line+3);let c=0;e?n.custom_depress_text?(c=t.measureText(n.custom_depress_text).width,t.fillText(n.custom_depress_text,o-c/2,a)):Wt("pedal_depress",t,o,a,i):n.custom_release_text?(c=t.measureText(n.custom_release_text).width,t.fillText(n.custom_release_text,o-c/2,a)):Wt("pedal_release",t,o,a,i)})}draw(){const t=this.checkContext();this.setRendered(),t.save(),t.setStrokeStyle(this.render_options.color),t.setFillStyle(this.render_options.color),t.setFont(this.font.family,this.font.size,this.font.weight),function(...t){$t.DEBUG&&i.L("Vex.Flow.PedalMarking",t)}("Rendering Pedal Marking"),this.style===$t.Styles.BRACKET||this.style===$t.Styles.MIXED?(t.setLineWidth(this.render_options.bracket_line_width),this.drawBracketed()):this.style===$t.Styles.TEXT&&this.drawText(),t.restore()}}class zt extends c{static get Positions(){return{TOP:1,BOTTOM:-1}}static get PositionString(){return{top:zt.Positions.TOP,bottom:zt.Positions.BOTTOM}}constructor({start:t,stop:e,text:n="",superscript:i="",position:s=zt.Positions.TOP}){super(),this.setAttribute("type","TextBracket"),this.start=t,this.stop=e,this.text=n,this.superscript=i,this.position="string"==typeof s?zt.PositionString[s]:s,this.line=1,this.font={family:"Serif",size:15,weight:"italic"},this.render_options={dashed:!0,dash:[5],color:"black",line_width:1,show_bracket:!0,bracket_height:8,underline_superscript:!0}}applyStyle(t){return t.setFont(this.font.family,this.font.size,this.font.weight),t.setStrokeStyle(this.render_options.color),t.setFillStyle(this.render_options.color),t.setLineWidth(this.render_options.line_width),this}setDashed(t,e){return this.render_options.dashed=t,e&&(this.render_options.dash=e),this}setFont(t){return this.font={...this.font,...t},this}setLine(t){return this.line=t,this}draw(){const t=this.context;this.setRendered();let e=0;switch(this.position){case zt.Positions.TOP:e=this.start.getStave().getYForTopText(this.line);break;case zt.Positions.BOTTOM:e=this.start.getStave().getYForBottomText(this.line+p.TEXT_HEIGHT_OFFSET_HACK);break;default:throw new i.RERR("InvalidPosition",`The position ${this.position} is invalid`)}const n={x:this.start.getAbsoluteX(),y:e},s={x:this.stop.getAbsoluteX(),y:e};!function(...t){zt.DEBUG&&i.L("Vex.Flow.TextBracket",t)}("Rendering TextBracket: start:",n,"stop:",s,"y:",e);const r=this.render_options.bracket_height*this.position;t.save(),this.applyStyle(t),t.fillText(this.text,n.x,n.y);const o=t.measureText(this.text).width,a=t.measureText("M").width,c=n.y-a/2.5;t.setFont(this.font.family,this.font.size/1.4,this.font.weight),t.fillText(this.superscript,n.x+o+1,c);const l=t.measureText(this.superscript).width,u=t.measureText("M").width;let h=n.x,d=c;const f=s.x+this.stop.getGlyph().getWidth();this.position===zt.Positions.TOP?(h+=o+l+5,d-=u/2.7):this.position===zt.Positions.BOTTOM&&(d+=u/2.7,h+=o+2,this.render_options.underline_superscript||(h+=l)),this.render_options.dashed?(S.drawDashedLine(t,h,d,f,d,this.render_options.dash),this.render_options.show_bracket&&S.drawDashedLine(t,f,d+1*this.position,f,d+r,this.render_options.dash)):(t.beginPath(),t.moveTo(h,d),t.lineTo(f,d),this.render_options.show_bracket&&t.lineTo(f,d+r),t.stroke(),t.closePath()),t.restore()}}class Ht extends L{constructor(t=ft.type.SINGLE){super({duration:"b"}),this.setAttribute("type","BarNote"),this.metrics={widths:{}};const e=ft.type;this.metrics.widths={[e.SINGLE]:8,[e.DOUBLE]:12,[e.END]:15,[e.REPEAT_BEGIN]:14,[e.REPEAT_END]:14,[e.REPEAT_BOTH]:18,[e.NONE]:0},this.ignore_ticks=!0,this.setType(t)}getType(){return this.type}setType(t){return this.type="string"==typeof t?ft.typeString[t]:t,this.setWidth(this.metrics.widths[this.type]),this}getBoundingBox(){return super.getBoundingBox()}addToModifierContext(){return this}preFormat(){return this.setPreFormatted(!0),this}draw(){if(this.checkContext(),!this.stave)throw new i.RERR("NoStave","Can't draw without a stave.");!function(...t){Ht.DEBUG&&i.L("Vex.Flow.BarNote",t)}("Rendering bar line at: ",this.getAbsoluteX());const t=new ft(this.type);t.setX(this.getAbsoluteX()),t.draw(this.stave),this.setRendered()}}class Ut extends k{constructor(t){if(!t)throw new i.RuntimeError("BadArguments","Ghost note must have valid initialization data to identify duration.");let e;if("string"==typeof t)e={duration:t};else{if("object"!=typeof t)throw new i.RuntimeError("BadArguments","Ghost note must have valid initialization data to identify duration.");e=t}super(e),this.setAttribute("type","GhostNote"),this.setWidth(0)}isRest(){return!0}setStave(t){super.setStave(t)}addToModifierContext(){return this}preFormat(){return this.setPreFormatted(!0),this}draw(){if(!this.stave)throw new i.RERR("NoStave","Can't draw without a stave.");this.setRendered();for(let t=0;t<this.modifiers.length;++t){const e=this.modifiers[t];e.setContext(this.context),e.drawWithStyle()}}}class Yt extends R{static get CATEGORY(){return"tremolo"}static get YOFFSETSTEMUP(){return-9}static get YOFFSETSTEMDOWN(){return-21}static get XOFFSETSTEMUP(){return 6}static get XOFFSETSTEMDOWN(){return-2}constructor(t){super(),this.setAttribute("type","Tremolo"),this.num=t,this.note=null,this.index=null,this.position=R.Position.CENTER,this.code="v74"}getCategory(){return Yt.CATEGORY}draw(){if(this.checkContext(),!this.note||null==this.index)throw new i.RERR("NoAttachedNote","Can't draw Tremolo without a note and index.");this.setRendered();const t=this.note.getStemDirection();this.y_spacing=4*t;let e=this.note.getModifierStartXY(this.position,this.index).x,n=this.note.stem.getExtents().topY;const s="gracenotes"===this.note.getCategory()?kt.SCALE:1;n+=t<0?Yt.YOFFSETSTEMDOWN*s:Yt.YOFFSETSTEMUP*s,this.font={family:"Arial",size:16*s,weight:""},this.render_options={font_scale:35*s,stroke_px:3,stroke_spacing:10*s},e+=t<0?Yt.XOFFSETSTEMDOWN:Yt.XOFFSETSTEMUP;for(let i=0;i<this.num;++i)f.renderGlyph(this.context,e,n,this.render_options.font_scale,this.code),n+=this.y_spacing}}class Xt extends L{constructor(t){super(t),this.setAttribute("type","Crescendo"),this.decrescendo=!1,this.line=t.line||0,this.height=15,i.Merge(this.render_options,{extend_left:0,extend_right:0,y_shift:0})}setLine(t){return this.line=t,this}setHeight(t){return this.height=t,this}setDecrescendo(t){return this.decrescendo=t,this}preFormat(){return this.preFormatted=!0,this}draw(){this.checkContext(),this.setRendered();const t=this.getTickContext(),e=nt.getNextContext(t),n=this.getAbsoluteX(),s=e?e.getX():this.stave.x+this.stave.width,r=this.stave.getYForLine(this.line+-3)+1;!function(...t){Xt.DEBUG&&i.L("Vex.Flow.Crescendo",t)}("Drawing ",this.decrescendo?"decrescendo ":"crescendo ",this.height,"x",n-s),function(t,e){const n=e.begin_x,i=e.end_x,s=e.y,r=e.height/2;t.beginPath(),e.reverse?(t.moveTo(n,s-r),t.lineTo(i,s),t.lineTo(n,s+r)):(t.moveTo(i,s-r),t.lineTo(n,s),t.lineTo(i,s+r)),t.stroke(),t.closePath()}(this.context,{begin_x:n-this.render_options.extend_left,end_x:s+this.render_options.extend_right,y:r+this.render_options.y_shift,height:this.height,reverse:this.decrescendo})}}const Kt=i.MakeException("ParserError");function qt(t){return void 0!==t.matchedString?t.matchedString:t.results?qt(t.results):1===t.length?qt(t[0]):0===t.length?null:t.map(qt)}class Zt{constructor(t){this.grammar=t}parse(t){this.line=t,this.pos=0,this.errorPos=-1;const e=this.expect(this.grammar.begin());return e.errorPos=this.errorPos,e}matchFail(t){-1===this.errorPos&&(this.errorPos=this.pos),this.pos=t}matchSuccess(){this.errorPos=-1}matchToken(t,e=!1){const n=e?new RegExp("^(("+t+"))"):new RegExp("^(("+t+")\\s*)"),i=this.line.slice(this.pos).match(n);return null!==i?{success:!0,matchedString:i[2],incrementPos:i[1].length,pos:this.pos}:{success:!1,pos:this.pos}}expectOne(t,e=!1){const n=[],i=this.pos;let s=!0,r=!1;e=!0===e||!0===t.maybe;for(let c=0;c<t.expect.length;c++){const e=t.expect[c],i=this.pos,o=this.expect(e);if(o.success){if(n.push(o),r=!0,t.or)break}else if(s=!1,!t.or){this.pos=i;break}}const o=t.or&&r||s,a=o||!0===e;return e&&!o&&(this.pos=i),a?this.matchSuccess():this.matchFail(i),{success:a,results:n,numMatches:o?1:0}}expectOneOrMore(t,e=!1){const n=[],i=this.pos;let s=0,r=!0;do{const e=this.expectOne(t);e.success?(s++,n.push(e.results)):r=!1}while(r);const o=s>0||!0===e;return!e||s>0||(this.pos=i),o?this.matchSuccess():this.matchFail(i),{success:o,results:n,numMatches:s}}expectZeroOrMore(t){return this.expectOneOrMore(t,!0)}expect(t){let e;if(function(...t){Zt.DEBUG&&i.L("Vex.Flow.Parser",t)}("Evaluating rules:",t),!t)throw new Kt("Invalid Rule: "+t,t);const n=t.bind(this.grammar)();if(n.token)e=this.matchToken(n.token,!0===n.noSpace),e.success&&(this.pos+=e.incrementPos);else{if(!n.expect)throw new Kt("Bad grammar! No `token` or `expect` property",n);e=n.oneOrMore?this.expectOneOrMore(n):n.zeroOrMore?this.expectZeroOrMore(n):this.expectOne(n)}return e.matches=[],e.results&&e.results.forEach(t=>e.matches.push(qt(t))),n.run&&e.success&&n.run(e),e}}function Jt(...t){se.DEBUG&&i.L("Vex.Flow.EasyScore",t)}const Qt=i.MakeException("EasyScoreError");class te{constructor(t){this.builder=t}begin(){return this.LINE}LINE(){return{expect:[this.PIECE,this.PIECES,this.EOL]}}PIECE(){return{expect:[this.CHORDORNOTE,this.PARAMS],run:()=>this.builder.commitPiece()}}PIECES(){return{expect:[this.COMMA,this.PIECE],zeroOrMore:!0}}PARAMS(){return{expect:[this.DURATION,this.TYPE,this.DOTS,this.OPTS]}}CHORDORNOTE(){return{expect:[this.CHORD,this.SINGLENOTE],or:!0}}CHORD(){return{expect:[this.LPAREN,this.NOTES,this.RPAREN],run:t=>this.builder.addChord(t.matches[1])}}NOTES(){return{expect:[this.NOTE],oneOrMore:!0}}NOTE(){return{expect:[this.NOTENAME,this.ACCIDENTAL,this.OCTAVE]}}SINGLENOTE(){return{expect:[this.NOTENAME,this.ACCIDENTAL,this.OCTAVE],run:t=>this.builder.addSingleNote(t.matches[0],t.matches[1],t.matches[2])}}ACCIDENTAL(){return{expect:[this.ACCIDENTALS],maybe:!0}}DOTS(){return{expect:[this.DOT],zeroOrMore:!0,run:t=>this.builder.setNoteDots(t.matches[0])}}TYPE(){return{expect:[this.SLASH,this.MAYBESLASH,this.TYPES],maybe:!0,run:t=>this.builder.setNoteType(t.matches[2])}}DURATION(){return{expect:[this.SLASH,this.DURATIONS],maybe:!0,run:t=>this.builder.setNoteDuration(t.matches[1])}}OPTS(){return{expect:[this.LBRACKET,this.KEYVAL,this.KEYVALS,this.RBRACKET],maybe:!0}}KEYVALS(){return{expect:[this.COMMA,this.KEYVAL],zeroOrMore:!0}}KEYVAL(){return{expect:[this.KEY,this.EQUALS,this.VAL],run:t=>this.builder.addNoteOption(t.matches[0],t.matches[2].slice(1,-1))}}VAL(){return{expect:[this.SVAL,this.DVAL],or:!0}}KEY(){return{token:"[a-zA-Z][a-zA-Z0-9]*"}}DVAL(){return{token:'["][^"]*["]'}}SVAL(){return{token:"['][^']*[']"}}NOTENAME(){return{token:"[a-gA-G]"}}OCTAVE(){return{token:"[0-9]+"}}ACCIDENTALS(){return{token:"bbs|bb|bss|bs|b|db|d|##|#|n|\\+\\+-|\\+-|\\+\\+|\\+|k|o"}}DURATIONS(){return{token:"[0-9whq]+"}}TYPES(){return{token:"[rRsSxX]"}}LPAREN(){return{token:"[(]"}}RPAREN(){return{token:"[)]"}}COMMA(){return{token:"[,]"}}DOT(){return{token:"[.]"}}SLASH(){return{token:"[/]"}}MAYBESLASH(){return{token:"[/]?"}}EQUALS(){return{token:"[=]"}}LBRACKET(){return{token:"\\["}}RBRACKET(){return{token:"\\]"}}EOL(){return{token:"$"}}}class ee{constructor(t){this.factory=t,this.commitHooks=[],this.reset()}reset(t={}){this.options={stem:"auto",clef:"treble"},this.elements={notes:[],accidentals:[]},this.rollingDuration="8",this.resetPiece(),Object.assign(this.options,t)}getFactory(){return this.factory}getElements(){return this.elements}addCommitHook(t){this.commitHooks.push(t)}resetPiece(){Jt("resetPiece"),this.piece={chord:[],duration:this.rollingDuration,dots:0,type:void 0,options:{}}}setNoteDots(t){Jt("setNoteDots:",t),t&&(this.piece.dots=t.length)}setNoteDuration(t){Jt("setNoteDuration:",t),this.rollingDuration=this.piece.duration=t||this.rollingDuration}setNoteType(t){Jt("setNoteType:",t),t&&(this.piece.type=t)}addNoteOption(t,e){Jt("addNoteOption: key:",t,"value:",e),this.piece.options[t]=e}addNote(t,e,n){Jt("addNote:",t,e,n),this.piece.chord.push({key:t,accid:e,octave:n})}addSingleNote(t,e,n){Jt("addSingleNote:",t,e,n),this.addNote(t,e,n)}addChord(t){Jt("startChord"),"object"!=typeof t[0]?this.addSingleNote(t[0]):t.forEach(t=>{t&&this.addNote(...t)}),Jt("endChord")}commitPiece(){Jt("commitPiece");const{factory:t}=this;if(!t)return;const e={...this.options,...this.piece.options},{stem:n,clef:i}=e,s="auto"===n.toLowerCase(),r=s||"up"!==n.toLowerCase()?V.STEM_DOWN:V.STEM_UP,{chord:o,duration:a,dots:c,type:l}=this.piece,u=o.map(t=>t.key+"/"+t.octave),h=t.StaveNote({keys:u,duration:a,dots:c,type:l,clef:i,auto_stem:s});s||h.setStemDirection(r);const d=o.map(t=>t.accid||null);d.forEach((e,n)=>{e&&h.addAccidental(n,t.Accidental({type:e}))});for(let f=0;f<c;f++)h.addDotToAll();this.commitHooks.forEach(t=>t(e,h,this)),this.elements.notes.push(h),this.elements.accidentals.concat(d),this.resetPiece()}}function ne({id:t},e){void 0!==t&&e.setAttribute("id",t)}function ie(t,e){t.class&&t.class.split(/\s*,\s*/).forEach(t=>e.addClass(t))}class se{constructor(t={}){this.setOptions(t),this.defaults={clef:"treble",time:"4/4",stem:"auto"}}set(t){return Object.assign(this.defaults,t),this}setOptions(t){return this.options={factory:null,builder:null,commitHooks:[ne,ie,et.easyScoreHook],throwOnError:!1,...t},this.factory=this.options.factory,this.builder=this.options.builder||new ee(this.factory),this.grammar=new te(this.builder),this.parser=new Zt(this.grammar),this.options.commitHooks.forEach(t=>this.addCommitHook(t)),this}setContext(t){return this.factory&&this.factory.setContext(t),this}parse(t,e={}){this.builder.reset(e);const n=this.parser.parse(t);if(!n.success&&this.options.throwOnError)throw new Qt("Error parsing line: "+t,n);return n}beam(t,e={}){return this.factory.Beam({notes:t,options:e}),t}tuplet(t,e={}){return this.factory.Tuplet({notes:t,options:e}),t}notes(t,e={}){return e={clef:this.defaults.clef,stem:this.defaults.stem,...e},this.parse(t,e),this.builder.getElements().notes}voice(t,e){return e={time:this.defaults.time,...e},this.factory.Voice(e).addTickables(t)}addCommitHook(t){return this.builder.addCommitHook(t)}}const re=i.MakeException("FactoryError");function oe(t={},e){const n=e.options;return(t=Object.assign(e,t)).options=Object.assign(n,t.options),t}class ae{constructor(t){!function(...t){ae.DEBUG&&i.L("Vex.Flow.Factory",t)}("New factory: ",t);const e={stave:{space:10},renderer:{context:null,elementId:"",backend:S.Backends.SVG,width:500,height:200,background:"#FFF"},font:{face:"Arial",point:10,style:""}};this.options=e,this.setOptions(t)}static newFromElementId(t,e=500,n=200){return new ae({renderer:{elementId:t,width:e,height:n}})}reset(){this.renderQ=[],this.systems=[],this.staves=[],this.voices=[],this.stave=null}getOptions(){return this.options}setOptions(t){for(const e of["stave","renderer","font"])Object.assign(this.options[e],t[e]);(null!==this.options.renderer.elementId||this.options.renderer.context)&&this.initRenderer(),this.reset()}initRenderer(){const{elementId:t,backend:e,width:n,height:i,background:s}=this.options.renderer;if(""===t)throw new re("HTML DOM element not set in Factory");this.context=S.buildContext(t,e,n,i,s)}getContext(){return this.context}setContext(t){return this.context=t,this}getStave(){return this.stave}getVoices(){return this.voices}space(t){return this.options.stave.space*t}Stave(t){t=oe(t,{x:0,y:0,width:this.options.renderer.width-this.space(1),options:{spacing_between_lines_px:this.options.stave.space}});const e=new wt(t.x,t.y,t.width,t.options);return this.staves.push(e),e.setContext(this.context),this.stave=e,e}TabStave(t){t=oe(t,{x:0,y:0,width:this.options.renderer.width-this.space(1),options:{spacing_between_lines_px:1.3*this.options.stave.space}});const e=new Et(t.x,t.y,t.width,t.options);return this.staves.push(e),e.setContext(this.context),this.stave=e,e}StaveNote(t){const e=new V(t);return this.stave&&e.setStave(this.stave),e.setContext(this.context),this.renderQ.push(e),e}GhostNote(t){const e=new Ut(t);return this.stave&&e.setStave(this.stave),e.setContext(this.context),this.renderQ.push(e),e}TextNote(t){const e=new bt(t);return this.stave&&e.setStave(this.stave),e.setContext(this.context),this.renderQ.push(e),e}BarNote(t){t=oe(t,{type:"single",options:{}});const e=new Ht(t.type);return this.stave&&e.setStave(this.stave),e.setContext(this.context),this.renderQ.push(e),e}ClefNote(t){t=oe(t,{type:"treble",options:{size:"default"}});const e=new At(t.type,t.options.size,t.options.annotation);return this.stave&&e.setStave(this.stave),e.setContext(this.context),this.renderQ.push(e),e}TimeSigNote(t){t=oe(t,{time:"4/4",options:{}});const e=new Lt(t.time);return this.stave&&e.setStave(this.stave),e.setContext(this.context),this.renderQ.push(e),e}KeySigNote(t){const e=new It(t.key,t.cancelKey,t.alterKey);return this.stave&&e.setStave(this.stave),e.setContext(this.context),this.renderQ.push(e),e}TabNote(t){const e=new Tt(t);return this.stave&&e.setStave(this.stave),e.setContext(this.context),this.renderQ.push(e),e}GraceNote(t){const e=new kt(t);return this.stave&&e.setStave(this.stave),e.setContext(this.context),e}GraceNoteGroup(t){const e=new U(t.notes,t.slur);return e.setContext(this.context),e}Accidental(t){t=oe(t,{type:null,options:{}});const e=new W(t.type);return e.setContext(this.context),e}Annotation(t){t=oe(t,{text:"p",vJustify:"below",hJustify:"center",fontFamily:"Times",fontSize:14,fontWeight:"bold italic",options:{}});const e=new st(t.text);return e.setJustification(t.hJustify),e.setVerticalJustification(t.vJustify),e.setFont(t.fontFamily,t.fontSize,t.fontWeight),e.setContext(this.context),e}Articulation(t){t=oe(t,{type:"a.",position:"above",options:{}});const e=new et(t.type);return e.setPosition(t.position),e.setContext(this.context),e}TextDynamics(t){t=oe(t,{text:"p",duration:"q",dots:0,line:0,options:{}});const e=new Ft({text:t.text,line:t.line,duration:t.duration,dots:t.dots});return this.stave&&e.setStave(this.stave),e.setContext(this.context),this.renderQ.push(e),e}Fingering(t){t=oe(t,{number:"0",position:"left",options:{}});const e=new B(t.number);return e.setPosition(t.position),e.setContext(this.context),e}StringNumber(t){t=oe(t,{number:"0",position:"left",options:{}});const e=new X(t.number);return e.setPosition(t.position),e.setContext(this.context),e}TickContext(){return(new nt).setContext(this.context)}ModifierContext(){return new ct}MultiMeasureRest(t){const e=new Pt(t.number_of_measures,t);return e.setContext(this.context),this.renderQ.push(e),e}Voice(t){t=oe(t,{time:"4/4",options:{}});const e=new M(t.time);return this.voices.push(e),e}StaveConnector(t){t=oe(t,{top_stave:null,bottom_stave:null,type:"double",options:{}});const e=new A(t.top_stave,t.bottom_stave);return e.setType(t.type).setContext(this.context),this.renderQ.push(e),e}Formatter(){return new ht}Tuplet(t){t=oe(t,{notes:[],options:{}});const e=new _(t.notes,t.options).setContext(this.context);return this.renderQ.push(e),e}Beam(t){t=oe(t,{notes:[],options:{autoStem:!1,secondaryBeamBreaks:[]}});const e=new C(t.notes,t.options.autoStem).setContext(this.context);return e.breakSecondaryAt(t.options.secondaryBeamBreaks),this.renderQ.push(e),e}Curve(t){t=oe(t,{from:null,to:null,options:{}});const e=new Vt(t.from,t.to,t.options).setContext(this.context);return this.renderQ.push(e),e}StaveTie(t){t=oe(t,{from:null,to:null,first_indices:[0],last_indices:[0],text:null,options:{direction:void 0}});const e=new z({first_note:t.from,last_note:t.to,first_indices:t.first_indices,last_indices:t.last_indices},t.text);return t.options.direction&&e.setDirection(t.options.direction),e.setContext(this.context),this.renderQ.push(e),e}StaveLine(t){t=oe(t,{from:null,to:null,first_indices:[0],last_indices:[0],options:{}});const e=new Gt({first_note:t.from,last_note:t.to,first_indices:t.first_indices,last_indices:t.last_indices});return t.options.text&&e.setText(t.options.text),t.options.font&&e.setFont(t.options.font),e.setContext(this.context),this.renderQ.push(e),e}VibratoBracket(t){t=oe(t,{from:null,to:null,options:{harsh:!1}});const e=new Ct({start:t.from,stop:t.to});return t.options.line&&e.setLine(t.options.line),t.options.harsh&&e.setHarsh(t.options.harsh),e.setContext(this.context),this.renderQ.push(e),e}TextBracket(t){t=oe(t,{from:null,to:null,text:"",options:{superscript:"",position:1}});const e=new zt({start:t.from,stop:t.to,text:t.text,superscript:t.options.superscript,position:t.options.position});return t.options.line&&e.setLine(t.options.line),t.options.font&&e.setFont(t.options.font),e.setContext(this.context),this.renderQ.push(e),e}System(t={}){t.factory=this;const e=new le(t).setContext(this.context);return this.systems.push(e),e}EasyScore(t={}){return t.factory=this,new se(t)}PedalMarking(t={}){t=oe(t,{notes:[],options:{style:"mixed"}});const e=new $t(t.notes);return e.setStyle($t.StylesString[t.options.style]),e.setContext(this.context),this.renderQ.push(e),e}NoteSubGroup(t={}){t=oe(t,{notes:[],options:{}});const e=new $(t.notes);return e.setContext(this.context),e}draw(){this.systems.forEach(t=>t.setContext(this.context).format()),this.staves.forEach(t=>t.setContext(this.context).draw()),this.voices.forEach(t=>t.setContext(this.context).draw()),this.renderQ.forEach(t=>{t.isRendered()||t.setContext(this.context).draw()}),this.systems.forEach(t=>t.setContext(this.context).draw()),this.reset()}}function ce(t,e){const n=e.options;return(t=Object.assign(e,t)).options=Object.assign(n,t.options),t}class le extends c{constructor(t={}){super(),this.setAttribute("type","System"),this.setOptions(t),this.parts=[]}setOptions(t={}){this.options=ce(t,{x:10,y:10,width:500,connector:null,spaceBetweenStaves:12,factory:null,debugFormatter:!1,formatIterations:0,options:{}}),this.factory=this.options.factory||new ae({renderer:{el:null}})}setContext(t){return super.setContext(t),this.factory.setContext(t),this}addConnector(t="double"){return this.connector=this.factory.StaveConnector({top_stave:this.parts[0].stave,bottom_stave:this.parts[this.parts.length-1].stave,type:t}),this.connector}addStave(t){return(t=ce(t,{stave:null,voices:[],spaceAbove:0,spaceBelow:0,debugNoteMetrics:!1,options:{left_bar:!1}})).stave||(t.stave=this.factory.Stave({x:this.options.x,y:this.options.y,width:this.options.width,options:t.options})),t.voices.forEach(e=>e.setContext(this.context).setStave(t.stave).getTickables().forEach(e=>e.setStave(t.stave))),this.parts.push(t),t.stave}format(){const t=new ht;this.formatter=t;let e=this.options.y,n=0,i=[];const s=[];this.parts.forEach(r=>{e+=r.stave.space(r.spaceAbove),r.stave.setY(e),t.joinVoices(r.voices),e+=r.stave.space(r.spaceBelow),e+=r.stave.space(this.options.spaceBetweenStaves),r.debugNoteMetrics&&(s.push({y:e,voice:r.voices[0]}),e+=15),i=i.concat(r.voices),n=Math.max(n,r.stave.getNoteStartX())}),this.parts.forEach(t=>t.stave.setNoteStartX(n));const r=this.options.width-(n-this.options.x)-L.STAVEPADDING;t.format(i,r);for(let o=0;o<this.options.formatIterations;o++)t.tune();this.startX=n,this.debugNoteMetricsYs=s,this.lastY=e}draw(){const t=this.checkContext();this.setRendered(),this.options.debugFormatter&&ht.plotDebugging(t,this.formatter,this.startX,this.options.y,this.lastY),this.debugNoteMetricsYs.forEach(e=>{e.voice.getTickables().forEach(n=>L.plotMetrics(t,n,e.y))})}}(i.Flow=p).Element=c,i.Flow.Fraction=s,i.Flow.Renderer=S,i.Flow.Formatter=ht,i.Flow.Music=F,i.Flow.Glyph=f,i.Flow.Stave=wt,i.Flow.StaveNote=V,i.Flow.StaveModifier=dt,i.Flow.StaveTempo=gt,i.Flow.Voice=M,i.Flow.Accidental=W,i.Flow.Beam=C,i.Flow.StaveTie=z,i.Flow.TabStave=Et,i.Flow.TabNote=Tt,i.Flow.Bend=rt,i.Flow.Vibrato=ot,i.Flow.VibratoBracket=Ct,i.Flow.Note=L,i.Flow.ModifierContext=ct,i.Flow.MultiMeasureRest=Pt,i.Flow.TickContext=nt,i.Flow.Articulation=et,i.Flow.Annotation=st,i.Flow.Barline=ft,i.Flow.NoteHead=O,i.Flow.StaveConnector=A,i.Flow.ClefNote=At,i.Flow.KeySignature=St,i.Flow.KeySigNote=It,i.Flow.TimeSignature=xt,i.Flow.TimeSigNote=Lt,i.Flow.Stem=x,i.Flow.TabTie=H,i.Flow.Clef=yt,i.Flow.Dot=N,i.Flow.Modifier=R,i.Flow.TabSlide=Ot,i.Flow.Tuplet=_,i.Flow.GraceNote=kt,i.Flow.GraceTabNote=Rt,i.Flow.Tuning=Nt,i.Flow.KeyManager=class{constructor(t){this.music=new F,this.setKey(t)}setKey(t){return this.key=t,this.reset(),this}getKey(){return this.key}reset(){if(this.keyParts=this.music.getKeyParts(this.key),this.keyString=this.keyParts.root,this.keyParts.accidental&&(this.keyString+=this.keyParts.accidental),!F.scaleTypes[this.keyParts.type])throw new i.RERR("BadArguments","Unsupported key type: "+this.key);this.scale=this.music.getScaleTones(this.music.getNoteValue(this.keyString),F.scaleTypes[this.keyParts.type]),this.scaleMap={},this.scaleMapByValue={},this.originalScaleMapByValue={};const t=F.root_indices[this.keyParts.root];for(let e=0;e<F.roots.length;++e){const n=(t+e)%F.roots.length,i=F.roots[n],s=this.music.getRelativeNoteName(i,this.scale[e]);this.scaleMap[i]=s,this.scaleMapByValue[this.scale[e]]=s,this.originalScaleMapByValue[this.scale[e]]=s}return this}getAccidental(t){const e=this.music.getKeyParts(t).root,n=this.music.getNoteParts(this.scaleMap[e]);return{note:this.scaleMap[e],accidental:n.accidental}}selectNote(t){t=t.toLowerCase();const e=this.music.getNoteParts(t),n=this.scaleMap[e.root],i=this.music.getNoteParts(n);if(n===t)return{note:n,accidental:e.accidental,change:!1};const s=this.scaleMapByValue[this.music.getNoteValue(t)];if(null!=s)return{note:s,accidental:this.music.getNoteParts(s).accidental,change:!1};const r=this.originalScaleMapByValue[this.music.getNoteValue(t)];return null!=r?(this.scaleMap[i.root]=r,delete this.scaleMapByValue[this.music.getNoteValue(n)],this.scaleMapByValue[this.music.getNoteValue(t)]=r,{note:r,accidental:this.music.getNoteParts(r).accidental,change:!0}):i.root===t?(delete this.scaleMapByValue[this.music.getNoteValue(this.scaleMap[e.root])],this.scaleMapByValue[this.music.getNoteValue(i.root)]=i.root,this.scaleMap[i.root]=i.root,{note:i.root,accidental:null,change:!0}):(delete this.scaleMapByValue[this.music.getNoteValue(this.scaleMap[e.root])],this.scaleMapByValue[this.music.getNoteValue(t)]=t,delete this.scaleMap[i.root],this.scaleMap[i.root]=t,{note:t,accidental:e.accidental,change:!0})}},i.Flow.StaveHairpin=Dt,i.Flow.BoundingBox=u,i.Flow.Stroke=Y,i.Flow.TextNote=bt,i.Flow.Curve=Vt,i.Flow.TextDynamics=Ft,i.Flow.StaveLine=Gt,i.Flow.Ornament=it,i.Flow.PedalMarking=$t,i.Flow.TextBracket=zt,i.Flow.FretHandFinger=B,i.Flow.Repetition=pt,i.Flow.BarNote=Ht,i.Flow.GhostNote=Ut,i.Flow.NoteSubGroup=$,i.Flow.GraceNoteGroup=U,i.Flow.Tremolo=Yt,i.Flow.StringNumber=X,i.Flow.Crescendo=Xt,i.Flow.Volta=_t,i.Flow.Font=h,i.Flow.System=le,i.Flow.Factory=ae,i.Flow.Parser=Zt,i.Flow.EasyScore=se,i.Flow.Registry=a,e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=Object.prototype.hasOwnProperty;function s(t){return"function"==typeof t}function r(t){return void 0===t}function o(t){return"[object String]"===Object.prototype.toString.call(t)}e.has=function(t,e){return i.call(t,e)},e.defaultCompare=function(t,e){return t<e?-1:t===e?0:1},e.defaultEquals=function(t,e){return t===e},e.defaultToString=function(t){return null===t?"COLLECTION_NULL":r(t)?"COLLECTION_UNDEFINED":o(t)?"$s"+t:"$o"+t.toString()},e.makeString=function(t,n){if(void 0===n&&(n=","),null===t)return"COLLECTION_NULL";if(r(t))return"COLLECTION_UNDEFINED";if(o(t))return t.toString();var i="{",s=!0;for(var a in t)e.has(t,a)&&(s?s=!1:i+=n,i=i+a+":"+t[a]);return i+"}"},e.isFunction=s,e.isUndefined=r,e.isString=o,e.reverseCompareFunction=function(t){return r(t)||!s(t)?function(t,e){return t<e?1:t===e?0:-1}:function(e,n){return-1*t(e,n)}},e.compareToEquals=function(t){return function(e,n){return 0===t(e,n)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InvalidEnumArgumentException=e.ArgumentOutOfRangeException=e.MusicSheetReadingException=void 0,e.MusicSheetReadingException=class{constructor(t,e){this.message=t,e&&(this.message+=" "+e.toString())}},e.ArgumentOutOfRangeException=class{constructor(t){this.message=t}},e.InvalidEnumArgumentException=class{constructor(t){this.message=t}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StemDirectionType=e.ArticulationEnum=e.VoiceEntry=void 0;const i=n(0),s=n(36),r=n(2),o=n(46),a=n(2),c=n(19);class l{constructor(t,e,n,i=!1,s=!1,r=!1){this.notes=[],this.articulations=[],this.technicalInstructions=[],this.lyricsEntries=new c.Dictionary,this.wantedStemDirection=h.Undefined,this.stemDirectionXml=h.Undefined,this.stemDirection=h.Undefined,this.timestamp=t,this.parentVoice=e,this.parentSourceStaffEntry=n,this.isGrace=i,this.graceAfterMainNote=!1,this.graceNoteSlash=s,this.graceSlur=r}get ParentSourceStaffEntry(){return this.parentSourceStaffEntry}get ParentVoice(){return this.parentVoice}get Timestamp(){return this.timestamp}set Timestamp(t){this.timestamp=t}get Notes(){return this.notes}get IsGrace(){return this.isGrace}set IsGrace(t){this.isGrace=t}get GraceAfterMainNote(){return this.graceAfterMainNote}set GraceAfterMainNote(t){this.graceAfterMainNote=t}get GraceNoteSlash(){return this.graceNoteSlash}set GraceNoteSlash(t){this.graceNoteSlash=t}get GraceSlur(){return this.graceSlur}set GraceSlur(t){this.graceSlur=t}get Articulations(){return this.articulations}get TechnicalInstructions(){return this.technicalInstructions}get LyricsEntries(){return this.lyricsEntries}get Arpeggio(){return this.arpeggio}set Arpeggio(t){this.arpeggio=t}get OrnamentContainer(){return this.ornamentContainer}set OrnamentContainer(t){this.ornamentContainer=t}set WantedStemDirection(t){this.wantedStemDirection=t}get WantedStemDirection(){return this.wantedStemDirection}set StemDirectionXml(t){this.stemDirectionXml=t}get StemDirectionXml(){return this.stemDirectionXml}set StemDirection(t){this.stemDirection=t}get StemDirection(){return this.stemDirection}get StemColorXml(){return this.stemColorXml}set StemColorXml(t){this.stemColorXml=t}get StemColor(){return this.stemColor}set StemColor(t){this.stemColor=t}static isSupportedArticulation(t){switch(t){case u.accent:case u.strongaccent:case u.invertedstrongaccent:case u.staccato:case u.staccatissimo:case u.spiccato:case u.tenuto:case u.fermata:case u.invertedfermata:case u.breathmark:case u.caesura:case u.lefthandpizzicato:case u.naturalharmonic:case u.snappizzicato:case u.upbow:case u.downbow:case u.bend:return!0;default:return!1}}hasTie(){for(let t=0,e=this.Notes.length;t<e;++t)if(this.Notes[t].NoteTie)return!0;return!1}hasSlur(){for(let t=0,e=this.Notes.length;t<e;++t)if(this.Notes[t].NoteSlurs.length>0)return!0;return!1}isStaccato(){for(let t=0,e=this.Articulations.length;t<e;++t)if(this.Articulations[t]===u.staccato)return!0;return!1}isAccent(){for(let t=0,e=this.Articulations.length;t<e;++t){const e=this.Articulations[t];if(e===u.accent||e===u.strongaccent)return!0}return!1}getVerseNumberForLyricEntry(t){let e=1;return this.lyricsEntries.forEach((n,i)=>{t===i&&(e=n)}),e}createVoiceEntriesForOrnament(t,e){t||(t=this);const n=[];if(!t.ornamentContainer)return;const s=this.notes[0],r=s.Length,c=t.ParentVoice,l=t.Timestamp;let u=i.Fraction.createFromFraction(l);switch(t.ornamentContainer.GetOrnament){case o.OrnamentEnum.Trill:{const o=new i.Fraction(r.Numerator,8*r.Denominator),h=s.Pitch.getTransposedPitch(1);let d=e.getAlterationForPitch(h);t.OrnamentContainer.AccidentalAbove!==a.AccidentalEnum.NONE&&(d=t.ornamentContainer.AccidentalAbove);for(let t=0;t<8;t++)u=i.Fraction.plus(l,new i.Fraction(t*o.Numerator,o.Denominator)),t%2==0?this.createBaseVoiceEntry(u,o,c,s,n):this.createAlteratedVoiceEntry(u,o,c,s.SourceMeasure,h,d,n);break}case o.OrnamentEnum.Turn:{const t=new i.Fraction(r.Numerator,4*r.Denominator),o=s.Pitch.getTransposedPitch(-1),a=e.getAlterationForPitch(o),l=s.Pitch.getTransposedPitch(1),h=e.getAlterationForPitch(l);this.createAlteratedVoiceEntry(u,t,c,s.SourceMeasure,l,h,n),u.Add(t),this.createBaseVoiceEntry(u,t,c,s,n),u.Add(t),this.createAlteratedVoiceEntry(u,t,c,s.SourceMeasure,o,a,n),u.Add(t),this.createBaseVoiceEntry(u,t,c,s,n);break}case o.OrnamentEnum.InvertedTurn:{const t=new i.Fraction(r.Numerator,4*r.Denominator),o=s.Pitch.getTransposedPitch(-1),a=e.getAlterationForPitch(o),l=s.Pitch.getTransposedPitch(1),h=e.getAlterationForPitch(l);this.createAlteratedVoiceEntry(u,t,c,s.SourceMeasure,o,a,n),u.Add(t),this.createBaseVoiceEntry(u,t,c,s,n),u.Add(t),this.createAlteratedVoiceEntry(u,t,c,s.SourceMeasure,l,h,n),u.Add(t),this.createBaseVoiceEntry(u,t,c,s,n);break}case o.OrnamentEnum.DelayedTurn:{const t=new i.Fraction(r.Numerator,2*r.Denominator),o=s.Pitch.getTransposedPitch(-1),a=e.getAlterationForPitch(o),h=s.Pitch.getTransposedPitch(1),d=e.getAlterationForPitch(h);this.createBaseVoiceEntry(u,t,c,s,n),u=i.Fraction.plus(l,t),t.Denominator=8*r.Denominator,this.createAlteratedVoiceEntry(u,t,c,s.SourceMeasure,h,d,n),u.Add(t),this.createBaseVoiceEntry(u,t,c,s,n),u.Add(t),this.createAlteratedVoiceEntry(u,t,c,s.SourceMeasure,o,a,n),u.Add(t),this.createBaseVoiceEntry(u,t,c,s,n);break}case o.OrnamentEnum.DelayedInvertedTurn:{const t=new i.Fraction(r.Numerator,2*r.Denominator),o=s.Pitch.getTransposedPitch(-1),a=e.getAlterationForPitch(o),h=s.Pitch.getTransposedPitch(1),d=e.getAlterationForPitch(h);this.createBaseVoiceEntry(u,t,c,s,n),u=i.Fraction.plus(l,t),t.Denominator=8*r.Denominator,this.createAlteratedVoiceEntry(u,t,c,s.SourceMeasure,o,a,n),u.Add(t),this.createBaseVoiceEntry(u,t,c,s,n),u.Add(t),this.createAlteratedVoiceEntry(u,t,c,s.SourceMeasure,h,d,n),u.Add(t),this.createBaseVoiceEntry(u,t,c,s,n);break}case o.OrnamentEnum.Mordent:{const t=new i.Fraction(r.Numerator,4*r.Denominator),o=s.Pitch.getTransposedPitch(1),a=e.getAlterationForPitch(o);this.createBaseVoiceEntry(u,t,c,s,n),u.Add(t),this.createAlteratedVoiceEntry(u,t,c,s.SourceMeasure,o,a,n),t.Denominator=2*r.Denominator,u=i.Fraction.plus(l,t),this.createBaseVoiceEntry(u,t,c,s,n);break}case o.OrnamentEnum.InvertedMordent:{const t=new i.Fraction(r.Numerator,4*r.Denominator),o=s.Pitch.getTransposedPitch(-1),a=e.getAlterationForPitch(o);this.createBaseVoiceEntry(u,t,c,s,n),u.Add(t),this.createAlteratedVoiceEntry(u,t,c,s.SourceMeasure,o,a,n),t.Denominator=2*r.Denominator,u=i.Fraction.plus(l,t),this.createBaseVoiceEntry(u,t,c,s,n);break}default:throw new RangeError}return n}createBaseVoiceEntry(t,e,n,i,o){const a=new l(t,n,i.ParentStaffEntry),c=new r.Pitch(i.Pitch.FundamentalNote,i.Pitch.Octave,i.Pitch.Accidental),u=new s.Note(a,void 0,e,c,i.SourceMeasure);a.Notes.push(u),o.push(a)}createAlteratedVoiceEntry(t,e,n,i,o,a,c){const u=new l(t,n,void 0),h=new r.Pitch(o.FundamentalNote,o.Octave,a),d=new s.Note(u,void 0,e,h,i);u.Notes.push(d),c.push(u)}}var u,h;e.VoiceEntry=l,function(t){t[t.accent=0]="accent",t[t.strongaccent=1]="strongaccent",t[t.marcatoup=2]="marcatoup",t[t.marcatodown=3]="marcatodown",t[t.invertedstrongaccent=4]="invertedstrongaccent",t[t.staccato=5]="staccato",t[t.staccatissimo=6]="staccatissimo",t[t.spiccato=7]="spiccato",t[t.tenuto=8]="tenuto",t[t.fermata=9]="fermata",t[t.invertedfermata=10]="invertedfermata",t[t.breathmark=11]="breathmark",t[t.caesura=12]="caesura",t[t.lefthandpizzicato=13]="lefthandpizzicato",t[t.naturalharmonic=14]="naturalharmonic",t[t.snappizzicato=15]="snappizzicato",t[t.upbow=16]="upbow",t[t.downbow=17]="downbow",t[t.scoop=18]="scoop",t[t.plop=19]="plop",t[t.doit=20]="doit",t[t.falloff=21]="falloff",t[t.stress=22]="stress",t[t.unstress=23]="unstress",t[t.detachedlegato=24]="detachedlegato",t[t.otherarticulation=25]="otherarticulation",t[t.bend=26]="bend"}(u=e.ArticulationEnum||(e.ArticulationEnum={})),function(t){t[t.Undefined=-1]="Undefined",t[t.Up=0]="Up",t[t.Down=1]="Down",t[t.None=2]="None",t[t.Double=3]="Double"}(h=e.StemDirectionType||(e.StemDirectionType={}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Label=void 0;const i=n(8);e.Label=class{constructor(t="",e=i.TextAlignmentEnum.CenterBottom,n,s=!0){this.text=t,this.print=s,this.textAlignment=e,this.font=n,this.fontFamily=void 0}ToString(){return this.text}}},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.VexFlowConverter=void 0;const s=i(n(9)),r=n(7),o=n(2),a=n(17),c=n(16),l=n(2),u=n(2),h=n(23),d=n(20),f=n(84),p=n(22),m=i(n(1)),g=n(12),b=n(38),v=n(46),y=n(62),S=n(18),x=n(66),_=n(3);class w{static duration(t,e){const n=t.RealValue;return 2===n?"1/2":n>=1?"w":n<1&&n>=.5?e&&n>.5?"w":"h":n<.5&&n>=.25?e&&n>.25?"h":"q":n<.25&&n>=.125?e&&n>.125?"q":"8":n<.125&&n>=.0625?e&&n>.0625?"8":"16":n<.0625&&n>=.03125?e&&n>.03125?"16":"32":n<.03125&&n>=.015625?e&&n>.015625?"32":"64":e?"64":"128"}static pitch(t,e,n,i){let s=3;e&&(s=0,n.ClefType===r.ClefEnum.F&&(s=2),n.ClefType===r.ClefEnum.C&&(s=2));const a=u.NoteEnum[t.FundamentalNote].toLowerCase(),c=o.Pitch.accidentalVexflow(t.Accidental),l=t.Octave-n.OctaveOffset+s;let h="";return i&&(h=this.NoteHeadCode(i)),[a+"n/"+l+h,c,n]}static restToNotePitch(t,e){let n=t.Octave;switch(e){case r.ClefEnum.C:case r.ClefEnum.F:n+=2;break;case r.ClefEnum.G:}return new o.Pitch(t.FundamentalNote,n,l.AccidentalEnum.NONE)}static NoteHeadCode(t){const e=t.Filled?"2":"1";switch(t.Shape){case y.NoteHeadShape.NORMAL:return"";case y.NoteHeadShape.DIAMOND:return"/D"+e;case y.NoteHeadShape.TRIANGLE:return"/T"+e;case y.NoteHeadShape.X:return"/X"+e;case y.NoteHeadShape.CIRCLEX:return"/X3";case y.NoteHeadShape.RECTANGLE:return"/R"+e;case y.NoteHeadShape.SQUARE:return"/S"+e;case y.NoteHeadShape.SLASH:default:return""}}static GhostNote(t){return new s.default.Flow.GhostNote({duration:w.duration(t,!1)})}static StaveNote(t){var e,n,i,r,o,a,c,l,u,h;const d=t.notes.reverse(),f=t.parentStaffEntry.parentMeasure.parentSourceMeasure.Rules,p=d[0];let m=[];const b=[],v=p.graphicalNoteLength,x=void 0!==p.sourceNote.NoteTuplet;let _=w.duration(v,x);void 0!==p.sourceNote.TypeLength&&p.sourceNote.TypeLength!==v&&(_=w.duration(p.sourceNote.TypeLength,x));let E,T=void 0,C=p.numberOfDots,M=!1,P=0,A=!1,I=!1;for(const s of d){if(C<s.numberOfDots&&(C=s.numberOfDots),s.sourceNote.isRest()){if(I=!0,s.sourceNote.Pitch){m=[s.vfpitch[0]];break}{m=["b/4"];const t=null===(e=s.parentVoiceEntry)||void 0===e?void 0:e.parentVoiceEntry;if(t){const e=null===(n=s.parentVoiceEntry)||void 0===n?void 0:n.parentStaffEntry.parentMeasure.staffEntries;let u,h,d=-1;for(let n=0;n<e.length;n++)if((null===(i=e[n])||void 0===i?void 0:i.graphicalVoiceEntries[0].parentVoiceEntry)===t){d=n;break}if(d>=1&&e.length-1>=d+1&&(u=null===(o=null===(r=e[d-1])||void 0===r?void 0:r.graphicalVoiceEntries[0])||void 0===o?void 0:o.parentVoiceEntry,h=null===(c=null===(a=e[d+1])||void 0===a?void 0:a.graphicalVoiceEntries[0])||void 0===c?void 0:c.parentVoiceEntry,u&&h)){const t=u.Notes[0],e=h.Notes[0];if(null===(l=t.NoteBeam)||void 0===l?void 0:l.Notes.includes(e)){const t=u.Notes.last().Pitch,e=s.Clef();m=[w.pitch(w.restToNotePitch(t.getTransposedPitch(-2),e.ClefType),!1,e,void 0)[0]]}}}}if(s.parentVoiceEntry.parentStaffEntry.parentMeasure.parentSourceMeasure.Duration.RealValue<=v.RealValue&&(m=["d/5"],_="w",C=0,M=!0,P=f.WholeRestXShiftVexflow*S.unitInPixels),s.sourceNote.ParentStaff.Voices.length>1){let t=0;for(let e=0;e<s.sourceNote.ParentStaffEntry.VoiceEntries.length;e++)s.sourceNote.ParentStaffEntry.VoiceEntries[e].Notes[0].PrintObject&&t++;if(t>1)switch(null===(h=null===(u=s.sourceNote.ParentVoiceEntry)||void 0===u?void 0:u.ParentVoice)||void 0===h?void 0:h.VoiceId){case 1:m=["e/5"];break;case 2:m=["f/4"]}}break}s.sourceNote.Notehead&&s.sourceNote.Notehead.Shape===y.NoteHeadShape.SLASH&&(A=!0);const t=s.vfpitch;m.push(t[0]),b.push(t[1]),T||(T=w.Clef(t[2]).type)}for(let s=0,g=C;s<g;++s)_+="d";A&&(_+="s"),I&&(_+="r");const L={align_center:M,auto_stem:!0,clef:T,duration:_,keys:m,slash:t.parentVoiceEntry.GraceNoteSlash},O=t.notes[0].sourceNote;if(O.IsCueNote&&(L.glyph_font_scale=s.default.Flow.DEFAULT_NOTATION_FONT_SCALE*s.default.Flow.GraceNote.SCALE,L.stroke_px=s.default.Flow.GraceNote.LEDGER_LINE_OFFSET),E=t.parentVoiceEntry.IsGrace||t.notes[0].sourceNote.IsCueNote?new s.default.Flow.GraceNote(L):new s.default.Flow.StaveNote(L),(f.LedgerLineWidth||f.LedgerLineStrokeStyle)&&(E.ledgerLineStyle||(E.ledgerLineStyle={}),f.LedgerLineWidth&&(E.ledgerLineStyle.lineWidth=f.LedgerLineWidth),f.LedgerLineStrokeStyle&&(E.ledgerLineStyle.strokeStyle=f.LedgerLineStrokeStyle)),f.ColoringEnabled){const e=f.DefaultColorStem;let n=t.parentVoiceEntry.StemColor;!n&&e&&(n=e);const i={fillStyle:n,strokeStyle:n};n&&(t.parentVoiceEntry.StemColor=n,E.setStemStyle(i),E.flag&&f.ColorFlags&&E.setFlagStyle(i))}if(E.x_shift=P,t.parentVoiceEntry.IsGrace&&t.notes[0].sourceNote.NoteBeam&&(t.parentVoiceEntry.WantedStemDirection=t.notes[0].sourceNote.NoteBeam.Notes[0].ParentVoiceEntry.WantedStemDirection),t.parentVoiceEntry)switch(t.parentVoiceEntry.WantedStemDirection){case g.StemDirectionType.Up:E.setStemDirection(s.default.Flow.Stem.UP);break;case g.StemDirectionType.Down:E.setStemDirection(s.default.Flow.Stem.DOWN)}for(let g=0,y=d.length;g<y;g+=1){if(d[g].setIndex(E,g),b[g]){if("++"===b[g]){E.addAccidental(g,new s.default.Flow.Accidental("##")),E.addAccidental(g,new s.default.Flow.Accidental("#"));continue}if("bbs"===b[g]){E.addAccidental(g,new s.default.Flow.Accidental("bb")),E.addAccidental(g,new s.default.Flow.Accidental("b"));continue}E.addAccidental(g,new s.default.Flow.Accidental(b[g]))}const t=d[g].sourceNote.TremoloStrokes;t>0&&E.addModifier(g,new s.default.Flow.Tremolo(t))}if(.25===O.Length.RealValue&&O.Notehead&&!1===O.Notehead.Filled){const t=E.getKeyProps();for(let e=0;e<t.length;e++)t[e].code="v81"}for(let s=0,g=C;s<g;++s)E.addDotToAll();return E}static generateArticulations(t,e){if(!t||"GhostNote"===t.getAttribute("type"))return;let n=s.default.Flow.Modifier.Position.ABOVE;t.getStemDirection()===s.default.Flow.Stem.UP&&(n=s.default.Flow.Modifier.Position.BELOW);for(const i of e){let e=void 0;switch(i){case g.ArticulationEnum.accent:e=new s.default.Flow.Articulation("a>");break;case g.ArticulationEnum.downbow:e=new s.default.Flow.Articulation("am");break;case g.ArticulationEnum.fermata:e=new s.default.Flow.Articulation("a@a"),n=s.default.Flow.Modifier.Position.ABOVE;break;case g.ArticulationEnum.marcatodown:e=new s.default.Flow.Articulation("a|"),n=s.default.Flow.Modifier.Position.ABOVE;break;case g.ArticulationEnum.marcatoup:e=new s.default.Flow.Articulation("a^"),n=s.default.Flow.Modifier.Position.ABOVE;break;case g.ArticulationEnum.invertedfermata:e=new s.default.Flow.Articulation("a@u"),n=s.default.Flow.Modifier.Position.BELOW;break;case g.ArticulationEnum.lefthandpizzicato:e=new s.default.Flow.Articulation("a+");break;case g.ArticulationEnum.snappizzicato:e=new s.default.Flow.Articulation("ao");break;case g.ArticulationEnum.staccatissimo:e=new s.default.Flow.Articulation("av");break;case g.ArticulationEnum.staccato:e=new s.default.Flow.Articulation("a.");break;case g.ArticulationEnum.tenuto:e=new s.default.Flow.Articulation("a-");break;case g.ArticulationEnum.upbow:e=new s.default.Flow.Articulation("a|");break;case g.ArticulationEnum.strongaccent:e=new s.default.Flow.Articulation("a^")}e&&(e.setPosition(n),t.addModifier(0,e))}}static generateOrnaments(t,e){let n=s.default.Flow.Modifier.Position.ABOVE;e.placement===_.PlacementEnum.Below&&(n=s.default.Flow.Modifier.Position.BELOW);let i=void 0;switch(e.GetOrnament){case v.OrnamentEnum.DelayedInvertedTurn:i=new s.default.Flow.Ornament("turn_inverted"),i.setDelayed(!0);break;case v.OrnamentEnum.DelayedTurn:i=new s.default.Flow.Ornament("turn"),i.setDelayed(!0);break;case v.OrnamentEnum.InvertedMordent:i=new s.default.Flow.Ornament("mordent"),i.setDelayed(!1);break;case v.OrnamentEnum.InvertedTurn:i=new s.default.Flow.Ornament("turn_inverted"),i.setDelayed(!1);break;case v.OrnamentEnum.Mordent:i=new s.default.Flow.Ornament("mordent_inverted"),i.setDelayed(!1);break;case v.OrnamentEnum.Trill:i=new s.default.Flow.Ornament("tr"),i.setDelayed(!1);break;case v.OrnamentEnum.Turn:i=new s.default.Flow.Ornament("turn"),i.setDelayed(!1);break;default:return void m.default.warn("unhandled OrnamentEnum type: "+e.GetOrnament)}i&&(e.AccidentalBelow!==l.AccidentalEnum.NONE&&i.setLowerAccidental(o.Pitch.accidentalVexflow(e.AccidentalBelow)),e.AccidentalAbove!==l.AccidentalEnum.NONE&&i.setUpperAccidental(o.Pitch.accidentalVexflow(e.AccidentalAbove)),i.setPosition(n),t.addModifier(0,i))}static StrokeTypeFromArpeggioType(t){switch(t){case x.ArpeggioType.ARPEGGIO_DIRECTIONLESS:return s.default.Flow.Stroke.Type.ARPEGGIO_DIRECTIONLESS;case x.ArpeggioType.BRUSH_DOWN:return s.default.Flow.Stroke.Type.BRUSH_UP;case x.ArpeggioType.BRUSH_UP:return s.default.Flow.Stroke.Type.BRUSH_DOWN;case x.ArpeggioType.RASQUEDO_DOWN:return s.default.Flow.Stroke.Type.RASQUEDO_UP;case x.ArpeggioType.RASQUEDO_UP:return s.default.Flow.Stroke.Type.RASQUEDO_DOWN;case x.ArpeggioType.ROLL_DOWN:return s.default.Flow.Stroke.Type.ROLL_UP;case x.ArpeggioType.ROLL_UP:return s.default.Flow.Stroke.Type.ROLL_DOWN;default:return s.default.Flow.Stroke.Type.ARPEGGIO_DIRECTIONLESS}}static CreateTabNote(t){const e=[],n=t.notes.reverse(),i=[],r=t.notes[0].graphicalNoteLength,o=void 0!==t.notes[0].sourceNote.NoteTuplet;let a=w.duration(r,o),c=0,l=!1;for(const h of t.notes){const t=h.sourceNote,n={str:t.StringNumber,fret:t.FretNumber};e.push(n),t.BendArray&&t.BendArray.forEach((function(t){let e;const r=t.bendalter-n.fret;e=r>1?"Full":1===r?"1/2":"1/4","up"===t.direction?i.push({type:s.default.Flow.Bend.UP,text:e,width:10}):i.push({type:s.default.Flow.Bend.DOWN,text:e,width:10})})),t.VibratoStroke&&(l=!0),c<h.numberOfDots&&(c=h.numberOfDots)}for(let s=0,h=c;s<h;++s)a+="d";const u=new s.default.Flow.TabNote({duration:a,positions:e});for(let s=0,h=n.length;s<h;s+=1)n[s].setIndex(u,s);return i.forEach((function(t){t.type===s.default.Flow.Bend.UP?u.addModifier(new s.default.Flow.Bend(t.text,!1)):u.addModifier(new s.default.Flow.Bend(t.text,!0))})),l&&u.addModifier(new s.default.Flow.Vibrato),u}static Clef(t,e="default"){let n,i;switch("default"!==e&&"small"!==e&&(m.default.warn(`Invalid VexFlow clef size "${e}" specified. Using "default".`),e="default"),t.ClefType){case r.ClefEnum.G:switch(t.Line){case 1:n="french";break;case 2:n="treble";break;default:n="treble",m.default.error(`Clef ${r.ClefEnum[t.ClefType]} on line ${t.Line} not supported by VexFlow. Using default value "${n}".`)}break;case r.ClefEnum.F:switch(t.Line){case 4:n="bass";break;case 3:n="baritone-f";break;case 5:n="subbass";break;default:n="bass",m.default.error(`Clef ${r.ClefEnum[t.ClefType]} on line ${t.Line} not supported by VexFlow. Using default value "${n}".`)}break;case r.ClefEnum.C:switch(t.Line){case 3:n="alto";break;case 4:n="tenor";break;case 1:n="soprano";break;case 2:n="mezzo-soprano";break;default:n="alto",m.default.error(`Clef ${r.ClefEnum[t.ClefType]} on line ${t.Line} not supported by VexFlow. Using default value "${n}".`)}break;case r.ClefEnum.percussion:n="percussion";break;case r.ClefEnum.TAB:n="treble"}return 1===t.OctaveOffset&&"bass"!==n?i="8va":-1===t.OctaveOffset&&(i="8vb"),{type:n,size:e,annotation:i}}static TimeSignature(t){let e;switch(t.SymbolEnum){case a.RhythmSymbolEnum.NONE:e=t.Rhythm.Numerator+"/"+t.Rhythm.Denominator;break;case a.RhythmSymbolEnum.COMMON:e="C";break;case a.RhythmSymbolEnum.CUT:e="C|"}return new s.default.Flow.TimeSignature(e)}static keySignature(t){if(!t)return;let e;switch(t.Mode){case c.KeyEnum.minor:e=w.minorMap[t.Key]+"m";break;case c.KeyEnum.major:case c.KeyEnum.none:e=w.majorMap[t.Key];break;default:e="C"}return e}static line(t,e){switch(t){case h.SystemLinesEnum.SingleThin:return e===b.SystemLinePosition.MeasureBegin?s.default.Flow.StaveConnector.type.SINGLE:s.default.Flow.StaveConnector.type.SINGLE_RIGHT;case h.SystemLinesEnum.DoubleThin:return s.default.Flow.StaveConnector.type.DOUBLE;case h.SystemLinesEnum.ThinBold:return s.default.Flow.StaveConnector.type.BOLD_DOUBLE_RIGHT;case h.SystemLinesEnum.BoldThinDots:return s.default.Flow.StaveConnector.type.BOLD_DOUBLE_LEFT;case h.SystemLinesEnum.DotsThinBold:case h.SystemLinesEnum.DotsBoldBoldDots:return s.default.Flow.StaveConnector.type.BOLD_DOUBLE_RIGHT;case h.SystemLinesEnum.None:return s.default.Flow.StaveConnector.type.NONE}}static font(t,e=d.FontStyles.Regular,n=f.Fonts.TimesNewRoman,i,s){let r="normal",o="normal",a=`'${i.DefaultFontFamily}'`;switch(e){case d.FontStyles.Bold:o="bold";break;case d.FontStyles.Italic:r="italic";break;case d.FontStyles.BoldItalic:r="italic",o="bold";break;case d.FontStyles.Underlined:}switch(n){case f.Fonts.Kokila:}return s&&"default"!==s&&(a=`'${s}'`),r+" "+o+" "+Math.floor(t)+"px "+a}static fontStyle(t){switch(t){case d.FontStyles.Bold:return"bold";case d.FontStyles.Italic:return"italic";case d.FontStyles.BoldItalic:return"italic bold";default:return"normal"}}static style(t){return p.OUTLINE_AND_FILL_STYLE_DICT.getValue(t)}}e.VexFlowConverter=w,w.majorMap={"-1":"F","-2":"Bb","-3":"Eb","-4":"Ab","-5":"Db","-6":"Gb","-7":"Cb","-8":"Fb",0:"C",1:"G",2:"D",3:"A",4:"E",5:"B",6:"F#",7:"C#",8:"G#"},w.minorMap={"-1":"D","-2":"G","-3":"C","-4":"F","-5":"Bb","-6":"Eb","-7":"Ab","-8":"Db",0:"A",1:"E",2:"B",3:"F#",4:"C#",5:"G#",6:"D#",7:"A#",8:"E#"}},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.MusicSheetCalculator=void 0;const s=n(57),r=n(0),o=n(36),a=n(7),c=n(30),l=n(12),u=n(92),h=n(5),d=n(31),f=n(24),p=n(8),m=n(16),g=n(39),b=n(4),v=n(94),y=n(95),S=n(7),x=i(n(1)),_=n(19),w=n(27),E=n(13),T=n(52),C=n(3),M=n(58),P=n(53),A=n(54),I=n(32),L=n(48),O=n(25),k=n(86);class R{constructor(){this.staffEntriesWithGraphicalTies=[],this.staffEntriesWithOrnaments=[],this.staffEntriesWithChordSymbols=[],this.staffLinesWithLyricWords=[],this.graphicalLyricWords=[]}static get TextMeasurer(){return R.textMeasurer}static set TextMeasurer(t){R.textMeasurer=t}get leadSheet(){return this.graphicalMusicSheet.LeadSheet}static setMeasuresMinStaffEntriesWidth(t,e){for(let n=0,i=t.length;n<i;++n){const i=t[n];i&&(i.minimumStaffEntriesWidth=e)}}initialize(t){this.graphicalMusicSheet=t,this.rules=t.ParentMusicSheet.Rules,this.prepareGraphicalMusicSheet()}prepareGraphicalMusicSheet(){const t=this.graphicalMusicSheet.ParentMusicSheet;this.staffEntriesWithGraphicalTies=[],this.staffEntriesWithOrnaments=[],this.staffEntriesWithChordSymbols=[],this.staffLinesWithLyricWords=[],this.graphicalMusicSheet.Initialize();const e=this.graphicalMusicSheet.MeasureList,n=this.createAccidentalCalculators(),i=this.graphicalMusicSheet.initializeActiveClefs(),s=[],r=t.getCompleteNumberOfStaves(),o=[];for(let a=0;a<r;a++)o.push(void 0);for(let a=0,l=t.SourceMeasures.length;a<l;++a){const r=t.SourceMeasures[a],c=this.createGraphicalMeasuresForSourceMeasure(r,n,s,o,i);if(e.push(c),r.multipleRestMeasures>0&&this.rules.RenderMultipleRestMeasures){r.isReducedToMultiRest=!0,r.multipleRestMeasureNumber=1;const n=r.multipleRestMeasures-1;a+=n;for(let i=1;i<=n;i++){const n=t.SourceMeasures[r.MeasureNumber-1+i];n.multipleRestMeasureNumber=i+1,n.isReducedToMultiRest=!0,e.push([void 0])}}}if(this.rules.AutoGenerateMutipleRestMeasuresFromRestMeasures&&this.rules.RenderMultipleRestMeasures){let r=void 0,a=0;for(let c=0,l=t.SourceMeasures.length;c<l;++c){const l=t.SourceMeasures[c];if(!l.isReducedToMultiRest&&l.canBeReducedToMultiRest())if(a>0){r.isReducedToMultiRest=!0,r.multipleRestMeasureNumber=1,a++,l.multipleRestMeasureNumber=a,l.isReducedToMultiRest=!0;for(let t=0;t<e[c].length;t++)e[c][t]=void 0}else r=l,a=1;else if(a>1){r.multipleRestMeasures=a;const t=this.createGraphicalMeasuresForSourceMeasure(r,n,s,o,i);e[r.measureListIndex]=t,a=0,r=void 0}else a=0,r=void 0}if(a>1){r.multipleRestMeasures=a,r.isReducedToMultiRest=!0;const t=this.createGraphicalMeasuresForSourceMeasure(r,n,s,o,i);e[r.measureListIndex]=t,a=0,r=void 0}}const c=i.map(t=>t.ClefType===a.ClefEnum.percussion);this.handleStaffEntries(c),this.calculateVerticalContainersList(),this.setIndicesToVerticalGraphicalContainers()}calculate(){this.musicSystems=[],this.clearSystemsAndMeasures(),this.clearRecreatedObjects(),this.createGraphicalTies(),this.calculateSheetLabelBoundingBoxes(),this.calculateXLayout(this.graphicalMusicSheet,this.maxInstrNameLabelLength()),this.graphicalMusicSheet.MusicPages.length=0,this.calculateMusicSystems(),s.GraphicalMusicSheet.transformRelativeToAbsolutePosition(this.graphicalMusicSheet)}calculateXLayout(t,e){if(this.graphicalMusicSheet.MeasureList.length>0){let t=this.graphicalMusicSheet.MeasureList[0],e=this.calculateMeasureXLayout(t);e=this.calculateMeasureWidthFromLyrics(t,e),R.setMeasuresMinStaffEntriesWidth(t,e);for(let n=1;n<this.graphicalMusicSheet.MeasureList.length;n++)t=this.graphicalMusicSheet.MeasureList[n],e=this.calculateMeasureXLayout(t),e=this.calculateMeasureWidthFromLyrics(t,e),R.setMeasuresMinStaffEntriesWidth(t,e)}}calculateMeasureWidthFromLyrics(t,e){throw new Error("abstract, not implemented")}formatMeasures(){throw new Error("abstract, not implemented")}calculateMeasureXLayout(t){throw new Error("abstract, not implemented")}initGraphicalMeasuresCreation(){throw new Error("abstract, not implemented")}handleBeam(t,e,n){throw new Error("abstract, not implemented")}handleTiedGraphicalNote(t,e,n,i,s,r,o,a){throw new Error("abstract, not implemented")}handleVoiceEntryLyrics(t,e,n){throw new Error("abstract, not implemented")}handleVoiceEntryOrnaments(t,e,n){throw new Error("abstract, not implemented")}handleVoiceEntryArticulations(t,e,n){throw new Error("abstract, not implemented")}handleVoiceEntryTechnicalInstructions(t,e,n){throw new Error("abstract, not implemented")}handleTuplet(t,e,n){throw new Error("abstract, not implemented")}layoutVoiceEntry(t,e,n,i){throw new Error("abstract, not implemented")}layoutStaffEntry(t){throw new Error("abstract, not implemented")}createGraphicalTie(t,e,n,i,s){throw new Error("abstract, not implemented")}updateStaffLineBorders(t){throw new Error("abstract, not implemented")}calculateMeasureNumberPlacement(t){const e=t.StaffLines[0];if(!e||!e.Measures[0])return void x.default.warn("calculateMeasureNumberPlacement: measure undefined for system.Id "+t.Id);let n=e.Measures[0].MeasureNumber,i=0;for(let s=0;s<e.Measures.length;s++){if(this.rules.RenderMeasureNumbersOnlyAtSystemStart&&s>0)return;const r=e.Measures[s];0!==r.MeasureNumber&&1!==r.MeasureNumber||(n=r.MeasureNumber),i=r!==e.Measures[0]&&this.rules.MeasureNumberLabelXOffset?this.rules.MeasureNumberLabelXOffset:0,(r.MeasureNumber===n||r.MeasureNumber>=n+this.rules.MeasureNumberLabelOffset)&&!r.parentSourceMeasure.ImplicitMeasure&&((1!==r.MeasureNumber||1===r.MeasureNumber&&r!==e.Measures[0])&&this.calculateSingleMeasureNumberPlacement(r,e,t,i),n=r.MeasureNumber)}}calculateSingleMeasureNumberPlacement(t,e,n,i=0){const s=t.MeasureNumber.toString(),r=new E.Label(s),o=new f.GraphicalLabel(r,this.rules.MeasureNumberLabelHeight,p.TextAlignmentEnum.LeftBottom,this.rules),a=e.SkyBottomLineCalculator;o.setLabelPositionAndShapeBorders(),o.PositionAndShape.Parent=n.PositionAndShape;const c=e.PositionAndShape.RelativePosition.x+t.PositionAndShape.RelativePosition.x-o.PositionAndShape.BorderMarginLeft+i;let l,u=c,d=c-o.PositionAndShape.BorderLeft+o.PositionAndShape.BorderRight;u-=e.PositionAndShape.RelativePosition.x,d-=e.PositionAndShape.RelativePosition.x;const m=u+.5,g=d-.5,b=a.getSkyLineMinInRange(m,g);if(t===e.Measures[0]){let t=0;if(n.GroupBrackets.length>0)for(const e of n.GroupBrackets)t=Math.min(t,e.PositionAndShape.BorderTop);l=Math.min(b,t)}else l=b;l=Math.min(0,l),o.PositionAndShape.RelativePosition=new h.PointF2D(c,l),a.updateSkyLineInRange(u,d,l+o.PositionAndShape.BorderMarginTop),n.MeasureNumberLabels.push(o)}layoutGraphicalTie(t,e,n){throw new Error("abstract, not implemented")}calculateSingleStaffLineLyricsPosition(t,e){let n=0,i=this.rules.StaffHeight;const s=[],r=t.SkyBottomLineCalculator;let o=t.Measures.length;for(let c=0;c<o;++c){const e=t.Measures[c],o=e.PositionAndShape.RelativePosition,a=e.staffEntries.length;for(let t=0;t<a;++t){const a=e.staffEntries[t];if(a.LyricsEntries.length>0){s.push(a),n=Math.max(n,a.LyricsEntries.length);const t=a.PositionAndShape.RelativePosition.x+o.x;let e=Number.MAX_VALUE,c=Number.MIN_VALUE;for(let n=0;n<a.LyricsEntries.length;n++){const i=a.LyricsEntries[n].GraphicalLabel;e=Math.min(e,t+i.PositionAndShape.BorderMarginLeft),c=Math.max(c,t+i.PositionAndShape.BorderMarginRight)}const l=r.getBottomLineMaxInRange(e,c);i=Math.max(i,l)}}}let a=0;o=s.length;for(const c of s)for(let t=0;t<c.LyricsEntries.length;t++){const n=c.LyricsEntries[t],s=n.GraphicalLabel,r=n.LyricsEntry.VerseNumber,o=e.indexOf(r);let l=i+this.rules.LyricsHeight+this.rules.VerticalBetweenLyricsDistance+this.rules.LyricsYOffsetToStaffHeight+(this.rules.VerticalBetweenLyricsDistance+this.rules.LyricsHeight)*o;this.leadSheet&&(l=3.4+(this.rules.VerticalBetweenLyricsDistance+this.rules.LyricsHeight)*o);const u=s.PositionAndShape.RelativePosition.x;s.PositionAndShape.RelativePosition=new h.PointF2D(u,l),a=Math.max(a,l)}if(s.length>0){const e=t.PositionAndShape.Size.width;let n=s[0].PositionAndShape.RelativePosition.x+s[0].PositionAndShape.BorderMarginLeft+s[0].parentMeasure.PositionAndShape.RelativePosition.x;n=n>e?e:n,r.updateBottomLineInRange(n,e,a)}return s}calculateLyricsExtendsAndDashes(t){for(let e=0,n=t.length;e<n;++e){const n=t[e];for(let t=0;t<n.LyricsEntries.length;t++){const e=n.LyricsEntries[t];e.ParentLyricWord&&e.ParentLyricWord.GraphicalLyricsEntries[e.ParentLyricWord.GraphicalLyricsEntries.length-1]!==e&&this.calculateSingleLyricWord(e),e.LyricsEntry.extend&&this.calculateLyricExtend(e)}}}calculateSingleOctaveShift(t,e,n,i){throw new Error("abstract, not implemented")}calculateWordRepetitionInstruction(t,e){throw new Error("abstract, not implemented")}calculateMoodAndUnknownExpression(t,e,n){var i;const s=t.AbsoluteTimestamp,r=this.graphicalMusicSheet.MeasureList[e];let o=new h.PointF2D;if(t.MoodList.length>0||t.UnknownList.length>0){let e="";for(let n=0,i=t.EntriesList.length;n<i;++n){const i=t.EntriesList[n];""!==i.prefix&&(e+=""===e?i.prefix:" "+i.prefix),e+=""===e?i.label:" "+i.label}const a=r[n].ParentStaffLine;if(!a)return void x.default.debug("MusicSheetCalculator.calculateMoodAndUnknownExpression: staffLine undefined. Returning.");o=this.getRelativePositionInStaffLineFromTimestamp(s,n,a,null==a?void 0:a.isPartOfMultiStaffInstrument()),Math.abs(o.x-0)<1e-4&&(o.x=r[n].beginInstructionsWidth+this.rules.RhythmRightMargin);const c=this.rules.UnknownTextHeight,l=t.getPlacementOfFirstEntry(),u=this.calculateLabel(a,o,e,t.getFontstyleOfFirstEntry(),l,c),h=new k.GraphicalUnknownExpression(a,u,l,null===(i=r[n])||void 0===i?void 0:i.parentSourceMeasure,t);a.AbstractExpressions.push(h)}}clearRecreatedObjects(){for(let t=0,e=this.staffEntriesWithGraphicalTies.length;t<e;++t)this.staffEntriesWithGraphicalTies[t].GraphicalTies.length=0;this.staffEntriesWithGraphicalTies.length=0}handleStaffEntryLink(t,e){x.default.debug("handleStaffEntryLink not implemented")}calculateMusicSystems(){if(!this.graphicalMusicSheet.MeasureList)return;const t=this.graphicalMusicSheet.MeasureList;if(!t)return;this.rules.MinMeasureToDrawIndex>t.length-1&&(x.default.debug("minimum measure to draw index out of range. resetting min measure index to limit."),this.rules.MinMeasureToDrawIndex=t.length-1);const e=[];for(let s=this.rules.MinMeasureToDrawIndex,r=t.length;s<r&&s<=this.rules.MaxMeasureToDrawIndex;++s){const n=[];for(let e=0,i=t[s].length;e<i;++e){const i=t[s][e];if((null==i?void 0:i.isVisible())&&(n.push(i),this.rules.ColoringEnabled))for(const t of i.staffEntries)for(const e of t.graphicalVoiceEntries)e.color()}e.push(n)}let n=0;for(let s=0,r=e.length;s<r;++s){const t=e[s];n=Math.max(t.length,n);break}if(0===n)return;const i=new u.MusicSystemBuilder;if(i.initialize(this.graphicalMusicSheet,e,n),this.musicSystems=i.buildMusicSystems(),this.formatMeasures(),this.leadSheet||(this.optimizeRestPlacement(),this.calculateStaffEntryArticulationMarks(),this.rules.RenderSlurs&&this.calculateTieCurves()),this.calculateSkyBottomLines(),this.calculateTupletNumbers(),this.rules.RenderMeasureNumbers)for(let s=0,r=this.musicSystems.length;s<r;++s){const t=this.musicSystems[s];this.calculateMeasureNumberPlacement(t)}!this.leadSheet&&this.rules.RenderSlurs&&this.calculateSlurs(),this.leadSheet||this.calculateOrnaments(),this.calculateChordSymbols(),this.leadSheet||(this.calculateDynamicExpressions(),this.calculateMoodAndUnknownExpressions(),this.calculateExpressionAlignements(),this.calculateOctaveShifts(),this.calculateWordRepetitionInstructions()),this.calculateRepetitionEndings(),this.leadSheet||this.calculateTempoExpressions(),this.calculateLyricsPosition();for(let s=0,r=this.musicSystems.length;s<r;++s){const t=this.musicSystems[s];for(let e=0,n=t.StaffLines.length;e<n;++e){const n=t.StaffLines[e];this.updateStaffLineBorders(n)}}i.calculateSystemYLayout(),this.calculateComments(),this.calculateMarkedAreas();for(let s=0,r=this.graphicalMusicSheet.MusicPages.length;s<r;++s){const t=this.graphicalMusicSheet.MusicPages[s];for(let n=0,i=t.MusicSystems.length;n<i;++n){const e=0===s&&0===n,i=t.MusicSystems[n];i.setMusicSystemLabelsYPosition(),this.leadSheet?i===i.Parent.MusicSystems[0]&&i.createSystemLeftLine(this.rules.SystemThinLineWidth,this.rules.SystemLabelsRightMargin,e):(i.setYPositionsToVerticalLineObjectsAndCreateLines(this.rules),i.createSystemLeftLine(this.rules.SystemThinLineWidth,this.rules.SystemLabelsRightMargin,e),i.createInstrumentBrackets(this.graphicalMusicSheet.ParentMusicSheet.Instruments,this.rules.StaffHeight),i.createGroupBrackets(this.graphicalMusicSheet.ParentMusicSheet.InstrumentalGroups,this.rules.StaffHeight,0),i.alignBeginInstructions()),i.calculateBorders(this.rules)}const e=t.MusicSystems[0].PositionAndShape.BorderTop;for(let n=0,i=t.MusicSystems.length;n<i;++n){const i=t.MusicSystems[n];i.PositionAndShape.RelativePosition=new h.PointF2D(i.PositionAndShape.RelativePosition.x,i.PositionAndShape.RelativePosition.y-e)}for(let n=0,i=t.MusicSystems.length;n<i;++n){const e=t.MusicSystems[n];for(let t=0,n=e.StaffLines.length;t<n;++t)e.StaffLines[t].addActivitySymbolClickArea()}t.PositionAndShape.calculateTopBottomBorders(),t===this.graphicalMusicSheet.MusicPages[0]&&this.calculatePageLabels(t),t.PositionAndShape.calculateTopBottomBorders()}}calculateMarkedAreas(){}calculateComments(){}calculateChordSymbols(){for(const t of this.musicSystems)for(const e of t.StaffLines){const t=e.SkyBottomLineCalculator;for(const n of e.Measures)for(const e of n.staffEntries)if(e.graphicalChordContainers&&0!==e.graphicalChordContainers.length)for(const n of e.graphicalChordContainers){const i=e.PositionAndShape,s=n.PositionAndShape,r=s.BorderMarginLeft+i.AbsolutePosition.x,o=s.BorderMarginRight+i.AbsolutePosition.x;t.updateSkyLineInRange(r,o,i.BorderMarginTop)}}}layoutMeasureWithWholeRest(t,e,n){}layoutBeams(t){}layoutArticulationMarks(t,e,n){}layoutOrnament(t,e,n){}calculateRestNotePlacementWithinGraphicalBeam(t,e,n,i,s){}calculateTupletNumbers(){}calculateSlurs(){}calculateDynamicExpressionsForMultiExpression(t,e,n){}calculateGraphicalVerbalContinuousDynamic(t,e){const n=t.Label,i=e.x+n.PositionAndShape.BorderMarginLeft,s=e.x+n.PositionAndShape.BorderMarginRight,r=t.ContinuousDynamic.Placement,o=t.ParentStaffLine.SkyBottomLineCalculator;let a;r===C.PlacementEnum.Below?(a=o.getBottomLineMaxInRange(i,s),n.PositionAndShape.RelativePosition=new h.PointF2D(e.x,a-n.PositionAndShape.BorderMarginTop)):(a=o.getSkyLineMinInRange(i,s),n.PositionAndShape.RelativePosition=new h.PointF2D(e.x,a-n.PositionAndShape.BorderMarginBottom))}calculateGraphicalContinuousDynamic(t,e){const n=t.ParentStaffLine.ParentStaff.idInMusicSheet,i=this.graphicalMusicSheet.getGraphicalMeasureFromSourceMeasureAndIndex(t.ContinuousDynamic.EndMultiExpression.SourceMeasureParent,n);if(!i)return void x.default.warn("MusicSheetCalculator.calculateGraphicalContinuousDynamic: No endMeasure found");t.EndMeasure=i;const s=t.ParentStaffLine,o=i.ParentStaffLine,a=o&&s===o;let c=!1;o?c=null==o?void 0:o.isPartOfMultiStaffInstrument():s&&(c=null==s?void 0:s.isPartOfMultiStaffInstrument());const l=r.Fraction.createFromFraction(t.ContinuousDynamic.EndMultiExpression.AbsoluteTimestamp),u=this.getRelativePositionInStaffLineFromTimestamp(l,n,o,c,0),h=s.ParentMusicSystem,d=h.StaffLines.indexOf(s),f=s.SkyBottomLineCalculator,p=t.ContinuousDynamic.Placement;let m=void 0;a&&u.x-e.x<this.rules.WedgeMinLength&&(u.x=e.x+this.rules.WedgeMinLength);const g=e.x,b=o.Measures[0].beginInstructionsWidth-this.rules.WedgeHorizontalMargin-2;let v=0,y=0;a?v=u.x:(v=s.PositionAndShape.Size.width,y=u.x,m=new L.GraphicalContinuousDynamicExpression(t.ContinuousDynamic,o,i.parentSourceMeasure),m.IsSplittedPart=!0,t.IsSplittedPart=!0);let S=0,_=0;if(p===C.PlacementEnum.Below){let e=0;if(d<h.StaffLines.length-1&&(e=d+1),e>d){const t=h.StaffLines[e].PositionAndShape.RelativePosition.y-s.PositionAndShape.RelativePosition.y-this.rules.StaffHeight;S=this.rules.StaffHeight+t/2}else S=this.rules.WedgePlacementBelowY;S-=this.rules.WedgeOpeningLength/2,a||(_=S);let n=f.getBottomLineMaxInRange(g,v);n>S&&(S=n);const i=!1;if(d<h.StaffLines.length-1){const n=s.findClosestStaffEntry(v),r=s.findClosestStaffEntry(g);if(r&&n&&(r.parentVerticalContainer,i)){const n=h.StaffLines[e],i=n.SkyBottomLineCalculator.getSkyLineMinInRange(g,v),r=n.PositionAndShape.RelativePosition.y-s.PositionAndShape.RelativePosition.y+i;S=r-this.rules.WedgeOpeningLength>this.rules.StaffHeight?r-this.rules.WedgeVerticalMargin:this.rules.StaffHeight+this.rules.WedgeOpeningLength,t.NotToBeRemoved=!0}}a||(n=o.SkyBottomLineCalculator.getBottomLineMaxInRange(b,y),n>_&&(_=n),_+=this.rules.WedgeOpeningLength/2,_+=this.rules.WedgeVerticalMargin),i||(S+=this.rules.WedgeOpeningLength/2,S+=this.rules.WedgeVerticalMargin)}else if(p===C.PlacementEnum.Above){if(1===s.ParentStaff.ParentInstrument.Staves.length)S=this.rules.WedgePlacementAboveY;else{let t=0;d>0&&(t=d-1);const e=h.StaffLines[t];S=-(s.PositionAndShape.RelativePosition.y-e.PositionAndShape.RelativePosition.y-this.rules.StaffHeight)/2}S+=this.rules.WedgeOpeningLength/2,a||(_=S);let t=f.getSkyLineMinInRange(g,v);t<S&&(S=t);const e=!1;if(s.ParentStaff.ParentInstrument.Staves.length>1&&d>0){const t=s.findClosestStaffEntry(g),n=s.findClosestStaffEntry(v);if(t&&n){t.parentVerticalContainer;const n=d-1;if(e){const t=h.StaffLines[n],e=t.SkyBottomLineCalculator.getBottomLineMaxInRange(g,v);S=(s.PositionAndShape.RelativePosition.y-t.PositionAndShape.RelativePosition.y-e-this.rules.StaffHeight)/2+this.rules.StaffHeight}}}a||(t=o.SkyBottomLineCalculator.getSkyLineMinInRange(b,y),t<_&&(_=t),_-=this.rules.WedgeOpeningLength/2),e||(S-=this.rules.WedgeOpeningLength/2,S-=this.rules.WedgeVerticalMargin),a||(_-=this.rules.WedgeVerticalMargin)}t.Lines.clear(),t.ContinuousDynamic.DynamicType===I.ContDynamicEnum.crescendo?a?(t.createCrescendoLines(g,v,S),t.calcPsi()):(t.createFirstHalfCrescendoLines(g,v,S),t.calcPsi(),m.createSecondHalfCrescendoLines(b,y,_),m.calcPsi()):t.ContinuousDynamic.DynamicType===I.ContDynamicEnum.diminuendo&&(a?(t.createDiminuendoLines(g,v,S),t.calcPsi()):(t.createFirstHalfDiminuendoLines(g,v,S),t.calcPsi(),m.createSecondHalfDiminuendoLines(b,y,_),m.calcPsi()))}calculateGraphicalInstantaneousDynamicExpression(t,e){const n=t.ParentStaffLine;if(!n)return;const i=e.x+t.PositionAndShape.BorderMarginLeft,s=e.x+t.PositionAndShape.BorderMarginRight,r=n.SkyBottomLineCalculator;let o=0;if(t.Placement===C.PlacementEnum.Above){const a=r.getSkyLineMinInRange(i,s);if(n.isPartOfMultiStaffInstrument()&&n.ParentStaff!==n.ParentStaff.ParentInstrument.Staves[0]){const e=n.ParentMusicSystem.StaffLines[n.ParentMusicSystem.StaffLines.indexOf(n)-1],i=n.PositionAndShape.RelativePosition.y-e.PositionAndShape.RelativePosition.y-this.rules.StaffHeight;o=a>-i/2?-i/2:a-t.PositionAndShape.BorderMarginBottom}else o=a-t.PositionAndShape.BorderMarginBottom;t.PositionAndShape.RelativePosition=new h.PointF2D(e.x,o)}else if(t.Placement===C.PlacementEnum.Below){const a=r.getBottomLineMaxInRange(i,s),c=n.ParentStaff.ParentInstrument.Staves[n.ParentStaff.ParentInstrument.Staves.length-1];if(n.isPartOfMultiStaffInstrument()&&n.ParentStaff!==c){const e=n.ParentMusicSystem.StaffLines[n.ParentMusicSystem.StaffLines.indexOf(n)+1].PositionAndShape.RelativePosition.y-n.PositionAndShape.RelativePosition.y-this.rules.StaffHeight;o=a+t.PositionAndShape.BorderMarginBottom<this.rules.StaffHeight+e/2?this.rules.StaffHeight+e/2:a-t.PositionAndShape.BorderMarginTop}else o=a-t.PositionAndShape.BorderMarginTop;t.PositionAndShape.RelativePosition=new h.PointF2D(e.x,o)}t.updateSkyBottomLine()}calcGraphicalRepetitionEndingsRecursively(t){}layoutSingleRepetitionEnding(t,e,n,i,s,r){}calculateLabel(t,e,n,i,s,r,o=p.TextAlignmentEnum.CenterBottom){const a=new E.Label(n,o);a.fontStyle=i,a.fontHeight=r;const c=new f.GraphicalLabel(a,r,a.textAlignment,this.rules,t.PositionAndShape);s===C.PlacementEnum.Below&&(c.Label.textAlignment=p.TextAlignmentEnum.LeftTop),c.setLabelPositionAndShapeBorders(),c.PositionAndShape.BorderMarginBottom*=1.1,c.PositionAndShape.BorderMarginTop*=1.1,c.PositionAndShape.BorderMarginLeft*=1.1,c.PositionAndShape.BorderMarginRight*=1.1;let l,u=e.x+c.PositionAndShape.BorderMarginLeft,d=e.x+c.PositionAndShape.BorderMarginRight;d>t.PositionAndShape.Size.width&&(d=t.PositionAndShape.Size.width-this.rules.MeasureRightMargin,u=d-c.PositionAndShape.MarginSize.width,e.x=u-c.PositionAndShape.BorderMarginLeft);const m=t.SkyBottomLineCalculator;return l=s===C.PlacementEnum.Below?m.getBottomLineMaxInRange(u,d):m.getSkyLineMinInRange(u,d),c.PositionAndShape.RelativePosition=new h.PointF2D(e.x,l),s===C.PlacementEnum.Below?m.updateBottomLineInRange(u,d,c.PositionAndShape.BorderMarginBottom+l):m.updateSkyLineInRange(u,d,c.PositionAndShape.BorderMarginTop+l),c}calculateTempoExpressionsForMultiTempoExpression(t,e,n){const i=r.Fraction.plus(t.AbsoluteTimestamp,e.Timestamp),s=this.graphicalMusicSheet.MeasureList[n];let o=new h.PointF2D;if(e.ContinuousTempo||e.InstantaneousTempo){if(this.rules.MinMeasureToDrawIndex>0)return;if(!s[0])return;let t=s[0].ParentStaffLine,n=s[0].PositionAndShape.RelativePosition.x,r=0;for(let e=0;e<s.length;e++)if(s[e].ParentStaffLine&&0!==s[e].ParentStaffLine.Measures.length&&s[e].ParentStaffLine.Measures.length>0){t=s[e].ParentStaffLine,n=s[e].PositionAndShape.RelativePosition.x,r=e;break}if(o=this.getRelativePositionInStaffLineFromTimestamp(i,r,t,t.isPartOfMultiStaffInstrument(),n),e.EntriesList.length>0&&e.EntriesList[0].Expression instanceof P.InstantaneousTempoExpression&&(e.EntriesList[0].Expression.Placement=C.PlacementEnum.Above,t.Measures[0].staffEntries.length>0&&0===Math.abs(o.x-t.Measures[0].staffEntries[0].PositionAndShape.RelativePosition.x)&&t.ParentMusicSystem===this.musicSystems[0])){const e=t.Measures[0].FirstInstructionStaffEntry;if(e){const t=e.GraphicalInstructions.last();o.x=t.PositionAndShape.RelativePosition.x}this.rules.CompactMode&&(o.x=t.PositionAndShape.RelativePosition.x+t.Measures[0].PositionAndShape.RelativePosition.x)}for(const i of e.EntriesList){let n=p.TextAlignmentEnum.CenterBottom;this.rules.CompactMode&&(n=p.TextAlignmentEnum.LeftBottom);const s=this.calculateLabel(t,o,i.label,e.getFontstyleOfFirstEntry(),i.Expression.Placement,this.rules.UnknownTextHeight,n);if(i.Expression instanceof P.InstantaneousTempoExpression){for(const e of t.AbstractExpressions)e instanceof M.GraphicalInstantaneousTempoExpression&&(e.SourceExpression.Label,i.Expression.Label);if(new M.GraphicalInstantaneousTempoExpression(i.Expression,s).ParentStaffLine||x.default.warn("Adding staffline didn't work"),this.rules.MetronomeMarksDrawn&&i.Expression.Enum===P.TempoEnum.metronomeMark){this.createMetronomeMark(i.Expression);continue}}else i.Expression,A.ContinuousTempoExpression}}}createMetronomeMark(t){throw new Error("abstract, not implemented")}graphicalMeasureCreatedCalculations(t){}clearSystemsAndMeasures(){for(let t=0,e=this.graphicalMusicSheet.MusicPages.length;t<e;++t){const e=this.graphicalMusicSheet.MusicPages[t];for(let t=0,n=e.MusicSystems.length;t<n;++t){const n=e.MusicSystems[t];for(let t=0,e=n.StaffLines.length;t<e;++t){const e=n.StaffLines[t];for(let t=0,n=e.Measures.length;t<n;++t){const n=e.Measures[t];if(n.FirstInstructionStaffEntry){const t=n.PositionAndShape.ChildElements.indexOf(n.FirstInstructionStaffEntry.PositionAndShape);t>-1&&n.PositionAndShape.ChildElements.splice(t,1),n.FirstInstructionStaffEntry=void 0,n.beginInstructionsWidth=0}if(n.LastInstructionStaffEntry){const t=n.PositionAndShape.ChildElements.indexOf(n.LastInstructionStaffEntry.PositionAndShape);t>-1&&n.PositionAndShape.ChildElements.splice(t,1),n.LastInstructionStaffEntry=void 0,n.endInstructionsWidth=0}}e.Measures=[],e.PositionAndShape.ChildElements=[]}n.StaffLines.length=0,n.PositionAndShape.ChildElements=[]}e.MusicSystems=[],e.PositionAndShape.ChildElements=[]}this.graphicalMusicSheet.MusicPages=[]}handleVoiceEntry(t,e,n,i,s,r,o,a,c,u,h){t.StemDirectionXml!==l.StemDirectionType.Undefined&&this.rules.SetWantedStemDirectionByXml&&void 0!==t.StemDirectionXml?t.WantedStemDirection=t.StemDirectionXml:this.calculateStemDirectionFromVoices(t);const d=e.findOrCreateGraphicalVoiceEntry(t);d.octaveShiftValue=a;const f=e.tabStaffEntry;let p;f&&(p=f.findOrCreateGraphicalVoiceEntry(t));for(let l=0,m=t.Notes.length;l<m;++l){const i=t.Notes[l];if(!i)continue;if(void 0!==h&&void 0!==h.Link&&void 0!==u&&u.indexOf(i)>-1)continue;let c;if(t.IsGrace?c=R.symbolFactory.createGraceNote(i,d,s,a):(c=R.symbolFactory.createNote(i,d,s,a,void 0),R.stafflineNoteCalculator.trackNote(c)),i.Pitch&&this.checkNoteForAccidental(c,n,s,a),this.resetYPositionForLeadSheet(c.PositionAndShape),e.addGraphicalNoteToListAtCorrectYPosition(d,c),c.PositionAndShape.calculateBoundingBox(),this.leadSheet||(void 0!==i.NoteBeam&&i.PrintObject&&this.handleBeam(c,i.NoteBeam,o),void 0!==i.NoteTuplet&&i.PrintObject&&this.handleTuplet(c,i.NoteTuplet,r)),p){const t=R.symbolFactory.createNote(i,p,s,a,void 0);f.addGraphicalNoteToListAtCorrectYPosition(p,t),t.PositionAndShape.calculateBoundingBox(),this.leadSheet||i.NoteTuplet&&this.handleTuplet(t,i.NoteTuplet,r)}}return t.Articulations.length>0&&this.handleVoiceEntryArticulations(t.Articulations,t,e),t.TechnicalInstructions.length>0&&this.handleVoiceEntryTechnicalInstructions(t.TechnicalInstructions,t,e),t.LyricsEntries.size()>0&&this.handleVoiceEntryLyrics(t,e,i),t.OrnamentContainer&&this.handleVoiceEntryOrnaments(t.OrnamentContainer,t,e),a}resetYPositionForLeadSheet(t){this.leadSheet&&(t.RelativePosition=new h.PointF2D(t.RelativePosition.x,0))}layoutVoiceEntries(t,e){if(t.PositionAndShape.RelativePosition=new h.PointF2D(0,0),!this.leadSheet)for(const n of t.graphicalVoiceEntries){const e=n.notes;if(0===e.length)continue;const i=e[0].sourceNote.ParentVoiceEntry,s=void 0!==e[0].sourceNote.Pitch;this.layoutVoiceEntry(i,e,t,s)}}maxInstrNameLabelLength(){var t;let e=0;for(const n of this.graphicalMusicSheet.ParentMusicSheet.Instruments)if((null===(t=n.NameLabel)||void 0===t?void 0:t.print)&&n.Voices.length>0&&n.Voices[0].Visible){let t=n.NameLabel;this.rules.RenderPartNames||(t=new E.Label("",t.textAlignment,t.font));const i=new f.GraphicalLabel(t,this.rules.InstrumentLabelTextHeight,p.TextAlignmentEnum.LeftCenter,this.rules);i.setLabelPositionAndShapeBorders(),e=Math.max(e,i.PositionAndShape.MarginSize.width)}return this.rules.RenderPartNames?e:0}calculateSheetLabelBoundingBoxes(){const t=this.graphicalMusicSheet.ParentMusicSheet,e=this.rules.DefaultColorTitle;if(void 0!==t.Title&&this.rules.RenderTitle){const n=new f.GraphicalLabel(t.Title,this.rules.SheetTitleHeight,p.TextAlignmentEnum.CenterBottom,this.rules);n.Label.colorDefault=e,this.graphicalMusicSheet.Title=n,n.setLabelPositionAndShapeBorders()}else this.rules.RenderTitle||(this.graphicalMusicSheet.Title=void 0);if(void 0!==t.Subtitle&&this.rules.RenderSubtitle){const n=new f.GraphicalLabel(t.Subtitle,this.rules.SheetSubtitleHeight,p.TextAlignmentEnum.CenterCenter,this.rules);n.Label.colorDefault=e,this.graphicalMusicSheet.Subtitle=n,n.setLabelPositionAndShapeBorders()}else this.rules.RenderSubtitle||(this.graphicalMusicSheet.Subtitle=void 0);if(void 0!==t.Composer&&this.rules.RenderComposer){const n=new f.GraphicalLabel(t.Composer,this.rules.SheetComposerHeight,p.TextAlignmentEnum.RightCenter,this.rules);n.Label.colorDefault=e,this.graphicalMusicSheet.Composer=n,n.setLabelPositionAndShapeBorders()}else this.rules.RenderComposer||(this.graphicalMusicSheet.Composer=void 0);if(void 0!==t.Lyricist&&this.rules.RenderLyricist){const n=new f.GraphicalLabel(t.Lyricist,this.rules.SheetAuthorHeight,p.TextAlignmentEnum.LeftCenter,this.rules);n.Label.colorDefault=e,this.graphicalMusicSheet.Lyricist=n,n.setLabelPositionAndShapeBorders()}else this.rules.RenderLyricist||(this.graphicalMusicSheet.Lyricist=void 0)}checkMeasuresForWholeRestNotes(){for(let t=0,e=this.musicSystems.length;t<e;++t){const e=this.musicSystems[t];for(let t=0,n=e.StaffLines.length;t<n;++t){const n=e.StaffLines[t];for(let t=0,e=n.Measures.length;t<e;++t){const e=n.Measures[t];if(1===e.staffEntries.length){const t=e.staffEntries[0];if(t.graphicalVoiceEntries.length>0&&1===t.graphicalVoiceEntries[0].notes.length){const n=t.graphicalVoiceEntries[0].notes[0];!n.sourceNote.Pitch&&new r.Fraction(1,2).lt(n.sourceNote.Length)&&this.layoutMeasureWithWholeRest(n,t,e)}}}}}}optimizeRestNotePlacement(t,e){if(0===t.graphicalVoiceEntries.length)return;const n=t.graphicalVoiceEntries[0].notes;if(0===n.length)return;const i=n[0],s=i.sourceNote.isRest();if(2===t.graphicalVoiceEntries.length){let e=!1;const n=t.graphicalVoiceEntries[1].notes;n.length>0&&(e=n[0].sourceNote.isRest()),s&&e?this.calculateTwoRestNotesPlacementWithCollisionDetection(t):(s||e)&&this.calculateRestNotePlacementWithCollisionDetectionFromGraphicalNote(t)}else if(s&&t!==e.staffEntries[0]&&t!==e.staffEntries[e.staffEntries.length-1]){const n=e.staffEntries.indexOf(t),s=e.staffEntries[n-1],r=e.staffEntries[n+1];if(1===s.graphicalVoiceEntries.length){const e=s.graphicalVoiceEntries[0].notes[0];if(void 0!==e.sourceNote.NoteBeam&&1===r.graphicalVoiceEntries.length){const n=r.graphicalVoiceEntries[0].notes[0];void 0!==n.sourceNote.NoteBeam&&e.sourceNote.NoteBeam===n.sourceNote.NoteBeam&&(this.calculateRestNotePlacementWithinGraphicalBeam(t,i,e,r,n),t.PositionAndShape.calculateBoundingBox())}}}}getRelativePositionInStaffLineFromTimestamp(t,e,n,i,s=0){let o=new h.PointF2D,a=void 0,c=void 0;const l=this.graphicalMusicSheet.VerticalGraphicalStaffEntryContainers.length,u=this.graphicalMusicSheet.GetInterpolatedIndexInVerticalContainers(t),d=Math.min(Math.floor(u),l-1),f=Math.min(Math.ceil(u),l-1);if(d<0||e<0)return o;if(a=this.getFirstLeftNotNullStaffEntryFromContainer(d,e,i),c=this.getFirstRightNotNullStaffEntryFromContainer(f,e,i),a&&c){let e=a.parentMeasure.PositionAndShape.RelativePosition.x;s>0&&(e=s);let i=a.PositionAndShape.RelativePosition.x+e,l=c.PositionAndShape.RelativePosition.x+c.parentMeasure.PositionAndShape.RelativePosition.x;s>0&&(l=c.PositionAndShape.RelativePosition.x+e);let u=0;if(a!==c){const e=a.getAbsoluteTimestamp(),n=c.getAbsoluteTimestamp();u=r.Fraction.minus(t,e).RealValue/r.Fraction.minus(n,e).RealValue}a.parentMeasure.ParentStaffLine!==c.parentMeasure.ParentStaffLine&&(a.parentMeasure.ParentStaffLine===n?l=n.PositionAndShape.Size.width:i=n.PositionAndShape.RelativePosition.x),o=new h.PointF2D(i+(l-i)*u,0)}return o}getRelativeXPositionFromTimestamp(t){const e=this.graphicalMusicSheet.VerticalGraphicalStaffEntryContainers.length,n=this.graphicalMusicSheet.GetInterpolatedIndexInVerticalContainers(t),i=Math.max(0,Math.min(Math.round(n),e-1)),s=this.graphicalMusicSheet.VerticalGraphicalStaffEntryContainers[i].getFirstNonNullStaffEntry();return s.PositionAndShape.RelativePosition.x+s.parentMeasure.PositionAndShape.RelativePosition.x}calculatePageLabels(t){var e,n;this.rules.RenderSingleHorizontalStaffline&&(t.PositionAndShape.BorderRight=t.PositionAndShape.Size.width,t.PositionAndShape.calculateBoundingBox(),this.graphicalMusicSheet.ParentMusicSheet.pageWidth=t.PositionAndShape.Size.width);let i=10;if(t.MusicSystems.length>0){const e=t.MusicSystems[0];i=e.PositionAndShape.RelativePosition.y+e.PositionAndShape.BorderTop}if(this.graphicalMusicSheet.Title){const e=this.graphicalMusicSheet.Title;e.PositionAndShape.Parent=t.PositionAndShape;const n=new h.PointF2D;n.x=this.graphicalMusicSheet.ParentMusicSheet.pageWidth/2,n.y=this.rules.TitleTopDistance+this.rules.SheetTitleHeight,e.PositionAndShape.RelativePosition=n,t.Labels.push(e)}if(this.graphicalMusicSheet.Subtitle){const e=this.graphicalMusicSheet.Subtitle;e.PositionAndShape.Parent=t.PositionAndShape;const n=new h.PointF2D;n.x=this.graphicalMusicSheet.ParentMusicSheet.pageWidth/2,n.y=this.rules.TitleTopDistance+this.rules.SheetTitleHeight+this.rules.SheetMinimumDistanceBetweenTitleAndSubtitle,e.PositionAndShape.RelativePosition=n,t.Labels.push(e)}const s=t.MusicSystems[0].StaffLines[0],r=s.SkyBottomLineCalculator,o=this.graphicalMusicSheet.Composer;if(o){o.PositionAndShape.Parent=t.PositionAndShape,o.setLabelPositionAndShapeBorders();const n=new h.PointF2D;if(n.x=this.graphicalMusicSheet.ParentMusicSheet.pageWidth-this.rules.PageRightMargin,n.y=i,o.TextLines&&1!==(null===(e=o.TextLines)||void 0===e?void 0:e.length)){const t=s.PositionAndShape.BorderMarginRight,e=t-o.PositionAndShape.Size.width,i=r.getSkyLineMinInRange(e,t);n.y+=i-o.PositionAndShape.BorderBottom,r.updateSkyLineInRange(e,t,i-o.PositionAndShape.MarginSize.height)}else n.y-=this.rules.SystemComposerDistance;o.PositionAndShape.RelativePosition=n,t.Labels.push(o)}const a=this.graphicalMusicSheet.Lyricist;if(a){a.PositionAndShape.Parent=t.PositionAndShape,a.setLabelPositionAndShapeBorders();const e=new h.PointF2D;if(e.x=this.rules.PageLeftMargin,e.y=i,a.TextLines&&1!==(null===(n=a.TextLines)||void 0===n?void 0:n.length)){const t=s.PositionAndShape.BorderMarginLeft-e.x,n=t+a.PositionAndShape.Size.width,i=r.getSkyLineMinInRange(t,n);e.y+=i-a.PositionAndShape.BorderBottom,r.updateSkyLineInRange(t,n,i-a.PositionAndShape.MarginSize.height)}else e.y-=this.rules.SystemComposerDistance;a.PositionAndShape.RelativePosition=e,t.Labels.push(a)}}createGraphicalTies(){for(let t=0;t<this.graphicalMusicSheet.ParentMusicSheet.SourceMeasures.length;t++){const e=this.graphicalMusicSheet.ParentMusicSheet.SourceMeasures[t];for(let n=0;n<e.CompleteNumberOfStaves;n++)for(let i=0;i<e.VerticalSourceStaffEntryContainers.length;i++){const s=e.VerticalSourceStaffEntryContainers[i].StaffEntries[n];if(s){const e=this.graphicalMusicSheet.findGraphicalStaffEntryFromMeasureList(n,t,s);for(let i=0,r=s.VoiceEntries.length;i<r;++i){const r=s.VoiceEntries[i];for(let i=0,s=r.Notes.length;i<s;++i){const s=r.Notes[i];if(s.NoteTie){const i=s.NoteTie;this.handleTie(i,e,n,t)}}}}}}}handleTie(t,e,n,i){let s=e,r=void 0,o=void 0,a=void 0;for(let c=1;c<t.Notes.length;c++)if(r=s.findTieGraphicalNoteFromNote(t.Notes[c-1]),o=this.graphicalMusicSheet.GetGraphicalFromSourceStaffEntry(t.Notes[c].ParentStaffEntry),o){if(a=o.findTieGraphicalNoteFromNote(t.Notes[c]),void 0!==r&&void 0!==a&&o){if(!r.sourceNote.PrintObject||!a.sourceNote.PrintObject)continue;const e=this.createGraphicalTie(t,s,o,r,a);s.GraphicalTies.push(e),this.staffEntriesWithGraphicalTies.indexOf(s)>=0&&this.staffEntriesWithGraphicalTies.push(s)}s=o}}createAccidentalCalculators(){const t=[],e=this.graphicalMusicSheet.ParentMusicSheet.getFirstSourceMeasure();if(e)for(let n=0;n<e.CompleteNumberOfStaves;n++){const i=new y.AccidentalCalculator;if(t.push(i),e.FirstInstructionsStaffEntries[n])for(let t=0,s=e.FirstInstructionsStaffEntries[n].Instructions.length;t<s;++t){const s=e.FirstInstructionsStaffEntries[n].Instructions[t];if(s instanceof m.KeyInstruction){const t=s;i.ActiveKeyInstruction=t}}}return t}calculateVerticalContainersList(){const t=this.graphicalMusicSheet.MeasureList[0].length;for(let e=0;e<this.graphicalMusicSheet.MeasureList.length;e++)for(let n=0;n<t;n++){const t=this.graphicalMusicSheet.MeasureList[e][n];if(t)for(let e=0,i=t.staffEntries.length;e<i;++e){const i=t.staffEntries[e],s=this.graphicalMusicSheet.getOrCreateVerticalContainer(i.getAbsoluteTimestamp());s&&(s.StaffEntries[n]=i,i.parentVerticalContainer=s)}}}setIndicesToVerticalGraphicalContainers(){for(let t=0;t<this.graphicalMusicSheet.VerticalGraphicalStaffEntryContainers.length;t++)this.graphicalMusicSheet.VerticalGraphicalStaffEntryContainers[t].Index=t}createGraphicalMeasuresForSourceMeasure(t,e,n,i,s){this.initGraphicalMeasuresCreation();const r=[],o=[],a=[],c=[];let l=!0;for(let u=0;u<t.CompleteNumberOfStaves;u++){const h=this.createGraphicalMeasure(t,a,o,e[u],s,i,n,u,c);l=l&&h.hasOnlyRests,r.push(h)}return t.allRests=l,t.VerticalMeasureList=r,r}createGraphicalMeasure(t,e,n,i,s,u,h,f,p){var g;const b=this.graphicalMusicSheet.ParentMusicSheet.getStaffFromIndex(f);let y=void 0;if(s[f].ClefType===a.ClefEnum.TAB?(b.isTab=!0,y=R.symbolFactory.createTabStaffMeasure(t,b)):y=t.multipleRestMeasures&&this.rules.RenderMultipleRestMeasures?R.symbolFactory.createMultiRestMeasure(t,b):R.symbolFactory.createGraphicalMeasure(t,b),y.hasError=t.getErrorInMeasure(f),t.FirstInstructionsStaffEntries[f])for(let r=0,o=t.FirstInstructionsStaffEntries[f].Instructions.length;r<o;++r){const e=t.FirstInstructionsStaffEntries[f].Instructions[r];if(e instanceof m.KeyInstruction){const t=m.KeyInstruction.copy(e);0!==this.graphicalMusicSheet.ParentMusicSheet.Transpose&&y.ParentStaff.ParentInstrument.MidiInstrumentId!==S.MidiInstrument.Percussion&&R.transposeCalculator&&R.transposeCalculator.transposeKey(t,this.graphicalMusicSheet.ParentMusicSheet.Transpose),i.ActiveKeyInstruction=t}}for(let o=0,a=t.StaffLinkedExpressions[f].length;o<a;++o){const e=t.StaffLinkedExpressions[f][o];if(e.OctaveShiftStart){const n=e.OctaveShiftStart;let i=null===(g=null==n?void 0:n.ParentEndMultiExpression)||void 0===g?void 0:g.AbsoluteTimestamp;(null==n?void 0:n.ParentEndMultiExpression)||(i=r.Fraction.plus(t.AbsoluteTimestamp,t.Duration)),u[f]=new v.OctaveShiftParams(n,null==e?void 0:e.AbsoluteTimestamp,i)}}for(let r=0;r<t.VerticalSourceStaffEntryContainers.length;r++){const o=t.VerticalSourceStaffEntryContainers[r].StaffEntries[f];if(o){for(let e=0,n=o.Instructions.length;e<n;++e){const t=o.Instructions[e];t instanceof a.ClefInstruction&&(s[f]=t)}const t=R.symbolFactory.createStaffEntry(o,y);r<y.staffEntries.length?y.addGraphicalStaffEntryAtTimestamp(t):y.addGraphicalStaffEntry(t);const l=[];o.Link&&(o.findLinkedNotes(l),this.handleStaffEntryLink(t,p));let d=c.OctaveEnum.NONE;u[f]&&u[f].getAbsoluteStartTimestamp.lte(o.AbsoluteTimestamp)&&o.AbsoluteTimestamp.lte(u[f].getAbsoluteEndTimestamp)&&(d=u[f].getOpenOctaveShift.Type);for(let r=0,a=o.VoiceEntries.length;r<a;++r){const a=o.VoiceEntries[r];d=this.handleVoiceEntry(a,t,i,h,s[f],e,n,d,f,l,o)}if(o.Instructions.length>0){const e=o.Instructions[0];R.symbolFactory.createInStaffClef(t,e)}o.ChordContainers&&o.ChordContainers.length>0&&(o.ParentStaff.ParentInstrument.HasChordSymbols=!0,R.symbolFactory.createChordSymbols(o,t,i.ActiveKeyInstruction,this.graphicalMusicSheet.ParentMusicSheet.Transpose))}}if(i.doCalculationsAtEndOfMeasure(),t.LastInstructionsStaffEntries[f]){const e=t.LastInstructionsStaffEntries[f];for(let t=0,n=e.Instructions.length;t<n;++t){const n=e.Instructions[t];n instanceof a.ClefInstruction&&(s[f]=n)}}for(let r=0,o=t.StaffLinkedExpressions[f].length;r<o;++r){const e=t.StaffLinkedExpressions[f][r];void 0!==e.OctaveShiftEnd&&void 0!==u[f]&&e.OctaveShiftEnd===u[f].getOpenOctaveShift&&(u[f]=void 0)}for(const r of y.staffEntries)for(const t of r.graphicalVoiceEntries)this.setBeamNotesWantedStemDirections(t.parentVoiceEntry);if(this.rules.FillEmptyMeasuresWithWholeRest>=1&&0===y.staffEntries.length){const e=new d.SourceStaffEntry(new T.VerticalSourceStaffEntryContainer(y.parentSourceMeasure,y.parentSourceMeasure.AbsoluteTimestamp,y.parentSourceMeasure.CompleteNumberOfStaves),b),n=new l.VoiceEntry(new r.Fraction(0,1),b.Voices[0],e),i=new o.Note(n,e,r.Fraction.createFromFraction(t.Duration),void 0,t);i.PrintObject=this.rules.FillEmptyMeasuresWithWholeRest===O.FillEmptyMeasuresWithWholeRests.YesVisible,n.Notes.push(i);const s=R.symbolFactory.createStaffEntry(e,y);y.addGraphicalStaffEntry(s),s.relInMeasureTimestamp=n.Timestamp;const u=R.symbolFactory.createVoiceEntry(n,s);s.graphicalVoiceEntries.push(u);const h=R.symbolFactory.createNote(i,u,new a.ClefInstruction,c.OctaveEnum.NONE,void 0);R.stafflineNoteCalculator.trackNote(h),u.notes.push(h)}y.hasOnlyRests=!0;for(const r of y.staffEntries)if(y.hasOnlyRests=r.hasOnlyRests(),!y.hasOnlyRests)break;return y}checkNoteForAccidental(t,e,n,i){let s=t.sourceNote.Pitch;const r=this.graphicalMusicSheet.ParentMusicSheet.Transpose;0!==r&&t.sourceNote.ParentStaffEntry.ParentStaff.ParentInstrument.MidiInstrumentId!==S.MidiInstrument.Percussion&&(s=t.Transpose(e.ActiveKeyInstruction,n,r,i)),t.sourceNote.halfTone=s.getHalfTone(),e.checkAccidental(t,s)}handleStaffEntries(t){for(let e=0,n=this.graphicalMusicSheet.MeasureList.length;e<n;++e){const n=this.graphicalMusicSheet.MeasureList[e];for(let e=0,i=n.length;e<i;++e){const i=n[e];if(i){void 0!==this.rules.PercussionOneLineCutoff&&0!==this.rules.PercussionOneLineCutoff&&t[e]&&(-1===this.rules.PercussionOneLineCutoff||R.stafflineNoteCalculator.getStafflineUniquePositionCount(e)<this.rules.PercussionOneLineCutoff)&&(i.ParentStaff.StafflineCount=1);for(const t of i.staffEntries)void 0!==t.parentMeasure&&t.graphicalVoiceEntries.length>0&&t.graphicalVoiceEntries[0].notes.length>0&&(this.layoutVoiceEntries(t,e),this.layoutStaffEntry(t));this.graphicalMeasureCreatedCalculations(i)}}}}calculateSkyBottomLines(){for(const t of this.musicSystems)for(const e of t.StaffLines)e.SkyBottomLineCalculator.calculateLines()}calculateExpressionAlignements(){}calculateStaffEntryArticulationMarks(){for(let t=0,e=this.musicSystems.length;t<e;++t){const e=this.musicSystems[t];for(let t=0,n=e.StaffLines.length;t<n;++t){const n=e.StaffLines[t];for(let t=0,e=n.Measures.length;t<e;++t){const e=n.Measures[t];for(let t=0,n=e.staffEntries.length;t<n;++t){const n=e.staffEntries[t];for(let t=0,e=n.sourceStaffEntry.VoiceEntries.length;t<e;++t){const e=n.sourceStaffEntry.VoiceEntries[t];e.Articulations.length>0&&this.layoutArticulationMarks(e.Articulations,e,n)}}}}}}calculateOrnaments(){for(let t=0,e=this.musicSystems.length;t<e;++t){const e=this.musicSystems[t];for(let t=0,n=e.StaffLines.length;t<n;++t){const n=e.StaffLines[t];for(let t=0,e=n.Measures.length;t<e;++t){const e=n.Measures[t];for(let t=0,n=e.staffEntries.length;t<n;++t){const n=e.staffEntries[t];for(let t=0,e=n.sourceStaffEntry.VoiceEntries.length;t<e;++t){const e=n.sourceStaffEntry.VoiceEntries[t];if(e.OrnamentContainer){if(e.hasTie()&&!n.relInMeasureTimestamp.Equals(e.Timestamp))continue;this.layoutOrnament(e.OrnamentContainer,e,n),-1===this.staffEntriesWithOrnaments.indexOf(n)&&this.staffEntriesWithOrnaments.push(n)}}}}}}}optimizeRestPlacement(){for(let t=0,e=this.musicSystems.length;t<e;++t){const e=this.musicSystems[t];for(let t=0,n=e.StaffLines.length;t<n;++t){const n=e.StaffLines[t];for(let t=0,e=n.Measures.length;t<e;++t){const e=n.Measures[t];for(let t=0,n=e.staffEntries.length;t<n;++t){const n=e.staffEntries[t];this.optimizeRestNotePlacement(n,e)}}}}}calculateTwoRestNotesPlacementWithCollisionDetection(t){const e=t.graphicalVoiceEntries[0].notes[0],n=t.graphicalVoiceEntries[1].notes[0];n.PositionAndShape.RelativePosition=new h.PointF2D(0,2.5),t.PositionAndShape.calculateAbsolutePositionsRecursiveWithoutTopelement(),e.PositionAndShape.computeNonOverlappingPositionWithMargin(t.PositionAndShape,b.ColDirEnum.Up,new h.PointF2D(0,n.PositionAndShape.RelativePosition.y));const i=e.PositionAndShape.RelativePosition;i.y-=1,e.PositionAndShape.RelativePosition=i,t.PositionAndShape.calculateBoundingBox()}calculateRestNotePlacementWithCollisionDetectionFromGraphicalNote(t){let e,n;t.graphicalVoiceEntries[0].notes[0].sourceNote.isRest()?(e=t.graphicalVoiceEntries[0].notes[0],n=t.graphicalVoiceEntries[1].notes):(n=t.graphicalVoiceEntries[0].notes,e=t.graphicalVoiceEntries[1].notes[0]);let i=!1;t.PositionAndShape.calculateAbsolutePositionsRecursiveWithoutTopelement();for(let s=0,r=n.length;s<r;++s){const t=n[s];if(e.PositionAndShape.marginCollisionDetection(t.PositionAndShape)){i=!0;break}}if(i)if(e.sourceNote.ParentVoiceEntry.ParentVoice instanceof g.LinkedVoice){const t=n[0].PositionAndShape.BorderMarginBottom+n[0].PositionAndShape.RelativePosition.y;e.PositionAndShape.RelativePosition=new h.PointF2D(0,t-e.PositionAndShape.BorderMarginTop+.5)}else{const t=n[n.length-1],i=t.PositionAndShape.BorderMarginTop+t.PositionAndShape.RelativePosition.y;if(n[0].sourceNote.ParentVoiceEntry.ParentVoice instanceof g.LinkedVoice)e.PositionAndShape.RelativePosition=new h.PointF2D(0,i-e.PositionAndShape.BorderMarginBottom-.5);else{const t=n[0].PositionAndShape.BorderMarginBottom+n[0].PositionAndShape.RelativePosition.y;e.PositionAndShape.RelativePosition=t<2?new h.PointF2D(0,t-e.PositionAndShape.BorderMarginTop+.5):new h.PointF2D(0,i-e.PositionAndShape.BorderMarginBottom-0)}}t.PositionAndShape.calculateBoundingBox()}calculateTieCurves(){for(const t of this.musicSystems)for(const e of t.StaffLines)for(const t of e.Measures)for(const e of t.staffEntries)for(const n of e.GraphicalTies)if(void 0!==n.StartNote&&n.StartNote.parentVoiceEntry.parentStaffEntry===e){const e=n.StartNote.parentVoiceEntry.parentStaffEntry.parentMeasure.ParentStaffLine!==n.EndNote.parentVoiceEntry.parentStaffEntry.parentMeasure.ParentStaffLine;this.layoutGraphicalTie(n,e,t.ParentStaff.isTab)}}calculateLyricsPosition(){const t=new _.Dictionary;for(let e=0,n=this.graphicalMusicSheet.ParentMusicSheet.Instruments.length;e<n;++e){const t=this.graphicalMusicSheet.ParentMusicSheet.Instruments[e];t.HasLyrics&&t.LyricVersesNumbers.length>0&&t.LyricVersesNumbers.sort()}for(let e=0,n=this.musicSystems.length;e<n;++e){const n=this.musicSystems[e];for(let e=0,i=n.StaffLines.length;e<i;++e){const i=n.StaffLines[e],s=this.calculateSingleStaffLineLyricsPosition(i,i.ParentStaff.ParentInstrument.LyricVersesNumbers);t.setValue(i,s),this.calculateLyricsExtendsAndDashes(t.getValue(i))}}for(let e=0,n=this.musicSystems.length;e<n;++e){const n=this.musicSystems[e];for(let e=0,i=n.StaffLines.length;e<i;++e){const i=n.StaffLines[e];this.calculateLyricsExtendsAndDashes(t.getValue(i))}}}calculateSingleLyricWord(t){const e=t.ParentLyricWord,n=e.GraphicalLyricsEntries.indexOf(t);let i=void 0;if(n>=0&&(i=e.GraphicalLyricsEntries[n+1]),!i)return;const s=t.StaffEntryParent.parentMeasure.ParentStaffLine,r=i.StaffEntryParent.parentMeasure.ParentStaffLine,o=t.StaffEntryParent,a=i.StaffEntryParent;if(t.StaffEntryParent.parentMeasure.ParentStaffLine===i.StaffEntryParent.parentMeasure.ParentStaffLine){const e=o.parentMeasure.PositionAndShape.RelativePosition.x+o.PositionAndShape.RelativePosition.x+t.GraphicalLabel.PositionAndShape.RelativePosition.x+t.GraphicalLabel.PositionAndShape.BorderMarginRight,n=a.parentMeasure.PositionAndShape.RelativePosition.x+a.PositionAndShape.RelativePosition.x+t.GraphicalLabel.PositionAndShape.RelativePosition.x+i.GraphicalLabel.PositionAndShape.BorderMarginLeft,r=t.GraphicalLabel.PositionAndShape.RelativePosition.y;let c=1;n-e>3*this.rules.MinimumDistanceBetweenDashes&&(c=Math.floor((n-e)/this.rules.MinimumDistanceBetweenDashes)-1),1===c?this.calculateSingleDashForLyricWord(s,e,n,r):this.calculateDashes(s,e,n,r)}else{const e=o.parentMeasure.PositionAndShape.RelativePosition.x+o.PositionAndShape.RelativePosition.x+t.GraphicalLabel.PositionAndShape.BorderMarginRight,n=s.Measures[s.Measures.length-1],c=n.PositionAndShape.RelativePosition.x+n.PositionAndShape.Size.width;let l=t.GraphicalLabel.PositionAndShape.RelativePosition.y;if(this.calculateDashes(s,e,c,l),r&&r.Measures[0]&&a.parentMeasure.ParentStaffLine&&(a!==a.parentMeasure.staffEntries[0]||a.parentMeasure!==a.parentMeasure.ParentStaffLine.Measures[0])){const t=r.Measures[0].staffEntries[0].PositionAndShape.RelativePosition.x,e=a.parentMeasure.PositionAndShape.RelativePosition.x+a.PositionAndShape.RelativePosition.x+i.GraphicalLabel.PositionAndShape.BorderMarginLeft;l=i.GraphicalLabel.PositionAndShape.RelativePosition.y,this.calculateDashes(r,t,e,l)}}}calculateDashes(t,e,n,i){let s=n-e;if(s<3*this.rules.MinimumDistanceBetweenDashes)this.calculateSingleDashForLyricWord(t,e,n,i);else{const r=Math.floor(s/this.rules.MinimumDistanceBetweenDashes)-1,o=s/(r+1);let a=0;for(e+=o,n-=o;a<=Math.floor(r/2)&&n>e;)s=this.calculateRightAndLeftDashesForLyricWord(t,e,n,i),e+=o,n-=o,a++;s>2*o&&this.calculateSingleDashForLyricWord(t,e,n,i)}}calculateSingleDashForLyricWord(t,e,n,i){const s=new E.Label("-"),r=new f.GraphicalLabel(s,this.rules.LyricsHeight,p.TextAlignmentEnum.CenterBottom,this.rules);r.setLabelPositionAndShapeBorders(),t.LyricsDashes.push(r),-1===this.staffLinesWithLyricWords.indexOf(t)&&this.staffLinesWithLyricWords.push(t),r.PositionAndShape.Parent=t.PositionAndShape;const o=new h.PointF2D(e+(n-e)/2,i);r.PositionAndShape.RelativePosition=o}calculateLyricExtend(t){let e=t.GraphicalLabel.PositionAndShape.RelativePosition.y;const n=t.StaffEntryParent,i=n.parentMeasure.ParentStaffLine;let s=void 0,r=void 0;const o=n.parentMeasure.ParentStaff.idInMusicSheet;for(let a=n.parentVerticalContainer.Index+1;a<this.graphicalMusicSheet.VerticalGraphicalStaffEntryContainers.length;++a){const t=this.graphicalMusicSheet.VerticalGraphicalStaffEntryContainers[a].StaffEntries[o];if(t){if(t.hasOnlyRests())break;if(t.LyricsEntries.length>0)break;s=t,r=s.parentMeasure.ParentStaffLine,r||(r=n.parentMeasure.ParentStaffLine)}}if(s&&r)if(i===r&&s.parentMeasure.ParentStaffLine){const r=n.parentMeasure.PositionAndShape.RelativePosition.x+n.PositionAndShape.RelativePosition.x+t.GraphicalLabel.PositionAndShape.BorderMarginRight,o=s.parentMeasure.PositionAndShape.RelativePosition.x+s.PositionAndShape.RelativePosition.x+s.PositionAndShape.BorderMarginRight;e-=t.GraphicalLabel.PositionAndShape.Size.height/4,this.calculateSingleLyricWordWithUnderscore(i,r,o,e)}else{const o=i.Measures[i.Measures.length-1].PositionAndShape,a=n.parentMeasure.PositionAndShape.RelativePosition.x+n.PositionAndShape.RelativePosition.x+t.GraphicalLabel.PositionAndShape.BorderMarginRight,c=o.RelativePosition.x+o.Size.width;if(e-=t.GraphicalLabel.PositionAndShape.Size.height/4,this.calculateSingleLyricWordWithUnderscore(i,a,c,e),!s)return;if(s.parentMeasure.ParentStaffLine&&s.parentMeasure.staffEntries&&(s!==s.parentMeasure.staffEntries[0]||s.parentMeasure!==s.parentMeasure.ParentStaffLine.Measures[0])){const t=r.Measures[0].staffEntries[0].PositionAndShape.RelativePosition.x,n=s.parentMeasure.PositionAndShape.RelativePosition.x+s.PositionAndShape.RelativePosition.x+s.PositionAndShape.BorderMarginRight;this.calculateSingleLyricWordWithUnderscore(r,t,n,e)}}}calculateSingleLyricWordWithUnderscore(t,e,n,i){const s=new h.PointF2D(e,i),r=new h.PointF2D(n,i),o=new w.GraphicalLine(s,r,this.rules.LyricUnderscoreLineWidth);t.LyricLines.push(o),-1===this.staffLinesWithLyricWords.indexOf(t)&&this.staffLinesWithLyricWords.push(t)}calculateRightAndLeftDashesForLyricWord(t,e,n,i){const s=new E.Label("-"),r=new f.GraphicalLabel(s,this.rules.LyricsHeight,p.TextAlignmentEnum.CenterBottom,this.rules);r.setLabelPositionAndShapeBorders(),t.LyricsDashes.push(r),-1===this.staffLinesWithLyricWords.indexOf(t)&&this.staffLinesWithLyricWords.push(t),r.PositionAndShape.Parent=t.PositionAndShape;const o=new h.PointF2D(e,i);r.PositionAndShape.RelativePosition=o;const a=new E.Label("-"),c=new f.GraphicalLabel(a,this.rules.LyricsHeight,p.TextAlignmentEnum.CenterBottom,this.rules);c.setLabelPositionAndShapeBorders(),t.LyricsDashes.push(c),c.PositionAndShape.Parent=t.PositionAndShape;const l=new h.PointF2D(n,i);return c.PositionAndShape.RelativePosition=l,c.PositionAndShape.RelativePosition.x-r.PositionAndShape.RelativePosition.x}calculateDynamicExpressions(){const t=Math.min(this.graphicalMusicSheet.ParentMusicSheet.SourceMeasures.length-1,this.rules.MaxMeasureToDrawIndex);for(let e=Math.min(this.rules.MinMeasureToDrawIndex,this.graphicalMusicSheet.ParentMusicSheet.SourceMeasures.length);e<=t;e++){const t=this.graphicalMusicSheet.ParentMusicSheet.SourceMeasures[e];for(let n=0;n<t.StaffLinkedExpressions.length;n++)if(this.graphicalMusicSheet.MeasureList[e]&&this.graphicalMusicSheet.MeasureList[e][n]&&this.graphicalMusicSheet.MeasureList[e][n].ParentStaff.ParentInstrument.Visible)for(let i=0;i<t.StaffLinkedExpressions[n].length;i++)(void 0!==t.StaffLinkedExpressions[n][i].InstantaneousDynamic||void 0!==t.StaffLinkedExpressions[n][i].StartingContinuousDynamic&&t.StaffLinkedExpressions[n][i].StartingContinuousDynamic.StartMultiExpression===t.StaffLinkedExpressions[n][i]&&0===t.StaffLinkedExpressions[n][i].UnknownList.length)&&this.calculateDynamicExpressionsForMultiExpression(t.StaffLinkedExpressions[n][i],e,n)}}calculateOctaveShifts(){for(let t=0;t<this.graphicalMusicSheet.ParentMusicSheet.SourceMeasures.length;t++){const e=this.graphicalMusicSheet.ParentMusicSheet.SourceMeasures[t];for(let n=0;n<e.StaffLinkedExpressions.length;n++)if(this.graphicalMusicSheet.MeasureList[t]&&this.graphicalMusicSheet.MeasureList[t][n]&&this.graphicalMusicSheet.MeasureList[t][n].ParentStaff.ParentInstrument.Visible)for(let i=0;i<e.StaffLinkedExpressions[n].length;i++)e.StaffLinkedExpressions[n][i].OctaveShiftStart&&this.calculateSingleOctaveShift(e,e.StaffLinkedExpressions[n][i],t,n)}}getFirstLeftNotNullStaffEntryFromContainer(t,e,n){if(this.graphicalMusicSheet.VerticalGraphicalStaffEntryContainers[t].StaffEntries[e])return this.graphicalMusicSheet.VerticalGraphicalStaffEntryContainers[t].StaffEntries[e];for(let i=t-1;i>=0;i--)if(this.graphicalMusicSheet.VerticalGraphicalStaffEntryContainers[i].StaffEntries[e])return this.graphicalMusicSheet.VerticalGraphicalStaffEntryContainers[i].StaffEntries[e]}getFirstRightNotNullStaffEntryFromContainer(t,e,n){if(this.graphicalMusicSheet.VerticalGraphicalStaffEntryContainers[t].StaffEntries[e])return this.graphicalMusicSheet.VerticalGraphicalStaffEntryContainers[t].StaffEntries[e];for(let i=t+1;i<this.graphicalMusicSheet.VerticalGraphicalStaffEntryContainers.length;i++)if(this.graphicalMusicSheet.VerticalGraphicalStaffEntryContainers[i].StaffEntries[e])return this.graphicalMusicSheet.VerticalGraphicalStaffEntryContainers[i].StaffEntries[e]}calculateWordRepetitionInstructions(){for(let t=0;t<this.graphicalMusicSheet.ParentMusicSheet.SourceMeasures.length;t++){const e=this.graphicalMusicSheet.ParentMusicSheet.SourceMeasures[t];for(let n=0,i=e.FirstRepetitionInstructions.length;n<i;++n){const i=e.FirstRepetitionInstructions[n];this.calculateWordRepetitionInstruction(i,t)}for(let n=0,i=e.LastRepetitionInstructions.length;n<i;++n){const i=e.LastRepetitionInstructions[n];this.calculateWordRepetitionInstruction(i,t)}}}calculateRepetitionEndings(){const t=this.graphicalMusicSheet.ParentMusicSheet;for(let e=0,n=t.Repetitions.length;e<n;++e){const n=t.Repetitions[e];this.calcGraphicalRepetitionEndingsRecursively(n)}}calculateTempoExpressions(){const t=Math.min(this.graphicalMusicSheet.ParentMusicSheet.SourceMeasures.length-1,this.rules.MaxMeasureToDrawIndex);for(let e=this.rules.MinMeasureToDrawIndex;e<=t;e++){const t=this.graphicalMusicSheet.ParentMusicSheet.SourceMeasures[e];for(let n=0;n<t.TempoExpressions.length;n++)this.calculateTempoExpressionsForMultiTempoExpression(t,t.TempoExpressions[n],e)}}calculateMoodAndUnknownExpressions(){for(let t=0;t<this.graphicalMusicSheet.ParentMusicSheet.SourceMeasures.length;t++){const e=this.graphicalMusicSheet.ParentMusicSheet.SourceMeasures[t];for(let n=0;n<e.StaffLinkedExpressions.length;n++)if(this.graphicalMusicSheet.MeasureList[t]&&this.graphicalMusicSheet.MeasureList[t][n]&&this.graphicalMusicSheet.MeasureList[t][n].ParentStaff.ParentInstrument.Visible)for(let i=0;i<e.StaffLinkedExpressions[n].length;i++)(e.StaffLinkedExpressions[n][i].MoodList.length>0||e.StaffLinkedExpressions[n][i].UnknownList.length>0)&&this.calculateMoodAndUnknownExpression(e.StaffLinkedExpressions[n][i],t,n)}}calculateStemDirectionFromVoices(t){if(void 0!==t.ParentSourceStaffEntry.Link)return t===t.ParentSourceStaffEntry.VoiceEntries[0]?void(t.WantedStemDirection=l.StemDirectionType.Up):void(t.WantedStemDirection=l.StemDirectionType.Down);t.ParentVoice instanceof g.LinkedVoice?t.WantedStemDirection=l.StemDirectionType.Down:t.ParentSourceStaffEntry.VoiceEntries.length>1&&(t.WantedStemDirection=l.StemDirectionType.Up)}setBeamNotesWantedStemDirections(t){if(t.WantedStemDirection===l.StemDirectionType.Undefined&&t.Notes.length>0){const e=t.Notes[0].NoteBeam;if(e)for(const n of e.Notes)if(n.ParentVoiceEntry!==t&&n.ParentVoiceEntry.WantedStemDirection!==l.StemDirectionType.Undefined){t.WantedStemDirection=n.ParentVoiceEntry.WantedStemDirection;break}}}}e.MusicSheetCalculator=R},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.KeyEnum=e.NoteEnumToHalfToneLink=e.KeyInstruction=void 0;const i=n(45),s=n(2),r=n(2);class o extends i.AbstractNotationInstruction{constructor(t,e=0,n=a.major){super(t),this.Key=e,this.mode=n,this.alteratedNotes=this.calcAlteratedNotes()}static copy(t){return new o(t.parent,t.Key,t.Mode)}static getAllPossibleMajorKeyInstructions(){const t=[];for(let e=-7;e<7;e++){const n=new o(void 0,e,a.major);t.push(n)}return t}get Key(){return this.keyType}set Key(t){this.keyType=t,this.alteratedNotes=this.calcAlteratedNotes()}get Mode(){return this.mode}set Mode(t){this.mode=t}get AlteratedNotes(){return this.alteratedNotes}calcAlteratedNotes(){const t=[];if(this.keyType>0)for(let e=0;e<this.keyType;e++)t.push(o.sharpPositionList[e]);else if(this.keyType<0)for(let e=0;e<-this.keyType;e++)t.push(o.flatPositionList[e]);return t}willAlterateNote(t){return this.alteratedNotes.indexOf(t)>=0}getAlterationForPitch(t){return this.keyType>0&&this.alteratedNotes.indexOf(t.FundamentalNote)<=this.keyType?r.AccidentalEnum.SHARP:this.keyType<0&&this.alteratedNotes.indexOf(t.FundamentalNote)<=Math.abs(this.keyType)?r.AccidentalEnum.FLAT:r.AccidentalEnum.NONE}ToString(){return"Key: "+this.keyType+this.mode}OperatorEquals(t){return this===t||!(!this||!t)&&this.Key===t.Key&&this.Mode===t.Mode}OperatorNotEqual(t){return!this.OperatorEquals(t)}}var a;e.KeyInstruction=o,o.sharpPositionList=[s.NoteEnum.F,s.NoteEnum.C,s.NoteEnum.G,s.NoteEnum.D,s.NoteEnum.A,s.NoteEnum.E,s.NoteEnum.B],o.flatPositionList=[s.NoteEnum.B,s.NoteEnum.E,s.NoteEnum.A,s.NoteEnum.D,s.NoteEnum.G,s.NoteEnum.C,s.NoteEnum.F],e.NoteEnumToHalfToneLink=class{constructor(t,e){this.note=t,this.halfTone=e}},function(t){t[t.major=0]="major",t[t.minor=1]="minor",t[t.none=2]="none",t[t.dorian=3]="dorian",t[t.phrygian=4]="phrygian",t[t.lydian=5]="lydian",t[t.mixolydian=6]="mixolydian",t[t.aeolian=7]="aeolian",t[t.ionian=8]="ionian",t[t.locrian=9]="locrian"}(a=e.KeyEnum||(e.KeyEnum={}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RhythmSymbolEnum=e.RhythmInstruction=void 0;const i=n(45);class s extends i.AbstractNotationInstruction{constructor(t,e){super(void 0),this.rhythm=t,this.numerator=t.Numerator,this.denominator=t.Denominator,this.symbolEnum=e}get Rhythm(){return this.rhythm}set Rhythm(t){this.rhythm=t}get SymbolEnum(){return this.symbolEnum}set SymbolEnum(t){this.symbolEnum=t}clone(){return new s(this.rhythm.clone(),this.symbolEnum)}OperatorEquals(t){return this===t||!(!this||!t)&&this.numerator===t.numerator&&this.denominator===t.denominator}OperatorNotEqual(t){return!(this===t)}ToString(){return"Rhythm: "+this.rhythm.toString()}}e.RhythmInstruction=s,function(t){t[t.NONE=0]="NONE",t[t.COMMON=1]="COMMON",t[t.CUT=2]="CUT"}(e.RhythmSymbolEnum||(e.RhythmSymbolEnum={}))},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.VexFlowMusicSheetDrawer=e.unitInPixels=void 0;const s=i(n(9)),r=n(102),o=n(50),a=n(5),c=n(64),l=n(22),u=n(3),h=n(58),d=n(65),f=i(n(1)),p=n(48),m=n(33),g=n(86);e.unitInPixels=10;class b extends r.MusicSheetDrawer{constructor(t=new m.DrawingParameters){super(new c.VexFlowTextMeasurer(t.Rules),t),this.backends=[],this.zoom=1,this.pageIdx=0}get Backends(){return this.backends}drawSheet(t){var n,i,r;"gonville"===this.rules.DefaultVexFlowNoteFont&&(s.default.Flow.DEFAULT_FONT_STACK=[null===(n=s.default.Flow.Fonts)||void 0===n?void 0:n.Gonville,null===(i=s.default.Flow.Fonts)||void 0===i?void 0:i.Bravura,null===(r=s.default.Flow.Fonts)||void 0===r?void 0:r.Custom]),s.default.Flow.STAVE_LINE_THICKNESS=this.rules.StaffLineWidth*e.unitInPixels,s.default.Flow.STEM_WIDTH=this.rules.StemWidth*e.unitInPixels,s.default.Flow.DEFAULT_NOTATION_FONT_SCALE=this.rules.VexFlowDefaultNotationFontScale,s.default.Flow.DEFAULT_TAB_FONT_SCALE=this.rules.VexFlowDefaultTabFontScale,this.pageIdx=0;for(const e of t.MusicPages){const t=this.backends[this.pageIdx];t.graphicalMusicPage=e,t.scale(this.zoom),this.pageIdx+=1}this.pageIdx=0,this.backend=this.backends[0],super.drawSheet(t)}drawPage(t){this.backend=this.backends[t.PageNumber-1],super.drawPage(t),this.pageIdx+=1,this.backend=this.backends[this.pageIdx]}clear(){for(const t of this.backends)t.clear()}setZoom(t){this.zoom=t}calculatePixelDistance(t){return t*e.unitInPixels}drawStaffLine(t){super.drawStaffLine(t);const e=t.PositionAndShape.AbsolutePosition;this.rules.RenderSlurs&&this.drawSlurs(t,e)}drawSlurs(t,e){for(const n of t.GraphicalSlurs)n.slur.isCrossed()||this.drawSlur(n,e)}drawSlur(t,e){const n=[],i=new a.PointF2D(t.bezierStartPt.x+e.x,t.bezierStartPt.y+e.y),s=new a.PointF2D(t.bezierStartControlPt.x+e.x,t.bezierStartControlPt.y+e.y),r=new a.PointF2D(t.bezierEndControlPt.x+e.x,t.bezierEndControlPt.y+e.y),o=new a.PointF2D(t.bezierEndPt.x+e.x,t.bezierEndPt.y+e.y);n.push(this.applyScreenTransformation(i)),n.push(this.applyScreenTransformation(s)),n.push(this.applyScreenTransformation(r)),n.push(this.applyScreenTransformation(o)),t.placement===u.PlacementEnum.Above?(i.y-=.05,s.y-=.3,r.y-=.3,o.y-=.05):(i.y+=.05,s.y+=.3,r.y+=.3,o.y+=.05),n.push(this.applyScreenTransformation(i)),n.push(this.applyScreenTransformation(s)),n.push(this.applyScreenTransformation(r)),n.push(this.applyScreenTransformation(o)),this.backend.renderCurve(n)}drawMeasure(t){t.setAbsoluteCoordinates(t.PositionAndShape.AbsolutePosition.x*e.unitInPixels,t.PositionAndShape.AbsolutePosition.y*e.unitInPixels);try{t.draw(this.backend.getContext())}catch(t){f.default.warn("VexFlowMusicSheetDrawer.drawMeasure",t)}for(const e of t.staffEntries)this.drawStaffEntry(e)}drawLine(t,n,i="#FF0000FF",s=.2){t=this.applyScreenTransformation(t),n=this.applyScreenTransformation(n),this.backend.renderLine(t,n,i,s*e.unitInPixels)}DrawOverlayLine(t,n,i,s="#FF0000FF",r=.2){if(!i.PageNumber||i.PageNumber>this.backends.length||i.PageNumber<1)return void console.log("VexFlowMusicSheetDrawer.drawOverlayLine: invalid page number / music page number doesn't correspond to an existing backend.");const o=i.PageNumber-1,a=this.backends[o];t=this.applyScreenTransformation(t),n=this.applyScreenTransformation(n),a.renderLine(t,n,s,r*e.unitInPixels)}drawSkyLine(t){const e=t.PositionAndShape.AbsolutePosition,n=t.PositionAndShape.Size.width;this.drawSampledLine(t.SkyLine,e,n)}drawBottomLine(t){const e=new a.PointF2D(t.PositionAndShape.AbsolutePosition.x,t.PositionAndShape.AbsolutePosition.y),n=t.PositionAndShape.Size.width;this.drawSampledLine(t.BottomLine,e,n,"#0000FFFF")}drawSampledLine(t,e,n,i="#FF0000FF"){const s=[];let r=0;for(let a=0;a<t.length;a++)t[a]!==r&&(s.push(a),r=t[a]);const o=e;if(s.length>0){const e=this.rules.SamplingUnit;let r,c,l=new a.PointF2D(o.x,o.y),u=new a.PointF2D(s[0]/e+o.x,o.y);this.drawLine(l,u,i),t[0]>=0&&(r=new a.PointF2D(s[0]/e+o.x,o.y),c=new a.PointF2D(s[0]/e+o.x,o.y+t[s[0]]),this.drawLine(r,c,i));for(let n=1;n<s.length;n++)l=new a.PointF2D(s[n-1]/e+o.x,o.y+t[s[n-1]]),u=new a.PointF2D(s[n]/e+o.x,o.y+t[s[n-1]]),this.drawLine(l,u,i),r=new a.PointF2D(s[n]/e+o.x,o.y+t[s[n-1]]),c=new a.PointF2D(s[n]/e+o.x,o.y+t[s[n]]),this.drawLine(r,c,i);s[s.length-1]<t.length?(l=new a.PointF2D(s[s.length-1]/e+o.x,o.y+t[s[s.length-1]]),u=new a.PointF2D(o.x+n,o.y+t[s[s.length-1]]),this.drawLine(l,u,i)):(l=new a.PointF2D(s[s.length-1]/e+o.x,o.y),u=new a.PointF2D(o.x+n,o.y),this.drawLine(l,u,i))}else{const t=new a.PointF2D(o.x,o.y),e=new a.PointF2D(o.x+n,o.y);this.drawLine(t,e,i)}}drawStaffEntry(t){if(void 0!==t.graphicalChordContainers&&t.graphicalChordContainers.length>0)for(const e of t.graphicalChordContainers)this.drawLabel(e.GetGraphicalLabel,l.GraphicalLayers.Notes);this.rules.RenderLyrics&&t.LyricsEntries.length>0&&this.drawLyrics(t.LyricsEntries,l.GraphicalLayers.Notes)}drawLyrics(t,e){t.forEach(t=>this.drawLabel(t.GraphicalLabel,e))}drawInstrumentBrace(t,e){t.draw(this.backend.getContext())}drawGroupBracket(t,e){t.draw(this.backend.getContext())}drawOctaveShifts(t){for(const e of t.OctaveShifts)if(e){const t=e,n=this.backend.getContext(),i=t.getTextBracket();i.setContext(n),i.draw()}}drawExpressions(t){for(const e of t.AbstractExpressions)e instanceof d.GraphicalInstantaneousDynamicExpression?this.drawInstantaneousDynamic(e):e instanceof h.GraphicalInstantaneousTempoExpression?this.drawLabel(e.GraphicalLabel,l.GraphicalLayers.Notes):e instanceof p.GraphicalContinuousDynamicExpression?this.drawContinuousDynamic(e):e instanceof g.GraphicalUnknownExpression?this.drawLabel(e.Label,l.GraphicalLayers.Notes):f.default.warn("Unkown type of expression!")}drawInstantaneousDynamic(t){this.drawLabel(t.Label,l.GraphicalLayers.Notes)}drawContinuousDynamic(t){if(t.IsVerbal)this.drawLabel(t.Label,l.GraphicalLayers.Notes);else for(const e of t.Lines){const n=new a.PointF2D(t.ParentStaffLine.PositionAndShape.AbsolutePosition.x+e.Start.x,t.ParentStaffLine.PositionAndShape.AbsolutePosition.y+e.Start.y),i=new a.PointF2D(t.ParentStaffLine.PositionAndShape.AbsolutePosition.x+e.End.x,t.ParentStaffLine.PositionAndShape.AbsolutePosition.y+e.End.y);this.drawLine(n,i,"black",e.Width)}}renderLabel(t,n,i,s,r,o){var c;if(!t.Label.print)return;const l=t.Label.fontHeight*e.unitInPixels,{font:u}=t.Label;let h;this.rules.ColoringEnabled&&(h=t.Label.colorDefault,h||(h=this.rules.DefaultColorLabel));let{fontStyle:d,fontFamily:f}=t.Label;d||(d=this.rules.DefaultFontStyle),f||(f=this.rules.DefaultFontFamily);for(let e=0;e<(null===(c=t.TextLines)||void 0===c?void 0:c.length);e++){const n=t.TextLines[e],i=this.calculatePixelDistance(n.xOffset),s=new a.PointF2D(o.x+i,o.y);this.backend.renderText(l,d,u,n.text,r,s,h,t.Label.fontFamily),o.y=o.y+r,t.TextLines.length>1&&(o.y+=this.rules.SpacingBetweenTextLines)}}renderRectangle(t,e,n,i){this.backend.renderRectangle(t,n,i)}applyScreenTransformation(t){return new a.PointF2D(t.x*e.unitInPixels,t.y*e.unitInPixels)}applyScreenTransformationForRect(t){return new o.RectangleF2D(t.x*e.unitInPixels,t.y*e.unitInPixels,t.width*e.unitInPixels,t.height*e.unitInPixels)}}e.VexFlowMusicSheetDrawer=b},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(35);e.arrays=i;var s=n(144);e.Bag=s.default;var r=n(145);e.BSTree=r.default;var o=n(80);e.BSTreeKV=o.default;var a=n(29);e.Dictionary=a.default;var c=n(82);e.Heap=c.default;var l=n(146);e.LinkedDictionary=l.default;var u=n(51);e.LinkedList=u.default;var h=n(147);e.MultiDictionary=h.default;var d=n(83);e.FactoryDictionary=d.default;var f=n(83);e.DefaultDictionary=f.default;var p=n(81);e.Queue=p.default;var m=n(148);e.PriorityQueue=m.default;var g=n(79);e.Set=g.default;var b=n(149);e.Stack=b.default;var v=n(150);e.MultiRootTree=v.default;var y=n(10);e.util=y},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FontStyles=void 0,function(t){t[t.Regular=0]="Regular",t[t.Bold=1]="Bold",t[t.Italic=2]="Italic",t[t.BoldItalic=3]="BoldItalic",t[t.Underlined=4]="Underlined"}(e.FontStyles||(e.FontStyles={}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ITextTranslation=void 0,e.ITextTranslation=class{static translateText(t,e){if(!this.defaultTextTranslation)return e}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AutoColorSet=e.NoteState=e.GraphicalLayers=e.StyleSets=e.OUTLINE_AND_FILL_STYLE_DICT=e.OutlineAndFillStyleEnum=void 0;const i=n(19);var s;!function(t){t[t.BaseWritingColor=0]="BaseWritingColor",t[t.FollowingCursor=1]="FollowingCursor",t[t.AlternativeFollowingCursor=2]="AlternativeFollowingCursor",t[t.PlaybackCursor=3]="PlaybackCursor",t[t.Highlighted=4]="Highlighted",t[t.ErrorUnderlay=5]="ErrorUnderlay",t[t.Selected=6]="Selected",t[t.SelectionSymbol=7]="SelectionSymbol",t[t.DebugColor1=8]="DebugColor1",t[t.DebugColor2=9]="DebugColor2",t[t.DebugColor3=10]="DebugColor3",t[t.SplitScreenDivision=11]="SplitScreenDivision",t[t.GreyTransparentOverlay=12]="GreyTransparentOverlay",t[t.MarkedArea1=13]="MarkedArea1",t[t.MarkedArea2=14]="MarkedArea2",t[t.MarkedArea3=15]="MarkedArea3",t[t.MarkedArea4=16]="MarkedArea4",t[t.MarkedArea5=17]="MarkedArea5",t[t.MarkedArea6=18]="MarkedArea6",t[t.MarkedArea7=19]="MarkedArea7",t[t.MarkedArea8=20]="MarkedArea8",t[t.MarkedArea9=21]="MarkedArea9",t[t.MarkedArea10=22]="MarkedArea10",t[t.Comment1=23]="Comment1",t[t.Comment2=24]="Comment2",t[t.Comment3=25]="Comment3",t[t.Comment4=26]="Comment4",t[t.Comment5=27]="Comment5",t[t.Comment6=28]="Comment6",t[t.Comment7=29]="Comment7",t[t.Comment8=30]="Comment8",t[t.Comment9=31]="Comment9",t[t.Comment10=32]="Comment10"}(s=e.OutlineAndFillStyleEnum||(e.OutlineAndFillStyleEnum={})),e.OUTLINE_AND_FILL_STYLE_DICT=new i.Dictionary,e.OUTLINE_AND_FILL_STYLE_DICT.setValue(s.BaseWritingColor,"Thistle"),e.OUTLINE_AND_FILL_STYLE_DICT.setValue(s.FollowingCursor,"Aqua"),e.OUTLINE_AND_FILL_STYLE_DICT.setValue(s.AlternativeFollowingCursor,"Azure"),e.OUTLINE_AND_FILL_STYLE_DICT.setValue(s.PlaybackCursor,"Bisque"),e.OUTLINE_AND_FILL_STYLE_DICT.setValue(s.Highlighted,"CadetBlue"),e.OUTLINE_AND_FILL_STYLE_DICT.setValue(s.ErrorUnderlay,"DarkBlue"),e.OUTLINE_AND_FILL_STYLE_DICT.setValue(s.Selected,"DarkGoldenRod"),e.OUTLINE_AND_FILL_STYLE_DICT.setValue(s.SelectionSymbol,"BlanchedAlmond"),e.OUTLINE_AND_FILL_STYLE_DICT.setValue(s.DebugColor1,"Chartreuse"),e.OUTLINE_AND_FILL_STYLE_DICT.setValue(s.DebugColor2,"DarkGreen"),e.OUTLINE_AND_FILL_STYLE_DICT.setValue(s.DebugColor3,"DarkOrange"),e.OUTLINE_AND_FILL_STYLE_DICT.setValue(s.SplitScreenDivision,"FireBrick"),e.OUTLINE_AND_FILL_STYLE_DICT.setValue(s.GreyTransparentOverlay,"DarkSalmon"),e.OUTLINE_AND_FILL_STYLE_DICT.setValue(s.MarkedArea1,"DarkSeaGreen"),e.OUTLINE_AND_FILL_STYLE_DICT.setValue(s.MarkedArea2,"DarkOrchid"),e.OUTLINE_AND_FILL_STYLE_DICT.setValue(s.MarkedArea3,"Aquamarine"),e.OUTLINE_AND_FILL_STYLE_DICT.setValue(s.MarkedArea4,"DarkKhaki"),e.OUTLINE_AND_FILL_STYLE_DICT.setValue(s.MarkedArea5,"ForestGreen"),e.OUTLINE_AND_FILL_STYLE_DICT.setValue(s.MarkedArea6,"AliceBlue"),e.OUTLINE_AND_FILL_STYLE_DICT.setValue(s.MarkedArea7,"DeepPink"),e.OUTLINE_AND_FILL_STYLE_DICT.setValue(s.MarkedArea8,"Coral"),e.OUTLINE_AND_FILL_STYLE_DICT.setValue(s.MarkedArea9,"DarkOliveGreen"),e.OUTLINE_AND_FILL_STYLE_DICT.setValue(s.MarkedArea10,"Chocolate"),e.OUTLINE_AND_FILL_STYLE_DICT.setValue(s.Comment1,"DodgerBlue"),e.OUTLINE_AND_FILL_STYLE_DICT.setValue(s.Comment2,"Blue"),e.OUTLINE_AND_FILL_STYLE_DICT.setValue(s.Comment3,"Beige"),e.OUTLINE_AND_FILL_STYLE_DICT.setValue(s.Comment4,"Crimson"),e.OUTLINE_AND_FILL_STYLE_DICT.setValue(s.Comment5,"Fuchsia"),e.OUTLINE_AND_FILL_STYLE_DICT.setValue(s.Comment6,"Brown"),e.OUTLINE_AND_FILL_STYLE_DICT.setValue(s.Comment7,"BlanchedAlmond"),e.OUTLINE_AND_FILL_STYLE_DICT.setValue(s.Comment8,"CornflowerBlue"),e.OUTLINE_AND_FILL_STYLE_DICT.setValue(s.Comment9,"Cornsilk"),e.OUTLINE_AND_FILL_STYLE_DICT.setValue(s.Comment10,"DarkGrey"),function(t){t[t.MarkedArea=0]="MarkedArea",t[t.Comment=1]="Comment"}(e.StyleSets||(e.StyleSets={})),function(t){t[t.Background=0]="Background",t[t.Highlight=1]="Highlight",t[t.MeasureError=2]="MeasureError",t[t.SelectionSymbol=3]="SelectionSymbol",t[t.Cursor=4]="Cursor",t[t.PSI_Debug=5]="PSI_Debug",t[t.Notes=6]="Notes",t[t.Comment=7]="Comment",t[t.Debug_above=8]="Debug_above"}(e.GraphicalLayers||(e.GraphicalLayers={})),function(t){t[t.Normal=0]="Normal",t[t.Selected=1]="Selected",t[t.Follow_Confirmed=2]="Follow_Confirmed",t[t.QFeedback_NotFound=3]="QFeedback_NotFound",t[t.QFeedback_OK=4]="QFeedback_OK",t[t.QFeedback_Perfect=5]="QFeedback_Perfect",t[t.Debug1=6]="Debug1",t[t.Debug2=7]="Debug2",t[t.Debug3=8]="Debug3"}(e.NoteState||(e.NoteState={})),function(t){t.C="#d82c6b",t.D="#F89D15",t.E="#FFE21A",t.F="#4dbd5c",t.G="#009D96",t.A="#43469d",t.B="#76429c",t.Rest="#000000"}(e.AutoColorSet||(e.AutoColorSet={}))},function(t,e,n){"use strict";var i;Object.defineProperty(e,"__esModule",{value:!0}),e.SystemLinesEnumHelper=e.SystemLinesEnum=void 0,function(t){t[t.SingleThin=0]="SingleThin",t[t.DoubleThin=1]="DoubleThin",t[t.ThinBold=2]="ThinBold",t[t.BoldThinDots=3]="BoldThinDots",t[t.DotsThinBold=4]="DotsThinBold",t[t.DotsBoldBoldDots=5]="DotsBoldBoldDots",t[t.None=6]="None",t[t.Dotted=7]="Dotted",t[t.Dashed=8]="Dashed",t[t.Bold=9]="Bold",t[t.BoldThin=10]="BoldThin",t[t.DoubleBold=11]="DoubleBold",t[t.Tick=12]="Tick",t[t.Short=13]="Short"}(i=e.SystemLinesEnum||(e.SystemLinesEnum={})),e.SystemLinesEnumHelper=class{static xmlBarlineStyleToSystemLinesEnum(t){return"regular"===t?i.SingleThin:"dotted"===t?i.Dotted:"dashed"===t?i.Dashed:"heavy"===t?i.Bold:"light-light"===t?i.DoubleThin:"light-heavy"===t?i.ThinBold:"heavy-light"===t?i.BoldThin:"heavy-heavy"===t?i.DoubleBold:"tick"===t?i.Tick:"short"===t?i.Short:"none"===t?i.None:i.SingleThin}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GraphicalLabel=void 0;const i=n(8),s=n(4),r=n(93),o=n(15);class a extends r.Clickable{constructor(t,e,n,i,r){super(),this.label=t,this.boundingBox=new s.BoundingBox(this,r),this.label.fontHeight=e,this.label.textAlignment=n,this.rules=i}get Label(){return this.label}toString(){return`${this.label.text} (${this.boundingBox.RelativePosition.x},${this.boundingBox.RelativePosition.y})`}setLabelPositionAndShapeBorders(){var t,e;if(""===this.Label.text.trim())return;this.TextLines=[];const n=null!==(e=null===(t=this.rules)||void 0===t?void 0:t.LabelMarginBorderFactor)&&void 0!==e?e:.1,s=this.Label.text.split(/[\n\r]+/g),r=s.length;let a=0;for(let i=0;i<r;i++){const t=s[i].trim(),e=o.MusicSheetCalculator.TextMeasurer.computeTextWidthToHeightRatio(t,this.Label.font,this.Label.fontStyle,this.label.fontFamily),n=this.Label.fontHeight*e;a=Math.max(a,n),this.TextLines.push({text:t,xOffset:0,width:n})}for(const o of this.TextLines){let t=0;switch(this.Label.textAlignment){case i.TextAlignmentEnum.RightBottom:case i.TextAlignmentEnum.RightCenter:case i.TextAlignmentEnum.RightTop:t=a-o.width;break;case i.TextAlignmentEnum.CenterBottom:case i.TextAlignmentEnum.CenterCenter:case i.TextAlignmentEnum.CenterTop:t=(a-o.width)/2}o.xOffset=t}let c=this.Label.fontHeight*r;this.rules.SpacingBetweenTextLines>0&&this.TextLines.length>1&&(c+=this.rules.SpacingBetweenTextLines*r/10);const l=this.PositionAndShape;switch(this.Label.textAlignment){case i.TextAlignmentEnum.CenterBottom:l.BorderTop=-c,l.BorderLeft=-a/2,l.BorderBottom=0,l.BorderRight=a/2;break;case i.TextAlignmentEnum.CenterCenter:l.BorderTop=-c/2,l.BorderLeft=-a/2,l.BorderBottom=c/2,l.BorderRight=a/2;break;case i.TextAlignmentEnum.CenterTop:l.BorderTop=0,l.BorderLeft=-a/2,l.BorderBottom=c,l.BorderRight=a/2;break;case i.TextAlignmentEnum.LeftBottom:l.BorderTop=-c,l.BorderLeft=0,l.BorderBottom=0,l.BorderRight=a;break;case i.TextAlignmentEnum.LeftCenter:l.BorderTop=-c/2,l.BorderLeft=0,l.BorderBottom=c/2,l.BorderRight=a;break;case i.TextAlignmentEnum.LeftTop:l.BorderTop=0,l.BorderLeft=0,l.BorderBottom=c,l.BorderRight=a;break;case i.TextAlignmentEnum.RightBottom:l.BorderTop=-c,l.BorderLeft=-a,l.BorderBottom=0,l.BorderRight=0;break;case i.TextAlignmentEnum.RightCenter:l.BorderTop=-c/2,l.BorderLeft=-a,l.BorderBottom=c/2,l.BorderRight=0;break;case i.TextAlignmentEnum.RightTop:l.BorderTop=0,l.BorderLeft=-a,l.BorderBottom=c,l.BorderRight=0}l.BorderMarginTop=l.BorderTop-c*n,l.BorderMarginLeft=l.BorderLeft-c*n,l.BorderMarginBottom=l.BorderBottom+c*n,l.BorderMarginRight=l.BorderRight+c*n}}e.GraphicalLabel=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.OSMDOptions=e.BackendType=e.FillEmptyMeasuresWithWholeRests=e.AlignRestOption=void 0;const i=n(33);var s;!function(t){t[t.Never=0]="Never",t[t.Always=1]="Always",t[t.Auto=2]="Auto"}(e.AlignRestOption||(e.AlignRestOption={})),function(t){t[t.No=0]="No",t[t.YesVisible=1]="YesVisible",t[t.YesInvisible=2]="YesInvisible"}(e.FillEmptyMeasuresWithWholeRests||(e.FillEmptyMeasuresWithWholeRests={})),function(t){t[t.SVG=0]="SVG",t[t.Canvas=1]="Canvas"}(s=e.BackendType||(e.BackendType={})),e.OSMDOptions=class{static OSMDOptionsStandard(){return{autoResize:!0,backend:"svg",drawingParameters:i.DrawingParametersEnum.default}}static BackendTypeFromString(t){return t&&"canvas"===t.toLowerCase()?s.Canvas:s.SVG}}},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.PageFormat=e.EngravingRules=void 0;const s=n(43),r=i(n(1)),o=n(8),a=n(3),c=n(25),l=n(33),u=n(19),h=n(56),d=n(44);class f{constructor(){this.NoteDistances=[1,1,1.3,1.6,2,2.5,3,4],this.NoteDistancesScalingFactors=[1,2,4,8,16,32,64,128],this.DurationDistanceDict={},this.DurationScalingDistanceDict={},this.SamplingUnit=3*f.unit,this.SheetTitleHeight=4,this.SheetSubtitleHeight=2,this.SheetMinimumDistanceBetweenTitleAndSubtitle=1,this.SheetComposerHeight=2,this.SheetAuthorHeight=2,this.CompactMode=!1,this.PagePlacementEnum=s.PagePlacementEnum.Down,this.PageHeight=100001,this.PageTopMargin=5,this.PageTopMarginNarrow=0,this.PageBottomMargin=5,this.PageBottomExtraWhiteSpace=0,this.PageLeftMargin=5,this.PageRightMargin=5,this.TitleTopDistance=9,this.TitleBottomDistance=1,this.StaffDistance=7,this.BetweenStaffDistance=5,this.MinimumStaffLineDistance=4,this.MinSkyBottomDistBetweenStaves=1,this.StaffHeight=4,this.TabStaffInterlineHeight=1.1111,this.BetweenStaffLinesDistance=f.unit,this.SystemLeftMargin=0,this.SystemRightMargin=0,this.SystemLabelsRightMargin=2,this.SystemComposerDistance=2,this.InstrumentLabelTextHeight=2,this.MinimumDistanceBetweenSystems=7,this.MinSkyBottomDistBetweenSystems=5,this.LastSystemMaxScalingFactor=1.4,this.AutoBeamNotes=!1,this.AutoBeamOptions={beam_middle_rests_only:!1,beam_rests:!1,maintain_stem_directions:!1},this.BeamWidth=f.unit/2,this.BeamSpaceWidth=f.unit/3,this.BeamForwardLength=1.25*f.unit,this.ClefLeftMargin=.5,this.ClefRightMargin=.75,this.PercussionOneLineCutoff=3,this.PercussionForceVoicesOneLineCutoff=1,this.BetweenKeySymbolsDistance=.2,this.KeyRightMargin=.75,this.RhythmRightMargin=1.25,this.ShowRhythmAgainAfterPartEndOrFinalBarline=!0,this.NewPartAndSystemAfterFinalBarline=!1,this.InStaffClefScalingFactor=.8,this.DistanceBetweenNaturalAndSymbolWhenCancelling=.4,this.NoteHelperLinesOffset=.25,this.MeasureLeftMargin=.7,this.MeasureRightMargin=0,this.DistanceBetweenLastInstructionAndRepetitionBarline=1,this.ArpeggioDistance=.6,this.StaccatoShorteningFactor=2,this.IdealStemLength=3,this.StemNoteHeadBorderYOffset=.2,this.StemMargin=.2,this.StemMinLength=2.5,this.StemMaxLength=4.5,this.BeamSlopeMaxAngle=10,this.StemMinAllowedDistanceBetweenNoteHeadAndBeamLine=1,this.SetWantedStemDirectionByXml=!0,this.GraceNoteScalingFactor=.6,this.GraceNoteXOffset=.2,this.WedgeOpeningLength=1.2,this.WedgeMeasureEndOpeningLength=.75,this.WedgeMeasureBeginOpeningLength=.75,this.WedgePlacementAboveY=-1.5,this.WedgePlacementBelowY=1.5,this.WedgeHorizontalMargin=.6,this.WedgeVerticalMargin=.5,this.DistanceOffsetBetweenTwoHorizontallyCrossedWedges=.3,this.WedgeMinLength=2,this.DistanceBetweenAdjacentDynamics=.75,this.TempoChangeMeasureValidity=4,this.TempoContinousFactor=.7,this.StaccatoScalingFactor=.8,this.BetweenDotsDistance=.8,this.OrnamentAccidentalScalingFactor=.65,this.ChordSymbolTextHeight=2,this.ChordSymbolXSpacing=1,this.ChordSymbolYOffset=2,this.ChordSymbolLabelTexts=new u.Dictionary,this.resetChordSymbolLabelTexts(this.ChordSymbolLabelTexts),this.MeasureNumberLabelHeight=1.5*f.unit,this.MeasureNumberLabelOffset=2,this.MeasureNumberLabelXOffset=-.5,this.TupletsRatioed=!1,this.TupletsBracketed=!1,this.TripletsBracketed=!1,this.TupletNumberLabelHeight=1.5*f.unit,this.TupletNumberYOffset=.5,this.LabelMarginBorderFactor=.1,this.TupletVerticalLineLength=.5,this.TupletNumbersInTabs=!1,this.BezierCurveStepSize=1e3,this.calculateCurveParametersArrays(),this.TieGhostObjectWidth=.75,this.TieYPositionOffsetFactor=.3,this.MinimumNeededXspaceForTieGhostObject=1,this.TieHeightMinimum=.28,this.TieHeightMaximum=1.2,this.TieHeightInterpolationK=.0288,this.TieHeightInterpolationD=.136,this.SlurNoteHeadYOffset=.5,this.SlurStemXOffset=.3,this.SlurSlopeMaxAngle=15,this.SlurTangentMinAngle=30,this.SlurTangentMaxAngle=80,this.SlursStartingAtSameStaffEntryYOffset=.8,this.RepetitionEndingLabelHeight=2,this.RepetitionEndingLabelXOffset=.5,this.RepetitionEndingLabelYOffset=.3,this.RepetitionEndingLineYLowerOffset=.5,this.RepetitionEndingLineYUpperOffset=.3,this.VoltaOffset=2.5,this.LyricsAlignmentStandard=o.TextAlignmentEnum.LeftBottom,this.LyricsHeight=2,this.LyricsYOffsetToStaffHeight=0,this.VerticalBetweenLyricsDistance=.5,this.HorizontalBetweenLyricsDistance=.2,this.BetweenSyllableMaximumDistance=10,this.BetweenSyllableMinimumDistance=.5,this.LyricOverlapAllowedIntoNextMeasure=3.4,this.MinimumDistanceBetweenDashes=10,this.MaximumLyricsElongationFactor=2.5,this.InstantaneousTempoTextHeight=2.3,this.ContinuousDynamicTextHeight=2.3,this.MoodTextHeight=2.3,this.UnknownTextHeight=2,this.ContinuousTempoTextHeight=2.3,this.DynamicExpressionMaxDistance=2,this.DynamicExpressionSpacer=.5,this.VexFlowDefaultNotationFontScale=39,this.VexFlowDefaultTabFontScale=39,this.StemWidth=.15,this.StaffLineWidth=.1,this.StaffLineColor=void 0,this.LedgerLineWidth=1,this.LedgerLineStrokeStyle=void 0,this.LedgerLineColorDefault="#000000",this.WedgeLineWidth=.12,this.TupletLineWidth=.12,this.LyricUnderscoreLineWidth=.12,this.SystemThinLineWidth=.12,this.SystemBoldLineWidth=f.unit/2,this.SystemRepetitionEndingLineWidth=.12,this.SystemDotWidth=f.unit/5,this.DistanceBetweenVerticalSystemLines=.35,this.DistanceBetweenDotAndLine=.7,this.OctaveShiftLineWidth=.12,this.OctaveShiftVerticalLineLength=f.unit,this.GraceLineWidth=this.StaffLineWidth*this.GraceNoteScalingFactor,this.MultipleRestMeasureDefaultWidth=4,this.MinimumCrossedBeamDifferenceMargin=1e-4,this.VoiceSpacingMultiplierVexflow=.85,this.VoiceSpacingAddendVexflow=3,this.DisplacedNoteMargin=.1,this.MinNoteDistance=2,this.SubMeasureXSpacingThreshold=35,this.MeasureDynamicsMaxScalingFactor=2.5,this.WholeRestXShiftVexflow=-1.5,this.MetronomeMarksDrawn=!0,this.MetronomeMarkXShift=-6,this.MetronomeMarkYShift=-.5,this.SoftmaxFactorVexFlow=15,this.AlignRests=c.AlignRestOption.Never,this.FillEmptyMeasuresWithWholeRest=c.FillEmptyMeasuresWithWholeRests.No,this.ArpeggiosGoAcrossVoices=!1,this.RenderArpeggios=!0,this.RenderSlurs=!0,this.ColoringMode=l.ColoringModes.XML,this.ColoringEnabled=!0,this.ColorStemsLikeNoteheads=!1,this.ColorBeams=!0,this.ColorFlags=!0,this.DefaultColorNotehead="#000000",this.DefaultColorRest=this.DefaultColorNotehead,this.DefaultColorStem=this.DefaultColorNotehead,this.DefaultColorLabel=this.DefaultColorNotehead,this.DefaultColorTitle=this.DefaultColorNotehead,this.DefaultFontFamily="Times New Roman",this.DefaultFontStyle=h.FontStyles.Regular,this.DefaultVexFlowNoteFont="gonville",this.MaxMeasureToDrawIndex=Number.MAX_VALUE,this.MinMeasureToDrawIndex=0,this.RenderComposer=!0,this.RenderTitle=!0,this.RenderSubtitle=!0,this.RenderLyricist=!0,this.RenderPartNames=!0,this.RenderPartAbbreviations=!0,this.RenderFingerings=!0,this.RenderMeasureNumbers=!0,this.RenderMeasureNumbersOnlyAtSystemStart=!1,this.RenderLyrics=!0,this.RenderMultipleRestMeasures=!0,this.AutoGenerateMutipleRestMeasuresFromRestMeasures=!0,this.RenderTimeSignatures=!0,this.FingeringPosition=a.PlacementEnum.Left,this.FingeringInsideStafflines=!1,this.FingeringLabelFontHeight=1.7,this.FingeringOffsetX=0,this.NewSystemAtXMLNewSystemAttribute=!1,this.NewPageAtXMLNewPageAttribute=!1,this.RestoreCursorAfterRerender=!0,this.StretchLastSystemLine=!1,f.FixStafflineBoundingBox=!1,this.PageFormat=p.UndefinedPageFormat,this.PageBackgroundColor=void 0,this.RenderSingleHorizontalStaffline=!1,this.SpacingBetweenTextLines=0,this.populateDictionaries();try{this.MaxInstructionsConstValue=this.ClefLeftMargin+this.ClefRightMargin+this.KeyRightMargin+this.RhythmRightMargin+11}catch(t){r.default.info("EngravingRules()",t)}}setChordSymbolLabelText(t,e){this.ChordSymbolLabelTexts.setValue(t,e)}resetChordSymbolLabelTexts(t){return t.setValue(d.ChordSymbolEnum.minor,"m"),t.setValue(d.ChordSymbolEnum.augmented,"aug"),t.setValue(d.ChordSymbolEnum.diminished,"dim"),t.setValue(d.ChordSymbolEnum.dominant,"7"),t.setValue(d.ChordSymbolEnum.majorseventh,"maj7"),t.setValue(d.ChordSymbolEnum.minorseventh,"m7"),t.setValue(d.ChordSymbolEnum.diminishedseventh,"dim7"),t.setValue(d.ChordSymbolEnum.augmentedseventh,"aug7"),t.setValue(d.ChordSymbolEnum.halfdiminished,"m7b5"),t.setValue(d.ChordSymbolEnum.majorminor,"m(maj7)"),t.setValue(d.ChordSymbolEnum.majorsixth,"maj6"),t.setValue(d.ChordSymbolEnum.minorsixth,"m6"),t.setValue(d.ChordSymbolEnum.dominantninth,"9"),t.setValue(d.ChordSymbolEnum.majorninth,"maj9"),t.setValue(d.ChordSymbolEnum.minorninth,"m9"),t.setValue(d.ChordSymbolEnum.dominant11th,"11"),t.setValue(d.ChordSymbolEnum.major11th,"maj11"),t.setValue(d.ChordSymbolEnum.minor11th,"m11"),t.setValue(d.ChordSymbolEnum.dominant13th,"13"),t.setValue(d.ChordSymbolEnum.major13th,"maj13"),t.setValue(d.ChordSymbolEnum.minor13th,"m13"),t.setValue(d.ChordSymbolEnum.suspendedsecond,"sus2"),t.setValue(d.ChordSymbolEnum.suspendedfourth,"sus4"),t.setValue(d.ChordSymbolEnum.power,"5"),t}populateDictionaries(){for(let t=0;t<this.NoteDistances.length;t++)switch(t){case 0:this.DurationDistanceDict[.015625]=this.NoteDistances[t],this.DurationScalingDistanceDict[.015625]=this.NoteDistancesScalingFactors[t];break;case 1:this.DurationDistanceDict[.03125]=this.NoteDistances[t],this.DurationScalingDistanceDict[.03125]=this.NoteDistancesScalingFactors[t];break;case 2:this.DurationDistanceDict[.0625]=this.NoteDistances[t],this.DurationScalingDistanceDict[.0625]=this.NoteDistancesScalingFactors[t];break;case 3:this.DurationDistanceDict[.125]=this.NoteDistances[t],this.DurationScalingDistanceDict[.125]=this.NoteDistancesScalingFactors[t];break;case 4:this.DurationDistanceDict[.25]=this.NoteDistances[t],this.DurationScalingDistanceDict[.25]=this.NoteDistancesScalingFactors[t];break;case 5:this.DurationDistanceDict[.5]=this.NoteDistances[t],this.DurationScalingDistanceDict[.5]=this.NoteDistancesScalingFactors[t];break;case 6:this.DurationDistanceDict[1]=this.NoteDistances[t],this.DurationScalingDistanceDict[1]=this.NoteDistancesScalingFactors[t];break;case 7:this.DurationDistanceDict[2]=this.NoteDistances[t],this.DurationScalingDistanceDict[2]=this.NoteDistancesScalingFactors[t]}}calculateCurveParametersArrays(){this.TPower3=new Array(this.BezierCurveStepSize),this.OneMinusTPower3=new Array(this.BezierCurveStepSize),this.FactorOne=new Array(this.BezierCurveStepSize),this.FactorTwo=new Array(this.BezierCurveStepSize);for(let t=0;t<this.BezierCurveStepSize;t++){const e=t/this.BezierCurveStepSize;this.TPower3[t]=Math.pow(e,3),this.OneMinusTPower3[t]=Math.pow(1-e,3),this.FactorOne[t]=3*Math.pow(1-e,2)*e,this.FactorTwo[t]=3*(1-e)*Math.pow(e,2)}}}e.EngravingRules=f,f.unit=1;class p{constructor(t,e,n="noIdStringGiven"){this.width=t,this.height=e,this.idString=n}get aspectRatio(){return this.IsUndefined?0:this.width/this.height}get IsUndefined(){return void 0===this.width||void 0===this.height||0===this.height||0===this.width}static get UndefinedPageFormat(){return new p(0,0)}Equals(t){return!!t&&t.width===this.width&&t.height===this.height}}e.PageFormat=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GraphicalLine=void 0;const i=n(22);e.GraphicalLine=class{constructor(t,e,n=0,s=i.OutlineAndFillStyleEnum.BaseWritingColor){this.start=t,this.end=e,this.width=n,this.styleId=s}get Start(){return this.start}set Start(t){this.start=t}get End(){return this.end}set End(t){this.end=t}get Width(){return this.width}set Width(t){this.width=t}}},function(t,e,n){"use strict";var i,s;Object.defineProperty(e,"__esModule",{value:!0}),e.AlignmentType=e.RepetitionInstructionEnum=e.RepetitionInstruction=e.RepetitionInstructionComparer=void 0,e.RepetitionInstructionComparer=class{static Compare(t,e){if(void 0!==t.parentRepetition&&e.parentRepetition){if(t.alignment===s.End&&e.alignment===s.End){if(t.parentRepetition.StartIndex<e.parentRepetition.StartIndex)return 1;if(t.parentRepetition.StartIndex>e.parentRepetition.StartIndex)return-1}if(t.alignment===s.Begin&&e.alignment===s.Begin){if(t.parentRepetition.EndIndex<e.parentRepetition.EndIndex)return 1;if(t.parentRepetition.EndIndex>e.parentRepetition.EndIndex)return-1}}return 0}},e.RepetitionInstruction=class{constructor(t,e,n=s.End,i,r){this.endingIndices=void 0,this.measureIndex=t,r&&(this.endingIndices=r.slice()),this.type=e,this.alignment=n,this.parentRepetition=i}CompareTo(t){const e=t;if(this.measureIndex>e.measureIndex)return 1;if(this.measureIndex<e.measureIndex)return-1;if(this.alignment===s.Begin){if(e.alignment===s.End)return-1;switch(this.type){case i.Ending:return 1;case i.StartLine:return e.type===i.Ending?-1:1;case i.Coda:case i.Segno:return e.type===i.Coda?1:-1}}else{if(e.alignment===s.Begin)return 1;switch(this.type){case i.Ending:return-1;case i.Fine:case i.ToCoda:return e.type===i.Ending?1:-1;case i.ForwardJump:switch(e.type){case i.Ending:case i.Fine:case i.ToCoda:return 1}return-1;case i.DalSegnoAlFine:case i.DaCapoAlFine:case i.DalSegnoAlCoda:case i.DaCapoAlCoda:case i.DaCapo:case i.DalSegno:case i.BackJumpLine:return 1}}return 0}equals(t){if(this.measureIndex!==t.measureIndex||this.type!==t.type||this.alignment!==t.alignment)return!1;if(this.endingIndices===t.endingIndices)return!0;if(!this.endingIndices||!t.endingIndices||this.endingIndices.length!==t.endingIndices.length)return!1;for(let e=0;e<this.endingIndices.length;e++)if(this.endingIndices[e]!==t.endingIndices[e])return!1;return!0}},function(t){t[t.StartLine=0]="StartLine",t[t.ForwardJump=1]="ForwardJump",t[t.BackJumpLine=2]="BackJumpLine",t[t.Ending=3]="Ending",t[t.DaCapo=4]="DaCapo",t[t.DalSegno=5]="DalSegno",t[t.Fine=6]="Fine",t[t.ToCoda=7]="ToCoda",t[t.DalSegnoAlFine=8]="DalSegnoAlFine",t[t.DaCapoAlFine=9]="DaCapoAlFine",t[t.DalSegnoAlCoda=10]="DalSegnoAlCoda",t[t.DaCapoAlCoda=11]="DaCapoAlCoda",t[t.Coda=12]="Coda",t[t.Segno=13]="Segno",t[t.None=14]="None"}(i=e.RepetitionInstructionEnum||(e.RepetitionInstructionEnum={})),function(t){t[t.Begin=0]="Begin",t[t.End=1]="End"}(s=e.AlignmentType||(e.AlignmentType={}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(10),s=function(){function t(t){this.table={},this.nElements=0,this.toStr=t||i.defaultToString}return t.prototype.getValue=function(t){var e=this.table["$"+this.toStr(t)];if(!i.isUndefined(e))return e.value},t.prototype.setValue=function(t,e){if(!i.isUndefined(t)&&!i.isUndefined(e)){var n,s="$"+this.toStr(t),r=this.table[s];return i.isUndefined(r)?(this.nElements++,n=void 0):n=r.value,this.table[s]={key:t,value:e},n}},t.prototype.remove=function(t){var e="$"+this.toStr(t),n=this.table[e];if(!i.isUndefined(n))return delete this.table[e],this.nElements--,n.value},t.prototype.keys=function(){var t=[];for(var e in this.table)if(i.has(this.table,e)){var n=this.table[e];t.push(n.key)}return t},t.prototype.values=function(){var t=[];for(var e in this.table)if(i.has(this.table,e)){var n=this.table[e];t.push(n.value)}return t},t.prototype.forEach=function(t){for(var e in this.table)if(i.has(this.table,e)){var n=this.table[e];if(!1===t(n.key,n.value))return}},t.prototype.containsKey=function(t){return!i.isUndefined(this.getValue(t))},t.prototype.clear=function(){this.table={},this.nElements=0},t.prototype.size=function(){return this.nElements},t.prototype.isEmpty=function(){return this.nElements<=0},t.prototype.toString=function(){var t="{";return this.forEach((function(e,n){t+="\n\t"+e+" : "+n})),t+"\n}"},t}();e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.OctaveEnum=e.OctaveShift=void 0;const i=n(2);var s;e.OctaveShift=class{constructor(t,e){this.setOctaveShiftValue(t,e)}get Type(){return this.octaveValue}set Type(t){this.octaveValue=t}get StaffNumber(){return this.staffNumber}set StaffNumber(t){this.staffNumber=t}get ParentStartMultiExpression(){return this.startMultiExpression}set ParentStartMultiExpression(t){this.startMultiExpression=t}get ParentEndMultiExpression(){return this.endMultiExpression}set ParentEndMultiExpression(t){this.endMultiExpression=t}setOctaveShiftValue(t,e){this.octaveValue=1===e&&"down"===t?s.VA8:1===e&&"up"===t?s.VB8:2===e&&"down"===t?s.MA15:2===e&&"up"===t?s.MB15:s.NONE}static getPitchFromOctaveShift(t,e){let n=t.Octave;switch(e){case s.VA8:n-=1;break;case s.VB8:n+=1;break;case s.MA15:n-=2;break;case s.MB15:n+=2;break;case s.NONE:default:n+=0}return new i.Pitch(t.FundamentalNote,n,t.Accidental)}},function(t){t[t.VA8=0]="VA8",t[t.VB8=1]="VB8",t[t.MA15=2]="MA15",t[t.MB15=3]="MB15",t[t.NONE=4]="NONE"}(s=e.OctaveEnum||(e.OctaveEnum={}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SourceStaffEntry=void 0;const i=n(0),s=n(7),r=n(16),o=n(17);e.SourceStaffEntry=class{constructor(t,e){this.voiceEntries=[],this.instructions=[],this.chordSymbolContainers=[],this.verticalContainerParent=t,this.parentStaff=e}get ParentStaff(){return this.parentStaff}get VerticalContainerParent(){return this.verticalContainerParent}get Timestamp(){if(this.VerticalContainerParent)return this.VerticalContainerParent.Timestamp}get AbsoluteTimestamp(){if(this.VerticalContainerParent)return i.Fraction.plus(this.VerticalContainerParent.ParentMeasure.AbsoluteTimestamp,this.VerticalContainerParent.Timestamp)}get VoiceEntries(){return this.voiceEntries}set VoiceEntries(t){this.voiceEntries=t}get Link(){return this.staffEntryLink}set Link(t){this.staffEntryLink=t}get Instructions(){return this.instructions}set Instructions(t){this.instructions=t}get ChordContainers(){return this.chordSymbolContainers}set ChordContainers(t){this.chordSymbolContainers=t}removeAllInstructionsOfTypeClefInstruction(){let t=0,e=0;for(;t<this.instructions.length;)this.instructions[t]instanceof s.ClefInstruction?(this.instructions.splice(t,1),e++):t++;return e}removeFirstInstructionOfTypeClefInstruction(){for(let t=0;t<this.instructions.length;t++)if(this.instructions[t]instanceof s.ClefInstruction)return this.instructions.splice(t,1),!0;return!1}removeAllInstructionsOfTypeKeyInstruction(){let t=0,e=0;for(;t<this.instructions.length;)this.instructions[t]instanceof r.KeyInstruction?(this.instructions.splice(t,1),e++):t++;return e}removeFirstInstructionOfTypeKeyInstruction(){for(let t=0;t<this.instructions.length;t++)if(this.instructions[t]instanceof r.KeyInstruction)return this.instructions.splice(t,1),!0;return!1}removeAllInstructionsOfTypeRhythmInstruction(){let t=0,e=0;for(;t<this.instructions.length;)this.instructions[t]instanceof o.RhythmInstruction?(this.instructions.splice(t,1),e++):t++;return e}removeFirstInstructionOfTypeRhythmInstruction(){for(let t=0;t<this.instructions.length;t++)if(this.instructions[t]instanceof o.RhythmInstruction)return this.instructions.splice(t,1),!0;return!1}calculateMinNoteLength(){let t=new i.Fraction(Number.MAX_VALUE,1);for(let e=0,n=this.VoiceEntries.length;e<n;++e){const n=this.VoiceEntries[e];for(let e=0,i=n.Notes.length;e<i;++e){const i=n.Notes[e];i.Length.lt(t)&&(t=i.Length)}}return t}calculateMaxNoteLength(){let t=new i.Fraction(0,1);for(let e=0,n=this.VoiceEntries.length;e<n;++e){const n=this.VoiceEntries[e];for(let e=0,s=n.Notes.length;e<s;++e){const s=n.Notes[e];if(s.NoteTie){const e=i.Fraction.createFromFraction(s.Length);let n=!1;for(const t of s.NoteTie.Notes)t!==s?n&&e.Add(t.Length):n=!0;t.lt(e)&&(t=e)}else t.lt(s.Length)&&(t=s.Length)}}return t}hasNotes(){for(let t=0,e=this.VoiceEntries.length;t<e;++t)if(this.VoiceEntries[t].Notes.length>0)return!0;return!1}hasTie(){for(let t=0,e=this.VoiceEntries.length;t<e;++t)if(this.VoiceEntries[t].hasTie())return!0;return!1}findLinkedNotes(t){for(let e=0,n=this.voiceEntries.length;e<n;++e){const n=this.voiceEntries[e];for(let e=0,i=n.Notes.length;e<i;++e){const i=n.Notes[e];i.ParentStaffEntry===this&&t.push(i)}}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ContDynamicEnum=e.ContinuousDynamicExpression=void 0;const i=n(3),s=n(0);class r extends i.AbstractExpression{constructor(t,e,n,i,s=""){super(e),super.parentMeasure=i,this.dynamicType=t,this.label=s,this.staffNumber=n,this.startVolume=-1,this.endVolume=-1,""!==s&&this.setType()}get DynamicType(){return this.dynamicType}set DynamicType(t){this.dynamicType=t}get StartMultiExpression(){return this.startMultiExpression}set StartMultiExpression(t){this.startMultiExpression=t}get EndMultiExpression(){return this.endMultiExpression}set EndMultiExpression(t){this.endMultiExpression=t}get Placement(){return this.placement}set Placement(t){this.placement=t}get StartVolume(){return this.startVolume}set StartVolume(t){this.startVolume=t}get EndVolume(){return this.endVolume}set EndVolume(t){this.endVolume=t}get StaffNumber(){return this.staffNumber}set StaffNumber(t){this.staffNumber=t}get Label(){return this.label}set Label(t){this.label=t,this.setType()}static isInputStringContinuousDynamic(t){return!!t&&(r.isStringInStringList(r.listContinuousDynamicIncreasing,t)||r.isStringInStringList(r.listContinuousDynamicDecreasing,t))}getInterpolatedDynamic(t){const e=this.StartMultiExpression.AbsoluteTimestamp;let n;if(n=this.EndMultiExpression?this.EndMultiExpression.AbsoluteTimestamp:s.Fraction.plus(this.startMultiExpression.SourceMeasureParent.AbsoluteTimestamp,this.startMultiExpression.SourceMeasureParent.Duration),t.lt(e))return-1;if(n.lt(t))return-2;const i=s.Fraction.minus(t,e).RealValue/s.Fraction.minus(n,e).RealValue;return Math.max(0,Math.min(99.9,this.startVolume+(this.endVolume-this.startVolume)*i))}isWedge(){return!this.label}setType(){r.isStringInStringList(r.listContinuousDynamicIncreasing,this.label)?this.dynamicType=o.crescendo:r.isStringInStringList(r.listContinuousDynamicDecreasing,this.label)&&(this.dynamicType=o.diminuendo)}}var o;e.ContinuousDynamicExpression=r,r.listContinuousDynamicIncreasing=["crescendo","cresc","cresc.","cres."],r.listContinuousDynamicDecreasing=["decrescendo","decresc","decr.","diminuendo","dim.","dim"],function(t){t[t.crescendo=0]="crescendo",t[t.diminuendo=1]="diminuendo"}(o=e.ContDynamicEnum||(e.ContDynamicEnum={}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DrawingParameters=e.DrawingParametersEnum=e.ColoringModes=void 0;const i=n(26),s=n(3);var r;!function(t){t[t.XML=0]="XML",t[t.AutoColoring=1]="AutoColoring",t[t.CustomColorSet=2]="CustomColorSet"}(e.ColoringModes||(e.ColoringModes={})),function(t){t.allon="allon",t.compact="compact",t.compacttight="compacttight",t.default="default",t.leadsheet="leadsheet",t.preview="preview",t.thumbnail="thumbnail"}(r=e.DrawingParametersEnum||(e.DrawingParametersEnum={})),e.DrawingParameters=class{constructor(t=r.default){this.rules=new i.EngravingRules,this.drawTitle=!0,this.drawSubtitle=!0,this.drawLyricist=!0,this.drawComposer=!0,this.drawCredits=!0,this.drawPartNames=!0,this.fingeringPosition=s.PlacementEnum.Left,this.drawHiddenNotes=!1,this.DrawingParametersEnum=t}set DrawingParametersEnum(t){switch(this.drawingParametersEnum=t,t){case r.allon:this.setForAllOn();break;case r.thumbnail:this.setForThumbnail();break;case r.leadsheet:this.setForLeadsheet();break;case r.compact:this.setForCompactMode();break;case r.compacttight:this.setForCompactTightMode();break;case r.default:default:this.setForDefault()}}get DrawingParametersEnum(){return this.drawingParametersEnum}setForAllOn(){this.drawHighlights=!0,this.drawErrors=!0,this.drawSelectionStartSymbol=!0,this.drawSelectionEndSymbol=!0,this.drawCursors=!0,this.drawActivitySymbols=!0,this.drawScrollIndicator=!0,this.drawComments=!0,this.drawMarkedAreas=!0,this.DrawTitle=!0,this.DrawSubtitle=!0,this.DrawComposer=!0,this.DrawLyricist=!0,this.drawCredits=!0,this.DrawPartNames=!0,this.drawHiddenNotes=!0,this.rules.CompactMode=!1}setForDefault(){this.setForAllOn(),this.drawHiddenNotes=!1}setForThumbnail(){this.drawHighlights=!1,this.drawErrors=!1,this.drawSelectionStartSymbol=!1,this.drawSelectionStartSymbol=!1,this.drawCursors=!1,this.drawActivitySymbols=!1,this.drawScrollIndicator=!1,this.drawComments=!0,this.drawMarkedAreas=!0,this.drawHiddenNotes=!1}setForCompactMode(){this.setForDefault(),this.rules.CompactMode=!0,this.DrawCredits=!1,this.drawHiddenNotes=!1}setForCompactTightMode(){this.setForCompactMode(),this.DrawPartNames=!1,this.rules.VoiceSpacingMultiplierVexflow=.65,this.rules.VoiceSpacingAddendVexflow=2,this.rules.MinSkyBottomDistBetweenStaves=1,this.rules.MinSkyBottomDistBetweenSystems=1,this.rules.BetweenStaffDistance=2.5,this.rules.StaffDistance=3.5,this.rules.MinimumDistanceBetweenSystems=1,this.rules.PageBottomMargin=1,this.rules.PageLeftMargin=2,this.rules.PageRightMargin=2}setForLeadsheet(){this.drawHighlights=!1,this.drawErrors=!1,this.drawSelectionStartSymbol=!0,this.drawSelectionEndSymbol=!0,this.drawCursors=!0,this.drawActivitySymbols=!1,this.drawScrollIndicator=!0,this.drawComments=!0,this.drawMarkedAreas=!0}get DrawCredits(){return this.drawCredits}set DrawCredits(t){this.drawCredits=t,this.DrawComposer=t,this.DrawTitle=t,this.DrawSubtitle=t,this.DrawLyricist=t}get DrawTitle(){return this.drawTitle}set DrawTitle(t){this.drawTitle=t,this.rules.RenderTitle=t,t||(this.DrawSubtitle=!1)}get DrawSubtitle(){return this.drawSubtitle}set DrawSubtitle(t){this.drawSubtitle=t,this.rules.RenderSubtitle=t,t&&(this.DrawTitle=!0)}get DrawComposer(){return this.drawComposer}set DrawComposer(t){this.drawComposer=t,this.rules.RenderComposer=t}get DrawLyricist(){return this.drawLyricist}set DrawLyricist(t){this.drawLyricist=t,this.rules.RenderLyricist=t}get DrawPartNames(){return this.drawPartNames}set DrawPartNames(t){this.drawPartNames=t,this.rules.RenderPartNames=t,this.rules.RenderPartNames||(this.rules.RenderPartAbbreviations=!1)}get FingeringPosition(){return this.fingeringPosition}set FingeringPosition(t){this.fingeringPosition=t,this.rules.FingeringPosition=t}get Rules(){return this.rules}set Rules(t){this.rules=t}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CollectionUtil=void 0,Array.prototype.last||(Array.prototype.last=function(){return this[this.length-1]}),Array.prototype.clear||(Array.prototype.clear=function(){this.length=0}),Array.prototype.contains||(Array.prototype.contains=function(t){return-1!==this.indexOf(t)}),e.CollectionUtil=class{static contains2(t,e){for(let n=0;n<t.length;n++)if(t[n]===e)return!0;return!1}static last(t){return t[t.length-1]}static removeDictElementIfTrue(t,e,n){const i=[];e.forEach((function(e,s){n(t,e,s)&&i.push(e)}));for(let s=0;s<i.length;s++)e.remove(i[s])}static getLastElement(t){return t[t.length-1]}static binarySearch(t,e,n,i=0,s=t.length-1){let r=1;for(;i<s;){r=Math.floor((i+s)/2);const o=n(t[r],e);if(0===o)return r;o<0&&(i=r+1),0<o&&(s=r)}return-r}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(10);function s(t,e,n){for(var s=n||i.defaultEquals,r=t.length,o=0;o<r;o++)if(s(t[o],e))return o;return-1}e.indexOf=s,e.lastIndexOf=function(t,e,n){for(var s=n||i.defaultEquals,r=t.length-1;r>=0;r--)if(s(t[r],e))return r;return-1},e.contains=function(t,e,n){return s(t,e,n)>=0},e.remove=function(t,e,n){var i=s(t,e,n);return!(i<0)&&(t.splice(i,1),!0)},e.frequency=function(t,e,n){for(var s=n||i.defaultEquals,r=t.length,o=0,a=0;a<r;a++)s(t[a],e)&&o++;return o},e.equals=function(t,e,n){var s=n||i.defaultEquals;if(t.length!==e.length)return!1;for(var r=t.length,o=0;o<r;o++)if(!s(t[o],e[o]))return!1;return!0},e.copy=function(t){return t.concat()},e.swap=function(t,e,n){if(e<0||e>=t.length||n<0||n>=t.length)return!1;var i=t[e];return t[e]=t[n],t[n]=i,!0},e.toString=function(t){return"["+t.toString()+"]"},e.forEach=function(t,e){for(var n=0,i=t;n<i.length;n++)if(!1===e(i[n]))return}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Appearance=e.Note=void 0;const i=n(0);e.Note=class{constructor(t,e,n,i,s,r){this.slurs=[],this.playbackInstrumentId=void 0,this.notehead=void 0,this.printObject=!0,this.voiceEntry=t,this.parentStaffEntry=e,this.length=n,this.pitch=i,this.sourceMeasure=s,this.isRestFlag=null!=r&&r,this.halfTone=i?i.getHalfTone():0}get NoteAsString(){return this.pitch.toString()}get ParentVoiceEntry(){return this.voiceEntry}set ParentVoiceEntry(t){this.voiceEntry=t}get ParentStaffEntry(){return this.parentStaffEntry}get ParentStaff(){return this.parentStaffEntry.ParentStaff}get Length(){return this.length}set Length(t){this.length=t}get SourceMeasure(){return this.sourceMeasure}get TypeLength(){return this.typeLength}set TypeLength(t){this.typeLength=t}get NoteTypeXml(){return this.noteTypeXml}set NoteTypeXml(t){this.noteTypeXml=t}get NormalNotes(){return this.normalNotes}set NormalNotes(t){this.normalNotes=t}get Pitch(){return this.pitch}get NoteBeam(){return this.beam}set NoteBeam(t){this.beam=t}set Notehead(t){this.notehead=t}get Notehead(){return this.notehead}get NoteTuplet(){return this.tuplet}set NoteTuplet(t){this.tuplet=t}get NoteTie(){return this.tie}set NoteTie(t){this.tie=t}get NoteSlurs(){return this.slurs}set NoteSlurs(t){this.slurs=t}get PlaybackInstrumentId(){return this.playbackInstrumentId}set PlaybackInstrumentId(t){this.playbackInstrumentId=t}get PrintObject(){return this.printObject}set PrintObject(t){this.printObject=t}get Arpeggio(){return this.arpeggio}set Arpeggio(t){this.arpeggio=t}get IsCueNote(){return this.isCueNote}set IsCueNote(t){this.isCueNote=t}get StemDirectionXml(){return this.stemDirectionXml}set StemDirectionXml(t){this.stemDirectionXml=t}get TremoloStrokes(){return this.tremoloStrokes}set TremoloStrokes(t){this.tremoloStrokes=t}get StemColorXml(){return this.stemColorXml}set StemColorXml(t){this.stemColorXml=t}get NoteheadColorXml(){return this.noteheadColorXml}set NoteheadColorXml(t){this.noteheadColorXml=t}get NoteheadColor(){return this.noteheadColor}set NoteheadColor(t){this.noteheadColor=t}get NoteheadColorCurrentlyRendered(){return this.noteheadColorCurrentlyRendered}set NoteheadColorCurrentlyRendered(t){this.noteheadColorCurrentlyRendered=t}isRest(){return this.isRestFlag}isWholeRest(){return this.isRest()&&this.Length.RealValue===this.sourceMeasure.ActiveTimeSignature.RealValue}ToString(){return this.pitch?this.Pitch.ToString()+", length: "+this.length.toString():"rest note, length: "+this.length.toString()}getAbsoluteTimestamp(){return i.Fraction.plus(this.voiceEntry.Timestamp,this.sourceMeasure.AbsoluteTimestamp)}checkForDoubleSlur(t){for(let e=0,n=this.slurs.length;e<n;++e){const n=this.slurs[e];if(void 0!==n.StartNote&&void 0!==n.EndNote&&void 0!==t.StartNote&&t.StartNote===n.StartNote&&n.EndNote===this)return!0}return!1}},function(t){t[t.Normal=0]="Normal",t[t.Grace=1]="Grace",t[t.Cue=2]="Cue"}(e.Appearance||(e.Appearance={}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NoteTypeHandler=e.NoteType=void 0;const i=n(0),s=n(21),r=n(11);var o;!function(t){t[t.UNDEFINED=0]="UNDEFINED",t[t._1024th=1]="_1024th",t[t._512th=2]="_512th",t[t._256th=3]="_256th",t[t._128th=4]="_128th",t[t._64th=5]="_64th",t[t._32nd=6]="_32nd",t[t._16th=7]="_16th",t[t.EIGTH=8]="EIGTH",t[t.QUARTER=9]="QUARTER",t[t.HALF=10]="HALF",t[t.WHOLE=11]="WHOLE",t[t.BREVE=12]="BREVE",t[t.LONG=13]="LONG",t[t.MAXIMA=14]="MAXIMA"}(o=e.NoteType||(e.NoteType={}));class a{static NoteTypeToString(t){return this.NoteTypeXmlValues[t]}static StringToNoteType(t){const e=this.NoteTypeXmlValues.indexOf(t);return-1!==e?e:o.UNDEFINED}static getNoteDurationFromType(t){switch(t){case"1024th":return new i.Fraction(1,1024);case"512th":return new i.Fraction(1,512);case"256th":return new i.Fraction(1,256);case"128th":return new i.Fraction(1,128);case"64th":return new i.Fraction(1,64);case"32th":case"32nd":return new i.Fraction(1,32);case"16th":return new i.Fraction(1,16);case"eighth":return new i.Fraction(1,8);case"quarter":return new i.Fraction(1,4);case"half":return new i.Fraction(1,2);case"whole":return new i.Fraction(1,1);case"breve":return new i.Fraction(2,1);case"long":return new i.Fraction(4,1);case"maxima":return new i.Fraction(8,1);default:{const t=s.ITextTranslation.translateText("ReaderErrorMessages/NoteDurationError","Invalid note duration.");throw new r.MusicSheetReadingException(t)}}}}e.NoteTypeHandler=a,a.NoteTypeXmlValues=["","1024th","512th","256th","128th","64th","32nd","16th","eigth","quarter","half","whole","breve","long","maxima"]},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SystemLinePosition=void 0,function(t){t[t.MeasureBegin=0]="MeasureBegin",t[t.MeasureEnd=1]="MeasureEnd"}(e.SystemLinePosition||(e.SystemLinePosition={}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LinkedVoice=void 0;const i=n(47);class s extends i.Voice{constructor(t,e,n){super(t,e),this.master=n}get Master(){return this.master}}e.LinkedVoice=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractGraphicalExpression=void 0;const i=n(6),s=n(4);class r extends i.GraphicalObject{constructor(t,e,n){super(),this.expression=e,this.parentMeasure=n,this.boundingBox=new s.BoundingBox(this,t.PositionAndShape),this.parentStaffLine=t,this.parentStaffLine.AbstractExpressions.push(this),this.rules=t.ParentMusicSystem.rules}get Label(){return this.label}get ParentStaffLine(){return this.parentStaffLine}get SourceExpression(){return this.expression}get Placement(){return this.expression.Placement}}e.AbstractGraphicalExpression=r},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.DynamicEnum=e.InstantaneousDynamicExpression=void 0;const s=n(3),r=n(155),o=n(11),a=i(n(1));class c extends s.AbstractExpression{constructor(t,e,n,i,s){super(n),super.parentMeasure=s,this.dynamicEnum=l[t.toLowerCase()],this.soundDynamic=e,this.staffNumber=i}get ParentMultiExpression(){return this.multiExpression}set ParentMultiExpression(t){this.multiExpression=t}get DynEnum(){return this.dynamicEnum}set DynEnum(t){this.dynamicEnum=t}get SoundDynamic(){return this.soundDynamic}set SoundDynamic(t){this.soundDynamic=t}get Placement(){return this.placement}set Placement(t){this.placement=t}get StaffNumber(){return this.staffNumber}set StaffNumber(t){this.staffNumber=t}get Length(){return Math.abs(this.length)<1e-4&&(this.length=this.calculateLength()),this.length}get MidiVolume(){return 127*c.dynamicToRelativeVolumeDict[this.dynamicEnum]}static isInputStringInstantaneousDynamic(t){return!!t&&c.isStringInStringList(c.listInstantaneousDynamics,t)}getDynamicExpressionSymbol(t){switch(t){case"p":return r.DynamicExpressionSymbolEnum.p;case"f":return r.DynamicExpressionSymbolEnum.f;case"s":return r.DynamicExpressionSymbolEnum.s;case"z":return r.DynamicExpressionSymbolEnum.z;case"m":return r.DynamicExpressionSymbolEnum.m;case"r":return r.DynamicExpressionSymbolEnum.r;default:throw new o.InvalidEnumArgumentException("unknown DynamicExpressionSymbolEnum: "+t)}}calculateLength(){return a.default.debug("[Andrea] instantaneousDynamicExpression: not implemented: calculateLength!"),0}}var l;e.InstantaneousDynamicExpression=c,c.dynamicToRelativeVolumeDict={f:92/127,ff:108/127,fff:124/127,ffff:125/127,fffff:126/127,ffffff:1,fp:.5,fz:.5,mf:76/127,mp:60/127,p:44/127,pp:28/127,ppp:12/127,pppp:10/127,ppppp:8/127,pppppp:6/127,rf:.5,rfz:.5,sf:.5,sff:.5,sffz:.5,sfp:.5,sfpp:.5,sfz:.5},c.listInstantaneousDynamics=["pppppp","ppppp","pppp","ppp","pp","p","ffffff","fffff","ffff","fff","ff","f","mf","mp","sf","sff","sp","spp","fp","rf","rfz","sfz","sffz","fz"],function(t){t[t.pppppp=0]="pppppp",t[t.ppppp=1]="ppppp",t[t.pppp=2]="pppp",t[t.ppp=3]="ppp",t[t.pp=4]="pp",t[t.p=5]="p",t[t.mp=6]="mp",t[t.mf=7]="mf",t[t.f=8]="f",t[t.ff=9]="ff",t[t.fff=10]="fff",t[t.ffff=11]="ffff",t[t.fffff=12]="fffff",t[t.ffffff=13]="ffffff",t[t.sf=14]="sf",t[t.sff=15]="sff",t[t.sfp=16]="sfp",t[t.sfpp=17]="sfpp",t[t.fp=18]="fp",t[t.rf=19]="rf",t[t.rfz=20]="rfz",t[t.sfz=21]="sfz",t[t.sffz=22]="sffz",t[t.fz=23]="fz",t[t.other=24]="other"}(l=e.DynamicEnum||(e.DynamicEnum={}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PagePlacementEnum=e.GraphicalMusicPage=void 0;const i=n(4),s=n(6),r=n(5);class o extends s.GraphicalObject{constructor(t){super(),this.musicSystems=[],this.labels=[],this.parent=t,this.boundingBox=new i.BoundingBox(this,void 0)}get MusicSystems(){return this.musicSystems}set MusicSystems(t){this.musicSystems=t}get Labels(){return this.labels}set Labels(t){this.labels=t}get Parent(){return this.parent}set Parent(t){this.parent=t}get PageNumber(){return this.pageNumber}set PageNumber(t){this.pageNumber=t}setMusicPageAbsolutePosition(t,e){return new r.PointF2D(0,0)}}e.GraphicalMusicPage=o,function(t){t[t.Down=0]="Down",t[t.Right=1]="Right",t[t.RightDown=2]="RightDown"}(e.PagePlacementEnum||(e.PagePlacementEnum={}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ChordSymbolEnum=e.ChordDegreeText=e.Degree=e.ChordSymbolContainer=void 0;const i=n(2),s=n(15),r=n(2);var o;e.ChordSymbolContainer=class{constructor(t,e,n,i,s){this.rootPitch=t,this.chordKind=e,this.bassPitch=n,this.degree=i,this.rules=s}get RootPitch(){return this.rootPitch}get ChordKind(){return this.chordKind}get BassPitch(){return this.bassPitch}get ChordDegree(){return this.degree}static calculateChordText(t,e,n){let a=t.RootPitch;s.MusicSheetCalculator.transposeCalculator&&(a=s.MusicSheetCalculator.transposeCalculator.transposePitch(t.RootPitch,n,e));let c=i.Pitch.getNoteEnumString(a.FundamentalNote);if(a.Accidental!==r.AccidentalEnum.NONE&&(c+=this.getTextForAccidental(a.Accidental)),c+=t.getTextFromChordKindEnum(t.ChordKind),t.ChordDegree)switch(t.ChordDegree.text){case o.add:c+="add",c+=t.ChordDegree.value.toString();break;case o.alter:t.ChordDegree.alteration!==r.AccidentalEnum.NONE&&(c+=this.getTextForAccidental(t.ChordDegree.alteration)),c+=t.ChordDegree.value.toString();break;case o.subtract:c+="(omit",c+=t.ChordDegree.value.toString(),c+=")"}if(t.BassPitch){let r=t.BassPitch;s.MusicSheetCalculator.transposeCalculator&&(r=s.MusicSheetCalculator.transposeCalculator.transposePitch(t.BassPitch,n,e)),c+="/",c+=i.Pitch.getNoteEnumString(r.FundamentalNote),c+=this.getTextForAccidental(r.Accidental)}return c}static getTextForAccidental(t){let e="";switch(t){case r.AccidentalEnum.DOUBLEFLAT:e+="bb";break;case r.AccidentalEnum.FLAT:e+="b";break;case r.AccidentalEnum.SHARP:e+="#";break;case r.AccidentalEnum.DOUBLESHARP:e+="x"}return e}getTextFromChordKindEnum(t){var e;return null!==(e=this.rules.ChordSymbolLabelTexts.getValue(t))&&void 0!==e?e:""}},e.Degree=class{constructor(t,e,n){this.value=t,this.alteration=e,this.text=n}},function(t){t[t.add=0]="add",t[t.alter=1]="alter",t[t.subtract=2]="subtract"}(o=e.ChordDegreeText||(e.ChordDegreeText={})),function(t){t[t.major=0]="major",t[t.minor=1]="minor",t[t.augmented=2]="augmented",t[t.diminished=3]="diminished",t[t.dominant=4]="dominant",t[t.majorseventh=5]="majorseventh",t[t.minorseventh=6]="minorseventh",t[t.diminishedseventh=7]="diminishedseventh",t[t.augmentedseventh=8]="augmentedseventh",t[t.halfdiminished=9]="halfdiminished",t[t.majorminor=10]="majorminor",t[t.majorsixth=11]="majorsixth",t[t.minorsixth=12]="minorsixth",t[t.dominantninth=13]="dominantninth",t[t.majorninth=14]="majorninth",t[t.minorninth=15]="minorninth",t[t.dominant11th=16]="dominant11th",t[t.major11th=17]="major11th",t[t.minor11th=18]="minor11th",t[t.dominant13th=19]="dominant13th",t[t.major13th=20]="major13th",t[t.minor13th=21]="minor13th",t[t.suspendedsecond=22]="suspendedsecond",t[t.suspendedfourth=23]="suspendedfourth",t[t.Neapolitan=24]="Neapolitan",t[t.Italian=25]="Italian",t[t.French=26]="French",t[t.German=27]="German",t[t.pedal=28]="pedal",t[t.power=29]="power",t[t.Tristan=30]="Tristan"}(e.ChordSymbolEnum||(e.ChordSymbolEnum={}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractNotationInstruction=void 0,e.AbstractNotationInstruction=class{constructor(t){this.printObject=!0,this.parent=t}get Parent(){return this.parent}set Parent(t){this.parent=t}get PrintObject(){return this.printObject}set PrintObject(t){this.printObject=t}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.OrnamentEnum=e.OrnamentContainer=void 0;const i=n(2),s=n(3);e.OrnamentContainer=class{constructor(t){this.placement=s.PlacementEnum.Above,this.accidentalAbove=i.AccidentalEnum.NONE,this.accidentalBelow=i.AccidentalEnum.NONE,this.ornament=t}get GetOrnament(){return this.ornament}get AccidentalAbove(){return this.accidentalAbove}set AccidentalAbove(t){this.accidentalAbove=t}get AccidentalBelow(){return this.accidentalBelow}set AccidentalBelow(t){this.accidentalBelow=t}},function(t){t[t.Trill=0]="Trill",t[t.Turn=1]="Turn",t[t.InvertedTurn=2]="InvertedTurn",t[t.DelayedTurn=3]="DelayedTurn",t[t.DelayedInvertedTurn=4]="DelayedInvertedTurn",t[t.Mordent=5]="Mordent",t[t.InvertedMordent=6]="InvertedMordent"}(e.OrnamentEnum||(e.OrnamentEnum={}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Voice=void 0,e.Voice=class{constructor(t,e){this.voiceEntries=[],this.volume=1,this.parent=t,this.visible=!0,this.audible=!0,this.following=!0,this.voiceId=e}get VoiceEntries(){return this.voiceEntries}get Parent(){return this.parent}get Visible(){return this.visible}set Visible(t){this.visible=t}get Audible(){return this.audible}set Audible(t){this.audible=t}get Following(){return this.following}set Following(t){this.following=t}get VoiceId(){return this.voiceId}get Volume(){return this.volume}set Volume(t){this.volume=t}}},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.GraphicalContinuousDynamicExpression=void 0;const s=n(27),r=n(32),o=n(5),a=n(40),c=n(3),l=i(n(1));class u extends a.AbstractGraphicalExpression{constructor(t,e,n){super(e,t,n),this.lines=[],this.isSplittedPart=!1,this.notToBeRemoved=!1}get StartMeasure(){return this.startMeasure}set StartMeasure(t){this.startMeasure=t}get EndMeasure(){return this.endMeasure}set EndMeasure(t){this.endMeasure=t}get EndStaffLine(){return this.endMeasure?this.endMeasure.ParentStaffLine:void 0}get IsSplittedPart(){return this.isSplittedPart}set IsSplittedPart(t){this.isSplittedPart=t}get IsVerbal(){return this.ContinuousDynamic.Label&&this.ContinuousDynamic.Label.length>0}get NotToBeRemoved(){return this.notToBeRemoved}set NotToBeRemoved(t){this.notToBeRemoved=t}get Lines(){return this.lines}get ContinuousDynamic(){return this.SourceExpression}updateSkyBottomLine(){var t;const e=this.parentStaffLine.SkyBottomLineCalculator,n=this.IsVerbal?this.label.PositionAndShape.RelativePosition.x+this.label.PositionAndShape.BorderMarginLeft:0,i=this.IsVerbal?this.label.PositionAndShape.RelativePosition.x+this.label.PositionAndShape.BorderMarginRight:0;switch(!this.IsVerbal&&this.lines.length<2&&l.default.warn("Not enough lines for SkyBottomLine calculation"),this.IsVerbal||this.ContinuousDynamic.DynamicType!==r.ContDynamicEnum.crescendo&&this.ContinuousDynamic.DynamicType!==r.ContDynamicEnum.diminuendo&&l.default.warn("GraphicalContinuousDynamicExpression.updateSkyBottomLine(): unhandled continuous dynamic type. start measure: "+(null===(t=this.startMeasure)||void 0===t?void 0:t.MeasureNumber)),this.Placement){case c.PlacementEnum.Above:if(this.IsVerbal){const t=this.label.PositionAndShape.BorderMarginTop+this.label.PositionAndShape.RelativePosition.y;e.updateSkyLineInRange(n,i,t)}else this.ContinuousDynamic.DynamicType===r.ContDynamicEnum.crescendo?e.updateSkyLineWithWedge(this.lines[0].Start,this.lines[0].End):this.ContinuousDynamic.DynamicType===r.ContDynamicEnum.diminuendo&&e.updateSkyLineWithWedge(this.lines[0].End,this.lines[0].Start);break;case c.PlacementEnum.Below:if(this.IsVerbal){const t=this.label.PositionAndShape.BorderMarginBottom+this.label.PositionAndShape.RelativePosition.y;e.updateBottomLineInRange(n,i,t)}else this.ContinuousDynamic.DynamicType===r.ContDynamicEnum.crescendo?e.updateBottomLineWithWedge(this.lines[1].Start,this.lines[1].End):this.ContinuousDynamic.DynamicType===r.ContDynamicEnum.diminuendo&&e.updateBottomLineWithWedge(this.lines[1].End,this.lines[1].Start);break;default:l.default.error("Placement for GraphicalContinuousDynamicExpression is unknown")}}createCrescendoLines(t,e,n,i=this.rules.WedgeOpeningLength,s=this.rules.WedgeLineWidth){const r=new o.PointF2D(t,n),a=new o.PointF2D(e,n-i/2),c=new o.PointF2D(e,n+i/2);this.addWedgeLines(r,a,c,s)}createFirstHalfCrescendoLines(t,e,n,i=this.rules.WedgeMeasureEndOpeningLength,s=this.rules.WedgeLineWidth){const r=new o.PointF2D(t,n),a=new o.PointF2D(e,n-i/2),c=new o.PointF2D(e,n+i/2);this.addWedgeLines(r,a,c,s)}createSecondHalfCrescendoLines(t,e,n,i=this.rules.WedgeMeasureBeginOpeningLength,s=this.rules.WedgeOpeningLength,r=this.rules.WedgeLineWidth){const a=new o.PointF2D(t,n-i/2),c=new o.PointF2D(t,n+i/2),l=new o.PointF2D(e,n-s/2),u=new o.PointF2D(e,n+s/2);this.addDoubleLines(a,l,c,u,r)}recalculateCrescendoLines(t,e,n){const i=Math.abs(this.lines[0].Start.y-this.lines[1].Start.y)>1e-4;this.lines.clear(),i?this.createSecondHalfCrescendoLines(t,e,n):this.isSplittedPart?this.createFirstHalfCrescendoLines(t,e,n):this.createCrescendoLines(t,e,n)}createDiminuendoLines(t,e,n,i=this.rules.WedgeOpeningLength,s=this.rules.WedgeLineWidth){const r=new o.PointF2D(t,n-i/2),a=new o.PointF2D(t,n+i/2),c=new o.PointF2D(e,n);this.addWedgeLines(c,r,a,s)}createFirstHalfDiminuendoLines(t,e,n,i=this.rules.WedgeOpeningLength,s=this.rules.WedgeMeasureEndOpeningLength,r=this.rules.WedgeLineWidth){const a=new o.PointF2D(t,n-i/2),c=new o.PointF2D(t,n+i/2),l=new o.PointF2D(e,n-s/2),u=new o.PointF2D(e,n+s/2);this.addDoubleLines(a,l,c,u,r)}createSecondHalfDiminuendoLines(t,e,n,i=this.rules.WedgeMeasureBeginOpeningLength,s=this.rules.WedgeLineWidth){const r=new o.PointF2D(t,n-i/2),a=new o.PointF2D(t,n+i/2),c=new o.PointF2D(e,n);this.addWedgeLines(c,r,a,s)}recalculateDiminuendoLines(t,e,n){const i=Math.abs(this.lines[0].End.y-this.lines[1].End.y)>1e-4;this.lines.clear(),i?this.createFirstHalfDiminuendoLines(t,e,n):this.isSplittedPart?this.createSecondHalfDiminuendoLines(t,e,n):this.createDiminuendoLines(t,e,n)}calcPsi(){this.IsVerbal?this.PositionAndShape.calculateBoundingBox():(this.PositionAndShape.RelativePosition=this.lines[0].Start,this.PositionAndShape.BorderMarginTop=this.lines[0].End.y-this.lines[0].Start.y,this.PositionAndShape.BorderMarginBottom=this.lines[1].End.y-this.lines[1].Start.y,this.PositionAndShape.Center.y=(this.PositionAndShape.BorderMarginTop+this.PositionAndShape.BorderMarginBottom)/2,this.ContinuousDynamic.DynamicType===r.ContDynamicEnum.crescendo?(this.PositionAndShape.BorderMarginLeft=0,this.PositionAndShape.BorderMarginRight=this.lines[0].End.x-this.lines[0].Start.x):(this.PositionAndShape.BorderMarginLeft=this.lines[0].End.x-this.lines[0].Start.x,this.PositionAndShape.BorderMarginRight=0))}cleanUp(){this.lines.clear()}shiftYPosition(t){this.IsVerbal?(this.PositionAndShape.RelativePosition.y+=t,this.PositionAndShape.calculateBoundingBox()):(this.lines[0].Start.y+=t,this.lines[0].End.y+=t,this.lines[1].End.y+=t)}squeeze(t){this.IsVerbal||Math.abs(this.lines[0].End.x-this.lines[0].Start.x)<Math.abs(t)||(this.ContinuousDynamic.DynamicType===r.ContDynamicEnum.crescendo?t>0?this.lines[0].Start.x+=t:(this.lines[0].End.x+=t,this.lines[1].End.x+=t):t<0?this.lines[0].Start.x+=t:(this.lines[0].End.x+=t,this.lines[1].End.x+=t),this.calcPsi())}addWedgeLines(t,e,n,i){const r=new s.GraphicalLine(t,e,i),o=new s.GraphicalLine(t,n,i);this.lines.push(r),this.lines.push(o)}addDoubleLines(t,e,n,i,r){const o=new s.GraphicalLine(t,e,r),a=new s.GraphicalLine(n,i,r);this.lines.push(o),this.lines.push(a)}}e.GraphicalContinuousDynamicExpression=u},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.StavePositionEnum=e.VexFlowMeasure=void 0;const s=i(n(9)),r=n(105),o=n(23),a=n(7),c=n(14);var l=s.default.Flow.NoteSubGroup;const u=i(n(1)),h=n(18),d=n(28),f=n(38),p=n(12),m=n(68),g=n(0),b=n(39),v=n(69),y=n(3),S=n(37);class x extends r.GraphicalMeasure{constructor(t,e,n){super(t,e,n),this.isTabMeasure=!1,this.octaveOffset=3,this.vfVoices={},this.vfTies=[],this.vfRepetitionWords=[],this.connectors=[],this.beams={},this.tuplets={},this.vftuplets={},this.minimumStaffEntriesWidth=-1,n?this.rules=n.ParentMusicSystem.rules:e&&(this.rules=e.Rules),this.resetLayout()}setAbsoluteCoordinates(t,e){this.stave.setX(t).setY(e)}resetLayout(){this.stave=new s.default.Flow.Stave(0,0,0,{fill_style:this.rules.StaffLineColor,space_above_staff_ln:0,space_below_staff_ln:0}),this.ParentStaff&&this.setLineNumber(this.ParentStaff.StafflineCount),this.stave.setBegBarType(s.default.Flow.Barline.type.NONE),this.parentSourceMeasure&&this.parentSourceMeasure.endingBarStyleEnum===o.SystemLinesEnum.None&&this.stave.setEndBarType(s.default.Flow.Barline.type.NONE),this.updateInstructionWidth()}clean(){this.vfTies.length=0,this.connectors=[],this.resetLayout()}getLineWidth(t){switch(t){case o.SystemLinesEnum.BoldThinDots:case o.SystemLinesEnum.DotsThinBold:case o.SystemLinesEnum.DotsBoldBoldDots:return 10/h.unitInPixels;default:return 0}}addClefAtBegin(t){if(this.octaveOffset=t.OctaveOffset,t.ClefType===a.ClefEnum.TAB)this.stave.addClef("tab",void 0,void 0,void 0);else{const e=c.VexFlowConverter.Clef(t,"default");this.stave.addClef(e.type,e.size,e.annotation,s.default.Flow.StaveModifier.Position.BEGIN)}this.updateInstructionWidth()}setLineNumber(t){5!==t&&(0===t?(this.stave.setNumLines(0),this.stave.getBottomLineY=function(){return this.getYForLine(this.options.num_lines)}):1===t?(this.stave.options.line_config=[{visible:!1},{visible:!1},{visible:!0},{visible:!1},{visible:!1}],this.stave.getBottomLineY=function(){return this.getYForLine(2)}):2===t?(this.stave.options.line_config=[{visible:!1},{visible:!1},{visible:!0},{visible:!0},{visible:!1}],this.stave.getBottomLineY=function(){return this.getYForLine(3)}):3===t?(this.stave.options.line_config=[{visible:!1},{visible:!0},{visible:!0},{visible:!0},{visible:!1}],this.stave.getBottomLineY=function(){return this.getYForLine(2)}):(this.stave.setNumLines(t),this.stave.getBottomLineY=function(){return this.getYForLine(this.options.num_lines)}))}addKeyAtBegin(t,e,n){this.stave.setKeySignature(c.VexFlowConverter.keySignature(t),c.VexFlowConverter.keySignature(e),void 0),this.updateInstructionWidth()}addRhythmAtBegin(t){const e=c.VexFlowConverter.TimeSignature(t);this.stave.addModifier(e,s.default.Flow.StaveModifier.Position.BEGIN),this.updateInstructionWidth()}addClefAtEnd(t){const e=c.VexFlowConverter.Clef(t,"small");this.stave.setEndClef(e.type,e.size,e.annotation),this.updateInstructionWidth()}addMeasureLine(t,e,n=!0){switch(e){case f.SystemLinePosition.MeasureBegin:switch(t){case o.SystemLinesEnum.BoldThinDots:n||(this.stave.modifiers[0].draw=function(t){switch(t.checkContext(),this.setRendered(),this.type){case s.default.Flow.Barline.type.SINGLE:this.drawVerticalBar(t,this.x,!1);break;case s.default.Flow.Barline.type.DOUBLE:this.drawVerticalBar(t,this.x,!0);break;case s.default.Flow.Barline.type.END:this.drawVerticalEndBar(t,this.x);break;case s.default.Flow.Barline.type.REPEAT_BEGIN:this.drawRepeatBar(t,this.x,!0);break;case s.default.Flow.Barline.type.REPEAT_END:this.drawRepeatBar(t,this.x,!1);break;case s.default.Flow.Barline.type.REPEAT_BOTH:this.drawRepeatBar(t,this.x,!1),this.drawRepeatBar(t,this.x,!0)}}),this.stave.setBegBarType(s.default.Flow.Barline.type.REPEAT_BEGIN)}break;case f.SystemLinePosition.MeasureEnd:switch(t){case o.SystemLinesEnum.DotsBoldBoldDots:this.stave.setEndBarType(s.default.Flow.Barline.type.REPEAT_BOTH);break;case o.SystemLinesEnum.DotsThinBold:this.stave.setEndBarType(s.default.Flow.Barline.type.REPEAT_END);break;case o.SystemLinesEnum.DoubleThin:this.stave.setEndBarType(s.default.Flow.Barline.type.DOUBLE);break;case o.SystemLinesEnum.ThinBold:this.stave.setEndBarType(s.default.Flow.Barline.type.END);break;case o.SystemLinesEnum.None:this.stave.setEndBarType(s.default.Flow.Barline.type.NONE)}}}addMeasureNumber(){const t=this.MeasureNumber.toString(),e=_.ABOVE;this.stave.setText(t,e,{justification:1,shift_x:0,shift_y:0})}addWordRepetition(t){let e=void 0,n=s.default.Flow.StaveModifier.Position.END;switch(t.type){case d.RepetitionInstructionEnum.Segno:e=s.default.Flow.Repetition.type.SEGNO_LEFT,n=s.default.Flow.StaveModifier.Position.BEGIN;break;case d.RepetitionInstructionEnum.Coda:e=s.default.Flow.Repetition.type.CODA_LEFT,n=s.default.Flow.StaveModifier.Position.BEGIN;break;case d.RepetitionInstructionEnum.DaCapo:e=s.default.Flow.Repetition.type.DC;break;case d.RepetitionInstructionEnum.DalSegno:e=s.default.Flow.Repetition.type.DS;break;case d.RepetitionInstructionEnum.Fine:e=s.default.Flow.Repetition.type.FINE;break;case d.RepetitionInstructionEnum.ToCoda:break;case d.RepetitionInstructionEnum.DaCapoAlFine:e=s.default.Flow.Repetition.type.DC_AL_FINE;break;case d.RepetitionInstructionEnum.DaCapoAlCoda:e=s.default.Flow.Repetition.type.DC_AL_CODA;break;case d.RepetitionInstructionEnum.DalSegnoAlFine:e=s.default.Flow.Repetition.type.DS_AL_FINE;break;case d.RepetitionInstructionEnum.DalSegnoAlCoda:e=s.default.Flow.Repetition.type.DS_AL_CODA}e?this.stave.addModifier(new s.default.Flow.Repetition(e,0,0),n):this.addVolta(t)}addVolta(t){var e;let n=s.default.Flow.Volta.type.BEGIN;if(t.type===d.RepetitionInstructionEnum.Ending){switch(t.alignment){case d.AlignmentType.Begin:n=this.parentSourceMeasure.endsRepetitionEnding()?s.default.Flow.Volta.type.BEGIN_END:s.default.Flow.Volta.type.BEGIN;break;case d.AlignmentType.End:if(this.parentSourceMeasure.beginsRepetitionEnding())return;n=s.default.Flow.Volta.type.END}const i=this.ParentStaffLine.SkyBottomLineCalculator,r=this.PositionAndShape.AbsolutePosition.x+this.PositionAndShape.BorderMarginLeft+.4,o=this.PositionAndShape.AbsolutePosition.x+this.PositionAndShape.BorderMarginRight,a=i.getSkyLineMinInRange(r,o)-2;let c=-6.1+this.rules.VoltaOffset,l=this.rules.VoltaOffset;a<c&&(l+=a-c,c=a);let u=void 0;const h=this.parentSourceMeasure.MeasureNumber;for(let t=0;t<this.ParentStaffLine.Measures.length;t++){const n=this.ParentStaffLine.Measures[t];n instanceof x&&(n.MeasureNumber!==h-1&&n.MeasureNumber+(null===(e=n.parentSourceMeasure)||void 0===e?void 0:e.multipleRestMeasures)!==h||(u=n))}if(u){const t=u.stave.getModifiers();for(let e=0;e<t.length;e++){const n=t[e];if(n.hasOwnProperty("volta")){const t=u.ParentStaffLine.SkyBottomLineCalculator,e=u.PositionAndShape.AbsolutePosition.x+u.PositionAndShape.BorderMarginLeft+.4,i=u.PositionAndShape.AbsolutePosition.x+u.PositionAndShape.BorderMarginRight,s=t.getSkyLineMinInRange(e,i);s<=c?(l+=s-c,c=s):(n.y_shift=10*l,u.ParentStaffLine.SkyBottomLineCalculator.updateSkyLineInRange(e,i,c))}}}l*=10,this.stave.setVoltaType(n,t.endingIndices[0],l),i.updateSkyLineInRange(r,o,c)}}setWidth(t){super.setWidth(t),this.stave.setWidth(t*h.unitInPixels)}layoutSymbols(){}draw(t){this.stave.setContext(t).draw();for(const e in this.vfVoices)this.vfVoices.hasOwnProperty(e)&&(t.save(),this.vfVoices[e].draw(t,this.stave),t.restore());for(const e in this.vfbeams)if(this.vfbeams.hasOwnProperty(e))for(const n of this.vfbeams[e])n.setContext(t).draw();if(this.autoVfBeams)for(const e of this.autoVfBeams)e.setContext(t).draw();if(!this.isTabMeasure||this.rules.TupletNumbersInTabs){if(this.autoTupletVfBeams)for(const e of this.autoTupletVfBeams)e.setContext(t).draw();for(const e in this.vftuplets)if(this.vftuplets.hasOwnProperty(e))for(const n of this.vftuplets[e])n.setContext(t).draw()}for(const e of this.vfTies)e.setContext(t).draw();for(const e of this.connectors)e.setContext(t).draw()}format(){this.formatVoices&&this.formatVoices((this.PositionAndShape.Size.width-this.beginInstructionsWidth-this.endInstructionsWidth)*h.unitInPixels,this)}getVoicesWithinMeasure(){const t=[];for(const e of this.staffEntries)for(const n of e.graphicalVoiceEntries)-1===t.indexOf(n.parentVoiceEntry.ParentVoice)&&t.push(n.parentVoiceEntry.ParentVoice);return t}getGraphicalVoiceEntriesPerVoice(t){const e=[];for(const n of this.staffEntries)for(const i of n.graphicalVoiceEntries)i.parentVoiceEntry.ParentVoice===t&&e.push(i);return e}getRestFilledVexFlowStaveNotesPerVoice(t){let e=void 0;const n=this.getGraphicalVoiceEntriesPerVoice(t);for(let r=0,o=n.length;r<o;++r){const t=n[r],i=t.notes[0].sourceNote.getAbsoluteTimestamp();let s=new g.Fraction;for(const e of t.notes){const t=g.Fraction.plus(e.sourceNote.getAbsoluteTimestamp(),e.sourceNote.Length);s.lt(t)&&(s=t)}if(e){const t=g.Fraction.minus(i,e);if(t.RealValue>0){u.default.trace(`Ghost Found in between (measure ${this.MeasureNumber})`);const e=c.VexFlowConverter.GhostNote(t),i=new m.VexFlowVoiceEntry(void 0,void 0);i.vfStaveNote=e,n.splice(r,0,i),r++}}else{const t=g.Fraction.minus(i,this.parentSourceMeasure.AbsoluteTimestamp);if(t.RealValue>0){u.default.trace(`Ghost Found at start (measure ${this.MeasureNumber})`);const e=c.VexFlowConverter.GhostNote(t),i=new m.VexFlowVoiceEntry(void 0,void 0);i.vfStaveNote=e,n.splice(0,0,i),r++}}e=s}const i=g.Fraction.plus(this.parentSourceMeasure.AbsoluteTimestamp,this.parentSourceMeasure.Duration),s=g.Fraction.minus(i,e);if(s.RealValue>0){u.default.trace(`Ghost Found at end (measure ${this.MeasureNumber})`);const t=c.VexFlowConverter.GhostNote(s),e=new m.VexFlowVoiceEntry(void 0,void 0);e.vfStaveNote=t,n.push(e)}return n}handleBeam(t,e){const n=t.sourceNote.ParentVoiceEntry.ParentVoice.VoiceId;let i,s=this.beams[n];s||(s=this.beams[n]=[]);for(const o of s)o[0]===e&&(i=o);i||(i=[e,[]],s.push(i));const r=t.parentVoiceEntry;i[1].indexOf(r)<0&&i[1].push(r)}handleTuplet(t,e){const n=t.sourceNote.ParentVoiceEntry.ParentVoice.VoiceId;e=t.sourceNote.NoteTuplet;let i,s=this.tuplets[n];s||(s=this.tuplets[n]=[]);for(const o of s)o[0]===e&&(i=o);i||(i=[e,[]],s.push(i));const r=t.parentVoiceEntry;i[1].indexOf(r)<0&&i[1].push(r)}finalizeBeams(){this.vfbeams={};const t=[];for(const e in this.beams)if(this.beams.hasOwnProperty(e)){let n=this.vfbeams[e];n||(n=this.vfbeams[e]=[]);for(const i of this.beams[e]){let e=!1;for(const t of i[0].Notes)if(t.Length.RealValue>=new g.Fraction(1,4).RealValue&&(!t.TypeLength||t.TypeLength.RealValue>.125)){e=!0;break}if(e){u.default.debug("Beam between note >= quarter, likely tremolo, currently unsupported. continuing.");continue}const r=[],o=i[0],a=i[1];let c=!0;for(const t of a)t.parentVoiceEntry.ParentVoice===o.Notes[0].ParentVoiceEntry.ParentVoice&&(c=t.parentVoiceEntry.WantedStemDirection===p.StemDirectionType.Undefined);let l,h=!1;const d=[];for(const n of a){const e=n.vfStaveNote;e&&(r.push(e),t.push(e)),n.parentVoiceEntry.IsGrace&&(h=!0),n.parentVoiceEntry.StemColor&&this.rules.ColoringEnabled&&d.push(n.parentVoiceEntry.StemColor)}if(r.length>1){const t=new s.default.Flow.Beam(r,c);if(h&&(t.render_options.beam_width=3,t.render_options.partial_beam_length=4),d.length>=2&&this.rules.ColorBeams){l=d[0];for(const t of d)if(t!==l){l=void 0;break}t.setStyle({fillStyle:l,strokeStyle:l})}n.push(t)}else u.default.debug("Warning! Beam with no notes!")}}this.rules.AutoBeamNotes&&this.autoBeamNotes(t)}autoBeamNotes(t){let e,n=[],i=[],r=[];this.autoTupletVfBeams=[];const o=[];this.autoVfBeams=[];let a=this.parentSourceMeasure.ActiveTimeSignature;a||(a=this.parentSourceMeasure.Duration);for(const u of this.staffEntries)for(const c of u.graphicalVoiceEntries){const l=c.vfStaveNote,h=c.notes[0],d=u.relInMeasureTimestamp.isOnBeat(a),f=i.length>=2,p=h.sourceNote.Length.RealValue-new g.Fraction(1,4).RealValue>-g.Fraction.FloatInaccuracyTolerance,m=c.parentVoiceEntry.IsGrace||p||t.contains(l);if(m||d){if(f){for(const t of i)n.push(t);o.push(n.slice()),n=[]}if(i=[],m)continue}const b=c.notes[0].sourceNote.NoteTuplet;if(b){let t=!1;for(const e of b.Notes){for(const n of e)if(n.NoteTypeXml>=S.NoteType.QUARTER||n.ParentVoiceEntry.IsGrace||n.isRest()&&!this.rules.AutoBeamOptions.beam_rests){t=!0;break}if(t)break}e?e!==b&&(r.length>1&&this.autoTupletVfBeams.push(new s.default.Flow.Beam(r,!0)),r=[],e=b):e=b,t||r.push(l)}else e=void 0,i.push(l)}if(r.length>=2&&this.autoTupletVfBeams.push(new s.default.Flow.Beam(r,!0)),i.length>=2){for(const t of i)n.push(t);o.push(n)}const c=this.rules.AutoBeamOptions,l={beam_middle_only:c.beam_middle_rests_only,beam_rests:c.beam_rests,maintain_stem_directions:c.maintain_stem_directions};if(c.groups&&c.groups.length){const t=[];for(const e of c.groups)t.push(new s.default.Flow.Fraction(e[0],e[1]));l.groups=t}for(const u of o){const t=s.default.Flow.Beam.generateBeams(u,l);for(const e of t)this.autoVfBeams.push(e)}}finalizeTuplets(){this.vftuplets={};for(const t in this.tuplets)if(this.tuplets.hasOwnProperty(t)){let e=this.vftuplets[t];e||(e=this.vftuplets[t]=[]);for(const n of this.tuplets[t]){const t=[],i=n[1];for(const e of i)t.push(e.vfStaveNote);if(t.length>1){const i=n[0],r=i.Notes[0][0].NormalNotes,o=i.Bracket||3===i.TupletLabelNumber&&this.rules.TripletsBracketed||3!==i.TupletLabelNumber&&this.rules.TupletsBracketed;let a=s.default.Flow.Tuplet.LOCATION_TOP;i.tupletLabelNumberPlacement===y.PlacementEnum.Below&&(a=s.default.Flow.Tuplet.LOCATION_BOTTOM),e.push(new s.default.Flow.Tuplet(t,{bracketed:o,location:a,notes_occupied:r,num_notes:i.TupletLabelNumber,ratioed:this.rules.TupletsRatioed}))}else u.default.debug("Warning! Tuplet with no notes! Trying to ignore, but this is a serious problem.")}}}layoutStaffEntry(t){}graphicalMeasureCreatedCalculations(){let t,e=[];for(const i of this.staffEntries){t=!1,e=[];for(const n of i.graphicalVoiceEntries)if(n.parentVoiceEntry.IsGrace)e.push(n),t||(t=n.parentVoiceEntry.GraceSlur);else if(n.notes[0].sourceNote.PrintObject,n.vfStaveNote=c.VexFlowConverter.StaveNote(n),e.length>0){const i=[];for(let t=0;t<e.length;t++){const n=e[t],s=c.VexFlowConverter.StaveNote(n);n.vfStaveNote=s,i.push(s)}const r=new s.default.Flow.GraceNoteGroup(i,t);n.vfStaveNote.addModifier(0,r),e=[]}}if(e.length>0)for(const i of e)i.vfStaveNote=c.VexFlowConverter.StaveNote(i),i.parentVoiceEntry.GraceAfterMainNote=!0;this.finalizeBeams(),this.finalizeTuplets();const n=this.getVoicesWithinMeasure();for(const i of n){if(!i)continue;const t=!(i instanceof b.LinkedVoice);this.vfVoices[i.VoiceId]=new s.default.Flow.Voice({beat_value:this.parentSourceMeasure.Duration.Denominator,num_beats:this.parentSourceMeasure.Duration.Numerator,resolution:s.default.Flow.RESOLUTION}).setMode(s.default.Flow.Voice.Mode.SOFT);const e=this.getRestFilledVexFlowStaveNotesPerVoice(i);for(const n of e){if(n.parentVoiceEntry&&n.parentVoiceEntry.IsGrace&&!n.parentVoiceEntry.GraceAfterMainNote)continue;const e=n;if(0!==n.notes.length&&n.notes[0]&&n.notes[0].sourceNote.PrintObject){if(t){const t=e.parentStaffEntry;if(t&&t.vfClefBefore){const n=new l([t.vfClefBefore]);e.vfStaveNote.getCategory&&"stavenotes"===e.vfStaveNote.getCategory()&&e.vfStaveNote.addModifier(0,n)}}if(n.parentVoiceEntry&&this.rules.RenderFingerings&&this.createFingerings(n),n.parentVoiceEntry&&n.parentVoiceEntry.Arpeggio){const t=n.parentVoiceEntry.Arpeggio;if(n.notes&&n.notes.length>1){const n=c.VexFlowConverter.StrokeTypeFromArpeggioType(t.type),i=new s.default.Flow.Stroke(n,{all_voices:this.rules.ArpeggiosGoAcrossVoices});this.rules.RenderArpeggios&&e.vfStaveNote.addStroke(0,i)}else u.default.debug(`[OSMD] arpeggio in measure ${this.MeasureNumber} could not be drawn.\n voice entry had less than two notes, arpeggio is likely between voice entries, not currently supported in Vexflow.`)}this.vfVoices[i.VoiceId].addTickable(e.vfStaveNote)}else this.vfVoices[i.VoiceId].addTickable(e.vfStaveNote)}}this.createArticulations(),this.createOrnaments(),this.setStemDirectionFromVexFlow()}setStemDirectionFromVexFlow(){for(const t of this.staffEntries)for(const e of t.graphicalVoiceEntries)for(const t of e.notes){const n=t.vfnote;if(n&&n[0])switch(n[0].getStemDirection()){case s.default.Flow.Stem.UP:e.parentVoiceEntry.StemDirection=p.StemDirectionType.Up;break;case s.default.Flow.Stem.DOWN:e.parentVoiceEntry.StemDirection=p.StemDirectionType.Down}}}createArticulations(){for(let t=0,e=this.staffEntries.length;t<e;++t){const e=this.staffEntries[t].graphicalVoiceEntries;for(const t of e){const e=t.vfStaveNote;c.VexFlowConverter.generateArticulations(e,t.notes[0].sourceNote.ParentVoiceEntry.Articulations)}}}createOrnaments(){for(let t=0,e=this.staffEntries.length;t<e;++t){const e=this.staffEntries[t].graphicalVoiceEntries;for(const t in e)if(e.hasOwnProperty(t)){const n=e[t].vfStaveNote,i=e[t].notes[0].sourceNote.ParentVoiceEntry.OrnamentContainer;i&&c.VexFlowConverter.generateOrnaments(n,i)}}}createFingerings(t){const e=t,n=t.parentVoiceEntry.TechnicalInstructions;let i=0;for(const s of n)s.type===v.TechnicalInstructionType.Fingering&&i++;let r=-1;for(const o of n){if(o.type!==v.TechnicalInstructionType.Fingering)continue;r++;let n,a=this.rules.FingeringPosition;switch(o.placement!==y.PlacementEnum.NotYetDefined&&(a=o.placement),a){default:case y.PlacementEnum.Left:n=s.default.Flow.StaveModifier.Position.LEFT;break;case y.PlacementEnum.Right:n=s.default.Flow.StaveModifier.Position.RIGHT;break;case y.PlacementEnum.Above:n=s.default.Flow.StaveModifier.Position.ABOVE;break;case y.PlacementEnum.Below:n=s.default.Flow.StaveModifier.Position.BELOW;break;case y.PlacementEnum.NotYetDefined:const e=t.parentStaffEntry.sourceStaffEntry.ParentStaff;t.notes.length>1||t.parentStaffEntry.graphicalVoiceEntries.length>1?n=s.default.Flow.StaveModifier.Position.LEFT:0===e.idInMusicSheet?(n=s.default.Flow.StaveModifier.Position.ABOVE,a=y.PlacementEnum.Above):(n=s.default.Flow.StaveModifier.Position.BELOW,a=y.PlacementEnum.Below)}const c=new s.default.Flow.FretHandFinger(o.value);if(c.setPosition(n),c.setOffsetX(this.rules.FingeringOffsetX),a===y.PlacementEnum.Above||a===y.PlacementEnum.Below){const t=a===y.PlacementEnum.Above?-1:1,l=a===y.PlacementEnum.Above?r:i-1-r;if(this.rules.FingeringInsideStafflines&&i>1){const e=c.getWidth()/2,n=2.5*i;c.setOffsetY(t*(l+n)*e)}else if(!this.rules.FingeringInsideStafflines){const i=new s.default.Flow.StringNumber(o.value);i.radius=0,i.setPosition(n),i.setOffsetY(t*l*i.getWidth()*2/3),e.vfStaveNote.addModifier(r,i);continue}}"tabnotes"===e.vfStaveNote.getCategory()||e.vfStaveNote.addModifier(r,c)}}lineTo(t,e){const n=new s.default.Flow.StaveConnector(t.getVFStave(),this.stave);n.setType(e),this.connectors.push(n)}getVFStave(){return this.stave}updateInstructionWidth(){let t=0,e=0;const n=this.stave.getModifiers();for(const i of n)i.getPosition()===_.BEGIN?t+=i.getWidth()+i.getPadding(void 0):i.getPosition()===_.END&&(e+=i.getWidth()+i.getPadding(void 0));this.beginInstructionsWidth=t/h.unitInPixels,this.endInstructionsWidth=e/h.unitInPixels}}var _;e.VexFlowMeasure=x,function(t){t[t.LEFT=1]="LEFT",t[t.RIGHT=2]="RIGHT",t[t.ABOVE=3]="ABOVE",t[t.BELOW=4]="BELOW",t[t.BEGIN=5]="BEGIN",t[t.END=6]="END"}(_=e.StavePositionEnum||(e.StavePositionEnum={}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RectangleF2D=void 0;const i=n(78),s=n(5);class r{constructor(t,e,n,i){this.x=0,this.y=0,this.width=0,this.height=0,this.x=t,this.y=e,this.width=n,this.height=i}static createFromLocationAndSize(t,e){return new r(t.x,t.y,e.width,e.height)}get Location(){return new s.PointF2D(this.x,this.y)}get Size(){return new i.SizeF2D(this.width,this.height)}}e.RectangleF2D=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(10),s=n(35),r=function(){function t(){this.firstNode=null,this.lastNode=null,this.nElements=0}return t.prototype.add=function(t,e){if(i.isUndefined(e)&&(e=this.nElements),e<0||e>this.nElements||i.isUndefined(t))return!1;var n=this.createNode(t);if(0===this.nElements||null===this.lastNode)this.firstNode=n,this.lastNode=n;else if(e===this.nElements)this.lastNode.next=n,this.lastNode=n;else if(0===e)n.next=this.firstNode,this.firstNode=n;else{var s=this.nodeAtIndex(e-1);if(null===s)return!1;n.next=s.next,s.next=n}return this.nElements++,!0},t.prototype.first=function(){if(null!==this.firstNode)return this.firstNode.element},t.prototype.last=function(){if(null!==this.lastNode)return this.lastNode.element},t.prototype.elementAtIndex=function(t){var e=this.nodeAtIndex(t);if(null!==e)return e.element},t.prototype.indexOf=function(t,e){var n=e||i.defaultEquals;if(i.isUndefined(t))return-1;for(var s=this.firstNode,r=0;null!==s;){if(n(s.element,t))return r;r++,s=s.next}return-1},t.prototype.contains=function(t,e){return this.indexOf(t,e)>=0},t.prototype.remove=function(t,e){var n=e||i.defaultEquals;if(this.nElements<1||i.isUndefined(t))return!1;for(var s=null,r=this.firstNode;null!==r;){if(n(r.element,t))return null===s?(this.firstNode=r.next,r===this.lastNode&&(this.lastNode=null)):r===this.lastNode?(this.lastNode=s,s.next=r.next,r.next=null):(s.next=r.next,r.next=null),this.nElements--,!0;s=r,r=r.next}return!1},t.prototype.clear=function(){this.firstNode=null,this.lastNode=null,this.nElements=0},t.prototype.equals=function(e,n){var s=n||i.defaultEquals;return e instanceof t&&this.size()===e.size()&&this.equalsAux(this.firstNode,e.firstNode,s)},t.prototype.equalsAux=function(t,e,n){for(;null!==t&&null!==e;){if(!n(t.element,e.element))return!1;t=t.next,e=e.next}return!0},t.prototype.removeElementAtIndex=function(t){if(!(t<0||t>=this.nElements||null===this.firstNode||null===this.lastNode)){var e;if(1===this.nElements)e=this.firstNode.element,this.firstNode=null,this.lastNode=null;else{var n=this.nodeAtIndex(t-1);null===n?(e=this.firstNode.element,this.firstNode=this.firstNode.next):n.next===this.lastNode&&(e=this.lastNode.element,this.lastNode=n),null!==n&&null!==n.next&&(e=n.next.element,n.next=n.next.next)}return this.nElements--,e}},t.prototype.forEach=function(t){for(var e=this.firstNode;null!==e&&!1!==t(e.element);)e=e.next},t.prototype.reverse=function(){for(var t=null,e=this.firstNode,n=null;null!==e;)n=e.next,e.next=t,t=e,e=n;n=this.firstNode,this.firstNode=this.lastNode,this.lastNode=n},t.prototype.toArray=function(){for(var t=[],e=this.firstNode;null!==e;)t.push(e.element),e=e.next;return t},t.prototype.size=function(){return this.nElements},t.prototype.isEmpty=function(){return this.nElements<=0},t.prototype.toString=function(){return s.toString(this.toArray())},t.prototype.nodeAtIndex=function(t){if(t<0||t>=this.nElements)return null;if(t===this.nElements-1)return this.lastNode;for(var e=this.firstNode,n=0;n<t&&null!==e;n++)e=e.next;return e},t.prototype.createNode=function(t){return{element:t,next:null}},t}();e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VerticalSourceStaffEntryContainer=void 0;const i=n(0);e.VerticalSourceStaffEntryContainer=class{constructor(t,e,n){this.staffEntries=[],this.comments=[],this.timestamp=e,this.staffEntries=new Array(n),this.parentMeasure=t}$get$(t){return this.staffEntries[t]}$set$(t,e){this.staffEntries[t]=e}get Timestamp(){return this.timestamp}set Timestamp(t){this.timestamp=t}get StaffEntries(){return this.staffEntries}set StaffEntries(t){this.staffEntries=t}get Comments(){return this.comments}set Comments(t){this.comments=t}get ParentMeasure(){return this.parentMeasure}set ParentMeasure(t){this.parentMeasure=t}getAbsoluteTimestamp(){return i.Fraction.plus(this.timestamp,this.parentMeasure.AbsoluteTimestamp)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TempoEnum=e.InstantaneousTempoExpression=void 0;const i=n(85),s=n(11),r=n(0);class o extends i.AbstractTempoExpression{constructor(t,e,n,i,s,r=!1){super(t,e,n,s),this.setTempoAndTempoType(i)}static getDefaultValueForTempoType(t){switch(t){case a.larghissimo:return 20;case a.grave:return 30;case a.lento:return 48;case a.largo:return 52;case a.larghetto:return 63;case a.adagio:return 70;case a.adagietto:return 75;case a.andanteModerato:return 88;case a.andante:return 92;case a.andantino:return 96;case a.moderato:return 106;case a.allegretto:return 112;case a.allegroModerato:return 118;case a.allegro:return 130;case a.vivace:return 140;case a.vivacissimo:return 155;case a.allegrissimo:return 170;case a.presto:return 184;case a.prestissimo:return 200;default:throw new s.ArgumentOutOfRangeException("tempoEnum")}}static isInputStringInstantaneousTempo(t){return!!t&&(o.isStringInStringList(o.listInstantaneousTempoLarghissimo,t)||o.isStringInStringList(o.listInstantaneousTempoGrave,t)||o.isStringInStringList(o.listInstantaneousTempoLento,t)||o.isStringInStringList(o.listInstantaneousTempoLargo,t)||o.isStringInStringList(o.listInstantaneousTempoLarghetto,t)||o.isStringInStringList(o.listInstantaneousTempoAdagio,t)||o.isStringInStringList(o.listInstantaneousTempoAdagietto,t)||o.isStringInStringList(o.listInstantaneousTempoAndanteModerato,t)||o.isStringInStringList(o.listInstantaneousTempoAndante,t)||o.isStringInStringList(o.listInstantaneousTempoAndantino,t)||o.isStringInStringList(o.listInstantaneousTempoModerato,t)||o.isStringInStringList(o.listInstantaneousTempoAllegretto,t)||o.isStringInStringList(o.listInstantaneousTempoAllegroModerato,t)||o.isStringInStringList(o.listInstantaneousTempoAllegro,t)||o.isStringInStringList(o.listInstantaneousTempoVivace,t)||o.isStringInStringList(o.listInstantaneousTempoVivacissimo,t)||o.isStringInStringList(o.listInstantaneousTempoAllegrissimo,t)||o.isStringInStringList(o.listInstantaneousTempoPresto,t)||o.isStringInStringList(o.listInstantaneousTempoPrestissimo,t)||o.isStringInStringList(o.listInstantaneousTempoChangesGeneral,t))}get Label(){return this.label}set Label(t){this.label=t}get Placement(){return this.placement}set Placement(t){this.placement=t}get StaffNumber(){return this.staffNumber}set StaffNumber(t){this.staffNumber=t}get Enum(){return this.tempoEnum}get TempoInBpm(){return this.tempoInBpm}set TempoInBpm(t){this.tempoInBpm=t}get ParentMultiTempoExpression(){return this.parentMultiTempoExpression}getAbsoluteTimestamp(){return r.Fraction.plus(this.ParentMultiTempoExpression.SourceMeasureParent.AbsoluteTimestamp,this.ParentMultiTempoExpression.Timestamp)}getAbsoluteFloatTimestamp(){return r.Fraction.plus(this.ParentMultiTempoExpression.SourceMeasureParent.AbsoluteTimestamp,this.ParentMultiTempoExpression.Timestamp).RealValue}setTempoAndTempoType(t){return this.label?o.isStringInStringList(o.listInstantaneousTempoLarghissimo,this.label)?(0===t&&(t=o.getDefaultValueForTempoType(a.larghissimo)),this.tempoInBpm=t,void(this.tempoEnum=a.larghissimo)):o.isStringInStringList(o.listInstantaneousTempoGrave,this.label)?(0===t&&(t=o.getDefaultValueForTempoType(a.grave)),this.tempoInBpm=t,void(this.tempoEnum=a.grave)):o.isStringInStringList(o.listInstantaneousTempoLento,this.label)?(0===t&&(t=o.getDefaultValueForTempoType(a.lento)),this.tempoInBpm=t,void(this.tempoEnum=a.lento)):o.isStringInStringList(o.listInstantaneousTempoLargo,this.label)?(0===t&&(t=o.getDefaultValueForTempoType(a.largo)),this.tempoInBpm=t,void(this.tempoEnum=a.largo)):o.isStringInStringList(o.listInstantaneousTempoLarghetto,this.label)?(0===t&&(t=o.getDefaultValueForTempoType(a.larghetto)),this.tempoInBpm=t,void(this.tempoEnum=a.larghetto)):o.isStringInStringList(o.listInstantaneousTempoAdagio,this.label)?(0===t&&(t=o.getDefaultValueForTempoType(a.adagio)),this.tempoInBpm=t,void(this.tempoEnum=a.adagio)):o.isStringInStringList(o.listInstantaneousTempoAdagietto,this.label)?(0===t&&(t=o.getDefaultValueForTempoType(a.adagietto)),this.tempoInBpm=t,void(this.tempoEnum=a.adagietto)):o.isStringInStringList(o.listInstantaneousTempoAndanteModerato,this.label)?(0===t&&(t=o.getDefaultValueForTempoType(a.andanteModerato)),this.tempoInBpm=t,void(this.tempoEnum=a.andanteModerato)):o.isStringInStringList(o.listInstantaneousTempoAndante,this.label)?(0===t&&(t=o.getDefaultValueForTempoType(a.andante)),this.tempoInBpm=t,void(this.tempoEnum=a.andante)):o.isStringInStringList(o.listInstantaneousTempoAndantino,this.label)?(0===t&&(t=o.getDefaultValueForTempoType(a.andantino)),this.tempoInBpm=t,void(this.tempoEnum=a.andantino)):o.isStringInStringList(o.listInstantaneousTempoModerato,this.label)?(0===t&&(t=o.getDefaultValueForTempoType(a.moderato)),this.tempoInBpm=t,void(this.tempoEnum=a.moderato)):o.isStringInStringList(o.listInstantaneousTempoAllegretto,this.label)?(0===t&&(t=o.getDefaultValueForTempoType(a.allegretto)),this.tempoInBpm=t,void(this.tempoEnum=a.allegretto)):o.isStringInStringList(o.listInstantaneousTempoAllegroModerato,this.label)?(0===t&&(t=o.getDefaultValueForTempoType(a.allegroModerato)),this.tempoInBpm=t,void(this.tempoEnum=a.allegroModerato)):o.isStringInStringList(o.listInstantaneousTempoAllegro,this.label)?(0===t&&(t=o.getDefaultValueForTempoType(a.allegro)),this.tempoInBpm=t,void(this.tempoEnum=a.allegro)):o.isStringInStringList(o.listInstantaneousTempoVivace,this.label)?(0===t&&(t=o.getDefaultValueForTempoType(a.vivace)),this.tempoInBpm=t,void(this.tempoEnum=a.vivace)):o.isStringInStringList(o.listInstantaneousTempoVivacissimo,this.label)?(0===t&&(t=o.getDefaultValueForTempoType(a.vivacissimo)),this.tempoInBpm=t,void(this.tempoEnum=a.vivacissimo)):o.isStringInStringList(o.listInstantaneousTempoAllegrissimo,this.label)?(0===t&&(t=o.getDefaultValueForTempoType(a.allegrissimo)),this.tempoInBpm=t,void(this.tempoEnum=a.allegrissimo)):o.isStringInStringList(o.listInstantaneousTempoPresto,this.label)?(0===t&&(t=o.getDefaultValueForTempoType(a.presto)),this.tempoInBpm=t,void(this.tempoEnum=a.presto)):o.isStringInStringList(o.listInstantaneousTempoPrestissimo,this.label)?(0===t&&(t=o.getDefaultValueForTempoType(a.prestissimo)),this.tempoInBpm=t,void(this.tempoEnum=a.prestissimo)):o.isStringInStringList(o.listInstantaneousTempoAddons,this.label)?(this.tempoInBpm=0,void(this.tempoEnum=a.addon)):o.isStringInStringList(o.listInstantaneousTempoChangesGeneral,this.label)?(this.tempoInBpm=0,void(this.tempoEnum=a.changes)):void 0:(this.tempoInBpm=t,void(this.tempoEnum=a.metronomeMark))}}var a;e.InstantaneousTempoExpression=o,o.listInstantaneousTempoLarghissimo=["Larghissimo","Sehr breit","very, very slow"],o.listInstantaneousTempoGrave=["Grave","Schwer","slow and solemn"],o.listInstantaneousTempoLento=["Lento","Lent","Langsam","slowly"],o.listInstantaneousTempoLargo=["Largo","Breit","broadly"],o.listInstantaneousTempoLarghetto=["Larghetto","Etwas breit","rather broadly"],o.listInstantaneousTempoAdagio=["Adagio","Langsam","Ruhig","slow and stately"],o.listInstantaneousTempoAdagietto=["Adagietto","Ziemlich ruhig","Ziemlich langsam","rather slow"],o.listInstantaneousTempoAndanteModerato=["Andante moderato"],o.listInstantaneousTempoAndante=["Andante","Gehend","Schreitend","at a walking pace"],o.listInstantaneousTempoAndantino=["Andantino"],o.listInstantaneousTempoModerato=["Moderato","Mäßig","Mod�r�","moderately"],o.listInstantaneousTempoAllegretto=["Allegretto","fast"],o.listInstantaneousTempoAllegroModerato=["Allegro moderato"],o.listInstantaneousTempoAllegro=["Allegro","Rapide","Vite","Rasch","Schnell","Fr�hlich"],o.listInstantaneousTempoVivace=["Vivace","Lebhaft","Lebendig","lively and fast"],o.listInstantaneousTempoVivacissimo=["Vivacissimo","Sehr lebhaft","Sehr lebendig"],o.listInstantaneousTempoAllegrissimo=["Allegrissimo","very fast"],o.listInstantaneousTempoPresto=["Presto","Sehr schnell","Geschwind"],o.listInstantaneousTempoPrestissimo=["Prestissimo","äußerst schnell"],o.listInstantaneousTempoChangesGeneral=["tempo primo","a tempo","tempo i","rubato","doppio movimento"],o.listInstantaneousTempoAddons=["assai","amoroso","cantabile","con brio","con dolore","con espressione","con fuoco","con moto","con spirito","spiritoso","espressivo","giocoso","giusto","grazioso","lesto","lugubre","maestoso","ma non troppo","marcato","molto","morendo","mosso","non tanto","piu","un poco","poco","quasi","risoluto","scherzando","sostenuto","teneramente","tempo giusto","tranquillo","sehr","lieblich","liebevoll","mit Leidenschaft","mit Liebe","amourös","gesanglich","mit Schwung","mit Feuer","mit Schmerz","mit Ausdruck","mit Bewegung","geistvoll","ausdrucksvoll","freudig","verspielt","angemessen","graziös","mit Grazie","flink","behände","traurig","klagend","majestätisch","aber nicht zu sehr","markant","gemäßigt","viel","sehr","ersterbend","bewegt","nicht zu sehr","mehr","ein wenig","gleichsam","entschlossen","zupackend","heiter","nachdrücklich","getragen","gewichtig","zart","zärtlich","im angemessenen Zeitmaß","ruhig","ein wenig","alla marcia","ad libitum","alla breve"],function(t){t[t.none=0]="none",t[t.larghissimo=1]="larghissimo",t[t.grave=2]="grave",t[t.lento=3]="lento",t[t.largo=4]="largo",t[t.larghetto=5]="larghetto",t[t.adagio=6]="adagio",t[t.adagietto=7]="adagietto",t[t.andanteModerato=8]="andanteModerato",t[t.andante=9]="andante",t[t.andantino=10]="andantino",t[t.moderato=11]="moderato",t[t.allegretto=12]="allegretto",t[t.allegroModerato=13]="allegroModerato",t[t.allegro=14]="allegro",t[t.vivace=15]="vivace",t[t.vivacissimo=16]="vivacissimo",t[t.allegrissimo=17]="allegrissimo",t[t.presto=18]="presto",t[t.prestissimo=19]="prestissimo",t[t.lastRealTempo=20]="lastRealTempo",t[t.addon=21]="addon",t[t.changes=22]="changes",t[t.metronomeMark=23]="metronomeMark"}(a=e.TempoEnum||(e.TempoEnum={}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ContinuousTempoType=e.ContinuousTempoExpression=void 0;const i=n(0),s=n(85);class r extends s.AbstractTempoExpression{constructor(t,e,n,i){super(t,e,n,i),this.setTempoType()}static isInputStringContinuousTempo(t){return!!t&&(r.isStringInStringList(r.listContinuousTempoFaster,t)||r.isStringInStringList(r.listContinuousTempoSlower,t))}static isIncreasingTempo(t){return t<=o.piuMosso}static isDecreasingTempo(t){return t>=o.allargando&&t<=o.ritenuto}get TempoType(){return this.tempoType}set TempoType(t){this.tempoType=t}get StartTempo(){return this.startTempo}set StartTempo(t){this.startTempo=t}get EndTempo(){return this.endTempo}set EndTempo(t){this.endTempo=t}get AbsoluteEndTimestamp(){return this.absoluteEndTimestamp}set AbsoluteEndTimestamp(t){this.absoluteEndTimestamp=t}get AbsoluteTimestamp(){return this.ParentMultiTempoExpression.AbsoluteTimestamp}getAbsoluteFloatTimestamp(){return this.ParentMultiTempoExpression.AbsoluteTimestamp.RealValue}getInterpolatedTempo(t){const e=i.Fraction.plus(this.parentMultiTempoExpression.SourceMeasureParent.AbsoluteTimestamp,this.parentMultiTempoExpression.Timestamp);if(t.lt(e))return-1;if(this.absoluteEndTimestamp.lt(t))return-2;const n=i.Fraction.minus(t,e).RealValue/i.Fraction.minus(this.absoluteEndTimestamp,e).RealValue;return Math.max(0,Math.min(250,this.startTempo+(this.endTempo-this.startTempo)*n))}setTempoType(){r.isStringInStringList(r.listContinuousTempoFaster,this.label)?this.tempoType=o.accelerando:r.isStringInStringList(r.listContinuousTempoSlower,this.label)&&(this.tempoType=o.ritardando)}}var o;e.ContinuousTempoExpression=r,r.listContinuousTempoFaster=["accelerando","piu mosso","poco piu","stretto"],r.listContinuousTempoSlower=["poco meno","meno mosso","piu lento","calando","allargando","rallentando","ritardando","ritenuto","ritard.","ritard","rit.","rit","riten.","riten"],function(t){t[t.accelerando=0]="accelerando",t[t.stretto=1]="stretto",t[t.stringendo=2]="stringendo",t[t.mosso=3]="mosso",t[t.piuMosso=4]="piuMosso",t[t.allargando=5]="allargando",t[t.calando=6]="calando",t[t.menoMosso=7]="menoMosso",t[t.rallentando=8]="rallentando",t[t.ritardando=9]="ritardando",t[t.ritard=10]="ritard",t[t.rit=11]="rit",t[t.ritenuto=12]="ritenuto",t[t.rubato=13]="rubato",t[t.precipitando=14]="precipitando"}(o=e.ContinuousTempoType||(e.ContinuousTempoType={}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StaffLineActivitySymbol=void 0;const i=n(6),s=n(4);class r extends i.GraphicalObject{constructor(t){super(),this.parentStaffLine=t;const e=t.PositionAndShape;this.boundingBox=new s.BoundingBox(this,e),this.boundingBox.BorderRight=6,this.boundingBox.BorderBottom=4.5,this.boundingBox.BorderLeft=-1.5,this.boundingBox.BorderTop=-1.5}}e.StaffLineActivitySymbol=r},function(t,e,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}),s=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||e.hasOwnProperty(n)||i(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),s(n(20),e),s(n(84),e),s(n(8),e),s(n(151),e)},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.SystemImageProperties=e.GraphicalMusicSheet=void 0;const s=n(91),r=n(27),o=n(5),a=n(7),c=n(16),l=n(0),u=n(4),h=i(n(1)),d=n(34);e.GraphicalMusicSheet=class{constructor(t,e){this.musicPages=[],this.measureList=[],this.verticalGraphicalStaffEntryContainers=[],this.cursors=[],this.leadSheet=!1,this.musicSheet=t,this.numberOfStaves=this.musicSheet.Staves.length,this.calculator=e,this.calculator.initialize(this)}get ParentMusicSheet(){return this.musicSheet}get GetCalculator(){return this.calculator}get MusicPages(){return this.musicPages}set MusicPages(t){this.musicPages=t}get MeasureList(){return this.measureList}set MeasureList(t){this.measureList=t}get VerticalGraphicalStaffEntryContainers(){return this.verticalGraphicalStaffEntryContainers}set VerticalGraphicalStaffEntryContainers(t){this.verticalGraphicalStaffEntryContainers=t}get Title(){return this.title}set Title(t){this.title=t}get Subtitle(){return this.subtitle}set Subtitle(t){this.subtitle=t}get Composer(){return this.composer}set Composer(t){this.composer=t}get Lyricist(){return this.lyricist}set Lyricist(t){this.lyricist=t}get Cursors(){return this.cursors}get SelectionStartSymbol(){return this.selectionStartSymbol}get SelectionEndSymbol(){return this.selectionEndSymbol}get MinAllowedSystemWidth(){return this.minAllowedSystemWidth}set MinAllowedSystemWidth(t){this.minAllowedSystemWidth=t}get NumberOfStaves(){return this.numberOfStaves}get LeadSheet(){return this.leadSheet}set LeadSheet(t){this.leadSheet=t}static transformRelativeToAbsolutePosition(t){for(let e=0;e<t.MusicPages.length;e++){const n=t.MusicPages[e].setMusicPageAbsolutePosition(e,t.ParentMusicSheet.Rules);t.MusicPages[e].PositionAndShape.calculateAbsolutePositionsRecursive(n.x,n.y)}}Initialize(){this.verticalGraphicalStaffEntryContainers=[],this.musicPages=[],this.measureList=[]}reCalculate(){this.calculator.calculate()}prepare(){this.calculator.prepareGraphicalMusicSheet()}EnforceRedrawOfMusicSystems(){for(let t=0,e=this.musicPages.length;t<e;++t){const e=this.musicPages[t];for(let t=0,n=e.MusicSystems.length;t<n;++t)e.MusicSystems[t].needsToBeRedrawn=!0}}getClickedObject(t){for(let e=0,n=this.MusicPages.length;e<n;++e)return this.MusicPages[e].PositionAndShape.getClickedObjectOfType(t)}findGraphicalMeasure(t,e){for(let n=t;n>=0;n--){const t=this.measureList[n][e];if(t)return t}}findGraphicalStaffEntryFromMeasureList(t,e,n){for(let i=e;i<this.measureList.length;i++){const e=this.measureList[i][t];if(e)for(let t=0,i=e.staffEntries.length;t<i;++t){const i=e.staffEntries[t];if(i.sourceStaffEntry===n)return i}}}findNextGraphicalStaffEntry(t,e,n){const i=n.parentMeasure,s=i.staffEntries.indexOf(n);if(s<i.staffEntries.length-1)return i.staffEntries[s+1];if(e<this.measureList.length-1){const n=this.measureList[e+1][t];if(n.staffEntries.length>0)return n.staffEntries[0]}}getFirstVisibleMeasuresListFromIndices(t,e){const n=[],i=this.measureList[0].length;for(let s=t;s<=e;s++)for(let t=0;t<i;t++)if(this.measureList[s][t].isVisible()){n.push(this.measureList[s][t]);break}return n}orderMeasuresByStaffLine(t){const e=[];let n=[];e.push(n);for(let i=0;i<t.length;i++)0===i?n.push(t[0]):(t[i].ParentStaffLine===t[i-1].ParentStaffLine||(-1===e.indexOf(n)&&e.push(n),n=[],e.push(n)),n.push(t[i]));return e}initializeActiveClefs(){const t=[],e=this.musicSheet.getFirstSourceMeasure();if(e)for(let n=0;n<e.CompleteNumberOfStaves;n++){let i=new a.ClefInstruction;if(e.FirstInstructionsStaffEntries[n])for(let t=0,s=e.FirstInstructionsStaffEntries[n].Instructions.length;t<s;++t){const s=e.FirstInstructionsStaffEntries[n].Instructions[t];s instanceof a.ClefInstruction&&(i=s)}t.push(i)}return t}GetMainKey(){const t=this.musicSheet.getFirstSourceMeasure();if(t)for(let e=0;e<t.CompleteNumberOfStaves;e++)for(let n=0,i=t.FirstInstructionsStaffEntries[e].Instructions.length;n<i;++n){const i=t.FirstInstructionsStaffEntries[e].Instructions[n];if(i instanceof c.KeyInstruction)return i}}getOrCreateVerticalContainer(t){if(0===this.verticalGraphicalStaffEntryContainers.length||d.CollectionUtil.getLastElement(this.verticalGraphicalStaffEntryContainers).AbsoluteTimestamp.lt(t)){const e=new s.VerticalGraphicalStaffEntryContainer(this.numberOfStaves,t);return this.verticalGraphicalStaffEntryContainers.push(e),e}for(let e=this.verticalGraphicalStaffEntryContainers.length-1;e>=0;e--){if(this.verticalGraphicalStaffEntryContainers[e].AbsoluteTimestamp.lt(t)){const n=new s.VerticalGraphicalStaffEntryContainer(this.numberOfStaves,t);return this.verticalGraphicalStaffEntryContainers.splice(e+1,0,n),n}if(this.verticalGraphicalStaffEntryContainers[e].AbsoluteTimestamp.Equals(t))return this.verticalGraphicalStaffEntryContainers[e]}}GetVerticalContainerFromTimestamp(t,e=0){const n=d.CollectionUtil.binarySearch(this.verticalGraphicalStaffEntryContainers,new s.VerticalGraphicalStaffEntryContainer(0,t),s.VerticalGraphicalStaffEntryContainer.compareByTimestamp,e);if(n>=0)return this.verticalGraphicalStaffEntryContainers[n]}GetInterpolatedIndexInVerticalContainers(t){const e=this.verticalGraphicalStaffEntryContainers;let n,i=0,s=e.length-1,r=void 0,o=void 0;if(t.lte(e[e.length-1].AbsoluteTimestamp)){for(;s-i>1;){const n=Math.floor((s+i)/2);if(e[i].AbsoluteTimestamp.Equals(t)){s=i;break}if(e[s].AbsoluteTimestamp.Equals(t)){i=s;break}if(e[n].AbsoluteTimestamp.Equals(t))return this.verticalGraphicalStaffEntryContainers.indexOf(e[n]);t.lt(e[n].AbsoluteTimestamp)?s=n:i=n}if(i===s)return this.verticalGraphicalStaffEntryContainers.indexOf(e[i]);r=e[i].AbsoluteTimestamp,o=e[s].AbsoluteTimestamp}else r=e[e.length-1].AbsoluteTimestamp,o=l.Fraction.plus(this.getLongestStaffEntryDuration(e.length-1),r),s=e.length;const a=o.RealValue-r.RealValue;return n=s-(o.RealValue-t.RealValue)/a,Math.min(n,this.verticalGraphicalStaffEntryContainers.length)}getVisibleStavesIndicesFromSourceMeasure(t){const e=[],n=[];for(let i=0,s=t.length;i<s;++i){const n=t[i].ParentStaff.ParentInstrument;-1===e.indexOf(n)&&e.push(n)}for(let i=0,s=e.length;i<s;++i){const t=e[i],s=this.musicSheet.getGlobalStaffIndexOfFirstStaff(t);for(let e=0;e<t.Staves.length;e++)n.push(s+e)}return n}getGraphicalMeasureFromSourceMeasureAndIndex(t,e){var n;for(let i=0;i<this.measureList.length;i++)if((null===(n=this.measureList[i][0])||void 0===n?void 0:n.parentSourceMeasure)===t)return this.measureList[i][e]}getLastGraphicalMeasureFromIndex(t,e=!0){let n=this.measureList.length-1;return e&&(n=Math.min(n,this.musicSheet.Rules.MaxMeasureToDrawIndex)),this.measureList[n][t]}getMeasureIndex(t,e,n){for(e=0,0;e<this.measureList.length;e++)for(let n=0,i=this.measureList[e].length;n<i;++n)if(this.measureList[e][n]===t)return!0;return!1}GetNearestNote(t,e){const n=[],i=new u.BoundingBox;i.BorderLeft=t.x-10,i.BorderTop=t.y-10,i.BorderRight=t.x+10,i.BorderBottom=t.y+10,i.AbsolutePosition=new o.PointF2D(0,0);for(let r=0,o=this.MusicPages.length;r<o;++r){const s=this.MusicPages[r].PositionAndShape.getObjectsInRegion(i);if(s)for(let i=0,r=s.length;i<r;++i){const r=s[i];Math.abs(r.PositionAndShape.AbsolutePosition.x-t.x)<e.x&&Math.abs(r.PositionAndShape.AbsolutePosition.y-t.y)<e.y&&n.push(r)}}let s=void 0;for(let r=0,o=n.length;r<o;++r){const e=n[r];if(void 0===s)s=e;else{if(!e.parentVoiceEntry.parentStaffEntry.relInMeasureTimestamp)continue;this.CalculateDistance(e.PositionAndShape.AbsolutePosition,t)<this.CalculateDistance(s.PositionAndShape.AbsolutePosition,t)&&(s=e)}}if(s)return s}GetClickableLabel(t){const e=new u.BoundingBox;e.BorderLeft=t.x-4,e.BorderTop=t.y-4,e.BorderRight=t.x+4,e.BorderBottom=t.y+4,e.AbsolutePosition=new o.PointF2D(0,0);for(let n=0,i=this.MusicPages.length;n<i;++n){const t=this.MusicPages[n].PositionAndShape.getObjectsInRegion(e);if(1===t.length)for(let e=0,n=t.length;e<n;++e)return t[e]}}GetNearestStaffEntry(t){const e=[],n=new u.BoundingBox(void 0);n.BorderLeft=t.x-10,n.BorderTop=t.y-10,n.BorderRight=t.x+10,n.BorderBottom=t.y+10,n.AbsolutePosition=new o.PointF2D(0,0);for(let s=0,r=this.MusicPages.length;s<r;++s){const t=this.MusicPages[s].PositionAndShape.getObjectsInRegion(n,!1);if(t&&0!==t.length)for(let n=0,i=t.length;n<i;++n){const i=t[n];e.push(i)}}let i=void 0;for(let s=0,r=e.length;s<r;++s){const n=e[s];if(void 0===i)i=n;else{if(!n.relInMeasureTimestamp)continue;this.CalculateDistance(n.PositionAndShape.AbsolutePosition,t)<this.CalculateDistance(i.PositionAndShape.AbsolutePosition,t)&&(i=n)}}if(i)return i}GetPossibleCommentAnchor(t){const e=this.GetNearestStaffEntry(t);if(e)return e.sourceStaffEntry}getClickedObjectOfType(t){for(let e=0,n=this.musicPages.length;e<n;++e){const n=this.musicPages[e].PositionAndShape.getClickedObjectOfType(t);if(n)return n}}tryGetTimestampFromPosition(t){const e=this.getClickedObjectOfType(t);if(e)return e.getAbsoluteTimestamp()}tryGetClickableLabel(t){try{return this.GetClickableLabel(t)}catch(e){h.default.info("GraphicalMusicSheet.tryGetClickableObject","positionOnMusicSheet: "+t,e)}}tryGetTimeStampFromPosition(t){try{const e=this.GetNearestStaffEntry(t);if(!e)return;return e.getAbsoluteTimestamp()}catch(e){h.default.info("GraphicalMusicSheet.tryGetTimeStampFromPosition","positionOnMusicSheet: "+t,e)}}getStaffEntry(t){const e=this.VerticalGraphicalStaffEntryContainers[t];let n=void 0;try{for(let t=0,i=e.StaffEntries.length;t<i;++t){const i=e.StaffEntries[t];i&&i.sourceStaffEntry.ParentStaff.ParentInstrument.Visible&&(n?i.PositionAndShape&&n.PositionAndShape&&n.PositionAndShape.RelativePosition.x>i.PositionAndShape.RelativePosition.x&&(n=i):n=i)}}catch(t){h.default.info("GraphicalMusicSheet.getStaffEntry",t)}return n}GetPreviousVisibleContainerIndex(t){for(let e=t-1;e>=0;e--){const t=this.verticalGraphicalStaffEntryContainers[e].StaffEntries;for(let n=0,i=t.length;n<i;++n){const i=t[n];if(i&&i.sourceStaffEntry.ParentStaff.ParentInstrument.Visible)return e}}return-1}GetNextVisibleContainerIndex(t){for(let e=t+1;e<this.verticalGraphicalStaffEntryContainers.length;++e){const t=this.verticalGraphicalStaffEntryContainers[e].StaffEntries;for(let n=0,i=t.length;n<i;++n){const i=t[n];if(i&&i.sourceStaffEntry.ParentStaff.ParentInstrument.Visible)return e}}return-1}findClosestLeftStaffEntry(t,e){let n=void 0,i=Math.floor(t);i=Math.min(this.VerticalGraphicalStaffEntryContainers.length-1,i);for(let s=i;s>=0;s--)if(n=this.getStaffEntry(s),n){if(!e)return n;if(n.sourceStaffEntry.ParentStaff.ParentInstrument.Visible)return n}}findClosestRightStaffEntry(t,e){let n=void 0;for(let i=Math.max(0,Math.ceil(t));i<this.VerticalGraphicalStaffEntryContainers.length;i++)if(n=this.getStaffEntry(i),n){if(!e)return n;if(n.sourceStaffEntry.ParentStaff.ParentInstrument.Visible)return n}}calculateCursorLineAtTimestamp(t,e){const n=this.calculateXPositionFromTimestamp(t),i=n[0],s=n[1];if(!s||0===s.StaffLines.length)return;const a=s.PositionAndShape.AbsolutePosition.y,c=d.CollectionUtil.last(s.StaffLines).PositionAndShape.RelativePosition.y+4;return new r.GraphicalLine(new o.PointF2D(i,a),new o.PointF2D(i,a+c),3,e)}calculateXPositionFromTimestamp(t){var e,n,i,s;let r=void 0;const o=this.GetInterpolatedIndexInVerticalContainers(t),a=this.findClosestLeftStaffEntry(o,!0),c=this.findClosestRightStaffEntry(o,!0),u=t.RealValue;if(!a&&!c)return[0,void 0];let h=void 0;h=a?null===(e=a.parentMeasure.ParentStaffLine)||void 0===e?void 0:e.ParentMusicSystem:null===(n=c.parentMeasure.ParentStaffLine)||void 0===n?void 0:n.ParentMusicSystem;let d=void 0;if(d=c?null===(i=c.parentMeasure.ParentStaffLine)||void 0===i?void 0:i.ParentMusicSystem:null===(s=a.parentMeasure.ParentStaffLine)||void 0===s?void 0:s.ParentMusicSystem,h===d){let t,e,n;if(r=h,a)if(c)e=a.PositionAndShape.AbsolutePosition.x,n=c.PositionAndShape.AbsolutePosition.x,t=a===c?0:(u-a.getAbsoluteTimestamp().RealValue)/(c.getAbsoluteTimestamp().RealValue-a.getAbsoluteTimestamp().RealValue);else{e=a.PositionAndShape.AbsolutePosition.x,n=r.GetRightBorderAbsoluteXPosition();const i=a.parentMeasure.parentSourceMeasure;t=(u-a.getAbsoluteTimestamp().RealValue)/(l.Fraction.plus(i.AbsoluteTimestamp,i.Duration).RealValue-a.getAbsoluteTimestamp().RealValue)}else e=n=c.PositionAndShape.AbsolutePosition.x,t=0;return t=Math.min(1,Math.max(0,t)),[e+t*(n-e),r]}{const t=c.parentMeasure.parentSourceMeasure.AbsoluteTimestamp.RealValue;let e,n;if(u<t){r=h;const i=a.PositionAndShape.AbsolutePosition.x,s=r.GetRightBorderAbsoluteXPosition();e=(u-a.getAbsoluteTimestamp().RealValue)/(t-a.getAbsoluteTimestamp().RealValue),e=Math.min(1,Math.max(0,e)),n=i+e*(s-i)}else{r=d;const i=c.PositionAndShape.AbsolutePosition.x,s=r.GetLeftBorderAbsoluteXPosition();e=(u-t)/(c.getAbsoluteTimestamp().RealValue-t),e=Math.min(1,Math.max(0,e)),n=s+e*(i-s)}return[n,r]}}GetNumberOfVisibleInstruments(){let t=0;for(let e=0,n=this.musicSheet.Instruments.length;e<n;++e)!0===this.musicSheet.Instruments[e].Visible&&t++;return t}GetNumberOfFollowedInstruments(){let t=0;for(let e=0,n=this.musicSheet.Instruments.length;e<n;++e)!0===this.musicSheet.Instruments[e].Following&&t++;return t}GetGraphicalFromSourceStaffEntry(t){return t.VerticalContainerParent.ParentMeasure.VerticalMeasureList[t.ParentStaff.idInMusicSheet].findGraphicalStaffEntryFromTimestamp(t.Timestamp)}CalculateDistance(t,e){const n=t.x-e.x,i=t.y-e.y;return n*n+i*i}getLongestStaffEntryDuration(t){let e=new l.Fraction(0,1);for(const n of this.verticalGraphicalStaffEntryContainers[t].StaffEntries){if(!n)continue;const t=n.findStaffEntryMaxNoteLength();e.lt(t)&&(e=t)}return e}},e.SystemImageProperties=class{}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GraphicalInstantaneousTempoExpression=void 0;const i=n(40);class s extends i.AbstractGraphicalExpression{constructor(t,e){super(e.PositionAndShape.Parent.DataObject,t,t.parentMeasure),this.label=e}get GraphicalLabel(){return this.label}updateSkyBottomLine(){}}e.GraphicalInstantaneousTempoExpression=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IXmlElement=void 0;class i{constructor(t){if(this.hasAttributes=!1,!t)throw new Error("IXmlElement: expected Element, got undefined");this.elem=t,this.name=t.nodeName.toLowerCase(),t.hasAttributes()&&(this.hasAttributes=!0,this.firstAttribute=t.attributes[0]),this.hasElements=t.hasChildNodes(),1===t.childNodes.length&&t.childNodes[0].nodeType===Node.TEXT_NODE?this.value=t.childNodes[0].nodeValue:this.value=""}attribute(t){return this.elem.attributes.getNamedItem(t)}attributes(){if(!this.attrs){const t=this.elem.attributes,e=[];for(let n=0;n<t.length;n+=1)e.push(t[n]);this.attrs=e}return this.attrs}element(t){const e=this.elem.childNodes;for(let n=0,s=e.length;n<s;n+=1){const s=e[n];if(s.nodeType===Node.ELEMENT_NODE&&s.nodeName.toLowerCase()===t)return new i(s)}}elements(t){const e=this.elem.childNodes,n=[],s=!t;s||(t=t.toLowerCase());for(let r=0;r<e.length;r+=1){const o=e[r];o.nodeType!==Node.ELEMENT_NODE||!s&&o.nodeName.toLowerCase()!==t||n.push(new i(o))}return n}}e.IXmlElement=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Instrument=void 0;const i=n(61),s=n(13),r=n(100);class o extends i.InstrumentalGroup{constructor(t,e,n,i){super(void 0,n,i),this.transpose=0,this.voices=[],this.staves=[],this.hasLyrics=!1,this.hasChordSymbols=!1,this.lyricVersesNumbers=[],this.subInstruments=[],this.id=t,this.idString=e,this.nameLabel=new s.Label(e)}get Voices(){return this.voices}get Staves(){return this.staves}get NameLabel(){return this.nameLabel}get HasLyrics(){return this.hasLyrics}set HasLyrics(t){this.hasLyrics=t}get HasChordSymbols(){return this.hasChordSymbols}set HasChordSymbols(t){this.hasChordSymbols=t}get LyricVersesNumbers(){return this.lyricVersesNumbers}set LyricVersesNumbers(t){this.lyricVersesNumbers=t}get Name(){return this.nameLabel.text}set Name(t){this.nameLabel.text=t}get IdString(){return this.idString}get Id(){return this.id}get MidiInstrumentId(){return this.subInstruments[0].midiInstrumentID}set MidiInstrumentId(t){this.subInstruments[0].midiInstrumentID=t}get Volume(){return this.subInstruments[0].volume}set Volume(t){for(let e=0,n=this.subInstruments.length;e<n;++e)this.subInstruments[e].volume=t}get PlaybackTranspose(){return this.playbackTranspose}set PlaybackTranspose(t){this.playbackTranspose=t}get SubInstruments(){return this.subInstruments}getSubInstrument(t){for(let e=0,n=this.subInstruments.length;e<n;++e){const n=this.subInstruments[e];if(n.idString===t)return n}}get PartAbbreviation(){return this.partAbbreviation}set PartAbbreviation(t){this.partAbbreviation=t}get Visible(){return this.voices.length>0&&this.Voices[0].Visible}set Visible(t){for(let e=0,n=this.Voices.length;e<n;++e)this.Voices[e].Visible=t}get Audible(){let t=!1;for(let e=0,n=this.Voices.length;e<n;++e){const n=this.Voices[e];t=t||n.Audible}return t}set Audible(t){for(let e=0,n=this.Voices.length;e<n;++e)this.Voices[e].Audible=t;for(let e=0,n=this.staves.length;e<n;++e)this.staves[e].audible=t}get Following(){let t=!1;for(let e=0,n=this.Voices.length;e<n;++e){const n=this.Voices[e];t=t||n.Following}return t}set Following(t){for(let e=0,n=this.Voices.length;e<n;++e)this.Voices[e].Following=t;for(let e=0,n=this.staves.length;e<n;++e)this.staves[e].following=t}SetVoiceAudible(t,e){for(let n=0,i=this.Voices.length;n<i;++n){const i=this.Voices[n];if(i.VoiceId===t){i.Audible=e;break}}}SetVoiceFollowing(t,e){for(let n=0,i=this.Voices.length;n<i;++n){const i=this.Voices[n];if(i.VoiceId===t){i.Following=e;break}}}SetStaffAudible(t,e){const n=this.staves[t-1];if(n.audible=e,e)for(let i=0,s=n.Voices.length;i<s;++i)n.Voices[i].Audible=!0;else for(let i=0,s=n.Voices.length;i<s;++i){const e=n.Voices[i];let s=!1;for(let n=0,i=this.Staves.length;n<i;++n){const i=this.Staves[n];if(i.Id!==t&&i.audible)for(let t=0,n=i.Voices.length;t<n;++t)i.Voices[t]===e&&(s=!0)}s||(e.Audible=!1)}}SetStaffFollow(t,e){const n=this.staves[t-1];if(n.following=e,e)for(let i=0,s=n.Voices.length;i<s;++i)n.Voices[i].Following=!0;else for(let i=0,s=n.Voices.length;i<s;++i){const e=n.Voices[i];let s=!1;for(let n=0,i=this.Staves.length;n<i;++n){const i=this.Staves[n];if(i.Id!==t&&i.following)for(let t=0,n=i.Voices.length;t<n;++t)i.Voices[t]===e&&(s=!0)}s||(e.Following=!1)}}areAllVoiceVisible(){for(const t of this.Voices)if(!t.Visible)return!1;return!0}createStaves(t){for(let e=0;e<t;e++)this.staves.push(new r.Staff(this,e+1))}toString(){return`${this.Name} , id: ${this.id}, idstring: ${this.idString}`}}e.Instrument=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InstrumentalGroup=void 0,e.InstrumentalGroup=class{constructor(t,e,n){this.instrumentalGroups=[],this.name=t,this.musicSheet=e,this.parent=n}get InstrumentalGroups(){return this.instrumentalGroups}get Parent(){return this.parent}get Name(){return this.name}set Name(t){this.name=t}get GetMusicSheet(){return this.musicSheet}}},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.NoteHeadShape=e.Notehead=void 0;const s=i(n(1));class r{constructor(t,e,n){this.sourceNote=t,this.setShapeFromXml(e,n)}setShapeFromXml(t,e){this.shape=r.ShapeTypeXmlToShape(t);let n=e;void 0===n&&(this.sourceNote?n=this.sourceNote.Length.Denominator>2:(s.default.warn("notehead: sourceNote and filledXmlAttribute undefined."),n=!0)),this.filled=n}get SourceNote(){return this.sourceNote}get Shape(){return this.shape}get Filled(){return this.filled}static ShapeTypeXmlToShape(t){switch(t.toLowerCase()){case"normal":return o.NORMAL;case"x":return o.X;case"slash":return o.SLASH;case"diamond":return o.DIAMOND;case"square":case"la":return o.SQUARE;case"do":case"triangle":return o.TRIANGLE;case"rectangle":return o.RECTANGLE;case"circle-x":return o.CIRCLEX;default:return s.default.info("unsupported/unhandled xml notehead '"+t+"'. Using normal notehead."),o.NORMAL}}}var o;e.Notehead=r,function(t){t[t.CIRCLEX=0]="CIRCLEX",t[t.DIAMOND=1]="DIAMOND",t[t.NORMAL=2]="NORMAL",t[t.RECTANGLE=3]="RECTANGLE",t[t.SLASH=4]="SLASH",t[t.SQUARE=5]="SQUARE",t[t.TRIANGLE=6]="TRIANGLE",t[t.X=7]="X"}(o=e.NoteHeadShape||(e.NoteHeadShape={}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MusicSymbol=void 0,function(t){t[t.Unused_first_Symbol=0]="Unused_first_Symbol",t[t.BLACK_HEAD=1]="BLACK_HEAD",t[t.UPWARDS_TAIL=2]="UPWARDS_TAIL",t[t.DOWNWARDS_TAIL=3]="DOWNWARDS_TAIL",t[t.UPWARDS_DOUBLE_TAIL=4]="UPWARDS_DOUBLE_TAIL",t[t.DOWNWARDS_DOUBLE_TAIL=5]="DOWNWARDS_DOUBLE_TAIL",t[t.UPWARDS_TRIPLE_TAIL=6]="UPWARDS_TRIPLE_TAIL",t[t.DOWNWARDS_TRIPLE_TAIL=7]="DOWNWARDS_TRIPLE_TAIL",t[t.UPWARDS_QUAD_TAIL=8]="UPWARDS_QUAD_TAIL",t[t.DOWNWARDS_QUAD_TAIL=9]="DOWNWARDS_QUAD_TAIL",t[t.ROUND_HEAD=10]="ROUND_HEAD",t[t.WHITE_HEAD=11]="WHITE_HEAD",t[t.G_CLEF=12]="G_CLEF",t[t.F_CLEF=13]="F_CLEF",t[t.C_CLEF=14]="C_CLEF",t[t.BREVE=15]="BREVE",t[t.BREVE_REST=16]="BREVE_REST",t[t.COMMON_TIME=17]="COMMON_TIME",t[t.CUT_TIME=18]="CUT_TIME",t[t.WHOLE_REST=19]="WHOLE_REST",t[t.HALF_REST=20]="HALF_REST",t[t.QUARTER_REST=21]="QUARTER_REST",t[t.EIGHTH_REST=22]="EIGHTH_REST",t[t.SIXTEENTH_REST=23]="SIXTEENTH_REST",t[t.THIRTYSECOND_REST=24]="THIRTYSECOND_REST",t[t.SIXTYFOURTH_REST=25]="SIXTYFOURTH_REST",t[t.FLAT=26]="FLAT",t[t.SHARP=27]="SHARP",t[t.NATURAL=28]="NATURAL",t[t.DOUBLE_FLAT=29]="DOUBLE_FLAT",t[t.DOUBLE_SHARP=30]="DOUBLE_SHARP",t[t.ZERO=31]="ZERO",t[t.ONE=32]="ONE",t[t.TWO=33]="TWO",t[t.THREE=34]="THREE",t[t.FOUR=35]="FOUR",t[t.FIVE=36]="FIVE",t[t.SIX=37]="SIX",t[t.SEVEN=38]="SEVEN",t[t.EIGHT=39]="EIGHT",t[t.NINE=40]="NINE",t[t.DOT=41]="DOT",t[t.FERMATA=42]="FERMATA",t[t.INVERTED_FERMATA=43]="INVERTED_FERMATA",t[t.SPICCATO=44]="SPICCATO",t[t.TENUTO=45]="TENUTO",t[t.MARCATO=46]="MARCATO",t[t.MARCATISSIMO=47]="MARCATISSIMO",t[t.INVERTED_MARCATISSIMO=48]="INVERTED_MARCATISSIMO",t[t.P=49]="P",t[t.F=50]="F",t[t.S=51]="S",t[t.Z=52]="Z",t[t.M=53]="M",t[t.R=54]="R",t[t.SEGNO=55]="SEGNO",t[t.CODA=56]="CODA",t[t.DRUM_CLEF=57]="DRUM_CLEF",t[t.G_CLEF_SUB8=58]="G_CLEF_SUB8",t[t.G_CLEF_SUPER8=59]="G_CLEF_SUPER8",t[t.G_CLEF_SUB15=60]="G_CLEF_SUB15",t[t.G_CLEF_SUPER15=61]="G_CLEF_SUPER15",t[t.F_CLEF_SUB8=62]="F_CLEF_SUB8",t[t.F_CLEF_SUPER8=63]="F_CLEF_SUPER8",t[t.F_CLEF_SUB15=64]="F_CLEF_SUB15",t[t.F_CLEF_SUPER15=65]="F_CLEF_SUPER15",t[t.DOWN_BOW=66]="DOWN_BOW",t[t.MORDENT=67]="MORDENT",t[t.INVERTED_MORDENT=68]="INVERTED_MORDENT",t[t.TURN=69]="TURN",t[t.INVERTED_TURN=70]="INVERTED_TURN",t[t.LEFTHAND_PIZZICATO=71]="LEFTHAND_PIZZICATO",t[t.RELEASE_PED=72]="RELEASE_PED",t[t.ENGAGE_PED=73]="ENGAGE_PED",t[t.VA8=74]="VA8",t[t.VB8=75]="VB8",t[t.TRILL=76]="TRILL",t[t.MA15=77]="MA15",t[t.MB15=78]="MB15",t[t.HIGH=79]="HIGH",t[t.PLAY=80]="PLAY",t[t.MIC=81]="MIC",t[t.SNAP_PIZZICATO=82]="SNAP_PIZZICATO",t[t.NATURAL_HARMONIC=83]="NATURAL_HARMONIC",t[t.EditPen=84]="EditPen"}(e.MusicSymbol||(e.MusicSymbol={}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VexFlowTextMeasurer=void 0;const i=n(14);e.VexFlowTextMeasurer=class{constructor(t){this.fontSize=20,this.fontSizeStandard=this.fontSize;const e=document.createElement("canvas");this.context=e.getContext("2d"),this.rules=t}computeTextWidthToHeightRatio(t,e,n,s,r=this.fontSize){return this.context.font=i.VexFlowConverter.font(r,n,e,this.rules,s),this.context.measureText(t).width/r}setFontSize(t=this.fontSizeStandard){return this.fontSize=t,t}}},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.GraphicalInstantaneousDynamicExpression=void 0;const s=n(40),r=n(3),o=i(n(1));class a extends s.AbstractGraphicalExpression{constructor(t,e,n){super(e,t,n.parentSourceMeasure),this.mInstantaneousDynamicExpression=t,this.mMeasure=n}updateSkyBottomLine(){const t=this.parentStaffLine.SkyBottomLineCalculator,e=this.PositionAndShape.RelativePosition.x+this.PositionAndShape.BorderMarginLeft,n=this.PositionAndShape.RelativePosition.x+this.PositionAndShape.BorderMarginRight;let i=0;switch(this.Placement){case r.PlacementEnum.Above:i=this.PositionAndShape.RelativePosition.y+this.PositionAndShape.BorderMarginTop,t.updateSkyLineInRange(e,n,i);break;case r.PlacementEnum.Below:i=this.PositionAndShape.RelativePosition.y+this.PositionAndShape.BorderMarginBottom,t.updateBottomLineInRange(e,n,i);break;default:o.default.error("Placement for GraphicalInstantaneousDynamicExpression is unknown")}}}e.GraphicalInstantaneousDynamicExpression=a},function(t,e,n){"use strict";var i;Object.defineProperty(e,"__esModule",{value:!0}),e.ArpeggioType=e.Arpeggio=void 0,e.Arpeggio=class{constructor(t,e=i.ARPEGGIO_DIRECTIONLESS){this.parentVoiceEntry=t,this.type=e,this.notes=[]}addNote(t){this.notes.push(t),t.Arpeggio=this}},function(t){t[t.BRUSH_DOWN=1]="BRUSH_DOWN",t[t.BRUSH_UP=2]="BRUSH_UP",t[t.ROLL_DOWN=3]="ROLL_DOWN",t[t.ROLL_UP=4]="ROLL_UP",t[t.RASQUEDO_DOWN=5]="RASQUEDO_DOWN",t[t.RASQUEDO_UP=6]="RASQUEDO_UP",t[t.ARPEGGIO_DIRECTIONLESS=7]="ARPEGGIO_DIRECTIONLESS"}(i=e.ArpeggioType||(e.ArpeggioType={}))},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.VexFlowInstrumentBracket=void 0;const s=i(n(9)),r=n(6),o=n(4),a=n(18);class c extends r.GraphicalObject{constructor(t,e,n=0){super(),this.PositionAndShape=new o.BoundingBox(this,t.ParentMusicSystem.PositionAndShape);const i=t.Measures[0],r=e.Measures[0];this.addConnector(i.getVFStave(),r.getVFStave(),s.default.Flow.StaveConnector.type.BRACKET,n)}draw(t){this.vexflowConnector.setContext(t).draw();const e=this.vexflowConnector,n=e.top_stave.getYForLine(0),i=e.bottom_stave.getYForLine(e.bottom_stave.getNumLines()-1)+e.thickness;this.PositionAndShape.AbsolutePosition.x=(e.top_stave.getX()-2+e.x_shift)/a.unitInPixels,this.PositionAndShape.AbsolutePosition.y=n/a.unitInPixels,this.PositionAndShape.Size.height=(i-n)/a.unitInPixels,this.PositionAndShape.Size.width=12/a.unitInPixels}addConnector(t,e,n,i){this.vexflowConnector=new s.default.Flow.StaveConnector(t,e).setType(n).setXShift(-5*i)}}e.VexFlowInstrumentBracket=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VexFlowVoiceEntry=void 0;const i=n(106),s=n(18),r=n(33);class o extends i.GraphicalVoiceEntry{constructor(t,e){super(t,e)}applyBordersFromVexflow(){const t=this.vfStaveNote;if(!t.getNoteHeadBeginX)return;const e=t.getBoundingBox(),n=t.getNoteHeadBeginX()-e.x;this.PositionAndShape.RelativePosition.y=e.y/s.unitInPixels,this.PositionAndShape.BorderTop=0,this.PositionAndShape.BorderBottom=e.h/s.unitInPixels,this.PositionAndShape.BorderLeft=-(n+t.width/2)/s.unitInPixels,this.PositionAndShape.BorderRight=(e.w-n)/s.unitInPixels}set vfStaveNote(t){this.mVexFlowStaveNote=t}get vfStaveNote(){return this.mVexFlowStaveNote}color(){const t=this.rules.DefaultColorNotehead,e=this.rules.DefaultColorRest,n=this.rules.DefaultColorStem;let i,s;const o=this.vfStaveNote;for(let u=0;u<this.notes.length;u++){const n=this.notes[u];if(s=n.sourceNote.NoteheadColor,i=s,this.rules.ColoringMode===r.ColoringModes.AutoColoring||this.rules.ColoringMode===r.ColoringModes.CustomColorSet)if(n.sourceNote.isRest())i=this.rules.ColoringSetCurrent.getValue(-1);else{const t=n.sourceNote.Pitch.FundamentalNote;i=this.rules.ColoringSetCurrent.getValue(t)}if(n.sourceNote.PrintObject?i&&"#000000"!==i||(i=this.rules.DefaultColorNotehead):i="#00000000",!s&&this.rules.ColoringMode===r.ColoringModes.XML&&n.sourceNote.PrintObject&&(!n.sourceNote.isRest()&&t?i=t:n.sourceNote.isRest()&&e&&(i=e)),i&&n.sourceNote.PrintObject)n.sourceNote.NoteheadColorCurrentlyRendered=i;else if(!i)continue;if(this.rules.ColoringEnabled&&n.sourceNote.NoteBeam&&this.rules.ColorBeams){const t=n.sourceNote.NoteBeam.Notes;let e=!0;for(let n=0;n<t.length;n++)t[n].NoteheadColorCurrentlyRendered!==i&&(e=!1);e&&null!==o.beam&&o.beam.setStyle&&o.beam.setStyle({fillStyle:i,strokeStyle:i})}if(o){if(o.note_heads){const t=o.note_heads[u];t&&t.setStyle({fillStyle:i,strokeStyle:i})}o.setLedgerLineStyle&&("#00000000"===i?o.setLedgerLineStyle({fillStyle:i,strokeStyle:i,lineWidth:this.rules.LedgerLineWidth}):o.setLedgerLineStyle({fillStyle:this.rules.LedgerLineColorDefault,lineWidth:this.rules.LedgerLineWidth,strokeStyle:this.rules.LedgerLineColorDefault}))}}let a=n;this.rules.ColoringEnabled&&(a=this.parentVoiceEntry.StemColor,a&&"#000000"!==a||(a=n),this.rules.ColorStemsLikeNoteheads&&i&&(a=i));let c=!0;for(const r of this.parentVoiceEntry.Notes)if(r.PrintObject){c=!1;break}c&&(a="#00000000");const l={fillStyle:a,strokeStyle:a};o&&o.setStemStyle&&(c||(this.parentVoiceEntry.StemColor=a),o.setStemStyle(l),o.flag&&o.setFlagStyle&&this.rules.ColorFlags&&o.setFlagStyle(l))}}e.VexFlowVoiceEntry=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TechnicalInstruction=e.TechnicalInstructionType=void 0,function(t){t[t.Fingering=0]="Fingering"}(e.TechnicalInstructionType||(e.TechnicalInstructionType={})),e.TechnicalInstruction=class{}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VexFlowGraphicalNote=void 0;const i=n(109),s=n(14),r=n(30);class o extends i.GraphicalNote{constructor(t,e,n,i=r.OctaveEnum.NONE,o){if(super(t,e,o),this.clef=n,this.octaveShift=i,t.Pitch){const e=t.isRest()?t.Pitch:r.OctaveShift.getPitchFromOctaveShift(t.Pitch,i);this.vfpitch=s.VexFlowConverter.pitch(e,t.isRest(),this.clef,this.sourceNote.Notehead),this.vfpitch[1]=void 0}}setAccidental(t){const e=r.OctaveShift.getPitchFromOctaveShift(t,this.octaveShift);this.vfpitch=s.VexFlowConverter.pitch(e,this.sourceNote.isRest(),this.clef,this.sourceNote.Notehead)}Transpose(t,e,n,i){const o=super.Transpose(t,e,n,i),a=r.OctaveShift.getPitchFromOctaveShift(o,this.octaveShift);return this.vfpitch=s.VexFlowConverter.pitch(a,this.sourceNote.isRest(),this.clef,this.sourceNote.Notehead),this.vfpitch[1]=void 0,a}setIndex(t,e){this.vfnote=[t,e]}Clef(){return this.clef}getSVGId(){return this.vfnote[0].getAttribute("id")}getSVGGElement(){return this.vfnote[0].getAttribute("el")}}e.VexFlowGraphicalNote=o},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.CanvasVexFlowBackend=void 0;const s=i(n(9)),r=n(72),o=n(14),a=n(25),c=n(43);class l extends r.VexFlowBackend{constructor(t){super(),this.rules=t}getVexflowBackendType(){return s.default.Flow.Renderer.Backends.CANVAS}getOSMDBackendType(){return a.BackendType.Canvas}getCanvasSize(){var t;return null===(t=document.getElementById("osmdCanvasPage"+this.graphicalMusicPage.PageNumber))||void 0===t?void 0:t.offsetHeight}initialize(t){this.canvas=document.createElement("canvas"),this.graphicalMusicPage||(this.graphicalMusicPage=new c.GraphicalMusicPage(void 0),this.graphicalMusicPage.PageNumber=1),this.canvas.id="osmdCanvasVexFlowBackendCanvas"+this.graphicalMusicPage.PageNumber,this.inner=document.createElement("div"),this.inner.id="osmdCanvasPage"+this.graphicalMusicPage.PageNumber,this.inner.style.position="relative",this.canvas.style.zIndex="0",this.inner.appendChild(this.canvas),t.appendChild(this.inner),this.renderer=new s.default.Flow.Renderer(this.canvas,this.getVexflowBackendType()),this.ctx=this.renderer.getContext()}initializeHeadless(t=300,e=300){this.graphicalMusicPage||(this.graphicalMusicPage=new c.GraphicalMusicPage(void 0),this.graphicalMusicPage.PageNumber=1),this.canvas=document.createElement("canvas"),this.canvas.width=t,this.canvas.height=e,this.renderer=new s.default.Flow.Renderer(this.canvas,this.getVexflowBackendType()),this.ctx=this.renderer.getContext()}getContext(){return this.ctx}clear(){this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height),this.rules.PageBackgroundColor&&(this.ctx.save(),this.ctx.setFillStyle(this.rules.PageBackgroundColor),this.ctx.fillRect(0,0,this.canvas.width,this.canvas.height),this.ctx.restore())}scale(t){this.ctx.scale(t,t)}translate(t,e){this.CanvasRenderingCtx.translate(t,e)}renderText(t,e,n,i,s,r,a,c){const l=this.CanvasRenderingCtx.font;this.CanvasRenderingCtx.save(),this.CanvasRenderingCtx.font=o.VexFlowConverter.font(t,e,n,this.rules,c),this.CanvasRenderingCtx.fillStyle=a,this.CanvasRenderingCtx.strokeStyle=a,this.CanvasRenderingCtx.fillText(i,r.x,r.y+s),this.CanvasRenderingCtx.restore(),this.CanvasRenderingCtx.font=l}renderRectangle(t,e,n=1){const i=this.CanvasRenderingCtx.fillStyle;this.CanvasRenderingCtx.fillStyle=o.VexFlowConverter.style(e),this.CanvasRenderingCtx.globalAlpha=n,this.ctx.fillRect(t.x,t.y,t.width,t.height),this.CanvasRenderingCtx.fillStyle=i,this.CanvasRenderingCtx.globalAlpha=1}renderLine(t,e,n="#FF0000FF",i=2){const s=this.CanvasRenderingCtx.strokeStyle;this.CanvasRenderingCtx.strokeStyle=n,this.CanvasRenderingCtx.beginPath(),this.CanvasRenderingCtx.moveTo(t.x,t.y),this.CanvasRenderingCtx.lineTo(e.x,e.y),this.CanvasRenderingCtx.stroke(),this.CanvasRenderingCtx.strokeStyle=s}renderCurve(t){this.ctx.beginPath(),this.ctx.moveTo(t[0].x,t[0].y),this.ctx.bezierCurveTo(t[1].x,t[1].y,t[2].x,t[2].y,t[3].x,t[3].y),this.ctx.lineTo(t[7].x,t[7].y),this.ctx.bezierCurveTo(t[6].x,t[6].y,t[5].x,t[5].y,t[4].x,t[4].y),this.ctx.lineTo(t[0].x,t[0].y),this.ctx.closePath(),this.ctx.fill()}get CanvasRenderingCtx(){return this.ctx.vexFlowCanvasContext}}e.CanvasVexFlowBackend=l},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.VexFlowBackend=e.VexFlowBackends=void 0;const s=i(n(9));e.VexFlowBackends=class{},e.VexFlowBackend=class{getInnerElement(){return this.inner}getCanvas(){return this.canvas}getRenderElement(){let t=this.canvas;return this.getVexflowBackendType()===s.default.Flow.Renderer.Backends.CANVAS&&(t=this.inner),t}getRenderer(){return this.renderer}removeAllChildrenFromContainer(t){for(;0!==t.children.length;)t.removeChild(t.children.item(0))}removeFromContainer(t){const e=this.getRenderElement();for(let n=0;n<t.children.length;n++)if(t.children.item(n)===e){t.removeChild(e);break}}resize(t,e){this.renderer.resize(t,e),this.width=t,this.height=e}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VexFlowContinuousDynamicExpression=void 0;const i=n(48),s=n(24),r=n(13),o=n(8),a=n(20);class c extends i.GraphicalContinuousDynamicExpression{constructor(t,e,n,i){if(super(t,e,n),this.IsVerbal){const e=new r.Label(t.Label);this.label=new s.GraphicalLabel(e,i||this.rules.ContinuousDynamicTextHeight,o.TextAlignmentEnum.LeftCenter,this.rules,this.PositionAndShape),this.label.Label.fontStyle=a.FontStyles.Italic,this.label.setLabelPositionAndShapeBorders(),this.PositionAndShape.calculateBoundingBox()}}}e.VexFlowContinuousDynamicExpression=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PartListEntry=void 0,e.PartListEntry=class{constructor(t){this.enrolledTimestamps=[],this.visible=!0,this.musicSheet=t}get Visible(){return this.visible}set Visible(t){this.visible=t}getFirstSourceMeasure(){return this.musicSheet.SourceMeasures[this.startIndex]}getLastSourceMeasure(){return this.musicSheet.SourceMeasures[this.endIndex]}}},function(t,e,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}),s=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||e.hasOwnProperty(n)||i(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),s(n(76),e),s(n(77),e),s(n(25),e),s(n(152),e)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AJAX=void 0,e.AJAX=class{static ajax(t){let e;const n=t.indexOf(".mxl")>-1?"text/plain; charset=x-user-defined":"application/xml";if(XMLHttpRequest)e=new XMLHttpRequest;else{if(!ActiveXObject)return Promise.reject(new Error("XMLHttp not supported."));e=new ActiveXObject("Microsoft.XMLHTTP")}return new Promise((i,s)=>{e.onreadystatechange=()=>{e.readyState===XMLHttpRequest.DONE&&(200===e.status||0===e.status&&e.responseText?i(e.responseText):s(new Error("Could not retrieve requested URL "+e.status)))},e.ontimeout=t=>{s(new Error("Server request Timeout"))},e.overrideMimeType(n),e.open("GET",t,!0),e.send()})}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Cursor=void 0;const i=n(0);e.Cursor=class{constructor(t,e){this.hidden=!0,this.currentPageNumber=1,this.container=t,this.openSheetMusicDisplay=e,this.rules=this.openSheetMusicDisplay.EngravingRules;let n=0;for(this.cursorElementId="cursorImg-0";document.getElementById(this.cursorElementId);)n++,this.cursorElementId="cursorImg-"+n;const i=document.createElement("img");i.id=this.cursorElementId,i.style.position="absolute",i.style.zIndex="-1",this.cursorElement=i,this.container.appendChild(i)}init(t,e){this.manager=t,this.graphic=e,this.reset(),this.hidden=!0,this.hide()}show(){this.hidden=!1,this.resetIterator(),this.update()}resetIterator(){if(!this.openSheetMusicDisplay.Sheet||!this.openSheetMusicDisplay.Sheet.SourceMeasures)return void console.log("OSMD.Cursor.resetIterator(): sheet or measures were null/undefined.");const t=this.openSheetMusicDisplay.Sheet.SourceMeasures.length-1;let e=this.rules.MinMeasureToDrawIndex;e=Math.min(e,t);let n=this.rules.MaxMeasureToDrawIndex;if(n=Math.min(n,t),this.openSheetMusicDisplay.Sheet&&this.openSheetMusicDisplay.Sheet.SourceMeasures.length>e&&(this.openSheetMusicDisplay.Sheet.SelectionStart=this.openSheetMusicDisplay.Sheet.SourceMeasures[e].AbsoluteTimestamp),this.openSheetMusicDisplay.Sheet&&this.openSheetMusicDisplay.Sheet.SourceMeasures.length>n){const t=this.openSheetMusicDisplay.Sheet.SourceMeasures[n];this.openSheetMusicDisplay.Sheet.SelectionEnd=i.Fraction.plus(t.AbsoluteTimestamp,t.Duration)}this.iterator=this.manager.getIterator()}getStaffEntryFromVoiceEntry(t){const e=t.ParentSourceStaffEntry.VerticalContainerParent.ParentMeasure.measureListIndex,n=t.ParentSourceStaffEntry.ParentStaff.idInMusicSheet;return this.graphic.findGraphicalStaffEntryFromMeasureList(n,e,t.ParentSourceStaffEntry)}update(){if(this.hidden||void 0===this.hidden||null===this.hidden)return;this.updateCurrentPage();const t=this.iterator,e=t.CurrentVisibleVoiceEntries();if(t.EndReached||!t.CurrentVoiceEntries||0===e.length)return;let n,i=0,s=0,r=0;if(t.CurrentMeasure.isReducedToMultiRest){const e=this.graphic.findGraphicalMeasure(t.CurrentMeasureIndex,0),s=e.parentSourceMeasure.multipleRestMeasures,r=t.CurrentMeasure.multipleRestMeasureNumber/(s+1),o=e.PositionAndShape.Size.width-e.beginInstructionsWidth;i=e.PositionAndShape.AbsolutePosition.x+e.beginInstructionsWidth+r*o,n=e.ParentMusicSystem}else{const t=e.map(t=>this.getStaffEntryFromVoiceEntry(t)).sort((t,e)=>{var n,i,s,r;return(null===(i=null===(n=null==t?void 0:t.PositionAndShape)||void 0===n?void 0:n.AbsolutePosition)||void 0===i?void 0:i.x)<=(null===(r=null===(s=null==e?void 0:e.PositionAndShape)||void 0===s?void 0:s.AbsolutePosition)||void 0===r?void 0:r.x)?-1:1})[0];i=t.PositionAndShape.AbsolutePosition.x,n=t.parentMeasure.ParentMusicSystem}if(!n)return;s=n.PositionAndShape.AbsolutePosition.y+n.StaffLines[0].PositionAndShape.RelativePosition.y;const o=n.StaffLines[n.StaffLines.length-1];r=n.PositionAndShape.AbsolutePosition.y+o.PositionAndShape.RelativePosition.y+o.StaffHeight-s;const a=this.cursorElement;a.style.top=10*s*this.openSheetMusicDisplay.zoom+"px",a.style.left=10*(i-1.5)*this.openSheetMusicDisplay.zoom+"px",a.height=10*r*this.openSheetMusicDisplay.zoom;const c=30*this.openSheetMusicDisplay.zoom;if(c!==a.width&&(a.width=c,this.updateStyle(c)),this.openSheetMusicDisplay.FollowCursor){const t=this.cursorElement.getBoundingClientRect().top;this.cursorElement.scrollIntoView({behavior:t<1e3?"smooth":"auto",block:"center"})}this.cursorElement.style.display=""}hide(){this.cursorElement.style.display="none",this.hidden=!0}next(){this.iterator.moveToNext(),this.update()}reset(){this.resetIterator(),this.update()}updateStyle(t,e="#33e02f"){const n=document.createElement("canvas");n.width=this.cursorElement.width,n.height=1;const i=n.getContext("2d");i.globalAlpha=.5;const s=i.createLinearGradient(0,0,this.cursorElement.width,0);s.addColorStop(0,"white"),s.addColorStop(.2,e),s.addColorStop(.8,e),s.addColorStop(1,"white"),i.fillStyle=s,i.fillRect(0,0,t,1),this.cursorElement.src=n.toDataURL("image/png")}get Iterator(){return this.iterator}get Hidden(){return this.hidden}VoicesUnderCursor(t){return this.iterator.CurrentVisibleVoiceEntries(t)}NotesUnderCursor(t){const e=this.VoicesUnderCursor(t),n=[];return e.forEach(t=>{n.push.apply(n,t.Notes)}),n}updateCurrentPage(){const t=this.iterator.currentTimeStamp;for(const e of this.graphic.MusicPages)if(e.MusicSystems.last().GetSystemsLastTimeStamp().gt(t)){const t=e.PageNumber;return t!==this.currentPageNumber&&(this.container.removeChild(this.cursorElement),this.container=document.getElementById("osmdCanvasPage"+t),this.container.appendChild(this.cursorElement)),this.currentPageNumber=t}return 1}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SizeF2D=void 0,e.SizeF2D=class{constructor(t=0,e=0){this.width=t,this.height=e}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(10),s=n(35),r=n(29),o=function(){function t(t){this.dictionary=new r.default(t)}return t.prototype.contains=function(t){return this.dictionary.containsKey(t)},t.prototype.add=function(t){return!this.contains(t)&&!i.isUndefined(t)&&(this.dictionary.setValue(t,t),!0)},t.prototype.intersection=function(t){var e=this;this.forEach((function(n){return t.contains(n)||e.remove(n),!0}))},t.prototype.union=function(t){var e=this;t.forEach((function(t){return e.add(t),!0}))},t.prototype.difference=function(t){var e=this;t.forEach((function(t){return e.remove(t),!0}))},t.prototype.isSubsetOf=function(t){if(this.size()>t.size())return!1;var e=!0;return this.forEach((function(n){return!!t.contains(n)||(e=!1,!1)})),e},t.prototype.remove=function(t){return!!this.contains(t)&&(this.dictionary.remove(t),!0)},t.prototype.forEach=function(t){this.dictionary.forEach((function(e,n){return t(n)}))},t.prototype.toArray=function(){return this.dictionary.values()},t.prototype.isEmpty=function(){return this.dictionary.isEmpty()},t.prototype.size=function(){return this.dictionary.size()},t.prototype.clear=function(){this.dictionary.clear()},t.prototype.toString=function(){return s.toString(this.toArray())},t}();e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(10),s=n(81),r=function(){function t(t){this.root=null,this.compare=t||i.defaultCompare,this.nElements=0}return t.prototype.add=function(t){return!i.isUndefined(t)&&null!==this.insertNode(this.createNode(t))&&(this.nElements++,!0)},t.prototype.clear=function(){this.root=null,this.nElements=0},t.prototype.isEmpty=function(){return 0===this.nElements},t.prototype.size=function(){return this.nElements},t.prototype.contains=function(t){return!i.isUndefined(t)&&null!==this.searchNode(this.root,t)},t.prototype.search=function(t){var e=this.searchNode(this.root,t);if(null!==e)return e.element},t.prototype.remove=function(t){var e=this.searchNode(this.root,t);return null!==e&&(this.removeNode(e),this.nElements--,!0)},t.prototype.inorderTraversal=function(t){this.inorderTraversalAux(this.root,t,{stop:!1})},t.prototype.preorderTraversal=function(t){this.preorderTraversalAux(this.root,t,{stop:!1})},t.prototype.postorderTraversal=function(t){this.postorderTraversalAux(this.root,t,{stop:!1})},t.prototype.levelTraversal=function(t){this.levelTraversalAux(this.root,t)},t.prototype.minimum=function(){if(!this.isEmpty()&&null!==this.root)return this.minimumAux(this.root).element},t.prototype.maximum=function(){if(!this.isEmpty()&&null!==this.root)return this.maximumAux(this.root).element},t.prototype.forEach=function(t){this.inorderTraversal(t)},t.prototype.toArray=function(){var t=[];return this.inorderTraversal((function(e){return t.push(e),!0})),t},t.prototype.height=function(){return this.heightAux(this.root)},t.prototype.searchNode=function(t,e){for(var n=1;null!==t&&0!==n;)(n=this.compare(e,t.element))<0?t=t.leftCh:n>0&&(t=t.rightCh);return t},t.prototype.transplant=function(t,e){null===t.parent?this.root=e:t===t.parent.leftCh?t.parent.leftCh=e:t.parent.rightCh=e,null!==e&&(e.parent=t.parent)},t.prototype.removeNode=function(t){if(null===t.leftCh)this.transplant(t,t.rightCh);else if(null===t.rightCh)this.transplant(t,t.leftCh);else{var e=this.minimumAux(t.rightCh);e.parent!==t&&(this.transplant(e,e.rightCh),e.rightCh=t.rightCh,e.rightCh.parent=e),this.transplant(t,e),e.leftCh=t.leftCh,e.leftCh.parent=e}},t.prototype.inorderTraversalAux=function(t,e,n){null===t||n.stop||(this.inorderTraversalAux(t.leftCh,e,n),n.stop||(n.stop=!1===e(t.element),n.stop||this.inorderTraversalAux(t.rightCh,e,n)))},t.prototype.levelTraversalAux=function(t,e){var n=new s.default;for(null!==t&&n.enqueue(t),t=n.dequeue()||null;null!=t;){if(!1===e(t.element))return;null!==t.leftCh&&n.enqueue(t.leftCh),null!==t.rightCh&&n.enqueue(t.rightCh),t=n.dequeue()||null}},t.prototype.preorderTraversalAux=function(t,e,n){null===t||n.stop||(n.stop=!1===e(t.element),n.stop||(this.preorderTraversalAux(t.leftCh,e,n),n.stop||this.preorderTraversalAux(t.rightCh,e,n)))},t.prototype.postorderTraversalAux=function(t,e,n){null===t||n.stop||(this.postorderTraversalAux(t.leftCh,e,n),n.stop||(this.postorderTraversalAux(t.rightCh,e,n),n.stop||(n.stop=!1===e(t.element))))},t.prototype.minimumAux=function(t){for(;null!=t&&null!==t.leftCh;)t=t.leftCh;return t},t.prototype.maximumAux=function(t){for(;null!=t&&null!==t.rightCh;)t=t.rightCh;return t},t.prototype.heightAux=function(t){return null===t?-1:Math.max(this.heightAux(t.leftCh),this.heightAux(t.rightCh))+1},t.prototype.insertNode=function(t){for(var e=null,n=this.root;null!==n;){var i=this.compare(t.element,n.element);if(0===i)return null;i<0?(e=n,n=n.leftCh):(e=n,n=n.rightCh)}return t.parent=e,null===e?this.root=t:this.compare(t.element,e.element)<0?e.leftCh=t:e.rightCh=t,t},t.prototype.createNode=function(t){return{element:t,leftCh:null,rightCh:null,parent:null}},t}();e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(51),s=function(){function t(){this.list=new i.default}return t.prototype.enqueue=function(t){return this.list.add(t)},t.prototype.add=function(t){return this.list.add(t)},t.prototype.dequeue=function(){if(0!==this.list.size()){var t=this.list.first();return this.list.removeElementAtIndex(0),t}},t.prototype.peek=function(){if(0!==this.list.size())return this.list.first()},t.prototype.size=function(){return this.list.size()},t.prototype.contains=function(t,e){return this.list.contains(t,e)},t.prototype.isEmpty=function(){return this.list.size()<=0},t.prototype.clear=function(){this.list.clear()},t.prototype.forEach=function(t){this.list.forEach(t)},t}();e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(10),s=n(35),r=function(){function t(t){this.data=[],this.compare=t||i.defaultCompare}return t.prototype.leftChildIndex=function(t){return 2*t+1},t.prototype.rightChildIndex=function(t){return 2*t+2},t.prototype.parentIndex=function(t){return Math.floor((t-1)/2)},t.prototype.minIndex=function(t,e){return e>=this.data.length?t>=this.data.length?-1:t:this.compare(this.data[t],this.data[e])<=0?t:e},t.prototype.siftUp=function(t){for(var e=this.parentIndex(t);t>0&&this.compare(this.data[e],this.data[t])>0;)s.swap(this.data,e,t),t=e,e=this.parentIndex(t)},t.prototype.siftDown=function(t){for(var e=this.minIndex(this.leftChildIndex(t),this.rightChildIndex(t));e>=0&&this.compare(this.data[t],this.data[e])>0;)s.swap(this.data,e,t),t=e,e=this.minIndex(this.leftChildIndex(t),this.rightChildIndex(t))},t.prototype.peek=function(){return this.data.length>0?this.data[0]:void 0},t.prototype.add=function(t){return!i.isUndefined(t)&&(this.data.push(t),this.siftUp(this.data.length-1),!0)},t.prototype.removeRoot=function(){if(this.data.length>0){var t=this.data[0];return this.data[0]=this.data[this.data.length-1],this.data.splice(this.data.length-1,1),this.data.length>0&&this.siftDown(0),t}},t.prototype.contains=function(t){var e=i.compareToEquals(this.compare);return s.contains(this.data,t,e)},t.prototype.size=function(){return this.data.length},t.prototype.isEmpty=function(){return this.data.length<=0},t.prototype.clear=function(){this.data.length=0},t.prototype.forEach=function(t){s.forEach(this.data,t)},t}();e.default=r},function(t,e,n){"use strict";var i,s=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var r=n(29),o=n(10),a=function(t){function e(e,n){var i=t.call(this,n)||this;return i.defaultFactoryFunction=e,i}return s(e,t),e.prototype.setDefault=function(e,n){var i=t.prototype.getValue.call(this,e);return o.isUndefined(i)?(this.setValue(e,n),n):i},e.prototype.getValue=function(t){return this.setDefault(t,this.defaultFactoryFunction())},e}(r.default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Fonts=void 0,function(t){t[t.TimesNewRoman=0]="TimesNewRoman",t[t.Kokila=1]="Kokila"}(e.Fonts||(e.Fonts={}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractTempoExpression=void 0;const i=n(3);class s extends i.AbstractExpression{constructor(t,e,n,i){super(e),this.label=t,this.staffNumber=n,this.parentMultiTempoExpression=i}get Label(){return this.label}set Label(t){this.label=t}get Placement(){return this.placement}set Placement(t){this.placement=t}get StaffNumber(){return this.staffNumber}set StaffNumber(t){this.staffNumber=t}get ParentMultiTempoExpression(){return this.parentMultiTempoExpression}static isStringInStringList(t,e){for(const n of t)if(s.stringContainsSeparatedWord(e.toLowerCase().trim(),n.toLowerCase().trim()))return!0;return!1}static stringContainsSeparatedWord(t,e){return t===e||-1!==t.indexOf(" "+e)||-1!==t.indexOf(e+" ")}}e.AbstractTempoExpression=s},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.GraphicalUnknownExpression=void 0;const s=n(40),r=n(3),o=i(n(1));class a extends s.AbstractGraphicalExpression{constructor(t,e,n,i,s){super(t,new r.AbstractExpression(n),i),this.label=e,this.sourceMultiExpression=s}updateSkyBottomLine(){const t=this.parentStaffLine.SkyBottomLineCalculator,e=this.label.PositionAndShape.RelativePosition.x+this.label.PositionAndShape.BorderMarginLeft,n=this.label.PositionAndShape.RelativePosition.x+this.label.PositionAndShape.BorderMarginRight;switch(this.Placement){case r.PlacementEnum.Above:const i=this.label.PositionAndShape.BorderMarginTop+this.label.PositionAndShape.RelativePosition.y;t.updateSkyLineInRange(e,n,i);break;case r.PlacementEnum.Below:const s=this.label.PositionAndShape.BorderMarginBottom+this.label.PositionAndShape.RelativePosition.y;t.updateBottomLineInRange(e,n,s);break;default:o.default.error("Placement for GraphicalUnknownExpression is unknown")}}}e.GraphicalUnknownExpression=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SourceMeasure=void 0;const i=n(0),s=n(52),r=n(31),o=n(28),a=n(12),c=n(7),l=n(16),u=n(23);e.SourceMeasure=class{constructor(t,e){this.printNewSystemXml=!1,this.printNewPageXml=!1,this.hasLyrics=!1,this.hasMoodExpressions=!1,this.allRests=!1,this.isReducedToMultiRest=!1,this.multipleRestMeasureNumber=0,this.staffLinkedExpressions=[],this.tempoExpressions=[],this.verticalSourceStaffEntryContainers=[],this.graphicalMeasureErrors=[],this.firstRepetitionInstructions=[],this.lastRepetitionInstructions=[],this.completeNumberOfStaves=t,this.implicitMeasure=!1,this.hasEndLine=!1,this.endingBarStyleXml="",this.endingBarStyleEnum=u.SystemLinesEnum.SingleThin,this.firstInstructionsStaffEntries=new Array(t),this.lastInstructionsStaffEntries=new Array(t),this.rules=e,this.TempoInBPM=0;for(let n=0;n<t;n++)this.graphicalMeasureErrors.push(!1),this.staffLinkedExpressions.push([])}get MeasureNumber(){return this.measureNumber}set MeasureNumber(t){this.measureNumber=t}get AbsoluteTimestamp(){return this.absoluteTimestamp}set AbsoluteTimestamp(t){this.absoluteTimestamp=t}get CompleteNumberOfStaves(){return this.completeNumberOfStaves}get Duration(){return this.duration}set Duration(t){this.duration=t}get ActiveTimeSignature(){return this.activeTimeSignature}set ActiveTimeSignature(t){this.activeTimeSignature=t}get ImplicitMeasure(){return this.implicitMeasure}set ImplicitMeasure(t){this.implicitMeasure=t}get HasEndLine(){return this.hasEndLine}set HasEndLine(t){this.hasEndLine=t}get StaffLinkedExpressions(){return this.staffLinkedExpressions}get TempoExpressions(){return this.tempoExpressions}get VerticalSourceStaffEntryContainers(){return this.verticalSourceStaffEntryContainers}get FirstInstructionsStaffEntries(){return this.firstInstructionsStaffEntries}get LastInstructionsStaffEntries(){return this.lastInstructionsStaffEntries}get FirstRepetitionInstructions(){return this.firstRepetitionInstructions}get LastRepetitionInstructions(){return this.lastRepetitionInstructions}getErrorInMeasure(t){return this.graphicalMeasureErrors[t]}setErrorInGraphicalMeasure(t,e){this.graphicalMeasureErrors[t]=e}getNextMeasure(t){return t[this.measureListIndex+1]}getPreviousMeasure(t){if(this.measureListIndex>1)return t[this.measureListIndex-1]}get Rules(){return this.rules}get VerticalMeasureList(){return this.verticalMeasureList}set VerticalMeasureList(t){this.verticalMeasureList=t}get TempoInBPM(){return this.tempoInBPM}set TempoInBPM(t){this.tempoInBPM=t}findOrCreateStaffEntry(t,e,n){let i,o=void 0;for(const s of this.verticalSourceStaffEntryContainers)if(s.Timestamp.Equals(t)){i=s;break}if(i)return i.StaffEntries[e]?o=i.StaffEntries[e]:(o=new r.SourceStaffEntry(i,n),i.StaffEntries[e]=o),{createdNewContainer:!1,staffEntry:o};const a=this.verticalSourceStaffEntryContainers[this.verticalSourceStaffEntryContainers.length-1];if(0===this.verticalSourceStaffEntryContainers.length||a.Timestamp.lt(t)){const i=new s.VerticalSourceStaffEntryContainer(this,t.clone(),this.completeNumberOfStaves);this.verticalSourceStaffEntryContainers.push(i),o=new r.SourceStaffEntry(i,n),i.StaffEntries[e]=o}else for(let c=this.verticalSourceStaffEntryContainers.length-1;c>=0;c--){if(this.verticalSourceStaffEntryContainers[c].Timestamp.lt(t)){const i=new s.VerticalSourceStaffEntryContainer(this,t.clone(),this.completeNumberOfStaves);this.verticalSourceStaffEntryContainers.splice(c+1,0,i),o=new r.SourceStaffEntry(i,n),i.StaffEntries[e]=o;break}if(0===c){const i=new s.VerticalSourceStaffEntryContainer(this,t.clone(),this.completeNumberOfStaves);this.verticalSourceStaffEntryContainers.splice(c,0,i),o=new r.SourceStaffEntry(i,n),i.StaffEntries[e]=o;break}}return{createdNewContainer:!0,staffEntry:o}}findOrCreateVoiceEntry(t,e){let n=void 0,i=!1;for(const s of t.VoiceEntries)if(s.ParentVoice===e){n=s;break}return n||(n=new a.VoiceEntry(t.Timestamp,e,t),t.VoiceEntries.push(n),i=!0),{createdVoiceEntry:i,voiceEntry:n}}getPreviousSourceStaffEntryFromIndex(t,e){for(let n=e-1;n>=0;n--)if(this.verticalSourceStaffEntryContainers[n][t])return this.verticalSourceStaffEntryContainers[n][t]}getVerticalContainerIndexByTimestamp(t){for(let e=0,n=this.VerticalSourceStaffEntryContainers.length;e<n;++e)if(this.VerticalSourceStaffEntryContainers[e].Timestamp.Equals(t))return e;return-1}getVerticalContainerByTimestamp(t){for(let e=0,n=this.VerticalSourceStaffEntryContainers.length;e<n;++e){const n=this.VerticalSourceStaffEntryContainers[e];if(n.Timestamp.Equals(t))return n}}checkForEmptyVerticalContainer(t){let e=0;for(let n=0;n<this.completeNumberOfStaves;n++)this.verticalSourceStaffEntryContainers[t][n]||e++;e===this.completeNumberOfStaves&&this.verticalSourceStaffEntryContainers.splice(t,1)}reverseCheck(t,e){let n=new i.Fraction(0,1);const s=[];for(let r=0;r<t.Instruments.length;r++){let e=new i.Fraction(0,1);const n=t.getGlobalStaffIndexOfFirstStaff(t.Instruments[r]);for(let s=0;s<t.Instruments[r].Staves.length;s++){const t=this.getLastSourceStaffEntryForInstrument(n+s);if(void 0!==t&&!t.hasTie())for(let r=this.verticalSourceStaffEntryContainers.indexOf(t.VerticalContainerParent)-1;r>=0;r--){const t=this.verticalSourceStaffEntryContainers[r][n+s];if(void 0!==t&&t.hasTie()&&e.lt(i.Fraction.plus(t.Timestamp,t.calculateMaxNoteLength()))){e=i.Fraction.plus(t.Timestamp,t.calculateMaxNoteLength());break}}}s.push(e)}for(let i=0,r=s.length;i<r;++i){const t=s[i];n.lt(t)&&(n=t)}return i.Fraction.max(n,e)}calculateInstrumentsDuration(t,e){const n=[];for(let s=0;s<t.Instruments.length;s++){let r=new i.Fraction(0,1);const o=t.getGlobalStaffIndexOfFirstStaff(t.Instruments[s]);for(let e=0;e<t.Instruments[s].Staves.length;e++){const t=this.getLastSourceStaffEntryForInstrument(o+e);void 0!==t&&t.Timestamp&&r.lt(i.Fraction.plus(t.Timestamp,t.calculateMaxNoteLength()))&&(r=i.Fraction.plus(t.Timestamp,t.calculateMaxNoteLength()))}r.lt(e[s])&&(r=e[s]),n.push(r)}return n}getEntriesPerStaff(t){const e=[];for(const n of this.VerticalSourceStaffEntryContainers){const i=n.StaffEntries[t];i&&e.push(i)}return e}hasBeginInstructions(){for(let t=0,e=this.FirstInstructionsStaffEntries.length;t<e;t++){const e=this.FirstInstructionsStaffEntries[t];if(void 0!==e&&e.Instructions.length>0)return!0}return!1}beginsWithLineRepetition(){for(let t=0,e=this.FirstRepetitionInstructions.length;t<e;++t){const e=this.FirstRepetitionInstructions[t];if(e.type===o.RepetitionInstructionEnum.StartLine)return!0;if(void 0!==e.parentRepetition&&e===e.parentRepetition.startMarker&&!e.parentRepetition.FromWords)return!0}return!1}endsWithLineRepetition(){for(let t=0,e=this.LastRepetitionInstructions.length;t<e;++t){const e=this.LastRepetitionInstructions[t];if(e.type===o.RepetitionInstructionEnum.BackJumpLine)return!0;const n=e.parentRepetition;if(n&&!n.FromWords)for(let t=0,i=n.BackwardJumpInstructions.length;t<i;++t)if(e===n.BackwardJumpInstructions[t])return!0}return!1}beginsWithWordRepetition(){for(let t=0,e=this.FirstRepetitionInstructions.length;t<e;++t){const e=this.FirstRepetitionInstructions[t];if(void 0!==e.parentRepetition&&e===e.parentRepetition.startMarker&&e.parentRepetition.FromWords)return!0}return!1}endsWithWordRepetition(){for(let t=0,e=this.LastRepetitionInstructions.length;t<e;++t){const e=this.LastRepetitionInstructions[t],n=e.parentRepetition;if(n&&n.FromWords){for(let t=0,i=n.BackwardJumpInstructions.length;t<i;++t)if(e===n.BackwardJumpInstructions[t])return!0;if(e===n.forwardJumpInstruction)return!0}}return!1}beginsRepetitionEnding(){for(const t of this.FirstRepetitionInstructions)if(t.type===o.RepetitionInstructionEnum.Ending&&t.alignment===o.AlignmentType.Begin)return!0;return!1}endsRepetitionEnding(){for(const t of this.LastRepetitionInstructions)if(t.type===o.RepetitionInstructionEnum.Ending&&t.alignment===o.AlignmentType.End)return!0;return!1}getKeyInstruction(t){if(this.FirstInstructionsStaffEntries[t]){const e=this.FirstInstructionsStaffEntries[t];for(let t=0,n=e.Instructions.length;t<n;++t){const n=e.Instructions[t];if(n instanceof l.KeyInstruction)return n}}}getLastSourceStaffEntryForInstrument(t){let e;for(let n=this.verticalSourceStaffEntryContainers.length-1;n>=0&&(e=this.verticalSourceStaffEntryContainers[n].StaffEntries[t],!e);n--);return e}canBeReducedToMultiRest(){if(!this.allRests||this.hasLyrics||this.hasMoodExpressions||this.tempoExpressions.length>0)return!1;for(const t of this.staffLinkedExpressions)if(t.length>0)return!1;for(const t of this.lastInstructionsStaffEntries)for(let e=0,n=null==t?void 0:t.Instructions.length;e<n;++e)if(t.Instructions[e]instanceof c.ClefInstruction)return!1;return!0}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Tie=void 0;const i=n(0);e.Tie=class{constructor(t,e){this.notes=[],this.AddNote(t),this.type=e}get Notes(){return this.notes}get Type(){return this.type}get StartNote(){return this.notes[0]}get Duration(){const t=new i.Fraction;for(const e of this.notes)t.Add(e.Length);return t}get Pitch(){return this.StartNote.Pitch}AddNote(t){this.notes.push(t),t.NoteTie=this}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MoodEnum=e.MoodExpression=void 0;const i=n(3);class s extends i.AbstractExpression{constructor(t,e,n){super(e),this.label=t,this.staffNumber=n,this.setMoodType()}static isInputStringMood(t){return!!t&&(s.isStringInStringList(s.listMoodAffettuoso,t)||s.isStringInStringList(s.listMoodAgitato,t)||s.isStringInStringList(s.listMoodAnimato,t)||s.isStringInStringList(s.listMoodAppassionato,t)||s.isStringInStringList(s.listMoodBrillante,t)||s.isStringInStringList(s.listMoodCantabile,t)||s.isStringInStringList(s.listMoodDolce,t)||s.isStringInStringList(s.listMoodEnergico,t)||s.isStringInStringList(s.listMoodEroico,t)||s.isStringInStringList(s.listMoodEspressivo,t)||s.isStringInStringList(s.listMoodFurioso,t)||s.isStringInStringList(s.listMoodGiocoso,t)||s.isStringInStringList(s.listMoodGioioso,t)||s.isStringInStringList(s.listMoodGrandioso,t)||s.isStringInStringList(s.listMoodGrazioso,t)||s.isStringInStringList(s.listMoodLacrimoso,t)||s.isStringInStringList(s.listMoodLeggiero,t)||s.isStringInStringList(s.listMoodMaestoso,t)||s.isStringInStringList(s.listMoodMalinconico,t)||s.isStringInStringList(s.listMoodMarcato,t)||s.isStringInStringList(s.listMoodMarziale,t)||s.isStringInStringList(s.listMoodMesto,t)||s.isStringInStringList(s.listMoodMorendo,t)||s.isStringInStringList(s.listMoodNobilmente,t)||s.isStringInStringList(s.listMoodPatetico,t)||s.isStringInStringList(s.listMoodPesante,t)||s.isStringInStringList(s.listMoodSaltando,t)||s.isStringInStringList(s.listMoodSautille,t)||s.isStringInStringList(s.listMoodScherzando,t)||s.isStringInStringList(s.listMoodSostenuto,t)||s.isStringInStringList(s.listMoodSpiccato,t)||s.isStringInStringList(s.listMoodTenerezza,t)||s.isStringInStringList(s.listMoodTranquillamente,t)||s.isStringInStringList(s.listMoodTrionfante,t))}get Label(){return this.label}set Label(t){this.label=t}get Mood(){return this.moodType}set Mood(t){this.moodType=t}get StaffNumber(){return this.staffNumber}set StaffNumber(t){this.staffNumber=t}get Placement(){return this.placement}set Placement(t){this.placement=t}setMoodType(){s.isStringInStringList(s.listMoodAffettuoso,this.label)?this.moodType=r.Affettuoso:s.isStringInStringList(s.listMoodAgitato,this.label)?this.moodType=r.Agitato:s.isStringInStringList(s.listMoodAnimato,this.label)?this.moodType=r.Animato:s.isStringInStringList(s.listMoodAppassionato,this.label)?this.moodType=r.Appassionato:s.isStringInStringList(s.listMoodBrillante,this.label)?this.moodType=r.Brillante:s.isStringInStringList(s.listMoodCantabile,this.label)?this.moodType=r.Cantabile:s.isStringInStringList(s.listMoodDolce,this.label)?this.moodType=r.Dolce:s.isStringInStringList(s.listMoodEnergico,this.label)?this.moodType=r.Energico:s.isStringInStringList(s.listMoodEroico,this.label)?this.moodType=r.Eroico:s.isStringInStringList(s.listMoodEspressivo,this.label)?this.moodType=r.Espressivo:s.isStringInStringList(s.listMoodFurioso,this.label)?this.moodType=r.Furioso:s.isStringInStringList(s.listMoodGiocoso,this.label)?this.moodType=r.Giocoso:s.isStringInStringList(s.listMoodGioioso,this.label)?this.moodType=r.Gioioso:s.isStringInStringList(s.listMoodGrandioso,this.label)?this.moodType=r.Grandioso:s.isStringInStringList(s.listMoodGrazioso,this.label)?this.moodType=r.Grazioso:s.isStringInStringList(s.listMoodLacrimoso,this.label)?this.moodType=r.Lacrimoso:s.isStringInStringList(s.listMoodLeggiero,this.label)?this.moodType=r.Leggiero:s.isStringInStringList(s.listMoodMaestoso,this.label)?this.moodType=r.Maestoso:s.isStringInStringList(s.listMoodMalinconico,this.label)?this.moodType=r.Malinconico:s.isStringInStringList(s.listMoodMarcato,this.label)?this.moodType=r.Marcato:s.isStringInStringList(s.listMoodMarziale,this.label)?this.moodType=r.Marziale:s.isStringInStringList(s.listMoodMesto,this.label)?this.moodType=r.Mesto:s.isStringInStringList(s.listMoodMorendo,this.label)?this.moodType=r.Morendo:s.isStringInStringList(s.listMoodNobilmente,this.label)?this.moodType=r.Nobilmente:s.isStringInStringList(s.listMoodPatetico,this.label)?this.moodType=r.Patetico:s.isStringInStringList(s.listMoodPesante,this.label)?this.moodType=r.Pesante:s.isStringInStringList(s.listMoodSaltando,this.label)?this.moodType=r.Saltando:s.isStringInStringList(s.listMoodSautille,this.label)?this.moodType=r.Sautille:s.isStringInStringList(s.listMoodScherzando,this.label)?this.moodType=r.Scherzando:s.isStringInStringList(s.listMoodSostenuto,this.label)?this.moodType=r.Sostenuto:s.isStringInStringList(s.listMoodSpiccato,this.label)?this.moodType=r.Spiccato:s.isStringInStringList(s.listMoodTenerezza,this.label)?this.moodType=r.Tenerezza:s.isStringInStringList(s.listMoodTranquillamente,this.label)?this.moodType=r.Tranquillamente:s.isStringInStringList(s.listMoodTrionfante,this.label)&&(this.moodType=r.Trionfante)}}var r;e.MoodExpression=s,s.listMoodAffettuoso=["affettuoso"],s.listMoodAgitato=["agitato"],s.listMoodAppassionato=["appassionato"],s.listMoodAnimato=["animato","lively"],s.listMoodBrillante=["brillante"],s.listMoodCantabile=["cantabile"],s.listMoodDolce=["dolce"],s.listMoodEnergico=["energico"],s.listMoodEroico=["eroico"],s.listMoodEspressivo=["espressivo"],s.listMoodFurioso=["furioso"],s.listMoodGiocoso=["giocoso"],s.listMoodGioioso=["gioioso"],s.listMoodLacrimoso=["lacrimoso"],s.listMoodGrandioso=["grandioso"],s.listMoodGrazioso=["grazioso"],s.listMoodLeggiero=["leggiero"],s.listMoodMaestoso=["maestoso"],s.listMoodMalinconico=["malinconico"],s.listMoodMarcato=["marcato"],s.listMoodMarziale=["marziale"],s.listMoodMesto=["mesto"],s.listMoodMorendo=["morendo"],s.listMoodNobilmente=["nobilmente"],s.listMoodPatetico=["patetico"],s.listMoodPesante=["pesante"],s.listMoodSautille=["sautille"],s.listMoodSaltando=["saltando"],s.listMoodScherzando=["scherzando"],s.listMoodSostenuto=["sostenuto"],s.listMoodSpiccato=["spiccato"],s.listMoodTenerezza=["tenerezza"],s.listMoodTranquillamente=["tranquillamente"],s.listMoodTrionfante=["trionfante"],function(t){t[t.Affettuoso=0]="Affettuoso",t[t.Agitato=1]="Agitato",t[t.Appassionato=2]="Appassionato",t[t.Animato=3]="Animato",t[t.Brillante=4]="Brillante",t[t.Cantabile=5]="Cantabile",t[t.Dolce=6]="Dolce",t[t.Energico=7]="Energico",t[t.Eroico=8]="Eroico",t[t.Espressivo=9]="Espressivo",t[t.Furioso=10]="Furioso",t[t.Giocoso=11]="Giocoso",t[t.Gioioso=12]="Gioioso",t[t.Lacrimoso=13]="Lacrimoso",t[t.Grandioso=14]="Grandioso",t[t.Grazioso=15]="Grazioso",t[t.Leggiero=16]="Leggiero",t[t.Maestoso=17]="Maestoso",t[t.Malinconico=18]="Malinconico",t[t.Marcato=19]="Marcato",t[t.Marziale=20]="Marziale",t[t.Mesto=21]="Mesto",t[t.Morendo=22]="Morendo",t[t.Nobilmente=23]="Nobilmente",t[t.Patetico=24]="Patetico",t[t.Pesante=25]="Pesante",t[t.Sautille=26]="Sautille",t[t.Saltando=27]="Saltando",t[t.Scherzando=28]="Scherzando",t[t.Sostenuto=29]="Sostenuto",t[t.Spiccato=30]="Spiccato",t[t.Tenerezza=31]="Tenerezza",t[t.Tranquillamente=32]="Tranquillamente",t[t.Trionfante=33]="Trionfante",t[t.Vivace=34]="Vivace"}(r=e.MoodEnum||(e.MoodEnum={}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UnknownExpression=void 0;const i=n(3),s=n(8);class r extends i.AbstractExpression{constructor(t,e,n,i){super(e),this.label=t,this.staffNumber=i,void 0===n&&(n=s.TextAlignmentEnum.LeftBottom),this.textAlignment=n}get Label(){return this.label}get Placement(){return this.placement}set Placement(t){this.placement=t}get StaffNumber(){return this.staffNumber}set StaffNumber(t){this.staffNumber=t}get TextAlignment(){return this.textAlignment}}e.UnknownExpression=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VerticalGraphicalStaffEntryContainer=void 0,e.VerticalGraphicalStaffEntryContainer=class{constructor(t,e){this.staffEntries=[],this.absoluteTimestamp=e,this.staffEntries=new Array(t)}get Index(){return this.index}set Index(t){this.index=t}get AbsoluteTimestamp(){return this.absoluteTimestamp}get StaffEntries(){return this.staffEntries}set StaffEntries(t){this.staffEntries=t}static compareByTimestamp(t,e){const n=t.absoluteTimestamp.RealValue,i=e.absoluteTimestamp.RealValue;return n<i?-1:n>i?1:0}getFirstNonNullStaffEntry(){for(let t=0,e=this.staffEntries.length;t<e;++t){const e=this.staffEntries[t];if(e)return e}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MeasureBuildParameters=e.SystemBuildParameters=e.MusicSystemBuilder=void 0;const i=n(43),s=n(17),r=n(16),o=n(7),a=n(4),c=n(5),l=n(27),u=n(23),h=n(15),d=n(7),f=n(34),p=n(38);e.MusicSystemBuilder=class{constructor(){this.musicSystems=[],this.globalSystemIndex=0,this.leadSheet=!1}initialize(t,e,n){this.leadSheet=t.LeadSheet,this.graphicalMusicSheet=t,this.rules=this.graphicalMusicSheet.ParentMusicSheet.Rules,this.measureList=e,this.numberOfVisibleStaffLines=n,this.activeRhythm=new Array(this.numberOfVisibleStaffLines),this.activeKeys=new Array(this.numberOfVisibleStaffLines),this.activeClefs=new Array(this.numberOfVisibleStaffLines),this.initializeActiveInstructions(this.measureList[0])}buildMusicSystems(){var t,e,n;const i=this.getFullPageSystemWidth();let s=!1;for(this.measureListIndex=0,this.currentSystemParams=new m,this.currentSystemParams.currentSystem=this.initMusicSystem();this.measureListIndex<this.measureList.length;){const r=this.measureList[this.measureListIndex];if(!r||!r[0]){this.measureListIndex++;continue}for(let t=0,e=r.length;t<e;++t)r[t].resetLayout();const o=r[0].parentSourceMeasure,a=o.HasEndLine,c=a&&this.rules.NewPartAndSystemAfterFinalBarline,l=this.currentSystemParams.IsSystemStartMeasure(),u=o===this.graphicalMusicSheet.ParentMusicSheet.getFirstSourceMeasure();let h=this.rules.MeasureLeftMargin,d=0;const f=this.getMeasureStartLine();if(h+=this.getLineWidth(r[0],f,l),!this.leadSheet){let t=!1;s&&this.rules.ShowRhythmAgainAfterPartEndOrFinalBarline&&(t=!0),h+=this.addBeginInstructions(r,l,u||t),d+=this.addEndInstructions(r)}let p=0;for(let t=0;t<this.numberOfVisibleStaffLines;t++)p=Math.max(p,r[t].minimumStaffEntriesWidth);const m=this.getMeasureEndLine();d+=this.getLineWidth(r[0],m,l);let g=this.rules.MeasureLeftMargin,b=void 0;if(this.measureListIndex+1<this.measureList.length){const e=this.measureList[this.measureListIndex+1];b=null===(t=e[0])||void 0===t?void 0:t.parentSourceMeasure,(null==b?void 0:b.hasBeginInstructions())&&(g+=this.addBeginInstructions(e,!1,!1))}let v=h+d+p;(null===(n=null===(e=r[0])||void 0===e?void 0:e.parentSourceMeasure)||void 0===n?void 0:n.multipleRestMeasures)&&(v=this.rules.MultipleRestMeasureDefaultWidth);const y=this.currentSystemParams.currentWidth+v+g<i,S=this.rules.NewPageAtXMLNewPageAttribute&&o.printNewPageXml,x=S||this.rules.NewSystemAtXMLNewSystemAttribute&&o.printNewSystemXml;l||y&&!x?(this.addMeasureToSystem(r,f,m,v,h,p,d),this.updateActiveClefs(o,r),this.measureListIndex++,c&&this.finalizeCurrentAndCreateNewSystem(r,!this.rules.StretchLastSystemLine,!1),s=a):this.finalizeCurrentAndCreateNewSystem(r,!1,!0,S)}return this.currentSystemParams.systemMeasures.length>0&&this.finalizeCurrentAndCreateNewSystem(this.measureList[this.measureList.length-1],!this.rules.StretchLastSystemLine,!1),this.musicSystems}calculateSystemYLayout(){for(const t of this.musicSystems)this.optimizeDistanceBetweenStaffLines(t);this.calculateMusicSystemsRelativePositions()}setMeasureWidth(t,e,n,i){for(let s=0,r=t.length;s<r;++s){const r=t[s];r.setWidth(e),n>0&&(r.beginInstructionsWidth=n),i>0&&(r.endInstructionsWidth=i)}}finalizeCurrentAndCreateNewSystem(t,e=!1,n=!0,i=!1){this.currentSystemParams.currentSystem.breaksPage=i,this.adaptRepetitionLineWithIfNeeded(),void 0!==t&&n&&this.checkAndCreateExtraInstructionMeasure(t),this.stretchMusicSystem(e),this.currentSystemParams=new m,void 0!==t&&this.measureListIndex<this.measureList.length&&(this.currentSystemParams.currentSystem=this.initMusicSystem())}adaptRepetitionLineWithIfNeeded(){const t=this.currentSystemParams.systemMeasures;if(t.length>=1){const e=this.currentSystemParams.currentSystem.GraphicalMeasures[this.currentSystemParams.currentSystem.GraphicalMeasures.length-1],n=t[t.length-1];let i=0;n.endLine===u.SystemLinesEnum.DotsBoldBoldDots&&(n.endLine=u.SystemLinesEnum.DotsThinBold,i=e[0].getLineWidth(u.SystemLinesEnum.DotsBoldBoldDots)/2-e[0].getLineWidth(u.SystemLinesEnum.DotsThinBold)),this.currentSystemParams.currentSystemFixWidth-=i;for(let t=0,s=e.length;t<s;++t)e[t].endInstructionsWidth-=i}}addMeasureToSystem(t,e,n,i,s,r,o){this.currentSystemParams.systemMeasures.push({beginLine:e,endLine:n}),this.setMeasureWidth(t,i,s,o),this.addStaveMeasuresToSystem(t),this.currentSystemParams.currentWidth+=i,this.currentSystemParams.currentSystemFixWidth+=s+o,this.currentSystemParams.currentSystemVarWidth+=r,this.currentSystemParams.systemMeasureIndex++}initMusicSystem(){const t=h.MusicSheetCalculator.symbolFactory.createMusicSystem(this.globalSystemIndex++,this.rules);return this.musicSystems.push(t),this.layoutSystemStaves(t),t.createMusicSystemLabel(this.rules.InstrumentLabelTextHeight,this.rules.SystemLabelsRightMargin,this.rules.LabelMarginBorderFactor,1===this.musicSystems.length),t}getFullPageSystemWidth(){return this.graphicalMusicSheet.ParentMusicSheet.pageWidth-this.rules.PageLeftMargin-this.rules.PageRightMargin-this.rules.SystemLeftMargin-this.rules.SystemRightMargin}layoutSystemStaves(t){const e=this.getFullPageSystemWidth(),n=t.PositionAndShape;n.BorderLeft=0,n.BorderRight=e,n.BorderTop=0;const i=[],s=this.graphicalMusicSheet.ParentMusicSheet.Instruments;for(let a=0,c=s.length;a<c;++a){const t=s[a];if(t.Visible&&0!==t.Voices.length)for(let e=0,n=t.Staves.length;e<n;++e){const n=t.Staves[e];i.push(n)}}let r=!1;if(this.leadSheet)for(let a=0,c=i.length;a<c;++a)if(i[a].ParentInstrument.LyricVersesNumbers.length>1){r=!0;break}let o=0;for(let a=0;a<i.length;a++)if(this.addStaffLineToMusicSystem(t,o,i[a]),o+=this.rules.StaffHeight,a+1<i.length){let t=0;t=this.leadSheet&&!r?2.5:i[a].ParentInstrument===i[a+1].ParentInstrument?this.rules.BetweenStaffDistance:this.rules.StaffDistance,o+=t}n.BorderBottom=o}addStaffLineToMusicSystem(t,e,n){if(t){const i=h.MusicSheetCalculator.symbolFactory.createStaffLine(t,n);t.StaffLines.push(i);const s=i.PositionAndShape,r=new c.PointF2D;r.x=0,s.BorderRight=t.PositionAndShape.Size.width,r.y=e,s.RelativePosition=r,s.BorderLeft=0,s.BorderTop=0,s.BorderBottom=this.rules.StaffHeight;for(let t=0;t<5;t++){const e=new c.PointF2D;e.x=0,e.y=t*this.rules.StaffHeight/4;const n=new c.PointF2D;n.x=i.PositionAndShape.Size.width,n.y=t*this.rules.StaffHeight/4,this.leadSheet&&(e.y=n.y=0),i.StaffLines[t]=new l.GraphicalLine(e,n,this.rules.StaffLineWidth)}}}initializeActiveInstructions(t){const e=this.graphicalMusicSheet.ParentMusicSheet.getFirstSourceMeasure();if(e){this.visibleStaffIndices=this.graphicalMusicSheet.getVisibleStavesIndicesFromSourceMeasure(t);for(let t=0,n=this.visibleStaffIndices.length;t<n;t++){const n=this.visibleStaffIndices[t],i=this.graphicalMusicSheet.getGraphicalMeasureFromSourceMeasureAndIndex(e,n);this.activeClefs[t]=e.FirstInstructionsStaffEntries[n].Instructions[0];let s=r.KeyInstruction.copy(e.FirstInstructionsStaffEntries[n].Instructions[1]);s=this.transposeKeyInstruction(s,i),this.activeKeys[t]=s,this.activeRhythm[t]=e.FirstInstructionsStaffEntries[n].Instructions[2]}}}transposeKeyInstruction(t,e){return 0!==this.graphicalMusicSheet.ParentMusicSheet.Transpose&&e.ParentStaff.ParentInstrument.MidiInstrumentId!==d.MidiInstrument.Percussion&&void 0!==h.MusicSheetCalculator.transposeCalculator&&h.MusicSheetCalculator.transposeCalculator.transposeKey(t,this.graphicalMusicSheet.ParentMusicSheet.Transpose),t}addBeginInstructions(t,e,n){const i=t.length;if(0===i)return 0;let s=0;const r=t[0].parentSourceMeasure;for(let o=0;o<i;++o){const i=t[o],a=this.visibleStaffIndices[o],c=r.FirstInstructionsStaffEntries[a],l=this.AddInstructionsAtMeasureBegin(c,i,o,n,e);s=Math.max(s,l)}return s}addEndInstructions(t){const e=t.length;if(0===e)return 0;let n=.5;const i=t[0].parentSourceMeasure;for(let s=0;s<e;s++){const e=t[s],r=this.visibleStaffIndices[s],o=i.LastInstructionsStaffEntries[r],a=this.addInstructionsAtMeasureEnd(o,e);n=Math.max(n,a)}return n}AddInstructionsAtMeasureBegin(t,e,n,i,a){let c=0,l=void 0,u=void 0,h=void 0;if(t)for(let m=0,g=t.Instructions.length;m<g;++m){const e=t.Instructions[m];e instanceof o.ClefInstruction?l=e:e instanceof r.KeyInstruction?u=e:e instanceof s.RhythmInstruction&&(h=e)}a&&(l||(l=this.activeClefs[n]),u||(u=this.activeKeys[n]),i&&!h&&(h=this.activeRhythm[n]));let d=!1,f=!1,p=!1;if(l?(e.addClefAtBegin(l),d=!0):l=this.activeClefs[n],u){u=this.transposeKeyInstruction(u,e);const t=a?void 0:this.activeKeys[n];e.addKeyAtBegin(u,t,l),f=!0}return void 0!==h&&h.PrintObject&&this.rules.RenderTimeSignatures&&(e.addRhythmAtBegin(h),p=!0),(d||f||p)&&(c+=e.beginInstructionsWidth,p&&(c+=this.rules.RhythmRightMargin)),c}addInstructionsAtMeasureEnd(t,e){if(!t||!t.Instructions||0===t.Instructions.length)return 0;for(let n=0,i=t.Instructions.length;n<i;++n){const i=t.Instructions[n];if(i instanceof o.ClefInstruction){const t=i;e.addClefAtEnd(t)}}return this.rules.MeasureRightMargin+e.endInstructionsWidth}updateActiveClefs(t,e){for(let n=0,i=e.length;n<i;n++){const e=this.visibleStaffIndices[n],i=t.FirstInstructionsStaffEntries[e];if(i)for(let t=0,l=i.Instructions.length;t<l;++t){const e=i.Instructions[t];e instanceof o.ClefInstruction?this.activeClefs[n]=e:e instanceof r.KeyInstruction?this.activeKeys[n]=e:e instanceof s.RhythmInstruction&&(this.activeRhythm[n]=e)}const a=t.getEntriesPerStaff(e);for(let t=0,s=a.length;t<s;++t){const e=a[t];if(e.Instructions)for(let t=0,i=e.Instructions.length;t<i;++t){const i=e.Instructions[t];i instanceof o.ClefInstruction&&(this.activeClefs[n]=i)}}const c=t.LastInstructionsStaffEntries[e];if(c){const t=c.Instructions;for(let e=0,i=t.length;e<i;++e){const i=t[e];i instanceof o.ClefInstruction&&(this.activeClefs[n]=i)}}}}checkAndCreateExtraInstructionMeasure(t){const e=t[0].parentSourceMeasure.FirstInstructionsStaffEntries,n=[];for(let s=0,r=t.length;s<r;++s){const i=t[s];n.push(e[i.ParentStaff.idInMusicSheet])}let i=0;for(let o=0,a=n.length;o<a;++o){const t=n[o];if(!t)continue;const e=t.Instructions;let a=void 0,c=void 0;for(let n=0,i=e.length;n<i;++n){const t=e[n];t instanceof r.KeyInstruction&&t.Key!==this.activeKeys[o].Key&&(a=t),t instanceof s.RhythmInstruction&&t!==this.activeRhythm[o]&&(c=t)}if(void 0!==a||c){const t=this.addExtraInstructionMeasure(o,a,c);i=Math.max(i,t)}}i>0&&(this.currentSystemParams.systemMeasures.push({beginLine:u.SystemLinesEnum.None,endLine:u.SystemLinesEnum.None}),this.currentSystemParams.currentWidth+=i,this.currentSystemParams.currentSystemFixWidth+=i)}addExtraInstructionMeasure(t,e,n){const i=this.currentSystemParams.currentSystem,s=h.MusicSheetCalculator.symbolFactory.createExtraGraphicalMeasure(i.StaffLines[t]);[].push(s),e&&s.addKeyAtBegin(e,this.activeKeys[t],this.activeClefs[t]),void 0!==n&&n.PrintObject&&s.addRhythmAtBegin(n),s.PositionAndShape.BorderLeft=0,s.PositionAndShape.BorderTop=0,s.PositionAndShape.BorderBottom=this.rules.StaffHeight;const r=this.rules.MeasureLeftMargin+s.beginInstructionsWidth+this.rules.MeasureRightMargin;return s.PositionAndShape.BorderRight=r,i.StaffLines[t].Measures.push(s),r}addStaveMeasuresToSystem(t){if(t[0]){const e=[];for(let i=0;i<t.length;i++)e.push(t[i]);const n=this.currentSystemParams.currentSystem;for(let t=0;t<this.numberOfVisibleStaffLines;t++){const i=e[t];n.StaffLines[t].Measures.push(i),i.ParentStaffLine=n.StaffLines[t]}n.AddGraphicalMeasures(e)}}getMeasureStartLine(){if(this.thisMeasureBeginsLineRepetition()){const t=this.currentSystemParams.IsSystemStartMeasure(),e=0===this.measureListIndex;if(this.previousMeasureEndsLineRepetition()&&!t)return u.SystemLinesEnum.DotsBoldBoldDots;if(!e)return u.SystemLinesEnum.BoldThinDots}return u.SystemLinesEnum.None}getMeasureEndLine(){let t=void 0;try{if(t=this.measureList[this.measureListIndex][0].parentSourceMeasure,this.rules.RenderMultipleRestMeasures&&t.multipleRestMeasures>1){const e=Math.min(this.graphicalMusicSheet.ParentMusicSheet.SourceMeasures.length-1,t.measureListIndex+t.multipleRestMeasures-1);t=this.graphicalMusicSheet.ParentMusicSheet.SourceMeasures[e]}}finally{}return this.nextMeasureBeginsLineRepetition()&&this.thisMeasureEndsLineRepetition()?u.SystemLinesEnum.DotsBoldBoldDots:this.thisMeasureEndsLineRepetition()?u.SystemLinesEnum.DotsThinBold:this.nextMeasureHasKeyInstructionChange()||this.thisMeasureEndsWordRepetition()||this.nextMeasureBeginsWordRepetition()?u.SystemLinesEnum.DoubleThin:t&&void 0!==t.endingBarStyleEnum?t.endingBarStyleEnum:u.SystemLinesEnum.SingleThin}getLineWidth(t,e,n){let i=t.getLineWidth(e);return e===u.SystemLinesEnum.DotsBoldBoldDots&&(i/=2),n&&e===u.SystemLinesEnum.BoldThinDots&&(i+=this.rules.DistanceBetweenLastInstructionAndRepetitionBarline),i}previousMeasureEndsLineRepetition(){if(0===this.measureListIndex)return!1;for(let t=0,e=this.measureList[this.measureListIndex-1].length;t<e;++t)if(this.measureList[this.measureListIndex-1][t].endsWithLineRepetition())return!0;return!1}thisMeasureBeginsLineRepetition(){for(let t=0,e=this.measureList[this.measureListIndex].length;t<e;++t)if(this.measureList[this.measureListIndex][t].beginsWithLineRepetition())return!0;return!1}nextMeasureBeginsLineRepetition(){const t=this.measureListIndex+1;if(t>=this.graphicalMusicSheet.ParentMusicSheet.SourceMeasures.length||!this.measureList[t])return!1;for(let e=0,n=this.measureList[t].length;e<n;++e)if(this.measureList[t][e].beginsWithLineRepetition())return!0;return!1}thisMeasureEndsLineRepetition(){for(let t=0,e=this.measureList[this.measureListIndex].length;t<e;++t)if(this.measureList[this.measureListIndex][t].endsWithLineRepetition())return!0;return!1}nextMeasureBeginsWordRepetition(){const t=this.measureListIndex+1;if(t>=this.graphicalMusicSheet.ParentMusicSheet.SourceMeasures.length||t>this.measureList.length-1)return!1;for(let e=0,n=this.measureList[t].length;e<n;++e)if(this.measureList[t][e].beginsWithWordRepetition())return!0;return!1}thisMeasureEndsWordRepetition(){for(let t=0,e=this.measureList[this.measureListIndex].length;t<e;++t)if(this.measureList[this.measureListIndex][t].endsWithWordRepetition())return!0;return!1}nextMeasureHasKeyInstructionChange(){return void 0!==this.getNextMeasureKeyInstruction()}getNextMeasureKeyInstruction(){var t;if(this.measureListIndex<this.measureList.length-1)for(let e=0;e<this.measureList[this.measureListIndex].length;e++){const n=null===(t=this.measureList[this.measureListIndex+1][e])||void 0===t?void 0:t.parentSourceMeasure;if(!n)return;return n.getKeyInstruction(this.visibleStaffIndices[e])}}calculateXScalingFactor(t,e){if(Math.abs(e-0)<1e-5||Math.abs(t-0)<1e-5)return 1;let n;return n=this.currentSystemParams.currentSystem.StaffLines[0].PositionAndShape.Size.width,(n-t)/e}stretchMusicSystem(t){let e=this.calculateXScalingFactor(this.currentSystemParams.currentSystemFixWidth,this.currentSystemParams.currentSystemVarWidth);t&&(e=Math.min(e,this.rules.LastSystemMaxScalingFactor));const n=this.currentSystemParams.currentSystem;for(let i=0,s=n.StaffLines.length;i<s;++i){const t=n.StaffLines[i];let s=0;for(let i=0;i<t.Measures.length;i++){const r=t.Measures[i];r.setPositionInStaffline(s);const o=r.beginInstructionsWidth;if(r.setWidth(o+r.minimumStaffEntriesWidth*e+r.endInstructionsWidth),i<this.currentSystemParams.systemMeasures.length){const t=this.currentSystemParams.systemMeasures[i].beginLine,e=r.getLineWidth(u.SystemLinesEnum.BoldThinDots);switch(t){case u.SystemLinesEnum.BoldThinDots:let o=s;0===i&&(o=s+r.beginInstructionsWidth-e),n.createVerticalLineForMeasure(o,e,t,p.SystemLinePosition.MeasureBegin,i,r)}}if(r.staffEntriesScaleFactor=e,r.layoutSymbols(),!(i+1<this.currentSystemParams.systemMeasures.length&&this.currentSystemParams.systemMeasures[i+1].beginLine===u.SystemLinesEnum.BoldThinDots)){let t=u.SystemLinesEnum.SingleThin;i<this.currentSystemParams.systemMeasures.length&&(t=this.currentSystemParams.systemMeasures[i].endLine);const e=r.getLineWidth(t);let s=r.PositionAndShape.RelativePosition.x+r.PositionAndShape.BorderRight-e;t===u.SystemLinesEnum.DotsBoldBoldDots&&(s-=e/2),n.createVerticalLineForMeasure(s,e,t,p.SystemLinePosition.MeasureEnd,i,r)}s=r.PositionAndShape.RelativePosition.x+r.PositionAndShape.BorderRight}}t&&this.decreaseMusicSystemBorders()}decreaseMusicSystemBorders(){const t=this.currentSystemParams.currentSystem,e=f.CollectionUtil.last(t.StaffLines[0].Measures).PositionAndShape,n=e.RelativePosition.x+e.Size.width;for(let i=0,s=t.StaffLines.length;i<s;++i){const e=t.StaffLines[i];e.PositionAndShape.BorderRight=n;for(let t=0,i=e.StaffLines.length;t<i;++t){const i=e.StaffLines[t];i.End=new c.PointF2D(n,i.End.y)}}t.PositionAndShape.BorderRight=n+this.currentSystemParams.maxLabelLength+this.rules.SystemLabelsRightMargin}updateStaffLinesRelativePosition(t,e,n){for(let i=e;i<t.StaffLines.length;i++)t.StaffLines[i].PositionAndShape.RelativePosition.y=n;t.PositionAndShape.BorderBottom+=n}createMusicPage(){const t=new i.GraphicalMusicPage(this.graphicalMusicSheet);return this.graphicalMusicSheet.MusicPages.push(t),t.PageNumber=this.graphicalMusicSheet.MusicPages.length,t.PositionAndShape.BorderLeft=0,t.PositionAndShape.BorderRight=this.graphicalMusicSheet.ParentMusicSheet.pageWidth,t.PositionAndShape.BorderTop=0,t.PositionAndShape.BorderBottom=this.rules.PageHeight,t.PositionAndShape.RelativePosition=new c.PointF2D(0,0),t}addSystemToPage(t,e){t.MusicSystems.push(e),e.Parent=t}optimizeDistanceBetweenStaffLines(t){if(!t.checkStaffEntriesForStaffEntryLink())for(let i=0;i<t.StaffLines.length-1;i++){const e=t.StaffLines[i].BottomLine,n=t.StaffLines[i+1].SkyLine;let s=0;for(let t=0;t<e.length;t++){const i=e[t],r=Math.max(0,t-6),o=Math.min(n.length-1,t+6);let a=0;for(let t=r;t<=o;t++)a=Math.min(a,n[t]);const c=i-a;s=Math.max(c,s)}s+=this.rules.MinSkyBottomDistBetweenStaves,s=Math.max(s,this.rules.StaffHeight+this.rules.MinimumStaffLineDistance);const r=s+t.StaffLines[i].PositionAndShape.RelativePosition.y;this.updateStaffLinesRelativePosition(t,i+1,r)}const e=t.StaffLines[0];t.PositionAndShape.BorderTop=e.PositionAndShape.RelativePosition.y+e.PositionAndShape.BorderTop;const n=t.StaffLines[t.StaffLines.length-1];t.PositionAndShape.BorderBottom=n.PositionAndShape.RelativePosition.y+n.PositionAndShape.BorderBottom}calculateMusicSystemsRelativePositions(){let t=this.createMusicPage(),e=0,n=this.musicSystems[0],i=0;for(let s=0;s<this.musicSystems.length;s++)if(n=this.musicSystems[s],0===t.MusicSystems.length){this.addSystemToPage(t,n),e=this.rules.CompactMode?this.rules.PageTopMarginNarrow:this.rules.PageTopMargin,1===this.graphicalMusicSheet.MusicPages.length&&this.rules.RenderTitle&&(e+=this.rules.TitleTopDistance+this.rules.SheetTitleHeight+this.rules.TitleBottomDistance),e+=-n.PositionAndShape.BorderTop;const s=new c.PointF2D(this.rules.PageLeftMargin+this.rules.SystemLeftMargin,e);n.PositionAndShape.RelativePosition=s,e+n.PositionAndShape.BorderBottom>this.rules.PageHeight-this.rules.PageBottomMargin&&(i++,i<=4&&console.log("warning: could not fit a single system on page "+t.PageNumber+` and measure number ${n.GraphicalMeasures[0][0].MeasureNumber}.\n The PageFormat may be too small for this sheet."\n Will not give further warnings for all pages, only total.`))}else{const i=this.musicSystems[s-1],r=i.StaffLines[i.StaffLines.length-1],o=r.PositionAndShape;let a=this.findRequiredDistanceWithSkyBottomLine(i,n);a+=this.rules.MinSkyBottomDistBetweenSystems,a=Math.max(a,this.rules.MinimumDistanceBetweenSystems+r.StaffHeight);const l=e+o.RelativePosition.y+a,u=l+n.PositionAndShape.BorderMarginBottom;if(this.rules.NewPageAtXMLNewPageAttribute&&i.breaksPage||!(u<this.rules.PageHeight-this.rules.PageBottomMargin)){t=this.createMusicPage(),s-=1;continue}{this.addSystemToPage(t,n),e=l;const i=new c.PointF2D(this.rules.PageLeftMargin+this.rules.SystemLeftMargin,e);n.PositionAndShape.RelativePosition=i}}if(i>0&&console.log(`total amount of pages that couldn't fit a single music system: ${i} of ${t.PageNumber}`),this.rules.PageBottomExtraWhiteSpace>0&&1===this.graphicalMusicSheet.MusicPages.length){t.PositionAndShape.calculateBoundingBox();const e=new a.BoundingBox(t,t.PositionAndShape,!1);e.RelativePosition.y=t.PositionAndShape.BorderMarginBottom,e.BorderBottom=this.rules.PageBottomExtraWhiteSpace,e.calculateBoundingBox(),t.PositionAndShape.calculateBoundingBox()}}findRequiredDistanceWithSkyBottomLine(t,e){const n=t.StaffLines[t.StaffLines.length-1],i=e.StaffLines[0],s=n.BottomLine,r=i.SkyLine,o=n.PositionAndShape,a=i.PositionAndShape,c=1/this.rules.SamplingUnit;let l=0;for(let u=0;u<s.length;u++){const t=s[u],e=u+Math.round((o.RelativePosition.x-a.RelativePosition.x)*c);if(e<0)continue;if(e>=r.length)break;const n=Math.max(0,e-6),i=Math.min(r.length-1,e+6);let h=0;for(let s=n;s<=i;s++)h=Math.min(h,r[s]);const d=t-h;l=Math.max(d,l)}return 0===l&&(l=o.BorderBottom-a.BorderTop),l}};class m{constructor(){this.systemMeasures=[],this.systemMeasureIndex=0,this.currentWidth=0,this.currentSystemFixWidth=0,this.currentSystemVarWidth=0,this.maxLabelLength=0}IsSystemStartMeasure(){return 0===this.systemMeasureIndex}}e.SystemBuildParameters=m,e.MeasureBuildParameters=class{}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Clickable=void 0;const i=n(6);class s extends i.GraphicalObject{}e.Clickable=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.OctaveShiftParams=void 0,e.OctaveShiftParams=class{constructor(t,e,n){this.getOpenOctaveShift=t,this.getAbsoluteStartTimestamp=e,this.getAbsoluteEndTimestamp=n}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AccidentalCalculator=void 0;const i=n(2),s=n(2),r=n(19),o=n(15);e.AccidentalCalculator=class{constructor(){this.keySignatureNoteAlterationsDict=new r.Dictionary,this.currentAlterationsComparedToKeyInstructionList=[],this.currentInMeasureNoteAlterationsDict=new r.Dictionary}get ActiveKeyInstruction(){return this.activeKeyInstruction}set ActiveKeyInstruction(t){this.activeKeyInstruction=t,this.reactOnKeyInstructionChange()}doCalculationsAtEndOfMeasure(){this.currentInMeasureNoteAlterationsDict.clear();for(const t of this.keySignatureNoteAlterationsDict.keys())this.currentInMeasureNoteAlterationsDict.setValue(t,this.keySignatureNoteAlterationsDict.getValue(t))}checkAccidental(t,e){if(!e)return;const n=e.FundamentalNote+12*e.Octave,r=this.currentAlterationsComparedToKeyInstructionList.indexOf(n)>=0;this.currentInMeasureNoteAlterationsDict.containsKey(n)?(r&&this.currentAlterationsComparedToKeyInstructionList.splice(this.currentAlterationsComparedToKeyInstructionList.indexOf(n),1),this.currentInMeasureNoteAlterationsDict.getValue(n)!==e.AccidentalHalfTones&&(this.keySignatureNoteAlterationsDict.containsKey(n)&&this.keySignatureNoteAlterationsDict.getValue(n)!==e.AccidentalHalfTones?(this.currentAlterationsComparedToKeyInstructionList.push(n),this.currentInMeasureNoteAlterationsDict.setValue(n,e.AccidentalHalfTones)):this.currentInMeasureNoteAlterationsDict.remove(n),e.Accidental===i.AccidentalEnum.NONE&&(e=new s.Pitch(e.FundamentalNote,e.Octave,i.AccidentalEnum.NATURAL)),o.MusicSheetCalculator.symbolFactory.addGraphicalAccidental(t,e))):e.Accidental!==i.AccidentalEnum.NONE?(r||this.currentAlterationsComparedToKeyInstructionList.push(n),this.currentInMeasureNoteAlterationsDict.setValue(n,e.AccidentalHalfTones),o.MusicSheetCalculator.symbolFactory.addGraphicalAccidental(t,e)):r&&(e=new s.Pitch(e.FundamentalNote,e.Octave,i.AccidentalEnum.NATURAL),this.currentAlterationsComparedToKeyInstructionList.splice(this.currentAlterationsComparedToKeyInstructionList.indexOf(n),1),o.MusicSheetCalculator.symbolFactory.addGraphicalAccidental(t,e))}reactOnKeyInstructionChange(){const t=this.activeKeyInstruction.AlteratedNotes;let e;e=this.activeKeyInstruction.Key>0?i.AccidentalEnum.SHARP:i.AccidentalEnum.FLAT,this.keySignatureNoteAlterationsDict.clear(),this.currentAlterationsComparedToKeyInstructionList.length=0;for(let n=-9;n<9;n++)for(let i=0;i<t.length;i++)this.keySignatureNoteAlterationsDict.setValue(t[i]+12*n,s.Pitch.HalfTonesFromAccidental(e));this.doCalculationsAtEndOfMeasure()}}},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.VexFlowMusicSheetCalculator=void 0;const s=n(15),r=n(97),o=n(115),a=n(64),c=i(n(9)),l=i(n(1)),u=n(18),h=n(116),d=n(117),f=n(118),p=n(120),m=n(8),g=n(121),b=n(73),v=n(25),y=n(157),S=n(37),x=n(14);class _ extends s.MusicSheetCalculator{constructor(t){var e,n,i;super(),this.beamsNeedUpdate=!1,this.rules=t,s.MusicSheetCalculator.symbolFactory=new r.VexFlowGraphicalSymbolFactory,s.MusicSheetCalculator.TextMeasurer=new a.VexFlowTextMeasurer(this.rules),s.MusicSheetCalculator.stafflineNoteCalculator=new y.VexflowStafflineNoteCalculator(this.rules),"gonville"===this.rules.DefaultVexFlowNoteFont&&(c.default.Flow.DEFAULT_FONT_STACK=[null===(e=c.default.Flow.Fonts)||void 0===e?void 0:e.Gonville,null===(n=c.default.Flow.Fonts)||void 0===n?void 0:n.Bravura,null===(i=c.default.Flow.Fonts)||void 0===i?void 0:i.Custom])}clearRecreatedObjects(){var t;super.clearRecreatedObjects(),s.MusicSheetCalculator.stafflineNoteCalculator=new y.VexflowStafflineNoteCalculator(this.rules);for(const e of this.graphicalMusicSheet.MeasureList)for(const n of e)null===(t=n)||void 0===t||t.clean()}formatMeasures(){for(const t of this.graphicalMusicSheet.MeasureList)if(t&&t[0]){t[0].format();for(const e of t){for(const t of e.staffEntries)t.calculateXPosition();e.finalizeBeams()}}this.beamsNeedUpdate=!1}calculateMeasureXLayout(t){const e=[];for(const s of t)e.push(s);t=e;const n=[],i=new c.default.Flow.Formatter({softmaxFactor:this.rules.SoftmaxFactorVexFlow});for(const s of t){if(!s)continue;const t=s.vfVoices,e=[];for(const i in t)t.hasOwnProperty(i)&&(e.push(t[i]),n.push(t[i]));0!==e.length?i.joinVoices(e):l.default.debug("Found a measure with no voices. Continuing anyway.",t)}let r=12;if(n.length>0){const e=.3;r=i.preCalculateMinTotalWidth(n)/u.unitInPixels*this.rules.VoiceSpacingMultiplierVexflow+this.rules.VoiceSpacingAddendVexflow+t[0].staffEntries.length*e,s.MusicSheetCalculator.setMeasuresMinStaffEntriesWidth(t,r);const o=(t,e)=>{i.formatToStave(n,e.getVFStave())},a=(t,e)=>{i.formatToStave(n,e.getVFStave(),{align_rests:!0,context:void 0})};for(const n of t){if(this.rules.AlignRests===v.AlignRestOption.Never)n.formatVoices=o;else if(this.rules.AlignRests===v.AlignRestOption.Always)n.formatVoices=a;else if(this.rules.AlignRests===v.AlignRestOption.Auto){let t=!1;for(const e of n.staffEntries){let n=0,i=0;for(const s of e.graphicalVoiceEntries)if(s.parentVoiceEntry.IsGrace||s&&s.notes&&s.notes[0]&&s.notes[0].sourceNote&&s.notes[0].sourceNote.PrintObject&&n++,s&&s.notes&&s.notes[0]&&s.notes[0].sourceNote&&s.notes[0].sourceNote.isRest()&&s.notes[0].sourceNote.PrintObject&&i++,n>1&&i>=1){t=!0;break}if(t)break}n.formatVoices=t?a:o}if(n===t[0]){const t=n;t.formatVoices(r*u.unitInPixels,t)}}}for(const s of t)if(s)for(const t of s.staffEntries)t.calculateXPosition();return r}calculateMeasureWidthFromLyrics(t,e){let n=1;for(const i of t){if(!i)continue;const t={};for(let s=0;s<i.staffEntries.length;s++){const r=i.staffEntries[s];if(0!==r.LyricsEntries.length)for(let s=0;s<r.LyricsEntries.length;s++){const o=r.LyricsEntries[s],a=o.GraphicalLabel.Label.textAlignment;let c=this.rules.HorizontalBetweenLyricsDistance,l=this.rules.LyricOverlapAllowedIntoNextMeasure;if(o.ParentLyricWord){o.LyricsEntry.SyllableIndex>0&&(c=this.rules.BetweenSyllableMinimumDistance,m.TextAlignment.IsCenterAligned(o.GraphicalLabel.Label.textAlignment)&&(c+=1));const t=o.ParentLyricWord.GetLyricWord.Syllables;t.length>1&&o.LyricsEntry.SyllableIndex<t.length-1&&(void 0===this.dashSpace&&(this.dashSpace=1.5),l-=this.dashSpace)}const u=o.GraphicalLabel.PositionAndShape,h=u.Size.width,d=r.PositionAndShape.RelativePosition.x+u.BorderMarginLeft;let f,p,g,b;t[s]&&t[s].extend,t[s]&&(p=d-t[s].lyricsXPosition);const v=e*n;m.TextAlignment.IsCenterAligned(a)?(l/=4,g=v-d,b=h/2-l,t[s]&&(f=t[s].labelWidth/2+h/2+c)):m.TextAlignment.IsLeft(a)&&(g=v-d,b=h-l,t[s]&&(f=t[s].labelWidth+c));let y=1;const S=b/g;let x=1;if(t[s]){const e=t[s].sourceNoteDuration;x=f/p,e.Denominator>4&&(x*=1.1)}y=Math.max(S,x),n=Math.max(n,y),t[s]={extend:o.LyricsEntry.extend,labelWidth:h,lyricsXPosition:d,measureNumber:i.MeasureNumber,sourceNoteDuration:o.LyricsEntry.Parent.Notes[0].Length,text:o.LyricsEntry.Text}}}}return n=Math.min(n,this.rules.MaximumLyricsElongationFactor),e*n}createGraphicalTie(t,e,n,i,s){return new o.GraphicalTie(t,i,s)}updateStaffLineBorders(t){t.SkyBottomLineCalculator.updateStaffLineBorders()}graphicalMeasureCreatedCalculations(t){t.rules=this.rules,t.graphicalMeasureCreatedCalculations()}layoutVoiceEntry(t,e,n,i){for(let r=0;r<e.length;r++)e[r]=s.MusicSheetCalculator.stafflineNoteCalculator.positionNote(e[r])}layoutStaffEntry(t){t.parentMeasure.layoutStaffEntry(t)}initGraphicalMeasuresCreation(){}layoutArticulationMarks(t,e,n){}layoutGraphicalTie(t,e,n){const i=t.StartNote,s=t.EndNote;let r=void 0,o=0;i&&i.vfnote&&i.vfnote.length>=2&&(r=i.vfnote[0],o=i.vfnote[1]);let a=void 0,l=0;if(s&&s.vfnote&&s.vfnote.length>=2&&(a=s.vfnote[0],l=s.vfnote[1]),e){if(r){const t=new c.default.Flow.StaveTie({first_indices:[o],first_note:r});i.parentVoiceEntry.parentStaffEntry.parentMeasure.vfTies.push(t)}if(a){const t=new c.default.Flow.StaveTie({last_indices:[l],last_note:a});s.parentVoiceEntry.parentStaffEntry.parentMeasure.vfTies.push(t)}}else if(r||a){let e;if(n)if("S"===t.Tie.Type){const n=t.StartNote.sourceNote,i=t.EndNote.sourceNote;let s=1;n.FretNumber>i.FretNumber&&(s=-1),e=new c.default.Flow.TabSlide({first_indices:[o],first_note:r,last_indices:[l],last_note:a},s)}else e=new c.default.Flow.TabTie({first_indices:[o],first_note:r,last_indices:[l],last_note:a},t.Tie.Type);else e=new c.default.Flow.StaveTie({first_indices:[o],first_note:r,last_indices:[l],last_note:a});s.parentVoiceEntry.parentStaffEntry.parentMeasure.vfTies.push(e)}}calculateDynamicExpressionsForMultiExpression(t,e,n){if(e<this.rules.MinMeasureToDrawIndex||e>this.rules.MaxMeasureToDrawIndex)return;const i=t.AbsoluteTimestamp,s=this.graphicalMusicSheet.MeasureList[e],r=s[n].ParentStaffLine,o=s[n],a=this.getRelativePositionInStaffLineFromTimestamp(i,n,r,null==r?void 0:r.isPartOfMultiStaffInstrument()),c=a;if(a.x<=0&&(c.x=o.beginInstructionsWidth+this.rules.RhythmRightMargin),t.InstantaneousDynamic){const e=new p.VexFlowInstantaneousDynamicExpression(t.InstantaneousDynamic,r,o);this.calculateGraphicalInstantaneousDynamicExpression(e,c)}if(t.StartingContinuousDynamic){const e=t.StartingContinuousDynamic,n=new b.VexFlowContinuousDynamicExpression(t.StartingContinuousDynamic,r,o.parentSourceMeasure);if(n.StartMeasure=o,!n.IsVerbal&&e.EndMultiExpression)try{this.calculateGraphicalContinuousDynamic(n,c)}catch(t){}else n.IsVerbal?this.calculateGraphicalVerbalContinuousDynamic(n,c):l.default.warn("This continuous dynamic is not covered")}}createMetronomeMark(t){const e=Math.max(t.ParentMultiTempoExpression.SourceMeasureParent.MeasureNumber-1,0),n=Math.max(t.StaffNumber-1,0),i=0===e&&0===n,s=this.graphicalMusicSheet.MeasureList[e][n].getVFStave();let r="q";if(t.beatUnit){const e=S.NoteTypeHandler.getNoteDurationFromType(t.beatUnit);r=x.VexFlowConverter.duration(e,!1)}s.setTempo({bpm:t.TempoInBpm,dots:t.dotted,duration:r},this.rules.MetronomeMarkYShift*u.unitInPixels);const o=i?this.rules.MetronomeMarkXShift*u.unitInPixels:0;s.getModifiers()[s.getModifiers().length-1].setShiftX(o);const a=this.graphicalMusicSheet.MeasureList[0][0].ParentStaffLine.SkyLine;a[0]=Math.min(a[0],-4.5+this.rules.MetronomeMarkYShift)}calculateSingleOctaveShift(t,e,n,i){var s;const r=e.OctaveShiftStart,o=r.ParentStartMultiExpression.Timestamp,a=null===(s=r.ParentEndMultiExpression)||void 0===s?void 0:s.Timestamp,c=this.rules.MinMeasureToDrawIndex,u=this.rules.MaxMeasureToDrawIndex;let h=this.graphicalMusicSheet.MeasureList[n][i].ParentStaffLine;h||(h=this.graphicalMusicSheet.MeasureList[c][i].ParentStaffLine);let d=void 0;d=r.ParentEndMultiExpression?this.graphicalMusicSheet.getGraphicalMeasureFromSourceMeasureAndIndex(r.ParentEndMultiExpression.SourceMeasureParent,i):this.graphicalMusicSheet.getLastGraphicalMeasureFromIndex(i,!0),d.MeasureNumber>u+1&&(d=this.graphicalMusicSheet.getLastGraphicalMeasureFromIndex(i,!0));let p=void 0;if(p=r.ParentEndMultiExpression?this.graphicalMusicSheet.getGraphicalMeasureFromSourceMeasureAndIndex(r.ParentStartMultiExpression.SourceMeasureParent,i):this.graphicalMusicSheet.MeasureList[c][i],p.MeasureNumber<c+1&&(p=this.graphicalMusicSheet.MeasureList[c][i]),p.MeasureNumber<c+1||p.MeasureNumber>u+1||d.MeasureNumber<c+1||d.MeasureNumber>u+1)return;let m=d.ParentStaffLine;if(m||(m=h),d&&h&&m){const t=new f.VexFlowOctaveShift(r,h.PositionAndShape);if(!t.startNote){let e;for(const t of p.staffEntries)if(t){e=t;break}if(!e)return;if(t.setStartNote(e),!t.startNote)return}if(!t.endNote){let e;for(let t=d.staffEntries.length-1;t>=0;t++)if(d.staffEntries[t]){e=d.staffEntries[t];break}if(t.setEndNote(e),!t.endNote)return}h.OctaveShifts.push(t);let e=p.findGraphicalStaffEntryFromTimestamp(o);e||(e=p.staffEntries[0]);let n=d.findGraphicalStaffEntryFromTimestamp(a);if(n||(n=d.staffEntries[d.staffEntries.length-1]),t.setStartNote(e),m!==h){t.endsOnDifferentStaffLine=!0;let i=h.Measures[h.Measures.length-1];i||(i=d);const s=i.staffEntries[i.staffEntries.length-1];t.setEndNote(s);const o=new f.VexFlowOctaveShift(r,d.PositionAndShape);m.OctaveShifts.push(o);let a=m.Measures[0];a||(a=p);const c=a.staffEntries[0];o.setStartNote(c),o.setEndNote(n),this.calculateOctaveShiftSkyBottomLine(e,s,t,h),this.calculateOctaveShiftSkyBottomLine(c,n,o,m)}else t.setEndNote(n),this.calculateOctaveShiftSkyBottomLine(e,n,t,h)}else l.default.warn("End measure or staffLines for octave shift are undefined! This should not happen!")}calculateOctaveShiftSkyBottomLine(t,e,n,i){const s=t.PositionAndShape.AbsolutePosition.x-t.PositionAndShape.Size.width/2,r=e.PositionAndShape.AbsolutePosition.x+e.PositionAndShape.Size.width/2;n.PositionAndShape.Size.width=s-r;const o=n.getTextBracket(),a=o.font.size/10;if(o.position===c.default.Flow.TextBracket.Positions.TOP){const t=Math.ceil(i.SkyBottomLineCalculator.getSkyLineMinInRange(s,r));if(t===1/0)return;o.start.getStave().options.top_text_position=Math.abs(t),i.SkyBottomLineCalculator.updateSkyLineInRange(s,r,t-2*a)}else{const t=i.SkyBottomLineCalculator.getBottomLineMaxInRange(s,r);if(t===1/0)return;o.start.getStave().options.bottom_text_position=t,i.SkyBottomLineCalculator.updateBottomLineInRange(s,r,t+1.5*a)}}calculateWordRepetitionInstruction(t,e){let n=void 0;const i=this.graphicalMusicSheet.MeasureList[e];for(let s=0,r=i.length;s<r;++s){const t=i[s];if(t&&t.ParentStaffLine&&t.ParentStaff.ParentInstrument.Visible){n=t;break}}n&&n.addWordRepetition(t)}calculateExpressionAlignements(){for(const e of this.musicSystems)for(const n of e.StaffLines)try{n.AlignmentManager.alignDynamicExpressions(),n.AbstractExpressions.forEach(t=>{t.updateSkyBottomLine()})}catch(t){}}handleTiedGraphicalNote(t,e,n,i,s,r,o,a){}handleBeam(t,e,n){t.parentVoiceEntry.parentStaffEntry.parentMeasure.handleBeam(t,e)}handleVoiceEntryLyrics(t,e,n){t.LyricsEntries.forEach((t,i)=>{const s=new h.GraphicalLyricEntry(i,e,this.rules.LyricsHeight,this.rules.StaffHeight);if(e.LyricsEntries.push(s),s.GraphicalLabel.setLabelPositionAndShapeBorders(),i.Word){const t=i.Word.Syllables.indexOf(i);let e=n.indexOf(i.Word);if(-1===e&&(n.push(i.Word),e=n.indexOf(i.Word)),0===this.graphicalLyricWords.length||e>this.graphicalLyricWords.length-1){const e=new d.GraphicalLyricWord(i.Word);s.ParentLyricWord=e,e.GraphicalLyricsEntries[t]=s,this.graphicalLyricWords.push(e)}else{const i=this.graphicalLyricWords[e];s.ParentLyricWord=i,i.GraphicalLyricsEntries[t]=s,i.isFilled()&&(n.splice(e,1),this.graphicalLyricWords.splice(this.graphicalLyricWords.indexOf(i),1))}}})}handleVoiceEntryOrnaments(t,e,n){}handleVoiceEntryArticulations(t,e,n){}handleVoiceEntryTechnicalInstructions(t,e,n){}handleTuplet(t,e,n){t.parentVoiceEntry.parentStaffEntry.parentMeasure.handleTuplet(t,e)}findIndexGraphicalSlurFromSlur(t,e){for(let n=0;n<t.length;n++)if(t[n].slur===e)return n;return-1}calculateSlurs(){const t={};for(const e of this.graphicalMusicSheet.MeasureList[0])t[e.ParentStaff.idInMusicSheet]=[];for(const e of this.musicSystems)for(const n of e.StaffLines){const e=t[n.ParentStaff.idInMusicSheet];for(let t=0;t<e.length;t++){const i=e[t],s=new g.GraphicalSlur(i.slur);n.addSlurToStaffline(s),e[t]=s}for(const t of n.Measures)for(const i of t.staffEntries){for(const t of i.graphicalVoiceEntries)for(const s of t.notes)for(const t of s.sourceNote.NoteSlurs)if(t.EndNote&&t.StartNote){if(t.StartNote===s.sourceNote){if(s.sourceNote.NoteTie&&s.parentVoiceEntry.parentStaffEntry.getAbsoluteTimestamp()!==s.sourceNote.NoteTie.StartNote.getAbsoluteTimestamp())break;const i=new g.GraphicalSlur(t);e.push(i),n.addSlurToStaffline(i)}if(t.EndNote===s.sourceNote){const n=this.findIndexGraphicalSlurFromSlur(e,t);if(n>=0){const t=e[n];-1===t.staffEntries.indexOf(i)&&t.staffEntries.push(i),e.splice(n,1)}}}for(const t of e)-1===t.staffEntries.indexOf(i)&&t.staffEntries.push(i)}}for(const e of this.musicSystems)for(const t of e.StaffLines){const e=t.GraphicalSlurs.sort(g.GraphicalSlur.Compare);for(const t of e)t.slur.isCrossed()||t.calculateCurve(this.rules)}}}e.VexFlowMusicSheetCalculator=_},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.VexFlowGraphicalSymbolFactory=void 0;const s=i(n(9)),r=n(98),o=n(49),a=n(107),c=n(30),l=n(70),u=n(110),h=n(68),d=n(14),f=n(153),p=n(111),m=n(154);e.VexFlowGraphicalSymbolFactory=class{createMusicSystem(t,e){return new r.VexFlowMusicSystem(t,e)}createStaffLine(t,e){return new p.VexFlowStaffLine(t,e)}createGraphicalMeasure(t,e,n=!1){return new o.VexFlowMeasure(e,t,void 0)}createMultiRestMeasure(t,e,n){return new m.VexFlowMultiRestMeasure(e,t,n)}createTabStaffMeasure(t,e){return new f.VexFlowTabMeasure(e,t)}createExtraGraphicalMeasure(t){return new o.VexFlowMeasure(t.ParentStaff,void 0,t)}createStaffEntry(t,e){return new a.VexFlowStaffEntry(e,t,void 0)}createVoiceEntry(t,e){return new h.VexFlowVoiceEntry(t,e)}createNote(t,e,n,i=c.OctaveEnum.NONE,s){return new l.VexFlowGraphicalNote(t,e,n,i,s)}createGraceNote(t,e,n,i=c.OctaveEnum.NONE){return new l.VexFlowGraphicalNote(t,e,n,i)}addGraphicalAccidental(t,e){t.setAccidental(e)}addFermataAtTiedEndNote(t,e){}createInStaffClef(t,e){const n=t,i=d.VexFlowConverter.Clef(e,"small");n.vfClefBefore=new s.default.Flow.ClefNote(i.type,i.size,i.annotation)}createChordSymbols(t,e,n,i){const s=e.parentMeasure.parentSourceMeasure.Rules;let r=0;const o=s.ChordSymbolXSpacing;for(const a of t.ChordContainers){const t=new u.GraphicalChordSymbolContainer(a,e.PositionAndShape,s.ChordSymbolTextHeight,n,i,e.parentMeasure.parentSourceMeasure.Rules),c=t.GetGraphicalLabel;c.PositionAndShape.RelativePosition.y-=s.ChordSymbolYOffset,c.PositionAndShape.RelativePosition.x+=r,c.setLabelPositionAndShapeBorders(),t.PositionAndShape.calculateBoundingBox(),e.graphicalChordContainers.push(t),r+=c.PositionAndShape.Size.width+o}}createGraphicalTechnicalInstruction(t,e){}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VexFlowMusicSystem=void 0;const i=n(99),s=n(101),r=n(14),o=n(67),a=n(104);class c extends i.MusicSystem{constructor(t,e){super(t),this.rules=e}calculateBorders(t){if(0===this.staffLines.length)return;const e=this.calcBracketsWidth();this.boundingBox.BorderLeft=-e,this.boundingBox.BorderMarginLeft=-e,this.boundingBox.XBordersHaveBeenSet=!0;const n=this.staffLines[0].SkyBottomLineCalculator.getSkyLineMin();this.boundingBox.BorderTop=n,this.boundingBox.BorderMarginTop=n;const i=this.staffLines[this.staffLines.length-1],s=i.SkyBottomLineCalculator.getBottomLineMax()+i.PositionAndShape.RelativePosition.y;this.boundingBox.BorderBottom=s,this.boundingBox.BorderMarginBottom=s,this.boundingBox.XBordersHaveBeenSet=!0,this.boundingBox.YBordersHaveBeenSet=!0}createSystemLine(t,e,n,i,o,a,c){const l=a;let u=!1;return c&&(u=!0,c.lineTo(a,r.VexFlowConverter.line(n,i)),c.addMeasureLine(n,i)),l.addMeasureLine(n,i,u),new s.SystemLine(n,i,this,a,c)}createInstrumentBracket(t,e){const n=t,i=e,s=new a.VexFlowInstrumentBrace(n,i);this.InstrumentBrackets.push(s)}createGroupBracket(t,e,n){const i=t,s=e;if(0===n){const t=new o.VexFlowInstrumentBracket(i,s,n);this.GroupBrackets.push(t)}else{const t=new a.VexFlowInstrumentBrace(i,s,n);this.GroupBrackets.push(t)}}}e.VexFlowMusicSystem=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MusicSystem=void 0;const i=n(60),s=n(4),r=n(0),o=n(8),a=n(24),c=n(6),l=n(5),u=n(23),h=n(19),d=n(38),f=n(13);class p extends c.GraphicalObject{constructor(t){super(),this.needsToBeRedrawn=!0,this.staffLines=[],this.graphicalMeasures=[],this.labels=new h.Dictionary,this.measureNumberLabels=[],this.objectsToRedraw=[],this.instrumentBrackets=[],this.groupBrackets=[],this.graphicalMarkedAreas=[],this.graphicalComments=[],this.systemLines=[],this.breaksPage=!1,this.id=t,this.boundingBox=new s.BoundingBox(this),this.maxLabelLength=0}get Parent(){return this.parent}set Parent(t){if(this.parent){const t=this.parent.MusicSystems.indexOf(this,0);t>-1&&this.parent.MusicSystems.splice(t,1)}this.parent=t,this.boundingBox.Parent=t.PositionAndShape}get NextSystem(){const t=this.Parent.MusicSystems.indexOf(this);return t!==this.Parent.MusicSystems.length?this.Parent.MusicSystems[t+1]:void 0}get StaffLines(){return this.staffLines}get GraphicalMeasures(){return this.graphicalMeasures}get MeasureNumberLabels(){return this.measureNumberLabels}get Labels(){return this.labels.values()}get ObjectsToRedraw(){return this.objectsToRedraw}get InstrumentBrackets(){return this.instrumentBrackets}get GroupBrackets(){return this.groupBrackets}get GraphicalMarkedAreas(){return this.graphicalMarkedAreas}get GraphicalComments(){return this.graphicalComments}get SystemLines(){return this.systemLines}get Id(){return this.id}createSystemLeftLine(t,e,n){let i=-t/2;n&&(i=this.maxLabelLength+e-t/2);const s=this.staffLines[0].Measures[0];let r=void 0;this.staffLines.length>1&&(r=this.staffLines[this.staffLines.length-1].Measures[0]);const o=this.createSystemLine(i,t,u.SystemLinesEnum.SingleThin,d.SystemLinePosition.MeasureBegin,this,s,r);this.SystemLines.push(o),o.PositionAndShape.RelativePosition=new l.PointF2D(i,0),o.PositionAndShape.BorderLeft=0,o.PositionAndShape.BorderRight=t,o.PositionAndShape.BorderTop=0,o.PositionAndShape.BorderBottom=this.boundingBox.Size.height,this.createLinesForSystemLine(o)}createVerticalLineForMeasure(t,e,n,i,s,r){const o=r.ParentStaffLine,a=new l.PointF2D(o.PositionAndShape.RelativePosition.x,o.PositionAndShape.RelativePosition.y),c=o.ParentStaff.ParentInstrument.Staves;if(o.ParentStaff===c[0]){let u=void 0;c.length>1&&(u=this.getBottomStaffLine(o).Measures[s]);const h=this.createSystemLine(t,e,n,i,this,r,u),d=a.x+t;h.PositionAndShape.RelativePosition=new l.PointF2D(d,0),h.PositionAndShape.BorderLeft=0,h.PositionAndShape.BorderRight=e,this.SystemLines.push(h)}}setYPositionsToVerticalLineObjectsAndCreateLines(t){}calculateBorders(t){}alignBeginInstructions(){}GetLeftBorderAbsoluteXPosition(){return this.StaffLines[0].PositionAndShape.AbsolutePosition.x+this.StaffLines[0].Measures[0].beginInstructionsWidth}GetRightBorderAbsoluteXPosition(){return this.StaffLines[0].PositionAndShape.AbsolutePosition.x+this.StaffLines[0].StaffLines[0].End.x}AddGraphicalMeasures(t){for(let e=0,n=t.length;e<n;++e)t[e].ParentMusicSystem=this;this.graphicalMeasures.push(t)}GetSystemsFirstTimeStamp(){return this.graphicalMeasures[0][0].parentSourceMeasure.AbsoluteTimestamp}GetSystemsLastTimeStamp(){const t=this.graphicalMeasures[this.graphicalMeasures.length-1][0].parentSourceMeasure;return r.Fraction.plus(t.AbsoluteTimestamp,t.Duration)}createInstrumentBrackets(t,e){for(let n=0,i=t.length;n<i;++n){const e=t[n];if(e.Staves.length>1){let t=void 0,n=void 0;for(let i=0,s=this.staffLines.length;i<s;++i){const s=this.staffLines[i];s.ParentStaff===e.Staves[0]&&(t=s),s.ParentStaff===e.Staves[e.Staves.length-1]&&(n=s)}t&&n&&this.createInstrumentBracket(t,n)}}}createGroupBrackets(t,e,n){for(let i=0,s=t.length;i<s;++i){const s=t[i];if(s.InstrumentalGroups.length<1)continue;const r=this.findFirstVisibleInstrumentInInstrumentalGroup(s),o=this.findLastVisibleInstrumentInInstrumentalGroup(s);if(!r||!o)continue;let a=void 0,c=void 0;for(let t=0,e=this.staffLines.length;t<e;++t){const e=this.staffLines[t];e.ParentStaff===r.Staves[0]&&(a=e),e.ParentStaff===o.Staves[0]&&(c=e)}a&&c&&this.createGroupBracket(a,c,n),s.InstrumentalGroups.length<1||this.createGroupBrackets(s.InstrumentalGroups,e,n+1)}}createMusicSystemLabel(t,e,n,i=!1){var s;const r=e;for(let l=0,u=this.staffLines.length;l<u;++l){const n=this.staffLines[l].ParentStaff.ParentInstrument;let r;if(i)r=n.NameLabel,this.rules.RenderPartNames&&(null==r?void 0:r.print)||(r=new f.Label("",n.NameLabel.textAlignment,n.NameLabel.font),e=0);else{if(!this.rules.RenderPartAbbreviations||!this.rules.RenderPartNames||1===this.staffLines.length||!n.PartAbbreviation||""===n.PartAbbreviation)return;const t=n.PartAbbreviation;r=new f.Label(t,n.NameLabel.textAlignment,n.NameLabel.font)}if(null===(s=null==n?void 0:n.NameLabel)||void 0===s?void 0:s.print){const e=new a.GraphicalLabel(r,t,o.TextAlignmentEnum.LeftCenter,this.rules,this.boundingBox);e.setLabelPositionAndShapeBorders(),this.labels.setValue(n,e)}else e=0}this.maxLabelLength=0;const c=this.labels.values();for(let o=0,a=c.length;o<a;++o){const t=c[o];t.Label.print&&t.PositionAndShape.Size.width>this.maxLabelLength&&(this.maxLabelLength=t.PositionAndShape.Size.width,e=r)}this.updateMusicSystemStaffLineXPosition(e)}setMusicSystemLabelsYPosition(){this.labels.forEach((t,e)=>{let n=0,i=0;for(let s=0;s<this.staffLines.length;s++)if(this.staffLines[s].ParentStaff.ParentInstrument===t){for(let e=s;e<this.staffLines.length;e++){const s=this.staffLines[e];if(s.ParentStaff.ParentInstrument!==t)break;n+=s.PositionAndShape.RelativePosition.y,i++}break}i>0&&(e.PositionAndShape.RelativePosition=new l.PointF2D(0,n/i+2))})}checkStaffEntriesForStaffEntryLink(){let t=!1,e=!1;for(let n=0;n<this.staffLines.length-1;n++){for(let e=0,i=this.staffLines[n].Measures.length;e<i;++e){const i=this.staffLines[n].Measures[e];for(let e=0,n=i.staffEntries.length;e<n;++e)i.staffEntries[e].sourceStaffEntry.Link&&(t=!0)}for(let t=0,i=this.staffLines[n+1].Measures.length;t<i;++t){const i=this.staffLines[n+1].Measures[t];for(let t=0,n=i.staffEntries.length;t<n;++t)i.staffEntries[t].sourceStaffEntry.Link&&(e=!0)}}return!(!t||!e)}getBottomStaffLine(t){const e=t.ParentStaff.ParentInstrument.Staves,n=e[e.length-1];for(const i of t.ParentMusicSystem.staffLines)if(i.ParentStaff===n)return i}createSystemLine(t,e,n,i,s,r,o){throw new Error("not implemented")}createLinesForSystemLine(t){}calcBracketsWidth(){let t=0;for(let e=0,n=this.GroupBrackets.length;e<n;++e){const n=this.GroupBrackets[e];t=Math.max(t,n.PositionAndShape.Size.width)}for(let e=0,n=this.InstrumentBrackets.length;e<n;++e){const n=this.InstrumentBrackets[e];t=Math.max(t,n.PositionAndShape.Size.width)}return t}createInstrumentBracket(t,e){}createGroupBracket(t,e,n){}findFirstVisibleInstrumentInInstrumentalGroup(t){for(let e=0,n=t.InstrumentalGroups.length;e<n;++e){const n=t.InstrumentalGroups[e];if(!(n instanceof i.Instrument))return this.findFirstVisibleInstrumentInInstrumentalGroup(n);if(!0===n.Visible)return n}}findLastVisibleInstrumentInInstrumentalGroup(t){let e;for(let n=t.InstrumentalGroups.length-1;n>=0;n--){if(e=t.InstrumentalGroups[n],!(e instanceof i.Instrument))return this.findLastVisibleInstrumentInInstrumentalGroup(e);if(!0===e.Visible)return e}}updateMusicSystemStaffLineXPosition(t){for(let e=0,n=this.StaffLines.length;e<n;++e){const n=this.StaffLines[e],i=n.PositionAndShape.RelativePosition;i.x=this.maxLabelLength+t,n.PositionAndShape.RelativePosition=i,n.PositionAndShape.BorderRight=this.boundingBox.Size.width-this.maxLabelLength-t;for(let t=0;t<n.StaffLines.length;t++){const e=new l.PointF2D(n.PositionAndShape.Size.width,n.StaffLines[t].End.y);n.StaffLines[t].End=e}}}}e.MusicSystem=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Staff=void 0,e.Staff=class{constructor(t,e){this.isTab=!1,this.voices=[],this.volume=1,this.stafflineCount=5,this.parentInstrument=t,this.id=e,this.audible=!0,this.following=!0}get ParentInstrument(){return this.parentInstrument}set ParentInstrument(t){this.parentInstrument=t}get Voices(){return this.voices}get Id(){return this.id}get Volume(){return this.volume}set Volume(t){this.volume=t}get StafflineCount(){return this.stafflineCount}set StafflineCount(t){this.stafflineCount=t}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SystemLine=void 0;const i=n(23),s=n(4),r=n(6);class o extends r.GraphicalObject{constructor(t,e,n,i,r){super(),this.lineType=t,this.linePosition=e,this.parentMusicSystem=n,this.topMeasure=i,this.bottomMeasure=r,this.parentTopStaffLine=i.ParentStaffLine,this.boundingBox=new s.BoundingBox(this,n.PositionAndShape)}static getObjectWidthForLineType(t,e){switch(e){case i.SystemLinesEnum.SingleThin:return t.SystemThinLineWidth;case i.SystemLinesEnum.DoubleThin:return 2*t.SystemThinLineWidth+t.DistanceBetweenVerticalSystemLines;case i.SystemLinesEnum.ThinBold:return t.SystemThinLineWidth+t.SystemBoldLineWidth+t.DistanceBetweenVerticalSystemLines;case i.SystemLinesEnum.BoldThinDots:case i.SystemLinesEnum.DotsThinBold:return t.SystemThinLineWidth+t.SystemBoldLineWidth+t.DistanceBetweenVerticalSystemLines+t.SystemDotWidth+t.DistanceBetweenDotAndLine;case i.SystemLinesEnum.DotsBoldBoldDots:return 2*t.SystemBoldLineWidth+2*t.SystemDotWidth+2*t.DistanceBetweenDotAndLine+t.DistanceBetweenVerticalSystemLines;default:return 0}}}e.SystemLine=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MusicSheetDrawer=void 0;const i=n(4),s=n(22),r=n(27),o=n(50),a=n(5),c=n(24),l=n(13),u=n(8),h=n(11),d=n(63),f=n(103);e.MusicSheetDrawer=class{constructor(t,e){this.drawableBoundingBoxElement=!1,this.skyLineVisible=!1,this.bottomLineVisible=!1,this.phonicScoreMode=f.PhonicScoreModes.Manual,this.textMeasurer=t,this.splitScreenLineColor=-1,this.drawingParameters=e,this.rules=e.Rules}set Mode(t){this.phonicScoreMode=t}drawSheet(t){if(this.graphicalMusicSheet=t,this.rules=t.ParentMusicSheet.Rules,this.drawSplitScreenLine(),this.drawingParameters.drawCursors)for(const e of t.Cursors){if(!e)continue;const t=new i.BoundingBox(e);t.AbsolutePosition=e.Start,t.BorderBottom=e.End.y-e.Start.y,t.BorderRight=e.Width/2,t.BorderLeft=-e.Width/2,this.isVisible(t)&&this.drawLineAsVerticalRectangle(e,s.GraphicalLayers.Cursor)}this.drawingParameters.drawScrollIndicator&&this.drawScrollIndicator();for(const e of this.graphicalMusicSheet.MusicPages)this.drawPage(e)}drawLineAsHorizontalRectangle(t,e){let n=new o.RectangleF2D(t.Start.x,t.End.y-t.Width/2,t.End.x-t.Start.x,t.Width);n=this.applyScreenTransformationForRect(n),this.renderRectangle(n,e,t.styleId)}drawLineAsVerticalRectangle(t,e){const n=t.Start,i=t.Width;let s=new o.RectangleF2D(n.x-i/2,n.y,i,t.End.y-n.y);s=this.applyScreenTransformationForRect(s),this.renderRectangle(s,e,t.styleId)}drawLineAsHorizontalRectangleWithOffset(t,e,n){const i=new a.PointF2D(t.Start.x+e.x,t.Start.y+e.y),s=new a.PointF2D(t.End.x+e.x,t.End.y+e.y),r=t.Width;let c=new o.RectangleF2D(i.x,s.y-r/2,s.x-i.x,r);c=this.applyScreenTransformationForRect(c),this.renderRectangle(c,n,t.styleId)}drawLineAsVerticalRectangleWithOffset(t,e,n){const i=new a.PointF2D(t.Start.x+e.x,t.Start.y+e.y),s=new a.PointF2D(t.End.x+e.x,t.End.y+e.y),r=t.Width;let c=new o.RectangleF2D(i.x,i.y,r,s.y-i.y);c=this.applyScreenTransformationForRect(c),this.renderRectangle(c,n,t.styleId)}drawRectangle(t,e){const n=t.PositionAndShape;let i=new o.RectangleF2D(n.AbsolutePosition.x,n.AbsolutePosition.y,n.BorderRight,n.BorderBottom);i=this.applyScreenTransformationForRect(i),this.renderRectangle(i,e,t.style)}calculatePixelDistance(t){throw new Error("not implemented")}drawLabel(t,e){if(!this.isVisible(t.PositionAndShape))return;const n=t.Label;if(""===n.text.trim())return;const i=this.applyScreenTransformation(t.PositionAndShape.AbsolutePosition),s=this.calculatePixelDistance(n.fontHeight),r=this.calculatePixelDistance(t.PositionAndShape.Size.width),o=Math.ceil(r),a=Math.ceil(s*(.2+t.TextLines.length));switch(n.textAlignment){case u.TextAlignmentEnum.LeftTop:break;case u.TextAlignmentEnum.LeftCenter:i.y-=a/2;break;case u.TextAlignmentEnum.LeftBottom:i.y-=a;break;case u.TextAlignmentEnum.CenterTop:i.x-=o/2;break;case u.TextAlignmentEnum.CenterCenter:i.x-=o/2,i.y-=a/2;break;case u.TextAlignmentEnum.CenterBottom:i.x-=o/2,i.y-=a;break;case u.TextAlignmentEnum.RightTop:i.x-=o;break;case u.TextAlignmentEnum.RightCenter:i.x-=o,i.y-=a/2;break;case u.TextAlignmentEnum.RightBottom:i.x-=o,i.y-=a;break;default:throw new h.ArgumentOutOfRangeException("")}this.renderLabel(t,e,o,a,s,i)}applyScreenTransformation(t){throw new Error("not implemented")}applyScreenTransformations(t){const e=[];for(const n of t)e.push(this.applyScreenTransformation(n));return e}applyScreenTransformationForRect(t){throw new Error("not implemented")}drawSplitScreenLine(){}renderRectangle(t,e,n,i=1){throw new Error("not implemented")}drawScrollIndicator(){}drawSelectionStartSymbol(t){}drawSelectionEndSymbol(t){}renderLabel(t,e,n,i,s,r){throw new Error("not implemented")}renderSystemToScreen(t,e,n){}drawMeasure(t){throw new Error("not implemented")}drawSkyLine(t){}drawBottomLine(t){}drawInstrumentBrace(t,e){}drawGroupBracket(t,e){}isVisible(t){return!0}drawMusicSystem(t){const e=this.getSystemAbsBoundingRect(t),n=this.getSytemBoundingBoxInPixels(e);this.drawMusicSystemComponents(t,n,e)}getSytemBoundingBoxInPixels(t){const e=this.applyScreenTransformationForRect(t);return e.x=Math.round(e.x),e.y=Math.round(e.y),e}getSystemAbsBoundingRect(t){const e=t.PositionAndShape.BoundingRectangle;return new o.RectangleF2D(t.PositionAndShape.AbsolutePosition.x+t.PositionAndShape.BorderLeft-1,t.PositionAndShape.AbsolutePosition.y+t.PositionAndShape.BorderTop-1,e.width+6,e.height+2)}drawMusicSystemComponents(t,e,n){const i=this.graphicalMusicSheet.SelectionStartSymbol,r=this.graphicalMusicSheet.SelectionEndSymbol;this.drawingParameters.drawSelectionStartSymbol&&void 0!==i&&this.isVisible(i.PositionAndShape)&&this.drawSelectionStartSymbol(i),this.drawingParameters.drawSelectionEndSymbol&&void 0!==r&&this.isVisible(r.PositionAndShape)&&this.drawSelectionEndSymbol(r);for(const s of t.StaffLines)this.drawStaffLine(s),this.rules.RenderLyrics&&(s.LyricsDashes.length>0&&this.drawDashes(s.LyricsDashes),s.LyricLines.length>0&&this.drawLyricLines(s.LyricLines,s));for(const s of t.SystemLines)this.drawSystemLineObject(s);if(t.Parent===t.Parent.Parent.MusicPages[0])for(const o of t.Labels)this.drawLabel(o,s.GraphicalLayers.Notes);for(const s of t.InstrumentBrackets)this.drawInstrumentBrace(s,t);for(const s of t.GroupBrackets)this.drawGroupBracket(s,t);if(!this.leadSheet)for(const o of t.MeasureNumberLabels)this.drawLabel(o,s.GraphicalLayers.Notes);for(const s of t.StaffLines)this.drawStaffLineSymbols(s);this.drawingParameters.drawMarkedAreas&&this.drawMarkedAreas(t),this.drawingParameters.drawComments&&this.drawComment(t)}activateSystemRendering(t,e,n,i){return!0}drawSystemLineObject(t){}drawStaffLine(t){for(const e of t.Measures)this.drawMeasure(e);this.rules.RenderLyrics&&t.LyricsDashes.length>0&&this.drawDashes(t.LyricsDashes),this.drawOctaveShifts(t),this.drawExpressions(t),this.skyLineVisible&&this.drawSkyLine(t),this.bottomLineVisible&&this.drawBottomLine(t)}drawLyricLines(t,e){e.LyricLines.forEach(t=>{t.Start.y+=e.PositionAndShape.AbsolutePosition.y,t.End.y+=e.PositionAndShape.AbsolutePosition.y,t.Start.x+=e.PositionAndShape.AbsolutePosition.x,t.End.x+=e.PositionAndShape.AbsolutePosition.x,this.drawGraphicalLine(t,this.rules.LyricUnderscoreLineWidth)})}drawExpressions(t){}drawGraphicalLine(t,e,n="black"){this.drawLine(t.Start,t.End,n,e)}drawLine(t,e,n="#FF0000FF",i){}drawDashes(t){t.forEach(t=>this.drawLabel(t,s.GraphicalLayers.Notes))}drawOctaveShifts(t){}drawStaffLines(t){if(t.StaffLines){const e=t.PositionAndShape.AbsolutePosition;for(let n=0;n<5;n++)this.drawLineAsHorizontalRectangleWithOffset(t.StaffLines[n],e,s.GraphicalLayers.Notes)}}drawInstantaneousDynamic(t){throw new Error("not implemented")}drawContinuousDynamic(t){throw new Error("not implemented")}drawSymbol(t,e,n,i=1,r=s.GraphicalLayers.Notes){}get leadSheet(){return this.graphicalMusicSheet.LeadSheet}set leadSheet(t){this.graphicalMusicSheet.LeadSheet=t}drawPage(t){if(this.isVisible(t.PositionAndShape)){for(const e of t.MusicSystems)this.isVisible(e.PositionAndShape)&&this.drawMusicSystem(e);if(t===t.Parent.MusicPages[0])for(const e of t.Labels)this.drawLabel(e,s.GraphicalLayers.Notes);this.drawableBoundingBoxElement&&this.drawBoundingBoxes(t.PositionAndShape,0,this.drawableBoundingBoxElement)}}drawBoundingBoxes(t,e=0,n="all"){const i=t.DataObject.constructor.name;if(i===n||"all"===n){let n=new o.RectangleF2D(t.AbsolutePosition.x+t.BorderMarginLeft,t.AbsolutePosition.y+t.BorderMarginTop,t.BorderMarginRight-t.BorderMarginLeft,t.BorderMarginBottom-t.BorderMarginTop);this.drawLineAsHorizontalRectangle(new r.GraphicalLine(new a.PointF2D(t.AbsolutePosition.x-1,t.AbsolutePosition.y),new a.PointF2D(t.AbsolutePosition.x+1,t.AbsolutePosition.y),.1,s.OutlineAndFillStyleEnum.BaseWritingColor),e-1),this.drawLineAsVerticalRectangle(new r.GraphicalLine(new a.PointF2D(t.AbsolutePosition.x,t.AbsolutePosition.y-1),new a.PointF2D(t.AbsolutePosition.x,t.AbsolutePosition.y+1),.1,s.OutlineAndFillStyleEnum.BaseWritingColor),e-1),n=this.applyScreenTransformationForRect(n),this.renderRectangle(n,s.GraphicalLayers.Background,e,.5);const h=new l.Label(i);this.renderLabel(new c.GraphicalLabel(h,.8,u.TextAlignmentEnum.CenterCenter,this.rules),e,n.width,n.height,n.height,new a.PointF2D(n.x,n.y+12))}e++,t.ChildElements.forEach(t=>this.drawBoundingBoxes(t,e,n))}drawMarkedAreas(t){for(const e of t.GraphicalMarkedAreas)e&&(e.systemRectangle&&this.drawRectangle(e.systemRectangle,s.GraphicalLayers.Background),e.settings&&this.drawLabel(e.settings,s.GraphicalLayers.Comment),e.labelRectangle&&this.drawRectangle(e.labelRectangle,s.GraphicalLayers.Background),e.label&&this.drawLabel(e.label,s.GraphicalLayers.Comment))}drawComment(t){for(const e of t.GraphicalComments)e&&(e.settings&&this.drawLabel(e.settings,s.GraphicalLayers.Comment),e.label&&this.drawLabel(e.label,s.GraphicalLayers.Comment))}drawStaffLineSymbols(t){const e=t.ParentStaff.ParentInstrument,n=t.PositionAndShape.AbsolutePosition.x,i=t.PositionAndShape.AbsolutePosition.y+2,o=t.PositionAndShape.BorderRight;e.highlight&&this.drawingParameters.drawHighlights&&this.drawLineAsHorizontalRectangle(new r.GraphicalLine(new a.PointF2D(n,i),new a.PointF2D(n+o,i),4,s.OutlineAndFillStyleEnum.Highlighted),s.GraphicalLayers.Highlight);let c=f.MusicSymbolDrawingStyle.Disabled,l=d.MusicSymbol.PLAY,u=this.drawingParameters.drawActivitySymbols;switch(this.phonicScoreMode){case f.PhonicScoreModes.Midi:l=d.MusicSymbol.PLAY,this.midiPlaybackAvailable&&t.ParentStaff.audible&&(c=f.MusicSymbolDrawingStyle.PlaybackSymbols);break;case f.PhonicScoreModes.Following:l=d.MusicSymbol.MIC,t.ParentStaff.following&&(c=f.MusicSymbolDrawingStyle.FollowSymbols);break;default:u=!1}if(u){const t=new a.PointF2D(n+o+2,i);this.drawSymbol(l,c,t)}if(this.drawingParameters.drawErrors)for(const h of t.Measures){const t=h.PositionAndShape,e=t.AbsolutePosition.x,n=t.AbsolutePosition.y+2;h.hasError&&this.graphicalMusicSheet.ParentMusicSheet.DrawErroneousMeasures&&this.drawLineAsHorizontalRectangle(new r.GraphicalLine(new a.PointF2D(e,n),new a.PointF2D(e+t.BorderRight,n),4,s.OutlineAndFillStyleEnum.ErrorUnderlay),s.GraphicalLayers.MeasureError)}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PhonicScoreModes=e.MusicSymbolDrawingStyle=e.DrawingMode=void 0,function(t){t[t.All=0]="All",t[t.NoOverlays=1]="NoOverlays",t[t.Leadsheet=2]="Leadsheet"}(e.DrawingMode||(e.DrawingMode={})),function(t){t[t.Normal=0]="Normal",t[t.Disabled=1]="Disabled",t[t.Selected=2]="Selected",t[t.Clickable=3]="Clickable",t[t.PlaybackSymbols=4]="PlaybackSymbols",t[t.FollowSymbols=5]="FollowSymbols",t[t.QFeedbackNotFound=6]="QFeedbackNotFound",t[t.QFeedbackOk=7]="QFeedbackOk",t[t.QFeedbackPerfect=8]="QFeedbackPerfect",t[t.Debug1=9]="Debug1",t[t.Debug2=10]="Debug2",t[t.Debug3=11]="Debug3"}(e.MusicSymbolDrawingStyle||(e.MusicSymbolDrawingStyle={})),function(t){t[t.Following=0]="Following",t[t.Midi=1]="Midi",t[t.Manual=2]="Manual"}(e.PhonicScoreModes||(e.PhonicScoreModes={}))},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.VexFlowInstrumentBrace=void 0;const s=i(n(9)),r=n(67);class o extends r.VexFlowInstrumentBracket{constructor(t,e,n=0){super(t,e,n),this.vexflowConnector.setType(s.default.Flow.StaveConnector.type.BRACE)}}e.VexFlowInstrumentBrace=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GraphicalMeasure=void 0;const i=n(6),s=n(0),r=n(4),o=n(5);class a extends i.GraphicalObject{constructor(t,e,n){super(),this.hasOnlyRests=!1,this.measureNumber=-1,this.parentStaff=t,this.parentSourceMeasure=e,this.parentStaffLine=n,n?(this.parentStaff=n.ParentStaff,this.PositionAndShape=new r.BoundingBox(this,n.PositionAndShape)):this.PositionAndShape=new r.BoundingBox(this),this.PositionAndShape.BorderBottom=4,this.parentSourceMeasure&&(this.measureNumber=this.parentSourceMeasure.MeasureNumber),this.staffEntries=[]}get ParentStaff(){return this.parentStaff}get ParentMusicSystem(){return this.parentMusicSystem}set ParentMusicSystem(t){this.parentMusicSystem=t}get MeasureNumber(){return this.measureNumber}get FirstInstructionStaffEntry(){return this.firstInstructionStaffEntry}set FirstInstructionStaffEntry(t){this.firstInstructionStaffEntry=t}get LastInstructionStaffEntry(){return this.lastInstructionStaffEntry}set LastInstructionStaffEntry(t){this.lastInstructionStaffEntry=t}get ParentStaffLine(){return this.parentStaffLine}set ParentStaffLine(t){this.parentStaffLine=t,this.parentStaffLine&&(this.PositionAndShape.Parent=this.parentStaffLine.PositionAndShape)}resetLayout(){throw new Error("not implemented")}getLineWidth(t){throw new Error("not implemented")}addClefAtBegin(t){throw new Error("not implemented")}addKeyAtBegin(t,e,n){throw new Error("not implemented")}addRhythmAtBegin(t){throw new Error("not implemented")}addClefAtEnd(t){throw new Error("not implemented")}setPositionInStaffline(t){this.PositionAndShape.RelativePosition=new o.PointF2D(t,0)}setWidth(t){this.PositionAndShape.BorderRight=t}layoutSymbols(){throw new Error("not implemented")}findGraphicalStaffEntryFromTimestamp(t){var e;for(let n=0,i=this.staffEntries.length;n<i;++n){const i=this.staffEntries[n];if(null===(e=i.relInMeasureTimestamp)||void 0===e?void 0:e.Equals(t))return i}}findGraphicalStaffEntryFromVerticalContainerTimestamp(t){for(let e=0,n=this.staffEntries.length;e<n;++e){const n=this.staffEntries[e];if(n.sourceStaffEntry.VerticalContainerParent.getAbsoluteTimestamp().Equals(t))return n}}hasSameDurationWithSourceMeasureParent(){const t=new s.Fraction(0,1);for(let e=0,n=this.staffEntries.length;e<n;++e){const n=this.staffEntries[e];t.Add(n.findStaffEntryMinNoteLength())}return t.Equals(this.parentSourceMeasure.Duration)}hasMultipleVoices(){if(0===this.staffEntries.length)return!1;const t=[];for(let e=0,n=this.staffEntries.length;e<n;++e){const n=this.staffEntries[e];for(let e=0,i=n.sourceStaffEntry.VoiceEntries.length;e<i;++e){const i=n.sourceStaffEntry.VoiceEntries[e];t.indexOf(i.ParentVoice)<0&&t.push(i.ParentVoice)}}return t.length>1}isVisible(){return this.ParentStaff.ParentInstrument.Visible}getGraphicalMeasureDurationFromStaffEntries(){let t=new s.Fraction(0,1);const e=[];for(let n=0,i=this.staffEntries.length;n<i;++n){const t=this.staffEntries[n];for(let n=0,i=t.sourceStaffEntry.VoiceEntries.length;n<i;++n){const i=t.sourceStaffEntry.VoiceEntries[n];e.indexOf(i.ParentVoice)<0&&e.push(i.ParentVoice)}}for(let n=0,i=e.length;n<i;++n){const i=e[n],r=new s.Fraction(0,1);for(const t of this.staffEntries)for(const e of t.graphicalVoiceEntries)e.parentVoiceEntry.ParentVoice===i&&e.notes.length>0&&r.Add(e.notes[0].graphicalNoteLength);t.lt(r)&&(t=s.Fraction.createFromFraction(r))}return t}addGraphicalStaffEntry(t){this.staffEntries.push(t)}addGraphicalStaffEntryAtTimestamp(t){if(t)if(0===this.staffEntries.length||this.staffEntries[this.staffEntries.length-1].relInMeasureTimestamp.lt(t.relInMeasureTimestamp))this.staffEntries.push(t);else for(let e=this.staffEntries.length-1;e>=0;e--){if(this.staffEntries[e].relInMeasureTimestamp.lt(t.relInMeasureTimestamp)){this.staffEntries.splice(e+1,0,t);break}0===e&&this.staffEntries.splice(e,0,t)}}beginsWithLineRepetition(){const t=this.parentSourceMeasure;return!!t&&t.beginsWithLineRepetition()}endsWithLineRepetition(){const t=this.parentSourceMeasure;return!!t&&t.endsWithLineRepetition()}beginsWithWordRepetition(){const t=this.parentSourceMeasure;return!!t&&t.beginsWithWordRepetition()}endsWithWordRepetition(){const t=this.parentSourceMeasure;return!!t&&t.endsWithWordRepetition()}}e.GraphicalMeasure=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GraphicalVoiceEntry=void 0;const i=n(6),s=n(4),r=n(26);class o extends i.GraphicalObject{constructor(t,e){super(),this.parentVoiceEntry=t,this.parentStaffEntry=e,this.PositionAndShape=new s.BoundingBox(this,e?e.PositionAndShape:void 0,!0),this.notes=[],this.rules=e?e.parentMeasure.parentSourceMeasure.Rules:new r.EngravingRules}sort(){this.notes.sort((t,e)=>e.sourceNote.Pitch.getHalfTone()-t.sourceNote.Pitch.getHalfTone())}color(){}}e.GraphicalVoiceEntry=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VexFlowStaffEntry=void 0;const i=n(108),s=n(18);class r extends i.GraphicalStaffEntry{constructor(t,e,n){super(t,e,n)}calculateXPosition(){const t=this.parentMeasure.getVFStave();let e=0;for(const n of this.graphicalVoiceEntries)if(n.vfStaveNote){if(n.vfStaveNote.setStave(t),!n.vfStaveNote.preFormatted)continue;n.applyBordersFromVexflow(),this.parentMeasure.ParentStaff.isTab?this.PositionAndShape.RelativePosition.x=(n.vfStaveNote.getAbsoluteX()+n.vfStaveNote.glyph.getWidth())/s.unitInPixels:this.PositionAndShape.RelativePosition.x=n.vfStaveNote.getBoundingBox().getX()/s.unitInPixels;const i=n.notes[0].sourceNote;i.isRest()&&i.Length.RealValue===this.parentMeasure.parentSourceMeasure.ActiveTimeSignature.RealValue&&(this.PositionAndShape.RelativePosition.x+=this.parentMeasure.parentSourceMeasure.Rules.WholeRestXShiftVexflow-.1,n.PositionAndShape.BorderLeft=-.7,n.PositionAndShape.BorderRight=.7),n.PositionAndShape.BorderLeft<e&&(e=n.PositionAndShape.BorderLeft)}this.PositionAndShape.RelativePosition.x-=e,this.PositionAndShape.calculateBoundingBox()}}e.VexFlowStaffEntry=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GraphicalStaffEntry=void 0;const i=n(4),s=n(0),r=n(6),o=n(34),a=n(15);class c extends r.GraphicalObject{constructor(t,e,n){super(),this.graphicalChordContainers=[],this.tabStaffEntry=void 0,this.graphicalInstructions=[],this.graphicalTies=[],this.lyricsEntries=[],this.parentMeasure=t,this.graphicalVoiceEntries=[],this.sourceStaffEntry=e,n?(this.staffEntryParent=n,this.parentVerticalContainer=n.parentVerticalContainer,this.PositionAndShape=new i.BoundingBox(this,n.PositionAndShape)):this.PositionAndShape=new i.BoundingBox(this,t.PositionAndShape),e&&(this.relInMeasureTimestamp=e.Timestamp)}get GraphicalInstructions(){return this.graphicalInstructions}get GraphicalTies(){return this.graphicalTies}get LyricsEntries(){return this.lyricsEntries}set LyricsEntries(t){this.lyricsEntries=t}getAbsoluteTimestamp(){const t=this.parentMeasure.parentSourceMeasure.AbsoluteTimestamp.clone();return this.relInMeasureTimestamp&&t.Add(this.relInMeasureTimestamp),t}findTieGraphicalNoteFromNote(t){for(const e of this.graphicalVoiceEntries)for(const n of e.notes){const e=n.sourceNote;if(!e.isRest()&&e.Pitch.FundamentalNote===t.Pitch.FundamentalNote&&e.Pitch.Octave===t.Pitch.Octave&&e.getAbsoluteTimestamp().Equals(t.getAbsoluteTimestamp()))return n}}findEndTieGraphicalNoteFromNoteWithStartingSlur(t,e){if(t)for(const n of this.graphicalVoiceEntries)if(n.parentVoiceEntry===t.ParentVoiceEntry)for(const t of n.notes){const n=t.sourceNote;if(n.NoteTie&&-1!==n.NoteSlurs.indexOf(e))return t}}findGraphicalNoteFromGraceNote(t){if(t)for(const e of this.graphicalVoiceEntries)if(e.parentVoiceEntry===t.ParentVoiceEntry)for(const n of e.notes)if(n.sourceNote===t)return n}findGraphicalNoteFromNote(t){if(t)for(const e of this.graphicalVoiceEntries)if(e.parentVoiceEntry===t.ParentVoiceEntry)for(const n of e.notes)if(n.sourceNote===t&&this.getAbsoluteTimestamp().Equals(t.getAbsoluteTimestamp()))return n}getGraphicalNoteDurationFromVoice(t){for(const e of this.graphicalVoiceEntries)if(e.parentVoiceEntry.ParentVoice===t)return e.notes[0].graphicalNoteLength;return new s.Fraction(0,1)}findVoiceEntryGraphicalNotes(t){for(const e of this.graphicalVoiceEntries)if(e.parentVoiceEntry===t)return e.notes}isVoiceEntryPartOfLinkedVoiceEntry(t){if(this.sourceStaffEntry.Link)for(let e=0,n=this.sourceStaffEntry.Link.LinkStaffEntries.length;e<n;++e){const n=this.sourceStaffEntry.Link.LinkStaffEntries[e];if(-1!==n.VoiceEntries.indexOf(t)&&n!==this.sourceStaffEntry)return!0}return!1}findStaffEntryMinNoteLength(){let t=new s.Fraction(Number.MAX_VALUE,1);for(const e of this.graphicalVoiceEntries)for(const n of e.notes){const e=n.graphicalNoteLength;e.lt(t)&&e.GetExpandedNumerator()>0&&(t=e)}return t}findStaffEntryMaxNoteLength(){let t=new s.Fraction(0,1);for(const e of this.graphicalVoiceEntries)for(const n of e.notes){const e=n.graphicalNoteLength;t.lt(e)&&e.GetExpandedNumerator()>0&&(t=e)}return t}findOrCreateGraphicalVoiceEntry(t){for(const n of this.graphicalVoiceEntries)if(n.parentVoiceEntry===t)return n;const e=a.MusicSheetCalculator.symbolFactory.createVoiceEntry(t,this);return this.graphicalVoiceEntries.push(e),e}findOrCreateGraphicalVoiceEntryFromGraphicalNote(t){for(const n of this.graphicalVoiceEntries)if(n===t.parentVoiceEntry)return n;const e=a.MusicSheetCalculator.symbolFactory.createVoiceEntry(t.sourceNote.ParentVoiceEntry,this);return this.graphicalVoiceEntries.push(e),e}addGraphicalNoteToListAtCorrectYPosition(t,e){const n=t.notes;if(0===n.length||e.PositionAndShape.RelativePosition.y<o.CollectionUtil.last(n).PositionAndShape.RelativePosition.y)n.push(e);else for(let i=n.length-1;i>=0;i--){if(n[i].PositionAndShape.RelativePosition.y>e.PositionAndShape.RelativePosition.y){n.splice(i+1,0,e);break}if(0===i){n.splice(0,0,e);break}}}hasOnlyRests(){for(const t of this.graphicalVoiceEntries)for(const e of t.notes)if(!e.sourceNote.isRest())return!1;return!0}}e.GraphicalStaffEntry=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GraphicalNote=void 0;const i=n(6),s=n(15),r=n(4);class o extends i.GraphicalObject{constructor(t,e,n){super(),this.sourceNote=t,this.parentVoiceEntry=e,this.PositionAndShape=new r.BoundingBox(this,e.PositionAndShape),this.graphicalNoteLength=n||t.Length,this.numberOfDots=this.calculateNumberOfNeededDots(this.graphicalNoteLength)}Transpose(t,e,n,i){let r=this.sourceNote.Pitch;return s.MusicSheetCalculator.transposeCalculator&&(r=s.MusicSheetCalculator.transposeCalculator.transposePitch(this.sourceNote.Pitch,t,n)),r}calculateNumberOfNeededDots(t){let e=1,n=2;const i=t.GetExpandedNumerator();if(!this.sourceNote||!this.sourceNote.NoteTuplet)for(;n<i;)e++,n=Math.pow(2,e);return Math.min(3,e-1)}get ParentMusicPage(){return this.parentVoiceEntry.parentStaffEntry.parentMeasure.ParentMusicSystem.Parent}}e.GraphicalNote=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GraphicalChordSymbolContainer=void 0;const i=n(8),s=n(13),r=n(24),o=n(44),a=n(4),c=n(6),l=n(5);class u extends c.GraphicalObject{constructor(t,e,n,i,s,r){super(),this.chordSymbolContainer=t,this.boundingBox=new a.BoundingBox(this,e),this.rules=r,this.calculateLabel(n,s,i)}get GetChordSymbolContainer(){return this.chordSymbolContainer}get GetGraphicalLabel(){return this.graphicalLabel}calculateLabel(t,e,n){const a=o.ChordSymbolContainer.calculateChordText(this.chordSymbolContainer,e,n);this.graphicalLabel=new r.GraphicalLabel(new s.Label(a),t,i.TextAlignmentEnum.CenterBottom,this.rules,this.boundingBox),this.graphicalLabel.PositionAndShape.RelativePosition=new l.PointF2D(0,0)}}e.GraphicalChordSymbolContainer=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VexFlowStaffLine=void 0;const i=n(112),s=n(114);class r extends i.StaffLine{constructor(t,e){super(t,e),this.slursInVFStaffLine=[],this.alignmentManager=new s.AlignmentManager(this)}get SlursInVFStaffLine(){return this.slursInVFStaffLine}addVFSlurToVFStaffline(t){this.slursInVFStaffLine.push(t)}get AlignmentManager(){return this.alignmentManager}}e.VexFlowStaffLine=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StaffLine=void 0;const i=n(4),s=n(6),r=n(55),o=n(5),a=n(113);class c extends s.GraphicalObject{constructor(t,e){super(),this.measures=[],this.staffLines=new Array(5),this.octaveShifts=[],this.lyricLines=[],this.lyricsDashes=[],this.abstractExpressions=[],this.graphicalSlurs=[],this.parentMusicSystem=t,this.parentStaff=e,this.boundingBox=new i.BoundingBox(this,t.PositionAndShape),this.skyBottomLine=new a.SkyBottomLineCalculator(this),this.staffHeight=this.parentMusicSystem.rules.StaffHeight,this.topLineOffset=0,this.bottomLineOffset=4,this.calculateStaffLineOffsets()}calculateStaffLineOffsets(){if(this.ParentStaff.isTab)switch(this.ParentStaff.StafflineCount){case 5:this.staffHeight=this.bottomLineOffset=6*this.ParentStaff.ParentInstrument.GetMusicSheet.Rules.TabStaffInterlineHeight;break;default:this.staffHeight=this.bottomLineOffset=this.ParentStaff.ParentInstrument.GetMusicSheet.Rules.TabStaffInterlineHeight*this.ParentStaff.StafflineCount}else switch(this.ParentStaff.StafflineCount){case 4:this.bottomLineOffset=1;break;case 3:this.topLineOffset=1,this.bottomLineOffset=1;break;case 2:this.topLineOffset=2,this.bottomLineOffset=1;break;case 1:this.topLineOffset=2,this.bottomLineOffset=2}}get Measures(){return this.measures}set Measures(t){this.measures=t}get StaffLines(){return this.staffLines}set StaffLines(t){this.staffLines=t}get NextStaffLine(){const t=this.parentMusicSystem.StaffLines.indexOf(this);return t!==this.parentMusicSystem.StaffLines.length?this.parentMusicSystem.StaffLines[t+1]:void 0}get LyricLines(){return this.lyricLines}get AbstractExpressions(){return this.abstractExpressions}set AbstractExpressions(t){this.abstractExpressions=t}set LyricLines(t){this.lyricLines=t}get LyricsDashes(){return this.lyricsDashes}set LyricsDashes(t){this.lyricsDashes=t}get ParentMusicSystem(){return this.parentMusicSystem}set ParentMusicSystem(t){this.parentMusicSystem=t}get ParentStaff(){return this.parentStaff}set ParentStaff(t){this.parentStaff=t}get SkyBottomLineCalculator(){return this.skyBottomLine}get SkyLine(){return this.skyBottomLine.SkyLine}get BottomLine(){return this.skyBottomLine.BottomLine}get OctaveShifts(){return this.octaveShifts}set OctaveShifts(t){this.octaveShifts=t}get StaffHeight(){return this.staffHeight}get TopLineOffset(){return this.topLineOffset}get BottomLineOffset(){return this.bottomLineOffset}get GraphicalSlurs(){return this.graphicalSlurs}addSlurToStaffline(t){this.graphicalSlurs.push(t)}addActivitySymbolClickArea(){const t=new r.StaffLineActivitySymbol(this),e=this.PositionAndShape;t.PositionAndShape.RelativePosition=new o.PointF2D(e.RelativePosition.x+e.BorderRight+.5,e.RelativePosition.y+.5),t.PositionAndShape.Parent=this.parentMusicSystem.PositionAndShape}isPartOfMultiStaffInstrument(){return this.parentStaff.ParentInstrument.Staves.length>1}findClosestStaffEntry(t){let e=void 0;for(let n=0,i=this.Measures.length;n<i;++n){const i=this.Measures[n];for(let n=0,s=i.staffEntries.length;n<s;++n){const s=i.staffEntries[n];Math.abs(s.PositionAndShape.RelativePosition.x-t+i.PositionAndShape.RelativePosition.x)<5&&(e=s)}}return e}}e.StaffLine=c},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.SkyBottomLineCalculator=void 0;n(5);const s=n(71),r=n(18),o=i(n(1));e.SkyBottomLineCalculator=class{constructor(t){this.mStaffLineParent=t,this.mRules=t.ParentMusicSystem.rules}calculateLines(){const t=Math.max(Math.ceil(this.StaffLineParent.PositionAndShape.Size.width*this.SamplingUnit),1);this.mSkyLine=[],this.mBottomLine=[];const e=new s.CanvasVexFlowBackend(this.StaffLineParent.ParentMusicSystem.rules);for(const s of this.StaffLineParent.Measures){s.PositionAndShape.calculateAbsolutePositionsRecursive(0,0);const n=s.getVFStave();e.initializeHeadless(n.getWidth());const i=e.getContext(),r=e.getCanvas(),a=r.width,c=r.height;n.setY(n.y+100);const l=n.getWidth();n.setWidth(a),s.format(),n.setWidth(l);try{s.draw(i)}catch(t){o.default.warn("SkyBottomLineCalculator.calculateLines.draw",t)}const u=i.getImageData(0,0,a,c),h=4,d=Math.max(Math.ceil(s.PositionAndShape.Size.width*this.mRules.SamplingUnit),1),f=new Array(d),p=new Array(d);for(let t=0;t<a;t++){for(let e=0;e<c;e++){const n=e*a*h+t*h;if(u.data[n+3]>0){f[t]=e;break}}for(let e=c;e>0;e--){const n=e*a*h+t*h;if(u.data[n+3]>0){p[t]=e;break}}}this.mSkyLine.push(...f),this.mBottomLine.push(...p),0,e.clear()}const n=this.mSkyLine.length/t,i=[],a=[];for(let s=0;s<this.mSkyLine.length&&i.length!==t;s+=n){const t=Math.min(this.mSkyLine.length,s+n);let e=this.mSkyLine.slice(s,t+1);i.push(Math.min(...e)),e=this.mBottomLine.slice(s,t+1),a.push(Math.max(...e))}this.mSkyLine=i,this.mBottomLine=a,this.mSkyLine.length!==t&&o.default.debug(`SkyLine calculation was not correct (${this.mSkyLine.length} instead of ${t})`),this.mSkyLine=this.mSkyLine.map(t=>(t-Math.max(...this.mSkyLine))/r.unitInPixels+this.StaffLineParent.TopLineOffset),this.mBottomLine=this.mBottomLine.map(t=>(t-Math.min(...this.mBottomLine))/r.unitInPixels+this.StaffLineParent.BottomLineOffset)}drawPixel(t,e,n="#FF0000FF"){const i=e.getContext(),s=i.fillStyle;i.fillStyle=n,i.fillRect(t.x,t.y,2,2),i.fillStyle=s}updateSkyLineWithWedge(t,e){let n=Math.floor(t.x*this.SamplingUnit),i=Math.ceil(e.x*this.SamplingUnit),s=(e.y-t.y)/(e.x-t.x);i-n<=1&&(i++,s=0),n<0&&(n=0),n>=this.BottomLine.length&&(n=this.BottomLine.length-1),i<0&&(i=0),i>=this.BottomLine.length&&(i=this.BottomLine.length),this.SkyLine[n]=t.y;for(let r=n+1;r<Math.min(i,this.SkyLine.length);r++)this.SkyLine[r]=this.SkyLine[r-1]+s/this.SamplingUnit}updateBottomLineWithWedge(t,e){let n=Math.floor(t.x*this.SamplingUnit),i=Math.ceil(e.x*this.SamplingUnit),s=(e.y-t.y)/(e.x-t.x);i-n<=1&&(i++,s=0),n<0&&(n=0),n>=this.BottomLine.length&&(n=this.BottomLine.length-1),i<0&&(i=0),i>=this.BottomLine.length&&(i=this.BottomLine.length),this.BottomLine[n]=t.y;for(let r=n+1;r<i;r++)this.BottomLine[r]=this.BottomLine[r-1]+s/this.SamplingUnit}updateSkyLineInRange(t,e,n){this.updateInRange(this.mSkyLine,t,e,n)}updateBottomLineInRange(t,e,n){this.updateInRange(this.BottomLine,t,e,n)}resetSkyLineInRange(t,e){this.updateInRange(this.SkyLine,t,e)}resetBottomLineInRange(t,e){this.setInRange(this.BottomLine,t,e)}setSkyLineWithValue(t){this.SkyLine.forEach(e=>t)}setBottomLineWithValue(t){this.BottomLine.forEach(e=>t)}getLeftIndexForPointX(t,e){const n=Math.floor(t*this.SamplingUnit);return n<0?0:n>=e?e-1:n}getRightIndexForPointX(t,e){const n=Math.ceil(t*this.SamplingUnit);return n<0?0:n>=e?e-1:n}updateStaffLineBorders(){this.mStaffLineParent.PositionAndShape.BorderTop=this.getSkyLineMin(),this.mStaffLineParent.PositionAndShape.BorderMarginTop=this.getSkyLineMin(),this.mStaffLineParent.PositionAndShape.BorderBottom=this.getBottomLineMax(),this.mStaffLineParent.PositionAndShape.BorderMarginBottom=this.getBottomLineMax()}getSkyLineMin(){return Math.min(...this.SkyLine.filter(t=>!isNaN(t)))}getSkyLineMinAtPoint(t){const e=Math.round(t*this.SamplingUnit);return this.mSkyLine[e]}getSkyLineMinInRange(t,e){return this.getMinInRange(this.SkyLine,t,e)}getBottomLineMax(){return Math.max(...this.BottomLine.filter(t=>!isNaN(t)))}getBottomLineMaxAtPoint(t){const e=Math.round(t*this.SamplingUnit);return this.mBottomLine[e]}getBottomLineMaxInRange(t,e){return this.getMaxInRange(this.BottomLine,t,e)}getBottomLineMaxInBoundingBox(t){const e=Math.floor(t.AbsolutePosition.x+t.BorderLeft),n=Math.ceil(t.AbsolutePosition.x+t.BorderRight);return this.getMaxInRange(this.mBottomLine,e,n)}updateWithBoundingBoxRecursivly(t){if(t.ChildElements&&t.ChildElements.length>0)this.updateWithBoundingBoxRecursivly(t);else{const e=t.BorderTop+t.AbsolutePosition.y,n=t.BorderBottom+t.AbsolutePosition.y;if(e<0){const n=Math.floor(t.AbsolutePosition.x+t.BorderLeft),i=Math.ceil(t.AbsolutePosition.x+t.BorderRight);this.updateInRange(this.mSkyLine,n,i,e)}else if(n>this.StaffLineParent.StaffHeight){const e=Math.floor(t.AbsolutePosition.x+t.BorderLeft),i=Math.ceil(t.AbsolutePosition.x+t.BorderRight);this.updateInRange(this.mBottomLine,e,i,n)}}}updateInRange(t,e=0,n=t.length,i=0){if(e=Math.floor(e*this.SamplingUnit),(n=Math.ceil(n*this.SamplingUnit))<e)throw new Error("start index of line is greater then the end index");e<0&&(e=0),n>t.length&&(n=t.length);for(let s=e;s<n;s++)t[s]=Math.abs(i)>Math.abs(t[s])?i:t[s]}setInRange(t,e=0,n=t.length,i=0){if(e=Math.floor(e*this.SamplingUnit),(n=Math.ceil(n*this.SamplingUnit))<e)throw new Error("start index of line is greater then the end index");e<0&&(e=0),n>t.length&&(n=t.length);for(let s=e;s<n;s++)t[s]=i}getMinInRange(t,e,n){return e=Math.floor(e*this.SamplingUnit),n=Math.ceil(n*this.SamplingUnit),t?(e<0&&(e=0),e>=t.length&&(e=t.length-1),n<0&&(n=0),n>=t.length&&(n=t.length),e>=0&&n<=t.length?Math.min(...t.slice(e,n+1)):void 0):Number.MAX_VALUE}getMaxInRange(t,e,n){return e=Math.floor(e*this.SamplingUnit),n=Math.ceil(n*this.SamplingUnit),t?(e<0&&(e=0),e>=t.length&&(e=t.length-1),n<0&&(n=0),n>=t.length&&(n=t.length),e>=0&&n<=t.length?Math.max(...t.slice(e,n+1)):void 0):Number.MIN_VALUE}get SamplingUnit(){return this.mRules.SamplingUnit}get StaffLineParent(){return this.mStaffLineParent}get SkyLine(){return this.mSkyLine}get BottomLine(){return this.mBottomLine}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AlignmentManager=void 0;const i=n(73),s=n(5);e.AlignmentManager=class{constructor(t){this.parentStaffline=t,this.rules=this.parentStaffline.ParentMusicSystem.rules}alignDynamicExpressions(){var t,e;const n=[];let s=new Array;for(let i=0;i<this.parentStaffline.AbstractExpressions.length-1;i++){const r=this.parentStaffline.AbstractExpressions[i],o=this.parentStaffline.AbstractExpressions[i+1];if((null===(t=null==r?void 0:r.SourceExpression)||void 0===t?void 0:t.Placement)===(null===(e=null==o?void 0:o.SourceExpression)||void 0===e?void 0:e.Placement)){const t=this.getDistance(r.PositionAndShape,o.PositionAndShape);Math.abs(t.x)<this.rules.DynamicExpressionMaxDistance?(-1===s.indexOf(r)&&s.push(r),s.push(o)):(n.push(s),s=new Array)}}n.push(s);for(const r of n)if(r.length>0){const t=r.map(t=>t.PositionAndShape.Center.y),e=Math.max(...t);for(let n=0;n<r.length;n++){const s=r[n],o=t[n]-e;if(s instanceof i.VexFlowContinuousDynamicExpression?(s.shiftYPosition(-o),s.calcPsi()):(s.PositionAndShape.RelativePosition.y-=.8*o,s.PositionAndShape.calculateBoundingBox()),s.squeeze){const t=n<r.length-1?r[n+1]:void 0,e=n>0?r[n-1]:void 0;if(t){const e=this.getOverlap(s.PositionAndShape,t.PositionAndShape);s.squeeze(-(e.x+this.rules.DynamicExpressionSpacer))}if(e){const t=this.getOverlap(e.PositionAndShape,s.PositionAndShape);s.squeeze(t.x+this.rules.DynamicExpressionSpacer)}}}}}getDistance(t,e){const n=t.RelativePosition.x+t.BorderMarginRight,i=e.RelativePosition.x+e.BorderMarginLeft,r=t.RelativePosition.y+t.BorderMarginBottom,o=e.RelativePosition.y+e.BorderMarginTop;return new s.PointF2D(i-n,o-r)}getOverlap(t,e){return new s.PointF2D(t.RelativePosition.x+t.BorderMarginRight-(e.RelativePosition.x+e.BorderMarginLeft),t.RelativePosition.y+t.BorderMarginBottom-(e.RelativePosition.y+e.BorderMarginTop))}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GraphicalTie=void 0,e.GraphicalTie=class{constructor(t,e,n){this.tie=t,this.startNote=e,this.endNote=n}get GetTie(){return this.tie}get StartNote(){return this.startNote}get Tie(){return this.tie}set StartNote(t){this.startNote=t}get EndNote(){return this.endNote}set EndNote(t){this.endNote=t}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GraphicalLyricEntry=void 0;const i=n(24),s=n(13),r=n(5),o=n(8);e.GraphicalLyricEntry=class{constructor(t,e,n,a){this.lyricsEntry=t,this.graphicalStaffEntry=e;const c=e.parentMeasure.parentSourceMeasure.Rules.LyricsAlignmentStandard;t.Text.length>=4&&t.Parent.Notes[0].Length.Denominator>4&&o.TextAlignmentEnum.LeftBottom;const l=new s.Label(t.Text);this.graphicalLabel=new i.GraphicalLabel(l,n,c,this.graphicalStaffEntry.parentMeasure.parentSourceMeasure.Rules,e.PositionAndShape),this.graphicalLabel.PositionAndShape.RelativePosition=new r.PointF2D(0,a),c===o.TextAlignmentEnum.LeftBottom&&(this.graphicalLabel.PositionAndShape.RelativePosition.x-=1)}get LyricsEntry(){return this.lyricsEntry}get ParentLyricWord(){return this.graphicalLyricWord}set ParentLyricWord(t){this.graphicalLyricWord=t}get GraphicalLabel(){return this.graphicalLabel}set GraphicalLabel(t){this.graphicalLabel=t}get StaffEntryParent(){return this.graphicalStaffEntry}set StaffEntryParent(t){this.graphicalStaffEntry=t}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GraphicalLyricWord=void 0,e.GraphicalLyricWord=class{constructor(t){this.graphicalLyricsEntries=[],this.lyricWord=t,this.initialize()}get GetLyricWord(){return this.lyricWord}get GraphicalLyricsEntries(){return this.graphicalLyricsEntries}set GraphicalLyricsEntries(t){this.graphicalLyricsEntries=t}isFilled(){for(let t=0;t<this.graphicalLyricsEntries.length;t++)if(!this.graphicalLyricsEntries[t])return!1;return!0}initialize(){for(let t=0;t<this.lyricWord.Syllables.length;t++)this.graphicalLyricsEntries.push(void 0)}}},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.VexFlowOctaveShift=void 0;const s=i(n(9)),r=n(119),o=n(30),a=i(n(1));class c extends r.GraphicalOctaveShift{constructor(t,e){switch(super(t,e),t.Type){case o.OctaveEnum.VA8:this.position=s.default.Flow.TextBracket.Positions.TOP,this.supscript="va",this.text="8";break;case o.OctaveEnum.MA15:this.position=s.default.Flow.TextBracket.Positions.TOP,this.supscript="ma",this.text="15";break;case o.OctaveEnum.VB8:this.position=s.default.Flow.TextBracket.Positions.BOTTOM,this.supscript="vb",this.text="8";break;case o.OctaveEnum.MB15:this.position=s.default.Flow.TextBracket.Positions.BOTTOM,this.supscript="mb",this.text="15";break;default:a.default.error("Unknown or NONE octaveshift. This should not be called!")}}setStartNote(t){for(const e of t.graphicalVoiceEntries){const t=e;if(null==t?void 0:t.vfStaveNote)return this.startNote=t.vfStaveNote,!0}return!1}setEndNote(t){for(const e of t.graphicalVoiceEntries){const t=e;if(null==t?void 0:t.vfStaveNote)return this.endNote=t.vfStaveNote,!0}return!1}getTextBracket(){return new s.default.Flow.TextBracket({position:this.position,start:this.startNote,stop:this.endNote,superscript:this.supscript,text:this.text})}}e.VexFlowOctaveShift=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GraphicalOctaveShift=void 0;const i=n(6),s=n(30),r=n(4),o=n(63),a=n(11);class c extends i.GraphicalObject{constructor(t,e){super(),this.getOctaveShift=t,this.setSymbol(),this.PositionAndShape=new r.BoundingBox(this,e)}setSymbol(){switch(this.getOctaveShift.Type){case s.OctaveEnum.VA8:this.octaveSymbol=o.MusicSymbol.VA8;break;case s.OctaveEnum.VB8:this.octaveSymbol=o.MusicSymbol.VB8;break;case s.OctaveEnum.MA15:this.octaveSymbol=o.MusicSymbol.MA15;break;case s.OctaveEnum.MB15:this.octaveSymbol=o.MusicSymbol.MB15;break;default:throw new a.ArgumentOutOfRangeException("")}}}e.GraphicalOctaveShift=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VexFlowInstantaneousDynamicExpression=void 0;const i=n(65),s=n(42),r=n(24),o=n(13),a=n(8),c=n(20);class l extends i.GraphicalInstantaneousDynamicExpression{constructor(t,e,n){super(t,e,n);const i=new o.Label(this.Expression);this.label=new r.GraphicalLabel(i,this.rules.ContinuousDynamicTextHeight,a.TextAlignmentEnum.CenterCenter,this.rules,this.PositionAndShape),this.label.Label.fontStyle=c.FontStyles.BoldItalic,this.label.setLabelPositionAndShapeBorders(),this.PositionAndShape.calculateBoundingBox()}get InstantaneousDynamic(){return this.mInstantaneousDynamicExpression}get Expression(){return s.DynamicEnum[this.mInstantaneousDynamicExpression.DynEnum]}}e.VexFlowInstantaneousDynamicExpression=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GraphicalSlur=void 0;const i=n(5),s=n(122),r=n(3),o=n(156),a=n(39),c=n(0),l=n(12);class u extends s.GraphicalCurve{constructor(t){super(),this.staffEntries=[],this.slur=t}static Compare(t,e){if(t.staffEntries.length<1)return-1;if(e.staffEntries.length<1)return 1;const n=c.Fraction.minus(t.staffEntries[t.staffEntries.length-1].getAbsoluteTimestamp(),t.staffEntries[0].getAbsoluteTimestamp()),i=c.Fraction.minus(e.staffEntries[e.staffEntries.length-1].getAbsoluteTimestamp(),e.staffEntries[0].getAbsoluteTimestamp());return n.RealValue>i.RealValue?1:i.RealValue>n.RealValue?-1:0}calculateCurve(t){const e=this.staffEntries[0],n=this.staffEntries[this.staffEntries.length-1];let s=e.findGraphicalNoteFromNote(this.slur.StartNote);!s&&this.graceStart&&(s=e.findGraphicalNoteFromGraceNote(this.slur.StartNote)),s||(s=e.findEndTieGraphicalNoteFromNoteWithStartingSlur(this.slur.StartNote,this.slur));let a=n.findGraphicalNoteFromNote(this.slur.EndNote);!a&&this.graceEnd&&(a=n.findGraphicalNoteFromGraceNote(this.slur.EndNote));const c=e.parentMeasure.ParentStaffLine,l=c.SkyBottomLineCalculator;this.calculatePlacement(l,c);const u=this.calculateStartAndEnd(s,a,c,t,l),h=u.startX,d=u.endX;let f=u.startY,p=u.endY;const m=t.SlurTangentMinAngle,g=t.SlurTangentMaxAngle;let b;if(this.placement===r.PlacementEnum.Above){f-=t.SlurNoteHeadYOffset,p-=t.SlurNoteHeadYOffset;const e=new i.PointF2D(this.staffEntries[0].parentMeasure.PositionAndShape.RelativePosition.x+this.staffEntries[0].PositionAndShape.RelativePosition.x,f);s?e.x+=this.staffEntries[0].PositionAndShape.BorderRight:e.x=this.staffEntries[0].parentMeasure.beginInstructionsWidth,this.graceStart&&(e.x+=n.PositionAndShape.RelativePosition.x);const r=new i.PointF2D(this.staffEntries[this.staffEntries.length-1].parentMeasure.PositionAndShape.RelativePosition.x+this.staffEntries[this.staffEntries.length-1].PositionAndShape.RelativePosition.x,p);if(a?r.x+=this.staffEntries[this.staffEntries.length-1].PositionAndShape.BorderLeft:r.x=this.staffEntries[this.staffEntries.length-1].parentMeasure.PositionAndShape.RelativePosition.x+this.staffEntries[this.staffEntries.length-1].parentMeasure.PositionAndShape.Size.width,this.graceEnd&&(r.x+=n.staffEntryParent.PositionAndShape.RelativePosition.x),b=this.calculateTopPoints(e,r,c,l),0===b.length){const t=new i.PointF2D((r.x-e.x)/2+e.x,(r.y-e.y)/2+e.y);b.push(t)}const u=Math.atan((p-f)/(d-h)),v=new i.PointF2D(0,0);let y,S,x=new i.PointF2D(d-h,-(p-f));y=o.Matrix2D.getRotationMatrix(u),S=y.getTransposeMatrix(),x=y.vectorMultiplication(x);const _=this.calculateTranslatedAndRotatedPointListAbove(b,h,f,y),w=this.calculateMaxLeftSlope(_,v,x),E=this.calculateMaxRightSlope(_,v,x),T=v.y-v.x*w,C=x.y-x.x*E,M=new i.PointF2D;let P=!1;Math.abs(Math.abs(w)-Math.abs(E))<1e-4?(M.x=x.x/2,M.y=0,P=!0):(M.x=(C-T)/(w-E),M.y=w*M.x+T);const A=this.calculateHeightWidthRatio(x.x,_),I=0,L=0;let O=m,k=-m;if(!P){const t=this.calculateAngles(m,w,E,g);O=t.startAngle,k=t.endAngle}const R=this.calculateControlPoints(x.x,O,k,_,A);let N=R.startControlPoint,D=R.endControlPoint;N=S.vectorMultiplication(N),N.x+=h,N.y=-N.y+f,D=S.vectorMultiplication(D),D.x+=h,D.y=-D.y+f,this.bezierStartPt=new i.PointF2D(h,f-I),this.bezierStartControlPt=new i.PointF2D(N.x,N.y-I),this.bezierEndControlPt=new i.PointF2D(D.x,D.y-L),this.bezierEndPt=new i.PointF2D(d,p-L);const V=c.SkyLine.length,B=l.getLeftIndexForPointX(this.bezierStartPt.x,V),F=l.getLeftIndexForPointX(this.bezierEndPt.x,V),j=this.bezierEndPt.x-this.bezierStartPt.x,G=l.SamplingUnit;for(let t=B;t<F;t++){const e=t/G-this.bezierStartPt.x,n=this.calculateCurvePointAtIndex(Math.abs(e)/j);let i=l.getLeftIndexForPointX(n.x,V);i>=B&&(c.SkyLine[i]=Math.min(c.SkyLine[i],n.y)),i++,i<V&&(c.SkyLine[i]=Math.min(c.SkyLine[i],n.y))}}else{f+=t.SlurNoteHeadYOffset,p+=t.SlurNoteHeadYOffset;const e=new i.PointF2D(this.staffEntries[0].parentMeasure.PositionAndShape.RelativePosition.x+this.staffEntries[0].PositionAndShape.RelativePosition.x,f);s?e.x+=this.staffEntries[0].PositionAndShape.BorderRight:e.x=this.staffEntries[0].parentMeasure.beginInstructionsWidth,this.graceStart&&(e.x+=n.PositionAndShape.RelativePosition.x);const r=new i.PointF2D(this.staffEntries[this.staffEntries.length-1].parentMeasure.PositionAndShape.RelativePosition.x+this.staffEntries[this.staffEntries.length-1].PositionAndShape.RelativePosition.x,p);if(a?r.x+=this.staffEntries[this.staffEntries.length-1].PositionAndShape.BorderLeft:r.x=this.staffEntries[this.staffEntries.length-1].parentMeasure.PositionAndShape.RelativePosition.x+this.staffEntries[this.staffEntries.length-1].parentMeasure.PositionAndShape.Size.width,this.graceEnd&&(r.x+=n.staffEntryParent.PositionAndShape.RelativePosition.x),b=this.calculateBottomPoints(e,r,c,l),0===b.length){const t=new i.PointF2D((r.x-e.x)/2+e.x,(r.y-e.y)/2+e.y);b.push(t)}const u=Math.atan((p-f)/(d-h)),v=new i.PointF2D(0,0);let y,S,x=new i.PointF2D(d-h,p-f);y=o.Matrix2D.getRotationMatrix(-u),S=y.getTransposeMatrix(),x=y.vectorMultiplication(x);const _=this.calculateTranslatedAndRotatedPointListBelow(b,h,f,y),w=this.calculateMaxLeftSlope(_,v,x),E=this.calculateMaxRightSlope(_,v,x),T=v.y-v.x*w,C=x.y-x.x*E,M=new i.PointF2D;let P=!1;Math.abs(Math.abs(w)-Math.abs(E))<1e-4?(M.x=x.x/2,M.y=0,P=!0):(M.x=(C-T)/(w-E),M.y=w*M.x+T);const A=this.calculateHeightWidthRatio(x.x,_),I=0,L=0;let O=m,k=-m;if(!P){const t=this.calculateAngles(m,w,E,g);O=t.startAngle,k=t.endAngle}const R=this.calculateControlPoints(x.x,O,k,_,A);let N=R.startControlPoint,D=R.endControlPoint;N=S.vectorMultiplication(N),N.x+=h,N.y+=f,D=S.vectorMultiplication(D),D.x+=h,D.y+=f,this.bezierStartPt=new i.PointF2D(h,f+I),this.bezierStartControlPt=new i.PointF2D(N.x,N.y+I),this.bezierEndControlPt=new i.PointF2D(D.x,D.y+L),this.bezierEndPt=new i.PointF2D(d,p+L);const V=c.BottomLine.length,B=l.getLeftIndexForPointX(this.bezierStartPt.x,V),F=l.getLeftIndexForPointX(this.bezierEndPt.x,V),j=this.bezierEndPt.x-this.bezierStartPt.x,G=l.SamplingUnit;for(let t=B;t<F;t++){const e=t/G-this.bezierStartPt.x,n=this.calculateCurvePointAtIndex(Math.abs(e)/j);let i=l.getLeftIndexForPointX(n.x,V);i>=B&&(c.BottomLine[i]=Math.max(c.BottomLine[i],n.y)),i++,i<V&&(c.BottomLine[i]=Math.max(c.BottomLine[i],n.y))}}}calculateStartAndEnd(t,e,n,i,s){let o=0,a=0,c=0,u=0;if(t){o=t.PositionAndShape.RelativePosition.x+t.parentVoiceEntry.parentStaffEntry.PositionAndShape.RelativePosition.x+t.parentVoiceEntry.parentStaffEntry.parentMeasure.PositionAndShape.RelativePosition.x,this.graceStart&&(o+=t.parentVoiceEntry.parentStaffEntry.staffEntryParent.PositionAndShape.RelativePosition.x);const e=t.parentVoiceEntry;a=this.placement===r.PlacementEnum.Above?e.PositionAndShape.RelativePosition.y+e.PositionAndShape.BorderTop:e.PositionAndShape.RelativePosition.y+e.PositionAndShape.BorderBottom,e.parentVoiceEntry.StemDirection===l.StemDirectionType.Down&&this.placement===r.PlacementEnum.Below&&(o-=.5),e.parentVoiceEntry.StemDirection===l.StemDirectionType.Up&&this.placement===r.PlacementEnum.Above&&(o+=.5)}else o=n.Measures[0].beginInstructionsWidth;if(e){c=e.PositionAndShape.RelativePosition.x+e.parentVoiceEntry.parentStaffEntry.PositionAndShape.RelativePosition.x+e.parentVoiceEntry.parentStaffEntry.parentMeasure.PositionAndShape.RelativePosition.x,this.graceEnd&&(c+=e.parentVoiceEntry.parentStaffEntry.staffEntryParent.PositionAndShape.RelativePosition.x);const t=e.parentVoiceEntry;u=this.placement===r.PlacementEnum.Above?t.PositionAndShape.RelativePosition.y+t.PositionAndShape.BorderTop:t.PositionAndShape.RelativePosition.y+t.PositionAndShape.BorderBottom,t.parentVoiceEntry.StemDirection===l.StemDirectionType.Down&&this.placement===r.PlacementEnum.Below&&(c-=.5),t.parentVoiceEntry.StemDirection===l.StemDirectionType.Up&&this.placement===r.PlacementEnum.Above&&(c+=.5)}else c=n.PositionAndShape.Size.width;return t||e||(a=0,u=0),t||(a=u),e||(u=a),this.slur.startNoteHasMoreStartingSlurs()&&this.slur.isSlurLonger()&&(this.placement===r.PlacementEnum.Above?a-=i.SlursStartingAtSameStaffEntryYOffset:a+=i.SlursStartingAtSameStaffEntryYOffset),this.slur.endNoteHasMoreEndingSlurs()&&this.slur.isSlurLonger()&&(this.placement===r.PlacementEnum.Above?u-=i.SlursStartingAtSameStaffEntryYOffset:u+=i.SlursStartingAtSameStaffEntryYOffset),this.placement===r.PlacementEnum.Above?(a=Math.min(a,1.5),u=Math.min(u,1.5)):(a=Math.max(a,n.StaffHeight-1.5),u=Math.max(u,n.StaffHeight-1.5)),{startX:o,startY:a,endX:c,endY:u}}calculatePlacement(t,e){for(let o=0,c=this.staffEntries.length;o<c;++o)if(this.staffEntries[o].parentMeasure.hasMultipleVoices())return void(this.slur.StartNote.ParentVoiceEntry.ParentVoice instanceof a.LinkedVoice||this.slur.EndNote.ParentVoiceEntry.ParentVoice instanceof a.LinkedVoice?this.placement=r.PlacementEnum.Below:this.placement=r.PlacementEnum.Above);for(let o=0,a=this.staffEntries.length;o<a;++o)if(this.staffEntries[o].LyricsEntries.length>0)return void(this.placement=r.PlacementEnum.Above);const n=this.staffEntries[0],i=this.staffEntries[this.staffEntries.length-1],s=n.graphicalVoiceEntries[0].parentVoiceEntry.StemDirection;if(s===i.graphicalVoiceEntries[0].parentVoiceEntry.StemDirection)this.placement=s===l.StemDirectionType.Up?r.PlacementEnum.Below:r.PlacementEnum.Above;else{let s=n.PositionAndShape.BorderLeft+n.PositionAndShape.RelativePosition.x+n.parentMeasure.PositionAndShape.RelativePosition.x,o=i.PositionAndShape.BorderRight+i.PositionAndShape.RelativePosition.x+i.parentMeasure.PositionAndShape.RelativePosition.x;this.graceStart&&(s+=i.PositionAndShape.RelativePosition.x),this.graceEnd&&(o+=i.staffEntryParent.PositionAndShape.RelativePosition.x);const a=-1*t.getSkyLineMinInRange(s,o),c=t.getBottomLineMaxInRange(s,o)-e.StaffHeight;this.placement=c>a?r.PlacementEnum.Above:r.PlacementEnum.Below}}calculateTopPoints(t,e,n,s){const r=[];let o=s.getRightIndexForPointX(t.x,n.SkyLine.length),a=s.getLeftIndexForPointX(e.x,n.SkyLine.length);o<0&&(o=0),a>=n.SkyLine.length&&(a=n.SkyLine.length-1);for(let c=o;c<a;c++){const t=n.SkyLine[c];if(0!==t){const e=new i.PointF2D((.5+c)/s.SamplingUnit,t);r.push(e)}}return r}calculateBottomPoints(t,e,n,s){const r=[];let o=s.getRightIndexForPointX(t.x,n.BottomLine.length),a=s.getLeftIndexForPointX(e.x,n.BottomLine.length);o<0&&(o=0),a>=n.BottomLine.length&&(a=n.BottomLine.length-1);for(let c=o;c<a;c++){const t=n.BottomLine[c];if(0!==t){const e=new i.PointF2D((.5+c)/s.SamplingUnit,t);r.push(e)}}return r}calculateMaxLeftSlope(t,e,n){let i=-Number.MAX_VALUE;const s=e.x,r=e.y;for(let o=0;o<t.length;o++)Math.abs(t[o].y-Number.MAX_VALUE)<1e-4||Math.abs(t[o].y- -Number.MAX_VALUE)<1e-4||(i=Math.max(i,(t[o].y-r)/(t[o].x-s)));return i=Math.max(i,Math.abs(n.y-r)/(n.x-s)),i=Math.min(i,5.6713),i}calculateMaxRightSlope(t,e,n){let i=Number.MAX_VALUE;const s=n.x,r=n.y;for(let o=0;o<t.length;o++)Math.abs(t[o].y-Number.MAX_VALUE)<1e-4||Math.abs(t[o].y- -Number.MAX_VALUE)<1e-4||(i=Math.min(i,(r-t[o].y)/(s-t[o].x)));return i=Math.min(i,(r-e.y)/(s-e.x)),i=Math.max(i,-5.6713),i}getPointListMaxY(t){let e=-Number.MAX_VALUE;for(let n=0,i=t.length;n<i;++n){const i=t[n];Math.abs(i.y- -Number.MAX_VALUE)<1e-4||Math.abs(i.y-Number.MAX_VALUE)<1e-4||(e=Math.max(e,i.y))}return e}calculateTranslatedAndRotatedPointListAbove(t,e,n,s){const r=[];for(let o=0;o<t.length;o++){if(Math.abs(t[o].y-Number.MAX_VALUE)<1e-4||Math.abs(t[o].y- -Number.MAX_VALUE)<1e-4)continue;let a=new i.PointF2D(t[o].x-e,-(t[o].y-n));a=s.vectorMultiplication(a),r.push(a)}return r}calculateTranslatedAndRotatedPointListBelow(t,e,n,s){const r=[];for(let o=0;o<t.length;o++){if(Math.abs(t[o].y-Number.MAX_VALUE)<1e-4||Math.abs(t[o].y- -Number.MAX_VALUE)<1e-4)continue;let a=new i.PointF2D(t[o].x-e,t[o].y-n);a=s.vectorMultiplication(a),r.push(a)}return r}calculateHeightWidthRatio(t,e){return 0===e.length?0:Math.max(0,this.getPointListMaxY(e))/t}calculateControlPoints(t,e,n,s,r){const o=Math.min(.5,Math.max(.1,e/80*1.7*Math.pow(Math.max(r,.05),.4))),a=Math.min(.5,Math.max(.1,-n/80*1.7*Math.pow(Math.max(r,.05),.4))),c=new i.PointF2D;c.x=t*o*Math.cos(e*u.degreesToRadiansFactor),c.y=t*o*Math.sin(e*u.degreesToRadiansFactor);const l=new i.PointF2D;return l.x=t-t*a*Math.cos(n*u.degreesToRadiansFactor),l.y=-t*a*Math.sin(n*u.degreesToRadiansFactor),{startControlPoint:c,endControlPoint:l}}calculateAngles(t,e,n,i){let s=Math.atan(e)/u.degreesToRadiansFactor;e>0?s+=20:s-=20;let r=Math.atan(n)/u.degreesToRadiansFactor;return n<0?r-=20:r+=20,{startAngle:Math.min(Math.max(t,s),i),endAngle:Math.max(Math.min(-t,r),-i)}}}e.GraphicalSlur=u,u.degreesToRadiansFactor=Math.PI/180},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GraphicalCurve=void 0;const i=n(5);class s{constructor(){s.tPow3=new Array(s.bezierCurveStepSize),s.oneMinusTPow3=new Array(s.bezierCurveStepSize),s.bezierFactorOne=new Array(s.bezierCurveStepSize),s.bezierFactorTwo=new Array(s.bezierCurveStepSize);for(let t=0;t<s.bezierCurveStepSize;t++){const e=t/s.bezierCurveStepSize;s.tPow3[t]=Math.pow(e,3),s.oneMinusTPow3[t]=Math.pow(1-e,3),s.bezierFactorOne[t]=3*Math.pow(1-e,2)*e,s.bezierFactorTwo[t]=3*(1-e)*Math.pow(e,2)}}calculateCurvePointAtIndex(t){const e=Math.round(t*s.bezierCurveStepSize);return e<0||e>=s.bezierCurveStepSize?new i.PointF2D:new i.PointF2D(s.oneMinusTPow3[e]*this.bezierStartPt.x+s.bezierFactorOne[e]*this.bezierStartControlPt.x+s.bezierFactorTwo[e]*this.bezierEndControlPt.x+s.tPow3[e]*this.bezierEndPt.x,s.oneMinusTPow3[e]*this.bezierStartPt.y+s.bezierFactorOne[e]*this.bezierStartControlPt.y+s.bezierFactorTwo[e]*this.bezierEndControlPt.y+s.tPow3[e]*this.bezierEndPt.y)}}e.GraphicalCurve=s,s.bezierCurveStepSize=1e3},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.MusicSheetReader=void 0;const s=n(124),r=n(87),o=n(0),a=n(127),c=n(60),l=n(21),u=n(11),h=i(n(1)),d=n(17),f=n(17),p=n(31),m=n(61),g=n(137),b=n(7),v=n(13),y=n(138),S=n(26);class x{constructor(t,e=new S.EngravingRules){this.completeNumberOfStaves=0,this.afterSheetReadingModules=t||[],this.repetitionInstructionReader=y.MusicSymbolModuleFactory.createRepetitionInstructionReader(),this.repetitionCalculator=y.MusicSymbolModuleFactory.createRepetitionCalculator(),this.rules=e}get CompleteNumberOfStaves(){return this.completeNumberOfStaves}static doCalculationsAfterDurationHasBeenSet(t){for(const e of t)e.doCalculationsAfterDurationHasBeenSet()}createMusicSheet(t,e){try{return this._createMusicSheet(t,e)}catch(t){return void h.default.error("MusicSheetReader.CreateMusicSheet",t)}}_removeFromArray(t,e){const n=t.indexOf(e);-1!==n&&t.splice(n,1)}trimString(t){return t.replace(/^\s+|\s+$/g,"")}_lastElement(t){return t[t.length-1]}_createMusicSheet(t,e){const n=[];let i=0;if(this.musicSheet=new s.MusicSheet,this.musicSheet.Path=e,this.musicSheet.Rules=this.rules,!t)throw new u.MusicSheetReadingException("Undefined root element");this.pushSheetLabels(t,e);const a=t.element("part-list");if(!a)throw new u.MusicSheetReadingException("Undefined partListNode");const c=t.elements("part"),h=a.elements();this.initializeReading(h,c,n);let d=!0;this.currentFraction=new o.Fraction(0,1);let f=!1,p=t.element("identification");for(p&&(p=p.element("encoding")),p&&(p=p.element("software")),void 0!==p&&"Guitar Pro 5"===p.value&&(f=!0);d;){void 0!==this.currentMeasure&&this.currentMeasure.HasEndLine&&this.rules.NewPartAndSystemAfterFinalBarline&&(i=0),this.currentMeasure=new r.SourceMeasure(this.completeNumberOfStaves,this.musicSheet.Rules);for(const e of n)try{d=d&&e.readNextXmlMeasure(this.currentMeasure,this.currentFraction,f)}catch(t){const e=l.ITextTranslation.translateText("ReaderErrorMessages/InstrumentError","Error while reading instruments.");throw new u.MusicSheetReadingException(e,t)}d&&(this.musicSheet.addMeasure(this.currentMeasure),this.checkIfRhythmInstructionsAreSetAndEqual(n),this.checkSourceMeasureForNullEntries(),i=this.setSourceMeasureDuration(n,i),x.doCalculationsAfterDurationHasBeenSet(n),this.currentMeasure.AbsoluteTimestamp=this.currentFraction.clone(),this.musicSheet.SheetErrors.finalizeMeasure(this.currentMeasure.MeasureNumber),this.currentFraction.Add(this.currentMeasure.Duration),this.previousMeasure=this.currentMeasure)}this.repetitionInstructionReader&&(this.repetitionInstructionReader.removeRedundantInstructions(),this.repetitionCalculator&&this.repetitionCalculator.calculateRepetitions(this.musicSheet,this.repetitionInstructionReader.repetitionInstructions)),this.musicSheet.checkForInstrumentWithNoVoice(),this.musicSheet.fillStaffList();for(let s=0,r=this.afterSheetReadingModules.length;s<r;++s)this.afterSheetReadingModules[s].calculate(this.musicSheet);return this.musicSheet.DefaultStartTempoInBpm=this.musicSheet.SourceMeasures[0].TempoInBPM,this.musicSheet.userStartTempoInBPM=this.musicSheet.userStartTempoInBPM||this.musicSheet.DefaultStartTempoInBpm,this.musicSheet}initializeReading(t,e,n){const i=this.createInstrumentGroups(t);this.completeNumberOfStaves=this.getCompleteNumberOfStavesFromXml(e),0!==e.length&&(this.repetitionInstructionReader.MusicSheet=this.musicSheet,this.currentFraction=new o.Fraction(0,1),this.currentMeasure=void 0,this.previousMeasure=void 0);let s=0;for(const r of e){const e=r.attribute("id");if(e){const o=i[e.value],c=r.elements("measure");let u=1;try{u=this.getInstrumentNumberOfStavesFromXml(r)}catch(t){const e=l.ITextTranslation.translateText("ReaderErrorMessages/InstrumentStavesNumberError","Invalid number of staves at instrument: ");this.musicSheet.SheetErrors.push(e+o.Name);continue}o.createStaves(u),n.push(new a.InstrumentReader(this.repetitionInstructionReader,c,o)),this.repetitionInstructionReader&&(this.repetitionInstructionReader.xmlMeasureList[s]=c),s++}}}checkIfRhythmInstructionsAreSetAndEqual(t){const e=[];for(let s=0;s<this.completeNumberOfStaves;s++)if(this.currentMeasure.FirstInstructionsStaffEntries[s]){const t=this.currentMeasure.FirstInstructionsStaffEntries[s].Instructions[this.currentMeasure.FirstInstructionsStaffEntries[s].Instructions.length-1];t instanceof d.RhythmInstruction&&e.push(t)}let n=0,i=-1;for(let s=0,r=e.length;s<r;++s){const t=e[s];if(t.Rhythm.RealValue>n){if(this.areRhythmInstructionsMixed(e)&&t.SymbolEnum!==f.RhythmSymbolEnum.NONE)continue;n=t.Rhythm.RealValue,i=e.indexOf(t)}}if(e.length>0&&e.length<this.completeNumberOfStaves){const n=e[i].clone();for(let t=0;t<this.completeNumberOfStaves;t++)void 0===this.currentMeasure.FirstInstructionsStaffEntries[t]||this._lastElement(this.currentMeasure.FirstInstructionsStaffEntries[t].Instructions)instanceof d.RhythmInstruction||(this.currentMeasure.FirstInstructionsStaffEntries[t].removeAllInstructionsOfTypeRhythmInstruction(),this.currentMeasure.FirstInstructionsStaffEntries[t].Instructions.push(n.clone())),this.currentMeasure.FirstInstructionsStaffEntries[t]||(this.currentMeasure.FirstInstructionsStaffEntries[t]=new p.SourceStaffEntry(void 0,void 0),this.currentMeasure.FirstInstructionsStaffEntries[t].Instructions.push(n.clone()));for(let e=0,i=t.length;e<i;++e)t[e].ActiveRhythm=n}if(0===e.length&&this.currentMeasure===this.musicSheet.SourceMeasures[0]){const e=new d.RhythmInstruction(new o.Fraction(4,4,0,!1),f.RhythmSymbolEnum.NONE);for(let t=0;t<this.completeNumberOfStaves;t++)this.currentMeasure.FirstInstructionsStaffEntries[t]?this.currentMeasure.FirstInstructionsStaffEntries[t].removeAllInstructionsOfTypeRhythmInstruction():this.currentMeasure.FirstInstructionsStaffEntries[t]=new p.SourceStaffEntry(void 0,void 0),this.currentMeasure.FirstInstructionsStaffEntries[t].Instructions.push(e);for(let n=0,i=t.length;n<i;++n)t[n].ActiveRhythm=e}for(let s=0,r=e.length;s<r;++s){const t=e[s];if(t.Rhythm.RealValue<n&&this._lastElement(this.currentMeasure.FirstInstructionsStaffEntries[e.indexOf(t)].Instructions)instanceof d.RhythmInstruction){const n=this.currentMeasure.FirstInstructionsStaffEntries[e.indexOf(t)].Instructions;n[n.length-1]=e[i].clone()}Math.abs(t.Rhythm.RealValue-n)<1e-6&&t.SymbolEnum!==f.RhythmSymbolEnum.NONE&&this.areRhythmInstructionsMixed(e)&&(t.SymbolEnum=f.RhythmSymbolEnum.NONE)}}areRhythmInstructionsMixed(t){for(let e=1;e<t.length;e++)if(Math.abs(t[e].Rhythm.RealValue-t[0].Rhythm.RealValue)<1e-6&&t[e].SymbolEnum!==t[0].SymbolEnum)return!0;return!1}setSourceMeasureDuration(t,e){let n=new o.Fraction(0,1);const i=[];for(const a of t){i.push(a.MaxTieNoteFraction);const t=a.ActiveRhythm.Rhythm;n.lt(t)&&(n=new o.Fraction(t.Numerator,t.Denominator,0,!1))}const s=this.currentMeasure.calculateInstrumentsDuration(this.musicSheet,i);let r=new o.Fraction(0,1);for(const o of s)r.lt(o)&&(r=o);o.Fraction.Equal(r,n)?this.checkFractionsForEquivalence(r,n):r.lt(n)&&(r=this.currentMeasure.reverseCheck(this.musicSheet,r),this.checkFractionsForEquivalence(r,n)),this.currentMeasure.ImplicitMeasure=this.checkIfMeasureIsImplicit(r,n),this.currentMeasure.ImplicitMeasure||e++,this.currentMeasure.Duration=r,this.currentMeasure.ActiveTimeSignature=n,this.currentMeasure.MeasureNumber=e;for(let a=0;a<s.length;a++){const t=s[a];if(this.currentMeasure.ImplicitMeasure&&t!==r||!o.Fraction.Equal(t,n)&&!this.allInstrumentsHaveSameDuration(s,r)){const t=this.musicSheet.getGlobalStaffIndexOfFirstStaff(this.musicSheet.Instruments[a]);for(let e=0;e<this.musicSheet.Instruments[a].Staves.length;e++)if(!this.graphicalMeasureIsEmpty(t+e)){this.currentMeasure.setErrorInGraphicalMeasure(t+e,!0);const n=l.ITextTranslation.translateText("ReaderErrorMessages/MissingNotesError","Given Notes don't correspond to measure duration.");this.musicSheet.SheetErrors.pushMeasureError(n)}}}return e}checkFractionsForEquivalence(t,e){if(e.Denominator>t.Denominator){const n=e.Denominator/t.Denominator;t.expand(n)}}checkIfMeasureIsImplicit(t,e){return!(this.previousMeasure||!t.lt(e))||!!this.previousMeasure&&o.Fraction.plus(this.previousMeasure.Duration,t).Equals(e)}allInstrumentsHaveSameDuration(t,e){let n=0;for(let i=0,s=t.length;i<s;++i)t[i].Equals(e)&&n++;return n===t.length&&e!==new o.Fraction(0,1)}graphicalMeasureIsEmpty(t){let e=0;for(let n=0;n<this.currentMeasure.VerticalSourceStaffEntryContainers.length;n++)this.currentMeasure.VerticalSourceStaffEntryContainers[n].StaffEntries[t]||e++;return e===this.currentMeasure.VerticalSourceStaffEntryContainers.length}checkSourceMeasureForNullEntries(){for(let t=this.currentMeasure.VerticalSourceStaffEntryContainers.length-1;t>=0;t--)for(let e=this.currentMeasure.VerticalSourceStaffEntryContainers[t].StaffEntries.length-1;e>=0;e--){const n=this.currentMeasure.VerticalSourceStaffEntryContainers[t].StaffEntries[e];if(n)for(let t=n.VoiceEntries.length-1;t>=0;t--){const e=n.VoiceEntries[t];0===e.Notes.length&&(this._removeFromArray(e.ParentVoice.VoiceEntries,e),this._removeFromArray(n.VoiceEntries,e))}void 0!==n&&0===n.VoiceEntries.length&&(this.currentMeasure.VerticalSourceStaffEntryContainers[t].StaffEntries[e]=void 0)}for(let t=this.currentMeasure.VerticalSourceStaffEntryContainers.length-1;t>=0;t--){let e=0;for(let n=0,i=this.currentMeasure.VerticalSourceStaffEntryContainers[t].StaffEntries.length;n<i;++n)this.currentMeasure.VerticalSourceStaffEntryContainers[t].StaffEntries[n]||e++;e===this.currentMeasure.VerticalSourceStaffEntryContainers[t].StaffEntries.length&&this._removeFromArray(this.currentMeasure.VerticalSourceStaffEntryContainers,this.currentMeasure.VerticalSourceStaffEntryContainers[t])}}pushSheetLabels(t,e){this.readComposer(t),this.readTitle(t);try{this.musicSheet.Title&&this.musicSheet.Composer||this.readTitleAndComposerFromCredits(t)}catch(t){h.default.info("MusicSheetReader.pushSheetLabels","readTitleAndComposerFromCredits",t)}try{if(!this.musicSheet.Title){const t=Math.max(0,e.lastIndexOf("/"),e.lastIndexOf("\\")),n=e.substr(t).split(".",1);this.musicSheet.Title=new v.Label(n[0])}}catch(t){h.default.info("MusicSheetReader.pushSheetLabels","read title from file name",t)}}presentAttrsWithValue(t,e){for(const n of t.attributes())if(n.value===e)return!0;return!1}readComposer(t){const e=t.element("identification");if(e){const t=e.elements("creator");for(let e=0,n=t.length;e<n;++e){const n=t[e];if(n.hasAttributes){if(this.presentAttrsWithValue(n,"composer")){this.musicSheet.Composer=new v.Label(this.trimString(n.value));continue}(this.presentAttrsWithValue(n,"lyricist")||this.presentAttrsWithValue(n,"poet"))&&(this.musicSheet.Lyricist=new v.Label(this.trimString(n.value)))}}}}readTitleAndComposerFromCredits(t){var e,n;const i=this.computeSystemYCoordinates(t);if(0===i)return;let s=1,r=void 0,o=0,a=void 0,c=void 0;const l=t.elements("credit");for(let u=0,h=l.length;u<h;++u){const t=l[u];if(!t.attribute("page"))return;if("1"===t.attribute("page").value){let l=void 0;if(t){if(l=t.element("credit-words"),!l.attribute("justify"))break;const u=null===(e=l.attribute("justify"))||void 0===e?void 0:e.value,h=null===(n=l.attribute("default-y"))||void 0===n?void 0:n.value,d=null!=h,f=d?parseFloat(h):Number.MIN_VALUE;if(d&&f>i){if(!this.musicSheet.Title){const t=l.attribute("font-size").value,e=parseFloat(t);s<e&&(s=e,r=l.value)}if(this.musicSheet.Subtitle||"right"!==u&&"left"!==u&&o<f&&(o=f,c?(a=c,c=l.value):c=l.value),void 0===this.musicSheet.Composer||!this.musicSheet.Lyricist)switch(u){case"right":this.musicSheet.Composer=new v.Label(this.trimString(l.value));break;case"left":this.musicSheet.Lyricist=new v.Label(this.trimString(l.value))}}}}}!this.musicSheet.Title&&r&&(this.musicSheet.Title=new v.Label(this.trimString(r))),!this.musicSheet.Subtitle&&a&&(this.musicSheet.Subtitle=new v.Label(this.trimString(a)))}computeSystemYCoordinates(t){if(!t.element("defaults"))return 0;let e=0,n=0;try{const n=t.element("defaults").element("page-layout").element("page-height").value;e=parseFloat(n)}catch(t){return h.default.info("MusicSheetReader.computeSystemYCoordinates(): couldn't find page height, not reading title/composer."),0}let i=!1;const s=t.elements("part");for(let r=0,o=s.length;r<o;++r){const t=s[r].elements("measure");for(let e=0,s=t.length;e<s;++e){const s=t[e];if(s.element("print")){const t=s.element("print").elements("system-layout");for(let e=0,s=t.length;e<s;++e){const s=t[e];if(s.element("top-system-distance")){const t=s.element("top-system-distance").value;n=parseFloat(t),i=!0;break}}break}}if(i)break}if(t.element("defaults").element("system-layout")&&t.element("defaults").element("system-layout").element("top-system-distance")){const e=t.element("defaults").element("system-layout").element("top-system-distance").value;n=parseFloat(e)}return 0===n?0:e-n}readTitle(t){const e=t.element("work");let n=void 0;e&&(n=e.element("work-title"),n&&n.value&&(this.musicSheet.Title=new v.Label(this.trimString(n.value))));const i=t.element("movement-title");let s="";if(i&&(this.musicSheet.Title?s=this.trimString(i.value):this.musicSheet.Title=new v.Label(this.trimString(i.value))),e){const t=e.element("work-number");if(t){const e=t.value;e&&(s=""===s?e:s+", "+e)}}s&&(this.musicSheet.Subtitle=new v.Label(s))}createInstrumentGroups(t){let e=0;const n={};let i;try{const s=t;for(let r=0,o=s.length;r<o;++r){const o=s[r];if("score-part"===o.name){const s=o.attribute("id").value,r=new c.Instrument(e,s,this.musicSheet,i);e++;const a=o.elements();for(let e=0,n=a.length;e<n;++e){const n=a[e];try{if("part-name"===n.name)r.Name=n.value,n.attribute("print-object")&&"no"===n.attribute("print-object").value&&(r.NameLabel.print=!1);else if("part-abbreviation"===n.name)r.PartAbbreviation=n.value;else if("score-instrument"===n.name){const t=new g.SubInstrument(r);t.idString=n.firstAttribute.value,r.SubInstruments.push(t);const e=n.element("instrument-name");e&&(t.name=e.value,t.setMidiInstrument(e.value))}else if("midi-instrument"===n.name){let e=r.getSubInstrument(n.firstAttribute.value);for(let t=0,s=r.SubInstruments.length;t<s;++t){const i=r.SubInstruments[t];if(i.idString===n.value){e=i;break}}const i=n.elements();for(let n=0,s=i.length;n<s;++n){const s=i[n];try{if("midi-channel"===s.name)10===parseInt(s.value,10)&&(r.MidiInstrumentId=b.MidiInstrument.Percussion);else if("midi-program"===s.name)r.SubInstruments.length>0&&r.MidiInstrumentId!==b.MidiInstrument.Percussion&&(e.midiInstrumentID=Math.max(0,parseInt(s.value,10)-1));else if("midi-unpitched"===s.name)e.fixedKey=Math.max(0,parseInt(s.value,10));else if("volume"===s.name)try{const t=parseFloat(s.value);e.volume=t/127}catch(t){h.default.debug("ExpressionReader.readExpressionParameters","read volume",t)}else if("pan"===s.name)try{const t=parseFloat(s.value);e.pan=t/64}catch(t){h.default.debug("ExpressionReader.readExpressionParameters","read pan",t)}}catch(t){h.default.info("MusicSheetReader.createInstrumentGroups midi settings: ",t)}}}}catch(t){h.default.info("MusicSheetReader.createInstrumentGroups: ",t)}}if(0===r.SubInstruments.length){const t=new g.SubInstrument(r);r.SubInstruments.push(t)}n[s]=r,i?(i.InstrumentalGroups.push(r),this.musicSheet.Instruments.push(r)):(this.musicSheet.InstrumentalGroups.push(r),this.musicSheet.Instruments.push(r))}else if("part-group"===o.name&&"start"===o.attribute("type").value){const t=new m.InstrumentalGroup("group",this.musicSheet,i);i?i.InstrumentalGroups.push(t):this.musicSheet.InstrumentalGroups.push(t),i=t}else if("part-group"===o.name&&"stop"===o.attribute("type").value&&i){if(1===i.InstrumentalGroups.length){const t=i.InstrumentalGroups[0];i.Parent?(i.Parent.InstrumentalGroups.push(t),this._removeFromArray(i.Parent.InstrumentalGroups,i)):(this.musicSheet.InstrumentalGroups.push(t),this._removeFromArray(this.musicSheet.InstrumentalGroups,i))}i=i.Parent}}}catch(t){const e=l.ITextTranslation.translateText("ReaderErrorMessages/InstrumentError","Error while reading Instruments");throw new u.MusicSheetReadingException(e,t)}for(let s=0,r=this.musicSheet.Instruments.length;s<r;++s){const t=this.musicSheet.Instruments[s];t.Name||(t.Name="Instr. "+t.IdString)}return n}getCompleteNumberOfStavesFromXml(t){let e=0;for(const n of t){const t=n.elements("measure");if(t.length>0){const n=t[0];if(n){let t=n.element("attributes");t&&(t=t.element("staves")),t?e+=parseInt(t.value,10):e++}}}if(isNaN(e)||e<=0){const t=l.ITextTranslation.translateText("ReaderErrorMessages/StaffError","Invalid number of staves.");throw new u.MusicSheetReadingException(t)}return e}getInstrumentNumberOfStavesFromXml(t){let e=0;const n=t.element("measure");if(n){const t=n.element("attributes");let i=void 0;t&&(i=t.element("staves")),e=t&&i?parseInt(i.value,10):1}if(isNaN(e)||e<=0){const t=l.ITextTranslation.translateText("ReaderErrorMessages/StaffError","Invalid number of Staves.");throw new u.MusicSheetReadingException(t)}return e}}e.MusicSheetReader=x},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.MusicSheet=e.PlaybackSettings=void 0;const s=n(0),r=n(158),o=n(125),a=n(47),c=n(161),l=n(26),u=n(22),h=i(n(1));class d{}e.PlaybackSettings=d;class f{constructor(){this.idString="random idString, not initialized",this.sourceMeasures=[],this.repetitions=[],this.dynListStaves=[],this.timestampSortedDynamicExpressionsList=[],this.timestampSortedTempoExpressionsList=[],this.instrumentalGroups=[],this.instruments=[],this.musicPartManager=void 0,this.musicSheetErrors=new c.MusicSheetErrors,this.staves=[],this.transpose=0,this.defaultStartTempoInBpm=0,this.drawErroneousMeasures=!1,this.hasBeenOpenedForTheFirstTime=!1,this.currentEnrolledPosition=new s.Fraction(0,1),this.playbackSettings=new d,this.playbackSettings.rhythm=new s.Fraction(4,4,0,!1),this.userStartTempoInBPM=100,this.pageWidth=120,this.MusicPartManager=new r.MusicPartManager(this),this.hasBPMInfo=!1}static getIndexFromStaff(t){return t.idInMusicSheet}get SourceMeasures(){return this.sourceMeasures}set SourceMeasures(t){this.sourceMeasures=t}get Repetitions(){return this.repetitions}set Repetitions(t){this.repetitions=t}get DynListStaves(){return this.dynListStaves}get TimestampSortedTempoExpressionsList(){return this.timestampSortedTempoExpressionsList}get TimestampSortedDynamicExpressionsList(){return this.timestampSortedDynamicExpressionsList}get InstrumentalGroups(){return this.instrumentalGroups}get Parts(){return this.instruments}get Instruments(){return this.instruments}get SheetPlaybackSetting(){return this.playbackSettings}set SheetPlaybackSetting(t){this.playbackSettings=t}get DrawErroneousMeasures(){return this.drawErroneousMeasures}set DrawErroneousMeasures(t){this.drawErroneousMeasures=t}get HasBeenOpenedForTheFirstTime(){return this.hasBeenOpenedForTheFirstTime}set HasBeenOpenedForTheFirstTime(t){this.hasBeenOpenedForTheFirstTime=t}InitializeStartTempoInBPM(t){this.userStartTempoInBPM=t}get DefaultStartTempoInBpm(){return this.defaultStartTempoInBpm}set DefaultStartTempoInBpm(t){this.defaultStartTempoInBpm=t,this.InitializeStartTempoInBPM(t)}get Path(){return this.path}set Path(t){this.path=t}get Staves(){return this.staves}get TitleString(){return this.title?this.title.text:""}get SubtitleString(){return this.subtitle?this.subtitle.text:""}get ComposerString(){return this.composer?this.composer.text:""}get LyricistString(){return this.lyricist?this.lyricist.text:""}get Title(){return this.title}set Title(t){this.title=t}get Subtitle(){return this.subtitle}set Subtitle(t){this.subtitle=t}get Composer(){return this.composer}set Composer(t){this.composer=t}get Lyricist(){return this.lyricist}set Lyricist(t){this.lyricist=t}get Rules(){return this.rules||(h.default.debug("warning: sheet.Rules was undefined. Creating new EngravingRules."),this.rules=new l.EngravingRules),this.rules}set Rules(t){this.rules=t}get SheetErrors(){return this.musicSheetErrors}get SelectionStart(){return this.selectionStart}set SelectionStart(t){this.selectionStart=t.clone(),this.currentEnrolledPosition=t.clone()}get SelectionEnd(){return this.selectionEnd}set SelectionEnd(t){this.selectionEnd=t}set HasBPMInfo(t){this.hasBPMInfo=t}get HasBPMInfo(){return this.hasBPMInfo}addMeasure(t){this.sourceMeasures.push(t),t.measureListIndex=this.sourceMeasures.length-1}checkForInstrumentWithNoVoice(){for(let t=0,e=this.instruments.length;t<e;++t){const e=this.instruments[t];if(0===e.Voices.length){const t=new a.Voice(e,1);e.Voices.push(t)}}}getStaffFromIndex(t){return this.staves[t]}fillStaffList(){let t=0;for(let e=0,n=this.instruments.length;e<n;++e){const n=this.instruments[e];for(let e=0,i=n.Staves.length;e<i;++e){const i=n.Staves[e];i.idInMusicSheet=t,this.staves.push(i),t++}}}get MusicPartManager(){return this.musicPartManager}set MusicPartManager(t){this.musicPartManager=t}getCompleteNumberOfStaves(){let t=0;for(let e=0,n=this.instruments.length;e<n;++e)t+=this.instruments[e].Staves.length;return t}getListOfMeasuresFromIndeces(t,e){const n=[];for(let i=t;i<=e;i++)n.push(this.sourceMeasures[i]);return n}getNextSourceMeasure(t){const e=this.sourceMeasures.indexOf(t);return e===this.sourceMeasures.length-1?t:this.sourceMeasures[e+1]}getFirstSourceMeasure(){return this.sourceMeasures[0]}getLastSourceMeasure(){return this.sourceMeasures[this.sourceMeasures.length-1]}resetAllNoteStates(){const t=this.MusicPartManager.getIterator();for(;!t.EndReached&&t.CurrentVoiceEntries;){for(let e=0,n=t.CurrentVoiceEntries.length;e<n;++e){const n=t.CurrentVoiceEntries[e];for(let t=0,e=n.Notes.length;t<e;++t)n.Notes[t].state=u.NoteState.Normal}t.moveToNext()}}getMusicSheetInstrumentIndex(t){return this.Instruments.indexOf(t)}getGlobalStaffIndexOfFirstStaff(t){const e=this.getMusicSheetInstrumentIndex(t);let n=0;for(let i=0;i<e;i++)n+=this.Instruments[i].Staves.length;return n}setRepetitionNewUserNumberOfRepetitions(t,e){let n=0;for(let i=0;i<this.repetitions.length;i++)if(this.repetitions[i]instanceof o.Repetition){if(t===n){this.repetitions[i].UserNumberOfRepetitions=e;break}n++}}getRepetitionByIndex(t){let e=0;for(let n=0;n<this.repetitions.length;n++)if(this.repetitions[n]instanceof o.Repetition){if(t===e)return this.repetitions[n];e++}}CompareTo(t){return this.Title.text.localeCompare(t.Title.text)}get Errors(){return this.musicSheetErrors.measureErrors}get FirstMeasureNumber(){try{return this.getFirstSourceMeasure().MeasureNumber}catch(t){return h.default.info("MusicSheet.FirstMeasureNumber: ",t),0}}get LastMeasureNumber(){try{return this.getLastSourceMeasure().MeasureNumber}catch(t){return h.default.info("MusicSheet.LastMeasureNumber: ",t),0}}get CurrentEnrolledPosition(){return this.currentEnrolledPosition.clone()}set CurrentEnrolledPosition(t){this.currentEnrolledPosition=t.clone()}get Transpose(){return this.transpose}set Transpose(t){this.transpose=t}get FullNameString(){return this.ComposerString+" "+this.TitleString}get IdString(){return this.idString}set IdString(t){this.idString=t}getEnrolledSelectionStartTimeStampWorkaround(){const t=this.MusicPartManager.getIterator(this.SelectionStart);return s.Fraction.createFromFraction(t.CurrentEnrolledTimestamp)}get SheetEndTimestamp(){const t=this.getLastSourceMeasure();return s.Fraction.plus(t.AbsoluteTimestamp,t.Duration)}getSourceMeasureFromTimeStamp(t){for(let e=0,n=this.sourceMeasures.length;e<n;++e){const n=this.sourceMeasures[e];for(let e=0,i=n.VerticalSourceStaffEntryContainers.length;e<i;++e){const i=n.VerticalSourceStaffEntryContainers[e];if(t.Equals(i.getAbsoluteTimestamp()))return n}}return this.findSourceMeasureFromTimeStamp(t)}findSourceMeasureFromTimeStamp(t){for(const e of this.sourceMeasures)if(e.AbsoluteTimestamp.lte(t)&&t.lt(s.Fraction.plus(e.AbsoluteTimestamp,e.Duration)))return e}getVisibleInstruments(){const t=[];for(let e=0,n=this.Instruments.length;e<n;++e){const n=this.Instruments[e];n.Voices.length>0&&n.Voices[0].Visible&&t.push(n)}return t}}e.MusicSheet=f,f.defaultTitle="[no title given]"},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.RepetitionEndingPart=e.Repetition=void 0;const s=n(126),r=n(0),o=n(74),a=i(n(1));class c extends o.PartListEntry{constructor(t,e){super(t),this.backwardJumpInstructions=[],this.endingParts=[],this.endingIndexDict={},this.userNumberOfRepetitions=0,this.visibles=[],this.fromWords=!1,this.repetitonIterationOrder=[],this.numberOfEndings=1,this.musicSheet2=t,this.virtualOverallRepetition=e}get BackwardJumpInstructions(){return this.backwardJumpInstructions}get EndingIndexDict(){return this.endingIndexDict}get EndingParts(){return this.endingParts}get Visibles(){return this.visibles}set Visibles(t){this.visibles=t}get DefaultNumberOfRepetitions(){let t=2;return this.virtualOverallRepetition&&(t=1),Math.max(t,Object.keys(this.endingIndexDict).length,this.checkRepetitionForMultipleLyricVerses())}get UserNumberOfRepetitions(){return this.userNumberOfRepetitions}set UserNumberOfRepetitions(t){this.userNumberOfRepetitions=t,this.repetitonIterationOrder=[];const e=this.userNumberOfRepetitions-this.NumberOfEndings;for(let n=1;n<=this.userNumberOfRepetitions;n++)n<=e?this.repetitonIterationOrder.push(1):this.repetitonIterationOrder.push(n-e)}getForwardJumpTargetForIteration(t){const e=this.repetitonIterationOrder[t-1];return this.endingIndexDict[e]?this.endingIndexDict[e].part.StartIndex:-1}getBackwardJumpTarget(){return this.startMarker.measureIndex}SetEndingStartIndex(t,e){const n=new l(new s.SourceMusicPart(this.musicSheet2,e,e));this.endingParts.push(n);for(const i of t)try{this.endingIndexDict[i]=n,n.endingIndices.push(i),this.numberOfEndings<i&&(this.numberOfEndings=i)}catch(t){a.default.error("Repetition: Exception.",t)}}setEndingEndIndex(t,e){this.endingIndexDict[t]&&this.endingIndexDict[t].part.setEndIndex(e)}get NumberOfEndings(){return this.numberOfEndings}get FromWords(){return this.fromWords}set FromWords(t){this.fromWords=t}get AbsoluteTimestamp(){return r.Fraction.createFromFraction(this.musicSheet2.SourceMeasures[this.startMarker.measureIndex].AbsoluteTimestamp)}get StartIndex(){return this.startMarker.measureIndex}get EndIndex(){if(0===this.BackwardJumpInstructions.length)return this.StartIndex;let t=this.backwardJumpInstructions[this.backwardJumpInstructions.length-1].measureIndex;return this.endingIndexDict[this.NumberOfEndings]&&(t=Math.max(this.endingIndexDict[this.NumberOfEndings].part.EndIndex,t)),t}checkRepetitionForMultipleLyricVerses(){let t=0;const e=this.StartIndex,n=this.EndIndex;for(let i=e;i<=n;i++){const e=this.musicSheet2.SourceMeasures[i];for(let n=0;n<e.CompleteNumberOfStaves;n++)for(const i of e.VerticalSourceStaffEntryContainers[n].StaffEntries)if(i){let e=0;for(const t of i.VoiceEntries)e+=Object.keys(t.LyricsEntries).length;t=Math.max(t,e)}}return t}get FirstSourceMeasureNumber(){return this.getFirstSourceMeasure().MeasureNumber}get LastSourceMeasureNumber(){return this.getLastSourceMeasure().MeasureNumber}}e.Repetition=c;class l{constructor(t){this.endingIndices=[],this.part=t}ToString(){return this.endingIndices.join(", ")}}e.RepetitionEndingPart=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SourceMusicPart=void 0;const i=n(74),s=n(0);class r extends i.PartListEntry{constructor(t,e,n){super(t),this.musicSheet=t,this.startIndex=e,this.endIndex=n}get MeasuresCount(){return this.endIndex-this.startIndex+1}get StartIndex(){return this.startIndex}get EndIndex(){return this.endIndex}get ParentRepetition(){return this.parentRepetition}set ParentRepetition(t){this.parentRepetition=t}get AbsoluteTimestamp(){return s.Fraction.createFromFraction(this.musicSheet.SourceMeasures[this.startIndex].AbsoluteTimestamp)}setStartIndex(t){this.startIndex=t}setEndIndex(t){this.endIndex=t}}e.SourceMusicPart=r},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.InstrumentReader=void 0;const s=n(128),r=n(31),o=n(7),a=n(16),c=n(17),l=n(0),u=n(21),h=n(11),d=n(7),f=n(17),p=n(16),m=i(n(1)),g=n(7),b=n(134),v=n(135),y=n(136),S=n(12),x=n(37),_=n(23);e.InstrumentReader=class{constructor(t,e,n){this.voiceGeneratorsDict={},this.staffMainVoiceGeneratorDict={},this.divisions=0,this.currentClefNumber=1,this.currentXmlMeasureIndex=0,this.activeKeyHasBeenInitialized=!1,this.abstractInstructions=[],this.openChordSymbolContainers=[],this.repetitionInstructionReader=t,this.xmlMeasureList=e,this.musicSheet=n.GetMusicSheet,this.instrument=n,this.activeClefs=new Array(n.Staves.length),this.activeClefsHaveBeenInitialized=new Array(n.Staves.length);for(let i=0;i<n.Staves.length;i++)this.activeClefsHaveBeenInitialized[i]=!1;this.createExpressionGenerators(n.Staves.length),this.slurReader=new y.SlurReader(this.musicSheet)}get ActiveKey(){return this.activeKey}get MaxTieNoteFraction(){return this.maxTieNoteFraction}get ActiveRhythm(){return this.activeRhythm}set ActiveRhythm(t){this.activeRhythm=t}readNextXmlMeasure(t,e,n){var i;if(this.currentXmlMeasureIndex>=this.xmlMeasureList.length)return!1;this.currentMeasure=t,this.inSourceMeasureInstrumentIndex=this.musicSheet.getGlobalStaffIndexOfFirstStaff(this.instrument),this.repetitionInstructionReader&&this.repetitionInstructionReader.prepareReadingMeasure(t,this.currentXmlMeasureIndex);let s=new l.Fraction(0,1),r=new l.Fraction(0,1),o=!1;this.maxTieNoteFraction=new l.Fraction(0,1);let a=!1;try{const c=this.xmlMeasureList[this.currentXmlMeasureIndex].elements();for(let d=0;d<c.length;d++){const f=c[d];if("print"===f.name){const e=f.attribute("new-system");"yes"===(null==e?void 0:e.value)&&(t.printNewSystemXml=!0);const n=f.attribute("new-page");"yes"===(null==n?void 0:n.value)&&(t.printNewPageXml=!0)}else if("note"===f.name){let t=!0;f.hasAttributes&&f.attribute("print-object")&&"no"===f.attribute("print-object").value&&(t=!1);let i=1;this.instrument.Staves.length>1&&f.element("staff")&&(i=parseInt(f.element("staff").value,10),isNaN(i)&&(m.default.debug("InstrumentReader.readNextXmlMeasure.get staff number"),i=1)),this.currentStaff=this.instrument.Staves[i-1];const o=void 0!==f.element("chord");if(f.element("voice")){const t=parseInt(f.element("voice").value,10);this.currentVoiceGenerator=this.getOrCreateVoiceGenerator(t,i-1)}else o&&this.currentVoiceGenerator||(this.currentVoiceGenerator=this.getOrCreateVoiceGenerator(1,i-1));let c=0,h=new l.Fraction(0,1),d=2,p=void 0,g=!1;if(f.element("duration")){if(c=parseInt(f.element("duration").value,10),isNaN(c)){const t=u.ITextTranslation.translateText("ReaderErrorMessages/NoteDurationError","Invalid Note Duration.");this.musicSheet.SheetErrors.pushMeasureError(t),m.default.debug("InstrumentReader.readNextXmlMeasure",t);continue}if(h=new l.Fraction(c,4*this.divisions),0===c?h=this.getNoteDurationFromTypeNode(f):p=this.getNoteDurationFromTypeNode(f),f.element("time-modification")){h=this.getNoteDurationForTuplet(f);const t=f.element("time-modification");t&&t.element("normal-notes")&&(d=parseInt(t.element("normal-notes").value,10)),g=!0}}const b=void 0!==f.element("rest"),v=f.element("notations"),y=void 0!==f.element("grace")||0===c||o&&a;let _=!1,w=!1;if(y){const t=f.element("grace");t&&t.attributes()&&t.attribute("slash")&&"yes"===t.attribute("slash").value&&(_=!0),h=this.getNoteDurationFromTypeNode(f);const e=f.element("notations");e&&e.element("slur")&&(w=!0)}let E=!1;f.element("cue")&&(E=!0);const T=f.element("type");let C=x.NoteType.UNDEFINED;if(T){const t=T.attribute("size");null!=t&&"cue"===t.value&&(E=!0),C=x.NoteTypeHandler.StringToNoteType(T.value)}let M,P=S.StemDirectionType.Undefined;const A=f.element("stem");if(A){switch(A.value){case"down":P=S.StemDirectionType.Down;break;case"up":P=S.StemDirectionType.Up;break;case"double":P=S.StemDirectionType.Double;break;case"none":P=S.StemDirectionType.None;break;default:P=S.StemDirectionType.Undefined}const t=A.attribute("color");t&&(M=this.parseXmlColor(t.value))}let I,L=0,O=!1;if(v){const t=v.element("ornaments");if(t){const e=t.element("tremolo");if(e){const t=e.attribute("type");if(t&&"single"===t.value){const t=parseInt(e.value,10);t>0&&(L=t)}}const n=t.element("wavy-line");if(void 0!==n){const t=n.attribute("type");t&&"start"===t.value&&(O=!0)}}}const k=f.element("notehead");if(k){const t=k.attribute("color");t&&(I=this.parseXmlColor(t.value))}let R;const N=f.attribute("color");N&&(R=this.parseXmlColor(N.value),I||(I=R),M||(M=R));let D=s.clone();o&&(D=r.clone()),this.currentStaffEntry=this.currentMeasure.findOrCreateStaffEntry(D,this.inSourceMeasureInstrumentIndex+i-1,this.currentStaff).staffEntry,(!this.currentVoiceGenerator.hasVoiceEntry()||!o&&!y&&!a||y&&!a||y&&!o||!y&&a)&&this.currentVoiceGenerator.createVoiceEntry(D,this.currentStaffEntry,!b&&!y,y,_,w),y||o||(r=s.clone(),s.Add(h)),o&&void 0!==this.currentStaffEntry&&this.currentStaffEntry.ParentStaff!==this.currentStaff&&(this.currentStaffEntry=this.currentVoiceGenerator.checkForStaffEntryLink(this.inSourceMeasureInstrumentIndex+i-1,this.currentStaff,this.currentStaffEntry,this.currentMeasure));const V=void 0!==this.currentStaffEntry&&void 0!==this.currentStaffEntry.Timestamp&&this.currentStaffEntry.Timestamp.Equals(new l.Fraction(0,1))&&!this.currentStaffEntry.hasNotes();if(this.saveAbstractInstructionList(this.instrument.Staves.length,V),0!==this.openChordSymbolContainers.length&&(this.currentStaffEntry.ChordContainers=this.openChordSymbolContainers,this.openChordSymbolContainers=[]),this.activeRhythm,g||y||(h=new l.Fraction(c,4*this.divisions)),this.currentVoiceGenerator.read(f,h,p,C,d,b,this.currentStaffEntry,this.currentMeasure,e,this.maxTieNoteFraction,o,n,t,E,P,L,M,I,O),void 0!==v&&v.element("dynamics")){const t=this.expressionReaders[this.readExpressionStaffNumber(f)-1];t&&(t.readExpressionParameters(f,this.instrument,this.divisions,s,r,this.currentMeasure.MeasureNumber,!1),t.read(f,this.currentMeasure,r))}a=y}else if("attributes"===f.name){const e=f.element("divisions");if(e&&(this.divisions=parseInt(e.value,10),isNaN(this.divisions))){const t=u.ITextTranslation.translateText("ReaderErrorMessages/DivisionError","Invalid divisions value at Instrument: ");if(m.default.debug("InstrumentReader.readNextXmlMeasure",t),this.divisions=this.readDivisionsFromNotes(),!(this.divisions>0))throw o=!0,new h.MusicSheetReadingException(t+this.instrument.Name);this.musicSheet.SheetErrors.push(t+this.instrument.Name)}if(!f.element("divisions")&&0===this.divisions&&0===this.currentXmlMeasureIndex){const t=u.ITextTranslation.translateText("ReaderErrorMessages/DivisionError","Invalid divisions value at Instrument: ");if(this.divisions=this.readDivisionsFromNotes(),!(this.divisions>0))throw o=!0,new h.MusicSheetReadingException(t+this.instrument.Name);this.musicSheet.SheetErrors.push(t+this.instrument.Name)}this.addAbstractInstruction(f,n),s.Equals(new l.Fraction(0,1))&&this.isAttributesNodeAtBeginOfMeasure(this.xmlMeasureList[this.currentXmlMeasureIndex],f)&&this.saveAbstractInstructionList(this.instrument.Staves.length,!0),this.isAttributesNodeAtEndOfMeasure(this.xmlMeasureList[this.currentXmlMeasureIndex],f)&&this.saveClefInstructionAtEndOfMeasure();const i=f.element("staff-details");if(i){const t=i.element("staff-lines");if(t){let e=1;const n=i.attribute("number");n&&(e=parseInt(n.value,10)),this.instrument.Staves[e-1].StafflineCount=parseInt(t.value,10)}}const r=f.element("measure-style");if(r){const e=r.element("multiple-rest");if(e){const n=e.value;let i=0;try{i=Number.parseInt(n,10),void 0!==t.multipleRestMeasures&&i!==t.multipleRestMeasures?t.multipleRestMeasures=0:t.multipleRestMeasures=i}catch(t){console.log("multirest parse error: "+t)}}}}else if("forward"===f.name){const t=parseInt(f.element("duration").value,10);s.Add(new l.Fraction(t,4*this.divisions))}else if("backup"===f.name){const t=parseInt(f.element("duration").value,10);s.Sub(new l.Fraction(t,4*this.divisions)),s.IsNegative()&&(s=new l.Fraction(0,1)),r.Sub(new l.Fraction(t,4*this.divisions)),r.IsNegative()&&(r=new l.Fraction(0,1))}else if("direction"===f.name){const t=f.element("direction-type");let e=Math.min(1,s.RealValue);void 0!==this.activeRhythm&&this.activeRhythm.Rhythm&&(e/=this.activeRhythm.Rhythm.RealValue);let n=!1;if(this.repetitionInstructionReader&&(n=this.repetitionInstructionReader.handleRepetitionInstructionsFromWordsOrSymbols(t,e)),!n){let e=this.expressionReaders[0];const n=this.readExpressionStaffNumber(f)-1;n<this.expressionReaders.length&&(e=this.expressionReaders[n]),e&&(t.element("octave-shift")&&(e.readExpressionParameters(f,this.instrument,this.divisions,s,r,this.currentMeasure.MeasureNumber,!0),e.addOctaveShift(f,this.currentMeasure,r.clone())),e.readExpressionParameters(f,this.instrument,this.divisions,s,r,this.currentMeasure.MeasureNumber,!1),e.read(f,this.currentMeasure,s))}}else if("barline"===f.name){this.repetitionInstructionReader&&this.repetitionInstructionReader.handleLineRepetitionInstructions(f)&&(this.currentMeasure.HasEndLine=!0);const t=f.attribute("location");if(d===c.length-1||t&&"right"===t.value){const t=null===(i=f.element("bar-style"))||void 0===i?void 0:i.value;t&&(this.currentMeasure.endingBarStyleXml=t,this.currentMeasure.endingBarStyleEnum=_.SystemLinesEnumHelper.xmlBarlineStyleToSystemLinesEnum(t))}}else"sound"===f.name||"harmony"===f.name&&this.openChordSymbolContainers.push(b.ChordSymbolReader.readChordSymbol(f,this.musicSheet,this.activeKey))}for(const t in this.voiceGeneratorsDict)this.voiceGeneratorsDict.hasOwnProperty(t)&&this.voiceGeneratorsDict[t].checkForOpenBeam();if(this.currentXmlMeasureIndex===this.xmlMeasureList.length-1){for(let t=0;t<this.instrument.Staves.length;t++)this.activeClefsHaveBeenInitialized[t]||this.createDefaultClefInstruction(this.musicSheet.getGlobalStaffIndexOfFirstStaff(this.instrument)+t);this.activeKeyHasBeenInitialized||this.createDefaultKeyInstruction();for(let t=0;t<this.expressionReaders.length;t++){const e=this.expressionReaders[t];e&&e.checkForOpenExpressions(this.currentMeasure,s)}}this.musicSheet.HasBPMInfo?0===t.TempoInBPM&&(this.currentMeasure.TempoInBPM=this.previousMeasure.TempoInBPM):this.currentMeasure.TempoInBPM=120}catch(t){if(o)throw new h.MusicSheetReadingException(t.Message);const e=u.ITextTranslation.translateText("ReaderErrorMessages/MeasureError","Error while reading Measure.");this.musicSheet.SheetErrors.pushMeasureError(e),m.default.debug("InstrumentReader.readNextXmlMeasure",e,t)}return this.previousMeasure=this.currentMeasure,this.currentXmlMeasureIndex+=1,!0}parseXmlColor(t){if(t)return 7===t.length?t:9===t.length?"#"+t.substr(3):void 0}doCalculationsAfterDurationHasBeenSet(){for(const t in this.voiceGeneratorsDict)this.voiceGeneratorsDict.hasOwnProperty(t)&&this.voiceGeneratorsDict[t].checkOpenTies()}getOrCreateVoiceGenerator(t,e){const n=this.instrument.Staves[e];let i=this.voiceGeneratorsDict[t];if(i)-1===n.Voices.indexOf(i.GetVoice)&&n.Voices.push(i.GetVoice);else{const r=this.staffMainVoiceGeneratorDict[e];r?(i=new s.VoiceGenerator(this.instrument,t,this.slurReader,r.GetVoice),n.Voices.push(i.GetVoice),this.voiceGeneratorsDict[t]=i):(i=new s.VoiceGenerator(this.instrument,t,this.slurReader),n.Voices.push(i.GetVoice),this.voiceGeneratorsDict[t]=i,this.staffMainVoiceGeneratorDict[e]=i)}return i}createExpressionGenerators(t){this.expressionReaders=new Array(t);for(let e=0;e<t;e++)this.expressionReaders[e]=new v.ExpressionReader(this.musicSheet,this.instrument,e+1)}createDefaultClefInstruction(t){let e;e=this.musicSheet.SourceMeasures.length>0?this.musicSheet.SourceMeasures[0]:this.currentMeasure;const n=new o.ClefInstruction(d.ClefEnum.G,0,2);let i;e.FirstInstructionsStaffEntries[t]?(i=e.FirstInstructionsStaffEntries[t],i.removeFirstInstructionOfTypeClefInstruction()):(i=new r.SourceStaffEntry(void 0,void 0),e.FirstInstructionsStaffEntries[t]=i),n.Parent=i,i.Instructions.splice(0,0,n)}createDefaultKeyInstruction(){let t;t=this.musicSheet.SourceMeasures.length>0?this.musicSheet.SourceMeasures[0]:this.currentMeasure;const e=new a.KeyInstruction(void 0,0,p.KeyEnum.major);for(let n=this.inSourceMeasureInstrumentIndex;n<this.inSourceMeasureInstrumentIndex+this.instrument.Staves.length;n++)if(t.FirstInstructionsStaffEntries[n]){const i=t.FirstInstructionsStaffEntries[n];e.Parent=i,i.removeFirstInstructionOfTypeKeyInstruction(),i.Instructions[0]instanceof o.ClefInstruction?i.Instructions.splice(1,0,e):i.Instructions.splice(0,0,e)}else{const i=new r.SourceStaffEntry(void 0,void 0);t.FirstInstructionsStaffEntries[n]=i,e.Parent=i,i.Instructions.push(e)}}isAttributesNodeAtBeginOfMeasure(t,e){const n=t.elements(),i=n.indexOf(e);if(i>0&&"backup"===n[i-1].name)return!0;let s=-1;for(let r=0;r<n.length;r++)if("note"===n[r].name){s=r;break}return i<s&&s>0||s<0}isAttributesNodeAtEndOfMeasure(t,e){const n=t.elements().slice();let i=0;for(let r=0;r<n.length;r++)if(n[r]===e){i=r;break}let s=0;for(let r=i;r<n.length;r++)if("note"===n[r].name){s=r;break}return i>s}getNoteDurationFromTypeNode(t){const e=t.element("type");if(e){const t=e.value;return x.NoteTypeHandler.getNoteDurationFromType(t)}return new l.Fraction(0,4*this.divisions)}addAbstractInstruction(t,e){if(t.element("divisions")&&1===t.elements().length)return;const n=t.element("transpose");if(n){const t=n.element("chromatic");t&&(this.instrument.PlaybackTranspose=parseInt(t.value,10))}const i=t.elements("clef");let s;if(i.length>0)for(let r=0,a=i.length;r<a;++r){const e=i[r];let n=d.ClefEnum.G,a=2,c=1,l=0;const h=e.element("line");if(h)try{a=parseInt(h.value,10)}catch(t){s=u.ITextTranslation.translateText("ReaderErrorMessages/ClefLineError","Invalid clef line given -> using default clef line."),this.musicSheet.SheetErrors.pushMeasureError(s),a=2,m.default.debug("InstrumentReader.addAbstractInstruction",s,t)}const f=e.element("sign");if(f)try{n=d.ClefEnum[f.value],o.ClefInstruction.isSupportedClef(n)||(s=u.ITextTranslation.translateText("ReaderErrorMessages/ClefError","Unsupported clef found -> using default clef."),this.musicSheet.SheetErrors.pushMeasureError(s),n=d.ClefEnum.G,a=2),n===d.ClefEnum.TAB&&(l=-1)}catch(t){s=u.ITextTranslation.translateText("ReaderErrorMessages/ClefError","Invalid clef found -> using default clef."),this.musicSheet.SheetErrors.pushMeasureError(s),n=d.ClefEnum.G,a=2,m.default.debug("InstrumentReader.addAbstractInstruction",s,t)}const p=e.element("clef-octave-change");if(p)try{l=parseInt(p.value,10)}catch(t){s=u.ITextTranslation.translateText("ReaderErrorMessages/ClefOctaveError","Invalid clef octave found -> using default clef octave."),this.musicSheet.SheetErrors.pushMeasureError(s),l=0}if(e.hasAttributes&&"number"===e.attributes()[0].name)try{c=parseInt(e.attributes()[0].value,10),c>this.currentClefNumber&&(c=this.currentClefNumber),this.currentClefNumber=c+1}catch(t){s=u.ITextTranslation.translateText("ReaderErrorMessages/ClefError","Invalid clef found -> using default clef."),this.musicSheet.SheetErrors.pushMeasureError(s),c=1,this.currentClefNumber=c+1}const g=new o.ClefInstruction(n,l,a);this.abstractInstructions.push([c,g])}if(void 0!==t.element("key")&&this.instrument.MidiInstrumentId!==g.MidiInstrument.Percussion){let e=0;const n=t.element("key").element("fifths");if(n)try{e=parseInt(n.value,10)}catch(t){s=u.ITextTranslation.translateText("ReaderErrorMessages/KeyError","Invalid key found -> set to default."),this.musicSheet.SheetErrors.pushMeasureError(s),e=0,m.default.debug("InstrumentReader.addAbstractInstruction",s,t)}let i=p.KeyEnum.none,r=t.element("key");if(r&&(r=r.element("mode")),r)try{i=p.KeyEnum[r.value]}catch(t){s=u.ITextTranslation.translateText("ReaderErrorMessages/KeyError","Invalid key found -> set to default."),this.musicSheet.SheetErrors.pushMeasureError(s),i=p.KeyEnum.major,m.default.debug("InstrumentReader.addAbstractInstruction",s,t)}const o=new a.KeyInstruction(void 0,e,i);this.abstractInstructions.push([1,o])}if(t.element("time")){const e=t.element("time");let n=f.RhythmSymbolEnum.NONE,i=!0;if(void 0!==e&&e.hasAttributes){const t=e.attribute("symbol");t&&("common"===t.value?n=f.RhythmSymbolEnum.COMMON:"cut"===t.value&&(n=f.RhythmSymbolEnum.CUT));const s=e.attribute("print-object");s&&"no"===s.value&&(i=!1)}let r=0,o=0;const a=e&&void 0!==e.element("senza-misura"),h=t.elements("time"),d=[],p=[];for(let t=0,s=h.length;t<s;++t){const e=h[t];d.push.apply(d,e.elements("beats")),p.push.apply(p,e.elements("beat-type"))}if(a)this.abstractInstructions.push([1,new c.RhythmInstruction(new l.Fraction(4,4,0,!1),f.RhythmSymbolEnum.NONE)]);else{try{if(void 0!==d&&d.length>0&&void 0!==p&&d.length===p.length){const t=d.length,e=new Array(t);let n=0;for(let i=0;i<t;i++){const t=d[i].value;let s=0,r=0;if(-1!==t.indexOf("+")){const e=t.split("+");for(let t=0,n=e.length;t<n;++t)s+=parseInt(e[t],10)}else s=parseInt(t,10);r=parseInt(p[i].value,10),n=Math.max(n,r),e[i]=new l.Fraction(s,r,0,!1)}for(let i=0;i<t;i++)e[i].Denominator===n?r+=e[i].Numerator:r+=n/e[i].Denominator*e[i].Numerator;o=n}else r=parseInt(t.element("time").element("beats").value,10),o=parseInt(t.element("time").element("beat-type").value,10)}catch(t){s=u.ITextTranslation.translateText("ReaderErrorMessages/RhythmError","Invalid rhythm found -> set to default."),this.musicSheet.SheetErrors.pushMeasureError(s),r=4,o=4,m.default.debug("InstrumentReader.addAbstractInstruction",s,t)}const e=new c.RhythmInstruction(new l.Fraction(r,o,0,!1),n);e.PrintObject=i,this.abstractInstructions.push([1,e])}}}saveAbstractInstructionList(t,e){for(let n=this.abstractInstructions.length-1;n>=0;n--){const i=this.abstractInstructions[n],s=i[0],l=i[1];if(l instanceof o.ClefInstruction){const t=l;if(0===this.currentXmlMeasureIndex||s<=this.activeClefs.length&&t!==this.activeClefs[s-1])if(e||void 0===this.currentStaffEntry||this.currentStaffEntry.hasNotes()||s-1!==this.instrument.Staves.indexOf(this.currentStaffEntry.ParentStaff)){if(e){let e;if(this.currentMeasure){const i=t,a=this.inSourceMeasureInstrumentIndex+s-1,c=this.currentMeasure.FirstInstructionsStaffEntries[a];if(0===this.currentXmlMeasureIndex)if(c)if(void 0===this.currentMeasure.FirstInstructionsStaffEntries[a]||c.Instructions[0]instanceof o.ClefInstruction){const t=new r.SourceStaffEntry(void 0,void 0);this.currentMeasure.LastInstructionsStaffEntries[a]=t,i.Parent=t,t.Instructions.push(i)}else e=c,i.Parent=e,e.removeFirstInstructionOfTypeClefInstruction(),e.Instructions.splice(0,0,i),this.activeClefsHaveBeenInitialized[s-1]=!0;else e=new r.SourceStaffEntry(void 0,void 0),this.currentMeasure.FirstInstructionsStaffEntries[a]=e,i.Parent=e,e.Instructions.push(i),this.activeClefsHaveBeenInitialized[s-1]=!0;else if(this.activeClefsHaveBeenInitialized[s-1]){const t=new r.SourceStaffEntry(void 0,void 0);this.previousMeasure.LastInstructionsStaffEntries[a]=t,i.Parent=t,t.Instructions.push(i)}else{const t=this.musicSheet.SourceMeasures[0];t.FirstInstructionsStaffEntries[a]?(e=t.FirstInstructionsStaffEntries[a],e.removeFirstInstructionOfTypeClefInstruction()):e=new r.SourceStaffEntry(void 0,void 0),i.Parent=e,e.Instructions.splice(0,0,i),this.activeClefsHaveBeenInitialized[s-1]=!0}this.activeClefs[s-1]=t,this.abstractInstructions.splice(n,1)}}}else{const e=t;e.Parent=this.currentStaffEntry,this.currentStaffEntry.removeFirstInstructionOfTypeClefInstruction(),this.currentStaffEntry.Instructions.push(e),this.activeClefs[s-1]=t,this.abstractInstructions.splice(n,1)}else s<=this.activeClefs.length&&t===this.activeClefs[s-1]&&this.abstractInstructions.splice(n,1)}if(l instanceof a.KeyInstruction){const e=l;if(this.activeKey&&this.activeKey.Key===e.Key)this.abstractInstructions.splice(n,1);else{let i;if(this.activeKey=e,this.abstractInstructions.splice(n,1),this.activeKeyHasBeenInitialized?i=this.currentMeasure:(this.activeKeyHasBeenInitialized=!0,i=this.currentXmlMeasureIndex>0?this.musicSheet.SourceMeasures[0]:this.currentMeasure),i)for(let n=this.inSourceMeasureInstrumentIndex;n<this.inSourceMeasureInstrumentIndex+t;n++){const t=e;if(i.FirstInstructionsStaffEntries[n]){const e=i.FirstInstructionsStaffEntries[n];t.Parent=e,e.removeFirstInstructionOfTypeKeyInstruction(),0===e.Instructions.length?e.Instructions.push(t):e.Instructions[0]instanceof o.ClefInstruction?e.Instructions.splice(1,0,t):e.Instructions.splice(0,0,t)}else{const e=new r.SourceStaffEntry(void 0,void 0);i.FirstInstructionsStaffEntries[n]=e,t.Parent=e,e.Instructions.push(t)}}}}if(l instanceof c.RhythmInstruction){const e=l;if(this.activeRhythm&&this.activeRhythm===e)this.abstractInstructions.splice(n,1);else if(this.activeRhythm=e,this.abstractInstructions.splice(n,1),this.currentMeasure)for(let n=this.inSourceMeasureInstrumentIndex;n<this.inSourceMeasureInstrumentIndex+t;n++){const t=e;let i;this.currentMeasure.FirstInstructionsStaffEntries[n]?(i=this.currentMeasure.FirstInstructionsStaffEntries[n],i.removeFirstInstructionOfTypeRhythmInstruction()):(i=new r.SourceStaffEntry(void 0,void 0),this.currentMeasure.FirstInstructionsStaffEntries[n]=i),t.Parent=i,i.Instructions.push(t)}}}}saveClefInstructionAtEndOfMeasure(){for(let t=this.abstractInstructions.length-1;t>=0;t--){const e=this.abstractInstructions[t][0],n=this.abstractInstructions[t][1];if(n instanceof o.ClefInstruction){const i=n;if(!this.activeClefs[e-1]||i.ClefType!==this.activeClefs[e-1].ClefType||i.ClefType===this.activeClefs[e-1].ClefType&&i.Line!==this.activeClefs[e-1].Line){const n=new r.SourceStaffEntry(void 0,void 0);this.currentMeasure.LastInstructionsStaffEntries[this.inSourceMeasureInstrumentIndex+e-1]=n;const s=i;s.Parent=n,n.Instructions.push(s),this.activeClefs[e-1]=i,this.abstractInstructions.splice(t,1)}}}}getNoteDurationForTuplet(t){let e=new l.Fraction(0,1);const n=this.getNoteDurationFromTypeNode(t);if(t.element("time-modification")){const i=t.element("time-modification");if(i&&void 0!==i.element("actual-notes")&&i.element("normal-notes")){const t=i.element("actual-notes"),s=i.element("normal-notes");if(void 0!==t&&s){const i=parseInt(t.value,10),r=parseInt(s.value,10);e=new l.Fraction(r*n.Numerator,i*n.Denominator)}}}return e}readExpressionStaffNumber(t){let e=1;if(t.element("staff")){const n=t.element("staff");if(n)try{e=parseInt(n.value,10)}catch(t){const n=u.ITextTranslation.translateText("ReaderErrorMessages/ExpressionStaffError","Invalid Expression staff number -> set to default.");this.musicSheet.SheetErrors.pushMeasureError(n),e=1,m.default.debug("InstrumentReader.readExpressionStaffNumber",n,t)}}return e}readDivisionsFromNotes(){let t=0,e=this.currentXmlMeasureIndex,n=!1;for(;!n;){const i=this.xmlMeasureList[e].elements();for(let e=0,s=i.length;e<s;++e){const s=i[e];if("note"===s.name&&!s.element("time-modification")){const e=s.element("duration"),n=s.element("type");if(void 0!==e&&n){const i=n.value;let s=0;try{s=parseInt(e.value,10)}catch(t){m.default.debug("InstrumentReader.readDivisionsFromNotes",t);continue}switch(i){case"1024th":t=s/4*1024;break;case"512th":t=s/4*512;break;case"256th":t=s/4*256;break;case"128th":t=s/4*128;break;case"64th":t=s/4*64;break;case"32nd":t=s/4*32;break;case"16th":t=s/4*16;break;case"eighth":t=s/4*8;break;case"quarter":t=s/4*4;break;case"half":t=s/4*2;break;case"whole":t=s/4;break;case"breve":t=s/4/2;break;case"long":t=s/4/4;break;case"maxima":t=s/4/8}}}if(t>0){n=!0;break}}if(0===t&&(e++,e===this.xmlMeasureList.length)){const t=u.ITextTranslation.translateText("ReaderErrorMEssages/DivisionsError","Invalid divisions value at Instrument: ");throw new h.MusicSheetReadingException(t+this.instrument.Name)}}return t}}},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.VoiceGenerator=void 0;const s=n(39),r=n(47),o=n(12),a=n(36),c=n(31),l=n(129),u=n(88),h=n(56),d=n(130),f=n(0),p=n(21),m=n(131),g=n(11),b=n(2),v=n(2),y=n(132),S=i(n(1)),x=n(2),_=n(34),w=n(133),E=n(62),T=n(66),C=n(37),M=n(164),P=n(3);e.VoiceGenerator=class{constructor(t,e,n,i){this.lastBeamTag="",this.openTieDict={},this.currentOctaveShift=0,this.tupletDict={},this.openTupletNumber=0,this.musicSheet=t.GetMusicSheet,this.slurReader=n,this.voice=i?new s.LinkedVoice(t,e,i):new r.Voice(t,e),t.Voices.push(this.voice),this.lyricsReader=new m.LyricsReader(this.musicSheet),this.articulationReader=new w.ArticulationReader}get GetVoice(){return this.voice}get OctaveShift(){return this.currentOctaveShift}set OctaveShift(t){this.currentOctaveShift=t}createVoiceEntry(t,e,n,i=!1,s=!1,r=!1){this.currentVoiceEntry=new o.VoiceEntry(t.clone(),this.voice,e,i,s,r),n&&this.voice.VoiceEntries.push(this.currentVoiceEntry),-1===e.VoiceEntries.indexOf(this.currentVoiceEntry)&&e.VoiceEntries.push(this.currentVoiceEntry)}read(t,e,n,i,s,r,o,a,c,l,u,d,m,g,b,v,y,S,x){this.currentStaffEntry=o,this.currentMeasure=a;try{this.currentNote=r?this.addRestNote(t.element("rest"),e,i,m,g,S):this.addSingleNote(t,e,i,n,s,u,d,m,g,b,v,y,S,x);const o=t.elements("lyric");void 0!==this.lyricsReader&&o&&(this.lyricsReader.addLyricEntry(o,this.currentVoiceEntry),this.voice.Parent.HasLyrics=!0);let a=!1;const p=t.element("notations");if(p){this.articulationReader&&this.readArticulations(p,this.currentVoiceEntry);const e=p.elements("slur");void 0!==this.slurReader&&e.length>0&&!this.currentNote.ParentVoiceEntry.IsGrace&&this.slurReader.addSlur(e,this.currentNote);const n=p.elements("tuplet");n.length>0&&(this.openTupletNumber=this.addTuplet(t,n),a=!0);const i=p.element("arpeggiate");if(void 0!==i&&!this.currentVoiceEntry.IsGrace){let t;if(this.currentVoiceEntry.Arpeggio)t=this.currentVoiceEntry.Arpeggio;else{let e=!1;for(const n of this.currentStaffEntry.VoiceEntries)if(n.Arpeggio){e=!0,t=n.Arpeggio;break}if(!e){let e=T.ArpeggioType.ARPEGGIO_DIRECTIONLESS;const n=i.attribute("direction");if(null!==n)switch(n.value){case"up":e=T.ArpeggioType.ROLL_UP;break;case"down":e=T.ArpeggioType.ROLL_DOWN;break;default:e=T.ArpeggioType.ARPEGGIO_DIRECTIONLESS}t=new T.Arpeggio(this.currentVoiceEntry,e),this.currentVoiceEntry.Arpeggio=t}}t.addNote(this.currentNote)}const s=p.elements("tied");s.length>0&&this.addTie(s,c,l,h.TieTypes.SIMPLE);const r=p.elements("slide");r.length>0&&this.addTie(r,c,l,h.TieTypes.SLIDE);const o=p.element("technical"),u=o.elements("hammer-on");u.length>0&&this.addTie(u,c,l,h.TieTypes.HAMMERON);const d=o.elements("pull-off");d.length>0&&this.addTie(d,c,l,h.TieTypes.PULLOFF);const m=this.openTieDict;for(const t in m)if(m.hasOwnProperty(t)){const e=m[t];f.Fraction.plus(e.StartNote.ParentStaffEntry.Timestamp,e.Duration).lt(this.currentStaffEntry.Timestamp)&&delete m[t]}}void 0===t.element("time-modification")||a||this.handleTimeModificationNode(t)}catch(t){const e=p.ITextTranslation.translateText("ReaderErrorMessages/NoteError","Ignored erroneous Note.");this.musicSheet.SheetErrors.pushMeasureError(e)}return this.currentNote}checkForStaffEntryLink(t,e,n,i){const s=new y.StaffEntryLink(this.currentVoiceEntry);s.LinkStaffEntries.push(n),n.Link=s;const r=this.currentVoiceEntry.Timestamp.clone(),o=i.getVerticalContainerByTimestamp(r);return(n=o.StaffEntries[t])||(n=new c.SourceStaffEntry(o,e),o.StaffEntries[t]=n),n.VoiceEntries.push(this.currentVoiceEntry),s.LinkStaffEntries.push(n),n.Link=s,n}checkForOpenBeam(){void 0!==this.openBeam&&this.currentNote&&this.handleOpenBeam()}checkOpenTies(){const t=this.openTieDict;for(const e in t)if(t.hasOwnProperty(e)){const n=t[e];f.Fraction.plus(n.StartNote.ParentStaffEntry.Timestamp,n.Duration).lt(n.StartNote.SourceMeasure.Duration)&&delete t[e]}}hasVoiceEntry(){return void 0!==this.currentVoiceEntry}readArticulations(t,e){const n=t.element("articulations");n&&this.articulationReader.addArticulationExpression(n,e);const i=t.element("fermata");i&&this.articulationReader.addFermata(i,e);const s=t.element("technical");s&&this.articulationReader.addTechnicalArticulations(s,e);const r=t.element("ornaments");r&&this.articulationReader.addOrnament(r,e)}addSingleNote(t,e,n,i,s,r,o,c,l,u,h,d,m,y){let _=0,w=b.AccidentalEnum.NONE,T=v.NoteEnum.C,C=0,P=void 0,A=void 0,I=void 0;const L=t.elements();for(let a=0,f=L.length;a<f;++a){const e=L[a];try{if("pitch"===e.name){const n=e.elements();for(let e=0,i=n.length;e<i;++e){const i=n[e];A=void 0,I=void 0;try{if("step"===i.name){if(T=v.NoteEnum[i.value],void 0===T){const t=p.ITextTranslation.translateText("ReaderErrorMessages/NotePitchError","Invalid pitch while reading note.");throw this.musicSheet.SheetErrors.pushMeasureError(t),new g.MusicSheetReadingException(t,void 0)}}else if("alter"===i.name){if(_=parseFloat(i.value),isNaN(_)){const t=p.ITextTranslation.translateText("ReaderErrorMessages/NoteAlterationError","Invalid alteration while reading note.");throw this.musicSheet.SheetErrors.pushMeasureError(t),new g.MusicSheetReadingException(t,void 0)}w=x.Pitch.AccidentalFromHalfTones(_)}else if("octave"===i.name&&(C=parseInt(i.value,10),isNaN(C))){const t=p.ITextTranslation.translateText("ReaderErrorMessages/NoteOctaveError","Invalid octave value while reading note.");throw this.musicSheet.SheetErrors.pushMeasureError(t),new g.MusicSheetReadingException(t,void 0)}}catch(t){S.default.info("VoiceGenerator.addSingleNote read Step: ",t.message)}}}else if("accidental"===e.name)"natural"===e.value&&(w=b.AccidentalEnum.NATURAL);else if("unpitched"===e.name){const t=e.element("display-step");t&&(T=v.NoteEnum[t.value.toUpperCase()]);const n=e.element("display-octave");n&&(C=parseInt(n.value,10),o&&(C+=1))}else"instrument"===e.name?e.firstAttribute&&(P=e.firstAttribute.value):"notehead"===e.name&&(A=e.value,null!==e.attribute("filled")&&(I="yes"===e.attribute("filled").value))}catch(t){S.default.info("VoiceGenerator.addSingleNote: ",t)}}C-=x.Pitch.OctaveXmlDifference;const O=new x.Pitch(T,C,w),k=f.Fraction.createFromFraction(e);let R=void 0,N=-1,D=-1;const V=[],B=t.element("notations");if(B){const t=B.element("technical");if(t){const e=t.element("string");e&&(N=parseInt(e.value,10));const n=t.element("fret");n&&(D=parseInt(n.value,10)),t.elements("bend").forEach((function(t){const e=t.element("bend-alter");void 0!==t.element("release")?V.push({bendalter:parseInt(e.value,10),direction:"down"}):V.push({bendalter:parseInt(e.value,10),direction:"up"})}))}}return R=N<0||D<0?new a.Note(this.currentVoiceEntry,this.currentStaffEntry,k,O,this.currentMeasure):new M.TabNote(this.currentVoiceEntry,this.currentStaffEntry,k,O,this.currentMeasure,N,D,V,y),R.TypeLength=i,R.NoteTypeXml=n,R.NormalNotes=s,R.PrintObject=c,R.IsCueNote=l,R.StemDirectionXml=u,R.TremoloStrokes=h,(void 0!==A&&"normal"!==A||void 0!==I)&&(R.Notehead=new E.Notehead(R,A,I)),R.NoteheadColorXml=m,R.NoteheadColor=m,R.PlaybackInstrumentId=P,this.currentVoiceEntry.Notes.push(R),this.currentVoiceEntry.StemDirectionXml=u,d&&(this.currentVoiceEntry.StemColorXml=d,this.currentVoiceEntry.StemColor=d,R.StemColorXml=d),t.elements("beam")&&!r&&this.createBeam(t,R),R}addRestNote(t,e,n,i,s,r){const o=f.Fraction.createFromFraction(e),c=t.element("display-step"),l=t.element("display-octave");let u=void 0;if(c&&l){const t=v.NoteEnum[c.value.toUpperCase()];u=new x.Pitch(t,parseInt(l.value,10),b.AccidentalEnum.NONE)}const h=new a.Note(this.currentVoiceEntry,this.currentStaffEntry,o,u,this.currentMeasure,!0);return h.NoteTypeXml=n,h.PrintObject=i,h.IsCueNote=s,h.NoteheadColorXml=r,h.NoteheadColor=r,this.currentVoiceEntry.Notes.push(h),this.openBeam&&this.openBeam.ExtendedNoteList.push(h),h}createBeam(t,e){try{const n=t.element("beam");let i=void 0;if(void 0!==n&&n.hasAttributes&&(i=n.attribute("number")),i){const n=parseInt(i.value,10),s=t.elements("beam"),r=s[0].value;1===n&&s&&("begin"===r&&this.lastBeamTag!==r&&(this.openBeam&&this.handleOpenBeam(),this.openBeam=new l.Beam),this.lastBeamTag=r);let o=!1;if(!this.openBeam)return;for(let t=0,e=this.openBeam.Notes.length;t<e;++t){const e=this.openBeam.Notes[t];this.currentVoiceEntry===e.ParentVoiceEntry&&(o=!0)}o||(this.openBeam.addNoteToBeam(e),"end"===r&&1===n&&(this.openBeam=void 0))}}catch(t){const e=p.ITextTranslation.translateText("ReaderErrorMessages/BeamError","Error while reading beam.");throw this.musicSheet.SheetErrors.pushMeasureError(e),new g.MusicSheetReadingException("",t)}}handleOpenBeam(){if(1===this.openBeam.Notes.length)return this.openBeam.Notes[0].NoteBeam=void 0,void(this.openBeam=void 0);if(this.currentNote===_.CollectionUtil.last(this.openBeam.Notes))this.openBeam=void 0;else{const t=_.CollectionUtil.last(this.openBeam.Notes).ParentStaffEntry,e=this.currentMeasure.getVerticalContainerIndexByTimestamp(t.Timestamp),n=t.VerticalContainerParent.StaffEntries.indexOf(t);if(e<this.currentMeasure.VerticalSourceStaffEntryContainers.length-1){const t=this.currentMeasure.VerticalSourceStaffEntryContainers[e+1].StaffEntries[n];if(t)for(let e=0,n=t.VoiceEntries.length;e<n;++e){const n=t.VoiceEntries[e];if(n.ParentVoice===this.voice){const t=n.Notes[0];t.Length.lte(new f.Fraction(1,8))?(this.openBeam.addNoteToBeam(t),this.openBeam=void 0):this.openBeam=void 0}}}else this.openBeam=void 0}}addTuplet(t,e){let n=!1;if(void 0!==e&&e.length>1){let i=t.element("time-modification");i&&(i=i.element("actual-notes"));const s=e;for(let e=0,r=s.length;e<r;++e){const r=s[e];if(void 0!==r&&r.attributes()){const e=r.attribute("bracket");e&&"yes"===e.value&&(n=!0);const s=r.attribute("placement"),o=s&&"below"===s.value,a=r.attribute("type");if(a&&"start"===a.value){let e=1;r.attribute("number")&&(e=parseInt(r.attribute("number").value,10));let s=0;if(i&&(s=parseInt(i.value,10),isNaN(s))){const t=p.ITextTranslation.translateText("ReaderErrorMessages/TupletNoteDurationError","Invalid tuplet note duration.");throw this.musicSheet.SheetErrors.pushMeasureError(t),new g.MusicSheetReadingException(t,void 0)}const a=new d.Tuplet(s,n);a.tupletLabelNumberPlacement=o?P.PlacementEnum.Below:P.PlacementEnum.Above,this.tupletDict[e]&&(delete this.tupletDict[e],0===Object.keys(this.tupletDict).length?this.openTupletNumber=0:Object.keys(this.tupletDict).length>1&&this.openTupletNumber--),this.tupletDict[e]=a;const c=[];c.push(this.currentNote),a.Notes.push(c),a.Fractions.push(this.getTupletNoteDurationFromType(t)),this.currentNote.NoteTuplet=a,this.openTupletNumber=e}else if("stop"===a.value){let e=1;r.attribute("number")&&(e=parseInt(r.attribute("number").value,10));const n=this.tupletDict[e];if(n){const i=[];i.push(this.currentNote),n.Notes.push(i),n.Fractions.push(this.getTupletNoteDurationFromType(t)),this.currentNote.NoteTuplet=n,delete this.tupletDict[e],0===Object.keys(this.tupletDict).length?this.openTupletNumber=0:Object.keys(this.tupletDict).length>1&&this.openTupletNumber--}}}}}else if(e[0]){const i=e[0];if(i.hasAttributes){const e=i.attribute("type").value;let s=1;i.attribute("number")&&(s=parseInt(i.attribute("number").value,10));const r=isNaN(s),o=i.attribute("bracket");o&&"yes"===o.value&&(n=!0);const a=i.attribute("placement"),c=a&&"below"===a.value;if("start"===e){let e=0,i=t.element("time-modification");if(i&&(i=i.element("actual-notes")),i&&(e=parseInt(i.value,10),isNaN(e))){const t=p.ITextTranslation.translateText("ReaderErrorMessages/TupletNoteDurationError","Invalid tuplet note duration.");throw this.musicSheet.SheetErrors.pushMeasureError(t),new g.MusicSheetReadingException(t)}r&&(this.openTupletNumber++,s=this.openTupletNumber);let o=this.tupletDict[s];o||(o=this.tupletDict[s]=new d.Tuplet(e,n),o.tupletLabelNumberPlacement=c?P.PlacementEnum.Below:P.PlacementEnum.Above);const a=[];a.push(this.currentNote),o.Notes.push(a),o.Fractions.push(this.getTupletNoteDurationFromType(t)),this.currentNote.NoteTuplet=o,this.openTupletNumber=s}else if("stop"===e){r&&(s=this.openTupletNumber);const e=this.tupletDict[this.openTupletNumber];if(e){const n=[];n.push(this.currentNote),e.Notes.push(n),e.Fractions.push(this.getTupletNoteDurationFromType(t)),this.currentNote.NoteTuplet=e,0===Object.keys(this.tupletDict).length?this.openTupletNumber=0:Object.keys(this.tupletDict).length>1&&this.openTupletNumber--,delete this.tupletDict[s]}}}}return this.openTupletNumber}handleTimeModificationNode(t){if(this.tupletDict[this.openTupletNumber])try{const e=this.tupletDict[this.openTupletNumber],n=_.CollectionUtil.last(e.Notes);let i;n[0].ParentVoiceEntry.Timestamp.Equals(this.currentVoiceEntry.Timestamp)?i=n:(i=[],e.Notes.push(i),e.Fractions.push(this.getTupletNoteDurationFromType(t))),i.push(this.currentNote),this.currentNote.NoteTuplet=e}catch(t){const e=p.ITextTranslation.translateText("ReaderErrorMessages/TupletNumberError","Invalid tuplet number.");throw this.musicSheet.SheetErrors.pushMeasureError(e),t}else if(this.currentVoiceEntry.Notes.length>0){const t=this.currentVoiceEntry.Notes[0];if(t.NoteTuplet){const e=t.NoteTuplet;_.CollectionUtil.last(e.Notes).push(this.currentNote),this.currentNote.NoteTuplet=e}}}addTie(t,e,n,i){if(t)if(1===t.length){const e=t[0];if(void 0!==e&&e.attributes()){const n=e.attribute("type").value;try{if("start"===n){const t=this.findCurrentNoteInTieDict(this.currentNote);t<0&&delete this.openTieDict[t];const e=this.getNextAvailableNumberForTie(),n=new u.Tie(this.currentNote,i);this.openTieDict[e]=n}else if("stop"===n){const t=this.findCurrentNoteInTieDict(this.currentNote),e=this.openTieDict[t];e&&(e.AddNote(this.currentNote),delete this.openTieDict[t])}}catch(t){const e=p.ITextTranslation.translateText("ReaderErrorMessages/TieError","Error while reading tie.");this.musicSheet.SheetErrors.pushMeasureError(e)}}}else if(2===t.length){const t=this.findCurrentNoteInTieDict(this.currentNote);t>=0&&this.openTieDict[t].AddNote(this.currentNote)}}getNextAvailableNumberForTie(){const t=Object.keys(this.openTieDict);if(0===t.length)return 1;t.sort((t,e)=>+t-+e);for(let e=0;e<t.length;e++)if(""+(e+1)!==t[e])return e+1;return+t[t.length-1]+1}findCurrentNoteInTieDict(t){const e=this.openTieDict;for(const n in e)if(e.hasOwnProperty(n)){const i=e[n],s=i.Notes[0],r=t;if(i.Pitch.FundamentalNote===t.Pitch.FundamentalNote&&i.Pitch.Octave===t.Pitch.Octave)return parseInt(n,10);if(void 0!==s.StringNumber&&s.StringNumber===r.StringNumber)return parseInt(n,10)}return-1}getTupletNoteDurationFromType(t){if(t.element("type")){const e=t.element("type");if(e){const n=e.value;try{return C.NoteTypeHandler.getNoteDurationFromType(n)}catch(t){const e=p.ITextTranslation.translateText("ReaderErrorMessages/NoteDurationError","Invalid note duration.");throw this.musicSheet.SheetErrors.pushMeasureError(e),new g.MusicSheetReadingException("",t)}}}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BeamEnum=e.Beam=void 0,e.Beam=class{constructor(){this.notes=[],this.extendedNoteList=[]}get Notes(){return this.notes}set Notes(t){this.notes=t}get ExtendedNoteList(){return this.extendedNoteList}set ExtendedNoteList(t){this.extendedNoteList=t}addNoteToBeam(t){t&&(t.NoteBeam=this,this.notes.push(t),this.extendedNoteList.push(t))}},function(t){t[t.BeamNone=-1]="BeamNone",t[t.BeamBegin=0]="BeamBegin",t[t.BeamContinue=1]="BeamContinue",t[t.BeamEnd=2]="BeamEnd",t[t.BeamForward=3]="BeamForward",t[t.BeamBackward=4]="BeamBackward"}(e.BeamEnum||(e.BeamEnum={}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Tuplet=void 0,e.Tuplet=class{constructor(t,e=!1){this.notes=[],this.fractions=[],this.tupletLabelNumber=t,this.bracket=e}get TupletLabelNumber(){return this.tupletLabelNumber}set TupletLabelNumber(t){this.tupletLabelNumber=t}get Notes(){return this.notes}set Notes(t){this.notes=t}get Fractions(){return this.fractions}set Fractions(t){this.fractions=t}get Bracket(){return this.bracket}set Bracket(t){this.bracket=t}getNoteIndex(t){for(let e=this.notes.length-1;e>=0;e--)for(let n=0;n<this.notes[e].length;n++)if(t===this.notes[e][n])return e;return 0}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LyricsReader=void 0;const i=n(162),s=n(163),r=n(21);e.LyricsReader=class{constructor(t){this.openLyricWords={},this.musicSheet=t}addLyricEntry(t,e){var n,o;if(t){const a=t;for(let c=0,l=a.length;c<l;++c){const l=a[c];try{let a="single";if(l.element("text")){let c=l.element("text");if(l.element("syllabic")&&(a=l.element("syllabic").value),c){const u=c.value;if(void 0!==l.element("elision")&&"-"===u){const t=l.elements();let e=0;for(let s=0;s<t.length;s++)if("elision"===t[s].name){e=s;break}let n=void 0,i=void 0;if(e>0)for(let s=e;s<t.length;s++){const e=t[s];"text"===e.name&&(n=e),"syllabic"===e.name&&(i=e)}void 0!==n&&i&&(c=n,a="middle")}let h=1,d=!1;if(void 0!==l.attributes()&&l.attribute("number")){try{h=parseInt(l.attribute("number").value,10)}catch(t){d=!0}if(d=d||isNaN(h),d)try{const t=l.attribute("number").value.toLowerCase().split("verse");t.length>1&&(h=parseInt(t[1],10))}catch(t){const e=r.ITextTranslation.translateText("ReaderErrorMessages/LyricVerseNumberError","Invalid lyric verse number");this.musicSheet.SheetErrors.pushMeasureError(e);continue}}let f=void 0;if("single"===a||"end"===a){if(this.openLyricWords[h]){this.currentLyricWord=this.openLyricWords[h];const t=this.currentLyricWord.Syllables.length;f=new s.LyricsEntry(u,h,this.currentLyricWord,e,t),this.currentLyricWord.Syllables.push(f),delete this.openLyricWords[h],this.currentLyricWord=void 0}else f=new s.LyricsEntry(u,h,void 0,e);f.extend=void 0!==l.element("extend")}else if("begin"===a)this.openLyricWords[h]&&(delete this.openLyricWords[h],this.currentLyricWord=void 0),this.currentLyricWord=new i.LyricWord,this.openLyricWords[h]=this.currentLyricWord,f=new s.LyricsEntry(u,h,this.currentLyricWord,e,0),this.currentLyricWord.Syllables.push(f);else if("middle"===a)if(this.openLyricWords[h]){this.currentLyricWord=this.openLyricWords[h];const t=this.currentLyricWord.Syllables.length;f=new s.LyricsEntry(u,h,this.currentLyricWord,e,t),this.currentLyricWord.Syllables.push(f)}else f=new s.LyricsEntry(u,h,void 0,e);f&&(e.LyricsEntries[h]||(e.LyricsEntries.setValue(h,f),(null===(o=null===(n=e.ParentSourceStaffEntry)||void 0===n?void 0:n.VerticalContainerParent)||void 0===o?void 0:o.ParentMeasure)&&(e.ParentSourceStaffEntry.VerticalContainerParent.ParentMeasure.hasLyrics=!0)),e.ParentVoice.Parent.LyricVersesNumbers[h]||e.ParentVoice.Parent.LyricVersesNumbers.push(h))}}}catch(t){const e=r.ITextTranslation.translateText("ReaderErrorMessages/LyricError","Error while reading lyric entry.");this.musicSheet.SheetErrors.pushMeasureError(e);continue}}e.ParentVoice.Parent.LyricVersesNumbers=e.ParentVoice.Parent.LyricVersesNumbers.filter((t,e,n)=>n.indexOf(t)===e)}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StaffEntryLink=void 0,e.StaffEntryLink=class{constructor(t){this.linkStaffEntries=[],this.voiceEntry=t}get GetVoiceEntry(){return this.voiceEntry}get LinkStaffEntries(){return this.linkStaffEntries}set LinkStaffEntries(t){this.linkStaffEntries=t}}},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.ArticulationReader=void 0;const s=n(12),r=i(n(1)),o=n(69),a=n(46),c=n(3),l=n(2);e.ArticulationReader=class{getAccEnumFromString(t){switch(t){case"sharp":return l.AccidentalEnum.SHARP;case"flat":return l.AccidentalEnum.FLAT;case"natural":return l.AccidentalEnum.NATURAL;case"double-sharp":case"sharp-sharp":return l.AccidentalEnum.DOUBLESHARP;case"double-flat":case"flat-flat":return l.AccidentalEnum.DOUBLEFLAT;case"quarter-sharp":return l.AccidentalEnum.QUARTERTONESHARP;case"quarter-flat":return l.AccidentalEnum.QUARTERTONEFLAT;case"triple-sharp":return l.AccidentalEnum.TRIPLESHARP;case"triple-flat":return l.AccidentalEnum.TRIPLEFLAT;default:return l.AccidentalEnum.NONE}}addArticulationExpression(t,e){var n;if(void 0!==t&&t.elements().length>0){const i=t.elements();for(let o=0,a=i.length;o<a;++o){const a=i[o];let c=a.name;try{c=c.replace("-","");let t=s.ArticulationEnum[c];if(s.VoiceEntry.isSupportedArticulation(t)){if("staccato"===c&&e.Articulations.length>0&&e.Articulations[0]!==s.ArticulationEnum.staccato&&e.Articulations.splice(0,0,t),"strongaccent"===c){const e=null===(n=null==a?void 0:a.attribute("type"))||void 0===n?void 0:n.value;"up"===e?t=s.ArticulationEnum.marcatoup:"down"===e&&(t=s.ArticulationEnum.marcatodown)}-1===e.Articulations.indexOf(t)&&e.Articulations.push(t)}}catch(t){const e="Invalid note articulation.";return void r.default.debug("addArticulationExpression",e,t)}}}}addFermata(t,e){let n=s.ArticulationEnum.fermata;t.attributes().length>0&&t.attribute("type")&&"inverted"===t.attribute("type").value&&(n=s.ArticulationEnum.invertedfermata),e.Articulations.push(n)}addTechnicalArticulations(t,e){const n={bend:s.ArticulationEnum.bend,"down-bow":s.ArticulationEnum.downbow,"open-string":s.ArticulationEnum.naturalharmonic,"snap-pizzicato":s.ArticulationEnum.snappizzicato,stopped:s.ArticulationEnum.lefthandpizzicato,"up-bow":s.ArticulationEnum.upbow};for(const s in n){if(!n.hasOwnProperty(s))continue;const i=n[s];t.element(s)&&-1===e.Articulations.indexOf(i)&&e.Articulations.push(i)}const i=t.element("fingering");if(i){const t=new o.TechnicalInstruction;t.type=o.TechnicalInstructionType.Fingering,t.value=i.value,t.placement=c.PlacementEnum.NotYetDefined;const n=i.attribute("placement");if(null!=n)switch(n.value){case"above":t.placement=c.PlacementEnum.Above;break;case"below":t.placement=c.PlacementEnum.Below;break;case"left":t.placement=c.PlacementEnum.Left;break;case"right":t.placement=c.PlacementEnum.Right;break;default:t.placement=c.PlacementEnum.NotYetDefined}e.TechnicalInstructions.push(t)}}addOrnament(t,e){if(t){let n=void 0;const i={"delayed-inverted-turn":a.OrnamentEnum.DelayedInvertedTurn,"delayed-turn":a.OrnamentEnum.DelayedTurn,"inverted-mordent":a.OrnamentEnum.InvertedMordent,"inverted-turn":a.OrnamentEnum.InvertedTurn,mordent:a.OrnamentEnum.Mordent,"trill-mark":a.OrnamentEnum.Trill,turn:a.OrnamentEnum.Turn};for(const e in i){if(!i.hasOwnProperty(e))continue;const s=t.element(e);if(s){n=new a.OrnamentContainer(i[e]);const t=s.attribute("placement");t&&"below"===t.value&&(n.placement=c.PlacementEnum.Below)}}if(n){const i=t.elements("accidental-mark");if(i){let t=c.PlacementEnum.Below,e=l.AccidentalEnum.NONE;const s=i;for(let i=0,r=s.length;i<r;++i){const r=s[i];let o=r.value;e=this.getAccEnumFromString(o);const a=r.attribute("placement");r.hasAttributes&&a&&(o=a.value,"above"===o?t=c.PlacementEnum.Above:"below"===o&&(t=c.PlacementEnum.Below)),t===c.PlacementEnum.Above?n.AccidentalAbove=e:t===c.PlacementEnum.Below&&(n.AccidentalBelow=e)}}e.OrnamentContainer=n}}}}},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.ChordSymbolReader=void 0;const s=n(44),r=n(2),o=n(21),a=i(n(1));e.ChordSymbolReader=class{static readChordSymbol(t,e,n){const i=t.element("root"),c=t.element("kind"),l=c.attribute("text");if(!i||!c)return;const u=i.element("root-step"),h=i.element("root-alter");if(!u)return;let d;try{d=r.NoteEnum[u.value.trim()]}catch(t){const n=o.ITextTranslation.translateText("ReaderErrorMessages/ChordSymbolError","Invalid chord symbol");return e.SheetErrors.pushMeasureError(n),void a.default.debug("InstrumentReader.readChordSymbol",n,t)}let f=r.AccidentalEnum.NONE;if(h)try{f=r.Pitch.AccidentalFromHalfTones(parseInt(h.value,void 0))}catch(t){const n=o.ITextTranslation.translateText("ReaderErrorMessages/ChordSymbolError","Invalid chord symbol");e.SheetErrors.pushMeasureError(n),a.default.debug("InstrumentReader.readChordSymbol",n,t)}const p=new r.Pitch(d,1,f);let m,g=c.value.trim().replace("-","");if(l)switch(l.value){case"aug":g="augmented";break;case"dim":g="diminished"}try{m=s.ChordSymbolEnum[g]}catch(t){const n=o.ITextTranslation.translateText("ReaderErrorMessages/ChordSymbolError","Invalid chord symbol");return e.SheetErrors.pushMeasureError(n),void a.default.debug("InstrumentReader.readChordSymbol",n,t)}let b=void 0;const v=t.element("bass");if(v){const n=v.element("bass-step"),i=v.element("bass-alter");let s=r.NoteEnum.C;if(n)try{s=r.NoteEnum[n.value.trim()]}catch(t){const n=o.ITextTranslation.translateText("ReaderErrorMessages/ChordSymbolError","Invalid chord symbol");return e.SheetErrors.pushMeasureError(n),void a.default.debug("InstrumentReader.readChordSymbol",n,t)}let c=r.AccidentalEnum.NONE;if(i)try{c=r.Pitch.AccidentalFromHalfTones(parseInt(i.value,void 0))}catch(t){const n=o.ITextTranslation.translateText("ReaderErrorMessages/ChordSymbolError","Invalid chord symbol");e.SheetErrors.pushMeasureError(n),a.default.debug("InstrumentReader.readChordSymbol",n,t)}b=new r.Pitch(s,1,c)}let y=void 0;const S=t.element("degree");if(S){const n=S.element("degree-value"),i=S.element("degree-alter"),c=S.element("degree-type");if(!n||!i||!c)return;let l,u,h;try{l=parseInt(n.value.trim(),void 0)}catch(t){const n=o.ITextTranslation.translateText("ReaderErrorMessages/ChordSymbolError","Invalid chord symbol");return e.SheetErrors.pushMeasureError(n),void a.default.debug("InstrumentReader.readChordSymbol",n,t)}try{u=r.Pitch.AccidentalFromHalfTones(parseInt(i.value,void 0))}catch(t){const n=o.ITextTranslation.translateText("ReaderErrorMessages/ChordSymbolError","Invalid chord symbol");return e.SheetErrors.pushMeasureError(n),void a.default.debug("InstrumentReader.readChordSymbol",n,t)}try{h=s.ChordDegreeText[c.value.trim().toLowerCase()]}catch(t){const n=o.ITextTranslation.translateText("ReaderErrorMessages/ChordSymbolError","Invalid chord symbol");return e.SheetErrors.pushMeasureError(n),void a.default.debug("InstrumentReader.readChordSymbol",n,t)}y=new s.Degree(l,u,h)}return new s.ChordSymbolContainer(p,m,b,y,e.Rules)}}},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.ExpressionReader=void 0;const s=n(0),r=n(165),o=n(32),a=n(54),c=n(42),l=n(30),u=n(166),h=n(53),d=n(89),f=n(90),p=n(3),m=n(8),g=n(21),b=i(n(1)),v=n(20);e.ExpressionReader=class{constructor(t,e,n){this.musicSheet=t,this.staffNumber=n,this.globalStaffIndex=t.getGlobalStaffIndexOfFirstStaff(e)+(n-1),this.initialize()}readExpressionParameters(t,e,n,i,r,o,a){this.initialize();const c=t.element("offset");if(void 0!==c&&!a)try{this.offsetDivisions=parseInt(c.value,10)}catch(t){const e="ReaderErrorMessages/ExpressionOffsetError, Invalid expression offset -> set to default.";b.default.debug("ExpressionReader.readExpressionParameters",e,t),this.musicSheet.SheetErrors.pushMeasureError(e),this.offsetDivisions=0}this.directionTimestamp=s.Fraction.createFromFraction(i);let l=new s.Fraction(Math.abs(this.offsetDivisions),4*n);this.offsetDivisions>0?i.RealValue>0?(l=s.Fraction.multiply(s.Fraction.minus(i,r),l),this.directionTimestamp=s.Fraction.plus(l,i)):this.directionTimestamp=s.Fraction.createFromFraction(l):this.offsetDivisions<0&&(i.RealValue>0?(l=s.Fraction.multiply(s.Fraction.minus(i,r),l),this.directionTimestamp=s.Fraction.minus(i,l)):this.directionTimestamp=s.Fraction.createFromFraction(l));const u=t.attribute("placement");if(null!=u)try{const t=u.value;"below"===t?this.placement=p.PlacementEnum.Below:"above"===t&&(this.placement=p.PlacementEnum.Above)}catch(t){const e=g.ITextTranslation.translateText("ReaderErrorMessages/ExpressionPlacementError","Invalid expression placement -> set to default.");b.default.debug("ExpressionReader.readExpressionParameters",e,t),this.musicSheet.SheetErrors.pushMeasureError(e),this.placement=p.PlacementEnum.Below}if(this.placement===p.PlacementEnum.NotYetDefined)try{const e=t.element("direction-type");if(e){const t=e.element("dynamics");if(t){const e=t.attribute("default-y");null!=e&&this.readExpressionPlacement(e,"read dynamics y pos")}const n=e.element("wedge");if(n){const t=n.attribute("default-y");null!=t&&this.readExpressionPlacement(t,"read wedge y pos")}const i=e.element("words");if(i){const t=i.attribute("default-y");null!=t&&this.readExpressionPlacement(t,"read words y pos")}}}catch(t){const e=g.ITextTranslation.translateText("ReaderErrorMessages/ExpressionPlacementError","Invalid expression placement -> set to default.");b.default.debug("ExpressionReader.readExpressionParameters",e,t),this.musicSheet.SheetErrors.pushMeasureError(e),this.placement=p.PlacementEnum.Below}this.placement===p.PlacementEnum.NotYetDefined&&(e.Staves.length>1?this.placement=p.PlacementEnum.Below:e.HasLyrics?this.placement=p.PlacementEnum.Above:this.placement=p.PlacementEnum.Below)}read(t,e,n){let i=!1,r=!1;const o=t.element("sound");if(o){const t=o.attribute("tempo"),n=o.attribute("dynamics");if(t){const n=t.value.match(/\d+/);this.soundTempo=void 0!==n?parseInt(n[0],10):100,e.TempoInBPM=this.soundTempo,this.musicSheet.HasBPMInfo=!0,i=!0}if(n){const t=n.value.match(/\d+/);this.soundDynamic=void 0!==t?parseInt(t[0],10):100,r=!0}}const a=t.element("direction-type");if(!a)return;let c=a.element("metronome");if(c){const t=c.element("beat-unit"),i=void 0!==c.element("beat-unit-dot"),r=c.element("per-minute");if(void 0!==t&&r){c.hasAttributes&&void 0!==c.attribute("default-x")&&(this.directionTimestamp=s.Fraction.createFromFraction(n));const o=parseInt(r.value,10);this.createNewTempoExpressionIfNeeded(e);const a=new h.InstantaneousTempoExpression(void 0,this.placement,this.staffNumber,o,this.currentMultiTempoExpression,!0);this.soundTempo=o,e.TempoInBPM=this.soundTempo,this.musicSheet.HasBPMInfo=!0,a.dotted=i,a.beatUnit=t.value,this.currentMultiTempoExpression.addExpression(a,""),this.currentMultiTempoExpression.CombinedExpressionsText="test"}}else if(c=a.element("dynamics"),c){const i=void 0!==t.element("notations");this.interpretInstantaneousDynamics(c,e,n,i)}else if(c=a.element("words"),c)if(i){this.createNewTempoExpressionIfNeeded(e),this.currentMultiTempoExpression.CombinedExpressionsText=c.value;const t=new h.InstantaneousTempoExpression(c.value,this.placement,this.staffNumber,this.soundTempo,this.currentMultiTempoExpression);this.currentMultiTempoExpression.addExpression(t,"")}else r||this.interpretWords(c,e,n);else c=a.element("wedge"),c&&this.interpretWedge(c,e,n,e.MeasureNumber)}checkForOpenExpressions(t,e){this.openContinuousDynamicExpression&&(this.createNewMultiExpressionIfNeeded(t,e),this.closeOpenContinuousDynamic()),this.openContinuousTempoExpression&&this.closeOpenContinuousTempo(s.Fraction.plus(t.AbsoluteTimestamp,e))}addOctaveShift(t,e,n){let i=1;const s=t.element("staff");if(s)try{i=parseInt(s.value,10)}catch(t){const e=g.ITextTranslation.translateText("ReaderErrorMessages/OctaveShiftStaffError","Invalid octave shift staff number -> set to default");this.musicSheet.SheetErrors.pushMeasureError(e),i=1,b.default.debug("ExpressionReader.addOctaveShift",e,t)}const r=t.element("direction-type");if(r){const s=r.element("octave-shift");if(void 0!==s&&s.hasAttributes)try{if(s.attribute("size")){const t=parseInt(s.attribute("size").value,10);let r=0;if(8===t?r=1:15===t&&(r=2),s.attribute("type")){const t=s.attribute("type").value;if("up"===t||"down"===t){const n=new l.OctaveShift(t,r);n.StaffNumber=i,this.createNewMultiExpressionIfNeeded(e),this.getMultiExpression.OctaveShiftStart=n,n.ParentStartMultiExpression=this.getMultiExpression,this.openOctaveShift=n}else"stop"===t&&this.openOctaveShift&&(this.createNewMultiExpressionIfNeeded(e,n),this.getMultiExpression.OctaveShiftEnd=this.openOctaveShift,this.openOctaveShift.ParentEndMultiExpression=this.getMultiExpression,this.openOctaveShift=void 0)}}}catch(t){const e=g.ITextTranslation.translateText("ReaderErrorMessages/OctaveShiftError","Error while reading octave shift.");this.musicSheet.SheetErrors.pushMeasureError(e),b.default.debug("ExpressionReader.addOctaveShift",e,t)}}}initialize(){this.placement=p.PlacementEnum.NotYetDefined,this.soundTempo=0,this.soundDynamic=0,this.offsetDivisions=0}readExpressionPlacement(t,e){try{const e=parseInt(t.value,10);e<0?this.placement=p.PlacementEnum.Below:e>0&&(this.placement=p.PlacementEnum.Above)}catch(t){b.default.debug("ExpressionReader.readExpressionParameters",e,t)}}interpretInstantaneousDynamics(t,e,n,i){if(t.hasElements){t.hasAttributes&&t.attribute("default-x")&&(this.directionTimestamp=s.Fraction.createFromFraction(n));let r=t.elements()[0].name;if("other-dynamics"===r&&(r=t.elements()[0].value),r){i?this.createNewMultiExpressionIfNeeded(e,s.Fraction.createFromFraction(n)):this.createNewMultiExpressionIfNeeded(e),void 0!==this.openContinuousDynamicExpression&&this.openContinuousDynamicExpression.StartMultiExpression!==this.getMultiExpression&&this.closeOpenContinuousDynamic();const t=new c.InstantaneousDynamicExpression(r,this.soundDynamic,this.placement,this.staffNumber,e);this.getMultiExpression.addExpression(t,""),this.initialize(),this.activeInstantaneousDynamic?this.activeInstantaneousDynamic.DynEnum=t.DynEnum:this.activeInstantaneousDynamic=new c.InstantaneousDynamicExpression(r,0,p.PlacementEnum.NotYetDefined,1,e)}}}interpretWords(t,e,n){const i=t.value;let r;const o=t.attribute("font-style");if(o&&"italic"===o.value&&(r=v.FontStyles.Italic),i.length>0){if(t.hasAttributes&&t.attribute("default-x")&&(this.directionTimestamp=s.Fraction.createFromFraction(n)),this.checkIfWordsNodeIsRepetitionInstruction(i))return;this.fillMultiOrTempoExpression(i,e,r),this.initialize()}}interpretWedge(t,e,n,i){void 0!==t&&t.hasAttributes&&t.attribute("default-x")&&(this.directionTimestamp=s.Fraction.createFromFraction(n)),this.createNewMultiExpressionIfNeeded(e),this.addWedge(t,e),this.initialize()}createNewMultiExpressionIfNeeded(t,e){e||(e=this.directionTimestamp),(!this.getMultiExpression||this.getMultiExpression&&(this.getMultiExpression.SourceMeasureParent!==t||this.getMultiExpression.SourceMeasureParent===t&&this.getMultiExpression.Timestamp!==e))&&(this.getMultiExpression=new u.MultiExpression(t,s.Fraction.createFromFraction(e)),t.StaffLinkedExpressions[this.globalStaffIndex].push(this.getMultiExpression))}createNewTempoExpressionIfNeeded(t){this.currentMultiTempoExpression&&this.currentMultiTempoExpression.SourceMeasureParent===t&&this.currentMultiTempoExpression.Timestamp===this.directionTimestamp||(this.currentMultiTempoExpression=new r.MultiTempoExpression(t,s.Fraction.createFromFraction(this.directionTimestamp)),t.TempoExpressions.push(this.currentMultiTempoExpression))}addWedge(t,e){if(void 0!==t&&t.hasAttributes){const n=t.attribute("type").value.toLowerCase();try{if("crescendo"===n||"diminuendo"===n){const t=new o.ContinuousDynamicExpression(o.ContDynamicEnum[n],this.placement,this.staffNumber,e);this.openContinuousDynamicExpression&&this.closeOpenContinuousDynamic(),this.openContinuousDynamicExpression=t,this.getMultiExpression.StartingContinuousDynamic=t,t.StartMultiExpression=this.getMultiExpression,void 0!==this.activeInstantaneousDynamic&&this.activeInstantaneousDynamic.StaffNumber===t.StaffNumber&&(this.activeInstantaneousDynamic=void 0)}else"stop"===n&&this.openContinuousDynamicExpression&&this.closeOpenContinuousDynamic()}catch(t){const e="ReaderErrorMessages/WedgeError, Error while reading Crescendo / Diminuendo.";this.musicSheet.SheetErrors.pushMeasureError(e),b.default.debug("ExpressionReader.addWedge",e,t)}}}fillMultiOrTempoExpression(t,e,n){if(!t)return;const i=t.trim();this.createExpressionFromString("",i,e,t,n)}createExpressionFromString(t,e,n,i,s){if(h.InstantaneousTempoExpression.isInputStringInstantaneousTempo(e)||a.ContinuousTempoExpression.isInputStringContinuousTempo(e)){if(n.TempoExpressions.length>0)for(let t=0,i=n.TempoExpressions.length;t<i;++t){const i=n.TempoExpressions[t];if(i.Timestamp===this.directionTimestamp&&void 0!==i.InstantaneousTempo&&-1!==i.InstantaneousTempo.Label.indexOf(e))return!1}if(this.createNewTempoExpressionIfNeeded(n),this.currentMultiTempoExpression.CombinedExpressionsText=i,h.InstantaneousTempoExpression.isInputStringInstantaneousTempo(e)){const n=new h.InstantaneousTempoExpression(e,this.placement,this.staffNumber,this.soundTempo,this.currentMultiTempoExpression);return this.currentMultiTempoExpression.addExpression(n,t),!0}if(a.ContinuousTempoExpression.isInputStringContinuousTempo(e)){const n=new a.ContinuousTempoExpression(e,this.placement,this.staffNumber,this.currentMultiTempoExpression);return this.currentMultiTempoExpression.addExpression(n,t),!0}}if(c.InstantaneousDynamicExpression.isInputStringInstantaneousDynamic(e)||o.ContinuousDynamicExpression.isInputStringContinuousDynamic(e)){if(this.createNewMultiExpressionIfNeeded(n),c.InstantaneousDynamicExpression.isInputStringInstantaneousDynamic(e)){void 0===this.openContinuousDynamicExpression||this.openContinuousDynamicExpression.EndMultiExpression||this.closeOpenContinuousDynamic();const i=new c.InstantaneousDynamicExpression(e,this.soundDynamic,this.placement,this.staffNumber,n);return this.getMultiExpression.addExpression(i,t),!0}if(o.ContinuousDynamicExpression.isInputStringContinuousDynamic(e)){const i=new o.ContinuousDynamicExpression(void 0,this.placement,this.staffNumber,n,e);return void 0===this.openContinuousDynamicExpression||this.openContinuousDynamicExpression.EndMultiExpression||this.closeOpenContinuousDynamic(),void 0!==this.activeInstantaneousDynamic&&this.activeInstantaneousDynamic.StaffNumber===i.StaffNumber&&(this.activeInstantaneousDynamic=void 0),this.openContinuousDynamicExpression=i,i.StartMultiExpression=this.getMultiExpression,this.getMultiExpression.addExpression(i,t),!0}}if(d.MoodExpression.isInputStringMood(e)){this.createNewMultiExpressionIfNeeded(n),n.hasMoodExpressions=!0;const i=new d.MoodExpression(e,this.placement,this.staffNumber);return i.fontStyle=s,this.getMultiExpression.addExpression(i,t),!0}if(this.createNewMultiExpressionIfNeeded(n),n.TempoExpressions.length>0)for(let o=0,a=n.TempoExpressions.length;o<a;++o){const t=n.TempoExpressions[o];if(t.Timestamp===this.directionTimestamp&&void 0!==t.InstantaneousTempo&&t.EntriesList.length>0&&!this.hasDigit(e)&&this.globalStaffIndex>0){if(t.EntriesList[0].label.indexOf(e)>=0)return!1;break}}let r=m.TextAlignmentEnum.CenterBottom;this.musicSheet.Rules.CompactMode&&(r=m.TextAlignmentEnum.LeftBottom);const l=new f.UnknownExpression(e,this.placement,r,this.staffNumber);return l.fontStyle=s,this.getMultiExpression.addExpression(l,t),!1}closeOpenContinuousDynamic(){this.openContinuousDynamicExpression.EndMultiExpression=this.getMultiExpression,this.getMultiExpression.EndingContinuousDynamic=this.openContinuousDynamicExpression,this.openContinuousDynamicExpression=void 0}closeOpenContinuousTempo(t){this.openContinuousTempoExpression.AbsoluteEndTimestamp=t,this.openContinuousTempoExpression=void 0}checkIfWordsNodeIsRepetitionInstruction(t){return"coda"===(t=t.trim().toLowerCase())||"tocoda"===t||"to coda"===t||"fine"===t||"d.c."===t||"dacapo"===t||"da capo"===t||"d.s."===t||"dalsegno"===t||"dal segno"===t||"d.c. al fine"===t||"d.s. al fine"===t||"d.c. al coda"===t||"d.s. al coda"===t}hasDigit(t){return/\d/.test(t)}}},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.SlurReader=void 0;const s=n(167),r=i(n(1)),o=n(21);e.SlurReader=class{constructor(t){this.openSlurDict={},this.musicSheet=t}addSlur(t,e){try{if(t)for(const n of t)if(n.attributes().length>0){const i=n.attribute("type").value;let o=1;try{n.attribute("number")&&(o=parseInt(n.attribute("number").value,10))}catch(t){r.default.debug("VoiceGenerator.addSlur number: ",t)}if("start"===i){let t=this.openSlurDict[o];t||(t=new s.Slur,this.openSlurDict[o]=t),t.StartNote=e}else if("stop"===i){const t=this.openSlurDict[o];t&&(t.EndNote=e,e.checkForDoubleSlur(t)||(e.NoteSlurs.push(t),t.StartNote.NoteSlurs.push(t)),delete this.openSlurDict[o])}}}catch(t){const e=o.ITextTranslation.translateText("ReaderErrorMessages/SlurError","Error while reading slur.");this.musicSheet.SheetErrors.pushMeasureError(e)}}}},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.SubInstrument=void 0;const s=n(7),r=i(n(1));class o{constructor(t){this.parentInstrument=t,this.fixedKey=-1,this.name=this.parseMidiInstrument(this.parentInstrument.Name),this.midiInstrumentID=o.midiInstrument[this.name],this.volume=1}get ParentInstrument(){return this.parentInstrument}static isPianoInstrument(t){return t===s.MidiInstrument.Acoustic_Grand_Piano||t===s.MidiInstrument.Bright_Acoustic_Piano||t===s.MidiInstrument.Electric_Grand_Piano||t===s.MidiInstrument.Electric_Piano_1||t===s.MidiInstrument.Electric_Piano_2}setMidiInstrument(t){this.midiInstrumentID=o.midiInstrument[this.parseMidiInstrument(t)]}parseMidiInstrument(t){try{if(t){const e=t.toLowerCase().trim();for(const t in o.midiInstrument)if(-1!==e.indexOf(t))return t}if(this.parentInstrument.Name){const t=this.parentInstrument.Name.toLowerCase().trim();for(const e in o.midiInstrument)if(-1!==t.indexOf(e))return e}}catch(t){r.default.error("Error parsing MIDI Instrument. Default to Grand Piano.")}return"unnamed"}}e.SubInstrument=o,o.midiInstrument={alt:s.MidiInstrument.Synth_Voice,alto:s.MidiInstrument.Synth_Voice,banjo:s.MidiInstrument.Banjo,bariton:s.MidiInstrument.Synth_Voice,baritone:s.MidiInstrument.Synth_Voice,bass:s.MidiInstrument.Synth_Voice,"blockflöte":s.MidiInstrument.Recorder,brass:s.MidiInstrument.Trombone,bratsche:s.MidiInstrument.Viola,cello:s.MidiInstrument.Cello,clarinet:s.MidiInstrument.Clarinet,contrabass:s.MidiInstrument.Contrabass,drums:s.MidiInstrument.Percussion,flute:s.MidiInstrument.Flute,"flöte":s.MidiInstrument.Flute,frenchhorn:s.MidiInstrument.French_Horn,gitarre:s.MidiInstrument.Acoustic_Guitar_nylon,guitar:s.MidiInstrument.Acoustic_Guitar_nylon,harfe:s.MidiInstrument.Orchestral_Harp,harp:s.MidiInstrument.Orchestral_Harp,klarinette:s.MidiInstrument.Clarinet,klavier:s.MidiInstrument.Acoustic_Grand_Piano,kontrabass:s.MidiInstrument.Contrabass,oboe:s.MidiInstrument.Oboe,organ:s.MidiInstrument.Church_Organ,orgel:s.MidiInstrument.Church_Organ,orgue:s.MidiInstrument.Church_Organ,percussion:s.MidiInstrument.Percussion,piano:s.MidiInstrument.Acoustic_Grand_Piano,piccolo:s.MidiInstrument.Piccolo,posaune:s.MidiInstrument.Trombone,recorder:s.MidiInstrument.Recorder,sax:s.MidiInstrument.Tenor_Sax,schlagwerk:s.MidiInstrument.Percussion,schlagzeug:s.MidiInstrument.Percussion,sopran:s.MidiInstrument.Synth_Voice,steeldrum:s.MidiInstrument.Steel_Drums,streicher:s.MidiInstrument.String_Ensemble_1,strings:s.MidiInstrument.String_Ensemble_1,tenor:s.MidiInstrument.Synth_Voice,tpt:s.MidiInstrument.Trumpet,trombone:s.MidiInstrument.Trombone,trompete:s.MidiInstrument.Trumpet,trumpet:s.MidiInstrument.Trumpet,tuba:s.MidiInstrument.Tuba,unnamed:s.MidiInstrument.Acoustic_Grand_Piano,viola:s.MidiInstrument.Viola,violin:s.MidiInstrument.Violin,"violon-c":s.MidiInstrument.Cello,"violon.":s.MidiInstrument.Violin,voice:s.MidiInstrument.Synth_Voice,woodblock:s.MidiInstrument.Woodblock}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MusicSymbolModuleFactory=void 0;const i=n(139),s=n(140);e.MusicSymbolModuleFactory=class{static createRepetitionInstructionReader(){return new i.RepetitionInstructionReader}static createRepetitionCalculator(){return new s.RepetitionCalculator}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RepetitionInstructionReader=void 0;const i=n(28),s=n(28),r=n(168);e.RepetitionInstructionReader=class{set MusicSheet(t){this.musicSheet=t,this.xmlMeasureList=new Array(this.musicSheet.Instruments.length),this.repetitionInstructions=[]}prepareReadingMeasure(t,e){this.currentMeasureIndex=e}handleLineRepetitionInstructions(t){let e=!1;if(t.elements().length>0){let n="",s=!1,r="",o="",a="";const c=[],l=t.element("bar-style");l&&(a=l.value),n=t.attributes().length>0&&t.attribute("location")?t.attribute("location").value:"right";const u=t.elements();for(let t=0,e=u.length;t<e;++t){const e=u[t];if("repeat"===e.name&&e.hasAttributes)s=!0,r=e.attribute("direction").value;else if("ending"===e.name&&e.hasAttributes&&void 0!==e.attribute("type")&&e.attribute("number")){o=e.attribute("type").value;const t=e.attribute("number").value.split("[,+]");for(let e=0,n=t.length;e<n;++e){const n=t[e],i=n.match("[0-9]");if(-1!==n.search("-")&&2===i.length){const t=parseInt(i[0],10),e=parseInt(i[1],10);for(let n=t;n<=e;n++)c.push(n)}else for(let t=0,e=i.length;t<e;++t){const e=i[t];c.push(parseInt(e,10))}}}}if("light-heavy"!==a||0!==c.length||s||(e=!0),s||c.length>0)if("left"===n){if("start"===o){const t=new i.RepetitionInstruction(this.currentMeasureIndex,i.RepetitionInstructionEnum.Ending,i.AlignmentType.Begin,void 0,c);this.addInstruction(this.repetitionInstructions,t)}if("forward"===r){const t=new i.RepetitionInstruction(this.currentMeasureIndex,i.RepetitionInstructionEnum.StartLine);this.addInstruction(this.repetitionInstructions,t)}}else{if("stop"===o){const t=new i.RepetitionInstruction(this.currentMeasureIndex,i.RepetitionInstructionEnum.Ending,i.AlignmentType.End,void 0,c);this.addInstruction(this.repetitionInstructions,t)}if("backward"===r){const t=new i.RepetitionInstruction(this.currentMeasureIndex,i.RepetitionInstructionEnum.BackJumpLine);this.addInstruction(this.repetitionInstructions,t)}}}return e}handleRepetitionInstructionsFromWordsOrSymbols(t,e){const n=t.element("words");if(n){const t="d\\s?\\.s\\.",s=n.value.trim().toLowerCase();if(r.StringUtil.StringContainsSeparatedWord(s,t+" al fine")){let t=this.currentMeasureIndex;e<.5&&this.currentMeasureIndex<this.xmlMeasureList[0].length-1&&t--;const n=new i.RepetitionInstruction(t,i.RepetitionInstructionEnum.DalSegnoAlFine);return this.addInstruction(this.repetitionInstructions,n),!0}const o="d\\.\\s?c\\.";if(r.StringUtil.StringContainsSeparatedWord(s,o+" al coda")){let t=this.currentMeasureIndex;e<.5&&t--;const n=new i.RepetitionInstruction(t,i.RepetitionInstructionEnum.DalSegnoAlCoda);return this.addInstruction(this.repetitionInstructions,n),!0}if(r.StringUtil.StringContainsSeparatedWord(s,o+" al fine")){let t=this.currentMeasureIndex;e<.5&&this.currentMeasureIndex<this.xmlMeasureList[0].length-1&&t--;const n=new i.RepetitionInstruction(t,i.RepetitionInstructionEnum.DaCapoAlFine);return this.addInstruction(this.repetitionInstructions,n),!0}if(r.StringUtil.StringContainsSeparatedWord(s,o+" al coda")){let t=this.currentMeasureIndex;e<.5&&t--;const n=new i.RepetitionInstruction(t,i.RepetitionInstructionEnum.DaCapoAlCoda);return this.addInstruction(this.repetitionInstructions,n),!0}if(r.StringUtil.StringContainsSeparatedWord(s,o)||r.StringUtil.StringContainsSeparatedWord(s,"da\\s?capo")){let t=this.currentMeasureIndex;e<.5&&this.currentMeasureIndex<this.xmlMeasureList[0].length-1&&t--;const n=new i.RepetitionInstruction(t,i.RepetitionInstructionEnum.DaCapo);return this.addInstruction(this.repetitionInstructions,n),!0}if(r.StringUtil.StringContainsSeparatedWord(s,t)||r.StringUtil.StringContainsSeparatedWord(s,"dal\\s?segno")){let t=this.currentMeasureIndex;e<.5&&this.currentMeasureIndex<this.xmlMeasureList[0].length-1&&t--;const n=new i.RepetitionInstruction(t,i.RepetitionInstructionEnum.DalSegno);return this.addInstruction(this.repetitionInstructions,n),!0}if(r.StringUtil.StringContainsSeparatedWord(s,"to\\s?coda")||r.StringUtil.StringContainsSeparatedWord(s,"a (la )?coda")){let t=this.currentMeasureIndex;e<.5&&t--;const n=new i.RepetitionInstruction(t,i.RepetitionInstructionEnum.ToCoda);return this.addInstruction(this.repetitionInstructions,n),!0}if(r.StringUtil.StringContainsSeparatedWord(s,"fine")){let t=this.currentMeasureIndex;e<.5&&t--;const n=new i.RepetitionInstruction(t,i.RepetitionInstructionEnum.Fine);return this.addInstruction(this.repetitionInstructions,n),!0}if(r.StringUtil.StringContainsSeparatedWord(s,"coda")){let t=this.currentMeasureIndex;e>.5&&t++;const n=new i.RepetitionInstruction(t,i.RepetitionInstructionEnum.Coda);return this.addInstruction(this.repetitionInstructions,n),!0}if(r.StringUtil.StringContainsSeparatedWord(s,"segno")){let t=this.currentMeasureIndex;e>.5&&t++;const n=new i.RepetitionInstruction(t,i.RepetitionInstructionEnum.Segno);return this.addInstruction(this.repetitionInstructions,n),!0}}else{if(t.element("segno")){let t=this.currentMeasureIndex;e>.5&&t++;const n=new i.RepetitionInstruction(t,i.RepetitionInstructionEnum.Segno);return this.addInstruction(this.repetitionInstructions,n),!0}if(t.element("coda")){let t=this.currentMeasureIndex;e>.5&&t++;const n=new i.RepetitionInstruction(t,i.RepetitionInstructionEnum.Coda);return this.addInstruction(this.repetitionInstructions,n),!0}}return!1}removeRedundantInstructions(){let t=0,e=0,n=0,r=0;for(let s=0;s<this.repetitionInstructions.length;s++){const o=this.repetitionInstructions[s];switch(o.type){case i.RepetitionInstructionEnum.Coda:n>0&&this.findInstructionInPreviousMeasure(s,o.measureIndex,i.RepetitionInstructionEnum.ToCoda)&&(o.type=i.RepetitionInstructionEnum.None),0===e&&0===n&&(o.type=i.RepetitionInstructionEnum.ToCoda,o.alignment=i.AlignmentType.End,o.measureIndex--);break;case i.RepetitionInstructionEnum.Segno:if(t-r>0){let t=!1;for(let s=0,r=this.repetitionInstructions.length;s<r;++s){const r=this.repetitionInstructions[s];if(o.measureIndex-r.measureIndex==1)switch(r.type){case i.RepetitionInstructionEnum.BackJumpLine:r.type=n-e>0?i.RepetitionInstructionEnum.DalSegnoAlCoda:i.RepetitionInstructionEnum.DalSegno,o.type=i.RepetitionInstructionEnum.None,t=!0;break;case i.RepetitionInstructionEnum.DalSegno:case i.RepetitionInstructionEnum.DalSegnoAlFine:case i.RepetitionInstructionEnum.DalSegnoAlCoda:o.type=i.RepetitionInstructionEnum.None,t=!0}if(t)break}if(t)break;o.type=n-e>0?i.RepetitionInstructionEnum.DalSegnoAlCoda:i.RepetitionInstructionEnum.DalSegno,o.alignment=i.AlignmentType.End,o.measureIndex--}}if(this.backwardSearchForPreviousIdenticalInstruction(s,o)||o.type===i.RepetitionInstructionEnum.None)this.repetitionInstructions.splice(s,1),s--;else switch(o.type){case i.RepetitionInstructionEnum.Fine:break;case i.RepetitionInstructionEnum.ToCoda:n++;break;case i.RepetitionInstructionEnum.Coda:e++;break;case i.RepetitionInstructionEnum.Segno:t++;break;case i.RepetitionInstructionEnum.DalSegnoAlFine:case i.RepetitionInstructionEnum.DalSegnoAlCoda:r++}}this.repetitionInstructions.sort(s.RepetitionInstructionComparer.Compare)}findInstructionInPreviousMeasure(t,e,n){for(let i=t-1;i>=0;i--){const t=this.repetitionInstructions[i];if(e-t.measureIndex==1&&t.type===n)return!0}return!1}backwardSearchForPreviousIdenticalInstruction(t,e){for(let n=t-1;n>=0;n--)if(this.repetitionInstructions[n].equals(e))return!0;return!1}addInstruction(t,e){let n=!0;for(let i=0,s=t.length;i<s;++i){const s=t[i];if(e.equals(s)){n=!1;break}}n&&t.push(e)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RepetitionCalculator=void 0;const i=n(28),s=n(28),r=n(11);e.RepetitionCalculator=class{constructor(){this.repetitionInstructions=[]}calculateRepetitions(t,e){this.musicSheet=t,this.repetitionInstructions=e;const n=this.musicSheet.SourceMeasures;for(let i=0,s=this.repetitionInstructions.length;i<s;++i){const t=this.repetitionInstructions[i];this.currentMeasureIndex=t.measureIndex,this.currentMeasure=n[this.currentMeasureIndex],this.handleRepetitionInstructions(t)}for(let i=0,r=this.musicSheet.SourceMeasures.length;i<r;++i){const t=this.musicSheet.SourceMeasures[i];t.FirstRepetitionInstructions.length>1&&t.FirstRepetitionInstructions.sort(s.RepetitionInstructionComparer.Compare),t.LastRepetitionInstructions.length>1&&t.LastRepetitionInstructions.sort(s.RepetitionInstructionComparer.Compare)}}handleRepetitionInstructions(t){if(!this.currentMeasure)return!1;switch(t.type){case i.RepetitionInstructionEnum.StartLine:this.currentMeasure.FirstRepetitionInstructions.push(t);break;case i.RepetitionInstructionEnum.BackJumpLine:this.currentMeasure.LastRepetitionInstructions.push(t);break;case i.RepetitionInstructionEnum.Ending:if(t.alignment===i.AlignmentType.Begin)this.currentMeasure.FirstRepetitionInstructions.push(t);else for(let e=0,n=t.endingIndices.length;e<n;++e)this.currentMeasure.LastRepetitionInstructions.push(t);break;case i.RepetitionInstructionEnum.Segno:this.currentMeasure.FirstRepetitionInstructions.push(t);break;case i.RepetitionInstructionEnum.Fine:case i.RepetitionInstructionEnum.ToCoda:case i.RepetitionInstructionEnum.Coda:case i.RepetitionInstructionEnum.DaCapo:case i.RepetitionInstructionEnum.DalSegno:case i.RepetitionInstructionEnum.DalSegnoAlFine:case i.RepetitionInstructionEnum.DaCapoAlFine:case i.RepetitionInstructionEnum.DalSegnoAlCoda:case i.RepetitionInstructionEnum.DaCapoAlCoda:this.currentMeasure.LastRepetitionInstructions.push(t);break;case i.RepetitionInstructionEnum.None:break;default:throw new r.ArgumentOutOfRangeException("currentRepetitionInstruction")}return!0}}},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.SvgVexFlowBackend=void 0;const s=i(n(9)),r=n(72),o=n(14),a=n(20),c=n(25);class l extends r.VexFlowBackend{constructor(t){super(),this.rules=t}getVexflowBackendType(){return s.default.Flow.Renderer.Backends.SVG}getOSMDBackendType(){return c.BackendType.SVG}getCanvasSize(){var t;return null===(t=document.getElementById("osmdCanvasPage"+this.graphicalMusicPage.PageNumber))||void 0===t?void 0:t.offsetHeight}initialize(t){this.canvas=document.createElement("div"),this.canvas.id="osmdCanvasPage"+this.graphicalMusicPage.PageNumber,this.inner=this.canvas,this.inner.style.position="relative",this.canvas.style.zIndex="0",t.appendChild(this.inner),this.renderer=new s.default.Flow.Renderer(this.canvas,this.getVexflowBackendType()),this.ctx=this.renderer.getContext()}getContext(){return this.ctx}getSvgElement(){return this.ctx.svg}clear(){if(!this.ctx)return;const t=this.ctx.svg;for(;t.lastChild;)t.removeChild(t.lastChild);this.rules.PageBackgroundColor&&(this.ctx.save(),this.ctx.setFillStyle(this.rules.PageBackgroundColor),this.ctx.fillRect(0,0,this.canvas.offsetWidth,this.canvas.offsetHeight),this.ctx.restore())}scale(t){this.ctx.scale(t,t)}translate(t,e){}renderText(t,e,n,i,s,r,c,l){this.ctx.save(),c&&(this.ctx.attributes.fill=c,this.ctx.attributes.stroke=c);let u=l;l&&"default"!==l||(u=this.rules.DefaultFontFamily),this.ctx.setFont(u,t,o.VexFlowConverter.fontStyle(e)),this.ctx.attributes["font-size"]=t+"px",this.ctx.state["font-size"]=t+"px";let h="normal",d="normal";switch(e){case a.FontStyles.Bold:h="bold";break;case a.FontStyles.Italic:d="italic";break;case a.FontStyles.BoldItalic:h="bold",d="italic";break;default:h="normal"}this.ctx.attributes["font-weight"]=h,this.ctx.state["font-weight"]=h,this.ctx.attributes["font-style"]=d,this.ctx.state["font-style"]=d,this.ctx.fillText(i,r.x,r.y+s),this.ctx.restore()}renderRectangle(t,e,n=1){this.ctx.save(),this.ctx.attributes.fill=o.VexFlowConverter.style(e),this.ctx.attributes["fill-opacity"]=n,this.ctx.fillRect(t.x,t.y,t.width,t.height),this.ctx.restore(),this.ctx.attributes["fill-opacity"]=1}renderLine(t,e,n="#FF0000FF",i=2){this.ctx.save(),this.ctx.beginPath(),this.ctx.moveTo(t.x,t.y),this.ctx.lineTo(e.x,e.y),this.ctx.attributes.stroke=n,this.ctx.lineWidth=i,this.ctx.stroke(),this.ctx.restore()}renderCurve(t){this.ctx.beginPath(),this.ctx.moveTo(t[0].x,t[0].y),this.ctx.bezierCurveTo(t[1].x,t[1].y,t[2].x,t[2].y,t[3].x,t[3].y),this.ctx.lineTo(t[7].x,t[7].y),this.ctx.bezierCurveTo(t[6].x,t[6].y,t[5].x,t[5].y,t[4].x,t[4].y),this.ctx.lineTo(t[0].x,t[0].y),this.ctx.closePath(),this.ctx.fill()}}e.SvgVexFlowBackend=l},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.MXLHelper=void 0;const s=n(59),r=i(n(169));e.MXLHelper=class{static MXLtoIXmlElement(t){const e=new r.default;return e.loadAsync(t).then(t=>e.file("META-INF/container.xml").async("text"),t=>{throw t}).then(t=>{const n=(new DOMParser).parseFromString(t,"text/xml").getElementsByTagName("rootfile")[0].getAttribute("full-path");return e.file(n).async("text")},t=>{throw t}).then(t=>{const e=(new DOMParser).parseFromString(t,"text/xml"),n=new s.IXmlElement(e.documentElement);return Promise.resolve(n)},t=>{throw t}).then(t=>t,t=>{throw new Error("extractSheetFromMxl: "+t.message)})}static MXLtoXMLstring(t){const e=new r.default;return e.loadAsync(t).then(t=>e.file("META-INF/container.xml").async("text"),t=>{throw t}).then(t=>{const n=(new DOMParser).parseFromString(t,"text/xml").getElementsByTagName("rootfile")[0].getAttribute("full-path");return e.file(n).async("text")},t=>{throw t})}}},function(t,e){var n,i,s=t.exports={};function r(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function a(t){if(n===setTimeout)return setTimeout(t,0);if((n===r||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:r}catch(t){n=r}try{i="function"==typeof clearTimeout?clearTimeout:o}catch(t){i=o}}();var c,l=[],u=!1,h=-1;function d(){u&&c&&(u=!1,c.length?l=c.concat(l):h=-1,l.length&&f())}function f(){if(!u){var t=a(d);u=!0;for(var e=l.length;e;){for(c=l,l=[];++h<e;)c&&c[h].run();h=-1,e=l.length}c=null,u=!1,function(t){if(i===clearTimeout)return clearTimeout(t);if((i===o||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(t);try{i(t)}catch(e){try{return i.call(null,t)}catch(e){return i.call(this,t)}}}(t)}}function p(t,e){this.fun=t,this.array=e}function m(){}s.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];l.push(new p(t,e)),1!==l.length||u||a(f)},p.prototype.run=function(){this.fun.apply(null,this.array)},s.title="browser",s.browser=!0,s.env={},s.argv=[],s.version="",s.versions={},s.on=m,s.addListener=m,s.once=m,s.off=m,s.removeListener=m,s.removeAllListeners=m,s.emit=m,s.prependListener=m,s.prependOnceListener=m,s.listeners=function(t){return[]},s.binding=function(t){throw new Error("process.binding is not supported")},s.cwd=function(){return"/"},s.chdir=function(t){throw new Error("process.chdir is not supported")},s.umask=function(){return 0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(10),s=n(29),r=n(79),o=function(){function t(t){this.toStrF=t||i.defaultToString,this.dictionary=new s.default(this.toStrF),this.nElements=0}return t.prototype.add=function(t,e){if(void 0===e&&(e=1),i.isUndefined(t)||e<=0)return!1;if(this.contains(t))this.dictionary.getValue(t).copies+=e;else{var n={value:t,copies:e};this.dictionary.setValue(t,n)}return this.nElements+=e,!0},t.prototype.count=function(t){return this.contains(t)?this.dictionary.getValue(t).copies:0},t.prototype.contains=function(t){return this.dictionary.containsKey(t)},t.prototype.remove=function(t,e){if(void 0===e&&(e=1),i.isUndefined(t)||e<=0)return!1;if(this.contains(t)){var n=this.dictionary.getValue(t);return e>n.copies?this.nElements-=n.copies:this.nElements-=e,n.copies-=e,n.copies<=0&&this.dictionary.remove(t),!0}return!1},t.prototype.toArray=function(){for(var t=[],e=0,n=this.dictionary.values();e<n.length;e++)for(var i=n[e],s=i.value,r=i.copies,o=0;o<r;o++)t.push(s);return t},t.prototype.toSet=function(){for(var t=new r.default(this.toStrF),e=0,n=this.dictionary.values();e<n.length;e++){var i=n[e].value;t.add(i)}return t},t.prototype.forEach=function(t){this.dictionary.forEach((function(e,n){for(var i=n.value,s=n.copies,r=0;r<s;r++)if(!1===t(i))return!1;return!0}))},t.prototype.size=function(){return this.nElements},t.prototype.isEmpty=function(){return 0===this.nElements},t.prototype.clear=function(){this.nElements=0,this.dictionary.clear()},t}();e.default=o},function(t,e,n){"use strict";var i,s=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e}(n(80).default);e.default=r},function(t,e,n){"use strict";var i,s=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var r=n(29),o=n(10),a=function(){function t(t,e){this.key=t,this.value=e}return t.prototype.unlink=function(){this.prev.next=this.next,this.next.prev=this.prev},t}(),c=function(){function t(){this.key=null,this.value=null}return t.prototype.unlink=function(){this.prev.next=this.next,this.next.prev=this.prev},t}(),l=function(t){function e(e){var n=t.call(this,e)||this;return n.head=new c,n.tail=new c,n.head.next=n.tail,n.tail.prev=n.head,n}return s(e,t),e.prototype.appendToTail=function(t){var e=this.tail.prev;e.next=t,t.prev=e,t.next=this.tail,this.tail.prev=t},e.prototype.getLinkedDictionaryPair=function(t){if(!o.isUndefined(t)){var e="$"+this.toStr(t);return this.table[e]}},e.prototype.getValue=function(t){var e=this.getLinkedDictionaryPair(t);if(!o.isUndefined(e))return e.value},e.prototype.remove=function(e){var n=this.getLinkedDictionaryPair(e);if(!o.isUndefined(n))return t.prototype.remove.call(this,e),n.unlink(),n.value},e.prototype.clear=function(){t.prototype.clear.call(this),this.head.next=this.tail,this.tail.prev=this.head},e.prototype.replace=function(t,e){var n="$"+this.toStr(e.key);e.next=t.next,e.prev=t.prev,this.remove(t.key),e.prev.next=e,e.next.prev=e,this.table[n]=e,++this.nElements},e.prototype.setValue=function(t,e){if(!o.isUndefined(t)&&!o.isUndefined(e)){var n=this.getLinkedDictionaryPair(t),i=new a(t,e),s="$"+this.toStr(t);return o.isUndefined(n)?(this.appendToTail(i),this.table[s]=i,void++this.nElements):(this.replace(n,i),n.value)}},e.prototype.keys=function(){var t=[];return this.forEach((function(e,n){t.push(e)})),t},e.prototype.values=function(){var t=[];return this.forEach((function(e,n){t.push(n)})),t},e.prototype.forEach=function(t){for(var e=this.head.next;e.next;){if(!1===t(e.key,e.value))return;e=e.next}},e}(r.default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(10),s=n(29),r=n(35),o=function(){function t(t,e,n){void 0===n&&(n=!1),this.dict=new s.default(t),this.equalsF=e||i.defaultEquals,this.allowDuplicate=n}return t.prototype.getValue=function(t){var e=this.dict.getValue(t);return i.isUndefined(e)?[]:r.copy(e)},t.prototype.setValue=function(t,e){if(i.isUndefined(t)||i.isUndefined(e))return!1;var n=this.dict.getValue(t);return i.isUndefined(n)?(this.dict.setValue(t,[e]),!0):!(!this.allowDuplicate&&r.contains(n,e,this.equalsF))&&(n.push(e),!0)},t.prototype.remove=function(t,e){if(i.isUndefined(e)){var n=this.dict.remove(t);return!i.isUndefined(n)}var s=this.dict.getValue(t);return!(i.isUndefined(s)||!r.remove(s,e,this.equalsF))&&(0===s.length&&this.dict.remove(t),!0)},t.prototype.keys=function(){return this.dict.keys()},t.prototype.values=function(){for(var t=[],e=0,n=this.dict.values();e<n.length;e++)for(var i=0,s=n[e];i<s.length;i++){var r=s[i];t.push(r)}return t},t.prototype.containsKey=function(t){return this.dict.containsKey(t)},t.prototype.clear=function(){this.dict.clear()},t.prototype.size=function(){return this.dict.size()},t.prototype.isEmpty=function(){return this.dict.isEmpty()},t}();e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(10),s=n(82),r=function(){function t(t){this.heap=new s.default(i.reverseCompareFunction(t))}return t.prototype.enqueue=function(t){return this.heap.add(t)},t.prototype.add=function(t){return this.heap.add(t)},t.prototype.dequeue=function(){if(0!==this.heap.size()){var t=this.heap.peek();return this.heap.removeRoot(),t}},t.prototype.peek=function(){return this.heap.peek()},t.prototype.contains=function(t){return this.heap.contains(t)},t.prototype.isEmpty=function(){return this.heap.isEmpty()},t.prototype.size=function(){return this.heap.size()},t.prototype.clear=function(){this.heap.clear()},t.prototype.forEach=function(t){this.heap.forEach(t)},t}();e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(51),s=function(){function t(){this.list=new i.default}return t.prototype.push=function(t){return this.list.add(t,0)},t.prototype.add=function(t){return this.list.add(t,0)},t.prototype.pop=function(){return this.list.removeElementAtIndex(0)},t.prototype.peek=function(){return this.list.first()},t.prototype.size=function(){return this.list.size()},t.prototype.contains=function(t,e){return this.list.contains(t,e)},t.prototype.isEmpty=function(){return this.list.isEmpty()},t.prototype.clear=function(){this.list.clear()},t.prototype.forEach=function(t){this.list.forEach(t)},t}();e.default=s},function(t,e,n){"use strict";var i;Object.defineProperty(e,"__esModule",{value:!0}),function(t){t[t.BEFORE=0]="BEFORE",t[t.AFTER=1]="AFTER",t[t.INSIDE_AT_END=2]="INSIDE_AT_END",t[t.INSIDE_AT_START=3]="INSIDE_AT_START"}(i||(i={}));var s=function(){function t(t,e){void 0===t&&(t=[]),void 0===e&&(e={}),this.rootIds=t,this.nodes=e,this.initRootIds(),this.initNodes()}return t.prototype.initRootIds=function(){for(var t=0,e=this.rootIds;t<e.length;t++){var n=e[t];this.createEmptyNodeIfNotExist(n)}},t.prototype.initNodes=function(){for(var t in this.nodes)if(this.nodes.hasOwnProperty(t))for(var e=0,n=this.nodes[t];e<n.length;e++){var i=n[e];this.createEmptyNodeIfNotExist(i)}},t.prototype.createEmptyNodeIfNotExist=function(t){this.nodes[t]||(this.nodes[t]=[])},t.prototype.getRootIds=function(){return this.rootIds.slice()},t.prototype.getNodes=function(){var t={};for(var e in this.nodes)this.nodes.hasOwnProperty(e)&&(t[e]=this.nodes[e].slice());return t},t.prototype.getObject=function(){return{rootIds:this.getRootIds(),nodes:this.getNodes()}},t.prototype.toObject=function(){return this.getObject()},t.prototype.flatten=function(){for(var t=this,e=[],n=0;n<this.rootIds.length;n++){var i=this.rootIds[n];e.push({id:i,level:0,hasParent:!1,childrenCount:0}),c(i,this.nodes,e,0)}for(var s=0,r=e;s<r.length;s++){var o=r[s];o.childrenCount=a(o.id)}return e;function a(e){return t.nodes[e]?t.nodes[e].length:0}function c(t,e,n,i){if(void 0===i&&(i=0),t&&e&&n&&e[t]){i++;for(var s=e[t],r=0;r<s.length;r++){var o=s[r];n.push({id:o,level:i,hasParent:!0}),c(o,e,n,i)}i--}}},t.prototype.moveIdBeforeId=function(t,e){return this.moveId(t,e,i.BEFORE)},t.prototype.moveIdAfterId=function(t,e){return this.moveId(t,e,i.AFTER)},t.prototype.moveIdIntoId=function(t,e,n){return void 0===n&&(n=!0),n?this.moveId(t,e,i.INSIDE_AT_START):this.moveId(t,e,i.INSIDE_AT_END)},t.prototype.swapRootIdWithRootId=function(t,e){var n=this.findRootId(t),i=this.findRootId(e);this.swapRootPositionWithRootPosition(n,i)},t.prototype.swapRootPositionWithRootPosition=function(t,e){var n=this.rootIds[e];this.rootIds[e]=this.rootIds[t],this.rootIds[t]=n},t.prototype.deleteId=function(t){this.rootDeleteId(t),this.nodeAndSubNodesDelete(t),this.nodeRefrencesDelete(t)},t.prototype.insertIdBeforeId=function(t,e){var n=this.findRootId(t);for(var i in n>-1&&this.insertIdIntoRoot(e,n),this.nodes)if(this.nodes.hasOwnProperty(i)){var s=this.findNodeId(i,t);s>-1&&this.insertIdIntoNode(i,e,s)}},t.prototype.insertIdAfterId=function(t,e){var n=this.findRootId(t);for(var i in n>-1&&this.insertIdIntoRoot(e,n+1),this.nodes)if(this.nodes.hasOwnProperty(i)){var s=this.findNodeId(i,t);s>-1&&this.insertIdIntoNode(i,e,s+1)}},t.prototype.insertIdIntoId=function(t,e){this.nodeInsertAtEnd(t,e),this.nodes[e]=[]},t.prototype.insertIdIntoRoot=function(t,e){if(void 0===e)this.rootInsertAtEnd(t);else if(e<0){var n=this.rootIds.length;this.rootIds.splice(e+n+1,0,t)}else this.rootIds.splice(e,0,t);this.nodes[t]=this.nodes[t]||[]},t.prototype.insertIdIntoNode=function(t,e,n){if(this.nodes[t]=this.nodes[t]||[],this.nodes[e]=this.nodes[e]||[],void 0===n)this.nodeInsertAtEnd(t,e);else if(n<0){var i=this.nodes[t].length;this.nodes[t].splice(n+i+1,0,e)}else this.nodes[t].splice(n,0,e)},t.prototype.moveId=function(t,e,n){var s=t,r=this.findRootId(s);for(var o in this.nodes[e],this.nodes)if(this.nodes.hasOwnProperty(o)){this.findNodeId(o,e);break}var a=e,c=this.findRootId(a);for(var o in this.nodes[e],this.nodes)if(this.nodes.hasOwnProperty(o)){this.findNodeId(o,e);break}if(r>-1){if(c>-1)switch(this.rootDelete(r),c>r&&c--,n){case i.BEFORE:this.insertIdIntoRoot(s,c);break;case i.AFTER:this.insertIdIntoRoot(s,c+1);break;case i.INSIDE_AT_START:this.nodeInsertAtStart(a,s);break;case i.INSIDE_AT_END:this.nodeInsertAtEnd(a,s)}else for(var o in this.rootDelete(r),this.nodes)if(this.nodes.hasOwnProperty(o)&&(l=this.findNodeId(o,a))>-1){switch(n){case i.BEFORE:this.insertIdIntoNode(o,s,l);break;case i.AFTER:this.insertIdIntoNode(o,s,l+1);break;case i.INSIDE_AT_START:this.nodeInsertAtStart(a,s);break;case i.INSIDE_AT_END:this.nodeInsertAtEnd(a,s)}break}}else if(c>-1){for(var o in this.nodes)if(this.nodes.hasOwnProperty(o)&&(l=this.findNodeId(o,s))>-1){this.nodeDeleteAtIndex(o,l);break}switch(n){case i.BEFORE:this.insertIdIntoRoot(s,c);break;case i.AFTER:this.insertIdIntoRoot(s,c+1);break;case i.INSIDE_AT_START:this.nodeInsertAtStart(a,s);break;case i.INSIDE_AT_END:this.nodeInsertAtEnd(a,s)}}else{for(var o in this.nodes)if(this.nodes.hasOwnProperty(o)&&(l=this.findNodeId(o,s))>-1){this.nodeDeleteAtIndex(o,l);break}for(var o in this.nodes){var l;if(this.nodes.hasOwnProperty(o)&&(l=this.findNodeId(o,a))>-1){switch(n){case i.BEFORE:this.insertIdIntoNode(o,s,l);break;case i.AFTER:this.insertIdIntoNode(o,s,l+1);break;case i.INSIDE_AT_START:this.nodeInsertAtStart(a,s);break;case i.INSIDE_AT_END:this.nodeInsertAtEnd(a,s)}break}}}},t.prototype.swapArrayElements=function(t,e,n){var i=t[e];return t[e]=t[n],t[n]=i,t},t.prototype.rootDeleteId=function(t){var e=this.findRootId(t);e>-1&&this.rootDelete(e)},t.prototype.nodeAndSubNodesDelete=function(t){for(var e=[],n=0;n<this.nodes[t].length;n++){var i=this.nodes[t][n];this.nodeAndSubNodesDelete(i),e.push(t)}for(this.nodeDelete(t),n=0;n<e.length;n++)this.nodeDelete(e[n])},t.prototype.nodeRefrencesDelete=function(t){for(var e in this.nodes)if(this.nodes.hasOwnProperty(e))for(var n=0;n<this.nodes[e].length;n++)this.nodes[e][n]===t&&this.nodeDeleteAtIndex(e,n)},t.prototype.nodeDelete=function(t){delete this.nodes[t]},t.prototype.findRootId=function(t){return this.rootIds.indexOf(t)},t.prototype.findNodeId=function(t,e){return this.nodes[t].indexOf(e)},t.prototype.findNode=function(t){return this.nodes[t]},t.prototype.nodeInsertAtStart=function(t,e){this.nodes[t].unshift(e)},t.prototype.nodeInsertAtEnd=function(t,e){this.nodes[t].push(e)},t.prototype.rootDelete=function(t){this.rootIds.splice(t,1)},t.prototype.nodeDeleteAtIndex=function(t,e){this.nodes[t].splice(e,1)},t.prototype.rootInsertAtStart=function(t){this.rootIds.unshift(t)},t.prototype.rootInsertAtEnd=function(t){this.rootIds.push(t)},t}();e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TieTypes=void 0,function(t){t.SIMPLE="",t.HAMMERON="H",t.PULLOFF="P",t.SLIDE="S",t.TAPPING="T"}(e.TieTypes||(e.TieTypes={}))},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.OpenSheetMusicDisplay=void 0;const s=n(59),r=n(96),o=n(123),a=n(57),c=n(15),l=n(18),u=n(141),h=n(71),d=n(77),f=n(142),p=n(76),m=i(n(1)),g=n(33),b=n(25),v=n(26),y=n(3),S=n(19),x=n(22),_=n(2);class w{constructor(t,e=b.OSMDOptions.OSMDOptionsStandard()){if(this.version="0.8.4-release",this.zoom=1,this.zoomUpdated=!1,"string"==typeof t?this.container=document.getElementById(t):t&&"appendChild"in t&&(this.container=t),!this.container)throw new Error("Please pass a valid div container to OpenSheetMusicDisplay");void 0===e.autoResize&&(e.autoResize=!0),this.backendType=b.BackendType.SVG,this.setOptions(e)}load(t){if(this.reset(),"string"==typeof t){const e=t,n=this;if("PK"===e.substr(0,4))return m.default.debug("[OSMD] This is a zip file, unpack it first: "+e),f.MXLHelper.MXLtoXMLstring(e).then(t=>n.load(t),t=>{throw m.default.debug(t),new Error("OpenSheetMusicDisplay: Invalid MXL file")});if(""===e.substr(0,3))return m.default.debug("[OSMD] UTF with BOM detected, truncate first three bytes and pass along: "+e),n.load(e.substr(3));let i=e;if(/^\s/.test(i)&&(i=i.trim()),i.substr(0,6).includes("<?xml"))m.default.debug("[OSMD] Finally parsing XML content, length: "+i.length),t=(new DOMParser).parseFromString(i,"application/xml");else{if(i.length<2083)return m.default.debug("[OSMD] Retrieve the file at the given URL: "+i),p.AJAX.ajax(i).then(t=>n.load(t),t=>{throw t});console.error("[OSMD] osmd.load(string): Could not process string. Did not find <?xml at beginning.")}}if(!t||!t.nodeName)return Promise.reject(new Error("OpenSheetMusicDisplay: The document which was provided is invalid"));const e=t,n=e.childNodes;let i;m.default.debug("[OSMD] load(), Document url: "+e.URL);for(let s=0,o=n.length;s<o;s+=1){const t=n[s];if(t.nodeType===Node.ELEMENT_NODE&&"score-partwise"===t.nodeName.toLowerCase()){i=t;break}}if(!i)return console.error("Could not parse MusicXML, no valid partwise element found"),Promise.reject(new Error("OpenSheetMusicDisplay: Document is not a valid 'partwise' MusicXML"));const r=new s.IXmlElement(i),a=new o.MusicSheetReader(void 0,this.rules);return this.sheet=a.createMusicSheet(r,"Untitled Score"),void 0===this.sheet?Promise.reject(new Error("given music sheet was incomplete or could not be loaded.")):(m.default.info(`[OSMD] Loaded sheet ${this.sheet.TitleString} successfully.`),this.needBackendUpdate=!0,this.updateGraphic(),Promise.resolve({}))}updateGraphic(){const t=new r.VexFlowMusicSheetCalculator(this.rules);this.graphic=new a.GraphicalMusicSheet(this.sheet,t),this.drawingParameters.drawCursors&&this.cursor&&this.cursor.init(this.sheet.MusicPartManager,this.graphic)}render(){if(!this.graphic)throw new Error("OpenSheetMusicDisplay: Before rendering a music sheet, please load a MusicXML file");this.drawer&&this.drawer.clear();let t=this.container.offsetWidth;this.rules.RenderSingleHorizontalStaffline&&(t=32767),this.sheet.pageWidth=t/this.zoom/10,this.rules.PageFormat&&!this.rules.PageFormat.IsUndefined?(this.rules.PageHeight=this.sheet.pageWidth/this.rules.PageFormat.aspectRatio,m.default.debug("[OSMD] PageHeight: "+this.rules.PageHeight)):(m.default.debug("[OSMD] endless/undefined pageformat, id: "+this.rules.PageFormat.idString),this.rules.PageHeight=100001),this.graphic.reCalculate(),this.drawingParameters.drawCursors&&(this.graphic.Cursors.length=0),this.createOrRefreshRenderBackend(),this.needBackendUpdate=!1,this.drawer.setZoom(this.zoom),this.drawer.drawSheet(this.graphic),this.enableOrDisableCursor(this.drawingParameters.drawCursors),this.drawingParameters.drawCursors&&this.cursor&&this.cursor.update(),this.zoomUpdated=!1}createOrRefreshRenderBackend(){this.drawer&&this.drawer.Backends&&(this.drawer.Backends[0]&&this.drawer.Backends[0].removeAllChildrenFromContainer(this.container),this.drawer.Backends.clear()),this.drawingParameters.Rules=this.rules,this.drawer=new l.VexFlowMusicSheetDrawer(this.drawingParameters),this.drawer.drawableBoundingBoxElement=this.DrawBoundingBox,this.drawer.bottomLineVisible=this.drawBottomLine,this.drawer.skyLineVisible=this.drawSkyLine;let t,e=this.container.offsetWidth;this.rules.RenderSingleHorizontalStaffline&&(e=10*this.graphic.MusicPages[0].PositionAndShape.Size.width*this.zoom);for(const n of this.graphic.MusicPages){const i=this.createBackend(this.backendType,n),s=" exceeds CanvasBackend limit of 32767. Cutting off score.";i.getOSMDBackendType()===b.BackendType.Canvas&&e>32767&&(console.log("[OSMD] Warning: width of "+e+s),e=32767),t=this.rules.PageFormat&&!this.rules.PageFormat.IsUndefined?e/this.rules.PageFormat.aspectRatio:(n.PositionAndShape.Size.height+15)*this.zoom*10,i.getOSMDBackendType()===b.BackendType.Canvas&&t>32767&&(console.log("[OSMD] Warning: height of "+t+s),t=Math.min(t,32767)),i.resize(e,t),i.clear(),this.drawer.Backends.push(i)}}IsReadyToRender(){return void 0!==this.graphic}clear(){this.drawer.clear(),this.reset()}setOptions(t){if(this.rules||(this.rules=new v.EngravingRules),this.drawingParameters||(this.drawingParameters=new g.DrawingParameters,this.drawingParameters.Rules=this.rules),null==t)return void m.default.warn("warning: osmd.setOptions() called without an options parameter, has no effect.\nexample usage: osmd.setOptions({drawCredits: false, drawPartNames: false})");t.drawingParameters&&(this.drawingParameters.DrawingParametersEnum=g.DrawingParametersEnum[t.drawingParameters.toLowerCase()]);let e=!this.drawer||!this.drawer.Backends||this.drawer.Backends.length<1;if(void 0!==t.backend){const n=b.OSMDOptions.BackendTypeFromString(t.backend);e=e||this.backendType!==n,this.backendType=n}this.needBackendUpdate=e,void 0!==t.autoBeam&&(this.rules.AutoBeamNotes=t.autoBeam);const n=t.autoBeamOptions;if(n&&(void 0===n.maintain_stem_directions&&(n.maintain_stem_directions=!1),this.rules.AutoBeamOptions=n,n.groups&&n.groups.length))for(const i of n.groups)if(2!==i.length)throw new Error("Each fraction in autoBeamOptions.groups must be of length 2, e.g. [3,4] for beaming three fourths");void 0!==t.percussionOneLineCutoff&&(this.rules.PercussionOneLineCutoff=t.percussionOneLineCutoff),0!==this.rules.PercussionOneLineCutoff&&void 0!==t.percussionForceVoicesOneLineCutoff&&(this.rules.PercussionForceVoicesOneLineCutoff=t.percussionForceVoicesOneLineCutoff),void 0!==t.alignRests&&(this.rules.AlignRests=t.alignRests),void 0!==t.coloringMode&&this.setColoringMode(t),void 0!==t.coloringEnabled&&(this.rules.ColoringEnabled=t.coloringEnabled),void 0!==t.colorStemsLikeNoteheads&&(this.rules.ColorStemsLikeNoteheads=t.colorStemsLikeNoteheads),t.disableCursor&&(this.drawingParameters.drawCursors=!1),t.drawHiddenNotes&&(this.drawingParameters.drawHiddenNotes=!0),void 0!==t.drawCredits&&(this.drawingParameters.DrawCredits=t.drawCredits),void 0!==t.drawComposer&&(this.drawingParameters.DrawComposer=t.drawComposer),void 0!==t.drawTitle&&(this.drawingParameters.DrawTitle=t.drawTitle),void 0!==t.drawSubtitle&&(this.drawingParameters.DrawSubtitle=t.drawSubtitle),void 0!==t.drawLyricist&&(this.drawingParameters.DrawLyricist=t.drawLyricist),void 0!==t.drawMetronomeMarks&&(this.rules.MetronomeMarksDrawn=t.drawMetronomeMarks),void 0!==t.drawPartNames&&(this.drawingParameters.DrawPartNames=t.drawPartNames,t.drawPartAbbreviations||(this.rules.RenderPartAbbreviations=t.drawPartNames)),void 0!==t.drawPartAbbreviations&&(this.rules.RenderPartAbbreviations=t.drawPartAbbreviations),!1===t.drawFingerings&&(this.rules.RenderFingerings=!1),void 0!==t.drawMeasureNumbers&&(this.rules.RenderMeasureNumbers=t.drawMeasureNumbers),t.drawMeasureNumbersOnlyAtSystemStart&&(this.rules.RenderMeasureNumbersOnlyAtSystemStart=t.drawMeasureNumbersOnlyAtSystemStart),void 0!==t.drawLyrics&&(this.rules.RenderLyrics=t.drawLyrics),void 0!==t.drawTimeSignatures&&(this.rules.RenderTimeSignatures=t.drawTimeSignatures),void 0!==t.drawSlurs&&(this.rules.RenderSlurs=t.drawSlurs),void 0!==t.measureNumberInterval&&(this.rules.MeasureNumberLabelOffset=t.measureNumberInterval),void 0!==t.fingeringPosition&&(this.rules.FingeringPosition=y.AbstractExpression.PlacementEnumFromString(t.fingeringPosition)),void 0!==t.fingeringInsideStafflines&&(this.rules.FingeringInsideStafflines=t.fingeringInsideStafflines),void 0!==t.newSystemFromXML&&(this.rules.NewSystemAtXMLNewSystemAttribute=t.newSystemFromXML),void 0!==t.newPageFromXML&&(this.rules.NewPageAtXMLNewPageAttribute=t.newPageFromXML),void 0!==t.fillEmptyMeasuresWithWholeRest&&(this.rules.FillEmptyMeasuresWithWholeRest=t.fillEmptyMeasuresWithWholeRest),void 0!==t.followCursor&&(this.FollowCursor=t.followCursor),void 0!==t.setWantedStemDirectionByXml&&(this.rules.SetWantedStemDirectionByXml=t.setWantedStemDirectionByXml),t.defaultColorNotehead&&(this.rules.DefaultColorNotehead=t.defaultColorNotehead),t.defaultColorRest&&(this.rules.DefaultColorRest=t.defaultColorRest),t.defaultColorStem&&(this.rules.DefaultColorStem=t.defaultColorStem),t.defaultColorLabel&&(this.rules.DefaultColorLabel=t.defaultColorLabel),t.defaultColorTitle&&(this.rules.DefaultColorTitle=t.defaultColorTitle),t.defaultFontFamily&&(this.rules.DefaultFontFamily=t.defaultFontFamily),t.defaultFontStyle&&(this.rules.DefaultFontStyle=t.defaultFontStyle),t.drawUpToMeasureNumber&&(this.rules.MaxMeasureToDrawIndex=t.drawUpToMeasureNumber-1),t.drawFromMeasureNumber&&(this.rules.MinMeasureToDrawIndex=t.drawFromMeasureNumber-1),t.tupletsRatioed&&(this.rules.TupletsRatioed=!0),t.tupletsBracketed&&(this.rules.TupletsBracketed=!0),t.tripletsBracketed&&(this.rules.TripletsBracketed=!0),t.autoResize?(this.resizeHandlerAttached||this.autoResize(),this.autoResizeEnabled=!0):!1===t.autoResize&&(this.autoResizeEnabled=!1),void 0!==t.pageFormat&&this.setPageFormat(t.pageFormat),void 0!==t.pageBackgroundColor&&(this.rules.PageBackgroundColor=t.pageBackgroundColor),void 0!==t.renderSingleHorizontalStaffline&&(this.rules.RenderSingleHorizontalStaffline=t.renderSingleHorizontalStaffline),void 0!==t.spacingFactorSoftmax&&(this.rules.SoftmaxFactorVexFlow=t.spacingFactorSoftmax),void 0!==t.spacingBetweenTextLines&&(this.rules.SpacingBetweenTextLines=t.spacingBetweenTextLines),void 0!==t.stretchLastSystemLine&&(this.rules.StretchLastSystemLine=t.stretchLastSystemLine),void 0!==t.autoGenerateMutipleRestMeasuresFromRestMeasures&&(this.rules.AutoGenerateMutipleRestMeasuresFromRestMeasures=t.autoGenerateMutipleRestMeasuresFromRestMeasures)}setColoringMode(t){if(t.coloringMode===g.ColoringModes.XML)return void(this.rules.ColoringMode=g.ColoringModes.XML);const e=[_.NoteEnum.C,_.NoteEnum.D,_.NoteEnum.E,_.NoteEnum.F,_.NoteEnum.G,_.NoteEnum.A,_.NoteEnum.B,-1];let n;if(t.coloringMode===g.ColoringModes.CustomColorSet){if(!t.coloringSetCustom||8!==t.coloringSetCustom.length)throw new Error("Invalid amount of colors: With coloringModes.customColorSet, you have to provide a coloringSetCustom parameter with 8 strings (C to B, rest note).");for(const e of t.coloringSetCustom)if(!/^\#[0-9a-fA-F]{6}$/.test(e))throw new Error("One of the color strings in options.coloringSetCustom was not a valid HTML Hex color:\n"+e);n=t.coloringSetCustom}else if(t.coloringMode===g.ColoringModes.AutoColoring){n=[];const t=Object.keys(x.AutoColorSet);for(let e=0;e<t.length;e++)n.push(x.AutoColorSet[t[e]])}const i=new S.Dictionary;for(let s=0;s<e.length;s++)i.setValue(e[s],n[s]);i.setValue(-1,n[7]),this.rules.ColoringSetCurrent=i,this.rules.ColoringMode=t.coloringMode}setLogLevel(t){switch(t){case"trace":m.default.setLevel(m.default.levels.TRACE);break;case"debug":m.default.setLevel(m.default.levels.DEBUG);break;case"info":m.default.setLevel(m.default.levels.INFO);break;case"warn":m.default.setLevel(m.default.levels.WARN);break;case"error":m.default.setLevel(m.default.levels.ERROR);break;default:m.default.warn(`Could not set log level to ${t}. Using warn instead.`),m.default.setLevel(m.default.levels.WARN)}}getLogLevel(){return m.default.getLevel()}reset(){this.drawingParameters.drawCursors&&this.cursor&&this.cursor.hide(),this.sheet=void 0,this.graphic=void 0,this.zoom=1}autoResize(){const t=this;this.handleResize(()=>{},()=>{var e;(null===(e=this.graphic)||void 0===e?void 0:e.GetCalculator)instanceof r.VexFlowMusicSheetCalculator&&(this.graphic.GetCalculator.beamsNeedUpdate=!0),t.IsReadyToRender()&&t.render()})}handleResize(t,e){let n,i=void 0;const s=this;function r(){s.AutoResizeEnabled&&(n=(new Date).getTime(),i||(t(),n=(new Date).getTime(),i=window.setTimeout(o,200)))}function o(){i=void 0,window.clearTimeout(i),(new Date).getTime()-n<200?i=window.setTimeout(o,200):e()}window.attachEvent?window.attachEvent("onresize",r):window.addEventListener("resize",r),this.resizeHandlerAttached=!0,window.setTimeout(t,0),window.setTimeout(e,1)}enableOrDisableCursor(t){var e,n,i,s;if(this.drawingParameters.drawCursors=t,t){const t=null===(e=this.cursor)||void 0===e?void 0:e.Hidden,r=null===(n=this.cursor)||void 0===n?void 0:n.Iterator;null===(i=this.cursor)||void 0===i||i.hide();let o=null===(s=this.drawer)||void 0===s?void 0:s.Backends[0];if(o&&this.rules.RestoreCursorAfterRerender&&this.cursor){const t=this.cursor.updateCurrentPage();o=this.drawer.Backends[t-1]}o&&o.getRenderElement()&&(this.cursor=new d.Cursor(o.getRenderElement(),this)),this.sheet&&this.graphic&&this.cursor&&this.cursor.init(this.sheet.MusicPartManager,this.graphic),this.rules.RestoreCursorAfterRerender&&(this.cursor.hidden=t,r&&(this.cursor.iterator=r,this.cursor.update()))}else{if(!this.cursor)return;this.cursor.hide()}}createBackend(t,e){let n;return n=void 0===t||t===b.BackendType.SVG?new u.SvgVexFlowBackend(this.rules):new h.CanvasVexFlowBackend(this.rules),n.graphicalMusicPage=e,n.initialize(this.container),n}static StringToPageFormat(t){let e=v.PageFormat.UndefinedPageFormat;if(t.match("^[0-9]+x[0-9]+$")){const n=t.split("x"),i=Number.parseInt(n[0],10),s=Number.parseInt(n[1],10);i>0&&i<32768&&s>0&&s<32768&&(e=new v.PageFormat(i,s,"customPageFormat"+t))}return t=(t=(t=t.replace(" ","_")).replace("Landscape","L")).replace("Portrait","P"),w.PageFormatStandards.hasOwnProperty(t)?(e=w.PageFormatStandards[t],e):e}setPageFormat(t){const e=w.StringToPageFormat(t);this.needBackendUpdate=!e.Equals(this.rules.PageFormat),this.rules.PageFormat=e}setCustomPageFormat(t,e){if(t>0&&e>0){const n=new v.PageFormat(t,e);this.rules.PageFormat=n}}set DrawSkyLine(t){this.drawSkyLine=t,this.drawer&&(this.drawer.skyLineVisible=t)}get DrawSkyLine(){return this.drawer.skyLineVisible}set DrawBottomLine(t){this.drawBottomLine=t,this.drawer&&(this.drawer.bottomLineVisible=t)}get DrawBottomLine(){return this.drawer.bottomLineVisible}set DrawBoundingBox(t){this.drawBoundingBox=t,this.drawer.drawableBoundingBoxElement=t,this.render()}get DrawBoundingBox(){return this.drawBoundingBox}get AutoResizeEnabled(){return this.autoResizeEnabled}set AutoResizeEnabled(t){this.autoResizeEnabled=t}set Zoom(t){var e;this.zoom=t,this.zoomUpdated=!0,(null===(e=this.graphic)||void 0===e?void 0:e.GetCalculator)instanceof r.VexFlowMusicSheetCalculator&&(this.graphic.GetCalculator.beamsNeedUpdate=this.zoomUpdated)}set FollowCursor(t){this.followCursor=t}get FollowCursor(){return this.followCursor}set TransposeCalculator(t){c.MusicSheetCalculator.transposeCalculator=t}get TransposeCalculator(){return c.MusicSheetCalculator.transposeCalculator}get Sheet(){return this.sheet}get Drawer(){return this.drawer}get GraphicSheet(){return this.graphic}get DrawingParameters(){return this.drawingParameters}get EngravingRules(){return this.rules}get Version(){return this.version}}e.OpenSheetMusicDisplay=w,w.PageFormatStandards={A3_L:new v.PageFormat(420,297,"A3_L"),A3_P:new v.PageFormat(297,420,"A3_P"),A4_L:new v.PageFormat(297,210,"A4_L"),A4_P:new v.PageFormat(210,297,"A4_P"),A5_L:new v.PageFormat(210,148,"A5_L"),A5_P:new v.PageFormat(148,210,"A5_P"),A6_L:new v.PageFormat(148,105,"A6_L"),A6_P:new v.PageFormat(105,148,"A6_P"),Endless:v.PageFormat.UndefinedPageFormat,Letter_L:new v.PageFormat(279.4,215.9,"Letter_L"),Letter_P:new v.PageFormat(215.9,279.4,"Letter_P")}},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.VexFlowTabMeasure=void 0;const s=i(n(9)),r=n(49),o=n(14),a=i(n(1));class c extends r.VexFlowMeasure{constructor(t,e,n){super(t,e,n),this.isTabMeasure=!0}resetLayout(){this.stave=new s.default.Flow.TabStave(0,0,0,{space_above_staff_ln:0,space_below_staff_ln:0}),this.updateInstructionWidth()}graphicalMeasureCreatedCalculations(){for(let e=0,n=this.staffEntries.length;e<n;++e){const t=this.staffEntries[e];for(const e of t.graphicalVoiceEntries)e.notes[0].sourceNote.isRest()?e.vfStaveNote=o.VexFlowConverter.GhostNote(e.notes[0].sourceNote.Length):e.vfStaveNote=o.VexFlowConverter.CreateTabNote(e)}this.rules.TupletNumbersInTabs&&this.finalizeTuplets();const t=this.getVoicesWithinMeasure();for(const e of t){if(!e)continue;this.vfVoices[e.VoiceId]=new s.default.Flow.Voice({beat_value:this.parentSourceMeasure.Duration.Denominator,num_beats:this.parentSourceMeasure.Duration.Numerator,resolution:s.default.Flow.RESOLUTION}).setMode(s.default.Flow.Voice.Mode.SOFT);const t=this.getRestFilledVexFlowStaveNotesPerVoice(e);for(const n of t){if(n.parentVoiceEntry&&n.parentVoiceEntry.IsGrace&&!n.parentVoiceEntry.GraceAfterMainNote)continue;const t=n;if(0!==n.notes.length&&n.notes[0]&&n.notes[0].sourceNote.PrintObject){if(n.parentVoiceEntry&&this.rules.RenderFingerings&&this.createFingerings(n),n.parentVoiceEntry&&n.parentVoiceEntry.Arpeggio){const e=n.parentVoiceEntry.Arpeggio;if(n.notes&&n.notes.length>1){const n=o.VexFlowConverter.StrokeTypeFromArpeggioType(e.type),i=new s.default.Flow.Stroke(n,{all_voices:this.rules.ArpeggiosGoAcrossVoices});this.rules.RenderArpeggios&&t.vfStaveNote.addStroke(0,i)}else a.default.debug(`[OSMD] arpeggio in measure ${this.MeasureNumber} could not be drawn.\n voice entry had less than two notes, arpeggio is likely between voice entries, not currently supported in Vexflow.`)}this.vfVoices[e.VoiceId].addTickable(t.vfStaveNote)}else this.vfVoices[e.VoiceId].addTickable(t.vfStaveNote)}}}}e.VexFlowTabMeasure=c},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.VexFlowMultiRestMeasure=void 0;const s=i(n(9)),r=n(49);class o extends r.VexFlowMeasure{constructor(t,e,n){super(t,e,n),this.minimumStaffEntriesWidth=-1,n?this.rules=n.ParentMusicSystem.rules:e&&(this.rules=e.Rules),this.resetLayout(),this.multiRestElement=new s.default.Flow.MultiMeasureRest(e.multipleRestMeasures,{})}draw(t){this.stave.setContext(t).draw(),this.multiRestElement.setStave(this.stave),this.multiRestElement.setContext(t),this.multiRestElement.draw();for(const e of this.connectors)e.setContext(t).draw()}format(){}getVoicesWithinMeasure(){return[]}getGraphicalVoiceEntriesPerVoice(t){return[]}getRestFilledVexFlowStaveNotesPerVoice(t){return[]}handleBeam(t,e){}handleTuplet(t,e){}finalizeBeams(){}finalizeTuplets(){}layoutStaffEntry(t){}graphicalMeasureCreatedCalculations(){}createArticulations(){}createOrnaments(){}createFingerings(t){}getVFStave(){return this.stave}}e.VexFlowMultiRestMeasure=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DynamicExpressionSymbolEnum=void 0,function(t){t[t.p=0]="p",t[t.f=1]="f",t[t.s=2]="s",t[t.z=3]="z",t[t.m=4]="m",t[t.r=5]="r"}(e.DynamicExpressionSymbolEnum||(e.DynamicExpressionSymbolEnum={}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Matrix2D=void 0;const i=n(5);class s{constructor(){this.matrix=[];for(let t=0;t<2;t++){this.matrix[t]=[];for(let e=0;e<2;e++)this.matrix[t][e]=0}}static getRotationMatrix(t){const e=new s,n=Math.cos(t),i=Math.sin(t);return e.matrix[0][0]=n,e.matrix[0][1]=-i,e.matrix[1][0]=i,e.matrix[1][1]=n,e}scalarMultiplication(t){for(let e=0;e<2;e++)for(let n=0;n<2;n++)this.matrix[e][n]*=t}getTransposeMatrix(){const t=new s;for(let e=0;e<2;e++)for(let n=0;n<2;n++)t.matrix[e][n]=this.matrix[n][e];return t}vectorMultiplication(t){const e=new i.PointF2D;return e.x=t.x*this.matrix[0][0]+t.y*this.matrix[0][1],e.y=t.x*this.matrix[1][0]+t.y*this.matrix[1][1],e}}e.Matrix2D=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VexflowStafflineNoteCalculator=void 0;const i=n(2),s=n(70),r=n(19),o=n(7),a=n(12);class c{constructor(t){this.staffPitchListMapping=new r.Dictionary,this.baseLineNote=i.NoteEnum.B,this.baseLineOctave=1,this.rules=t}trackNote(t){if(!(t instanceof s.VexFlowGraphicalNote)||t.Clef().ClefType!==o.ClefEnum.percussion||t.sourceNote.isRest()||0===this.rules.PercussionOneLineCutoff||-1===this.rules.PercussionForceVoicesOneLineCutoff)return;const e=t.parentVoiceEntry.parentStaffEntry.sourceStaffEntry.ParentStaff.idInMusicSheet;let n=void 0;this.staffPitchListMapping.containsKey(e)||this.staffPitchListMapping.setValue(e,new Array),n=this.staffPitchListMapping.getValue(e);const i=t.sourceNote.Pitch;c.findOrInsert(n,i)}static PitchIndexOf(t,e,n=0){if(n>t.length-1)return-1;for(let i=n;i<t.length;i++){const n=t[i];if(e.OperatorEquals(n))return i}return-1}static findOrInsert(t,e){for(let n=0;n<t.length;n++){const i=t[n];if(e.OperatorEquals(i))return n;if(e.OperatorFundamentalLessThan(i))return t.splice(n,0,e),n}return t.push(e),t.length-1}positionNote(t){const e=t.parentVoiceEntry.parentStaffEntry.sourceStaffEntry.ParentStaff.idInMusicSheet;if(!(t instanceof s.VexFlowGraphicalNote)||t.sourceNote.isRest()||!this.staffPitchListMapping.containsKey(e))return t;const n=this.staffPitchListMapping.getValue(e);if(n.length>this.rules.PercussionOneLineCutoff)return t;const r=t,o=t.sourceNote.Pitch;if(n.length<=this.rules.PercussionForceVoicesOneLineCutoff)r.setAccidental(new i.Pitch(this.baseLineNote,this.baseLineOctave,o.Accidental));else{const t=c.PitchIndexOf(n,o);if(t>-1){let e=this.baseLineNote,s=this.baseLineOctave;const c=Math.ceil(n.length/2);if(t>=c)switch(s=2,(t-c)%5){case 1:e=i.NoteEnum.E;break;case 2:e=i.NoteEnum.G;break;case 3:e=i.NoteEnum.B;break;case 4:e=i.NoteEnum.D,s=3;break;default:e=i.NoteEnum.C}else switch(t%5){case 1:e=i.NoteEnum.F;break;case 2:e=i.NoteEnum.D;break;case 3:e=i.NoteEnum.B,s=0;break;case 4:e=i.NoteEnum.G,s=0;break;default:e=i.NoteEnum.A}const l=new i.Pitch(e,s,o.Accidental);r.setAccidental(l),r.parentVoiceEntry.parentVoiceEntry.Notes.length<2&&(l.Octave>this.baseLineOctave||l.FundamentalNote===this.baseLineNote&&l.Octave===this.baseLineOctave?r.parentVoiceEntry.parentVoiceEntry.WantedStemDirection=a.StemDirectionType.Up:r.parentVoiceEntry.parentVoiceEntry.WantedStemDirection=a.StemDirectionType.Down)}}return r}getStafflineUniquePositionCount(t){return this.staffPitchListMapping.containsKey(t)?this.staffPitchListMapping.getValue(t).length:0}}e.VexflowStafflineNoteCalculator=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TimestampTransform=e.MusicPartManager=void 0;const i=n(0),s=n(159);e.MusicPartManager=class{constructor(t){this.musicSheet=t}reInit(){this.init()}init(){this.parts=this.musicSheet.Repetitions.slice(),this.sheetStart=this.musicSheet.SelectionStart=new i.Fraction(0,1),this.sheetEnd=this.musicSheet.SelectionEnd=this.musicSheet.SheetEndTimestamp,this.calcMapping()}getCurrentRepetitionTimestampTransform(t){let e=void 0;for(let n=this.timestamps.length-1;n>=0;n--)if(e=this.timestamps[n],t.gte(e.$from))return e;return this.timestamps[0]}absoluteEnrolledToSheetTimestamp(t){if(0===this.timestamps.length)return t;const e=this.getCurrentRepetitionTimestampTransform(t);return i.Fraction.plus(t,i.Fraction.minus(e.to,e.$from))}get Parts(){return this.parts}get MusicSheet(){return this.musicSheet}getIterator(t){return t?new s.MusicPartManagerIterator(this,t,void 0):new s.MusicPartManagerIterator(this,this.musicSheet.SelectionStart,this.musicSheet.SelectionEnd)}setSelectionStart(t){this.musicSheet.SelectionStart=t,this.musicSheet.SelectionEnd=void 0}setSelectionRange(t,e){this.musicSheet.SelectionStart=null!=t?t:this.sheetStart,this.musicSheet.SelectionEnd=null!=e?e:this.sheetEnd}calcMapping(){const t=[],e=this.getIterator();let n=e.CurrentRepetition,i=new r(e.CurrentEnrolledTimestamp.clone(),e.CurrentSourceTimestamp.clone(),void 0,0);for(t.push(i);!e.EndReached;){if(e.JumpOccurred||n!==e.CurrentRepetition){if(n=e.CurrentRepetition,e.backJumpOccurred){const n=e.JumpResponsibleRepetition;i.nextBackJump=e.CurrentEnrolledTimestamp,i.curRepetition=n,i.curRepetitionIteration=e.CurrentJumpResponsibleRepetitionIterationBeforeJump;for(let e=this.timestamps.length-2;e>=0&&!t[e].to.lt(n.AbsoluteTimestamp)&&!t[e].curRepetition;e--)t[e].nextBackJump=i.nextBackJump,t[e].curRepetition=n,t[e].curRepetitionIteration=i.curRepetitionIteration}i=new r(e.CurrentEnrolledTimestamp.clone(),e.CurrentSourceTimestamp.clone(),void 0,0),t.push(i)}e.moveToNext()}this.timestamps=t}};class r{constructor(t,e,n,i){this.$from=t,this.to=e,this.curRepetition=n,this.curRepetitionIteration=i,this.nextBackJump=void 0,this.nextForwardJump=void 0}}e.TimestampTransform=r},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.MusicPartManagerIterator=void 0;const s=n(0),r=n(160),o=n(17),a=n(32),c=i(n(1));class l{constructor(t,e,n){this.currentMeasureIndex=0,this.currentPartIndex=0,this.currentVoiceEntryIndex=-1,this.currentDynamicEntryIndex=0,this.currentTempoEntryIndex=0,this.currentDynamicChangingExpressions=[],this.currentRepetition=void 0,this.endReached=!1,this.frontReached=!1,this.currentTimeStamp=new s.Fraction(0,1),this.currentEnrolledMeasureTimestamp=new s.Fraction(0,1),this.currentVerticalContainerInMeasureTimestamp=new s.Fraction(0,1),this.jumpResponsibleRepetition=void 0,this.activeDynamicExpressions=[];try{this.frontReached=!0,this.manager=t,this.currentVoiceEntries=void 0,this.frontReached=!1;for(const e of t.MusicSheet.Repetitions)this.setRepetitionIterationCount(e,1);if(this.activeDynamicExpressions=new Array(t.MusicSheet.getCompleteNumberOfStaves()),this.currentMeasure=this.manager.MusicSheet.SourceMeasures[0],!e)return;do{this.moveToNext()}while((!this.currentVoiceEntries||this.currentTimeStamp.lt(e))&&!this.endReached);for(let t=0;t<this.activeDynamicExpressions.length;t++)if(this.activeDynamicExpressions[t])if(this.activeDynamicExpressions[t]instanceof a.ContinuousDynamicExpression){const e=this.activeDynamicExpressions[t];this.currentDynamicChangingExpressions.push(new r.DynamicsContainer(e,t))}else{const e=this.activeDynamicExpressions[t];this.currentDynamicChangingExpressions.push(new r.DynamicsContainer(e,t))}this.currentTempoChangingExpression=this.activeTempoExpression}catch(t){c.default.info("MusicPartManagerIterator: "+t)}}get EndReached(){return this.endReached}get FrontReached(){return this.frontReached}get CurrentMeasure(){return this.currentMeasure}get CurrentRepetition(){return this.currentRepetition}get CurrentRepetitionIteration(){return this.CurrentRepetition?this.getRepetitionIterationCount(this.CurrentRepetition):0}get CurrentJumpResponsibleRepetitionIterationBeforeJump(){return this.jumpResponsibleRepetition?this.getRepetitionIterationCount(this.jumpResponsibleRepetition)-1:0}get CurrentVoiceEntries(){return this.currentVoiceEntries}get CurrentMeasureIndex(){return this.currentMeasureIndex}get CurrentEnrolledTimestamp(){return s.Fraction.plus(this.currentEnrolledMeasureTimestamp,this.currentVerticalContainerInMeasureTimestamp)}get CurrentSourceTimestamp(){return this.currentTimeStamp}get JumpOccurred(){return this.backJumpOccurred||this.forwardJumpOccurred}get ActiveTempoExpression(){return this.activeTempoExpression}get ActiveDynamicExpressions(){return this.activeDynamicExpressions}get CurrentTempoChangingExpression(){return this.currentTempoChangingExpression}get JumpResponsibleRepetition(){return this.jumpResponsibleRepetition}clone(t){const e=new l(this.manager,t);return e.currentVoiceEntryIndex=this.currentVoiceEntryIndex,e.currentMappingPart=this.currentMappingPart,e.currentPartIndex=this.currentPartIndex,e.currentVoiceEntries=this.currentVoiceEntries,e.endReached=this.endReached,e.frontReached=this.frontReached,e}CurrentVisibleVoiceEntries(t){const e=[];if(!this.currentVoiceEntries)return e;if(t){for(const n of this.currentVoiceEntries)if(n.ParentVoice.Parent.IdString===t.IdString)return this.getVisibleEntries(n,e),e}else for(const n of this.currentVoiceEntries)this.getVisibleEntries(n,e);return e}CurrentAudibleVoiceEntries(t){const e=[];if(!this.currentVoiceEntries)return e;if(t){for(const n of this.currentVoiceEntries)if(n.ParentVoice.Parent.IdString===t.IdString)return this.getAudibleEntries(n,e),e}else for(const n of this.currentVoiceEntries)this.getAudibleEntries(n,e);return e}getCurrentDynamicChangingExpressions(){return this.currentDynamicChangingExpressions}CurrentScoreFollowingVoiceEntries(t){const e=[];if(!this.currentVoiceEntries)return e;if(t){for(const n of this.currentVoiceEntries)if(n.ParentVoice.Parent.IdString===t.IdString)return this.getScoreFollowingEntries(n,e),e}else for(const n of this.currentVoiceEntries)this.getScoreFollowingEntries(n,e);return e}moveToNext(){this.forwardJumpOccurred=this.backJumpOccurred=!1,this.endReached||(this.currentVoiceEntries&&(this.currentVoiceEntries=[]),this.recursiveMove(),this.currentMeasure||(this.currentTimeStamp=new s.Fraction(99999,1)))}moveToNextVisibleVoiceEntry(t){for(;!this.endReached;)if(this.moveToNext(),this.checkEntries(t))return}resetRepetitionIterationCount(t){return this.setRepetitionIterationCount(t,1),1}incrementRepetitionIterationCount(t){return-1===this.repetitionIterationCountDictKeys.indexOf(t)?this.setRepetitionIterationCount(t,1):this.setRepetitionIterationCount(t,this.getRepetitionIterationCount(t)+1)}setRepetitionIterationCount(t,e){const n=this.repetitionIterationCountDictKeys.indexOf(t);return-1===n?(this.repetitionIterationCountDictKeys.push(t),this.repetitionIterationCountDictValues.push(e)):this.repetitionIterationCountDictValues[n]=e,e}getRepetitionIterationCount(t){const e=this.repetitionIterationCountDictKeys.indexOf(t);if(-1!==e)return this.repetitionIterationCountDictValues[e]}handleRepetitionsAtMeasureBegin(){for(let t=0,e=this.currentMeasure.FirstRepetitionInstructions.length;t<e;++t){const e=this.currentMeasure.FirstRepetitionInstructions[t];if(!e.parentRepetition)continue;const n=e.parentRepetition;this.currentRepetition=n,n.StartIndex===this.currentMeasureIndex&&void 0!==this.JumpResponsibleRepetition&&n!==this.JumpResponsibleRepetition&&n.StartIndex>=this.JumpResponsibleRepetition.StartIndex&&n.EndIndex<=this.JumpResponsibleRepetition.EndIndex&&this.resetRepetitionIterationCount(n)}}handleRepetitionsAtMeasureEnd(){for(let t=0,e=this.currentMeasure.LastRepetitionInstructions.length;t<e;++t){const e=this.currentMeasure.LastRepetitionInstructions[t],n=e.parentRepetition;if(n){if(n.BackwardJumpInstructions.indexOf(e)>-1&&this.getRepetitionIterationCount(n)<n.UserNumberOfRepetitions)return this.doBackJump(n),void(this.backJumpOccurred=!0);if(e===n.forwardJumpInstruction){void 0!==this.JumpResponsibleRepetition&&n!==this.JumpResponsibleRepetition&&n.StartIndex>=this.JumpResponsibleRepetition.StartIndex&&n.EndIndex<=this.JumpResponsibleRepetition.EndIndex&&this.resetRepetitionIterationCount(n);const t=n.getForwardJumpTargetForIteration(this.getRepetitionIterationCount(n));if(t>=0)return this.currentMeasureIndex=t,this.currentMeasure=this.manager.MusicSheet.SourceMeasures[this.currentMeasureIndex],this.currentVoiceEntryIndex=-1,this.jumpResponsibleRepetition=n,void(this.forwardJumpOccurred=!0);-2===t&&(this.endReached=!0)}}}this.currentMeasureIndex++,void 0!==this.JumpResponsibleRepetition&&this.currentMeasureIndex>this.JumpResponsibleRepetition.EndIndex&&(this.jumpResponsibleRepetition=void 0)}doBackJump(t){this.currentMeasureIndex=t.getBackwardJumpTarget(),this.currentMeasure=this.manager.MusicSheet.SourceMeasures[this.currentMeasureIndex],this.currentVoiceEntryIndex=-1,this.incrementRepetitionIterationCount(t),this.jumpResponsibleRepetition=t}activateCurrentRhythmInstructions(){if(void 0!==this.currentMeasure&&this.currentMeasure.FirstInstructionsStaffEntries.length>0&&void 0!==this.currentMeasure.FirstInstructionsStaffEntries[0]){const t=this.currentMeasure.FirstInstructionsStaffEntries[0].Instructions;for(let e=0,n=t.length;e<n;++e){const n=t[e];n instanceof o.RhythmInstruction&&(this.manager.MusicSheet.SheetPlaybackSetting.rhythm=n.Rhythm)}}}activateCurrentDynamicOrTempoInstructions(){const t=this.manager.MusicSheet.TimestampSortedDynamicExpressionsList;for(;this.currentDynamicEntryIndex>0&&(this.currentDynamicEntryIndex>=t.length||this.CurrentSourceTimestamp.lte(t[this.currentDynamicEntryIndex].parMultiExpression().AbsoluteTimestamp));)this.currentDynamicEntryIndex--;for(;this.currentDynamicEntryIndex<t.length&&t[this.currentDynamicEntryIndex].parMultiExpression().AbsoluteTimestamp.lt(this.CurrentSourceTimestamp);)this.currentDynamicEntryIndex++;for(;this.currentDynamicEntryIndex<t.length&&t[this.currentDynamicEntryIndex].parMultiExpression().AbsoluteTimestamp.Equals(this.CurrentSourceTimestamp);){const e=t[this.currentDynamicEntryIndex],n=e.staffNumber;this.CurrentSourceTimestamp.Equals(e.parMultiExpression().AbsoluteTimestamp)&&(e.continuousDynamicExpression?this.activeDynamicExpressions[n]=e.continuousDynamicExpression:e.instantaneousDynamicExpression&&(this.activeDynamicExpressions[n]=e.instantaneousDynamicExpression)),this.currentDynamicEntryIndex++}this.currentDynamicChangingExpressions=[];for(let n=0;n<this.activeDynamicExpressions.length;n++)if(this.activeDynamicExpressions[n]){let t,e;if(this.activeDynamicExpressions[n]instanceof a.ContinuousDynamicExpression){const i=this.activeDynamicExpressions[n];t=i.StartMultiExpression.AbsoluteTimestamp,e=i.EndMultiExpression.AbsoluteTimestamp,t.lte(this.CurrentSourceTimestamp)&&this.CurrentSourceTimestamp.lte(e)&&this.currentDynamicChangingExpressions.push(new r.DynamicsContainer(i,n))}else{const t=this.activeDynamicExpressions[n];this.CurrentSourceTimestamp.Equals(t.ParentMultiExpression.AbsoluteTimestamp)&&this.currentDynamicChangingExpressions.push(new r.DynamicsContainer(t,n))}}const e=this.manager.MusicSheet.TimestampSortedTempoExpressionsList;for(;this.currentTempoEntryIndex>0&&(this.currentTempoEntryIndex>=e.length||this.CurrentSourceTimestamp.lte(e[this.currentTempoEntryIndex].AbsoluteTimestamp));)this.currentTempoEntryIndex--;for(;this.currentTempoEntryIndex<e.length&&e[this.currentTempoEntryIndex].AbsoluteTimestamp.lt(this.CurrentSourceTimestamp);)this.currentTempoEntryIndex++;for(;this.currentTempoEntryIndex<e.length&&e[this.currentTempoEntryIndex].AbsoluteTimestamp.Equals(this.CurrentSourceTimestamp);)this.activeTempoExpression=e[this.currentTempoEntryIndex],this.currentTempoEntryIndex++;if(this.currentTempoChangingExpression=void 0,this.activeTempoExpression){let t=this.activeTempoExpression.AbsoluteTimestamp;this.activeTempoExpression.ContinuousTempo&&(t=this.activeTempoExpression.ContinuousTempo.AbsoluteEndTimestamp),(this.activeTempoExpression.AbsoluteTimestamp.lte(this.CurrentSourceTimestamp)||this.CurrentSourceTimestamp.lte(t))&&(this.currentTempoChangingExpression=this.activeTempoExpression)}}recursiveMove(){if(this.currentVoiceEntryIndex++,0===this.currentVoiceEntryIndex&&(this.handleRepetitionsAtMeasureBegin(),this.activateCurrentRhythmInstructions()),this.currentVoiceEntryIndex>=0&&this.currentVoiceEntryIndex<this.currentMeasure.VerticalSourceStaffEntryContainers.length){const t=this.currentMeasure.VerticalSourceStaffEntryContainers[this.currentVoiceEntryIndex];this.currentVoiceEntries=this.getVoiceEntries(t),this.currentVerticalContainerInMeasureTimestamp=t.Timestamp,this.currentTimeStamp=s.Fraction.plus(this.currentMeasure.AbsoluteTimestamp,this.currentVerticalContainerInMeasureTimestamp);const e=this.manager.MusicSheet.SelectionEnd;return e&&this.currentTimeStamp.gte(e)&&(this.endReached=!0),void this.activateCurrentDynamicOrTempoInstructions()}if(this.currentEnrolledMeasureTimestamp.Add(this.currentMeasure.Duration),this.handleRepetitionsAtMeasureEnd(),this.currentMeasureIndex>=0&&this.currentMeasureIndex<this.manager.MusicSheet.SourceMeasures.length)return this.currentMeasure=this.manager.MusicSheet.SourceMeasures[this.currentMeasureIndex],this.currentTimeStamp=s.Fraction.plus(this.currentMeasure.AbsoluteTimestamp,this.currentVerticalContainerInMeasureTimestamp),this.currentVoiceEntryIndex=-1,void this.recursiveMove();this.currentVerticalContainerInMeasureTimestamp=new s.Fraction,this.currentMeasure=void 0,this.currentVoiceEntries=void 0,this.endReached=!0}checkEntries(t){const e=this.CurrentVisibleVoiceEntries();if(e.length>0){if(!t)return!0;for(let t=0,n=e.length;t<n;++t)if(e[t].Notes[0].Pitch)return!0}return!1}getVisibleEntries(t,e){t.ParentVoice.Visible&&e.push(t)}getAudibleEntries(t,e){t.ParentVoice.Audible&&e.push(t)}getScoreFollowingEntries(t,e){t.ParentVoice.Following&&t.ParentVoice.Parent.Following&&e.push(t)}getVoiceEntries(t){const e=[];for(const n of t.StaffEntries)if(n)for(const t of n.VoiceEntries)e.push(t);return e}}e.MusicPartManagerIterator=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DynamicsContainer=void 0;const i=n(32),s=n(42);e.DynamicsContainer=class{constructor(t,e){t instanceof i.ContinuousDynamicExpression?this.continuousDynamicExpression=t:t instanceof s.InstantaneousDynamicExpression&&(this.instantaneousDynamicExpression=t),this.staffNumber=e}parMultiExpression(){return this.continuousDynamicExpression?this.continuousDynamicExpression.StartMultiExpression:this.instantaneousDynamicExpression?this.instantaneousDynamicExpression.ParentMultiExpression:void 0}CompareTo(t){return this.parMultiExpression().AbsoluteTimestamp.CompareTo(t.parMultiExpression().AbsoluteTimestamp)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MusicSheetErrors=void 0,e.MusicSheetErrors=class{constructor(){this.measureErrors={},this.errors=[],this.tempErrors=[]}finalizeMeasure(t){let e=this.measureErrors[t];e||(e=[]),this.measureErrors[t]=e.concat(this.tempErrors),this.tempErrors=[]}pushMeasureError(t){this.tempErrors.push(t)}push(t){this.errors.push(t)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LyricWord=void 0,e.LyricWord=class{constructor(){this.syllables=[]}get Syllables(){return this.syllables}containsVoiceEntry(t){for(let e=0,n=this.Syllables.length;e<n;++e)if(this.Syllables[e].Parent===t)return!0;return!1}findLyricEntryInVoiceEntry(t){for(let e=0,n=this.Syllables.length;e<n;++e){const n=this.Syllables[e];if(n.Parent===t)return n}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LyricsEntry=void 0,e.LyricsEntry=class{constructor(t,e,n,i,s=-1){this.text=t,this.word=n,this.parent=i,this.verseNumber=e,s>=0&&(this.syllableIndex=s)}get Text(){return this.text}set Text(t){this.text=t}get Word(){return this.word}get Parent(){return this.parent}set Parent(t){this.parent=t}get VerseNumber(){return this.verseNumber}get SyllableIndex(){return this.syllableIndex}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TabNote=void 0;const i=n(36);class s extends i.Note{constructor(t,e,n,i,s,r,o,a,c){super(t,e,n,i,s),this.stringNumber=r,this.fretNumber=o,this.bendArray=a,this.vibratoStroke=c}get StringNumber(){return this.stringNumber}get FretNumber(){return this.fretNumber}get BendArray(){return this.bendArray}get VibratoStroke(){return this.vibratoStroke}}e.TabNote=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TempoExpressionEntry=e.MultiTempoExpression=void 0;const i=n(0),s=n(53),r=n(3),o=n(20),a=n(54);e.MultiTempoExpression=class{constructor(t,e){this.expressions=[],this.sourceMeasure=t,this.timestamp=e}get Timestamp(){return this.timestamp}get AbsoluteTimestamp(){return i.Fraction.plus(this.sourceMeasure.AbsoluteTimestamp,this.timestamp)}get SourceMeasureParent(){return this.sourceMeasure}set SourceMeasureParent(t){this.sourceMeasure=t}get InstantaneousTempo(){return this.instantaneousTempo}get ContinuousTempo(){return this.continuousTempo}get EntriesList(){return this.expressions}get CombinedExpressionsText(){return this.combinedExpressionsText}set CombinedExpressionsText(t){this.combinedExpressionsText=t}getPlacementOfFirstEntry(){let t=r.PlacementEnum.Above;return this.expressions.length>0&&(this.expressions[0].Expression instanceof s.InstantaneousTempoExpression||this.expressions[0].Expression instanceof a.ContinuousTempoExpression)&&(t=this.expressions[0].Expression.Placement),t}getFontstyleOfFirstEntry(){let t=o.FontStyles.Regular;return this.expressions[0].Expression instanceof s.InstantaneousTempoExpression?t=o.FontStyles.Bold:this.expressions[0].Expression instanceof a.ContinuousTempoExpression&&(t=o.FontStyles.Italic),t}addExpression(t,e){if(this.checkIfAlreadyExists(t))return;t instanceof s.InstantaneousTempoExpression?this.instantaneousTempo=t:t instanceof a.ContinuousTempoExpression&&(this.continuousTempo=t);const n=new c;n.prefix=e,n.Expression=t,n.label=t.Label,this.expressions.push(n)}CompareTo(t){return this.Timestamp.RealValue>t.Timestamp.RealValue?1:this.Timestamp.RealValue<t.Timestamp.RealValue?-1:0}checkIfAlreadyExists(t){for(const e of this.expressions)if(e.label===t.Label)return!0;return!1}};class c{get Expression(){return this.expression}set Expression(t){this.expression=t}}e.TempoExpressionEntry=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MultiExpressionEntry=e.MultiExpression=void 0;const i=n(0),s=n(42),r=n(32),o=n(89),a=n(90),c=n(3),l=n(20);e.MultiExpression=class{constructor(t,e){this.unknownList=[],this.moodList=[],this.expressions=[],this.sourceMeasure=t,this.timestamp=e}get SourceMeasureParent(){return this.sourceMeasure}set SourceMeasureParent(t){this.sourceMeasure=t}get StaffNumber(){return this.staffNumber}set StaffNumber(t){this.staffNumber=t}get Timestamp(){return this.timestamp}set Timestamp(t){this.timestamp=t}get AbsoluteTimestamp(){return i.Fraction.plus(this.timestamp,this.sourceMeasure.AbsoluteTimestamp)}get InstantaneousDynamic(){return this.instantaneousDynamic}set InstantaneousDynamic(t){this.instantaneousDynamic=t}get EndingContinuousDynamic(){return this.endingContinuousDynamic}set EndingContinuousDynamic(t){this.endingContinuousDynamic=t}get StartingContinuousDynamic(){return this.startingContinuousDynamic}set StartingContinuousDynamic(t){this.startingContinuousDynamic=t}get MoodList(){return this.moodList}get UnknownList(){return this.unknownList}get EntriesList(){return this.expressions}get OctaveShiftStart(){return this.octaveShiftStart}set OctaveShiftStart(t){this.octaveShiftStart=t}get OctaveShiftEnd(){return this.octaveShiftEnd}set OctaveShiftEnd(t){this.octaveShiftEnd=t}get CombinedExpressionsText(){return this.combinedExpressionsText}set CombinedExpressionsText(t){this.combinedExpressionsText=t}getPlacementOfFirstEntry(){let t=c.PlacementEnum.Above;return this.expressions.length>0&&(this.expressions[0].expression instanceof s.InstantaneousDynamicExpression||this.expressions[0].expression instanceof r.ContinuousDynamicExpression||this.expressions[0].expression instanceof o.MoodExpression||this.expressions[0].expression instanceof a.UnknownExpression)&&(t=this.expressions[0].expression.Placement),t}getFontstyleOfFirstEntry(){var t;let e=l.FontStyles.Regular;return this.expressions.length>0&&(this.expressions[0].expression instanceof r.ContinuousDynamicExpression||this.expressions[0].expression instanceof o.MoodExpression?e=l.FontStyles.Italic:this.expressions[0].expression instanceof a.UnknownExpression&&(e=null!==(t=this.expressions[0].expression.fontStyle)&&void 0!==t?t:l.FontStyles.Regular)),e}addExpression(t,e){t instanceof s.InstantaneousDynamicExpression?(this.instantaneousDynamic&&this.removeExpressionFromEntryList(this.InstantaneousDynamic),this.instantaneousDynamic=t,this.instantaneousDynamic.ParentMultiExpression=this):t instanceof r.ContinuousDynamicExpression?this.startingContinuousDynamic=t:t instanceof o.MoodExpression?this.moodList.push(t):t instanceof a.UnknownExpression&&this.unknownList.push(t),this.addExpressionToEntryList(t,e)}CompareTo(t){return this.Timestamp.RealValue>t.Timestamp.RealValue?1:this.Timestamp.RealValue<t.Timestamp.RealValue?-1:0}addExpressionToEntryList(t,e){const n=new u;n.prefix=e,n.expression=t,t instanceof r.ContinuousDynamicExpression||t instanceof o.MoodExpression||t instanceof a.UnknownExpression?n.label=t.Label:n.label="",this.expressions.push(n)}removeExpressionFromEntryList(t){for(let e=0,n=this.expressions.length;e<n;++e)if(this.expressions[e].expression===t){this.expressions.splice(e,1);break}}};class u{}e.MultiExpressionEntry=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Slur=void 0;const i=n(0);e.Slur=class{constructor(){}get StartNote(){return this.startNote}set StartNote(t){this.startNote=t}get EndNote(){return this.endNote}set EndNote(t){this.endNote=t}startNoteHasMoreStartingSlurs(){if(!this.startNote)return!1;for(let t=0,e=this.startNote.NoteSlurs.length;t<e;++t){const e=this.startNote.NoteSlurs[t];if(e!==this&&e.StartNote===this.startNote)return!0}return!1}endNoteHasMoreEndingSlurs(){if(!this.endNote)return!1;for(let t=0,e=this.endNote.NoteSlurs.length;t<e;++t){const e=this.endNote.NoteSlurs[t];if(e!==this&&e.EndNote===this.endNote)return!0}return!1}isCrossed(){return this.startNote.ParentStaffEntry.ParentStaff!==this.endNote.ParentStaffEntry.ParentStaff}isSlurLonger(){if(!this.endNote||!this.startNote)return!1;const t=i.Fraction.minus(this.endNote.getAbsoluteTimestamp(),this.startNote.getAbsoluteTimestamp());for(let e=0,n=this.startNote.NoteSlurs.length;e<n;++e){const n=this.startNote.NoteSlurs[e];if(n!==this&&void 0!==n.EndNote&&void 0!==n.StartNote&&-1===i.Fraction.minus(n.EndNote.getAbsoluteTimestamp(),n.StartNote.getAbsoluteTimestamp()).CompareTo(t))return!0}for(let e=0,n=this.endNote.NoteSlurs.length;e<n;++e){const n=this.endNote.NoteSlurs[e];if(n!==this&&void 0!==n.EndNote&&void 0!==n.StartNote&&i.Fraction.minus(n.EndNote.getAbsoluteTimestamp(),n.StartNote.getAbsoluteTimestamp()).CompareTo(t))return!0}return!1}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StringUtil=void 0,e.StringUtil=class{static StringContainsSeparatedWord(t,e){return!!new RegExp("( |^)"+e+"([ .]|$)").test(t)}}},function(t,e,n){(function(e,n,i){t.exports=function t(e,n,i){function s(o,a){if(!n[o]){if(!e[o]){if(r)return r(o,!0);var c=new Error("Cannot find module '"+o+"'");throw c.code="MODULE_NOT_FOUND",c}var l=n[o]={exports:{}};e[o][0].call(l.exports,(function(t){return s(e[o][1][t]||t)}),l,l.exports,t,e,n,i)}return n[o].exports}for(var r=!1,o=0;o<i.length;o++)s(i[o]);return s}({1:[function(t,e,n){"use strict";var i=t("./utils"),s=t("./support"),r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n.encode=function(t){for(var e,n,s,o,a,c,l,u=[],h=0,d=t.length,f=d,p="string"!==i.getTypeOf(t);h<t.length;)f=d-h,s=p?(e=t[h++],n=h<d?t[h++]:0,h<d?t[h++]:0):(e=t.charCodeAt(h++),n=h<d?t.charCodeAt(h++):0,h<d?t.charCodeAt(h++):0),o=e>>2,a=(3&e)<<4|n>>4,c=1<f?(15&n)<<2|s>>6:64,l=2<f?63&s:64,u.push(r.charAt(o)+r.charAt(a)+r.charAt(c)+r.charAt(l));return u.join("")},n.decode=function(t){var e,n,i,o,a,c,l=0,u=0,h="data:";if(t.substr(0,h.length)===h)throw new Error("Invalid base64 input, it looks like a data url.");var d,f=3*(t=t.replace(/[^A-Za-z0-9\+\/\=]/g,"")).length/4;if(t.charAt(t.length-1)===r.charAt(64)&&f--,t.charAt(t.length-2)===r.charAt(64)&&f--,f%1!=0)throw new Error("Invalid base64 input, bad content length.");for(d=s.uint8array?new Uint8Array(0|f):new Array(0|f);l<t.length;)e=r.indexOf(t.charAt(l++))<<2|(o=r.indexOf(t.charAt(l++)))>>4,n=(15&o)<<4|(a=r.indexOf(t.charAt(l++)))>>2,i=(3&a)<<6|(c=r.indexOf(t.charAt(l++))),d[u++]=e,64!==a&&(d[u++]=n),64!==c&&(d[u++]=i);return d}},{"./support":30,"./utils":32}],2:[function(t,e,n){"use strict";var i=t("./external"),s=t("./stream/DataWorker"),r=t("./stream/DataLengthProbe"),o=t("./stream/Crc32Probe");function a(t,e,n,i,s){this.compressedSize=t,this.uncompressedSize=e,this.crc32=n,this.compression=i,this.compressedContent=s}r=t("./stream/DataLengthProbe"),a.prototype={getContentWorker:function(){var t=new s(i.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new r("data_length")),e=this;return t.on("end",(function(){if(this.streamInfo.data_length!==e.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),t},getCompressedWorker:function(){return new s(i.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},a.createWorkerFrom=function(t,e,n){return t.pipe(new o).pipe(new r("uncompressedSize")).pipe(e.compressWorker(n)).pipe(new r("compressedSize")).withStreamInfo("compression",e)},e.exports=a},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(t,e,n){"use strict";var i=t("./stream/GenericWorker");n.STORE={magic:"\0\0",compressWorker:function(t){return new i("STORE compression")},uncompressWorker:function(){return new i("STORE decompression")}},n.DEFLATE=t("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(t,e,n){"use strict";var i=t("./utils"),s=function(){for(var t,e=[],n=0;n<256;n++){t=n;for(var i=0;i<8;i++)t=1&t?3988292384^t>>>1:t>>>1;e[n]=t}return e}();e.exports=function(t,e){return void 0!==t&&t.length?"string"!==i.getTypeOf(t)?function(t,e,n,i){var r=s,o=0+n;t^=-1;for(var a=0;a<o;a++)t=t>>>8^r[255&(t^e[a])];return-1^t}(0|e,t,t.length):function(t,e,n,i){var r=s,o=0+n;t^=-1;for(var a=0;a<o;a++)t=t>>>8^r[255&(t^e.charCodeAt(a))];return-1^t}(0|e,t,t.length):0}},{"./utils":32}],5:[function(t,e,n){"use strict";n.base64=!1,n.binary=!1,n.dir=!1,n.createFolders=!0,n.date=null,n.compression=null,n.compressionOptions=null,n.comment=null,n.unixPermissions=null,n.dosPermissions=null},{}],6:[function(t,e,n){"use strict";var i;i="undefined"!=typeof Promise?Promise:t("lie"),e.exports={Promise:i}},{lie:37}],7:[function(t,e,n){"use strict";var i="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,s=t("pako"),r=t("./utils"),o=t("./stream/GenericWorker"),a=i?"uint8array":"array";function c(t,e){o.call(this,"FlateWorker/"+t),this._pako=null,this._pakoAction=t,this._pakoOptions=e,this.meta={}}n.magic="\b\0",r.inherits(c,o),c.prototype.processChunk=function(t){this.meta=t.meta,null===this._pako&&this._createPako(),this._pako.push(r.transformTo(a,t.data),!1)},c.prototype.flush=function(){o.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},c.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this._pako=null},c.prototype._createPako=function(){this._pako=new s[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var t=this;this._pako.onData=function(e){t.push({data:e,meta:t.meta})}},n.compressWorker=function(t){return new c("Deflate",t)},n.uncompressWorker=function(){return new c("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(t,e,n){"use strict";function i(t,e){var n,i="";for(n=0;n<e;n++)i+=String.fromCharCode(255&t),t>>>=8;return i}function s(t,e,n,s,o,u){var h,d,f=t.file,p=t.compression,m=u!==a.utf8encode,g=r.transformTo("string",u(f.name)),b=r.transformTo("string",a.utf8encode(f.name)),v=f.comment,y=r.transformTo("string",u(v)),S=r.transformTo("string",a.utf8encode(v)),x=b.length!==f.name.length,_=S.length!==v.length,w="",E="",T="",C=f.dir,M=f.date,P={crc32:0,compressedSize:0,uncompressedSize:0};e&&!n||(P.crc32=t.crc32,P.compressedSize=t.compressedSize,P.uncompressedSize=t.uncompressedSize);var A=0;e&&(A|=8),m||!x&&!_||(A|=2048);var I=0,L=0;C&&(I|=16),"UNIX"===o?(L=798,I|=function(t,e){var n=t;return t||(n=e?16893:33204),(65535&n)<<16}(f.unixPermissions,C)):(L=20,I|=function(t){return 63&(t||0)}(f.dosPermissions)),h=M.getUTCHours(),h<<=6,h|=M.getUTCMinutes(),h<<=5,h|=M.getUTCSeconds()/2,d=M.getUTCFullYear()-1980,d<<=4,d|=M.getUTCMonth()+1,d<<=5,d|=M.getUTCDate(),x&&(E=i(1,1)+i(c(g),4)+b,w+="up"+i(E.length,2)+E),_&&(T=i(1,1)+i(c(y),4)+S,w+="uc"+i(T.length,2)+T);var O="";return O+="\n\0",O+=i(A,2),O+=p.magic,O+=i(h,2),O+=i(d,2),O+=i(P.crc32,4),O+=i(P.compressedSize,4),O+=i(P.uncompressedSize,4),O+=i(g.length,2),O+=i(w.length,2),{fileRecord:l.LOCAL_FILE_HEADER+O+g+w,dirRecord:l.CENTRAL_FILE_HEADER+i(L,2)+O+i(y.length,2)+"\0\0\0\0"+i(I,4)+i(s,4)+g+w+y}}var r=t("../utils"),o=t("../stream/GenericWorker"),a=t("../utf8"),c=t("../crc32"),l=t("../signature");function u(t,e,n,i){o.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=e,this.zipPlatform=n,this.encodeFileName=i,this.streamFiles=t,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}r.inherits(u,o),u.prototype.push=function(t){var e=t.meta.percent||0,n=this.entriesCount,i=this._sources.length;this.accumulate?this.contentBuffer.push(t):(this.bytesWritten+=t.data.length,o.prototype.push.call(this,{data:t.data,meta:{currentFile:this.currentFile,percent:n?(e+100*(n-i-1))/n:100}}))},u.prototype.openedSource=function(t){this.currentSourceOffset=this.bytesWritten,this.currentFile=t.file.name;var e=this.streamFiles&&!t.file.dir;if(e){var n=s(t,e,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:n.fileRecord,meta:{percent:0}})}else this.accumulate=!0},u.prototype.closedSource=function(t){this.accumulate=!1;var e=this.streamFiles&&!t.file.dir,n=s(t,e,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(n.dirRecord),e)this.push({data:function(t){return l.DATA_DESCRIPTOR+i(t.crc32,4)+i(t.compressedSize,4)+i(t.uncompressedSize,4)}(t),meta:{percent:100}});else for(this.push({data:n.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},u.prototype.flush=function(){for(var t=this.bytesWritten,e=0;e<this.dirRecords.length;e++)this.push({data:this.dirRecords[e],meta:{percent:100}});var n=this.bytesWritten-t,s=function(t,e,n,s,o){var a=r.transformTo("string",o(s));return l.CENTRAL_DIRECTORY_END+"\0\0\0\0"+i(t,2)+i(t,2)+i(e,4)+i(n,4)+i(a.length,2)+a}(this.dirRecords.length,n,t,this.zipComment,this.encodeFileName);this.push({data:s,meta:{percent:100}})},u.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},u.prototype.registerPrevious=function(t){this._sources.push(t);var e=this;return t.on("data",(function(t){e.processChunk(t)})),t.on("end",(function(){e.closedSource(e.previous.streamInfo),e._sources.length?e.prepareNextSource():e.end()})),t.on("error",(function(t){e.error(t)})),this},u.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},u.prototype.error=function(t){var e=this._sources;if(!o.prototype.error.call(this,t))return!1;for(var n=0;n<e.length;n++)try{e[n].error(t)}catch(t){}return!0},u.prototype.lock=function(){o.prototype.lock.call(this);for(var t=this._sources,e=0;e<t.length;e++)t[e].lock()},e.exports=u},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(t,e,n){"use strict";var i=t("../compressions"),s=t("./ZipFileWorker");n.generateWorker=function(t,e,n){var r=new s(e.streamFiles,n,e.platform,e.encodeFileName),o=0;try{t.forEach((function(t,n){o++;var s=function(t,e){var n=t||e,s=i[n];if(!s)throw new Error(n+" is not a valid compression method !");return s}(n.options.compression,e.compression),a=n.options.compressionOptions||e.compressionOptions||{},c=n.dir,l=n.date;n._compressWorker(s,a).withStreamInfo("file",{name:t,dir:c,date:l,comment:n.comment||"",unixPermissions:n.unixPermissions,dosPermissions:n.dosPermissions}).pipe(r)})),r.entriesCount=o}catch(t){r.error(t)}return r}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(t,e,n){"use strict";function i(){if(!(this instanceof i))return new i;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files={},this.comment=null,this.root="",this.clone=function(){var t=new i;for(var e in this)"function"!=typeof this[e]&&(t[e]=this[e]);return t}}(i.prototype=t("./object")).loadAsync=t("./load"),i.support=t("./support"),i.defaults=t("./defaults"),i.version="3.4.0",i.loadAsync=function(t,e){return(new i).loadAsync(t,e)},i.external=t("./external"),e.exports=i},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(t,e,n){"use strict";var i=t("./utils"),s=t("./external"),r=t("./utf8"),o=(i=t("./utils"),t("./zipEntries")),a=t("./stream/Crc32Probe"),c=t("./nodejsUtils");function l(t){return new s.Promise((function(e,n){var i=t.decompressed.getContentWorker().pipe(new a);i.on("error",(function(t){n(t)})).on("end",(function(){i.streamInfo.crc32!==t.decompressed.crc32?n(new Error("Corrupted zip : CRC32 mismatch")):e()})).resume()}))}e.exports=function(t,e){var n=this;return e=i.extend(e||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:r.utf8decode}),c.isNode&&c.isStream(t)?s.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):i.prepareContent("the loaded zip file",t,!0,e.optimizedBinaryString,e.base64).then((function(t){var n=new o(e);return n.load(t),n})).then((function(t){var n=[s.Promise.resolve(t)],i=t.files;if(e.checkCRC32)for(var r=0;r<i.length;r++)n.push(l(i[r]));return s.Promise.all(n)})).then((function(t){for(var i=t.shift(),s=i.files,r=0;r<s.length;r++){var o=s[r];n.file(o.fileNameStr,o.decompressed,{binary:!0,optimizedBinaryString:!0,date:o.date,dir:o.dir,comment:o.fileCommentStr.length?o.fileCommentStr:null,unixPermissions:o.unixPermissions,dosPermissions:o.dosPermissions,createFolders:e.createFolders})}return i.zipComment.length&&(n.comment=i.zipComment),n}))}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(t,e,n){"use strict";var i=t("../utils"),s=t("../stream/GenericWorker");function r(t,e){s.call(this,"Nodejs stream input adapter for "+t),this._upstreamEnded=!1,this._bindStream(e)}i.inherits(r,s),r.prototype._bindStream=function(t){var e=this;(this._stream=t).pause(),t.on("data",(function(t){e.push({data:t,meta:{percent:0}})})).on("error",(function(t){e.isPaused?this.generatedError=t:e.error(t)})).on("end",(function(){e.isPaused?e._upstreamEnded=!0:e.end()}))},r.prototype.pause=function(){return!!s.prototype.pause.call(this)&&(this._stream.pause(),!0)},r.prototype.resume=function(){return!!s.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},e.exports=r},{"../stream/GenericWorker":28,"../utils":32}],13:[function(t,e,n){"use strict";var i=t("readable-stream").Readable;function s(t,e,n){i.call(this,e),this._helper=t;var s=this;t.on("data",(function(t,e){s.push(t)||s._helper.pause(),n&&n(e)})).on("error",(function(t){s.emit("error",t)})).on("end",(function(){s.push(null)}))}t("../utils").inherits(s,i),s.prototype._read=function(){this._helper.resume()},e.exports=s},{"../utils":32,"readable-stream":16}],14:[function(t,n,i){"use strict";n.exports={isNode:void 0!==e,newBufferFrom:function(t,n){if(e.from&&e.from!==Uint8Array.from)return e.from(t,n);if("number"==typeof t)throw new Error('The "data" argument must not be a number');return new e(t,n)},allocBuffer:function(t){if(e.alloc)return e.alloc(t);var n=new e(t);return n.fill(0),n},isBuffer:function(t){return e.isBuffer(t)},isStream:function(t){return t&&"function"==typeof t.on&&"function"==typeof t.pause&&"function"==typeof t.resume}}},{}],15:[function(t,e,n){"use strict";function i(t,e,n){var i,s=r.getTypeOf(e),a=r.extend(n||{},c);a.date=a.date||new Date,null!==a.compression&&(a.compression=a.compression.toUpperCase()),"string"==typeof a.unixPermissions&&(a.unixPermissions=parseInt(a.unixPermissions,8)),a.unixPermissions&&16384&a.unixPermissions&&(a.dir=!0),a.dosPermissions&&16&a.dosPermissions&&(a.dir=!0),a.dir&&(t=m(t)),a.createFolders&&(i=p(t))&&g.call(this,i,!0);var h,b="string"===s&&!1===a.binary&&!1===a.base64;n&&void 0!==n.binary||(a.binary=!b),(e instanceof l&&0===e.uncompressedSize||a.dir||!e||0===e.length)&&(a.base64=!1,a.binary=!0,e="",a.compression="STORE",s="string"),h=e instanceof l||e instanceof o?e:d.isNode&&d.isStream(e)?new f(t,e):r.prepareContent(t,e,a.binary,a.optimizedBinaryString,a.base64);var v=new u(t,h,a);this.files[t]=v}var s=t("./utf8"),r=t("./utils"),o=t("./stream/GenericWorker"),a=t("./stream/StreamHelper"),c=t("./defaults"),l=t("./compressedObject"),u=t("./zipObject"),h=t("./generate"),d=t("./nodejsUtils"),f=t("./nodejs/NodejsStreamInputAdapter"),p=function(t){"/"===t.slice(-1)&&(t=t.substring(0,t.length-1));var e=t.lastIndexOf("/");return 0<e?t.substring(0,e):""},m=function(t){return"/"!==t.slice(-1)&&(t+="/"),t},g=function(t,e){return e=void 0!==e?e:c.createFolders,t=m(t),this.files[t]||i.call(this,t,null,{dir:!0,createFolders:e}),this.files[t]};function b(t){return"[object RegExp]"===Object.prototype.toString.call(t)}var v={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(t){var e,n,i;for(e in this.files)this.files.hasOwnProperty(e)&&(i=this.files[e],(n=e.slice(this.root.length,e.length))&&e.slice(0,this.root.length)===this.root&&t(n,i))},filter:function(t){var e=[];return this.forEach((function(n,i){t(n,i)&&e.push(i)})),e},file:function(t,e,n){if(1!==arguments.length)return t=this.root+t,i.call(this,t,e,n),this;if(b(t)){var s=t;return this.filter((function(t,e){return!e.dir&&s.test(t)}))}var r=this.files[this.root+t];return r&&!r.dir?r:null},folder:function(t){if(!t)return this;if(b(t))return this.filter((function(e,n){return n.dir&&t.test(e)}));var e=this.root+t,n=g.call(this,e),i=this.clone();return i.root=n.name,i},remove:function(t){t=this.root+t;var e=this.files[t];if(e||("/"!==t.slice(-1)&&(t+="/"),e=this.files[t]),e&&!e.dir)delete this.files[t];else for(var n=this.filter((function(e,n){return n.name.slice(0,t.length)===t})),i=0;i<n.length;i++)delete this.files[n[i].name];return this},generate:function(t){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(t){var e,n={};try{if((n=r.extend(t||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:s.utf8encode})).type=n.type.toLowerCase(),n.compression=n.compression.toUpperCase(),"binarystring"===n.type&&(n.type="string"),!n.type)throw new Error("No output type specified.");r.checkSupport(n.type),"darwin"!==n.platform&&"freebsd"!==n.platform&&"linux"!==n.platform&&"sunos"!==n.platform||(n.platform="UNIX"),"win32"===n.platform&&(n.platform="DOS");var i=n.comment||this.comment||"";e=h.generateWorker(this,n,i)}catch(t){(e=new o("error")).error(t)}return new a(e,n.type||"string",n.mimeType)},generateAsync:function(t,e){return this.generateInternalStream(t).accumulate(e)},generateNodeStream:function(t,e){return(t=t||{}).type||(t.type="nodebuffer"),this.generateInternalStream(t).toNodejsStream(e)}};e.exports=v},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(t,e,n){e.exports=t("stream")},{stream:void 0}],17:[function(t,e,n){"use strict";var i=t("./DataReader");function s(t){i.call(this,t);for(var e=0;e<this.data.length;e++)t[e]=255&t[e]}t("../utils").inherits(s,i),s.prototype.byteAt=function(t){return this.data[this.zero+t]},s.prototype.lastIndexOfSignature=function(t){for(var e=t.charCodeAt(0),n=t.charCodeAt(1),i=t.charCodeAt(2),s=t.charCodeAt(3),r=this.length-4;0<=r;--r)if(this.data[r]===e&&this.data[r+1]===n&&this.data[r+2]===i&&this.data[r+3]===s)return r-this.zero;return-1},s.prototype.readAndCheckSignature=function(t){var e=t.charCodeAt(0),n=t.charCodeAt(1),i=t.charCodeAt(2),s=t.charCodeAt(3),r=this.readData(4);return e===r[0]&&n===r[1]&&i===r[2]&&s===r[3]},s.prototype.readData=function(t){if(this.checkOffset(t),0===t)return[];var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=s},{"../utils":32,"./DataReader":18}],18:[function(t,e,n){"use strict";var i=t("../utils");function s(t){this.data=t,this.length=t.length,this.index=0,this.zero=0}s.prototype={checkOffset:function(t){this.checkIndex(this.index+t)},checkIndex:function(t){if(this.length<this.zero+t||t<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+t+"). Corrupted zip ?")},setIndex:function(t){this.checkIndex(t),this.index=t},skip:function(t){this.setIndex(this.index+t)},byteAt:function(t){},readInt:function(t){var e,n=0;for(this.checkOffset(t),e=this.index+t-1;e>=this.index;e--)n=(n<<8)+this.byteAt(e);return this.index+=t,n},readString:function(t){return i.transformTo("string",this.readData(t))},readData:function(t){},lastIndexOfSignature:function(t){},readAndCheckSignature:function(t){},readDate:function(){var t=this.readInt(4);return new Date(Date.UTC(1980+(t>>25&127),(t>>21&15)-1,t>>16&31,t>>11&31,t>>5&63,(31&t)<<1))}},e.exports=s},{"../utils":32}],19:[function(t,e,n){"use strict";var i=t("./Uint8ArrayReader");function s(t){i.call(this,t)}t("../utils").inherits(s,i),s.prototype.readData=function(t){this.checkOffset(t);var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=s},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(t,e,n){"use strict";var i=t("./DataReader");function s(t){i.call(this,t)}t("../utils").inherits(s,i),s.prototype.byteAt=function(t){return this.data.charCodeAt(this.zero+t)},s.prototype.lastIndexOfSignature=function(t){return this.data.lastIndexOf(t)-this.zero},s.prototype.readAndCheckSignature=function(t){return t===this.readData(4)},s.prototype.readData=function(t){this.checkOffset(t);var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=s},{"../utils":32,"./DataReader":18}],21:[function(t,e,n){"use strict";var i=t("./ArrayReader");function s(t){i.call(this,t)}t("../utils").inherits(s,i),s.prototype.readData=function(t){if(this.checkOffset(t),0===t)return new Uint8Array(0);var e=this.data.subarray(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=s},{"../utils":32,"./ArrayReader":17}],22:[function(t,e,n){"use strict";var i=t("../utils"),s=t("../support"),r=t("./ArrayReader"),o=t("./StringReader"),a=t("./NodeBufferReader"),c=t("./Uint8ArrayReader");e.exports=function(t){var e=i.getTypeOf(t);return i.checkSupport(e),"string"!==e||s.uint8array?"nodebuffer"===e?new a(t):s.uint8array?new c(i.transformTo("uint8array",t)):new r(i.transformTo("array",t)):new o(t)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(t,e,n){"use strict";n.LOCAL_FILE_HEADER="PK",n.CENTRAL_FILE_HEADER="PK",n.CENTRAL_DIRECTORY_END="PK",n.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",n.ZIP64_CENTRAL_DIRECTORY_END="PK",n.DATA_DESCRIPTOR="PK\b"},{}],24:[function(t,e,n){"use strict";var i=t("./GenericWorker"),s=t("../utils");function r(t){i.call(this,"ConvertWorker to "+t),this.destType=t}s.inherits(r,i),r.prototype.processChunk=function(t){this.push({data:s.transformTo(this.destType,t.data),meta:t.meta})},e.exports=r},{"../utils":32,"./GenericWorker":28}],25:[function(t,e,n){"use strict";var i=t("./GenericWorker"),s=t("../crc32");function r(){i.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}t("../utils").inherits(r,i),r.prototype.processChunk=function(t){this.streamInfo.crc32=s(t.data,this.streamInfo.crc32||0),this.push(t)},e.exports=r},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(t,e,n){"use strict";var i=t("../utils"),s=t("./GenericWorker");function r(t){s.call(this,"DataLengthProbe for "+t),this.propName=t,this.withStreamInfo(t,0)}i.inherits(r,s),r.prototype.processChunk=function(t){if(t){var e=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=e+t.data.length}s.prototype.processChunk.call(this,t)},e.exports=r},{"../utils":32,"./GenericWorker":28}],27:[function(t,e,n){"use strict";var i=t("../utils"),s=t("./GenericWorker");function r(t){s.call(this,"DataWorker");var e=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,t.then((function(t){e.dataIsReady=!0,e.data=t,e.max=t&&t.length||0,e.type=i.getTypeOf(t),e.isPaused||e._tickAndRepeat()}),(function(t){e.error(t)}))}i.inherits(r,s),r.prototype.cleanUp=function(){s.prototype.cleanUp.call(this),this.data=null},r.prototype.resume=function(){return!!s.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,i.delay(this._tickAndRepeat,[],this)),!0)},r.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(i.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},r.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var t=null,e=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":t=this.data.substring(this.index,e);break;case"uint8array":t=this.data.subarray(this.index,e);break;case"array":case"nodebuffer":t=this.data.slice(this.index,e)}return this.index=e,this.push({data:t,meta:{percent:this.max?this.index/this.max*100:0}})},e.exports=r},{"../utils":32,"./GenericWorker":28}],28:[function(t,e,n){"use strict";function i(t){this.name=t||"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}i.prototype={push:function(t){this.emit("data",t)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(t){this.emit("error",t)}return!0},error:function(t){return!this.isFinished&&(this.isPaused?this.generatedError=t:(this.isFinished=!0,this.emit("error",t),this.previous&&this.previous.error(t),this.cleanUp()),!0)},on:function(t,e){return this._listeners[t].push(e),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(t,e){if(this._listeners[t])for(var n=0;n<this._listeners[t].length;n++)this._listeners[t][n].call(this,e)},pipe:function(t){return t.registerPrevious(this)},registerPrevious:function(t){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=t.streamInfo,this.mergeStreamInfo(),this.previous=t;var e=this;return t.on("data",(function(t){e.processChunk(t)})),t.on("end",(function(){e.end()})),t.on("error",(function(t){e.error(t)})),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var t=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),t=!0),this.previous&&this.previous.resume(),!t},flush:function(){},processChunk:function(t){this.push(t)},withStreamInfo:function(t,e){return this.extraStreamInfo[t]=e,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var t in this.extraStreamInfo)this.extraStreamInfo.hasOwnProperty(t)&&(this.streamInfo[t]=this.extraStreamInfo[t])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var t="Worker "+this.name;return this.previous?this.previous+" -> "+t:t}},e.exports=i},{}],29:[function(t,n,i){"use strict";var s=t("../utils"),r=t("./ConvertWorker"),o=t("./GenericWorker"),a=t("../base64"),c=t("../support"),l=t("../external"),u=null;if(c.nodestream)try{u=t("../nodejs/NodejsStreamOutputAdapter")}catch(t){}function h(t,e,n){var i=e;switch(e){case"blob":case"arraybuffer":i="uint8array";break;case"base64":i="string"}try{this._internalType=i,this._outputType=e,this._mimeType=n,s.checkSupport(i),this._worker=t.pipe(new r(i)),t.lock()}catch(t){this._worker=new o("error"),this._worker.error(t)}}h.prototype={accumulate:function(t){return function(t,n){return new l.Promise((function(i,r){var o=[],c=t._internalType,l=t._outputType,u=t._mimeType;t.on("data",(function(t,e){o.push(t),n&&n(e)})).on("error",(function(t){o=[],r(t)})).on("end",(function(){try{var t=function(t,e,n){switch(t){case"blob":return s.newBlob(s.transformTo("arraybuffer",e),n);case"base64":return a.encode(e);default:return s.transformTo(t,e)}}(l,function(t,n){var i,s=0,r=null,o=0;for(i=0;i<n.length;i++)o+=n[i].length;switch(t){case"string":return n.join("");case"array":return Array.prototype.concat.apply([],n);case"uint8array":for(r=new Uint8Array(o),i=0;i<n.length;i++)r.set(n[i],s),s+=n[i].length;return r;case"nodebuffer":return e.concat(n);default:throw new Error("concat : unsupported type '"+t+"'")}}(c,o),u);i(t)}catch(t){r(t)}o=[]})).resume()}))}(this,t)},on:function(t,e){var n=this;return"data"===t?this._worker.on(t,(function(t){e.call(n,t.data,t.meta)})):this._worker.on(t,(function(){s.delay(e,arguments,n)})),this},resume:function(){return s.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(t){if(s.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new u(this,{objectMode:"nodebuffer"!==this._outputType},t)}},n.exports=h},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(t,n,i){"use strict";if(i.base64=!0,i.array=!0,i.string=!0,i.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,i.nodebuffer=void 0!==e,i.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)i.blob=!1;else{var s=new ArrayBuffer(0);try{i.blob=0===new Blob([s],{type:"application/zip"}).size}catch(t){try{var r=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);r.append(s),i.blob=0===r.getBlob("application/zip").size}catch(t){i.blob=!1}}}try{i.nodestream=!!t("readable-stream").Readable}catch(t){i.nodestream=!1}},{"readable-stream":16}],31:[function(t,e,n){"use strict";for(var i=t("./utils"),s=t("./support"),r=t("./nodejsUtils"),o=t("./stream/GenericWorker"),a=new Array(256),c=0;c<256;c++)a[c]=252<=c?6:248<=c?5:240<=c?4:224<=c?3:192<=c?2:1;function l(){o.call(this,"utf-8 decode"),this.leftOver=null}function u(){o.call(this,"utf-8 encode")}a[254]=a[254]=1,n.utf8encode=function(t){return s.nodebuffer?r.newBufferFrom(t,"utf-8"):function(t){var e,n,i,r,o,a=t.length,c=0;for(r=0;r<a;r++)55296==(64512&(n=t.charCodeAt(r)))&&r+1<a&&56320==(64512&(i=t.charCodeAt(r+1)))&&(n=65536+(n-55296<<10)+(i-56320),r++),c+=n<128?1:n<2048?2:n<65536?3:4;for(e=s.uint8array?new Uint8Array(c):new Array(c),r=o=0;o<c;r++)55296==(64512&(n=t.charCodeAt(r)))&&r+1<a&&56320==(64512&(i=t.charCodeAt(r+1)))&&(n=65536+(n-55296<<10)+(i-56320),r++),n<128?e[o++]=n:(n<2048?e[o++]=192|n>>>6:(n<65536?e[o++]=224|n>>>12:(e[o++]=240|n>>>18,e[o++]=128|n>>>12&63),e[o++]=128|n>>>6&63),e[o++]=128|63&n);return e}(t)},n.utf8decode=function(t){return s.nodebuffer?i.transformTo("nodebuffer",t).toString("utf-8"):function(t){var e,n,s,r,o=t.length,c=new Array(2*o);for(e=n=0;e<o;)if((s=t[e++])<128)c[n++]=s;else if(4<(r=a[s]))c[n++]=65533,e+=r-1;else{for(s&=2===r?31:3===r?15:7;1<r&&e<o;)s=s<<6|63&t[e++],r--;1<r?c[n++]=65533:s<65536?c[n++]=s:(s-=65536,c[n++]=55296|s>>10&1023,c[n++]=56320|1023&s)}return c.length!==n&&(c.subarray?c=c.subarray(0,n):c.length=n),i.applyFromCharCode(c)}(t=i.transformTo(s.uint8array?"uint8array":"array",t))},i.inherits(l,o),l.prototype.processChunk=function(t){var e=i.transformTo(s.uint8array?"uint8array":"array",t.data);if(this.leftOver&&this.leftOver.length){if(s.uint8array){var r=e;(e=new Uint8Array(r.length+this.leftOver.length)).set(this.leftOver,0),e.set(r,this.leftOver.length)}else e=this.leftOver.concat(e);this.leftOver=null}var o=function(t,e){var n;for((e=e||t.length)>t.length&&(e=t.length),n=e-1;0<=n&&128==(192&t[n]);)n--;return n<0||0===n?e:n+a[t[n]]>e?n:e}(e),c=e;o!==e.length&&(s.uint8array?(c=e.subarray(0,o),this.leftOver=e.subarray(o,e.length)):(c=e.slice(0,o),this.leftOver=e.slice(o,e.length))),this.push({data:n.utf8decode(c),meta:t.meta})},l.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:n.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},n.Utf8DecodeWorker=l,i.inherits(u,o),u.prototype.processChunk=function(t){this.push({data:n.utf8encode(t.data),meta:t.meta})},n.Utf8EncodeWorker=u},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(t,e,n){"use strict";var i=t("./support"),s=t("./base64"),r=t("./nodejsUtils"),o=t("set-immediate-shim"),a=t("./external");function c(t){return t}function l(t,e){for(var n=0;n<t.length;++n)e[n]=255&t.charCodeAt(n);return e}n.newBlob=function(t,e){n.checkSupport("blob");try{return new Blob([t],{type:e})}catch(n){try{var i=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return i.append(t),i.getBlob(e)}catch(t){throw new Error("Bug : can't construct the Blob.")}}};var u={stringifyByChunk:function(t,e,n){var i=[],s=0,r=t.length;if(r<=n)return String.fromCharCode.apply(null,t);for(;s<r;)"array"===e||"nodebuffer"===e?i.push(String.fromCharCode.apply(null,t.slice(s,Math.min(s+n,r)))):i.push(String.fromCharCode.apply(null,t.subarray(s,Math.min(s+n,r)))),s+=n;return i.join("")},stringifyByChar:function(t){for(var e="",n=0;n<t.length;n++)e+=String.fromCharCode(t[n]);return e},applyCanBeUsed:{uint8array:function(){try{return i.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(t){return!1}}(),nodebuffer:function(){try{return i.nodebuffer&&1===String.fromCharCode.apply(null,r.allocBuffer(1)).length}catch(t){return!1}}()}};function h(t){var e=65536,i=n.getTypeOf(t),s=!0;if("uint8array"===i?s=u.applyCanBeUsed.uint8array:"nodebuffer"===i&&(s=u.applyCanBeUsed.nodebuffer),s)for(;1<e;)try{return u.stringifyByChunk(t,i,e)}catch(t){e=Math.floor(e/2)}return u.stringifyByChar(t)}function d(t,e){for(var n=0;n<t.length;n++)e[n]=t[n];return e}n.applyFromCharCode=h;var f={};f.string={string:c,array:function(t){return l(t,new Array(t.length))},arraybuffer:function(t){return f.string.uint8array(t).buffer},uint8array:function(t){return l(t,new Uint8Array(t.length))},nodebuffer:function(t){return l(t,r.allocBuffer(t.length))}},f.array={string:h,array:c,arraybuffer:function(t){return new Uint8Array(t).buffer},uint8array:function(t){return new Uint8Array(t)},nodebuffer:function(t){return r.newBufferFrom(t)}},f.arraybuffer={string:function(t){return h(new Uint8Array(t))},array:function(t){return d(new Uint8Array(t),new Array(t.byteLength))},arraybuffer:c,uint8array:function(t){return new Uint8Array(t)},nodebuffer:function(t){return r.newBufferFrom(new Uint8Array(t))}},f.uint8array={string:h,array:function(t){return d(t,new Array(t.length))},arraybuffer:function(t){return t.buffer},uint8array:c,nodebuffer:function(t){return r.newBufferFrom(t)}},f.nodebuffer={string:h,array:function(t){return d(t,new Array(t.length))},arraybuffer:function(t){return f.nodebuffer.uint8array(t).buffer},uint8array:function(t){return d(t,new Uint8Array(t.length))},nodebuffer:c},n.transformTo=function(t,e){if(e=e||"",!t)return e;n.checkSupport(t);var i=n.getTypeOf(e);return f[i][t](e)},n.getTypeOf=function(t){return"string"==typeof t?"string":"[object Array]"===Object.prototype.toString.call(t)?"array":i.nodebuffer&&r.isBuffer(t)?"nodebuffer":i.uint8array&&t instanceof Uint8Array?"uint8array":i.arraybuffer&&t instanceof ArrayBuffer?"arraybuffer":void 0},n.checkSupport=function(t){if(!i[t.toLowerCase()])throw new Error(t+" is not supported by this platform")},n.MAX_VALUE_16BITS=65535,n.MAX_VALUE_32BITS=-1,n.pretty=function(t){var e,n,i="";for(n=0;n<(t||"").length;n++)i+="\\x"+((e=t.charCodeAt(n))<16?"0":"")+e.toString(16).toUpperCase();return i},n.delay=function(t,e,n){o((function(){t.apply(n||null,e||[])}))},n.inherits=function(t,e){function n(){}n.prototype=e.prototype,t.prototype=new n},n.extend=function(){var t,e,n={};for(t=0;t<arguments.length;t++)for(e in arguments[t])arguments[t].hasOwnProperty(e)&&void 0===n[e]&&(n[e]=arguments[t][e]);return n},n.prepareContent=function(t,e,r,o,c){return a.Promise.resolve(e).then((function(t){return i.blob&&(t instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(t)))&&"undefined"!=typeof FileReader?new a.Promise((function(e,n){var i=new FileReader;i.onload=function(t){e(t.target.result)},i.onerror=function(t){n(t.target.error)},i.readAsArrayBuffer(t)})):t})).then((function(e){var u=n.getTypeOf(e);return u?("arraybuffer"===u?e=n.transformTo("uint8array",e):"string"===u&&(c?e=s.decode(e):r&&!0!==o&&(e=function(t){return l(t,i.uint8array?new Uint8Array(t.length):new Array(t.length))}(e))),e):a.Promise.reject(new Error("Can't read the data of '"+t+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))}))}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,"set-immediate-shim":54}],33:[function(t,e,n){"use strict";var i=t("./reader/readerFor"),s=t("./utils"),r=t("./signature"),o=t("./zipEntry"),a=(t("./utf8"),t("./support"));function c(t){this.files=[],this.loadOptions=t}c.prototype={checkSignature:function(t){if(!this.reader.readAndCheckSignature(t)){this.reader.index-=4;var e=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+s.pretty(e)+", expected "+s.pretty(t)+")")}},isSignature:function(t,e){var n=this.reader.index;this.reader.setIndex(t);var i=this.reader.readString(4)===e;return this.reader.setIndex(n),i},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var t=this.reader.readData(this.zipCommentLength),e=a.uint8array?"uint8array":"array",n=s.transformTo(e,t);this.zipComment=this.loadOptions.decodeFileName(n)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var t,e,n,i=this.zip64EndOfCentralSize-44;0<i;)t=this.reader.readInt(2),e=this.reader.readInt(4),n=this.reader.readData(e),this.zip64ExtensibleData[t]={id:t,length:e,value:n}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var t,e;for(t=0;t<this.files.length;t++)e=this.files[t],this.reader.setIndex(e.localHeaderOffset),this.checkSignature(r.LOCAL_FILE_HEADER),e.readLocalPart(this.reader),e.handleUTF8(),e.processAttributes()},readCentralDir:function(){var t;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(r.CENTRAL_FILE_HEADER);)(t=new o({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(t);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var t=this.reader.lastIndexOfSignature(r.CENTRAL_DIRECTORY_END);if(t<0)throw this.isSignature(0,r.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(t);var e=t;if(this.checkSignature(r.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===s.MAX_VALUE_16BITS||this.diskWithCentralDirStart===s.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===s.MAX_VALUE_16BITS||this.centralDirRecords===s.MAX_VALUE_16BITS||this.centralDirSize===s.MAX_VALUE_32BITS||this.centralDirOffset===s.MAX_VALUE_32BITS){if(this.zip64=!0,(t=this.reader.lastIndexOfSignature(r.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(t),this.checkSignature(r.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,r.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(r.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(r.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var n=this.centralDirOffset+this.centralDirSize;this.zip64&&(n+=20,n+=12+this.zip64EndOfCentralSize);var i=e-n;if(0<i)this.isSignature(e,r.CENTRAL_FILE_HEADER)||(this.reader.zero=i);else if(i<0)throw new Error("Corrupted zip: missing "+Math.abs(i)+" bytes.")},prepareReader:function(t){this.reader=i(t)},load:function(t){this.prepareReader(t),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},e.exports=c},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utf8":31,"./utils":32,"./zipEntry":34}],34:[function(t,e,n){"use strict";var i=t("./reader/readerFor"),s=t("./utils"),r=t("./compressedObject"),o=t("./crc32"),a=t("./utf8"),c=t("./compressions"),l=t("./support");function u(t,e){this.options=t,this.loadOptions=e}u.prototype={isEncrypted:function(){return 1==(1&this.bitFlag)},useUTF8:function(){return 2048==(2048&this.bitFlag)},readLocalPart:function(t){var e,n;if(t.skip(22),this.fileNameLength=t.readInt(2),n=t.readInt(2),this.fileName=t.readData(this.fileNameLength),t.skip(n),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(e=function(t){for(var e in c)if(c.hasOwnProperty(e)&&c[e].magic===t)return c[e];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+s.pretty(this.compressionMethod)+" unknown (inner file : "+s.transformTo("string",this.fileName)+")");this.decompressed=new r(this.compressedSize,this.uncompressedSize,this.crc32,e,t.readData(this.compressedSize))},readCentralPart:function(t){this.versionMadeBy=t.readInt(2),t.skip(2),this.bitFlag=t.readInt(2),this.compressionMethod=t.readString(2),this.date=t.readDate(),this.crc32=t.readInt(4),this.compressedSize=t.readInt(4),this.uncompressedSize=t.readInt(4);var e=t.readInt(2);if(this.extraFieldsLength=t.readInt(2),this.fileCommentLength=t.readInt(2),this.diskNumberStart=t.readInt(2),this.internalFileAttributes=t.readInt(2),this.externalFileAttributes=t.readInt(4),this.localHeaderOffset=t.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");t.skip(e),this.readExtraFields(t),this.parseZIP64ExtraField(t),this.fileComment=t.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var t=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0==t&&(this.dosPermissions=63&this.externalFileAttributes),3==t&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(t){if(this.extraFields[1]){var e=i(this.extraFields[1].value);this.uncompressedSize===s.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===s.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===s.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===s.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},readExtraFields:function(t){var e,n,i,s=t.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});t.index<s;)e=t.readInt(2),n=t.readInt(2),i=t.readData(n),this.extraFields[e]={id:e,length:n,value:i}},handleUTF8:function(){var t=l.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=a.utf8decode(this.fileName),this.fileCommentStr=a.utf8decode(this.fileComment);else{var e=this.findExtraFieldUnicodePath();if(null!==e)this.fileNameStr=e;else{var n=s.transformTo(t,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(n)}var i=this.findExtraFieldUnicodeComment();if(null!==i)this.fileCommentStr=i;else{var r=s.transformTo(t,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(r)}}},findExtraFieldUnicodePath:function(){var t=this.extraFields[28789];if(t){var e=i(t.value);return 1!==e.readInt(1)||o(this.fileName)!==e.readInt(4)?null:a.utf8decode(e.readData(t.length-5))}return null},findExtraFieldUnicodeComment:function(){var t=this.extraFields[25461];if(t){var e=i(t.value);return 1!==e.readInt(1)||o(this.fileComment)!==e.readInt(4)?null:a.utf8decode(e.readData(t.length-5))}return null}},e.exports=u},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(t,e,n){"use strict";function i(t,e,n){this.name=t,this.dir=n.dir,this.date=n.date,this.comment=n.comment,this.unixPermissions=n.unixPermissions,this.dosPermissions=n.dosPermissions,this._data=e,this._dataBinary=n.binary,this.options={compression:n.compression,compressionOptions:n.compressionOptions}}var s=t("./stream/StreamHelper"),r=t("./stream/DataWorker"),o=t("./utf8"),a=t("./compressedObject"),c=t("./stream/GenericWorker");i.prototype={internalStream:function(t){var e=null,n="string";try{if(!t)throw new Error("No output type specified.");var i="string"===(n=t.toLowerCase())||"text"===n;"binarystring"!==n&&"text"!==n||(n="string"),e=this._decompressWorker();var r=!this._dataBinary;r&&!i&&(e=e.pipe(new o.Utf8EncodeWorker)),!r&&i&&(e=e.pipe(new o.Utf8DecodeWorker))}catch(t){(e=new c("error")).error(t)}return new s(e,n,"")},async:function(t,e){return this.internalStream(t).accumulate(e)},nodeStream:function(t,e){return this.internalStream(t||"nodebuffer").toNodejsStream(e)},_compressWorker:function(t,e){if(this._data instanceof a&&this._data.compression.magic===t.magic)return this._data.getCompressedWorker();var n=this._decompressWorker();return this._dataBinary||(n=n.pipe(new o.Utf8EncodeWorker)),a.createWorkerFrom(n,t,e)},_decompressWorker:function(){return this._data instanceof a?this._data.getContentWorker():this._data instanceof c?this._data:new r(this._data)}};for(var l=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],u=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},h=0;h<l.length;h++)i.prototype[l[h]]=u;e.exports=i},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(t,e,i){(function(t){"use strict";var n,i,s=t.MutationObserver||t.WebKitMutationObserver;if(s){var r=0,o=new s(u),a=t.document.createTextNode("");o.observe(a,{characterData:!0}),n=function(){a.data=r=++r%2}}else if(t.setImmediate||void 0===t.MessageChannel)n="document"in t&&"onreadystatechange"in t.document.createElement("script")?function(){var e=t.document.createElement("script");e.onreadystatechange=function(){u(),e.onreadystatechange=null,e.parentNode.removeChild(e),e=null},t.document.documentElement.appendChild(e)}:function(){setTimeout(u,0)};else{var c=new t.MessageChannel;c.port1.onmessage=u,n=function(){c.port2.postMessage(0)}}var l=[];function u(){var t,e;i=!0;for(var n=l.length;n;){for(e=l,l=[],t=-1;++t<n;)e[t]();n=l.length}i=!1}e.exports=function(t){1!==l.push(t)||i||n()}}).call(this,void 0!==n?n:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],37:[function(t,e,n){"use strict";var i=t("immediate");function s(){}var r={},o=["REJECTED"],a=["FULFILLED"],c=["PENDING"];function l(t){if("function"!=typeof t)throw new TypeError("resolver must be a function");this.state=c,this.queue=[],this.outcome=void 0,t!==s&&f(this,t)}function u(t,e,n){this.promise=t,"function"==typeof e&&(this.onFulfilled=e,this.callFulfilled=this.otherCallFulfilled),"function"==typeof n&&(this.onRejected=n,this.callRejected=this.otherCallRejected)}function h(t,e,n){i((function(){var i;try{i=e(n)}catch(i){return r.reject(t,i)}i===t?r.reject(t,new TypeError("Cannot resolve promise with itself")):r.resolve(t,i)}))}function d(t){var e=t&&t.then;if(t&&("object"==typeof t||"function"==typeof t)&&"function"==typeof e)return function(){e.apply(t,arguments)}}function f(t,e){var n=!1;function i(e){n||(n=!0,r.reject(t,e))}function s(e){n||(n=!0,r.resolve(t,e))}var o=p((function(){e(s,i)}));"error"===o.status&&i(o.value)}function p(t,e){var n={};try{n.value=t(e),n.status="success"}catch(t){n.status="error",n.value=t}return n}(e.exports=l).prototype.finally=function(t){if("function"!=typeof t)return this;var e=this.constructor;return this.then((function(n){return e.resolve(t()).then((function(){return n}))}),(function(n){return e.resolve(t()).then((function(){throw n}))}))},l.prototype.catch=function(t){return this.then(null,t)},l.prototype.then=function(t,e){if("function"!=typeof t&&this.state===a||"function"!=typeof e&&this.state===o)return this;var n=new this.constructor(s);return this.state!==c?h(n,this.state===a?t:e,this.outcome):this.queue.push(new u(n,t,e)),n},u.prototype.callFulfilled=function(t){r.resolve(this.promise,t)},u.prototype.otherCallFulfilled=function(t){h(this.promise,this.onFulfilled,t)},u.prototype.callRejected=function(t){r.reject(this.promise,t)},u.prototype.otherCallRejected=function(t){h(this.promise,this.onRejected,t)},r.resolve=function(t,e){var n=p(d,e);if("error"===n.status)return r.reject(t,n.value);var i=n.value;if(i)f(t,i);else{t.state=a,t.outcome=e;for(var s=-1,o=t.queue.length;++s<o;)t.queue[s].callFulfilled(e)}return t},r.reject=function(t,e){t.state=o,t.outcome=e;for(var n=-1,i=t.queue.length;++n<i;)t.queue[n].callRejected(e);return t},l.resolve=function(t){return t instanceof this?t:r.resolve(new this(s),t)},l.reject=function(t){var e=new this(s);return r.reject(e,t)},l.all=function(t){var e=this;if("[object Array]"!==Object.prototype.toString.call(t))return this.reject(new TypeError("must be an array"));var n=t.length,i=!1;if(!n)return this.resolve([]);for(var o=new Array(n),a=0,c=-1,l=new this(s);++c<n;)u(t[c],c);return l;function u(t,s){e.resolve(t).then((function(t){o[s]=t,++a!==n||i||(i=!0,r.resolve(l,o))}),(function(t){i||(i=!0,r.reject(l,t))}))}},l.race=function(t){if("[object Array]"!==Object.prototype.toString.call(t))return this.reject(new TypeError("must be an array"));var e=t.length,n=!1;if(!e)return this.resolve([]);for(var i,o=-1,a=new this(s);++o<e;)i=t[o],this.resolve(i).then((function(t){n||(n=!0,r.resolve(a,t))}),(function(t){n||(n=!0,r.reject(a,t))}));return a}},{immediate:36}],38:[function(t,e,n){"use strict";var i={};(0,t("./lib/utils/common").assign)(i,t("./lib/deflate"),t("./lib/inflate"),t("./lib/zlib/constants")),e.exports=i},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(t,e,n){"use strict";var i=t("./zlib/deflate"),s=t("./utils/common"),r=t("./utils/strings"),o=t("./zlib/messages"),a=t("./zlib/zstream"),c=Object.prototype.toString;function l(t){if(!(this instanceof l))return new l(t);this.options=s.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},t||{});var e=this.options;e.raw&&0<e.windowBits?e.windowBits=-e.windowBits:e.gzip&&0<e.windowBits&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new a,this.strm.avail_out=0;var n=i.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(0!==n)throw new Error(o[n]);if(e.header&&i.deflateSetHeader(this.strm,e.header),e.dictionary){var u;if(u="string"==typeof e.dictionary?r.string2buf(e.dictionary):"[object ArrayBuffer]"===c.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,0!==(n=i.deflateSetDictionary(this.strm,u)))throw new Error(o[n]);this._dict_set=!0}}function u(t,e){var n=new l(e);if(n.push(t,!0),n.err)throw n.msg||o[n.err];return n.result}l.prototype.push=function(t,e){var n,o,a=this.strm,l=this.options.chunkSize;if(this.ended)return!1;o=e===~~e?e:!0===e?4:0,"string"==typeof t?a.input=r.string2buf(t):"[object ArrayBuffer]"===c.call(t)?a.input=new Uint8Array(t):a.input=t,a.next_in=0,a.avail_in=a.input.length;do{if(0===a.avail_out&&(a.output=new s.Buf8(l),a.next_out=0,a.avail_out=l),1!==(n=i.deflate(a,o))&&0!==n)return this.onEnd(n),!(this.ended=!0);0!==a.avail_out&&(0!==a.avail_in||4!==o&&2!==o)||("string"===this.options.to?this.onData(r.buf2binstring(s.shrinkBuf(a.output,a.next_out))):this.onData(s.shrinkBuf(a.output,a.next_out)))}while((0<a.avail_in||0===a.avail_out)&&1!==n);return 4===o?(n=i.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,0===n):2!==o||(this.onEnd(0),!(a.avail_out=0))},l.prototype.onData=function(t){this.chunks.push(t)},l.prototype.onEnd=function(t){0===t&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=s.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},n.Deflate=l,n.deflate=u,n.deflateRaw=function(t,e){return(e=e||{}).raw=!0,u(t,e)},n.gzip=function(t,e){return(e=e||{}).gzip=!0,u(t,e)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(t,e,n){"use strict";var i=t("./zlib/inflate"),s=t("./utils/common"),r=t("./utils/strings"),o=t("./zlib/constants"),a=t("./zlib/messages"),c=t("./zlib/zstream"),l=t("./zlib/gzheader"),u=Object.prototype.toString;function h(t){if(!(this instanceof h))return new h(t);this.options=s.assign({chunkSize:16384,windowBits:0,to:""},t||{});var e=this.options;e.raw&&0<=e.windowBits&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(0<=e.windowBits&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),15<e.windowBits&&e.windowBits<48&&0==(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new c,this.strm.avail_out=0;var n=i.inflateInit2(this.strm,e.windowBits);if(n!==o.Z_OK)throw new Error(a[n]);this.header=new l,i.inflateGetHeader(this.strm,this.header)}function d(t,e){var n=new h(e);if(n.push(t,!0),n.err)throw n.msg||a[n.err];return n.result}h.prototype.push=function(t,e){var n,a,c,l,h,d,f=this.strm,p=this.options.chunkSize,m=this.options.dictionary,g=!1;if(this.ended)return!1;a=e===~~e?e:!0===e?o.Z_FINISH:o.Z_NO_FLUSH,"string"==typeof t?f.input=r.binstring2buf(t):"[object ArrayBuffer]"===u.call(t)?f.input=new Uint8Array(t):f.input=t,f.next_in=0,f.avail_in=f.input.length;do{if(0===f.avail_out&&(f.output=new s.Buf8(p),f.next_out=0,f.avail_out=p),(n=i.inflate(f,o.Z_NO_FLUSH))===o.Z_NEED_DICT&&m&&(d="string"==typeof m?r.string2buf(m):"[object ArrayBuffer]"===u.call(m)?new Uint8Array(m):m,n=i.inflateSetDictionary(this.strm,d)),n===o.Z_BUF_ERROR&&!0===g&&(n=o.Z_OK,g=!1),n!==o.Z_STREAM_END&&n!==o.Z_OK)return this.onEnd(n),!(this.ended=!0);f.next_out&&(0!==f.avail_out&&n!==o.Z_STREAM_END&&(0!==f.avail_in||a!==o.Z_FINISH&&a!==o.Z_SYNC_FLUSH)||("string"===this.options.to?(c=r.utf8border(f.output,f.next_out),l=f.next_out-c,h=r.buf2string(f.output,c),f.next_out=l,f.avail_out=p-l,l&&s.arraySet(f.output,f.output,c,l,0),this.onData(h)):this.onData(s.shrinkBuf(f.output,f.next_out)))),0===f.avail_in&&0===f.avail_out&&(g=!0)}while((0<f.avail_in||0===f.avail_out)&&n!==o.Z_STREAM_END);return n===o.Z_STREAM_END&&(a=o.Z_FINISH),a===o.Z_FINISH?(n=i.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===o.Z_OK):a!==o.Z_SYNC_FLUSH||(this.onEnd(o.Z_OK),!(f.avail_out=0))},h.prototype.onData=function(t){this.chunks.push(t)},h.prototype.onEnd=function(t){t===o.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=s.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},n.Inflate=h,n.inflate=d,n.inflateRaw=function(t,e){return(e=e||{}).raw=!0,d(t,e)},n.ungzip=d},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(t,e,n){"use strict";var i="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;n.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var n=e.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var i in n)n.hasOwnProperty(i)&&(t[i]=n[i])}}return t},n.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var s={arraySet:function(t,e,n,i,s){if(e.subarray&&t.subarray)t.set(e.subarray(n,n+i),s);else for(var r=0;r<i;r++)t[s+r]=e[n+r]},flattenChunks:function(t){var e,n,i,s,r,o;for(e=i=0,n=t.length;e<n;e++)i+=t[e].length;for(o=new Uint8Array(i),e=s=0,n=t.length;e<n;e++)r=t[e],o.set(r,s),s+=r.length;return o}},r={arraySet:function(t,e,n,i,s){for(var r=0;r<i;r++)t[s+r]=e[n+r]},flattenChunks:function(t){return[].concat.apply([],t)}};n.setTyped=function(t){t?(n.Buf8=Uint8Array,n.Buf16=Uint16Array,n.Buf32=Int32Array,n.assign(n,s)):(n.Buf8=Array,n.Buf16=Array,n.Buf32=Array,n.assign(n,r))},n.setTyped(i)},{}],42:[function(t,e,n){"use strict";var i=t("./common"),s=!0,r=!0;try{String.fromCharCode.apply(null,[0])}catch(t){s=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){r=!1}for(var o=new i.Buf8(256),a=0;a<256;a++)o[a]=252<=a?6:248<=a?5:240<=a?4:224<=a?3:192<=a?2:1;function c(t,e){if(e<65537&&(t.subarray&&r||!t.subarray&&s))return String.fromCharCode.apply(null,i.shrinkBuf(t,e));for(var n="",o=0;o<e;o++)n+=String.fromCharCode(t[o]);return n}o[254]=o[254]=1,n.string2buf=function(t){var e,n,s,r,o,a=t.length,c=0;for(r=0;r<a;r++)55296==(64512&(n=t.charCodeAt(r)))&&r+1<a&&56320==(64512&(s=t.charCodeAt(r+1)))&&(n=65536+(n-55296<<10)+(s-56320),r++),c+=n<128?1:n<2048?2:n<65536?3:4;for(e=new i.Buf8(c),r=o=0;o<c;r++)55296==(64512&(n=t.charCodeAt(r)))&&r+1<a&&56320==(64512&(s=t.charCodeAt(r+1)))&&(n=65536+(n-55296<<10)+(s-56320),r++),n<128?e[o++]=n:(n<2048?e[o++]=192|n>>>6:(n<65536?e[o++]=224|n>>>12:(e[o++]=240|n>>>18,e[o++]=128|n>>>12&63),e[o++]=128|n>>>6&63),e[o++]=128|63&n);return e},n.buf2binstring=function(t){return c(t,t.length)},n.binstring2buf=function(t){for(var e=new i.Buf8(t.length),n=0,s=e.length;n<s;n++)e[n]=t.charCodeAt(n);return e},n.buf2string=function(t,e){var n,i,s,r,a=e||t.length,l=new Array(2*a);for(n=i=0;n<a;)if((s=t[n++])<128)l[i++]=s;else if(4<(r=o[s]))l[i++]=65533,n+=r-1;else{for(s&=2===r?31:3===r?15:7;1<r&&n<a;)s=s<<6|63&t[n++],r--;1<r?l[i++]=65533:s<65536?l[i++]=s:(s-=65536,l[i++]=55296|s>>10&1023,l[i++]=56320|1023&s)}return c(l,i)},n.utf8border=function(t,e){var n;for((e=e||t.length)>t.length&&(e=t.length),n=e-1;0<=n&&128==(192&t[n]);)n--;return n<0||0===n?e:n+o[t[n]]>e?n:e}},{"./common":41}],43:[function(t,e,n){"use strict";e.exports=function(t,e,n,i){for(var s=65535&t|0,r=t>>>16&65535|0,o=0;0!==n;){for(n-=o=2e3<n?2e3:n;r=r+(s=s+e[i++]|0)|0,--o;);s%=65521,r%=65521}return s|r<<16|0}},{}],44:[function(t,e,n){"use strict";e.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(t,e,n){"use strict";var i=function(){for(var t,e=[],n=0;n<256;n++){t=n;for(var i=0;i<8;i++)t=1&t?3988292384^t>>>1:t>>>1;e[n]=t}return e}();e.exports=function(t,e,n,s){var r=i,o=s+n;t^=-1;for(var a=s;a<o;a++)t=t>>>8^r[255&(t^e[a])];return-1^t}},{}],46:[function(t,e,n){"use strict";var i,s=t("../utils/common"),r=t("./trees"),o=t("./adler32"),a=t("./crc32"),c=t("./messages"),l=-2,u=258,h=262,d=113;function f(t,e){return t.msg=c[e],e}function p(t){return(t<<1)-(4<t?9:0)}function m(t){for(var e=t.length;0<=--e;)t[e]=0}function g(t){var e=t.state,n=e.pending;n>t.avail_out&&(n=t.avail_out),0!==n&&(s.arraySet(t.output,e.pending_buf,e.pending_out,n,t.next_out),t.next_out+=n,e.pending_out+=n,t.total_out+=n,t.avail_out-=n,e.pending-=n,0===e.pending&&(e.pending_out=0))}function b(t,e){r._tr_flush_block(t,0<=t.block_start?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,g(t.strm)}function v(t,e){t.pending_buf[t.pending++]=e}function y(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function S(t,e){var n,i,s=t.max_chain_length,r=t.strstart,o=t.prev_length,a=t.nice_match,c=t.strstart>t.w_size-h?t.strstart-(t.w_size-h):0,l=t.window,d=t.w_mask,f=t.prev,p=t.strstart+u,m=l[r+o-1],g=l[r+o];t.prev_length>=t.good_match&&(s>>=2),a>t.lookahead&&(a=t.lookahead);do{if(l[(n=e)+o]===g&&l[n+o-1]===m&&l[n]===l[r]&&l[++n]===l[r+1]){r+=2,n++;do{}while(l[++r]===l[++n]&&l[++r]===l[++n]&&l[++r]===l[++n]&&l[++r]===l[++n]&&l[++r]===l[++n]&&l[++r]===l[++n]&&l[++r]===l[++n]&&l[++r]===l[++n]&&r<p);if(i=u-(p-r),r=p-u,o<i){if(t.match_start=e,a<=(o=i))break;m=l[r+o-1],g=l[r+o]}}}while((e=f[e&d])>c&&0!=--s);return o<=t.lookahead?o:t.lookahead}function x(t){var e,n,i,r,c,l,u,d,f,p,m=t.w_size;do{if(r=t.window_size-t.lookahead-t.strstart,t.strstart>=m+(m-h)){for(s.arraySet(t.window,t.window,m,m,0),t.match_start-=m,t.strstart-=m,t.block_start-=m,e=n=t.hash_size;i=t.head[--e],t.head[e]=m<=i?i-m:0,--n;);for(e=n=m;i=t.prev[--e],t.prev[e]=m<=i?i-m:0,--n;);r+=m}if(0===t.strm.avail_in)break;if(l=t.strm,u=t.window,d=t.strstart+t.lookahead,p=void 0,(f=r)<(p=l.avail_in)&&(p=f),n=0===p?0:(l.avail_in-=p,s.arraySet(u,l.input,l.next_in,p,d),1===l.state.wrap?l.adler=o(l.adler,u,p,d):2===l.state.wrap&&(l.adler=a(l.adler,u,p,d)),l.next_in+=p,l.total_in+=p,p),t.lookahead+=n,t.lookahead+t.insert>=3)for(c=t.strstart-t.insert,t.ins_h=t.window[c],t.ins_h=(t.ins_h<<t.hash_shift^t.window[c+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[c+3-1])&t.hash_mask,t.prev[c&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=c,c++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<h&&0!==t.strm.avail_in)}function _(t,e){for(var n,i;;){if(t.lookahead<h){if(x(t),t.lookahead<h&&0===e)return 1;if(0===t.lookahead)break}if(n=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==n&&t.strstart-n<=t.w_size-h&&(t.match_length=S(t,n)),t.match_length>=3)if(i=r._tr_tally(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){for(t.match_length--;t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart,0!=--t.match_length;);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else i=r._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(i&&(b(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,4===e?(b(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(b(t,!1),0===t.strm.avail_out)?1:2}function w(t,e){for(var n,i,s;;){if(t.lookahead<h){if(x(t),t.lookahead<h&&0===e)return 1;if(0===t.lookahead)break}if(n=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==n&&t.prev_length<t.max_lazy_match&&t.strstart-n<=t.w_size-h&&(t.match_length=S(t,n),t.match_length<=5&&(1===t.strategy||3===t.match_length&&4096<t.strstart-t.match_start)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){for(s=t.strstart+t.lookahead-3,i=r._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;++t.strstart<=s&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!=--t.prev_length;);if(t.match_available=0,t.match_length=2,t.strstart++,i&&(b(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((i=r._tr_tally(t,0,t.window[t.strstart-1]))&&b(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(i=r._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,4===e?(b(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(b(t,!1),0===t.strm.avail_out)?1:2}function E(t,e,n,i,s){this.good_length=t,this.max_lazy=e,this.nice_length=n,this.max_chain=i,this.func=s}function T(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new s.Buf16(1146),this.dyn_dtree=new s.Buf16(122),this.bl_tree=new s.Buf16(78),m(this.dyn_ltree),m(this.dyn_dtree),m(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new s.Buf16(16),this.heap=new s.Buf16(573),m(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new s.Buf16(573),m(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function C(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=2,(e=t.state).pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:d,t.adler=2===e.wrap?0:1,e.last_flush=0,r._tr_init(e),0):f(t,l)}function M(t){var e=C(t);return 0===e&&function(t){t.window_size=2*t.w_size,m(t.head),t.max_lazy_match=i[t.level].max_lazy,t.good_match=i[t.level].good_length,t.nice_match=i[t.level].nice_length,t.max_chain_length=i[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=2,t.match_available=0,t.ins_h=0}(t.state),e}function P(t,e,n,i,r,o){if(!t)return l;var a=1;if(-1===e&&(e=6),i<0?(a=0,i=-i):15<i&&(a=2,i-=16),r<1||9<r||8!==n||i<8||15<i||e<0||9<e||o<0||4<o)return f(t,l);8===i&&(i=9);var c=new T;return(t.state=c).strm=t,c.wrap=a,c.gzhead=null,c.w_bits=i,c.w_size=1<<c.w_bits,c.w_mask=c.w_size-1,c.hash_bits=r+7,c.hash_size=1<<c.hash_bits,c.hash_mask=c.hash_size-1,c.hash_shift=~~((c.hash_bits+3-1)/3),c.window=new s.Buf8(2*c.w_size),c.head=new s.Buf16(c.hash_size),c.prev=new s.Buf16(c.w_size),c.lit_bufsize=1<<r+6,c.pending_buf_size=4*c.lit_bufsize,c.pending_buf=new s.Buf8(c.pending_buf_size),c.d_buf=1*c.lit_bufsize,c.l_buf=3*c.lit_bufsize,c.level=e,c.strategy=o,c.method=n,M(t)}i=[new E(0,0,0,0,(function(t,e){var n=65535;for(n>t.pending_buf_size-5&&(n=t.pending_buf_size-5);;){if(t.lookahead<=1){if(x(t),0===t.lookahead&&0===e)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var i=t.block_start+n;if((0===t.strstart||t.strstart>=i)&&(t.lookahead=t.strstart-i,t.strstart=i,b(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-h&&(b(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(b(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(b(t,!1),t.strm.avail_out),1)})),new E(4,4,8,4,_),new E(4,5,16,8,_),new E(4,6,32,32,_),new E(4,4,16,16,w),new E(8,16,32,32,w),new E(8,16,128,128,w),new E(8,32,128,256,w),new E(32,128,258,1024,w),new E(32,258,258,4096,w)],n.deflateInit=function(t,e){return P(t,e,8,15,8,0)},n.deflateInit2=P,n.deflateReset=M,n.deflateResetKeep=C,n.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?l:(t.state.gzhead=e,0):l},n.deflate=function(t,e){var n,s,o,c;if(!t||!t.state||5<e||e<0)return t?f(t,l):l;if(s=t.state,!t.output||!t.input&&0!==t.avail_in||666===s.status&&4!==e)return f(t,0===t.avail_out?-5:l);if(s.strm=t,n=s.last_flush,s.last_flush=e,42===s.status)if(2===s.wrap)t.adler=0,v(s,31),v(s,139),v(s,8),s.gzhead?(v(s,(s.gzhead.text?1:0)+(s.gzhead.hcrc?2:0)+(s.gzhead.extra?4:0)+(s.gzhead.name?8:0)+(s.gzhead.comment?16:0)),v(s,255&s.gzhead.time),v(s,s.gzhead.time>>8&255),v(s,s.gzhead.time>>16&255),v(s,s.gzhead.time>>24&255),v(s,9===s.level?2:2<=s.strategy||s.level<2?4:0),v(s,255&s.gzhead.os),s.gzhead.extra&&s.gzhead.extra.length&&(v(s,255&s.gzhead.extra.length),v(s,s.gzhead.extra.length>>8&255)),s.gzhead.hcrc&&(t.adler=a(t.adler,s.pending_buf,s.pending,0)),s.gzindex=0,s.status=69):(v(s,0),v(s,0),v(s,0),v(s,0),v(s,0),v(s,9===s.level?2:2<=s.strategy||s.level<2?4:0),v(s,3),s.status=d);else{var h=8+(s.w_bits-8<<4)<<8;h|=(2<=s.strategy||s.level<2?0:s.level<6?1:6===s.level?2:3)<<6,0!==s.strstart&&(h|=32),h+=31-h%31,s.status=d,y(s,h),0!==s.strstart&&(y(s,t.adler>>>16),y(s,65535&t.adler)),t.adler=1}if(69===s.status)if(s.gzhead.extra){for(o=s.pending;s.gzindex<(65535&s.gzhead.extra.length)&&(s.pending!==s.pending_buf_size||(s.gzhead.hcrc&&s.pending>o&&(t.adler=a(t.adler,s.pending_buf,s.pending-o,o)),g(t),o=s.pending,s.pending!==s.pending_buf_size));)v(s,255&s.gzhead.extra[s.gzindex]),s.gzindex++;s.gzhead.hcrc&&s.pending>o&&(t.adler=a(t.adler,s.pending_buf,s.pending-o,o)),s.gzindex===s.gzhead.extra.length&&(s.gzindex=0,s.status=73)}else s.status=73;if(73===s.status)if(s.gzhead.name){o=s.pending;do{if(s.pending===s.pending_buf_size&&(s.gzhead.hcrc&&s.pending>o&&(t.adler=a(t.adler,s.pending_buf,s.pending-o,o)),g(t),o=s.pending,s.pending===s.pending_buf_size)){c=1;break}c=s.gzindex<s.gzhead.name.length?255&s.gzhead.name.charCodeAt(s.gzindex++):0,v(s,c)}while(0!==c);s.gzhead.hcrc&&s.pending>o&&(t.adler=a(t.adler,s.pending_buf,s.pending-o,o)),0===c&&(s.gzindex=0,s.status=91)}else s.status=91;if(91===s.status)if(s.gzhead.comment){o=s.pending;do{if(s.pending===s.pending_buf_size&&(s.gzhead.hcrc&&s.pending>o&&(t.adler=a(t.adler,s.pending_buf,s.pending-o,o)),g(t),o=s.pending,s.pending===s.pending_buf_size)){c=1;break}c=s.gzindex<s.gzhead.comment.length?255&s.gzhead.comment.charCodeAt(s.gzindex++):0,v(s,c)}while(0!==c);s.gzhead.hcrc&&s.pending>o&&(t.adler=a(t.adler,s.pending_buf,s.pending-o,o)),0===c&&(s.status=103)}else s.status=103;if(103===s.status&&(s.gzhead.hcrc?(s.pending+2>s.pending_buf_size&&g(t),s.pending+2<=s.pending_buf_size&&(v(s,255&t.adler),v(s,t.adler>>8&255),t.adler=0,s.status=d)):s.status=d),0!==s.pending){if(g(t),0===t.avail_out)return s.last_flush=-1,0}else if(0===t.avail_in&&p(e)<=p(n)&&4!==e)return f(t,-5);if(666===s.status&&0!==t.avail_in)return f(t,-5);if(0!==t.avail_in||0!==s.lookahead||0!==e&&666!==s.status){var S=2===s.strategy?function(t,e){for(var n;;){if(0===t.lookahead&&(x(t),0===t.lookahead)){if(0===e)return 1;break}if(t.match_length=0,n=r._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,n&&(b(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(b(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(b(t,!1),0===t.strm.avail_out)?1:2}(s,e):3===s.strategy?function(t,e){for(var n,i,s,o,a=t.window;;){if(t.lookahead<=u){if(x(t),t.lookahead<=u&&0===e)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&0<t.strstart&&(i=a[s=t.strstart-1])===a[++s]&&i===a[++s]&&i===a[++s]){o=t.strstart+u;do{}while(i===a[++s]&&i===a[++s]&&i===a[++s]&&i===a[++s]&&i===a[++s]&&i===a[++s]&&i===a[++s]&&i===a[++s]&&s<o);t.match_length=u-(o-s),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(n=r._tr_tally(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(n=r._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),n&&(b(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(b(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(b(t,!1),0===t.strm.avail_out)?1:2}(s,e):i[s.level].func(s,e);if(3!==S&&4!==S||(s.status=666),1===S||3===S)return 0===t.avail_out&&(s.last_flush=-1),0;if(2===S&&(1===e?r._tr_align(s):5!==e&&(r._tr_stored_block(s,0,0,!1),3===e&&(m(s.head),0===s.lookahead&&(s.strstart=0,s.block_start=0,s.insert=0))),g(t),0===t.avail_out))return s.last_flush=-1,0}return 4!==e?0:s.wrap<=0?1:(2===s.wrap?(v(s,255&t.adler),v(s,t.adler>>8&255),v(s,t.adler>>16&255),v(s,t.adler>>24&255),v(s,255&t.total_in),v(s,t.total_in>>8&255),v(s,t.total_in>>16&255),v(s,t.total_in>>24&255)):(y(s,t.adler>>>16),y(s,65535&t.adler)),g(t),0<s.wrap&&(s.wrap=-s.wrap),0!==s.pending?0:1)},n.deflateEnd=function(t){var e;return t&&t.state?42!==(e=t.state.status)&&69!==e&&73!==e&&91!==e&&103!==e&&e!==d&&666!==e?f(t,l):(t.state=null,e===d?f(t,-3):0):l},n.deflateSetDictionary=function(t,e){var n,i,r,a,c,u,h,d,f=e.length;if(!t||!t.state)return l;if(2===(a=(n=t.state).wrap)||1===a&&42!==n.status||n.lookahead)return l;for(1===a&&(t.adler=o(t.adler,e,f,0)),n.wrap=0,f>=n.w_size&&(0===a&&(m(n.head),n.strstart=0,n.block_start=0,n.insert=0),d=new s.Buf8(n.w_size),s.arraySet(d,e,f-n.w_size,n.w_size,0),e=d,f=n.w_size),c=t.avail_in,u=t.next_in,h=t.input,t.avail_in=f,t.next_in=0,t.input=e,x(n);n.lookahead>=3;){for(i=n.strstart,r=n.lookahead-2;n.ins_h=(n.ins_h<<n.hash_shift^n.window[i+3-1])&n.hash_mask,n.prev[i&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=i,i++,--r;);n.strstart=i,n.lookahead=2,x(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,t.next_in=u,t.input=h,t.avail_in=c,n.wrap=a,0},n.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(t,e,n){"use strict";e.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(t,e,n){"use strict";e.exports=function(t,e){var n,i,s,r,o,a,c,l,u,h,d,f,p,m,g,b,v,y,S,x,_,w,E,T,C;n=t.state,i=t.next_in,T=t.input,s=i+(t.avail_in-5),r=t.next_out,C=t.output,o=r-(e-t.avail_out),a=r+(t.avail_out-257),c=n.dmax,l=n.wsize,u=n.whave,h=n.wnext,d=n.window,f=n.hold,p=n.bits,m=n.lencode,g=n.distcode,b=(1<<n.lenbits)-1,v=(1<<n.distbits)-1;t:do{p<15&&(f+=T[i++]<<p,p+=8,f+=T[i++]<<p,p+=8),y=m[f&b];e:for(;;){if(f>>>=S=y>>>24,p-=S,0==(S=y>>>16&255))C[r++]=65535&y;else{if(!(16&S)){if(0==(64&S)){y=m[(65535&y)+(f&(1<<S)-1)];continue e}if(32&S){n.mode=12;break t}t.msg="invalid literal/length code",n.mode=30;break t}x=65535&y,(S&=15)&&(p<S&&(f+=T[i++]<<p,p+=8),x+=f&(1<<S)-1,f>>>=S,p-=S),p<15&&(f+=T[i++]<<p,p+=8,f+=T[i++]<<p,p+=8),y=g[f&v];n:for(;;){if(f>>>=S=y>>>24,p-=S,!(16&(S=y>>>16&255))){if(0==(64&S)){y=g[(65535&y)+(f&(1<<S)-1)];continue n}t.msg="invalid distance code",n.mode=30;break t}if(_=65535&y,p<(S&=15)&&(f+=T[i++]<<p,(p+=8)<S&&(f+=T[i++]<<p,p+=8)),c<(_+=f&(1<<S)-1)){t.msg="invalid distance too far back",n.mode=30;break t}if(f>>>=S,p-=S,(S=r-o)<_){if(u<(S=_-S)&&n.sane){t.msg="invalid distance too far back",n.mode=30;break t}if(E=d,(w=0)===h){if(w+=l-S,S<x){for(x-=S;C[r++]=d[w++],--S;);w=r-_,E=C}}else if(h<S){if(w+=l+h-S,(S-=h)<x){for(x-=S;C[r++]=d[w++],--S;);if(w=0,h<x){for(x-=S=h;C[r++]=d[w++],--S;);w=r-_,E=C}}}else if(w+=h-S,S<x){for(x-=S;C[r++]=d[w++],--S;);w=r-_,E=C}for(;2<x;)C[r++]=E[w++],C[r++]=E[w++],C[r++]=E[w++],x-=3;x&&(C[r++]=E[w++],1<x&&(C[r++]=E[w++]))}else{for(w=r-_;C[r++]=C[w++],C[r++]=C[w++],C[r++]=C[w++],2<(x-=3););x&&(C[r++]=C[w++],1<x&&(C[r++]=C[w++]))}break}}break}}while(i<s&&r<a);i-=x=p>>3,f&=(1<<(p-=x<<3))-1,t.next_in=i,t.next_out=r,t.avail_in=i<s?s-i+5:5-(i-s),t.avail_out=r<a?a-r+257:257-(r-a),n.hold=f,n.bits=p}},{}],49:[function(t,e,n){"use strict";var i=t("../utils/common"),s=t("./adler32"),r=t("./crc32"),o=t("./inffast"),a=t("./inftrees"),c=-2;function l(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function u(){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 i.Buf16(320),this.work=new i.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function h(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=1,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new i.Buf32(852),e.distcode=e.distdyn=new i.Buf32(592),e.sane=1,e.back=-1,0):c}function d(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,h(t)):c}function f(t,e){var n,i;return t&&t.state?(i=t.state,e<0?(n=0,e=-e):(n=1+(e>>4),e<48&&(e&=15)),e&&(e<8||15<e)?c:(null!==i.window&&i.wbits!==e&&(i.window=null),i.wrap=n,i.wbits=e,d(t))):c}function p(t,e){var n,i;return t?(i=new u,(t.state=i).window=null,0!==(n=f(t,e))&&(t.state=null),n):c}var m,g,b=!0;function v(t){if(b){var e;for(m=new i.Buf32(512),g=new i.Buf32(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(a(1,t.lens,0,288,m,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;a(2,t.lens,0,32,g,0,t.work,{bits:5}),b=!1}t.lencode=m,t.lenbits=9,t.distcode=g,t.distbits=5}function y(t,e,n,s){var r,o=t.state;return null===o.window&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new i.Buf8(o.wsize)),s>=o.wsize?(i.arraySet(o.window,e,n-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):(s<(r=o.wsize-o.wnext)&&(r=s),i.arraySet(o.window,e,n-s,r,o.wnext),(s-=r)?(i.arraySet(o.window,e,n-s,s,0),o.wnext=s,o.whave=o.wsize):(o.wnext+=r,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=r))),0}n.inflateReset=d,n.inflateReset2=f,n.inflateResetKeep=h,n.inflateInit=function(t){return p(t,15)},n.inflateInit2=p,n.inflate=function(t,e){var n,u,h,d,f,p,m,g,b,S,x,_,w,E,T,C,M,P,A,I,L,O,k,R,N=0,D=new i.Buf8(4),V=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return c;12===(n=t.state).mode&&(n.mode=13),f=t.next_out,h=t.output,m=t.avail_out,d=t.next_in,u=t.input,p=t.avail_in,g=n.hold,b=n.bits,S=p,x=m,O=0;t:for(;;)switch(n.mode){case 1:if(0===n.wrap){n.mode=13;break}for(;b<16;){if(0===p)break t;p--,g+=u[d++]<<b,b+=8}if(2&n.wrap&&35615===g){D[n.check=0]=255&g,D[1]=g>>>8&255,n.check=r(n.check,D,2,0),b=g=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&g)<<8)+(g>>8))%31){t.msg="incorrect header check",n.mode=30;break}if(8!=(15&g)){t.msg="unknown compression method",n.mode=30;break}if(b-=4,L=8+(15&(g>>>=4)),0===n.wbits)n.wbits=L;else if(L>n.wbits){t.msg="invalid window size",n.mode=30;break}n.dmax=1<<L,t.adler=n.check=1,n.mode=512&g?10:12,b=g=0;break;case 2:for(;b<16;){if(0===p)break t;p--,g+=u[d++]<<b,b+=8}if(n.flags=g,8!=(255&n.flags)){t.msg="unknown compression method",n.mode=30;break}if(57344&n.flags){t.msg="unknown header flags set",n.mode=30;break}n.head&&(n.head.text=g>>8&1),512&n.flags&&(D[0]=255&g,D[1]=g>>>8&255,n.check=r(n.check,D,2,0)),b=g=0,n.mode=3;case 3:for(;b<32;){if(0===p)break t;p--,g+=u[d++]<<b,b+=8}n.head&&(n.head.time=g),512&n.flags&&(D[0]=255&g,D[1]=g>>>8&255,D[2]=g>>>16&255,D[3]=g>>>24&255,n.check=r(n.check,D,4,0)),b=g=0,n.mode=4;case 4:for(;b<16;){if(0===p)break t;p--,g+=u[d++]<<b,b+=8}n.head&&(n.head.xflags=255&g,n.head.os=g>>8),512&n.flags&&(D[0]=255&g,D[1]=g>>>8&255,n.check=r(n.check,D,2,0)),b=g=0,n.mode=5;case 5:if(1024&n.flags){for(;b<16;){if(0===p)break t;p--,g+=u[d++]<<b,b+=8}n.length=g,n.head&&(n.head.extra_len=g),512&n.flags&&(D[0]=255&g,D[1]=g>>>8&255,n.check=r(n.check,D,2,0)),b=g=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&(p<(_=n.length)&&(_=p),_&&(n.head&&(L=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),i.arraySet(n.head.extra,u,d,_,L)),512&n.flags&&(n.check=r(n.check,u,_,d)),p-=_,d+=_,n.length-=_),n.length))break t;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===p)break t;for(_=0;L=u[d+_++],n.head&&L&&n.length<65536&&(n.head.name+=String.fromCharCode(L)),L&&_<p;);if(512&n.flags&&(n.check=r(n.check,u,_,d)),p-=_,d+=_,L)break t}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===p)break t;for(_=0;L=u[d+_++],n.head&&L&&n.length<65536&&(n.head.comment+=String.fromCharCode(L)),L&&_<p;);if(512&n.flags&&(n.check=r(n.check,u,_,d)),p-=_,d+=_,L)break t}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;b<16;){if(0===p)break t;p--,g+=u[d++]<<b,b+=8}if(g!==(65535&n.check)){t.msg="header crc mismatch",n.mode=30;break}b=g=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),t.adler=n.check=0,n.mode=12;break;case 10:for(;b<32;){if(0===p)break t;p--,g+=u[d++]<<b,b+=8}t.adler=n.check=l(g),b=g=0,n.mode=11;case 11:if(0===n.havedict)return t.next_out=f,t.avail_out=m,t.next_in=d,t.avail_in=p,n.hold=g,n.bits=b,2;t.adler=n.check=1,n.mode=12;case 12:if(5===e||6===e)break t;case 13:if(n.last){g>>>=7&b,b-=7&b,n.mode=27;break}for(;b<3;){if(0===p)break t;p--,g+=u[d++]<<b,b+=8}switch(n.last=1&g,b-=1,3&(g>>>=1)){case 0:n.mode=14;break;case 1:if(v(n),n.mode=20,6!==e)break;g>>>=2,b-=2;break t;case 2:n.mode=17;break;case 3:t.msg="invalid block type",n.mode=30}g>>>=2,b-=2;break;case 14:for(g>>>=7&b,b-=7&b;b<32;){if(0===p)break t;p--,g+=u[d++]<<b,b+=8}if((65535&g)!=(g>>>16^65535)){t.msg="invalid stored block lengths",n.mode=30;break}if(n.length=65535&g,b=g=0,n.mode=15,6===e)break t;case 15:n.mode=16;case 16:if(_=n.length){if(p<_&&(_=p),m<_&&(_=m),0===_)break t;i.arraySet(h,u,d,_,f),p-=_,d+=_,m-=_,f+=_,n.length-=_;break}n.mode=12;break;case 17:for(;b<14;){if(0===p)break t;p--,g+=u[d++]<<b,b+=8}if(n.nlen=257+(31&g),g>>>=5,b-=5,n.ndist=1+(31&g),g>>>=5,b-=5,n.ncode=4+(15&g),g>>>=4,b-=4,286<n.nlen||30<n.ndist){t.msg="too many length or distance symbols",n.mode=30;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;b<3;){if(0===p)break t;p--,g+=u[d++]<<b,b+=8}n.lens[V[n.have++]]=7&g,g>>>=3,b-=3}for(;n.have<19;)n.lens[V[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,k={bits:n.lenbits},O=a(0,n.lens,0,19,n.lencode,0,n.work,k),n.lenbits=k.bits,O){t.msg="invalid code lengths set",n.mode=30;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;C=(N=n.lencode[g&(1<<n.lenbits)-1])>>>16&255,M=65535&N,!((T=N>>>24)<=b);){if(0===p)break t;p--,g+=u[d++]<<b,b+=8}if(M<16)g>>>=T,b-=T,n.lens[n.have++]=M;else{if(16===M){for(R=T+2;b<R;){if(0===p)break t;p--,g+=u[d++]<<b,b+=8}if(g>>>=T,b-=T,0===n.have){t.msg="invalid bit length repeat",n.mode=30;break}L=n.lens[n.have-1],_=3+(3&g),g>>>=2,b-=2}else if(17===M){for(R=T+3;b<R;){if(0===p)break t;p--,g+=u[d++]<<b,b+=8}b-=T,L=0,_=3+(7&(g>>>=T)),g>>>=3,b-=3}else{for(R=T+7;b<R;){if(0===p)break t;p--,g+=u[d++]<<b,b+=8}b-=T,L=0,_=11+(127&(g>>>=T)),g>>>=7,b-=7}if(n.have+_>n.nlen+n.ndist){t.msg="invalid bit length repeat",n.mode=30;break}for(;_--;)n.lens[n.have++]=L}}if(30===n.mode)break;if(0===n.lens[256]){t.msg="invalid code -- missing end-of-block",n.mode=30;break}if(n.lenbits=9,k={bits:n.lenbits},O=a(1,n.lens,0,n.nlen,n.lencode,0,n.work,k),n.lenbits=k.bits,O){t.msg="invalid literal/lengths set",n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,k={bits:n.distbits},O=a(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,k),n.distbits=k.bits,O){t.msg="invalid distances set",n.mode=30;break}if(n.mode=20,6===e)break t;case 20:n.mode=21;case 21:if(6<=p&&258<=m){t.next_out=f,t.avail_out=m,t.next_in=d,t.avail_in=p,n.hold=g,n.bits=b,o(t,x),f=t.next_out,h=t.output,m=t.avail_out,d=t.next_in,u=t.input,p=t.avail_in,g=n.hold,b=n.bits,12===n.mode&&(n.back=-1);break}for(n.back=0;C=(N=n.lencode[g&(1<<n.lenbits)-1])>>>16&255,M=65535&N,!((T=N>>>24)<=b);){if(0===p)break t;p--,g+=u[d++]<<b,b+=8}if(C&&0==(240&C)){for(P=T,A=C,I=M;C=(N=n.lencode[I+((g&(1<<P+A)-1)>>P)])>>>16&255,M=65535&N,!(P+(T=N>>>24)<=b);){if(0===p)break t;p--,g+=u[d++]<<b,b+=8}g>>>=P,b-=P,n.back+=P}if(g>>>=T,b-=T,n.back+=T,n.length=M,0===C){n.mode=26;break}if(32&C){n.back=-1,n.mode=12;break}if(64&C){t.msg="invalid literal/length code",n.mode=30;break}n.extra=15&C,n.mode=22;case 22:if(n.extra){for(R=n.extra;b<R;){if(0===p)break t;p--,g+=u[d++]<<b,b+=8}n.length+=g&(1<<n.extra)-1,g>>>=n.extra,b-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;C=(N=n.distcode[g&(1<<n.distbits)-1])>>>16&255,M=65535&N,!((T=N>>>24)<=b);){if(0===p)break t;p--,g+=u[d++]<<b,b+=8}if(0==(240&C)){for(P=T,A=C,I=M;C=(N=n.distcode[I+((g&(1<<P+A)-1)>>P)])>>>16&255,M=65535&N,!(P+(T=N>>>24)<=b);){if(0===p)break t;p--,g+=u[d++]<<b,b+=8}g>>>=P,b-=P,n.back+=P}if(g>>>=T,b-=T,n.back+=T,64&C){t.msg="invalid distance code",n.mode=30;break}n.offset=M,n.extra=15&C,n.mode=24;case 24:if(n.extra){for(R=n.extra;b<R;){if(0===p)break t;p--,g+=u[d++]<<b,b+=8}n.offset+=g&(1<<n.extra)-1,g>>>=n.extra,b-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){t.msg="invalid distance too far back",n.mode=30;break}n.mode=25;case 25:if(0===m)break t;if(_=x-m,n.offset>_){if((_=n.offset-_)>n.whave&&n.sane){t.msg="invalid distance too far back",n.mode=30;break}w=_>n.wnext?(_-=n.wnext,n.wsize-_):n.wnext-_,_>n.length&&(_=n.length),E=n.window}else E=h,w=f-n.offset,_=n.length;for(m<_&&(_=m),m-=_,n.length-=_;h[f++]=E[w++],--_;);0===n.length&&(n.mode=21);break;case 26:if(0===m)break t;h[f++]=n.length,m--,n.mode=21;break;case 27:if(n.wrap){for(;b<32;){if(0===p)break t;p--,g|=u[d++]<<b,b+=8}if(x-=m,t.total_out+=x,n.total+=x,x&&(t.adler=n.check=n.flags?r(n.check,h,x,f-x):s(n.check,h,x,f-x)),x=m,(n.flags?g:l(g))!==n.check){t.msg="incorrect data check",n.mode=30;break}b=g=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;b<32;){if(0===p)break t;p--,g+=u[d++]<<b,b+=8}if(g!==(4294967295&n.total)){t.msg="incorrect length check",n.mode=30;break}b=g=0}n.mode=29;case 29:O=1;break t;case 30:O=-3;break t;case 31:return-4;case 32:default:return c}return t.next_out=f,t.avail_out=m,t.next_in=d,t.avail_in=p,n.hold=g,n.bits=b,(n.wsize||x!==t.avail_out&&n.mode<30&&(n.mode<27||4!==e))&&y(t,t.output,t.next_out,x-t.avail_out)?(n.mode=31,-4):(S-=t.avail_in,x-=t.avail_out,t.total_in+=S,t.total_out+=x,n.total+=x,n.wrap&&x&&(t.adler=n.check=n.flags?r(n.check,h,x,t.next_out-x):s(n.check,h,x,t.next_out-x)),t.data_type=n.bits+(n.last?64:0)+(12===n.mode?128:0)+(20===n.mode||15===n.mode?256:0),(0==S&&0===x||4===e)&&0===O&&(O=-5),O)},n.inflateEnd=function(t){if(!t||!t.state)return c;var e=t.state;return e.window&&(e.window=null),t.state=null,0},n.inflateGetHeader=function(t,e){var n;return t&&t.state?0==(2&(n=t.state).wrap)?c:((n.head=e).done=!1,0):c},n.inflateSetDictionary=function(t,e){var n,i=e.length;return t&&t.state?0!==(n=t.state).wrap&&11!==n.mode?c:11===n.mode&&s(1,e,i,0)!==n.check?-3:y(t,e,i,i)?(n.mode=31,-4):(n.havedict=1,0):c},n.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(t,e,n){"use strict";var i=t("../utils/common"),s=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],r=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],o=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],a=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];e.exports=function(t,e,n,c,l,u,h,d){var f,p,m,g,b,v,y,S,x,_=d.bits,w=0,E=0,T=0,C=0,M=0,P=0,A=0,I=0,L=0,O=0,k=null,R=0,N=new i.Buf16(16),D=new i.Buf16(16),V=null,B=0;for(w=0;w<=15;w++)N[w]=0;for(E=0;E<c;E++)N[e[n+E]]++;for(M=_,C=15;1<=C&&0===N[C];C--);if(C<M&&(M=C),0===C)return l[u++]=20971520,l[u++]=20971520,d.bits=1,0;for(T=1;T<C&&0===N[T];T++);for(M<T&&(M=T),w=I=1;w<=15;w++)if(I<<=1,(I-=N[w])<0)return-1;if(0<I&&(0===t||1!==C))return-1;for(D[1]=0,w=1;w<15;w++)D[w+1]=D[w]+N[w];for(E=0;E<c;E++)0!==e[n+E]&&(h[D[e[n+E]]++]=E);if(v=0===t?(k=V=h,19):1===t?(k=s,R-=257,V=r,B-=257,256):(k=o,V=a,-1),w=T,b=u,A=E=O=0,m=-1,g=(L=1<<(P=M))-1,1===t&&852<L||2===t&&592<L)return 1;for(;;){for(y=w-A,x=h[E]<v?(S=0,h[E]):h[E]>v?(S=V[B+h[E]],k[R+h[E]]):(S=96,0),f=1<<w-A,T=p=1<<P;l[b+(O>>A)+(p-=f)]=y<<24|S<<16|x|0,0!==p;);for(f=1<<w-1;O&f;)f>>=1;if(0!==f?(O&=f-1,O+=f):O=0,E++,0==--N[w]){if(w===C)break;w=e[n+h[E]]}if(M<w&&(O&g)!==m){for(0===A&&(A=M),b+=T,I=1<<(P=w-A);P+A<C&&!((I-=N[P+A])<=0);)P++,I<<=1;if(L+=1<<P,1===t&&852<L||2===t&&592<L)return 1;l[m=O&g]=M<<24|P<<16|b-u|0}}return 0!==O&&(l[b+O]=w-A<<24|64<<16|0),d.bits=M,0}},{"../utils/common":41}],51:[function(t,e,n){"use strict";e.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(t,e,n){"use strict";var i=t("../utils/common");function s(t){for(var e=t.length;0<=--e;)t[e]=0}var r=256,o=286,a=30,c=15,l=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],u=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],h=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],d=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],f=new Array(576);s(f);var p=new Array(60);s(p);var m=new Array(512);s(m);var g=new Array(256);s(g);var b=new Array(29);s(b);var v,y,S,x=new Array(a);function _(t,e,n,i,s){this.static_tree=t,this.extra_bits=e,this.extra_base=n,this.elems=i,this.max_length=s,this.has_stree=t&&t.length}function w(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function E(t){return t<256?m[t]:m[256+(t>>>7)]}function T(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function C(t,e,n){t.bi_valid>16-n?(t.bi_buf|=e<<t.bi_valid&65535,T(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=n-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=n)}function M(t,e,n){C(t,n[2*e],n[2*e+1])}function P(t,e){for(var n=0;n|=1&t,t>>>=1,n<<=1,0<--e;);return n>>>1}function A(t,e,n){var i,s,r=new Array(16),o=0;for(i=1;i<=c;i++)r[i]=o=o+n[i-1]<<1;for(s=0;s<=e;s++){var a=t[2*s+1];0!==a&&(t[2*s]=P(r[a]++,a))}}function I(t){var e;for(e=0;e<o;e++)t.dyn_ltree[2*e]=0;for(e=0;e<a;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function L(t){8<t.bi_valid?T(t,t.bi_buf):0<t.bi_valid&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function O(t,e,n,i){var s=2*e,r=2*n;return t[s]<t[r]||t[s]===t[r]&&i[e]<=i[n]}function k(t,e,n){for(var i=t.heap[n],s=n<<1;s<=t.heap_len&&(s<t.heap_len&&O(e,t.heap[s+1],t.heap[s],t.depth)&&s++,!O(e,i,t.heap[s],t.depth));)t.heap[n]=t.heap[s],n=s,s<<=1;t.heap[n]=i}function R(t,e,n){var i,s,o,a,c=0;if(0!==t.last_lit)for(;i=t.pending_buf[t.d_buf+2*c]<<8|t.pending_buf[t.d_buf+2*c+1],s=t.pending_buf[t.l_buf+c],c++,0===i?M(t,s,e):(M(t,(o=g[s])+r+1,e),0!==(a=l[o])&&C(t,s-=b[o],a),M(t,o=E(--i),n),0!==(a=u[o])&&C(t,i-=x[o],a)),c<t.last_lit;);M(t,256,e)}function N(t,e){var n,i,s,r=e.dyn_tree,o=e.stat_desc.static_tree,a=e.stat_desc.has_stree,l=e.stat_desc.elems,u=-1;for(t.heap_len=0,t.heap_max=573,n=0;n<l;n++)0!==r[2*n]?(t.heap[++t.heap_len]=u=n,t.depth[n]=0):r[2*n+1]=0;for(;t.heap_len<2;)r[2*(s=t.heap[++t.heap_len]=u<2?++u:0)]=1,t.depth[s]=0,t.opt_len--,a&&(t.static_len-=o[2*s+1]);for(e.max_code=u,n=t.heap_len>>1;1<=n;n--)k(t,r,n);for(s=l;n=t.heap[1],t.heap[1]=t.heap[t.heap_len--],k(t,r,1),i=t.heap[1],t.heap[--t.heap_max]=n,t.heap[--t.heap_max]=i,r[2*s]=r[2*n]+r[2*i],t.depth[s]=(t.depth[n]>=t.depth[i]?t.depth[n]:t.depth[i])+1,r[2*n+1]=r[2*i+1]=s,t.heap[1]=s++,k(t,r,1),2<=t.heap_len;);t.heap[--t.heap_max]=t.heap[1],function(t,e){var n,i,s,r,o,a,l=e.dyn_tree,u=e.max_code,h=e.stat_desc.static_tree,d=e.stat_desc.has_stree,f=e.stat_desc.extra_bits,p=e.stat_desc.extra_base,m=e.stat_desc.max_length,g=0;for(r=0;r<=c;r++)t.bl_count[r]=0;for(l[2*t.heap[t.heap_max]+1]=0,n=t.heap_max+1;n<573;n++)m<(r=l[2*l[2*(i=t.heap[n])+1]+1]+1)&&(r=m,g++),l[2*i+1]=r,u<i||(t.bl_count[r]++,o=0,p<=i&&(o=f[i-p]),a=l[2*i],t.opt_len+=a*(r+o),d&&(t.static_len+=a*(h[2*i+1]+o)));if(0!==g){do{for(r=m-1;0===t.bl_count[r];)r--;t.bl_count[r]--,t.bl_count[r+1]+=2,t.bl_count[m]--,g-=2}while(0<g);for(r=m;0!==r;r--)for(i=t.bl_count[r];0!==i;)u<(s=t.heap[--n])||(l[2*s+1]!==r&&(t.opt_len+=(r-l[2*s+1])*l[2*s],l[2*s+1]=r),i--)}}(t,e),A(r,u,t.bl_count)}function D(t,e,n){var i,s,r=-1,o=e[1],a=0,c=7,l=4;for(0===o&&(c=138,l=3),e[2*(n+1)+1]=65535,i=0;i<=n;i++)s=o,o=e[2*(i+1)+1],++a<c&&s===o||(a<l?t.bl_tree[2*s]+=a:0!==s?(s!==r&&t.bl_tree[2*s]++,t.bl_tree[32]++):a<=10?t.bl_tree[34]++:t.bl_tree[36]++,r=s,l=(a=0)===o?(c=138,3):s===o?(c=6,3):(c=7,4))}function V(t,e,n){var i,s,r=-1,o=e[1],a=0,c=7,l=4;for(0===o&&(c=138,l=3),i=0;i<=n;i++)if(s=o,o=e[2*(i+1)+1],!(++a<c&&s===o)){if(a<l)for(;M(t,s,t.bl_tree),0!=--a;);else 0!==s?(s!==r&&(M(t,s,t.bl_tree),a--),M(t,16,t.bl_tree),C(t,a-3,2)):a<=10?(M(t,17,t.bl_tree),C(t,a-3,3)):(M(t,18,t.bl_tree),C(t,a-11,7));r=s,l=(a=0)===o?(c=138,3):s===o?(c=6,3):(c=7,4)}}s(x);var B=!1;function F(t,e,n,s){C(t,0+(s?1:0),3),function(t,e,n,s){L(t),T(t,n),T(t,~n),i.arraySet(t.pending_buf,t.window,e,n,t.pending),t.pending+=n}(t,e,n)}n._tr_init=function(t){B||(function(){var t,e,n,i,s,r=new Array(16);for(i=n=0;i<28;i++)for(b[i]=n,t=0;t<1<<l[i];t++)g[n++]=i;for(g[n-1]=i,i=s=0;i<16;i++)for(x[i]=s,t=0;t<1<<u[i];t++)m[s++]=i;for(s>>=7;i<a;i++)for(x[i]=s<<7,t=0;t<1<<u[i]-7;t++)m[256+s++]=i;for(e=0;e<=c;e++)r[e]=0;for(t=0;t<=143;)f[2*t+1]=8,t++,r[8]++;for(;t<=255;)f[2*t+1]=9,t++,r[9]++;for(;t<=279;)f[2*t+1]=7,t++,r[7]++;for(;t<=287;)f[2*t+1]=8,t++,r[8]++;for(A(f,287,r),t=0;t<a;t++)p[2*t+1]=5,p[2*t]=P(t,5);v=new _(f,l,257,o,c),y=new _(p,u,0,a,c),S=new _(new Array(0),h,0,19,7)}(),B=!0),t.l_desc=new w(t.dyn_ltree,v),t.d_desc=new w(t.dyn_dtree,y),t.bl_desc=new w(t.bl_tree,S),t.bi_buf=0,t.bi_valid=0,I(t)},n._tr_stored_block=F,n._tr_flush_block=function(t,e,n,i){var s,o,a=0;0<t.level?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,n=4093624447;for(e=0;e<=31;e++,n>>>=1)if(1&n&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<r;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),N(t,t.l_desc),N(t,t.d_desc),a=function(t){var e;for(D(t,t.dyn_ltree,t.l_desc.max_code),D(t,t.dyn_dtree,t.d_desc.max_code),N(t,t.bl_desc),e=18;3<=e&&0===t.bl_tree[2*d[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),s=t.opt_len+3+7>>>3,(o=t.static_len+3+7>>>3)<=s&&(s=o)):s=o=n+5,n+4<=s&&-1!==e?F(t,e,n,i):4===t.strategy||o===s?(C(t,2+(i?1:0),3),R(t,f,p)):(C(t,4+(i?1:0),3),function(t,e,n,i){var s;for(C(t,e-257,5),C(t,n-1,5),C(t,i-4,4),s=0;s<i;s++)C(t,t.bl_tree[2*d[s]+1],3);V(t,t.dyn_ltree,e-1),V(t,t.dyn_dtree,n-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,a+1),R(t,t.dyn_ltree,t.dyn_dtree)),I(t),i&&L(t)},n._tr_tally=function(t,e,n){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&n,t.last_lit++,0===e?t.dyn_ltree[2*n]++:(t.matches++,e--,t.dyn_ltree[2*(g[n]+r+1)]++,t.dyn_dtree[2*E(e)]++),t.last_lit===t.lit_bufsize-1},n._tr_align=function(t){C(t,2,3),M(t,256,f),function(t){16===t.bi_valid?(T(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):8<=t.bi_valid&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},{"../utils/common":41}],53:[function(t,e,n){"use strict";e.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,e,n){"use strict";e.exports="function"==typeof i?i:function(){var t=[].slice.apply(arguments);t.splice(1,0,0),setTimeout.apply(null,t)}},{}]},{},[10])(10)}).call(this,n(170).Buffer,n(41),n(174).setImmediate)},function(t,e,n){"use strict";(function(t){
- /*!
- * The buffer module from node.js, for the browser.
- *
- * @author Feross Aboukhadijeh <http://feross.org>
- * @license MIT
- */
- var i=n(171),s=n(172),r=n(173);function o(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(t,e){if(o()<e)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=c.prototype:(null===t&&(t=new c(e)),t.length=e),t}function c(t,e,n){if(!(c.TYPED_ARRAY_SUPPORT||this instanceof c))return new c(t,e,n);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return h(this,t)}return l(this,t,e,n)}function l(t,e,n,i){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,n,i){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(i||0))throw new RangeError("'length' is out of bounds");return e=void 0===n&&void 0===i?new Uint8Array(e):void 0===i?new Uint8Array(e,n):new Uint8Array(e,n,i),c.TYPED_ARRAY_SUPPORT?(t=e).__proto__=c.prototype:t=d(t,e),t}(t,e,n,i):"string"==typeof e?function(t,e,n){if("string"==typeof n&&""!==n||(n="utf8"),!c.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var i=0|p(e,n),s=(t=a(t,i)).write(e,n);return s!==i&&(t=t.slice(0,s)),t}(t,e,n):function(t,e){if(c.isBuffer(e)){var n=0|f(e.length);return 0===(t=a(t,n)).length||e.copy(t,0,0,n),t}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||(i=e.length)!=i?a(t,0):d(t,e);if("Buffer"===e.type&&r(e.data))return d(t,e.data)}var i;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function u(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function h(t,e){if(u(e),t=a(t,e<0?0:0|f(e)),!c.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function d(t,e){var n=e.length<0?0:0|f(e.length);t=a(t,n);for(var i=0;i<n;i+=1)t[i]=255&e[i];return t}function f(t){if(t>=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|t}function p(t,e){if(c.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return j(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return G(t).length;default:if(i)return j(t).length;e=(""+e).toLowerCase(),i=!0}}function m(t,e,n){var i=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return A(this,e,n);case"utf8":case"utf-8":return C(this,e,n);case"ascii":return M(this,e,n);case"latin1":case"binary":return P(this,e,n);case"base64":return T(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,e,n);default:if(i)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),i=!0}}function g(t,e,n){var i=t[e];t[e]=t[n],t[n]=i}function b(t,e,n,i,s){if(0===t.length)return-1;if("string"==typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=s?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(s)return-1;n=t.length-1}else if(n<0){if(!s)return-1;n=0}if("string"==typeof e&&(e=c.from(e,i)),c.isBuffer(e))return 0===e.length?-1:v(t,e,n,i,s);if("number"==typeof e)return e&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?s?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):v(t,[e],n,i,s);throw new TypeError("val must be string, number or Buffer")}function v(t,e,n,i,s){var r,o=1,a=t.length,c=e.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(t.length<2||e.length<2)return-1;o=2,a/=2,c/=2,n/=2}function l(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(s){var u=-1;for(r=n;r<a;r++)if(l(t,r)===l(e,-1===u?0:r-u)){if(-1===u&&(u=r),r-u+1===c)return u*o}else-1!==u&&(r-=r-u),u=-1}else for(n+c>a&&(n=a-c),r=n;r>=0;r--){for(var h=!0,d=0;d<c;d++)if(l(t,r+d)!==l(e,d)){h=!1;break}if(h)return r}return-1}function y(t,e,n,i){n=Number(n)||0;var s=t.length-n;i?(i=Number(i))>s&&(i=s):i=s;var r=e.length;if(r%2!=0)throw new TypeError("Invalid hex string");i>r/2&&(i=r/2);for(var o=0;o<i;++o){var a=parseInt(e.substr(2*o,2),16);if(isNaN(a))return o;t[n+o]=a}return o}function S(t,e,n,i){return W(j(e,t.length-n),t,n,i)}function x(t,e,n,i){return W(function(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}(e),t,n,i)}function _(t,e,n,i){return x(t,e,n,i)}function w(t,e,n,i){return W(G(e),t,n,i)}function E(t,e,n,i){return W(function(t,e){for(var n,i,s,r=[],o=0;o<t.length&&!((e-=2)<0);++o)n=t.charCodeAt(o),i=n>>8,s=n%256,r.push(s),r.push(i);return r}(e,t.length-n),t,n,i)}function T(t,e,n){return 0===e&&n===t.length?i.fromByteArray(t):i.fromByteArray(t.slice(e,n))}function C(t,e,n){n=Math.min(t.length,n);for(var i=[],s=e;s<n;){var r,o,a,c,l=t[s],u=null,h=l>239?4:l>223?3:l>191?2:1;if(s+h<=n)switch(h){case 1:l<128&&(u=l);break;case 2:128==(192&(r=t[s+1]))&&(c=(31&l)<<6|63&r)>127&&(u=c);break;case 3:r=t[s+1],o=t[s+2],128==(192&r)&&128==(192&o)&&(c=(15&l)<<12|(63&r)<<6|63&o)>2047&&(c<55296||c>57343)&&(u=c);break;case 4:r=t[s+1],o=t[s+2],a=t[s+3],128==(192&r)&&128==(192&o)&&128==(192&a)&&(c=(15&l)<<18|(63&r)<<12|(63&o)<<6|63&a)>65535&&c<1114112&&(u=c)}null===u?(u=65533,h=1):u>65535&&(u-=65536,i.push(u>>>10&1023|55296),u=56320|1023&u),i.push(u),s+=h}return function(t){var e=t.length;if(e<=4096)return String.fromCharCode.apply(String,t);for(var n="",i=0;i<e;)n+=String.fromCharCode.apply(String,t.slice(i,i+=4096));return n}(i)}function M(t,e,n){var i="";n=Math.min(t.length,n);for(var s=e;s<n;++s)i+=String.fromCharCode(127&t[s]);return i}function P(t,e,n){var i="";n=Math.min(t.length,n);for(var s=e;s<n;++s)i+=String.fromCharCode(t[s]);return i}function A(t,e,n){var i=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>i)&&(n=i);for(var s="",r=e;r<n;++r)s+=F(t[r]);return s}function I(t,e,n){for(var i=t.slice(e,n),s="",r=0;r<i.length;r+=2)s+=String.fromCharCode(i[r]+256*i[r+1]);return s}function L(t,e,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function O(t,e,n,i,s,r){if(!c.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>s||e<r)throw new RangeError('"value" argument is out of bounds');if(n+i>t.length)throw new RangeError("Index out of range")}function k(t,e,n,i){e<0&&(e=65535+e+1);for(var s=0,r=Math.min(t.length-n,2);s<r;++s)t[n+s]=(e&255<<8*(i?s:1-s))>>>8*(i?s:1-s)}function R(t,e,n,i){e<0&&(e=4294967295+e+1);for(var s=0,r=Math.min(t.length-n,4);s<r;++s)t[n+s]=e>>>8*(i?s:3-s)&255}function N(t,e,n,i,s,r){if(n+i>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function D(t,e,n,i,r){return r||N(t,0,n,4),s.write(t,e,n,i,23,4),n+4}function V(t,e,n,i,r){return r||N(t,0,n,8),s.write(t,e,n,i,52,8),n+8}e.Buffer=c,e.SlowBuffer=function(t){return+t!=t&&(t=0),c.alloc(+t)},e.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=o(),c.poolSize=8192,c._augment=function(t){return t.__proto__=c.prototype,t},c.from=function(t,e,n){return l(null,t,e,n)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(t,e,n){return function(t,e,n,i){return u(e),e<=0?a(t,e):void 0!==n?"string"==typeof i?a(t,e).fill(n,i):a(t,e).fill(n):a(t,e)}(null,t,e,n)},c.allocUnsafe=function(t){return h(null,t)},c.allocUnsafeSlow=function(t){return h(null,t)},c.isBuffer=function(t){return!(null==t||!t._isBuffer)},c.compare=function(t,e){if(!c.isBuffer(t)||!c.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,i=e.length,s=0,r=Math.min(n,i);s<r;++s)if(t[s]!==e[s]){n=t[s],i=e[s];break}return n<i?-1:i<n?1:0},c.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(t,e){if(!r(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return c.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var i=c.allocUnsafe(e),s=0;for(n=0;n<t.length;++n){var o=t[n];if(!c.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(i,s),s+=o.length}return i},c.byteLength=p,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)g(this,e,e+1);return this},c.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)g(this,e,e+3),g(this,e+1,e+2);return this},c.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)g(this,e,e+7),g(this,e+1,e+6),g(this,e+2,e+5),g(this,e+3,e+4);return this},c.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?C(this,0,t):m.apply(this,arguments)},c.prototype.equals=function(t){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===c.compare(this,t)},c.prototype.inspect=function(){var t="",n=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),"<Buffer "+t+">"},c.prototype.compare=function(t,e,n,i,s){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===i&&(i=0),void 0===s&&(s=this.length),e<0||n>t.length||i<0||s>this.length)throw new RangeError("out of range index");if(i>=s&&e>=n)return 0;if(i>=s)return-1;if(e>=n)return 1;if(this===t)return 0;for(var r=(s>>>=0)-(i>>>=0),o=(n>>>=0)-(e>>>=0),a=Math.min(r,o),l=this.slice(i,s),u=t.slice(e,n),h=0;h<a;++h)if(l[h]!==u[h]){r=l[h],o=u[h];break}return r<o?-1:o<r?1:0},c.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},c.prototype.indexOf=function(t,e,n){return b(this,t,e,n,!0)},c.prototype.lastIndexOf=function(t,e,n){return b(this,t,e,n,!1)},c.prototype.write=function(t,e,n,i){if(void 0===e)i="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)i=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(n)?(n|=0,void 0===i&&(i="utf8")):(i=n,n=void 0)}var s=this.length-e;if((void 0===n||n>s)&&(n=s),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var r=!1;;)switch(i){case"hex":return y(this,t,e,n);case"utf8":case"utf-8":return S(this,t,e,n);case"ascii":return x(this,t,e,n);case"latin1":case"binary":return _(this,t,e,n);case"base64":return w(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,t,e,n);default:if(r)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),r=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},c.prototype.slice=function(t,e){var n,i=this.length;if((t=~~t)<0?(t+=i)<0&&(t=0):t>i&&(t=i),(e=void 0===e?i:~~e)<0?(e+=i)<0&&(e=0):e>i&&(e=i),e<t&&(e=t),c.TYPED_ARRAY_SUPPORT)(n=this.subarray(t,e)).__proto__=c.prototype;else{var s=e-t;n=new c(s,void 0);for(var r=0;r<s;++r)n[r]=this[r+t]}return n},c.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||L(t,e,this.length);for(var i=this[t],s=1,r=0;++r<e&&(s*=256);)i+=this[t+r]*s;return i},c.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||L(t,e,this.length);for(var i=this[t+--e],s=1;e>0&&(s*=256);)i+=this[t+--e]*s;return i},c.prototype.readUInt8=function(t,e){return e||L(t,1,this.length),this[t]},c.prototype.readUInt16LE=function(t,e){return e||L(t,2,this.length),this[t]|this[t+1]<<8},c.prototype.readUInt16BE=function(t,e){return e||L(t,2,this.length),this[t]<<8|this[t+1]},c.prototype.readUInt32LE=function(t,e){return e||L(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},c.prototype.readUInt32BE=function(t,e){return e||L(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},c.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||L(t,e,this.length);for(var i=this[t],s=1,r=0;++r<e&&(s*=256);)i+=this[t+r]*s;return i>=(s*=128)&&(i-=Math.pow(2,8*e)),i},c.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||L(t,e,this.length);for(var i=e,s=1,r=this[t+--i];i>0&&(s*=256);)r+=this[t+--i]*s;return r>=(s*=128)&&(r-=Math.pow(2,8*e)),r},c.prototype.readInt8=function(t,e){return e||L(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},c.prototype.readInt16LE=function(t,e){e||L(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(t,e){e||L(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(t,e){return e||L(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},c.prototype.readInt32BE=function(t,e){return e||L(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},c.prototype.readFloatLE=function(t,e){return e||L(t,4,this.length),s.read(this,t,!0,23,4)},c.prototype.readFloatBE=function(t,e){return e||L(t,4,this.length),s.read(this,t,!1,23,4)},c.prototype.readDoubleLE=function(t,e){return e||L(t,8,this.length),s.read(this,t,!0,52,8)},c.prototype.readDoubleBE=function(t,e){return e||L(t,8,this.length),s.read(this,t,!1,52,8)},c.prototype.writeUIntLE=function(t,e,n,i){t=+t,e|=0,n|=0,i||O(this,t,e,n,Math.pow(2,8*n)-1,0);var s=1,r=0;for(this[e]=255&t;++r<n&&(s*=256);)this[e+r]=t/s&255;return e+n},c.prototype.writeUIntBE=function(t,e,n,i){t=+t,e|=0,n|=0,i||O(this,t,e,n,Math.pow(2,8*n)-1,0);var s=n-1,r=1;for(this[e+s]=255&t;--s>=0&&(r*=256);)this[e+s]=t/r&255;return e+n},c.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||O(this,t,e,1,255,0),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},c.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||O(this,t,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):k(this,t,e,!0),e+2},c.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||O(this,t,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):k(this,t,e,!1),e+2},c.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||O(this,t,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):R(this,t,e,!0),e+4},c.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||O(this,t,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):R(this,t,e,!1),e+4},c.prototype.writeIntLE=function(t,e,n,i){if(t=+t,e|=0,!i){var s=Math.pow(2,8*n-1);O(this,t,e,n,s-1,-s)}var r=0,o=1,a=0;for(this[e]=255&t;++r<n&&(o*=256);)t<0&&0===a&&0!==this[e+r-1]&&(a=1),this[e+r]=(t/o>>0)-a&255;return e+n},c.prototype.writeIntBE=function(t,e,n,i){if(t=+t,e|=0,!i){var s=Math.pow(2,8*n-1);O(this,t,e,n,s-1,-s)}var r=n-1,o=1,a=0;for(this[e+r]=255&t;--r>=0&&(o*=256);)t<0&&0===a&&0!==this[e+r+1]&&(a=1),this[e+r]=(t/o>>0)-a&255;return e+n},c.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||O(this,t,e,1,127,-128),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},c.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||O(this,t,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):k(this,t,e,!0),e+2},c.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||O(this,t,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):k(this,t,e,!1),e+2},c.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||O(this,t,e,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):R(this,t,e,!0),e+4},c.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||O(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):R(this,t,e,!1),e+4},c.prototype.writeFloatLE=function(t,e,n){return D(this,t,e,!0,n)},c.prototype.writeFloatBE=function(t,e,n){return D(this,t,e,!1,n)},c.prototype.writeDoubleLE=function(t,e,n){return V(this,t,e,!0,n)},c.prototype.writeDoubleBE=function(t,e,n){return V(this,t,e,!1,n)},c.prototype.copy=function(t,e,n,i){if(n||(n=0),i||0===i||(i=this.length),e>=t.length&&(e=t.length),e||(e=0),i>0&&i<n&&(i=n),i===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-e<i-n&&(i=t.length-e+n);var s,r=i-n;if(this===t&&n<e&&e<i)for(s=r-1;s>=0;--s)t[s+e]=this[s+n];else if(r<1e3||!c.TYPED_ARRAY_SUPPORT)for(s=0;s<r;++s)t[s+e]=this[s+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+r),e);return r},c.prototype.fill=function(t,e,n,i){if("string"==typeof t){if("string"==typeof e?(i=e,e=0,n=this.length):"string"==typeof n&&(i=n,n=this.length),1===t.length){var s=t.charCodeAt(0);s<256&&(t=s)}if(void 0!==i&&"string"!=typeof i)throw new TypeError("encoding must be a string");if("string"==typeof i&&!c.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;var r;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(r=e;r<n;++r)this[r]=t;else{var o=c.isBuffer(t)?t:j(new c(t,i).toString()),a=o.length;for(r=0;r<n-e;++r)this[r+e]=o[r%a]}return this};var B=/[^+\/0-9A-Za-z-_]/g;function F(t){return t<16?"0"+t.toString(16):t.toString(16)}function j(t,e){var n;e=e||1/0;for(var i=t.length,s=null,r=[],o=0;o<i;++o){if((n=t.charCodeAt(o))>55295&&n<57344){if(!s){if(n>56319){(e-=3)>-1&&r.push(239,191,189);continue}if(o+1===i){(e-=3)>-1&&r.push(239,191,189);continue}s=n;continue}if(n<56320){(e-=3)>-1&&r.push(239,191,189),s=n;continue}n=65536+(s-55296<<10|n-56320)}else s&&(e-=3)>-1&&r.push(239,191,189);if(s=null,n<128){if((e-=1)<0)break;r.push(n)}else if(n<2048){if((e-=2)<0)break;r.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;r.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;r.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return r}function G(t){return i.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(B,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function W(t,e,n,i){for(var s=0;s<i&&!(s+n>=e.length||s>=t.length);++s)e[s+n]=t[s];return s}}).call(this,n(41))},function(t,e,n){"use strict";e.byteLength=function(t){var e=l(t),n=e[0],i=e[1];return 3*(n+i)/4-i},e.toByteArray=function(t){var e,n,i=l(t),o=i[0],a=i[1],c=new r(function(t,e,n){return 3*(e+n)/4-n}(0,o,a)),u=0,h=a>0?o-4:o;for(n=0;n<h;n+=4)e=s[t.charCodeAt(n)]<<18|s[t.charCodeAt(n+1)]<<12|s[t.charCodeAt(n+2)]<<6|s[t.charCodeAt(n+3)],c[u++]=e>>16&255,c[u++]=e>>8&255,c[u++]=255&e;return 2===a&&(e=s[t.charCodeAt(n)]<<2|s[t.charCodeAt(n+1)]>>4,c[u++]=255&e),1===a&&(e=s[t.charCodeAt(n)]<<10|s[t.charCodeAt(n+1)]<<4|s[t.charCodeAt(n+2)]>>2,c[u++]=e>>8&255,c[u++]=255&e),c},e.fromByteArray=function(t){for(var e,n=t.length,s=n%3,r=[],o=0,a=n-s;o<a;o+=16383)r.push(u(t,o,o+16383>a?a:o+16383));return 1===s?(e=t[n-1],r.push(i[e>>2]+i[e<<4&63]+"==")):2===s&&(e=(t[n-2]<<8)+t[n-1],r.push(i[e>>10]+i[e>>4&63]+i[e<<2&63]+"=")),r.join("")};for(var i=[],s=[],r="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,c=o.length;a<c;++a)i[a]=o[a],s[o.charCodeAt(a)]=a;function l(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function u(t,e,n){for(var s,r,o=[],a=e;a<n;a+=3)s=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(255&t[a+2]),o.push(i[(r=s)>>18&63]+i[r>>12&63]+i[r>>6&63]+i[63&r]);return o.join("")}s["-".charCodeAt(0)]=62,s["_".charCodeAt(0)]=63},function(t,e){e.read=function(t,e,n,i,s){var r,o,a=8*s-i-1,c=(1<<a)-1,l=c>>1,u=-7,h=n?s-1:0,d=n?-1:1,f=t[e+h];for(h+=d,r=f&(1<<-u)-1,f>>=-u,u+=a;u>0;r=256*r+t[e+h],h+=d,u-=8);for(o=r&(1<<-u)-1,r>>=-u,u+=i;u>0;o=256*o+t[e+h],h+=d,u-=8);if(0===r)r=1-l;else{if(r===c)return o?NaN:1/0*(f?-1:1);o+=Math.pow(2,i),r-=l}return(f?-1:1)*o*Math.pow(2,r-i)},e.write=function(t,e,n,i,s,r){var o,a,c,l=8*r-s-1,u=(1<<l)-1,h=u>>1,d=23===s?Math.pow(2,-24)-Math.pow(2,-77):0,f=i?0:r-1,p=i?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,o=u):(o=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-o))<1&&(o--,c*=2),(e+=o+h>=1?d/c:d*Math.pow(2,1-h))*c>=2&&(o++,c/=2),o+h>=u?(a=0,o=u):o+h>=1?(a=(e*c-1)*Math.pow(2,s),o+=h):(a=e*Math.pow(2,h-1)*Math.pow(2,s),o=0));s>=8;t[n+f]=255&a,f+=p,a/=256,s-=8);for(o=o<<s|a,l+=s;l>0;t[n+f]=255&o,f+=p,o/=256,l-=8);t[n+f-p]|=128*m}},function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},function(t,e,n){(function(t){var i=void 0!==t&&t||"undefined"!=typeof self&&self||window,s=Function.prototype.apply;function r(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new r(s.call(setTimeout,i,arguments),clearTimeout)},e.setInterval=function(){return new r(s.call(setInterval,i,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},r.prototype.unref=r.prototype.ref=function(){},r.prototype.close=function(){this._clearFn.call(i,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout((function(){t._onTimeout&&t._onTimeout()}),e))},n(175),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(this,n(41))},function(t,e,n){(function(t,e){!function(t,n){"use strict";if(!t.setImmediate){var i,s,r,o,a,c=1,l={},u=!1,h=t.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(t);d=d&&d.setTimeout?d:t,"[object process]"==={}.toString.call(t.process)?i=function(t){e.nextTick((function(){p(t)}))}:function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?(o="setImmediate$"+Math.random()+"$",a=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(o)&&p(+e.data.slice(o.length))},t.addEventListener?t.addEventListener("message",a,!1):t.attachEvent("onmessage",a),i=function(e){t.postMessage(o+e,"*")}):t.MessageChannel?((r=new MessageChannel).port1.onmessage=function(t){p(t.data)},i=function(t){r.port2.postMessage(t)}):h&&"onreadystatechange"in h.createElement("script")?(s=h.documentElement,i=function(t){var e=h.createElement("script");e.onreadystatechange=function(){p(t),e.onreadystatechange=null,s.removeChild(e),e=null},s.appendChild(e)}):i=function(t){setTimeout(p,0,t)},d.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n<e.length;n++)e[n]=arguments[n+1];var s={callback:t,args:e};return l[c]=s,i(c),c++},d.clearImmediate=f}function f(t){delete l[t]}function p(t){if(u)setTimeout(p,0,t);else{var e=l[t];if(e){u=!0;try{!function(t){var e=t.callback,n=t.args;switch(n.length){case 0:e();break;case 1:e(n[0]);break;case 2:e(n[0],n[1]);break;case 3:e(n[0],n[1],n[2]);break;default:e.apply(void 0,n)}}(e)}finally{f(t),u=!1}}}}}("undefined"==typeof self?void 0===t?this:t:self)}).call(this,n(41),n(143))},,,function(t,e,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}),s=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||e.hasOwnProperty(n)||i(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),s(n(75),e),s(n(179),e),s(n(197),e),s(n(199),e)},function(t,e,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}),s=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||e.hasOwnProperty(n)||i(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),s(n(11),e),s(n(60),e),s(n(61),e),s(n(13),e),s(n(124),e),s(n(137),e),s(n(180),e),s(n(182),e),s(n(184),e),s(n(186),e)},function(t,e,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}),s=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||e.hasOwnProperty(n)||i(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),s(n(66),e),s(n(129),e),s(n(44),e),s(n(39),e),s(n(36),e),s(n(62),e),s(n(37),e),s(n(46),e),s(n(87),e),s(n(31),e),s(n(100),e),s(n(132),e),s(n(88),e),s(n(130),e),s(n(52),e),s(n(47),e),s(n(12),e),s(n(181),e),s(n(36),e),s(n(37),e),s(n(87),e),s(n(31),e),s(n(52),e),s(n(88),e)},function(t,e,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}),s=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||e.hasOwnProperty(n)||i(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),s(n(45),e),s(n(7),e),s(n(16),e),s(n(28),e),s(n(17),e),s(n(69),e)},function(t,e,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}),s=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||e.hasOwnProperty(n)||i(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),s(n(183),e),s(n(74),e),s(n(125),e),s(n(126),e)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MappingSourceMusicPart=void 0,e.MappingSourceMusicPart=class{constructor(t,e,n,i=-1,s=!1){this.repetitionRun=-1,this.sourceMusicPart=t,this.parentPartListEntry=n,this.startTimestamp=e.clone(),this.repetitionRun=i,this.parentRepetition=n,this.isEnding=s}get IsRepetition(){return void 0!==this.parentRepetition}get IsEnding(){return this.isEnding}get IsLastRepetitionRun(){return this.IsRepetition&&this.repetitionRun+1===this.parentRepetition.UserNumberOfRepetitions}get RepetitionRun(){return this.repetitionRun}get ParentPartListEntry(){return this.parentPartListEntry}get SourceMusicPart(){return this.sourceMusicPart}get StartTimestamp(){return this.startTimestamp}CompareTo(t){return t?this.startTimestamp.CompareTo(t.startTimestamp):1}}},function(t,e,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}),s=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||e.hasOwnProperty(n)||i(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),s(n(127),e),s(n(123),e),s(n(138),e),s(n(128),e),s(n(185),e)},function(t,e,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}),s=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||e.hasOwnProperty(n)||i(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),s(n(133),e),s(n(134),e),s(n(135),e),s(n(131),e),s(n(140),e),s(n(139),e),s(n(136),e)},function(t,e,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}),s=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||e.hasOwnProperty(n)||i(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),s(n(40),e),s(n(187),e),s(n(95),e),s(n(114),e),s(n(4),e),s(n(93),e),s(n(22),e),s(n(103),e),s(n(33),e),s(n(26),e),s(n(110),e),s(n(188),e),s(n(48),e),s(n(122),e),s(n(65),e),s(n(58),e),s(n(24),e),s(n(27),e),s(n(116),e),s(n(117),e),s(n(189),e),s(n(105),e),s(n(43),e),s(n(57),e),s(n(109),e),s(n(6),e),s(n(119),e),s(n(190),e),s(n(121),e),s(n(108),e),s(n(191),e),s(n(115),e),s(n(106),e),s(n(192),e),s(n(15),e),s(n(102),e),s(n(63),e),s(n(99),e),s(n(92),e),s(n(94),e),s(n(193),e),s(n(194),e),s(n(113),e),s(n(112),e),s(n(55),e),s(n(101),e),s(n(38),e),s(n(23),e),s(n(91),e),s(n(195),e)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractGraphicalInstruction=void 0;const i=n(6);class s extends i.GraphicalObject{constructor(t){super(),this.parent=t}get Parent(){return this.parent}set Parent(t){this.parent=t}}e.AbstractGraphicalInstruction=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GraphicalComment=void 0,e.GraphicalComment=class{constructor(t,e){this.label=t,this.settings=e}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GraphicalMarkedArea=void 0,e.GraphicalMarkedArea=class{constructor(t,e,n,i){this.systemRectangle=t,this.labelRectangle=e,this.label=n,this.settings=i}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GraphicalRectangle=void 0;const i=n(4),s=n(6);class r extends s.GraphicalObject{constructor(t,e,n,s){super(),this.boundingBox=new i.BoundingBox(n),this.boundingBox.RelativePosition=t,this.boundingBox.BorderRight=e.x-t.x,this.boundingBox.BorderBottom=e.y-t.y,this.style=s}}e.GraphicalRectangle=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GraphicalStaffEntryLink=void 0,e.GraphicalStaffEntryLink=class{constructor(t){this.graphicalLinkedStaffEntries=[],this.staffEntryLink=t,this.initialize()}get GetStaffEntryLink(){return this.staffEntryLink}get GraphicalLinkedStaffEntries(){return this.graphicalLinkedStaffEntries}set GraphicalLinkedStaffEntries(t){this.graphicalLinkedStaffEntries=t}isFilled(){for(let t=0;t<this.graphicalLinkedStaffEntries.length;t++)if(!this.graphicalLinkedStaffEntries[t])return!1;return!0}getLinkedStaffEntriesGraphicalNotes(t){if(-1!==this.graphicalLinkedStaffEntries.indexOf(t)){const t=[];for(let e=0,n=this.graphicalLinkedStaffEntries.length;e<n;++e){const n=this.graphicalLinkedStaffEntries[e];for(const e of n.graphicalVoiceEntries)for(const n of e.notes)n.sourceNote.ParentStaffEntry.Link&&n.sourceNote.ParentVoiceEntry===this.staffEntryLink.GetVoiceEntry&&t.push(n)}return t}}initialize(){for(let t=0,e=this.staffEntryLink.LinkStaffEntries.length;t<e;++t)this.graphicalLinkedStaffEntries.push(void 0)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SelectionEndSymbol=void 0;const i=n(6),s=n(22),r=n(5),o=n(4),a=n(27),c=n(34);class l extends i.GraphicalObject{constructor(t,e){super();const n=e,i=t.PositionAndShape.AbsolutePosition.y,l=c.CollectionUtil.last(t.StaffLines).PositionAndShape.RelativePosition.y+4;this.verticalLine=new a.GraphicalLine(new r.PointF2D(n,i),new r.PointF2D(n,i+l),.4,s.OutlineAndFillStyleEnum.SelectionSymbol);for(let s=0,o=t.StaffLines.length;s<o;++s){const e=t.StaffLines[s],o=new r.PointF2D(n,i+e.PositionAndShape.RelativePosition.y),a=new Array(3);o.y-=.2,a[0].x=o.x-3,a[0].y=o.y+1.2,a[1].x=o.x-2,a[1].y=o.y+.4,a[2].x=o.x-2,a[2].y=o.y+2,this.arrows.push(a);const c=new Array(8),l=.8;o.x-=.1,o.y+=.3;const u=.2;c[0].x=o.x-2,c[0].y=o.y+1.5-u,c[1].x=o.x-1,c[1].y=o.y+1.5-u,c[2].x=o.x-1,c[2].y=o.y+2.5,c[3].x=o.x-2,c[3].y=o.y+2.5,c[4].x=c[0].x,c[4].y=c[0].y-l,c[5].x=c[4].x+l+1,c[5].y=c[4].y,c[6].x=c[5].x,c[6].y=c[3].y+l,c[7].x=c[3].x,c[7].y=c[6].y,this.arrowlines.push(c)}this.boundingBox=new o.BoundingBox(this),this.boundingBox.AbsolutePosition=new r.PointF2D(n,i),this.boundingBox.BorderLeft=-.4,this.boundingBox.BorderRight=4,this.boundingBox.BorderBottom=l}}e.SelectionEndSymbol=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SelectionStartSymbol=void 0;const i=n(5),s=n(22),r=n(27),o=n(6),a=n(4),c=n(34);class l extends o.GraphicalObject{constructor(t,e){super();const n=e,o=t.PositionAndShape.AbsolutePosition.y,l=c.CollectionUtil.last(t.StaffLines).PositionAndShape.RelativePosition.y+4;this.verticalLine=new r.GraphicalLine(new i.PointF2D(n,o),new i.PointF2D(n,o+l),.4,s.OutlineAndFillStyleEnum.SelectionSymbol);for(let s=0,r=t.StaffLines.length;s<r;++s){const e=t.StaffLines[s],r=new i.PointF2D(n,o+e.PositionAndShape.RelativePosition.y),a=new Array(7);a[0].x=r.x+4,a[0].y=r.y+2,a[1].x=r.x+2.5,a[1].y=r.y+.5,a[2].x=r.x+2.5,a[2].y=r.y+1.3,a[3].x=r.x+1,a[3].y=r.y+1.3,a[4].x=r.x+1,a[4].y=r.y+2.7,a[5].x=r.x+2.5,a[5].y=r.y+2.7,a[6].x=r.x+2.5,a[6].y=r.y+3.5,this.arrows.push(a)}this.boundingBox=new a.BoundingBox(this),this.boundingBox.AbsolutePosition=new i.PointF2D(n,o),this.boundingBox.BorderLeft=-.4,this.boundingBox.BorderRight=4,this.boundingBox.BorderBottom=l}}e.SelectionStartSymbol=l},function(t,e,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}),s=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||e.hasOwnProperty(n)||i(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),s(n(71),e),s(n(141),e),s(n(72),e),s(n(73),e),s(n(14),e),s(n(70),e),s(n(97),e),s(n(120),e),s(n(104),e),s(n(67),e),s(n(49),e),s(n(96),e),s(n(18),e),s(n(98),e),s(n(118),e),s(n(196),e),s(n(107),e),s(n(111),e),s(n(64),e),s(n(68),e)},function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.VexFlowSlur=e.CurvePositionEnum=void 0;const s=i(n(9));var r;!function(t){t[t.NEAR_HEAD=1]="NEAR_HEAD",t[t.NEAR_TOP=2]="NEAR_TOP"}(r=e.CurvePositionEnum||(e.CurvePositionEnum={}));class o{constructor(t){this.vfStartNote=void 0,this.vfEndNote=void 0,this.parentSlur=t}static createFromVexflowSlur(t){return new o(t.parentSlur)}get vfSlur(){return this.parentSlur}curve_Options(){return{cps:[{x:0,y:10},{x:0,y:10}],invert:!1,position:r.NEAR_TOP,position_end:r.NEAR_TOP,spacing:2,thickness:2,x_shift:0,y_shift:10}}createVexFlowCurve(){this.vfCurve=new s.default.Flow.Curve(this.vfStartNote,this.vfEndNote,void 0)}}e.VexFlowSlur=o},function(t,e,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}),s=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||e.hasOwnProperty(n)||i(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),s(n(34),e),s(n(198),e)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PSMath=void 0;class i{static log(t,e){return Math.log(e)/Math.log(t)}static log10(t){return i.log(10,t)}static meanSimple(t){let e=0;for(let n=0;n<t.length;n++)e+=t[n];return e/t.length}static meanWeighted(t,e){if(t.length!==e.length||0===t.length)return 0;let n=0,i=0;for(let s=0;s<t.length;s++){const r=e[s];n+=t[s]*r,i+=r}return n/i}}e.PSMath=i},function(t,e,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}),s=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||e.hasOwnProperty(n)||i(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),s(n(0),e),s(n(2),e),s(n(56),e),s(n(200),e)},function(t,e,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}),s=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||e.hasOwnProperty(n)||i(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),s(n(142),e),s(n(59),e)}])}))},"29b0":function(t,e){},"29dd":function(t,e){},"29f8":function(t,e){},"2a31":function(t,e){},"2a42":function(t,e){},"2ab2":function(t,e){},"2aba":function(t,e,n){var i=n("7726"),s=n("32e9"),r=n("69a8"),o=n("ca5a")("src"),a=n("fa5b"),c="toString",l=(""+a).split(c);n("8378").inspectSource=function(t){return a.call(t)},(t.exports=function(t,e,n,a){var c="function"==typeof n;c&&(r(n,"name")||s(n,"name",e)),t[e]!==n&&(c&&(r(n,o)||s(n,o,t[e]?""+t[e]:l.join(String(e)))),t===i?t[e]=n:a?t[e]?t[e]=n:s(t,e,n):(delete t[e],s(t,e,n)))})(Function.prototype,c,(function(){return"function"==typeof this&&this[o]||a.call(this)}))},"2aeb":function(t,e,n){var i=n("cb7c"),s=n("1495"),r=n("e11e"),o=n("613b")("IE_PROTO"),a=function(){},c="prototype",l=function(){var t,e=n("230e")("iframe"),i=r.length,s="<",o=">";e.style.display="none",n("fab2").appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(s+"script"+o+"document.F=Object"+s+"/script"+o),t.close(),l=t.F;while(i--)delete l[c][r[i]];return l()};t.exports=Object.create||function(t,e){var n;return null!==t?(a[c]=i(t),n=new a,a[c]=null,n[o]=t):n=l(),void 0===e?n:s(n,e)}},"2af5":function(t,e){},"2b0e":function(t,e,n){"use strict";n.r(e),function(t){
- /*!
- * Vue.js v2.6.11
- * (c) 2014-2019 Evan You
- * Released under the MIT License.
- */
- var n=Object.freeze({});function i(t){return void 0===t||null===t}function s(t){return void 0!==t&&null!==t}function r(t){return!0===t}function o(t){return!1===t}function a(t){return"string"===typeof t||"number"===typeof t||"symbol"===typeof t||"boolean"===typeof t}function c(t){return null!==t&&"object"===typeof t}var l=Object.prototype.toString;function u(t){return"[object Object]"===l.call(t)}function h(t){return"[object RegExp]"===l.call(t)}function d(t){var e=parseFloat(String(t));return e>=0&&Math.floor(e)===e&&isFinite(t)}function f(t){return s(t)&&"function"===typeof t.then&&"function"===typeof t.catch}function p(t){return null==t?"":Array.isArray(t)||u(t)&&t.toString===l?JSON.stringify(t,null,2):String(t)}function m(t){var e=parseFloat(t);return isNaN(e)?t:e}function g(t,e){for(var n=Object.create(null),i=t.split(","),s=0;s<i.length;s++)n[i[s]]=!0;return e?function(t){return n[t.toLowerCase()]}:function(t){return n[t]}}g("slot,component",!0);var b=g("key,ref,slot,slot-scope,is");function v(t,e){if(t.length){var n=t.indexOf(e);if(n>-1)return t.splice(n,1)}}var y=Object.prototype.hasOwnProperty;function S(t,e){return y.call(t,e)}function x(t){var e=Object.create(null);return function(n){var i=e[n];return i||(e[n]=t(n))}}var _=/-(\w)/g,w=x((function(t){return t.replace(_,(function(t,e){return e?e.toUpperCase():""}))})),E=x((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})),T=/\B([A-Z])/g,C=x((function(t){return t.replace(T,"-$1").toLowerCase()}));function M(t,e){function n(n){var i=arguments.length;return i?i>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n}function P(t,e){return t.bind(e)}var A=Function.prototype.bind?P:M;function I(t,e){e=e||0;var n=t.length-e,i=new Array(n);while(n--)i[n]=t[n+e];return i}function L(t,e){for(var n in e)t[n]=e[n];return t}function O(t){for(var e={},n=0;n<t.length;n++)t[n]&&L(e,t[n]);return e}function k(t,e,n){}var R=function(t,e,n){return!1},N=function(t){return t};function D(t,e){if(t===e)return!0;var n=c(t),i=c(e);if(!n||!i)return!n&&!i&&String(t)===String(e);try{var s=Array.isArray(t),r=Array.isArray(e);if(s&&r)return t.length===e.length&&t.every((function(t,n){return D(t,e[n])}));if(t instanceof Date&&e instanceof Date)return t.getTime()===e.getTime();if(s||r)return!1;var o=Object.keys(t),a=Object.keys(e);return o.length===a.length&&o.every((function(n){return D(t[n],e[n])}))}catch(l){return!1}}function V(t,e){for(var n=0;n<t.length;n++)if(D(t[n],e))return n;return-1}function B(t){var e=!1;return function(){e||(e=!0,t.apply(this,arguments))}}var F="data-server-rendered",j=["component","directive","filter"],G=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],W={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:R,isReservedAttr:R,isUnknownElement:R,getTagNamespace:k,parsePlatformTagName:N,mustUseProp:R,async:!0,_lifecycleHooks:G},$=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function z(t){var e=(t+"").charCodeAt(0);return 36===e||95===e}function H(t,e,n,i){Object.defineProperty(t,e,{value:n,enumerable:!!i,writable:!0,configurable:!0})}var U=new RegExp("[^"+$.source+".$_\\d]");function Y(t){if(!U.test(t)){var e=t.split(".");return function(t){for(var n=0;n<e.length;n++){if(!t)return;t=t[e[n]]}return t}}}var X,K="__proto__"in{},q="undefined"!==typeof window,Z="undefined"!==typeof WXEnvironment&&!!WXEnvironment.platform,J=Z&&WXEnvironment.platform.toLowerCase(),Q=q&&window.navigator.userAgent.toLowerCase(),tt=Q&&/msie|trident/.test(Q),et=Q&&Q.indexOf("msie 9.0")>0,nt=Q&&Q.indexOf("edge/")>0,it=(Q&&Q.indexOf("android"),Q&&/iphone|ipad|ipod|ios/.test(Q)||"ios"===J),st=(Q&&/chrome\/\d+/.test(Q),Q&&/phantomjs/.test(Q),Q&&Q.match(/firefox\/(\d+)/)),rt={}.watch,ot=!1;if(q)try{var at={};Object.defineProperty(at,"passive",{get:function(){ot=!0}}),window.addEventListener("test-passive",null,at)}catch(wo){}var ct=function(){return void 0===X&&(X=!q&&!Z&&"undefined"!==typeof t&&(t["process"]&&"server"===t["process"].env.VUE_ENV)),X},lt=q&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ut(t){return"function"===typeof t&&/native code/.test(t.toString())}var ht,dt="undefined"!==typeof Symbol&&ut(Symbol)&&"undefined"!==typeof Reflect&&ut(Reflect.ownKeys);ht="undefined"!==typeof Set&&ut(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var ft=k,pt=0,mt=function(){this.id=pt++,this.subs=[]};mt.prototype.addSub=function(t){this.subs.push(t)},mt.prototype.removeSub=function(t){v(this.subs,t)},mt.prototype.depend=function(){mt.target&&mt.target.addDep(this)},mt.prototype.notify=function(){var t=this.subs.slice();for(var e=0,n=t.length;e<n;e++)t[e].update()},mt.target=null;var gt=[];function bt(t){gt.push(t),mt.target=t}function vt(){gt.pop(),mt.target=gt[gt.length-1]}var yt=function(t,e,n,i,s,r,o,a){this.tag=t,this.data=e,this.children=n,this.text=i,this.elm=s,this.ns=void 0,this.context=r,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=e&&e.key,this.componentOptions=o,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=a,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1},St={child:{configurable:!0}};St.child.get=function(){return this.componentInstance},Object.defineProperties(yt.prototype,St);var xt=function(t){void 0===t&&(t="");var e=new yt;return e.text=t,e.isComment=!0,e};function _t(t){return new yt(void 0,void 0,void 0,String(t))}function wt(t){var e=new yt(t.tag,t.data,t.children&&t.children.slice(),t.text,t.elm,t.context,t.componentOptions,t.asyncFactory);return e.ns=t.ns,e.isStatic=t.isStatic,e.key=t.key,e.isComment=t.isComment,e.fnContext=t.fnContext,e.fnOptions=t.fnOptions,e.fnScopeId=t.fnScopeId,e.asyncMeta=t.asyncMeta,e.isCloned=!0,e}var Et=Array.prototype,Tt=Object.create(Et),Ct=["push","pop","shift","unshift","splice","sort","reverse"];Ct.forEach((function(t){var e=Et[t];H(Tt,t,(function(){var n=[],i=arguments.length;while(i--)n[i]=arguments[i];var s,r=e.apply(this,n),o=this.__ob__;switch(t){case"push":case"unshift":s=n;break;case"splice":s=n.slice(2);break}return s&&o.observeArray(s),o.dep.notify(),r}))}));var Mt=Object.getOwnPropertyNames(Tt),Pt=!0;function At(t){Pt=t}var It=function(t){this.value=t,this.dep=new mt,this.vmCount=0,H(t,"__ob__",this),Array.isArray(t)?(K?Lt(t,Tt):Ot(t,Tt,Mt),this.observeArray(t)):this.walk(t)};function Lt(t,e){t.__proto__=e}function Ot(t,e,n){for(var i=0,s=n.length;i<s;i++){var r=n[i];H(t,r,e[r])}}function kt(t,e){var n;if(c(t)&&!(t instanceof yt))return S(t,"__ob__")&&t.__ob__ instanceof It?n=t.__ob__:Pt&&!ct()&&(Array.isArray(t)||u(t))&&Object.isExtensible(t)&&!t._isVue&&(n=new It(t)),e&&n&&n.vmCount++,n}function Rt(t,e,n,i,s){var r=new mt,o=Object.getOwnPropertyDescriptor(t,e);if(!o||!1!==o.configurable){var a=o&&o.get,c=o&&o.set;a&&!c||2!==arguments.length||(n=t[e]);var l=!s&&kt(n);Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){var e=a?a.call(t):n;return mt.target&&(r.depend(),l&&(l.dep.depend(),Array.isArray(e)&&Vt(e))),e},set:function(e){var i=a?a.call(t):n;e===i||e!==e&&i!==i||a&&!c||(c?c.call(t,e):n=e,l=!s&&kt(e),r.notify())}})}}function Nt(t,e,n){if(Array.isArray(t)&&d(e))return t.length=Math.max(t.length,e),t.splice(e,1,n),n;if(e in t&&!(e in Object.prototype))return t[e]=n,n;var i=t.__ob__;return t._isVue||i&&i.vmCount?n:i?(Rt(i.value,e,n),i.dep.notify(),n):(t[e]=n,n)}function Dt(t,e){if(Array.isArray(t)&&d(e))t.splice(e,1);else{var n=t.__ob__;t._isVue||n&&n.vmCount||S(t,e)&&(delete t[e],n&&n.dep.notify())}}function Vt(t){for(var e=void 0,n=0,i=t.length;n<i;n++)e=t[n],e&&e.__ob__&&e.__ob__.dep.depend(),Array.isArray(e)&&Vt(e)}It.prototype.walk=function(t){for(var e=Object.keys(t),n=0;n<e.length;n++)Rt(t,e[n])},It.prototype.observeArray=function(t){for(var e=0,n=t.length;e<n;e++)kt(t[e])};var Bt=W.optionMergeStrategies;function Ft(t,e){if(!e)return t;for(var n,i,s,r=dt?Reflect.ownKeys(e):Object.keys(e),o=0;o<r.length;o++)n=r[o],"__ob__"!==n&&(i=t[n],s=e[n],S(t,n)?i!==s&&u(i)&&u(s)&&Ft(i,s):Nt(t,n,s));return t}function jt(t,e,n){return n?function(){var i="function"===typeof e?e.call(n,n):e,s="function"===typeof t?t.call(n,n):t;return i?Ft(i,s):s}:e?t?function(){return Ft("function"===typeof e?e.call(this,this):e,"function"===typeof t?t.call(this,this):t)}:e:t}function Gt(t,e){var n=e?t?t.concat(e):Array.isArray(e)?e:[e]:t;return n?Wt(n):n}function Wt(t){for(var e=[],n=0;n<t.length;n++)-1===e.indexOf(t[n])&&e.push(t[n]);return e}function $t(t,e,n,i){var s=Object.create(t||null);return e?L(s,e):s}Bt.data=function(t,e,n){return n?jt(t,e,n):e&&"function"!==typeof e?t:jt(t,e)},G.forEach((function(t){Bt[t]=Gt})),j.forEach((function(t){Bt[t+"s"]=$t})),Bt.watch=function(t,e,n,i){if(t===rt&&(t=void 0),e===rt&&(e=void 0),!e)return Object.create(t||null);if(!t)return e;var s={};for(var r in L(s,t),e){var o=s[r],a=e[r];o&&!Array.isArray(o)&&(o=[o]),s[r]=o?o.concat(a):Array.isArray(a)?a:[a]}return s},Bt.props=Bt.methods=Bt.inject=Bt.computed=function(t,e,n,i){if(!t)return e;var s=Object.create(null);return L(s,t),e&&L(s,e),s},Bt.provide=jt;var zt=function(t,e){return void 0===e?t:e};function Ht(t,e){var n=t.props;if(n){var i,s,r,o={};if(Array.isArray(n)){i=n.length;while(i--)s=n[i],"string"===typeof s&&(r=w(s),o[r]={type:null})}else if(u(n))for(var a in n)s=n[a],r=w(a),o[r]=u(s)?s:{type:s};else 0;t.props=o}}function Ut(t,e){var n=t.inject;if(n){var i=t.inject={};if(Array.isArray(n))for(var s=0;s<n.length;s++)i[n[s]]={from:n[s]};else if(u(n))for(var r in n){var o=n[r];i[r]=u(o)?L({from:r},o):{from:o}}else 0}}function Yt(t){var e=t.directives;if(e)for(var n in e){var i=e[n];"function"===typeof i&&(e[n]={bind:i,update:i})}}function Xt(t,e,n){if("function"===typeof e&&(e=e.options),Ht(e,n),Ut(e,n),Yt(e),!e._base&&(e.extends&&(t=Xt(t,e.extends,n)),e.mixins))for(var i=0,s=e.mixins.length;i<s;i++)t=Xt(t,e.mixins[i],n);var r,o={};for(r in t)a(r);for(r in e)S(t,r)||a(r);function a(i){var s=Bt[i]||zt;o[i]=s(t[i],e[i],n,i)}return o}function Kt(t,e,n,i){if("string"===typeof n){var s=t[e];if(S(s,n))return s[n];var r=w(n);if(S(s,r))return s[r];var o=E(r);if(S(s,o))return s[o];var a=s[n]||s[r]||s[o];return a}}function qt(t,e,n,i){var s=e[t],r=!S(n,t),o=n[t],a=te(Boolean,s.type);if(a>-1)if(r&&!S(s,"default"))o=!1;else if(""===o||o===C(t)){var c=te(String,s.type);(c<0||a<c)&&(o=!0)}if(void 0===o){o=Zt(i,s,t);var l=Pt;At(!0),kt(o),At(l)}return o}function Zt(t,e,n){if(S(e,"default")){var i=e.default;return t&&t.$options.propsData&&void 0===t.$options.propsData[n]&&void 0!==t._props[n]?t._props[n]:"function"===typeof i&&"Function"!==Jt(e.type)?i.call(t):i}}function Jt(t){var e=t&&t.toString().match(/^\s*function (\w+)/);return e?e[1]:""}function Qt(t,e){return Jt(t)===Jt(e)}function te(t,e){if(!Array.isArray(e))return Qt(e,t)?0:-1;for(var n=0,i=e.length;n<i;n++)if(Qt(e[n],t))return n;return-1}function ee(t,e,n){bt();try{if(e){var i=e;while(i=i.$parent){var s=i.$options.errorCaptured;if(s)for(var r=0;r<s.length;r++)try{var o=!1===s[r].call(i,t,e,n);if(o)return}catch(wo){ie(wo,i,"errorCaptured hook")}}}ie(t,e,n)}finally{vt()}}function ne(t,e,n,i,s){var r;try{r=n?t.apply(e,n):t.call(e),r&&!r._isVue&&f(r)&&!r._handled&&(r.catch((function(t){return ee(t,i,s+" (Promise/async)")})),r._handled=!0)}catch(wo){ee(wo,i,s)}return r}function ie(t,e,n){if(W.errorHandler)try{return W.errorHandler.call(null,t,e,n)}catch(wo){wo!==t&&se(wo,null,"config.errorHandler")}se(t,e,n)}function se(t,e,n){if(!q&&!Z||"undefined"===typeof console)throw t;console.error(t)}var re,oe=!1,ae=[],ce=!1;function le(){ce=!1;var t=ae.slice(0);ae.length=0;for(var e=0;e<t.length;e++)t[e]()}if("undefined"!==typeof Promise&&ut(Promise)){var ue=Promise.resolve();re=function(){ue.then(le),it&&setTimeout(k)},oe=!0}else if(tt||"undefined"===typeof MutationObserver||!ut(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())re="undefined"!==typeof setImmediate&&ut(setImmediate)?function(){setImmediate(le)}:function(){setTimeout(le,0)};else{var he=1,de=new MutationObserver(le),fe=document.createTextNode(String(he));de.observe(fe,{characterData:!0}),re=function(){he=(he+1)%2,fe.data=String(he)},oe=!0}function pe(t,e){var n;if(ae.push((function(){if(t)try{t.call(e)}catch(wo){ee(wo,e,"nextTick")}else n&&n(e)})),ce||(ce=!0,re()),!t&&"undefined"!==typeof Promise)return new Promise((function(t){n=t}))}var me=new ht;function ge(t){be(t,me),me.clear()}function be(t,e){var n,i,s=Array.isArray(t);if(!(!s&&!c(t)||Object.isFrozen(t)||t instanceof yt)){if(t.__ob__){var r=t.__ob__.dep.id;if(e.has(r))return;e.add(r)}if(s){n=t.length;while(n--)be(t[n],e)}else{i=Object.keys(t),n=i.length;while(n--)be(t[i[n]],e)}}}var ve=x((function(t){var e="&"===t.charAt(0);t=e?t.slice(1):t;var n="~"===t.charAt(0);t=n?t.slice(1):t;var i="!"===t.charAt(0);return t=i?t.slice(1):t,{name:t,once:n,capture:i,passive:e}}));function ye(t,e){function n(){var t=arguments,i=n.fns;if(!Array.isArray(i))return ne(i,null,arguments,e,"v-on handler");for(var s=i.slice(),r=0;r<s.length;r++)ne(s[r],null,t,e,"v-on handler")}return n.fns=t,n}function Se(t,e,n,s,o,a){var c,l,u,h;for(c in t)l=t[c],u=e[c],h=ve(c),i(l)||(i(u)?(i(l.fns)&&(l=t[c]=ye(l,a)),r(h.once)&&(l=t[c]=o(h.name,l,h.capture)),n(h.name,l,h.capture,h.passive,h.params)):l!==u&&(u.fns=l,t[c]=u));for(c in e)i(t[c])&&(h=ve(c),s(h.name,e[c],h.capture))}function xe(t,e,n){var o;t instanceof yt&&(t=t.data.hook||(t.data.hook={}));var a=t[e];function c(){n.apply(this,arguments),v(o.fns,c)}i(a)?o=ye([c]):s(a.fns)&&r(a.merged)?(o=a,o.fns.push(c)):o=ye([a,c]),o.merged=!0,t[e]=o}function _e(t,e,n){var r=e.options.props;if(!i(r)){var o={},a=t.attrs,c=t.props;if(s(a)||s(c))for(var l in r){var u=C(l);we(o,c,l,u,!0)||we(o,a,l,u,!1)}return o}}function we(t,e,n,i,r){if(s(e)){if(S(e,n))return t[n]=e[n],r||delete e[n],!0;if(S(e,i))return t[n]=e[i],r||delete e[i],!0}return!1}function Ee(t){for(var e=0;e<t.length;e++)if(Array.isArray(t[e]))return Array.prototype.concat.apply([],t);return t}function Te(t){return a(t)?[_t(t)]:Array.isArray(t)?Me(t):void 0}function Ce(t){return s(t)&&s(t.text)&&o(t.isComment)}function Me(t,e){var n,o,c,l,u=[];for(n=0;n<t.length;n++)o=t[n],i(o)||"boolean"===typeof o||(c=u.length-1,l=u[c],Array.isArray(o)?o.length>0&&(o=Me(o,(e||"")+"_"+n),Ce(o[0])&&Ce(l)&&(u[c]=_t(l.text+o[0].text),o.shift()),u.push.apply(u,o)):a(o)?Ce(l)?u[c]=_t(l.text+o):""!==o&&u.push(_t(o)):Ce(o)&&Ce(l)?u[c]=_t(l.text+o.text):(r(t._isVList)&&s(o.tag)&&i(o.key)&&s(e)&&(o.key="__vlist"+e+"_"+n+"__"),u.push(o)));return u}function Pe(t){var e=t.$options.provide;e&&(t._provided="function"===typeof e?e.call(t):e)}function Ae(t){var e=Ie(t.$options.inject,t);e&&(At(!1),Object.keys(e).forEach((function(n){Rt(t,n,e[n])})),At(!0))}function Ie(t,e){if(t){for(var n=Object.create(null),i=dt?Reflect.ownKeys(t):Object.keys(t),s=0;s<i.length;s++){var r=i[s];if("__ob__"!==r){var o=t[r].from,a=e;while(a){if(a._provided&&S(a._provided,o)){n[r]=a._provided[o];break}a=a.$parent}if(!a)if("default"in t[r]){var c=t[r].default;n[r]="function"===typeof c?c.call(e):c}else 0}}return n}}function Le(t,e){if(!t||!t.length)return{};for(var n={},i=0,s=t.length;i<s;i++){var r=t[i],o=r.data;if(o&&o.attrs&&o.attrs.slot&&delete o.attrs.slot,r.context!==e&&r.fnContext!==e||!o||null==o.slot)(n.default||(n.default=[])).push(r);else{var a=o.slot,c=n[a]||(n[a]=[]);"template"===r.tag?c.push.apply(c,r.children||[]):c.push(r)}}for(var l in n)n[l].every(Oe)&&delete n[l];return n}function Oe(t){return t.isComment&&!t.asyncFactory||" "===t.text}function ke(t,e,i){var s,r=Object.keys(e).length>0,o=t?!!t.$stable:!r,a=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(o&&i&&i!==n&&a===i.$key&&!r&&!i.$hasNormal)return i;for(var c in s={},t)t[c]&&"$"!==c[0]&&(s[c]=Re(e,c,t[c]))}else s={};for(var l in e)l in s||(s[l]=Ne(e,l));return t&&Object.isExtensible(t)&&(t._normalized=s),H(s,"$stable",o),H(s,"$key",a),H(s,"$hasNormal",r),s}function Re(t,e,n){var i=function(){var t=arguments.length?n.apply(null,arguments):n({});return t=t&&"object"===typeof t&&!Array.isArray(t)?[t]:Te(t),t&&(0===t.length||1===t.length&&t[0].isComment)?void 0:t};return n.proxy&&Object.defineProperty(t,e,{get:i,enumerable:!0,configurable:!0}),i}function Ne(t,e){return function(){return t[e]}}function De(t,e){var n,i,r,o,a;if(Array.isArray(t)||"string"===typeof t)for(n=new Array(t.length),i=0,r=t.length;i<r;i++)n[i]=e(t[i],i);else if("number"===typeof t)for(n=new Array(t),i=0;i<t;i++)n[i]=e(i+1,i);else if(c(t))if(dt&&t[Symbol.iterator]){n=[];var l=t[Symbol.iterator](),u=l.next();while(!u.done)n.push(e(u.value,n.length)),u=l.next()}else for(o=Object.keys(t),n=new Array(o.length),i=0,r=o.length;i<r;i++)a=o[i],n[i]=e(t[a],a,i);return s(n)||(n=[]),n._isVList=!0,n}function Ve(t,e,n,i){var s,r=this.$scopedSlots[t];r?(n=n||{},i&&(n=L(L({},i),n)),s=r(n)||e):s=this.$slots[t]||e;var o=n&&n.slot;return o?this.$createElement("template",{slot:o},s):s}function Be(t){return Kt(this.$options,"filters",t,!0)||N}function Fe(t,e){return Array.isArray(t)?-1===t.indexOf(e):t!==e}function je(t,e,n,i,s){var r=W.keyCodes[e]||n;return s&&i&&!W.keyCodes[e]?Fe(s,i):r?Fe(r,t):i?C(i)!==e:void 0}function Ge(t,e,n,i,s){if(n)if(c(n)){var r;Array.isArray(n)&&(n=O(n));var o=function(o){if("class"===o||"style"===o||b(o))r=t;else{var a=t.attrs&&t.attrs.type;r=i||W.mustUseProp(e,a,o)?t.domProps||(t.domProps={}):t.attrs||(t.attrs={})}var c=w(o),l=C(o);if(!(c in r)&&!(l in r)&&(r[o]=n[o],s)){var u=t.on||(t.on={});u["update:"+o]=function(t){n[o]=t}}};for(var a in n)o(a)}else;return t}function We(t,e){var n=this._staticTrees||(this._staticTrees=[]),i=n[t];return i&&!e||(i=n[t]=this.$options.staticRenderFns[t].call(this._renderProxy,null,this),ze(i,"__static__"+t,!1)),i}function $e(t,e,n){return ze(t,"__once__"+e+(n?"_"+n:""),!0),t}function ze(t,e,n){if(Array.isArray(t))for(var i=0;i<t.length;i++)t[i]&&"string"!==typeof t[i]&&He(t[i],e+"_"+i,n);else He(t,e,n)}function He(t,e,n){t.isStatic=!0,t.key=e,t.isOnce=n}function Ue(t,e){if(e)if(u(e)){var n=t.on=t.on?L({},t.on):{};for(var i in e){var s=n[i],r=e[i];n[i]=s?[].concat(s,r):r}}else;return t}function Ye(t,e,n,i){e=e||{$stable:!n};for(var s=0;s<t.length;s++){var r=t[s];Array.isArray(r)?Ye(r,e,n):r&&(r.proxy&&(r.fn.proxy=!0),e[r.key]=r.fn)}return i&&(e.$key=i),e}function Xe(t,e){for(var n=0;n<e.length;n+=2){var i=e[n];"string"===typeof i&&i&&(t[e[n]]=e[n+1])}return t}function Ke(t,e){return"string"===typeof t?e+t:t}function qe(t){t._o=$e,t._n=m,t._s=p,t._l=De,t._t=Ve,t._q=D,t._i=V,t._m=We,t._f=Be,t._k=je,t._b=Ge,t._v=_t,t._e=xt,t._u=Ye,t._g=Ue,t._d=Xe,t._p=Ke}function Ze(t,e,i,s,o){var a,c=this,l=o.options;S(s,"_uid")?(a=Object.create(s),a._original=s):(a=s,s=s._original);var u=r(l._compiled),h=!u;this.data=t,this.props=e,this.children=i,this.parent=s,this.listeners=t.on||n,this.injections=Ie(l.inject,s),this.slots=function(){return c.$slots||ke(t.scopedSlots,c.$slots=Le(i,s)),c.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return ke(t.scopedSlots,this.slots())}}),u&&(this.$options=l,this.$slots=this.slots(),this.$scopedSlots=ke(t.scopedSlots,this.$slots)),l._scopeId?this._c=function(t,e,n,i){var r=hn(a,t,e,n,i,h);return r&&!Array.isArray(r)&&(r.fnScopeId=l._scopeId,r.fnContext=s),r}:this._c=function(t,e,n,i){return hn(a,t,e,n,i,h)}}function Je(t,e,i,r,o){var a=t.options,c={},l=a.props;if(s(l))for(var u in l)c[u]=qt(u,l,e||n);else s(i.attrs)&&tn(c,i.attrs),s(i.props)&&tn(c,i.props);var h=new Ze(i,c,o,r,t),d=a.render.call(null,h._c,h);if(d instanceof yt)return Qe(d,i,h.parent,a,h);if(Array.isArray(d)){for(var f=Te(d)||[],p=new Array(f.length),m=0;m<f.length;m++)p[m]=Qe(f[m],i,h.parent,a,h);return p}}function Qe(t,e,n,i,s){var r=wt(t);return r.fnContext=n,r.fnOptions=i,e.slot&&((r.data||(r.data={})).slot=e.slot),r}function tn(t,e){for(var n in e)t[w(n)]=e[n]}qe(Ze.prototype);var en={init:function(t,e){if(t.componentInstance&&!t.componentInstance._isDestroyed&&t.data.keepAlive){var n=t;en.prepatch(n,n)}else{var i=t.componentInstance=rn(t,In);i.$mount(e?t.elm:void 0,e)}},prepatch:function(t,e){var n=e.componentOptions,i=e.componentInstance=t.componentInstance;Nn(i,n.propsData,n.listeners,e,n.children)},insert:function(t){var e=t.context,n=t.componentInstance;n._isMounted||(n._isMounted=!0,Fn(n,"mounted")),t.data.keepAlive&&(e._isMounted?Jn(n):Vn(n,!0))},destroy:function(t){var e=t.componentInstance;e._isDestroyed||(t.data.keepAlive?Bn(e,!0):e.$destroy())}},nn=Object.keys(en);function sn(t,e,n,o,a){if(!i(t)){var l=n.$options._base;if(c(t)&&(t=l.extend(t)),"function"===typeof t){var u;if(i(t.cid)&&(u=t,t=xn(u,l),void 0===t))return Sn(u,e,n,o,a);e=e||{},xi(t),s(e.model)&&cn(t.options,e);var h=_e(e,t,a);if(r(t.options.functional))return Je(t,h,e,n,o);var d=e.on;if(e.on=e.nativeOn,r(t.options.abstract)){var f=e.slot;e={},f&&(e.slot=f)}on(e);var p=t.options.name||a,m=new yt("vue-component-"+t.cid+(p?"-"+p:""),e,void 0,void 0,void 0,n,{Ctor:t,propsData:h,listeners:d,tag:a,children:o},u);return m}}}function rn(t,e){var n={_isComponent:!0,_parentVnode:t,parent:e},i=t.data.inlineTemplate;return s(i)&&(n.render=i.render,n.staticRenderFns=i.staticRenderFns),new t.componentOptions.Ctor(n)}function on(t){for(var e=t.hook||(t.hook={}),n=0;n<nn.length;n++){var i=nn[n],s=e[i],r=en[i];s===r||s&&s._merged||(e[i]=s?an(r,s):r)}}function an(t,e){var n=function(n,i){t(n,i),e(n,i)};return n._merged=!0,n}function cn(t,e){var n=t.model&&t.model.prop||"value",i=t.model&&t.model.event||"input";(e.attrs||(e.attrs={}))[n]=e.model.value;var r=e.on||(e.on={}),o=r[i],a=e.model.callback;s(o)?(Array.isArray(o)?-1===o.indexOf(a):o!==a)&&(r[i]=[a].concat(o)):r[i]=a}var ln=1,un=2;function hn(t,e,n,i,s,o){return(Array.isArray(n)||a(n))&&(s=i,i=n,n=void 0),r(o)&&(s=un),dn(t,e,n,i,s)}function dn(t,e,n,i,r){if(s(n)&&s(n.__ob__))return xt();if(s(n)&&s(n.is)&&(e=n.is),!e)return xt();var o,a,c;(Array.isArray(i)&&"function"===typeof i[0]&&(n=n||{},n.scopedSlots={default:i[0]},i.length=0),r===un?i=Te(i):r===ln&&(i=Ee(i)),"string"===typeof e)?(a=t.$vnode&&t.$vnode.ns||W.getTagNamespace(e),o=W.isReservedTag(e)?new yt(W.parsePlatformTagName(e),n,i,void 0,void 0,t):n&&n.pre||!s(c=Kt(t.$options,"components",e))?new yt(e,n,i,void 0,void 0,t):sn(c,n,t,i,e)):o=sn(e,n,t,i);return Array.isArray(o)?o:s(o)?(s(a)&&fn(o,a),s(n)&&pn(n),o):xt()}function fn(t,e,n){if(t.ns=e,"foreignObject"===t.tag&&(e=void 0,n=!0),s(t.children))for(var o=0,a=t.children.length;o<a;o++){var c=t.children[o];s(c.tag)&&(i(c.ns)||r(n)&&"svg"!==c.tag)&&fn(c,e,n)}}function pn(t){c(t.style)&&ge(t.style),c(t.class)&&ge(t.class)}function mn(t){t._vnode=null,t._staticTrees=null;var e=t.$options,i=t.$vnode=e._parentVnode,s=i&&i.context;t.$slots=Le(e._renderChildren,s),t.$scopedSlots=n,t._c=function(e,n,i,s){return hn(t,e,n,i,s,!1)},t.$createElement=function(e,n,i,s){return hn(t,e,n,i,s,!0)};var r=i&&i.data;Rt(t,"$attrs",r&&r.attrs||n,null,!0),Rt(t,"$listeners",e._parentListeners||n,null,!0)}var gn,bn=null;function vn(t){qe(t.prototype),t.prototype.$nextTick=function(t){return pe(t,this)},t.prototype._render=function(){var t,e=this,n=e.$options,i=n.render,s=n._parentVnode;s&&(e.$scopedSlots=ke(s.data.scopedSlots,e.$slots,e.$scopedSlots)),e.$vnode=s;try{bn=e,t=i.call(e._renderProxy,e.$createElement)}catch(wo){ee(wo,e,"render"),t=e._vnode}finally{bn=null}return Array.isArray(t)&&1===t.length&&(t=t[0]),t instanceof yt||(t=xt()),t.parent=s,t}}function yn(t,e){return(t.__esModule||dt&&"Module"===t[Symbol.toStringTag])&&(t=t.default),c(t)?e.extend(t):t}function Sn(t,e,n,i,s){var r=xt();return r.asyncFactory=t,r.asyncMeta={data:e,context:n,children:i,tag:s},r}function xn(t,e){if(r(t.error)&&s(t.errorComp))return t.errorComp;if(s(t.resolved))return t.resolved;var n=bn;if(n&&s(t.owners)&&-1===t.owners.indexOf(n)&&t.owners.push(n),r(t.loading)&&s(t.loadingComp))return t.loadingComp;if(n&&!s(t.owners)){var o=t.owners=[n],a=!0,l=null,u=null;n.$on("hook:destroyed",(function(){return v(o,n)}));var h=function(t){for(var e=0,n=o.length;e<n;e++)o[e].$forceUpdate();t&&(o.length=0,null!==l&&(clearTimeout(l),l=null),null!==u&&(clearTimeout(u),u=null))},d=B((function(n){t.resolved=yn(n,e),a?o.length=0:h(!0)})),p=B((function(e){s(t.errorComp)&&(t.error=!0,h(!0))})),m=t(d,p);return c(m)&&(f(m)?i(t.resolved)&&m.then(d,p):f(m.component)&&(m.component.then(d,p),s(m.error)&&(t.errorComp=yn(m.error,e)),s(m.loading)&&(t.loadingComp=yn(m.loading,e),0===m.delay?t.loading=!0:l=setTimeout((function(){l=null,i(t.resolved)&&i(t.error)&&(t.loading=!0,h(!1))}),m.delay||200)),s(m.timeout)&&(u=setTimeout((function(){u=null,i(t.resolved)&&p(null)}),m.timeout)))),a=!1,t.loading?t.loadingComp:t.resolved}}function _n(t){return t.isComment&&t.asyncFactory}function wn(t){if(Array.isArray(t))for(var e=0;e<t.length;e++){var n=t[e];if(s(n)&&(s(n.componentOptions)||_n(n)))return n}}function En(t){t._events=Object.create(null),t._hasHookEvent=!1;var e=t.$options._parentListeners;e&&Pn(t,e)}function Tn(t,e){gn.$on(t,e)}function Cn(t,e){gn.$off(t,e)}function Mn(t,e){var n=gn;return function i(){var s=e.apply(null,arguments);null!==s&&n.$off(t,i)}}function Pn(t,e,n){gn=t,Se(e,n||{},Tn,Cn,Mn,t),gn=void 0}function An(t){var e=/^hook:/;t.prototype.$on=function(t,n){var i=this;if(Array.isArray(t))for(var s=0,r=t.length;s<r;s++)i.$on(t[s],n);else(i._events[t]||(i._events[t]=[])).push(n),e.test(t)&&(i._hasHookEvent=!0);return i},t.prototype.$once=function(t,e){var n=this;function i(){n.$off(t,i),e.apply(n,arguments)}return i.fn=e,n.$on(t,i),n},t.prototype.$off=function(t,e){var n=this;if(!arguments.length)return n._events=Object.create(null),n;if(Array.isArray(t)){for(var i=0,s=t.length;i<s;i++)n.$off(t[i],e);return n}var r,o=n._events[t];if(!o)return n;if(!e)return n._events[t]=null,n;var a=o.length;while(a--)if(r=o[a],r===e||r.fn===e){o.splice(a,1);break}return n},t.prototype.$emit=function(t){var e=this,n=e._events[t];if(n){n=n.length>1?I(n):n;for(var i=I(arguments,1),s='event handler for "'+t+'"',r=0,o=n.length;r<o;r++)ne(n[r],e,i,e,s)}return e}}var In=null;function Ln(t){var e=In;return In=t,function(){In=e}}function On(t){var e=t.$options,n=e.parent;if(n&&!e.abstract){while(n.$options.abstract&&n.$parent)n=n.$parent;n.$children.push(t)}t.$parent=n,t.$root=n?n.$root:t,t.$children=[],t.$refs={},t._watcher=null,t._inactive=null,t._directInactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}function kn(t){t.prototype._update=function(t,e){var n=this,i=n.$el,s=n._vnode,r=Ln(n);n._vnode=t,n.$el=s?n.__patch__(s,t):n.__patch__(n.$el,t,e,!1),r(),i&&(i.__vue__=null),n.$el&&(n.$el.__vue__=n),n.$vnode&&n.$parent&&n.$vnode===n.$parent._vnode&&(n.$parent.$el=n.$el)},t.prototype.$forceUpdate=function(){var t=this;t._watcher&&t._watcher.update()},t.prototype.$destroy=function(){var t=this;if(!t._isBeingDestroyed){Fn(t,"beforeDestroy"),t._isBeingDestroyed=!0;var e=t.$parent;!e||e._isBeingDestroyed||t.$options.abstract||v(e.$children,t),t._watcher&&t._watcher.teardown();var n=t._watchers.length;while(n--)t._watchers[n].teardown();t._data.__ob__&&t._data.__ob__.vmCount--,t._isDestroyed=!0,t.__patch__(t._vnode,null),Fn(t,"destroyed"),t.$off(),t.$el&&(t.$el.__vue__=null),t.$vnode&&(t.$vnode.parent=null)}}}function Rn(t,e,n){var i;return t.$el=e,t.$options.render||(t.$options.render=xt),Fn(t,"beforeMount"),i=function(){t._update(t._render(),n)},new ni(t,i,k,{before:function(){t._isMounted&&!t._isDestroyed&&Fn(t,"beforeUpdate")}},!0),n=!1,null==t.$vnode&&(t._isMounted=!0,Fn(t,"mounted")),t}function Nn(t,e,i,s,r){var o=s.data.scopedSlots,a=t.$scopedSlots,c=!!(o&&!o.$stable||a!==n&&!a.$stable||o&&t.$scopedSlots.$key!==o.$key),l=!!(r||t.$options._renderChildren||c);if(t.$options._parentVnode=s,t.$vnode=s,t._vnode&&(t._vnode.parent=s),t.$options._renderChildren=r,t.$attrs=s.data.attrs||n,t.$listeners=i||n,e&&t.$options.props){At(!1);for(var u=t._props,h=t.$options._propKeys||[],d=0;d<h.length;d++){var f=h[d],p=t.$options.props;u[f]=qt(f,p,e,t)}At(!0),t.$options.propsData=e}i=i||n;var m=t.$options._parentListeners;t.$options._parentListeners=i,Pn(t,i,m),l&&(t.$slots=Le(r,s.context),t.$forceUpdate())}function Dn(t){while(t&&(t=t.$parent))if(t._inactive)return!0;return!1}function Vn(t,e){if(e){if(t._directInactive=!1,Dn(t))return}else if(t._directInactive)return;if(t._inactive||null===t._inactive){t._inactive=!1;for(var n=0;n<t.$children.length;n++)Vn(t.$children[n]);Fn(t,"activated")}}function Bn(t,e){if((!e||(t._directInactive=!0,!Dn(t)))&&!t._inactive){t._inactive=!0;for(var n=0;n<t.$children.length;n++)Bn(t.$children[n]);Fn(t,"deactivated")}}function Fn(t,e){bt();var n=t.$options[e],i=e+" hook";if(n)for(var s=0,r=n.length;s<r;s++)ne(n[s],t,null,t,i);t._hasHookEvent&&t.$emit("hook:"+e),vt()}var jn=[],Gn=[],Wn={},$n=!1,zn=!1,Hn=0;function Un(){Hn=jn.length=Gn.length=0,Wn={},$n=zn=!1}var Yn=0,Xn=Date.now;if(q&&!tt){var Kn=window.performance;Kn&&"function"===typeof Kn.now&&Xn()>document.createEvent("Event").timeStamp&&(Xn=function(){return Kn.now()})}function qn(){var t,e;for(Yn=Xn(),zn=!0,jn.sort((function(t,e){return t.id-e.id})),Hn=0;Hn<jn.length;Hn++)t=jn[Hn],t.before&&t.before(),e=t.id,Wn[e]=null,t.run();var n=Gn.slice(),i=jn.slice();Un(),Qn(n),Zn(i),lt&&W.devtools&<.emit("flush")}function Zn(t){var e=t.length;while(e--){var n=t[e],i=n.vm;i._watcher===n&&i._isMounted&&!i._isDestroyed&&Fn(i,"updated")}}function Jn(t){t._inactive=!1,Gn.push(t)}function Qn(t){for(var e=0;e<t.length;e++)t[e]._inactive=!0,Vn(t[e],!0)}function ti(t){var e=t.id;if(null==Wn[e]){if(Wn[e]=!0,zn){var n=jn.length-1;while(n>Hn&&jn[n].id>t.id)n--;jn.splice(n+1,0,t)}else jn.push(t);$n||($n=!0,pe(qn))}}var ei=0,ni=function(t,e,n,i,s){this.vm=t,s&&(t._watcher=this),t._watchers.push(this),i?(this.deep=!!i.deep,this.user=!!i.user,this.lazy=!!i.lazy,this.sync=!!i.sync,this.before=i.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++ei,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new ht,this.newDepIds=new ht,this.expression="","function"===typeof e?this.getter=e:(this.getter=Y(e),this.getter||(this.getter=k)),this.value=this.lazy?void 0:this.get()};ni.prototype.get=function(){var t;bt(this);var e=this.vm;try{t=this.getter.call(e,e)}catch(wo){if(!this.user)throw wo;ee(wo,e,'getter for watcher "'+this.expression+'"')}finally{this.deep&&ge(t),vt(),this.cleanupDeps()}return t},ni.prototype.addDep=function(t){var e=t.id;this.newDepIds.has(e)||(this.newDepIds.add(e),this.newDeps.push(t),this.depIds.has(e)||t.addSub(this))},ni.prototype.cleanupDeps=function(){var t=this.deps.length;while(t--){var e=this.deps[t];this.newDepIds.has(e.id)||e.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},ni.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():ti(this)},ni.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||c(t)||this.deep){var e=this.value;if(this.value=t,this.user)try{this.cb.call(this.vm,t,e)}catch(wo){ee(wo,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,t,e)}}},ni.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},ni.prototype.depend=function(){var t=this.deps.length;while(t--)this.deps[t].depend()},ni.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||v(this.vm._watchers,this);var t=this.deps.length;while(t--)this.deps[t].removeSub(this);this.active=!1}};var ii={enumerable:!0,configurable:!0,get:k,set:k};function si(t,e,n){ii.get=function(){return this[e][n]},ii.set=function(t){this[e][n]=t},Object.defineProperty(t,n,ii)}function ri(t){t._watchers=[];var e=t.$options;e.props&&oi(t,e.props),e.methods&&pi(t,e.methods),e.data?ai(t):kt(t._data={},!0),e.computed&&ui(t,e.computed),e.watch&&e.watch!==rt&&mi(t,e.watch)}function oi(t,e){var n=t.$options.propsData||{},i=t._props={},s=t.$options._propKeys=[],r=!t.$parent;r||At(!1);var o=function(r){s.push(r);var o=qt(r,e,n,t);Rt(i,r,o),r in t||si(t,"_props",r)};for(var a in e)o(a);At(!0)}function ai(t){var e=t.$options.data;e=t._data="function"===typeof e?ci(e,t):e||{},u(e)||(e={});var n=Object.keys(e),i=t.$options.props,s=(t.$options.methods,n.length);while(s--){var r=n[s];0,i&&S(i,r)||z(r)||si(t,"_data",r)}kt(e,!0)}function ci(t,e){bt();try{return t.call(e,e)}catch(wo){return ee(wo,e,"data()"),{}}finally{vt()}}var li={lazy:!0};function ui(t,e){var n=t._computedWatchers=Object.create(null),i=ct();for(var s in e){var r=e[s],o="function"===typeof r?r:r.get;0,i||(n[s]=new ni(t,o||k,k,li)),s in t||hi(t,s,r)}}function hi(t,e,n){var i=!ct();"function"===typeof n?(ii.get=i?di(e):fi(n),ii.set=k):(ii.get=n.get?i&&!1!==n.cache?di(e):fi(n.get):k,ii.set=n.set||k),Object.defineProperty(t,e,ii)}function di(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),mt.target&&e.depend(),e.value}}function fi(t){return function(){return t.call(this,this)}}function pi(t,e){t.$options.props;for(var n in e)t[n]="function"!==typeof e[n]?k:A(e[n],t)}function mi(t,e){for(var n in e){var i=e[n];if(Array.isArray(i))for(var s=0;s<i.length;s++)gi(t,n,i[s]);else gi(t,n,i)}}function gi(t,e,n,i){return u(n)&&(i=n,n=n.handler),"string"===typeof n&&(n=t[n]),t.$watch(e,n,i)}function bi(t){var e={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(t.prototype,"$data",e),Object.defineProperty(t.prototype,"$props",n),t.prototype.$set=Nt,t.prototype.$delete=Dt,t.prototype.$watch=function(t,e,n){var i=this;if(u(e))return gi(i,t,e,n);n=n||{},n.user=!0;var s=new ni(i,t,e,n);if(n.immediate)try{e.call(i,s.value)}catch(r){ee(r,i,'callback for immediate watcher "'+s.expression+'"')}return function(){s.teardown()}}}var vi=0;function yi(t){t.prototype._init=function(t){var e=this;e._uid=vi++,e._isVue=!0,t&&t._isComponent?Si(e,t):e.$options=Xt(xi(e.constructor),t||{},e),e._renderProxy=e,e._self=e,On(e),En(e),mn(e),Fn(e,"beforeCreate"),Ae(e),ri(e),Pe(e),Fn(e,"created"),e.$options.el&&e.$mount(e.$options.el)}}function Si(t,e){var n=t.$options=Object.create(t.constructor.options),i=e._parentVnode;n.parent=e.parent,n._parentVnode=i;var s=i.componentOptions;n.propsData=s.propsData,n._parentListeners=s.listeners,n._renderChildren=s.children,n._componentTag=s.tag,e.render&&(n.render=e.render,n.staticRenderFns=e.staticRenderFns)}function xi(t){var e=t.options;if(t.super){var n=xi(t.super),i=t.superOptions;if(n!==i){t.superOptions=n;var s=_i(t);s&&L(t.extendOptions,s),e=t.options=Xt(n,t.extendOptions),e.name&&(e.components[e.name]=t)}}return e}function _i(t){var e,n=t.options,i=t.sealedOptions;for(var s in n)n[s]!==i[s]&&(e||(e={}),e[s]=n[s]);return e}function wi(t){this._init(t)}function Ei(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var n=I(arguments,1);return n.unshift(this),"function"===typeof t.install?t.install.apply(t,n):"function"===typeof t&&t.apply(null,n),e.push(t),this}}function Ti(t){t.mixin=function(t){return this.options=Xt(this.options,t),this}}function Ci(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var n=this,i=n.cid,s=t._Ctor||(t._Ctor={});if(s[i])return s[i];var r=t.name||n.options.name;var o=function(t){this._init(t)};return o.prototype=Object.create(n.prototype),o.prototype.constructor=o,o.cid=e++,o.options=Xt(n.options,t),o["super"]=n,o.options.props&&Mi(o),o.options.computed&&Pi(o),o.extend=n.extend,o.mixin=n.mixin,o.use=n.use,j.forEach((function(t){o[t]=n[t]})),r&&(o.options.components[r]=o),o.superOptions=n.options,o.extendOptions=t,o.sealedOptions=L({},o.options),s[i]=o,o}}function Mi(t){var e=t.options.props;for(var n in e)si(t.prototype,"_props",n)}function Pi(t){var e=t.options.computed;for(var n in e)hi(t.prototype,n,e[n])}function Ai(t){j.forEach((function(e){t[e]=function(t,n){return n?("component"===e&&u(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&"function"===typeof n&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}}))}function Ii(t){return t&&(t.Ctor.options.name||t.tag)}function Li(t,e){return Array.isArray(t)?t.indexOf(e)>-1:"string"===typeof t?t.split(",").indexOf(e)>-1:!!h(t)&&t.test(e)}function Oi(t,e){var n=t.cache,i=t.keys,s=t._vnode;for(var r in n){var o=n[r];if(o){var a=Ii(o.componentOptions);a&&!e(a)&&ki(n,r,i,s)}}}function ki(t,e,n,i){var s=t[e];!s||i&&s.tag===i.tag||s.componentInstance.$destroy(),t[e]=null,v(n,e)}yi(wi),bi(wi),An(wi),kn(wi),vn(wi);var Ri=[String,RegExp,Array],Ni={name:"keep-alive",abstract:!0,props:{include:Ri,exclude:Ri,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var t in this.cache)ki(this.cache,t,this.keys)},mounted:function(){var t=this;this.$watch("include",(function(e){Oi(t,(function(t){return Li(e,t)}))})),this.$watch("exclude",(function(e){Oi(t,(function(t){return!Li(e,t)}))}))},render:function(){var t=this.$slots.default,e=wn(t),n=e&&e.componentOptions;if(n){var i=Ii(n),s=this,r=s.include,o=s.exclude;if(r&&(!i||!Li(r,i))||o&&i&&Li(o,i))return e;var a=this,c=a.cache,l=a.keys,u=null==e.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):e.key;c[u]?(e.componentInstance=c[u].componentInstance,v(l,u),l.push(u)):(c[u]=e,l.push(u),this.max&&l.length>parseInt(this.max)&&ki(c,l[0],l,this._vnode)),e.data.keepAlive=!0}return e||t&&t[0]}},Di={KeepAlive:Ni};function Vi(t){var e={get:function(){return W}};Object.defineProperty(t,"config",e),t.util={warn:ft,extend:L,mergeOptions:Xt,defineReactive:Rt},t.set=Nt,t.delete=Dt,t.nextTick=pe,t.observable=function(t){return kt(t),t},t.options=Object.create(null),j.forEach((function(e){t.options[e+"s"]=Object.create(null)})),t.options._base=t,L(t.options.components,Di),Ei(t),Ti(t),Ci(t),Ai(t)}Vi(wi),Object.defineProperty(wi.prototype,"$isServer",{get:ct}),Object.defineProperty(wi.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(wi,"FunctionalRenderContext",{value:Ze}),wi.version="2.6.11";var Bi=g("style,class"),Fi=g("input,textarea,option,select,progress"),ji=function(t,e,n){return"value"===n&&Fi(t)&&"button"!==e||"selected"===n&&"option"===t||"checked"===n&&"input"===t||"muted"===n&&"video"===t},Gi=g("contenteditable,draggable,spellcheck"),Wi=g("events,caret,typing,plaintext-only"),$i=function(t,e){return Xi(e)||"false"===e?"false":"contenteditable"===t&&Wi(e)?e:"true"},zi=g("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),Hi="http://www.w3.org/1999/xlink",Ui=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},Yi=function(t){return Ui(t)?t.slice(6,t.length):""},Xi=function(t){return null==t||!1===t};function Ki(t){var e=t.data,n=t,i=t;while(s(i.componentInstance))i=i.componentInstance._vnode,i&&i.data&&(e=qi(i.data,e));while(s(n=n.parent))n&&n.data&&(e=qi(e,n.data));return Zi(e.staticClass,e.class)}function qi(t,e){return{staticClass:Ji(t.staticClass,e.staticClass),class:s(t.class)?[t.class,e.class]:e.class}}function Zi(t,e){return s(t)||s(e)?Ji(t,Qi(e)):""}function Ji(t,e){return t?e?t+" "+e:t:e||""}function Qi(t){return Array.isArray(t)?ts(t):c(t)?es(t):"string"===typeof t?t:""}function ts(t){for(var e,n="",i=0,r=t.length;i<r;i++)s(e=Qi(t[i]))&&""!==e&&(n&&(n+=" "),n+=e);return n}function es(t){var e="";for(var n in t)t[n]&&(e&&(e+=" "),e+=n);return e}var ns={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},is=g("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),ss=g("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),rs=function(t){return is(t)||ss(t)};function os(t){return ss(t)?"svg":"math"===t?"math":void 0}var as=Object.create(null);function cs(t){if(!q)return!0;if(rs(t))return!1;if(t=t.toLowerCase(),null!=as[t])return as[t];var e=document.createElement(t);return t.indexOf("-")>-1?as[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:as[t]=/HTMLUnknownElement/.test(e.toString())}var ls=g("text,number,password,search,email,tel,url");function us(t){if("string"===typeof t){var e=document.querySelector(t);return e||document.createElement("div")}return t}function hs(t,e){var n=document.createElement(t);return"select"!==t||e.data&&e.data.attrs&&void 0!==e.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n}function ds(t,e){return document.createElementNS(ns[t],e)}function fs(t){return document.createTextNode(t)}function ps(t){return document.createComment(t)}function ms(t,e,n){t.insertBefore(e,n)}function gs(t,e){t.removeChild(e)}function bs(t,e){t.appendChild(e)}function vs(t){return t.parentNode}function ys(t){return t.nextSibling}function Ss(t){return t.tagName}function xs(t,e){t.textContent=e}function _s(t,e){t.setAttribute(e,"")}var ws=Object.freeze({createElement:hs,createElementNS:ds,createTextNode:fs,createComment:ps,insertBefore:ms,removeChild:gs,appendChild:bs,parentNode:vs,nextSibling:ys,tagName:Ss,setTextContent:xs,setStyleScope:_s}),Es={create:function(t,e){Ts(e)},update:function(t,e){t.data.ref!==e.data.ref&&(Ts(t,!0),Ts(e))},destroy:function(t){Ts(t,!0)}};function Ts(t,e){var n=t.data.ref;if(s(n)){var i=t.context,r=t.componentInstance||t.elm,o=i.$refs;e?Array.isArray(o[n])?v(o[n],r):o[n]===r&&(o[n]=void 0):t.data.refInFor?Array.isArray(o[n])?o[n].indexOf(r)<0&&o[n].push(r):o[n]=[r]:o[n]=r}}var Cs=new yt("",{},[]),Ms=["create","activate","update","remove","destroy"];function Ps(t,e){return t.key===e.key&&(t.tag===e.tag&&t.isComment===e.isComment&&s(t.data)===s(e.data)&&As(t,e)||r(t.isAsyncPlaceholder)&&t.asyncFactory===e.asyncFactory&&i(e.asyncFactory.error))}function As(t,e){if("input"!==t.tag)return!0;var n,i=s(n=t.data)&&s(n=n.attrs)&&n.type,r=s(n=e.data)&&s(n=n.attrs)&&n.type;return i===r||ls(i)&&ls(r)}function Is(t,e,n){var i,r,o={};for(i=e;i<=n;++i)r=t[i].key,s(r)&&(o[r]=i);return o}function Ls(t){var e,n,o={},c=t.modules,l=t.nodeOps;for(e=0;e<Ms.length;++e)for(o[Ms[e]]=[],n=0;n<c.length;++n)s(c[n][Ms[e]])&&o[Ms[e]].push(c[n][Ms[e]]);function u(t){return new yt(l.tagName(t).toLowerCase(),{},[],void 0,t)}function h(t,e){function n(){0===--n.listeners&&d(t)}return n.listeners=e,n}function d(t){var e=l.parentNode(t);s(e)&&l.removeChild(e,t)}function f(t,e,n,i,o,a,c){if(s(t.elm)&&s(a)&&(t=a[c]=wt(t)),t.isRootInsert=!o,!p(t,e,n,i)){var u=t.data,h=t.children,d=t.tag;s(d)?(t.elm=t.ns?l.createElementNS(t.ns,d):l.createElement(d,t),_(t),y(t,h,e),s(u)&&x(t,e),v(n,t.elm,i)):r(t.isComment)?(t.elm=l.createComment(t.text),v(n,t.elm,i)):(t.elm=l.createTextNode(t.text),v(n,t.elm,i))}}function p(t,e,n,i){var o=t.data;if(s(o)){var a=s(t.componentInstance)&&o.keepAlive;if(s(o=o.hook)&&s(o=o.init)&&o(t,!1),s(t.componentInstance))return m(t,e),v(n,t.elm,i),r(a)&&b(t,e,n,i),!0}}function m(t,e){s(t.data.pendingInsert)&&(e.push.apply(e,t.data.pendingInsert),t.data.pendingInsert=null),t.elm=t.componentInstance.$el,S(t)?(x(t,e),_(t)):(Ts(t),e.push(t))}function b(t,e,n,i){var r,a=t;while(a.componentInstance)if(a=a.componentInstance._vnode,s(r=a.data)&&s(r=r.transition)){for(r=0;r<o.activate.length;++r)o.activate[r](Cs,a);e.push(a);break}v(n,t.elm,i)}function v(t,e,n){s(t)&&(s(n)?l.parentNode(n)===t&&l.insertBefore(t,e,n):l.appendChild(t,e))}function y(t,e,n){if(Array.isArray(e)){0;for(var i=0;i<e.length;++i)f(e[i],n,t.elm,null,!0,e,i)}else a(t.text)&&l.appendChild(t.elm,l.createTextNode(String(t.text)))}function S(t){while(t.componentInstance)t=t.componentInstance._vnode;return s(t.tag)}function x(t,n){for(var i=0;i<o.create.length;++i)o.create[i](Cs,t);e=t.data.hook,s(e)&&(s(e.create)&&e.create(Cs,t),s(e.insert)&&n.push(t))}function _(t){var e;if(s(e=t.fnScopeId))l.setStyleScope(t.elm,e);else{var n=t;while(n)s(e=n.context)&&s(e=e.$options._scopeId)&&l.setStyleScope(t.elm,e),n=n.parent}s(e=In)&&e!==t.context&&e!==t.fnContext&&s(e=e.$options._scopeId)&&l.setStyleScope(t.elm,e)}function w(t,e,n,i,s,r){for(;i<=s;++i)f(n[i],r,t,e,!1,n,i)}function E(t){var e,n,i=t.data;if(s(i))for(s(e=i.hook)&&s(e=e.destroy)&&e(t),e=0;e<o.destroy.length;++e)o.destroy[e](t);if(s(e=t.children))for(n=0;n<t.children.length;++n)E(t.children[n])}function T(t,e,n){for(;e<=n;++e){var i=t[e];s(i)&&(s(i.tag)?(C(i),E(i)):d(i.elm))}}function C(t,e){if(s(e)||s(t.data)){var n,i=o.remove.length+1;for(s(e)?e.listeners+=i:e=h(t.elm,i),s(n=t.componentInstance)&&s(n=n._vnode)&&s(n.data)&&C(n,e),n=0;n<o.remove.length;++n)o.remove[n](t,e);s(n=t.data.hook)&&s(n=n.remove)?n(t,e):e()}else d(t.elm)}function M(t,e,n,r,o){var a,c,u,h,d=0,p=0,m=e.length-1,g=e[0],b=e[m],v=n.length-1,y=n[0],S=n[v],x=!o;while(d<=m&&p<=v)i(g)?g=e[++d]:i(b)?b=e[--m]:Ps(g,y)?(A(g,y,r,n,p),g=e[++d],y=n[++p]):Ps(b,S)?(A(b,S,r,n,v),b=e[--m],S=n[--v]):Ps(g,S)?(A(g,S,r,n,v),x&&l.insertBefore(t,g.elm,l.nextSibling(b.elm)),g=e[++d],S=n[--v]):Ps(b,y)?(A(b,y,r,n,p),x&&l.insertBefore(t,b.elm,g.elm),b=e[--m],y=n[++p]):(i(a)&&(a=Is(e,d,m)),c=s(y.key)?a[y.key]:P(y,e,d,m),i(c)?f(y,r,t,g.elm,!1,n,p):(u=e[c],Ps(u,y)?(A(u,y,r,n,p),e[c]=void 0,x&&l.insertBefore(t,u.elm,g.elm)):f(y,r,t,g.elm,!1,n,p)),y=n[++p]);d>m?(h=i(n[v+1])?null:n[v+1].elm,w(t,h,n,p,v,r)):p>v&&T(e,d,m)}function P(t,e,n,i){for(var r=n;r<i;r++){var o=e[r];if(s(o)&&Ps(t,o))return r}}function A(t,e,n,a,c,u){if(t!==e){s(e.elm)&&s(a)&&(e=a[c]=wt(e));var h=e.elm=t.elm;if(r(t.isAsyncPlaceholder))s(e.asyncFactory.resolved)?O(t.elm,e,n):e.isAsyncPlaceholder=!0;else if(r(e.isStatic)&&r(t.isStatic)&&e.key===t.key&&(r(e.isCloned)||r(e.isOnce)))e.componentInstance=t.componentInstance;else{var d,f=e.data;s(f)&&s(d=f.hook)&&s(d=d.prepatch)&&d(t,e);var p=t.children,m=e.children;if(s(f)&&S(e)){for(d=0;d<o.update.length;++d)o.update[d](t,e);s(d=f.hook)&&s(d=d.update)&&d(t,e)}i(e.text)?s(p)&&s(m)?p!==m&&M(h,p,m,n,u):s(m)?(s(t.text)&&l.setTextContent(h,""),w(h,null,m,0,m.length-1,n)):s(p)?T(p,0,p.length-1):s(t.text)&&l.setTextContent(h,""):t.text!==e.text&&l.setTextContent(h,e.text),s(f)&&s(d=f.hook)&&s(d=d.postpatch)&&d(t,e)}}}function I(t,e,n){if(r(n)&&s(t.parent))t.parent.data.pendingInsert=e;else for(var i=0;i<e.length;++i)e[i].data.hook.insert(e[i])}var L=g("attrs,class,staticClass,staticStyle,key");function O(t,e,n,i){var o,a=e.tag,c=e.data,l=e.children;if(i=i||c&&c.pre,e.elm=t,r(e.isComment)&&s(e.asyncFactory))return e.isAsyncPlaceholder=!0,!0;if(s(c)&&(s(o=c.hook)&&s(o=o.init)&&o(e,!0),s(o=e.componentInstance)))return m(e,n),!0;if(s(a)){if(s(l))if(t.hasChildNodes())if(s(o=c)&&s(o=o.domProps)&&s(o=o.innerHTML)){if(o!==t.innerHTML)return!1}else{for(var u=!0,h=t.firstChild,d=0;d<l.length;d++){if(!h||!O(h,l[d],n,i)){u=!1;break}h=h.nextSibling}if(!u||h)return!1}else y(e,l,n);if(s(c)){var f=!1;for(var p in c)if(!L(p)){f=!0,x(e,n);break}!f&&c["class"]&&ge(c["class"])}}else t.data!==e.text&&(t.data=e.text);return!0}return function(t,e,n,a){if(!i(e)){var c=!1,h=[];if(i(t))c=!0,f(e,h);else{var d=s(t.nodeType);if(!d&&Ps(t,e))A(t,e,h,null,null,a);else{if(d){if(1===t.nodeType&&t.hasAttribute(F)&&(t.removeAttribute(F),n=!0),r(n)&&O(t,e,h))return I(e,h,!0),t;t=u(t)}var p=t.elm,m=l.parentNode(p);if(f(e,h,p._leaveCb?null:m,l.nextSibling(p)),s(e.parent)){var g=e.parent,b=S(e);while(g){for(var v=0;v<o.destroy.length;++v)o.destroy[v](g);if(g.elm=e.elm,b){for(var y=0;y<o.create.length;++y)o.create[y](Cs,g);var x=g.data.hook.insert;if(x.merged)for(var _=1;_<x.fns.length;_++)x.fns[_]()}else Ts(g);g=g.parent}}s(m)?T([t],0,0):s(t.tag)&&E(t)}}return I(e,h,c),e.elm}s(t)&&E(t)}}var Os={create:ks,update:ks,destroy:function(t){ks(t,Cs)}};function ks(t,e){(t.data.directives||e.data.directives)&&Rs(t,e)}function Rs(t,e){var n,i,s,r=t===Cs,o=e===Cs,a=Ds(t.data.directives,t.context),c=Ds(e.data.directives,e.context),l=[],u=[];for(n in c)i=a[n],s=c[n],i?(s.oldValue=i.value,s.oldArg=i.arg,Bs(s,"update",e,t),s.def&&s.def.componentUpdated&&u.push(s)):(Bs(s,"bind",e,t),s.def&&s.def.inserted&&l.push(s));if(l.length){var h=function(){for(var n=0;n<l.length;n++)Bs(l[n],"inserted",e,t)};r?xe(e,"insert",h):h()}if(u.length&&xe(e,"postpatch",(function(){for(var n=0;n<u.length;n++)Bs(u[n],"componentUpdated",e,t)})),!r)for(n in a)c[n]||Bs(a[n],"unbind",t,t,o)}var Ns=Object.create(null);function Ds(t,e){var n,i,s=Object.create(null);if(!t)return s;for(n=0;n<t.length;n++)i=t[n],i.modifiers||(i.modifiers=Ns),s[Vs(i)]=i,i.def=Kt(e.$options,"directives",i.name,!0);return s}function Vs(t){return t.rawName||t.name+"."+Object.keys(t.modifiers||{}).join(".")}function Bs(t,e,n,i,s){var r=t.def&&t.def[e];if(r)try{r(n.elm,t,n,i,s)}catch(wo){ee(wo,n.context,"directive "+t.name+" "+e+" hook")}}var Fs=[Es,Os];function js(t,e){var n=e.componentOptions;if((!s(n)||!1!==n.Ctor.options.inheritAttrs)&&(!i(t.data.attrs)||!i(e.data.attrs))){var r,o,a,c=e.elm,l=t.data.attrs||{},u=e.data.attrs||{};for(r in s(u.__ob__)&&(u=e.data.attrs=L({},u)),u)o=u[r],a=l[r],a!==o&&Gs(c,r,o);for(r in(tt||nt)&&u.value!==l.value&&Gs(c,"value",u.value),l)i(u[r])&&(Ui(r)?c.removeAttributeNS(Hi,Yi(r)):Gi(r)||c.removeAttribute(r))}}function Gs(t,e,n){t.tagName.indexOf("-")>-1?Ws(t,e,n):zi(e)?Xi(n)?t.removeAttribute(e):(n="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,n)):Gi(e)?t.setAttribute(e,$i(e,n)):Ui(e)?Xi(n)?t.removeAttributeNS(Hi,Yi(e)):t.setAttributeNS(Hi,e,n):Ws(t,e,n)}function Ws(t,e,n){if(Xi(n))t.removeAttribute(e);else{if(tt&&!et&&"TEXTAREA"===t.tagName&&"placeholder"===e&&""!==n&&!t.__ieph){var i=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",i)};t.addEventListener("input",i),t.__ieph=!0}t.setAttribute(e,n)}}var $s={create:js,update:js};function zs(t,e){var n=e.elm,r=e.data,o=t.data;if(!(i(r.staticClass)&&i(r.class)&&(i(o)||i(o.staticClass)&&i(o.class)))){var a=Ki(e),c=n._transitionClasses;s(c)&&(a=Ji(a,Qi(c))),a!==n._prevClass&&(n.setAttribute("class",a),n._prevClass=a)}}var Hs,Us={create:zs,update:zs},Ys="__r",Xs="__c";function Ks(t){if(s(t[Ys])){var e=tt?"change":"input";t[e]=[].concat(t[Ys],t[e]||[]),delete t[Ys]}s(t[Xs])&&(t.change=[].concat(t[Xs],t.change||[]),delete t[Xs])}function qs(t,e,n){var i=Hs;return function s(){var r=e.apply(null,arguments);null!==r&&Qs(t,s,n,i)}}var Zs=oe&&!(st&&Number(st[1])<=53);function Js(t,e,n,i){if(Zs){var s=Yn,r=e;e=r._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=s||t.timeStamp<=0||t.target.ownerDocument!==document)return r.apply(this,arguments)}}Hs.addEventListener(t,e,ot?{capture:n,passive:i}:n)}function Qs(t,e,n,i){(i||Hs).removeEventListener(t,e._wrapper||e,n)}function tr(t,e){if(!i(t.data.on)||!i(e.data.on)){var n=e.data.on||{},s=t.data.on||{};Hs=e.elm,Ks(n),Se(n,s,Js,Qs,qs,e.context),Hs=void 0}}var er,nr={create:tr,update:tr};function ir(t,e){if(!i(t.data.domProps)||!i(e.data.domProps)){var n,r,o=e.elm,a=t.data.domProps||{},c=e.data.domProps||{};for(n in s(c.__ob__)&&(c=e.data.domProps=L({},c)),a)n in c||(o[n]="");for(n in c){if(r=c[n],"textContent"===n||"innerHTML"===n){if(e.children&&(e.children.length=0),r===a[n])continue;1===o.childNodes.length&&o.removeChild(o.childNodes[0])}if("value"===n&&"PROGRESS"!==o.tagName){o._value=r;var l=i(r)?"":String(r);sr(o,l)&&(o.value=l)}else if("innerHTML"===n&&ss(o.tagName)&&i(o.innerHTML)){er=er||document.createElement("div"),er.innerHTML="<svg>"+r+"</svg>";var u=er.firstChild;while(o.firstChild)o.removeChild(o.firstChild);while(u.firstChild)o.appendChild(u.firstChild)}else if(r!==a[n])try{o[n]=r}catch(wo){}}}}function sr(t,e){return!t.composing&&("OPTION"===t.tagName||rr(t,e)||or(t,e))}function rr(t,e){var n=!0;try{n=document.activeElement!==t}catch(wo){}return n&&t.value!==e}function or(t,e){var n=t.value,i=t._vModifiers;if(s(i)){if(i.number)return m(n)!==m(e);if(i.trim)return n.trim()!==e.trim()}return n!==e}var ar={create:ir,update:ir},cr=x((function(t){var e={},n=/;(?![^(]*\))/g,i=/:(.+)/;return t.split(n).forEach((function(t){if(t){var n=t.split(i);n.length>1&&(e[n[0].trim()]=n[1].trim())}})),e}));function lr(t){var e=ur(t.style);return t.staticStyle?L(t.staticStyle,e):e}function ur(t){return Array.isArray(t)?O(t):"string"===typeof t?cr(t):t}function hr(t,e){var n,i={};if(e){var s=t;while(s.componentInstance)s=s.componentInstance._vnode,s&&s.data&&(n=lr(s.data))&&L(i,n)}(n=lr(t.data))&&L(i,n);var r=t;while(r=r.parent)r.data&&(n=lr(r.data))&&L(i,n);return i}var dr,fr=/^--/,pr=/\s*!important$/,mr=function(t,e,n){if(fr.test(e))t.style.setProperty(e,n);else if(pr.test(n))t.style.setProperty(C(e),n.replace(pr,""),"important");else{var i=br(e);if(Array.isArray(n))for(var s=0,r=n.length;s<r;s++)t.style[i]=n[s];else t.style[i]=n}},gr=["Webkit","Moz","ms"],br=x((function(t){if(dr=dr||document.createElement("div").style,t=w(t),"filter"!==t&&t in dr)return t;for(var e=t.charAt(0).toUpperCase()+t.slice(1),n=0;n<gr.length;n++){var i=gr[n]+e;if(i in dr)return i}}));function vr(t,e){var n=e.data,r=t.data;if(!(i(n.staticStyle)&&i(n.style)&&i(r.staticStyle)&&i(r.style))){var o,a,c=e.elm,l=r.staticStyle,u=r.normalizedStyle||r.style||{},h=l||u,d=ur(e.data.style)||{};e.data.normalizedStyle=s(d.__ob__)?L({},d):d;var f=hr(e,!0);for(a in h)i(f[a])&&mr(c,a,"");for(a in f)o=f[a],o!==h[a]&&mr(c,a,null==o?"":o)}}var yr={create:vr,update:vr},Sr=/\s+/;function xr(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(Sr).forEach((function(e){return t.classList.add(e)})):t.classList.add(e);else{var n=" "+(t.getAttribute("class")||"")+" ";n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function _r(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(Sr).forEach((function(e){return t.classList.remove(e)})):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{var n=" "+(t.getAttribute("class")||"")+" ",i=" "+e+" ";while(n.indexOf(i)>=0)n=n.replace(i," ");n=n.trim(),n?t.setAttribute("class",n):t.removeAttribute("class")}}function wr(t){if(t){if("object"===typeof t){var e={};return!1!==t.css&&L(e,Er(t.name||"v")),L(e,t),e}return"string"===typeof t?Er(t):void 0}}var Er=x((function(t){return{enterClass:t+"-enter",enterToClass:t+"-enter-to",enterActiveClass:t+"-enter-active",leaveClass:t+"-leave",leaveToClass:t+"-leave-to",leaveActiveClass:t+"-leave-active"}})),Tr=q&&!et,Cr="transition",Mr="animation",Pr="transition",Ar="transitionend",Ir="animation",Lr="animationend";Tr&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Pr="WebkitTransition",Ar="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Ir="WebkitAnimation",Lr="webkitAnimationEnd"));var Or=q?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function kr(t){Or((function(){Or(t)}))}function Rr(t,e){var n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),xr(t,e))}function Nr(t,e){t._transitionClasses&&v(t._transitionClasses,e),_r(t,e)}function Dr(t,e,n){var i=Br(t,e),s=i.type,r=i.timeout,o=i.propCount;if(!s)return n();var a=s===Cr?Ar:Lr,c=0,l=function(){t.removeEventListener(a,u),n()},u=function(e){e.target===t&&++c>=o&&l()};setTimeout((function(){c<o&&l()}),r+1),t.addEventListener(a,u)}var Vr=/\b(transform|all)(,|$)/;function Br(t,e){var n,i=window.getComputedStyle(t),s=(i[Pr+"Delay"]||"").split(", "),r=(i[Pr+"Duration"]||"").split(", "),o=Fr(s,r),a=(i[Ir+"Delay"]||"").split(", "),c=(i[Ir+"Duration"]||"").split(", "),l=Fr(a,c),u=0,h=0;e===Cr?o>0&&(n=Cr,u=o,h=r.length):e===Mr?l>0&&(n=Mr,u=l,h=c.length):(u=Math.max(o,l),n=u>0?o>l?Cr:Mr:null,h=n?n===Cr?r.length:c.length:0);var d=n===Cr&&Vr.test(i[Pr+"Property"]);return{type:n,timeout:u,propCount:h,hasTransform:d}}function Fr(t,e){while(t.length<e.length)t=t.concat(t);return Math.max.apply(null,e.map((function(e,n){return jr(e)+jr(t[n])})))}function jr(t){return 1e3*Number(t.slice(0,-1).replace(",","."))}function Gr(t,e){var n=t.elm;s(n._leaveCb)&&(n._leaveCb.cancelled=!0,n._leaveCb());var r=wr(t.data.transition);if(!i(r)&&!s(n._enterCb)&&1===n.nodeType){var o=r.css,a=r.type,l=r.enterClass,u=r.enterToClass,h=r.enterActiveClass,d=r.appearClass,f=r.appearToClass,p=r.appearActiveClass,g=r.beforeEnter,b=r.enter,v=r.afterEnter,y=r.enterCancelled,S=r.beforeAppear,x=r.appear,_=r.afterAppear,w=r.appearCancelled,E=r.duration,T=In,C=In.$vnode;while(C&&C.parent)T=C.context,C=C.parent;var M=!T._isMounted||!t.isRootInsert;if(!M||x||""===x){var P=M&&d?d:l,A=M&&p?p:h,I=M&&f?f:u,L=M&&S||g,O=M&&"function"===typeof x?x:b,k=M&&_||v,R=M&&w||y,N=m(c(E)?E.enter:E);0;var D=!1!==o&&!et,V=zr(O),F=n._enterCb=B((function(){D&&(Nr(n,I),Nr(n,A)),F.cancelled?(D&&Nr(n,P),R&&R(n)):k&&k(n),n._enterCb=null}));t.data.show||xe(t,"insert",(function(){var e=n.parentNode,i=e&&e._pending&&e._pending[t.key];i&&i.tag===t.tag&&i.elm._leaveCb&&i.elm._leaveCb(),O&&O(n,F)})),L&&L(n),D&&(Rr(n,P),Rr(n,A),kr((function(){Nr(n,P),F.cancelled||(Rr(n,I),V||($r(N)?setTimeout(F,N):Dr(n,a,F)))}))),t.data.show&&(e&&e(),O&&O(n,F)),D||V||F()}}}function Wr(t,e){var n=t.elm;s(n._enterCb)&&(n._enterCb.cancelled=!0,n._enterCb());var r=wr(t.data.transition);if(i(r)||1!==n.nodeType)return e();if(!s(n._leaveCb)){var o=r.css,a=r.type,l=r.leaveClass,u=r.leaveToClass,h=r.leaveActiveClass,d=r.beforeLeave,f=r.leave,p=r.afterLeave,g=r.leaveCancelled,b=r.delayLeave,v=r.duration,y=!1!==o&&!et,S=zr(f),x=m(c(v)?v.leave:v);0;var _=n._leaveCb=B((function(){n.parentNode&&n.parentNode._pending&&(n.parentNode._pending[t.key]=null),y&&(Nr(n,u),Nr(n,h)),_.cancelled?(y&&Nr(n,l),g&&g(n)):(e(),p&&p(n)),n._leaveCb=null}));b?b(w):w()}function w(){_.cancelled||(!t.data.show&&n.parentNode&&((n.parentNode._pending||(n.parentNode._pending={}))[t.key]=t),d&&d(n),y&&(Rr(n,l),Rr(n,h),kr((function(){Nr(n,l),_.cancelled||(Rr(n,u),S||($r(x)?setTimeout(_,x):Dr(n,a,_)))}))),f&&f(n,_),y||S||_())}}function $r(t){return"number"===typeof t&&!isNaN(t)}function zr(t){if(i(t))return!1;var e=t.fns;return s(e)?zr(Array.isArray(e)?e[0]:e):(t._length||t.length)>1}function Hr(t,e){!0!==e.data.show&&Gr(e)}var Ur=q?{create:Hr,activate:Hr,remove:function(t,e){!0!==t.data.show?Wr(t,e):e()}}:{},Yr=[$s,Us,nr,ar,yr,Ur],Xr=Yr.concat(Fs),Kr=Ls({nodeOps:ws,modules:Xr});et&&document.addEventListener("selectionchange",(function(){var t=document.activeElement;t&&t.vmodel&&io(t,"input")}));var qr={inserted:function(t,e,n,i){"select"===n.tag?(i.elm&&!i.elm._vOptions?xe(n,"postpatch",(function(){qr.componentUpdated(t,e,n)})):Zr(t,e,n.context),t._vOptions=[].map.call(t.options,to)):("textarea"===n.tag||ls(t.type))&&(t._vModifiers=e.modifiers,e.modifiers.lazy||(t.addEventListener("compositionstart",eo),t.addEventListener("compositionend",no),t.addEventListener("change",no),et&&(t.vmodel=!0)))},componentUpdated:function(t,e,n){if("select"===n.tag){Zr(t,e,n.context);var i=t._vOptions,s=t._vOptions=[].map.call(t.options,to);if(s.some((function(t,e){return!D(t,i[e])}))){var r=t.multiple?e.value.some((function(t){return Qr(t,s)})):e.value!==e.oldValue&&Qr(e.value,s);r&&io(t,"change")}}}};function Zr(t,e,n){Jr(t,e,n),(tt||nt)&&setTimeout((function(){Jr(t,e,n)}),0)}function Jr(t,e,n){var i=e.value,s=t.multiple;if(!s||Array.isArray(i)){for(var r,o,a=0,c=t.options.length;a<c;a++)if(o=t.options[a],s)r=V(i,to(o))>-1,o.selected!==r&&(o.selected=r);else if(D(to(o),i))return void(t.selectedIndex!==a&&(t.selectedIndex=a));s||(t.selectedIndex=-1)}}function Qr(t,e){return e.every((function(e){return!D(e,t)}))}function to(t){return"_value"in t?t._value:t.value}function eo(t){t.target.composing=!0}function no(t){t.target.composing&&(t.target.composing=!1,io(t.target,"input"))}function io(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function so(t){return!t.componentInstance||t.data&&t.data.transition?t:so(t.componentInstance._vnode)}var ro={bind:function(t,e,n){var i=e.value;n=so(n);var s=n.data&&n.data.transition,r=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;i&&s?(n.data.show=!0,Gr(n,(function(){t.style.display=r}))):t.style.display=i?r:"none"},update:function(t,e,n){var i=e.value,s=e.oldValue;if(!i!==!s){n=so(n);var r=n.data&&n.data.transition;r?(n.data.show=!0,i?Gr(n,(function(){t.style.display=t.__vOriginalDisplay})):Wr(n,(function(){t.style.display="none"}))):t.style.display=i?t.__vOriginalDisplay:"none"}},unbind:function(t,e,n,i,s){s||(t.style.display=t.__vOriginalDisplay)}},oo={model:qr,show:ro},ao={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function co(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?co(wn(e.children)):t}function lo(t){var e={},n=t.$options;for(var i in n.propsData)e[i]=t[i];var s=n._parentListeners;for(var r in s)e[w(r)]=s[r];return e}function uo(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}function ho(t){while(t=t.parent)if(t.data.transition)return!0}function fo(t,e){return e.key===t.key&&e.tag===t.tag}var po=function(t){return t.tag||_n(t)},mo=function(t){return"show"===t.name},go={name:"transition",props:ao,abstract:!0,render:function(t){var e=this,n=this.$slots.default;if(n&&(n=n.filter(po),n.length)){0;var i=this.mode;0;var s=n[0];if(ho(this.$vnode))return s;var r=co(s);if(!r)return s;if(this._leaving)return uo(t,s);var o="__transition-"+this._uid+"-";r.key=null==r.key?r.isComment?o+"comment":o+r.tag:a(r.key)?0===String(r.key).indexOf(o)?r.key:o+r.key:r.key;var c=(r.data||(r.data={})).transition=lo(this),l=this._vnode,u=co(l);if(r.data.directives&&r.data.directives.some(mo)&&(r.data.show=!0),u&&u.data&&!fo(r,u)&&!_n(u)&&(!u.componentInstance||!u.componentInstance._vnode.isComment)){var h=u.data.transition=L({},c);if("out-in"===i)return this._leaving=!0,xe(h,"afterLeave",(function(){e._leaving=!1,e.$forceUpdate()})),uo(t,s);if("in-out"===i){if(_n(r))return l;var d,f=function(){d()};xe(c,"afterEnter",f),xe(c,"enterCancelled",f),xe(h,"delayLeave",(function(t){d=t}))}}return s}}},bo=L({tag:String,moveClass:String},ao);delete bo.mode;var vo={props:bo,beforeMount:function(){var t=this,e=this._update;this._update=function(n,i){var s=Ln(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,s(),e.call(t,n,i)}},render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),i=this.prevChildren=this.children,s=this.$slots.default||[],r=this.children=[],o=lo(this),a=0;a<s.length;a++){var c=s[a];if(c.tag)if(null!=c.key&&0!==String(c.key).indexOf("__vlist"))r.push(c),n[c.key]=c,(c.data||(c.data={})).transition=o;else;}if(i){for(var l=[],u=[],h=0;h<i.length;h++){var d=i[h];d.data.transition=o,d.data.pos=d.elm.getBoundingClientRect(),n[d.key]?l.push(d):u.push(d)}this.kept=t(e,null,l),this.removed=u}return t(e,null,r)},updated:function(){var t=this.prevChildren,e=this.moveClass||(this.name||"v")+"-move";t.length&&this.hasMove(t[0].elm,e)&&(t.forEach(yo),t.forEach(So),t.forEach(xo),this._reflow=document.body.offsetHeight,t.forEach((function(t){if(t.data.moved){var n=t.elm,i=n.style;Rr(n,e),i.transform=i.WebkitTransform=i.transitionDuration="",n.addEventListener(Ar,n._moveCb=function t(i){i&&i.target!==n||i&&!/transform$/.test(i.propertyName)||(n.removeEventListener(Ar,t),n._moveCb=null,Nr(n,e))})}})))},methods:{hasMove:function(t,e){if(!Tr)return!1;if(this._hasMove)return this._hasMove;var n=t.cloneNode();t._transitionClasses&&t._transitionClasses.forEach((function(t){_r(n,t)})),xr(n,e),n.style.display="none",this.$el.appendChild(n);var i=Br(n);return this.$el.removeChild(n),this._hasMove=i.hasTransform}}};function yo(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function So(t){t.data.newPos=t.elm.getBoundingClientRect()}function xo(t){var e=t.data.pos,n=t.data.newPos,i=e.left-n.left,s=e.top-n.top;if(i||s){t.data.moved=!0;var r=t.elm.style;r.transform=r.WebkitTransform="translate("+i+"px,"+s+"px)",r.transitionDuration="0s"}}var _o={Transition:go,TransitionGroup:vo};wi.config.mustUseProp=ji,wi.config.isReservedTag=rs,wi.config.isReservedAttr=Bi,wi.config.getTagNamespace=os,wi.config.isUnknownElement=cs,L(wi.options.directives,oo),L(wi.options.components,_o),wi.prototype.__patch__=q?Kr:k,wi.prototype.$mount=function(t,e){return t=t&&q?us(t):void 0,Rn(this,t,e)},q&&setTimeout((function(){W.devtools&<&<.emit("init",wi)}),0),e["default"]=wi}.call(this,n("c8ba"))},"2b4c":function(t,e,n){var i=n("5537")("wks"),s=n("ca5a"),r=n("7726").Symbol,o="function"==typeof r,a=t.exports=function(t){return i[t]||(i[t]=o&&r[t]||(o?r:s)("Symbol."+t))};a.store=i},"2b78":function(t,e){},"2b7d":function(t,e){},"2bb7":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=t=>async e=>{try{const t=await fetch(e);if(t.ok)return t.text()}catch{}throw t()}},"2c2d":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=(t,e,n,i,s,r,o,a,c,l,u,h,d,f,p,m,g,b,v,y)=>class extends p{constructor(e,n){super(e,n),this._nativeContext=e,this._audioWorklet=void 0===t?void 0:{addModule:(e,n)=>t(this,e,n)}}get audioWorklet(){return this._audioWorklet}createAnalyser(){return new e(this)}createBiquadFilter(){return new s(this)}createBuffer(t,e,i){return new n({length:e,numberOfChannels:t,sampleRate:i})}createBufferSource(){return new i(this)}createChannelMerger(t=6){return new r(this,{numberOfInputs:t})}createChannelSplitter(t=6){return new o(this,{numberOfOutputs:t})}createConstantSource(){return new a(this)}createConvolver(){return new c(this)}createDelay(t=1){return new u(this,{maxDelayTime:t})}createDynamicsCompressor(){return new h(this)}createGain(){return new d(this)}createIIRFilter(t,e){return new f(this,{feedback:e,feedforward:t})}createOscillator(){return new m(this)}createPanner(){return new g(this)}createPeriodicWave(t,e,n={disableNormalization:!1}){return new b(this,{...n,imag:e,real:t})}createStereoPanner(){return new v(this)}createWaveShaper(){return new y(this)}decodeAudioData(t,e,n){return l(this._nativeContext,t).then(t=>("function"===typeof e&&e(t),t)).catch(t=>{throw"function"===typeof n&&n(t),t})}}},"2c92":function(t,e,n){"use strict";var i=n("ccf9"),s=function(t){return null!==t&&t!==[]&&t>=0&&t<129},r=function(t){return s(t)?+t:i.midi(t)};function o(t,e){return Object.keys(t).reduce((function(n,i){return n[e(i)]=t[i],n}),{})}t.exports=function(t){if(t.buffers){var e=t.opts.map,n="function"===typeof e?e:r,i=function(t){return t?n(t)||t:null};t.buffers=o(t.buffers,i);var s=t.start;t.start=function(t,e,n){var r=i(t),o=r%1;return o&&(r=Math.floor(r),n=Object.assign(n||{},{cents:Math.floor(100*o)})),s(r,e,n)}}return t}},"2cae":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=t=>class{constructor(t){this._nativeEventTarget=t,this._listeners=new WeakMap}addEventListener(e,n,i){if(null!==n){let s=this._listeners.get(n);void 0===s&&(s=t(this,n),"function"===typeof n&&this._listeners.set(n,s)),this._nativeEventTarget.addEventListener(e,s,i)}}dispatchEvent(t){return this._nativeEventTarget.dispatchEvent(t)}removeEventListener(t,e,n){const i=null===e?void 0:this._listeners.get(e);this._nativeEventTarget.removeEventListener(t,void 0===i?null:i,n)}}},"2d00":function(t,e){t.exports=!1},"2d17":function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));const i={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",fftSize:2048,maxDecibels:-30,minDecibels:-100,smoothingTimeConstant:.8},s=(t,e,n,s,r,o)=>class extends t{constructor(t,n=i){const a=r(t),c={...i,...n},l=s(a,c),u=o(a)?e():null;super(t,!1,l,u),this._nativeAnalyserNode=l}get fftSize(){return this._nativeAnalyserNode.fftSize}set fftSize(t){this._nativeAnalyserNode.fftSize=t}get frequencyBinCount(){return this._nativeAnalyserNode.frequencyBinCount}get maxDecibels(){return this._nativeAnalyserNode.maxDecibels}set maxDecibels(t){const e=this._nativeAnalyserNode.maxDecibels;if(this._nativeAnalyserNode.maxDecibels=t,!(t>this._nativeAnalyserNode.minDecibels))throw this._nativeAnalyserNode.maxDecibels=e,n()}get minDecibels(){return this._nativeAnalyserNode.minDecibels}set minDecibels(t){const e=this._nativeAnalyserNode.minDecibels;if(this._nativeAnalyserNode.minDecibels=t,!(this._nativeAnalyserNode.maxDecibels>t))throw this._nativeAnalyserNode.minDecibels=e,n()}get smoothingTimeConstant(){return this._nativeAnalyserNode.smoothingTimeConstant}set smoothingTimeConstant(t){this._nativeAnalyserNode.smoothingTimeConstant=t}getByteFrequencyData(t){this._nativeAnalyserNode.getByteFrequencyData(t)}getByteTimeDomainData(t){this._nativeAnalyserNode.getByteTimeDomainData(t)}getFloatFrequencyData(t){this._nativeAnalyserNode.getFloatFrequencyData(t)}getFloatTimeDomainData(t){this._nativeAnalyserNode.getFloatTimeDomainData(t)}}},"2d34":function(t,e,n){var i=n("5ca1"),s=n("38fd"),r=n("cb7c");i(i.S,"Reflect",{getPrototypeOf:function(t){return s(r(t))}})},"2d5c":function(t,e){var n=Math.expm1;t.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:Math.exp(t)-1}:n},"2d83":function(t,e,n){"use strict";var i=n("387f");t.exports=function(t,e,n,s,r){var o=new Error(t);return i(o,e,n,s,r)}},"2d95":function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},"2dad":function(t,e){},"2de4":function(t,e){},"2e07":function(t,e){},"2e08":function(t,e,n){var i=n("9def"),s=n("9744"),r=n("be13");t.exports=function(t,e,n,o){var a=String(r(t)),c=a.length,l=void 0===n?" ":String(n),u=i(e);if(u<=c||""==l)return a;var h=u-c,d=s.call(l,Math.ceil(h/l.length));return d.length>h&&(d=d.slice(0,h)),o?d+a:a+d}},"2e20":function(t,e){},"2e37":function(t,e,n){var i=n("5ca1");i(i.S,"Number",{EPSILON:Math.pow(2,-52)})},"2e67":function(t,e,n){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},"2e93":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("c965");const s=(t,e,n)=>{const i=e[n];if(void 0===i)throw t();return i},r=t=>(e,n,r,o=0)=>void 0===n?e.forEach(t=>t.disconnect()):"number"===typeof n?s(t,e,n).disconnect():Object(i["a"])(n)?void 0===r?e.forEach(t=>t.disconnect(n)):void 0===o?s(t,e,r).disconnect(n,0):s(t,e,r).disconnect(n,0,o):void 0===r?e.forEach(t=>t.disconnect(n)):s(t,e,r).disconnect(n,0)},"2ea4":function(t,e){},"2ed8":function(t,e){},"2f21":function(t,e,n){"use strict";var i=n("79e5");t.exports=function(t,e){return!!t&&i((function(){e?t.call(null,(function(){}),1):t.call(null)}))}},"2f22":function(t,e){},"2f70":function(t,e){},"2fb7":function(t,e){},"2fd1":function(t,e){},"2fdb":function(t,e,n){"use strict";var i=n("5ca1"),s=n("d2c8"),r="includes";i(i.P+i.F*n("5147")(r),"String",{includes:function(t){return!!~s(this,t,r).indexOf(t,arguments.length>1?arguments[1]:void 0)}})},"30b5":function(t,e,n){"use strict";var i=n("c532");function s(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,n){if(!e)return t;var r;if(n)r=n(e);else if(i.isURLSearchParams(e))r=e.toString();else{var o=[];i.forEach(e,(function(t,e){null!==t&&"undefined"!==typeof t&&(i.isArray(t)?e+="[]":t=[t],i.forEach(t,(function(t){i.isDate(t)?t=t.toISOString():i.isObject(t)&&(t=JSON.stringify(t)),o.push(s(e)+"="+s(t))})))})),r=o.join("&")}if(r){var a=t.indexOf("#");-1!==a&&(t=t.slice(0,a)),t+=(-1===t.indexOf("?")?"?":"&")+r}return t}},"30bf":function(t,e){},"31f4":function(t,e){t.exports=function(t,e,n){var i=void 0===n;switch(e.length){case 0:return i?t():t.call(n);case 1:return i?t(e[0]):t.call(n,e[0]);case 2:return i?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return i?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return i?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},3257:function(t,e){},"32d7":function(t,e,n){var i=n("5ca1");i(i.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},"32e9":function(t,e,n){var i=n("86cc"),s=n("4630");t.exports=n("9e1e")?function(t,e,n){return i.f(t,e,s(1,n))}:function(t,e,n){return t[e]=n,t}},3331:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=t=>null===t?null:t.hasOwnProperty("AudioBuffer")?t.AudioBuffer:null},"33a4":function(t,e,n){var i=n("84f2"),s=n("2b4c")("iterator"),r=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||r[s]===t)}},"34ef":function(t,e,n){n("ec30")("Uint8",1,(function(t){return function(e,n,i){return t(this,e,n,i)}}))},3555:function(t,e){},"359c":function(t,e){},3673:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("049b");const s={numberOfChannels:1},r=(t,e,n,r,o)=>class extends r{constructor(e){const{length:r,numberOfChannels:o,sampleRate:a}={...s,...e},c=n(o,r,a);t(i["a"],()=>Object(i["a"])(c))||c.addEventListener("statechange",(()=>{let t=0;const e=n=>{"running"===this._state&&(t>0?(c.removeEventListener("statechange",e),n.stopImmediatePropagation(),this._waitForThePromiseToSettle(n)):t+=1)};return e})()),super(c,o),this._length=r,this._nativeOfflineAudioContext=c,this._state=null}get length(){return void 0===this._nativeOfflineAudioContext.length?this._length:this._nativeOfflineAudioContext.length}get state(){return null===this._state?this._nativeOfflineAudioContext.state:this._state}startRendering(){return"running"===this._state?Promise.reject(e()):(this._state="running",o(this.destination,this._nativeOfflineAudioContext).then(t=>(this._state=null,t)).catch(t=>{throw this._state=null,t}))}_waitForThePromiseToSettle(t){null===this._state?this._nativeOfflineAudioContext.dispatchEvent(t):setTimeout(()=>this._waitForThePromiseToSettle(t))}}},"36bd":function(t,e,n){"use strict";var i=n("4bf8"),s=n("77f1"),r=n("9def");t.exports=function(t){var e=i(this),n=r(e.length),o=arguments.length,a=s(o>1?arguments[1]:void 0,n),c=o>2?arguments[2]:void 0,l=void 0===c?n:s(c,n);while(l>a)e[a++]=t;return e}},3707:function(t,e){},3738:function(t,e){},3797:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=(t,e)=>(n,i,s)=>{if(null===e)throw new Error("Missing the native OfflineAudioContext constructor.");try{return new e(n,i,s)}catch(r){if("IndexSizeError"===r.name||"SyntaxError"===r.name)throw t();throw r}}},"37b4":function(t,e){},"37c1":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=()=>"undefined"===typeof window?null:window},"37c8":function(t,e,n){e.f=n("2b4c")},"37e2":function(t,e){},"37e5":function(t,e){},"382c":function(t,e){},"383e":function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return s}));const i=-34028234663852886e22,s=-i},3846:function(t,e,n){n("9e1e")&&"g"!=/./g.flags&&n("86cc").f(RegExp.prototype,"flags",{configurable:!0,get:n("0bfb")})},"386b":function(t,e,n){var i=n("5ca1"),s=n("79e5"),r=n("be13"),o=/"/g,a=function(t,e,n,i){var s=String(r(t)),a="<"+e;return""!==n&&(a+=" "+n+'="'+String(i).replace(o,""")+'"'),a+">"+s+"</"+e+">"};t.exports=function(t,e){var n={};n[t]=e(a),i(i.P+i.F*s((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3})),"String",n)}},"386d":function(t,e,n){"use strict";var i=n("cb7c"),s=n("83a1"),r=n("5f1b");n("214f")("search",1,(function(t,e,n,o){return[function(n){var i=t(this),s=void 0==n?void 0:n[e];return void 0!==s?s.call(n,i):new RegExp(n)[e](String(i))},function(t){var e=o(n,t,this);if(e.done)return e.value;var a=i(t),c=String(this),l=a.lastIndex;s(l,0)||(a.lastIndex=0);var u=r(a,c);return s(a.lastIndex,l)||(a.lastIndex=l),null===u?-1:u.index}]}))},"387e":function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n("5b43"),s=n("cd00");const r=t=>{const e=t.numberOfOutputs;Object.defineProperty(t,"channelCount",{get:()=>e,set:t=>{if(t!==e)throw Object(s["a"])()}}),Object.defineProperty(t,"channelCountMode",{get:()=>"explicit",set:t=>{if("explicit"!==t)throw Object(s["a"])()}}),Object.defineProperty(t,"channelInterpretation",{get:()=>"discrete",set:t=>{if("discrete"!==t)throw Object(s["a"])()}})},o=t=>(e,n)=>{const s=t(e,t=>t.createChannelSplitter(n.numberOfOutputs));return Object(i["a"])(s,n),r(s),s}},"387f":function(t,e,n){"use strict";t.exports=function(t,e,n,i,s){return t.config=e,n&&(t.code=n),t.request=i,t.response=s,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},t}},3895:function(t,e){},"38e4":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("752e"),s=n("d057");const r=t=>Object(s["a"])(i["e"],t)},"38e6":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=t=>(e,n)=>{t(e).delete(n)}},"38fd":function(t,e,n){var i=n("69a8"),s=n("4bf8"),r=n("613b")("IE_PROTO"),o=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=s(t),i(t,r)?t[r]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?o:null}},"391d":function(t,e){},3934:function(t,e,n){"use strict";var i=n("c532");t.exports=i.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function s(t){var i=t;return e&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=s(window.location.href),function(e){var n=i.isString(e)?s(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return function(){return!0}}()},3983:function(t,e){},"39b7":function(t,e){},"3a72":function(t,e,n){var i=n("7726"),s=n("8378"),r=n("2d00"),o=n("37c8"),a=n("86cc").f;t.exports=function(t){var e=s.Symbol||(s.Symbol=r?{}:i.Symbol||{});"_"==t.charAt(0)||t in e||a(e,t,{value:o.f(t)})}},"3adc":function(t,e){},"3af1":function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("a8ce");const s=(t,e,n,s,r,o,a,c,l)=>class extends t{constructor(t={}){if(null===l)throw new Error("Missing the native AudioContext constructor.");const e=new l(t);if(null===e)throw s();if(!Object(i["a"])(t.latencyHint))throw new TypeError(`The provided value '${t.latencyHint}' is not a valid enum value of type AudioContextLatencyCategory.`);if(void 0!==t.sampleRate&&e.sampleRate!==t.sampleRate)throw n();super(e,2);const{latencyHint:r}=t,{sampleRate:o}=e;if(this._baseLatency="number"===typeof e.baseLatency?e.baseLatency:"balanced"===r?512/o:"interactive"===r||void 0===r?256/o:"playback"===r?1024/o:128*Math.max(2,Math.min(128,Math.round(r*o/128)))/o,this._nativeAudioContext=e,this._state=null,"running"===e.state){this._state="suspended";const t=()=>{"suspended"===this._state&&(this._state=null),e.removeEventListener("statechange",t)};e.addEventListener("statechange",t)}}get baseLatency(){return this._baseLatency}get state(){return null!==this._state?this._state:this._nativeAudioContext.state}close(){return"closed"===this.state?this._nativeAudioContext.close().then(()=>{throw e()}):("suspended"===this._state&&(this._state=null),this._nativeAudioContext.close())}createMediaElementSource(t){return new r(this,{mediaElement:t})}createMediaStreamDestination(){return new o(this)}createMediaStreamSource(t){return new a(this,{mediaStream:t})}createMediaStreamTrackSource(t){return new c(this,{mediaStreamTrack:t})}resume(){return"suspended"===this._state?new Promise((t,e)=>{const n=()=>{this._nativeAudioContext.removeEventListener("statechange",n),"running"===this._nativeAudioContext.state?t():this.resume().then(t,e)};this._nativeAudioContext.addEventListener("statechange",n)}):this._nativeAudioContext.resume().catch(t=>{if(void 0===t||15===t.code)throw e();throw t})}suspend(){return this._nativeAudioContext.suspend().catch(t=>{if(void 0===t)throw e();throw t})}}},"3b2b":function(t,e,n){var i=n("7726"),s=n("5dbc"),r=n("86cc").f,o=n("9093").f,a=n("aae3"),c=n("0bfb"),l=i.RegExp,u=l,h=l.prototype,d=/a/g,f=/a/g,p=new l(d)!==d;if(n("9e1e")&&(!p||n("79e5")((function(){return f[n("2b4c")("match")]=!1,l(d)!=d||l(f)==f||"/a/i"!=l(d,"i")})))){l=function(t,e){var n=this instanceof l,i=a(t),r=void 0===e;return!n&&i&&t.constructor===l&&r?t:s(p?new u(i&&!r?t.source:t,e):u((i=t instanceof l)?t.source:t,i&&r?c.call(t):e),n?this:h,l)};for(var m=function(t){t in l||r(l,t,{configurable:!0,get:function(){return u[t]},set:function(e){u[t]=e}})},g=o(u),b=0;g.length>b;)m(g[b++]);h.constructor=l,l.prototype=h,n("2aba")(i,"RegExp",l)}n("7a56")("RegExp")},"3b7d":function(t,e){},"3b96":function(t,e,n){"use strict";var i=n("f16d"),s=n("b0a5"),r=n("2c92"),o=n("7f8d"),a=n("9e1f");function c(t,e,n){return a(o(r(s(i(t,e,n)))))}t.exports&&(t.exports=c),"undefined"!==typeof window&&(window.SamplePlayer=c)},"3bbf":function(t,e){},"3c0a":function(t,e){},"3c28":function(t,e){},"3c35":function(t,e){},"3c84":function(t,e){},"3ca5":function(t,e,n){var i=n("7726").parseInt,s=n("aa77").trim,r=n("fdef"),o=/^[-+]?0[xX]/;t.exports=8!==i(r+"08")||22!==i(r+"0x16")?function(t,e){var n=s(String(t),3);return i(n,e>>>0||(o.test(n)?16:10))}:i},"3cf6":function(t,e){},"3d55":function(t,e){},"3d86":function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("e190");const s=(t,e,n,s,r)=>()=>{const o=new WeakMap;let a=null,c=null;const l=async(l,u,h)=>{let d=n(l);const f=Object(i["a"])(d,u);if(!f){const t={channelCount:d.channelCount,channelCountMode:d.channelCountMode,channelInterpretation:d.channelInterpretation,offset:d.offset.value};d=e(u,t),null!==a&&d.start(a),null!==c&&d.stop(c)}return o.set(u,d),f?await t(u,l.offset,d.offset,h):await s(u,l.offset,d.offset,h),await r(l,u,d,h),d};return{set start(t){a=t},set stop(t){c=t},render(t,e,n){const i=o.get(e);return void 0!==i?Promise.resolve(i):l(t,e,n)}}}},"3dcf":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=t=>{if(null===t)return!1;const e=t.length;return e%2!==0?0!==t[Math.floor(e/2)]:t[e/2-1]+t[e/2]!==0}},"3ee3":function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("5b43");const s=(t,e)=>(n,s)=>{const r=t(n,t=>t.createChannelMerger(s.numberOfInputs));return 1!==r.channelCount&&"explicit"!==r.channelCountMode&&e(n,r),Object(i["a"])(r,s),r}},"3f50":function(t,e){},4034:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=(t,e,n)=>class extends t{constructor(t,i){const s=n(t),r=e(s,i);super(t,!0,r,null)}}},4107:function(t,e){},4114:function(t,e,n){"use strict";function i(t,e,n,i,s){if("function"===typeof t.copyFromChannel)0===e[n].byteLength&&(e[n]=new Float32Array(128)),t.copyFromChannel(e[n],i,s);else{const r=t.getChannelData(i);if(0===e[n].byteLength)e[n]=r.slice(s,s+128);else{const t=new Float32Array(r.buffer,s*Float32Array.BYTES_PER_ELEMENT,128);e[n].set(t)}}}n.d(e,"a",(function(){return i}))},4149:function(t,e){},4156:function(t,e){},4163:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=(t,e)=>n=>{const i=t.get(n);return e(i)||e(n)}},"418b":function(t,e){},"418bb":function(t,e){},"41a0":function(t,e,n){"use strict";var i=n("2aeb"),s=n("4630"),r=n("7f20"),o={};n("32e9")(o,n("2b4c")("iterator"),(function(){return this})),t.exports=function(t,e,n){t.prototype=i(o,{next:s(1,n)}),r(t,e+" Iterator")}},4238:function(t,e){},"424a":function(t,e){},"42a4":function(t,e){},"42ee":function(t,e){},"43f1":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=t=>()=>{if(null===t)return Promise.resolve(!1);const e=new t(1,1,44100),n=e.createBuffer(1,1,e.sampleRate),i=e.createBufferSource();return n.getChannelData(0)[0]=1,i.buffer=n,i.start(0,0,0),i.connect(e.destination),new Promise(t=>{e.oncomplete=({renderedBuffer:e})=>{t(0===e.getChannelData(0)[0])},e.startRendering()})}},"43f2":function(t,e){},4457:function(t,e){},4504:function(t,e,n){"use strict";var i=n("5ca1"),s=n("4bf8"),r=n("d8e8"),o=n("86cc");n("9e1e")&&i(i.P+n("c5b4"),"Object",{__defineGetter__:function(t,e){o.f(s(this),t,{get:r(e),enumerable:!0,configurable:!0})}})},4508:function(t,e){},4561:function(t,e){},"456d":function(t,e,n){var i=n("4bf8"),s=n("0d58");n("5eda")("keys",(function(){return function(t){return s(i(t))}}))},4588:function(t,e){var n=Math.ceil,i=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?i:n)(t)}},4630:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"465e":function(t,e){},4661:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=(t,e)=>n=>{n.copyFromChannel=(i,s,r=0)=>{const o=t(r),a=t(s);if(a>=n.numberOfChannels)throw e();const c=n.length,l=n.getChannelData(a),u=i.length;for(let t=o<0?-o:0;t+o<c&&t<u;t+=1)i[t]=l[t+o]},n.copyToChannel=(i,s,r=0)=>{const o=t(r),a=t(s);if(a>=n.numberOfChannels)throw e();const c=n.length,l=n.getChannelData(a),u=i.length;for(let t=o<0?-o:0;t+o<c&&t<u;t+=1)l[t+o]=i[t]}}},"467f":function(t,e,n){"use strict";var i=n("2d83");t.exports=function(t,e,n){var s=n.config.validateStatus;n.status&&s&&!s(n.status)?e(i("Request failed with status code "+n.status,n.config,null,n.request,n)):t(n)}},"46bd":function(t,e){},4720:function(t,e){},"474e":function(t,e){},"476a":function(t,e){},4771:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("8af4");const s=(t,e,n,s,r,o)=>{const a=16385,c=new Float32Array([1,1]),l=Math.PI/2,u={channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete"},h={...u,oversample:"none"},d=(t,e,i,r)=>{const o=new Float32Array(a),d=new Float32Array(a);for(let n=0;n<a;n+=1){const t=n/(a-1)*l;o[n]=Math.cos(t),d[n]=Math.sin(t)}const f=n(t,{...u,gain:0}),p=s(t,{...h,curve:o}),m=s(t,{...h,curve:c}),g=n(t,{...u,gain:0}),b=s(t,{...h,curve:d});return{connectGraph(){e.connect(f),e.connect(m.inputs[0]),e.connect(g),m.connect(i),i.connect(p.inputs[0]),i.connect(b.inputs[0]),p.connect(f.gain),b.connect(g.gain),f.connect(r,0,0),g.connect(r,0,1)},disconnectGraph(){e.disconnect(f),e.disconnect(m.inputs[0]),e.disconnect(g),m.disconnect(i),i.disconnect(p.inputs[0]),i.disconnect(b.inputs[0]),p.disconnect(f.gain),b.disconnect(g.gain),f.disconnect(r,0,0),g.disconnect(r,0,1)}}},f=(t,i,r,o)=>{const d=new Float32Array(a),f=new Float32Array(a),p=new Float32Array(a),m=new Float32Array(a),g=Math.floor(a/2);for(let e=0;e<a;e+=1)if(e>g){const t=(e-g)/(a-1-g)*l;d[e]=Math.cos(t),f[e]=Math.sin(t),p[e]=0,m[e]=1}else{const t=e/(a-1-g)*l;d[e]=1,f[e]=0,p[e]=Math.cos(t),m[e]=Math.sin(t)}const b=e(t,{channelCount:2,channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:2}),v=n(t,{...u,gain:0}),y=s(t,{...h,curve:d}),S=n(t,{...u,gain:0}),x=s(t,{...h,curve:f}),_=s(t,{...h,curve:c}),w=n(t,{...u,gain:0}),E=s(t,{...h,curve:p}),T=n(t,{...u,gain:0}),C=s(t,{...h,curve:m});return{connectGraph(){i.connect(b),i.connect(_.inputs[0]),b.connect(v,1),b.connect(S,1),b.connect(w,1),b.connect(T,1),_.connect(r),r.connect(y.inputs[0]),r.connect(x.inputs[0]),r.connect(E.inputs[0]),r.connect(C.inputs[0]),y.connect(v.gain),x.connect(S.gain),E.connect(w.gain),C.connect(T.gain),v.connect(o,0,0),w.connect(o,0,0),S.connect(o,0,1),T.connect(o,0,1)},disconnectGraph(){i.disconnect(b),i.disconnect(_.inputs[0]),b.disconnect(v,1),b.disconnect(S,1),b.disconnect(w,1),b.disconnect(T,1),_.disconnect(r),r.disconnect(y.inputs[0]),r.disconnect(x.inputs[0]),r.disconnect(E.inputs[0]),r.disconnect(C.inputs[0]),y.disconnect(v.gain),x.disconnect(S.gain),E.disconnect(w.gain),C.disconnect(T.gain),v.disconnect(o,0,0),w.disconnect(o,0,0),S.disconnect(o,0,1),T.disconnect(o,0,1)}}},p=(t,e,n,i,s)=>{if(1===e)return d(t,n,i,s);if(2===e)return f(t,n,i,s);throw r()};return(e,{channelCount:s,channelCountMode:a,pan:c,...l})=>{if("max"===a)throw r();const u=t(e,{...l,channelCount:1,channelCountMode:a,numberOfInputs:2}),h=n(e,{...l,channelCount:s,channelCountMode:a,gain:1}),d=n(e,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:c});let{connectGraph:f,disconnectGraph:m}=p(e,s,h,d,u);Object.defineProperty(d.gain,"defaultValue",{get:()=>0});const g={get bufferSize(){},get channelCount(){return h.channelCount},set channelCount(t){h.channelCount!==t&&(b&&m(),({connectGraph:f,disconnectGraph:m}=p(e,t,h,d,u)),b&&f()),h.channelCount=t},get channelCountMode(){return h.channelCountMode},set channelCountMode(t){if("clamped-max"===t||"max"===t)throw r();h.channelCountMode=t},get channelInterpretation(){return h.channelInterpretation},set channelInterpretation(t){h.channelInterpretation=t},get context(){return h.context},get inputs(){return[h]},get numberOfInputs(){return h.numberOfInputs},get numberOfOutputs(){return h.numberOfOutputs},get pan(){return d.gain},addEventListener(...t){return h.addEventListener(t[0],t[1],t[2])},dispatchEvent(...t){return h.dispatchEvent(t[0])},removeEventListener(...t){return h.removeEventListener(t[0],t[1],t[2])}};let b=!1;const v=()=>{f(),b=!0},y=()=>{m(),b=!1};return o(Object(i["a"])(g,u),v,y)}}},4779:function(t,e){},4795:function(t,e,n){var i=n("7726"),s=n("5ca1"),r=n("a25f"),o=[].slice,a=/MSIE .\./.test(r),c=function(t){return function(e,n){var i=arguments.length>2,s=!!i&&o.call(arguments,2);return t(i?function(){("function"==typeof e?e:Function(e)).apply(this,s)}:e,n)}};s(s.G+s.B+s.F*a,{setTimeout:c(i.setTimeout),setInterval:c(i.setInterval)})},"47ce":function(t,e){},"47e4":function(t,e){},"483e":function(t,e){},"48a7":function(t,e){},"48c0":function(t,e,n){"use strict";n("386b")("bold",(function(t){return function(){return t(this,"b","","")}}))},"48fc":function(t,e){},4917:function(t,e,n){"use strict";var i=n("cb7c"),s=n("9def"),r=n("0390"),o=n("5f1b");n("214f")("match",1,(function(t,e,n,a){return[function(n){var i=t(this),s=void 0==n?void 0:n[e];return void 0!==s?s.call(n,i):new RegExp(n)[e](String(i))},function(t){var e=a(n,t,this);if(e.done)return e.value;var c=i(t),l=String(this);if(!c.global)return o(c,l);var u=c.unicode;c.lastIndex=0;var h,d=[],f=0;while(null!==(h=o(c,l))){var p=String(h[0]);d[f]=p,""===p&&(c.lastIndex=r(l,s(c.lastIndex),u)),f++}return 0===f?null:d}]}))},4919:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=t=>e=>{const n=t(e);if(null===n.renderer)throw new Error("Missing the renderer of the given AudioParam in the audio graph.");return n.renderer}},4928:function(t,e){},4951:function(t,e){},"49aa":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=t=>(e,n)=>{const i=t(e,{buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1}),s=e.createBuffer(1,2,e.sampleRate);return i.buffer=s,i.loop=!0,i.connect(n),i.start(),()=>{i.stop(),i.disconnect(n)}}},"4a2b":function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("e190");const s=(t,e,n,s,r)=>()=>{const o=new WeakMap,a=async(a,c,l)=>{let u=n(a);const h=Object(i["a"])(u,c);if(!h){const t={attack:u.attack.value,channelCount:u.channelCount,channelCountMode:u.channelCountMode,channelInterpretation:u.channelInterpretation,knee:u.knee.value,ratio:u.ratio.value,release:u.release.value,threshold:u.threshold.value};u=e(c,t)}return o.set(c,u),h?(await t(c,a.attack,u.attack,l),await t(c,a.knee,u.knee,l),await t(c,a.ratio,u.ratio,l),await t(c,a.release,u.release,l),await t(c,a.threshold,u.threshold,l)):(await s(c,a.attack,u.attack,l),await s(c,a.knee,u.knee,l),await s(c,a.ratio,u.ratio,l),await s(c,a.release,u.release,l),await s(c,a.threshold,u.threshold,l)),await r(a,c,u,l),u};return{render(t,e,n){const i=o.get(e);return void 0!==i?Promise.resolve(i):a(t,e,n)}}}},"4a59":function(t,e,n){var i=n("9b43"),s=n("1fa8"),r=n("33a4"),o=n("cb7c"),a=n("9def"),c=n("27ee"),l={},u={};e=t.exports=function(t,e,n,h,d){var f,p,m,g,b=d?function(){return t}:c(t),v=i(n,h,e?2:1),y=0;if("function"!=typeof b)throw TypeError(t+" is not iterable!");if(r(b)){for(f=a(t.length);f>y;y++)if(g=e?v(o(p=t[y])[0],p[1]):v(t[y]),g===l||g===u)return g}else for(m=b.call(t);!(p=m.next()).done;)if(g=s(m,v,p.value,e),g===l||g===u)return g};e.BREAK=l,e.RETURN=u},"4a7b":function(t,e,n){"use strict";var i=n("c532");t.exports=function(t,e){e=e||{};var n={},s=["url","method","data"],r=["headers","auth","proxy","params"],o=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],a=["validateStatus"];function c(t,e){return i.isPlainObject(t)&&i.isPlainObject(e)?i.merge(t,e):i.isPlainObject(e)?i.merge({},e):i.isArray(e)?e.slice():e}function l(s){i.isUndefined(e[s])?i.isUndefined(t[s])||(n[s]=c(void 0,t[s])):n[s]=c(t[s],e[s])}i.forEach(s,(function(t){i.isUndefined(e[t])||(n[t]=c(void 0,e[t]))})),i.forEach(r,l),i.forEach(o,(function(s){i.isUndefined(e[s])?i.isUndefined(t[s])||(n[s]=c(void 0,t[s])):n[s]=c(void 0,e[s])})),i.forEach(a,(function(i){i in e?n[i]=c(t[i],e[i]):i in t&&(n[i]=c(void 0,t[i]))}));var u=s.concat(r).concat(o).concat(a),h=Object.keys(t).concat(Object.keys(e)).filter((function(t){return-1===u.indexOf(t)}));return i.forEach(h,l),n}},"4bf8":function(t,e,n){var i=n("be13");t.exports=function(t){return Object(i(t))}},"4ca8":function(t,e){},"4cb5":function(t,e){},"4dc3":function(t,e){},"4dda":function(t,e,n){n("ec30")("Float64",8,(function(t){return function(e,n,i){return t(this,e,n,i)}}))},"4de4":function(t,e){},"4df9":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("0bf9"),s=n("5b43");const r=t=>(e,n)=>{const r=t(e,t=>t.createDelay(n.maxDelayTime));return Object(s["a"])(r,n),Object(i["a"])(r,n,"delayTime"),r}},"4e79":function(t,e){},"4e8d":function(t,e){},"4ecb":function(t,e){},"4ee4":function(t,e){},"4f24":function(t,e){},"4f7f":function(t,e,n){"use strict";var i=n("c26b"),s=n("b39a"),r="Set";t.exports=n("e0b8")(r,(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(t){return i.def(s(this,r),t=0===t?0:t,t)}},i)},5046:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));class i{constructor(t){this._map=new Map(t)}get size(){return this._map.size}entries(){return this._map.entries()}forEach(t,e=null){return this._map.forEach((n,i)=>t.call(e,n,i,this))}get(t){return this._map.get(t)}has(t){return this._map.has(t)}keys(){return this._map.keys()}values(){return this._map.values()}}},"504c":function(t,e,n){var i=n("9e1e"),s=n("0d58"),r=n("6821"),o=n("52a7").f;t.exports=function(t){return function(e){var n,a=r(e),c=s(a),l=c.length,u=0,h=[];while(l>u)n=c[u++],i&&!o.call(a,n)||h.push(t?[n,a[n]]:a[n]);return h}}},5055:function(t,e){},"50a7":function(t,e){},5147:function(t,e,n){var i=n("2b4c")("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[i]=!1,!"/./"[t](e)}catch(s){}}return!0}},5181:function(t,e){},5191:function(t,e){},"51df":function(t,e){},"51fe":function(t,e){},"520a":function(t,e,n){"use strict";var i=n("0bfb"),s=RegExp.prototype.exec,r=String.prototype.replace,o=s,a="lastIndex",c=function(){var t=/a/,e=/b*/g;return s.call(t,"a"),s.call(e,"a"),0!==t[a]||0!==e[a]}(),l=void 0!==/()??/.exec("")[1],u=c||l;u&&(o=function(t){var e,n,o,u,h=this;return l&&(n=new RegExp("^"+h.source+"$(?!\\s)",i.call(h))),c&&(e=h[a]),o=s.call(h,t),c&&o&&(h[a]=h.global?o.index+o[0].length:e),l&&o&&o.length>1&&r.call(o[0],n,(function(){for(u=1;u<arguments.length-2;u++)void 0===arguments[u]&&(o[u]=void 0)})),o}),t.exports=o},"526f":function(t,e){},5270:function(t,e,n){"use strict";var i=n("c532"),s=n("c401"),r=n("2e67"),o=n("2444");function a(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){a(t),t.headers=t.headers||{},t.data=s(t.data,t.headers,t.transformRequest),t.headers=i.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),i.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]}));var e=t.adapter||o.adapter;return e(t).then((function(e){return a(t),e.data=s(e.data,e.headers,t.transformResponse),e}),(function(e){return r(e)||(a(t),e&&e.response&&(e.response.data=s(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},5289:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var i=n("383e"),s=n("1e82"),r=n("c895");const o={buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1},a=(t,e,n,a,c,l,u,h)=>class extends t{constructor(t,s=o){const r=l(t),a={...o,...s},h=c(r,a),d=u(r),f=d?e():null;super(t,!1,h,f),this._audioBufferSourceNodeRenderer=f,this._isBufferNullified=!1,this._isBufferSet=null!==s.buffer&&void 0!==s.buffer,this._nativeAudioBufferSourceNode=h,this._onended=null,this._playbackRate=n(this,d,h.playbackRate,i["b"],i["a"])}get buffer(){return this._isBufferNullified?null:this._nativeAudioBufferSourceNode.buffer}set buffer(t){try{this._nativeAudioBufferSourceNode.buffer=t}catch(e){if(null!==t||17!==e.code)throw e;if(null!==this._nativeAudioBufferSourceNode.buffer){const t=this._nativeAudioBufferSourceNode.buffer,e=t.numberOfChannels;for(let n=0;n<e;n+=1)t.getChannelData(n).fill(0);this._isBufferNullified=!0}}if(null!==t){if(this._isBufferSet)throw a();this._isBufferSet=!0}}get loop(){return this._nativeAudioBufferSourceNode.loop}set loop(t){this._nativeAudioBufferSourceNode.loop=t}get loopEnd(){return this._nativeAudioBufferSourceNode.loopEnd}set loopEnd(t){this._nativeAudioBufferSourceNode.loopEnd=t}get loopStart(){return this._nativeAudioBufferSourceNode.loopStart}set loopStart(t){this._nativeAudioBufferSourceNode.loopStart=t}get onended(){return this._onended}set onended(t){const e="function"===typeof t?h(this,t):null;this._nativeAudioBufferSourceNode.onended=e;const n=this._nativeAudioBufferSourceNode.onended;this._onended=null!==n&&n===e?t:n}get playbackRate(){return this._playbackRate}start(t=0,e=0,n){if(this._nativeAudioBufferSourceNode.start(t,e,n),null!==this._audioBufferSourceNodeRenderer)this._audioBufferSourceNodeRenderer.start=void 0===n?[t,e]:[t,e,n];else{Object(s["a"])(this);const t=()=>{this._nativeAudioBufferSourceNode.removeEventListener("ended",t),setTimeout(()=>Object(r["a"])(this),1e3)};this._nativeAudioBufferSourceNode.addEventListener("ended",t)}}stop(t=0){this._nativeAudioBufferSourceNode.stop(t),null!==this._audioBufferSourceNodeRenderer&&(this._audioBufferSourceNodeRenderer.stop=t)}}},"52a7":function(t,e){e.f={}.propertyIsEnumerable},"52ab":function(t,e){},"52f4":function(t,e){},"536b":function(t,e,n){var i=n("5ca1"),s=Math.asinh;function r(t){return isFinite(t=+t)&&0!=t?t<0?-r(-t):Math.log(t+Math.sqrt(t*t+1)):t}i(i.S+i.F*!(s&&1/s(0)>0),"Math",{asinh:r})},"53b3":function(t,e){},"545f":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=t=>{t.stop=(e=>(n=0)=>{if(n<0)throw new RangeError("The parameter can't be negative.");e.call(t,n)})(t.stop)}},5477:function(t,e){},"54a9":function(t,e){function n(t){var e=t.createGain(),n=e._voltage=r(t),s=o(n),a=o(n),c=o(n);return e._startAmount=o(a),e._endAmount=o(c),e._multiplier=o(s),e._multiplier.connect(e),e._startAmount.connect(e),e._endAmount.connect(e),e.value=s.gain,e.startValue=a.gain,e.endValue=c.gain,e.startValue.value=0,e.endValue.value=0,Object.defineProperties(e,i),e}t.exports=n;var i={attack:{value:0,writable:!0},decay:{value:0,writable:!0},sustain:{value:1,writable:!0},release:{value:0,writable:!0},getReleaseDuration:{value:function(){return this.release}},start:{value:function(t){var e=this._multiplier.gain,n=this._startAmount.gain,i=this._endAmount.gain;this._voltage.start(t),this._decayFrom=this._decayFrom=t+this.attack,this._startedAt=t;var s=this.sustain;e.cancelScheduledValues(t),n.cancelScheduledValues(t),i.cancelScheduledValues(t),i.setValueAtTime(0,t),this.attack?(e.setValueAtTime(0,t),e.linearRampToValueAtTime(1,t+this.attack),n.setValueAtTime(1,t),n.linearRampToValueAtTime(0,t+this.attack)):(e.setValueAtTime(1,t),n.setValueAtTime(0,t)),this.decay&&e.setTargetAtTime(s,this._decayFrom,a(this.decay))}},stop:{value:function(t,e){e&&(t-=this.release);var n=t+this.release;if(this.release){var i=this._multiplier.gain,s=this._startAmount.gain,r=this._endAmount.gain;i.cancelScheduledValues(t),s.cancelScheduledValues(t),r.cancelScheduledValues(t);var o=a(this.release);if(this.attack&&t<this._decayFrom){var l=c(0,1,this._startedAt,this._decayFrom,t);i.linearRampToValueAtTime(l,t),s.linearRampToValueAtTime(1-l,t),s.setTargetAtTime(0,t,o)}r.setTargetAtTime(1,t,o),i.setTargetAtTime(0,t,o)}return this._voltage.stop(n),n}},onended:{get:function(){return this._voltage.onended},set:function(t){this._voltage.onended=t}}},s=new Float32Array([1,1]);function r(t){var e=t.createBufferSource(),n=t.createBuffer(1,2,t.sampleRate);return n.getChannelData(0).set(s),e.buffer=n,e.loop=!0,e}function o(t){var e=t.context.createGain();return t.connect(e),e}function a(t){return Math.log(t+1)/Math.log(100)}function c(t,e,n,i,s){var r=e-t,o=i-n,a=s-n,c=a/o,l=t+c*r;return l<=t&&(l=t),l>=e&&(l=e),l}},"551c":function(t,e,n){"use strict";var i,s,r,o,a=n("2d00"),c=n("7726"),l=n("9b43"),u=n("23c6"),h=n("5ca1"),d=n("d3f4"),f=n("d8e8"),p=n("f605"),m=n("4a59"),g=n("ebd6"),b=n("1991").set,v=n("8079")(),y=n("a5b8"),S=n("9c80"),x=n("a25f"),_=n("bcaa"),w="Promise",E=c.TypeError,T=c.process,C=T&&T.versions,M=C&&C.v8||"",P=c[w],A="process"==u(T),I=function(){},L=s=y.f,O=!!function(){try{var t=P.resolve(1),e=(t.constructor={})[n("2b4c")("species")]=function(t){t(I,I)};return(A||"function"==typeof PromiseRejectionEvent)&&t.then(I)instanceof e&&0!==M.indexOf("6.6")&&-1===x.indexOf("Chrome/66")}catch(i){}}(),k=function(t){var e;return!(!d(t)||"function"!=typeof(e=t.then))&&e},R=function(t,e){if(!t._n){t._n=!0;var n=t._c;v((function(){var i=t._v,s=1==t._s,r=0,o=function(e){var n,r,o,a=s?e.ok:e.fail,c=e.resolve,l=e.reject,u=e.domain;try{a?(s||(2==t._h&&V(t),t._h=1),!0===a?n=i:(u&&u.enter(),n=a(i),u&&(u.exit(),o=!0)),n===e.promise?l(E("Promise-chain cycle")):(r=k(n))?r.call(n,c,l):c(n)):l(i)}catch(h){u&&!o&&u.exit(),l(h)}};while(n.length>r)o(n[r++]);t._c=[],t._n=!1,e&&!t._h&&N(t)}))}},N=function(t){b.call(c,(function(){var e,n,i,s=t._v,r=D(t);if(r&&(e=S((function(){A?T.emit("unhandledRejection",s,t):(n=c.onunhandledrejection)?n({promise:t,reason:s}):(i=c.console)&&i.error&&i.error("Unhandled promise rejection",s)})),t._h=A||D(t)?2:1),t._a=void 0,r&&e.e)throw e.v}))},D=function(t){return 1!==t._h&&0===(t._a||t._c).length},V=function(t){b.call(c,(function(){var e;A?T.emit("rejectionHandled",t):(e=c.onrejectionhandled)&&e({promise:t,reason:t._v})}))},B=function(t){var e=this;e._d||(e._d=!0,e=e._w||e,e._v=t,e._s=2,e._a||(e._a=e._c.slice()),R(e,!0))},F=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw E("Promise can't be resolved itself");(e=k(t))?v((function(){var i={_w:n,_d:!1};try{e.call(t,l(F,i,1),l(B,i,1))}catch(s){B.call(i,s)}})):(n._v=t,n._s=1,R(n,!1))}catch(i){B.call({_w:n,_d:!1},i)}}};O||(P=function(t){p(this,P,w,"_h"),f(t),i.call(this);try{t(l(F,this,1),l(B,this,1))}catch(e){B.call(this,e)}},i=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},i.prototype=n("dcbc")(P.prototype,{then:function(t,e){var n=L(g(this,P));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=A?T.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&R(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),r=function(){var t=new i;this.promise=t,this.resolve=l(F,t,1),this.reject=l(B,t,1)},y.f=L=function(t){return t===P||t===o?new r(t):s(t)}),h(h.G+h.W+h.F*!O,{Promise:P}),n("7f20")(P,w),n("7a56")(w),o=n("8378")[w],h(h.S+h.F*!O,w,{reject:function(t){var e=L(this),n=e.reject;return n(t),e.promise}}),h(h.S+h.F*(a||!O),w,{resolve:function(t){return _(a&&this===o?P:this,t)}}),h(h.S+h.F*!(O&&n("5cc5")((function(t){P.all(t)["catch"](I)}))),w,{all:function(t){var e=this,n=L(e),i=n.resolve,s=n.reject,r=S((function(){var n=[],r=0,o=1;m(t,!1,(function(t){var a=r++,c=!1;n.push(void 0),o++,e.resolve(t).then((function(t){c||(c=!0,n[a]=t,--o||i(n))}),s)})),--o||i(n)}));return r.e&&s(r.v),n.promise},race:function(t){var e=this,n=L(e),i=n.reject,s=S((function(){m(t,!1,(function(t){e.resolve(t).then(n.resolve,i)}))}));return s.e&&i(s.v),n.promise}})},5537:function(t,e,n){var i=n("8378"),s=n("7726"),r="__core-js_shared__",o=s[r]||(s[r]={});(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:i.version,mode:n("2d00")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},"554c":function(t,e){},"55aa":function(t,e){},"55dd":function(t,e,n){"use strict";var i=n("5ca1"),s=n("d8e8"),r=n("4bf8"),o=n("79e5"),a=[].sort,c=[1,2,3];i(i.P+i.F*(o((function(){c.sort(void 0)}))||!o((function(){c.sort(null)}))||!n("2f21")(a)),"Array",{sort:function(t){return void 0===t?a.call(r(this)):a.call(r(this),s(t))}})},"565e":function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("aa59");const s=(t,e,n,s,r,o,a,c)=>{const l=[];return(u,h)=>n(u).render(u,h,l).then(()=>Promise.all(Array.from(s(h)).map(t=>n(t).render(t,h,l)))).then(()=>r(h)).then(n=>("function"!==typeof n.copyFromChannel?(a(n),Object(i["a"])(n)):e(o,()=>o(n))||c(n),t.add(n),n))}},5695:function(t,e,n){var i=n("5ca1"),s=n("77f1"),r=String.fromCharCode,o=String.fromCodePoint;i(i.S+i.F*(!!o&&1!=o.length),"String",{fromCodePoint:function(t){var e,n=[],i=arguments.length,o=0;while(i>o){if(e=+arguments[o++],s(e,1114111)!==e)throw RangeError(e+" is not a valid code point");n.push(e<65536?r(e):r(55296+((e-=65536)>>10),e%1024+56320))}return n.join("")}})},"56c5":function(t,e){},5739:function(t,e){},5758:function(t,e){},"57f0":function(t,e,n){var i=n("d3f4");n("5eda")("isSealed",(function(t){return function(e){return!i(e)||!!t&&t(e)}}))},5800:function(t,e){},"58a0":function(t,e){},"58a1":function(t,e){},"59e9":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=t=>"context"in t},"5a62":function(t,e){},"5a7f":function(t,e){},"5a99":function(t,e){},"5ad3":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=(t,e)=>(n,i,s)=>{const r=n.destination;if(r.channelCount!==i)try{r.channelCount=i}catch{}s&&"explicit"!==r.channelCountMode&&(r.channelCountMode="explicit"),0===r.maxChannelCount&&Object.defineProperty(r,"maxChannelCount",{value:i});const o=t(n,{channelCount:i,channelCountMode:r.channelCountMode,channelInterpretation:r.channelInterpretation,gain:1});return e(o,"channelCount",t=>()=>t.call(o),t=>e=>{t.call(o,e);try{r.channelCount=e}catch(n){if(e>r.maxChannelCount)throw n}}),e(o,"channelCountMode",t=>()=>t.call(o),t=>e=>{t.call(o,e),r.channelCountMode=e}),e(o,"channelInterpretation",t=>()=>t.call(o),t=>e=>{t.call(o,e),r.channelInterpretation=e}),Object.defineProperty(o,"maxChannelCount",{get:()=>r.maxChannelCount}),o.connect(r),o}},"5aef":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=(t,e,n)=>async(i,s,r,o)=>{const a=t(i),c=[...o,i];await Promise.all(a.activeInputs.map((t,o)=>Array.from(t).filter(([t])=>!c.includes(t)).map(async([t,a])=>{const l=e(t),u=await l.render(t,s,c),h=i.context.destination;n(t)||i===h&&n(i)||u.connect(r,a,o)})).reduce((t,e)=>[...t,...e],[]))}},"5b43":function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("180a");const s=(t,e)=>{Object(i["a"])(t,e,"channelCount"),Object(i["a"])(t,e,"channelCountMode"),Object(i["a"])(t,e,"channelInterpretation")}},"5b94":function(t,e){},"5bb6":function(t,e){},"5c3a":function(t,e){},"5c79":function(t,e){},"5ca1":function(t,e,n){var i=n("7726"),s=n("8378"),r=n("32e9"),o=n("2aba"),a=n("9b43"),c="prototype",l=function(t,e,n){var u,h,d,f,p=t&l.F,m=t&l.G,g=t&l.S,b=t&l.P,v=t&l.B,y=m?i:g?i[e]||(i[e]={}):(i[e]||{})[c],S=m?s:s[e]||(s[e]={}),x=S[c]||(S[c]={});for(u in m&&(n=e),n)h=!p&&y&&void 0!==y[u],d=(h?y:n)[u],f=v&&h?a(d,i):b&&"function"==typeof d?a(Function.call,d):d,y&&o(y,u,d,t&l.U),S[u]!=d&&r(S,u,f),b&&x[u]!=d&&(x[u]=d)};i.core=s,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,t.exports=l},"5cbe":function(t,e){},"5cc5":function(t,e,n){var i=n("2b4c")("iterator"),s=!1;try{var r=[7][i]();r["return"]=function(){s=!0},Array.from(r,(function(){throw 2}))}catch(o){}t.exports=function(t,e){if(!e&&!s)return!1;var n=!1;try{var r=[7],a=r[i]();a.next=function(){return{done:n=!0}},r[i]=function(){return a},t(r)}catch(o){}return n}},"5d24":function(t,e){},"5d45":function(t,e){},"5d55":function(t,e){},"5d98":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=(t,e,n,i)=>{for(const s of t)if(n(s)){if(i)return!1;throw Error("The set contains at least one similar element.")}return t.add(e),!0}},"5dbc":function(t,e,n){var i=n("d3f4"),s=n("8b97").set;t.exports=function(t,e,n){var r,o=e.constructor;return o!==n&&"function"==typeof o&&(r=o.prototype)!==n.prototype&&i(r)&&s&&s(t,r),t}},"5dd3":function(t,e){},"5df2":function(t,e,n){var i=n("5ca1"),s=n("d752");i(i.S+i.F*(Number.parseFloat!=s),"Number",{parseFloat:s})},"5df3":function(t,e,n){"use strict";var i=n("02f4")(!0);n("01f9")(String,"String",(function(t){this._t=String(t),this._i=0}),(function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=i(e,n),this._i+=t.length,{value:t,done:!1})}))},"5ebd":function(t,e){},"5eda":function(t,e,n){var i=n("5ca1"),s=n("8378"),r=n("79e5");t.exports=function(t,e){var n=(s.Object||{})[t]||Object[t],o={};o[t]=e(n),i(i.S+i.F*r((function(){n(1)})),"Object",o)}},"5f02":function(t,e,n){"use strict";t.exports=function(t){return"object"===typeof t&&!0===t.isAxiosError}},"5f1b":function(t,e,n){"use strict";var i=n("23c6"),s=RegExp.prototype.exec;t.exports=function(t,e){var n=t.exec;if("function"===typeof n){var r=n.call(t,e);if("object"!==typeof r)throw new TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==i(t))throw new TypeError("RegExp#exec called on incompatible receiver");return s.call(t,e)}},"5f63":function(t,e){},"5faf":function(t,e){},6011:function(t,e){},6136:function(t,e){},"613b":function(t,e,n){var i=n("5537")("keys"),s=n("ca5a");t.exports=function(t){return i[t]||(i[t]=s(t))}},6154:function(t,e){},"618a":function(t,e){},6218:function(t,e){},6269:function(t,e){},"626a":function(t,e,n){var i=n("2d95");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==i(t)?t.split(""):Object(t)}},"63d9":function(t,e,n){n("ec30")("Float32",4,(function(t){return function(e,n,i){return t(this,e,n,i)}}))},"63fe":function(t,e){},"643e":function(t,e,n){"use strict";var i=n("dcbc"),s=n("67ab").getWeak,r=n("cb7c"),o=n("d3f4"),a=n("f605"),c=n("4a59"),l=n("0a49"),u=n("69a8"),h=n("b39a"),d=l(5),f=l(6),p=0,m=function(t){return t._l||(t._l=new g)},g=function(){this.a=[]},b=function(t,e){return d(t.a,(function(t){return t[0]===e}))};g.prototype={get:function(t){var e=b(this,t);if(e)return e[1]},has:function(t){return!!b(this,t)},set:function(t,e){var n=b(this,t);n?n[1]=e:this.a.push([t,e])},delete:function(t){var e=f(this.a,(function(e){return e[0]===t}));return~e&&this.a.splice(e,1),!!~e}},t.exports={getConstructor:function(t,e,n,r){var l=t((function(t,i){a(t,l,e,"_i"),t._t=e,t._i=p++,t._l=void 0,void 0!=i&&c(i,n,t[r],t)}));return i(l.prototype,{delete:function(t){if(!o(t))return!1;var n=s(t);return!0===n?m(h(this,e))["delete"](t):n&&u(n,this._i)&&delete n[this._i]},has:function(t){if(!o(t))return!1;var n=s(t);return!0===n?m(h(this,e)).has(t):n&&u(n,this._i)}}),l},def:function(t,e,n){var i=s(r(e),!0);return!0===i?m(t).set(e,n):i[t._i]=n,t},ufstore:m}},"64ac":function(t,e){},"64be":function(t,e){},"64d5":function(t,e,n){"use strict";var i=n("5ca1"),s=n("4bf8"),r=n("6a99"),o=n("38fd"),a=n("11e9").f;n("9e1e")&&i(i.P+n("c5b4"),"Object",{__lookupSetter__:function(t){var e,n=s(this),i=r(t,!0);do{if(e=a(n,i))return e.set}while(n=o(n))}})},"650f":function(t,e){},6515:function(t,e){},"654e":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=t=>e=>{const n=t(e);if(null===n.renderer)throw new Error("Missing the renderer of the given AudioNode in the audio graph.");return n.renderer}},6567:function(t,e){},6598:function(t,e){},"65c6":function(t,e){},"65f3":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=(t,e)=>{const n=[];for(let i=0;i<t;i+=1){const t=[],s="number"===typeof e?e:e[i];for(let e=0;e<s;e+=1)t.push(new Float32Array(128));n.push(t)}return n}},"66c8":function(t,e,n){var i=n("d3f4");n("5eda")("isFrozen",(function(t){return function(e){return!i(e)||!!t&&t(e)}}))},6718:function(t,e){},"673e":function(t,e,n){"use strict";n("386b")("sub",(function(t){return function(){return t(this,"sub","","")}}))},6760:function(t,e){},6762:function(t,e,n){"use strict";var i=n("5ca1"),s=n("c366")(!0);i(i.P,"Array",{includes:function(t){return s(this,t,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")("includes")},"67ab":function(t,e,n){var i=n("ca5a")("meta"),s=n("d3f4"),r=n("69a8"),o=n("86cc").f,a=0,c=Object.isExtensible||function(){return!0},l=!n("79e5")((function(){return c(Object.preventExtensions({}))})),u=function(t){o(t,i,{value:{i:"O"+ ++a,w:{}}})},h=function(t,e){if(!s(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!r(t,i)){if(!c(t))return"F";if(!e)return"E";u(t)}return t[i].i},d=function(t,e){if(!r(t,i)){if(!c(t))return!0;if(!e)return!1;u(t)}return t[i].w},f=function(t){return l&&p.NEED&&c(t)&&!r(t,i)&&u(t),t},p=t.exports={KEY:i,NEED:!1,fastKey:h,getWeak:d,onFreeze:f}},"67df":function(t,e){},6821:function(t,e,n){var i=n("626a"),s=n("be13");t.exports=function(t){return i(s(t))}},6915:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=t=>(e,n)=>t(e,t=>t.createMediaElementSource(n.mediaElement))},"69a8":function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},"69e5":function(t,e){},"6a5a":function(t,e){},"6a6f":function(t,e){},"6a99":function(t,e,n){var i=n("d3f4");t.exports=function(t,e){if(!i(t))return t;var n,s;if(e&&"function"==typeof(n=t.toString)&&!i(s=n.call(t)))return s;if("function"==typeof(n=t.valueOf)&&!i(s=n.call(t)))return s;if(!e&&"function"==typeof(n=t.toString)&&!i(s=n.call(t)))return s;throw TypeError("Can't convert object to primitive value")}},"6aa2":function(t,e,n){n("ec30")("Uint8",1,(function(t){return function(e,n,i){return t(this,e,n,i)}}),!0)},"6ab5":function(t,e){},"6b2f":function(t,e){},"6b54":function(t,e,n){"use strict";n("3846");var i=n("cb7c"),s=n("0bfb"),r=n("9e1e"),o="toString",a=/./[o],c=function(t){n("2aba")(RegExp.prototype,o,t,!0)};n("79e5")((function(){return"/a/b"!=a.call({source:"a",flags:"b"})}))?c((function(){var t=i(this);return"/".concat(t.source,"/","flags"in t?t.flags:!r&&t instanceof RegExp?s.call(t):void 0)})):a.name!=o&&c((function(){return a.call(this)}))},"6c1a":function(t,e,n){var i=n("5ca1"),s=n("2d5c"),r=Math.exp;i(i.S+i.F*n("79e5")((function(){return-2e-17!=!Math.sinh(-2e-17)})),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(s(t)-s(-t))/2:(r(t-1)-r(-t-1))*(Math.E/2)}})},"6c37":function(t,e,n){"use strict";n("386b")("fontcolor",(function(t){return function(e){return t(this,"font","color",e)}}))},"6c69":function(t,e){function n(t,e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t)){var n=[],i=!0,s=!1,r=void 0;try{for(var o,a=t[Symbol.iterator]();!(i=(o=a.next()).done);i=!0)if(n.push(o.value),e&&n.length===e)break}catch(c){s=!0,r=c}finally{try{i||null==a["return"]||a["return"]()}finally{if(s)throw r}}return n}}t.exports=n},"6c7b":function(t,e,n){var i=n("5ca1");i(i.P,"Array",{fill:n("36bd")}),n("9c6c")("fill")},"6c7c":function(t,e){},"6c8d":function(t,e){},"6cc2":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=t=>null===t?null:t.hasOwnProperty("AudioWorkletNode")?t.AudioWorkletNode:null},"6ced":function(t,e){},"6d3d":function(t,e){},"6f2e":function(t,e){},"6f36":function(t,e){},"6f55":function(t,e){},"6f7b":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=(t,e)=>n=>t.has(n)||e(n)},"6fc3":function(t,e){},"70d4":function(t,e){function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}t.exports=n},7160:function(t,e){},"716e":function(t,e){},"719c":function(t,e){},7288:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=()=>{try{return new DOMException("","AbortError")}catch(t){return t.code=20,t.name="AbortError",t}}},7333:function(t,e,n){"use strict";var i=n("9e1e"),s=n("0d58"),r=n("2621"),o=n("52a7"),a=n("4bf8"),c=n("626a"),l=Object.assign;t.exports=!l||n("79e5")((function(){var t={},e={},n=Symbol(),i="abcdefghijklmnopqrst";return t[n]=7,i.split("").forEach((function(t){e[t]=t})),7!=l({},t)[n]||Object.keys(l({},e)).join("")!=i}))?function(t,e){var n=a(t),l=arguments.length,u=1,h=r.f,d=o.f;while(l>u){var f,p=c(arguments[u++]),m=h?s(p).concat(h(p)):s(p),g=m.length,b=0;while(g>b)f=m[b++],i&&!d.call(p,f)||(n[f]=p[f])}return n}:l},"73b1":function(t,e){},"73c8":function(t,e){},"73ef":function(t,e){},"744f":function(t,e,n){var i=n("5ca1");i(i.P,"Array",{copyWithin:n("ba92")}),n("9c6c")("copyWithin")},7487:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=t=>(e,{disableNormalization:n,imag:i,real:s})=>{const r=t(e),o=new Float32Array(i),a=new Float32Array(s);return null!==r?r.createPeriodicWave(a,o,{disableNormalization:n}):e.createPeriodicWave(a,o,{disableNormalization:n})}},"74eb":function(t,e){},7502:function(t,e){},7514:function(t,e,n){"use strict";var i=n("5ca1"),s=n("0a49")(5),r="find",o=!0;r in[]&&Array(1)[r]((function(){o=!1})),i(i.P+i.F*o,"Array",{find:function(t){return s(this,t,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")(r)},"752e":function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return s})),n.d(e,"c",(function(){return r})),n.d(e,"d",(function(){return o})),n.d(e,"e",(function(){return a})),n.d(e,"f",(function(){return c})),n.d(e,"g",(function(){return l})),n.d(e,"i",(function(){return u})),n.d(e,"h",(function(){return h})),n.d(e,"j",(function(){return d})),n.d(e,"k",(function(){return f}));const i=new WeakSet,s=new WeakMap,r=new WeakMap,o=new WeakMap,a=new WeakMap,c=new WeakMap,l=new WeakMap,u=new WeakMap,h=new WeakMap,d=new WeakMap,f=new WeakMap},7553:function(t,e){},7610:function(t,e){},"763e":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("383e");const s={channelCount:2,channelCountMode:"clamped-max",channelInterpretation:"speakers",coneInnerAngle:360,coneOuterAngle:360,coneOuterGain:0,distanceModel:"inverse",maxDistance:1e4,orientationX:1,orientationY:0,orientationZ:0,panningModel:"equalpower",positionX:0,positionY:0,positionZ:0,refDistance:1,rolloffFactor:1},r=(t,e,n,r,o,a)=>class extends t{constructor(t,c=s){const l=o(t),u={...s,...c},h=n(l,u),d=a(l),f=d?r():null;super(t,!1,h,f),this._nativePannerNode=h,this._orientationX=e(this,d,h.orientationX,i["b"],i["a"]),this._orientationY=e(this,d,h.orientationY,i["b"],i["a"]),this._orientationZ=e(this,d,h.orientationZ,i["b"],i["a"]),this._positionX=e(this,d,h.positionX,i["b"],i["a"]),this._positionY=e(this,d,h.positionY,i["b"],i["a"]),this._positionZ=e(this,d,h.positionZ,i["b"],i["a"])}get coneInnerAngle(){return this._nativePannerNode.coneInnerAngle}set coneInnerAngle(t){this._nativePannerNode.coneInnerAngle=t}get coneOuterAngle(){return this._nativePannerNode.coneOuterAngle}set coneOuterAngle(t){this._nativePannerNode.coneOuterAngle=t}get coneOuterGain(){return this._nativePannerNode.coneOuterGain}set coneOuterGain(t){this._nativePannerNode.coneOuterGain=t}get distanceModel(){return this._nativePannerNode.distanceModel}set distanceModel(t){this._nativePannerNode.distanceModel=t}get maxDistance(){return this._nativePannerNode.maxDistance}set maxDistance(t){this._nativePannerNode.maxDistance=t}get orientationX(){return this._orientationX}get orientationY(){return this._orientationY}get orientationZ(){return this._orientationZ}get panningModel(){return this._nativePannerNode.panningModel}set panningModel(t){this._nativePannerNode.panningModel=t}get positionX(){return this._positionX}get positionY(){return this._positionY}get positionZ(){return this._positionZ}get refDistance(){return this._nativePannerNode.refDistance}set refDistance(t){this._nativePannerNode.refDistance=t}get rolloffFactor(){return this._nativePannerNode.rolloffFactor}set rolloffFactor(t){this._nativePannerNode.rolloffFactor=t}}},"767d":function(t,e){},"76a3":function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));const i=t=>{const{port1:e}=new MessageChannel;try{e.postMessage(t)}finally{e.close()}},s=(t,e,n,s,r,o)=>(a,c,l,u,h,d)=>{if(null!==l)try{const n=e(a,t=>new l(t,u,d)),i=new Map;let r=null;if(Object.defineProperties(n,{channelCount:{get:()=>d.channelCount,set:()=>{throw t()}},channelCountMode:{get:()=>"explicit",set:()=>{throw t()}},onprocessorerror:{get:()=>r,set:t=>{"function"===typeof r&&n.removeEventListener("processorerror",r),r="function"===typeof t?t:null,"function"===typeof r&&n.addEventListener("processorerror",r)}}}),n.addEventListener=(t=>(...e)=>{if("processorerror"===e[0]){const t="function"===typeof e[1]?e[1]:"object"===typeof e[1]&&null!==e[1]&&"function"===typeof e[1].handleEvent?e[1].handleEvent:null;if(null!==t){const n=i.get(e[1]);void 0!==n?e[1]=n:(e[1]=n=>{t(new ErrorEvent(e[0],{...n,error:new Error}))},i.set(t,e[1]))}}return t.call(n,e[0],e[1],e[2])})(n.addEventListener),n.removeEventListener=(t=>(...e)=>{if("processorerror"===e[0]){const t=i.get(e[1]);void 0!==t&&(i.delete(e[1]),e[1]=t)}return t.call(n,e[0],e[1],e[2])})(n.removeEventListener),0!==d.numberOfOutputs){const t=s(a,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});n.connect(t).connect(t.context.destination);const e=()=>t.disconnect(),i=()=>t.connect(t.context.destination);return o(n,e,i)}return n}catch(f){if(11===f.code)throw r();throw f}if(void 0===h)throw r();return i(d),n(a,c,h,d)}},7726:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"777a":function(t,e){},"77e9":function(t,e,n){"use strict";n("5d55"),n("2b78"),n("2dad"),n("5d24"),n("fae9"),n("ae66"),n("6f55"),n("5dd3"),n("efdd"),n("3b7d"),n("cc7a"),n("c15b"),n("d8a7"),n("1f43"),n("974a"),n("5c79"),n("17d6"),n("1dc8"),n("e9a6"),n("4f24"),n("1289"),n("fff6"),n("b08a"),n("d961"),n("c6b2"),n("5a99"),n("9696"),n("23a9"),n("6598"),n("f9a2"),n("d2f5"),n("9cad"),n("a199"),n("a6fa"),n("39b7"),n("0c95"),n("29f8"),n("137b"),n("4149"),n("18b3"),n("f275"),n("37e5"),n("ec19"),n("871f"),n("3cf6"),n("4779"),n("ae2c"),n("1b30"),n("8897"),n("8634"),n("0be3"),n("1b1e"),n("86c7"),n("c7bd"),n("b8ae"),n("d179"),n("b81c"),n("e508"),n("1104"),n("b0f4"),n("204f"),n("359c"),n("d25a"),n("c7d6"),n("8c3b"),n("8681"),n("5a7f"),n("7961"),n("01e7"),n("b5f9"),n("6c8d"),n("b3b4"),n("f5be"),n("d890"),n("930b"),n("0a90"),n("382c"),n("844a"),n("7d27"),n("9aa6"),n("8a64"),n("48fc"),n("4e8d")},"77f1":function(t,e,n){var i=n("4588"),s=Math.max,r=Math.min;t.exports=function(t,e){return t=i(t),t<0?s(t+e,0):r(t,e)}},"782c":function(t,e){},"782d":function(t,e){},7872:function(t,e,n){var i=n("5ca1");i(i.S,"Math",{log10:function(t){return Math.log(t)*Math.LOG10E}})},"788d":function(t,e,n){var i=n("5ca1"),s=n("6821"),r=n("9def");i(i.S,"String",{raw:function(t){var e=s(t.raw),n=r(e.length),i=arguments.length,o=[],a=0;while(n>a)o.push(String(e[a++])),a<i&&o.push(String(arguments[a]));return o.join("")}})},7961:function(t,e){},"79c1":function(t,e){},"79e5":function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},"7a56":function(t,e,n){"use strict";var i=n("7726"),s=n("86cc"),r=n("9e1e"),o=n("2b4c")("species");t.exports=function(t){var e=i[t];r&&e&&!e[o]&&s.f(e,o,{configurable:!0,get:function(){return this}})}},"7a77":function(t,e,n){"use strict";function i(t){this.message=t}i.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},i.prototype.__CANCEL__=!0,t.exports=i},"7aac":function(t,e,n){"use strict";var i=n("c532");t.exports=i.isStandardBrowserEnv()?function(){return{write:function(t,e,n,s,r,o){var a=[];a.push(t+"="+encodeURIComponent(e)),i.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),i.isString(s)&&a.push("path="+s),i.isString(r)&&a.push("domain="+r),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},"7ab6":function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));const i={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",delayTime:0,maxDelayTime:1},s=(t,e,n,s,r,o)=>class extends t{constructor(t,a=i){const c=r(t),l={...i,...a},u=s(c,l),h=o(c),d=h?n(l.maxDelayTime):null;super(t,!1,u,d),this._delayTime=e(this,h,u.delayTime,l.maxDelayTime,0)}get delayTime(){return this._delayTime}}},"7af0":function(t,e){},"7af2":function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("050d");const s=(t,e,n,s)=>{Object(i["a"])(e)?t.disconnect(e.inputs[s],n,0):t.disconnect(e,n,s)}},"7b2d":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=()=>{try{return new DOMException("","IndexSizeError")}catch(t){return t.code=1,t.name="IndexSizeError",t}}},"7b45":function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("050d");const s=(t,e,n,s)=>{if(Object(i["a"])(e)){const i=e.inputs[s];return t.connect(i,n,0),[i,n,0]}return t.connect(e,n,s),[e,n,s]}},"7b7b":function(t,e){},"7bbc":function(t,e,n){var i=n("6821"),s=n("9093").f,r={}.toString,o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],a=function(t){try{return s(t)}catch(e){return o.slice()}};t.exports.f=function(t){return o&&"[object Window]"==r.call(t)?a(t):s(i(t))}},"7c27":function(t,e,n){"use strict";var i=n("ab19"),s=n("3b96");function r(t,e,n){if(1===arguments.length)return function(e,n){return r(t,e,n)};var c=n||{},l=c.isSoundfontURL||o,u=c.nameToUrl||a,h=l(e)?e:u(e,c.soundfont,c.format);return i(t,h,{only:c.only||c.notes}).then((function(n){var i=s(t,n,c).connect(c.destination?c.destination:t.destination);return i.url=h,i.name=e,i}))}function o(t){return/\.js(\?.*)?$/i.test(t)}function a(t,e,n){return n="ogg"===n?n:"mp3",e="FluidR3_GM"===e?e:"MusyngKite","https://gleitz.github.io/midi-js-soundfonts/"+e+"/"+t+"-"+n+".js"}var c=n("7eb6");c.instrument=r,c.nameToUrl=a,t.exports&&(t.exports=c),"undefined"!==typeof window&&(window.Soundfont=c)},"7cdf":function(t,e,n){var i=n("5ca1");i(i.S,"Number",{isInteger:n("9c12")})},"7d27":function(t,e){},"7d82":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("752e"),s=n("d057");const r=t=>Object(s["a"])(i["b"],t)},"7dbe":function(t,e){},"7e19":function(t,e){},"7e92":function(t,e){},"7eb5":function(t,e){},"7eb6":function(t,e,n){"use strict";var i=n("1c15");function s(t,e){if(console.warn("new Soundfont() is deprected"),console.log("Please use Soundfont.instrument() instead of new Soundfont().instrument()"),!(this instanceof s))return new s(t);this.nameToUrl=e||s.nameToUrl,this.ctx=t,this.instruments={},this.promises=[]}function r(t,e,n){return console.warn("Soundfont.loadBuffers is deprecate."),console.log("Use Soundfont.instrument(..) and get buffers properties from the result."),s.instrument(t,e,n).then((function(t){return t.buffers}))}function o(t,e){return e=e||{},function(n,s,r,o){console.warn("The oscillator player is deprecated."),console.log("Starting with version 0.9.0 you will have to wait until the soundfont is loaded to play sounds.");var a=n>0&&n<129?+n:i.midi(n),c=a?i.midiToFreq(a,440):null;if(c){r=r||.2,o=o||{};var l=o.destination||e.destination||t.destination,u=o.vcoType||e.vcoType||"sine",h=o.gain||e.gain||.4,d=t.createOscillator();d.type=u,d.frequency.value=c;var f=t.createGain();return f.gain.value=h,d.connect(f),f.connect(l),d.start(s),r>0&&d.stop(s+r),d}}}s.prototype.onready=function(t){console.warn("deprecated API"),console.log("Please use Promise.all(Soundfont.instrument(), Soundfont.instrument()).then() instead of new Soundfont().onready()"),Promise.all(this.promises).then(t)},s.prototype.instrument=function(t,e){console.warn("new Soundfont().instrument() is deprecated."),console.log("Please use Soundfont.instrument() instead.");var n=this.ctx;if(t=t||"default",t in this.instruments)return this.instruments[t];var i={name:t,play:o(n,e)};if(this.instruments[t]=i,"default"!==t){var r=s.instrument(n,t,e).then((function(t){return i.play=t.play,i}));this.promises.push(r),i.onready=function(t){console.warn("onready is deprecated. Use Soundfont.instrument().then()"),r.then(t)}}else i.onready=function(t){console.warn("onready is deprecated. Use Soundfont.instrument().then()"),t()};return i},s.loadBuffers=r,s.noteToMidi=i.midi,t.exports=s},"7f19":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=t=>()=>{if(null===t)return!1;const e=new t(1,1,44100),n=e.createGain(),i=n.connect(n)===n;return n.disconnect(n),i}},"7f20":function(t,e,n){var i=n("86cc").f,s=n("69a8"),r=n("2b4c")("toStringTag");t.exports=function(t,e,n){t&&!s(t=n?t:t.prototype,r)&&i(t,r,{configurable:!0,value:e})}},"7f25":function(t,e,n){var i=n("5ca1"),s=n("d6c6"),r=Math.sqrt,o=Math.acosh;i(i.S+i.F*!(o&&710==Math.floor(o(Number.MAX_VALUE))&&o(1/0)==1/0),"Math",{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?Math.log(t)+Math.LN2:s(t-1+r(t-1)*r(t+1))}})},"7f5d":function(t,e){},"7f7b":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=t=>{t.start=(e=>(n=0,i=0,s)=>{const r=t.buffer,o=null===r?i:Math.min(r.duration,i);null!==r&&o>r.duration-.5/t.context.sampleRate?e.call(t,n,0,0):e.call(t,n,o,s)})(t.start)}},"7f7f":function(t,e,n){var i=n("86cc").f,s=Function.prototype,r=/^\s*function ([^ (]*)/,o="name";o in s||n("9e1e")&&i(s,o,{configurable:!0,get:function(){try{return(""+this).match(r)[1]}catch(t){return""}}})},"7f8d":function(t,e,n){"use strict";var i=Array.isArray,s=function(t){return t&&"object"===typeof t},r={};t.exports=function(t){return t.schedule=function(e,n){var o,a,c,l,u=t.context.currentTime,h=e<u?u:e;return t.emit("schedule",h,n),n.map((function(e){return e?(i(e)?(o=e[0],a=e[1]):(o=e.time,a=e),s(a)?(c=a.name||a.key||a.note||a.midi||null,l=a):(c=a,l=r),t.start(c,h+(o||0),l)):null}))},t}},"7fa0":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=t=>{t.start=(e=>(n=0,i=0,s)=>{if("number"===typeof s&&s<0||i<0||n<0)throw new RangeError("The parameters can't be negative.");e.call(t,n,i,s)})(t.start)}},"7faf":function(t,e){},"7fd1":function(t,e){},8058:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("e190");const s=(t,e,n)=>()=>{const s=new WeakMap,r=async(r,o,a)=>{let c=e(r);const l=Object(i["a"])(c,o);if(!l){const e={channelCount:c.channelCount,channelCountMode:c.channelCountMode,channelInterpretation:c.channelInterpretation,fftSize:c.fftSize,maxDecibels:c.maxDecibels,minDecibels:c.minDecibels,smoothingTimeConstant:c.smoothingTimeConstant};c=t(o,e)}return s.set(o,c),await n(r,o,c,a),c};return{render(t,e,n){const i=s.get(e);return void 0!==i?Promise.resolve(i):r(t,e,n)}}}},8073:function(t,e){},8079:function(t,e,n){var i=n("7726"),s=n("1991").set,r=i.MutationObserver||i.WebKitMutationObserver,o=i.process,a=i.Promise,c="process"==n("2d95")(o);t.exports=function(){var t,e,n,l=function(){var i,s;c&&(i=o.domain)&&i.exit();while(t){s=t.fn,t=t.next;try{s()}catch(r){throw t?n():e=void 0,r}}e=void 0,i&&i.enter()};if(c)n=function(){o.nextTick(l)};else if(!r||i.navigator&&i.navigator.standalone)if(a&&a.resolve){var u=a.resolve(void 0);n=function(){u.then(l)}}else n=function(){s.call(i,l)};else{var h=!0,d=document.createTextNode("");new r(l).observe(d,{characterData:!0}),n=function(){d.data=h=!h}}return function(i){var s={fn:i,next:void 0};e&&(e.next=s),t||(t=s,n()),e=s}}},"80ae":function(t,e){},"80f7":function(t,e){},8177:function(t,e){},"81cf":function(t,e){},"823e":function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var i=n("0bf9"),s=n("5b43"),r=n("7fa0"),o=n("545f");const a=(t,e,n,a,c,l)=>(u,h)=>{if(void 0===u.createConstantSource)return a(u,h);const d=n(u,t=>t.createConstantSource());return Object(s["a"])(d,h),Object(i["a"])(d,h,"offset"),e(c,()=>c(u))||Object(r["a"])(d),e(l,()=>l(u))||Object(o["a"])(d),t(u,d),d}},"82df":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=t=>e=>{e.copyFromChannel=(n=>(i,s,r=0)=>{const o=t(r),a=t(s);if(o<e.length)return n.call(e,i,a,o)})(e.copyFromChannel),e.copyToChannel=(n=>(i,s,r=0)=>{const o=t(r),a=t(s);if(o<e.length)return n.call(e,i,a,o)})(e.copyToChannel)}},"82e9":function(t,e){},8338:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("050d"),s=n("e190");const r=(t,e,n,r,o)=>()=>{const a=new WeakMap,c=async(c,l,u)=>{let h=n(c);const d=Object(s["a"])(h,l);if(!d){const t={channelCount:h.channelCount,channelCountMode:h.channelCountMode,channelInterpretation:h.channelInterpretation,pan:h.pan.value};h=e(l,t)}return a.set(l,h),d?await t(l,c.pan,h.pan,u):await r(l,c.pan,h.pan,u),Object(i["a"])(h)?await o(c,l,h.inputs[0],u):await o(c,l,h,u),h};return{render(t,e,n){const i=a.get(e);return void 0!==i?Promise.resolve(i):c(t,e,n)}}}},8378:function(t,e){var n=t.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},8381:function(t,e,n){"use strict";var i=n("cb7c"),s=n("6a99"),r="number";t.exports=function(t){if("string"!==t&&t!==r&&"default"!==t)throw TypeError("Incorrect hint");return s(i(this),t!=r)}},"83a1":function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t===1/e:t!=t&&e!=e}},"83b9":function(t,e,n){"use strict";var i=n("d925"),s=n("e683");t.exports=function(t,e){return t&&!i(e)?s(t,e):e}},8449:function(t,e,n){"use strict";n("386b")("anchor",(function(t){return function(e){return t(this,"a","name",e)}}))},"844a":function(t,e){},"84b4":function(t,e,n){var i=n("5ca1");i(i.S,"Math",{trunc:function(t){return(t>0?Math.floor:Math.ceil)(t)}})},"84dc":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=t=>({replay(e){for(const n of t)if("exponentialRampToValue"===n.type){const{endTime:t,value:i}=n;e.exponentialRampToValueAtTime(i,t)}else if("linearRampToValue"===n.type){const{endTime:t,value:i}=n;e.linearRampToValueAtTime(i,t)}else if("setTarget"===n.type){const{startTime:t,target:i,timeConstant:s}=n;e.setTargetAtTime(i,t,s)}else if("setValue"===n.type){const{startTime:t,value:i}=n;e.setValueAtTime(i,t)}else{if("setValueCurve"!==n.type)throw new Error("Can't apply an unknown automation.");{const{duration:t,startTime:i,values:s}=n;e.setValueCurveAtTime(s,i,t)}}}})},"84f2":function(t,e){t.exports={}},8517:function(t,e){},8543:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("752e"),s=n("d057");const r=t=>Object(s["a"])(i["c"],t)},8615:function(t,e,n){var i=n("5ca1"),s=n("504c")(!1);i(i.S,"Object",{values:function(t){return s(t)}})},8634:function(t,e){},"867f":function(t,e){},8681:function(t,e){},"869e":function(t,e){},"86c7":function(t,e){},"86cc":function(t,e,n){var i=n("cb7c"),s=n("c69a"),r=n("6a99"),o=Object.defineProperty;e.f=n("9e1e")?Object.defineProperty:function(t,e,n){if(i(t),e=r(e,!0),i(n),s)try{return o(t,e,n)}catch(a){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},"871f":function(t,e){},"873b":function(t,e){},"87a6":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=t=>(e,n,i)=>{const s=[];for(let t=0;t<i.numberOfInputs;t+=1)s.push(new Set);t.set(e,{activeInputs:s,outputs:new Set,passiveInputs:new WeakMap,renderer:n})}},"87f3":function(t,e,n){var i=n("5ca1");i(i.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},8810:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=(t,e)=>n=>{const i=t.get(n);return e(i)||e(n)}},8862:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=(t,e,n,i,s)=>{"function"===typeof t.copyToChannel?0!==e[n].byteLength&&t.copyToChannel(e[n],i,s):0!==e[n].byteLength&&t.getChannelData(i).set(e[n],s)}},8897:function(t,e){},"88ca":function(t,e,n){var i=n("86cc"),s=n("5ca1"),r=n("cb7c"),o=n("6a99");s(s.S+s.F*n("79e5")((function(){Reflect.defineProperty(i.f({},1,{value:1}),1,{value:2})})),"Reflect",{defineProperty:function(t,e,n){r(t),e=o(e,!0),r(n);try{return i.f(t,e,n),!0}catch(s){return!1}}})},"88ef":function(t,e){},8930:function(t,e){},"893e":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=t=>(e,n)=>{t.set(e,{activeInputs:new Set,passiveInputs:new WeakMap,renderer:n})}},"894f":function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n("9bd2"),s=n("e190");const r=(t,e,n,s)=>{const r=n.length,o=s.length,a=Math.min(r,o);if(1!==n[0]){for(let t=0;t<r;t+=1)s[t]/=n[0];for(let t=1;t<o;t+=1)n[t]/=n[0]}const c=32,l=new Float32Array(c),u=new Float32Array(c),h=e.createBuffer(t.numberOfChannels,t.length,t.sampleRate),d=t.numberOfChannels;for(let f=0;f<d;f+=1){const e=t.getChannelData(f),d=h.getChannelData(f);l.fill(0),u.fill(0),Object(i["a"])(n,r,s,o,a,l,u,0,c,e,d)}return h},o=(t,e,n,i,o,a)=>(c,l)=>{const u=new WeakMap;let h=null;const d=async(d,f,p)=>{let m=null,g=n(d);const b=Object(s["a"])(g,f);if(void 0===f.createIIRFilter?m=t(f,{buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1}):b||(g=e(f,t=>t.createIIRFilter(l,c))),u.set(f,null===m?g:m),null!==m){if(null===h){if(null===i)throw new Error("Missing the native OfflineAudioContext constructor.");const t=new i(d.context.destination.channelCount,d.context.length,f.sampleRate);h=(async()=>{await o(d,t,t.destination,p);const e=await a(t);return r(e,f,c,l)})()}const t=await h;return m.buffer=t,m.start(0),m}return await o(d,f,g,p),g};return{render(t,e,n){const i=u.get(e);return void 0!==i?Promise.resolve(i):d(t,e,n)}}}},"89a4":function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("5b43");const s=(t,e)=>(n,s,r)=>{if(void 0===n.createIIRFilter)return e(n,s,r);const o=t(n,t=>t.createIIRFilter(r.feedforward,r.feedback));return Object(i["a"])(o,r),o}},"8a54":function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("e190");const s=(t,e,n)=>()=>{const s=new WeakMap,r=async(r,o,a)=>{let c=e(r);const l=Object(i["a"])(c,o);if(!l){const e={channelCount:c.channelCount,channelCountMode:c.channelCountMode,channelInterpretation:c.channelInterpretation,numberOfOutputs:c.numberOfOutputs};c=t(o,e)}return s.set(o,c),await n(r,o,c,a),c};return{render(t,e,n){const i=s.get(e);return void 0!==i?Promise.resolve(i):r(t,e,n)}}}},"8a64":function(t,e){},"8a81":function(t,e,n){"use strict";var i=n("7726"),s=n("69a8"),r=n("9e1e"),o=n("5ca1"),a=n("2aba"),c=n("67ab").KEY,l=n("79e5"),u=n("5537"),h=n("7f20"),d=n("ca5a"),f=n("2b4c"),p=n("37c8"),m=n("3a72"),g=n("d4c0"),b=n("1169"),v=n("cb7c"),y=n("d3f4"),S=n("4bf8"),x=n("6821"),_=n("6a99"),w=n("4630"),E=n("2aeb"),T=n("7bbc"),C=n("11e9"),M=n("2621"),P=n("86cc"),A=n("0d58"),I=C.f,L=P.f,O=T.f,k=i.Symbol,R=i.JSON,N=R&&R.stringify,D="prototype",V=f("_hidden"),B=f("toPrimitive"),F={}.propertyIsEnumerable,j=u("symbol-registry"),G=u("symbols"),W=u("op-symbols"),$=Object[D],z="function"==typeof k&&!!M.f,H=i.QObject,U=!H||!H[D]||!H[D].findChild,Y=r&&l((function(){return 7!=E(L({},"a",{get:function(){return L(this,"a",{value:7}).a}})).a}))?function(t,e,n){var i=I($,e);i&&delete $[e],L(t,e,n),i&&t!==$&&L($,e,i)}:L,X=function(t){var e=G[t]=E(k[D]);return e._k=t,e},K=z&&"symbol"==typeof k.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof k},q=function(t,e,n){return t===$&&q(W,e,n),v(t),e=_(e,!0),v(n),s(G,e)?(n.enumerable?(s(t,V)&&t[V][e]&&(t[V][e]=!1),n=E(n,{enumerable:w(0,!1)})):(s(t,V)||L(t,V,w(1,{})),t[V][e]=!0),Y(t,e,n)):L(t,e,n)},Z=function(t,e){v(t);var n,i=g(e=x(e)),s=0,r=i.length;while(r>s)q(t,n=i[s++],e[n]);return t},J=function(t,e){return void 0===e?E(t):Z(E(t),e)},Q=function(t){var e=F.call(this,t=_(t,!0));return!(this===$&&s(G,t)&&!s(W,t))&&(!(e||!s(this,t)||!s(G,t)||s(this,V)&&this[V][t])||e)},tt=function(t,e){if(t=x(t),e=_(e,!0),t!==$||!s(G,e)||s(W,e)){var n=I(t,e);return!n||!s(G,e)||s(t,V)&&t[V][e]||(n.enumerable=!0),n}},et=function(t){var e,n=O(x(t)),i=[],r=0;while(n.length>r)s(G,e=n[r++])||e==V||e==c||i.push(e);return i},nt=function(t){var e,n=t===$,i=O(n?W:x(t)),r=[],o=0;while(i.length>o)!s(G,e=i[o++])||n&&!s($,e)||r.push(G[e]);return r};z||(k=function(){if(this instanceof k)throw TypeError("Symbol is not a constructor!");var t=d(arguments.length>0?arguments[0]:void 0),e=function(n){this===$&&e.call(W,n),s(this,V)&&s(this[V],t)&&(this[V][t]=!1),Y(this,t,w(1,n))};return r&&U&&Y($,t,{configurable:!0,set:e}),X(t)},a(k[D],"toString",(function(){return this._k})),C.f=tt,P.f=q,n("9093").f=T.f=et,n("52a7").f=Q,M.f=nt,r&&!n("2d00")&&a($,"propertyIsEnumerable",Q,!0),p.f=function(t){return X(f(t))}),o(o.G+o.W+o.F*!z,{Symbol:k});for(var it="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),st=0;it.length>st;)f(it[st++]);for(var rt=A(f.store),ot=0;rt.length>ot;)m(rt[ot++]);o(o.S+o.F*!z,"Symbol",{for:function(t){return s(j,t+="")?j[t]:j[t]=k(t)},keyFor:function(t){if(!K(t))throw TypeError(t+" is not a symbol!");for(var e in j)if(j[e]===t)return e},useSetter:function(){U=!0},useSimple:function(){U=!1}}),o(o.S+o.F*!z,"Object",{create:J,defineProperty:q,defineProperties:Z,getOwnPropertyDescriptor:tt,getOwnPropertyNames:et,getOwnPropertySymbols:nt});var at=l((function(){M.f(1)}));o(o.S+o.F*at,"Object",{getOwnPropertySymbols:function(t){return M.f(S(t))}}),R&&o(o.S+o.F*(!z||l((function(){var t=k();return"[null]"!=N([t])||"{}"!=N({a:t})||"{}"!=N(Object(t))}))),"JSON",{stringify:function(t){var e,n,i=[t],s=1;while(arguments.length>s)i.push(arguments[s++]);if(n=e=i[1],(y(e)||void 0!==t)&&!K(t))return b(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!K(e))return e}),i[1]=e,N.apply(R,i)}}),k[D][B]||n("32e9")(k[D],B,k[D].valueOf),h(k,"Symbol"),h(Math,"Math",!0),h(i.JSON,"JSON",!0)},"8af4":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=(t,e)=>(t.connect=e.connect.bind(e),t.disconnect=e.disconnect.bind(e),t)},"8b97":function(t,e,n){var i=n("d3f4"),s=n("cb7c"),r=function(t,e){if(s(t),!i(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,i){try{i=n("9b43")(Function.call,n("11e9").f(Object.prototype,"__proto__").set,2),i(t,[]),e=!(t instanceof Array)}catch(s){e=!0}return function(t,n){return r(t,n),e?t.__proto__=n:i(t,n),t}}({},!1):void 0),check:r}},"8bb0":function(t,e){},"8c12":function(t,e){},"8c3b":function(t,e){},"8c75":function(t,e){},"8c8b":function(t,e){},"8cd4":function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));const i={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",curve:null,oversample:"none"},s=(t,e,n,s,r,o)=>class extends t{constructor(t,e=i){const a=r(t),c={...i,...e},l=n(a,c),u=o(a),h=u?s():null;super(t,!0,l,h),this._isCurveNullified=!1,this._nativeWaveShaperNode=l}get curve(){return this._isCurveNullified?null:this._nativeWaveShaperNode.curve}set curve(t){if(null===t)this._isCurveNullified=!0,this._nativeWaveShaperNode.curve=new Float32Array([0,0]);else{if(t.length<2)throw e();this._isCurveNullified=!1,this._nativeWaveShaperNode.curve=t}}get oversample(){return this._nativeWaveShaperNode.oversample}set oversample(t){this._nativeWaveShaperNode.oversample=t}}},"8cf4":function(t,e){},"8d50":function(t,e){},"8d5d":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=()=>{try{return new DOMException("","DataCloneError")}catch(t){return t.code=25,t.name="DataCloneError",t}}},"8d85":function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var i=n("383e"),s=n("99e8"),r=n("4114"),o=n("8862"),a=n("752e");const c=t=>new Promise((e,n)=>{const{port1:i,port2:s}=new MessageChannel;i.onmessage=({data:t})=>{i.close(),s.close(),e(t)},i.onmessageerror=({data:t})=>{i.close(),s.close(),n(t)},s.postMessage(t)}),l=async(t,e)=>{const n=await c(e);return new t(n)},u=(t,e,n,i)=>{let s=a["k"].get(t);void 0===s&&(s=new WeakMap,a["k"].set(t,s));const r=l(n,i);return s.set(e,r),r};var h=n("65f3"),d=n("5046");const f=(t,e,n,a,c,l,f,p,m,g,b,v,y)=>(S,x,_,w)=>{if(0===w.numberOfInputs&&0===w.numberOfOutputs)throw g();if(void 0!==w.outputChannelCount){if(w.outputChannelCount.some(t=>t<1))throw g();if(w.outputChannelCount.length!==w.numberOfOutputs)throw n()}if("explicit"!==w.channelCountMode)throw g();const E=w.channelCount*w.numberOfInputs,T=w.outputChannelCount.reduce((t,e)=>t+e,0),C=void 0===_.parameterDescriptors?0:_.parameterDescriptors.length;if(E+C>6||T>6)throw g();const M=new MessageChannel,P=[],A=[];for(let t=0;t<w.numberOfInputs;t+=1)P.push(p(S,{channelCount:w.channelCount,channelCountMode:w.channelCountMode,channelInterpretation:w.channelInterpretation,gain:1})),A.push(l(S,{channelCount:w.channelCount,channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:w.channelCount}));const I=[];if(void 0!==_.parameterDescriptors)for(const{defaultValue:t,maxValue:e,minValue:n,name:s}of _.parameterDescriptors){const r=f(S,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",offset:void 0!==w.parameterData[s]?w.parameterData[s]:void 0===t?0:t});Object.defineProperties(r.offset,{defaultValue:{get:()=>void 0===t?0:t},maxValue:{get:()=>void 0===e?i["b"]:e},minValue:{get:()=>void 0===n?i["a"]:n}}),I.push(r)}const L=c(S,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:Math.max(1,E+C)}),O=Object(s["a"])(x,S.sampleRate),k=m(S,O,E+C,Math.max(1,T)),R=l(S,{channelCount:Math.max(1,T),channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:Math.max(1,T)}),N=[];for(let t=0;t<w.numberOfOutputs;t+=1)N.push(c(S,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:w.outputChannelCount[t]}));for(let t=0;t<w.numberOfInputs;t+=1){P[t].connect(A[t]);for(let e=0;e<w.channelCount;e+=1)A[t].connect(L,e,t*w.channelCount+e)}const D=new d["a"](void 0===_.parameterDescriptors?[]:_.parameterDescriptors.map(({name:t},e)=>{const n=I[e];return n.connect(L,0,E+e),n.start(0),[t,n.offset]}));L.connect(k);let V=w.channelInterpretation,B=null;const F=0===w.numberOfOutputs?[k]:N,j={get bufferSize(){return O},get channelCount(){return w.channelCount},set channelCount(t){throw a()},get channelCountMode(){return w.channelCountMode},set channelCountMode(t){throw a()},get channelInterpretation(){return V},set channelInterpretation(t){for(const e of P)e.channelInterpretation=t;V=t},get context(){return k.context},get inputs(){return P},get numberOfInputs(){return w.numberOfInputs},get numberOfOutputs(){return w.numberOfOutputs},get onprocessorerror(){return B},set onprocessorerror(t){"function"===typeof B&&j.removeEventListener("processorerror",B),B="function"===typeof t?t:null,"function"===typeof B&&j.addEventListener("processorerror",B)},get parameters(){return D},get port(){return M.port2},addEventListener(...t){return k.addEventListener(t[0],t[1],t[2])},connect:e.bind(null,F),disconnect:b.bind(null,F),dispatchEvent(...t){return k.dispatchEvent(t[0])},removeEventListener(...t){return k.removeEventListener(t[0],t[1],t[2])}},G=new Map;M.port1.addEventListener=(t=>(...e)=>{if("message"===e[0]){const t="function"===typeof e[1]?e[1]:"object"===typeof e[1]&&null!==e[1]&&"function"===typeof e[1].handleEvent?e[1].handleEvent:null;if(null!==t){const n=G.get(e[1]);void 0!==n?e[1]=n:(e[1]=e=>{v(S.currentTime,S.sampleRate,()=>t(e))},G.set(t,e[1]))}}return t.call(M.port1,e[0],e[1],e[2])})(M.port1.addEventListener),M.port1.removeEventListener=(t=>(...e)=>{if("message"===e[0]){const t=G.get(e[1]);void 0!==t&&(G.delete(e[1]),e[1]=t)}return t.call(M.port1,e[0],e[1],e[2])})(M.port1.removeEventListener);let W=null;Object.defineProperty(M.port1,"onmessage",{get:()=>W,set:t=>{"function"===typeof W&&M.port1.removeEventListener("message",W),W="function"===typeof t?t:null,"function"===typeof W&&(M.port1.addEventListener("message",W),M.port1.start())}}),_.prototype.port=M.port1;let $=null;const z=u(S,j,_,w);z.then(t=>$=t);const H=Object(h["a"])(w.numberOfInputs,w.channelCount),U=Object(h["a"])(w.numberOfOutputs,w.outputChannelCount),Y=void 0===_.parameterDescriptors?[]:_.parameterDescriptors.reduce((t,{name:e})=>({...t,[e]:new Float32Array(128)}),{});let X=!0;const K=()=>{w.numberOfOutputs>0&&k.disconnect(R);for(let t=0,e=0;t<w.numberOfOutputs;t+=1){const n=N[t];for(let i=0;i<w.outputChannelCount[t];i+=1)R.disconnect(n,e+i,i);e+=w.outputChannelCount[t]}};k.onaudioprocess=({inputBuffer:e,outputBuffer:n})=>{if(null!==$)for(let s=0;s<O;s+=128){for(let t=0;t<w.numberOfInputs;t+=1)for(let n=0;n<w.channelCount;n+=1)Object(r["a"])(e,H[t],n,n,s);void 0!==_.parameterDescriptors&&_.parameterDescriptors.forEach(({name:t},n)=>{Object(r["a"])(e,Y,t,E+n,s)});for(let t=0;t<w.numberOfInputs;t+=1)for(let e=0;e<w.outputChannelCount[t];e+=1)0===U[t][e].byteLength&&(U[t][e]=new Float32Array(128));try{const e=H.map((e,n)=>{const i=t.get(j);return void 0===i||void 0===i.get(n)?[]:e}),i=v(S.currentTime+s/S.sampleRate,S.sampleRate,()=>$.process(e,U,Y));X=i;for(let t=0,r=0;t<w.numberOfOutputs;t+=1){for(let e=0;e<w.outputChannelCount[t];e+=1)Object(o["a"])(n,U[t],e,r+e,s);r+=w.outputChannelCount[t]}}catch(i){X=!1,j.dispatchEvent(new ErrorEvent("processorerror",{error:i}))}if(!X){for(let t=0;t<w.numberOfInputs;t+=1){P[t].disconnect(A[t]);for(let e=0;e<w.channelCount;e+=1)A[s].disconnect(L,e,t*w.channelCount+e)}if(void 0!==_.parameterDescriptors){const t=_.parameterDescriptors.length;for(let e=0;e<t;e+=1){const t=I[e];t.disconnect(L,0,E+e),t.stop()}}L.disconnect(k),k.onaudioprocess=null,q?K():Q();break}}};let q=!1;const Z=p(S,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0}),J=()=>k.connect(Z).connect(Z.context.destination),Q=()=>{k.disconnect(Z),Z.disconnect()},tt=()=>{if(X){Q(),w.numberOfOutputs>0&&k.connect(R);for(let t=0,e=0;t<w.numberOfOutputs;t+=1){const n=N[t];for(let i=0;i<w.outputChannelCount[t];i+=1)R.connect(n,e+i,i);e+=w.outputChannelCount[t]}}q=!0},et=()=>{X&&(J(),K()),q=!1};return J(),y(j,tt,et)}},"8df4":function(t,e,n){"use strict";var i=n("7a77");function s(t){if("function"!==typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var n=this;t((function(t){n.reason||(n.reason=new i(t),e(n.reason))}))}s.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},s.source=function(){var t,e=new s((function(e){t=e}));return{token:e,cancel:t}},t.exports=s},"8e0b":function(t,e){},"8e6e":function(t,e,n){var i=n("5ca1"),s=n("990b"),r=n("6821"),o=n("11e9"),a=n("f1ae");i(i.S,"Object",{getOwnPropertyDescriptors:function(t){var e,n,i=r(t),c=o.f,l=s(i),u={},h=0;while(l.length>h)n=c(i,e=l[h++]),void 0!==n&&a(u,e,n);return u}})},"8e8b":function(t,e){},9031:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("050d"),s=n("e190");const r=(t,e,n)=>()=>{const r=new WeakMap,o=async(o,a,c)=>{let l=e(o);const u=Object(s["a"])(l,a);if(!u){const e={channelCount:l.channelCount,channelCountMode:l.channelCountMode,channelInterpretation:l.channelInterpretation,curve:l.curve,oversample:l.oversample};l=t(a,e)}return r.set(a,l),Object(i["a"])(l)?await n(o,a,l.inputs[0],c):await n(o,a,l,c),l};return{render(t,e,n){const i=r.get(e);return void 0!==i?Promise.resolve(i):o(t,e,n)}}}},9093:function(t,e,n){var i=n("ce10"),s=n("e11e").concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return i(t,s)}},"90d8":function(t,e){},9149:function(t,e){},"918c":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=()=>{try{return new DOMException("","UnknownError")}catch(t){return t.name="UnknownError",t}}},"91a2":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=t=>e=>null!==t&&e instanceof t},"91c8":function(t,e){},"91ca":function(t,e,n){var i=n("96fb"),s=Math.pow,r=s(2,-52),o=s(2,-23),a=s(2,127)*(2-o),c=s(2,-126),l=function(t){return t+1/r-1/r};t.exports=Math.fround||function(t){var e,n,s=Math.abs(t),u=i(t);return s<c?u*l(s/c/o)*c*o:(e=(1+o/r)*s,n=e-(e-s),n>a||n!=n?u*(1/0):u*n)}},9253:function(t,e,n){var i=n("86cc"),s=n("11e9"),r=n("38fd"),o=n("69a8"),a=n("5ca1"),c=n("4630"),l=n("cb7c"),u=n("d3f4");function h(t,e,n){var a,d,f=arguments.length<4?t:arguments[3],p=s.f(l(t),e);if(!p){if(u(d=r(t)))return h(d,e,n,f);p=c(0)}if(o(p,"value")){if(!1===p.writable||!u(f))return!1;if(a=s.f(f,e)){if(a.get||a.set||!1===a.writable)return!1;a.value=n,i.f(f,e,a)}else i.f(f,e,c(0,n));return!0}return void 0!==p.set&&(p.set.call(f,n),!0)}a(a.S,"Reflect",{set:h})},9275:function(t,e,n){var i=n("5ca1"),s=n("8b97");s&&i(i.S,"Reflect",{setPrototypeOf:function(t,e){s.check(t,e);try{return s.set(t,e),!0}catch(n){return!1}}})},9278:function(t,e,n){var i=n("5ca1");i(i.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},"930b":function(t,e){},9349:function(t,e){},"93ab":function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));const i={channelCount:2,channelCountMode:"explicit",channelInterpretation:"speakers",pan:0},s=(t,e,n,s,r,o)=>class extends t{constructor(t,a=i){const c=r(t),l={...i,...a},u=n(c,l),h=o(c),d=h?s():null;super(t,!1,u,d),this._pan=e(this,h,u.pan,1,-1)}get pan(){return this._pan}}},"942a":function(t,e){},"946c":function(t,e){},"947a":function(t,e){},9557:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=()=>{try{return new DOMException("","EncodingError")}catch(t){return t.code=0,t.name="EncodingError",t}}},"95b4":function(t,e){},"95c6":function(t,e){},"961a":function(t,e,n){"use strict";n("f4a5"),n("65c6"),n("23ca"),n("bf74"),n("a4b6"),n("5cbe"),n("4cb5"),n("def8"),n("9149"),n("6218"),n("a7f8"),n("5bb6"),n("adc3"),n("476a"),n("a604"),n("2de4"),n("dd02"),n("2e07"),n("f26c"),n("cb86"),n("efbd"),n("be78"),n("51fe"),n("4928"),n("8d50"),n("6f2e"),n("ad17"),n("8517"),n("64ac"),n("234f"),n("c153"),n("abdd"),n("cd1b"),n("f209"),n("2ed8"),n("716e"),n("f4cc"),n("3257"),n("0454"),n("091a"),n("4238"),n("baba"),n("7e19"),n("d784"),n("efe3"),n("6a5a"),n("a689"),n("e574"),n("cb12"),n("4dc3"),n("2ab2"),n("53b3"),n("5800"),n("6136"),n("5c3a"),n("e0ce"),n("ae01"),n("6567"),n("b480"),n("5181"),n("73c8"),n("5faf"),n("4951"),n("e167"),n("06df"),n("bc86"),n("c541"),n("d0de"),n("c781"),n("db12"),n("67df"),n("01ef"),n("9f52"),n("ec9c"),n("979d"),n("136a"),n("18bf"),n("782c"),n("eee3"),n("ae00"),n("91c8"),n("6b2f"),n("52f4"),n("51df"),n("2a42"),n("0bba"),n("e466"),n("90d8"),n("2a31"),n("2026"),n("4457"),n("8c75"),n("9e26"),n("946c"),n("154b"),n("ecad"),n("a163"),n("8177"),n("d34b"),n("4107"),n("152a"),n("2af5"),n("0286"),n("ca6e"),n("ef33"),n("8c12"),n("b0f2"),n("81cf"),n("8e0b"),n("abb6"),n("a1be"),n("9a01"),n("17e7"),n("719c"),n("a280"),n("ea30"),n("d19a"),n("867f"),n("942a"),n("4508"),n("526f"),n("7faf"),n("a9c1"),n("b9fb"),n("c033"),n("f612"),n("aee0"),n("cacd"),n("db40"),n("1376"),n("2e20"),n("c02f"),n("c779"),n("7610"),n("a1c9"),n("55aa"),n("ee83"),n("64be"),n("3555"),n("7b7b"),n("d04a"),n("ae71"),n("2ea4"),n("03ab"),n("50a7"),n("dd5c"),n("229f"),n("0019"),n("14bf"),n("bc93"),n("0799"),n("29dd"),n("ec99"),n("967a"),n("947a"),n("2f70"),n("4720"),n("13b5"),n("9707"),n("74eb"),n("16f7"),n("f823"),n("adc1"),n("ecf5"),n("424a"),n("b957"),n("fed4"),n("a6d1"),n("5739"),n("d0f9"),n("7dbe"),n("8e8b"),n("42a4"),n("465e"),n("00e5"),n("ca04"),n("cd1ba"),n("1e94"),n("e028"),n("97da"),n("43f2"),n("6269"),n("e755"),n("d383"),n("8930"),n("6154"),n("3adc"),n("873b"),n("d4a9"),n("73ef"),n("554c"),n("6760"),n("3d55"),n("c57a"),n("b9ea"),n("0f1e"),n("d4d4"),n("8bb0"),n("b1e4"),n("80f7"),n("4ca8"),n("650f"),n("7f5d"),n("777a"),n("98c9"),n("5055"),n("9f0a"),n("b464"),n("6ab5"),n("f3c6"),n("050c"),n("dd9b"),n("163c"),n("064c"),n("d01f"),n("d4ec"),n("d8b9"),n("5a62"),n("7502"),n("c720"),n("a2a8"),n("9bbc"),n("ffec"),n("0596"),n("0606"),n("3738"),n("29b0"),n("4561"),n("5477"),n("7553"),n("06ef"),n("474e"),n("c1ca"),n("0b3f"),n("58a0"),n("cf4b"),n("dd20"),n("fc27"),n("37e2"),n("7fd1"),n("5758"),n("4de4"),n("eb9d"),n("c399"),n("618a"),n("a9b8"),n("4156"),n("00d7"),n("6515"),n("c0ca"),n("2fd1"),n("9349"),n("46bd"),n("391d"),n("9ced"),n("52ab"),n("58a1"),n("2b7d"),n("3f50"),n("782d"),n("6f36"),n("3c28"),n("ef86"),n("1ace"),n("9e24"),n("db12b"),n("a65a"),n("3c0a"),n("5191"),n("0164"),n("ff7d"),n("b646"),n("7e92"),n("ddbb"),n("d4cb"),n("0211"),n("8cf4"),n("fdd5"),n("db6f"),n("e9e8"),n("a827"),n("c388"),n("1b0e"),n("8c8b"),n("8073"),n("b61d"),n("b158"),n("dbec"),n("f9d0"),n("b9f1"),n("37b4"),n("0f9f"),n("224e"),n("12f1"),n("fcfd"),n("4e79"),n("56c5"),n("f406"),n("3bbf"),n("767d"),n("dfe6"),n("11a8"),n("fd85"),n("1827"),n("a989"),n("483e"),n("73b1"),n("3895"),n("a34b"),n("3c84"),n("f410"),n("0183"),n("aabd"),n("15dc"),n("47ce"),n("7eb5"),n("bfb6"),n("42ee"),n("a2af"),n("5f63"),n("08cd"),n("c348"),n("d28a"),n("003f"),n("e262"),n("1144"),n("cbf2"),n("418b"),n("6a6f"),n("de43"),n("3c35"),n("80ae"),n("98a0"),n("6ced"),n("2f22"),n("2018"),n("82e9"),n("7af0"),n("4ee4"),n("95c6"),n("3707"),n("79c1"),n("95b4"),n("9d0e"),n("c80b"),n("63fe"),n("d089"),n("e564"),n("09a8"),n("e0c0"),n("5d45"),n("d6df"),n("c2f0"),n("9a63"),n("4ecb"),n("48a7"),n("69e5"),n("0148"),n("47e4"),n("88ef"),n("9d50"),n("6d3d"),n("5ebd"),n("ca24"),n("30bf"),n("2fb7"),n("9f9a"),n("5b94"),n("418bb"),n("6011"),n("10c6"),n("d335"),n("7160"),n("1c8b"),n("d859"),n("07d2"),n("6fc3"),n("6c7c"),n("2440"),n("3983"),n("cba6"),n("c953"),n("6718"),n("869e")},"967a":function(t,e){},9696:function(t,e){},"96cf":function(t,e,n){var i=function(t){"use strict";var e,n=Object.prototype,i=n.hasOwnProperty,s="function"===typeof Symbol?Symbol:{},r=s.iterator||"@@iterator",o=s.asyncIterator||"@@asyncIterator",a=s.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(O){c=function(t,e,n){return t[e]=n}}function l(t,e,n,i){var s=e&&e.prototype instanceof g?e:g,r=Object.create(s.prototype),o=new A(i||[]);return r._invoke=T(t,n,o),r}function u(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(O){return{type:"throw",arg:O}}}t.wrap=l;var h="suspendedStart",d="suspendedYield",f="executing",p="completed",m={};function g(){}function b(){}function v(){}var y={};y[r]=function(){return this};var S=Object.getPrototypeOf,x=S&&S(S(I([])));x&&x!==n&&i.call(x,r)&&(y=x);var _=v.prototype=g.prototype=Object.create(y);function w(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function n(s,r,o,a){var c=u(t[s],t,r);if("throw"!==c.type){var l=c.arg,h=l.value;return h&&"object"===typeof h&&i.call(h,"__await")?e.resolve(h.__await).then((function(t){n("next",t,o,a)}),(function(t){n("throw",t,o,a)})):e.resolve(h).then((function(t){l.value=t,o(l)}),(function(t){return n("throw",t,o,a)}))}a(c.arg)}var s;function r(t,i){function r(){return new e((function(e,s){n(t,i,e,s)}))}return s=s?s.then(r,r):r()}this._invoke=r}function T(t,e,n){var i=h;return function(s,r){if(i===f)throw new Error("Generator is already running");if(i===p){if("throw"===s)throw r;return L()}n.method=s,n.arg=r;while(1){var o=n.delegate;if(o){var a=C(o,n);if(a){if(a===m)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===h)throw i=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=f;var c=u(t,e,n);if("normal"===c.type){if(i=n.done?p:d,c.arg===m)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=p,n.method="throw",n.arg=c.arg)}}}function C(t,n){var i=t.iterator[n.method];if(i===e){if(n.delegate=null,"throw"===n.method){if(t.iterator["return"]&&(n.method="return",n.arg=e,C(t,n),"throw"===n.method))return m;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var s=u(i,t.iterator,n.arg);if("throw"===s.type)return n.method="throw",n.arg=s.arg,n.delegate=null,m;var r=s.arg;return r?r.done?(n[t.resultName]=r.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,m):r:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function M(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(M,this),this.reset(!0)}function I(t){if(t){var n=t[r];if(n)return n.call(t);if("function"===typeof t.next)return t;if(!isNaN(t.length)){var s=-1,o=function n(){while(++s<t.length)if(i.call(t,s))return n.value=t[s],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}return{next:L}}function L(){return{value:e,done:!0}}return b.prototype=_.constructor=v,v.constructor=b,b.displayName=c(v,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"===typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,c(t,a,"GeneratorFunction")),t.prototype=Object.create(_),t},t.awrap=function(t){return{__await:t}},w(E.prototype),E.prototype[o]=function(){return this},t.AsyncIterator=E,t.async=function(e,n,i,s,r){void 0===r&&(r=Promise);var o=new E(l(e,n,i,s),r);return t.isGeneratorFunction(n)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},w(_),c(_,a,"Generator"),_[r]=function(){return this},_.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){while(e.length){var i=e.pop();if(i in t)return n.value=i,n.done=!1,n}return n.done=!0,n}},t.values=I,A.prototype={constructor:A,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0],e=t.completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function s(i,s){return a.type="throw",a.arg=t,n.next=i,s&&(n.method="next",n.arg=e),!!s}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return s("end");if(o.tryLoc<=this.prev){var c=i.call(o,"catchLoc"),l=i.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return s(o.catchLoc,!0);if(this.prev<o.finallyLoc)return s(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return s(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return s(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var s=this.tryEntries[n];if(s.tryLoc<=this.prev&&i.call(s,"finallyLoc")&&this.prev<s.finallyLoc){var r=s;break}}r&&("break"===t||"continue"===t)&&r.tryLoc<=e&&e<=r.finallyLoc&&(r=null);var o=r?r.completion:{};return o.type=t,o.arg=e,r?(this.method="next",this.next=r.finallyLoc,m):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),P(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var s=i.arg;P(n)}return s}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,i){return this.delegate={iterator:I(t),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=e),m}},t}(t.exports);try{regeneratorRuntime=i}catch(s){Function("r","regeneratorRuntime = r")(i)}},"96fb":function(t,e){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},9707:function(t,e){},"970e":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("050d"),s=n("e190");const r=(t,e,n)=>()=>{const r=new WeakMap,o=async(o,a,c)=>{let l=e(o);const u=Object(s["a"])(l,a);if(!u){const e={buffer:l.buffer,channelCount:l.channelCount,channelCountMode:l.channelCountMode,channelInterpretation:l.channelInterpretation,disableNormalization:!l.normalize};l=t(a,e)}return r.set(a,l),Object(i["a"])(l)?await n(o,a,l.inputs[0],c):await n(o,a,l,c),l};return{render(t,e,n){const i=r.get(e);return void 0!==i?Promise.resolve(i):o(t,e,n)}}}},9744:function(t,e,n){"use strict";var i=n("4588"),s=n("be13");t.exports=function(t){var e=String(s(this)),n="",r=i(t);if(r<0||r==1/0)throw RangeError("Count can't be negative");for(;r>0;(r>>>=1)&&(e+=e))1&r&&(n+=e);return n}},"974a":function(t,e){},"979d":function(t,e){},"97c9":function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("e190");const s=(t,e,n,s,r)=>()=>{const o=new WeakMap;let a=null,c=null;const l=async(l,u,h)=>{let d=n(l);const f=Object(i["a"])(d,u);if(!f){const t={buffer:d.buffer,channelCount:d.channelCount,channelCountMode:d.channelCountMode,channelInterpretation:d.channelInterpretation,loop:d.loop,loopEnd:d.loopEnd,loopStart:d.loopStart,playbackRate:d.playbackRate.value};d=e(u,t),null!==a&&d.start(...a),null!==c&&d.stop(c)}return o.set(u,d),f?await t(u,l.playbackRate,d.playbackRate,h):await s(u,l.playbackRate,d.playbackRate,h),await r(l,u,d,h),d};return{set start(t){a=t},set stop(t){c=t},render(t,e,n){const i=o.get(e);return void 0!==i?Promise.resolve(i):l(t,e,n)}}}},"97da":function(t,e){},9823:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=t=>(e,n,i,s)=>t(e,t=>t.createScriptProcessor(n,i,s))},"98a0":function(t,e){},"98b0":function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("cd00");const s=t=>e=>{const n=t.get(e);if(void 0===n)throw Object(i["a"])();return n}},"98c9":function(t,e){},"990b":function(t,e,n){var i=n("9093"),s=n("2621"),r=n("cb7c"),o=n("7726").Reflect;t.exports=o&&o.ownKeys||function(t){var e=i.f(r(t)),n=s.f;return n?e.concat(n(t)):e}},9928:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=(t,e,n,i)=>{let s=Object.getPrototypeOf(t);while(!s.hasOwnProperty(e))s=Object.getPrototypeOf(s);const{get:r,set:o}=Object.getOwnPropertyDescriptor(s,e);Object.defineProperty(t,e,{get:n(r),set:i(o)})}},9986:function(t,e,n){var i=n("6821"),s=n("11e9").f;n("5eda")("getOwnPropertyDescriptor",(function(){return function(t,e){return s(i(t),e)}}))},"99e8":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=(t,e)=>null===t?512:Math.max(512,Math.min(16384,Math.pow(2,Math.round(Math.log2(t*e)))))},"9a01":function(t,e){},"9a63":function(t,e){},"9aa6":function(t,e){},"9aea":function(t,e,n){var i=n("d3f4"),s=n("67ab").onFreeze;n("5eda")("preventExtensions",(function(t){return function(e){return t&&i(e)?t(s(e)):e}}))},"9b43":function(t,e,n){var i=n("d8e8");t.exports=function(t,e,n){if(i(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,s){return t.call(e,n,i,s)}}return function(){return t.apply(e,arguments)}}},"9bbc":function(t,e){},"9bd2":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=(t,e,n,i,s,r,o,a,c,l,u)=>{const h=l.length;let d=a;for(let f=0;f<h;f+=1){let a=n[0]*l[f];for(let e=1;e<s;e+=1){const i=d-e&c-1;a+=n[e]*r[i],a-=t[e]*o[i]}for(let t=s;t<i;t+=1)a+=n[t]*r[d-t&c-1];for(let n=s;n<e;n+=1)a-=t[n]*o[d-n&c-1];r[d]=l[f],o[d]=a,d=d+1&c-1,u[f]=a}return d}},"9c12":function(t,e,n){var i=n("d3f4"),s=Math.floor;t.exports=function(t){return!i(t)&&isFinite(t)&&s(t)===t}},"9c29":function(t,e,n){n("ec30")("Uint32",4,(function(t){return function(e,n,i){return t(this,e,n,i)}}))},"9c6c":function(t,e,n){var i=n("2b4c")("unscopables"),s=Array.prototype;void 0==s[i]&&n("32e9")(s,i,{}),t.exports=function(t){s[i][t]=!0}},"9c80":function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(e){return{e:!0,v:e}}}},"9c86":function(t,e,n){"use strict";n("386b")("big",(function(t){return function(){return t(this,"big","","")}}))},"9cad":function(t,e){},"9ced":function(t,e){},"9d0e":function(t,e){},"9d14":function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));const i={attack:.003,channelCount:2,channelCountMode:"clamped-max",channelInterpretation:"speakers",knee:30,ratio:12,release:.25,threshold:-24},s=(t,e,n,s,r,o,a)=>class extends t{constructor(t,r=i){const c=o(t),l={...i,...r},u=s(c,l),h=a(c),d=h?n():null;super(t,!1,u,d),this._attack=e(this,h,u.attack,1,0),this._knee=e(this,h,u.knee,40,0),this._nativeDynamicsCompressorNode=u,this._ratio=e(this,h,u.ratio,20,1),this._release=e(this,h,u.release,1,0),this._threshold=e(this,h,u.threshold,0,-100)}get attack(){return this._attack}get channelCount(){return this._nativeDynamicsCompressorNode.channelCount}set channelCount(t){const e=this._nativeDynamicsCompressorNode.channelCount;if(this._nativeDynamicsCompressorNode.channelCount=t,t>2)throw this._nativeDynamicsCompressorNode.channelCount=e,r()}get channelCountMode(){return this._nativeDynamicsCompressorNode.channelCountMode}set channelCountMode(t){const e=this._nativeDynamicsCompressorNode.channelCountMode;if(this._nativeDynamicsCompressorNode.channelCountMode=t,"max"===t)throw this._nativeDynamicsCompressorNode.channelCountMode=e,r()}get knee(){return this._knee}get ratio(){return this._ratio}get reduction(){return"number"===typeof this._nativeDynamicsCompressorNode.reduction.value?this._nativeDynamicsCompressorNode.reduction.value:this._nativeDynamicsCompressorNode.reduction}get release(){return this._release}get threshold(){return this._threshold}}},"9d50":function(t,e){},"9dc3":function(t,e){function n(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}t.exports=n},"9def":function(t,e,n){var i=n("4588"),s=Math.min;t.exports=function(t){return t>0?s(i(t),9007199254740991):0}},"9e1e":function(t,e,n){t.exports=!n("79e5")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},"9e1f":function(t,e,n){var i=n("01f0");t.exports=function(t){return t.listenToMidi=function(e,n){var s={},r=n||{},o=r.gain||function(t){return t/127};return e.onmidimessage=function(e){var n=e.messageType?e:i(e);if("noteon"===n.messageType&&0===n.velocity&&(n.messageType="noteoff"),!r.channel||n.channel===r.channel)switch(n.messageType){case"noteon":s[n.key]=t.play(n.key,0,{gain:o(n.velocity)});break;case"noteoff":s[n.key]&&(s[n.key].stop(),delete s[n.key]);break}},t},t}},"9e24":function(t,e){},"9e26":function(t,e){},"9ec8":function(t,e,n){"use strict";n("386b")("fontsize",(function(t){return function(e){return t(this,"font","size",e)}}))},"9f0a":function(t,e){},"9f3c":function(t,e,n){var i=n("5ca1"),s=n("2d5c");i(i.S+i.F*(s!=Math.expm1),"Math",{expm1:s})},"9f52":function(t,e){},"9f9a":function(t,e){},a032:function(t,e,n){"use strict";var i=n("5ca1"),s=n("02f4")(!1);i(i.P,"String",{codePointAt:function(t){return s(this,t)}})},a038:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("180a"),s=n("5b43");const r=(t,e,n,r,o,a,c)=>(l,u)=>{const h=n(l,t=>t.createWaveShaper());try{return h.curve=new Float32Array([1]),r(l,u)}catch{}Object(s["a"])(h,u);const d=u.curve;if(null!==d&&d.length<2)throw e();Object(i["a"])(h,u,"curve"),Object(i["a"])(h,u,"oversample");let f=null,p=!1;c(h,"curve",t=>()=>t.call(h),e=>n=>(e.call(h,n),p&&(o(n)&&null===f?f=t(l,h):o(n)||null===f||(f(),f=null)),n));const m=()=>{p=!0,o(h.curve)&&(f=t(l,h))},g=()=>{p=!1,null!==f&&(f(),f=null)};return a(h,m,g)}},a15f:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=(t,e)=>n=>{const i={value:t};return Object.defineProperties(n,{currentTarget:i,target:i}),"function"===typeof e?e.call(t,n):e.handleEvent.call(t,n)}},a163:function(t,e){},a199:function(t,e){},a19f:function(t,e,n){var i=n("5ca1"),s=n("cb7c"),r=Object.preventExtensions;i(i.S,"Reflect",{preventExtensions:function(t){s(t);try{return r&&r(t),!0}catch(e){return!1}}})},a1be:function(t,e){},a1c9:function(t,e){},a24e:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=()=>{try{return new DOMException("","InvalidAccessError")}catch(t){return t.code=15,t.name="InvalidAccessError",t}}},a256:function(t,e){function n(t){if(Array.isArray(t))return t}t.exports=n},a25f:function(t,e,n){var i=n("7726"),s=i.navigator;t.exports=s&&s.userAgent||""},a280:function(t,e){},a2a8:function(t,e){},a2af:function(t,e){},a2b4:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("e190");const s=(t,e,n)=>()=>{const s=new WeakMap,r=async(r,o,a)=>{let c=e(r);const l=Object(i["a"])(c,o);if(!l){const e={channelCount:c.channelCount,channelCountMode:c.channelCountMode,channelInterpretation:c.channelInterpretation,numberOfInputs:c.numberOfInputs};c=t(o,e)}return s.set(o,c),await n(r,o,c,a),c};return{render(t,e,n){const i=s.get(e);return void 0!==i?Promise.resolve(i):r(t,e,n)}}}},a34a:function(t,e,n){t.exports=n("96cf")},a34b:function(t,e){},a481:function(t,e,n){"use strict";var i=n("cb7c"),s=n("4bf8"),r=n("9def"),o=n("4588"),a=n("0390"),c=n("5f1b"),l=Math.max,u=Math.min,h=Math.floor,d=/\$([$&`']|\d\d?|<[^>]*>)/g,f=/\$([$&`']|\d\d?)/g,p=function(t){return void 0===t?t:String(t)};n("214f")("replace",2,(function(t,e,n,m){return[function(i,s){var r=t(this),o=void 0==i?void 0:i[e];return void 0!==o?o.call(i,r,s):n.call(String(r),i,s)},function(t,e){var s=m(n,t,this,e);if(s.done)return s.value;var h=i(t),d=String(this),f="function"===typeof e;f||(e=String(e));var b=h.global;if(b){var v=h.unicode;h.lastIndex=0}var y=[];while(1){var S=c(h,d);if(null===S)break;if(y.push(S),!b)break;var x=String(S[0]);""===x&&(h.lastIndex=a(d,r(h.lastIndex),v))}for(var _="",w=0,E=0;E<y.length;E++){S=y[E];for(var T=String(S[0]),C=l(u(o(S.index),d.length),0),M=[],P=1;P<S.length;P++)M.push(p(S[P]));var A=S.groups;if(f){var I=[T].concat(M,C,d);void 0!==A&&I.push(A);var L=String(e.apply(void 0,I))}else L=g(T,d,C,M,A,e);C>=w&&(_+=d.slice(w,C)+L,w=C+T.length)}return _+d.slice(w)}];function g(t,e,i,r,o,a){var c=i+t.length,l=r.length,u=f;return void 0!==o&&(o=s(o),u=d),n.call(a,u,(function(n,s){var a;switch(s.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,i);case"'":return e.slice(c);case"<":a=o[s.slice(1,-1)];break;default:var u=+s;if(0===u)return n;if(u>l){var d=h(u/10);return 0===d?n:d<=l?void 0===r[d-1]?s.charAt(1):r[d-1]+s.charAt(1):n}a=r[u-1]}return void 0===a?"":a}))}}))},a4b6:function(t,e){},a57a:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("264b");const s=(t,e,n,s,r,o,a,c)=>(l,u)=>{const h=e.get(l);if(void 0===h)throw new Error("Missing the expected cycle count.");const d=o(l.context),f=c(d);if(h===u){if(e.delete(l),!f&&a(l)){const e=s(l),{outputs:o}=n(l);for(const n of o)if(Object(i["a"])(n)){const i=s(n[0]);t(e,i,n[1],n[2])}else{const t=r(n[0]);e.connect(t,n[1])}}}else e.set(l,h-u)}},a5b8:function(t,e,n){"use strict";var i=n("d8e8");function s(t){var e,n;this.promise=new t((function(t,i){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=i})),this.resolve=i(e),this.reject=i(n)}t.exports.f=function(t){return new s(t)}},a604:function(t,e){},a65a:function(t,e){},a689:function(t,e){},a69f:function(t,e,n){var i=n("5ca1");i(i.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},a6d1:function(t,e){},a6fa:function(t,e){},a7f0:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n("a24e");const s=t=>{t.getFrequencyResponse=(e=>(n,s,r)=>{if(n.length!==s.length||s.length!==r.length)throw Object(i["a"])();return e.call(t,n,s,r)})(t.getFrequencyResponse)},r={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers"},o=(t,e,n,i,o)=>class extends t{constructor(t,a){const c=i(t),l=o(c),u={...r,...a},h=e(c,l?null:t.baseLatency,u),d=l?n(u.feedback,u.feedforward):null;super(t,!1,h,d),s(h),this._nativeIIRFilterNode=h}getFrequencyResponse(t,e,n){return this._nativeIIRFilterNode.getFrequencyResponse(t,e,n)}}},a7f8:function(t,e){},a827:function(t,e){},a8ba:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("383e");const s={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",gain:1},r=(t,e,n,r,o,a)=>class extends t{constructor(t,c=s){const l=o(t),u={...s,...c},h=r(l,u),d=a(l),f=d?n():null;super(t,!1,h,f),this._gain=e(this,d,h.gain,i["b"],i["a"])}get gain(){return this._gain}}},a8ce:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=t=>void 0===t||"number"===typeof t||"string"===typeof t&&("balanced"===t||"interactive"===t||"playback"===t)},a971:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=t=>()=>{if(null===t)return!1;try{new t({length:1,sampleRate:44100})}catch{return!1}return!0}},a989:function(t,e){},a9b8:function(t,e){},a9c1:function(t,e){},aa59:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("7b2d");const s=t=>{t.getChannelData=(e=>n=>{try{return e.call(t,n)}catch(s){if(12===s.code)throw Object(i["a"])();throw s}})(t.getChannelData)}},aa77:function(t,e,n){var i=n("5ca1"),s=n("be13"),r=n("79e5"),o=n("fdef"),a="["+o+"]",c="
",l=RegExp("^"+a+a+"*"),u=RegExp(a+a+"*$"),h=function(t,e,n){var s={},a=r((function(){return!!o[t]()||c[t]()!=c})),l=s[t]=a?e(d):o[t];n&&(s[n]=l),i(i.P+i.F*a,"String",s)},d=h.trim=function(t,e){return t=String(s(t)),1&e&&(t=t.replace(l,"")),2&e&&(t=t.replace(u,"")),t};t.exports=h},aabd:function(t,e){},aad8:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=t=>null===t?null:t.hasOwnProperty("AudioContext")?t.AudioContext:t.hasOwnProperty("webkitAudioContext")?t.webkitAudioContext:null},aae3:function(t,e,n){var i=n("d3f4"),s=n("2d95"),r=n("2b4c")("match");t.exports=function(t){var e;return i(t)&&(void 0!==(e=t[r])?!!e:"RegExp"==s(t))}},ab19:function(t,e,n){"use strict";var i=n("b79a"),s=n("fcc1");function r(t){return function(e){return"string"===typeof e&&t.test(e)}}function o(t,e){return"string"===typeof t?t+e:"function"===typeof t?t(e):e}function a(t,e,n,i){var s=c(e)?l:u(e)?h:d(e)?f:p(e)?m:g(e)?b:v(e)?y:S(e)?x:_(e)?w:null,r=n||{};return s?s(t,e,r):i?Promise.resolve(i):Promise.reject("Source not valid ("+e+")")}function c(t){return t instanceof ArrayBuffer}function l(t,e,n){return new Promise((function(n,i){t.decodeAudioData(e,(function(t){n(t)}),(function(){i("Can't decode audio data ("+e.slice(0,30)+"...)")}))}))}a.fetch=s;var u=r(/\.(mp3|wav|ogg)(\?.*)?$/i);function h(t,e,n){var i=o(n.from,e);return a(t,a.fetch(i,"arraybuffer"),n)}function d(t){return t&&"function"===typeof t.then}function f(t,e,n){return e.then((function(e){return a(t,e,n)}))}var p=Array.isArray;function m(t,e,n){return Promise.all(e.map((function(e){return a(t,e,n,e)})))}function g(t){return t&&"object"===typeof t}function b(t,e,n){var i={},s=Object.keys(e).map((function(s){if(n.only&&-1===n.only.indexOf(s))return null;var r=e[s];return a(t,r,n,r).then((function(t){i[s]=t}))}));return Promise.all(s).then((function(){return i}))}var v=r(/\.json(\?.*)?$/i);function y(t,e,n){var i=o(n.from,e);return a(t,a.fetch(i,"text").then(JSON.parse),n)}var S=r(/^data:audio/);function x(t,e,n){var s=e.indexOf(",");return a(t,i.decode(e.slice(s+1)).buffer,n)}var _=r(/\.js(\?.*)?$/i);function w(t,e,n){var i=o(n.from,e);return a(t,a.fetch(i,"text").then(E),n)}function E(t){var e=t.indexOf("MIDI.Soundfont.");if(e<0)throw Error("Invalid MIDI.js Soundfont format");e=t.indexOf("=",e)+2;var n=t.lastIndexOf(",");return JSON.parse(t.slice(e,n)+"}")}t.exports&&(t.exports=a),"undefined"!==typeof window&&(window.loadAudio=a)},ab1c:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=(t,e)=>()=>{if(null===e)return!1;const n=new e(1,1,44100);if(void 0===n.createConstantSource)return!0;const i=t(n,t=>t.createConstantSource());return i.offset.maxValue!==Number.POSITIVE_INFINITY}},abb6:function(t,e){},abdd:function(t,e){},ac4d:function(t,e,n){n("3a72")("asyncIterator")},ac6a:function(t,e,n){for(var i=n("cadf"),s=n("0d58"),r=n("2aba"),o=n("7726"),a=n("32e9"),c=n("84f2"),l=n("2b4c"),u=l("iterator"),h=l("toStringTag"),d=c.Array,f={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},p=s(f),m=0;m<p.length;m++){var g,b=p[m],v=f[b],y=o[b],S=y&&y.prototype;if(S&&(S[u]||a(S,u,d),S[h]||a(S,h,b),c[b]=d,v))for(g in i)S[g]||r(S,g,i[g],!0)}},ad17:function(t,e){},adc1:function(t,e){},adc3:function(t,e){},ae00:function(t,e){},ae01:function(t,e){},ae2c:function(t,e){},ae5f:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=(t,e)=>()=>{if(null===e)return!1;const n=new e(1,1,44100),i=t(n,t=>t.createChannelMerger());if("max"===i.channelCountMode)return!0;try{i.channelCount=2}catch{return!0}return!1}},ae66:function(t,e){},ae71:function(t,e){},aee0:function(t,e){},aeeb:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("752e");const s=t=>i["a"].has(t)},aef6:function(t,e,n){"use strict";var i=n("5ca1"),s=n("9def"),r=n("d2c8"),o="endsWith",a=""[o];i(i.P+i.F*n("5147")(o),"String",{endsWith:function(t){var e=r(this,t,o),n=arguments.length>1?arguments[1]:void 0,i=s(e.length),c=void 0===n?i:Math.min(s(n),i),l=String(t);return a?a.call(e,l,c):e.slice(c-l.length,c)===l}})},af56:function(t,e,n){n("ec30")("Uint16",2,(function(t){return function(e,n,i){return t(this,e,n,i)}}))},af70:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=(t,e)=>(n,i)=>{const s=e.get(n);if(void 0!==s)return s;const r=t.get(n);if(void 0!==r)return r;try{const s=i();return s instanceof Promise?(t.set(n,s),s.catch(()=>!1).then(i=>(t.delete(n),e.set(n,i),i))):(e.set(n,s),s)}catch{return e.set(n,!1),!1}}},afca:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("180a"),s=n("5b43");const r=(t,e,n,r)=>(o,a)=>{const c=t(o,t=>t.createConvolver());try{c.channelCount=1}catch(l){return e(o,a)}if(Object(s["a"])(c,a),a.disableNormalization===c.normalize&&(c.normalize=!a.disableNormalization),Object(i["a"])(c,a,"buffer"),a.channelCount>2)throw n();if(r(c,"channelCount",t=>()=>t.call(c),t=>e=>{if(e>2)throw n();return t.call(c,e)}),"max"===a.channelCountMode)throw n();return r(c,"channelCountMode",t=>()=>t.call(c),t=>e=>{if("max"===e)throw n();return t.call(c,e)}),c}},b05c:function(t,e,n){n("ec30")("Int8",1,(function(t){return function(e,n,i){return t(this,e,n,i)}}))},b08a:function(t,e){},b096:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=(t,e)=>n=>t(n)||e(n)},b0a5:function(t,e){function n(t,e){return function(n,i,s,r){t(n,i,s,r),e(n,i,s,r)}}t.exports=function(t){return t.on=function(e,i){if(1===arguments.length&&"function"===typeof e)return t.on("event",e);var s="on"+e,r=t[s];return t[s]=r?n(r,i):i,t},t}},b0c5:function(t,e,n){"use strict";var i=n("520a");n("5ca1")({target:"RegExp",proto:!0,forced:i!==/./.exec},{exec:i})},b0f2:function(t,e){},b0f4:function(t,e){},b158:function(t,e){},b1b1:function(t,e,n){var i=n("5ca1"),s=n("9c12"),r=Math.abs;i(i.S,"Number",{isSafeInteger:function(t){return s(t)&&r(t)<=9007199254740991}})},b1e4:function(t,e){},b39a:function(t,e,n){var i=n("d3f4");t.exports=function(t,e){if(!i(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t}},b3b4:function(t,e){},b464:function(t,e){},b480:function(t,e){},b50d:function(t,e,n){"use strict";var i=n("c532"),s=n("467f"),r=n("7aac"),o=n("30b5"),a=n("83b9"),c=n("c345"),l=n("3934"),u=n("2d83");t.exports=function(t){return new Promise((function(e,n){var h=t.data,d=t.headers;i.isFormData(h)&&delete d["Content-Type"];var f=new XMLHttpRequest;if(t.auth){var p=t.auth.username||"",m=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";d.Authorization="Basic "+btoa(p+":"+m)}var g=a(t.baseURL,t.url);if(f.open(t.method.toUpperCase(),o(g,t.params,t.paramsSerializer),!0),f.timeout=t.timeout,f.onreadystatechange=function(){if(f&&4===f.readyState&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))){var i="getAllResponseHeaders"in f?c(f.getAllResponseHeaders()):null,r=t.responseType&&"text"!==t.responseType?f.response:f.responseText,o={data:r,status:f.status,statusText:f.statusText,headers:i,config:t,request:f};s(e,n,o),f=null}},f.onabort=function(){f&&(n(u("Request aborted",t,"ECONNABORTED",f)),f=null)},f.onerror=function(){n(u("Network Error",t,null,f)),f=null},f.ontimeout=function(){var e="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),n(u(e,t,"ECONNABORTED",f)),f=null},i.isStandardBrowserEnv()){var b=(t.withCredentials||l(g))&&t.xsrfCookieName?r.read(t.xsrfCookieName):void 0;b&&(d[t.xsrfHeaderName]=b)}if("setRequestHeader"in f&&i.forEach(d,(function(t,e){"undefined"===typeof h&&"content-type"===e.toLowerCase()?delete d[e]:f.setRequestHeader(e,t)})),i.isUndefined(t.withCredentials)||(f.withCredentials=!!t.withCredentials),t.responseType)try{f.responseType=t.responseType}catch(v){if("json"!==t.responseType)throw v}"function"===typeof t.onDownloadProgress&&f.addEventListener("progress",t.onDownloadProgress),"function"===typeof t.onUploadProgress&&f.upload&&f.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){f&&(f.abort(),n(t),f=null)})),h||(h=null),f.send(h)}))}},b510:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=(t,e,n,i)=>class extends t{constructor(t,s){const r=n(t),o=e(r,s);if(i(r))throw TypeError();super(t,!0,o,null),this._mediaElement=s.mediaElement,this._nativeMediaElementAudioSourceNode=o}get mediaElement(){return void 0===this._nativeMediaElementAudioSourceNode.mediaElement?this._mediaElement:this._nativeMediaElementAudioSourceNode.mediaElement}}},b54a:function(t,e,n){"use strict";n("386b")("link",(function(t){return function(e){return t(this,"a","href",e)}}))},b5c1:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("8af4");const s=t=>(e,n)=>{const s=t(n,t=>t.createGain());e.connect(s);const r=(t=>()=>{t.call(e,s),e.removeEventListener("ended",r)})(e.disconnect);e.addEventListener("ended",r),Object(i["a"])(e,s),e.stop=(t=>{let n=!1;return(i=0)=>{if(n)try{t.call(e,i)}catch{s.gain.setValueAtTime(0,i)}else t.call(e,i),n=!0}})(e.stop)}},b5e3:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("e190");const s=(t,e,n,s,r)=>()=>{const o=new WeakMap,a=async(a,c,l)=>{let u=n(a);const h=Object(i["a"])(u,c);if(!h){const t={Q:u.Q.value,channelCount:u.channelCount,channelCountMode:u.channelCountMode,channelInterpretation:u.channelInterpretation,detune:u.detune.value,frequency:u.frequency.value,gain:u.gain.value,type:u.type};u=e(c,t)}return o.set(c,u),h?(await t(c,a.Q,u.Q,l),await t(c,a.detune,u.detune,l),await t(c,a.frequency,u.frequency,l),await t(c,a.gain,u.gain,l)):(await s(c,a.Q,u.Q,l),await s(c,a.detune,u.detune,l),await s(c,a.frequency,u.frequency,l),await s(c,a.gain,u.gain,l)),await r(a,c,u,l),u};return{render(t,e,n){const i=o.get(e);return void 0!==i?Promise.resolve(i):a(t,e,n)}}}},b5f9:function(t,e){},b61d:function(t,e){},b646:function(t,e){},b6e4:function(t,e,n){n("ec30")("Int32",4,(function(t){return function(e,n,i){return t(this,e,n,i)}}))},b79a:function(t,e,n){"use strict";function i(t){return t>64&&t<91?t-65:t>96&&t<123?t-71:t>47&&t<58?t+4:43===t?62:47===t?63:0}function s(t,e){for(var n,s,r=t.replace(/[^A-Za-z0-9\+\/]/g,""),o=r.length,a=e?Math.ceil((3*o+1>>2)/e)*e:3*o+1>>2,c=new Uint8Array(a),l=0,u=0,h=0;h<o;h++)if(s=3&h,l|=i(r.charCodeAt(h))<<18-6*s,3===s||o-h===1){for(n=0;n<3&&u<a;n++,u++)c[u]=l>>>(16>>>n&24)&255;l=0}return c}t.exports={decode:s}},b81c:function(t,e){},b8ae:function(t,e){},b957:function(t,e){},b9a1:function(t,e,n){"use strict";var i=n("5ca1"),s=n("4bf8"),r=n("6a99"),o=n("38fd"),a=n("11e9").f;n("9e1e")&&i(i.P+n("c5b4"),"Object",{__lookupGetter__:function(t){var e,n=s(this),i=r(t,!0);do{if(e=a(n,i))return e.get}while(n=o(n))}})},b9b0:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n("fd82"),s=n("aa59");const r={numberOfChannels:1},o=(t,e,n,o,a,c,l,u)=>{let h=null;return class d{constructor(d){if(null===a)throw new Error("Missing the native OfflineAudioContext constructor.");const{length:f,numberOfChannels:p,sampleRate:m}={...r,...d};null===h&&(h=new a(1,1,44100));const g=null!==o&&e(c,c)?new o({length:f,numberOfChannels:p,sampleRate:m}):h.createBuffer(p,f,m);if(0===g.numberOfChannels)throw n();return"function"!==typeof g.copyFromChannel?(l(g),Object(s["a"])(g)):e(i["a"],()=>Object(i["a"])(g))||u(g),t.add(g),g}static[Symbol.hasInstance](e){return null!==e&&"object"===typeof e&&Object.getPrototypeOf(e)===d.prototype||t.has(e)}}}},b9ea:function(t,e){},b9f1:function(t,e){},b9fb:function(t,e){},ba16:function(t,e,n){var i=n("5ca1"),s=n("11e9").f,r=n("cb7c");i(i.S,"Reflect",{deleteProperty:function(t,e){var n=s(r(t),e);return!(n&&!n.configurable)&&delete t[e]}})},ba7d:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("0bf9"),s=n("5b43");const r=(t,e)=>(n,r)=>{const o=t(n,t=>t.createDynamicsCompressor());if(Object(s["a"])(o,r),r.channelCount>2)throw e();if("max"===r.channelCountMode)throw e();return Object(i["a"])(o,r,"attack"),Object(i["a"])(o,r,"knee"),Object(i["a"])(o,r,"ratio"),Object(i["a"])(o,r,"release"),Object(i["a"])(o,r,"threshold"),o}},ba92:function(t,e,n){"use strict";var i=n("4bf8"),s=n("77f1"),r=n("9def");t.exports=[].copyWithin||function(t,e){var n=i(this),o=r(n.length),a=s(t,o),c=s(e,o),l=arguments.length>2?arguments[2]:void 0,u=Math.min((void 0===l?o:s(l,o))-c,o-a),h=1;c<a&&a<c+u&&(h=-1,c+=u-1,a+=u-1);while(u-- >0)c in n?n[a]=n[c]:delete n[a],a+=h,c+=h;return n}},baba:function(t,e){},bb21:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=(t,e)=>()=>{if(null===e)return Promise.resolve(!1);const n=new e(1,1,44100),i=t(n,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});return new Promise(t=>{n.oncomplete=()=>{i.disconnect(),t(0!==n.currentTime)},n.startRendering()})}},bc3a:function(t,e,n){t.exports=n("cee4")},bc86:function(t,e){},bc93:function(t,e){},bcaa:function(t,e,n){var i=n("cb7c"),s=n("d3f4"),r=n("a5b8");t.exports=function(t,e){if(i(t),s(e)&&e.constructor===t)return e;var n=r.f(t),o=n.resolve;return o(e),n.promise}},bcc4:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));const i={buffer:null,channelCount:2,channelCountMode:"clamped-max",channelInterpretation:"speakers",disableNormalization:!1},s=(t,e,n,s,r)=>class extends t{constructor(t,o=i){const a=s(t),c={...i,...o},l=n(a,c),u=r(a),h=u?e():null;super(t,!1,l,h),this._isBufferNullified=!1,this._nativeConvolverNode=l}get buffer(){return this._isBufferNullified?null:this._nativeConvolverNode.buffer}set buffer(t){if(this._nativeConvolverNode.buffer=t,null===t&&null!==this._nativeConvolverNode.buffer){const t=this._nativeConvolverNode.context;this._nativeConvolverNode.buffer=t.createBuffer(1,1,t.sampleRate),this._isBufferNullified=!0}else this._isBufferNullified=!1}get normalize(){return this._nativeConvolverNode.normalize}set normalize(t){this._nativeConvolverNode.normalize=t}}},bd33:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=t=>()=>null!==t&&t.hasOwnProperty("isSecureContext")},bd82:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=t=>e=>null!==t&&"function"===typeof t.AudioParam&&e instanceof t.AudioParam},bdd3:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=async(t,e,n,i,s,r,o,a,c,l,u,h,d,f)=>{if(t(e,e)&&t(n,n)&&t(s,s)&&t(r,r)&&t(a,a)&&t(c,c)&&t(l,l)&&t(u,u)&&t(h,h)){const e=await Promise.all([t(i,i),t(o,o),t(d,d),t(f,f)]);return e.every(t=>t)}return!1}},be13:function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},be78:function(t,e){},bf40:function(t,e,n){},bf74:function(t,e){},bfb6:function(t,e){},c02b:function(t,e,n){"use strict";var i=n("643e"),s=n("b39a"),r="WeakSet";n("e0b8")(r,(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(t){return i.def(s(this,r),t,!0)}},i,!1,!0)},c02f:function(t,e){},c033:function(t,e){},c05b:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("752e");const s=(t,e,n,s,r,o)=>class extends n{constructor(n,o){super(n),this._nativeContext=n,i["g"].set(this,n);const a=n.sampleRate;Object.defineProperty(n,"sampleRate",{get:()=>a}),s(n)&&r.set(n,new Set),this._destination=new t(this,o),this._listener=e(this,n),this._onstatechange=null}get currentTime(){return this._nativeContext.currentTime}get destination(){return this._destination}get listener(){return this._listener}get onstatechange(){return this._onstatechange}set onstatechange(t){const e="function"===typeof t?o(this,t):null;this._nativeContext.onstatechange=e;const n=this._nativeContext.onstatechange;this._onstatechange=null!==n&&n===e?t:n}get sampleRate(){return this._nativeContext.sampleRate}get state(){return this._nativeContext.state}}},c0b0:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=t=>{let e=null;const n=async(e,n,i)=>{const s=n.destination;return await t(e,n,s,i),s};return{render(t,i,s){return null===e&&(e=n(t,i,s)),e}}}},c0ca:function(t,e){},c121:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=t=>(e,n,i,s)=>t(n,e,i,s)},c153:function(t,e){},c15b:function(t,e){},c1aa:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=t=>e=>(t[0]=e,t[0])},c1ca:function(t,e){},c26b:function(t,e,n){"use strict";var i=n("86cc").f,s=n("2aeb"),r=n("dcbc"),o=n("9b43"),a=n("f605"),c=n("4a59"),l=n("01f9"),u=n("d53b"),h=n("7a56"),d=n("9e1e"),f=n("67ab").fastKey,p=n("b39a"),m=d?"_s":"size",g=function(t,e){var n,i=f(e);if("F"!==i)return t._i[i];for(n=t._f;n;n=n.n)if(n.k==e)return n};t.exports={getConstructor:function(t,e,n,l){var u=t((function(t,i){a(t,u,e,"_i"),t._t=e,t._i=s(null),t._f=void 0,t._l=void 0,t[m]=0,void 0!=i&&c(i,n,t[l],t)}));return r(u.prototype,{clear:function(){for(var t=p(this,e),n=t._i,i=t._f;i;i=i.n)i.r=!0,i.p&&(i.p=i.p.n=void 0),delete n[i.i];t._f=t._l=void 0,t[m]=0},delete:function(t){var n=p(this,e),i=g(n,t);if(i){var s=i.n,r=i.p;delete n._i[i.i],i.r=!0,r&&(r.n=s),s&&(s.p=r),n._f==i&&(n._f=s),n._l==i&&(n._l=r),n[m]--}return!!i},forEach:function(t){p(this,e);var n,i=o(t,arguments.length>1?arguments[1]:void 0,3);while(n=n?n.n:this._f){i(n.v,n.k,this);while(n&&n.r)n=n.p}},has:function(t){return!!g(p(this,e),t)}}),d&&i(u.prototype,"size",{get:function(){return p(this,e)[m]}}),u},def:function(t,e,n){var i,s,r=g(t,e);return r?r.v=n:(t._l=r={i:s=f(e,!0),k:e,v:n,p:i=t._l,n:void 0,r:!1},t._f||(t._f=r),i&&(i.n=r),t[m]++,"F"!==s&&(t._i[s]=r)),t},getEntry:g,setStrong:function(t,e,n){l(t,e,(function(t,n){this._t=p(t,e),this._k=n,this._l=void 0}),(function(){var t=this,e=t._k,n=t._l;while(n&&n.r)n=n.p;return t._t&&(t._l=n=n?n.n:t._t._f)?u(0,"keys"==e?n.k:"values"==e?n.v:[n.k,n.v]):(t._t=void 0,u(1))}),n?"entries":"values",!n,!0),h(e)}}},c2f0:function(t,e){},c345:function(t,e,n){"use strict";var i=n("c532"),s=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,n,r,o={};return t?(i.forEach(t.split("\n"),(function(t){if(r=t.indexOf(":"),e=i.trim(t.substr(0,r)).toLowerCase(),n=i.trim(t.substr(r+1)),e){if(o[e]&&s.indexOf(e)>=0)return;o[e]="set-cookie"===e?(o[e]?o[e]:[]).concat([n]):o[e]?o[e]+", "+n:n}})),o):o}},c348:function(t,e){},c366:function(t,e,n){var i=n("6821"),s=n("9def"),r=n("77f1");t.exports=function(t){return function(e,n,o){var a,c=i(e),l=s(c.length),u=r(o,l);if(t&&n!=n){while(l>u)if(a=c[u++],a!=a)return!0}else for(;l>u;u++)if((t||u in c)&&c[u]===n)return t||u||0;return!t&&-1}}},c388:function(t,e){},c399:function(t,e){},c3be:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("264b");const s=(t,e,n,s,r,o)=>a=>(c,l)=>{const u=t.get(c);if(void 0===u){if(!a&&o(c)){const t=s(c),{outputs:o}=n(c);for(const n of o)if(Object(i["a"])(n)){const i=s(n[0]);e(t,i,n[1],n[2])}else{const e=r(n[0]);t.disconnect(e,n[1])}}t.set(c,l)}else t.set(c,u+l)}},c3f1:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));const i={channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:6},s=(t,e,n,s,r)=>class extends t{constructor(t,o=i){const a=s(t),c={...i,...o},l=n(a,c),u=r(a)?e():null;super(t,!1,l,u)}}},c401:function(t,e,n){"use strict";var i=n("c532");t.exports=function(t,e,n){return i.forEach(n,(function(n){t=n(t,e)})),t}},c532:function(t,e,n){"use strict";var i=n("1d2b"),s=Object.prototype.toString;function r(t){return"[object Array]"===s.call(t)}function o(t){return"undefined"===typeof t}function a(t){return null!==t&&!o(t)&&null!==t.constructor&&!o(t.constructor)&&"function"===typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}function c(t){return"[object ArrayBuffer]"===s.call(t)}function l(t){return"undefined"!==typeof FormData&&t instanceof FormData}function u(t){var e;return e="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer,e}function h(t){return"string"===typeof t}function d(t){return"number"===typeof t}function f(t){return null!==t&&"object"===typeof t}function p(t){if("[object Object]"!==s.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function m(t){return"[object Date]"===s.call(t)}function g(t){return"[object File]"===s.call(t)}function b(t){return"[object Blob]"===s.call(t)}function v(t){return"[object Function]"===s.call(t)}function y(t){return f(t)&&v(t.pipe)}function S(t){return"undefined"!==typeof URLSearchParams&&t instanceof URLSearchParams}function x(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")}function _(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)}function w(t,e){if(null!==t&&"undefined"!==typeof t)if("object"!==typeof t&&(t=[t]),r(t))for(var n=0,i=t.length;n<i;n++)e.call(null,t[n],n,t);else for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&e.call(null,t[s],s,t)}function E(){var t={};function e(e,n){p(t[n])&&p(e)?t[n]=E(t[n],e):p(e)?t[n]=E({},e):r(e)?t[n]=e.slice():t[n]=e}for(var n=0,i=arguments.length;n<i;n++)w(arguments[n],e);return t}function T(t,e,n){return w(e,(function(e,s){t[s]=n&&"function"===typeof e?i(e,n):e})),t}function C(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t}t.exports={isArray:r,isArrayBuffer:c,isBuffer:a,isFormData:l,isArrayBufferView:u,isString:h,isNumber:d,isObject:f,isPlainObject:p,isUndefined:o,isDate:m,isFile:g,isBlob:b,isFunction:v,isStream:y,isURLSearchParams:S,isStandardBrowserEnv:_,forEach:w,merge:E,extend:T,trim:x,stripBOM:C}},c53d:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var i=n("180a"),s=n("5b43");const r=t=>"function"===typeof t.getFloatTimeDomainData,o=t=>{t.getFloatTimeDomainData=e=>{const n=new Uint8Array(e.length);t.getByteTimeDomainData(n);const i=Math.max(n.length,t.fftSize);for(let t=0;t<i;t+=1)e[t]=.0078125*(n[t]-128);return e}},a=(t,e,n)=>(a,c)=>{const l=n(a,t=>t.createAnalyser());if(Object(s["a"])(l,c),!(c.maxDecibels>c.minDecibels))throw e();return Object(i["a"])(l,c,"fftSize"),Object(i["a"])(l,c,"maxDecibels"),Object(i["a"])(l,c,"minDecibels"),Object(i["a"])(l,c,"smoothingTimeConstant"),t(r,()=>r(l))||o(l),l}},c541:function(t,e){},c569:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n("1e82"),s=n("c895");const r={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",detune:0,frequency:440,type:"sine"},o=(t,e,n,o,a,c,l,u)=>class extends t{constructor(t,n=r){const i=c(t),s={...r,...n},u=o(i,s),h=l(i),d=h?a():null,f=t.sampleRate/2;super(t,!1,u,d),this._detune=e(this,h,u.detune,153600,-153600),this._frequency=e(this,h,u.frequency,f,-f),this._nativeOscillatorNode=u,this._onended=null,this._oscillatorNodeRenderer=d,null!==this._oscillatorNodeRenderer&&void 0!==s.periodicWave&&(this._oscillatorNodeRenderer.periodicWave=s.periodicWave)}get detune(){return this._detune}get frequency(){return this._frequency}get onended(){return this._onended}set onended(t){const e="function"===typeof t?u(this,t):null;this._nativeOscillatorNode.onended=e;const n=this._nativeOscillatorNode.onended;this._onended=null!==n&&n===e?t:n}get type(){return this._nativeOscillatorNode.type}set type(t){if(this._nativeOscillatorNode.type=t,"custom"===t)throw n();null!==this._oscillatorNodeRenderer&&(this._oscillatorNodeRenderer.periodicWave=null)}setPeriodicWave(t){this._nativeOscillatorNode.setPeriodicWave(t),null!==this._oscillatorNodeRenderer&&(this._oscillatorNodeRenderer.periodicWave=t)}start(t=0){if(this._nativeOscillatorNode.start(t),null!==this._oscillatorNodeRenderer)this._oscillatorNodeRenderer.start=t;else{Object(i["a"])(this);const t=()=>{this._nativeOscillatorNode.removeEventListener("ended",t),setTimeout(()=>Object(s["a"])(this),1e3)};this._nativeOscillatorNode.addEventListener("ended",t)}}stop(t=0){this._nativeOscillatorNode.stop(t),null!==this._oscillatorNodeRenderer&&(this._oscillatorNodeRenderer.stop=t)}}},c57a:function(t,e){},c5b4:function(t,e,n){"use strict";t.exports=n("2d00")||!n("79e5")((function(){var t=Math.random();__defineSetter__.call(null,t,(function(){})),delete n("7726")[t]}))},c5f6:function(t,e,n){"use strict";var i=n("7726"),s=n("69a8"),r=n("2d95"),o=n("5dbc"),a=n("6a99"),c=n("79e5"),l=n("9093").f,u=n("11e9").f,h=n("86cc").f,d=n("aa77").trim,f="Number",p=i[f],m=p,g=p.prototype,b=r(n("2aeb")(g))==f,v="trim"in String.prototype,y=function(t){var e=a(t,!1);if("string"==typeof e&&e.length>2){e=v?e.trim():d(e,3);var n,i,s,r=e.charCodeAt(0);if(43===r||45===r){if(n=e.charCodeAt(2),88===n||120===n)return NaN}else if(48===r){switch(e.charCodeAt(1)){case 66:case 98:i=2,s=49;break;case 79:case 111:i=8,s=55;break;default:return+e}for(var o,c=e.slice(2),l=0,u=c.length;l<u;l++)if(o=c.charCodeAt(l),o<48||o>s)return NaN;return parseInt(c,i)}}return+e};if(!p(" 0o1")||!p("0b1")||p("+0x1")){p=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof p&&(b?c((function(){g.valueOf.call(n)})):r(n)!=f)?o(new m(y(e)),n,p):y(e)};for(var S,x=n("9e1e")?l(m):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),_=0;x.length>_;_++)s(m,S=x[_])&&!s(p,S)&&h(p,S,u(m,S));p.prototype=g,g.constructor=p,n("2aba")(i,f,p)}},c66f:function(t,e,n){"use strict";var i=n("5ca1"),s=n("0f88"),r=n("ed0b"),o=n("cb7c"),a=n("77f1"),c=n("9def"),l=n("d3f4"),u=n("7726").ArrayBuffer,h=n("ebd6"),d=r.ArrayBuffer,f=r.DataView,p=s.ABV&&u.isView,m=d.prototype.slice,g=s.VIEW,b="ArrayBuffer";i(i.G+i.W+i.F*(u!==d),{ArrayBuffer:d}),i(i.S+i.F*!s.CONSTR,b,{isView:function(t){return p&&p(t)||l(t)&&g in t}}),i(i.P+i.U+i.F*n("79e5")((function(){return!new d(2).slice(1,void 0).byteLength})),b,{slice:function(t,e){if(void 0!==m&&void 0===e)return m.call(o(this),t);var n=o(this).byteLength,i=a(t,n),s=a(void 0===e?n:e,n),r=new(h(this,d))(c(s-i)),l=new f(this),u=new f(r),p=0;while(i<s)u.setUint8(p++,l.getUint8(i++));return r}}),n("7a56")(b)},c698:function(t,e,n){var i=n("5ca1");i(i.S,"Reflect",{ownKeys:n("990b")})},c69a:function(t,e,n){t.exports=!n("9e1e")&&!n("79e5")((function(){return 7!=Object.defineProperty(n("230e")("div"),"a",{get:function(){return 7}}).a}))},c6b2:function(t,e){},c720:function(t,e){},c779:function(t,e){},c781:function(t,e){},c7bd:function(t,e){},c7c6:function(t,e,n){var i=n("5ca1"),s=Math.abs;i(i.S,"Math",{hypot:function(t,e){var n,i,r=0,o=0,a=arguments.length,c=0;while(o<a)n=s(arguments[o++]),c<n?(i=c/n,r=r*i*i+1,c=n):n>0?(i=n/c,r+=i*i):r+=n;return c===1/0?1/0:c*Math.sqrt(r)}})},c7c62:function(t,e,n){var i=n("5ca1"),s=n("2d5c"),r=Math.exp;i(i.S,"Math",{tanh:function(t){var e=s(t=+t),n=s(-t);return e==1/0?1:n==1/0?-1:(e-n)/(r(t)+r(-t))}})},c7d6:function(t,e){},c80b:function(t,e){},c895:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("752e"),s=n("e427");const r=t=>{if(!i["a"].has(t))throw new Error("The AudioNode is not stored.");i["a"].delete(t),Object(s["a"])(t).forEach(t=>t(!1))}},c896:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=t=>(e,n)=>{const i=t(e);return n(null!==i?i:e)}},c8a9:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=(t,e,n,i,s,r,o,a)=>class extends t{constructor(t,n){const i=r(t),c=o(i),l=s(i,n,c),u=c?e(a):null;super(t,!1,l,u),this._isNodeOfNativeOfflineAudioContext=c,this._nativeAudioDestinationNode=l}get channelCount(){return this._nativeAudioDestinationNode.channelCount}set channelCount(t){if(this._isNodeOfNativeOfflineAudioContext)throw i();if(t>this._nativeAudioDestinationNode.maxChannelCount)throw n();this._nativeAudioDestinationNode.channelCount=t}get channelCountMode(){return this._nativeAudioDestinationNode.channelCountMode}set channelCountMode(t){if(this._isNodeOfNativeOfflineAudioContext)throw i();this._nativeAudioDestinationNode.channelCountMode=t}get maxChannelCount(){return this._nativeAudioDestinationNode.maxChannelCount}}},c8af:function(t,e,n){"use strict";var i=n("c532");t.exports=function(t,e){i.forEach(t,(function(n,i){i!==e&&i.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[i])}))}},c8ba:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(i){"object"===typeof window&&(n=window)}t.exports=n},c8ce:function(t,e,n){var i=n("2b4c")("toPrimitive"),s=Date.prototype;i in s||n("32e9")(s,i,n("8381"))},c953:function(t,e){},c965:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=t=>"context"in t},ca04:function(t,e){},ca24:function(t,e){},ca5a:function(t,e){var n=0,i=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+i).toString(36))}},ca6e:function(t,e){},cacd:function(t,e){},cadf:function(t,e,n){"use strict";var i=n("9c6c"),s=n("d53b"),r=n("84f2"),o=n("6821");t.exports=n("01f9")(Array,"Array",(function(t,e){this._t=o(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,s(1)):s(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])}),"values"),r.Arguments=r.Array,i("keys"),i("values"),i("entries")},cafb:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=t=>e=>{const n=t(e,t=>t.createOscillator());try{n.start(-1)}catch(i){return i instanceof RangeError}return!1}},cb12:function(t,e){},cb7c:function(t,e,n){var i=n("d3f4");t.exports=function(t){if(!i(t))throw TypeError(t+" is not an object!");return t}},cb86:function(t,e){},cba6:function(t,e){},cbf2:function(t,e){},cc54:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n("0bf9"),s=n("180a"),r=n("5b43");const o=(t,e)=>(n,o)=>{const a=t(n,t=>t.createPanner());return void 0===a.orientationX?e(n,o):(Object(r["a"])(a,o),Object(i["a"])(a,o,"orientationX"),Object(i["a"])(a,o,"orientationY"),Object(i["a"])(a,o,"orientationZ"),Object(i["a"])(a,o,"positionX"),Object(i["a"])(a,o,"positionY"),Object(i["a"])(a,o,"positionZ"),Object(s["a"])(a,o,"coneInnerAngle"),Object(s["a"])(a,o,"coneOuterAngle"),Object(s["a"])(a,o,"coneOuterGain"),Object(s["a"])(a,o,"distanceModel"),Object(s["a"])(a,o,"maxDistance"),Object(s["a"])(a,o,"panningModel"),Object(s["a"])(a,o,"refDistance"),Object(s["a"])(a,o,"rolloffFactor"),a)}},cc7a:function(t,e){},ccf9:function(t,e,n){"use strict";var i=/^([a-gA-G])(#{1,}|b{1,}|x{1,}|)(-?\d*)\s*(.*)\s*$/;function s(){return i}var r=[0,2,4,5,7,9,11];function o(t,e,n){if("string"!==typeof t)return null;var s=i.exec(t);if(!s||!e&&s[4])return null;var o={letter:s[1].toUpperCase(),acc:s[2].replace(/x/g,"##")};return o.pc=o.letter+o.acc,o.step=(o.letter.charCodeAt(0)+3)%7,o.alt="b"===o.acc[0]?-o.acc.length:o.acc.length,o.chroma=r[o.step]+o.alt,s[3]&&(o.oct=+s[3],o.midi=o.chroma+12*(o.oct+1),o.freq=a(o.midi,n)),e&&(o.tonicOf=s[4]),o}function a(t,e){return Math.pow(2,(t-69)/12)*(e||440)}var c={parse:o,regex:s,midiToFreq:a},l=["letter","acc","pc","step","alt","chroma","oct","midi","freq"];l.forEach((function(t){c[t]=function(e){var n=o(e);return n&&"undefined"!==typeof n[t]?n[t]:null}})),t.exports=c},cd00:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=()=>{try{return new DOMException("","InvalidStateError")}catch(t){return t.code=11,t.name="InvalidStateError",t}}},cd1b:function(t,e){},cd1ba:function(t,e){},cd1c:function(t,e,n){var i=n("e853");t.exports=function(t,e){return new(i(t))(e)}},ce10:function(t,e,n){var i=n("69a8"),s=n("6821"),r=n("c366")(!1),o=n("613b")("IE_PROTO");t.exports=function(t,e){var n,a=s(t),c=0,l=[];for(n in a)n!=o&&i(a,n)&&l.push(n);while(e.length>c)i(a,n=e[c++])&&(~r(l,n)||l.push(n));return l}},ce5b:function(t,e,n){(function(e,i){t.exports=i(n("2b0e"))})("undefined"!==typeof self&&self,(function(t){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var s=e[i]={i:i,l:!1,exports:{}};return t[i].call(s.exports,s,s.exports,n),s.l=!0,s.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var s in t)n.d(i,s,function(e){return t[e]}.bind(null,s));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/dist/",n(n.s="./src/index.ts")}({"./src/components/VAlert/VAlert.ts":
- /*!*****************************************!*\
- !*** ./src/components/VAlert/VAlert.ts ***!
- \*****************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);n(/*! ../../stylus/components/_alerts.styl */"./src/stylus/components/_alerts.styl");var i=n(/*! ../VIcon */"./src/components/VIcon/index.ts"),s=n(/*! ../../mixins/colorable */"./src/mixins/colorable.ts"),r=n(/*! ../../mixins/toggleable */"./src/mixins/toggleable.ts"),o=n(/*! ../../mixins/transitionable */"./src/mixins/transitionable.ts"),a=n(/*! ../../util/mixins */"./src/util/mixins.ts");e["default"]=Object(a["default"])(s["default"],r["default"],o["default"]).extend({name:"v-alert",props:{dismissible:Boolean,icon:String,outline:Boolean,type:{type:String,validator:function(t){return["info","error","success","warning"].includes(t)}}},computed:{computedColor:function(){return this.type&&!this.color?this.type:this.color||"error"},computedIcon:function(){if(this.icon||!this.type)return this.icon;switch(this.type){case"info":return"$vuetify.icons.info";case"error":return"$vuetify.icons.error";case"success":return"$vuetify.icons.success";case"warning":return"$vuetify.icons.warning"}}},methods:{genIcon:function(){return this.computedIcon?this.$createElement(i["default"],{class:"v-alert__icon"},this.computedIcon):null},genDismissible:function(){var t=this;return this.dismissible?this.$createElement("a",{class:"v-alert__dismissible",on:{click:function(){t.isActive=!1}}},[this.$createElement(i["default"],{props:{right:!0}},"$vuetify.icons.cancel")]):null}},render:function(t){var e=[this.genIcon(),t("div",this.$slots.default),this.genDismissible()],n=this.outline?this.setTextColor:this.setBackgroundColor,i=t("div",n(this.computedColor,{staticClass:"v-alert",class:{"v-alert--outline":this.outline},directives:[{name:"show",value:this.isActive}],on:this.$listeners}),e);return this.transition?t("transition",{props:{name:this.transition,origin:this.origin,mode:this.mode}},[i]):i}})},"./src/components/VAlert/index.ts":
- /*!****************************************!*\
- !*** ./src/components/VAlert/index.ts ***!
- \****************************************/
- /*! exports provided: VAlert, default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ./VAlert */"./src/components/VAlert/VAlert.ts");n.d(e,"VAlert",(function(){return i["default"]})),e["default"]=i["default"]},"./src/components/VApp/VApp.js":
- /*!*************************************!*\
- !*** ./src/components/VApp/VApp.js ***!
- \*************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);n(/*! ../../stylus/components/_app.styl */"./src/stylus/components/_app.styl");var i=n(/*! ./mixins/app-theme */"./src/components/VApp/mixins/app-theme.js"),s=n(/*! ../../mixins/themeable */"./src/mixins/themeable.ts"),r=n(/*! ../../directives/resize */"./src/directives/resize.ts"),o=function(){return o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var s in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t},o.apply(this,arguments)};e["default"]={name:"v-app",directives:{Resize:r["default"]},mixins:[i["default"],s["default"]],props:{id:{type:String,default:"app"},dark:Boolean},computed:{classes:function(){return o({"application--is-rtl":this.$vuetify.rtl},this.themeClasses)}},watch:{dark:function(){this.$vuetify.dark=this.dark}},mounted:function(){this.$vuetify.dark=this.dark},render:function(t){var e={staticClass:"application",class:this.classes,attrs:{"data-app":!0},domProps:{id:this.id}},n=t("div",{staticClass:"application--wrap"},this.$slots.default);return t("div",e,[n])}}},"./src/components/VApp/index.js":
- /*!**************************************!*\
- !*** ./src/components/VApp/index.js ***!
- \**************************************/
- /*! exports provided: VApp, default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ./VApp */"./src/components/VApp/VApp.js");n.d(e,"VApp",(function(){return i["default"]})),e["default"]=i["default"]},"./src/components/VApp/mixins/app-theme.js":
- /*!*************************************************!*\
- !*** ./src/components/VApp/mixins/app-theme.js ***!
- \*************************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ../../../util/theme */"./src/util/theme.ts");e["default"]={data:function(){return{style:null}},computed:{parsedTheme:function(){return i["parse"](this.$vuetify.theme)},generatedStyles:function(){var t,e=this.parsedTheme;return null!=this.$vuetify.options.themeCache&&(t=this.$vuetify.options.themeCache.get(e),null!=t)||(t=i["genStyles"](e,this.$vuetify.options.customProperties),null!=this.$vuetify.options.minifyTheme&&(t=this.$vuetify.options.minifyTheme(t)),null!=this.$vuetify.options.themeCache&&this.$vuetify.options.themeCache.set(e,t)),t},vueMeta:function(){if(!1===this.$vuetify.theme)return{};var t={cssText:this.generatedStyles,id:"vuetify-theme-stylesheet",type:"text/css"};return this.$vuetify.options.cspNonce&&(t.nonce=this.$vuetify.options.cspNonce),{style:[t]}}},metaInfo:function(){return this.vueMeta},head:function(){return this.vueMeta},watch:{generatedStyles:function(){!this.meta&&this.applyTheme()}},created:function(){if(!1!==this.$vuetify.theme)if(this.$meta);else if("undefined"===typeof document&&this.$ssrContext){var t=this.$vuetify.options.cspNonce?' nonce="'+this.$vuetify.options.cspNonce+'"':"";this.$ssrContext.head=this.$ssrContext.head||"",this.$ssrContext.head+='<style type="text/css" id="vuetify-theme-stylesheet"'+t+">"+this.generatedStyles+"</style>"}else"undefined"!==typeof document&&(this.genStyle(),this.applyTheme())},methods:{applyTheme:function(){this.style&&(this.style.innerHTML=this.generatedStyles)},genStyle:function(){var t=document.getElementById("vuetify-theme-stylesheet");t||(t=document.createElement("style"),t.type="text/css",t.id="vuetify-theme-stylesheet",this.$vuetify.options.cspNonce&&t.setAttribute("nonce",this.$vuetify.options.cspNonce),document.head.appendChild(t)),this.style=t}}}},"./src/components/VAutocomplete/VAutocomplete.js":
- /*!*******************************************************!*\
- !*** ./src/components/VAutocomplete/VAutocomplete.js ***!
- \*******************************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);n(/*! ../../stylus/components/_autocompletes.styl */"./src/stylus/components/_autocompletes.styl");var i=n(/*! ../VSelect/VSelect */"./src/components/VSelect/VSelect.js"),s=n(/*! ../VTextField/VTextField */"./src/components/VTextField/VTextField.js"),r=n(/*! ../../util/helpers */"./src/util/helpers.ts"),o=function(){return o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var s in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t},o.apply(this,arguments)},a=o({},i["defaultMenuProps"],{offsetY:!0,offsetOverflow:!0,transition:!1});e["default"]=i["default"].extend({name:"v-autocomplete",props:{allowOverflow:{type:Boolean,default:!0},browserAutocomplete:{type:String,default:"off"},filter:{type:Function,default:function(t,e,n){return n.toLocaleLowerCase().indexOf(e.toLocaleLowerCase())>-1}},hideNoData:Boolean,noFilter:Boolean,searchInput:{default:void 0},menuProps:{type:i["default"].options.props.menuProps.type,default:function(){return a}},autoSelectFirst:{type:Boolean,default:!1}},data:function(t){return{attrsInput:null,lazySearch:t.searchInput}},computed:{classes:function(){return Object.assign({},i["default"].options.computed.classes.call(this),{"v-autocomplete":!0,"v-autocomplete--is-selecting-index":this.selectedIndex>-1})},computedItems:function(){return this.filteredItems},selectedValues:function(){var t=this;return this.selectedItems.map((function(e){return t.getValue(e)}))},hasDisplayedItems:function(){var t=this;return this.hideSelected?this.filteredItems.some((function(e){return!t.hasItem(e)})):this.filteredItems.length>0},currentRange:function(){return null==this.selectedItem?0:this.getText(this.selectedItem).toString().length},filteredItems:function(){var t=this;return!this.isSearching||this.noFilter||null==this.internalSearch?this.allItems:this.allItems.filter((function(e){return t.filter(e,t.internalSearch.toString(),t.getText(e).toString())}))},internalSearch:{get:function(){return this.lazySearch},set:function(t){this.lazySearch=t,this.$emit("update:searchInput",t)}},isAnyValueAllowed:function(){return!1},isDirty:function(){return this.searchIsDirty||this.selectedItems.length>0},isSearching:function(){return this.multiple?this.searchIsDirty:this.searchIsDirty&&this.internalSearch!==this.getText(this.selectedItem)},menuCanShow:function(){return!!this.isFocused&&(this.hasDisplayedItems||!this.hideNoData)},$_menuProps:function(){var t=i["default"].options.computed.$_menuProps.call(this);return t.contentClass=("v-autocomplete__content "+(t.contentClass||"")).trim(),o({},a,t)},searchIsDirty:function(){return null!=this.internalSearch&&""!==this.internalSearch},selectedItem:function(){var t=this;return this.multiple?null:this.selectedItems.find((function(e){return t.valueComparator(t.getValue(e),t.getValue(t.internalValue))}))},listData:function(){var t=i["default"].options.computed.listData.call(this);return Object.assign(t.props,{items:this.virtualizedItems,noFilter:this.noFilter||!this.isSearching||!this.filteredItems.length,searchInput:this.internalSearch}),t}},watch:{filteredItems:function(t){this.onFilteredItemsChanged(t)},internalValue:function(){this.setSearch()},isFocused:function(t){t?this.$refs.input&&this.$refs.input.select():this.updateSelf()},isMenuActive:function(t){!t&&this.hasSlot&&(this.lazySearch=null)},items:function(t,e){e&&e.length||!this.hideNoData||!this.isFocused||this.isMenuActive||!t.length||this.activateMenu()},searchInput:function(t){this.lazySearch=t},internalSearch:function(t){this.onInternalSearchChanged(t)},itemText:function(){this.updateSelf()}},created:function(){this.setSearch()},methods:{onFilteredItemsChanged:function(t){var e=this;this.setMenuIndex(-1),this.$nextTick((function(){e.setMenuIndex(t.length>0&&(1===t.length||e.autoSelectFirst)?0:-1)}))},onInternalSearchChanged:function(t){this.updateMenuDimensions()},updateMenuDimensions:function(){this.isMenuActive&&this.$refs.menu&&this.$refs.menu.updateDimensions()},changeSelectedIndex:function(t){if(!this.searchIsDirty&&[r["keyCodes"].backspace,r["keyCodes"].left,r["keyCodes"].right,r["keyCodes"].delete].includes(t)){var e=this.selectedItems.length-1;if(t===r["keyCodes"].left)this.selectedIndex=-1===this.selectedIndex?e:this.selectedIndex-1;else if(t===r["keyCodes"].right)this.selectedIndex=this.selectedIndex>=e?-1:this.selectedIndex+1;else if(-1===this.selectedIndex)return void(this.selectedIndex=e);var n=this.selectedItems[this.selectedIndex];if([r["keyCodes"].backspace,r["keyCodes"].delete].includes(t)&&!this.getDisabled(n)){var i=this.selectedIndex===e?this.selectedIndex-1:this.selectedItems[this.selectedIndex+1]?this.selectedIndex:-1;-1===i?this.setValue(this.multiple?[]:void 0):this.selectItem(n),this.selectedIndex=i}}},clearableCallback:function(){this.internalSearch=void 0,i["default"].options.methods.clearableCallback.call(this)},genInput:function(){var t=s["default"].options.methods.genInput.call(this);return t.data.attrs.role="combobox",t.data.domProps.value=this.internalSearch,t},genSelections:function(){return this.hasSlot||this.multiple?i["default"].options.methods.genSelections.call(this):[]},onClick:function(){this.isDisabled||(this.selectedIndex>-1?this.selectedIndex=-1:this.onFocus(),this.activateMenu())},onEnterDown:function(){},onInput:function(t){this.selectedIndex>-1||(t.target.value&&(this.activateMenu(),this.isAnyValueAllowed||this.setMenuIndex(0)),this.mask&&this.resetSelections(t.target),this.internalSearch=t.target.value,this.badInput=t.target.validity&&t.target.validity.badInput)},onKeyDown:function(t){var e=t.keyCode;i["default"].options.methods.onKeyDown.call(this,t),this.changeSelectedIndex(e)},onTabDown:function(t){i["default"].options.methods.onTabDown.call(this,t),this.updateSelf()},selectItem:function(t){i["default"].options.methods.selectItem.call(this,t),this.setSearch()},setSelectedItems:function(){i["default"].options.methods.setSelectedItems.call(this),this.isFocused||this.setSearch()},setSearch:function(){var t=this;this.$nextTick((function(){t.internalSearch=t.multiple&&t.internalSearch&&t.isMenuActive?t.internalSearch:!t.selectedItems.length||t.multiple||t.hasSlot?null:t.getText(t.selectedItem)}))},updateSelf:function(){this.updateAutocomplete()},updateAutocomplete:function(){(this.searchIsDirty||this.internalValue)&&(this.valueComparator(this.internalSearch,this.getValue(this.internalValue))||this.setSearch())},hasItem:function(t){return this.selectedValues.indexOf(this.getValue(t))>-1}}})},"./src/components/VAutocomplete/index.js":
- /*!***********************************************!*\
- !*** ./src/components/VAutocomplete/index.js ***!
- \***********************************************/
- /*! exports provided: VAutocomplete, default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ./VAutocomplete */"./src/components/VAutocomplete/VAutocomplete.js");n.d(e,"VAutocomplete",(function(){return i["default"]})),e["default"]=i["default"]},"./src/components/VAvatar/VAvatar.ts":
- /*!*******************************************!*\
- !*** ./src/components/VAvatar/VAvatar.ts ***!
- \*******************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);n(/*! ../../stylus/components/_avatars.styl */"./src/stylus/components/_avatars.styl");var i=n(/*! ../../mixins/colorable */"./src/mixins/colorable.ts"),s=n(/*! ../../util/helpers */"./src/util/helpers.ts"),r=n(/*! ../../util/mixins */"./src/util/mixins.ts"),o=function(){return o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var s in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t},o.apply(this,arguments)};e["default"]=Object(r["default"])(i["default"]).extend({name:"v-avatar",functional:!0,props:{color:String,size:{type:[Number,String],default:48},tile:Boolean},render:function(t,e){var n=e.data,r=e.props,a=e.children;n.staticClass=("v-avatar "+(n.staticClass||"")).trim(),r.tile&&(n.staticClass+=" v-avatar--tile");var c=Object(s["convertToUnit"])(r.size);return n.style=o({height:c,width:c},n.style),t("div",i["default"].options.methods.setBackgroundColor(r.color,n),a)}})},"./src/components/VAvatar/index.ts":
- /*!*****************************************!*\
- !*** ./src/components/VAvatar/index.ts ***!
- \*****************************************/
- /*! exports provided: VAvatar, default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ./VAvatar */"./src/components/VAvatar/VAvatar.ts");n.d(e,"VAvatar",(function(){return i["default"]})),e["default"]=i["default"]},"./src/components/VBadge/VBadge.ts":
- /*!*****************************************!*\
- !*** ./src/components/VBadge/VBadge.ts ***!
- \*****************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);n(/*! ../../stylus/components/_badges.styl */"./src/stylus/components/_badges.styl");var i=n(/*! ../../mixins/colorable */"./src/mixins/colorable.ts"),s=n(/*! ../../mixins/toggleable */"./src/mixins/toggleable.ts"),r=n(/*! ../../mixins/positionable */"./src/mixins/positionable.ts"),o=n(/*! ../../mixins/transitionable */"./src/mixins/transitionable.ts"),a=n(/*! ../../util/mixins */"./src/util/mixins.ts");e["default"]=Object(a["default"])(i["default"],s["default"],Object(r["factory"])(["left","bottom"]),o["default"]).extend({name:"v-badge",props:{color:{type:String,default:"primary"},overlap:Boolean,transition:{type:String,default:"fab-transition"},value:{default:!0}},computed:{classes:function(){return{"v-badge--bottom":this.bottom,"v-badge--left":this.left,"v-badge--overlap":this.overlap}}},render:function(t){var e=this.$slots.badge&&[t("span",this.setBackgroundColor(this.color,{staticClass:"v-badge__badge",attrs:this.$attrs,directives:[{name:"show",value:this.isActive}]}),this.$slots.badge)];return t("span",{staticClass:"v-badge",class:this.classes},[this.$slots.default,t("transition",{props:{name:this.transition,origin:this.origin,mode:this.mode}},e)])}})},"./src/components/VBadge/index.ts":
- /*!****************************************!*\
- !*** ./src/components/VBadge/index.ts ***!
- \****************************************/
- /*! exports provided: VBadge, default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ./VBadge */"./src/components/VBadge/VBadge.ts");n.d(e,"VBadge",(function(){return i["default"]})),e["default"]=i["default"]},"./src/components/VBottomNav/VBottomNav.ts":
- /*!*************************************************!*\
- !*** ./src/components/VBottomNav/VBottomNav.ts ***!
- \*************************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);n(/*! ../../stylus/components/_bottom-navs.styl */"./src/stylus/components/_bottom-navs.styl");var i=n(/*! ../../mixins/applicationable */"./src/mixins/applicationable.ts"),s=n(/*! ../../mixins/button-group */"./src/mixins/button-group.ts"),r=n(/*! ../../mixins/colorable */"./src/mixins/colorable.ts"),o=n(/*! ../../mixins/themeable */"./src/mixins/themeable.ts"),a=n(/*! ../../util/mixins */"./src/util/mixins.ts");e["default"]=Object(a["default"])(Object(i["default"])("bottom",["height","value"]),r["default"],o["default"]).extend({name:"v-bottom-nav",props:{active:[Number,String],mandatory:Boolean,height:{default:56,type:[Number,String],validator:function(t){return!isNaN(parseInt(t))}},shift:Boolean,value:null},computed:{classes:function(){return{"v-bottom-nav--absolute":this.absolute,"v-bottom-nav--fixed":!this.absolute&&(this.app||this.fixed),"v-bottom-nav--shift":this.shift,"v-bottom-nav--active":this.value}},computedHeight:function(){return parseInt(this.height)}},methods:{updateApplication:function(){return this.value?this.computedHeight:0},updateValue:function(t){this.$emit("update:active",t)}},render:function(t){return t(s["default"],this.setBackgroundColor(this.color,{staticClass:"v-bottom-nav",class:this.classes,style:{height:parseInt(this.computedHeight)+"px"},props:{mandatory:Boolean(this.mandatory||void 0!==this.active),value:this.active},on:{change:this.updateValue}}),this.$slots.default)}})},"./src/components/VBottomNav/index.ts":
- /*!********************************************!*\
- !*** ./src/components/VBottomNav/index.ts ***!
- \********************************************/
- /*! exports provided: VBottomNav, default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ./VBottomNav */"./src/components/VBottomNav/VBottomNav.ts");n.d(e,"VBottomNav",(function(){return i["default"]})),e["default"]=i["default"]},"./src/components/VBottomSheet/VBottomSheet.js":
- /*!*****************************************************!*\
- !*** ./src/components/VBottomSheet/VBottomSheet.js ***!
- \*****************************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);n(/*! ../../stylus/components/_bottom-sheets.styl */"./src/stylus/components/_bottom-sheets.styl");var i=n(/*! ../VDialog/VDialog */"./src/components/VDialog/VDialog.js"),s=function(){return s=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var s in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t},s.apply(this,arguments)};e["default"]={name:"v-bottom-sheet",props:{disabled:Boolean,fullWidth:Boolean,hideOverlay:Boolean,inset:Boolean,lazy:Boolean,maxWidth:{type:[String,Number],default:"auto"},persistent:Boolean,value:null},render:function(t){var e=t("template",{slot:"activator"},this.$slots.activator),n=["v-bottom-sheet",this.inset?"v-bottom-sheet--inset":""].join(" ");return t(i["default"],{attrs:s({},this.$props),on:s({},this.$listeners),props:{contentClass:n,noClickAnimation:!0,transition:"bottom-sheet-transition",value:this.value}},[e,this.$slots.default])}}},"./src/components/VBottomSheet/index.js":
- /*!**********************************************!*\
- !*** ./src/components/VBottomSheet/index.js ***!
- \**********************************************/
- /*! exports provided: VBottomSheet, default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ./VBottomSheet */"./src/components/VBottomSheet/VBottomSheet.js");n.d(e,"VBottomSheet",(function(){return i["default"]})),e["default"]=i["default"]},"./src/components/VBreadcrumbs/VBreadcrumbs.ts":
- /*!*****************************************************!*\
- !*** ./src/components/VBreadcrumbs/VBreadcrumbs.ts ***!
- \*****************************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);n(/*! ../../stylus/components/_breadcrumbs.styl */"./src/stylus/components/_breadcrumbs.styl");var i=n(/*! . */"./src/components/VBreadcrumbs/index.ts"),s=n(/*! ../../mixins/themeable */"./src/mixins/themeable.ts"),r=n(/*! ../../util/console */"./src/util/console.ts"),o=n(/*! ../../util/mixins */"./src/util/mixins.ts"),a=function(){return a=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var s in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t},a.apply(this,arguments)};e["default"]=Object(o["default"])(s["default"]).extend({name:"v-breadcrumbs",props:{divider:{type:String,default:"/"},items:{type:Array,default:function(){return[]}},large:Boolean,justifyCenter:Boolean,justifyEnd:Boolean},computed:{classes:function(){return a({"v-breadcrumbs--large":this.large,"justify-center":this.justifyCenter,"justify-end":this.justifyEnd},this.themeClasses)}},mounted:function(){this.justifyCenter&&Object(r["deprecate"])("justify-center",'class="justify-center"',this),this.justifyEnd&&Object(r["deprecate"])("justify-end",'class="justify-end"',this),this.$slots.default&&Object(r["deprecate"])("default slot",':items and scoped slot "item"',this)},methods:{genChildren:function(){if(this.$slots.default){for(var t=[],e=!1,n=0;n<this.$slots.default.length;n++){var i=this.$slots.default[n];i.componentOptions&&"v-breadcrumbs-item"===i.componentOptions.Ctor.options.name?(e&&t.push(this.genDivider()),t.push(i),e=!0):t.push(i)}return t}},genDivider:function(){return this.$createElement(i["VBreadcrumbsDivider"],this.$slots.divider?this.$slots.divider:this.divider)},genItems:function(){for(var t=[],e=!!this.$scopedSlots.item,n=[],s=0;s<this.items.length;s++){var r=this.items[s];n.push(r.text),e?t.push(this.$scopedSlots.item({item:r})):t.push(this.$createElement(i["VBreadcrumbsItem"],{key:n.join("."),props:r},[r.text])),s<this.items.length-1&&t.push(this.genDivider())}return t}},render:function(t){var e=this.$slots.default?this.genChildren():this.genItems();return t("ul",{staticClass:"v-breadcrumbs",class:this.classes},e)}})},"./src/components/VBreadcrumbs/VBreadcrumbsItem.ts":
- /*!*********************************************************!*\
- !*** ./src/components/VBreadcrumbs/VBreadcrumbsItem.ts ***!
- \*********************************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ../../mixins/routable */"./src/mixins/routable.ts"),s=n(/*! ../../util/mixins */"./src/util/mixins.ts");e["default"]=Object(s["default"])(i["default"]).extend({name:"v-breadcrumbs-item",props:{activeClass:{type:String,default:"v-breadcrumbs__item--disabled"}},computed:{classes:function(){var t;return t={"v-breadcrumbs__item":!0},t[this.activeClass]=this.disabled,t}},render:function(t){var e=this.generateRouteLink(this.classes),n=e.tag,i=e.data;return t("li",[t(n,i,this.$slots.default)])}})},"./src/components/VBreadcrumbs/index.ts":
- /*!**********************************************!*\
- !*** ./src/components/VBreadcrumbs/index.ts ***!
- \**********************************************/
- /*! exports provided: VBreadcrumbs, VBreadcrumbsItem, VBreadcrumbsDivider, default */function(t,e,n){"use strict";n.r(e),n.d(e,"VBreadcrumbsDivider",(function(){return o}));var i=n(/*! ./VBreadcrumbs */"./src/components/VBreadcrumbs/VBreadcrumbs.ts");n.d(e,"VBreadcrumbs",(function(){return i["default"]}));var s=n(/*! ./VBreadcrumbsItem */"./src/components/VBreadcrumbs/VBreadcrumbsItem.ts");n.d(e,"VBreadcrumbsItem",(function(){return s["default"]}));var r=n(/*! ../../util/helpers */"./src/util/helpers.ts"),o=Object(r["createSimpleFunctional"])("v-breadcrumbs__divider","li");e["default"]={$_vuetify_subcomponents:{VBreadcrumbs:i["default"],VBreadcrumbsItem:s["default"],VBreadcrumbsDivider:o}}},"./src/components/VBtn/VBtn.ts":
- /*!*************************************!*\
- !*** ./src/components/VBtn/VBtn.ts ***!
- \*************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);n(/*! ../../stylus/components/_buttons.styl */"./src/stylus/components/_buttons.styl");var i=n(/*! ../../util/mixins */"./src/util/mixins.ts"),s=n(/*! ../VProgressCircular */"./src/components/VProgressCircular/index.ts"),r=n(/*! ../../mixins/colorable */"./src/mixins/colorable.ts"),o=n(/*! ../../mixins/groupable */"./src/mixins/groupable.ts"),a=n(/*! ../../mixins/positionable */"./src/mixins/positionable.ts"),c=n(/*! ../../mixins/routable */"./src/mixins/routable.ts"),l=n(/*! ../../mixins/themeable */"./src/mixins/themeable.ts"),u=n(/*! ../../mixins/toggleable */"./src/mixins/toggleable.ts"),h=n(/*! ../../util/helpers */"./src/util/helpers.ts"),d="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f=function(){return f=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var s in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t},f.apply(this,arguments)},p=Object(i["default"])(r["default"],c["default"],a["default"],l["default"],Object(o["factory"])("btnToggle"),Object(u["factory"])("inputValue"));e["default"]=p.extend().extend({name:"v-btn",props:{activeClass:{type:String,default:"v-btn--active"},block:Boolean,depressed:Boolean,fab:Boolean,flat:Boolean,icon:Boolean,large:Boolean,loading:Boolean,outline:Boolean,ripple:{type:[Boolean,Object],default:null},round:Boolean,small:Boolean,tag:{type:String,default:"button"},type:{type:String,default:"button"},value:null},computed:{classes:function(){var t;return f((t={"v-btn":!0},t[this.activeClass]=this.isActive,t["v-btn--absolute"]=this.absolute,t["v-btn--block"]=this.block,t["v-btn--bottom"]=this.bottom,t["v-btn--disabled"]=this.disabled,t["v-btn--flat"]=this.flat,t["v-btn--floating"]=this.fab,t["v-btn--fixed"]=this.fixed,t["v-btn--icon"]=this.icon,t["v-btn--large"]=this.large,t["v-btn--left"]=this.left,t["v-btn--loader"]=this.loading,t["v-btn--outline"]=this.outline,t["v-btn--depressed"]=this.depressed&&!this.flat||this.outline,t["v-btn--right"]=this.right,t["v-btn--round"]=this.round,t["v-btn--router"]=this.to,t["v-btn--small"]=this.small,t["v-btn--top"]=this.top,t),this.themeClasses)},computedRipple:function(){var t=!this.icon&&!this.fab||{circle:!0};return!this.disabled&&(null!==this.ripple?this.ripple:t)}},watch:{$route:"onRouteChange"},methods:{click:function(t){!this.fab&&t.detail&&this.$el.blur(),this.$emit("click",t),this.btnToggle&&this.toggle()},genContent:function(){return this.$createElement("div",{class:"v-btn__content"},this.$slots.default)},genLoader:function(){return this.$createElement("span",{class:"v-btn__loading"},this.$slots.loader||[this.$createElement(s["default"],{props:{indeterminate:!0,size:23,width:2}})])},onRouteChange:function(){var t=this;if(this.to&&this.$refs.link){var e="_vnode.data.class."+this.activeClass;this.$nextTick((function(){Object(h["getObjectValueByPath"])(t.$refs.link,e)&&t.toggle()}))}}},render:function(t){var e=this.outline||this.flat||this.disabled?this.setTextColor:this.setBackgroundColor,n=this.generateRouteLink(this.classes),i=n.tag,s=n.data,r=[this.genContent(),this.loading&&this.genLoader()];return"button"===i&&(s.attrs.type=this.type),s.attrs.value=["string","number"].includes(d(this.value))?this.value:JSON.stringify(this.value),this.btnToggle&&(s.ref="link"),t(i,e(this.color,s),r)}})},"./src/components/VBtn/index.ts":
- /*!**************************************!*\
- !*** ./src/components/VBtn/index.ts ***!
- \**************************************/
- /*! exports provided: VBtn, default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ./VBtn */"./src/components/VBtn/VBtn.ts");n.d(e,"VBtn",(function(){return i["default"]})),e["default"]=i["default"]},"./src/components/VBtnToggle/VBtnToggle.ts":
- /*!*************************************************!*\
- !*** ./src/components/VBtnToggle/VBtnToggle.ts ***!
- \*************************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);n(/*! ../../stylus/components/_button-toggle.styl */"./src/stylus/components/_button-toggle.styl");var i=n(/*! ../../mixins/button-group */"./src/mixins/button-group.ts"),s=function(){return s=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var s in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t},s.apply(this,arguments)};e["default"]=i["default"].extend({name:"v-btn-toggle",props:{activeClass:{type:String,default:"v-btn--active"}},computed:{classes:function(){return s({},i["default"].options.computed.classes.call(this),{"v-btn-toggle":!0,"v-btn-toggle--only-child":1===this.selectedItems.length,"v-btn-toggle--selected":this.selectedItems.length>0})}}})},"./src/components/VBtnToggle/index.ts":
- /*!********************************************!*\
- !*** ./src/components/VBtnToggle/index.ts ***!
- \********************************************/
- /*! exports provided: VBtnToggle, default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ./VBtnToggle */"./src/components/VBtnToggle/VBtnToggle.ts");n.d(e,"VBtnToggle",(function(){return i["default"]})),e["default"]=i["default"]},"./src/components/VCalendar/VCalendar.ts":
- /*!***********************************************!*\
- !*** ./src/components/VCalendar/VCalendar.ts ***!
- \***********************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ./mixins/calendar-base */"./src/components/VCalendar/mixins/calendar-base.ts"),s=n(/*! ./util/props */"./src/components/VCalendar/util/props.ts"),r=n(/*! ./util/timestamp */"./src/components/VCalendar/util/timestamp.ts"),o=n(/*! ./VCalendarMonthly */"./src/components/VCalendar/VCalendarMonthly.ts"),a=n(/*! ./VCalendarDaily */"./src/components/VCalendar/VCalendarDaily.ts"),c=n(/*! ./VCalendarWeekly */"./src/components/VCalendar/VCalendarWeekly.ts"),l=function(){return l=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var s in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t},l.apply(this,arguments)};e["default"]=i["default"].extend({name:"v-calendar",props:l({},s["default"].calendar,s["default"].weeks,s["default"].intervals),data:function(){return{lastStart:null,lastEnd:null}},computed:{parsedValue:function(){return Object(r["parseTimestamp"])(this.value)||this.parsedStart||this.times.today},renderProps:function(){var t=this.parsedValue,e="div",n=this.maxDays,i=t,s=t;switch(this.type){case"month":e=o["default"],i=Object(r["getStartOfMonth"])(t),s=Object(r["getEndOfMonth"])(t);break;case"week":e=a["default"],i=this.getStartOfWeek(t),s=this.getEndOfWeek(t),n=7;break;case"day":e=a["default"],n=1;break;case"4day":e=a["default"],s=Object(r["relativeDays"])(Object(r["copyTimestamp"])(s),r["nextDay"],4),Object(r["updateFormatted"])(s),n=4;break;case"custom-weekly":e=c["default"],i=this.parsedStart||t,s=this.parsedEnd;break;case"custom-daily":e=a["default"],i=this.parsedStart||t,s=this.parsedEnd;break}return{component:e,start:i,end:s,maxDays:n}}},watch:{renderProps:"checkChange"},methods:{checkChange:function(){var t=this.renderProps,e=t.start,n=t.end;e===this.lastStart&&n===this.lastEnd||(this.lastStart=e,this.lastEnd=n,this.$emit("change",{start:e,end:n}))},move:function(t){void 0===t&&(t=1);var e=Object(r["copyTimestamp"])(this.parsedValue),n=t>0,i=n?r["nextDay"]:r["prevDay"],s=n?r["DAYS_IN_MONTH_MAX"]:r["DAY_MIN"],o=n?t:-t;while(--o>=0)switch(this.type){case"month":e.day=s,i(e);break;case"week":Object(r["relativeDays"])(e,i,r["DAYS_IN_WEEK"]);break;case"day":i(e);break;case"4day":Object(r["relativeDays"])(e,i,4);break}Object(r["updateWeekday"])(e),Object(r["updateFormatted"])(e),Object(r["updateRelative"])(e,this.times.now),this.$emit("input",e.date),this.$emit("moved",e)},next:function(t){void 0===t&&(t=1),this.move(t)},prev:function(t){void 0===t&&(t=1),this.move(-t)},timeToY:function(t,e){void 0===e&&(e=!0);var n=this.$children[0];return!(!n||!n.timeToY)&&n.timeToY(t,e)},minutesToPixels:function(t){var e=this.$children[0];return e&&e.minutesToPixels?e.minutesToPixels(t):-1},scrollToTime:function(t){var e=this.$children[0];return!(!e||!e.scrollToTime)&&e.scrollToTime(t)}},render:function(t){var e=this,n=this.renderProps,i=n.start,s=n.end,r=n.maxDays,o=n.component;return t(o,{staticClass:"v-calendar",props:l({},this.$props,{start:i.date,end:s.date,maxDays:r}),on:l({},this.$listeners,{"click:date":function(t){e.$listeners["input"]&&e.$emit("input",t.date),e.$listeners["click:date"]&&e.$emit("click:date",t)}}),scopedSlots:this.$scopedSlots})}})},"./src/components/VCalendar/VCalendarDaily.ts":
- /*!****************************************************!*\
- !*** ./src/components/VCalendar/VCalendarDaily.ts ***!
- \****************************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);n(/*! ../../stylus/components/_calendar-daily.styl */"./src/stylus/components/_calendar-daily.styl");var i=n(/*! ../../directives/resize */"./src/directives/resize.ts"),s=n(/*! ./mixins/calendar-with-intervals */"./src/components/VCalendar/mixins/calendar-with-intervals.ts"),r=n(/*! ../../util/helpers */"./src/util/helpers.ts"),o=function(){return o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var s in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t},o.apply(this,arguments)},a=function(t,e){var n="function"===typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,s,r=n.call(t),o=[];try{while((void 0===e||e-- >0)&&!(i=r.next()).done)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r["return"])&&n.call(r)}finally{if(s)throw s.error}}return o},c=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(a(arguments[e]));return t};e["default"]=s["default"].extend({name:"v-calendar-daily",directives:{Resize:i["default"]},data:function(){return{scrollPush:0}},computed:{classes:function(){return o({"v-calendar-daily":!0},this.themeClasses)}},mounted:function(){this.init()},methods:{init:function(){this.$nextTick(this.onResize)},onResize:function(){this.scrollPush=this.getScrollPush()},getScrollPush:function(){var t=this.$refs.scrollArea,e=this.$refs.pane;return t&&e?t.offsetWidth-e.offsetWidth:0},genHead:function(){return this.$createElement("div",{staticClass:"v-calendar-daily__head",style:{marginRight:this.scrollPush+"px"}},c([this.genHeadIntervals()],this.genHeadDays()))},genHeadIntervals:function(){return this.$createElement("div",{staticClass:"v-calendar-daily__intervals-head"})},genHeadDays:function(){return this.days.map(this.genHeadDay)},genHeadDay:function(t){var e=this,n=this.$scopedSlots.dayHeader;return this.$createElement("div",{key:t.date,staticClass:"v-calendar-daily_head-day",class:this.getRelativeClasses(t),on:this.getDefaultMouseEventHandlers(":day",(function(n){return e.getSlotScope(t)}))},[this.genHeadWeekday(t),this.genHeadDayLabel(t),n?n(t):""])},genHeadWeekday:function(t){var e=t.present?this.color:void 0;return this.$createElement("div",this.setTextColor(e,{staticClass:"v-calendar-daily_head-weekday"}),this.weekdayFormatter(t,this.shortWeekdays))},genHeadDayLabel:function(t){var e=t.present?this.color:void 0;return this.$createElement("div",this.setTextColor(e,{staticClass:"v-calendar-daily_head-day-label",on:this.getMouseEventHandlers({"click:date":{event:"click",stop:!0},"contextmenu:date":{event:"contextmenu",stop:!0,prevent:!0,result:!1}},(function(e){return t}))}),this.dayFormatter(t,!1))},genBody:function(){return this.$createElement("div",{staticClass:"v-calendar-daily__body"},[this.genScrollArea()])},genScrollArea:function(){return this.$createElement("div",{ref:"scrollArea",staticClass:"v-calendar-daily__scroll-area"},[this.genPane()])},genPane:function(){return this.$createElement("div",{ref:"pane",staticClass:"v-calendar-daily__pane",style:{height:Object(r["convertToUnit"])(this.bodyHeight)}},[this.genDayContainer()])},genDayContainer:function(){return this.$createElement("div",{staticClass:"v-calendar-daily__day-container"},c([this.genBodyIntervals()],this.genDays()))},genDays:function(){return this.days.map(this.genDay)},genDay:function(t,e){var n=this,i=this.$scopedSlots.dayBody,s=this.getSlotScope(t);return this.$createElement("div",{key:t.date,staticClass:"v-calendar-daily__day",class:this.getRelativeClasses(t),on:this.getDefaultMouseEventHandlers(":time",(function(e){return n.getSlotScope(n.getTimestampAtEvent(e,t))}))},c(this.genDayIntervals(e),[i?i(s):""]))},genDayIntervals:function(t){return this.intervals[t].map(this.genDayInterval)},genDayInterval:function(t){var e=Object(r["convertToUnit"])(this.intervalHeight),n=this.intervalStyle||this.intervalStyleDefault,i=this.$scopedSlots.interval,s=this.getSlotScope(t),a={key:t.time,staticClass:"v-calendar-daily__day-interval",style:o({height:e},n(t))},c=i?i(s):void 0;return this.$createElement("div",a,c)},genBodyIntervals:function(){var t=this,e={staticClass:"v-calendar-daily__intervals-body",on:this.getDefaultMouseEventHandlers(":interval",(function(e){return t.getTimestampAtEvent(e,t.parsedStart)}))};return this.$createElement("div",e,this.genIntervalLabels())},genIntervalLabels:function(){return this.intervals[0].map(this.genIntervalLabel)},genIntervalLabel:function(t){var e=Object(r["convertToUnit"])(this.intervalHeight),n=this.shortIntervals,i=this.showIntervalLabel||this.showIntervalLabelDefault,s=i(t),o=s?this.intervalFormatter(t,n):void 0;return this.$createElement("div",{key:t.time,staticClass:"v-calendar-daily__interval",style:{height:e}},[this.$createElement("div",{staticClass:"v-calendar-daily__interval-text"},o)])}},render:function(t){return t("div",{class:this.classes,nativeOn:{dragstart:function(t){t.preventDefault()}},directives:[{modifiers:{quiet:!0},name:"resize",value:this.onResize}]},[this.hideHeader?"":this.genHead(),this.genBody()])}})},"./src/components/VCalendar/VCalendarMonthly.ts":
- /*!******************************************************!*\
- !*** ./src/components/VCalendar/VCalendarMonthly.ts ***!
- \******************************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);n(/*! ../../stylus/components/_calendar-weekly.styl */"./src/stylus/components/_calendar-weekly.styl");var i=n(/*! ./VCalendarWeekly */"./src/components/VCalendar/VCalendarWeekly.ts"),s=n(/*! ./util/timestamp */"./src/components/VCalendar/util/timestamp.ts");e["default"]=i["default"].extend({name:"v-calendar-monthly",computed:{staticClass:function(){return"v-calendar-monthly v-calendar-weekly"},parsedStart:function(){return Object(s["getStartOfMonth"])(Object(s["parseTimestamp"])(this.start))},parsedEnd:function(){return Object(s["getEndOfMonth"])(Object(s["parseTimestamp"])(this.end))}}})},"./src/components/VCalendar/VCalendarWeekly.ts":
- /*!*****************************************************!*\
- !*** ./src/components/VCalendar/VCalendarWeekly.ts ***!
- \*****************************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);n(/*! ../../stylus/components/_calendar-weekly.styl */"./src/stylus/components/_calendar-weekly.styl");var i=n(/*! ./mixins/calendar-base */"./src/components/VCalendar/mixins/calendar-base.ts"),s=n(/*! ./util/props */"./src/components/VCalendar/util/props.ts"),r=n(/*! ./util/timestamp */"./src/components/VCalendar/util/timestamp.ts"),o=function(){return o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var s in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t},o.apply(this,arguments)},a=function(t,e){var n="function"===typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,s,r=n.call(t),o=[];try{while((void 0===e||e-- >0)&&!(i=r.next()).done)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r["return"])&&n.call(r)}finally{if(s)throw s.error}}return o},c=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(a(arguments[e]));return t};e["default"]=i["default"].extend({name:"v-calendar-weekly",props:s["default"].weeks,computed:{staticClass:function(){return"v-calendar-weekly"},classes:function(){return this.themeClasses},parsedMinWeeks:function(){return parseInt(this.minWeeks)},days:function(){var t=this.parsedMinWeeks*this.weekdays.length,e=this.getStartOfWeek(this.parsedStart),n=this.getEndOfWeek(this.parsedEnd);return Object(r["createDayList"])(e,n,this.times.today,this.weekdaySkips,Number.MAX_SAFE_INTEGER,t)},todayWeek:function(){var t=this.times.today,e=this.getStartOfWeek(t),n=this.getEndOfWeek(t);return Object(r["createDayList"])(e,n,t,this.weekdaySkips,this.weekdays.length,this.weekdays.length)},monthFormatter:function(){if(this.monthFormat)return this.monthFormat;var t={timeZone:"UTC",month:"long"},e={timeZone:"UTC",month:"short"};return Object(r["createNativeLocaleFormatter"])(this.locale,(function(n,i){return i?e:t}))}},methods:{isOutside:function(t){var e=Object(r["getDayIdentifier"])(t);return e<Object(r["getDayIdentifier"])(this.parsedStart)||e>Object(r["getDayIdentifier"])(this.parsedEnd)},genHead:function(){return this.$createElement("div",{staticClass:"v-calendar-weekly__head"},this.genHeadDays())},genHeadDays:function(){return this.todayWeek.map(this.genHeadDay)},genHeadDay:function(t,e){var n=this.isOutside(this.days[e]),i=t.present?this.color:void 0;return this.$createElement("div",this.setTextColor(i,{key:t.date,staticClass:"v-calendar-weekly__head-weekday",class:this.getRelativeClasses(t,n)}),this.weekdayFormatter(t,this.shortWeekdays))},genWeeks:function(){for(var t=this.days,e=this.weekdays.length,n=[],i=0;i<t.length;i+=e)n.push(this.genWeek(t.slice(i,i+e)));return n},genWeek:function(t){return this.$createElement("div",{key:t[0].date,staticClass:"v-calendar-weekly__week"},t.map(this.genDay))},genDay:function(t){var e=this.isOutside(t),n=this.$scopedSlots.day,i=o({outside:e},t),s=1===t.day&&this.showMonthOnFirst;return this.$createElement("div",{key:t.date,staticClass:"v-calendar-weekly__day",class:this.getRelativeClasses(t,e),on:this.getDefaultMouseEventHandlers(":day",(function(e){return t}))},[this.genDayLabel(t),s?this.genDayMonth(t):"",n?n(i):""])},genDayLabel:function(t){var e=t.present?this.color:void 0,n=this.$scopedSlots.dayLabel;return this.$createElement("div",this.setTextColor(e,{staticClass:"v-calendar-weekly__day-label",on:this.getMouseEventHandlers({"click:date":{event:"click",stop:!0},"contextmenu:date":{event:"contextmenu",stop:!0,prevent:!0,result:!1}},(function(e){return t}))}),n?n(t):this.dayFormatter(t,!1))},genDayMonth:function(t){var e=t.present?this.color:void 0,n=this.$scopedSlots.dayMonth;return this.$createElement("div",this.setTextColor(e,{staticClass:"v-calendar-weekly__day-month"}),n?n(t):this.monthFormatter(t,this.shortMonths))}},render:function(t){return t("div",{staticClass:this.staticClass,class:this.classes,nativeOn:{dragstart:function(t){t.preventDefault()}}},c([this.hideHeader?"":this.genHead()],this.genWeeks()))}})},"./src/components/VCalendar/index.ts":
- /*!*******************************************!*\
- !*** ./src/components/VCalendar/index.ts ***!
- \*******************************************/
- /*! exports provided: VCalendar, VCalendarDaily, VCalendarWeekly, VCalendarMonthly, default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ./VCalendar */"./src/components/VCalendar/VCalendar.ts");n.d(e,"VCalendar",(function(){return i["default"]}));var s=n(/*! ./VCalendarDaily */"./src/components/VCalendar/VCalendarDaily.ts");n.d(e,"VCalendarDaily",(function(){return s["default"]}));var r=n(/*! ./VCalendarWeekly */"./src/components/VCalendar/VCalendarWeekly.ts");n.d(e,"VCalendarWeekly",(function(){return r["default"]}));var o=n(/*! ./VCalendarMonthly */"./src/components/VCalendar/VCalendarMonthly.ts");n.d(e,"VCalendarMonthly",(function(){return o["default"]})),e["default"]={$_vuetify_subcomponents:{VCalendar:i["default"],VCalendarDaily:s["default"],VCalendarWeekly:r["default"],VCalendarMonthly:o["default"]}}},"./src/components/VCalendar/mixins/calendar-base.ts":
- /*!**********************************************************!*\
- !*** ./src/components/VCalendar/mixins/calendar-base.ts ***!
- \**********************************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ../../../util/mixins */"./src/util/mixins.ts"),s=n(/*! ../../../mixins/themeable */"./src/mixins/themeable.ts"),r=n(/*! ../../../mixins/colorable */"./src/mixins/colorable.ts"),o=n(/*! ./times */"./src/components/VCalendar/mixins/times.ts"),a=n(/*! ./mouse */"./src/components/VCalendar/mixins/mouse.ts"),c=n(/*! ../util/props */"./src/components/VCalendar/util/props.ts"),l=n(/*! ../util/timestamp */"./src/components/VCalendar/util/timestamp.ts");e["default"]=Object(i["default"])(r["default"],s["default"],o["default"],a["default"]).extend({name:"calendar-base",props:c["default"].base,computed:{weekdaySkips:function(){return Object(l["getWeekdaySkips"])(this.weekdays)},parsedStart:function(){return Object(l["parseTimestamp"])(this.start)},parsedEnd:function(){return Object(l["parseTimestamp"])(this.end)},days:function(){return Object(l["createDayList"])(this.parsedStart,this.parsedEnd,this.times.today,this.weekdaySkips)},dayFormatter:function(){if(this.dayFormat)return this.dayFormat;var t={timeZone:"UTC",day:"numeric"};return Object(l["createNativeLocaleFormatter"])(this.locale,(function(e,n){return t}))},weekdayFormatter:function(){if(this.weekdayFormat)return this.weekdayFormat;var t={timeZone:"UTC",weekday:"long"},e={timeZone:"UTC",weekday:"short"};return Object(l["createNativeLocaleFormatter"])(this.locale,(function(n,i){return i?e:t}))}},methods:{getRelativeClasses:function(t,e){return void 0===e&&(e=!1),{"v-present":t.present,"v-past":t.past,"v-future":t.future,"v-outside":e}},getStartOfWeek:function(t){return Object(l["getStartOfWeek"])(t,this.weekdays,this.times.today)},getEndOfWeek:function(t){return Object(l["getEndOfWeek"])(t,this.weekdays,this.times.today)}}})},"./src/components/VCalendar/mixins/calendar-with-intervals.ts":
- /*!********************************************************************!*\
- !*** ./src/components/VCalendar/mixins/calendar-with-intervals.ts ***!
- \********************************************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ./calendar-base */"./src/components/VCalendar/mixins/calendar-base.ts"),s=n(/*! ../util/props */"./src/components/VCalendar/util/props.ts"),r=n(/*! ../util/timestamp */"./src/components/VCalendar/util/timestamp.ts");e["default"]=i["default"].extend({name:"calendar-with-intervals",props:s["default"].intervals,computed:{parsedFirstInterval:function(){return parseInt(this.firstInterval)},parsedIntervalMinutes:function(){return parseInt(this.intervalMinutes)},parsedIntervalCount:function(){return parseInt(this.intervalCount)},parsedIntervalHeight:function(){return parseFloat(this.intervalHeight)},firstMinute:function(){return this.parsedFirstInterval*this.parsedIntervalMinutes},bodyHeight:function(){return this.parsedIntervalCount*this.parsedIntervalHeight},days:function(){return Object(r["createDayList"])(this.parsedStart,this.parsedEnd,this.times.today,this.weekdaySkips,this.maxDays)},intervals:function(){var t=this.days,e=this.parsedFirstInterval,n=this.parsedIntervalMinutes,i=this.parsedIntervalCount,s=this.times.now;return t.map((function(t){return Object(r["createIntervalList"])(t,e,n,i,s)}))},intervalFormatter:function(){if(this.intervalFormat)return this.intervalFormat;var t={timeZone:"UTC",hour12:!0,hour:"2-digit",minute:"2-digit"},e={timeZone:"UTC",hour12:!0,hour:"numeric",minute:"2-digit"},n={timeZone:"UTC",hour12:!0,hour:"numeric"};return Object(r["createNativeLocaleFormatter"])(this.locale,(function(i,s){return s?0===i.minute?n:e:t}))}},methods:{showIntervalLabelDefault:function(t){var e=this.intervals[0][0],n=e.hour===t.hour&&e.minute===t.minute;return!n&&0===t.minute},intervalStyleDefault:function(t){},getTimestampAtEvent:function(t,e){var n=Object(r["copyTimestamp"])(e),i=t.currentTarget.getBoundingClientRect(),s=this.firstMinute,o=t,a=t,c=o.changedTouches||o.touches,l=c&&c[0]?c[0].clientY:a.clientY,u=(l-i.top)/this.parsedIntervalHeight,h=Math.floor(u*this.parsedIntervalMinutes),d=s+h;return Object(r["updateMinutes"])(n,d,this.times.now)},getSlotScope:function(t){var e=Object(r["copyTimestamp"])(t);return e.timeToY=this.timeToY,e.minutesToPixels=this.minutesToPixels,e},scrollToTime:function(t){var e=this.timeToY(t),n=this.$refs.scrollArea;return!(!1===e||!n)&&(n.scrollTop=e,!0)},minutesToPixels:function(t){return t/this.parsedIntervalMinutes*this.parsedIntervalHeight},timeToY:function(t,e){void 0===e&&(e=!0);var n=Object(r["parseTime"])(t);if(!1===n)return!1;var i=this.firstMinute,s=this.parsedIntervalCount*this.parsedIntervalMinutes,o=(n-i)/s,a=o*this.bodyHeight;return e&&(a<0&&(a=0),a>this.bodyHeight&&(a=this.bodyHeight)),a}}})},"./src/components/VCalendar/mixins/mouse.ts":
- /*!**************************************************!*\
- !*** ./src/components/VCalendar/mixins/mouse.ts ***!
- \**************************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);var i=n(/*! vue */"vue"),s=n.n(i);e["default"]=s.a.extend({name:"mouse",methods:{getDefaultMouseEventHandlers:function(t,e){var n;return this.getMouseEventHandlers((n={},n["click"+t]={event:"click"},n["contextmenu"+t]={event:"contextmenu",prevent:!0,result:!1},n["mousedown"+t]={event:"mousedown"},n["mousemove"+t]={event:"mousemove"},n["mouseup"+t]={event:"mouseup"},n["mouseenter"+t]={event:"mouseenter"},n["mouseleave"+t]={event:"mouseleave"},n["touchstart"+t]={event:"touchstart"},n["touchmove"+t]={event:"touchmove"},n["touchend"+t]={event:"touchend"},n),e)},getMouseEventHandlers:function(t,e){var n=this,i={},s=function(s){var o=t[s];if(!r.$listeners[s])return"continue";var a=o.passive?"&":(o.once?"~":"")+(o.capture?"!":""),c=a+o.event,l=function(t){var i=t;return(void 0===o.button||i.buttons>0&&i.button===o.button)&&(o.prevent&&t.preventDefault(),o.stop&&t.stopPropagation(),n.$emit(s,e(t))),o.result};c in i?Array.isArray(i[c])?i[c].push(l):i[c]=[i[c],l]:i[c]=l},r=this;for(var o in t)s(o);return i}}})},"./src/components/VCalendar/mixins/times.ts":
- /*!**************************************************!*\
- !*** ./src/components/VCalendar/mixins/times.ts ***!
- \**************************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);var i=n(/*! vue */"vue"),s=n.n(i),r=n(/*! ../util/timestamp */"./src/components/VCalendar/util/timestamp.ts");e["default"]=s.a.extend({name:"times",props:{now:{type:String,validator:r["validateTimestamp"]}},data:function(){return{times:{now:Object(r["parseTimestamp"])("0000-00-00 00:00"),today:Object(r["parseTimestamp"])("0000-00-00")}}},computed:{parsedNow:function(){return this.now?Object(r["parseTimestamp"])(this.now):null}},watch:{parsedNow:"updateTimes"},created:function(){this.updateTimes(),this.setPresent()},methods:{setPresent:function(){this.times.now.present=this.times.today.present=!0,this.times.now.past=this.times.today.past=!1,this.times.now.future=this.times.today.future=!1},updateTimes:function(){var t=this.parsedNow||this.getNow();this.updateDay(t,this.times.now),this.updateTime(t,this.times.now),this.updateDay(t,this.times.today)},getNow:function(){return Object(r["parseDate"])(new Date)},updateDay:function(t,e){t.date!==e.date&&(e.year=t.year,e.month=t.month,e.day=t.day,e.weekday=t.weekday,e.date=t.date)},updateTime:function(t,e){t.time!==e.time&&(e.hour=t.hour,e.minute=t.minute,e.time=t.time)}}})},"./src/components/VCalendar/util/props.ts":
- /*!************************************************!*\
- !*** ./src/components/VCalendar/util/props.ts ***!
- \************************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ./timestamp */"./src/components/VCalendar/util/timestamp.ts");function s(t){return isFinite(parseInt(t))}e["default"]={base:{start:{type:String,validate:i["validateTimestamp"],default:function(){return Object(i["parseDate"])(new Date).date}},end:{type:String,validate:i["validateTimestamp"],default:"0000-00-00"},weekdays:{type:Array,default:function(){return[0,1,2,3,4,5,6]}},hideHeader:{type:Boolean,default:!1},shortWeekdays:{type:Boolean,default:!0},weekdayFormat:{type:Function,default:null},dayFormat:{type:Function,default:null},locale:{type:String,default:"en-us"}},intervals:{maxDays:{type:Number,default:7},shortIntervals:{type:Boolean,default:!0},intervalHeight:{type:[Number,String],default:40,validate:s},intervalMinutes:{type:[Number,String],default:60,validate:s},firstInterval:{type:[Number,String],default:0,validate:s},intervalCount:{type:[Number,String],default:24,validate:s},intervalFormat:{type:Function,default:null},intervalStyle:{type:Function,default:null},showIntervalLabel:{type:Function,default:null}},weeks:{minWeeks:{validate:s,default:1},shortMonths:{type:Boolean,default:!0},showMonthOnFirst:{type:Boolean,default:!0},monthFormat:{type:Function,default:null}},calendar:{type:{type:String,default:"month"},value:{type:String,validate:i["validateTimestamp"]}}}},"./src/components/VCalendar/util/timestamp.ts":
- /*!****************************************************!*\
- !*** ./src/components/VCalendar/util/timestamp.ts ***!
- \****************************************************/
- /*! exports provided: PARSE_REGEX, PARSE_TIME, DAYS_IN_MONTH, DAYS_IN_MONTH_LEAP, DAYS_IN_MONTH_MIN, DAYS_IN_MONTH_MAX, MONTH_MAX, MONTH_MIN, DAY_MIN, DAYS_IN_WEEK, MINUTES_IN_HOUR, HOURS_IN_DAY, FIRST_HOUR, getStartOfWeek, getEndOfWeek, getStartOfMonth, getEndOfMonth, parseTime, validateTimestamp, parseTimestamp, parseDate, getDayIdentifier, getTimeIdentifier, updateRelative, updateMinutes, updateWeekday, updateFormatted, getWeekday, isLeapYear, daysInMonth, copyTimestamp, padNumber, getDate, getTime, nextMinutes, nextDay, prevDay, relativeDays, findWeekday, getWeekdaySkips, createDayList, createIntervalList, createNativeLocaleFormatter */function(t,e,n){"use strict";n.r(e),n.d(e,"PARSE_REGEX",(function(){return s})),n.d(e,"PARSE_TIME",(function(){return r})),n.d(e,"DAYS_IN_MONTH",(function(){return o})),n.d(e,"DAYS_IN_MONTH_LEAP",(function(){return a})),n.d(e,"DAYS_IN_MONTH_MIN",(function(){return c})),n.d(e,"DAYS_IN_MONTH_MAX",(function(){return l})),n.d(e,"MONTH_MAX",(function(){return u})),n.d(e,"MONTH_MIN",(function(){return h})),n.d(e,"DAY_MIN",(function(){return d})),n.d(e,"DAYS_IN_WEEK",(function(){return f})),n.d(e,"MINUTES_IN_HOUR",(function(){return p})),n.d(e,"HOURS_IN_DAY",(function(){return m})),n.d(e,"FIRST_HOUR",(function(){return g})),n.d(e,"getStartOfWeek",(function(){return b})),n.d(e,"getEndOfWeek",(function(){return v})),n.d(e,"getStartOfMonth",(function(){return y})),n.d(e,"getEndOfMonth",(function(){return S})),n.d(e,"parseTime",(function(){return x})),n.d(e,"validateTimestamp",(function(){return _})),n.d(e,"parseTimestamp",(function(){return w})),n.d(e,"parseDate",(function(){return E})),n.d(e,"getDayIdentifier",(function(){return T})),n.d(e,"getTimeIdentifier",(function(){return C})),n.d(e,"updateRelative",(function(){return M})),n.d(e,"updateMinutes",(function(){return P})),n.d(e,"updateWeekday",(function(){return A})),n.d(e,"updateFormatted",(function(){return I})),n.d(e,"getWeekday",(function(){return L})),n.d(e,"isLeapYear",(function(){return O})),n.d(e,"daysInMonth",(function(){return k})),n.d(e,"copyTimestamp",(function(){return R})),n.d(e,"padNumber",(function(){return N})),n.d(e,"getDate",(function(){return D})),n.d(e,"getTime",(function(){return V})),n.d(e,"nextMinutes",(function(){return B})),n.d(e,"nextDay",(function(){return F})),n.d(e,"prevDay",(function(){return j})),n.d(e,"relativeDays",(function(){return G})),n.d(e,"findWeekday",(function(){return W})),n.d(e,"getWeekdaySkips",(function(){return $})),n.d(e,"createDayList",(function(){return z})),n.d(e,"createIntervalList",(function(){return H})),n.d(e,"createNativeLocaleFormatter",(function(){return U}));var i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s=/^(\d{4})-(\d{1,2})(-(\d{1,2}))?([^\d]+(\d{1,2}))?(:(\d{1,2}))?(:(\d{1,2}))?$/,r=/(\d\d?)(:(\d\d?)|)(:(\d\d?)|)/,o=[0,31,28,31,30,31,30,31,31,30,31,30,31],a=[0,31,29,31,30,31,30,31,31,30,31,30,31],c=28,l=31,u=12,h=1,d=1,f=7,p=60,m=24,g=0;function b(t,e,n){var i=R(t);return W(i,e[0],j),I(i),n&&M(i,n,i.hasTime),i}function v(t,e,n){var i=R(t);return W(i,e[e.length-1]),I(i),n&&M(i,n,i.hasTime),i}function y(t){var e=R(t);return e.day=d,A(e),I(e),e}function S(t){var e=R(t);return e.day=k(e.year,e.month),A(e),I(e),e}function x(t){if("number"===typeof t)return t;if("string"===typeof t){var e=r.exec(t);return!!e&&60*parseInt(e[1])+parseInt(e[3]||0)}return"object"===("undefined"===typeof t?"undefined":i(t))&&("number"===typeof t.hour&&"number"===typeof t.minute&&60*t.hour+t.minute)}function _(t){return!!s.exec(t)}function w(t,e){var n=s.exec(t);if(!n)return null;var i={date:t,time:"",year:parseInt(n[1]),month:parseInt(n[2]),day:parseInt(n[4])||1,hour:parseInt(n[6])||0,minute:parseInt(n[8])||0,weekday:0,hasDay:!!n[4],hasTime:!(!n[6]||!n[8]),past:!1,present:!1,future:!1};return A(i),I(i),e&&M(i,e,i.hasTime),i}function E(t){return I({date:"",time:"",year:t.getFullYear(),month:t.getMonth()+1,day:t.getDate(),weekday:t.getDay(),hour:t.getHours(),minute:t.getMinutes(),hasDay:!0,hasTime:!0,past:!1,present:!0,future:!1})}function T(t){return 1e4*t.year+100*t.month+t.day}function C(t){return 100*t.hour+t.minute}function M(t,e,n){void 0===n&&(n=!1);var i=T(e),s=T(t),r=i===s;return t.hasTime&&n&&r&&(i=C(e),s=C(t),r=i===s),t.past=s<i,t.present=r,t.future=s>i,t}function P(t,e,n){return t.hasTime=!0,t.hour=Math.floor(e/p),t.minute=e%p,t.time=V(t),n&&M(t,n,!0),t}function A(t){return t.weekday=L(t),t}function I(t){return t.time=V(t),t.date=D(t),t}function L(t){if(t.hasDay){var e=Math.floor,n=t.day,i=(t.month+9)%u+1,s=e(t.year/100),r=t.year%100-(t.month<=2?1:0);return((n+e(2.6*i-.2)-2*s+r+e(r/4)+e(s/4))%7+7)%7}return t.weekday}function O(t){return t%4===0&&t%100!==0||t%400===0}function k(t,e){return O(t)?a[e]:o[e]}function R(t){var e=t.date,n=t.time,i=t.year,s=t.month,r=t.day,o=t.weekday,a=t.hour,c=t.minute,l=t.hasDay,u=t.hasTime,h=t.past,d=t.present,f=t.future;return{date:e,time:n,year:i,month:s,day:r,weekday:o,hour:a,minute:c,hasDay:l,hasTime:u,past:h,present:d,future:f}}function N(t,e){var n=String(t);while(n.length<e)n="0"+n;return n}function D(t){var e=N(t.year,4)+"-"+N(t.month,2);return t.hasDay&&(e+="-"+N(t.day,2)),e}function V(t){return t.hasTime?N(t.hour,2)+":"+N(t.minute,2):""}function B(t,e){t.minute+=e;while(t.minute>p)t.minute-=p,t.hour++,t.hour>=m&&(F(t),t.hour=g);return t}function F(t){return t.day++,t.weekday=(t.weekday+1)%f,t.day>c&&t.day>k(t.year,t.month)&&(t.day=d,t.month++,t.month>u&&(t.month=h,t.year++)),t}function j(t){return t.day--,t.weekday=(t.weekday+6)%f,t.day<d&&(t.month--,t.month<h&&(t.year--,t.month=u),t.day=k(t.year,t.month)),t}function G(t,e,n){void 0===e&&(e=F),void 0===n&&(n=1);while(--n>=0)e(t);return t}function W(t,e,n,i){void 0===n&&(n=F),void 0===i&&(i=6);while(t.weekday!==e&&--i>=0)n(t);return t}function $(t){for(var e=[1,1,1,1,1,1,1],n=[0,0,0,0,0,0,0],i=0;i<t.length;i++)n[t[i]]=1;for(var s=0;s<f;s++){for(var r=1,o=1;o<f;o++){var a=(s+o)%f;if(n[a])break;r++}e[s]=n[s]*r}return e}function z(t,e,n,i,s,r){void 0===s&&(s=42),void 0===r&&(r=0);var o=T(e),a=[],c=R(t),l=0,u=l===o;if(o<T(t))return a;while((!u||a.length<r)&&a.length<s)if(l=T(c),u=u||l===o,0!==i[c.weekday]){var h=R(c);I(h),M(h,n),a.push(h),c=G(c,F,i[c.weekday])}else c=F(c);return a}function H(t,e,n,i,s){for(var r=[],o=0;o<i;o++){var a=(e+o)*n,c=R(t);r.push(P(c,a,s))}return r}function U(t,e){var n=function(t,e){return""};return"undefined"===typeof Intl||"undefined"===typeof Intl.DateTimeFormat?n:function(n,i){try{var s=new Intl.DateTimeFormat(t||void 0,e(n,i)),r=N(n.hour,2)+":"+N(n.minute,2),o=n.date;return s.format(new Date(o+"T"+r+":00+00:00"))}catch(a){return""}}}},"./src/components/VCard/VCard.ts":
- /*!***************************************!*\
- !*** ./src/components/VCard/VCard.ts ***!
- \***************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);n(/*! ../../stylus/components/_cards.styl */"./src/stylus/components/_cards.styl");var i=n(/*! ../VSheet */"./src/components/VSheet/index.ts"),s=n(/*! ../../mixins/routable */"./src/mixins/routable.ts"),r=n(/*! ../../util/mixins */"./src/util/mixins.ts"),o=function(){return o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var s in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t},o.apply(this,arguments)};e["default"]=Object(r["default"])(s["default"],i["default"]).extend({name:"v-card",props:{flat:Boolean,hover:Boolean,img:String,raised:Boolean},computed:{classes:function(){return o({"v-card":!0,"v-card--flat":this.flat,"v-card--hover":this.hover},i["default"].options.computed.classes.call(this))},styles:function(){var t=o({},i["default"].options.computed.styles.call(this));return this.img&&(t.background='url("'+this.img+'") center center / cover no-repeat'),t}},render:function(t){var e=this.generateRouteLink(this.classes),n=e.tag,i=e.data;return i.style=this.styles,t(n,this.setBackgroundColor(this.color,i),this.$slots.default)}})},"./src/components/VCard/VCardMedia.ts":
- /*!********************************************!*\
- !*** ./src/components/VCard/VCardMedia.ts ***!
- \********************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ../VImg/VImg */"./src/components/VImg/VImg.ts"),s=n(/*! ../../util/console */"./src/util/console.ts");e["default"]=i["default"].extend({name:"v-card-media",mounted:function(){Object(s["deprecate"])("v-card-media",this.src?"v-img":"v-responsive",this)}})},"./src/components/VCard/VCardTitle.ts":
- /*!********************************************!*\
- !*** ./src/components/VCard/VCardTitle.ts ***!
- \********************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);var i=n(/*! vue */"vue"),s=n.n(i);e["default"]=s.a.extend({name:"v-card-title",functional:!0,props:{primaryTitle:Boolean},render:function(t,e){var n=e.data,i=e.props,s=e.children;return n.staticClass=("v-card__title "+(n.staticClass||"")).trim(),i.primaryTitle&&(n.staticClass+=" v-card__title--primary"),t("div",n,s)}})},"./src/components/VCard/index.ts":
- /*!***************************************!*\
- !*** ./src/components/VCard/index.ts ***!
- \***************************************/
- /*! exports provided: VCard, VCardMedia, VCardTitle, VCardActions, VCardText, default */function(t,e,n){"use strict";n.r(e),n.d(e,"VCardActions",(function(){return a})),n.d(e,"VCardText",(function(){return c}));var i=n(/*! ../../util/helpers */"./src/util/helpers.ts"),s=n(/*! ./VCard */"./src/components/VCard/VCard.ts");n.d(e,"VCard",(function(){return s["default"]}));var r=n(/*! ./VCardMedia */"./src/components/VCard/VCardMedia.ts");n.d(e,"VCardMedia",(function(){return r["default"]}));var o=n(/*! ./VCardTitle */"./src/components/VCard/VCardTitle.ts");n.d(e,"VCardTitle",(function(){return o["default"]}));var a=Object(i["createSimpleFunctional"])("v-card__actions"),c=Object(i["createSimpleFunctional"])("v-card__text");e["default"]={$_vuetify_subcomponents:{VCard:s["default"],VCardMedia:r["default"],VCardTitle:o["default"],VCardActions:a,VCardText:c}}},"./src/components/VCarousel/VCarousel.ts":
- /*!***********************************************!*\
- !*** ./src/components/VCarousel/VCarousel.ts ***!
- \***********************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);n(/*! ../../stylus/components/_carousel.styl */"./src/stylus/components/_carousel.styl");var i=n(/*! ../VWindow/VWindow */"./src/components/VWindow/VWindow.ts"),s=n(/*! ../VBtn */"./src/components/VBtn/index.ts"),r=n(/*! ../VIcon */"./src/components/VIcon/index.ts"),o=n(/*! ../../mixins/button-group */"./src/mixins/button-group.ts"),a=n(/*! ../../util/helpers */"./src/util/helpers.ts"),c=n(/*! ../../util/console */"./src/util/console.ts");e["default"]=i["default"].extend({name:"v-carousel",props:{cycle:{type:Boolean,default:!0},delimiterIcon:{type:String,default:"$vuetify.icons.delimiter"},height:{type:[Number,String],default:500},hideControls:Boolean,hideDelimiters:Boolean,interval:{type:[Number,String],default:6e3,validator:function(t){return t>0}},mandatory:{type:Boolean,default:!0},nextIcon:{type:[Boolean,String],default:"$vuetify.icons.next"},prevIcon:{type:[Boolean,String],default:"$vuetify.icons.prev"}},data:function(){return{changedByDelimiters:!1,internalHeight:this.height,slideTimeout:void 0}},computed:{isDark:function(){return this.dark||!this.light}},watch:{internalValue:function(t){this.restartTimeout(),this.$listeners["input"]&&this.$emit("input",t)},interval:"restartTimeout",height:function(t,e){t!==e&&t&&(this.internalHeight=t)},cycle:function(t){t?this.restartTimeout():(clearTimeout(this.slideTimeout),this.slideTimeout=void 0)}},mounted:function(){this.$listeners["input"]&&Object(c["deprecate"])("@input","@change",this),this.startTimeout()},methods:{genDelimiters:function(){return this.$createElement("div",{staticClass:"v-carousel__controls"},[this.genItems()])},genIcon:function(t,e,n){var i=this;return this.$createElement("div",{staticClass:"v-carousel__"+t},[this.$createElement(s["default"],{props:{icon:!0},attrs:{"aria-label":this.$vuetify.t("$vuetify.carousel."+t)},on:{click:function(){i.changedByDelimiters=!0,n()}}},[this.$createElement(r["default"],{props:{size:"46px"}},e)])])},genIcons:function(){var t=[],e=this.$vuetify.rtl?this.nextIcon:this.prevIcon;e&&"string"===typeof e&&t.push(this.genIcon("prev",e,this.prev));var n=this.$vuetify.rtl?this.prevIcon:this.nextIcon;return n&&"string"===typeof n&&t.push(this.genIcon("next",n,this.next)),t},genItems:function(){for(var t=this,e=this.items.length,n=[],i=0;i<e;i++){var a=this.$createElement(s["default"],{class:{"v-carousel__controls__item":!0},props:{icon:!0,small:!0,value:this.getValue(this.items[i],i)}},[this.$createElement(r["default"],{props:{size:18}},this.delimiterIcon)]);n.push(a)}return this.$createElement(o["default"],{props:{value:this.internalValue},on:{change:function(e){t.internalValue=e}}},n)},restartTimeout:function(){this.slideTimeout&&clearTimeout(this.slideTimeout),this.slideTimeout=void 0;var t=requestAnimationFrame||setTimeout;t(this.startTimeout)},startTimeout:function(){this.cycle&&(this.slideTimeout=window.setTimeout(this.next,+this.interval>0?+this.interval:6e3))},updateReverse:function(t,e){this.changedByDelimiters?this.changedByDelimiters=!1:i["default"].options.methods.updateReverse.call(this,t,e)}},render:function(t){var e=[],n={staticClass:"v-window v-carousel",style:{height:Object(a["convertToUnit"])(this.height)},directives:[]};return this.touchless||n.directives.push({name:"touch",value:{left:this.next,right:this.prev}}),this.hideControls||e.push(this.genIcons()),this.hideDelimiters||e.push(this.genDelimiters()),t("div",n,[this.genContainer(),e])}})},"./src/components/VCarousel/VCarouselItem.ts":
- /*!***************************************************!*\
- !*** ./src/components/VCarousel/VCarouselItem.ts ***!
- \***************************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ../VWindow/VWindowItem */"./src/components/VWindow/VWindowItem.ts"),s=n(/*! ../VImg */"./src/components/VImg/index.ts"),r=function(){return r=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var s in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t},r.apply(this,arguments)};e["default"]=i["default"].extend({name:"v-carousel-item",inheritAttrs:!1,methods:{genDefaultSlot:function(){return[this.$createElement(s["VImg"],{staticClass:"v-carousel__item",props:r({},this.$attrs,{height:this.windowGroup.internalHeight}),on:this.$listeners},this.$slots.default)]},onBeforeEnter:function(){},onEnter:function(){},onAfterEnter:function(){},onBeforeLeave:function(){},onEnterCancelled:function(){}}})},"./src/components/VCarousel/index.ts":
- /*!*******************************************!*\
- !*** ./src/components/VCarousel/index.ts ***!
- \*******************************************/
- /*! exports provided: VCarousel, VCarouselItem, default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ./VCarousel */"./src/components/VCarousel/VCarousel.ts");n.d(e,"VCarousel",(function(){return i["default"]}));var s=n(/*! ./VCarouselItem */"./src/components/VCarousel/VCarouselItem.ts");n.d(e,"VCarouselItem",(function(){return s["default"]})),e["default"]={$_vuetify_subcomponents:{VCarousel:i["default"],VCarouselItem:s["default"]}}},"./src/components/VCheckbox/VCheckbox.js":
- /*!***********************************************!*\
- !*** ./src/components/VCheckbox/VCheckbox.js ***!
- \***********************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);n(/*! ../../stylus/components/_selection-controls.styl */"./src/stylus/components/_selection-controls.styl");var i=n(/*! ../VIcon */"./src/components/VIcon/index.ts"),s=n(/*! ../../mixins/selectable */"./src/mixins/selectable.js"),r=function(){return r=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var s in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t},r.apply(this,arguments)};e["default"]={name:"v-checkbox",mixins:[s["default"]],props:{indeterminate:Boolean,indeterminateIcon:{type:String,default:"$vuetify.icons.checkboxIndeterminate"},onIcon:{type:String,default:"$vuetify.icons.checkboxOn"},offIcon:{type:String,default:"$vuetify.icons.checkboxOff"}},data:function(t){return{inputIndeterminate:t.indeterminate}},computed:{classes:function(){return{"v-input--selection-controls":!0,"v-input--checkbox":!0}},computedIcon:function(){return this.inputIndeterminate?this.indeterminateIcon:this.isActive?this.onIcon:this.offIcon}},watch:{indeterminate:function(t){this.inputIndeterminate=t}},methods:{genCheckbox:function(){return this.$createElement("div",{staticClass:"v-input--selection-controls__input"},[this.genInput("checkbox",r({},this.$attrs,{"aria-checked":this.inputIndeterminate?"mixed":this.isActive.toString()})),this.genRipple(this.setTextColor(this.computedColor)),this.$createElement(i["default"],this.setTextColor(this.computedColor,{props:{dark:this.dark,light:this.light}}),this.computedIcon)])},genDefaultSlot:function(){return[this.genCheckbox(),this.genLabel()]}}}},"./src/components/VCheckbox/index.js":
- /*!*******************************************!*\
- !*** ./src/components/VCheckbox/index.js ***!
- \*******************************************/
- /*! exports provided: VCheckbox, default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ./VCheckbox */"./src/components/VCheckbox/VCheckbox.js");n.d(e,"VCheckbox",(function(){return i["default"]})),e["default"]=i["default"]},"./src/components/VChip/VChip.ts":
- /*!***************************************!*\
- !*** ./src/components/VChip/VChip.ts ***!
- \***************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);n(/*! ../../stylus/components/_chips.styl */"./src/stylus/components/_chips.styl");var i=n(/*! ../../util/mixins */"./src/util/mixins.ts"),s=n(/*! ../VIcon */"./src/components/VIcon/index.ts"),r=n(/*! ../../mixins/colorable */"./src/mixins/colorable.ts"),o=n(/*! ../../mixins/themeable */"./src/mixins/themeable.ts"),a=n(/*! ../../mixins/toggleable */"./src/mixins/toggleable.ts"),c=function(){return c=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var s in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t},c.apply(this,arguments)};e["default"]=Object(i["default"])(r["default"],o["default"],a["default"]).extend({name:"v-chip",props:{close:Boolean,disabled:Boolean,label:Boolean,outline:Boolean,selected:Boolean,small:Boolean,textColor:String,value:{type:Boolean,default:!0}},computed:{classes:function(){return c({"v-chip--disabled":this.disabled,"v-chip--selected":this.selected&&!this.disabled,"v-chip--label":this.label,"v-chip--outline":this.outline,"v-chip--small":this.small,"v-chip--removable":this.close},this.themeClasses)}},methods:{genClose:function(t){var e=this,n={staticClass:"v-chip__close",on:{click:function(t){t.stopPropagation(),e.$emit("input",!1)}}};return t("div",n,[t(s["default"],"$vuetify.icons.delete")])},genContent:function(t){return t("span",{staticClass:"v-chip__content"},[this.$slots.default,this.close&&this.genClose(t)])}},render:function(t){var e=this.setBackgroundColor(this.color,{staticClass:"v-chip",class:this.classes,attrs:{tabindex:this.disabled?-1:0},directives:[{name:"show",value:this.isActive}],on:this.$listeners}),n=this.textColor||this.outline&&this.color;return t("span",this.setTextColor(n,e),[this.genContent(t)])}})},"./src/components/VChip/index.ts":
- /*!***************************************!*\
- !*** ./src/components/VChip/index.ts ***!
- \***************************************/
- /*! exports provided: VChip, default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ./VChip */"./src/components/VChip/VChip.ts");n.d(e,"VChip",(function(){return i["default"]})),e["default"]=i["default"]},"./src/components/VCombobox/VCombobox.js":
- /*!***********************************************!*\
- !*** ./src/components/VCombobox/VCombobox.js ***!
- \***********************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);n(/*! ../../stylus/components/_autocompletes.styl */"./src/stylus/components/_autocompletes.styl");var i=n(/*! ../VSelect/VSelect */"./src/components/VSelect/VSelect.js"),s=n(/*! ../VAutocomplete/VAutocomplete */"./src/components/VAutocomplete/VAutocomplete.js"),r=n(/*! ../../util/helpers */"./src/util/helpers.ts");e["default"]={name:"v-combobox",extends:s["default"],props:{delimiters:{type:Array,default:function(){return[]}},returnObject:{type:Boolean,default:!0}},data:function(){return{editingIndex:-1}},computed:{counterValue:function(){return this.multiple?this.selectedItems.length:(this.internalSearch||"").toString().length},hasSlot:function(){return i["default"].options.computed.hasSlot.call(this)||this.multiple},isAnyValueAllowed:function(){return!0},menuCanShow:function(){return!!this.isFocused&&(this.hasDisplayedItems||!!this.$slots["no-data"]&&!this.hideNoData)}},methods:{onFilteredItemsChanged:function(){},onInternalSearchChanged:function(t){if(t&&this.multiple&&this.delimiters.length){var e=this.delimiters.find((function(e){return t.endsWith(e)}));null!=e&&(this.internalSearch=t.slice(0,t.length-e.length),this.updateTags())}this.updateMenuDimensions()},genChipSelection:function(t,e){var n=this,s=i["default"].options.methods.genChipSelection.call(this,t,e);return this.multiple&&(s.componentOptions.listeners.dblclick=function(){n.editingIndex=e,n.internalSearch=n.getText(t),n.selectedIndex=-1}),s},onChipInput:function(t){i["default"].options.methods.onChipInput.call(this,t),this.editingIndex=-1},onEnterDown:function(t){t.preventDefault(),i["default"].options.methods.onEnterDown.call(this),this.getMenuIndex()>-1||this.updateSelf()},onKeyDown:function(t){var e=t.keyCode;i["default"].options.methods.onKeyDown.call(this,t),this.multiple&&e===r["keyCodes"].left&&0===this.$refs.input.selectionStart&&this.updateSelf(),this.changeSelectedIndex(e)},onTabDown:function(t){if(this.multiple&&this.internalSearch&&-1===this.getMenuIndex())return t.preventDefault(),t.stopPropagation(),this.updateTags();s["default"].options.methods.onTabDown.call(this,t)},selectItem:function(t){this.editingIndex>-1?this.updateEditing():s["default"].options.methods.selectItem.call(this,t)},setSelectedItems:function(){null==this.internalValue||""===this.internalValue?this.selectedItems=[]:this.selectedItems=this.multiple?this.internalValue:[this.internalValue]},setValue:function(t){void 0===t&&(t=this.internalSearch),i["default"].options.methods.setValue.call(this,t)},updateEditing:function(){var t=this.internalValue.slice();t[this.editingIndex]=this.internalSearch,this.setValue(t),this.editingIndex=-1},updateCombobox:function(){var t=Boolean(this.$scopedSlots.selection)||this.hasChips;t&&!this.searchIsDirty||(this.internalSearch!==this.getText(this.internalValue)&&this.setValue(),t&&(this.internalSearch=void 0))},updateSelf:function(){this.multiple?this.updateTags():this.updateCombobox()},updateTags:function(){var t=this.getMenuIndex();if(!(t<0)||this.searchIsDirty){if(this.editingIndex>-1)return this.updateEditing();var e=this.selectedItems.indexOf(this.internalSearch);if(e>-1){var n=this.internalValue.slice();n.splice(e,1),this.setValue(n)}if(t>-1)return this.internalSearch=null;this.selectItem(this.internalSearch),this.internalSearch=null}}}}},"./src/components/VCombobox/index.js":
- /*!*******************************************!*\
- !*** ./src/components/VCombobox/index.js ***!
- \*******************************************/
- /*! exports provided: VCombobox, default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ./VCombobox */"./src/components/VCombobox/VCombobox.js");n.d(e,"VCombobox",(function(){return i["default"]})),e["default"]=i["default"]},"./src/components/VCounter/VCounter.ts":
- /*!*********************************************!*\
- !*** ./src/components/VCounter/VCounter.ts ***!
- \*********************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);n(/*! ../../stylus/components/_counters.styl */"./src/stylus/components/_counters.styl");var i=n(/*! ../../mixins/themeable */"./src/mixins/themeable.ts"),s=n(/*! ../../util/mixins */"./src/util/mixins.ts"),r=function(){return r=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var s in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t},r.apply(this,arguments)};e["default"]=Object(s["default"])(i["default"]).extend({name:"v-counter",functional:!0,props:{value:{type:[Number,String],default:""},max:[Number,String]},render:function(t,e){var n=e.props,s=parseInt(n.max,10),o=parseInt(n.value,10),a=s?o+" / "+s:String(n.value),c=s&&o>s;return t("div",{staticClass:"v-counter",class:r({"error--text":c},Object(i["functionalThemeClasses"])(e))},a)}})},"./src/components/VCounter/index.ts":
- /*!******************************************!*\
- !*** ./src/components/VCounter/index.ts ***!
- \******************************************/
- /*! exports provided: VCounter, default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ./VCounter */"./src/components/VCounter/VCounter.ts");n.d(e,"VCounter",(function(){return i["default"]})),e["default"]=i["default"]},"./src/components/VDataIterator/VDataIterator.js":
- /*!*******************************************************!*\
- !*** ./src/components/VDataIterator/VDataIterator.js ***!
- \*******************************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);n(/*! ../../stylus/components/_data-iterator.styl */"./src/stylus/components/_data-iterator.styl");var i=n(/*! ../../mixins/data-iterable */"./src/mixins/data-iterable.js"),s=function(){return s=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var s in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t},s.apply(this,arguments)};e["default"]={name:"v-data-iterator",mixins:[i["default"]],inheritAttrs:!1,props:{contentTag:{type:String,default:"div"},contentProps:{type:Object,required:!1},contentClass:{type:String,required:!1}},computed:{classes:function(){return s({"v-data-iterator":!0,"v-data-iterator--select-all":!1!==this.selectAll},this.themeClasses)}},created:function(){this.initPagination()},methods:{genContent:function(){var t=this.genItems(),e={class:this.contentClass,attrs:this.$attrs,on:this.$listeners,props:this.contentProps};return this.$createElement(this.contentTag,e,t)},genEmptyItems:function(t){return[this.$createElement("div",{class:"text-xs-center",style:"width: 100%"},t)]},genFilteredItems:function(){if(!this.$scopedSlots.item)return null;for(var t=[],e=0,n=this.filteredItems.length;e<n;++e){var i=this.filteredItems[e],s=this.createProps(i,e);t.push(this.$scopedSlots.item(s))}return t},genFooter:function(){var t=[];return this.$slots.footer&&t.push(this.$slots.footer),this.hideActions||t.push(this.genActions()),t.length?this.$createElement("div",t):null},genHeader:function(){var t=[];return this.$slots.header&&t.push(this.$slots.header),t.length?this.$createElement("div",t):null}},render:function(t){return t("div",{class:this.classes},[this.genHeader(),this.genContent(),this.genFooter()])}}},"./src/components/VDataIterator/index.js":
- /*!***********************************************!*\
- !*** ./src/components/VDataIterator/index.js ***!
- \***********************************************/
- /*! exports provided: VDataIterator, default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ./VDataIterator */"./src/components/VDataIterator/VDataIterator.js");n.d(e,"VDataIterator",(function(){return i["default"]})),e["default"]=i["default"]},"./src/components/VDataTable/VDataTable.js":
- /*!*************************************************!*\
- !*** ./src/components/VDataTable/VDataTable.js ***!
- \*************************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);n(/*! ../../stylus/components/_tables.styl */"./src/stylus/components/_tables.styl"),n(/*! ../../stylus/components/_data-table.styl */"./src/stylus/components/_data-table.styl");var i=n(/*! ../../mixins/data-iterable */"./src/mixins/data-iterable.js"),s=n(/*! ./mixins/head */"./src/components/VDataTable/mixins/head.js"),r=n(/*! ./mixins/body */"./src/components/VDataTable/mixins/body.js"),o=n(/*! ./mixins/foot */"./src/components/VDataTable/mixins/foot.js"),a=n(/*! ./mixins/progress */"./src/components/VDataTable/mixins/progress.js"),c=n(/*! ../../util/helpers */"./src/util/helpers.ts"),l=function(){return l=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var s in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t},l.apply(this,arguments)},u=Object(c["createSimpleFunctional"])("v-table__overflow");e["default"]={name:"v-data-table",mixins:[i["default"],s["default"],r["default"],o["default"],a["default"]],props:{headers:{type:Array,default:function(){return[]}},headersLength:{type:Number},headerText:{type:String,default:"text"},headerKey:{type:String,default:null},hideHeaders:Boolean,rowsPerPageText:{type:String,default:"$vuetify.dataTable.rowsPerPageText"},customFilter:{type:Function,default:function(t,e,n,i){if(e=e.toString().toLowerCase(),""===e.trim())return t;var s=i.map((function(t){return t.value}));return t.filter((function(t){return s.some((function(i){return n(Object(c["getObjectValueByPath"])(t,i,t[i]),e)}))}))}}},data:function(){return{actionsClasses:"v-datatable__actions",actionsRangeControlsClasses:"v-datatable__actions__range-controls",actionsSelectClasses:"v-datatable__actions__select",actionsPaginationClasses:"v-datatable__actions__pagination"}},computed:{classes:function(){return l({"v-datatable v-table":!0,"v-datatable--select-all":!1!==this.selectAll},this.themeClasses)},filteredItems:function(){return this.filteredItemsImpl(this.headers)},headerColumns:function(){return this.headersLength||this.headers.length+(!1!==this.selectAll)}},created:function(){var t=this.headers.find((function(t){return!("sortable"in t)||t.sortable}));this.defaultPagination.sortBy=!this.disableInitialSort&&t?t.value:null,this.initPagination()},methods:{hasTag:function(t,e){return Array.isArray(t)&&t.find((function(t){return t.tag===e}))},genTR:function(t,e){return void 0===e&&(e={}),this.$createElement("tr",e,t)}},render:function(t){var e=t(u,{},[t("table",{class:this.classes},[this.genTHead(),this.genTBody(),this.genTFoot()])]);return t("div",[e,this.genActionsFooter()])}}},"./src/components/VDataTable/VEditDialog.js":
- /*!**************************************************!*\
- !*** ./src/components/VDataTable/VEditDialog.js ***!
- \**************************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);n(/*! ../../stylus/components/_small-dialog.styl */"./src/stylus/components/_small-dialog.styl");var i=n(/*! ../../mixins/returnable */"./src/mixins/returnable.ts"),s=n(/*! ../../mixins/themeable */"./src/mixins/themeable.ts"),r=n(/*! ../../util/helpers */"./src/util/helpers.ts"),o=n(/*! ../VBtn */"./src/components/VBtn/index.ts"),a=n(/*! ../VMenu */"./src/components/VMenu/index.js");e["default"]={name:"v-edit-dialog",mixins:[i["default"],s["default"]],props:{cancelText:{default:"Cancel"},large:Boolean,lazy:Boolean,persistent:Boolean,saveText:{default:"Save"},transition:{type:String,default:"slide-x-reverse-transition"}},data:function(){return{isActive:!1}},watch:{isActive:function(t){t?(this.$emit("open"),setTimeout(this.focus,50)):this.$emit("close")}},methods:{cancel:function(){this.isActive=!1,this.$emit("cancel")},focus:function(){var t=this.$refs.content.querySelector("input");t&&t.focus()},genButton:function(t,e){return this.$createElement(o["default"],{props:{flat:!0,color:"primary",light:!0},on:{click:t}},e)},genActions:function(){var t=this;return this.$createElement("div",{class:"v-small-dialog__actions"},[this.genButton(this.cancel,this.cancelText),this.genButton((function(){t.save(t.returnValue),t.$emit("save")}),this.saveText)])},genContent:function(){var t=this;return this.$createElement("div",{on:{keydown:function(e){var n=t.$refs.content.querySelector("input");e.keyCode===r["keyCodes"].esc&&t.cancel(),e.keyCode===r["keyCodes"].enter&&n&&(t.save(n.value),t.$emit("save"))}},ref:"content"},[this.$slots.input])}},render:function(t){var e=this;return t(a["default"],{staticClass:"v-small-dialog",class:this.themeClasses,props:{contentClass:"v-small-dialog__content",transition:this.transition,origin:"top right",right:!0,value:this.isActive,closeOnClick:!this.persistent,closeOnContentClick:!1,lazy:this.lazy,light:this.light,dark:this.dark},on:{input:function(t){return e.isActive=t}}},[t("a",{slot:"activator"},this.$slots.default),this.genContent(),this.large?this.genActions():null])}}},"./src/components/VDataTable/index.js":
- /*!********************************************!*\
- !*** ./src/components/VDataTable/index.js ***!
- \********************************************/
- /*! exports provided: VDataTable, VEditDialog, VTableOverflow, default */function(t,e,n){"use strict";n.r(e),n.d(e,"VTableOverflow",(function(){return o}));var i=n(/*! ../../util/helpers */"./src/util/helpers.ts"),s=n(/*! ./VDataTable */"./src/components/VDataTable/VDataTable.js");n.d(e,"VDataTable",(function(){return s["default"]}));var r=n(/*! ./VEditDialog */"./src/components/VDataTable/VEditDialog.js");n.d(e,"VEditDialog",(function(){return r["default"]}));var o=Object(i["createSimpleFunctional"])("v-table__overflow");e["default"]={$_vuetify_subcomponents:{VDataTable:s["default"],VEditDialog:r["default"],VTableOverflow:o}}},"./src/components/VDataTable/mixins/body.js":
- /*!**************************************************!*\
- !*** ./src/components/VDataTable/mixins/body.js ***!
- \**************************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ../../transitions/expand-transition */"./src/components/transitions/expand-transition.js"),s=n(/*! ../../../util/helpers */"./src/util/helpers.ts");e["default"]={methods:{genTBody:function(){var t=this.genItems();return this.$createElement("tbody",t)},genExpandedRow:function(t){var e=[];if(this.isExpanded(t.item)){var n=this.$createElement("div",{class:"v-datatable__expand-content",key:Object(s["getObjectValueByPath"])(t.item,this.itemKey)},[this.$scopedSlots.expand(t)]);e.push(n)}var r={"v-datatable__expand-col":!0,"v-datatable__expand-col--expanded":this.isExpanded(t.item)},o=this.$createElement("transition-group",{class:r,attrs:{colspan:this.headerColumns},props:{tag:"td"},on:Object(i["default"])("v-datatable__expand-col--expanded")},e);return this.genTR([o],{class:"v-datatable__expand-row"})},genFilteredItems:function(){if(!this.$scopedSlots.items)return null;for(var t=[],e=0,n=this.filteredItems.length;e<n;++e){var i=this.filteredItems[e],r=this.createProps(i,e),o=this.$scopedSlots.items(r);if(t.push(this.hasTag(o,"td")?this.genTR(o,{key:this.itemKey?Object(s["getObjectValueByPath"])(r.item,this.itemKey):e,attrs:{active:this.isSelected(i)}}):o),this.$scopedSlots.expand){var a=this.genExpandedRow(r);t.push(a)}}return t},genEmptyItems:function(t){return this.hasTag(t,"tr")?t:this.hasTag(t,"td")?this.genTR(t):this.genTR([this.$createElement("td",{class:{"text-xs-center":"string"===typeof t},attrs:{colspan:this.headerColumns}},t)])}}}},"./src/components/VDataTable/mixins/foot.js":
- /*!**************************************************!*\
- !*** ./src/components/VDataTable/mixins/foot.js ***!
- \**************************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e),e["default"]={methods:{genTFoot:function(){if(!this.$slots.footer)return null;var t=this.$slots.footer,e=this.hasTag(t,"td")?this.genTR(t):t;return this.$createElement("tfoot",[e])},genActionsFooter:function(){return this.hideActions?null:this.$createElement("div",{class:this.classes},this.genActions())}}}},"./src/components/VDataTable/mixins/head.js":
- /*!**************************************************!*\
- !*** ./src/components/VDataTable/mixins/head.js ***!
- \**************************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ../../../util/console */"./src/util/console.ts"),s=n(/*! ../../VCheckbox */"./src/components/VCheckbox/index.js"),r=n(/*! ../../VIcon */"./src/components/VIcon/index.ts"),o=function(t,e){var n="function"===typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,s,r=n.call(t),o=[];try{while((void 0===e||e-- >0)&&!(i=r.next()).done)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r["return"])&&n.call(r)}finally{if(s)throw s.error}}return o},a=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(o(arguments[e]));return t};e["default"]={props:{sortIcon:{type:String,default:"$vuetify.icons.sort"}},methods:{genTHead:function(){var t=this;if(!this.hideHeaders){var e=[];if(this.$scopedSlots.headers){var n=this.$scopedSlots.headers({headers:this.headers,indeterminate:this.indeterminate,all:this.everyItem});e=[this.hasTag(n,"th")?this.genTR(n):n,this.genTProgress()]}else{n=this.headers.map((function(e,n){return t.genHeader(e,t.headerKey?e[t.headerKey]:n)}));var i=this.$createElement(s["default"],{props:{dark:this.dark,light:this.light,color:!0===this.selectAll?"":this.selectAll,hideDetails:!0,inputValue:this.everyItem,indeterminate:this.indeterminate},on:{change:this.toggle}});this.hasSelectAll&&n.unshift(this.$createElement("th",[i])),e=[this.genTR(n),this.genTProgress()]}return this.$createElement("thead",[e])}},genHeader:function(t,e){var n=[this.$scopedSlots.headerCell?this.$scopedSlots.headerCell({header:t}):t[this.headerText]];return this.$createElement.apply(this,a(["th"],this.genHeaderData(t,n,e)))},genHeaderData:function(t,e,n){var i=["column"],s={key:n,attrs:{role:"columnheader",scope:"col",width:t.width||null,"aria-label":t[this.headerText]||"","aria-sort":"none"}};return null==t.sortable||t.sortable?this.genHeaderSortingData(t,e,s,i):s.attrs["aria-label"]+=": Not sorted.",i.push("text-xs-"+(t.align||"left")),Array.isArray(t.class)?i.push.apply(i,a(t.class)):t.class&&i.push(t.class),s.class=i,[s,e]},genHeaderSortingData:function(t,e,n,s){var o=this;"value"in t||Object(i["consoleWarn"])("Headers must have a value property that corresponds to a value in the v-model array",this),n.attrs.tabIndex=0,n.on={click:function(){o.expanded={},o.sort(t.value)},keydown:function(e){32===e.keyCode&&(e.preventDefault(),o.sort(t.value))}},s.push("sortable");var a=this.$createElement(r["default"],{props:{small:!0}},this.sortIcon);t.align&&"left"!==t.align?e.unshift(a):e.push(a);var c=this.computedPagination,l=c.sortBy===t.value;l?(s.push("active"),c.descending?(s.push("desc"),n.attrs["aria-sort"]="descending",n.attrs["aria-label"]+=": Sorted descending. Activate to remove sorting."):(s.push("asc"),n.attrs["aria-sort"]="ascending",n.attrs["aria-label"]+=": Sorted ascending. Activate to sort descending.")):n.attrs["aria-label"]+=": Not sorted. Activate to sort ascending."}}}},"./src/components/VDataTable/mixins/progress.js":
- /*!******************************************************!*\
- !*** ./src/components/VDataTable/mixins/progress.js ***!
- \******************************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e),e["default"]={methods:{genTProgress:function(){var t=this.$createElement("th",{staticClass:"column",attrs:{colspan:this.headerColumns}},[this.genProgress()]);return this.genTR([t],{staticClass:"v-datatable__progress"})}}}},"./src/components/VDatePicker/VDatePicker.ts":
- /*!***************************************************!*\
- !*** ./src/components/VDatePicker/VDatePicker.ts ***!
- \***************************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ./VDatePickerTitle */"./src/components/VDatePicker/VDatePickerTitle.ts"),s=n(/*! ./VDatePickerHeader */"./src/components/VDatePicker/VDatePickerHeader.ts"),r=n(/*! ./VDatePickerDateTable */"./src/components/VDatePicker/VDatePickerDateTable.ts"),o=n(/*! ./VDatePickerMonthTable */"./src/components/VDatePicker/VDatePickerMonthTable.ts"),a=n(/*! ./VDatePickerYears */"./src/components/VDatePicker/VDatePickerYears.ts"),c=n(/*! ../../mixins/picker */"./src/mixins/picker.ts"),l=n(/*! ./util */"./src/components/VDatePicker/util/index.ts"),u=n(/*! ./util/isDateAllowed */"./src/components/VDatePicker/util/isDateAllowed.ts"),h=n(/*! ../../util/console */"./src/util/console.ts"),d=n(/*! ../VCalendar/util/timestamp */"./src/components/VCalendar/util/timestamp.ts"),f=n(/*! ../../util/mixins */"./src/util/mixins.ts"),p=function(t,e){var n="function"===typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,s,r=n.call(t),o=[];try{while((void 0===e||e-- >0)&&!(i=r.next()).done)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r["return"])&&n.call(r)}finally{if(s)throw s.error}}return o};function m(t,e){var n=p(t.split("-"),3),i=n[0],s=n[1],r=void 0===s?1:s,o=n[2],a=void 0===o?1:o;return(i+"-"+Object(l["pad"])(r)+"-"+Object(l["pad"])(a)).substr(0,{date:10,month:7,year:4}[e])}e["default"]=Object(f["default"])(c["default"]).extend({name:"v-date-picker",props:{allowedDates:Function,dayFormat:Function,disabled:Boolean,events:{type:[Array,Function,Object],default:function(){return null}},eventColor:{type:[Array,Function,Object,String],default:function(){return"warning"}},firstDayOfWeek:{type:[String,Number],default:0},headerDateFormat:Function,locale:{type:String,default:"en-us"},max:String,min:String,monthFormat:Function,multiple:Boolean,nextIcon:{type:String,default:"$vuetify.icons.next"},pickerDate:String,prevIcon:{type:String,default:"$vuetify.icons.prev"},reactive:Boolean,readonly:Boolean,scrollable:Boolean,showCurrent:{type:[Boolean,String],default:!0},showWeek:Boolean,titleDateFormat:Function,type:{type:String,default:"date",validator:function(t){return["date","month"].includes(t)}},value:[Array,String],weekdayFormat:Function,yearFormat:Function,yearIcon:String},data:function(){var t=this,e=new Date;return{activePicker:this.type.toUpperCase(),inputDay:null,inputMonth:null,inputYear:null,isReversing:!1,now:e,tableDate:function(){if(t.pickerDate)return t.pickerDate;var n=(t.multiple?t.value[t.value.length-1]:t.value)||e.getFullYear()+"-"+(e.getMonth()+1);return m(n,"date"===t.type?"month":"year")}()}},computed:{lastValue:function(){return this.multiple?this.value[this.value.length-1]:this.value},selectedMonths:function(){return this.value&&this.value.length&&"month"!==this.type?this.multiple?this.value.map((function(t){return t.substr(0,7)})):this.value.substr(0,7):this.value},current:function(){return!0===this.showCurrent?m(this.now.getFullYear()+"-"+(this.now.getMonth()+1)+"-"+this.now.getDate(),this.type):this.showCurrent||null},inputDate:function(){return"date"===this.type?this.inputYear+"-"+Object(l["pad"])(this.inputMonth+1)+"-"+Object(l["pad"])(this.inputDay):this.inputYear+"-"+Object(l["pad"])(this.inputMonth+1)},tableMonth:function(){return Number((this.pickerDate||this.tableDate).split("-")[1])-1},tableYear:function(){return Number((this.pickerDate||this.tableDate).split("-")[0])},minMonth:function(){return this.min?m(this.min,"month"):null},maxMonth:function(){return this.max?m(this.max,"month"):null},minYear:function(){return this.min?m(this.min,"year"):null},maxYear:function(){return this.max?m(this.max,"year"):null},formatters:function(){return{year:this.yearFormat||Object(l["createNativeLocaleFormatter"])(this.locale,{year:"numeric",timeZone:"UTC"},{length:4}),titleDate:this.titleDateFormat||(this.multiple?this.defaultTitleMultipleDateFormatter:this.defaultTitleDateFormatter)}},defaultTitleMultipleDateFormatter:function(){var t=this;return this.value.length<2?function(e){return e.length?t.defaultTitleDateFormatter(e[0]):"0 selected"}:function(t){return t.length+" selected"}},defaultTitleDateFormatter:function(){var t={year:{year:"numeric",timeZone:"UTC"},month:{month:"long",timeZone:"UTC"},date:{weekday:"short",month:"short",day:"numeric",timeZone:"UTC"}},e=Object(l["createNativeLocaleFormatter"])(this.locale,t[this.type],{start:0,length:{date:10,month:7,year:4}[this.type]}),n=function(t){return e(t).replace(/([^\d\s])([\d])/g,(function(t,e,n){return e+" "+n})).replace(", ",",<br>")};return this.landscape?n:e}},watch:{tableDate:function(t,e){var n="month"===this.type?"year":"month";this.isReversing=m(t,n)<m(e,n),this.$emit("update:pickerDate",t)},pickerDate:function(t){t?this.tableDate=t:this.lastValue&&"date"===this.type?this.tableDate=m(this.lastValue,"month"):this.lastValue&&"month"===this.type&&(this.tableDate=m(this.lastValue,"year"))},value:function(t,e){this.checkMultipleProp(),this.setInputDate(),this.multiple||!this.value||this.pickerDate?this.multiple&&this.value.length&&!e.length&&!this.pickerDate&&(this.tableDate=m(this.inputDate,"month"===this.type?"year":"month")):this.tableDate=m(this.inputDate,"month"===this.type?"year":"month")},type:function(t){if(this.activePicker=t.toUpperCase(),this.value&&this.value.length){var e=(this.multiple?this.value:[this.value]).map((function(e){return m(e,t)})).filter(this.isDateAllowed);this.$emit("input",this.multiple?e:e[0])}}},created:function(){this.checkMultipleProp(),this.pickerDate!==this.tableDate&&this.$emit("update:pickerDate",this.tableDate),this.setInputDate()},methods:{emitInput:function(t){var e=this.multiple?-1===this.value.indexOf(t)?this.value.concat([t]):this.value.filter((function(e){return e!==t})):t;this.$emit("input",e),this.multiple||this.$emit("change",t)},checkMultipleProp:function(){if(null!=this.value){var t=this.value.constructor.name,e=this.multiple?"Array":"String";t!==e&&Object(h["consoleWarn"])("Value must be "+(this.multiple?"an":"a")+" "+e+", got "+t,this)}},isDateAllowed:function(t){return Object(u["default"])(t,this.min,this.max,this.allowedDates)},yearClick:function(t){this.inputYear=t,"month"===this.type?this.tableDate=""+t:this.tableDate=t+"-"+Object(l["pad"])((this.tableMonth||0)+1),this.activePicker="MONTH",this.reactive&&!this.readonly&&!this.multiple&&this.isDateAllowed(this.inputDate)&&this.$emit("input",this.inputDate)},monthClick:function(t){this.inputYear=parseInt(t.split("-")[0],10),this.inputMonth=parseInt(t.split("-")[1],10)-1,"date"===this.type?(this.inputDay&&(this.inputDay=Math.min(this.inputDay,Object(d["daysInMonth"])(this.inputYear,this.inputMonth+1))),this.tableDate=t,this.activePicker="DATE",this.reactive&&!this.readonly&&!this.multiple&&this.isDateAllowed(this.inputDate)&&this.$emit("input",this.inputDate)):this.emitInput(this.inputDate)},dateClick:function(t){this.inputYear=parseInt(t.split("-")[0],10),this.inputMonth=parseInt(t.split("-")[1],10)-1,this.inputDay=parseInt(t.split("-")[2],10),this.emitInput(this.inputDate)},genPickerTitle:function(){var t=this;return this.$createElement(i["default"],{props:{date:this.value?this.formatters.titleDate(this.value):"",disabled:this.disabled,readonly:this.readonly,selectingYear:"YEAR"===this.activePicker,year:this.formatters.year(this.value?""+this.inputYear:this.tableDate),yearIcon:this.yearIcon,value:this.multiple?this.value[0]:this.value},slot:"title",on:{"update:selectingYear":function(e){return t.activePicker=e?"YEAR":t.type.toUpperCase()}}})},genTableHeader:function(){var t=this;return this.$createElement(s["default"],{props:{nextIcon:this.nextIcon,color:this.color,dark:this.dark,disabled:this.disabled,format:this.headerDateFormat,light:this.light,locale:this.locale,min:"DATE"===this.activePicker?this.minMonth:this.minYear,max:"DATE"===this.activePicker?this.maxMonth:this.maxYear,prevIcon:this.prevIcon,readonly:this.readonly,value:"DATE"===this.activePicker?Object(l["pad"])(this.tableYear,4)+"-"+Object(l["pad"])(this.tableMonth+1):""+Object(l["pad"])(this.tableYear,4)},on:{toggle:function(){return t.activePicker="DATE"===t.activePicker?"MONTH":"YEAR"},input:function(e){return t.tableDate=e}}})},genDateTable:function(){var t=this;return this.$createElement(r["default"],{props:{allowedDates:this.allowedDates,color:this.color,current:this.current,dark:this.dark,disabled:this.disabled,events:this.events,eventColor:this.eventColor,firstDayOfWeek:this.firstDayOfWeek,format:this.dayFormat,light:this.light,locale:this.locale,min:this.min,max:this.max,readonly:this.readonly,scrollable:this.scrollable,showWeek:this.showWeek,tableDate:Object(l["pad"])(this.tableYear,4)+"-"+Object(l["pad"])(this.tableMonth+1),value:this.value,weekdayFormat:this.weekdayFormat},ref:"table",on:{input:this.dateClick,tableDate:function(e){return t.tableDate=e},"click:date":function(e){return t.$emit("click:date",e)},"dblclick:date":function(e){return t.$emit("dblclick:date",e)}}})},genMonthTable:function(){var t=this;return this.$createElement(o["default"],{props:{allowedDates:"month"===this.type?this.allowedDates:null,color:this.color,current:this.current?m(this.current,"month"):null,dark:this.dark,disabled:this.disabled,events:"month"===this.type?this.events:null,eventColor:"month"===this.type?this.eventColor:null,format:this.monthFormat,light:this.light,locale:this.locale,min:this.minMonth,max:this.maxMonth,readonly:this.readonly&&"month"===this.type,scrollable:this.scrollable,value:this.selectedMonths,tableDate:""+Object(l["pad"])(this.tableYear,4)},ref:"table",on:{input:this.monthClick,tableDate:function(e){return t.tableDate=e},"click:month":function(e){return t.$emit("click:month",e)},"dblclick:month":function(e){return t.$emit("dblclick:month",e)}}})},genYears:function(){return this.$createElement(a["default"],{props:{color:this.color,format:this.yearFormat,locale:this.locale,min:this.minYear,max:this.maxYear,value:this.tableYear},on:{input:this.yearClick}})},genPickerBody:function(){var t="YEAR"===this.activePicker?[this.genYears()]:[this.genTableHeader(),"DATE"===this.activePicker?this.genDateTable():this.genMonthTable()];return this.$createElement("div",{key:this.activePicker},t)},setInputDate:function(){if(this.lastValue){var t=this.lastValue.split("-");this.inputYear=parseInt(t[0],10),this.inputMonth=parseInt(t[1],10)-1,"date"===this.type&&(this.inputDay=parseInt(t[2],10))}else this.inputYear=this.inputYear||this.now.getFullYear(),this.inputMonth=null==this.inputMonth?this.inputMonth:this.now.getMonth(),this.inputDay=this.inputDay||this.now.getDate()}},render:function(){return this.genPicker("v-picker--date")}})},"./src/components/VDatePicker/VDatePickerDateTable.ts":
- /*!************************************************************!*\
- !*** ./src/components/VDatePicker/VDatePickerDateTable.ts ***!
- \************************************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ./mixins/date-picker-table */"./src/components/VDatePicker/mixins/date-picker-table.ts"),s=n(/*! ./util */"./src/components/VDatePicker/util/index.ts"),r=n(/*! ../../util/helpers */"./src/util/helpers.ts"),o=n(/*! ../../util/mixins */"./src/util/mixins.ts");e["default"]=Object(o["default"])(i["default"]).extend({name:"v-date-picker-date-table",props:{firstDayOfWeek:{type:[String,Number],default:0},showWeek:Boolean,weekdayFormat:Function},computed:{formatter:function(){return this.format||Object(s["createNativeLocaleFormatter"])(this.locale,{day:"numeric",timeZone:"UTC"},{start:8,length:2})},weekdayFormatter:function(){return this.weekdayFormat||Object(s["createNativeLocaleFormatter"])(this.locale,{weekday:"narrow",timeZone:"UTC"})},weekDays:function(){var t=this,e=parseInt(this.firstDayOfWeek,10);return this.weekdayFormatter?Object(r["createRange"])(7).map((function(n){return t.weekdayFormatter("2017-01-"+(e+n+15))})):Object(r["createRange"])(7).map((function(t){return["S","M","T","W","T","F","S"][(t+e)%7]}))}},methods:{calculateTableDate:function(t){return Object(s["monthChange"])(this.tableDate,Math.sign(t||1))},genTHead:function(){var t=this,e=this.weekDays.map((function(e){return t.$createElement("th",e)}));return this.showWeek&&e.unshift(this.$createElement("th")),this.$createElement("thead",this.genTR(e))},weekDaysBeforeFirstDayOfTheMonth:function(){var t=new Date(this.displayedYear+"-"+Object(s["pad"])(this.displayedMonth+1)+"-01T00:00:00+00:00"),e=t.getUTCDay();return(e-parseInt(this.firstDayOfWeek)+7)%7},getWeekNumber:function(){var t=[0,31,59,90,120,151,181,212,243,273,304,334][this.displayedMonth];this.displayedMonth>1&&(this.displayedYear%4===0&&this.displayedYear%100!==0||this.displayedYear%400===0)&&t++;var e=(this.displayedYear+(this.displayedYear-1>>2)-Math.floor((this.displayedYear-1)/100)+Math.floor((this.displayedYear-1)/400)-Number(this.firstDayOfWeek))%7;return Math.floor((t+e)/7)+1},genWeekNumber:function(t){return this.$createElement("td",[this.$createElement("small",{staticClass:"v-date-picker-table--date__week"},String(t).padStart(2,"0"))])},genTBody:function(){var t=[],e=new Date(this.displayedYear,this.displayedMonth+1,0).getDate(),n=[],i=this.weekDaysBeforeFirstDayOfTheMonth(),r=this.getWeekNumber();this.showWeek&&n.push(this.genWeekNumber(r++));while(i--)n.push(this.$createElement("td"));for(i=1;i<=e;i++){var o=this.displayedYear+"-"+Object(s["pad"])(this.displayedMonth+1)+"-"+Object(s["pad"])(i);n.push(this.$createElement("td",[this.genButton(o,!0,"date",this.formatter)])),n.length%(this.showWeek?8:7)===0&&(t.push(this.genTR(n)),n=[],i<e&&this.showWeek&&n.push(this.genWeekNumber(r++)))}return n.length&&t.push(this.genTR(n)),this.$createElement("tbody",t)},genTR:function(t){return[this.$createElement("tr",t)]}},render:function(){return this.genTable("v-date-picker-table v-date-picker-table--date",[this.genTHead(),this.genTBody()],this.calculateTableDate)}})},"./src/components/VDatePicker/VDatePickerHeader.ts":
- /*!*********************************************************!*\
- !*** ./src/components/VDatePicker/VDatePickerHeader.ts ***!
- \*********************************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);n(/*! ../../stylus/components/_date-picker-header.styl */"./src/stylus/components/_date-picker-header.styl");var i=n(/*! ../VBtn */"./src/components/VBtn/index.ts"),s=n(/*! ../VIcon */"./src/components/VIcon/index.ts"),r=n(/*! ../../mixins/colorable */"./src/mixins/colorable.ts"),o=n(/*! ../../mixins/themeable */"./src/mixins/themeable.ts"),a=n(/*! ./util */"./src/components/VDatePicker/util/index.ts"),c=n(/*! ../../util/mixins */"./src/util/mixins.ts"),l=function(){return l=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var s in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t},l.apply(this,arguments)},u=function(t,e){var n="function"===typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,s,r=n.call(t),o=[];try{while((void 0===e||e-- >0)&&!(i=r.next()).done)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r["return"])&&n.call(r)}finally{if(s)throw s.error}}return o};e["default"]=Object(c["default"])(r["default"],o["default"]).extend({name:"v-date-picker-header",props:{disabled:Boolean,format:Function,locale:{type:String,default:"en-us"},min:String,max:String,nextIcon:{type:String,default:"$vuetify.icons.next"},prevIcon:{type:String,default:"$vuetify.icons.prev"},readonly:Boolean,value:{type:[Number,String],required:!0}},data:function(){return{isReversing:!1}},computed:{formatter:function(){return this.format?this.format:String(this.value).split("-")[1]?Object(a["createNativeLocaleFormatter"])(this.locale,{month:"long",year:"numeric",timeZone:"UTC"},{length:7}):Object(a["createNativeLocaleFormatter"])(this.locale,{year:"numeric",timeZone:"UTC"},{length:4})}},watch:{value:function(t,e){this.isReversing=t<e}},methods:{genBtn:function(t){var e=this,n=this.disabled||t<0&&this.min&&this.calculateChange(t)<this.min||t>0&&this.max&&this.calculateChange(t)>this.max;return this.$createElement(i["default"],{props:{dark:this.dark,disabled:n,icon:!0,light:this.light},nativeOn:{click:function(n){n.stopPropagation(),e.$emit("input",e.calculateChange(t))}}},[this.$createElement(s["default"],t<0===!this.$vuetify.rtl?this.prevIcon:this.nextIcon)])},calculateChange:function(t){var e=u(String(this.value).split("-").map(Number),2),n=e[0],i=e[1];return null==i?""+(n+t):Object(a["monthChange"])(String(this.value),t)},genHeader:function(){var t=this,e=!this.disabled&&(this.color||"accent"),n=this.$createElement("div",this.setTextColor(e,{key:String(this.value)}),[this.$createElement("button",{attrs:{type:"button"},on:{click:function(){return t.$emit("toggle")}}},[this.$slots.default||this.formatter(String(this.value))])]),i=this.$createElement("transition",{props:{name:this.isReversing===!this.$vuetify.rtl?"tab-reverse-transition":"tab-transition"}},[n]);return this.$createElement("div",{staticClass:"v-date-picker-header__value",class:{"v-date-picker-header__value--disabled":this.disabled}},[i])}},render:function(){return this.$createElement("div",{staticClass:"v-date-picker-header",class:l({"v-date-picker-header--disabled":this.disabled},this.themeClasses)},[this.genBtn(-1),this.genHeader(),this.genBtn(1)])}})},"./src/components/VDatePicker/VDatePickerMonthTable.ts":
- /*!*************************************************************!*\
- !*** ./src/components/VDatePicker/VDatePickerMonthTable.ts ***!
- \*************************************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ./mixins/date-picker-table */"./src/components/VDatePicker/mixins/date-picker-table.ts"),s=n(/*! ./util */"./src/components/VDatePicker/util/index.ts"),r=n(/*! ../../util/mixins */"./src/util/mixins.ts");e["default"]=Object(r["default"])(i["default"]).extend({name:"v-date-picker-month-table",computed:{formatter:function(){return this.format||Object(s["createNativeLocaleFormatter"])(this.locale,{month:"short",timeZone:"UTC"},{start:5,length:2})}},methods:{calculateTableDate:function(t){return""+(parseInt(this.tableDate,10)+Math.sign(t||1))},genTBody:function(){for(var t=this,e=[],n=Array(3).fill(null),i=12/n.length,r=function(i){var r=n.map((function(e,r){var o=i*n.length+r,a=t.displayedYear+"-"+Object(s["pad"])(o+1);return t.$createElement("td",{key:o},[t.genButton(a,!1,"month",t.formatter)])}));e.push(o.$createElement("tr",{key:i},r))},o=this,a=0;a<i;a++)r(a);return this.$createElement("tbody",e)}},render:function(){return this.genTable("v-date-picker-table v-date-picker-table--month",[this.genTBody()],this.calculateTableDate)}})},"./src/components/VDatePicker/VDatePickerTitle.ts":
- /*!********************************************************!*\
- !*** ./src/components/VDatePicker/VDatePickerTitle.ts ***!
- \********************************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);n(/*! ../../stylus/components/_date-picker-title.styl */"./src/stylus/components/_date-picker-title.styl");var i=n(/*! ../VIcon */"./src/components/VIcon/index.ts"),s=n(/*! ../../mixins/picker-button */"./src/mixins/picker-button.ts"),r=n(/*! ../../util/mixins */"./src/util/mixins.ts");e["default"]=Object(r["default"])(s["default"]).extend({name:"v-date-picker-title",props:{date:{type:String,default:""},disabled:Boolean,readonly:Boolean,selectingYear:Boolean,value:{type:String},year:{type:[Number,String],default:""},yearIcon:{type:String}},data:function(){return{isReversing:!1}},computed:{computedTransition:function(){return this.isReversing?"picker-reverse-transition":"picker-transition"}},watch:{value:function(t,e){this.isReversing=t<e}},methods:{genYearIcon:function(){return this.$createElement(i["default"],{props:{dark:!0}},this.yearIcon)},getYearBtn:function(){return this.genPickerButton("selectingYear",!0,[String(this.year),this.yearIcon?this.genYearIcon():null],!1,"v-date-picker-title__year")},genTitleText:function(){return this.$createElement("transition",{props:{name:this.computedTransition}},[this.$createElement("div",{domProps:{innerHTML:this.date||" "},key:this.value})])},genTitleDate:function(){return this.genPickerButton("selectingYear",!1,[this.genTitleText()],!1,"v-date-picker-title__date")}},render:function(t){return t("div",{staticClass:"v-date-picker-title",class:{"v-date-picker-title--disabled":this.disabled}},[this.getYearBtn(),this.genTitleDate()])}})},"./src/components/VDatePicker/VDatePickerYears.ts":
- /*!********************************************************!*\
- !*** ./src/components/VDatePicker/VDatePickerYears.ts ***!
- \********************************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);n(/*! ../../stylus/components/_date-picker-years.styl */"./src/stylus/components/_date-picker-years.styl");var i=n(/*! ../../mixins/colorable */"./src/mixins/colorable.ts"),s=n(/*! ./util */"./src/components/VDatePicker/util/index.ts"),r=n(/*! ../../util/mixins */"./src/util/mixins.ts");e["default"]=Object(r["default"])(i["default"]).extend({name:"v-date-picker-years",props:{format:Function,locale:{type:String,default:"en-us"},min:[Number,String],max:[Number,String],readonly:Boolean,value:[Number,String]},data:function(){return{defaultColor:"primary"}},computed:{formatter:function(){return this.format||Object(s["createNativeLocaleFormatter"])(this.locale,{year:"numeric",timeZone:"UTC"},{length:4})}},mounted:function(){var t=this;setTimeout((function(){var e=t.$el.getElementsByClassName("active")[0];t.$el.scrollTop=e?e.offsetTop-t.$el.offsetHeight/2+e.offsetHeight/2:t.$el.scrollHeight/2-t.$el.offsetHeight/2}))},methods:{genYearItem:function(t){var e=this,n=this.formatter(""+t),i=parseInt(this.value,10)===t,s=i&&(this.color||"primary");return this.$createElement("li",this.setTextColor(s,{key:t,class:{active:i},on:{click:function(){return e.$emit("input",t)}}}),n)},genYearItems:function(){for(var t=[],e=this.value?parseInt(this.value,10):(new Date).getFullYear(),n=this.max?parseInt(this.max,10):e+100,i=Math.min(n,this.min?parseInt(this.min,10):e-100),s=n;s>=i;s--)t.push(this.genYearItem(s));return t}},render:function(){return this.$createElement("ul",{staticClass:"v-date-picker-years",ref:"years"},this.genYearItems())}})},"./src/components/VDatePicker/index.js":
- /*!*********************************************!*\
- !*** ./src/components/VDatePicker/index.js ***!
- \*********************************************/
- /*! exports provided: VDatePicker, VDatePickerTitle, VDatePickerHeader, VDatePickerDateTable, VDatePickerMonthTable, VDatePickerYears, default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ./VDatePicker */"./src/components/VDatePicker/VDatePicker.ts");n.d(e,"VDatePicker",(function(){return i["default"]}));var s=n(/*! ./VDatePickerTitle */"./src/components/VDatePicker/VDatePickerTitle.ts");n.d(e,"VDatePickerTitle",(function(){return s["default"]}));var r=n(/*! ./VDatePickerHeader */"./src/components/VDatePicker/VDatePickerHeader.ts");n.d(e,"VDatePickerHeader",(function(){return r["default"]}));var o=n(/*! ./VDatePickerDateTable */"./src/components/VDatePicker/VDatePickerDateTable.ts");n.d(e,"VDatePickerDateTable",(function(){return o["default"]}));var a=n(/*! ./VDatePickerMonthTable */"./src/components/VDatePicker/VDatePickerMonthTable.ts");n.d(e,"VDatePickerMonthTable",(function(){return a["default"]}));var c=n(/*! ./VDatePickerYears */"./src/components/VDatePicker/VDatePickerYears.ts");n.d(e,"VDatePickerYears",(function(){return c["default"]})),e["default"]={$_vuetify_subcomponents:{VDatePicker:i["default"],VDatePickerTitle:s["default"],VDatePickerHeader:r["default"],VDatePickerDateTable:o["default"],VDatePickerMonthTable:a["default"],VDatePickerYears:c["default"]}}},"./src/components/VDatePicker/mixins/date-picker-table.ts":
- /*!****************************************************************!*\
- !*** ./src/components/VDatePicker/mixins/date-picker-table.ts ***!
- \****************************************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);n(/*! ../../../stylus/components/_date-picker-table.styl */"./src/stylus/components/_date-picker-table.styl");var i=n(/*! ../../../directives/touch */"./src/directives/touch.ts"),s=n(/*! ../../../mixins/colorable */"./src/mixins/colorable.ts"),r=n(/*! ../../../mixins/themeable */"./src/mixins/themeable.ts"),o=n(/*! ../util/isDateAllowed */"./src/components/VDatePicker/util/isDateAllowed.ts"),a=n(/*! ../../../util/mixins */"./src/util/mixins.ts"),c=function(){return c=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var s in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t},c.apply(this,arguments)};e["default"]=Object(a["default"])(s["default"],r["default"]).extend({directives:{Touch:i["default"]},props:{allowedDates:Function,current:String,disabled:Boolean,format:Function,events:{type:[Array,Function,Object],default:function(){return null}},eventColor:{type:[Array,Function,Object,String],default:function(){return"warning"}},locale:{type:String,default:"en-us"},min:String,max:String,readonly:Boolean,scrollable:Boolean,tableDate:{type:String,required:!0},value:[String,Array]},data:function(){return{isReversing:!1}},computed:{computedTransition:function(){return this.isReversing===!this.$vuetify.rtl?"tab-reverse-transition":"tab-transition"},displayedMonth:function(){return Number(this.tableDate.split("-")[1])-1},displayedYear:function(){return Number(this.tableDate.split("-")[0])}},watch:{tableDate:function(t,e){this.isReversing=t<e}},methods:{genButtonClasses:function(t,e,n,i){return c({"v-btn--active":n,"v-btn--flat":!n,"v-btn--icon":n&&t&&e,"v-btn--floating":e,"v-btn--depressed":!e&&n,"v-btn--disabled":!t||this.disabled&&n,"v-btn--outline":i&&!n},this.themeClasses)},genButtonEvents:function(t,e,n){var i=this;if(!this.disabled)return{click:function(){e&&!i.readonly&&i.$emit("input",t),i.$emit("click:"+n,t)},dblclick:function(){return i.$emit("dblclick:"+n,t)}}},genButton:function(t,e,n,i){var s=Object(o["default"])(t,this.min,this.max,this.allowedDates),r=t===this.value||Array.isArray(this.value)&&-1!==this.value.indexOf(t),a=t===this.current,c=r?this.setBackgroundColor:this.setTextColor,l=(r||a)&&(this.color||"accent");return this.$createElement("button",c(l,{staticClass:"v-btn",class:this.genButtonClasses(s,e,r,a),attrs:{type:"button"},domProps:{disabled:this.disabled||!s},on:this.genButtonEvents(t,s,n)}),[this.$createElement("div",{staticClass:"v-btn__content"},[i(t)]),this.genEvents(t)])},getEventColors:function(t){var e,n=function(t){return Array.isArray(t)?t:[t]},i=[];return e=Array.isArray(this.events)?this.events.includes(t):this.events instanceof Function?this.events(t)||!1:this.events&&this.events[t]||!1,e?(i=!0!==e?n(e):"string"===typeof this.eventColor?[this.eventColor]:"function"===typeof this.eventColor?n(this.eventColor(t)):Array.isArray(this.eventColor)?this.eventColor:n(this.eventColor[t]),i.filter((function(t){return t}))):[]},genEvents:function(t){var e=this,n=this.getEventColors(t);return n.length?this.$createElement("div",{staticClass:"v-date-picker-table__events"},n.map((function(t){return e.$createElement("div",e.setBackgroundColor(t))}))):null},wheel:function(t,e){t.preventDefault(),this.$emit("tableDate",e(t.deltaY))},touch:function(t,e){this.$emit("tableDate",e(t))},genTable:function(t,e,n){var i=this,s=this.$createElement("transition",{props:{name:this.computedTransition}},[this.$createElement("table",{key:this.tableDate},e)]),r={name:"touch",value:{left:function(t){return t.offsetX<-15&&i.touch(1,n)},right:function(t){return t.offsetX>15&&i.touch(-1,n)}}};return this.$createElement("div",{staticClass:t,class:c({"v-date-picker-table--disabled":this.disabled},this.themeClasses),on:!this.disabled&&this.scrollable?{wheel:function(t){return i.wheel(t,n)}}:void 0,directives:[r]},[s])}}})},"./src/components/VDatePicker/util/createNativeLocaleFormatter.ts":
- /*!************************************************************************!*\
- !*** ./src/components/VDatePicker/util/createNativeLocaleFormatter.ts ***!
- \************************************************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ./pad */"./src/components/VDatePicker/util/pad.ts"),s=function(t,e){var n="function"===typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,s,r=n.call(t),o=[];try{while((void 0===e||e-- >0)&&!(i=r.next()).done)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r["return"])&&n.call(r)}finally{if(s)throw s.error}}return o};function r(t,e,n){void 0===n&&(n={start:0,length:0});var r=function(t){var e=s(t.trim().split(" ")[0].split("-"),3),n=e[0],r=e[1],o=e[2];return[Object(i["default"])(n,4),Object(i["default"])(r||1),Object(i["default"])(o||1)].join("-")};try{var o=new Intl.DateTimeFormat(t||void 0,e);return function(t){return o.format(new Date(r(t)+"T00:00:00+00:00"))}}catch(a){return n.start||n.length?function(t){return r(t).substr(n.start||0,n.length)}:void 0}}e["default"]=r},"./src/components/VDatePicker/util/index.ts":
- /*!**************************************************!*\
- !*** ./src/components/VDatePicker/util/index.ts ***!
- \**************************************************/
- /*! exports provided: createNativeLocaleFormatter, monthChange, pad */function(t,e,n){"use strict";n.r(e);var i=n(/*! ./createNativeLocaleFormatter */"./src/components/VDatePicker/util/createNativeLocaleFormatter.ts");n.d(e,"createNativeLocaleFormatter",(function(){return i["default"]}));var s=n(/*! ./monthChange */"./src/components/VDatePicker/util/monthChange.ts");n.d(e,"monthChange",(function(){return s["default"]}));var r=n(/*! ./pad */"./src/components/VDatePicker/util/pad.ts");n.d(e,"pad",(function(){return r["default"]}))},"./src/components/VDatePicker/util/isDateAllowed.ts":
- /*!**********************************************************!*\
- !*** ./src/components/VDatePicker/util/isDateAllowed.ts ***!
- \**********************************************************/
- /*! exports provided: default */function(t,e,n){"use strict";function i(t,e,n,i){return(!i||i(t))&&(!e||t>=e)&&(!n||t<=n)}n.r(e),n.d(e,"default",(function(){return i}))},"./src/components/VDatePicker/util/monthChange.ts":
- /*!********************************************************!*\
- !*** ./src/components/VDatePicker/util/monthChange.ts ***!
- \********************************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ./pad */"./src/components/VDatePicker/util/pad.ts"),s=function(t,e){var n="function"===typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,s,r=n.call(t),o=[];try{while((void 0===e||e-- >0)&&!(i=r.next()).done)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r["return"])&&n.call(r)}finally{if(s)throw s.error}}return o};e["default"]=function(t,e){var n=s(t.split("-").map(Number),2),r=n[0],o=n[1];return o+e===0?r-1+"-12":o+e===13?r+1+"-01":r+"-"+Object(i["default"])(o+e)}},"./src/components/VDatePicker/util/pad.ts":
- /*!************************************************!*\
- !*** ./src/components/VDatePicker/util/pad.ts ***!
- \************************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);var i=function(t,e,n){return e>>=0,t=String(t),n=String(n),t.length>e?String(t):(e-=t.length,e>n.length&&(n+=n.repeat(e/n.length)),n.slice(0,e)+String(t))};e["default"]=function(t,e){return void 0===e&&(e=2),i(t,e,"0")}},"./src/components/VDialog/VDialog.js":
- /*!*******************************************!*\
- !*** ./src/components/VDialog/VDialog.js ***!
- \*******************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);n(/*! ../../stylus/components/_dialogs.styl */"./src/stylus/components/_dialogs.styl");var i=n(/*! ../../mixins/dependent */"./src/mixins/dependent.ts"),s=n(/*! ../../mixins/detachable */"./src/mixins/detachable.js"),r=n(/*! ../../mixins/overlayable */"./src/mixins/overlayable.ts"),o=n(/*! ../../mixins/returnable */"./src/mixins/returnable.ts"),a=n(/*! ../../mixins/stackable */"./src/mixins/stackable.ts"),c=n(/*! ../../mixins/toggleable */"./src/mixins/toggleable.ts"),l=n(/*! ../../directives/click-outside */"./src/directives/click-outside.ts"),u=n(/*! ../../util/helpers */"./src/util/helpers.ts"),h=n(/*! ../../util/ThemeProvider */"./src/util/ThemeProvider.ts"),d=n(/*! ../../util/console */"./src/util/console.ts"),f=function(){return f=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var s in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t},f.apply(this,arguments)};e["default"]={name:"v-dialog",directives:{ClickOutside:l["default"]},mixins:[i["default"],s["default"],r["default"],o["default"],a["default"],c["default"]],props:{disabled:Boolean,persistent:Boolean,fullscreen:Boolean,fullWidth:Boolean,noClickAnimation:Boolean,light:Boolean,dark:Boolean,maxWidth:{type:[String,Number],default:"none"},origin:{type:String,default:"center center"},width:{type:[String,Number],default:"auto"},scrollable:Boolean,transition:{type:[String,Boolean],default:"dialog-transition"}},data:function(){return{animate:!1,animateTimeout:null,stackClass:"v-dialog__content--active",stackMinZIndex:200}},computed:{classes:function(){var t;return t={},t[("v-dialog "+this.contentClass).trim()]=!0,t["v-dialog--active"]=this.isActive,t["v-dialog--persistent"]=this.persistent,t["v-dialog--fullscreen"]=this.fullscreen,t["v-dialog--scrollable"]=this.scrollable,t["v-dialog--animated"]=this.animate,t},contentClasses:function(){return{"v-dialog__content":!0,"v-dialog__content--active":this.isActive}},hasActivator:function(){return Boolean(!!this.$slots.activator||!!this.$scopedSlots.activator)}},watch:{isActive:function(t){t?(this.show(),this.hideScroll()):this.removeOverlay()},fullscreen:function(t){this.isActive&&(t?(this.hideScroll(),this.removeOverlay(!1)):(this.showScroll(),this.genOverlay()))}},beforeMount:function(){var t=this;this.$nextTick((function(){t.isBooted=t.isActive,t.isActive&&t.show()}))},mounted:function(){"v-slot"===Object(u["getSlotType"])(this,"activator",!0)&&Object(d["consoleError"])("v-dialog's activator slot must be bound, try '<template #activator=\"data\"><v-btn v-on=\"data.on>'",this)},methods:{animateClick:function(){var t=this;this.animate=!1,this.$nextTick((function(){t.animate=!0,clearTimeout(t.animateTimeout),t.animateTimeout=setTimeout((function(){return t.animate=!1}),150)}))},closeConditional:function(t){return!(this._isDestroyed||!this.isActive||this.$refs.content.contains(t.target))&&(this.persistent?(this.noClickAnimation||this.overlay!==t.target||this.animateClick(),!1):this.activeZIndex>=this.getMaxZIndex())},hideScroll:function(){this.fullscreen?document.documentElement.classList.add("overflow-y-hidden"):r["default"].options.methods.hideScroll.call(this)},show:function(){!this.fullscreen&&!this.hideOverlay&&this.genOverlay(),this.$refs.content.focus()},onKeydown:function(t){if(t.keyCode===u["keyCodes"].esc&&!this.getOpenDependents().length)if(this.persistent)this.noClickAnimation||this.animateClick();else{this.isActive=!1;var e=this.getActivator();this.$nextTick((function(){return e&&e.focus()}))}this.$emit("keydown",t)},getActivator:function(t){if(this.$refs.activator)return this.$refs.activator.children.length>0?this.$refs.activator.children[0]:this.$refs.activator;if(t&&(this.activatedBy=t.currentTarget||t.target),this.activatedBy)return this.activatedBy;if(this.activatorNode){var e=Array.isArray(this.activatorNode)?this.activatorNode[0]:this.activatorNode,n=e&&e.elm;if(n)return n}return null},genActivator:function(){var t=this;if(!this.hasActivator)return null;var e=this.disabled?{}:{click:function(e){e.stopPropagation(),t.getActivator(e),t.disabled||(t.isActive=!t.isActive)}};if("scoped"===Object(u["getSlotType"])(this,"activator")){var n=this.$scopedSlots.activator({on:e});return this.activatorNode=n,n}return this.$createElement("div",{staticClass:"v-dialog__activator",class:{"v-dialog__activator--disabled":this.disabled},ref:"activator",on:e},this.$slots.activator)}},render:function(t){var e=this,n=[],i={class:this.classes,ref:"dialog",directives:[{name:"click-outside",value:function(){e.isActive=!1},args:{closeConditional:this.closeConditional,include:this.getOpenDependentElements}},{name:"show",value:this.isActive}],on:{click:function(t){t.stopPropagation()}}};this.fullscreen||(i.style={maxWidth:"none"===this.maxWidth?void 0:Object(u["convertToUnit"])(this.maxWidth),width:"auto"===this.width?void 0:Object(u["convertToUnit"])(this.width)}),n.push(this.genActivator());var s=t("div",i,this.showLazyContent(this.$slots.default));return this.transition&&(s=t("transition",{props:{name:this.transition,origin:this.origin}},[s])),n.push(t("div",{class:this.contentClasses,attrs:f({tabIndex:"-1"},this.getScopeIdAttrs()),on:{keydown:this.onKeydown},style:{zIndex:this.activeZIndex},ref:"content"},[this.$createElement(h["default"],{props:{root:!0,light:this.light,dark:this.dark}},[s])])),t("div",{staticClass:"v-dialog__container",style:{display:!this.hasActivator||this.fullWidth?"block":"inline-block"}},n)}}},"./src/components/VDialog/index.js":
- /*!*****************************************!*\
- !*** ./src/components/VDialog/index.js ***!
- \*****************************************/
- /*! exports provided: VDialog, default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ./VDialog */"./src/components/VDialog/VDialog.js");n.d(e,"VDialog",(function(){return i["default"]})),e["default"]=i["default"]},"./src/components/VDivider/VDivider.ts":
- /*!*********************************************!*\
- !*** ./src/components/VDivider/VDivider.ts ***!
- \*********************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);n(/*! ../../stylus/components/_dividers.styl */"./src/stylus/components/_dividers.styl");var i=n(/*! ../../mixins/themeable */"./src/mixins/themeable.ts"),s=function(){return s=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var s in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t},s.apply(this,arguments)};e["default"]=i["default"].extend({name:"v-divider",props:{inset:Boolean,vertical:Boolean},render:function(t){return t("hr",{class:s({"v-divider":!0,"v-divider--inset":this.inset,"v-divider--vertical":this.vertical},this.themeClasses),attrs:this.$attrs,on:this.$listeners})}})},"./src/components/VDivider/index.ts":
- /*!******************************************!*\
- !*** ./src/components/VDivider/index.ts ***!
- \******************************************/
- /*! exports provided: VDivider, default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ./VDivider */"./src/components/VDivider/VDivider.ts");n.d(e,"VDivider",(function(){return i["default"]})),e["default"]=i["default"]},"./src/components/VExpansionPanel/VExpansionPanel.ts":
- /*!***********************************************************!*\
- !*** ./src/components/VExpansionPanel/VExpansionPanel.ts ***!
- \***********************************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);n(/*! ../../stylus/components/_expansion-panel.styl */"./src/stylus/components/_expansion-panel.styl");var i=n(/*! ../../mixins/themeable */"./src/mixins/themeable.ts"),s=n(/*! ../../mixins/registrable */"./src/mixins/registrable.ts"),r=n(/*! ../../util/mixins */"./src/util/mixins.ts"),o=function(){return o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var s in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t},o.apply(this,arguments)};e["default"]=Object(r["default"])(i["default"],Object(s["provide"])("expansionPanel")).extend({name:"v-expansion-panel",provide:function(){return{expansionPanel:this}},props:{disabled:Boolean,readonly:Boolean,expand:Boolean,focusable:Boolean,inset:Boolean,popout:Boolean,value:{type:[Number,Array],default:function(){return null}}},data:function(){return{items:[],open:[]}},computed:{classes:function(){return o({"v-expansion-panel--focusable":this.focusable,"v-expansion-panel--popout":this.popout,"v-expansion-panel--inset":this.inset},this.themeClasses)}},watch:{expand:function(t){var e=-1;if(!t){var n=this.open.reduce((function(t,e){return e?t+1:t}),0),i=Array(this.items.length).fill(!1);1===n&&(e=this.open.indexOf(!0)),e>-1&&(i[e]=!0),this.open=i}this.$emit("input",t?this.open:e>-1?e:null)},value:function(t){this.updateFromValue(t)}},mounted:function(){null!==this.value&&this.updateFromValue(this.value)},methods:{updateFromValue:function(t){if(!Array.isArray(t)||this.expand){var e=Array(this.items.length).fill(!1);"number"===typeof t?e[t]=!0:null!==t&&(e=t),this.updatePanels(e)}},updatePanels:function(t){this.open=t;for(var e=0;e<this.items.length;e++)this.items[e].toggle(t&&t[e])},panelClick:function(t){for(var e=this.expand?this.open.slice():Array(this.items.length).fill(!1),n=0;n<this.items.length;n++)this.items[n]._uid===t&&(e[n]=!this.open[n],!this.expand&&this.$emit("input",e[n]?n:null));this.updatePanels(e),this.expand&&this.$emit("input",e)},register:function(t){var e=this.items.push(t)-1;null!==this.value&&this.updateFromValue(this.value),t.toggle(!!this.open[e])},unregister:function(t){var e=this.items.findIndex((function(e){return e._uid===t._uid}));this.items.splice(e,1),this.open.splice(e,1)}},render:function(t){return t("ul",{staticClass:"v-expansion-panel",class:this.classes},this.$slots.default)}})},"./src/components/VExpansionPanel/VExpansionPanelContent.ts":
- /*!******************************************************************!*\
- !*** ./src/components/VExpansionPanel/VExpansionPanelContent.ts ***!
- \******************************************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ../transitions */"./src/components/transitions/index.js"),s=n(/*! ../../mixins/bootable */"./src/mixins/bootable.ts"),r=n(/*! ../../mixins/toggleable */"./src/mixins/toggleable.ts"),o=n(/*! ../../mixins/rippleable */"./src/mixins/rippleable.ts"),a=n(/*! ../../mixins/registrable */"./src/mixins/registrable.ts"),c=n(/*! ../VIcon */"./src/components/VIcon/index.ts"),l=n(/*! ../../util/mixins */"./src/util/mixins.ts"),u=n(/*! ../../util/console */"./src/util/console.ts"),h=function(t,e){var n="function"===typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,s,r=n.call(t),o=[];try{while((void 0===e||e-- >0)&&!(i=r.next()).done)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r["return"])&&n.call(r)}finally{if(s)throw s.error}}return o},d=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(h(arguments[e]));return t};e["default"]=Object(l["default"])(s["default"],r["default"],o["default"],Object(a["inject"])("expansionPanel","v-expansion-panel-content","v-expansion-panel")).extend({name:"v-expansion-panel-content",props:{disabled:Boolean,readonly:Boolean,expandIcon:{type:String,default:"$vuetify.icons.expand"},hideActions:Boolean,ripple:{type:[Boolean,Object],default:!1}},data:function(){return{height:"auto"}},computed:{containerClasses:function(){return{"v-expansion-panel__container--active":this.isActive,"v-expansion-panel__container--disabled":this.isDisabled}},isDisabled:function(){return this.expansionPanel.disabled||this.disabled},isReadonly:function(){return this.expansionPanel.readonly||this.readonly}},beforeMount:function(){this.expansionPanel.register(this),"undefined"!==typeof this.value&&Object(u["consoleWarn"])("v-model has been deprecated",this)},beforeDestroy:function(){this.expansionPanel.unregister(this)},methods:{onKeydown:function(t){13===t.keyCode&&this.$el===document.activeElement&&this.expansionPanel.panelClick(this._uid)},onHeaderClick:function(){this.isReadonly||this.expansionPanel.panelClick(this._uid)},genBody:function(){return this.$createElement("div",{ref:"body",class:"v-expansion-panel__body",directives:[{name:"show",value:this.isActive}]},this.showLazyContent(this.$slots.default))},genHeader:function(){var t=d(this.$slots.header||[]);return this.hideActions||t.push(this.genIcon()),this.$createElement("div",{staticClass:"v-expansion-panel__header",directives:[{name:"ripple",value:this.ripple}],on:{click:this.onHeaderClick}},t)},genIcon:function(){var t=this.$slots.actions||[this.$createElement(c["default"],this.expandIcon)];return this.$createElement("transition",{attrs:{name:"fade-transition"}},[this.$createElement("div",{staticClass:"v-expansion-panel__header__icon",directives:[{name:"show",value:!this.isDisabled}]},t)])},toggle:function(t){var e=this;t&&(this.isBooted=!0),this.$nextTick((function(){return e.isActive=t}))}},render:function(t){return t("li",{staticClass:"v-expansion-panel__container",class:this.containerClasses,attrs:{tabindex:this.isReadonly||this.isDisabled?null:0,"aria-expanded":Boolean(this.isActive)},on:{keydown:this.onKeydown}},[this.$slots.header&&this.genHeader(),t(i["VExpandTransition"],[this.genBody()])])}})},"./src/components/VExpansionPanel/index.ts":
- /*!*************************************************!*\
- !*** ./src/components/VExpansionPanel/index.ts ***!
- \*************************************************/
- /*! exports provided: VExpansionPanel, VExpansionPanelContent, default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ./VExpansionPanel */"./src/components/VExpansionPanel/VExpansionPanel.ts");n.d(e,"VExpansionPanel",(function(){return i["default"]}));var s=n(/*! ./VExpansionPanelContent */"./src/components/VExpansionPanel/VExpansionPanelContent.ts");n.d(e,"VExpansionPanelContent",(function(){return s["default"]})),e["default"]={$_vuetify_subcomponents:{VExpansionPanel:i["default"],VExpansionPanelContent:s["default"]}}},"./src/components/VFooter/VFooter.js":
- /*!*******************************************!*\
- !*** ./src/components/VFooter/VFooter.js ***!
- \*******************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);n(/*! ../../stylus/components/_footer.styl */"./src/stylus/components/_footer.styl");var i=n(/*! ../../mixins/applicationable */"./src/mixins/applicationable.ts"),s=n(/*! ../../mixins/colorable */"./src/mixins/colorable.ts"),r=n(/*! ../../mixins/themeable */"./src/mixins/themeable.ts"),o=function(){return o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var s in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t},o.apply(this,arguments)};e["default"]={name:"v-footer",mixins:[Object(i["default"])(null,["height","inset"]),s["default"],r["default"]],props:{height:{default:32,type:[Number,String]},inset:Boolean},computed:{applicationProperty:function(){return this.inset?"insetFooter":"footer"},computedMarginBottom:function(){if(this.app)return this.$vuetify.application.bottom},computedPaddingLeft:function(){return this.app&&this.inset?this.$vuetify.application.left:0},computedPaddingRight:function(){return this.app&&this.inset?this.$vuetify.application.right:0},styles:function(){var t={height:isNaN(this.height)?this.height:this.height+"px"};return this.computedPaddingLeft&&(t.paddingLeft=this.computedPaddingLeft+"px"),this.computedPaddingRight&&(t.paddingRight=this.computedPaddingRight+"px"),this.computedMarginBottom&&(t.marginBottom=this.computedMarginBottom+"px"),t}},methods:{updateApplication:function(){var t=parseInt(this.height);return isNaN(t)?this.$el?this.$el.clientHeight:0:t}},render:function(t){var e=this.setBackgroundColor(this.color,{staticClass:"v-footer",class:o({"v-footer--absolute":this.absolute,"v-footer--fixed":!this.absolute&&(this.app||this.fixed),"v-footer--inset":this.inset},this.themeClasses),style:this.styles,ref:"content"});return t("footer",e,this.$slots.default)}}},"./src/components/VFooter/index.js":
- /*!*****************************************!*\
- !*** ./src/components/VFooter/index.js ***!
- \*****************************************/
- /*! exports provided: VFooter, default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ./VFooter */"./src/components/VFooter/VFooter.js");n.d(e,"VFooter",(function(){return i["default"]})),e["default"]=i["default"]},"./src/components/VForm/VForm.js":
- /*!***************************************!*\
- !*** ./src/components/VForm/VForm.js ***!
- \***************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);n(/*! ../../stylus/components/_forms.styl */"./src/stylus/components/_forms.styl");var i=n(/*! ../../mixins/registrable */"./src/mixins/registrable.ts");e["default"]={name:"v-form",mixins:[Object(i["provide"])("form")],inheritAttrs:!1,props:{value:Boolean,lazyValidation:Boolean},data:function(){return{inputs:[],watchers:[],errorBag:{}}},watch:{errorBag:{handler:function(){var t=Object.values(this.errorBag).includes(!0);this.$emit("input",!t)},deep:!0,immediate:!0}},methods:{watchInput:function(t){var e=this,n=function(t){return t.$watch("hasError",(function(n){e.$set(e.errorBag,t._uid,n)}),{immediate:!0})},i={_uid:t._uid,valid:void 0,shouldValidate:void 0};return this.lazyValidation?i.shouldValidate=t.$watch("shouldValidate",(function(s){s&&(e.errorBag.hasOwnProperty(t._uid)||(i.valid=n(t)))})):i.valid=n(t),i},validate:function(){var t=this.inputs.filter((function(t){return!t.validate(!0)})).length;return!t},reset:function(){for(var t=this,e=this.inputs.length;e--;)this.inputs[e].reset();this.lazyValidation&&setTimeout((function(){t.errorBag={}}),0)},resetValidation:function(){for(var t=this,e=this.inputs.length;e--;)this.inputs[e].resetValidation();this.lazyValidation&&setTimeout((function(){t.errorBag={}}),0)},register:function(t){var e=this.watchInput(t);this.inputs.push(t),this.watchers.push(e)},unregister:function(t){var e=this.inputs.find((function(e){return e._uid===t._uid}));if(e){var n=this.watchers.find((function(t){return t._uid===e._uid}));n.valid&&n.valid(),n.shouldValidate&&n.shouldValidate(),this.watchers=this.watchers.filter((function(t){return t._uid!==e._uid})),this.inputs=this.inputs.filter((function(t){return t._uid!==e._uid})),this.$delete(this.errorBag,e._uid)}}},render:function(t){var e=this;return t("form",{staticClass:"v-form",attrs:Object.assign({novalidate:!0},this.$attrs),on:{submit:function(t){return e.$emit("submit",t)}}},this.$slots.default)}}},"./src/components/VForm/index.js":
- /*!***************************************!*\
- !*** ./src/components/VForm/index.js ***!
- \***************************************/
- /*! exports provided: VForm, default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ./VForm */"./src/components/VForm/VForm.js");n.d(e,"VForm",(function(){return i["default"]})),e["default"]=i["default"]},"./src/components/VGrid/VContainer.js":
- /*!********************************************!*\
- !*** ./src/components/VGrid/VContainer.js ***!
- \********************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);n(/*! ../../stylus/components/_grid.styl */"./src/stylus/components/_grid.styl");var i=n(/*! ./grid */"./src/components/VGrid/grid.js");e["default"]=Object(i["default"])("container")},"./src/components/VGrid/VContent.js":
- /*!******************************************!*\
- !*** ./src/components/VGrid/VContent.js ***!
- \******************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);n(/*! ../../stylus/components/_content.styl */"./src/stylus/components/_content.styl");var i=n(/*! ../../mixins/ssr-bootable */"./src/mixins/ssr-bootable.ts");e["default"]={name:"v-content",mixins:[i["default"]],props:{tag:{type:String,default:"main"}},computed:{styles:function(){var t=this.$vuetify.application,e=t.bar,n=t.top,i=t.right,s=t.footer,r=t.insetFooter,o=t.bottom,a=t.left;return{paddingTop:n+e+"px",paddingRight:i+"px",paddingBottom:s+r+o+"px",paddingLeft:a+"px"}}},render:function(t){var e={staticClass:"v-content",style:this.styles,ref:"content"};return t(this.tag,e,[t("div",{staticClass:"v-content__wrap"},this.$slots.default)])}}},"./src/components/VGrid/VFlex.js":
- /*!***************************************!*\
- !*** ./src/components/VGrid/VFlex.js ***!
- \***************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);n(/*! ../../stylus/components/_grid.styl */"./src/stylus/components/_grid.styl");var i=n(/*! ./grid */"./src/components/VGrid/grid.js");e["default"]=Object(i["default"])("flex")},"./src/components/VGrid/VLayout.js":
- /*!*****************************************!*\
- !*** ./src/components/VGrid/VLayout.js ***!
- \*****************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);n(/*! ../../stylus/components/_grid.styl */"./src/stylus/components/_grid.styl");var i=n(/*! ./grid */"./src/components/VGrid/grid.js");e["default"]=Object(i["default"])("layout")},"./src/components/VGrid/grid.js":
- /*!**************************************!*\
- !*** ./src/components/VGrid/grid.js ***!
- \**************************************/
- /*! exports provided: default */function(t,e,n){"use strict";function i(t){return{name:"v-"+t,functional:!0,props:{id:String,tag:{type:String,default:"div"}},render:function(e,n){var i=n.props,s=n.data,r=n.children;s.staticClass=(t+" "+(s.staticClass||"")).trim();var o=s.attrs;if(o){s.attrs={};var a=Object.keys(o).filter((function(t){if("slot"===t)return!1;var e=o[t];return t.startsWith("data-")?(s.attrs[t]=e,!1):e||"string"===typeof e}));a.length&&(s.staticClass+=" "+a.join(" "))}return i.id&&(s.domProps=s.domProps||{},s.domProps.id=i.id),e(i.tag,s,r)}}}n.r(e),n.d(e,"default",(function(){return i}))},"./src/components/VGrid/index.js":
- /*!***************************************!*\
- !*** ./src/components/VGrid/index.js ***!
- \***************************************/
- /*! exports provided: VContainer, VContent, VFlex, VLayout, VSpacer, default */function(t,e,n){"use strict";n.r(e),n.d(e,"VSpacer",(function(){return c}));var i=n(/*! ../../util/helpers */"./src/util/helpers.ts"),s=n(/*! ./VContainer */"./src/components/VGrid/VContainer.js");n.d(e,"VContainer",(function(){return s["default"]}));var r=n(/*! ./VContent */"./src/components/VGrid/VContent.js");n.d(e,"VContent",(function(){return r["default"]}));var o=n(/*! ./VFlex */"./src/components/VGrid/VFlex.js");n.d(e,"VFlex",(function(){return o["default"]}));var a=n(/*! ./VLayout */"./src/components/VGrid/VLayout.js");n.d(e,"VLayout",(function(){return a["default"]}));var c=Object(i["createSimpleFunctional"])("spacer","div","v-spacer");e["default"]={$_vuetify_subcomponents:{VContainer:s["default"],VContent:r["default"],VFlex:o["default"],VLayout:a["default"],VSpacer:c}}},"./src/components/VHover/VHover.ts":
- /*!*****************************************!*\
- !*** ./src/components/VHover/VHover.ts ***!
- \*****************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ../../mixins/delayable */"./src/mixins/delayable.ts"),s=n(/*! ../../mixins/toggleable */"./src/mixins/toggleable.ts"),r=n(/*! ../../util/mixins */"./src/util/mixins.ts"),o=n(/*! ../../util/console */"./src/util/console.ts");e["default"]=Object(r["default"])(i["default"],s["default"]).extend({name:"v-hover",props:{disabled:{type:Boolean,default:!1},value:{type:Boolean,default:void 0}},methods:{onMouseEnter:function(){this.runDelay("open")},onMouseLeave:function(){this.runDelay("close")}},render:function(){return this.$scopedSlots.default||void 0!==this.value?(this.$scopedSlots.default?t=this.$scopedSlots.default({hover:this.isActive}):this.$slots.default&&1===this.$slots.default.length&&(t=this.$slots.default[0]),Array.isArray(t)&&1===t.length&&(t=t[0]),t&&!Array.isArray(t)&&t.tag?(this.disabled||(t.data=t.data||{},this._g(t.data,{mouseenter:this.onMouseEnter,mouseleave:this.onMouseLeave})),t):(Object(o["consoleWarn"])("v-hover should only contain a single element",this),t)):(Object(o["consoleWarn"])("v-hover is missing a default scopedSlot or bound value",this),null);var t}})},"./src/components/VHover/index.ts":
- /*!****************************************!*\
- !*** ./src/components/VHover/index.ts ***!
- \****************************************/
- /*! exports provided: VHover, default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ./VHover */"./src/components/VHover/VHover.ts");n.d(e,"VHover",(function(){return i["default"]})),e["default"]=i["default"]},"./src/components/VIcon/VIcon.ts":
- /*!***************************************!*\
- !*** ./src/components/VIcon/VIcon.ts ***!
- \***************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);n(/*! ../../stylus/components/_icons.styl */"./src/stylus/components/_icons.styl");var i,s=n(/*! ../../mixins/colorable */"./src/mixins/colorable.ts"),r=n(/*! ../../mixins/sizeable */"./src/mixins/sizeable.ts"),o=n(/*! ../../mixins/themeable */"./src/mixins/themeable.ts"),a=n(/*! ../../util/helpers */"./src/util/helpers.ts"),c=n(/*! vue */"vue"),l=n.n(c),u=n(/*! ../../util/mixins */"./src/util/mixins.ts"),h=function(){return h=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var s in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t},h.apply(this,arguments)};function d(t){return["fas","far","fal","fab"].some((function(e){return t.includes(e)}))}(function(t){t["small"]="16px",t["default"]="24px",t["medium"]="28px",t["large"]="36px",t["xLarge"]="40px"})(i||(i={}));var f=Object(u["default"])(s["default"],r["default"],o["default"]).extend({name:"v-icon",props:{disabled:Boolean,left:Boolean,right:Boolean},methods:{getIcon:function(){var t="";return this.$slots.default&&(t=this.$slots.default[0].text.trim()),Object(a["remapInternalIcon"])(this,t)},getSize:function(){var t={small:this.small,medium:this.medium,large:this.large,xLarge:this.xLarge},e=Object(a["keys"])(t).find((function(e){return t[e]}));return e&&i[e]||Object(a["convertToUnit"])(this.size)},getDefaultData:function(){var t={staticClass:"v-icon",class:{"v-icon--disabled":this.disabled,"v-icon--left":this.left,"v-icon--link":this.$listeners.click||this.$listeners["!click"],"v-icon--right":this.right},attrs:h({"aria-hidden":!0},this.$attrs),on:this.$listeners};return t},applyColors:function(t){t.class=h({},t.class,this.themeClasses),this.setTextColor(this.color,t)},renderFontIcon:function(t,e){var n=[],i=this.getDefaultData(),s="material-icons",r=t.indexOf("-"),o=r<=-1;o?n.push(t):(s=t.slice(0,r),d(s)&&(s="")),i.class[s]=!0,i.class[t]=!o;var a=this.getSize();return a&&(i.style={fontSize:a}),this.applyColors(i),e("i",i,n)},renderSvgIcon:function(t,e){var n=this.getDefaultData();n.class["v-icon--is-component"]=!0;var i=this.getSize();i&&(n.style={fontSize:i,height:i}),this.applyColors(n);var s=t.component;return n.props=t.props,n.nativeOn=n.on,e(s,n)}},render:function(t){var e=this.getIcon();return"string"===typeof e?this.renderFontIcon(e,t):this.renderSvgIcon(e,t)}});e["default"]=l.a.extend({name:"v-icon",$_wrapperFor:f,functional:!0,render:function(t,e){var n=e.data,i=e.children,s="";return n.domProps&&(s=n.domProps.textContent||n.domProps.innerHTML||s,delete n.domProps.textContent,delete n.domProps.innerHTML),t(f,n,s?[s]:i)}})},"./src/components/VIcon/index.ts":
- /*!***************************************!*\
- !*** ./src/components/VIcon/index.ts ***!
- \***************************************/
- /*! exports provided: VIcon, default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ./VIcon */"./src/components/VIcon/VIcon.ts");n.d(e,"VIcon",(function(){return i["default"]})),e["default"]=i["default"]},"./src/components/VImg/VImg.ts":
- /*!*************************************!*\
- !*** ./src/components/VImg/VImg.ts ***!
- \*************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);n(/*! ../../stylus/components/_images.styl */"./src/stylus/components/_images.styl");var i=n(/*! ../VResponsive */"./src/components/VResponsive/index.ts"),s=n(/*! ../../util/console */"./src/util/console.ts");e["default"]=i["default"].extend({name:"v-img",props:{alt:String,contain:Boolean,src:{type:[String,Object],default:""},gradient:String,lazySrc:String,srcset:String,sizes:String,position:{type:String,default:"center center"},transition:{type:[Boolean,String],default:"fade-transition"}},data:function(){return{currentSrc:"",image:null,isLoading:!0,calculatedAspectRatio:void 0}},computed:{computedAspectRatio:function(){return this.normalisedSrc.aspect},normalisedSrc:function(){return"string"===typeof this.src?{src:this.src,srcset:this.srcset,lazySrc:this.lazySrc,aspect:Number(this.aspectRatio||this.calculatedAspectRatio)}:{src:this.src.src,srcset:this.srcset||this.src.srcset,lazySrc:this.lazySrc||this.src.lazySrc,aspect:Number(this.aspectRatio||this.src.aspect||this.calculatedAspectRatio)}},__cachedImage:function(){if(!this.normalisedSrc.src&&!this.normalisedSrc.lazySrc)return[];var t=[],e=this.isLoading?this.normalisedSrc.lazySrc:this.currentSrc;this.gradient&&t.push("linear-gradient("+this.gradient+")"),e&&t.push('url("'+e+'")');var n=this.$createElement("div",{staticClass:"v-image__image",class:{"v-image__image--preload":this.isLoading,"v-image__image--contain":this.contain,"v-image__image--cover":!this.contain},style:{backgroundImage:t.join(", "),backgroundPosition:this.position},key:+this.isLoading});return this.transition?this.$createElement("transition",{attrs:{name:this.transition,mode:"in-out"}},[n]):n}},watch:{src:function(){this.isLoading?this.loadImage():this.init()},"$vuetify.breakpoint.width":"getSrc"},mounted:function(){this.init()},methods:{init:function(){if(this.normalisedSrc.lazySrc){var t=new Image;t.src=this.normalisedSrc.lazySrc,this.pollForSize(t,null)}this.normalisedSrc.src&&this.loadImage()},onLoad:function(){this.getSrc(),this.isLoading=!1,this.$emit("load",this.src)},onError:function(){Object(s["consoleError"])("Image load failed\n\nsrc: "+this.normalisedSrc.src,this),this.$emit("error",this.src)},getSrc:function(){this.image&&(this.currentSrc=this.image.currentSrc||this.image.src)},loadImage:function(){var t=this,e=new Image;this.image=e,e.onload=function(){e.decode?e.decode().catch((function(e){Object(s["consoleWarn"])("Failed to decode image, trying to render anyway\n\nsrc: "+t.normalisedSrc.src+(e.message?"\nOriginal error: "+e.message:""),t)})).then(t.onLoad):t.onLoad()},e.onerror=this.onError,e.src=this.normalisedSrc.src,this.sizes&&(e.sizes=this.sizes),this.normalisedSrc.srcset&&(e.srcset=this.normalisedSrc.srcset),this.aspectRatio||this.pollForSize(e),this.getSrc()},pollForSize:function(t,e){var n=this;void 0===e&&(e=100);var i=function i(){var s=t.naturalHeight,r=t.naturalWidth;s||r?n.calculatedAspectRatio=r/s:null!=e&&setTimeout(i,e)};i()},__genPlaceholder:function(){if(this.$slots.placeholder){var t=this.isLoading?[this.$createElement("div",{staticClass:"v-image__placeholder"},this.$slots.placeholder)]:[];return this.transition?this.$createElement("transition",{attrs:{name:this.transition}},t):t[0]}}},render:function(t){var e=i["default"].options.render.call(this,t);return e.data.staticClass+=" v-image",e.data.attrs={role:this.alt?"img":void 0,"aria-label":this.alt},e.children=[this.__cachedSizer,this.__cachedImage,this.__genPlaceholder(),this.genContent()],t(e.tag,e.data,e.children)}})},"./src/components/VImg/index.ts":
- /*!**************************************!*\
- !*** ./src/components/VImg/index.ts ***!
- \**************************************/
- /*! exports provided: VImg, default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ./VImg */"./src/components/VImg/VImg.ts");n.d(e,"VImg",(function(){return i["default"]})),e["default"]=i["default"]},"./src/components/VInput/VInput.ts":
- /*!*****************************************!*\
- !*** ./src/components/VInput/VInput.ts ***!
- \*****************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);n(/*! ../../stylus/components/_inputs.styl */"./src/stylus/components/_inputs.styl");var i=n(/*! ../VIcon */"./src/components/VIcon/index.ts"),s=n(/*! ../VLabel */"./src/components/VLabel/index.ts"),r=n(/*! ../VMessages */"./src/components/VMessages/index.ts"),o=n(/*! ../../mixins/colorable */"./src/mixins/colorable.ts"),a=n(/*! ../../mixins/themeable */"./src/mixins/themeable.ts"),c=n(/*! ../../mixins/validatable */"./src/mixins/validatable.ts"),l=n(/*! ../../util/helpers */"./src/util/helpers.ts"),u=n(/*! ../../util/console */"./src/util/console.ts"),h=n(/*! ../../util/mixins */"./src/util/mixins.ts"),d=function(){return d=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var s in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t},d.apply(this,arguments)};e["default"]=Object(h["default"])(o["default"],a["default"],c["default"]).extend({name:"v-input",props:{appendIcon:String,appendIconCb:Function,backgroundColor:{type:String,default:""},height:[Number,String],hideDetails:Boolean,hint:String,label:String,loading:Boolean,persistentHint:Boolean,prependIcon:String,prependIconCb:Function,value:{required:!1}},data:function(){return{attrsInput:{},lazyValue:this.value,hasMouseDown:!1}},computed:{classes:function(){return{}},classesInput:function(){return d({},this.classes,{"v-input--has-state":this.hasState,"v-input--hide-details":this.hideDetails,"v-input--is-label-active":this.isLabelActive,"v-input--is-dirty":this.isDirty,"v-input--is-disabled":this.disabled,"v-input--is-focused":this.isFocused,"v-input--is-loading":!1!==this.loading&&void 0!==this.loading,"v-input--is-readonly":this.readonly},this.themeClasses)},directivesInput:function(){return[]},hasHint:function(){return!this.hasMessages&&this.hint&&(this.persistentHint||this.isFocused)},hasLabel:function(){return Boolean(this.$slots.label||this.label)},internalValue:{get:function(){return this.lazyValue},set:function(t){this.lazyValue=t,this.$emit(this.$_modelEvent,t)}},isDirty:function(){return!!this.lazyValue},isDisabled:function(){return Boolean(this.disabled||this.readonly)},isLabelActive:function(){return this.isDirty}},watch:{value:function(t){this.lazyValue=t}},beforeCreate:function(){this.$_modelEvent=this.$options.model&&this.$options.model.event||"input"},methods:{genContent:function(){return[this.genPrependSlot(),this.genControl(),this.genAppendSlot()]},genControl:function(){return this.$createElement("div",{staticClass:"v-input__control"},[this.genInputSlot(),this.genMessages()])},genDefaultSlot:function(){return[this.genLabel(),this.$slots.default]},genIcon:function(t,e,n){var s=this;void 0===n&&(n=!0);var r=this[t+"Icon"],o="click:"+Object(l["kebabCase"])(t);e=e||this[t+"IconCb"],n&&t&&e&&Object(u["deprecate"])(":"+t+"-icon-cb","@"+o,this);var a={props:{color:this.validationState,dark:this.dark,disabled:this.disabled,light:this.light},on:this.$listeners[o]||e?{click:function(t){t.preventDefault(),t.stopPropagation(),s.$emit(o,t),e&&e(t)},mouseup:function(t){t.preventDefault(),t.stopPropagation()}}:void 0};return this.$createElement("div",{staticClass:"v-input__icon v-input__icon--"+Object(l["kebabCase"])(t),key:""+t+r},[this.$createElement(i["default"],a,r)])},genInputSlot:function(){return this.$createElement("div",this.setBackgroundColor(this.backgroundColor,{staticClass:"v-input__slot",style:{height:Object(l["convertToUnit"])(this.height)},directives:this.directivesInput,on:{click:this.onClick,mousedown:this.onMouseDown,mouseup:this.onMouseUp},ref:"input-slot"}),[this.genDefaultSlot()])},genLabel:function(){return this.hasLabel?this.$createElement(s["default"],{props:{color:this.validationState,dark:this.dark,focused:this.hasState,for:this.$attrs.id,light:this.light}},this.$slots.label||this.label):null},genMessages:function(){var t=this;if(this.hideDetails)return null;var e=this.hasHint?[this.hint]:this.validations;return this.$createElement(r["default"],{props:{color:this.hasHint?"":this.validationState,dark:this.dark,light:this.light,value:this.hasMessages||this.hasHint?e:[]},scopedSlots:{default:this.$scopedSlots.message?function(e){return t.$scopedSlots.message(e)}:void 0}})},genSlot:function(t,e,n){if(!n.length)return null;var i=t+"-"+e;return this.$createElement("div",{staticClass:"v-input__"+i,ref:i},n)},genPrependSlot:function(){var t=[];return this.$slots.prepend?t.push(this.$slots.prepend):this.prependIcon&&t.push(this.genIcon("prepend")),this.genSlot("prepend","outer",t)},genAppendSlot:function(){var t=[];return this.$slots.append?t.push(this.$slots.append):this.appendIcon&&t.push(this.genIcon("append")),this.genSlot("append","outer",t)},onClick:function(t){this.$emit("click",t)},onMouseDown:function(t){this.hasMouseDown=!0,this.$emit("mousedown",t)},onMouseUp:function(t){this.hasMouseDown=!1,this.$emit("mouseup",t)}},render:function(t){return t("div",this.setTextColor(this.validationState,{staticClass:"v-input",attrs:this.attrsInput,class:this.classesInput}),this.genContent())}})},"./src/components/VInput/index.ts":
- /*!****************************************!*\
- !*** ./src/components/VInput/index.ts ***!
- \****************************************/
- /*! exports provided: VInput, default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ./VInput */"./src/components/VInput/VInput.ts");n.d(e,"VInput",(function(){return i["default"]})),e["default"]=i["default"]},"./src/components/VItemGroup/VItem.ts":
- /*!********************************************!*\
- !*** ./src/components/VItemGroup/VItem.ts ***!
- \********************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ../../mixins/groupable */"./src/mixins/groupable.ts"),s=n(/*! ../../util/mixins */"./src/util/mixins.ts"),r=n(/*! ../../util/console */"./src/util/console.ts");e["default"]=Object(s["default"])(Object(i["factory"])("itemGroup","v-item","v-item-group")).extend({name:"v-item",props:{value:{required:!1}},render:function(){var t,e;return this.$scopedSlots.default?(this.$scopedSlots.default&&(e=this.$scopedSlots.default({active:this.isActive,toggle:this.toggle})),Array.isArray(e)&&1===e.length&&(e=e[0]),e&&!Array.isArray(e)&&e.tag?(e.data=this._b(e.data||{},e.tag,{class:(t={},t[this.activeClass]=this.isActive,t)}),e):(Object(r["consoleWarn"])("v-item should only contain a single element",this),e)):(Object(r["consoleWarn"])("v-item is missing a default scopedSlot",this),null)}})},"./src/components/VItemGroup/VItemGroup.ts":
- /*!*************************************************!*\
- !*** ./src/components/VItemGroup/VItemGroup.ts ***!
- \*************************************************/
- /*! exports provided: BaseItemGroup, default */function(t,e,n){"use strict";n.r(e),n.d(e,"BaseItemGroup",(function(){return c}));n(/*! ../../stylus/components/_item-group.styl */"./src/stylus/components/_item-group.styl");var i=n(/*! ../../mixins/proxyable */"./src/mixins/proxyable.ts"),s=n(/*! ../../mixins/themeable */"./src/mixins/themeable.ts"),r=n(/*! ../../util/mixins */"./src/util/mixins.ts"),o=n(/*! ../../util/console */"./src/util/console.ts"),a=function(){return a=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var s in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t},a.apply(this,arguments)},c=Object(r["default"])(i["default"],s["default"]).extend({name:"base-item-group",props:{activeClass:{type:String,default:"v-item--active"},mandatory:Boolean,max:{type:[Number,String],default:null},multiple:Boolean},data:function(){return{internalLazyValue:void 0!==this.value?this.value:this.multiple?[]:void 0,items:[]}},computed:{classes:function(){return a({},this.themeClasses)},selectedItems:function(){var t=this;return this.items.filter((function(e,n){return t.toggleMethod(t.getValue(e,n))}))},selectedValues:function(){return Array.isArray(this.internalValue)?this.internalValue:[this.internalValue]},toggleMethod:function(){var t=this;if(!this.multiple)return function(e){return t.internalValue===e};var e=this.internalValue;return Array.isArray(e)?function(t){return e.includes(t)}:function(){return!1}}},watch:{internalValue:function(){this.$nextTick(this.updateItemsState)}},created:function(){this.multiple&&!Array.isArray(this.internalValue)&&Object(o["consoleWarn"])("Model must be bound to an array if the multiple property is true.",this)},methods:{getValue:function(t,e){return null==t.value||""===t.value?e:t.value},onClick:function(t,e){this.updateInternalValue(this.getValue(t,e))},register:function(t){var e=this,n=this.items.push(t)-1;t.$on("change",(function(){return e.onClick(t,n)})),this.mandatory&&null==this.internalLazyValue&&this.updateMandatory(),this.updateItem(t,n)},unregister:function(t){if(!this._isDestroyed){var e=this.items.indexOf(t),n=this.getValue(t,e);this.items.splice(e,1);var i=this.selectedValues.indexOf(n);if(!(i<0)){if(!this.mandatory)return this.updateInternalValue(n);this.multiple&&Array.isArray(this.internalValue)?this.internalValue=this.internalValue.filter((function(t){return t!==n})):this.internalValue=void 0,this.selectedItems.length||this.updateMandatory(!0)}}},updateItem:function(t,e){var n=this.getValue(t,e);t.isActive=this.toggleMethod(n)},updateItemsState:function(){if(this.mandatory&&!this.selectedItems.length)return this.updateMandatory();this.items.forEach(this.updateItem)},updateInternalValue:function(t){this.multiple?this.updateMultiple(t):this.updateSingle(t)},updateMandatory:function(t){if(this.items.length){var e=t?this.items.length-1:0;this.updateInternalValue(this.getValue(this.items[e],e))}},updateMultiple:function(t){var e=Array.isArray(this.internalValue)?this.internalValue:[],n=e.slice(),i=n.findIndex((function(e){return e===t}));this.mandatory&&i>-1&&n.length-1<1||null!=this.max&&i<0&&n.length+1>this.max||(i>-1?n.splice(i,1):n.push(t),this.internalValue=n)},updateSingle:function(t){var e=t===this.internalValue;this.mandatory&&e||(this.internalValue=e?void 0:t)}},render:function(t){return t("div",{staticClass:"v-item-group",class:this.classes},this.$slots.default)}});e["default"]=c.extend({name:"v-item-group",provide:function(){return{itemGroup:this}}})},"./src/components/VItemGroup/index.ts":
- /*!********************************************!*\
- !*** ./src/components/VItemGroup/index.ts ***!
- \********************************************/
- /*! exports provided: VItem, VItemGroup, default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ./VItem */"./src/components/VItemGroup/VItem.ts");n.d(e,"VItem",(function(){return i["default"]}));var s=n(/*! ./VItemGroup */"./src/components/VItemGroup/VItemGroup.ts");n.d(e,"VItemGroup",(function(){return s["default"]})),e["default"]={$_vuetify_subcomponents:{VItem:i["default"],VItemGroup:s["default"]}}},"./src/components/VJumbotron/VJumbotron.js":
- /*!*************************************************!*\
- !*** ./src/components/VJumbotron/VJumbotron.js ***!
- \*************************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);n(/*! ../../stylus/components/_jumbotrons.styl */"./src/stylus/components/_jumbotrons.styl");var i=n(/*! ../../mixins/colorable */"./src/mixins/colorable.ts"),s=n(/*! ../../mixins/routable */"./src/mixins/routable.ts"),r=n(/*! ../../mixins/themeable */"./src/mixins/themeable.ts"),o=n(/*! ../../util/console */"./src/util/console.ts");e["default"]={name:"v-jumbotron",mixins:[i["default"],s["default"],r["default"]],props:{gradient:String,height:{type:[Number,String],default:"400px"},src:String,tag:{type:String,default:"div"}},computed:{backgroundStyles:function(){var t={};return this.gradient&&(t.background="linear-gradient("+this.gradient+")"),t},classes:function(){return this.themeClasses},styles:function(){return{height:this.height}}},mounted:function(){Object(o["deprecate"])("v-jumbotron",this.src?"v-img":"v-responsive",this)},methods:{genBackground:function(){return this.$createElement("div",this.setBackgroundColor(this.color,{staticClass:"v-jumbotron__background",style:this.backgroundStyles}))},genContent:function(){return this.$createElement("div",{staticClass:"v-jumbotron__content"},this.$slots.default)},genImage:function(){return this.src?this.$slots.img?this.$slots.img({src:this.src}):this.$createElement("img",{staticClass:"v-jumbotron__image",attrs:{src:this.src}}):null},genWrapper:function(){return this.$createElement("div",{staticClass:"v-jumbotron__wrapper"},[this.genImage(),this.genBackground(),this.genContent()])}},render:function(t){var e=this.generateRouteLink(this.classes),n=e.tag,i=e.data;return i.staticClass="v-jumbotron",i.style=this.styles,t(n,i,[this.genWrapper()])}}},"./src/components/VJumbotron/index.js":
- /*!********************************************!*\
- !*** ./src/components/VJumbotron/index.js ***!
- \********************************************/
- /*! exports provided: VJumbotron, default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ./VJumbotron */"./src/components/VJumbotron/VJumbotron.js");n.d(e,"VJumbotron",(function(){return i["default"]})),e["default"]=i["default"]},"./src/components/VLabel/VLabel.ts":
- /*!*****************************************!*\
- !*** ./src/components/VLabel/VLabel.ts ***!
- \*****************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);n(/*! ../../stylus/components/_labels.styl */"./src/stylus/components/_labels.styl");var i=n(/*! ../../mixins/colorable */"./src/mixins/colorable.ts"),s=n(/*! ../../mixins/themeable */"./src/mixins/themeable.ts"),r=n(/*! ../../util/mixins */"./src/util/mixins.ts"),o=n(/*! ../../util/helpers */"./src/util/helpers.ts"),a=function(){return a=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var s in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t},a.apply(this,arguments)};e["default"]=Object(r["default"])(s["default"]).extend({name:"v-label",functional:!0,props:{absolute:Boolean,color:{type:String,default:"primary"},disabled:Boolean,focused:Boolean,for:String,left:{type:[Number,String],default:0},right:{type:[Number,String],default:"auto"},value:Boolean},render:function(t,e){var n=e.children,r=e.listeners,c=e.props,l={staticClass:"v-label",class:a({"v-label--active":c.value,"v-label--is-disabled":c.disabled},Object(s["functionalThemeClasses"])(e)),attrs:{for:c.for,"aria-hidden":!c.for},on:r,style:{left:Object(o["convertToUnit"])(c.left),right:Object(o["convertToUnit"])(c.right),position:c.absolute?"absolute":"relative"}};return t("label",i["default"].options.methods.setTextColor(c.focused&&c.color,l),n)}})},"./src/components/VLabel/index.ts":
- /*!****************************************!*\
- !*** ./src/components/VLabel/index.ts ***!
- \****************************************/
- /*! exports provided: VLabel, default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ./VLabel */"./src/components/VLabel/VLabel.ts");n.d(e,"VLabel",(function(){return i["default"]})),e["default"]=i["default"]},"./src/components/VList/VList.ts":
- /*!***************************************!*\
- !*** ./src/components/VList/VList.ts ***!
- \***************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);n(/*! ../../stylus/components/_lists.styl */"./src/stylus/components/_lists.styl");var i=n(/*! ../../mixins/themeable */"./src/mixins/themeable.ts"),s=n(/*! ../../mixins/registrable */"./src/mixins/registrable.ts"),r=n(/*! ../../util/mixins */"./src/util/mixins.ts"),o=function(){return o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var s in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t},o.apply(this,arguments)},a=function(t){var e="function"===typeof Symbol&&t[Symbol.iterator],n=0;return e?e.call(t):{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}};e["default"]=Object(r["default"])(Object(s["provide"])("list"),i["default"]).extend({name:"v-list",provide:function(){return{listClick:this.listClick}},props:{dense:Boolean,expand:Boolean,subheader:Boolean,threeLine:Boolean,twoLine:Boolean},data:function(){return{groups:[]}},computed:{classes:function(){return o({"v-list--dense":this.dense,"v-list--subheader":this.subheader,"v-list--two-line":this.twoLine,"v-list--three-line":this.threeLine},this.themeClasses)}},methods:{register:function(t){this.groups.push(t)},unregister:function(t){var e=this.groups.findIndex((function(e){return e._uid===t._uid}));e>-1&&this.groups.splice(e,1)},listClick:function(t){var e,n;if(!this.expand)try{for(var i=a(this.groups),s=i.next();!s.done;s=i.next()){var r=s.value;r.toggle(t)}}catch(o){e={error:o}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}}},render:function(t){var e={staticClass:"v-list",class:this.classes,attrs:{role:"list"}};return t("div",e,[this.$slots.default])}})},"./src/components/VList/VListGroup.ts":
- /*!********************************************!*\
- !*** ./src/components/VList/VListGroup.ts ***!
- \********************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ../VIcon */"./src/components/VIcon/index.ts"),s=n(/*! ../../mixins/bootable */"./src/mixins/bootable.ts"),r=n(/*! ../../mixins/toggleable */"./src/mixins/toggleable.ts"),o=n(/*! ../../mixins/registrable */"./src/mixins/registrable.ts"),a=n(/*! ../transitions */"./src/components/transitions/index.js"),c=n(/*! ../../util/mixins */"./src/util/mixins.ts"),l=function(){return l=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var s in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t},l.apply(this,arguments)};e["default"]=Object(c["default"])(s["default"],Object(o["inject"])("list","v-list-group","v-list"),r["default"]).extend({name:"v-list-group",inject:["listClick"],props:{activeClass:{type:String,default:"primary--text"},appendIcon:{type:String,default:"$vuetify.icons.expand"},disabled:Boolean,group:String,noAction:Boolean,prependIcon:String,subGroup:Boolean},data:function(){return{groups:[]}},computed:{groupClasses:function(){return{"v-list__group--active":this.isActive,"v-list__group--disabled":this.disabled}},headerClasses:function(){return{"v-list__group__header--active":this.isActive,"v-list__group__header--sub-group":this.subGroup}},itemsClasses:function(){return{"v-list__group__items--no-action":this.noAction}}},watch:{isActive:function(t){!this.subGroup&&t&&this.listClick(this._uid)},$route:function(t){var e=this.matchRoute(t.path);this.group&&(e&&this.isActive!==e&&this.listClick(this._uid),this.isActive=e)}},mounted:function(){this.list.register(this),this.group&&this.$route&&null==this.value&&(this.isActive=this.matchRoute(this.$route.path))},beforeDestroy:function(){this.list.unregister(this._uid)},methods:{click:function(t){this.disabled||(this.$emit("click",t),this.isActive=!this.isActive)},genIcon:function(t){return this.$createElement(i["default"],t)},genAppendIcon:function(){var t=!this.subGroup&&this.appendIcon;return t||this.$slots.appendIcon?this.$createElement("div",{staticClass:"v-list__group__header__append-icon"},[this.$slots.appendIcon||this.genIcon(t)]):null},genGroup:function(){return this.$createElement("div",{staticClass:"v-list__group__header",class:this.headerClasses,on:l({},this.$listeners,{click:this.click}),ref:"item"},[this.genPrependIcon(),this.$slots.activator,this.genAppendIcon()])},genItems:function(){return this.$createElement("div",{staticClass:"v-list__group__items",class:this.itemsClasses,directives:[{name:"show",value:this.isActive}],ref:"group"},this.showLazyContent(this.$slots.default))},genPrependIcon:function(){var t,e=this.prependIcon?this.prependIcon:!!this.subGroup&&"$vuetify.icons.subgroup";return e||this.$slots.prependIcon?this.$createElement("div",{staticClass:"v-list__group__header__prepend-icon",class:(t={},t[this.activeClass]=this.isActive,t)},[this.$slots.prependIcon||this.genIcon(e)]):null},toggle:function(t){this.isActive=this._uid===t},matchRoute:function(t){return!!this.group&&null!==t.match(this.group)}},render:function(t){return t("div",{staticClass:"v-list__group",class:this.groupClasses},[this.genGroup(),t(a["VExpandTransition"],[this.genItems()])])}})},"./src/components/VList/VListTile.ts":
- /*!*******************************************!*\
- !*** ./src/components/VList/VListTile.ts ***!
- \*******************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ../../mixins/colorable */"./src/mixins/colorable.ts"),s=n(/*! ../../mixins/routable */"./src/mixins/routable.ts"),r=n(/*! ../../mixins/toggleable */"./src/mixins/toggleable.ts"),o=n(/*! ../../mixins/themeable */"./src/mixins/themeable.ts"),a=n(/*! ../../directives/ripple */"./src/directives/ripple.ts"),c=n(/*! ../../util/mixins */"./src/util/mixins.ts"),l=function(){return l=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var s in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t},l.apply(this,arguments)};e["default"]=Object(c["default"])(i["default"],s["default"],r["default"],o["default"]).extend({name:"v-list-tile",directives:{Ripple:a["default"]},inheritAttrs:!1,props:{activeClass:{type:String,default:"primary--text"},avatar:Boolean,inactive:Boolean,tag:String},data:function(){return{proxyClass:"v-list__tile--active"}},computed:{listClasses:function(){return this.disabled?{"v-list--disabled":!0}:void 0},classes:function(){var t;return l({"v-list__tile":!0,"v-list__tile--link":this.isLink&&!this.inactive,"v-list__tile--avatar":this.avatar,"v-list__tile--disabled":this.disabled,"v-list__tile--active":!this.to&&this.isActive},this.themeClasses,(t={},t[this.activeClass]=this.isActive,t))},isLink:function(){var t=this.$listeners&&(this.$listeners.click||this.$listeners["!click"]);return Boolean(this.href||this.to||t)}},render:function(t){var e=!this.inactive&&this.isLink,n=e?this.generateRouteLink(this.classes):{tag:this.tag||"div",data:{class:this.classes}},i=n.tag,s=n.data;return s.attrs=Object.assign({},s.attrs,this.$attrs),t("div",this.setTextColor(!this.disabled&&this.isActive&&this.color,{class:this.listClasses,attrs:{disabled:this.disabled,role:"listitem"}}),[t(i,s,this.$slots.default)])}})},"./src/components/VList/VListTileAction.ts":
- /*!*************************************************!*\
- !*** ./src/components/VList/VListTileAction.ts ***!
- \*************************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);var i=n(/*! vue */"vue"),s=n.n(i);e["default"]=s.a.extend({name:"v-list-tile-action",functional:!0,render:function(t,e){var n=e.data,i=e.children,s=void 0===i?[]:i;n.staticClass=n.staticClass?"v-list__tile__action "+n.staticClass:"v-list__tile__action";var r=s.filter((function(t){return!1===t.isComment&&" "!==t.text}));return r.length>1&&(n.staticClass+=" v-list__tile__action--stack"),t("div",n,s)}})},"./src/components/VList/VListTileAvatar.ts":
- /*!*************************************************!*\
- !*** ./src/components/VList/VListTileAvatar.ts ***!
- \*************************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ../VAvatar */"./src/components/VAvatar/index.ts"),s=n(/*! vue */"vue"),r=n.n(s);e["default"]=r.a.extend({name:"v-list-tile-avatar",functional:!0,props:{color:String,size:{type:[Number,String],default:40},tile:Boolean},render:function(t,e){var n=e.data,s=e.children,r=e.props;n.staticClass=("v-list__tile__avatar "+(n.staticClass||"")).trim();var o=t(i["default"],{props:{color:r.color,size:r.size,tile:r.tile}},[s]);return t("div",n,[o])}})},"./src/components/VList/index.ts":
- /*!***************************************!*\
- !*** ./src/components/VList/index.ts ***!
- \***************************************/
- /*! exports provided: VList, VListGroup, VListTile, VListTileAction, VListTileAvatar, VListTileActionText, VListTileContent, VListTileTitle, VListTileSubTitle, default */function(t,e,n){"use strict";n.r(e),n.d(e,"VListTileActionText",(function(){return l})),n.d(e,"VListTileContent",(function(){return u})),n.d(e,"VListTileTitle",(function(){return h})),n.d(e,"VListTileSubTitle",(function(){return d}));var i=n(/*! ../../util/helpers */"./src/util/helpers.ts"),s=n(/*! ./VList */"./src/components/VList/VList.ts");n.d(e,"VList",(function(){return s["default"]}));var r=n(/*! ./VListGroup */"./src/components/VList/VListGroup.ts");n.d(e,"VListGroup",(function(){return r["default"]}));var o=n(/*! ./VListTile */"./src/components/VList/VListTile.ts");n.d(e,"VListTile",(function(){return o["default"]}));var a=n(/*! ./VListTileAction */"./src/components/VList/VListTileAction.ts");n.d(e,"VListTileAction",(function(){return a["default"]}));var c=n(/*! ./VListTileAvatar */"./src/components/VList/VListTileAvatar.ts");n.d(e,"VListTileAvatar",(function(){return c["default"]}));var l=Object(i["createSimpleFunctional"])("v-list__tile__action-text","span"),u=Object(i["createSimpleFunctional"])("v-list__tile__content","div"),h=Object(i["createSimpleFunctional"])("v-list__tile__title","div"),d=Object(i["createSimpleFunctional"])("v-list__tile__sub-title","div");e["default"]={$_vuetify_subcomponents:{VList:s["default"],VListGroup:r["default"],VListTile:o["default"],VListTileAction:a["default"],VListTileActionText:l,VListTileAvatar:c["default"],VListTileContent:u,VListTileSubTitle:d,VListTileTitle:h}}},"./src/components/VMenu/VMenu.js":
- /*!***************************************!*\
- !*** ./src/components/VMenu/VMenu.js ***!
- \***************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);n(/*! ../../stylus/components/_menus.styl */"./src/stylus/components/_menus.styl");var i=n(/*! vue */"vue"),s=n.n(i),r=n(/*! ../../mixins/delayable */"./src/mixins/delayable.ts"),o=n(/*! ../../mixins/dependent */"./src/mixins/dependent.ts"),a=n(/*! ../../mixins/detachable */"./src/mixins/detachable.js"),c=n(/*! ../../mixins/menuable.js */"./src/mixins/menuable.js"),l=n(/*! ../../mixins/returnable */"./src/mixins/returnable.ts"),u=n(/*! ../../mixins/toggleable */"./src/mixins/toggleable.ts"),h=n(/*! ../../mixins/themeable */"./src/mixins/themeable.ts"),d=n(/*! ./mixins/menu-activator */"./src/components/VMenu/mixins/menu-activator.js"),f=n(/*! ./mixins/menu-generators */"./src/components/VMenu/mixins/menu-generators.js"),p=n(/*! ./mixins/menu-keyable */"./src/components/VMenu/mixins/menu-keyable.js"),m=n(/*! ./mixins/menu-position */"./src/components/VMenu/mixins/menu-position.js"),g=n(/*! ../../directives/click-outside */"./src/directives/click-outside.ts"),b=n(/*! ../../directives/resize */"./src/directives/resize.ts"),v=n(/*! ../../util/helpers */"./src/util/helpers.ts"),y=n(/*! ../../util/ThemeProvider */"./src/util/ThemeProvider.ts"),S=n(/*! ../../util/console */"./src/util/console.ts");e["default"]=s.a.extend({name:"v-menu",provide:function(){return{theme:this.theme}},directives:{ClickOutside:g["default"],Resize:b["default"]},mixins:[d["default"],o["default"],r["default"],a["default"],f["default"],p["default"],c["default"],m["default"],l["default"],u["default"],h["default"]],props:{auto:Boolean,closeOnClick:{type:Boolean,default:!0},closeOnContentClick:{type:Boolean,default:!0},disabled:Boolean,fullWidth:Boolean,maxHeight:{default:"auto"},openOnClick:{type:Boolean,default:!0},offsetX:Boolean,offsetY:Boolean,openOnHover:Boolean,origin:{type:String,default:"top left"},transition:{type:[Boolean,String],default:"v-menu-transition"}},data:function(){return{defaultOffset:8,hasJustFocused:!1,resizeTimeout:null}},computed:{calculatedLeft:function(){var t=Math.max(this.dimensions.content.width,parseFloat(this.calculatedMinWidth));return this.auto?this.calcXOverflow(this.calcLeftAuto(),t)+"px":this.calcLeft(t)},calculatedMaxHeight:function(){return this.auto?"200px":Object(v["convertToUnit"])(this.maxHeight)},calculatedMaxWidth:function(){return isNaN(this.maxWidth)?this.maxWidth:this.maxWidth+"px"},calculatedMinWidth:function(){if(this.minWidth)return isNaN(this.minWidth)?this.minWidth:this.minWidth+"px";var t=Math.min(this.dimensions.activator.width+this.nudgeWidth+(this.auto?16:0),Math.max(this.pageWidth-24,0)),e=isNaN(parseInt(this.calculatedMaxWidth))?t:parseInt(this.calculatedMaxWidth);return Math.min(e,t)+"px"},calculatedTop:function(){return!this.auto||this.isAttached?this.calcTop():this.calcYOverflow(this.calculatedTopAuto)+"px"},styles:function(){return{maxHeight:this.calculatedMaxHeight,minWidth:this.calculatedMinWidth,maxWidth:this.calculatedMaxWidth,top:this.calculatedTop,left:this.calculatedLeft,transformOrigin:this.origin,zIndex:this.zIndex||this.activeZIndex}}},watch:{activator:function(t,e){this.removeActivatorEvents(e),this.addActivatorEvents(t)},disabled:function(t){this.activator&&(t?this.removeActivatorEvents(this.activator):this.addActivatorEvents(this.activator))},isContentActive:function(t){this.hasJustFocused=t}},mounted:function(){this.isActive&&this.activate(),"v-slot"===Object(v["getSlotType"])(this,"activator",!0)&&Object(S["consoleError"])("v-tooltip's activator slot must be bound, try '<template #activator=\"data\"><v-btn v-on=\"data.on>'",this)},methods:{activate:function(){var t=this;this.getTiles(),this.updateDimensions(),requestAnimationFrame((function(){t.startTransition().then((function(){t.$refs.content&&(t.calculatedTopAuto=t.calcTopAuto(),t.auto&&(t.$refs.content.scrollTop=t.calcScrollPosition()))}))}))},closeConditional:function(t){return this.isActive&&!this._isDestroyed&&this.closeOnClick&&!this.$refs.content.contains(t.target)},onResize:function(){this.isActive&&(this.$refs.content.offsetWidth,this.updateDimensions(),clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(this.updateDimensions,100))}},render:function(t){var e={staticClass:"v-menu",class:{"v-menu--inline":!this.fullWidth&&this.$slots.activator},directives:[{arg:500,name:"resize",value:this.onResize}],on:this.disableKeys?void 0:{keydown:this.onKeyDown}};return t("div",e,[this.genActivator(),this.$createElement(y["default"],{props:{root:!0,light:this.light,dark:this.dark}},[this.genTransition()])])}})},"./src/components/VMenu/index.js":
- /*!***************************************!*\
- !*** ./src/components/VMenu/index.js ***!
- \***************************************/
- /*! exports provided: VMenu, default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ./VMenu */"./src/components/VMenu/VMenu.js");n.d(e,"VMenu",(function(){return i["default"]})),e["default"]=i["default"]},"./src/components/VMenu/mixins/menu-activator.js":
- /*!*******************************************************!*\
- !*** ./src/components/VMenu/mixins/menu-activator.js ***!
- \*******************************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e),e["default"]={methods:{activatorClickHandler:function(t){this.openOnClick&&!this.isActive?(this.getActivator(t).focus(),this.isActive=!0,this.absoluteX=t.clientX,this.absoluteY=t.clientY):this.closeOnClick&&this.isActive&&(this.getActivator(t).blur(),this.isActive=!1)},mouseEnterHandler:function(){var t=this;this.runDelay("open",(function(){t.hasJustFocused||(t.hasJustFocused=!0,t.isActive=!0)}))},mouseLeaveHandler:function(t){var e=this;this.runDelay("close",(function(){e.$refs.content.contains(t.relatedTarget)||requestAnimationFrame((function(){e.isActive=!1,e.callDeactivate()}))}))},addActivatorEvents:function(t){void 0===t&&(t=null),t&&!this.disabled&&t.addEventListener("click",this.activatorClickHandler)},removeActivatorEvents:function(t){void 0===t&&(t=null),t&&t.removeEventListener("click",this.activatorClickHandler)}}}},"./src/components/VMenu/mixins/menu-generators.js":
- /*!********************************************************!*\
- !*** ./src/components/VMenu/mixins/menu-generators.js ***!
- \********************************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ../../../util/helpers */"./src/util/helpers.ts"),s=function(){return s=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var s in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t},s.apply(this,arguments)},r=function(t,e){var n="function"===typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,s,r=n.call(t),o=[];try{while((void 0===e||e-- >0)&&!(i=r.next()).done)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r["return"])&&n.call(r)}finally{if(s)throw s.error}}return o},o=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(r(arguments[e]));return t};e["default"]={methods:{genActivator:function(){if(!this.$slots.activator&&!this.$scopedSlots.activator)return null;var t={};if(this.disabled||(this.openOnHover?(t.mouseenter=this.mouseEnterHandler,t.mouseleave=this.mouseLeaveHandler):this.openOnClick&&(t.click=this.activatorClickHandler)),"scoped"===Object(i["getSlotType"])(this,"activator")){t.keydown=this.onKeyDown;var e=this.$scopedSlots.activator({on:t});return this.activatorNode=e,e}return this.$createElement("div",{staticClass:"v-menu__activator",class:{"v-menu__activator--active":this.hasJustFocused||this.isActive,"v-menu__activator--disabled":this.disabled},ref:"activator",on:t},this.$slots.activator)},genTransition:function(){return this.transition?this.$createElement("transition",{props:{name:this.transition}},[this.genContent()]):this.genContent()},genDirectives:function(){var t=this,e=!this.openOnHover&&this.closeOnClick?[{name:"click-outside",value:function(){t.isActive=!1},args:{closeConditional:this.closeConditional,include:function(){return o([t.$el],t.getOpenDependentElements())}}}]:[];return e.push({name:"show",value:this.isContentActive}),e},genContent:function(){var t,e=this,n={attrs:this.getScopeIdAttrs(),staticClass:"v-menu__content",class:s({},this.rootThemeClasses,(t={"v-menu__content--auto":this.auto,"v-menu__content--fixed":this.activatorFixed,menuable__content__active:this.isActive},t[this.contentClass.trim()]=!0,t)),style:this.styles,directives:this.genDirectives(),ref:"content",on:{click:function(t){t.stopPropagation(),t.target.getAttribute("disabled")||e.closeOnContentClick&&(e.isActive=!1)},keydown:this.onKeyDown}};return!this.disabled&&this.openOnHover&&(n.on.mouseenter=this.mouseEnterHandler),this.openOnHover&&(n.on.mouseleave=this.mouseLeaveHandler),this.$createElement("div",n,this.showLazyContent(this.$slots.default))}}}},"./src/components/VMenu/mixins/menu-keyable.js":
- /*!*****************************************************!*\
- !*** ./src/components/VMenu/mixins/menu-keyable.js ***!
- \*****************************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ../../../util/helpers */"./src/util/helpers.ts");e["default"]={props:{disableKeys:Boolean},data:function(){return{listIndex:-1,tiles:[]}},watch:{isActive:function(t){t||(this.listIndex=-1)},listIndex:function(t,e){if(t in this.tiles){var n=this.tiles[t];n.classList.add("v-list__tile--highlighted"),this.$refs.content.scrollTop=n.offsetTop-n.clientHeight}e in this.tiles&&this.tiles[e].classList.remove("v-list__tile--highlighted")}},methods:{onKeyDown:function(t){var e=this;if(t.keyCode===i["keyCodes"].esc){setTimeout((function(){e.isActive=!1}));var n=this.getActivator();this.$nextTick((function(){return n&&n.focus()}))}else t.keyCode===i["keyCodes"].tab?setTimeout((function(){e.$refs.content.contains(document.activeElement)||(e.isActive=!1)})):this.changeListIndex(t)},changeListIndex:function(t){if(this.getTiles(),t.keyCode===i["keyCodes"].down&&this.listIndex<this.tiles.length-1)this.listIndex++;else if(t.keyCode===i["keyCodes"].up&&this.listIndex>-1)this.listIndex--;else{if(t.keyCode!==i["keyCodes"].enter||-1===this.listIndex)return;this.tiles[this.listIndex].click()}t.preventDefault()},getTiles:function(){this.tiles=this.$refs.content.querySelectorAll(".v-list__tile")}}}},"./src/components/VMenu/mixins/menu-position.js":
- /*!******************************************************!*\
- !*** ./src/components/VMenu/mixins/menu-position.js ***!
- \******************************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e),e["default"]={data:function(){return{calculatedTopAuto:0}},methods:{calcScrollPosition:function(){var t=this.$refs.content,e=t.querySelector(".v-list__tile--active"),n=t.scrollHeight-t.offsetHeight;return e?Math.min(n,Math.max(0,e.offsetTop-t.offsetHeight/2+e.offsetHeight/2)):t.scrollTop},calcLeftAuto:function(){return this.isAttached?0:parseInt(this.dimensions.activator.left-2*this.defaultOffset)},calcTopAuto:function(){var t=this.$refs.content,e=t.querySelector(".v-list__tile--active");if(e||(this.selectedIndex=null),this.offsetY||!e)return this.computedTop;this.selectedIndex=Array.from(this.tiles).indexOf(e);var n=e.offsetTop-this.calcScrollPosition(),i=t.querySelector(".v-list__tile").offsetTop;return this.computedTop-n-i}}}},"./src/components/VMessages/VMessages.ts":
- /*!***********************************************!*\
- !*** ./src/components/VMessages/VMessages.ts ***!
- \***********************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);n(/*! ../../stylus/components/_messages.styl */"./src/stylus/components/_messages.styl");var i=n(/*! ../../mixins/colorable */"./src/mixins/colorable.ts"),s=n(/*! ../../mixins/themeable */"./src/mixins/themeable.ts"),r=n(/*! ../../util/mixins */"./src/util/mixins.ts"),o=n(/*! ../../util/helpers */"./src/util/helpers.ts");e["default"]=Object(r["default"])(i["default"],s["default"]).extend({name:"v-messages",props:{value:{type:Array,default:function(){return[]}}},methods:{genChildren:function(){return this.$createElement("transition-group",{staticClass:"v-messages__wrapper",attrs:{name:"message-transition",tag:"div"}},this.value.map(this.genMessage))},genMessage:function(t,e){var n=this.$scopedSlots.default?this.$scopedSlots.default({message:t,key:e}):void 0,i=Object(o["escapeHTML"])(t),s=n?void 0:i;return this.$createElement("div",{staticClass:"v-messages__message",key:e,domProps:{innerHTML:s}},n)}},render:function(t){return t("div",this.setTextColor(this.color,{staticClass:"v-messages",class:this.themeClasses}),[this.genChildren()])}})},"./src/components/VMessages/index.ts":
- /*!*******************************************!*\
- !*** ./src/components/VMessages/index.ts ***!
- \*******************************************/
- /*! exports provided: VMessages, default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ./VMessages */"./src/components/VMessages/VMessages.ts");n.d(e,"VMessages",(function(){return i["default"]})),e["default"]=i["default"]},"./src/components/VNavigationDrawer/VNavigationDrawer.ts":
- /*!***************************************************************!*\
- !*** ./src/components/VNavigationDrawer/VNavigationDrawer.ts ***!
- \***************************************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);n(/*! ../../stylus/components/_navigation-drawer.styl */"./src/stylus/components/_navigation-drawer.styl");var i=n(/*! ../../mixins/applicationable */"./src/mixins/applicationable.ts"),s=n(/*! ../../mixins/dependent */"./src/mixins/dependent.ts"),r=n(/*! ../../mixins/overlayable */"./src/mixins/overlayable.ts"),o=n(/*! ../../mixins/ssr-bootable */"./src/mixins/ssr-bootable.ts"),a=n(/*! ../../mixins/themeable */"./src/mixins/themeable.ts"),c=n(/*! ../../directives/click-outside */"./src/directives/click-outside.ts"),l=n(/*! ../../directives/resize */"./src/directives/resize.ts"),u=n(/*! ../../directives/touch */"./src/directives/touch.ts"),h=n(/*! ../../util/helpers */"./src/util/helpers.ts"),d=n(/*! ../../util/mixins */"./src/util/mixins.ts"),f=function(){return f=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var s in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t},f.apply(this,arguments)};e["default"]=Object(d["default"])(Object(i["default"])("left",["miniVariant","right","width"]),s["default"],r["default"],o["default"],a["default"]).extend({name:"v-navigation-drawer",directives:{ClickOutside:c["default"],Resize:l["default"],Touch:u["default"]},props:{clipped:Boolean,disableRouteWatcher:Boolean,disableResizeWatcher:Boolean,height:{type:[Number,String],default:"100%"},floating:Boolean,miniVariant:Boolean,miniVariantWidth:{type:[Number,String],default:80},mobileBreakPoint:{type:[Number,String],default:1264},permanent:Boolean,right:Boolean,stateless:Boolean,temporary:Boolean,touchless:Boolean,width:{type:[Number,String],default:300},value:{required:!1}},data:function(){return{isActive:!1,touchArea:{left:0,right:0}}},computed:{applicationProperty:function(){return this.right?"right":"left"},calculatedTransform:function(){return this.isActive?0:this.right?this.calculatedWidth:-this.calculatedWidth},calculatedWidth:function(){return parseInt(this.miniVariant?this.miniVariantWidth:this.width)},classes:function(){return f({"v-navigation-drawer":!0,"v-navigation-drawer--absolute":this.absolute,"v-navigation-drawer--clipped":this.clipped,"v-navigation-drawer--close":!this.isActive,"v-navigation-drawer--fixed":!this.absolute&&(this.app||this.fixed),"v-navigation-drawer--floating":this.floating,"v-navigation-drawer--is-mobile":this.isMobile,"v-navigation-drawer--mini-variant":this.miniVariant,"v-navigation-drawer--open":this.isActive,"v-navigation-drawer--right":this.right,"v-navigation-drawer--temporary":this.temporary},this.themeClasses)},hasApp:function(){return this.app&&!this.isMobile&&!this.temporary},isMobile:function(){return!this.stateless&&!this.permanent&&!this.temporary&&this.$vuetify.breakpoint.width<parseInt(this.mobileBreakPoint,10)},marginTop:function(){if(!this.hasApp)return 0;var t=this.$vuetify.application.bar;return t+=this.clipped?this.$vuetify.application.top:0,t},maxHeight:function(){if(!this.hasApp)return null;var t=this.$vuetify.application.bottom+this.$vuetify.application.footer+this.$vuetify.application.bar;return this.clipped?t+this.$vuetify.application.top:t},reactsToClick:function(){return!this.stateless&&!this.permanent&&(this.isMobile||this.temporary)},reactsToMobile:function(){return!this.disableResizeWatcher&&!this.stateless&&!this.permanent&&!this.temporary},reactsToRoute:function(){return!this.disableRouteWatcher&&!this.stateless&&(this.temporary||this.isMobile)},resizeIsDisabled:function(){return this.disableResizeWatcher||this.stateless},showOverlay:function(){return this.isActive&&(this.isMobile||this.temporary)},styles:function(){var t={height:Object(h["convertToUnit"])(this.height),marginTop:this.marginTop+"px",maxHeight:null!=this.maxHeight?"calc(100% - "+ +this.maxHeight+"px)":void 0,transform:"translateX("+this.calculatedTransform+"px)",width:this.calculatedWidth+"px"};return t}},watch:{$route:function(){this.reactsToRoute&&this.closeConditional()&&(this.isActive=!1)},isActive:function(t){this.$emit("input",t),this.callUpdate()},isMobile:function(t,e){!t&&this.isActive&&!this.temporary&&this.removeOverlay(),null!=e&&!this.resizeIsDisabled&&this.reactsToMobile&&(this.isActive=!t,this.callUpdate())},permanent:function(t){t&&(this.isActive=!0),this.callUpdate()},showOverlay:function(t){t?this.genOverlay():this.removeOverlay()},temporary:function(){this.callUpdate()},value:function(t){if(!this.permanent){var e=this;if(null==t)return e.init();t!==this.isActive&&(this.isActive=t)}}},beforeMount:function(){this.init()},methods:{calculateTouchArea:function(){if(this.$el.parentNode){var t=this.$el.parentNode.getBoundingClientRect();this.touchArea={left:t.left+50,right:t.right-50}}},closeConditional:function(){return this.isActive&&!this._isDestroyed&&this.reactsToClick},genDirectives:function(){var t=this,e=[{name:"click-outside",value:function(){return t.isActive=!1},args:{closeConditional:this.closeConditional,include:this.getOpenDependentElements}}];return!this.touchless&&e.push({name:"touch",value:{parent:!0,left:this.swipeLeft,right:this.swipeRight}}),e},init:function(){this.permanent?this.isActive=!0:this.stateless||null!=this.value?this.isActive=this.value:this.temporary||(this.isActive=!this.isMobile)},swipeRight:function(t){this.isActive&&!this.right||(this.calculateTouchArea(),Math.abs(t.touchendX-t.touchstartX)<100||(!this.right&&t.touchstartX<=this.touchArea.left?this.isActive=!0:this.right&&this.isActive&&(this.isActive=!1)))},swipeLeft:function(t){this.isActive&&this.right||(this.calculateTouchArea(),Math.abs(t.touchendX-t.touchstartX)<100||(this.right&&t.touchstartX>=this.touchArea.right?this.isActive=!0:!this.right&&this.isActive&&(this.isActive=!1)))},updateApplication:function(){return!this.isActive||this.temporary||this.isMobile?0:this.calculatedWidth}},render:function(t){var e=this,n={class:this.classes,style:this.styles,directives:this.genDirectives(),on:{click:function(){e.miniVariant&&e.$emit("update:miniVariant",!1)},transitionend:function(t){if(t.target===t.currentTarget){e.$emit("transitionend",t);var n=document.createEvent("UIEvents");n.initUIEvent("resize",!0,!1,window,0),window.dispatchEvent(n)}}}};return t("aside",n,[this.$slots.default,t("div",{class:"v-navigation-drawer__border"})])}})},"./src/components/VNavigationDrawer/index.ts":
- /*!***************************************************!*\
- !*** ./src/components/VNavigationDrawer/index.ts ***!
- \***************************************************/
- /*! exports provided: VNavigationDrawer, default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ./VNavigationDrawer */"./src/components/VNavigationDrawer/VNavigationDrawer.ts");n.d(e,"VNavigationDrawer",(function(){return i["default"]})),e["default"]=i["default"]},"./src/components/VOverflowBtn/VOverflowBtn.js":
- /*!*****************************************************!*\
- !*** ./src/components/VOverflowBtn/VOverflowBtn.js ***!
- \*****************************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);n(/*! ../../stylus/components/_overflow-buttons.styl */"./src/stylus/components/_overflow-buttons.styl");var i=n(/*! ../VSelect/VSelect */"./src/components/VSelect/VSelect.js"),s=n(/*! ../VAutocomplete */"./src/components/VAutocomplete/index.js"),r=n(/*! ../VTextField/VTextField */"./src/components/VTextField/VTextField.js"),o=n(/*! ../VBtn */"./src/components/VBtn/index.ts"),a=n(/*! ../../util/console */"./src/util/console.ts");e["default"]=s["default"].extend({name:"v-overflow-btn",props:{segmented:Boolean,editable:Boolean,transition:i["default"].options.props.transition},computed:{classes:function(){return Object.assign(s["default"].options.computed.classes.call(this),{"v-overflow-btn":!0,"v-overflow-btn--segmented":this.segmented,"v-overflow-btn--editable":this.editable})},isAnyValueAllowed:function(){return this.editable||s["default"].options.computed.isAnyValueAllowed.call(this)},isSingle:function(){return!0},computedItems:function(){return this.segmented?this.allItems:this.filteredItems},$_menuProps:function(){var t=s["default"].options.computed.$_menuProps.call(this);return t.transition=t.transition||"v-menu-transition",t}},methods:{genSelections:function(){return this.editable?s["default"].options.methods.genSelections.call(this):i["default"].options.methods.genSelections.call(this)},genCommaSelection:function(t,e,n){return this.segmented?this.genSegmentedBtn(t):i["default"].options.methods.genCommaSelection.call(this,t,e,n)},genInput:function(){var t=r["default"].options.methods.genInput.call(this);return t.data.domProps.value=this.editable?this.internalSearch:"",t.data.attrs.readonly=!this.isAnyValueAllowed,t},genLabel:function(){if(this.editable&&this.isFocused)return null;var t=r["default"].options.methods.genLabel.call(this);return t?(t.data.style={},t):t},genSegmentedBtn:function(t){var e=this,n=this.getValue(t),i=this.computedItems.find((function(t){return e.getValue(t)===n}))||t;return i.text&&i.callback?this.$createElement(o["default"],{props:{flat:!0},on:{click:function(t){t.stopPropagation(),i.callback(t)}}},[i.text]):(Object(a["consoleWarn"])("When using 'segmented' prop without a selection slot, items must contain both a text and callback property",this),null)}}})},"./src/components/VOverflowBtn/index.js":
- /*!**********************************************!*\
- !*** ./src/components/VOverflowBtn/index.js ***!
- \**********************************************/
- /*! exports provided: VOverflowBtn, default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ./VOverflowBtn */"./src/components/VOverflowBtn/VOverflowBtn.js");n.d(e,"VOverflowBtn",(function(){return i["default"]})),e["default"]=i["default"]},"./src/components/VPagination/VPagination.ts":
- /*!***************************************************!*\
- !*** ./src/components/VPagination/VPagination.ts ***!
- \***************************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);n(/*! ../../stylus/components/_pagination.styl */"./src/stylus/components/_pagination.styl");var i=n(/*! ../VIcon */"./src/components/VIcon/index.ts"),s=n(/*! ../../directives/resize */"./src/directives/resize.ts"),r=n(/*! ../../util/mixins */"./src/util/mixins.ts"),o=n(/*! ../../mixins/colorable */"./src/mixins/colorable.ts"),a=n(/*! ../../mixins/themeable */"./src/mixins/themeable.ts"),c=function(){return c=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var s in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t},c.apply(this,arguments)},l=function(t,e){var n="function"===typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,s,r=n.call(t),o=[];try{while((void 0===e||e-- >0)&&!(i=r.next()).done)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r["return"])&&n.call(r)}finally{if(s)throw s.error}}return o},u=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(l(arguments[e]));return t};e["default"]=Object(r["default"])(o["default"],a["default"]).extend({name:"v-pagination",directives:{Resize:s["default"]},props:{circle:Boolean,disabled:Boolean,length:{type:Number,default:0,validator:function(t){return t%1===0}},totalVisible:[Number,String],nextIcon:{type:String,default:"$vuetify.icons.next"},prevIcon:{type:String,default:"$vuetify.icons.prev"},value:{type:Number,default:0}},data:function(){return{maxButtons:0,selected:null}},computed:{classes:function(){return c({"v-pagination":!0,"v-pagination--circle":this.circle,"v-pagination--disabled":this.disabled},this.themeClasses)},items:function(){var t=parseInt(this.totalVisible,10)||this.maxButtons;if(this.length<=t)return this.range(1,this.length);var e=t%2===0?1:0,n=Math.floor(t/2),i=this.length-n+1+e;if(this.value>n&&this.value<i){var s=this.value-n+2,r=this.value+n-2-e;return u([1,"..."],this.range(s,r),["...",this.length])}if(this.value===n){r=this.value+n-1-e;return u(this.range(1,r),["...",this.length])}if(this.value===i){s=this.value-n+1;return u([1,"..."],this.range(s,this.length))}return u(this.range(1,n),["..."],this.range(i,this.length))}},watch:{value:function(){this.init()}},mounted:function(){this.init()},methods:{init:function(){var t=this;this.selected=null,this.$nextTick(this.onResize),setTimeout((function(){return t.selected=t.value}),100)},onResize:function(){var t=this.$el&&this.$el.parentElement?this.$el.parentElement.clientWidth:window.innerWidth;this.maxButtons=Math.floor((t-96)/42)},next:function(t){t.preventDefault(),this.$emit("input",this.value+1),this.$emit("next")},previous:function(t){t.preventDefault(),this.$emit("input",this.value-1),this.$emit("previous")},range:function(t,e){var n=[];t=t>0?t:1;for(var i=t;i<=e;i++)n.push(i);return n},genIcon:function(t,e,n,s){return t("li",[t("button",{staticClass:"v-pagination__navigation",class:{"v-pagination__navigation--disabled":n},attrs:{type:"button"},on:n?{}:{click:s}},[t(i["default"],[e])])])},genItem:function(t,e){var n=this,i=e===this.value&&(this.color||"primary");return t("button",this.setBackgroundColor(i,{staticClass:"v-pagination__item",class:{"v-pagination__item--active":e===this.value},attrs:{type:"button"},on:{click:function(){return n.$emit("input",e)}}}),[e.toString()])},genItems:function(t){var e=this;return this.items.map((function(n,i){return t("li",{key:i},[isNaN(Number(n))?t("span",{class:"v-pagination__more"},[n.toString()]):e.genItem(t,n)])}))}},render:function(t){var e=[this.genIcon(t,this.$vuetify.rtl?this.nextIcon:this.prevIcon,this.value<=1,this.previous),this.genItems(t),this.genIcon(t,this.$vuetify.rtl?this.prevIcon:this.nextIcon,this.value>=this.length,this.next)];return t("ul",{directives:[{modifiers:{quiet:!0},name:"resize",value:this.onResize}],class:this.classes},e)}})},"./src/components/VPagination/index.ts":
- /*!*********************************************!*\
- !*** ./src/components/VPagination/index.ts ***!
- \*********************************************/
- /*! exports provided: VPagination, default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ./VPagination */"./src/components/VPagination/VPagination.ts");n.d(e,"VPagination",(function(){return i["default"]})),e["default"]=i["default"]},"./src/components/VParallax/VParallax.ts":
- /*!***********************************************!*\
- !*** ./src/components/VParallax/VParallax.ts ***!
- \***********************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);n(/*! ../../stylus/components/_parallax.styl */"./src/stylus/components/_parallax.styl");var i=n(/*! ../../mixins/translatable */"./src/mixins/translatable.ts"),s=n(/*! ../../util/mixins */"./src/util/mixins.ts");e["default"]=Object(s["default"])(i["default"]).extend({name:"v-parallax",props:{alt:{type:String,default:""},height:{type:[String,Number],default:500},src:String},data:function(){return{isBooted:!1}},computed:{styles:function(){return{display:"block",opacity:this.isBooted?1:0,transform:"translate(-50%, "+this.parallax+"px)"}}},watch:{parallax:function(){this.isBooted=!0}},mounted:function(){this.init()},methods:{init:function(){var t=this,e=this.$refs.img;e&&(e.complete?(this.translate(),this.listeners()):e.addEventListener("load",(function(){t.translate(),t.listeners()}),!1))},objHeight:function(){return this.$refs.img.naturalHeight}},render:function(t){var e={staticClass:"v-parallax__image",style:this.styles,attrs:{src:this.src,alt:this.alt},ref:"img"},n=t("div",{staticClass:"v-parallax__image-container"},[t("img",e)]),i=t("div",{staticClass:"v-parallax__content"},this.$slots.default);return t("div",{staticClass:"v-parallax",style:{height:this.height+"px"},on:this.$listeners},[n,i])}})},"./src/components/VParallax/index.ts":
- /*!*******************************************!*\
- !*** ./src/components/VParallax/index.ts ***!
- \*******************************************/
- /*! exports provided: VParallax, default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ./VParallax */"./src/components/VParallax/VParallax.ts");n.d(e,"VParallax",(function(){return i["default"]})),e["default"]=i["default"]},"./src/components/VPicker/VPicker.ts":
- /*!*******************************************!*\
- !*** ./src/components/VPicker/VPicker.ts ***!
- \*******************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);n(/*! ../../stylus/components/_pickers.styl */"./src/stylus/components/_pickers.styl"),n(/*! ../../stylus/components/_cards.styl */"./src/stylus/components/_cards.styl");var i=n(/*! ../../mixins/colorable */"./src/mixins/colorable.ts"),s=n(/*! ../../mixins/themeable */"./src/mixins/themeable.ts"),r=n(/*! ../../util/helpers */"./src/util/helpers.ts"),o=n(/*! ../../util/mixins */"./src/util/mixins.ts"),a=function(){return a=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var s in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t},a.apply(this,arguments)};e["default"]=Object(o["default"])(i["default"],s["default"]).extend({name:"v-picker",props:{fullWidth:Boolean,landscape:Boolean,transition:{type:String,default:"fade-transition"},width:{type:[Number,String],default:290}},computed:{computedTitleColor:function(){var t=!this.isDark&&(this.color||"primary");return this.color||t}},methods:{genTitle:function(){return this.$createElement("div",this.setBackgroundColor(this.computedTitleColor,{staticClass:"v-picker__title",class:{"v-picker__title--landscape":this.landscape}}),this.$slots.title)},genBodyTransition:function(){return this.$createElement("transition",{props:{name:this.transition}},this.$slots.default)},genBody:function(){return this.$createElement("div",{staticClass:"v-picker__body",class:this.themeClasses,style:this.fullWidth?void 0:{width:Object(r["convertToUnit"])(this.width)}},[this.genBodyTransition()])},genActions:function(){return this.$createElement("div",{staticClass:"v-picker__actions v-card__actions"},this.$slots.actions)}},render:function(t){return t("div",{staticClass:"v-picker v-card",class:a({"v-picker--landscape":this.landscape,"v-picker--full-width":this.fullWidth},this.themeClasses)},[this.$slots.title?this.genTitle():null,this.genBody(),this.$slots.actions?this.genActions():null])}})},"./src/components/VPicker/index.ts":
- /*!*****************************************!*\
- !*** ./src/components/VPicker/index.ts ***!
- \*****************************************/
- /*! exports provided: VPicker, default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ./VPicker */"./src/components/VPicker/VPicker.ts");n.d(e,"VPicker",(function(){return i["default"]})),e["default"]=i["default"]},"./src/components/VProgressCircular/VProgressCircular.ts":
- /*!***************************************************************!*\
- !*** ./src/components/VProgressCircular/VProgressCircular.ts ***!
- \***************************************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);n(/*! ../../stylus/components/_progress-circular.styl */"./src/stylus/components/_progress-circular.styl");var i=n(/*! ../../mixins/colorable */"./src/mixins/colorable.ts"),s=n(/*! ../../util/mixins */"./src/util/mixins.ts");e["default"]=Object(s["default"])(i["default"]).extend({name:"v-progress-circular",props:{button:Boolean,indeterminate:Boolean,rotate:{type:[Number,String],default:0},size:{type:[Number,String],default:32},width:{type:[Number,String],default:4},value:{type:[Number,String],default:0}},computed:{calculatedSize:function(){return Number(this.size)+(this.button?8:0)},circumference:function(){return 2*Math.PI*this.radius},classes:function(){return{"v-progress-circular--indeterminate":this.indeterminate,"v-progress-circular--button":this.button}},normalizedValue:function(){return this.value<0?0:this.value>100?100:parseFloat(this.value)},radius:function(){return 20},strokeDashArray:function(){return Math.round(1e3*this.circumference)/1e3},strokeDashOffset:function(){return(100-this.normalizedValue)/100*this.circumference+"px"},strokeWidth:function(){return Number(this.width)/+this.size*this.viewBoxSize*2},styles:function(){return{height:this.calculatedSize+"px",width:this.calculatedSize+"px"}},svgStyles:function(){return{transform:"rotate("+Number(this.rotate)+"deg)"}},viewBoxSize:function(){return this.radius/(1-Number(this.width)/+this.size)}},methods:{genCircle:function(t,e,n){return t("circle",{class:"v-progress-circular__"+e,attrs:{fill:"transparent",cx:2*this.viewBoxSize,cy:2*this.viewBoxSize,r:this.radius,"stroke-width":this.strokeWidth,"stroke-dasharray":this.strokeDashArray,"stroke-dashoffset":n}})},genSvg:function(t){var e=[this.indeterminate||this.genCircle(t,"underlay",0),this.genCircle(t,"overlay",this.strokeDashOffset)];return t("svg",{style:this.svgStyles,attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:this.viewBoxSize+" "+this.viewBoxSize+" "+2*this.viewBoxSize+" "+2*this.viewBoxSize}},e)}},render:function(t){var e=t("div",{staticClass:"v-progress-circular__info"},this.$slots.default),n=this.genSvg(t);return t("div",this.setTextColor(this.color,{staticClass:"v-progress-circular",attrs:{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":this.indeterminate?void 0:this.normalizedValue},class:this.classes,style:this.styles,on:this.$listeners}),[n,e])}})},"./src/components/VProgressCircular/index.ts":
- /*!***************************************************!*\
- !*** ./src/components/VProgressCircular/index.ts ***!
- \***************************************************/
- /*! exports provided: VProgressCircular, default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ./VProgressCircular */"./src/components/VProgressCircular/VProgressCircular.ts");n.d(e,"VProgressCircular",(function(){return i["default"]})),e["default"]=i["default"]},"./src/components/VProgressLinear/VProgressLinear.ts":
- /*!***********************************************************!*\
- !*** ./src/components/VProgressLinear/VProgressLinear.ts ***!
- \***********************************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);n(/*! ../../stylus/components/_progress-linear.styl */"./src/stylus/components/_progress-linear.styl");var i=n(/*! ../../mixins/colorable */"./src/mixins/colorable.ts"),s=n(/*! ../../util/helpers */"./src/util/helpers.ts"),r=n(/*! ../../util/mixins */"./src/util/mixins.ts"),o=n(/*! ../transitions */"./src/components/transitions/index.js");e["default"]=Object(r["default"])(i["default"]).extend({name:"v-progress-linear",props:{active:{type:Boolean,default:!0},backgroundColor:{type:String,default:null},backgroundOpacity:{type:[Number,String],default:null},bufferValue:{type:[Number,String],default:100},color:{type:String,default:"primary"},height:{type:[Number,String],default:7},indeterminate:Boolean,query:Boolean,value:{type:[Number,String],default:0}},computed:{backgroundStyle:function(){var t=null==this.backgroundOpacity?this.backgroundColor?1:.3:parseFloat(this.backgroundOpacity);return{height:this.active?Object(s["convertToUnit"])(this.height):0,opacity:t,width:this.normalizedBufer+"%"}},effectiveWidth:function(){return this.normalizedBufer?100*+this.normalizedValue/+this.normalizedBufer:0},normalizedBufer:function(){return this.bufferValue<0?0:this.bufferValue>100?100:parseFloat(this.bufferValue)},normalizedValue:function(){return this.value<0?0:this.value>100?100:parseFloat(this.value)},styles:function(){var t={};return this.active||(t.height=0),this.indeterminate||100===parseFloat(this.normalizedBufer)||(t.width=this.normalizedBufer+"%"),t}},methods:{genDeterminate:function(t){return t("div",this.setBackgroundColor(this.color,{ref:"front",staticClass:"v-progress-linear__bar__determinate",style:{width:this.effectiveWidth+"%"}}))},genBar:function(t,e){var n;return t("div",this.setBackgroundColor(this.color,{staticClass:"v-progress-linear__bar__indeterminate",class:(n={},n[e]=!0,n)}))},genIndeterminate:function(t){return t("div",{ref:"front",staticClass:"v-progress-linear__bar__indeterminate",class:{"v-progress-linear__bar__indeterminate--active":this.active}},[this.genBar(t,"long"),this.genBar(t,"short")])}},render:function(t){var e=t(o["VFadeTransition"],this.indeterminate?[this.genIndeterminate(t)]:[]),n=t(o["VSlideXTransition"],this.indeterminate?[]:[this.genDeterminate(t)]),i=t("div",{staticClass:"v-progress-linear__bar",style:this.styles},[e,n]),r=t("div",this.setBackgroundColor(this.backgroundColor||this.color,{staticClass:"v-progress-linear__background",style:this.backgroundStyle})),a=this.$slots.default&&t("div",{staticClass:"v-progress-linear__content"},this.$slots.default);return t("div",{staticClass:"v-progress-linear",attrs:{role:"progressbar","aria-valuemin":0,"aria-valuemax":this.normalizedBufer,"aria-valuenow":this.indeterminate?void 0:this.normalizedValue},class:{"v-progress-linear--query":this.query},style:{height:Object(s["convertToUnit"])(this.height)},on:this.$listeners},[r,i,a])}})},"./src/components/VProgressLinear/index.ts":
- /*!*************************************************!*\
- !*** ./src/components/VProgressLinear/index.ts ***!
- \*************************************************/
- /*! exports provided: VProgressLinear, default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ./VProgressLinear */"./src/components/VProgressLinear/VProgressLinear.ts");n.d(e,"VProgressLinear",(function(){return i["default"]})),e["default"]=i["default"]},"./src/components/VRadioGroup/VRadio.js":
- /*!**********************************************!*\
- !*** ./src/components/VRadioGroup/VRadio.js ***!
- \**********************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);n(/*! ../../stylus/components/_radios.styl */"./src/stylus/components/_radios.styl");var i=n(/*! ../VIcon */"./src/components/VIcon/index.ts"),s=n(/*! ../VLabel */"./src/components/VLabel/index.ts"),r=n(/*! ../../mixins/colorable */"./src/mixins/colorable.ts"),o=n(/*! ../../mixins/rippleable */"./src/mixins/rippleable.ts"),a=n(/*! ../../mixins/themeable */"./src/mixins/themeable.ts"),c=n(/*! ../../mixins/selectable */"./src/mixins/selectable.js"),l=n(/*! ../../mixins/registrable */"./src/mixins/registrable.ts"),u=function(){return u=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var s in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t},u.apply(this,arguments)},h=function(t,e){var n="function"===typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,s,r=n.call(t),o=[];try{while((void 0===e||e-- >0)&&!(i=r.next()).done)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r["return"])&&n.call(r)}finally{if(s)throw s.error}}return o},d=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(h(arguments[e]));return t};e["default"]={name:"v-radio",mixins:[r["default"],o["default"],Object(l["inject"])("radio","v-radio","v-radio-group"),a["default"]],inheritAttrs:!1,props:{color:{type:String,default:"accent"},disabled:Boolean,label:String,onIcon:{type:String,default:"$vuetify.icons.radioOn"},offIcon:{type:String,default:"$vuetify.icons.radioOff"},readonly:Boolean,value:null},data:function(){return{isActive:!1,isFocused:!1,parentError:!1}},computed:{computedData:function(){return this.setTextColor(!this.parentError&&this.isActive&&this.color,{staticClass:"v-radio",class:u({"v-radio--is-disabled":this.isDisabled,"v-radio--is-focused":this.isFocused},this.themeClasses)})},computedColor:function(){return this.isActive?this.color:this.radio.validationState||!1},computedIcon:function(){return this.isActive?this.onIcon:this.offIcon},hasState:function(){return this.isActive||!!this.radio.validationState},isDisabled:function(){return this.disabled||!!this.radio.disabled},isReadonly:function(){return this.readonly||!!this.radio.readonly}},mounted:function(){this.radio.register(this)},beforeDestroy:function(){this.radio.unregister(this)},methods:{genInput:function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(t=c["default"].options.methods.genInput).call.apply(t,d([this],e))},genLabel:function(){return this.$createElement(s["default"],{on:{click:this.onChange},attrs:{for:this.id},props:{color:this.radio.validationState||"",dark:this.dark,focused:this.hasState,light:this.light}},this.$slots.label||this.label)},genRadio:function(){return this.$createElement("div",{staticClass:"v-input--selection-controls__input"},[this.genInput("radio",u({name:this.radio.name||!!this.radio._uid&&"v-radio-"+this.radio._uid,value:this.value},this.$attrs)),this.genRipple(this.setTextColor(this.computedColor)),this.$createElement(i["default"],this.setTextColor(this.computedColor,{props:{dark:this.dark,light:this.light}}),this.computedIcon)])},onFocus:function(t){this.isFocused=!0,this.$emit("focus",t)},onBlur:function(t){this.isFocused=!1,this.$emit("blur",t)},onChange:function(){this.isDisabled||this.isReadonly||this.isDisabled||this.isActive&&this.radio.mandatory||this.$emit("change",this.value)},onKeydown:function(){}},render:function(t){return t("div",this.computedData,[this.genRadio(),this.genLabel()])}}},"./src/components/VRadioGroup/VRadioGroup.js":
- /*!***************************************************!*\
- !*** ./src/components/VRadioGroup/VRadioGroup.js ***!
- \***************************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);n(/*! ../../stylus/components/_selection-controls.styl */"./src/stylus/components/_selection-controls.styl"),n(/*! ../../stylus/components/_radio-group.styl */"./src/stylus/components/_radio-group.styl");var i=n(/*! ../VInput */"./src/components/VInput/index.ts"),s=n(/*! ../../mixins/comparable */"./src/mixins/comparable.ts"),r=n(/*! ../../mixins/registrable */"./src/mixins/registrable.ts");e["default"]=i["default"].extend({name:"v-radio-group",mixins:[s["default"],Object(r["provide"])("radio")],model:{prop:"value",event:"change"},provide:function(){return{radio:this}},props:{column:{type:Boolean,default:!0},height:{type:[Number,String],default:"auto"},mandatory:{type:Boolean,default:!0},name:String,row:Boolean,value:{default:null}},data:function(){return{internalTabIndex:-1,radios:[]}},computed:{classes:function(){return{"v-input--selection-controls v-input--radio-group":!0,"v-input--radio-group--column":this.column&&!this.row,"v-input--radio-group--row":this.row}}},watch:{hasError:"setErrorState",internalValue:"setActiveRadio"},mounted:function(){this.setErrorState(this.hasError),this.setActiveRadio()},methods:{genDefaultSlot:function(){return this.$createElement("div",{staticClass:"v-input--radio-group__input",attrs:{role:"radiogroup"}},i["default"].options.methods.genDefaultSlot.call(this))},onRadioChange:function(t){this.disabled||(this.hasInput=!0,this.internalValue=t,this.setActiveRadio(),this.$nextTick(this.validate))},onRadioBlur:function(t){t.relatedTarget&&t.relatedTarget.classList.contains("v-radio")||(this.hasInput=!0,this.$emit("blur",t))},register:function(t){t.isActive=this.valueComparator(this.internalValue,t.value),t.$on("change",this.onRadioChange),t.$on("blur",this.onRadioBlur),this.radios.push(t)},setErrorState:function(t){for(var e=this.radios.length;--e>=0;)this.radios[e].parentError=t},setActiveRadio:function(){for(var t=this.radios.length;--t>=0;){var e=this.radios[t];e.isActive=this.valueComparator(this.internalValue,e.value)}},unregister:function(t){t.$off("change",this.onRadioChange),t.$off("blur",this.onRadioBlur);var e=this.radios.findIndex((function(e){return e===t}));e>-1&&this.radios.splice(e,1)}}})},"./src/components/VRadioGroup/index.js":
- /*!*********************************************!*\
- !*** ./src/components/VRadioGroup/index.js ***!
- \*********************************************/
- /*! exports provided: VRadioGroup, VRadio, default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ./VRadioGroup */"./src/components/VRadioGroup/VRadioGroup.js");n.d(e,"VRadioGroup",(function(){return i["default"]}));var s=n(/*! ./VRadio */"./src/components/VRadioGroup/VRadio.js");n.d(e,"VRadio",(function(){return s["default"]})),e["default"]={$_vuetify_subcomponents:{VRadioGroup:i["default"],VRadio:s["default"]}}},"./src/components/VRangeSlider/VRangeSlider.js":
- /*!*****************************************************!*\
- !*** ./src/components/VRangeSlider/VRangeSlider.js ***!
- \*****************************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);n(/*! ../../stylus/components/_range-sliders.styl */"./src/stylus/components/_range-sliders.styl");var i=n(/*! ../VSlider */"./src/components/VSlider/index.js"),s=n(/*! ../../util/helpers */"./src/util/helpers.ts");e["default"]={name:"v-range-slider",extends:i["default"],props:{value:{type:Array,default:function(){return[]}}},data:function(t){return{activeThumb:null,lazyValue:t.value.length?t.value:[0,0]}},computed:{classes:function(){return Object.assign({},{"v-input--range-slider":!0},i["default"].options.computed.classes.call(this))},internalValue:{get:function(){return this.lazyValue},set:function(t){var e=this,n=this,i=n.min,r=n.max,o=t.map((function(t){return e.roundValue(Math.min(Math.max(t,i),r))}));(o[0]>o[1]||o[1]<o[0])&&(null!==this.activeThumb&&(this.activeThumb=1===this.activeThumb?0:1),o=[o[1],o[0]]),this.lazyValue=o,Object(s["deepEqual"])(o,this.value)||this.$emit("input",o),this.validate()}},inputWidth:function(){var t=this;return this.internalValue.map((function(e){return(t.roundValue(e)-t.min)/(t.max-t.min)*100}))},isDirty:function(){var t=this;return this.internalValue.some((function(e){return e!==t.min}))||this.alwaysDirty},trackFillStyles:function(){var t=i["default"].options.computed.trackFillStyles.call(this),e=Math.abs(this.inputWidth[0]-this.inputWidth[1]);return t.width="calc("+e+"% - "+this.trackPadding+"px)",t[this.$vuetify.rtl?"right":"left"]=this.inputWidth[0]+"%",t},trackPadding:function(){return this.isDirty||this.internalValue[0]?0:i["default"].options.computed.trackPadding.call(this)}},methods:{getIndexOfClosestValue:function(t,e){return Math.abs(t[0]-e)<Math.abs(t[1]-e)?0:1},genInput:function(){var t=this;return Object(s["createRange"])(2).map((function(e){var n=i["default"].options.methods.genInput.call(t);return n.data.attrs.value=t.internalValue[e],n.data.on.focus=function(n){t.activeThumb=e,i["default"].options.methods.onFocus.call(t,n)},n}))},genChildren:function(){var t=this;return[this.genInput(),this.genTrackContainer(),this.genSteps(),Object(s["createRange"])(2).map((function(e){var n=t.internalValue[e],i=function(n){t.isActive=!0,t.activeThumb=e,t.onThumbMouseDown(n)},s=t.inputWidth[e],r=(t.isFocused||t.isActive)&&t.activeThumb===e;return t.genThumbContainer(n,s,r,i)}))]},onSliderClick:function(t){this.isActive||(this.isFocused=!0,this.onMouseMove(t,!0),this.$emit("change",this.internalValue))},onMouseMove:function(t,e){void 0===e&&(e=!1);var n=this.parseMouseMove(t),i=n.value,s=n.isInsideTrack;s&&(e&&(this.activeThumb=this.getIndexOfClosestValue(this.internalValue,i)),this.setInternalValue(i))},onKeyDown:function(t){var e=this.parseKeyDown(t,this.internalValue[this.activeThumb]);null!=e&&this.setInternalValue(e)},setInternalValue:function(t){var e=this;this.internalValue=this.internalValue.map((function(n,i){return i===e.activeThumb?t:Number(n)}))}}}},"./src/components/VRangeSlider/index.js":
- /*!**********************************************!*\
- !*** ./src/components/VRangeSlider/index.js ***!
- \**********************************************/
- /*! exports provided: VRangeSlider, default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ./VRangeSlider */"./src/components/VRangeSlider/VRangeSlider.js");n.d(e,"VRangeSlider",(function(){return i["default"]})),e["default"]=i["default"]},"./src/components/VRating/VRating.ts":
- /*!*******************************************!*\
- !*** ./src/components/VRating/VRating.ts ***!
- \*******************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);n(/*! ../../stylus/components/_rating.styl */"./src/stylus/components/_rating.styl");var i=n(/*! ../VIcon */"./src/components/VIcon/index.ts"),s=n(/*! ../../mixins/colorable */"./src/mixins/colorable.ts"),r=n(/*! ../../mixins/delayable */"./src/mixins/delayable.ts"),o=n(/*! ../../mixins/sizeable */"./src/mixins/sizeable.ts"),a=n(/*! ../../mixins/rippleable */"./src/mixins/rippleable.ts"),c=n(/*! ../../mixins/themeable */"./src/mixins/themeable.ts"),l=n(/*! ../../util/helpers */"./src/util/helpers.ts"),u=n(/*! ../../util/mixins */"./src/util/mixins.ts");e["default"]=Object(u["default"])(s["default"],r["default"],a["default"],o["default"],c["default"]).extend({name:"v-rating",props:{backgroundColor:{type:String,default:"accent"},color:{type:String,default:"primary"},dense:Boolean,emptyIcon:{type:String,default:"$vuetify.icons.ratingEmpty"},fullIcon:{type:String,default:"$vuetify.icons.ratingFull"},halfIcon:{type:String,default:"$vuetify.icons.ratingHalf"},halfIncrements:Boolean,length:{type:[Number,String],default:5},clearable:Boolean,readonly:Boolean,hover:Boolean,value:{type:Number,default:0}},data:function(){return{hoverIndex:-1,internalValue:this.value}},computed:{directives:function(){return this.readonly||!this.ripple?[]:[{name:"ripple",value:{circle:!0}}]},iconProps:function(){var t=this.$props,e=t.dark,n=t.medium,i=t.large,s=t.light,r=t.small,o=t.size,a=t.xLarge;return{dark:e,medium:n,large:i,light:s,size:o,small:r,xLarge:a}},isHovering:function(){return this.hover&&this.hoverIndex>=0}},watch:{internalValue:function(t){t!==this.value&&this.$emit("input",t)},value:function(t){this.internalValue=t}},methods:{createClickFn:function(t){var e=this;return function(n){if(!e.readonly){var i=e.genHoverIndex(n,t);e.clearable&&e.internalValue===i?e.internalValue=0:e.internalValue=i}}},createProps:function(t){var e={index:t,value:this.internalValue,click:this.createClickFn(t),isFilled:Math.floor(this.internalValue)>t,isHovered:Math.floor(this.hoverIndex)>t};return this.halfIncrements&&(e.isHalfHovered=!e.isHovered&&(this.hoverIndex-t)%1>0,e.isHalfFilled=!e.isFilled&&(this.internalValue-t)%1>0),e},genHoverIndex:function(t,e){return e+(this.isHalfEvent(t)?.5:1)},getIconName:function(t){var e=this.isHovering?t.isHovered:t.isFilled,n=this.isHovering?t.isHalfHovered:t.isHalfFilled;return e?this.fullIcon:n?this.halfIcon:this.emptyIcon},getColor:function(t){if(this.isHovering){if(t.isHovered||t.isHalfHovered)return this.color}else if(t.isFilled||t.isHalfFilled)return this.color;return this.backgroundColor},isHalfEvent:function(t){if(this.halfIncrements){var e=t.target&&t.target.getBoundingClientRect();if(e&&t.pageX-e.left<e.width/2)return!0}return!1},onMouseEnter:function(t,e){var n=this;this.runDelay("open",(function(){n.hoverIndex=n.genHoverIndex(t,e)}))},onMouseLeave:function(){var t=this;this.runDelay("close",(function(){return t.hoverIndex=-1}))},genItem:function(t){var e=this,n=this.createProps(t);if(this.$scopedSlots.item)return this.$scopedSlots.item(n);var s={click:n.click};return this.hover&&(s.mouseenter=function(n){return e.onMouseEnter(n,t)},s.mouseleave=this.onMouseLeave,this.halfIncrements&&(s.mousemove=function(n){return e.onMouseEnter(n,t)})),this.$createElement(i["default"],this.setTextColor(this.getColor(n),{directives:this.directives,props:this.iconProps,on:s}),[this.getIconName(n)])}},render:function(t){var e=this,n=Object(l["createRange"])(Number(this.length)).map((function(t){return e.genItem(t)}));return t("div",{staticClass:"v-rating",class:{"v-rating--readonly":this.readonly,"v-rating--dense":this.dense}},n)}})},"./src/components/VRating/index.ts":
- /*!*****************************************!*\
- !*** ./src/components/VRating/index.ts ***!
- \*****************************************/
- /*! exports provided: VRating, default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ./VRating */"./src/components/VRating/VRating.ts");n.d(e,"VRating",(function(){return i["default"]})),e["default"]=i["default"]},"./src/components/VResponsive/VResponsive.ts":
- /*!***************************************************!*\
- !*** ./src/components/VResponsive/VResponsive.ts ***!
- \***************************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);n(/*! ../../stylus/components/_responsive.styl */"./src/stylus/components/_responsive.styl");var i=n(/*! ../../mixins/measurable */"./src/mixins/measurable.ts"),s=n(/*! ../../util/mixins */"./src/util/mixins.ts");e["default"]=Object(s["default"])(i["default"]).extend({name:"v-responsive",props:{aspectRatio:[String,Number]},computed:{computedAspectRatio:function(){return Number(this.aspectRatio)},aspectStyle:function(){return this.computedAspectRatio?{paddingBottom:1/this.computedAspectRatio*100+"%"}:void 0},__cachedSizer:function(){return this.aspectStyle?this.$createElement("div",{style:this.aspectStyle,staticClass:"v-responsive__sizer"}):[]}},methods:{genContent:function(){return this.$createElement("div",{staticClass:"v-responsive__content"},this.$slots.default)}},render:function(t){return t("div",{staticClass:"v-responsive",style:this.measurableStyles,on:this.$listeners},[this.__cachedSizer,this.genContent()])}})},"./src/components/VResponsive/index.ts":
- /*!*********************************************!*\
- !*** ./src/components/VResponsive/index.ts ***!
- \*********************************************/
- /*! exports provided: VResponsive, default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ./VResponsive */"./src/components/VResponsive/VResponsive.ts");n.d(e,"VResponsive",(function(){return i["default"]})),e["default"]=i["default"]},"./src/components/VSelect/VSelect.js":
- /*!*******************************************!*\
- !*** ./src/components/VSelect/VSelect.js ***!
- \*******************************************/
- /*! exports provided: defaultMenuProps, default */function(t,e,n){"use strict";n.r(e),n.d(e,"defaultMenuProps",(function(){return p}));n(/*! ../../stylus/components/_text-fields.styl */"./src/stylus/components/_text-fields.styl"),n(/*! ../../stylus/components/_select.styl */"./src/stylus/components/_select.styl");var i=n(/*! ../VChip */"./src/components/VChip/index.ts"),s=n(/*! ../VMenu */"./src/components/VMenu/index.js"),r=n(/*! ./VSelectList */"./src/components/VSelect/VSelectList.js"),o=n(/*! ../VTextField/VTextField */"./src/components/VTextField/VTextField.js"),a=n(/*! ../../mixins/comparable */"./src/mixins/comparable.ts"),c=n(/*! ../../mixins/filterable */"./src/mixins/filterable.ts"),l=n(/*! ../../directives/click-outside */"./src/directives/click-outside.ts"),u=n(/*! ../../util/helpers */"./src/util/helpers.ts"),h=n(/*! ../../util/console */"./src/util/console.ts"),d=function(){return d=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var s in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t},d.apply(this,arguments)},f=function(t){var e="function"===typeof Symbol&&t[Symbol.iterator],n=0;return e?e.call(t):{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}},p={closeOnClick:!1,closeOnContentClick:!1,openOnClick:!1,maxHeight:300};e["default"]=o["default"].extend({name:"v-select",directives:{ClickOutside:l["default"]},mixins:[a["default"],c["default"]],props:{appendIcon:{type:String,default:"$vuetify.icons.dropdown"},appendIconCb:Function,attach:{type:null,default:!1},browserAutocomplete:{type:String,default:"on"},cacheItems:Boolean,chips:Boolean,clearable:Boolean,deletableChips:Boolean,dense:Boolean,hideSelected:Boolean,items:{type:Array,default:function(){return[]}},itemAvatar:{type:[String,Array,Function],default:"avatar"},itemDisabled:{type:[String,Array,Function],default:"disabled"},itemText:{type:[String,Array,Function],default:"text"},itemValue:{type:[String,Array,Function],default:"value"},menuProps:{type:[String,Array,Object],default:function(){return p}},multiple:Boolean,openOnClear:Boolean,returnObject:Boolean,searchInput:{default:null},smallChips:Boolean},data:function(t){return{attrsInput:{role:"combobox"},cachedItems:t.cacheItems?t.items:[],content:null,isBooted:!1,isMenuActive:!1,lastItem:20,lazyValue:void 0!==t.value?t.value:t.multiple?[]:void 0,selectedIndex:-1,selectedItems:[],keyboardLookupPrefix:"",keyboardLookupLastTime:0}},computed:{allItems:function(){return this.filterDuplicates(this.cachedItems.concat(this.items))},classes:function(){return Object.assign({},o["default"].options.computed.classes.call(this),{"v-select":!0,"v-select--chips":this.hasChips,"v-select--chips--small":this.smallChips,"v-select--is-menu-active":this.isMenuActive})},computedItems:function(){return this.allItems},counterValue:function(){return this.multiple?this.selectedItems.length:(this.getText(this.selectedItems[0])||"").toString().length},directives:function(){return this.isFocused?[{name:"click-outside",value:this.blur,args:{closeConditional:this.closeConditional}}]:void 0},dynamicHeight:function(){return"auto"},hasChips:function(){return this.chips||this.smallChips},hasSlot:function(){return Boolean(this.hasChips||this.$scopedSlots.selection)},isDirty:function(){return this.selectedItems.length>0},listData:function(){var t,e=this.$vnode&&this.$vnode.context.$options._scopeId;return{attrs:e?(t={},t[e]=!0,t):null,props:{action:this.multiple&&!this.isHidingSelected,color:this.color,dense:this.dense,hideSelected:this.hideSelected,items:this.virtualizedItems,noDataText:this.$vuetify.t(this.noDataText),selectedItems:this.selectedItems,itemAvatar:this.itemAvatar,itemDisabled:this.itemDisabled,itemValue:this.itemValue,itemText:this.itemText},on:{select:this.selectItem},scopedSlots:{item:this.$scopedSlots.item}}},staticList:function(){return(this.$slots["no-data"]||this.$slots["prepend-item"]||this.$slots["append-item"])&&Object(h["consoleError"])("assert: staticList should not be called if slots are used"),this.$createElement(r["default"],this.listData)},virtualizedItems:function(){return this.$_menuProps.auto?this.computedItems:this.computedItems.slice(0,this.lastItem)},menuCanShow:function(){return!0},$_menuProps:function(){var t;return t="string"===typeof this.menuProps?this.menuProps.split(","):this.menuProps,Array.isArray(t)&&(t=t.reduce((function(t,e){return t[e.trim()]=!0,t}),{})),d({},p,{value:this.menuCanShow&&this.isMenuActive,nudgeBottom:this.nudgeBottom?this.nudgeBottom:t.offsetY?1:0},t)}},watch:{internalValue:function(t){this.initialValue=t,this.setSelectedItems()},isBooted:function(){var t=this;this.$nextTick((function(){t.content&&t.content.addEventListener&&t.content.addEventListener("scroll",t.onScroll,!1)}))},isMenuActive:function(t){t&&(this.isBooted=!0)},items:{immediate:!0,handler:function(t){this.cacheItems&&(this.cachedItems=this.filterDuplicates(this.cachedItems.concat(t))),this.setSelectedItems()}}},mounted:function(){this.content=this.$refs.menu&&this.$refs.menu.$refs.content},methods:{blur:function(t){o["default"].options.methods.blur.call(this,t),this.isMenuActive=!1,this.isFocused=!1,this.selectedIndex=-1},activateMenu:function(){this.isMenuActive=!0},clearableCallback:function(){var t=this;this.setValue(this.multiple?[]:void 0),this.$nextTick((function(){return t.$refs.input.focus()})),this.openOnClear&&(this.isMenuActive=!0)},closeConditional:function(t){return!this._isDestroyed&&!!this.content&&!this.content.contains(t.target)&&!!this.$el&&!this.$el.contains(t.target)&&t.target!==this.$el},filterDuplicates:function(t){for(var e=new Map,n=0;n<t.length;++n){var i=t[n],s=this.getValue(i);!e.has(s)&&e.set(s,i)}return Array.from(e.values())},findExistingIndex:function(t){var e=this,n=this.getValue(t);return(this.internalValue||[]).findIndex((function(t){return e.valueComparator(e.getValue(t),n)}))},genChipSelection:function(t,e){var n=this,s=this.disabled||this.readonly||this.getDisabled(t);return this.$createElement(i["default"],{staticClass:"v-chip--select-multi",attrs:{tabindex:-1},props:{close:this.deletableChips&&!s,disabled:s,selected:e===this.selectedIndex,small:this.smallChips},on:{click:function(t){s||(t.stopPropagation(),n.selectedIndex=e)},input:function(){return n.onChipInput(t)}},key:this.getValue(t)},this.getText(t))},genCommaSelection:function(t,e,n){var i=JSON.stringify(this.getValue(t)),s=e===this.selectedIndex&&this.color,r=this.disabled||this.getDisabled(t);return this.$createElement("div",this.setTextColor(s,{staticClass:"v-select__selection v-select__selection--comma",class:{"v-select__selection--disabled":r},key:i}),this.getText(t)+(n?"":", "))},genDefaultSlot:function(){var t=this.genSelections(),e=this.genInput();return Array.isArray(t)?t.push(e):(t.children=t.children||[],t.children.push(e)),[this.$createElement("div",{staticClass:"v-select__slot",directives:this.directives},[this.genLabel(),this.prefix?this.genAffix("prefix"):null,t,this.suffix?this.genAffix("suffix"):null,this.genClearIcon(),this.genIconSlot()]),this.genMenu(),this.genProgress()]},genInput:function(){var t=o["default"].options.methods.genInput.call(this);return t.data.domProps.value=null,t.data.attrs.readonly=!0,t.data.attrs["aria-readonly"]=String(this.readonly),t.data.on.keypress=this.onKeyPress,t},genList:function(){return this.$slots["no-data"]||this.$slots["prepend-item"]||this.$slots["append-item"]?this.genListWithSlot():this.staticList},genListWithSlot:function(){var t=this,e=["prepend-item","no-data","append-item"].filter((function(e){return t.$slots[e]})).map((function(e){return t.$createElement("template",{slot:e},t.$slots[e])}));return this.$createElement(r["default"],d({},this.listData),e)},genMenu:function(){var t,e,n=this,i=this.$_menuProps;i.activator=this.$refs["input-slot"];var r=Object.keys(s["default"].options.props),o=Object.keys(this.$attrs).reduce((function(t,e){return r.includes(Object(u["camelize"])(e))&&t.push(e),t}),[]);try{for(var a=f(o),c=a.next();!c.done;c=a.next()){var l=c.value;i[Object(u["camelize"])(l)]=this.$attrs[l]}}catch(v){t={error:v}}finally{try{c&&!c.done&&(e=a.return)&&e.call(a)}finally{if(t)throw t.error}}if(o.length){var d=o.length>1,p=o.reduce((function(t,e){return t[Object(u["camelize"])(e)]=n.$attrs[e],t}),{}),m=o.map((function(t){return"'"+t+"'"})).join(", "),g=d?"\n":"'",b=Object.keys(p).every((function(t){var e=s["default"].options.props[t],n=p[t];return!0===n||(e.type||e)===Boolean&&""===n}));p=b?Object.keys(p).join(", "):JSON.stringify(p,null,d?2:0).replace(/"([^(")"]+)":/g,"$1:").replace(/"/g,"'"),Object(h["consoleWarn"])(m+" "+(d?"are":"is")+" deprecated, use "+g+(b?"":":")+'menu-props="'+p+'"'+g+" instead",this)}return""===this.attach||!0===this.attach||"attach"===this.attach?i.attach=this.$el:i.attach=this.attach,this.$createElement(s["default"],{props:i,on:{input:function(t){n.isMenuActive=t,n.isFocused=t}},ref:"menu"},[this.genList()])},genSelections:function(){var t,e=this.selectedItems.length,n=new Array(e);t=this.$scopedSlots.selection?this.genSlotSelection:this.hasChips?this.genChipSelection:this.genCommaSelection;while(e--)n[e]=t(this.selectedItems[e],e,e===n.length-1);return this.$createElement("div",{staticClass:"v-select__selections"},n)},genSlotSelection:function(t,e){return this.$scopedSlots.selection({parent:this,item:t,index:e,selected:e===this.selectedIndex,disabled:this.disabled||this.readonly})},getMenuIndex:function(){return this.$refs.menu?this.$refs.menu.listIndex:-1},getDisabled:function(t){return Object(u["getPropertyFromItem"])(t,this.itemDisabled,!1)},getText:function(t){return Object(u["getPropertyFromItem"])(t,this.itemText,t)},getValue:function(t){return Object(u["getPropertyFromItem"])(t,this.itemValue,this.getText(t))},onBlur:function(t){t&&this.$emit("blur",t)},onChipInput:function(t){this.multiple?this.selectItem(t):this.setValue(null),0===this.selectedItems.length?this.isMenuActive=!0:this.isMenuActive=!1,this.selectedIndex=-1},onClick:function(){this.isDisabled||(this.isMenuActive=!0,this.isFocused||(this.isFocused=!0,this.$emit("focus")))},onEnterDown:function(){this.onBlur()},onEscDown:function(t){t.preventDefault(),this.isMenuActive&&(t.stopPropagation(),this.isMenuActive=!1)},onKeyPress:function(t){var e=this;if(!this.multiple){var n=1e3,i=performance.now();i-this.keyboardLookupLastTime>n&&(this.keyboardLookupPrefix=""),this.keyboardLookupPrefix+=t.key.toLowerCase(),this.keyboardLookupLastTime=i;var s=this.allItems.findIndex((function(t){var n=(e.getText(t)||"").toString();return n.toLowerCase().startsWith(e.keyboardLookupPrefix)})),r=this.allItems[s];-1!==s&&(this.setValue(this.returnObject?r:this.getValue(r)),setTimeout((function(){return e.setMenuIndex(s)})))}},onKeyDown:function(t){var e=t.keyCode;return this.readonly||this.isMenuActive||![u["keyCodes"].enter,u["keyCodes"].space,u["keyCodes"].up,u["keyCodes"].down].includes(e)||this.activateMenu(),this.isMenuActive&&this.$refs.menu&&this.$refs.menu.changeListIndex(t),e===u["keyCodes"].enter?this.onEnterDown(t):e===u["keyCodes"].esc?this.onEscDown(t):e===u["keyCodes"].tab?this.onTabDown(t):void 0},onMouseUp:function(t){var e=this;if(this.hasMouseDown){var n=this.$refs["append-inner"];this.isMenuActive&&n&&(n===t.target||n.contains(t.target))?this.$nextTick((function(){return e.isMenuActive=!e.isMenuActive})):this.isEnclosed&&!this.isDisabled&&(this.isMenuActive=!0)}o["default"].options.methods.onMouseUp.call(this,t)},onScroll:function(){var t=this;if(this.isMenuActive){if(this.lastItem>=this.computedItems.length)return;var e=this.content.scrollHeight-(this.content.scrollTop+this.content.clientHeight)<200;e&&(this.lastItem+=20)}else requestAnimationFrame((function(){return t.content.scrollTop=0}))},onTabDown:function(t){var e=this.getMenuIndex(),n=this.$refs.menu.tiles[e];n&&n.className.indexOf("v-list__tile--highlighted")>-1&&this.isMenuActive&&e>-1?(t.preventDefault(),t.stopPropagation(),n.click()):this.blur(t)},selectItem:function(t){var e=this;if(this.multiple){var n=(this.internalValue||[]).slice(),i=this.findExistingIndex(t);-1!==i?n.splice(i,1):n.push(t),this.setValue(n.map((function(t){return e.returnObject?t:e.getValue(t)}))),this.$nextTick((function(){e.$refs.menu&&e.$refs.menu.updateDimensions()}))}else this.setValue(this.returnObject?t:this.getValue(t)),this.isMenuActive=!1},setMenuIndex:function(t){this.$refs.menu&&(this.$refs.menu.listIndex=t)},setSelectedItems:function(){var t,e,n=this,i=[],s=this.multiple&&Array.isArray(this.internalValue)?this.internalValue:[this.internalValue],r=function(t){var e=o.allItems.findIndex((function(e){return n.valueComparator(n.getValue(e),n.getValue(t))}));e>-1&&i.push(o.allItems[e])},o=this;try{for(var a=f(s),c=a.next();!c.done;c=a.next()){var l=c.value;r(l)}}catch(u){t={error:u}}finally{try{c&&!c.done&&(e=a.return)&&e.call(a)}finally{if(t)throw t.error}}this.selectedItems=i},setValue:function(t){var e=this.internalValue;this.internalValue=t,t!==e&&this.$emit("change",t)}}})},"./src/components/VSelect/VSelectList.js":
- /*!***********************************************!*\
- !*** ./src/components/VSelect/VSelectList.js ***!
- \***********************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);n(/*! ../../stylus/components/_cards.styl */"./src/stylus/components/_cards.styl");var i=n(/*! ../VCheckbox */"./src/components/VCheckbox/index.js"),s=n(/*! ../VDivider */"./src/components/VDivider/index.ts"),r=n(/*! ../VSubheader */"./src/components/VSubheader/index.ts"),o=n(/*! ../VList */"./src/components/VList/index.ts"),a=n(/*! ../../mixins/colorable */"./src/mixins/colorable.ts"),c=n(/*! ../../mixins/themeable */"./src/mixins/themeable.ts"),l=n(/*! ../../util/helpers */"./src/util/helpers.ts"),u=function(t){var e="function"===typeof Symbol&&t[Symbol.iterator],n=0;return e?e.call(t):{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}};e["default"]={name:"v-select-list",mixins:[a["default"],c["default"]],props:{action:Boolean,dense:Boolean,hideSelected:Boolean,items:{type:Array,default:function(){return[]}},itemAvatar:{type:[String,Array,Function],default:"avatar"},itemDisabled:{type:[String,Array,Function],default:"disabled"},itemText:{type:[String,Array,Function],default:"text"},itemValue:{type:[String,Array,Function],default:"value"},noDataText:String,noFilter:Boolean,searchInput:{default:null},selectedItems:{type:Array,default:function(){return[]}}},computed:{parsedItems:function(){var t=this;return this.selectedItems.map((function(e){return t.getValue(e)}))},tileActiveClass:function(){return Object.keys(this.setTextColor(this.color).class||{}).join(" ")},staticNoDataTile:function(){var t={on:{mousedown:function(t){return t.preventDefault()}}};return this.$createElement(o["VListTile"],t,[this.genTileContent(this.noDataText)])}},methods:{genAction:function(t,e){var n=this,s={on:{click:function(e){e.stopPropagation(),n.$emit("select",t)}}};return this.$createElement(o["VListTileAction"],s,[this.$createElement(i["default"],{props:{color:this.color,inputValue:e}})])},genDivider:function(t){return this.$createElement(s["default"],{props:t})},genFilteredText:function(t){if(t=(t||"").toString(),!this.searchInput||this.noFilter)return Object(l["escapeHTML"])(t);var e=this.getMaskedCharacters(t),n=e.start,i=e.middle,s=e.end;return""+Object(l["escapeHTML"])(n)+this.genHighlight(i)+Object(l["escapeHTML"])(s)},genHeader:function(t){return this.$createElement(r["default"],{props:t},t.header)},genHighlight:function(t){return'<span class="v-list__tile__mask">'+Object(l["escapeHTML"])(t)+"</span>"},getMaskedCharacters:function(t){var e=(this.searchInput||"").toString().toLocaleLowerCase(),n=t.toLocaleLowerCase().indexOf(e);if(n<0)return{start:"",middle:t,end:""};var i=t.slice(0,n),s=t.slice(n,n+e.length),r=t.slice(n+e.length);return{start:i,middle:s,end:r}},genTile:function(t,e,n,i){var s=this;void 0===e&&(e=null),void 0===n&&(n=!1),void 0===i&&(i=this.hasItem(t)),t===Object(t)&&(n=this.getAvatar(t),e=null!==e?e:this.getDisabled(t));var r={on:{mousedown:function(t){t.preventDefault()},click:function(){return e||s.$emit("select",t)}},props:{activeClass:this.tileActiveClass,avatar:n,disabled:e,ripple:!0,value:i,color:this.color}};if(!this.$scopedSlots.item)return this.$createElement(o["VListTile"],r,[this.action&&!this.hideSelected&&this.items.length>0?this.genAction(t,i):null,this.genTileContent(t)]);var a=this,c=this.$scopedSlots.item({parent:a,item:t,tile:r});return this.needsTile(c)?this.$createElement(o["VListTile"],r,c):c},genTileContent:function(t){var e=this.genFilteredText(this.getText(t));return this.$createElement(o["VListTileContent"],[this.$createElement(o["VListTileTitle"],{domProps:{innerHTML:e}})])},hasItem:function(t){return this.parsedItems.indexOf(this.getValue(t))>-1},needsTile:function(t){return 1!==t.length||null==t[0].componentOptions||"v-list-tile"!==t[0].componentOptions.Ctor.options.name},getAvatar:function(t){return Boolean(Object(l["getPropertyFromItem"])(t,this.itemAvatar,!1))},getDisabled:function(t){return Boolean(Object(l["getPropertyFromItem"])(t,this.itemDisabled,!1))},getText:function(t){return String(Object(l["getPropertyFromItem"])(t,this.itemText,t))},getValue:function(t){return Object(l["getPropertyFromItem"])(t,this.itemValue,this.getText(t))}},render:function(){var t,e,n=[];try{for(var i=u(this.items),s=i.next();!s.done;s=i.next()){var r=s.value;this.hideSelected&&this.hasItem(r)||(null==r?n.push(this.genTile(r)):r.header?n.push(this.genHeader(r)):r.divider?n.push(this.genDivider(r)):n.push(this.genTile(r)))}}catch(a){t={error:a}}finally{try{s&&!s.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}return n.length||n.push(this.$slots["no-data"]||this.staticNoDataTile),this.$slots["prepend-item"]&&n.unshift(this.$slots["prepend-item"]),this.$slots["append-item"]&&n.push(this.$slots["append-item"]),this.$createElement("div",{staticClass:"v-select-list v-card",class:this.themeClasses},[this.$createElement(o["VList"],{props:{dense:this.dense}},n)])}}},"./src/components/VSelect/index.js":
- /*!*****************************************!*\
- !*** ./src/components/VSelect/index.js ***!
- \*****************************************/
- /*! exports provided: VSelect, default */function(t,e,n){"use strict";n.r(e),n.d(e,"VSelect",(function(){return u}));var i=n(/*! ./VSelect */"./src/components/VSelect/VSelect.js"),s=n(/*! ../VOverflowBtn */"./src/components/VOverflowBtn/index.js"),r=n(/*! ../VAutocomplete */"./src/components/VAutocomplete/index.js"),o=n(/*! ../VCombobox */"./src/components/VCombobox/index.js"),a=n(/*! ../../util/rebuildFunctionalSlots */"./src/util/rebuildFunctionalSlots.ts"),c=n(/*! ../../util/dedupeModelListeners */"./src/util/dedupeModelListeners.ts"),l=n(/*! ../../util/console */"./src/util/console.ts"),u={functional:!0,$_wrapperFor:i["default"],props:{autocomplete:Boolean,combobox:Boolean,multiple:Boolean,tags:Boolean,editable:Boolean,overflow:Boolean,segmented:Boolean},render:function(t,e){var n=e.props,h=e.data,d=e.slots,f=e.parent;Object(c["default"])(h);var p=Object(a["default"])(d(),t);return n.autocomplete&&Object(l["deprecate"])("<v-select autocomplete>","<v-autocomplete>",u,f),n.combobox&&Object(l["deprecate"])("<v-select combobox>","<v-combobox>",u,f),n.tags&&Object(l["deprecate"])("<v-select tags>","<v-combobox multiple>",u,f),n.overflow&&Object(l["deprecate"])("<v-select overflow>","<v-overflow-btn>",u,f),n.segmented&&Object(l["deprecate"])("<v-select segmented>","<v-overflow-btn segmented>",u,f),n.editable&&Object(l["deprecate"])("<v-select editable>","<v-overflow-btn editable>",u,f),h.attrs=h.attrs||{},n.combobox||n.tags?(h.attrs.multiple=n.tags,t(o["default"],h,p)):n.autocomplete?(h.attrs.multiple=n.multiple,t(r["default"],h,p)):n.overflow||n.segmented||n.editable?(h.attrs.segmented=n.segmented,h.attrs.editable=n.editable,t(s["default"],h,p)):(h.attrs.multiple=n.multiple,t(i["default"],h,p))}};e["default"]=u},"./src/components/VSheet/VSheet.ts":
- /*!*****************************************!*\
- !*** ./src/components/VSheet/VSheet.ts ***!
- \*****************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);n(/*! ../../stylus/components/_sheet.styl */"./src/stylus/components/_sheet.styl");var i=n(/*! ../../mixins/colorable */"./src/mixins/colorable.ts"),s=n(/*! ../../mixins/elevatable */"./src/mixins/elevatable.ts"),r=n(/*! ../../mixins/measurable */"./src/mixins/measurable.ts"),o=n(/*! ../../mixins/themeable */"./src/mixins/themeable.ts"),a=n(/*! ../../util/mixins */"./src/util/mixins.ts"),c=function(){return c=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var s in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t},c.apply(this,arguments)};e["default"]=Object(a["default"])(i["default"],s["default"],r["default"],o["default"]).extend({name:"v-sheet",props:{tag:{type:String,default:"div"},tile:Boolean},computed:{classes:function(){return c({"v-sheet":!0,"v-sheet--tile":this.tile},this.themeClasses,this.elevationClasses)},styles:function(){return this.measurableStyles}},render:function(t){var e={class:this.classes,style:this.styles,on:this.$listeners};return t(this.tag,this.setBackgroundColor(this.color,e),this.$slots.default)}})},"./src/components/VSheet/index.ts":
- /*!****************************************!*\
- !*** ./src/components/VSheet/index.ts ***!
- \****************************************/
- /*! exports provided: VSheet, default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ./VSheet */"./src/components/VSheet/VSheet.ts");n.d(e,"VSheet",(function(){return i["default"]})),e["default"]=i["default"]},"./src/components/VSlider/VSlider.js":
- /*!*******************************************!*\
- !*** ./src/components/VSlider/VSlider.js ***!
- \*******************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);n(/*! ../../stylus/components/_sliders.styl */"./src/stylus/components/_sliders.styl");var i=n(/*! ../transitions */"./src/components/transitions/index.js"),s=n(/*! ../VInput */"./src/components/VInput/index.ts"),r=n(/*! ../../directives/click-outside */"./src/directives/click-outside.ts"),o=n(/*! ../../util/helpers */"./src/util/helpers.ts"),a=n(/*! ../../util/console */"./src/util/console.ts"),c=n(/*! ../../mixins/loadable */"./src/mixins/loadable.ts"),l=function(){return l=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var s in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t},l.apply(this,arguments)};e["default"]=s["default"].extend({name:"v-slider",directives:{ClickOutside:r["default"]},mixins:[c["default"]],props:{alwaysDirty:Boolean,inverseLabel:Boolean,label:String,min:{type:[Number,String],default:0},max:{type:[Number,String],default:100},step:{type:[Number,String],default:1},ticks:{type:[Boolean,String],default:!1,validator:function(t){return"boolean"===typeof t||"always"===t}},tickLabels:{type:Array,default:function(){return[]}},tickSize:{type:[Number,String],default:1},thumbColor:{type:String,default:null},thumbLabel:{type:[Boolean,String],default:null,validator:function(t){return"boolean"===typeof t||"always"===t}},thumbSize:{type:[Number,String],default:32},trackColor:{type:String,default:null},value:[Number,String]},data:function(t){return{app:{},isActive:!1,keyPressed:0,lazyValue:"undefined"!==typeof t.value?t.value:Number(t.min),oldValue:null}},computed:{classes:function(){return{"v-input--slider":!0,"v-input--slider--ticks":this.showTicks,"v-input--slider--inverse-label":this.inverseLabel,"v-input--slider--ticks-labels":this.tickLabels.length>0,"v-input--slider--thumb-label":this.thumbLabel||this.$scopedSlots.thumbLabel}},showTicks:function(){return this.tickLabels.length>0||!this.disabled&&this.stepNumeric&&!!this.ticks},showThumbLabel:function(){return!this.disabled&&(!!this.thumbLabel||""===this.thumbLabel||this.$scopedSlots["thumb-label"])},computedColor:function(){return this.disabled?null:this.validationState||this.color||"primary"},computedTrackColor:function(){return this.disabled?null:this.trackColor||null},computedThumbColor:function(){return this.disabled||!this.isDirty?null:this.validationState||this.thumbColor||this.color||"primary"},internalValue:{get:function(){return this.lazyValue},set:function(t){var e=this,n=e.min,i=e.max,s=this.roundValue(Math.min(Math.max(t,n),i));s!==this.lazyValue&&(this.lazyValue=s,this.$emit("input",s),this.validate())}},stepNumeric:function(){return this.step>0?parseFloat(this.step):0},trackFillStyles:function(){var t=this.$vuetify.rtl?"auto":0,e=this.$vuetify.rtl?0:"auto",n=this.inputWidth+"%";return this.disabled&&(n="calc("+this.inputWidth+"% - 8px)"),{transition:this.trackTransition,left:t,right:e,width:n}},trackPadding:function(){return this.isActive||this.inputWidth>0||this.disabled?0:7},trackStyles:function(){var t=this.disabled?"calc("+this.inputWidth+"% + 8px)":this.trackPadding+"px",e=this.$vuetify.rtl?"auto":t,n=this.$vuetify.rtl?t:"auto",i=this.disabled?"calc("+(100-this.inputWidth)+"% - 8px)":"100%";return{transition:this.trackTransition,left:e,right:n,width:i}},tickStyles:function(){var t=Number(this.tickSize);return{"border-width":t+"px","border-radius":t>1?"50%":null,transform:t>1?"translateX(-"+t+"px) translateY(-"+(t-1)+"px)":null}},trackTransition:function(){return this.keyPressed>=2?"none":""},numTicks:function(){return Math.ceil((this.max-this.min)/this.stepNumeric)},inputWidth:function(){return(this.roundValue(this.internalValue)-this.min)/(this.max-this.min)*100},isDirty:function(){return this.internalValue>this.min||this.alwaysDirty}},watch:{min:function(t){t>this.internalValue&&this.$emit("input",parseFloat(t))},max:function(t){t<this.internalValue&&this.$emit("input",parseFloat(t))},value:function(t){this.internalValue=t}},mounted:function(){this.app=document.querySelector("[data-app]")||Object(a["consoleWarn"])("Missing v-app or a non-body wrapping element with the [data-app] attribute",this)},methods:{genDefaultSlot:function(){var t=[this.genLabel()],e=this.genSlider();return this.inverseLabel?t.unshift(e):t.push(e),t.push(this.genProgress()),t},genListeners:function(){return{blur:this.onBlur,click:this.onSliderClick,focus:this.onFocus,keydown:this.onKeyDown,keyup:this.onKeyUp}},genInput:function(){return this.$createElement("input",{attrs:l({"aria-label":this.label,name:this.name,role:"slider",tabindex:this.disabled?-1:this.$attrs.tabindex,value:this.internalValue,readonly:!0,"aria-readonly":String(this.readonly),"aria-valuemin":this.min,"aria-valuemax":this.max,"aria-valuenow":this.internalValue},this.$attrs),on:this.genListeners(),ref:"input"})},genSlider:function(){return this.$createElement("div",{staticClass:"v-slider",class:{"v-slider--is-active":this.isActive},directives:[{name:"click-outside",value:this.onBlur}]},this.genChildren())},genChildren:function(){return[this.genInput(),this.genTrackContainer(),this.genSteps(),this.genThumbContainer(this.internalValue,this.inputWidth,this.isFocused||this.isActive,this.onThumbMouseDown)]},genSteps:function(){var t=this;if(!this.step||!this.showTicks)return null;var e=Object(o["createRange"])(this.numTicks+1).map((function(e){var n=[];return t.tickLabels[e]&&n.push(t.$createElement("span",t.tickLabels[e])),t.$createElement("span",{key:e,staticClass:"v-slider__ticks",class:{"v-slider__ticks--always-show":"always"===t.ticks||t.tickLabels.length>0},style:l({},t.tickStyles,{left:e*(100/t.numTicks)+"%"})},n)}));return this.$createElement("div",{staticClass:"v-slider__ticks-container"},e)},genThumb:function(){return this.$createElement("div",this.setBackgroundColor(this.computedThumbColor,{staticClass:"v-slider__thumb"}))},genThumbContainer:function(t,e,n,i){var s=[this.genThumb()],r=this.getLabel(t);return this.showThumbLabel&&s.push(this.genThumbLabel(r)),this.$createElement("div",this.setTextColor(this.computedThumbColor,{staticClass:"v-slider__thumb-container",class:{"v-slider__thumb-container--is-active":n,"v-slider__thumb-container--show-label":this.showThumbLabel},style:{transition:this.trackTransition,left:(this.$vuetify.rtl?100-e:e)+"%"},on:{touchstart:i,mousedown:i}}),s)},genThumbLabel:function(t){var e=Object(o["convertToUnit"])(this.thumbSize);return this.$createElement(i["VScaleTransition"],{props:{origin:"bottom center"}},[this.$createElement("div",{staticClass:"v-slider__thumb-label__container",directives:[{name:"show",value:this.isFocused||this.isActive||"always"===this.thumbLabel}]},[this.$createElement("div",this.setBackgroundColor(this.computedThumbColor,{staticClass:"v-slider__thumb-label",style:{height:e,width:e}}),[t])])])},genTrackContainer:function(){var t=[this.$createElement("div",this.setBackgroundColor(this.computedTrackColor,{staticClass:"v-slider__track",style:this.trackStyles})),this.$createElement("div",this.setBackgroundColor(this.computedColor,{staticClass:"v-slider__track-fill",style:this.trackFillStyles}))];return this.$createElement("div",{staticClass:"v-slider__track__container",ref:"track"},t)},getLabel:function(t){return this.$scopedSlots["thumb-label"]?this.$scopedSlots["thumb-label"]({value:t}):this.$createElement("span",t)},onBlur:function(t){2!==this.keyPressed&&(this.isActive=!1,this.isFocused=!1,this.$emit("blur",t))},onFocus:function(t){this.isFocused=!0,this.$emit("focus",t)},onThumbMouseDown:function(t){this.oldValue=this.internalValue,this.keyPressed=2;var e={passive:!0};this.isActive=!0,this.isFocused=!1,"touches"in t?(this.app.addEventListener("touchmove",this.onMouseMove,e),Object(o["addOnceEventListener"])(this.app,"touchend",this.onSliderMouseUp)):(this.app.addEventListener("mousemove",this.onMouseMove,e),Object(o["addOnceEventListener"])(this.app,"mouseup",this.onSliderMouseUp)),this.$emit("start",this.internalValue)},onSliderMouseUp:function(){this.keyPressed=0;var t={passive:!0};this.isActive=!1,this.isFocused=!1,this.app.removeEventListener("touchmove",this.onMouseMove,t),this.app.removeEventListener("mousemove",this.onMouseMove,t),this.$emit("end",this.internalValue),Object(o["deepEqual"])(this.oldValue,this.internalValue)||this.$emit("change",this.internalValue)},onMouseMove:function(t){var e=this.parseMouseMove(t),n=e.value,i=e.isInsideTrack;i&&this.setInternalValue(n)},onKeyDown:function(t){if(!this.disabled&&!this.readonly){var e=this.parseKeyDown(t);null!=e&&(this.setInternalValue(e),this.$emit("change",e))}},onKeyUp:function(){this.keyPressed=0},onSliderClick:function(t){this.isFocused=!0,this.onMouseMove(t),this.$emit("change",this.internalValue)},parseMouseMove:function(t){var e=this.$refs.track.getBoundingClientRect(),n=e.left,i=e.width,s="touches"in t?t.touches[0].clientX:t.clientX,r=Math.min(Math.max((s-n)/i,0),1)||0;this.$vuetify.rtl&&(r=1-r);var o=s>=n-8&&s<=n+i+8,a=parseFloat(this.min)+r*(this.max-this.min);return{value:a,isInsideTrack:o}},parseKeyDown:function(t,e){if(void 0===e&&(e=this.internalValue),!this.disabled){var n=o["keyCodes"].pageup,i=o["keyCodes"].pagedown,s=o["keyCodes"].end,r=o["keyCodes"].home,a=o["keyCodes"].left,c=o["keyCodes"].right,l=o["keyCodes"].down,u=o["keyCodes"].up;if([n,i,s,r,a,c,l,u].includes(t.keyCode)){t.preventDefault();var h=this.stepNumeric||1,d=(this.max-this.min)/h;if([a,c,l,u].includes(t.keyCode)){this.keyPressed+=1;var f=this.$vuetify.rtl?[a,u]:[c,u],p=f.includes(t.keyCode)?1:-1,m=t.shiftKey?3:t.ctrlKey?2:1;e+=p*h*m}else if(t.keyCode===r)e=parseFloat(this.min);else if(t.keyCode===s)e=parseFloat(this.max);else{p=t.keyCode===i?1:-1;e-=p*h*(d>100?d/10:10)}return e}}},roundValue:function(t){if(!this.stepNumeric)return t;var e=this.step.toString().trim(),n=e.indexOf(".")>-1?e.length-e.indexOf(".")-1:0,i=this.min%this.stepNumeric,s=Math.round((t-i)/this.stepNumeric)*this.stepNumeric+i;return parseFloat(Math.max(Math.min(s,this.max),this.min).toFixed(n))},setInternalValue:function(t){this.internalValue=t}}})},"./src/components/VSlider/index.js":
- /*!*****************************************!*\
- !*** ./src/components/VSlider/index.js ***!
- \*****************************************/
- /*! exports provided: VSlider, default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ./VSlider */"./src/components/VSlider/VSlider.js");n.d(e,"VSlider",(function(){return i["default"]})),e["default"]=i["default"]},"./src/components/VSnackbar/VSnackbar.ts":
- /*!***********************************************!*\
- !*** ./src/components/VSnackbar/VSnackbar.ts ***!
- \***********************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);n(/*! ../../stylus/components/_snackbars.styl */"./src/stylus/components/_snackbars.styl");var i=n(/*! ../../mixins/colorable */"./src/mixins/colorable.ts"),s=n(/*! ../../mixins/toggleable */"./src/mixins/toggleable.ts"),r=n(/*! ../../mixins/positionable */"./src/mixins/positionable.ts"),o=n(/*! ../../util/mixins */"./src/util/mixins.ts");e["default"]=Object(o["default"])(i["default"],s["default"],Object(r["factory"])(["absolute","top","bottom","left","right"])).extend({name:"v-snackbar",props:{autoHeight:Boolean,multiLine:Boolean,timeout:{type:Number,default:6e3},vertical:Boolean},data:function(){return{activeTimeout:-1}},computed:{classes:function(){return{"v-snack--active":this.isActive,"v-snack--absolute":this.absolute,"v-snack--auto-height":this.autoHeight,"v-snack--bottom":this.bottom||!this.top,"v-snack--left":this.left,"v-snack--multi-line":this.multiLine&&!this.vertical,"v-snack--right":this.right,"v-snack--top":this.top,"v-snack--vertical":this.vertical}}},watch:{isActive:function(){this.setTimeout()}},mounted:function(){this.setTimeout()},methods:{setTimeout:function(){var t=this;window.clearTimeout(this.activeTimeout),this.isActive&&this.timeout&&(this.activeTimeout=window.setTimeout((function(){t.isActive=!1}),this.timeout))}},render:function(t){return t("transition",{attrs:{name:"v-snack-transition"}},this.isActive&&[t("div",{staticClass:"v-snack",class:this.classes,on:this.$listeners},[t("div",this.setBackgroundColor(this.color,{staticClass:"v-snack__wrapper"}),[t("div",{staticClass:"v-snack__content"},this.$slots.default)])])])}})},"./src/components/VSnackbar/index.ts":
- /*!*******************************************!*\
- !*** ./src/components/VSnackbar/index.ts ***!
- \*******************************************/
- /*! exports provided: VSnackbar, default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ./VSnackbar */"./src/components/VSnackbar/VSnackbar.ts");n.d(e,"VSnackbar",(function(){return i["default"]})),e["default"]=i["default"]},"./src/components/VSparkline/VSparkline.ts":
- /*!*************************************************!*\
- !*** ./src/components/VSparkline/VSparkline.ts ***!
- \*************************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ../../mixins/colorable */"./src/mixins/colorable.ts"),s=n(/*! ../../util/mixins */"./src/util/mixins.ts"),r=n(/*! ./helpers/core */"./src/components/VSparkline/helpers/core.ts"),o=n(/*! ./helpers/path */"./src/components/VSparkline/helpers/path.ts"),a=function(){return a=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var s in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t},a.apply(this,arguments)};e["default"]=Object(s["default"])(i["default"]).extend({name:"VSparkline",props:{autoDraw:Boolean,autoDrawDuration:{type:Number,default:2e3},autoDrawEasing:{type:String,default:"ease"},autoLineWidth:{type:Boolean,default:!1},color:{type:String,default:"primary"},fill:{type:Boolean,default:!1},gradient:{type:Array,default:function(){return[]}},gradientDirection:{type:String,validator:function(t){return["top","bottom","left","right"].includes(t)},default:"top"},height:{type:[String,Number],default:75},labels:{type:Array,default:function(){return[]}},lineWidth:{type:[String,Number],default:4},padding:{type:[String,Number],default:8},smooth:{type:[Boolean,Number,String],default:!1},showLabels:Boolean,type:{type:String,default:"trend",validator:function(t){return["trend","bar"].includes(t)}},value:{type:Array,default:function(){return[]}},width:{type:[Number,String],default:300},labelSize:{type:[Number,String],default:7}},data:function(){return{lastLength:0}},computed:{parsedPadding:function(){return Number(this.padding)},parsedWidth:function(){return Number(this.width)},totalBars:function(){return this.value.length},_lineWidth:function(){if(this.autoLineWidth&&"trend"!==this.type){var t=this.parsedPadding*(this.totalBars+1);return(this.parsedWidth-t)/this.totalBars}return Number(this.lineWidth)||4},boundary:function(){var t=Number(this.height);return{minX:this.parsedPadding,minY:this.parsedPadding,maxX:this.parsedWidth-this.parsedPadding,maxY:t-this.parsedPadding}},hasLabels:function(){return Boolean(this.showLabels||this.labels.length>0||this.$scopedSlots.label)},parsedLabels:function(){for(var t=[],e=this.points,n=e.length,i=0;t.length<n;i++){var s=e[i],r=this.labels[i];r||(r=s===Object(s)?s.value:s),t.push(a({},s,{value:String(r)}))}return t},points:function(){return Object(r["genPoints"])(this.value.slice(),this.boundary,this.type)},textY:function(){return this.boundary.maxY+6}},watch:{value:{immediate:!0,handler:function(){var t=this;this.$nextTick((function(){if(t.autoDraw&&"bar"!==t.type){var e=t.$refs.path,n=e.getTotalLength();t.fill?(e.style.transformOrigin="bottom center",e.style.transition="none",e.style.transform="scaleY(0)",e.getBoundingClientRect(),e.style.transition="transform "+t.autoDrawDuration+"ms "+t.autoDrawEasing,e.style.transform="scaleY(1)"):(e.style.transition="none",e.style.strokeDasharray=n+" "+n,e.style.strokeDashoffset=Math.abs(n-(t.lastLength||0)).toString(),e.getBoundingClientRect(),e.style.transition="stroke-dashoffset "+t.autoDrawDuration+"ms "+t.autoDrawEasing,e.style.strokeDashoffset="0"),t.lastLength=n}}))}}},methods:{genGradient:function(){var t=this,e=this.gradientDirection,n=this.gradient.slice();n.length||n.push("");var i=Math.max(n.length-1,1),s=n.reverse().map((function(e,n){return t.$createElement("stop",{attrs:{offset:n/i,"stop-color":e||t.color||"currentColor"}})}));return this.$createElement("defs",[this.$createElement("linearGradient",{attrs:{id:this._uid,x1:+("left"===e),y1:+("top"===e),x2:+("right"===e),y2:+("bottom"===e)}},s)])},genG:function(t){return this.$createElement("g",{style:{fontSize:"8",textAnchor:"middle",dominantBaseline:"mathematical",fill:this.color||"currentColor"}},t)},genLabels:function(){if(this.hasLabels)return this.genG(this.parsedLabels.map(this.genText))},genPath:function(){var t=!0===this.smooth?8:Number(this.smooth);return this.$createElement("path",{attrs:{id:this._uid,d:Object(o["genPath"])(this.points.slice(),t,this.fill,Number(this.height)),fill:this.fill?"url(#"+this._uid+")":"none",stroke:this.fill?"none":"url(#"+this._uid+")"},ref:"path"})},genText:function(t,e){var n=this.$scopedSlots.label?this.$scopedSlots.label({index:e,value:t.value}):t.value;return this.$createElement("text",{attrs:{x:t.x,y:this.textY}},[n])},genBar:function(){if(this.value&&!(this.totalBars<2)){var t=this,e=t.width,n=t.height,i=t.parsedPadding,s=t._lineWidth,o=e||this.totalBars*i*2,c=n||75,l={minX:i,minY:i,maxX:Number(o)-i,maxY:Number(c)-i},u=a({},this.$props);u.points=Object(r["genPoints"])(this.value,l,this.type);var h=l.maxX/(u.points.length-1);return u.boundary=l,u.lineWidth=s||h-Number(i||5),u.offsetX=0,this.autoLineWidth||(u.offsetX=l.maxX/this.totalBars/2-l.minX),this.$createElement("svg",{attrs:{width:"100%",height:"25%",viewBox:"0 0 "+o+" "+c}},[this.genGradient(),this.genClipPath(u.offsetX,u.lineWidth,"sparkline-bar-"+this._uid),this.hasLabels?this.genBarLabels(u):void 0,this.$createElement("g",{attrs:{transform:"scale(1,-1) translate(0,-"+l.maxY+")","clip-path":"url(#sparkline-bar-"+this._uid+"-clip)",fill:"url(#"+this._uid+")"}},[this.$createElement("rect",{attrs:{x:0,y:0,width:o,height:c}})])])}},genClipPath:function(t,e,n){var i=this,s=this.boundary.maxY,r="number"===typeof this.smooth?this.smooth:this.smooth?2:0;return this.$createElement("clipPath",{attrs:{id:n+"-clip"}},this.points.map((function(n){return i.$createElement("rect",{attrs:{x:n.x+t,y:0,width:e,height:Math.max(s-n.y,0),rx:r,ry:r}},[i.autoDraw?i.$createElement("animate",{attrs:{attributeName:"height",from:0,to:s-n.y,dur:i.autoDrawDuration+"ms",fill:"freeze"}}):void 0])})))},genBarLabels:function(t){var e=this,n=t.offsetX||0,i=t.points.map((function(i){return e.$createElement("text",{attrs:{x:i.x+n+e._lineWidth/2,y:t.boundary.maxY+(Number(e.labelSize)||7),"font-size":Number(e.labelSize)||7}},i.value.toString())}));return this.genG(i)},genTrend:function(){return this.$createElement("svg",this.setTextColor(this.color,{attrs:{"stroke-width":this._lineWidth||1,width:"100%",height:"25%",viewBox:"0 0 "+this.width+" "+this.height}}),[this.genGradient(),this.genLabels(),this.genPath()])}},render:function(t){if(!(this.totalBars<2))return"trend"===this.type?this.genTrend():this.genBar()}})},"./src/components/VSparkline/helpers/core.ts":
- /*!***************************************************!*\
- !*** ./src/components/VSparkline/helpers/core.ts ***!
- \***************************************************/
- /*! exports provided: genPoints */function(t,e,n){"use strict";n.r(e),n.d(e,"genPoints",(function(){return r}));var i=function(t,e){var n="function"===typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,s,r=n.call(t),o=[];try{while((void 0===e||e-- >0)&&!(i=r.next()).done)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r["return"])&&n.call(r)}finally{if(s)throw s.error}}return o},s=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(i(arguments[e]));return t};function r(t,e,n){var i=e.minX,r=e.minY,o=e.maxX,a=e.maxY,c=t.map((function(t){return"number"===typeof t?t:t.value})),l=c.length,u=Math.max.apply(Math,s(c))+1,h=Math.min.apply(Math,s(c));h&&(h-=1);var d=(o-i)/(l-1);"bar"===n&&(d=o/l);var f=(a-r)/(u-h);return c.map((function(t,e){return{x:i+e*d,y:a-(t-h)*f+1e-5*+(e===l-1)-1e-5*+(0===e),value:t}}))}},"./src/components/VSparkline/helpers/math.ts":
- /*!***************************************************!*\
- !*** ./src/components/VSparkline/helpers/math.ts ***!
- \***************************************************/
- /*! exports provided: checkCollinear, getDistance, moveTo */function(t,e,n){"use strict";function i(t){return parseInt(t,10)}function s(t,e,n){return i(t.x+n.x)===i(2*e.x)&&i(t.y+n.y)===i(2*e.y)}function r(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function o(t,e,n){var i={x:t.x-e.x,y:t.y-e.y},s=Math.sqrt(i.x*i.x+i.y*i.y),r={x:i.x/s,y:i.y/s};return{x:e.x+r.x*n,y:e.y+r.y*n}}n.r(e),n.d(e,"checkCollinear",(function(){return s})),n.d(e,"getDistance",(function(){return r})),n.d(e,"moveTo",(function(){return o}))},"./src/components/VSparkline/helpers/path.ts":
- /*!***************************************************!*\
- !*** ./src/components/VSparkline/helpers/path.ts ***!
- \***************************************************/
- /*! exports provided: genPath */function(t,e,n){"use strict";n.r(e),n.d(e,"genPath",(function(){return s}));var i=n(/*! ./math */"./src/components/VSparkline/helpers/math.ts");function s(t,e,n,s){void 0===n&&(n=!1),void 0===s&&(s=75);var r=t.shift(),o=t[t.length-1];return(n?"M"+r.x+" "+s+" L"+r.x+" "+r.y:"M"+r.x+" "+r.y)+t.map((function(n,s){var o=t[s+1],a=t[s-1]||r,c=o&&Object(i["checkCollinear"])(o,n,a);if(!o||c)return"L"+n.x+" "+n.y;var l=Math.min(Object(i["getDistance"])(a,n),Object(i["getDistance"])(o,n)),u=l/2<e,h=u?l/2:e,d=Object(i["moveTo"])(a,n,h),f=Object(i["moveTo"])(o,n,h);return"L"+d.x+" "+d.y+"S"+n.x+" "+n.y+" "+f.x+" "+f.y})).join("")+(n?"L"+o.x+" "+s+" Z":"")}},"./src/components/VSparkline/index.ts":
- /*!********************************************!*\
- !*** ./src/components/VSparkline/index.ts ***!
- \********************************************/
- /*! exports provided: VSparkline, default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ./VSparkline */"./src/components/VSparkline/VSparkline.ts");n.d(e,"VSparkline",(function(){return i["default"]})),e["default"]=i["default"]},"./src/components/VSpeedDial/VSpeedDial.js":
- /*!*************************************************!*\
- !*** ./src/components/VSpeedDial/VSpeedDial.js ***!
- \*************************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);n(/*! ../../stylus/components/_speed-dial.styl */"./src/stylus/components/_speed-dial.styl");var i=n(/*! ../../mixins/toggleable */"./src/mixins/toggleable.ts"),s=n(/*! ../../mixins/positionable */"./src/mixins/positionable.ts"),r=n(/*! ../../mixins/transitionable */"./src/mixins/transitionable.ts"),o=n(/*! ../../directives/click-outside */"./src/directives/click-outside.ts");e["default"]={name:"v-speed-dial",directives:{ClickOutside:o["default"]},mixins:[s["default"],i["default"],r["default"]],props:{direction:{type:String,default:"top",validator:function(t){return["top","right","bottom","left"].includes(t)}},openOnHover:Boolean,transition:{type:String,default:"scale-transition"}},computed:{classes:function(){var t;return t={"v-speed-dial":!0,"v-speed-dial--top":this.top,"v-speed-dial--right":this.right,"v-speed-dial--bottom":this.bottom,"v-speed-dial--left":this.left,"v-speed-dial--absolute":this.absolute,"v-speed-dial--fixed":this.fixed},t["v-speed-dial--direction-"+this.direction]=!0,t}},render:function(t){var e=this,n=[],i={class:this.classes,directives:[{name:"click-outside",value:function(){return e.isActive=!1}}],on:{click:function(){return e.isActive=!e.isActive}}};if(this.openOnHover&&(i.on.mouseenter=function(){return e.isActive=!0},i.on.mouseleave=function(){return e.isActive=!1}),this.isActive){var s=0;n=(this.$slots.default||[]).map((function(e,n){return e.tag&&"undefined"!==typeof e.componentOptions&&"v-btn"===e.componentOptions.Ctor.options.name?(s++,t("div",{style:{transitionDelay:.05*s+"s"},key:n},[e])):(e.key=n,e)}))}var r=t("transition-group",{class:"v-speed-dial__list",props:{name:this.transition,mode:this.mode,origin:this.origin,tag:"div"}},n);return t("div",i,[this.$slots.activator,r])}}},"./src/components/VSpeedDial/index.js":
- /*!********************************************!*\
- !*** ./src/components/VSpeedDial/index.js ***!
- \********************************************/
- /*! exports provided: VSpeedDial, default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ./VSpeedDial */"./src/components/VSpeedDial/VSpeedDial.js");n.d(e,"VSpeedDial",(function(){return i["default"]})),e["default"]=i["default"]},"./src/components/VStepper/VStepper.ts":
- /*!*********************************************!*\
- !*** ./src/components/VStepper/VStepper.ts ***!
- \*********************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);n(/*! ../../stylus/components/_steppers.styl */"./src/stylus/components/_steppers.styl");var i=n(/*! ../../mixins/registrable */"./src/mixins/registrable.ts"),s=n(/*! ../../mixins/themeable */"./src/mixins/themeable.ts"),r=n(/*! ../../util/mixins */"./src/util/mixins.ts"),o=function(){return o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var s in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t},o.apply(this,arguments)};e["default"]=Object(r["default"])(Object(i["provide"])("stepper"),s["default"]).extend({name:"v-stepper",provide:function(){return{stepClick:this.stepClick,isVertical:this.vertical}},props:{nonLinear:Boolean,altLabels:Boolean,vertical:Boolean,value:[Number,String]},data:function(){return{inputValue:null,isBooted:!1,steps:[],content:[],isReverse:!1}},computed:{classes:function(){return o({"v-stepper":!0,"v-stepper--is-booted":this.isBooted,"v-stepper--vertical":this.vertical,"v-stepper--alt-labels":this.altLabels,"v-stepper--non-linear":this.nonLinear},this.themeClasses)}},watch:{inputValue:function(t,e){this.isReverse=Number(t)<Number(e);for(var n=this.steps.length;--n>=0;)this.steps[n].toggle(this.inputValue);for(n=this.content.length;--n>=0;)this.content[n].toggle(this.inputValue,this.isReverse);this.$emit("input",this.inputValue),e&&(this.isBooted=!0)},value:function(){var t=this;this.$nextTick((function(){return t.inputValue=t.value}))}},mounted:function(){this.inputValue=this.value||this.steps[0].step||1},methods:{register:function(t){"v-stepper-step"===t.$options.name?this.steps.push(t):"v-stepper-content"===t.$options.name&&(t.isVertical=this.vertical,this.content.push(t))},unregister:function(t){"v-stepper-step"===t.$options.name?this.steps=this.steps.filter((function(e){return e!==t})):"v-stepper-content"===t.$options.name&&(t.isVertical=this.vertical,this.content=this.content.filter((function(e){return e!==t})))},stepClick:function(t){var e=this;this.$nextTick((function(){return e.inputValue=t}))}},render:function(t){return t("div",{class:this.classes},this.$slots.default)}})},"./src/components/VStepper/VStepperContent.ts":
- /*!****************************************************!*\
- !*** ./src/components/VStepper/VStepperContent.ts ***!
- \****************************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ../transitions */"./src/components/transitions/index.js"),s=n(/*! ../../mixins/registrable */"./src/mixins/registrable.ts"),r=n(/*! ../../util/helpers */"./src/util/helpers.ts"),o=n(/*! ../../util/mixins */"./src/util/mixins.ts");e["default"]=Object(o["default"])(Object(s["inject"])("stepper","v-stepper-content","v-stepper")).extend({name:"v-stepper-content",inject:{isVerticalProvided:{from:"isVertical"}},props:{step:{type:[Number,String],required:!0}},data:function(){return{height:0,isActive:null,isReverse:!1,isVertical:this.isVerticalProvided}},computed:{classes:function(){return{"v-stepper__content":!0}},computedTransition:function(){return this.isReverse?i["VTabReverseTransition"]:i["VTabTransition"]},styles:function(){return this.isVertical?{height:Object(r["convertToUnit"])(this.height)}:{}},wrapperClasses:function(){return{"v-stepper__wrapper":!0}}},watch:{isActive:function(t,e){t&&null==e?this.height="auto":this.isVertical&&(this.isActive?this.enter():this.leave())}},mounted:function(){this.$refs.wrapper.addEventListener("transitionend",this.onTransition,!1),this.stepper&&this.stepper.register(this)},beforeDestroy:function(){this.$refs.wrapper.removeEventListener("transitionend",this.onTransition,!1),this.stepper&&this.stepper.unregister(this)},methods:{onTransition:function(t){this.isActive&&"height"===t.propertyName&&(this.height="auto")},enter:function(){var t=this,e=0;requestAnimationFrame((function(){e=t.$refs.wrapper.scrollHeight})),this.height=0,setTimeout((function(){return t.isActive&&(t.height=e||"auto")}),450)},leave:function(){var t=this;this.height=this.$refs.wrapper.clientHeight,setTimeout((function(){return t.height=0}),10)},toggle:function(t,e){this.isActive=t.toString()===this.step.toString(),this.isReverse=e}},render:function(t){var e={class:this.classes},n={class:this.wrapperClasses,style:this.styles,ref:"wrapper"};this.isVertical||(e.directives=[{name:"show",value:this.isActive}]);var i=t("div",n,[this.$slots.default]),s=t("div",e,[i]);return t(this.computedTransition,{on:this.$listeners},[s])}})},"./src/components/VStepper/VStepperStep.ts":
- /*!*************************************************!*\
- !*** ./src/components/VStepper/VStepperStep.ts ***!
- \*************************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ../VIcon */"./src/components/VIcon/index.ts"),s=n(/*! ../../mixins/colorable */"./src/mixins/colorable.ts"),r=n(/*! ../../mixins/registrable */"./src/mixins/registrable.ts"),o=n(/*! ../../directives/ripple */"./src/directives/ripple.ts"),a=n(/*! ../../util/mixins */"./src/util/mixins.ts");e["default"]=Object(a["default"])(s["default"],Object(r["inject"])("stepper","v-stepper-step","v-stepper")).extend({name:"v-stepper-step",directives:{Ripple:o["default"]},inject:["stepClick"],props:{color:{type:String,default:"primary"},complete:Boolean,completeIcon:{type:String,default:"$vuetify.icons.complete"},editIcon:{type:String,default:"$vuetify.icons.edit"},errorIcon:{type:String,default:"$vuetify.icons.error"},editable:Boolean,rules:{type:Array,default:function(){return[]}},step:[Number,String]},data:function(){return{isActive:!1,isInactive:!0}},computed:{classes:function(){return{"v-stepper__step":!0,"v-stepper__step--active":this.isActive,"v-stepper__step--editable":this.editable,"v-stepper__step--inactive":this.isInactive,"v-stepper__step--error":this.hasError,"v-stepper__step--complete":this.complete,"error--text":this.hasError}},hasError:function(){return this.rules.some((function(t){return!0!==t()}))}},mounted:function(){this.stepper&&this.stepper.register(this)},beforeDestroy:function(){this.stepper&&this.stepper.unregister(this)},methods:{click:function(t){t.stopPropagation(),this.$emit("click",t),this.editable&&this.stepClick(this.step)},toggle:function(t){this.isActive=t.toString()===this.step.toString(),this.isInactive=Number(t)<Number(this.step)}},render:function(t){var e,n={class:this.classes,directives:[{name:"ripple",value:this.editable}],on:{click:this.click}};e=this.hasError?[t(i["default"],{},this.errorIcon)]:this.complete?this.editable?[t(i["default"],{},this.editIcon)]:[t(i["default"],{},this.completeIcon)]:String(this.step);var s=!(this.hasError||!this.complete&&!this.isActive)&&this.color,r=t("span",this.setBackgroundColor(s,{staticClass:"v-stepper__step__step"}),e),o=t("div",{staticClass:"v-stepper__label"},this.$slots.default);return t("div",n,[r,o])}})},"./src/components/VStepper/index.ts":
- /*!******************************************!*\
- !*** ./src/components/VStepper/index.ts ***!
- \******************************************/
- /*! exports provided: VStepper, VStepperContent, VStepperStep, VStepperHeader, VStepperItems, default */function(t,e,n){"use strict";n.r(e),n.d(e,"VStepperHeader",(function(){return a})),n.d(e,"VStepperItems",(function(){return c}));var i=n(/*! ../../util/helpers */"./src/util/helpers.ts"),s=n(/*! ./VStepper */"./src/components/VStepper/VStepper.ts");n.d(e,"VStepper",(function(){return s["default"]}));var r=n(/*! ./VStepperStep */"./src/components/VStepper/VStepperStep.ts");n.d(e,"VStepperStep",(function(){return r["default"]}));var o=n(/*! ./VStepperContent */"./src/components/VStepper/VStepperContent.ts");n.d(e,"VStepperContent",(function(){return o["default"]}));var a=Object(i["createSimpleFunctional"])("v-stepper__header"),c=Object(i["createSimpleFunctional"])("v-stepper__items");e["default"]={$_vuetify_subcomponents:{VStepper:s["default"],VStepperContent:o["default"],VStepperStep:r["default"],VStepperHeader:a,VStepperItems:c}}},"./src/components/VSubheader/VSubheader.ts":
- /*!*************************************************!*\
- !*** ./src/components/VSubheader/VSubheader.ts ***!
- \*************************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);n(/*! ../../stylus/components/_subheaders.styl */"./src/stylus/components/_subheaders.styl");var i=n(/*! ../../mixins/themeable */"./src/mixins/themeable.ts"),s=n(/*! ../../util/mixins */"./src/util/mixins.ts"),r=function(){return r=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var s in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t},r.apply(this,arguments)};e["default"]=Object(s["default"])(i["default"]).extend({name:"v-subheader",props:{inset:Boolean},render:function(t){return t("div",{staticClass:"v-subheader",class:r({"v-subheader--inset":this.inset},this.themeClasses),attrs:this.$attrs,on:this.$listeners},this.$slots.default)}})},"./src/components/VSubheader/index.ts":
- /*!********************************************!*\
- !*** ./src/components/VSubheader/index.ts ***!
- \********************************************/
- /*! exports provided: VSubheader, default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ./VSubheader */"./src/components/VSubheader/VSubheader.ts");n.d(e,"VSubheader",(function(){return i["default"]})),e["default"]=i["default"]},"./src/components/VSwitch/VSwitch.js":
- /*!*******************************************!*\
- !*** ./src/components/VSwitch/VSwitch.js ***!
- \*******************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);n(/*! ../../stylus/components/_selection-controls.styl */"./src/stylus/components/_selection-controls.styl"),n(/*! ../../stylus/components/_switch.styl */"./src/stylus/components/_switch.styl");var i=n(/*! ../../mixins/selectable */"./src/mixins/selectable.js"),s=n(/*! ../../directives/touch */"./src/directives/touch.ts"),r=n(/*! ../transitions */"./src/components/transitions/index.js"),o=n(/*! ../VProgressCircular/VProgressCircular */"./src/components/VProgressCircular/VProgressCircular.ts"),a=n(/*! ../../util/helpers */"./src/util/helpers.ts"),c=function(){return c=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var s in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t},c.apply(this,arguments)};e["default"]={name:"v-switch",directives:{Touch:s["default"]},mixins:[i["default"]],props:{loading:{type:[Boolean,String],default:!1}},computed:{classes:function(){return{"v-input--selection-controls v-input--switch":!0}},switchData:function(){return this.setTextColor(this.loading?void 0:this.computedColor,{class:this.themeClasses})}},methods:{genDefaultSlot:function(){return[this.genSwitch(),this.genLabel()]},genSwitch:function(){return this.$createElement("div",{staticClass:"v-input--selection-controls__input"},[this.genInput("checkbox",this.$attrs),this.genRipple(this.setTextColor(this.computedColor,{directives:[{name:"touch",value:{left:this.onSwipeLeft,right:this.onSwipeRight}}]})),this.$createElement("div",c({staticClass:"v-input--switch__track"},this.switchData)),this.$createElement("div",c({staticClass:"v-input--switch__thumb"},this.switchData),[this.genProgress()])])},genProgress:function(){return this.$createElement(r["VFabTransition"],{},[!1===this.loading?null:this.$slots.progress||this.$createElement(o["default"],{props:{color:!0===this.loading||""===this.loading?this.color||"primary":this.loading,size:16,width:2,indeterminate:!0}})])},onSwipeLeft:function(){this.isActive&&this.onChange()},onSwipeRight:function(){this.isActive||this.onChange()},onKeydown:function(t){(t.keyCode===a["keyCodes"].left&&this.isActive||t.keyCode===a["keyCodes"].right&&!this.isActive)&&this.onChange()}}}},"./src/components/VSwitch/index.js":
- /*!*****************************************!*\
- !*** ./src/components/VSwitch/index.js ***!
- \*****************************************/
- /*! exports provided: VSwitch, default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ./VSwitch */"./src/components/VSwitch/VSwitch.js");n.d(e,"VSwitch",(function(){return i["default"]})),e["default"]=i["default"]},"./src/components/VSystemBar/VSystemBar.ts":
- /*!*************************************************!*\
- !*** ./src/components/VSystemBar/VSystemBar.ts ***!
- \*************************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);n(/*! ../../stylus/components/_system-bars.styl */"./src/stylus/components/_system-bars.styl");var i=n(/*! ../../mixins/applicationable */"./src/mixins/applicationable.ts"),s=n(/*! ../../mixins/colorable */"./src/mixins/colorable.ts"),r=n(/*! ../../mixins/themeable */"./src/mixins/themeable.ts"),o=n(/*! ../../util/mixins */"./src/util/mixins.ts"),a=function(){return a=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var s in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t},a.apply(this,arguments)};e["default"]=Object(o["default"])(Object(i["default"])("bar",["height","window"]),s["default"],r["default"]).extend({name:"v-system-bar",props:{height:{type:[Number,String],validator:function(t){return!isNaN(parseInt(t))}},lightsOut:Boolean,status:Boolean,window:Boolean},computed:{classes:function(){return a({"v-system-bar--lights-out":this.lightsOut,"v-system-bar--absolute":this.absolute,"v-system-bar--fixed":!this.absolute&&(this.app||this.fixed),"v-system-bar--status":this.status,"v-system-bar--window":this.window},this.themeClasses)},computedHeight:function(){return this.height?parseInt(this.height):this.window?32:24}},methods:{updateApplication:function(){return this.computedHeight}},render:function(t){var e={staticClass:"v-system-bar",class:this.classes,style:{height:this.computedHeight+"px"}};return t("div",this.setBackgroundColor(this.color,e),this.$slots.default)}})},"./src/components/VSystemBar/index.ts":
- /*!********************************************!*\
- !*** ./src/components/VSystemBar/index.ts ***!
- \********************************************/
- /*! exports provided: VSystemBar, default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ./VSystemBar */"./src/components/VSystemBar/VSystemBar.ts");n.d(e,"VSystemBar",(function(){return i["default"]})),e["default"]=i["default"]},"./src/components/VTabs/VTab.js":
- /*!**************************************!*\
- !*** ./src/components/VTabs/VTab.js ***!
- \**************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ../../mixins/groupable */"./src/mixins/groupable.ts"),s=n(/*! ../../mixins/routable */"./src/mixins/routable.ts"),r=n(/*! ../../mixins/themeable */"./src/mixins/themeable.ts"),o=n(/*! ../../util/helpers */"./src/util/helpers.ts"),a=function(){return a=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var s in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t},a.apply(this,arguments)};e["default"]={name:"v-tab",mixins:[s["default"],Object(i["factory"])("tabGroup"),r["default"]],props:{ripple:{type:[Boolean,Object],default:!0}},computed:{classes:function(){return a({"v-tabs__item":!0,"v-tabs__item--disabled":this.disabled},this.groupClasses)},value:function(){var t=this.to||this.href||"";if(this.$router&&this.to===Object(this.to)){var e=this.$router.resolve(this.to,this.$route,this.append);t=e.href}return t.replace("#","")}},watch:{$route:"onRouteChange"},mounted:function(){this.onRouteChange()},methods:{click:function(t){this.href&&this.href.indexOf("#")>-1&&t.preventDefault(),this.$emit("click",t),this.to||this.toggle()},onRouteChange:function(){var t=this;if(this.to&&this.$refs.link){var e="_vnode.data.class."+this.activeClass;this.$nextTick((function(){Object(o["getObjectValueByPath"])(t.$refs.link,e)&&t.toggle()}))}}},render:function(t){var e=this.generateRouteLink(this.classes),n=e.data,i=this.disabled?"div":e.tag;return n.ref="link",t("div",{staticClass:"v-tabs__div"},[t(i,n,this.$slots.default)])}}},"./src/components/VTabs/VTabItem.js":
- /*!******************************************!*\
- !*** ./src/components/VTabs/VTabItem.js ***!
- \******************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ../VWindow/VWindowItem */"./src/components/VWindow/VWindowItem.ts"),s=n(/*! ../../util/console */"./src/util/console.ts");e["default"]=i["default"].extend({name:"v-tab-item",props:{id:String},render:function(t){var e=i["default"].options.render.call(this,t);return this.id&&(Object(s["deprecate"])("id","value",this),e.data.domProps=e.data.domProps||{},e.data.domProps.id=this.id),e}})},"./src/components/VTabs/VTabs.js":
- /*!***************************************!*\
- !*** ./src/components/VTabs/VTabs.js ***!
- \***************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);n(/*! ../../stylus/components/_tabs.styl */"./src/stylus/components/_tabs.styl");var i=n(/*! ../VItemGroup/VItemGroup */"./src/components/VItemGroup/VItemGroup.ts"),s=n(/*! ./mixins/tabs-computed */"./src/components/VTabs/mixins/tabs-computed.js"),r=n(/*! ./mixins/tabs-generators */"./src/components/VTabs/mixins/tabs-generators.js"),o=n(/*! ./mixins/tabs-props */"./src/components/VTabs/mixins/tabs-props.js"),a=n(/*! ./mixins/tabs-touch */"./src/components/VTabs/mixins/tabs-touch.js"),c=n(/*! ./mixins/tabs-watchers */"./src/components/VTabs/mixins/tabs-watchers.js"),l=n(/*! ../../mixins/colorable */"./src/mixins/colorable.ts"),u=n(/*! ../../mixins/ssr-bootable */"./src/mixins/ssr-bootable.ts"),h=n(/*! ../../mixins/themeable */"./src/mixins/themeable.ts"),d=n(/*! ../../directives/resize */"./src/directives/resize.ts"),f=n(/*! ../../directives/touch */"./src/directives/touch.ts"),p=n(/*! ../../util/console */"./src/util/console.ts"),m=n(/*! ../../util/ThemeProvider */"./src/util/ThemeProvider.ts");e["default"]=i["BaseItemGroup"].extend({name:"v-tabs",directives:{Resize:d["default"],Touch:f["default"]},mixins:[l["default"],u["default"],s["default"],o["default"],r["default"],a["default"],c["default"],h["default"]],provide:function(){return{tabGroup:this,tabProxy:this.tabProxy,registerItems:this.registerItems,unregisterItems:this.unregisterItems}},data:function(){return{bar:[],content:[],isOverflowing:!1,nextIconVisible:!1,prevIconVisible:!1,resizeTimeout:null,scrollOffset:0,sliderWidth:null,sliderLeft:null,startX:0,tabItems:null,transitionTime:300,widths:{bar:0,container:0,wrapper:0}}},watch:{items:"onResize",tabs:"onResize"},mounted:function(){this.init()},methods:{checkIcons:function(){this.prevIconVisible=this.checkPrevIcon(),this.nextIconVisible=this.checkNextIcon()},checkPrevIcon:function(){return this.scrollOffset>0},checkNextIcon:function(){return this.widths.container>this.scrollOffset+this.widths.wrapper},callSlider:function(){var t=this;if(this.hideSlider||!this.activeTab)return!1;var e=this.activeTab;this.$nextTick((function(){e&&e.$el&&(t.sliderWidth=e.$el.scrollWidth,t.sliderLeft=e.$el.offsetLeft)}))},init:function(){this.$listeners["input"]&&Object(p["deprecate"])("@input","@change",this)},onResize:function(){if(!this._isDestroyed){this.setWidths();var t=this.isBooted?this.transitionTime:0;clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(this.updateTabsView,t)}},overflowCheck:function(t,e){this.isOverflowing&&e(t)},scrollTo:function(t){this.scrollOffset=this.newOffset(t)},setOverflow:function(){this.isOverflowing=this.widths.bar<this.widths.container},setWidths:function(){var t=this.$refs.bar?this.$refs.bar.clientWidth:0,e=this.$refs.container?this.$refs.container.clientWidth:0,n=this.$refs.wrapper?this.$refs.wrapper.clientWidth:0;this.widths={bar:t,container:e,wrapper:n},this.setOverflow()},parseNodes:function(){for(var t=[],e=[],n=[],i=[],s=(this.$slots.default||[]).length,r=0;r<s;r++){var o=this.$slots.default[r];if(o.componentOptions)switch(o.componentOptions.Ctor.options.name){case"v-tabs-slider":n.push(o);break;case"v-tabs-items":e.push(o);break;case"v-tab-item":t.push(o);break;default:i.push(o)}else i.push(o)}return{tab:i,slider:n,items:e,item:t}},registerItems:function(t){this.tabItems=t,t(this.internalValue)},unregisterItems:function(){this.tabItems=null},updateTabsView:function(){this.callSlider(),this.scrollIntoView(),this.checkIcons()},scrollIntoView:function(){if(this.activeTab){if(!this.isOverflowing)return this.scrollOffset=0;var t=this.widths.wrapper+this.scrollOffset,e=this.activeTab.$el,n=e.clientWidth,i=e.offsetLeft,s=n+i,r=.3*n;this.activeTab===this.items[this.items.length-1]&&(r=0),i<this.scrollOffset?this.scrollOffset=Math.max(i-r,0):t<s&&(this.scrollOffset-=t-s-r)}},tabProxy:function(t){this.internalValue=t}},render:function(t){var e=this.parseNodes(),n=e.tab,i=e.slider,s=e.items,r=e.item;return t("div",{staticClass:"v-tabs",directives:[{name:"resize",modifiers:{quiet:!0},value:this.onResize}]},[this.genBar([this.hideSlider?null:this.genSlider(i),n]),t(m["default"],{props:{dark:this.theme.isDark,light:!this.theme.isDark}},[this.genItems(s,r)])])}})},"./src/components/VTabs/VTabsItems.js":
- /*!********************************************!*\
- !*** ./src/components/VTabs/VTabsItems.js ***!
- \********************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ../VWindow/VWindow */"./src/components/VWindow/VWindow.ts");e["default"]=i["default"].extend({name:"v-tabs-items",inject:{registerItems:{default:null},tabProxy:{default:null},unregisterItems:{default:null}},props:{cycle:Boolean},watch:{internalValue:function(t){this.tabProxy&&this.tabProxy(t)}},created:function(){this.registerItems&&this.registerItems(this.changeModel)},beforeDestroy:function(){this.unregisterItems&&this.unregisterItems()},methods:{changeModel:function(t){this.internalValue=t},getValue:function(t,e){return t.id?t.id:i["default"].options.methods.getValue.call(this,t,e)},next:function(){(this.cycle||this.internalIndex!==this.items.length-1)&&i["default"].options.methods.next.call(this)},prev:function(){(this.cycle||0!==this.internalIndex)&&i["default"].options.methods.prev.call(this)}}})},"./src/components/VTabs/VTabsSlider.js":
- /*!*********************************************!*\
- !*** ./src/components/VTabs/VTabsSlider.js ***!
- \*********************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ../../mixins/colorable */"./src/mixins/colorable.ts");e["default"]={name:"v-tabs-slider",mixins:[i["default"]],render:function(t){return t("div",this.setBackgroundColor(this.color||"accent",{staticClass:"v-tabs__slider"}))}}},"./src/components/VTabs/index.js":
- /*!***************************************!*\
- !*** ./src/components/VTabs/index.js ***!
- \***************************************/
- /*! exports provided: VTabs, VTab, VTabItem, VTabsItems, VTabsSlider, default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ./VTabs */"./src/components/VTabs/VTabs.js");n.d(e,"VTabs",(function(){return i["default"]}));var s=n(/*! ./VTab */"./src/components/VTabs/VTab.js");n.d(e,"VTab",(function(){return s["default"]}));var r=n(/*! ./VTabsItems */"./src/components/VTabs/VTabsItems.js");n.d(e,"VTabsItems",(function(){return r["default"]}));var o=n(/*! ./VTabItem */"./src/components/VTabs/VTabItem.js");n.d(e,"VTabItem",(function(){return o["default"]}));var a=n(/*! ./VTabsSlider */"./src/components/VTabs/VTabsSlider.js");n.d(e,"VTabsSlider",(function(){return a["default"]})),e["default"]={$_vuetify_subcomponents:{VTabs:i["default"],VTab:s["default"],VTabsItems:r["default"],VTabItem:o["default"],VTabsSlider:a["default"]}}},"./src/components/VTabs/mixins/tabs-computed.js":
- /*!******************************************************!*\
- !*** ./src/components/VTabs/mixins/tabs-computed.js ***!
- \******************************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e),e["default"]={computed:{activeTab:function(){if(this.selectedItems.length)return this.selectedItems[0]},containerStyles:function(){return this.height?{height:parseInt(this.height,10)+"px"}:null},hasArrows:function(){return(this.showArrows||!this.isMobile)&&this.isOverflowing},isMobile:function(){return this.$vuetify.breakpoint.width<this.mobileBreakPoint},sliderStyles:function(){return{left:this.sliderLeft+"px",transition:null!=this.sliderLeft?null:"none",width:this.sliderWidth+"px"}}}}},"./src/components/VTabs/mixins/tabs-generators.js":
- /*!********************************************************!*\
- !*** ./src/components/VTabs/mixins/tabs-generators.js ***!
- \********************************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ../VTabsItems */"./src/components/VTabs/VTabsItems.js"),s=n(/*! ../VTabsSlider */"./src/components/VTabs/VTabsSlider.js"),r=n(/*! ../../VIcon */"./src/components/VIcon/index.ts");e["default"]={methods:{genBar:function(t){return this.$createElement("div",this.setBackgroundColor(this.color,{staticClass:"v-tabs__bar",class:this.themeClasses,ref:"bar"}),[this.genTransition("prev"),this.genWrapper(this.genContainer(t)),this.genTransition("next")])},genContainer:function(t){return this.$createElement("div",{staticClass:"v-tabs__container",class:{"v-tabs__container--align-with-title":this.alignWithTitle,"v-tabs__container--centered":this.centered,"v-tabs__container--fixed-tabs":this.fixedTabs,"v-tabs__container--grow":this.grow,"v-tabs__container--icons-and-text":this.iconsAndText,"v-tabs__container--overflow":this.isOverflowing,"v-tabs__container--right":this.right},style:this.containerStyles,ref:"container"},t)},genIcon:function(t){var e=this;return this.hasArrows&&this[t+"IconVisible"]?this.$createElement(r["default"],{staticClass:"v-tabs__icon v-tabs__icon--"+t,props:{disabled:!this[t+"IconVisible"]},on:{click:function(){return e.scrollTo(t)}}},this[t+"Icon"]):null},genItems:function(t,e){return t.length>0?t:e.length?this.$createElement(i["default"],e):null},genTransition:function(t){return this.$createElement("transition",{props:{name:"fade-transition"}},[this.genIcon(t)])},genWrapper:function(t){var e=this;return this.$createElement("div",{staticClass:"v-tabs__wrapper",class:{"v-tabs__wrapper--show-arrows":this.hasArrows},ref:"wrapper",directives:[{name:"touch",value:{start:function(t){return e.overflowCheck(t,e.onTouchStart)},move:function(t){return e.overflowCheck(t,e.onTouchMove)},end:function(t){return e.overflowCheck(t,e.onTouchEnd)}}}]},[t])},genSlider:function(t){return t.length||(t=[this.$createElement(s["default"],{props:{color:this.sliderColor}})]),this.$createElement("div",{staticClass:"v-tabs__slider-wrapper",style:this.sliderStyles},t)}}}},"./src/components/VTabs/mixins/tabs-props.js":
- /*!***************************************************!*\
- !*** ./src/components/VTabs/mixins/tabs-props.js ***!
- \***************************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e),e["default"]={props:{activeClass:{type:String,default:"v-tabs__item--active"},alignWithTitle:Boolean,centered:Boolean,fixedTabs:Boolean,grow:Boolean,height:{type:[Number,String],default:void 0,validator:function(t){return!isNaN(parseInt(t))}},hideSlider:Boolean,iconsAndText:Boolean,mandatory:{type:Boolean,default:!0},mobileBreakPoint:{type:[Number,String],default:1264,validator:function(t){return!isNaN(parseInt(t))}},nextIcon:{type:String,default:"$vuetify.icons.next"},prevIcon:{type:String,default:"$vuetify.icons.prev"},right:Boolean,showArrows:Boolean,sliderColor:{type:String,default:"accent"},value:[Number,String]}}},"./src/components/VTabs/mixins/tabs-touch.js":
- /*!***************************************************!*\
- !*** ./src/components/VTabs/mixins/tabs-touch.js ***!
- \***************************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e),e["default"]={methods:{newOffset:function(t){var e=this.$refs.wrapper.clientWidth;return"prev"===t?Math.max(this.scrollOffset-e,0):Math.min(this.scrollOffset+e,this.$refs.container.clientWidth-e)},onTouchStart:function(t){this.startX=this.scrollOffset+t.touchstartX,this.$refs.container.style.transition="none",this.$refs.container.style.willChange="transform"},onTouchMove:function(t){this.scrollOffset=this.startX-t.touchmoveX},onTouchEnd:function(){var t=this.$refs.container,e=this.$refs.wrapper,n=t.clientWidth-e.clientWidth;t.style.transition=null,t.style.willChange=null,this.scrollOffset<0||!this.isOverflowing?this.scrollOffset=0:this.scrollOffset>=n&&(this.scrollOffset=n)}}}},"./src/components/VTabs/mixins/tabs-watchers.js":
- /*!******************************************************!*\
- !*** ./src/components/VTabs/mixins/tabs-watchers.js ***!
- \******************************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e),e["default"]={watch:{activeTab:function(t,e){this.setOverflow(),t&&(this.tabItems&&this.tabItems(this.getValue(t,this.items.indexOf(t))),null!=e&&this.updateTabsView())},alignWithTitle:"callSlider",centered:"callSlider",fixedTabs:"callSlider",hasArrows:function(t){t||(this.scrollOffset=0)},internalValue:function(t){this.$listeners["input"]&&this.$emit("input",t)},lazyValue:"updateTabs",right:"callSlider","$vuetify.application.left":"onResize","$vuetify.application.right":"onResize",scrollOffset:function(t){this.$refs.container.style.transform="translateX("+-t+"px)",this.hasArrows&&(this.prevIconVisible=this.checkPrevIcon(),this.nextIconVisible=this.checkNextIcon())}}}},"./src/components/VTextField/VTextField.js":
- /*!*************************************************!*\
- !*** ./src/components/VTextField/VTextField.js ***!
- \*************************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);n(/*! ../../stylus/components/_text-fields.styl */"./src/stylus/components/_text-fields.styl");var i=n(/*! ../VInput */"./src/components/VInput/index.ts"),s=n(/*! ../VCounter */"./src/components/VCounter/index.ts"),r=n(/*! ../VLabel */"./src/components/VLabel/index.ts"),o=n(/*! ../../mixins/maskable */"./src/mixins/maskable.js"),a=n(/*! ../../mixins/loadable */"./src/mixins/loadable.ts"),c=n(/*! ../../directives/ripple */"./src/directives/ripple.ts"),l=n(/*! ../../util/helpers */"./src/util/helpers.ts"),u=n(/*! ../../util/console */"./src/util/console.ts"),h=function(){return h=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var s in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t},h.apply(this,arguments)},d=["color","file","time","date","datetime-local","week","month"];e["default"]=i["default"].extend({name:"v-text-field",directives:{Ripple:c["default"]},mixins:[o["default"],a["default"]],inheritAttrs:!1,props:{appendOuterIcon:String,appendOuterIconCb:Function,autofocus:Boolean,box:Boolean,browserAutocomplete:String,clearable:Boolean,clearIcon:{type:String,default:"$vuetify.icons.clear"},clearIconCb:Function,color:{type:String,default:"primary"},counter:[Boolean,Number,String],flat:Boolean,fullWidth:Boolean,label:String,outline:Boolean,placeholder:String,prefix:String,prependInnerIcon:String,prependInnerIconCb:Function,reverse:Boolean,singleLine:Boolean,solo:Boolean,soloInverted:Boolean,suffix:String,type:{type:String,default:"text"}},data:function(){return{badInput:!1,initialValue:null,internalChange:!1,isClearing:!1}},computed:{classes:function(){return{"v-text-field":!0,"v-text-field--full-width":this.fullWidth,"v-text-field--prefix":this.prefix,"v-text-field--single-line":this.isSingle,"v-text-field--solo":this.isSolo,"v-text-field--solo-inverted":this.soloInverted,"v-text-field--solo-flat":this.flat,"v-text-field--box":this.box,"v-text-field--enclosed":this.isEnclosed,"v-text-field--reverse":this.reverse,"v-text-field--outline":this.hasOutline,"v-text-field--placeholder":this.placeholder}},counterValue:function(){return(this.internalValue||"").toString().length},directivesInput:function(){return[]},hasOutline:function(){return this.outline||this.textarea},internalValue:{get:function(){return this.lazyValue},set:function(t){this.mask&&t!==this.lazyValue?(this.lazyValue=this.unmaskText(this.maskText(this.unmaskText(t))),this.setSelectionRange()):(this.lazyValue=t,this.$emit("input",this.lazyValue))}},isDirty:function(){return null!=this.lazyValue&&this.lazyValue.toString().length>0||this.badInput},isEnclosed:function(){return this.box||this.isSolo||this.hasOutline||this.fullWidth},isLabelActive:function(){return this.isDirty||d.includes(this.type)},isSingle:function(){return this.isSolo||this.singleLine},isSolo:function(){return this.solo||this.soloInverted},labelPosition:function(){var t=this.prefix&&!this.labelValue?this.prefixWidth:0;return!this.$vuetify.rtl!==!this.reverse?{left:"auto",right:t}:{left:t,right:"auto"}},showLabel:function(){return this.hasLabel&&(!this.isSingle||!this.isLabelActive&&!this.placeholder&&!this.prefixLabel)},labelValue:function(){return!this.isSingle&&Boolean(this.isFocused||this.isLabelActive||this.placeholder||this.prefixLabel)},prefixWidth:function(){if(this.prefix||this.$refs.prefix)return this.$refs.prefix.offsetWidth},prefixLabel:function(){return this.prefix&&!this.value}},watch:{isFocused:function(t){this.hasColor=t,t?this.initialValue=this.lazyValue:this.initialValue!==this.lazyValue&&this.$emit("change",this.lazyValue)},value:function(t){var e=this;if(this.mask&&!this.internalChange){var n=this.maskText(this.unmaskText(t));this.lazyValue=this.unmaskText(n),String(t)!==this.lazyValue&&this.$nextTick((function(){e.$refs.input.value=n,e.$emit("input",e.lazyValue)}))}else this.lazyValue=t}},mounted:function(){this.autofocus&&this.onFocus()},methods:{focus:function(){this.onFocus()},blur:function(t){var e=this;window.requestAnimationFrame((function(){e.$refs.input&&e.$refs.input.blur()})),this.onBlur(t)},clearableCallback:function(){var t=this;this.internalValue=null,this.$nextTick((function(){return t.$refs.input.focus()}))},genAppendSlot:function(){var t=[];return this.$slots["append-outer"]?t.push(this.$slots["append-outer"]):this.appendOuterIcon&&t.push(this.genIcon("appendOuter")),this.genSlot("append","outer",t)},genPrependInnerSlot:function(){var t=[];return this.$slots["prepend-inner"]?t.push(this.$slots["prepend-inner"]):this.prependInnerIcon&&t.push(this.genIcon("prependInner")),this.genSlot("prepend","inner",t)},genIconSlot:function(){var t=[];return this.$slots["append"]?t.push(this.$slots["append"]):this.appendIcon&&t.push(this.genIcon("append")),this.genSlot("append","inner",t)},genInputSlot:function(){var t=i["default"].options.methods.genInputSlot.call(this),e=this.genPrependInnerSlot();return e&&t.children.unshift(e),t},genClearIcon:function(){if(!this.clearable)return null;var t=!!this.isDirty&&"clear";return this.clearIconCb&&Object(u["deprecate"])(":clear-icon-cb","@click:clear",this),this.genSlot("append","inner",[this.genIcon(t,!this.$listeners["click:clear"]&&this.clearIconCb||this.clearableCallback,!1)])},genCounter:function(){if(!1===this.counter||null==this.counter)return null;var t=!0===this.counter?this.$attrs.maxlength:this.counter;return this.$createElement(s["default"],{props:{dark:this.dark,light:this.light,max:t,value:this.counterValue}})},genDefaultSlot:function(){return[this.genTextFieldSlot(),this.genClearIcon(),this.genIconSlot(),this.genProgress()]},genLabel:function(){if(!this.showLabel)return null;var t={props:{absolute:!0,color:this.validationState,dark:this.dark,disabled:this.disabled,focused:!this.isSingle&&(this.isFocused||!!this.validationState),left:this.labelPosition.left,light:this.light,right:this.labelPosition.right,value:this.labelValue}};return this.$attrs.id&&(t.props.for=this.$attrs.id),this.$createElement(r["default"],t,this.$slots.label||this.label)},genInput:function(){var t=Object.assign({},this.$listeners);delete t["change"];var e={style:{},domProps:{value:this.maskText(this.lazyValue)},attrs:h({"aria-label":(!this.$attrs||!this.$attrs.id)&&this.label},this.$attrs,{autofocus:this.autofocus,disabled:this.disabled,readonly:this.readonly,type:this.type}),on:Object.assign(t,{blur:this.onBlur,input:this.onInput,focus:this.onFocus,keydown:this.onKeyDown}),ref:"input"};return this.placeholder&&(e.attrs.placeholder=this.placeholder),this.mask&&(e.attrs.maxlength=this.masked.length),this.browserAutocomplete&&(e.attrs.autocomplete=this.browserAutocomplete),this.$createElement("input",e)},genMessages:function(){return this.hideDetails?null:this.$createElement("div",{staticClass:"v-text-field__details"},[i["default"].options.methods.genMessages.call(this),this.genCounter()])},genTextFieldSlot:function(){return this.$createElement("div",{staticClass:"v-text-field__slot"},[this.genLabel(),this.prefix?this.genAffix("prefix"):null,this.genInput(),this.suffix?this.genAffix("suffix"):null])},genAffix:function(t){return this.$createElement("div",{class:"v-text-field__"+t,ref:t},this[t])},onBlur:function(t){this.isFocused=!1,this.internalChange=!1,t&&this.$emit("blur",t)},onClick:function(){this.isFocused||this.disabled||this.$refs.input.focus()},onFocus:function(t){if(this.$refs.input)return document.activeElement!==this.$refs.input?this.$refs.input.focus():void(this.isFocused||(this.isFocused=!0,this.$emit("focus",t)))},onInput:function(t){this.internalChange=!0,this.mask&&this.resetSelections(t.target),this.internalValue=t.target.value,this.badInput=t.target.validity&&t.target.validity.badInput},onKeyDown:function(t){this.internalChange=!0,t.keyCode===l["keyCodes"].enter&&this.$emit("change",this.internalValue),this.$emit("keydown",t)},onMouseDown:function(t){t.target!==this.$refs.input&&(t.preventDefault(),t.stopPropagation()),i["default"].options.methods.onMouseDown.call(this,t)},onMouseUp:function(t){this.hasMouseDown&&this.focus(),i["default"].options.methods.onMouseUp.call(this,t)}}})},"./src/components/VTextField/index.js":
- /*!********************************************!*\
- !*** ./src/components/VTextField/index.js ***!
- \********************************************/
- /*! exports provided: VTextField, default */function(t,e,n){"use strict";n.r(e),n.d(e,"VTextField",(function(){return c}));var i=n(/*! ./VTextField */"./src/components/VTextField/VTextField.js"),s=n(/*! ../VTextarea/VTextarea */"./src/components/VTextarea/VTextarea.js"),r=n(/*! ../../util/rebuildFunctionalSlots */"./src/util/rebuildFunctionalSlots.ts"),o=n(/*! ../../util/dedupeModelListeners */"./src/util/dedupeModelListeners.ts"),a=n(/*! ../../util/console */"./src/util/console.ts"),c={functional:!0,$_wrapperFor:i["default"],props:{textarea:Boolean,multiLine:Boolean},render:function(t,e){var n=e.props,l=e.data,u=e.slots,h=e.parent;Object(o["default"])(l);var d=Object(r["default"])(u(),t);return n.textarea&&Object(a["deprecate"])("<v-text-field textarea>","<v-textarea outline>",c,h),n.multiLine&&Object(a["deprecate"])("<v-text-field multi-line>","<v-textarea>",c,h),n.textarea||n.multiLine?(l.attrs.outline=n.textarea,t(s["default"],l,d)):t(i["default"],l,d)}};e["default"]=c},"./src/components/VTextarea/VTextarea.js":
- /*!***********************************************!*\
- !*** ./src/components/VTextarea/VTextarea.js ***!
- \***********************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);n(/*! ../../stylus/components/_textarea.styl */"./src/stylus/components/_textarea.styl");var i=n(/*! ../VTextField/VTextField */"./src/components/VTextField/VTextField.js"),s=n(/*! ../../util/console */"./src/util/console.ts"),r=function(){return r=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var s in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t},r.apply(this,arguments)};e["default"]={name:"v-textarea",extends:i["default"],props:{autoGrow:Boolean,noResize:Boolean,outline:Boolean,rowHeight:{type:[Number,String],default:24,validator:function(t){return!isNaN(parseFloat(t))}},rows:{type:[Number,String],default:5,validator:function(t){return!isNaN(parseInt(t,10))}}},computed:{classes:function(){return r({"v-textarea":!0,"v-textarea--auto-grow":this.autoGrow,"v-textarea--no-resize":this.noResizeHandle},i["default"].options.computed.classes.call(this,null))},dynamicHeight:function(){return this.autoGrow?this.inputHeight:"auto"},isEnclosed:function(){return this.textarea||i["default"].options.computed.isEnclosed.call(this)},noResizeHandle:function(){return this.noResize||this.autoGrow}},watch:{lazyValue:function(){!this.internalChange&&this.autoGrow&&this.$nextTick(this.calculateInputHeight)}},mounted:function(){var t=this;setTimeout((function(){t.autoGrow&&t.calculateInputHeight()}),0),this.autoGrow&&this.noResize&&Object(s["consoleInfo"])('"no-resize" is now implied when using "auto-grow", and can be removed',this)},methods:{calculateInputHeight:function(){var t=this.$refs.input;if(t){t.style.height=0;var e=t.scrollHeight,n=parseInt(this.rows,10)*parseFloat(this.rowHeight);t.style.height=Math.max(n,e)+"px"}},genInput:function(){var t=i["default"].options.methods.genInput.call(this);return t.tag="textarea",delete t.data.attrs.type,t.data.attrs.rows=this.rows,t},onInput:function(t){i["default"].options.methods.onInput.call(this,t),this.autoGrow&&this.calculateInputHeight()},onKeyDown:function(t){this.isFocused&&13===t.keyCode&&t.stopPropagation(),this.internalChange=!0,this.$emit("keydown",t)}}}},"./src/components/VTextarea/index.js":
- /*!*******************************************!*\
- !*** ./src/components/VTextarea/index.js ***!
- \*******************************************/
- /*! exports provided: VTextarea, default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ./VTextarea */"./src/components/VTextarea/VTextarea.js");n.d(e,"VTextarea",(function(){return i["default"]})),e["default"]=i["default"]},"./src/components/VTimePicker/VTimePicker.ts":
- /*!***************************************************!*\
- !*** ./src/components/VTimePicker/VTimePicker.ts ***!
- \***************************************************/
- /*! exports provided: selectingTimes, default */function(t,e,n){"use strict";n.r(e),n.d(e,"selectingTimes",(function(){return p}));var i=n(/*! ./VTimePickerTitle */"./src/components/VTimePicker/VTimePickerTitle.ts"),s=n(/*! ./VTimePickerClock */"./src/components/VTimePicker/VTimePickerClock.ts"),r=n(/*! ../../mixins/picker */"./src/mixins/picker.ts"),o=n(/*! ../../util/helpers */"./src/util/helpers.ts"),a=n(/*! ../VDatePicker/util/pad */"./src/components/VDatePicker/util/pad.ts"),c=n(/*! ../../util/mixins */"./src/util/mixins.ts"),l=function(t,e){var n="function"===typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,s,r=n.call(t),o=[];try{while((void 0===e||e-- >0)&&!(i=r.next()).done)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r["return"])&&n.call(r)}finally{if(s)throw s.error}}return o},u=Object(o["createRange"])(24),h=Object(o["createRange"])(12),d=h.map((function(t){return t+12})),f=Object(o["createRange"])(60),p={hour:1,minute:2,second:3},m={1:"hour",2:"minute",3:"second"};e["default"]=Object(c["default"])(r["default"]).extend({name:"v-time-picker",props:{allowedHours:Function,allowedMinutes:Function,allowedSeconds:Function,disabled:Boolean,format:{type:String,default:"ampm",validator:function(t){return["ampm","24hr"].includes(t)}},min:String,max:String,readonly:Boolean,scrollable:Boolean,useSeconds:Boolean,value:null},data:function(){return{inputHour:null,inputMinute:null,inputSecond:null,lazyInputHour:null,lazyInputMinute:null,lazyInputSecond:null,period:"am",selecting:p.hour}},computed:{selectingHour:{get:function(){return this.selecting===p.hour},set:function(t){this.selecting=p.hour}},selectingMinute:{get:function(){return this.selecting===p.minute},set:function(t){this.selecting=p.minute}},selectingSecond:{get:function(){return this.selecting===p.second},set:function(t){this.selecting=p.second}},isAllowedHourCb:function(){var t=this;if(!this.min&&!this.max)return this.allowedHours;var e=this.min?Number(this.min.split(":")[0]):0,n=this.max?Number(this.max.split(":")[0]):23;return function(i){return i>=1*e&&i<=1*n&&(!t.allowedHours||t.allowedHours(i))}},isAllowedMinuteCb:function(){var t=this,e=!this.allowedHours||this.allowedHours(this.inputHour);if(!this.min&&!this.max)return e?this.allowedMinutes:function(){return!1};var n=l(this.min?this.min.split(":").map(Number):[0,0],2),i=n[0],s=n[1],r=l(this.max?this.max.split(":").map(Number):[23,59],2),o=r[0],a=r[1],c=60*i+1*s,u=60*o+1*a;return function(n){var i=60*t.inputHour+n;return i>=c&&i<=u&&e&&(!t.allowedMinutes||t.allowedMinutes(n))}},isAllowedSecondCb:function(){var t=this,e=!this.allowedHours||this.allowedHours(this.inputHour),n=!this.allowedMinutes||this.allowedMinutes(this.inputMinute);if(!this.min&&!this.max)return e&&n?this.allowedSeconds:function(){return!1};var i=l(this.min?this.min.split(":").map(Number):[0,0,0],3),s=i[0],r=i[1],o=i[2],a=l(this.max?this.max.split(":").map(Number):[23,59,59],3),c=a[0],u=a[1],h=a[2],d=3600*s+60*r+1*(o||0),f=3600*c+60*u+1*(h||0);return function(i){var s=3600*t.inputHour+60*t.inputMinute+i;return s>=d&&s<=f&&e&&n&&(!t.allowedSeconds||t.allowedSeconds(i))}},isAmPm:function(){return"ampm"===this.format}},watch:{value:"setInputData"},mounted:function(){this.setInputData(this.value)},methods:{genValue:function(){return null==this.inputHour||null==this.inputMinute||this.useSeconds&&null==this.inputSecond?null:Object(a["default"])(this.inputHour)+":"+Object(a["default"])(this.inputMinute)+(this.useSeconds?":"+Object(a["default"])(this.inputSecond):"")},emitValue:function(){var t=this.genValue();null!==t&&this.$emit("input",t)},setPeriod:function(t){if(this.period=t,null!=this.inputHour){var e=this.inputHour+("am"===t?-12:12);this.inputHour=this.firstAllowed("hour",e),this.emitValue()}},setInputData:function(t){if(null==t||""===t)this.inputHour=null,this.inputMinute=null,this.inputSecond=null;else if(t instanceof Date)this.inputHour=t.getHours(),this.inputMinute=t.getMinutes(),this.inputSecond=t.getSeconds();else{var e=l(t.trim().toLowerCase().match(/^(\d+):(\d+)(:(\d+))?([ap]m)?$/)||new Array(6),6),n=e[1],i=e[2],s=e[4],r=e[5];this.inputHour=r?this.convert12to24(parseInt(n,10),r):parseInt(n,10),this.inputMinute=parseInt(i,10),this.inputSecond=parseInt(s||0,10)}this.period=null==this.inputHour||this.inputHour<12?"am":"pm"},convert24to12:function(t){return t?(t-1)%12+1:12},convert12to24:function(t,e){return t%12+("pm"===e?12:0)},onInput:function(t){this.selecting===p.hour?this.inputHour=this.isAmPm?this.convert12to24(t,this.period):t:this.selecting===p.minute?this.inputMinute=t:this.inputSecond=t,this.emitValue()},onChange:function(t){this.$emit("click:"+m[this.selecting],t);var e=this.selecting===(this.useSeconds?p.second:p.minute);if(this.selecting===p.hour?this.selecting=p.minute:this.useSeconds&&this.selecting===p.minute&&(this.selecting=p.second),this.inputHour!==this.lazyInputHour||this.inputMinute!==this.lazyInputMinute||this.useSeconds&&this.inputSecond!==this.lazyInputSecond){var n=this.genValue();null!==n&&(this.lazyInputHour=this.inputHour,this.lazyInputMinute=this.inputMinute,this.useSeconds&&(this.lazyInputSecond=this.inputSecond),e&&this.$emit("change",n))}},firstAllowed:function(t,e){var n="hour"===t?this.isAllowedHourCb:"minute"===t?this.isAllowedMinuteCb:this.isAllowedSecondCb;if(!n)return e;var i="minute"===t||"second"===t?f:this.isAmPm?e<12?h:d:u,s=i.find((function(t){return n((t+e)%i.length+i[0])}));return((s||0)+e)%i.length+i[0]},genClock:function(){return this.$createElement(s["default"],{props:{allowedValues:this.selecting===p.hour?this.isAllowedHourCb:this.selecting===p.minute?this.isAllowedMinuteCb:this.isAllowedSecondCb,color:this.color,dark:this.dark,disabled:this.disabled,double:this.selecting===p.hour&&!this.isAmPm,format:this.selecting===p.hour?this.isAmPm?this.convert24to12:function(t){return t}:function(t){return Object(a["default"])(t,2)},light:this.light,max:this.selecting===p.hour?this.isAmPm&&"am"===this.period?11:23:59,min:this.selecting===p.hour&&this.isAmPm&&"pm"===this.period?12:0,readonly:this.readonly,scrollable:this.scrollable,size:Number(this.width)-(!this.fullWidth&&this.landscape?80:20),step:this.selecting===p.hour?1:5,value:this.selecting===p.hour?this.inputHour:this.selecting===p.minute?this.inputMinute:this.inputSecond},on:{input:this.onInput,change:this.onChange},ref:"clock"})},genPickerBody:function(){return this.$createElement("div",{staticClass:"v-time-picker-clock__container",key:this.selecting},[this.genClock()])},genPickerTitle:function(){var t=this;return this.$createElement(i["default"],{props:{ampm:this.isAmPm,disabled:this.disabled,hour:this.inputHour,minute:this.inputMinute,second:this.inputSecond,period:this.period,readonly:this.readonly,useSeconds:this.useSeconds,selecting:this.selecting},on:{"update:selecting":function(e){return t.selecting=e},"update:period":this.setPeriod},ref:"title",slot:"title"})}},render:function(){return this.genPicker("v-picker--time")}})},"./src/components/VTimePicker/VTimePickerClock.ts":
- /*!********************************************************!*\
- !*** ./src/components/VTimePicker/VTimePickerClock.ts ***!
- \********************************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);n(/*! ../../stylus/components/_time-picker-clock.styl */"./src/stylus/components/_time-picker-clock.styl");var i=n(/*! ../../mixins/colorable */"./src/mixins/colorable.ts"),s=n(/*! ../../mixins/themeable */"./src/mixins/themeable.ts"),r=n(/*! ../../util/mixins */"./src/util/mixins.ts"),o=function(){return o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var s in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t},o.apply(this,arguments)};e["default"]=Object(r["default"])(i["default"],s["default"]).extend({name:"v-time-picker-clock",props:{allowedValues:Function,disabled:Boolean,double:Boolean,format:{type:Function,default:function(t){return t}},max:{type:Number,required:!0},min:{type:Number,required:!0},scrollable:Boolean,readonly:Boolean,rotate:{type:Number,default:0},step:{type:Number,default:1},value:Number},data:function(){return{inputValue:this.value,isDragging:!1,valueOnMouseDown:null,valueOnMouseUp:null}},computed:{count:function(){return this.max-this.min+1},degreesPerUnit:function(){return 360/this.roundCount},degrees:function(){return this.degreesPerUnit*Math.PI/180},displayedValue:function(){return null==this.value?this.min:this.value},innerRadiusScale:function(){return.62},roundCount:function(){return this.double?this.count/2:this.count}},watch:{value:function(t){this.inputValue=t}},methods:{wheel:function(t){t.preventDefault();var e=Math.sign(-t.deltaY||1),n=this.displayedValue;do{n+=e,n=(n-this.min+this.count)%this.count+this.min}while(!this.isAllowed(n)&&n!==this.displayedValue);n!==this.displayedValue&&this.update(n)},isInner:function(t){return this.double&&t-this.min>=this.roundCount},handScale:function(t){return this.isInner(t)?this.innerRadiusScale:1},isAllowed:function(t){return!this.allowedValues||this.allowedValues(t)},genValues:function(){for(var t=[],e=this.min;e<=this.max;e+=this.step){var n=e===this.value&&(this.color||"accent");t.push(this.$createElement("span",this.setBackgroundColor(n,{staticClass:"v-time-picker-clock__item",class:{"v-time-picker-clock__item--active":e===this.displayedValue,"v-time-picker-clock__item--disabled":this.disabled||!this.isAllowed(e)},style:this.getTransform(e),domProps:{innerHTML:"<span>"+this.format(e)+"</span>"}})))}return t},genHand:function(){var t="scaleY("+this.handScale(this.displayedValue)+")",e=this.rotate+this.degreesPerUnit*(this.displayedValue-this.min),n=null!=this.value&&(this.color||"accent");return this.$createElement("div",this.setBackgroundColor(n,{staticClass:"v-time-picker-clock__hand",class:{"v-time-picker-clock__hand--inner":this.isInner(this.value)},style:{transform:"rotate("+e+"deg) "+t}}))},getTransform:function(t){var e=this.getPosition(t),n=e.x,i=e.y;return{left:50+50*n+"%",top:50+50*i+"%"}},getPosition:function(t){var e=this.rotate*Math.PI/180;return{x:Math.sin((t-this.min)*this.degrees+e)*this.handScale(t),y:-Math.cos((t-this.min)*this.degrees+e)*this.handScale(t)}},onMouseDown:function(t){t.preventDefault(),this.valueOnMouseDown=null,this.valueOnMouseUp=null,this.isDragging=!0,this.onDragMove(t)},onMouseUp:function(){this.isDragging=!1,null!==this.valueOnMouseUp&&this.isAllowed(this.valueOnMouseUp)&&this.$emit("change",this.valueOnMouseUp)},onDragMove:function(t){if(t.preventDefault(),this.isDragging||"click"===t.type){var e,n=this.$refs.clock.getBoundingClientRect(),i=n.width,s=n.top,r=n.left,o=this.$refs.innerClock.getBoundingClientRect().width,a="touches"in t?t.touches[0]:t,c=a.clientX,l=a.clientY,u={x:i/2,y:-i/2},h={x:c-r,y:s-l},d=Math.round(this.angle(u,h)-this.rotate+360)%360,f=this.double&&this.euclidean(u,h)<(o+o*this.innerRadiusScale)/4,p=(Math.round(d/this.degreesPerUnit)+(f?this.roundCount:0))%this.count+this.min;e=d>=360-this.degreesPerUnit/2?f?this.max-this.roundCount+1:this.min:p,this.isAllowed(p)&&(null===this.valueOnMouseDown&&(this.valueOnMouseDown=e),this.valueOnMouseUp=e,this.update(e))}},update:function(t){this.inputValue!==t&&(this.inputValue=t,this.$emit("input",t))},euclidean:function(t,e){var n=e.x-t.x,i=e.y-t.y;return Math.sqrt(n*n+i*i)},angle:function(t,e){var n=2*Math.atan2(e.y-t.y-this.euclidean(t,e),e.x-t.x);return Math.abs(180*n/Math.PI)}},render:function(t){var e=this,n={staticClass:"v-time-picker-clock",class:o({"v-time-picker-clock--indeterminate":null==this.value},this.themeClasses),on:this.readonly||this.disabled?void 0:Object.assign({mousedown:this.onMouseDown,mouseup:this.onMouseUp,mouseleave:function(){return e.isDragging&&e.onMouseUp()},touchstart:this.onMouseDown,touchend:this.onMouseUp,mousemove:this.onDragMove,touchmove:this.onDragMove},this.scrollable?{wheel:this.wheel}:{}),ref:"clock"};return t("div",n,[t("div",{staticClass:"v-time-picker-clock__inner",ref:"innerClock"},[this.genHand(),this.genValues()])])}})},"./src/components/VTimePicker/VTimePickerTitle.ts":
- /*!********************************************************!*\
- !*** ./src/components/VTimePicker/VTimePickerTitle.ts ***!
- \********************************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);n(/*! ../../stylus/components/_time-picker-title.styl */"./src/stylus/components/_time-picker-title.styl");var i=n(/*! ../../mixins/picker-button */"./src/mixins/picker-button.ts"),s=n(/*! ../VDatePicker/util */"./src/components/VDatePicker/util/index.ts"),r=n(/*! ../../util/mixins */"./src/util/mixins.ts"),o=n(/*! ./VTimePicker */"./src/components/VTimePicker/VTimePicker.ts");e["default"]=Object(r["default"])(i["default"]).extend({name:"v-time-picker-title",props:{ampm:Boolean,disabled:Boolean,hour:Number,minute:Number,second:Number,period:{type:String,validator:function(t){return"am"===t||"pm"===t}},readonly:Boolean,useSeconds:Boolean,selecting:Number},methods:{genTime:function(){var t=this.hour;this.ampm&&(t=t?(t-1)%12+1:12);var e=null==this.hour?"--":this.ampm?String(t):Object(s["pad"])(t),n=null==this.minute?"--":Object(s["pad"])(this.minute),i=[this.genPickerButton("selecting",o["selectingTimes"].hour,e,this.disabled),this.$createElement("span",":"),this.genPickerButton("selecting",o["selectingTimes"].minute,n,this.disabled)];if(this.useSeconds){var r=null==this.second?"--":Object(s["pad"])(this.second);i.push(this.$createElement("span",":")),i.push(this.genPickerButton("selecting",o["selectingTimes"].second,r,this.disabled))}return this.$createElement("div",{class:"v-time-picker-title__time"},i)},genAmPm:function(){return this.$createElement("div",{staticClass:"v-time-picker-title__ampm"},[this.genPickerButton("period","am","am",this.disabled||this.readonly),this.genPickerButton("period","pm","pm",this.disabled||this.readonly)])}},render:function(t){var e=[this.genTime()];return this.ampm&&e.push(this.genAmPm()),t("div",{staticClass:"v-time-picker-title"},e)}})},"./src/components/VTimePicker/index.ts":
- /*!*********************************************!*\
- !*** ./src/components/VTimePicker/index.ts ***!
- \*********************************************/
- /*! exports provided: VTimePicker, VTimePickerClock, VTimePickerTitle, default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ./VTimePicker */"./src/components/VTimePicker/VTimePicker.ts");n.d(e,"VTimePicker",(function(){return i["default"]}));var s=n(/*! ./VTimePickerClock */"./src/components/VTimePicker/VTimePickerClock.ts");n.d(e,"VTimePickerClock",(function(){return s["default"]}));var r=n(/*! ./VTimePickerTitle */"./src/components/VTimePicker/VTimePickerTitle.ts");n.d(e,"VTimePickerTitle",(function(){return r["default"]})),e["default"]={$_vuetify_subcomponents:{VTimePicker:i["default"],VTimePickerClock:s["default"],VTimePickerTitle:r["default"]}}},"./src/components/VTimeline/VTimeline.ts":
- /*!***********************************************!*\
- !*** ./src/components/VTimeline/VTimeline.ts ***!
- \***********************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);n(/*! ../../stylus/components/_timeline.styl */"./src/stylus/components/_timeline.styl");var i=n(/*! ../../util/mixins */"./src/util/mixins.ts"),s=n(/*! ../../mixins/themeable */"./src/mixins/themeable.ts"),r=function(){return r=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var s in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t},r.apply(this,arguments)};e["default"]=Object(i["default"])(s["default"]).extend({name:"v-timeline",props:{alignTop:Boolean,dense:Boolean},computed:{classes:function(){return r({"v-timeline--align-top":this.alignTop,"v-timeline--dense":this.dense},this.themeClasses)}},render:function(t){return t("div",{staticClass:"v-timeline",class:this.classes},this.$slots.default)}})},"./src/components/VTimeline/VTimelineItem.ts":
- /*!***************************************************!*\
- !*** ./src/components/VTimeline/VTimelineItem.ts ***!
- \***************************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ../../util/mixins */"./src/util/mixins.ts"),s=n(/*! ../VIcon */"./src/components/VIcon/index.ts"),r=n(/*! ../../mixins/themeable */"./src/mixins/themeable.ts"),o=n(/*! ../../mixins/colorable */"./src/mixins/colorable.ts"),a=function(){return a=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var s in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t},a.apply(this,arguments)};e["default"]=Object(i["default"])(o["default"],r["default"]).extend({name:"v-timeline-item",props:{color:{type:String,default:"primary"},fillDot:Boolean,hideDot:Boolean,icon:String,iconColor:String,large:Boolean,left:Boolean,right:Boolean,small:Boolean},computed:{hasIcon:function(){return!!this.icon||!!this.$slots.icon}},methods:{genBody:function(){return this.$createElement("div",{staticClass:"v-timeline-item__body"},this.$slots.default)},genIcon:function(){return this.$slots.icon?this.$slots.icon:this.$createElement(s["default"],{props:{color:this.iconColor,dark:!this.theme.isDark,small:this.small}},this.icon)},genInnerDot:function(){var t=this.setBackgroundColor(this.color);return this.$createElement("div",a({staticClass:"v-timeline-item__inner-dot"},t),[this.hasIcon&&this.genIcon()])},genDot:function(){return this.$createElement("div",{staticClass:"v-timeline-item__dot",class:{"v-timeline-item__dot--small":this.small,"v-timeline-item__dot--large":this.large}},[this.genInnerDot()])},genOpposite:function(){return this.$createElement("div",{staticClass:"v-timeline-item__opposite"},this.$slots.opposite)}},render:function(t){var e=[this.genBody()];return this.hideDot||e.unshift(this.genDot()),this.$slots.opposite&&e.push(this.genOpposite()),t("div",{staticClass:"v-timeline-item",class:a({"v-timeline-item--fill-dot":this.fillDot,"v-timeline-item--left":this.left,"v-timeline-item--right":this.right},this.themeClasses)},e)}})},"./src/components/VTimeline/index.ts":
- /*!*******************************************!*\
- !*** ./src/components/VTimeline/index.ts ***!
- \*******************************************/
- /*! exports provided: VTimeline, VTimelineItem, default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ./VTimeline */"./src/components/VTimeline/VTimeline.ts");n.d(e,"VTimeline",(function(){return i["default"]}));var s=n(/*! ./VTimelineItem */"./src/components/VTimeline/VTimelineItem.ts");n.d(e,"VTimelineItem",(function(){return s["default"]})),e["default"]={$_vuetify_subcomponents:{VTimeline:i["default"],VTimelineItem:s["default"]}}},"./src/components/VToolbar/VToolbar.ts":
- /*!*********************************************!*\
- !*** ./src/components/VToolbar/VToolbar.ts ***!
- \*********************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);n(/*! ../../stylus/components/_toolbar.styl */"./src/stylus/components/_toolbar.styl");var i=n(/*! ../../mixins/applicationable */"./src/mixins/applicationable.ts"),s=n(/*! ../../mixins/colorable */"./src/mixins/colorable.ts"),r=n(/*! ../../mixins/themeable */"./src/mixins/themeable.ts"),o=n(/*! ../../mixins/ssr-bootable */"./src/mixins/ssr-bootable.ts"),a=n(/*! ../../directives/scroll */"./src/directives/scroll.ts"),c=n(/*! ../../util/console */"./src/util/console.ts"),l=n(/*! ../../util/mixins */"./src/util/mixins.ts"),u=function(){return u=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var s in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t},u.apply(this,arguments)};e["default"]=Object(l["default"])(Object(i["default"])("top",["clippedLeft","clippedRight","computedHeight","invertedScroll","manualScroll"]),s["default"],o["default"],r["default"]).extend({name:"v-toolbar",directives:{Scroll:a["default"]},props:{card:Boolean,clippedLeft:Boolean,clippedRight:Boolean,dense:Boolean,extended:Boolean,extensionHeight:{type:[Number,String],validator:function(t){return!isNaN(parseInt(t))}},flat:Boolean,floating:Boolean,height:{type:[Number,String],validator:function(t){return!isNaN(parseInt(t))}},invertedScroll:Boolean,manualScroll:Boolean,prominent:Boolean,scrollOffScreen:Boolean,scrollToolbarOffScreen:Boolean,scrollTarget:String,scrollThreshold:{type:Number,default:300},tabs:Boolean},data:function(){return{activeTimeout:null,currentScroll:0,heights:{mobileLandscape:48,mobile:56,desktop:64,dense:48},isActive:!0,isExtended:!1,isScrollingUp:!1,previousScroll:0,savedScroll:0,target:null}},computed:{canScroll:function(){return this.scrollToolbarOffScreen?(Object(c["deprecate"])("scrollToolbarOffScreen","scrollOffScreen",this),!0):this.scrollOffScreen||this.invertedScroll},computedContentHeight:function(){return this.height?parseInt(this.height):this.dense?this.heights.dense:this.prominent||this.$vuetify.breakpoint.mdAndUp?this.heights.desktop:this.$vuetify.breakpoint.smAndDown&&this.$vuetify.breakpoint.width>this.$vuetify.breakpoint.height?this.heights.mobileLandscape:this.heights.mobile},computedExtensionHeight:function(){return this.tabs?48:this.extensionHeight?parseInt(this.extensionHeight):this.computedContentHeight},computedHeight:function(){return this.isExtended?this.computedContentHeight+this.computedExtensionHeight:this.computedContentHeight},computedMarginTop:function(){return this.app?this.$vuetify.application.bar:0},classes:function(){return u({"v-toolbar":!0,"elevation-0":this.flat||!this.isActive&&!this.tabs&&this.canScroll,"v-toolbar--absolute":this.absolute,"v-toolbar--card":this.card,"v-toolbar--clipped":this.clippedLeft||this.clippedRight,"v-toolbar--dense":this.dense,"v-toolbar--extended":this.isExtended,"v-toolbar--fixed":!this.absolute&&(this.app||this.fixed),"v-toolbar--floating":this.floating,"v-toolbar--prominent":this.prominent},this.themeClasses)},computedPaddingLeft:function(){return!this.app||this.clippedLeft?0:this.$vuetify.application.left},computedPaddingRight:function(){return!this.app||this.clippedRight?0:this.$vuetify.application.right},computedTransform:function(){return this.isActive?0:this.canScroll?-this.computedContentHeight:-this.computedHeight},currentThreshold:function(){return Math.abs(this.currentScroll-this.savedScroll)},styles:function(){return{marginTop:this.computedMarginTop+"px",paddingRight:this.computedPaddingRight+"px",paddingLeft:this.computedPaddingLeft+"px",transform:"translateY("+this.computedTransform+"px)"}}},watch:{currentThreshold:function(t){this.invertedScroll?this.isActive=this.currentScroll>this.scrollThreshold:t<this.scrollThreshold||!this.isBooted||(this.isActive=this.isScrollingUp,this.savedScroll=this.currentScroll)},isActive:function(){this.savedScroll=0},invertedScroll:function(t){this.isActive=!t},manualScroll:function(t){this.isActive=!t},isScrollingUp:function(){this.savedScroll=this.savedScroll||this.currentScroll}},created:function(){(this.invertedScroll||this.manualScroll)&&(this.isActive=!1)},mounted:function(){this.scrollTarget&&(this.target=document.querySelector(this.scrollTarget))},methods:{onScroll:function(){this.canScroll&&!this.manualScroll&&"undefined"!==typeof window&&(this.currentScroll=this.target?this.target.scrollTop:window.pageYOffset,this.isScrollingUp=this.currentScroll<this.previousScroll,this.previousScroll=this.currentScroll)},updateApplication:function(){return this.invertedScroll||this.manualScroll?0:this.computedHeight}},render:function(t){this.isExtended=this.extended||!!this.$slots.extension;var e=[],n=this.setBackgroundColor(this.color,{class:this.classes,style:this.styles,on:this.$listeners});return n.directives=[{arg:this.scrollTarget,name:"scroll",value:this.onScroll}],e.push(t("div",{staticClass:"v-toolbar__content",style:{height:this.computedContentHeight+"px"},ref:"content"},this.$slots.default)),this.isExtended&&e.push(t("div",{staticClass:"v-toolbar__extension",style:{height:this.computedExtensionHeight+"px"}},this.$slots.extension)),t("nav",n,e)}})},"./src/components/VToolbar/VToolbarSideIcon.ts":
- /*!*****************************************************!*\
- !*** ./src/components/VToolbar/VToolbarSideIcon.ts ***!
- \*****************************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ../VBtn */"./src/components/VBtn/index.ts"),s=n(/*! ../VIcon */"./src/components/VIcon/index.ts"),r=n(/*! vue */"vue"),o=n.n(r);e["default"]=o.a.extend({name:"v-toolbar-side-icon",functional:!0,render:function(t,e){var n=e.slots,r=e.listeners,o=e.props,a=e.data,c=a.staticClass?a.staticClass+" v-toolbar__side-icon":"v-toolbar__side-icon",l=Object.assign(a,{staticClass:c,props:Object.assign(o,{icon:!0}),on:r}),u=n().default;return t(i["default"],l,u||[t(s["default"],"$vuetify.icons.menu")])}})},"./src/components/VToolbar/index.ts":
- /*!******************************************!*\
- !*** ./src/components/VToolbar/index.ts ***!
- \******************************************/
- /*! exports provided: VToolbar, VToolbarSideIcon, VToolbarTitle, VToolbarItems, default */function(t,e,n){"use strict";n.r(e),n.d(e,"VToolbarTitle",(function(){return o})),n.d(e,"VToolbarItems",(function(){return a}));var i=n(/*! ../../util/helpers */"./src/util/helpers.ts"),s=n(/*! ./VToolbar */"./src/components/VToolbar/VToolbar.ts");n.d(e,"VToolbar",(function(){return s["default"]}));var r=n(/*! ./VToolbarSideIcon */"./src/components/VToolbar/VToolbarSideIcon.ts");n.d(e,"VToolbarSideIcon",(function(){return r["default"]}));var o=Object(i["createSimpleFunctional"])("v-toolbar__title"),a=Object(i["createSimpleFunctional"])("v-toolbar__items");e["default"]={$_vuetify_subcomponents:{VToolbar:s["default"],VToolbarItems:a,VToolbarTitle:o,VToolbarSideIcon:r["default"]}}},"./src/components/VTooltip/VTooltip.js":
- /*!*********************************************!*\
- !*** ./src/components/VTooltip/VTooltip.js ***!
- \*********************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);n(/*! ../../stylus/components/_tooltips.styl */"./src/stylus/components/_tooltips.styl");var i=n(/*! ../../mixins/colorable */"./src/mixins/colorable.ts"),s=n(/*! ../../mixins/delayable */"./src/mixins/delayable.ts"),r=n(/*! ../../mixins/dependent */"./src/mixins/dependent.ts"),o=n(/*! ../../mixins/detachable */"./src/mixins/detachable.js"),a=n(/*! ../../mixins/menuable */"./src/mixins/menuable.js"),c=n(/*! ../../mixins/toggleable */"./src/mixins/toggleable.ts"),l=n(/*! ../../util/helpers */"./src/util/helpers.ts"),u=n(/*! ../../util/console */"./src/util/console.ts");e["default"]={name:"v-tooltip",mixins:[i["default"],s["default"],r["default"],o["default"],a["default"],c["default"]],props:{closeDelay:{type:[Number,String],default:200},debounce:{type:[Number,String],default:0},disabled:Boolean,fixed:{type:Boolean,default:!0},openDelay:{type:[Number,String],default:200},tag:{type:String,default:"span"},transition:String,zIndex:{default:null}},data:function(){return{calculatedMinWidth:0,closeDependents:!1}},computed:{calculatedLeft:function(){var t=this.dimensions,e=t.activator,n=t.content,i=!this.bottom&&!this.left&&!this.top&&!this.right,s=this.isAttached?e.offsetLeft:e.left,r=0;return this.top||this.bottom||i?r=s+e.width/2-n.width/2:(this.left||this.right)&&(r=s+(this.right?e.width:-n.width)+(this.right?10:-10)),this.nudgeLeft&&(r-=parseInt(this.nudgeLeft)),this.nudgeRight&&(r+=parseInt(this.nudgeRight)),this.calcXOverflow(r,this.dimensions.content.width)+"px"},calculatedTop:function(){var t=this.dimensions,e=t.activator,n=t.content,i=this.isAttached?e.offsetTop:e.top,s=0;return this.top||this.bottom?s=i+(this.bottom?e.height:-n.height)+(this.bottom?10:-10):(this.left||this.right)&&(s=i+e.height/2-n.height/2),this.nudgeTop&&(s-=parseInt(this.nudgeTop)),this.nudgeBottom&&(s+=parseInt(this.nudgeBottom)),this.calcYOverflow(s+this.pageYOffset)+"px"},classes:function(){return{"v-tooltip--top":this.top,"v-tooltip--right":this.right,"v-tooltip--bottom":this.bottom,"v-tooltip--left":this.left}},computedTransition:function(){return this.transition?this.transition:this.top?"slide-y-reverse-transition":this.right?"slide-x-transition":this.bottom?"slide-y-transition":this.left?"slide-x-reverse-transition":""},offsetY:function(){return this.top||this.bottom},offsetX:function(){return this.left||this.right},styles:function(){return{left:this.calculatedLeft,maxWidth:Object(l["convertToUnit"])(this.maxWidth),minWidth:Object(l["convertToUnit"])(this.minWidth),opacity:this.isActive?.9:0,top:this.calculatedTop,zIndex:this.zIndex||this.activeZIndex}}},beforeMount:function(){var t=this;this.$nextTick((function(){t.value&&t.callActivate()}))},mounted:function(){"v-slot"===Object(l["getSlotType"])(this,"activator",!0)&&Object(u["consoleError"])("v-tooltip's activator slot must be bound, try '<template #activator=\"data\"><v-btn v-on=\"data.on>'",this)},methods:{activate:function(){this.updateDimensions(),requestAnimationFrame(this.startTransition)},genActivator:function(){var t=this,e=this.disabled?{}:{mouseenter:function(e){t.getActivator(e),t.runDelay("open")},mouseleave:function(e){t.getActivator(e),t.runDelay("close")}};if("scoped"===Object(l["getSlotType"])(this,"activator")){var n=this.$scopedSlots.activator({on:e});return this.activatorNode=n,n}return this.$createElement("span",{on:e,ref:"activator"},this.$slots.activator)}},render:function(t){var e,n=t("div",this.setBackgroundColor(this.color,{staticClass:"v-tooltip__content",class:(e={},e[this.contentClass]=!0,e["menuable__content__active"]=this.isActive,e["v-tooltip__content--fixed"]=this.activatorFixed,e),style:this.styles,attrs:this.getScopeIdAttrs(),directives:[{name:"show",value:this.isContentActive}],ref:"content"}),this.showLazyContent(this.$slots.default));return t(this.tag,{staticClass:"v-tooltip",class:this.classes},[t("transition",{props:{name:this.computedTransition}},[n]),this.genActivator()])}}},"./src/components/VTooltip/index.js":
- /*!******************************************!*\
- !*** ./src/components/VTooltip/index.js ***!
- \******************************************/
- /*! exports provided: VTooltip, default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ./VTooltip */"./src/components/VTooltip/VTooltip.js");n.d(e,"VTooltip",(function(){return i["default"]})),e["default"]=i["default"]},"./src/components/VTreeview/VTreeview.ts":
- /*!***********************************************!*\
- !*** ./src/components/VTreeview/VTreeview.ts ***!
- \***********************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);n(/*! ../../stylus/components/_treeview.styl */"./src/stylus/components/_treeview.styl");var i=n(/*! ./VTreeviewNode */"./src/components/VTreeview/VTreeviewNode.ts"),s=n(/*! ../../mixins/themeable */"./src/mixins/themeable.ts"),r=n(/*! ../../mixins/registrable */"./src/mixins/registrable.ts"),o=n(/*! ../../util/helpers */"./src/util/helpers.ts"),a=n(/*! ../../util/mixins */"./src/util/mixins.ts"),c=n(/*! ../../util/console */"./src/util/console.ts"),l=n(/*! ./util/filterTreeItems */"./src/components/VTreeview/util/filterTreeItems.ts"),u=function(){return u=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var s in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t},u.apply(this,arguments)},h=function(t,e){var n="function"===typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,s,r=n.call(t),o=[];try{while((void 0===e||e-- >0)&&!(i=r.next()).done)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r["return"])&&n.call(r)}finally{if(s)throw s.error}}return o},d=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(h(arguments[e]));return t},f=function(t){var e="function"===typeof Symbol&&t[Symbol.iterator],n=0;return e?e.call(t):{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}};e["default"]=Object(a["default"])(Object(r["provide"])("treeview"),s["default"]).extend({name:"v-treeview",provide:function(){return{treeview:this}},props:u({active:{type:Array,default:function(){return[]}},items:{type:Array,default:function(){return[]}},hoverable:Boolean,multipleActive:Boolean,open:{type:Array,default:function(){return[]}},openAll:Boolean,returnObject:{type:Boolean,default:!1},value:{type:Array,default:function(){return[]}},search:String,filter:Function},i["VTreeviewNodeProps"]),data:function(){return{nodes:{},selectedCache:new Set,activeCache:new Set,openCache:new Set}},computed:{excludedItems:function(){var t=new Set;if(!this.search)return t;for(var e=0;e<this.items.length;e++)Object(l["filterTreeItems"])(this.filter||l["filterTreeItem"],this.items[e],this.search,this.itemKey,this.itemText,this.itemChildren,t);return t}},watch:{items:{handler:function(){var t=this,e=Object.keys(this.nodes).map((function(e){return Object(o["getObjectValueByPath"])(t.nodes[e].item,t.itemKey)})),n=this.getKeys(this.items),i=Object(o["arrayDiff"])(n,e);if(i.length||!(n.length<e.length)){i.forEach((function(e){return delete t.nodes[e]}));var s=d(this.selectedCache);this.selectedCache=new Set,this.activeCache=new Set,this.openCache=new Set,this.buildTree(this.items),Object(o["deepEqual"])(s,d(this.selectedCache))||this.emitSelected()}},deep:!0},active:function(t){this.handleNodeCacheWatcher(t,this.activeCache,this.updateActive,this.emitActive)},value:function(t){this.handleNodeCacheWatcher(t,this.selectedCache,this.updateSelected,this.emitSelected)},open:function(t){this.handleNodeCacheWatcher(t,this.openCache,this.updateOpen,this.emitOpen)}},created:function(){var t=this;this.buildTree(this.items),this.value.forEach((function(e){return t.updateSelected(e,!0)})),this.emitSelected(),this.active.forEach((function(e){return t.updateActive(e,!0)})),this.emitActive()},mounted:function(){var t=this;(this.$slots.prepend||this.$slots.append)&&Object(c["consoleWarn"])("The prepend and append slots require a slot-scope attribute",this),this.openAll?this.updateAll(!0):(this.open.forEach((function(e){return t.updateOpen(e,!0)})),this.emitOpen())},methods:{updateAll:function(t){var e=this;Object.keys(this.nodes).forEach((function(n){return e.updateOpen(Object(o["getObjectValueByPath"])(e.nodes[n].item,e.itemKey),t)})),this.emitOpen()},getKeys:function(t,e){void 0===e&&(e=[]);for(var n=0;n<t.length;n++){var i=Object(o["getObjectValueByPath"])(t[n],this.itemKey);e.push(i);var s=Object(o["getObjectValueByPath"])(t[n],this.itemChildren);s&&e.push.apply(e,d(this.getKeys(s)))}return e},buildTree:function(t,e){var n=this;void 0===e&&(e=null);for(var i=0;i<t.length;i++){var s=t[i],r=Object(o["getObjectValueByPath"])(s,this.itemKey),a=Object(o["getObjectValueByPath"])(s,this.itemChildren,[]),c=this.nodes.hasOwnProperty(r)?this.nodes[r]:{isSelected:!1,isIndeterminate:!1,isActive:!1,isOpen:!1,vnode:null},l={vnode:c.vnode,parent:e,children:a.map((function(t){return Object(o["getObjectValueByPath"])(t,n.itemKey)})),item:s};this.buildTree(a,r),!this.nodes.hasOwnProperty(r)&&null!==e&&this.nodes.hasOwnProperty(e)?(l.isSelected=this.nodes[e].isSelected,l.isIndeterminate=this.nodes[e].isIndeterminate):(l.isSelected=c.isSelected,l.isIndeterminate=c.isIndeterminate),l.isActive=c.isActive,l.isOpen=c.isOpen,this.nodes[r]=a.length?this.calculateState(l,this.nodes):l,this.nodes[r].isSelected&&this.selectedCache.add(r),this.nodes[r].isActive&&this.activeCache.add(r),this.nodes[r].isOpen&&this.openCache.add(r),this.updateVnodeState(r)}},calculateState:function(t,e){var n=t.children.reduce((function(t,n){return t[0]+=+Boolean(e[n].isSelected),t[1]+=+Boolean(e[n].isIndeterminate),t}),[0,0]);return t.isSelected=!!t.children.length&&n[0]===t.children.length,t.isIndeterminate=!t.isSelected&&(n[0]>0||n[1]>0),t},emitOpen:function(){this.emitNodeCache("update:open",this.openCache)},emitSelected:function(){this.emitNodeCache("input",this.selectedCache)},emitActive:function(){this.emitNodeCache("update:active",this.activeCache)},emitNodeCache:function(t,e){var n=this;this.$emit(t,this.returnObject?d(e).map((function(t){return n.nodes[t].item})):d(e))},handleNodeCacheWatcher:function(t,e,n,i){var s=this;t=this.returnObject?t.map((function(t){return Object(o["getObjectValueByPath"])(t,s.itemKey)})):t;var r=d(e);Object(o["deepEqual"])(r,t)||(r.forEach((function(t){return n(t,!1)})),t.forEach((function(t){return n(t,!0)})),i())},getDescendants:function(t,e){void 0===e&&(e=[]);var n=this.nodes[t].children;e.push.apply(e,d(n));for(var i=0;i<n.length;i++)e=this.getDescendants(n[i],e);return e},getParents:function(t){var e=this.nodes[t].parent,n=[];while(null!==e)n.push(e),e=this.nodes[e].parent;return n},register:function(t){var e=Object(o["getObjectValueByPath"])(t.item,this.itemKey);this.nodes[e].vnode=t,this.updateVnodeState(e)},unregister:function(t){var e=Object(o["getObjectValueByPath"])(t.item,this.itemKey);this.nodes[e]&&(this.nodes[e].vnode=null)},updateActive:function(t,e){var n=this;if(this.nodes.hasOwnProperty(t)){this.multipleActive||this.activeCache.forEach((function(t){n.nodes[t].isActive=!1,n.updateVnodeState(t),n.activeCache.delete(t)}));var i=this.nodes[t];i&&(e?this.activeCache.add(t):this.activeCache.delete(t),i.isActive=e,this.updateVnodeState(t))}},updateSelected:function(t,e){var n,i,s=this;if(this.nodes.hasOwnProperty(t)){var r=new Map,o=d([t],this.getDescendants(t));o.forEach((function(t){s.nodes[t].isSelected=e,s.nodes[t].isIndeterminate=!1,r.set(t,e)}));var a=this.getParents(t);a.forEach((function(t){s.nodes[t]=s.calculateState(s.nodes[t],s.nodes),r.set(t,s.nodes[t].isSelected)}));var c=d([t],o,a);c.forEach(this.updateVnodeState);try{for(var l=f(r.entries()),u=l.next();!u.done;u=l.next()){var p=h(u.value,2),m=p[0],g=p[1];!0===g?this.selectedCache.add(m):this.selectedCache.delete(m)}}catch(b){n={error:b}}finally{try{u&&!u.done&&(i=l.return)&&i.call(l)}finally{if(n)throw n.error}}}},updateOpen:function(t,e){var n=this;if(this.nodes.hasOwnProperty(t)){var i=this.nodes[t],s=Object(o["getObjectValueByPath"])(i.item,this.itemChildren);s&&!s.length&&i.vnode&&!i.vnode.hasLoaded?i.vnode.checkChildren().then((function(){return n.updateOpen(t,e)})):s&&s.length&&(i.isOpen=e,i.isOpen?this.openCache.add(t):this.openCache.delete(t),this.updateVnodeState(t))}},updateVnodeState:function(t){var e=this.nodes[t];e&&e.vnode&&(e.vnode.isSelected=e.isSelected,e.vnode.isIndeterminate=e.isIndeterminate,e.vnode.isActive=e.isActive,e.vnode.isOpen=e.isOpen)},isExcluded:function(t){return!!this.search&&this.excludedItems.has(t)}},render:function(t){var e=this.items.length?this.items.map(i["default"].options.methods.genChild.bind(this)):this.$slots.default;return t("div",{staticClass:"v-treeview",class:u({"v-treeview--hoverable":this.hoverable},this.themeClasses)},e)}})},"./src/components/VTreeview/VTreeviewNode.ts":
- /*!***************************************************!*\
- !*** ./src/components/VTreeview/VTreeviewNode.ts ***!
- \***************************************************/
- /*! exports provided: VTreeviewNodeProps, default */function(t,e,n){"use strict";n.r(e),n.d(e,"VTreeviewNodeProps",(function(){return u}));var i=n(/*! ../transitions */"./src/components/transitions/index.js"),s=n(/*! ../VIcon */"./src/components/VIcon/index.ts"),r=n(/*! ./VTreeviewNode */"./src/components/VTreeview/VTreeviewNode.ts"),o=n(/*! ../../mixins/registrable */"./src/mixins/registrable.ts"),a=n(/*! ../../util/mixins */"./src/util/mixins.ts"),c=n(/*! ../../util/helpers */"./src/util/helpers.ts"),l=function(){return l=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var s in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t},l.apply(this,arguments)},u={activatable:Boolean,activeClass:{type:String,default:"v-treeview-node--active"},selectable:Boolean,selectedColor:{type:String,default:"accent"},indeterminateIcon:{type:String,default:"$vuetify.icons.checkboxIndeterminate"},onIcon:{type:String,default:"$vuetify.icons.checkboxOn"},offIcon:{type:String,default:"$vuetify.icons.checkboxOff"},expandIcon:{type:String,default:"$vuetify.icons.subgroup"},loadingIcon:{type:String,default:"$vuetify.icons.loading"},itemKey:{type:String,default:"id"},itemText:{type:String,default:"name"},itemChildren:{type:String,default:"children"},loadChildren:Function,openOnClick:Boolean,transition:Boolean};e["default"]=Object(a["default"])(Object(o["inject"])("treeview")).extend({name:"v-treeview-node",inject:{treeview:{default:null}},props:l({item:{type:Object,default:function(){return null}}},u),data:function(){return{isOpen:!1,isSelected:!1,isIndeterminate:!1,isActive:!1,isLoading:!1,hasLoaded:!1}},computed:{key:function(){return Object(c["getObjectValueByPath"])(this.item,this.itemKey)},children:function(){return Object(c["getObjectValueByPath"])(this.item,this.itemChildren)},text:function(){return Object(c["getObjectValueByPath"])(this.item,this.itemText)},scopedProps:function(){return{item:this.item,leaf:!this.children,selected:this.isSelected,indeterminate:this.isIndeterminate,active:this.isActive,open:this.isOpen}},computedIcon:function(){return this.isIndeterminate?this.indeterminateIcon:this.isSelected?this.onIcon:this.offIcon},hasChildren:function(){return!!this.children&&(!!this.children.length||!!this.loadChildren)}},created:function(){this.treeview.register(this)},beforeDestroy:function(){this.treeview.unregister(this)},methods:{checkChildren:function(){var t=this;return new Promise((function(e){if(!t.children||t.children.length||!t.loadChildren||t.hasLoaded)return e();t.isLoading=!0,e(t.loadChildren(t.item))})).then((function(){t.isLoading=!1,t.hasLoaded=!0}))},open:function(){this.isOpen=!this.isOpen,this.treeview.updateOpen(this.key,this.isOpen),this.treeview.emitOpen()},genLabel:function(){var t=[];return this.$scopedSlots.label?t.push(this.$scopedSlots.label(this.scopedProps)):t.push(this.text),this.$createElement("div",{slot:"label",staticClass:"v-treeview-node__label"},t)},genContent:function(){var t=[this.$scopedSlots.prepend&&this.$scopedSlots.prepend(this.scopedProps),this.genLabel(),this.$scopedSlots.append&&this.$scopedSlots.append(this.scopedProps)];return this.$createElement("div",{staticClass:"v-treeview-node__content"},t)},genToggle:function(){var t=this;return this.$createElement(s["VIcon"],{staticClass:"v-treeview-node__toggle",class:{"v-treeview-node__toggle--open":this.isOpen,"v-treeview-node__toggle--loading":this.isLoading},slot:"prepend",on:{click:function(e){e.stopPropagation(),t.isLoading||t.checkChildren().then((function(){return t.open()}))}}},[this.isLoading?this.loadingIcon:this.expandIcon])},genCheckbox:function(){var t=this;return this.$createElement(s["VIcon"],{staticClass:"v-treeview-node__checkbox",props:{color:this.isSelected?this.selectedColor:void 0},on:{click:function(e){e.stopPropagation(),t.isLoading||t.checkChildren().then((function(){t.$nextTick((function(){t.isSelected=!t.isSelected,t.isIndeterminate=!1,t.treeview.updateSelected(t.key,t.isSelected),t.treeview.emitSelected()}))}))}}},[this.computedIcon])},genNode:function(){var t,e=this,n=[this.genContent()];return this.selectable&&n.unshift(this.genCheckbox()),this.hasChildren&&n.unshift(this.genToggle()),this.$createElement("div",{staticClass:"v-treeview-node__root",class:(t={},t[this.activeClass]=this.isActive,t),on:{click:function(){e.openOnClick&&e.children?e.open():e.activatable&&(e.isActive=!e.isActive,e.treeview.updateActive(e.key,e.isActive),e.treeview.emitActive())}}},n)},genChild:function(t){return this.$createElement(r["default"],{key:Object(c["getObjectValueByPath"])(t,this.itemKey),props:{activatable:this.activatable,activeClass:this.activeClass,item:t,selectable:this.selectable,selectedColor:this.selectedColor,expandIcon:this.expandIcon,indeterminateIcon:this.indeterminateIcon,offIcon:this.offIcon,onIcon:this.onIcon,loadingIcon:this.loadingIcon,itemKey:this.itemKey,itemText:this.itemText,itemChildren:this.itemChildren,loadChildren:this.loadChildren,transition:this.transition,openOnClick:this.openOnClick},scopedSlots:this.$scopedSlots})},genChildrenWrapper:function(){if(!this.isOpen||!this.children)return null;var t=[this.children.map(this.genChild)];return this.$createElement("div",{staticClass:"v-treeview-node__children"},t)},genTransition:function(){return this.$createElement(i["VExpandTransition"],[this.genChildrenWrapper()])}},render:function(t){var e=[this.genNode()];return this.transition?e.push(this.genTransition()):e.push(this.genChildrenWrapper()),t("div",{staticClass:"v-treeview-node",class:{"v-treeview-node--leaf":!this.hasChildren,"v-treeview-node--click":this.openOnClick,"v-treeview-node--selected":this.isSelected,"v-treeview-node--excluded":this.treeview.isExcluded(this.key)}},e)}})},"./src/components/VTreeview/index.ts":
- /*!*******************************************!*\
- !*** ./src/components/VTreeview/index.ts ***!
- \*******************************************/
- /*! exports provided: VTreeview, VTreeviewNode, default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ./VTreeview */"./src/components/VTreeview/VTreeview.ts");n.d(e,"VTreeview",(function(){return i["default"]}));var s=n(/*! ./VTreeviewNode */"./src/components/VTreeview/VTreeviewNode.ts");n.d(e,"VTreeviewNode",(function(){return s["default"]})),e["default"]={$_vuetify_subcomponents:{VTreeview:i["default"],VTreeviewNode:s["default"]}}},"./src/components/VTreeview/util/filterTreeItems.ts":
- /*!**********************************************************!*\
- !*** ./src/components/VTreeview/util/filterTreeItems.ts ***!
- \**********************************************************/
- /*! exports provided: filterTreeItem, filterTreeItems */function(t,e,n){"use strict";n.r(e),n.d(e,"filterTreeItem",(function(){return s})),n.d(e,"filterTreeItems",(function(){return r}));var i=n(/*! ../../../util/helpers */"./src/util/helpers.ts");function s(t,e,n){var s=Object(i["getObjectValueByPath"])(t,n);return s.toLocaleLowerCase().indexOf(e.toLocaleLowerCase())>-1}function r(t,e,n,s,o,a,c){if(t(e,n,o))return!0;var l=Object(i["getObjectValueByPath"])(e,a);if(l){for(var u=!1,h=0;h<l.length;h++)r(t,l[h],n,s,o,a,c)&&(u=!0);if(u)return!0}return c.add(Object(i["getObjectValueByPath"])(e,s)),!1}},"./src/components/VWindow/VWindow.ts":
- /*!*******************************************!*\
- !*** ./src/components/VWindow/VWindow.ts ***!
- \*******************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);n(/*! ../../stylus/components/_windows.styl */"./src/stylus/components/_windows.styl");var i=n(/*! ../VItemGroup/VItemGroup */"./src/components/VItemGroup/VItemGroup.ts"),s=n(/*! ../../directives/touch */"./src/directives/touch.ts");e["default"]=i["BaseItemGroup"].extend({name:"v-window",provide:function(){return{windowGroup:this}},directives:{Touch:s["default"]},props:{mandatory:{type:Boolean,default:!0},reverse:{type:Boolean,default:void 0},touch:Object,touchless:Boolean,value:{required:!1},vertical:Boolean},data:function(){return{internalHeight:void 0,isActive:!1,isBooted:!1,isReverse:!1}},computed:{computedTransition:function(){if(!this.isBooted)return"";var t=this.vertical?"y":"x",e=this.internalReverse===!this.$vuetify.rtl?"-reverse":"";return"v-window-"+t+e+"-transition"},internalIndex:function(){var t=this;return this.items.findIndex((function(e,n){return t.internalValue===t.getValue(e,n)}))},internalReverse:function(){return void 0!==this.reverse?this.reverse:this.isReverse}},watch:{internalIndex:"updateReverse"},mounted:function(){var t=this;this.$nextTick((function(){return t.isBooted=!0}))},methods:{genContainer:function(){return this.$createElement("div",{staticClass:"v-window__container",class:{"v-window__container--is-active":this.isActive},style:{height:this.internalHeight}},this.$slots.default)},next:function(){this.isReverse=!1;var t=(this.internalIndex+1)%this.items.length,e=this.items[t];this.internalValue=this.getValue(e,t)},prev:function(){this.isReverse=!0;var t=(this.internalIndex+this.items.length-1)%this.items.length,e=this.items[t];this.internalValue=this.getValue(e,t)},updateReverse:function(t,e){this.isReverse=t<e}},render:function(t){var e={staticClass:"v-window",directives:[]};if(!this.touchless){var n=this.touch||{left:this.next,right:this.prev};e.directives.push({name:"touch",value:n})}return t("div",e,[this.genContainer()])}})},"./src/components/VWindow/VWindowItem.ts":
- /*!***********************************************!*\
- !*** ./src/components/VWindow/VWindowItem.ts ***!
- \***********************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ../../mixins/bootable */"./src/mixins/bootable.ts"),s=n(/*! ../../mixins/groupable */"./src/mixins/groupable.ts"),r=n(/*! ../../directives/touch */"./src/directives/touch.ts"),o=n(/*! ../../util/helpers */"./src/util/helpers.ts"),a=n(/*! ../../util/mixins */"./src/util/mixins.ts");e["default"]=Object(a["default"])(i["default"],Object(s["factory"])("windowGroup","v-window-item","v-window")).extend({name:"v-window-item",directives:{Touch:r["default"]},props:{reverseTransition:{type:[Boolean,String],default:void 0},transition:{type:[Boolean,String],default:void 0},value:{required:!1}},data:function(){return{done:null,isActive:!1,wasCancelled:!1}},computed:{computedTransition:function(){return this.windowGroup.internalReverse?"undefined"!==typeof this.reverseTransition?this.reverseTransition||"":this.windowGroup.computedTransition:"undefined"!==typeof this.transition?this.transition||"":this.windowGroup.computedTransition}},mounted:function(){this.$el.addEventListener("transitionend",this.onTransitionEnd,!1)},beforeDestroy:function(){this.$el.removeEventListener("transitionend",this.onTransitionEnd,!1)},methods:{genDefaultSlot:function(){return this.$slots.default},onAfterEnter:function(){var t=this;this.wasCancelled?this.wasCancelled=!1:requestAnimationFrame((function(){t.windowGroup.internalHeight=void 0,t.windowGroup.isActive=!1}))},onBeforeEnter:function(){this.windowGroup.isActive=!0},onLeave:function(t){this.windowGroup.internalHeight=Object(o["convertToUnit"])(t.clientHeight)},onEnterCancelled:function(){this.wasCancelled=!0},onEnter:function(t,e){var n=this,i=this.windowGroup.isBooted;i&&(this.done=e),requestAnimationFrame((function(){if(!n.computedTransition)return e();n.windowGroup.internalHeight=Object(o["convertToUnit"])(t.clientHeight),!i&&setTimeout(e,100)}))},onTransitionEnd:function(t){"transform"===t.propertyName&&t.target===this.$el&&this.done&&(this.done(),this.done=null)}},render:function(t){var e=t("div",{staticClass:"v-window-item",directives:[{name:"show",value:this.isActive}],on:this.$listeners},this.showLazyContent(this.genDefaultSlot()));return t("transition",{props:{name:this.computedTransition},on:{afterEnter:this.onAfterEnter,beforeEnter:this.onBeforeEnter,leave:this.onLeave,enter:this.onEnter,enterCancelled:this.onEnterCancelled}},[e])}})},"./src/components/VWindow/index.ts":
- /*!*****************************************!*\
- !*** ./src/components/VWindow/index.ts ***!
- \*****************************************/
- /*! exports provided: VWindow, VWindowItem, default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ./VWindow */"./src/components/VWindow/VWindow.ts");n.d(e,"VWindow",(function(){return i["default"]}));var s=n(/*! ./VWindowItem */"./src/components/VWindow/VWindowItem.ts");n.d(e,"VWindowItem",(function(){return s["default"]})),e["default"]={$_vuetify_subcomponents:{VWindow:i["default"],VWindowItem:s["default"]}}},"./src/components/Vuetify/goTo/easing-patterns.ts":
- /*!********************************************************!*\
- !*** ./src/components/Vuetify/goTo/easing-patterns.ts ***!
- \********************************************************/
- /*! exports provided: linear, easeInQuad, easeOutQuad, easeInOutQuad, easeInCubic, easeOutCubic, easeInOutCubic, easeInQuart, easeOutQuart, easeInOutQuart, easeInQuint, easeOutQuint, easeInOutQuint */function(t,e,n){"use strict";n.r(e),n.d(e,"linear",(function(){return i})),n.d(e,"easeInQuad",(function(){return s})),n.d(e,"easeOutQuad",(function(){return r})),n.d(e,"easeInOutQuad",(function(){return o})),n.d(e,"easeInCubic",(function(){return a})),n.d(e,"easeOutCubic",(function(){return c})),n.d(e,"easeInOutCubic",(function(){return l})),n.d(e,"easeInQuart",(function(){return u})),n.d(e,"easeOutQuart",(function(){return h})),n.d(e,"easeInOutQuart",(function(){return d})),n.d(e,"easeInQuint",(function(){return f})),n.d(e,"easeOutQuint",(function(){return p})),n.d(e,"easeInOutQuint",(function(){return m}));var i=function(t){return t},s=function(t){return t*t},r=function(t){return t*(2-t)},o=function(t){return t<.5?2*t*t:(4-2*t)*t-1},a=function(t){return t*t*t},c=function(t){return--t*t*t+1},l=function(t){return t<.5?4*t*t*t:(t-1)*(2*t-2)*(2*t-2)+1},u=function(t){return t*t*t*t},h=function(t){return 1- --t*t*t*t},d=function(t){return t<.5?8*t*t*t*t:1-8*--t*t*t*t},f=function(t){return t*t*t*t*t},p=function(t){return 1+--t*t*t*t*t},m=function(t){return t<.5?16*t*t*t*t*t:1+16*--t*t*t*t*t}},"./src/components/Vuetify/goTo/index.ts":
- /*!**********************************************!*\
- !*** ./src/components/Vuetify/goTo/index.ts ***!
- \**********************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return c}));var i=n(/*! ./easing-patterns */"./src/components/Vuetify/goTo/easing-patterns.ts"),s=n(/*! ./util */"./src/components/Vuetify/goTo/util.ts"),r=n(/*! vue */"vue"),o=n.n(r),a=function(){return a=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var s in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t},a.apply(this,arguments)};function c(t,e){void 0===e&&(e={});var n=a({container:document.scrollingElement||document.body||document.documentElement,duration:500,offset:0,easing:"easeInOutCubic",appOffset:!0},e),r=Object(s["getContainer"])(n.container);if(n.appOffset){var c=r.classList.contains("v-navigation-drawer"),l=r.classList.contains("v-navigation-drawer--clipped");n.offset+=o.a.prototype.$vuetify.application.bar,c&&!l||(n.offset+=o.a.prototype.$vuetify.application.top)}var u=performance.now(),h=Object(s["getOffset"])(t)-n.offset,d=r.scrollTop;if(h===d)return Promise.resolve(h);var f="function"===typeof n.easing?n.easing:i[n.easing];if(!f)throw new TypeError('Easing function "'+n.easing+'" not found.');return new Promise((function(t){return requestAnimationFrame((function e(i){var s=i-u,o=Math.abs(n.duration?Math.min(s/n.duration,1):1);r.scrollTop=Math.floor(d+(h-d)*f(o));var a=r===document.body?document.documentElement.clientHeight:r.clientHeight;if(1===o||a+r.scrollTop===r.scrollHeight)return t(h);requestAnimationFrame(e)}))}))}},"./src/components/Vuetify/goTo/util.ts":
- /*!*********************************************!*\
- !*** ./src/components/Vuetify/goTo/util.ts ***!
- \*********************************************/
- /*! exports provided: getOffset, getContainer */function(t,e,n){"use strict";function i(t){if("number"===typeof t)return t;var e=o(t);if(!e)throw"string"===typeof t?new Error('Target element "'+t+'" not found.'):new TypeError("Target must be a Number/Selector/HTMLElement/VueComponent, received "+r(t)+" instead.");var n=0;while(e)n+=e.offsetTop,e=e.offsetParent;return n}function s(t){var e=o(t);if(e)return e;throw"string"===typeof t?new Error('Container element "'+t+'" not found.'):new TypeError("Container must be a Selector/HTMLElement/VueComponent, received "+r(t)+" instead.")}function r(t){return null==t?t:t.constructor.name}function o(t){return"string"===typeof t?document.querySelector(t):t&&t._isVue?t.$el:t instanceof HTMLElement?t:null}n.r(e),n.d(e,"getOffset",(function(){return i})),n.d(e,"getContainer",(function(){return s}))},"./src/components/Vuetify/index.ts":
- /*!*****************************************!*\
- !*** ./src/components/Vuetify/index.ts ***!
- \*****************************************/
- /*! exports provided: checkVueVersion, default */function(t,e,n){"use strict";n.r(e),n.d(e,"checkVueVersion",(function(){return p}));var i=n(/*! vue */"vue"),s=n.n(i),r=n(/*! ./mixins/application */"./src/components/Vuetify/mixins/application.ts"),o=n(/*! ./mixins/breakpoint */"./src/components/Vuetify/mixins/breakpoint.ts"),a=n(/*! ./mixins/theme */"./src/components/Vuetify/mixins/theme.ts"),c=n(/*! ./mixins/icons */"./src/components/Vuetify/mixins/icons.ts"),l=n(/*! ./mixins/options */"./src/components/Vuetify/mixins/options.ts"),u=n(/*! ./mixins/lang */"./src/components/Vuetify/mixins/lang.ts"),h=n(/*! ./goTo */"./src/components/Vuetify/goTo/index.ts"),d=n(/*! ../../util/console */"./src/util/console.ts"),f={install:function(t,e){if(void 0===e&&(e={}),!this.installed){this.installed=!0,s.a!==t&&Object(d["consoleError"])("Multiple instances of Vue detected\nSee https://github.com/vuetifyjs/vuetify/issues/4068\n\nIf you're seeing \"$attrs is readonly\", it's caused by this"),p(t);var n=Object(u["default"])(e.lang);if(t.prototype.$vuetify=new t({mixins:[Object(o["default"])(e.breakpoint)],data:{application:r["default"],dark:!1,icons:Object(c["default"])(e.iconfont,e.icons),lang:n,options:Object(l["default"])(e.options),rtl:e.rtl,theme:Object(a["default"])(e.theme)},methods:{goTo:h["default"],t:n.t.bind(n)}}),e.directives)for(var i in e.directives)t.directive(i,e.directives[i]);(function e(n){if(n){for(var i in n){var s=n[i];s&&!e(s.$_vuetify_subcomponents)&&t.component(i,s)}return!0}return!1})(e.components)}},version:"1.5.24"};function p(t,e){var n=e||"^2.5.18",i=n.split(".",3).map((function(t){return t.replace(/\D/g,"")})).map(Number),s=t.version.split(".",3).map((function(t){return parseInt(t,10)})),r=s[0]===i[0]&&(s[1]>i[1]||s[1]===i[1]&&s[2]>=i[2]);r||Object(d["consoleWarn"])("Vuetify requires Vue version "+n)}e["default"]=f},"./src/components/Vuetify/mixins/application.ts":
- /*!******************************************************!*\
- !*** ./src/components/Vuetify/mixins/application.ts ***!
- \******************************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e),e["default"]={bar:0,bottom:0,footer:0,insetFooter:0,left:0,right:0,top:0,components:{bar:{},bottom:{},footer:{},insetFooter:{},left:{},right:{},top:{}},bind:function(t,e,n){var i;this.components[e]&&(this.components[e]=(i={},i[t]=n,i),this.update(e))},unbind:function(t,e){null!=this.components[e][t]&&(delete this.components[e][t],this.update(e))},update:function(t){this[t]=Object.values(this.components[t]).reduce((function(t,e){return t+e}),0)}}},"./src/components/Vuetify/mixins/breakpoint.ts":
- /*!*****************************************************!*\
- !*** ./src/components/Vuetify/mixins/breakpoint.ts ***!
- \*****************************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return a}));var i=n(/*! vue */"vue"),s=n.n(i),r=function(){return r=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var s in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t},r.apply(this,arguments)},o={thresholds:{xs:600,sm:960,md:1280,lg:1920},scrollbarWidth:16};function a(t){return void 0===t&&(t={}),t||(t={}),s.a.extend({data:function(){return r({clientHeight:l(),clientWidth:c(),resizeTimeout:void 0},o,t)},computed:{breakpoint:function(){var t,e=this.clientWidth<this.thresholds.xs,n=this.clientWidth<this.thresholds.sm&&!e,i=this.clientWidth<this.thresholds.md-this.scrollbarWidth&&!(n||e),s=this.clientWidth<this.thresholds.lg-this.scrollbarWidth&&!(i||n||e),r=this.clientWidth>=this.thresholds.lg-this.scrollbarWidth,o=e,a=n,c=(e||n)&&!(i||s||r),l=!e&&(n||i||s||r),u=i,h=(e||n||i)&&!(s||r),d=!(e||n)&&(i||s||r),f=s,p=(e||n||i||s)&&!r,m=!(e||n||i)&&(s||r),g=r;switch(!0){case e:t="xs";break;case n:t="sm";break;case i:t="md";break;case s:t="lg";break;default:t="xl";break}return{xs:e,sm:n,md:i,lg:s,xl:r,name:t,xsOnly:o,smOnly:a,smAndDown:c,smAndUp:l,mdOnly:u,mdAndDown:h,mdAndUp:d,lgOnly:f,lgAndDown:p,lgAndUp:m,xlOnly:g,width:this.clientWidth,height:this.clientHeight,thresholds:this.thresholds,scrollbarWidth:this.scrollbarWidth}}},created:function(){"undefined"!==typeof window&&window.addEventListener("resize",this.onResize,{passive:!0})},beforeDestroy:function(){"undefined"!==typeof window&&window.removeEventListener("resize",this.onResize)},methods:{onResize:function(){clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout(this.setDimensions,200)},setDimensions:function(){this.clientHeight=l(),this.clientWidth=c()}}})}function c(){return"undefined"===typeof document?0:Math.max(document.documentElement.clientWidth,window.innerWidth||0)}function l(){return"undefined"===typeof document?0:Math.max(document.documentElement.clientHeight,window.innerHeight||0)}},"./src/components/Vuetify/mixins/icons.ts":
- /*!************************************************!*\
- !*** ./src/components/Vuetify/mixins/icons.ts ***!
- \************************************************/
- /*! exports provided: convertToComponentDeclarations, default */function(t,e,n){"use strict";n.r(e),n.d(e,"convertToComponentDeclarations",(function(){return a})),n.d(e,"default",(function(){return l}));var i={complete:"check",cancel:"cancel",close:"close",delete:"cancel",clear:"clear",success:"check_circle",info:"info",warning:"priority_high",error:"warning",prev:"chevron_left",next:"chevron_right",checkboxOn:"check_box",checkboxOff:"check_box_outline_blank",checkboxIndeterminate:"indeterminate_check_box",delimiter:"fiber_manual_record",sort:"arrow_upward",expand:"keyboard_arrow_down",menu:"menu",subgroup:"arrow_drop_down",dropdown:"arrow_drop_down",radioOn:"radio_button_checked",radioOff:"radio_button_unchecked",edit:"edit",ratingEmpty:"star_border",ratingFull:"star",ratingHalf:"star_half",loading:"cached"},s={complete:"mdi-check",cancel:"mdi-close-circle",close:"mdi-close",delete:"mdi-close-circle",clear:"mdi-close",success:"mdi-check-circle",info:"mdi-information",warning:"mdi-exclamation",error:"mdi-alert",prev:"mdi-chevron-left",next:"mdi-chevron-right",checkboxOn:"mdi-checkbox-marked",checkboxOff:"mdi-checkbox-blank-outline",checkboxIndeterminate:"mdi-minus-box",delimiter:"mdi-circle",sort:"mdi-arrow-up",expand:"mdi-chevron-down",menu:"mdi-menu",subgroup:"mdi-menu-down",dropdown:"mdi-menu-down",radioOn:"mdi-radiobox-marked",radioOff:"mdi-radiobox-blank",edit:"mdi-pencil",ratingEmpty:"mdi-star-outline",ratingFull:"mdi-star",ratingHalf:"mdi-star-half"},r={complete:"fa fa-check",cancel:"fa fa-times-circle",close:"fa fa-times",delete:"fa fa-times-circle",clear:"fa fa-times-circle",success:"fa fa-check-circle",info:"fa fa-info-circle",warning:"fa fa-exclamation",error:"fa fa-exclamation-triangle",prev:"fa fa-chevron-left",next:"fa fa-chevron-right",checkboxOn:"fa fa-check-square",checkboxOff:"fa fa-square-o",checkboxIndeterminate:"fa fa-minus-square",delimiter:"fa fa-circle",sort:"fa fa-sort-up",expand:"fa fa-chevron-down",menu:"fa fa-bars",subgroup:"fa fa-caret-down",dropdown:"fa fa-caret-down",radioOn:"fa fa-dot-circle",radioOff:"fa fa-circle-o",edit:"fa fa-pencil",ratingEmpty:"fa fa-star-o",ratingFull:"fa fa-star",ratingHalf:"fa fa-star-half-o"},o={complete:"fas fa-check",cancel:"fas fa-times-circle",close:"fas fa-times",delete:"fas fa-times-circle",clear:"fas fa-times-circle",success:"fas fa-check-circle",info:"fas fa-info-circle",warning:"fas fa-exclamation",error:"fas fa-exclamation-triangle",prev:"fas fa-chevron-left",next:"fas fa-chevron-right",checkboxOn:"fas fa-check-square",checkboxOff:"far fa-square",checkboxIndeterminate:"fas fa-minus-square",delimiter:"fas fa-circle",sort:"fas fa-sort-up",expand:"fas fa-chevron-down",menu:"fas fa-bars",subgroup:"fas fa-caret-down",dropdown:"fas fa-caret-down",radioOn:"far fa-dot-circle",radioOff:"far fa-circle",edit:"fas fa-edit",ratingEmpty:"far fa-star",ratingFull:"fas fa-star",ratingHalf:"fas fa-star-half"};function a(t,e){var n={};for(var i in e)n[i]={component:t,props:{icon:e[i].split(" fa-")}};return n}var c={md:i,mdi:s,fa:o,fa4:r,faSvg:a("font-awesome-icon",o)};function l(t,e){return void 0===t&&(t="md"),void 0===e&&(e={}),Object.assign({},c[t]||c.md,e)}},"./src/components/Vuetify/mixins/lang.ts":
- /*!***********************************************!*\
- !*** ./src/components/Vuetify/mixins/lang.ts ***!
- \***********************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return h}));var i=n(/*! ../../../locale/en */"./src/locale/en.ts"),s=n(/*! ../../../util/helpers */"./src/util/helpers.ts"),r=n(/*! ../../../util/console */"./src/util/console.ts"),o=function(t,e){var n="function"===typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,s,r=n.call(t),o=[];try{while((void 0===e||e-- >0)&&!(i=r.next()).done)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r["return"])&&n.call(r)}finally{if(s)throw s.error}}return o},a=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(o(arguments[e]));return t},c="$vuetify.",l=Symbol("Lang fallback");function u(t,e,n){void 0===n&&(n=!1);var o=e.replace(c,""),a=Object(s["getObjectValueByPath"])(t,o,l);return a===l&&(n?(Object(r["consoleError"])('Translation key "'+o+'" not found in fallback'),a=e):(Object(r["consoleWarn"])('Translation key "'+o+'" not found, falling back to default'),a=u(i["default"],e,!0))),a}function h(t){return void 0===t&&(t={}),{locales:Object.assign({en:i["default"]},t.locales),current:t.current||"en",t:function(e){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];if(!e.startsWith(c))return e;if(t.t)return t.t.apply(t,a([e],n));var s=u(this.locales[this.current],e);return s.replace(/\{(\d+)\}/g,(function(t,e){return String(n[+e])}))}}}},"./src/components/Vuetify/mixins/options.ts":
- /*!**************************************************!*\
- !*** ./src/components/Vuetify/mixins/options.ts ***!
- \**************************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return r}));var i=function(){return i=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var s in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t},i.apply(this,arguments)},s={minifyTheme:null,themeCache:null,customProperties:!1,cspNonce:null};function r(t){return void 0===t&&(t={}),i({},s,t)}},"./src/components/Vuetify/mixins/theme.ts":
- /*!************************************************!*\
- !*** ./src/components/Vuetify/mixins/theme.ts ***!
- \************************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return r}));var i=function(){return i=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var s in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t},i.apply(this,arguments)},s={primary:"#1976D2",secondary:"#424242",accent:"#82B1FF",error:"#FF5252",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"};function r(t){return void 0===t&&(t={}),!1!==t&&i({},s,t)}},"./src/components/index.ts":
- /*!*********************************!*\
- !*** ./src/components/index.ts ***!
- \*********************************/
- /*! exports provided: VApp, VAlert, VAutocomplete, VAvatar, VBadge, VBottomNav, VBottomSheet, VBreadcrumbs, VBreadcrumbsItem, VBreadcrumbsDivider, VBtn, VBtnToggle, VCalendar, VCalendarDaily, VCalendarWeekly, VCalendarMonthly, VCard, VCardMedia, VCardTitle, VCardActions, VCardText, VCarousel, VCarouselItem, VCheckbox, VChip, VCombobox, VCounter, VDataIterator, VDataTable, VEditDialog, VTableOverflow, VDatePicker, VDatePickerTitle, VDatePickerHeader, VDatePickerDateTable, VDatePickerMonthTable, VDatePickerYears, VDialog, VDivider, VExpansionPanel, VExpansionPanelContent, VFooter, VForm, VContainer, VContent, VFlex, VLayout, VSpacer, VHover, VIcon, VImg, VInput, VItem, VItemGroup, VJumbotron, VLabel, VList, VListGroup, VListTile, VListTileAction, VListTileAvatar, VListTileActionText, VListTileContent, VListTileTitle, VListTileSubTitle, VMenu, VMessages, VNavigationDrawer, VOverflowBtn, VPagination, VSheet, VParallax, VPicker, VProgressCircular, VProgressLinear, VRadioGroup, VRadio, VRangeSlider, VRating, VResponsive, VSelect, VSlider, VSnackbar, VSparkline, VSpeedDial, VStepper, VStepperContent, VStepperStep, VStepperHeader, VStepperItems, VSubheader, VSwitch, VSystemBar, VTabs, VTab, VTabItem, VTabsItems, VTabsSlider, VTextarea, VTextField, VTimeline, VTimelineItem, VTimePicker, VTimePickerClock, VTimePickerTitle, VToolbar, VToolbarSideIcon, VToolbarTitle, VToolbarItems, VTooltip, VTreeview, VTreeviewNode, VWindow, VWindowItem, VBottomSheetTransition, VCarouselTransition, VCarouselReverseTransition, VTabTransition, VTabReverseTransition, VMenuTransition, VFabTransition, VDialogTransition, VDialogBottomTransition, VFadeTransition, VScaleTransition, VScrollXTransition, VScrollXReverseTransition, VScrollYTransition, VScrollYReverseTransition, VSlideXTransition, VSlideXReverseTransition, VSlideYTransition, VSlideYReverseTransition, VExpandTransition, VExpandXTransition, VRowExpandTransition */function(t,e,n){"use strict";n.r(e);var i=n(/*! ./VApp */"./src/components/VApp/index.js");n.d(e,"VApp",(function(){return i["VApp"]}));var s=n(/*! ./VAlert */"./src/components/VAlert/index.ts");n.d(e,"VAlert",(function(){return s["VAlert"]}));var r=n(/*! ./VAutocomplete */"./src/components/VAutocomplete/index.js");n.d(e,"VAutocomplete",(function(){return r["VAutocomplete"]}));var o=n(/*! ./VAvatar */"./src/components/VAvatar/index.ts");n.d(e,"VAvatar",(function(){return o["VAvatar"]}));var a=n(/*! ./VBadge */"./src/components/VBadge/index.ts");n.d(e,"VBadge",(function(){return a["VBadge"]}));var c=n(/*! ./VBottomNav */"./src/components/VBottomNav/index.ts");n.d(e,"VBottomNav",(function(){return c["VBottomNav"]}));var l=n(/*! ./VBottomSheet */"./src/components/VBottomSheet/index.js");n.d(e,"VBottomSheet",(function(){return l["VBottomSheet"]}));var u=n(/*! ./VBreadcrumbs */"./src/components/VBreadcrumbs/index.ts");n.d(e,"VBreadcrumbs",(function(){return u["VBreadcrumbs"]})),n.d(e,"VBreadcrumbsItem",(function(){return u["VBreadcrumbsItem"]})),n.d(e,"VBreadcrumbsDivider",(function(){return u["VBreadcrumbsDivider"]}));var h=n(/*! ./VBtn */"./src/components/VBtn/index.ts");n.d(e,"VBtn",(function(){return h["VBtn"]}));var d=n(/*! ./VBtnToggle */"./src/components/VBtnToggle/index.ts");n.d(e,"VBtnToggle",(function(){return d["VBtnToggle"]}));var f=n(/*! ./VCalendar */"./src/components/VCalendar/index.ts");n.d(e,"VCalendar",(function(){return f["VCalendar"]})),n.d(e,"VCalendarDaily",(function(){return f["VCalendarDaily"]})),n.d(e,"VCalendarWeekly",(function(){return f["VCalendarWeekly"]})),n.d(e,"VCalendarMonthly",(function(){return f["VCalendarMonthly"]}));var p=n(/*! ./VCard */"./src/components/VCard/index.ts");n.d(e,"VCard",(function(){return p["VCard"]})),n.d(e,"VCardMedia",(function(){return p["VCardMedia"]})),n.d(e,"VCardTitle",(function(){return p["VCardTitle"]})),n.d(e,"VCardActions",(function(){return p["VCardActions"]})),n.d(e,"VCardText",(function(){return p["VCardText"]}));var m=n(/*! ./VCarousel */"./src/components/VCarousel/index.ts");n.d(e,"VCarousel",(function(){return m["VCarousel"]})),n.d(e,"VCarouselItem",(function(){return m["VCarouselItem"]}));var g=n(/*! ./VCheckbox */"./src/components/VCheckbox/index.js");n.d(e,"VCheckbox",(function(){return g["VCheckbox"]}));var b=n(/*! ./VChip */"./src/components/VChip/index.ts");n.d(e,"VChip",(function(){return b["VChip"]}));var v=n(/*! ./VCombobox */"./src/components/VCombobox/index.js");n.d(e,"VCombobox",(function(){return v["VCombobox"]}));var y=n(/*! ./VCounter */"./src/components/VCounter/index.ts");n.d(e,"VCounter",(function(){return y["VCounter"]}));var S=n(/*! ./VDataIterator */"./src/components/VDataIterator/index.js");n.d(e,"VDataIterator",(function(){return S["VDataIterator"]}));var x=n(/*! ./VDataTable */"./src/components/VDataTable/index.js");n.d(e,"VDataTable",(function(){return x["VDataTable"]})),n.d(e,"VEditDialog",(function(){return x["VEditDialog"]})),n.d(e,"VTableOverflow",(function(){return x["VTableOverflow"]}));var _=n(/*! ./VDatePicker */"./src/components/VDatePicker/index.js");n.d(e,"VDatePicker",(function(){return _["VDatePicker"]})),n.d(e,"VDatePickerTitle",(function(){return _["VDatePickerTitle"]})),n.d(e,"VDatePickerHeader",(function(){return _["VDatePickerHeader"]})),n.d(e,"VDatePickerDateTable",(function(){return _["VDatePickerDateTable"]})),n.d(e,"VDatePickerMonthTable",(function(){return _["VDatePickerMonthTable"]})),n.d(e,"VDatePickerYears",(function(){return _["VDatePickerYears"]}));var w=n(/*! ./VDialog */"./src/components/VDialog/index.js");n.d(e,"VDialog",(function(){return w["VDialog"]}));var E=n(/*! ./VDivider */"./src/components/VDivider/index.ts");n.d(e,"VDivider",(function(){return E["VDivider"]}));var T=n(/*! ./VExpansionPanel */"./src/components/VExpansionPanel/index.ts");n.d(e,"VExpansionPanel",(function(){return T["VExpansionPanel"]})),n.d(e,"VExpansionPanelContent",(function(){return T["VExpansionPanelContent"]}));var C=n(/*! ./VFooter */"./src/components/VFooter/index.js");n.d(e,"VFooter",(function(){return C["VFooter"]}));var M=n(/*! ./VForm */"./src/components/VForm/index.js");n.d(e,"VForm",(function(){return M["VForm"]}));var P=n(/*! ./VGrid */"./src/components/VGrid/index.js");n.d(e,"VContainer",(function(){return P["VContainer"]})),n.d(e,"VContent",(function(){return P["VContent"]})),n.d(e,"VFlex",(function(){return P["VFlex"]})),n.d(e,"VLayout",(function(){return P["VLayout"]})),n.d(e,"VSpacer",(function(){return P["VSpacer"]}));var A=n(/*! ./VHover */"./src/components/VHover/index.ts");n.d(e,"VHover",(function(){return A["VHover"]}));var I=n(/*! ./VIcon */"./src/components/VIcon/index.ts");n.d(e,"VIcon",(function(){return I["VIcon"]}));var L=n(/*! ./VImg */"./src/components/VImg/index.ts");n.d(e,"VImg",(function(){return L["VImg"]}));var O=n(/*! ./VInput */"./src/components/VInput/index.ts");n.d(e,"VInput",(function(){return O["VInput"]}));var k=n(/*! ./VItemGroup */"./src/components/VItemGroup/index.ts");n.d(e,"VItem",(function(){return k["VItem"]})),n.d(e,"VItemGroup",(function(){return k["VItemGroup"]}));var R=n(/*! ./VJumbotron */"./src/components/VJumbotron/index.js");n.d(e,"VJumbotron",(function(){return R["VJumbotron"]}));var N=n(/*! ./VLabel */"./src/components/VLabel/index.ts");n.d(e,"VLabel",(function(){return N["VLabel"]}));var D=n(/*! ./VList */"./src/components/VList/index.ts");n.d(e,"VList",(function(){return D["VList"]})),n.d(e,"VListGroup",(function(){return D["VListGroup"]})),n.d(e,"VListTile",(function(){return D["VListTile"]})),n.d(e,"VListTileAction",(function(){return D["VListTileAction"]})),n.d(e,"VListTileAvatar",(function(){return D["VListTileAvatar"]})),n.d(e,"VListTileActionText",(function(){return D["VListTileActionText"]})),n.d(e,"VListTileContent",(function(){return D["VListTileContent"]})),n.d(e,"VListTileTitle",(function(){return D["VListTileTitle"]})),n.d(e,"VListTileSubTitle",(function(){return D["VListTileSubTitle"]}));var V=n(/*! ./VMenu */"./src/components/VMenu/index.js");n.d(e,"VMenu",(function(){return V["VMenu"]}));var B=n(/*! ./VMessages */"./src/components/VMessages/index.ts");n.d(e,"VMessages",(function(){return B["VMessages"]}));var F=n(/*! ./VNavigationDrawer */"./src/components/VNavigationDrawer/index.ts");n.d(e,"VNavigationDrawer",(function(){return F["VNavigationDrawer"]}));var j=n(/*! ./VOverflowBtn */"./src/components/VOverflowBtn/index.js");n.d(e,"VOverflowBtn",(function(){return j["VOverflowBtn"]}));var G=n(/*! ./VPagination */"./src/components/VPagination/index.ts");n.d(e,"VPagination",(function(){return G["VPagination"]}));var W=n(/*! ./VSheet */"./src/components/VSheet/index.ts");n.d(e,"VSheet",(function(){return W["VSheet"]}));var $=n(/*! ./VParallax */"./src/components/VParallax/index.ts");n.d(e,"VParallax",(function(){return $["VParallax"]}));var z=n(/*! ./VPicker */"./src/components/VPicker/index.ts");n.d(e,"VPicker",(function(){return z["VPicker"]}));var H=n(/*! ./VProgressCircular */"./src/components/VProgressCircular/index.ts");n.d(e,"VProgressCircular",(function(){return H["VProgressCircular"]}));var U=n(/*! ./VProgressLinear */"./src/components/VProgressLinear/index.ts");n.d(e,"VProgressLinear",(function(){return U["VProgressLinear"]}));var Y=n(/*! ./VRadioGroup */"./src/components/VRadioGroup/index.js");n.d(e,"VRadioGroup",(function(){return Y["VRadioGroup"]})),n.d(e,"VRadio",(function(){return Y["VRadio"]}));var X=n(/*! ./VRangeSlider */"./src/components/VRangeSlider/index.js");n.d(e,"VRangeSlider",(function(){return X["VRangeSlider"]}));var K=n(/*! ./VRating */"./src/components/VRating/index.ts");n.d(e,"VRating",(function(){return K["VRating"]}));var q=n(/*! ./VResponsive */"./src/components/VResponsive/index.ts");n.d(e,"VResponsive",(function(){return q["VResponsive"]}));var Z=n(/*! ./VSelect */"./src/components/VSelect/index.js");n.d(e,"VSelect",(function(){return Z["VSelect"]}));var J=n(/*! ./VSlider */"./src/components/VSlider/index.js");n.d(e,"VSlider",(function(){return J["VSlider"]}));var Q=n(/*! ./VSnackbar */"./src/components/VSnackbar/index.ts");n.d(e,"VSnackbar",(function(){return Q["VSnackbar"]}));var tt=n(/*! ./VSparkline */"./src/components/VSparkline/index.ts");n.d(e,"VSparkline",(function(){return tt["VSparkline"]}));var et=n(/*! ./VSpeedDial */"./src/components/VSpeedDial/index.js");n.d(e,"VSpeedDial",(function(){return et["VSpeedDial"]}));var nt=n(/*! ./VStepper */"./src/components/VStepper/index.ts");n.d(e,"VStepper",(function(){return nt["VStepper"]})),n.d(e,"VStepperContent",(function(){return nt["VStepperContent"]})),n.d(e,"VStepperStep",(function(){return nt["VStepperStep"]})),n.d(e,"VStepperHeader",(function(){return nt["VStepperHeader"]})),n.d(e,"VStepperItems",(function(){return nt["VStepperItems"]}));var it=n(/*! ./VSubheader */"./src/components/VSubheader/index.ts");n.d(e,"VSubheader",(function(){return it["VSubheader"]}));var st=n(/*! ./VSwitch */"./src/components/VSwitch/index.js");n.d(e,"VSwitch",(function(){return st["VSwitch"]}));var rt=n(/*! ./VSystemBar */"./src/components/VSystemBar/index.ts");n.d(e,"VSystemBar",(function(){return rt["VSystemBar"]}));var ot=n(/*! ./VTabs */"./src/components/VTabs/index.js");n.d(e,"VTabs",(function(){return ot["VTabs"]})),n.d(e,"VTab",(function(){return ot["VTab"]})),n.d(e,"VTabItem",(function(){return ot["VTabItem"]})),n.d(e,"VTabsItems",(function(){return ot["VTabsItems"]})),n.d(e,"VTabsSlider",(function(){return ot["VTabsSlider"]}));var at=n(/*! ./VTextarea */"./src/components/VTextarea/index.js");n.d(e,"VTextarea",(function(){return at["VTextarea"]}));var ct=n(/*! ./VTextField */"./src/components/VTextField/index.js");n.d(e,"VTextField",(function(){return ct["VTextField"]}));var lt=n(/*! ./VTimeline */"./src/components/VTimeline/index.ts");n.d(e,"VTimeline",(function(){return lt["VTimeline"]})),n.d(e,"VTimelineItem",(function(){return lt["VTimelineItem"]}));var ut=n(/*! ./VTimePicker */"./src/components/VTimePicker/index.ts");n.d(e,"VTimePicker",(function(){return ut["VTimePicker"]})),n.d(e,"VTimePickerClock",(function(){return ut["VTimePickerClock"]})),n.d(e,"VTimePickerTitle",(function(){return ut["VTimePickerTitle"]}));var ht=n(/*! ./VToolbar */"./src/components/VToolbar/index.ts");n.d(e,"VToolbar",(function(){return ht["VToolbar"]})),n.d(e,"VToolbarSideIcon",(function(){return ht["VToolbarSideIcon"]})),n.d(e,"VToolbarTitle",(function(){return ht["VToolbarTitle"]})),n.d(e,"VToolbarItems",(function(){return ht["VToolbarItems"]}));var dt=n(/*! ./VTooltip */"./src/components/VTooltip/index.js");n.d(e,"VTooltip",(function(){return dt["VTooltip"]}));var ft=n(/*! ./VTreeview */"./src/components/VTreeview/index.ts");n.d(e,"VTreeview",(function(){return ft["VTreeview"]})),n.d(e,"VTreeviewNode",(function(){return ft["VTreeviewNode"]}));var pt=n(/*! ./VWindow */"./src/components/VWindow/index.ts");n.d(e,"VWindow",(function(){return pt["VWindow"]})),n.d(e,"VWindowItem",(function(){return pt["VWindowItem"]}));var mt=n(/*! ./transitions */"./src/components/transitions/index.js");n.d(e,"VBottomSheetTransition",(function(){return mt["VBottomSheetTransition"]})),n.d(e,"VCarouselTransition",(function(){return mt["VCarouselTransition"]})),n.d(e,"VCarouselReverseTransition",(function(){return mt["VCarouselReverseTransition"]})),n.d(e,"VTabTransition",(function(){return mt["VTabTransition"]})),n.d(e,"VTabReverseTransition",(function(){return mt["VTabReverseTransition"]})),n.d(e,"VMenuTransition",(function(){return mt["VMenuTransition"]})),n.d(e,"VFabTransition",(function(){return mt["VFabTransition"]})),n.d(e,"VDialogTransition",(function(){return mt["VDialogTransition"]})),n.d(e,"VDialogBottomTransition",(function(){return mt["VDialogBottomTransition"]})),n.d(e,"VFadeTransition",(function(){return mt["VFadeTransition"]})),n.d(e,"VScaleTransition",(function(){return mt["VScaleTransition"]})),n.d(e,"VScrollXTransition",(function(){return mt["VScrollXTransition"]})),n.d(e,"VScrollXReverseTransition",(function(){return mt["VScrollXReverseTransition"]})),n.d(e,"VScrollYTransition",(function(){return mt["VScrollYTransition"]})),n.d(e,"VScrollYReverseTransition",(function(){return mt["VScrollYReverseTransition"]})),n.d(e,"VSlideXTransition",(function(){return mt["VSlideXTransition"]})),n.d(e,"VSlideXReverseTransition",(function(){return mt["VSlideXReverseTransition"]})),n.d(e,"VSlideYTransition",(function(){return mt["VSlideYTransition"]})),n.d(e,"VSlideYReverseTransition",(function(){return mt["VSlideYReverseTransition"]})),n.d(e,"VExpandTransition",(function(){return mt["VExpandTransition"]})),n.d(e,"VExpandXTransition",(function(){return mt["VExpandXTransition"]})),n.d(e,"VRowExpandTransition",(function(){return mt["VRowExpandTransition"]}))},"./src/components/transitions/expand-transition.js":
- /*!*********************************************************!*\
- !*** ./src/components/transitions/expand-transition.js ***!
- \*********************************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ../../util/helpers */"./src/util/helpers.ts");e["default"]=function(t,e){void 0===t&&(t=""),void 0===e&&(e=!1);var n=e?"width":"height";return{beforeEnter:function(t){var e;t._parent=t.parentNode,t._initialStyle=(e={transition:t.style.transition,visibility:t.style.visibility,overflow:t.style.overflow},e[n]=t.style[n],e)},enter:function(e){var s=e._initialStyle;e.style.setProperty("transition","none","important"),e.style.visibility="hidden";var r=e["offset"+Object(i["upperFirst"])(n)]+"px";e.style.visibility=s.visibility,e.style.overflow="hidden",e.style[n]=0,e.offsetHeight,e.style.transition=s.transition,t&&e._parent&&e._parent.classList.add(t),requestAnimationFrame((function(){e.style[n]=r}))},afterEnter:r,enterCancelled:r,leave:function(t){var e;t._initialStyle=(e={overflow:t.style.overflow},e[n]=t.style[n],e),t.style.overflow="hidden",t.style[n]=t["offset"+Object(i["upperFirst"])(n)]+"px",t.offsetHeight,requestAnimationFrame((function(){return t.style[n]=0}))},afterLeave:s,leaveCancelled:s};function s(e){t&&e._parent&&e._parent.classList.remove(t),r(e)}function r(t){t.style.overflow=t._initialStyle.overflow,t.style[n]=t._initialStyle[n],delete t._initialStyle}}},"./src/components/transitions/index.js":
- /*!*********************************************!*\
- !*** ./src/components/transitions/index.js ***!
- \*********************************************/
- /*! exports provided: VBottomSheetTransition, VCarouselTransition, VCarouselReverseTransition, VTabTransition, VTabReverseTransition, VMenuTransition, VFabTransition, VDialogTransition, VDialogBottomTransition, VFadeTransition, VScaleTransition, VScrollXTransition, VScrollXReverseTransition, VScrollYTransition, VScrollYReverseTransition, VSlideXTransition, VSlideXReverseTransition, VSlideYTransition, VSlideYReverseTransition, VExpandTransition, VExpandXTransition, VRowExpandTransition, default */function(t,e,n){"use strict";n.r(e),n.d(e,"VBottomSheetTransition",(function(){return r})),n.d(e,"VCarouselTransition",(function(){return o})),n.d(e,"VCarouselReverseTransition",(function(){return a})),n.d(e,"VTabTransition",(function(){return c})),n.d(e,"VTabReverseTransition",(function(){return l})),n.d(e,"VMenuTransition",(function(){return u})),n.d(e,"VFabTransition",(function(){return h})),n.d(e,"VDialogTransition",(function(){return d})),n.d(e,"VDialogBottomTransition",(function(){return f})),n.d(e,"VFadeTransition",(function(){return p})),n.d(e,"VScaleTransition",(function(){return m})),n.d(e,"VScrollXTransition",(function(){return g})),n.d(e,"VScrollXReverseTransition",(function(){return b})),n.d(e,"VScrollYTransition",(function(){return v})),n.d(e,"VScrollYReverseTransition",(function(){return y})),n.d(e,"VSlideXTransition",(function(){return S})),n.d(e,"VSlideXReverseTransition",(function(){return x})),n.d(e,"VSlideYTransition",(function(){return _})),n.d(e,"VSlideYReverseTransition",(function(){return w})),n.d(e,"VExpandTransition",(function(){return E})),n.d(e,"VExpandXTransition",(function(){return T})),n.d(e,"VRowExpandTransition",(function(){return C}));var i=n(/*! ../../util/helpers */"./src/util/helpers.ts"),s=n(/*! ./expand-transition */"./src/components/transitions/expand-transition.js"),r=Object(i["createSimpleTransition"])("bottom-sheet-transition"),o=Object(i["createSimpleTransition"])("carousel-transition"),a=Object(i["createSimpleTransition"])("carousel-reverse-transition"),c=Object(i["createSimpleTransition"])("tab-transition"),l=Object(i["createSimpleTransition"])("tab-reverse-transition"),u=Object(i["createSimpleTransition"])("menu-transition"),h=Object(i["createSimpleTransition"])("fab-transition","center center","out-in"),d=Object(i["createSimpleTransition"])("dialog-transition"),f=Object(i["createSimpleTransition"])("dialog-bottom-transition"),p=Object(i["createSimpleTransition"])("fade-transition"),m=Object(i["createSimpleTransition"])("scale-transition"),g=Object(i["createSimpleTransition"])("scroll-x-transition"),b=Object(i["createSimpleTransition"])("scroll-x-reverse-transition"),v=Object(i["createSimpleTransition"])("scroll-y-transition"),y=Object(i["createSimpleTransition"])("scroll-y-reverse-transition"),S=Object(i["createSimpleTransition"])("slide-x-transition"),x=Object(i["createSimpleTransition"])("slide-x-reverse-transition"),_=Object(i["createSimpleTransition"])("slide-y-transition"),w=Object(i["createSimpleTransition"])("slide-y-reverse-transition"),E=Object(i["createJavaScriptTransition"])("expand-transition",Object(s["default"])()),T=Object(i["createJavaScriptTransition"])("expand-x-transition",Object(s["default"])("",!0)),C=Object(i["createJavaScriptTransition"])("row-expand-transition",Object(s["default"])("datatable__expand-col--expanded"));e["default"]={$_vuetify_subcomponents:{VBottomSheetTransition:r,VCarouselTransition:o,VCarouselReverseTransition:a,VDialogTransition:d,VDialogBottomTransition:f,VFabTransition:h,VFadeTransition:p,VMenuTransition:u,VScaleTransition:m,VScrollXTransition:g,VScrollXReverseTransition:b,VScrollYTransition:v,VScrollYReverseTransition:y,VSlideXTransition:S,VSlideXReverseTransition:x,VSlideYTransition:_,VSlideYReverseTransition:w,VTabReverseTransition:l,VTabTransition:c,VExpandTransition:E,VExpandXTransition:T,VRowExpandTransition:C}}},"./src/directives/click-outside.ts":
- /*!*****************************************!*\
- !*** ./src/directives/click-outside.ts ***!
- \*****************************************/
- /*! exports provided: default */function(t,e,n){"use strict";function i(){return!1}function s(t,e,n){n.args=n.args||{};var s=n.args.closeConditional||i;if(t&&!1!==s(t)&&!("isTrusted"in t&&!t.isTrusted||"pointerType"in t&&!t.pointerType)){var r=(n.args.include||function(){return[]})();r.push(e),!r.some((function(e){return e.contains(t.target)}))&&setTimeout((function(){s(t)&&n.value&&n.value(t)}),0)}}n.r(e),e["default"]={inserted:function(t,e){var n=function(n){return s(n,t,e)},i=document.querySelector("[data-app]")||document.body;i.addEventListener("click",n,!0),t._clickOutside=n},unbind:function(t){if(t._clickOutside){var e=document.querySelector("[data-app]")||document.body;e&&e.removeEventListener("click",t._clickOutside,!0),delete t._clickOutside}}}},"./src/directives/index.ts":
- /*!*********************************!*\
- !*** ./src/directives/index.ts ***!
- \*********************************/
- /*! exports provided: ClickOutside, Ripple, Resize, Scroll, Touch, default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ./click-outside */"./src/directives/click-outside.ts");n.d(e,"ClickOutside",(function(){return i["default"]}));var s=n(/*! ./resize */"./src/directives/resize.ts");n.d(e,"Resize",(function(){return s["default"]}));var r=n(/*! ./ripple */"./src/directives/ripple.ts");n.d(e,"Ripple",(function(){return r["default"]}));var o=n(/*! ./scroll */"./src/directives/scroll.ts");n.d(e,"Scroll",(function(){return o["default"]}));var a=n(/*! ./touch */"./src/directives/touch.ts");n.d(e,"Touch",(function(){return a["default"]})),e["default"]={ClickOutside:i["default"],Ripple:r["default"],Resize:s["default"],Scroll:o["default"],Touch:a["default"]}},"./src/directives/resize.ts":
- /*!**********************************!*\
- !*** ./src/directives/resize.ts ***!
- \**********************************/
- /*! exports provided: default */function(t,e,n){"use strict";function i(t,e){var n=e.value,i=e.options||{passive:!0};window.addEventListener("resize",n,i),t._onResize={callback:n,options:i},e.modifiers&&e.modifiers.quiet||n()}function s(t){if(t._onResize){var e=t._onResize,n=e.callback,i=e.options;window.removeEventListener("resize",n,i),delete t._onResize}}n.r(e),e["default"]={inserted:i,unbind:s}},"./src/directives/ripple.ts":
- /*!**********************************!*\
- !*** ./src/directives/ripple.ts ***!
- \**********************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ../util/console */"./src/util/console.ts"),s=function(t,e){var n="function"===typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,s,r=n.call(t),o=[];try{while((void 0===e||e-- >0)&&!(i=r.next()).done)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r["return"])&&n.call(r)}finally{if(s)throw s.error}}return o},r=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(s(arguments[e]));return t};function o(t,e){t.style["transform"]=e,t.style["webkitTransform"]=e}function a(t,e){t.style["opacity"]=e.toString()}function c(t){return"TouchEvent"===t.constructor.name}var l=function(t,e,n){void 0===n&&(n={});var i=e.getBoundingClientRect(),s=c(t)?t.touches[t.touches.length-1]:t,r=s.clientX-i.left,o=s.clientY-i.top,a=0,l=.3;e._ripple&&e._ripple.circle?(l=.15,a=e.clientWidth/2,a=n.center?a:a+Math.sqrt(Math.pow(r-a,2)+Math.pow(o-a,2))/4):a=Math.sqrt(Math.pow(e.clientWidth,2)+Math.pow(e.clientHeight,2))/2;var u=(e.clientWidth-2*a)/2+"px",h=(e.clientHeight-2*a)/2+"px",d=n.center?u:r-a+"px",f=n.center?h:o-a+"px";return{radius:a,scale:l,x:d,y:f,centerX:u,centerY:h}},u={show:function(t,e,n){if(void 0===n&&(n={}),e._ripple&&e._ripple.enabled){var i=document.createElement("span"),s=document.createElement("span");i.appendChild(s),i.className="v-ripple__container",n.class&&(i.className+=" "+n.class);var r=l(t,e,n),c=r.radius,u=r.scale,h=r.x,d=r.y,f=r.centerX,p=r.centerY,m=2*c+"px";s.className="v-ripple__animation",s.style.width=m,s.style.height=m,e.appendChild(i);var g=window.getComputedStyle(e);g&&"static"===g.position&&(e.style.position="relative",e.dataset.previousPosition="static"),s.classList.add("v-ripple__animation--enter"),s.classList.add("v-ripple__animation--visible"),o(s,"translate("+h+", "+d+") scale3d("+u+","+u+","+u+")"),a(s,0),s.dataset.activated=String(performance.now()),setTimeout((function(){s.classList.remove("v-ripple__animation--enter"),s.classList.add("v-ripple__animation--in"),o(s,"translate("+f+", "+p+") scale3d(1,1,1)"),a(s,.25)}),0)}},hide:function(t){if(t&&t._ripple&&t._ripple.enabled){var e=t.getElementsByClassName("v-ripple__animation");if(0!==e.length){var n=e[e.length-1];if(!n.dataset.isHiding){n.dataset.isHiding="true";var i=performance.now()-Number(n.dataset.activated),s=Math.max(250-i,0);setTimeout((function(){n.classList.remove("v-ripple__animation--in"),n.classList.add("v-ripple__animation--out"),a(n,0),setTimeout((function(){var e=t.getElementsByClassName("v-ripple__animation");1===e.length&&t.dataset.previousPosition&&(t.style.position=t.dataset.previousPosition,delete t.dataset.previousPosition),n.parentNode&&t.removeChild(n.parentNode)}),300)}),s)}}}}};function h(t){return"undefined"===typeof t||!!t}function d(t){var e={},n=t.currentTarget;n&&n._ripple&&!n._ripple.touched&&(c(t)&&(n._ripple.touched=!0),e.center=n._ripple.centered,n._ripple.class&&(e.class=n._ripple.class),u.show(t,n,e))}function f(t){var e=t.currentTarget;e&&(window.setTimeout((function(){e._ripple&&(e._ripple.touched=!1)})),u.hide(e))}function p(t,e,n){var i=h(e.value);i||u.hide(t),t._ripple=t._ripple||{},t._ripple.enabled=i;var s=e.value||{};s.center&&(t._ripple.centered=!0),s.class&&(t._ripple.class=e.value.class),s.circle&&(t._ripple.circle=s.circle),i&&!n?(t.addEventListener("touchstart",d,{passive:!0}),t.addEventListener("touchend",f,{passive:!0}),t.addEventListener("touchcancel",f),t.addEventListener("mousedown",d),t.addEventListener("mouseup",f),t.addEventListener("mouseleave",f),t.addEventListener("dragstart",f,{passive:!0})):!i&&n&&m(t)}function m(t){t.removeEventListener("mousedown",d),t.removeEventListener("touchstart",f),t.removeEventListener("touchend",f),t.removeEventListener("touchcancel",f),t.removeEventListener("mouseup",f),t.removeEventListener("mouseleave",f),t.removeEventListener("dragstart",f)}function g(t,e,n){p(t,e,!1),n.context&&n.context.$nextTick((function(){var e=window.getComputedStyle(t);if(e&&"inline"===e.display){var s=n.fnOptions?[n.fnOptions,n.context]:[n.componentInstance];i["consoleWarn"].apply(void 0,r(["v-ripple can only be used on block-level elements"],s))}}))}function b(t){delete t._ripple,m(t)}function v(t,e){if(e.value!==e.oldValue){var n=h(e.oldValue);p(t,e,n)}}e["default"]={bind:g,unbind:b,update:v}},"./src/directives/scroll.ts":
- /*!**********************************!*\
- !*** ./src/directives/scroll.ts ***!
- \**********************************/
- /*! exports provided: default */function(t,e,n){"use strict";function i(t,e){var n=e.value,i=e.options||{passive:!0},s=e.arg?document.querySelector(e.arg):window;s&&(s.addEventListener("scroll",n,i),t._onScroll={callback:n,options:i,target:s})}function s(t){if(t._onScroll){var e=t._onScroll,n=e.callback,i=e.options,s=e.target;s.removeEventListener("scroll",n,i),delete t._onScroll}}n.r(e),e["default"]={inserted:i,unbind:s}},"./src/directives/touch.ts":
- /*!*********************************!*\
- !*** ./src/directives/touch.ts ***!
- \*********************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ../util/helpers */"./src/util/helpers.ts"),s=function(t){var e=t.touchstartX,n=t.touchendX,i=t.touchstartY,s=t.touchendY,r=.5,o=16;t.offsetX=n-e,t.offsetY=s-i,Math.abs(t.offsetY)<r*Math.abs(t.offsetX)&&(t.left&&n<e-o&&t.left(t),t.right&&n>e+o&&t.right(t)),Math.abs(t.offsetX)<r*Math.abs(t.offsetY)&&(t.up&&s<i-o&&t.up(t),t.down&&s>i+o&&t.down(t))};function r(t,e){var n=t.changedTouches[0];e.touchstartX=n.clientX,e.touchstartY=n.clientY,e.start&&e.start(Object.assign(t,e))}function o(t,e){var n=t.changedTouches[0];e.touchendX=n.clientX,e.touchendY=n.clientY,e.end&&e.end(Object.assign(t,e)),s(e)}function a(t,e){var n=t.changedTouches[0];e.touchmoveX=n.clientX,e.touchmoveY=n.clientY,e.move&&e.move(Object.assign(t,e))}function c(t){var e={touchstartX:0,touchstartY:0,touchendX:0,touchendY:0,touchmoveX:0,touchmoveY:0,offsetX:0,offsetY:0,left:t.left,right:t.right,up:t.up,down:t.down,start:t.start,move:t.move,end:t.end};return{touchstart:function(t){return r(t,e)},touchend:function(t){return o(t,e)},touchmove:function(t){return a(t,e)}}}function l(t,e,n){var s=e.value,r=s.parent?t.parentElement:t,o=s.options||{passive:!0};if(r){var a=c(e.value);r._touchHandlers=Object(r._touchHandlers),r._touchHandlers[n.context._uid]=a,Object(i["keys"])(a).forEach((function(t){r.addEventListener(t,a[t],o)}))}}function u(t,e,n){var s=e.value.parent?t.parentElement:t;if(s&&s._touchHandlers){var r=s._touchHandlers[n.context._uid];Object(i["keys"])(r).forEach((function(t){s.removeEventListener(t,r[t])})),delete s._touchHandlers[n.context._uid]}}e["default"]={inserted:l,unbind:u}},"./src/index.ts":
- /*!**********************!*\
- !*** ./src/index.ts ***!
- \**********************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);n(/*! ./stylus/app.styl */"./src/stylus/app.styl");var i=n(/*! ./components/Vuetify */"./src/components/Vuetify/index.ts"),s=n(/*! ./components */"./src/components/index.ts"),r=n(/*! ./directives */"./src/directives/index.ts"),o=function(){return o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var s in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t},o.apply(this,arguments)},a={install:function(t,e){t.use(i["default"],o({components:s,directives:r["default"]},e))},version:"1.5.24"};"undefined"!==typeof window&&window.Vue&&window.Vue.use(a),e["default"]=a},"./src/locale/en.ts":
- /*!**************************!*\
- !*** ./src/locale/en.ts ***!
- \**************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e),e["default"]={dataIterator:{rowsPerPageText:"Items per page:",rowsPerPageAll:"All",pageText:"{0}-{1} of {2}",noResultsText:"No matching records found",nextPage:"Next page",prevPage:"Previous page"},dataTable:{rowsPerPageText:"Rows per page:"},noDataText:"No data available",carousel:{prev:"Previous visual",next:"Next visual"}}},"./src/mixins/applicationable.ts":
- /*!***************************************!*\
- !*** ./src/mixins/applicationable.ts ***!
- \***************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return r}));var i=n(/*! ./positionable */"./src/mixins/positionable.ts"),s=n(/*! ../util/mixins */"./src/util/mixins.ts");function r(t,e){return void 0===e&&(e=[]),Object(s["default"])(Object(i["factory"])(["absolute","fixed"])).extend({name:"applicationable",props:{app:Boolean},computed:{applicationProperty:function(){return t}},watch:{app:function(t,e){e?this.removeApplication(!0):this.callUpdate()},applicationProperty:function(t,e){this.$vuetify.application.unbind(this._uid,e)}},activated:function(){this.callUpdate()},created:function(){for(var t=0,n=e.length;t<n;t++)this.$watch(e[t],this.callUpdate);this.callUpdate()},mounted:function(){this.callUpdate()},deactivated:function(){this.removeApplication()},destroyed:function(){this.removeApplication()},methods:{callUpdate:function(){this.app&&this.$vuetify.application.bind(this._uid,this.applicationProperty,this.updateApplication())},removeApplication:function(t){void 0===t&&(t=!1),(t||this.app)&&this.$vuetify.application.unbind(this._uid,this.applicationProperty)},updateApplication:function(){return 0}}})}},"./src/mixins/bootable.ts":
- /*!********************************!*\
- !*** ./src/mixins/bootable.ts ***!
- \********************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);var i=n(/*! vue */"vue"),s=n.n(i);e["default"]=s.a.extend().extend({name:"bootable",props:{lazy:Boolean},data:function(){return{isBooted:!1}},computed:{hasContent:function(){return this.isBooted||!this.lazy||this.isActive}},watch:{isActive:function(){this.isBooted=!0}},methods:{showLazyContent:function(t){return this.hasContent?t:void 0}}})},"./src/mixins/button-group.ts":
- /*!************************************!*\
- !*** ./src/mixins/button-group.ts ***!
- \************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ../components/VItemGroup/VItemGroup */"./src/components/VItemGroup/VItemGroup.ts");e["default"]=i["BaseItemGroup"].extend({name:"button-group",provide:function(){return{btnToggle:this}},props:{activeClass:{type:String,default:"v-btn--active"}},computed:{classes:function(){return i["BaseItemGroup"].options.computed.classes.call(this)}}})},"./src/mixins/colorable.ts":
- /*!*********************************!*\
- !*** ./src/mixins/colorable.ts ***!
- \*********************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);var i=n(/*! vue */"vue"),s=n.n(i),r=function(){return r=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var s in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t},r.apply(this,arguments)},o=function(t,e){var n="function"===typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,s,r=n.call(t),o=[];try{while((void 0===e||e-- >0)&&!(i=r.next()).done)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r["return"])&&n.call(r)}finally{if(s)throw s.error}}return o};function a(t){return!!t&&!!t.match(/^(#|(rgb|hsl)a?\()/)}e["default"]=s.a.extend({name:"colorable",props:{color:String},methods:{setBackgroundColor:function(t,e){var n;return void 0===e&&(e={}),a(t)?e.style=r({},e.style,{"background-color":""+t,"border-color":""+t}):t&&(e.class=r({},e.class,(n={},n[t]=!0,n))),e},setTextColor:function(t,e){var n;if(void 0===e&&(e={}),a(t))e.style=r({},e.style,{color:""+t,"caret-color":""+t});else if(t){var i=o(t.toString().trim().split(" ",2),2),s=i[0],c=i[1];e.class=r({},e.class,(n={},n[s+"--text"]=!0,n)),c&&(e.class["text--"+c]=!0)}return e}}})},"./src/mixins/comparable.ts":
- /*!**********************************!*\
- !*** ./src/mixins/comparable.ts ***!
- \**********************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);var i=n(/*! vue */"vue"),s=n.n(i),r=n(/*! ../util/helpers */"./src/util/helpers.ts");e["default"]=s.a.extend({name:"comparable",props:{valueComparator:{type:Function,default:r["deepEqual"]}}})},"./src/mixins/data-iterable.js":
- /*!*************************************!*\
- !*** ./src/mixins/data-iterable.js ***!
- \*************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ../components/VBtn */"./src/components/VBtn/index.ts"),s=n(/*! ../components/VIcon */"./src/components/VIcon/index.ts"),r=n(/*! ../components/VSelect */"./src/components/VSelect/index.js"),o=n(/*! ./filterable */"./src/mixins/filterable.ts"),a=n(/*! ./themeable */"./src/mixins/themeable.ts"),c=n(/*! ./loadable */"./src/mixins/loadable.ts"),l=n(/*! ../util/helpers */"./src/util/helpers.ts"),u=n(/*! ../util/console */"./src/util/console.ts"),h=function(t,e){var n="function"===typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,s,r=n.call(t),o=[];try{while((void 0===e||e-- >0)&&!(i=r.next()).done)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r["return"])&&n.call(r)}finally{if(s)throw s.error}}return o},d=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(h(arguments[e]));return t};e["default"]={name:"data-iterable",mixins:[o["default"],c["default"],a["default"]],props:{expand:Boolean,hideActions:Boolean,disableInitialSort:Boolean,mustSort:Boolean,noResultsText:{type:String,default:"$vuetify.dataIterator.noResultsText"},nextIcon:{type:String,default:"$vuetify.icons.next"},prevIcon:{type:String,default:"$vuetify.icons.prev"},rowsPerPageItems:{type:Array,default:function(){return[5,10,25,{text:"$vuetify.dataIterator.rowsPerPageAll",value:-1}]}},rowsPerPageText:{type:String,default:"$vuetify.dataIterator.rowsPerPageText"},selectAll:[Boolean,String],search:{required:!1},filter:{type:Function,default:function(t,e){return null!=t&&"boolean"!==typeof t&&-1!==t.toString().toLowerCase().indexOf(e)}},customFilter:{type:Function,default:function(t,e,n){return e=e.toString().toLowerCase(),""===e.trim()?t:t.filter((function(t){return Object.keys(t).some((function(i){return n(t[i],e)}))}))}},customSort:{type:Function,default:function(t,e,n){return null===e?t:t.sort((function(t,i){var s,r,o=Object(l["getObjectValueByPath"])(t,e),a=Object(l["getObjectValueByPath"])(i,e);return n&&(s=h([a,o],2),o=s[0],a=s[1]),isNaN(o)||isNaN(a)?null===o&&null===a?0:(r=h([o,a].map((function(t){return(t||"").toString().toLocaleLowerCase()})),2),o=r[0],a=r[1],o>a?1:o<a?-1:0):o-a}))}},value:{type:Array,default:function(){return[]}},items:{type:Array,required:!0,default:function(){return[]}},totalItems:{type:Number,default:null},itemKey:{type:String,default:"id"},pagination:{type:Object,default:function(){}}},data:function(){return{searchLength:0,defaultPagination:{descending:!1,page:1,rowsPerPage:5,sortBy:null,totalItems:0},expanded:{},actionsClasses:"v-data-iterator__actions",actionsRangeControlsClasses:"v-data-iterator__actions__range-controls",actionsSelectClasses:"v-data-iterator__actions__select",actionsPaginationClasses:"v-data-iterator__actions__pagination"}},computed:{computedPagination:function(){return this.hasPagination?this.pagination:this.defaultPagination},computedRowsPerPageItems:function(){var t=this;return this.rowsPerPageItems.map((function(e){return Object(l["isObject"])(e)?Object.assign({},e,{text:t.$vuetify.t(e.text)}):{value:e,text:Number(e).toLocaleString(t.$vuetify.lang.current)}}))},hasPagination:function(){var t=this.pagination||{};return Object.keys(t).length>0},hasSelectAll:function(){return void 0!==this.selectAll&&!1!==this.selectAll},itemsLength:function(){return this.hasSearch?this.searchLength:this.totalItems||this.items.length},indeterminate:function(){return this.hasSelectAll&&this.someItems&&!this.everyItem},everyItem:function(){var t=this;return this.filteredItems.length&&this.filteredItems.every((function(e){return t.isSelected(e)}))},someItems:function(){var t=this;return this.filteredItems.some((function(e){return t.isSelected(e)}))},getPage:function(){var t=this.computedPagination.rowsPerPage;return t===Object(t)?t.value:t},pageStart:function(){return-1===this.getPage?0:(this.computedPagination.page-1)*this.getPage},pageStop:function(){return-1===this.getPage?this.itemsLength:this.computedPagination.page*this.getPage},filteredItems:function(){return this.filteredItemsImpl()},selected:function(){for(var t={},e=0;e<this.value.length;e++){var n=Object(l["getObjectValueByPath"])(this.value[e],this.itemKey);t[n]=!0}return t},hasSearch:function(){return null!=this.search}},watch:{items:function(){var t=this;if(this.pageStart>=this.itemsLength&&this.resetPagination(),null===this.totalItems){var e=new Set(this.items.map((function(e){return Object(l["getObjectValueByPath"])(e,t.itemKey)}))),n=this.value.filter((function(n){return e.has(Object(l["getObjectValueByPath"])(n,t.itemKey))}));n.length!==this.value.length&&this.$emit("input",n)}},search:function(){var t=this;this.$nextTick((function(){t.updatePagination({page:1,totalItems:t.itemsLength})}))},"computedPagination.sortBy":"resetPagination","computedPagination.descending":"resetPagination"},methods:{initPagination:function(){this.rowsPerPageItems.length?this.defaultPagination.rowsPerPage=this.rowsPerPageItems[0]:Object(u["consoleWarn"])("The prop 'rows-per-page-items' can not be empty",this),this.defaultPagination.totalItems=this.items.length,this.updatePagination(Object.assign({},this.defaultPagination,this.pagination))},updatePagination:function(t){var e=this.hasPagination?this.pagination:this.defaultPagination,n=Object.assign({},e,t);this.$emit("update:pagination",n),this.hasPagination||(this.defaultPagination=n)},isSelected:function(t){return this.selected[Object(l["getObjectValueByPath"])(t,this.itemKey)]},isExpanded:function(t){return this.expanded[Object(l["getObjectValueByPath"])(t,this.itemKey)]},filteredItemsImpl:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this.totalItems)return this.items;var n=this.items.slice();return this.hasSearch&&(n=this.customFilter.apply(this,d([n,this.search,this.filter],t)),this.searchLength=n.length),n=this.customSort(n,this.computedPagination.sortBy,this.computedPagination.descending),this.hideActions&&!this.hasPagination?n:n.slice(this.pageStart,this.pageStop)},resetPagination:function(){1!==this.computedPagination.page&&this.updatePagination({page:1})},sort:function(t){var e=this.computedPagination,n=e.sortBy,i=e.descending;null===n?this.updatePagination({sortBy:t,descending:!1}):n!==t||i?n!==t||this.mustSort?this.updatePagination({sortBy:t,descending:!1}):this.updatePagination({sortBy:null,descending:null}):this.updatePagination({descending:!0})},toggle:function(t){for(var e=this,n=Object.assign({},this.selected),i=0;i<this.filteredItems.length;i++){var s=Object(l["getObjectValueByPath"])(this.filteredItems[i],this.itemKey);n[s]=t}this.$emit("input",this.items.filter((function(t){var i=Object(l["getObjectValueByPath"])(t,e.itemKey);return n[i]})))},createProps:function(t,e){var n=this,i={item:t,index:e},s=this.itemKey,r=Object(l["getObjectValueByPath"])(t,s);return Object.defineProperty(i,"selected",{get:function(){return n.selected[r]},set:function(e){null==r&&Object(u["consoleWarn"])('"'+s+'" attribute must be defined for item',n);var i=n.value.slice();e?i.push(t):i=i.filter((function(t){return Object(l["getObjectValueByPath"])(t,s)!==r})),n.$emit("input",i)}}),Object.defineProperty(i,"expanded",{get:function(){return n.expanded[r]},set:function(t){if(null==r&&Object(u["consoleWarn"])('"'+s+'" attribute must be defined for item',n),!n.expand)for(var e in n.expanded)n.expanded.hasOwnProperty(e)&&n.$set(n.expanded,e,!1);n.$set(n.expanded,r,t)}}),i},genItems:function(){if(!this.itemsLength&&!this.items.length){var t=this.$slots["no-data"]||this.$vuetify.t(this.noDataText);return[this.genEmptyItems(t)]}if(!this.filteredItems.length){var e=this.$slots["no-results"]||this.$vuetify.t(this.noResultsText);return[this.genEmptyItems(e)]}return this.genFilteredItems()},genPrevIcon:function(){var t=this;return this.$createElement(i["default"],{props:{disabled:1===this.computedPagination.page,icon:!0,flat:!0},on:{click:function(){var e=t.computedPagination.page;t.updatePagination({page:e-1})}},attrs:{"aria-label":this.$vuetify.t("$vuetify.dataIterator.prevPage")}},[this.$createElement(s["default"],this.$vuetify.rtl?this.nextIcon:this.prevIcon)])},genNextIcon:function(){var t=this,e=this.computedPagination,n=e.rowsPerPage<0||e.page*e.rowsPerPage>=this.itemsLength||this.pageStop<0;return this.$createElement(i["default"],{props:{disabled:n,icon:!0,flat:!0},on:{click:function(){var e=t.computedPagination.page;t.updatePagination({page:e+1})}},attrs:{"aria-label":this.$vuetify.t("$vuetify.dataIterator.nextPage")}},[this.$createElement(s["default"],this.$vuetify.rtl?this.prevIcon:this.nextIcon)])},genSelect:function(){var t=this;return this.$createElement("div",{class:this.actionsSelectClasses},[this.$vuetify.t(this.rowsPerPageText),this.$createElement(r["default"],{attrs:{"aria-label":this.$vuetify.t(this.rowsPerPageText)},props:{items:this.computedRowsPerPageItems,value:this.computedPagination.rowsPerPage,hideDetails:!0,menuProps:{auto:!0,dark:this.dark,light:this.light,minWidth:"75px"}},on:{input:function(e){t.updatePagination({page:1,rowsPerPage:e})}}})])},genPagination:function(){var t,e=this,n="–";if(this.itemsLength){var i=this.itemsLength<this.pageStop||this.pageStop<0?this.itemsLength:this.pageStop;n=this.$scopedSlots.pageText?this.$scopedSlots.pageText({pageStart:this.pageStart+1,pageStop:i,itemsLength:this.itemsLength}):(t=this.$vuetify).t.apply(t,d(["$vuetify.dataIterator.pageText"],[this.pageStart+1,i,this.itemsLength].map((function(t){return Number(t).toLocaleString(e.$vuetify.lang.current)}))))}return this.$createElement("div",{class:this.actionsPaginationClasses},[n])},genActions:function(){var t=this.$createElement("div",{class:this.actionsRangeControlsClasses},[this.genPagination(),this.genPrevIcon(),this.genNextIcon()]);return[this.$createElement("div",{class:this.actionsClasses},[this.$slots["actions-prepend"]?this.$createElement("div",{},this.$slots["actions-prepend"]):null,this.rowsPerPageItems.length>1?this.genSelect():null,t,this.$slots["actions-append"]?this.$createElement("div",{},this.$slots["actions-append"]):null])]}}}},"./src/mixins/delayable.ts":
- /*!*********************************!*\
- !*** ./src/mixins/delayable.ts ***!
- \*********************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);var i=n(/*! vue */"vue"),s=n.n(i);e["default"]=s.a.extend().extend({name:"delayable",props:{openDelay:{type:[Number,String],default:0},closeDelay:{type:[Number,String],default:0}},data:function(){return{openTimeout:void 0,closeTimeout:void 0}},methods:{clearDelay:function(){clearTimeout(this.openTimeout),clearTimeout(this.closeTimeout)},runDelay:function(t,e){var n=this;this.clearDelay();var i=parseInt(this[t+"Delay"],10);this[t+"Timeout"]=setTimeout(e||function(){n.isActive={open:!0,close:!1}[t]},i)}}})},"./src/mixins/dependent.ts":
- /*!*********************************!*\
- !*** ./src/mixins/dependent.ts ***!
- \*********************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ../util/mixins */"./src/util/mixins.ts"),s=function(t,e){var n="function"===typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,s,r=n.call(t),o=[];try{while((void 0===e||e-- >0)&&!(i=r.next()).done)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r["return"])&&n.call(r)}finally{if(s)throw s.error}}return o},r=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(s(arguments[e]));return t};function o(t){for(var e=[],n=0;n<t.length;n++){var i=t[n];i.isActive&&i.isDependent?e.push(i):e.push.apply(e,r(o(i.$children)))}return e}e["default"]=Object(i["default"])().extend({name:"dependent",data:function(){return{closeDependents:!0,isActive:!1,isDependent:!0}},watch:{isActive:function(t){if(!t)for(var e=this.getOpenDependents(),n=0;n<e.length;n++)e[n].isActive=!1}},methods:{getOpenDependents:function(){return this.closeDependents?o(this.$children):[]},getOpenDependentElements:function(){for(var t=[],e=this.getOpenDependents(),n=0;n<e.length;n++)t.push.apply(t,r(e[n].getClickableDependentElements()));return t},getClickableDependentElements:function(){var t=[this.$el];return this.$refs.content&&t.push(this.$refs.content),this.overlay&&t.push(this.overlay),t.push.apply(t,r(this.getOpenDependentElements())),t}}})},"./src/mixins/detachable.js":
- /*!**********************************!*\
- !*** ./src/mixins/detachable.js ***!
- \**********************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ./bootable */"./src/mixins/bootable.ts"),s=n(/*! ../util/console */"./src/util/console.ts"),r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};function o(t){var e="undefined"===typeof t?"undefined":r(t);return"boolean"===e||"string"===e||t.nodeType===Node.ELEMENT_NODE}e["default"]={name:"detachable",mixins:[i["default"]],props:{attach:{type:null,default:!1,validator:o},contentClass:{default:""}},data:function(){return{hasDetached:!1}},watch:{attach:function(){this.hasDetached=!1,this.initDetach()},hasContent:"initDetach"},beforeMount:function(){var t=this;this.$nextTick((function(){if(t.activatorNode){var e=Array.isArray(t.activatorNode)?t.activatorNode:[t.activatorNode];e.forEach((function(e){e.elm&&t.$el.parentNode.insertBefore(e.elm,t.$el)}))}}))},mounted:function(){!this.lazy&&this.initDetach()},deactivated:function(){this.isActive=!1},beforeDestroy:function(){try{if(this.$refs.content&&this.$refs.content.parentNode.removeChild(this.$refs.content),this.activatorNode){var t=Array.isArray(this.activatorNode)?this.activatorNode:[this.activatorNode];t.forEach((function(t){t.elm&&t.elm.parentNode.removeChild(t.elm)}))}}catch(e){console.log(e)}},methods:{getScopeIdAttrs:function(){var t,e=this.$vnode&&this.$vnode.context.$options._scopeId;return e&&(t={},t[e]="",t)},initDetach:function(){var t;this._isDestroyed||!this.$refs.content||this.hasDetached||""===this.attach||!0===this.attach||"attach"===this.attach||(t=!1===this.attach?document.querySelector("[data-app]"):"string"===typeof this.attach?document.querySelector(this.attach):this.attach,t?(t.insertBefore(this.$refs.content,t.firstChild),this.hasDetached=!0):Object(s["consoleWarn"])("Unable to locate target "+(this.attach||"[data-app]"),this))}}}},"./src/mixins/elevatable.ts":
- /*!**********************************!*\
- !*** ./src/mixins/elevatable.ts ***!
- \**********************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);var i=n(/*! vue */"vue"),s=n.n(i);e["default"]=s.a.extend({name:"elevatable",props:{elevation:[Number,String]},computed:{computedElevation:function(){return this.elevation},elevationClasses:function(){var t;return this.computedElevation||0===this.computedElevation?(t={},t["elevation-"+this.computedElevation]=!0,t):{}}}})},"./src/mixins/filterable.ts":
- /*!**********************************!*\
- !*** ./src/mixins/filterable.ts ***!
- \**********************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);var i=n(/*! vue */"vue"),s=n.n(i);e["default"]=s.a.extend({name:"filterable",props:{noDataText:{type:String,default:"$vuetify.noDataText"}}})},"./src/mixins/groupable.ts":
- /*!*********************************!*\
- !*** ./src/mixins/groupable.ts ***!
- \*********************************/
- /*! exports provided: factory, default */function(t,e,n){"use strict";n.r(e),n.d(e,"factory",(function(){return s}));var i=n(/*! ./registrable */"./src/mixins/registrable.ts");function s(t,e,n){return Object(i["inject"])(t,e,n).extend({name:"groupable",props:{activeClass:{type:String,default:function(){if(this[t])return this[t].activeClass}},disabled:Boolean},data:function(){return{isActive:!1}},computed:{groupClasses:function(){var t;return this.activeClass?(t={},t[this.activeClass]=this.isActive,t):{}}},created:function(){this[t]&&this[t].register(this)},beforeDestroy:function(){this[t]&&this[t].unregister(this)},methods:{toggle:function(){this.$emit("change")}}})}var r=s("itemGroup");e["default"]=r},"./src/mixins/loadable.ts":
- /*!********************************!*\
- !*** ./src/mixins/loadable.ts ***!
- \********************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);var i=n(/*! vue */"vue"),s=n.n(i),r=n(/*! ../components/VProgressLinear */"./src/components/VProgressLinear/index.ts");e["default"]=s.a.extend().extend({name:"loadable",props:{loading:{type:[Boolean,String],default:!1}},methods:{genProgress:function(){return!1===this.loading?null:this.$slots.progress||this.$createElement(r["default"],{props:{color:!0===this.loading||""===this.loading?this.color||"primary":this.loading,height:2,indeterminate:!0}})}}})},"./src/mixins/maskable.js":
- /*!********************************!*\
- !*** ./src/mixins/maskable.js ***!
- \********************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ../util/mask */"./src/util/mask.ts");e["default"]={name:"maskable",props:{dontFillMaskBlanks:Boolean,mask:{type:[Object,String],default:null},returnMaskedValue:Boolean,value:{required:!1}},data:function(t){return{selection:0,lazySelection:0,lazyValue:t.value,preDefined:{"credit-card":"#### - #### - #### - ####",date:"##/##/####","date-with-time":"##/##/#### ##:##",phone:"(###) ### - ####",social:"###-##-####",time:"##:##","time-with-seconds":"##:##:##"}}},computed:{masked:function(){var t=this.preDefined[this.mask],e=t||this.mask||"";return e.split("")}},watch:{mask:function(){var t=this;if(this.$refs.input){for(var e=this.$refs.input.value,n=this.maskText(Object(i["unmaskText"])(this.lazyValue)),s=0,r=this.selection,o=0;o<r;o++)Object(i["isMaskDelimiter"])(e[o])||s++;if(r=0,n)for(o=0;o<n.length;o++)if(Object(i["isMaskDelimiter"])(n[o])||s--,r++,s<=0)break;this.$nextTick((function(){t.$refs.input.value=n,t.setCaretPosition(r)}))}}},beforeMount:function(){if(this.mask&&null!=this.value&&this.returnMaskedValue){var t=this.maskText(this.value);t!==this.value&&this.$emit("input",t)}},methods:{setCaretPosition:function(t){var e=this;this.selection=t,window.setTimeout((function(){e.$refs.input&&e.$refs.input.setSelectionRange(e.selection,e.selection)}),0)},updateRange:function(){if(this.$refs.input){var t=this.maskText(this.lazyValue),e=0;if(this.$refs.input.value=t,t)for(var n=0;n<t.length;n++){if(this.lazySelection<=0)break;Object(i["isMaskDelimiter"])(t[n])||this.lazySelection--,e++}this.setCaretPosition(e),this.$emit("input",this.returnMaskedValue?this.$refs.input.value:this.lazyValue)}},maskText:function(t){return this.mask?Object(i["maskText"])(t,this.masked,this.dontFillMaskBlanks):t},unmaskText:function(t){return this.mask&&!this.returnMaskedValue?Object(i["unmaskText"])(t):t},setSelectionRange:function(){this.$nextTick(this.updateRange)},resetSelections:function(t){if(t.selectionEnd){this.selection=t.selectionEnd,this.lazySelection=0;for(var e=0;e<this.selection;e++)Object(i["isMaskDelimiter"])(t.value[e])||this.lazySelection++}}}}},"./src/mixins/measurable.ts":
- /*!**********************************!*\
- !*** ./src/mixins/measurable.ts ***!
- \**********************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ../util/helpers */"./src/util/helpers.ts"),s=n(/*! vue */"vue"),r=n.n(s);e["default"]=r.a.extend({name:"measurable",props:{height:[Number,String],maxHeight:[Number,String],maxWidth:[Number,String],minHeight:[Number,String],minWidth:[Number,String],width:[Number,String]},computed:{measurableStyles:function(){var t={},e=Object(i["convertToUnit"])(this.height),n=Object(i["convertToUnit"])(this.minHeight),s=Object(i["convertToUnit"])(this.minWidth),r=Object(i["convertToUnit"])(this.maxHeight),o=Object(i["convertToUnit"])(this.maxWidth),a=Object(i["convertToUnit"])(this.width);return e&&(t.height=e),n&&(t.minHeight=n),s&&(t.minWidth=s),r&&(t.maxHeight=r),o&&(t.maxWidth=o),a&&(t.width=a),t}}})},"./src/mixins/menuable.js":
- /*!********************************!*\
- !*** ./src/mixins/menuable.js ***!
- \********************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);var i=n(/*! vue */"vue"),s=n.n(i),r=n(/*! ./positionable */"./src/mixins/positionable.ts"),o=n(/*! ./stackable */"./src/mixins/stackable.ts"),a="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c={activator:{top:0,left:0,bottom:0,right:0,width:0,height:0,offsetTop:0,scrollHeight:0},content:{top:0,left:0,bottom:0,right:0,width:0,height:0,offsetTop:0,scrollHeight:0},hasWindow:!1};e["default"]=s.a.extend({name:"menuable",mixins:[r["default"],o["default"]],props:{activator:{default:null,validator:function(t){return["string","object"].includes("undefined"===typeof t?"undefined":a(t))}},allowOverflow:Boolean,inputActivator:Boolean,light:Boolean,dark:Boolean,maxWidth:{type:[Number,String],default:"auto"},minWidth:[Number,String],nudgeBottom:{type:[Number,String],default:0},nudgeLeft:{type:[Number,String],default:0},nudgeRight:{type:[Number,String],default:0},nudgeTop:{type:[Number,String],default:0},nudgeWidth:{type:[Number,String],default:0},offsetOverflow:Boolean,positionX:{type:Number,default:null},positionY:{type:Number,default:null},zIndex:{type:[Number,String],default:null}},data:function(){return{absoluteX:0,absoluteY:0,activatorFixed:!1,dimensions:Object.assign({},c),isContentActive:!1,pageWidth:0,pageYOffset:0,stackClass:"v-menu__content--active",stackMinZIndex:6}},computed:{computedLeft:function(){var t=this.dimensions.activator,e=this.dimensions.content,n=(this.isAttached?t.offsetLeft:t.left)||0,i=Math.max(t.width,e.width),s=0;if(s+=this.left?n-(i-t.width):n,this.offsetX){var r=isNaN(this.maxWidth)?t.width:Math.min(t.width,this.maxWidth);s+=this.left?-r:t.width}return this.nudgeLeft&&(s-=parseInt(this.nudgeLeft)),this.nudgeRight&&(s+=parseInt(this.nudgeRight)),s},computedTop:function(){var t=this.dimensions.activator,e=this.dimensions.content,n=0;return this.top&&(n+=t.height-e.height),this.isAttached?n+=t.offsetTop:n+=t.top+this.pageYOffset,this.offsetY&&(n+=this.top?-t.height:t.height),this.nudgeTop&&(n-=parseInt(this.nudgeTop)),this.nudgeBottom&&(n+=parseInt(this.nudgeBottom)),n},hasActivator:function(){return!!this.$slots.activator||!!this.$scopedSlots.activator||this.activator||this.inputActivator},isAttached:function(){return!1!==this.attach}},watch:{disabled:function(t){t&&this.callDeactivate()},isActive:function(t){this.disabled||(t?this.callActivate():this.callDeactivate())},positionX:"updateDimensions",positionY:"updateDimensions"},beforeMount:function(){this.checkForWindow()},methods:{absolutePosition:function(){return{offsetTop:0,offsetLeft:0,scrollHeight:0,top:this.positionY||this.absoluteY,bottom:this.positionY||this.absoluteY,left:this.positionX||this.absoluteX,right:this.positionX||this.absoluteX,height:0,width:0}},activate:function(){},calcLeft:function(t){return(this.isAttached?this.computedLeft:this.calcXOverflow(this.computedLeft,t))+"px"},calcTop:function(){return(this.isAttached?this.computedTop:this.calcYOverflow(this.computedTop))+"px"},calcXOverflow:function(t,e){var n=t+e-this.pageWidth+12;return t=(!this.left||this.right)&&n>0?Math.max(t-n,0):Math.max(t,12),t+this.getOffsetLeft()},calcYOverflow:function(t){var e=this.getInnerHeight(),n=this.pageYOffset+e,i=this.dimensions.activator,s=this.dimensions.content.height,r=t+s,o=n<r;return o&&this.offsetOverflow&&i.top>s?t=this.pageYOffset+(i.top-s):o&&!this.allowOverflow?t=n-s-12:t<this.pageYOffset&&!this.allowOverflow&&(t=this.pageYOffset+12),t<12?12:t},callActivate:function(){this.hasWindow&&this.activate()},callDeactivate:function(){this.isContentActive=!1,this.deactivate()},checkForWindow:function(){this.hasWindow||(this.hasWindow="undefined"!==typeof window)},checkForPageYOffset:function(){this.hasWindow&&(this.pageYOffset=this.activatorFixed?0:this.getOffsetTop())},checkActivatorFixed:function(){if(!1===this.attach){var t=this.getActivator();while(t){if("fixed"===window.getComputedStyle(t).position)return void(this.activatorFixed=!0);t=t.offsetParent}this.activatorFixed=!1}},deactivate:function(){},getActivator:function(t){if(this.inputActivator)return this.$el.querySelector(".v-input__slot");if(this.activator)return"string"===typeof this.activator?document.querySelector(this.activator):this.activator;if(this.$refs.activator)return this.$refs.activator.children.length>0?this.$refs.activator.children[0]:this.$refs.activator;if(t)return this.activatedBy=t.currentTarget||t.target,this.activatedBy;if(this.activatedBy)return this.activatedBy;if(this.activatorNode){var e=Array.isArray(this.activatorNode)?this.activatorNode[0]:this.activatorNode,n=e&&e.elm;if(n)return n}},getInnerHeight:function(){return this.hasWindow?window.innerHeight||document.documentElement.clientHeight:0},getOffsetLeft:function(){return this.hasWindow?window.pageXOffset||document.documentElement.scrollLeft:0},getOffsetTop:function(){return this.hasWindow?window.pageYOffset||document.documentElement.scrollTop:0},getRoundedBoundedClientRect:function(t){var e=t.getBoundingClientRect();return{top:Math.round(e.top),left:Math.round(e.left),bottom:Math.round(e.bottom),right:Math.round(e.right),width:Math.round(e.width),height:Math.round(e.height)}},measure:function(t){if(!t||!this.hasWindow)return null;var e=this.getRoundedBoundedClientRect(t);if(this.isAttached){var n=window.getComputedStyle(t);e.left=parseInt(n.marginLeft),e.top=parseInt(n.marginTop)}return e},sneakPeek:function(t){var e=this;requestAnimationFrame((function(){var n=e.$refs.content;if(!n||e.isShown(n))return t();n.style.display="inline-block",t(),n.style.display="none"}))},startTransition:function(){var t=this;return new Promise((function(e){return requestAnimationFrame((function(){t.isContentActive=t.hasJustFocused=t.isActive,e()}))}))},isShown:function(t){return"none"!==t.style.display},updateDimensions:function(){var t=this;this.checkForWindow(),this.checkActivatorFixed(),this.checkForPageYOffset(),this.pageWidth=document.documentElement.clientWidth;var e={};if(!this.hasActivator||this.absolute)e.activator=this.absolutePosition();else{var n=this.getActivator();e.activator=this.measure(n),e.activator.offsetLeft=n.offsetLeft,this.isAttached?e.activator.offsetTop=n.offsetTop:e.activator.offsetTop=0}this.sneakPeek((function(){e.content=t.measure(t.$refs.content),t.dimensions=e}))}}})},"./src/mixins/overlayable.ts":
- /*!***********************************!*\
- !*** ./src/mixins/overlayable.ts ***!
- \***********************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);n(/*! ../stylus/components/_overlay.styl */"./src/stylus/components/_overlay.styl");var i=n(/*! ../util/helpers */"./src/util/helpers.ts"),s=n(/*! vue */"vue"),r=n.n(s);e["default"]=r.a.extend().extend({name:"overlayable",props:{hideOverlay:Boolean},data:function(){return{overlay:null,overlayOffset:0,overlayTimeout:void 0,overlayTransitionDuration:650}},watch:{hideOverlay:function(t){t?this.removeOverlay():this.genOverlay()}},beforeDestroy:function(){this.removeOverlay()},methods:{genOverlay:function(){var t=this;if(!this.isActive||this.hideOverlay||this.isActive&&this.overlayTimeout||this.overlay)return clearTimeout(this.overlayTimeout),this.overlay&&this.overlay.classList.add("v-overlay--active");this.overlay=document.createElement("div"),this.overlay.className="v-overlay",this.absolute&&(this.overlay.className+=" v-overlay--absolute"),this.hideScroll();var e=this.absolute?this.$el.parentNode:document.querySelector("[data-app]");return e&&e.insertBefore(this.overlay,e.firstChild),this.overlay.clientHeight,requestAnimationFrame((function(){t.overlay&&(t.overlay.className+=" v-overlay--active",void 0!==t.activeZIndex&&(t.overlay.style.zIndex=String(t.activeZIndex-1)))})),!0},removeOverlay:function(t){var e=this;if(void 0===t&&(t=!0),!this.overlay)return t&&this.showScroll();this.overlay.classList.remove("v-overlay--active"),this.overlayTimeout=window.setTimeout((function(){try{e.overlay&&e.overlay.parentNode&&e.overlay.parentNode.removeChild(e.overlay),e.overlay=null,t&&e.showScroll()}catch(n){console.log(n)}clearTimeout(e.overlayTimeout),e.overlayTimeout=void 0}),this.overlayTransitionDuration)},scrollListener:function(t){if("keydown"===t.type){if(["INPUT","TEXTAREA","SELECT"].includes(t.target.tagName)||t.target.isContentEditable)return;var e=[i["keyCodes"].up,i["keyCodes"].pageup],n=[i["keyCodes"].down,i["keyCodes"].pagedown];if(e.includes(t.keyCode))t.deltaY=-1;else{if(!n.includes(t.keyCode))return;t.deltaY=1}}(t.target===this.overlay||"keydown"!==t.type&&t.target===document.body||this.checkPath(t))&&t.preventDefault()},hasScrollbar:function(t){if(!t||t.nodeType!==Node.ELEMENT_NODE)return!1;var e=window.getComputedStyle(t);return["auto","scroll"].includes(e.overflowY)&&t.scrollHeight>t.clientHeight},shouldScroll:function(t,e){return 0===t.scrollTop&&e<0||t.scrollTop+t.clientHeight===t.scrollHeight&&e>0},isInside:function(t,e){return t===e||null!==t&&t!==document.body&&this.isInside(t.parentNode,e)},checkPath:function(t){var e=t.path||this.composedPath(t),n=t.deltaY;if("keydown"===t.type&&e[0]===document.body){var i=this.$refs.dialog,s=window.getSelection().anchorNode;return!(i&&this.hasScrollbar(i)&&this.isInside(s,i))||this.shouldScroll(i,n)}for(var r=0;r<e.length;r++){var o=e[r];if(o===document)return!0;if(o===document.documentElement)return!0;if(o===this.$refs.content)return!0;if(this.hasScrollbar(o))return this.shouldScroll(o,n)}return!0},composedPath:function(t){if(t.composedPath)return t.composedPath();var e=[],n=t.target;while(n){if(e.push(n),"HTML"===n.tagName)return e.push(document),e.push(window),e;n=n.parentElement}return e},hideScroll:function(){this.$vuetify.breakpoint.smAndDown?document.documentElement.classList.add("overflow-y-hidden"):(Object(i["addPassiveEventListener"])(window,"wheel",this.scrollListener,{passive:!1}),window.addEventListener("keydown",this.scrollListener))},showScroll:function(){document.documentElement.classList.remove("overflow-y-hidden"),window.removeEventListener("wheel",this.scrollListener),window.removeEventListener("keydown",this.scrollListener)}}})},"./src/mixins/picker-button.ts":
- /*!*************************************!*\
- !*** ./src/mixins/picker-button.ts ***!
- \*************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ./colorable */"./src/mixins/colorable.ts"),s=n(/*! ../util/mixins */"./src/util/mixins.ts");e["default"]=Object(s["default"])(i["default"]).extend({methods:{genPickerButton:function(t,e,n,i,s){var r=this;void 0===i&&(i=!1),void 0===s&&(s="");var o=this[t]===e,a=function(n){n.stopPropagation(),r.$emit("update:"+t,e)};return this.$createElement("div",{staticClass:("v-picker__title__btn "+s).trim(),class:{"v-picker__title__btn--active":o,"v-picker__title__btn--readonly":i},on:o||i?void 0:{click:a}},Array.isArray(n)?n:[n])}}})},"./src/mixins/picker.ts":
- /*!******************************!*\
- !*** ./src/mixins/picker.ts ***!
- \******************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ../components/VPicker */"./src/components/VPicker/index.ts"),s=n(/*! ./colorable */"./src/mixins/colorable.ts"),r=n(/*! ./themeable */"./src/mixins/themeable.ts"),o=n(/*! ../util/mixins */"./src/util/mixins.ts");e["default"]=Object(o["default"])(s["default"],r["default"]).extend({name:"picker",props:{fullWidth:Boolean,headerColor:String,landscape:Boolean,noTitle:Boolean,width:{type:[Number,String],default:290}},methods:{genPickerTitle:function(){return null},genPickerBody:function(){return null},genPickerActionsSlot:function(){return this.$scopedSlots.default?this.$scopedSlots.default({save:this.save,cancel:this.cancel}):this.$slots.default},genPicker:function(t){var e=[];if(!this.noTitle){var n=this.genPickerTitle();n&&e.push(n)}var s=this.genPickerBody();return s&&e.push(s),e.push(this.$createElement("template",{slot:"actions"},[this.genPickerActionsSlot()])),this.$createElement(i["default"],{staticClass:t,props:{color:this.headerColor||this.color,dark:this.dark,fullWidth:this.fullWidth,landscape:this.landscape,light:this.light,width:this.width}},e)}}})},"./src/mixins/positionable.ts":
- /*!************************************!*\
- !*** ./src/mixins/positionable.ts ***!
- \************************************/
- /*! exports provided: factory, default */function(t,e,n){"use strict";n.r(e),n.d(e,"factory",(function(){return a}));var i=n(/*! vue */"vue"),s=n.n(i),r=n(/*! ../util/helpers */"./src/util/helpers.ts"),o={absolute:Boolean,bottom:Boolean,fixed:Boolean,left:Boolean,right:Boolean,top:Boolean};function a(t){return void 0===t&&(t=[]),s.a.extend({name:"positionable",props:t.length?Object(r["filterObjectOnKeys"])(o,t):o})}e["default"]=a()},"./src/mixins/proxyable.ts":
- /*!*********************************!*\
- !*** ./src/mixins/proxyable.ts ***!
- \*********************************/
- /*! exports provided: factory, default */function(t,e,n){"use strict";n.r(e),n.d(e,"factory",(function(){return r}));var i=n(/*! vue */"vue"),s=n.n(i);function r(t,e){var n,i;return void 0===t&&(t="value"),void 0===e&&(e="change"),s.a.extend({name:"proxyable",model:{prop:t,event:e},props:(n={},n[t]={required:!1},n),data:function(){return{internalLazyValue:this[t]}},computed:{internalValue:{get:function(){return this.internalLazyValue},set:function(t){t!==this.internalLazyValue&&(this.internalLazyValue=t,this.$emit(e,t))}}},watch:(i={},i[t]=function(t){this.internalLazyValue=t},i)})}var o=r();e["default"]=o},"./src/mixins/registrable.ts":
- /*!***********************************!*\
- !*** ./src/mixins/registrable.ts ***!
- \***********************************/
- /*! exports provided: inject, provide */function(t,e,n){"use strict";n.r(e),n.d(e,"inject",(function(){return a})),n.d(e,"provide",(function(){return c}));var i=n(/*! vue */"vue"),s=n.n(i),r=n(/*! ../util/console */"./src/util/console.ts");function o(t,e){return function(){return Object(r["consoleWarn"])("The "+t+" component must be used inside a "+e)}}function a(t,e,n){var i,r=e&&n?{register:o(e,n),unregister:o(e,n)}:null;return s.a.extend({name:"registrable-inject",inject:(i={},i[t]={default:r},i)})}function c(t){return s.a.extend({name:"registrable-provide",methods:{register:null,unregister:null},provide:function(){var e;return e={},e[t]={register:this.register,unregister:this.unregister},e}})}},"./src/mixins/returnable.ts":
- /*!**********************************!*\
- !*** ./src/mixins/returnable.ts ***!
- \**********************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);var i=n(/*! vue */"vue"),s=n.n(i);e["default"]=s.a.extend({name:"returnable",props:{returnValue:null},data:function(){return{isActive:!1,originalValue:null}},watch:{isActive:function(t){t?this.originalValue=this.returnValue:this.$emit("update:returnValue",this.originalValue)}},methods:{save:function(t){var e=this;this.originalValue=t,setTimeout((function(){e.isActive=!1}))}}})},"./src/mixins/rippleable.ts":
- /*!**********************************!*\
- !*** ./src/mixins/rippleable.ts ***!
- \**********************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ../directives/ripple */"./src/directives/ripple.ts"),s=n(/*! vue */"vue"),r=n.n(s);e["default"]=r.a.extend({name:"rippleable",directives:{Ripple:i["default"]},props:{ripple:{type:[Boolean,Object],default:!0}},methods:{genRipple:function(t){return void 0===t&&(t={}),this.ripple?(t.staticClass="v-input--selection-controls__ripple",t.directives=t.directives||[],t.directives.push({name:"ripple",value:{center:!0}}),t.on=Object.assign({click:this.onChange},this.$listeners),this.$createElement("div",t)):null},onChange:function(){}}})},"./src/mixins/routable.ts":
- /*!********************************!*\
- !*** ./src/mixins/routable.ts ***!
- \********************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);var i=n(/*! vue */"vue"),s=n.n(i),r=n(/*! ../directives/ripple */"./src/directives/ripple.ts"),o=function(){return o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var s in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t},o.apply(this,arguments)};e["default"]=s.a.extend({name:"routable",directives:{Ripple:r["default"]},props:{activeClass:String,append:Boolean,disabled:Boolean,exact:{type:Boolean,default:void 0},exactActiveClass:String,href:[String,Object],to:[String,Object],nuxt:Boolean,replace:Boolean,ripple:[Boolean,Object],tag:String,target:String},computed:{computedRipple:function(){return!(!this.ripple||this.disabled)&&this.ripple}},methods:{click:function(t){this.$emit("click",t)},generateRouteLink:function(t){var e,n,i=this.exact,s=(e={attrs:{disabled:this.disabled},class:t,props:{},directives:[{name:"ripple",value:this.computedRipple}]},e[this.to?"nativeOn":"on"]=o({},this.$listeners,{click:this.click}),e);if("undefined"===typeof this.exact&&(i="/"===this.to||this.to===Object(this.to)&&"/"===this.to.path),this.to){var r=this.activeClass,a=this.exactActiveClass||r;this.proxyClass&&(r+=" "+this.proxyClass,a+=" "+this.proxyClass),n=this.nuxt?"nuxt-link":"router-link",Object.assign(s.props,{to:this.to,exact:i,activeClass:r,exactActiveClass:a,append:this.append,replace:this.replace})}else n=(this.href?"a":this.tag)||"a","a"===n&&this.href&&(s.attrs.href=this.href);return this.target&&(s.attrs.target=this.target),{tag:n,data:s}}}})},"./src/mixins/selectable.js":
- /*!**********************************!*\
- !*** ./src/mixins/selectable.js ***!
- \**********************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ../components/VInput */"./src/components/VInput/index.ts"),s=n(/*! ./rippleable */"./src/mixins/rippleable.ts"),r=n(/*! ./comparable */"./src/mixins/comparable.ts");e["default"]=i["default"].extend({name:"selectable",mixins:[s["default"],r["default"]],model:{prop:"inputValue",event:"change"},props:{color:{type:String,default:"accent"},id:String,inputValue:null,falseValue:null,trueValue:null,multiple:{type:Boolean,default:null},label:String},data:function(t){return{lazyValue:t.inputValue}},computed:{computedColor:function(){return this.isActive?this.color:this.validationState},isMultiple:function(){return!0===this.multiple||null===this.multiple&&Array.isArray(this.internalValue)},isActive:function(){var t=this,e=this.value,n=this.internalValue;return this.isMultiple?!!Array.isArray(n)&&n.some((function(n){return t.valueComparator(n,e)})):void 0===this.trueValue||void 0===this.falseValue?e?this.valueComparator(e,n):Boolean(n):this.valueComparator(n,this.trueValue)},isDirty:function(){return this.isActive}},watch:{inputValue:function(t){this.lazyValue=t}},methods:{genLabel:function(){if(!this.hasLabel)return null;var t=i["default"].options.methods.genLabel.call(this);return t.data.on={click:this.onChange},t},genInput:function(t,e){return this.$createElement("input",{attrs:Object.assign({"aria-label":this.label,"aria-checked":this.isActive.toString(),disabled:this.isDisabled,id:this.id,role:t,type:t},e),domProps:{value:this.value,checked:this.isActive},on:{blur:this.onBlur,change:this.onChange,focus:this.onFocus,keydown:this.onKeydown},ref:"input"})},onBlur:function(){this.isFocused=!1},onChange:function(){var t=this;if(!this.isDisabled){var e=this.value,n=this.internalValue;if(this.isMultiple){Array.isArray(n)||(n=[]);var i=n.length;n=n.filter((function(n){return!t.valueComparator(n,e)})),n.length===i&&n.push(e)}else n=void 0!==this.trueValue&&void 0!==this.falseValue?this.valueComparator(n,this.trueValue)?this.falseValue:this.trueValue:e?this.valueComparator(n,e)?null:e:!n;this.validate(!0,n),this.internalValue=n}},onFocus:function(){this.isFocused=!0},onKeydown:function(t){}}})},"./src/mixins/sizeable.ts":
- /*!********************************!*\
- !*** ./src/mixins/sizeable.ts ***!
- \********************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);var i=n(/*! vue */"vue"),s=n.n(i);e["default"]=s.a.extend({name:"sizeable",props:{large:Boolean,medium:Boolean,size:{type:[Number,String]},small:Boolean,xLarge:Boolean}})},"./src/mixins/ssr-bootable.ts":
- /*!************************************!*\
- !*** ./src/mixins/ssr-bootable.ts ***!
- \************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);var i=n(/*! vue */"vue"),s=n.n(i);e["default"]=s.a.extend({name:"ssr-bootable",data:function(){return{isBooted:!1}},mounted:function(){var t=this;window.requestAnimationFrame((function(){t.$el.setAttribute("data-booted","true"),t.isBooted=!0}))}})},"./src/mixins/stackable.ts":
- /*!*********************************!*\
- !*** ./src/mixins/stackable.ts ***!
- \*********************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);var i=n(/*! vue */"vue"),s=n.n(i),r=n(/*! ../util/helpers */"./src/util/helpers.ts"),o=function(t,e){var n="function"===typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,s,r=n.call(t),o=[];try{while((void 0===e||e-- >0)&&!(i=r.next()).done)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r["return"])&&n.call(r)}finally{if(s)throw s.error}}return o},a=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(o(arguments[e]));return t};e["default"]=s.a.extend().extend({name:"stackable",data:function(){return{stackClass:"unpecified",stackElement:null,stackExclude:null,stackMinZIndex:0,isActive:!1}},computed:{activeZIndex:function(){if("undefined"===typeof window)return 0;var t=this.stackElement||this.$refs.content,e=this.isActive?this.getMaxZIndex(this.stackExclude||[t])+2:Object(r["getZIndex"])(t);return null==e?e:parseInt(e)}},methods:{getMaxZIndex:function(t){void 0===t&&(t=[]);for(var e=this.$el,n=[this.stackMinZIndex,Object(r["getZIndex"])(e)],i=a(document.getElementsByClassName(this.stackClass)),s=0;s<i.length;s++)t.includes(i[s])||n.push(Object(r["getZIndex"])(i[s]));return Math.max.apply(Math,a(n))}}})},"./src/mixins/themeable.ts":
- /*!*********************************!*\
- !*** ./src/mixins/themeable.ts ***!
- \*********************************/
- /*! exports provided: functionalThemeClasses, default */function(t,e,n){"use strict";n.r(e),n.d(e,"functionalThemeClasses",(function(){return o}));var i=n(/*! vue */"vue"),s=n.n(i),r=function(){return r=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var s in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t},r.apply(this,arguments)};function o(t){var e=r({},t.props,t.injections),n=a.options.computed.isDark.call(e);return a.options.computed.themeClasses.call({isDark:n})}var a=s.a.extend().extend({name:"themeable",provide:function(){return{theme:this.themeableProvide}},inject:{theme:{default:{isDark:!1}}},props:{dark:{type:Boolean,default:null},light:{type:Boolean,default:null}},data:function(){return{themeableProvide:{isDark:!1}}},computed:{isDark:function(){return!0===this.dark||!0!==this.light&&this.theme.isDark},themeClasses:function(){return{"theme--dark":this.isDark,"theme--light":!this.isDark}},rootIsDark:function(){return!0===this.dark||!0!==this.light&&this.$vuetify.dark},rootThemeClasses:function(){return{"theme--dark":this.rootIsDark,"theme--light":!this.rootIsDark}}},watch:{isDark:{handler:function(t,e){t!==e&&(this.themeableProvide.isDark=this.isDark)},immediate:!0}}});e["default"]=a},"./src/mixins/toggleable.ts":
- /*!**********************************!*\
- !*** ./src/mixins/toggleable.ts ***!
- \**********************************/
- /*! exports provided: factory, default */function(t,e,n){"use strict";n.r(e),n.d(e,"factory",(function(){return r}));var i=n(/*! vue */"vue"),s=n.n(i);function r(t,e){var n,i;return void 0===t&&(t="value"),void 0===e&&(e="input"),s.a.extend({name:"toggleable",model:{prop:t,event:e},props:(n={},n[t]={required:!1},n),data:function(){return{isActive:!!this[t]}},watch:(i={},i[t]=function(t){this.isActive=!!t},i.isActive=function(n){!!n!==this[t]&&this.$emit(e,n)},i)})}var o=r();e["default"]=o},"./src/mixins/transitionable.ts":
- /*!**************************************!*\
- !*** ./src/mixins/transitionable.ts ***!
- \**************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);var i=n(/*! vue */"vue"),s=n.n(i);e["default"]=s.a.extend({name:"transitionable",props:{mode:String,origin:String,transition:String}})},"./src/mixins/translatable.ts":
- /*!************************************!*\
- !*** ./src/mixins/translatable.ts ***!
- \************************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);var i=n(/*! vue */"vue"),s=n.n(i);e["default"]=s.a.extend({name:"translatable",props:{height:Number},data:function(){return{elOffsetTop:0,parallax:0,parallaxDist:0,percentScrolled:0,scrollTop:0,windowHeight:0,windowBottom:0}},computed:{imgHeight:function(){return this.objHeight()}},beforeDestroy:function(){window.removeEventListener("scroll",this.translate,!1),window.removeEventListener("resize",this.translate,!1)},methods:{calcDimensions:function(){var t=this.$el.getBoundingClientRect();this.scrollTop=window.pageYOffset,this.parallaxDist=this.imgHeight-this.height,this.elOffsetTop=t.top+this.scrollTop,this.windowHeight=window.innerHeight,this.windowBottom=this.scrollTop+this.windowHeight},listeners:function(){window.addEventListener("scroll",this.translate,!1),window.addEventListener("resize",this.translate,!1)},objHeight:function(){throw new Error("Not implemented !")},translate:function(){this.calcDimensions(),this.percentScrolled=(this.windowBottom-this.elOffsetTop)/(parseInt(this.height)+this.windowHeight),this.parallax=Math.round(this.parallaxDist*this.percentScrolled)}}})},"./src/mixins/validatable.ts":
- /*!***********************************!*\
- !*** ./src/mixins/validatable.ts ***!
- \***********************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ./colorable */"./src/mixins/colorable.ts"),s=n(/*! ./registrable */"./src/mixins/registrable.ts"),r=n(/*! ../util/helpers */"./src/util/helpers.ts"),o=n(/*! ../util/console */"./src/util/console.ts"),a=n(/*! ../util/mixins */"./src/util/mixins.ts"),c="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e["default"]=Object(a["default"])(i["default"],Object(s["inject"])("form")).extend({name:"validatable",props:{disabled:Boolean,error:Boolean,errorCount:{type:[Number,String],default:1},errorMessages:{type:[String,Array],default:function(){return[]}},messages:{type:[String,Array],default:function(){return[]}},readonly:Boolean,rules:{type:Array,default:function(){return[]}},success:Boolean,successMessages:{type:[String,Array],default:function(){return[]}},validateOnBlur:Boolean,value:{required:!1}},data:function(){return{errorBucket:[],hasColor:!1,hasFocused:!1,hasInput:!1,isFocused:!1,isResetting:!1,lazyValue:this.value,valid:!1}},computed:{hasError:function(){return this.internalErrorMessages.length>0||this.errorBucket.length>0||this.error},hasSuccess:function(){return this.internalSuccessMessages.length>0||this.success},externalError:function(){return this.internalErrorMessages.length>0||this.error},hasMessages:function(){return this.validationTarget.length>0},hasState:function(){return this.hasSuccess||this.shouldValidate&&this.hasError},internalErrorMessages:function(){return this.genInternalMessages(this.errorMessages)},internalMessages:function(){return this.genInternalMessages(this.messages)},internalSuccessMessages:function(){return this.genInternalMessages(this.successMessages)},internalValue:{get:function(){return this.lazyValue},set:function(t){this.lazyValue=t,this.$emit("input",t)}},shouldValidate:function(){return!!this.externalError||!this.isResetting&&(this.validateOnBlur?this.hasFocused&&!this.isFocused:this.hasInput||this.hasFocused)},validations:function(){return this.validationTarget.slice(0,Number(this.errorCount))},validationState:function(){return this.hasError&&this.shouldValidate?"error":this.hasSuccess?"success":this.hasColor?this.color:void 0},validationTarget:function(){return this.internalErrorMessages.length>0?this.internalErrorMessages:this.successMessages.length>0?this.internalSuccessMessages:this.messages.length>0?this.internalMessages:this.shouldValidate?this.errorBucket:[]}},watch:{rules:{handler:function(t,e){Object(r["deepEqual"])(t,e)||this.validate()},deep:!0},internalValue:function(){this.hasInput=!0,this.validateOnBlur||this.$nextTick(this.validate)},isFocused:function(t){t||this.disabled||this.readonly||(this.hasFocused=!0,this.validateOnBlur&&this.validate())},isResetting:function(){var t=this;setTimeout((function(){t.hasInput=!1,t.hasFocused=!1,t.isResetting=!1,t.validate()}),0)},hasError:function(t){this.shouldValidate&&this.$emit("update:error",t)},value:function(t){this.lazyValue=t}},beforeMount:function(){this.validate()},created:function(){this.form&&this.form.register(this)},beforeDestroy:function(){this.form&&this.form.unregister(this)},methods:{genInternalMessages:function(t){return t?Array.isArray(t)?t:[t]:[]},reset:function(){this.isResetting=!0,this.internalValue=Array.isArray(this.internalValue)?[]:void 0},resetValidation:function(){this.isResetting=!0},validate:function(t,e){void 0===t&&(t=!1);var n=[];e=e||this.internalValue,t&&(this.hasInput=this.hasFocused=!0);for(var i=0;i<this.rules.length;i++){var s=this.rules[i],r="function"===typeof s?s(e):s;"string"===typeof r?n.push(r):"boolean"!==typeof r&&Object(o["consoleError"])("Rules should return a string or boolean, received '"+("undefined"===typeof r?"undefined":c(r))+"' instead",this)}return this.errorBucket=n,this.valid=0===n.length,this.valid}}})},"./src/stylus/app.styl":
- /*!*****************************!*\
- !*** ./src/stylus/app.styl ***!
- \*****************************/
- /*! no static exports found */function(t,e,n){},"./src/stylus/components/_alerts.styl":
- /*!********************************************!*\
- !*** ./src/stylus/components/_alerts.styl ***!
- \********************************************/
- /*! no static exports found */function(t,e,n){},"./src/stylus/components/_app.styl":
- /*!*****************************************!*\
- !*** ./src/stylus/components/_app.styl ***!
- \*****************************************/
- /*! no static exports found */function(t,e,n){},"./src/stylus/components/_autocompletes.styl":
- /*!***************************************************!*\
- !*** ./src/stylus/components/_autocompletes.styl ***!
- \***************************************************/
- /*! no static exports found */function(t,e,n){},"./src/stylus/components/_avatars.styl":
- /*!*********************************************!*\
- !*** ./src/stylus/components/_avatars.styl ***!
- \*********************************************/
- /*! no static exports found */function(t,e,n){},"./src/stylus/components/_badges.styl":
- /*!********************************************!*\
- !*** ./src/stylus/components/_badges.styl ***!
- \********************************************/
- /*! no static exports found */function(t,e,n){},"./src/stylus/components/_bottom-navs.styl":
- /*!*************************************************!*\
- !*** ./src/stylus/components/_bottom-navs.styl ***!
- \*************************************************/
- /*! no static exports found */function(t,e,n){},"./src/stylus/components/_bottom-sheets.styl":
- /*!***************************************************!*\
- !*** ./src/stylus/components/_bottom-sheets.styl ***!
- \***************************************************/
- /*! no static exports found */function(t,e,n){},"./src/stylus/components/_breadcrumbs.styl":
- /*!*************************************************!*\
- !*** ./src/stylus/components/_breadcrumbs.styl ***!
- \*************************************************/
- /*! no static exports found */function(t,e,n){},"./src/stylus/components/_button-toggle.styl":
- /*!***************************************************!*\
- !*** ./src/stylus/components/_button-toggle.styl ***!
- \***************************************************/
- /*! no static exports found */function(t,e,n){},"./src/stylus/components/_buttons.styl":
- /*!*********************************************!*\
- !*** ./src/stylus/components/_buttons.styl ***!
- \*********************************************/
- /*! no static exports found */function(t,e,n){},"./src/stylus/components/_calendar-daily.styl":
- /*!****************************************************!*\
- !*** ./src/stylus/components/_calendar-daily.styl ***!
- \****************************************************/
- /*! no static exports found */function(t,e,n){},"./src/stylus/components/_calendar-weekly.styl":
- /*!*****************************************************!*\
- !*** ./src/stylus/components/_calendar-weekly.styl ***!
- \*****************************************************/
- /*! no static exports found */function(t,e,n){},"./src/stylus/components/_cards.styl":
- /*!*******************************************!*\
- !*** ./src/stylus/components/_cards.styl ***!
- \*******************************************/
- /*! no static exports found */function(t,e,n){},"./src/stylus/components/_carousel.styl":
- /*!**********************************************!*\
- !*** ./src/stylus/components/_carousel.styl ***!
- \**********************************************/
- /*! no static exports found */function(t,e,n){},"./src/stylus/components/_chips.styl":
- /*!*******************************************!*\
- !*** ./src/stylus/components/_chips.styl ***!
- \*******************************************/
- /*! no static exports found */function(t,e,n){},"./src/stylus/components/_content.styl":
- /*!*********************************************!*\
- !*** ./src/stylus/components/_content.styl ***!
- \*********************************************/
- /*! no static exports found */function(t,e,n){},"./src/stylus/components/_counters.styl":
- /*!**********************************************!*\
- !*** ./src/stylus/components/_counters.styl ***!
- \**********************************************/
- /*! no static exports found */function(t,e,n){},"./src/stylus/components/_data-iterator.styl":
- /*!***************************************************!*\
- !*** ./src/stylus/components/_data-iterator.styl ***!
- \***************************************************/
- /*! no static exports found */function(t,e,n){},"./src/stylus/components/_data-table.styl":
- /*!************************************************!*\
- !*** ./src/stylus/components/_data-table.styl ***!
- \************************************************/
- /*! no static exports found */function(t,e,n){},"./src/stylus/components/_date-picker-header.styl":
- /*!********************************************************!*\
- !*** ./src/stylus/components/_date-picker-header.styl ***!
- \********************************************************/
- /*! no static exports found */function(t,e,n){},"./src/stylus/components/_date-picker-table.styl":
- /*!*******************************************************!*\
- !*** ./src/stylus/components/_date-picker-table.styl ***!
- \*******************************************************/
- /*! no static exports found */function(t,e,n){},"./src/stylus/components/_date-picker-title.styl":
- /*!*******************************************************!*\
- !*** ./src/stylus/components/_date-picker-title.styl ***!
- \*******************************************************/
- /*! no static exports found */function(t,e,n){},"./src/stylus/components/_date-picker-years.styl":
- /*!*******************************************************!*\
- !*** ./src/stylus/components/_date-picker-years.styl ***!
- \*******************************************************/
- /*! no static exports found */function(t,e,n){},"./src/stylus/components/_dialogs.styl":
- /*!*********************************************!*\
- !*** ./src/stylus/components/_dialogs.styl ***!
- \*********************************************/
- /*! no static exports found */function(t,e,n){},"./src/stylus/components/_dividers.styl":
- /*!**********************************************!*\
- !*** ./src/stylus/components/_dividers.styl ***!
- \**********************************************/
- /*! no static exports found */function(t,e,n){},"./src/stylus/components/_expansion-panel.styl":
- /*!*****************************************************!*\
- !*** ./src/stylus/components/_expansion-panel.styl ***!
- \*****************************************************/
- /*! no static exports found */function(t,e,n){},"./src/stylus/components/_footer.styl":
- /*!********************************************!*\
- !*** ./src/stylus/components/_footer.styl ***!
- \********************************************/
- /*! no static exports found */function(t,e,n){},"./src/stylus/components/_forms.styl":
- /*!*******************************************!*\
- !*** ./src/stylus/components/_forms.styl ***!
- \*******************************************/
- /*! no static exports found */function(t,e,n){},"./src/stylus/components/_grid.styl":
- /*!******************************************!*\
- !*** ./src/stylus/components/_grid.styl ***!
- \******************************************/
- /*! no static exports found */function(t,e,n){},"./src/stylus/components/_icons.styl":
- /*!*******************************************!*\
- !*** ./src/stylus/components/_icons.styl ***!
- \*******************************************/
- /*! no static exports found */function(t,e,n){},"./src/stylus/components/_images.styl":
- /*!********************************************!*\
- !*** ./src/stylus/components/_images.styl ***!
- \********************************************/
- /*! no static exports found */function(t,e,n){},"./src/stylus/components/_inputs.styl":
- /*!********************************************!*\
- !*** ./src/stylus/components/_inputs.styl ***!
- \********************************************/
- /*! no static exports found */function(t,e,n){},"./src/stylus/components/_item-group.styl":
- /*!************************************************!*\
- !*** ./src/stylus/components/_item-group.styl ***!
- \************************************************/
- /*! no static exports found */function(t,e,n){},"./src/stylus/components/_jumbotrons.styl":
- /*!************************************************!*\
- !*** ./src/stylus/components/_jumbotrons.styl ***!
- \************************************************/
- /*! no static exports found */function(t,e,n){},"./src/stylus/components/_labels.styl":
- /*!********************************************!*\
- !*** ./src/stylus/components/_labels.styl ***!
- \********************************************/
- /*! no static exports found */function(t,e,n){},"./src/stylus/components/_lists.styl":
- /*!*******************************************!*\
- !*** ./src/stylus/components/_lists.styl ***!
- \*******************************************/
- /*! no static exports found */function(t,e,n){},"./src/stylus/components/_menus.styl":
- /*!*******************************************!*\
- !*** ./src/stylus/components/_menus.styl ***!
- \*******************************************/
- /*! no static exports found */function(t,e,n){},"./src/stylus/components/_messages.styl":
- /*!**********************************************!*\
- !*** ./src/stylus/components/_messages.styl ***!
- \**********************************************/
- /*! no static exports found */function(t,e,n){},"./src/stylus/components/_navigation-drawer.styl":
- /*!*******************************************************!*\
- !*** ./src/stylus/components/_navigation-drawer.styl ***!
- \*******************************************************/
- /*! no static exports found */function(t,e,n){},"./src/stylus/components/_overflow-buttons.styl":
- /*!******************************************************!*\
- !*** ./src/stylus/components/_overflow-buttons.styl ***!
- \******************************************************/
- /*! no static exports found */function(t,e,n){},"./src/stylus/components/_overlay.styl":
- /*!*********************************************!*\
- !*** ./src/stylus/components/_overlay.styl ***!
- \*********************************************/
- /*! no static exports found */function(t,e,n){},"./src/stylus/components/_pagination.styl":
- /*!************************************************!*\
- !*** ./src/stylus/components/_pagination.styl ***!
- \************************************************/
- /*! no static exports found */function(t,e,n){},"./src/stylus/components/_parallax.styl":
- /*!**********************************************!*\
- !*** ./src/stylus/components/_parallax.styl ***!
- \**********************************************/
- /*! no static exports found */function(t,e,n){},"./src/stylus/components/_pickers.styl":
- /*!*********************************************!*\
- !*** ./src/stylus/components/_pickers.styl ***!
- \*********************************************/
- /*! no static exports found */function(t,e,n){},"./src/stylus/components/_progress-circular.styl":
- /*!*******************************************************!*\
- !*** ./src/stylus/components/_progress-circular.styl ***!
- \*******************************************************/
- /*! no static exports found */function(t,e,n){},"./src/stylus/components/_progress-linear.styl":
- /*!*****************************************************!*\
- !*** ./src/stylus/components/_progress-linear.styl ***!
- \*****************************************************/
- /*! no static exports found */function(t,e,n){},"./src/stylus/components/_radio-group.styl":
- /*!*************************************************!*\
- !*** ./src/stylus/components/_radio-group.styl ***!
- \*************************************************/
- /*! no static exports found */function(t,e,n){},"./src/stylus/components/_radios.styl":
- /*!********************************************!*\
- !*** ./src/stylus/components/_radios.styl ***!
- \********************************************/
- /*! no static exports found */function(t,e,n){},"./src/stylus/components/_range-sliders.styl":
- /*!***************************************************!*\
- !*** ./src/stylus/components/_range-sliders.styl ***!
- \***************************************************/
- /*! no static exports found */function(t,e,n){},"./src/stylus/components/_rating.styl":
- /*!********************************************!*\
- !*** ./src/stylus/components/_rating.styl ***!
- \********************************************/
- /*! no static exports found */function(t,e,n){},"./src/stylus/components/_responsive.styl":
- /*!************************************************!*\
- !*** ./src/stylus/components/_responsive.styl ***!
- \************************************************/
- /*! no static exports found */function(t,e,n){},"./src/stylus/components/_select.styl":
- /*!********************************************!*\
- !*** ./src/stylus/components/_select.styl ***!
- \********************************************/
- /*! no static exports found */function(t,e,n){},"./src/stylus/components/_selection-controls.styl":
- /*!********************************************************!*\
- !*** ./src/stylus/components/_selection-controls.styl ***!
- \********************************************************/
- /*! no static exports found */function(t,e,n){},"./src/stylus/components/_sheet.styl":
- /*!*******************************************!*\
- !*** ./src/stylus/components/_sheet.styl ***!
- \*******************************************/
- /*! no static exports found */function(t,e,n){},"./src/stylus/components/_sliders.styl":
- /*!*********************************************!*\
- !*** ./src/stylus/components/_sliders.styl ***!
- \*********************************************/
- /*! no static exports found */function(t,e,n){},"./src/stylus/components/_small-dialog.styl":
- /*!**************************************************!*\
- !*** ./src/stylus/components/_small-dialog.styl ***!
- \**************************************************/
- /*! no static exports found */function(t,e,n){},"./src/stylus/components/_snackbars.styl":
- /*!***********************************************!*\
- !*** ./src/stylus/components/_snackbars.styl ***!
- \***********************************************/
- /*! no static exports found */function(t,e,n){},"./src/stylus/components/_speed-dial.styl":
- /*!************************************************!*\
- !*** ./src/stylus/components/_speed-dial.styl ***!
- \************************************************/
- /*! no static exports found */function(t,e,n){},"./src/stylus/components/_steppers.styl":
- /*!**********************************************!*\
- !*** ./src/stylus/components/_steppers.styl ***!
- \**********************************************/
- /*! no static exports found */function(t,e,n){},"./src/stylus/components/_subheaders.styl":
- /*!************************************************!*\
- !*** ./src/stylus/components/_subheaders.styl ***!
- \************************************************/
- /*! no static exports found */function(t,e,n){},"./src/stylus/components/_switch.styl":
- /*!********************************************!*\
- !*** ./src/stylus/components/_switch.styl ***!
- \********************************************/
- /*! no static exports found */function(t,e,n){},"./src/stylus/components/_system-bars.styl":
- /*!*************************************************!*\
- !*** ./src/stylus/components/_system-bars.styl ***!
- \*************************************************/
- /*! no static exports found */function(t,e,n){},"./src/stylus/components/_tables.styl":
- /*!********************************************!*\
- !*** ./src/stylus/components/_tables.styl ***!
- \********************************************/
- /*! no static exports found */function(t,e,n){},"./src/stylus/components/_tabs.styl":
- /*!******************************************!*\
- !*** ./src/stylus/components/_tabs.styl ***!
- \******************************************/
- /*! no static exports found */function(t,e,n){},"./src/stylus/components/_text-fields.styl":
- /*!*************************************************!*\
- !*** ./src/stylus/components/_text-fields.styl ***!
- \*************************************************/
- /*! no static exports found */function(t,e,n){},"./src/stylus/components/_textarea.styl":
- /*!**********************************************!*\
- !*** ./src/stylus/components/_textarea.styl ***!
- \**********************************************/
- /*! no static exports found */function(t,e,n){},"./src/stylus/components/_time-picker-clock.styl":
- /*!*******************************************************!*\
- !*** ./src/stylus/components/_time-picker-clock.styl ***!
- \*******************************************************/
- /*! no static exports found */function(t,e,n){},"./src/stylus/components/_time-picker-title.styl":
- /*!*******************************************************!*\
- !*** ./src/stylus/components/_time-picker-title.styl ***!
- \*******************************************************/
- /*! no static exports found */function(t,e,n){},"./src/stylus/components/_timeline.styl":
- /*!**********************************************!*\
- !*** ./src/stylus/components/_timeline.styl ***!
- \**********************************************/
- /*! no static exports found */function(t,e,n){},"./src/stylus/components/_toolbar.styl":
- /*!*********************************************!*\
- !*** ./src/stylus/components/_toolbar.styl ***!
- \*********************************************/
- /*! no static exports found */function(t,e,n){},"./src/stylus/components/_tooltips.styl":
- /*!**********************************************!*\
- !*** ./src/stylus/components/_tooltips.styl ***!
- \**********************************************/
- /*! no static exports found */function(t,e,n){},"./src/stylus/components/_treeview.styl":
- /*!**********************************************!*\
- !*** ./src/stylus/components/_treeview.styl ***!
- \**********************************************/
- /*! no static exports found */function(t,e,n){},"./src/stylus/components/_windows.styl":
- /*!*********************************************!*\
- !*** ./src/stylus/components/_windows.styl ***!
- \*********************************************/
- /*! no static exports found */function(t,e,n){},"./src/util/ThemeProvider.ts":
- /*!***********************************!*\
- !*** ./src/util/ThemeProvider.ts ***!
- \***********************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e);var i=n(/*! ../mixins/themeable */"./src/mixins/themeable.ts"),s=n(/*! ./mixins */"./src/util/mixins.ts");e["default"]=Object(s["default"])(i["default"]).extend({name:"theme-provider",props:{root:Boolean},computed:{isDark:function(){return this.root?this.rootIsDark:i["default"].options.computed.isDark.call(this)}},render:function(){return this.$slots.default&&this.$slots.default.find((function(t){return!t.isComment&&" "!==t.text}))}})},"./src/util/color/transformCIELAB.ts":
- /*!*******************************************!*\
- !*** ./src/util/color/transformCIELAB.ts ***!
- \*******************************************/
- /*! exports provided: fromXYZ, toXYZ */function(t,e,n){"use strict";n.r(e),n.d(e,"fromXYZ",(function(){return o})),n.d(e,"toXYZ",(function(){return a}));var i=.20689655172413793,s=function(t){return t>Math.pow(i,3)?Math.cbrt(t):t/(3*Math.pow(i,2))+4/29},r=function(t){return t>i?Math.pow(t,3):3*Math.pow(i,2)*(t-4/29)};function o(t){var e=s,n=e(t[1]);return[116*n-16,500*(e(t[0]/.95047)-n),200*(n-e(t[2]/1.08883))]}function a(t){var e=r,n=(t[0]+16)/116;return[.95047*e(n+t[1]/500),e(n),1.08883*e(n-t[2]/200)]}},"./src/util/color/transformSRGB.ts":
- /*!*****************************************!*\
- !*** ./src/util/color/transformSRGB.ts ***!
- \*****************************************/
- /*! exports provided: fromXYZ, toXYZ */function(t,e,n){"use strict";n.r(e),n.d(e,"fromXYZ",(function(){return c})),n.d(e,"toXYZ",(function(){return l}));var i=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]],s=function(t){return t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055},r=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],o=function(t){return t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)};function a(t){return Math.max(0,Math.min(1,t))}function c(t){for(var e=Array(3),n=s,r=i,o=0;o<3;++o)e[o]=Math.round(255*a(n(r[o][0]*t[0]+r[o][1]*t[1]+r[o][2]*t[2])));return(e[0]<<16)+(e[1]<<8)+(e[2]<<0)}function l(t){for(var e=[0,0,0],n=o,i=r,s=n((t>>16&255)/255),a=n((t>>8&255)/255),c=n((t>>0&255)/255),l=0;l<3;++l)e[l]=i[l][0]*s+i[l][1]*a+i[l][2]*c;return e}},"./src/util/colorUtils.ts":
- /*!********************************!*\
- !*** ./src/util/colorUtils.ts ***!
- \********************************/
- /*! exports provided: colorToInt, intToHex, colorToHex */function(t,e,n){"use strict";n.r(e),n.d(e,"colorToInt",(function(){return s})),n.d(e,"intToHex",(function(){return r})),n.d(e,"colorToHex",(function(){return o}));var i=n(/*! ./console */"./src/util/console.ts");function s(t){var e;if("number"===typeof t)e=t;else{if("string"!==typeof t)throw new TypeError("Colors can only be numbers or strings, recieved "+(null==t?t:t.constructor.name)+" instead");var n="#"===t[0]?t.substring(1):t;3===n.length&&(n=n.split("").map((function(t){return t+t})).join("")),6!==n.length&&Object(i["consoleWarn"])("'"+t+"' is not a valid rgb color"),e=parseInt(n,16)}return e<0?(Object(i["consoleWarn"])("Colors cannot be negative: '"+t+"'"),e=0):(e>16777215||isNaN(e))&&(Object(i["consoleWarn"])("'"+t+"' is not a valid rgb color"),e=16777215),e}function r(t){var e=t.toString(16);return e.length<6&&(e="0".repeat(6-e.length)+e),"#"+e}function o(t){return r(s(t))}},"./src/util/console.ts":
- /*!*****************************!*\
- !*** ./src/util/console.ts ***!
- \*****************************/
- /*! exports provided: consoleInfo, consoleWarn, consoleError, deprecate */function(t,e,n){"use strict";function i(t,e,n){if(n&&(e={_isVue:!0,$parent:n,$options:e}),e){if(e.$_alreadyWarned=e.$_alreadyWarned||[],e.$_alreadyWarned.includes(t))return;e.$_alreadyWarned.push(t)}return"[Vuetify] "+t+(e?h(e):"")}function s(t,e,n){var s=i(t,e,n);null!=s&&console.info(s)}function r(t,e,n){var s=i(t,e,n);null!=s&&console.warn(s)}function o(t,e,n){var s=i(t,e,n);null!=s&&console.error(s)}function a(t,e,n,i){r("'"+t+"' is deprecated, use '"+e+"' instead",n,i)}n.r(e),n.d(e,"consoleInfo",(function(){return s})),n.d(e,"consoleWarn",(function(){return r})),n.d(e,"consoleError",(function(){return o})),n.d(e,"deprecate",(function(){return a}));var c=/(?:^|[-_])(\w)/g,l=function(t){return t.replace(c,(function(t){return t.toUpperCase()})).replace(/[-_]/g,"")};function u(t,e){if(t.$root===t)return"<Root>";var n="function"===typeof t&&null!=t.cid?t.options:t._isVue?t.$options||t.constructor.options:t||{},i=n.name||n._componentTag,s=n.__file;if(!i&&s){var r=s.match(/([^/\\]+)\.vue$/);i=r&&r[1]}return(i?"<"+l(i)+">":"<Anonymous>")+(s&&!1!==e?" at "+s:"")}function h(t){if(t._isVue&&t.$parent){var e=[],n=0;while(t){if(e.length>0){var i=e[e.length-1];if(i.constructor===t.constructor){n++,t=t.$parent;continue}n>0&&(e[e.length-1]=[i,n],n=0)}e.push(t),t=t.$parent}return"\n\nfound in\n\n"+e.map((function(t,e){return""+(0===e?"---\x3e ":" ".repeat(5+2*e))+(Array.isArray(t)?u(t[0])+"... ("+t[1]+" recursive calls)":u(t))})).join("\n")}return"\n\n(found in "+u(t)+")"}},"./src/util/dedupeModelListeners.ts":
- /*!******************************************!*\
- !*** ./src/util/dedupeModelListeners.ts ***!
- \******************************************/
- /*! exports provided: default */function(t,e,n){"use strict";function i(t){if(t.model&&t.on&&t.on.input)if(Array.isArray(t.on.input)){var e=t.on.input.indexOf(t.model.callback);e>-1&&t.on.input.splice(e,1)}else delete t.on.input}n.r(e),n.d(e,"default",(function(){return i}))},"./src/util/helpers.ts":
- /*!*****************************!*\
- !*** ./src/util/helpers.ts ***!
- \*****************************/
- /*! exports provided: createSimpleFunctional, createSimpleTransition, createJavaScriptTransition, directiveConfig, addOnceEventListener, passiveSupported, addPassiveEventListener, getNestedValue, deepEqual, getObjectValueByPath, getPropertyFromItem, createRange, getZIndex, escapeHTML, filterObjectOnKeys, filterChildren, convertToUnit, kebabCase, isObject, keyCodes, remapInternalIcon, keys, camelize, arrayDiff, upperFirst, getSlotType */function(t,e,n){"use strict";n.r(e),n.d(e,"createSimpleFunctional",(function(){return a})),n.d(e,"createSimpleTransition",(function(){return l})),n.d(e,"createJavaScriptTransition",(function(){return u})),n.d(e,"directiveConfig",(function(){return h})),n.d(e,"addOnceEventListener",(function(){return d})),n.d(e,"passiveSupported",(function(){return f})),n.d(e,"addPassiveEventListener",(function(){return m})),n.d(e,"getNestedValue",(function(){return g})),n.d(e,"deepEqual",(function(){return b})),n.d(e,"getObjectValueByPath",(function(){return v})),n.d(e,"getPropertyFromItem",(function(){return y})),n.d(e,"createRange",(function(){return S})),n.d(e,"getZIndex",(function(){return x})),n.d(e,"escapeHTML",(function(){return w})),n.d(e,"filterObjectOnKeys",(function(){return E})),n.d(e,"filterChildren",(function(){return T})),n.d(e,"convertToUnit",(function(){return C})),n.d(e,"kebabCase",(function(){return M})),n.d(e,"isObject",(function(){return P})),n.d(e,"keyCodes",(function(){return A})),n.d(e,"remapInternalIcon",(function(){return L})),n.d(e,"keys",(function(){return O})),n.d(e,"camelize",(function(){return R})),n.d(e,"arrayDiff",(function(){return N})),n.d(e,"upperFirst",(function(){return D})),n.d(e,"getSlotType",(function(){return V}));var i=n(/*! vue */"vue"),s=n.n(i),r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=function(){return o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var s in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t},o.apply(this,arguments)};function a(t,e,n){return void 0===e&&(e="div"),s.a.extend({name:n||t.replace(/__/g,"-"),functional:!0,render:function(n,i){var s=i.data,r=i.children;return s.staticClass=(t+" "+(s.staticClass||"")).trim(),n(e,s,r)}})}function c(t,e){return Array.isArray(t)?t.concat(e):(t&&e.push(t),e)}function l(t,e,n){return void 0===e&&(e="top center 0"),{name:t,functional:!0,props:{group:{type:Boolean,default:!1},hideOnLeave:{type:Boolean,default:!1},leaveAbsolute:{type:Boolean,default:!1},mode:{type:String,default:n},origin:{type:String,default:e}},render:function(e,n){var i="transition"+(n.props.group?"-group":"");n.data=n.data||{},n.data.props={name:t,mode:n.props.mode},n.data.on=n.data.on||{},Object.isExtensible(n.data.on)||(n.data.on=o({},n.data.on));var s=[],r=[],a=function(t){return t.style.position="absolute"};s.push((function(t){t.style.transformOrigin=n.props.origin,t.style.webkitTransformOrigin=n.props.origin})),n.props.leaveAbsolute&&r.push(a),n.props.hideOnLeave&&r.push((function(t){return t.style.display="none"}));var l=n.data.on,u=l.beforeEnter,h=l.leave;return n.data.on.beforeEnter=function(){return c(u,s)},n.data.on.leave=c(h,r),e(i,n.data,n.children)}}}function u(t,e,n){return void 0===n&&(n="in-out"),{name:t,functional:!0,props:{mode:{type:String,default:n}},render:function(n,i){var s={props:o({},i.props,{name:t}),on:e};return n("transition",s,i.children)}}}function h(t,e){return void 0===e&&(e={}),o({},e,t.modifiers,{value:t.arg},t.value||{})}function d(t,e,n){var i=function i(){n(),t.removeEventListener(e,i,!1)};t.addEventListener(e,i,!1)}var f=!1;try{if("undefined"!==typeof window){var p=Object.defineProperty({},"passive",{get:function(){f=!0}});window.addEventListener("testListener",p,p),window.removeEventListener("testListener",p,p)}}catch(B){console.warn(B)}function m(t,e,n,i){t.addEventListener(e,n,!!f&&i)}function g(t,e,n){var i=e.length-1;if(i<0)return void 0===t?n:t;for(var s=0;s<i;s++){if(null==t)return n;t=t[e[s]]}return null==t||void 0===t[e[i]]?n:t[e[i]]}function b(t,e){if(t===e)return!0;if(t instanceof Date&&e instanceof Date&&t.getTime()!==e.getTime())return!1;if(t!==Object(t)||e!==Object(e))return!1;var n=Object.keys(t);return n.length===Object.keys(e).length&&n.every((function(n){return b(t[n],e[n])}))}function v(t,e,n){return e&&e.constructor===String?(e=e.replace(/\[(\w+)\]/g,".$1"),e=e.replace(/^\./,""),g(t,e.split("."),n)):n}function y(t,e,n){if(null==e)return void 0===t?n:t;if(t!==Object(t))return void 0===n?t:n;if("string"===typeof e)return v(t,e,n);if(Array.isArray(e))return g(t,e,n);if("function"!==typeof e)return n;var i=e(t,n);return"undefined"===typeof i?n:i}function S(t){return Array.from({length:t},(function(t,e){return e}))}function x(t){if(!t||t.nodeType!==Node.ELEMENT_NODE)return 0;var e=+window.getComputedStyle(t).getPropertyValue("z-index");return e||x(t.parentNode)}var _={"&":"&","<":"<",">":">"};function w(t){return t.replace(/[&<>]/g,(function(t){return _[t]||t}))}function E(t,e){for(var n={},i=0;i<e.length;i++){var s=e[i];"undefined"!==typeof t[s]&&(n[s]=t[s])}return n}function T(t,e){return void 0===t&&(t=[]),t.filter((function(t){return t.componentOptions&&t.componentOptions.Ctor.options.name===e}))}function C(t,e){return void 0===e&&(e="px"),null==t||""===t?void 0:isNaN(+t)?String(t):""+Number(t)+e}function M(t){return(t||"").replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function P(t){return null!==t&&"object"===("undefined"===typeof t?"undefined":r(t))}var A=Object.freeze({enter:13,tab:9,delete:46,esc:27,space:32,up:38,down:40,left:37,right:39,end:35,home:36,del:46,backspace:8,insert:45,pageup:33,pagedown:34}),I="$vuetify.icons.";function L(t,e){return e.startsWith(I)?v(t,e,e):e}function O(t){return Object.keys(t)}var k=/-(\w)/g,R=function(t){return t.replace(k,(function(t,e){return e?e.toUpperCase():""}))};function N(t,e){for(var n=[],i=0;i<e.length;i++)t.indexOf(e[i])<0&&n.push(e[i]);return n}function D(t){return t.charAt(0).toUpperCase()+t.slice(1)}function V(t,e,n){return t.$slots[e]&&t.$scopedSlots[e]&&t.$scopedSlots[e].name?n?"v-slot":"scoped":t.$slots[e]?"normal":t.$scopedSlots[e]?"scoped":void 0}},"./src/util/mask.ts":
- /*!**************************!*\
- !*** ./src/util/mask.ts ***!
- \**************************/
- /*! exports provided: defaultDelimiters, isMaskDelimiter, maskText, unmaskText */function(t,e,n){"use strict";n.r(e),n.d(e,"defaultDelimiters",(function(){return i})),n.d(e,"isMaskDelimiter",(function(){return s})),n.d(e,"maskText",(function(){return l})),n.d(e,"unmaskText",(function(){return u}));var i=/[-!$%^&*()_+|~=`{}[\]:";'<>?,./\\ ]/,s=function(t){return!!t&&i.test(t)},r={"#":{test:function(t){return/[0-9]/.test(t)}},A:{test:function(t){return/[A-Z]/i.test(t)},convert:function(t){return t.toUpperCase()}},a:{test:function(t){return/[a-z]/i.test(t)},convert:function(t){return t.toLowerCase()}},N:{test:function(t){return/[0-9A-Z]/i.test(t)},convert:function(t){return t.toUpperCase()}},n:{test:function(t){return/[0-9a-z]/i.test(t)},convert:function(t){return t.toLowerCase()}},X:{test:s}},o=function(t){return r.hasOwnProperty(t)},a=function(t,e){return r[t].convert?r[t].convert(e):e},c=function(t,e){return!(null==e||!o(t))&&r[t].test(e)},l=function(t,e,n){if(null==t)return"";if(t=String(t),!e.length||!t.length)return t;Array.isArray(e)||(e=e.split(""));var i=0,s=0,r="";while(s<e.length){var l=e[s],u=t[i];if(o(l)||u!==l)if(o(l)||n){if(!c(l,u))return r;r+=a(l,u),i++}else r+=l;else r+=l,i++;s++}return r},u=function(t){return t?String(t).replace(new RegExp(i.source,"g"),""):t}},"./src/util/mixins.ts":
- /*!****************************!*\
- !*** ./src/util/mixins.ts ***!
- \****************************/
- /*! exports provided: default */function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return r}));var i=n(/*! vue */"vue"),s=n.n(i);function r(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return s.a.extend({mixins:t})}},"./src/util/rebuildFunctionalSlots.ts":
- /*!********************************************!*\
- !*** ./src/util/rebuildFunctionalSlots.ts ***!
- \********************************************/
- /*! exports provided: default */function(t,e,n){"use strict";function i(t,e){var n=[];for(var i in t)t.hasOwnProperty(i)&&n.push(e("template",{slot:i},t[i]));return n}n.r(e),n.d(e,"default",(function(){return i}))},"./src/util/theme.ts":
- /*!***************************!*\
- !*** ./src/util/theme.ts ***!
- \***************************/
- /*! exports provided: parse, genStyles, genVariations */function(t,e,n){"use strict";n.r(e),n.d(e,"parse",(function(){return c})),n.d(e,"genStyles",(function(){return f})),n.d(e,"genVariations",(function(){return p}));var i=n(/*! ./colorUtils */"./src/util/colorUtils.ts"),s=n(/*! ./color/transformSRGB */"./src/util/color/transformSRGB.ts"),r=n(/*! ./color/transformCIELAB */"./src/util/color/transformCIELAB.ts"),o="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a=function(t,e){var n="function"===typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,s,r=n.call(t),o=[];try{while((void 0===e||e-- >0)&&!(i=r.next()).done)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r["return"])&&n.call(r)}finally{if(s)throw s.error}}return o};function c(t,e){void 0===e&&(e=!1);for(var n=Object.keys(t),s={},r=0;r<n.length;++r){var a=n[r],l=t[a];e?("base"===a||a.startsWith("lighten")||a.startsWith("darken"))&&(s[a]=Object(i["colorToHex"])(l)):"object"===("undefined"===typeof l?"undefined":o(l))?s[a]=c(l,!0):s[a]=p(a,Object(i["colorToInt"])(l))}return s}var l=function(t,e){return"\n."+t+" {\n background-color: "+e+" !important;\n border-color: "+e+" !important;\n}\n."+t+"--text {\n color: "+e+" !important;\n caret-color: "+e+" !important;\n}"},u=function(t,e,n){var i=a(e.split(/(\d)/,2),2),s=i[0],r=i[1];return"\n."+t+"."+s+"-"+r+" {\n background-color: "+n+" !important;\n border-color: "+n+" !important;\n}\n."+t+"--text.text--"+s+"-"+r+" {\n color: "+n+" !important;\n caret-color: "+n+" !important;\n}"},h=function(t,e){return void 0===e&&(e="base"),"--v-"+t+"-"+e},d=function(t,e){return void 0===e&&(e="base"),"var("+h(t,e)+")"};function f(t,e){void 0===e&&(e=!1);var n=Object.keys(t);if(!n.length)return"";var i="",s="",r=e?d("primary"):t.primary.base;s+="a { color: "+r+"; }";for(var a=0;a<n.length;++a){var c=n[a],f=t[c];if("object"===("undefined"===typeof f?"undefined":o(f))){s+=l(c,e?d(c):f.base),e&&(i+=" "+h(c)+": "+f.base+";\n");for(var p=Object.keys(f),m=0;m<p.length;++m){var g=p[m],b=f[g];"base"!==g&&(s+=u(c,g,e?d(c,g):b),e&&(i+=" "+h(c,g)+": "+b+";\n"))}}}return e&&(i=":root {\n"+i+"}\n\n"),i+s}function p(t,e){for(var n={base:Object(i["intToHex"])(e)},s=5;s>0;--s)n["lighten"+s]=Object(i["intToHex"])(m(e,s));for(s=1;s<=4;++s)n["darken"+s]=Object(i["intToHex"])(g(e,s));return n}function m(t,e){var n=r["fromXYZ"](s["toXYZ"](t));return n[0]=n[0]+10*e,s["fromXYZ"](r["toXYZ"](n))}function g(t,e){var n=r["fromXYZ"](s["toXYZ"](t));return n[0]=n[0]-10*e,s["fromXYZ"](r["toXYZ"](n))}},vue:
- /*!******************************************************************************!*\
- !*** external {"commonjs":"vue","commonjs2":"vue","amd":"vue","root":"Vue"} ***!
- \******************************************************************************/
- /*! no static exports found */function(e,n){e.exports=t}})["default"]}))},ce7a:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=t=>()=>{if(null===t)return!1;if(void 0!==t.prototype&&void 0!==t.prototype.close)return!0;const e=new t,n=void 0!==e.close;try{e.close()}catch{}return n}},ce90:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=(t,e)=>async()=>{if(null===t)return!0;if(null===e)return!1;const n=new Blob(['class A extends AudioWorkletProcessor{process(){this.port.postMessage(0)}}registerProcessor("a",A)'],{type:"application/javascript; charset=utf-8"}),i=new e(1,128,3200),s=URL.createObjectURL(n);let r=!1;try{await i.audioWorklet.addModule(s);const e=i.createGain(),n=new t(i,"a",{numberOfOutputs:0});n.port.onmessage=()=>r=!0,e.connect(n),await i.startRendering()}catch{}finally{URL.revokeObjectURL(s)}return r}},cec8:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("0bf9"),s=n("5b43");const r=t=>(e,n)=>{const r=t(e,t=>t.createGain());return Object(s["a"])(r,n),Object(i["a"])(r,n,"gain"),r}},cee4:function(t,e,n){"use strict";var i=n("c532"),s=n("1d2b"),r=n("0a06"),o=n("4a7b"),a=n("2444");function c(t){var e=new r(t),n=s(r.prototype.request,e);return i.extend(n,r.prototype,e),i.extend(n,e),n}var l=c(a);l.Axios=r,l.create=function(t){return c(o(l.defaults,t))},l.Cancel=n("7a77"),l.CancelToken=n("8df4"),l.isCancel=n("2e67"),l.all=function(t){return Promise.all(t)},l.spread=n("0df6"),l.isAxiosError=n("5f02"),t.exports=l,t.exports.default=l},cefa:function(t,e,n){var i=n("e451");function s(t,e){if(t){if("string"===typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}t.exports=s},cf4b:function(t,e){},cf6a:function(t,e,n){var i=n("d3f4"),s=n("67ab").onFreeze;n("5eda")("seal",(function(t){return function(e){return t&&i(e)?t(s(e)):e}}))},d017:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=t=>null===t?null:t.hasOwnProperty("OfflineAudioContext")?t.OfflineAudioContext:t.hasOwnProperty("webkitOfflineAudioContext")?t.webkitOfflineAudioContext:null},d01f:function(t,e){},d04a:function(t,e){},d04f:function(t,e,n){n("7a56")("Array")},d057:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=(t,e)=>{const n=t.get(e);if(void 0===n)throw new Error("A value with the given key could not be found.");return n}},d089:function(t,e){},d0b0:function(t,e,n){"use strict";n("386b")("italics",(function(t){return function(){return t(this,"i","","")}}))},d0de:function(t,e){},d0f9:function(t,e){},d11d:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("0bf9"),s=n("5b43");const r=(t,e,n)=>(r,o)=>t(r,t=>{const a=o.channelCountMode;if("clamped-max"===a)throw n();if(void 0===r.createStereoPanner)return e(r,o);const c=t.createStereoPanner();return Object(s["a"])(c,o),Object(i["a"])(c,o,"pan"),Object.defineProperty(c,"channelCountMode",{get:()=>a,set:t=>{if(t!==a)throw n()}}),c})},d179:function(t,e){},d185:function(t,e,n){var i=n("11e9"),s=n("38fd"),r=n("69a8"),o=n("5ca1"),a=n("d3f4"),c=n("cb7c");function l(t,e){var n,o,u=arguments.length<3?t:arguments[2];return c(t)===u?t[e]:(n=i.f(t,e))?r(n,"value")?n.value:void 0!==n.get?n.get.call(u):void 0:a(o=s(t))?l(o,e,u):void 0}o(o.S,"Reflect",{get:l})},d19a:function(t,e){},d25a:function(t,e){},d263:function(t,e,n){"use strict";n("386b")("fixed",(function(t){return function(){return t(this,"tt","","")}}))},d28a:function(t,e){},d2c8:function(t,e,n){var i=n("aae3"),s=n("be13");t.exports=function(t,e,n){if(i(e))throw TypeError("String#"+n+" doesn't accept regex!");return String(s(t))}},d2cd:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=t=>()=>{if(null===t)return!1;const e=new t;try{return e.createMediaStreamSource(new MediaStream),!1}catch(n){return!0}}},d2f5:function(t,e){},d335:function(t,e){},d34b:function(t,e){},d383:function(t,e){},d3d3:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("c965");const s=t=>(e,n,s=0,r=0)=>{const o=e[s];if(void 0===o)throw t();return Object(i["a"])(n)?o.connect(n,0,r):o.connect(n,0)}},d3f4:function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},d475:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=t=>(e,n,i)=>{Object.defineProperties(t,{currentFrame:{configurable:!0,get(){return Math.round(e*n)}},currentTime:{configurable:!0,get(){return e}}});try{return i()}finally{null!==t&&(delete t.currentFrame,delete t.currentTime)}}},d4a9:function(t,e){},d4c0:function(t,e,n){var i=n("0d58"),s=n("2621"),r=n("52a7");t.exports=function(t){var e=i(t),n=s.f;if(n){var o,a=n(t),c=r.f,l=0;while(a.length>l)c.call(t,o=a[l++])&&e.push(o)}return e}},d4cb:function(t,e){},d4d4:function(t,e){},d4ec:function(t,e){},d53b:function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},d562:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=t=>e=>null!==t&&e instanceof t},d6c6:function(t,e){t.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:Math.log(1+t)}},d6db:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("5b43"),s=n("8af4");const r=(t,e,n,r,o,a,c,l,u,h)=>(d,{coneInnerAngle:f,coneOuterAngle:p,coneOuterGain:m,distanceModel:g,maxDistance:b,orientationX:v,orientationY:y,orientationZ:S,panningModel:x,positionX:_,positionY:w,positionZ:E,refDistance:T,rolloffFactor:C,...M})=>{const P=n(d,t=>t.createPanner());if(M.channelCount>2)throw l();if("max"===M.channelCountMode)throw l();Object(i["a"])(P,M);const A={channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete"},I=r(d,{...A,channelInterpretation:"speakers",numberOfInputs:6}),L=o(d,{...M,gain:1}),O=o(d,{...A,gain:1}),k=o(d,{...A,gain:0}),R=o(d,{...A,gain:0}),N=o(d,{...A,gain:0}),D=o(d,{...A,gain:0}),V=o(d,{...A,gain:0}),B=a(d,256,6,1),F=c(d,{...A,curve:new Float32Array([1,1]),oversample:"none"});let j=[v,y,S],G=[_,w,E];B.onaudioprocess=({inputBuffer:t})=>{const e=[t.getChannelData(0)[0],t.getChannelData(1)[0],t.getChannelData(2)[0]];e.some((t,e)=>t!==j[e])&&(P.setOrientation(...e),j=e);const n=[t.getChannelData(3)[0],t.getChannelData(4)[0],t.getChannelData(5)[0]];n.some((t,e)=>t!==G[e])&&(P.setPosition(...n),G=n)},Object.defineProperty(k.gain,"defaultValue",{get:()=>0}),Object.defineProperty(R.gain,"defaultValue",{get:()=>0}),Object.defineProperty(N.gain,"defaultValue",{get:()=>0}),Object.defineProperty(D.gain,"defaultValue",{get:()=>0}),Object.defineProperty(V.gain,"defaultValue",{get:()=>0});const W={get bufferSize(){},get channelCount(){return P.channelCount},set channelCount(t){if(t>2)throw l();L.channelCount=t,P.channelCount=t},get channelCountMode(){return P.channelCountMode},set channelCountMode(t){if("max"===t)throw l();L.channelCountMode=t,P.channelCountMode=t},get channelInterpretation(){return P.channelInterpretation},set channelInterpretation(t){L.channelInterpretation=t,P.channelInterpretation=t},get coneInnerAngle(){return P.coneInnerAngle},set coneInnerAngle(t){P.coneInnerAngle=t},get coneOuterAngle(){return P.coneOuterAngle},set coneOuterAngle(t){P.coneOuterAngle=t},get coneOuterGain(){return P.coneOuterGain},set coneOuterGain(t){if(t<0||t>1)throw e();P.coneOuterGain=t},get context(){return P.context},get distanceModel(){return P.distanceModel},set distanceModel(t){P.distanceModel=t},get inputs(){return[L]},get maxDistance(){return P.maxDistance},set maxDistance(t){if(t<0)throw new RangeError;P.maxDistance=t},get numberOfInputs(){return P.numberOfInputs},get numberOfOutputs(){return P.numberOfOutputs},get orientationX(){return O.gain},get orientationY(){return k.gain},get orientationZ(){return R.gain},get panningModel(){return P.panningModel},set panningModel(t){if(P.panningModel=t,P.panningModel!==t&&"HRTF"===t)throw l()},get positionX(){return N.gain},get positionY(){return D.gain},get positionZ(){return V.gain},get refDistance(){return P.refDistance},set refDistance(t){if(t<0)throw new RangeError;P.refDistance=t},get rolloffFactor(){return P.rolloffFactor},set rolloffFactor(t){if(t<0)throw new RangeError;P.rolloffFactor=t},addEventListener(...t){return L.addEventListener(t[0],t[1],t[2])},dispatchEvent(...t){return L.dispatchEvent(t[0])},removeEventListener(...t){return L.removeEventListener(t[0],t[1],t[2])}};f!==W.coneInnerAngle&&(W.coneInnerAngle=f),p!==W.coneOuterAngle&&(W.coneOuterAngle=p),m!==W.coneOuterGain&&(W.coneOuterGain=m),g!==W.distanceModel&&(W.distanceModel=g),b!==W.maxDistance&&(W.maxDistance=b),v!==W.orientationX.value&&(W.orientationX.value=v),y!==W.orientationY.value&&(W.orientationY.value=y),S!==W.orientationZ.value&&(W.orientationZ.value=S),x!==W.panningModel&&(W.panningModel=x),_!==W.positionX.value&&(W.positionX.value=_),w!==W.positionY.value&&(W.positionY.value=w),E!==W.positionZ.value&&(W.positionZ.value=E),T!==W.refDistance&&(W.refDistance=T),C!==W.rolloffFactor&&(W.rolloffFactor=C),1===j[0]&&0===j[1]&&0===j[2]||P.setOrientation(...j),0===G[0]&&0===G[1]&&0===G[2]||P.setPosition(...G);const $=()=>{L.connect(P),t(L,F,0,0),F.connect(O).connect(I,0,0),F.connect(k).connect(I,0,1),F.connect(R).connect(I,0,2),F.connect(N).connect(I,0,3),F.connect(D).connect(I,0,4),F.connect(V).connect(I,0,5),I.connect(B).connect(d.destination)},z=()=>{L.disconnect(P),u(L,F,0,0),F.disconnect(O),O.disconnect(I),F.disconnect(k),k.disconnect(I),F.disconnect(R),R.disconnect(I),F.disconnect(N),N.disconnect(I),F.disconnect(D),D.disconnect(I),F.disconnect(V),V.disconnect(I),I.disconnect(B),B.disconnect(d.destination)};return h(Object(s["a"])(W,P),$,z)}},d6df:function(t,e){},d734:function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var i=n("4114"),s=n("8862"),r=n("65f3"),o=n("7d82"),a=n("752e"),c=n("8543"),l=n("d057");const u=(t,e)=>{const n=Object(l["a"])(a["k"],t),i=Object(c["a"])(e);return Object(l["a"])(n,i)};var h=n("e190");const d=async(t,e,n,a,c,l)=>{const h=null===e?128*Math.ceil(t.context.length/128):e.length,d=a.channelCount*a.numberOfInputs,f=a.outputChannelCount.reduce((t,e)=>t+e,0),p=0===f?null:n.createBuffer(f,h,n.sampleRate);if(void 0===c)throw new Error("Missing the processor constructor.");const m=Object(o["a"])(t),g=await u(n,t),b=Object(r["a"])(a.numberOfInputs,a.channelCount),v=Object(r["a"])(a.numberOfOutputs,a.outputChannelCount),y=Array.from(t.parameters.keys()).reduce((t,e)=>({...t,[e]:new Float32Array(128)}),{});for(let r=0;r<h;r+=128){if(a.numberOfInputs>0&&null!==e)for(let t=0;t<a.numberOfInputs;t+=1)for(let n=0;n<a.channelCount;n+=1)Object(i["a"])(e,b[t],n,n,r);void 0!==c.parameterDescriptors&&null!==e&&c.parameterDescriptors.forEach(({name:t},n)=>{Object(i["a"])(e,y,t,d+n,r)});for(let t=0;t<a.numberOfInputs;t+=1)for(let e=0;e<a.outputChannelCount[t];e+=1)0===v[t][e].byteLength&&(v[t][e]=new Float32Array(128));try{const t=b.map((t,e)=>0===m.activeInputs[e].size?[]:t),e=l(r/n.sampleRate,n.sampleRate,()=>g.process(t,v,y));if(null!==p)for(let n=0,i=0;n<a.numberOfOutputs;n+=1){for(let t=0;t<a.outputChannelCount[n];t+=1)Object(s["a"])(p,v[n],t,i+t,r);i+=a.outputChannelCount[n]}if(!e)break}catch(S){t.dispatchEvent(new ErrorEvent("processorerror",{error:S}));break}}return p},f=(t,e,n,i,s,r,o,a,c,l,u,f,p,m,g,b)=>(v,y,S)=>{const x=new WeakMap;let _=null;const w=async(a,w,E)=>{let T=u(a),C=null;const M=Object(h["a"])(T,w);if(null===f){const t=y.outputChannelCount.reduce((t,e)=>t+e,0),n=s(w,{channelCount:Math.max(1,t),channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:Math.max(1,t)}),r=[];for(let e=0;e<a.numberOfOutputs;e+=1)r.push(i(w,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:y.outputChannelCount[e]}));const l=o(w,{channelCount:y.channelCount,channelCountMode:y.channelCountMode,channelInterpretation:y.channelInterpretation,gain:1});l.connect=e.bind(null,r),l.disconnect=c.bind(null,r),C=[n,r,l]}else M||(T=new f(w,v));if(x.set(w,null===C?T:C[2]),null!==C){if(null===_){if(void 0===S)throw new Error("Missing the processor constructor.");if(null===p)throw new Error("Missing the native OfflineAudioContext constructor.");const t=a.channelCount*a.numberOfInputs,e=void 0===S.parameterDescriptors?0:S.parameterDescriptors.length,n=t+e,c=async()=>{const c=new p(n,128*Math.ceil(a.context.length/128),w.sampleRate),l=[],u=[];for(let t=0;t<y.numberOfInputs;t+=1)l.push(o(c,{channelCount:y.channelCount,channelCountMode:y.channelCountMode,channelInterpretation:y.channelInterpretation,gain:1})),u.push(s(c,{channelCount:y.channelCount,channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:y.channelCount}));const h=await Promise.all(Array.from(a.parameters.values()).map(async t=>{const e=r(c,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",offset:t.value});return await m(c,t,e.offset,E),e})),d=i(c,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:Math.max(1,t+e)});for(let t=0;t<y.numberOfInputs;t+=1){l[t].connect(u[t]);for(let e=0;e<y.channelCount;e+=1)u[t].connect(d,e,t*y.channelCount+e)}for(const[e,n]of h.entries())n.connect(d,0,t+e),n.start(0);return d.connect(c.destination),await Promise.all(l.map(t=>g(a,c,t,E))),b(c)};_=d(a,0===n?null:await c(),w,y,S,l)}const t=await _,e=n(w,{buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1}),[c,u,h]=C;null!==t&&(e.buffer=t,e.start(0)),e.connect(c);for(let n=0,i=0;n<a.numberOfOutputs;n+=1){const t=u[n];for(let e=0;e<y.outputChannelCount[n];e+=1)c.connect(t,i+e,e);i+=y.outputChannelCount[n]}return h}if(M)for(const[e,n]of a.parameters.entries())await t(w,n,T.parameters.get(e),E);else for(const[t,e]of a.parameters.entries())await m(w,e,T.parameters.get(t),E);return await g(a,w,T,E),T};return{render(t,e,n){a(e,t);const i=x.get(e);return void 0!==i?Promise.resolve(i):w(t,e,n)}}}},d752:function(t,e,n){var i=n("7726").parseFloat,s=n("aa77").trim;t.exports=1/i(n("fdef")+"-0")!==-1/0?function(t){var e=s(String(t),3),n=i(e);return 0===n&&"-"==e.charAt(0)?-0:n}:i},d784:function(t,e){},d859:function(t,e){},d890:function(t,e){},d89a:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("e190");const s=(t,e,n,s,r)=>()=>{const o=new WeakMap,a=async(a,c,l)=>{let u=n(a);const h=Object(i["a"])(u,c);if(!h){const t={channelCount:u.channelCount,channelCountMode:u.channelCountMode,channelInterpretation:u.channelInterpretation,gain:u.gain.value};u=e(c,t)}return o.set(c,u),h?await t(c,a.gain,u.gain,l):await s(c,a.gain,u.gain,l),await r(a,c,u,l),u};return{render(t,e,n){const i=o.get(e);return void 0!==i?Promise.resolve(i):a(t,e,n)}}}},d8a7:function(t,e){},d8b9:function(t,e){},d8e8:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},d925:function(t,e,n){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},d961:function(t,e){},d9ab:function(t,e,n){var i=n("5ca1"),s=Math.atanh;i(i.S+i.F*!(s&&1/s(-0)<0),"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}})},d9c5:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=t=>(e,n)=>{const i=n.createBuffer(1,1,n.sampleRate);null===e.buffer&&(e.buffer=i),t(e,"buffer",t=>()=>{const n=t.call(e);return n===i?null:n},t=>n=>t.call(e,null===n?i:n))}},d9e7:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("e190");const s=(t,e,n,s,r)=>()=>{const o=new WeakMap;let a=null,c=null,l=null;const u=async(u,h,d)=>{let f=n(u);const p=Object(i["a"])(f,h);if(!p){const t={channelCount:f.channelCount,channelCountMode:f.channelCountMode,channelInterpretation:f.channelInterpretation,detune:f.detune.value,frequency:f.frequency.value,periodicWave:null===a?void 0:a,type:f.type};f=e(h,t),null!==c&&f.start(c),null!==l&&f.stop(l)}return o.set(h,f),p?(await t(h,u.detune,f.detune,d),await t(h,u.frequency,f.frequency,d)):(await s(h,u.detune,f.detune,d),await s(h,u.frequency,f.frequency,d)),await r(u,h,f,d),f};return{set periodicWave(t){a=t},set start(t){c=t},set stop(t){l=t},render(t,e,n){const i=o.get(e);return void 0!==i?Promise.resolve(i):u(t,e,n)}}}},db11:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=t=>()=>{if(null===t)return!1;let e;try{e=new t({latencyHint:"balanced"})}catch{return!1}return e.close(),!0}},db12:function(t,e){},db12b:function(t,e){},db40:function(t,e){},db6f:function(t,e){},db97:function(t,e,n){var i=n("5ca1");i(i.S,"Object",{is:n("83a1")})},dbec:function(t,e){},dcbc:function(t,e,n){var i=n("2aba");t.exports=function(t,e,n){for(var s in e)i(t,s,e[s],n);return t}},dd02:function(t,e){},dd20:function(t,e){},dd25:function(t,e,n){(function(t,i){i(e,n("148c"),n("70d4"),n("f665"))})(0,(function(t,e,n,i){"use strict";function s(t){return t&&"object"===typeof t&&"default"in t?t:{default:t}}var r=s(e),o=s(n),a=s(i),c=function(t,e,n){return{endTime:e,insertTime:n,type:"exponentialRampToValue",value:t}},l=function(t,e,n){return{endTime:e,insertTime:n,type:"linearRampToValue",value:t}},u=function(t,e){return{startTime:e,type:"setValue",value:t}},h=function(t,e,n){return{duration:n,startTime:e,type:"setValueCurve",values:t}},d=function(t,e,n){var i=n.startTime,s=n.target,r=n.timeConstant;return s+(e-s)*Math.exp((i-t)/r)},f=function(t){return"exponentialRampToValue"===t.type},p=function(t){return"linearRampToValue"===t.type},m=function(t){return f(t)||p(t)},g=function(t){return"setValue"===t.type},b=function(t){return"setValueCurve"===t.type},v=function t(e,n,i,s){var r=e[n];return void 0===r?s:m(r)||g(r)?r.value:b(r)?r.values[r.values.length-1]:d(i,t(e,n-1,r.startTime,s),r)},y=function(t,e,n,i,s){return void 0===n?[i.insertTime,s]:m(n)?[n.endTime,n.value]:g(n)?[n.startTime,n.value]:b(n)?[n.startTime+n.duration,n.values[n.values.length-1]]:[n.startTime,v(t,e-1,n.startTime,s)]},S=function(t){return"cancelAndHold"===t.type},x=function(t){return"cancelScheduledValues"===t.type},_=function(t){return S(t)||x(t)?t.cancelTime:f(t)||p(t)?t.endTime:t.startTime},w=function(t,e,n,i){var s=i.endTime,r=i.value;return n===r?r:0<n&&0<r||n<0&&r<0?n*Math.pow(r/n,(t-e)/(s-e)):0},E=function(t,e,n,i){var s=i.endTime,r=i.value;return n+(t-e)/(s-e)*(r-n)},T=function(t,e){var n=Math.floor(e),i=Math.ceil(e);return n===i?t[n]:(1-(e-n))*t[n]+(1-(i-e))*t[i]},C=function(t,e){var n=e.duration,i=e.startTime,s=e.values,r=(t-i)/n*(s.length-1);return T(s,r)},M=function(t){return"setTarget"===t.type},P=function(){function t(e){o["default"](this,t),this._automationEvents=[],this._currenTime=0,this._defaultValue=e}return a["default"](t,[{key:Symbol.iterator,value:function(){return this._automationEvents[Symbol.iterator]()}},{key:"add",value:function(t){var e=_(t);if(S(t)||x(t)){var n=this._automationEvents.findIndex((function(t){return _(t)>=e})),i=this._automationEvents[n];if(-1!==n&&(this._automationEvents=this._automationEvents.slice(0,n)),S(t)){var s=this._automationEvents[this._automationEvents.length-1];if(void 0!==i&&m(i)){if(M(s))throw new Error("The internal list is malformed.");var r=b(s)?s.startTime+s.duration:_(s),o=b(s)?s.values[s.values.length-1]:s.value,a=f(i)?w(e,r,o,i):E(e,r,o,i),d=f(i)?c(a,e,this._currenTime):l(a,e,this._currenTime);this._automationEvents.push(d)}void 0!==s&&M(s)&&this._automationEvents.push(u(this.getValue(e),e)),void 0!==s&&b(s)&&s.startTime+s.duration>e&&(this._automationEvents[this._automationEvents.length-1]=h(new Float32Array([6,7]),s.startTime,e-s.startTime))}}else{var g=this._automationEvents.findIndex((function(t){return _(t)>e})),v=-1===g?this._automationEvents[this._automationEvents.length-1]:this._automationEvents[g-1];if(void 0!==v&&b(v)&&_(v)+v.duration>e)return!1;var y=f(t)?c(t.value,t.endTime,this._currenTime):p(t)?l(t.value,e,this._currenTime):t;if(-1===g)this._automationEvents.push(y);else{if(b(t)&&e+t.duration>_(this._automationEvents[g]))return!1;this._automationEvents.splice(g,0,y)}}return!0}},{key:"flush",value:function(t){var e=this._automationEvents.findIndex((function(e){return _(e)>t}));if(e>1){var n=this._automationEvents.slice(e-1),i=n[0];M(i)&&n.unshift(u(v(this._automationEvents,e-2,i.startTime,this._defaultValue),i.startTime)),this._automationEvents=n}}},{key:"getValue",value:function(t){if(0===this._automationEvents.length)return this._defaultValue;var e=this._automationEvents[this._automationEvents.length-1],n=this._automationEvents.findIndex((function(e){return _(e)>t})),i=this._automationEvents[n],s=_(e)<=t?e:this._automationEvents[n-1];if(void 0!==s&&M(s)&&(void 0===i||!m(i)||i.insertTime>t))return d(t,v(this._automationEvents,n-2,s.startTime,this._defaultValue),s);if(void 0!==s&&g(s)&&(void 0===i||!m(i)))return s.value;if(void 0!==s&&b(s)&&(void 0===i||!m(i)||s.startTime+s.duration>t))return t<s.startTime+s.duration?C(t,s):s.values[s.values.length-1];if(void 0!==s&&m(s)&&(void 0===i||!m(i)))return s.value;if(void 0!==i&&f(i)){var o=y(this._automationEvents,n-1,s,i,this._defaultValue),a=r["default"](o,2),c=a[0],l=a[1];return w(t,c,l,i)}if(void 0!==i&&p(i)){var u=y(this._automationEvents,n-1,s,i,this._defaultValue),h=r["default"](u,2),S=h[0],x=h[1];return E(t,S,x,i)}return this._defaultValue}}]),t}(),A=function(t){return{cancelTime:t,type:"cancelAndHold"}},I=function(t){return{cancelTime:t,type:"cancelScheduledValues"}},L=function(t,e){return{endTime:e,type:"exponentialRampToValue",value:t}},O=function(t,e){return{endTime:e,type:"linearRampToValue",value:t}},k=function(t,e,n){return{startTime:e,target:t,timeConstant:n,type:"setTarget"}};t.AutomationEventList=P,t.createCancelAndHoldAutomationEvent=A,t.createCancelScheduledValuesAutomationEvent=I,t.createExponentialRampToValueAutomationEvent=L,t.createLinearRampToValueAutomationEvent=O,t.createSetTargetAutomationEvent=k,t.createSetValueAutomationEvent=u,t.createSetValueCurveAutomationEvent=h,Object.defineProperty(t,"__esModule",{value:!0})}))},dd4d:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=(t,e,n,i)=>class extends t{constructor(t,s){const r=n(t),o=e(r,s);if(i(r))throw new TypeError;super(t,!0,o,null),this._nativeMediaStreamAudioSourceNode=o}get mediaStream(){return this._nativeMediaStreamAudioSourceNode.mediaStream}}},dd5c:function(t,e){},dd6b:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=t=>(e,{mediaStream:n})=>{const i=n.getAudioTracks(),s=t(e,t=>{i.sort((t,e)=>t.id<e.id?-1:t.id>e.id?1:0);const e=i.slice(0,1);return t.createMediaStreamSource(new MediaStream(e))});return Object.defineProperty(s,"mediaStream",{value:n}),s}},dd9b:function(t,e){},ddbb:function(t,e){},de43:function(t,e){},def8:function(t,e){},df14:function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var i=n("99e8"),s=n("9bd2"),r=n("8af4");function o(t,e){const n=e[0]*e[0]+e[1]*e[1];return[(t[0]*e[0]+t[1]*e[1])/n,(t[1]*e[0]-t[0]*e[1])/n]}function a(t,e){return[t[0]*e[0]-t[1]*e[1],t[0]*e[1]+t[1]*e[0]]}function c(t,e){let n=[0,0];for(let i=t.length-1;i>=0;i-=1)n=a(n,e),n[0]+=t[i];return n}const l=(t,e,n,a)=>(l,u,{channelCount:h,channelCountMode:d,channelInterpretation:f,feedback:p,feedforward:m})=>{const g=Object(i["a"])(u,l.sampleRate),b=p.length,v=m.length,y=Math.min(b,v);if(0===p.length||p.length>20)throw a();if(0===p[0])throw e();if(0===m.length||m.length>20)throw a();if(0===m[0])throw e();if(1!==p[0]){for(let t=0;t<v;t+=1)m[t]/=p[0];for(let t=1;t<b;t+=1)p[t]/=p[0]}const S=n(l,g,h,h);S.channelCount=h,S.channelCountMode=d,S.channelInterpretation=f;const x=32,_=[],w=[],E=[];for(let t=0;t<h;t+=1){_.push(0);const t=new Float32Array(x),e=new Float32Array(x);t.fill(0),e.fill(0),w.push(t),E.push(e)}S.onaudioprocess=t=>{const e=t.inputBuffer,n=t.outputBuffer,i=e.numberOfChannels;for(let r=0;r<i;r+=1){const t=e.getChannelData(r),i=n.getChannelData(r);_[r]=Object(s["a"])(p,b,m,v,y,w[r],E[r],_[r],x,t,i)}};const T=l.sampleRate/2,C={get bufferSize(){return g},get channelCount(){return S.channelCount},set channelCount(t){S.channelCount=t},get channelCountMode(){return S.channelCountMode},set channelCountMode(t){S.channelCountMode=t},get channelInterpretation(){return S.channelInterpretation},set channelInterpretation(t){S.channelInterpretation=t},get context(){return S.context},get inputs(){return[S]},get numberOfInputs(){return S.numberOfInputs},get numberOfOutputs(){return S.numberOfOutputs},addEventListener(...t){return S.addEventListener(t[0],t[1],t[2])},dispatchEvent(...t){return S.dispatchEvent(t[0])},getFrequencyResponse(e,n,i){if(e.length!==n.length||n.length!==i.length)throw t();const s=e.length;for(let t=0;t<s;t+=1){const s=-Math.PI*(e[t]/T),r=[Math.cos(s),Math.sin(s)],a=c(m,r),l=c(p,r),u=o(a,l);n[t]=Math.sqrt(u[0]*u[0]+u[1]*u[1]),i[t]=Math.atan2(u[1],u[0])}},removeEventListener(...t){return S.removeEventListener(t[0],t[1],t[2])}};return Object(r["a"])(C,S)}},df1b:function(t,e,n){var i=n("5ca1"),s=n("d8e8"),r=n("cb7c"),o=(n("7726").Reflect||{}).apply,a=Function.apply;i(i.S+i.F*!n("79e5")((function(){o((function(){}))})),"Reflect",{apply:function(t,e,n){var i=s(t),c=r(n);return o?o(i,e,c):a.call(i,e,c)}})},dfe6:function(t,e){},e028:function(t,e){},e067:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=t=>()=>{if(null===t)return Promise.resolve(!1);const e=new t(1,1,44100);if(void 0===e.createStereoPanner)return Promise.resolve(!0);if(void 0===e.createConstantSource)return Promise.resolve(!0);const n=e.createConstantSource(),i=e.createStereoPanner();return n.channelCount=1,n.offset.value=1,i.channelCount=1,n.start(),n.connect(i).connect(e.destination),e.startRendering().then(t=>1!==t.getChannelData(0)[0])}},e0b8:function(t,e,n){"use strict";var i=n("7726"),s=n("5ca1"),r=n("2aba"),o=n("dcbc"),a=n("67ab"),c=n("4a59"),l=n("f605"),u=n("d3f4"),h=n("79e5"),d=n("5cc5"),f=n("7f20"),p=n("5dbc");t.exports=function(t,e,n,m,g,b){var v=i[t],y=v,S=g?"set":"add",x=y&&y.prototype,_={},w=function(t){var e=x[t];r(x,t,"delete"==t||"has"==t?function(t){return!(b&&!u(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return b&&!u(t)?void 0:e.call(this,0===t?0:t)}:"add"==t?function(t){return e.call(this,0===t?0:t),this}:function(t,n){return e.call(this,0===t?0:t,n),this})};if("function"==typeof y&&(b||x.forEach&&!h((function(){(new y).entries().next()})))){var E=new y,T=E[S](b?{}:-0,1)!=E,C=h((function(){E.has(1)})),M=d((function(t){new y(t)})),P=!b&&h((function(){var t=new y,e=5;while(e--)t[S](e,e);return!t.has(-0)}));M||(y=e((function(e,n){l(e,y,t);var i=p(new v,e,y);return void 0!=n&&c(n,g,i[S],i),i})),y.prototype=x,x.constructor=y),(C||P)&&(w("delete"),w("has"),g&&w("get")),(P||T)&&w(S),b&&x.clear&&delete x.clear}else y=m.getConstructor(e,t,g,S),o(y.prototype,n),a.NEED=!0;return f(y,t),_[t]=y,s(s.G+s.W+s.F*(y!=v),_),b||m.setStrong(y,t,g),y}},e0c0:function(t,e){},e0ce:function(t,e){},e11e:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},e12f:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));const i={channelCount:2,channelCountMode:"explicit",channelInterpretation:"speakers"},s=(t,e,n,s)=>class extends t{constructor(t,r=i){const o=n(t);if(s(o))throw new TypeError;const a={...i,...r},c=e(o,a);super(t,!1,c,null),this._nativeMediaStreamAudioDestinationNode=c}get stream(){return this._nativeMediaStreamAudioDestinationNode.stream}}},e167:function(t,e){},e190:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=(t,e)=>t.context===e},e262:function(t,e){},e26b:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=()=>new Promise(t=>{const e=new ArrayBuffer(0),{port1:n,port2:i}=new MessageChannel;n.onmessage=({data:e})=>t(null!==e),i.postMessage(e,[e])})},e427:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("752e"),s=n("d057");const r=t=>Object(s["a"])(i["i"],t)},e451:function(t,e){function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}t.exports=n},e466:function(t,e){},e4f7:function(t,e,n){var i=n("4bf8"),s=n("38fd");n("5eda")("getPrototypeOf",(function(){return function(t){return s(i(t))}}))},e508:function(t,e){},e564:function(t,e){},e574:function(t,e){},e683:function(t,e,n){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},e70b:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("049b");const s=(t,e,n,s)=>r=>t(i["a"],()=>Object(i["a"])(r))?Promise.resolve(t(s,s)).then(t=>{if(!t){const t=n(r,512,0,1);r.oncomplete=()=>{t.onaudioprocess=null,t.disconnect()},t.onaudioprocess=()=>r.currentTime,t.connect(r.destination)}return r.startRendering()}):new Promise(t=>{const n=e(r,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});r.oncomplete=e=>{n.disconnect(),t(e.renderedBuffer)},n.connect(r.destination),r.startRendering()})},e755:function(t,e){},e804:function(t,e,n){"use strict";var i=n("5ca1"),s=n("f1ae");i(i.S+i.F*n("79e5")((function(){function t(){}return!(Array.of.call(t)instanceof t)})),"Array",{of:function(){var t=0,e=arguments.length,n=new("function"==typeof this?this:Array)(e);while(e>t)s(n,t,arguments[t++]);return n.length=e,n}})},e842:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=(t,e)=>(n,i,s,r)=>{const o=t(i);return o.replay(s),e(i,n,s,r)}},e853:function(t,e,n){var i=n("d3f4"),s=n("1169"),r=n("2b4c")("species");t.exports=function(t){var e;return s(t)&&(e=t.constructor,"function"!=typeof e||e!==Array&&!s(e.prototype)||(e=void 0),i(e)&&(e=e[r],null===e&&(e=void 0))),void 0===e?Array:e}},e945:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n("0bf9"),s=n("180a"),r=n("5b43");const o=t=>(e,n)=>{const o=t(e,t=>t.createBiquadFilter());return Object(r["a"])(o,n),Object(i["a"])(o,n,"Q"),Object(i["a"])(o,n,"detune"),Object(i["a"])(o,n,"frequency"),Object(i["a"])(o,n,"gain"),Object(s["a"])(o,n,"type"),o}},e9a4:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=t=>e=>new Promise((n,i)=>{if(null===t)return void i(new SyntaxError);const s=t.document.head;if(null===s)i(new SyntaxError);else{const r=t.document.createElement("script"),o=new Blob([e],{type:"application/javascript"}),a=URL.createObjectURL(o),c=t.onerror,l=()=>{t.onerror=c,URL.revokeObjectURL(a)};t.onerror=(e,n,s,r,o)=>n===a||n===t.location.href&&1===s&&1===r?(l(),i(o),!1):null!==c?c(e,n,s,r,o):void 0,r.onerror=()=>{l(),i(new SyntaxError)},r.onload=()=>{l(),n()},r.src=a,r.type="module",s.appendChild(r)}})},e9a6:function(t,e){},e9e8:function(t,e){},ea30:function(t,e){},eb9d:function(t,e){},ebd6:function(t,e,n){var i=n("cb7c"),s=n("d8e8"),r=n("2b4c")("species");t.exports=function(t,e){var n,o=i(t).constructor;return void 0===o||void 0==(n=i(o)[r])?e:s(n)}},ebde:function(t,e,n){var i=n("11e9"),s=n("5ca1"),r=n("cb7c");s(s.S,"Reflect",{getOwnPropertyDescriptor:function(t,e){return i.f(r(t),e)}})},ec19:function(t,e){},ec30:function(t,e,n){"use strict";if(n("9e1e")){var i=n("2d00"),s=n("7726"),r=n("79e5"),o=n("5ca1"),a=n("0f88"),c=n("ed0b"),l=n("9b43"),u=n("f605"),h=n("4630"),d=n("32e9"),f=n("dcbc"),p=n("4588"),m=n("9def"),g=n("09fa"),b=n("77f1"),v=n("6a99"),y=n("69a8"),S=n("23c6"),x=n("d3f4"),_=n("4bf8"),w=n("33a4"),E=n("2aeb"),T=n("38fd"),C=n("9093").f,M=n("27ee"),P=n("ca5a"),A=n("2b4c"),I=n("0a49"),L=n("c366"),O=n("ebd6"),k=n("cadf"),R=n("84f2"),N=n("5cc5"),D=n("7a56"),V=n("36bd"),B=n("ba92"),F=n("86cc"),j=n("11e9"),G=F.f,W=j.f,$=s.RangeError,z=s.TypeError,H=s.Uint8Array,U="ArrayBuffer",Y="Shared"+U,X="BYTES_PER_ELEMENT",K="prototype",q=Array[K],Z=c.ArrayBuffer,J=c.DataView,Q=I(0),tt=I(2),et=I(3),nt=I(4),it=I(5),st=I(6),rt=L(!0),ot=L(!1),at=k.values,ct=k.keys,lt=k.entries,ut=q.lastIndexOf,ht=q.reduce,dt=q.reduceRight,ft=q.join,pt=q.sort,mt=q.slice,gt=q.toString,bt=q.toLocaleString,vt=A("iterator"),yt=A("toStringTag"),St=P("typed_constructor"),xt=P("def_constructor"),_t=a.CONSTR,wt=a.TYPED,Et=a.VIEW,Tt="Wrong length!",Ct=I(1,(function(t,e){return Lt(O(t,t[xt]),e)})),Mt=r((function(){return 1===new H(new Uint16Array([1]).buffer)[0]})),Pt=!!H&&!!H[K].set&&r((function(){new H(1).set({})})),At=function(t,e){var n=p(t);if(n<0||n%e)throw $("Wrong offset!");return n},It=function(t){if(x(t)&&wt in t)return t;throw z(t+" is not a typed array!")},Lt=function(t,e){if(!x(t)||!(St in t))throw z("It is not a typed array constructor!");return new t(e)},Ot=function(t,e){return kt(O(t,t[xt]),e)},kt=function(t,e){var n=0,i=e.length,s=Lt(t,i);while(i>n)s[n]=e[n++];return s},Rt=function(t,e,n){G(t,e,{get:function(){return this._d[n]}})},Nt=function(t){var e,n,i,s,r,o,a=_(t),c=arguments.length,u=c>1?arguments[1]:void 0,h=void 0!==u,d=M(a);if(void 0!=d&&!w(d)){for(o=d.call(a),i=[],e=0;!(r=o.next()).done;e++)i.push(r.value);a=i}for(h&&c>2&&(u=l(u,arguments[2],2)),e=0,n=m(a.length),s=Lt(this,n);n>e;e++)s[e]=h?u(a[e],e):a[e];return s},Dt=function(){var t=0,e=arguments.length,n=Lt(this,e);while(e>t)n[t]=arguments[t++];return n},Vt=!!H&&r((function(){bt.call(new H(1))})),Bt=function(){return bt.apply(Vt?mt.call(It(this)):It(this),arguments)},Ft={copyWithin:function(t,e){return B.call(It(this),t,e,arguments.length>2?arguments[2]:void 0)},every:function(t){return nt(It(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return V.apply(It(this),arguments)},filter:function(t){return Ot(this,tt(It(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return it(It(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return st(It(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){Q(It(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return ot(It(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return rt(It(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return ft.apply(It(this),arguments)},lastIndexOf:function(t){return ut.apply(It(this),arguments)},map:function(t){return Ct(It(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return ht.apply(It(this),arguments)},reduceRight:function(t){return dt.apply(It(this),arguments)},reverse:function(){var t,e=this,n=It(e).length,i=Math.floor(n/2),s=0;while(s<i)t=e[s],e[s++]=e[--n],e[n]=t;return e},some:function(t){return et(It(this),t,arguments.length>1?arguments[1]:void 0)},sort:function(t){return pt.call(It(this),t)},subarray:function(t,e){var n=It(this),i=n.length,s=b(t,i);return new(O(n,n[xt]))(n.buffer,n.byteOffset+s*n.BYTES_PER_ELEMENT,m((void 0===e?i:b(e,i))-s))}},jt=function(t,e){return Ot(this,mt.call(It(this),t,e))},Gt=function(t){It(this);var e=At(arguments[1],1),n=this.length,i=_(t),s=m(i.length),r=0;if(s+e>n)throw $(Tt);while(r<s)this[e+r]=i[r++]},Wt={entries:function(){return lt.call(It(this))},keys:function(){return ct.call(It(this))},values:function(){return at.call(It(this))}},$t=function(t,e){return x(t)&&t[wt]&&"symbol"!=typeof e&&e in t&&String(+e)==String(e)},zt=function(t,e){return $t(t,e=v(e,!0))?h(2,t[e]):W(t,e)},Ht=function(t,e,n){return!($t(t,e=v(e,!0))&&x(n)&&y(n,"value"))||y(n,"get")||y(n,"set")||n.configurable||y(n,"writable")&&!n.writable||y(n,"enumerable")&&!n.enumerable?G(t,e,n):(t[e]=n.value,t)};_t||(j.f=zt,F.f=Ht),o(o.S+o.F*!_t,"Object",{getOwnPropertyDescriptor:zt,defineProperty:Ht}),r((function(){gt.call({})}))&&(gt=bt=function(){return ft.call(this)});var Ut=f({},Ft);f(Ut,Wt),d(Ut,vt,Wt.values),f(Ut,{slice:jt,set:Gt,constructor:function(){},toString:gt,toLocaleString:Bt}),Rt(Ut,"buffer","b"),Rt(Ut,"byteOffset","o"),Rt(Ut,"byteLength","l"),Rt(Ut,"length","e"),G(Ut,yt,{get:function(){return this[wt]}}),t.exports=function(t,e,n,c){c=!!c;var l=t+(c?"Clamped":"")+"Array",h="get"+t,f="set"+t,p=s[l],b=p||{},v=p&&T(p),y=!p||!a.ABV,_={},w=p&&p[K],M=function(t,n){var i=t._d;return i.v[h](n*e+i.o,Mt)},P=function(t,n,i){var s=t._d;c&&(i=(i=Math.round(i))<0?0:i>255?255:255&i),s.v[f](n*e+s.o,i,Mt)},A=function(t,e){G(t,e,{get:function(){return M(this,e)},set:function(t){return P(this,e,t)},enumerable:!0})};y?(p=n((function(t,n,i,s){u(t,p,l,"_d");var r,o,a,c,h=0,f=0;if(x(n)){if(!(n instanceof Z||(c=S(n))==U||c==Y))return wt in n?kt(p,n):Nt.call(p,n);r=n,f=At(i,e);var b=n.byteLength;if(void 0===s){if(b%e)throw $(Tt);if(o=b-f,o<0)throw $(Tt)}else if(o=m(s)*e,o+f>b)throw $(Tt);a=o/e}else a=g(n),o=a*e,r=new Z(o);d(t,"_d",{b:r,o:f,l:o,e:a,v:new J(r)});while(h<a)A(t,h++)})),w=p[K]=E(Ut),d(w,"constructor",p)):r((function(){p(1)}))&&r((function(){new p(-1)}))&&N((function(t){new p,new p(null),new p(1.5),new p(t)}),!0)||(p=n((function(t,n,i,s){var r;return u(t,p,l),x(n)?n instanceof Z||(r=S(n))==U||r==Y?void 0!==s?new b(n,At(i,e),s):void 0!==i?new b(n,At(i,e)):new b(n):wt in n?kt(p,n):Nt.call(p,n):new b(g(n))})),Q(v!==Function.prototype?C(b).concat(C(v)):C(b),(function(t){t in p||d(p,t,b[t])})),p[K]=w,i||(w.constructor=p));var I=w[vt],L=!!I&&("values"==I.name||void 0==I.name),O=Wt.values;d(p,St,!0),d(w,wt,l),d(w,Et,!0),d(w,xt,p),(c?new p(1)[yt]==l:yt in w)||G(w,yt,{get:function(){return l}}),_[l]=p,o(o.G+o.W+o.F*(p!=b),_),o(o.S,l,{BYTES_PER_ELEMENT:e}),o(o.S+o.F*r((function(){b.of.call(p,1)})),l,{from:Nt,of:Dt}),X in w||d(w,X,e),o(o.P,l,Ft),D(l),o(o.P+o.F*Pt,l,{set:Gt}),o(o.P+o.F*!L,l,Wt),i||w.toString==gt||(w.toString=gt),o(o.P+o.F*r((function(){new p(1).slice()})),l,{slice:jt}),o(o.P+o.F*(r((function(){return[1,2].toLocaleString()!=new p([1,2]).toLocaleString()}))||!r((function(){w.toLocaleString.call([1,2])}))),l,{toLocaleString:Bt}),R[l]=L?I:O,i||L||d(w,vt,O)}}else t.exports=function(){}},ec99:function(t,e){},ec9c:function(t,e){},ecad:function(t,e){},ecf5:function(t,e){},ed0b:function(t,e,n){"use strict";var i=n("7726"),s=n("9e1e"),r=n("2d00"),o=n("0f88"),a=n("32e9"),c=n("dcbc"),l=n("79e5"),u=n("f605"),h=n("4588"),d=n("9def"),f=n("09fa"),p=n("9093").f,m=n("86cc").f,g=n("36bd"),b=n("7f20"),v="ArrayBuffer",y="DataView",S="prototype",x="Wrong length!",_="Wrong index!",w=i[v],E=i[y],T=i.Math,C=i.RangeError,M=i.Infinity,P=w,A=T.abs,I=T.pow,L=T.floor,O=T.log,k=T.LN2,R="buffer",N="byteLength",D="byteOffset",V=s?"_b":R,B=s?"_l":N,F=s?"_o":D;function j(t,e,n){var i,s,r,o=new Array(n),a=8*n-e-1,c=(1<<a)-1,l=c>>1,u=23===e?I(2,-24)-I(2,-77):0,h=0,d=t<0||0===t&&1/t<0?1:0;for(t=A(t),t!=t||t===M?(s=t!=t?1:0,i=c):(i=L(O(t)/k),t*(r=I(2,-i))<1&&(i--,r*=2),t+=i+l>=1?u/r:u*I(2,1-l),t*r>=2&&(i++,r/=2),i+l>=c?(s=0,i=c):i+l>=1?(s=(t*r-1)*I(2,e),i+=l):(s=t*I(2,l-1)*I(2,e),i=0));e>=8;o[h++]=255&s,s/=256,e-=8);for(i=i<<e|s,a+=e;a>0;o[h++]=255&i,i/=256,a-=8);return o[--h]|=128*d,o}function G(t,e,n){var i,s=8*n-e-1,r=(1<<s)-1,o=r>>1,a=s-7,c=n-1,l=t[c--],u=127&l;for(l>>=7;a>0;u=256*u+t[c],c--,a-=8);for(i=u&(1<<-a)-1,u>>=-a,a+=e;a>0;i=256*i+t[c],c--,a-=8);if(0===u)u=1-o;else{if(u===r)return i?NaN:l?-M:M;i+=I(2,e),u-=o}return(l?-1:1)*i*I(2,u-e)}function W(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}function $(t){return[255&t]}function z(t){return[255&t,t>>8&255]}function H(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function U(t){return j(t,52,8)}function Y(t){return j(t,23,4)}function X(t,e,n){m(t[S],e,{get:function(){return this[n]}})}function K(t,e,n,i){var s=+n,r=f(s);if(r+e>t[B])throw C(_);var o=t[V]._b,a=r+t[F],c=o.slice(a,a+e);return i?c:c.reverse()}function q(t,e,n,i,s,r){var o=+n,a=f(o);if(a+e>t[B])throw C(_);for(var c=t[V]._b,l=a+t[F],u=i(+s),h=0;h<e;h++)c[l+h]=u[r?h:e-h-1]}if(o.ABV){if(!l((function(){w(1)}))||!l((function(){new w(-1)}))||l((function(){return new w,new w(1.5),new w(NaN),w.name!=v}))){w=function(t){return u(this,w),new P(f(t))};for(var Z,J=w[S]=P[S],Q=p(P),tt=0;Q.length>tt;)(Z=Q[tt++])in w||a(w,Z,P[Z]);r||(J.constructor=w)}var et=new E(new w(2)),nt=E[S].setInt8;et.setInt8(0,2147483648),et.setInt8(1,2147483649),!et.getInt8(0)&&et.getInt8(1)||c(E[S],{setInt8:function(t,e){nt.call(this,t,e<<24>>24)},setUint8:function(t,e){nt.call(this,t,e<<24>>24)}},!0)}else w=function(t){u(this,w,v);var e=f(t);this._b=g.call(new Array(e),0),this[B]=e},E=function(t,e,n){u(this,E,y),u(t,w,y);var i=t[B],s=h(e);if(s<0||s>i)throw C("Wrong offset!");if(n=void 0===n?i-s:d(n),s+n>i)throw C(x);this[V]=t,this[F]=s,this[B]=n},s&&(X(w,N,"_l"),X(E,R,"_b"),X(E,N,"_l"),X(E,D,"_o")),c(E[S],{getInt8:function(t){return K(this,1,t)[0]<<24>>24},getUint8:function(t){return K(this,1,t)[0]},getInt16:function(t){var e=K(this,2,t,arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=K(this,2,t,arguments[1]);return e[1]<<8|e[0]},getInt32:function(t){return W(K(this,4,t,arguments[1]))},getUint32:function(t){return W(K(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return G(K(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return G(K(this,8,t,arguments[1]),52,8)},setInt8:function(t,e){q(this,1,t,$,e)},setUint8:function(t,e){q(this,1,t,$,e)},setInt16:function(t,e){q(this,2,t,z,e,arguments[2])},setUint16:function(t,e){q(this,2,t,z,e,arguments[2])},setInt32:function(t,e){q(this,4,t,H,e,arguments[2])},setUint32:function(t,e){q(this,4,t,H,e,arguments[2])},setFloat32:function(t,e){q(this,4,t,Y,e,arguments[2])},setFloat64:function(t,e){q(this,8,t,U,e,arguments[2])}});b(w,v),b(E,y),a(E[S],o.VIEW,!0),e[v]=w,e[y]=E},ed12:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=t=>e=>{const n=t(e,t=>t.createBufferSource()),i=e.createBuffer(1,1,44100);n.buffer=i;try{n.start(0,1)}catch{return!1}return!0}},ed50:function(t,e,n){"use strict";var i=n("5ca1"),s=n("2e08"),r=n("a25f"),o=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(r);i(i.P+i.F*o,"String",{padEnd:function(t){return s(this,t,arguments.length>1?arguments[1]:void 0,!1)}})},ee1d:function(t,e,n){var i=n("5ca1");i(i.S,"Number",{isNaN:function(t){return t!=t}})},ee83:function(t,e){},eee3:function(t,e){},ef33:function(t,e){},ef86:function(t,e){},efbd:function(t,e){},efdd:function(t,e){},efe3:function(t,e){},efe6:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=t=>e=>{const n=t(e,t=>t.createBufferSource());n.start();try{n.start()}catch{return!0}return!1}},f003:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var i=n("752e");const s={construct(){return s}},r=t=>{try{const e=new Proxy(t,s);new e}catch{return!1}return!0},o=/^import(?:(?:[\s]+[\w]+|(?:[\s]+[\w]+[\s]*,)?[\s]*\{[\s]*[\w]+(?:[\s]+as[\s]+[\w]+)?(?:[\s]*,[\s]*[\w]+(?:[\s]+as[\s]+[\w]+)?)*[\s]*}|(?:[\s]+[\w]+[\s]*,)?[\s]*\*[\s]+as[\s]+[\w]+)[\s]+from)?(?:[\s]*)("([^"\\]|\\.)+"|'([^'\\]|\\.)+')(?:[\s]*);?/,a=(t,e)=>{const n=[];let i=t.replace(/^[\s]+/,""),s=i.match(o);while(null!==s){const t=s[1].slice(1,-1),r=s[0].replace(/([\s]+)?;?$/,"").replace(t,new URL(t,e).toString());n.push(r),i=i.slice(s[0].length).replace(/^[\s]+/,""),s=i.match(o)}return[n.join(";"),i]},c=t=>{if(void 0!==t&&!Array.isArray(t))throw new TypeError("The parameterDescriptors property of given value for processorCtor is not an array.")},l=t=>{if(!r(t))throw new TypeError("The given value for processorCtor should be a constructor.");if(null===t.prototype||"object"!==typeof t.prototype)throw new TypeError("The given value for processorCtor should have a prototype.")},u=(t,e,n,s,r,o,u,h,d)=>(f,p,m={credentials:"omit"})=>{const g=o(f),b=new URL(p,d.location.href).toString();if(void 0!==g.audioWorklet)return s(p).then(t=>{const[e,n]=a(t,b),i=`${e};(registerProcessor=>{${n}\n})((n,p)=>registerProcessor(n,class extends p{process(i,o,p){return super.process(i.map(j=>j.some(k=>k.length===0)?[]:j),o,p)}}))`,s=new Blob([i],{type:"application/javascript; charset=utf-8"}),o=URL.createObjectURL(s),c=r(g),l=null!==c?c:g;return l.audioWorklet.addModule(o,m).then(()=>URL.revokeObjectURL(o)).catch(t=>{throw URL.revokeObjectURL(o),void 0!==t.code&&"SyntaxError"!==t.name||(t.code=12),t})});const v=h.get(f);if(void 0!==v&&v.has(p))return Promise.resolve();const y=u.get(f);if(void 0!==y){const t=y.get(p);if(void 0!==t)return t}const S=s(p).then(t=>{const[n,i]=a(t,b),s=`${n};((a,b)=>{(a[b]=a[b]||[]).push((AudioWorkletProcessor,global,registerProcessor,sampleRate,self,window)=>{${i}\n})})(window,'_AWGS')`;return e(s)}).then(()=>{const e=d._AWGS.pop();if(void 0===e)throw new SyntaxError;n(g.currentTime,g.sampleRate,()=>e(class{},void 0,(e,n)=>{if(""===e.trim())throw t();const s=i["j"].get(g);if(void 0!==s){if(s.has(e))throw t();l(n),c(n.parameterDescriptors),s.set(e,n)}else l(n),c(n.parameterDescriptors),i["j"].set(g,new Map([[e,n]]))},g.sampleRate,void 0,void 0))}).catch(t=>{throw void 0!==t.code&&"SyntaxError"!==t.name||(t.code=12),t});return void 0===y?u.set(f,new Map([[p,S]])):y.set(p,S),S.then(()=>{const t=h.get(f);void 0===t?h.set(f,new Set([p])):t.add(p)}).catch(()=>{}).then(()=>{const t=u.get(f);void 0!==t&&t.delete(p)}),S}},f02c:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("8af4");const s=(t,e,n,s)=>(r,{offset:o,...a})=>{const c=r.createBuffer(1,2,r.sampleRate),l=e(r,{buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1}),u=n(r,{...a,gain:o}),h=c.getChannelData(0);h[0]=1,h[1]=1,l.buffer=c,l.loop=!0;const d={get bufferSize(){},get channelCount(){return u.channelCount},set channelCount(t){u.channelCount=t},get channelCountMode(){return u.channelCountMode},set channelCountMode(t){u.channelCountMode=t},get channelInterpretation(){return u.channelInterpretation},set channelInterpretation(t){u.channelInterpretation=t},get context(){return u.context},get inputs(){return[]},get numberOfInputs(){return l.numberOfInputs},get numberOfOutputs(){return u.numberOfOutputs},get offset(){return u.gain},get onended(){return l.onended},set onended(t){l.onended=t},addEventListener(...t){return l.addEventListener(t[0],t[1],t[2])},dispatchEvent(...t){return l.dispatchEvent(t[0])},removeEventListener(...t){return l.removeEventListener(t[0],t[1],t[2])},start(t=0){l.start.call(l,t)},stop(t=0){l.stop.call(l,t)}},f=()=>l.connect(u),p=()=>l.disconnect(u);return t(r,l),s(Object(i["a"])(d,u),f,p)}},f06f:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("59e9");const s=t=>"delayTime"in t,r=(t,e,n)=>function r(o,a){const c=Object(i["a"])(a)?a:n(t,a);if(s(c))return[];if(o[0]===c)return[o];if(o.includes(c))return[];const{outputs:l}=e(c);return Array.from(l).map(t=>r([...o,c],t[0])).reduce((t,e)=>t.concat(e),[])}},f0c1:function(t,e,n){"use strict";var i=n("d8e8"),s=n("d3f4"),r=n("31f4"),o=[].slice,a={},c=function(t,e,n){if(!(e in a)){for(var i=[],s=0;s<e;s++)i[s]="a["+s+"]";a[e]=Function("F,a","return new F("+i.join(",")+")")}return a[e](t,n)};t.exports=Function.bind||function(t){var e=i(this),n=o.call(arguments,1),a=function(){var i=n.concat(o.call(arguments));return this instanceof a?c(e,i.length,i):r(e,i,t)};return s(e.prototype)&&(a.prototype=e.prototype),a}},f16d:function(t,e,n){"use strict";var i=n("54a9"),s={},r={gain:1,attack:.01,decay:.1,sustain:.9,release:.3,loop:!1,cents:0,loopStart:0,loopEnd:0};function o(t,e,n){var i=!1,o=0,a={},c=t.createGain();c.gain.value=1;var h=Object.assign({},r,n),d={context:t,out:c,opts:h};return e instanceof AudioBuffer?d.buffer=e:d.buffers=e,d.start=function(e,n,r){if(d.buffer&&null!==e)return d.start(null,e,n);var o=e?d.buffers[e]:d.buffer;if(o){if(i){var a=r||s;n=Math.max(t.currentTime,n||0),d.emit("start",n,e,a);var c=p(e,o,a);return c.id=f(e,c),c.env.start(n),c.source.start(n),d.emit("started",n,c.id,c),a.duration&&c.stop(n+a.duration),c}console.warn("SamplePlayer not connected to any node.")}else console.warn("Buffer "+e+" not found.")},d.play=function(t,e,n){return d.start(t,e,n)},d.stop=function(t,e){var n;return e=e||Object.keys(a),e.map((function(e){return n=a[e],n?(n.stop(t),n.id):null}))},d.connect=function(t){return i=!0,c.connect(t),d},d.emit=function(t,e,n,i){d.onevent&&d.onevent(t,e,n,i);var s=d["on"+t];s&&s(e,n,i)},d;function f(e,n){return n.id=o++,a[n.id]=n,n.source.onended=function(){var e=t.currentTime;n.source.disconnect(),n.env.disconnect(),n.disconnect(),d.emit("ended",e,n.id,n)},n.id}function p(e,n,i){var s=t.createGain();return s.gain.value=0,s.connect(c),s.env=l(t,i,h),s.env.connect(s.gain),s.source=t.createBufferSource(),s.source.buffer=n,s.source.connect(s),s.source.loop=i.loop||h.loop,s.source.playbackRate.value=u(i.cents||h.cents),s.source.loopStart=i.loopStart||h.loopStart,s.source.loopEnd=i.loopEnd||h.loopEnd,s.stop=function(n){var i=n||t.currentTime;d.emit("stop",i,e);var r=s.env.stop(i);s.source.stop(r)},s}}function a(t){return"number"===typeof t}var c=["attack","decay","sustain","release"];function l(t,e,n){var s=i(t),r=e.adsr||n.adsr;return c.forEach((function(t,i){s[t]=r?r[i]:e[t]||n[t]})),s.value.value=a(e.gain)?e.gain:a(n.gain)?n.gain:1,s}function u(t){return t?Math.pow(2,t/1200):1}t.exports=o},f1ae:function(t,e,n){"use strict";var i=n("86cc"),s=n("4630");t.exports=function(t,e,n){e in t?i.f(t,e,s(0,n)):t[e]=n}},f209:function(t,e){},f26c:function(t,e){},f275:function(t,e){},f28c:function(t,e){var n,i,s=t.exports={};function r(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function a(t){if(n===setTimeout)return setTimeout(t,0);if((n===r||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}function c(t){if(i===clearTimeout)return clearTimeout(t);if((i===o||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(t);try{return i(t)}catch(e){try{return i.call(null,t)}catch(e){return i.call(this,t)}}}(function(){try{n="function"===typeof setTimeout?setTimeout:r}catch(t){n=r}try{i="function"===typeof clearTimeout?clearTimeout:o}catch(t){i=o}})();var l,u=[],h=!1,d=-1;function f(){h&&l&&(h=!1,l.length?u=l.concat(u):d=-1,u.length&&p())}function p(){if(!h){var t=a(f);h=!0;var e=u.length;while(e){l=u,u=[];while(++d<e)l&&l[d].run();d=-1,e=u.length}l=null,h=!1,c(t)}}function m(t,e){this.fun=t,this.array=e}function g(){}s.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];u.push(new m(t,e)),1!==u.length||h||a(p)},m.prototype.run=function(){this.fun.apply(null,this.array)},s.title="browser",s.browser=!0,s.env={},s.argv=[],s.version="",s.versions={},s.on=g,s.addListener=g,s.once=g,s.off=g,s.removeListener=g,s.removeAllListeners=g,s.emit=g,s.prependListener=g,s.prependOnceListener=g,s.listeners=function(t){return[]},s.binding=function(t){throw new Error("process.binding is not supported")},s.cwd=function(){return"/"},s.chdir=function(t){throw new Error("process.chdir is not supported")},s.umask=function(){return 0}},f386:function(t,e,n){"use strict";n("386b")("small",(function(t){return function(){return t(this,"small","","")}}))},f3c6:function(t,e){},f400:function(t,e,n){"use strict";var i=n("c26b"),s=n("b39a"),r="Map";t.exports=n("e0b8")(r,(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{get:function(t){var e=i.getEntry(s(this,r),t);return e&&e.v},set:function(t,e){return i.def(s(this,r),0===t?0:t,e)}},i,!0)},f406:function(t,e){},f410:function(t,e){},f4a5:function(t,e){},f4cc:function(t,e){},f4ff:function(t,e,n){var i=n("5ca1"),s=Math.imul;i(i.S+i.F*n("79e5")((function(){return-5!=s(4294967295,5)||2!=s.length})),"Math",{imul:function(t,e){var n=65535,i=+t,s=+e,r=n&i,o=n&s;return 0|r*o+((n&i>>>16)*o+r*(n&s>>>16)<<16>>>0)}})},f559:function(t,e,n){"use strict";var i=n("5ca1"),s=n("9def"),r=n("d2c8"),o="startsWith",a=""[o];i(i.P+i.F*n("5147")(o),"String",{startsWith:function(t){var e=r(this,t,o),n=s(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),i=String(t);return a?a.call(e,i,n):e.slice(n,n+i.length)===i}})},f576:function(t,e,n){"use strict";var i=n("5ca1"),s=n("2e08"),r=n("a25f"),o=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(r);i(i.P+i.F*o,"String",{padStart:function(t){return s(this,t,arguments.length>1?arguments[1]:void 0,!0)}})},f5be:function(t,e){},f600:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=()=>{try{return new DOMException("","NotSupportedError")}catch(t){return t.code=9,t.name="NotSupportedError",t}}},f605:function(t,e){t.exports=function(t,e,n,i){if(!(t instanceof e)||void 0!==i&&i in t)throw TypeError(n+": incorrect invocation!");return t}},f612:function(t,e){},f638:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=t=>()=>{if(null===t)return!1;const e=new t(1,1,44100),n=e.createBuffer(1,1,44100);if(void 0===n.copyToChannel)return!0;const i=new Float32Array(2);try{n.copyFromChannel(i,0,0)}catch{return!1}return!0}},f665:function(t,e){function n(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function i(t,e,i){return e&&n(t.prototype,e),i&&n(t,i),t}t.exports=i},f6b3:function(t,e,n){var i=n("5ca1");i(i.S,"Reflect",{has:function(t,e){return e in t}})},f6b4:function(t,e,n){"use strict";var i=n("c532");function s(){this.handlers=[]}s.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},s.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},s.prototype.forEach=function(t){i.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=s},f6f8:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=(t,e)=>(n,i,s)=>{const r=new Set;return n.connect=(s=>(o,a=0,c=0)=>{const l=0===r.size;if(e(o))return s.call(n,o,a,c),t(r,[o,a,c],t=>t[0]===o&&t[1]===a&&t[2]===c,!0),l&&i(),o;s.call(n,o,a),t(r,[o,a],t=>t[0]===o&&t[1]===a,!0),l&&i()})(n.connect),n.disconnect=(t=>(i,o,a)=>{const c=r.size>0;if(void 0===i)t.apply(n),r.clear();else if("number"===typeof i){t.call(n,i);for(const t of r)t[1]===i&&r.delete(t)}else{e(i)?t.call(n,i,o,a):t.call(n,i,o);for(const t of r)t[0]!==i||void 0!==o&&t[1]!==o||void 0!==a&&t[2]!==a||r.delete(t)}const l=0===r.size;c&&l&&s()})(n.disconnect),n}},f751:function(t,e,n){var i=n("5ca1");i(i.S+i.F,"Object",{assign:n("7333")})},f823:function(t,e){},f988:function(t,e,n){"use strict";n.d(e,"a",(function(){return h}));var i=n("0bf9"),s=n("180a"),r=n("5b43"),o=n("cd00");const a=t=>{t.start=(e=>{let n=!1;return(i=0,s=0,r)=>{if(n)throw Object(o["a"])();e.call(t,i,s,r),n=!0}})(t.start)},c=(t,e)=>{let n=Number.POSITIVE_INFINITY,i=Number.POSITIVE_INFINITY;t.start=((s,r)=>(o=0,a=0,c=Number.POSITIVE_INFINITY)=>{if(s.call(t,o,a),c>=0&&c<Number.POSITIVE_INFINITY){const s=Math.max(o,e.currentTime),a=c/t.playbackRate.value;n=s+a,r.call(t,Math.min(n,i))}})(t.start,t.stop),t.stop=(s=>(r=0)=>{i=Math.max(r,e.currentTime),s.call(t,Math.min(n,i))})(t.stop)};var l=n("7fa0"),u=n("545f");const h=(t,e,n,o,h,d,f,p,m,g,b,v,y)=>(S,x)=>{const _=n(S,t=>t.createBufferSource());return Object(r["a"])(_,x),Object(i["a"])(_,x,"playbackRate"),Object(s["a"])(_,x,"buffer"),Object(s["a"])(_,x,"loop"),Object(s["a"])(_,x,"loopEnd"),Object(s["a"])(_,x,"loopStart"),e(o,()=>o(S))||a(_),e(h,h)||c(_,S),e(d,()=>d(S))||b(_),e(f,()=>f(S))||v(_,S),e(p,()=>p(S))||Object(l["a"])(_),e(m,()=>m(S))||y(_,S),e(g,()=>g(S))||Object(u["a"])(_),t(S,_),_}},f9a2:function(t,e){},f9ab:function(t,e,n){var i=n("5ca1"),s=n("96fb");i(i.S,"Math",{cbrt:function(t){return s(t=+t)*Math.pow(Math.abs(t),1/3)}})},f9b9:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=t=>e=>{const n=e.createBuffer(1,1,44100),i=t(e,t=>t.createBufferSource());i.buffer=n,i.start(),i.stop();try{return i.stop(),!0}catch{return!1}}},f9d0:function(t,e){},fa5b:function(t,e,n){t.exports=n("5537")("native-function-to-string",Function.toString)},fa83:function(t,e,n){"use strict";n("386b")("blink",(function(t){return function(){return t(this,"blink","","")}}))},fab2:function(t,e,n){var i=n("7726").document;t.exports=i&&i.documentElement},fae9:function(t,e){},fb05:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=(t,e,n)=>async(i,s,r,o)=>{const a=e(i);await Promise.all(Array.from(a.activeInputs).map(async([e,i])=>{const a=t(e),c=await a.render(e,s,o);n(e)||c.connect(r,i)}))}},fbd3:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("383e");const s=(t,e,n,s,r)=>(o,a)=>{const c=a.listener,l=()=>{const l=e(a,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:9}),u=r(a),h=s(a,256,9,0),d=(e,s)=>{const r=n(a,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",offset:s});return r.connect(l,0,e),r.start(),Object.defineProperty(r.offset,"defaultValue",{get(){return s}}),t({context:o},u,r.offset,i["b"],i["a"])};let f=[0,0,-1,0,1,0],p=[0,0,0];return h.onaudioprocess=({inputBuffer:t})=>{const e=[t.getChannelData(0)[0],t.getChannelData(1)[0],t.getChannelData(2)[0],t.getChannelData(3)[0],t.getChannelData(4)[0],t.getChannelData(5)[0]];e.some((t,e)=>t!==f[e])&&(c.setOrientation(...e),f=e);const n=[t.getChannelData(6)[0],t.getChannelData(7)[0],t.getChannelData(8)[0]];n.some((t,e)=>t!==p[e])&&(c.setPosition(...n),p=n)},l.connect(h),{forwardX:d(0,0),forwardY:d(1,0),forwardZ:d(2,-1),positionX:d(6,0),positionY:d(7,0),positionZ:d(8,0),upX:d(3,0),upY:d(4,1),upZ:d(5,0)}},{forwardX:u,forwardY:h,forwardZ:d,positionX:f,positionY:p,positionZ:m,upX:g,upY:b,upZ:v}=void 0===c.forwardX?l():c;return{get forwardX(){return u},get forwardY(){return h},get forwardZ(){return d},get positionX(){return f},get positionY(){return p},get positionZ(){return m},get upX(){return g},get upY(){return b},get upZ(){return v}}}},fc27:function(t,e){},fc6f:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const i={channelCount:6,channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:6},s=t=>({...t,channelCount:t.numberOfOutputs}),r=(t,e,n,r,o)=>class extends t{constructor(t,a=i){const c=r(t),l=s({...i,...a}),u=n(c,l),h=o(c)?e():null;super(t,!1,u,h)}}},fca0:function(t,e,n){var i=n("5ca1"),s=n("7726").isFinite;i(i.S,"Number",{isFinite:function(t){return"number"==typeof t&&s(t)}})},fcc1:function(t,e,n){"use strict";t.exports=function(t,e){return new Promise((function(n,i){var s=new XMLHttpRequest;e&&(s.responseType=e),s.open("GET",t),s.onload=function(){200===s.status?n(s.response):i(Error(s.statusText))},s.onerror=function(){i(Error("Network Error"))},s.send()}))}},fcfd:function(t,e){},fd24:function(t,e,n){var i=n("5ca1");i(i.S,"Object",{setPrototypeOf:n("8b97").set})},fd82:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=t=>{try{t.copyToChannel(new Float32Array(1),0,-1)}catch{return!1}return!0}},fd85:function(t,e){},fdd5:function(t,e){},fdef:function(t,e){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},fe69:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("752e"),s=n("d057");const r=t=>Object(s["a"])(i["d"],t)},fed4:function(t,e){},fee7:function(t,e,n){"use strict";var i=n("5ca1"),s=n("4bf8"),r=n("d8e8"),o=n("86cc");n("9e1e")&&i(i.P+n("c5b4"),"Object",{__defineSetter__:function(t,e){o.f(s(this),t,{set:r(e),enumerable:!0,configurable:!0})}})},ff7d:function(t,e){},ffc1:function(t,e,n){var i=n("5ca1"),s=n("504c")(!0);i(i.S,"Object",{entries:function(t){return s(t)}})},ffec:function(t,e){},fff6:function(t,e){}}]);
|