if(!_.timeline){_.timeline=1;(function($){var r5=function(){$.Y.call(this);this.path=$.nk();$.T(this.ua,[["stroke",0,1]])},s5=function(){$.Y.call(this);this.G=0;this.re=[];this.g=0;this.D=new $.rw;$.T(this.ua,[["stroke",16,1],["fill",16,1],["height",276,5]])},t5=function(){this.ad=[]},u5=function(){$.Yq.call(this);$.T(this.ua,[["length",0,1],["stroke",0,1]])},v5=function(a){$.xA.call(this,a)},w5=function(a,b,c,d,e){$.gB.call(this,a,b,c,d,e);this.f="up";$.T(this.ua,[["direction",2048,1,4294967295]])},x5=function(a,b){return $.n(b)?(a.f=b,
a):a.f},y5=function(a){var b=a.i("direction");return"auto"==b||"odd-even"==b?a.f:b},z5=function(a,b,c,d,e){w5.call(this,a,b,c,d,e)},A5=function(a){$.xA.call(this,a)},B5=function(a,b,c,d,e){w5.call(this,a,b,c,d,e);$.T(this.ua,[["height",0,0]])},C5=function(){$.xz.call(this);this.Fa("timeline");this.cb=new $.et;$.W(this,"scale",this.cb);this.cb.Yy([[{unit:"minute",count:10},{unit:"hour",count:1},{unit:"day",count:1}],[{unit:"hour",count:4},{unit:"hour",count:12},{unit:"day",count:1}],[{unit:"day",count:1},
{unit:"day",count:2},{unit:"week",count:1}],[{unit:"day",count:2},{unit:"week",count:1},{unit:"month",count:1}],[{unit:"month",count:1},{unit:"quarter",count:1},{unit:"year",count:1}],[{unit:"quarter",count:1},{unit:"year",count:1},{unit:"year",count:10}],[{unit:"year",count:1},{unit:"year",count:10},{unit:"year",count:50}],[{unit:"year",count:10},{unit:"year",count:50},{unit:"year",count:200}]]);this.axis().scale(this.cb);$.L(this.cb,this.Vh,this);this.ag=[];this.eg=[];this.cg=[];this.fj=this.D=
0;this.O={SB:0,YD:0};this.Ra=this.ab=0;this.ga=[];this.eb=[]},D5=function(a){for(var b=a.length-1;0<=b;b--){var c=a[b];$.n(c)&&c.fd&&$.Ca(a,b,1)}},E5=function(a){return a.axis().enabled()?a.axis().i("height"):0},F5=function(a,b,c){!$.n(b)||b==a.ab&&c==a.Ra||(a.ab=b,a.Ra=c,$.br(a,"timelinechart","scroll",1))},ena=function(a,b){var c=a.Li-b.Li;return 0==c?b.vj-a.vj:c},fna=function(a,b){var c=a.Li-b.Li;return 0==c?a.vj-b.vj:c},G5=function(a,b){a.f.Li=Math.min(a.f.Li,b.Li);a.f.vj=Math.max(a.f.vj,b.vj);
a.f.dg=Math.min(a.f.dg,b.dg);a.f.Zf=Math.max(a.f.Zf,b.Zf)},gna=function(a){var b=new C5;b.Fa("timeline");b.pa("defaultSeriesType","moment");for(var c=0,d=arguments.length;c<d;c++)b.moment(arguments[c]);return b};$.H(r5,$.Y);var hna={};$.hq(hna,[$.Z.Jn]);$.U(r5,hna);r5.prototype.$=function(){this.path.clear();this.path.stroke(this.i("stroke"));if(!this.Bc())return this;this.J(8)&&(this.path.zIndex(this.zIndex()),this.I(8));this.J(2)&&(this.path.parent(this.P()),this.I(2));return this};
r5.prototype.Pp=function(a,b){if(0!=b.height){var c=$.Wo(this.i("stroke"));c=$.R(b.left+a*b.width,c);var d=Math.floor($.R(b.top,1));this.path.moveTo(c,Math.ceil($.R(b.Ua(),1))).lineTo(c,d)}};r5.prototype.remove=function(){this.path&&this.path.parent(null)};r5.prototype.R=function(){$.td(this.path);this.path=null;r5.u.R.call(this)};$.H(s5,$.Y);var ina={};$.hq(ina,[$.Z.Jn,$.Z.az,[0,"height",$.qq]]);$.U(s5,ina);$.g=s5.prototype;$.g.sa=$.Y.prototype.sa|464;$.g.qa=$.Y.prototype.qa|4;$.g.offset=function(a){return $.n(a)?(this.g!=a&&(this.g=a,this.B(400)),this):this.g};$.g.scale=function(a){return $.n(a)?(a!=this.na&&(this.na&&$.Zq(this.na,this.Vh,this),this.na=a,$.L(this.na,this.Vh,this)),this):this.na};$.g.Vh=function(){this.B(400,0)};
$.g.Qa=function(a){this.hb||(this.hb=new r5,$.W(this,"ticks",this.hb),$.L(this.hb,this.Yh,this));return $.n(a)?(this.hb.K(a),this):this.hb};$.g.Yh=function(){this.B(256,1)};$.g.labels=function(a){this.Il||(this.Il=new $.ux,$.L(this.Il,this.AU,this),$.W(this,"labels",this.Il));return $.n(a)?(this.Il.K(a),this):this.Il};$.g.AU=function(){this.B(128,1)};
$.g.$=function(){var a=this.scale();this.xy();if(!a)return $.cl(2),this;if(!this.Bc())return this;this.La||(this.La=this.P().Dd(),this.f||(this.f=this.La.path(),this.j=this.La.path(),this.j.zIndex(37)),this.La.fc(this.US()));this.b||(this.b=new $.Ny,this.b.labels(this.labels()),$.Py(this.b),$.ql(this.b),this.b.ta($.oE|$.pE));this.J(2)&&(this.La.parent(this.P()),this.I(2));this.J(8)&&(this.La.zIndex(this.zIndex()),this.I(8));if(this.J(4)){var b=this.ja();this.G=b.top+b.height/2;b=this.ja();var c=b.left,
d=this.i("height");this.N=new $.J(c,this.G-d/2,b.width,d);this.B(400);this.I(4)}if(this.J(16)){var e=this.ja(),f=this.G;b=this.i("height");var h=b/2;this.f.clear();this.j.clear();c=this.i("stroke");d=this.i("fill");var k=$.Wo(c),l=this.scale().dj(),m=this.scale().transform(l.min);l=this.scale().transform(l.max+this.g);m*=e.width;l*=e.width;m+=e.left;e=l+e.left;m=$.R(m,k);e=$.R(e,k);l=$.R(f-h,k);f=$.R(f+h,k);this.La.clip(new $.J(Math.floor(m),Math.floor(l),Math.ceil(e)-Math.floor(m),Math.ceil(f)-Math.floor(l)));
0!=b&&(this.f.moveTo(m,l).lineTo(e,l).lineTo(e,f).lineTo(m,f).close(),this.j.moveTo(m,l).lineTo(e,l).lineTo(e,f).lineTo(m,f).close(),this.j.stroke(c),this.f.fill(d),this.f.stroke("none"));this.I(16)}if(this.J(256)){if(b=$.jr(this,"ticks"))for(b.P(this.La),b.$(),c=this.rn(),d=this.scale().dj(),a.Dj()&&(c.length=1),a=0;a<c.length;a++)f=c[a],h=this.scale().transform(f.start),f.start>=d.min&&b.Pp(h,this.N);this.I(256)}this.J(64)&&this.I(64);this.J(128)&&(this.labels().enabled()?(this.Fh.parent(this.La),
this.fi()):this.Fh.parent(null),this.I(128));return this};$.g.rn=function(){var a,b=this.scale(),c=$.tt(b),d=b.cj();for(a=0;a<c.length;a++){var e=b.rn(void 0,void 0,c[a].unit,c[a].count,d);if(10>=e.length){4>e.length&&0<a&&(b.rn(void 0,void 0,c[a-1].unit,c[a-1].count,d),a--);break}}a==c.length&&a--;e=c[a].unit;a=c[a].count;this.O={unit:e,count:a};d.min+=this.g;d.max+=this.g;return e=b.rn(void 0,void 0,e,a,d)};$.g.US=function(){this.Fh||(this.nm=$.kg().Jq(),this.Fh=new $.Uh(this.nm));return this.Fh};
$.g.fi=function(){var a=this.rn(),b=this.scale(),c=this.ja(),d=this.i("height"),e=b.dj(),f=this.labels(),h=this.O.unit,k=b.Dj();k&&(a.length=1);$.pl.measure();$.Qy(this.b);for(var l=0;l<a.length;l++){var m=this.re[l];m.text(C);m.style(f.flatten());$.Cx(m);l<a.length-1&&$.Fx(this.re[l+1]);var p=a[l];if(p.start<e.min)$.Dx(m,null);else{switch(h){case "minute":var q="hour";break;case "hour":q="day";break;case "day":q="month";break;default:q="year"}k&&(h="day",q="year");C=$.is($.es(h,q,"timeline"));q=
c.left+c.width*b.transform(p.start);for(var r=k?c.left+c.width:c.left+c.width*b.transform(p.end),t=this.labels().padding().wg(r-q),u,v=!1,w=window.Infinity,x="yyyy/MM/dd'T'HH:mm:ss.SSS",y=0;y<C.length;y++){var B=C[y],G=this.b.Qz;if(B in G){G=Math.ceil(G[B].width);if(G<=t){u=B;v=!0;break}G<=w&&(w=G,x=B)}}v||(u=x);var C=this.labels().$n($.av(this.D,{value:{value:$.js(p.start,u),type:"string"},tickValue:{value:p.start,type:"number"}}));m.text(C);m.style(f.flatten());$.Cx(m);t=b.transform(p.start);b.transform(Math.min(p.end,
e.max+this.g));0!=d?$.Dx(m,this.nm):$.Dx(m,null);p=this.labels().padding();v=$.R(c.left+c.width*t,1);w=Math.floor(this.G-d/2);x=d;t=r-q;q=p.nj(new $.J(v,w,t,x));$.Kx(m,q,this.La.Ha())}}for(l=a.length;l<this.re.length;l++)$.Dx(this.re[l],null)};$.g.Bc=function(){if(this.ef())return!1;if(!this.enabled())return this.J(1)&&(this.remove(),this.I(1),this.B(450)),!1;this.I(1);return!0};$.g.remove=function(){this.La&&this.La.parent(null)};
$.g.xy=function(){var a=this.rn();if(!this.re.length)for(var b=0;b<a.length;b++){var c=new $.vx;this.re.push(c)}if(this.re.length<a.length)for(b=this.re.length;b<a.length;b++)this.re.push(new $.vx);return this.re};$.g.R=function(){$.td(this.hb,this.f,this.j,this.Il,this.re);this.Il=this.j=this.f=this.hb=null;this.re.length=0;s5.u.R.call(this)};var H5=s5.prototype;H5.ticks=H5.Qa;H5.labels=H5.labels;t5.prototype.b=function(a,b){var c=a.Li-b.Li;return 0==c?(c=a.vj-b.vj,0==c?-1:c):a.Li-b.Li};t5.prototype.f=function(a,b){return 0==a.dg-b.dg?a.Zf-b.Zf:a.dg-b.dg};
t5.prototype.add=function(a,b){var c=a.Zf-a.dg;a.dg=0;a.Zf=c;$.Ua(this.ad,a,this.b);var d=[],e=[],f=!0,h;for(h=0;h<this.ad.length;h++){var k=this.ad[h];if(k!=a){if(k.vj>a.Li&&f||k.Li<a.vj&&!f)d.push(k),$.Ua(e,k,this.f)}else f=!1}for(h=0;h<e.length;h++)if(k=e[h],a.dg<=k.Zf&&a.dg>=k.dg||a.Zf<=k.Zf&&a.Zf>=k.dg||k.dg<=a.Zf&&k.dg>=a.dg||k.Zf<=a.Zf&&k.Zf>=a.dg)b?a.Zf=k.Zf+c:(a.dg=k.Zf,a.Zf=a.dg+c)};$.H(u5,$.Yq);u5.prototype.qa=$.Yq.prototype.qa|1;var jna={};$.hq(jna,[$.Z.Jn,$.Z.mJ]);$.U(u5,jna);$.H(v5,$.xA);$.sG[34]=v5;v5.prototype.type=34;v5.prototype.flags=521;v5.prototype.fg=function(a,b){var c=this.Wc,d=a.get(this.W.ue()[0]);d=this.ah(d,this.prevValue);var e={};e[d.stroke]=!0;a.o("names",d);c=c.Xc(b,e)[d.stroke];d=a.o("x");e=a.o("zero");var f=a.o("minLength"),h=$.Wo(c.stroke()),k=a.o("axisHeight"),l="up"==(a.get("direction")||a.o("direction"));e+=l?-k/2:k/2;d=$.R(d,h);$.vA(c,this.za,d,e);$.wA(c,this.za,d,l?e-f:e+f)};$.H(w5,$.gB);w5.prototype.sa=$.gB.prototype.sa;var I5={};$.hq(I5,[$.Z.LX]);$.U(w5,I5);$.g=w5.prototype;$.g.Zr=function(){return 0};$.g.jV=function(){return!1};$.g.iD=function(a){a=$.Rk(a.Oh());var b=this.Aa.Va().cj();return a>=b.min||a<=b.max?!0:!1};$.g.Tg=function(){return!1};$.g.SV=$.ia;
$.g.OS=function(a,b,c){var d=this.data();d.aa();this.SV(a,b,c);this.B(512);return this.gd={data:a,W:this,qV:0,k1:this.check($.tG)&&(d.$c("normal")||d.$c("hovered")||d.$c("selected")||d.$c("label")||d.$c("hoverLabel")||d.$c("selectLabel")||d.$c("minLabel")||d.$c("hoverMinLabel")||d.$c("selectMinLabel")||d.$c("maxLabel")||d.$c("hoverMaxLabel")||d.$c("selectMaxLabel")),l1:this.check(4194304)&&(d.$c("normal")||d.$c("hovered")||d.$c("selected")||d.$c("marker")||d.$c("hoverMarker")||d.$c("selectMarker")),
m1:this.check(256)&&(d.$c("outliers")||d.$c("normal")||d.$c("hovered")||d.$c("selected")||d.$c("outlierMarker")||d.$c("hoverOutlierMarker")||d.$c("selectOutlierMarker")),IT:!1,n1:!1,j1:!1}};$.g.EH=function(a){var b=this.i("direction");if("auto"==b||"odd-even"==b)b=x5(this);a.o("direction",b);b=this.ja();a.o("zero",b.top+b.height/2)};$.g.hI=function(){this.Fj.push(this.EH)};$.g.F=function(){var a=w5.u.F.call(this);$.Hq(this,I5,a);return a};$.g.X=function(a,b){w5.u.X.call(this,a,b);$.zq(this,I5,a,b)};$.H(z5,w5);$.g=z5.prototype;$.g.EH=function(a,b,c,d,e){z5.u.EH.call(this,a,b,c,d,e);b=this.ja();c=this.Zg().i("length");a.o("length",$.M(c,b.height));a.o("x",b.left+b.width*e)};$.g.qA=function(a,b,c){var d=this.cl().transform(a.Oh());a.o("xRatio",d);for(var e=0;e<this.Fj.length;e++)this.Fj[e].call(this,a,b,c,0,d)};$.g.Zg=function(a){this.b||(this.b=new u5,this.b.ib(this),$.L(this.b,this.dC,this),$.W(this,"connector",this.b));return $.n(a)?(this.b.K(a),this):this.b};$.g.dC=function(){this.B(2048,1)};
$.g.SV=function(a,b,c){for(var d=this.data().aa();d.advance();){var e=c(d.get("x")),f={},h={};f.x=e;h.rawIndex=d.la();b(a,{data:f,o:h})}};$.g.qp=function(){var a=this.aa(),b=a.o("minLength"),c=this.ja();c=c.top+c.height/2;var d="up"==(a.get("direction")||y5(this));a=a.o("axisHeight")/2;return d?c-b-a:c+b+a};$.g.KN=function(){return"up"==(this.aa().get("direction")||y5(this))?"center-bottom":"center-top"};
$.g.Em=function(a,b){var c=z5.u.Em.call(this,a,b);c.date={value:$.cs(b.get("x")),type:"date-time"};return c};$.g.R=function(){this.b&&($.Zq(this.b,this.dC,this),$.td(this.b),this.b=null);z5.u.R.call(this)};$.H(A5,$.xA);$.sG[35]=A5;A5.prototype.type=35;A5.prototype.flags=1537;
A5.prototype.fg=function(a,b){var c=this.Wc,d=a.get(this.W.ue()[0]);d=this.ah(d,this.prevValue);var e={};e[d.path]=!0;a.o("names",d);c=c.Xc(b,e)[d.path];d=a.o("startX");e=a.o("endX");var f=a.o("zero"),h=a.o("axisHeight");a.o("stackLevel");var k=a.get("direction")||a.o("direction"),l=a.o("startY"),m=a.o("endY");"up"==k?(f-=h/2,h=f-l-m):(f+=h/2,h=f+l+m);k=$.Wo(c.stroke());d=$.R(d,k);e=$.R(e,k);c.moveTo(d,f).lineTo(d,h).lineTo(e,h).lineTo(e,f).close()};$.H(B5,w5);var kna={};$.hq(kna,[$.Z.lJ]);$.U(B5,kna);$.g=B5.prototype;$.g.qA=function(a,b,c){var d=this.cl(),e=d.transform(a.get("start"));d=d.transform(a.get("end"));a.o("startXRatio",e);a.o("endXRatio",d);for(e=0;e<this.Fj.length;e++)this.Fj[e].call(this,a,b,c,0)};
$.g.EH=function(a,b,c,d,e){B5.u.EH.call(this,a,b,c,d,e);b=this.ja();c=a.o("startXRatio");c=b.left+b.width*c;d=a.o("endXRatio");if(!$.ea(d)||(0,window.isNaN)(d))d=this.cl(),e=d.dj().max,d=d.transform(e);d=b.left+b.width*d;a.o("startX",c);a.o("endX",d);b=$.M(this.i("height"),b.height);a.o("height",b)};$.g.SV=function(a,b,c){for(var d=this.data().aa();d.advance();){var e=c(d.get("start")),f=c(d.get("end")),h={},k={};h.start=e;h.end=f;k.rawIndex=d.la();b(a,{data:h,o:k})}};
$.g.Ai=function(){var a=this.aa(),b=a.o("height");var c=a.o("zero");var d=a.o("axisHeight");var e=a.o("startX");var f=a.o("endY");a="up"==(a.get("direction")||y5(this));d/=2;b=f-b/2;c=c+(a?-d:d)+(a?-b:b);a=this.Aa.dc.clone().left+this.Aa.fj;a>e&&(e=a);return{value:{x:e||0,y:c||0}}};$.g.Em=function(a,b){var c=B5.u.Em.call(this,a,b);c.start={value:$.cs(b.get("start")),type:"date-time"};c.end={value:$.cs(b.get("end")),type:"date-time"};return c};
$.g.vZ=function(a,b){var c=this.Qf();c.select(b);var d=c.o("startX"),e=this.Aa.dc.clone().left+this.Aa.fj;e>d&&(d=e);e=c.o("endX");c=c.o("height");a.width(e-d);a.height(c)};$.H(C5,$.xz);var J5={},lna=$.tG|1572864;J5.moment={Ab:34,Fb:2,Jb:[$.RG],Ib:null,Cb:null,zb:lna|4194304,wb:"zero"};J5.range={Ab:35,Fb:2,Jb:[$.tH],Ib:null,Cb:null,zb:lna,wb:"zero"};C5.prototype.Oi=J5;$.yz(C5,C5.prototype.Oi);C5.prototype.sa=$.xz.prototype.sa|543227904;C5.prototype.qa=$.ox.prototype.qa;$.uz(C5,"timelinechart",["scroll"]);$.g=C5.prototype;
$.g.Sm=function(a,b){var c=$.N(a);if((0,window.isNaN)(c)){c=0;var d=a}else c=a,d=b;var e=this.cg[c];if(!e){e=new $.Uz;$.n(!0)&&(e.g=!0);var f=$.gr($.fr(this),"defaultRangeMarkerSettings");e.Fa(f);e.Ba=this;$.Vz(e,"vertical");this.cg[c]=e;e.ib(this);$.L(e,this.QJ,this);$.pd(e,this.OM,this);this.B(4194304,1)}return $.n(d)?(e.K(d),this):e};
$.g.Xm=function(a,b){var c=$.N(a);if((0,window.isNaN)(c)){c=0;var d=a}else c=a,d=b;var e=this.eg[c];if(!e){e=new $.Xz;var f=e;$.n(!0)&&(f.G=!0);f=$.gr($.fr(this),"defaultTextMarkerSettings");e.Fa(f);e.Ba=this;$.Ly(e,"vertical");this.eg[c]=e;e.ib(this);$.L(e,this.QJ,this);$.pd(e,this.OM,this);this.B(4194304,1)}return $.n(d)?(e.K(d),this):e};
$.g.Jm=function(a,b){var c=$.N(a);if((0,window.isNaN)(c)){c=0;var d=a}else c=a,d=b;var e=this.ag[c];if(!e){e=new $.Rz;$.n(!0)&&(e.g=!0);var f=$.gr($.fr(this),"defaultLineMarkerSettings");e.Fa(f);e.Ba=this;$.Sz(e,"vertical");this.ag[c]=e;e.ib(this);$.L(e,this.QJ,this);$.pd(e,this.OM,this);this.B(4194304,1)}return $.n(d)?(e.K(d),this):e};$.g.QJ=function(a){var b=4194304;$.X(a,4)&&(b|=65536);this.B(b,1)};$.g.OM=function(){this.B(65536,1)};
$.g.c5=function(a){if(!this.j){this.j=new $.Rz;$.n(!0)&&(this.j.g=!0);var b=$.gr($.fr(this),"defaultLineMarkerSettings");this.j.Fa(b);$.W(this,"todayMarker",this.j);this.j.Ba=this;$.Sz(this.j,"vertical");this.j.ib(this);$.L(this.j,this.QJ,this);$.pd(this.j,this.OM,this);b=new Date;this.j.value(Date.UTC(b.getUTCFullYear(),b.getUTCMonth(),b.getUTCDay()));this.B(4259840,1)}return $.n(a)?(this.j.K(a),this):this.j};
$.g.ei=function(a){if(!this.ef()){this.G||(this.G=this.La.Dd(),this.G.zIndex(1),this.sc.ve(this,"chartdraw",this.Jea));this.N||(this.N=this.La.Dd(),this.N.zIndex(.5));this.ba||(this.ba=this.La.Dd(),this.ba.zIndex(1));this.J(4)&&(this.dc=a.clone(),this.B(543195136),$.br(this,"timelinechart","scroll"),this.I(4));this.$j=[];this.Ob=[];this.nb=[];var b=E5(this);if(0==this.Mj())this.scale().reset(),this.axis().B(400),this.Ga=window.Infinity,this.Ja=-window.Infinity,this.eb.length=0,this.ga.length=0,this.f=
{Li:0,vj:this.dc.width,dg:-this.dc.height/2,Zf:this.dc.height/2},F5(this,0,0);else if(this.J(98304)){this.eb=[];this.ga=[];for(var c=window.Infinity,d=-window.Infinity,e=0,f=0,h=["up","down"],k=0;k<this.fb.length;k++){var l=this.fb[k],m=l.Sj();switch(l.i("direction")){case "odd-even":"range"==m?(x5(l,h[e&1]),e++):"moment"==m&&(x5(l,h[f&1]),f++);break;case "auto":"range"==m?x5(l,"up"):"moment"==m&&x5(l,"up")}switch(m){case "moment":this.eb.push(l);break;case "range":this.ga.push(l)}var p=$.Fz(l,!1,
!0),q=l,r=window.Infinity,t=-window.Infinity,u=q.vc(),v=q.Sj();if("moment"==v)for(;u.advance();){var w=$.Rk(u.get("x"));r=Math.min(r,w);t=Math.max(t,w)}else if("range"==v)for(;u.advance();){var x=$.Rk(u.get("start")),y=$.Rk(u.get("end"));(0,window.isNaN)(x)||((0,window.isNaN)(y)||(r=Math.min(r,y),t=Math.max(t,y)),r=Math.min(r,x),t=Math.max(t,x))}var B=r;var G=t;c=Math.min(c,B);d=Math.max(d,G);this.$j.push(p);"range"==m?this.Ob.push(p):this.nb.push(p)}var C=c;var I=d;var P=C;var Q=I;D5(this.ag);D5(this.cg);
D5(this.eg);this.j&&this.j.fd&&(this.j=void 0);for(var S=$.Ga(this.ag,this.cg,this.eg,[this.j]),sa=[],va=0;va<S.length;va++){var Oa=S[va];if(Oa&&Oa.enabled()&&"consider"==Oa.i("scaleRangeMode"))for(var vb=Oa.ds(),mc=0;mc<vb.length;mc++)sa.push($.cs(vb[mc]).getTime())}var kb=Math.min.apply(null,sa),Qb=Math.max.apply(null,sa);P=Math.min(P,kb);Q=Math.max(Q,Qb);if(P==Q){var Gb=$.kp("day",1);P-=Gb/2;Q+=Gb/2}if(this.Ja!=P||this.Ga!=Q)this.Ja=P,this.Ga=Q,$.gt(this.scale(),this.Ja,this.Ga),this.cb.YH?(this.cb.Ui.apply(this.cb,
this.cb.VH),this.cb.YH=!1,this.cb.VH=null):($.V(this.scale()),this.scale().Cm(),this.scale().da(!1));for(var ic=this.$j,ie,Rb,Fc,Wb,Ie,dd=[],Lc=[],hb=[],zc=[],Je=[],nh=[],je=[],oh=0;oh<ic.length;oh++){Ie=ic[oh];Wb=Ie.W;var ve=Wb.Sj();if("range"==ve){for(var Yd,we,af,rd=Ie,ph=rd.W,ld=rd.data,Gg=[],Kg=[],cm=[],xe=E5(this),ke=this.scale().dj().max,sf=ph.vc(),If=0;If<ld.length;If++){sf.select(If);var zj=ld[If],dm=sf.get("start"),Mc=sf.get("name")||sf.get("x");if(null==dm||(0,window.isNaN)(dm)||null==
Mc)sf.o("missing",!0);else{af=this.scale().transform(zj.data.start)*this.dc.width;we=(0,window.isNaN)(zj.data.end)?this.scale().transform(ke)*this.dc.width:this.scale().transform(zj.data.end)*this.dc.width;Yd=$.M(ph.i("height"),this.dc.height);var Ui=sf.get("direction")||y5(ph),vi={Li:af,vj:we,dg:0,Zf:Yd,direction:Ui,W:ph,fI:If,gd:rd};Gg.push(vi);"up"==Ui?Kg.push(vi):cm.push(vi);zj.o.axisHeight=xe}}ie=Gg;Rb=Kg;Fc=cm;dd=$.Ga(dd,ie);Lc=$.Ga(Lc,ie);hb=$.Ga(hb,Rb);zc=$.Ga(zc,Fc)}else if("moment"==ve){var $g=
Ie,wi=$g.W,ye=$g.data,Jf=[],Aj=[],Bj=[],Vi=E5(this),ze=wi.labels();$.Mu(ze);for(var em=wi.Eb(),Cj=em.enabled()?em.i("size"):0,Wi=wi.aa(),Gd=0;Gd<ye.length;Gd++)if(Wi.select(Gd),null!=Wi.get("value")&&null!=Wi.get("x")){var Xh=ze.Vd(Gd),Xi=$.eB(wi,new $.rw);null===Xh?Xh=ze.add(Xi,{value:{x:0,y:0}},Gd):Xh.lf(Xi);Xh.b=null;var ah=ze.measure(Xh),Yh=ze.i("offsetX")||0,rh=ye[Gd];var bh=this.scale().transform(rh.data.x)*this.dc.width-Cj;var Ke=bh+ah.width+Yh+Cj;var uk=50-ah.height/2;var vg=50+ah.height/
2;var Kf=Wi.get("direction")||y5(wi),Cd={Li:bh,vj:Ke,dg:uk,Zf:vg,direction:Kf,W:wi,fI:Gd,gd:$g};Jf.push(Cd);"up"==Kf?Aj.push(Cd):Bj.push(Cd);rh.o.axisHeight=Vi}else Wi.o("missing",!0);ie=Jf;Rb=Aj;Fc=Bj;dd=$.Ga(dd,ie);Je=$.Ga(Je,ie);nh=$.Ga(nh,Rb);je=$.Ga(je,Fc)}}var Qd=hb;var md=zc;var wg=nh;var Zh=je;$.Qa(Qd,ena);$.Qa(md,ena);$.Qa(wg,fna);$.Qa(Zh,fna);var $h=this.scale().dj();this.f={Li:window.Infinity,vj:-window.Infinity,dg:window.Infinity,Zf:-window.Infinity};this.f.Li=Math.min(this.f.Li,this.scale().transform($h.min)*
this.dc.width);this.f.vj=Math.max(this.f.vj,this.scale().transform($h.max)*this.dc.width);var Nb,Rd,ai=[],Lf=new t5;for(Rd=0;Rd<Qd.length;Rd++){(Nb=Qd[Rd])&&-1==ai.indexOf(Nb.W)&&(Nb.W.zIndex(34-ai.length/100),ai.push(Nb.W));var Ae=Nb.fI;var Zd=Nb.gd.data[Ae];Lf.add(Nb,!0);G5(this,Nb);Zd.o.startY=Nb.dg;Zd.o.endY=Nb.Zf;Zd.o.stateZIndex=1-Nb.Zf/1E6}for(Rd=wg.length-1;0<=Rd;Rd--)Nb=wg[Rd],Ae=Nb.fI,Lf.add(Nb),G5(this,Nb),Zd=Nb.gd.data[Ae],Zd.o.minLength=Nb.dg+(Nb.Zf-Nb.dg)/2;var sh=new t5;ai=[];for(Rd=
0;Rd<md.length;Rd++)(Nb=md[Rd])&&-1==ai.indexOf(Nb.W)&&(Nb.W.zIndex(34-ai.length/100),ai.push(Nb.W)),Ae=Nb.fI,Zd=Nb.gd.data[Ae],sh.add(Nb,!0),Zd.o.startY=Nb.dg,Zd.o.endY=Nb.Zf,Zd.o.stateZIndex=1-Nb.Zf/1E6,G5(this,{Li:Nb.Li,vj:Nb.vj,dg:-Nb.Zf,Zf:-Nb.dg});for(Rd=Zh.length-1;0<=Rd;Rd--)Nb=Zh[Rd],Ae=Nb.fI,sh.add(Nb),Zd=Nb.gd.data[Ae],Zd.o.minLength=Nb.dg+(Nb.Zf-Nb.dg)/2,G5(this,{Li:Nb.Li,vj:Nb.vj,dg:-Nb.Zf,Zf:-Nb.dg});var ch=b/2;this.f.dg-=ch;this.f.Zf+=ch;var xi=$.jr(this,"scroller"),bi=0,dh=0;if(xi&&
xi.enabled()){var Dj=xi.i("orientation");var Yi=xi.i("height");switch(Dj){case "top":bi=Yi;break;case "bottom":dh=Yi}}var fm=this.dc.height/2,Ej=fm-Math.abs(this.f.dg)-dh,rq=this.f.Zf-fm-bi;if(this.f.Zf-this.f.dg<=this.dc.height){var xu=wg.length+Qd.length,gm=Zh.length+md.length;xu&&!gm?F5(this,Ej,Ej):!xu&&gm?F5(this,rq,rq):xu&&gm&&F5(this,0,0)}else F5(this,Ej,rq)}var hm=$.jr(this,"scroller"),vk=$.jr(this,"axis");this.J(536870912)&&(hm&&(hm.P(this.La),hm.ja(this.dc),hm.$()),this.I(536870912));if($.er(this,
"timelinechart","scroll")){var im=this.G.Qo(),yu=this.O,Zi=yu.SB,sq=yu.YD,dB=Zi*(this.dc.height-this.axis().height());.5==Math.abs(Zi)&&(dB+=sq);this.D=dB;this.f&&this.fj+this.dc.$a()>this.f.vj+this.dc.left?this.fj=this.f.vj-this.dc.$a()+this.dc.left:this.f&&this.fj+this.dc.qb()<this.f.Li+this.dc.left&&(this.fj=this.f.Li-this.dc.qb()+this.dc.left);this.D=$.Za(this.D,this.ab,this.Ra);im[4]=-this.fj;im[5]=this.D;this.G.jc.apply(this.G,im);var th=this.dc.clone();th.left+=this.fj;th.top-=this.D;this.G.clip(th);
im[5]=0;this.N.jc.apply(this.N,im);th.top=this.dc.top;this.N.clip(th);var gs=this.D,hs=0;vk&&(hs=vk.i("height")/2);var fY=0,gY=0;if(hm&&hm.enabled()){var Ffa=hm.i("height");var Gfa=hm.i("orientation");"top"==Gfa?fY=Ffa:"bottom"==Gfa&&(gY=Ffa)}th=this.dc.clone();th.left+=this.fj;this.D>this.dc.height/2-hs-gY?gs=this.dc.height/2-hs-gY:this.D<-(this.dc.height/2)+hs+fY&&(gs=-(this.dc.height/2)+hs+fY);im[5]=gs;this.ba.jc.apply(this.ba,im);this.ba.clip(th);for(var ap=0;ap<this.ga.length;ap++){var vv=this.ga[ap];
vv.B(256);vv.ja(this.dc);vv.P(this.G);vv.$()}$.dr(this,"timelinechart","scroll")}this.J(65536)&&(this.B(6324224),this.I(65536));if(this.J(32768)){for(ap=0;ap<this.fb.length;ap++)vv=this.fb[ap],vv.ja(this.dc),vv.P(this.G),vv.$();this.I(32768)}this.J(2097152)&&(vk&&(vk.ja(this.dc),vk.P(this.ba),vk.$()),this.I(2097152));if(this.J(4194304)){var Hfa=$.Ga(this.ag,this.cg,this.eg,[this.j]);for(ap=0;ap<Hfa.length;ap++){var Gs=Hfa[ap];Gs&&(Gs.B(4),$.V(Gs),Gs.scale()||Gs.ZJ(this.cb),Gs.ja(this.dc),Gs.P(this.N),
Gs.$(),Gs.da(!1))}this.I(4194304)}}};
$.g.qZ=function(a){var b=this.scale().cj(),c=this.scale().dj(),d=a.deltaY;$.wC&&(d*=15);if(!a.shiftKey&&this.Vc().i("zoomOnMouseWheel")){a.preventDefault();var e=0>a.deltaY;if(b.min<=c.min&&b.max>=c.max&&!e)return;b=a.clientX;this.scale().Fc((b+this.fj)/this.dc.width);this.scale().Fc(this.fj/this.dc.width);this.scale().Fc((this.fj+this.dc.width)/this.dc.width);$.V(this);b=(b-this.dc.left)/this.dc.width;e?this.Cr(1.2,b):this.Dr(1.2,b);this.da(!0)}this.Vc().i("scrollOnMouseWheel")&&(a.preventDefault(),
this.move(0,d))};$.g.move=function(a,b){this.moveTo(this.fj+a,this.D-b)};
$.g.moveTo=function(a,b){var c=this.scale().cj(),d=this.scale().dj(),e=a-this.fj,f=b-this.D;if(this.G){this.fj=a;this.D=b;0!=e&&(this.fj+this.dc.$a()>this.f.vj+this.dc.left?this.fj=this.f.vj-this.dc.$a()+this.dc.left:this.fj+this.dc.qb()<this.f.Li+this.dc.left&&(this.fj=this.f.Li-this.dc.qb()+this.dc.left));0!=f&&(this.D=$.Za(b,this.ab,this.Ra));e=this.dc.height-E5(this);f=this.D/e;var h=$.Za(f,-.5,.5);this.O.SB=h;this.O.YD=(f-h)*e;e=this.scale().Fc(this.fj/this.dc.width);f=this.scale().Fc((this.fj+
this.dc.width)/this.dc.width);c=e-c.min;h=d.max-d.min;$.nB(this.rZ(),(e-d.min)/h,(f-d.min)/h);$.V(this);this.B(2097152);this.axis().offset(c);$.br(this,"timelinechart","scroll",1);this.da(!0)}};$.g.Jea=function(){this.U||(this.U=new $.rx(this.P().Ha().Bl(),!1),this.U.ra("mousewheel",this.qZ,!1,this));this.La.ra("mousedown",this.A2,!0,this)};
$.g.A2=function(a){var b=this.dc,c=$.jr(this,"scroller");c&&c.enabled()&&(b=c.qd());c=$.Wj(this.P().Ha());b&&a.clientX>=b.left+c.x&&a.clientX<=b.left+c.x+b.width&&a.clientY>=b.top+c.y&&a.clientY<=b.top+c.y+b.height&&(this.ka=a.clientX,this.ya=a.clientY,this.La.ra("mousemove",this.uA,!0,this),$.Id($.Bp,"mouseup",this.vA,!0,this))};$.g.uA=function(a){this.move(this.ka-a.clientX,this.ya-a.clientY);this.ka=a.clientX;this.ya=a.clientY};
$.g.vA=function(){this.La.ac("mousemove",this.uA,!0,this);$.Sd(window.document,"mouseup",this.vA,!0,this)};$.g.axis=function(a){this.b||(this.b=new s5,$.L(this.b,this.pZ,this),$.ql(this.b),$.W(this,"axis",this.b));return $.n(a)?(this.b.K(a),this):this.b};$.g.Va=function(){return this.scale()};$.g.pZ=function(a){var b=2097152;$.X(a,32772)&&(b|=32772);this.B(b,1)};$.g.scale=function(a){return $.n(a)?(this.cb.K(a),this):this.cb};
$.g.Vh=function(a){$.X(a,4)&&(a=this.scale(),a.dj(),a.cj(),this.moveTo(0,this.D),this.B(2162688,1))};$.g.kt=function(a,b){return"moment"==a?new z5(this,this,a,b,!0):new B5(this,this,a,b,!0)};$.g.Tx=function(){return null};$.g.Rx=function(){return null};$.g.bb=function(){this.wc||(this.wc=new $.yt);return this.wc};$.g.za=function(){return!1};
$.g.Ui=function(a,b){$.V(this);var c=$.Rk(a),d=$.Rk(b);this.scale().Ui(c,d);var e=$.jr(this,"scroller");if(e){var f=this.scale().dj(),h=f.max-f.min;$.nB(e,(c-f.min)/h,(d-f.min)/h)}this.da(!0);return this};$.g.Cm=function(){$.V(this);this.scroll(0);this.scale().Cm();this.B(65536,1);this.da(!0);return this};$.g.scroll=function(a){return $.n(a)&&(a=+a,this.D!=a)?(this.moveTo(this.fj,a),this):this.D};
$.g.pX=function(a){if($.n(a)){var b=$.n(a.SB)?$.Za(a.SB,-.5,.5):0;a=$.n(a.YD)&&.5==Math.abs(b)?a.YD:0;if(this.O.SB!==b||this.O.YD!==a)this.O={SB:b,YD:a},$.br(this,"timelinechart","scroll");return this}return this.O};$.g.Na=function(){return"timeline"};
$.g.rZ=function(a){this.g||(this.g=new $.yB,this.g.ib(this),$.L(this.g,this.cba,this),this.sc.ra(this.g,"scrollerchange",this.sZ),this.sc.ra(this.g,"scrollerchangefinish",this.sZ),$.W(this,"scroller",this.g),this.B(536870916,1));return $.n(a)?(this.g.K(a),this):this.g};$.g.cba=function(a){var b=536870912,c=1;$.X(a,8)&&(b|=4,c|=8);this.B(b,c)};$.g.sZ=function(a){var b=this.scale().dj(),c=b.max-b.min;this.Ui(b.min+a.startRatio*c,b.min+a.endRatio*c)};$.g.qh=function(){return this};
$.g.Cr=function(a,b){var c=this.scale(),d=c.cj(),e=$.n(b)?b:.5,f=c.dj().max-c.dj().min,h=c.Fc(this.fj/this.dc.width);d={min:h,max:h+(d.max-d.min)};h=d.max-d.min;if(2E-4>h/f)return this;h=Math.round(h*((a?1/a:.625)-1));f=d.min-h*e;h=d.max+h*(1-e);6E4>=Math.abs(f-h)&&(d=(d.min+d.max)/2,f=d-6E4*e,h=d+6E4*(1-e));c.Ui(f,h);return this};
$.g.Dr=function(a,b){a=a||1.6;var c=this.scale(),d=c.cj(),e=$.n(b)?b:.5,f=c.Fc(this.fj/this.dc.width);d={min:f,max:f+(d.max-d.min)};f=Math.round((d.max-d.min)*(a-1));c.Ui(d.min-f*e,d.max+f*(1-e));return this};
$.g.X=function(a,b){C5.u.X.call(this,a,b);a.scale&&(this.scale(a.scale),this.Ja=a.scale.dataMinimum,this.Ga=a.scale.dataMaximum);a.axis&&this.axis(a.axis);this.pX(a.verticalRelativeOffset);this.sg(a.lineAxesMarkers,this.Jm);this.sg(a.textAxesMarkers,this.Xm);this.sg(a.rangeAxesMarkers,this.Sm);a.todayMarker&&this.c5(a.todayMarker);this.fO(a)};$.g.fO=function(a){var b=a.series;if($.A(b))for(var c=0;c<b.length;c++){a=b[c];var d=a.seriesType||this.i("defaultSeriesType");(d=this.te(d,a))&&d.K(a)}};
$.g.sg=function(a,b){for(var c=0;c<a.length;c++)b.call(this,c).K(a[c])};
$.g.F=function(){var a=C5.u.F.call(this);a.scale=this.scale().F();a.axis=this.axis().F();var b;a.lineAxesMarkers=[];for(b=0;b<this.ag.length;b++)a.lineAxesMarkers.push(this.ag[b].F());a.textAxesMarkers=[];for(b=0;b<this.eg.length;b++)a.textAxesMarkers.push(this.eg[b].F());a.rangeAxesMarkers=[];for(b=0;b<this.cg.length;b++)a.rangeAxesMarkers.push(this.cg[b].F());$.n(this.j)&&(a.todayMarker=this.j.F());this.aO(a);a.type=this.Na();a.verticalRelativeOffset=this.pX();return{chart:a}};
$.g.aO=function(a){var b,c=[];for(b=0;b<this.fb.length;b++){var d=this.fb[b].F();c.push(d)}c.length&&(a.series=c)};$.g.bda=function(){var a=this.P0();this.scale().qr(a.min,a.max);return this};$.g.P0=function(){var a=this.scale(),b=a.cj();a=a.Fc(this.fj/this.dc.width);return{min:a,max:a+(b.max-b.min)}};
$.g.R=function(){$.Zq(this.cb,this.Vh,this);$.Zq(this.b,this.pZ,this);this.La.ac("mousedown",this.A2,!0,this);this.La.ac("mousemove",this.uA,!0,this);$.Sd($.Bp,"mouseup",this.vA,!0,this);this.U.ac("mousewheel",this.qZ,!1,this);$.td(this.b,this.cb,this.wc,this.ag,this.eg,this.cg,this.G,this.j,this.N);this.wc=this.cb=this.b=null;this.ag.length=0;this.eg.length=0;this.cg.length=0;this.N=this.G=this.j=null;C5.u.R.call(this)};var K5=C5.prototype;K5.axis=K5.axis;K5.scale=K5.scale;K5.fitAll=K5.Cm;
K5.fit=K5.Cm;K5.zoomTo=K5.Ui;K5.getType=K5.Na;K5.getCurrentScene=K5.qh;K5.zoomIn=K5.Cr;K5.zoomOut=K5.Dr;K5.getSeries=K5.Ue;K5.addSeries=K5.Rk;K5.getSeriesAt=K5.Nh;K5.getSeriesCount=K5.Mj;K5.removeSeries=K5.mo;K5.removeSeriesAt=K5.Cn;K5.removeAllSeries=K5.kp;K5.scroll=K5.scroll;K5.lineMarker=K5.Jm;K5.textMarker=K5.Xm;K5.rangeMarker=K5.Sm;K5.todayMarker=K5.c5;K5.scroller=K5.rZ;K5.forceScaleUpdate=K5.bda;K5.getVisibleRange=K5.P0;K5.verticalRelativeOffset=K5.pX;$.Jp.timeline=gna;$.F("anychart.timeline",gna);}).call(this,$)}
