=x&&b.call(e,x,D,A,f,c),m==k-1&&(x=a.transform(za,1),0<=x&&1>=x&&b.call(e,x,D,A,f,c))),(y=q(p)?p[m]:p)&&0<=t&&1>=t&&cD(this,d,t,m,c,!0,h);this.labels().X()}this.title().aa(!1);
this.labels().aa(!1);this.Qa().aa(!1);this.ka().aa(!1);this.Ha().aa(!1);return this};g.remove=function(){this.Ia&&this.Ia.remove();this.b&&this.b.parent(null);this.ka().remove();this.Ha().remove();this.Aa&&this.Aa.remove();this.pf&&this.pf.remove()};
g.J=function(){var a=Xv.F.J.call(this);a.title=this.title().J();a.labels=this.labels().J();a.minorLabels=this.Qa().J();a.ticks=this.ka().J();a.minorTicks=this.Ha().J();a.stroke=Or(this.stroke());a.staggerMode=this.Ij();a.staggerLines=this.$t();a.staggerMaxLines=this.au();a.width=this.width();this.w&&(a.orientation=this.w);a.drawFirstLabel=this.of();a.drawLastLabel=this.qe();a.overlapMode=this.pn();return a};
g.ba=function(a){Xv.F.ba.call(this,a);this.title(a.title);this.labels().Y(a.labels);this.Qa().Y(a.minorLabels);this.ka(a.ticks);this.Ha(a.minorTicks);this.Ij(a.staggerMode);this.$t(a.staggerLines);this.au(a.staggerMaxLines);this.stroke(a.stroke);this.width(a.width);this.orientation(a.orientation);this.of(a.drawFirstLabel);this.qe(a.drawLastLabel);this.pn(a.overlapMode)};
g.ca=function(){Xv.F.ca.call(this);this.Vf&&hu(this.Vf,this.Gq,this);delete this.Vf;this.ta=this.Ia=this.nn=this.mn=null;be(this.b);this.pf=this.Aa=this.lh=this.og=this.Kg=this.b=null};Xv.prototype.staggerMode=Xv.prototype.Ij;Xv.prototype.staggerLines=Xv.prototype.$t;Xv.prototype.staggerMaxLines=Xv.prototype.au;Xv.prototype.title=Xv.prototype.title;Xv.prototype.labels=Xv.prototype.labels;Xv.prototype.minorLabels=Xv.prototype.Qa;Xv.prototype.ticks=Xv.prototype.ka;Xv.prototype.minorTicks=Xv.prototype.Ha;
Xv.prototype.stroke=Xv.prototype.stroke;Xv.prototype.orientation=Xv.prototype.orientation;Xv.prototype.scale=Xv.prototype.scale;Xv.prototype.width=Xv.prototype.width;Xv.prototype.getRemainingBounds=Xv.prototype.Bb;Xv.prototype.drawFirstLabel=Xv.prototype.of;Xv.prototype.drawLastLabel=Xv.prototype.qe;Xv.prototype.overlapMode=Xv.prototype.pn;Xv.prototype.isHorizontal=Xv.prototype.re;function dD(){Xv.call(this)}F(dD,Xv);dD.prototype.X=function(){Bz(this.labels());Bz(this.Qa());return dD.F.X.call(this)};E("anychart.axes.linear",function(){var a=new dD;a.Y(rt().standalones.linearAxis);return a});dD.prototype.padding=dD.prototype.padding;dD.prototype.draw=dD.prototype.X;dD.prototype.parentBounds=dD.prototype.ea;dD.prototype.container=dD.prototype.I;function jw(){L(this);Z.call(this);this.sn=[];this.tn=[];this.qf=ni();Mv(this,this.qf);N(this,this.qf);this.b=J|900;this.aa(!1)}F(jw,Z);g=jw.prototype;g.la=Z.prototype.la|J|896;g.ma=Z.prototype.ma;g.qf=null;g.Aa=null;g.rg=null;g.Mh=null;g.Lh=null;g.rl=null;g.ql="noOverlap";g.Kb=NaN;g.Jq=!0;g.Kq=!0;g.sn=null;g.tn=null;g.labels=function(a){this.Aa||(this.Aa=new tu,this.Aa.hb(this),U(this.Aa,this.HB,this),N(this,this.Aa));return l(a)?(!C(a)||"enabled"in a||(a.enabled=!0),this.Aa.Y(a),this):this.Aa};
g.HB=function(a){var b=0,c=0;Y(a,8)?(b=this.b,c=8|K):Y(a,K)&&(b=128,c=K);eD(this);H(this,b,c)};g.Qa=function(a){this.rg||(this.rg=new tu,this.rg.hb(this),U(this.rg,this.IB,this),N(this,this.rg));return l(a)?(!C(a)||"enabled"in a||(a.enabled=!0),this.rg.Y(a),this):this.rg};g.IB=function(a){var b=0,c=0;Y(a,8)?(b=this.b,c=8|K):Y(a,K)&&(b=128,c=K);eD(this);H(this,b,c)};g.ka=function(a){this.Mh||(this.Mh=new Ov,this.Mh.hb(this),U(this.Mh,this.KB,this),N(this,this.Mh));return l(a)?(this.Mh.Y(a),this):this.Mh};
g.KB=function(a){var b=0,c=0;Y(a,8)?(b=this.b,c=8|K):Y(a,K)&&(b=J|260,c=K);eD(this);H(this,b,c)};g.Ha=function(a){this.Lh||(this.Lh=new Ov,this.Lh.hb(this),U(this.Lh,this.FF,this),N(this,this.Lh));return l(a)?(this.Lh.Y(a),this):this.Lh};g.FF=function(a){var b=0,c=0;Y(a,8)?(b=this.b,c=8|K):Y(a,K)&&(b=256,c=K);eD(this);H(this,b,c)};
g.stroke=function(a,b,c,d,e){if(l(a)){a=lc.apply(null,arguments);if(this.g!=a){var f=C(this.g)?this.g.thickness||1:1,h=C(a)?a.thickness||1:1;this.g=a;h==f?H(this,J,K):(eD(this),H(this,this.b,K|8))}return this}return this.g};g.scale=function(a){return l(a)?(this.rl!=a&&(this.rl=a,U(this.rl,this.JB,this),eD(this),H(this,this.b,K|8)),this):this.rl};g.JB=function(a){Y(a,2)&&(eD(this),H(this,this.b,K|8))};g.di=function(){H(this,this.b,K|8)};
g.Xj=function(a){return l(a)?(a=vh(null===a||isNaN(+a)?0:+a),this.ke!=a&&(this.ke=a,eD(this),H(this,this.b,K|8)),this):this.ke};function eD(a){a.G&&(a.G.length=0);a.sn.length=0;a.tn.length=0;a.D=null}
function fD(a){a:{if(!a.D||X(a,512)){if("allowOverlap"==a.ql){a=!1;break a}var b=a.scale(),c=[],d=[];if(b){var e,f,h=-1,k=-1,m=-1,n=b.ka().get(),p=n.length,r,t,w,x,y,z=-1,D=a.labels().enabled();if(b instanceof Tz){var A=b.Ha().get();f=e=0;for(var I=A.length,M,W=a.Qa().enabled();e=w&&a.Wj()||
1<=w&&a.Kh()?k=z:0w&&(k=z)),z++;t<=M&&e=w&&a.Wj()||1<=w&&a.Kh()?(m=f,d.push(!0)):0w?(m=f,d.push(!0)):d.push(!1))):d.push(!1),f++)}W||(d=!1)}else if(b instanceof
Bd)for(e=0;ec?(p-=k/2,r-=n/2):90==c?r-=n/2:90c?(r-=n/2,p+=k/2):180==c?p+=k/2:180c?(r+=n/2,p+=k/2):270==c?r+=n/2:270c?p-=k/2:45==c?(p-=k/2,r-=n/2):45c?r-=n/2:90==c?r-=n/2:90c?r-=n/2:135==c?(r-=n/2,p+=k/2):135c?p+=k/2:180==c?p+=k/2:180c?p+=k/2:225==c?(r+=n/2,p+=k/2):225c?r+=n/2:270==c?r+=n/2:270c?r+=n/2:315==
c?(r+=n/2,p-=k/2):315=b){var c=this.ea(),c=c.clone().round(),d=this.anchor();a.Va(1,0,0,1,0,0);a.width(null);a.height(null);var e=!fa(this.width()),f=!fa(this.height()),h=a.za(),k=e?Math.ceil(T(this.width(),c.width)):h.width;e&&a.width(k);
h=a.za();c=f?Math.ceil(T(this.height(),c.height)):h.height;f&&a.height(c);var m=this.ea(),m=m.clone().round();if(this.vn())switch(e=Math.round(m.Ta()+m.height-b*m.height),1==b?e-=-.5:e+=-.5,this.wb){case "left":f=m.Ka();break;case "right":f=m.Ja();break;default:f=m.Ka()+m.width/2}else switch(f=Math.round(m.Ka()+b*m.width),1==b?f+=-.5:f-=-.5,this.wb){case "top":e=m.Ta();break;case "bottom":e=m.ya();break;default:e=m.Ta()+m.height/2}b=new si(f,e);f=G(this.D);f=isNaN(f)?this.vn()?0:-90:f;e=Vh(Ha(f),
0,0);h=gn(h,e);e=Bs(ii(0,0,h.width,h.height),d);b.x-=e.x;b.y-=e.y;e=T(this.offsetX(),k);m=T(this.offsetY(),c);Gs(b,d,e,m);this.Hb(a,!0);a.x(b.x+h.width/2-k/2).y(b.y+h.height/2-c/2).Wk(f,"center");H(this,2)}else this.remove(),V(this,2);V(this,4)}X(this,2)&&(a=this.I(),mD(this).parent(a),V(this,2));return this};g.remove=function(){mD(this).parent(null)};function mD(a){a.B||(a.B=up(),a.B.Kc("aria-hidden","true"),N(a,a.B));return a.B}g.ca=function(){be(this.B);this.w=this.o=this.B=null;jD.F.ca.call(this)};
g.J=function(){var a=jD.F.J.call(this);a.anchor=this.anchor();a.align=this.un();this.K&&(a.layout=this.K);a.rotation=this.rotation();a.offsetX=this.offsetX();a.offsetY=this.offsetY();a.text=this.text();a.height=this.height();a.width=this.width();return a};
g.ba=function(a){jD.F.ba.call(this,a);this.anchor(a.anchor);this.un(a.align);"layout"in a&&a.layout&&this.ul(a.layout);this.rotation(a.rotation);this.offsetX(a.offsetX);this.offsetY(a.offsetY);this.text(a.text);this.height(a.height);this.width(a.width);"axis"in a&&(a=a.axis,v(a)?this.o&&this.Mq(this.o.Lo(a)):a instanceof Xv&&this.Mq(a))};function nD(a){jD.call(this);kD(this,a);this.O=0}F(nD,jD);g=nD.prototype;g.ma=jD.prototype.ma;g.la=jD.prototype.la;g.scale=function(a){return l(a)?(wd(500),this):kD(this)};g.ul=function(a){return l(a)?("horizontal"==a&&wd(501),this):"vertical"};g.value=function(a){return lD(this,a)};g.J=function(){var a=nD.F.J.call(this);a.value=this.value();return a};g.ba=function(a){nD.F.ba.call(this,a);this.value(a.value)};nD.prototype.value=nD.prototype.value;nD.prototype.scale=nD.prototype.scale;
nD.prototype.anchor=nD.prototype.anchor;nD.prototype.align=nD.prototype.un;nD.prototype.layout=nD.prototype.ul;nD.prototype.rotation=nD.prototype.rotation;nD.prototype.offsetX=nD.prototype.offsetX;nD.prototype.offsetY=nD.prototype.offsetY;nD.prototype.text=nD.prototype.text;nD.prototype.height=nD.prototype.height;nD.prototype.width=nD.prototype.width;nD.prototype.isHorizontal=nD.prototype.vn;function oD(){jD.call(this)}F(oD,jD);g=oD.prototype;g.ma=jD.prototype.ma;g.la=jD.prototype.la;g.scale=function(a){return kD(this,a)};g.value=function(a){return lD(this,a)};g.J=function(){var a=oD.F.J.call(this);a.value=this.value();return a};g.ba=function(a){oD.F.ba.call(this,a);this.value(a.value)};oD.prototype.value=oD.prototype.value;oD.prototype.scale=oD.prototype.scale;oD.prototype.axis=oD.prototype.Mq;oD.prototype.anchor=oD.prototype.anchor;oD.prototype.align=oD.prototype.un;
oD.prototype.layout=oD.prototype.ul;oD.prototype.rotation=oD.prototype.rotation;oD.prototype.offsetX=oD.prototype.offsetX;oD.prototype.offsetY=oD.prototype.offsetY;oD.prototype.text=oD.prototype.text;oD.prototype.height=oD.prototype.height;oD.prototype.width=oD.prototype.width;oD.prototype.isHorizontal=oD.prototype.vn;function pD(){jD.call(this)}F(pD,oD);E("anychart.axisMarkers.text",function(){var a=new pD;a.Y(rt().standalones.textAxisMarker);return a});pD.prototype.draw=pD.prototype.X;pD.prototype.parentBounds=pD.prototype.ea;pD.prototype.container=pD.prototype.I;function qD(a,b){gC.call(this,a,b);this.ef=this.P=this.W=this.ia=this.ga=this.jc=this.O=this.ng=this.Xd=this.ud=null;this.zj=void 0;this.ra=null;this.aq=this.bq=.01;this.lj=this.bf=!1;this.ff=this.gg=this.fg=this.gf=this.eg=this.hf=null;this.Yp=this.$p=this.Uc=!1;this.Na=this.Qc=null;this.sm=[];this.rm=0;this.Zi=[];this.hj=[];this.Le=[];this.j=new tB;U(this.j,this.aD,this);N(this,this.j);this.Ib=new bC;L(this.Ib);this.Ib.scale(this.j);this.Ib.zIndex(rD);this.Ib.aa(!1);N(this,this.Ib);var c=this.g;
l(this)&&c.P!=this&&(c.P=this,H(c,256,2))}F(qD,gC);qD.prototype.la=gC.prototype.la|512;var rD=80;g=qD.prototype;g.aD=function(a){Y(a,4)&&H(this,512,K)};g.Jw=function(a,b,c,d,e){if(l(a)){var f=lc.apply(null,arguments);this.df!=f&&(this.df=f,H(this,J,K));return this}return this.df||"none"};g.Px=function(a,b,c,d,e,f,h){if(l(a)){var k=mc.apply(null,arguments);this.Np!=k&&(this.Np=k,H(this,J,K));return this}return this.Np||"none"};
g.Qx=function(a,b,c,d,e){if(l(a)){var f=lc.apply(null,arguments);this.Op!=f&&(this.Op=f,H(this,J,K));return this}return this.Op||"none"};g.Rx=function(a,b,c,d,e,f,h){if(l(a)){var k=mc.apply(null,arguments);this.Pp!=k&&(this.Pp=k,H(this,J,K));return this}return this.Pp||"none"};g.Sx=function(a,b,c,d,e){if(l(a)){var f=lc.apply(null,arguments);this.Rm!=f&&(this.Rm=f,H(this,J,K));return this}return this.Rm||"none"};
g.Nx=function(a,b,c,d,e,f,h){if(l(a)){var k=mc.apply(null,arguments);this.Ah!=k&&(this.Ah=k,H(this,J,K));return this}return this.Ah||"none"};g.Ox=function(a,b,c,d,e){if(l(a)){var f=lc.apply(null,arguments);this.Bh!=f&&(this.Bh=f,H(this,J,K));return this}return this.Bh||"none"};g.Lx=function(a,b,c,d,e,f,h){if(l(a)){var k=mc.apply(null,arguments);this.yh!=k&&(this.yh=k,H(this,J,K));return this}return this.yh||"none"};
g.Mx=function(a,b,c,d,e){if(l(a)){var f=lc.apply(null,arguments);this.zh!=f&&(this.zh=f,H(this,J,K));return this}return this.zh||"none"};g.ow=function(a,b,c,d,e,f,h){if(l(a)){var k=mc.apply(null,arguments);this.tp!=k&&(this.tp=k,H(this,128,K));return this}return this.tp||"none"};g.rw=function(a,b,c,d,e){if(l(a)){var f=lc.apply(null,arguments);this.Hp!=f&&(this.Hp=f,H(this,128,K));return this}return this.Hp||"none"};
g.tw=function(a,b,c,d,e,f,h){if(l(a)){var k=mc.apply(null,arguments);this.Kp!=k&&(this.Kp=k,H(this,128,K));return this}return this.Kp||"none"};g.uw=function(a,b,c,d,e){if(l(a)){var f=lc.apply(null,arguments);this.Lp!=f&&(this.Lp=f,H(this,128,K));return this}return this.Lp||"none"};g.Iy=function(a,b,c,d,e,f,h){if(l(a)){var k=mc.apply(null,arguments);this.Zm!=k&&(this.Zm=k,H(this,128,K));return this}return this.Zm||"none"};
g.Jy=function(a,b,c,d,e){if(l(a)){var f=lc.apply(null,arguments);this.$m!=f&&(this.$m=f,H(this,128,K));return this}return this.$m||"none"};g.xy=function(a,b,c,d,e,f,h){if(l(a)){var k=mc.apply(null,arguments);this.$i!=k&&(this.$i=k,H(this,128,K));return this}return this.$i||"none"};g.yy=function(a,b,c,d,e){if(l(a)){var f=lc.apply(null,arguments);this.dj!=f&&(this.dj=f,H(this,128,K));return this}return this.dj||"none"};
g.Dy=function(a,b,c,d,e,f,h){if(l(a)){var k=mc.apply(null,arguments);this.Xm!=k&&(this.Xm=k,H(this,128,K));return this}return this.Xm||"none"};g.Ey=function(a,b,c,d,e){if(l(a)){var f=lc.apply(null,arguments);this.Ym!=f&&(this.Ym=f,H(this,128,K));return this}return this.Ym||"none"};g.Iw=function(a,b,c,d,e,f,h){if(l(a)){var k=mc.apply(null,arguments);this.Mp!=k&&(this.Mp=k,H(this,128,K));return this}return this.Mp||"none"};
g.Be=function(a,b,c,d,e){if(l(a)){var f=lc.apply(null,arguments);this.Vd!=f&&(this.Vd=f,H(this,64,K));return this}return this.Vd||"none"};g.dz=function(a,b,c,d,e,f,h){if(l(a)){var k=mc.apply(null,arguments);this.we!=k&&(this.we=k,H(this,128,K));return this}return this.we||"none"};g.ez=function(a,b,c,d,e){if(l(a)){var f=lc.apply(null,arguments);this.xe!=f&&(this.xe=f,H(this,128,K));return this}return this.xe||"none"};
g.GG=function(a,b,c,d,e){if(l(a)){var f=lc.apply(null,arguments);this.wj!=f&&(this.wj=f,H(this,128,K));return this}return this.wj||"none"};g.bw=function(a){if(l(a)){var b=lc.apply(null,arguments),c=Is(this.af),d=Is(b);if(this.af!=b||d!=c)this.af=b,H(this,J,K);return this}return this.af};g.hx=function(a){return l(a)?(this.Xz=a,this):this.Xz||{}};g.jx=function(a){return l(a)?(this.Yz=a,this):this.Yz||{}};g.lx=function(a){return l(a)?(this.Zz=a,this):this.Zz||{}};
g.vy=function(a,b){var c,d;c=G(a);isNaN(c)?(c=0,d=a):(c=a,d=b);var e=this.Zi[c];e||(e=new Yv(this.j),e.Y(this.hx()),this.Zi[c]=e,N(this,e),U(e,this.ut,this),H(this,512,K));return l(d)?(e.Y(d),this):e};g.Py=function(a,b){var c,d;c=G(a);isNaN(c)?(c=0,d=a):(c=a,d=b);var e=this.hj[c];e||(e=new Zv(this.j),e.Y(this.jx()),this.hj[c]=e,N(this,e),U(e,this.ut,this),H(this,512,K));return l(d)?(e.Y(d),this):e};
g.Gz=function(a,b){var c,d;c=G(a);isNaN(c)?(c=0,d=a):(c=a,d=b);var e=this.Le[c];e||(e=new nD(this.j),e.Y(this.lx()),this.Le[c]=e,N(this,e),U(e,this.ut,this),H(this,512,K));return l(d)?(e.Y(d),this):e};g.ut=function(){H(this,512,K)};g.zr=function(a){return l(a)&&(a=+a||0,this.bq!=a)?(this.bq=a,H(this,512,K),this):this.bq};g.yr=function(a){return l(a)&&(a=+a||0,this.aq!=a)?(this.aq=a,H(this,512,K),this):this.aq};
g.labels=function(a){this.ud||(this.ud=new tu,this.ud.hb(this));if(l(a)){var b=!0;a instanceof tu?this.ud.Y(a.J()):C(a)?this.ud.Y(a):Hs(a)?this.ud.enabled(!1):b=!1;b&&H(this,64,K);return this}return this.ud};g.uc=function(a){this.Xd||(this.Xd=new Xw,this.Xd.hb(this));if(l(a)){var b=!0;a instanceof Xw?this.Xd.Y(a.J()):C(a)?this.Xd.Y(a):Hs(a)?this.Xd.enabled(!1):b=!1;b&&H(this,64,K);return this}return this.Xd};g.sw=function(a){return l(a)&&this.bf!=a?(this.bf=a,H(this,64,K),this):this.bf};
function sD(a){a.ng||(a.ng=mC(a).xa(),a.ng.zIndex(6),a.ng.stroke(a.af),N(a,a.ng));return a.ng}function tD(a){a.O||(a.O=new uD(pC(a)),a.O.zIndex(0).hc("ew-resize"),a.N.pa(a.O,"mousedown",function(a){a.stopPropagation()}),a.O.$b("mousedown",a.wE,!1,a),N(a,a.O));return a.O}function vD(a){a.jc||(a.jc=new uD(pC(a)),a.jc.zIndex(10),a.N.pa(a.jc,"mousedown",function(a){a.stopPropagation()}),a.jc.$b("mousedown",a.BE,!1,a),N(a,a.jc));return a.jc}
function wD(a){a.ga||(a.ga=new uD(pC(a)),a.ga.zIndex(20).hc("col-resize"),a.ga.b=tD(a),a.N.pa(a.ga,"mousedown",function(a){a.stopPropagation()}),a.ga.$b("mousedown",a.uE,!1,a),N(a,a.ga));return a.ga}function xD(a){a.ia||(a.ia=new uD(pC(a)),a.ia.zIndex(30).hc("col-resize"),a.ia.b=tD(a),a.N.pa(a.ia,"mousedown",function(a){a.stopPropagation()}),a.ia.$b("mousedown",a.EE,!1,a),N(a,a.ia));return a.ia}
function yD(a){a.W||(a.W=new uD(pC(a)),a.W.zIndex(40).hc("move"),a.N.pa(a.W,"mousedown",function(a){a.stopPropagation()}),a.W.$b("mousedown",a.GE,!1,a),N(a,a.W));return a.W}function zD(a){a.P||(a.P=new uD(pC(a)),a.P.zIndex(50).hc("move"),a.N.pa(a.P,"mousedown",function(a){a.stopPropagation()}),a.P.$b("mousedown",a.tE,!1,a),N(a,a.P));return a.P}function AD(a){a.ef||(a.ef=pC(a).xa(),a.ef.stroke(a.df).zIndex(60),N(a,a.ef));return a.ef}
function BD(a){tD(a).clear().Va(1,0,0,1,0,0);vD(a).clear().Va(1,0,0,1,0,0);xD(a).clear().Va(1,0,0,1,0,0);wD(a).clear().Va(1,0,0,1,0,0);zD(a).clear().Va(1,0,0,1,0,0);yD(a).clear().Va(1,0,0,1,0,0);AD(a).clear();a.qb().enabled(!0)}g.wE=function(a){this.hf=new CD(tD(this));N(this,this.hf);this.hf.pa("start",this.xE,!1,this);this.hf.pa("drag",this.yE,!1,this);this.hf.pa("end",this.zE,!1,this);this.hf.Ag(a.jf)};
g.BE=function(a){this.eg=new DD(vD(this));N(this,this.eg);this.eg.pa("start",this.CE,!1,this);this.eg.pa("drag",this.DE,!1,this);this.eg.pa("end",this.AE,!1,this);this.eg.Ag(a.jf)};g.uE=function(a){this.gf=new ED(wD(this),!0);N(this,this.gf);this.gf.pa("start",this.vE,!1,this);this.gf.pa("drag",this.Ux,!1,this);this.gf.pa("end",this.Tx,!1,this);this.gf.Ag(a.jf)};
g.EE=function(a){this.fg=new ED(xD(this),!1);N(this,this.fg);this.fg.pa("start",this.FE,!1,this);this.fg.pa("drag",this.Ux,!1,this);this.fg.pa("end",this.Tx,!1,this);this.fg.Ag(a.jf)};g.GE=function(a){this.gg=new FD(0,yD(this),!0);N(this,this.gg);this.gg.pa("start",this.Jx,!1,this);this.gg.pa("drag",this.Kx,!1,this);this.gg.pa("end",this.Ix,!1,this);this.gg.Ag(a.jf)};
g.tE=function(a){this.ff=new FD(0,zD(this),!1);N(this,this.ff);this.ff.pa("start",this.Jx,!1,this);this.ff.pa("drag",this.Kx,!1,this);this.ff.pa("end",this.Ix,!1,this);this.ff.Ag(a.jf)};g.xE=function(){this.B&&(this.B.g=!1);this.qb().Mb().enabled(!1);kC(this.o);vD(this).clear();wD(this).clear();xD(this).clear();yD(this).clear();zD(this).clear();pi(aa.document.body,"cursor","ew-resize")};g.yE=function(){this.D=!0;this.$=!1;this.Yp=!0};
g.zE=function(a){if(this.D){this.B&&(this.B.g=!0);var b=tD(this).za();BD(this);var c=a.target.element;a=c.item;var d=uv(a);L(d);b=LB(this.j,4==c.type?(b.left+b.width/2-this.b.left)/this.b.width:(b.left-this.b.left)/this.b.width);if(!isNaN(b)){var e=0;switch(c.type){case 4:a.set("actualStart",b);a.U("actualStart",b);l(a.get("actualEnd"))&&(a.set("actualEnd",b),a.U("actualEnd",b));break;case 5:var c=c.We,e=a.ye("periods",c,"start"),f=a.ye("periods",c,"end"),e=f+(b-e);isNaN(e)||(a.set("periods",c,"start",
b),a.mi("periods",c,"start",b),a.set("periods",c,"end",e),a.mi("periods",c,"end",e));break;case 3:e=a.U("baselineStart");c=a.U("baselineEnd");e=b-e;isNaN(c+e)||(a.set("baselineStart",b),a.U("baselineStart",b));a.set("baselineEnd",c+e);a.U("baselineEnd",c+e);break;default:c=v(a.U("actualStart"))?a.U("actualStart"):a.U("autoStart"),e=v(a.U("actualEnd"))?a.U("actualEnd"):a.U("autoEnd"),c=e+(b-c),isNaN(c)||(a.set("actualStart",b),a.U("actualStart",b),a.set("actualEnd",c),a.U("actualEnd",c))}}d.aa(!0);
GC(this);this.Yp=this.D=!1;clearInterval(this.oa);this.oa=null}pi(aa.document.body,"cursor","")};g.CE=function(){this.B&&(this.B.g=!1);this.$p=!0;this.qb().Mb().enabled(!1);wD(this).clear();xD(this).clear();yD(this).clear();zD(this).clear();tD(this).clear()};g.DE=function(){this.D=!0;this.$=!1};g.AE=function(a){if(this.D){this.B&&(this.B.g=!0);BD(this);a=a.target;var b=a.element;isNaN(a.nc)||b.item.set("progressValue",ji(100*a.nc,2)+"%");this.D=!1;clearInterval(this.oa);this.oa=null;this.$p=!1}};
g.FE=function(){this.B&&(this.B.g=!1);this.qb().Mb().enabled(!1);vD(this).clear();wD(this).clear();xD(this).clear();yD(this).clear();zD(this).clear();pi(aa.document.body,"cursor","col-resize");this.O.hc("col-resize")};g.vE=function(){this.B&&(this.B.g=!1);this.qb().Mb().enabled(!1);vD(this).clear();wD(this).clear();xD(this).clear();yD(this).clear();zD(this).clear();pi(aa.document.body,"cursor","col-resize");this.O.hc("col-resize")};
function GD(a,b,c){if(a.Qc){var d=a.Qc.j?a.ga:a.ia,e=d.item,f=d.We,h=d.wa;switch(d.type){case 3:d=a.Qc.j?e.U("baselineEnd"):e.U("baselineStart");break;case 5:d=a.Qc.j?e.ye("periods",f,"end"):e.ye("periods",f,"start");break;default:d=a.Qc.j?v(e.U("actualEnd"))?e.U("actualEnd"):e.U("autoEnd"):v(e.U("actualStart"))?e.U("actualStart"):e.U("autoStart")}e=cl(a.I().fa().I()).x;b=c?0>c?a.b.left:a.b.left+a.b.width:b.clientX-e;c=KB(a.j,d);c=a.b.left+a.b.width*c;a.O.clear().moveTo(c,h.top).lineTo(b,h.top).lineTo(b,
h.top+h.height).lineTo(c,h.top+h.height).close()}}function HD(a,b,c,d){if(a.Na&&a.D){var e=a.Na.j?a.W:a.P,f=e.index,e=e.We,h=cl(a.I().fa().I()).x,k=cl(a.I().fa().I()).y;c||d?(c=a.Na.D-h,b=a.Na.W-k):(c=b.clientX-h,b=b.clientY-k);e=ID(a,f,e);d=Is(a.df)%2&&Nq===Oq?.5:0;f=a.Na.j?e.left:e.left+e.width;e=e.top+e.height/2+d;AD(a).clear().moveTo(f,e).lineTo(c,b)}}g.Ux=function(a){this.D=!0;this.$=!1;this.Qc=a.target;GD(this,a)};
g.Tx=function(a){if(this.D){this.B&&(this.B.g=!0);var b=this.O.za();BD(this);a=a.target.element;var c=a.item,d=a.We,e=uv(c);L(e);var f=(b.left+b.width-this.b.left)/this.b.width,b=LB(this.j,(b.left-this.b.left)/this.b.width),f=LB(this.j,f);if(!isNaN(b)&&!isNaN(f))switch(a.type){case 5:c.set("periods",d,"start",b);c.mi("periods",d,"start",b);c.set("periods",d,"end",f);c.mi("periods",d,"end",f);break;case 3:c.set("baselineStart",b);c.U("baselineStart",b);c.set("baselineEnd",f);c.U("baselineEnd",f);break;
default:c.set("actualStart",b),c.U("actualStart",b),c.set("actualEnd",f),c.U("actualEnd",f)}e.aa(!0);GC(this);this.Qc=null;this.D=!1;clearInterval(this.oa);this.oa=null}pi(aa.document.body,"cursor","");this.O.hc("ew-resize")};g.Jx=function(a){this.B&&(this.B.g=!1);this.qb().Mb().enabled(!1);kC(this.o);this.Na=a.target;BD(this)};g.Kx=function(a){this.Uc=this.D=!0;this.$=!1;this.Na.D=a.clientX;this.Na.W=a.clientY};
g.Ix=function(){this.D&&(this.B&&(this.B.g=!0),this.qb().enabled(!0),AD(this).clear(),this.D=!1,clearInterval(this.oa),this.oa=null)};
g.ev=function(a){if(this.Wa&&a){var b;if(a.originalEvent.domTarget&&a.originalEvent.domTarget instanceof HC){b=a.originalEvent.domTarget;var c=a.item,d=a.period,e=a.periodIndex;if(b.B&&!this.D){var f=b.B;tD(this).clear().moveTo(f.left,f.top).lineTo(f.left+f.width,f.top).lineTo(f.left+f.width,f.top+f.height).lineTo(f.left,f.top+f.height).close();this.O.item=c;this.O.type=b.type;d&&(this.O.Aj=d);l(e)&&(this.O.We=e);if(!c||1!=b.type&&0!=b.type&&2!=b.type)vD(this).clear();else{var h=l(c.get("progressValue"))?
parseFloat(c.get("progressValue"))/100:ji(c.U("autoProgress"),2),h=f.left+(h||0)*f.width,k=f.top+f.height;vD(this).clear().moveTo(h,k-5).lineTo(h+5,k).lineTo(h+5,k+5).lineTo(h-5,k+5).lineTo(h-5,k).close();this.jc.wa=f;this.jc.item=c}h=f.left+f.width;c&&4!=b.type?(xD(this).clear().moveTo(h+1,f.top).lineTo(h+1-3,f.top).lineTo(h+1-3,f.top+f.height).lineTo(h+1,f.top+f.height).close(),wD(this).clear().moveTo(f.left-1,f.top).lineTo(f.left-1+3,f.top).lineTo(f.left-1+3,f.top+f.height).lineTo(f.left-1,f.top+
f.height).close(),this.ia.wa=f,this.ia.item=c,this.ia.type=b.type,this.ga.wa=f,this.ga.item=c,this.ga.type=b.type,d&&(this.ia.Aj=d,this.ga.Aj=d),l(e)&&(this.ia.We=e,this.ga.We=e)):(wD(this).clear(),xD(this).clear());c&&3!=b.type?(k=f.top+f.height/2,zD(this).moveTo(h+5+5,k).hn(5,5,0,360),yD(this).moveTo(f.left-5+5,k).hn(5,5,0,360),this.P.item=c,this.P.type=b.type,this.P.index=a.hoveredIndex+this.g.Vc(),this.W.item=c,this.W.type=b.type,this.W.index=a.hoveredIndex+this.g.Vc(),d&&(this.W.Aj=d,this.P.Aj=
d),l(e)&&(this.W.We=e,this.P.We=e)):(zD(this).clear(),yD(this).clear())}else this.Uc&&c&&(f=this.Na.j?this.W:this.P,h=f.item,k=f.index,3!=b.type&&6!=b.type?(d?(f={period:f.Aj,index:k,periodIndex:f.We},c={period:d,index:a.hoveredIndex+this.g.Vc(),periodIndex:e}):(f={item:h,index:k},c={item:c,index:a.hoveredIndex+this.g.Vc()}),a=a.originalEvent.clientX-cl(this.I().fa().I()).x,b=b.B,b=.5>(a-b.left)/b.width,b=this.Na.j?b?"startstart":"startfinish":b?"finishstart":"finishfinish",AD(this).clear(),JD(this,
f,c,b,void 0,this.ef)):HD(this,a.originalEvent))}else a.originalEvent.domTarget==tD(this)||a.originalEvent.domTarget==vD(this)||a.originalEvent.domTarget==xD(this)||a.originalEvent.domTarget==wD(this)||a.originalEvent.domTarget==zD(this)||a.originalEvent.domTarget==yD(this)||this.D?this.Uc&&HD(this,a.originalEvent):BD(this)}};g.Ft=function(a){this.Wa&&(this.G=a.item)};
g.fv=function(a){if(this.Wa&&this.Uc){if(a){var b=a.item,c=a.periodIndex;a=a.originalEvent;var d=a.domTarget;if(d instanceof HC&&3!=d.type){a=a.clientX-cl(this.I().fa().I()).x;var d=d.B,e=this.Na.j?this.W:this.P,d=.5>(a-d.left)/d.width;a=e.item;d=this.Na.j?d?"startstart":"startfinish":d?"finishstart":"finishfinish";e=e.We;d=d||"finishstart";a instanceof pv||(a=this.g.data().Kt("id",a),a=a.length?a[0]:null);if(a&&(b instanceof pv||(b=this.g.data().Kt("id",b),b=b.length?b[0]:null),b)){L(this.g.data());
var f,h,k,m;m=!1;if(this.g.o){var n=a.get("periods")[e],p=b.get("periods")[c];l(n)&&l(p)&&(f=n.connector,h={},h.connectTo=p.id,h.connectorType=d,f?q(f)?f=f.length:(m=Se(f),k={},k.connectTo=n.connectTo,k.connectorType=n.connectorType||"finishstart",Ue(k,m),f=1,m=!0):(f=n.connectTo,l(f)?(k={},k.connectTo=f,k.connectorType=n.connectorType||"finishstart",f=1,m=!0):f=0),c={type:"beforeCreateConnector",target:b,source:a,connectorType:d,targetPeriod:p,targetPeriodIndex:c,sourcePeriod:n,sourcePeriodIndex:e},
this.o.dispatchEvent(c)&&(m&&a.set("periods",e,"connector",[k]),a.set("periods",e,"connector",f,h)))}else f=a.get("connector"),h={},h.connectTo=b.get("id"),h.connectorType=d,f?q(f)?f=f.length:(m=Se(f),k={},k.connectTo=a.get("connectTo"),k.connectorType=a.get("connectorType")||"finishstart",Ue(k,m),f=1,m=!0):(f=a.get("connectTo"),l(f)?(k={},k.connectTo=f,k.connectorType=a.get("connectorType")||"finishstart",f=1,m=!0):f=0),c={type:"beforeCreateConnector",target:b,source:a,connectorType:d},this.o.dispatchEvent(c)&&
(m&&a.set("connector",[k]),a.set("connector",f,h));this.g.data().aa(!0)}}}this.Uc=!1}this.Na=null;this.$=!0};g.ot=function(a){if(this.D&&!this.$p&&(this.Zb||this.Ac)){var b=0,c=0;this.Zb&&(b=0=m){var k=.7*d,m=Math.round(a.b.left+a.b.width*m),n=Math.round(c+(d-k)/2);a.uc().add({value:{x:m,y:n}}).size(k/2).Y(h)}}}}}
function ID(a,b,c){var d=a.b.top+a.fe()+1,e=a.g.b,f=a.g.Vc(),h=a.g.w,k=a.g.me(),f=f?e[f-1]:0,h=h[b];b=(b?e[b-1]:0)-(f+k)+d;d=OB(h);e=v(h.U("actualStart"))?h.U("actualStart"):h.U("autoStart");k=v(h.U("actualEnd"))?h.U("actualEnd"):h.U("autoEnd");e=a.g.o?h.ye("periods",c,"start"):e;c=a.g.o?h.ye("periods",c,"end"):k;k=0;if(isNaN(c)||e==c)c=e,k=.7*d/2;if(isNaN(c)||isNaN(e))return null;e=KB(a.j,e)*a.b.width+a.b.left-k;c=KB(a.j,c)*a.b.width+a.b.left+k;a.g.o||(h.get("baselineStart")&&h.get("baselineEnd")?
d=a.bf?2.7*d/2:.65*d:h.ib()&&(d*=1-.7+.4));return new O(e,b,c-e,d)}
function JD(a,b,c,d,e,f){d=d||"finishstart";var h=b.index,k=c.index,m=b.periodIndex,n=c.periodIndex,p=ID(a,h,b.periodIndex),r=ID(a,k,c.periodIndex);if(p&&r){c=e&&e.fill?mc(e.fill):a.Mp;e=e&&e.stroke?lc(e.stroke):a.Vd;b=null!=f;var t,w,x,y,z;f=f||null;var D=b?f:null,A,I=!0,M=Is(e)%2&&Nq===Oq?.5:0;switch((d+"").toLowerCase()){case "finishfinish":t=Math.round(p.left+p.width)+M;w=Math.round(p.top+p.height/2)+M;x=Math.round(r.left+r.width)+M;y=Math.round(r.top+r.height/2)+M;z="left";p.top==r.top?(f=ND(a,
t,w,x,y,f),t>x&&(z="right")):(p=Math.max(t+4+5,x+4+5),f=ND(a,t,w,p,w,f),f=ND(a,p,w,p,y,f),f=ND(a,p,y,x,y,f));D=OD(a,x,y,z,D);break;case "startfinish":t=Math.round(p.left)+M;w=Math.round(p.top+p.height/2)+M;x=Math.round(r.left+r.width)+M;y=Math.round(r.top+r.height/2)+M;z="left";t-5-5-4>x?(p=x+5+4,f=ND(a,t,w,p,w,f),f=ND(a,p,w,p,y,f),f=ND(a,p,y,x,y,f)):(I=r.top>=p.top,p=t-5,A=x+5+4,r=Math.round(I?r.top:r.top+r.height)+M,f=ND(a,t,w,p,w,f),f=ND(a,p,w,p,r,f),f=ND(a,p,r,A,r,f),f=ND(a,A,r,A,y,f),f=ND(a,
A,y,x,y,f));D=OD(a,x,y,z,D);break;case "startstart":t=Math.round(p.left)+M;w=Math.round(p.top+p.height/2)+M;x=Math.round(r.left)+M;y=Math.round(r.top+r.height/2)+M;z="right";p.top==r.top?(f=ND(a,t,w,x,y,f),t>x&&(z="left")):(p=Math.min(t-4-5,x-4-5),f=ND(a,t,w,p,w,f),f=ND(a,p,w,p,y,f),f=ND(a,p,y,x,y,f));D=OD(a,x,y,z,D);break;default:t=Math.round(p.left+p.width)+M,w=Math.round(p.top+p.height/2)+M,x=Math.round(r.left)+M,x>=t?(x=Math.min(x+5,Math.round(r.left+r.width/2)+M),r.top>p.top?(y=Math.round(r.top)+
M,f=ND(a,t,w,x,w,f),f=ND(a,x,w,x,y,f),D=OD(a,x,y,"bottom",D)):r.topp.top?r.top:r.top+r.height)+M,p=t+5,A=x-5-4,f=ND(a,t,w,p,w,f),f=ND(a,p,w,p,r,f),f=ND(a,p,r,A,r,f),f=ND(a,A,r,A,y,f),f=ND(a,A,y,x,y,f),D=OD(a,x,y,"right",D))}var r=!1,W;a.Wa&&(W={fromItemIndex:h,
toItemIndex:k,connType:d},a.g.o&&(W.fromPeriodIndex=m,W.toPeriodIndex=n,d&&(W.connType=d)),r=C(a.ra)&&Re(a.ra,W));f&&!b&&(f.stroke(e),f.tag=void 0,f.type=6,f.B=null,f.hc(a.Wa?"pointer":"default"),f.U=W,f.stroke(r?a.wj:e));D&&!b&&(D.fill(c).stroke(e),D.tag=void 0,D.type=6,D.B=null,D.hc(a.Wa?"pointer":"default"),D.U=W,D.stroke(r?a.wj:e))}}
function ND(a,b,c,d,e,f){if(f)try{f.lineTo(d,e)}catch(n){f.moveTo(b,c).lineTo(d,e)}else{var h=Math.max(b,d),k=Math.min(c,e),m=Math.max(c,e);Math.min(b,d)a.b.left&&ka.b.top&&(f=KD(a),f.zIndex(60).moveTo(b,c).lineTo(d,e))}return f}
function OD(a,b,c,d,e){var f=e||null;if(b>=a.b.left&&b<=a.b.left+a.b.width&&c>=a.b.top&&c<=a.b.top+a.b.height){var h=0,k=0,m=0,n=0;switch(d){case "left":b+=1;h=b+4;k=c-4;m=h;n=c+4;break;case "top":c+=1;h=b-4;k=c+4;m=b+4;n=k;break;case "right":--b;h=b-4;k=c-4;m=h;n=c+4;break;case "bottom":--c,h=b-4,k=c-4,m=b+4,n=k}null!=e||(f=KD(a));f.zIndex(70).moveTo(b,c).lineTo(h,k).lineTo(m,n).lineTo(b,c)}return f}
function GC(a){var b=a.g.G,c=a.g.O;a.j.B=b;a.j.N=c;var d=a.zr()*(c-b),e=a.yr()*(c-b),f;f=a.j;f=isNaN(f.b)&&isNaN(f.o)&&isNaN(f.g)&&isNaN(f.j);var d=b-d,h=0,k=0,m=0;f||(k=EB(a.j),m=k.max,k=k.min,h=m-k);DB(a.j,d,c+e);h&&(k=EB(a.j),k=k.min,a.j.cf(k,k+h));f&&CB(a.j,d,b+Math.round((c-b)/10))}g.py=function(){qC(this).zIndex(34);this.uc().I(oC(this));this.labels().I(oC(this));this.Ib.I(lC(this));GC(this)};g.Yq=function(){this.Ib.wa().set(this.b.left,this.b.top,this.b.width,this.fe());this.lj=!0};
g.Xq=function(){sD(this).stroke(this.af);AD(this).stroke(this.df);tD(this).fill(this.Np).stroke(this.Op);vD(this).fill(this.Pp).stroke(this.Rm);wD(this).fill(this.Ah).stroke(this.Bh);xD(this).fill(this.Ah).stroke(this.Bh);yD(this).fill(this.yh).stroke(this.zh);zD(this).fill(this.yh).stroke(this.zh)};
g.Yt=function(){X(this,512)&&(this.lj=this.dd=!0,V(this,512));if(this.lj){H(this.Ib,64);this.Ib.X();var a=this.Ib.g[2].o;if(a.length)for(var b=sD(this).clear(),c=0,d=a.length-1;cI){var W=this.b.left+this.b.width*I,ea=.7*w;LD(this,new O(W,t+(w-ea)/2,this.b.left+this.b.width*M-W,ea),z,5)}}}MD(this,m,f,n);f=p+this.bb}else for(var R=this.b.top+this.fe()+1-this.g.me(),za=this.g.w,eb=this.g.Vc();eb<=XB(this.g);eb++){var Ta=za[eb];if(!Ta)break;var mb=OB(Ta),Dd=R+mb,Yc=Ta.get("baselineStart"),Ig=Ta.get("baselineEnd");if(l(Yc)&&l(Ig)){var Nc=Ta,
Hf=R,Ud=mb,zc=v(Nc.U("actualStart"))?Nc.U("actualStart"):Nc.U("autoStart"),Mg=v(Nc.U("actualEnd"))?Nc.U("actualEnd"):Nc.U("autoEnd"),Ng=Nc.U("baselineStart"),Eh=Nc.U("baselineEnd"),Ee=KB(this.j,zc),Fh=KB(this.j,Mg),nb=KB(this.j,Ng),hg=KB(this.j,Eh);if(0Ee||0nb){var rd=this.b,Fe=rd.left+rd.width*Ee,We=rd.left+rd.width*Fh,Bi=Hf+Ud*(1-.7)/2,Ci=.7*Ud/2,Sn=rd.left+rd.width*nb,gr=rd.left+rd.width*hg,Di=Bi+Ci;if(this.bf)var Ei=Bi,Bi=Di,Di=Ei;var Al=new O(Fe,Bi,We-Fe,Ci),Bl=LD(this,Al,Nc,1,
"actual");LD(this,new O(Sn,Di,gr-Sn,Ci),Nc,3,"baseline");var Fi=1*Ci,Cl=Bi+(Ci-Fi)/2,Gh=l(Nc.get("progressValue"))?parseFloat(Nc.get("progressValue"))/100:ji(Nc.U("autoProgress"),2);Gh&&(LD(this,new O(Fe,Cl,Gh*(We-Fe),Fi),Nc,2,"progress").B=Bl.B)}}else if(Ta.ib()){var ie=Ta,hr=R,Tn=mb,ir=v(ie.U("actualStart"))?ie.U("actualStart"):ie.U("autoStart"),jr=v(ie.U("actualEnd"))?ie.U("actualEnd"):ie.U("autoEnd"),Jj=KB(this.j,ir),Gi=KB(this.j,jr);if(0Jj){var Kj=this.b.left+this.b.width*Jj,Dl=this.b.left+
this.b.width*Gi,Lj=hr+Tn*(1-.7)/2,Hi=.4*Tn,kr=new O(Kj,Lj,Dl-Kj,Hi),Hh=LD(this,kr,ie,0,"actual"),El=1*Hi,Fl=Lj+(Hi-El)/2,Mj=l(ie.get("progressValue"))?parseFloat(ie.get("progressValue"))/100:ji(ie.U("autoProgress"),2);Mj&&(LD(this,new O(Kj,Fl,Mj*(Dl-Kj),El),ie,2,"progress").B=Hh.B)}}else if(iC(Ta)){var Og=Ta,Gl=R,Nj=mb,Un=Og.get("actualStart"),Oj=KB(this.j,Un);if(0<=Oj&&1>=Oj){var ig=Og.get("milestone"),Pg=ig&&l(ig.stroke)?lc(ig.stroke):this.dj,Hl=(Hs(Pg)?0:u(Pg)?1:Pg.thickness?Pg.thickness:1)%2&&
Nq===Oq?.5:0,Qg=Math.round(.7*Nj/2),Ii=Math.round(this.b.left+this.b.width*Oj)+Hl,Ji=Math.round(Gl+Nj/2)+Hl,If=KD(this);If.tag=Og.get("id");If.type=4;var Ki=Ii-Qg,Li=Ji-Qg,Pj=Ii+Qg,lr=Ji+Qg,Rg=Qg+Qg;If.zIndex(20).moveTo(Ki,Ji).lineTo(Ii,Li).lineTo(Pj,Ji).lineTo(Ii,lr).close();var Sg=new O(Ki,Li,Rg,Rg);If.B=Sg;var sd=ig?ig.label:void 0,Qj=void 0;sd&&l(sd.value)?Qj=sd.value+"":Qj=Og.get("name")||"";if(Qj){var Fd=sd&&sd.position?sd.position:this.labels().position(),Fd=Ic(Fd),Vn={value:Bs(Sg,Fd)},Il=
{value:Qj},Jl=this.labels().add(Il,Vn);sd&&Jl.Y(sd)}var Mi=Og==this.Ca;if(ig){var Ni=void 0;Mi?(Ni=this.we,Pg=this.xe):Ni=l(ig.fill)?mc(ig.fill):this.$i;If.fill(Ni).stroke(Pg)}else If.fill(Mi?this.we:this.$i).stroke(Mi?this.xe:this.dj)}}else{var Xe=Ta,Rj=R,Kl=mb,Wn=v(Xe.U("actualStart"))?Xe.U("actualStart"):Xe.U("autoStart"),mr=v(Xe.U("actualEnd"))?Xe.U("actualEnd"):Xe.U("autoEnd"),Ll=KB(this.j,Wn),Ml=KB(this.j,mr);if(0Ll){var Oi=this.b.left+this.b.width*Ll,Nl=this.b.left+this.b.width*Ml,Pi=
.7*Kl,Ol=Rj+(Kl-Pi)/2,Pl=new O(Oi,Ol,Nl-Oi,Pi),Xn=LD(this,Pl,Xe,1,"actual"),Ql=1*Pi,Yn=Ol+(Pi-Ql)/2,Rl=parseFloat(Xe.get("progressValue"));Rl&&(LD(this,new O(Oi,Yn,Rl*(Nl-Oi)/100,Ql),Xe,2,"progress").B=Xn.B)}}MD(this,Ta,R,mb);R=Dd+this.bb}this.labels().X();this.uc().X();for(var Sl=this.g.$,Ih=Sl.length,jg,nr=this.g.o?this.g.W:this.g.da;Ih--;){jg=Sl[Ih];var Gd=jg.to;C(Gd)||(Gd=nr[Gd]);l(Gd)?(jg.to=Gd,JD(this,jg.from,Gd,jg.type,jg.connSettings)):Pb(Sl,Ih,1)}for(var Tl=this.rm,or=this.sm.length;Tl=b.getTime()-c.getTime()&&150>d;b.add(k),d++)h.push(b.getTime());e&&0=c.getTime()-h.getTime()&&150>b;c.add(k),b++)e.push(c.getTime());a.Rg=e}this.K&&(this.min=f[0]);this.G&&(this.max=f[1]);this.zf=this.max-this.min}};g.jw=function(a){Y(a,2)&&(this.g=!1,this.ha(2))};g.J=function(){var a=Cd.F.J.call(this);a.ticks=this.ka().J();a.minorTicks=this.Ha().J();return a};g.ba=function(a){Cd.F.ba.call(this,a);this.ka(a.ticks);this.Ha(a.minorTicks)};function fB(){return new Cd}E("anychart.scales.dateTime",fB);Cd.prototype.getType=Cd.prototype.Ne;Cd.prototype.ticks=Cd.prototype.ka;
Cd.prototype.minorTicks=Cd.prototype.Ha;Cd.prototype.transform=Cd.prototype.transform;Cd.prototype.extendDataRange=Cd.prototype.yg;Cd.prototype.softMinimum=Cd.prototype.Wt;Cd.prototype.softMaximum=Cd.prototype.Vt;Cd.prototype.minimumGap=Cd.prototype.El;Cd.prototype.maximumGap=Cd.prototype.Dl;function PD(a){Dk.call(this);this.b=a}F(PD,gu);g=PD.prototype;g.ma=2;g.se=NaN;g.fc=4;g.Ed=6;g.Oc=null;g.qd=null;g.ze=0;g.jk="linear";g.XD=function(a){return l(a)?(this.se!=a&&(a=G(a),0>a?(this.fc=4,this.Ed=6,this.se=NaN):(this.Ed=this.fc=NaN,this.se=+a),this.qd=this.Oc=null,this.ha(2)),this):this.se};
g.count=function(a,b){return l(a)?(this.fc!=a&&(this.se=NaN,this.fc=Math.ceil(G(a)),this.Ed=Math.ceil(G(b)),2<=this.fc||(this.fc=4),this.Ed>=this.fc||(this.Ed=this.fc),this.qd=this.Oc=null,this.ha(2)),this):[this.fc,this.Ed]};g.Nr=function(a){return l(a)?(a=+a||0,this.ze!=a&&(this.ze=a,this.qd=null,this.Oc||this.ha(2)),this):this.ze};g.set=function(a){Tf(this.Oc,a)||(this.se=this.Ed=this.fc=NaN,this.Oc=Xd(a,0),Nf(this.Oc),Vb(this.Oc,ss),this.qd=null,this.ha(2));return this};
g.get=function(){var a=QD(this);return zf(a,function(a){a=this.transform(a);return 0<=a&&1>=a},this.b)};function QD(a){a.Oc?a=a.Oc:(a.b.kb(),a=a.qd);return a||[]}g.mode=function(a){return l(a)?(a=(""+a).toLowerCase(),a="log"==a||"logarithmic"==a?"logarithmic":"linear",this.jk!=a&&(this.qd=null,this.jk=a,this.Oc||this.ha(2)),this):this.jk};
function RD(a,b,c,d,e,f){if("logarithmic"==a.jk){f=f||10;a.qd=null;var h=[b,c];if(a.Oc)d&&(h[0]=Math.min(b,a.Oc[0]||0)),e&&(h[1]=Math.max(c,a.Oc[a.Oc.length-1]||0));else{b=Qm(b,f);c=Qm(c,f);var k=[],m=a.se;if(isNaN(m))for(var n=NaN,p=NaN,r=a.fc;r<=a.Ed;r++){var n=(c-b)/(a.fc-1),t=Math.log(n),w=Math.ceil(Math.pow(10,Math.floor(t*Math.LOG10E))),n=Math.min(Ds(n,w),Ds(n,Math.ceil(Math.pow(10,Math.ceil(t*Math.LOG10E)))),Ds(n,Math.ceil(Math.pow(2,Math.floor(t*Math.LOG2E)))),Ds(n,Math.ceil(Math.pow(2,Math.ceil(t*
Math.LOG2E)))),Ds(n,Math.ceil(w/2)),Ds(n,Math.ceil(w/4)),Ds(n,Math.ceil(w/8))),n=Math.max(n,1E-7),t=Om(Cs(b,n,a.ze))-b,t=t*t,w=Om(Ds(c,n,a.ze))-c,w=w*w,t=t+w;if(isNaN(p)||tb.length)){c=c||10;var f="logarithmic"==a.jk?a.QA:a.PA,h,k;l(d)?(h=b[0],k=b[1],f.call(a,h,k,d,k,c),h=1):h=0;d=b.length-1;l(e)&&d--;for(var m=h;m<=d-1;m++)h=b[m],k=b[m+1],f.call(a,h,k,h,k,c);l(e)&&(h=b[d],k=b[d+1],f.call(a,h,k,h,e,c))}}
g.PA=function(a,b,c,d){var e=this.se;isNaN(e)&&(e=(d-c)/(this.fc-1));e=Math.max(e,1E-7);c=this.qd[this.qd.length-1];b=ji(b,7);for(a=ji(a,7);a<=b;a=ji(a+e,7))c!=a&&this.qd.push(a),c=a};g.QA=function(a,b,c,d,e){var f=this.se;a=Qm(a,e);b=Qm(b,e);c=Qm(c,e);d=Qm(d,e);isNaN(f)&&(f=(d-c)/(this.fc-1));f=Math.max(f,1E-7);c=this.qd[this.qd.length-1];b=ji(b,7);for(a=ji(a,7);a<=b;a=ji(a+f,7))c!=a&&this.qd.push(Rm(e,a)),c=a};
g.J=function(){var a=PD.F.J.call(this);a.mode=this.jk;a.base=this.ze;this.Oc?a.explicit=this.Oc:(this.fc==this.Ed?isNaN(this.fc)||(a.count=this.fc):(isNaN(this.fc)||(a.minCount=this.fc),isNaN(this.Ed)||(a.maxCount=this.Ed)),isNaN(this.se)||(a.interval=this.se));return a};g.Gb=function(a){var b=arguments;return q(b[0])?(this.set(b[0]),!0):gu.prototype.Gb.apply(this,b)};
g.ba=function(a){PD.F.ba.call(this,a);this.mode(a.mode);this.Nr(a.base);this.Oc=a.explicit||null;this.fc=a.count||a.minCount||NaN;this.Ed=a.count||a.maxCount||NaN;this.se=a.interval||NaN;this.Oc?this.fc=this.Ed=this.se=NaN:this.se?this.fc=this.Ed=NaN:(this.fc=Math.ceil(G(this.fc)),this.Ed=Math.ceil(G(this.Ed)),2<=this.fc||(this.fc=4),this.Ed>=this.fc||(this.Ed=this.fc))};PD.prototype.interval=PD.prototype.XD;PD.prototype.count=PD.prototype.count;PD.prototype.base=PD.prototype.Nr;
PD.prototype.set=PD.prototype.set;PD.prototype.get=PD.prototype.get;PD.prototype.mode=PD.prototype.mode;function Ad(){Tz.call(this);this.w=this.N=null;this.Qr=!0;this.b=10;this.da=!0}F(Ad,Tz);g=Ad.prototype;g.Vr="none";g.Ur="firstVisible";g.Ne=function(){return"linear"};g.ka=function(a){this.N||(this.N=this.jo());return l(a)?(this.N.Y(a),this):this.N};g.Ha=function(a){this.w||(this.w=this.jo(),L(this.w),this.w.count(5),this.w.aa(!1));return l(a)?(this.w.Y(a),this):this.w};g.bu=function(a){return l(a)?(a=!!a,a!=this.da&&(this.da=a,this.K||this.G)&&(this.g=!1,this.ha(4)),this):this.da};
g.kb=function(){if(!this.g){Ad.F.kb.call(this);var a=RD(this.ka(),this.min,this.max,this.K&&this.min!=this.D,this.G&&this.max!=this.B,this.b);this.K&&(this.min=a[0]);this.G&&(this.max=a[1]);SD(this.Ha(),QD(this.ka()),this.b,a[2],a[3]);this.zf=this.max-this.min}};g.TD=function(a){Y(a,2)&&(this.g=!1,this.ha(2))};g.jo=function(){var a=new PD(this);N(this,a);U(a,this.TD,this);return a};g.lE=function(a){return l(a)?(a=ad(a),this.Vr!=a&&(this.Vr=a,this.ha(6)),this):this.Vr};
g.kE=function(a){return l(a)?(a=bd(a)||og(a),this.Ur!=a&&(this.Ur=a,this.ha(6)),this):this.Ur};g.J=function(){var a=Ad.F.J.call(this);a.ticks=this.ka().J();a.minorTicks=this.Ha().J();a.stackMode=this.Gm();a.stickToZero=this.bu();return a};g.ba=function(a){Ad.F.ba.call(this,a);this.ka(a.ticks);this.Ha(a.minorTicks);this.Gm(a.stackMode);this.bu(a.stickToZero)};function eB(){return new Ad}E("anychart.scales.linear",eB);Ad.prototype.getType=Ad.prototype.Ne;Ad.prototype.ticks=Ad.prototype.ka;
Ad.prototype.minorTicks=Ad.prototype.Ha;Ad.prototype.stackMode=Ad.prototype.Gm;Ad.prototype.stickToZero=Ad.prototype.bu;Ad.prototype.softMinimum=Ad.prototype.Wt;Ad.prototype.softMaximum=Ad.prototype.Vt;Ad.prototype.minimumGap=Ad.prototype.El;Ad.prototype.maximumGap=Ad.prototype.Dl;Ad.prototype.comparisonMode=Ad.prototype.lE;Ad.prototype.compareWith=Ad.prototype.kE;function TD(){Tz.call(this);this.W=this.$=0;this.ba(rt().defaultLinearColorScale)}F(TD,Tz);g=TD.prototype;g.Ne=function(){return"linearColor"};g.zs=function(a){var b,c,d,e=[];b=0;for(c=arguments.length;b