
// usage: log('inside coolFunc', this, arguments);
// paulirish.com/2009/log-a-lightweight-wrapper-for-consolelog/
window.log = function(){
  log.history = log.history || [];   // store logs to an array for reference
  log.history.push(arguments);
  if(this.console) {
    arguments.callee = arguments.callee.caller;
    var newarr = [].slice.call(arguments);
    (typeof console.log === 'object' ? log.apply.call(console.log, console, newarr) : console.log.apply(console, newarr));
  }
};

// make it safe to use console.log always
(function(b){function c(){}for(var d="assert,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,timeStamp,profile,profileEnd,time,timeEnd,trace,warn".split(","),a;a=d.pop();){b[a]=b[a]||c}})((function(){try
{console.log();return window.console;}catch(err){return window.console={};}})());


// place any jQuery/helper plugins in here, instead of separate, slower script files.

/*
 * Raphael 1.4.3 - JavaScript Vector Library
 *
 * Copyright (c) 2010 Dmitry Baranovskiy (http://raphaeljs.com)
 * Licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) license.
 */
Raphael=(function(){function aB(){if(aB.is(arguments[0],aW)){var d=arguments[0],e=C[bl](aB,d.splice(0,3+aB.is(d[0],ay))),S=e.set();for(var R=0,bq=d[p];R<bq;R++){var E=d[R]||{};ba.test(E.type)&&S[f](e[E.type]().attr(E))}return S}return C[bl](aB,arguments)}aB.version="1.4.3";var a=/[, ]+/,ba=/^(circle|rect|path|ellipse|text|image)$/,bn="prototype",ac="hasOwnProperty",W=document,aI=window,o={was:Object[bn][ac].call(aI,"Raphael"),is:aI.Raphael},bi=function(){},a6="appendChild",bl="apply",bg="concat",Q="createTouch" in W,aH="",aA=" ",G="split",N="click dblclick mousedown mousemove mouseout mouseover mouseup touchstart touchmove touchend orientationchange touchcancel gesturestart gesturechange gestureend"[G](aA),bb={mousedown:"touchstart",mousemove:"touchmove",mouseup:"touchend"},aO="join",p="length",bp=String[bn].toLowerCase,ak=Math,h=ak.max,a4=ak.min,ay="number",ab="string",aW="array",aQ="toString",aT="fill",aL=Object[bn][aQ],bd={},a7=ak.pow,f="push",bj=/^(?=[\da-f]$)/,c=/^url\(['"]?([^\)]+?)['"]?\)$/i,D=/^\s*((#[a-f\d]{6})|(#[a-f\d]{3})|rgba?\(\s*([\d\.]+\s*,\s*[\d\.]+\s*,\s*[\d\.]+(?:\s*,\s*[\d\.]+)?)\s*\)|rgba?\(\s*([\d\.]+%\s*,\s*[\d\.]+%\s*,\s*[\d\.]+%(?:\s*,\s*[\d\.]+%))\s*\)|hs[bl]\(\s*([\d\.]+\s*,\s*[\d\.]+\s*,\s*[\d\.]+)\s*\)|hs[bl]\(\s*([\d\.]+%\s*,\s*[\d\.]+%\s*,\s*[\d\.]+%)\s*\))\s*$/i,Z=ak.round,B="setAttribute",af=parseFloat,O=parseInt,aU=" progid:DXImageTransform.Microsoft",a9=String[bn].toUpperCase,m={blur:0,"clip-rect":"0 0 1e9 1e9",cursor:"default",cx:0,cy:0,fill:"#fff","fill-opacity":1,font:'10px "Arial"',"font-family":'"Arial"',"font-size":"10","font-style":"normal","font-weight":400,gradient:0,height:0,href:"http://raphaeljs.com/",opacity:1,path:"M0,0",r:0,rotation:0,rx:0,ry:0,scale:"1 1",src:"",stroke:"#000","stroke-dasharray":"","stroke-linecap":"butt","stroke-linejoin":"butt","stroke-miterlimit":0,"stroke-opacity":1,"stroke-width":1,target:"_blank","text-anchor":"middle",title:"Raphael",translation:"0 0",width:0,x:0,y:0},ai={along:"along",blur:ay,"clip-rect":"csv",cx:ay,cy:ay,fill:"colour","fill-opacity":ay,"font-size":ay,height:ay,opacity:ay,path:"path",r:ay,rotation:"csv",rx:ay,ry:ay,scale:"csv",stroke:"colour","stroke-opacity":ay,"stroke-width":ay,translation:"csv",width:ay,x:ay,y:ay},bc="replace";aB.type=(aI.SVGAngle||W.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")?"SVG":"VML");if(aB.type=="VML"){var aq=W.createElement("div");aq.innerHTML="<!--[if vml]><br><br><![endif]-->";if(aq.childNodes[p]!=2){return aB.type=null}aq=null}aB.svg=!(aB.vml=aB.type=="VML");bi[bn]=aB[bn];aB._id=0;aB._oid=0;aB.fn={};aB.is=function(e,d){d=bp.call(d);return(d=="object"&&e===Object(e))||(d=="undefined"&&typeof e==d)||(d=="null"&&e==null)||bp.call(aL.call(e).slice(8,-1))==d};aB.setWindow=function(d){aI=d;W=aI.document};var aX=function(e){if(aB.vml){var d=/^\s+|\s+$/g;aX=au(function(R){var S;R=(R+aH)[bc](d,aH);try{var bq=new aI.ActiveXObject("htmlfile");bq.write("<body>");bq.close();S=bq.body}catch(bs){S=aI.createPopup().document.body}var i=S.createTextRange();try{S.style.color=R;var br=i.queryCommandValue("ForeColor");br=((br&255)<<16)|(br&65280)|((br&16711680)>>>16);return"#"+("000000"+br[aQ](16)).slice(-6)}catch(bs){return"none"}})}else{var E=W.createElement("i");E.title="Rapha\xebl Colour Picker";E.style.display="none";W.body[a6](E);aX=au(function(i){E.style.color=i;return W.defaultView.getComputedStyle(E,aH).getPropertyValue("color")})}return aX(e)};var av=function(){return"hsb("+[this.h,this.s,this.b]+")"},z=function(){return this.hex};aB.hsb2rgb=au(function(bt,br,bx){if(aB.is(bt,"object")&&"h" in bt&&"s" in bt&&"b" in bt){bx=bt.b;br=bt.s;bt=bt.h}var R,S,by;if(bx==0){return{r:0,g:0,b:0,hex:"#000"}}if(bt>1||br>1||bx>1){bt/=255;br/=255;bx/=255}var bq=~~(bt*6),bu=(bt*6)-bq,E=bx*(1-br),e=bx*(1-(br*bu)),bz=bx*(1-(br*(1-bu)));R=[bx,e,E,E,bz,bx,bx][bq];S=[bz,bx,bx,e,E,E,bz][bq];by=[E,E,bz,bx,bx,e,E][bq];R*=255;S*=255;by*=255;var bv={r:R,g:S,b:by,toString:z},d=(~~R)[aQ](16),bs=(~~S)[aQ](16),bw=(~~by)[aQ](16);d=d[bc](bj,"0");bs=bs[bc](bj,"0");bw=bw[bc](bj,"0");bv.hex="#"+d+bs+bw;return bv},aB);aB.rgb2hsb=au(function(d,e,br){if(aB.is(d,"object")&&"r" in d&&"g" in d&&"b" in d){br=d.b;e=d.g;d=d.r}if(aB.is(d,ab)){var bt=aB.getRGB(d);d=bt.r;e=bt.g;br=bt.b}if(d>1||e>1||br>1){d/=255;e/=255;br/=255}var bq=h(d,e,br),i=a4(d,e,br),R,E,S=bq;if(i==bq){return{h:0,s:0,b:bq}}else{var bs=(bq-i);E=bs/bq;if(d==bq){R=(e-br)/bs}else{if(e==bq){R=2+((br-d)/bs)}else{R=4+((d-e)/bs)}}R/=6;R<0&&R++;R>1&&R--}return{h:R,s:E,b:S,toString:av}},aB);var aY=/,?([achlmqrstvxz]),?/gi,a0=/\s*,\s*/,k={hs:1,rg:1};aB._path2string=function(){return this.join(",")[bc](aY,"$1")};function au(E,e,d){function i(){var R=Array[bn].slice.call(arguments,0),bq=R[aO]("\u25ba"),S=i.cache=i.cache||{},br=i.count=i.count||[];if(S[ac](bq)){return d?d(S[bq]):S[bq]}br[p]>=1000&&delete S[br.shift()];br[f](bq);S[bq]=E[bl](e,R);return d?d(S[bq]):S[bq]}return i}aB.getRGB=au(function(e){if(!e||!!((e=e+aH).indexOf("-")+1)){return{r:-1,g:-1,b:-1,hex:"none",error:1}}if(e=="none"){return{r:-1,g:-1,b:-1,hex:"none"}}!(k[ac](e.substring(0,2))||e.charAt()=="#")&&(e=aX(e));var bq,i,E,bt,S,bu,br=e.match(D);if(br){if(br[2]){bt=O(br[2].substring(5),16);E=O(br[2].substring(3,5),16);i=O(br[2].substring(1,3),16)}if(br[3]){bt=O((bu=br[3].charAt(3))+bu,16);E=O((bu=br[3].charAt(2))+bu,16);i=O((bu=br[3].charAt(1))+bu,16)}if(br[4]){br=br[4][G](a0);i=af(br[0]);E=af(br[1]);bt=af(br[2]);S=af(br[3])}if(br[5]){br=br[5][G](a0);i=af(br[0])*2.55;E=af(br[1])*2.55;bt=af(br[2])*2.55;S=af(br[3])}if(br[6]){br=br[6][G](a0);i=af(br[0]);E=af(br[1]);bt=af(br[2]);return aB.hsb2rgb(i,E,bt)}if(br[7]){br=br[7][G](a0);i=af(br[0])*2.55;E=af(br[1])*2.55;bt=af(br[2])*2.55;return aB.hsb2rgb(i,E,bt)}br={r:i,g:E,b:bt};var d=(~~i)[aQ](16),R=(~~E)[aQ](16),bs=(~~bt)[aQ](16);d=d[bc](bj,"0");R=R[bc](bj,"0");bs=bs[bc](bj,"0");br.hex="#"+d+R+bs;isFinite(af(S))&&(br.o=S);return br}return{r:-1,g:-1,b:-1,hex:"none",error:1}},aB);aB.getColor=function(e){var i=this.getColor.start=this.getColor.start||{h:0,s:1,b:e||0.75},d=this.hsb2rgb(i.h,i.s,i.b);i.h+=0.075;if(i.h>1){i.h=0;i.s-=0.2;i.s<=0&&(this.getColor.start={h:0,s:1,b:i.b})}return d.hex};aB.getColor.reset=function(){delete this.start};var aJ=/([achlmqstvz])[\s,]*((-?\d*\.?\d*(?:e[-+]?\d+)?\s*,?\s*)+)/ig,az=/(-?\d*\.?\d*(?:e[-+]?\d+)?)\s*,?\s*/ig;aB.parsePathString=au(function(d){if(!d){return null}var i={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},e=[];if(aB.is(d,aW)&&aB.is(d[0],aW)){e=aK(d)}if(!e[p]){(d+aH)[bc](aJ,function(R,E,br){var bq=[],S=bp.call(E);br[bc](az,function(bt,bs){bs&&bq[f](+bs)});if(S=="m"&&bq[p]>2){e[f]([E][bg](bq.splice(0,2)));S="l";E=E=="m"?"l":"L"}while(bq[p]>=i[S]){e[f]([E][bg](bq.splice(0,i[S])));if(!i[S]){break}}})}e[aQ]=aB._path2string;return e});aB.findDotsAtSegment=function(e,d,bE,bC,bq,R,bs,br,by){var bw=1-by,bv=a7(bw,3)*e+a7(bw,2)*3*by*bE+bw*3*by*by*bq+a7(by,3)*bs,bt=a7(bw,3)*d+a7(bw,2)*3*by*bC+bw*3*by*by*R+a7(by,3)*br,bA=e+2*by*(bE-e)+by*by*(bq-2*bE+e),bz=d+2*by*(bC-d)+by*by*(R-2*bC+d),bD=bE+2*by*(bq-bE)+by*by*(bs-2*bq+bE),bB=bC+2*by*(R-bC)+by*by*(br-2*R+bC),bx=(1-by)*e+by*bE,bu=(1-by)*d+by*bC,E=(1-by)*bq+by*bs,i=(1-by)*R+by*br,S=(90-ak.atan((bA-bD)/(bz-bB))*180/ak.PI);
(bA>bD||bz<bB)&&(S+=180);return{x:bv,y:bt,m:{x:bA,y:bz},n:{x:bD,y:bB},start:{x:bx,y:bu},end:{x:E,y:i},alpha:S}};var ae=au(function(bv){if(!bv){return{x:0,y:0,width:0,height:0}}bv=P(bv);var bs=0,br=0,R=[],e=[],E;for(var S=0,bu=bv[p];S<bu;S++){E=bv[S];if(E[0]=="M"){bs=E[1];br=E[2];R[f](bs);e[f](br)}else{var bq=aV(bs,br,E[1],E[2],E[3],E[4],E[5],E[6]);R=R[bg](bq.min.x,bq.max.x);e=e[bg](bq.min.y,bq.max.y);bs=E[5];br=E[6]}}var d=a4[bl](0,R),bt=a4[bl](0,e);return{x:d,y:bt,width:h[bl](0,R)-d,height:h[bl](0,e)-bt}}),aK=function(bq){var E=[];if(!aB.is(bq,aW)||!aB.is(bq&&bq[0],aW)){bq=aB.parsePathString(bq)}for(var e=0,R=bq[p];e<R;e++){E[e]=[];for(var d=0,S=bq[e][p];d<S;d++){E[e][d]=bq[e][d]}}E[aQ]=aB._path2string;return E},an=au(function(R){if(!aB.is(R,aW)||!aB.is(R&&R[0],aW)){R=aB.parsePathString(R)}var bu=[],bw=0,bv=0,bz=0,by=0,E=0;if(R[0][0]=="M"){bw=R[0][1];bv=R[0][2];bz=bw;by=bv;E++;bu[f](["M",bw,bv])}for(var br=E,bA=R[p];br<bA;br++){var d=bu[br]=[],bx=R[br];if(bx[0]!=bp.call(bx[0])){d[0]=bp.call(bx[0]);switch(d[0]){case"a":d[1]=bx[1];d[2]=bx[2];d[3]=bx[3];d[4]=bx[4];d[5]=bx[5];d[6]=+(bx[6]-bw).toFixed(3);d[7]=+(bx[7]-bv).toFixed(3);break;case"v":d[1]=+(bx[1]-bv).toFixed(3);break;case"m":bz=bx[1];by=bx[2];default:for(var bq=1,bs=bx[p];bq<bs;bq++){d[bq]=+(bx[bq]-((bq%2)?bw:bv)).toFixed(3)}}}else{d=bu[br]=[];if(bx[0]=="m"){bz=bx[1]+bw;by=bx[2]+bv}for(var S=0,e=bx[p];S<e;S++){bu[br][S]=bx[S]}}var bt=bu[br][p];switch(bu[br][0]){case"z":bw=bz;bv=by;break;case"h":bw+=+bu[br][bt-1];break;case"v":bv+=+bu[br][bt-1];break;default:bw+=+bu[br][bt-2];bv+=+bu[br][bt-1]}}bu[aQ]=aB._path2string;return bu},0,aK),w=au(function(R){if(!aB.is(R,aW)||!aB.is(R&&R[0],aW)){R=aB.parsePathString(R)}var bt=[],bv=0,bu=0,by=0,bx=0,E=0;if(R[0][0]=="M"){bv=+R[0][1];bu=+R[0][2];by=bv;bx=bu;E++;bt[0]=["M",bv,bu]}for(var br=E,bz=R[p];br<bz;br++){var d=bt[br]=[],bw=R[br];if(bw[0]!=a9.call(bw[0])){d[0]=a9.call(bw[0]);switch(d[0]){case"A":d[1]=bw[1];d[2]=bw[2];d[3]=bw[3];d[4]=bw[4];d[5]=bw[5];d[6]=+(bw[6]+bv);d[7]=+(bw[7]+bu);break;case"V":d[1]=+bw[1]+bu;break;case"H":d[1]=+bw[1]+bv;break;case"M":by=+bw[1]+bv;bx=+bw[2]+bu;default:for(var bq=1,bs=bw[p];bq<bs;bq++){d[bq]=+bw[bq]+((bq%2)?bv:bu)}}}else{for(var S=0,e=bw[p];S<e;S++){bt[br][S]=bw[S]}}switch(d[0]){case"Z":bv=by;bu=bx;break;case"H":bv=d[1];break;case"V":bu=d[1];break;default:bv=bt[br][bt[br][p]-2];bu=bt[br][bt[br][p]-1]}}bt[aQ]=aB._path2string;return bt},null,aK),bm=function(e,E,d,i){return[e,E,d,i,d,i]},a5=function(e,E,bq,R,d,i){var S=1/3,br=2/3;return[S*e+br*bq,S*E+br*R,S*d+br*bq,S*i+br*R,d,i]},V=function(bz,b4,bI,bG,bA,bu,S,by,b3,bB){var R=ak.PI,bF=R*120/180,d=R/180*(+bA||0),bM=[],bJ,b0=au(function(b5,b8,i){var b7=b5*ak.cos(i)-b8*ak.sin(i),b6=b5*ak.sin(i)+b8*ak.cos(i);return{x:b7,y:b6}});if(!bB){bJ=b0(bz,b4,-d);bz=bJ.x;b4=bJ.y;bJ=b0(by,b3,-d);by=bJ.x;b3=bJ.y;var e=ak.cos(R/180*bA),bw=ak.sin(R/180*bA),bO=(bz-by)/2,bN=(b4-b3)/2;var bY=(bO*bO)/(bI*bI)+(bN*bN)/(bG*bG);if(bY>1){bY=ak.sqrt(bY);bI=bY*bI;bG=bY*bG}var E=bI*bI,bR=bG*bG,bT=(bu==S?-1:1)*ak.sqrt(ak.abs((E*bR-E*bN*bN-bR*bO*bO)/(E*bN*bN+bR*bO*bO))),bD=bT*bI*bN/bG+(bz+by)/2,bC=bT*-bG*bO/bI+(b4+b3)/2,bt=ak.asin(((b4-bC)/bG).toFixed(7)),bs=ak.asin(((b3-bC)/bG).toFixed(7));bt=bz<bD?R-bt:bt;bs=by<bD?R-bs:bs;bt<0&&(bt=R*2+bt);bs<0&&(bs=R*2+bs);if(S&&bt>bs){bt=bt-R*2}if(!S&&bs>bt){bs=bs-R*2}}else{bt=bB[0];bs=bB[1];bD=bB[2];bC=bB[3]}var bx=bs-bt;if(ak.abs(bx)>bF){var bE=bs,bH=by,bv=b3;bs=bt+bF*(S&&bs>bt?1:-1);by=bD+bI*ak.cos(bs);b3=bC+bG*ak.sin(bs);bM=V(by,b3,bI,bG,bA,0,S,bH,bv,[bs,bE,bD,bC])}bx=bs-bt;var br=ak.cos(bt),b2=ak.sin(bt),bq=ak.cos(bs),b1=ak.sin(bs),bP=ak.tan(bx/4),bS=4/3*bI*bP,bQ=4/3*bG*bP,bZ=[bz,b4],bX=[bz+bS*b2,b4-bQ*br],bW=[by+bS*b1,b3-bQ*bq],bU=[by,b3];bX[0]=2*bZ[0]-bX[0];bX[1]=2*bZ[1]-bX[1];if(bB){return[bX,bW,bU][bg](bM)}else{bM=[bX,bW,bU][bg](bM)[aO]()[G](",");var bK=[];for(var bV=0,bL=bM[p];bV<bL;bV++){bK[bV]=bV%2?b0(bM[bV-1],bM[bV],d).y:b0(bM[bV],bM[bV+1],d).x}return bK}},Y=function(e,d,E,i,bs,br,bq,S,bt){var R=1-bt;return{x:a7(R,3)*e+a7(R,2)*3*bt*E+R*3*bt*bt*bs+a7(bt,3)*bq,y:a7(R,3)*d+a7(R,2)*3*bt*i+R*3*bt*bt*br+a7(bt,3)*S}},aV=au(function(i,d,R,E,bz,by,bv,bs){var bx=(bz-2*R+i)-(bv-2*bz+R),bu=2*(R-i)-2*(bz-R),br=i-R,bq=(-bu+ak.sqrt(bu*bu-4*bx*br))/2/bx,S=(-bu-ak.sqrt(bu*bu-4*bx*br))/2/bx,bt=[d,bs],bw=[i,bv],e;ak.abs(bq)>1000000000000&&(bq=0.5);ak.abs(S)>1000000000000&&(S=0.5);if(bq>0&&bq<1){e=Y(i,d,R,E,bz,by,bv,bs,bq);bw[f](e.x);bt[f](e.y)}if(S>0&&S<1){e=Y(i,d,R,E,bz,by,bv,bs,S);bw[f](e.x);bt[f](e.y)}bx=(by-2*E+d)-(bs-2*by+E);bu=2*(E-d)-2*(by-E);br=d-E;bq=(-bu+ak.sqrt(bu*bu-4*bx*br))/2/bx;S=(-bu-ak.sqrt(bu*bu-4*bx*br))/2/bx;ak.abs(bq)>1000000000000&&(bq=0.5);ak.abs(S)>1000000000000&&(S=0.5);if(bq>0&&bq<1){e=Y(i,d,R,E,bz,by,bv,bs,bq);bw[f](e.x);bt[f](e.y)}if(S>0&&S<1){e=Y(i,d,R,E,bz,by,bv,bs,S);bw[f](e.x);bt[f](e.y)}return{min:{x:a4[bl](0,bw),y:a4[bl](0,bt)},max:{x:h[bl](0,bw),y:h[bl](0,bt)}}}),P=au(function(bz,bu){var R=w(bz),bv=bu&&w(bu),bw={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},d={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},bq=function(bA,bB){var i,bC;if(!bA){return["C",bB.x,bB.y,bB.x,bB.y,bB.x,bB.y]}!(bA[0] in {T:1,Q:1})&&(bB.qx=bB.qy=null);switch(bA[0]){case"M":bB.X=bA[1];bB.Y=bA[2];break;case"A":bA=["C"][bg](V[bl](0,[bB.x,bB.y][bg](bA.slice(1))));break;case"S":i=bB.x+(bB.x-(bB.bx||bB.x));bC=bB.y+(bB.y-(bB.by||bB.y));bA=["C",i,bC][bg](bA.slice(1));break;case"T":bB.qx=bB.x+(bB.x-(bB.qx||bB.x));bB.qy=bB.y+(bB.y-(bB.qy||bB.y));bA=["C"][bg](a5(bB.x,bB.y,bB.qx,bB.qy,bA[1],bA[2]));break;case"Q":bB.qx=bA[1];bB.qy=bA[2];bA=["C"][bg](a5(bB.x,bB.y,bA[1],bA[2],bA[3],bA[4]));break;case"L":bA=["C"][bg](bm(bB.x,bB.y,bA[1],bA[2]));break;case"H":bA=["C"][bg](bm(bB.x,bB.y,bA[1],bB.y));break;case"V":bA=["C"][bg](bm(bB.x,bB.y,bB.x,bA[1]));break;case"Z":bA=["C"][bg](bm(bB.x,bB.y,bB.X,bB.Y));break}return bA},e=function(bA,bB){if(bA[bB][p]>7){bA[bB].shift();var bC=bA[bB];while(bC[p]){bA.splice(bB++,0,["C"][bg](bC.splice(0,6)))}bA.splice(bB,1);bx=h(R[p],bv&&bv[p]||0)}},E=function(bE,bD,bB,bA,bC){if(bE&&bD&&bE[bC][0]=="M"&&bD[bC][0]!="M"){bD.splice(bC,0,["M",bA.x,bA.y]);bB.bx=0;bB.by=0;bB.x=bE[bC][1];bB.y=bE[bC][2];bx=h(R[p],bv&&bv[p]||0)}};for(var bs=0,bx=h(R[p],bv&&bv[p]||0);bs<bx;bs++){R[bs]=bq(R[bs],bw);e(R,bs);bv&&(bv[bs]=bq(bv[bs],d));bv&&e(bv,bs);E(R,bv,bw,d,bs);E(bv,R,d,bw,bs);var br=R[bs],by=bv&&bv[bs],S=br[p],bt=bv&&by[p];bw.x=br[S-2];bw.y=br[S-1];bw.bx=af(br[S-4])||bw.x;bw.by=af(br[S-3])||bw.y;d.bx=bv&&(af(by[bt-4])||d.x);d.by=bv&&(af(by[bt-3])||d.y);d.x=bv&&by[bt-2];d.y=bv&&by[bt-1]}return bv?[R,bv]:R},null,aK),u=au(function(bu){var bt=[];for(var bq=0,bv=bu[p];bq<bv;bq++){var e={},bs=bu[bq].match(/^([^:]*):?([\d\.]*)/);e.color=aB.getRGB(bs[1]);if(e.color.error){return null}e.color=e.color.hex;bs[2]&&(e.offset=bs[2]+"%");bt[f](e)}for(bq=1,bv=bt[p]-1;bq<bv;bq++){if(!bt[bq].offset){var E=af(bt[bq-1].offset||0),R=0;for(var S=bq+1;S<bv;S++){if(bt[S].offset){R=bt[S].offset;break}}if(!R){R=100;S=bv}R=af(R);var br=(R-E)/(S-bq+1);for(;bq<S;bq++){E+=br;bt[bq].offset=E+"%"}}}return bt}),aC=function(d,R,i,E){var e;
if(aB.is(d,ab)||aB.is(d,"object")){e=aB.is(d,ab)?W.getElementById(d):d;if(e.tagName){if(R==null){return{container:e,width:e.style.pixelWidth||e.offsetWidth,height:e.style.pixelHeight||e.offsetHeight}}else{return{container:e,width:R,height:i}}}}else{return{container:1,x:d,y:R,width:i,height:E}}},a1=function(d,i){var e=this;for(var E in i){if(i[ac](E)&&!(E in d)){switch(typeof i[E]){case"function":(function(R){d[E]=d===e?R:function(){return R[bl](e,arguments)}})(i[E]);break;case"object":d[E]=d[E]||{};a1.call(this,d[E],i[E]);break;default:d[E]=i[E];break}}}},ax=function(d,e){d==e.top&&(e.top=d.prev);d==e.bottom&&(e.bottom=d.next);d.next&&(d.next.prev=d.prev);d.prev&&(d.prev.next=d.next)},ah=function(d,e){if(e.top===d){return}ax(d,e);d.next=null;d.prev=e.top;e.top.next=d;e.top=d},n=function(d,e){if(e.bottom===d){return}ax(d,e);d.next=e.bottom;d.prev=null;e.bottom.prev=d;e.bottom=d},H=function(e,d,i){ax(e,i);d==i.top&&(i.top=e);d.next&&(d.next.prev=e);e.next=d.next;e.prev=d;d.next=e},aE=function(e,d,i){ax(e,i);d==i.bottom&&(i.bottom=e);d.prev&&(d.prev.next=e);e.prev=d.prev;d.prev=e;e.next=d},x=function(d){return function(){throw new Error("Rapha\xebl: you are calling to method \u201c"+d+"\u201d of removed object")}},aG=/^r(?:\(([^,]+?)\s*,\s*([^\)]+?)\))?/;if(aB.svg){bi[bn].svgns="http://www.w3.org/2000/svg";bi[bn].xlink="http://www.w3.org/1999/xlink";Z=function(d){return +d+(~~d===d)*0.5};var a3=function(i,d){if(d){for(var e in d){if(d[ac](e)){i[B](e,d[e]+aH)}}}else{i=W.createElementNS(bi[bn].svgns,i);i.style.webkitTapHighlightColor="rgba(0,0,0,0)";return i}};aB[aQ]=function(){return"Your browser supports SVG.\nYou are running Rapha\xebl "+this.version};var v=function(d,E){var e=a3("path");E.canvas&&E.canvas[a6](e);var i=new aM(e,E);i.type="path";aj(i,{fill:"none",stroke:"#000",path:d});return i};var b=function(R,by,d){var bv="linear",bs=0.5,bq=0.5,bA=R.style;by=(by+aH)[bc](aG,function(bC,i,bD){bv="radial";if(i&&bD){bs=af(i);bq=af(bD);var bB=((bq>0.5)*2-1);a7(bs-0.5,2)+a7(bq-0.5,2)>0.25&&(bq=ak.sqrt(0.25-a7(bs-0.5,2))*bB+0.5)&&bq!=0.5&&(bq=bq.toFixed(5)-0.00001*bB)}return aH});by=by[G](/\s*\-\s*/);if(bv=="linear"){var br=by.shift();br=-af(br);if(isNaN(br)){return null}var S=[0,0,ak.cos(br*ak.PI/180),ak.sin(br*ak.PI/180)],bx=1/(h(ak.abs(S[2]),ak.abs(S[3]))||1);S[2]*=bx;S[3]*=bx;if(S[2]<0){S[0]=-S[2];S[2]=0}if(S[3]<0){S[1]=-S[3];S[3]=0}}var bu=u(by);if(!bu){return null}var e=R.getAttribute(aT);e=e.match(/^url\(#(.*)\)$/);e&&d.defs.removeChild(W.getElementById(e[1]));var E=a3(bv+"Gradient");E.id="r"+(aB._id++)[aQ](36);a3(E,bv=="radial"?{fx:bs,fy:bq}:{x1:S[0],y1:S[1],x2:S[2],y2:S[3]});d.defs[a6](E);for(var bt=0,bz=bu[p];bt<bz;bt++){var bw=a3("stop");a3(bw,{offset:bu[bt].offset?bu[bt].offset:!bt?"0%":"100%","stop-color":bu[bt].color||"#fff"});E[a6](bw)}a3(R,{fill:"url(#"+E.id+")",opacity:1,"fill-opacity":1});bA.fill=aH;bA.opacity=1;bA.fillOpacity=1;return 1};var X=function(e){var d=e.getBBox();a3(e.pattern,{patternTransform:aB.format("translate({0},{1})",d.x,d.y)})};var aj=function(bx,bG){var bA={"":[0],none:[0],"-":[3,1],".":[1,1],"-.":[3,1,1,1],"-..":[3,1,1,1,1,1],". ":[1,3],"- ":[4,3],"--":[8,3],"- .":[4,3,1,3],"--.":[8,3,1,3],"--..":[8,3,1,3,1,3]},bC=bx.node,by=bx.attrs,bu=bx.rotate(),bq=function(bN,bM){bM=bA[bp.call(bM)];if(bM){var bK=bN.attrs["stroke-width"]||"1",bI={round:bK,square:bK,butt:0}[bN.attrs["stroke-linecap"]||bG["stroke-linecap"]]||0,bL=[];var bJ=bM[p];while(bJ--){bL[bJ]=bM[bJ]*bK+((bJ%2)?1:-1)*bI}a3(bC,{"stroke-dasharray":bL[aO](",")})}};bG[ac]("rotation")&&(bu=bG.rotation);var bt=(bu+aH)[G](a);if(!(bt.length-1)){bt=null}else{bt[1]=+bt[1];bt[2]=+bt[2]}af(bu)&&bx.rotate(0,true);for(var bB in bG){if(bG[ac](bB)){if(!m[ac](bB)){continue}var bz=bG[bB];by[bB]=bz;switch(bB){case"blur":bx.blur(bz);break;case"rotation":bx.rotate(bz,true);break;case"href":case"title":case"target":var bE=bC.parentNode;if(bp.call(bE.tagName)!="a"){var R=a3("a");bE.insertBefore(R,bC);R[a6](bC);bE=R}bE.setAttributeNS(bx.paper.xlink,bB,bz);break;case"cursor":bC.style.cursor=bz;break;case"clip-rect":var e=(bz+aH)[G](a);if(e[p]==4){bx.clip&&bx.clip.parentNode.parentNode.removeChild(bx.clip.parentNode);var i=a3("clipPath"),bD=a3("rect");i.id="r"+(aB._id++)[aQ](36);a3(bD,{x:e[0],y:e[1],width:e[2],height:e[3]});i[a6](bD);bx.paper.defs[a6](i);a3(bC,{"clip-path":"url(#"+i.id+")"});bx.clip=bD}if(!bz){var bF=W.getElementById(bC.getAttribute("clip-path")[bc](/(^url\(#|\)$)/g,aH));bF&&bF.parentNode.removeChild(bF);a3(bC,{"clip-path":aH});delete bx.clip}break;case"path":if(bx.type=="path"){a3(bC,{d:bz?by.path=w(bz):"M0,0"})}break;case"width":bC[B](bB,bz);if(by.fx){bB="x";bz=by.x}else{break}case"x":if(by.fx){bz=-by.x-(by.width||0)}case"rx":if(bB=="rx"&&bx.type=="rect"){break}case"cx":bt&&(bB=="x"||bB=="cx")&&(bt[1]+=bz-by[bB]);bC[B](bB,Z(bz));bx.pattern&&X(bx);break;case"height":bC[B](bB,bz);if(by.fy){bB="y";bz=by.y}else{break}case"y":if(by.fy){bz=-by.y-(by.height||0)}case"ry":if(bB=="ry"&&bx.type=="rect"){break}case"cy":bt&&(bB=="y"||bB=="cy")&&(bt[2]+=bz-by[bB]);bC[B](bB,Z(bz));bx.pattern&&X(bx);break;case"r":if(bx.type=="rect"){a3(bC,{rx:bz,ry:bz})}else{bC[B](bB,bz)}break;case"src":if(bx.type=="image"){bC.setAttributeNS(bx.paper.xlink,"href",bz)}break;case"stroke-width":bC.style.strokeWidth=bz;bC[B](bB,bz);if(by["stroke-dasharray"]){bq(bx,by["stroke-dasharray"])}break;case"stroke-dasharray":bq(bx,bz);break;case"translation":var br=(bz+aH)[G](a);br[0]=+br[0]||0;br[1]=+br[1]||0;if(bt){bt[1]+=br[0];bt[2]+=br[1]}y.call(bx,br[0],br[1]);break;case"scale":br=(bz+aH)[G](a);bx.scale(+br[0]||1,+br[1]||+br[0]||1,isNaN(af(br[2]))?null:+br[2],isNaN(af(br[3]))?null:+br[3]);break;case aT:var S=(bz+aH).match(c);if(S){i=a3("pattern");var bw=a3("image");i.id="r"+(aB._id++)[aQ](36);a3(i,{x:0,y:0,patternUnits:"userSpaceOnUse",height:1,width:1});a3(bw,{x:0,y:0});bw.setAttributeNS(bx.paper.xlink,"href",S[1]);i[a6](bw);var bH=W.createElement("img");bH.style.cssText="position:absolute;left:-9999em;top-9999em";bH.onload=function(){a3(i,{width:this.offsetWidth,height:this.offsetHeight});a3(bw,{width:this.offsetWidth,height:this.offsetHeight});W.body.removeChild(this);bx.paper.safari()};W.body[a6](bH);bH.src=S[1];bx.paper.defs[a6](i);bC.style.fill="url(#"+i.id+")";a3(bC,{fill:"url(#"+i.id+")"});bx.pattern=i;bx.pattern&&X(bx);break}var E=aB.getRGB(bz);if(!E.error){delete bG.gradient;delete by.gradient;!aB.is(by.opacity,"undefined")&&aB.is(bG.opacity,"undefined")&&a3(bC,{opacity:by.opacity});!aB.is(by["fill-opacity"],"undefined")&&aB.is(bG["fill-opacity"],"undefined")&&a3(bC,{"fill-opacity":by["fill-opacity"]})}else{if((({circle:1,ellipse:1})[ac](bx.type)||(bz+aH).charAt()!="r")&&b(bC,bz,bx.paper)){by.gradient=bz;by.fill="none";break}}E[ac]("o")&&a3(bC,{"fill-opacity":E.o/100});case"stroke":E=aB.getRGB(bz);bC[B](bB,E.hex);bB=="stroke"&&E[ac]("o")&&a3(bC,{"stroke-opacity":E.o/100});break;case"gradient":(({circle:1,ellipse:1})[ac](bx.type)||(bz+aH).charAt()!="r")&&b(bC,bz,bx.paper);break;case"opacity":case"fill-opacity":if(by.gradient){var d=W.getElementById(bC.getAttribute(aT)[bc](/^url\(#|\)$/g,aH));
if(d){var bs=d.getElementsByTagName("stop");bs[bs[p]-1][B]("stop-opacity",bz)}break}default:bB=="font-size"&&(bz=O(bz,10)+"px");var bv=bB[bc](/(\-.)/g,function(bI){return a9.call(bI.substring(1))});bC.style[bv]=bz;bC[B](bB,bz);break}}}M(bx,bG);if(bt){bx.rotate(bt.join(aA))}else{af(bu)&&bx.rotate(bu,true)}};var l=1.2,M=function(d,R){if(d.type!="text"||!(R[ac]("text")||R[ac]("font")||R[ac]("font-size")||R[ac]("x")||R[ac]("y"))){return}var bt=d.attrs,e=d.node,bv=e.firstChild?O(W.defaultView.getComputedStyle(e.firstChild,aH).getPropertyValue("font-size"),10):10;if(R[ac]("text")){bt.text=R.text;while(e.firstChild){e.removeChild(e.firstChild)}var E=(R.text+aH)[G]("\n");for(var S=0,bu=E[p];S<bu;S++){if(E[S]){var br=a3("tspan");S&&a3(br,{dy:bv*l,x:bt.x});br[a6](W.createTextNode(E[S]));e[a6](br)}}}else{E=e.getElementsByTagName("tspan");for(S=0,bu=E[p];S<bu;S++){S&&a3(E[S],{dy:bv*l,x:bt.x})}}a3(e,{y:bt.y});var bq=d.getBBox(),bs=bt.y-(bq.y+bq.height/2);bs&&isFinite(bs)&&a3(e,{y:bt.y+bs})},aM=function(e,d){var E=0,i=0;this[0]=e;this.id=aB._oid++;this.node=e;e.raphael=this;this.paper=d;this.attrs=this.attrs||{};this.transformations=[];this._={tx:0,ty:0,rt:{deg:0,cx:0,cy:0},sx:1,sy:1};!d.bottom&&(d.bottom=this);this.prev=d.top;d.top&&(d.top.next=this);d.top=this;this.next=null};aM[bn].rotate=function(e,d,E){if(this.removed){return this}if(e==null){if(this._.rt.cx){return[this._.rt.deg,this._.rt.cx,this._.rt.cy][aO](aA)}return this._.rt.deg}var i=this.getBBox();e=(e+aH)[G](a);if(e[p]-1){d=af(e[1]);E=af(e[2])}e=af(e[0]);if(d!=null){this._.rt.deg=e}else{this._.rt.deg+=e}(E==null)&&(d=null);this._.rt.cx=d;this._.rt.cy=E;d=d==null?i.x+i.width/2:d;E=E==null?i.y+i.height/2:E;if(this._.rt.deg){this.transformations[0]=aB.format("rotate({0} {1} {2})",this._.rt.deg,d,E);this.clip&&a3(this.clip,{transform:aB.format("rotate({0} {1} {2})",-this._.rt.deg,d,E)})}else{this.transformations[0]=aH;this.clip&&a3(this.clip,{transform:aH})}a3(this.node,{transform:this.transformations[aO](aA)});return this};aM[bn].hide=function(){!this.removed&&(this.node.style.display="none");return this};aM[bn].show=function(){!this.removed&&(this.node.style.display="");return this};aM[bn].remove=function(){if(this.removed){return}ax(this,this.paper);this.node.parentNode.removeChild(this.node);for(var d in this){delete this[d]}this.removed=true};aM[bn].getBBox=function(){if(this.removed){return this}if(this.type=="path"){return ae(this.attrs.path)}if(this.node.style.display=="none"){this.show();var E=true}var br={};try{br=this.node.getBBox()}catch(S){}finally{br=br||{}}if(this.type=="text"){br={x:br.x,y:Infinity,width:0,height:0};for(var d=0,R=this.node.getNumberOfChars();d<R;d++){var bq=this.node.getExtentOfChar(d);(bq.y<br.y)&&(br.y=bq.y);(bq.y+bq.height-br.y>br.height)&&(br.height=bq.y+bq.height-br.y);(bq.x+bq.width-br.x>br.width)&&(br.width=bq.x+bq.width-br.x)}}E&&this.hide();return br};aM[bn].attr=function(E,br){if(this.removed){return this}if(E==null){var S={};for(var R in this.attrs){if(this.attrs[ac](R)){S[R]=this.attrs[R]}}this._.rt.deg&&(S.rotation=this.rotate());(this._.sx!=1||this._.sy!=1)&&(S.scale=this.scale());S.gradient&&S.fill=="none"&&(S.fill=S.gradient)&&delete S.gradient;return S}if(br==null&&aB.is(E,ab)){if(E=="translation"){return y.call(this)}if(E=="rotation"){return this.rotate()}if(E=="scale"){return this.scale()}if(E==aT&&this.attrs.fill=="none"&&this.attrs.gradient){return this.attrs.gradient}return this.attrs[E]}if(br==null&&aB.is(E,aW)){var d={};for(var e=0,bq=E.length;e<bq;e++){d[E[e]]=this.attr(E[e])}return d}if(br!=null){var bs={};bs[E]=br;aj(this,bs)}else{if(E!=null&&aB.is(E,"object")){aj(this,E)}}return this};aM[bn].toFront=function(){if(this.removed){return this}this.node.parentNode[a6](this.node);var d=this.paper;d.top!=this&&ah(this,d);return this};aM[bn].toBack=function(){if(this.removed){return this}if(this.node.parentNode.firstChild!=this.node){this.node.parentNode.insertBefore(this.node,this.node.parentNode.firstChild);n(this,this.paper);var d=this.paper}return this};aM[bn].insertAfter=function(d){if(this.removed){return this}var e=d.node;if(e.nextSibling){e.parentNode.insertBefore(this.node,e.nextSibling)}else{e.parentNode[a6](this.node)}H(this,d,this.paper);return this};aM[bn].insertBefore=function(d){if(this.removed){return this}var e=d.node;e.parentNode.insertBefore(this.node,e);aE(this,d,this.paper);return this};aM[bn].blur=function(e){var d=this;if(+e!==0){var i=a3("filter"),E=a3("feGaussianBlur");d.attrs.blur=e;i.id="r"+(aB._id++)[aQ](36);a3(E,{stdDeviation:+e||1.5});i.appendChild(E);d.paper.defs.appendChild(i);d._blur=i;a3(d.node,{filter:"url(#"+i.id+")"})}else{if(d._blur){d._blur.parentNode.removeChild(d._blur);delete d._blur;delete d.attrs.blur}d.node.removeAttribute("filter")}};var aa=function(e,d,S,R){d=Z(d);S=Z(S);var E=a3("circle");e.canvas&&e.canvas[a6](E);var i=new aM(E,e);i.attrs={cx:d,cy:S,r:R,fill:"none",stroke:"#000"};i.type="circle";a3(E,i.attrs);return i};var aZ=function(i,d,br,e,S,bq){d=Z(d);br=Z(br);var R=a3("rect");i.canvas&&i.canvas[a6](R);var E=new aM(R,i);E.attrs={x:d,y:br,width:e,height:S,r:bq||0,rx:bq||0,ry:bq||0,fill:"none",stroke:"#000"};E.type="rect";a3(R,E.attrs);return E};var at=function(e,d,bq,S,R){d=Z(d);bq=Z(bq);var E=a3("ellipse");e.canvas&&e.canvas[a6](E);var i=new aM(E,e);i.attrs={cx:d,cy:bq,rx:S,ry:R,fill:"none",stroke:"#000"};i.type="ellipse";a3(E,i.attrs);return i};var t=function(i,bq,d,br,e,S){var R=a3("image");a3(R,{x:d,y:br,width:e,height:S,preserveAspectRatio:"none"});R.setAttributeNS(i.xlink,"href",bq);i.canvas&&i.canvas[a6](R);var E=new aM(R,i);E.attrs={x:d,y:br,width:e,height:S,src:bq};E.type="image";return E};var ag=function(e,d,S,R){var E=a3("text");a3(E,{x:d,y:S,"text-anchor":"middle"});e.canvas&&e.canvas[a6](E);var i=new aM(E,e);i.attrs={x:d,y:S,"text-anchor":"middle",text:R,font:m.font,stroke:"none",fill:"#000"};i.type="text";aj(i,i.attrs);return i};var bk=function(e,d){this.width=e||this.width;this.height=d||this.height;this.canvas[B]("width",this.width);this.canvas[B]("height",this.height);return this};var C=function(){var E=aC[bl](0,arguments),i=E&&E.container,e=E.x,bq=E.y,R=E.width,d=E.height;if(!i){throw new Error("SVG container not found.")}var S=a3("svg");e=e||0;bq=bq||0;R=R||512;d=d||342;a3(S,{xmlns:"http://www.w3.org/2000/svg",version:1.1,width:R,height:d});if(i==1){S.style.cssText="position:absolute;left:"+e+"px;top:"+bq+"px";W.body[a6](S)}else{if(i.firstChild){i.insertBefore(S,i.firstChild)}else{i[a6](S)}}i=new bi;i.width=R;i.height=d;i.canvas=S;a1.call(i,i,aB.fn);i.clear();return i};bi[bn].clear=function(){var d=this.canvas;while(d.firstChild){d.removeChild(d.firstChild)}this.bottom=this.top=null;(this.desc=a3("desc"))[a6](W.createTextNode("Created with Rapha\xebl"));d[a6](this.desc);d[a6](this.defs=a3("defs"))};bi[bn].remove=function(){this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas);for(var d in this){this[d]=x(d)}}}if(aB.vml){var K={M:"m",L:"l",C:"c",Z:"x",m:"t",l:"r",c:"v",z:"x"},aF=/([clmz]),?([^clmz]*)/gi,bo=/-?[^,\s-]+/g,aP=1000+aA+1000,s=10,q={path:1,rect:1},a2=function(bv){var bs=/[ahqstv]/ig,E=w;
(bv+aH).match(bs)&&(E=P);bs=/[clmz]/g;if(E==w&&!(bv+aH).match(bs)){var br=(bv+aH)[bc](aF,function(by,bA,bw){var bz=[],i=bp.call(bA)=="m",bx=K[bA];bw[bc](bo,function(bB){if(i&&bz[p]==2){bx+=bz+K[bA=="m"?"l":"L"];bz=[]}bz[f](Z(bB*s))});return bx+bz});return br}var bt=E(bv),e,d;br=[];for(var S=0,bu=bt[p];S<bu;S++){e=bt[S];d=bp.call(bt[S][0]);d=="z"&&(d="x");for(var R=1,bq=e[p];R<bq;R++){d+=Z(e[R]*s)+(R!=bq-1?",":aH)}br[f](d)}return br[aO](aA)};aB[aQ]=function(){return"Your browser doesn\u2019t support SVG. Falling down to VML.\nYou are running Rapha\xebl "+this.version};v=function(i,e){var S=ar("group");S.style.cssText="position:absolute;left:0;top:0;width:"+e.width+"px;height:"+e.height+"px";S.coordsize=e.coordsize;S.coordorigin=e.coordorigin;var R=ar("shape"),E=R.style;E.width=e.width+"px";E.height=e.height+"px";R.coordsize=aP;R.coordorigin=e.coordorigin;S[a6](R);var bq=new aM(R,S,e),d={fill:"none",stroke:"#000"};i&&(d.path=i);bq.isAbsolute=true;bq.type="path";bq.path=[];bq.Path=aH;aj(bq,d);e.canvas[a6](S);return bq};aj=function(bt,bA){bt.attrs=bt.attrs||{};var bx=bt.node,bB=bt.attrs,bq=bx.style,E,bz=(bA.x!=bB.x||bA.y!=bB.y||bA.width!=bB.width||bA.height!=bB.height||bA.r!=bB.r)&&bt.type=="rect",bF=bt;for(var br in bA){if(bA[ac](br)){bB[br]=bA[br]}}if(bz){bB.path=am(bB.x,bB.y,bB.width,bB.height,bB.r);bt.X=bB.x;bt.Y=bB.y;bt.W=bB.width;bt.H=bB.height}bA.href&&(bx.href=bA.href);bA.title&&(bx.title=bA.title);bA.target&&(bx.target=bA.target);bA.cursor&&(bq.cursor=bA.cursor);"blur" in bA&&bt.blur(bA.blur);if(bA.path&&bt.type=="path"||bz){bx.path=a2(bB.path)}if(bA.rotation!=null){bt.rotate(bA.rotation,true)}if(bA.translation){E=(bA.translation+aH)[G](a);y.call(bt,E[0],E[1]);if(bt._.rt.cx!=null){bt._.rt.cx+=+E[0];bt._.rt.cy+=+E[1];bt.setBox(bt.attrs,E[0],E[1])}}if(bA.scale){E=(bA.scale+aH)[G](a);bt.scale(+E[0]||1,+E[1]||+E[0]||1,+E[2]||null,+E[3]||null)}if("clip-rect" in bA){var d=(bA["clip-rect"]+aH)[G](a);if(d[p]==4){d[2]=+d[2]+(+d[0]);d[3]=+d[3]+(+d[1]);var bs=bx.clipRect||W.createElement("div"),bE=bs.style,S=bx.parentNode;bE.clip=aB.format("rect({1}px {2}px {3}px {0}px)",d);if(!bx.clipRect){bE.position="absolute";bE.top=0;bE.left=0;bE.width=bt.paper.width+"px";bE.height=bt.paper.height+"px";S.parentNode.insertBefore(bs,S);bs[a6](S);bx.clipRect=bs}}if(!bA["clip-rect"]){bx.clipRect&&(bx.clipRect.style.clip=aH)}}if(bt.type=="image"&&bA.src){bx.src=bA.src}if(bt.type=="image"&&bA.opacity){bx.filterOpacity=aU+".Alpha(opacity="+(bA.opacity*100)+")";bq.filter=(bx.filterMatrix||aH)+(bx.filterOpacity||aH)}bA.font&&(bq.font=bA.font);bA["font-family"]&&(bq.fontFamily='"'+bA["font-family"][G](",")[0][bc](/^['"]+|['"]+$/g,aH)+'"');bA["font-size"]&&(bq.fontSize=bA["font-size"]);bA["font-weight"]&&(bq.fontWeight=bA["font-weight"]);bA["font-style"]&&(bq.fontStyle=bA["font-style"]);if(bA.opacity!=null||bA["stroke-width"]!=null||bA.fill!=null||bA.stroke!=null||bA["stroke-width"]!=null||bA["stroke-opacity"]!=null||bA["fill-opacity"]!=null||bA["stroke-dasharray"]!=null||bA["stroke-miterlimit"]!=null||bA["stroke-linejoin"]!=null||bA["stroke-linecap"]!=null){bx=bt.shape||bx;var by=(bx.getElementsByTagName(aT)&&bx.getElementsByTagName(aT)[0]),bC=false;!by&&(bC=by=ar(aT));if("fill-opacity" in bA||"opacity" in bA){var e=((+bB["fill-opacity"]+1||2)-1)*((+bB.opacity+1||2)-1)*((+aB.getRGB(bA.fill).o+1||2)-1);e<0&&(e=0);e>1&&(e=1);by.opacity=e}bA.fill&&(by.on=true);if(by.on==null||bA.fill=="none"){by.on=false}if(by.on&&bA.fill){var i=bA.fill.match(c);if(i){by.src=i[1];by.type="tile"}else{by.color=aB.getRGB(bA.fill).hex;by.src=aH;by.type="solid";if(aB.getRGB(bA.fill).error&&(bF.type in {circle:1,ellipse:1}||(bA.fill+aH).charAt()!="r")&&b(bF,bA.fill)){bB.fill="none";bB.gradient=bA.fill}}}bC&&bx[a6](by);var R=(bx.getElementsByTagName("stroke")&&bx.getElementsByTagName("stroke")[0]),bD=false;!R&&(bD=R=ar("stroke"));if((bA.stroke&&bA.stroke!="none")||bA["stroke-width"]||bA["stroke-opacity"]!=null||bA["stroke-dasharray"]||bA["stroke-miterlimit"]||bA["stroke-linejoin"]||bA["stroke-linecap"]){R.on=true}(bA.stroke=="none"||R.on==null||bA.stroke==0||bA["stroke-width"]==0)&&(R.on=false);var bw=aB.getRGB(bA.stroke);R.on&&bA.stroke&&(R.color=bw.hex);e=((+bB["stroke-opacity"]+1||2)-1)*((+bB.opacity+1||2)-1)*((+bw.o+1||2)-1);var bu=(af(bA["stroke-width"])||1)*0.75;e<0&&(e=0);e>1&&(e=1);bA["stroke-width"]==null&&(bu=bB["stroke-width"]);bA["stroke-width"]&&(R.weight=bu);bu&&bu<1&&(e*=bu)&&(R.weight=1);R.opacity=e;bA["stroke-linejoin"]&&(R.joinstyle=bA["stroke-linejoin"]||"miter");R.miterlimit=bA["stroke-miterlimit"]||8;bA["stroke-linecap"]&&(R.endcap=bA["stroke-linecap"]=="butt"?"flat":bA["stroke-linecap"]=="square"?"square":"round");if(bA["stroke-dasharray"]){var bv={"-":"shortdash",".":"shortdot","-.":"shortdashdot","-..":"shortdashdotdot",". ":"dot","- ":"dash","--":"longdash","- .":"dashdot","--.":"longdashdot","--..":"longdashdotdot"};R.dashstyle=bv[ac](bA["stroke-dasharray"])?bv[bA["stroke-dasharray"]]:aH}bD&&bx[a6](R)}if(bF.type=="text"){bq=bF.paper.span.style;bB.font&&(bq.font=bB.font);bB["font-family"]&&(bq.fontFamily=bB["font-family"]);bB["font-size"]&&(bq.fontSize=bB["font-size"]);bB["font-weight"]&&(bq.fontWeight=bB["font-weight"]);bB["font-style"]&&(bq.fontStyle=bB["font-style"]);bF.node.string&&(bF.paper.span.innerHTML=(bF.node.string+aH)[bc](/</g,"&#60;")[bc](/&/g,"&#38;")[bc](/\n/g,"<br>"));bF.W=bB.w=bF.paper.span.offsetWidth;bF.H=bB.h=bF.paper.span.offsetHeight;bF.X=bB.x;bF.Y=bB.y+Z(bF.H/2);switch(bB["text-anchor"]){case"start":bF.node.style["v-text-align"]="left";bF.bbx=Z(bF.W/2);break;case"end":bF.node.style["v-text-align"]="right";bF.bbx=-Z(bF.W/2);break;default:bF.node.style["v-text-align"]="center";break}}};b=function(d,br){d.attrs=d.attrs||{};var bs=d.attrs,bu,S="linear",bq=".5 .5";d.attrs.gradient=br;br=(br+aH)[bc](aG,function(bw,bx,i){S="radial";if(bx&&i){bx=af(bx);i=af(i);a7(bx-0.5,2)+a7(i-0.5,2)>0.25&&(i=ak.sqrt(0.25-a7(bx-0.5,2))*((i>0.5)*2-1)+0.5);bq=bx+aA+i}return aH});br=br[G](/\s*\-\s*/);if(S=="linear"){var e=br.shift();e=-af(e);if(isNaN(e)){return null}}var R=u(br);if(!R){return null}d=d.shape||d.node;bu=d.getElementsByTagName(aT)[0]||ar(aT);!bu.parentNode&&d.appendChild(bu);if(R[p]){bu.on=true;bu.method="none";bu.color=R[0].color;bu.color2=R[R[p]-1].color;var bv=[];for(var E=0,bt=R[p];E<bt;E++){R[E].offset&&bv[f](R[E].offset+aA+R[E].color)}bu.colors&&(bu.colors.value=bv[p]?bv[aO]():"0% "+bu.color);if(S=="radial"){bu.type="gradientradial";bu.focus="100%";bu.focussize=bq;bu.focusposition=bq}else{bu.type="gradient";bu.angle=(270-e)%360}}return 1};aM=function(R,bq,d){var S=0,i=0,e=0,E=1;this[0]=R;this.id=aB._oid++;this.node=R;R.raphael=this;this.X=0;this.Y=0;this.attrs={};this.Group=bq;this.paper=d;this._={tx:0,ty:0,rt:{deg:0},sx:1,sy:1};!d.bottom&&(d.bottom=this);this.prev=d.top;d.top&&(d.top.next=this);d.top=this;this.next=null};aM[bn].rotate=function(e,d,i){if(this.removed){return this}if(e==null){if(this._.rt.cx){return[this._.rt.deg,this._.rt.cx,this._.rt.cy][aO](aA)}return this._.rt.deg
}e=(e+aH)[G](a);if(e[p]-1){d=af(e[1]);i=af(e[2])}e=af(e[0]);if(d!=null){this._.rt.deg=e}else{this._.rt.deg+=e}i==null&&(d=null);this._.rt.cx=d;this._.rt.cy=i;this.setBox(this.attrs,d,i);this.Group.style.rotation=this._.rt.deg;return this};aM[bn].setBox=function(R,S,E){if(this.removed){return this}var d=this.Group.style,bq=(this.shape&&this.shape.style)||this.node.style;R=R||{};for(var br in R){if(R[ac](br)){this.attrs[br]=R[br]}}S=S||this._.rt.cx;E=E||this._.rt.cy;var bu=this.attrs,bx,bw,by,bt;switch(this.type){case"circle":bx=bu.cx-bu.r;bw=bu.cy-bu.r;by=bt=bu.r*2;break;case"ellipse":bx=bu.cx-bu.rx;bw=bu.cy-bu.ry;by=bu.rx*2;bt=bu.ry*2;break;case"image":bx=+bu.x;bw=+bu.y;by=bu.width||0;bt=bu.height||0;break;case"text":this.textpath.v=["m",Z(bu.x),", ",Z(bu.y-2),"l",Z(bu.x)+1,", ",Z(bu.y-2)][aO](aH);bx=bu.x-Z(this.W/2);bw=bu.y-this.H/2;by=this.W;bt=this.H;break;case"rect":case"path":if(!this.attrs.path){bx=0;bw=0;by=this.paper.width;bt=this.paper.height}else{var bs=ae(this.attrs.path);bx=bs.x;bw=bs.y;by=bs.width;bt=bs.height}break;default:bx=0;bw=0;by=this.paper.width;bt=this.paper.height;break}S=(S==null)?bx+by/2:S;E=(E==null)?bw+bt/2:E;var e=S-this.paper.width/2,bv=E-this.paper.height/2,bz;d.left!=(bz=e+"px")&&(d.left=bz);d.top!=(bz=bv+"px")&&(d.top=bz);this.X=q[ac](this.type)?-e:bx;this.Y=q[ac](this.type)?-bv:bw;this.W=by;this.H=bt;if(q[ac](this.type)){bq.left!=(bz=-e*s+"px")&&(bq.left=bz);bq.top!=(bz=-bv*s+"px")&&(bq.top=bz)}else{if(this.type=="text"){bq.left!=(bz=-e+"px")&&(bq.left=bz);bq.top!=(bz=-bv+"px")&&(bq.top=bz)}else{d.width!=(bz=this.paper.width+"px")&&(d.width=bz);d.height!=(bz=this.paper.height+"px")&&(d.height=bz);bq.left!=(bz=bx-e+"px")&&(bq.left=bz);bq.top!=(bz=bw-bv+"px")&&(bq.top=bz);bq.width!=(bz=by+"px")&&(bq.width=bz);bq.height!=(bz=bt+"px")&&(bq.height=bz)}}};aM[bn].hide=function(){!this.removed&&(this.Group.style.display="none");return this};aM[bn].show=function(){!this.removed&&(this.Group.style.display="block");return this};aM[bn].getBBox=function(){if(this.removed){return this}if(q[ac](this.type)){return ae(this.attrs.path)}return{x:this.X+(this.bbx||0),y:this.Y,width:this.W,height:this.H}};aM[bn].remove=function(){if(this.removed){return}ax(this,this.paper);this.node.parentNode.removeChild(this.node);this.Group.parentNode.removeChild(this.Group);this.shape&&this.shape.parentNode.removeChild(this.shape);for(var d in this){delete this[d]}this.removed=true};aM[bn].attr=function(e,bq){if(this.removed){return this}if(e==null){var R={};for(var E in this.attrs){if(this.attrs[ac](E)){R[E]=this.attrs[E]}}this._.rt.deg&&(R.rotation=this.rotate());(this._.sx!=1||this._.sy!=1)&&(R.scale=this.scale());R.gradient&&R.fill=="none"&&(R.fill=R.gradient)&&delete R.gradient;return R}if(bq==null&&aB.is(e,ab)){if(e=="translation"){return y.call(this)}if(e=="rotation"){return this.rotate()}if(e=="scale"){return this.scale()}if(e==aT&&this.attrs.fill=="none"&&this.attrs.gradient){return this.attrs.gradient}return this.attrs[e]}if(this.attrs&&bq==null&&aB.is(e,aW)){var S,d={};for(E=0,S=e[p];E<S;E++){d[e[E]]=this.attr(e[E])}return d}var br;if(bq!=null){br={};br[e]=bq}bq==null&&aB.is(e,"object")&&(br=e);if(br){if(br.text&&this.type=="text"){this.node.string=br.text}aj(this,br);if(br.gradient&&(({circle:1,ellipse:1})[ac](this.type)||(br.gradient+aH).charAt()!="r")){b(this,br.gradient)}(!q[ac](this.type)||this._.rt.deg)&&this.setBox(this.attrs)}return this};aM[bn].toFront=function(){!this.removed&&this.Group.parentNode[a6](this.Group);this.paper.top!=this&&ah(this,this.paper);return this};aM[bn].toBack=function(){if(this.removed){return this}if(this.Group.parentNode.firstChild!=this.Group){this.Group.parentNode.insertBefore(this.Group,this.Group.parentNode.firstChild);n(this,this.paper)}return this};aM[bn].insertAfter=function(d){if(this.removed){return this}if(d.Group.nextSibling){d.Group.parentNode.insertBefore(this.Group,d.Group.nextSibling)}else{d.Group.parentNode[a6](this.Group)}H(this,d,this.paper);return this};aM[bn].insertBefore=function(d){if(this.removed){return this}d.Group.parentNode.insertBefore(this.Group,d.Group);aE(this,d,this.paper);return this};var bh=/ progid:\S+Blur\([^\)]+\)/g;aM[bn].blur=function(d){var e=this.node.style,i=e.filter;i=i.replace(bh,"");if(+d!==0){this.attrs.blur=d;e.filter=i+aU+".Blur(pixelradius="+(+d||1.5)+")";e.margin=Raphael.format("-{0}px 0 0 -{0}px",Math.round(+d||1.5))}else{e.filter=i;e.margin=0;delete this.attrs.blur}};aa=function(e,d,br,S){var R=ar("group"),bq=ar("oval"),i=bq.style;R.style.cssText="position:absolute;left:0;top:0;width:"+e.width+"px;height:"+e.height+"px";R.coordsize=aP;R.coordorigin=e.coordorigin;R[a6](bq);var E=new aM(bq,R,e);E.type="circle";aj(E,{stroke:"#000",fill:"none"});E.attrs.cx=d;E.attrs.cy=br;E.attrs.r=S;E.setBox({x:d-S,y:br-S,width:S*2,height:S*2});e.canvas[a6](R);return E};function am(d,R,e,i,E){if(E){return aB.format("M{0},{1}l{2},0a{3},{3},0,0,1,{3},{3}l0,{5}a{3},{3},0,0,1,{4},{3}l{6},0a{3},{3},0,0,1,{4},{4}l0,{7}a{3},{3},0,0,1,{3},{4}z",d+E,R,e-E*2,E,-E,i-E*2,E*2-e,E*2-i)}else{return aB.format("M{0},{1}l{2},0,0,{3},{4},0z",d,R,e,i,-e)}}aZ=function(e,bq,R,br,i,d){var bs=am(bq,R,br,i,d),E=e.path(bs),S=E.attrs;E.X=S.x=bq;E.Y=S.y=R;E.W=S.width=br;E.H=S.height=i;S.r=d;S.path=bs;E.type="rect";return E};at=function(d,bs,br,i,e){var R=ar("group"),E=ar("oval"),bq=E.style;R.style.cssText="position:absolute;left:0;top:0;width:"+d.width+"px;height:"+d.height+"px";R.coordsize=aP;R.coordorigin=d.coordorigin;R[a6](E);var S=new aM(E,R,d);S.type="ellipse";aj(S,{stroke:"#000"});S.attrs.cx=bs;S.attrs.cy=br;S.attrs.rx=i;S.attrs.ry=e;S.setBox({x:bs-i,y:br-e,width:i*2,height:e*2});d.canvas[a6](R);return S};t=function(e,d,bs,br,bt,E){var R=ar("group"),i=ar("image"),bq=i.style;R.style.cssText="position:absolute;left:0;top:0;width:"+e.width+"px;height:"+e.height+"px";R.coordsize=aP;R.coordorigin=e.coordorigin;i.src=d;R[a6](i);var S=new aM(i,R,e);S.type="image";S.attrs.src=d;S.attrs.x=bs;S.attrs.y=br;S.attrs.w=bt;S.attrs.h=E;S.setBox({x:bs,y:br,width:bt,height:E});e.canvas[a6](R);return S};ag=function(e,bs,br,bt){var R=ar("group"),E=ar("shape"),bq=E.style,bu=ar("path"),d=bu.style,i=ar("textpath");R.style.cssText="position:absolute;left:0;top:0;width:"+e.width+"px;height:"+e.height+"px";R.coordsize=aP;R.coordorigin=e.coordorigin;bu.v=aB.format("m{0},{1}l{2},{1}",Z(bs*10),Z(br*10),Z(bs*10)+1);bu.textpathok=true;bq.width=e.width;bq.height=e.height;i.string=bt+aH;i.on=true;E[a6](i);E[a6](bu);R[a6](E);var S=new aM(i,R,e);S.shape=E;S.textpath=bu;S.type="text";S.attrs.text=bt;S.attrs.x=bs;S.attrs.y=br;S.attrs.w=1;S.attrs.h=1;aj(S,{font:m.font,stroke:"none",fill:"#000"});S.setBox();e.canvas[a6](R);return S};bk=function(i,d){var e=this.canvas.style;i==+i&&(i+="px");d==+d&&(d+="px");e.width=i;e.height=d;e.clip="rect(0 "+i+" "+d+" 0)";return this};var ar;W.createStyleSheet().addRule(".rvml","behavior:url(#default#VML)");try{!W.namespaces.rvml&&W.namespaces.add("rvml","urn:schemas-microsoft-com:vml");ar=function(d){return W.createElement("<rvml:"+d+' class="rvml">')
}}catch(ap){ar=function(d){return W.createElement("<"+d+' xmlns="urn:schemas-microsoft.com:vml" class="rvml">')}}C=function(){var i=aC[bl](0,arguments),d=i.container,bs=i.height,bt,e=i.width,br=i.x,bq=i.y;if(!d){throw new Error("VML container not found.")}var R=new bi,S=R.canvas=W.createElement("div"),E=S.style;br=br||0;bq=bq||0;e=e||512;bs=bs||342;e==+e&&(e+="px");bs==+bs&&(bs+="px");R.width=1000;R.height=1000;R.coordsize=s*1000+aA+s*1000;R.coordorigin="0 0";R.span=W.createElement("span");R.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;display:inline;";S[a6](R.span);E.cssText=aB.format("width:{0};height:{1};display:inline-block;position:relative;clip:rect(0 {0} {1} 0);overflow:hidden",e,bs);if(d==1){W.body[a6](S);E.left=br+"px";E.top=bq+"px";E.position="absolute"}else{if(d.firstChild){d.insertBefore(S,d.firstChild)}else{d[a6](S)}}a1.call(R,R,aB.fn);return R};bi[bn].clear=function(){this.canvas.innerHTML=aH;this.span=W.createElement("span");this.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;display:inline;";this.canvas[a6](this.span);this.bottom=this.top=null};bi[bn].remove=function(){this.canvas.parentNode.removeChild(this.canvas);for(var d in this){this[d]=x(d)}return true}}if((/^Apple|^Google/).test(aI.navigator.vendor)&&(!(aI.navigator.userAgent.indexOf("Version/4.0")+1)||aI.navigator.platform.slice(0,2)=="iP")){bi[bn].safari=function(){var d=this.rect(-99,-99,this.width+99,this.height+99);aI.setTimeout(function(){d.remove()})}}else{bi[bn].safari=function(){}}var L=function(){this.returnValue=false},bf=function(){return this.originalEvent.preventDefault()},aS=function(){this.cancelBubble=true},aw=function(){return this.originalEvent.stopPropagation()},ao=(function(){if(W.addEventListener){return function(S,E,i,e){var d=Q&&bb[E]?bb[E]:E;var R=function(bt){if(Q&&bb[ac](E)){for(var br=0,bs=bt.targetTouches&&bt.targetTouches.length;br<bs;br++){if(bt.targetTouches[br].target==S){var bq=bt;bt=bt.targetTouches[br];bt.originalEvent=bq;bt.preventDefault=bf;bt.stopPropagation=aw;break}}}return i.call(e,bt)};S.addEventListener(d,R,false);return function(){S.removeEventListener(d,R,false);return true}}}else{if(W.attachEvent){return function(S,E,i,e){var R=function(bq){bq=bq||aI.event;bq.preventDefault=bq.preventDefault||L;bq.stopPropagation=bq.stopPropagation||aS;return i.call(e,bq)};S.attachEvent("on"+E,R);var d=function(){S.detachEvent("on"+E,R);return true};return d}}}})();for(var al=N[p];al--;){(function(d){aB[d]=aM[bn][d]=function(e){if(aB.is(e,"function")){this.events=this.events||[];this.events.push({name:d,f:e,unbind:ao(this.shape||this.node||W,d,e,this)})}return this};aB["un"+d]=aM[bn]["un"+d]=function(E){var i=this.events,e=i[p];while(e--){if(i[e].name==d&&i[e].f==E){i[e].unbind();i.splice(e,1);!i.length&&delete this.events;return this}}return this}})(N[al])}aM[bn].hover=function(e,d){return this.mouseover(e).mouseout(d)};aM[bn].unhover=function(e,d){return this.unmouseover(e).unmouseout(d)};aM[bn].drag=function(i,S,R){this._drag={};var E=this.mousedown(function(bq){(bq.originalEvent?bq.originalEvent:bq).preventDefault();this._drag.x=bq.clientX;this._drag.y=bq.clientY;this._drag.id=bq.identifier;S&&S.call(this,bq.clientX,bq.clientY);Raphael.mousemove(e).mouseup(d)}),e=function(bs){var bq=bs.clientX,bu=bs.clientY;if(Q){var br=bs.touches.length,bt;while(br--){bt=bs.touches[br];if(bt.identifier==E._drag.id){bq=bt.clientX;bu=bt.clientY;(bs.originalEvent?bs.originalEvent:bs).preventDefault();break}}}else{bs.preventDefault()}i&&i.call(E,bq-E._drag.x,bu-E._drag.y,bq,bu)},d=function(){E._drag={};Raphael.unmousemove(e).unmouseup(d);R&&R.call(E)};return this};bi[bn].circle=function(d,i,e){return aa(this,d||0,i||0,e||0)};bi[bn].rect=function(d,R,e,i,E){return aZ(this,d||0,R||0,e||0,i||0,E||0)};bi[bn].ellipse=function(d,E,i,e){return at(this,d||0,E||0,i||0,e||0)};bi[bn].path=function(d){d&&!aB.is(d,ab)&&!aB.is(d[0],aW)&&(d+=aH);return v(aB.format[bl](aB,arguments),this)};bi[bn].image=function(E,d,R,e,i){return t(this,E||"about:blank",d||0,R||0,e||0,i||0)};bi[bn].text=function(d,i,e){return ag(this,d||0,i||0,e||aH)};bi[bn].set=function(d){arguments[p]>1&&(d=Array[bn].splice.call(arguments,0,arguments[p]));return new ad(d)};bi[bn].setSize=bk;bi[bn].top=bi[bn].bottom=null;bi[bn].raphael=aB;function A(){return this.x+aA+this.y}aM[bn].resetScale=function(){if(this.removed){return this}this._.sx=1;this._.sy=1;this.attrs.scale="1 1"};aM[bn].scale=function(bw,bv,E,e){if(this.removed){return this}if(bw==null&&bv==null){return{x:this._.sx,y:this._.sy,toString:A}}bv=bv||bw;!+bv&&(bv=bw);var bA,by,bz,bx,bM=this.attrs;if(bw!=0){var bu=this.getBBox(),br=bu.x+bu.width/2,R=bu.y+bu.height/2,bL=bw/this._.sx,bK=bv/this._.sy;E=(+E||E==0)?E:br;e=(+e||e==0)?e:R;var bt=~~(bw/ak.abs(bw)),bq=~~(bv/ak.abs(bv)),bD=this.node.style,bO=E+(br-E)*bL,bN=e+(R-e)*bK;switch(this.type){case"rect":case"image":var bs=bM.width*bt*bL,bC=bM.height*bq*bK;this.attr({height:bC,r:bM.r*a4(bt*bL,bq*bK),width:bs,x:bO-bs/2,y:bN-bC/2});break;case"circle":case"ellipse":this.attr({rx:bM.rx*bt*bL,ry:bM.ry*bq*bK,r:bM.r*a4(bt*bL,bq*bK),cx:bO,cy:bN});break;case"text":this.attr({x:bO,y:bN});break;case"path":var bF=an(bM.path),bG=true;for(var bI=0,bB=bF[p];bI<bB;bI++){var bE=bF[bI],S=a9.call(bE[0]);if(S=="M"&&bG){continue}else{bG=false}if(S=="A"){bE[bF[bI][p]-2]*=bL;bE[bF[bI][p]-1]*=bK;bE[1]*=bt*bL;bE[2]*=bq*bK;bE[5]=+!(bt+bq?!+bE[5]:+bE[5])}else{if(S=="H"){for(var bH=1,bJ=bE[p];bH<bJ;bH++){bE[bH]*=bL}}else{if(S=="V"){for(bH=1,bJ=bE[p];bH<bJ;bH++){bE[bH]*=bK}}else{for(bH=1,bJ=bE[p];bH<bJ;bH++){bE[bH]*=(bH%2)?bL:bK}}}}}var d=ae(bF);bA=bO-d.x-d.width/2;by=bN-d.y-d.height/2;bF[0][1]+=bA;bF[0][2]+=by;this.attr({path:bF});break}if(this.type in {text:1,image:1}&&(bt!=1||bq!=1)){if(this.transformations){this.transformations[2]="scale("[bg](bt,",",bq,")");this.node[B]("transform",this.transformations[aO](aA));bA=(bt==-1)?-bM.x-(bs||0):bM.x;by=(bq==-1)?-bM.y-(bC||0):bM.y;this.attr({x:bA,y:by});bM.fx=bt-1;bM.fy=bq-1}else{this.node.filterMatrix=aU+".Matrix(M11="[bg](bt,", M12=0, M21=0, M22=",bq,", Dx=0, Dy=0, sizingmethod='auto expand', filtertype='bilinear')");bD.filter=(this.node.filterMatrix||aH)+(this.node.filterOpacity||aH)}}else{if(this.transformations){this.transformations[2]=aH;this.node[B]("transform",this.transformations[aO](aA));bM.fx=0;bM.fy=0}else{this.node.filterMatrix=aH;bD.filter=(this.node.filterMatrix||aH)+(this.node.filterOpacity||aH)}}bM.scale=[bw,bv,E,e][aO](aA);this._.sx=bw;this._.sy=bv}return this};aM[bn].clone=function(){if(this.removed){return null}var d=this.attr();delete d.scale;delete d.translation;return this.paper[this.type]().attr(d)};var g=au(function(E,d,br,bq,bx,bw,bv,bu,R){var bt=0,S;for(var bs=0;bs<1.001;bs+=0.001){var e=aB.findDotsAtSegment(E,d,br,bq,bx,bw,bv,bu,bs);bs&&(bt+=a7(a7(S.x-e.x,2)+a7(S.y-e.y,2),0.5));if(bt>=R){return e}S=e}}),aR=function(d,e){return function(bz,S,bq){bz=P(bz);var bv,bu,E,br,R="",by={},bw,bt=0;
for(var bs=0,bx=bz.length;bs<bx;bs++){E=bz[bs];if(E[0]=="M"){bv=+E[1];bu=+E[2]}else{br=r(bv,bu,E[1],E[2],E[3],E[4],E[5],E[6]);if(bt+br>S){if(e&&!by.start){bw=g(bv,bu,E[1],E[2],E[3],E[4],E[5],E[6],S-bt);R+=["C",bw.start.x,bw.start.y,bw.m.x,bw.m.y,bw.x,bw.y];if(bq){return R}by.start=R;R=["M",bw.x,bw.y+"C",bw.n.x,bw.n.y,bw.end.x,bw.end.y,E[5],E[6]][aO]();bt+=br;bv=+E[5];bu=+E[6];continue}if(!d&&!e){bw=g(bv,bu,E[1],E[2],E[3],E[4],E[5],E[6],S-bt);return{x:bw.x,y:bw.y,alpha:bw.alpha}}}bt+=br;bv=+E[5];bu=+E[6]}R+=E}by.end=R;bw=d?bt:e?by:aB.findDotsAtSegment(bv,bu,E[1],E[2],E[3],E[4],E[5],E[6],1);bw.alpha&&(bw={x:bw.x,y:bw.y,alpha:bw.alpha});return bw}},r=au(function(E,d,bq,S,bw,bv,bu,bt){var R={x:0,y:0},bs=0;for(var br=0;br<1.01;br+=0.01){var e=Y(E,d,bq,S,bw,bv,bu,bt,br);br&&(bs+=a7(a7(R.x-e.x,2)+a7(R.y-e.y,2),0.5));R=e}return bs});var aD=aR(1),J=aR(),U=aR(0,1);aM[bn].getTotalLength=function(){if(this.type!="path"){return}if(this.node.getTotalLength){return this.node.getTotalLength()}return aD(this.attrs.path)};aM[bn].getPointAtLength=function(d){if(this.type!="path"){return}return J(this.attrs.path,d)};aM[bn].getSubpath=function(i,e){if(this.type!="path"){return}if(ak.abs(this.getTotalLength()-e)<0.000001){return U(this.attrs.path,i).end}var d=U(this.attrs.path,e,1);return i?U(d,i).end:d};aB.easing_formulas={linear:function(d){return d},"<":function(d){return a7(d,3)},">":function(d){return a7(d-1,3)+1},"<>":function(d){d=d*2;if(d<1){return a7(d,3)/2}d-=2;return(a7(d,3)+2)/2},backIn:function(e){var d=1.70158;return e*e*((d+1)*e-d)},backOut:function(e){e=e-1;var d=1.70158;return e*e*((d+1)*e+d)+1},elastic:function(i){if(i==0||i==1){return i}var e=0.3,d=e/4;return a7(2,-10*i)*ak.sin((i-d)*(2*ak.PI)/e)+1},bounce:function(E){var e=7.5625,i=2.75,d;if(E<(1/i)){d=e*E*E}else{if(E<(2/i)){E-=(1.5/i);d=e*E*E+0.75}else{if(E<(2.5/i)){E-=(2.25/i);d=e*E*E+0.9375}else{E-=(2.625/i);d=e*E*E+0.984375}}}return d}};var T={length:0},be=function(){var bs=+new Date;for(var bE in T){if(bE!="length"&&T[ac](bE)){var bJ=T[bE];if(bJ.stop||bJ.el.removed){delete T[bE];T[p]--;continue}var bq=bs-bJ.start,bB=bJ.ms,bA=bJ.easing,bF=bJ.from,bx=bJ.diff,E=bJ.to,bw=bJ.t,bz=bJ.prev||0,br=bJ.el,R=bJ.callback,by={},d;if(bq<bB){var S=aB.easing_formulas[bA]?aB.easing_formulas[bA](bq/bB):bq/bB;for(var bC in bF){if(bF[ac](bC)){switch(ai[bC]){case"along":d=S*bB*bx[bC];E.back&&(d=E.len-d);var bD=J(E[bC],d);br.translate(bx.sx-bx.x||0,bx.sy-bx.y||0);bx.x=bD.x;bx.y=bD.y;br.translate(bD.x-bx.sx,bD.y-bx.sy);E.rot&&br.rotate(bx.r+bD.alpha,bD.x,bD.y);break;case ay:d=+bF[bC]+S*bB*bx[bC];break;case"colour":d="rgb("+[I(Z(bF[bC].r+S*bB*bx[bC].r)),I(Z(bF[bC].g+S*bB*bx[bC].g)),I(Z(bF[bC].b+S*bB*bx[bC].b))][aO](",")+")";break;case"path":d=[];for(var bH=0,bv=bF[bC][p];bH<bv;bH++){d[bH]=[bF[bC][bH][0]];for(var bG=1,bI=bF[bC][bH][p];bG<bI;bG++){d[bH][bG]=+bF[bC][bH][bG]+S*bB*bx[bC][bH][bG]}d[bH]=d[bH][aO](aA)}d=d[aO](aA);break;case"csv":switch(bC){case"translation":var bu=bx[bC][0]*(bq-bz),bt=bx[bC][1]*(bq-bz);bw.x+=bu;bw.y+=bt;d=bu+aA+bt;break;case"rotation":d=+bF[bC][0]+S*bB*bx[bC][0];bF[bC][1]&&(d+=","+bF[bC][1]+","+bF[bC][2]);break;case"scale":d=[+bF[bC][0]+S*bB*bx[bC][0],+bF[bC][1]+S*bB*bx[bC][1],(2 in E[bC]?E[bC][2]:aH),(3 in E[bC]?E[bC][3]:aH)][aO](aA);break;case"clip-rect":d=[];bH=4;while(bH--){d[bH]=+bF[bC][bH]+S*bB*bx[bC][bH]}break}break}by[bC]=d}}br.attr(by);br._run&&br._run.call(br)}else{if(E.along){bD=J(E.along,E.len*!E.back);br.translate(bx.sx-(bx.x||0)+bD.x-bx.sx,bx.sy-(bx.y||0)+bD.y-bx.sy);E.rot&&br.rotate(bx.r+bD.alpha,bD.x,bD.y)}(bw.x||bw.y)&&br.translate(-bw.x,-bw.y);E.scale&&(E.scale+=aH);br.attr(E);delete T[bE];T[p]--;br.in_animation=null;aB.is(R,"function")&&R.call(br)}bJ.prev=bq}}aB.svg&&br&&br.paper&&br.paper.safari();T[p]&&aI.setTimeout(be)},I=function(d){return h(a4(d,255),0)},y=function(d,i){if(d==null){return{x:this._.tx,y:this._.ty,toString:A}}this._.tx+=+d;this._.ty+=+i;switch(this.type){case"circle":case"ellipse":this.attr({cx:+d+this.attrs.cx,cy:+i+this.attrs.cy});break;case"rect":case"image":case"text":this.attr({x:+d+this.attrs.x,y:+i+this.attrs.y});break;case"path":var e=an(this.attrs.path);e[0][1]+=+d;e[0][2]+=+i;this.attr({path:e});break}return this};aM[bn].animateWith=function(e,i,d,R,E){T[e.id]&&(i.start=T[e.id].start);return this.animate(i,d,R,E)};aM[bn].animateAlong=aN();aM[bn].animateAlongBack=aN(1);function aN(d){return function(E,i,e,S){var R={back:d};aB.is(e,"function")?(S=e):(R.rot=e);E&&E.constructor==aM&&(E=E.attrs.path);E&&(R.along=E);return this.animate(R,i,S)}}aM[bn].onAnimation=function(d){this._run=d||0;return this};aM[bn].animate=function(bE,bv,bu,E){if(aB.is(bu,"function")||!bu){E=bu||null}var bz={},e={},bs={};for(var bw in bE){if(bE[ac](bw)){if(ai[ac](bw)){bz[bw]=this.attr(bw);(bz[bw]==null)&&(bz[bw]=m[bw]);e[bw]=bE[bw];switch(ai[bw]){case"along":var bC=aD(bE[bw]),bx=J(bE[bw],bC*!!bE.back),R=this.getBBox();bs[bw]=bC/bv;bs.tx=R.x;bs.ty=R.y;bs.sx=bx.x;bs.sy=bx.y;e.rot=bE.rot;e.back=bE.back;e.len=bC;bE.rot&&(bs.r=af(this.rotate())||0);break;case ay:bs[bw]=(e[bw]-bz[bw])/bv;break;case"colour":bz[bw]=aB.getRGB(bz[bw]);var by=aB.getRGB(e[bw]);bs[bw]={r:(by.r-bz[bw].r)/bv,g:(by.g-bz[bw].g)/bv,b:(by.b-bz[bw].b)/bv};break;case"path":var S=P(bz[bw],e[bw]);bz[bw]=S[0];var bt=S[1];bs[bw]=[];for(var bB=0,br=bz[bw][p];bB<br;bB++){bs[bw][bB]=[0];for(var bA=1,bD=bz[bw][bB][p];bA<bD;bA++){bs[bw][bB][bA]=(bt[bB][bA]-bz[bw][bB][bA])/bv}}break;case"csv":var d=(bE[bw]+aH)[G](a),bq=(bz[bw]+aH)[G](a);switch(bw){case"translation":bz[bw]=[0,0];bs[bw]=[d[0]/bv,d[1]/bv];break;case"rotation":bz[bw]=(bq[1]==d[1]&&bq[2]==d[2])?bq:[0,d[1],d[2]];bs[bw]=[(d[0]-bz[bw][0])/bv,0,0];break;case"scale":bE[bw]=d;bz[bw]=(bz[bw]+aH)[G](a);bs[bw]=[(d[0]-bz[bw][0])/bv,(d[1]-bz[bw][1])/bv,0,0];break;case"clip-rect":bz[bw]=(bz[bw]+aH)[G](a);bs[bw]=[];bB=4;while(bB--){bs[bw][bB]=(d[bB]-bz[bw][bB])/bv}break}e[bw]=d}}}}this.stop();this.in_animation=1;T[this.id]={start:bE.start||+new Date,ms:bv,easing:bu,from:bz,diff:bs,to:e,el:this,callback:E,t:{x:0,y:0}};++T[p]==1&&be();return this};aM[bn].stop=function(){T[this.id]&&T[p]--;delete T[this.id];return this};aM[bn].translate=function(d,e){return this.attr({translation:d+" "+e})};aM[bn][aQ]=function(){return"Rapha\xebl\u2019s object"};aB.ae=T;var ad=function(d){this.items=[];this[p]=0;this.type="set";if(d){for(var e=0,E=d[p];e<E;e++){if(d[e]&&(d[e].constructor==aM||d[e].constructor==ad)){this[this.items[p]]=this.items[this.items[p]]=d[e];this[p]++}}}};ad[bn][f]=function(){var R,d;for(var e=0,E=arguments[p];e<E;e++){R=arguments[e];if(R&&(R.constructor==aM||R.constructor==ad)){d=this.items[p];this[d]=this.items[d]=R;this[p]++}}return this};ad[bn].pop=function(){delete this[this[p]--];return this.items.pop()};for(var F in aM[bn]){if(aM[bn][ac](F)){ad[bn][F]=(function(d){return function(){for(var e=0,E=this.items[p];e<E;e++){this.items[e][d][bl](this.items[e],arguments)}return this}})(F)}}ad[bn].attr=function(e,bq){if(e&&aB.is(e,aW)&&aB.is(e[0],"object")){for(var d=0,S=e[p];d<S;d++){this.items[d].attr(e[d])
}}else{for(var E=0,R=this.items[p];E<R;E++){this.items[E].attr(e,bq)}}return this};ad[bn].animate=function(e,d,bq,bs){(aB.is(bq,"function")||!bq)&&(bs=bq||null);var S=this.items[p],E=S,bt,br=this,R;bs&&(R=function(){!--S&&bs.call(br)});bq=aB.is(bq,ab)?bq:R;bt=this.items[--E].animate(e,d,bq,R);while(E--){this.items[E].animateWith(bt,e,d,bq,R)}return this};ad[bn].insertAfter=function(e){var d=this.items[p];while(d--){this.items[d].insertAfter(e)}return this};ad[bn].getBBox=function(){var d=[],bq=[],e=[],R=[];for(var E=this.items[p];E--;){var S=this.items[E].getBBox();d[f](S.x);bq[f](S.y);e[f](S.x+S.width);R[f](S.y+S.height)}d=a4[bl](0,d);bq=a4[bl](0,bq);return{x:d,y:bq,width:h[bl](0,e)-d,height:h[bl](0,R)-bq}};ad[bn].clone=function(E){E=new ad;for(var d=0,e=this.items[p];d<e;d++){E[f](this.items[d].clone())}return E};aB.registerFont=function(e){if(!e.face){return e}this.fonts=this.fonts||{};var E={w:e.w,face:{},glyphs:{}},i=e.face["font-family"];for(var bq in e.face){if(e.face[ac](bq)){E.face[bq]=e.face[bq]}}if(this.fonts[i]){this.fonts[i][f](E)}else{this.fonts[i]=[E]}if(!e.svg){E.face["units-per-em"]=O(e.face["units-per-em"],10);for(var R in e.glyphs){if(e.glyphs[ac](R)){var S=e.glyphs[R];E.glyphs[R]={w:S.w,k:{},d:S.d&&"M"+S.d[bc](/[mlcxtrv]/g,function(br){return{l:"L",c:"C",x:"z",t:"m",r:"l",v:"c"}[br]||"M"})+"z"};if(S.k){for(var d in S.k){if(S[ac](d)){E.glyphs[R].k[d]=S.k[d]}}}}}}return e};bi[bn].getFont=function(bs,bt,e,R){R=R||"normal";e=e||"normal";bt=+bt||{normal:400,bold:700,lighter:300,bolder:800}[bt]||400;if(!aB.fonts){return}var S=aB.fonts[bs];if(!S){var E=new RegExp("(^|\\s)"+bs[bc](/[^\w\d\s+!~.:_-]/g,aH)+"(\\s|$)","i");for(var d in aB.fonts){if(aB.fonts[ac](d)){if(E.test(d)){S=aB.fonts[d];break}}}}var bq;if(S){for(var br=0,bu=S[p];br<bu;br++){bq=S[br];if(bq.face["font-weight"]==bt&&(bq.face["font-style"]==e||!bq.face["font-style"])&&bq.face["font-stretch"]==R){break}}}return bq};bi[bn].print=function(R,E,d,br,bs,bB){bB=bB||"middle";var bx=this.set(),bA=(d+aH)[G](aH),by=0,bu=aH,bC;aB.is(br,d)&&(br=this.getFont(br));if(br){bC=(bs||16)/br.face["units-per-em"];var e=br.face.bbox.split(a),bq=+e[0],bt=+e[1]+(bB=="baseline"?e[3]-e[1]+(+br.face.descent):(e[3]-e[1])/2);for(var bw=0,S=bA[p];bw<S;bw++){var bv=bw&&br.glyphs[bA[bw-1]]||{},bz=br.glyphs[bA[bw]];by+=bw?(bv.w||br.w)+(bv.k&&bv.k[bA[bw]]||0):0;bz&&bz.d&&bx[f](this.path(bz.d).attr({fill:"#000",stroke:"none",translation:[by,0]}))}bx.scale(bC,bC,bq,bt).translate(R-bq,E-bt)}return bx};var a8=/\{(\d+)\}/g;aB.format=function(e,i){var d=aB.is(i,aW)?[0][bg](i):arguments;e&&aB.is(e,ab)&&d[p]-1&&(e=e[bc](a8,function(R,E){return d[++E]==null?aH:d[E]}));return e||aH};aB.ninja=function(){o.was?(Raphael=o.is):delete Raphael;return aB};aB.el=aM[bn];return aB})();if(document.Prototype===undefined){Object.clone=function(c){var a={};for(var b in c){a[b]=c[b]}return a};Object.keys=function(a){var b=[];for(var c in a){if(a.hasOwnProperty(c)){b.push(c)}}return b};Array.prototype.clone=function(c){var a=[];for(var b=0;b<c.length;b++){a.push(c[b])}return a};String.prototype.gsub=function(b,a){return this.split(b).join(a)};String.prototype.strip=function(){return this.replace(/^\s+/,"").replace(/\s+$/,"")};String.prototype.startsWith=function(a){return this.indexOf(a)===0};String.prototype.endsWith=function(a){var b=this.length-a.length;return b>=0&&this.lastIndexOf(a)===b};Array.prototype.each=function(c,b){for(var a=0,d=this.length;a<d;a++){c.apply(b,[this[a],a])}};Array.prototype.last=function(){if(this.length===0){return null}return this[this.length-1]};Array.prototype.compact=function(){var a=[];for(var b=0;b<this.length;b++){if(this[b]){a.push(this[b])}}return a};Array.prototype.detect=function(b){for(var a=0;a<this.length;a++){if(b(this[a])){return true}}return false}}function str_repeat(b,a){for(var c=[];a>0;c[--a]=b){}return(c.join(""))}function sprintf(){var g=0,e,h=arguments[g++],l=[],d,k,n,b;while(h){if(d=/^[^\x25]+/.exec(h)){l.push(d[0])}else{if(d=/^\x25{2}/.exec(h)){l.push("%")}else{if(d=/^\x25(?:(\d+)\$)?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-fosuxX])/.exec(h)){if(((e=arguments[d[1]||g++])==null)||(e==undefined)){throw ("Too few arguments.")}if(/[^s]/.test(d[7])&&(typeof(e)!="number")){throw ("Expecting number but found "+typeof(e))}switch(d[7]){case"b":e=e.toString(2);break;case"c":e=String.fromCharCode(e);break;case"d":e=parseInt(e);break;case"e":e=d[6]?e.toExponential(d[6]):e.toExponential();break;case"f":e=d[6]?parseFloat(e).toFixed(d[6]):parseFloat(e);break;case"o":e=e.toString(8);break;case"s":e=((e=String(e))&&d[6]?e.substring(0,d[6]):e);break;case"u":e=Math.abs(e);break;case"x":e=e.toString(16);break;case"X":e=e.toString(16).toUpperCase();break}e=(/[def]/.test(d[7])&&d[2]&&e>0?"+"+e:e);n=d[3]?d[3]=="0"?"0":d[3].charAt(1):" ";b=d[5]-String(e).length;k=d[5]?str_repeat(n,b):"";l.push(d[4]?e+k:k+e)}else{throw ("Huh ?!")}}}h=h.substring(d[0].length)}return l.join("")}var ABCGlyphs=function(){var a={"rests.whole":{d:[["M",0.06,0.03],["l",0.09,-0.06],["l",5.46,0],["l",5.49,0],["l",0.09,0.06],["l",0.06,0.09],["l",0,2.19],["l",0,2.19],["l",-0.06,0.09],["l",-0.09,0.06],["l",-5.49,0],["l",-5.46,0],["l",-0.09,-0.06],["l",-0.06,-0.09],["l",0,-2.19],["l",0,-2.19],["z"]],w:11.25,h:4.68},"rests.half":{d:[["M",0.06,-4.62],["l",0.09,-0.06],["l",5.46,0],["l",5.49,0],["l",0.09,0.06],["l",0.06,0.09],["l",0,2.19],["l",0,2.19],["l",-0.06,0.09],["l",-0.09,0.06],["l",-5.49,0],["l",-5.46,0],["l",-0.09,-0.06],["l",-0.06,-0.09],["l",0,-2.19],["l",0,-2.19],["z"]],w:11.25,h:4.68},"rests.quarter":{d:[["M",1.89,-11.82],["c",0.12,-0.06,0.24,-0.06,0.36,-0.03],["c",0.09,0.06,4.74,5.58,4.86,5.82],["c",0.21,0.39,0.15,0.78,-0.15,1.26],["c",-0.24,0.33,-0.72,0.81,-1.62,1.56],["c",-0.45,0.36,-0.87,0.75,-0.96,0.84],["c",-0.93,0.99,-1.14,2.49,-0.6,3.63],["c",0.18,0.39,0.27,0.48,1.32,1.68],["c",1.92,2.25,1.83,2.16,1.83,2.34],["c",-0,0.18,-0.18,0.36,-0.36,0.39],["c",-0.15,-0,-0.27,-0.06,-0.48,-0.27],["c",-0.75,-0.75,-2.46,-1.29,-3.39,-1.08],["c",-0.45,0.09,-0.69,0.27,-0.9,0.69],["c",-0.12,0.3,-0.21,0.66,-0.24,1.14],["c",-0.03,0.66,0.09,1.35,0.3,2.01],["c",0.15,0.42,0.24,0.66,0.45,0.96],["c",0.18,0.24,0.18,0.33,0.03,0.42],["c",-0.12,0.06,-0.18,0.03,-0.45,-0.3],["c",-1.08,-1.38,-2.07,-3.36,-2.4,-4.83],["c",-0.27,-1.05,-0.15,-1.77,0.27,-2.07],["c",0.21,-0.12,0.42,-0.15,0.87,-0.15],["c",0.87,0.06,2.1,0.39,3.3,0.9],["l",0.39,0.18],["l",-1.65,-1.95],["c",-2.52,-2.97,-2.61,-3.09,-2.7,-3.27],["c",-0.09,-0.24,-0.12,-0.48,-0.03,-0.75],["c",0.15,-0.48,0.57,-0.96,1.83,-2.01],["c",0.45,-0.36,0.84,-0.72,0.93,-0.78],["c",0.69,-0.75,1.02,-1.8,0.9,-2.79],["c",-0.06,-0.33,-0.21,-0.84,-0.39,-1.11],["c",-0.09,-0.15,-0.45,-0.6,-0.81,-1.05],["c",-0.36,-0.42,-0.69,-0.81,-0.72,-0.87],["c",-0.09,-0.18,-0,-0.42,0.21,-0.51],["z"]],w:7.888,h:21.435},"rests.8th":{d:[["M",1.68,-6.12],["c",0.66,-0.09,1.23,0.09,1.68,0.51],["c",0.27,0.3,0.39,0.54,0.57,1.26],["c",0.09,0.33,0.18,0.66,0.21,0.72],["c",0.12,0.27,0.33,0.45,0.6,0.48],["c",0.12,0,0.18,0,0.33,-0.09],["c",0.39,-0.18,1.32,-1.29,1.68,-1.98],["c",0.09,-0.21,0.24,-0.3,0.39,-0.3],["c",0.12,0,0.27,0.09,0.33,0.18],["c",0.03,0.06,-0.27,1.11,-1.86,6.42],["c",-1.02,3.48,-1.89,6.39,-1.92,6.42],["c",0,0.03,-0.12,0.12,-0.24,0.15],["c",-0.18,0.09,-0.21,0.09,-0.45,0.09],["c",-0.24,0,-0.3,0,-0.48,-0.06],["c",-0.09,-0.06,-0.21,-0.12,-0.21,-0.15],["c",-0.06,-0.03,0.15,-0.57,1.68,-4.92],["c",0.96,-2.67,1.74,-4.89,1.71,-4.89],["l",-0.51,0.15],["c",-1.08,0.36,-1.74,0.48,-2.55,0.48],["c",-0.66,0,-0.84,-0.03,-1.32,-0.27],["c",-1.32,-0.63,-1.77,-2.16,-1.02,-3.3],["c",0.33,-0.45,0.84,-0.81,1.38,-0.9],["z"]],w:7.534,h:13.883},"rests.16th":{d:[["M",3.33,-6.12],["c",0.66,-0.09,1.23,0.09,1.68,0.51],["c",0.27,0.3,0.39,0.54,0.57,1.26],["c",0.09,0.33,0.18,0.66,0.21,0.72],["c",0.15,0.39,0.57,0.57,0.87,0.42],["c",0.39,-0.18,1.2,-1.23,1.62,-2.07],["c",0.06,-0.15,0.24,-0.24,0.36,-0.24],["c",0.12,0,0.27,0.09,0.33,0.18],["c",0.03,0.06,-0.45,1.86,-2.67,10.17],["c",-1.5,5.55,-2.73,10.14,-2.76,10.17],["c",-0.03,0.03,-0.12,0.12,-0.24,0.15],["c",-0.18,0.09,-0.21,0.09,-0.45,0.09],["c",-0.24,0,-0.3,0,-0.48,-0.06],["c",-0.09,-0.06,-0.21,-0.12,-0.21,-0.15],["c",-0.06,-0.03,0.12,-0.57,1.44,-4.92],["c",0.81,-2.67,1.47,-4.86,1.47,-4.89],["c",-0.03,0,-0.27,0.06,-0.54,0.15],["c",-1.08,0.36,-1.77,0.48,-2.58,0.48],["c",-0.66,0,-0.84,-0.03,-1.32,-0.27],["c",-1.32,-0.63,-1.77,-2.16,-1.02,-3.3],["c",0.72,-1.05,2.22,-1.23,3.06,-0.42],["c",0.3,0.33,0.42,0.6,0.6,1.38],["c",0.09,0.45,0.21,0.78,0.33,0.9],["c",0.09,0.09,0.27,0.18,0.45,0.21],["c",0.12,0,0.18,0,0.33,-0.09],["c",0.33,-0.15,1.02,-0.93,1.41,-1.59],["c",0.12,-0.21,0.18,-0.39,0.39,-1.08],["c",0.66,-2.1,1.17,-3.84,1.17,-3.87],["c",0,0,-0.21,0.06,-0.42,0.15],["c",-0.51,0.15,-1.2,0.33,-1.68,0.42],["c",-0.33,0.06,-0.51,0.06,-0.96,0.06],["c",-0.66,0,-0.84,-0.03,-1.32,-0.27],["c",-1.32,-0.63,-1.77,-2.16,-1.02,-3.3],["c",0.33,-0.45,0.84,-0.81,1.38,-0.9],["z"]],w:9.724,h:21.383},"rests.32nd":{d:[["M",4.23,-13.62],["c",0.66,-0.09,1.23,0.09,1.68,0.51],["c",0.27,0.3,0.39,0.54,0.57,1.26],["c",0.09,0.33,0.18,0.66,0.21,0.72],["c",0.12,0.27,0.33,0.45,0.6,0.48],["c",0.12,0,0.18,0,0.27,-0.06],["c",0.33,-0.21,0.99,-1.11,1.44,-1.98],["c",0.09,-0.24,0.21,-0.33,0.39,-0.33],["c",0.12,0,0.27,0.09,0.33,0.18],["c",0.03,0.06,-0.57,2.67,-3.21,13.89],["c",-1.8,7.62,-3.3,13.89,-3.3,13.92],["c",-0.03,0.06,-0.12,0.12,-0.24,0.18],["c",-0.21,0.09,-0.24,0.09,-0.48,0.09],["c",-0.24,-0,-0.3,-0,-0.48,-0.06],["c",-0.09,-0.06,-0.21,-0.12,-0.21,-0.15],["c",-0.06,-0.03,0.09,-0.57,1.23,-4.92],["c",0.69,-2.67,1.26,-4.86,1.29,-4.89],["c",0,-0.03,-0.12,-0.03,-0.48,0.12],["c",-1.17,0.39,-2.22,0.57,-3,0.54],["c",-0.42,-0.03,-0.75,-0.12,-1.11,-0.3],["c",-1.32,-0.63,-1.77,-2.16,-1.02,-3.3],["c",0.72,-1.05,2.22,-1.23,3.06,-0.42],["c",0.3,0.33,0.42,0.6,0.6,1.38],["c",0.09,0.45,0.21,0.78,0.33,0.9],["c",0.12,0.09,0.3,0.18,0.48,0.21],["c",0.12,-0,0.18,-0,0.3,-0.09],["c",0.42,-0.21,1.29,-1.29,1.56,-1.89],["c",0.03,-0.12,1.23,-4.59,1.23,-4.65],["c",0,-0.03,-0.18,0.03,-0.39,0.12],["c",-0.63,0.18,-1.2,0.36,-1.74,0.45],["c",-0.39,0.06,-0.54,0.06,-1.02,0.06],["c",-0.66,-0,-0.84,-0.03,-1.32,-0.27],["c",-1.32,-0.63,-1.77,-2.16,-1.02,-3.3],["c",0.72,-1.05,2.22,-1.23,3.06,-0.42],["c",0.3,0.33,0.42,0.6,0.6,1.38],["c",0.09,0.45,0.21,0.78,0.33,0.9],["c",0.18,0.18,0.51,0.27,0.72,0.15],["c",0.3,-0.12,0.69,-0.57,1.08,-1.17],["c",0.42,-0.6,0.39,-0.51,1.05,-3.03],["c",0.33,-1.26,0.6,-2.31,0.6,-2.34],["c",0,-0,-0.21,0.03,-0.45,0.12],["c",-0.57,0.18,-1.14,0.33,-1.62,0.42],["c",-0.33,0.06,-0.51,0.06,-0.96,0.06],["c",-0.66,-0,-0.84,-0.03,-1.32,-0.27],["c",-1.32,-0.63,-1.77,-2.16,-1.02,-3.3],["c",0.33,-0.45,0.84,-0.81,1.38,-0.9],["z"]],w:11.373,h:28.883},"rests.64th":{d:[["M",5.13,-13.62],["c",0.66,-0.09,1.23,0.09,1.68,0.51],["c",0.27,0.3,0.39,0.54,0.57,1.26],["c",0.15,0.63,0.21,0.81,0.33,0.96],["c",0.18,0.21,0.54,0.3,0.75,0.18],["c",0.24,-0.12,0.63,-0.66,1.08,-1.56],["c",0.33,-0.66,0.39,-0.72,0.6,-0.72],["c",0.12,0,0.27,0.09,0.33,0.18],["c",0.03,0.06,-0.69,3.66,-3.54,17.64],["c",-1.95,9.66,-3.57,17.61,-3.57,17.64],["c",-0.03,0.06,-0.12,0.12,-0.24,0.18],["c",-0.21,0.09,-0.24,0.09,-0.48,0.09],["c",-0.24,0,-0.3,0,-0.48,-0.06],["c",-0.09,-0.06,-0.21,-0.12,-0.21,-0.15],["c",-0.06,-0.03,0.06,-0.57,1.05,-4.95],["c",0.6,-2.7,1.08,-4.89,1.08,-4.92],["c",0,0,-0.24,0.06,-0.51,0.15],["c",-0.66,0.24,-1.2,0.36,-1.77,0.48],["c",-0.42,0.06,-0.57,0.06,-1.05,0.06],["c",-0.69,0,-0.87,-0.03,-1.35,-0.27],["c",-1.32,-0.63,-1.77,-2.16,-1.02,-3.3],["c",0.72,-1.05,2.22,-1.23,3.06,-0.42],["c",0.3,0.33,0.42,0.6,0.6,1.38],["c",0.09,0.45,0.21,0.78,0.33,0.9],["c",0.09,0.09,0.27,0.18,0.45,0.21],["c",0.21,0.03,0.39,-0.09,0.72,-0.42],["c",0.45,-0.45,1.02,-1.26,1.17,-1.65],["c",0.03,-0.09,0.27,-1.14,0.54,-2.34],["c",0.27,-1.2,0.48,-2.19,0.51,-2.22],["c",0,-0.03,-0.09,-0.03,-0.48,0.12],["c",-1.17,0.39,-2.22,0.57,-3,0.54],["c",-0.42,-0.03,-0.75,-0.12,-1.11,-0.3],["c",-1.32,-0.63,-1.77,-2.16,-1.02,-3.3],["c",0.36,-0.54,0.96,-0.87,1.65,-0.93],["c",0.54,-0.03,1.02,0.15,1.41,0.54],["c",0.27,0.3,0.39,0.54,0.57,1.26],["c",0.09,0.33,0.18,0.66,0.21,0.72],["c",0.15,0.39,0.57,0.57,0.9,0.42],["c",0.36,-0.18,1.2,-1.26,1.47,-1.89],["c",0.03,-0.09,0.3,-1.2,0.57,-2.43],["l",0.51,-2.28],["l",-0.54,0.18],["c",-1.11,0.36,-1.8,0.48,-2.61,0.48],["c",-0.66,0,-0.84,-0.03,-1.32,-0.27],["c",-1.32,-0.63,-1.77,-2.16,-1.02,-3.3],["c",0.36,-0.54,0.96,-0.87,1.65,-0.93],["c",0.54,-0.03,1.02,0.15,1.41,0.54],["c",0.27,0.3,0.39,0.54,0.57,1.26],["c",0.15,0.63,0.21,0.81,0.33,0.96],["c",0.21,0.21,0.54,0.3,0.75,0.18],["c",0.36,-0.18,0.93,-0.93,1.29,-1.68],["c",0.12,-0.24,0.18,-0.48,0.63,-2.55],["l",0.51,-2.31],["c",0,-0.03,-0.18,0.03,-0.39,0.12],["c",-1.14,0.36,-2.1,0.54,-2.82,0.51],["c",-0.42,-0.03,-0.75,-0.12,-1.11,-0.3],["c",-1.32,-0.63,-1.77,-2.16,-1.02,-3.3],["c",0.33,-0.45,0.84,-0.81,1.38,-0.9],["z"]],w:12.453,h:36.383},"rests.128th":{d:[["M",6.03,-21.12],["c",0.66,-0.09,1.23,0.09,1.68,0.51],["c",0.27,0.3,0.39,0.54,0.57,1.26],["c",0.09,0.33,0.18,0.66,0.21,0.72],["c",0.12,0.27,0.33,0.45,0.6,0.48],["c",0.21,0,0.33,-0.06,0.54,-0.36],["c",0.15,-0.21,0.54,-0.93,0.78,-1.47],["c",0.15,-0.33,0.18,-0.39,0.3,-0.48],["c",0.18,-0.09,0.45,0,0.51,0.15],["c",0.03,0.09,-7.11,42.75,-7.17,42.84],["c",-0.03,0.03,-0.15,0.09,-0.24,0.15],["c",-0.18,0.06,-0.24,0.06,-0.45,0.06],["c",-0.24,-0,-0.3,-0,-0.48,-0.06],["c",-0.09,-0.06,-0.21,-0.12,-0.21,-0.15],["c",-0.06,-0.03,0.03,-0.57,0.84,-4.98],["c",0.51,-2.7,0.93,-4.92,0.9,-4.92],["c",0,-0,-0.15,0.06,-0.36,0.12],["c",-0.78,0.27,-1.62,0.48,-2.31,0.57],["c",-0.15,0.03,-0.54,0.03,-0.81,0.03],["c",-0.66,-0,-0.84,-0.03,-1.32,-0.27],["c",-1.32,-0.63,-1.77,-2.16,-1.02,-3.3],["c",0.36,-0.54,0.96,-0.87,1.65,-0.93],["c",0.54,-0.03,1.02,0.15,1.41,0.54],["c",0.27,0.3,0.39,0.54,0.57,1.26],["c",0.09,0.33,0.18,0.66,0.21,0.72],["c",0.12,0.27,0.33,0.45,0.63,0.48],["c",0.12,-0,0.18,-0,0.3,-0.09],["c",0.42,-0.21,1.14,-1.11,1.5,-1.83],["c",0.12,-0.27,0.12,-0.27,0.54,-2.52],["c",0.24,-1.23,0.42,-2.25,0.39,-2.25],["c",0,-0,-0.24,0.06,-0.51,0.18],["c",-1.26,0.39,-2.25,0.57,-3.06,0.54],["c",-0.42,-0.03,-0.75,-0.12,-1.11,-0.3],["c",-1.32,-0.63,-1.77,-2.16,-1.02,-3.3],["c",0.36,-0.54,0.96,-0.87,1.65,-0.93],["c",0.54,-0.03,1.02,0.15,1.41,0.54],["c",0.27,0.3,0.39,0.54,0.57,1.26],["c",0.15,0.63,0.21,0.81,0.33,0.96],["c",0.18,0.21,0.51,0.3,0.75,0.18],["c",0.36,-0.15,1.05,-0.99,1.41,-1.77],["l",0.15,-0.3],["l",0.42,-2.25],["c",0.21,-1.26,0.42,-2.28,0.39,-2.28],["l",-0.51,0.15],["c",-1.11,0.39,-1.89,0.51,-2.7,0.51],["c",-0.66,-0,-0.84,-0.03,-1.32,-0.27],["c",-1.32,-0.63,-1.77,-2.16,-1.02,-3.3],["c",0.36,-0.54,0.96,-0.87,1.65,-0.93],["c",0.54,-0.03,1.02,0.15,1.41,0.54],["c",0.27,0.3,0.39,0.54,0.57,1.26],["c",0.15,0.63,0.21,0.81,0.33,0.96],["c",0.18,0.18,0.48,0.27,0.72,0.21],["c",0.33,-0.12,1.14,-1.26,1.41,-1.95],["c",0,-0.09,0.21,-1.11,0.45,-2.34],["c",0.21,-1.2,0.39,-2.22,0.39,-2.28],["c",0.03,-0.03,0,-0.03,-0.45,0.12],["c",-0.57,0.18,-1.2,0.33,-1.71,0.42],["c",-0.3,0.06,-0.51,0.06,-0.93,0.06],["c",-0.66,-0,-0.84,-0.03,-1.32,-0.27],["c",-1.32,-0.63,-1.77,-2.16,-1.02,-3.3],["c",0.36,-0.54,0.96,-0.87,1.65,-0.93],["c",0.54,-0.03,1.02,0.15,1.41,0.54],["c",0.27,0.3,0.39,0.54,0.57,1.26],["c",0.09,0.33,0.18,0.66,0.21,0.72],["c",0.12,0.27,0.33,0.45,0.6,0.48],["c",0.18,-0,0.36,-0.09,0.57,-0.33],["c",0.33,-0.36,0.78,-1.14,0.93,-1.56],["c",0.03,-0.12,0.24,-1.2,0.45,-2.4],["c",0.24,-1.2,0.42,-2.22,0.42,-2.28],["c",0.03,-0.03,0,-0.03,-0.39,0.09],["c",-1.05,0.36,-1.8,0.48,-2.58,0.48],["c",-0.63,-0,-0.84,-0.03,-1.29,-0.27],["c",-1.32,-0.63,-1.77,-2.16,-1.02,-3.3],["c",0.33,-0.45,0.84,-0.81,1.38,-0.9],["z"]],w:12.992,h:43.883},"accidentals.sharp":{d:[["M",5.73,-11.19],["c",0.21,-0.12,0.54,-0.03,0.66,0.24],["c",0.06,0.12,0.06,0.21,0.06,2.31],["c",0,1.23,0,2.22,0.03,2.22],["c",0,-0,0.27,-0.12,0.6,-0.24],["c",0.69,-0.27,0.78,-0.3,0.96,-0.15],["c",0.21,0.15,0.21,0.18,0.21,1.38],["c",0,1.02,0,1.11,-0.06,1.2],["c",-0.03,0.06,-0.09,0.12,-0.12,0.15],["c",-0.06,0.03,-0.42,0.21,-0.84,0.36],["l",-0.75,0.33],["l",-0.03,2.43],["c",0,1.32,0,2.43,0.03,2.43],["c",0,-0,0.27,-0.12,0.6,-0.24],["c",0.69,-0.27,0.78,-0.3,0.96,-0.15],["c",0.21,0.15,0.21,0.18,0.21,1.38],["c",0,1.02,0,1.11,-0.06,1.2],["c",-0.03,0.06,-0.09,0.12,-0.12,0.15],["c",-0.06,0.03,-0.42,0.21,-0.84,0.36],["l",-0.75,0.33],["l",-0.03,2.52],["c",0,2.28,-0.03,2.55,-0.06,2.64],["c",-0.21,0.36,-0.72,0.36,-0.93,-0],["c",-0.03,-0.09,-0.06,-0.33,-0.06,-2.43],["l",0,-2.31],["l",-1.29,0.51],["l",-1.26,0.51],["l",0,2.43],["c",0,2.58,0,2.52,-0.15,2.67],["c",-0.06,0.09,-0.27,0.18,-0.36,0.18],["c",-0.12,-0,-0.33,-0.09,-0.39,-0.18],["c",-0.15,-0.15,-0.15,-0.09,-0.15,-2.43],["c",0,-1.23,0,-2.22,-0.03,-2.22],["c",0,-0,-0.27,0.12,-0.6,0.24],["c",-0.69,0.27,-0.78,0.3,-0.96,0.15],["c",-0.21,-0.15,-0.21,-0.18,-0.21,-1.38],["c",0,-1.02,0,-1.11,0.06,-1.2],["c",0.03,-0.06,0.09,-0.12,0.12,-0.15],["c",0.06,-0.03,0.42,-0.21,0.84,-0.36],["l",0.78,-0.33],["l",0,-2.43],["c",0,-1.32,0,-2.43,-0.03,-2.43],["c",0,-0,-0.27,0.12,-0.6,0.24],["c",-0.69,0.27,-0.78,0.3,-0.96,0.15],["c",-0.21,-0.15,-0.21,-0.18,-0.21,-1.38],["c",0,-1.02,0,-1.11,0.06,-1.2],["c",0.03,-0.06,0.09,-0.12,0.12,-0.15],["c",0.06,-0.03,0.42,-0.21,0.84,-0.36],["l",0.78,-0.33],["l",0,-2.52],["c",0,-2.28,0.03,-2.55,0.06,-2.64],["c",0.21,-0.36,0.72,-0.36,0.93,0],["c",0.03,0.09,0.06,0.33,0.06,2.43],["l",0.03,2.31],["l",1.26,-0.51],["l",1.26,-0.51],["l",0,-2.43],["c",0,-2.28,0,-2.43,0.06,-2.55],["c",0.06,-0.12,0.12,-0.18,0.27,-0.24],["z"],["m",-0.33,10.65],["l",0,-2.43],["l",-1.29,0.51],["l",-1.26,0.51],["l",0,2.46],["l",0,2.43],["l",0.09,-0.03],["c",0.06,-0.03,0.63,-0.27,1.29,-0.51],["l",1.17,-0.48],["l",0,-2.46],["z"]],w:8.25,h:22.462},"accidentals.halfsharp":{d:[["M",2.43,-10.05],["c",0.21,-0.12,0.54,-0.03,0.66,0.24],["c",0.06,0.12,0.06,0.21,0.06,2.01],["c",0,1.05,0,1.89,0.03,1.89],["l",0.72,-0.48],["c",0.69,-0.48,0.69,-0.51,0.87,-0.51],["c",0.15,0,0.18,0.03,0.27,0.09],["c",0.21,0.15,0.21,0.18,0.21,1.41],["c",0,1.11,-0.03,1.14,-0.09,1.23],["c",-0.03,0.03,-0.48,0.39,-1.02,0.75],["l",-0.99,0.66],["l",0,2.37],["c",0,1.32,0,2.37,0.03,2.37],["l",0.72,-0.48],["c",0.69,-0.48,0.69,-0.51,0.87,-0.51],["c",0.15,0,0.18,0.03,0.27,0.09],["c",0.21,0.15,0.21,0.18,0.21,1.41],["c",0,1.11,-0.03,1.14,-0.09,1.23],["c",-0.03,0.03,-0.48,0.39,-1.02,0.75],["l",-0.99,0.66],["l",0,2.25],["c",0,1.95,0,2.28,-0.06,2.37],["c",-0.06,0.12,-0.12,0.21,-0.24,0.27],["c",-0.27,0.12,-0.54,0.03,-0.69,-0.24],["c",-0.06,-0.12,-0.06,-0.21,-0.06,-2.01],["c",0,-1.05,0,-1.89,-0.03,-1.89],["l",-0.72,0.48],["c",-0.69,0.48,-0.69,0.48,-0.87,0.48],["c",-0.15,0,-0.18,0,-0.27,-0.06],["c",-0.21,-0.15,-0.21,-0.18,-0.21,-1.41],["c",0,-1.11,0.03,-1.14,0.09,-1.23],["c",0.03,-0.03,0.48,-0.39,1.02,-0.75],["l",0.99,-0.66],["l",0,-2.37],["c",0,-1.32,0,-2.37,-0.03,-2.37],["l",-0.72,0.48],["c",-0.69,0.48,-0.69,0.48,-0.87,0.48],["c",-0.15,0,-0.18,0,-0.27,-0.06],["c",-0.21,-0.15,-0.21,-0.18,-0.21,-1.41],["c",0,-1.11,0.03,-1.14,0.09,-1.23],["c",0.03,-0.03,0.48,-0.39,1.02,-0.75],["l",0.99,-0.66],["l",0,-2.25],["c",0,-2.13,0,-2.28,0.06,-2.4],["c",0.06,-0.12,0.12,-0.18,0.27,-0.24],["z"]],w:5.25,h:20.174},"accidentals.nat":{d:[["M",0.204,-11.4],["c",0.24,-0.06,0.78,0,0.99,0.15],["c",0.03,0.03,0.03,0.48,0,2.61],["c",-0.03,1.44,-0.03,2.61,-0.03,2.61],["c",0,0.03,0.75,-0.09,1.68,-0.24],["c",0.96,-0.18,1.71,-0.27,1.74,-0.27],["c",0.15,0.03,0.27,0.15,0.36,0.3],["l",0.06,0.12],["l",0.09,8.67],["c",0.09,6.96,0.12,8.67,0.09,8.67],["c",-0.03,0.03,-0.12,0.06,-0.21,0.09],["c",-0.24,0.09,-0.72,0.09,-0.96,0],["c",-0.09,-0.03,-0.18,-0.06,-0.21,-0.09],["c",-0.03,-0.03,-0.03,-0.48,0,-2.61],["c",0.03,-1.44,0.03,-2.61,0.03,-2.61],["c",0,-0.03,-0.75,0.09,-1.68,0.24],["c",-0.96,0.18,-1.71,0.27,-1.74,0.27],["c",-0.15,-0.03,-0.27,-0.15,-0.36,-0.3],["l",-0.06,-0.15],["l",-0.09,-7.53],["c",-0.06,-4.14,-0.09,-8.04,-0.12,-8.67],["l",0,-1.11],["l",0.15,-0.06],["c",0.09,-0.03,0.21,-0.06,0.27,-0.09],["z"],["m",3.75,8.4],["c",0,-0.33,0,-0.42,-0.03,-0.42],["c",-0.12,0,-2.79,0.45,-2.79,0.48],["c",-0.03,0,-0.09,6.3,-0.09,6.33],["c",0.03,0,2.79,-0.45,2.82,-0.48],["c",0,0,0.09,-4.53,0.09,-5.91],["z"]],w:5.411,h:22.8},"accidentals.flat":{d:[["M",-0.36,-14.07],["c",0.33,-0.06,0.87,0,1.08,0.15],["c",0.06,0.03,0.06,0.36,-0.03,5.25],["c",-0.06,2.85,-0.09,5.19,-0.09,5.19],["c",0,0.03,0.12,-0.03,0.24,-0.12],["c",0.63,-0.42,1.41,-0.66,2.19,-0.72],["c",0.81,-0.03,1.47,0.21,2.04,0.78],["c",0.57,0.54,0.87,1.26,0.93,2.04],["c",0.03,0.57,-0.09,1.08,-0.36,1.62],["c",-0.42,0.81,-1.02,1.38,-2.82,2.61],["c",-1.14,0.78,-1.44,1.02,-1.8,1.44],["c",-0.18,0.18,-0.39,0.39,-0.45,0.42],["c",-0.27,0.18,-0.57,0.15,-0.81,-0.06],["c",-0.06,-0.09,-0.12,-0.18,-0.15,-0.27],["c",-0.03,-0.06,-0.09,-3.27,-0.18,-8.34],["c",-0.09,-4.53,-0.15,-8.58,-0.18,-9.03],["l",0,-0.78],["l",0.12,-0.06],["c",0.06,-0.03,0.18,-0.09,0.27,-0.12],["z"],["m",3.18,11.01],["c",-0.21,-0.12,-0.54,-0.15,-0.81,-0.06],["c",-0.54,0.15,-0.99,0.63,-1.17,1.26],["c",-0.06,0.3,-0.12,2.88,-0.06,3.87],["c",0.03,0.42,0.03,0.81,0.06,0.9],["l",0.03,0.12],["l",0.45,-0.39],["c",0.63,-0.54,1.26,-1.17,1.56,-1.59],["c",0.3,-0.42,0.6,-0.99,0.72,-1.41],["c",0.18,-0.69,0.09,-1.47,-0.18,-2.07],["c",-0.15,-0.3,-0.33,-0.51,-0.6,-0.63],["z"]],w:6.75,h:18.801},"accidentals.halfflat":{d:[["M",4.83,-14.07],["c",0.33,-0.06,0.87,0,1.08,0.15],["c",0.06,0.03,0.06,0.6,-0.12,9.06],["c",-0.09,5.55,-0.15,9.06,-0.18,9.12],["c",-0.03,0.09,-0.09,0.18,-0.15,0.27],["c",-0.24,0.21,-0.54,0.24,-0.81,0.06],["c",-0.06,-0.03,-0.27,-0.24,-0.45,-0.42],["c",-0.36,-0.42,-0.66,-0.66,-1.8,-1.44],["c",-1.23,-0.84,-1.83,-1.32,-2.25,-1.77],["c",-0.66,-0.78,-0.96,-1.56,-0.93,-2.46],["c",0.09,-1.41,1.11,-2.58,2.4,-2.79],["c",0.3,-0.06,0.84,-0.03,1.23,0.06],["c",0.54,0.12,1.08,0.33,1.53,0.63],["c",0.12,0.09,0.24,0.15,0.24,0.12],["c",0,0,-0.12,-8.37,-0.18,-9.75],["l",0,-0.66],["l",0.12,-0.06],["c",0.06,-0.03,0.18,-0.09,0.27,-0.12],["z"],["m",-1.65,10.95],["c",-0.6,-0.18,-1.08,0.09,-1.38,0.69],["c",-0.27,0.6,-0.36,1.38,-0.18,2.07],["c",0.12,0.42,0.42,0.99,0.72,1.41],["c",0.3,0.42,0.93,1.05,1.56,1.59],["l",0.48,0.39],["l",0,-0.12],["c",0.03,-0.09,0.03,-0.48,0.06,-0.9],["c",0.03,-0.57,0.03,-1.08,0,-2.22],["c",-0.03,-1.62,-0.03,-1.62,-0.24,-2.07],["c",-0.21,-0.42,-0.6,-0.75,-1.02,-0.84],["z"]],w:6.728,h:18.801},"accidentals.dblflat":{d:[["M",-0.36,-14.07],["c",0.33,-0.06,0.87,0,1.08,0.15],["c",0.06,0.03,0.06,0.33,-0.03,4.89],["c",-0.06,2.67,-0.09,5.01,-0.09,5.22],["l",0,0.36],["l",0.15,-0.15],["c",0.36,-0.3,0.75,-0.51,1.2,-0.63],["c",0.33,-0.09,0.96,-0.09,1.26,-0.03],["c",0.27,0.09,0.63,0.27,0.87,0.45],["l",0.21,0.15],["l",0,-0.27],["c",0,-0.15,-0.03,-2.43,-0.09,-5.1],["c",-0.09,-4.56,-0.09,-4.86,-0.03,-4.89],["c",0.15,-0.12,0.39,-0.15,0.72,-0.15],["c",0.3,0,0.54,0.03,0.69,0.15],["c",0.06,0.03,0.06,0.33,-0.03,4.95],["c",-0.06,2.7,-0.09,5.04,-0.09,5.22],["l",0.03,0.3],["l",0.21,-0.15],["c",0.69,-0.48,1.44,-0.69,2.28,-0.69],["c",0.51,0,0.78,0.03,1.2,0.21],["c",1.32,0.63,2.01,2.28,1.53,3.69],["c",-0.21,0.57,-0.51,1.02,-1.05,1.56],["c",-0.42,0.42,-0.81,0.72,-1.92,1.5],["c",-1.26,0.87,-1.5,1.08,-1.86,1.5],["c",-0.39,0.45,-0.54,0.54,-0.81,0.51],["c",-0.18,0,-0.21,0,-0.33,-0.06],["l",-0.21,-0.21],["l",-0.06,-0.12],["l",-0.03,-0.99],["c",-0.03,-0.54,-0.03,-1.29,-0.06,-1.68],["l",0,-0.69],["l",-0.21,0.24],["c",-0.36,0.42,-0.75,0.75,-1.8,1.62],["c",-1.02,0.84,-1.2,0.99,-1.44,1.38],["c",-0.36,0.51,-0.54,0.6,-0.9,0.51],["c",-0.15,-0.03,-0.39,-0.27,-0.42,-0.42],["c",-0.03,-0.06,-0.09,-3.27,-0.18,-8.34],["c",-0.09,-4.53,-0.15,-8.58,-0.18,-9.03],["l",0,-0.78],["l",0.12,-0.06],["c",0.06,-0.03,0.18,-0.09,0.27,-0.12],["z"],["m",2.52,10.98],["c",-0.18,-0.09,-0.48,-0.12,-0.66,-0.06],["c",-0.39,0.15,-0.69,0.54,-0.84,1.14],["c",-0.06,0.24,-0.06,0.39,-0.09,1.74],["c",-0.03,1.44,0,2.73,0.06,3.18],["l",0.03,0.15],["l",0.27,-0.27],["c",0.93,-0.96,1.5,-1.95,1.74,-3.06],["c",0.06,-0.27,0.06,-0.39,0.06,-0.96],["c",0,-0.54,0,-0.69,-0.06,-0.93],["c",-0.09,-0.51,-0.27,-0.81,-0.51,-0.93],["z"],["m",5.43,0],["c",-0.18,-0.09,-0.51,-0.12,-0.72,-0.06],["c",-0.54,0.12,-0.96,0.63,-1.17,1.26],["c",-0.06,0.3,-0.12,2.88,-0.06,3.9],["c",0.03,0.42,0.03,0.81,0.06,0.9],["l",0.03,0.12],["l",0.36,-0.3],["c",0.42,-0.36,1.02,-0.96,1.29,-1.29],["c",0.36,-0.45,0.66,-0.99,0.81,-1.41],["c",0.42,-1.23,0.15,-2.76,-0.6,-3.12],["z"]],w:11.613,h:18.804},"accidentals.dblsharp":{d:[["M",-0.186,-3.96],["c",0.06,-0.03,0.12,-0.06,0.15,-0.06],["c",0.09,0,2.76,0.27,2.79,0.3],["c",0.12,0.03,0.15,0.12,0.15,0.51],["c",0.06,0.96,0.24,1.59,0.57,2.1],["c",0.06,0.09,0.15,0.21,0.18,0.24],["l",0.09,0.06],["l",0.09,-0.06],["c",0.03,-0.03,0.12,-0.15,0.18,-0.24],["c",0.33,-0.51,0.51,-1.14,0.57,-2.1],["c",0,-0.39,0.03,-0.45,0.12,-0.51],["c",0.03,0,0.66,-0.09,1.44,-0.15],["c",1.47,-0.15,1.5,-0.15,1.56,-0.03],["c",0.03,0.06,0,0.42,-0.09,1.44],["c",-0.09,0.72,-0.15,1.35,-0.15,1.38],["c",0,0.03,-0.03,0.09,-0.06,0.12],["c",-0.06,0.06,-0.12,0.09,-0.51,0.09],["c",-1.08,0.06,-1.8,0.3,-2.28,0.75],["l",-0.12,0.09],["l",0.09,0.09],["c",0.12,0.15,0.39,0.33,0.63,0.45],["c",0.42,0.18,0.96,0.27,1.68,0.33],["c",0.39,-0,0.45,0.03,0.51,0.09],["c",0.03,0.03,0.06,0.09,0.06,0.12],["c",0,0.03,0.06,0.66,0.15,1.38],["c",0.09,1.02,0.12,1.38,0.09,1.44],["c",-0.06,0.12,-0.09,0.12,-1.56,-0.03],["c",-0.78,-0.06,-1.41,-0.15,-1.44,-0.15],["c",-0.09,-0.06,-0.12,-0.12,-0.12,-0.54],["c",-0.06,-0.93,-0.24,-1.56,-0.57,-2.07],["c",-0.06,-0.09,-0.15,-0.21,-0.18,-0.24],["l",-0.09,-0.06],["l",-0.09,0.06],["c",-0.03,0.03,-0.12,0.15,-0.18,0.24],["c",-0.33,0.51,-0.51,1.14,-0.57,2.07],["c",0,0.42,-0.03,0.48,-0.12,0.54],["c",-0.03,0,-0.66,0.09,-1.44,0.15],["c",-1.47,0.15,-1.5,0.15,-1.56,0.03],["c",-0.03,-0.06,0,-0.42,0.09,-1.44],["c",0.09,-0.72,0.15,-1.35,0.15,-1.38],["c",0,-0.03,0.03,-0.09,0.06,-0.12],["c",0.06,-0.06,0.12,-0.09,0.51,-0.09],["c",0.72,-0.06,1.26,-0.15,1.68,-0.33],["c",0.24,-0.12,0.51,-0.3,0.63,-0.45],["l",0.09,-0.09],["l",-0.12,-0.09],["c",-0.48,-0.45,-1.2,-0.69,-2.28,-0.75],["c",-0.39,0,-0.45,-0.03,-0.51,-0.09],["c",-0.03,-0.03,-0.06,-0.09,-0.06,-0.12],["c",0,-0.03,-0.06,-0.63,-0.12,-1.38],["c",-0.09,-0.72,-0.15,-1.35,-0.15,-1.38],["z"]],w:7.961,h:7.977},"dots.dot":{d:[["M",1.32,-1.68],["c",0.09,-0.03,0.27,-0.06,0.39,-0.06],["c",0.96,0,1.74,0.78,1.74,1.71],["c",0,0.96,-0.78,1.74,-1.71,1.74],["c",-0.96,0,-1.74,-0.78,-1.74,-1.71],["c",0,-0.78,0.54,-1.5,1.32,-1.68],["z"]],w:3.45,h:3.45},"noteheads.dbl":{d:[["M",-0.69,-4.02],["c",0.18,-0.09,0.36,-0.09,0.54,0],["c",0.18,0.09,0.24,0.15,0.33,0.3],["c",0.06,0.15,0.06,0.18,0.06,1.41],["l",-0,1.23],["l",0.12,-0.18],["c",0.72,-1.26,2.64,-2.31,4.86,-2.64],["c",0.81,-0.15,1.11,-0.15,2.13,-0.15],["c",0.99,0,1.29,0,2.1,0.15],["c",0.75,0.12,1.38,0.27,2.04,0.54],["c",1.35,0.51,2.34,1.26,2.82,2.1],["l",0.12,0.18],["l",0,-1.23],["c",0,-1.2,0,-1.26,0.06,-1.38],["c",0.09,-0.18,0.15,-0.24,0.33,-0.33],["c",0.18,-0.09,0.36,-0.09,0.54,0],["c",0.18,0.09,0.24,0.15,0.33,0.3],["l",0.06,0.15],["l",0,3.54],["l",0,3.54],["l",-0.06,0.15],["c",-0.09,0.18,-0.15,0.24,-0.33,0.33],["c",-0.18,0.09,-0.36,0.09,-0.54,0],["c",-0.18,-0.09,-0.24,-0.15,-0.33,-0.33],["c",-0.06,-0.12,-0.06,-0.18,-0.06,-1.38],["l",0,-1.23],["l",-0.12,0.18],["c",-0.48,0.84,-1.47,1.59,-2.82,2.1],["c",-0.84,0.33,-1.71,0.54,-2.85,0.66],["c",-0.45,0.06,-2.16,0.06,-2.61,0],["c",-1.14,-0.12,-2.01,-0.33,-2.85,-0.66],["c",-1.35,-0.51,-2.34,-1.26,-2.82,-2.1],["l",-0.12,-0.18],["l",0,1.23],["c",0,1.23,0,1.26,-0.06,1.38],["c",-0.09,0.18,-0.15,0.24,-0.33,0.33],["c",-0.18,0.09,-0.36,0.09,-0.54,0],["c",-0.18,-0.09,-0.24,-0.15,-0.33,-0.33],["l",-0.06,-0.15],["l",0,-3.54],["c",0,-3.48,0,-3.54,0.06,-3.66],["c",0.09,-0.18,0.15,-0.24,0.33,-0.33],["z"],["m",7.71,0.63],["c",-0.36,-0.06,-0.9,-0.06,-1.14,0],["c",-0.3,0.03,-0.66,0.24,-0.87,0.42],["c",-0.6,0.54,-0.9,1.62,-0.75,2.82],["c",0.12,0.93,0.51,1.68,1.11,2.31],["c",0.75,0.72,1.83,1.2,2.85,1.26],["c",1.05,0.06,1.83,-0.54,2.1,-1.65],["c",0.21,-0.9,0.12,-1.95,-0.24,-2.82],["c",-0.36,-0.81,-1.08,-1.53,-1.95,-1.95],["c",-0.3,-0.15,-0.78,-0.3,-1.11,-0.39],["z"]],w:16.83,h:8.145},"noteheads.whole":{d:[["M",6.51,-4.05],["c",0.51,-0.03,2.01,0,2.52,0.03],["c",1.41,0.18,2.64,0.51,3.72,1.08],["c",1.2,0.63,1.95,1.41,2.19,2.31],["c",0.09,0.33,0.09,0.9,-0,1.23],["c",-0.24,0.9,-0.99,1.68,-2.19,2.31],["c",-1.08,0.57,-2.28,0.9,-3.75,1.08],["c",-0.66,0.06,-2.31,0.06,-2.97,0],["c",-1.47,-0.18,-2.67,-0.51,-3.75,-1.08],["c",-1.2,-0.63,-1.95,-1.41,-2.19,-2.31],["c",-0.09,-0.33,-0.09,-0.9,-0,-1.23],["c",0.24,-0.9,0.99,-1.68,2.19,-2.31],["c",1.2,-0.63,2.61,-0.99,4.23,-1.11],["z"],["m",0.57,0.66],["c",-0.87,-0.15,-1.53,0,-2.04,0.51],["c",-0.15,0.15,-0.24,0.27,-0.33,0.48],["c",-0.24,0.51,-0.36,1.08,-0.33,1.77],["c",0.03,0.69,0.18,1.26,0.42,1.77],["c",0.6,1.17,1.74,1.98,3.18,2.22],["c",1.11,0.21,1.95,-0.15,2.34,-0.99],["c",0.24,-0.51,0.36,-1.08,0.33,-1.8],["c",-0.06,-1.11,-0.45,-2.04,-1.17,-2.76],["c",-0.63,-0.63,-1.47,-1.05,-2.4,-1.2],["z"]],w:14.985,h:8.097},"noteheads.half":{d:[["M",7.44,-4.05],["c",0.06,-0.03,0.27,-0.03,0.48,-0.03],["c",1.05,0,1.71,0.24,2.1,0.81],["c",0.42,0.6,0.45,1.35,0.18,2.4],["c",-0.42,1.59,-1.14,2.73,-2.16,3.39],["c",-1.41,0.93,-3.18,1.44,-5.4,1.53],["c",-1.17,0.03,-1.89,-0.21,-2.28,-0.81],["c",-0.42,-0.6,-0.45,-1.35,-0.18,-2.4],["c",0.42,-1.59,1.14,-2.73,2.16,-3.39],["c",0.63,-0.42,1.23,-0.72,1.98,-0.96],["c",0.9,-0.3,1.65,-0.42,3.12,-0.54],["z"],["m",1.29,0.87],["c",-0.27,-0.09,-0.63,-0.12,-0.9,-0.03],["c",-0.72,0.24,-1.53,0.69,-3.27,1.8],["c",-2.34,1.5,-3.3,2.25,-3.57,2.79],["c",-0.36,0.72,-0.06,1.5,0.66,1.77],["c",0.24,0.12,0.69,0.09,0.99,0],["c",0.84,-0.3,1.92,-0.93,4.14,-2.37],["c",1.62,-1.08,2.37,-1.71,2.61,-2.19],["c",0.36,-0.72,0.06,-1.5,-0.66,-1.77],["z"]],w:10.37,h:8.132},"noteheads.quarter":{d:[["M",6.09,-4.05],["c",0.36,-0.03,1.2,0,1.53,0.06],["c",1.17,0.24,1.89,0.84,2.16,1.83],["c",0.06,0.18,0.06,0.3,0.06,0.66],["c",0,0.45,0,0.63,-0.15,1.08],["c",-0.66,2.04,-3.06,3.93,-5.52,4.38],["c",-0.54,0.09,-1.44,0.09,-1.83,0.03],["c",-1.23,-0.27,-1.98,-0.87,-2.25,-1.86],["c",-0.06,-0.18,-0.06,-0.3,-0.06,-0.66],["c",0,-0.45,0,-0.63,0.15,-1.08],["c",0.24,-0.78,0.75,-1.53,1.44,-2.22],["c",1.2,-1.2,2.85,-2.01,4.47,-2.22],["z"]],w:9.81,h:8.094},"scripts.ufermata":{d:[["M",-0.75,-10.77],["c",0.12,0,0.45,-0.03,0.69,-0.03],["c",2.91,-0.03,5.55,1.53,7.41,4.35],["c",1.17,1.71,1.95,3.72,2.43,6.03],["c",0.12,0.51,0.12,0.57,0.03,0.69],["c",-0.12,0.21,-0.48,0.27,-0.69,0.12],["c",-0.12,-0.09,-0.18,-0.24,-0.27,-0.69],["c",-0.78,-3.63,-3.42,-6.54,-6.78,-7.38],["c",-0.78,-0.21,-1.2,-0.24,-2.07,-0.24],["c",-0.63,-0,-0.84,-0,-1.2,0.06],["c",-1.83,0.27,-3.42,1.08,-4.8,2.37],["c",-1.41,1.35,-2.4,3.21,-2.85,5.19],["c",-0.09,0.45,-0.15,0.6,-0.27,0.69],["c",-0.21,0.15,-0.57,0.09,-0.69,-0.12],["c",-0.09,-0.12,-0.09,-0.18,0.03,-0.69],["c",0.33,-1.62,0.78,-3,1.47,-4.38],["c",1.77,-3.54,4.44,-5.67,7.56,-5.97],["z"],["m",0.33,7.47],["c",1.38,-0.3,2.58,0.9,2.31,2.25],["c",-0.15,0.72,-0.78,1.35,-1.47,1.5],["c",-1.38,0.27,-2.58,-0.93,-2.31,-2.31],["c",0.15,-0.69,0.78,-1.29,1.47,-1.44],["z"]],w:19.748,h:11.289},"scripts.dfermata":{d:[["M",-9.63,-0.42],["c",0.15,-0.09,0.36,-0.06,0.51,0.03],["c",0.12,0.09,0.18,0.24,0.27,0.66],["c",0.78,3.66,3.42,6.57,6.78,7.41],["c",0.78,0.21,1.2,0.24,2.07,0.24],["c",0.63,-0,0.84,-0,1.2,-0.06],["c",1.83,-0.27,3.42,-1.08,4.8,-2.37],["c",1.41,-1.35,2.4,-3.21,2.85,-5.22],["c",0.09,-0.42,0.15,-0.57,0.27,-0.66],["c",0.21,-0.15,0.57,-0.09,0.69,0.12],["c",0.09,0.12,0.09,0.18,-0.03,0.69],["c",-0.33,1.62,-0.78,3,-1.47,4.38],["c",-1.92,3.84,-4.89,6,-8.31,6],["c",-3.42,0,-6.39,-2.16,-8.31,-6],["c",-0.48,-0.96,-0.84,-1.92,-1.14,-2.97],["c",-0.18,-0.69,-0.42,-1.74,-0.42,-1.92],["c",0,-0.12,0.09,-0.27,0.24,-0.33],["z"],["m",9.21,0],["c",1.2,-0.27,2.34,0.63,2.34,1.86],["c",-0,0.9,-0.66,1.68,-1.5,1.89],["c",-1.38,0.27,-2.58,-0.93,-2.31,-2.31],["c",0.15,-0.69,0.78,-1.29,1.47,-1.44],["z"]],w:19.744,h:11.274},"scripts.sforzato":{d:[["M",-6.45,-3.69],["c",0.06,-0.03,0.15,-0.06,0.18,-0.06],["c",0.06,0,2.85,0.72,6.24,1.59],["l",6.33,1.65],["c",0.33,0.06,0.45,0.21,0.45,0.51],["c",0,0.3,-0.12,0.45,-0.45,0.51],["l",-6.33,1.65],["c",-3.39,0.87,-6.18,1.59,-6.21,1.59],["c",-0.21,-0,-0.48,-0.24,-0.51,-0.45],["c",0,-0.15,0.06,-0.36,0.18,-0.45],["c",0.09,-0.06,0.87,-0.27,3.84,-1.05],["c",2.04,-0.54,3.84,-0.99,4.02,-1.02],["c",0.15,-0.06,1.14,-0.24,2.22,-0.42],["c",1.05,-0.18,1.92,-0.36,1.92,-0.36],["c",0,-0,-0.87,-0.18,-1.92,-0.36],["c",-1.08,-0.18,-2.07,-0.36,-2.22,-0.42],["c",-0.18,-0.03,-1.98,-0.48,-4.02,-1.02],["c",-2.97,-0.78,-3.75,-0.99,-3.84,-1.05],["c",-0.12,-0.09,-0.18,-0.3,-0.18,-0.45],["c",0.03,-0.15,0.15,-0.3,0.3,-0.39],["z"]],w:13.5,h:7.5},"scripts.staccato":{d:[["M",-0.36,-1.47],["c",0.93,-0.21,1.86,0.51,1.86,1.47],["c",-0,0.93,-0.87,1.65,-1.8,1.47],["c",-0.54,-0.12,-1.02,-0.57,-1.14,-1.08],["c",-0.21,-0.81,0.27,-1.65,1.08,-1.86],["z"]],w:2.989,h:3.004},"scripts.tenuto":{d:[["M",-4.2,-0.48],["l",0.12,-0.06],["l",4.08,0],["l",4.08,0],["l",0.12,0.06],["c",0.39,0.21,0.39,0.75,0,0.96],["l",-0.12,0.06],["l",-4.08,0],["l",-4.08,0],["l",-0.12,-0.06],["c",-0.39,-0.21,-0.39,-0.75,0,-0.96],["z"]],w:8.985,h:1.08},"scripts.umarcato":{d:[["M",-0.15,-8.19],["c",0.15,-0.12,0.36,-0.03,0.45,0.15],["c",0.21,0.42,3.45,7.65,3.45,7.71],["c",-0,0.12,-0.12,0.27,-0.21,0.3],["c",-0.03,0.03,-0.51,0.03,-1.14,0.03],["c",-1.05,0,-1.08,0,-1.17,-0.06],["c",-0.09,-0.06,-0.24,-0.36,-1.17,-2.4],["c",-0.57,-1.29,-1.05,-2.34,-1.08,-2.34],["c",-0,-0.03,-0.51,1.02,-1.08,2.34],["c",-0.93,2.07,-1.08,2.34,-1.14,2.4],["c",-0.06,0.03,-0.15,0.06,-0.18,0.06],["c",-0.15,0,-0.33,-0.18,-0.33,-0.33],["c",-0,-0.06,3.24,-7.32,3.45,-7.71],["c",0.03,-0.06,0.09,-0.15,0.15,-0.15],["z"]],w:7.5,h:8.245},"scripts.dmarcato":{d:[["M",-3.57,0.03],["c",0.03,0,0.57,-0.03,1.17,-0.03],["c",1.05,0,1.08,0,1.17,0.06],["c",0.09,0.06,0.24,0.36,1.17,2.4],["c",0.57,1.29,1.05,2.34,1.08,2.34],["c",0,0.03,0.51,-1.02,1.08,-2.34],["c",0.93,-2.07,1.08,-2.34,1.14,-2.4],["c",0.06,-0.03,0.15,-0.06,0.18,-0.06],["c",0.15,0,0.33,0.18,0.33,0.33],["c",0,0.09,-3.45,7.74,-3.54,7.83],["c",-0.12,0.12,-0.3,0.12,-0.42,0],["c",-0.09,-0.09,-3.54,-7.74,-3.54,-7.83],["c",0,-0.09,0.12,-0.27,0.18,-0.3],["z"]],w:7.5,h:8.25},"scripts.stopped":{d:[["M",-0.27,-4.08],["c",0.18,-0.09,0.36,-0.09,0.54,0],["c",0.18,0.09,0.24,0.15,0.33,0.3],["l",0.06,0.15],["l",-0,1.5],["l",-0,1.47],["l",1.47,0],["l",1.5,0],["l",0.15,0.06],["c",0.15,0.09,0.21,0.15,0.3,0.33],["c",0.09,0.18,0.09,0.36,-0,0.54],["c",-0.09,0.18,-0.15,0.24,-0.33,0.33],["c",-0.12,0.06,-0.18,0.06,-1.62,0.06],["l",-1.47,0],["l",-0,1.47],["l",-0,1.47],["l",-0.06,0.15],["c",-0.09,0.18,-0.15,0.24,-0.33,0.33],["c",-0.18,0.09,-0.36,0.09,-0.54,0],["c",-0.18,-0.09,-0.24,-0.15,-0.33,-0.33],["l",-0.06,-0.15],["l",-0,-1.47],["l",-0,-1.47],["l",-1.47,0],["c",-1.44,0,-1.5,0,-1.62,-0.06],["c",-0.18,-0.09,-0.24,-0.15,-0.33,-0.33],["c",-0.09,-0.18,-0.09,-0.36,-0,-0.54],["c",0.09,-0.18,0.15,-0.24,0.33,-0.33],["l",0.15,-0.06],["l",1.47,0],["l",1.47,0],["l",-0,-1.47],["c",-0,-1.44,-0,-1.5,0.06,-1.62],["c",0.09,-0.18,0.15,-0.24,0.33,-0.33],["z"]],w:8.295,h:8.295},"scripts.upbow":{d:[["M",-4.65,-15.54],["c",0.12,-0.09,0.36,-0.06,0.48,0.03],["c",0.03,0.03,0.09,0.09,0.12,0.15],["c",0.03,0.06,0.66,2.13,1.41,4.62],["c",1.35,4.41,1.38,4.56,2.01,6.96],["l",0.63,2.46],["l",0.63,-2.46],["c",0.63,-2.4,0.66,-2.55,2.01,-6.96],["c",0.75,-2.49,1.38,-4.56,1.41,-4.62],["c",0.06,-0.15,0.18,-0.21,0.36,-0.24],["c",0.15,0,0.3,0.06,0.39,0.18],["c",0.15,0.21,0.24,-0.18,-2.1,7.56],["c",-1.2,3.96,-2.22,7.32,-2.25,7.41],["c",0,0.12,-0.06,0.27,-0.09,0.3],["c",-0.12,0.21,-0.6,0.21,-0.72,0],["c",-0.03,-0.03,-0.09,-0.18,-0.09,-0.3],["c",-0.03,-0.09,-1.05,-3.45,-2.25,-7.41],["c",-2.34,-7.74,-2.25,-7.35,-2.1,-7.56],["c",0.03,-0.03,0.09,-0.09,0.15,-0.12],["z"]],w:9.73,h:15.608},"scripts.downbow":{d:[["M",-5.55,-9.93],["l",0.09,-0.06],["l",5.46,0],["l",5.46,0],["l",0.09,0.06],["l",0.06,0.09],["l",0,4.77],["c",0,5.28,0,4.89,-0.18,5.01],["c",-0.18,0.12,-0.42,0.06,-0.54,-0.12],["c",-0.06,-0.09,-0.06,-0.18,-0.06,-2.97],["l",0,-2.85],["l",-4.83,0],["l",-4.83,0],["l",0,2.85],["c",0,2.79,0,2.88,-0.06,2.97],["c",-0.15,0.24,-0.51,0.24,-0.66,0],["c",-0.06,-0.09,-0.06,-0.21,-0.06,-4.89],["l",0,-4.77],["z"]],w:11.22,h:9.992},"scripts.turn":{d:[["M",-4.77,-3.9],["c",0.36,-0.06,1.05,-0.06,1.44,0.03],["c",0.78,0.15,1.5,0.51,2.34,1.14],["c",0.6,0.45,1.05,0.87,2.22,2.01],["c",1.11,1.08,1.62,1.5,2.22,1.86],["c",0.6,0.36,1.32,0.57,1.92,0.57],["c",0.9,-0,1.71,-0.57,1.89,-1.35],["c",0.24,-0.93,-0.39,-1.89,-1.35,-2.1],["l",-0.15,-0.06],["l",-0.09,0.15],["c",-0.03,0.09,-0.15,0.24,-0.24,0.33],["c",-0.72,0.72,-2.04,0.54,-2.49,-0.36],["c",-0.48,-0.93,0.03,-1.86,1.17,-2.19],["c",0.3,-0.09,1.02,-0.09,1.35,-0],["c",0.99,0.27,1.74,0.87,2.25,1.83],["c",0.69,1.41,0.63,3,-0.21,4.26],["c",-0.21,0.3,-0.69,0.81,-0.99,1.02],["c",-0.3,0.21,-0.84,0.45,-1.17,0.54],["c",-1.23,0.36,-2.49,0.15,-3.72,-0.6],["c",-0.75,-0.48,-1.41,-1.02,-2.85,-2.46],["c",-1.11,-1.08,-1.62,-1.5,-2.22,-1.86],["c",-0.6,-0.36,-1.32,-0.57,-1.92,-0.57],["c",-0.9,0,-1.71,0.57,-1.89,1.35],["c",-0.24,0.93,0.39,1.89,1.35,2.1],["l",0.15,0.06],["l",0.09,-0.15],["c",0.03,-0.09,0.15,-0.24,0.24,-0.33],["c",0.72,-0.72,2.04,-0.54,2.49,0.36],["c",0.48,0.93,-0.03,1.86,-1.17,2.19],["c",-0.3,0.09,-1.02,0.09,-1.35,0],["c",-0.99,-0.27,-1.74,-0.87,-2.25,-1.83],["c",-0.69,-1.41,-0.63,-3,0.21,-4.26],["c",0.21,-0.3,0.69,-0.81,0.99,-1.02],["c",0.48,-0.33,1.11,-0.57,1.74,-0.66],["z"]],w:16.366,h:7.893},"scripts.trill":{d:[["M",-0.51,-16.02],["c",0.12,-0.09,0.21,-0.18,0.21,-0.18],["l",-0.81,4.02],["l",-0.81,4.02],["c",0.03,0,0.51,-0.27,1.08,-0.6],["c",0.6,-0.3,1.14,-0.63,1.26,-0.66],["c",1.14,-0.54,2.31,-0.6,3.09,-0.18],["c",0.27,0.15,0.54,0.36,0.6,0.51],["l",0.06,0.12],["l",0.21,-0.21],["c",0.9,-0.81,2.22,-0.99,3.12,-0.42],["c",0.6,0.42,0.9,1.14,0.78,2.07],["c",-0.15,1.29,-1.05,2.31,-1.95,2.25],["c",-0.48,-0.03,-0.78,-0.3,-0.96,-0.81],["c",-0.09,-0.27,-0.09,-0.9,-0.03,-1.2],["c",0.21,-0.75,0.81,-1.23,1.59,-1.32],["l",0.24,-0.03],["l",-0.09,-0.12],["c",-0.51,-0.66,-1.62,-0.63,-2.31,0.03],["c",-0.39,0.42,-0.3,0.09,-1.23,4.77],["l",-0.81,4.14],["c",-0.03,0,-0.12,-0.03,-0.21,-0.09],["c",-0.33,-0.15,-0.54,-0.18,-0.99,-0.18],["c",-0.42,0,-0.66,0.03,-1.05,0.18],["c",-0.12,0.06,-0.21,0.09,-0.21,0.09],["c",0,-0.03,0.36,-1.86,0.81,-4.11],["c",0.9,-4.47,0.87,-4.26,0.69,-4.53],["c",-0.21,-0.36,-0.66,-0.51,-1.17,-0.36],["c",-0.15,0.06,-2.22,1.14,-2.58,1.38],["c",-0.12,0.09,-0.12,0.09,-0.21,0.6],["l",-0.09,0.51],["l",0.21,0.24],["c",0.63,0.75,1.02,1.47,1.2,2.19],["c",0.06,0.27,0.06,0.36,0.06,0.81],["c",0,0.42,0,0.54,-0.06,0.78],["c",-0.15,0.54,-0.33,0.93,-0.63,1.35],["c",-0.18,0.24,-0.57,0.63,-0.81,0.78],["c",-0.24,0.15,-0.63,0.36,-0.84,0.42],["c",-0.27,0.06,-0.66,0.06,-0.87,0.03],["c",-0.81,-0.18,-1.32,-1.05,-1.38,-2.46],["c",-0.03,-0.6,0.03,-0.99,0.33,-2.46],["c",0.21,-1.08,0.24,-1.32,0.21,-1.29],["c",-1.2,0.48,-2.4,0.75,-3.21,0.72],["c",-0.69,-0.06,-1.17,-0.3,-1.41,-0.72],["c",-0.39,-0.75,-0.12,-1.8,0.66,-2.46],["c",0.24,-0.18,0.69,-0.42,1.02,-0.51],["c",0.69,-0.18,1.53,-0.15,2.31,0.09],["c",0.3,0.09,0.75,0.3,0.99,0.45],["c",0.12,0.09,0.15,0.09,0.15,0.03],["c",0.03,-0.03,0.33,-1.59,0.72,-3.45],["c",0.36,-1.86,0.66,-3.42,0.69,-3.45],["c",0,-0.03,0.03,-0.03,0.21,0.03],["c",0.21,0.06,0.27,0.06,0.48,0.06],["c",0.42,-0.03,0.78,-0.18,1.26,-0.48],["c",0.15,-0.12,0.36,-0.27,0.48,-0.39],["z"],["m",-5.73,7.68],["c",-0.27,-0.03,-0.96,-0.06,-1.2,-0.03],["c",-0.81,0.12,-1.35,0.57,-1.5,1.2],["c",-0.18,0.66,0.12,1.14,0.75,1.29],["c",0.66,0.12,1.92,-0.12,3.18,-0.66],["l",0.33,-0.15],["l",0.09,-0.39],["c",0.06,-0.21,0.09,-0.42,0.09,-0.45],["c",0,-0.03,-0.45,-0.3,-0.75,-0.45],["c",-0.27,-0.15,-0.66,-0.27,-0.99,-0.36],["z"],["m",4.29,3.63],["c",-0.24,-0.39,-0.51,-0.75,-0.51,-0.69],["c",-0.06,0.12,-0.39,1.92,-0.45,2.28],["c",-0.09,0.54,-0.12,1.14,-0.06,1.38],["c",0.06,0.42,0.21,0.6,0.51,0.57],["c",0.39,-0.06,0.75,-0.48,0.93,-1.14],["c",0.09,-0.33,0.09,-1.05,-0,-1.38],["c",-0.09,-0.39,-0.24,-0.69,-0.42,-1.02],["z"]],w:17.963,h:16.49},"scripts.segno":{d:[["M",-3.72,-11.22],["c",0.78,-0.09,1.59,0.03,2.31,0.42],["c",1.2,0.6,2.01,1.71,2.31,3.09],["c",0.09,0.42,0.09,1.2,0.03,1.5],["c",-0.15,0.45,-0.39,0.81,-0.66,0.93],["c",-0.33,0.18,-0.84,0.21,-1.23,0.15],["c",-0.81,-0.18,-1.32,-0.93,-1.26,-1.89],["c",0.03,-0.36,0.09,-0.57,0.24,-0.9],["c",0.15,-0.33,0.45,-0.6,0.72,-0.75],["c",0.12,-0.06,0.18,-0.09,0.18,-0.12],["c",0,-0.03,-0.03,-0.15,-0.09,-0.24],["c",-0.18,-0.45,-0.54,-0.87,-0.96,-1.08],["c",-1.11,-0.57,-2.34,-0.18,-2.88,0.9],["c",-0.24,0.51,-0.33,1.11,-0.24,1.83],["c",0.27,1.92,1.5,3.54,3.93,5.13],["c",0.48,0.33,1.26,0.78,1.29,0.78],["c",0.03,0,1.35,-2.19,2.94,-4.89],["l",2.88,-4.89],["l",0.84,0],["l",0.87,0],["l",-0.03,0.06],["c",-0.15,0.21,-6.15,10.41,-6.15,10.44],["c",0,0,0.21,0.15,0.48,0.27],["c",2.61,1.47,4.35,3.03,5.13,4.65],["c",1.14,2.34,0.51,5.07,-1.44,6.39],["c",-0.66,0.42,-1.32,0.63,-2.13,0.69],["c",-2.01,0.09,-3.81,-1.41,-4.26,-3.54],["c",-0.09,-0.42,-0.09,-1.2,-0.03,-1.5],["c",0.15,-0.45,0.39,-0.81,0.66,-0.93],["c",0.33,-0.18,0.84,-0.21,1.23,-0.15],["c",0.81,0.18,1.32,0.93,1.26,1.89],["c",-0.03,0.36,-0.09,0.57,-0.24,0.9],["c",-0.15,0.33,-0.45,0.6,-0.72,0.75],["c",-0.12,0.06,-0.18,0.09,-0.18,0.12],["c",0,0.03,0.03,0.15,0.09,0.24],["c",0.18,0.45,0.54,0.87,0.96,1.08],["c",1.11,0.57,2.34,0.18,2.88,-0.9],["c",0.24,-0.51,0.33,-1.11,0.24,-1.83],["c",-0.27,-1.92,-1.5,-3.54,-3.93,-5.13],["c",-0.48,-0.33,-1.26,-0.78,-1.29,-0.78],["c",-0.03,0,-1.35,2.19,-2.91,4.89],["l",-2.88,4.89],["l",-0.87,0],["l",-0.87,0],["l",0.03,-0.06],["c",0.15,-0.21,6.15,-10.41,6.15,-10.44],["c",0,0,-0.21,-0.15,-0.48,-0.3],["c",-2.61,-1.44,-4.35,-3,-5.13,-4.62],["c",-0.9,-1.89,-0.72,-4.02,0.48,-5.52],["c",0.69,-0.84,1.68,-1.41,2.73,-1.53],["z"],["m",8.76,9.09],["c",0.03,-0.03,0.15,-0.03,0.27,-0.03],["c",0.33,0.03,0.57,0.18,0.72,0.48],["c",0.09,0.18,0.09,0.57,0,0.75],["c",-0.09,0.18,-0.21,0.3,-0.36,0.39],["c",-0.15,0.06,-0.21,0.06,-0.39,0.06],["c",-0.21,0,-0.27,0,-0.39,-0.06],["c",-0.3,-0.15,-0.48,-0.45,-0.48,-0.75],["c",0,-0.39,0.24,-0.72,0.63,-0.84],["z"],["m",-10.53,2.61],["c",0.03,-0.03,0.15,-0.03,0.27,-0.03],["c",0.33,0.03,0.57,0.18,0.72,0.48],["c",0.09,0.18,0.09,0.57,0,0.75],["c",-0.09,0.18,-0.21,0.3,-0.36,0.39],["c",-0.15,0.06,-0.21,0.06,-0.39,0.06],["c",-0.21,0,-0.27,0,-0.39,-0.06],["c",-0.3,-0.15,-0.48,-0.45,-0.48,-0.75],["c",0,-0.39,0.24,-0.72,0.63,-0.84],["z"]],w:15,h:22.504},"scripts.coda":{d:[["M",-0.21,-10.47],["c",0.18,-0.12,0.42,-0.06,0.54,0.12],["c",0.06,0.09,0.06,0.18,0.06,1.5],["l",0,1.38],["l",0.18,0],["c",0.39,0.06,0.96,0.24,1.38,0.48],["c",1.68,0.93,2.82,3.24,3.03,6.12],["c",0.03,0.24,0.03,0.45,0.03,0.45],["c",0,0.03,0.6,0.03,1.35,0.03],["c",1.5,0,1.47,0,1.59,0.18],["c",0.09,0.12,0.09,0.3,-0,0.42],["c",-0.12,0.18,-0.09,0.18,-1.59,0.18],["c",-0.75,0,-1.35,0,-1.35,0.03],["c",-0,0,-0,0.21,-0.03,0.42],["c",-0.24,3.15,-1.53,5.58,-3.45,6.36],["c",-0.27,0.12,-0.72,0.24,-0.96,0.27],["l",-0.18,-0],["l",-0,1.38],["c",-0,1.32,-0,1.41,-0.06,1.5],["c",-0.15,0.24,-0.51,0.24,-0.66,-0],["c",-0.06,-0.09,-0.06,-0.18,-0.06,-1.5],["l",-0,-1.38],["l",-0.18,-0],["c",-0.39,-0.06,-0.96,-0.24,-1.38,-0.48],["c",-1.68,-0.93,-2.82,-3.24,-3.03,-6.15],["c",-0.03,-0.21,-0.03,-0.42,-0.03,-0.42],["c",0,-0.03,-0.6,-0.03,-1.35,-0.03],["c",-1.5,-0,-1.47,-0,-1.59,-0.18],["c",-0.09,-0.12,-0.09,-0.3,0,-0.42],["c",0.12,-0.18,0.09,-0.18,1.59,-0.18],["c",0.75,-0,1.35,-0,1.35,-0.03],["c",0,-0,0,-0.21,0.03,-0.45],["c",0.24,-3.12,1.53,-5.55,3.45,-6.33],["c",0.27,-0.12,0.72,-0.24,0.96,-0.27],["l",0.18,-0],["l",0,-1.38],["c",0,-1.53,0,-1.5,0.18,-1.62],["z"],["m",-0.18,6.93],["c",0,-2.97,0,-3.15,-0.06,-3.15],["c",-0.09,0,-0.51,0.15,-0.66,0.21],["c",-0.87,0.51,-1.38,1.62,-1.56,3.51],["c",-0.06,0.54,-0.12,1.59,-0.12,2.16],["l",0,0.42],["l",1.2,0],["l",1.2,0],["l",0,-3.15],["z"],["m",1.17,-3.06],["c",-0.09,-0.03,-0.21,-0.06,-0.27,-0.09],["l",-0.12,0],["l",0,3.15],["l",0,3.15],["l",1.2,0],["l",1.2,0],["l",0,-0.81],["c",-0.06,-2.4,-0.33,-3.69,-0.93,-4.59],["c",-0.27,-0.39,-0.66,-0.69,-1.08,-0.81],["z"],["m",-1.17,10.14],["l",0,-3.15],["l",-1.2,-0],["l",-1.2,-0],["l",0,0.81],["c",0.03,0.96,0.06,1.47,0.15,2.13],["c",0.24,2.04,0.96,3.12,2.13,3.36],["l",0.12,-0],["l",0,-3.15],["z"],["m",3.18,-2.34],["l",0,-0.81],["l",-1.2,0],["l",-1.2,0],["l",0,3.15],["l",0,3.15],["l",0.12,0],["c",1.17,-0.24,1.89,-1.32,2.13,-3.36],["c",0.09,-0.66,0.12,-1.17,0.15,-2.13],["z"]],w:16.035,h:21.062},"scripts.comma":{d:[["M",1.14,-4.62],["c",0.3,-0.12,0.69,-0.03,0.93,0.15],["c",0.12,0.12,0.36,0.45,0.51,0.78],["c",0.9,1.77,0.54,4.05,-1.08,6.75],["c",-0.36,0.63,-0.87,1.38,-0.96,1.44],["c",-0.18,0.12,-0.42,0.06,-0.54,-0.12],["c",-0.09,-0.18,-0.09,-0.3,0.12,-0.6],["c",0.96,-1.44,1.44,-2.97,1.38,-4.35],["c",-0.06,-0.93,-0.3,-1.68,-0.78,-2.46],["c",-0.27,-0.39,-0.33,-0.63,-0.24,-0.96],["c",0.09,-0.27,0.36,-0.54,0.66,-0.63],["z"]],w:3.042,h:9.237},"scripts.roll":{d:[["M",1.95,-6],["c",0.21,-0.09,0.36,-0.09,0.57,0],["c",0.39,0.15,0.63,0.39,1.47,1.35],["c",0.66,0.75,0.78,0.87,1.08,1.05],["c",0.75,0.45,1.65,0.42,2.4,-0.06],["c",0.12,-0.09,0.27,-0.27,0.54,-0.6],["c",0.42,-0.54,0.51,-0.63,0.69,-0.63],["c",0.09,0,0.3,0.12,0.36,0.21],["c",0.09,0.12,0.12,0.3,0.03,0.42],["c",-0.06,0.12,-3.15,3.9,-3.3,4.08],["c",-0.06,0.06,-0.18,0.12,-0.27,0.18],["c",-0.27,0.12,-0.6,0.06,-0.99,-0.27],["c",-0.27,-0.21,-0.42,-0.39,-1.08,-1.14],["c",-0.63,-0.72,-0.81,-0.9,-1.17,-1.08],["c",-0.36,-0.18,-0.57,-0.21,-0.99,-0.21],["c",-0.39,0,-0.63,0.03,-0.93,0.18],["c",-0.36,0.15,-0.51,0.27,-0.9,0.81],["c",-0.24,0.27,-0.45,0.51,-0.48,0.54],["c",-0.12,0.09,-0.27,0.06,-0.39,0],["c",-0.24,-0.15,-0.33,-0.39,-0.21,-0.6],["c",0.09,-0.12,3.18,-3.87,3.33,-4.02],["c",0.06,-0.06,0.18,-0.15,0.24,-0.21],["z"]],w:10.817,h:6.125},"scripts.prall":{d:[["M",-4.38,-3.69],["c",0.06,-0.03,0.18,-0.06,0.24,-0.06],["c",0.3,0,0.27,-0.03,1.89,1.95],["l",1.53,1.83],["c",0.03,-0,0.57,-0.84,1.23,-1.83],["c",1.14,-1.68,1.23,-1.83,1.35,-1.89],["c",0.06,-0.03,0.18,-0.06,0.24,-0.06],["c",0.3,0,0.27,-0.03,1.89,1.95],["l",1.53,1.83],["l",0.48,-0.69],["c",0.51,-0.78,0.54,-0.84,0.69,-0.9],["c",0.42,-0.18,0.87,0.15,0.81,0.6],["c",-0.03,0.12,-0.3,0.51,-1.5,2.37],["c",-1.38,2.07,-1.5,2.22,-1.62,2.28],["c",-0.06,0.03,-0.18,0.06,-0.24,0.06],["c",-0.3,0,-0.27,0.03,-1.89,-1.95],["l",-1.53,-1.83],["c",-0.03,0,-0.57,0.84,-1.23,1.83],["c",-1.14,1.68,-1.23,1.83,-1.35,1.89],["c",-0.06,0.03,-0.18,0.06,-0.24,0.06],["c",-0.3,0,-0.27,0.03,-1.89,-1.95],["l",-1.53,-1.83],["l",-0.48,0.69],["c",-0.51,0.78,-0.54,0.84,-0.69,0.9],["c",-0.42,0.18,-0.87,-0.15,-0.81,-0.6],["c",0.03,-0.12,0.3,-0.51,1.5,-2.37],["c",1.38,-2.07,1.5,-2.22,1.62,-2.28],["z"]],w:15.011,h:7.5},"scripts.mordent":{d:[["M",-0.21,-4.95],["c",0.27,-0.15,0.63,0,0.75,0.27],["c",0.06,0.12,0.06,0.24,0.06,1.44],["l",0,1.29],["l",0.57,-0.84],["c",0.51,-0.75,0.57,-0.84,0.69,-0.9],["c",0.06,-0.03,0.18,-0.06,0.24,-0.06],["c",0.3,0,0.27,-0.03,1.89,1.95],["l",1.53,1.83],["l",0.48,-0.69],["c",0.51,-0.78,0.54,-0.84,0.69,-0.9],["c",0.42,-0.18,0.87,0.15,0.81,0.6],["c",-0.03,0.12,-0.3,0.51,-1.5,2.37],["c",-1.38,2.07,-1.5,2.22,-1.62,2.28],["c",-0.06,0.03,-0.18,0.06,-0.24,0.06],["c",-0.3,0,-0.27,0.03,-1.83,-1.89],["c",-0.81,-0.99,-1.5,-1.8,-1.53,-1.86],["c",-0.06,-0.03,-0.06,-0.03,-0.12,0.03],["c",-0.06,0.06,-0.06,0.15,-0.06,2.28],["c",-0,1.95,-0,2.25,-0.06,2.34],["c",-0.18,0.45,-0.81,0.48,-1.05,0.03],["c",-0.03,-0.06,-0.06,-0.24,-0.06,-1.41],["l",-0,-1.35],["l",-0.57,0.84],["c",-0.54,0.78,-0.6,0.87,-0.72,0.93],["c",-0.06,0.03,-0.18,0.06,-0.24,0.06],["c",-0.3,0,-0.27,0.03,-1.89,-1.95],["l",-1.53,-1.83],["l",-0.48,0.69],["c",-0.51,0.78,-0.54,0.84,-0.69,0.9],["c",-0.42,0.18,-0.87,-0.15,-0.81,-0.6],["c",0.03,-0.12,0.3,-0.51,1.5,-2.37],["c",1.38,-2.07,1.5,-2.22,1.62,-2.28],["c",0.06,-0.03,0.18,-0.06,0.24,-0.06],["c",0.3,0,0.27,-0.03,1.89,1.95],["l",1.53,1.83],["c",0.03,-0,0.06,-0.06,0.09,-0.09],["c",0.06,-0.12,0.06,-0.15,0.06,-2.28],["c",-0,-1.92,-0,-2.22,0.06,-2.31],["c",0.06,-0.15,0.15,-0.24,0.3,-0.3],["z"]],w:15.011,h:10.012},"flags.u8th":{d:[["M",-0.42,3.75],["l",0,-3.75],["l",0.21,0],["l",0.21,0],["l",0,0.18],["c",0,0.3,0.06,0.84,0.12,1.23],["c",0.24,1.53,0.9,3.12,2.13,5.16],["l",0.99,1.59],["c",0.87,1.44,1.38,2.34,1.77,3.09],["c",0.81,1.68,1.2,3.06,1.26,4.53],["c",0.03,1.53,-0.21,3.27,-0.75,5.01],["c",-0.21,0.69,-0.51,1.5,-0.6,1.59],["c",-0.09,0.12,-0.27,0.21,-0.42,0.21],["c",-0.15,0,-0.42,-0.12,-0.51,-0.21],["c",-0.15,-0.18,-0.18,-0.42,-0.09,-0.66],["c",0.15,-0.33,0.45,-1.2,0.57,-1.62],["c",0.42,-1.38,0.6,-2.58,0.6,-3.9],["c",0,-0.66,0,-0.81,-0.06,-1.11],["c",-0.39,-2.07,-1.8,-4.26,-4.59,-7.14],["l",-0.42,-0.45],["l",-0.21,0],["l",-0.21,0],["l",0,-3.75],["z"]],w:6.692,h:22.59},"flags.u16th":{d:[["M",-0.42,7.5],["l",0,-7.5],["l",0.21,0],["l",0.21,0],["l",0,0.39],["c",0.06,1.08,0.39,2.19,0.99,3.39],["c",0.45,0.9,0.87,1.59,1.95,3.12],["c",1.29,1.86,1.77,2.64,2.22,3.57],["c",0.45,0.93,0.72,1.8,0.87,2.64],["c",0.06,0.51,0.06,1.5,0,1.92],["c",-0.12,0.6,-0.3,1.2,-0.54,1.71],["l",-0.09,0.24],["l",0.18,0.45],["c",0.51,1.2,0.72,2.22,0.69,3.42],["c",-0.06,1.53,-0.39,3.03,-0.99,4.53],["c",-0.3,0.75,-0.36,0.81,-0.57,0.9],["c",-0.15,0.09,-0.33,0.06,-0.48,-0],["c",-0.18,-0.09,-0.27,-0.18,-0.33,-0.33],["c",-0.09,-0.18,-0.06,-0.3,0.12,-0.75],["c",0.66,-1.41,1.02,-2.88,1.08,-4.32],["c",0,-0.6,-0.03,-1.05,-0.18,-1.59],["c",-0.3,-1.2,-0.99,-2.4,-2.25,-3.87],["c",-0.42,-0.48,-1.53,-1.62,-2.19,-2.22],["l",-0.45,-0.42],["l",-0.03,1.11],["l",0,1.11],["l",-0.21,-0],["l",-0.21,-0],["l",0,-7.5],["z"],["m",1.65,0.09],["c",-0.3,-0.3,-0.69,-0.72,-0.9,-0.87],["l",-0.33,-0.33],["l",0,0.15],["c",0,0.3,0.06,0.81,0.15,1.26],["c",0.27,1.29,0.87,2.61,2.04,4.29],["c",0.15,0.24,0.6,0.87,0.96,1.38],["l",1.08,1.53],["l",0.42,0.63],["c",0.03,0,0.12,-0.36,0.21,-0.72],["c",0.06,-0.33,0.06,-1.2,0,-1.62],["c",-0.33,-1.71,-1.44,-3.48,-3.63,-5.7],["z"]],w:6.693,h:26.337},"flags.u32nd":{d:[["M",-0.42,11.247],["l",0,-11.25],["l",0.21,0],["l",0.21,0],["l",0,0.36],["c",0.09,1.68,0.69,3.27,2.07,5.46],["l",0.87,1.35],["c",1.02,1.62,1.47,2.37,1.86,3.18],["c",0.48,1.02,0.78,1.92,0.93,2.88],["c",0.06,0.48,0.06,1.5,0,1.89],["c",-0.09,0.42,-0.21,0.87,-0.36,1.26],["l",-0.12,0.3],["l",0.15,0.39],["c",0.69,1.56,0.84,2.88,0.54,4.38],["c",-0.09,0.45,-0.27,1.08,-0.45,1.47],["l",-0.12,0.24],["l",0.18,0.36],["c",0.33,0.72,0.57,1.56,0.69,2.34],["c",0.12,1.02,-0.06,2.52,-0.42,3.84],["c",-0.27,0.93,-0.75,2.13,-0.93,2.31],["c",-0.18,0.15,-0.45,0.18,-0.66,0.09],["c",-0.18,-0.09,-0.27,-0.18,-0.33,-0.33],["c",-0.09,-0.18,-0.06,-0.3,0.06,-0.6],["c",0.21,-0.36,0.42,-0.9,0.57,-1.38],["c",0.51,-1.41,0.69,-3.06,0.48,-4.08],["c",-0.15,-0.81,-0.57,-1.68,-1.2,-2.55],["c",-0.72,-0.99,-1.83,-2.13,-3.3,-3.33],["l",-0.48,-0.42],["l",-0.03,1.53],["l",0,1.56],["l",-0.21,0],["l",-0.21,0],["l",0,-11.25],["z"],["m",1.26,-3.96],["c",-0.27,-0.3,-0.54,-0.6,-0.66,-0.72],["l",-0.18,-0.21],["l",0,0.42],["c",0.06,0.87,0.24,1.74,0.66,2.67],["c",0.36,0.87,0.96,1.86,1.92,3.18],["c",0.21,0.33,0.63,0.87,0.87,1.23],["c",0.27,0.39,0.6,0.84,0.75,1.08],["l",0.27,0.39],["l",0.03,-0.12],["c",0.12,-0.45,0.15,-1.05,0.09,-1.59],["c",-0.27,-1.86,-1.38,-3.78,-3.75,-6.33],["z"],["m",-0.27,6.09],["c",-0.27,-0.21,-0.48,-0.42,-0.51,-0.45],["c",-0.06,-0.03,-0.06,-0.03,-0.06,0.21],["c",0,0.9,0.3,2.04,0.81,3.09],["c",0.48,1.02,0.96,1.77,2.37,3.63],["c",0.6,0.78,1.05,1.44,1.29,1.77],["c",0.06,0.12,0.15,0.21,0.15,0.18],["c",0.03,-0.03,0.18,-0.57,0.24,-0.87],["c",0.06,-0.45,0.06,-1.32,-0.03,-1.74],["c",-0.09,-0.48,-0.24,-0.9,-0.51,-1.44],["c",-0.66,-1.35,-1.83,-2.7,-3.75,-4.38],["z"]],w:6.697,h:32.145},"flags.u64th":{d:[["M",-0.42,15],["l",0,-15],["l",0.21,0],["l",0.21,0],["l",0,0.36],["c",0.06,1.2,0.39,2.37,1.02,3.66],["c",0.39,0.81,0.84,1.56,1.8,3.09],["c",0.81,1.26,1.05,1.68,1.35,2.22],["c",0.87,1.5,1.35,2.79,1.56,4.08],["c",0.06,0.54,0.06,1.56,-0.03,2.04],["c",-0.09,0.48,-0.21,0.99,-0.36,1.35],["l",-0.12,0.27],["l",0.12,0.27],["c",0.09,0.15,0.21,0.45,0.27,0.66],["c",0.69,1.89,0.63,3.66,-0.18,5.46],["l",-0.18,0.39],["l",0.15,0.33],["c",0.3,0.66,0.51,1.44,0.63,2.1],["c",0.06,0.48,0.06,1.35,0,1.71],["c",-0.15,0.57,-0.42,1.2,-0.78,1.68],["l",-0.21,0.27],["l",0.18,0.33],["c",0.57,1.05,0.93,2.13,1.02,3.18],["c",0.06,0.72,0,1.83,-0.21,2.79],["c",-0.18,1.02,-0.63,2.34,-1.02,3.09],["c",-0.15,0.33,-0.48,0.45,-0.78,0.3],["c",-0.18,-0.09,-0.27,-0.18,-0.33,-0.33],["c",-0.09,-0.18,-0.06,-0.3,0.03,-0.54],["c",0.75,-1.5,1.23,-3.45,1.17,-4.89],["c",-0.06,-1.02,-0.42,-2.01,-1.17,-3.15],["c",-0.48,-0.72,-1.02,-1.35,-1.89,-2.22],["c",-0.57,-0.57,-1.56,-1.5,-1.92,-1.77],["l",-0.12,-0.09],["l",0,1.68],["l",0,1.68],["l",-0.21,0],["l",-0.21,0],["l",0,-15],["z"],["m",0.93,-8.07],["c",-0.27,-0.3,-0.48,-0.54,-0.51,-0.54],["c",-0,0,-0,0.69,0.03,1.02],["c",0.15,1.47,0.75,2.94,2.04,4.83],["l",1.08,1.53],["c",0.39,0.57,0.84,1.2,0.99,1.44],["c",0.15,0.24,0.3,0.45,0.3,0.45],["c",-0,0,0.03,-0.09,0.06,-0.21],["c",0.36,-1.59,-0.15,-3.33,-1.47,-5.4],["c",-0.63,-0.93,-1.35,-1.83,-2.52,-3.12],["z"],["m",0.06,6.72],["c",-0.24,-0.21,-0.48,-0.42,-0.51,-0.45],["l",-0.06,-0.06],["l",0,0.33],["c",0,1.2,0.3,2.34,0.93,3.6],["c",0.45,0.9,0.96,1.68,2.25,3.51],["c",0.39,0.54,0.84,1.17,1.02,1.44],["c",0.21,0.33,0.33,0.51,0.33,0.48],["c",0.06,-0.09,0.21,-0.63,0.3,-0.99],["c",0.06,-0.33,0.06,-0.45,0.06,-0.96],["c",-0,-0.6,-0.03,-0.84,-0.18,-1.35],["c",-0.3,-1.08,-1.02,-2.28,-2.13,-3.57],["c",-0.39,-0.45,-1.44,-1.47,-2.01,-1.98],["z"],["m",0,6.72],["c",-0.24,-0.21,-0.48,-0.39,-0.51,-0.42],["l",-0.06,-0.06],["l",0,0.33],["c",0,1.41,0.45,2.82,1.38,4.35],["c",0.42,0.72,0.72,1.14,1.86,2.73],["c",0.36,0.45,0.75,0.99,0.87,1.2],["c",0.15,0.21,0.3,0.36,0.3,0.36],["c",0.06,0,0.3,-0.48,0.39,-0.75],["c",0.09,-0.36,0.12,-0.63,0.12,-1.05],["c",-0.06,-1.05,-0.45,-2.04,-1.2,-3.18],["c",-0.57,-0.87,-1.11,-1.53,-2.07,-2.49],["c",-0.36,-0.33,-0.84,-0.78,-1.08,-1.02],["z"]],w:6.682,h:39.694},"flags.d8th":{d:[["M",5.67,-21.63],["c",0.24,-0.12,0.54,-0.06,0.69,0.15],["c",0.06,0.06,0.21,0.36,0.39,0.66],["c",0.84,1.77,1.26,3.36,1.32,5.1],["c",0.03,1.29,-0.21,2.37,-0.81,3.63],["c",-0.6,1.23,-1.26,2.13,-3.21,4.38],["c",-1.35,1.53,-1.86,2.19,-2.4,2.97],["c",-0.63,0.93,-1.11,1.92,-1.38,2.79],["c",-0.15,0.54,-0.27,1.35,-0.27,1.8],["l",0,0.15],["l",-0.21,-0],["l",-0.21,-0],["l",0,-3.75],["l",0,-3.75],["l",0.21,0],["l",0.21,0],["l",0.48,-0.3],["c",1.83,-1.11,3.12,-2.1,4.17,-3.12],["c",0.78,-0.81,1.32,-1.53,1.71,-2.31],["c",0.45,-0.93,0.6,-1.74,0.51,-2.88],["c",-0.12,-1.56,-0.63,-3.18,-1.47,-4.68],["c",-0.12,-0.21,-0.15,-0.33,-0.06,-0.51],["c",0.06,-0.15,0.15,-0.24,0.33,-0.33],["z"]],w:8.492,h:21.691},"flags.ugrace":{d:[["M",6.03,6.93],["c",0.15,-0.09,0.33,-0.06,0.51,0],["c",0.15,0.09,0.21,0.15,0.3,0.33],["c",0.09,0.18,0.06,0.39,-0.03,0.54],["c",-0.06,0.15,-10.89,8.88,-11.07,8.97],["c",-0.15,0.09,-0.33,0.06,-0.48,0],["c",-0.18,-0.09,-0.24,-0.15,-0.33,-0.33],["c",-0.09,-0.18,-0.06,-0.39,0.03,-0.54],["c",0.06,-0.15,10.89,-8.88,11.07,-8.97],["z"]],w:12.019,h:9.954},"flags.dgrace":{d:[["M",-6.06,-15.93],["c",0.18,-0.09,0.33,-0.12,0.48,-0.06],["c",0.18,0.09,14.01,8.04,14.1,8.1],["c",0.12,0.12,0.18,0.33,0.18,0.51],["c",-0.03,0.21,-0.15,0.39,-0.36,0.48],["c",-0.18,0.09,-0.33,0.12,-0.48,0.06],["c",-0.18,-0.09,-14.01,-8.04,-14.1,-8.1],["c",-0.12,-0.12,-0.18,-0.33,-0.18,-0.51],["c",0.03,-0.21,0.15,-0.39,0.36,-0.48],["z"]],w:15.12,h:9.212},"flags.d16th":{d:[["M",6.84,-22.53],["c",0.27,-0.12,0.57,-0.06,0.72,0.15],["c",0.15,0.15,0.33,0.87,0.45,1.56],["c",0.06,0.33,0.06,1.35,0,1.65],["c",-0.06,0.33,-0.15,0.78,-0.27,1.11],["c",-0.12,0.33,-0.45,0.96,-0.66,1.32],["l",-0.18,0.27],["l",0.09,0.18],["c",0.48,1.02,0.72,2.25,0.69,3.3],["c",-0.06,1.23,-0.42,2.28,-1.26,3.45],["c",-0.57,0.87,-0.99,1.32,-3,3.39],["c",-1.56,1.56,-2.22,2.4,-2.76,3.45],["c",-0.42,0.84,-0.66,1.8,-0.66,2.55],["l",0,0.15],["l",-0.21,-0],["l",-0.21,-0],["l",0,-7.5],["l",0,-7.5],["l",0.21,-0],["l",0.21,-0],["l",0,1.14],["l",0,1.11],["l",0.27,-0.15],["c",1.11,-0.57,1.77,-0.99,2.52,-1.47],["c",2.37,-1.56,3.69,-3.15,4.05,-4.83],["c",0.03,-0.18,0.03,-0.39,0.03,-0.78],["c",0,-0.6,-0.03,-0.93,-0.24,-1.5],["c",-0.06,-0.18,-0.12,-0.39,-0.15,-0.45],["c",-0.03,-0.24,0.12,-0.48,0.36,-0.6],["z"],["m",-0.63,7.5],["c",-0.06,-0.18,-0.15,-0.36,-0.15,-0.36],["c",-0.03,0,-0.03,0.03,-0.06,0.06],["c",-0.06,0.12,-0.96,1.02,-1.95,1.98],["c",-0.63,0.57,-1.26,1.17,-1.44,1.35],["c",-1.53,1.62,-2.28,2.85,-2.55,4.32],["c",-0.03,0.18,-0.03,0.54,-0.06,0.99],["l",0,0.69],["l",0.18,-0.09],["c",0.93,-0.54,2.1,-1.29,2.82,-1.83],["c",0.69,-0.51,1.02,-0.81,1.53,-1.29],["c",1.86,-1.89,2.37,-3.66,1.68,-5.82],["z"]],w:8.475,h:22.591},"flags.d32nd":{d:[["M",6.794,-29.13],["c",0.27,-0.12,0.57,-0.06,0.72,0.15],["c",0.12,0.12,0.27,0.63,0.36,1.11],["c",0.33,1.59,0.06,3.06,-0.81,4.47],["l",-0.18,0.27],["l",0.09,0.15],["c",0.12,0.24,0.33,0.69,0.45,1.05],["c",0.63,1.83,0.45,3.57,-0.57,5.22],["l",-0.18,0.3],["l",0.15,0.27],["c",0.42,0.87,0.6,1.71,0.57,2.61],["c",-0.06,1.29,-0.48,2.46,-1.35,3.78],["c",-0.54,0.81,-0.93,1.29,-2.46,3],["c",-0.51,0.54,-1.05,1.17,-1.26,1.41],["c",-1.56,1.86,-2.25,3.36,-2.37,5.01],["l",0,0.33],["l",-0.21,-0],["l",-0.21,-0],["l",0,-11.25],["l",0,-11.25],["l",0.21,0],["l",0.21,0],["l",0,1.35],["l",0.03,1.35],["l",0.78,-0.39],["c",1.38,-0.69,2.34,-1.26,3.24,-1.92],["c",1.38,-1.02,2.28,-2.13,2.64,-3.21],["c",0.15,-0.48,0.18,-0.72,0.18,-1.29],["c",0,-0.57,-0.06,-0.9,-0.24,-1.47],["c",-0.06,-0.18,-0.12,-0.39,-0.15,-0.45],["c",-0.03,-0.24,0.12,-0.48,0.36,-0.6],["z"],["m",-0.63,7.2],["c",-0.09,-0.18,-0.12,-0.21,-0.12,-0.15],["c",-0.03,0.09,-1.02,1.08,-2.04,2.04],["c",-1.17,1.08,-1.65,1.56,-2.07,2.04],["c",-0.84,0.96,-1.38,1.86,-1.68,2.76],["c",-0.21,0.57,-0.27,0.99,-0.3,1.65],["l",0,0.54],["l",0.66,-0.33],["c",3.57,-1.86,5.49,-3.69,5.94,-5.7],["c",0.06,-0.39,0.06,-1.2,-0.03,-1.65],["c",-0.06,-0.39,-0.24,-0.9,-0.36,-1.2],["z"],["m",-0.06,7.2],["c",-0.06,-0.15,-0.12,-0.33,-0.15,-0.45],["l",-0.06,-0.18],["l",-0.18,0.21],["l",-1.83,1.83],["c",-0.87,0.9,-1.77,1.8,-1.95,2.01],["c",-1.08,1.29,-1.62,2.31,-1.89,3.51],["c",-0.06,0.3,-0.06,0.51,-0.09,0.93],["l",0,0.57],["l",0.09,-0.06],["c",0.75,-0.45,1.89,-1.26,2.52,-1.74],["c",0.81,-0.66,1.74,-1.53,2.22,-2.16],["c",1.26,-1.53,1.68,-3.06,1.32,-4.47],["z"]],w:8.475,h:29.191},"flags.d64th":{d:[["M",7.08,-32.88],["c",0.3,-0.12,0.66,-0.03,0.78,0.24],["c",0.18,0.33,0.27,2.1,0.15,2.64],["c",-0.09,0.39,-0.21,0.78,-0.39,1.08],["l",-0.15,0.3],["l",0.09,0.27],["c",0.03,0.12,0.09,0.45,0.12,0.69],["c",0.27,1.44,0.18,2.55,-0.3,3.6],["l",-0.12,0.33],["l",0.06,0.42],["c",0.27,1.35,0.33,2.82,0.21,3.63],["c",-0.12,0.6,-0.3,1.23,-0.57,1.8],["l",-0.15,0.27],["l",0.03,0.42],["c",0.06,1.02,0.06,2.7,0.03,3.06],["c",-0.15,1.47,-0.66,2.76,-1.74,4.41],["c",-0.45,0.69,-0.75,1.11,-1.74,2.37],["c",-1.05,1.38,-1.5,1.98,-1.95,2.73],["c",-0.93,1.5,-1.38,2.82,-1.44,4.2],["l",0,0.42],["l",-0.21,-0],["l",-0.21,-0],["l",0,-15],["l",0,-15],["l",0.21,-0],["l",0.21,-0],["l",0,1.86],["l",0,1.89],["c",0,-0,0.21,-0.03,0.45,-0.09],["c",2.22,-0.39,4.08,-1.11,5.19,-2.01],["c",0.63,-0.54,1.02,-1.14,1.2,-1.8],["c",0.06,-0.3,0.06,-1.14,-0.03,-1.65],["c",-0.03,-0.18,-0.06,-0.39,-0.09,-0.48],["c",-0.03,-0.24,0.12,-0.48,0.36,-0.6],["z"],["m",-0.45,6.15],["c",-0.03,-0.18,-0.06,-0.42,-0.06,-0.54],["l",-0.03,-0.18],["l",-0.33,0.3],["c",-0.42,0.36,-0.87,0.72,-1.68,1.29],["c",-1.98,1.38,-2.25,1.59,-2.85,2.16],["c",-0.75,0.69,-1.23,1.44,-1.47,2.19],["c",-0.15,0.45,-0.18,0.63,-0.21,1.35],["l",0,0.66],["l",0.39,-0.18],["c",1.83,-0.9,3.45,-1.95,4.47,-2.91],["c",0.93,-0.9,1.53,-1.83,1.74,-2.82],["c",0.06,-0.33,0.06,-0.87,0.03,-1.32],["z"],["m",-0.27,4.86],["c",-0.03,-0.21,-0.06,-0.36,-0.06,-0.36],["c",0,-0.03,-0.12,0.09,-0.24,0.24],["c",-0.39,0.48,-0.99,1.08,-2.16,2.19],["c",-1.47,1.38,-1.92,1.83,-2.46,2.49],["c",-0.66,0.87,-1.08,1.74,-1.29,2.58],["c",-0.09,0.42,-0.15,0.87,-0.15,1.44],["l",0,0.54],["l",0.48,-0.33],["c",1.5,-1.02,2.58,-1.89,3.51,-2.82],["c",1.47,-1.47,2.25,-2.85,2.4,-4.26],["c",0.03,-0.39,0.03,-1.17,-0.03,-1.71],["z"],["m",-0.66,7.68],["c",0.03,-0.15,0.03,-0.6,0.03,-0.99],["l",0,-0.72],["l",-0.27,0.33],["l",-1.74,1.98],["c",-1.77,1.92,-2.43,2.76,-2.97,3.9],["c",-0.51,1.02,-0.72,1.77,-0.75,2.91],["c",0,0.63,0,0.63,0.06,0.6],["c",0.03,-0.03,0.3,-0.27,0.63,-0.54],["c",0.66,-0.6,1.86,-1.8,2.31,-2.31],["c",1.65,-1.89,2.52,-3.54,2.7,-5.16],["z"]],w:8.485,h:32.932},"clefs.C":{d:[["M",0.06,-14.94],["l",0.09,-0.06],["l",1.92,0],["l",1.92,0],["l",0.09,0.06],["l",0.06,0.09],["l",0,14.85],["l",0,14.82],["l",-0.06,0.09],["l",-0.09,0.06],["l",-1.92,0],["l",-1.92,0],["l",-0.09,-0.06],["l",-0.06,-0.09],["l",0,-14.82],["l",0,-14.85],["z"],["m",5.37,0],["c",0.09,-0.06,0.09,-0.06,0.57,-0.06],["c",0.45,0,0.45,0,0.54,0.06],["l",0.06,0.09],["l",0,7.14],["l",0,7.11],["l",0.09,-0.06],["c",0.18,-0.18,0.72,-0.84,0.96,-1.2],["c",0.3,-0.45,0.66,-1.17,0.84,-1.65],["c",0.36,-0.9,0.57,-1.83,0.6,-2.79],["c",0.03,-0.48,0.03,-0.54,0.09,-0.63],["c",0.12,-0.18,0.36,-0.21,0.54,-0.12],["c",0.18,0.09,0.21,0.15,0.24,0.66],["c",0.06,0.87,0.21,1.56,0.57,2.22],["c",0.51,1.02,1.26,1.68,2.22,1.92],["c",0.21,0.06,0.33,0.06,0.78,0.06],["c",0.45,-0,0.57,-0,0.84,-0.06],["c",0.45,-0.12,0.81,-0.33,1.08,-0.6],["c",0.57,-0.57,0.87,-1.41,0.99,-2.88],["c",0.06,-0.54,0.06,-3,0,-3.57],["c",-0.21,-2.58,-0.84,-3.87,-2.16,-4.5],["c",-0.48,-0.21,-1.17,-0.36,-1.77,-0.36],["c",-0.69,0,-1.29,0.27,-1.5,0.72],["c",-0.06,0.15,-0.06,0.21,-0.06,0.42],["c",0,0.24,0,0.3,0.06,0.45],["c",0.12,0.24,0.24,0.39,0.63,0.66],["c",0.42,0.3,0.57,0.48,0.69,0.72],["c",0.06,0.15,0.06,0.21,0.06,0.48],["c",0,0.39,-0.03,0.63,-0.21,0.96],["c",-0.3,0.6,-0.87,1.08,-1.5,1.26],["c",-0.27,0.06,-0.87,0.06,-1.14,0],["c",-0.78,-0.24,-1.44,-0.87,-1.65,-1.68],["c",-0.12,-0.42,-0.09,-1.17,0.09,-1.71],["c",0.51,-1.65,1.98,-2.82,3.81,-3.09],["c",0.84,-0.09,2.46,0.03,3.51,0.27],["c",2.22,0.57,3.69,1.8,4.44,3.75],["c",0.36,0.93,0.57,2.13,0.57,3.36],["c",-0,1.44,-0.48,2.73,-1.38,3.81],["c",-1.26,1.5,-3.27,2.43,-5.28,2.43],["c",-0.48,-0,-0.51,-0,-0.75,-0.09],["c",-0.15,-0.03,-0.48,-0.21,-0.78,-0.36],["c",-0.69,-0.36,-0.87,-0.42,-1.26,-0.42],["c",-0.27,-0,-0.3,-0,-0.51,0.09],["c",-0.57,0.3,-0.81,0.9,-0.81,2.1],["c",-0,1.23,0.24,1.83,0.81,2.13],["c",0.21,0.09,0.24,0.09,0.51,0.09],["c",0.39,-0,0.57,-0.06,1.26,-0.42],["c",0.3,-0.15,0.63,-0.33,0.78,-0.36],["c",0.24,-0.09,0.27,-0.09,0.75,-0.09],["c",2.01,-0,4.02,0.93,5.28,2.4],["c",0.9,1.11,1.38,2.4,1.38,3.84],["c",-0,1.5,-0.3,2.88,-0.84,3.96],["c",-0.78,1.59,-2.19,2.64,-4.17,3.15],["c",-1.05,0.24,-2.67,0.36,-3.51,0.27],["c",-1.83,-0.27,-3.3,-1.44,-3.81,-3.09],["c",-0.18,-0.54,-0.21,-1.29,-0.09,-1.74],["c",0.15,-0.6,0.63,-1.2,1.23,-1.47],["c",0.36,-0.18,0.57,-0.21,0.99,-0.21],["c",0.42,0,0.63,0.03,1.02,0.21],["c",0.42,0.21,0.84,0.63,1.05,1.05],["c",0.18,0.36,0.21,0.6,0.21,0.96],["c",-0,0.3,-0,0.36,-0.06,0.51],["c",-0.12,0.24,-0.27,0.42,-0.69,0.72],["c",-0.57,0.42,-0.69,0.63,-0.69,1.08],["c",-0,0.24,-0,0.3,0.06,0.45],["c",0.12,0.21,0.3,0.39,0.57,0.54],["c",0.42,0.18,0.87,0.21,1.53,0.15],["c",1.08,-0.15,1.8,-0.57,2.34,-1.32],["c",0.54,-0.75,0.84,-1.83,0.99,-3.51],["c",0.06,-0.57,0.06,-3.03,-0,-3.57],["c",-0.12,-1.47,-0.42,-2.31,-0.99,-2.88],["c",-0.27,-0.27,-0.63,-0.48,-1.08,-0.6],["c",-0.27,-0.06,-0.39,-0.06,-0.84,-0.06],["c",-0.45,0,-0.57,0,-0.78,0.06],["c",-1.14,0.27,-2.01,1.17,-2.46,2.49],["c",-0.21,0.57,-0.3,0.99,-0.33,1.65],["c",-0.03,0.51,-0.06,0.57,-0.24,0.66],["c",-0.12,0.06,-0.27,0.06,-0.39,0],["c",-0.21,-0.09,-0.21,-0.15,-0.24,-0.75],["c",-0.09,-1.92,-0.78,-3.72,-2.01,-5.19],["c",-0.18,-0.21,-0.36,-0.42,-0.39,-0.45],["l",-0.09,-0.06],["l",-0,7.11],["l",-0,7.14],["l",-0.06,0.09],["c",-0.09,0.06,-0.09,0.06,-0.54,0.06],["c",-0.48,0,-0.48,0,-0.57,-0.06],["l",-0.06,-0.09],["l",-0,-14.82],["l",-0,-14.85],["z"]],w:20.31,h:29.97},"clefs.F":{d:[["M",6.3,-7.8],["c",0.36,-0.03,1.65,0,2.13,0.03],["c",3.6,0.42,6.03,2.1,6.93,4.86],["c",0.27,0.84,0.36,1.5,0.36,2.58],["c",0,0.9,-0.03,1.35,-0.18,2.16],["c",-0.78,3.78,-3.54,7.08,-8.37,9.96],["c",-1.74,1.05,-3.87,2.13,-6.18,3.12],["c",-0.39,0.18,-0.75,0.33,-0.81,0.36],["c",-0.06,0.03,-0.15,0.06,-0.18,0.06],["c",-0.15,0,-0.33,-0.18,-0.33,-0.33],["c",0,-0.15,0.06,-0.21,0.51,-0.48],["c",3,-1.77,5.13,-3.21,6.84,-4.74],["c",0.51,-0.45,1.59,-1.5,1.95,-1.95],["c",1.89,-2.19,2.88,-4.32,3.15,-6.78],["c",0.06,-0.42,0.06,-1.77,0,-2.19],["c",-0.24,-2.01,-0.93,-3.63,-2.04,-4.71],["c",-0.63,-0.63,-1.29,-1.02,-2.07,-1.2],["c",-1.62,-0.39,-3.36,0.15,-4.56,1.44],["c",-0.54,0.6,-1.05,1.47,-1.32,2.22],["l",-0.09,0.21],["l",0.24,-0.12],["c",0.39,-0.21,0.63,-0.24,1.11,-0.24],["c",0.3,0,0.45,0,0.66,0.06],["c",1.92,0.48,2.85,2.55,1.95,4.38],["c",-0.45,0.99,-1.41,1.62,-2.46,1.71],["c",-1.47,0.09,-2.91,-0.87,-3.39,-2.25],["c",-0.18,-0.57,-0.21,-1.32,-0.03,-2.28],["c",0.39,-2.25,1.83,-4.2,3.81,-5.19],["c",0.69,-0.36,1.59,-0.6,2.37,-0.69],["z"],["m",11.58,2.52],["c",0.84,-0.21,1.71,0.3,1.89,1.14],["c",0.3,1.17,-0.72,2.19,-1.89,1.89],["c",-0.99,-0.21,-1.5,-1.32,-1.02,-2.25],["c",0.18,-0.39,0.6,-0.69,1.02,-0.78],["z"],["m",0,7.5],["c",0.84,-0.21,1.71,0.3,1.89,1.14],["c",0.21,0.87,-0.3,1.71,-1.14,1.89],["c",-0.87,0.21,-1.71,-0.3,-1.89,-1.14],["c",-0.21,-0.84,0.3,-1.71,1.14,-1.89],["z"]],w:20.153,h:23.142},"clefs.G":{d:[["M",9.69,-37.41],["c",0.09,-0.09,0.24,-0.06,0.36,0],["c",0.12,0.09,0.57,0.6,0.96,1.11],["c",1.77,2.34,3.21,5.85,3.57,8.73],["c",0.21,1.56,0.03,3.27,-0.45,4.86],["c",-0.69,2.31,-1.92,4.47,-4.23,7.44],["c",-0.3,0.39,-0.57,0.72,-0.6,0.75],["c",-0.03,0.06,0,0.15,0.18,0.78],["c",0.54,1.68,1.38,4.44,1.68,5.49],["l",0.09,0.42],["l",0.39,-0],["c",1.47,0.09,2.76,0.51,3.96,1.29],["c",1.83,1.23,3.06,3.21,3.39,5.52],["c",0.09,0.45,0.12,1.29,0.06,1.74],["c",-0.09,1.02,-0.33,1.83,-0.75,2.73],["c",-0.84,1.71,-2.28,3.06,-4.02,3.72],["l",-0.33,0.12],["l",0.03,1.26],["c",0,1.74,-0.06,3.63,-0.21,4.62],["c",-0.45,3.06,-2.19,5.49,-4.47,6.21],["c",-0.57,0.18,-0.9,0.21,-1.59,0.21],["c",-0.69,-0,-1.02,-0.03,-1.65,-0.21],["c",-1.14,-0.27,-2.13,-0.84,-2.94,-1.65],["c",-0.99,-0.99,-1.56,-2.16,-1.71,-3.54],["c",-0.09,-0.81,0.06,-1.53,0.45,-2.13],["c",0.63,-0.99,1.83,-1.56,3,-1.53],["c",1.5,0.09,2.64,1.32,2.73,2.94],["c",0.06,1.47,-0.93,2.7,-2.37,2.97],["c",-0.45,0.06,-0.84,0.03,-1.29,-0.09],["l",-0.21,-0.09],["l",0.09,0.12],["c",0.39,0.54,0.78,0.93,1.32,1.26],["c",1.35,0.87,3.06,1.02,4.35,0.36],["c",1.44,-0.72,2.52,-2.28,2.97,-4.35],["c",0.15,-0.66,0.24,-1.5,0.3,-3.03],["c",0.03,-0.84,0.03,-2.94,-0,-3],["c",-0.03,-0,-0.18,-0,-0.36,0.03],["c",-0.66,0.12,-0.99,0.12,-1.83,0.12],["c",-1.05,-0,-1.71,-0.06,-2.61,-0.3],["c",-4.02,-0.99,-7.11,-4.35,-7.8,-8.46],["c",-0.12,-0.66,-0.12,-0.99,-0.12,-1.83],["c",-0,-0.84,-0,-1.14,0.15,-1.92],["c",0.36,-2.28,1.41,-4.62,3.3,-7.29],["l",2.79,-3.6],["c",0.54,-0.66,0.96,-1.2,0.96,-1.23],["c",-0,-0.03,-0.09,-0.33,-0.18,-0.69],["c",-0.96,-3.21,-1.41,-5.28,-1.59,-7.68],["c",-0.12,-1.38,-0.15,-3.09,-0.06,-3.96],["c",0.33,-2.67,1.38,-5.07,3.12,-7.08],["c",0.36,-0.42,0.99,-1.05,1.17,-1.14],["z"],["m",2.01,4.71],["c",-0.15,-0.3,-0.3,-0.54,-0.3,-0.54],["c",-0.03,0,-0.18,0.09,-0.3,0.21],["c",-2.4,1.74,-3.87,4.2,-4.26,7.11],["c",-0.06,0.54,-0.06,1.41,-0.03,1.89],["c",0.09,1.29,0.48,3.12,1.08,5.22],["c",0.15,0.42,0.24,0.78,0.24,0.81],["c",0,0.03,0.84,-1.11,1.23,-1.68],["c",1.89,-2.73,2.88,-5.07,3.15,-7.53],["c",0.09,-0.57,0.12,-1.74,0.06,-2.37],["c",-0.09,-1.23,-0.27,-1.92,-0.87,-3.12],["z"],["m",-2.94,20.7],["c",-0.21,-0.72,-0.39,-1.32,-0.42,-1.32],["c",0,0,-1.2,1.47,-1.86,2.37],["c",-2.79,3.63,-4.02,6.3,-4.35,9.3],["c",-0.03,0.21,-0.03,0.69,-0.03,1.08],["c",0,0.69,0,0.75,0.06,1.11],["c",0.12,0.54,0.27,0.99,0.51,1.47],["c",0.69,1.38,1.83,2.55,3.42,3.42],["c",0.96,0.54,2.07,0.9,3.21,1.08],["c",0.78,0.12,2.04,0.12,2.94,-0.03],["c",0.51,-0.06,0.45,-0.03,0.42,-0.3],["c",-0.24,-3.33,-0.72,-6.33,-1.62,-10.08],["c",-0.09,-0.39,-0.18,-0.75,-0.18,-0.78],["c",-0.03,-0.03,-0.42,-0,-0.81,0.09],["c",-0.9,0.18,-1.65,0.57,-2.22,1.14],["c",-0.72,0.72,-1.08,1.65,-1.05,2.64],["c",0.06,0.96,0.48,1.83,1.23,2.58],["c",0.36,0.36,0.72,0.63,1.17,0.9],["c",0.33,0.18,0.36,0.21,0.42,0.33],["c",0.18,0.42,-0.18,0.9,-0.6,0.87],["c",-0.18,-0.03,-0.84,-0.36,-1.26,-0.63],["c",-0.78,-0.51,-1.38,-1.11,-1.86,-1.83],["c",-1.77,-2.7,-0.99,-6.42,1.71,-8.19],["c",0.3,-0.21,0.81,-0.48,1.17,-0.63],["c",0.3,-0.09,1.02,-0.3,1.14,-0.3],["c",0.06,-0,0.09,-0,0.09,-0.03],["c",0.03,-0.03,-0.51,-1.92,-1.23,-4.26],["z"],["m",3.78,7.41],["c",-0.18,-0.03,-0.36,-0.06,-0.39,-0.06],["c",-0.03,0,0,0.21,0.18,1.02],["c",0.75,3.18,1.26,6.3,1.5,9.09],["c",0.06,0.72,0,0.69,0.51,0.42],["c",0.78,-0.36,1.44,-0.96,1.98,-1.77],["c",1.08,-1.62,1.2,-3.69,0.3,-5.55],["c",-0.81,-1.62,-2.31,-2.79,-4.08,-3.15],["z"]],w:19.051,h:57.057},"clefs.perc":{d:[["M",5.07,-7.44],["l",0.09,-0.06],["l",1.53,0],["l",1.53,0],["l",0.09,0.06],["l",0.06,0.09],["l",0,7.35],["l",0,7.32],["l",-0.06,0.09],["l",-0.09,0.06],["l",-1.53,-0],["l",-1.53,-0],["l",-0.09,-0.06],["l",-0.06,-0.09],["l",0,-7.32],["l",0,-7.35],["z"],["m",6.63,0],["l",0.09,-0.06],["l",1.53,0],["l",1.53,0],["l",0.09,0.06],["l",0.06,0.09],["l",0,7.35],["l",0,7.32],["l",-0.06,0.09],["l",-0.09,0.06],["l",-1.53,-0],["l",-1.53,-0],["l",-0.09,-0.06],["l",-0.06,-0.09],["l",0,-7.32],["l",0,-7.35],["z"]],w:9.99,h:14.97},"timesig.common":{d:[["M",6.66,-7.826],["c",0.72,-0.06,1.41,-0.03,1.98,0.09],["c",1.2,0.27,2.34,0.96,3.09,1.92],["c",0.63,0.81,1.08,1.86,1.14,2.73],["c",0.06,1.02,-0.51,1.92,-1.44,2.22],["c",-0.24,0.09,-0.3,0.09,-0.63,0.09],["c",-0.33,-0,-0.42,-0,-0.63,-0.06],["c",-0.66,-0.24,-1.14,-0.63,-1.41,-1.2],["c",-0.15,-0.3,-0.21,-0.51,-0.24,-0.9],["c",-0.06,-1.08,0.57,-2.04,1.56,-2.37],["c",0.18,-0.06,0.27,-0.06,0.63,-0.06],["l",0.45,0],["c",0.06,0.03,0.09,0.03,0.09,0],["c",0,0,-0.09,-0.12,-0.24,-0.27],["c",-1.02,-1.11,-2.55,-1.68,-4.08,-1.5],["c",-1.29,0.15,-2.04,0.69,-2.4,1.74],["c",-0.36,0.93,-0.42,1.89,-0.42,5.37],["c",0,2.97,0.06,3.96,0.24,4.77],["c",0.24,1.08,0.63,1.68,1.41,2.07],["c",0.81,0.39,2.16,0.45,3.18,0.09],["c",1.29,-0.45,2.37,-1.53,3.03,-2.97],["c",0.15,-0.33,0.33,-0.87,0.39,-1.17],["c",0.09,-0.24,0.15,-0.36,0.3,-0.39],["c",0.21,-0.03,0.42,0.15,0.39,0.36],["c",-0.06,0.39,-0.42,1.38,-0.69,1.89],["c",-0.96,1.8,-2.49,2.94,-4.23,3.18],["c",-0.99,0.12,-2.58,-0.06,-3.63,-0.45],["c",-0.96,-0.36,-1.71,-0.84,-2.4,-1.5],["c",-1.11,-1.11,-1.8,-2.61,-2.04,-4.56],["c",-0.06,-0.6,-0.06,-2.01,0,-2.61],["c",0.24,-1.95,0.9,-3.45,2.01,-4.56],["c",0.69,-0.66,1.44,-1.11,2.37,-1.47],["c",0.63,-0.24,1.47,-0.42,2.22,-0.48],["z"]],w:13.038,h:15.697},"timesig.cut":{d:[["M",6.24,-10.44],["c",0.09,-0.06,0.09,-0.06,0.48,-0.06],["c",0.36,0,0.36,0,0.45,0.06],["l",0.06,0.09],["l",0,1.23],["l",0,1.26],["l",0.27,0],["c",1.26,0,2.49,0.45,3.48,1.29],["c",1.05,0.87,1.8,2.28,1.89,3.48],["c",0.06,1.02,-0.51,1.92,-1.44,2.22],["c",-0.24,0.09,-0.3,0.09,-0.63,0.09],["c",-0.33,-0,-0.42,-0,-0.63,-0.06],["c",-0.66,-0.24,-1.14,-0.63,-1.41,-1.2],["c",-0.15,-0.3,-0.21,-0.51,-0.24,-0.9],["c",-0.06,-1.08,0.57,-2.04,1.56,-2.37],["c",0.18,-0.06,0.27,-0.06,0.63,-0.06],["l",0.45,-0],["c",0.06,0.03,0.09,0.03,0.09,-0],["c",0,-0.03,-0.45,-0.51,-0.66,-0.69],["c",-0.87,-0.69,-1.83,-1.05,-2.94,-1.11],["l",-0.42,0],["l",0,7.17],["l",0,7.14],["l",0.42,0],["c",0.69,-0.03,1.23,-0.18,1.86,-0.51],["c",1.05,-0.51,1.89,-1.47,2.46,-2.7],["c",0.15,-0.33,0.33,-0.87,0.39,-1.17],["c",0.09,-0.24,0.15,-0.36,0.3,-0.39],["c",0.21,-0.03,0.42,0.15,0.39,0.36],["c",-0.03,0.24,-0.21,0.78,-0.39,1.2],["c",-0.96,2.37,-2.94,3.9,-5.13,3.9],["l",-0.3,0],["l",0,1.26],["l",0,1.23],["l",-0.06,0.09],["c",-0.09,0.06,-0.09,0.06,-0.45,0.06],["c",-0.39,0,-0.39,0,-0.48,-0.06],["l",-0.06,-0.09],["l",0,-1.29],["l",0,-1.29],["l",-0.21,-0.03],["c",-1.23,-0.21,-2.31,-0.63,-3.21,-1.29],["c",-0.15,-0.09,-0.45,-0.36,-0.66,-0.57],["c",-1.11,-1.11,-1.8,-2.61,-2.04,-4.56],["c",-0.06,-0.6,-0.06,-2.01,0,-2.61],["c",0.24,-1.95,0.93,-3.45,2.04,-4.59],["c",0.42,-0.39,0.78,-0.66,1.26,-0.93],["c",0.75,-0.45,1.65,-0.75,2.61,-0.9],["l",0.21,-0.03],["l",0,-1.29],["l",0,-1.29],["z"],["m",-0.06,10.44],["c",0,-5.58,0,-6.99,-0.03,-6.99],["c",-0.15,0,-0.63,0.27,-0.87,0.45],["c",-0.45,0.36,-0.75,0.93,-0.93,1.77],["c",-0.18,0.81,-0.24,1.8,-0.24,4.74],["c",0,2.97,0.06,3.96,0.24,4.77],["c",0.24,1.08,0.66,1.68,1.41,2.07],["c",0.12,0.06,0.3,0.12,0.33,0.15],["l",0.09,0],["l",0,-6.96],["z"]],w:13.038,h:20.97},"0":{d:[["M",4.83,-14.97],["c",0.33,-0.03,1.11,0,1.47,0.06],["c",1.68,0.36,2.97,1.59,3.78,3.6],["c",1.2,2.97,0.81,6.96,-0.9,9.27],["c",-0.78,1.08,-1.71,1.71,-2.91,1.95],["c",-0.45,0.09,-1.32,0.09,-1.77,0],["c",-0.81,-0.18,-1.47,-0.51,-2.07,-1.02],["c",-2.34,-2.07,-3.15,-6.72,-1.74,-10.2],["c",0.87,-2.16,2.28,-3.42,4.14,-3.66],["z"],["m",1.11,0.87],["c",-0.21,-0.06,-0.69,-0.09,-0.87,-0.06],["c",-0.54,0.12,-0.87,0.42,-1.17,0.99],["c",-0.36,0.66,-0.51,1.56,-0.6,3],["c",-0.03,0.75,-0.03,4.59,-0,5.31],["c",0.09,1.5,0.27,2.4,0.6,3.06],["c",0.24,0.48,0.57,0.78,0.96,0.9],["c",0.27,0.09,0.78,0.09,1.05,-0],["c",0.39,-0.12,0.72,-0.42,0.96,-0.9],["c",0.33,-0.66,0.51,-1.56,0.6,-3.06],["c",0.03,-0.72,0.03,-4.56,-0,-5.31],["c",-0.09,-1.47,-0.27,-2.37,-0.6,-3.03],["c",-0.24,-0.48,-0.54,-0.78,-0.93,-0.9],["z"]],w:10.78,h:14.959},"1":{d:[["M",3.3,-15.06],["c",0.06,-0.06,0.21,-0.03,0.66,0.15],["c",0.81,0.39,1.08,0.39,1.83,0.03],["c",0.21,-0.09,0.39,-0.15,0.42,-0.15],["c",0.12,0,0.21,0.09,0.27,0.21],["c",0.06,0.12,0.06,0.33,0.06,5.94],["c",0,3.93,0,5.85,0.03,6.03],["c",0.06,0.36,0.15,0.69,0.27,0.96],["c",0.36,0.75,0.93,1.17,1.68,1.26],["c",0.3,0.03,0.39,0.09,0.39,0.3],["c",0,0.15,-0.03,0.18,-0.09,0.24],["c",-0.06,0.06,-0.09,0.06,-0.48,0.06],["c",-0.42,-0,-0.69,-0.03,-2.1,-0.24],["c",-0.9,-0.15,-1.77,-0.15,-2.67,-0],["c",-1.41,0.21,-1.68,0.24,-2.1,0.24],["c",-0.39,-0,-0.42,-0,-0.48,-0.06],["c",-0.06,-0.06,-0.06,-0.09,-0.06,-0.24],["c",0,-0.21,0.06,-0.27,0.36,-0.3],["c",0.75,-0.09,1.32,-0.51,1.68,-1.26],["c",0.12,-0.27,0.21,-0.6,0.27,-0.96],["c",0.03,-0.18,0.03,-1.59,0.03,-4.29],["c",0,-3.87,0,-4.05,-0.06,-4.14],["c",-0.09,-0.15,-0.18,-0.24,-0.39,-0.24],["c",-0.12,-0,-0.15,0.03,-0.21,0.06],["c",-0.03,0.06,-0.45,0.99,-0.96,2.13],["c",-0.48,1.14,-0.9,2.1,-0.93,2.16],["c",-0.06,0.15,-0.21,0.24,-0.33,0.24],["c",-0.24,0,-0.42,-0.18,-0.42,-0.39],["c",0,-0.06,3.27,-7.62,3.33,-7.74],["z"]],w:8.94,h:15.058},"2":{d:[["M",4.23,-14.97],["c",0.57,-0.06,1.68,0,2.34,0.18],["c",0.69,0.18,1.5,0.54,2.01,0.9],["c",1.35,0.96,1.95,2.25,1.77,3.81],["c",-0.15,1.35,-0.66,2.34,-1.68,3.15],["c",-0.6,0.48,-1.44,0.93,-3.12,1.65],["c",-1.32,0.57,-1.8,0.81,-2.37,1.14],["c",-0.57,0.33,-0.57,0.33,-0.24,0.27],["c",0.39,-0.09,1.26,-0.09,1.68,0],["c",0.72,0.15,1.41,0.45,2.1,0.9],["c",0.99,0.63,1.86,0.87,2.55,0.75],["c",0.24,-0.06,0.42,-0.15,0.57,-0.3],["c",0.12,-0.09,0.3,-0.42,0.3,-0.51],["c",0,-0.09,0.12,-0.21,0.24,-0.24],["c",0.18,-0.03,0.39,0.12,0.39,0.3],["c",0,0.12,-0.15,0.57,-0.3,0.87],["c",-0.54,1.02,-1.56,1.74,-2.79,2.01],["c",-0.42,0.09,-1.23,0.09,-1.62,0.03],["c",-0.81,-0.18,-1.32,-0.45,-2.01,-1.11],["c",-0.45,-0.45,-0.63,-0.57,-0.96,-0.69],["c",-0.84,-0.27,-1.89,0.12,-2.25,0.9],["c",-0.12,0.21,-0.21,0.54,-0.21,0.72],["c",0,0.12,-0.12,0.21,-0.27,0.24],["c",-0.15,0,-0.27,-0.03,-0.33,-0.15],["c",-0.09,-0.21,0.09,-1.08,0.33,-1.71],["c",0.24,-0.66,0.66,-1.26,1.29,-1.89],["c",0.45,-0.45,0.9,-0.81,1.92,-1.56],["c",1.29,-0.93,1.89,-1.44,2.34,-1.98],["c",0.87,-1.05,1.26,-2.19,1.2,-3.63],["c",-0.06,-1.29,-0.39,-2.31,-0.96,-2.91],["c",-0.36,-0.33,-0.72,-0.51,-1.17,-0.54],["c",-0.84,-0.03,-1.53,0.42,-1.59,1.05],["c",-0.03,0.33,0.12,0.6,0.57,1.14],["c",0.45,0.54,0.54,0.87,0.42,1.41],["c",-0.15,0.63,-0.54,1.11,-1.08,1.38],["c",-0.63,0.33,-1.2,0.33,-1.83,0],["c",-0.24,-0.12,-0.33,-0.18,-0.54,-0.39],["c",-0.18,-0.18,-0.27,-0.3,-0.36,-0.51],["c",-0.24,-0.45,-0.27,-0.84,-0.21,-1.38],["c",0.12,-0.75,0.45,-1.41,1.02,-1.98],["c",0.72,-0.72,1.74,-1.17,2.85,-1.32],["z"]],w:10.764,h:14.993},"3":{d:[["M",3.78,-14.97],["c",0.3,-0.03,1.41,0,1.83,0.06],["c",2.22,0.3,3.51,1.32,3.72,2.91],["c",0.03,0.33,0.03,1.26,-0.03,1.65],["c",-0.12,0.84,-0.48,1.47,-1.05,1.77],["c",-0.27,0.15,-0.36,0.24,-0.45,0.39],["c",-0.09,0.21,-0.09,0.36,0,0.57],["c",0.09,0.15,0.18,0.24,0.51,0.39],["c",0.75,0.42,1.23,1.14,1.41,2.13],["c",0.06,0.42,0.06,1.35,0,1.71],["c",-0.18,0.81,-0.48,1.38,-1.02,1.95],["c",-0.75,0.72,-1.8,1.2,-3.18,1.38],["c",-0.42,0.06,-1.56,0.06,-1.95,0],["c",-1.89,-0.33,-3.18,-1.29,-3.51,-2.64],["c",-0.03,-0.12,-0.03,-0.33,-0.03,-0.6],["c",0,-0.36,0,-0.42,0.06,-0.63],["c",0.12,-0.3,0.27,-0.51,0.51,-0.75],["c",0.24,-0.24,0.45,-0.39,0.75,-0.51],["c",0.21,-0.06,0.27,-0.06,0.6,-0.06],["c",0.33,0,0.39,0,0.6,0.06],["c",0.3,0.12,0.51,0.27,0.75,0.51],["c",0.36,0.33,0.57,0.75,0.6,1.2],["c",0,0.21,0,0.27,-0.06,0.42],["c",-0.09,0.18,-0.12,0.24,-0.54,0.54],["c",-0.51,0.36,-0.63,0.54,-0.6,0.87],["c",0.06,0.54,0.54,0.9,1.38,0.99],["c",0.36,0.06,0.72,0.03,0.96,-0.06],["c",0.81,-0.27,1.29,-1.23,1.44,-2.79],["c",0.03,-0.45,0.03,-1.95,-0.03,-2.37],["c",-0.09,-0.75,-0.33,-1.23,-0.75,-1.44],["c",-0.33,-0.18,-0.45,-0.18,-1.98,-0.18],["c",-1.35,0,-1.41,0,-1.5,-0.06],["c",-0.18,-0.12,-0.24,-0.39,-0.12,-0.6],["c",0.12,-0.15,0.15,-0.15,1.68,-0.15],["c",1.5,0,1.62,0,1.89,-0.15],["c",0.18,-0.09,0.42,-0.36,0.54,-0.57],["c",0.18,-0.42,0.27,-0.9,0.3,-1.95],["c",0.03,-1.2,-0.06,-1.8,-0.36,-2.37],["c",-0.24,-0.48,-0.63,-0.81,-1.14,-0.96],["c",-0.3,-0.06,-1.08,-0.06,-1.38,0.03],["c",-0.6,0.15,-0.9,0.42,-0.96,0.84],["c",-0.03,0.3,0.06,0.45,0.63,0.84],["c",0.33,0.24,0.42,0.39,0.45,0.63],["c",0.03,0.72,-0.57,1.5,-1.32,1.65],["c",-1.05,0.27,-2.1,-0.57,-2.1,-1.65],["c",0,-0.45,0.15,-0.96,0.39,-1.38],["c",0.12,-0.21,0.54,-0.63,0.81,-0.81],["c",0.57,-0.42,1.38,-0.69,2.25,-0.81],["z"]],w:9.735,h:14.967},"4":{d:[["M",8.64,-14.94],["c",0.27,-0.09,0.42,-0.12,0.54,-0.03],["c",0.09,0.06,0.15,0.21,0.15,0.3],["c",-0.03,0.06,-1.92,2.31,-4.23,5.04],["c",-2.31,2.73,-4.23,4.98,-4.26,5.01],["c",-0.03,0.06,0.12,0.06,2.55,0.06],["l",2.61,0],["l",0,-2.37],["c",0,-2.19,0.03,-2.37,0.06,-2.46],["c",0.03,-0.06,0.21,-0.18,0.57,-0.42],["c",1.08,-0.72,1.38,-1.08,1.86,-2.16],["c",0.12,-0.3,0.24,-0.54,0.27,-0.57],["c",0.12,-0.12,0.39,-0.06,0.45,0.12],["c",0.06,0.09,0.06,0.57,0.06,3.96],["l",0,3.9],["l",1.08,0],["c",1.05,0,1.11,0,1.2,0.06],["c",0.24,0.15,0.24,0.54,0,0.69],["c",-0.09,0.06,-0.15,0.06,-1.2,0.06],["l",-1.08,0],["l",0,0.33],["c",0,0.57,0.09,1.11,0.3,1.53],["c",0.36,0.75,0.93,1.17,1.68,1.26],["c",0.3,0.03,0.39,0.09,0.39,0.3],["c",0,0.15,-0.03,0.18,-0.09,0.24],["c",-0.06,0.06,-0.09,0.06,-0.48,0.06],["c",-0.42,0,-0.69,-0.03,-2.1,-0.24],["c",-0.9,-0.15,-1.77,-0.15,-2.67,0],["c",-1.41,0.21,-1.68,0.24,-2.1,0.24],["c",-0.39,0,-0.42,0,-0.48,-0.06],["c",-0.06,-0.06,-0.06,-0.09,-0.06,-0.24],["c",0,-0.21,0.06,-0.27,0.36,-0.3],["c",0.75,-0.09,1.32,-0.51,1.68,-1.26],["c",0.21,-0.42,0.3,-0.96,0.3,-1.53],["l",0,-0.33],["l",-2.7,0],["c",-2.91,0,-2.85,0,-3.09,-0.15],["c",-0.18,-0.12,-0.3,-0.39,-0.27,-0.54],["c",0.03,-0.06,0.18,-0.24,0.33,-0.45],["c",0.75,-0.9,1.59,-2.07,2.13,-3.03],["c",0.33,-0.54,0.84,-1.62,1.05,-2.16],["c",0.57,-1.41,0.84,-2.64,0.9,-4.05],["c",0.03,-0.63,0.06,-0.72,0.24,-0.81],["l",0.12,-0.06],["l",0.45,0.12],["c",0.66,0.18,1.02,0.24,1.47,0.27],["c",0.6,0.03,1.23,-0.09,2.01,-0.33],["z"]],w:11.795,h:14.994},"5":{d:[["M",1.02,-14.94],["c",0.12,-0.09,0.03,-0.09,1.08,0.06],["c",2.49,0.36,4.35,0.36,6.96,-0.06],["c",0.57,-0.09,0.66,-0.06,0.81,0.06],["c",0.15,0.18,0.12,0.24,-0.15,0.51],["c",-1.29,1.26,-3.24,2.04,-5.58,2.31],["c",-0.6,0.09,-1.2,0.12,-1.71,0.12],["c",-0.39,0,-0.45,0,-0.57,0.06],["c",-0.09,0.06,-0.15,0.12,-0.21,0.21],["l",-0.06,0.12],["l",0,1.65],["l",0,1.65],["l",0.21,-0.21],["c",0.66,-0.57,1.41,-0.96,2.19,-1.14],["c",0.33,-0.06,1.41,-0.06,1.95,0],["c",2.61,0.36,4.02,1.74,4.26,4.14],["c",0.03,0.45,0.03,1.08,-0.03,1.44],["c",-0.18,1.02,-0.78,2.01,-1.59,2.7],["c",-0.72,0.57,-1.62,1.02,-2.49,1.2],["c",-1.38,0.27,-3.03,0.06,-4.2,-0.54],["c",-1.08,-0.54,-1.71,-1.32,-1.86,-2.28],["c",-0.09,-0.69,0.09,-1.29,0.57,-1.74],["c",0.24,-0.24,0.45,-0.39,0.75,-0.51],["c",0.21,-0.06,0.27,-0.06,0.6,-0.06],["c",0.33,0,0.39,0,0.6,0.06],["c",0.3,0.12,0.51,0.27,0.75,0.51],["c",0.36,0.33,0.57,0.75,0.6,1.2],["c",0,0.21,0,0.27,-0.06,0.42],["c",-0.09,0.18,-0.12,0.24,-0.54,0.54],["c",-0.18,0.12,-0.36,0.3,-0.42,0.33],["c",-0.36,0.42,-0.18,0.99,0.36,1.26],["c",0.51,0.27,1.47,0.36,2.01,0.27],["c",0.93,-0.21,1.47,-1.17,1.65,-2.91],["c",0.06,-0.45,0.06,-1.89,0,-2.31],["c",-0.15,-1.2,-0.51,-2.1,-1.05,-2.55],["c",-0.21,-0.18,-0.54,-0.36,-0.81,-0.39],["c",-0.3,-0.06,-0.84,-0.03,-1.26,0.06],["c",-0.93,0.18,-1.65,0.6,-2.16,1.2],["c",-0.15,0.21,-0.27,0.3,-0.39,0.3],["c",-0.15,0,-0.3,-0.09,-0.36,-0.18],["c",-0.06,-0.09,-0.06,-0.15,-0.06,-3.66],["c",0,-3.39,0,-3.57,0.06,-3.66],["c",0.03,-0.06,0.09,-0.15,0.15,-0.18],["z"]],w:10.212,h:14.997},"6":{d:[["M",4.98,-14.97],["c",0.36,-0.03,1.2,0,1.59,0.06],["c",0.9,0.15,1.68,0.51,2.25,1.05],["c",0.57,0.51,0.87,1.23,0.84,1.98],["c",-0.03,0.51,-0.21,0.9,-0.6,1.26],["c",-0.24,0.24,-0.45,0.39,-0.75,0.51],["c",-0.21,0.06,-0.27,0.06,-0.6,0.06],["c",-0.33,0,-0.39,0,-0.6,-0.06],["c",-0.3,-0.12,-0.51,-0.27,-0.75,-0.51],["c",-0.39,-0.36,-0.57,-0.78,-0.57,-1.26],["c",0,-0.27,0,-0.3,0.09,-0.42],["c",0.03,-0.09,0.18,-0.21,0.3,-0.3],["c",0.12,-0.09,0.3,-0.21,0.39,-0.27],["c",0.09,-0.06,0.21,-0.18,0.27,-0.24],["c",0.06,-0.12,0.09,-0.15,0.09,-0.33],["c",0,-0.18,-0.03,-0.24,-0.09,-0.36],["c",-0.24,-0.39,-0.75,-0.6,-1.38,-0.57],["c",-0.54,0.03,-0.9,0.18,-1.23,0.48],["c",-0.81,0.72,-1.08,2.16,-0.96,5.37],["l",0,0.63],["l",0.3,-0.12],["c",0.78,-0.27,1.29,-0.33,2.1,-0.27],["c",1.47,0.12,2.49,0.54,3.27,1.29],["c",0.48,0.51,0.81,1.11,0.96,1.89],["c",0.06,0.27,0.06,0.42,0.06,0.93],["c",0,0.54,0,0.69,-0.06,0.96],["c",-0.15,0.78,-0.48,1.38,-0.96,1.89],["c",-0.54,0.51,-1.17,0.87,-1.98,1.08],["c",-1.14,0.3,-2.4,0.33,-3.24,0.03],["c",-1.5,-0.48,-2.64,-1.89,-3.27,-4.02],["c",-0.36,-1.23,-0.51,-2.82,-0.42,-4.08],["c",0.3,-3.66,2.28,-6.3,4.95,-6.66],["z"],["m",0.66,7.41],["c",-0.27,-0.09,-0.81,-0.12,-1.08,-0.06],["c",-0.72,0.18,-1.08,0.69,-1.23,1.71],["c",-0.06,0.54,-0.06,3,0,3.54],["c",0.18,1.26,0.72,1.77,1.8,1.74],["c",0.39,-0.03,0.63,-0.09,0.9,-0.27],["c",0.66,-0.42,0.9,-1.32,0.9,-3.24],["c",0,-2.22,-0.36,-3.12,-1.29,-3.42],["z"]],w:9.956,h:14.982},"7":{d:[["M",0.21,-14.97],["c",0.21,-0.06,0.45,0,0.54,0.15],["c",0.06,0.09,0.06,0.15,0.06,0.39],["c",0,0.24,0,0.33,0.06,0.42],["c",0.06,0.12,0.21,0.24,0.27,0.24],["c",0.03,0,0.12,-0.12,0.24,-0.21],["c",0.96,-1.2,2.58,-1.35,3.99,-0.42],["c",0.15,0.12,0.42,0.3,0.54,0.45],["c",0.48,0.39,0.81,0.57,1.29,0.6],["c",0.69,0.03,1.5,-0.3,2.13,-0.87],["c",0.09,-0.09,0.27,-0.3,0.39,-0.45],["c",0.12,-0.15,0.24,-0.27,0.3,-0.3],["c",0.18,-0.06,0.39,0.03,0.51,0.21],["c",0.06,0.18,0.06,0.24,-0.27,0.72],["c",-0.18,0.24,-0.54,0.78,-0.78,1.17],["c",-2.37,3.54,-3.54,6.27,-3.87,9],["c",-0.03,0.33,-0.03,0.66,-0.03,1.26],["c",0,0.9,0,1.08,0.15,1.89],["c",0.06,0.45,0.06,0.48,0.03,0.6],["c",-0.06,0.09,-0.21,0.21,-0.3,0.21],["c",-0.03,0,-0.27,-0.06,-0.54,-0.15],["c",-0.84,-0.27,-1.11,-0.3,-1.65,-0.3],["c",-0.57,0,-0.84,0.03,-1.56,0.27],["c",-0.6,0.18,-0.69,0.21,-0.81,0.15],["c",-0.12,-0.06,-0.21,-0.18,-0.21,-0.3],["c",0,-0.15,0.6,-1.44,1.2,-2.61],["c",1.14,-2.22,2.73,-4.68,5.1,-8.01],["c",0.21,-0.27,0.36,-0.48,0.33,-0.48],["c",0,0,-0.12,0.06,-0.27,0.12],["c",-0.54,0.3,-0.99,0.39,-1.56,0.39],["c",-0.75,0.03,-1.2,-0.18,-1.83,-0.75],["c",-0.99,-0.9,-1.83,-1.17,-2.31,-0.72],["c",-0.18,0.15,-0.36,0.51,-0.45,0.84],["c",-0.06,0.24,-0.06,0.33,-0.09,1.98],["c",0,1.62,-0.03,1.74,-0.06,1.8],["c",-0.15,0.24,-0.54,0.24,-0.69,0],["c",-0.06,-0.09,-0.06,-0.15,-0.06,-3.57],["c",0,-3.42,0,-3.48,0.06,-3.57],["c",0.03,-0.06,0.09,-0.12,0.15,-0.15],["z"]],w:10.561,h:15.093},"8":{d:[["M",4.98,-14.97],["c",0.33,-0.03,1.02,-0.03,1.32,0],["c",1.32,0.12,2.49,0.6,3.21,1.32],["c",0.39,0.39,0.66,0.81,0.78,1.29],["c",0.09,0.36,0.09,1.08,0,1.44],["c",-0.21,0.84,-0.66,1.59,-1.59,2.55],["l",-0.3,0.3],["l",0.27,0.18],["c",1.47,0.93,2.31,2.31,2.25,3.75],["c",-0.03,0.75,-0.24,1.35,-0.63,1.95],["c",-0.45,0.66,-1.02,1.14,-1.83,1.53],["c",-1.8,0.87,-4.2,0.87,-6,0.03],["c",-1.62,-0.78,-2.52,-2.16,-2.46,-3.66],["c",0.06,-0.99,0.54,-1.77,1.8,-2.97],["c",0.54,-0.51,0.54,-0.54,0.48,-0.57],["c",-0.39,-0.27,-0.96,-0.78,-1.2,-1.14],["c",-0.75,-1.11,-0.87,-2.4,-0.3,-3.6],["c",0.69,-1.35,2.25,-2.25,4.2,-2.4],["z"],["m",1.53,0.69],["c",-0.42,-0.09,-1.11,-0.12,-1.38,-0.06],["c",-0.3,0.06,-0.6,0.18,-0.81,0.3],["c",-0.21,0.12,-0.6,0.51,-0.72,0.72],["c",-0.51,0.87,-0.42,1.89,0.21,2.52],["c",0.21,0.21,0.36,0.3,1.95,1.23],["c",0.96,0.54,1.74,0.99,1.77,1.02],["c",0.09,0,0.63,-0.6,0.99,-1.11],["c",0.21,-0.36,0.48,-0.87,0.57,-1.23],["c",0.06,-0.24,0.06,-0.36,0.06,-0.72],["c",0,-0.45,-0.03,-0.66,-0.15,-0.99],["c",-0.39,-0.81,-1.29,-1.44,-2.49,-1.68],["z"],["m",-1.44,8.07],["l",-1.89,-1.08],["c",-0.03,0,-0.18,0.15,-0.39,0.33],["c",-1.2,1.08,-1.65,1.95,-1.59,3],["c",0.09,1.59,1.35,2.85,3.21,3.24],["c",0.33,0.06,0.45,0.06,0.93,0.06],["c",0.63,-0,0.81,-0.03,1.29,-0.27],["c",0.9,-0.42,1.47,-1.41,1.41,-2.4],["c",-0.06,-0.66,-0.39,-1.29,-0.9,-1.65],["c",-0.12,-0.09,-1.05,-0.63,-2.07,-1.23],["z"]],w:10.926,h:14.989},"9":{d:[["M",4.23,-14.97],["c",0.42,-0.03,1.29,0,1.62,0.06],["c",0.51,0.12,0.93,0.3,1.38,0.57],["c",1.53,1.02,2.52,3.24,2.73,5.94],["c",0.18,2.55,-0.48,4.98,-1.83,6.57],["c",-1.05,1.26,-2.4,1.89,-3.93,1.83],["c",-1.23,-0.06,-2.31,-0.45,-3.03,-1.14],["c",-0.57,-0.51,-0.87,-1.23,-0.84,-1.98],["c",0.03,-0.51,0.21,-0.9,0.6,-1.26],["c",0.24,-0.24,0.45,-0.39,0.75,-0.51],["c",0.21,-0.06,0.27,-0.06,0.6,-0.06],["c",0.33,-0,0.39,-0,0.6,0.06],["c",0.3,0.12,0.51,0.27,0.75,0.51],["c",0.39,0.36,0.57,0.78,0.57,1.26],["c",0,0.27,0,0.3,-0.09,0.42],["c",-0.03,0.09,-0.18,0.21,-0.3,0.3],["c",-0.12,0.09,-0.3,0.21,-0.39,0.27],["c",-0.09,0.06,-0.21,0.18,-0.27,0.24],["c",-0.06,0.12,-0.06,0.15,-0.06,0.33],["c",0,0.18,0,0.24,0.06,0.36],["c",0.24,0.39,0.75,0.6,1.38,0.57],["c",0.54,-0.03,0.9,-0.18,1.23,-0.48],["c",0.81,-0.72,1.08,-2.16,0.96,-5.37],["l",0,-0.63],["l",-0.3,0.12],["c",-0.78,0.27,-1.29,0.33,-2.1,0.27],["c",-1.47,-0.12,-2.49,-0.54,-3.27,-1.29],["c",-0.48,-0.51,-0.81,-1.11,-0.96,-1.89],["c",-0.06,-0.27,-0.06,-0.42,-0.06,-0.96],["c",0,-0.51,0,-0.66,0.06,-0.93],["c",0.15,-0.78,0.48,-1.38,0.96,-1.89],["c",0.15,-0.12,0.33,-0.27,0.42,-0.36],["c",0.69,-0.51,1.62,-0.81,2.76,-0.93],["z"],["m",1.17,0.66],["c",-0.21,-0.06,-0.57,-0.06,-0.81,-0.03],["c",-0.78,0.12,-1.26,0.69,-1.41,1.74],["c",-0.12,0.63,-0.15,1.95,-0.09,2.79],["c",0.12,1.71,0.63,2.4,1.77,2.46],["c",1.08,0.03,1.62,-0.48,1.8,-1.74],["c",0.06,-0.54,0.06,-3,0,-3.54],["c",-0.15,-1.05,-0.51,-1.53,-1.26,-1.68],["z"]],w:9.959,h:14.986},f:{d:[["M",9.93,-14.28],["c",1.53,-0.18,2.88,0.45,3.12,1.5],["c",0.12,0.51,0,1.32,-0.27,1.86],["c",-0.15,0.3,-0.42,0.57,-0.63,0.69],["c",-0.69,0.36,-1.56,0.03,-1.83,-0.69],["c",-0.09,-0.24,-0.09,-0.69,0,-0.87],["c",0.06,-0.12,0.21,-0.24,0.45,-0.42],["c",0.42,-0.24,0.57,-0.45,0.6,-0.72],["c",0.03,-0.33,-0.09,-0.39,-0.63,-0.42],["c",-0.3,0,-0.45,0,-0.6,0.03],["c",-0.81,0.21,-1.35,0.93,-1.74,2.46],["c",-0.06,0.27,-0.48,2.25,-0.48,2.31],["c",0,0.03,0.39,0.03,0.9,0.03],["c",0.72,0,0.9,0,0.99,0.06],["c",0.42,0.15,0.45,0.72,0.03,0.9],["c",-0.12,0.06,-0.24,0.06,-1.17,0.06],["l",-1.05,0],["l",-0.78,2.55],["c",-0.45,1.41,-0.87,2.79,-0.96,3.06],["c",-0.87,2.37,-2.37,4.74,-3.78,5.91],["c",-1.05,0.9,-2.04,1.23,-3.09,1.08],["c",-1.11,-0.18,-1.89,-0.78,-2.04,-1.59],["c",-0.12,-0.66,0.15,-1.71,0.54,-2.19],["c",0.69,-0.75,1.86,-0.54,2.22,0.39],["c",0.06,0.15,0.09,0.27,0.09,0.48],["c",-0,0.24,-0.03,0.27,-0.12,0.42],["c",-0.03,0.09,-0.15,0.18,-0.27,0.27],["c",-0.09,0.06,-0.27,0.21,-0.36,0.27],["c",-0.24,0.18,-0.36,0.36,-0.39,0.6],["c",-0.03,0.33,0.09,0.39,0.63,0.42],["c",0.42,0,0.63,-0.03,0.9,-0.15],["c",0.6,-0.3,0.96,-0.96,1.38,-2.64],["c",0.09,-0.42,0.63,-2.55,1.17,-4.77],["l",1.02,-4.08],["c",-0,-0.03,-0.36,-0.03,-0.81,-0.03],["c",-0.72,0,-0.81,0,-0.93,-0.06],["c",-0.42,-0.18,-0.39,-0.75,0.03,-0.9],["c",0.09,-0.06,0.27,-0.06,1.05,-0.06],["l",0.96,0],["l",0,-0.09],["c",0.06,-0.18,0.3,-0.72,0.51,-1.17],["c",1.2,-2.46,3.3,-4.23,5.34,-4.5],["z"]],w:16.155,h:19.445},m:{d:[["M",2.79,-8.91],["c",0.09,0,0.3,-0.03,0.45,-0.03],["c",0.24,0.03,0.3,0.03,0.45,0.12],["c",0.36,0.15,0.63,0.54,0.75,1.02],["l",0.03,0.21],["l",0.33,-0.3],["c",0.69,-0.69,1.38,-1.02,2.07,-1.02],["c",0.27,0,0.33,0,0.48,0.06],["c",0.21,0.09,0.48,0.36,0.63,0.6],["c",0.03,0.09,0.12,0.27,0.18,0.42],["c",0.03,0.15,0.09,0.27,0.12,0.27],["c",0,0,0.09,-0.09,0.18,-0.21],["c",0.33,-0.39,0.87,-0.81,1.29,-0.99],["c",0.78,-0.33,1.47,-0.21,2.01,0.33],["c",0.3,0.33,0.48,0.69,0.6,1.14],["c",0.09,0.42,0.06,0.54,-0.54,3.06],["c",-0.33,1.29,-0.57,2.4,-0.57,2.43],["c",0,0.12,0.09,0.21,0.21,0.21],["c",0.24,-0,0.75,-0.3,1.2,-0.72],["c",0.45,-0.39,0.6,-0.45,0.78,-0.27],["c",0.18,0.18,0.09,0.36,-0.45,0.87],["c",-1.05,0.96,-1.83,1.47,-2.58,1.71],["c",-0.93,0.33,-1.53,0.21,-1.8,-0.33],["c",-0.06,-0.15,-0.06,-0.21,-0.06,-0.45],["c",0,-0.24,0.03,-0.48,0.6,-2.82],["c",0.42,-1.71,0.6,-2.64,0.63,-2.79],["c",0.03,-0.57,-0.3,-0.75,-0.84,-0.48],["c",-0.24,0.12,-0.54,0.39,-0.66,0.63],["c",-0.03,0.09,-0.42,1.38,-0.9,3],["c",-0.9,3.15,-0.84,3,-1.14,3.15],["l",-0.15,0.09],["l",-0.78,0],["c",-0.6,0,-0.78,0,-0.84,-0.06],["c",-0.09,-0.03,-0.18,-0.18,-0.18,-0.27],["c",0,-0.03,0.36,-1.38,0.84,-2.97],["c",0.57,-2.04,0.81,-2.97,0.84,-3.12],["c",0.03,-0.54,-0.3,-0.72,-0.84,-0.45],["c",-0.24,0.12,-0.57,0.42,-0.66,0.63],["c",-0.06,0.09,-0.51,1.44,-1.05,2.97],["c",-0.51,1.56,-0.99,2.85,-0.99,2.91],["c",-0.06,0.12,-0.21,0.24,-0.36,0.3],["c",-0.12,0.06,-0.21,0.06,-0.9,0.06],["c",-0.6,0,-0.78,0,-0.84,-0.06],["c",-0.09,-0.03,-0.18,-0.18,-0.18,-0.27],["c",0,-0.03,0.45,-1.38,0.99,-2.97],["c",1.05,-3.18,1.05,-3.18,0.93,-3.45],["c",-0.12,-0.27,-0.39,-0.3,-0.72,-0.15],["c",-0.54,0.27,-1.14,1.17,-1.56,2.4],["c",-0.06,0.15,-0.15,0.3,-0.18,0.36],["c",-0.21,0.21,-0.57,0.27,-0.72,0.09],["c",-0.09,-0.09,-0.06,-0.21,0.06,-0.63],["c",0.48,-1.26,1.26,-2.46,2.01,-3.21],["c",0.57,-0.54,1.2,-0.87,1.83,-1.02],["z"]],w:14.687,h:9.126},p:{d:[["M",1.92,-8.7],["c",0.27,-0.09,0.81,-0.06,1.11,0.03],["c",0.54,0.18,0.93,0.51,1.17,0.99],["c",0.09,0.15,0.15,0.33,0.18,0.36],["l",-0,0.12],["l",0.3,-0.27],["c",0.66,-0.6,1.35,-1.02,2.13,-1.2],["c",0.21,-0.06,0.33,-0.06,0.78,-0.06],["c",0.45,0,0.51,0,0.84,0.09],["c",1.29,0.33,2.07,1.32,2.25,2.79],["c",0.09,0.81,-0.09,2.01,-0.45,2.79],["c",-0.54,1.26,-1.86,2.55,-3.18,3.03],["c",-0.45,0.18,-0.81,0.24,-1.29,0.24],["c",-0.69,-0.03,-1.35,-0.18,-1.86,-0.45],["c",-0.3,-0.15,-0.51,-0.18,-0.69,-0.09],["c",-0.09,0.03,-0.18,0.09,-0.18,0.12],["c",-0.09,0.12,-1.05,2.94,-1.05,3.06],["c",0,0.24,0.18,0.48,0.51,0.63],["c",0.18,0.06,0.54,0.15,0.75,0.15],["c",0.21,0,0.36,0.06,0.42,0.18],["c",0.12,0.18,0.06,0.42,-0.12,0.54],["c",-0.09,0.03,-0.15,0.03,-0.78,0],["c",-1.98,-0.15,-3.81,-0.15,-5.79,0],["c",-0.63,0.03,-0.69,0.03,-0.78,0],["c",-0.24,-0.15,-0.24,-0.57,0.03,-0.66],["c",0.06,-0.03,0.48,-0.09,0.99,-0.12],["c",0.87,-0.06,1.11,-0.09,1.35,-0.21],["c",0.18,-0.06,0.33,-0.18,0.39,-0.3],["c",0.06,-0.12,3.24,-9.42,3.27,-9.6],["c",0.06,-0.33,0.03,-0.57,-0.15,-0.69],["c",-0.09,-0.06,-0.12,-0.06,-0.3,-0.06],["c",-0.69,0.06,-1.53,1.02,-2.28,2.61],["c",-0.09,0.21,-0.21,0.45,-0.27,0.51],["c",-0.09,0.12,-0.33,0.24,-0.48,0.24],["c",-0.18,0,-0.36,-0.15,-0.36,-0.3],["c",0,-0.24,0.78,-1.83,1.26,-2.55],["c",0.72,-1.11,1.47,-1.74,2.28,-1.92],["z"],["m",5.37,1.47],["c",-0.27,-0.12,-0.75,-0.03,-1.14,0.21],["c",-0.75,0.48,-1.47,1.68,-1.89,3.15],["c",-0.45,1.47,-0.42,2.34,0,2.7],["c",0.45,0.39,1.26,0.21,1.83,-0.36],["c",0.51,-0.51,0.99,-1.68,1.38,-3.27],["c",0.3,-1.17,0.33,-1.74,0.15,-2.13],["c",-0.09,-0.15,-0.15,-0.21,-0.33,-0.3],["z"]],w:14.689,h:13.127},r:{d:[["M",6.33,-9.12],["c",0.27,-0.03,0.93,0,1.2,0.06],["c",0.84,0.21,1.23,0.81,1.02,1.53],["c",-0.24,0.75,-0.9,1.17,-1.56,0.96],["c",-0.33,-0.09,-0.51,-0.3,-0.66,-0.75],["c",-0.03,-0.12,-0.09,-0.24,-0.12,-0.3],["c",-0.09,-0.15,-0.3,-0.24,-0.48,-0.24],["c",-0.57,0,-1.38,0.54,-1.65,1.08],["c",-0.06,0.15,-0.33,1.17,-0.9,3.27],["c",-0.57,2.31,-0.81,3.12,-0.87,3.21],["c",-0.03,0.06,-0.12,0.15,-0.18,0.21],["l",-0.12,0.06],["l",-0.81,0.03],["c",-0.69,0,-0.81,0,-0.9,-0.03],["c",-0.09,-0.06,-0.18,-0.21,-0.18,-0.3],["c",0,-0.06,0.39,-1.62,0.9,-3.51],["c",0.84,-3.24,0.87,-3.45,0.87,-3.72],["c",0,-0.21,0,-0.27,-0.03,-0.36],["c",-0.12,-0.15,-0.21,-0.24,-0.42,-0.24],["c",-0.24,0,-0.45,0.15,-0.78,0.42],["c",-0.33,0.36,-0.45,0.54,-0.72,1.14],["c",-0.03,0.12,-0.21,0.24,-0.36,0.27],["c",-0.12,0,-0.15,0,-0.24,-0.06],["c",-0.18,-0.12,-0.18,-0.21,-0.06,-0.54],["c",0.21,-0.57,0.42,-0.93,0.78,-1.32],["c",0.54,-0.51,1.2,-0.81,1.95,-0.87],["c",0.81,-0.03,1.53,0.3,1.92,0.87],["l",0.12,0.18],["l",0.09,-0.09],["c",0.57,-0.45,1.41,-0.84,2.19,-0.96],["z"]],w:9.41,h:9.132},s:{d:[["M",4.47,-8.73],["c",0.09,0,0.36,-0.03,0.57,-0.03],["c",0.75,0.03,1.29,0.24,1.71,0.63],["c",0.51,0.54,0.66,1.26,0.36,1.83],["c",-0.24,0.42,-0.63,0.57,-1.11,0.42],["c",-0.33,-0.09,-0.6,-0.36,-0.6,-0.57],["c",0,-0.03,0.06,-0.21,0.15,-0.39],["c",0.12,-0.21,0.15,-0.33,0.18,-0.48],["c",0,-0.24,-0.06,-0.48,-0.15,-0.6],["c",-0.15,-0.21,-0.42,-0.24,-0.75,-0.15],["c",-0.27,0.06,-0.48,0.18,-0.69,0.36],["c",-0.39,0.39,-0.51,0.96,-0.33,1.38],["c",0.09,0.21,0.42,0.51,0.78,0.72],["c",1.11,0.69,1.59,1.11,1.89,1.68],["c",0.21,0.39,0.24,0.78,0.15,1.29],["c",-0.18,1.2,-1.17,2.16,-2.52,2.52],["c",-1.02,0.24,-1.95,0.12,-2.7,-0.42],["c",-0.72,-0.51,-0.99,-1.47,-0.6,-2.19],["c",0.24,-0.48,0.72,-0.63,1.17,-0.42],["c",0.33,0.18,0.54,0.45,0.57,0.81],["c",0,0.21,-0.03,0.3,-0.33,0.51],["c",-0.33,0.24,-0.39,0.42,-0.27,0.69],["c",0.06,0.15,0.21,0.27,0.45,0.33],["c",0.3,0.09,0.87,0.09,1.2,-0],["c",0.75,-0.21,1.23,-0.72,1.29,-1.35],["c",0.03,-0.42,-0.15,-0.81,-0.54,-1.2],["c",-0.24,-0.24,-0.48,-0.42,-1.41,-1.02],["c",-0.69,-0.42,-1.05,-0.93,-1.05,-1.47],["c",0,-0.39,0.12,-0.87,0.3,-1.23],["c",0.27,-0.57,0.78,-1.05,1.38,-1.35],["c",0.24,-0.12,0.63,-0.27,0.9,-0.3],["z"]],w:6.632,h:8.758},z:{d:[["M",2.64,-7.95],["c",0.36,-0.09,0.81,-0.03,1.71,0.27],["c",0.78,0.21,0.96,0.27,1.74,0.3],["c",0.87,0.06,1.02,0.03,1.38,-0.21],["c",0.21,-0.15,0.33,-0.15,0.48,-0.06],["c",0.15,0.09,0.21,0.3,0.15,0.45],["c",-0.03,0.06,-1.26,1.26,-2.76,2.67],["l",-2.73,2.55],["l",0.54,0.03],["c",0.54,0.03,0.72,0.03,2.01,0.15],["c",0.36,0.03,0.9,0.06,1.2,0.09],["c",0.66,0,0.81,-0.03,1.02,-0.24],["c",0.3,-0.3,0.39,-0.72,0.27,-1.23],["c",-0.06,-0.27,-0.06,-0.27,-0.03,-0.39],["c",0.15,-0.3,0.54,-0.27,0.69,0.03],["c",0.15,0.33,0.27,1.02,0.27,1.5],["c",0,1.47,-1.11,2.7,-2.52,2.79],["c",-0.57,0.03,-1.02,-0.09,-2.01,-0.51],["c",-1.02,-0.42,-1.23,-0.48,-2.13,-0.54],["c",-0.81,-0.06,-0.96,-0.03,-1.26,0.18],["c",-0.12,0.06,-0.24,0.12,-0.27,0.12],["c",-0.27,0,-0.45,-0.3,-0.36,-0.51],["c",0.03,-0.06,1.32,-1.32,2.91,-2.79],["l",2.88,-2.73],["c",-0.03,0,-0.21,0.03,-0.42,0.06],["c",-0.21,0.03,-0.78,0.09,-1.23,0.12],["c",-1.11,0.12,-1.23,0.15,-1.95,0.27],["c",-0.72,0.15,-1.17,0.18,-1.29,0.09],["c",-0.27,-0.18,-0.21,-0.75,0.12,-1.26],["c",0.39,-0.6,0.93,-1.02,1.59,-1.2],["z"]],w:8.573,h:8.743},"+":{d:[["M",3.48,-11.19],["c",0.18,-0.09,0.36,-0.09,0.54,0],["c",0.18,0.09,0.24,0.15,0.33,0.3],["l",0.06,0.15],["l",0,1.29],["l",0,1.29],["l",1.29,0],["c",1.23,0,1.29,0,1.41,0.06],["c",0.06,0.03,0.15,0.09,0.18,0.12],["c",0.12,0.09,0.21,0.33,0.21,0.48],["c",0,0.15,-0.09,0.39,-0.21,0.48],["c",-0.03,0.03,-0.12,0.09,-0.18,0.12],["c",-0.12,0.06,-0.18,0.06,-1.41,0.06],["l",-1.29,0],["l",0,1.29],["c",0,1.23,0,1.29,-0.06,1.41],["c",-0.09,0.18,-0.15,0.24,-0.3,0.33],["c",-0.21,0.09,-0.39,0.09,-0.57,0],["c",-0.18,-0.09,-0.24,-0.15,-0.33,-0.33],["c",-0.06,-0.12,-0.06,-0.18,-0.06,-1.41],["l",0,-1.29],["l",-1.29,0],["c",-1.23,0,-1.29,0,-1.41,-0.06],["c",-0.18,-0.09,-0.24,-0.15,-0.33,-0.33],["c",-0.09,-0.18,-0.09,-0.36,0,-0.54],["c",0.09,-0.18,0.15,-0.24,0.33,-0.33],["l",0.15,-0.06],["l",1.26,0],["l",1.29,0],["l",0,-1.29],["c",0,-1.23,0,-1.29,0.06,-1.41],["c",0.09,-0.18,0.15,-0.24,0.33,-0.33],["z"]],w:7.507,h:7.515},",":{d:[["M",1.32,-3.36],["c",0.57,-0.15,1.17,0.03,1.59,0.45],["c",0.45,0.45,0.6,0.96,0.51,1.89],["c",-0.09,1.23,-0.42,2.46,-0.99,3.93],["c",-0.3,0.72,-0.72,1.62,-0.78,1.68],["c",-0.18,0.21,-0.51,0.18,-0.66,-0.06],["c",-0.03,-0.06,-0.06,-0.15,-0.06,-0.18],["c",0,-0.06,0.12,-0.33,0.24,-0.63],["c",0.84,-1.8,1.02,-2.61,0.69,-3.24],["c",-0.12,-0.24,-0.27,-0.36,-0.75,-0.6],["c",-0.36,-0.15,-0.42,-0.21,-0.6,-0.39],["c",-0.69,-0.69,-0.69,-1.71,0,-2.4],["c",0.21,-0.21,0.51,-0.39,0.81,-0.45],["z"]],w:3.452,h:8.143},"-":{d:[["M",0.18,-5.34],["c",0.09,-0.06,0.15,-0.06,2.31,-0.06],["c",2.46,0,2.37,0,2.46,0.21],["c",0.12,0.21,0.03,0.42,-0.15,0.54],["c",-0.09,0.06,-0.15,0.06,-2.28,0.06],["c",-2.16,0,-2.22,0,-2.31,-0.06],["c",-0.27,-0.15,-0.27,-0.54,-0.03,-0.69],["z"]],w:5.001,h:0.81},".":{d:[["M",1.32,-3.36],["c",1.05,-0.27,2.1,0.57,2.1,1.65],["c",0,1.08,-1.05,1.92,-2.1,1.65],["c",-0.9,-0.21,-1.5,-1.14,-1.26,-2.04],["c",0.12,-0.63,0.63,-1.11,1.26,-1.26],["z"]],w:3.413,h:3.402}};
this.printSymbol=function(b,g,c,f){if(!a[c]){return null}var d=this.pathClone(a[c].d);d[0][1]+=b;d[0][2]+=g;var e=f.path().attr({path:d,stroke:"none",fill:"#000000"});return e};this.getPathForSymbol=function(b,g,e,d,c){var d=d||1;var c=c||1;if(!a[e]){return null}var f=this.pathClone(a[e].d);if(d!=1||c!=1){this.pathScale(f,d,c)}f[0][1]+=b;f[0][2]+=g;return f};this.getSymbolWidth=function(b){if(a[b]){return a[b].w}return 0};this.getSymbolHeight=function(b){if(a[b]){return a[b].h}return 0};this.getSymbolAlign=function(b){if(b.substring(0,7)==="scripts"&&b!=="scripts.roll"){return"center"}return"left"};this.pathClone=function(g){var d=[];for(var c=0,e=g.length;c<e;c++){d[c]=[];for(var b=0,f=g[c].length;b<f;b++){d[c][b]=g[c][b]}}return d};this.pathScale=function(f,e,c){for(var b=0,d=f.length;b<d;b++){var g=f[b];for(j=1,jj=g.length;j<jj;j++){g[j]*=(j%2)?e:c}}};this.getYCorr=function(b){switch(b){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case"+":return -3;case"timesig.common":case"timesig.cut":return -1;case"flags.d32nd":return -1;case"flags.d64th":return -2;case"flags.u32nd":return 1;case"flags.u64th":return 3;case"rests.whole":return 1;case"rests.half":return -1;case"rests.8th":return -1;case"rests.quarter":return -2;case"rests.16th":return -1;case"rests.32nd":return -1;case"rests.64th":return -1;default:return 0}}};function ABCStaffGroupElement(){this.voices=[];this.staffs=[];this.stafflines=[]}ABCStaffGroupElement.prototype.addVoice=function(c,b,a){this.voices[this.voices.length]=c;if(!this.staffs[b]){this.staffs[this.staffs.length]={top:0,highest:7,lowest:7};this.stafflines[this.stafflines.length]=a}c.staff=this.staffs[b]};ABCStaffGroupElement.prototype.finished=function(){for(var a=0;a<this.voices.length;a++){if(!this.voices[a].layoutEnded()){return false}}return true};ABCStaffGroupElement.prototype.layout=function(f,n){this.spacingunits=0;this.minspace=1000;var k=n.paddingleft;var a=0;for(var d=0;d<this.voices.length;d++){if(this.voices[d].header){var o=n.paper.text(100,-10,this.voices[d].header).attr({"font-size":12,"font-family":"serif"});a=Math.max(a,o.getBBox().width);o.remove()}}k=k+a*1.1;this.startx=k;var c=0;for(var d=0;d<this.voices.length;d++){this.voices[d].beginLayout(k)}while(!this.finished()){c=null;for(var d=0;d<this.voices.length;d++){if(!this.voices[d].layoutEnded()&&(!c||this.voices[d].getDurationIndex()<c)){c=this.voices[d].getDurationIndex()}}var m=[];var l=[];for(var d=0;d<this.voices.length;d++){if(this.voices[d].getDurationIndex()!=c){l.push(this.voices[d])}else{m.push(this.voices[d])}}var h=0;for(var d=0;d<m.length;d++){if(m[d].nextx>k){k=m[d].nextx;h=m[d].spacingunits}}this.spacingunits+=h;this.minspace=Math.min(this.minspace,h);for(var d=0;d<l.length;d++){if(l[d].spacingunits-=h){}}for(var d=0;d<m.length;d++){var e=m[d].layoutOneItem(k,f);var p=e-k;if(p>0){k=e;for(var b=0;b<d;b++){m[b].shiftRight(p)}}}for(var d=0;d<m.length;d++){var g=m[d];g.updateIndices()}}for(var d=0;d<this.voices.length;d++){if(this.voices[d].nextx>k){k=this.voices[d].nextx;h=this.voices[d].spacingunits}}this.spacingunits+=h;this.w=k;for(var d=0;d<this.voices.length;d++){this.voices[d].w=this.w}};ABCStaffGroupElement.prototype.draw=function(e,h){this.y=h;for(var d=0;d<this.staffs.length;d++){var c=this.staffs[d].highest-((d==0)?20:15);var b=this.staffs[d].lowest-((d==this.staffs.length-1)?0:0);this.staffs[d].top=h;if(c>0){h+=c*AbcSpacing.STEP}this.staffs[d].y=h;h+=AbcSpacing.STAVEHEIGHT*0.9;if(b<0){h-=b*AbcSpacing.STEP}this.staffs[d].bottom=h}this.height=h-this.y;var g=0;for(var d=0;d<this.voices.length;d++){this.voices[d].draw(e,g);g=this.voices[d].barbottom}if(this.staffs.length>1){e.y=this.staffs[0].y;var f=e.calcY(10);e.y=this.staffs[this.staffs.length-1].y;var a=e.calcY(2);e.printStem(this.startx,0.6,f,a)}for(var d=0;d<this.staffs.length;d++){if(this.stafflines[d]===0){continue}e.y=this.staffs[d].y;if(this.stafflines[d]===undefined){this.stafflines[d]=5}e.printStave(this.startx,this.w,this.stafflines[d])}};function ABCVoiceElement(b,a){this.children=[];this.beams=[];this.otherchildren=[];this.w=0;this.duplicate=false;this.voicenumber=b;this.voicetotal=a}ABCVoiceElement.prototype.addChild=function(a){this.children[this.children.length]=a};ABCVoiceElement.prototype.addOther=function(a){if(a instanceof ABCBeamElem){this.beams.push(a)}else{this.otherchildren.push(a)}};ABCVoiceElement.prototype.updateIndices=function(){if(!this.layoutEnded()){this.durationindex+=this.children[this.i].duration;this.i++;this.minx=this.nextminx}};ABCVoiceElement.prototype.layoutEnded=function(){return(this.i>=this.children.length)};ABCVoiceElement.prototype.getDurationIndex=function(){return this.durationindex-(this.children[this.i]&&(this.children[this.i].duration>0)?0:5e-7)};ABCVoiceElement.prototype.beginLayout=function(a){this.i=0;this.durationindex=0;this.ii=this.children.length;this.startx=a;this.minx=a;this.nextminx=a;this.nextx=a;this.spacingunits=0};ABCVoiceElement.prototype.layoutOneItem=function(a,d){var c=this.children[this.i];if(!c){return 0}var b=a-this.minx;if(b<c.getExtraWidth()){a+=c.getExtraWidth()-b}c.x=a;a+=(d*Math.sqrt(c.duration*8));this.nextminx=c.x+c.getMinWidth();(this.i!=this.ii-1)&&(this.nextminx+=c.minspacing);if(this.nextminx>a){a=this.nextminx;this.spacingunits=0}else{this.spacingunits=Math.sqrt(c.duration*8)}this.nextx=a;this.staff.highest=Math.max(c.top,this.staff.highest);this.staff.lowest=Math.min(c.bottom,this.staff.lowest);return c.x};ABCVoiceElement.prototype.shiftRight=function(a){var b=this.children[this.i];if(!b){return}b.x+=a;this.nextminx+=a;this.nextx+=a};ABCVoiceElement.prototype.draw=function(e,f){var c=this.w-1;e.y=this.staff.y;e.staffbottom=this.staff.bottom;this.barbottom=e.calcY(2);if(this.header){var d=12-(this.voicenumber+1)*(12/(this.voicetotal+1));e.paper.text((this.startx-e.paddingleft)/2+e.paddingleft,e.calcY(d),this.header).attr({"font-size":12,"font-family":"serif"})}for(var a=0,b=this.children.length;a<b;a++){this.children[a].draw(e,(this.barto||a==b-1)?f:0)}this.beams.each(function(g){g.draw(e)});this.otherchildren.each(function(g){g.draw(e,this.startx+10,c)})};function ABCAbsoluteElement(c,b,a){this.abcelem=c;this.duration=b;this.minspacing=a||0;this.x=0;this.children=[];this.heads=[];this.extra=[];this.extraw=0;this.decs=[];this.w=0;this.right=[];this.invisible=false;this.bottom=7;this.top=7}ABCAbsoluteElement.prototype.getMinWidth=function(){return this.w};ABCAbsoluteElement.prototype.getExtraWidth=function(){return -this.extraw};ABCAbsoluteElement.prototype.addExtra=function(a){if(a.dx<this.extraw){this.extraw=a.dx}this.extra[this.extra.length]=a;this.addChild(a)};ABCAbsoluteElement.prototype.addHead=function(a){if(a.dx<this.extraw){this.extraw=a.dx}this.heads[this.heads.length]=a;this.addRight(a)};ABCAbsoluteElement.prototype.addRight=function(a){if(a.dx+a.w>this.w){this.w=a.dx+a.w}this.right[this.right.length]=a;this.addChild(a)};ABCAbsoluteElement.prototype.addChild=function(a){a.parent=this;
this.children[this.children.length]=a;this.pushTop(a.top);this.pushBottom(a.bottom)};ABCAbsoluteElement.prototype.pushTop=function(a){this.top=Math.max(a,this.top)};ABCAbsoluteElement.prototype.pushBottom=function(a){this.bottom=Math.min(a,this.bottom)};ABCAbsoluteElement.prototype.draw=function(e,f){this.elemset=e.paper.set();if(this.invisible){return}e.beginGroup();for(var d=0;d<this.children.length;d++){this.elemset.push(this.children[d].draw(e,this.x,f))}this.elemset.push(e.endGroup());var c=this;this.elemset.mouseup(function(i){e.notifySelect(c)});this.abcelem.abselem=this;var h=AbcSpacing.STEP*e.scale;var g=function(){this.dy=0},b=function(k,i){i=Math.round(i/h)*h;this.translate(0,-this.dy);this.dy=i;this.translate(0,this.dy)},a=function(){var i=-Math.round(this.dy/h);c.abcelem.pitches[0].pitch+=i;c.abcelem.pitches[0].verticalPos+=i;e.notifyChange()};if(this.abcelem.el_type=="note"&&e.editable){this.elemset.drag(b,g,a)}};ABCAbsoluteElement.prototype.highlight=function(){this.elemset.attr({fill:"#ff0000"})};ABCAbsoluteElement.prototype.unhighlight=function(){this.elemset.attr({fill:"#000000"})};function ABCRelativeElement(f,b,a,e,d){d=d||{};this.x=0;this.c=f;this.dx=b;this.w=a;this.pitch=e;this.scalex=d.scalex||1;this.scaley=d.scaley||1;this.type=d.type||"symbol";this.pitch2=d.pitch2;this.linewidth=d.linewidth;this.attributes=d.attributes;this.top=e+((d.extreme=="above")?7:0);this.bottom=e-((d.extreme=="below")?7:0)}ABCRelativeElement.prototype.draw=function(b,a,c){this.x=a+this.dx;switch(this.type){case"symbol":if(this.c===null){return null}this.graphelem=b.printSymbol(this.x,this.pitch,this.c,this.scalex,this.scaley);break;case"debug":this.graphelem=b.debugMsg(this.x,this.c);break;case"debugLow":this.graphelem=b.debugMsgLow(this.x,this.c);break;case"text":this.graphelem=b.printText(this.x,this.pitch,this.c);break;case"bar":this.graphelem=b.printStem(this.x,this.linewidth,b.calcY(this.pitch),(c)?c:b.calcY(this.pitch2));break;case"stem":this.graphelem=b.printStem(this.x,this.linewidth,b.calcY(this.pitch),b.calcY(this.pitch2));break;case"ledger":this.graphelem=b.printStaveLine(this.x,this.x+this.w,this.pitch);break}if(this.scalex!=1&&this.graphelem){this.graphelem.scale(this.scalex,this.scaley,this.x,b.calcY(this.pitch))}if(this.attributes){this.graphelem.attr(this.attributes)}return this.graphelem};function ABCEndingElem(c,b,a){this.text=c;this.anchor1=b;this.anchor2=a}ABCEndingElem.prototype.draw=function(c,d,b){var a;if(this.anchor1){d=this.anchor1.x+this.anchor1.w;a=sprintf("M %f %f L %f %f",d,c.y,d,c.y+10);c.printPath({path:a,stroke:"#000000",fill:"#000000"});c.printText(d+5,18.5,this.text).attr({"font-size":"10px"})}if(this.anchor2){b=this.anchor2.x;a=sprintf("M %f %f L %f %f",b,c.y,b,c.y+10);c.printPath({path:a,stroke:"#000000",fill:"#000000"})}a=sprintf("M %f %f L %f %f",d,c.y,b,c.y);c.printPath({path:a,stroke:"#000000",fill:"#000000"})};function ABCTieElem(d,b,a,c){this.anchor1=d;this.anchor2=b;this.above=a;this.force=c}ABCTieElem.prototype.draw=function(e,g,c){var f;var d;if(this.startlimitelem){g=this.startlimitelem.x+this.startlimitelem.w}if(this.endlimitelem){c=this.endlimitelem.x}if(this.anchor1){g=this.anchor1.x;f=this.anchor1.pitch;if(!this.anchor2){d=this.anchor1.pitch}}if(this.anchor2){c=this.anchor2.x;d=this.anchor2.pitch;if(!this.anchor1){f=this.anchor2.pitch}}if(this.anchor1&&this.anchor2){if((!this.force&&this.anchor1.parent.beam&&this.anchor2.parent.beam&&this.anchor1.parent.beam.asc===this.anchor2.parent.beam.asc)||((this.force=="up")||this.force=="down")&&this.anchor1.parent.beam&&this.anchor2.parent.beam&&this.anchor1.parent.beam==this.anchor2.parent.beam){this.above=!this.anchor1.parent.beam.asc;var b=true}}var a=0;if(this.force=="up"&&!b){a=7}if(this.force=="down"&&!b){a=-7}e.drawArc(g,c,f+a,d+a,this.above)};function ABCTripletElem(d,c,b,a){this.anchor1=c;this.anchor2=b;this.above=a;this.number=d}ABCTripletElem.prototype.draw=function(d,g,c){if(this.anchor1&&this.anchor2){var f=this.above?14:-1;if(this.anchor1.parent.beam&&this.anchor1.parent.beam===this.anchor2.parent.beam){var b=this.anchor1.parent.beam;this.above=b.asc;f=b.pos}else{this.drawLine(d,d.calcY(f))}var e=this.anchor1.x+this.anchor2.x;var a=0;if(b){if(this.above){e+=(this.anchor2.w+this.anchor1.w);a=4}else{a=-4}}else{e+=this.anchor2.w}d.printText(e/2,f+a,this.number,"middle").attr({"font-size":"10px"})}};ABCTripletElem.prototype.drawLine=function(c,e){var b;var d=this.anchor1.x;b=sprintf("M %f %f L %f %f",d,e,d,e+5);c.printPath({path:b,stroke:"#000000"});var a=this.anchor2.x+this.anchor2.w;b=sprintf("M %f %f L %f %f",a,e,a,e+5);c.printPath({path:b,stroke:"#000000"});b=sprintf("M %f %f L %f %f",d,e,(d+a)/2-5,e);c.printPath({path:b,stroke:"#000000"});b=sprintf("M %f %f L %f %f",(d+a)/2+5,e,a,e);c.printPath({path:b,stroke:"#000000"})};function ABCBeamElem(a,b){this.isflat=(b);this.isgrace=(a&&a==="grace");this.forceup=(a&&a==="up");this.forcedown=(a&&a==="down");this.elems=[];this.total=0;this.dy=(this.asc)?AbcSpacing.STEP*1.2:-AbcSpacing.STEP*1.2;if(this.isgrace){this.dy=this.dy*0.4}this.allrests=true}ABCBeamElem.prototype.add=function(a){var b=a.abcelem.averagepitch;if(b===undefined){return}this.allrests=this.allrests&&a.abcelem.rest;a.beam=this;this.elems.push(a);var b=a.abcelem.averagepitch;this.total+=b;if(!this.min||a.abcelem.minpitch<this.min){this.min=a.abcelem.minpitch}if(!this.max||a.abcelem.maxpitch>this.max){this.max=a.abcelem.maxpitch}};ABCBeamElem.prototype.average=function(){try{return this.total/this.elems.length}catch(a){return 0}};ABCBeamElem.prototype.draw=function(a){if(this.elems.length===0||this.allrests){return}this.drawBeam(a);this.drawStems(a)};ABCBeamElem.prototype.drawBeam=function(i){var b=this.average();var h=(this.isgrace)?5:7;var a=5;this.asc=(this.forceup||this.isgrace||b<6)&&(!this.forcedown);this.pos=Math.round(this.asc?Math.max(b+h,this.max+a):Math.min(b-h,this.min-a));var f=this.elems[0].abcelem.averagepitch-this.elems[this.elems.length-1].abcelem.averagepitch;if(this.isflat){f=0}var e=this.elems.length/2;if(f>e){f=e}if(f<-e){f=-e}this.starty=i.calcY(this.pos+Math.floor(f/2));this.endy=i.calcY(this.pos+Math.floor(-f/2));var d=this.elems[0].heads[(this.asc)?0:this.elems[0].heads.length-1];var g=this.elems[this.elems.length-1].heads[(this.asc)?0:this.elems[this.elems.length-1].heads.length-1];this.startx=d.x;if(this.asc){this.startx+=d.w-0.6}this.endx=g.x;if(this.asc){this.endx+=g.w}var c="M"+this.startx+" "+this.starty+" L"+this.endx+" "+this.endy+"L"+this.endx+" "+(this.endy+this.dy)+" L"+this.startx+" "+(this.starty+this.dy)+"z";i.printPath({path:c,stroke:"none",fill:"#000000"})};ABCBeamElem.prototype.drawStems=function(r){var a=[];r.beginGroup();for(var g=0,q=this.elems.length;g<q;g++){if(this.elems[g].abcelem.rest){continue}var m=this.elems[g].heads[(this.asc)?0:this.elems[g].heads.length-1];var e=(this.isgrace)?1/3:1/5;var b=m.pitch+((this.asc)?e:-e);var o=r.calcY(b);var p=m.x+((this.asc)?m.w:0);var l=this.getBarYAt(p);var s=(this.asc)?-0.6:0.6;
r.printStem(p,s,o,l);var n=(this.asc)?1.5*AbcSpacing.STEP:-1.5*AbcSpacing.STEP;(this.isgrace)&&(n=n*2/3);for(var c=getDurlog(this.elems[g].duration);c<-3;c++){if(a[-4-c]){a[-4-c].single=false}else{a[-4-c]={x:p+((this.asc)?-0.6:0),y:l+n*(-4-c+1),durlog:c,single:true}}}for(var f=a.length-1;f>=0;f--){if(g===q-1||getDurlog(this.elems[g+1].duration)>(-f-4)){var k=p;var h=l+n*(f+1);if(a[f].single){k=(g===0)?p+5:p-5;h=this.getBarYAt(k)+n*(f+1)}var d="M"+a[f].x+" "+a[f].y+" L"+k+" "+h+"L"+k+" "+(h+this.dy)+" L"+a[f].x+" "+(a[f].y+this.dy)+"z";r.printPath({path:d,stroke:"none",fill:"#000000"});a=a.slice(0,f)}}}r.endGroup()};ABCBeamElem.prototype.getBarYAt=function(a){return this.starty+(this.endy-this.starty)/(this.endx-this.startx)*(a-this.startx)};var getDuration=function(a){var b=0;if(a.duration){b=a.duration}return b};var getDurlog=function(a){return Math.floor(Math.log(a)/Math.log(2))};function ABCLayout(b,a){this.glyphs=b;this.isBagpipes=a;this.chartable={rest:{0:"rests.whole",1:"rests.half",2:"rests.quarter",3:"rests.8th",4:"rests.16th",5:"rests.32nd",6:"rests.64th",7:"rests.128th"},note:{"-1":"noteheads.dbl",0:"noteheads.whole",1:"noteheads.half",2:"noteheads.quarter",3:"noteheads.quarter",4:"noteheads.quarter",5:"noteheads.quarter",6:"noteheads.quarter"},uflags:{3:"flags.u8th",4:"flags.u16th",5:"flags.u32nd",6:"flags.u64th"},dflags:{3:"flags.d8th",4:"flags.d16th",5:"flags.d32nd",6:"flags.d64th"}};this.slurs={};this.ties=[];this.slursbyvoice={};this.tiesbyvoice={};this.endingsbyvoice={};this.s=0;this.v=0;this.stafflines=5}ABCLayout.prototype.getCurrentVoiceId=function(){return"s"+this.s+"v"+this.v};ABCLayout.prototype.pushCrossLineElems=function(){this.slursbyvoice[this.getCurrentVoiceId()]=this.slurs;this.tiesbyvoice[this.getCurrentVoiceId()]=this.ties;this.endingsbyvoice[this.getCurrentVoiceId()]=this.partstartelem};ABCLayout.prototype.popCrossLineElems=function(){this.slurs=this.slursbyvoice[this.getCurrentVoiceId()]||{};this.ties=this.tiesbyvoice[this.getCurrentVoiceId()]||[];this.partstartelem=this.endingsbyvoice[this.getCurrentVoiceId()]};ABCLayout.prototype.getElem=function(){if(this.abcline.length<=this.pos){return null}return this.abcline[this.pos]};ABCLayout.prototype.getNextElem=function(){if(this.abcline.length<=this.pos+1){return null}return this.abcline[this.pos+1]};ABCLayout.prototype.printABCLine=function(a){this.staffgroup=new ABCStaffGroupElement();for(this.s=0;this.s<a.length;this.s++){this.printABCStaff(a[this.s])}return this.staffgroup};ABCLayout.prototype.printABCStaff=function(a){var b="";if(a.bracket){b+="bracket "+a.bracket+" "}if(a.brace){b+="brace "+a.brace+" "}for(this.v=0;this.v<a.voices.length;this.v++){this.voice=new ABCVoiceElement(this.v,a.voices.length);if(this.v===0){this.voice.barfrom=(a.connectBarLines==="start"||a.connectBarLines==="continue");this.voice.barto=(a.connectBarLines==="continue"||a.connectBarLines==="end")}else{this.voice.duplicate=true}if(a.title&&a.title[this.v]){this.voice.header=a.title[this.v]}this.voice.addChild(this.printClef(a.clef));this.voice.addChild(this.printKeySignature(a.key));if(a.meter){this.voice.addChild(this.printTimeSignature(a.meter))}this.printABCVoice(a.voices[this.v]);this.staffgroup.addVoice(this.voice,this.s,this.stafflines)}};ABCLayout.prototype.printABCVoice=function(b){this.popCrossLineElems();this.stemdir=(this.isBagpipes)?"down":null;this.abcline=b;if(this.partstartelem){this.partstartelem=new ABCEndingElem("",null,null);this.voice.addOther(this.partstartelem)}for(var a in this.slurs){if(this.slurs.hasOwnProperty(a)){this.slurs[a]=new ABCTieElem(null,null,this.slurs[a].above,this.slurs[a].force);this.voice.addOther(this.slurs[a])}}for(var c=0;c<this.ties.length;c++){this.ties[c]=new ABCTieElem(null,null,this.ties[c].above,this.ties[c].force);this.voice.addOther(this.ties[c])}for(this.pos=0;this.pos<this.abcline.length;this.pos++){var d=this.printABCElement();for(var c=0;c<d.length;c++){this.voice.addChild(d[c])}}this.pushCrossLineElems()};ABCLayout.prototype.printABCElement=function(){var c=[];var b=this.getElem();switch(b.el_type){case"note":c=this.printBeam();break;case"bar":c[0]=this.printBarLine(b);if(this.voice.duplicate){c[0].invisible=true}break;case"meter":c[0]=this.printTimeSignature(b);if(this.voice.duplicate){c[0].invisible=true}break;case"clef":c[0]=this.printClef(b);if(this.voice.duplicate){c[0].invisible=true}break;case"key":c[0]=this.printKeySignature(b);if(this.voice.duplicate){c[0].invisible=true}break;case"stem":this.stemdir=b.direction;break;case"part":var a=new ABCAbsoluteElement(b,0,0);a.addChild(new ABCRelativeElement(b.title,0,0,18,{type:"text",attributes:{"font-weight":"bold","font-size":"16px","font-family":"serif"}}));c[0]=a;break;default:var a=new ABCAbsoluteElement(b,0,0);a.addChild(new ABCRelativeElement("element type "+b.el_type,0,0,0,{type:"debug"}));c[0]=a}return c};ABCLayout.prototype.printBeam=function(){var b=[];if(this.getElem().startBeam&&!this.getElem().endBeam){var c=new ABCBeamElem(this.stemdir);while(this.getElem()){var a=this.printNote(this.getElem(),true);b.push(a);c.add(a);if(this.getElem().endBeam){break}this.pos++}this.voice.addOther(c)}else{b[0]=this.printNote(this.getElem())}return b};function sortPitch(c){var a;do{a=true;for(var d=0;d<c.pitches.length-1;d++){if(c.pitches[d].pitch>c.pitches[d+1].pitch){a=false;var b=c.pitches[d];c.pitches[d]=c.pitches[d+1];c.pitches[d+1]=b}}}while(!a)}ABCLayout.prototype.printNote=function(I,d){var o=null;var a=null;this.roomtaken=0;this.roomtakenright=0;var B=0;var P="";var z=null;var q=[];var G,K,l;var b,N,M,e;var r=getDuration(I);var u=Math.floor(Math.log(r)/Math.log(2));var R=0;for(var f=Math.pow(2,u),L=f/2;f<r;R++,f+=L,L/=2){}var g=new ABCAbsoluteElement(I,r,1);if(I.rest){var k=7;if(this.stemdir=="down"){k=3}if(this.stemdir=="up"){k=11}switch(I.rest.type){case"rest":P=this.chartable.rest[-u];I.averagepitch=k;I.minpitch=k;I.maxpitch=k;break;case"invisible":case"spacer":P=""}o=this.printNoteHead(g,P,{verticalPos:k},null,0,-this.roomtaken,null,R,0,1);if(o){g.addHead(o)}this.roomtaken+=this.accidentalshiftx;this.roomtakenright=Math.max(this.roomtakenright,this.dotshiftx)}else{sortPitch(I);var n=0;for(G=0,l=I.pitches.length;G<l;G++){n+=I.pitches[G].verticalPos}I.averagepitch=n/I.pitches.length;I.minpitch=I.pitches[0].verticalPos;I.maxpitch=I.pitches[I.pitches.length-1].verticalPos;var Q=(I.averagepitch>=6)?"down":"up";if(this.stemdir){Q=this.stemdir}for(G=(Q=="down")?I.pitches.length-2:1;(Q=="down")?G>=0:G<I.pitches.length;G=(Q=="down")?G-1:G+1){var v=I.pitches[(Q=="down")?G+1:G-1];var C=I.pitches[G];var D=(Q=="down")?v.pitch-C.pitch:C.pitch-v.pitch;if(D<=1&&!v.printer_shift){C.printer_shift=(D)?"different":"same";if(C.pitch>11||C.pitch<1){q.push(C.pitch-(C.pitch%2))}if(Q=="down"){this.roomtaken=this.glyphs.getSymbolWidth(this.chartable.note[-u])+2}else{B=this.glyphs.getSymbolWidth(this.chartable.note[-u])+2}}}for(G=0;G<I.pitches.length;G++){if(!d){if((Q=="down"&&G!==0)||(Q=="up"&&G!=l-1)){z=null}else{z=this.chartable[(Q=="down")?"dflags":"uflags"][-u]
}P=this.chartable.note[-u]}else{P="noteheads.quarter"}if(((this.stemdir=="up"||Q=="down")&&G==l-1)||((this.stemdir=="down"||Q=="up")&&G==0)){if(I.startSlur){if(!I.pitches[G].startSlur){I.pitches[G].startSlur=[]}for(var K=0;K<I.startSlur.length;K++){I.pitches[G].startSlur.push(I.startSlur[K])}}if(I.endSlur){if(!I.pitches[G].endSlur){I.pitches[G].endSlur=[]}for(var K=0;K<I.endSlur.length;K++){I.pitches[G].endSlur.push(I.endSlur[K])}}}o=this.printNoteHead(g,P,I.pitches[G],Q,0,-this.roomtaken,z,R,B,1);if(o){g.addHead(o)}this.roomtaken+=this.accidentalshiftx;this.roomtakenright=Math.max(this.roomtakenright,this.dotshiftx)}if(!d&&u<=-1){N=(Q=="down")?I.minpitch-7:I.minpitch+1/3;if(N>6&&!this.stemdir){N=6}M=(Q=="down")?I.maxpitch-1/3:I.maxpitch+7;if(M<6&&!this.stemdir){M=6}e=(Q==="down"||g.heads.length===0)?0:g.heads[0].w;b=(Q=="down")?1:-1;g.addExtra(new ABCRelativeElement(null,e,0,N,{type:"stem",pitch2:M,linewidth:b}))}}if(I.lyric!==undefined){var H="";I.lyric.each(function(c){H+=c.syllable+c.divider+"\n"});g.addRight(new ABCRelativeElement(H,0,H.length*5,0,{type:"debugLow"}))}if(I.gracenotes!==undefined){var t=3/5;var h=null;if(I.gracenotes.length>1){h=new ABCBeamElem("grace",this.isBagpipes)}var O=[];for(K=I.gracenotes.length-1;K>=0;K--){this.roomtaken+=10;O[K]=this.roomtaken;if(I.gracenotes[K].accidental){this.roomtaken+=7}}for(K=0;K<I.gracenotes.length;K++){var s=I.gracenotes[K].verticalPos;z=(h)?null:this.chartable.uflags[(this.isBagpipes)?5:3];a=this.printNoteHead(g,"noteheads.quarter",I.gracenotes[K],"up",-O[K],-O[K],z,0,0,t);g.addExtra(a);if(I.gracenotes[K].acciaccatura){var w=I.gracenotes[K].verticalPos+7*t;var J=h?5:6;g.addRight(new ABCRelativeElement("flags.ugrace",-O[K]+J,0,w,{scalex:t,scaley:t}))}if(h){var m={heads:[a],abcelem:{averagepitch:s,minpitch:s,maxpitch:s},duration:(this.isBagpipes)?1/32:1/16};h.add(m)}else{N=s+1/3*t;M=s+7*t;e=a.dx+a.w;b=-0.6;g.addExtra(new ABCRelativeElement(null,e,0,N,{type:"stem",pitch2:M,linewidth:b}))}if(K==0&&!this.isBagpipes&&!(I.rest&&(I.rest.type=="spacer"||I.rest.type=="invisible"))){this.voice.addOther(new ABCTieElem(a,o,false,true))}}if(h){this.voice.addOther(h)}}if(I.decoration){this.printDecoration(I.decoration,I.maxpitch,(o)?o.w:0,g,this.roomtaken)}if(I.barNumber){g.addChild(new ABCRelativeElement(I.barNumber,-10,0,0,{type:"debug"}))}for(K=I.maxpitch;K>11;K--){if(K%2===0&&!I.rest){g.addChild(new ABCRelativeElement(null,-2,this.glyphs.getSymbolWidth(P)+4,K,{type:"ledger"}))}}for(K=I.minpitch;K<1;K++){if(K%2===0&&!I.rest){g.addChild(new ABCRelativeElement(null,-2,this.glyphs.getSymbolWidth(P)+4,K,{type:"ledger"}))}}for(K=0;K<q.length;K++){var A=this.glyphs.getSymbolWidth(P);if(Q==="down"){A=-A}g.addChild(new ABCRelativeElement(null,A-2,this.glyphs.getSymbolWidth(P)+4,q[K],{type:"ledger"}))}if(I.chord!==undefined){for(K=0;K<I.chord.length;K++){var F=0;var E=16;switch(I.chord[K].position){case"left":this.roomtaken+=7;F=-this.roomtaken;E=I.averagepitch;g.addExtra(new ABCRelativeElement(I.chord[K].name,F,this.glyphs.getSymbolWidth(I.chord[K].name[0])+4,E,{type:"text"}));break;case"right":this.roomtakenright+=4;F=this.roomtakenright;E=I.averagepitch;g.addRight(new ABCRelativeElement(I.chord[K].name,F,this.glyphs.getSymbolWidth(I.chord[K].name[0])+4,E,{type:"text"}));break;case"below":E=-3;default:g.addChild(new ABCRelativeElement(I.chord[K].name,F,0,E,{type:"text"}))}}}if(I.startTriplet){this.triplet=new ABCTripletElem(I.startTriplet,o,null,true);this.voice.addOther(this.triplet)}if(I.endTriplet){this.triplet.anchor2=o;this.triplet=null}return g};ABCLayout.prototype.printNoteHead=function(l,w,x,n,h,e,s,o,u,y){var k=x.verticalPos;var d;var t;this.accidentalshiftx=0;this.dotshiftx=0;if(w===undefined){l.addChild(new ABCRelativeElement("pitch is undefined",0,0,0,{type:"debug"}))}else{if(w===""){d=new ABCRelativeElement(null,0,0,k)}else{var m=h;if(x.printer_shift){var q=(x.printer_shift=="same")?1:0;m=(n=="down")?-this.glyphs.getSymbolWidth(w)*y+q:this.glyphs.getSymbolWidth(w)*y-q}d=new ABCRelativeElement(w,m,this.glyphs.getSymbolWidth(w)*y,k,{scalex:y,scaley:y,extreme:((n=="down")?"below":"above")});if(s){var g=k+((n=="down")?-7:7)*y;if(y==1&(n=="down")?(g>6):(g<6)){g=6}var p=(n=="down")?h:h+d.w-0.6;l.addRight(new ABCRelativeElement(s,p,this.glyphs.getSymbolWidth(s)*y,g,{scalex:y,scaley:y}))}this.dotshiftx=d.w+u-2+5*o;for(;o>0;o--){var a=(1-Math.abs(k)%2);l.addRight(new ABCRelativeElement("dots.dot",d.w+u-2+5*o,this.glyphs.getSymbolWidth("dots.dot"),k+a))}}}if(x.accidental){var b;switch(x.accidental){case"quartersharp":b="accidentals.halfsharp";break;case"dblsharp":b="accidentals.dblsharp";break;case"sharp":b="accidentals.sharp";break;case"quarterflat":b="accidentals.halfflat";break;case"flat":b="accidentals.flat";break;case"dblflat":b="accidentals.dblflat";break;case"natural":b="accidentals.nat"}this.accidentalshiftx=(this.glyphs.getSymbolWidth(b)*y+2);l.addExtra(new ABCRelativeElement(b,e-this.accidentalshiftx,this.glyphs.getSymbolWidth(b),k,{scalex:y,scaley:y}))}if(x.endTie){if(this.ties[0]){this.ties[0].anchor2=d;this.ties=this.ties.slice(1,this.ties.length)}}if(x.startTie){var r=new ABCTieElem(d,null,(this.stemdir=="down"||n=="down")&&this.stemdir!="up",(this.stemdir=="down"||this.stemdir=="up"));this.ties[this.ties.length]=r;this.voice.addOther(r)}if(x.endSlur){for(t=0;t<x.endSlur.length;t++){var v=x.endSlur[t];var f;if(this.slurs[v]){f=this.slurs[v].anchor2=d;delete this.slurs[v]}else{f=new ABCTieElem(null,d,n=="down",(this.stemdir=="up"||n=="down")&&this.stemdir!="down",this.stemdir);this.voice.addOther(f)}if(this.startlimitelem){f.startlimitelem=this.startlimitelem}}}if(x.startSlur){for(t=0;t<x.startSlur.length;t++){var v=x.startSlur[t].label;var f=new ABCTieElem(d,null,(this.stemdir=="down"||n=="down")&&this.stemdir!="up",false);this.slurs[v]=f;this.voice.addOther(f)}}return d};ABCLayout.prototype.printDecoration=function(m,b,c,o,q){var f;var h;var k=[];var e=(b>9)?b+3:12;var d;var g;q=q||0;(b===5)&&(e=14);for(g=0;g<m.length;g++){if(m[g]==="staccato"){d=((this.stemdir=="down"||b>=6)&&this.stemdir!=="up")?b+2:b-2;(b===4)&&d--;((b===6)||(b===8))&&d++;(b>9)&&e++;var p=c/2;if(this.glyphs.getSymbolAlign("scripts.staccato")!=="center"){p-=(this.glyphs.getSymbolWidth(f)/2)}o.addChild(new ABCRelativeElement("scripts.staccato",p,this.glyphs.getSymbolWidth("scripts.staccato"),d))}if(m[g]==="slide"&&o.heads[0]){d=o.heads[0].pitch;var n=new ABCRelativeElement("",-q-15,0,d-1);var l=new ABCRelativeElement("",-q-5,0,d+1);o.addChild(n);o.addChild(l);this.voice.addOther(new ABCTieElem(n,l,false))}}for(g=0;g<m.length;g++){switch(m[g]){case"trill":f="scripts.trill";break;case"roll":f="scripts.roll";break;case"irishroll":f="scripts.roll";break;case"marcato":f="scripts.umarcato";break;case"marcato2":f="scriopts.dmarcato";break;case"turn":f="scripts.turn";break;case"uppermordent":f="scripts.prall";break;case"mordent":case"lowermordent":f="scripts.mordent";break;case"staccato":case"slide":continue;case"downbow":f="scripts.downbow";break;case"upbow":f="scripts.upbow";
break;case"fermata":f="scripts.ufermata";break;case"invertedfermata":f="scripts.dfermata";break;case"breath":f=",";break;case"accent":f="scripts.sforzato";break;case"tenuto":f="scripts.tenuto";break;case"coda":f="scripts.coda";break;case"segno":f="scripts.segno";break;case"/":h=["flags.ugrace",1];continue;case"//":h=["flags.ugrace",2];continue;case"///":h=["flags.ugrace",3];continue;case"////":h=["flags.ugrace",4];continue;case"p":case"mp":case"ppp":case"pppp":case"f":case"ff":case"fff":case"ffff":case"sfz":case"mf":f=m[g];break;default:k[k.length]=m[g];continue}d=e;e+=3;var p=c/2;if(this.glyphs.getSymbolAlign(f)!=="center"){p-=(this.glyphs.getSymbolWidth(f)/2)}o.addChild(new ABCRelativeElement(f,p,this.glyphs.getSymbolWidth(f),d))}if(h){d=((this.stemdir=="down"||b>=6)&&this.stemdir!=="up")?b+1:b+9;p=c/2;p+=((this.stemdir=="down"||b>=6)&&this.stemdir!=="up")?-5:3;for(var a=0;a<h[1];a++){d-=1;o.addChild(new ABCRelativeElement(h[0],p,this.glyphs.getSymbolWidth(h[0]),d))}}(k.length>0)&&o.addChild(new ABCRelativeElement(k.join(","),0,0,0,{type:"debug"}))};ABCLayout.prototype.printBarLine=function(c){var i=new ABCAbsoluteElement(c,0,10);var d=null;var k=0;var a=(c.type==="bar_right_repeat"||c.type==="bar_dbl_repeat");var e=(c.type!="bar_left_repeat"&&c.type!="bar_thick_thin"&&c.type!="bar_invisible");var f=(c.type==="bar_right_repeat"||c.type==="bar_dbl_repeat"||c.type==="bar_left_repeat"||c.type==="bar_thin_thick"||c.type==="bar_thick_thin");var g=(c.type==="bar_left_repeat"||c.type==="bar_thick_thin"||c.type==="bar_thin_thin"||c.type==="bar_dbl_repeat");var b=(c.type==="bar_left_repeat"||c.type==="bar_dbl_repeat");if(a||b){for(var h in this.slurs){if(this.slurs.hasOwnProperty(h)){this.slurs[h].endlimitelem=i}}this.startlimitelem=i}if(a){i.addRight(new ABCRelativeElement("dots.dot",k,1,7));i.addRight(new ABCRelativeElement("dots.dot",k,1,5));k+=6}if(e){d=new ABCRelativeElement(null,k,1,2,{type:"bar",pitch2:10,linewidth:0.6});i.addRight(d)}if(c.type==="bar_invisible"){d=new ABCRelativeElement(null,k,1,2,{type:"none",pitch2:10,linewidth:0.6});i.addRight(d)}if(c.decoration){this.printDecoration(c.decoration,12,(f)?3:1,i)}if(f){k+=4;d=new ABCRelativeElement(null,k,4,2,{type:"bar",pitch2:10,linewidth:4});i.addRight(d);k+=5}if(this.partstartelem&&c.endEnding){this.partstartelem.anchor2=d;this.partstartelem=null}if(g){k+=3;d=new ABCRelativeElement(null,k,1,2,{type:"bar",pitch2:10,linewidth:0.6});i.addRight(d)}if(b){k+=3;i.addRight(new ABCRelativeElement("dots.dot",k,1,7));i.addRight(new ABCRelativeElement("dots.dot",k,1,5))}if(c.startEnding){this.partstartelem=new ABCEndingElem(c.startEnding,d,null);this.voice.addOther(this.partstartelem)}return i};ABCLayout.prototype.printClef=function(e){var g="clefs.G";var c=0;var f=4;var d=new ABCAbsoluteElement(e,0,10);switch(e.type){case"treble":break;case"tenor":g="clefs.C";f=8;break;case"alto":g="clefs.C";f=6;break;case"bass":g="clefs.F";f=8;break;case"treble+8":c=1;break;case"tenor+8":g="clefs.C";f=8;break;case"bass+8":g="clefs.F";f=8;break;case"alto+8":g="clefs.C";f=6;break;case"treble-8":c=-1;break;case"tenor-8":g="clefs.C";f=8;break;case"bass-8":g="clefs.F";f=8;break;case"alto-8":g="clefs.C";f=6;break;case"none":g="";break;case"perc":g="clefs.perc";f=6;break;default:d.addChild(new ABCRelativeElement("clef="+e.type,0,0,0,{type:"debug"}))}if(e.verticalPos){f=e.verticalPos}var b=10;if(g!==""){d.addRight(new ABCRelativeElement(g,b,this.glyphs.getSymbolWidth(g),f))}if(c!==0){var h=2/3;var a=(this.glyphs.getSymbolWidth(g)-this.glyphs.getSymbolWidth("8")*h)/2;d.addRight(new ABCRelativeElement("8",b+a,this.glyphs.getSymbolWidth("8")*h,(c>0)?16:-2,{scalex:h,scaley:h}))}if(e.stafflines===0){this.stafflines=0}else{this.stafflines=e.stafflines}return d};ABCLayout.prototype.printKeySignature=function(c){var b=new ABCAbsoluteElement(c,0,10);var a=0;if(c.accidentals){c.accidentals.each(function(e){var d=(e.acc==="sharp")?"accidentals.sharp":(e.acc==="natural")?"accidentals.nat":"accidentals.flat";b.addRight(new ABCRelativeElement(d,a,this.glyphs.getSymbolWidth(d),e.verticalPos));a+=this.glyphs.getSymbolWidth(d)+2},this)}this.startlimitelem=b;return b};ABCLayout.prototype.printTimeSignature=function(c){var b=new ABCAbsoluteElement(c,0,20);if(c.type==="specified"){for(var a=0;a<c.value.length;a++){if(a!==0){b.addRight(new ABCRelativeElement("+",a*20-9,this.glyphs.getSymbolWidth("+"),7))}if(c.value[a].den){b.addRight(new ABCRelativeElement(c.value[a].num,a*20,this.glyphs.getSymbolWidth(c.value[a].num.charAt(0))*c.value[a].num.length,9));b.addRight(new ABCRelativeElement(c.value[a].den,a*20,this.glyphs.getSymbolWidth(c.value[a].den.charAt(0))*c.value[a].den.length,5))}else{b.addRight(new ABCRelativeElement(c.value[a].num,a*20,this.glyphs.getSymbolWidth(c.value[a].num.charAt(0))*c.value[a].num.length,7))}}}else{if(c.type==="common_time"){b.addRight(new ABCRelativeElement("timesig.common",0,this.glyphs.getSymbolWidth("timesig.common"),7))}else{if(c.type==="cut_time"){b.addRight(new ABCRelativeElement("timesig.cut",0,this.glyphs.getSymbolWidth("timesig.cut"),7))}}}this.startlimitelem=b;return b};var AbcSpacing=function(){};AbcSpacing.FONTEM=360;AbcSpacing.FONTSIZE=30;AbcSpacing.STEP=AbcSpacing.FONTSIZE*93/720;AbcSpacing.SPACE=10;AbcSpacing.TOPNOTE=20;AbcSpacing.STAVEHEIGHT=100;function ABCPrinter(b,a){a=a||{};this.y=0;this.paper=b;this.space=3*AbcSpacing.SPACE;this.glyphs=new ABCGlyphs();this.listeners=[];this.selected=[];this.ingroup=false;this.scale=a.scale||1;this.staffwidth=a.staffwidth||740;this.paddingtop=a.paddingtop||15;this.paddingbottom=a.paddingbottom||30;this.paddingright=a.paddingright||50;this.paddingleft=a.paddingleft||15;this.editable=a.editable||false}ABCPrinter.prototype.notifySelect=function(b){this.clearSelection();this.selected=[b];b.highlight();for(var a=0;a<this.listeners.length;a++){this.listeners[a].highlight(b.abcelem)}};ABCPrinter.prototype.notifyChange=function(b){for(var a=0;a<this.listeners.length;a++){this.listeners[a].modelChanged()}};ABCPrinter.prototype.clearSelection=function(){for(var a=0;a<this.selected.length;a++){this.selected[a].unhighlight()}this.selected=[]};ABCPrinter.prototype.addSelectListener=function(a){this.listeners[this.listeners.length]=a};ABCPrinter.prototype.rangeHighlight=function(b,d){this.clearSelection();for(var i=0;i<this.staffgroups.length;i++){var f=this.staffgroups[i].voices;for(var g=0;g<f.length;g++){var a=f[g].children;for(var c=0;c<a.length;c++){var h=a[c].abcelem.startChar;var e=a[c].abcelem.endChar;if((d>h&&b<e)||((d==b)&&d==e)){this.selected[this.selected.length]=a[c];a[c].highlight()}}}}};ABCPrinter.prototype.beginGroup=function(){this.path=[];this.lastM=[0,0];this.ingroup=true};ABCPrinter.prototype.addPath=function(c){c=c||[];if(c.length==0){return}c[0][0]="m";c[0][1]-=this.lastM[0];c[0][2]-=this.lastM[1];this.lastM[0]+=c[0][1];this.lastM[1]+=c[0][2];this.path.push(c[0]);for(var a=1,b=c.length;a<b;a++){if(c[a][0]=="m"){this.lastM[0]+=c[a][1];this.lastM[1]+=c[a][2]}this.path.push(c[a])}};
ABCPrinter.prototype.endGroup=function(){this.ingroup=false;if(this.path.length==0){return null}var a=this.paper.path().attr({path:this.path,stroke:"none",fill:"#000000"});if(this.scale!==1){a.scale(this.scale,this.scale,0,0)}return a};ABCPrinter.prototype.printStaveLine=function(x1,x2,pitch){var isIE=
/*@cc_on!@*/
false;var dy=0.35;var fill="#000000";if(isIE){dy=1;fill="#666666"}var y=this.calcY(pitch);var pathString=sprintf("M %f %f L %f %f L %f %f L %f %f z",x1,y-dy,x2,y-dy,x2,y+dy,x1,y+dy);var ret=this.paper.path().attr({path:pathString,stroke:"none",fill:fill}).toBack();if(this.scale!==1){ret.scale(this.scale,this.scale,0,0)}return ret};ABCPrinter.prototype.printStem=function(x,dx,y1,y2){if(dx<0){var tmp=y2;y2=y1;y1=tmp}var isIE=
/*@cc_on!@*/
false;var fill="#000000";if(isIE&&dx<1){dx=1;fill="#666666"}if(~~x===x){x+=0.05}var pathArray=[["M",x,y1],["L",x,y2],["L",x+dx,y2],["L",x+dx,y1],["z"]];if(!isIE&&this.ingroup){this.addPath(pathArray)}else{var ret=this.paper.path().attr({path:pathArray,stroke:"none",fill:fill}).toBack();if(this.scale!==1){ret.scale(this.scale,this.scale,0,0)}return ret}};ABCPrinter.prototype.printText=function(a,e,d,c){c=c||"start";var b=this.paper.text(a,this.calcY(e),d).attr({"text-anchor":c,"font-size":12});if(this.scale!==1){b.scale(this.scale,this.scale,0,0)}return b};ABCPrinter.prototype.printSymbol=function(k,d,c,g,f){if(!c){return null}if(c.length>0&&c.indexOf(".")<0){var h=this.paper.set();var l=0;for(var e=0;e<c.length;e++){var b=this.glyphs.getYCorr(c.charAt(e));var a=this.glyphs.printSymbol(k+l,this.calcY(d+b),c.charAt(e),this.paper);if(a){h.push(a);l+=this.glyphs.getSymbolWidth(c.charAt(e))}else{this.debugMsg(k,"no symbol:"+c)}}if(this.scale!==1){h.scale(this.scale,this.scale,0,0)}return h}else{var b=this.glyphs.getYCorr(c);if(this.ingroup){this.addPath(this.glyphs.getPathForSymbol(k,this.calcY(d+b),c,g,f))}else{var a=this.glyphs.printSymbol(k,this.calcY(d+b),c,this.paper);if(a){if(this.scale!==1){a.scale(this.scale,this.scale,0,0)}return a}else{this.debugMsg(k,"no symbol:"+c)}}return null}};ABCPrinter.prototype.printPath=function(a){ret=this.paper.path().attr(a);(this.scale==1)||ret.scale(this.scale,this.scale,0,0);return ret};ABCPrinter.prototype.drawArc=function(o,n,r,q,p){o=o+6;n=n+4;r=r+((p)?1.5:-1.5);q=q+((p)?1.5:-1.5);var c=this.calcY(r);var b=this.calcY(q);var h=n-o;var g=b-c;var f=Math.sqrt(h*h+g*g);var e=h/f;var d=g/f;var u=f/5;var i=((p)?-1:1)*Math.min(25,Math.max(4,u));var m=o+u*e-i*d;var t=c+u*d+i*e;var k=n-u*e-i*d;var s=b-u*d+i*e;var a=2;var l=sprintf("M %f %f C %f %f %f %f %f %f C %f %f %f %f %f %f z",o,c,m,t,k,s,n,b,k-a*d,s+a*e,m-a*d,t+a*e,o,c);ret=this.paper.path().attr({path:l,stroke:"none",fill:"#000000"});if(this.scale!==1){ret.scale(this.scale,this.scale,0,0)}return ret};ABCPrinter.prototype.debugMsg=function(a,b){return this.paper.text(a,this.y,b).scale(this.scale,this.scale,0,0)};ABCPrinter.prototype.debugMsgLow=function(a,b){return this.paper.text(a,this.staffbottom,b).attr({"font-family":"serif","font-size":12,"text-anchor":"begin"}).scale(this.scale,this.scale,0,0)};ABCPrinter.prototype.calcY=function(a){return this.y+((AbcSpacing.TOPNOTE-a)*AbcSpacing.STEP)};ABCPrinter.prototype.printStave=function(a,d,b){if(b===1){this.printStaveLine(a,d,6);return}for(var c=0;c<b;c++){this.printStaveLine(a,d,(c+1)*2)}};ABCPrinter.prototype.printABC=function(a){if(a[0]===undefined){a=[a]}this.y=0;for(var b=0;b<a.length;b++){this.printTune(a[b])}};ABCPrinter.prototype.printTune=function(abctune){this.layouter=new ABCLayout(this.glyphs,abctune.formatting.bagpipes);if(abctune.media==="print"){var m=abctune.formatting.topmargin===undefined?54:abctune.formatting.topmargin;this.y+=m}else{this.y+=this.paddingtop}if(abctune.formatting.staffwidth){this.width=abctune.formatting.staffwidth}else{this.width=this.staffwidth}this.width+=this.paddingleft;if(abctune.formatting.scale){this.scale=abctune.formatting.scale}this.paper.text(this.width/2,this.y,abctune.metaText.title).attr({"font-size":20,"font-family":"serif"});this.y+=20;if(abctune.lines[0]&&abctune.lines[0].subtitle){this.printSubtitleLine(abctune.lines[0]);this.y+=20}if(abctune.metaText.rhythm){this.paper.text(this.paddingleft,this.y,abctune.metaText.rhythm).attr({"text-anchor":"start","font-style":"italic","font-family":"serif","font-size":12});!(abctune.metaText.author||abctune.metaText.origin||abctune.metaText.composer)&&(this.y+=15)}if(abctune.metaText.author){this.paper.text(this.width,this.y,abctune.metaText.author).attr({"text-anchor":"end","font-style":"italic","font-family":"serif","font-size":12});this.y+=15}if(abctune.metaText.origin){this.paper.text(this.width,this.y,"("+abctune.metaText.origin+")").attr({"text-anchor":"end","font-style":"italic","font-family":"serif","font-size":12});this.y+=15}if(abctune.metaText.composer){this.paper.text(this.width,this.y,abctune.metaText.composer).attr({"text-anchor":"end","font-style":"italic","font-family":"serif","font-size":12});this.y+=15}if(abctune.metaText.tempo){var x=50;if(abctune.metaText.tempo.preString){var text=this.paper.text(x,this.y+20,abctune.metaText.tempo.preString).attr({"text-anchor":"start"});x+=(text.getBBox().width+10)}if(abctune.metaText.tempo.duration){var temposcale=0.75;var tempopitch=14.5;var duration=abctune.metaText.tempo.duration[0];var abselem=new ABCAbsoluteElement(abctune.metaText.tempo,duration,1);var durlog=Math.floor(Math.log(duration)/Math.log(2));var dot=0;for(var tot=Math.pow(2,durlog),inc=tot/2;tot<duration;dot++,tot+=inc,inc/=2){}var c=this.layouter.chartable.note[-durlog];var flag=this.layouter.chartable.uflags[-durlog];var temponote=this.layouter.printNoteHead(abselem,c,{verticalPos:tempopitch},"up",0,0,flag,dot,0,temposcale);abselem.addHead(temponote);if(duration<1){var p1=tempopitch+1/3*temposcale;var p2=tempopitch+7*temposcale;var dx=temponote.dx+temponote.w;var width=-0.6;abselem.addExtra(new ABCRelativeElement(null,dx,0,p1,{type:"stem",pitch2:p2,linewidth:width}))}abselem.x=x;abselem.draw(this,null);x+=(abselem.w+5);text=this.paper.text(x,this.y+20,"= "+abctune.metaText.tempo.bpm).attr({"text-anchor":"start"});x+=text.getBBox().width+10}if(abctune.metaText.tempo.postString){this.paper.text(x,this.y+20,abctune.metaText.tempo.postString).attr({"text-anchor":"start"})}this.y+=15}this.staffgroups=[];var maxwidth=this.width;for(var line=0;line<abctune.lines.length;line++){var abcline=abctune.lines[line];if(abcline.staff){var staffgroup=this.layouter.printABCLine(abcline.staff);var newspace=this.space;for(var it=0;it<3;it++){staffgroup.layout(newspace,this);if(line&&line==abctune.lines.length-1&&staffgroup.w/this.width<0.66&&!abctune.formatting.stretchlast){break}var relspace=staffgroup.spacingunits*newspace;var constspace=staffgroup.w-relspace;if(staffgroup.spacingunits>0){newspace=(this.width-constspace)/staffgroup.spacingunits;if(newspace*staffgroup.minspace>50){newspace=50/staffgroup.minspace}}}staffgroup.draw(this,this.y);if(staffgroup.w>maxwidth){maxwidth=staffgroup.w}this.staffgroups[this.staffgroups.length]=staffgroup;
this.y=staffgroup.y+staffgroup.height;this.y+=AbcSpacing.STAVEHEIGHT*0.2}else{if(abcline.subtitle&&line!=0){this.printSubtitleLine(abcline);this.y+=20}else{if(abcline.text){if(typeof abcline.text==="string"){this.paper.text(100,this.y,"TEXT: "+abcline.text)}else{var str="";for(var i=0;i<abcline.text.length;i++){str+=" FONT "+abcline.text[i].text}this.paper.text(100,this.y,"TEXT: "+str)}this.y+=20}}}}var extraText="";if(abctune.metaText.partOrder){extraText+="Part Order: "+abctune.metaText.partOrder+"\n"}if(abctune.metaText.notes){extraText+="Notes:\n"+abctune.metaText.notes+"\n"}if(abctune.metaText.book){extraText+="Book: "+abctune.metaText.book+"\n"}if(abctune.metaText.source){extraText+="Source: "+abctune.metaText.source+"\n"}if(abctune.metaText.transcription){extraText+="Transcription: "+abctune.metaText.transcription+"\n"}if(abctune.metaText.discography){extraText+="Discography: "+abctune.metaText.discography+"\n"}if(abctune.metaText.history){extraText+="History: "+abctune.metaText.history+"\n"}if(abctune.metaText.unalignedWords){extraText+="Words:\n";for(var j=0;j<abctune.metaText.unalignedWords.length;j++){if(typeof abctune.metaText.unalignedWords[j]==="string"){extraText+=abctune.metaText.unalignedWords[j]+"\n"}else{for(var k=0;k<abctune.metaText.unalignedWords[j].length;k++){extraText+=" FONT "+abctune.metaText.unalignedWords[j][k].text}extraText+="\n"}}}var text2=this.paper.text(this.paddingleft,this.y+25,extraText).attr({"text-anchor":"start","font-family":"serif","font-size":13});var height=text2.getBBox().height;text2.translate(0,height/2);this.y+=25+height;var sizetoset={w:maxwidth*this.scale+this.paddingright,h:this.y*this.scale+this.paddingbottom};this.paper.setSize(sizetoset.w,sizetoset.h);var isIE=
/*@cc_on!@*/
false;if(isIE){this.paper.canvas.parentNode.style.width=sizetoset.w+"px";this.paper.canvas.parentNode.style.height=""+sizetoset.h+"px"}else{this.paper.canvas.parentNode.setAttribute("style","width:"+sizetoset.w+"px")}};ABCPrinter.prototype.printSubtitleLine=function(a){this.paper.text(this.width/2,this.y,a.subtitle).attr({"font-size":16}).scale(this.scale,this.scale,0,0)};function AbcTuneBook(c){var g=this;var f="";c=c.strip();var a=c.split("\nX:");for(var e=1;e<a.length;e++){a[e]="X:"+a[e]}var h=0;g.tunes=[];a.each(function(i){g.tunes.push({abc:i,startPos:h});h+=i.length});if(g.tunes.length>1&&!g.tunes[0].abc.startsWith("X:")){var b=g.tunes.shift();var d=b.abc.split("\n");d.each(function(i){if(i.startsWith("%%")){f+=i+"\n"}})}g.tunes.each(function(k){var i=k.abc.indexOf("\n\n");if(i>0){k.abc=k.abc.substring(0,i)}k.abc=f+k.abc})}function renderAbc(e,n,m,o,d){var l=function(i){return i&&!(i.propertyIsEnumerable("length"))&&typeof i==="object"&&typeof i.length==="number"};if(e===undefined||n===undefined){return}if(!l(e)){e=[e]}if(m===undefined){m={}}if(o===undefined){o={}}if(d===undefined){d={}}var g=d.startingTune?d.startingTune:0;var f=new AbcTuneBook(n);var c=new AbcParse();for(var h=0;h<e.length;h++){var a=e[h];if(typeof(a)==="string"){a=document.getElementById(a)}if(a){a.innerHTML="";if(g<f.tunes.length){c.parse(f.tunes[g].abc,m);var k=c.getTune();var b=Raphael(a,800,400);var p=new ABCPrinter(b,o);p.printABC(k)}}g++}}var parseDirective={};ABC().use(function(){var b;var d;var a;var c;parseDirective.initialize=function(h,f,g,e){b=h;d=f;a=g;c=e};parseDirective.parseFontChangeLine=function(g){var e=g.split("$");if(e.length>1&&a.setfont){var h=[{text:e[0]}];for(var f=1;f<e.length;f++){if(e[f].charAt(0)==="0"){h.push({text:e[f].substring(1)})}else{if(e[f].charAt(0)==="1"&&a.setfont[1]){h.push({font:a.setfont[1],text:e[f].substring(1)})}else{if(e[f].charAt(0)==="2"&&a.setfont[2]){h.push({font:a.setfont[2],text:e[f].substring(1)})}else{if(e[f].charAt(0)==="3"&&a.setfont[3]){h.push({font:a.setfont[3],text:e[f].substring(1)})}else{if(e[f].charAt(0)==="4"&&a.setfont[4]){h.push({font:a.setfont[4],text:e[f].substring(1)})}else{h[h.length-1].text+="$"+e[f]}}}}}}if(h.length>1){return h}}return g};parseDirective.addDirective=function(L){var U=function(t,af){var p=b.getMeasurement(af);if(p.used===0||af.length!==0){return{error:'Directive "'+t+'" requires a measurement as a parameter.'}}return p.value};var Q=function(t,af){var p=b.getMeasurement(af);if(p.used===0||af.length!==0){return'Directive "'+t+'" requires a measurement as a parameter.'}c.formatting[t]=p.value;return null};var B=function(ag){var p={};var t=ag.last();if(t.type==="number"){p.size=parseInt(t.token);ag.pop()}if(ag.length>0){var af="";ag.each(function(ah){if(ah.token!=="-"){if(af.length>0){af+=" "}af+=ah.token}});p.font=af}return p};var k=function(p,t){if(t.length===0){return'Directive "'+p+'" requires a font as a parameter.'}a[p]=B(t);return null};var q=function(p,t){if(t.length===0){return'Directive "'+p+'" requires a font as a parameter.'}c.formatting[p]=B(t);return null};var J=b.tokenize(L,0,L.length);if(J.length===0||J[0].type!=="alpha"){return null}var f=L.substring(L.indexOf(J[0].token)+J[0].token.length);f=b.stripComment(f);var Y=J.shift().token.toLowerCase();var ab;var i="";switch(Y){case"bagpipes":c.formatting.bagpipes=true;break;case"landscape":a.landscape=true;break;case"papersize":a.papersize=f;break;case"slurgraces":c.formatting.slurgraces=true;break;case"stretchlast":c.formatting.stretchlast=true;break;case"titlecaps":a.titlecaps=true;break;case"titleleft":c.formatting.titleleft=true;break;case"measurebox":c.formatting.measurebox=true;break;case"botmargin":case"botspace":case"composerspace":case"indent":case"leftmargin":case"linesep":case"musicspace":case"partsspace":case"pageheight":case"pagewidth":case"rightmargin":case"staffsep":case"staffwidth":case"subtitlespace":case"sysstaffsep":case"systemsep":case"textspace":case"titlespace":case"topmargin":case"topspace":case"vocalspace":case"wordsspace":return Q(Y,J);case"vskip":var h=U(Y,J);if(h.error){return h.error}c.addSpacing(h);return null;case"scale":i="";J.each(function(p){i+=p.token});ab=parseFloat(i);if(isNaN(ab)||ab===0){return'Directive "'+Y+'" requires a number as a parameter.'}c.formatting.scale=ab;break;case"sep":if(J.length===0){c.addSeparator()}else{var P=b.getMeasurement(J);if(P.used===0){return'Directive "'+Y+'" requires 3 numbers: space above, space below, length of line'}var I=P.value;P=b.getMeasurement(J);if(P.used===0){return'Directive "'+Y+'" requires 3 numbers: space above, space below, length of line'}var ae=P.value;P=b.getMeasurement(J);if(P.used===0||J.length!==0){return'Directive "'+Y+'" requires 3 numbers: space above, space below, length of line'}var A=P.value;c.addSeparator(I,ae,A)}break;case"barsperstaff":if(J.length!==1||J[0].type!=="number"){return'Directive "'+Y+'" requires a number as a parameter.'}a.barsperstaff=J[0].intt;break;case"staffnonote":if(J.length!==1||J[0].type!=="number"){return'Directive "'+Y+'" requires a number as a parameter.'}a.staffnonote=J[0].token==="0"?true:false;break;case"measurenb":if(J.length!==1||J[0].type!=="number"){return'Directive "'+Y+'" requires a number as a parameter.'
}a.barNumbers=J[0].intt;break;case"barnumbers":if(J.length!==1||J[0].type!=="number"){return'Directive "'+Y+'" requires a number as a parameter.'}a.barNumbers=J[0].intt;break;case"begintext":a.inTextBlock=true;break;case"continueall":a.continueall=true;break;case"beginps":a.inPsBlock=true;d("Postscript ignored",L,0);break;case"deco":if(f.length>0){a.ignoredDecorations.push(f.substring(0,f.indexOf(" ")))}d("Decoration redefinition ignored",L,0);break;case"text":var V=b.translateString(f);c.addText(parseDirective.parseFontChangeLine(V));break;case"center":var e=b.translateString(f);c.addCentered(parseDirective.parseFontChangeLine(e));break;case"font":break;case"setfont":var y=b.tokenize(f,0,f.length);var F=false;if(y.length>=4){if(y[0].token==="-"&&y[1].type==="number"){var g=parseInt(y[1].token);if(g>=1&&g<=4){if(!a.setfont){a.setfont=[]}var D=y.pop();if(D.type==="number"){D=parseInt(D.token);var u="";for(var w=2;w<y.length;w++){u+=y[w].token}a.setfont[g]={font:u,size:D};F=true}}}}if(!F){return"Bad parameters: "+Y}break;case"gchordfont":case"partsfont":case"vocalfont":case"textfont":return k(Y,J);case"barlabelfont":case"barnumberfont":case"composerfont":case"subtitlefont":case"tempofont":case"titlefont":case"voicefont":return q(Y,J);case"barnumfont":return q("barnumberfont",J);case"staves":case"score":a.score_is_present=true;var ad=function(ai,af,ah,ag,t){if(af||a.staves.length===0){a.staves.push({index:a.staves.length,numVoices:0})}var p=a.staves.last();if(ah!==undefined){p.bracket=ah}if(ag!==undefined){p.brace=ag}if(t){p.connectBarLines="end"}if(a.voices[ai]===undefined){a.voices[ai]={staffNum:p.index,index:p.numVoices};p.numVoices++}};var N=false;var X=false;var n=false;var O=false;var l=false;var o=false;var m=false;var s=undefined;var ac=function(){m=true;if(s){var p="start";if(s.staffNum>0){if(a.staves[s.staffNum-1].connectBarLines==="start"||a.staves[s.staffNum-1].connectBarLines==="continue"){p="continue"}}a.staves[s.staffNum].connectBarLines=p}};while(J.length){var S=J.shift();switch(S.token){case"(":if(N){d("Can't nest parenthesis in %%score",L,S.start)}else{N=true;O=true}break;case")":if(!N||O){d("Unexpected close parenthesis in %%score",L,S.start)}else{N=false}break;case"[":if(X){d("Can't nest brackets in %%score",L,S.start)}else{X=true;l=true}break;case"]":if(!X||l){d("Unexpected close bracket in %%score",L,S.start)}else{X=false;a.staves[s.staffNum].bracket="end"}break;case"{":if(n){d("Can't nest braces in %%score",L,S.start)}else{n=true;o=true}break;case"}":if(!n||o){d("Unexpected close brace in %%score",L,S.start)}else{n=false;a.staves[s.staffNum].brace="end"}break;case"|":ac();break;default:var C="";while(S.type==="alpha"||S.type==="number"){C+=S.token;if(S.continueId){S=J.shift()}else{break}}var H=!N||O;var K=l?"start":X?"continue":undefined;var z=o?"start":n?"continue":undefined;ad(C,H,K,z,m);O=false;l=false;o=false;m=false;s=a.voices[C];if(Y==="staves"){ac()}break}}break;case"newpage":var v=b.getInt(f);c.addNewPage(v.digits===0?-1:v.value);break;case"abc-copyright":case"abc-creator":case"abc-version":case"abc-charset":case"abc-edited-by":c.addMetaText(Y,f);break;case"header":case"footer":var R=b.getMeat(f,0,f.length);R=f.substring(R.start,R.end);if(R.charAt(0)==='"'&&R.charAt(R.length-1)==='"'){R=R.substring(1,R.length-2)}var E=R.split("\t");var r={};if(E.length===1){r={left:"",center:E[0],right:""}}else{if(E.length===2){r={left:E[0],center:E[1],right:""}}else{r={left:E[0],center:E[1],right:E[2]}}}if(E.length>3){d("Too many tabs in "+Y+": "+E.length+" found.",f,0)}c.addMetaTextObj(Y,r);break;case"midi":var W=b.tokenize(f,0,f.length);if(W.length>0&&W[0].token==="="){W.shift()}if(W.length===0){d("Expected midi command",f,0)}else{var x=function(af){if(af.length>0){var ag=af.shift();var ah=ag.token;if(ag.type==="number"){ah=ag.intt}return ah}else{return null}};if(c.formatting[Y]===undefined){c.formatting[Y]={}}var G=W.shift().token;var M=true;if(G==="program"){var aa=x(W);if(aa){var Z=x(W);if(Z){M={channel:aa,program:Z+1}}else{M={program:aa+1}}}}else{var T=x(W);if(T!==null){M=T}}c.formatting[Y][G]=M}break;case"indent":case"playtempo":case"auquality":case"continuous":case"nobarcheck":c.formatting[Y]=f;break;default:return"Unknown directive: "+Y}return null}});function ABC(){return{use:function(a){a()}}}var parseKeyVoice={};ABC().use(function(){var h;var e;var b;var d;parseKeyVoice.initialize=function(n,l,m,k){h=n;e=l;b=m;d=k};parseKeyVoice.standardKey=function(x){var n={acc:"sharp",note:"f"};var s={acc:"sharp",note:"c"};var w={acc:"sharp",note:"g"};var l={acc:"sharp",note:"d"};var q={acc:"sharp",note:"A"};var v={acc:"sharp",note:"e"};var z={acc:"sharp",note:"B"};var u={acc:"flat",note:"B"};var t={acc:"flat",note:"e"};var r={acc:"flat",note:"A"};var p={acc:"flat",note:"d"};var o={acc:"flat",note:"G"};var m={acc:"flat",note:"c"};var k={acc:"flat",note:"f"};var y={"C#":[n,s,w,l,q,v,z],"A#m":[n,s,w,l,q,v,z],"G#Mix":[n,s,w,l,q,v,z],"D#Dor":[n,s,w,l,q,v,z],"E#Phr":[n,s,w,l,q,v,z],"F#Lyd":[n,s,w,l,q,v,z],"B#Loc":[n,s,w,l,q,v,z],"F#":[n,s,w,l,q,v],"D#m":[n,s,w,l,q,v],"C#Mix":[n,s,w,l,q,v],"G#Dor":[n,s,w,l,q,v],"A#Phr":[n,s,w,l,q,v],BLyd:[n,s,w,l,q,v],"E#Loc":[n,s,w,l,q,v],B:[n,s,w,l,q],"G#m":[n,s,w,l,q],"F#Mix":[n,s,w,l,q],"C#Dor":[n,s,w,l,q],"D#Phr":[n,s,w,l,q],ELyd:[n,s,w,l,q],"A#Loc":[n,s,w,l,q],E:[n,s,w,l],"C#m":[n,s,w,l],BMix:[n,s,w,l],"F#Dor":[n,s,w,l],"G#Phr":[n,s,w,l],ALyd:[n,s,w,l],"D#Loc":[n,s,w,l],A:[n,s,w],"F#m":[n,s,w],EMix:[n,s,w],BDor:[n,s,w],"C#Phr":[n,s,w],DLyd:[n,s,w],"G#Loc":[n,s,w],D:[n,s],Bm:[n,s],AMix:[n,s],EDor:[n,s],"F#Phr":[n,s],GLyd:[n,s],"C#Loc":[n,s],G:[n],Em:[n],DMix:[n],ADor:[n],BPhr:[n],CLyd:[n],"F#Loc":[n],C:[],Am:[],GMix:[],DDor:[],EPhr:[],FLyd:[],BLoc:[],F:[u],Dm:[u],CMix:[u],GDor:[u],APhr:[u],BbLyd:[u],ELoc:[u],Bb:[u,t],Gm:[u,t],FMix:[u,t],CDor:[u,t],DPhr:[u,t],EbLyd:[u,t],ALoc:[u,t],Eb:[u,t,r],Cm:[u,t,r],BbMix:[u,t,r],FDor:[u,t,r],GPhr:[u,t,r],AbLyd:[u,t,r],DLoc:[u,t,r],Ab:[u,t,r,p],Fm:[u,t,r,p],EbMix:[u,t,r,p],BbDor:[u,t,r,p],CPhr:[u,t,r,p],DbLyd:[u,t,r,p],GLoc:[u,t,r,p],Db:[u,t,r,p,o],Bbm:[u,t,r,p,o],AbMix:[u,t,r,p,o],EbDor:[u,t,r,p,o],FPhr:[u,t,r,p,o],GbLyd:[u,t,r,p,o],CLoc:[u,t,r,p,o],Gb:[u,t,r,p,o,m],Ebm:[u,t,r,p,o,m],DbMix:[u,t,r,p,o,m],AbDor:[u,t,r,p,o,m],BbPhr:[u,t,r,p,o,m],CbLyd:[u,t,r,p,o,m],FLoc:[u,t,r,p,o,m],Cb:[u,t,r,p,o,m,k],Abm:[u,t,r,p,o,m,k],GbMix:[u,t,r,p,o,m,k],DbDor:[u,t,r,p,o,m,k],EbPhr:[u,t,r,p,o,m,k],FbLyd:[u,t,r,p,o,m,k],BbLoc:[u,t,r,p,o,m,k],"A#":[u,t],"B#":[],"D#":[u,t,r],"E#":[u],"G#":[u,t,r,p],Gbm:[n,s,w,l,q,v,z]};return y[x]};var i=function(m,k){var l=0;switch(m){case"treble":case"perc":case"none":case"treble+8":case"treble-8":break;case"bass3":case"bass":case"bass+8":case"bass-8":case"bass+16":case"bass-16":l=-12;break;case"tenor":l=-8;break;case"alto2":case"alto1":case"alto":case"alto+8":case"alto-8":l=-6;break}return l+k};parseKeyVoice.deepCopyKey=function(l){var k={accidentals:[],root:l.root,acc:l.acc,mode:l.mode};l.accidentals.each(function(m){k.accidentals.push(Object.clone(m))});return k};var c={A:5,B:6,C:0,D:1,E:2,F:3,G:4,a:12,b:13,c:7,d:8,e:9,f:10,g:11};
parseKeyVoice.addPosToKey=function(m,l){var k=m.verticalPos;l.accidentals.each(function(n){var o=c[n.note];o=o-k;n.verticalPos=o});if(l.impliedNaturals){l.impliedNaturals.each(function(n){var o=c[n.note];o=o-k;n.verticalPos=o})}if(k<-10){l.accidentals.each(function(n){n.verticalPos-=7;if(n.verticalPos>=11||(n.verticalPos===10&&n.acc==="flat")){n.verticalPos-=7}});if(l.impliedNaturals){l.impliedNaturals.each(function(n){n.verticalPos-=7;if(n.verticalPos>=11||(n.verticalPos===10&&n.acc==="flat")){n.verticalPos-=7}})}}else{if(k<-4){l.accidentals.each(function(n){n.verticalPos-=7});if(l.impliedNaturals){l.impliedNaturals.each(function(n){n.verticalPos-=7})}}else{if(k>=7){l.accidentals.each(function(n){n.verticalPos+=7});if(l.impliedNaturals){l.impliedNaturals.each(function(n){n.verticalPos+=7})}}}}};parseKeyVoice.fixKey=function(m,k){var l=Object.clone(k);parseKeyVoice.addPosToKey(m,l);return l};var a=function(m){var k=c[m.charAt(0)];for(var l=1;l<m.length;l++){if(m.charAt(l)===","){k-=7}else{if(m.charAt(l)===","){k+=7}else{break}}}return{mid:k-6,str:m.substring(l)}};var g=function(k){for(var l=0;l<k.length;l++){if(k[l].note==="b"){k[l].note="B"}else{if(k[l].note==="a"){k[l].note="A"}else{if(k[l].note==="F"){k[l].note="f"}else{if(k[l].note==="E"){k[l].note="e"}else{if(k[l].note==="D"){k[l].note="d"}else{if(k[l].note==="C"){k[l].note="c"}else{if(k[l].note==="G"&&k[l].acc==="sharp"){k[l].note="g"}else{if(k[l].note==="g"&&k[l].acc==="flat"){k[l].note="G"}}}}}}}}}};parseKeyVoice.parseKey=function(x){if(x.length===0){x="none"}var w=h.tokenize(x,0,x.length);var D={};switch(w[0].token){case"HP":parseDirective.addDirective("bagpipes");b.key={root:"HP",accidentals:[],acc:"",mode:""};D.foundKey=true;w.shift();break;case"Hp":parseDirective.addDirective("bagpipes");b.key={root:"Hp",accidentals:[{acc:"natural",note:"g"},{acc:"sharp",note:"f"},{acc:"sharp",note:"c"}],acc:"",mode:""};D.foundKey=true;w.shift();break;case"none":b.key={root:"none",accidentals:[],acc:"",mode:""};D.foundKey=true;w.shift();break;default:var p=h.getKeyPitch(w[0].token);if(p.len>0){D.foundKey=true;var n="";var v="";if(w[0].token.length>1){w[0].token=w[0].token.substring(1)}else{w.shift()}var E=p.token;if(w.length>0){var l=h.getSharpFlat(w[0].token);if(l.len>0){if(w[0].token.length>1){w[0].token=w[0].token.substring(1)}else{w.shift()}E+=l.token;n=l.token}if(w.length>0){var C=h.getMode(w[0].token);if(C.len>0){w.shift();E+=C.token;v=C.token}}}var s=parseKeyVoice.deepCopyKey(b.key);b.key=parseKeyVoice.deepCopyKey({accidentals:parseKeyVoice.standardKey(E)});b.key.root=p.token;b.key.acc=n;b.key.mode=v;if(s){var m;for(var z=0;z<b.key.accidentals.length;z++){for(m=0;m<s.accidentals.length;m++){if(b.key.accidentals[z].note===s.accidentals[m].note){s.accidentals[m].note=null}}}for(m=0;m<s.accidentals.length;m++){if(s.accidentals[m].note){if(!b.key.impliedNaturals){b.key.impliedNaturals=[]}b.key.impliedNaturals.push({acc:"natural",note:s.accidentals[m].note})}}}}break}if(w.length===0){return D}if(w[0].token==="exp"){w.shift()}if(w.length===0){return D}if(w[0].token==="oct"){w.shift()}if(w.length===0){return D}var t=h.getKeyAccidentals2(w);if(t.warn){e(t.warn,x,0)}if(t.accs){if(!D.foundKey){D.foundKey=true;b.key={root:"none",acc:"",mode:"",accidentals:[]}}g(t.accs);for(var B=0;B<t.accs.length;B++){var u=false;for(var A=0;A<b.key.accidentals.length&&!u;A++){if(b.key.accidentals[A].note===t.accs[B].note){u=true;b.key.accidentals[A].acc=t.accs[B].acc}}if(!u){b.key.accidentals.push(t.accs[B]);if(b.key.impliedNaturals){for(var q=0;q<b.key.impliedNaturals.length;q++){if(b.key.impliedNaturals[q].note===t.accs[B].note){b.key.impliedNaturals.splice(q,1)}}}}}}var o;while(w.length>0){switch(w[0].token){case"m":case"middle":w.shift();if(w.length===0){e("Expected = after middle",x,0);return D}o=w.shift();if(o.token!=="="){e("Expected = after middle",x,o.start);break}if(w.length===0){e("Expected parameter after middle=",x,0);return D}var r=h.getPitchFromTokens(w);if(r.warn){e(r.warn,x,0)}if(r.position){b.clef.verticalPos=r.position-6}break;case"transpose":w.shift();if(w.length===0){e("Expected = after transpose",x,0);return D}o=w.shift();if(o.token!=="="){e("Expected = after transpose",x,o.start);break}if(w.length===0){e("Expected parameter after transpose=",x,0);return D}if(w[0].type!=="number"){e("Expected number after transpose",x,w[0].start);break}b.clef.transpose=w[0].intt;w.shift();break;case"stafflines":w.shift();if(w.length===0){e("Expected = after stafflines",x,0);return D}o=w.shift();if(o.token!=="="){e("Expected = after stafflines",x,o.start);break}if(w.length===0){e("Expected parameter after stafflines=",x,0);return D}if(w[0].type!=="number"){e("Expected number after stafflines",x,w[0].start);break}b.clef.stafflines=w[0].intt;w.shift();break;case"staffscale":w.shift();if(w.length===0){e("Expected = after staffscale",x,0);return D}o=w.shift();if(o.token!=="="){e("Expected = after staffscale",x,o.start);break}if(w.length===0){e("Expected parameter after staffscale=",x,0);return D}if(w[0].type!=="number"){e("Expected number after staffscale",x,w[0].start);break}b.clef.staffscale=w[0].floatt;w.shift();break;case"style":w.shift();if(w.length===0){e("Expected = after style",x,0);return D}o=w.shift();if(o.token!=="="){e("Expected = after style",x,o.start);break}if(w.length===0){e("Expected parameter after style=",x,0);return D}switch(w[0].token){case"normal":case"harmonic":case"rhythm":case"x":b.style=w[0].token;w.shift();break;default:e("error parsing style element: "+w[0].token,x,w[0].start);break}break;case"clef":w.shift();if(w.length===0){e("Expected = after clef",x,0);return D}o=w.shift();if(o.token!=="="){e("Expected = after clef",x,o.start);break}if(w.length===0){e("Expected parameter after clef=",x,0);return D}case"treble":case"bass":case"alto":case"tenor":case"perc":var y=w.shift();switch(y.token){case"treble":case"tenor":case"alto":case"bass":case"perc":case"none":break;case"C":y.token="alto";break;case"F":y.token="bass";break;case"G":y.token="treble";break;case"c":y.token="alto";break;case"f":y.token="bass";break;case"g":y.token="treble";break;default:e("Expected clef name. Found "+y.token,x,y.start);break}if(w.length>0&&w[0].type==="number"){y.token+=w[0].token;w.shift()}if(w.length>1&&(w[0].token==="-"||w[0].token==="+")&&w[1].token==="8"){y.token+=w[0].token+w[1].token;w.shift();w.shift()}b.clef={type:y.token,verticalPos:i(y.token,0)};D.foundClef=true;break;default:e("Unknown parameter: "+w[0].token,x,w[0].start);w.shift()}}return D};var f=function(k){b.currentVoice=b.voices[k];d.setCurrentVoice(b.currentVoice.staffNum,b.currentVoice.index)};parseKeyVoice.parseVoice=function(n,x,y){var C=h.getMeat(n,x,y);var l=C.start;var k=C.end;var r=h.getToken(n,l,k);if(r.length===0){e("Expected a voice id",n,l);return}var A=false;if(b.voices[r]===undefined){b.voices[r]={};A=true;if(b.score_is_present){e("Can't have an unknown V: id when the %score directive is present",n,l)}}l+=r.length;l+=h.eatWhiteSpace(n,l);var p={startStaff:A};
var D=function(v){var s=h.getVoiceToken(n,l,k);if(s.warn!==undefined){e("Expected value for "+v+" in voice: "+s.warn,n,l)}else{if(s.token.length===0&&n.charAt(l)!=='"'){e("Expected value for "+v+" in voice",n,l)}else{p[v]=s.token}}l+=s.len};var z=function(F,v,E){var s=h.getVoiceToken(n,l,k);if(s.warn!==undefined){e("Expected value for "+v+" in voice: "+s.warn,n,l)}else{if(s.token.length===0&&n.charAt(l)!=='"'){e("Expected value for "+v+" in voice",n,l)}else{if(E==="number"){s.token=parseFloat(s.token)}b.voices[F][v]=s.token}}l+=s.len};while(l<k){var m=h.getVoiceToken(n,l,k);l+=m.len;if(m.warn){e("Error parsing voice: "+m.warn,n,l)}else{var u=null;switch(m.token){case"clef":case"cl":D("clef");var t=0;if(p.clef!==undefined){p.clef=p.clef.replace(/[',]/g,"");if(p.clef.indexOf("+16")!==-1){t+=14;p.clef=p.clef.replace("+16","")}p.verticalPos=i(p.clef,t)}break;case"treble":case"bass":case"tenor":case"alto":case"none":case"treble'":case"bass'":case"tenor'":case"alto'":case"none'":case"treble''":case"bass''":case"tenor''":case"alto''":case"none''":case"treble,":case"bass,":case"tenor,":case"alto,":case"none,":case"treble,,":case"bass,,":case"tenor,,":case"alto,,":case"none,,":var w=0;p.clef=m.token.replace(/[',]/g,"");p.verticalPos=i(p.clef,w);break;case"staves":case"stave":case"stv":D("staves");break;case"brace":case"brc":D("brace");break;case"bracket":case"brk":D("bracket");break;case"name":case"nm":D("name");break;case"subname":case"sname":case"snm":D("subname");break;case"merge":p.startStaff=false;break;case"stems":u=h.getVoiceToken(n,l,k);if(u.warn!==undefined){e("Expected value for stems in voice: "+u.warn,n,l)}else{if(u.token==="up"||u.token==="down"){b.voices[r].stem=u.token}else{e("Expected up or down for voice stem",n,l)}}l+=u.len;break;case"up":case"down":b.voices[r].stem=m.token;break;case"middle":case"m":D("verticalPos");p.verticalPos=a(p.verticalPos).mid;break;case"gchords":case"gch":b.voices[r].suppressChords=true;break;case"space":case"spc":D("spacing");break;case"scale":z(r,"scale","number");break;case"transpose":z(r,"transpose","number");break}}l+=h.eatWhiteSpace(n,l)}if(p.startStaff||b.staves.length===0){b.staves.push({index:b.staves.length,meter:b.origMeter});if(!b.score_is_present){b.staves[b.staves.length-1].numVoices=0}}if(b.voices[r].staffNum===undefined){b.voices[r].staffNum=b.staves.length-1;var B=0;for(var o in b.voices){if(b.voices.hasOwnProperty(o)){if(b.voices[o].staffNum===b.voices[r].staffNum){B++}}}b.voices[r].index=B-1}var q=b.staves[b.voices[r].staffNum];if(!b.score_is_present){q.numVoices++}if(p.clef){q.clef={type:p.clef,verticalPos:p.verticalPos}}if(p.spacing){q.spacing_below_offset=p.spacing}if(p.verticalPos){q.verticalPos=p.verticalPos}if(p.name){if(q.name){q.name.push(p.name)}else{q.name=[p.name]}}if(p.subname){if(q.subname){q.subname.push(p.subname)}else{q.subname=[p.subname]}}f(r)}});function AbcParseHeader(c,e,a,d){parseKeyVoice.initialize(c,e,a,d);parseDirective.initialize(c,e,a,d);this.setTitle=function(f){if(a.hasMainTitle){d.addSubtitle(c.translateString(c.stripComment(f)))}else{d.addMetaText("title",c.translateString(c.theReverser(c.stripComment(f))));a.hasMainTitle=true}};this.setMeter=function(p){p=c.stripComment(p);if(p==="C"){if(a.havent_set_length===true){a.default_length=0.125}return{type:"common_time"}}else{if(p==="C|"){if(a.havent_set_length===true){a.default_length=0.125}return{type:"cut_time"}}else{if(p==="o"){if(a.havent_set_length===true){a.default_length=0.125}return{type:"tempus_perfectum"}}else{if(p==="c"){if(a.havent_set_length===true){a.default_length=0.125}return{type:"tempus_imperfectum"}}else{if(p==="o."){if(a.havent_set_length===true){a.default_length=0.125}return{type:"tempus_perfectum_prolatio"}}else{if(p==="c."){if(a.havent_set_length===true){a.default_length=0.125}return{type:"tempus_imperfectum_prolatio"}}else{if(p.length===0||p.toLowerCase()==="none"){if(a.havent_set_length===true){a.default_length=0.125}return null}else{var l=c.tokenize(p,0,p.length);try{var k=function(){var r={value:0,num:""};var q=l.shift();if(q.token==="("){q=l.shift()}while(1){if(q.type!=="number"){throw"Expected top number of meter"}r.value+=parseInt(q.token);r.num+=q.token;if(l.length===0||l[0].token==="/"){return r}q=l.shift();if(q.token===")"){if(l.length===0||l[0].token==="/"){return r}throw"Unexpected paren in meter"}if(q.token!=="."&&q.token!=="+"){throw"Expected top number of meter"}r.num+=q.token;if(l.length===0){throw"Expected top number of meter"}q=l.shift()}return r};var f=function(){var r=k();if(l.length===0){return r}var q=l.shift();if(q.token!=="/"){throw"Expected slash in meter"}q=l.shift();if(q.type!=="number"){throw"Expected bottom number of meter"}r.den=q.token;r.value=r.value/parseInt(r.den);return r};if(l.length===0){throw"Expected meter definition in M: line"}var g={type:"specified",value:[]};var m=0;while(1){var i=f();m+=i.value;var o={num:i.num};if(i.den!==undefined){o.den=i.den}g.value.push(o);if(l.length===0){break}var n=l.shift()}if(a.havent_set_length===true){a.default_length=m<0.75?0.0625:0.125}return g}catch(h){e(h,p,0)}}}}}}}}return null};this.calcTempo=function(f){var h=1/4;if(a.meter&&a.meter.type==="specified"){h=1/parseInt(a.meter.value[0].den)}else{if(a.origMeter&&a.origMeter.type==="specified"){h=1/parseInt(a.origMeter.value[0].den)}}for(var g=0;g<f.duration;g++){f.duration[g]=h*f.duration[g]}return f};this.resolveTempo=function(){if(a.tempo){this.calcTempo(a.tempo);d.metaText.tempo=a.tempo;delete a.tempo}};this.addUserDefinition=function(g,m,f){var h=g.indexOf("=",m);if(h===-1){e("Need an = in a macro definition",g,m);return}var k=g.substring(m,h).strip();var l=g.substring(h+1).strip();if(k.length!==1){e("Macro definitions can only be one character",g,m);return}var i="HIJKLMNOPQRSTUVWXYhijklmnopqrstuvw~";if(i.indexOf(k)===-1){e("Macro definitions must be H-Y, h-w, or tilde",g,m);return}if(l.length===0){e("Missing macro definition",g,m);return}if(a.macros===undefined){a.macros={}}a.macros[k]=l};this.setDefaultLength=function(h,o,g){var f=h.substring(o,g).gsub(" ","");var m=f.split("/");if(m.length===2){var l=parseInt(m[0]);var k=parseInt(m[1]);if(k>0){var i=l/k;a.default_length=i;a.havent_set_length=false}}};this.setTempo=function(p,f,i){try{var m=c.tokenize(p,f,i);if(m.length===0){throw"Missing parameter in Q: field"}var k={};var o=true;var h=m.shift();if(h.type==="quote"){k.preString=h.token;h=m.shift();if(m.length===0){return{type:"immediate",tempo:k}}}if(h.type==="alpha"&&h.token==="C"){if(m.length===0){throw"Missing tempo after C in Q: field"}h=m.shift();if(h.type==="punct"&&h.token==="="){if(m.length===0){throw"Missing tempo after = in Q: field"}h=m.shift();if(h.type!=="number"){throw"Expected number after = in Q: field"}k.duration=[1];k.bpm=parseInt(h.token)}else{if(h.type==="number"){k.duration=[parseInt(h.token)];if(m.length===0){throw"Missing = after duration in Q: field"}h=m.shift();if(h.type!=="punct"||h.token!=="="){throw"Expected = after duration in Q: field"}if(m.length===0){throw"Missing tempo after = in Q: field"
}h=m.shift();if(h.type!=="number"){throw"Expected number after = in Q: field"}k.bpm=parseInt(h.token)}else{throw"Expected number or equal after C in Q: field"}}}else{if(h.type==="number"){var l=parseInt(h.token);if(m.length===0||m[0].type==="quote"){k.duration=[1];k.bpm=l}else{o=false;h=m.shift();if(h.type!=="punct"&&h.token!=="/"){throw"Expected fraction in Q: field"}h=m.shift();if(h.type!=="number"){throw"Expected fraction in Q: field"}var n=parseInt(h.token);k.duration=[l/n];while(m.length>0&&m[0].token!=="="&&m[0].type!=="quote"){h=m.shift();if(h.type!=="number"){throw"Expected fraction in Q: field"}l=parseInt(h.token);h=m.shift();if(h.type!=="punct"&&h.token!=="/"){throw"Expected fraction in Q: field"}h=m.shift();if(h.type!=="number"){throw"Expected fraction in Q: field"}n=parseInt(h.token);k.duration.push(l/n)}h=m.shift();if(h.type!=="punct"&&h.token!=="="){throw"Expected = in Q: field"}h=m.shift();if(h.type!=="number"){throw"Expected tempo in Q: field"}k.bpm=parseInt(h.token)}}else{throw"Unknown value in Q: field"}}if(m.length!==0){h=m.shift();if(h.type==="quote"){k.postString=h.token;h=m.shift()}if(m.length!==0){throw"Unexpected string at end of Q: field"}}return{type:o?"delaySet":"immediate",tempo:k}}catch(g){e(g,p,f);return{type:"none"}}};this.letter_to_inline_header=function(h,l){var g=c.eatWhiteSpace(h,l);l+=g;if(h.length>=l+5&&h.charAt(l)==="["&&h.charAt(l+2)===":"){var o=h.indexOf("]",l);switch(h.substring(l,l+3)){case"[I:":var m=parseDirective.addDirective(h.substring(l+3,o));if(m){e(m,h,l)}return[o-l+1+g];case"[M:":var n=this.setMeter(h.substring(l+3,o));if(d.hasBeginMusic()&&n){d.appendStartingElement("meter",-1,-1,n)}else{a.meter=n}return[o-l+1+g];case"[K:":var f=parseKeyVoice.parseKey(h.substring(l+3,o));if(f.foundClef&&d.hasBeginMusic()){d.appendStartingElement("clef",-1,-1,a.clef)}if(f.foundKey&&d.hasBeginMusic()){d.appendStartingElement("key",-1,-1,parseKeyVoice.fixKey(a.clef,a.key))}return[o-l+1+g];case"[P:":d.appendElement("part",-1,-1,{title:h.substring(l+3,o)});return[o-l+1+g];case"[L:":this.setDefaultLength(h,l+3,o);return[o-l+1+g];case"[Q:":if(o>0){var k=this.setTempo(h,l+3,o);if(k.type==="delaySet"){d.appendElement("tempo",-1,-1,this.calcTempo(k.tempo))}else{if(k.type==="immediate"){d.appendElement("tempo",-1,-1,k.tempo)}}return[o-l+1+g,h.charAt(l+1),h.substring(l+3,o)]}break;case"[V:":if(o>0){parseKeyVoice.parseVoice(h,l+3,o);return[o-l+1+g,h.charAt(l+1),h.substring(l+3,o)]}break;default:}}return[0]};this.letter_to_body_header=function(g,k){if(g.length>=k+3){switch(g.substring(k,k+2)){case"I:":var l=parseDirective.addDirective(g.substring(k+2));if(l){e(l,g,k)}return[g.length];case"M:":var m=this.setMeter(g.substring(k+2));if(d.hasBeginMusic()&&m){d.appendStartingElement("meter",-1,-1,m)}return[g.length];case"K:":var f=parseKeyVoice.parseKey(g.substring(k+2));if(f.foundClef&&d.hasBeginMusic()){d.appendStartingElement("clef",-1,-1,a.clef)}if(f.foundKey&&d.hasBeginMusic()){d.appendStartingElement("key",-1,-1,parseKeyVoice.fixKey(a.clef,a.key))}return[g.length];case"P:":if(d.hasBeginMusic()){d.appendElement("part",-1,-1,{title:g.substring(k+2)})}return[g.length];case"L:":this.setDefaultLength(g,k+2,g.length);return[g.length];case"Q:":var n=g.indexOf("\x12",k+2);if(n===-1){n=g.length}var h=this.setTempo(g,k+2,n);if(h.type==="delaySet"){d.appendElement("tempo",-1,-1,this.calcTempo(h.tempo))}else{if(h.type==="immediate"){d.appendElement("tempo",-1,-1,h.tempo)}}return[n,g.charAt(k),g.substring(k+2).strip()];case"V:":parseKeyVoice.parseVoice(g,2,g.length);return[g.length,g.charAt(k),g.substring(k+2).strip()];default:}}return[0]};var b={A:"author",B:"book",C:"composer",D:"discography",F:"url",G:"group",I:"instruction",N:"notes",O:"origin",R:"rhythm",S:"source",W:"unalignedWords",Z:"transcription"};this.parseHeader=function(g){if(g.startsWith("%%")){var k=parseDirective.addDirective(g.substring(2));if(k){e(k,g,2)}return{}}g=c.stripComment(g);if(g.length===0){return{}}if(g.length>=2){if(g.charAt(1)===":"){var i="";if(g.indexOf("\x12")>=0&&g.charAt(0)!=="w"){i=g.substring(g.indexOf("\x12")+1);g=g.substring(0,g.indexOf("\x12"))}var l=b[g.charAt(0)];if(l!==undefined){if(l==="unalignedWords"){d.addMetaTextArray(l,parseDirective.parseFontChangeLine(c.translateString(c.stripComment(g.substring(2)))))}else{d.addMetaText(l,c.translateString(c.stripComment(g.substring(2))))}return{}}else{switch(g.charAt(0)){case"H":d.addMetaText("history",c.translateString(c.stripComment(g.substring(2))));a.is_in_history=true;break;case"K":this.resolveTempo();var f=parseKeyVoice.parseKey(g.substring(2));if(!a.is_in_header&&d.hasBeginMusic()){if(f.foundClef){d.appendStartingElement("clef",-1,-1,a.clef)}if(f.foundKey){d.appendStartingElement("key",-1,-1,parseKeyVoice.fixKey(a.clef,a.key))}}a.is_in_header=false;break;case"L":this.setDefaultLength(g,2,g.length);break;case"M":a.origMeter=a.meter=this.setMeter(g.substring(2));break;case"P":if(a.is_in_header){d.addMetaText("partOrder",c.translateString(c.stripComment(g.substring(2))))}else{a.partForNextLine=c.translateString(c.stripComment(g.substring(2)))}break;case"Q":var h=this.setTempo(g,2,g.length);if(h.type==="delaySet"){a.tempo=h.tempo}else{if(h.type==="immediate"){d.metaText.tempo=h.tempo}}break;case"T":this.setTitle(g.substring(2));break;case"U":this.addUserDefinition(g,2,g.length);break;case"V":parseKeyVoice.parseVoice(g,2,g.length);if(!a.is_in_header){return{newline:true}}break;case"s":return{symbols:true};case"w":return{words:true};case"X":break;case"E":case"m":e("Ignored header",g,0);break;default:if(i.length){i="\x12"+i}return{regular:true,str:g+i}}}if(i.length>0){return{recurse:true,str:i}}return{}}}return{regular:true,str:g}}}function AbcTune(){this.reset=function(){this.version="1.0.1";this.media="screen";this.metaText={};this.formatting={};this.lines=[];this.staffNum=0;this.voiceNum=0;this.lineNum=0};this.cleanUp=function(f,p,y,q){this.closeLine();var b=false;var x,o,k;for(x=0;x<this.lines.length;x++){if(this.lines[x].staff!==undefined){var m=false;for(o=0;o<this.lines[x].staff.length;o++){if(this.lines[x].staff[o]===undefined){b=true;this.lines[x].staff[o]=null}else{for(k=0;k<this.lines[x].staff[o].voices.length;k++){if(this.lines[x].staff[o].voices[k]===undefined){this.lines[x].staff[o].voices[k]=[]}else{if(this.containsNotes(this.lines[x].staff[o].voices[k])){m=true}}}}}if(!m){this.lines[x]=null;b=true}}}if(b){this.lines=this.lines.compact();this.lines.each(function(i){if(i.staff){i.staff=i.staff.compact()}})}if(y){for(x=0;x<this.lines.length;x++){if(this.lines[x].staff!==undefined){for(o=0;o<this.lines[x].staff.length;o++){for(k=0;k<this.lines[x].staff[o].voices.length;k++){var d=0;for(var t=0;t<this.lines[x].staff[o].voices[k].length;t++){if(this.lines[x].staff[o].voices[k][t].el_type==="bar"){d++;if(d>=y){if(t<this.lines[x].staff[o].voices[k].length-1){if(x===this.lines.length-1){var g=JSON.parse(JSON.stringify(this.lines[x]));this.lines.push(Object.clone(g));for(var u=0;u<this.lines[x+1].staff.length;u++){for(var r=0;
r<this.lines[x+1].staff[u].voices.length;r++){this.lines[x+1].staff[u].voices[r]=[]}}}var a=t+1;var h=this.lines[x].staff[o].voices[k].slice(a);this.lines[x].staff[o].voices[k]=this.lines[x].staff[o].voices[k].slice(0,a);this.lines[x+1].staff[o].voices[k]=h.concat(this.lines[x+1].staff[o].voices[k])}}}}}}}}}if(y){b=false;for(x=0;x<this.lines.length;x++){if(this.lines[x].staff!==undefined){for(o=0;o<this.lines[x].staff.length;o++){var c=false;for(k=0;k<this.lines[x].staff[o].voices.length;k++){if(this.containsNotesStrict(this.lines[x].staff[o].voices[k])){c=true}}if(!c){b=true;this.lines[x].staff[o]=null}}}}if(b){this.lines.each(function(i){if(i.staff){i.staff=i.staff.compact()}})}}function l(K){var J=[];var H;var I=function(O,L,Q){if(J[Q]===undefined){for(H=0;H<J.length;H++){if(J[H]!==undefined){Q=H;break}}if(J[Q]===undefined){var P=Q*100;O.endSlur.each(function(i){if(P===i){--P}});J[Q]=[P]}}var N;for(var M=0;M<L;M++){N=J[Q].pop();O.endSlur.push(N)}if(J[Q].length===0){delete J[Q]}return N};var C=function(O,L,P,N){O.startSlur=[];if(J[P]===undefined){J[P]=[]}var Q=P*100+1;for(var M=0;M<L;M++){if(N){N.each(function(i){if(Q===i){++Q}});N.each(function(i){if(Q===i){++Q}});N.each(function(i){if(Q===i){++Q}})}J[P].each(function(i){if(Q===i){++Q}});J[P].each(function(i){if(Q===i){++Q}});J[P].push(Q);O.startSlur.push({label:Q});Q++}};for(var D=0;D<K.length;D++){var v=K[D];if(v.el_type==="note"){if(v.gracenotes){for(var E=0;E<v.gracenotes.length;E++){if(v.gracenotes[E].endSlur){var F=v.gracenotes[E].endSlur;v.gracenotes[E].endSlur=[];for(var n=0;n<F;n++){I(v.gracenotes[E],1,20)}}if(v.gracenotes[E].startSlur){H=v.gracenotes[E].startSlur;C(v.gracenotes[E],H,20)}}}if(v.endSlur){H=v.endSlur;v.endSlur=[];I(v,H,0)}if(v.startSlur){H=v.startSlur;C(v,H,0)}if(v.pitches){var G=[];for(var s=0;s<v.pitches.length;s++){if(v.pitches[s].endSlur){var A=v.pitches[s].endSlur;v.pitches[s].endSlur=[];for(var B=0;B<A;B++){var z=I(v.pitches[s],1,s+1);G.push(z)}}}for(s=0;s<v.pitches.length;s++){if(v.pitches[s].startSlur){H=v.pitches[s].startSlur;C(v.pitches[s],H,s+1,G)}}if(v.gracenotes&&v.pitches[0].endSlur&&v.pitches[0].endSlur[0]===100&&v.pitches[0].startSlur){if(v.gracenotes[0].endSlur){v.gracenotes[0].endSlur.push(v.pitches[0].startSlur[0].label)}else{v.gracenotes[0].endSlur=[v.pitches[0].startSlur[0].label]}if(v.pitches[0].endSlur.length===1){delete v.pitches[0].endSlur}else{if(v.pitches[0].endSlur[0]===100){v.pitches[0].endSlur.shift()}else{if(v.pitches[0].endSlur[v.pitches[0].endSlur.length-1]===100){v.pitches[0].endSlur.pop()}}}if(J[1].length===1){delete J[1]}else{J[1].pop()}}}}}}function e(s){var n=-2;var i=5;switch(s.type){case"treble+8":case"treble-8":break;case"bass":case"bass+8":case"bass-8":s.verticalPos=20+s.verticalPos;n+=6;i+=6;break;case"tenor":case"tenor+8":case"tenor-8":s.verticalPos=-s.verticalPos;n=-40;i=40;break;case"alto":case"alto+8":case"alto-8":s.verticalPos=-s.verticalPos;n=-40;i=40;break}if(s.verticalPos<n){while(s.verticalPos<n){s.verticalPos+=7}}else{if(s.verticalPos>i){while(s.verticalPos>i){s.verticalPos-=7}}}}for(this.lineNum=0;this.lineNum<this.lines.length;this.lineNum++){if(this.lines[this.lineNum].staff){for(this.staffNum=0;this.staffNum<this.lines[this.lineNum].staff.length;this.staffNum++){if(this.lines[this.lineNum].staff[this.staffNum].clef){e(this.lines[this.lineNum].staff[this.staffNum].clef)}for(this.voiceNum=0;this.voiceNum<this.lines[this.lineNum].staff[this.staffNum].voices.length;this.voiceNum++){l(this.lines[this.lineNum].staff[this.staffNum].voices[this.voiceNum]);for(var w=0;w<this.lines[this.lineNum].staff[this.staffNum].voices[this.voiceNum].length;w++){if(this.lines[this.lineNum].staff[this.staffNum].voices[this.voiceNum][w].el_type==="clef"){e(this.lines[this.lineNum].staff[this.staffNum].voices[this.voiceNum][w])}}}}}}if(!this.formatting.pagewidth){this.formatting.pagewidth=f}if(!this.formatting.pageheight){this.formatting.pageheight=p}delete this.staffNum;delete this.voiceNum;delete this.lineNum;delete this.potentialStartBeam;delete this.potentialEndBeam;delete this.vskipPending};this.reset();this.getLastNote=function(){if(this.lines[this.lineNum]&&this.lines[this.lineNum].staff&&this.lines[this.lineNum].staff[this.staffNum]&&this.lines[this.lineNum].staff[this.staffNum].voices[this.voiceNum]){for(var a=this.lines[this.lineNum].staff[this.staffNum].voices[this.voiceNum].length-1;a>=0;a--){var b=this.lines[this.lineNum].staff[this.staffNum].voices[this.voiceNum][a];if(b.el_type==="note"){return b}}}return null};this.addTieToLastNote=function(){var a=this.getLastNote();if(a&&a.pitches&&a.pitches.length>0){a.pitches[0].startTie={};return true}return false};this.getDuration=function(a){if(a.duration){return a.duration}return 0};this.closeLine=function(){if(this.potentialStartBeam&&this.potentialEndBeam){this.potentialStartBeam.startBeam=true;this.potentialEndBeam.endBeam=true}delete this.potentialStartBeam;delete this.potentialEndBeam};this.appendElement=function(h,i,e,a){var c=this;var g=function(m){if(m.pitches!==undefined){var k=c.lines[c.lineNum].staff[c.staffNum].clef.verticalPos;m.pitches.each(function(n){n.verticalPos=n.pitch-k})}if(m.gracenotes!==undefined){var l=c.lines[c.lineNum].staff[c.staffNum].clef.verticalPos;m.gracenotes.each(function(n){n.verticalPos=n.pitch-l})}c.lines[c.lineNum].staff[c.staffNum].voices[c.voiceNum].push(m)};a.el_type=h;if(i!==null){a.startChar=i}if(e!==null){a.endChar=e}var d=function(){c.potentialStartBeam.startBeam=true;a.endBeam=true;delete c.potentialStartBeam;delete c.potentialEndBeam};var f=function(){if(c.potentialStartBeam!==undefined&&c.potentialEndBeam!==undefined){c.potentialStartBeam.startBeam=true;c.potentialEndBeam.endBeam=true}delete c.potentialStartBeam;delete c.potentialEndBeam};if(h==="note"){var b=c.getDuration(a);if(b>=0.25){f()}else{if(a.force_end_beam_last&&c.potentialStartBeam!==undefined){f()}else{if(a.end_beam&&c.potentialStartBeam!==undefined){if(a.rest===undefined){d()}else{f()}}else{if(a.rest===undefined){if(c.potentialStartBeam===undefined){if(!a.end_beam){c.potentialStartBeam=a;delete c.potentialEndBeam}}else{c.potentialEndBeam=a}}}}}}else{f()}delete a.end_beam;delete a.force_end_beam_last;g(a)};this.appendStartingElement=function(f,a,h,c){var e;if(f==="key"){e=c.impliedNaturals;delete c.impliedNaturals}var b=Object.clone(c);var g=this.lines[this.lineNum].staff[this.staffNum].voices[this.voiceNum];for(var d=0;d<g.length;d++){if(g[d].el_type==="note"||g[d].el_type==="bar"){b.el_type=f;b.startChar=a;b.endChar=h;if(e){b.accidentals=e.concat(b.accidentals)}g.push(b);return}if(g[d].el_type===f){b.el_type=f;b.startChar=a;b.endChar=h;if(e){b.accidentals=e.concat(b.accidentals)}g[d]=b;return}}this.lines[this.lineNum].staff[this.staffNum][f]=c};this.getNumLines=function(){return this.lines.length};this.pushLine=function(a){if(this.vskipPending){a.vskip=this.vskipPending;delete this.vskipPending}this.lines.push(a)};this.addSubtitle=function(a){this.pushLine({subtitle:a})};this.addSpacing=function(a){this.vskipPending=a
};this.addNewPage=function(a){this.pushLine({newpage:a})};this.addSeparator=function(c,b,a){this.pushLine({separator:{spaceAbove:c,spaceBelow:b,lineLength:a}})};this.addText=function(a){this.pushLine({text:a})};this.addCentered=function(a){this.pushLine({text:[{text:a,center:true}]})};this.containsNotes=function(b){for(var a=0;a<b.length;a++){if(b[a].el_type==="note"||b[a].el_type==="bar"){return true}}return false};this.containsNotesStrict=function(b){for(var a=0;a<b.length;a++){if(b[a].el_type==="note"&&b[a].rest===undefined){return true}}return false};this.startNewLine=function(e){var d=this;this.closeLine();var c=function(k){d.lines[d.lineNum].staff[d.staffNum].voices[d.voiceNum]=[];if(d.isFirstLine(d.lineNum)){if(k.name){if(!d.lines[d.lineNum].staff[d.staffNum].title){d.lines[d.lineNum].staff[d.staffNum].title=[]}d.lines[d.lineNum].staff[d.staffNum].title[d.voiceNum]=k.name}}else{if(k.subname){if(!d.lines[d.lineNum].staff[d.staffNum].title){d.lines[d.lineNum].staff[d.staffNum].title=[]}d.lines[d.lineNum].staff[d.staffNum].title[d.voiceNum]=k.subname}}if(k.style){d.appendElement("style",null,null,{head:k.style})}if(k.stem){d.appendElement("stem",null,null,{direction:k.stem})}else{if(d.voiceNum>0){if(d.lines[d.lineNum].staff[d.staffNum].voices[0]!==undefined){var g=false;for(var f=0;f<d.lines[d.lineNum].staff[d.staffNum].voices[0].length;f++){if(d.lines[d.lineNum].staff[d.staffNum].voices[0].el_type==="stem"){g=true}}if(!g){var h={el_type:"stem",direction:"up"};d.lines[d.lineNum].staff[d.staffNum].voices[0].splice(0,0,h)}}d.appendElement("stem",null,null,{direction:"down"})}}if(k.scale){d.appendElement("scale",null,null,{size:k.scale})}};var a=function(f){d.lines[d.lineNum].staff[d.staffNum]={voices:[],clef:f.clef,key:f.key};if(f.vocalfont){d.lines[d.lineNum].staff[d.staffNum].vocalfont=f.vocalfont}if(f.bracket){d.lines[d.lineNum].staff[d.staffNum].bracket=f.bracket}if(f.brace){d.lines[d.lineNum].staff[d.staffNum].brace=f.brace}if(f.connectBarLines){d.lines[d.lineNum].staff[d.staffNum].connectBarLines=f.connectBarLines}c(f);if(f.part){d.appendElement("part",f.startChar,f.endChar,{title:f.part})}if(f.meter!==undefined){d.lines[d.lineNum].staff[d.staffNum].meter=f.meter}};var b=function(f){d.lines[d.lineNum]={staff:[]};a(f)};if(this.lines[this.lineNum]===undefined){b(e)}else{if(this.lines[this.lineNum].staff===undefined){this.lineNum++;this.startNewLine(e)}else{if(this.lines[this.lineNum].staff[this.staffNum]===undefined){a(e)}else{if(this.lines[this.lineNum].staff[this.staffNum].voices[this.voiceNum]===undefined){c(e)}else{if(!this.containsNotes(this.lines[this.lineNum].staff[this.staffNum].voices[this.voiceNum])){return}else{this.lineNum++;this.startNewLine(e)}}}}}};this.hasBeginMusic=function(){return this.lines.length>0};this.isFirstLine=function(a){for(var b=a-1;b>=0;b--){if(this.lines[b].staff!==undefined){return false}}return true};this.getCurrentVoice=function(){if(this.lines[this.lineNum]!==undefined&&this.lines[this.lineNum].staff[this.staffNum]!==undefined&&this.lines[this.lineNum].staff[this.staffNum].voices[this.voiceNum]!==undefined){return this.lines[this.lineNum].staff[this.staffNum].voices[this.voiceNum]}else{return null}};this.setCurrentVoice=function(c,b){this.staffNum=c;this.voiceNum=b;for(var a=0;a<this.lines.length;a++){if(this.lines[a].staff){if(this.lines[a].staff[c]===undefined||this.lines[a].staff[c].voices[b]===undefined||!this.containsNotes(this.lines[a].staff[c].voices[b])){this.lineNum=a;return}}}this.lineNum=a};this.addMetaText=function(a,b){if(this.metaText[a]===undefined){this.metaText[a]=b}else{this.metaText[a]+="\n"+b}};this.addMetaTextArray=function(a,b){if(this.metaText[a]===undefined){this.metaText[a]=[b]}else{this.metaText[a].push(b)}};this.addMetaTextObj=function(a,b){this.metaText[a]=b}}function AbcTokenizer(){this.skipWhiteSpace=function(k){for(var h=0;h<k.length;h++){if(!this.isWhiteSpace(k.charAt(h))){return h}}return k.length};var g=function(k,h){return h>=k.length};this.eatWhiteSpace=function(h,k){for(var l=k;l<h.length;l++){if(!this.isWhiteSpace(h.charAt(l))){return l-k}}return l-k};this.getKeyPitch=function(k){var h=this.skipWhiteSpace(k);if(g(k,h)){return{len:0}}switch(k.charAt(h)){case"A":return{len:h+1,token:"A"};case"B":return{len:h+1,token:"B"};case"C":return{len:h+1,token:"C"};case"D":return{len:h+1,token:"D"};case"E":return{len:h+1,token:"E"};case"F":return{len:h+1,token:"F"};case"G":return{len:h+1,token:"G"}}return{len:0}};this.getSharpFlat=function(h){if(h==="bass"){return{len:0}}switch(h.charAt(0)){case"#":return{len:1,token:"#"};case"b":return{len:1,token:"b"}}return{len:0}};this.getMode=function(m){var l=function(i,n){while(n<i.length&&((i.charAt(n)>="a"&&i.charAt(n)<="z")||(i.charAt(n)>="A"&&i.charAt(n)<="Z"))){n++}return n};var k=this.skipWhiteSpace(m);if(g(m,k)){return{len:0}}var h=m.substring(k,k+3).toLowerCase();if(h.length>1&&h.charAt(1)===" "||h.charAt(1)==="^"||h.charAt(1)==="_"||h.charAt(1)==="="){h=h.charAt(0)}switch(h){case"mix":return{len:l(m,k),token:"Mix"};case"dor":return{len:l(m,k),token:"Dor"};case"phr":return{len:l(m,k),token:"Phr"};case"lyd":return{len:l(m,k),token:"Lyd"};case"loc":return{len:l(m,k),token:"Loc"};case"aeo":return{len:l(m,k),token:"m"};case"maj":return{len:l(m,k),token:""};case"ion":return{len:l(m,k),token:""};case"min":return{len:l(m,k),token:"m"};case"m":return{len:l(m,k),token:"m"}}return{len:0}};this.getClef=function(o,n){var h=o;var m=this.skipWhiteSpace(o);if(g(o,m)){return{len:0}}var q=false;var p=o.substring(m);if(p.startsWith("clef=")){q=true;p=p.substring(5);m+=5}if(p.length===0&&q){return{len:m+5,warn:"No clef specified: "+h}}var l=this.skipWhiteSpace(p);if(g(p,l)){return{len:0}}if(l>0){m+=l;p=p.substring(l)}var k=null;if(p.startsWith("treble")){k="treble"}else{if(p.startsWith("bass3")){k="bass3"}else{if(p.startsWith("bass")){k="bass"}else{if(p.startsWith("tenor")){k="tenor"}else{if(p.startsWith("alto2")){k="alto2"}else{if(p.startsWith("alto1")){k="alto1"}else{if(p.startsWith("alto")){k="alto"}else{if(!n&&(q&&p.startsWith("none"))){k="none"}else{if(p.startsWith("perc")){k="perc"}else{if(!n&&(q&&p.startsWith("C"))){k="tenor"}else{if(!n&&(q&&p.startsWith("F"))){k="bass"}else{if(!n&&(q&&p.startsWith("G"))){k="treble"}else{return{len:m+5,warn:"Unknown clef specified: "+h}}}}}}}}}}}}}p=p.substring(k.length);l=this.isMatch(p,"+8");if(l>0){k+="+8"}else{l=this.isMatch(p,"-8");if(l>0){k+="-8"}}return{len:m+k.length,token:k,explicit:q}};this.getBarLine=function(h,l){switch(h.charAt(l)){case"]":++l;switch(h.charAt(l)){case"|":return{len:2,token:"bar_thick_thin"};case"[":++l;if((h.charAt(l)>="1"&&h.charAt(l)<="9")||h.charAt(l)==='"'){return{len:2,token:"bar_invisible"}}return{len:1,warn:"Unknown bar symbol"};default:return{len:1,token:"bar_invisible"}}break;case":":++l;switch(h.charAt(l)){case":":return{len:2,token:"bar_dbl_repeat"};case"|":++l;switch(h.charAt(l)){case"]":++l;switch(h.charAt(l)){case"|":++l;if(h.charAt(l)===":"){return{len:5,token:"bar_dbl_repeat"}}return{len:3,token:"bar_right_repeat"};
default:return{len:3,token:"bar_right_repeat"}}break;case"|":++l;if(h.charAt(l)===":"){return{len:4,token:"bar_dbl_repeat"}}return{len:3,token:"bar_right_repeat"};default:return{len:2,token:"bar_right_repeat"}}break;default:return{len:1,warn:"Unknown bar symbol"}}break;case"[":++l;if(h.charAt(l)==="|"){++l;switch(h.charAt(l)){case":":return{len:3,token:"bar_left_repeat"};case"]":return{len:3,token:"bar_invisible"};default:return{len:2,token:"bar_thick_thin"}}}else{if((h.charAt(l)>="1"&&h.charAt(l)<="9")||h.charAt(l)==='"'){return{len:1,token:"bar_invisible"}}return{len:0}}break;case"|":++l;switch(h.charAt(l)){case"]":return{len:2,token:"bar_thin_thick"};case"|":++l;if(h.charAt(l)===":"){return{len:3,token:"bar_left_repeat"}}return{len:2,token:"bar_thin_thin"};case":":var k=0;while(h.charAt(l+k)===":"){k++}return{len:1+k,token:"bar_left_repeat"};default:return{len:1,token:"bar_thin"}}break}return{len:0}};this.getTokenOf=function(l,k){for(var h=0;h<l.length;h++){if(k.indexOf(l.charAt(h))<0){return{len:h,token:l.substring(0,h)}}}return{len:h,token:l}};this.getToken=function(l,m,h){var k=m;while(k<h&&!this.isWhiteSpace(l.charAt(k))){k++}return l.substring(m,k)};this.isMatch=function(l,h){var k=this.skipWhiteSpace(l);if(g(l,k)){return 0}if(l.substring(k).startsWith(h)){return k+h.length}return 0};this.getPitchFromTokens=function(k){var h={};var i={A:5,B:6,C:0,D:1,E:2,F:3,G:4,a:12,b:13,c:7,d:8,e:9,f:10,g:11};h.position=i[k[0].token];if(h.position===undefined){return{warn:"Pitch expected. Found: "+k[0].token}}k.shift();while(k.length){switch(k[0].token){case",":h.position-=7;k.shift();break;case"'":h.position+=7;k.shift();break;default:return h}}return h};this.getKeyAccidentals2=function(k){var h;while(k.length>0){var i;if(k[0].token==="^"){i="sharp";k.shift();if(k.length===0){return{accs:h,warn:"Expected note name after "+i}}switch(k[0].token){case"^":i="dblsharp";k.shift();break;case"/":i="quartersharp";k.shift();break}}else{if(k[0].token==="="){i="natural";k.shift()}else{if(k[0].token==="_"){i="flat";k.shift();if(k.length===0){return{accs:h,warn:"Expected note name after "+i}}switch(k[0].token){case"_":i="dblflat";k.shift();break;case"/":i="quarterflat";k.shift();break}}else{return{accs:h}}}}if(k.length===0){return{accs:h,warn:"Expected note name after "+i}}switch(k[0].token.charAt(0)){case"a":case"b":case"c":case"d":case"e":case"f":case"g":case"A":case"B":case"C":case"D":case"E":case"F":case"G":if(h===undefined){h=[]}h.push({acc:i,note:k[0].token.charAt(0)});if(k[0].token.length===1){k.shift()}else{k[0].token=k[0].token.substring(1)}break;default:return{accs:h,warn:"Expected note name after "+i+" Found: "+k[0].token}}}return{accs:h}};this.getKeyAccidental=function(m){var l={"^":"sharp","^^":"dblsharp","=":"natural",_:"flat",__:"dblflat","_/":"quarterflat","^/":"quartersharp"};var h=this.skipWhiteSpace(m);if(g(m,h)){return{len:0}}var k=null;switch(m.charAt(h)){case"^":case"_":case"=":k=m.charAt(h);break;default:return{len:0}}h++;if(g(m,h)){return{len:1,warn:"Expected note name after accidental"}}switch(m.charAt(h)){case"a":case"b":case"c":case"d":case"e":case"f":case"g":case"A":case"B":case"C":case"D":case"E":case"F":case"G":return{len:h+1,token:{acc:l[k],note:m.charAt(h)}};case"^":case"_":case"/":k+=m.charAt(h);h++;if(g(m,h)){return{len:2,warn:"Expected note name after accidental"}}switch(m.charAt(h)){case"a":case"b":case"c":case"d":case"e":case"f":case"g":case"A":case"B":case"C":case"D":case"E":case"F":case"G":return{len:h+1,token:{acc:l[k],note:m.charAt(h)}};default:return{len:2,warn:"Expected note name after accidental"}}break;default:return{len:1,warn:"Expected note name after accidental"}}};this.isWhiteSpace=function(h){return h===" "||h==="\t"||h==="\x12"};this.getMeat=function(i,l,h){var k=i.indexOf("%",l);if(k>=0&&k<h){h=k}while(l<h&&(i.charAt(l)===" "||i.charAt(l)==="\t"||i.charAt(l)==="\x12")){l++}while(l<h&&(i.charAt(h-1)===" "||i.charAt(h-1)==="\t"||i.charAt(h-1)==="\x12")){h--}return{start:l,end:h}};var d=function(h){return(h>="A"&&h<="Z")||(h>="a"&&h<="z")};var c=function(h){return(h>="0"&&h<="9")};this.tokenize=function(s,k,l){var o=this.getMeat(s,k,l);k=o.start;l=o.end;var q=[];var m;while(k<l){if(s.charAt(k)==='"'){m=k+1;while(m<l&&s.charAt(m)!=='"'){m++}q.push({type:"quote",token:s.substring(k+1,m),start:k+1,end:m});m++}else{if(d(s.charAt(k))){m=k+1;while(m<l&&d(s.charAt(m))){m++}q.push({type:"alpha",token:s.substring(k,m),continueId:c(s.charAt(m)),start:k,end:m});k=m+1}else{if(s.charAt(k)==="."&&c(s.charAt(m+1))){m=k+1;var r=null;var n=null;while(m<l&&c(s.charAt(m))){m++}n=parseFloat(s.substring(k,m));q.push({type:"number",token:s.substring(k,m),intt:r,floatt:n,continueId:d(s.charAt(m)),start:k,end:m});k=m+1}else{if(c(s.charAt(k))||(s.charAt(k)==="-"&&c(s.charAt(m+1)))){m=k+1;var h=null;var p=null;while(m<l&&c(s.charAt(m))){m++}if(s.charAt(m)==="."&&c(s.charAt(m+1))){m++;while(m<l&&c(s.charAt(m))){m++}}else{h=parseInt(s.substring(k,m))}p=parseFloat(s.substring(k,m));q.push({type:"number",token:s.substring(k,m),intt:h,floatt:p,continueId:d(s.charAt(m)),start:k,end:m});k=m+1}else{if(s.charAt(k)===" "||s.charAt(k)==="\t"){m=k+1}else{q.push({type:"punct",token:s.charAt(k),start:k,end:k+1});m=k+1}}}}}k=m}return q};this.getVoiceToken=function(k,o,h){var l=o;while(l<h&&this.isWhiteSpace(k.charAt(l))||k.charAt(l)==="="){l++}if(k.charAt(l)==='"'){var n=k.indexOf('"',l+1);if(n===-1||n>=h){return{len:1,err:"Missing close quote"}}return{len:n-o+1,token:this.translateString(k.substring(l+1,n))}}else{var m=l;while(m<h&&!this.isWhiteSpace(k.charAt(m))&&k.charAt(m)!=="="){m++}return{len:m-o+1,token:k.substring(l,m)}}};var f={"`a":"à","'a":"á","^a":"â","~a":"ã",'"a':"ä",oa:"å","=a":"ā",ua:"ă",";a":"ą","`e":"è","'e":"é","^e":"ê",'"e':"ë","=e":"ē",ue:"ĕ",";e":"ę",".e":"ė","`i":"ì","'i":"í","^i":"î",'"i':"ï","=i":"ī",ui:"ĭ",";i":"į","`o":"ò","'o":"ó","^o":"ô","~o":"õ",'"o':"ö","=o":"ō",uo:"ŏ","/o":"ø","`u":"ù","'u":"ú","^u":"û","~u":"ũ",'"u':"ü",ou:"ů","=u":"ū",uu:"ŭ",";u":"ų","`A":"À","'A":"Á","^A":"Â","~A":"Ã",'"A':"Ä",oA:"Å","=A":"Ā",uA:"Ă",";A":"Ą","`E":"È","'E":"É","^E":"Ê",'"E':"Ë","=E":"Ē",uE:"Ĕ",";E":"Ę",".E":"Ė","`I":"Ì","'I":"Í","^I":"Î","~I":"Ĩ",'"I':"Ï","=I":"Ī",uI:"Ĭ",";I":"Į",".I":"İ","`O":"Ò","'O":"Ó","^O":"Ô","~O":"Õ",'"O':"Ö","=O":"Ō",uO:"Ŏ","/O":"Ø","`U":"Ù","'U":"Ú","^U":"Û","~U":"Ũ",'"U':"Ü",oU:"Ů","=U":"Ū",uU:"Ŭ",";U":"Ų",ae:"æ",AE:"Æ",oe:"œ",OE:"Œ",ss:"ß","'c":"ć","^c":"ĉ",uc:"č",cc:"ç",".c":"ċ",cC:"Ç","'C":"Ć","^C":"Ĉ",uC:"Č",".C":"Ċ","~n":"ñ","=s":"š",vs:"š",vz:"ž"};var e={"#":"♯",b:"♭","=":"♮"};var b={"201":"♯","202":"♭","203":"♮","241":"¡","242":"¢","252":"a","262":"2","272":"o","302":"Â","312":"Ê","322":"Ò","332":"Ú","342":"â","352":"ê","362":"ò","372":"ú","243":"£","253":"«","263":"3","273":"»","303":"Ã","313":"Ë","323":"Ó","333":"Û","343":"ã","353":"ë","363":"ó","373":"û","244":"¤","254":"¬","264":"  ́","274":"1⁄4","304":"Ä","314":"Ì","324":"Ô","334":"Ü","344":"ä","354":"ì","364":"ô","374":"ü","245":"¥","255":"-","265":"μ","275":"1⁄2","305":"Å","315":"Í","325":"Õ","335":"Ý","345":"å","355":"í","365":"õ","375":"ý","246":"¦","256":"®","266":"¶","276":"3⁄4","306":"Æ","316":"Î","326":"Ö","336":"Þ","346":"æ","356":"î","366":"ö","376":"þ","247":"§","257":" ̄","267":"·","277":"¿","307":"Ç","317":"Ï","327":"×","337":"ß","347":"ç","357":"ï","367":"÷","377":"ÿ","250":" ̈","260":"°","270":" ̧","300":"À","310":"È","320":"Ð","330":"Ø","340":"à","350":"è","360":"ð","370":"ø","251":"©","261":"±","271":"1","301":"Á","311":"É","321":"Ñ","331":"Ù","341":"á","351":"é","361":"ñ","371":"ù"};
this.translateString=function(k){var h=k.split("\\");if(h.length===1){return k}var i=null;h.each(function(l){if(i===null){i=l}else{var m=f[l.substring(0,2)];if(m!==undefined){i+=m+l.substring(2)}else{m=b[l.substring(0,3)];if(m!==undefined){i+=m+l.substring(3)}else{m=e[l.substring(0,1)];if(m!==undefined){i+=m+l.substring(1)}else{i+="\\"+l}}}}});return i};this.getNumber=function(h,k){var i=0;while(k<h.length){switch(h.charAt(k)){case"0":i=i*10;k++;break;case"1":i=i*10+1;k++;break;case"2":i=i*10+2;k++;break;case"3":i=i*10+3;k++;break;case"4":i=i*10+4;k++;break;case"5":i=i*10+5;k++;break;case"6":i=i*10+6;k++;break;case"7":i=i*10+7;k++;break;case"8":i=i*10+8;k++;break;case"9":i=i*10+9;k++;break;default:return{num:i,index:k}}}return{num:i,index:k}};this.getFraction=function(h,l){var k=1;var p=1;if(h.charAt(l)!=="/"){var i=this.getNumber(h,l);k=i.num;l=i.index}if(h.charAt(l)==="/"){l++;if(h.charAt(l)==="/"){var o=0.5;while(h.charAt(l++)==="/"){o=o/2}return{value:k*o,index:l-1}}else{var m=l;var n=this.getNumber(h,l);if(n.num===0&&m===l){n.num=2}if(n.num!==0){p=n.num}l=n.index}}return{value:k/p,index:l}};this.theReverser=function(h){if(h.endsWith(", The")){return"The "+h.substring(0,h.length-5)}if(h.endsWith(", A")){return"A "+h.substring(0,h.length-3)}return h};this.stripComment=function(k){var h=k.indexOf("%");if(h>=0){return k.substring(0,h).strip()}return k.strip()};this.getInt=function(m){var h=parseInt(m);if(isNaN(h)){return{digits:0}}var l=""+h;var k=m.indexOf(l);return{value:h,digits:k+l.length}};this.getFloat=function(m){var h=parseFloat(m);if(isNaN(h)){return{digits:0}}var l=""+h;var k=m.indexOf(l);return{value:h,digits:k+l.length}};this.getMeasurement=function(l){if(l.length===0){return{used:0}}var k=1;var i="";if(l[0].token==="-"){l.shift();i="-";k++}else{if(l[0].type!=="number"){return{used:0}}}i+=l.shift().token;if(l.length===0){return{used:1,value:parseInt(i)}}var h=l.shift();if(h.token==="."){k++;if(l.length===0){return{used:k,value:parseInt(i)}}if(l[0].type==="number"){h=l.shift();i=i+"."+h.token;k++;if(l.length===0){return{used:k,value:parseFloat(i)}}}h=l.shift()}switch(h.token){case"pt":return{used:k+1,value:parseFloat(i)};case"cm":return{used:k+1,value:parseFloat(i)/2.54*72};case"in":return{used:k+1,value:parseFloat(i)*72};default:l.unshift(h);return{used:k,value:parseFloat(i)}}return{used:0}};var a=function(h){while(h.indexOf("\\n")!==-1){h=h.replace("\\n","\n")}return h};this.getBrackettedSubstring=function(h,k,o,m){var l=m||h.charAt(k);var n=k+1;while((n<h.length)&&(h.charAt(n)!==l)){++n}if(h.charAt(n)===l){return[n-k+1,a(h.substring(k+1,n)),true]}else{n=k+o;if(n>h.length-1){n=h.length-1}return[n-k+1,a(h.substring(k+1,n)),false]}}}function AbcParse(){var e=new AbcTune();var n=new AbcTokenizer();this.getTune=function(){return e};var y={reset:function(){for(var A in this){if(this.hasOwnProperty(A)&&typeof this[A]!=="function"){delete this[A]}}this.iChar=0;this.key={accidentals:[],root:"none",acc:"",mode:""};this.meter={type:"specified",value:[{num:"4",den:"4"}]};this.origMeter={type:"specified",value:[{num:"4",den:"4"}]};this.hasMainTitle=false;this.default_length=0.125;this.clef={type:"treble",verticalPos:0};this.next_note_duration=0;this.start_new_line=true;this.is_in_header=true;this.is_in_history=false;this.partForNextLine="";this.havent_set_length=true;this.voices={};this.staves=[];this.macros={};this.currBarNumber=1;this.inTextBlock=false;this.inPsBlock=false;this.ignoredDecorations=[];this.textBlock="";this.score_is_present=false;this.inEnding=false;this.inTie=false;this.inTieChord={}}};var z=function(A){if(!y.warnings){y.warnings=[]}y.warnings.push(A)};var x=function(E,A,D){var C=A.charAt(D);if(C===" "){C="SPACE"}var B=A.substring(0,D).gsub("\x12"," ")+"\n"+C+"\n"+A.substring(D+1).gsub("\x12"," ");B=B.gsub("&","&amp;").gsub("<","&lt;").gsub(">","&gt;").replace("\n",'<span style="text-decoration:underline;font-size:1.3em;font-weight:bold;">').replace("\n","</span>");z("Music Line:"+e.getNumLines()+":"+(D+1)+": "+E+":  "+B)};var u=new AbcParseHeader(n,x,y,e);this.getWarnings=function(){return y.warnings};var t=function(C,D){if(C.charAt(D)==='"'){var E=n.getBrackettedSubstring(C,D,5);if(!E[2]){x("Missing the closing quote while parsing the chord symbol",C,D)}if(E[0]>0&&E[1].length>0&&E[1].charAt(0)==="^"){E[1]=E[1].substring(1);E[2]="above"}else{if(E[0]>0&&E[1].length>0&&E[1].charAt(0)==="_"){E[1]=E[1].substring(1);E[2]="below"}else{if(E[0]>0&&E[1].length>0&&E[1].charAt(0)==="<"){E[1]=E[1].substring(1);E[2]="left"}else{if(E[0]>0&&E[1].length>0&&E[1].charAt(0)===">"){E[1]=E[1].substring(1);E[2]="right"}else{if(E[0]>0&&E[1].length>0&&E[1].charAt(0)==="@"){E[1]=E[1].substring(1);var A=n.getFloat(E[1]);if(A.digits===0){x("Missing first position in absolutely positioned annotation.",C,D)}E[1]=E[1].substring(A.digits);if(E[1][0]!==","){x("Missing comma absolutely positioned annotation.",C,D)}E[1]=E[1].substring(1);var F=n.getFloat(E[1]);if(F.digits===0){x("Missing second position in absolutely positioned annotation.",C,D)}E[1]=E[1].substring(F.digits);var B=n.skipWhiteSpace(E[1]);E[1]=E[1].substring(B);E[2]=null;E[3]={x:A.value,y:F.value}}else{E[1]=E[1].replace(/([ABCDEFG])b/g,"$1♭");E[1]=E[1].replace(/([ABCDEFG])#/g,"$1♯");E[2]="default"}}}}}return E}return[0,""]};var p=["trill","lowermordent","uppermordent","mordent","pralltriller","accent","fermata","invertedfermata","tenuto","0","1","2","3","4","5","+","wedge","open","thumb","snap","turn","roll","breath","shortphrase","mediumphrase","longphrase","segno","coda","D.S.","D.C.","fine","crescendo(","crescendo)","diminuendo(","diminuendo)","p","pp","f","ff","mf","mp","ppp","pppp","fff","ffff","sfz","repeatbar","repeatbar2","slide","upbow","downbow","/","//","///","////","trem1","trem2","trem3","trem4","turnx","invertedturn","invertedturnx","trill(","trill)","arpeggio","xstem","style=normal","style=harmonic","style=rhythm","style=x"];var s=[["<","accent"],[">","accent"],["tr","trill"],["<(","crescendo("],["<)","crescendo)"],[">(","diminuendo("],[">)","diminuendo)"],["plus","+"],["emphasis","accent"]];var g=function(A,C){var D=y.macros[A.charAt(C)];if(D!==undefined){if(D.charAt(0)==="!"||D.charAt(0)==="+"){D=D.substring(1)}if(D.charAt(D.length-1)==="!"||D.charAt(D.length-1)==="+"){D=D.substring(0,D.length-1)}if(p.detect(function(E){return(D===E)})){return[1,D]}else{if(!y.ignoredDecorations.detect(function(E){return(D===E)})){x("Unknown macro: "+D,A,C)}return[1,""]}}switch(A.charAt(C)){case".":return[1,"staccato"];case"u":return[1,"upbow"];case"v":return[1,"downbow"];case"~":return[1,"irishroll"];case"!":case"+":var B=n.getBrackettedSubstring(A,C,5);if(B[1].length>0&&(B[1].charAt(0)==="^"||B[1].charAt(0)==="_")){B[1]=B[1].substring(1)}if(p.detect(function(E){return(B[1]===E)})){return B}if(s.detect(function(E){if(B[1]===E[0]){B[1]=E[1];return true}else{return false}})){return B}if(A.charAt(C)==="!"&&(B[0]===1||A.charAt(C+B[0]-1)!=="!")){return[1,null]}x("Unknown decoration: "+B[1],A,C);B[1]="";return B;case"H":return[1,"fermata"];
case"J":return[1,"slide"];case"L":return[1,"accent"];case"M":return[1,"mordent"];case"O":return[1,"coda"];case"P":return[1,"pralltriller"];case"R":return[1,"roll"];case"S":return[1,"segno"];case"T":return[1,"trill"]}return[0,0]};var d=function(A,B){var C=B;while(n.isWhiteSpace(A.charAt(B))){B++}return[B-C]};var r=function(C,F){var D=n.getBarLine(C,F);if(D.len===0){return[0,""]}if(D.warn){x(D.warn,C,F);return[D.len,""]}for(var B=0;B<C.length;B++){if(C.charAt(F+D.len+B)!==" "){break}}var G=D.len;if(C.charAt(F+D.len+B)==="["){D.len+=B+1}if(C.charAt(F+D.len)==='"'&&C.charAt(F+D.len-1)==="["){var A=n.getBrackettedSubstring(C,F+D.len,5);return[D.len+A[0],D.token,A[1]]}var E=n.getTokenOf(C.substring(F+D.len),"1234567890-,");if(E.len===0||E.token[0]==="-"){return[G,D.token]}return[D.len+E.len,D.token,E.token]};var o=function(A,C){var B={};var D=C;while(A.charAt(C)==="("||n.isWhiteSpace(A.charAt(C))){if(A.charAt(C)==="("){if(C+1<A.length&&(A.charAt(C+1)>="2"&&A.charAt(C+1)<="9")){if(B.triplet!==undefined){x("Can't nest triplets",A,C)}else{B.triplet=A.charAt(C+1)-"0";if(C+2<A.length&&A.charAt(C+2)===":"){if(C+3<A.length&&A.charAt(C+3)===":"){if(C+4<A.length&&(A.charAt(C+4)>="1"&&A.charAt(C+4)<="9")){B.num_notes=A.charAt(C+4)-"0";C+=3}else{x("expected number after the two colons after the triplet to mark the duration",A,C)}}else{if(C+3<A.length&&(A.charAt(C+3)>="1"&&A.charAt(C+3)<="9")){if(C+4<A.length&&A.charAt(C+4)===":"){if(C+5<A.length&&(A.charAt(C+5)>="1"&&A.charAt(C+5)<="9")){B.num_notes=A.charAt(C+5)-"0";C+=4}}else{B.num_notes=B.triplet;C+=3}}else{x("expected number after the triplet to mark the duration",A,C)}}}}C++}else{if(B.startSlur===undefined){B.startSlur=1}else{B.startSlur++}}}C++}B.consumed=C-D;return B};var m=function(B,H){if(!B){x("Can't add words before the first line of mulsic",B,0);return}H=H.strip();if(H.charAt(H.length-1)!=="-"){H=H+" "}var G=[];var F=0;var D=false;var A=function(I){var J=H.substring(F,I).strip();F=I+1;if(J.length>0){if(D){J=J.gsub("~"," ")}var K=H.charAt(I);if(K!=="_"&&K!=="-"){K=" "}G.push({syllable:n.translateString(J),divider:K});D=false;return true}return false};for(var C=0;C<H.length;C++){switch(H.charAt(C)){case" ":case"\x12":A(C);break;case"-":if(!A(C)&&G.length>0){G.last().divider="-";G.push({skip:true,to:"next"})}break;case"_":A(C);G.push({skip:true,to:"slur"});break;case"*":A(C);G.push({skip:true,to:"next"});break;case"|":A(C);G.push({skip:true,to:"bar"});break;case"~":D=true;break}}var E=false;B.each(function(J){if(G.length!==0){if(G[0].skip){switch(G[0].to){case"next":if(J.el_type==="note"&&J.pitches!==null&&!E){G.shift()}break;case"slur":if(J.el_type==="note"&&J.pitches!==null){G.shift()}break;case"bar":if(J.el_type==="bar"){G.shift()}break}}else{if(J.el_type==="note"&&J.rest===undefined&&!E){var I=G.shift();if(J.lyric===undefined){J.lyric=[I]}else{J.lyric.push(I)}}}}})};var c=function(B,H){if(!B){x("Can't add symbols before the first line of mulsic",B,0);return}H=H.strip();if(H.charAt(H.length-1)!=="-"){H=H+" "}var G=[];var F=0;var D=false;var A=function(I){var J=H.substring(F,I).strip();F=I+1;if(J.length>0){if(D){J=J.gsub("~"," ")}var K=H.charAt(I);if(K!=="_"&&K!=="-"){K=" "}G.push({syllable:n.translateString(J),divider:K});D=false;return true}return false};for(var C=0;C<H.length;C++){switch(H.charAt(C)){case" ":case"\x12":A(C);break;case"-":if(!A(C)&&G.length>0){G.last().divider="-";G.push({skip:true,to:"next"})}break;case"_":A(C);G.push({skip:true,to:"slur"});break;case"*":A(C);G.push({skip:true,to:"next"});break;case"|":A(C);G.push({skip:true,to:"bar"});break;case"~":D=true;break}}var E=false;B.each(function(J){if(G.length!==0){if(G[0].skip){switch(G[0].to){case"next":if(J.el_type==="note"&&J.pitches!==null&&!E){G.shift()}break;case"slur":if(J.el_type==="note"&&J.pitches!==null){G.shift()}break;case"bar":if(J.el_type==="bar"){G.shift()}break}}else{if(J.el_type==="note"&&J.rest===undefined&&!E){var I=G.shift();if(J.lyric===undefined){J.lyric=[I]}else{J.lyric.push(I)}}}}})};var b=function(A,B){switch(A.charAt(B)){case">":if(B<A.length-1&&A.charAt(B+1)===">"){return[2,1.75,0.25]}else{return[1,1.5,0.5]}break;case"<":if(B<A.length-1&&A.charAt(B+1)==="<"){return[2,0.25,1.75]}else{return[1,0.5,1.5]}break}return null};var f=function(A){if(A.duration!==undefined&&A.duration<0.25){A.end_beam=true}return A};var i={A:5,B:6,C:0,D:1,E:2,F:3,G:4,a:12,b:13,c:7,d:8,e:9,f:10,g:11};var a={x:"invisible",y:"spacer",z:"rest",Z:"multimeasure"};var h=function(J,G,C,A){var H=function(K){return(K==="octave"||K==="duration"||K==="Zduration"||K==="broken_rhythm"||K==="end_slur")};var B="startSlur";var D=false;while(1){switch(J.charAt(G)){case"(":if(B==="startSlur"){if(C.startSlur===undefined){C.startSlur=1}else{C.startSlur++}}else{if(H(B)){C.endChar=G;return C}else{return null}}break;case")":if(H(B)){if(C.endSlur===undefined){C.endSlur=1}else{C.endSlur++}}else{return null}break;case"^":if(B==="startSlur"){C.accidental="sharp";B="sharp2"}else{if(B==="sharp2"){C.accidental="dblsharp";B="pitch"}else{if(H(B)){C.endChar=G;return C}else{return null}}}break;case"_":if(B==="startSlur"){C.accidental="flat";B="flat2"}else{if(B==="flat2"){C.accidental="dblflat";B="pitch"}else{if(H(B)){C.endChar=G;return C}else{return null}}}break;case"=":if(B==="startSlur"){C.accidental="natural";B="pitch"}else{if(H(B)){C.endChar=G;return C}else{return null}}break;case"A":case"B":case"C":case"D":case"E":case"F":case"G":case"a":case"b":case"c":case"d":case"e":case"f":case"g":if(B==="startSlur"||B==="sharp2"||B==="flat2"||B==="pitch"){C.pitch=i[J.charAt(G)];B="octave";if(A&&y.next_note_duration!==0){C.duration=y.next_note_duration;y.next_note_duration=0;D=true}else{C.duration=y.default_length}}else{if(H(B)){C.endChar=G;return C}else{return null}}break;case",":if(B==="octave"){C.pitch-=7}else{if(H(B)){C.endChar=G;return C}else{return null}}break;case"'":if(B==="octave"){C.pitch+=7}else{if(H(B)){C.endChar=G;return C}else{return null}}break;case"x":case"y":case"z":case"Z":if(B==="startSlur"){C.rest={type:a[J.charAt(G)]};delete C.accidental;delete C.startSlur;delete C.startTie;delete C.endSlur;delete C.endTie;delete C.end_beam;delete C.grace_notes;if(C.rest.type==="multimeasure"){C.duration=1;B="Zduration"}else{if(A&&y.next_note_duration!==0){C.duration=y.next_note_duration;y.next_note_duration=0;D=true}else{C.duration=y.default_length}B="duration"}}else{if(H(B)){C.endChar=G;return C}else{return null}}break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case"0":case"/":if(B==="octave"||B==="duration"){var I=n.getFraction(J,G);if(!D){C.duration=C.duration*I.value}C.endChar=I.index;while(I.index<J.length&&(n.isWhiteSpace(J.charAt(I.index))||J.charAt(I.index)==="-")){if(J.charAt(I.index)==="-"){C.startTie={}}else{C=f(C)}I.index++}G=I.index-1;B="broken_rhythm"}else{if(B==="sharp2"){C.accidental="quartersharp";B="pitch"}else{if(B==="flat2"){C.accidental="quarterflat";B="pitch"}else{if(B==="Zduration"){var F=n.getNumber(J,G);C.duration=F.num;C.endChar=F.index;return C
}else{return null}}}}break;case"-":if(B==="startSlur"){e.addTieToLastNote();C.endTie=true}else{if(B==="octave"||B==="duration"||B==="end_slur"){C.startTie={};if(!D&&A){B="broken_rhythm"}else{if(n.isWhiteSpace(J.charAt(G+1))){f(C)}C.endChar=G+1;return C}}else{if(B==="broken_rhythm"){C.endChar=G;return C}else{return null}}}break;case" ":case"\t":if(H(B)){C.end_beam=true;do{if(J.charAt(G)==="-"){C.startTie={}}G++}while(G<J.length&&(n.isWhiteSpace(J.charAt(G))||J.charAt(G)==="-"));C.endChar=G;if(!D&&A&&(J.charAt(G)==="<"||J.charAt(G)===">")){G--;B="broken_rhythm"}else{return C}}else{return null}break;case">":case"<":if(H(B)){if(A){var E=b(J,G);G+=E[0]-1;y.next_note_duration=E[2]*C.duration;C.duration=E[1]*C.duration;B="end_slur"}else{C.endChar=G;return C}}else{return null}break;default:if(H(B)){C.endChar=G;return C}return null}G++;if(G===J.length){if(H(B)){C.endChar=G;return C}else{return null}}}return null};function v(){var B={startChar:-1,endChar:-1};if(y.partForNextLine.length){B.part=y.partForNextLine}B.clef=y.currentVoice&&y.staves[y.currentVoice.staffNum].clef!==undefined?Object.clone(y.staves[y.currentVoice.staffNum].clef):Object.clone(y.clef);B.key=parseKeyVoice.deepCopyKey(y.key);parseKeyVoice.addPosToKey(B.clef,B.key);if(y.meter!==null){if(y.currentVoice){y.staves.each(function(C){C.meter=y.meter});B.meter=y.staves[y.currentVoice.staffNum].meter;y.staves[y.currentVoice.staffNum].meter=null}else{B.meter=y.meter}y.meter=null}else{if(y.currentVoice&&y.staves[y.currentVoice.staffNum].meter){B.meter=y.staves[y.currentVoice.staffNum].meter;y.staves[y.currentVoice.staffNum].meter=null}}if(y.currentVoice&&y.currentVoice.name){B.name=y.currentVoice.name}if(y.vocalfont){B.vocalfont=y.vocalfont}if(y.style){B.style=y.style}if(y.currentVoice){var A=y.staves[y.currentVoice.staffNum];if(A.brace){B.brace=A.brace}if(A.bracket){B.bracket=A.bracket}if(A.connectBarLines){B.connectBarLines=A.connectBarLines}if(A.name){B.name=A.name[y.currentVoice.index]}if(A.subname){B.subname=A.subname[y.currentVoice.index]}if(y.currentVoice.stem){B.stem=y.currentVoice.stem}if(y.currentVoice.scale){B.scale=y.currentVoice.scale}if(y.currentVoice.style){B.style=y.currentVoice.style}}e.startNewLine(B);y.partForNextLine="";if(y.currentVoice===undefined||(y.currentVoice.staffNum===y.staves.length-1&&y.staves[y.currentVoice.staffNum].numVoices-1===y.currentVoice.index)){if(y.barNumbers===0){y.barNumOnNextNote=y.currBarNumber}}}var w=function(B,D){if(B.charAt(D)==="{"){var C=n.getBrackettedSubstring(B,D,1,"}");if(!C[2]){x("Missing the closing '}' while parsing grace note",B,D)}if(B[D+C[0]]===")"){C[0]++;C[1]+=")"}var A=[];var F=0;var G=false;while(F<C[1].length){var H=false;if(C[1].charAt(F)==="/"){H=true;F++}var E=h(C[1],F,{},false);if(E!==null){if(H){E.acciaccatura=true}A.push(E);if(G){E.endTie=true;G=false}if(E.startTie){G=true}F=E.endChar;delete E.endChar}else{if(C[1].charAt(F)===" "){if(A.length>0){A[A.length-1].end_beam=true}}else{x("Unknown character '"+C[1].charAt(F)+"' while parsing grace note",B,D)}F++}}if(A.length){return[C[0],A]}}return[0]};var q="ABCDEFGabcdefgxyzZ[]|^_{";var l=function(K){u.resolveTempo();y.is_in_header=false;var R=0;var Q=y.iChar;while(n.isWhiteSpace(K.charAt(R))&&R<K.length){R++}if(R===K.length||K.charAt(R)==="%"){return}var U=y.start_new_line;if(y.continueall===undefined){y.start_new_line=true}else{y.start_new_line=false}var H=0;var N=u.letter_to_body_header(K,R);if(N[0]>0){R+=N[0]}var C={};while(R<K.length){var D=R;if(K.charAt(R)==="%"){break}var B=u.letter_to_inline_header(K,R);if(B[0]>0){R+=B[0]}else{if(U){v();U=false}var W;while(1){W=n.eatWhiteSpace(K,R);if(W>0){R+=W}if(R>0&&K.charAt(R-1)==="\x12"){W=u.letter_to_body_header(K,R);if(W[0]>0){R=W[0];y.start_new_line=false}}W=d(K,R);if(W[0]>0){R+=W[0]}W=t(K,R);if(W[0]>0){if(!C.chord){C.chord=[]}var G=n.translateString(W[1]);G=G.replace(/;/g,"\n");var F=false;for(var L=0;L<C.chord.length;L++){if(C.chord[L].position===W[2]){F=true;C.chord[L].name+="\n"+G}}if(F===false){if(W[2]===null&&W[3]){C.chord.push({name:G,rel_position:W[3]})}else{C.chord.push({name:G,position:W[2]})}}R+=W[0];var M=n.skipWhiteSpace(K.substring(R));if(M>0){C.force_end_beam_last=true}R+=M}else{if(q.indexOf(K.charAt(R))===-1){W=g(K,R)}else{W=[0]}if(W[0]>0){if(W[1]===null){if(R+1<K.length){v()}}else{if(W[1].length>0){if(C.decoration===undefined){C.decoration=[]}C.decoration.push(W[1])}}R+=W[0]}else{W=w(K,R);if(W[0]>0){C.gracenotes=W[1];R+=W[0]}else{break}}}}W=r(K,R);if(W[0]>0){if(C.gracenotes!==undefined){C.rest={type:"spacer"};C.duration=0.125;e.appendElement("note",Q+R,Q+R+W[0],C);y.measureNotEmpty=true;C={}}var T={type:W[1]};if(T.type.length===0){x("Unknown bar type",K,R)}else{if(y.inEnding&&T.type!=="bar_thin"){T.endEnding=true;y.inEnding=false}if(W[2]){T.startEnding=W[2];if(y.inEnding){T.endEnding=true}y.inEnding=true}if(C.decoration!==undefined){T.decoration=C.decoration}if(C.chord!==undefined){T.chord=C.chord}if(T.startEnding&&y.barFirstEndingNum===undefined){y.barFirstEndingNum=y.currBarNumber}else{if(T.startEnding&&T.endEnding&&y.barFirstEndingNum){y.currBarNumber=y.barFirstEndingNum}else{if(T.endEnding){y.barFirstEndingNum=undefined}}}if(T.type!=="bar_invisible"&&y.measureNotEmpty){y.currBarNumber++;if(y.barNumbers&&y.currBarNumber%y.barNumbers===0){y.barNumOnNextNote=y.currBarNumber}}e.appendElement("bar",Q+R,Q+R+W[0],T);y.measureNotEmpty=false;C={}}R+=W[0]}else{if(K[R]==="&"){x("Overlay not yet supported",K,R);R++}else{W=o(K,R);if(W.consumed>0){if(W.startSlur!==undefined){C.startSlur=W.startSlur}if(W.triplet!==undefined){if(H>0){x("Can't nest triplets",K,R)}else{C.startTriplet=W.triplet;H=W.num_notes===undefined?W.triplet:W.num_notes}}R+=W.consumed}if(K.charAt(R)==="["){R++;var A=null;var P=false;while(!P){var J=h(K,R,{},false);if(J!==null){if(J.end_beam){C.end_beam=true;delete J.end_beam}if(C.pitches===undefined){C.duration=J.duration;C.pitches=[J]}else{C.pitches.push(J)}delete J.duration;if(y.inTieChord[C.pitches.length]){J.endTie=true;y.inTieChord[C.pitches.length]=undefined}if(J.startTie){y.inTieChord[C.pitches.length]=true}R=J.endChar;delete J.endChar}else{if(K.charAt(R)===" "){x("Spaces are not allowed in chords",K,R);R++}else{if(R<K.length&&K.charAt(R)==="]"){R++;if(y.next_note_duration!==0){C.duration=C.duration*y.next_note_duration;y.next_note_duration=0}if(y.inTie){C.pitches.each(function(X){X.endTie=true});y.inTie=false}if(H>0){H--;if(H===0){C.endTriplet=true}}var I=false;while(R<K.length&&!I){switch(K.charAt(R)){case" ":case"\t":f(C);break;case")":if(C.endSlur===undefined){C.endSlur=1}else{C.endSlur++}break;case"-":C.pitches.each(function(X){X.startTie={}});y.inTie=true;break;case">":case"<":var V=b(K,R);R+=V[0]-1;y.next_note_duration=V[2];A=V[1];break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case"/":var E=n.getFraction(K,R);A=E.value;R=E.index;I=true;break;default:I=true;break}if(!I){R++}}}else{x("Expected ']' to end the chords",K,R)}if(C.pitches!==undefined){if(A!==null){C.duration=C.duration*A}if(y.barNumOnNextNote){C.barNumber=y.barNumOnNextNote;
y.barNumOnNextNote=null}e.appendElement("note",Q+R,Q+R,C);y.measureNotEmpty=true;C={}}P=true}}}}else{var O={};var S=h(K,R,O,true);if(O.endTie!==undefined){y.inTie=true}if(S!==null){if(S.pitch!==undefined){C.pitches=[{}];if(S.accidental!==undefined){C.pitches[0].accidental=S.accidental}C.pitches[0].pitch=S.pitch;if(S.endSlur!==undefined){C.pitches[0].endSlur=S.endSlur}if(S.endTie!==undefined){C.pitches[0].endTie=S.endTie}if(S.startSlur!==undefined){C.pitches[0].startSlur=S.startSlur}if(C.startSlur!==undefined){C.pitches[0].startSlur=C.startSlur}if(S.startTie!==undefined){C.pitches[0].startTie=S.startTie}if(C.startTie!==undefined){C.pitches[0].startTie=C.startTie}}else{C.rest=S.rest;if(S.endSlur!==undefined){C.endSlur=S.endSlur}if(S.endTie!==undefined){C.rest.endTie=S.endTie}if(S.startSlur!==undefined){C.startSlur=S.startSlur}if(C.startSlur!==undefined){C.startSlur=C.startSlur}if(S.startTie!==undefined){C.rest.startTie=S.startTie}if(C.startTie!==undefined){C.rest.startTie=C.startTie}}if(S.chord!==undefined){C.chord=S.chord}if(S.duration!==undefined){C.duration=S.duration}if(S.decoration!==undefined){C.decoration=S.decoration}if(S.graceNotes!==undefined){C.graceNotes=S.graceNotes}delete C.startSlur;if(y.inTie){if(C.pitches!==undefined){C.pitches[0].endTie=true}else{C.rest.endTie=true}y.inTie=false}if(S.startTie||C.startTie){y.inTie=true}R=S.endChar;if(H>0){H--;if(H===0){C.endTriplet=true}}if(S.end_beam){f(C)}if(y.barNumOnNextNote){C.barNumber=y.barNumOnNextNote;y.barNumOnNextNote=null}e.appendElement("note",Q+D,Q+R,C);y.measureNotEmpty=true;C={}}}if(R===D){if(K.charAt(R)!==" "&&K.charAt(R)!=="`"){x("Unknown character ignored",K,R)}R++}}}}}};var k=function(A){var B=u.parseHeader(A);if(B.regular){l(B.str)}if(B.newline&&y.continueall===undefined){v()}if(B.words){m(e.getCurrentVoice(),A.substring(2))}if(B.symbols){c(e.getCurrentVoice(),A.substring(2))}if(B.recurse){k(B.str)}};this.parse=function(G,E){e.reset();if(E&&E.print){e.media="print"}y.reset();G=G.gsub("\r\n","\n");G=G.gsub("\r","\n");G+="\n";G=G.replace(/\n\\.*\n/g,"\n");var C=function(J,L,M){var I="                                                                                                                                                                                                     ";var K=M?I.substring(0,M.length):"";return L+" \x12"+K};G=G.replace(/\\([ \t]*)(%.*)*\n/g,C);var B=G.split("\n");if(B.last().length===0){B.pop()}try{B.each(function(I){if(E){if(E.header_only&&y.is_in_header===false){throw"normal_abort"}if(E.stop_on_warning&&y.warnings){throw"normal_abort"}}if(y.is_in_history){if(I.charAt(1)===":"){y.is_in_history=false;k(I)}else{e.addMetaText("history",n.translateString(n.stripComment(I)))}}else{if(y.inTextBlock){if(I.startsWith("%%endtext")){e.addText(y.textBlock);y.inTextBlock=false}else{if(I.startsWith("%%")){y.textBlock+=" "+I.substring(2)}else{y.textBlock+=" "+I}}}else{if(y.inPsBlock){if(I.startsWith("%%endps")){y.inPsBlock=false}else{y.textBlock+=" "+I}}else{k(I)}}}y.iChar+=I.length+1});var H=11*72;var D=8.5*72;switch(y.papersize){case"legal":H=14*72;D=8.5*72;break;case"A4":H=11.7*72;D=8.3*72;break}if(y.landscape){var A=H;H=D;D=A}e.cleanUp(D,H,y.barsperstaff,y.staffnonote)}catch(F){if(F!=="normal_abort"){throw F}}}}function setAttributes(c,b){for(var a in b){c.setAttribute(a,b[a])}return c}oldunload=window.onbeforeunload;window.onbeforeunload=function(){oldunload();if(typeof(MIDIPlugin)!="undefined"&&MIDIPlugin){MIDIPlugin.closePlugin()}};function MidiProxy(a,b){this.javamidi=a;this.qtmidi=b}MidiProxy.prototype.setTempo=function(a){this.javamidi.setTempo(a);this.qtmidi.setTempo(a)};MidiProxy.prototype.startTrack=function(){this.javamidi.startTrack();this.qtmidi.startTrack()};MidiProxy.prototype.endTrack=function(){this.javamidi.endTrack();this.qtmidi.endTrack()};MidiProxy.prototype.setInstrument=function(a){this.javamidi.setInstrument(a);this.qtmidi.setInstrument(a)};MidiProxy.prototype.startNote=function(c,a,b){this.javamidi.startNote(c,a,b);this.qtmidi.startNote(c,a,b)};MidiProxy.prototype.endNote=function(b,a){this.javamidi.endNote(b,a);this.qtmidi.endNote(b,a)};MidiProxy.prototype.addRest=function(a){this.javamidi.addRest(a);this.qtmidi.addRest(a)};MidiProxy.prototype.embed=function(a){this.javamidi.embed(a);this.qtmidi.embed(a,true)};function JavaMidi(a){this.playlist=[];this.trackcount=0;this.timecount=0;this.tempo=60;this.midiapi=MIDIPlugin;this.midiwriter=a}JavaMidi.prototype.setTempo=function(a){this.tempo=a};JavaMidi.prototype.startTrack=function(){this.silencelength=0;this.trackcount++;this.timecount=0;this.playlistpos=0;this.first=true;if(this.instrument){this.setInstrument(this.instrument)}};JavaMidi.prototype.endTrack=function(){};JavaMidi.prototype.setInstrument=function(a){this.instrument=a;this.midiapi.setInstrument(a)};JavaMidi.prototype.updatePos=function(){while(this.playlist[this.playlistpos]&&this.playlist[this.playlistpos].time<this.timecount){this.playlistpos++}};JavaMidi.prototype.startNote=function(d,b,c){this.timecount+=this.silencelength;this.silencelength=0;if(this.first){}this.updatePos();var a=this;this.playlist.splice(this.playlistpos,0,{time:this.timecount,funct:function(){a.midiapi.playNote(d);a.midiwriter.notifySelect(c)}})};JavaMidi.prototype.endNote=function(c,b){this.timecount+=b;this.updatePos();var a=this;this.playlist.splice(this.playlistpos,0,{time:this.timecount,funct:function(){a.midiapi.stopNote(c)}})};JavaMidi.prototype.addRest=function(a){this.silencelength+=a};JavaMidi.prototype.embed=function(b){this.playlink=setAttributes(document.createElement("a"),{style:"border:1px solid black; margin:3px;"});this.playlink.innerHTML="play";var a=this;this.playlink.onmousedown=function(){if(a.playing){this.innerHTML="play";a.pausePlay()}else{this.innerHTML="pause";a.startPlay()}};b.appendChild(this.playlink);stoplink=setAttributes(document.createElement("a"),{style:"border:1px solid black; margin:3px;"});stoplink.innerHTML="stop";var a=this;stoplink.onmousedown=function(){a.stopPlay()};b.appendChild(stoplink);this.i=0;this.currenttime=0;this.playing=false};JavaMidi.prototype.stopPlay=function(){this.i=0;this.currenttime=0;this.pausePlay();this.playlink.innerHTML="play"};JavaMidi.prototype.startPlay=function(){this.playing=true;var a=this;this.ticksperinterval=480/4;this.doPlay();this.playinterval=window.setInterval(function(){a.doPlay()},(60000/(this.tempo*4)))};JavaMidi.prototype.pausePlay=function(){this.playing=false;window.clearInterval(this.playinterval);this.midiapi.stopAllNotes()};JavaMidi.prototype.doPlay=function(){while(this.playlist[this.i]&&this.playlist[this.i].time<=this.currenttime){this.playlist[this.i].funct();this.i++}if(this.playlist[this.i]){this.currenttime+=this.ticksperinterval}else{this.stopPlay()}};function Midi(){this.trackstrings="";this.trackcount=0}Midi.prototype.setTempo=function(a){if(this.trackcount==0){this.startTrack();this.track+="%00%FF%51%03"+toHex(Math.round(60000000/a),6);this.endTrack()}};Midi.prototype.startTrack=function(){this.track="";
this.silencelength=0;this.trackcount++;this.first=true;if(this.instrument){this.setInstrument(this.instrument)}};Midi.prototype.endTrack=function(){var a=toHex(this.track.length/3+4,8);this.track="MTrk"+a+this.track+"%00%FF%2F%00";this.trackstrings+=this.track};Midi.prototype.setInstrument=function(a){this.track="%00%C0"+toHex(a,2)+this.track;this.instrument=a};Midi.prototype.startNote=function(b,a){this.track+=toDurationHex(this.silencelength);this.silencelength=0;if(this.first){this.first=false;this.track+="%90"}this.track+="%"+b.toString(16)+"%"+a};Midi.prototype.endNote=function(b,a){this.track+=toDurationHex(a);this.track+="%"+b.toString(16)+"%00"};Midi.prototype.addRest=function(a){this.silencelength+=a};Midi.prototype.embed=function(b,a){var d="data:audio/midi,MThd%00%00%00%06%00%01"+toHex(this.trackcount,4)+"%01%e0"+this.trackstrings;var c=setAttributes(document.createElement("a"),{href:d});c.innerHTML="download midi";b.insertBefore(c,b.firstChild);if(a){return}var e=setAttributes(document.createElement("embed"),{src:d,type:"video/quicktime",controller:"true",autoplay:"false",loop:"false",enablejavascript:"true",style:"display:block; height: 20px;"});b.insertBefore(e,b.firstChild)};function encodeHex(c){var a="";for(var b=0;b<c.length;b+=2){a+="%";a+=c.substr(b,2)}return a}function toHex(c,b){var a=c.toString(16);while(a.length<b){a="0"+a}return encodeHex(a)}function toDurationHex(g){var d=0;var b=[];while(g!=0){b.push(g&127);g=g>>7}for(var c=b.length-1;c>=0;c--){d=d<<8;var e=b[c];if(c!==0){e=e|128}d=d|e}var f=d.toString(16).length;f+=f%2;return toHex(d,f)}function ABCMidiWriter(b,a){var a=a||{};this.parent=b;this.scale=[0,2,4,5,7,9,11];this.restart={line:0,staff:0,voice:0,pos:0};this.visited={};this.multiplier=1;this.next=null;this.qpm=a.qpm||180;this.program=a.program||2;this.javamidi=a.type=="java"||false;this.listeners=[];this.transpose=0;if(this.javamidi){MIDIPlugin=document.MIDIPlugin;setTimeout(function(){try{MIDIPlugin.openPlugin()}catch(d){var c=document.createElement("a");c.href="http://java.sun.com/products/java-media/sound/soundbanks.html";c.target="_blank";c.appendChild(document.createTextNode("Download Soundbank"));b.appendChild(c)}},0)}}ABCMidiWriter.prototype.addListener=function(a){this.listeners.push(a)};ABCMidiWriter.prototype.notifySelect=function(b){for(var a=0;a<this.listeners.length;a++){this.listeners[a].notifySelect(b.abselem)}};ABCMidiWriter.prototype.getMark=function(){return{line:this.line,staff:this.staff,voice:this.voice,pos:this.pos}};ABCMidiWriter.prototype.getMarkString=function(a){a=a||this;return"line"+a.line+"staff"+a.staff+"voice"+a.voice+"pos"+a.pos};ABCMidiWriter.prototype.goToMark=function(a){this.line=a.line;this.staff=a.staff;this.voice=a.voice;this.pos=a.pos};ABCMidiWriter.prototype.markVisited=function(){this.lastmark=this.getMarkString();this.visited[this.lastmark]=true};ABCMidiWriter.prototype.isVisited=function(){if(this.visited[this.getMarkString()]){return true}return false};ABCMidiWriter.prototype.setJumpMark=function(a){this.visited[this.lastmark]=a};ABCMidiWriter.prototype.getJumpMark=function(){return this.visited[this.getMarkString()]};ABCMidiWriter.prototype.getLine=function(){return this.abctune.lines[this.line]};ABCMidiWriter.prototype.getStaff=function(){try{return this.getLine().staff[this.staff]}catch(a){}};ABCMidiWriter.prototype.getVoice=function(){return this.getStaff().voices[this.voice]};ABCMidiWriter.prototype.getElem=function(){return this.getVoice()[this.pos]};ABCMidiWriter.prototype.writeABC=function(f){try{this.midi=(this.javamidi)?new MidiProxy(new JavaMidi(this),new Midi()):new Midi();this.baraccidentals=[];this.abctune=f;this.baseduration=480*4;if(f.formatting.midi&&f.formatting.midi.transpose){this.transpose=f.formatting.midi.transpose}if(f.formatting.midi&&f.formatting.midi.program&&f.formatting.midi.program.program){this.midi.setInstrument(f.formatting.midi.program.program)}else{this.midi.setInstrument(this.program)}if(f.metaText.tempo){var d=1/4;if(f.metaText.tempo.duration){d=f.metaText.tempo.duration[0]}var c=60;if(f.metaText.tempo.bpm){c=f.metaText.tempo.bpm}this.qpm=c*d*4}this.midi.setTempo(this.qpm);this.staffcount=1;for(this.staff=0;this.staff<this.staffcount;this.staff++){this.voicecount=1;for(this.voice=0;this.voice<this.voicecount;this.voice++){this.midi.startTrack();this.restart={line:0,staff:this.staff,voice:this.voice,pos:0};this.next=null;for(this.line=0;this.line<f.lines.length;this.line++){var a=f.lines[this.line];if(this.getLine().staff){this.writeABCLine()}}this.midi.endTrack()}}this.midi.embed(this.parent)}catch(b){this.parent.innerHTML="Couldn't write midi: "+b}};ABCMidiWriter.prototype.writeABCLine=function(){this.staffcount=this.getLine().staff.length;this.voicecount=this.getStaff().voices.length;this.setKeySignature(this.getStaff().key);this.writeABCVoiceLine()};ABCMidiWriter.prototype.writeABCVoiceLine=function(){this.pos=0;while(this.pos<this.getVoice().length){this.writeABCElement(this.getElem());if(this.next){this.goToMark(this.next);this.next=null;if(!this.getLine().staff){return}}else{this.pos++}}};ABCMidiWriter.prototype.writeABCElement=function(a){var b;switch(a.el_type){case"note":this.writeNote(a);break;case"key":this.setKeySignature(a);break;case"bar":this.handleBar(a);case"meter":case"clef":default:}};ABCMidiWriter.prototype.writeNote=function(e){if(e.startTriplet){this.multiplier=2/3}var a=e.duration*this.baseduration*this.multiplier;if(e.pitches){var d=[];for(var b=0;b<e.pitches.length;b++){var c=e.pitches[b];var f=c.pitch;if(c.accidental){switch(c.accidental){case"sharp":this.baraccidentals[f]=1;break;case"flat":this.baraccidentals[f]=-1;break;case"natural":this.baraccidentals[f]=0;break}}d[b]=60+12*this.extractOctave(f)+this.scale[this.extractNote(f)];if(this.baraccidentals[f]!==undefined){d[b]+=this.baraccidentals[f]}else{d[b]+=this.accidentals[this.extractNote(f)]}d[b]+=this.transpose;this.midi.startNote(d[b],64,e);if(c.startTie){this.tieduration=a}}for(b=0;b<e.pitches.length;b++){var c=e.pitches[b];var f=c.pitch+this.transpose;if(c.startTie){continue}if(c.endTie){this.midi.endNote(d[b],a+this.tieduration)}else{this.midi.endNote(d[b],a)}a=0;this.tieduration=0}}else{this.midi.addRest(a)}if(e.endTriplet){this.multiplier=1}};ABCMidiWriter.prototype.handleBar=function(e){this.baraccidentals=[];var f=(e.type==="bar_right_repeat"||e.type==="bar_dbl_repeat");var d=(e.startEnding)?true:false;var a=(f||d);var c=(e.type==="bar_left_repeat"||e.type==="bar_dbl_repeat"||e.type==="bar_thick_thin"||e.type==="bar_thin_thick"||e.type==="bar_thin_thin"||e.type==="bar_right_repeat");var b=null;if(this.isVisited()){b=this.getJumpMark()}else{if(d||f){if(this.visited[this.lastmark]===true){this.setJumpMark(this.getMark())}}if(a){this.markVisited()}if(f){b=this.restart;this.setJumpMark(this.getMark())}}if(c){this.restart=this.getMark()}if(b&&this.getMarkString(b)!==this.getMarkString()){this.next=b}};ABCMidiWriter.prototype.setKeySignature=function(a){this.accidentals=[0,0,0,0,0,0,0];
if(this.abctune.formatting.bagpipes){a.accidentals=[{acc:"natural",note:"g"},{acc:"sharp",note:"f"},{acc:"sharp",note:"c"}]}if(!a.accidentals){return}a.accidentals.each(function(e){var f=(e.acc==="sharp")?1:(e.acc==="natural")?0:-1;var c=e.note.toLowerCase();var b=this.extractNote(c.charCodeAt(0)-"c".charCodeAt(0));this.accidentals[b]+=f},this)};ABCMidiWriter.prototype.extractNote=function(a){var a=a%7;if(a<0){a+=7}return a};ABCMidiWriter.prototype.extractOctave=function(a){return Math.floor(a/7)};function ABCPlugin(a){this.$=a;this.show_midi=true;this.hide_abc=false;this.render_before=false;this.midi_options={};this.parse_options={};this.render_options={};this.render_classname="abcrendered";this.text_classname="abctext";this.auto_render_threshold=20;this.show_text="show score for: ";this.hide_text="hide score for: "}var abc_plugin=new ABCPlugin(jQuery);function start_abc(){abc_plugin.start()}ABCPlugin.prototype.start=function(){this.errors="";var b=this.getABCContainingElements(this.$("body"));var a=this;var c=b.map(function(d,e){return a.convertToDivs(e)});this.auto_render=(c.size()<=this.auto_render_threshold);c.each(function(d,e){a.render(e,a.$(e).data("abctext"))})};ABCPlugin.prototype.getABCContainingElements=function(d){var b=this.$();var c=false;var a=this;this.$(d).contents().each(function(){if(this.nodeType==3&&!c){if(this.nodeValue.match(/^\s*X:/m)){b=b.add(a.$(d));c=true}}else{if(this.nodeType==1&&!a.$(this).is("textarea")){b=b.add(a.getABCContainingElements(this))}}});return b};ABCPlugin.prototype.convertToDivs=function(e){var b=this;var d=this.$(e).contents();var a="";var h=null;var g=false;var f=0;var c=this.$();d.each(function(k,l){if(l.nodeType==3&&!l.nodeValue.match(/^\s*$/)){f=0;var m=l.nodeValue;if(m.match(/^\s*X:/m)){g=true;a="";h=b.$("<div class='"+b.text_classname+"'></div>");b.$(l).before(h);if(b.hide_abc){h.hide()}}if(g){a+=m.replace(/\n$/,"").replace(/^\n/,"");h.append(b.$(l))}}else{if(g&&b.$(l).is("br")&&f==0){a+="\n";h.append(b.$(l));f++}else{if(g){g=false;f=0;h.data("abctext",a);c=c.add(h)}}}});if(g){h.data("abctext",a);c=c.add(h)}return c.get()};ABCPlugin.prototype.render=function(c,l){var h=this.$("<div class='"+this.render_classname+"'></div>");if(this.render_before){this.$(c).before(h)}else{this.$(c).after(h)}var m=this;try{var a=new AbcTuneBook(l);var f=new AbcParse();f.parse(a.tunes[0].abc);var i=f.getTune();var b=function(){try{var o=Raphael(h.get(0),800,400);var n=new ABCPrinter(o,m.render_options);n.printABC(i)}catch(e){h.remove();h=this.$("<div class='"+m.render_classname+"'></div>");o=Raphael(h.get(0),800,400);n=new ABCPrinter(o);n.printABC(i);if(m.render_before){this.$(c).before(h)}else{this.$(c).after(h)}}if(ABCMidiWriter&&m.show_midi){midiwriter=new ABCMidiWriter(h.get(0),m.midi_options);midiwriter.writeABC(i)}};var g="<a class='abcshow' href='#'>"+this.show_text+(i.metaText.title||"untitled")+"</a>";if(this.auto_render){b()}else{var d=this.$(g);d.click(function(){b();d.hide();return false});h.before(d)}}catch(k){this.errors+=k}};jQuery(document).ready(start_abc);
