Arc support has been landed. However use it on your own risk. It haven’t been tested...
authorDmitry Baranovskiy <dbaranovskiy@Fresh-Air.local>
Thu, 16 Oct 2008 06:32:44 +0000 (23:32 -0700)
committerDmitry Baranovskiy <dbaranovskiy@Fresh-Air.local>
Thu, 16 Oct 2008 06:32:44 +0000 (23:32 -0700)
raphael-packed.js
raphael.js

index 128eb5d..724bdf9 100644 (file)
@@ -1,7 +1,7 @@
 /*
- * Raphael 0.5.4b - JavaScript Vector Library
+ * Raphael 0.5.5b - JavaScript Vector Library
  *
  * Copyright (c) 2008 Dmitry Baranovskiy (raphaeljs.com)
  * Licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) license.
  */
-eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('9 1E=(F(n){9 r=F(){J r.38.2o(r,I)};r.4m="0.5.4b";r.18=n;9 C={};F 27(a,b,c,d,e,f){7.m=[[a||1,b||0,0],[c||0,d||1,0],[e||0,f||0,1],]}C.1f=C.1g=C.1w=C.1y=F(x){J x};G(n=="2D"){27.3u.2p=F(){J"4n:4o.4p.27(4q="+7.m[0][0]+", 4r="+7.m[1][0]+", 4s="+7.m[0][1]+", 4t="+7.m[1][1]+", 4u="+7.m[2][0]+", 4v="+7.m[2][1]+", 4w=\'4x 4y\', 4z=\'4A\')"};9 q=F(f,h,j){9 g=13.1p("1m:1H"),2q=g.15;2q.28="2a";2q.1M=0;2q.1z=0;2q.P=j.P+"1u";2q.T=j.T+"1u";9 k=13.1p("1m:2b"),2r=k.15;2r.P=j.P+"1u";2r.T=j.T+"1u";k.K="";G(f["3v"]){k.4B=f["3v"]}k.2E=7.2E;k.2F=7.2F;g.17(k);j.19.17(g);9 p=1q u(k,g,j);s(p,f);G(f.1A){t(p,f.1A)}p.U=1V;p.18="K";p.K=[];p.1b={x:0,y:0,2k:0,2l:0,U:1V};p.2m="";p.1B=F(){7.U=1V;J 7};p.1C=F(){7.U=2G;J 7};p.3w=F(){7.2m="";9 a=7.K;7.K=[];1l(9 i=0,1h=a.1a;i<1h;i++){G(a[i].18!="39"){7[a[i].18+"3x"].2o(7,a[i].1W)}1j{7.2c()}}};p.1N=F(x,y){9 d=7.U?"m":"t";9 a=7.U?j.1f:j.1w;9 b=7.U?j.1g:j.1y;d+=Q.11(a(12(x,10)))+" "+Q.11(b(12(y,10)));7[0].K=7.2m+=d;7.1b.x=Q.11(a(12(x,10)));7.1b.y=Q.11(b(12(y,10)));7.1b.U=7.U;7.K.1O({18:"3y",1W:[].2Q.2R(I,0),2d:7.U});J 7};p.1i=F(x,y){9 d=7.U?"l":"r";9 a=7.U?j.1f:j.1w;9 b=7.U?j.1g:j.1y;d+=Q.11(a(12(x,10)))+" "+Q.11(b(12(y,10)));7[0].K=7.2m+=d;7.1b.x=Q.11(a(12(x,10)));7.1b.y=Q.11(b(12(y,10)));7.1b.U=7.U;7.K.1O({18:"3z",1W:[].2Q.2R(I,0),2d:7.U});J 7};p.3A=F(a,b,c){G(!c){J 7.1i(a,b)}1j{9 p={};p.1f=7.U?j.1f:j.1w;p.1g=7.U?j.1g:j.1y;9 x=Q.11(p.1f(Q.11(12(a,10)*1d)/1d));9 y=Q.11(p.1g(Q.11(12(b,10)*1d)/1d));9 w=Q.11(j.1w(Q.11(12(c,10)*1d)/1d));9 d=7.U?"c":"v";9 e=[7.1b.x+w,7.1b.y,x-w,y,x,y];d+=e.2e(" ")+" ";7.1b.x=e[4];7.1b.y=e[5];7.1b.2k=e[2];7.1b.2l=e[3];7[0].K=7.2m+=d;7.K.1O({18:"3B",1W:[].2Q.2R(I,0),2d:7.U});J 7}};p.1n=F(){9 d=7.U?"c":"v";9 a=7.U?j.1f:j.1w;9 b=7.U?j.1g:j.1y;G(I.1a==6){7.1b.x=Q.11(a(12(I[4],10)));7.1b.y=Q.11(b(12(I[5],10)));7.1b.2k=Q.11(a(12(I[2],10)));7.1b.2l=Q.11(b(12(I[3],10)));d+=Q.11(a(12(I[0],10)))+" "+Q.11(b(12(I[1],10)))+" "+Q.11(a(12(I[2],10)))+" "+Q.11(b(12(I[3],10)))+" "+Q.11(a(12(I[4],10)))+" "+Q.11(b(12(I[5],10)))+" ";7.1b.U=7.U}7[0].K=7.2m+=d;7.K.1O({18:"3C",1W:[].2Q.2R(I,0),2d:7.U});J 7};p.2s=F(r,a){9 R=.3D*r,1X=7.U,o=7;G(1X){7.1C();1X=F(){o.1B()}}1j{1X=F(){}}9 b={l:F(){J{u:F(){o.1n(-R,0,-r,-(r-R),-r,-r)},d:F(){o.1n(-R,0,-r,r-R,-r,r)}}},r:F(){J{u:F(){o.1n(R,0,r,-(r-R),r,-r)},d:F(){o.1n(R,0,r,r-R,r,r)}}},u:F(){J{r:F(){o.1n(0,-R,-(R-r),-r,r,-r)},l:F(){o.1n(0,-R,R-r,-r,-r,-r)}}},d:F(){J{r:F(){o.1n(0,R,-(R-r),r,r,r)},l:F(){o.1n(0,R,R-r,r,-r,r)}}}};b[a.2S(0)]()[a.2S(1)]();1X();J o};p.2c=F(){7[0].K=(7.2m+="x e");J 7};G(1k h=="2f"){h=h.21(/([3E])/2T,",$1,").21(/([^,])\\-/2T,"$1,-");K=h.3a(",");9 i=1,1h=K.1a;3b(i<1h){2U(K[i]){14"M":p.1B().1N(K[++i],K[++i]);1e;14"m":p.1C().1N(K[++i],K[++i]);1e;14"C":p.1B().1n(K[++i],K[++i],K[++i],K[++i],K[++i],K[++i]);1e;14"c":p.1C().1n(K[++i],K[++i],K[++i],K[++i],K[++i],K[++i]);1e;14"L":p.1B().1i(K[++i],K[++i]);1e;14"l":p.1C().1i(K[++i],K[++i]);1e;14"H":p.1B().1i(K[++i],0);1e;14"h":p.1C().1i(K[++i],0);1e;14"V":p.1B().1i(0,K[++i]);1e;14"v":p.1C().1i(0,K[++i]);1e;14"Z":14"z":p.2c();1e}i++}}J p};9 s=F(o,a){o[0].N=o[0].N||{};1l(9 b 1t a){o[0].N[b]=a[b]}a["22-3F"]&&(o[0].15.4C=a["22-3F"]);a["22-3G"]&&(o[0].15.4D=a["22-3G"]);a["22"]&&(o[0].15.22=a["22"]);a["22-2V"]&&(o[0].15.4E=a["22-2V"]);G(1k a.1v!="1P"||1k a["1c-P"]!="1P"||1k a.1s!="1P"||1k a.1c!="1P"){o=o.2b||o[0];9 c=(o.2H("1s")&&o.2H("1s")[0])||13.1p("1m:1s");G("1s-1v"1t a||"1v"1t a){c.1v=((a["1s-1v"]+1||2)-1)*((a.1v+1||2)-1)}a.1s&&(c.23=1V);G(c.23&&a.1s){c.1Y=a.1s}G(a.1s=="1I"){c.23=2G}o.17(c);9 d=(o.2H("1c")&&o.2H("1c")[0])||13.1p("1m:1c");G((a.1c&&a.1c!="1I")||a["1c-P"]||a["1c-1v"]||a["1c-2I"]){d.23=1V}G(a.1c=="1I"||1k d.23=="1P"){d.23=2G}G(d.23&&a.1c){d.1Y=a.1c}d.1v=((a["1c-1v"]+1||2)-1)*((a.1v+1||2)-1);d.4F=a["1c-4G"]||"3H";d.3I=a["1c-3I"]||8;d.4H={4I:"4J",3J:"3J",11:"11"}[a["1c-4K"]||"3H"];d.2V=(12(a["1c-P"],10)||1);G(a["1c-2I"]){9 e=a["1c-2I"].21(" ",",").3a(","),3c=[],3K=d.2V;1l(9 i=0,1h=e.1a;i<1h;i++){9 f=e[i]/3K;G(!4L(f)){3c.1O(f)}};d.4M=3c.2e(" ")}o.17(d)}};9 t=F(o,a){o[0].N=o[0].N||{};o[0].N.1A=a;o=o.2b||o[0];9 b=o.2H("1s");G(b.1a){b=b[0]}1j{b=13.1p("1m:1s")}G(a.1o.1a){b.23=1V;b.18=(a.18.3d()=="4N")?"1A":"4O";G(1k a.1o[0].1Y!="1P"){b.1Y=a.1o[0].1Y||"#1x"}G(1k a.1o[0].1v!="1P"){b.1v=a.1o[0].1v}G(1k a.1o[a.1o.1a-1].1v!="1P"){b.4P=a.1o[a.1o.1a-1].1v}G(1k a.1o[a.1o.1a-1].1Y!="1P"){b.4Q=a.1o[a.1o.1a-1].1Y||"#1x"}9 c="";1l(9 i=1,1h=a.1o.1a-1;i<1h;i++){c+=a.1o[i].2W+" "+a.1o[i].1Y;G(i!=1h-1){c+=","}};G(c){b.4R=c}G(a.1Q){9 d=Q.11(Q.4S((1D(a.1Q[3],10)-1D(a.1Q[1],10))/(1D(a.1Q[2],10)-1D(a.1Q[0],10)))*57.29)+4T;b.4U=d+4V}G(a.18.3d()=="4W"){b.4X="0.5, 0.5";b.4Y="0, 0";b.4Z="1I"}}};9 u=F(g,k,l){9 m=0,50=0,51=0,52=1;7[0]=g;7.X=0;7.Y=0;I.3e.53="54";7[0].N={};7.1r=k;7.2t=F(a){9 b=7.1r.15,2u=7[0].15;1l(9 i 1t a){7[0].N[i]=a[i]}9 c=7[0].N,x,y,w,h;2U(7.18){14"2J":x=c.24-c.r;y=c.25-c.r;w=h=c.r*2;1e;14"2K":x=c.24-c.2g;y=c.25-c.2h;w=c.2g*2;h=c.2h*2;1e;14"26":14"2v":x=c.x;y=c.y;w=c.w;h=c.h;1e;14"1F":7.3f.v=["m",Q.11(c.x),", ",Q.11(c.y-2),"l",Q.11(c.x)+1,", ",Q.11(c.y-2)].2e("");J;3g:J}9 d=l.P/2-w/2,1z=l.T/2-h/2;b.28="2a";b.1M=x-d+"1u";b.1z=y-1z+"1u";7.X=x-d;7.Y=y-1z;7.W=w;7.H=h;b.P=l.P+"1u";b.T=l.T+"1u";2u.28="2a";2u.1z=1z+"1u";2u.1M=d+"1u";2u.P=w+"1u";2u.T=h+"1u"};7.3L=F(){7.1r.15.2X="1I";J 7};7.3M=F(){7.1r.15.2X="3N";J 7};7.3h=F(a){m+=a;7.1r.15.55=m;J 7};7.3i=F(x,y){7.X+=x;7.Y+=y;7.1r.15.1M=7.X+"1u";7.1r.15.1z=7.Y+"1u";J 7};7.3j=F(a,b,c,d,e,f){3k=1q 27(a,b,c,d,e,f);7.1r.15.3O=3k;J 7};7.3P=F(x,y){y=y||x;G(x!=0&&!(x==1&&y==1)){9 a=Q.11(x/Q.3Q(x)),2Y=Q.11(y/Q.3Q(y));G(a!=1||2Y!=1){7[0].15.3O=1q 27(a,0,0,2Y,0,0)}9 b=1D(7[0].15.P,10)*x*a;9 c=1D(7[0].15.T,10)*y*2Y;9 d=1D(7[0].15.1M,10);9 e=1D(7[0].15.1z,10);7[0].15.1M=7.X=d+7.W/2-b/2;7[0].15.1z=7.Y=e+7.H/2-c/2;7[0].15.P=7.W=b;7[0].15.T=7.H=c}J 7};7.2L=F(){J{x:7.1r.56,y:7.1r.58,P:7.1r.59,T:7.1r.5a}};7.3l=F(){7[0].1G.2i(7[0]);7.1r.1G.2i(7.1r);7.2b&&7.2b.1G.2i(7.2b)};7.2Z=F(){G(I.1a==1&&1k I[0]=="2f"){J 7[0].N[I[0]]}G(7[0].N&&I.1a==1&&I[0]3R 3S){9 a={};1l(9 i=0,1h=I[0].1a;i<1h;i++){a[I[0][i]]=7[0].N[I[0][i]]};J a}G(7[0].5b.3d()=="1H"){9 b=7[0].30;7[0].N=7[0].N||{};G(I.1a==2){7[0].N[I[0]]=I[1]}1j G(I.1a==1||1k I[0]=="2n"){1l(9 j 1t I[0]){7[0].N[j]=I[0][j]}}1l(9 i=0,1h=b.1a;i<1h;i++){7.2Z.2o(1q 5c(b[i],7[0],l),I)}}1j{9 c;G(I.1a==2){c={};c[I[0]]=I[1]}G(I.1a==1&&1k I[0]=="2n"){c=I[0]}G(c){s(7,c);7.2t(c);G(c.1A){t(7,c.1A)}G(c.1F&&7.18=="1F"){7[0].2f=c.1F}G(c.2M){7[0].2M=c.2M}}}J 7};7.3T=F(){7.1r.1G.17(7.1r);J 7};7.3U=F(){G(7.1r.1G.1J!=7.1r){7.1r.1G.31(7.1r,7.1r.1G.1J)}J 7}};9 v=F(a,x,y,r){9 g=13.1p("1m:1H");9 o=13.1p("1m:3V");g.17(o);a.19.17(g);9 b=1q u(o,g,a);s(b,{1c:"#1x",1s:"1I"});b.2t({x:x-r,y:y-r,w:r*2,h:r*2});o.N.24=x;o.N.25=y;o.N.r=r;b.18="2J";J b};9 z=F(a,x,y,w,h,r){9 g=13.1p("1m:1H");9 o=13.1p(r?"1m:5d":"1m:26");G(r){o.5e=r/(Q.2N(w,h))}g.17(o);a.19.17(g);9 b=1q u(o,g,a);s(b,{1c:"#1x"});b.2t({x:x,y:y,w:w,h:h});o.N.x=x;o.N.y=y;o.N.w=w;o.N.h=h;o.N.r=r;b.18="26";J b};9 A=F(a,x,y,b,c){9 g=13.1p("1m:1H");9 o=13.1p("1m:3V");g.17(o);a.19.17(g);9 d=1q u(o,g,a);s(d,{1c:"#1x"});d.2t({x:x-b,y:y-c,w:b*2,h:c*2});o.N.24=x;o.N.25=y;o.N.2g=b;o.N.2h=c;d.18="2K";J d};9 B=F(a,b,x,y,w,h){9 g=13.1p("1m:1H");9 o=13.1p("1m:2v");o.5f=b;g.17(o);a.19.17(g);9 c=1q u(o,g,a);c.18="2v";c.2t({x:x,y:y,w:w,h:h});o.N.x=x;o.N.y=y;o.N.w=w;o.N.h=h;J c};9 D=F(a,x,y,b){9 g=13.1p("1m:1H"),2w=g.15;9 c=13.1p("1m:2b"),2r=c.15;9 d=13.1p("1m:K"),5g=d.15;d.v=["m",Q.11(x),", ",Q.11(y-2),"l",Q.11(x)+1,", ",Q.11(y-2)].2e("");d.5h=1V;2r.P=a.P;2r.T=a.T;2w.28="2a";2w.1M=0;2w.1z=0;2w.P=a.P;2w.T=a.T;9 o=13.1p("1m:3f");o.2f=b;o.23=1V;o.2E=a.2E;o.2F=a.2F;c.17(o);c.17(d);g.17(c);a.19.17(g);9 e=1q u(o,g,a);e.2b=c;e.3f=d;e.18="1F";o.N.x=x;o.N.y=y;o.N.w=1;o.N.h=1;J e};9 E=F(a){9 b=13.1p("1m:1H"),2x=b.15;2x.28="2a";2x.1M=0;2x.1z=0;2x.P=a.P;2x.T=a.T;G(a.19){a.19.17(b)}9 c=1q u(b,b,a);1l(9 f 1t a){G(f.2S(0)!="3W"&&1k a[f]=="F"){c[f]=(F(f){J F(){9 e=a[f].2o(a,I);b.17(e[0].1G);J e}})(f)}}c.18="1H";J c};r.38=F(){9 d,P,T;G(1k I[0]=="2f"){d=13.3X(I[0]);P=I[1];T=I[2]}G(1k I[0]=="2n"){d=I[0];P=I[1];T=I[2]}G(1k I[0]=="3Y"){d=1;x=I[0];y=I[1];P=I[2];T=I[3]}G(!d){3Z 1q 40("2D 41 42 43.");}G(!13.44["1m"]){13.44.5i("1m","5j:5k-5l-5m:32");13.5n().5o("1m\\\\:*","5p:45(#3g#2D)")}9 c=13.1p("5q"),r=C.19=13.1p("1m:1H"),1Z=c.15,2O=r.15;C.P=P;C.T=T;P=P||"5r";T=T||"5s";1Z.5t="26(0 "+P+" "+T+" 0)";1Z.28="2a";2O.P=P;2O.T=T;r.2E=(P=="1d%"?P:12(P))+" "+(T=="1d%"?T:12(T));r.2F="0 0";9 b=13.1p("1m:26"),2P=b.15;2P.1M=2P.1z=0;2P.P=2O.P;2P.T=2O.T;b.5u=b.5v="f";r.17(b);c.17(r);G(d==1){13.46.17(c);1Z.28="2a";1Z.1M=x+"1u";1Z.1z=y+"1u";1Z.P=P;1Z.T=T;d={15:{P:P,T:T}}}1j{1Z.P=d.15.P=P;1Z.T=d.15.T=T;G(d.1J){d.31(c,d.1J)}1j{d.17(c)}}1l(9 e 1t C){d[e]=C[e]}d.3m=F(){9 a=[];1l(9 i=0,1h=r.30.1a;i<1h;i++){G(r.30[i]!=b){a.1O(r.30[i])}}1l(i=0,1h=a.1a;i<1h;i++){r.2i(a[i])}};J d}}G(n=="2y"){27.3u.2p=F(){J"3j("+7.m[0][0]+", "+7.m[1][0]+", "+7.m[0][1]+", "+7.m[1][1]+", "+7.m[2][0]+", "+7.m[2][1]+")"};9 q=F(g,h,j){9 k=13.1R(j.1K,"K");k.O("1s","1I");G(g){1l(9 l 1t g){G(g.1A){t(k,g.1A,j)}1j{k.O(l,g[l])}}}G(j.19){j.19.17(k)}9 p=1q u(k,j);1l(9 l 1t g){p.N[l]=g[l]}p.U=1V;p.K=[];p.1b={x:0,y:0,2k:0,2l:0};p.1B=F(){7.U=1V;J 7};p.1C=F(){7.U=2G;J 7};p.3w=F(){7[0].O("d","5w 0");9 a=7.K;7.K=[];1l(9 i=0,1h=a.1a;i<1h;i++){G(a[i].18!="39"){7[a[i].18+"3x"].2o(7,a[i].1W)}1j{7.2c()}}};p.1N=F(x,y){9 d=7.U?"M":"m";9 a=7.U?j.1f:j.1w;9 b=7.U?j.1g:j.1y;d+=a(12(x,10))+" "+b(12(y,10))+" ";9 c=7[0].2z("d")||"";7[0].O("d",c+d);7.1b.x=j.1f(12(x,10));7.1b.y=j.1g(12(y,10));7.K.1O({18:"3y",1W:I,2d:7.U});J 7};p.1i=F(x,y){9 d=7.U?"L":"l";9 a=7.U?j.1f:j.1w;9 b=7.U?j.1g:j.1y;d+=a(12(x,10))+" "+b(12(y,10))+" ";9 c=7[0].2z("d")||"";7[0].O("d",c+d);7.1b.x=j.1f(12(x,10));7.1b.y=j.1g(12(y,10));7.K.1O({18:"3z",1W:I,2d:7.U});J 7};p.3A=F(a,b,c){G(!c){J 7.1i(a,b)}1j{9 p={};p.1f=7.U?j.1f:j.1w;p.1g=7.U?j.1g:j.1y;9 x=p.1f(Q.11(12(a,10)*1d)/1d);9 y=p.1g(Q.11(12(b,10)*1d)/1d);9 w=j.1w(Q.11(12(c,10)*1d)/1d);9 d=7.U?"C":"c";9 e=[7.1b.x+w,7.1b.y,x-w,y,x,y];1l(9 i=0,1h=e.1a;i<1h;i++){d+=e[i]+" "}7.1b.x=e[4];7.1b.y=e[5];7.1b.2k=e[2];7.1b.2l=e[3];9 f=7[0].2z("d")||"";7[0].O("d",f+d);7.K.1O({18:"3B",1W:I,2d:7.U});J 7}};p.1n=F(){9 p={};p.1f=7.U?j.1f:j.1w;p.1g=7.U?j.1g:j.1y;G(I.1a==6){9 d=7.U?"C":"c";1l(9 i=0,1h=I.1a;i<1h;i++){d+=p[(i%2==0)?"1f":"1g"](Q.11(12(I[i],10)*1d)/1d)+" "}7.1b.x=p.1f((12(I[4],10)*1d)/1d);7.1b.y=p.1g((12(I[5],10)*1d)/1d);7.1b.2k=p.1f((12(I[2],10)*1d)/1d);7.1b.2l=p.1g((12(I[3],10)*1d)/1d)}1j{G(I.1a==4){9 d=7.U?"S":"s";1l(9 i=0,1h=I.1a;i<1h;i++){d+=p[i%2==0?"1f":"1g"]((12(I[i],10)*1d)/1d)+" "}}7.1b.x=p.1f((12(I[2],10)*1d)/1d);7.1b.y=p.1g((12(I[3],10)*1d)/1d);7.1b.2k=p.1f((12(I[0],10)*1d)/1d);7.1b.2l=p.1g((12(I[1],10)*1d)/1d)}9 a=7[0].2z("d")||"";7[0].O("d",a+d);7.K.1O({18:"3C",1W:I,2d:7.U});J 7};p.2s=F(r,a){9 R=.3D*r,1X=7.U,o=7;G(1X){7.1C();1X=F(){o.1B()}}1j{1X=F(){}}9 b={l:F(){J{u:F(){o.1n(-R,0,-r,-(r-R),-r,-r)},d:F(){o.1n(-R,0,-r,r-R,-r,r)}}},r:F(){J{u:F(){o.1n(R,0,r,-(r-R),r,-r)},d:F(){o.1n(R,0,r,r-R,r,r)}}},u:F(){J{r:F(){o.1n(0,-R,-(R-r),-r,r,-r)},l:F(){o.1n(0,-R,R-r,-r,-r,-r)}}},d:F(){J{r:F(){o.1n(0,R,-(R-r),r,r,r)},l:F(){o.1n(0,R,R-r,r,-r,r)}}}};b[a[0]]()[a[1]]();1X();J o};p.2c=F(){9 a=7[0].2z("d")||"";7[0].O("d",a+"Z ");7.K.1O({18:"39"});J 7};G(1k h=="2f"){h=h.21(/([3E])/2T,",$1,").21(/([^,])\\-/2T,"$1,-");K=h.3a(",");9 i=1,1h=K.1a;3b(i<1h){2U(K[i]){14"M":p.1B().1N(K[++i],K[++i]);1e;14"m":p.1C().1N(K[++i],K[++i]);1e;14"C":p.1B().1n(K[++i],K[++i],K[++i],K[++i],K[++i],K[++i]);1e;14"c":p.1C().1n(K[++i],K[++i],K[++i],K[++i],K[++i],K[++i]);1e;14"s":p.1C().1n(K[++i],K[++i],K[++i],K[++i]);1e;14"S":p.1B().1n(K[++i],K[++i],K[++i],K[++i]);1e;14"L":p.1B().1i(K[++i],K[++i]);1e;14"l":p.1C().1i(K[++i],K[++i]);1e;14"H":p.1B().1i(K[++i],0);1e;14"h":p.1C().1i(K[++i],0);1e;14"V":p.1B().1i(0,K[++i]);1e;14"v":p.1C().1i(0,K[++i]);1e;14"z":p.2c();1e}i++}}J p};9 t=F(o,a,b){9 c=13.1R(b.1K,a.18+"5x");c.2M="5y-1A-"+b.47++;G(a.1Q&&a.1Q.1a){c.O("5z",a.1Q[0]);c.O("5A",a.1Q[1]);c.O("5B",a.1Q[2]);c.O("5C",a.1Q[3])}b.33.17(c);1l(9 i=0,1h=a.1o.1a;i<1h;i++){9 d=13.1R(b.1K,"3n");d.O("2W",a.1o[i].2W?a.1o[i].2W:(i==0)?"0%":"1d%");d.O("3n-1Y",a.1o[i].1Y||"#5D");G(1k a.1o[i].1v!="1P"){d.O("3n-1v",a.1o[i].1v)}c.17(d)};o.O("1s","45(#"+c.2M+")")};9 u=F(g,h){9 X=0,Y=0,34={35:0,x:0,y:0},2A=1,2B=1,3k=5E;7[0]=g;7.N=7.N||{};7.1L=[];7.3L=F(){7[0].15.2X="1I";J 7};7.3M=F(){7[0].15.2X="3N";J 7};7.3h=F(a){9 b=7.2L();34.35+=a;G(34.35){7.1L[0]=("3h("+34.35+" "+(b.x+b.P/2)+" "+(b.y+b.T/2)+")")}1j{7.1L[0]=""}7[0].O("36",7.1L.2e(" "));J 7};7.3i=F(x,y){X+=x;Y+=y;G(X&&Y){7.1L[1]="3i("+X+","+Y+")"}1j{7.1L[1]=""}7[0].O("36",7.1L.2e(" "));J 7};7.3P=F(x,y){y=y||x;G(x!=0&&!(x==1&&y==1)){2A*=x;2B*=y;G(!(2A==1&&2B==1)){9 a=7.2L(),48=a.x*(1-2A)+(a.P/2-a.P*2A/2),49=a.y*(1-2B)+(a.T/2-a.T*2B/2);7.1L[2]=1q 27(2A,0,0,2B,48,49)}1j{7.1L[2]=""}7[0].O("36",7.1L.2e(" "))}J 7};7.3j=F(a,b,c,d,e,f){7.1L[3]=1q 27(a,b,c,d,e,f);7[0].O("36",7.1L.2e(" "));J 7};7.3l=F(){7[0].1G.2i(7[0])};7.2L=F(){J 7[0].2L()};7.2Z=F(){G(I.1a==1&&1k I[0]=="2f"){J 7[0].2z(I[0])}G(I.1a==1&&I[0]3R 3S){9 a={};1l(9 j 1t I[0]){a[I[0][j]]=7.N[I[0][j]]}J a}G(I.1a==2){9 b=I[0],1S=I[1];7[b]=1S;7.N[b]=1S;2U(b){14"2g":14"24":14"x":7[0].O(b,h.1f(1S));1e;14"2h":14"25":14"y":7[0].O(b,h.1g(1S));1e;14"P":7[0].O(b,h.1w(1S));1e;14"T":7[0].O(b,h.1y(1S));1e;14"1A":t(7[0],d.1A,h);1e;14"1c-2I":7[0].O(b,1S.21(" ",","));1e;14"1F":G(7.18=="1F"){7[0].2i(7[0].1J);7[0].17(13.3o(1S))}1e;3g:9 c=b.21(/(\\-.)/g,F(w){J w.2j(1).4a()});7[0].15[c]=1S;7[0].O(b,1S);1e}}1j G(I.1a==1&&1k I[0]=="2n"){9 d=I[0];1l(9 e 1t d){7.N[e]=d[e];G(e=="1c-2I"){7[0].O(e,d[e].21(" ",","))}1j G(e=="1F"&&7.18=="1F"){7[0].2i(7[0].1J);7[0].17(13.3o(d[e]))}1j{9 c=e.21(/(\\-.)/g,F(w){J w.2j(1).4a()});7[0].15[c]=d[e];7[0].O(e,d[e])}}G(d.1A){7[0].N.1A=d.1A;t(7[0],d.1A,h)}}J 7};7.3T=F(){7[0].1G.17(7[0])};7.3U=F(){G(7[0].1G.1J!=7[0]){7[0].1G.31(7[0],7[0].1G.1J)}}};9 v=F(a,x,y,r){9 b=13.1R(a.1K,"2J");b.O("24",a.1f(x));b.O("25",a.1g(y));b.O("r",r);b.O("1s","1I");b.O("1c","#1x");b.N=b.N||{};b.N.24=x;b.N.25=y;b.N.r=r;b.N.1c="#1x";G(a.19){a.19.17(b)}9 c=1q u(b,a);c.18="2J";J c};9 z=F(a,x,y,w,h,r){9 b=13.1R(a.1K,"26");b.O("x",a.1f(x));b.O("y",a.1g(y));b.O("P",a.1w(w));b.O("T",a.1y(h));b.N=b.N||{};b.N.x=x;b.N.y=y;b.N.P=w;b.N.T=h;G(r){b.O("2g",r);b.O("2h",r);b.N.2g=b.N.2h=r}b.O("1s","1I");b.O("1c","#1x");b.N.1c="#1x";G(a.19){a.19.17(b)}9 c=1q u(b,a);c.18="26";J c};9 A=F(a,x,y,b,c){9 d=13.1R(a.1K,"2K");d.O("24",a.1f(x));d.O("25",a.1g(y));d.O("2g",a.1w(b));d.O("2h",a.1y(c));d.O("1s","1I");d.O("1c","#1x");d.N=d.N||{};d.N.24=x;d.N.25=y;d.N.2g=b;d.N.2h=c;d.N.1c="#1x";G(a.19){a.19.17(d)}9 e=1q u(d,a);e.18="2K";J e};9 B=F(a,b,x,y,w,h){9 c=13.1R(a.1K,"2v");c.O("x",a.1f(x));c.O("y",a.1g(y));c.O("P",a.1w(w));c.O("T",a.1y(h));c.5F(a.3p,"5G",b);G(a.19){a.19.17(c)}9 d=1q u(c,a);d.18="2v";J d};9 D=F(a,x,y,b){9 c=13.1R(a.1K,"1F");c.O("x",x);c.O("y",y);c.O("1F-5H","5I");c.O("1s","#1x");c.N=c.N||{};c.N.x=x;c.N.y=y;c.N.1s="#1x";G(b){c.17(13.3o(b))}G(a.19){a.19.17(c)}9 d=1q u(c,a);d.18="1F";J d};9 E=F(a){9 b=13.1R(a.1K,"g");G(a.19){a.19.17(b)}9 i=1q u(b,a);1l(9 f 1t a){G(f[0]!="3W"&&1k a[f]=="F"){i[f]=(F(f){J F(){9 e=a[f].2o(a,I);b.17(e[0]);J e}})(f)}}i.18="1H";J i};r.38=F(){G(1k I[0]=="2f"){9 a=13.3X(I[0]);9 b=I[1];9 c=I[2]}G(1k I[0]=="2n"){9 a=I[0];9 b=I[1];9 c=I[2]}G(1k I[0]=="3Y"){9 a=1,x=I[0],y=I[1],b=I[2],c=I[3]}G(!a){3Z 1q 40("2y 41 42 43.");}C.19=13.1R(C.1K,"37");C.19.O("P",b||4c);C.P=b||4c;C.19.O("T",c||4d);C.T=c||4d;G(a==1){13.46.17(C.19);C.19.15.28="2a";C.19.15.1M=x+"1u";C.19.15.1z=y+"1u"}1j{G(a.1J){a.31(C.19,a.1J)}1j{a.17(C.19)}}a={19:C.19,3m:F(){3b(7.19.1J){7.19.2i(7.19.1J)}7.33=13.1R(C.1K,"33");7.47=0;7.19.17(7.33)}};1l(9 d 1t C){G(d!="5J"){a[d]=C[d]}}a.3m();J a};C.1K="4e://4f.4g.4h/5K/37";C.3p="4e://4f.4g.4h/5L/3p"}G(n=="2D"||n=="2y"){C.2J=F(x,y,r){J v(7,x,y,r)};C.26=F(x,y,w,h,r){J z(7,x,y,w,h,r)};C.2K=F(x,y,a,b){J A(7,x,y,a,b)};C.K=F(a,b){J q(a,b,7)};C.2v=F(a,x,y,w,h){J B(7,a,x,y,w,h)};C.1F=F(x,y,a){J D(7,x,y,a)};C.1H=F(){J E(7)};C.5M=F(x,y,w,h,r){G(r&&1D(r,10)){J 7.K({1c:"#1x"}).1N(x+r,y).1i(x+w-r,y).2s(r,"5N").1i(x+w,y+h-r).2s(r,"5O").1i(x+r,y+h).2s(r,"5P").1i(x,y+r).2s(r,"5Q").2c()}J 7.K({1c:"#1x"}).1N(x,y).1i(x+w,y).1i(x+w,y+h).1i(x,y+h).2c()};C.5R=F(x,y,w,h,a,b,c){c=c||"#1x";9 p=7.K({1c:c,"1c-P":1}).1N(x,y).1i(x+w,y).1i(x+w,y+h).1i(x,y+h).1i(x,y);1l(9 i=1;i<b;i++){p.1N(x,y+i*Q.11(h/b)).1i(x+w,y+i*Q.11(h/b))}1l(9 i=1;i<a;i++){p.1N(x+i*Q.11(w/a),y).1i(x+i*Q.11(w/a),y+h)}J p};C.5S=F(a,b,c,d,w,h){9 e=(c-a)/w;9 f=(d-b)/h;7.1f=F(x){J a+x*e};7.1g=F(y){J b+y*f};7.1w=F(w){J w*e};7.1y=F(h){J h*f}};C.5T=F(){7.1f=7.1g=7.1w=7.1y=F(x){J x}};C.5U=F(){G(r.18=="2y"){9 a=C.26(-C.P,-C.T,C.P*3,C.T*3).2Z({1c:"1I"});5V(F(){a.3l()},0)}};J r}1j{J F(){}}})((!(3q.4i&&3q.4i.5W==2))?"2D":"2y");1E.32=!(1E.37=(1E.18=="2y"));G(1E.32&&3q.5X){1E.18="5Y 5Z";1E.32=1E.37=2G}1E.2p=F(){J"60 61 62 "+7.18};1E.4j=F(a,c,d){G(1k a=="2n"&&"h"1t a&&"s"1t a&&"b"1t a){d=a.b;c=a.s;a=a.h}9 e,1T,1U;G(d==0){J{r:0,g:0,b:0,3r:"#1x"}}1j{9 i=Q.63(a*6),f=(a*6)-i,p=d*(1-c),q=d*(1-(c*f)),t=d*(1-(c*(1-f)));[F(){e=d;1T=t;1U=p},F(){e=q;1T=d;1U=p},F(){e=p;1T=d;1U=t},F(){e=p;1T=q;1U=d},F(){e=t;1T=p;1U=d},F(){e=d;1T=p;1U=q},F(){e=d;1T=t;1U=p},][i]()}9 h={r:e,g:1T,b:1U};e*=2C;1T*=2C;1U*=2C;9 r=Q.11(e).2p(16);G(r.1a==1){r="0"+r}9 g=Q.11(1T).2p(16);G(g.1a==1){g="0"+g}9 b=Q.11(1U).2p(16);G(b.1a==1){b="0"+b}h.3r="#"+r+g+b;J h};1E.64=F(a,b,c){G(1k a=="2n"&&"r"1t a&&"h"1t a&&"b"1t a){c=a.b;b=a.g;a=a.r}G(a.2S(0)=="#"){G(a.1a==4){c=1D(a.2j(3),16);b=1D(a.2j(2,3),16);a=1D(a.2j(1,2),16)}1j{c=1D(a.2j(5),16);b=1D(a.2j(3,5),16);a=1D(a.2j(1,3),16)}}G(a>1||b>1||c>1){a/=2C;b/=2C;c/=2C}9 d=Q.65(a,b,c),2N=Q.2N(a,b,c),20,3s,4k=d;G(2N==d){J{h:0,s:0,b:d}}1j{9 e=(d-2N);3s=e/d;G(a==d){20=(b-c)/e}1j G(b==d){20=2+((c-a)/e)}1j{20=4+((a-b)/e)}20/=6;G(20<0){20+=1}G(20>1){20-=1}}J{h:20,s:3s,b:4k}};1E.4l=F(a){9 b=I.3e.3t=I.3e.3t||{h:0,s:1,b:a||.66};9 c=7.4j(b.h,b.s,b.b);b.h+=.1;G(b.h>1){b.h=0;b.s-=.2;G(b.s<=0){b={h:0,s:1,b:b.b}}}J c.3r};1E.4l.67=F(){7.3t=1P};',62,380,'|||||||this||var||||||||||||||||||||||||||||||||function|if||arguments|return|path|||attrs|setAttribute|width|Math|||height|isAbsolute|||||||round|parseFloat|document|case|style||appendChild|type|canvas|length|last|stroke|100|break|_getX|_getY|ii|lineTo|else|typeof|for|rvml|curveTo|dots|createElement|new|Group|fill|in|px|opacity|_getW|000|_getH|top|gradient|absolutely|relatively|parseInt|Raphael|text|parentNode|group|none|firstChild|svgns|transformations|left|moveTo|push|undefined|vector|createElementNS|value|green|blue|true|arg|rollback|color|cs|hue|replace|font|on|cx|cy|rect|Matrix|position||absolute|shape|andClose|pos|join|string|rx|ry|removeChild|substring|bx|by|Path|object|apply|toString|gl|ol|addRoundedCorner|setBox|os|image|gs|els|SVG|getAttribute|ScaleX|ScaleY|255|VML|coordsize|coordorigin|false|getElementsByTagName|dasharray|circle|ellipse|getBBox|id|min|rs|bs|slice|call|charAt|ig|switch|weight|offset|display|diry|attr|childNodes|insertBefore|vml|defs|Rotation|deg|transform|svg|_create|end|split|while|dashesn|toLowerCase|callee|textpath|default|rotate|translate|matrix|tMatrix|remove|clear|stop|createTextNode|xlink|window|hex|saturation|start|prototype|class|redraw|To|move|line|cplineTo|cpline|curve|5522|mzlhvcsqta|family|size|miter|miterlimit|square|str|hide|show|block|filter|scale|abs|instanceof|Array|toFront|toBack|oval|_|getElementById|number|throw|Error|container|not|found|namespaces|url|body|gradients|dx|dy|toUpperCase||320|200|http|www|w3|org|SVGPreserveAspectRatio|hsb2rgb|brightness|getColor|version|progid|DXImageTransform|Microsoft|M11|M12|M21|M22|Dx|Dy|sizingmethod|auto|expand|filtertype|bilinear|className|fontFamily|fontSize|fontWeight|joinstyle|linejoin|endcap|butt|flat|linecap|isNaN|dashstyle|linear|gradientradial|opacity2|color2|colors|atan|180|angle|90|radial|focusposition|focussize|method|RotX|RotY|Scale|name|Element|rotation|offsetLeft||offsetTop|offsetWidth|offsetHeight|tagName|item|roundrect|arcsize|src|ps|textpathok|add|urn|schemas|microsoft|com|createStyleSheet|addRule|behavior|div|320px|200px|clip|filled|stroked|M0|Gradient|raphael|x1|y1|x2|y2|fff|null|setAttributeNS|href|anchor|middle|create|2000|1999|linerect|rd|dl|lu|ur|drawGrid|setGrid|clearGrid|safari|setTimeout|SVG_PRESERVEASPECTRATIO_XMINYMIN|CanvasRenderingContext2D|Canvas|only|Your|browser|supports|floor|rgb2hsb|max|75|reset'.split('|'),0,{}))
\ No newline at end of file
+eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('9 1H=(G(q){9 r=G(){J r.3b.2r(r,K)};r.4q="0.5.5b";r.18=q;9 C={};G 2c(a,b,c,d,e,f){7.m=[[a||1,b||0,0],[c||0,d||1,0],[e||0,f||0,1],]}C.1f=C.1i=C.1v=C.1x=G(x){J x};I(q=="2F"){2c.3x.2s=G(){J"4r:4s.4t.2c(4u="+7.m[0][0]+", 4v="+7.m[1][0]+", 4w="+7.m[0][1]+", 4x="+7.m[1][1]+", 4y="+7.m[2][0]+", 4z="+7.m[2][1]+", 4A=\'4B 4C\', 4D=\'4E\')"};9 s=G(j,l,m){9 g=17.1r("1o:1M"),2t=g.1a;2t.2d="2e";2t.1G=0;2t.1y=0;2t.U=m.U+"1z";2t.15=m.15+"1z";9 n=17.1r("1o:2f"),2u=n.1a;2u.U=m.U+"1z";2u.15=m.15+"1z";n.N="";I(j["3y"]){n.4F=j["3y"]}n.2G=7.2G;n.2H=7.2H;g.1b(n);m.1c.1b(g);9 p=1s v(n,g,m);t(p,j);I(j.1C){u(p,j.1C)}p.P=26;p.18="N";p.N=[];p.13={x:0,y:0,2n:0,2o:0,P:26};p.2g="";p.1D=G(){7.P=26;J 7};p.1E=G(){7.P=2I;J 7};p.3z=G(){7.2g="";9 a=7.N;7.N=[];1n(9 i=0,1j=a.1d;i<1j;i++){I(a[i].18!="3c"){7[a[i].18+"3A"].2r(7,a[i].1N)}1l{7.2h()}}J 7};p.1R=G(x,y){9 d=7.P?"m":"t";9 a=7.P?m.1f:m.1v;9 b=7.P?m.1i:m.1x;d+=Q.14(a(11(x,10)))+" "+Q.14(b(11(y,10)));7[0].N=7.2g+=d;7.13.x=(7.P?0:7.13.x)+Q.14(a(11(x,10)));7.13.y=(7.P?0:7.13.y)+Q.14(b(11(y,10)));7.13.P=7.P;7.N.1I({18:"3B",1N:[].2J.2K(K,0),20:7.P});J 7};p.1k=G(x,y){9 d=7.P?"l":"r";9 a=7.P?m.1f:m.1v;9 b=7.P?m.1i:m.1x;d+=Q.14(a(11(x,10)))+" "+Q.14(b(11(y,10)));7[0].N=7.2g+=d;7.13.x=(7.P?0:7.13.x)+Q.14(a(11(x,10)));7.13.y=(7.P?0:7.13.y)+Q.14(b(11(y,10)));7.13.P=7.P;7.N.1I({18:"3C",1N:[].2J.2K(K,0),20:7.P});J 7};p.3D=G(a,b,c,e,f,g){9 h=7.13.x,2L=7.13.y,x=(h-f)/2,y=(2L-g)/2,k=(c==e?-1:1)*Q.4G((a*a*b*b-a*a*y*y-b*b*x*x)/(a*a*y*y+b*b*x*x)),1S=k*a*y/b+(h+f)/2,1T=k*-b*x/a+(2L+g)/2,d=e?(7.P?"4H":"4I"):(7.P?"4J":"4K"),1f=7.P?m.1f:m.1v,1i=7.P?m.1i:m.1x,1G=Q.14(1S-a),1y=Q.14(1T-b);d+=[1G,1y,1G+a*2,1y+b*2,h,2L,Q.14(1f(11(f,10))),Q.14(1f(11(g,10)))].21(", ");7[0].N=7.2g+=d;7.13.x=(7.P?0:7.13.x)+Q.14(1f(11(f,10)));7.13.y=(7.P?0:7.13.y)+Q.14(1i(11(g,10)));7.13.P=7.P;7.N.1I({18:"3E",1N:[].2J.2K(K,0),20:7.P});J 7};p.3F=G(a,b,c){I(!c){J 7.1k(a,b)}1l{9 p={};p.1f=7.P?m.1f:m.1v;p.1i=7.P?m.1i:m.1x;9 x=Q.14(p.1f(Q.14(11(a,10)*1g)/1g));9 y=Q.14(p.1i(Q.14(11(b,10)*1g)/1g));9 w=Q.14(m.1v(Q.14(11(c,10)*1g)/1g));9 d=7.P?"c":"v";9 e=[7.13.x+w,7.13.y,x-w,y,x,y];d+=e.21(" ")+" ";7.13.x=(7.P?0:7.13.x)+e[4];7.13.y=(7.P?0:7.13.y)+e[5];7.13.2n=e[2];7.13.2o=e[3];7[0].N=7.2g+=d;7.N.1I({18:"3G",1N:[].2J.2K(K,0),20:7.P});J 7}};p.1p=G(){9 d=7.P?"c":"v";9 a=7.P?m.1f:m.1v;9 b=7.P?m.1i:m.1x;I(K.1d==6){7.13.x=(7.P?0:7.13.x)+Q.14(a(11(K[4],10)));7.13.y=(7.P?0:7.13.y)+Q.14(b(11(K[5],10)));7.13.2n=Q.14(a(11(K[2],10)));7.13.2o=Q.14(b(11(K[3],10)));d+=Q.14(a(11(K[0],10)))+" "+Q.14(b(11(K[1],10)))+" "+Q.14(a(11(K[2],10)))+" "+Q.14(b(11(K[3],10)))+" "+Q.14(a(11(K[4],10)))+" "+Q.14(b(11(K[5],10)))+" ";7.13.P=7.P}7[0].N=7.2g+=d;7.N.1I({18:"3H",1N:[].2J.2K(K,0),20:7.P});J 7};p.2v=G(r,a){9 R=.3I*r,22=7.P,o=7;I(22){7.1E();22=G(){o.1D()}}1l{22=G(){}}9 b={l:G(){J{u:G(){o.1p(-R,0,-r,-(r-R),-r,-r)},d:G(){o.1p(-R,0,-r,r-R,-r,r)}}},r:G(){J{u:G(){o.1p(R,0,r,-(r-R),r,-r)},d:G(){o.1p(R,0,r,r-R,r,r)}}},u:G(){J{r:G(){o.1p(0,-R,-(R-r),-r,r,-r)},l:G(){o.1p(0,-R,R-r,-r,-r,-r)}}},d:G(){J{r:G(){o.1p(0,R,-(R-r),r,r,r)},l:G(){o.1p(0,R,R-r,r,-r,r)}}}};b[a.2V(0)]()[a.2V(1)]();22();J o};p.2h=G(){7[0].N=(7.2g+="x e");J 7};I(1m l=="2i"){l=l.27(/([3J])/2W,",$1,").27(/([^,])\\-/2W,"$1,-");N=l.3d(",");9 i=1,1j=N.1d;3e(i<1j){2X(N[i]){19"M":p.1D().1R(N[++i],N[++i]);1h;19"m":p.1E().1R(N[++i],N[++i]);1h;19"C":p.1D().1p(N[++i],N[++i],N[++i],N[++i],N[++i],N[++i]);1h;19"c":p.1E().1p(N[++i],N[++i],N[++i],N[++i],N[++i],N[++i]);1h;19"L":p.1D().1k(N[++i],N[++i]);1h;19"l":p.1E().1k(N[++i],N[++i]);1h;19"H":p.1D().1k(N[++i],0);1h;19"h":p.1E().1k(N[++i],0);1h;19"V":p.1D().1k(0,N[++i]);1h;19"v":p.1E().1k(0,N[++i]);1h;19"Z":19"z":p.2h();1h}i++}}J p};9 t=G(o,a){o[0].O=o[0].O||{};1n(9 b 1w a){o[0].O[b]=a[b]}a["28-3K"]&&(o[0].1a.4L=a["28-3K"]);a["28-3L"]&&(o[0].1a.4M=a["28-3L"]);a["28"]&&(o[0].1a.28=a["28"]);a["28-2Y"]&&(o[0].1a.4N=a["28-2Y"]);I(1m a.1A!="1U"||1m a["1e-U"]!="1U"||1m a.1t!="1U"||1m a.1e!="1U"){o=o.2f||o[0];9 c=(o.2M("1t")&&o.2M("1t")[0])||17.1r("1o:1t");I("1t-1A"1w a||"1A"1w a){c.1A=((a["1t-1A"]+1||2)-1)*((a.1A+1||2)-1)}c.2a=(a.1t&&a.1t!="1J");I(c.2a&&a.1t){c.23=a.1t}I(a.1t=="1J"){c.2a=2I}o.1b(c);9 d=(o.2M("1e")&&o.2M("1e")[0])||17.1r("1o:1e");I((a.1e&&a.1e!="1J")||a["1e-U"]||a["1e-1A"]||a["1e-2N"]){d.2a=26}I(a.1e=="1J"||1m d.2a=="1U"){d.2a=2I}I(d.2a&&a.1e){d.23=a.1e}d.1A=((a["1e-1A"]+1||2)-1)*((a.1A+1||2)-1);d.4O=a["1e-4P"]||"3M";d.3N=a["1e-3N"]||8;d.4Q={4R:"4S",3O:"3O",14:"14"}[a["1e-4T"]||"3M"];I(a["1e-U"]){d.2Y=(11(a["1e-U"],10)||1)*12/16}I(a["1e-2N"]){9 e=a["1e-2N"].27(" ",",").3d(","),3f=[],3P=d.2Y;1n(9 i=0,1j=e.1d;i<1j;i++){9 f=e[i]/3P;I(!4U(f)){3f.1I(f)}};d.4V=3f.21(" ")}o.1b(d)}};9 u=G(o,a){o[0].O=o[0].O||{};o[0].O.1C=a;o=o.2f||o[0];9 b=o.2M("1t");I(b.1d){b=b[0]}1l{b=17.1r("1o:1t")}I(a.1q.1d){b.2a=26;b.18=(a.18.3g()=="4W")?"1C":"4X";I(1m a.1q[0].23!="1U"){b.23=a.1q[0].23||"#1B"}I(1m a.1q[0].1A!="1U"){b.1A=a.1q[0].1A}I(1m a.1q[a.1q.1d-1].1A!="1U"){b.4Y=a.1q[a.1q.1d-1].1A}I(1m a.1q[a.1q.1d-1].23!="1U"){b.4Z=a.1q[a.1q.1d-1].23||"#1B"}9 c="";1n(9 i=1,1j=a.1q.1d-1;i<1j;i++){c+=a.1q[i].2Z+" "+a.1q[i].23;I(i!=1j-1){c+=","}};I(c){b.50=c}I(a.1V){9 d=Q.14(Q.51((1F(a.1V[3],10)-1F(a.1V[1],10))/(1F(a.1V[2],10)-1F(a.1V[0],10)))*57.29)+52;b.53=d+54}I(a.18.3g()=="55"){b.56="0.5, 0.5";b.58="0, 0";b.59="1J"}}};9 v=G(g,k,l){9 m=0,5a=0,5c=0,5d=1;7[0]=g;7.X=0;7.Y=0;K.3h.5e="5f";7[0].O={};7.1u=k;7.2w=G(a){9 b=7.1u.1a,2x=7[0].1a;1n(9 i 1w a){7[0].O[i]=a[i]}9 c=7[0].O,x,y,w,h;2X(7.18){19"2O":x=c.1S-c.r;y=c.1T-c.r;w=h=c.r*2;1h;19"2P":x=c.1S-c.2j;y=c.1T-c.2k;w=c.2j*2;h=c.2k*2;1h;19"2b":19"2y":x=c.x;y=c.y;w=c.w;h=c.h;1h;19"1K":7.3i.v=["m",Q.14(c.x),", ",Q.14(c.y-2),"l",Q.14(c.x)+1,", ",Q.14(c.y-2)].21("");J;3j:J}9 d=l.U/2-w/2,1y=l.15/2-h/2;b.2d="2e";b.1G=x-d+"1z";b.1y=y-1y+"1z";7.X=x-d;7.Y=y-1y;7.W=w;7.H=h;b.U=l.U+"1z";b.15=l.15+"1z";2x.2d="2e";2x.1y=1y+"1z";2x.1G=d+"1z";2x.U=w+"1z";2x.15=h+"1z"};7.3Q=G(){7.1u.1a.30="1J";J 7};7.3R=G(){7.1u.1a.30="3S";J 7};7.3k=G(a){m+=a;7.1u.1a.5g=m;J 7};7.3l=G(x,y){7.X+=x;7.Y+=y;7.1u.1a.1G=7.X+"1z";7.1u.1a.1y=7.Y+"1z";J 7};7.3m=G(a,b,c,d,e,f){3n=1s 2c(a,b,c,d,e,f);7.1u.1a.3T=3n;J 7};7.3U=G(x,y){y=y||x;I(x!=0&&!(x==1&&y==1)){9 a=Q.14(x/Q.3V(x)),31=Q.14(y/Q.3V(y));I(a!=1||31!=1){7[0].1a.3T=1s 2c(a,0,0,31,0,0)}9 b=1F(7[0].1a.U,10)*x*a;9 c=1F(7[0].1a.15,10)*y*31;9 d=1F(7[0].1a.1G,10);9 e=1F(7[0].1a.1y,10);7[0].1a.1G=7.X=d+7.W/2-b/2;7[0].1a.1y=7.Y=e+7.H/2-c/2;7[0].1a.U=7.W=b;7[0].1a.15=7.H=c}J 7};7.2Q=G(){J{x:7.1u.5h,y:7.1u.5i,U:7.1u.5j,15:7.1u.5k}};7.3o=G(){7[0].1L.2l(7[0]);7.1u.1L.2l(7.1u);7.2f&&7.2f.1L.2l(7.2f)};7.32=G(){I(K.1d==1&&1m K[0]=="2i"){J 7[0].O[K[0]]}I(7[0].O&&K.1d==1&&K[0]3W 3X){9 a={};1n(9 i=0,1j=K[0].1d;i<1j;i++){a[K[0][i]]=7[0].O[K[0][i]]};J a}I(7[0].5l.3g()=="1M"){9 b=7[0].33;7[0].O=7[0].O||{};I(K.1d==2){7[0].O[K[0]]=K[1]}1l I(K.1d==1||1m K[0]=="2p"){1n(9 j 1w K[0]){7[0].O[j]=K[0][j]}}1n(9 i=0,1j=b.1d;i<1j;i++){7.32.2r(1s 5m(b[i],7[0],l),K)}}1l{9 c;I(K.1d==2){c={};c[K[0]]=K[1]}I(K.1d==1&&1m K[0]=="2p"){c=K[0]}I(c){t(7,c);7.2w(c);I(c.1C){u(7,c.1C)}I(c.1K&&7.18=="1K"){7[0].2i=c.1K}I(c.2R){7[0].2R=c.2R}}}J 7};7.3Y=G(){7.1u.1L.1b(7.1u);J 7};7.3Z=G(){I(7.1u.1L.1O!=7.1u){7.1u.1L.34(7.1u,7.1u.1L.1O)}J 7}};9 z=G(a,x,y,r){9 g=17.1r("1o:1M");9 o=17.1r("1o:40");g.1b(o);a.1c.1b(g);9 b=1s v(o,g,a);t(b,{1e:"#1B",1t:"1J"});b.2w({x:x-r,y:y-r,w:r*2,h:r*2});o.O.1S=x;o.O.1T=y;o.O.r=r;b.18="2O";J b};9 A=G(a,x,y,w,h,r){9 g=17.1r("1o:1M");9 o=17.1r(r?"1o:5n":"1o:2b");I(r){o.5o=r/(Q.2S(w,h))}g.1b(o);a.1c.1b(g);9 b=1s v(o,g,a);t(b,{1e:"#1B"});b.2w({x:x,y:y,w:w,h:h});o.O.x=x;o.O.y=y;o.O.w=w;o.O.h=h;o.O.r=r;b.18="2b";J b};9 B=G(a,x,y,b,c){9 g=17.1r("1o:1M");9 o=17.1r("1o:40");g.1b(o);a.1c.1b(g);9 d=1s v(o,g,a);t(d,{1e:"#1B"});d.2w({x:x-b,y:y-c,w:b*2,h:c*2});o.O.1S=x;o.O.1T=y;o.O.2j=b;o.O.2k=c;d.18="2P";J d};9 D=G(a,b,x,y,w,h){9 g=17.1r("1o:1M");9 o=17.1r("1o:2y");o.5p=b;g.1b(o);a.1c.1b(g);9 c=1s v(o,g,a);c.18="2y";c.2w({x:x,y:y,w:w,h:h});o.O.x=x;o.O.y=y;o.O.w=w;o.O.h=h;J c};9 E=G(a,x,y,b){9 g=17.1r("1o:1M"),2z=g.1a;9 c=17.1r("1o:2f"),2u=c.1a;9 d=17.1r("1o:N"),5q=d.1a;d.v=["m",Q.14(x),", ",Q.14(y-2),"l",Q.14(x)+1,", ",Q.14(y-2)].21("");d.5r=26;2u.U=a.U;2u.15=a.15;2z.2d="2e";2z.1G=0;2z.1y=0;2z.U=a.U;2z.15=a.15;9 o=17.1r("1o:3i");o.2i=b;o.2a=26;o.2G=a.2G;o.2H=a.2H;c.1b(o);c.1b(d);g.1b(c);a.1c.1b(g);9 e=1s v(o,g,a);e.2f=c;e.3i=d;e.18="1K";o.O.x=x;o.O.y=y;o.O.w=1;o.O.h=1;J e};9 F=G(a){9 b=17.1r("1o:1M"),2A=b.1a;2A.2d="2e";2A.1G=0;2A.1y=0;2A.U=a.U;2A.15=a.15;I(a.1c){a.1c.1b(b)}9 c=1s v(b,b,a);1n(9 f 1w a){I(f.2V(0)!="41"&&1m a[f]=="G"){c[f]=(G(f){J G(){9 e=a[f].2r(a,K);b.1b(e[0].1L);J e}})(f)}}c.18="1M";J c};r.3b=G(){9 d,U,15;I(1m K[0]=="2i"){d=17.42(K[0]);U=K[1];15=K[2]}I(1m K[0]=="2p"){d=K[0];U=K[1];15=K[2]}I(1m K[0]=="43"){d=1;x=K[0];y=K[1];U=K[2];15=K[3]}I(!d){44 1s 45("2F 46 47 48.");}I(!17.49["1o"]){17.49.5s("1o","5t:5u-5v-5w:35");17.5x().5y("1o\\\\:*","5z:4a(#3j#2F)")}9 c=17.1r("5A"),r=C.1c=17.1r("1o:1M"),24=c.1a,2T=r.1a;C.U=U;C.15=15;U=U||"5B";15=15||"5C";24.5D="2b(0 "+U+" "+15+" 0)";24.2d="2e";2T.U=U;2T.15=15;r.2G=(U=="1g%"?U:11(U))+" "+(15=="1g%"?15:11(15));r.2H="0 0";9 b=17.1r("1o:2b"),2U=b.1a;2U.1G=2U.1y=0;2U.U=2T.U;2U.15=2T.15;b.5E=b.5F="f";r.1b(b);c.1b(r);I(d==1){17.4b.1b(c);24.2d="2e";24.1G=x+"1z";24.1y=y+"1z";24.U=U;24.15=15;d={1a:{U:U,15:15}}}1l{24.U=d.1a.U=U;24.15=d.1a.15=15;I(d.1O){d.34(c,d.1O)}1l{d.1b(c)}}1n(9 e 1w C){d[e]=C[e]}d.3p=G(){9 a=[];1n(9 i=0,1j=r.33.1d;i<1j;i++){I(r.33[i]!=b){a.1I(r.33[i])}}1n(i=0,1j=a.1d;i<1j;i++){r.2l(a[i])}};J d}}I(q=="2B"){2c.3x.2s=G(){J"3m("+7.m[0][0]+", "+7.m[1][0]+", "+7.m[0][1]+", "+7.m[1][1]+", "+7.m[2][0]+", "+7.m[2][1]+")"};9 s=G(j,k,l){9 m=17.1W(l.1P,"N");m.T("1t","1J");I(j){1n(9 n 1w j){I(j.1C){u(m,j.1C,l)}1l{m.T(n,j[n])}}}I(l.1c){l.1c.1b(m)}9 p=1s v(m,l);1n(9 n 1w j){p.O[n]=j[n]}p.P=26;p.N=[];p.13={x:0,y:0,2n:0,2o:0};p.1D=G(){7.P=26;J 7};p.1E=G(){7.P=2I;J 7};p.3z=G(){7[0].T("d","5G 0");9 a=7.N;7.N=[];1n(9 i=0,1j=a.1d;i<1j;i++){I(a[i].18!="3c"){7[a[i].18+"3A"].2r(7,a[i].1N)}1l{7.2h()}}J 7};p.1R=G(x,y){9 d=7.P?"M":"m";9 a=7.P?l.1f:l.1v;9 b=7.P?l.1i:l.1x;d+=a(11(x,10))+" "+b(11(y,10))+" ";9 c=7[0].2q("d")||"";7[0].T("d",c+d);7.13.x=l.1f(11(x,10));7.13.y=l.1i(11(y,10));7.N.1I({18:"3B",1N:K,20:7.P});J 7};p.1k=G(x,y){9 d=7.P?"L":"l";9 a=7.P?l.1f:l.1v;9 b=7.P?l.1i:l.1x;d+=a(11(x,10))+" "+b(11(y,10))+" ";9 c=7[0].2q("d")||"";7[0].T("d",c+d);7.13.x=l.1f(11(x,10));7.13.y=l.1i(11(y,10));7.N.1I({18:"3C",1N:K,20:7.P});J 7};p.3D=G(a,b,c,e,x,y){9 d=7.P?"A":"a";9 f=7.P?l.1f:l.1v;9 g=7.P?l.1i:l.1x;d+=[l.1v(11(a,10)),l.1x(11(b,10)),0,c,e,f(11(x,10)),g(11(y,10))].21(" ");9 h=7[0].2q("d")||"";7[0].T("d",h+d);7.13.x=l.1f(11(x,10));7.13.y=l.1i(11(y,10));7.N.1I({18:"3E",1N:K,20:7.P});J 7};p.3F=G(a,b,c){I(!c){J 7.1k(a,b)}1l{9 p={};p.1f=7.P?l.1f:l.1v;p.1i=7.P?l.1i:l.1x;9 x=p.1f(Q.14(11(a,10)*1g)/1g);9 y=p.1i(Q.14(11(b,10)*1g)/1g);9 w=l.1v(Q.14(11(c,10)*1g)/1g);9 d=7.P?"C":"c";9 e=[7.13.x+w,7.13.y,x-w,y,x,y];1n(9 i=0,1j=e.1d;i<1j;i++){d+=e[i]+" "}7.13.x=e[4];7.13.y=e[5];7.13.2n=e[2];7.13.2o=e[3];9 f=7[0].2q("d")||"";7[0].T("d",f+d);7.N.1I({18:"3G",1N:K,20:7.P});J 7}};p.1p=G(){9 p={};p.1f=7.P?l.1f:l.1v;p.1i=7.P?l.1i:l.1x;I(K.1d==6){9 d=7.P?"C":"c";1n(9 i=0,1j=K.1d;i<1j;i++){d+=p[(i%2==0)?"1f":"1i"](Q.14(11(K[i],10)*1g)/1g)+" "}7.13.x=p.1f((11(K[4],10)*1g)/1g);7.13.y=p.1i((11(K[5],10)*1g)/1g);7.13.2n=p.1f((11(K[2],10)*1g)/1g);7.13.2o=p.1i((11(K[3],10)*1g)/1g)}1l{I(K.1d==4){9 d=7.P?"S":"s";1n(9 i=0,1j=K.1d;i<1j;i++){d+=p[i%2==0?"1f":"1i"]((11(K[i],10)*1g)/1g)+" "}}7.13.x=p.1f((11(K[2],10)*1g)/1g);7.13.y=p.1i((11(K[3],10)*1g)/1g);7.13.2n=p.1f((11(K[0],10)*1g)/1g);7.13.2o=p.1i((11(K[1],10)*1g)/1g)}9 a=7[0].2q("d")||"";7[0].T("d",a+d);7.N.1I({18:"3H",1N:K,20:7.P});J 7};p.2v=G(r,a){9 R=.3I*r,22=7.P,o=7;I(22){7.1E();22=G(){o.1D()}}1l{22=G(){}}9 b={l:G(){J{u:G(){o.1p(-R,0,-r,-(r-R),-r,-r)},d:G(){o.1p(-R,0,-r,r-R,-r,r)}}},r:G(){J{u:G(){o.1p(R,0,r,-(r-R),r,-r)},d:G(){o.1p(R,0,r,r-R,r,r)}}},u:G(){J{r:G(){o.1p(0,-R,-(R-r),-r,r,-r)},l:G(){o.1p(0,-R,R-r,-r,-r,-r)}}},d:G(){J{r:G(){o.1p(0,R,-(R-r),r,r,r)},l:G(){o.1p(0,R,R-r,r,-r,r)}}}};b[a[0]]()[a[1]]();22();J o};p.2h=G(){9 a=7[0].2q("d")||"";7[0].T("d",a+"Z ");7.N.1I({18:"3c"});J 7};I(1m k=="2i"){k=k.27(/([3J])/2W,",$1,").27(/([^,])\\-/2W,"$1,-");N=k.3d(",");9 i=1,1j=N.1d;3e(i<1j){2X(N[i]){19"M":p.1D().1R(N[++i],N[++i]);1h;19"m":p.1E().1R(N[++i],N[++i]);1h;19"C":p.1D().1p(N[++i],N[++i],N[++i],N[++i],N[++i],N[++i]);1h;19"c":p.1E().1p(N[++i],N[++i],N[++i],N[++i],N[++i],N[++i]);1h;19"s":p.1E().1p(N[++i],N[++i],N[++i],N[++i]);1h;19"S":p.1D().1p(N[++i],N[++i],N[++i],N[++i]);1h;19"L":p.1D().1k(N[++i],N[++i]);1h;19"l":p.1E().1k(N[++i],N[++i]);1h;19"H":p.1D().1k(N[++i],0);1h;19"h":p.1E().1k(N[++i],0);1h;19"V":p.1D().1k(0,N[++i]);1h;19"v":p.1E().1k(0,N[++i]);1h;19"z":p.2h();1h}i++}}J p};9 u=G(o,a,b){9 c=17.1W(b.1P,a.18+"5H");c.2R="5I-1C-"+b.4c++;I(a.1V&&a.1V.1d){c.T("5J",a.1V[0]);c.T("2L",a.1V[1]);c.T("5K",a.1V[2]);c.T("5L",a.1V[3])}b.36.1b(c);1n(9 i=0,1j=a.1q.1d;i<1j;i++){9 d=17.1W(b.1P,"3q");d.T("2Z",a.1q[i].2Z?a.1q[i].2Z:(i==0)?"0%":"1g%");d.T("3q-23",a.1q[i].23||"#5M");I(1m a.1q[i].1A!="1U"){d.T("3q-1A",a.1q[i].1A)}c.1b(d)};o.T("1t","4a(#"+c.2R+")")};9 v=G(g,h){9 X=0,Y=0,37={38:0,x:0,y:0},2C=1,2D=1,3n=5N;7[0]=g;7.O=7.O||{};7.1Q=[];7.3Q=G(){7[0].1a.30="1J";J 7};7.3R=G(){7[0].1a.30="3S";J 7};7.3k=G(a){9 b=7.2Q();37.38+=a;I(37.38){7.1Q[0]=("3k("+37.38+" "+(b.x+b.U/2)+" "+(b.y+b.15/2)+")")}1l{7.1Q[0]=""}7[0].T("39",7.1Q.21(" "));J 7};7.3l=G(x,y){X+=x;Y+=y;I(X&&Y){7.1Q[1]="3l("+X+","+Y+")"}1l{7.1Q[1]=""}7[0].T("39",7.1Q.21(" "));J 7};7.3U=G(x,y){y=y||x;I(x!=0&&!(x==1&&y==1)){2C*=x;2D*=y;I(!(2C==1&&2D==1)){9 a=7.2Q(),4d=a.x*(1-2C)+(a.U/2-a.U*2C/2),4e=a.y*(1-2D)+(a.15/2-a.15*2D/2);7.1Q[2]=1s 2c(2C,0,0,2D,4d,4e)}1l{7.1Q[2]=""}7[0].T("39",7.1Q.21(" "))}J 7};7.3m=G(a,b,c,d,e,f){7.1Q[3]=1s 2c(a,b,c,d,e,f);7[0].T("39",7.1Q.21(" "));J 7};7.3o=G(){7[0].1L.2l(7[0])};7.2Q=G(){J 7[0].2Q()};7.32=G(){I(K.1d==1&&1m K[0]=="2i"){J 7[0].2q(K[0])}I(K.1d==1&&K[0]3W 3X){9 a={};1n(9 j 1w K[0]){a[K[0][j]]=7.O[K[0][j]]}J a}I(K.1d==2){9 b=K[0],1X=K[1];7[b]=1X;7.O[b]=1X;2X(b){19"2j":19"1S":19"x":7[0].T(b,h.1f(1X));1h;19"2k":19"1T":19"y":7[0].T(b,h.1i(1X));1h;19"U":7[0].T(b,h.1v(1X));1h;19"15":7[0].T(b,h.1x(1X));1h;19"1C":u(7[0],d.1C,h);1h;19"1e-2N":7[0].T(b,1X.27(" ",","));1h;19"1K":I(7.18=="1K"){7[0].2l(7[0].1O);7[0].1b(17.3r(1X))}1h;3j:9 c=b.27(/(\\-.)/g,G(w){J w.2m(1).4f()});7[0].1a[c]=1X;7[0].T(b,1X);1h}}1l I(K.1d==1&&1m K[0]=="2p"){9 d=K[0];1n(9 e 1w d){7.O[e]=d[e];I(e=="1e-2N"){7[0].T(e,d[e].27(" ",","))}1l I(e=="1K"&&7.18=="1K"){7[0].2l(7[0].1O);7[0].1b(17.3r(d[e]))}1l{9 c=e.27(/(\\-.)/g,G(w){J w.2m(1).4f()});7[0].1a[c]=d[e];7[0].T(e,d[e])}}I(d.1C){7[0].O.1C=d.1C;u(7[0],d.1C,h)}}J 7};7.3Y=G(){7[0].1L.1b(7[0]);J 7};7.3Z=G(){I(7[0].1L.1O!=7[0]){7[0].1L.34(7[0],7[0].1L.1O)}J 7}};9 z=G(a,x,y,r){9 b=17.1W(a.1P,"2O");b.T("1S",a.1f(x));b.T("1T",a.1i(y));b.T("r",r);b.T("1t","1J");b.T("1e","#1B");b.O=b.O||{};b.O.1S=x;b.O.1T=y;b.O.r=r;b.O.1e="#1B";I(a.1c){a.1c.1b(b)}9 c=1s v(b,a);c.18="2O";J c};9 A=G(a,x,y,w,h,r){9 b=17.1W(a.1P,"2b");b.T("x",a.1f(x));b.T("y",a.1i(y));b.T("U",a.1v(w));b.T("15",a.1x(h));b.O=b.O||{};b.O.x=x;b.O.y=y;b.O.U=w;b.O.15=h;I(r){b.T("2j",r);b.T("2k",r);b.O.2j=b.O.2k=r}b.T("1t","1J");b.T("1e","#1B");b.O.1e="#1B";I(a.1c){a.1c.1b(b)}9 c=1s v(b,a);c.18="2b";J c};9 B=G(a,x,y,b,c){9 d=17.1W(a.1P,"2P");d.T("1S",a.1f(x));d.T("1T",a.1i(y));d.T("2j",a.1v(b));d.T("2k",a.1x(c));d.T("1t","1J");d.T("1e","#1B");d.O=d.O||{};d.O.1S=x;d.O.1T=y;d.O.2j=b;d.O.2k=c;d.O.1e="#1B";I(a.1c){a.1c.1b(d)}9 e=1s v(d,a);e.18="2P";J e};9 D=G(a,b,x,y,w,h){9 c=17.1W(a.1P,"2y");c.T("x",a.1f(x));c.T("y",a.1i(y));c.T("U",a.1v(w));c.T("15",a.1x(h));c.5O(a.3s,"5P",b);I(a.1c){a.1c.1b(c)}9 d=1s v(c,a);d.18="2y";J d};9 E=G(a,x,y,b){9 c=17.1W(a.1P,"1K");c.T("x",x);c.T("y",y);c.T("1K-5Q","5R");c.T("1t","#1B");c.O=c.O||{};c.O.x=x;c.O.y=y;c.O.1t="#1B";I(b){c.1b(17.3r(b))}I(a.1c){a.1c.1b(c)}9 d=1s v(c,a);d.18="1K";J d};9 F=G(a){9 b=17.1W(a.1P,"g");I(a.1c){a.1c.1b(b)}9 i=1s v(b,a);1n(9 f 1w a){I(f[0]!="41"&&1m a[f]=="G"){i[f]=(G(f){J G(){9 e=a[f].2r(a,K);b.1b(e[0]);J e}})(f)}}i.18="1M";J i};r.3b=G(){I(1m K[0]=="2i"){9 a=17.42(K[0]);9 b=K[1];9 c=K[2]}I(1m K[0]=="2p"){9 a=K[0];9 b=K[1];9 c=K[2]}I(1m K[0]=="43"){9 a=1,x=K[0],y=K[1],b=K[2],c=K[3]}I(!a){44 1s 45("2B 46 47 48.");}C.1c=17.1W(C.1P,"3a");C.1c.T("U",b||4g);C.U=b||4g;C.1c.T("15",c||4h);C.15=c||4h;I(a==1){17.4b.1b(C.1c);C.1c.1a.2d="2e";C.1c.1a.1G=x+"1z";C.1c.1a.1y=y+"1z"}1l{I(a.1O){a.34(C.1c,a.1O)}1l{a.1b(C.1c)}}a={1c:C.1c,3p:G(){3e(7.1c.1O){7.1c.2l(7.1c.1O)}7.36=17.1W(C.1P,"36");7.4c=0;7.1c.1b(7.36)}};1n(9 d 1w C){I(d!="5S"){a[d]=C[d]}}a.3p();J a};C.1P="4i://4j.4k.4l/5T/3a";C.3s="4i://4j.4k.4l/5U/3s"}I(q=="2F"||q=="2B"){C.2O=G(x,y,r){J z(7,x,y,r)};C.2b=G(x,y,w,h,r){J A(7,x,y,w,h,r)};C.2P=G(x,y,a,b){J B(7,x,y,a,b)};C.N=G(a,b){J s(a,b,7)};C.2y=G(a,x,y,w,h){J D(7,a,x,y,w,h)};C.1K=G(x,y,a){J E(7,x,y,a)};C.1M=G(){J F(7)};C.5V=G(x,y,w,h,r){I(r&&1F(r,10)){J 7.N({1e:"#1B"}).1R(x+r,y).1k(x+w-r,y).2v(r,"5W").1k(x+w,y+h-r).2v(r,"5X").1k(x+r,y+h).2v(r,"5Y").1k(x,y+r).2v(r,"5Z").2h()}J 7.N({1e:"#1B"}).1R(x,y).1k(x+w,y).1k(x+w,y+h).1k(x,y+h).2h()};C.60=G(x,y,w,h,a,b,c){c=c||"#1B";9 p=7.N({1e:c,"1e-U":1}).1R(x,y).1k(x+w,y).1k(x+w,y+h).1k(x,y+h).1k(x,y);1n(9 i=1;i<b;i++){p.1R(x,y+i*Q.14(h/b)).1k(x+w,y+i*Q.14(h/b))}1n(9 i=1;i<a;i++){p.1R(x+i*Q.14(w/a),y).1k(x+i*Q.14(w/a),y+h)}J p};C.61=G(a,b,c,d,w,h){9 e=(c-a)/w;9 f=(d-b)/h;7.1f=G(x){J a+x*e};7.1i=G(y){J b+y*f};7.1v=G(w){J w*e};7.1x=G(h){J h*f}};C.62=G(){7.1f=7.1i=7.1v=7.1x=G(x){J x}};C.63=G(){I(r.18=="2B"){9 a=C.2b(-C.U,-C.15,C.U*3,C.15*3).32({1e:"1J"});64(G(){a.3o()},0)}};J r}1l{J G(){}}})((!(3t.4m&&3t.4m.65==2))?"2F":"2B");1H.35=!(1H.3a=(1H.18=="2B"));I(1H.35&&3t.66){1H.18="67 68";1H.35=1H.3a=2I}1H.2s=G(){J"69 6a 6b "+7.18};1H.4n=G(a,c,d){I(1m a=="2p"&&"h"1w a&&"s"1w a&&"b"1w a){d=a.b;c=a.s;a=a.h}9 e,1Y,1Z;I(d==0){J{r:0,g:0,b:0,3u:"#1B"}}1l{9 i=Q.6c(a*6),f=(a*6)-i,p=d*(1-c),q=d*(1-(c*f)),t=d*(1-(c*(1-f)));[G(){e=d;1Y=t;1Z=p},G(){e=q;1Y=d;1Z=p},G(){e=p;1Y=d;1Z=t},G(){e=p;1Y=q;1Z=d},G(){e=t;1Y=p;1Z=d},G(){e=d;1Y=p;1Z=q},G(){e=d;1Y=t;1Z=p},][i]()}9 h={r:e,g:1Y,b:1Z};e*=2E;1Y*=2E;1Z*=2E;9 r=Q.14(e).2s(16);I(r.1d==1){r="0"+r}9 g=Q.14(1Y).2s(16);I(g.1d==1){g="0"+g}9 b=Q.14(1Z).2s(16);I(b.1d==1){b="0"+b}h.3u="#"+r+g+b;J h};1H.6d=G(a,b,c){I(1m a=="2p"&&"r"1w a&&"h"1w a&&"b"1w a){c=a.b;b=a.g;a=a.r}I(a.2V(0)=="#"){I(a.1d==4){c=1F(a.2m(3),16);b=1F(a.2m(2,3),16);a=1F(a.2m(1,2),16)}1l{c=1F(a.2m(5),16);b=1F(a.2m(3,5),16);a=1F(a.2m(1,3),16)}}I(a>1||b>1||c>1){a/=2E;b/=2E;c/=2E}9 d=Q.6e(a,b,c),2S=Q.2S(a,b,c),25,3v,4o=d;I(2S==d){J{h:0,s:0,b:d}}1l{9 e=(d-2S);3v=e/d;I(a==d){25=(b-c)/e}1l I(b==d){25=2+((c-a)/e)}1l{25=4+((a-b)/e)}25/=6;I(25<0){25+=1}I(25>1){25-=1}}J{h:25,s:3v,b:4o}};1H.4p=G(a){9 b=K.3h.3w=K.3h.3w||{h:0,s:1,b:a||.6f};9 c=7.4n(b.h,b.s,b.b);b.h+=.1;I(b.h>1){b.h=0;b.s-=.2;I(b.s<=0){b={h:0,s:1,b:b.b}}}J c.3u};1H.4p.6g=G(){7.3w=1U};',62,389,'|||||||this||var|||||||||||||||||||||||||||||||||function||if|return|arguments|||path|attrs|isAbsolute|Math|||setAttribute|width|||||||parseFloat||last|round|height||document|type|case|style|appendChild|canvas|length|stroke|_getX|100|break|_getY|ii|lineTo|else|typeof|for|rvml|curveTo|dots|createElement|new|fill|Group|_getW|in|_getH|top|px|opacity|000|gradient|absolutely|relatively|parseInt|left|Raphael|push|none|text|parentNode|group|arg|firstChild|svgns|transformations|moveTo|cx|cy|undefined|vector|createElementNS|value|green|blue|pos|join|rollback|color|cs|hue|true|replace|font||on|rect|Matrix|position|absolute|shape|Path|andClose|string|rx|ry|removeChild|substring|bx|by|object|getAttribute|apply|toString|gl|ol|addRoundedCorner|setBox|os|image|gs|els|SVG|ScaleX|ScaleY|255|VML|coordsize|coordorigin|false|slice|call|y1|getElementsByTagName|dasharray|circle|ellipse|getBBox|id|min|rs|bs|charAt|ig|switch|weight|offset|display|diry|attr|childNodes|insertBefore|vml|defs|Rotation|deg|transform|svg|_create|end|split|while|dashesn|toLowerCase|callee|textpath|default|rotate|translate|matrix|tMatrix|remove|clear|stop|createTextNode|xlink|window|hex|saturation|start|prototype|class|redraw|To|move|line|arcTo|arc|cplineTo|cpline|curve|5522|mzlhvcsqta|family|size|miter|miterlimit|square|str|hide|show|block|filter|scale|abs|instanceof|Array|toFront|toBack|oval|_|getElementById|number|throw|Error|container|not|found|namespaces|url|body|gradients|dx|dy|toUpperCase|320|200|http|www|w3|org|SVGPreserveAspectRatio|hsb2rgb|brightness|getColor|version|progid|DXImageTransform|Microsoft|M11|M12|M21|M22|Dx|Dy|sizingmethod|auto|expand|filtertype|bilinear|className|sqrt|wa|wr|at|ar|fontFamily|fontSize|fontWeight|joinstyle|linejoin|endcap|butt|flat|linecap|isNaN|dashstyle|linear|gradientradial|opacity2|color2|colors|atan|180|angle|90|radial|focusposition||focussize|method|RotX||RotY|Scale|name|Element|rotation|offsetLeft|offsetTop|offsetWidth|offsetHeight|tagName|item|roundrect|arcsize|src|ps|textpathok|add|urn|schemas|microsoft|com|createStyleSheet|addRule|behavior|div|320px|200px|clip|filled|stroked|M0|Gradient|raphael|x1|x2|y2|fff|null|setAttributeNS|href|anchor|middle|create|2000|1999|linerect|rd|dl|lu|ur|drawGrid|setGrid|clearGrid|safari|setTimeout|SVG_PRESERVEASPECTRATIO_XMINYMIN|CanvasRenderingContext2D|Canvas|only|Your|browser|supports|floor|rgb2hsb|max|75|reset'.split('|'),0,{}))
\ No newline at end of file
index 0aefbde..b931147 100755 (executable)
@@ -1,5 +1,5 @@
 /*
- * Raphael 0.5.4b - JavaScript Vector Library
+ * Raphael 0.5.5b - JavaScript Vector Library
  *
  * Copyright (c) 2008 Dmitry Baranovskiy (raphaeljs.com)
  * Licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) license.
@@ -8,7 +8,7 @@ var Raphael = (function (type) {
         var r = function () {
             return r._create.apply(r, arguments);
         };
-        r.version = "0.5.4b";
+        r.version = "0.5.5b";
         r.type = type;
         var C = {};
         function Matrix(m11, m12, m21, m22, dx, dy) {
@@ -73,7 +73,8 @@ var Raphael = (function (type) {
                         } else {
                             this.andClose();
                         }
-                    };
+                    }
+                    return this;
                 };
                 p.moveTo = function (x, y) {
                     var d = this.isAbsolute?"m":"t";
@@ -81,8 +82,8 @@ var Raphael = (function (type) {
                     var _getY = this.isAbsolute ? VML._getY : VML._getH;
                     d += Math.round(_getX(parseFloat(x, 10))) + " " + Math.round(_getY(parseFloat(y, 10)));
                     this[0].path = this.Path += d;
-                    this.last.x = Math.round(_getX(parseFloat(x, 10)));
-                    this.last.y = Math.round(_getY(parseFloat(y, 10)));
+                    this.last.x = (this.isAbsolute ? 0 : this.last.x) + Math.round(_getX(parseFloat(x, 10)));
+                    this.last.y = (this.isAbsolute ? 0 : this.last.y) + Math.round(_getY(parseFloat(y, 10)));
                     this.last.isAbsolute = this.isAbsolute;
                     this.path.push({type: "move", arg: [].slice.call(arguments, 0), pos: this.isAbsolute});
                     return this;
@@ -93,12 +94,36 @@ var Raphael = (function (type) {
                     var _getY = this.isAbsolute ? VML._getY : VML._getH;
                     d += Math.round(_getX(parseFloat(x, 10))) + " " + Math.round(_getY(parseFloat(y, 10)));
                     this[0].path = this.Path += d;
-                    this.last.x = Math.round(_getX(parseFloat(x, 10)));
-                    this.last.y = Math.round(_getY(parseFloat(y, 10)));
+                    this.last.x = (this.isAbsolute ? 0 : this.last.x) + Math.round(_getX(parseFloat(x, 10)));
+                    this.last.y = (this.isAbsolute ? 0 : this.last.y) + Math.round(_getY(parseFloat(y, 10)));
                     this.last.isAbsolute = this.isAbsolute;
                     this.path.push({type: "line", arg: [].slice.call(arguments, 0), pos: this.isAbsolute});
                     return this;
                 };
+                p.arcTo = function (rx, ry, large_arc_flag, sweep_flag, x2, y2) {
+                    // for more information of where this math came from visit:
+                    // http://www.w3.org/TR/SVG11/implnote.html#ArcImplementationNotes
+                    var x1 = this.last.x,
+                        y1 = this.last.y,
+                        x = (x1 - x2) / 2,
+                        y = (y1 - y2) / 2,
+                        k = (large_arc_flag == sweep_flag ? -1 : 1) *
+                            Math.sqrt((rx * rx * ry * ry - rx * rx * y * y - ry * ry * x * x) / (rx * rx * y * y + ry * ry * x * x)),
+                        cx = k * rx * y / ry + (x1 + x2) / 2,
+                        cy = k * -ry * x / rx + (y1 + y2) / 2,
+                        d = sweep_flag ? (this.isAbsolute?"wa":"wr") : (this.isAbsolute?"at":"ar"),
+                        _getX = this.isAbsolute ? VML._getX : VML._getW,
+                        _getY = this.isAbsolute ? VML._getY : VML._getH,
+                        left = Math.round(cx - rx),
+                        top = Math.round(cy - ry);
+                    d += [left, top, left + rx * 2, top + ry * 2, x1, y1, Math.round(_getX(parseFloat(x2, 10))), Math.round(_getX(parseFloat(y2, 10)))].join(", ");
+                    this[0].path = this.Path += d;
+                    this.last.x = (this.isAbsolute ? 0 : this.last.x) + Math.round(_getX(parseFloat(x2, 10)));
+                    this.last.y = (this.isAbsolute ? 0 : this.last.y) + Math.round(_getY(parseFloat(y2, 10)));
+                    this.last.isAbsolute = this.isAbsolute;
+                    this.path.push({type: "arc", arg: [].slice.call(arguments, 0), pos: this.isAbsolute});
+                    return this;
+                };
                 p.cplineTo = function (x1, y1, w1) {
                     if (!w1) {
                         return this.lineTo(x1, y1);
@@ -112,8 +137,8 @@ var Raphael = (function (type) {
                         var d = this.isAbsolute?"c":"v";
                         var attr = [this.last.x + w, this.last.y, x - w, y, x, y];
                         d += attr.join(" ") + " ";
-                        this.last.x = attr[4];
-                        this.last.y = attr[5];
+                        this.last.x = (this.isAbsolute ? 0 : this.last.x) + attr[4];
+                        this.last.y = (this.isAbsolute ? 0 : this.last.y) + attr[5];
                         this.last.bx = attr[2];
                         this.last.by = attr[3];
                         this[0].path = this.Path += d;
@@ -126,8 +151,8 @@ var Raphael = (function (type) {
                     var _getX = this.isAbsolute ? VML._getX : VML._getW;
                     var _getY = this.isAbsolute ? VML._getY : VML._getH;
                     if (arguments.length == 6) {
-                        this.last.x = Math.round(_getX(parseFloat(arguments[4], 10)));
-                        this.last.y = Math.round(_getY(parseFloat(arguments[5], 10)));
+                        this.last.x = (this.isAbsolute ? 0 : this.last.x) + Math.round(_getX(parseFloat(arguments[4], 10)));
+                        this.last.y = (this.isAbsolute ? 0 : this.last.y) + Math.round(_getY(parseFloat(arguments[5], 10)));
                         this.last.bx = Math.round(_getX(parseFloat(arguments[2], 10)));
                         this.last.by = Math.round(_getY(parseFloat(arguments[3], 10)));
                         d += Math.round(_getX(parseFloat(arguments[0], 10))) + " " + Math.round(_getY(parseFloat(arguments[1], 10))) + " " +
@@ -260,7 +285,7 @@ var Raphael = (function (type) {
                     if ("fill-opacity" in params || "opacity" in params) {
                         fill.opacity = ((params["fill-opacity"] + 1 || 2) - 1) * ((params.opacity + 1 || 2) - 1);
                     }
-                    params.fill && (fill.on = true);
+                    fill.on = (params.fill && params.fill != "none");
                     if (fill.on && params.fill) {
                         fill.color = params.fill;
                     }
@@ -282,7 +307,9 @@ var Raphael = (function (type) {
                     stroke.joinstyle = params["stroke-linejoin"] || "miter";
                     stroke.miterlimit = params["stroke-miterlimit"] || 8;
                     stroke.endcap = {butt: "flat", square: "square", round: "round"}[params["stroke-linecap"] || "miter"];
-                    stroke.weight = (parseFloat(params["stroke-width"], 10) || 1);
+                    if (params["stroke-width"]) {
+                        stroke.weight = (parseFloat(params["stroke-width"], 10) || 1) * 12/16;
+                    }
                     if (params["stroke-dasharray"]) {
                         var dashes = params["stroke-dasharray"].replace(" ", ",").split(","),
                             dashesn = [],
@@ -778,7 +805,8 @@ var Raphael = (function (type) {
                         } else {
                             this.andClose();
                         }
-                    };
+                    }
+                    return this;
                 };
                 p.moveTo = function (x, y) {
                     var d = this.isAbsolute?"M":"m";
@@ -804,6 +832,18 @@ var Raphael = (function (type) {
                     this.path.push({type: "line", arg: arguments, pos: this.isAbsolute});
                     return this;
                 };
+                p.arcTo = function (rx, ry, large_arc_flag, sweep_flag, x, y) {
+                    var d = this.isAbsolute ? "A" : "a";
+                    var _getX = this.isAbsolute ? SVG._getX : SVG._getW;
+                    var _getY = this.isAbsolute ? SVG._getY : SVG._getH;
+                    d += [SVG._getW(parseFloat(rx, 10)), SVG._getH(parseFloat(ry, 10)), 0, large_arc_flag, sweep_flag, _getX(parseFloat(x, 10)), _getY(parseFloat(y, 10))].join(" ");
+                    var oldD = this[0].getAttribute("d") || "";
+                    this[0].setAttribute("d", oldD + d);
+                    this.last.x = SVG._getX(parseFloat(x, 10));
+                    this.last.y = SVG._getY(parseFloat(y, 10));
+                    this.path.push({type: "arc", arg: arguments, pos: this.isAbsolute});
+                    return this;
+                };
                 p.cplineTo = function (x1, y1, w1) {
                     if (!w1) {
                         return this.lineTo(x1, y1);
@@ -1143,12 +1183,29 @@ var Raphael = (function (type) {
                 };
                 this.toFront = function () {
                     this[0].parentNode.appendChild(this[0]);
+                    return this;
                 };
                 this.toBack = function () {
                     if (this[0].parentNode.firstChild != this[0]) {
                         this[0].parentNode.insertBefore(this[0], this[0].parentNode.firstChild);
                     }
+                    return this;
                 };
+                // this.animateTo = function (x, y, ms, callback) {
+                //     if ("cx" in node.attrs || "x" in node.attrs) {
+                //         var X = node.attrs.cx || node.attrs.x;
+                //         var Y = node.attrs.cy || node.attrs.y;
+                //         var dy = y - Y;
+                //         var dx = x - X;
+                //         var coeff = dy / dx;
+                //         var plus = Y - coeff * X;
+                //         var alpha = Math.atan(this.coeff);
+                //         this.xs = this.step * Math.cos(alpha);
+                //         if (x < X) {
+                //             this.xs = -this.xs;
+                //         }
+                //  }
+                // };
             };
             var theCircle = function (svg, x, y, r) {
                 var el = document.createElementNS(svg.svgns, "circle");
@@ -1413,6 +1470,7 @@ if (Raphael.vml && window.CanvasRenderingContext2D) {
 Raphael.toString = function () {
     return "Your browser supports " + this.type;
 };
+// generic utilities
 Raphael.hsb2rgb = function (hue, saturation, brightness) {
     if (typeof hue == "object" && "h" in hue && "s" in hue && "b" in hue) {
         brightness = hue.b;