From 9dc9ccb9b075101a84e670561146687eae5ff3f3 Mon Sep 17 00:00:00 2001 From: DmitryBaranovskiy Date: Sat, 8 May 2010 07:58:32 +1000 Subject: [PATCH] =?utf8?q?1.4.1=20=E2=80=A2=20Small=20bug=20fix=20in=20mul?= =?utf8?q?ti-touch=20implementation?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- raphael-min.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/raphael-min.js b/raphael-min.js index 6f1629d..4ab0b5c 100644 --- a/raphael-min.js +++ b/raphael-min.js @@ -1,7 +1,7 @@ /* - * Raphael 1.4 - JavaScript Vector Library + * Raphael 1.4.1 - 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

";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("");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||.75},d=this.hsb2rgb(i.h,i.s,i.b);i.h+=.075;if(i.h>1){i.h=0;i.s-=.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||bw1){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=bwbp){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];bS1e12&&(bn=.5);aj.abs(S)>1e12&&(S=.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)>1e12&&(bn=.5);aj.abs(S)>1e12&&(S=.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.5)*2-1);a5(bp-.5,2)+a5(bn-.5,2)>.25&&(bn=aj.sqrt(.25-a5(bp-.5,2))*by+.5)&&bn!=.5&&(bn=bn.toFixed(5)-1e-5*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];bqbo.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;e1&&(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)*.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](/"));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-.5,2)+a5(i-.5,2)>.25&&(i=aj.sqrt(.25-a5(bu-.5,2))*((i>.5)*2-1)+.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');};}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=1e3;R.height=1e3;R.coordsize=r*1e3+ay+r*1e3;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.length;bn1&&(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=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;bpS){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+=.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),.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)<1e-6){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=.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+.75;}else{if(E<(2.5/i)){E-=(2.25/i);d=e*E*E+.9375;}else{E-=(2.625/i);d=e*E*E+.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

";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("");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||bw1){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=bwbp){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];bS1000000000000&&(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);bp0.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];bqbo.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;e1&&(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](/"));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');};}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;bn1&&(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=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;bpS){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