diff --git "a/dist/js/chunk-ae402692.003457bc.js" "b/dist/js/chunk-ae402692.003457bc.js" new file mode 100644--- /dev/null +++ "b/dist/js/chunk-ae402692.003457bc.js" @@ -0,0 +1,19 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-ae402692"],{"00d8":function(e,a){(function(){var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c={rotl:function(e,a){return e<>>32-a},rotr:function(e,a){return e<<32-a|e>>>a},endian:function(e){if(e.constructor==Number)return 16711935&c.rotl(e,8)|4278255360&c.rotl(e,24);for(var a=0;a0;e--)a.push(Math.floor(256*Math.random()));return a},bytesToWords:function(e){for(var a=[],c=0,d=0;c>>5]|=e[c]<<24-d%32;return a},wordsToBytes:function(e){for(var a=[],c=0;c<32*e.length;c+=8)a.push(e[c>>>5]>>>24-c%32&255);return a},bytesToHex:function(e){for(var a=[],c=0;c>>4).toString(16)),a.push((15&e[c]).toString(16));return a.join("")},hexToBytes:function(e){for(var a=[],c=0;c>>6*(3-f)&63)):c.push("=");return c.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var c=[],d=0,s=0;d>>6-2*s);return c}};e.exports=c})()},1151:function(e,a,c){"use strict";c.d(a,"a",(function(){return h})),c.d(a,"b",(function(){return m})),c.d(a,"c",(function(){return g}));var d=c("58b7"),s=c.n(d),f=c("c0d2");const t=[0,2,4,5,7,9,11],b=60,n=e=>{let a=e%7;while(a<0)a+=7;return a},r=e=>{let a=e%12;while(a<0)a+=12;return a},o=e=>Number.isFinite(e)?e:e.toString(),i="CDEFGAB",l={[-2]:"♭♭",[-1]:"♭",[0]:"♮",[1]:"♯",[2]:"𝄪"};class u{constructor(){this.clef=-3,this.keyAlters=new f["a"],this.octaveShift=0,this.alters=new f["a"]}get keySignature(){return this.keyAlters.filter(e=>Number.isInteger(e)).reduce((e,a)=>e+a,0)}noteToY(e){return-e/2-this.clef-3.5*this.octaveShift}pitchToNote(e,{preferredAlter:a=null}={}){a||(a=this.keySignature<0?-1:1);const c=Math.floor((e-b)/12),d=r(e),s=t.includes(d)?d:r(d-a),f=t.indexOf(s);console.assert(f>=0,"invalid preferredAlter:",e,a,s);const n=7*c+f,o=d-s,i=this.keyAlters[f]||0,l=Number.isInteger(this.alters[n]),u=l?o:o===i?null:o;return{note:n,alter:u}}pitchToY(e,{preferredAlter:a=null}={}){const{note:c,alter:d}=this.pitchToNote(e,{preferredAlter:a}),s=this.noteToY(c);return{y:s,alter:d}}yToNote(e){return console.assert(Number.isInteger(2*e),"invalid y:",e),2*(-e-3.5*this.octaveShift-this.clef)}alterOnNote(e){if(Number.isInteger(this.alters[e]))return this.alters[e];const a=n(e);return Number.isInteger(this.keyAlters[a])?this.keyAlters[a]:0}noteToPitch(e){const a=Math.floor(e/7),c=n(e),d=b+12*a+t[c]+this.alterOnNote(e);return Number.isFinite(d)?d:(console.warn("invalid pitch value:",d,e,a,c),-1)}yToPitch(e){return this.noteToPitch(this.yToNote(e))}yToPitchName(e){const a=this.yToNote(e),c=Math.floor(a/7),d=n(a);let s=this.alterOnNote(a);return s||Number.isInteger(this.alters[a])||(s=null),`${l[s]?l[s]:""}${i[d]}${c+4}`}}class h extends u{constructor(e){super(),Object.assign(this,e)}toJSON(){return{__prototype:"PitchContext",clef:this.clef,keyAlters:new f["a"](this.keyAlters),octaveShift:this.octaveShift,alters:new f["a"](this.alters)}}get hash(){return s()(JSON.stringify(this))}}class m{constructor({items:e}){this.items=e.map(m.itemFromJSON)}static createFromNotation(e,a,c){const d=[];let s=-1;const f=a.filter(e=>e.staffTrack===c);for(const t of f)while(t.contextIndex>s){++s;const a=e[s];console.assert(!!a,"invalid contextIndex:",s,t.contextIndex,e.length),d.push({tick:t.startTick,context:a})}return d.forEach((e,a)=>e.endTick=a+1m.createFromNotation(e,a.notes,c))}static itemToJSON(e){return{...e,endTick:o(e.endTick)}}static itemFromJSON(e){return{...e,endTick:Number(e.endTick)}}toJSON(){return{__prototype:"PitchContextTable",items:this.items.map(m.itemToJSON)}}lookup(e){const a=this.items.find(a=>e>=a.tick&&e{e*a<0&&(this.keyAlters[c]=0)});const c=n(this.yToNote(e));this.keyAlters[c]=a,this.logger.append("setKeyAlter",{n:c,value:a}),this.dirty=!0}setAlter(e,a){const c=this.yToNote(e);this.alters[c]=a,this.logger.append("setAlter",{n:c,value:a}),this.dirty=!0}setClef(e,a){const c=-e-a/2;c!==this.clef&&(this.clef=c,this.dirty=!0)}setOctaveShift(e){this.octaveShift!==e&&(this.octaveShift=e,this.dirty=!0,this.logger.append("octaveShift",e))}setBeatsPerMeasure(e){this.beatsPerMeasure=e}}},"12b4":function(e,a,c){"use strict";a["a"]=(e,a)=>Object.fromEntries(Object.entries(e).filter(([e])=>a.includes(e)))},"16d8":function(e,a,c){"use strict";c.d(a,"a",(function(){return d}));class d{constructor(e){this.source=e;const a=d.matchPositions(/\n/g,e);this.linePositions=[0,...a.map(e=>e+1)]}static matchPositions(e,a){const c=[];let d;while(d=e.exec(a))c.push(d.index);return c}slice(e,a){Array.isArray(e)||(e=[e,e]);const c=this.linePositions[e[0]-1]+a[0],d=this.linePositions[e[1]-1]+a[1];return this.source.substr(c,d-c)}charsToPosition(e){let a=this.linePositions.findIndex(a=>a>e);a=a<0?this.linePositions.length:a;const c=e-this.linePositions[a-1];return[a,c]}positionToChars([e,a]){return e>=this.linePositions.length?NaN:this.linePositions[e-1]+a}}},"1f25":function(e,a,c){"use strict";c.d(a,"b",(function(){return d})),c.d(a,"a",(function(){return s})),c.d(a,"f",(function(){return f})),c.d(a,"c",(function(){return t})),c.d(a,"d",(function(){return b})),c.d(a,"e",(function(){return n})),c.d(a,"g",(function(){return r})),c.d(a,"h",(function(){return o}));const d="2.20.0",s=37.794,f=.5,t=.6,b=1,n=20,r=.06,o='\n ]>\n'},"1fb5":function(e,a,c){"use strict";a.byteLength=o,a.toByteArray=l,a.fromByteArray=m;for(var d=[],s=[],f="undefined"!==typeof Uint8Array?Uint8Array:Array,t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b=0,n=t.length;b0)throw new Error("Invalid string. Length must be a multiple of 4");var c=e.indexOf("=");-1===c&&(c=a);var d=c===a?0:4-c%4;return[c,d]}function o(e){var a=r(e),c=a[0],d=a[1];return 3*(c+d)/4-d}function i(e,a,c){return 3*(a+c)/4-c}function l(e){var a,c,d=r(e),t=d[0],b=d[1],n=new f(i(e,t,b)),o=0,l=b>0?t-4:t;for(c=0;c>16&255,n[o++]=a>>8&255,n[o++]=255&a;return 2===b&&(a=s[e.charCodeAt(c)]<<2|s[e.charCodeAt(c+1)]>>4,n[o++]=255&a),1===b&&(a=s[e.charCodeAt(c)]<<10|s[e.charCodeAt(c+1)]<<4|s[e.charCodeAt(c+2)]>>2,n[o++]=a>>8&255,n[o++]=255&a),n}function u(e){return d[e>>18&63]+d[e>>12&63]+d[e>>6&63]+d[63&e]}function h(e,a,c){for(var d,s=[],f=a;fn?n:b+t));return 1===s?(a=e[c-1],f.push(d[a>>2]+d[a<<4&63]+"==")):2===s&&(a=(e[c-2]<<8)+e[c-1],f.push(d[a>>10]+d[a>>4&63]+d[a<<2&63]+"=")),f.join("")}s["-".charCodeAt(0)]=62,s["_".charCodeAt(0)]=63},"32c1":function(e,a,c){"use strict";c.r(a),c.d(a,"svgToElements",(function(){return f})),c.d(a,"tokenizeElements",(function(){return W})),c.d(a,"organizeTokens",(function(){return G})),c.d(a,"parseSvgPage",(function(){return ee})),c.d(a,"postProcessSheetDocument",(function(){return ce})),c.d(a,"turnRawSvgWithSheetDocument",(function(){return de})),c.d(a,"createSheetDocumentFromSvgs",(function(){return ae})),c.d(a,"StaffToken",(function(){return I["a"]})),c.d(a,"SheetDocument",(function(){return V["e"]})),c.d(a,"SheetPage",(function(){return V["SheetPage"]})),c.d(a,"SheetSystem",(function(){return V["SheetSystem"]})),c.d(a,"SheetStaff",(function(){return V["SheetStaff"]})),c.d(a,"SheetMeasure",(function(){return V["SheetMeasure"]})),c.d(a,"StaffNotation",(function(){return H})),c.d(a,"StaffAttributes",(function(){})),c.d(a,"HashTable",(function(){})),c.d(a,"LilyDocumentAttribute",(function(){return J["LilyDocumentAttribute"]})),c.d(a,"LilyDocumentAttributeReadOnly",(function(){return J["LilyDocumentAttributeReadOnly"]})),c.d(a,"glyph",(function(){return Q}));const d={...["viewBox","transform","x","y","width","height","ry","d","x1","y1","x2","y2","color","stroke-width","points","stroke-dasharray","font-size","font-weight","font-style","text-anchor"].reduce((e,a)=>({...e,[a]:a}),{}),"xlink:href":"href"},s=e=>{const a={type:e.tagName};for(const c in d){const s=e.getAttribute(c);s&&(a[d[c]]=s)}switch(e.tagName){case"tspan":a.text=e.textContent;break;case"a":/:(\d+:\d+:\d+)$/.test(a.href)?a.href=a.href.match(/:(\d+:\d+:\d+)$/)[1]:delete a.href;break;case"path":break;case"polygon":break}if(["x","y","width","height","ry","x1","y1","x2","y2","stroke-width","font-size","font-weight","font-style","text-anchor"].forEach(e=>{if(a[e]){const c=Number(a[e]);Number.isFinite(c)&&(a[e]=c)}}),a.transform){let[e,c,d,s,f]=[null,0,0,1,1];/translate\([\d.\-,\s]+\)\s*scale\([\d.\-,\s]+\)/.test(a.transform)?[e,c,d,s,f]=a.transform.match(/translate\(([\d.-]+),\s*([\d.-]+)\)\s*scale\(([\d.-]+),\s*([\d.-]+)\)/):/translate\([\d.\-,\s]+\)/.test(a.transform)?[e,c,d]=a.transform.match(/translate\(([\d.-]+),\s*([\d.-]+)\)/):/scale\([\d.\-,\s]+\)/.test(a.transform)?[e,s,f]=a.transform.match(/scale\(([\d.-]+),\s*([\d.-]+)\)/):/^rotate(.*)$/.test(a.transform)||console.warn("unexpected transform:",a.transform),a.transform={translate:{x:Number(c),y:Number(d)},scale:{x:Number(s),y:Number(f)}}}for(let c=0;c"tspan"===e.type&&e.text).map(e=>e.text).join(""));break}return a},f=(e,{logger:a=null,DOMParser:c=null}={})=>{const d=(new c).parseFromString(e,"text/xml");a&&a.append("svgToElements");const f=d.childNodes[0];console.assert(f&&"svg"===f.tagName);const t=s(f);if(!t.children)return console.log("invalid svg:",t,e),null;while(1){const e=t.children.findIndex(e=>"a"===e.type&&e.children);if(e>=0){const a=t.children[e];a.children.forEach(e=>{e.href=a.href,e.color=a.color}),t.children.splice(e,1,...a.children)}else{const e=t.children.findIndex(e=>"g"===e.type&&e.children);if(!(e>=0))break;{const a=t.children[e];for(const e of a.children)a.transform&&(e.transform=e.transform||{translate:{x:0,y:0},scale:{x:1,y:1}},e.transform.translate.x=a.transform.translate.x+e.transform.translate.x*a.transform.scale.x,e.transform.translate.y=a.transform.translate.y+e.transform.translate.y*a.transform.scale.y,e.transform.scale.x*=a.transform.scale.x,e.transform.scale.y*=a.transform.scale.y),a.color&&(e.color=a.color),a.href&&(e.href=a.href);t.children.splice(e,1,...a.children)}}}return t};var t=c("adc7"),b=c("58b7"),n=c.n(b),r=c("e9ba"),o=c("cc32");const i=e=>{const a=Object.entries(e).sort(([e],[a])=>e>a?1:-1);return n()(JSON.stringify(a))},l=(e,a)=>{const c=i(a);return a=>{if(a.hash===c)return{symbol:e}}},u=e=>e.replace(/\s+/g," ").replace(/\d/g,""),h=e=>e.replace(/\s+/g," ").replace(/-?[.\d]+/g,"."),m=e=>e.split(" ").length,p=(e,a)=>c=>{if("path"===c.identity.type&&u(c.identity.d)===a)return{symbol:e}},g=(e,a)=>c=>{if("path"===c.identity.type&&a.includes(u(c.identity.d)))return{symbol:e}},v=(e,a)=>c=>{if("path"===c.identity.type&&a.includes(h(c.identity.d)))return{symbol:e}},M=(e,a)=>e.identity.scale&&Math.abs(e.identity.scale.x)===a&&Math.abs(e.identity.scale.y)===a,k=(e,a,c=(()=>({})))=>d=>{if(a(d))return{symbol:e,...c(d)}},y=(e,a)=>c=>{if(c.glyph===a)return{symbol:e}},_=[g("NOTE NOTEHEAD CROSS",["M163 31l125 101c2 2 5 3 8 3s6 -1 8 -3l18 -14c3 -2 4 -6 4 -10s-1 -8 -4 -10l-121 -98l121 -98c3 -2 4 -6 4 -10s-1 -8 -4 -10l-18 -14c-2 -2 -5 -3 -8 -3s-6 1 -8 3l-125 101l-125 -101c-2 -2 -5 -3 -8 -3s-6 1 -8 3l-17 14c-3 2 -5 6 -5 10s2 8 5 10l120 98l-120 98\t\tc-3 2 -5 6 -5 10s2 8 5 10l17 14c2 2 5 3 8 3s6 -1 8 -3z"].map(u)),g("NOTE NOTEHEAD DIAMOND WHOLE",["M206 75c-29 0 -27 -45 -27 -74c0 -47 25 -56 61 -67c13 -4 28 -9 40 -9c29 0 26 45 26 74c0 47 -25 56 -61 67c-13 4 -27 9 -39 9zM485 0c0 -57 -78 -42 -122 -67c-41 -23 -72 -68 -120 -68s-80 45 -121 68c-44 25 -122 10 -122 67s78 42 122 67c41 23 73 68 121 68\t\ts79 -45 120 -68c44 -25 122 -10 122 -67z"].map(u)),g("NOTE NOTEHEAD DIAMOND HALF",["M290 55c0 17 -15 27 -30 27c-4 0 -8 -1 -12 -2c-25 -8 -60 -30 -89 -49s-65 -42 -82 -62c-6 -7 -10 -16 -10 -24c0 -17 14 -27 29 -27c4 0 9 1 13 2c25 8 60 30 89 49s65 42 82 62c6 7 10 16 10 24zM316 135c18 0 41 -17 41 -40c0 -28 -33 -54 -42 -84\t\tc-11 -36 3 -84 -30 -106c-15 -10 -33 -13 -51 -13c-25 0 -50 6 -76 6c-43 0 -83 -33 -118 -33c-18 0 -40 17 -40 40c0 28 33 54 42 84c11 36 -3 84 30 106c15 10 32 13 50 13c25 0 51 -6 77 -6c43 0 82 33 117 33z"].map(u)),g("NOTE NOTEHEAD DIAMOND SOLID",["M325 135c19 0 36 -18 36 -38c0 -36 -61 -62 -84 -100c-25 -41 -32 -95 -72 -123c-9 -6 -18 -8 -28 -8c-23 0 -48 12 -72 12c-23 0 -47 -13 -68 -13c-19 0 -37 18 -37 38c0 36 61 62 84 100c25 41 33 95 73 123c9 6 17 8 27 8c23 0 48 -12 72 -12c23 0 48 13 69 13z"].map(u)),g("NOTE REST",["M510 -22h-645c-12 0 -21 10 -21 22s9 22 21 22h135v126c0 4 4 8 8 8h359c4 0 8 -4 8 -8v-126h135c12 0 21 -10 21 -22s-9 -22 -21 -22z"].map(u)),g("TR",["M-300 227c0 -23 18 -32 41 -32c40 0 72 14 104 28l5 28c-23 17 -50 29 -82 29c-33 0 -68 -17 -68 -53zM-26 103c0 -61 -47 -113 -98 -113c-39 0 -56 43 -56 90c0 14 1 28 4 41l16 78c-32 -13 -63 -25 -103 -25c-34 0 -59 17 -59 49c0 50 47 78 94 78c31 0 59 -10 83 -25\t\tl47 234c6 -3 13 -5 20 -5c22 0 48 16 68 35l-54 -268l66 36c26 14 51 21 74 21c29 0 53 -11 64 -30c17 21 44 32 70 32c35 0 67 -20 67 -66c0 -44 -27 -89 -64 -89c-25 0 -37 22 -37 48c0 41 28 63 59 63h4c-8 14 -23 21 -38 21c-25 0 -51 -16 -57 -45l-53 -269\t\tc-11 7 -25 10 -39 10s-29 -3 -43 -10l54 269v6c0 16 -13 27 -30 27c-7 0 -15 -2 -23 -6l-79 -44l-7 -35c27 -31 50 -66 50 -108zM-84 39c23 0 36 33 36 61c0 31 -15 57 -34 81l-6 -30c-4 -18 -12 -54 -12 -81c0 -18 4 -31 16 -31z","M-299 227c0 -22 18 -31 41 -31c40 0 71 14 103 28l5 26c-23 17 -51 29 -82 29c-32 0 -67 -16 -67 -52zM-26 104c0 -61 -47 -114 -98 -114c-39 0 -56 43 -56 90c0 14 1 28 4 41l16 77c-31 -13 -63 -25 -103 -25c-35 0 -59 17 -59 50c0 51 48 79 95 79c31 0 58 -10 82 -25\t\tl47 233c6 -3 13 -5 20 -5c22 0 48 16 68 35l-54 -267l66 36c26 14 51 21 74 21c29 0 52 -11 63 -30c18 20 45 31 70 31c35 0 68 -21 68 -67c0 -45 -28 -89 -65 -89c-25 0 -37 21 -37 47c0 41 29 64 60 64h3c-8 14 -22 21 -37 21c-24 0 -51 -17 -57 -45l-53 -269\t\tc-11 7 -25 11 -39 11s-29 -4 -43 -11l53 269c0 2 1 5 1 7c0 16 -13 27 -30 27c-7 0 -15 -3 -23 -7l-79 -44l-7 -33c27 -31 50 -66 50 -108zM-85 39c23 0 35 33 35 61c0 30 -14 56 -32 79l-6 -28c-4 -18 -12 -55 -12 -82c0 -17 4 -30 15 -30z","M-295 228c0 -21 17 -30 38 -30c39 0 71 14 102 28l5 22c-23 17 -50 29 -81 29s-64 -15 -64 -49zM-26 104c0 -62 -47 -114 -98 -114c-39 0 -56 43 -56 90c0 14 1 28 4 41l15 75c-31 -13 -62 -24 -101 -24c-35 0 -60 17 -60 50c0 52 49 82 97 82c30 0 57 -9 81 -24l46 230\t\tc6 -3 13 -5 20 -5c22 0 48 16 68 35l-53 -265l64 35c26 14 51 21 74 21c28 0 52 -10 63 -28c18 19 43 29 68 29c36 0 70 -22 70 -70c0 -46 -27 -91 -65 -91c-25 0 -39 22 -39 48c0 42 30 64 61 64h3c-8 14 -23 21 -38 21c-23 0 -49 -16 -54 -42l-54 -270\t\tc-11 7 -24 11 -38 11s-30 -4 -44 -11l54 270c0 2 1 5 1 7c0 15 -13 25 -29 25c-7 0 -15 -3 -23 -7l-81 -44l-5 -29c27 -31 49 -68 49 -110zM-87 39c22 0 34 34 34 61c0 29 -13 54 -30 76l-5 -25c-4 -19 -14 -57 -14 -84c0 -16 4 -28 15 -28z"].map(u)),k("MEASURE_SEPARATOR",e=>"rect"===e.identity.type&&.19===e.sw&&e.identity.rh>=4&&e.identity.rh<=4.35),k("MEASURE_SEPARATOR BOLD",e=>"rect"===e.identity.type&&.6===e.sw&&e.identity.rh>=4&&e.identity.rh<=4.35),g("BRACE",["M- -c - - - - -c - - -c - - - - -c- - - c c - - c- - - s c c - - c c - -c- - - - - -c - - -c - - - - -c - - -z","M- -c - - - - -c - - -c - - - - -c- - - c c - - vvc c - - c c - - c- - - - - -c - - -c - - - - -c - - -z","M- -c - - - - -c - - -c - - - - -c- - - c c - - c - - s c c - - c c - -c- - - - - -c - - -c - - - - -c - - -z","M- -c - - - - -c - - -c - - - - -c- - - c c - - c- - - s c c - - c c - -c- - - - - -c - - -c - - - - -c - - -z"]),v("BRACE",["M-15 -495c0 -261 -102 -516 -102 -762c0 -135 30 -258 129 -357c3 -3 3 -9 3 -12c0 -9 -6 -15 -15 -15c-3 0 -9 0 -12 3c-132 132 -177 312 -177 498c0 267 108 525 108 777c0 135 -33 258 -129 357c-3 3 -3 3 -3 6s0 3 3 6c96 99 129 222 129 357\t\tc0 252 -108 510 -108 777c0 186 45 366 177 498c3 3 9 3 12 3c9 0 15 -6 15 -15c0 -3 0 -9 -3 -12c-99 -99 -129 -222 -129 -357c0 -246 102 -501 102 -762c0 -186 -48 -363 -174 -495c126 -132 174 -309 174 -495z","M-15 -537c0 -285 -111 -561 -111 -831c0 -147 36 -282 138 -390c3 -3 6 -9 6 -12c0 -9 -9 -18 -18 -18c-3 0 -9 3 -12 6c-138 147 -186 339 -186 540c0 291 114 570 114 846c0 144 -33 279 -135 387c-3 3 -3 6 -3 9s0 6 3 9c102 108 135 243 135 387\t\tc0 276 -114 555 -114 846c0 201 48 393 186 540c3 3 9 6 12 6c9 0 18 -9 18 -18c0 -3 -3 -9 -6 -12c-102 -108 -138 -243 -138 -390c0 -270 111 -546 111 -831c0 -198 -45 -390 -180 -537c135 -147 180 -339 180 -537z","M-18 -471c0 -246 -96 -489 -96 -723c0 -129 33 -246 126 -339c3 -3 3 -9 3 -12c0 -9 -6 -15 -15 -15c-3 0 -9 0 -12 3c-126 126 -171 294 -171 474c0 252 102 501 102 738c0 129 -30 246 -123 339c-3 3 -3 3 -3 6s0 3 3 6c93 93 123 210 123 339c0 237 -102 486 -102 738\t\tc0 180 45 348 171 474c3 3 9 3 12 3c9 0 15 -6 15 -15c0 -3 0 -9 -3 -12c-93 -93 -126 -210 -126 -339c0 -234 96 -477 96 -723c0 -177 -42 -345 -165 -471c123 -126 165 -294 165 -471z","M-12 -636c0 -340 -128 -672 -128 -996c0 -172 36 -336 152 -468c4 -4 8 -8 8 -12c0 -8 -12 -20 -20 -20c-4 0 -8 4 -12 8c-156 176 -212 400 -212 636c0 348 136 684 136 1016c0 172 -36 332 -152 464c0 4 -4 4 -4 8s4 4 4 8c116 132 152 292 152 464\t\tc0 332 -136 668 -136 1016c0 236 56 460 212 636c4 4 8 8 12 8c8 0 20 -12 20 -20c0 -4 -4 -8 -8 -12c-116 -132 -152 -296 -152 -468c0 -324 128 -656 128 -996c0 -232 -52 -460 -204 -636c152 -176 204 -404 204 -636z","M-12 -656c0 -352 -132 -696 -132 -1032c0 -180 36 -344 156 -484c4 -4 8 -8 8 -12c0 -8 -12 -16 -20 -16c-4 0 -8 0 -12 4c-160 184 -216 416 -216 656c0 360 140 712 140 1052c0 176 -40 344 -160 480v8v8c120 136 160 304 160 480c0 340 -140 692 -140 1052\t\tc0 240 56 472 216 656c4 4 8 4 12 4c8 0 20 -8 20 -16c0 -4 -4 -8 -8 -12c-120 -140 -156 -304 -156 -484c0 -336 132 -680 132 -1032c0 -240 -52 -472 -208 -656c156 -184 208 -416 208 -656z","M-208 -1352c0 316 124 624 124 924c0 156 -36 300 -144 420c0 4 -4 4 -4 8s4 4 4 8c108 120 144 264 144 420c0 300 -124 608 -124 924c0 216 52 420 196 580c16 16 40 -8 24 -24c-108 -120 -144 -268 -144 -424c0 -292 116 -596 116 -904c0 -216 -48 -420 -188 -580\t\tc140 -160 188 -364 188 -580c0 -308 -116 -612 -116 -904c0 -156 36 -304 144 -424c16 -16 -8 -40 -24 -24c-144 160 -196 364 -196 580z","M-255 -1860c0 435 160 855 160 1270c0 210 -45 410 -180 580c0 0 -5 5 -5 10s5 10 5 10c135 170 180 370 180 580c0 415 -160 835 -160 1270c0 285 60 560 240 785c15 20 45 -5 30 -25c-135 -170 -180 -370 -180 -585c0 -410 155 -820 155 -1250\t\tc0 -285 -65 -560 -240 -785c175 -225 240 -500 240 -785c0 -430 -155 -840 -155 -1250c0 -215 45 -415 180 -585c15 -20 -15 -45 -30 -25c-180 225 -240 500 -240 785z","M-240 -1668c0 392 148 768 148 1140c0 192 -40 368 -168 520v8v8c128 152 168 328 168 520c0 372 -148 748 -148 1140c0 260 56 508 224 708c16 20 48 -4 32 -24c-128 -152 -168 -332 -168 -524c0 -364 140 -736 140 -1120c0 -260 -56 -508 -220 -708\t\tc164 -200 220 -448 220 -708c0 -384 -140 -756 -140 -1120c0 -192 40 -372 168 -524c16 -20 -16 -44 -32 -24c-168 200 -224 448 -224 708z"].map(h)),g("SLUR DOWN",["M1.5028 -0.8074C2.4307 0.0391 5.9413 0.0391 6.8692 -0.8074L6.8692 -0.8074C5.9413 -0.0896 2.4307 -0.0896 1.5028 -0.8074z","M1.5806 -0.0000C2.6617 0.9012 7.7937 0.9012 8.8748 -0.0000L8.8748 -0.0000C7.7937 0.7724 2.6617 0.7724 1.5806 -0.0000z","M0.1358 4.1918C3.1384 5.5006 23.9261 1.8052 26.2937 -0.4582L26.2937 -0.4582C23.9068 1.6964 3.1190 5.3918 0.1358 4.1918z","M5.4000 -1.4582C7.2084 0.4248 16.2728 1.8025 18.5590 0.5418L18.5590 0.5418C16.2894 1.6932 7.2250 0.3156 5.4000 -1.4582z","M0.6840 -0.9582C3.3097 0.6061 19.0586 -0.5325 21.4320 -2.4582L21.4320 -2.4582C19.0506 -0.6428 3.3018 0.4958 0.6840 -0.9582z","M0.7359 -0.8082C2.1046 0.0164 4.9041 -0.5297 5.8626 -1.8082L5.8626 -1.8082C4.8830 -0.6382 2.0835 -0.0921 0.7359 -0.8082z","M-0.0038 2.7489C1.0356 4.0058 3.9703 4.4396 5.3289 3.5372L5.3289 3.5372C3.9865 4.3303 1.0518 3.8964 -0.0038 2.7489z","M0.4158 -0.8186C0.9635 -0.1463 2.0441 0.0143 2.7712 -0.4686L2.7712 -0.4686C2.0598 -0.0914 0.9792 -0.2520 0.4158 -0.8186z","M0.4367 -5.4611C-1.1373 3.6241 33.0534 23.1887 40.0887 17.2285L40.0887 17.2285C33.1065 23.0960 -1.0842 3.5314 0.4367 -5.4611z","M0.2462 -1.1121C0.2563 -0.2493 0.9868 0.5033 1.8489 0.5389L1.8489 0.5389C1.0635 0.4288 0.3329 -0.3237 0.2462 -1.1121z","M0.6586 -1.4611C3.4185 0.3179 24.8011 0.0392 27.5138 -1.8111L27.5138 -1.8111C24.7997 -0.0676 3.4171 0.2111 0.6586 -1.4611z","M0.5814 4.0389C2.0266 5.6914 7.6905 6.6341 9.5930 5.5389L9.5930 5.5389C7.7037 6.5547 2.0398 5.6119 0.5814 4.0389z","M0.4463 -1.8051C1.2147 -0.5286 3.6343 0.1911 4.9850 -0.4551L4.9850 -0.4551C3.6728 0.0617 1.2532 -0.6580 0.4463 -1.8051z"].map(u)),g("SLUR UP",["M1.6331 0.7750C2.7048 -0.1232 7.7198 -0.1232 8.7915 0.7750L8.7915 0.7750C7.7198 0.0055 2.7048 0.0055 1.6331 0.7750z","M1.2172 -3.2497C3.8915 -5.3756 29.8558 -8.0703 32.9096 -6.5389L32.9096 -6.5389C29.8641 -7.9902 3.8998 -5.2954 1.2172 -3.2497z","M0.8860 0.2500C1.9483 -0.6211 6.8471 -0.6211 7.9093 0.2500L7.9093 0.2500C6.8471 -0.5405 1.9483 -0.5405 0.8860 0.2500z","M8.8571 -2.1918C12.2053 -7.7623 37.6503 -5.5978 40.0096 0.4582L40.0096 0.4582C37.6407 -5.4854 12.1958 -7.6498 8.8571 -2.1918z","M5.4000 0.8082C8.8706 -1.2527 91.8062 -3.0964 95.3650 -1.1918L95.3650 -1.1918C91.8086 -2.9859 8.8731 -1.1422 5.4000 0.8082z","M0.3581 2.9514C0.5936 0.9531 3.9709 -2.1395 5.9821 -2.1986L5.9821 -2.1986C4.0579 -2.0445 0.6806 1.0481 0.3581 2.9514z","M0.5939 1.7682C2.2579 -0.0946 9.4770 -1.0830 11.5491 0.2682L11.5491 0.2682C9.4914 -0.9772 2.2724 0.0113 0.5939 1.7682z"].map(u)),g("SLUR",["M. -.C. -. . -. . -.C. -. . -. . -.z","M. .C. . . . . .C. . . . . .z"]),k("STAVES_CONNECTION",e=>"rect"===e.identity.type&&.16===e.sw&&e.identity.height>=10,e=>({height:e.identity.height})),k("BRACE BRACE_BAR",e=>"rect"===e.identity.type&&.45===e.identity.width&&e.identity.height>=4),k("VERTICAL_LINE",e=>"rect"===e.identity.type&&(.19===e.sw||.6===e.sw)&&e.identity.height>=1),k("NOTE_STEM",e=>"rect"===e.identity.type&&.13===e.sw&&e.identity.height>=1),k("TEMPO_NOTE_STEM",e=>"rect"===e.identity.type&&.12===e.sw&&e.identity.height>=1),k("NOTETAIL JOINT BEAM",e=>"polygon"===e.identity.type&&8===m(e.identity.points)),k("STAFF_LINE",e=>"line"===e.identity.type&&0===e.identity.height&&e.identity.width>2&&.1===e.sw&&!e.identity["stroke-dasharray"]),k("ADDITIONAL_LINE",e=>"rect"===e.identity.type&&.2===e.sw2&&e.identity.rw>=1.25&&e.identity.rw<5),k("OCTAVE A _8",e=>"text"===e.identity.type&&/8va/.test(e.identity.text)),k("OCTAVE B _8",e=>"text"===e.identity.type&&/8vb/.test(e.identity.text)),k("OCTAVE _8",e=>"text"===e.identity.type&&"8"===e.identity.text&&"italic"===e.identity["font-style"]&&"bold"===e.identity["font-weight"]),k("OCTAVE A _15",e=>"text"===e.identity.type&&/15ma/.test(e.identity.text)),k("OCTAVE B _15",e=>"text"===e.identity.type&&/15mb/.test(e.identity.text)),k("OCTAVE _15",e=>"text"===e.identity.type&&"15"===e.identity.text&&"italic"===e.identity["font-style"]&&"bold"===e.identity["font-weight"]),l("OCTAVE CLOSE LINE",{type:"line",width:0,height:1.25,"stroke-width":.0924,"stroke-dasharray":"0.362351432995067,0.537648567004933"}),k("OCTAVE CLOSE LINE",e=>"line"===e.identity.type&&.8===Math.abs(e.identity.height)&&0===e.identity.width&&e.identity["stroke-width"]<.2),p("DOT","M c s - -s- - - -s- - z"),k("LINE",e=>"line"===e.identity.type),k("NULL LARGE_RECT",e=>"rect"===e.identity.type&&e.identity.height>1&&e.identity.width>=2&&e.rx<=0&&e.ry<=0),k("NULL GENERAL_RECT",e=>"rect"===e.identity.type&&e.identity.height*e.identity.width>=.3),k("NULL ENGRAVER_SIG",e=>"text"===e.identity.type&&/www\.lilypond\.org/.test(e.identity.text)),k("TEXT",e=>"text"===e.identity.type),y("ALTER FLAT","accidentals.flat"),y("ALTER FLATFLAT","accidentals.flatflat"),y("ALTER SHARP","accidentals.sharp"),y("ALTER SHARPSHARP","accidentals.doublesharp"),y("CLEF TREBLE","clefs.G"),y("CLEF TREBLE","clefs.G_change"),y("CLEF BASS","clefs.F"),y("CLEF BASS","clefs.F_change"),y("NOTETAIL FLAG UP EIGHTH","flags.u3"),y("NOTETAIL FLAG UP SIXTEENTH","flags.u4"),y("NOTETAIL FLAG UP THIRTYSECOND","flags.u5"),y("NOTETAIL FLAG UP SIXTYFOURTH","flags.u6"),y("NOTETAIL FLAG UP HUNDREDTWENTYEIGHTH","flags.u7"),y("NOTETAIL FLAG UP TWOHUNDREDSFIFTYSIXTH","flags.u8"),y("NOTETAIL FLAG DOWN EIGHTH","flags.d3"),y("NOTETAIL FLAG DOWN SIXTEENTH","flags.d4"),y("NOTETAIL FLAG DOWN THIRTYSECOND","flags.d5"),y("NOTETAIL FLAG DOWN SIXTYFOURTH","flags.d6"),y("NOTETAIL FLAG DOWN HUNDREDTWENTYEIGHTH","flags.d7"),y("NOTETAIL FLAG DOWN TWOHUNDREDSFIFTYSIXTH","flags.d8"),y("NOTE REST","rests.0"),y("NOTE REST","rests.1"),y("NOTE REST","rests.2"),y("NOTE REST","rests.3"),y("NOTE REST","rests.4"),y("NOTE REST","rests.5"),y("NOTE REST","rests.6"),y("NOTE REST","rests.7"),y("NOTE REST","rests.8"),y("TIME_SIG C_BAR","timesig.C22"),y("SUSTAIN ON","pedal.Ped"),y("SUSTAIN OFF","pedal.*"),y("ATTACHED PORTATO UP","scripts.dportato"),y("ATTACHED PORTATO DOWN","scripts.uportato"),y("ATTACHED DMARCATO DOWN","scripts.dmarcato"),y("ATTACHED DMARCATO UP","scripts.umarcato"),y("ATTACHED TENUTO","scripts.tenuto"),y("ATTACHED PRALL","scripts.prall"),y("ATTACHED MORDENT","scripts.mordent"),y("ATTACHED FERMATA UP","scripts.ufermata"),y("ATTACHED FERMATA DOWN","scripts.dfermata"),y("ATTACHED SHORTFERMATA UP","scripts.ushortfermata"),y("ATTACHED SHORTFERMATA DOWN","scripts.dshortfermata"),y("ATTACHED SFORZATO","scripts.sforzato"),y("BRACE BRACE_WING","brackettips.up"),y("BRACE BRACE_WING","brackettips.down")];r.forEach(({symbol:e,ds:a})=>_.push(g(e,a)));const T=(e,a)=>(c,d)=>{const s=d.symbol&&d.symbol.split(" ");s&&s.includes(e)&&a(c,d)},w=(e,a,c)=>(d,s)=>{const f=s.symbol&&s.symbol.split(" ");f&&f.includes(e)&&a(d)&&(s.symbol=[...f,c].join(" "))},E=[w("NUMBER",e=>M(e,.004),"TIME_SIG"),w("NUMBER",e=>M(e,.0025),"ALTERNATIVE"),w("CLOSE",e=>e.identity.height>0,"UP"),w("CLOSE",e=>e.identity.height<0,"DOWN"),T("BEAM",(e,a)=>{const c=e.identity.points.split(" ").map(Number),d=c[4],s=c[0],f=(c[5]+c[7])/2,t=(c[1]+c[3])/2;a.start={x:d,y:f},a.target={x:s,y:t}}),T("SLUR",(e,a)=>{const c=e.identity.d.match(/M[\d.-]+ ([\d.-]+).*L([\d.-]+) ([\d.-]+)/);if(c){const[e,d,s,f]=c;a.start={x:0,y:Number(d)},a.target={x:Number(s),y:Number(f)}}}),T("LINE",(e,a)=>{a.start={x:0,y:0},a.target={x:e.identity.width,y:e.identity.height}}),T("TEXT",(e,a)=>{a.text=e.identity.text}),T("NOTE_STEM",(e,a)=>{a.width=e.identity.width,a.height=e.identity.height}),T("ADDITIONAL_LINE",(e,a)=>{a.width=e.identity.width,a.height=e.identity.height;const c=e.y+e.identity.height/2;a.ry=Object(t["f"])(c,t["b"])})],x={zero:"NUMBER 0",one:"NUMBER 1",two:"NUMBER 2",three:"NUMBER 3",four:"NUMBER 4",five:"NUMBER 5",six:"NUMBER 6",seven:"NUMBER 7",eight:"NUMBER 8",nine:"NUMBER 9"},F=(e,a)=>{if(a.glyph=a.glyph||e.glyph,a.glyph&&e.identity.scale){const c=e.identity.scale.x/t["a"];1!==c&&(a.scale=c)}if(a.glyph){const e=x[a.glyph];e&&(a.symbol=[a.symbol,e].filter(Boolean).join(" "))}for(const c of E)c(e,a);return a},A=e=>{e.glyph=o[e.hash];let a={};for(const c of _){const d=c(e);if(d){a=d;break}}return F(e,a)};var I=c("d57e"),N=c("12b4");const S=(e,a)=>{const c={x:null,y:null,identity:{type:e.type}},d=Object(t["g"])(a.staffSize),s=Object(t["h"])(a.staffSize);switch(e.type){case"a":case"style":return null;case"text":c.x=e.transform.translate.x,c.y=e.transform.translate.y,c.href=e.href,c.identity.text=e.text,c.identity.color=e.color,c.identity["font-size"]=e["font-size"],c.identity["font-weight"]=e["font-weight"],c.identity["font-style"]=e["font-style"],c.identity["text-anchor"]=e["text-anchor"];break;case"line":if(c.x=e.x1+e.transform.translate.x,c.y=e.y1+e.transform.translate.y,c.href=e.href,c.identity.width=Object(t["f"])((e.x2-e.x1)*e.transform.scale.x,t["c"]),c.identity.height=Object(t["f"])((e.y2-e.y1)*e.transform.scale.y,t["c"]),c.identity["stroke-width"]=e["stroke-width"],c.identity["stroke-dasharray"]=e["stroke-dasharray"],0===c.identity.width&&0===c.identity.height)return null;break;case"rect":e.transform?(c.x=e.x+e.transform.translate.x,c.y=e.y+e.transform.translate.y,c.identity.width=e.width,c.identity.height=e.height,c.identity.rw=Object(t["f"])(e.width*e.transform.scale.x,t["c"]),c.identity.rh=Object(t["f"])(e.height*e.transform.scale.y,t["c"])):(c.x=e.x,c.y=e.y,c.identity.width=e.width,c.identity.height=e.height,c.identity.rw=Object(t["f"])(e.width,t["c"]),c.identity.rh=Object(t["f"])(e.height,t["c"]));break;case"path":c.x=e.transform.translate.x,c.y=e.transform.translate.y,c.href=e.href,c.identity.scale=e.transform.scale,c.identity.d=e.d,c.identity["stroke-width"]=e["stroke-width"];break;case"polygon":c.x=e.transform.translate.x,c.y=e.transform.translate.y,c.href=e.href,c.identity.scale=e.transform.scale,c.identity.points=e.points,c.identity["stroke-width"]=e["stroke-width"];break;default:return console.warn("unexpected element type:",e.type,e),null}if(c.rx=Object(t["f"])(c.x,t["b"]),c.ry=Object(t["f"])(c.y,t["b"]),c.identity)if(c.identity["stroke-width"])c.sw=Object(t["f"])(c.identity["stroke-width"]/d,t["d"]);else if(c.identity.width&&c.identity.height){const e=Math.min(c.identity.width,c.identity.height);e<2&&(c.sw=Object(t["f"])(e/d,t["d"]),c.identity.height{const d=e.map(e=>S(e,a)).filter(e=>e),s={};for(const b of d)s[b.hash]=b.identity;const f=d.map(e=>{const{x:a,y:c,rx:d,ry:s,sw:f,href:t,hash:b}=e;return new I["a"]({x:a,y:c,rx:d,ry:s,sw:f,href:t,hash:b,...A(e)})}),t=f.filter(e=>!e.symbol).map(e=>({...Object(N["a"])(e,["x","y","rx","ry","sw","href"]),identity:s[e.hash]}));return t.length&&c.append("tokenizeElements.nonsymbolTokens",t),{tokens:f,hashTable:s}};var W=z;class O{constructor(e){this.translation={x:0,y:0},this.lines=[e]}get tip(){return this.lines[this.lines.length-1]}get rect(){if(!this._rect){const e=this.lines.map(e=>e.y+e.height/2);this._rect={left:Math.min(...this.lines.map(e=>e.x)),right:Math.max(...this.lines.map(e=>e.x+e.width)),top:e[0],bottom:e[e.length-1]}}return this._rect}tryAppend(e){return e.ry-this.tip.ry===1&&Math.abs(e.x-this.tip.x)<2&&(this.lines.push(e),this._rect=null,!0)}tryAttachConnection(e,a){const{top:c,bottom:d}=this.rect,s=e.y+this.translation.y;return d+1.6>s&&c-1.6e&&c-3.2a-1.6&&fd-.6&&t{const a=e.filter(e=>e.is("ADDITIONAL_LINE")).sort((e,a)=>e.y-a.y),c=[];return a.forEach(e=>{for(const a of c)if(a.tryAppend(e))return;c.push(new O(e))}),c},P=(e,a)=>{if(!e.length)return a.append("tokensSystemsSplit.emptyTokens"),[];const c=Math.max(...e.map(e=>e.y)),d=Array(Math.round(c)).fill(-1);let s=0;const f=e.filter(e=>e.is("STAVES_CONNECTION"));if(f.length)f.forEach((e,a)=>{const c=Math.round(e.y)-1,f=Math.round(e.y+e.height)+1;let t=a-s;for(let b=c;b<=f;++b)if(d[b]>=0){t=d[b],++s;break}for(let s=c;s<=f;++s)d[s]=t});else{const c=e.filter(e=>e.is("STAFF_LINE"));if(c.forEach(e=>d[Math.round(e.y)]=0),!c.length)return a.append("tokensSystemsSplit.noConnetionsOrLines",{tokens:e}),[];let s=-1,t=!0;for(let e=0;e{for(let a=0;ae.systemIndex>=0);b.length!(e.systemIndex>=0))),b.forEach(e=>{const{top:a,bottom:c}=e.rect;for(let s=Math.floor(a)-1;se.topAtSystem);n.forEach(e=>{const a=d.find((a,c)=>c>e.y&&a>=0);for(let s=Math.floor(e.y)-1;s=0)break;d[s]=a}});const r=e.filter(e=>e.is("NOTE_STEM")&&-1===d[Math.round(e.y)]&&d[Math.round(e.y)]!==d[Math.round(e.y+e.height)]);r.forEach(e=>{const a=d[Math.round(e.y+e.height)];if(a>0)for(let c=Math.round(e.y+e.height)-1;c>=Math.round(e.y);--c)d[c]=a});const o=d.reduce((e,a,c)=>(a>=e.length&&e.push(c-1),e),[]);o[0]=-1/0;const i=Array(o.length).fill(null).map(()=>({tokens:[],stacks:[]}));return b.forEach(e=>i[e.systemIndex]&&i[e.systemIndex].stacks.push(e)),e.forEach(e=>{for(const d of b)if(d.contains(e)){if(i[d.systemIndex])return void i[d.systemIndex].tokens.push(e);a.append("tokensSystemsSplit.invalidStackSystemIndex",{stack:d,systems:i})}if(e.withUp||e.withDown){let a=0;return a=e.withUp?f.filter(a=>a.y+a.heighta.y=o[a]&&(a>=o.length-1||ce.tokens=e.tokens.sort((e,a)=>e.logicX-a.logicX)),i},B=(e,a)=>{const c=e.filter(e=>e.is("NOTE_STEM")),d=e.filter(e=>e.is("NOTEHEAD")||e.is("TEMPO_NOTEHEAD"));c.forEach(e=>{const c=d.filter(a=>e.stemAttached({x:a.x,y:a.y+t["e"].NOTE_TYPE_JOINT_Y[a.noteType]*(a.scale||1),href:a.href})),s=d.filter(a=>e.stemAttached({x:a.x+t["e"].NOTE_TYPE_WIDTHS[a.noteType]*(a.scale||1),y:a.y-t["e"].NOTE_TYPE_JOINT_Y[a.noteType]*(a.scale||1),href:a.href}));if(c.length+s.length<=0)return a.append("parseChordsByStems.baldStem:",e),void e.addSymbol("BALD");const f=[...c.map(e=>e.y),...s.map(e=>e.y)],b=Math.abs(e.y-Math.min(...f)),n=Math.abs(e.y+e.height-Math.max(...f)),r=b{a.stemX=i.x,a.stemUp=!r,a.stems=a.stems||[],a.stems.push(e.index)};c.forEach(l),s.forEach(l),o?o.is("HALF")&&(e.division=1):(e.addSymbol("NOTICE"),a.append("parseChordsByStems.unexpectedStem",{stem:e,ys:f,rightAttached:c,leftAttached:s}))})},R=e=>e.is("STAVES_CONNECTION")||e.is("BRACE")||e.is("VERTICAL_LINE"),D=(e,a,c)=>{const d=new Set,s=e.filter(e=>e.is("MEASURE_SEPARATOR"));s.forEach(e=>d.add(e.ry));for(const t of Array.from(d).sort())d.has(t-4)&&d.has(t+4)&&(d.delete(t),s.filter(e=>e.ry===t).forEach(e=>{e.removeSymbol("MEASURE_SEPARATOR"),e.addSymbol("VERTICAL_LINE")}));const f=e.filter(e=>e.is("STAFF_LINE")).reduce((e,a)=>((!e[a.ry]||e[a.ry].x>a.x)&&(e[a.ry]=a),e),{});if(!d.size){const e=Object.keys(f).map(Number),a=e.filter(e=>f[e+3]&&f[e+4]);a.forEach(e=>d.add(e))}const b=Array.from(d).filter(e=>f[e]||f[e+t["b"]]).map(e=>f[e]?e:e+t["b"]).map(e=>e+2).sort((e,a)=>e-a).filter(e=>f[e-2]&&f[e]&&f[e+2]),n=e.filter(e=>e.is("ADDITIONAL_LINE")).sort((e,a)=>e.y-a.y),r=n.reduce((e,a)=>(e.add(a.ry),e),new Set),o=b[0]-2,i=f[o]&&f[o].rx,l=e.filter(e=>e.is("NOTE")&&!e.is("TEMPO_NOTEHEAD")).map(e=>e.ry).concat(Object.keys(f).map(Number)),u=Math.min(...l)-o,h=Math.max(...l)-o,m=[];for(let t=0;t{for(let a=0;a{for(const c of a)if(c.contains(e))return c.staffIndex},g=e.map(e=>e.translate({x:-i,y:-o})),v=g.filter(e=>e.is("NOTE_STEM"));v.forEach(e=>e.division=2);const M=g.filter(e=>e.is("LINE")&&e.target&&e.target.x>0&&e.target.y<0),k=g.filter(e=>e.is("LINE")&&e.target&&e.target.x>0&&e.target.y>0),y=[],_=e=>{if(e.is("BEAM")){const a=v.filter(a=>Math.abs(a.centerX-e.x)<.1&&(Math.abs(e.y-a.y)<.2||Math.abs(e.y-(a.y+a.height))<.2)),c=(e.target.y-e.start.y)/(e.target.x-e.start.x),d=v.filter(a=>{const d=(a.x-(e.x+e.start.x))*c;return a.centerX-(e.x+e.start.x)>-.1&&a.centerX-(e.x+e.target.x)<.1&&e.y+d-a.y>-.2&&e.y+d-(a.y+a.height)<.2});if(d.length){e.stems=d.map(e=>e.index),a.length&&e.addSymbol("CAPITAL_BEAM");const c=(e.target.y-e.start.y)/(e.target.x-e.start.x),s=v.filter(a=>a.centerX>e.x-.1&&a.centerXMath.min(e.y,e.y+e.target.y)-.2);s.forEach(a=>{const d=(a.centerX-e.x+e.start.x)*c+e.y+e.start.y;if(d>a.y-.2&&da.y+a.height-3.2;c&&(++a.division,e.is("CAPITAL_BEAM")&&(a.beam=e.index))}})}else e.removeSymbol("NOTETAIL"),e.removeSymbol("JOINT")}if(e.is("FLAG UP")){const a=v.find(a=>Math.abs(a.x+a.width-e.x)<.04&&Math.abs(a.y-e.y)<.1);a?(e.stem=a.index,a.division=e.flagNumber):e.addSymbol("SUSPENDED")}if(e.is("FLAG DOWN")){const a=v.find(a=>Math.abs(a.x+a.width-e.x)<.04&&Math.abs(a.y+a.height-e.y)<.1);a?(e.stem=a.index,a.division=e.flagNumber):e.addSymbol("SUSPENDED")}if(M.includes(e)){const a=k.find(a=>a.x===e.x&&a.target.y===-e.target.y);a&&(e.y<=a.y?(e.addSymbol("WEDGE CRESCENDO TOP"),a.addSymbol("WEDGE CRESCENDO BOTTOM")):e.y>a.y&&(e.addSymbol("WEDGE DECRESCENDO BOTTOM"),a.addSymbol("WEDGE DECRESCENDO TOP")))}let a=0;if(e.withUp||e.withDown)e.withUp?a=b.filter(a=>a+2a-2Math.abs(a.centerX-e.x)<.1&&e.y>a.y-.2&&e.ym[a])++a}}y[a]=y[a]||[],y[a].push(e)};a.forEach(e=>e.translate({x:i,y:o})),B(g,c),g.filter(e=>!R(e)).forEach(_);const T=g.filter(e=>e.is("NOTE")),w=Array.from(new Set(g.filter(e=>e.is("MEASURE_SEPARATOR")).map(e=>e.logicX))).sort((e,a)=>e-a);w.length||w.push(g[g.length-1].x+1);const E=w.map((e,a)=>{const c=a>0?w[a-1]:-1/0;return{x:e,notes:T.filter(a=>a.x>c&&a.xe.length).map(({x:e,notes:a})=>({headX:a[0].x-1.5,noteRange:{begin:a[0].x,end:e}}));return{x:i,y:o,top:u,bottom:h,tokens:g.filter(R),staves:b.map((e,a)=>y[a]&&Y({tokens:y[a],y:e-o,top:m[a]-(e-o),measureRanges:E,logger:c}))}},L=e=>e.is("STAFF_LINE")||e.is("MEASURE_SEPARATOR"),Y=({tokens:e,y:a,top:c,measureRanges:d,logger:s})=>{const f=e.map(e=>e.translate({y:-a})),b=f.filter(e=>e.is("NOTE")),n=d[0]?d[0].headX:0,r=f.filter(e=>e.is("ALTER"));let o=null;for(const t of r)if(!(t.y>3||t.y<-3)){if(t.source&&"\\key"===t.source.substr(0,4))o=t;else{if(o&&t.x-o.x>2)break;if(t.x!e.is("KEY")&&!e.href);i.forEach(e=>{const a=b.find(a=>a.ry===e.ry&&a.x>e.x&&a.x-e.x<5);a?e.stemX=a.logicX-t["e"].EPSILON:(e.addSymbol("NOTICE"),s.append("orphanAlter",e))});const l=d.map((e,a)=>{const c=a>0?d[a-1].noteRange.end:-1/0,s=f.filter(s=>!L(s)&&s.logicX>c&&(s.logicXe.logicX-a.logicX),t=Math.min(...s.filter(e=>e.is("NOTE")).map(e=>e.x),c+2.9),b=s.filter(e=>e.is("DOT")&&.5===Math.abs(e.ry)),n=b.filter(e=>e.xa.x>e.noteRange.end-1);return[n,r].forEach((e,a)=>{2===e.length&&e[0].ry*e[1].ry<0&&e.forEach(e=>{e.addSymbol(a?"RIGHT":"LEFT"),e.addSymbol("VOLTA")})}),{tokens:s,noteRange:e.noteRange,headX:e.headX}}),u=l[0]?l[0].headX:0;return{x:0,y:a,headWidth:u,top:c,tokens:f.filter(L),measures:l}},q=e=>e.is("TEXT")&&!e.source,U=(e,a,{logger:c,viewBox:d,width:s,height:f}={})=>{e.forEach(e=>{const c=e.sourcePosition;if(c&&(e.source=a.slice(c.line,[c.start,Math.max(c.end,c.start+8)]),/^\\/.test(e.source)))for(let d=e.source.length+1;d<80;++d){const s=e.source.match(/\s+/g);if(s&&s.length>=2)break;e.source=a.slice(c.line,[c.start,c.start+d])}});const t=e.filter(e=>!e.is("NULL")),b=t.filter(q);t.forEach(e=>{e.source&&("\\tempo"===e.source.substr(0,6)&&e.is("NOTEHEAD")&&(e.removeSymbol("NOTEHEAD"),e.addSymbol("TEMPO_NOTEHEAD")),e.is("DOT")&&/^\\sustain/.test(e.source)&&(e.removeSymbol("DOT"),e.addSymbol("SUSTAIN","PED_DOT")),e.is("BEAM")&&/^:\d+/.test(e.source)&&(e.removeSymbol("NOTETAIL"),e.removeSymbol("JOINT"),e.addSymbol("TREMOLO_BEAM"),e.addSymbol("PIERCED")),e.is("BEAM")&&/repeat tremolo/.test(e.source)&&(e.removeSymbol("NOTETAIL"),e.addSymbol("TREMOLO_BEAM"),e.addSymbol("TREMOLO_PAIR")),/^\\glissando/.test(e.source)&&(e.removeSymbol("TR_WAVE"),e.addSymbol("GLISSANDO")),/^\\arpeggio/.test(e.source)&&e.addSymbol("ARPEGGIO"))});const n=P(t.filter(e=>!q(e)),c),r=n.map(({tokens:e,stacks:a})=>D(e,a,c)).filter(e=>e.staves.length>0);return{tokens:b,systems:r,viewBox:d,width:s,height:f}};var G=U,j=c("a6bf"),V=c("4fde"),H=c("8745"),K=c("16d8");const X=(e,a)=>{if(a(e),e.childNodes)for(let c=0;c{a instanceof K["a"]||(a=new K["a"](a));const o=f(e,{logger:d,...r});if(d.append("parseSvgPage.elem",o),!o)return{structure:null,hashTable:{}};!s&&c&&(s=c.globalAttributes({readonly:!0}));const{tokens:i,hashTable:l}=W(o.children,s,d),[u,h,m,p]=o.viewBox.match(/[\d-.]+/g).map(Number),g={x:u,y:h,width:m,height:p},v=n&&new Set([...n].map(e=>Number(e.split(":")[0])));return i.forEach((e,a)=>{if(e.index=a,e.sourcePosition){const{line:a,start:c}=e.sourcePosition,d=`${a}:${c}`;b&&b.has(d)&&e.addSymbol("CHORD_TEXT"),n&&v.has(a)&&e.addSymbol("LYRIC_TEXT"),t&&t.has(d)&&(e.tied=!0)}}),{structure:G(i,a,{logger:d,viewBox:g,width:o.width,height:o.height}),hashTable:l}},ae=(e,a,c,{logger:d,DOMParser:s}={})=>{const f=c.globalAttributes({readonly:!0}),t=new K["a"](a),b=Object($["d"])(c.getTiedNoteLocations2()),n=Object($["d"])(c.getBriefChordLocations()),r=Object($["d"])(c.getLyricLocations()),o=e.map(e=>ee(e,t,{DOMParser:s,logger:d,attributes:f,tieLocations:b,briefChordLocations:n,lyricLocations:r})),i=new V["e"]({pages:o.map(e=>e.structure)}),l=o.reduce((e,a)=>({...e,...a.hashTable}),{});return ce(i,c),{doc:i,hashTable:l}},ce=(e,a)=>{const c=a.interpret(),d=c.getNotation();d&&e.alignTokensWithNotation(d);const s=a.globalAttributes({readonly:!0}),f=e=>e.findAll(Z["K"]).reduce((e,a)=>(e[a.left]=a.right,e),{}),t=s["LotusOption.verticalCrop"];if(t&&t.exp){const a=f(t);e.fitPageViewbox({verticalCropOnly:!0,...a})}const b=s["LotusOption.fitPageViewbox"];b&&b.exp&&e.fitPageViewbox(f(b))},de=(e,a,{DOMParser:c,XMLSerializer:d})=>{const s=(new c).parseFromString(e,"text/xml"),f=s.childNodes[0];f.setAttribute("width",a.width),f.setAttribute("height",a.height),f.setAttribute("viewBox",`${a.viewBox.x} ${a.viewBox.y} ${a.viewBox.width} ${a.viewBox.height}`);const t=a.systems.reduce((e,a)=>(a.staves.forEach(a=>a.measures.forEach(a=>e.push(...a.tokens.filter(e=>e.is("NOTEHEAD")).map(e=>e.href.replace(/:\d+$/,""))))),e),[]);return X(s,e=>{switch(e.tagName){case"a":const a=e.getAttribute("xlink:href").match(/\d+:\d+:\d+$/),c=a&&a[0].replace(/:\d+$/,"");c&&t.includes(c)&&e.setAttribute("style","color:transparent;");break;case"text":/www\.lilypond\.org/.test(e.textContent)&&e.parentNode.removeChild(e);break}}),(new d).serializeToString(s)}},"42bd":function(e,a,c){"use strict";c.d(a,"e",(function(){return d})),c.d(a,"c",(function(){return s})),c.d(a,"a",(function(){return f})),c.d(a,"d",(function(){return t})),c.d(a,"g",(function(){return b})),c.d(a,"h",(function(){return n})),c.d(a,"i",(function(){return r})),c.d(a,"b",(function(){return o})),c.d(a,"j",(function(){return i})),c.d(a,"f",(function(){return l}));const d=1920,s=.2246,f=/^lotus/,t="lotusMainScore",b=(e,a)=>0===a?e:b(a,e%a),n=(e,a)=>e*a/b(e,a),r=(e,a,...c)=>Number.isFinite(a)?c.length?r(n(e,a),...c):n(e,a):Number.isFinite(e)?e:1;class o{constructor(e,a){this.numerator=e,this.denominator=a}static fromExpression(e){const[a,c]=e.match(/\d+/g);return new o(Number(a),Number(c))}toString(){return`${this.numerator}/${this.denominator}`}get value(){return this.numerator/this.denominator}get reciprocal(){return new o(this.denominator,this.numerator)}get reduced(){const e=b(this.denominator,this.numerator);return new o(this.numerator/e,this.denominator/e)}}const i=(e,a)=>{let c="";c=a.length<4?Array(a.length).fill(" ").join(""):"%{"+Array(a.length-4).fill("-").join("")+"%}";let d=e;while(d.includes(a))d=d.replace(a,c);return d},l=e=>e.reduce((e,[a,c])=>(e.add(`${a}:${c}`),e),new Set)},"438b":function(e,a,c){"use strict";c.r(a),c.d(a,"Glyph",(function(){return d})),c.d(a,"GlyphUnicode",(function(){return t})),c.d(a,"slashGlyphName",(function(){return f}));var d,s=c("cc32");c.d(a,"glyphHash",(function(){return s})),function(e){e[e["rests.0"]=0]="rests.0",e[e["rests.1"]=1]="rests.1",e[e["rests.0o"]=2]="rests.0o",e[e["rests.1o"]=3]="rests.1o",e[e["rests.M3"]=4]="rests.M3",e[e["rests.M2"]=5]="rests.M2",e[e["rests.M1"]=6]="rests.M1",e[e["rests.M1o"]=7]="rests.M1o",e[e["rests.2"]=8]="rests.2",e[e["rests.2classical"]=9]="rests.2classical",e[e["rests.2z"]=10]="rests.2z",e[e["rests.3"]=11]="rests.3",e[e["rests.4"]=12]="rests.4",e[e["rests.5"]=13]="rests.5",e[e["rests.6"]=14]="rests.6",e[e["rests.7"]=15]="rests.7",e[e["accidentals.sharp"]=16]="accidentals.sharp",e[e["accidentals.sharp.arrowup"]=17]="accidentals.sharp.arrowup",e[e["accidentals.sharp.arrowdown"]=18]="accidentals.sharp.arrowdown",e[e["accidentals.sharp.arrowboth"]=19]="accidentals.sharp.arrowboth",e[e["accidentals.sharp.slashslash.stem"]=20]="accidentals.sharp.slashslash.stem",e[e["accidentals.sharp.slashslashslash.stemstem"]=21]="accidentals.sharp.slashslashslash.stemstem",e[e["accidentals.sharp.slashslashslash.stem"]=22]="accidentals.sharp.slashslashslash.stem",e[e["accidentals.sharp.slashslash.stemstemstem"]=23]="accidentals.sharp.slashslash.stemstemstem",e[e["accidentals.doublesharp"]=24]="accidentals.doublesharp",e[e["accidentals.natural"]=25]="accidentals.natural",e[e["accidentals.natural.arrowup"]=26]="accidentals.natural.arrowup",e[e["accidentals.natural.arrowdown"]=27]="accidentals.natural.arrowdown",e[e["accidentals.natural.arrowboth"]=28]="accidentals.natural.arrowboth",e[e["accidentals.flat"]=29]="accidentals.flat",e[e["accidentals.flat.arrowup"]=30]="accidentals.flat.arrowup",e[e["accidentals.flat.arrowdown"]=31]="accidentals.flat.arrowdown",e[e["accidentals.flat.arrowboth"]=32]="accidentals.flat.arrowboth",e[e["accidentals.flat.slash"]=33]="accidentals.flat.slash",e[e["accidentals.flat.slashslash"]=34]="accidentals.flat.slashslash",e[e["accidentals.mirroredflat.flat"]=35]="accidentals.mirroredflat.flat",e[e["accidentals.mirroredflat"]=36]="accidentals.mirroredflat",e[e["accidentals.mirroredflat.backslash"]=37]="accidentals.mirroredflat.backslash",e[e["accidentals.flatflat"]=38]="accidentals.flatflat",e[e["accidentals.flatflat.slash"]=39]="accidentals.flatflat.slash",e[e["accidentals.rightparen"]=40]="accidentals.rightparen",e[e["accidentals.leftparen"]=41]="accidentals.leftparen",e[e["arrowheads.open.01"]=42]="arrowheads.open.01",e[e["arrowheads.open.0M1"]=43]="arrowheads.open.0M1",e[e["arrowheads.open.11"]=44]="arrowheads.open.11",e[e["arrowheads.open.1M1"]=45]="arrowheads.open.1M1",e[e["arrowheads.close.01"]=46]="arrowheads.close.01",e[e["arrowheads.close.0M1"]=47]="arrowheads.close.0M1",e[e["arrowheads.close.11"]=48]="arrowheads.close.11",e[e["arrowheads.close.1M1"]=49]="arrowheads.close.1M1",e[e["dots.dot"]=50]="dots.dot",e[e["scripts.ufermata"]=51]="scripts.ufermata",e[e["scripts.dfermata"]=52]="scripts.dfermata",e[e["scripts.ushortfermata"]=53]="scripts.ushortfermata",e[e["scripts.dshortfermata"]=54]="scripts.dshortfermata",e[e["scripts.ulongfermata"]=55]="scripts.ulongfermata",e[e["scripts.dlongfermata"]=56]="scripts.dlongfermata",e[e["scripts.uverylongfermata"]=57]="scripts.uverylongfermata",e[e["scripts.dverylongfermata"]=58]="scripts.dverylongfermata",e[e["scripts.thumb"]=59]="scripts.thumb",e[e["scripts.sforzato"]=60]="scripts.sforzato",e[e["scripts.espr"]=61]="scripts.espr",e[e["scripts.staccato"]=62]="scripts.staccato",e[e["scripts.ustaccatissimo"]=63]="scripts.ustaccatissimo",e[e["scripts.dstaccatissimo"]=64]="scripts.dstaccatissimo",e[e["scripts.tenuto"]=65]="scripts.tenuto",e[e["scripts.uportato"]=66]="scripts.uportato",e[e["scripts.dportato"]=67]="scripts.dportato",e[e["scripts.umarcato"]=68]="scripts.umarcato",e[e["scripts.dmarcato"]=69]="scripts.dmarcato",e[e["scripts.open"]=70]="scripts.open",e[e["scripts.halfopen"]=71]="scripts.halfopen",e[e["scripts.halfopenvertical"]=72]="scripts.halfopenvertical",e[e["scripts.stopped"]=73]="scripts.stopped",e[e["scripts.upbow"]=74]="scripts.upbow",e[e["scripts.downbow"]=75]="scripts.downbow",e[e["scripts.reverseturn"]=76]="scripts.reverseturn",e[e["scripts.turn"]=77]="scripts.turn",e[e["scripts.trill"]=78]="scripts.trill",e[e["scripts.upedalheel"]=79]="scripts.upedalheel",e[e["scripts.dpedalheel"]=80]="scripts.dpedalheel",e[e["scripts.upedaltoe"]=81]="scripts.upedaltoe",e[e["scripts.dpedaltoe"]=82]="scripts.dpedaltoe",e[e["scripts.flageolet"]=83]="scripts.flageolet",e[e["scripts.segno"]=84]="scripts.segno",e[e["scripts.varsegno"]=85]="scripts.varsegno",e[e["scripts.coda"]=86]="scripts.coda",e[e["scripts.varcoda"]=87]="scripts.varcoda",e[e["scripts.rcomma"]=88]="scripts.rcomma",e[e["scripts.lcomma"]=89]="scripts.lcomma",e[e["scripts.rvarcomma"]=90]="scripts.rvarcomma",e[e["scripts.lvarcomma"]=91]="scripts.lvarcomma",e[e["scripts.arpeggio"]=92]="scripts.arpeggio",e[e["scripts.trill_element"]=93]="scripts.trill_element",e[e["scripts.arpeggio.arrow.M1"]=94]="scripts.arpeggio.arrow.M1",e[e["scripts.arpeggio.arrow.1"]=95]="scripts.arpeggio.arrow.1",e[e["scripts.trilelement"]=96]="scripts.trilelement",e[e["scripts.prall"]=97]="scripts.prall",e[e["scripts.mordent"]=98]="scripts.mordent",e[e["scripts.prallprall"]=99]="scripts.prallprall",e[e["scripts.prallmordent"]=100]="scripts.prallmordent",e[e["scripts.upprall"]=101]="scripts.upprall",e[e["scripts.upmordent"]=102]="scripts.upmordent",e[e["scripts.pralldown"]=103]="scripts.pralldown",e[e["scripts.downprall"]=104]="scripts.downprall",e[e["scripts.downmordent"]=105]="scripts.downmordent",e[e["scripts.prallup"]=106]="scripts.prallup",e[e["scripts.lineprall"]=107]="scripts.lineprall",e[e["scripts.caesura.curved"]=108]="scripts.caesura.curved",e[e["scripts.caesura.straight"]=109]="scripts.caesura.straight",e[e["scripts.tickmark"]=110]="scripts.tickmark",e[e["scripts.snappizzicato"]=111]="scripts.snappizzicato",e[e["clefs.C"]=112]="clefs.C",e[e["clefs.C_change"]=113]="clefs.C_change",e[e["clefs.varC"]=114]="clefs.varC",e[e["clefs.varC_change"]=115]="clefs.varC_change",e[e["clefs.F"]=116]="clefs.F",e[e["clefs.F_change"]=117]="clefs.F_change",e[e["clefs.G"]=118]="clefs.G",e[e["clefs.G_change"]=119]="clefs.G_change",e[e["clefs.GG"]=120]="clefs.GG",e[e["clefs.GG_change"]=121]="clefs.GG_change",e[e["clefs.tenorG"]=122]="clefs.tenorG",e[e["clefs.tenorG_change"]=123]="clefs.tenorG_change",e[e["clefs.percussion"]=124]="clefs.percussion",e[e["clefs.percussion_change"]=125]="clefs.percussion_change",e[e["clefs.varpercussion"]=126]="clefs.varpercussion",e[e["clefs.varpercussion_change"]=127]="clefs.varpercussion_change",e[e["clefs.tab"]=128]="clefs.tab",e[e["clefs.tab_change"]=129]="clefs.tab_change",e[e["timesig.C44"]=130]="timesig.C44",e[e["timesig.C22"]=131]="timesig.C22",e[e["pedal.*"]=132]="pedal.*",e[e["pedal.M"]=133]="pedal.M",e[e["pedal.."]=134]="pedal..",e[e["pedal.P"]=135]="pedal.P",e[e["pedal.d"]=136]="pedal.d",e[e["pedal.e"]=137]="pedal.e",e[e["pedal.Ped"]=138]="pedal.Ped",e[e["brackettips.up"]=139]="brackettips.up",e[e["brackettips.down"]=140]="brackettips.down",e[e["accordion.discant"]=141]="accordion.discant",e[e["accordion.dot"]=142]="accordion.dot",e[e["accordion.freebass"]=143]="accordion.freebass",e[e["accordion.stdbass"]=144]="accordion.stdbass",e[e["accordion.bayanbass"]=145]="accordion.bayanbass",e[e["accordion.oldEE"]=146]="accordion.oldEE",e[e["accordion.push"]=147]="accordion.push",e[e["accordion.pull"]=148]="accordion.pull",e[e["ties.lyric.short"]=149]="ties.lyric.short",e[e["ties.lyric.default"]=150]="ties.lyric.default",e[e["noteheads.uM2"]=151]="noteheads.uM2",e[e["noteheads.dM2"]=152]="noteheads.dM2",e[e["noteheads.sM1"]=153]="noteheads.sM1",e[e["noteheads.sM1double"]=154]="noteheads.sM1double",e[e["noteheads.s0"]=155]="noteheads.s0",e[e["noteheads.s1"]=156]="noteheads.s1",e[e["noteheads.s2"]=157]="noteheads.s2",e[e["noteheads.s0diamond"]=158]="noteheads.s0diamond",e[e["noteheads.s1diamond"]=159]="noteheads.s1diamond",e[e["noteheads.s2diamond"]=160]="noteheads.s2diamond",e[e["noteheads.s0triangle"]=161]="noteheads.s0triangle",e[e["noteheads.d1triangle"]=162]="noteheads.d1triangle",e[e["noteheads.u1triangle"]=163]="noteheads.u1triangle",e[e["noteheads.u2triangle"]=164]="noteheads.u2triangle",e[e["noteheads.d2triangle"]=165]="noteheads.d2triangle",e[e["noteheads.s0slash"]=166]="noteheads.s0slash",e[e["noteheads.s1slash"]=167]="noteheads.s1slash",e[e["noteheads.s2slash"]=168]="noteheads.s2slash",e[e["noteheads.s0cross"]=169]="noteheads.s0cross",e[e["noteheads.s1cross"]=170]="noteheads.s1cross",e[e["noteheads.s2cross"]=171]="noteheads.s2cross",e[e["noteheads.s2xcircle"]=172]="noteheads.s2xcircle",e[e["noteheads.s0do"]=173]="noteheads.s0do",e[e["noteheads.d1do"]=174]="noteheads.d1do",e[e["noteheads.u1do"]=175]="noteheads.u1do",e[e["noteheads.d2do"]=176]="noteheads.d2do",e[e["noteheads.u2do"]=177]="noteheads.u2do",e[e["noteheads.s0doThin"]=178]="noteheads.s0doThin",e[e["noteheads.d1doThin"]=179]="noteheads.d1doThin",e[e["noteheads.u1doThin"]=180]="noteheads.u1doThin",e[e["noteheads.d2doThin"]=181]="noteheads.d2doThin",e[e["noteheads.u2doThin"]=182]="noteheads.u2doThin",e[e["noteheads.s0re"]=183]="noteheads.s0re",e[e["noteheads.u1re"]=184]="noteheads.u1re",e[e["noteheads.d1re"]=185]="noteheads.d1re",e[e["noteheads.u2re"]=186]="noteheads.u2re",e[e["noteheads.d2re"]=187]="noteheads.d2re",e[e["noteheads.s0reThin"]=188]="noteheads.s0reThin",e[e["noteheads.u1reThin"]=189]="noteheads.u1reThin",e[e["noteheads.d1reThin"]=190]="noteheads.d1reThin",e[e["noteheads.u2reThin"]=191]="noteheads.u2reThin",e[e["noteheads.d2reThin"]=192]="noteheads.d2reThin",e[e["noteheads.s0mi"]=193]="noteheads.s0mi",e[e["noteheads.s1mi"]=194]="noteheads.s1mi",e[e["noteheads.s2mi"]=195]="noteheads.s2mi",e[e["noteheads.s0miMirror"]=196]="noteheads.s0miMirror",e[e["noteheads.s1miMirror"]=197]="noteheads.s1miMirror",e[e["noteheads.s2miMirror"]=198]="noteheads.s2miMirror",e[e["noteheads.s0miThin"]=199]="noteheads.s0miThin",e[e["noteheads.s1miThin"]=200]="noteheads.s1miThin",e[e["noteheads.s2miThin"]=201]="noteheads.s2miThin",e[e["noteheads.u0fa"]=202]="noteheads.u0fa",e[e["noteheads.d0fa"]=203]="noteheads.d0fa",e[e["noteheads.u1fa"]=204]="noteheads.u1fa",e[e["noteheads.d1fa"]=205]="noteheads.d1fa",e[e["noteheads.u2fa"]=206]="noteheads.u2fa",e[e["noteheads.d2fa"]=207]="noteheads.d2fa",e[e["noteheads.u0faThin"]=208]="noteheads.u0faThin",e[e["noteheads.d0faThin"]=209]="noteheads.d0faThin",e[e["noteheads.u1faThin"]=210]="noteheads.u1faThin",e[e["noteheads.d1faThin"]=211]="noteheads.d1faThin",e[e["noteheads.u2faThin"]=212]="noteheads.u2faThin",e[e["noteheads.d2faThin"]=213]="noteheads.d2faThin",e[e["noteheads.s0sol"]=214]="noteheads.s0sol",e[e["noteheads.s1sol"]=215]="noteheads.s1sol",e[e["noteheads.s2sol"]=216]="noteheads.s2sol",e[e["noteheads.s0la"]=217]="noteheads.s0la",e[e["noteheads.s1la"]=218]="noteheads.s1la",e[e["noteheads.s2la"]=219]="noteheads.s2la",e[e["noteheads.s0laThin"]=220]="noteheads.s0laThin",e[e["noteheads.s1laThin"]=221]="noteheads.s1laThin",e[e["noteheads.s2laThin"]=222]="noteheads.s2laThin",e[e["noteheads.s0ti"]=223]="noteheads.s0ti",e[e["noteheads.u1ti"]=224]="noteheads.u1ti",e[e["noteheads.d1ti"]=225]="noteheads.d1ti",e[e["noteheads.u2ti"]=226]="noteheads.u2ti",e[e["noteheads.d2ti"]=227]="noteheads.d2ti",e[e["noteheads.s0tiThin"]=228]="noteheads.s0tiThin",e[e["noteheads.u1tiThin"]=229]="noteheads.u1tiThin",e[e["noteheads.d1tiThin"]=230]="noteheads.d1tiThin",e[e["noteheads.u2tiThin"]=231]="noteheads.u2tiThin",e[e["noteheads.d2tiThin"]=232]="noteheads.d2tiThin",e[e["noteheads.u0doFunk"]=233]="noteheads.u0doFunk",e[e["noteheads.d0doFunk"]=234]="noteheads.d0doFunk",e[e["noteheads.u1doFunk"]=235]="noteheads.u1doFunk",e[e["noteheads.d1doFunk"]=236]="noteheads.d1doFunk",e[e["noteheads.u2doFunk"]=237]="noteheads.u2doFunk",e[e["noteheads.d2doFunk"]=238]="noteheads.d2doFunk",e[e["noteheads.u0reFunk"]=239]="noteheads.u0reFunk",e[e["noteheads.d0reFunk"]=240]="noteheads.d0reFunk",e[e["noteheads.u1reFunk"]=241]="noteheads.u1reFunk",e[e["noteheads.d1reFunk"]=242]="noteheads.d1reFunk",e[e["noteheads.u2reFunk"]=243]="noteheads.u2reFunk",e[e["noteheads.d2reFunk"]=244]="noteheads.d2reFunk",e[e["noteheads.u0miFunk"]=245]="noteheads.u0miFunk",e[e["noteheads.d0miFunk"]=246]="noteheads.d0miFunk",e[e["noteheads.u1miFunk"]=247]="noteheads.u1miFunk",e[e["noteheads.d1miFunk"]=248]="noteheads.d1miFunk",e[e["noteheads.s2miFunk"]=249]="noteheads.s2miFunk",e[e["noteheads.u0faFunk"]=250]="noteheads.u0faFunk",e[e["noteheads.d0faFunk"]=251]="noteheads.d0faFunk",e[e["noteheads.u1faFunk"]=252]="noteheads.u1faFunk",e[e["noteheads.d1faFunk"]=253]="noteheads.d1faFunk",e[e["noteheads.u2faFunk"]=254]="noteheads.u2faFunk",e[e["noteheads.d2faFunk"]=255]="noteheads.d2faFunk",e[e["noteheads.s0solFunk"]=256]="noteheads.s0solFunk",e[e["noteheads.s1solFunk"]=257]="noteheads.s1solFunk",e[e["noteheads.s2solFunk"]=258]="noteheads.s2solFunk",e[e["noteheads.s0laFunk"]=259]="noteheads.s0laFunk",e[e["noteheads.s1laFunk"]=260]="noteheads.s1laFunk",e[e["noteheads.s2laFunk"]=261]="noteheads.s2laFunk",e[e["noteheads.u0tiFunk"]=262]="noteheads.u0tiFunk",e[e["noteheads.d0tiFunk"]=263]="noteheads.d0tiFunk",e[e["noteheads.u1tiFunk"]=264]="noteheads.u1tiFunk",e[e["noteheads.d1tiFunk"]=265]="noteheads.d1tiFunk",e[e["noteheads.u2tiFunk"]=266]="noteheads.u2tiFunk",e[e["noteheads.d2tiFunk"]=267]="noteheads.d2tiFunk",e[e["noteheads.s0doWalker"]=268]="noteheads.s0doWalker",e[e["noteheads.u1doWalker"]=269]="noteheads.u1doWalker",e[e["noteheads.d1doWalker"]=270]="noteheads.d1doWalker",e[e["noteheads.u2doWalker"]=271]="noteheads.u2doWalker",e[e["noteheads.d2doWalker"]=272]="noteheads.d2doWalker",e[e["noteheads.s0reWalker"]=273]="noteheads.s0reWalker",e[e["noteheads.u1reWalker"]=274]="noteheads.u1reWalker",e[e["noteheads.d1reWalker"]=275]="noteheads.d1reWalker",e[e["noteheads.u2reWalker"]=276]="noteheads.u2reWalker",e[e["noteheads.d2reWalker"]=277]="noteheads.d2reWalker",e[e["noteheads.s0miWalker"]=278]="noteheads.s0miWalker",e[e["noteheads.s1miWalker"]=279]="noteheads.s1miWalker",e[e["noteheads.s2miWalker"]=280]="noteheads.s2miWalker",e[e["noteheads.s0faWalker"]=281]="noteheads.s0faWalker",e[e["noteheads.u1faWalker"]=282]="noteheads.u1faWalker",e[e["noteheads.d1faWalker"]=283]="noteheads.d1faWalker",e[e["noteheads.u2faWalker"]=284]="noteheads.u2faWalker",e[e["noteheads.d2faWalker"]=285]="noteheads.d2faWalker",e[e["noteheads.s0laWalker"]=286]="noteheads.s0laWalker",e[e["noteheads.s1laWalker"]=287]="noteheads.s1laWalker",e[e["noteheads.s2laWalker"]=288]="noteheads.s2laWalker",e[e["noteheads.s0tiWalker"]=289]="noteheads.s0tiWalker",e[e["noteheads.u1tiWalker"]=290]="noteheads.u1tiWalker",e[e["noteheads.d1tiWalker"]=291]="noteheads.d1tiWalker",e[e["noteheads.u2tiWalker"]=292]="noteheads.u2tiWalker",e[e["noteheads.d2tiWalker"]=293]="noteheads.d2tiWalker",e[e["flags.u3"]=294]="flags.u3",e[e["flags.u4"]=295]="flags.u4",e[e["flags.u5"]=296]="flags.u5",e[e["flags.u6"]=297]="flags.u6",e[e["flags.u7"]=298]="flags.u7",e[e["flags.d3"]=299]="flags.d3",e[e["flags.d4"]=300]="flags.d4",e[e["flags.d5"]=301]="flags.d5",e[e["flags.d6"]=302]="flags.d6",e[e["flags.d7"]=303]="flags.d7",e[e["flags.ugrace"]=304]="flags.ugrace",e[e["flags.dgrace"]=305]="flags.dgrace",e[e["rests.M3neomensural"]=306]="rests.M3neomensural",e[e["rests.M2neomensural"]=307]="rests.M2neomensural",e[e["rests.M1neomensural"]=308]="rests.M1neomensural",e[e["rests.0neomensural"]=309]="rests.0neomensural",e[e["rests.1neomensural"]=310]="rests.1neomensural",e[e["rests.2neomensural"]=311]="rests.2neomensural",e[e["rests.3neomensural"]=312]="rests.3neomensural",e[e["rests.4neomensural"]=313]="rests.4neomensural",e[e["rests.M3mensural"]=314]="rests.M3mensural",e[e["rests.M2mensural"]=315]="rests.M2mensural",e[e["rests.M1mensural"]=316]="rests.M1mensural",e[e["rests.0mensural"]=317]="rests.0mensural",e[e["rests.1mensural"]=318]="rests.1mensural",e[e["rests.2mensural"]=319]="rests.2mensural",e[e["rests.3mensural"]=320]="rests.3mensural",e[e["rests.4mensural"]=321]="rests.4mensural",e[e["clefs.vaticana.do"]=322]="clefs.vaticana.do",e[e["clefs.vaticana.do_change"]=323]="clefs.vaticana.do_change",e[e["clefs.vaticana.fa"]=324]="clefs.vaticana.fa",e[e["clefs.vaticana.fa_change"]=325]="clefs.vaticana.fa_change",e[e["clefs.medicaea.do"]=326]="clefs.medicaea.do",e[e["clefs.medicaea.do_change"]=327]="clefs.medicaea.do_change",e[e["clefs.medicaea.fa"]=328]="clefs.medicaea.fa",e[e["clefs.medicaea.fa_change"]=329]="clefs.medicaea.fa_change",e[e["clefs.neomensural.c"]=330]="clefs.neomensural.c",e[e["clefs.neomensural.c_change"]=331]="clefs.neomensural.c_change",e[e["clefs.petrucci.c1"]=332]="clefs.petrucci.c1",e[e["clefs.petrucci.c1_change"]=333]="clefs.petrucci.c1_change",e[e["clefs.petrucci.c2"]=334]="clefs.petrucci.c2",e[e["clefs.petrucci.c2_change"]=335]="clefs.petrucci.c2_change",e[e["clefs.petrucci.c3"]=336]="clefs.petrucci.c3",e[e["clefs.petrucci.c3_change"]=337]="clefs.petrucci.c3_change",e[e["clefs.petrucci.c4"]=338]="clefs.petrucci.c4",e[e["clefs.petrucci.c4_change"]=339]="clefs.petrucci.c4_change",e[e["clefs.petrucci.c5"]=340]="clefs.petrucci.c5",e[e["clefs.petrucci.c5_change"]=341]="clefs.petrucci.c5_change",e[e["clefs.mensural.c"]=342]="clefs.mensural.c",e[e["clefs.mensural.c_change"]=343]="clefs.mensural.c_change",e[e["clefs.blackmensural.c"]=344]="clefs.blackmensural.c",e[e["clefs.blackmensural.c_change"]=345]="clefs.blackmensural.c_change",e[e["clefs.petrucci.f"]=346]="clefs.petrucci.f",e[e["clefs.petrucci.f_change"]=347]="clefs.petrucci.f_change",e[e["clefs.mensural.f"]=348]="clefs.mensural.f",e[e["clefs.mensural.f_change"]=349]="clefs.mensural.f_change",e[e["clefs.petrucci.g"]=350]="clefs.petrucci.g",e[e["clefs.petrucci.g_change"]=351]="clefs.petrucci.g_change",e[e["clefs.mensural.g"]=352]="clefs.mensural.g",e[e["clefs.mensural.g_change"]=353]="clefs.mensural.g_change",e[e["clefs.hufnagel.do"]=354]="clefs.hufnagel.do",e[e["clefs.hufnagel.do_change"]=355]="clefs.hufnagel.do_change",e[e["clefs.hufnagel.fa"]=356]="clefs.hufnagel.fa",e[e["clefs.hufnagel.fa_change"]=357]="clefs.hufnagel.fa_change",e[e["clefs.hufnagel.do.fa"]=358]="clefs.hufnagel.do.fa",e[e["clefs.hufnagel.do.fa_change"]=359]="clefs.hufnagel.do.fa_change",e[e["clefs.kievan.do"]=360]="clefs.kievan.do",e[e["clefs.kievan.do_change"]=361]="clefs.kievan.do_change",e[e["custodes.hufnagel.u0"]=362]="custodes.hufnagel.u0",e[e["custodes.hufnagel.u1"]=363]="custodes.hufnagel.u1",e[e["custodes.hufnagel.u2"]=364]="custodes.hufnagel.u2",e[e["custodes.hufnagel.d0"]=365]="custodes.hufnagel.d0",e[e["custodes.hufnagel.d1"]=366]="custodes.hufnagel.d1",e[e["custodes.hufnagel.d2"]=367]="custodes.hufnagel.d2",e[e["custodes.medicaea.u0"]=368]="custodes.medicaea.u0",e[e["custodes.medicaea.u1"]=369]="custodes.medicaea.u1",e[e["custodes.medicaea.u2"]=370]="custodes.medicaea.u2",e[e["custodes.medicaea.d0"]=371]="custodes.medicaea.d0",e[e["custodes.medicaea.d1"]=372]="custodes.medicaea.d1",e[e["custodes.medicaea.d2"]=373]="custodes.medicaea.d2",e[e["custodes.vaticana.u0"]=374]="custodes.vaticana.u0",e[e["custodes.vaticana.u1"]=375]="custodes.vaticana.u1",e[e["custodes.vaticana.u2"]=376]="custodes.vaticana.u2",e[e["custodes.vaticana.d0"]=377]="custodes.vaticana.d0",e[e["custodes.vaticana.d1"]=378]="custodes.vaticana.d1",e[e["custodes.vaticana.d2"]=379]="custodes.vaticana.d2",e[e["custodes.mensural.u0"]=380]="custodes.mensural.u0",e[e["custodes.mensural.u1"]=381]="custodes.mensural.u1",e[e["custodes.mensural.u2"]=382]="custodes.mensural.u2",e[e["custodes.mensural.d0"]=383]="custodes.mensural.d0",e[e["custodes.mensural.d1"]=384]="custodes.mensural.d1",e[e["custodes.mensural.d2"]=385]="custodes.mensural.d2",e[e["accidentals.medicaeaM1"]=386]="accidentals.medicaeaM1",e[e["accidentals.vaticanaM1"]=387]="accidentals.vaticanaM1",e[e["accidentals.vaticana0"]=388]="accidentals.vaticana0",e[e["accidentals.mensural1"]=389]="accidentals.mensural1",e[e["accidentals.mensuralM1"]=390]="accidentals.mensuralM1",e[e["accidentals.hufnagelM1"]=391]="accidentals.hufnagelM1",e[e["accidentals.kievan1"]=392]="accidentals.kievan1",e[e["accidentals.kievanM1"]=393]="accidentals.kievanM1",e[e["flags.mensuralu03"]=394]="flags.mensuralu03",e[e["flags.mensuralu13"]=395]="flags.mensuralu13",e[e["flags.mensuralu23"]=396]="flags.mensuralu23",e[e["flags.mensurald03"]=397]="flags.mensurald03",e[e["flags.mensurald13"]=398]="flags.mensurald13",e[e["flags.mensurald23"]=399]="flags.mensurald23",e[e["flags.mensuralu04"]=400]="flags.mensuralu04",e[e["flags.mensuralu14"]=401]="flags.mensuralu14",e[e["flags.mensuralu24"]=402]="flags.mensuralu24",e[e["flags.mensurald04"]=403]="flags.mensurald04",e[e["flags.mensurald14"]=404]="flags.mensurald14",e[e["flags.mensurald24"]=405]="flags.mensurald24",e[e["flags.mensuralu05"]=406]="flags.mensuralu05",e[e["flags.mensuralu15"]=407]="flags.mensuralu15",e[e["flags.mensuralu25"]=408]="flags.mensuralu25",e[e["flags.mensurald05"]=409]="flags.mensurald05",e[e["flags.mensurald15"]=410]="flags.mensurald15",e[e["flags.mensurald25"]=411]="flags.mensurald25",e[e["flags.mensuralu06"]=412]="flags.mensuralu06",e[e["flags.mensuralu16"]=413]="flags.mensuralu16",e[e["flags.mensuralu26"]=414]="flags.mensuralu26",e[e["flags.mensurald06"]=415]="flags.mensurald06",e[e["flags.mensurald16"]=416]="flags.mensurald16",e[e["flags.mensurald26"]=417]="flags.mensurald26",e[e["timesig.mensural44"]=418]="timesig.mensural44",e[e["timesig.mensural22"]=419]="timesig.mensural22",e[e["timesig.mensural32"]=420]="timesig.mensural32",e[e["timesig.mensural64"]=421]="timesig.mensural64",e[e["timesig.mensural94"]=422]="timesig.mensural94",e[e["timesig.mensural34"]=423]="timesig.mensural34",e[e["timesig.mensural68"]=424]="timesig.mensural68",e[e["timesig.mensural98"]=425]="timesig.mensural98",e[e["timesig.mensural48"]=426]="timesig.mensural48",e[e["timesig.mensural68alt"]=427]="timesig.mensural68alt",e[e["timesig.mensural24"]=428]="timesig.mensural24",e[e["timesig.neomensural44"]=429]="timesig.neomensural44",e[e["timesig.neomensural22"]=430]="timesig.neomensural22",e[e["timesig.neomensural32"]=431]="timesig.neomensural32",e[e["timesig.neomensural64"]=432]="timesig.neomensural64",e[e["timesig.neomensural94"]=433]="timesig.neomensural94",e[e["timesig.neomensural34"]=434]="timesig.neomensural34",e[e["timesig.neomensural68"]=435]="timesig.neomensural68",e[e["timesig.neomensural98"]=436]="timesig.neomensural98",e[e["timesig.neomensural48"]=437]="timesig.neomensural48",e[e["timesig.neomensural68alt"]=438]="timesig.neomensural68alt",e[e["timesig.neomensural24"]=439]="timesig.neomensural24",e[e["scripts.ictus"]=440]="scripts.ictus",e[e["scripts.uaccentus"]=441]="scripts.uaccentus",e[e["scripts.daccentus"]=442]="scripts.daccentus",e[e["scripts.usemicirculus"]=443]="scripts.usemicirculus",e[e["scripts.dsemicirculus"]=444]="scripts.dsemicirculus",e[e["scripts.circulus"]=445]="scripts.circulus",e[e["scripts.augmentum"]=446]="scripts.augmentum",e[e["scripts.usignumcongruentiae"]=447]="scripts.usignumcongruentiae",e[e["scripts.dsignumcongruentiae"]=448]="scripts.dsignumcongruentiae",e[e["scripts.barline.kievan"]=449]="scripts.barline.kievan",e[e["dots.dotvaticana"]=450]="dots.dotvaticana",e[e["dots.dotkievan"]=451]="dots.dotkievan",e[e["noteheads.uM3neomensural"]=452]="noteheads.uM3neomensural",e[e["noteheads.dM3neomensural"]=453]="noteheads.dM3neomensural",e[e["noteheads.uM2neomensural"]=454]="noteheads.uM2neomensural",e[e["noteheads.dM2neomensural"]=455]="noteheads.dM2neomensural",e[e["noteheads.sM1neomensural"]=456]="noteheads.sM1neomensural",e[e["noteheads.urM3neomensural"]=457]="noteheads.urM3neomensural",e[e["noteheads.drM3neomensural"]=458]="noteheads.drM3neomensural",e[e["noteheads.urM2neomensural"]=459]="noteheads.urM2neomensural",e[e["noteheads.drM2neomensural"]=460]="noteheads.drM2neomensural",e[e["noteheads.srM1neomensural"]=461]="noteheads.srM1neomensural",e[e["noteheads.s0neomensural"]=462]="noteheads.s0neomensural",e[e["noteheads.s1neomensural"]=463]="noteheads.s1neomensural",e[e["noteheads.s2neomensural"]=464]="noteheads.s2neomensural",e[e["noteheads.s0harmonic"]=465]="noteheads.s0harmonic",e[e["noteheads.s2harmonic"]=466]="noteheads.s2harmonic",e[e["noteheads.uM3mensural"]=467]="noteheads.uM3mensural",e[e["noteheads.dM3mensural"]=468]="noteheads.dM3mensural",e[e["noteheads.sM3ligmensural"]=469]="noteheads.sM3ligmensural",e[e["noteheads.uM2mensural"]=470]="noteheads.uM2mensural",e[e["noteheads.dM2mensural"]=471]="noteheads.dM2mensural",e[e["noteheads.sM2ligmensural"]=472]="noteheads.sM2ligmensural",e[e["noteheads.sM1mensural"]=473]="noteheads.sM1mensural",e[e["noteheads.urM3mensural"]=474]="noteheads.urM3mensural",e[e["noteheads.drM3mensural"]=475]="noteheads.drM3mensural",e[e["noteheads.srM3ligmensural"]=476]="noteheads.srM3ligmensural",e[e["noteheads.urM2mensural"]=477]="noteheads.urM2mensural",e[e["noteheads.drM2mensural"]=478]="noteheads.drM2mensural",e[e["noteheads.srM2ligmensural"]=479]="noteheads.srM2ligmensural",e[e["noteheads.srM1mensural"]=480]="noteheads.srM1mensural",e[e["noteheads.uM3semimensural"]=481]="noteheads.uM3semimensural",e[e["noteheads.dM3semimensural"]=482]="noteheads.dM3semimensural",e[e["noteheads.sM3semiligmensural"]=483]="noteheads.sM3semiligmensural",e[e["noteheads.uM2semimensural"]=484]="noteheads.uM2semimensural",e[e["noteheads.dM2semimensural"]=485]="noteheads.dM2semimensural",e[e["noteheads.sM2semiligmensural"]=486]="noteheads.sM2semiligmensural",e[e["noteheads.sM1semimensural"]=487]="noteheads.sM1semimensural",e[e["noteheads.urM3semimensural"]=488]="noteheads.urM3semimensural",e[e["noteheads.drM3semimensural"]=489]="noteheads.drM3semimensural",e[e["noteheads.srM3semiligmensural"]=490]="noteheads.srM3semiligmensural",e[e["noteheads.urM2semimensural"]=491]="noteheads.urM2semimensural",e[e["noteheads.drM2semimensural"]=492]="noteheads.drM2semimensural",e[e["noteheads.srM2semiligmensural"]=493]="noteheads.srM2semiligmensural",e[e["noteheads.srM1semimensural"]=494]="noteheads.srM1semimensural",e[e["noteheads.uM3blackmensural"]=495]="noteheads.uM3blackmensural",e[e["noteheads.dM3blackmensural"]=496]="noteheads.dM3blackmensural",e[e["noteheads.sM3blackligmensural"]=497]="noteheads.sM3blackligmensural",e[e["noteheads.uM2blackmensural"]=498]="noteheads.uM2blackmensural",e[e["noteheads.dM2blackmensural"]=499]="noteheads.dM2blackmensural",e[e["noteheads.sM2blackligmensural"]=500]="noteheads.sM2blackligmensural",e[e["noteheads.sM1blackmensural"]=501]="noteheads.sM1blackmensural",e[e["noteheads.s0mensural"]=502]="noteheads.s0mensural",e[e["noteheads.s1mensural"]=503]="noteheads.s1mensural",e[e["noteheads.s2mensural"]=504]="noteheads.s2mensural",e[e["noteheads.s0blackmensural"]=505]="noteheads.s0blackmensural",e[e["noteheads.s0petrucci"]=506]="noteheads.s0petrucci",e[e["noteheads.s1petrucci"]=507]="noteheads.s1petrucci",e[e["noteheads.s2petrucci"]=508]="noteheads.s2petrucci",e[e["noteheads.s0blackpetrucci"]=509]="noteheads.s0blackpetrucci",e[e["noteheads.s1blackpetrucci"]=510]="noteheads.s1blackpetrucci",e[e["noteheads.s2blackpetrucci"]=511]="noteheads.s2blackpetrucci",e[e["noteheads.svaticana.punctum"]=512]="noteheads.svaticana.punctum",e[e["noteheads.svaticana.punctum.cavum"]=513]="noteheads.svaticana.punctum.cavum",e[e["noteheads.svaticana.linea.punctum"]=514]="noteheads.svaticana.linea.punctum",e[e["noteheads.svaticana.linea.punctum.cavum"]=515]="noteheads.svaticana.linea.punctum.cavum",e[e["noteheads.svaticana.inclinatum"]=516]="noteheads.svaticana.inclinatum",e[e["noteheads.svaticana.lpes"]=517]="noteheads.svaticana.lpes",e[e["noteheads.svaticana.vlpes"]=518]="noteheads.svaticana.vlpes",e[e["noteheads.svaticana.upes"]=519]="noteheads.svaticana.upes",e[e["noteheads.svaticana.vupes"]=520]="noteheads.svaticana.vupes",e[e["noteheads.svaticana.plica"]=521]="noteheads.svaticana.plica",e[e["noteheads.svaticana.vplica"]=522]="noteheads.svaticana.vplica",e[e["noteheads.svaticana.epiphonus"]=523]="noteheads.svaticana.epiphonus",e[e["noteheads.svaticana.vepiphonus"]=524]="noteheads.svaticana.vepiphonus",e[e["noteheads.svaticana.reverse.plica"]=525]="noteheads.svaticana.reverse.plica",e[e["noteheads.svaticana.reverse.vplica"]=526]="noteheads.svaticana.reverse.vplica",e[e["noteheads.svaticana.inner.cephalicus"]=527]="noteheads.svaticana.inner.cephalicus",e[e["noteheads.svaticana.cephalicus"]=528]="noteheads.svaticana.cephalicus",e[e["noteheads.svaticana.quilisma"]=529]="noteheads.svaticana.quilisma",e[e["noteheads.ssolesmes.incl.parvum"]=530]="noteheads.ssolesmes.incl.parvum",e[e["noteheads.ssolesmes.auct.asc"]=531]="noteheads.ssolesmes.auct.asc",e[e["noteheads.ssolesmes.auct.desc"]=532]="noteheads.ssolesmes.auct.desc",e[e["noteheads.ssolesmes.incl.auctum"]=533]="noteheads.ssolesmes.incl.auctum",e[e["noteheads.ssolesmes.stropha"]=534]="noteheads.ssolesmes.stropha",e[e["noteheads.ssolesmes.stropha.aucta"]=535]="noteheads.ssolesmes.stropha.aucta",e[e["noteheads.ssolesmes.oriscus"]=536]="noteheads.ssolesmes.oriscus",e[e["noteheads.smedicaea.inclinatum"]=537]="noteheads.smedicaea.inclinatum",e[e["noteheads.smedicaea.punctum"]=538]="noteheads.smedicaea.punctum",e[e["noteheads.smedicaea.rvirga"]=539]="noteheads.smedicaea.rvirga",e[e["noteheads.smedicaea.virga"]=540]="noteheads.smedicaea.virga",e[e["noteheads.shufnagel.punctum"]=541]="noteheads.shufnagel.punctum",e[e["noteheads.shufnagel.virga"]=542]="noteheads.shufnagel.virga",e[e["noteheads.shufnagel.lpes"]=543]="noteheads.shufnagel.lpes",e[e["noteheads.sM2kievan"]=544]="noteheads.sM2kievan",e[e["noteheads.sM1kievan"]=545]="noteheads.sM1kievan",e[e["noteheads.s0kievan"]=546]="noteheads.s0kievan",e[e["noteheads.d2kievan"]=547]="noteheads.d2kievan",e[e["noteheads.u2kievan"]=548]="noteheads.u2kievan",e[e["noteheads.s1kievan"]=549]="noteheads.s1kievan",e[e["noteheads.sr1kievan"]=550]="noteheads.sr1kievan",e[e["noteheads.d3kievan"]=551]="noteheads.d3kievan",e[e["noteheads.u3kievan"]=552]="noteheads.u3kievan",e[e["space"]=553]="space",e[e["plus"]=554]="plus",e[e["comma"]=555]="comma",e[e["hyphen"]=556]="hyphen",e[e["period"]=557]="period",e[e["zero"]=558]="zero",e[e["one"]=559]="one",e[e["two"]=560]="two",e[e["three"]=561]="three",e[e["four"]=562]="four",e[e["five"]=563]="five",e[e["six"]=564]="six",e[e["seven"]=565]="seven",e[e["eight"]=566]="eight",e[e["nine"]=567]="nine",e[e["f"]=568]="f",e[e["m"]=569]="m",e[e["p"]=570]="p",e[e["r"]=571]="r",e[e["s"]=572]="s",e[e["z"]=573]="z"}(d||(d={}));const f=e=>e?e.replace(/\./g,"-").replace("*","star"):null;var t;(function(e){e["rests.0"]="",e["rests.1"]="",e["rests.0o"]="",e["rests.1o"]="",e["rests.M3"]="",e["rests.M2"]="",e["rests.M1"]="",e["rests.M1o"]="",e["rests.2"]="",e["rests.2classical"]="",e["rests.2z"]="",e["rests.3"]="",e["rests.4"]="",e["rests.5"]="",e["rests.6"]="",e["rests.7"]="",e["rests.8"]="",e["rests.9"]="",e["rests.10"]="",e["accidentals.sharp"]="",e["accidentals.sharp.arrowup"]="",e["accidentals.sharp.arrowdown"]="",e["accidentals.sharp.arrowboth"]="",e["accidentals.sharp.slashslash.stem"]="",e["accidentals.sharp.slashslashslash.stemstem"]="",e["accidentals.sharp.slashslashslash.stem"]="",e["accidentals.sharp.slash.stem"]="",e["accidentals.sharp.slashslash.stemstemstem"]="",e["accidentals.doublesharp"]="",e["accidentals.natural"]="",e["accidentals.natural.arrowup"]="",e["accidentals.natural.arrowdown"]="",e["accidentals.natural.arrowboth"]="",e["accidentals.flat"]="",e["accidentals.flat.arrowup"]="",e["accidentals.flat.arrowdown"]="",e["accidentals.flat.arrowboth"]="",e["accidentals.flat.slash"]="",e["accidentals.flat.slashslash"]="",e["accidentals.mirroredflat.flat"]="",e["accidentals.mirroredflat"]="",e["accidentals.mirroredflat.backslash"]="",e["accidentals.flatflat"]="",e["accidentals.flatflat.slash"]="",e["accidentals.rightparen"]="",e["accidentals.leftparen"]="",e["arrowheads.open.01"]="",e["arrowheads.open.0M1"]="",e["arrowheads.open.11"]="",e["arrowheads.open.1M1"]="",e["arrowheads.close.01"]="",e["arrowheads.close.0M1"]="",e["arrowheads.close.11"]="",e["arrowheads.close.1M1"]="",e["dots.dot"]="",e["scripts.ufermata"]="",e["scripts.dfermata"]="",e["scripts.uhenzeshortfermata"]="",e["scripts.dhenzeshortfermata"]="",e["scripts.uhenzelongfermata"]="",e["scripts.dhenzelongfermata"]="",e["scripts.ushortfermata"]="",e["scripts.dshortfermata"]="",e["scripts.uveryshortfermata"]="",e["scripts.dveryshortfermata"]="",e["scripts.ulongfermata"]="",e["scripts.dlongfermata"]="",e["scripts.uverylongfermata"]="",e["scripts.dverylongfermata"]="",e["scripts.thumb"]="",e["scripts.sforzato"]="",e["scripts.espr"]="",e["scripts.staccato"]="",e["scripts.ustaccatissimo"]="",e["scripts.dstaccatissimo"]="",e["scripts.tenuto"]="",e["scripts.uportato"]="",e["scripts.dportato"]="",e["scripts.umarcato"]="",e["scripts.dmarcato"]="",e["scripts.open"]="",e["scripts.halfopen"]="",e["scripts.halfopenvertical"]="",e["scripts.stopped"]="",e["scripts.upbow"]="",e["scripts.downbow"]="",e["scripts.reverseturn"]="",e["scripts.turn"]="",e["scripts.slashturn"]="",e["scripts.haydnturn"]="",e["scripts.trill"]="",e["scripts.upedalheel"]="",e["scripts.dpedalheel"]="",e["scripts.upedaltoe"]="",e["scripts.dpedaltoe"]="",e["scripts.flageolet"]="",e["scripts.segno"]="",e["scripts.varsegno"]="",e["scripts.coda"]="",e["scripts.varcoda"]="",e["scripts.rcomma"]="",e["scripts.lcomma"]="",e["scripts.rvarcomma"]="",e["scripts.lvarcomma"]="",e["scripts.arpeggio"]="",e["scripts.trill_element"]="",e["scripts.arpeggio.arrow.M1"]="",e["scripts.arpeggio.arrow.1"]="",e["scripts.trillelement"]="",e["scripts.prall"]="",e["scripts.mordent"]="",e["scripts.prallprall"]="",e["scripts.prallmordent"]="",e["scripts.upprall"]="",e["scripts.upmordent"]="",e["scripts.prallup"]="",e["scripts.downprall"]="",e["scripts.downmordent"]="",e["scripts.pralldown"]="",e["scripts.lineprall"]="",e["scripts.caesura.curved"]="",e["scripts.caesura.straight"]="",e["scripts.tickmark"]="",e["scripts.snappizzicato"]="",e["clefs.C"]="",e["clefs.C_change"]="",e["clefs.varC"]="",e["clefs.varC_change"]="",e["clefs.F"]="",e["clefs.F_change"]="",e["clefs.G"]="",e["clefs.G_change"]="",e["clefs.GG"]="",e["clefs.GG_change"]="",e["clefs.tenorG"]="",e["clefs.tenorG_change"]="",e["clefs.percussion"]="",e["clefs.percussion_change"]="",e["clefs.varpercussion"]="",e["clefs.varpercussion_change"]="",e["clefs.tab"]="",e["clefs.tab_change"]="",e["timesig.C44"]="",e["timesig.C22"]="",e["pedal.*"]="",e["pedal.M"]="",e["pedal.."]="",e["pedal.P"]="",e["pedal.d"]="",e["pedal.e"]="",e["pedal.Ped"]="",e["brackettips.up"]="",e["brackettips.down"]="",e["accordion.discant"]="",e["accordion.dot"]="",e["accordion.freebass"]="",e["accordion.stdbass"]="",e["accordion.bayanbass"]="",e["accordion.oldEE"]="",e["accordion.push"]="",e["accordion.pull"]="",e["ties.lyric.short"]="",e["ties.lyric.default"]="",e["noteheads.uM2"]="",e["noteheads.dM2"]="",e["noteheads.sM1"]="",e["noteheads.sM1double"]="",e["noteheads.s0"]="",e["noteheads.s1"]="",e["noteheads.s2"]="",e["noteheads.s0diamond"]="",e["noteheads.s1diamond"]="",e["noteheads.s2diamond"]="",e["noteheads.s0triangle"]="",e["noteheads.d1triangle"]="",e["noteheads.u1triangle"]="",e["noteheads.u2triangle"]="",e["noteheads.d2triangle"]="",e["noteheads.s0slash"]="",e["noteheads.s1slash"]="",e["noteheads.s2slash"]="",e["noteheads.s0cross"]="",e["noteheads.s1cross"]="",e["noteheads.s2cross"]="",e["noteheads.s2xcircle"]="",e["noteheads.s0do"]="",e["noteheads.d1do"]="",e["noteheads.u1do"]="",e["noteheads.d2do"]="",e["noteheads.u2do"]="",e["noteheads.s0doThin"]="",e["noteheads.d1doThin"]="",e["noteheads.u1doThin"]="",e["noteheads.d2doThin"]="",e["noteheads.u2doThin"]="",e["noteheads.s0re"]="",e["noteheads.u1re"]="",e["noteheads.d1re"]="",e["noteheads.u2re"]="",e["noteheads.d2re"]="",e["noteheads.s0reThin"]="",e["noteheads.u1reThin"]="",e["noteheads.d1reThin"]="",e["noteheads.u2reThin"]="",e["noteheads.d2reThin"]="",e["noteheads.s0mi"]="",e["noteheads.s1mi"]="",e["noteheads.s2mi"]="",e["noteheads.s0miMirror"]="",e["noteheads.s1miMirror"]="",e["noteheads.s2miMirror"]="",e["noteheads.s0miThin"]="",e["noteheads.s1miThin"]="",e["noteheads.s2miThin"]="",e["noteheads.u0fa"]="",e["noteheads.d0fa"]="",e["noteheads.u1fa"]="",e["noteheads.d1fa"]="",e["noteheads.u2fa"]="",e["noteheads.d2fa"]="",e["noteheads.u0faThin"]="",e["noteheads.d0faThin"]="",e["noteheads.u1faThin"]="",e["noteheads.d1faThin"]="",e["noteheads.u2faThin"]="",e["noteheads.d2faThin"]="",e["noteheads.s0sol"]="",e["noteheads.s1sol"]="",e["noteheads.s2sol"]="",e["noteheads.s0la"]="",e["noteheads.s1la"]="",e["noteheads.s2la"]="",e["noteheads.s0laThin"]="",e["noteheads.s1laThin"]="",e["noteheads.s2laThin"]="",e["noteheads.s0ti"]="",e["noteheads.u1ti"]="",e["noteheads.d1ti"]="",e["noteheads.u2ti"]="",e["noteheads.d2ti"]="",e["noteheads.s0tiThin"]="",e["noteheads.u1tiThin"]="",e["noteheads.d1tiThin"]="",e["noteheads.u2tiThin"]="",e["noteheads.d2tiThin"]="",e["noteheads.u0doFunk"]="",e["noteheads.d0doFunk"]="",e["noteheads.u1doFunk"]="",e["noteheads.d1doFunk"]="",e["noteheads.u2doFunk"]="",e["noteheads.d2doFunk"]="",e["noteheads.u0reFunk"]="",e["noteheads.d0reFunk"]="",e["noteheads.u1reFunk"]="",e["noteheads.d1reFunk"]="",e["noteheads.u2reFunk"]="",e["noteheads.d2reFunk"]="",e["noteheads.u0miFunk"]="",e["noteheads.d0miFunk"]="",e["noteheads.u1miFunk"]="",e["noteheads.d1miFunk"]="",e["noteheads.s2miFunk"]="",e["noteheads.u0faFunk"]="",e["noteheads.d0faFunk"]="",e["noteheads.u1faFunk"]="",e["noteheads.d1faFunk"]="",e["noteheads.u2faFunk"]="",e["noteheads.d2faFunk"]="",e["noteheads.s0solFunk"]="",e["noteheads.s1solFunk"]="",e["noteheads.s2solFunk"]="",e["noteheads.s0laFunk"]="",e["noteheads.s1laFunk"]="",e["noteheads.s2laFunk"]="",e["noteheads.u0tiFunk"]="",e["noteheads.d0tiFunk"]="",e["noteheads.u1tiFunk"]="",e["noteheads.d1tiFunk"]="",e["noteheads.u2tiFunk"]="",e["noteheads.d2tiFunk"]="",e["noteheads.s0doWalker"]="",e["noteheads.u1doWalker"]="",e["noteheads.d1doWalker"]="",e["noteheads.u2doWalker"]="",e["noteheads.d2doWalker"]="",e["noteheads.s0reWalker"]="",e["noteheads.u1reWalker"]="",e["noteheads.d1reWalker"]="",e["noteheads.u2reWalker"]="",e["noteheads.d2reWalker"]="",e["noteheads.s0miWalker"]="",e["noteheads.s1miWalker"]="",e["noteheads.s2miWalker"]="",e["noteheads.s0faWalker"]="",e["noteheads.u1faWalker"]="",e["noteheads.d1faWalker"]="",e["noteheads.u2faWalker"]="",e["noteheads.d2faWalker"]="",e["noteheads.s0laWalker"]="",e["noteheads.s1laWalker"]="",e["noteheads.s2laWalker"]="",e["noteheads.s0tiWalker"]="",e["noteheads.u1tiWalker"]="",e["noteheads.d1tiWalker"]="",e["noteheads.u2tiWalker"]="",e["noteheads.d2tiWalker"]="",e["flags.u3"]="",e["flags.u4"]="",e["flags.u5"]="",e["flags.u6"]="",e["flags.u7"]="",e["flags.u8"]="",e["flags.u9"]="",e["flags.u10"]="",e["flags.d3"]="",e["flags.d4"]="",e["flags.d5"]="",e["flags.d6"]="",e["flags.d7"]="",e["flags.d8"]="",e["flags.d9"]="",e["flags.d10"]="",e["flags.ugrace"]="",e["flags.dgrace"]="",e["rests.M3neomensural"]="���",e["rests.M2neomensural"]="",e["rests.M1neomensural"]="",e["rests.0neomensural"]="",e["rests.1neomensural"]="",e["rests.2neomensural"]="",e["rests.3neomensural"]="",e["rests.4neomensural"]="",e["rests.M3mensural"]="",e["rests.M2mensural"]="",e["rests.M1mensural"]="",e["rests.0mensural"]="",e["rests.1mensural"]="",e["rests.2mensural"]="",e["rests.3mensural"]="",e["rests.4mensural"]="",e["clefs.vaticana.do"]="",e["clefs.vaticana.do_change"]="",e["clefs.vaticana.fa"]="",e["clefs.vaticana.fa_change"]="",e["clefs.medicaea.do"]="",e["clefs.medicaea.do_change"]="",e["clefs.medicaea.fa"]="",e["clefs.medicaea.fa_change"]="",e["clefs.neomensural.c"]="",e["clefs.neomensural.c_change"]="",e["clefs.petrucci.c1"]="",e["clefs.petrucci.c1_change"]="",e["clefs.petrucci.c2"]="",e["clefs.petrucci.c2_change"]="",e["clefs.petrucci.c3"]="",e["clefs.petrucci.c3_change"]="",e["clefs.petrucci.c4"]="",e["clefs.petrucci.c4_change"]="",e["clefs.petrucci.c5"]="",e["clefs.petrucci.c5_change"]="",e["clefs.mensural.c"]="",e["clefs.mensural.c_change"]="",e["clefs.blackmensural.c"]="",e["clefs.blackmensural.c_change"]="",e["clefs.petrucci.f"]="",e["clefs.petrucci.f_change"]="",e["clefs.mensural.f"]="",e["clefs.mensural.f_change"]="",e["clefs.petrucci.g"]="",e["clefs.petrucci.g_change"]="",e["clefs.mensural.g"]="",e["clefs.mensural.g_change"]="",e["clefs.hufnagel.do"]="",e["clefs.hufnagel.do_change"]="",e["clefs.hufnagel.fa"]="",e["clefs.hufnagel.fa_change"]="",e["clefs.hufnagel.do.fa"]="",e["clefs.hufnagel.do.fa_change"]="",e["clefs.kievan.do"]="",e["clefs.kievan.do_change"]="",e["custodes.hufnagel.u0"]="",e["custodes.hufnagel.u1"]="",e["custodes.hufnagel.u2"]="",e["custodes.hufnagel.d0"]="",e["custodes.hufnagel.d1"]="",e["custodes.hufnagel.d2"]="",e["custodes.medicaea.u0"]="",e["custodes.medicaea.u1"]="",e["custodes.medicaea.u2"]="",e["custodes.medicaea.d0"]="",e["custodes.medicaea.d1"]="",e["custodes.medicaea.d2"]="",e["custodes.vaticana.u0"]="",e["custodes.vaticana.u1"]="",e["custodes.vaticana.u2"]="",e["custodes.vaticana.d0"]="",e["custodes.vaticana.d1"]="",e["custodes.vaticana.d2"]="",e["custodes.mensural.u0"]="",e["custodes.mensural.u1"]="",e["custodes.mensural.u2"]="",e["custodes.mensural.d0"]="",e["custodes.mensural.d1"]="",e["custodes.mensural.d2"]="",e["accidentals.medicaeaM1"]="",e["accidentals.vaticanaM1"]="",e["accidentals.vaticana0"]="",e["accidentals.mensural1"]="",e["accidentals.mensuralM1"]="",e["accidentals.hufnagelM1"]="",e["accidentals.kievan1"]="",e["accidentals.kievanM1"]="",e["flags.mensuralu03"]="",e["flags.mensuralu13"]="",e["flags.mensuralu23"]="",e["flags.mensurald03"]="",e["flags.mensurald13"]="",e["flags.mensurald23"]="",e["flags.mensuralu04"]="",e["flags.mensuralu14"]="",e["flags.mensuralu24"]="",e["flags.mensurald04"]="",e["flags.mensurald14"]="",e["flags.mensurald24"]="",e["flags.mensuralu05"]="",e["flags.mensuralu15"]="",e["flags.mensuralu25"]="",e["flags.mensurald05"]="",e["flags.mensurald15"]="",e["flags.mensurald25"]="",e["flags.mensuralu06"]="",e["flags.mensuralu16"]="",e["flags.mensuralu26"]="",e["flags.mensurald06"]="",e["flags.mensurald16"]="",e["flags.mensurald26"]="",e["timesig.mensural44"]="",e["timesig.mensural22"]="",e["timesig.mensural32"]="",e["timesig.mensural64"]="",e["timesig.mensural94"]="",e["timesig.mensural34"]="",e["timesig.mensural68"]="",e["timesig.mensural98"]="",e["timesig.mensural48"]="",e["timesig.mensural68alt"]="",e["timesig.mensural24"]="",e["timesig.neomensural44"]="",e["timesig.neomensural22"]="",e["timesig.neomensural32"]="",e["timesig.neomensural64"]="",e["timesig.neomensural94"]="",e["timesig.neomensural34"]="",e["timesig.neomensural68"]="",e["timesig.neomensural98"]="",e["timesig.neomensural48"]="",e["timesig.neomensural68alt"]="",e["timesig.neomensural24"]="",e["scripts.ictus"]="",e["scripts.uaccentus"]="",e["scripts.daccentus"]="",e["scripts.usemicirculus"]="",e["scripts.dsemicirculus"]="",e["scripts.circulus"]="",e["scripts.augmentum"]="",e["scripts.usignumcongruentiae"]="",e["scripts.dsignumcongruentiae"]="",e["scripts.barline.kievan"]="",e["dots.dotvaticana"]="",e["dots.dotkievan"]="",e["noteheads.uM3neomensural"]="",e["noteheads.dM3neomensural"]="",e["noteheads.uM2neomensural"]="",e["noteheads.dM2neomensural"]="",e["noteheads.sM1neomensural"]="",e["noteheads.urM3neomensural"]="",e["noteheads.drM3neomensural"]="",e["noteheads.urM2neomensural"]="",e["noteheads.drM2neomensural"]="",e["noteheads.srM1neomensural"]="",e["noteheads.s0neomensural"]="",e["noteheads.s1neomensural"]="",e["noteheads.s2neomensural"]="",e["noteheads.s0harmonic"]="",e["noteheads.s2harmonic"]="",e["noteheads.uM3mensural"]="",e["noteheads.dM3mensural"]="",e["noteheads.sM3ligmensural"]="",e["noteheads.uM2mensural"]="",e["noteheads.dM2mensural"]="",e["noteheads.sM2ligmensural"]="",e["noteheads.sM1mensural"]="",e["noteheads.urM3mensural"]="",e["noteheads.drM3mensural"]="",e["noteheads.srM3ligmensural"]="",e["noteheads.urM2mensural"]="",e["noteheads.drM2mensural"]="",e["noteheads.srM2ligmensural"]="",e["noteheads.srM1mensural"]="",e["noteheads.uM3semimensural"]="",e["noteheads.dM3semimensural"]="",e["noteheads.sM3semiligmensural"]="",e["noteheads.uM2semimensural"]="",e["noteheads.dM2semimensural"]="",e["noteheads.sM2semiligmensural"]="",e["noteheads.sM1semimensural"]="",e["noteheads.urM3semimensural"]="",e["noteheads.drM3semimensural"]="",e["noteheads.srM3semiligmensural"]="",e["noteheads.urM2semimensural"]="",e["noteheads.drM2semimensural"]="",e["noteheads.srM2semiligmensural"]="",e["noteheads.srM1semimensural"]="",e["noteheads.uM3blackmensural"]="",e["noteheads.dM3blackmensural"]="",e["noteheads.sM3blackligmensural"]="",e["noteheads.uM2blackmensural"]="",e["noteheads.dM2blackmensural"]="",e["noteheads.sM2blackligmensural"]="",e["noteheads.sM1blackmensural"]="",e["noteheads.s0mensural"]="",e["noteheads.s1mensural"]="",e["noteheads.s2mensural"]="",e["noteheads.s0blackmensural"]="",e["noteheads.s0petrucci"]="",e["noteheads.s1petrucci"]="",e["noteheads.s2petrucci"]="",e["noteheads.s0blackpetrucci"]="",e["noteheads.s1blackpetrucci"]="",e["noteheads.s2blackpetrucci"]="",e["noteheads.svaticana.punctum"]="",e["noteheads.svaticana.punctum.cavum"]="",e["noteheads.svaticana.linea.punctum"]="",e["noteheads.svaticana.linea.punctum.cavum"]="",e["noteheads.svaticana.inclinatum"]="",e["noteheads.svaticana.lpes"]="",e["noteheads.svaticana.vlpes"]="",e["noteheads.svaticana.upes"]="",e["noteheads.svaticana.vupes"]="",e["noteheads.svaticana.plica"]="",e["noteheads.svaticana.vplica"]="",e["noteheads.svaticana.epiphonus"]="",e["noteheads.svaticana.vepiphonus"]="",e["noteheads.svaticana.reverse.plica"]="",e["noteheads.svaticana.reverse.vplica"]="",e["noteheads.svaticana.inner.cephalicus"]="",e["noteheads.svaticana.cephalicus"]="",e["noteheads.svaticana.quilisma"]="",e["noteheads.ssolesmes.incl.parvum"]="",e["noteheads.ssolesmes.auct.asc"]="",e["noteheads.ssolesmes.auct.desc"]="",e["noteheads.ssolesmes.incl.auctum"]="",e["noteheads.ssolesmes.stropha"]="",e["noteheads.ssolesmes.stropha.aucta"]="",e["noteheads.ssolesmes.oriscus"]="",e["noteheads.smedicaea.inclinatum"]="",e["noteheads.smedicaea.punctum"]="",e["noteheads.smedicaea.rvirga"]="",e["noteheads.smedicaea.virga"]="",e["noteheads.shufnagel.punctum"]="",e["noteheads.shufnagel.virga"]="",e["noteheads.shufnagel.lpes"]="",e["noteheads.sM2kievan"]="",e["noteheads.sM1kievan"]="",e["noteheads.s0kievan"]="",e["noteheads.d2kievan"]="",e["noteheads.u2kievan"]="",e["noteheads.s1kievan"]="",e["noteheads.sr1kievan"]="",e["noteheads.d3kievan"]="",e["noteheads.u3kievan"]="",e["space"]=" ",e["plus"]="+",e["comma"]=",",e["hyphen"]="-",e["period"]=".",e["zero"]="0",e["one"]="1",e["two"]="2",e["three"]="3",e["four"]="4",e["five"]="5",e["six"]="6",e["seven"]="7",e["eight"]="8",e["nine"]="9",e["f"]="f",e["m"]="m",e["n"]="n",e["p"]="p",e["r"]="r",e["s"]="s",e["z"]="z"})(t||(t={}))},"46f9":function(e,a,c){"use strict";c.r(a),c.d(a,"LayoutType",(function(){return d})),c.d(a,"SingleMLayout",(function(){return b})),c.d(a,"BlockMLayout",(function(){return n})),c.d(a,"VoltaMLayout",(function(){return r})),c.d(a,"ABAMLayout",(function(){return o}));var d,s=c("f634");(function(e){e["Ordinary"]="ordinary",e["Full"]="full",e["Conservative"]="conservative",e["Once"]="once"})(d||(d={}));const f=(e,a=d.Ordinary)=>[].concat(...e.map(e=>e.serialize(a))),t=(e,{withBrackets:a=!1}={})=>{let c="",d=!1;for(let s=0;s0&&!d&&(c+=", "),d=!1,c+=e[s].code)}return a?`[${c}]`:c};class b extends s["a"]{static from(e){const a=new b;return a.measure=e,a}serialize(){return[this.measure]}get seq(){return[this]}get code(){return this.measure.toString()}}b.className="SingleMLayout";class n extends s["a"]{static trimSeq(e){const a=[];for(const s of e)if(s instanceof n)for(const e of s.seq)a.push(e);else a.push(s);const c=[];let d=null;for(const s of a)s instanceof b?s.measure>d&&(c.push(s),d=s.measure):c.push(s);return c}static fromSeq(e){const a=new n;return a.seq=n.trimSeq(e),a}serialize(e){return f(this.seq,e)}get code(){return t(this.seq,{withBrackets:!0})}}n.className="BlockMLayout";class r extends s["a"]{serialize(e){const a=f(this.body);if(this.alternates){const c=this.alternates.map(e=>f(e)),s=c[c.length-1];switch(e){case d.Ordinary:return a.concat(...c);case d.Conservative:case d.Full:{const e=[].concat(...Array(this.times-1).fill(null).map((e,d)=>[...a,...c[d%(this.times-1)]]));return[...e,...a,...s]}case d.Once:return[...a,...s]}}else switch(e){case d.Ordinary:case d.Conservative:case d.Once:return a;case d.Full:return[].concat(...Array(this.times).fill(null).map(()=>a))}console.warn("the current case not handled:",e,this)}get seq(){const e=this.alternates?this.alternates[this.alternates.length-1]:[];return[...this.body,...e]}get code(){const e=t(this.body,{withBrackets:!0});let a=`${this.times}*${e}`;return this.alternates&&(a+="{"+this.alternates.map(e=>t(e,{withBrackets:e.length>1})).join(", ")+"}"),a}}r.className="VoltaMLayout";class o extends s["a"]{serialize(e){const a=this.main.serialize(e),c=f(this.main.seq,d.Once),s=f(this.rest,e);switch(e){case d.Ordinary:return[...a,...s];case d.Once:return[...s,...c];case d.Conservative:case d.Full:return[...a,...s,...c];default:console.warn("the current case not handled:",e,this)}}get seq(){return[this.main,...this.rest]}get code(){return"<"+this.main.code+", "+t(this.rest)+">"}}o.className="ABAMLayout"},"4b63":function(e,a,c){(function(a,c){e.exports=c()})("undefined"!==typeof self&&self,(function(){return function(e){var a={};function c(d){if(a[d])return a[d].exports;var s=a[d]={i:d,l:!1,exports:{}};return e[d].call(s.exports,s,s.exports,c),s.l=!0,s.exports}return c.m=e,c.c=a,c.d=function(e,a,d){c.o(e,a)||Object.defineProperty(e,a,{enumerable:!0,get:d})},c.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c.t=function(e,a){if(1&a&&(e=c(e)),8&a)return e;if(4&a&&"object"===typeof e&&e&&e.__esModule)return e;var d=Object.create(null);if(c.r(d),Object.defineProperty(d,"default",{enumerable:!0,value:e}),2&a&&"string"!=typeof e)for(var s in e)c.d(d,s,function(a){return e[a]}.bind(null,s));return d},c.n=function(e){var a=e&&e.__esModule?function(){return e["default"]}:function(){return e};return c.d(a,"a",a),a},c.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},c.p="",c(c.s="fae3")}({"0241":function(e,a,c){const d=c("b37a"),s=c("33e9"),f=800,t=.24*f,b=e=>Math.tanh(e/t),n=function(e,a,{softIndexFactor:c=1}={}){a=Number(a);const d=e[a];if(a>0){const s=e[a-1];console.assert(null!=d.start,"note.start is null",d),console.assert(null!=s.start,"lastNote.start is null",s),d.deltaSi=b((d.start-s.start)*c),d.softIndex=s.softIndex+d.deltaSi,console.assert(!Number.isNaN(d.deltaSi),"note.deltaSi is NaN.",d.start,s.start)}else d.softIndex=0,d.deltaSi=0},r=function(e,a,c=d.zero()){e.matches=[];const s=a.pitchMap[e.pitch];if(s)for(const f of s){const a=new d(e,f);c&&a.evaluatePrev(c),e.matches.push(a)}},o=function(e,{softIndexFactor:a=1}={}){for(let c=0;cnew Promise(e=>requestAnimationFrame(e));class f{constructor(e,{cacheSpan:a=600,onMidi:c,onPlayFinish:s,onTurnCursor:f}={}){let t;this.cacheSpan=a,this.onMidi=c,this.onPlayFinish=s,this.onTurnCursor=f,t=e.notes&&Number.isFinite(e.endTime)?e:d.parseMidi(e),this.notation=t,this.events=t.events,this.isPlaying=!1,this.progressTime=0,this.startTime=performance.now(),this.duration=t.endTime,this.cursorTurnDelta=0,console.assert(t.tempos&&t.tempos.length,"[MidiPlayer] invalid notation, tempos is empty.")}dispose(){this.isPlaying=!1,this.progressTime=0}get progressTicks(){return this.notation.timeToTicks(this.progressTime)}set progressTicks(e){this.progressTime=this.notation.ticksToTime(e),this.onTurnCursor&&this.onTurnCursor(this.progressTime)}async play({nextFrame:e=s}={}){this.progressTime>=this.duration&&(this.progressTime=0);let a=performance.now();this.startTime=a-this.progressTime,this.isPlaying=!0;let c=this.events.findIndex(e=>e.time>=a-this.startTime);while(this.isPlaying){for(;cthis.progressTime+this.cacheSpan)break;"channel"===e.data.type&&this.startTime+e.time>=a&&this.onMidi&&this.onMidi(e.data,this.startTime+e.time)}if(await e(),!this.isPlaying)break;if(0!==this.cursorTurnDelta){const e=this.cursorTurnDelta<0;if(this.startTime-=this.cursorTurnDelta,this.cursorTurnDelta=0,e)for(;c>0;--c){const e=this.events[c].time;if(this.startTime+ethis.duration&&(this.isPlaying=!1,this.onPlayFinish&&this.onPlayFinish())}}pause(){this.isPlaying=!1}turnCursor(e){this.isPlaying?this.cursorTurnDelta+=e-this.progressTime:this.progressTime=e,this.onTurnCursor&&this.onTurnCursor(e)}}e.exports=f},"2ef0":function(e,a,c){(function(e,d){var s; +/** + * @license + * Lodash + * Copyright OpenJS Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + */(function(){var f,t="4.17.21",b=200,n="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",r="Expected a function",o="Invalid `variable` option passed into `_.template`",i="__lodash_hash_undefined__",l=500,u="__lodash_placeholder__",h=1,m=2,p=4,g=1,v=2,M=1,k=2,y=4,_=8,T=16,w=32,E=64,x=128,F=256,A=512,I=30,N="...",S=800,z=16,W=1,O=2,C=3,P=1/0,B=9007199254740991,R=17976931348623157e292,D=NaN,L=4294967295,Y=L-1,q=L>>>1,U=[["ary",x],["bind",M],["bindKey",k],["curry",_],["curryRight",T],["flip",A],["partial",w],["partialRight",E],["rearg",F]],G="[object Arguments]",j="[object Array]",V="[object AsyncFunction]",H="[object Boolean]",K="[object Date]",X="[object DOMException]",J="[object Error]",$="[object Function]",Z="[object GeneratorFunction]",Q="[object Map]",ee="[object Number]",ae="[object Null]",ce="[object Object]",de="[object Promise]",se="[object Proxy]",fe="[object RegExp]",te="[object Set]",be="[object String]",ne="[object Symbol]",re="[object Undefined]",oe="[object WeakMap]",ie="[object WeakSet]",le="[object ArrayBuffer]",ue="[object DataView]",he="[object Float32Array]",me="[object Float64Array]",pe="[object Int8Array]",ge="[object Int16Array]",ve="[object Int32Array]",Me="[object Uint8Array]",ke="[object Uint8ClampedArray]",ye="[object Uint16Array]",_e="[object Uint32Array]",Te=/\b__p \+= '';/g,we=/\b(__p \+=) '' \+/g,Ee=/(__e\(.*?\)|\b__t\)) \+\n'';/g,xe=/&(?:amp|lt|gt|quot|#39);/g,Fe=/[&<>"']/g,Ae=RegExp(xe.source),Ie=RegExp(Fe.source),Ne=/<%-([\s\S]+?)%>/g,Se=/<%([\s\S]+?)%>/g,ze=/<%=([\s\S]+?)%>/g,We=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Oe=/^\w*$/,Ce=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Pe=/[\\^$.*+?()[\]{}|]/g,Be=RegExp(Pe.source),Re=/^\s+/,De=/\s/,Le=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ye=/\{\n\/\* \[wrapped with (.+)\] \*/,qe=/,? & /,Ue=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ge=/[()=,{}\[\]\/\s]/,je=/\\(\\)?/g,Ve=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,He=/\w*$/,Ke=/^[-+]0x[0-9a-f]+$/i,Xe=/^0b[01]+$/i,Je=/^\[object .+?Constructor\]$/,$e=/^0o[0-7]+$/i,Ze=/^(?:0|[1-9]\d*)$/,Qe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ea=/($^)/,aa=/['\n\r\u2028\u2029\\]/g,ca="\\ud800-\\udfff",da="\\u0300-\\u036f",sa="\\ufe20-\\ufe2f",fa="\\u20d0-\\u20ff",ta=da+sa+fa,ba="\\u2700-\\u27bf",na="a-z\\xdf-\\xf6\\xf8-\\xff",ra="\\xac\\xb1\\xd7\\xf7",oa="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ia="\\u2000-\\u206f",la=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ua="A-Z\\xc0-\\xd6\\xd8-\\xde",ha="\\ufe0e\\ufe0f",ma=ra+oa+ia+la,pa="['’]",ga="["+ca+"]",va="["+ma+"]",Ma="["+ta+"]",ka="\\d+",ya="["+ba+"]",_a="["+na+"]",Ta="[^"+ca+ma+ka+ba+na+ua+"]",wa="\\ud83c[\\udffb-\\udfff]",Ea="(?:"+Ma+"|"+wa+")",xa="[^"+ca+"]",Fa="(?:\\ud83c[\\udde6-\\uddff]){2}",Aa="[\\ud800-\\udbff][\\udc00-\\udfff]",Ia="["+ua+"]",Na="\\u200d",Sa="(?:"+_a+"|"+Ta+")",za="(?:"+Ia+"|"+Ta+")",Wa="(?:"+pa+"(?:d|ll|m|re|s|t|ve))?",Oa="(?:"+pa+"(?:D|LL|M|RE|S|T|VE))?",Ca=Ea+"?",Pa="["+ha+"]?",Ba="(?:"+Na+"(?:"+[xa,Fa,Aa].join("|")+")"+Pa+Ca+")*",Ra="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Da="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",La=Pa+Ca+Ba,Ya="(?:"+[ya,Fa,Aa].join("|")+")"+La,qa="(?:"+[xa+Ma+"?",Ma,Fa,Aa,ga].join("|")+")",Ua=RegExp(pa,"g"),Ga=RegExp(Ma,"g"),ja=RegExp(wa+"(?="+wa+")|"+qa+La,"g"),Va=RegExp([Ia+"?"+_a+"+"+Wa+"(?="+[va,Ia,"$"].join("|")+")",za+"+"+Oa+"(?="+[va,Ia+Sa,"$"].join("|")+")",Ia+"?"+Sa+"+"+Wa,Ia+"+"+Oa,Da,Ra,ka,Ya].join("|"),"g"),Ha=RegExp("["+Na+ca+ta+ha+"]"),Ka=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Xa=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Ja=-1,$a={};$a[he]=$a[me]=$a[pe]=$a[ge]=$a[ve]=$a[Me]=$a[ke]=$a[ye]=$a[_e]=!0,$a[G]=$a[j]=$a[le]=$a[H]=$a[ue]=$a[K]=$a[J]=$a[$]=$a[Q]=$a[ee]=$a[ce]=$a[fe]=$a[te]=$a[be]=$a[oe]=!1;var Za={};Za[G]=Za[j]=Za[le]=Za[ue]=Za[H]=Za[K]=Za[he]=Za[me]=Za[pe]=Za[ge]=Za[ve]=Za[Q]=Za[ee]=Za[ce]=Za[fe]=Za[te]=Za[be]=Za[ne]=Za[Me]=Za[ke]=Za[ye]=Za[_e]=!0,Za[J]=Za[$]=Za[oe]=!1;var Qa={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"},ec={"&":"&","<":"<",">":">",'"':""","'":"'"},ac={"&":"&","<":"<",">":">",""":'"',"'":"'"},cc={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},dc=parseFloat,sc=parseInt,fc="object"==typeof e&&e&&e.Object===Object&&e,tc="object"==typeof self&&self&&self.Object===Object&&self,bc=fc||tc||Function("return this")(),nc=a&&!a.nodeType&&a,rc=nc&&"object"==typeof d&&d&&!d.nodeType&&d,oc=rc&&rc.exports===nc,ic=oc&&fc.process,lc=function(){try{var e=rc&&rc.require&&rc.require("util").types;return e||ic&&ic.binding&&ic.binding("util")}catch(a){}}(),uc=lc&&lc.isArrayBuffer,hc=lc&&lc.isDate,mc=lc&&lc.isMap,pc=lc&&lc.isRegExp,gc=lc&&lc.isSet,vc=lc&&lc.isTypedArray;function Mc(e,a,c){switch(c.length){case 0:return e.call(a);case 1:return e.call(a,c[0]);case 2:return e.call(a,c[0],c[1]);case 3:return e.call(a,c[0],c[1],c[2])}return e.apply(a,c)}function kc(e,a,c,d){var s=-1,f=null==e?0:e.length;while(++s-1}function xc(e,a,c){var d=-1,s=null==e?0:e.length;while(++d-1);return c}function Qc(e,a){var c=e.length;while(c--&&Bc(a,e[c],0)>-1);return c}function ed(e,a){var c=e.length,d=0;while(c--)e[c]===a&&++d;return d}var ad=qc(Qa),cd=qc(ec);function dd(e){return"\\"+cc[e]}function sd(e,a){return null==e?f:e[a]}function fd(e){return Ha.test(e)}function td(e){return Ka.test(e)}function bd(e){var a,c=[];while(!(a=e.next()).done)c.push(a.value);return c}function nd(e){var a=-1,c=Array(e.size);return e.forEach((function(e,d){c[++a]=[d,e]})),c}function rd(e,a){return function(c){return e(a(c))}}function od(e,a){var c=-1,d=e.length,s=0,f=[];while(++c-1}function Yd(e,a){var c=this.__data__,d=rs(c,e);return d<0?(++this.size,c.push([e,a])):c[d][1]=a,this}function qd(e){var a=-1,c=null==e?0:e.length;this.clear();while(++a=a?e:a)),e}function ps(e,a,c,d,s,t){var b,n=a&h,r=a&m,o=a&p;if(c&&(b=s?c(e,d,s,t):c(e)),b!==f)return b;if(!Eo(e))return e;var i=ro(e);if(i){if(b=eb(e),!n)return dt(e,b)}else{var l=Jt(e),u=l==$||l==Z;if(ho(e))return Hf(e,n);if(l==ce||l==G||u&&!s){if(b=r||u?{}:ab(e),!n)return r?tt(e,ls(b,e)):ft(e,is(b,e))}else{if(!Za[l])return s?e:{};b=cb(e,l,n)}}t||(t=new $d);var g=t.get(e);if(g)return g;t.set(e,b),Ro(e)?e.forEach((function(d){b.add(ps(d,a,c,d,e,t))})):Fo(e)&&e.forEach((function(d,s){b.set(s,ps(d,a,c,s,e,t))}));var v=o?r?Dt:Rt:r?wi:Ti,M=i?f:v(e);return yc(M||e,(function(d,s){M&&(s=d,d=e[s]),ns(b,s,ps(d,a,c,s,e,t))})),b}function gs(e){var a=Ti(e);return function(c){return vs(c,e,a)}}function vs(e,a,c){var d=c.length;if(null==e)return!d;e=ca(e);while(d--){var s=c[d],t=a[s],b=e[s];if(b===f&&!(s in e)||!t(b))return!1}return!0}function Ms(e,a,c){if("function"!=typeof e)throw new fa(r);return wb((function(){e.apply(f,c)}),a)}function ks(e,a,c,d){var s=-1,f=Ec,t=!0,n=e.length,r=[],o=a.length;if(!n)return r;c&&(a=Fc(a,Xc(c))),d?(f=xc,t=!1):a.length>=b&&(f=$c,t=!1,a=new Kd(a));e:while(++ss?0:s+c),d=d===f||d>s?s:Xo(d),d<0&&(d+=s),d=c>d?0:Jo(d);while(c0&&c(b)?a>1?Fs(b,a-1,c,d,s):Ac(s,b):d||(s[s.length]=b)}return s}var As=ot(),Is=ot(!0);function Ns(e,a){return e&&As(e,a,Ti)}function Ss(e,a){return e&&Is(e,a,Ti)}function zs(e,a){return wc(a,(function(a){return _o(e[a])}))}function Ws(e,a){a=Uf(a,e);var c=0,d=a.length;while(null!=e&&ca}function Bs(e,a){return null!=e&&ia.call(e,a)}function Rs(e,a){return null!=e&&a in ca(e)}function Ds(e,a,c){return e>=Ya(a,c)&&e=120&&l.length>=120)?new Kd(n&&l):f}l=e[0];var u=-1,h=r[0];e:while(++u-1)b!==e&&Ea.call(b,n,1),Ea.call(e,n,1)}return e}function pf(e,a){var c=e?a.length:0,d=c-1;while(c--){var s=a[c];if(c==d||s!==f){var f=s;fb(s)?Ea.call(e,s,1):Cf(e,s)}}return e}function gf(e,a){return e+Oa(Va()*(a-e+1))}function vf(e,a,d,s){var f=-1,t=La(Wa((a-e)/(d||1)),0),b=c(t);while(t--)b[s?t:++f]=e,e+=d;return b}function Mf(e,a){var c="";if(!e||a<1||a>B)return c;do{a%2&&(c+=e),a=Oa(a/2),a&&(e+=e)}while(a);return c}function kf(e,a){return Eb(Mb(e,a,Sl),e+"")}function yf(e){return ss(qi(e))}function _f(e,a){var c=qi(e);return Ab(c,ms(a,0,c.length))}function Tf(e,a,c,d){if(!Eo(e))return e;a=Uf(a,e);var s=-1,t=a.length,b=t-1,n=e;while(null!=n&&++sf?0:f+a),d=d>f?f:d,d<0&&(d+=f),f=a>d?0:d-a>>>0,a>>>=0;var t=c(f);while(++s>>1,t=e[f];null!==t&&!Lo(t)&&(c?t<=a:t=b){var o=a?null:At(e);if(o)return id(o);t=!1,s=$c,r=new Kd}else r=a?[]:n;e:while(++d=d?e:Ff(e,a,c)}var Vf=Na||function(e){return bc.clearTimeout(e)};function Hf(e,a){if(a)return e.slice();var c=e.length,d=ya?ya(c):new e.constructor(c);return e.copy(d),d}function Kf(e){var a=new e.constructor(e.byteLength);return new ka(a).set(new ka(e)),a}function Xf(e,a){var c=a?Kf(e.buffer):e.buffer;return new e.constructor(c,e.byteOffset,e.byteLength)}function Jf(e){var a=new e.constructor(e.source,He.exec(e));return a.lastIndex=e.lastIndex,a}function $f(e){return ud?ca(ud.call(e)):{}}function Zf(e,a){var c=a?Kf(e.buffer):e.buffer;return new e.constructor(c,e.byteOffset,e.length)}function Qf(e,a){if(e!==a){var c=e!==f,d=null===e,s=e===e,t=Lo(e),b=a!==f,n=null===a,r=a===a,o=Lo(a);if(!n&&!o&&!t&&e>a||t&&b&&r&&!n&&!o||d&&b&&r||!c&&r||!s)return 1;if(!d&&!t&&!o&&e=b)return n;var r=c[d];return n*("desc"==r?-1:1)}}return e.index-a.index}function at(e,a,d,s){var f=-1,t=e.length,b=d.length,n=-1,r=a.length,o=La(t-b,0),i=c(r+o),l=!s;while(++n1?c[s-1]:f,b=s>2?c[2]:f;t=e.length>3&&"function"==typeof t?(s--,t):f,b&&tb(c[0],c[1],b)&&(t=s<3?f:t,s=1),a=ca(a);while(++d-1?s[t?a[b]:b]:f}}function gt(e){return Bt((function(a){var c=a.length,d=c,s=Ed.prototype.thru;e&&a.reverse();while(d--){var t=a[d];if("function"!=typeof t)throw new fa(r);if(s&&!b&&"wrapper"==Yt(t))var b=new Ed([],!0)}d=b?d:c;while(++d1&&M.reverse(),l&&on))return!1;var o=t.get(e),i=t.get(a);if(o&&i)return o==a&&i==e;var l=-1,u=!0,h=c&v?new Kd:f;t.set(e,a),t.set(a,e);while(++l1?"& ":"")+a[d],a=a.join(c>2?", ":" "),e.replace(Le,"{\n/* [wrapped with "+a+"] */\n")}function sb(e){return ro(e)||no(e)||!!(xa&&e&&e[xa])}function fb(e,a){var c=typeof e;return a=null==a?B:a,!!a&&("number"==c||"symbol"!=c&&Ze.test(e))&&e>-1&&e%1==0&&e0){if(++a>=S)return arguments[0]}else a=0;return e.apply(f,arguments)}}function Ab(e,a){var c=-1,d=e.length,s=d-1;a=a===f?d:a;while(++c1?e[a-1]:f;return c="function"==typeof c?(e.pop(),c):f,Pn(e,c)}));function jn(e){var a=kd(e);return a.__chain__=!0,a}function Vn(e,a){return a(e),e}function Hn(e,a){return a(e)}var Kn=Bt((function(e){var a=e.length,c=a?e[0]:0,d=this.__wrapped__,s=function(a){return hs(a,e)};return!(a>1||this.__actions__.length)&&d instanceof xd&&fb(c)?(d=d.slice(c,+c+(a?1:0)),d.__actions__.push({func:Hn,args:[s],thisArg:f}),new Ed(d,this.__chain__).thru((function(e){return a&&!e.length&&e.push(f),e}))):this.thru(s)}));function Xn(){return jn(this)}function Jn(){return new Ed(this.value(),this.__chain__)}function $n(){this.__values__===f&&(this.__values__=Ho(this.value()));var e=this.__index__>=this.__values__.length,a=e?f:this.__values__[this.__index__++];return{done:e,value:a}}function Zn(){return this}function Qn(e){var a,c=this;while(c instanceof wd){var d=Wb(c);d.__index__=0,d.__values__=f,a?s.__wrapped__=d:a=d;var s=d;c=c.__wrapped__}return s.__wrapped__=e,a}function er(){var e=this.__wrapped__;if(e instanceof xd){var a=e;return this.__actions__.length&&(a=new xd(this)),a=a.reverse(),a.__actions__.push({func:Hn,args:[hn],thisArg:f}),new Ed(a,this.__chain__)}return this.thru(hn)}function ar(){return Rf(this.__wrapped__,this.__actions__)}var cr=bt((function(e,a,c){ia.call(e,c)?++e[c]:us(e,c,1)}));function dr(e,a,c){var d=ro(e)?Tc:Ts;return c&&tb(e,a,c)&&(a=f),d(e,Ut(a,3))}function sr(e,a){var c=ro(e)?wc:xs;return c(e,Ut(a,3))}var fr=pt(jb),tr=pt(Vb);function br(e,a){return Fs(pr(e,a),1)}function nr(e,a){return Fs(pr(e,a),P)}function rr(e,a,c){return c=c===f?1:Xo(c),Fs(pr(e,a),c)}function or(e,a){var c=ro(e)?yc:ys;return c(e,Ut(a,3))}function ir(e,a){var c=ro(e)?_c:_s;return c(e,Ut(a,3))}var lr=bt((function(e,a,c){ia.call(e,c)?e[c].push(a):us(e,c,[a])}));function ur(e,a,c,d){e=io(e)?e:qi(e),c=c&&!d?Xo(c):0;var s=e.length;return c<0&&(c=La(s+c,0)),Do(e)?c<=s&&e.indexOf(a,c)>-1:!!s&&Bc(e,a,c)>-1}var hr=kf((function(e,a,d){var s=-1,f="function"==typeof a,t=io(e)?c(e.length):[];return ys(e,(function(e){t[++s]=f?Mc(a,e,d):qs(e,a,d)})),t})),mr=bt((function(e,a,c){us(e,c,a)}));function pr(e,a){var c=ro(e)?Fc:sf;return c(e,Ut(a,3))}function gr(e,a,c,d){return null==e?[]:(ro(a)||(a=null==a?[]:[a]),c=d?f:c,ro(c)||(c=null==c?[]:[c]),of(e,a,c))}var vr=bt((function(e,a,c){e[c?0:1].push(a)}),(function(){return[[],[]]}));function Mr(e,a,c){var d=ro(e)?Ic:Uc,s=arguments.length<3;return d(e,Ut(a,4),c,s,ys)}function kr(e,a,c){var d=ro(e)?Nc:Uc,s=arguments.length<3;return d(e,Ut(a,4),c,s,_s)}function yr(e,a){var c=ro(e)?wc:xs;return c(e,Yr(Ut(a,3)))}function _r(e){var a=ro(e)?ss:yf;return a(e)}function Tr(e,a,c){a=(c?tb(e,a,c):a===f)?1:Xo(a);var d=ro(e)?fs:_f;return d(e,a)}function wr(e){var a=ro(e)?ts:xf;return a(e)}function Er(e){if(null==e)return 0;if(io(e))return Do(e)?md(e):e.length;var a=Jt(e);return a==Q||a==te?e.size:af(e).length}function xr(e,a,c){var d=ro(e)?Sc:Af;return c&&tb(e,a,c)&&(a=f),d(e,Ut(a,3))}var Fr=kf((function(e,a){if(null==e)return[];var c=a.length;return c>1&&tb(e,a[0],a[1])?a=[]:c>2&&tb(a[0],a[1],a[2])&&(a=[a[0]]),of(e,Fs(a,1),[])})),Ar=Sa||function(){return bc.Date.now()};function Ir(e,a){if("function"!=typeof a)throw new fa(r);return e=Xo(e),function(){if(--e<1)return a.apply(this,arguments)}}function Nr(e,a,c){return a=c?f:a,a=e&&null==a?e.length:a,Nt(e,x,f,f,f,f,a)}function Sr(e,a){var c;if("function"!=typeof a)throw new fa(r);return e=Xo(e),function(){return--e>0&&(c=a.apply(this,arguments)),e<=1&&(a=f),c}}var zr=kf((function(e,a,c){var d=M;if(c.length){var s=od(c,qt(zr));d|=w}return Nt(e,d,a,c,s)})),Wr=kf((function(e,a,c){var d=M|k;if(c.length){var s=od(c,qt(Wr));d|=w}return Nt(a,d,e,c,s)}));function Or(e,a,c){a=c?f:a;var d=Nt(e,_,f,f,f,f,f,a);return d.placeholder=Or.placeholder,d}function Cr(e,a,c){a=c?f:a;var d=Nt(e,T,f,f,f,f,f,a);return d.placeholder=Cr.placeholder,d}function Pr(e,a,c){var d,s,t,b,n,o,i=0,l=!1,u=!1,h=!0;if("function"!=typeof e)throw new fa(r);function m(a){var c=d,t=s;return d=s=f,i=a,b=e.apply(t,c),b}function p(e){return i=e,n=wb(M,a),l?m(e):b}function g(e){var c=e-o,d=e-i,s=a-c;return u?Ya(s,t-d):s}function v(e){var c=e-o,d=e-i;return o===f||c>=a||c<0||u&&d>=t}function M(){var e=Ar();if(v(e))return k(e);n=wb(M,g(e))}function k(e){return n=f,h&&d?m(e):(d=s=f,b)}function y(){n!==f&&Vf(n),i=0,d=o=s=n=f}function _(){return n===f?b:k(Ar())}function T(){var e=Ar(),c=v(e);if(d=arguments,s=this,o=e,c){if(n===f)return p(o);if(u)return Vf(n),n=wb(M,a),m(o)}return n===f&&(n=wb(M,a)),b}return a=$o(a)||0,Eo(c)&&(l=!!c.leading,u="maxWait"in c,t=u?La($o(c.maxWait)||0,a):t,h="trailing"in c?!!c.trailing:h),T.cancel=y,T.flush=_,T}var Br=kf((function(e,a){return Ms(e,1,a)})),Rr=kf((function(e,a,c){return Ms(e,$o(a)||0,c)}));function Dr(e){return Nt(e,A)}function Lr(e,a){if("function"!=typeof e||null!=a&&"function"!=typeof a)throw new fa(r);var c=function(){var d=arguments,s=a?a.apply(this,d):d[0],f=c.cache;if(f.has(s))return f.get(s);var t=e.apply(this,d);return c.cache=f.set(s,t)||f,t};return c.cache=new(Lr.Cache||qd),c}function Yr(e){if("function"!=typeof e)throw new fa(r);return function(){var a=arguments;switch(a.length){case 0:return!e.call(this);case 1:return!e.call(this,a[0]);case 2:return!e.call(this,a[0],a[1]);case 3:return!e.call(this,a[0],a[1],a[2])}return!e.apply(this,a)}}function qr(e){return Sr(2,e)}Lr.Cache=qd;var Ur=Gf((function(e,a){a=1==a.length&&ro(a[0])?Fc(a[0],Xc(Ut())):Fc(Fs(a,1),Xc(Ut()));var c=a.length;return kf((function(d){var s=-1,f=Ya(d.length,c);while(++s=a})),no=Us(function(){return arguments}())?Us:function(e){return xo(e)&&ia.call(e,"callee")&&!wa.call(e,"callee")},ro=c.isArray,oo=uc?Xc(uc):Gs;function io(e){return null!=e&&wo(e.length)&&!_o(e)}function lo(e){return xo(e)&&io(e)}function uo(e){return!0===e||!1===e||xo(e)&&Cs(e)==H}var ho=Pa||Xl,mo=hc?Xc(hc):js;function po(e){return xo(e)&&1===e.nodeType&&!Co(e)}function go(e){if(null==e)return!0;if(io(e)&&(ro(e)||"string"==typeof e||"function"==typeof e.splice||ho(e)||Yo(e)||no(e)))return!e.length;var a=Jt(e);if(a==Q||a==te)return!e.size;if(lb(e))return!af(e).length;for(var c in e)if(ia.call(e,c))return!1;return!0}function vo(e,a){return Vs(e,a)}function Mo(e,a,c){c="function"==typeof c?c:f;var d=c?c(e,a):f;return d===f?Vs(e,a,f,c):!!d}function ko(e){if(!xo(e))return!1;var a=Cs(e);return a==J||a==X||"string"==typeof e.message&&"string"==typeof e.name&&!Co(e)}function yo(e){return"number"==typeof e&&Ba(e)}function _o(e){if(!Eo(e))return!1;var a=Cs(e);return a==$||a==Z||a==V||a==se}function To(e){return"number"==typeof e&&e==Xo(e)}function wo(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=B}function Eo(e){var a=typeof e;return null!=e&&("object"==a||"function"==a)}function xo(e){return null!=e&&"object"==typeof e}var Fo=mc?Xc(mc):Ks;function Ao(e,a){return e===a||Xs(e,a,jt(a))}function Io(e,a,c){return c="function"==typeof c?c:f,Xs(e,a,jt(a),c)}function No(e){return Oo(e)&&e!=+e}function So(e){if(ib(e))throw new s(n);return Js(e)}function zo(e){return null===e}function Wo(e){return null==e}function Oo(e){return"number"==typeof e||xo(e)&&Cs(e)==ee}function Co(e){if(!xo(e)||Cs(e)!=ce)return!1;var a=_a(e);if(null===a)return!0;var c=ia.call(a,"constructor")&&a.constructor;return"function"==typeof c&&c instanceof c&&oa.call(c)==ma}var Po=pc?Xc(pc):$s;function Bo(e){return To(e)&&e>=-B&&e<=B}var Ro=gc?Xc(gc):Zs;function Do(e){return"string"==typeof e||!ro(e)&&xo(e)&&Cs(e)==be}function Lo(e){return"symbol"==typeof e||xo(e)&&Cs(e)==ne}var Yo=vc?Xc(vc):Qs;function qo(e){return e===f}function Uo(e){return xo(e)&&Jt(e)==oe}function Go(e){return xo(e)&&Cs(e)==ie}var jo=Et(df),Vo=Et((function(e,a){return e<=a}));function Ho(e){if(!e)return[];if(io(e))return Do(e)?pd(e):dt(e);if(Fa&&e[Fa])return bd(e[Fa]());var a=Jt(e),c=a==Q?nd:a==te?id:qi;return c(e)}function Ko(e){if(!e)return 0===e?e:0;if(e=$o(e),e===P||e===-P){var a=e<0?-1:1;return a*R}return e===e?e:0}function Xo(e){var a=Ko(e),c=a%1;return a===a?c?a-c:a:0}function Jo(e){return e?ms(Xo(e),0,L):0}function $o(e){if("number"==typeof e)return e;if(Lo(e))return D;if(Eo(e)){var a="function"==typeof e.valueOf?e.valueOf():e;e=Eo(a)?a+"":a}if("string"!=typeof e)return 0===e?e:+e;e=Kc(e);var c=Xe.test(e);return c||$e.test(e)?sc(e.slice(2),c?2:8):Ke.test(e)?D:+e}function Zo(e){return st(e,wi(e))}function Qo(e){return e?ms(Xo(e),-B,B):0===e?e:0}function ei(e){return null==e?"":Wf(e)}var ai=nt((function(e,a){if(lb(a)||io(a))st(a,Ti(a),e);else for(var c in a)ia.call(a,c)&&ns(e,c,a[c])})),ci=nt((function(e,a){st(a,wi(a),e)})),di=nt((function(e,a,c,d){st(a,wi(a),e,d)})),si=nt((function(e,a,c,d){st(a,Ti(a),e,d)})),fi=Bt(hs);function ti(e,a){var c=_d(e);return null==a?c:is(c,a)}var bi=kf((function(e,a){e=ca(e);var c=-1,d=a.length,s=d>2?a[2]:f;s&&tb(a[0],a[1],s)&&(d=1);while(++c1),a})),st(e,Dt(e),c),d&&(c=ps(c,h|m|p,Wt));var s=a.length;while(s--)Cf(c,a[s]);return c}));function Ni(e,a){return zi(e,Yr(Ut(a)))}var Si=Bt((function(e,a){return null==e?{}:lf(e,a)}));function zi(e,a){if(null==e)return{};var c=Fc(Dt(e),(function(e){return[e]}));return a=Ut(a),uf(e,c,(function(e,c){return a(e,c[0])}))}function Wi(e,a,c){a=Uf(a,e);var d=-1,s=a.length;s||(s=1,e=f);while(++da){var d=e;e=a,a=d}if(c||e%1||a%1){var s=Va();return Ya(e+s*(a-e+dc("1e-"+((s+"").length-1))),a)}return gf(e,a)}var Hi=ut((function(e,a,c){return a=a.toLowerCase(),e+(c?Ki(a):a)}));function Ki(e){return yl(ei(e).toLowerCase())}function Xi(e){return e=ei(e),e&&e.replace(Qe,ad).replace(Ga,"")}function Ji(e,a,c){e=ei(e),a=Wf(a);var d=e.length;c=c===f?d:ms(Xo(c),0,d);var s=c;return c-=a.length,c>=0&&e.slice(c,s)==a}function $i(e){return e=ei(e),e&&Ie.test(e)?e.replace(Fe,cd):e}function Zi(e){return e=ei(e),e&&Be.test(e)?e.replace(Pe,"\\$&"):e}var Qi=ut((function(e,a,c){return e+(c?"-":"")+a.toLowerCase()})),el=ut((function(e,a,c){return e+(c?" ":"")+a.toLowerCase()})),al=lt("toLowerCase");function cl(e,a,c){e=ei(e),a=Xo(a);var d=a?md(e):0;if(!a||d>=a)return e;var s=(a-d)/2;return _t(Oa(s),c)+e+_t(Wa(s),c)}function dl(e,a,c){e=ei(e),a=Xo(a);var d=a?md(e):0;return a&&d>>0,c?(e=ei(e),e&&("string"==typeof a||null!=a&&!Po(a))&&(a=Wf(a),!a&&fd(e))?jf(pd(e),0,c):e.split(a,c)):[]}var ol=ut((function(e,a,c){return e+(c?" ":"")+yl(a)}));function il(e,a,c){return e=ei(e),c=null==c?0:ms(Xo(c),0,e.length),a=Wf(a),e.slice(c,c+a.length)==a}function ll(e,a,c){var d=kd.templateSettings;c&&tb(e,a,c)&&(a=f),e=ei(e),a=di({},a,d,St);var t,b,n=di({},a.imports,d.imports,St),r=Ti(n),i=Jc(n,r),l=0,u=a.interpolate||ea,h="__p += '",m=da((a.escape||ea).source+"|"+u.source+"|"+(u===ze?Ve:ea).source+"|"+(a.evaluate||ea).source+"|$","g"),p="//# sourceURL="+(ia.call(a,"sourceURL")?(a.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Ja+"]")+"\n";e.replace(m,(function(a,c,d,s,f,n){return d||(d=s),h+=e.slice(l,n).replace(aa,dd),c&&(t=!0,h+="' +\n__e("+c+") +\n'"),f&&(b=!0,h+="';\n"+f+";\n__p += '"),d&&(h+="' +\n((__t = ("+d+")) == null ? '' : __t) +\n'"),l=n+a.length,a})),h+="';\n";var g=ia.call(a,"variable")&&a.variable;if(g){if(Ge.test(g))throw new s(o)}else h="with (obj) {\n"+h+"\n}\n";h=(b?h.replace(Te,""):h).replace(we,"$1").replace(Ee,"$1;"),h="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(t?", __e = _.escape":"")+(b?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var v=Tl((function(){return De(r,p+"return "+h).apply(f,i)}));if(v.source=h,ko(v))throw v;return v}function ul(e){return ei(e).toLowerCase()}function hl(e){return ei(e).toUpperCase()}function ml(e,a,c){if(e=ei(e),e&&(c||a===f))return Kc(e);if(!e||!(a=Wf(a)))return e;var d=pd(e),s=pd(a),t=Zc(d,s),b=Qc(d,s)+1;return jf(d,t,b).join("")}function pl(e,a,c){if(e=ei(e),e&&(c||a===f))return e.slice(0,gd(e)+1);if(!e||!(a=Wf(a)))return e;var d=pd(e),s=Qc(d,pd(a))+1;return jf(d,0,s).join("")}function gl(e,a,c){if(e=ei(e),e&&(c||a===f))return e.replace(Re,"");if(!e||!(a=Wf(a)))return e;var d=pd(e),s=Zc(d,pd(a));return jf(d,s).join("")}function vl(e,a){var c=I,d=N;if(Eo(a)){var s="separator"in a?a.separator:s;c="length"in a?Xo(a.length):c,d="omission"in a?Wf(a.omission):d}e=ei(e);var t=e.length;if(fd(e)){var b=pd(e);t=b.length}if(c>=t)return e;var n=c-md(d);if(n<1)return d;var r=b?jf(b,0,n).join(""):e.slice(0,n);if(s===f)return r+d;if(b&&(n+=r.length-n),Po(s)){if(e.slice(n).search(s)){var o,i=r;s.global||(s=da(s.source,ei(He.exec(s))+"g")),s.lastIndex=0;while(o=s.exec(i))var l=o.index;r=r.slice(0,l===f?n:l)}}else if(e.indexOf(Wf(s),n)!=n){var u=r.lastIndexOf(s);u>-1&&(r=r.slice(0,u))}return r+d}function Ml(e){return e=ei(e),e&&Ae.test(e)?e.replace(xe,vd):e}var kl=ut((function(e,a,c){return e+(c?" ":"")+a.toUpperCase()})),yl=lt("toUpperCase");function _l(e,a,c){return e=ei(e),a=c?f:a,a===f?td(e)?yd(e):Oc(e):e.match(a)||[]}var Tl=kf((function(e,a){try{return Mc(e,f,a)}catch(c){return ko(c)?c:new s(c)}})),wl=Bt((function(e,a){return yc(a,(function(a){a=Nb(a),us(e,a,zr(e[a],e))})),e}));function El(e){var a=null==e?0:e.length,c=Ut();return e=a?Fc(e,(function(e){if("function"!=typeof e[1])throw new fa(r);return[c(e[0]),e[1]]})):[],kf((function(c){var d=-1;while(++dB)return[];var c=L,d=Ya(e,L);a=Ut(a),e-=L;var s=Vc(d,a);while(++c0||a<0)?new xd(c):(e<0?c=c.takeRight(-e):e&&(c=c.drop(e)),a!==f&&(a=Xo(a),c=a<0?c.dropRight(-a):c.take(a-e)),c)},xd.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},xd.prototype.toArray=function(){return this.take(L)},Ns(xd.prototype,(function(e,a){var c=/^(?:filter|find|map|reject)|While$/.test(a),d=/^(?:head|last)$/.test(a),s=kd[d?"take"+("last"==a?"Right":""):a],t=d||/^find/.test(a);s&&(kd.prototype[a]=function(){var a=this.__wrapped__,b=d?[1]:arguments,n=a instanceof xd,r=b[0],o=n||ro(a),i=function(e){var a=s.apply(kd,Ac([e],b));return d&&l?a[0]:a};o&&c&&"function"==typeof r&&1!=r.length&&(n=o=!1);var l=this.__chain__,u=!!this.__actions__.length,h=t&&!l,m=n&&!u;if(!t&&o){a=m?a:new xd(this);var p=e.apply(a,b);return p.__actions__.push({func:Hn,args:[i],thisArg:f}),new Ed(p,l)}return h&&m?e.apply(this,b):(p=this.thru(i),h?d?p.value()[0]:p.value():p)})})),yc(["pop","push","shift","sort","splice","unshift"],(function(e){var a=ta[e],c=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",d=/^(?:pop|shift)$/.test(e);kd.prototype[e]=function(){var e=arguments;if(d&&!this.__chain__){var s=this.value();return a.apply(ro(s)?s:[],e)}return this[c]((function(c){return a.apply(ro(c)?c:[],e)}))}})),Ns(xd.prototype,(function(e,a){var c=kd[a];if(c){var d=c.name+"";ia.call(nc,d)||(nc[d]=[]),nc[d].push({name:a,func:c})}})),nc[vt(f,k).name]=[{name:"wrapper",func:f}],xd.prototype.clone=Fd,xd.prototype.reverse=Ad,xd.prototype.value=Id,kd.prototype.at=Kn,kd.prototype.chain=Xn,kd.prototype.commit=Jn,kd.prototype.next=$n,kd.prototype.plant=Qn,kd.prototype.reverse=er,kd.prototype.toJSON=kd.prototype.valueOf=kd.prototype.value=ar,kd.prototype.first=kd.prototype.head,Fa&&(kd.prototype[Fa]=Zn),kd},Td=_d();bc._=Td,s=function(){return Td}.call(a,c,a,d),s===f||(d.exports=s)}).call(this)}).call(this,c("c8ba"),c("62e4")(e))},"33e9":function(e,a,c){const d=c("4620"),s=c("b37a");class f{constructor(e,a,c={}){this.criterion=e,this.sample=a,this.getCursorOffset=c.getCursorOffset||(()=>null),this.outOfPage=c.outOfPage,this.bestNode=null,this.fineCursor=null,this.breakingSI=a.notes.length-1,this.zeroNode=s.zero(),this.zeroNode.offset=this.getCursorOffset()||0,this.relocationThreshold=c.relocationThreshold||d.RelocationThreshold}step(e){const a=this.sample.notes[e];if(a.matches.length>0){a.matches.forEach(a=>{a.evaluatePrev(this.zeroNode);for(let c=e-1;c>=Math.max(this.breakingSI+1,e-d.SkipDeep);--c){const s=this.sample.notes[c];console.assert(s,"prevNote is null:",c,e,this.sample.notes),s.matches.forEach(e=>{const c=a.offset-e.offset;c<2/d.LagOffsetCost&&c>-2/d.LeadOffsetCost&&a.evaluatePrev(e)})}if(a.prior=a.totalCost>1.99?-1:a.priorByOffset(this.zeroNode.offset),a.prior>0&&this.outOfPage){const e=this.criterion.notes[a.ci].startTick;this.outOfPage(e)&&(a.prior-=.7)}}),a.matches.sort((e,a)=>a.prior-e.prior),this.cursors=a.matches;let c=null;const s=this.nullSteps(e),f=this.cursors[0];f&&f.totalCost<1&&(f.prior>0||f.totalCost<.4&&Math.log(Math.max(s*f.value,.001))>this.relocationThreshold)&&(this.zeroNode.offset=f.offset,c=f,(!this.bestNode||f.value>this.bestNode.value)&&(this.bestNode=f)),c?this.fineCursor=c:this.resetCursor(e,{breaking:!1})||(this.zeroNode.offset+=a.deltaSi*Math.tanh(s),console.assert(!Number.isNaN(this.zeroNode.offset),"zeroNode.offset is NaN.",a.deltaSi,s))}else this.cursors=[]}path({fromIndex:e=0,toIndex:a=this.sample.notes.length-1}={}){const c=[];let d=null;for(let s=a;s>=e;){const e=this.sample.notes[s];if(!e.matches.length||e.matches[0].prior<-.01||e.matches[0].totalCost>=1){c[s]=-1,--s;continue}null!=d&&(e.matches.forEach(e=>e.backPrior=e.totalCost<1.99?e.priorByOffset(d):-1),e.matches.sort((e,a)=>a.backPrior-e.backPrior));const a=e.matches[0];a.path.forEach((e,a)=>c[a]=e),d=a.root.offset,s=a.rootSi-1}return console.assert(c.length==a+1,"path length error:",c,e,a+1,this.sample.notes.length,this.sample.notes.length?this.sample.notes[this.sample.notes.length-1].index:null),c}nullSteps(e){return e-(this.fineCursor?this.fineCursor.si:-1)-1}resetCursor(e,{breaking:a=!0}={}){a&&(this.breakingSI=e);const c=this.getCursorOffset();return null!=c&&(this.zeroNode.offset=c,this.zeroNode.si=e,this.fineCursor=null,console.assert(!Number.isNaN(this.zeroNode.offset),"zeroNode.offset is NaN.",c),!0)}get relocationTendency(){const e=this.cursors&&this.cursors[0];if(!e)return null;const a=this.nullSteps(e.si);return a<=0?0:Math.log(Math.max(a*e.value,.001))/this.relocationThreshold}}e.exports=f},"3b0d":function(e,a){e.exports=class{constructor(){this.buffer=""}write(e){this.buffer+=e}writeInt32(e){this.buffer+=String.fromCharCode(e>>24&255)+String.fromCharCode(e>>16&255)+String.fromCharCode(e>>8&255)+String.fromCharCode(255&e)}writeInt16(e){this.buffer+=String.fromCharCode(e>>8&255)+String.fromCharCode(255&e)}writeInt8(e){this.buffer+=String.fromCharCode(255&e)}writeVarInt(e){if(e<0)throw new Error("OStream.writeVarInt minus number: "+e);const a=127&e;e>>=7;let c=String.fromCharCode(a);while(e){const a=127&e;e>>=7,c=String.fromCharCode(128|a)+c}this.buffer+=c}getBuffer(){return this.buffer}getArrayBuffer(){return Uint8Array.from(this.buffer.split("").map(e=>e.charCodeAt(0))).buffer}}},"3b97":function(e,a){const c=(e,{timeWarp:a=1}={})=>{const c=[];let d=120;const s=e.header.ticksPerBeat;for(let r=0;r0){const a=t.ticksToEvent/s;e=a/(d/60)}"meta"==t.event.type&&"setTempo"==t.event.subtype&&(d=6e7/t.event.microsecondsPerBeat);const c=1e3*e*a||0;b.push([t,c]),t=f()}if(t=f())while(t)e()}return n(),b},d=e=>{const a=new Map;return e.filter(([{event:e,ticksToEvent:c}])=>{if(c>0&&a.clear(),"channel"!==e.type)return!0;const d=`${e.subtype}|${e.channel}|${e.noteNumber}`;return!a.get(d)&&(a.set(d,e),!0)})},s=e=>{const a=new Map,c=new Map,d=[];let s=-1;return e.forEach(([{event:e,ticksToEvent:f}],t)=>{if(f>0&&(s=t),"channel"!==e.type)return;const b=`${e.channel}|${e.noteNumber}`;switch(e.subtype){case"noteOn":a.get(b)?c.set(b,s):a.set(b,s);break;case"noteOff":c.get(b)?(d.push([c.get(b),t]),c.delete(b)):a.delete(b);break}}),d.forEach((e,a)=>{for(let c=a-1;c>=0;--c){const a=d[c];if(a[1]a[0]&&++e[0]}}),d.forEach(([a,c])=>{if(c>=e.length-1||a<0)return;const d=e[c],s=e[c+1],f=e[a];if(!f[0].ticksToEvent)return void console.warn("invalid front index:",a,c,f);const t=f[1]/f[0].ticksToEvent;s[1]+=d[1],s[0].ticksToEvent+=d[0].ticksToEvent,d[0].ticksToEvent=f[0].ticksToEvent-1,f[0].ticksToEvent=1,d[1]=d[0].ticksToEvent*t,f[1]=f[0].ticksToEvent*t,e.splice(c,1),e.splice(a,0,d)}),e};e.exports={midiToSequence:c,trimSequence:d,fixOverlapNotes:s}},4620:function(e,a){e.exports={CostStepAttenuation:.6,SkipDeep:3,PriorDistanceSigmoidFactor:.1,PriorValueSigmoidFactor:.12,SkipCost:.5,LagOffsetCost:1,LeadOffsetCost:1.6,ZeroOffsetCost:.58,RelocationThreshold:6}},"4a2c":function(e,a,c){const d=c("3b0d");e.exports=function({header:e,tracks:a}){function c(e,a,c){console.assert(4===a.length,"chunk id must be 4 byte"),e.write(a),e.writeInt32(c.length),e.write(c)}function s(e,a){if("unknown"!==a.subtype)switch(e.writeVarInt(a.deltaTime),a.type){case"meta":switch(e.writeInt8(255),a.subtype){case"sequenceNumber":e.writeInt8(0),e.writeVarInt(2),e.writeInt16(a.number);break;case"text":e.writeInt8(1),e.writeVarInt(a.text.length),e.write(a.text);break;case"copyrightNotice":e.writeInt8(2),e.writeVarInt(a.text.length),e.write(a.text);break;case"trackName":e.writeInt8(3),e.writeVarInt(a.text.length),e.write(a.text);break;case"instrumentName":e.writeInt8(4),e.writeVarInt(a.text.length),e.write(a.text);break;case"lyrics":e.writeInt8(5),e.writeVarInt(a.text.length),e.write(a.text);break;case"marker":e.writeInt8(6),e.writeVarInt(a.text.length),e.write(a.text);break;case"cuePoint":e.writeInt8(7),e.writeVarInt(a.text.length),e.write(a.text);break;case"midiChannelPrefix":e.writeInt8(32),e.writeVarInt(1),e.writeInt8(a.channel);break;case"endOfTrack":e.writeInt8(47),e.writeVarInt(0);break;case"setTempo":e.writeInt8(81),e.writeVarInt(3),e.writeInt8(a.microsecondsPerBeat>>16&255),e.writeInt8(a.microsecondsPerBeat>>8&255),e.writeInt8(255&a.microsecondsPerBeat);break;case"smpteOffset":e.writeInt8(84),e.writeVarInt(5);var c={24:0,25:32,29:64,30:96}[a.frameRate];e.writeInt8(a.hour|c),e.writeInt8(a.min),e.writeInt8(a.sec),e.writeInt8(a.frame),e.writeInt8(a.subframe);break;case"timeSignature":e.writeInt8(88),e.writeVarInt(4),e.writeInt8(a.numerator),e.writeInt8(Math.log2(a.denominator)),e.writeInt8(a.metronome),e.writeInt8(a.thirtyseconds);break;case"keySignature":e.writeInt8(89),e.writeVarInt(2),e.writeInt8(a.key),e.writeInt8(a.scale);break;case"sequencerSpecific":e.writeInt8(127),e.writeVarInt(a.data.length),e.write(a.data);break;default:throw new Error("unhandled event subtype:"+a.subtype)}break;case"sysEx":e.writeInt8(240),e.writeVarInt(a.data.length),e.write(a.data);break;case"dividedSysEx":e.writeInt8(247),e.writeVarInt(a.data.length),e.write(a.data);break;case"channel":switch(a.subtype){case"noteOn":e.writeInt8(144|a.channel),e.writeInt8(a.noteNumber),e.writeInt8(a.velocity);break;case"noteOff":e.writeInt8(128|a.channel),e.writeInt8(a.noteNumber),e.writeInt8(a.velocity?a.velocity:0);break;case"noteAftertouch":e.writeInt8(160|a.channel),e.writeInt8(a.noteNumber),e.writeInt8(a.amount);break;case"controller":e.writeInt8(176|a.channel),e.writeInt8(a.controllerType),e.writeInt8(a.value);break;case"programChange":e.writeInt8(192|a.channel),e.writeInt8(a.programNumber);break;case"channelAftertouch":e.writeInt8(208|a.channel),e.writeInt8(a.amount);break;case"pitchBend":e.writeInt8(224|a.channel),e.writeInt8(255&a.value),e.writeInt8(a.value>>7&255);break;default:throw new Error("unhandled event subtype:"+a.subtype)}break;default:throw new Error("unhandled event type:"+a.type)}}const f=new d,t=new d;t.writeInt16(e.formatType),t.writeInt16(a.length),t.writeInt16(e.ticksPerBeat),c(f,"MThd",t.getBuffer());for(let b=0;b=this.array.length}read(e){const a=this.array.slice(this.position,this.position+e);return this.position+=e,a}readString(e){const a=Array.from(this.read(e));return a.map(e=>String.fromCharCode(e)).join("")}readInt32(){const e=(this.array[this.position]<<24)+(this.array[this.position+1]<<16)+(this.array[this.position+2]<<8)+this.array[this.position+3];return this.position+=4,e}readInt16(){const e=(this.array[this.position]<<8)+this.array[this.position+1];return this.position+=2,e}readInt8(e){let a=this.array[this.position];return e&&a>127&&(a-=256),this.position+=1,a}readVarInt(){let e=0;while(1){const a=this.readInt8();if(!(128&a))return e+a;e+=127&a,e<<=7}}}},"62e4":function(e,a){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},8875:function(e,a,c){var d,s,f;(function(c,t){s=[],d=t,f="function"===typeof d?d.apply(a,s):d,void 0===f||(e.exports=f)})("undefined"!==typeof self&&self,(function(){function e(){if(document.currentScript)return document.currentScript;try{throw new Error}catch(i){var e,a,c,d=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,s=/@([^@]*):(\d+):(\d+)\s*$/gi,f=d.exec(i.stack)||s.exec(i.stack),t=f&&f[1]||!1,b=f&&f[2]||!1,n=document.location.href.replace(document.location.hash,""),r=document.getElementsByTagName("script");t===n&&(e=document.documentElement.outerHTML,a=new RegExp("(?:[^\\n]+?\\n){0,"+(b-2)+"}[^<]*