1.4.2 v1.4.2
authorDmitryBaranovskiy <dmitry@baranovskiy.com>
Tue, 11 May 2010 04:24:28 +0000 (14:24 +1000)
committerDmitryBaranovskiy <dmitry@baranovskiy.com>
Tue, 11 May 2010 04:24:28 +0000 (14:24 +1000)
• fix animation callback for sets
• fix format method
• added touch event handlers circle.touchmove(function…)

raphael-min.js

index 4ab0b5c..1cf8305 100644 (file)
@@ -1,7 +1,7 @@
 /*
- * Raphael 1.4.1 - JavaScript Vector Library
+ * Raphael 1.4.2 - 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 az(){if(az.is(arguments[0],aU)){var d=arguments[0],e=B[bi](az,d.splice(0,3+az.is(d[0],aw))),S=e.set();for(var R=0,bn=d[o];R<bn;R++){var E=d[R]||{};a8.test(E.type)&&S[f](e[E.type]().attr(E));}return S;}return B[bi](az,arguments);}az.version="1.4.1";var a=/[, ]+/,a8=/^(circle|rect|path|ellipse|text|image)$/,bk="prototype",ab="hasOwnProperty",V=document,aG=window,n={was:Object[bk][ab].call(aG,"Raphael"),is:aG.Raphael},bf=function(){},a4="appendChild",bi="apply",bd="concat",P="createTouch" in V,aF="",ay=" ",F="split",M="click dblclick mousedown mousemove mouseout mouseover mouseup"[F](ay),a9={mousedown:"touchstart",mousemove:"touchmove",mouseup:"touchend"},aM="join",o="length",bm=String[bk].toLowerCase,aj=Math,h=aj.max,a2=aj.min,aw="number",aa="string",aU="array",aO="toString",aR="fill",aJ=Object[bk][aO],bb={},a5=aj.pow,f="push",bg=/^(?=[\da-f]$)/,c=/^url\(['"]?([^\)]+?)['"]?\)$/i,C=/^\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,Y=aj.round,A="setAttribute",ae=parseFloat,N=parseInt,aS=" progid:DXImageTransform.Microsoft",a7=String[bk].toUpperCase,l={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},ah={along:"along",blur:aw,"clip-rect":"csv",cx:aw,cy:aw,fill:"colour","fill-opacity":aw,"font-size":aw,height:aw,opacity:aw,path:"path",r:aw,rotation:"csv",rx:aw,ry:aw,scale:"csv",stroke:"colour","stroke-opacity":aw,"stroke-width":aw,translation:"csv",width:aw,x:aw,y:aw},ba="replace";az.type=(aG.SVGAngle||V.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")?"SVG":"VML");if(az.type=="VML"){var ap=V.createElement("div");ap.innerHTML="<!--[if vml]><br><br><![endif]-->";if(ap.childNodes[o]!=2){return az.type=null;}ap=null;}az.svg=!(az.vml=az.type=="VML");bf[bk]=az[bk];az._id=0;az._oid=0;az.fn={};az.is=function(e,d){d=bm.call(d);return(d=="object"&&e===Object(e))||(d=="undefined"&&typeof e==d)||(d=="null"&&e==null)||bm.call(aJ.call(e).slice(8,-1))==d;};az.setWindow=function(d){aG=d;V=aG.document;};var aV=function(e){if(az.vml){var d=/^\s+|\s+$/g;aV=at(function(R){var S;R=(R+aF)[ba](d,aF);try{var bn=new aG.ActiveXObject("htmlfile");bn.write("<body>");bn.close();S=bn.body;}catch(bp){S=aG.createPopup().document.body;}var i=S.createTextRange();try{S.style.color=R;var bo=i.queryCommandValue("ForeColor");bo=((bo&255)<<16)|(bo&65280)|((bo&16711680)>>>16);return"#"+("000000"+bo[aO](16)).slice(-6);}catch(bp){return"none";}});}else{var E=V.createElement("i");E.title="Rapha\xebl Colour Picker";E.style.display="none";V.body[a4](E);aV=at(function(i){E.style.color=i;return V.defaultView.getComputedStyle(E,aF).getPropertyValue("color");});}return aV(e);};var au=function(){return"hsb("+[this.h,this.s,this.b]+")";},y=function(){return this.hex;};az.hsb2rgb=at(function(bq,bo,bu){if(az.is(bq,"object")&&"h" in bq&&"s" in bq&&"b" in bq){bu=bq.b;bo=bq.s;bq=bq.h;}var R,S,bv;if(bu==0){return{r:0,g:0,b:0,hex:"#000"};}if(bq>1||bo>1||bu>1){bq/=255;bo/=255;bu/=255;}var bn=~~(bq*6),br=(bq*6)-bn,E=bu*(1-bo),e=bu*(1-(bo*br)),bw=bu*(1-(bo*(1-br)));R=[bu,e,E,E,bw,bu,bu][bn];S=[bw,bu,bu,e,E,E,bw][bn];bv=[E,E,bw,bu,bu,e,E][bn];R*=255;S*=255;bv*=255;var bs={r:R,g:S,b:bv,toString:y},d=(~~R)[aO](16),bp=(~~S)[aO](16),bt=(~~bv)[aO](16);d=d[ba](bg,"0");bp=bp[ba](bg,"0");bt=bt[ba](bg,"0");bs.hex="#"+d+bp+bt;return bs;},az);az.rgb2hsb=at(function(d,e,bo){if(az.is(d,"object")&&"r" in d&&"g" in d&&"b" in d){bo=d.b;e=d.g;d=d.r;}if(az.is(d,aa)){var bq=az.getRGB(d);d=bq.r;e=bq.g;bo=bq.b;}if(d>1||e>1||bo>1){d/=255;e/=255;bo/=255;}var bn=h(d,e,bo),i=a2(d,e,bo),R,E,S=bn;if(i==bn){return{h:0,s:0,b:bn};}else{var bp=(bn-i);E=bp/bn;if(d==bn){R=(e-bo)/bp;}else{if(e==bn){R=2+((bo-d)/bp);}else{R=4+((d-e)/bp);}}R/=6;R<0&&R++;R>1&&R--;}return{h:R,s:E,b:S,toString:au};},az);var aW=/,?([achlmqrstvxz]),?/gi,aY=/\s*,\s*/,j={hs:1,rg:1};az._path2string=function(){return this.join(",")[ba](aW,"$1");};function at(E,e,d){function i(){var R=Array[bk].slice.call(arguments,0),bn=R[aM]("\u25ba"),S=i.cache=i.cache||{},bo=i.count=i.count||[];if(S[ab](bn)){return d?d(S[bn]):S[bn];}bo[o]>=1000&&delete S[bo.shift()];bo[f](bn);S[bn]=E[bi](e,R);return d?d(S[bn]):S[bn];}return i;}az.getRGB=at(function(e){if(!e||!!((e=e+aF).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"};}!(j[ab](e.substring(0,2))||e.charAt()=="#")&&(e=aV(e));var bn,i,E,bq,S,br,bo=e.match(C);if(bo){if(bo[2]){bq=N(bo[2].substring(5),16);E=N(bo[2].substring(3,5),16);i=N(bo[2].substring(1,3),16);}if(bo[3]){bq=N((br=bo[3].charAt(3))+br,16);E=N((br=bo[3].charAt(2))+br,16);i=N((br=bo[3].charAt(1))+br,16);}if(bo[4]){bo=bo[4][F](aY);i=ae(bo[0]);E=ae(bo[1]);bq=ae(bo[2]);S=ae(bo[3]);}if(bo[5]){bo=bo[5][F](aY);i=ae(bo[0])*2.55;E=ae(bo[1])*2.55;bq=ae(bo[2])*2.55;S=ae(bo[3]);}if(bo[6]){bo=bo[6][F](aY);i=ae(bo[0]);E=ae(bo[1]);bq=ae(bo[2]);return az.hsb2rgb(i,E,bq);}if(bo[7]){bo=bo[7][F](aY);i=ae(bo[0])*2.55;E=ae(bo[1])*2.55;bq=ae(bo[2])*2.55;return az.hsb2rgb(i,E,bq);}bo={r:i,g:E,b:bq};var d=(~~i)[aO](16),R=(~~E)[aO](16),bp=(~~bq)[aO](16);d=d[ba](bg,"0");R=R[ba](bg,"0");bp=bp[ba](bg,"0");bo.hex="#"+d+R+bp;isFinite(ae(S))&&(bo.o=S);return bo;}return{r:-1,g:-1,b:-1,hex:"none",error:1};},az);az.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;};az.getColor.reset=function(){delete this.start;};var aH=/([achlmqstvz])[\s,]*((-?\d*\.?\d*(?:e[-+]?\d+)?\s*,?\s*)+)/ig,ax=/(-?\d*\.?\d*(?:e[-+]?\d+)?)\s*,?\s*/ig;az.parsePathString=at(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(az.is(d,aU)&&az.is(d[0],aU)){e=aI(d);}if(!e[o]){(d+aF)[ba](aH,function(R,E,bo){var bn=[],S=bm.call(E);bo[ba](ax,function(bq,bp){bp&&bn[f](+bp);});if(S=="m"&&bn[o]>2){e[f]([E][bd](bn.splice(0,2)));S="l";E=E=="m"?"l":"L";}while(bn[o]>=i[S]){e[f]([E][bd](bn.splice(0,i[S])));if(!i[S]){break;}}});}e[aO]=az._path2string;return e;});az.findDotsAtSegment=function(e,d,bB,bz,bn,R,bp,bo,bv){var bt=1-bv,bs=a5(bt,3)*e+a5(bt,2)*3*bv*bB+bt*3*bv*bv*bn+a5(bv,3)*bp,bq=a5(bt,3)*d+a5(bt,2)*3*bv*bz+bt*3*bv*bv*R+a5(bv,3)*bo,bx=e+2*bv*(bB-e)+bv*bv*(bn-2*bB+e),bw=d+2*bv*(bz-d)+bv*bv*(R-2*bz+d),bA=bB+2*bv*(bn-bB)+bv*bv*(bp-2*bn+bB),by=bz+2*bv*(R-bz)+bv*bv*(bo-2*R+bz),bu=(1-bv)*e+bv*bB,br=(1-bv)*d+bv*bz,E=(1-bv)*bn+bv*bp,i=(1-bv)*R+bv*bo,S=(90-aj.atan((bx-bA)/(bw-by))*180/aj.PI);(bx>bA||bw<by)&&(S+=180);return{x:bs,y:bq,m:{x:bx,y:bw},n:{x:bA,y:by},start:{x:bu,y:br},end:{x:E,y:i},alpha:S};};var ad=at(function(bs){if(!bs){return{x:0,y:0,width:0,height:0};}bs=O(bs);var bp=0,bo=0,R=[],e=[],E;for(var S=0,br=bs[o];S<br;S++){E=bs[S];if(E[0]=="M"){bp=E[1];bo=E[2];R[f](bp);e[f](bo);}else{var bn=aT(bp,bo,E[1],E[2],E[3],E[4],E[5],E[6]);R=R[bd](bn.min.x,bn.max.x);e=e[bd](bn.min.y,bn.max.y);bp=E[5];bo=E[6];}}var d=a2[bi](0,R),bq=a2[bi](0,e);return{x:d,y:bq,width:h[bi](0,R)-d,height:h[bi](0,e)-bq};}),aI=function(bn){var E=[];if(!az.is(bn,aU)||!az.is(bn&&bn[0],aU)){bn=az.parsePathString(bn);}for(var e=0,R=bn[o];e<R;e++){E[e]=[];for(var d=0,S=bn[e][o];d<S;d++){E[e][d]=bn[e][d];}}E[aO]=az._path2string;return E;},am=at(function(R){if(!az.is(R,aU)||!az.is(R&&R[0],aU)){R=az.parsePathString(R);}var br=[],bt=0,bs=0,bw=0,bv=0,E=0;if(R[0][0]=="M"){bt=R[0][1];bs=R[0][2];bw=bt;bv=bs;E++;br[f](["M",bt,bs]);}for(var bo=E,bx=R[o];bo<bx;bo++){var d=br[bo]=[],bu=R[bo];if(bu[0]!=bm.call(bu[0])){d[0]=bm.call(bu[0]);switch(d[0]){case"a":d[1]=bu[1];d[2]=bu[2];d[3]=bu[3];d[4]=bu[4];d[5]=bu[5];d[6]=+(bu[6]-bt).toFixed(3);d[7]=+(bu[7]-bs).toFixed(3);break;case"v":d[1]=+(bu[1]-bs).toFixed(3);break;case"m":bw=bu[1];bv=bu[2];default:for(var bn=1,bp=bu[o];bn<bp;bn++){d[bn]=+(bu[bn]-((bn%2)?bt:bs)).toFixed(3);}}}else{d=br[bo]=[];if(bu[0]=="m"){bw=bu[1]+bt;bv=bu[2]+bs;}for(var S=0,e=bu[o];S<e;S++){br[bo][S]=bu[S];}}var bq=br[bo][o];switch(br[bo][0]){case"z":bt=bw;bs=bv;break;case"h":bt+=+br[bo][bq-1];break;case"v":bs+=+br[bo][bq-1];break;default:bt+=+br[bo][bq-2];bs+=+br[bo][bq-1];}}br[aO]=az._path2string;return br;},0,aI),v=at(function(R){if(!az.is(R,aU)||!az.is(R&&R[0],aU)){R=az.parsePathString(R);}var bq=[],bs=0,br=0,bv=0,bu=0,E=0;if(R[0][0]=="M"){bs=+R[0][1];br=+R[0][2];bv=bs;bu=br;E++;bq[0]=["M",bs,br];}for(var bo=E,bw=R[o];bo<bw;bo++){var d=bq[bo]=[],bt=R[bo];if(bt[0]!=a7.call(bt[0])){d[0]=a7.call(bt[0]);switch(d[0]){case"A":d[1]=bt[1];d[2]=bt[2];d[3]=bt[3];d[4]=bt[4];d[5]=bt[5];d[6]=+(bt[6]+bs);d[7]=+(bt[7]+br);break;case"V":d[1]=+bt[1]+br;break;case"H":d[1]=+bt[1]+bs;break;case"M":bv=+bt[1]+bs;bu=+bt[2]+br;default:for(var bn=1,bp=bt[o];bn<bp;bn++){d[bn]=+bt[bn]+((bn%2)?bs:br);}}}else{for(var S=0,e=bt[o];S<e;S++){bq[bo][S]=bt[S];}}switch(d[0]){case"Z":bs=bv;br=bu;break;case"H":bs=d[1];break;case"V":br=d[1];break;default:bs=bq[bo][bq[bo][o]-2];br=bq[bo][bq[bo][o]-1];}}bq[aO]=az._path2string;return bq;},null,aI),bj=function(e,E,d,i){return[e,E,d,i,d,i];},a3=function(e,E,bn,R,d,i){var S=1/3,bo=2/3;return[S*e+bo*bn,S*E+bo*R,S*d+bo*bn,S*i+bo*R,d,i];},U=function(bw,b1,bF,bD,bx,br,S,bv,b0,by){var R=aj.PI,bC=R*120/180,d=R/180*(+bx||0),bJ=[],bG,bX=at(function(b2,b5,i){var b4=b2*aj.cos(i)-b5*aj.sin(i),b3=b2*aj.sin(i)+b5*aj.cos(i);return{x:b4,y:b3};});if(!by){bG=bX(bw,b1,-d);bw=bG.x;b1=bG.y;bG=bX(bv,b0,-d);bv=bG.x;b0=bG.y;var e=aj.cos(R/180*bx),bt=aj.sin(R/180*bx),bL=(bw-bv)/2,bK=(b1-b0)/2;var bV=(bL*bL)/(bF*bF)+(bK*bK)/(bD*bD);if(bV>1){bV=aj.sqrt(bV);bF=bV*bF;bD=bV*bD;}var E=bF*bF,bO=bD*bD,bQ=(br==S?-1:1)*aj.sqrt(aj.abs((E*bO-E*bK*bK-bO*bL*bL)/(E*bK*bK+bO*bL*bL))),bA=bQ*bF*bK/bD+(bw+bv)/2,bz=bQ*-bD*bL/bF+(b1+b0)/2,bq=aj.asin(((b1-bz)/bD).toFixed(7)),bp=aj.asin(((b0-bz)/bD).toFixed(7));bq=bw<bA?R-bq:bq;bp=bv<bA?R-bp:bp;bq<0&&(bq=R*2+bq);bp<0&&(bp=R*2+bp);if(S&&bq>bp){bq=bq-R*2;}if(!S&&bp>bq){bp=bp-R*2;}}else{bq=by[0];bp=by[1];bA=by[2];bz=by[3];}var bu=bp-bq;if(aj.abs(bu)>bC){var bB=bp,bE=bv,bs=b0;bp=bq+bC*(S&&bp>bq?1:-1);bv=bA+bF*aj.cos(bp);b0=bz+bD*aj.sin(bp);bJ=U(bv,b0,bF,bD,bx,0,S,bE,bs,[bp,bB,bA,bz]);}bu=bp-bq;var bo=aj.cos(bq),bZ=aj.sin(bq),bn=aj.cos(bp),bY=aj.sin(bp),bM=aj.tan(bu/4),bP=4/3*bF*bM,bN=4/3*bD*bM,bW=[bw,b1],bU=[bw+bP*bZ,b1-bN*bo],bT=[bv+bP*bY,b0-bN*bn],bR=[bv,b0];bU[0]=2*bW[0]-bU[0];bU[1]=2*bW[1]-bU[1];if(by){return[bU,bT,bR][bd](bJ);}else{bJ=[bU,bT,bR][bd](bJ)[aM]()[F](",");var bH=[];for(var bS=0,bI=bJ[o];bS<bI;bS++){bH[bS]=bS%2?bX(bJ[bS-1],bJ[bS],d).y:bX(bJ[bS],bJ[bS+1],d).x;}return bH;}},X=function(e,d,E,i,bp,bo,bn,S,bq){var R=1-bq;return{x:a5(R,3)*e+a5(R,2)*3*bq*E+R*3*bq*bq*bp+a5(bq,3)*bn,y:a5(R,3)*d+a5(R,2)*3*bq*i+R*3*bq*bq*bo+a5(bq,3)*S};},aT=at(function(i,d,R,E,bw,bv,bs,bp){var bu=(bw-2*R+i)-(bs-2*bw+R),br=2*(R-i)-2*(bw-R),bo=i-R,bn=(-br+aj.sqrt(br*br-4*bu*bo))/2/bu,S=(-br-aj.sqrt(br*br-4*bu*bo))/2/bu,bq=[d,bp],bt=[i,bs],e;aj.abs(bn)>1000000000000&&(bn=0.5);aj.abs(S)>1000000000000&&(S=0.5);if(bn>0&&bn<1){e=X(i,d,R,E,bw,bv,bs,bp,bn);bt[f](e.x);bq[f](e.y);}if(S>0&&S<1){e=X(i,d,R,E,bw,bv,bs,bp,S);bt[f](e.x);bq[f](e.y);}bu=(bv-2*E+d)-(bp-2*bv+E);br=2*(E-d)-2*(bv-E);bo=d-E;bn=(-br+aj.sqrt(br*br-4*bu*bo))/2/bu;S=(-br-aj.sqrt(br*br-4*bu*bo))/2/bu;aj.abs(bn)>1000000000000&&(bn=0.5);aj.abs(S)>1000000000000&&(S=0.5);if(bn>0&&bn<1){e=X(i,d,R,E,bw,bv,bs,bp,bn);bt[f](e.x);bq[f](e.y);}if(S>0&&S<1){e=X(i,d,R,E,bw,bv,bs,bp,S);bt[f](e.x);bq[f](e.y);}return{min:{x:a2[bi](0,bt),y:a2[bi](0,bq)},max:{x:h[bi](0,bt),y:h[bi](0,bq)}};}),O=at(function(bw,br){var R=v(bw),bs=br&&v(br),bt={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},bn=function(bx,by){var i,bz;if(!bx){return["C",by.x,by.y,by.x,by.y,by.x,by.y];}!(bx[0] in {T:1,Q:1})&&(by.qx=by.qy=null);switch(bx[0]){case"M":by.X=bx[1];by.Y=bx[2];break;case"A":bx=["C"][bd](U[bi](0,[by.x,by.y][bd](bx.slice(1))));break;case"S":i=by.x+(by.x-(by.bx||by.x));bz=by.y+(by.y-(by.by||by.y));bx=["C",i,bz][bd](bx.slice(1));break;case"T":by.qx=by.x+(by.x-(by.qx||by.x));by.qy=by.y+(by.y-(by.qy||by.y));bx=["C"][bd](a3(by.x,by.y,by.qx,by.qy,bx[1],bx[2]));break;case"Q":by.qx=bx[1];by.qy=bx[2];bx=["C"][bd](a3(by.x,by.y,bx[1],bx[2],bx[3],bx[4]));break;case"L":bx=["C"][bd](bj(by.x,by.y,bx[1],bx[2]));break;case"H":bx=["C"][bd](bj(by.x,by.y,bx[1],by.y));break;case"V":bx=["C"][bd](bj(by.x,by.y,by.x,bx[1]));break;case"Z":bx=["C"][bd](bj(by.x,by.y,by.X,by.Y));break;}return bx;},e=function(bx,by){if(bx[by][o]>7){bx[by].shift();var bz=bx[by];while(bz[o]){bx.splice(by++,0,["C"][bd](bz.splice(0,6)));}bx.splice(by,1);bu=h(R[o],bs&&bs[o]||0);}},E=function(bB,bA,by,bx,bz){if(bB&&bA&&bB[bz][0]=="M"&&bA[bz][0]!="M"){bA.splice(bz,0,["M",bx.x,bx.y]);by.bx=0;by.by=0;by.x=bB[bz][1];by.y=bB[bz][2];bu=h(R[o],bs&&bs[o]||0);}};for(var bp=0,bu=h(R[o],bs&&bs[o]||0);bp<bu;bp++){R[bp]=bn(R[bp],bt);e(R,bp);bs&&(bs[bp]=bn(bs[bp],d));bs&&e(bs,bp);E(R,bs,bt,d,bp);E(bs,R,d,bt,bp);var bo=R[bp],bv=bs&&bs[bp],S=bo[o],bq=bs&&bv[o];bt.x=bo[S-2];bt.y=bo[S-1];bt.bx=ae(bo[S-4])||bt.x;bt.by=ae(bo[S-3])||bt.y;d.bx=bs&&(ae(bv[bq-4])||d.x);d.by=bs&&(ae(bv[bq-3])||d.y);d.x=bs&&bv[bq-2];d.y=bs&&bv[bq-1];}return bs?[R,bs]:R;},null,aI),t=at(function(br){var bq=[];for(var bn=0,bs=br[o];bn<bs;bn++){var e={},bp=br[bn].match(/^([^:]*):?([\d\.]*)/);e.color=az.getRGB(bp[1]);if(e.color.error){return null;}e.color=e.color.hex;bp[2]&&(e.offset=bp[2]+"%");bq[f](e);}for(bn=1,bs=bq[o]-1;bn<bs;bn++){if(!bq[bn].offset){var E=ae(bq[bn-1].offset||0),R=0;for(var S=bn+1;S<bs;S++){if(bq[S].offset){R=bq[S].offset;break;}}if(!R){R=100;S=bs;}R=ae(R);var bo=(R-E)/(S-bn+1);for(;bn<S;bn++){E+=bo;bq[bn].offset=E+"%";}}}return bq;}),aA=function(d,R,i,E){var e;if(az.is(d,aa)||az.is(d,"object")){e=az.is(d,aa)?V.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};}},aZ=function(d,i){var e=this;for(var E in i){if(i[ab](E)&&!(E in d)){switch(typeof i[E]){case"function":(function(R){d[E]=d===e?R:function(){return R[bi](e,arguments);};})(i[E]);break;case"object":d[E]=d[E]||{};aZ.call(this,d[E],i[E]);break;default:d[E]=i[E];break;}}}},av=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);},ag=function(d,e){if(e.top===d){return;}av(d,e);d.next=null;d.prev=e.top;e.top.next=d;e.top=d;},m=function(d,e){if(e.bottom===d){return;}av(d,e);d.next=e.bottom;d.prev=null;e.bottom.prev=d;e.bottom=d;},G=function(e,d,i){av(e,i);d==i.top&&(i.top=e);d.next&&(d.next.prev=e);e.next=d.next;e.prev=d;d.next=e;},aC=function(e,d,i){av(e,i);d==i.bottom&&(i.bottom=e);d.prev&&(d.prev.next=e);e.prev=d.prev;d.prev=e;e.next=d;},w=function(d){return function(){throw new Error("Rapha\xebl: you are calling to method \u201c"+d+"\u201d of removed object");};},aE=/^r(?:\(([^,]+?)\s*,\s*([^\)]+?)\))?/;if(az.svg){bf[bk].svgns="http://www.w3.org/2000/svg";bf[bk].xlink="http://www.w3.org/1999/xlink";Y=function(d){return +d+(~~d===d)*0.5;};var a1=function(i,d){if(d){for(var e in d){if(d[ab](e)){i[A](e,d[e]+aF);}}}else{i=V.createElementNS(bf[bk].svgns,i);i.style.webkitTapHighlightColor="rgba(0,0,0,0)";return i;}};az[aO]=function(){return"Your browser supports SVG.\nYou are running Rapha\xebl "+this.version;};var u=function(d,E){var e=a1("path");E.canvas&&E.canvas[a4](e);var i=new aK(e,E);i.type="path";ai(i,{fill:"none",stroke:"#000",path:d});return i;};var b=function(R,bv,d){var bs="linear",bp=0.5,bn=0.5,bx=R.style;bv=(bv+aF)[ba](aE,function(bz,i,bA){bs="radial";if(i&&bA){bp=ae(i);bn=ae(bA);var by=((bn>0.5)*2-1);a5(bp-0.5,2)+a5(bn-0.5,2)>0.25&&(bn=aj.sqrt(0.25-a5(bp-0.5,2))*by+0.5)&&bn!=0.5&&(bn=bn.toFixed(5)-0.00001*by);}return aF;});bv=bv[F](/\s*\-\s*/);if(bs=="linear"){var bo=bv.shift();bo=-ae(bo);if(isNaN(bo)){return null;}var S=[0,0,aj.cos(bo*aj.PI/180),aj.sin(bo*aj.PI/180)],bu=1/(h(aj.abs(S[2]),aj.abs(S[3]))||1);S[2]*=bu;S[3]*=bu;if(S[2]<0){S[0]=-S[2];S[2]=0;}if(S[3]<0){S[1]=-S[3];S[3]=0;}}var br=t(bv);if(!br){return null;}var e=R.getAttribute(aR);e=e.match(/^url\(#(.*)\)$/);e&&d.defs.removeChild(V.getElementById(e[1]));var E=a1(bs+"Gradient");E.id="r"+(az._id++)[aO](36);a1(E,bs=="radial"?{fx:bp,fy:bn}:{x1:S[0],y1:S[1],x2:S[2],y2:S[3]});d.defs[a4](E);for(var bq=0,bw=br[o];bq<bw;bq++){var bt=a1("stop");a1(bt,{offset:br[bq].offset?br[bq].offset:!bq?"0%":"100%","stop-color":br[bq].color||"#fff"});E[a4](bt);}a1(R,{fill:"url(#"+E.id+")",opacity:1,"fill-opacity":1});bx.fill=aF;bx.opacity=1;bx.fillOpacity=1;return 1;};var W=function(e){var d=e.getBBox();a1(e.pattern,{patternTransform:az.format("translate({0},{1})",d.x,d.y)});};var ai=function(bu,bD){var bx={"":[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]},bz=bu.node,bv=bu.attrs,br=bu.rotate(),bn=function(bK,bJ){bJ=bx[bm.call(bJ)];if(bJ){var bH=bK.attrs["stroke-width"]||"1",bF={round:bH,square:bH,butt:0}[bK.attrs["stroke-linecap"]||bD["stroke-linecap"]]||0,bI=[];var bG=bJ[o];while(bG--){bI[bG]=bJ[bG]*bH+((bG%2)?1:-1)*bF;}a1(bz,{"stroke-dasharray":bI[aM](",")});}};bD[ab]("rotation")&&(br=bD.rotation);var bq=(br+aF)[F](a);if(!(bq.length-1)){bq=null;}else{bq[1]=+bq[1];bq[2]=+bq[2];}ae(br)&&bu.rotate(0,true);for(var by in bD){if(bD[ab](by)){if(!l[ab](by)){continue;}var bw=bD[by];bv[by]=bw;switch(by){case"blur":bu.blur(bw);break;case"rotation":bu.rotate(bw,true);break;case"href":case"title":case"target":var bB=bz.parentNode;if(bm.call(bB.tagName)!="a"){var R=a1("a");bB.insertBefore(R,bz);R[a4](bz);bB=R;}bB.setAttributeNS(bu.paper.xlink,by,bw);break;case"cursor":bz.style.cursor=bw;break;case"clip-rect":var e=(bw+aF)[F](a);if(e[o]==4){bu.clip&&bu.clip.parentNode.parentNode.removeChild(bu.clip.parentNode);var i=a1("clipPath"),bA=a1("rect");i.id="r"+(az._id++)[aO](36);a1(bA,{x:e[0],y:e[1],width:e[2],height:e[3]});i[a4](bA);bu.paper.defs[a4](i);a1(bz,{"clip-path":"url(#"+i.id+")"});bu.clip=bA;}if(!bw){var bC=V.getElementById(bz.getAttribute("clip-path")[ba](/(^url\(#|\)$)/g,aF));bC&&bC.parentNode.removeChild(bC);a1(bz,{"clip-path":aF});delete bu.clip;}break;case"path":if(bu.type=="path"){a1(bz,{d:bw?bv.path=v(bw):"M0,0"});}break;case"width":bz[A](by,bw);if(bv.fx){by="x";bw=bv.x;}else{break;}case"x":if(bv.fx){bw=-bv.x-(bv.width||0);}case"rx":if(by=="rx"&&bu.type=="rect"){break;}case"cx":bq&&(by=="x"||by=="cx")&&(bq[1]+=bw-bv[by]);bz[A](by,Y(bw));bu.pattern&&W(bu);break;case"height":bz[A](by,bw);if(bv.fy){by="y";bw=bv.y;}else{break;}case"y":if(bv.fy){bw=-bv.y-(bv.height||0);}case"ry":if(by=="ry"&&bu.type=="rect"){break;}case"cy":bq&&(by=="y"||by=="cy")&&(bq[2]+=bw-bv[by]);bz[A](by,Y(bw));bu.pattern&&W(bu);break;case"r":if(bu.type=="rect"){a1(bz,{rx:bw,ry:bw});}else{bz[A](by,bw);}break;case"src":if(bu.type=="image"){bz.setAttributeNS(bu.paper.xlink,"href",bw);}break;case"stroke-width":bz.style.strokeWidth=bw;bz[A](by,bw);if(bv["stroke-dasharray"]){bn(bu,bv["stroke-dasharray"]);}break;case"stroke-dasharray":bn(bu,bw);break;case"translation":var bo=(bw+aF)[F](a);bo[0]=+bo[0]||0;bo[1]=+bo[1]||0;if(bq){bq[1]+=bo[0];bq[2]+=bo[1];}x.call(bu,bo[0],bo[1]);break;case"scale":bo=(bw+aF)[F](a);bu.scale(+bo[0]||1,+bo[1]||+bo[0]||1,isNaN(ae(bo[2]))?null:+bo[2],isNaN(ae(bo[3]))?null:+bo[3]);break;case aR:var S=(bw+aF).match(c);if(S){i=a1("pattern");var bt=a1("image");i.id="r"+(az._id++)[aO](36);a1(i,{x:0,y:0,patternUnits:"userSpaceOnUse",height:1,width:1});a1(bt,{x:0,y:0});bt.setAttributeNS(bu.paper.xlink,"href",S[1]);i[a4](bt);var bE=V.createElement("img");bE.style.cssText="position:absolute;left:-9999em;top-9999em";bE.onload=function(){a1(i,{width:this.offsetWidth,height:this.offsetHeight});a1(bt,{width:this.offsetWidth,height:this.offsetHeight});V.body.removeChild(this);bu.paper.safari();};V.body[a4](bE);bE.src=S[1];bu.paper.defs[a4](i);bz.style.fill="url(#"+i.id+")";a1(bz,{fill:"url(#"+i.id+")"});bu.pattern=i;bu.pattern&&W(bu);break;}var E=az.getRGB(bw);if(!E.error){delete bD.gradient;delete bv.gradient;!az.is(bv.opacity,"undefined")&&az.is(bD.opacity,"undefined")&&a1(bz,{opacity:bv.opacity});!az.is(bv["fill-opacity"],"undefined")&&az.is(bD["fill-opacity"],"undefined")&&a1(bz,{"fill-opacity":bv["fill-opacity"]});}else{if((({circle:1,ellipse:1})[ab](bu.type)||(bw+aF).charAt()!="r")&&b(bz,bw,bu.paper)){bv.gradient=bw;bv.fill="none";break;}}E[ab]("o")&&a1(bz,{"fill-opacity":E.o/100});case"stroke":E=az.getRGB(bw);bz[A](by,E.hex);by=="stroke"&&E[ab]("o")&&a1(bz,{"stroke-opacity":E.o/100});break;case"gradient":(({circle:1,ellipse:1})[ab](bu.type)||(bw+aF).charAt()!="r")&&b(bz,bw,bu.paper);break;case"opacity":case"fill-opacity":if(bv.gradient){var d=V.getElementById(bz.getAttribute(aR)[ba](/^url\(#|\)$/g,aF));if(d){var bp=d.getElementsByTagName("stop");bp[bp[o]-1][A]("stop-opacity",bw);}break;}default:by=="font-size"&&(bw=N(bw,10)+"px");var bs=by[ba](/(\-.)/g,function(bF){return a7.call(bF.substring(1));});bz.style[bs]=bw;bz[A](by,bw);break;}}}L(bu,bD);if(bq){bu.rotate(bq.join(ay));}else{ae(br)&&bu.rotate(br,true);}};var k=1.2,L=function(d,R){if(d.type!="text"||!(R[ab]("text")||R[ab]("font")||R[ab]("font-size")||R[ab]("x")||R[ab]("y"))){return;}var bq=d.attrs,e=d.node,bs=e.firstChild?N(V.defaultView.getComputedStyle(e.firstChild,aF).getPropertyValue("font-size"),10):10;if(R[ab]("text")){bq.text=R.text;while(e.firstChild){e.removeChild(e.firstChild);}var E=(R.text+aF)[F]("\n");for(var S=0,br=E[o];S<br;S++){if(E[S]){var bo=a1("tspan");S&&a1(bo,{dy:bs*k,x:bq.x});bo[a4](V.createTextNode(E[S]));e[a4](bo);}}}else{E=e.getElementsByTagName("tspan");for(S=0,br=E[o];S<br;S++){S&&a1(E[S],{dy:bs*k,x:bq.x});}}a1(e,{y:bq.y});var bn=d.getBBox(),bp=bq.y-(bn.y+bn.height/2);bp&&isFinite(bp)&&a1(e,{y:bq.y+bp});},aK=function(e,d){var E=0,i=0;this[0]=e;this.id=az._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;};aK[bk].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][aM](ay);}return this._.rt.deg;}var i=this.getBBox();e=(e+aF)[F](a);if(e[o]-1){d=ae(e[1]);E=ae(e[2]);}e=ae(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]=az.format("rotate({0} {1} {2})",this._.rt.deg,d,E);this.clip&&a1(this.clip,{transform:az.format("rotate({0} {1} {2})",-this._.rt.deg,d,E)});}else{this.transformations[0]=aF;this.clip&&a1(this.clip,{transform:aF});}a1(this.node,{transform:this.transformations[aM](ay)});return this;};aK[bk].hide=function(){!this.removed&&(this.node.style.display="none");return this;};aK[bk].show=function(){!this.removed&&(this.node.style.display="");return this;};aK[bk].remove=function(){if(this.removed){return;}av(this,this.paper);this.node.parentNode.removeChild(this.node);for(var d in this){delete this[d];}this.removed=true;};aK[bk].getBBox=function(){if(this.removed){return this;}if(this.type=="path"){return ad(this.attrs.path);}if(this.node.style.display=="none"){this.show();var E=true;}var bo={};try{bo=this.node.getBBox();}catch(S){}finally{bo=bo||{};}if(this.type=="text"){bo={x:bo.x,y:Infinity,width:0,height:0};for(var d=0,R=this.node.getNumberOfChars();d<R;d++){var bn=this.node.getExtentOfChar(d);(bn.y<bo.y)&&(bo.y=bn.y);(bn.y+bn.height-bo.y>bo.height)&&(bo.height=bn.y+bn.height-bo.y);(bn.x+bn.width-bo.x>bo.width)&&(bo.width=bn.x+bn.width-bo.x);}}E&&this.hide();return bo;};aK[bk].attr=function(E,bo){if(this.removed){return this;}if(E==null){var S={};for(var R in this.attrs){if(this.attrs[ab](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(bo==null&&az.is(E,aa)){if(E=="translation"){return x.call(this);}if(E=="rotation"){return this.rotate();}if(E=="scale"){return this.scale();}if(E==aR&&this.attrs.fill=="none"&&this.attrs.gradient){return this.attrs.gradient;}return this.attrs[E];}if(bo==null&&az.is(E,aU)){var d={};for(var e=0,bn=E.length;e<bn;e++){d[E[e]]=this.attr(E[e]);}return d;}if(bo!=null){var bp={};bp[E]=bo;ai(this,bp);}else{if(E!=null&&az.is(E,"object")){ai(this,E);}}return this;};aK[bk].toFront=function(){if(this.removed){return this;}this.node.parentNode[a4](this.node);var d=this.paper;d.top!=this&&ag(this,d);return this;};aK[bk].toBack=function(){if(this.removed){return this;}if(this.node.parentNode.firstChild!=this.node){this.node.parentNode.insertBefore(this.node,this.node.parentNode.firstChild);m(this,this.paper);var d=this.paper;}return this;};aK[bk].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[a4](this.node);}G(this,d,this.paper);return this;};aK[bk].insertBefore=function(d){if(this.removed){return this;}var e=d.node;e.parentNode.insertBefore(this.node,e);aC(this,d,this.paper);return this;};aK[bk].blur=function(e){var d=this;if(+e!==0){var i=a1("filter"),E=a1("feGaussianBlur");d.attrs.blur=e;i.id="r"+(az._id++)[aO](36);a1(E,{stdDeviation:+e||1.5});i.appendChild(E);d.paper.defs.appendChild(i);d._blur=i;a1(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 Z=function(e,d,S,R){d=Y(d);S=Y(S);var E=a1("circle");e.canvas&&e.canvas[a4](E);var i=new aK(E,e);i.attrs={cx:d,cy:S,r:R,fill:"none",stroke:"#000"};i.type="circle";a1(E,i.attrs);return i;};var aX=function(i,d,bo,e,S,bn){d=Y(d);bo=Y(bo);var R=a1("rect");i.canvas&&i.canvas[a4](R);var E=new aK(R,i);E.attrs={x:d,y:bo,width:e,height:S,r:bn||0,rx:bn||0,ry:bn||0,fill:"none",stroke:"#000"};E.type="rect";a1(R,E.attrs);return E;};var ar=function(e,d,bn,S,R){d=Y(d);bn=Y(bn);var E=a1("ellipse");e.canvas&&e.canvas[a4](E);var i=new aK(E,e);i.attrs={cx:d,cy:bn,rx:S,ry:R,fill:"none",stroke:"#000"};i.type="ellipse";a1(E,i.attrs);return i;};var s=function(i,bn,d,bo,e,S){var R=a1("image");a1(R,{x:d,y:bo,width:e,height:S,preserveAspectRatio:"none"});R.setAttributeNS(i.xlink,"href",bn);i.canvas&&i.canvas[a4](R);var E=new aK(R,i);E.attrs={x:d,y:bo,width:e,height:S,src:bn};E.type="image";return E;};var af=function(e,d,S,R){var E=a1("text");a1(E,{x:d,y:S,"text-anchor":"middle"});e.canvas&&e.canvas[a4](E);var i=new aK(E,e);i.attrs={x:d,y:S,"text-anchor":"middle",text:R,font:l.font,stroke:"none",fill:"#000"};i.type="text";ai(i,i.attrs);return i;};var bh=function(e,d){this.width=e||this.width;this.height=d||this.height;this.canvas[A]("width",this.width);this.canvas[A]("height",this.height);return this;};var B=function(){var E=aA[bi](0,arguments),i=E&&E.container,e=E.x,bn=E.y,R=E.width,d=E.height;if(!i){throw new Error("SVG container not found.");}var S=a1("svg");e=e||0;bn=bn||0;R=R||512;d=d||342;a1(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:"+bn+"px";V.body[a4](S);}else{if(i.firstChild){i.insertBefore(S,i.firstChild);}else{i[a4](S);}}i=new bf;i.width=R;i.height=d;i.canvas=S;aZ.call(i,i,az.fn);i.clear();return i;};bf[bk].clear=function(){var d=this.canvas;while(d.firstChild){d.removeChild(d.firstChild);}this.bottom=this.top=null;(this.desc=a1("desc"))[a4](V.createTextNode("Created with Rapha\xebl"));d[a4](this.desc);d[a4](this.defs=a1("defs"));};bf[bk].remove=function(){this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas);for(var d in this){this[d]=w(d);}};}if(az.vml){var J={M:"m",L:"l",C:"c",Z:"x",m:"t",l:"r",c:"v",z:"x"},aD=/([clmz]),?([^clmz]*)/gi,bl=/-?[^,\s-]+/g,aN=1000+ay+1000,r=10,p={path:1,rect:1},a0=function(bs){var bp=/[ahqstv]/ig,E=v;(bs+aF).match(bp)&&(E=O);bp=/[clmz]/g;if(E==v&&!(bs+aF).match(bp)){var bo=(bs+aF)[ba](aD,function(bv,bx,bt){var bw=[],i=bm.call(bx)=="m",bu=J[bx];bt[ba](bl,function(by){if(i&&bw[o]==2){bu+=bw+J[bx=="m"?"l":"L"];bw=[];}bw[f](Y(by*r));});return bu+bw;});return bo;}var bq=E(bs),e,d;bo=[];for(var S=0,br=bq[o];S<br;S++){e=bq[S];d=bm.call(bq[S][0]);d=="z"&&(d="x");for(var R=1,bn=e[o];R<bn;R++){d+=Y(e[R]*r)+(R!=bn-1?",":aF);}bo[f](d);}return bo[aM](ay);};az[aO]=function(){return"Your browser doesn\u2019t support SVG. Falling down to VML.\nYou are running Rapha\xebl "+this.version;};u=function(i,e){var S=aq("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=aq("shape"),E=R.style;E.width=e.width+"px";E.height=e.height+"px";R.coordsize=aN;R.coordorigin=e.coordorigin;S[a4](R);var bn=new aK(R,S,e),d={fill:"none",stroke:"#000"};i&&(d.path=i);bn.isAbsolute=true;bn.type="path";bn.path=[];bn.Path=aF;ai(bn,d);e.canvas[a4](S);return bn;};ai=function(bq,bx){bq.attrs=bq.attrs||{};var bu=bq.node,by=bq.attrs,bn=bu.style,E,bw=(bx.x!=by.x||bx.y!=by.y||bx.width!=by.width||bx.height!=by.height||bx.r!=by.r)&&bq.type=="rect",bC=bq;for(var bo in bx){if(bx[ab](bo)){by[bo]=bx[bo];}}if(bw){by.path=al(by.x,by.y,by.width,by.height,by.r);bq.X=by.x;bq.Y=by.y;bq.W=by.width;bq.H=by.height;}bx.href&&(bu.href=bx.href);bx.title&&(bu.title=bx.title);bx.target&&(bu.target=bx.target);bx.cursor&&(bn.cursor=bx.cursor);"blur" in bx&&bq.blur(bx.blur);if(bx.path&&bq.type=="path"||bw){bu.path=a0(by.path);}if(bx.rotation!=null){bq.rotate(bx.rotation,true);}if(bx.translation){E=(bx.translation+aF)[F](a);x.call(bq,E[0],E[1]);if(bq._.rt.cx!=null){bq._.rt.cx+=+E[0];bq._.rt.cy+=+E[1];bq.setBox(bq.attrs,E[0],E[1]);}}if(bx.scale){E=(bx.scale+aF)[F](a);bq.scale(+E[0]||1,+E[1]||+E[0]||1,+E[2]||null,+E[3]||null);}if("clip-rect" in bx){var d=(bx["clip-rect"]+aF)[F](a);if(d[o]==4){d[2]=+d[2]+(+d[0]);d[3]=+d[3]+(+d[1]);var bp=bu.clipRect||V.createElement("div"),bB=bp.style,S=bu.parentNode;bB.clip=az.format("rect({1}px {2}px {3}px {0}px)",d);if(!bu.clipRect){bB.position="absolute";bB.top=0;bB.left=0;bB.width=bq.paper.width+"px";bB.height=bq.paper.height+"px";S.parentNode.insertBefore(bp,S);bp[a4](S);bu.clipRect=bp;}}if(!bx["clip-rect"]){bu.clipRect&&(bu.clipRect.style.clip=aF);}}if(bq.type=="image"&&bx.src){bu.src=bx.src;}if(bq.type=="image"&&bx.opacity){bu.filterOpacity=aS+".Alpha(opacity="+(bx.opacity*100)+")";bn.filter=(bu.filterMatrix||aF)+(bu.filterOpacity||aF);}bx.font&&(bn.font=bx.font);bx["font-family"]&&(bn.fontFamily='"'+bx["font-family"][F](",")[0][ba](/^['"]+|['"]+$/g,aF)+'"');bx["font-size"]&&(bn.fontSize=bx["font-size"]);bx["font-weight"]&&(bn.fontWeight=bx["font-weight"]);bx["font-style"]&&(bn.fontStyle=bx["font-style"]);if(bx.opacity!=null||bx["stroke-width"]!=null||bx.fill!=null||bx.stroke!=null||bx["stroke-width"]!=null||bx["stroke-opacity"]!=null||bx["fill-opacity"]!=null||bx["stroke-dasharray"]!=null||bx["stroke-miterlimit"]!=null||bx["stroke-linejoin"]!=null||bx["stroke-linecap"]!=null){bu=bq.shape||bu;var bv=(bu.getElementsByTagName(aR)&&bu.getElementsByTagName(aR)[0]),bz=false;!bv&&(bz=bv=aq(aR));if("fill-opacity" in bx||"opacity" in bx){var e=((+by["fill-opacity"]+1||2)-1)*((+by.opacity+1||2)-1)*((+az.getRGB(bx.fill).o+1||2)-1);e<0&&(e=0);e>1&&(e=1);bv.opacity=e;}bx.fill&&(bv.on=true);if(bv.on==null||bx.fill=="none"){bv.on=false;}if(bv.on&&bx.fill){var i=bx.fill.match(c);if(i){bv.src=i[1];bv.type="tile";}else{bv.color=az.getRGB(bx.fill).hex;bv.src=aF;bv.type="solid";if(az.getRGB(bx.fill).error&&(bC.type in {circle:1,ellipse:1}||(bx.fill+aF).charAt()!="r")&&b(bC,bx.fill)){by.fill="none";by.gradient=bx.fill;}}}bz&&bu[a4](bv);var R=(bu.getElementsByTagName("stroke")&&bu.getElementsByTagName("stroke")[0]),bA=false;!R&&(bA=R=aq("stroke"));if((bx.stroke&&bx.stroke!="none")||bx["stroke-width"]||bx["stroke-opacity"]!=null||bx["stroke-dasharray"]||bx["stroke-miterlimit"]||bx["stroke-linejoin"]||bx["stroke-linecap"]){R.on=true;}(bx.stroke=="none"||R.on==null||bx.stroke==0||bx["stroke-width"]==0)&&(R.on=false);var bt=az.getRGB(bx.stroke);R.on&&bx.stroke&&(R.color=bt.hex);e=((+by["stroke-opacity"]+1||2)-1)*((+by.opacity+1||2)-1)*((+bt.o+1||2)-1);var br=(ae(bx["stroke-width"])||1)*0.75;e<0&&(e=0);e>1&&(e=1);bx["stroke-width"]==null&&(br=by["stroke-width"]);bx["stroke-width"]&&(R.weight=br);br&&br<1&&(e*=br)&&(R.weight=1);R.opacity=e;bx["stroke-linejoin"]&&(R.joinstyle=bx["stroke-linejoin"]||"miter");R.miterlimit=bx["stroke-miterlimit"]||8;bx["stroke-linecap"]&&(R.endcap=bx["stroke-linecap"]=="butt"?"flat":bx["stroke-linecap"]=="square"?"square":"round");if(bx["stroke-dasharray"]){var bs={"-":"shortdash",".":"shortdot","-.":"shortdashdot","-..":"shortdashdotdot",". ":"dot","- ":"dash","--":"longdash","- .":"dashdot","--.":"longdashdot","--..":"longdashdotdot"};R.dashstyle=bs[ab](bx["stroke-dasharray"])?bs[bx["stroke-dasharray"]]:aF;}bA&&bu[a4](R);}if(bC.type=="text"){bn=bC.paper.span.style;by.font&&(bn.font=by.font);by["font-family"]&&(bn.fontFamily=by["font-family"]);by["font-size"]&&(bn.fontSize=by["font-size"]);by["font-weight"]&&(bn.fontWeight=by["font-weight"]);by["font-style"]&&(bn.fontStyle=by["font-style"]);bC.node.string&&(bC.paper.span.innerHTML=(bC.node.string+aF)[ba](/</g,"&#60;")[ba](/&/g,"&#38;")[ba](/\n/g,"<br>"));bC.W=by.w=bC.paper.span.offsetWidth;bC.H=by.h=bC.paper.span.offsetHeight;bC.X=by.x;bC.Y=by.y+Y(bC.H/2);switch(by["text-anchor"]){case"start":bC.node.style["v-text-align"]="left";bC.bbx=Y(bC.W/2);break;case"end":bC.node.style["v-text-align"]="right";bC.bbx=-Y(bC.W/2);break;default:bC.node.style["v-text-align"]="center";break;}}};b=function(d,bo){d.attrs=d.attrs||{};var bp=d.attrs,br,S="linear",bn=".5 .5";d.attrs.gradient=bo;bo=(bo+aF)[ba](aE,function(bt,bu,i){S="radial";if(bu&&i){bu=ae(bu);i=ae(i);a5(bu-0.5,2)+a5(i-0.5,2)>0.25&&(i=aj.sqrt(0.25-a5(bu-0.5,2))*((i>0.5)*2-1)+0.5);bn=bu+ay+i;}return aF;});bo=bo[F](/\s*\-\s*/);if(S=="linear"){var e=bo.shift();e=-ae(e);if(isNaN(e)){return null;}}var R=t(bo);if(!R){return null;}d=d.shape||d.node;br=d.getElementsByTagName(aR)[0]||aq(aR);!br.parentNode&&d.appendChild(br);if(R[o]){br.on=true;br.method="none";br.color=R[0].color;br.color2=R[R[o]-1].color;var bs=[];for(var E=0,bq=R[o];E<bq;E++){R[E].offset&&bs[f](R[E].offset+ay+R[E].color);}br.colors&&(br.colors.value=bs[o]?bs[aM]():"0% "+br.color);if(S=="radial"){br.type="gradientradial";br.focus="100%";br.focussize=bn;br.focusposition=bn;}else{br.type="gradient";br.angle=(270-e)%360;}}return 1;};aK=function(R,bn,d){var S=0,i=0,e=0,E=1;this[0]=R;this.id=az._oid++;this.node=R;R.raphael=this;this.X=0;this.Y=0;this.attrs={};this.Group=bn;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;};aK[bk].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][aM](ay);}return this._.rt.deg;}e=(e+aF)[F](a);if(e[o]-1){d=ae(e[1]);i=ae(e[2]);}e=ae(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;};aK[bk].setBox=function(R,S,E){if(this.removed){return this;}var d=this.Group.style,bn=(this.shape&&this.shape.style)||this.node.style;R=R||{};for(var bo in R){if(R[ab](bo)){this.attrs[bo]=R[bo];}}S=S||this._.rt.cx;E=E||this._.rt.cy;var br=this.attrs,bu,bt,bv,bq;switch(this.type){case"circle":bu=br.cx-br.r;bt=br.cy-br.r;bv=bq=br.r*2;break;case"ellipse":bu=br.cx-br.rx;bt=br.cy-br.ry;bv=br.rx*2;bq=br.ry*2;break;case"image":bu=+br.x;bt=+br.y;bv=br.width||0;bq=br.height||0;break;case"text":this.textpath.v=["m",Y(br.x),", ",Y(br.y-2),"l",Y(br.x)+1,", ",Y(br.y-2)][aM](aF);bu=br.x-Y(this.W/2);bt=br.y-this.H/2;bv=this.W;bq=this.H;break;case"rect":case"path":if(!this.attrs.path){bu=0;bt=0;bv=this.paper.width;bq=this.paper.height;}else{var bp=ad(this.attrs.path);bu=bp.x;bt=bp.y;bv=bp.width;bq=bp.height;}break;default:bu=0;bt=0;bv=this.paper.width;bq=this.paper.height;break;}S=(S==null)?bu+bv/2:S;E=(E==null)?bt+bq/2:E;var e=S-this.paper.width/2,bs=E-this.paper.height/2,bw;d.left!=(bw=e+"px")&&(d.left=bw);d.top!=(bw=bs+"px")&&(d.top=bw);this.X=p[ab](this.type)?-e:bu;this.Y=p[ab](this.type)?-bs:bt;this.W=bv;this.H=bq;if(p[ab](this.type)){bn.left!=(bw=-e*r+"px")&&(bn.left=bw);bn.top!=(bw=-bs*r+"px")&&(bn.top=bw);}else{if(this.type=="text"){bn.left!=(bw=-e+"px")&&(bn.left=bw);bn.top!=(bw=-bs+"px")&&(bn.top=bw);}else{d.width!=(bw=this.paper.width+"px")&&(d.width=bw);d.height!=(bw=this.paper.height+"px")&&(d.height=bw);bn.left!=(bw=bu-e+"px")&&(bn.left=bw);bn.top!=(bw=bt-bs+"px")&&(bn.top=bw);bn.width!=(bw=bv+"px")&&(bn.width=bw);bn.height!=(bw=bq+"px")&&(bn.height=bw);}}};aK[bk].hide=function(){!this.removed&&(this.Group.style.display="none");return this;};aK[bk].show=function(){!this.removed&&(this.Group.style.display="block");return this;};aK[bk].getBBox=function(){if(this.removed){return this;}if(p[ab](this.type)){return ad(this.attrs.path);}return{x:this.X+(this.bbx||0),y:this.Y,width:this.W,height:this.H};};aK[bk].remove=function(){if(this.removed){return;}av(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;};aK[bk].attr=function(e,bn){if(this.removed){return this;}if(e==null){var R={};for(var E in this.attrs){if(this.attrs[ab](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(bn==null&&az.is(e,aa)){if(e=="translation"){return x.call(this);}if(e=="rotation"){return this.rotate();}if(e=="scale"){return this.scale();}if(e==aR&&this.attrs.fill=="none"&&this.attrs.gradient){return this.attrs.gradient;}return this.attrs[e];}if(this.attrs&&bn==null&&az.is(e,aU)){var S,d={};for(E=0,S=e[o];E<S;E++){d[e[E]]=this.attr(e[E]);}return d;}var bo;if(bn!=null){bo={};bo[e]=bn;}bn==null&&az.is(e,"object")&&(bo=e);if(bo){if(bo.text&&this.type=="text"){this.node.string=bo.text;}ai(this,bo);if(bo.gradient&&(({circle:1,ellipse:1})[ab](this.type)||(bo.gradient+aF).charAt()!="r")){b(this,bo.gradient);}(!p[ab](this.type)||this._.rt.deg)&&this.setBox(this.attrs);}return this;};aK[bk].toFront=function(){!this.removed&&this.Group.parentNode[a4](this.Group);this.paper.top!=this&&ag(this,this.paper);return this;};aK[bk].toBack=function(){if(this.removed){return this;}if(this.Group.parentNode.firstChild!=this.Group){this.Group.parentNode.insertBefore(this.Group,this.Group.parentNode.firstChild);m(this,this.paper);}return this;};aK[bk].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[a4](this.Group);}G(this,d,this.paper);return this;};aK[bk].insertBefore=function(d){if(this.removed){return this;}d.Group.parentNode.insertBefore(this.Group,d.Group);aC(this,d,this.paper);return this;};var be=/ progid:\S+Blur\([^\)]+\)/g;aK[bk].blur=function(d){var e=this.node.style,i=e.filter;i=i.replace(be,"");if(+d!==0){this.attrs.blur=d;e.filter=i+aS+".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;}};Z=function(e,d,bo,S){var R=aq("group"),bn=aq("oval"),i=bn.style;R.style.cssText="position:absolute;left:0;top:0;width:"+e.width+"px;height:"+e.height+"px";R.coordsize=aN;R.coordorigin=e.coordorigin;R[a4](bn);var E=new aK(bn,R,e);E.type="circle";ai(E,{stroke:"#000",fill:"none"});E.attrs.cx=d;E.attrs.cy=bo;E.attrs.r=S;E.setBox({x:d-S,y:bo-S,width:S*2,height:S*2});e.canvas[a4](R);return E;};function al(d,R,e,i,E){if(E){return az.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 az.format("M{0},{1}l{2},0,0,{3},{4},0z",d,R,e,i,-e);}}aX=function(e,bn,R,bo,i,d){var bp=al(bn,R,bo,i,d),E=e.path(bp),S=E.attrs;E.X=S.x=bn;E.Y=S.y=R;E.W=S.width=bo;E.H=S.height=i;S.r=d;S.path=bp;E.type="rect";return E;};ar=function(d,bp,bo,i,e){var R=aq("group"),E=aq("oval"),bn=E.style;R.style.cssText="position:absolute;left:0;top:0;width:"+d.width+"px;height:"+d.height+"px";R.coordsize=aN;R.coordorigin=d.coordorigin;R[a4](E);var S=new aK(E,R,d);S.type="ellipse";ai(S,{stroke:"#000"});S.attrs.cx=bp;S.attrs.cy=bo;S.attrs.rx=i;S.attrs.ry=e;S.setBox({x:bp-i,y:bo-e,width:i*2,height:e*2});d.canvas[a4](R);return S;};s=function(e,d,bp,bo,bq,E){var R=aq("group"),i=aq("image"),bn=i.style;R.style.cssText="position:absolute;left:0;top:0;width:"+e.width+"px;height:"+e.height+"px";R.coordsize=aN;R.coordorigin=e.coordorigin;i.src=d;R[a4](i);var S=new aK(i,R,e);S.type="image";S.attrs.src=d;S.attrs.x=bp;S.attrs.y=bo;S.attrs.w=bq;S.attrs.h=E;S.setBox({x:bp,y:bo,width:bq,height:E});e.canvas[a4](R);return S;};af=function(e,bp,bo,bq){var R=aq("group"),E=aq("shape"),bn=E.style,br=aq("path"),d=br.style,i=aq("textpath");R.style.cssText="position:absolute;left:0;top:0;width:"+e.width+"px;height:"+e.height+"px";R.coordsize=aN;R.coordorigin=e.coordorigin;br.v=az.format("m{0},{1}l{2},{1}",Y(bp*10),Y(bo*10),Y(bp*10)+1);br.textpathok=true;bn.width=e.width;bn.height=e.height;i.string=bq+aF;i.on=true;E[a4](i);E[a4](br);R[a4](E);var S=new aK(i,R,e);S.shape=E;S.textpath=br;S.type="text";S.attrs.text=bq;S.attrs.x=bp;S.attrs.y=bo;S.attrs.w=1;S.attrs.h=1;ai(S,{font:l.font,stroke:"none",fill:"#000"});S.setBox();e.canvas[a4](R);return S;};bh=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 aq;V.createStyleSheet().addRule(".rvml","behavior:url(#default#VML)");try{!V.namespaces.rvml&&V.namespaces.add("rvml","urn:schemas-microsoft-com:vml");aq=function(d){return V.createElement("<rvml:"+d+' class="rvml">');};}catch(ao){aq=function(d){return V.createElement("<"+d+' xmlns="urn:schemas-microsoft.com:vml" class="rvml">');};}B=function(){var i=aA[bi](0,arguments),d=i.container,bp=i.height,bq,e=i.width,bo=i.x,bn=i.y;if(!d){throw new Error("VML container not found.");}var R=new bf,S=R.canvas=V.createElement("div"),E=S.style;bo=bo||0;bn=bn||0;e=e||512;bp=bp||342;e==+e&&(e+="px");bp==+bp&&(bp+="px");R.width=1000;R.height=1000;R.coordsize=r*1000+ay+r*1000;R.coordorigin="0 0";R.span=V.createElement("span");R.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;display:inline;";S[a4](R.span);E.cssText=az.format("width:{0};height:{1};display:inline-block;position:relative;clip:rect(0 {0} {1} 0);overflow:hidden",e,bp);if(d==1){V.body[a4](S);E.left=bo+"px";E.top=bn+"px";E.position="absolute";}else{if(d.firstChild){d.insertBefore(S,d.firstChild);}else{d[a4](S);}}aZ.call(R,R,az.fn);return R;};bf[bk].clear=function(){this.canvas.innerHTML=aF;this.span=V.createElement("span");this.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;display:inline;";this.canvas[a4](this.span);this.bottom=this.top=null;};bf[bk].remove=function(){this.canvas.parentNode.removeChild(this.canvas);for(var d in this){this[d]=w(d);}return true;};}if((/^Apple|^Google/).test(aG.navigator.vendor)&&(!(aG.navigator.userAgent.indexOf("Version/4.0")+1)||aG.navigator.platform.slice(0,2)=="iP")){bf[bk].safari=function(){var d=this.rect(-99,-99,this.width+99,this.height+99);aG.setTimeout(function(){d.remove();});};}else{bf[bk].safari=function(){};}var K=function(){this.returnValue=false;},aQ=function(){this.cancelBubble=true;},an=(function(){if(V.addEventListener){return function(R,i,e,d){var E=function(bp){if(P){for(var bn=0,bo=bp.targetTouches&&bp.targetTouches.length;bn<bo;bn++){if(bp.targetTouches[bn].target==R){var S=bp;bp=bp.targetTouches[bn];bp.originalEvent=S;break;}}}return e.call(d,bp);};R.addEventListener(i,E,false);return function(){R.removeEventListener(i,E,false);return true;};};}else{if(V.attachEvent){return function(S,E,i,e){var R=function(bn){bn=bn||aG.event;bn.preventDefault=bn.preventDefault||K;bn.stopPropagation=bn.stopPropagation||aQ;return i.call(e,bn);};S.attachEvent("on"+E,R);var d=function(){S.detachEvent("on"+E,R);return true;};return d;};}}})();for(var ak=M[o];ak--;){(function(d){az[d]=aK[bk][d]=function(i){if(az.is(i,"function")){var e=P&&a9[d]?a9[d]:d;this.events=this.events||[];this.events.push({name:d,f:i,unbind:an(this.shape||this.node||V,e,i,this)});}return this;};az["un"+d]=aK[bk]["un"+d]=function(E){var i=this.events,e=i[o];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;};})(M[ak]);}aK[bk].hover=function(e,d){return this.mouseover(e).mouseout(d);};aK[bk].unhover=function(e,d){return this.unmouseover(e).unmouseout(d);};aK[bk].drag=function(i,S,R){this._drag={};var E=this.mousedown(function(bn){(bn.originalEvent?bn.originalEvent:bn).preventDefault();this._drag.x=bn.clientX;this._drag.y=bn.clientY;this._drag.id=bn.identifier;S&&S.call(this,bn.clientX,bn.clientY);Raphael.mousemove(e).mouseup(d);}),e=function(bp){var bn=bp.clientX,br=bp.clientY;if(P){var bo=bp.touches.length,bq;while(bo--){bq=bp.touches[bo];if(bq.identifier==E._drag.id){bn=bq.clientX;br=bq.clientY;(bp.originalEvent?bp.originalEvent:bp).preventDefault();break;}}}else{bp.preventDefault();}i&&i.call(E,bn-E._drag.x,br-E._drag.y,bn,br);},d=function(){E._drag={};Raphael.unmousemove(e).unmouseup(d);R&&R.call(E);};return this;};bf[bk].circle=function(d,i,e){return Z(this,d||0,i||0,e||0);};bf[bk].rect=function(d,R,e,i,E){return aX(this,d||0,R||0,e||0,i||0,E||0);};bf[bk].ellipse=function(d,E,i,e){return ar(this,d||0,E||0,i||0,e||0);};bf[bk].path=function(d){d&&!az.is(d,aa)&&!az.is(d[0],aU)&&(d+=aF);return u(az.format[bi](az,arguments),this);};bf[bk].image=function(E,d,R,e,i){return s(this,E||"about:blank",d||0,R||0,e||0,i||0);};bf[bk].text=function(d,i,e){return af(this,d||0,i||0,e||aF);};bf[bk].set=function(d){arguments[o]>1&&(d=Array[bk].splice.call(arguments,0,arguments[o]));return new ac(d);};bf[bk].setSize=bh;bf[bk].top=bf[bk].bottom=null;bf[bk].raphael=az;function z(){return this.x+ay+this.y;}aK[bk].resetScale=function(){if(this.removed){return this;}this._.sx=1;this._.sy=1;this.attrs.scale="1 1";};aK[bk].scale=function(bt,bs,E,e){if(this.removed){return this;}if(bt==null&&bs==null){return{x:this._.sx,y:this._.sy,toString:z};}bs=bs||bt;!+bs&&(bs=bt);var bx,bv,bw,bu,bJ=this.attrs;if(bt!=0){var br=this.getBBox(),bo=br.x+br.width/2,R=br.y+br.height/2,bI=bt/this._.sx,bH=bs/this._.sy;E=(+E||E==0)?E:bo;e=(+e||e==0)?e:R;var bq=~~(bt/aj.abs(bt)),bn=~~(bs/aj.abs(bs)),bA=this.node.style,bL=E+(bo-E)*bI,bK=e+(R-e)*bH;switch(this.type){case"rect":case"image":var bp=bJ.width*bq*bI,bz=bJ.height*bn*bH;this.attr({height:bz,r:bJ.r*a2(bq*bI,bn*bH),width:bp,x:bL-bp/2,y:bK-bz/2});break;case"circle":case"ellipse":this.attr({rx:bJ.rx*bq*bI,ry:bJ.ry*bn*bH,r:bJ.r*a2(bq*bI,bn*bH),cx:bL,cy:bK});break;case"text":this.attr({x:bL,y:bK});break;case"path":var bC=am(bJ.path),bD=true;for(var bF=0,by=bC[o];bF<by;bF++){var bB=bC[bF],S=a7.call(bB[0]);if(S=="M"&&bD){continue;}else{bD=false;}if(S=="A"){bB[bC[bF][o]-2]*=bI;bB[bC[bF][o]-1]*=bH;bB[1]*=bq*bI;bB[2]*=bn*bH;bB[5]=+!(bq+bn?!+bB[5]:+bB[5]);}else{if(S=="H"){for(var bE=1,bG=bB[o];bE<bG;bE++){bB[bE]*=bI;}}else{if(S=="V"){for(bE=1,bG=bB[o];bE<bG;bE++){bB[bE]*=bH;}}else{for(bE=1,bG=bB[o];bE<bG;bE++){bB[bE]*=(bE%2)?bI:bH;}}}}}var d=ad(bC);bx=bL-d.x-d.width/2;bv=bK-d.y-d.height/2;bC[0][1]+=bx;bC[0][2]+=bv;this.attr({path:bC});break;}if(this.type in {text:1,image:1}&&(bq!=1||bn!=1)){if(this.transformations){this.transformations[2]="scale("[bd](bq,",",bn,")");this.node[A]("transform",this.transformations[aM](ay));bx=(bq==-1)?-bJ.x-(bp||0):bJ.x;bv=(bn==-1)?-bJ.y-(bz||0):bJ.y;this.attr({x:bx,y:bv});bJ.fx=bq-1;bJ.fy=bn-1;}else{this.node.filterMatrix=aS+".Matrix(M11="[bd](bq,", M12=0, M21=0, M22=",bn,", Dx=0, Dy=0, sizingmethod='auto expand', filtertype='bilinear')");bA.filter=(this.node.filterMatrix||aF)+(this.node.filterOpacity||aF);}}else{if(this.transformations){this.transformations[2]=aF;this.node[A]("transform",this.transformations[aM](ay));bJ.fx=0;bJ.fy=0;}else{this.node.filterMatrix=aF;bA.filter=(this.node.filterMatrix||aF)+(this.node.filterOpacity||aF);}}bJ.scale=[bt,bs,E,e][aM](ay);this._.sx=bt;this._.sy=bs;}return this;};aK[bk].clone=function(){var d=this.attr();delete d.scale;delete d.translation;return this.paper[this.type]().attr(d);};var g=at(function(E,d,bo,bn,bu,bt,bs,br,R){var bq=0,S;for(var bp=0;bp<1.001;bp+=0.001){var e=az.findDotsAtSegment(E,d,bo,bn,bu,bt,bs,br,bp);bp&&(bq+=a5(a5(S.x-e.x,2)+a5(S.y-e.y,2),0.5));if(bq>=R){return e;}S=e;}}),aP=function(d,e){return function(bw,S,bn){bw=O(bw);var bs,br,E,bo,R="",bv={},bt,bq=0;for(var bp=0,bu=bw.length;bp<bu;bp++){E=bw[bp];if(E[0]=="M"){bs=+E[1];br=+E[2];}else{bo=q(bs,br,E[1],E[2],E[3],E[4],E[5],E[6]);if(bq+bo>S){if(e&&!bv.start){bt=g(bs,br,E[1],E[2],E[3],E[4],E[5],E[6],S-bq);R+=["C",bt.start.x,bt.start.y,bt.m.x,bt.m.y,bt.x,bt.y];if(bn){return R;}bv.start=R;R=["M",bt.x,bt.y+"C",bt.n.x,bt.n.y,bt.end.x,bt.end.y,E[5],E[6]][aM]();bq+=bo;bs=+E[5];br=+E[6];continue;}if(!d&&!e){bt=g(bs,br,E[1],E[2],E[3],E[4],E[5],E[6],S-bq);return{x:bt.x,y:bt.y,alpha:bt.alpha};}}bq+=bo;bs=+E[5];br=+E[6];}R+=E;}bv.end=R;bt=d?bq:e?bv:az.findDotsAtSegment(bs,br,E[1],E[2],E[3],E[4],E[5],E[6],1);bt.alpha&&(bt={x:bt.x,y:bt.y,alpha:bt.alpha});return bt;};},q=at(function(E,d,bn,S,bt,bs,br,bq){var R={x:0,y:0},bp=0;for(var bo=0;bo<1.01;bo+=0.01){var e=X(E,d,bn,S,bt,bs,br,bq,bo);bo&&(bp+=a5(a5(R.x-e.x,2)+a5(R.y-e.y,2),0.5));R=e;}return bp;});var aB=aP(1),I=aP(),T=aP(0,1);aK[bk].getTotalLength=function(){if(this.type!="path"){return;}if(this.node.getTotalLength){return this.node.getTotalLength();}return aB(this.attrs.path);};aK[bk].getPointAtLength=function(d){if(this.type!="path"){return;}return I(this.attrs.path,d);};aK[bk].getSubpath=function(i,e){if(this.type!="path"){return;}if(aj.abs(this.getTotalLength()-e)<0.000001){return T(this.attrs.path,i).end;}var d=T(this.attrs.path,e,1);return i?T(d,i).end:d;};az.easing_formulas={linear:function(d){return d;},"<":function(d){return a5(d,3);},">":function(d){return a5(d-1,3)+1;},"<>":function(d){d=d*2;if(d<1){return a5(d,3)/2;}d-=2;return(a5(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 a5(2,-10*i)*aj.sin((i-d)*(2*aj.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 Q={length:0},bc=function(){var bp=+new Date;for(var bB in Q){if(bB!="length"&&Q[ab](bB)){var bG=Q[bB];if(bG.stop||bG.el.removed){delete Q[bB];Q[o]--;continue;}var bn=bp-bG.start,by=bG.ms,bx=bG.easing,bC=bG.from,bu=bG.diff,E=bG.to,bt=bG.t,bw=bG.prev||0,bo=bG.el,R=bG.callback,bv={},d;if(bn<by){var S=az.easing_formulas[bx]?az.easing_formulas[bx](bn/by):bn/by;for(var bz in bC){if(bC[ab](bz)){switch(ah[bz]){case"along":d=S*by*bu[bz];E.back&&(d=E.len-d);var bA=I(E[bz],d);bo.translate(bu.sx-bu.x||0,bu.sy-bu.y||0);bu.x=bA.x;bu.y=bA.y;bo.translate(bA.x-bu.sx,bA.y-bu.sy);E.rot&&bo.rotate(bu.r+bA.alpha,bA.x,bA.y);break;case aw:d=+bC[bz]+S*by*bu[bz];break;case"colour":d="rgb("+[H(Y(bC[bz].r+S*by*bu[bz].r)),H(Y(bC[bz].g+S*by*bu[bz].g)),H(Y(bC[bz].b+S*by*bu[bz].b))][aM](",")+")";break;case"path":d=[];for(var bE=0,bs=bC[bz][o];bE<bs;bE++){d[bE]=[bC[bz][bE][0]];for(var bD=1,bF=bC[bz][bE][o];bD<bF;bD++){d[bE][bD]=+bC[bz][bE][bD]+S*by*bu[bz][bE][bD];}d[bE]=d[bE][aM](ay);}d=d[aM](ay);break;case"csv":switch(bz){case"translation":var br=bu[bz][0]*(bn-bw),bq=bu[bz][1]*(bn-bw);bt.x+=br;bt.y+=bq;d=br+ay+bq;break;case"rotation":d=+bC[bz][0]+S*by*bu[bz][0];bC[bz][1]&&(d+=","+bC[bz][1]+","+bC[bz][2]);break;case"scale":d=[+bC[bz][0]+S*by*bu[bz][0],+bC[bz][1]+S*by*bu[bz][1],(2 in E[bz]?E[bz][2]:aF),(3 in E[bz]?E[bz][3]:aF)][aM](ay);break;case"clip-rect":d=[];bE=4;while(bE--){d[bE]=+bC[bz][bE]+S*by*bu[bz][bE];}break;}break;}bv[bz]=d;}}bo.attr(bv);bo._run&&bo._run.call(bo);}else{if(E.along){bA=I(E.along,E.len*!E.back);bo.translate(bu.sx-(bu.x||0)+bA.x-bu.sx,bu.sy-(bu.y||0)+bA.y-bu.sy);E.rot&&bo.rotate(bu.r+bA.alpha,bA.x,bA.y);}(bt.x||bt.y)&&bo.translate(-bt.x,-bt.y);E.scale&&(E.scale=E.scale+aF);bo.attr(E);delete Q[bB];Q[o]--;bo.in_animation=null;az.is(R,"function")&&R.call(bo);}bG.prev=bn;}}az.svg&&bo&&bo.paper&&bo.paper.safari();Q[o]&&aG.setTimeout(bc);},H=function(d){return h(a2(d,255),0);},x=function(d,i){if(d==null){return{x:this._.tx,y:this._.ty,toString:z};}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=am(this.attrs.path);e[0][1]+=+d;e[0][2]+=+i;this.attr({path:e});break;}return this;};aK[bk].animateWith=function(e,i,d,R,E){Q[e.id]&&(i.start=Q[e.id].start);return this.animate(i,d,R,E);};aK[bk].animateAlong=aL();aK[bk].animateAlongBack=aL(1);function aL(d){return function(E,i,e,S){var R={back:d};az.is(e,"function")?(S=e):(R.rot=e);E&&E.constructor==aK&&(E=E.attrs.path);E&&(R.along=E);return this.animate(R,i,S);};}aK[bk].onAnimation=function(d){this._run=d||0;return this;};aK[bk].animate=function(bB,bs,br,E){if(az.is(br,"function")||!br){E=br||null;}var bw={},e={},bp={};for(var bt in bB){if(bB[ab](bt)){if(ah[ab](bt)){bw[bt]=this.attr(bt);(bw[bt]==null)&&(bw[bt]=l[bt]);e[bt]=bB[bt];switch(ah[bt]){case"along":var bz=aB(bB[bt]),bu=I(bB[bt],bz*!!bB.back),R=this.getBBox();bp[bt]=bz/bs;bp.tx=R.x;bp.ty=R.y;bp.sx=bu.x;bp.sy=bu.y;e.rot=bB.rot;e.back=bB.back;e.len=bz;bB.rot&&(bp.r=ae(this.rotate())||0);break;case aw:bp[bt]=(e[bt]-bw[bt])/bs;break;case"colour":bw[bt]=az.getRGB(bw[bt]);var bv=az.getRGB(e[bt]);bp[bt]={r:(bv.r-bw[bt].r)/bs,g:(bv.g-bw[bt].g)/bs,b:(bv.b-bw[bt].b)/bs};break;case"path":var S=O(bw[bt],e[bt]);bw[bt]=S[0];var bq=S[1];bp[bt]=[];for(var by=0,bo=bw[bt][o];by<bo;by++){bp[bt][by]=[0];for(var bx=1,bA=bw[bt][by][o];bx<bA;bx++){bp[bt][by][bx]=(bq[by][bx]-bw[bt][by][bx])/bs;}}break;case"csv":var d=(bB[bt]+aF)[F](a),bn=(bw[bt]+aF)[F](a);switch(bt){case"translation":bw[bt]=[0,0];bp[bt]=[d[0]/bs,d[1]/bs];break;case"rotation":bw[bt]=(bn[1]==d[1]&&bn[2]==d[2])?bn:[0,d[1],d[2]];bp[bt]=[(d[0]-bw[bt][0])/bs,0,0];break;case"scale":bB[bt]=d;bw[bt]=(bw[bt]+aF)[F](a);bp[bt]=[(d[0]-bw[bt][0])/bs,(d[1]-bw[bt][1])/bs,0,0];break;case"clip-rect":bw[bt]=(bw[bt]+aF)[F](a);bp[bt]=[];by=4;while(by--){bp[bt][by]=(d[by]-bw[bt][by])/bs;}break;}e[bt]=d;}}}}this.stop();this.in_animation=1;Q[this.id]={start:bB.start||+new Date,ms:bs,easing:br,from:bw,diff:bp,to:e,el:this,callback:E,t:{x:0,y:0}};++Q[o]==1&&bc();return this;};aK[bk].stop=function(){Q[this.id]&&Q[o]--;delete Q[this.id];return this;};aK[bk].translate=function(d,e){return this.attr({translation:d+" "+e});};aK[bk][aO]=function(){return"Rapha\xebl\u2019s object";};az.ae=Q;var ac=function(d){this.items=[];this[o]=0;this.type="set";if(d){for(var e=0,E=d[o];e<E;e++){if(d[e]&&(d[e].constructor==aK||d[e].constructor==ac)){this[this.items[o]]=this.items[this.items[o]]=d[e];this[o]++;}}}};ac[bk][f]=function(){var R,d;for(var e=0,E=arguments[o];e<E;e++){R=arguments[e];if(R&&(R.constructor==aK||R.constructor==ac)){d=this.items[o];this[d]=this.items[d]=R;this[o]++;}}return this;};ac[bk].pop=function(){delete this[this[o]--];return this.items.pop();};for(var D in aK[bk]){if(aK[bk][ab](D)){ac[bk][D]=(function(d){return function(){for(var e=0,E=this.items[o];e<E;e++){this.items[e][d][bi](this.items[e],arguments);}return this;};})(D);}}ac[bk].attr=function(e,bn){if(e&&az.is(e,aU)&&az.is(e[0],"object")){for(var d=0,S=e[o];d<S;d++){this.items[d].attr(e[d]);}}else{for(var E=0,R=this.items[o];E<R;E++){this.items[E].attr(e,bn);}}return this;};ac[bk].animate=function(S,e,bp,bo){(az.is(bp,"function")||!bp)&&(bo=bp||null);var d=this.items[o],E=d,bn=this,R;bo&&(R=function(){!--d&&bo.call(bn);});this.items[--E].animate(S,e,bp||R,R);while(E--){this.items[E].animateWith(this.items[d-1],S,e,bp||R,R);}return this;};ac[bk].insertAfter=function(e){var d=this.items[o];while(d--){this.items[d].insertAfter(e);}return this;};ac[bk].getBBox=function(){var d=[],bn=[],e=[],R=[];for(var E=this.items[o];E--;){var S=this.items[E].getBBox();d[f](S.x);bn[f](S.y);e[f](S.x+S.width);R[f](S.y+S.height);}d=a2[bi](0,d);bn=a2[bi](0,bn);return{x:d,y:bn,width:h[bi](0,e)-d,height:h[bi](0,R)-bn};};ac[bk].clone=function(E){E=new ac;for(var d=0,e=this.items[o];d<e;d++){E[f](this.items[d].clone());}return E;};az.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 bn in e.face){if(e.face[ab](bn)){E.face[bn]=e.face[bn];}}if(this.fonts[i]){this.fonts[i][f](E);}else{this.fonts[i]=[E];}if(!e.svg){E.face["units-per-em"]=N(e.face["units-per-em"],10);for(var R in e.glyphs){if(e.glyphs[ab](R)){var S=e.glyphs[R];E.glyphs[R]={w:S.w,k:{},d:S.d&&"M"+S.d[ba](/[mlcxtrv]/g,function(bo){return{l:"L",c:"C",x:"z",t:"m",r:"l",v:"c"}[bo]||"M";})+"z"};if(S.k){for(var d in S.k){if(S[ab](d)){E.glyphs[R].k[d]=S.k[d];}}}}}}return e;};bf[bk].getFont=function(bp,bq,e,R){R=R||"normal";e=e||"normal";bq=+bq||{normal:400,bold:700,lighter:300,bolder:800}[bq]||400;if(!az.fonts){return;}var S=az.fonts[bp];if(!S){var E=new RegExp("(^|\\s)"+bp[ba](/[^\w\d\s+!~.:_-]/g,aF)+"(\\s|$)","i");for(var d in az.fonts){if(az.fonts[ab](d)){if(E.test(d)){S=az.fonts[d];break;}}}}var bn;if(S){for(var bo=0,br=S[o];bo<br;bo++){bn=S[bo];if(bn.face["font-weight"]==bq&&(bn.face["font-style"]==e||!bn.face["font-style"])&&bn.face["font-stretch"]==R){break;}}}return bn;};bf[bk].print=function(R,E,d,bo,bp,by){by=by||"middle";var bu=this.set(),bx=(d+aF)[F](aF),bv=0,br=aF,bz;az.is(bo,d)&&(bo=this.getFont(bo));if(bo){bz=(bp||16)/bo.face["units-per-em"];var e=bo.face.bbox.split(a),bn=+e[0],bq=+e[1]+(by=="baseline"?e[3]-e[1]+(+bo.face.descent):(e[3]-e[1])/2);for(var bt=0,S=bx[o];bt<S;bt++){var bs=bt&&bo.glyphs[bx[bt-1]]||{},bw=bo.glyphs[bx[bt]];bv+=bt?(bs.w||bo.w)+(bs.k&&bs.k[bx[bt]]||0):0;bw&&bw.d&&bu[f](this.path(bw.d).attr({fill:"#000",stroke:"none",translation:[bv,0]}));}bu.scale(bz,bz,bn,bq).translate(R-bn,E-bq);}return bu;};var a6=/\{(\d+)\}/g;az.format=function(e,i){var d=az.is(i,i)?[0][bd](i):arguments;e&&az.is(e,aa)&&d[o]-1&&(e=e[ba](a6,function(R,E){return d[++E]==null?aF:d[E];}));return e||aF;};az.ninja=function(){n.was?(Raphael=n.is):delete Raphael;return az;};az.el=aK[bk];return az;})();
\ No newline at end of file
+Raphael=(function(){function aA(){if(aA.is(arguments[0],aV)){var d=arguments[0],e=B[bk](aA,d.splice(0,3+aA.is(d[0],ax))),S=e.set();for(var R=0,bp=d[o];R<bp;R++){var E=d[R]||{};a9.test(E.type)&&S[f](e[E.type]().attr(E));}return S;}return B[bk](aA,arguments);}aA.version="1.4.2";var a=/[, ]+/,a9=/^(circle|rect|path|ellipse|text|image)$/,bm="prototype",ab="hasOwnProperty",V=document,aH=window,n={was:Object[bm][ab].call(aH,"Raphael"),is:aH.Raphael},bh=function(){},a5="appendChild",bk="apply",bf="concat",P="createTouch" in V,aG="",az=" ",F="split",M="click dblclick mousedown mousemove mouseout mouseover mouseup touchstart touchmove touchend orientationchange touchcancel gesturestart gesturechange gestureend"[F](az),ba={mousedown:"touchstart",mousemove:"touchmove",mouseup:"touchend"},aN="join",o="length",bo=String[bm].toLowerCase,aj=Math,h=aj.max,a3=aj.min,ax="number",aa="string",aV="array",aP="toString",aS="fill",aK=Object[bm][aP],bc={},a6=aj.pow,f="push",bi=/^(?=[\da-f]$)/,c=/^url\(['"]?([^\)]+?)['"]?\)$/i,C=/^\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,Y=aj.round,A="setAttribute",ae=parseFloat,N=parseInt,aT=" progid:DXImageTransform.Microsoft",a8=String[bm].toUpperCase,l={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},ah={along:"along",blur:ax,"clip-rect":"csv",cx:ax,cy:ax,fill:"colour","fill-opacity":ax,"font-size":ax,height:ax,opacity:ax,path:"path",r:ax,rotation:"csv",rx:ax,ry:ax,scale:"csv",stroke:"colour","stroke-opacity":ax,"stroke-width":ax,translation:"csv",width:ax,x:ax,y:ax},bb="replace";aA.type=(aH.SVGAngle||V.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")?"SVG":"VML");if(aA.type=="VML"){var ap=V.createElement("div");ap.innerHTML="<!--[if vml]><br><br><![endif]-->";if(ap.childNodes[o]!=2){return aA.type=null;}ap=null;}aA.svg=!(aA.vml=aA.type=="VML");bh[bm]=aA[bm];aA._id=0;aA._oid=0;aA.fn={};aA.is=function(e,d){d=bo.call(d);return(d=="object"&&e===Object(e))||(d=="undefined"&&typeof e==d)||(d=="null"&&e==null)||bo.call(aK.call(e).slice(8,-1))==d;};aA.setWindow=function(d){aH=d;V=aH.document;};var aW=function(e){if(aA.vml){var d=/^\s+|\s+$/g;aW=at(function(R){var S;R=(R+aG)[bb](d,aG);try{var bp=new aH.ActiveXObject("htmlfile");bp.write("<body>");bp.close();S=bp.body;}catch(br){S=aH.createPopup().document.body;}var i=S.createTextRange();try{S.style.color=R;var bq=i.queryCommandValue("ForeColor");bq=((bq&255)<<16)|(bq&65280)|((bq&16711680)>>>16);return"#"+("000000"+bq[aP](16)).slice(-6);}catch(br){return"none";}});}else{var E=V.createElement("i");E.title="Rapha\xebl Colour Picker";E.style.display="none";V.body[a5](E);aW=at(function(i){E.style.color=i;return V.defaultView.getComputedStyle(E,aG).getPropertyValue("color");});}return aW(e);};var au=function(){return"hsb("+[this.h,this.s,this.b]+")";},y=function(){return this.hex;};aA.hsb2rgb=at(function(bs,bq,bw){if(aA.is(bs,"object")&&"h" in bs&&"s" in bs&&"b" in bs){bw=bs.b;bq=bs.s;bs=bs.h;}var R,S,bx;if(bw==0){return{r:0,g:0,b:0,hex:"#000"};}if(bs>1||bq>1||bw>1){bs/=255;bq/=255;bw/=255;}var bp=~~(bs*6),bt=(bs*6)-bp,E=bw*(1-bq),e=bw*(1-(bq*bt)),by=bw*(1-(bq*(1-bt)));R=[bw,e,E,E,by,bw,bw][bp];S=[by,bw,bw,e,E,E,by][bp];bx=[E,E,by,bw,bw,e,E][bp];R*=255;S*=255;bx*=255;var bu={r:R,g:S,b:bx,toString:y},d=(~~R)[aP](16),br=(~~S)[aP](16),bv=(~~bx)[aP](16);d=d[bb](bi,"0");br=br[bb](bi,"0");bv=bv[bb](bi,"0");bu.hex="#"+d+br+bv;return bu;},aA);aA.rgb2hsb=at(function(d,e,bq){if(aA.is(d,"object")&&"r" in d&&"g" in d&&"b" in d){bq=d.b;e=d.g;d=d.r;}if(aA.is(d,aa)){var bs=aA.getRGB(d);d=bs.r;e=bs.g;bq=bs.b;}if(d>1||e>1||bq>1){d/=255;e/=255;bq/=255;}var bp=h(d,e,bq),i=a3(d,e,bq),R,E,S=bp;if(i==bp){return{h:0,s:0,b:bp};}else{var br=(bp-i);E=br/bp;if(d==bp){R=(e-bq)/br;}else{if(e==bp){R=2+((bq-d)/br);}else{R=4+((d-e)/br);}}R/=6;R<0&&R++;R>1&&R--;}return{h:R,s:E,b:S,toString:au};},aA);var aX=/,?([achlmqrstvxz]),?/gi,aZ=/\s*,\s*/,j={hs:1,rg:1};aA._path2string=function(){return this.join(",")[bb](aX,"$1");};function at(E,e,d){function i(){var R=Array[bm].slice.call(arguments,0),bp=R[aN]("\u25ba"),S=i.cache=i.cache||{},bq=i.count=i.count||[];if(S[ab](bp)){return d?d(S[bp]):S[bp];}bq[o]>=1000&&delete S[bq.shift()];bq[f](bp);S[bp]=E[bk](e,R);return d?d(S[bp]):S[bp];}return i;}aA.getRGB=at(function(e){if(!e||!!((e=e+aG).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"};}!(j[ab](e.substring(0,2))||e.charAt()=="#")&&(e=aW(e));var bp,i,E,bs,S,bt,bq=e.match(C);if(bq){if(bq[2]){bs=N(bq[2].substring(5),16);E=N(bq[2].substring(3,5),16);i=N(bq[2].substring(1,3),16);}if(bq[3]){bs=N((bt=bq[3].charAt(3))+bt,16);E=N((bt=bq[3].charAt(2))+bt,16);i=N((bt=bq[3].charAt(1))+bt,16);}if(bq[4]){bq=bq[4][F](aZ);i=ae(bq[0]);E=ae(bq[1]);bs=ae(bq[2]);S=ae(bq[3]);}if(bq[5]){bq=bq[5][F](aZ);i=ae(bq[0])*2.55;E=ae(bq[1])*2.55;bs=ae(bq[2])*2.55;S=ae(bq[3]);}if(bq[6]){bq=bq[6][F](aZ);i=ae(bq[0]);E=ae(bq[1]);bs=ae(bq[2]);return aA.hsb2rgb(i,E,bs);}if(bq[7]){bq=bq[7][F](aZ);i=ae(bq[0])*2.55;E=ae(bq[1])*2.55;bs=ae(bq[2])*2.55;return aA.hsb2rgb(i,E,bs);}bq={r:i,g:E,b:bs};var d=(~~i)[aP](16),R=(~~E)[aP](16),br=(~~bs)[aP](16);d=d[bb](bi,"0");R=R[bb](bi,"0");br=br[bb](bi,"0");bq.hex="#"+d+R+br;isFinite(ae(S))&&(bq.o=S);return bq;}return{r:-1,g:-1,b:-1,hex:"none",error:1};},aA);aA.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;};aA.getColor.reset=function(){delete this.start;};var aI=/([achlmqstvz])[\s,]*((-?\d*\.?\d*(?:e[-+]?\d+)?\s*,?\s*)+)/ig,ay=/(-?\d*\.?\d*(?:e[-+]?\d+)?)\s*,?\s*/ig;aA.parsePathString=at(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(aA.is(d,aV)&&aA.is(d[0],aV)){e=aJ(d);}if(!e[o]){(d+aG)[bb](aI,function(R,E,bq){var bp=[],S=bo.call(E);bq[bb](ay,function(bs,br){br&&bp[f](+br);});if(S=="m"&&bp[o]>2){e[f]([E][bf](bp.splice(0,2)));S="l";E=E=="m"?"l":"L";}while(bp[o]>=i[S]){e[f]([E][bf](bp.splice(0,i[S])));if(!i[S]){break;}}});}e[aP]=aA._path2string;return e;});aA.findDotsAtSegment=function(e,d,bD,bB,bp,R,br,bq,bx){var bv=1-bx,bu=a6(bv,3)*e+a6(bv,2)*3*bx*bD+bv*3*bx*bx*bp+a6(bx,3)*br,bs=a6(bv,3)*d+a6(bv,2)*3*bx*bB+bv*3*bx*bx*R+a6(bx,3)*bq,bz=e+2*bx*(bD-e)+bx*bx*(bp-2*bD+e),by=d+2*bx*(bB-d)+bx*bx*(R-2*bB+d),bC=bD+2*bx*(bp-bD)+bx*bx*(br-2*bp+bD),bA=bB+2*bx*(R-bB)+bx*bx*(bq-2*R+bB),bw=(1-bx)*e+bx*bD,bt=(1-bx)*d+bx*bB,E=(1-bx)*bp+bx*br,i=(1-bx)*R+bx*bq,S=(90-aj.atan((bz-bC)/(by-bA))*180/aj.PI);(bz>bC||by<bA)&&(S+=180);return{x:bu,y:bs,m:{x:bz,y:by},n:{x:bC,y:bA},start:{x:bw,y:bt},end:{x:E,y:i},alpha:S};};var ad=at(function(bu){if(!bu){return{x:0,y:0,width:0,height:0};}bu=O(bu);var br=0,bq=0,R=[],e=[],E;for(var S=0,bt=bu[o];S<bt;S++){E=bu[S];if(E[0]=="M"){br=E[1];bq=E[2];R[f](br);e[f](bq);}else{var bp=aU(br,bq,E[1],E[2],E[3],E[4],E[5],E[6]);R=R[bf](bp.min.x,bp.max.x);e=e[bf](bp.min.y,bp.max.y);br=E[5];bq=E[6];}}var d=a3[bk](0,R),bs=a3[bk](0,e);return{x:d,y:bs,width:h[bk](0,R)-d,height:h[bk](0,e)-bs};}),aJ=function(bp){var E=[];if(!aA.is(bp,aV)||!aA.is(bp&&bp[0],aV)){bp=aA.parsePathString(bp);}for(var e=0,R=bp[o];e<R;e++){E[e]=[];for(var d=0,S=bp[e][o];d<S;d++){E[e][d]=bp[e][d];}}E[aP]=aA._path2string;return E;},am=at(function(R){if(!aA.is(R,aV)||!aA.is(R&&R[0],aV)){R=aA.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[f](["M",bv,bu]);}for(var bq=E,bz=R[o];bq<bz;bq++){var d=bt[bq]=[],bw=R[bq];if(bw[0]!=bo.call(bw[0])){d[0]=bo.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).toFixed(3);d[7]=+(bw[7]-bu).toFixed(3);break;case"v":d[1]=+(bw[1]-bu).toFixed(3);break;case"m":by=bw[1];bx=bw[2];default:for(var bp=1,br=bw[o];bp<br;bp++){d[bp]=+(bw[bp]-((bp%2)?bv:bu)).toFixed(3);}}}else{d=bt[bq]=[];if(bw[0]=="m"){by=bw[1]+bv;bx=bw[2]+bu;}for(var S=0,e=bw[o];S<e;S++){bt[bq][S]=bw[S];}}var bs=bt[bq][o];switch(bt[bq][0]){case"z":bv=by;bu=bx;break;case"h":bv+=+bt[bq][bs-1];break;case"v":bu+=+bt[bq][bs-1];break;default:bv+=+bt[bq][bs-2];bu+=+bt[bq][bs-1];}}bt[aP]=aA._path2string;return bt;},0,aJ),v=at(function(R){if(!aA.is(R,aV)||!aA.is(R&&R[0],aV)){R=aA.parsePathString(R);}var bs=[],bu=0,bt=0,bx=0,bw=0,E=0;if(R[0][0]=="M"){bu=+R[0][1];bt=+R[0][2];bx=bu;bw=bt;E++;bs[0]=["M",bu,bt];}for(var bq=E,by=R[o];bq<by;bq++){var d=bs[bq]=[],bv=R[bq];if(bv[0]!=a8.call(bv[0])){d[0]=a8.call(bv[0]);switch(d[0]){case"A":d[1]=bv[1];d[2]=bv[2];d[3]=bv[3];d[4]=bv[4];d[5]=bv[5];d[6]=+(bv[6]+bu);d[7]=+(bv[7]+bt);break;case"V":d[1]=+bv[1]+bt;break;case"H":d[1]=+bv[1]+bu;break;case"M":bx=+bv[1]+bu;bw=+bv[2]+bt;default:for(var bp=1,br=bv[o];bp<br;bp++){d[bp]=+bv[bp]+((bp%2)?bu:bt);}}}else{for(var S=0,e=bv[o];S<e;S++){bs[bq][S]=bv[S];}}switch(d[0]){case"Z":bu=bx;bt=bw;break;case"H":bu=d[1];break;case"V":bt=d[1];break;default:bu=bs[bq][bs[bq][o]-2];bt=bs[bq][bs[bq][o]-1];}}bs[aP]=aA._path2string;return bs;},null,aJ),bl=function(e,E,d,i){return[e,E,d,i,d,i];},a4=function(e,E,bp,R,d,i){var S=1/3,bq=2/3;return[S*e+bq*bp,S*E+bq*R,S*d+bq*bp,S*i+bq*R,d,i];},U=function(by,b3,bH,bF,bz,bt,S,bx,b2,bA){var R=aj.PI,bE=R*120/180,d=R/180*(+bz||0),bL=[],bI,bZ=at(function(b4,b7,i){var b6=b4*aj.cos(i)-b7*aj.sin(i),b5=b4*aj.sin(i)+b7*aj.cos(i);return{x:b6,y:b5};});if(!bA){bI=bZ(by,b3,-d);by=bI.x;b3=bI.y;bI=bZ(bx,b2,-d);bx=bI.x;b2=bI.y;var e=aj.cos(R/180*bz),bv=aj.sin(R/180*bz),bN=(by-bx)/2,bM=(b3-b2)/2;var bX=(bN*bN)/(bH*bH)+(bM*bM)/(bF*bF);if(bX>1){bX=aj.sqrt(bX);bH=bX*bH;bF=bX*bF;}var E=bH*bH,bQ=bF*bF,bS=(bt==S?-1:1)*aj.sqrt(aj.abs((E*bQ-E*bM*bM-bQ*bN*bN)/(E*bM*bM+bQ*bN*bN))),bC=bS*bH*bM/bF+(by+bx)/2,bB=bS*-bF*bN/bH+(b3+b2)/2,bs=aj.asin(((b3-bB)/bF).toFixed(7)),br=aj.asin(((b2-bB)/bF).toFixed(7));bs=by<bC?R-bs:bs;br=bx<bC?R-br:br;bs<0&&(bs=R*2+bs);br<0&&(br=R*2+br);if(S&&bs>br){bs=bs-R*2;}if(!S&&br>bs){br=br-R*2;}}else{bs=bA[0];br=bA[1];bC=bA[2];bB=bA[3];}var bw=br-bs;if(aj.abs(bw)>bE){var bD=br,bG=bx,bu=b2;br=bs+bE*(S&&br>bs?1:-1);bx=bC+bH*aj.cos(br);b2=bB+bF*aj.sin(br);bL=U(bx,b2,bH,bF,bz,0,S,bG,bu,[br,bD,bC,bB]);}bw=br-bs;var bq=aj.cos(bs),b1=aj.sin(bs),bp=aj.cos(br),b0=aj.sin(br),bO=aj.tan(bw/4),bR=4/3*bH*bO,bP=4/3*bF*bO,bY=[by,b3],bW=[by+bR*b1,b3-bP*bq],bV=[bx+bR*b0,b2-bP*bp],bT=[bx,b2];bW[0]=2*bY[0]-bW[0];bW[1]=2*bY[1]-bW[1];if(bA){return[bW,bV,bT][bf](bL);}else{bL=[bW,bV,bT][bf](bL)[aN]()[F](",");var bJ=[];for(var bU=0,bK=bL[o];bU<bK;bU++){bJ[bU]=bU%2?bZ(bL[bU-1],bL[bU],d).y:bZ(bL[bU],bL[bU+1],d).x;}return bJ;}},X=function(e,d,E,i,br,bq,bp,S,bs){var R=1-bs;return{x:a6(R,3)*e+a6(R,2)*3*bs*E+R*3*bs*bs*br+a6(bs,3)*bp,y:a6(R,3)*d+a6(R,2)*3*bs*i+R*3*bs*bs*bq+a6(bs,3)*S};},aU=at(function(i,d,R,E,by,bx,bu,br){var bw=(by-2*R+i)-(bu-2*by+R),bt=2*(R-i)-2*(by-R),bq=i-R,bp=(-bt+aj.sqrt(bt*bt-4*bw*bq))/2/bw,S=(-bt-aj.sqrt(bt*bt-4*bw*bq))/2/bw,bs=[d,br],bv=[i,bu],e;aj.abs(bp)>1000000000000&&(bp=0.5);aj.abs(S)>1000000000000&&(S=0.5);if(bp>0&&bp<1){e=X(i,d,R,E,by,bx,bu,br,bp);bv[f](e.x);bs[f](e.y);}if(S>0&&S<1){e=X(i,d,R,E,by,bx,bu,br,S);bv[f](e.x);bs[f](e.y);}bw=(bx-2*E+d)-(br-2*bx+E);bt=2*(E-d)-2*(bx-E);bq=d-E;bp=(-bt+aj.sqrt(bt*bt-4*bw*bq))/2/bw;S=(-bt-aj.sqrt(bt*bt-4*bw*bq))/2/bw;aj.abs(bp)>1000000000000&&(bp=0.5);aj.abs(S)>1000000000000&&(S=0.5);if(bp>0&&bp<1){e=X(i,d,R,E,by,bx,bu,br,bp);bv[f](e.x);bs[f](e.y);}if(S>0&&S<1){e=X(i,d,R,E,by,bx,bu,br,S);bv[f](e.x);bs[f](e.y);}return{min:{x:a3[bk](0,bv),y:a3[bk](0,bs)},max:{x:h[bk](0,bv),y:h[bk](0,bs)}};}),O=at(function(by,bt){var R=v(by),bu=bt&&v(bt),bv={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},bp=function(bz,bA){var i,bB;if(!bz){return["C",bA.x,bA.y,bA.x,bA.y,bA.x,bA.y];}!(bz[0] in {T:1,Q:1})&&(bA.qx=bA.qy=null);switch(bz[0]){case"M":bA.X=bz[1];bA.Y=bz[2];break;case"A":bz=["C"][bf](U[bk](0,[bA.x,bA.y][bf](bz.slice(1))));break;case"S":i=bA.x+(bA.x-(bA.bx||bA.x));bB=bA.y+(bA.y-(bA.by||bA.y));bz=["C",i,bB][bf](bz.slice(1));break;case"T":bA.qx=bA.x+(bA.x-(bA.qx||bA.x));bA.qy=bA.y+(bA.y-(bA.qy||bA.y));bz=["C"][bf](a4(bA.x,bA.y,bA.qx,bA.qy,bz[1],bz[2]));break;case"Q":bA.qx=bz[1];bA.qy=bz[2];bz=["C"][bf](a4(bA.x,bA.y,bz[1],bz[2],bz[3],bz[4]));break;case"L":bz=["C"][bf](bl(bA.x,bA.y,bz[1],bz[2]));break;case"H":bz=["C"][bf](bl(bA.x,bA.y,bz[1],bA.y));break;case"V":bz=["C"][bf](bl(bA.x,bA.y,bA.x,bz[1]));break;case"Z":bz=["C"][bf](bl(bA.x,bA.y,bA.X,bA.Y));break;}return bz;},e=function(bz,bA){if(bz[bA][o]>7){bz[bA].shift();var bB=bz[bA];while(bB[o]){bz.splice(bA++,0,["C"][bf](bB.splice(0,6)));}bz.splice(bA,1);bw=h(R[o],bu&&bu[o]||0);}},E=function(bD,bC,bA,bz,bB){if(bD&&bC&&bD[bB][0]=="M"&&bC[bB][0]!="M"){bC.splice(bB,0,["M",bz.x,bz.y]);bA.bx=0;bA.by=0;bA.x=bD[bB][1];bA.y=bD[bB][2];bw=h(R[o],bu&&bu[o]||0);}};for(var br=0,bw=h(R[o],bu&&bu[o]||0);br<bw;br++){R[br]=bp(R[br],bv);e(R,br);bu&&(bu[br]=bp(bu[br],d));bu&&e(bu,br);E(R,bu,bv,d,br);E(bu,R,d,bv,br);var bq=R[br],bx=bu&&bu[br],S=bq[o],bs=bu&&bx[o];bv.x=bq[S-2];bv.y=bq[S-1];bv.bx=ae(bq[S-4])||bv.x;bv.by=ae(bq[S-3])||bv.y;d.bx=bu&&(ae(bx[bs-4])||d.x);d.by=bu&&(ae(bx[bs-3])||d.y);d.x=bu&&bx[bs-2];d.y=bu&&bx[bs-1];}return bu?[R,bu]:R;},null,aJ),t=at(function(bt){var bs=[];for(var bp=0,bu=bt[o];bp<bu;bp++){var e={},br=bt[bp].match(/^([^:]*):?([\d\.]*)/);e.color=aA.getRGB(br[1]);if(e.color.error){return null;}e.color=e.color.hex;br[2]&&(e.offset=br[2]+"%");bs[f](e);}for(bp=1,bu=bs[o]-1;bp<bu;bp++){if(!bs[bp].offset){var E=ae(bs[bp-1].offset||0),R=0;for(var S=bp+1;S<bu;S++){if(bs[S].offset){R=bs[S].offset;break;}}if(!R){R=100;S=bu;}R=ae(R);var bq=(R-E)/(S-bp+1);for(;bp<S;bp++){E+=bq;bs[bp].offset=E+"%";}}}return bs;}),aB=function(d,R,i,E){var e;if(aA.is(d,aa)||aA.is(d,"object")){e=aA.is(d,aa)?V.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};}},a0=function(d,i){var e=this;for(var E in i){if(i[ab](E)&&!(E in d)){switch(typeof i[E]){case"function":(function(R){d[E]=d===e?R:function(){return R[bk](e,arguments);};})(i[E]);break;case"object":d[E]=d[E]||{};a0.call(this,d[E],i[E]);break;default:d[E]=i[E];break;}}}},aw=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);},ag=function(d,e){if(e.top===d){return;}aw(d,e);d.next=null;d.prev=e.top;e.top.next=d;e.top=d;},m=function(d,e){if(e.bottom===d){return;}aw(d,e);d.next=e.bottom;d.prev=null;e.bottom.prev=d;e.bottom=d;},G=function(e,d,i){aw(e,i);d==i.top&&(i.top=e);d.next&&(d.next.prev=e);e.next=d.next;e.prev=d;d.next=e;},aD=function(e,d,i){aw(e,i);d==i.bottom&&(i.bottom=e);d.prev&&(d.prev.next=e);e.prev=d.prev;d.prev=e;e.next=d;},w=function(d){return function(){throw new Error("Rapha\xebl: you are calling to method \u201c"+d+"\u201d of removed object");};},aF=/^r(?:\(([^,]+?)\s*,\s*([^\)]+?)\))?/;if(aA.svg){bh[bm].svgns="http://www.w3.org/2000/svg";bh[bm].xlink="http://www.w3.org/1999/xlink";Y=function(d){return +d+(~~d===d)*0.5;};var a2=function(i,d){if(d){for(var e in d){if(d[ab](e)){i[A](e,d[e]+aG);}}}else{i=V.createElementNS(bh[bm].svgns,i);i.style.webkitTapHighlightColor="rgba(0,0,0,0)";return i;}};aA[aP]=function(){return"Your browser supports SVG.\nYou are running Rapha\xebl "+this.version;};var u=function(d,E){var e=a2("path");E.canvas&&E.canvas[a5](e);var i=new aL(e,E);i.type="path";ai(i,{fill:"none",stroke:"#000",path:d});return i;};var b=function(R,bx,d){var bu="linear",br=0.5,bp=0.5,bz=R.style;bx=(bx+aG)[bb](aF,function(bB,i,bC){bu="radial";if(i&&bC){br=ae(i);bp=ae(bC);var bA=((bp>0.5)*2-1);a6(br-0.5,2)+a6(bp-0.5,2)>0.25&&(bp=aj.sqrt(0.25-a6(br-0.5,2))*bA+0.5)&&bp!=0.5&&(bp=bp.toFixed(5)-0.00001*bA);}return aG;});bx=bx[F](/\s*\-\s*/);if(bu=="linear"){var bq=bx.shift();bq=-ae(bq);if(isNaN(bq)){return null;}var S=[0,0,aj.cos(bq*aj.PI/180),aj.sin(bq*aj.PI/180)],bw=1/(h(aj.abs(S[2]),aj.abs(S[3]))||1);S[2]*=bw;S[3]*=bw;if(S[2]<0){S[0]=-S[2];S[2]=0;}if(S[3]<0){S[1]=-S[3];S[3]=0;}}var bt=t(bx);if(!bt){return null;}var e=R.getAttribute(aS);e=e.match(/^url\(#(.*)\)$/);e&&d.defs.removeChild(V.getElementById(e[1]));var E=a2(bu+"Gradient");E.id="r"+(aA._id++)[aP](36);a2(E,bu=="radial"?{fx:br,fy:bp}:{x1:S[0],y1:S[1],x2:S[2],y2:S[3]});d.defs[a5](E);for(var bs=0,by=bt[o];bs<by;bs++){var bv=a2("stop");a2(bv,{offset:bt[bs].offset?bt[bs].offset:!bs?"0%":"100%","stop-color":bt[bs].color||"#fff"});E[a5](bv);}a2(R,{fill:"url(#"+E.id+")",opacity:1,"fill-opacity":1});bz.fill=aG;bz.opacity=1;bz.fillOpacity=1;return 1;};var W=function(e){var d=e.getBBox();a2(e.pattern,{patternTransform:aA.format("translate({0},{1})",d.x,d.y)});};var ai=function(bw,bF){var bz={"":[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]},bB=bw.node,bx=bw.attrs,bt=bw.rotate(),bp=function(bM,bL){bL=bz[bo.call(bL)];if(bL){var bJ=bM.attrs["stroke-width"]||"1",bH={round:bJ,square:bJ,butt:0}[bM.attrs["stroke-linecap"]||bF["stroke-linecap"]]||0,bK=[];var bI=bL[o];while(bI--){bK[bI]=bL[bI]*bJ+((bI%2)?1:-1)*bH;}a2(bB,{"stroke-dasharray":bK[aN](",")});}};bF[ab]("rotation")&&(bt=bF.rotation);var bs=(bt+aG)[F](a);if(!(bs.length-1)){bs=null;}else{bs[1]=+bs[1];bs[2]=+bs[2];}ae(bt)&&bw.rotate(0,true);for(var bA in bF){if(bF[ab](bA)){if(!l[ab](bA)){continue;}var by=bF[bA];bx[bA]=by;switch(bA){case"blur":bw.blur(by);break;case"rotation":bw.rotate(by,true);break;case"href":case"title":case"target":var bD=bB.parentNode;if(bo.call(bD.tagName)!="a"){var R=a2("a");bD.insertBefore(R,bB);R[a5](bB);bD=R;}bD.setAttributeNS(bw.paper.xlink,bA,by);break;case"cursor":bB.style.cursor=by;break;case"clip-rect":var e=(by+aG)[F](a);if(e[o]==4){bw.clip&&bw.clip.parentNode.parentNode.removeChild(bw.clip.parentNode);var i=a2("clipPath"),bC=a2("rect");i.id="r"+(aA._id++)[aP](36);a2(bC,{x:e[0],y:e[1],width:e[2],height:e[3]});i[a5](bC);bw.paper.defs[a5](i);a2(bB,{"clip-path":"url(#"+i.id+")"});bw.clip=bC;}if(!by){var bE=V.getElementById(bB.getAttribute("clip-path")[bb](/(^url\(#|\)$)/g,aG));bE&&bE.parentNode.removeChild(bE);a2(bB,{"clip-path":aG});delete bw.clip;}break;case"path":if(bw.type=="path"){a2(bB,{d:by?bx.path=v(by):"M0,0"});}break;case"width":bB[A](bA,by);if(bx.fx){bA="x";by=bx.x;}else{break;}case"x":if(bx.fx){by=-bx.x-(bx.width||0);}case"rx":if(bA=="rx"&&bw.type=="rect"){break;}case"cx":bs&&(bA=="x"||bA=="cx")&&(bs[1]+=by-bx[bA]);bB[A](bA,Y(by));bw.pattern&&W(bw);break;case"height":bB[A](bA,by);if(bx.fy){bA="y";by=bx.y;}else{break;}case"y":if(bx.fy){by=-bx.y-(bx.height||0);}case"ry":if(bA=="ry"&&bw.type=="rect"){break;}case"cy":bs&&(bA=="y"||bA=="cy")&&(bs[2]+=by-bx[bA]);bB[A](bA,Y(by));bw.pattern&&W(bw);break;case"r":if(bw.type=="rect"){a2(bB,{rx:by,ry:by});}else{bB[A](bA,by);}break;case"src":if(bw.type=="image"){bB.setAttributeNS(bw.paper.xlink,"href",by);}break;case"stroke-width":bB.style.strokeWidth=by;bB[A](bA,by);if(bx["stroke-dasharray"]){bp(bw,bx["stroke-dasharray"]);}break;case"stroke-dasharray":bp(bw,by);break;case"translation":var bq=(by+aG)[F](a);bq[0]=+bq[0]||0;bq[1]=+bq[1]||0;if(bs){bs[1]+=bq[0];bs[2]+=bq[1];}x.call(bw,bq[0],bq[1]);break;case"scale":bq=(by+aG)[F](a);bw.scale(+bq[0]||1,+bq[1]||+bq[0]||1,isNaN(ae(bq[2]))?null:+bq[2],isNaN(ae(bq[3]))?null:+bq[3]);break;case aS:var S=(by+aG).match(c);if(S){i=a2("pattern");var bv=a2("image");i.id="r"+(aA._id++)[aP](36);a2(i,{x:0,y:0,patternUnits:"userSpaceOnUse",height:1,width:1});a2(bv,{x:0,y:0});bv.setAttributeNS(bw.paper.xlink,"href",S[1]);i[a5](bv);var bG=V.createElement("img");bG.style.cssText="position:absolute;left:-9999em;top-9999em";bG.onload=function(){a2(i,{width:this.offsetWidth,height:this.offsetHeight});a2(bv,{width:this.offsetWidth,height:this.offsetHeight});V.body.removeChild(this);bw.paper.safari();};V.body[a5](bG);bG.src=S[1];bw.paper.defs[a5](i);bB.style.fill="url(#"+i.id+")";a2(bB,{fill:"url(#"+i.id+")"});bw.pattern=i;bw.pattern&&W(bw);break;}var E=aA.getRGB(by);if(!E.error){delete bF.gradient;delete bx.gradient;!aA.is(bx.opacity,"undefined")&&aA.is(bF.opacity,"undefined")&&a2(bB,{opacity:bx.opacity});!aA.is(bx["fill-opacity"],"undefined")&&aA.is(bF["fill-opacity"],"undefined")&&a2(bB,{"fill-opacity":bx["fill-opacity"]});}else{if((({circle:1,ellipse:1})[ab](bw.type)||(by+aG).charAt()!="r")&&b(bB,by,bw.paper)){bx.gradient=by;bx.fill="none";break;}}E[ab]("o")&&a2(bB,{"fill-opacity":E.o/100});case"stroke":E=aA.getRGB(by);bB[A](bA,E.hex);bA=="stroke"&&E[ab]("o")&&a2(bB,{"stroke-opacity":E.o/100});break;case"gradient":(({circle:1,ellipse:1})[ab](bw.type)||(by+aG).charAt()!="r")&&b(bB,by,bw.paper);break;case"opacity":case"fill-opacity":if(bx.gradient){var d=V.getElementById(bB.getAttribute(aS)[bb](/^url\(#|\)$/g,aG));if(d){var br=d.getElementsByTagName("stop");br[br[o]-1][A]("stop-opacity",by);}break;}default:bA=="font-size"&&(by=N(by,10)+"px");var bu=bA[bb](/(\-.)/g,function(bH){return a8.call(bH.substring(1));});bB.style[bu]=by;bB[A](bA,by);break;}}}L(bw,bF);if(bs){bw.rotate(bs.join(az));}else{ae(bt)&&bw.rotate(bt,true);}};var k=1.2,L=function(d,R){if(d.type!="text"||!(R[ab]("text")||R[ab]("font")||R[ab]("font-size")||R[ab]("x")||R[ab]("y"))){return;}var bs=d.attrs,e=d.node,bu=e.firstChild?N(V.defaultView.getComputedStyle(e.firstChild,aG).getPropertyValue("font-size"),10):10;if(R[ab]("text")){bs.text=R.text;while(e.firstChild){e.removeChild(e.firstChild);}var E=(R.text+aG)[F]("\n");for(var S=0,bt=E[o];S<bt;S++){if(E[S]){var bq=a2("tspan");S&&a2(bq,{dy:bu*k,x:bs.x});bq[a5](V.createTextNode(E[S]));e[a5](bq);}}}else{E=e.getElementsByTagName("tspan");for(S=0,bt=E[o];S<bt;S++){S&&a2(E[S],{dy:bu*k,x:bs.x});}}a2(e,{y:bs.y});var bp=d.getBBox(),br=bs.y-(bp.y+bp.height/2);br&&isFinite(br)&&a2(e,{y:bs.y+br});},aL=function(e,d){var E=0,i=0;this[0]=e;this.id=aA._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;};aL[bm].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][aN](az);}return this._.rt.deg;}var i=this.getBBox();e=(e+aG)[F](a);if(e[o]-1){d=ae(e[1]);E=ae(e[2]);}e=ae(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]=aA.format("rotate({0} {1} {2})",this._.rt.deg,d,E);this.clip&&a2(this.clip,{transform:aA.format("rotate({0} {1} {2})",-this._.rt.deg,d,E)});}else{this.transformations[0]=aG;this.clip&&a2(this.clip,{transform:aG});}a2(this.node,{transform:this.transformations[aN](az)});return this;};aL[bm].hide=function(){!this.removed&&(this.node.style.display="none");return this;};aL[bm].show=function(){!this.removed&&(this.node.style.display="");return this;};aL[bm].remove=function(){if(this.removed){return;}aw(this,this.paper);this.node.parentNode.removeChild(this.node);for(var d in this){delete this[d];}this.removed=true;};aL[bm].getBBox=function(){if(this.removed){return this;}if(this.type=="path"){return ad(this.attrs.path);}if(this.node.style.display=="none"){this.show();var E=true;}var bq={};try{bq=this.node.getBBox();}catch(S){}finally{bq=bq||{};}if(this.type=="text"){bq={x:bq.x,y:Infinity,width:0,height:0};for(var d=0,R=this.node.getNumberOfChars();d<R;d++){var bp=this.node.getExtentOfChar(d);(bp.y<bq.y)&&(bq.y=bp.y);(bp.y+bp.height-bq.y>bq.height)&&(bq.height=bp.y+bp.height-bq.y);(bp.x+bp.width-bq.x>bq.width)&&(bq.width=bp.x+bp.width-bq.x);}}E&&this.hide();return bq;};aL[bm].attr=function(E,bq){if(this.removed){return this;}if(E==null){var S={};for(var R in this.attrs){if(this.attrs[ab](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(bq==null&&aA.is(E,aa)){if(E=="translation"){return x.call(this);}if(E=="rotation"){return this.rotate();}if(E=="scale"){return this.scale();}if(E==aS&&this.attrs.fill=="none"&&this.attrs.gradient){return this.attrs.gradient;}return this.attrs[E];}if(bq==null&&aA.is(E,aV)){var d={};for(var e=0,bp=E.length;e<bp;e++){d[E[e]]=this.attr(E[e]);}return d;}if(bq!=null){var br={};br[E]=bq;ai(this,br);}else{if(E!=null&&aA.is(E,"object")){ai(this,E);}}return this;};aL[bm].toFront=function(){if(this.removed){return this;}this.node.parentNode[a5](this.node);var d=this.paper;d.top!=this&&ag(this,d);return this;};aL[bm].toBack=function(){if(this.removed){return this;}if(this.node.parentNode.firstChild!=this.node){this.node.parentNode.insertBefore(this.node,this.node.parentNode.firstChild);m(this,this.paper);var d=this.paper;}return this;};aL[bm].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[a5](this.node);}G(this,d,this.paper);return this;};aL[bm].insertBefore=function(d){if(this.removed){return this;}var e=d.node;e.parentNode.insertBefore(this.node,e);aD(this,d,this.paper);return this;};aL[bm].blur=function(e){var d=this;if(+e!==0){var i=a2("filter"),E=a2("feGaussianBlur");d.attrs.blur=e;i.id="r"+(aA._id++)[aP](36);a2(E,{stdDeviation:+e||1.5});i.appendChild(E);d.paper.defs.appendChild(i);d._blur=i;a2(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 Z=function(e,d,S,R){d=Y(d);S=Y(S);var E=a2("circle");e.canvas&&e.canvas[a5](E);var i=new aL(E,e);i.attrs={cx:d,cy:S,r:R,fill:"none",stroke:"#000"};i.type="circle";a2(E,i.attrs);return i;};var aY=function(i,d,bq,e,S,bp){d=Y(d);bq=Y(bq);var R=a2("rect");i.canvas&&i.canvas[a5](R);var E=new aL(R,i);E.attrs={x:d,y:bq,width:e,height:S,r:bp||0,rx:bp||0,ry:bp||0,fill:"none",stroke:"#000"};E.type="rect";a2(R,E.attrs);return E;};var ar=function(e,d,bp,S,R){d=Y(d);bp=Y(bp);var E=a2("ellipse");e.canvas&&e.canvas[a5](E);var i=new aL(E,e);i.attrs={cx:d,cy:bp,rx:S,ry:R,fill:"none",stroke:"#000"};i.type="ellipse";a2(E,i.attrs);return i;};var s=function(i,bp,d,bq,e,S){var R=a2("image");a2(R,{x:d,y:bq,width:e,height:S,preserveAspectRatio:"none"});R.setAttributeNS(i.xlink,"href",bp);i.canvas&&i.canvas[a5](R);var E=new aL(R,i);E.attrs={x:d,y:bq,width:e,height:S,src:bp};E.type="image";return E;};var af=function(e,d,S,R){var E=a2("text");a2(E,{x:d,y:S,"text-anchor":"middle"});e.canvas&&e.canvas[a5](E);var i=new aL(E,e);i.attrs={x:d,y:S,"text-anchor":"middle",text:R,font:l.font,stroke:"none",fill:"#000"};i.type="text";ai(i,i.attrs);return i;};var bj=function(e,d){this.width=e||this.width;this.height=d||this.height;this.canvas[A]("width",this.width);this.canvas[A]("height",this.height);return this;};var B=function(){var E=aB[bk](0,arguments),i=E&&E.container,e=E.x,bp=E.y,R=E.width,d=E.height;if(!i){throw new Error("SVG container not found.");}var S=a2("svg");e=e||0;bp=bp||0;R=R||512;d=d||342;a2(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:"+bp+"px";V.body[a5](S);}else{if(i.firstChild){i.insertBefore(S,i.firstChild);}else{i[a5](S);}}i=new bh;i.width=R;i.height=d;i.canvas=S;a0.call(i,i,aA.fn);i.clear();return i;};bh[bm].clear=function(){var d=this.canvas;while(d.firstChild){d.removeChild(d.firstChild);}this.bottom=this.top=null;(this.desc=a2("desc"))[a5](V.createTextNode("Created with Rapha\xebl"));d[a5](this.desc);d[a5](this.defs=a2("defs"));};bh[bm].remove=function(){this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas);for(var d in this){this[d]=w(d);}};}if(aA.vml){var J={M:"m",L:"l",C:"c",Z:"x",m:"t",l:"r",c:"v",z:"x"},aE=/([clmz]),?([^clmz]*)/gi,bn=/-?[^,\s-]+/g,aO=1000+az+1000,r=10,p={path:1,rect:1},a1=function(bu){var br=/[ahqstv]/ig,E=v;(bu+aG).match(br)&&(E=O);br=/[clmz]/g;if(E==v&&!(bu+aG).match(br)){var bq=(bu+aG)[bb](aE,function(bx,bz,bv){var by=[],i=bo.call(bz)=="m",bw=J[bz];bv[bb](bn,function(bA){if(i&&by[o]==2){bw+=by+J[bz=="m"?"l":"L"];by=[];}by[f](Y(bA*r));});return bw+by;});return bq;}var bs=E(bu),e,d;bq=[];for(var S=0,bt=bs[o];S<bt;S++){e=bs[S];d=bo.call(bs[S][0]);d=="z"&&(d="x");for(var R=1,bp=e[o];R<bp;R++){d+=Y(e[R]*r)+(R!=bp-1?",":aG);}bq[f](d);}return bq[aN](az);};aA[aP]=function(){return"Your browser doesn\u2019t support SVG. Falling down to VML.\nYou are running Rapha\xebl "+this.version;};u=function(i,e){var S=aq("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=aq("shape"),E=R.style;E.width=e.width+"px";E.height=e.height+"px";R.coordsize=aO;R.coordorigin=e.coordorigin;S[a5](R);var bp=new aL(R,S,e),d={fill:"none",stroke:"#000"};i&&(d.path=i);bp.isAbsolute=true;bp.type="path";bp.path=[];bp.Path=aG;ai(bp,d);e.canvas[a5](S);return bp;};ai=function(bs,bz){bs.attrs=bs.attrs||{};var bw=bs.node,bA=bs.attrs,bp=bw.style,E,by=(bz.x!=bA.x||bz.y!=bA.y||bz.width!=bA.width||bz.height!=bA.height||bz.r!=bA.r)&&bs.type=="rect",bE=bs;for(var bq in bz){if(bz[ab](bq)){bA[bq]=bz[bq];}}if(by){bA.path=al(bA.x,bA.y,bA.width,bA.height,bA.r);bs.X=bA.x;bs.Y=bA.y;bs.W=bA.width;bs.H=bA.height;}bz.href&&(bw.href=bz.href);bz.title&&(bw.title=bz.title);bz.target&&(bw.target=bz.target);bz.cursor&&(bp.cursor=bz.cursor);"blur" in bz&&bs.blur(bz.blur);if(bz.path&&bs.type=="path"||by){bw.path=a1(bA.path);}if(bz.rotation!=null){bs.rotate(bz.rotation,true);}if(bz.translation){E=(bz.translation+aG)[F](a);x.call(bs,E[0],E[1]);if(bs._.rt.cx!=null){bs._.rt.cx+=+E[0];bs._.rt.cy+=+E[1];bs.setBox(bs.attrs,E[0],E[1]);}}if(bz.scale){E=(bz.scale+aG)[F](a);bs.scale(+E[0]||1,+E[1]||+E[0]||1,+E[2]||null,+E[3]||null);}if("clip-rect" in bz){var d=(bz["clip-rect"]+aG)[F](a);if(d[o]==4){d[2]=+d[2]+(+d[0]);d[3]=+d[3]+(+d[1]);var br=bw.clipRect||V.createElement("div"),bD=br.style,S=bw.parentNode;bD.clip=aA.format("rect({1}px {2}px {3}px {0}px)",d);if(!bw.clipRect){bD.position="absolute";bD.top=0;bD.left=0;bD.width=bs.paper.width+"px";bD.height=bs.paper.height+"px";S.parentNode.insertBefore(br,S);br[a5](S);bw.clipRect=br;}}if(!bz["clip-rect"]){bw.clipRect&&(bw.clipRect.style.clip=aG);}}if(bs.type=="image"&&bz.src){bw.src=bz.src;}if(bs.type=="image"&&bz.opacity){bw.filterOpacity=aT+".Alpha(opacity="+(bz.opacity*100)+")";bp.filter=(bw.filterMatrix||aG)+(bw.filterOpacity||aG);}bz.font&&(bp.font=bz.font);bz["font-family"]&&(bp.fontFamily='"'+bz["font-family"][F](",")[0][bb](/^['"]+|['"]+$/g,aG)+'"');bz["font-size"]&&(bp.fontSize=bz["font-size"]);bz["font-weight"]&&(bp.fontWeight=bz["font-weight"]);bz["font-style"]&&(bp.fontStyle=bz["font-style"]);if(bz.opacity!=null||bz["stroke-width"]!=null||bz.fill!=null||bz.stroke!=null||bz["stroke-width"]!=null||bz["stroke-opacity"]!=null||bz["fill-opacity"]!=null||bz["stroke-dasharray"]!=null||bz["stroke-miterlimit"]!=null||bz["stroke-linejoin"]!=null||bz["stroke-linecap"]!=null){bw=bs.shape||bw;var bx=(bw.getElementsByTagName(aS)&&bw.getElementsByTagName(aS)[0]),bB=false;!bx&&(bB=bx=aq(aS));if("fill-opacity" in bz||"opacity" in bz){var e=((+bA["fill-opacity"]+1||2)-1)*((+bA.opacity+1||2)-1)*((+aA.getRGB(bz.fill).o+1||2)-1);e<0&&(e=0);e>1&&(e=1);bx.opacity=e;}bz.fill&&(bx.on=true);if(bx.on==null||bz.fill=="none"){bx.on=false;}if(bx.on&&bz.fill){var i=bz.fill.match(c);if(i){bx.src=i[1];bx.type="tile";}else{bx.color=aA.getRGB(bz.fill).hex;bx.src=aG;bx.type="solid";if(aA.getRGB(bz.fill).error&&(bE.type in {circle:1,ellipse:1}||(bz.fill+aG).charAt()!="r")&&b(bE,bz.fill)){bA.fill="none";bA.gradient=bz.fill;}}}bB&&bw[a5](bx);var R=(bw.getElementsByTagName("stroke")&&bw.getElementsByTagName("stroke")[0]),bC=false;!R&&(bC=R=aq("stroke"));if((bz.stroke&&bz.stroke!="none")||bz["stroke-width"]||bz["stroke-opacity"]!=null||bz["stroke-dasharray"]||bz["stroke-miterlimit"]||bz["stroke-linejoin"]||bz["stroke-linecap"]){R.on=true;}(bz.stroke=="none"||R.on==null||bz.stroke==0||bz["stroke-width"]==0)&&(R.on=false);var bv=aA.getRGB(bz.stroke);R.on&&bz.stroke&&(R.color=bv.hex);e=((+bA["stroke-opacity"]+1||2)-1)*((+bA.opacity+1||2)-1)*((+bv.o+1||2)-1);var bt=(ae(bz["stroke-width"])||1)*0.75;e<0&&(e=0);e>1&&(e=1);bz["stroke-width"]==null&&(bt=bA["stroke-width"]);bz["stroke-width"]&&(R.weight=bt);bt&&bt<1&&(e*=bt)&&(R.weight=1);R.opacity=e;bz["stroke-linejoin"]&&(R.joinstyle=bz["stroke-linejoin"]||"miter");R.miterlimit=bz["stroke-miterlimit"]||8;bz["stroke-linecap"]&&(R.endcap=bz["stroke-linecap"]=="butt"?"flat":bz["stroke-linecap"]=="square"?"square":"round");if(bz["stroke-dasharray"]){var bu={"-":"shortdash",".":"shortdot","-.":"shortdashdot","-..":"shortdashdotdot",". ":"dot","- ":"dash","--":"longdash","- .":"dashdot","--.":"longdashdot","--..":"longdashdotdot"};R.dashstyle=bu[ab](bz["stroke-dasharray"])?bu[bz["stroke-dasharray"]]:aG;}bC&&bw[a5](R);}if(bE.type=="text"){bp=bE.paper.span.style;bA.font&&(bp.font=bA.font);bA["font-family"]&&(bp.fontFamily=bA["font-family"]);bA["font-size"]&&(bp.fontSize=bA["font-size"]);bA["font-weight"]&&(bp.fontWeight=bA["font-weight"]);bA["font-style"]&&(bp.fontStyle=bA["font-style"]);bE.node.string&&(bE.paper.span.innerHTML=(bE.node.string+aG)[bb](/</g,"&#60;")[bb](/&/g,"&#38;")[bb](/\n/g,"<br>"));bE.W=bA.w=bE.paper.span.offsetWidth;bE.H=bA.h=bE.paper.span.offsetHeight;bE.X=bA.x;bE.Y=bA.y+Y(bE.H/2);switch(bA["text-anchor"]){case"start":bE.node.style["v-text-align"]="left";bE.bbx=Y(bE.W/2);break;case"end":bE.node.style["v-text-align"]="right";bE.bbx=-Y(bE.W/2);break;default:bE.node.style["v-text-align"]="center";break;}}};b=function(d,bq){d.attrs=d.attrs||{};var br=d.attrs,bt,S="linear",bp=".5 .5";d.attrs.gradient=bq;bq=(bq+aG)[bb](aF,function(bv,bw,i){S="radial";if(bw&&i){bw=ae(bw);i=ae(i);a6(bw-0.5,2)+a6(i-0.5,2)>0.25&&(i=aj.sqrt(0.25-a6(bw-0.5,2))*((i>0.5)*2-1)+0.5);bp=bw+az+i;}return aG;});bq=bq[F](/\s*\-\s*/);if(S=="linear"){var e=bq.shift();e=-ae(e);if(isNaN(e)){return null;}}var R=t(bq);if(!R){return null;}d=d.shape||d.node;bt=d.getElementsByTagName(aS)[0]||aq(aS);!bt.parentNode&&d.appendChild(bt);if(R[o]){bt.on=true;bt.method="none";bt.color=R[0].color;bt.color2=R[R[o]-1].color;var bu=[];for(var E=0,bs=R[o];E<bs;E++){R[E].offset&&bu[f](R[E].offset+az+R[E].color);}bt.colors&&(bt.colors.value=bu[o]?bu[aN]():"0% "+bt.color);if(S=="radial"){bt.type="gradientradial";bt.focus="100%";bt.focussize=bp;bt.focusposition=bp;}else{bt.type="gradient";bt.angle=(270-e)%360;}}return 1;};aL=function(R,bp,d){var S=0,i=0,e=0,E=1;this[0]=R;this.id=aA._oid++;this.node=R;R.raphael=this;this.X=0;this.Y=0;this.attrs={};this.Group=bp;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;};aL[bm].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][aN](az);}return this._.rt.deg;}e=(e+aG)[F](a);if(e[o]-1){d=ae(e[1]);i=ae(e[2]);}e=ae(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;};aL[bm].setBox=function(R,S,E){if(this.removed){return this;}var d=this.Group.style,bp=(this.shape&&this.shape.style)||this.node.style;R=R||{};for(var bq in R){if(R[ab](bq)){this.attrs[bq]=R[bq];}}S=S||this._.rt.cx;E=E||this._.rt.cy;var bt=this.attrs,bw,bv,bx,bs;switch(this.type){case"circle":bw=bt.cx-bt.r;bv=bt.cy-bt.r;bx=bs=bt.r*2;break;case"ellipse":bw=bt.cx-bt.rx;bv=bt.cy-bt.ry;bx=bt.rx*2;bs=bt.ry*2;break;case"image":bw=+bt.x;bv=+bt.y;bx=bt.width||0;bs=bt.height||0;break;case"text":this.textpath.v=["m",Y(bt.x),", ",Y(bt.y-2),"l",Y(bt.x)+1,", ",Y(bt.y-2)][aN](aG);bw=bt.x-Y(this.W/2);bv=bt.y-this.H/2;bx=this.W;bs=this.H;break;case"rect":case"path":if(!this.attrs.path){bw=0;bv=0;bx=this.paper.width;bs=this.paper.height;}else{var br=ad(this.attrs.path);bw=br.x;bv=br.y;bx=br.width;bs=br.height;}break;default:bw=0;bv=0;bx=this.paper.width;bs=this.paper.height;break;}S=(S==null)?bw+bx/2:S;E=(E==null)?bv+bs/2:E;var e=S-this.paper.width/2,bu=E-this.paper.height/2,by;d.left!=(by=e+"px")&&(d.left=by);d.top!=(by=bu+"px")&&(d.top=by);this.X=p[ab](this.type)?-e:bw;this.Y=p[ab](this.type)?-bu:bv;this.W=bx;this.H=bs;if(p[ab](this.type)){bp.left!=(by=-e*r+"px")&&(bp.left=by);bp.top!=(by=-bu*r+"px")&&(bp.top=by);}else{if(this.type=="text"){bp.left!=(by=-e+"px")&&(bp.left=by);bp.top!=(by=-bu+"px")&&(bp.top=by);}else{d.width!=(by=this.paper.width+"px")&&(d.width=by);d.height!=(by=this.paper.height+"px")&&(d.height=by);bp.left!=(by=bw-e+"px")&&(bp.left=by);bp.top!=(by=bv-bu+"px")&&(bp.top=by);bp.width!=(by=bx+"px")&&(bp.width=by);bp.height!=(by=bs+"px")&&(bp.height=by);}}};aL[bm].hide=function(){!this.removed&&(this.Group.style.display="none");return this;};aL[bm].show=function(){!this.removed&&(this.Group.style.display="block");return this;};aL[bm].getBBox=function(){if(this.removed){return this;}if(p[ab](this.type)){return ad(this.attrs.path);}return{x:this.X+(this.bbx||0),y:this.Y,width:this.W,height:this.H};};aL[bm].remove=function(){if(this.removed){return;}aw(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;};aL[bm].attr=function(e,bp){if(this.removed){return this;}if(e==null){var R={};for(var E in this.attrs){if(this.attrs[ab](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(bp==null&&aA.is(e,aa)){if(e=="translation"){return x.call(this);}if(e=="rotation"){return this.rotate();}if(e=="scale"){return this.scale();}if(e==aS&&this.attrs.fill=="none"&&this.attrs.gradient){return this.attrs.gradient;}return this.attrs[e];}if(this.attrs&&bp==null&&aA.is(e,aV)){var S,d={};for(E=0,S=e[o];E<S;E++){d[e[E]]=this.attr(e[E]);}return d;}var bq;if(bp!=null){bq={};bq[e]=bp;}bp==null&&aA.is(e,"object")&&(bq=e);if(bq){if(bq.text&&this.type=="text"){this.node.string=bq.text;}ai(this,bq);if(bq.gradient&&(({circle:1,ellipse:1})[ab](this.type)||(bq.gradient+aG).charAt()!="r")){b(this,bq.gradient);}(!p[ab](this.type)||this._.rt.deg)&&this.setBox(this.attrs);}return this;};aL[bm].toFront=function(){!this.removed&&this.Group.parentNode[a5](this.Group);this.paper.top!=this&&ag(this,this.paper);return this;};aL[bm].toBack=function(){if(this.removed){return this;}if(this.Group.parentNode.firstChild!=this.Group){this.Group.parentNode.insertBefore(this.Group,this.Group.parentNode.firstChild);m(this,this.paper);}return this;};aL[bm].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[a5](this.Group);}G(this,d,this.paper);return this;};aL[bm].insertBefore=function(d){if(this.removed){return this;}d.Group.parentNode.insertBefore(this.Group,d.Group);aD(this,d,this.paper);return this;};var bg=/ progid:\S+Blur\([^\)]+\)/g;aL[bm].blur=function(d){var e=this.node.style,i=e.filter;i=i.replace(bg,"");if(+d!==0){this.attrs.blur=d;e.filter=i+aT+".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;}};Z=function(e,d,bq,S){var R=aq("group"),bp=aq("oval"),i=bp.style;R.style.cssText="position:absolute;left:0;top:0;width:"+e.width+"px;height:"+e.height+"px";R.coordsize=aO;R.coordorigin=e.coordorigin;R[a5](bp);var E=new aL(bp,R,e);E.type="circle";ai(E,{stroke:"#000",fill:"none"});E.attrs.cx=d;E.attrs.cy=bq;E.attrs.r=S;E.setBox({x:d-S,y:bq-S,width:S*2,height:S*2});e.canvas[a5](R);return E;};function al(d,R,e,i,E){if(E){return aA.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 aA.format("M{0},{1}l{2},0,0,{3},{4},0z",d,R,e,i,-e);}}aY=function(e,bp,R,bq,i,d){var br=al(bp,R,bq,i,d),E=e.path(br),S=E.attrs;E.X=S.x=bp;E.Y=S.y=R;E.W=S.width=bq;E.H=S.height=i;S.r=d;S.path=br;E.type="rect";return E;};ar=function(d,br,bq,i,e){var R=aq("group"),E=aq("oval"),bp=E.style;R.style.cssText="position:absolute;left:0;top:0;width:"+d.width+"px;height:"+d.height+"px";R.coordsize=aO;R.coordorigin=d.coordorigin;R[a5](E);var S=new aL(E,R,d);S.type="ellipse";ai(S,{stroke:"#000"});S.attrs.cx=br;S.attrs.cy=bq;S.attrs.rx=i;S.attrs.ry=e;S.setBox({x:br-i,y:bq-e,width:i*2,height:e*2});d.canvas[a5](R);return S;};s=function(e,d,br,bq,bs,E){var R=aq("group"),i=aq("image"),bp=i.style;R.style.cssText="position:absolute;left:0;top:0;width:"+e.width+"px;height:"+e.height+"px";R.coordsize=aO;R.coordorigin=e.coordorigin;i.src=d;R[a5](i);var S=new aL(i,R,e);S.type="image";S.attrs.src=d;S.attrs.x=br;S.attrs.y=bq;S.attrs.w=bs;S.attrs.h=E;S.setBox({x:br,y:bq,width:bs,height:E});e.canvas[a5](R);return S;};af=function(e,br,bq,bs){var R=aq("group"),E=aq("shape"),bp=E.style,bt=aq("path"),d=bt.style,i=aq("textpath");R.style.cssText="position:absolute;left:0;top:0;width:"+e.width+"px;height:"+e.height+"px";R.coordsize=aO;R.coordorigin=e.coordorigin;bt.v=aA.format("m{0},{1}l{2},{1}",Y(br*10),Y(bq*10),Y(br*10)+1);bt.textpathok=true;bp.width=e.width;bp.height=e.height;i.string=bs+aG;i.on=true;E[a5](i);E[a5](bt);R[a5](E);var S=new aL(i,R,e);S.shape=E;S.textpath=bt;S.type="text";S.attrs.text=bs;S.attrs.x=br;S.attrs.y=bq;S.attrs.w=1;S.attrs.h=1;ai(S,{font:l.font,stroke:"none",fill:"#000"});S.setBox();e.canvas[a5](R);return S;};bj=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 aq;V.createStyleSheet().addRule(".rvml","behavior:url(#default#VML)");try{!V.namespaces.rvml&&V.namespaces.add("rvml","urn:schemas-microsoft-com:vml");aq=function(d){return V.createElement("<rvml:"+d+' class="rvml">');};}catch(ao){aq=function(d){return V.createElement("<"+d+' xmlns="urn:schemas-microsoft.com:vml" class="rvml">');};}B=function(){var i=aB[bk](0,arguments),d=i.container,br=i.height,bs,e=i.width,bq=i.x,bp=i.y;if(!d){throw new Error("VML container not found.");}var R=new bh,S=R.canvas=V.createElement("div"),E=S.style;bq=bq||0;bp=bp||0;e=e||512;br=br||342;e==+e&&(e+="px");br==+br&&(br+="px");R.width=1000;R.height=1000;R.coordsize=r*1000+az+r*1000;R.coordorigin="0 0";R.span=V.createElement("span");R.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;display:inline;";S[a5](R.span);E.cssText=aA.format("width:{0};height:{1};display:inline-block;position:relative;clip:rect(0 {0} {1} 0);overflow:hidden",e,br);if(d==1){V.body[a5](S);E.left=bq+"px";E.top=bp+"px";E.position="absolute";}else{if(d.firstChild){d.insertBefore(S,d.firstChild);}else{d[a5](S);}}a0.call(R,R,aA.fn);return R;};bh[bm].clear=function(){this.canvas.innerHTML=aG;this.span=V.createElement("span");this.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;display:inline;";this.canvas[a5](this.span);this.bottom=this.top=null;};bh[bm].remove=function(){this.canvas.parentNode.removeChild(this.canvas);for(var d in this){this[d]=w(d);}return true;};}if((/^Apple|^Google/).test(aH.navigator.vendor)&&(!(aH.navigator.userAgent.indexOf("Version/4.0")+1)||aH.navigator.platform.slice(0,2)=="iP")){bh[bm].safari=function(){var d=this.rect(-99,-99,this.width+99,this.height+99);aH.setTimeout(function(){d.remove();});};}else{bh[bm].safari=function(){};}var K=function(){this.returnValue=false;},be=function(){return this.originalEvent.preventDefault();},aR=function(){this.cancelBubble=true;},av=function(){return this.originalEvent.stopPropagation();},an=(function(){if(V.addEventListener){return function(R,i,e,d){var E=function(br){if(P&&ba[ab](i)){for(var bp=0,bq=br.targetTouches&&br.targetTouches.length;bp<bq;bp++){if(br.targetTouches[bp].target==R){var S=br;br=br.targetTouches[bp];br.originalEvent=S;br.preventDefault=be;br.stopPropagation=av;break;}}}return e.call(d,br);};R.addEventListener(i,E,false);return function(){R.removeEventListener(i,E,false);return true;};};}else{if(V.attachEvent){return function(S,E,i,e){var R=function(bp){bp=bp||aH.event;bp.preventDefault=bp.preventDefault||K;bp.stopPropagation=bp.stopPropagation||aR;return i.call(e,bp);};S.attachEvent("on"+E,R);var d=function(){S.detachEvent("on"+E,R);return true;};return d;};}}})();for(var ak=M[o];ak--;){(function(d){aA[d]=aL[bm][d]=function(i){if(aA.is(i,"function")){var e=P&&ba[d]?ba[d]:d;this.events=this.events||[];this.events.push({name:d,f:i,unbind:an(this.shape||this.node||V,e,i,this)});}return this;};aA["un"+d]=aL[bm]["un"+d]=function(E){var i=this.events,e=i[o];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;};})(M[ak]);}aL[bm].hover=function(e,d){return this.mouseover(e).mouseout(d);};aL[bm].unhover=function(e,d){return this.unmouseover(e).unmouseout(d);};aL[bm].drag=function(i,S,R){this._drag={};var E=this.mousedown(function(bp){(bp.originalEvent?bp.originalEvent:bp).preventDefault();this._drag.x=bp.clientX;this._drag.y=bp.clientY;this._drag.id=bp.identifier;S&&S.call(this,bp.clientX,bp.clientY);Raphael.mousemove(e).mouseup(d);}),e=function(br){var bp=br.clientX,bt=br.clientY;if(P){var bq=br.touches.length,bs;while(bq--){bs=br.touches[bq];if(bs.identifier==E._drag.id){bp=bs.clientX;bt=bs.clientY;(br.originalEvent?br.originalEvent:br).preventDefault();break;}}}else{br.preventDefault();}i&&i.call(E,bp-E._drag.x,bt-E._drag.y,bp,bt);},d=function(){E._drag={};Raphael.unmousemove(e).unmouseup(d);R&&R.call(E);};return this;};bh[bm].circle=function(d,i,e){return Z(this,d||0,i||0,e||0);};bh[bm].rect=function(d,R,e,i,E){return aY(this,d||0,R||0,e||0,i||0,E||0);};bh[bm].ellipse=function(d,E,i,e){return ar(this,d||0,E||0,i||0,e||0);};bh[bm].path=function(d){d&&!aA.is(d,aa)&&!aA.is(d[0],aV)&&(d+=aG);return u(aA.format[bk](aA,arguments),this);};bh[bm].image=function(E,d,R,e,i){return s(this,E||"about:blank",d||0,R||0,e||0,i||0);};bh[bm].text=function(d,i,e){return af(this,d||0,i||0,e||aG);};bh[bm].set=function(d){arguments[o]>1&&(d=Array[bm].splice.call(arguments,0,arguments[o]));return new ac(d);};bh[bm].setSize=bj;bh[bm].top=bh[bm].bottom=null;bh[bm].raphael=aA;function z(){return this.x+az+this.y;}aL[bm].resetScale=function(){if(this.removed){return this;}this._.sx=1;this._.sy=1;this.attrs.scale="1 1";};aL[bm].scale=function(bv,bu,E,e){if(this.removed){return this;}if(bv==null&&bu==null){return{x:this._.sx,y:this._.sy,toString:z};}bu=bu||bv;!+bu&&(bu=bv);var bz,bx,by,bw,bL=this.attrs;if(bv!=0){var bt=this.getBBox(),bq=bt.x+bt.width/2,R=bt.y+bt.height/2,bK=bv/this._.sx,bJ=bu/this._.sy;E=(+E||E==0)?E:bq;e=(+e||e==0)?e:R;var bs=~~(bv/aj.abs(bv)),bp=~~(bu/aj.abs(bu)),bC=this.node.style,bN=E+(bq-E)*bK,bM=e+(R-e)*bJ;switch(this.type){case"rect":case"image":var br=bL.width*bs*bK,bB=bL.height*bp*bJ;this.attr({height:bB,r:bL.r*a3(bs*bK,bp*bJ),width:br,x:bN-br/2,y:bM-bB/2});break;case"circle":case"ellipse":this.attr({rx:bL.rx*bs*bK,ry:bL.ry*bp*bJ,r:bL.r*a3(bs*bK,bp*bJ),cx:bN,cy:bM});break;case"text":this.attr({x:bN,y:bM});break;case"path":var bE=am(bL.path),bF=true;for(var bH=0,bA=bE[o];bH<bA;bH++){var bD=bE[bH],S=a8.call(bD[0]);if(S=="M"&&bF){continue;}else{bF=false;}if(S=="A"){bD[bE[bH][o]-2]*=bK;bD[bE[bH][o]-1]*=bJ;bD[1]*=bs*bK;bD[2]*=bp*bJ;bD[5]=+!(bs+bp?!+bD[5]:+bD[5]);}else{if(S=="H"){for(var bG=1,bI=bD[o];bG<bI;bG++){bD[bG]*=bK;}}else{if(S=="V"){for(bG=1,bI=bD[o];bG<bI;bG++){bD[bG]*=bJ;}}else{for(bG=1,bI=bD[o];bG<bI;bG++){bD[bG]*=(bG%2)?bK:bJ;}}}}}var d=ad(bE);bz=bN-d.x-d.width/2;bx=bM-d.y-d.height/2;bE[0][1]+=bz;bE[0][2]+=bx;this.attr({path:bE});break;}if(this.type in {text:1,image:1}&&(bs!=1||bp!=1)){if(this.transformations){this.transformations[2]="scale("[bf](bs,",",bp,")");this.node[A]("transform",this.transformations[aN](az));bz=(bs==-1)?-bL.x-(br||0):bL.x;bx=(bp==-1)?-bL.y-(bB||0):bL.y;this.attr({x:bz,y:bx});bL.fx=bs-1;bL.fy=bp-1;}else{this.node.filterMatrix=aT+".Matrix(M11="[bf](bs,", M12=0, M21=0, M22=",bp,", Dx=0, Dy=0, sizingmethod='auto expand', filtertype='bilinear')");bC.filter=(this.node.filterMatrix||aG)+(this.node.filterOpacity||aG);}}else{if(this.transformations){this.transformations[2]=aG;this.node[A]("transform",this.transformations[aN](az));bL.fx=0;bL.fy=0;}else{this.node.filterMatrix=aG;bC.filter=(this.node.filterMatrix||aG)+(this.node.filterOpacity||aG);}}bL.scale=[bv,bu,E,e][aN](az);this._.sx=bv;this._.sy=bu;}return this;};aL[bm].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=at(function(E,d,bq,bp,bw,bv,bu,bt,R){var bs=0,S;for(var br=0;br<1.001;br+=0.001){var e=aA.findDotsAtSegment(E,d,bq,bp,bw,bv,bu,bt,br);br&&(bs+=a6(a6(S.x-e.x,2)+a6(S.y-e.y,2),0.5));if(bs>=R){return e;}S=e;}}),aQ=function(d,e){return function(by,S,bp){by=O(by);var bu,bt,E,bq,R="",bx={},bv,bs=0;for(var br=0,bw=by.length;br<bw;br++){E=by[br];if(E[0]=="M"){bu=+E[1];bt=+E[2];}else{bq=q(bu,bt,E[1],E[2],E[3],E[4],E[5],E[6]);if(bs+bq>S){if(e&&!bx.start){bv=g(bu,bt,E[1],E[2],E[3],E[4],E[5],E[6],S-bs);R+=["C",bv.start.x,bv.start.y,bv.m.x,bv.m.y,bv.x,bv.y];if(bp){return R;}bx.start=R;R=["M",bv.x,bv.y+"C",bv.n.x,bv.n.y,bv.end.x,bv.end.y,E[5],E[6]][aN]();bs+=bq;bu=+E[5];bt=+E[6];continue;}if(!d&&!e){bv=g(bu,bt,E[1],E[2],E[3],E[4],E[5],E[6],S-bs);return{x:bv.x,y:bv.y,alpha:bv.alpha};}}bs+=bq;bu=+E[5];bt=+E[6];}R+=E;}bx.end=R;bv=d?bs:e?bx:aA.findDotsAtSegment(bu,bt,E[1],E[2],E[3],E[4],E[5],E[6],1);bv.alpha&&(bv={x:bv.x,y:bv.y,alpha:bv.alpha});return bv;};},q=at(function(E,d,bp,S,bv,bu,bt,bs){var R={x:0,y:0},br=0;for(var bq=0;bq<1.01;bq+=0.01){var e=X(E,d,bp,S,bv,bu,bt,bs,bq);bq&&(br+=a6(a6(R.x-e.x,2)+a6(R.y-e.y,2),0.5));R=e;}return br;});var aC=aQ(1),I=aQ(),T=aQ(0,1);aL[bm].getTotalLength=function(){if(this.type!="path"){return;}if(this.node.getTotalLength){return this.node.getTotalLength();}return aC(this.attrs.path);};aL[bm].getPointAtLength=function(d){if(this.type!="path"){return;}return I(this.attrs.path,d);};aL[bm].getSubpath=function(i,e){if(this.type!="path"){return;}if(aj.abs(this.getTotalLength()-e)<0.000001){return T(this.attrs.path,i).end;}var d=T(this.attrs.path,e,1);return i?T(d,i).end:d;};aA.easing_formulas={linear:function(d){return d;},"<":function(d){return a6(d,3);},">":function(d){return a6(d-1,3)+1;},"<>":function(d){d=d*2;if(d<1){return a6(d,3)/2;}d-=2;return(a6(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 a6(2,-10*i)*aj.sin((i-d)*(2*aj.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 Q={length:0},bd=function(){var br=+new Date;for(var bD in Q){if(bD!="length"&&Q[ab](bD)){var bI=Q[bD];if(bI.stop||bI.el.removed){delete Q[bD];Q[o]--;continue;}var bp=br-bI.start,bA=bI.ms,bz=bI.easing,bE=bI.from,bw=bI.diff,E=bI.to,bv=bI.t,by=bI.prev||0,bq=bI.el,R=bI.callback,bx={},d;if(bp<bA){var S=aA.easing_formulas[bz]?aA.easing_formulas[bz](bp/bA):bp/bA;for(var bB in bE){if(bE[ab](bB)){switch(ah[bB]){case"along":d=S*bA*bw[bB];E.back&&(d=E.len-d);var bC=I(E[bB],d);bq.translate(bw.sx-bw.x||0,bw.sy-bw.y||0);bw.x=bC.x;bw.y=bC.y;bq.translate(bC.x-bw.sx,bC.y-bw.sy);E.rot&&bq.rotate(bw.r+bC.alpha,bC.x,bC.y);break;case ax:d=+bE[bB]+S*bA*bw[bB];break;case"colour":d="rgb("+[H(Y(bE[bB].r+S*bA*bw[bB].r)),H(Y(bE[bB].g+S*bA*bw[bB].g)),H(Y(bE[bB].b+S*bA*bw[bB].b))][aN](",")+")";break;case"path":d=[];for(var bG=0,bu=bE[bB][o];bG<bu;bG++){d[bG]=[bE[bB][bG][0]];for(var bF=1,bH=bE[bB][bG][o];bF<bH;bF++){d[bG][bF]=+bE[bB][bG][bF]+S*bA*bw[bB][bG][bF];}d[bG]=d[bG][aN](az);}d=d[aN](az);break;case"csv":switch(bB){case"translation":var bt=bw[bB][0]*(bp-by),bs=bw[bB][1]*(bp-by);bv.x+=bt;bv.y+=bs;d=bt+az+bs;break;case"rotation":d=+bE[bB][0]+S*bA*bw[bB][0];bE[bB][1]&&(d+=","+bE[bB][1]+","+bE[bB][2]);break;case"scale":d=[+bE[bB][0]+S*bA*bw[bB][0],+bE[bB][1]+S*bA*bw[bB][1],(2 in E[bB]?E[bB][2]:aG),(3 in E[bB]?E[bB][3]:aG)][aN](az);break;case"clip-rect":d=[];bG=4;while(bG--){d[bG]=+bE[bB][bG]+S*bA*bw[bB][bG];}break;}break;}bx[bB]=d;}}bq.attr(bx);bq._run&&bq._run.call(bq);}else{if(E.along){bC=I(E.along,E.len*!E.back);bq.translate(bw.sx-(bw.x||0)+bC.x-bw.sx,bw.sy-(bw.y||0)+bC.y-bw.sy);E.rot&&bq.rotate(bw.r+bC.alpha,bC.x,bC.y);}(bv.x||bv.y)&&bq.translate(-bv.x,-bv.y);E.scale&&(E.scale+=aG);bq.attr(E);delete Q[bD];Q[o]--;bq.in_animation=null;aA.is(R,"function")&&R.call(bq);}bI.prev=bp;}}aA.svg&&bq&&bq.paper&&bq.paper.safari();Q[o]&&aH.setTimeout(bd);},H=function(d){return h(a3(d,255),0);},x=function(d,i){if(d==null){return{x:this._.tx,y:this._.ty,toString:z};}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=am(this.attrs.path);e[0][1]+=+d;e[0][2]+=+i;this.attr({path:e});break;}return this;};aL[bm].animateWith=function(e,i,d,R,E){Q[e.id]&&(i.start=Q[e.id].start);return this.animate(i,d,R,E);};aL[bm].animateAlong=aM();aL[bm].animateAlongBack=aM(1);function aM(d){return function(E,i,e,S){var R={back:d};aA.is(e,"function")?(S=e):(R.rot=e);E&&E.constructor==aL&&(E=E.attrs.path);E&&(R.along=E);return this.animate(R,i,S);};}aL[bm].onAnimation=function(d){this._run=d||0;return this;};aL[bm].animate=function(bD,bu,bt,E){if(aA.is(bt,"function")||!bt){E=bt||null;}var by={},e={},br={};for(var bv in bD){if(bD[ab](bv)){if(ah[ab](bv)){by[bv]=this.attr(bv);(by[bv]==null)&&(by[bv]=l[bv]);e[bv]=bD[bv];switch(ah[bv]){case"along":var bB=aC(bD[bv]),bw=I(bD[bv],bB*!!bD.back),R=this.getBBox();br[bv]=bB/bu;br.tx=R.x;br.ty=R.y;br.sx=bw.x;br.sy=bw.y;e.rot=bD.rot;e.back=bD.back;e.len=bB;bD.rot&&(br.r=ae(this.rotate())||0);break;case ax:br[bv]=(e[bv]-by[bv])/bu;break;case"colour":by[bv]=aA.getRGB(by[bv]);var bx=aA.getRGB(e[bv]);br[bv]={r:(bx.r-by[bv].r)/bu,g:(bx.g-by[bv].g)/bu,b:(bx.b-by[bv].b)/bu};break;case"path":var S=O(by[bv],e[bv]);by[bv]=S[0];var bs=S[1];br[bv]=[];for(var bA=0,bq=by[bv][o];bA<bq;bA++){br[bv][bA]=[0];for(var bz=1,bC=by[bv][bA][o];bz<bC;bz++){br[bv][bA][bz]=(bs[bA][bz]-by[bv][bA][bz])/bu;}}break;case"csv":var d=(bD[bv]+aG)[F](a),bp=(by[bv]+aG)[F](a);switch(bv){case"translation":by[bv]=[0,0];br[bv]=[d[0]/bu,d[1]/bu];break;case"rotation":by[bv]=(bp[1]==d[1]&&bp[2]==d[2])?bp:[0,d[1],d[2]];br[bv]=[(d[0]-by[bv][0])/bu,0,0];break;case"scale":bD[bv]=d;by[bv]=(by[bv]+aG)[F](a);br[bv]=[(d[0]-by[bv][0])/bu,(d[1]-by[bv][1])/bu,0,0];break;case"clip-rect":by[bv]=(by[bv]+aG)[F](a);br[bv]=[];bA=4;while(bA--){br[bv][bA]=(d[bA]-by[bv][bA])/bu;}break;}e[bv]=d;}}}}this.stop();this.in_animation=1;Q[this.id]={start:bD.start||+new Date,ms:bu,easing:bt,from:by,diff:br,to:e,el:this,callback:E,t:{x:0,y:0}};++Q[o]==1&&bd();return this;};aL[bm].stop=function(){Q[this.id]&&Q[o]--;delete Q[this.id];return this;};aL[bm].translate=function(d,e){return this.attr({translation:d+" "+e});};aL[bm][aP]=function(){return"Rapha\xebl\u2019s object";};aA.ae=Q;var ac=function(d){this.items=[];this[o]=0;this.type="set";if(d){for(var e=0,E=d[o];e<E;e++){if(d[e]&&(d[e].constructor==aL||d[e].constructor==ac)){this[this.items[o]]=this.items[this.items[o]]=d[e];this[o]++;}}}};ac[bm][f]=function(){var R,d;for(var e=0,E=arguments[o];e<E;e++){R=arguments[e];if(R&&(R.constructor==aL||R.constructor==ac)){d=this.items[o];this[d]=this.items[d]=R;this[o]++;}}return this;};ac[bm].pop=function(){delete this[this[o]--];return this.items.pop();};for(var D in aL[bm]){if(aL[bm][ab](D)){ac[bm][D]=(function(d){return function(){for(var e=0,E=this.items[o];e<E;e++){this.items[e][d][bk](this.items[e],arguments);}return this;};})(D);}}ac[bm].attr=function(e,bp){if(e&&aA.is(e,aV)&&aA.is(e[0],"object")){for(var d=0,S=e[o];d<S;d++){this.items[d].attr(e[d]);}}else{for(var E=0,R=this.items[o];E<R;E++){this.items[E].attr(e,bp);}}return this;};ac[bm].animate=function(e,d,bp,br){(aA.is(bp,"function")||!bp)&&(br=bp||null);var S=this.items[o],E=S,bs,bq=this,R;br&&(R=function(){!--S&&br.call(bq);});bp=aA.is(bp,aa)?bp:R;bs=this.items[--E].animate(e,d,bp,R);while(E--){this.items[E].animateWith(bs,e,d,bp,R);}return this;};ac[bm].insertAfter=function(e){var d=this.items[o];while(d--){this.items[d].insertAfter(e);}return this;};ac[bm].getBBox=function(){var d=[],bp=[],e=[],R=[];for(var E=this.items[o];E--;){var S=this.items[E].getBBox();d[f](S.x);bp[f](S.y);e[f](S.x+S.width);R[f](S.y+S.height);}d=a3[bk](0,d);bp=a3[bk](0,bp);return{x:d,y:bp,width:h[bk](0,e)-d,height:h[bk](0,R)-bp};};ac[bm].clone=function(E){E=new ac;for(var d=0,e=this.items[o];d<e;d++){E[f](this.items[d].clone());}return E;};aA.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 bp in e.face){if(e.face[ab](bp)){E.face[bp]=e.face[bp];}}if(this.fonts[i]){this.fonts[i][f](E);}else{this.fonts[i]=[E];}if(!e.svg){E.face["units-per-em"]=N(e.face["units-per-em"],10);for(var R in e.glyphs){if(e.glyphs[ab](R)){var S=e.glyphs[R];E.glyphs[R]={w:S.w,k:{},d:S.d&&"M"+S.d[bb](/[mlcxtrv]/g,function(bq){return{l:"L",c:"C",x:"z",t:"m",r:"l",v:"c"}[bq]||"M";})+"z"};if(S.k){for(var d in S.k){if(S[ab](d)){E.glyphs[R].k[d]=S.k[d];}}}}}}return e;};bh[bm].getFont=function(br,bs,e,R){R=R||"normal";e=e||"normal";bs=+bs||{normal:400,bold:700,lighter:300,bolder:800}[bs]||400;if(!aA.fonts){return;}var S=aA.fonts[br];if(!S){var E=new RegExp("(^|\\s)"+br[bb](/[^\w\d\s+!~.:_-]/g,aG)+"(\\s|$)","i");for(var d in aA.fonts){if(aA.fonts[ab](d)){if(E.test(d)){S=aA.fonts[d];break;}}}}var bp;if(S){for(var bq=0,bt=S[o];bq<bt;bq++){bp=S[bq];if(bp.face["font-weight"]==bs&&(bp.face["font-style"]==e||!bp.face["font-style"])&&bp.face["font-stretch"]==R){break;}}}return bp;};bh[bm].print=function(R,E,d,bq,br,bA){bA=bA||"middle";var bw=this.set(),bz=(d+aG)[F](aG),bx=0,bt=aG,bB;aA.is(bq,d)&&(bq=this.getFont(bq));if(bq){bB=(br||16)/bq.face["units-per-em"];var e=bq.face.bbox.split(a),bp=+e[0],bs=+e[1]+(bA=="baseline"?e[3]-e[1]+(+bq.face.descent):(e[3]-e[1])/2);for(var bv=0,S=bz[o];bv<S;bv++){var bu=bv&&bq.glyphs[bz[bv-1]]||{},by=bq.glyphs[bz[bv]];bx+=bv?(bu.w||bq.w)+(bu.k&&bu.k[bz[bv]]||0):0;by&&by.d&&bw[f](this.path(by.d).attr({fill:"#000",stroke:"none",translation:[bx,0]}));}bw.scale(bB,bB,bp,bs).translate(R-bp,E-bs);}return bw;};var a7=/\{(\d+)\}/g;aA.format=function(e,i){var d=aA.is(i,aV)?[0][bf](i):arguments;e&&aA.is(e,aa)&&d[o]-1&&(e=e[bb](a7,function(R,E){return d[++E]==null?aG:d[E];}));return e||aG;};aA.ninja=function(){n.was?(Raphael=n.is):delete Raphael;return aA;};aA.el=aL[bm];return aA;})();
\ No newline at end of file