;!function(t){var e,r,i="0.3.4",n="hasownproperty",a=/[\.\/]/,s="*",o=function(){},l=function(t,e){return t-e},h={n:{}},u=function(t,i){var n,a=r,s=array.prototype.slice.call(arguments,2),o=u.listeners(t),h=0,c=[],f={},p=[],d=e;e=t,r=0;for(var g=0,v=o.length;v>g;g++)"zindex"in o[g]&&(c.push(o[g].zindex),o[g].zindex<0&&(f[o[g].zindex]=o[g]));for(c.sort(l);c[h]<0;)if(n=f[c[h++]],p.push(n.apply(i,s)),r)return r=a,p;for(g=0;v>g;g++)if(n=o[g],"zindex"in n)if(n.zindex==c[h]){if(p.push(n.apply(i,s)),r)break;do if(h++,n=f[c[h]],n&&p.push(n.apply(i,s)),r)break;while(n)}else f[n.zindex]=n;else if(p.push(n.apply(i,s)),r)break;return r=a,e=d,p.length?p:null};u.listeners=function(t){var e,r,i,n,o,l,u,c,f=t.split(a),p=h,d=[p],g=[];for(n=0,o=f.length;o>n;n++){for(c=[],l=0,u=d.length;u>l;l++)for(p=d[l].n,r=[p[f[n]],p[s]],i=2;i--;)e=r[i],e&&(c.push(e),g=g.concat(e.f||[]));d=c}return g},u.on=function(t,e){for(var r=t.split(a),i=h,n=0,s=r.length;s>n;n++)i=i.n,!i[r[n]]&&(i[r[n]]={n:{}}),i=i[r[n]];for(i.f=i.f||[],n=0,s=i.f.length;s>n;n++)if(i.f[n]==e)return o;return i.f.push(e),function(t){+t==+t&&(e.zindex=+t)}},u.stop=function(){r=1},u.nt=function(t){return t?new regexp("(?:\\.|\\/|^)"+t+"(?:\\.|\\/|$)").test(e):e},u.off=u.unbind=function(t,e){var r,i,o,l,u,c,f,p=t.split(a),d=[h];for(l=0,u=p.length;u>l;l++)for(c=0;cl;l++)for(r=d[l];r.n;){if(e){if(r.f){for(c=0,f=r.f.length;f>c;c++)if(r.f[c]==e){r.f.splice(c,1);break}!r.f.length&&delete r.f}for(i in r.n)if(r.n[n](i)&&r.n[i].f){var g=r.n[i].f;for(c=0,f=g.length;f>c;c++)if(g[c]==e){g.splice(c,1);break}!g.length&&delete r.n[i].f}}else{delete r.f;for(i in r.n)r.n[n](i)&&r.n[i].f&&delete r.n[i].f}r=r.n}},u.once=function(t,e){var r=function(){var i=e.apply(this,arguments);return u.unbind(t,r),i};return u.on(t,r)},u.version=i,u.tostring=function(){return"you are running eve "+i},"undefined"!=typeof module&&module.exports?module.exports=u:"undefined"!=typeof define?define("eve",[],function(){return u}):t.eve=u}(this),function(){function t(t){for(var e=0;e_;_++){var m=ar[_];if(m.el.id==e.id&&m.anim==t){m.percent!=r?(ar.splice(_,1),u=1):h=m,e.attr(m.totalorigin);break}}else n=+v;for(var _=0,w=t.percents.length;w>_;_++){if(t.percents[_]==r||t.percents[_]>n*t.top){r=t.percents[_],f=t.percents[_-1]||0,d=d/t.top*(r-f),c=t.percents[_+1],l=t.anim[r];break}n&&e.attr(t.anim[t.percents[_]])}if(l){if(h)h.initstatus=n,h.start=new date-h.ms*n;else{for(var c in l)if(l[k](c)&&(ee[k](c)||e.paper.customattributes[k](c)))switch(g[c]=e.attr(c),null==g[c]&&(g[c]=te[c]),v[c]=l[c],ee[c]){case y:y[c]=(v[c]-g[c])/d;break;case"colour":g[c]=x.getrgb(g[c]);var b=x.getrgb(v[c]);y[c]={r:(b.r-g[c].r)/d,g:(b.g-g[c].g)/d,b:(b.b-g[c].b)/d};break;case"path":var s=fe(g[c],v[c]),a=s[1];for(g[c]=s[0],y[c]=[],_=0,w=g[c].length;w>_;_++){y[c][_]=[0];for(var n=1,l=g[c][_].length;l>n;n++)y[c][_][n]=(a[_][n]-g[c][_][n])/d}break;case"transform":var m=e._,f=qe(m[c],v[c]);if(f)for(g[c]=f.from,v[c]=f.to,y[c]=[],y[c].real=!0,_=0,w=g[c].length;w>_;_++)for(y[c][_]=[g[c][_][0]],n=1,l=g[c][_].length;l>n;n++)y[c][_][n]=(v[c][_][n]-g[c][_][n])/d;else{var r=e.matrix||new a,p={_:{transform:m.transform},getbbox:function(){return e.getbbox(1)}};g[c]=[r.a,r.b,r.c,r.d,r.e,r.f],ie(p,v[c]),v[c]=p._.transform,y[c]=[(p.matrix.a-r.a)/d,(p.matrix.b-r.b)/d,(p.matrix.c-r.c)/d,(p.matrix.d-r.d)/d,(p.matrix.e-r.e)/d,(p.matrix.f-r.f)/d]}break;case"csv":var i=z(l[c])[e](b),j=z(g[c])[e](b);if("clip-rect"==c)for(g[c]=j,y[c]=[],_=j.length;_--;)y[c][_]=(i[_]-g[c][_])/d;v[c]=i;break;default:for(i=[][t](l[c]),j=[][t](g[c]),y[c]=[],_=e.paper.customattributes[c].length;_--;)y[c][_]=((i[_]||0)-(j[_]||0))/d}var q=l.easing,d=x.easing_formulas[q];if(!d)if(d=z(q).match($),d&&5==d.length){var v=d;d=function(t){return i(t,+v[1],+v[2],+v[3],+v[4],d)}}else d=ce;if(p=l.start||t.start||+new date,m={anim:t,percent:r,timestamp:p,start:p+(t.del||0),status:0,initstatus:n||0,stop:!1,ms:d,easing:d,from:g,diff:y,to:v,el:e,callback:l.callback,prev:f,next:c,repeat:o||t.times,origin:e.attr(),totalorigin:s},ar.push(m),n&&!h&&!u&&(m.stop=!0,m.start=new date-d*n,1==ar.length))return or();u&&(m.start=new date-m.ms*n),1==ar.length&&sr(or)}eve("raphael.anim.start."+e.id,e,t)}}function r(t,e){var r=[],i={};if(this.ms=e,this.times=1,t){for(var n in t)t[k](n)&&(i[q(n)]=t[n],r.push(q(n)));r.sort(he)}this.anim=i,this.top=r[r.length-1],this.percents=r}function i(t,e,r,i,n,a){function s(t,e){var r,i,n,a,s,o;for(n=t,o=0;8>o;o++){if(a=l(n)-t,d(a)n)return r;if(n>i)return i;for(;i>r;){if(a=l(n),d(a-t)a?r=n:i=n,n=(i-r)/2+r}return n}function o(t,e){var r=s(t,e);return((d*r+p)*r+f)*r}function l(t){return((c*t+u)*t+h)*t}var h=3*e,u=3*(i-e)-h,c=1-h-u,f=3*r,p=3*(n-r)-f,d=1-f-p;return o(t,1/(200*a))}function n(){return this.x+m+this.y+m+this.width+" 脳 "+this.height}function a(t,e,r,i,n,a){null!=t?(this.a=+t,this.b=+e,this.c=+r,this.d=+i,this.e=+n,this.f=+a):(this.a=1,this.b=0,this.c=0,this.d=1,this.e=0,this.f=0)}function s(t,e,r){t=x._path2curve(t),e=x._path2curve(e);for(var i,n,a,s,l,h,u,c,f,p,d=r?0:[],g=0,v=t.length;v>g;g++){var y=t[g];if("m"==y[0])i=l=y[1],n=h=y[2];else{"c"==y[0]?(f=[i,n].concat(y.slice(1)),i=f[6],n=f[7]):(f=[i,n,i,n,l,h,l,h],i=l,n=h);for(var m=0,b=e.length;b>m;m++){var _=e[m];if("m"==_[0])a=u=_[1],s=c=_[2];else{"c"==_[0]?(p=[a,s].concat(_.slice(1)),a=p[6],s=p[7]):(p=[a,s,a,s,u,c,u,c],a=u,s=c);var w=o(f,p,r);if(r)d+=w;else{for(var k=0,c=w.length;c>k;k++)w[k].segment1=g,w[k].segment2=m,w[k].bez1=f,w[k].bez2=p;d=d.concat(w)}}}}}return d}function o(t,e,r){var i=x.bezierbbox(t),n=x.bezierbbox(e);if(!x.isbboxintersect(i,n))return r?0:[];for(var a=u.apply(0,t),s=u.apply(0,e),o=~~(a/5),h=~~(s/5),c=[],f=[],p={},d=r?0:[],g=0;o+1>g;g++){var v=x.finddotsatsegment.apply(x,t.concat(g/o));c.push({x:v.x,y:v.y,t:g/o})}for(g=0;h+1>g;g++)v=x.finddotsatsegment.apply(x,e.concat(g/h)),f.push({x:v.x,y:v.y,t:g/h});for(g=0;o>g;g++)for(var y=0;h>y;y++){var m=c[g],b=c[g+1],_=f[y],w=f[y+1],k=d(b.x-m.x)<.001?"y":"x",c=d(w.x-_.x)<.001?"y":"x",b=l(m.x,m.y,b.x,b.y,_.x,_.y,w.x,w.y);if(b){if(p[b.x.tofixed(4)]==b.y.tofixed(4))continue;p[b.x.tofixed(4)]=b.y.tofixed(4);var s=m.t+d((b[k]-m[k])/(b[k]-m[k]))*(b.t-m.t),a=_.t+d((b[c]-_[c])/(w[c]-_[c]))*(w.t-_.t);s>=0&&1>=s&&a>=0&&1>=a&&(r?d++:d.push({x:b.x,y:b.y,t1:s,t2:a}))}}return d}function l(t,e,r,i,n,a,s,o){if(!(j(t,r)j(n,s)||j(e,i)j(a,o))){var l=(t*i-e*r)*(n-s)-(t-r)*(n*o-a*s),h=(t*i-e*r)*(a-o)-(e-i)*(n*o-a*s),u=(t-r)*(a-o)-(e-i)*(n-s);if(!u)return;var c=l/u,f=h/u,p=+c.tofixed(2),d=+f.tofixed(2);if(p<+q(t,r).tofixed(2)||p>+j(t,r).tofixed(2)||p<+q(n,s).tofixed(2)||p>+j(n,s).tofixed(2)||d<+q(e,i).tofixed(2)||d>+j(e,i).tofixed(2)||d<+q(a,o).tofixed(2)||d>+j(a,o).tofixed(2))return;return{x:c,y:f}}}function h(t,e,r,i,n,a,s,o,l){if(!(0>l||u(t,e,r,i,n,a,s,o)d;)f/=2,p+=(l>h?1:-1)*f,h=u(t,e,r,i,n,a,s,o,p);return p}}function u(t,e,r,i,n,a,s,o,l){null==l&&(l=1),l=l>1?1:0>l?0:l;for(var h=l/2,u=12,f=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],p=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],d=0,g=0;u>g;g++){var v=h*f[g]+h,x=c(v,t,r,n,s),y=c(v,e,i,a,o),m=x*x+y*y;d+=p[g]*i.sqrt(m)}return h*d}function c(t,e,r,i,n){var a=-3*e+9*r-9*i+3*n,s=t*a+6*e-12*r+6*i;return t*s-3*e+3*r}function f(t,e){for(var r=[],i=0,n=t.length;n-2*!e>i;i+=2){var a=[{x:+t[i-2],y:+t[i-1]},{x:+t[i],y:+t[i+1]},{x:+t[i+2],y:+t[i+3]},{x:+t[i+4],y:+t[i+5]}];e?i?n-4==i?a[3]={x:+t[0],y:+t[1]}:n-2==i&&(a[2]={x:+t[0],y:+t[1]},a[3]={x:+t[2],y:+t[3]}):a[0]={x:+t[n-2],y:+t[n-1]}:n-4==i?a[3]=a[2]:i||(a[0]={x:+t[i],y:+t[i+1]}),r.push(["c",(-a[0].x+6*a[1].x+a[2].x)/6,(-a[0].y+6*a[1].y+a[2].y)/6,(a[1].x+6*a[2].x-a[3].x)/6,(a[1].y+6*a[2].y-a[3].y)/6,a[2].x,a[2].y])}return r}function p(){return this.hex}function d(t,e,r){function i(){var n=array.prototype.slice.call(arguments,0),a=n.join("鈵€"),s=i.cache=i.cache||{},o=i.count=i.count||[];return s[k](a)?(g(o,a),r?r(s[a]):s[a]):(o.length>=1e3&&delete s[o.shift()],o.push(a),s[a]=t[a](e,n),r?r(s[a]):s[a])}return i}function g(t,e){for(var r=0,i=t.length;i>r;r++)if(t[r]===e)return t.push(t.splice(r,1)[0])}function v(t){if(object(t)!==t)return t;var e=new t.constructor;for(var r in t)t[k](r)&&(e[r]=v(t[r]));return e}function x(t){if(x.is(t,"function"))return y?t():eve.on("raphael.domload",t);if(x.is(t,w))return x._engine.create[a](x,t.splice(0,3+x.is(t[0],y))).add(t);var e=array.prototype.slice.call(arguments,0);if(x.is(e[e.length-1],"function")){var r=e.pop();return y?r.call(x._engine.create[a](x,e)):eve.on("raphael.domload",function(){r.call(x._engine.create[a](x,e))})}return x._engine.create[a](x,arguments)}x.version="2.1.0",x.eve=eve;var y,m,b=/[, ]+/,_={circle:1,rect:1,path:1,ellipse:1,text:1,image:1},w=/\{(\d+)\}/g,k="hasownproperty",c={doc:document,win:window},b={was:object.prototype[k].call(c.win,"raphael"),is:c.win.raphael},s=function(){this.ca=this.customattributes={}},a="apply",t="concat",n="createtouch"in c.doc,l="",m=" ",z=string,e="split",f="click dblclick mousedown mousemove mouseout mouseover mouseup touchstart touchmove touchend touchcancel"[e](m),r={mousedown:"touchstart",mousemove:"touchmove",mouseup:"touchend"},p=z.prototype.tolowercase,i=math,j=i.max,q=i.min,d=i.abs,v=i.pow,o=i.pi,y="number",g="string",w="array",x=object.prototype.tostring,h=(x._isurl=/^url\(['"]?([^\)]+?)['"]?\)$/i,/^\s*((#[a-f\d]{6})|(#[a-f\d]{3})|rgba?\(\s*([\d\.]+%?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+%?(?:\s*,\s*[\d\.]+%?)?)\s*\)|hsba?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\)|hsla?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\))\s*$/i),u={nan:1,infinity:1,"-infinity":1},$=/^(?:cubic-)?bezier\(([^,]+),([^,]+),([^,]+),([^\)]+)\)/,z=i.round,q=parsefloat,j=parseint,k=z.prototype.touppercase,te=x._availableattrs={"arrow-end":"none","arrow-start":"none",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/","letter-spacing":0,opacity:1,path:"m0,0",r:0,rx:0,ry:0,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",transform:"",width:0,x:0,y:0},ee=x._availableanimattrs={blur:y,"clip-rect":"csv",cx:y,cy:y,fill:"colour","fill-opacity":y,"font-size":y,height:y,opacity:y,path:"path",r:y,rx:y,ry:y,stroke:"colour","stroke-opacity":y,"stroke-width":y,transform:"transform",width:y,x:y,y:y},re=/[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*/,ie={hs:1,rg:1},ne=/,?([achlmqrstvxz]),?/gi,ae=/([achlmrqstvz])[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*)+)/gi,se=/([rstm])[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*)+)/gi,oe=/(-?\d*\.?\d*(?:e[\-+]?\d+)?)[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*/gi,le=(x._radial_gradient=/^r(?:\(([^,]+?)[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*([^\)]+?)\))?/,{}),he=function(t,e){return q(t)-q(e)},ue=function(){},ce=function(t){return t},fe=x._rectpath=function(t,e,r,i,n){return n?[["m",t+n,e],["l",r-2*n,0],["a",n,n,0,0,1,n,n],["l",0,i-2*n],["a",n,n,0,0,1,-n,n],["l",2*n-r,0],["a",n,n,0,0,1,-n,-n],["l",0,2*n-i],["a",n,n,0,0,1,n,-n],["z"]]:[["m",t,e],["l",r,0],["l",0,i],["l",-r,0],["z"]]},pe=function(t,e,r,i){return null==i&&(i=r),[["m",t,e],["m",0,-i],["a",r,i,0,1,1,0,2*i],["a",r,i,0,1,1,0,-2*i],["z"]]},de=x._getpath={path:function(t){return t.attr("path")},circle:function(t){var e=t.attrs;return pe(e.cx,e.cy,e.r)},ellipse:function(t){var e=t.attrs;return pe(e.cx,e.cy,e.rx,e.ry)},rect:function(t){var e=t.attrs;return fe(e.x,e.y,e.width,e.height,e.r)},image:function(t){var e=t.attrs;return fe(e.x,e.y,e.width,e.height)},text:function(t){var e=t._getbbox();return fe(e.x,e.y,e.width,e.height)}},ge=x.mappath=function(t,e){if(!e)return t;var r,i,n,a,s,o,l;for(t=fe(t),n=0,s=t.length;s>n;n++)for(l=t[n],a=1,o=l.length;o>a;a+=2)r=e.x(l[a],l[a+1]),i=e.y(l[a],l[a+1]),l[a]=r,l[a+1]=i;return t};if(x._g=c,x.type=c.win.svgangle||c.doc.implementation.hasfeature("http://www.w3.org/tr/svg11/feature#basicstructure","1.1")?"svg":"vml","vml"==x.type){var ve,xe=c.doc.createelement("div");if(xe.innerhtml='',ve=xe.firstchild,ve.style.behavior="url(#default#vml)",!ve||"object"!=typeof ve.adj)return x.type=l;xe=null}x.svg=!(x.vml="vml"==x.type),x._paper=s,x.fn=m=s.prototype=x.prototype,x._id=0,x._oid=0,x.is=function(t,e){return e=p.call(e),"finite"==e?!u[k](+t):"array"==e?t instanceof array:"null"==e&&null===t||e==typeof t&&null!==t||"object"==e&&t===object(t)||"array"==e&&array.isarray&&array.isarray(t)||x.call(t).slice(8,-1).tolowercase()==e},x.angle=function(t,e,r,i,n,a){if(null==n){var s=t-r,o=e-i;return s||o?(180+180*i.atan2(-o,-s)/o+360)%360:0}return x.angle(t,e,n,a)-x.angle(r,i,n,a)},x.rad=function(t){return t%360*o/180},x.deg=function(t){return 180*t/o%360},x.snapto=function(t,e,r){if(r=x.is(r,"finite")?r:10,x.is(t,w)){for(var i=t.length;i--;)if(d(t[i]-e)<=r)return t[i]}else{t=+t;var n=e%t;if(r>n)return e-n;if(n>t-r)return e-n+t}return e};x.createuuid=function(t,e){return function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(t,e).touppercase()}}(/[xy]/g,function(t){var e=16*i.random()|0,r="x"==t?e:3&e|8;return r.tostring(16)});x.setwindow=function(t){eve("raphael.setwindow",x,c.win,t),c.win=t,c.doc=c.win.document,x._engine.initwin&&x._engine.initwin(c.win)};var ye=function(t){if(x.vml){var e,r=/^\s+|\s+$/g;try{var i=new activexobject("htmlfile");i.write(""),i.close(),e=i.body}catch(n){e=createpopup().document.body}var a=e.createtextrange();ye=d(function(t){try{e.style.color=z(t).replace(r,l);var i=a.querycommandvalue("forecolor");return i=(255&i)<<16|65280&i|(16711680&i)>>>16,"#"+("000000"+i.tostring(16)).slice(-6)}catch(n){return"none"}})}else{var s=c.doc.createelement("i");s.title="rapha毛l colour picker",s.style.display="none",c.doc.body.appendchild(s),ye=d(function(t){return s.style.color=t,c.doc.defaultview.getcomputedstyle(s,l).getpropertyvalue("color")})}return ye(t)},me=function(){return"hsb("+[this.h,this.s,this.b]+")"},be=function(){return"hsl("+[this.h,this.s,this.l]+")"},_e=function(){return this.hex},we=function(t,e,r){if(null==e&&x.is(t,"object")&&"r"in t&&"g"in t&&"b"in t&&(r=t.b,e=t.g,t=t.r),null==e&&x.is(t,g)){var i=x.getrgb(t);t=i.r,e=i.g,r=i.b}return(t>1||e>1||r>1)&&(t/=255,e/=255,r/=255),[t,e,r]},ke=function(t,e,r,i){t*=255,e*=255,r*=255;var n={r:t,g:e,b:r,hex:x.rgb(t,e,r),tostring:_e};return x.is(i,"finite")&&(n.opacity=i),n};x.color=function(t){var e;return x.is(t,"object")&&"h"in t&&"s"in t&&"b"in t?(e=x.hsb2rgb(t),t.r=e.r,t.g=e.g,t.b=e.b,t.hex=e.hex):x.is(t,"object")&&"h"in t&&"s"in t&&"l"in t?(e=x.hsl2rgb(t),t.r=e.r,t.g=e.g,t.b=e.b,t.hex=e.hex):(x.is(t,"string")&&(t=x.getrgb(t)),x.is(t,"object")&&"r"in t&&"g"in t&&"b"in t?(e=x.rgb2hsl(t),t.h=e.h,t.s=e.s,t.l=e.l,e=x.rgb2hsb(t),t.v=e.b):(t={hex:"none"},t.r=t.g=t.b=t.h=t.s=t.v=t.l=-1)),t.tostring=_e,t},x.hsb2rgb=function(t,e,r,i){this.is(t,"object")&&"h"in t&&"s"in t&&"b"in t&&(r=t.b,e=t.s,t=t.h,i=t.o),t*=360;var n,a,s,o,l;return t=t%360/60,l=r*e,o=l*(1-d(t%2-1)),n=a=s=r-l,t=~~t,n+=[l,o,0,0,o,l][t],a+=[o,l,l,o,0,0][t],s+=[0,0,o,l,l,o][t],ke(n,a,s,i)},x.hsl2rgb=function(t,e,r,i){this.is(t,"object")&&"h"in t&&"s"in t&&"l"in t&&(r=t.l,e=t.s,t=t.h),(t>1||e>1||r>1)&&(t/=360,e/=100,r/=100),t*=360;var n,a,s,o,l;return t=t%360/60,l=2*e*(.5>r?r:1-r),o=l*(1-d(t%2-1)),n=a=s=r-l/2,t=~~t,n+=[l,o,0,0,o,l][t],a+=[o,l,l,o,0,0][t],s+=[0,0,o,l,l,o][t],ke(n,a,s,i)},x.rgb2hsb=function(t,e,r){r=we(t,e,r),t=r[0],e=r[1],r=r[2];var i,n,a,s;return a=j(t,e,r),s=a-q(t,e,r),i=0==s?null:a==t?(e-r)/s:a==e?(r-t)/s+2:(t-e)/s+4,i=(i+360)%6*60/360,n=0==s?0:s/a,{h:i,s:n,b:a,tostring:me}},x.rgb2hsl=function(t,e,r){r=we(t,e,r),t=r[0],e=r[1],r=r[2];var i,n,a,s,o,l;return s=j(t,e,r),o=q(t,e,r),l=s-o,i=0==l?null:s==t?(e-r)/l:s==e?(r-t)/l+2:(t-e)/l+4,i=(i+360)%6*60/360,a=(s+o)/2,n=0==l?0:.5>a?l/(2*a):l/(2-2*a),{h:i,s:n,l:a,tostring:be}},x._path2string=function(){return this.join(",").replace(ne,"$1")};x._preload=function(t,e){var r=c.doc.createelement("img");r.style.csstext="position:absolute;left:-9999em;top:-9999em",r.onload=function(){e.call(this),this.onload=null,c.doc.body.removechild(this)},r.onerror=function(){c.doc.body.removechild(this)},c.doc.body.appendchild(r),r.src=t};x.getrgb=d(function(t){if(!t||(t=z(t)).indexof("-")+1)return{r:-1,g:-1,b:-1,hex:"none",error:1,tostring:p};if("none"==t)return{r:-1,g:-1,b:-1,hex:"none",tostring:p};!ie[k](t.tolowercase().substring(0,2))&&"#"!=t.charat()&&(t=ye(t));var e,r,i,n,a,s,o=t.match(h);return o?(o[2]&&(i=j(o[2].substring(5),16),r=j(o[2].substring(3,5),16),e=j(o[2].substring(1,3),16)),o[3]&&(i=j((a=o[3].charat(3))+a,16),r=j((a=o[3].charat(2))+a,16),e=j((a=o[3].charat(1))+a,16)),o[4]&&(s=o[4][e](re),e=q(s[0]),"%"==s[0].slice(-1)&&(e*=2.55),r=q(s[1]),"%"==s[1].slice(-1)&&(r*=2.55),i=q(s[2]),"%"==s[2].slice(-1)&&(i*=2.55),"rgba"==o[1].tolowercase().slice(0,4)&&(n=q(s[3])),s[3]&&"%"==s[3].slice(-1)&&(n/=100)),o[5]?(s=o[5][e](re),e=q(s[0]),"%"==s[0].slice(-1)&&(e*=2.55),r=q(s[1]),"%"==s[1].slice(-1)&&(r*=2.55),i=q(s[2]),"%"==s[2].slice(-1)&&(i*=2.55),("deg"==s[0].slice(-3)||"掳"==s[0].slice(-1))&&(e/=360),"hsba"==o[1].tolowercase().slice(0,4)&&(n=q(s[3])),s[3]&&"%"==s[3].slice(-1)&&(n/=100),x.hsb2rgb(e,r,i,n)):o[6]?(s=o[6][e](re),e=q(s[0]),"%"==s[0].slice(-1)&&(e*=2.55),r=q(s[1]),"%"==s[1].slice(-1)&&(r*=2.55),i=q(s[2]),"%"==s[2].slice(-1)&&(i*=2.55),("deg"==s[0].slice(-3)||"掳"==s[0].slice(-1))&&(e/=360),"hsla"==o[1].tolowercase().slice(0,4)&&(n=q(s[3])),s[3]&&"%"==s[3].slice(-1)&&(n/=100),x.hsl2rgb(e,r,i,n)):(o={r:e,g:r,b:i,tostring:p},o.hex="#"+(16777216|i|r<<8|e<<16).tostring(16).slice(1),x.is(n,"finite")&&(o.opacity=n),o)):{r:-1,g:-1,b:-1,hex:"none",error:1,tostring:p}},x),x.hsb=d(function(t,e,r){return x.hsb2rgb(t,e,r).hex}),x.hsl=d(function(t,e,r){return x.hsl2rgb(t,e,r).hex}),x.rgb=d(function(t,e,r){return"#"+(16777216|r|e<<8|t<<16).tostring(16).slice(1)}),x.getcolor=function(t){var e=this.getcolor.start=this.getcolor.start||{h:0,s:1,b:t||.75},r=this.hsb2rgb(e.h,e.s,e.b);return e.h+=.075,e.h>1&&(e.h=0,e.s-=.2,e.s<=0&&(this.getcolor.start={h:0,s:1,b:e.b})),r.hex},x.getcolor.reset=function(){delete this.start},x.parsepathstring=function(t){if(!t)return null;var e=ce(t);if(e.arr)return se(e.arr);var r={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0},i=[];return x.is(t,w)&&x.is(t[0],w)&&(i=se(t)),i.length||z(t).replace(ae,function(t,e,n){var a=[],s=e.tolowercase();if(n.replace(oe,function(t,e){e&&a.push(+e)}),"m"==s&&a.length>2&&(i.push([e][t](a.splice(0,2))),s="l",e="m"==e?"l":"l"),"r"==s)i.push([e][t](a));else for(;a.length>=r[s]&&(i.push([e][t](a.splice(0,r[s]))),r[s]););}),i.tostring=x._path2string,e.arr=se(i),i},x.parsetransformstring=d(function(t){if(!t)return null;var e=[];return x.is(t,w)&&x.is(t[0],w)&&(e=se(t)),e.length||z(t).replace(se,function(t,r,i){{var n=[];p.call(r)}i.replace(oe,function(t,e){e&&n.push(+e)}),e.push([r][t](n))}),e.tostring=x._path2string,e});var ce=function(t){var e=ce.ps=ce.ps||{};return e[t]?e[t].sleep=100:e[t]={sleep:100},settimeout(function(){for(var r in e)e[k](r)&&r!=t&&(e[r].sleep--,!e[r].sleep&&delete e[r])}),e[t]};x.finddotsatsegment=function(t,e,r,i,n,a,s,o,l){var h=1-l,u=v(h,3),c=v(h,2),f=l*l,p=f*l,d=u*t+3*c*l*r+3*h*l*l*n+p*s,g=u*e+3*c*l*i+3*h*l*l*a+p*o,v=t+2*l*(r-t)+f*(n-2*r+t),x=e+2*l*(i-e)+f*(a-2*i+e),y=r+2*l*(n-r)+f*(s-2*n+r),m=i+2*l*(a-i)+f*(o-2*a+i),b=h*t+l*r,_=h*e+l*i,w=h*n+l*s,k=h*a+l*o,c=90-180*i.atan2(v-y,x-m)/o;return(v>y||m>x)&&(c+=180),{x:d,y:g,m:{x:v,y:x},n:{x:y,y:m},start:{x:b,y:_},end:{x:w,y:k},alpha:c}},x.bezierbbox=function(t,e,r,i,n,a,s,o){x.is(t,"array")||(t=[t,e,r,i,n,a,s,o]);var l=ee.apply(null,t);return{x:l.min.x,y:l.min.y,x2:l.max.x,y2:l.max.y,width:l.max.x-l.min.x,height:l.max.y-l.min.y}},x.ispointinsidebbox=function(t,e,r){return e>=t.x&&e<=t.x2&&r>=t.y&&r<=t.y2},x.isbboxintersect=function(t,e){var r=x.ispointinsidebbox;return r(e,t.x,t.y)||r(e,t.x2,t.y)||r(e,t.x,t.y2)||r(e,t.x2,t.y2)||r(t,e.x,e.y)||r(t,e.x2,e.y)||r(t,e.x,e.y2)||r(t,e.x2,e.y2)||(t.xe.x||e.xt.x)&&(t.ye.y||e.yt.y)},x.pathintersection=function(t,e){return s(t,e)},x.pathintersectionnumber=function(t,e){return s(t,e,1)},x.ispointinsidepath=function(t,e,r){var i=x.pathbbox(t);return x.ispointinsidebbox(i,e,r)&&s(t,[["m",e,r],["h",i.x2+10]],1)%2==1},x._removedfactory=function(t){return function(){eve("raphael.log",null,"rapha毛l: you are calling to method 鈥?+t+"鈥?of removed object",t)}};var be=x.pathbbox=function(t){var e=ce(t);if(e.bbox)return e.bbox;if(!t)return{x:0,y:0,width:0,height:0,x2:0,y2:0};t=fe(t);for(var r,i=0,n=0,a=[],s=[],o=0,l=t.length;l>o;o++)if(r=t[o],"m"==r[0])i=r[1],n=r[2],a.push(i),s.push(n);else{var h=ee(i,n,r[1],r[2],r[3],r[4],r[5],r[6]);a=a[t](h.min.x,h.max.x),s=s[t](h.min.y,h.max.y),i=r[5],n=r[6]}var u=q[a](0,a),c=q[a](0,s),f=j[a](0,a),p=j[a](0,s),d={x:u,y:c,x2:f,y2:p,width:f-u,height:p-c};return e.bbox=v(d),d},se=function(t){var e=v(t);return e.tostring=x._path2string,e},ae=x._pathtorelative=function(t){var e=ce(t);if(e.rel)return se(e.rel);x.is(t,w)&&x.is(t&&t[0],w)||(t=x.parsepathstring(t));var r=[],i=0,n=0,a=0,s=0,o=0;"m"==t[0][0]&&(i=t[0][1],n=t[0][2],a=i,s=n,o++,r.push(["m",i,n]));for(var l=o,h=t.length;h>l;l++){var u=r[l]=[],c=t[l];if(c[0]!=p.call(c[0]))switch(u[0]=p.call(c[0]),u[0]){case"a":u[1]=c[1],u[2]=c[2],u[3]=c[3],u[4]=c[4],u[5]=c[5],u[6]=+(c[6]-i).tofixed(3),u[7]=+(c[7]-n).tofixed(3);break;case"v":u[1]=+(c[1]-n).tofixed(3);break;case"m":a=c[1],s=c[2];default:for(var f=1,p=c.length;p>f;f++)u[f]=+(c[f]-(f%2?i:n)).tofixed(3)}else{u=r[l]=[],"m"==c[0]&&(a=c[1]+i,s=c[2]+n);for(var d=0,g=c.length;g>d;d++)r[l][d]=c[d]}var v=r[l].length;switch(r[l][0]){case"z":i=a,n=s;break;case"h":i+=+r[l][v-1];break;case"v":n+=+r[l][v-1];break;default:i+=+r[l][v-2],n+=+r[l][v-1]}}return r.tostring=x._path2string,e.rel=se(r),r},te=x._pathtoabsolute=function(t){var e=ce(t);if(e.abs)return se(e.abs);if(x.is(t,w)&&x.is(t&&t[0],w)||(t=x.parsepathstring(t)),!t||!t.length)return[["m",0,0]];var r=[],i=0,n=0,a=0,s=0,o=0;"m"==t[0][0]&&(i=+t[0][1],n=+t[0][2],a=i,s=n,o++,r[0]=["m",i,n]);for(var l,h,u=3==t.length&&"m"==t[0][0]&&"r"==t[1][0].touppercase()&&"z"==t[2][0].touppercase(),c=o,p=t.length;p>c;c++){if(r.push(l=[]),h=t[c],h[0]!=k.call(h[0]))switch(l[0]=k.call(h[0]),l[0]){case"a":l[1]=h[1],l[2]=h[2],l[3]=h[3],l[4]=h[4],l[5]=h[5],l[6]=+(h[6]+i),l[7]=+(h[7]+n);break;case"v":l[1]=+h[1]+n;break;case"h":l[1]=+h[1]+i;break;case"r":for(var d=[i,n][t](h.slice(1)),g=2,v=d.length;v>g;g++)d[g]=+d[g]+i,d[++g]=+d[g]+n;r.pop(),r=r[t](f(d,u));break;case"m":a=+h[1]+i,s=+h[2]+n;default:for(g=1,v=h.length;v>g;g++)l[g]=+h[g]+(g%2?i:n)}else if("r"==h[0])d=[i,n][t](h.slice(1)),r.pop(),r=r[t](f(d,u)),l=["r"][t](h.slice(-2));else for(var y=0,m=h.length;m>y;y++)l[y]=h[y];switch(l[0]){case"z":i=a,n=s;break;case"h":i=l[1];break;case"v":n=l[1];break;case"m":a=l[l.length-2],s=l[l.length-1];default:i=l[l.length-2],n=l[l.length-1]}}return r.tostring=x._path2string,e.abs=se(r),r},ne=function(t,e,r,i){return[t,e,r,i,r,i]},le=function(t,e,r,i,n,a){var s=1/3,o=2/3;return[s*t+o*r,s*e+o*i,s*n+o*r,s*a+o*i,n,a]},me=function(t,e,r,i,n,a,s,o,l,h){var u,c=120*o/180,f=o/180*(+n||0),p=[],g=d(function(t,e,r){var i=t*i.cos(r)-e*i.sin(r),n=t*i.sin(r)+e*i.cos(r);return{x:i,y:n}});if(h)c=h[0],b=h[1],w=h[2],k=h[3];else{u=g(t,e,-f),t=u.x,e=u.y,u=g(o,l,-f),o=u.x,l=u.y;var v=(i.cos(o/180*n),i.sin(o/180*n),(t-o)/2),x=(e-l)/2,y=v*v/(r*r)+x*x/(i*i);y>1&&(y=i.sqrt(y),r=y*r,i=y*i);var m=r*r,b=i*i,_=(a==s?-1:1)*i.sqrt(d((m*b-m*x*x-b*v*v)/(m*x*x+b*v*v))),w=_*r*x/i+(t+o)/2,k=_*-i*v/r+(e+l)/2,c=i.asin(((e-k)/i).tofixed(9)),b=i.asin(((l-k)/i).tofixed(9));c=w>t?o-c:c,b=w>o?o-b:b,0>c&&(c=2*o+c),0>b&&(b=2*o+b),s&&c>b&&(c-=2*o),!s&&b>c&&(b-=2*o)}var s=b-c;if(d(s)>c){var a=b,n=o,l=l;b=c+c*(s&&b>c?1:-1),o=w+r*i.cos(b),l=k+i*i.sin(b),p=me(o,l,r,i,n,0,s,n,l,[b,a,w,k])}s=b-c;var m=i.cos(c),z=i.sin(c),f=i.cos(b),r=i.sin(b),p=i.tan(s/4),j=4/3*r*p,q=4/3*i*p,v=[t,e],y=[t+j*z,e-q*m],g=[o+j*r,l-q*f],w=[o,l];if(y[0]=2*v[0]-y[0],y[1]=2*v[1]-y[1],h)return[y,g,w][t](p);p=[y,g,w][t](p).join()[e](",");for(var x=[],h=0,u=p.length;u>h;h++)x[h]=h%2?g(p[h-1],p[h],f).y:g(p[h],p[h+1],f).x;return x},ze=function(t,e,r,i,n,a,s,o,l){var h=1-l;return{x:v(h,3)*t+3*v(h,2)*l*r+3*h*l*l*n+v(l,3)*s,y:v(h,3)*e+3*v(h,2)*l*i+3*h*l*l*a+v(l,3)*o}},ee=d(function(t,e,r,i,n,a,s,o){var l,h=n-2*r+t-(s-2*n+r),u=2*(r-t)-2*(n-r),c=t-r,f=(-u+i.sqrt(u*u-4*h*c))/2/h,p=(-u-i.sqrt(u*u-4*h*c))/2/h,d=[e,o],g=[t,s];return d(f)>"1e12"&&(f=.5),d(p)>"1e12"&&(p=.5),f>0&&1>f&&(l=ze(t,e,r,i,n,a,s,o,f),g.push(l.x),d.push(l.y)),p>0&&1>p&&(l=ze(t,e,r,i,n,a,s,o,p),g.push(l.x),d.push(l.y)),h=a-2*i+e-(o-2*a+i),u=2*(i-e)-2*(a-i),c=e-i,f=(-u+i.sqrt(u*u-4*h*c))/2/h,p=(-u-i.sqrt(u*u-4*h*c))/2/h,d(f)>"1e12"&&(f=.5),d(p)>"1e12"&&(p=.5),f>0&&1>f&&(l=ze(t,e,r,i,n,a,s,o,f),g.push(l.x),d.push(l.y)),p>0&&1>p&&(l=ze(t,e,r,i,n,a,s,o,p),g.push(l.x),d.push(l.y)),{min:{x:q[a](0,g),y:q[a](0,d)},max:{x:j[a](0,g),y:j[a](0,d)}}}),fe=x._path2curve=d(function(t,e){var r=!e&&ce(t);if(!e&&r.curve)return se(r.curve);for(var i=te(t),n=e&&te(e),a={x:0,y:0,bx:0,by:0,x:0,y:0,qx:null,qy:null},s={x:0,y:0,bx:0,by:0,x:0,y:0,qx:null,qy:null},o=(function(t,e){var r,i;if(!t)return["c",e.x,e.y,e.x,e.y,e.x,e.y];switch(!(t[0]in{t:1,q:1})&&(e.qx=e.qy=null),t[0]){case"m":e.x=t[1],e.y=t[2];break;case"a":t=["c"][t](me[a](0,[e.x,e.y][t](t.slice(1))));break;case"s":r=e.x+(e.x-(e.bx||e.x)),i=e.y+(e.y-(e.by||e.y)),t=["c",r,i][t](t.slice(1));break;case"t":e.qx=e.x+(e.x-(e.qx||e.x)),e.qy=e.y+(e.y-(e.qy||e.y)),t=["c"][t](le(e.x,e.y,e.qx,e.qy,t[1],t[2]));break;case"q":e.qx=t[1],e.qy=t[2],t=["c"][t](le(e.x,e.y,t[1],t[2],t[3],t[4]));break;case"l":t=["c"][t](ne(e.x,e.y,t[1],t[2]));break;case"h":t=["c"][t](ne(e.x,e.y,t[1],e.y));break;case"v":t=["c"][t](ne(e.x,e.y,e.x,t[1]));break;case"z":t=["c"][t](ne(e.x,e.y,e.x,e.y))}return t}),l=function(t,e){if(t[e].length>7){t[e].shift();for(var r=t[e];r.length;)t.splice(e++,0,["c"][t](r.splice(0,6)));t.splice(e,1),c=j(i.length,n&&n.length||0)}},h=function(t,e,r,a,s){t&&e&&"m"==t[s][0]&&"m"!=e[s][0]&&(e.splice(s,0,["m",a.x,a.y]),r.bx=0,r.by=0,r.x=t[s][1],r.y=t[s][2],c=j(i.length,n&&n.length||0))},u=0,c=j(i.length,n&&n.length||0);c>u;u++){i[u]=o(i[u],a),l(i,u),n&&(n[u]=o(n[u],s)),n&&l(n,u),h(i,n,a,s,u),h(n,i,s,a,u);var f=i[u],p=n&&n[u],d=f.length,g=n&&p.length;a.x=f[d-2],a.y=f[d-1],a.bx=q(f[d-4])||a.x,a.by=q(f[d-3])||a.y,s.bx=n&&(q(p[g-4])||s.x),s.by=n&&(q(p[g-3])||s.y),s.x=n&&p[g-2],s.y=n&&p[g-1]}return n||(r.curve=se(i)),n?[i,n]:i},null,se),re=(x._parsedots=d(function(t){for(var e=[],r=0,i=t.length;i>r;r++){var n={},a=t[r].match(/^([^:]*):?([\d\.]*)/);if(n.color=x.getrgb(a[1]),n.color.error)return null;n.color=n.color.hex,a[2]&&(n.offset=a[2]+"%"),e.push(n)}for(r=1,i=e.length-1;i>r;r++)if(!e[r].offset){for(var s=q(e[r-1].offset||0),o=0,l=r+1;i>l;l++)if(e[l].offset){o=e[l].offset;break}o||(o=100,l=i),o=q(o);for(var h=(o-s)/(l-r+1);l>r;r++)s+=h,e[r].offset=s+"%"}return e}),x._tear=function(t,e){t==e.top&&(e.top=t.prev),t==e.bottom&&(e.bottom=t.next),t.next&&(t.next.prev=t.prev),t.prev&&(t.prev.next=t.next)}),pe=(x._tofront=function(t,e){e.top!==t&&(re(t,e),t.next=null,t.prev=e.top,e.top.next=t,e.top=t)},x._toback=function(t,e){e.bottom!==t&&(re(t,e),t.next=e.bottom,t.prev=null,e.bottom.prev=t,e.bottom=t)},x._insertafter=function(t,e,r){re(t,r),e==r.top&&(r.top=t),e.next&&(e.next.prev=t),t.next=e.next,t.prev=e,e.next=t},x._insertbefore=function(t,e,r){re(t,r),e==r.bottom&&(r.bottom=t),e.prev&&(e.prev.next=t),t.prev=e.prev,e.prev=t,t.next=e},x.tomatrix=function(t,e){var r=be(t),i={_:{transform:l},getbbox:function(){return r}};return ie(i,e),i.matrix}),ie=(x.transformpath=function(t,e){return ge(t,pe(t,e))},x._extracttransform=function(t,e){if(null==e)return t._.transform;e=z(e).replace(/\.{3}|\u2026/g,t._.transform||l);var r=x.parsetransformstring(e),i=0,n=0,s=0,o=1,l=1,h=t._,u=new a;if(h.transform=r||[],r)for(var c=0,f=r.length;f>c;c++){var p,d,g,v,y,m=r[c],b=m.length,_=z(m[0]).tolowercase(),w=m[0]!=_,k=w?u.invert():0;"t"==_&&3==b?w?(p=k.x(0,0),d=k.y(0,0),g=k.x(m[1],m[2]),v=k.y(m[1],m[2]),u.translate(g-p,v-d)):u.translate(m[1],m[2]):"r"==_?2==b?(y=y||t.getbbox(1),u.rotate(m[1],y.x+y.width/2,y.y+y.height/2),i+=m[1]):4==b&&(w?(g=k.x(m[2],m[3]),v=k.y(m[2],m[3]),u.rotate(m[1],g,v)):u.rotate(m[1],m[2],m[3]),i+=m[1]):"s"==_?2==b||3==b?(y=y||t.getbbox(1),u.scale(m[1],m[b-1],y.x+y.width/2,y.y+y.height/2),o*=m[1],l*=m[b-1]):5==b&&(w?(g=k.x(m[3],m[4]),v=k.y(m[3],m[4]),u.scale(m[1],m[2],g,v)):u.scale(m[1],m[2],m[3],m[4]),o*=m[1],l*=m[2]):"m"==_&&7==b&&u.add(m[1],m[2],m[3],m[4],m[5],m[6]),h.dirtyt=1,t.matrix=u}t.matrix=u,h.sx=o,h.sy=l,h.deg=i,h.dx=n=u.e,h.dy=s=u.f,1==o&&1==l&&!i&&h.bbox?(h.bbox.x+=+n,h.bbox.y+=+s):h.dirtyt=1}),je=function(t){var e=t[0];switch(e.tolowercase()){case"t":return[e,0,0];case"m":return[e,1,0,0,1,0,0];case"r":return 4==t.length?[e,0,t[2],t[3]]:[e,0];case"s":return 5==t.length?[e,1,1,t[3],t[4]]:3==t.length?[e,1,1]:[e,1]}},qe=x._equalisetransform=function(t,e){e=z(e).replace(/\.{3}|\u2026/g,t),t=x.parsetransformstring(t)||[],e=x.parsetransformstring(e)||[];for(var r,i,n,a,s=j(t.length,e.length),o=[],l=[],h=0;s>h;h++){if(n=t[h]||je(e[h]),a=e[h]||je(n),n[0]!=a[0]||"r"==n[0].tolowercase()&&(n[2]!=a[2]||n[3]!=a[3])||"s"==n[0].tolowercase()&&(n[3]!=a[3]||n[4]!=a[4]))return;for(o[h]=[],l[h]=[],r=0,i=j(n.length,a.length);i>r;r++)r in n&&(o[h][r]=n[r]),r in a&&(l[h][r]=a[r])}return{from:o,to:l}};x._getcontainer=function(t,e,r,i){var n;return n=null!=i||x.is(t,"object")?t:c.doc.getelementbyid(t),null!=n?n.tagname?null==e?{container:n,width:n.style.pixelwidth||n.offsetwidth,height:n.style.pixelheight||n.offsetheight}:{container:n,width:e,height:r}:{container:1,x:t,y:e,width:r,height:i}:void 0},x.pathtorelative=ae,x._engine={},x.path2curve=fe,x.matrix=function(t,e,r,i,n,s){return new a(t,e,r,i,n,s)},function(t){function e(t){var e=i.sqrt(r(t));t[0]&&(t[0]/=e),t[1]&&(t[1]/=e)}function r(t){return t[0]*t[0]+t[1]*t[1] }t.add=function(t,e,r,i,n,s){var o,l,h,u,c=[[],[],[]],f=[[this.a,this.c,this.e],[this.b,this.d,this.f],[0,0,1]],p=[[t,r,n],[e,i,s],[0,0,1]];for(t&&t instanceof a&&(p=[[t.a,t.c,t.e],[t.b,t.d,t.f],[0,0,1]]),o=0;3>o;o++)for(l=0;3>l;l++){for(u=0,h=0;3>h;h++)u+=f[o][h]*p[h][l];c[o][l]=u}this.a=c[0][0],this.b=c[1][0],this.c=c[0][1],this.d=c[1][1],this.e=c[0][2],this.f=c[1][2]},t.invert=function(){var t=this,e=t.a*t.d-t.b*t.c;return new a(t.d/e,-t.b/e,-t.c/e,t.a/e,(t.c*t.f-t.d*t.e)/e,(t.b*t.e-t.a*t.f)/e)},t.clone=function(){return new a(this.a,this.b,this.c,this.d,this.e,this.f)},t.translate=function(t,e){this.add(1,0,0,1,t,e)},t.scale=function(t,e,r,i){null==e&&(e=t),(r||i)&&this.add(1,0,0,1,r,i),this.add(t,0,0,e,0,0),(r||i)&&this.add(1,0,0,1,-r,-i)},t.rotate=function(t,e,r){t=x.rad(t),e=e||0,r=r||0;var i=+i.cos(t).tofixed(9),n=+i.sin(t).tofixed(9);this.add(i,n,-n,i,e,r),this.add(1,0,0,1,-e,-r)},t.x=function(t,e){return t*this.a+e*this.c+this.e},t.y=function(t,e){return t*this.b+e*this.d+this.f},t.get=function(t){return+this[z.fromcharcode(97+t)].tofixed(4)},t.tostring=function(){return x.svg?"matrix("+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)].join()+")":[this.get(0),this.get(2),this.get(1),this.get(3),0,0].join()},t.tofilter=function(){return"progid:dximagetransform.microsoft.matrix(m11="+this.get(0)+", m12="+this.get(2)+", m21="+this.get(1)+", m22="+this.get(3)+", dx="+this.get(4)+", dy="+this.get(5)+", sizingmethod='auto expand')"},t.offset=function(){return[this.e.tofixed(4),this.f.tofixed(4)]},t.split=function(){var t={};t.dx=this.e,t.dy=this.f;var i=[[this.a,this.c],[this.b,this.d]];t.scalex=i.sqrt(r(i[0])),e(i[0]),t.shear=i[0][0]*i[1][0]+i[0][1]*i[1][1],i[1]=[i[1][0]-i[0][0]*t.shear,i[1][1]-i[0][1]*t.shear],t.scaley=i.sqrt(r(i[1])),e(i[1]),t.shear/=t.scaley;var n=-i[0][1],a=i[1][1];return 0>a?(t.rotate=x.deg(i.acos(a)),0>n&&(t.rotate=360-t.rotate)):t.rotate=x.deg(i.asin(n)),t.issimple=!(+t.shear.tofixed(9)||t.scalex.tofixed(9)!=t.scaley.tofixed(9)&&t.rotate),t.issupersimple=!+t.shear.tofixed(9)&&t.scalex.tofixed(9)==t.scaley.tofixed(9)&&!t.rotate,t.norotation=!+t.shear.tofixed(9)&&!t.rotate,t},t.totransformstring=function(t){var e=t||this[e]();return e.issimple?(e.scalex=+e.scalex.tofixed(4),e.scaley=+e.scaley.tofixed(4),e.rotate=+e.rotate.tofixed(4),(e.dx||e.dy?"t"+[e.dx,e.dy]:l)+(1!=e.scalex||1!=e.scaley?"s"+[e.scalex,e.scaley,0,0]:l)+(e.rotate?"r"+[e.rotate,0,0]:l)):"m"+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)]}}(a.prototype);var de=navigator.useragent.match(/version\/(.*?)\s/)||navigator.useragent.match(/chrome\/(\d+)/);m.safari="apple computer, inc."==navigator.vendor&&(de&&de[1]<4||"ip"==navigator.platform.slice(0,2))||"google inc."==navigator.vendor&&de&&de[1]<8?function(){var t=this.rect(-99,-99,this.width+99,this.height+99).attr({stroke:"none"});settimeout(function(){t.remove()})}:ue;for(var ve=function(){this.returnvalue=!1},oe=function(){return this.originalevent.preventdefault()},ye=function(){this.cancelbubble=!0},ge=function(){return this.originalevent.stoppropagation()},we=function(){return c.doc.addeventlistener?function(t,e,r,i){var n=n&&r[e]?r[e]:e,a=function(n){var a=c.doc.documentelement.scrolltop||c.doc.body.scrolltop,s=c.doc.documentelement.scrollleft||c.doc.body.scrollleft,o=n.clientx+s,l=n.clienty+a;if(n&&r[k](e))for(var h=0,u=n.targettouches&&n.targettouches.length;u>h;h++)if(n.targettouches[h].target==t){var c=n;n=n.targettouches[h],n.originalevent=c,n.preventdefault=oe,n.stoppropagation=ge;break}return r.call(i,n,o,l)};return t.addeventlistener(n,a,!1),function(){return t.removeeventlistener(n,a,!1),!0}}:c.doc.attachevent?function(t,e,r,i){var n=function(t){t=t||c.win.event;var e=c.doc.documentelement.scrolltop||c.doc.body.scrolltop,n=c.doc.documentelement.scrollleft||c.doc.body.scrollleft,a=t.clientx+n,s=t.clienty+e;return t.preventdefault=t.preventdefault||ve,t.stoppropagation=t.stoppropagation||ye,r.call(i,t,a,s)};t.attachevent("on"+e,n);var a=function(){return t.detachevent("on"+e,n),!0};return a}:void 0}(),xe=[],he=function(t){for(var e,r=t.clientx,i=t.clienty,n=c.doc.documentelement.scrolltop||c.doc.body.scrolltop,a=c.doc.documentelement.scrollleft||c.doc.body.scrollleft,s=xe.length;s--;){if(e=xe[s],n){for(var o,l=t.touches.length;l--;)if(o=t.touches[l],o.identifier==e.el._drag.id){r=o.clientx,i=o.clienty,(t.originalevent?t.originalevent:t).preventdefault();break}}else t.preventdefault();var h,u=e.el.node,c=u.nextsibling,f=u.parentnode,p=u.style.display;c.win.opera&&f.removechild(u),u.style.display="none",h=e.el.paper.getelementbypoint(r,i),u.style.display=p,c.win.opera&&(c?f.insertbefore(u,c):f.appendchild(u)),h&&eve("raphael.drag.over."+e.el.id,e.el,h),r+=a,i+=n,eve("raphael.drag.move."+e.el.id,e.move_scope||e.el,r-e.el._drag.x,i-e.el._drag.y,r,i,t)}},ue=function(t){x.unmousemove(he).unmouseup(ue);for(var e,r=xe.length;r--;)e=xe[r],e.el._drag={},eve("raphael.drag.end."+e.el.id,e.end_scope||e.start_scope||e.move_scope||e.el,t);xe=[]},$e=x.el={},ze=f.length;ze--;)(function(t){x[t]=$e[t]=function(e,r){return x.is(e,"function")&&(this.events=this.events||[],this.events.push({name:t,f:e,unbind:we(this.shape||this.node||c.doc,t,e,r||this)})),this},x["un"+t]=$e["un"+t]=function(e){for(var r=this.events||[],i=r.length;i--;)if(r[i].name==t&&r[i].f==e)return r[i].unbind(),r.splice(i,1),!r.length&&delete this.events,this;return this}})(f[ze]);$e.data=function(t,e){var r=le[this.id]=le[this.id]||{};if(1==arguments.length){if(x.is(t,"object")){for(var i in t)t[k](i)&&this.data(i,t[i]);return this}return eve("raphael.data.get."+this.id,this,r[t],t),r[t]}return r[t]=e,eve("raphael.data.set."+this.id,this,e,t),this},$e.removedata=function(t){return null==t?le[this.id]={}:le[this.id]&&delete le[this.id][t],this},$e.hover=function(t,e,r,i){return this.mouseover(t,r).mouseout(e,i||r)},$e.unhover=function(t,e){return this.unmouseover(t).unmouseout(e)};var qe=[];$e.drag=function(t,e,r,i,n,a){function s(s){(s.originalevent||s).preventdefault();var o=c.doc.documentelement.scrolltop||c.doc.body.scrolltop,l=c.doc.documentelement.scrollleft||c.doc.body.scrollleft;this._drag.x=s.clientx+l,this._drag.y=s.clienty+o,this._drag.id=s.identifier,!xe.length&&x.mousemove(he).mouseup(ue),xe.push({el:this,move_scope:i,start_scope:n,end_scope:a}),e&&eve.on("raphael.drag.start."+this.id,e),t&&eve.on("raphael.drag.move."+this.id,t),r&&eve.on("raphael.drag.end."+this.id,r),eve("raphael.drag.start."+this.id,n||i||this,s.clientx+l,s.clienty+o,s)}return this._drag={},qe.push({el:this,start:s}),this.mousedown(s),this},$e.ondragover=function(t){t?eve.on("raphael.drag.over."+this.id,t):eve.unbind("raphael.drag.over."+this.id)},$e.undrag=function(){for(var t=qe.length;t--;)qe[t].el==this&&(this.unmousedown(qe[t].start),qe.splice(t,1),eve.unbind("raphael.drag.*."+this.id));!qe.length&&x.unmousemove(he).unmouseup(ue)},m.circle=function(t,e,r){var i=x._engine.circle(this,t||0,e||0,r||0);return this.__set__&&this.__set__.push(i),i},m.rect=function(t,e,r,i,n){var a=x._engine.rect(this,t||0,e||0,r||0,i||0,n||0);return this.__set__&&this.__set__.push(a),a},m.ellipse=function(t,e,r,i){var n=x._engine.ellipse(this,t||0,e||0,r||0,i||0);return this.__set__&&this.__set__.push(n),n},m.path=function(t){t&&!x.is(t,g)&&!x.is(t[0],w)&&(t+=l);var e=x._engine.path(x.format[a](x,arguments),this);return this.__set__&&this.__set__.push(e),e},m.image=function(t,e,r,i,n){var a=x._engine.image(this,t||"about:blank",e||0,r||0,i||0,n||0);return this.__set__&&this.__set__.push(a),a},m.text=function(t,e,r){var i=x._engine.text(this,t||0,e||0,z(r));return this.__set__&&this.__set__.push(i),i},m.set=function(t){!x.is(t,"array")&&(t=array.prototype.splice.call(arguments,0,arguments.length));var e=new hr(t);return this.__set__&&this.__set__.push(e),e},m.setstart=function(t){this.__set__=t||this.set()},m.setfinish=function(){var t=this.__set__;return delete this.__set__,t},m.setsize=function(t,e){return x._engine.setsize.call(this,t,e)},m.setviewbox=function(t,e,r,i,n){return x._engine.setviewbox.call(this,t,e,r,i,n)},m.top=m.bottom=null,m.raphael=x;var je=function(t){var e=t.getboundingclientrect(),r=t.ownerdocument,i=r.body,n=r.documentelement,a=n.clienttop||i.clienttop||0,s=n.clientleft||i.clientleft||0,o=e.top+(c.win.pageyoffset||n.scrolltop||i.scrolltop)-a,l=e.left+(c.win.pagexoffset||n.scrollleft||i.scrollleft)-s;return{y:o,x:l}};m.getelementbypoint=function(t,e){var r=this,i=r.canvas,n=c.doc.elementfrompoint(t,e);if(c.win.opera&&"svg"==n.tagname){var a=je(i),s=i.createsvgrect();s.x=t-a.x,s.y=e-a.y,s.width=s.height=1;var o=i.getintersectionlist(s,null);o.length&&(n=o[o.length-1])}if(!n)return null;for(;n.parentnode&&n!=i.parentnode&&!n.raphael;)n=n.parentnode;return n==r.canvas.parentnode&&(n=i),n=n&&n.raphael?r.getbyid(n.raphaelid):null},m.getbyid=function(t){for(var e=this.bottom;e;){if(e.id==t)return e;e=e.next}return null},m.foreach=function(t,e){for(var r=this.bottom;r;){if(t.call(e,r)===!1)return this;r=r.next}return this},m.getelementsbypoint=function(t,e){var r=this.set();return this.foreach(function(i){i.ispointinside(t,e)&&r.push(i)}),r},$e.ispointinside=function(t,e){var r=this.realpath=this.realpath||de[this.type](this);return x.ispointinsidepath(r,t,e)},$e.getbbox=function(t){if(this.removed)return{};var e=this._;return t?((e.dirty||!e.bboxwt)&&(this.realpath=de[this.type](this),e.bboxwt=be(this.realpath),e.bboxwt.tostring=n,e.dirty=0),e.bboxwt):((e.dirty||e.dirtyt||!e.bbox)&&((e.dirty||!this.realpath)&&(e.bboxwt=0,this.realpath=de[this.type](this)),e.bbox=be(ge(this.realpath,this.matrix)),e.bbox.tostring=n,e.dirty=e.dirtyt=0),e.bbox)},$e.clone=function(){if(this.removed)return null;var t=this.paper[this.type]().attr(this.attr());return this.__set__&&this.__set__.push(t),t},$e.glow=function(t){if("text"==this.type)return null;t=t||{};var e={width:(t.width||10)+(+this.attr("stroke-width")||1),fill:t.fill||!1,opacity:t.opacity||.5,offsetx:t.offsetx||0,offsety:t.offsety||0,color:t.color||"#000"},r=e.width/2,i=this.paper,n=i.set(),a=this.realpath||de[this.type](this);a=this.matrix?ge(a,this.matrix):a;for(var s=1;r+1>s;s++)n.push(i.path(a).attr({stroke:e.color,fill:e.fill?e.color:"none","stroke-linejoin":"round","stroke-linecap":"round","stroke-width":+(e.width/r*s).tofixed(3),opacity:+(e.opacity/r).tofixed(3)}));return n.insertbefore(this).translate(e.offsetx,e.offsety)};var ke=function(t,e,r,i,n,a,s,o,l){return null==l?u(t,e,r,i,n,a,s,o):x.finddotsatsegment(t,e,r,i,n,a,s,o,h(t,e,r,i,n,a,s,o,l))},tr=function(t,e){return function(r,i,n){r=fe(r);for(var a,s,o,l,h,u="",c={},f=0,p=0,d=r.length;d>p;p++){if(o=r[p],"m"==o[0])a=+o[1],s=+o[2];else{if(l=ke(a,s,o[1],o[2],o[3],o[4],o[5],o[6]),f+l>i){if(e&&!c.start){if(h=ke(a,s,o[1],o[2],o[3],o[4],o[5],o[6],i-f),u+=["c"+h.start.x,h.start.y,h.m.x,h.m.y,h.x,h.y],n)return u;c.start=u,u=["m"+h.x,h.y+"c"+h.n.x,h.n.y,h.end.x,h.end.y,o[5],o[6]].join(),f+=l,a=+o[5],s=+o[6];continue}if(!t&&!e)return h=ke(a,s,o[1],o[2],o[3],o[4],o[5],o[6],i-f),{x:h.x,y:h.y,alpha:h.alpha}}f+=l,a=+o[5],s=+o[6]}u+=o.shift()+o}return c.end=u,h=t?f:e?c:x.finddotsatsegment(a,s,o[0],o[1],o[2],o[3],o[4],o[5],1),h.alpha&&(h={x:h.x,y:h.y,alpha:h.alpha}),h}},er=tr(1),rr=tr(),ir=tr(0,1);x.gettotallength=er,x.getpointatlength=rr,x.getsubpath=function(t,e,r){if(this.gettotallength(t)-r<1e-6)return ir(t,e).end;var i=ir(t,r,1);return e?ir(i,e).end:i},$e.gettotallength=function(){return"path"==this.type?this.node.gettotallength?this.node.gettotallength():er(this.attrs.path):void 0},$e.getpointatlength=function(t){return"path"==this.type?rr(this.attrs.path,t):void 0},$e.getsubpath=function(t,e){return"path"==this.type?x.getsubpath(this.attrs.path,t,e):void 0};var nr=x.easing_formulas={linear:function(t){return t},"<":function(t){return v(t,1.7)},">":function(t){return v(t,.48)},"<>":function(t){var e=.48-t/1.04,r=i.sqrt(.1734+e*e),i=r-e,n=v(d(i),1/3)*(0>i?-1:1),a=-r-e,s=v(d(a),1/3)*(0>a?-1:1),o=n+s+.5;return 3*(1-o)*o*o+o*o*o},backin:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backout:function(t){t-=1;var e=1.70158;return t*t*((e+1)*t+e)+1},elastic:function(t){return t==!!t?t:v(2,-10*t)*i.sin(2*(t-.075)*o/.3)+1},bounce:function(t){var e,r=7.5625,i=2.75;return 1/i>t?e=r*t*t:2/i>t?(t-=1.5/i,e=r*t*t+.75):2.5/i>t?(t-=2.25/i,e=r*t*t+.9375):(t-=2.625/i,e=r*t*t+.984375),e}};nr.easein=nr["ease-in"]=nr["<"],nr.easeout=nr["ease-out"]=nr[">"],nr.easeinout=nr["ease-in-out"]=nr["<>"],nr["back-in"]=nr.backin,nr["back-out"]=nr.backout;var ar=[],sr=window.requestanimationframe||window.webkitrequestanimationframe||window.mozrequestanimationframe||window.orequestanimationframe||window.msrequestanimationframe||function(t){settimeout(t,16)},or=function(){for(var t=+new date,r=0;rs))if(o>s){var g=l(s/o);for(var v in h)if(h[k](v)){switch(ee[v]){case y:n=+h[v]+g*o*u[v];break;case"colour":n="rgb("+[lr(z(h[v].r+g*o*u[v].r)),lr(z(h[v].g+g*o*u[v].g)),lr(z(h[v].b+g*o*u[v].b))].join(",")+")";break;case"path":n=[];for(var y=0,m=h[v].length;m>y;y++){n[y]=[h[v][y][0]];for(var b=1,_=h[v][y].length;_>b;b++)n[y][b]=+h[v][y][b]+g*o*u[v][y][b];n[y]=n[y].join(m)}n=n.join(m);break;case"transform":if(u[v].real)for(n=[],y=0,m=h[v].length;m>y;y++)for(n[y]=[h[v][y][0]],b=1,_=h[v][y].length;_>b;b++)n[y][b]=h[v][y][b]+g*o*u[v][y][b];else{var w=function(t){return+h[v][t]+g*o*u[v][t]};n=[["m",w(0),w(1),w(2),w(3),w(4),w(5)]]}break;case"csv":if("clip-rect"==v)for(n=[],y=4;y--;)n[y]=+h[v][y]+g*o*u[v][y];break;default:var c=[][t](h[v]);for(n=[],y=f.paper.customattributes[v].length;y--;)n[y]=+c[y]+g*o*u[v][y]}p[v]=n}f.attr(p),function(t,e,r){settimeout(function(){eve("raphael.anim.frame."+t,e,r)})}(f.id,f,i.anim)}else{if(function(t,e,r){settimeout(function(){eve("raphael.anim.frame."+e.id,e,r),eve("raphael.anim.finish."+e.id,e,r),x.is(t,"function")&&t.call(e)})}(i.callback,f,i.anim),f.attr(c),ar.splice(r--,1),i.repeat>1&&!i.next){for(a in c)c[k](a)&&(d[a]=i.totalorigin[a]);i.el.attr(d),e(i.anim,i.el,i.anim.percents[0],null,i.totalorigin,i.repeat-1)}i.next&&!i.stop&&e(i.anim,i.el,i.next,null,i.totalorigin,i.repeat)}}}x.svg&&f&&f.paper&&f.paper.safari(),ar.length&&sr(or)},lr=function(t){return t>255?255:0>t?0:t};$e.animatewith=function(t,i,n,a,s,o){var l=this;if(l.removed)return o&&o.call(l),l;var h=n instanceof r?n:x.animation(n,a,s,o);e(h,l,h.percents[0],null,l.attr());for(var u=0,c=ar.length;c>u;u++)if(ar[u].anim==i&&ar[u].el==t){ar[c-1].start=ar[u].start;break}return l},$e.onanimation=function(t){return t?eve.on("raphael.anim.frame."+this.id,t):eve.unbind("raphael.anim.frame."+this.id),this},r.prototype.delay=function(t){var e=new r(this.anim,this.ms);return e.times=this.times,e.del=+t||0,e},r.prototype.repeat=function(t){var e=new r(this.anim,this.ms);return e.del=this.del,e.times=i.floor(j(t,0))||1,e},x.animation=function(t,e,i,n){if(t instanceof r)return t;(x.is(i,"function")||!i)&&(n=n||i||null,i=null),t=object(t),e=+e||0;var a,s,o={};for(s in t)t[k](s)&&q(s)!=s&&q(s)+"%"!=s&&(a=!0,o[s]=t[s]);return a?(i&&(o.easing=i),n&&(o.callback=n),new r({100:o},e)):new r(t,e)},$e.animate=function(t,i,n,a){var s=this;if(s.removed)return a&&a.call(s),s;var o=t instanceof r?t:x.animation(t,i,n,a);return e(o,s,o.percents[0],null,s.attr()),s},$e.settime=function(t,e){return t&&null!=e&&this.status(t,q(e,t.ms)/t.ms),this},$e.status=function(t,r){var i,n,a=[],s=0;if(null!=r)return e(t,this,-1,q(r,1)),this;for(i=ar.length;i>s;s++)if(n=ar[s],n.el.id==this.id&&(!t||n.anim==t)){if(t)return n.status;a.push({anim:n.anim,status:n.status})}return t?0:a},$e.pause=function(t){for(var e=0;ee;e++)t[e]&&(t[e].constructor==$e.constructor||t[e].constructor==hr)&&(this[this.items.length]=this.items[this.items.length]=t[e],this.length++)},ur=hr.prototype;ur.push=function(){for(var t,e,r=0,i=arguments.length;i>r;r++)t=arguments[r],t&&(t.constructor==$e.constructor||t.constructor==hr)&&(e=this.items.length,this[e]=this.items[e]=t,this.length++);return this},ur.pop=function(){return this.length&&delete this[this.length--],this.items.pop()},ur.foreach=function(t,e){for(var r=0,i=this.items.length;i>r;r++)if(t.call(e,this.items[r],r)===!1)return this;return this};for(var cr in $e)$e[k](cr)&&(ur[cr]=function(t){return function(){var e=arguments;return this.foreach(function(r){r[t][a](r,e)})}}(cr));ur.attr=function(t,e){if(t&&x.is(t,w)&&x.is(t[0],"object"))for(var r=0,i=t.length;i>r;r++)this.items[r].attr(t[r]);else for(var n=0,a=this.items.length;a>n;n++)this.items[n].attr(t,e);return this},ur.clear=function(){for(;this.length;)this.pop()},ur.splice=function(t,e){t=0>t?j(this.length+t,0):t,e=j(0,q(this.length-t,e));var r,i=[],n=[],a=[];for(r=2;rr;r++)n.push(this[t+r]);for(;rr?a[r]:i[r-s];for(r=this.items.length=this.length-=e-s;this[r];)delete this[r++];return new hr(n)},ur.exclude=function(t){for(var e=0,r=this.length;r>e;e++)if(this[e]==t)return this.splice(e,1),!0},ur.animate=function(t,e,r,i){(x.is(r,"function")||!r)&&(i=r||null);var n,a,s=this.items.length,o=s,l=this;if(!s)return this;i&&(a=function(){!--s&&i.call(l)}),r=x.is(r,g)?r:a;var h=x.animation(t,e,r,a);for(n=this.items[--o].animate(h);o--;)this.items[o]&&!this.items[o].removed&&this.items[o].animatewith(n,h,h);return this},ur.insertafter=function(t){for(var e=this.items.length;e--;)this.items[e].insertafter(t);return this},ur.getbbox=function(){for(var t=[],e=[],r=[],i=[],n=this.items.length;n--;)if(!this.items[n].removed){var a=this.items[n].getbbox();t.push(a.x),e.push(a.y),r.push(a.x+a.width),i.push(a.y+a.height)}return t=q[a](0,t),e=q[a](0,e),r=j[a](0,r),i=j[a](0,i),{x:t,y:e,x2:r,y2:i,width:r-t,height:i-e}},ur.clone=function(t){t=new hr;for(var e=0,r=this.items.length;r>e;e++)t.push(this.items[e].clone());return t},ur.tostring=function(){return"rapha毛l鈥榮 set"},x.registerfont=function(t){if(!t.face)return t;this.fonts=this.fonts||{};var e={w:t.w,face:{},glyphs:{}},r=t.face["font-family"];for(var i in t.face)t.face[k](i)&&(e.face[i]=t.face[i]);if(this.fonts[r]?this.fonts[r].push(e):this.fonts[r]=[e],!t.svg){e.face["units-per-em"]=j(t.face["units-per-em"],10);for(var n in t.glyphs)if(t.glyphs[k](n)){var a=t.glyphs[n];if(e.glyphs[n]={w:a.w,k:{},d:a.d&&"m"+a.d.replace(/[mlcxtrv]/g,function(t){return{l:"l",c:"c",x:"z",t:"m",r:"l",v:"c"}[t]||"m"})+"z"},a.k)for(var s in a.k)a[k](s)&&(e.glyphs[n].k[s]=a.k[s])}}return t},m.getfont=function(t,e,r,i){if(i=i||"normal",r=r||"normal",e=+e||{normal:400,bold:700,lighter:300,bolder:800}[e]||400,x.fonts){var n=x.fonts[t];if(!n){var a=new regexp("(^|\\s)"+t.replace(/[^\w\d\s+!~.:_-]/g,l)+"(\\s|$)","i");for(var s in x.fonts)if(x.fonts[k](s)&&a.test(s)){n=x.fonts[s];break}}var o;if(n)for(var l=0,h=n.length;h>l&&(o=n[l],o.face["font-weight"]!=e||o.face["font-style"]!=r&&o.face["font-style"]||o.face["font-stretch"]!=i);l++);return o}},m.print=function(t,e,r,i,n,a,s){a=a||"middle",s=j(q(s||0,1),-1);var o,l=z(r)[e](l),h=0,u=0,c=l;if(x.is(i,r)&&(i=this.getfont(i)),i){o=(n||16)/i.face["units-per-em"];for(var f=i.face.bbox[e](b),p=+f[0],d=f[3]-f[1],g=0,v=+f[1]+("baseline"==a?d+ +i.face.descent:d/2),y=0,m=l.length;m>y;y++){if("\n"==l[y])h=0,w=0,u=0,g+=d;else{var _=u&&i.glyphs[l[y-1]]||{},w=i.glyphs[l[y]];h+=u?(_.w||i.w)+(_.k&&_.k[l[y]]||0)+i.w*s:0,u=1}w&&w.d&&(c+=x.transformpath(w.d,["t",h*o,g*o,"s",o,o,p,v,"t",(t-p)/o,(e-v)/o]))}}return this.path(c).attr({fill:"#000",stroke:"none"})},m.add=function(t){if(x.is(t,"array"))for(var e,r=this.set(),i=0,n=t.length;n>i;i++)e=t[i]||{},_[k](e.type)&&r.push(this[e.type]().attr(e));return r},x.format=function(t,e){var r=x.is(e,w)?[0][t](e):arguments;return t&&x.is(t,g)&&r.length-1&&(t=t.replace(w,function(t,e){return null==r[++e]?l:r[e]})),t||l},x.fullfill=function(){var t=/\{([^\}]+)\}/g,e=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g,r=function(t,r,i){var n=i;return r.replace(e,function(t,e,r,i,a){e=e||i,n&&(e in n&&(n=n[e]),"function"==typeof n&&a&&(n=n()))}),n=(null==n||n==i?t:n)+""};return function(e,i){return string(e).replace(t,function(t,e){return r(t,e,i)})}}(),x.ninja=function(){return b.was?c.win.raphael=b.is:delete raphael,x},x.st=ur,function(t,e,r){function i(){/in/.test(t.readystate)?settimeout(i,9):x.eve("raphael.domload")}null==t.readystate&&t.addeventlistener&&(t.addeventlistener(e,r=function(){t.removeeventlistener(e,r,!1),t.readystate="complete"},!1),t.readystate="loading"),i()}(document,"domcontentloaded"),b.was?c.win.raphael=x:raphael=x,eve.on("raphael.domload",function(){y=!0})}(),window.raphael.svg&&function(t){var e="hasownproperty",r=string,i=parsefloat,n=parseint,a=math,s=a.max,o=a.abs,l=a.pow,h=/[, ]+/,u=t.eve,c="",f=" ",p="http://www.w3.org/1999/xlink",d={block:"m5,0 0,2.5 5,5z",classic:"m5,0 0,2.5 5,5 3.5,3 3.5,2z",diamond:"m2.5,0 5,2.5 2.5,5 0,2.5z",open:"m6,1 1,3.5 6,6",oval:"m2.5,0a2.5,2.5,0,0,1,2.5,5 2.5,2.5,0,0,1,2.5,0z"},g={};t.tostring=function(){return"your browser supports svg.\nyou are running rapha毛l "+this.version};var v=function(i,n){if(n){"string"==typeof i&&(i=v(i));for(var a in n)n[e](a)&&("xlink:"==a.substring(0,6)?i.setattributens(p,a.substring(6),r(n[a])):i.setattribute(a,r(n[a])))}else i=t._g.doc.createelementns("http://www.w3.org/2000/svg",i),i.style&&(i.style.webkittaphighlightcolor="rgba(0,0,0,0)");return i},x=function(e,n){var h="linear",u=e.id+n,f=.5,p=.5,d=e.node,g=e.paper,x=d.style,y=t._g.doc.getelementbyid(u);if(!y){if(n=r(n).replace(t._radial_gradient,function(t,e,r){if(h="radial",e&&r){f=i(e),p=i(r);var n=2*(p>.5)-1;l(f-.5,2)+l(p-.5,2)>.25&&(p=a.sqrt(.25-l(f-.5,2))*n+.5)&&.5!=p&&(p=p.tofixed(5)-1e-5*n)}return c}),n=n.split(/\s*\-\s*/),"linear"==h){var m=n.shift();if(m=-i(m),isnan(m))return null;var b=[0,0,a.cos(t.rad(m)),a.sin(t.rad(m))],_=1/(s(o(b[2]),o(b[3]))||1);b[2]*=_,b[3]*=_,b[2]<0&&(b[0]=-b[2],b[2]=0),b[3]<0&&(b[1]=-b[3],b[3]=0)}var w=t._parsedots(n);if(!w)return null;if(u=u.replace(/[\(\)\s,\xb0#]/g,"_"),e.gradient&&u!=e.gradient.id&&(g.defs.removechild(e.gradient),delete e.gradient),!e.gradient){y=v(h+"gradient",{id:u}),e.gradient=y,v(y,"radial"==h?{fx:f,fy:p}:{x1:b[0],y1:b[1],x2:b[2],y2:b[3],gradienttransform:e.matrix.invert()}),g.defs.appendchild(y);for(var k=0,c=w.length;c>k;k++)y.appendchild(v("stop",{offset:w[k].offset?w[k].offset:k?"100%":"0%","stop-color":w[k].color||"#fff"}))}}return v(d,{fill:"url(#"+u+")",opacity:1,"fill-opacity":1}),x.fill=c,x.opacity=1,x.fillopacity=1,1},y=function(t){var e=t.getbbox(1);v(t.pattern,{patterntransform:t.matrix.invert()+" translate("+e.x+","+e.y+")"})},m=function(i,n,a){if("path"==i.type){for(var s,o,l,h,u,f=r(n).tolowercase().split("-"),p=i.paper,x=a?"end":"start",y=i.node,m=i.attrs,b=m["stroke-width"],_=f.length,w="classic",k=3,c=3,b=5;_--;)switch(f[_]){case"block":case"classic":case"oval":case"diamond":case"open":case"none":w=f[_];break;case"wide":c=5;break;case"narrow":c=2;break;case"long":k=5;break;case"short":k=2}if("open"==w?(k+=2,c+=2,b+=2,l=1,h=a?4:1,u={fill:"none",stroke:m.stroke}):(h=l=k/2,u={fill:m.stroke,stroke:"none"}),i._.arrows?a?(i._.arrows.endpath&&g[i._.arrows.endpath]--,i._.arrows.endmarker&&g[i._.arrows.endmarker]--):(i._.arrows.startpath&&g[i._.arrows.startpath]--,i._.arrows.startmarker&&g[i._.arrows.startmarker]--):i._.arrows={},"none"!=w){var s="raphael-marker-"+w,a="raphael-marker-"+x+w+k+c;t._g.doc.getelementbyid(s)?g[s]++:(p.defs.appendchild(v(v("path"),{"stroke-linecap":"round",d:d[w],id:s})),g[s]=1);var t,n=t._g.doc.getelementbyid(a);n?(g[a]++,t=n.getelementsbytagname("use")[0]):(n=v(v("marker"),{id:a,markerheight:c,markerwidth:k,orient:"auto",refx:h,refy:c/2}),t=v(v("use"),{"xlink:href":"#"+s,transform:(a?"rotate(180 "+k/2+" "+c/2+") ":c)+"scale("+k/b+","+c/b+")","stroke-width":(1/((k/b+c/b)/2)).tofixed(4)}),n.appendchild(t),p.defs.appendchild(n),g[a]=1),v(t,u);var l=l*("diamond"!=w&&"oval"!=w);a?(s=i._.arrows.startdx*b||0,o=t.gettotallength(m.path)-l*b):(s=l*b,o=t.gettotallength(m.path)-(i._.arrows.enddx*b||0)),u={},u["marker-"+x]="url(#"+a+")",(o||s)&&(u.d=raphael.getsubpath(m.path,s,o)),v(y,u),i._.arrows[x+"path"]=s,i._.arrows[x+"marker"]=a,i._.arrows[x+"dx"]=l,i._.arrows[x+"type"]=w,i._.arrows[x+"string"]=n}else a?(s=i._.arrows.startdx*b||0,o=t.gettotallength(m.path)-s):(s=0,o=t.gettotallength(m.path)-(i._.arrows.enddx*b||0)),i._.arrows[x+"path"]&&v(y,{d:raphael.getsubpath(m.path,s,o)}),delete i._.arrows[x+"path"],delete i._.arrows[x+"marker"],delete i._.arrows[x+"dx"],delete i._.arrows[x+"type"],delete i._.arrows[x+"string"];for(u in g)if(g[e](u)&&!g[u]){var m=t._g.doc.getelementbyid(u);m&&m.parentnode.removechild(m)}}},b={"":[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]},_=function(t,e,i){if(e=b[r(e).tolowercase()]){for(var n=t.attrs["stroke-width"]||"1",a={round:n,square:n,butt:0}[t.attrs["stroke-linecap"]||i["stroke-linecap"]]||0,s=[],o=e.length;o--;)s[o]=e[o]*n+(o%2?1:-1)*a;v(t.node,{"stroke-dasharray":s.join(",")})}},w=function(i,a){var l=i.node,u=i.attrs,f=l.style.visibility;l.style.visibility="hidden";for(var d in a)if(a[e](d)){if(!t._availableattrs[e](d))continue;var g=a[d];switch(u[d]=g,d){case"blur":i.blur(g);break;case"href":case"title":case"target":var b=l.parentnode;if("a"!=b.tagname.tolowercase()){var w=v("a");b.insertbefore(w,l),w.appendchild(l),b=w}"target"==d?b.setattributens(p,"show","blank"==g?"new":g):b.setattributens(p,d,g);break;case"cursor":l.style.cursor=g;break;case"transform":i.transform(g);break;case"arrow-start":m(i,g);break;case"arrow-end":m(i,g,1);break;case"clip-rect":var k=r(g).split(h);if(4==k.length){i.clip&&i.clip.parentnode.parentnode.removechild(i.clip.parentnode);var b=v("clippath"),s=v("rect");b.id=t.createuuid(),v(s,{x:k[0],y:k[1],width:k[2],height:k[3]}),b.appendchild(s),i.paper.defs.appendchild(b),v(l,{"clip-path":"url(#"+b.id+")"}),i.clip=s}if(!g){var a=l.getattribute("clip-path");if(a){var t=t._g.doc.getelementbyid(a.replace(/(^url\(#|\)$)/g,c));t&&t.parentnode.removechild(t),v(l,{"clip-path":c}),delete i.clip}}break;case"path":"path"==i.type&&(v(l,{d:g?u.path=t._pathtoabsolute(g):"m0,0"}),i._.dirty=1,i._.arrows&&("startstring"in i._.arrows&&m(i,i._.arrows.startstring),"endstring"in i._.arrows&&m(i,i._.arrows.endstring,1)));break;case"width":if(l.setattribute(d,g),i._.dirty=1,!u.fx)break;d="x",g=u.x;case"x":u.fx&&(g=-u.x-(u.width||0));case"rx":if("rx"==d&&"rect"==i.type)break;case"cx":l.setattribute(d,g),i.pattern&&y(i),i._.dirty=1;break;case"height":if(l.setattribute(d,g),i._.dirty=1,!u.fy)break;d="y",g=u.y;case"y":u.fy&&(g=-u.y-(u.height||0));case"ry":if("ry"==d&&"rect"==i.type)break;case"cy":l.setattribute(d,g),i.pattern&&y(i),i._.dirty=1;break;case"r":"rect"==i.type?v(l,{rx:g,ry:g}):l.setattribute(d,g),i._.dirty=1;break;case"src":"image"==i.type&&l.setattributens(p,"href",g);break;case"stroke-width":(1!=i._.sx||1!=i._.sy)&&(g/=s(o(i._.sx),o(i._.sy))||1),i.paper._vbsize&&(g*=i.paper._vbsize),l.setattribute(d,g),u["stroke-dasharray"]&&_(i,u["stroke-dasharray"],a),i._.arrows&&("startstring"in i._.arrows&&m(i,i._.arrows.startstring),"endstring"in i._.arrows&&m(i,i._.arrows.endstring,1));break;case"stroke-dasharray":_(i,g,a);break;case"fill":var n=r(g).match(t._isurl);if(n){b=v("pattern");var l=v("image");b.id=t.createuuid(),v(b,{x:0,y:0,patternunits:"userspaceonuse",height:1,width:1}),v(l,{x:0,y:0,"xlink:href":n[1]}),b.appendchild(l),function(e){t._preload(n[1],function(){var t=this.offsetwidth,r=this.offsetheight;v(e,{width:t,height:r}),v(l,{width:t,height:r}),i.paper.safari()})}(b),i.paper.defs.appendchild(b),v(l,{fill:"url(#"+b.id+")"}),i.pattern=b,i.pattern&&y(i);break}var m=t.getrgb(g);if(m.error){if(("circle"==i.type||"ellipse"==i.type||"r"!=r(g).charat())&&x(i,g)){if("opacity"in u||"fill-opacity"in u){var z=t._g.doc.getelementbyid(l.getattribute("fill").replace(/^url\(#|\)$/g,c));if(z){var e=z.getelementsbytagname("stop");v(e[e.length-1],{"stop-opacity":("opacity"in u?u.opacity:1)*("fill-opacity"in u?u["fill-opacity"]:1)})}}u.gradient=g,u.fill="none";break}}else delete a.gradient,delete u.gradient,!t.is(u.opacity,"undefined")&&t.is(a.opacity,"undefined")&&v(l,{opacity:u.opacity}),!t.is(u["fill-opacity"],"undefined")&&t.is(a["fill-opacity"],"undefined")&&v(l,{"fill-opacity":u["fill-opacity"]});m[e]("opacity")&&v(l,{"fill-opacity":m.opacity>1?m.opacity/100:m.opacity});case"stroke":m=t.getrgb(g),l.setattribute(d,m.hex),"stroke"==d&&m[e]("opacity")&&v(l,{"stroke-opacity":m.opacity>1?m.opacity/100:m.opacity}),"stroke"==d&&i._.arrows&&("startstring"in i._.arrows&&m(i,i._.arrows.startstring),"endstring"in i._.arrows&&m(i,i._.arrows.endstring,1));break;case"gradient":("circle"==i.type||"ellipse"==i.type||"r"!=r(g).charat())&&x(i,g);break;case"opacity":u.gradient&&!u[e]("stroke-opacity")&&v(l,{"stroke-opacity":g>1?g/100:g});case"fill-opacity":if(u.gradient){z=t._g.doc.getelementbyid(l.getattribute("fill").replace(/^url\(#|\)$/g,c)),z&&(e=z.getelementsbytagname("stop"),v(e[e.length-1],{"stop-opacity":g}));break}default:"font-size"==d&&(g=n(g,10)+"px");var f=d.replace(/(\-.)/g,function(t){return t.substring(1).touppercase()});l.style[f]=g,i._.dirty=1,l.setattribute(d,g)}}c(i,a),l.style.visibility=f},k=1.2,c=function(i,a){if("text"==i.type&&(a[e]("text")||a[e]("font")||a[e]("font-size")||a[e]("x")||a[e]("y"))){var s=i.attrs,o=i.node,l=o.firstchild?n(t._g.doc.defaultview.getcomputedstyle(o.firstchild,c).getpropertyvalue("font-size"),10):10;if(a[e]("text")){for(s.text=a.text;o.firstchild;)o.removechild(o.firstchild);for(var h,u=r(a.text).split("\n"),f=[],p=0,d=u.length;d>p;p++)h=v("tspan"),p&&v(h,{dy:l*k,x:s.x}),h.appendchild(t._g.doc.createtextnode(u[p])),o.appendchild(h),f[p]=h}else for(f=o.getelementsbytagname("tspan"),p=0,d=f.length;d>p;p++)p?v(f[p],{dy:l*k,x:s.x}):v(f[0],{dy:0});v(o,{x:s.x,y:s.y}),i._.dirty=1;var g=i._getbbox(),x=s.y-(g.y+g.height/2);x&&t.is(x,"finite")&&v(f[0],{dy:x})}},b=function(e,r){this[0]=this.node=e,e.raphael=!0,this.id=t._oid++,e.raphaelid=this.id,this.matrix=t.matrix(),this.realpath=null,this.paper=r,this.attrs=this.attrs||{},this._={transform:[],sx:1,sy:1,deg:0,dx:0,dy:0,dirty:1},!r.bottom&&(r.bottom=this),this.prev=r.top,r.top&&(r.top.next=this),r.top=this,this.next=null},s=t.el;b.prototype=s,s.constructor=b,t._engine.path=function(t,e){var r=v("path");e.canvas&&e.canvas.appendchild(r);var i=new b(r,e);return i.type="path",w(i,{fill:"none",stroke:"#000",path:t}),i},s.rotate=function(t,e,n){if(this.removed)return this;if(t=r(t).split(h),t.length-1&&(e=i(t[1]),n=i(t[2])),t=i(t[0]),null==n&&(e=n),null==e||null==n){var a=this.getbbox(1);e=a.x+a.width/2,n=a.y+a.height/2}return this.transform(this._.transform.concat([["r",t,e,n]])),this},s.scale=function(t,e,n,a){if(this.removed)return this;if(t=r(t).split(h),t.length-1&&(e=i(t[1]),n=i(t[2]),a=i(t[3])),t=i(t[0]),null==e&&(e=t),null==a&&(n=a),null==n||null==a)var s=this.getbbox(1);return n=null==n?s.x+s.width/2:n,a=null==a?s.y+s.height/2:a,this.transform(this._.transform.concat([["s",t,e,n,a]])),this },s.translate=function(t,e){return this.removed?this:(t=r(t).split(h),t.length-1&&(e=i(t[1])),t=i(t[0])||0,e=+e||0,this.transform(this._.transform.concat([["t",t,e]])),this)},s.transform=function(r){var i=this._;if(null==r)return i.transform;if(t._extracttransform(this,r),this.clip&&v(this.clip,{transform:this.matrix.invert()}),this.pattern&&y(this),this.node&&v(this.node,{transform:this.matrix}),1!=i.sx||1!=i.sy){var n=this.attrs[e]("stroke-width")?this.attrs["stroke-width"]:1;this.attr({"stroke-width":n})}return this},s.hide=function(){return!this.removed&&this.paper.safari(this.node.style.display="none"),this},s.show=function(){return!this.removed&&this.paper.safari(this.node.style.display=""),this},s.remove=function(){if(!this.removed&&this.node.parentnode){var e=this.paper;e.__set__&&e.__set__.exclude(this),u.unbind("raphael.*.*."+this.id),this.gradient&&e.defs.removechild(this.gradient),t._tear(this,e),"a"==this.node.parentnode.tagname.tolowercase()?this.node.parentnode.parentnode.removechild(this.node.parentnode):this.node.parentnode.removechild(this.node);for(var r in this)this[r]="function"==typeof this[r]?t._removedfactory(r):null;this.removed=!0}},s._getbbox=function(){if("none"==this.node.style.display){this.show();var t=!0}var e={};try{e=this.node.getbbox()}catch(r){}finally{e=e||{}}return t&&this.hide(),e},s.attr=function(r,i){if(this.removed)return this;if(null==r){var n={};for(var a in this.attrs)this.attrs[e](a)&&(n[a]=this.attrs[a]);return n.gradient&&"none"==n.fill&&(n.fill=n.gradient)&&delete n.gradient,n.transform=this._.transform,n}if(null==i&&t.is(r,"string")){if("fill"==r&&"none"==this.attrs.fill&&this.attrs.gradient)return this.attrs.gradient;if("transform"==r)return this._.transform;for(var s=r.split(h),o={},l=0,c=s.length;c>l;l++)r=s[l],o[r]=r in this.attrs?this.attrs[r]:t.is(this.paper.customattributes[r],"function")?this.paper.customattributes[r].def:t._availableattrs[r];return c-1?o:o[s[0]]}if(null==i&&t.is(r,"array")){for(o={},l=0,c=r.length;c>l;l++)o[r[l]]=this.attr(r[l]);return o}if(null!=i){var f={};f[r]=i}else null!=r&&t.is(r,"object")&&(f=r);for(var p in f)u("raphael.attr."+p+"."+this.id,this,f[p]);for(p in this.paper.customattributes)if(this.paper.customattributes[e](p)&&f[e](p)&&t.is(this.paper.customattributes[p],"function")){var d=this.paper.customattributes[p].apply(this,[].concat(f[p]));this.attrs[p]=f[p];for(var g in d)d[e](g)&&(f[g]=d[g])}return w(this,f),this},s.tofront=function(){if(this.removed)return this;"a"==this.node.parentnode.tagname.tolowercase()?this.node.parentnode.parentnode.appendchild(this.node.parentnode):this.node.parentnode.appendchild(this.node);var e=this.paper;return e.top!=this&&t._tofront(this,e),this},s.toback=function(){if(this.removed)return this;var e=this.node.parentnode;"a"==e.tagname.tolowercase()?e.parentnode.insertbefore(this.node.parentnode,this.node.parentnode.parentnode.firstchild):e.firstchild!=this.node&&e.insertbefore(this.node,this.node.parentnode.firstchild),t._toback(this,this.paper);this.paper;return this},s.insertafter=function(e){if(this.removed)return this;var r=e.node||e[e.length-1].node;return r.nextsibling?r.parentnode.insertbefore(this.node,r.nextsibling):r.parentnode.appendchild(this.node),t._insertafter(this,e,this.paper),this},s.insertbefore=function(e){if(this.removed)return this;var r=e.node||e[0].node;return r.parentnode.insertbefore(this.node,r),t._insertbefore(this,e,this.paper),this},s.blur=function(e){var r=this;if(0!==+e){var i=v("filter"),n=v("fegaussianblur");r.attrs.blur=e,i.id=t.createuuid(),v(n,{stddeviation:+e||1.5}),i.appendchild(n),r.paper.defs.appendchild(i),r._blur=i,v(r.node,{filter:"url(#"+i.id+")"})}else r._blur&&(r._blur.parentnode.removechild(r._blur),delete r._blur,delete r.attrs.blur),r.node.removeattribute("filter")},t._engine.circle=function(t,e,r,i){var n=v("circle");t.canvas&&t.canvas.appendchild(n);var a=new b(n,t);return a.attrs={cx:e,cy:r,r:i,fill:"none",stroke:"#000"},a.type="circle",v(n,a.attrs),a},t._engine.rect=function(t,e,r,i,n,a){var s=v("rect");t.canvas&&t.canvas.appendchild(s);var o=new b(s,t);return o.attrs={x:e,y:r,width:i,height:n,r:a||0,rx:a||0,ry:a||0,fill:"none",stroke:"#000"},o.type="rect",v(s,o.attrs),o},t._engine.ellipse=function(t,e,r,i,n){var a=v("ellipse");t.canvas&&t.canvas.appendchild(a);var s=new b(a,t);return s.attrs={cx:e,cy:r,rx:i,ry:n,fill:"none",stroke:"#000"},s.type="ellipse",v(a,s.attrs),s},t._engine.image=function(t,e,r,i,n,a){var s=v("image");v(s,{x:r,y:i,width:n,height:a,preserveaspectratio:"none"}),s.setattributens(p,"href",e),t.canvas&&t.canvas.appendchild(s);var o=new b(s,t);return o.attrs={x:r,y:i,width:n,height:a,src:e},o.type="image",o},t._engine.text=function(e,r,i,n){var a=v("text");e.canvas&&e.canvas.appendchild(a);var s=new b(a,e);return s.attrs={x:r,y:i,"text-anchor":"middle",text:n,font:t._availableattrs.font,stroke:"none",fill:"#000"},s.type="text",w(s,s.attrs),s},t._engine.setsize=function(t,e){return this.width=t||this.width,this.height=e||this.height,this.canvas.setattribute("width",this.width),this.canvas.setattribute("height",this.height),this._viewbox&&this.setviewbox.apply(this,this._viewbox),this},t._engine.create=function(){var e=t._getcontainer.apply(0,arguments),r=e&&e.container,i=e.x,n=e.y,a=e.width,s=e.height;if(!r)throw new error("svg container not found.");var o,l=v("svg"),h="overflow:hidden;";return i=i||0,n=n||0,a=a||512,s=s||342,v(l,{height:s,version:1.1,width:a,xmlns:"http://www.w3.org/2000/svg"}),1==r?(l.style.csstext=h+"position:absolute;left:"+i+"px;top:"+n+"px",t._g.doc.body.appendchild(l),o=1):(l.style.csstext=h+"position:relative",r.firstchild?r.insertbefore(l,r.firstchild):r.appendchild(l)),r=new t._paper,r.width=a,r.height=s,r.canvas=l,r.clear(),r._left=r._top=0,o&&(r.renderfix=function(){}),r.renderfix(),r},t._engine.setviewbox=function(t,e,r,i,n){u("raphael.setviewbox",this,this._viewbox,[t,e,r,i,n]);var a,o,l=s(r/this.width,i/this.height),h=this.top,c=n?"meet":"xminymin";for(null==t?(this._vbsize&&(l=1),delete this._vbsize,a="0 0 "+this.width+f+this.height):(this._vbsize=l,a=t+f+e+f+r+f+i),v(this.canvas,{viewbox:a,preserveaspectratio:c});l&&h;)o="stroke-width"in h.attrs?h.attrs["stroke-width"]:1,h.attr({"stroke-width":o}),h._.dirty=1,h._.dirtyt=1,h=h.prev;return this._viewbox=[t,e,r,i,!!n],this},t.prototype.renderfix=function(){var t,e=this.canvas,r=e.style;try{t=e.getscreenctm()||e.createsvgmatrix()}catch(i){t=e.createsvgmatrix()}var n=-t.e%1,a=-t.f%1;(n||a)&&(n&&(this._left=(this._left+n)%1,r.left=this._left+"px"),a&&(this._top=(this._top+a)%1,r.top=this._top+"px"))},t.prototype.clear=function(){t.eve("raphael.clear",this);for(var e=this.canvas;e.firstchild;)e.removechild(e.firstchild);this.bottom=this.top=null,(this.desc=v("desc")).appendchild(t._g.doc.createtextnode("created with rapha毛l "+t.version)),e.appendchild(this.desc),e.appendchild(this.defs=v("defs"))},t.prototype.remove=function(){u("raphael.remove",this),this.canvas.parentnode&&this.canvas.parentnode.removechild(this.canvas);for(var e in this)this[e]="function"==typeof this[e]?t._removedfactory(e):null};var a=t.st;for(var t in s)s[e](t)&&!a[e](t)&&(a[t]=function(t){return function(){var e=arguments;return this.foreach(function(r){r[t].apply(r,e)})}}(t))}(window.raphael),window.raphael.vml&&function(t){var e="hasownproperty",r=string,i=parsefloat,n=math,a=n.round,s=n.max,o=n.min,l=n.abs,h="fill",u=/[, ]+/,c=t.eve,f=" progid:dximagetransform.microsoft",p=" ",d="",g={m:"m",l:"l",c:"c",z:"x",m:"t",l:"r",c:"v",z:"x"},v=/([clmz]),?([^clmz]*)/gi,x=/ progid:\s+blur\([^\)]+\)/g,y=/-?[^,\s-]+/g,m="position:absolute;left:0;top:0;width:1px;height:1px",b=21600,_={path:1,rect:1,image:1},w={circle:1,ellipse:1},k=function(e){var i=/[ahqstv]/gi,n=t._pathtoabsolute;if(r(e).match(i)&&(n=t._path2curve),i=/[clmz]/g,n==t._pathtoabsolute&&!r(e).match(i)){var s=r(e).replace(v,function(t,e,r){var i=[],n="m"==e.tolowercase(),s=g[e];return r.replace(y,function(t){n&&2==i.length&&(s+=i+g["m"==e?"l":"l"],i=[]),i.push(a(t*b))}),s+i});return s}var o,l,h=n(e);s=[];for(var u=0,c=h.length;c>u;u++){o=h[u],l=h[u][0].tolowercase(),"z"==l&&(l="x");for(var f=1,x=o.length;x>f;f++)l+=a(o[f]*b)+(f!=x-1?",":d);s.push(l)}return s.join(p)},c=function(e,r,i){var n=t.matrix();return n.rotate(-e,.5,.5),{dx:n.x(r,i),dy:n.y(r,i)}},b=function(t,e,r,i,n,a){var s=t._,o=t.matrix,u=s.fillpos,c=t.node,f=c.style,d=1,g="",v=b/e,x=b/r;if(f.visibility="hidden",e&&r){if(c.coordsize=l(v)+p+l(x),f.rotation=a*(0>e*r?-1:1),a){var y=c(a,i,n);i=y.dx,n=y.dy}if(0>e&&(g+="x"),0>r&&(g+=" y")&&(d=-1),f.flip=g,c.coordorigin=i*-v+p+n*-x,u||s.fillsize){var m=c.getelementsbytagname(h);m=m&&m[0],c.removechild(m),u&&(y=c(a,o.x(u[0],u[1]),o.y(u[0],u[1])),m.position=y.dx*d+p+y.dy*d),s.fillsize&&(m.size=s.fillsize[0]*l(e)+p+s.fillsize[1]*l(r)),c.appendchild(m)}f.visibility="visible"}};t.tostring=function(){return"your browser doesn鈥檛 support svg. falling down to vml.\nyou are running rapha毛l "+this.version};var s=function(t,e,i){for(var n=r(e).tolowercase().split("-"),a=i?"end":"start",s=n.length,o="classic",l="medium",h="medium";s--;)switch(n[s]){case"block":case"classic":case"oval":case"diamond":case"open":case"none":o=n[s];break;case"wide":case"narrow":h=n[s];break;case"long":case"short":l=n[s]}var u=t.node.getelementsbytagname("stroke")[0];u[a+"arrow"]=o,u[a+"arrowlength"]=l,u[a+"arrowwidth"]=h},a=function(n,l){n.attrs=n.attrs||{};var c=n.node,f=n.attrs,g=c.style,v=_[n.type]&&(l.x!=f.x||l.y!=f.y||l.width!=f.width||l.height!=f.height||l.cx!=f.cx||l.cy!=f.cy||l.rx!=f.rx||l.ry!=f.ry||l.r!=f.r),x=w[n.type]&&(f.cx!=l.cx||f.cy!=l.cy||f.r!=l.r||f.rx!=l.rx||f.ry!=l.ry),y=n;for(var m in l)l[e](m)&&(f[m]=l[m]);if(v&&(f.path=t._getpath[n.type](n),n._.dirty=1),l.href&&(c.href=l.href),l.title&&(c.title=l.title),l.target&&(c.target=l.target),l.cursor&&(g.cursor=l.cursor),"blur"in l&&n.blur(l.blur),(l.path&&"path"==n.type||v)&&(c.path=k(~r(f.path).tolowercase().indexof("r")?t._pathtoabsolute(f.path):f.path),"image"==n.type&&(n._.fillpos=[f.x,f.y],n._.fillsize=[f.width,f.height],b(n,1,1,0,0,0))),"transform"in l&&n.transform(l.transform),x){var c=+f.cx,a=+f.cy,n=+f.rx||+f.r||0,l=+f.ry||+f.r||0;c.path=t.format("ar{0},{1},{2},{3},{4},{1},{4},{1}x",a((c-n)*b),a((a-l)*b),a((c+n)*b),a((a+l)*b),a(c*b))}if("clip-rect"in l){var z=r(l["clip-rect"]).split(u);if(4==z.length){z[2]=+z[2]+ +z[0],z[3]=+z[3]+ +z[1];var e=c.cliprect||t._g.doc.createelement("div"),f=e.style;f.clip=t.format("rect({1}px {2}px {3}px {0}px)",z),c.cliprect||(f.position="absolute",f.top=0,f.left=0,f.width=n.paper.width+"px",f.height=n.paper.height+"px",c.parentnode.insertbefore(e,c),e.appendchild(c),c.cliprect=e)}l["clip-rect"]||c.cliprect&&(c.cliprect.style.clip="auto")}if(n.textpath){var r=n.textpath.style;l.font&&(r.font=l.font),l["font-family"]&&(r.fontfamily='"'+l["font-family"].split(",")[0].replace(/^['"]+|['"]+$/g,d)+'"'),l["font-size"]&&(r.fontsize=l["font-size"]),l["font-weight"]&&(r.fontweight=l["font-weight"]),l["font-style"]&&(r.fontstyle=l["font-style"])}if("arrow-start"in l&&s(y,l["arrow-start"]),"arrow-end"in l&&s(y,l["arrow-end"],1),null!=l.opacity||null!=l["stroke-width"]||null!=l.fill||null!=l.src||null!=l.stroke||null!=l["stroke-width"]||null!=l["stroke-opacity"]||null!=l["fill-opacity"]||null!=l["stroke-dasharray"]||null!=l["stroke-miterlimit"]||null!=l["stroke-linejoin"]||null!=l["stroke-linecap"]){var p=c.getelementsbytagname(h),i=!1;if(p=p&&p[0],!p&&(i=p=m(h)),"image"==n.type&&l.src&&(p.src=l.src),l.fill&&(p.on=!0),(null==p.on||"none"==l.fill||null===l.fill)&&(p.on=!1),p.on&&l.fill){var j=r(l.fill).match(t._isurl);if(j){p.parentnode==c&&c.removechild(p),p.rotate=!0,p.src=j[1],p.type="tile";var q=n.getbbox(1);p.position=q.x+p+q.y,n._.fillpos=[q.x,q.y],t._preload(j[1],function(){n._.fillsize=[this.offsetwidth,this.offsetheight]})}else p.color=t.getrgb(l.fill).hex,p.src=d,p.type="solid",t.getrgb(l.fill).error&&(y.type in{circle:1,ellipse:1}||"r"!=r(l.fill).charat())&&t(y,l.fill,p)&&(f.fill="none",f.gradient=l.fill,p.rotate=!1)}if("fill-opacity"in l||"opacity"in l){var d=((+f["fill-opacity"]+1||2)-1)*((+f.opacity+1||2)-1)*((+t.getrgb(l.fill).o+1||2)-1);d=o(s(d,0),1),p.opacity=d,p.src&&(p.color="none")}c.appendchild(p);var v=c.getelementsbytagname("stroke")&&c.getelementsbytagname("stroke")[0],o=!1;!v&&(o=v=m("stroke")),(l.stroke&&"none"!=l.stroke||l["stroke-width"]||null!=l["stroke-opacity"]||l["stroke-dasharray"]||l["stroke-miterlimit"]||l["stroke-linejoin"]||l["stroke-linecap"])&&(v.on=!0),("none"==l.stroke||null===l.stroke||null==v.on||0==l.stroke||0==l["stroke-width"])&&(v.on=!1);var y=t.getrgb(l.stroke);v.on&&l.stroke&&(v.color=y.hex),d=((+f["stroke-opacity"]+1||2)-1)*((+f.opacity+1||2)-1)*((+y.o+1||2)-1);var g=.75*(i(l["stroke-width"])||1);if(d=o(s(d,0),1),null==l["stroke-width"]&&(g=f["stroke-width"]),l["stroke-width"]&&(v.weight=g),g&&1>g&&(d*=g)&&(v.weight=1),v.opacity=d,l["stroke-linejoin"]&&(v.joinstyle=l["stroke-linejoin"]||"miter"),v.miterlimit=l["stroke-miterlimit"]||8,l["stroke-linecap"]&&(v.endcap="butt"==l["stroke-linecap"]?"flat":"square"==l["stroke-linecap"]?"square":"round"),l["stroke-dasharray"]){var w={"-":"shortdash",".":"shortdot","-.":"shortdashdot","-..":"shortdashdotdot",". ":"dot","- ":"dash","--":"longdash","- .":"dashdot","--.":"longdashdot","--..":"longdashdotdot"};v.dashstyle=w[e](l["stroke-dasharray"])?w[l["stroke-dasharray"]]:d}o&&c.appendchild(v)}if("text"==y.type){y.paper.canvas.style.display=d;var x=y.paper.span,h=100,u=f.font&&f.font.match(/\d+(?:\.\d*)?(?=px)/);g=x.style,f.font&&(g.font=f.font),f["font-family"]&&(g.fontfamily=f["font-family"]),f["font-weight"]&&(g.fontweight=f["font-weight"]),f["font-style"]&&(g.fontstyle=f["font-style"]),u=i(f["font-size"]||u&&u[0])||10,g.fontsize=u*h+"px",y.textpath.string&&(x.innerhtml=r(y.textpath.string).replace(/"));var $=x.getboundingclientrect();y.w=f.w=($.right-$.left)/h,y.h=f.h=($.bottom-$.top)/h,y.x=f.x,y.y=f.y+y.h/2,("x"in l||"y"in l)&&(y.path.v=t.format("m{0},{1}l{2},{1}",a(f.x*b),a(f.y*b),a(f.x*b)+1));for(var z=["x","y","text","font","font-family","font-weight","font-style","font-size"],q=0,j=z.length;j>q;q++)if(z[q]in l){y._.dirty=1;break}switch(f["text-anchor"]){case"start":y.textpath.style["v-text-align"]="left",y.bbx=y.w/2;break;case"end":y.textpath.style["v-text-align"]="right",y.bbx=-y.w/2;break;default:y.textpath.style["v-text-align"]="center",y.bbx=0}y.textpath.style["v-text-kern"]=!0}},t=function(e,a,s){e.attrs=e.attrs||{};var o=(e.attrs,math.pow),l="linear",h=".5 .5";if(e.attrs.gradient=a,a=r(a).replace(t._radial_gradient,function(t,e,r){return l="radial",e&&r&&(e=i(e),r=i(r),o(e-.5,2)+o(r-.5,2)>.25&&(r=n.sqrt(.25-o(e-.5,2))*(2*(r>.5)-1)+.5),h=e+p+r),d}),a=a.split(/\s*\-\s*/),"linear"==l){var u=a.shift();if(u=-i(u),isnan(u))return null}var c=t._parsedots(a);if(!c)return null;if(e=e.shape||e.node,c.length){e.removechild(s),s.on=!0,s.method="none",s.color=c[0].color,s.color2=c[c.length-1].color;for(var f=[],g=0,v=c.length;v>g;g++)c[g].offset&&f.push(c[g].offset+p+c[g].color);s.colors=f.length?f.join():"0% "+s.color,"radial"==l?(s.type="gradienttitle",s.focus="100%",s.focussize="0 0",s.focusposition=h,s.angle=0):(s.type="gradient",s.angle=(270-u)%360),e.appendchild(s)}return 1},n=function(e,r){this[0]=this.node=e,e.raphael=!0,this.id=t._oid++,e.raphaelid=this.id,this.x=0,this.y=0,this.attrs={},this.paper=r,this.matrix=t.matrix(),this._={transform:[],sx:1,sy:1,dx:0,dy:0,deg:0,dirty:1,dirtyt:1},!r.bottom&&(r.bottom=this),this.prev=r.top,r.top&&(r.top.next=this),r.top=this,this.next=null},l=t.el;n.prototype=l,l.constructor=n,l.transform=function(e){if(null==e)return this._.transform;var i,n=this.paper._viewboxshift,a=n?"s"+[n.scale,n.scale]+"-1-1t"+[n.dx,n.dy]:d;n&&(i=e=r(e).replace(/\.{3}|\u2026/g,this._.transform||d)),t._extracttransform(this,a+e);var s,o=this.matrix.clone(),l=this.skew,h=this.node,u=~r(this.attrs.fill).indexof("-"),c=!r(this.attrs.fill).indexof("url(");if(o.translate(-.5,-.5),c||u||"image"==this.type)if(l.matrix="1 0 0 1",l.offset="0 0",s=o.split(),u&&s.norotation||!s.issimple){h.style.filter=o.tofilter();var f=this.getbbox(),g=this.getbbox(1),v=f.x-g.x,x=f.y-g.y;h.coordorigin=v*-b+p+x*-b,b(this,1,1,v,x,0)}else h.style.filter=d,b(this,s.scalex,s.scaley,s.dx,s.dy,s.rotate);else h.style.filter=d,l.matrix=r(o),l.offset=o.offset();return i&&(this._.transform=i),this},l.rotate=function(t,e,n){if(this.removed)return this;if(null!=t){if(t=r(t).split(u),t.length-1&&(e=i(t[1]),n=i(t[2])),t=i(t[0]),null==n&&(e=n),null==e||null==n){var a=this.getbbox(1);e=a.x+a.width/2,n=a.y+a.height/2}return this._.dirtyt=1,this.transform(this._.transform.concat([["r",t,e,n]])),this}},l.translate=function(t,e){return this.removed?this:(t=r(t).split(u),t.length-1&&(e=i(t[1])),t=i(t[0])||0,e=+e||0,this._.bbox&&(this._.bbox.x+=t,this._.bbox.y+=e),this.transform(this._.transform.concat([["t",t,e]])),this)},l.scale=function(t,e,n,a){if(this.removed)return this;if(t=r(t).split(u),t.length-1&&(e=i(t[1]),n=i(t[2]),a=i(t[3]),isnan(n)&&(n=null),isnan(a)&&(a=null)),t=i(t[0]),null==e&&(e=t),null==a&&(n=a),null==n||null==a)var s=this.getbbox(1);return n=null==n?s.x+s.width/2:n,a=null==a?s.y+s.height/2:a,this.transform(this._.transform.concat([["s",t,e,n,a]])),this._.dirtyt=1,this},l.hide=function(){return!this.removed&&(this.node.style.display="none"),this},l.show=function(){return!this.removed&&(this.node.style.display=d),this},l._getbbox=function(){return this.removed?{}:{x:this.x+(this.bbx||0)-this.w/2,y:this.y-this.h,width:this.w,height:this.h}},l.remove=function(){if(!this.removed&&this.node.parentnode){this.paper.__set__&&this.paper.__set__.exclude(this),t.eve.unbind("raphael.*.*."+this.id),t._tear(this,this.paper),this.node.parentnode.removechild(this.node),this.shape&&this.shape.parentnode.removechild(this.shape);for(var e in this)this[e]="function"==typeof this[e]?t._removedfactory(e):null;this.removed=!0}},l.attr=function(r,i){if(this.removed)return this;if(null==r){var n={};for(var a in this.attrs)this.attrs[e](a)&&(n[a]=this.attrs[a]);return n.gradient&&"none"==n.fill&&(n.fill=n.gradient)&&delete n.gradient,n.transform=this._.transform,n}if(null==i&&t.is(r,"string")){if(r==h&&"none"==this.attrs.fill&&this.attrs.gradient)return this.attrs.gradient;for(var s=r.split(u),o={},l=0,f=s.length;f>l;l++)r=s[l],o[r]=r in this.attrs?this.attrs[r]:t.is(this.paper.customattributes[r],"function")?this.paper.customattributes[r].def:t._availableattrs[r];return f-1?o:o[s[0]]}if(this.attrs&&null==i&&t.is(r,"array")){for(o={},l=0,f=r.length;f>l;l++)o[r[l]]=this.attr(r[l]);return o}var p;null!=i&&(p={},p[r]=i),null==i&&t.is(r,"object")&&(p=r);for(var d in p)c("raphael.attr."+d+"."+this.id,this,p[d]);if(p){for(d in this.paper.customattributes)if(this.paper.customattributes[e](d)&&p[e](d)&&t.is(this.paper.customattributes[d],"function")){var g=this.paper.customattributes[d].apply(this,[].concat(p[d]));this.attrs[d]=p[d];for(var v in g)g[e](v)&&(p[v]=g[v])}p.text&&"text"==this.type&&(this.textpath.string=p.text),a(this,p)}return this},l.tofront=function(){return!this.removed&&this.node.parentnode.appendchild(this.node),this.paper&&this.paper.top!=this&&t._tofront(this,this.paper),this},l.toback=function(){return this.removed?this:(this.node.parentnode.firstchild!=this.node&&(this.node.parentnode.insertbefore(this.node,this.node.parentnode.firstchild),t._toback(this,this.paper)),this)},l.insertafter=function(e){return this.removed?this:(e.constructor==t.st.constructor&&(e=e[e.length-1]),e.node.nextsibling?e.node.parentnode.insertbefore(this.node,e.node.nextsibling):e.node.parentnode.appendchild(this.node),t._insertafter(this,e,this.paper),this)},l.insertbefore=function(e){return this.removed?this:(e.constructor==t.st.constructor&&(e=e[0]),e.node.parentnode.insertbefore(this.node,e.node),t._insertbefore(this,e,this.paper),this)},l.blur=function(e){var r=this.node.runtimestyle,i=r.filter;i=i.replace(x,d),0!==+e?(this.attrs.blur=e,r.filter=i+p+f+".blur(pixelradius="+(+e||1.5)+")",r.margin=t.format("-{0}px 0 0 -{0}px",a(+e||1.5))):(r.filter=i,r.margin=0,delete this.attrs.blur)},t._engine.path=function(t,e){var r=m("shape");r.style.csstext=m,r.coordsize=b+p+b,r.coordorigin=e.coordorigin;var i=new n(r,e),n={fill:"none",stroke:"#000"};t&&(n.path=t),i.type="path",i.path=[],i.path=d,a(i,n),e.canvas.appendchild(r);var a=m("skew");return a.on=!0,r.appendchild(a),i.skew=a,i.transform(d),i},t._engine.rect=function(e,r,i,n,a,s){var o=t._rectpath(r,i,n,a,s),l=e.path(o),h=l.attrs;return l.x=h.x=r,l.y=h.y=i,l.w=h.width=n,l.h=h.height=a,h.r=s,h.path=o,l.type="rect",l},t._engine.ellipse=function(t,e,r,i,n){{var a=t.path();a.attrs}return a.x=e-i,a.y=r-n,a.w=2*i,a.h=2*n,a.type="ellipse",a(a,{cx:e,cy:r,rx:i,ry:n}),a},t._engine.circle=function(t,e,r,i){{var n=t.path();n.attrs}return n.x=e-i,n.y=r-i,n.w=n.h=2*i,n.type="circle",a(n,{cx:e,cy:r,r:i}),n},t._engine.image=function(e,r,i,n,a,s){var o=t._rectpath(i,n,a,s),l=e.path(o).attr({stroke:"none"}),u=l.attrs,c=l.node,f=c.getelementsbytagname(h)[0];return u.src=r,l.x=u.x=i,l.y=u.y=n,l.w=u.width=a,l.h=u.height=s,u.path=o,l.type="image",f.parentnode==c&&c.removechild(f),f.rotate=!0,f.src=r,f.type="tile",l._.fillpos=[i,n],l._.fillsize=[a,s],c.appendchild(f),b(l,1,1,0,0,0),l},t._engine.text=function(e,i,n,s){var o=m("shape"),l=m("path"),h=m("textpath");i=i||0,n=n||0,s=s||"",l.v=t.format("m{0},{1}l{2},{1}",a(i*b),a(n*b),a(i*b)+1),l.textpathok=!0,h.string=r(s),h.on=!0,o.style.csstext=m,o.coordsize=b+p+b,o.coordorigin="0 0";var u=new n(o,e),c={fill:"#000",stroke:"none",font:t._availableattrs.font,text:s};u.shape=o,u.path=l,u.textpath=h,u.type="text",u.attrs.text=r(s),u.attrs.x=i,u.attrs.y=n,u.attrs.w=1,u.attrs.h=1,a(u,c),o.appendchild(h),o.appendchild(l),e.canvas.appendchild(o);var f=m("skew");return f.on=!0,o.appendchild(f),u.skew=f,u.transform(d),u},t._engine.setsize=function(e,r){var i=this.canvas.style;return this.width=e,this.height=r,e==+e&&(e+="px"),r==+r&&(r+="px"),i.width=e,i.height=r,i.clip="rect(0 "+e+" "+r+" 0)",this._viewbox&&t._engine.setviewbox.apply(this,this._viewbox),this},t._engine.setviewbox=function(e,r,i,n,a){t.eve("raphael.setviewbox",this,this._viewbox,[e,r,i,n,a]);var o,l,h=this.width,u=this.height,c=1/s(i/h,n/u);return a&&(o=u/n,l=h/i,h>i*o&&(e-=(h-i*o)/2/o),u>n*l&&(r-=(u-n*l)/2/l)),this._viewbox=[e,r,i,n,!!a],this._viewboxshift={dx:-e,dy:-r,scale:c},this.foreach(function(t){t.transform("...")}),this};var m;t._engine.initwin=function(t){var e=t.document;e.createstylesheet().addrule(".rvml","behavior:url(#default#vml)");try{!e.namespaces.rvml&&e.namespaces.add("rvml","urn:schemas-microsoft-com:vml"),m=function(t){return e.createelement("')}}catch(r){m=function(t){return e.createelement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="rvml">')}}},t._engine.initwin(t._g.win),t._engine.create=function(){var e=t._getcontainer.apply(0,arguments),r=e.container,i=e.height,n=e.width,a=e.x,s=e.y;if(!r)throw new error("vml container not found.");var o=new t._paper,l=o.canvas=t._g.doc.createelement("div"),h=l.style;return a=a||0,s=s||0,n=n||512,i=i||342,o.width=n,o.height=i,n==+n&&(n+="px"),i==+i&&(i+="px"),o.coordsize=1e3*b+p+1e3*b,o.coordorigin="0 0",o.span=t._g.doc.createelement("span"),o.span.style.csstext="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;",l.appendchild(o.span),h.csstext=t.format("top:0;left:0;width:{0};height:{1};display:inline-block;position:relative;clip:rect(0 {0} {1} 0);overflow:hidden",n,i),1==r?(t._g.doc.body.appendchild(l),h.left=a+"px",h.top=s+"px",h.position="absolute"):r.firstchild?r.insertbefore(l,r.firstchild):r.appendchild(l),o.renderfix=function(){},o},t.prototype.clear=function(){t.eve("raphael.clear",this),this.canvas.innerhtml=d,this.span=t._g.doc.createelement("span"),this.span.style.csstext="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;display:inline;",this.canvas.appendchild(this.span),this.bottom=this.top=null},t.prototype.remove=function(){t.eve("raphael.remove",this),this.canvas.parentnode.removechild(this.canvas);for(var e in this)this[e]="function"==typeof this[e]?t._removedfactory(e):null;return!0};var z=t.st;for(var e in l)l[e](e)&&!z[e](e)&&(z[e]=function(t){return function(){var e=arguments;return this.foreach(function(r){r[t].apply(r,e)})}}(e))}(window.raphael); ;!function(e){var t=function(t,s,a){var r=this;r.el=t,r.slides=s,r.options=a,r.defs={degree:0,total:s.length,images:[],interval:null,timer:a.timer.tolowercase(),dir:a.direction.tolowercase(),pause:a.autoplay?!1:!0,slide:0,currentslide:null,width:t.width(),height:t.height(),space:a.slidesspace,topspace:a.slidestopspace,lock:!1,easing:"ease-in-out",time:a.pausetime},r.disableselection(t[0]),s.each(function(t){var i=e(this);i.attr({"data-outerwidth":i.outerwidth(),"data-outerheight":i.outerheight(),"data-width":i.width(),"data-height":i.height(),index:t}).css({visibility:"hidden"})});var o=e("img",t);o.each(function(){var t=e(this);r.defs.images.push(t.attr("src"))}),a.startslide=a.randomstart?math.floor(math.random()*r.defs.total):a.startslide,a.startslide=a.startslide<0||a.startslide>r.defs.total?0:a.startslide,r.defs.slide=a.startslide,r.defs.currentslide=s.eq(r.defs.slide),r.defs.time=r.defs.currentslide.data("pausetime")?r.defs.currentslide.data("pausetime"):a.pausetime,a.slides=a.slides>r.defs.total?r.defs.total:a.slides,a.slides=a.slides%2?a.slides:a.slides-1,t.append('
');var n=e("#icarousel-preloader",t),d=e("div",n);n.css({top:r.defs.height/2-n.height()/2+"px",left:r.defs.width/2-n.width()/2+"px"}),t.append('
'),r.icarouseltimer=e("#icarousel-timer",t),r.icarouseltimer.hide(),r.bartimer=e("div",r.icarouseltimer);var l=a.timerpadding,c=a.timerdiameter,u=a.timerstroke;if(r.defs.total>1&&"bar"!=r.defs.timer){u="360bar"==r.defs.timer?a.timerstroke:0;var f=c+2*l+2*u,p=f,m=raphael(r.icarouseltimer[0],f,p),h=c/2,b={stroke:a.timerbg,"stroke-width":u+2*l},g={stroke:a.timercolor,"stroke-width":u,"stroke-linecap":"round"},v={fill:a.timercolor,stroke:"none","stroke-width":0},s={fill:a.timerbg,stroke:"none","stroke-width":0};r.r=h,m.customattributes.arc=function(e,t){var i,s=360,a=360/s*e,r=(90-a)*math.pi/180,o=c/2+l+u,n=c/2+l+u,d=o+t*math.cos(r),f=n-t*math.sin(r);return i=s==e?[["m",o,n-t],["a",t,t,0,1,1,299.99,n-t]]:[["m",o,n-t],["a",t,t,0,+(a>180),1,d,f]],{path:i}},m.customattributes.segment=function(e,t){var i=-90;t-=1,e=i+e;var s=e-i>180,a=c/2+l,r=c/2+l;return i=i%360*math.pi/180,e=e%360*math.pi/180,{path:[["m",a,r],["l",t*math.cos(i),t*math.sin(i)],["a",t,t,0,+s,1,a+t*math.cos(e),r+t*math.sin(e)],["z"]]}},r.defs.total>1&&"pie"==r.defs.timer&&m.circle(h+l,h+l,h+l-1).attr(s),r.timerbgpath=m.path().attr(b),r.timerpath=m.path().attr(g),r.pietimer=m.path().attr(v)}r.defs.total>1&&"360bar"==r.defs.timer&&r.timerbgpath.attr({arc:[359.9,h]}),"bar"==r.defs.timer?(r.icarouseltimer.css({opacity:a.timeropacity,width:c,height:u,border:a.timerbarstroke+"px "+a.timerbarstrokecolor+" "+a.timerbarstrokestyle,padding:l,background:a.timerbg}),r.bartimer.css({width:0,height:u,background:a.timercolor,"float":"left"})):r.icarouseltimer.css({opacity:a.timeropacity,width:f,height:p});for(var w=a.timerposition.tolowercase().split("-"),k=0;k0?new i(r.defs.images,function(e){var t=10*e;d.stop().animate({width:t+"%"})},function(){d.stop().animate({width:"100%"},function(){n.remove(),r.init(),a.onafterload.call(this)})}):(n.remove(),r.init(),a.onafterload.call(this))};t.prototype={rightitems:new array,leftitems:new array,rightoutitem:null,leftoutitem:null,support:{transform3d:function(){for(var e=["perspectiveproperty","webkitperspective","mozperspective","operspective","msperspective"],t=0,i=!1,s=document.createelement("form");e[t];){if(e[t]in s.style){i=!0;break}t++}return i},transform2d:function(){for(var e=["transformproperty","webkittransform","moztransform","otransform","mstransform"],t=0,i=!1,s=document.createelement("form");e[t];){if(e[t]in s.style){i=!0;break}t++}return i},transition:function(){for(var e=["transitionproperty","webkittransition","moztransition","otransition","mstransition"],t=0,i=!1,s=document.createelement("form");e[t];){if(e[t]in s.style){i=!0;break}t++}return i},touch:function(){return!!("ontouchstart"in window)}},init:function(){var e=this;e.options.directionnav&&e.setbuttons(),e.layout(),e.events(),e.icarouseltimer.attr("title",e.options.playlabel).addclass("paused").show(),e.options.autoplay&&e.defs.total>1&&(e.settimer(),e.icarouseltimer.attr("title",e.options.pauselabel).removeclass("paused"))},goslide:function(t,i,s){var a=this;a.defs&&a.defs.slide==a.defs.total-1&&a.options.onlastslide.call(this),a.cleartimer(),a.options.onbeforechange.call(this),a.defs.slide=0>t||t>a.defs.total-1?0:t,a.defs.slide==a.defs.total-1&&a.options.onslideshowend.call(this),a.defs.currentslide=a.slides.eq(a.defs.slide),a.defs.easing=a.seteasing(a.defs.currentslide.data("easing")?e.trim(a.defs.currentslide.data("easing")):a.options.easing),a.defs.time=a.defs.currentslide.data("pausetime")?a.defs.currentslide.data("pausetime"):a.options.pausetime;var r=s?a.options.animationspeed/s:!1;return a.slides.removeclass("current"),a.defs.lock=!0,a.layout(!0,r),s?!1:(a.resettimer(),void settimeout(function(){a.animationend(a)},a.options.animationspeed))},gofar:function(e){var t=this,i=e==t.defs.total-1&&0==t.defs.slide?-1:e-t.defs.slide;t.defs.slide==t.defs.total-1&&0==e&&(i=1);for(var s=0>i?-i:i,a=0,r=0;s>r;r++){var o=1==s?0:a;settimeout(function(){0>i?t.goprev(s):t.gonext(s)},o),a+=t.options.animationspeed/s}settimeout(function(){t.animationend(t)},t.options.animationspeed),t.resettimer()},animationend:function(e){e.defs.lock=!1,e.defs.degree=0,null!=e.defs.interval||e.defs.pause||e.settimer(),e.options.onafterchange.call(this)},processtimer:function(){var e=this;if("360bar"==e.defs.timer){var t=0==e.defs.degree?0:e.defs.degree-.9;e.timerpath.attr({arc:[t,e.r]})}else if("pie"==e.defs.timer){var t=0==e.defs.degree?0:e.defs.degree-.9;e.pietimer.attr({segment:[t,e.r]})}else e.bartimer.css({width:e.defs.degree/360*100+"%"});e.defs.degree+=4},resettimer:function(){var e=this;e.defs.total>1&&("360bar"==e.defs.timer?e.timerpath.animate({arc:[0,e.r]},e.options.animationspeed):"pie"==e.defs.timer?e.pietimer.animate({segment:[0,e.r]},e.options.animationspeed):e.bartimer.animate({width:0},e.options.animationspeed))},timercall:function(e){e.processtimer(),e.defs.degree>360&&e.gonext()},settimer:function(){var e=this;e.defs.interval=setinterval(function(){e.timercall(e)},e.defs.time/90)},cleartimer:function(){var e=this;clearinterval(e.defs.interval),e.defs.interval=null,e.defs.degree=0},layout:function(e,t){var i=this;i.setitems();var s="auto"==i.defs.topspace?i.defs.height/2-i.defs.currentslide.data("outerheight")/2:0,a=i.defs.width/2-i.defs.currentslide.data("outerwidth")/2,r=(i.defs.width/4,999),o={},n=t?t/1e3:i.options.animationspeed/1e3;e&&i.support.transition()&&i.slides.css({"-webkit-transition":"all "+n+"s "+i.defs.easing,"-moz-transition":"all "+n+"s "+i.defs.easing,"-o-transition":"all "+n+"s "+i.defs.easing,"-ms-transition":"all "+n+"s "+i.defs.easing,transition:"all "+n+"s "+i.defs.easing}),i.slides.css({position:"absolute",opacity:0,visibility:"hidden",overflow:"hidden"}),i.support.transition()&&i.slides.css({top:s+"px"}),i.defs.currentslide.addclass("current").css({zindex:r,opacity:1,visibility:"visible"}),i.support.transition()?i.defs.currentslide.css({"-webkit-transform":"none","-moz-transform":"none","-o-transform":"none","-ms-transform":"none",transform:"none",left:"50%",top:"50%"}):e?i.defs.currentslide.stop().animate({left:a+"px",top:s+"px",width:"168px",margintop:"-18px",marginleft:"-14px",height:"168px"},i.options.animationspeed,i.defs.easing):i.defs.currentslide.css({left:a+"px",top:s+"px",margintop:"-18px",marginleft:"-14px",width:"168px",height:"168px"});for(var d=0;di.options.slides){var c=i.css(i.rightoutitem,i.leftitems.length-.5,i.leftitems.length-1,!0),u=i.css(i.leftoutitem,i.leftitems.length-.5,i.leftitems.length-1);i.support.transition()?(i.rightoutitem.css(c),i.leftoutitem.css(u)):e?(i.leftoutitem.css({opacity:1,visibility:"visible"}),i.rightoutitem.css(c),u.opacity=0,i.leftoutitem.stop().animate(u,i.options.animationspeed,i.defs.easing)):(i.rightoutitem.css(c),i.leftoutitem.css(u))}},setitems:function(){var e=this,t=math.floor(e.options.slides/2)+1;e.leftitems=new array,e.rightitems=new array;for(var i=1;t>i;i++){var s="ltr"==e.defs.dir?(e.defs.slide+i)%e.defs.total:(e.defs.slide-i)%e.defs.total;e.leftitems.push(e.slides.eq(s))}for(var i=1;t>i;i++){var s="ltr"==e.defs.dir?(e.defs.slide-i)%e.defs.total:(e.defs.slide+i)%e.defs.total;e.rightitems.push(e.slides.eq(s))}e.leftoutitem=e.slides.eq(e.defs.slide-t),e.rightoutitem=e.slides.eq(e.defs.total-e.defs.slide-t<=0?-parseint(e.defs.total-e.defs.slide-t):e.defs.slide+t);var a=e.leftoutitem,r=e.rightoutitem;"ltr"==e.defs.dir&&(e.leftoutitem=r,e.rightoutitem=a)},newdimenstions:function(e,t,i,s){factor=0==e?t/s:0==t?e/i:math.min(e/i,t/s);var a=math.round(i*factor),r=math.round(s*factor);return factor>1?{width:i,height:s,ratio:1}:{width:a,height:r,ratio:factor}},css:function(e,t,i,s){var a=this,r=parseint("auto"==a.defs.space?(t+1)*(e.data("width")/1.5):(t+1)*a.defs.space);if(a.support.transform3d()&&a.options.make3d)var o=s?"translatex("+r+"px) translatez(-"+(250+110*(t+1))+"px) rotatey(-"+a.options.perspective+"deg)":"translatex(-"+r+"px) translatez(-"+(250+110*(t+1))+"px) rotatey("+a.options.perspective+"deg)",n="0%",d="auto"==a.defs.topspace?"none":parseint((t+1)*a.defs.space),l="none",c="none",u="visible";else if(a.support.transition()&&a.support.transform2d())var o=s?"translatex("+r/1.5+"px) scale("+(1-t/10-.1)+")":"translatex(-"+r/1.5+"px) scale("+(1-t/10-.1)+")",n="0%",d="auto"==a.defs.topspace?"none":parseint((t+1)*a.defs.topspace),l="none",c="none",u="visible";else var f=(e.data("outerwidth")-e.data("width"),e.data("outerheight")-e.data("height")),p=a.newdimenstions(e.data("width")*(1-t/10-.1),e.data("height")*(1-t/10-.1),e.data("width"),e.data("height")),o="",n=s?r+"px":0-r+"px",l="132px",c="132px",m=a.defs.height/2-(p.height+f)/2,d="auto"==a.defs.topspace?m:parseint(m+t*a.defs.topspace),u="hidden";return css=a.support.transition()?{"-webkit-transform":o,"-moz-transform":o,"-o-transform":o,"-ms-transform":o,transform:o,left:n,top:d,width:l,height:c,zindex:i,overflow:u}:{left:n,top:0,width:l,height:c,margintop:0,marginleft:0,zindex:i}},seteasing:function(t){var i=this;switch(t=e.trim(t),ease=t){case"linear":ease="cubic-bezier(0.250, 0.250, 0.750, 0.750)";break;case"ease":ease="cubic-bezier(0.250, 0.100, 0.250, 1.000)";break;case"ease-in":ease="cubic-bezier(0.420, 0.000, 1.000, 1.000)";break;case"ease-out":ease="cubic-bezier(0.000, 0.000, 0.580, 1.000)";break;case"ease-in-out":ease="cubic-bezier(0.420, 0.000, 0.580, 1.000)";break;case"ease-out-in":ease="cubic-bezier(0.000, 0.420, 1.000, 0.580)";break;case"easeinquad":ease="cubic-bezier(0.550, 0.085, 0.680, 0.530)";break;case"easeincubic":ease="cubic-bezier(0.550, 0.055, 0.675, 0.190)";break;case"easeinquart":ease="cubic-bezier(0.895, 0.030, 0.685, 0.220)";break;case"easeinquint":ease="cubic-bezier(0.755, 0.050, 0.855, 0.060)";break;case"easeinsine":ease="cubic-bezier(0.470, 0.000, 0.745, 0.715)";break;case"easeinexpo":ease="cubic-bezier(0.950, 0.050, 0.795, 0.035)";break;case"easeincirc":ease="cubic-bezier(0.600, 0.040, 0.980, 0.335)";break;case"easeinback":ease="cubic-bezier(0.600, -0.280, 0.735, 0.045)";break;case"easeoutquad":ease="cubic-bezier(0.250, 0.460, 0.450, 0.940)";break;case"easeoutcubic":ease="cubic-bezier(0.215, 0.610, 0.355, 1.000)";break;case"easeoutquart":ease="cubic-bezier(0.165, 0.840, 0.440, 1.000)";break;case"easeoutquint":ease="cubic-bezier(0.230, 1.000, 0.320, 1.000)";break;case"easeoutsine":ease="cubic-bezier(0.390, 0.575, 0.565, 1.000)";break;case"easeoutexpo":ease="cubic-bezier(0.190, 1.000, 0.220, 1.000)";break;case"easeoutcirc":ease="cubic-bezier(0.075, 0.820, 0.165, 1.000)";break;case"easeoutback":ease="cubic-bezier(0.175, 0.885, 0.320, 1.275)";break;case"easeinoutquad":ease="cubic-bezier(0.455, 0.030, 0.515, 0.955)";break;case"easeinoutcubic":ease="cubic-bezier(0.645, 0.045, 0.355, 1.000)";break;case"easeinoutquart":ease="cubic-bezier(0.770, 0.000, 0.175, 1.000)";break;case"easeinoutquint":ease="cubic-bezier(0.860, 0.000, 0.070, 1.000)";break;case"easeinoutsine":ease="cubic-bezier(0.445, 0.050, 0.550, 0.950)";break;case"easeinoutexpo":ease="cubic-bezier(1.000, 0.000, 0.000, 1.000)";break;case"easeinoutcirc":ease="cubic-bezier(0.785, 0.135, 0.150, 0.860)";break;case"easeinoutback":ease="cubic-bezier(0.680, 0, 0.265, 1)"}return i.support.transition()?ease:(("ease"==t||"ease-in"==t||"ease-out"==t||"ease-in-out"==t||"ease-out-in"==t)&&(t=""),t)},gonext:function(e){var t=this;return e=e?e:!1,!e&&t.defs.lock?!1:void(t.defs.slide==t.defs.total?t.goslide(0,!1,e):t.goslide(t.defs.slide+1,!1,e))},goprev:function(e){var t=this;return e=e?e:!1,!e&&t.defs.lock?!1:void(0==t.defs.slide?t.goslide(t.defs.total-1,!1,e):t.goslide(t.defs.slide-1,!1,e))},events:function(){var t=this;t.options.keyboardnav&&e(document).bind("keyup.icarousel",function(e){switch(e.keycode){case 33:case 37:case 38:t.goprev();break;case 34:case 39:case 40:t.gonext()}}),e("a#icarouselprev",t.el).click(function(){t.goprev()}),e("a#icarouselnext",t.el).click(function(){t.gonext()}),t.icarouseltimer.click(function(){t.icarouseltimer.hasclass("paused")?(t.icarouseltimer.removeclass("paused").attr("title",t.options.pauselabel),t.defs.pause=!1,null==t.defs.interval&&(t.settimer(),t.options.onplay.call(this))):(t.icarouseltimer.addclass("paused").attr("title",t.options.playlabel),t.defs.pause=!0,clearinterval(t.defs.interval),t.defs.interval=null,t.options.onpause.call(this))}),t.options.pauseonhover&&t.el.hover(function(){t.defs.pause||(clearinterval(t.defs.interval),t.defs.interval=null)},function(){!t.defs.lock&&!t.defs.pause&&null==t.defs.interval&&t.defs.degree<=359&&t.settimer()}),t.options.touchnav&&t.support.touch()&&t.el.bind({swipeleft:function(){"ltr"==t.defs.dir?t.goprev():t.gonext()},swiperight:function(){"ltr"==t.defs.dir?t.gonext():t.goprev()}}),t.el.bind("icarousel:pause",function(){t.icarouseltimer.addclass("paused").attr("title",t.options.playlabel),t.defs.pause=!0,clearinterval(t.defs.interval),t.defs.interval=null,t.options.onpause.call(this)}),t.el.bind("icarousel:play",function(){t.icarouseltimer.removeclass("paused").attr("title",t.options.pauselabel),t.defs.pause=!1,null==t.defs.interval&&(t.settimer(),t.options.onplay.call(this))}),t.el.bind("icarousel:goslide",function(e,i){t.defs.slide!=i&&t.gofar(i)}),t.el.bind("icarousel:next",function(){t.gonext()}),t.el.bind("icarousel:previous",function(){t.goprev()}),t.el.mousewheel&&t.options.mousewheel&&t.el.mousewheel(function(e,i){e.preventdefault(),0>i?t.gonext():t.goprev()}),t.slides.click(function(){var i=e(this),s=i.attr("index");t.defs.slide!=s&&t.gofar(s)})},setbuttons:function(){this.el.append(''+this.options.previouslabel+''+this.options.nextlabel+"")},disableselection:function(e){"undefined"!=typeof e.onselectstart?e.onselectstart=function(){return!1}:"undefined"!=typeof e.style.mozuserselect?e.style.mozuserselect="none":"undefined"!=typeof e.style.webkituserselect?e.style.webkituserselect="none":"undefined"!=typeof e.style.userselect?e.style.userselect="none":e.onmousedown=function(){return!1},e.unselectable="on"}};var i=function(e,t,i){this.m_pfnpercent=t,this.m_pfnfinished=i,this.m_nloaded=0,this.m_nprocessed=0,this.m_aimages=new array,this.m_nicount=e.length;for(var s=0;se.event.special.swipe.scrollsupressionthreshold&&t.preventdefault()}}var a,n=t.originalevent.touches?t.originalevent.touches[0]:t,d={time:(new date).gettime(),coords:[n.pagex,n.pagey],origin:e(t.target)};i.bind(o,s).one(r,function(){i.unbind(o,s),d&&a&&a.time-d.timee.event.special.swipe.horizontaldistancethreshold&&math.abs(d.coords[1]-a.coords[1])a.coords[0]?"swipeleft":"swiperight"),d=a=void 0})})}},e.each({swipeleft:"swipe",swiperight:"swipe"},function(t,i){e.event.special[t]={setup:function(){e(this).bind(i,e.noop)}}})}(jquery); ;$(document).ready(function(){function e(){slider3.stopauto(),l=parseint($("#icarousel .slide").length),l2=l-1,$("#icarousel .slide").click(function(){$("#icarousel .slide").each(function(){$(this).addclass("disabled"),$(this).attr("click-data","1")}),c=parseint($("#icarousel .current").attr("slide-index")),t=parseint($(this).attr("slide-index")),c==l2&&0==t?r():t==l2&&0==c?d():s(t)})}function i(){l=parseint($("#icarousel .slide").length),l2=l-1,c=$("#icarousel .current").attr("click-data"),console.log(c),1==c||(w=parseint($("#icarousel .current").attr("slide-index")),w==l2?r():s(w+1))}function n(){settimeout(function(){$("#icarousel .slide").each(function(){$(this).removeclass("disabled"),$(this).removeattr("click-data")}),$("#icarouselnext").removeclass("disabled"),$("#icarouselnext").removeattr("click-data"),$("#icarouselprev").removeclass("disabled")},150)}function o(){return window.innerwidth<480?($("#icarousel").icarousel({slides:3,animationspeed:1e3,pausetime:1e4,perspective:0,slidesspace:80,timeropacity:0,pauseonhover:!0,direction:"rtl",keyboardnav:!1,mousewheel:!1,onafterload:function(){e()},onbeforechange:function(){i()},onafterchange:function(){n()}}),!1):window.innerwidth<768?($("#icarousel").icarousel({slides:5,animationspeed:1e3,pausetime:1e4,perspective:0,slidesspace:100,timeropacity:0,pauseonhover:!0,direction:"rtl",keyboardnav:!1,mousewheel:!1,onafterload:function(){e()},onbeforechange:function(){i()},onafterchange:function(){n()}}),!1):window.innerwidth<992?($("#icarousel").icarousel({slides:7,animationspeed:1e3,pausetime:1e4,perspective:0,slidesspace:80,timeropacity:0,pauseonhover:!0,direction:"rtl",keyboardnav:!1,mousewheel:!1,onafterload:function(){e()},onbeforechange:function(){i()},onafterchange:function(){n()}}),!1):($("#icarousel").icarousel({slides:7,animationspeed:1e3,pausetime:1e4,perspective:0,slidesspace:100,pauseonhover:!0,direction:"rtl",timeropacity:0,keyboardnav:!1,mousewheel:!1,onafterload:function(){e()},onbeforechange:function(){i()},onafterchange:function(){n()}}),!1)}function a(){$("#icarousel").html("")}function s(e){slider3.gotoslide(e)}function r(){slider3.gotonextslide()}function d(){slider3.gotoprevslide()}var u=$("#icarousel").html();o(),slider3=$(".desc-slider").bxslider({controls:!1,speed:1e3,infiniteloop:!0,pager:!1,touchenabled:!1}),l=parseint($("#icarousel .slide").length),l2=l-1,$(document).on("mousedown","#icarouselprev",function(){$("#icarousel .slide").each(function(){$(this).attr("click-data","1")})}),$(document).on("click","#icarouselprev",function(){$("#icarousel .slide").each(function(){$(this).addclass("disabled")}),$("#icarouselprev").addclass("disabled"),c2=parseint($("#icarousel .current").attr("slide-index")),c2==l2?d():s(c2)}),$(document).on("mousedown","#icarouselnext",function(){$("#icarousel .slide").each(function(){$(this).attr("click-data","1")})}),$(document).on("click","#icarouselnext",function(){$("#icarousel .slide").each(function(){$(this).addclass("disabled")}),$("#icarouselnext").addclass("disabled"),c2=parseint($("#icarousel .current").attr("slide-index")),0==c2?r():s(c2)}),$(window).resize(function(){$("#icarousel").trigger("icarousel:pause"),a(),$("#icarousel").html(u),o(),slider3.reloadslider()})});