if(!_.timeline){_.timeline=1;(function($){var X4=function(){$.X.call(this);this.path=$.aj();$.R(this.xa,[["stroke",0,1]])},Y4=function(){$.X.call(this);this.g=0;this.ue=[];this.f=0;this.o=new $.$u;$.R(this.xa,[["stroke",16,1],["fill",16,1],["height",276,5]])},Z4=function(){this.$c=[]},$4=function(){$.Wp.call(this);$.R(this.xa,[["length",0,1],["stroke",0,1]])},a5=function(a){$.$y.call(this,a)},b5=function(a,b,c,d,e){$.Hz.call(this,a,b,c,d,e);this.f="up";$.R(this.xa,[["direction",2048,1,4294967295]])},c5=function(a,b){return $.p(b)?(a.f=b,
a):a.f},d5=function(a){var b=a.i("direction");return"auto"==b||"odd-even"==b?a.f:b},e5=function(a,b,c,d,e){b5.call(this,a,b,c,d,e)},f5=function(a){$.$y.call(this,a)},g5=function(a,b,c,d,e){b5.call(this,a,b,c,d,e);$.R(this.xa,[["height",0,0]])},h5=function(){$.$x.call(this);this.Ia("timeline");this.cb=new $.$r;$.V(this,"scale",this.cb);this.cb.qy([[{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}]]);$.L(this.cb,this.Nh,this);this.Sf=[];this.Zf=[];this.Uf=[];this.wj=this.o=0;this.Ja=!0;this.Ea=[];this.eb=
[];$.yd(window.document,"mousedown",this.$da,!1,this)},dia=function(a,b){var c=a.zi-b.zi;return 0==c?b.bj-a.bj:c},eia=function(a,b){var c=a.zi-b.zi;return 0==c?a.bj-b.bj:c},i5=function(a,b){a.f.zi=Math.min(a.f.zi,b.zi);a.f.bj=Math.max(a.f.bj,b.bj);a.f.Ze=Math.min(a.f.Ze,b.Ze);a.f.Ye=Math.max(a.f.Ye,b.Ye)},fia=function(a){var b=new h5;b.Ia("timeline");b.pa("defaultSeriesType","moment");for(var c=0,d=arguments.length;c<d;c++)b.moment(arguments[c]);return b};$.H(X4,$.X);var gia={};$.ep(gia,[$.Y.jo]);
$.S(X4,gia);X4.prototype.X=function(){this.path.clear();this.path.stroke(this.i("stroke"));if(!this.xc())return this;this.J(8)&&(this.path.zIndex(this.zIndex()),this.I(8));this.J(2)&&(this.path.parent(this.O()),this.I(2));return this};X4.prototype.sp=function(a,b){if(0!=b.height){var c=$.Tn(this.i("stroke"));c=$.O(b.left+a*b.width,c);var d=Math.floor($.O(b.top,1));this.path.moveTo(c,Math.ceil($.O(b.Ra(),1))).lineTo(c,d)}};X4.prototype.remove=function(){this.path&&this.path.parent(null)};
X4.prototype.R=function(){$.jd(this.path);this.path=null;X4.B.R.call(this)};$.H(Y4,$.X);var hia={};$.ep(hia,[$.Y.jo,$.Y.LA,[0,"height",$.mp]]);$.S(Y4,hia);$.g=Y4.prototype;$.g.qa=$.X.prototype.qa|464;$.g.ra=$.X.prototype.ra|4;$.g.offset=function(a){return $.p(a)?(this.f!=a&&(this.f=a,this.u(400)),this):this.f};$.g.scale=function(a){return $.p(a)?(a!=this.oa&&(this.oa&&$.Xp(this.oa,this.Nh,this),this.oa=a,$.L(this.oa,this.Nh,this)),this):this.oa};$.g.Nh=function(){this.u(400,0)};
$.g.Pa=function(a){this.gb||(this.gb=new X4,$.V(this,"ticks",this.gb),$.L(this.gb,this.Qh,this));return $.p(a)?(this.gb.K(a),this):this.gb};$.g.Qh=function(){this.u(256,1)};$.g.labels=function(a){this.yl||(this.yl=new $.aw,$.L(this.yl,this.RS,this),$.V(this,"labels",this.yl));return $.p(a)?(this.yl.K(a),this):this.yl};$.g.RS=function(){this.u(128,1)};
$.g.X=function(){var a=this.scale();this.$z();if(!a)return $.Sj(2),this;if(!this.xc())return this;this.Ua||(this.Ua=this.O().Nd(),this.rc||(this.rc=this.Ua.path()),this.Ua.ec(this.mR()));this.b||(this.b=new $.px,this.b.labels(this.labels()),$.rx(this.b),$.gk(this.b),this.b.ua($.gC|$.hC));this.J(2)&&(this.Ua.parent(this.O()),this.I(2));this.J(8)&&(this.Ua.zIndex(this.zIndex()),this.I(8));if(this.J(4)){var b=this.fa();this.g=b.top+b.height/2;b=this.fa();var c=b.left,d=this.i("height");this.D=new $.I(c,
this.g-d/2,b.width,d);this.u(400);this.I(4)}if(this.J(16)){var e=this.fa(),f=this.g;b=this.i("height");var h=b/2;this.rc.clear();c=this.i("stroke");d=this.i("fill");var k=$.Tn(c),l=this.scale().Qi(),m=this.scale().transform(l.min);l=this.scale().transform(l.max+this.f);m*=e.width;l*=e.width;m+=e.left;e=l+e.left;m=$.O(m,k);e=$.O(e,k);l=$.O(f-h,k);f=$.O(f+h,k);this.Ua.clip(new $.I(Math.floor(m),Math.floor(l),Math.ceil(e)-Math.floor(m),Math.ceil(f)-Math.floor(l)));0!=b&&(this.rc.moveTo(m,l).lineTo(e,
l).lineTo(e,f).lineTo(m,f).close(),this.rc.stroke(c),this.rc.fill(d));this.I(16)}if(this.J(256)){if(b=$.hq(this,"ticks"))for(b.O(this.Ua),b.X(),c=this.an(),d=this.scale().Qi(),a.pk()&&(c.length=1),a=0;a<c.length;a++)f=c[a],h=this.scale().transform(f.start),f.start>=d.min&&b.sp(h,this.D);this.I(256)}this.J(64)&&this.I(64);this.J(128)&&(this.labels().enabled()?(this.vh.parent(this.Ua),this.Ki()):this.vh.parent(null),this.I(128));return this};
$.g.an=function(){var a,b=this.scale(),c=$.es(b),d=b.ik();for(a=0;a<c.length;a++){var e=b.an(void 0,void 0,c[a].unit,c[a].count,d);if(10>=e.length){4>e.length&&0<a&&(b.an(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.G={unit:e,count:a};d.min+=this.f;d.max+=this.f;return e=b.an(void 0,void 0,e,a,d)};$.g.mR=function(){this.vh||(this.Xl=$.Mf().oq(),this.vh=new $.sh(this.Xl));return this.vh};
$.g.Ki=function(){var a=this.an(),b=this.scale(),c=this.fa(),d=this.i("height"),e=b.Qi(),f=this.labels(),h=this.G.unit,k=b.pk();k&&(a.length=1);$.fk.measure();$.sx(this.b);for(var l=0;l<a.length;l++){var m=this.ue[l];m.text(C);m.style(f.flatten());$.iw(m);l<a.length-1&&$.lw(this.ue[l+1]);var n=a[l];if(n.start<e.min)$.jw(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=$.fr($.dr(h,q,"timeline"));q=
c.left+c.width*b.transform(n.start);for(var r=k?c.left+c.width:c.left+c.width*b.transform(n.end),t=this.labels().padding().ig(r-q),u,v=!1,w=window.Infinity,x="yyyy/MM/dd'T'HH:mm:ss.SSS",y=0;y<C.length;y++){var A=C[y],G=this.b.lz;if(A in G){G=Math.ceil(G[A].width);if(G<=t){u=A;v=!0;break}G<=w&&(w=G,x=A)}}v||(u=x);var C=this.labels().jx($.Lt(this.o,{value:{value:$.gr(n.start,u),type:"string"},tickValue:{value:n.start,type:"number"}}));m.text(C);m.style(f.flatten());$.iw(m);t=b.transform(n.start);b.transform(Math.min(n.end,
e.max+this.f));0!=d?$.jw(m,this.Xl):$.jw(m,null);n=this.labels().padding();v=$.O(c.left+c.width*t,1);w=Math.floor(this.g-d/2);x=d;t=r-q;q=n.Wi(new $.I(v,w,t,x));$.qw(m,q,this.Ua.Ga())}}for(l=a.length;l<this.ue.length;l++)$.jw(this.ue[l],null)};$.g.xc=function(){if(this.zf())return!1;if(!this.enabled())return this.J(1)&&(this.remove(),this.I(1),this.u(450)),!1;this.I(1);return!0};$.g.remove=function(){this.Ua&&this.Ua.parent(null)};
$.g.$z=function(){var a=this.an();if(!this.ue.length)for(var b=0;b<a.length;b++){var c=new $.bw;this.ue.push(c)}if(this.ue.length<a.length)for(b=this.ue.length;b<a.length;b++)this.ue.push(new $.bw);return this.ue};$.g.R=function(){$.jd(this.gb,this.rc,this.yl,this.ue);this.yl=this.rc=this.gb=null;this.ue.length=0;Y4.B.R.call(this)};var j5=Y4.prototype;j5.ticks=j5.Pa;j5.labels=j5.labels;Z4.prototype.b=function(a,b){var c=a.zi-b.zi;return 0==c?(c=a.bj-b.bj,0==c?-1:c):a.zi-b.zi};Z4.prototype.f=function(a,b){return 0==a.Ze-b.Ze?a.Ye-b.Ye:a.Ze-b.Ze};
Z4.prototype.add=function(a,b){var c=a.Ye-a.Ze;a.Ze=0;a.Ye=c;$.Ta(this.$c,a,this.b);var d=[],e=[],f=!0,h;for(h=0;h<this.$c.length;h++){var k=this.$c[h];if(k!=a){if(k.bj>a.zi&&f||k.zi<a.bj&&!f)d.push(k),$.Ta(e,k,this.f)}else f=!1}for(h=0;h<e.length;h++)if(k=e[h],a.Ze<=k.Ye&&a.Ze>=k.Ze||a.Ye<=k.Ye&&a.Ye>=k.Ze||k.Ze<=a.Ye&&k.Ze>=a.Ze||k.Ye<=a.Ye&&k.Ye>=a.Ze)b?a.Ye=k.Ye+c:(a.Ze=k.Ye,a.Ye=a.Ze+c)};$.H($4,$.Wp);$4.prototype.ra=$.Wp.prototype.ra|1;var iia={};$.ep(iia,[$.Y.jo,$.Y.eI]);$.S($4,iia);$.H(a5,$.$y);$.mE[34]=a5;a5.prototype.type=34;a5.prototype.flags=521;a5.prototype.Pf=function(a,b){var c=this.Pc,d=a.get(this.W.fe()[0]);d=this.Pg(d,this.prevValue);var e={};e[d.stroke]=!0;a.j("names",d);c=c.Sc(b,e)[d.stroke];d=a.j("x");e=a.j("zero");var f=a.j("minLength"),h=$.Tn(c.stroke()),k=a.j("axisHeight"),l="up"==a.j("direction");e+=l?-k/2:k/2;d=$.O(d,h);$.Yy(c,this.sa,d,e);$.Zy(c,this.sa,d,l?e-f:e+f)};$.H(b5,$.Hz);b5.prototype.qa=$.Hz.prototype.qa;var jia={};$.ep(jia,[$.Y.MV]);$.S(b5,jia);$.g=b5.prototype;$.g.Dr=function(){return 0};$.g.vT=function(){return!1};$.g.tC=function(a){a=$.Cj(a.Fh());var b=this.za.Wa().ik();return a>=b.min||a<=b.max?!0:!1};$.g.Fg=function(){return!1};$.g.eU=$.ia;
$.g.gR=function(a,b,c){var d=this.data();d.aa();this.eU(a,b,c);this.u(512);return this.bd={data:a,W:this,BT:0,f_:this.check($.nE)&&(d.Yc("normal")||d.Yc("hovered")||d.Yc("selected")||d.Yc("label")||d.Yc("hoverLabel")||d.Yc("selectLabel")||d.Yc("minLabel")||d.Yc("hoverMinLabel")||d.Yc("selectMinLabel")||d.Yc("maxLabel")||d.Yc("hoverMaxLabel")||d.Yc("selectMaxLabel")),g_:this.check(4194304)&&(d.Yc("normal")||d.Yc("hovered")||d.Yc("selected")||d.Yc("marker")||d.Yc("hoverMarker")||d.Yc("selectMarker")),
h_:this.check(256)&&(d.Yc("outliers")||d.Yc("normal")||d.Yc("hovered")||d.Yc("selected")||d.Yc("outlierMarker")||d.Yc("hoverOutlierMarker")||d.Yc("selectOutlierMarker")),cS:!1,i_:!1,e_:!1}};$.g.EG=function(a){var b=this.i("direction");if("auto"==b||"odd-even"==b)b=c5(this);a.j("direction",b);b=this.fa();a.j("zero",b.top+b.height/2)};$.g.gH=function(){this.fj.push(this.EG)};$.H(e5,b5);$.g=e5.prototype;$.g.EG=function(a,b,c,d,e){e5.B.EG.call(this,a,b,c,d,e);b=this.fa();c=this.Lg().i("length");a.j("length",$.M(c,b.height));a.j("x",b.left+b.width*e)};$.g.Mz=function(a,b,c){var d=this.Lk().transform(a.Fh());a.j("xRatio",d);for(var e=0;e<this.fj.length;e++)this.fj[e].call(this,a,b,c,0,d)};$.g.Lg=function(a){this.b||(this.b=new $4,this.b.qb(this),$.L(this.b,this.tB,this),$.V(this,"connector",this.b));return $.p(a)?(this.b.K(a),this):this.b};$.g.tB=function(){this.u(2048,1)};
$.g.eU=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.ka();b(a,{data:f,j:h})}};$.g.Yo=function(){var a=this.aa(),b=a.j("minLength"),c=this.fa();c=c.top+c.height/2;var d="up"==d5(this);a=a.j("axisHeight")/2;return d?c-b-a:c+b+a};$.g.h1=function(){return"up"==d5(this)?"center-bottom":"center-top"};$.g.pm=function(a,b){var c=e5.B.pm.call(this,a,b);c.date={value:$.br(b.get("x")),type:"date-time"};return c};
$.g.R=function(){this.b&&($.Xp(this.b,this.tB,this),$.jd(this.b),this.b=null);e5.B.R.call(this)};$.H(f5,$.$y);$.mE[35]=f5;f5.prototype.type=35;f5.prototype.flags=1537;f5.prototype.Pf=function(a,b){var c=this.Pc,d=a.get(this.W.fe()[0]);d=this.Pg(d,this.prevValue);var e={};e[d.path]=!0;a.j("names",d);c=c.Sc(b,e)[d.path];d=a.j("startX");e=a.j("endX");var f=a.j("zero"),h=a.j("axisHeight");a.j("stackLevel");var k=a.j("direction"),l=a.j("startY"),m=a.j("endY");"up"==k?(f-=h/2,h=f-l-m):(f+=h/2,h=f+l+m);k=$.Tn(c.stroke());d=$.O(d,k);e=$.O(e,k);c.moveTo(d,f).lineTo(d,h).lineTo(e,h).lineTo(e,f).close()};$.H(g5,b5);var kia={};$.ep(kia,[$.Y.dI]);$.S(g5,kia);$.g=g5.prototype;$.g.Mz=function(a,b,c){var d=this.Lk(),e=d.transform(a.get("start"));d=d.transform(a.get("end"));a.j("startXRatio",e);a.j("endXRatio",d);for(e=0;e<this.fj.length;e++)this.fj[e].call(this,a,b,c,0)};
$.g.EG=function(a,b,c,d,e){g5.B.EG.call(this,a,b,c,d,e);b=this.fa();c=a.j("startXRatio");c=b.left+b.width*c;d=a.j("endXRatio");if(!$.ea(d)||(0,window.isNaN)(d))d=this.Lk(),e=d.Qi().max,d=d.transform(e);d=b.left+b.width*d;a.j("startX",c);a.j("endX",d);b=$.M(this.i("height"),b.height);a.j("height",b)};$.g.eU=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.ka();b(a,{data:h,j:k})}};
$.g.Gi=function(){var a=this.aa(),b=a.j("height");var c=a.j("zero");var d=a.j("axisHeight");var e=a.j("startX");var f=d5(this);a=a.j("endY");d/=2;b=a-b/2;c=c+("up"==f?-d:d)+("up"==f?-b:b);f=this.za.xb.clone().left+this.za.wj;f>e&&(e=f);return{value:{x:e,y:c}}};$.g.pm=function(a,b){var c=g5.B.pm.call(this,a,b);c.start={value:$.br(b.get("start")),type:"date-time"};c.end={value:$.br(b.get("end")),type:"date-time"};return c};
$.g.xX=function(a,b){var c=this.If();c.select(b);var d=c.j("startX"),e=this.za.xb.clone().left+this.za.wj;e>d&&(d=e);e=c.j("endX");c=c.j("height");a.width(e-d);a.height(c)};$.H(h5,$.$x);var k5={},lia=$.nE|1572864;k5.moment={zb:34,Db:2,Ib:[$.LE],Hb:null,Bb:null,vb:lia|4194304,wb:"zero"};k5.range={zb:35,Db:2,Ib:[$.nF],Hb:null,Bb:null,vb:lia,wb:"zero"};h5.prototype.Bi=k5;$.ay(h5,h5.prototype.Bi);h5.prototype.qa=$.$x.prototype.qa|543227904;h5.prototype.ra=$.Wv.prototype.ra;$.Xx(h5,"timelinechart",["scroll"]);$.g=h5.prototype;
$.g.Cm=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.Uf[c];if(!e){e=new $.wy;$.p(!0)&&(e.g=!0);var f=$.eq($.dq(this),"defaultRangeMarkerSettings");e.Ia(f);e.Ba=this;$.xy(e,"vertical");this.Uf[c]=e;$.L(e,this.JI,this);this.u(4194304,1)}return $.p(d)?(e.K(d),this):e};
$.g.Gm=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.Zf[c];if(!e){e=new $.zy;var f=e;$.p(!0)&&(f.G=!0);f=$.eq($.dq(this),"defaultTextMarkerSettings");e.Ia(f);e.Ba=this;$.nx(e,"vertical");this.Zf[c]=e;$.L(e,this.JI,this);this.u(4194304,1)}return $.p(d)?(e.K(d),this):e};
$.g.um=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.Sf[c];if(!e){e=new $.ty;$.p(!0)&&(e.g=!0);var f=$.eq($.dq(this),"defaultLineMarkerSettings");e.Ia(f);e.Ba=this;$.uy(e,"vertical");this.Sf[c]=e;$.L(e,this.JI,this);this.u(4194304,1)}return $.p(d)?(e.K(d),this):e};$.g.JI=function(a){var b=4194304;$.W(a,4)&&(b|=65536);this.u(b,1)};
$.g.fha=function(a){if(!this.D){this.D=new $.ty;$.p(!0)&&(this.D.g=!0);var b=$.eq($.dq(this),"defaultLineMarkerSettings");this.D.Ia(b);$.V(this,"todayMarker",this.D);this.D.Ba=this;$.uy(this.D,"vertical");$.L(this.D,this.JI,this);b=new Date;this.D.value(Date.UTC(b.getUTCFullYear(),b.getUTCMonth(),b.getUTCDay()));this.u(4259840,1)}return $.p(a)?(this.D.K(a),this):this.D};
$.g.mb=function(){var a=window.Infinity,b=-window.Infinity,c=["up","down"],d=0,e=0;this.Ol=[];this.va=[];this.ba=[];var f=this.axis().enabled()?this.axis().i("height"):0,h=[],k=[],l=[],m=[],n=[],q=[],r=[];if(0==this.jk())this.scale().reset(),this.axis().u(400),this.Ma=window.Infinity,this.Za=-window.Infinity,this.eb.length=0,this.Ea.length=0,this.f={zi:0,bj:this.xb.width,Ze:-this.xb.height/2,Ye:this.xb.height/2};else if(this.J(98304)){for(var t=[],u=[],v=0;v<this.hb.length;v++){var w=this.hb[v],x=
w.Ui();switch(x){case "moment":t.push(w);break;case "range":u.push(w)}"odd-even"==w.i("direction")&&("range"==w.Ui()?(c5(w,c[d&1]),d++):"moment"==w.Ui()&&(c5(w,c[e&1]),e++));"auto"==w.i("direction")&&("range"==w.Ui()?(c5(w,"up"),d++):"moment"==w.Ui()&&(c5(w,"up"),e++));var y=w.wc();if("moment"==x)for(;y.advance();){var A=$.Cj(y.get("x"));a=Math.min(a,A);b=Math.max(b,A)}else if("range"==x)for(;y.advance();){A=$.Cj(y.get("start"));var G=$.Cj(y.get("end"));(0,window.isNaN)(G)||(a=Math.min(a,G),b=Math.max(b,
G));a=Math.min(a,A);b=Math.max(b,A)}w=$.hy(w,!1,!0);this.Ol.push(w);"range"==x?this.va.push(w):this.ba.push(w)}w=$.Fa(this.Sf,this.Uf,this.Zf,[this.D]);v=[];for(c=0;c<w.length;c++)if((y=w[c])&&"consider"==y.i("scaleRangeMode"))for(y=y.Gr(),d=0;d<y.length;d++)v.push($.br(y[d]).getTime());w=Math.min.apply(null,v);v=Math.max.apply(null,v);a=Math.min(a,w);b=Math.max(b,v);a==b&&(v=$.mo("day",1),a-=v/2,b+=v/2);if(this.Za!=a||this.Ma!=b)this.Za=a,this.Ma=b,$.bs(this.scale(),this.Za,this.Ma),$.U(this.scale()),
this.scale().yo(),this.scale().da(!1);for(v=0;v<this.va.length;v++)for(w=this.va[v],a=w.data,w=w.W,c=this.scale().Qi().max,b=0;b<a.length;b++){y=a[b];d=this.scale().transform(y.data.start)*this.xb.width;e=(0,window.isNaN)(y.data.end)?this.scale().transform(c)*this.xb.width:this.scale().transform(y.data.end)*this.xb.width;x=0;G=$.M(w.i("height"),this.xb.height);A=d5(w);var C=b;d={zi:d,bj:e,Ze:x,Ye:G,direction:A,W:w,dH:C,bd:this.va[v]};h.push(d);k.push(d);"up"==A?l.push(d):m.push(d);y.j.axisHeight=
f}for(v=0;v<this.ba.length;v++)for(w=this.ba[v],w=w.W,a=this.ba[v].data,k=w.labels(),b=w.Gb(),c=b.enabled()?b.i("size"):0,b=0;b<a.length;b++){y=k.Wd(b);if(null===y){d=w.wB();y=w.wc();y.select(b);var J=y.get("value");d.value=J;y=w.Gi(w.labels().anchor());y=k.add(d,y)}y.X();A=y.si().kb();k.background().enabled()&&(A=k.padding().yN(A));e=k.i("offsetX")||0;y=a[b];d=this.scale().transform(y.data.x)*this.xb.width-c;e=d+A.width+e+c;x=50-A.height/2;G=50+A.height/2;A=d5(w);C=b;d={zi:d,bj:e,Ze:x,Ye:G,direction:A,
W:w,dH:C,bd:this.ba[v],text:J};h.push(d);n.push(d);"up"==A?q.push(d):r.push(d);y.j.axisHeight=f}$.Oa(l,dia);$.Oa(m,dia);$.Oa(q,eia);$.Oa(r,eia);h=this.scale().Qi();this.f={zi:window.Infinity,bj:-window.Infinity,Ze:window.Infinity,Ye:-window.Infinity};this.f.zi=Math.min(this.f.zi,this.scale().transform(h.min)*this.xb.width);this.f.bj=Math.max(this.f.bj,this.scale().transform(h.max)*this.xb.width);h=[];J=new Z4;for(v=0;v<l.length;v++)(n=l[v])&&-1==h.indexOf(n.W)&&(n.W.zIndex(34-h.length/100),h.push(n.W)),
k=n.dH,k=n.bd.data[k],J.add(n,!0),i5(this,n),k.j.startY=n.Ze,k.j.endY=n.Ye,k.j.stateZIndex=1-n.Ye/1E6;for(v=q.length-1;0<=v;v--)n=q[v],k=n.dH,J.add(n),i5(this,n),k=n.bd.data[k],k.j.minLength=n.Ze+(n.Ye-n.Ze)/2;l=new Z4;h=[];for(v=0;v<m.length;v++)(n=m[v])&&-1==h.indexOf(n.W)&&(n.W.zIndex(34-h.length/100),h.push(n.W)),k=n.dH,k=n.bd.data[k],l.add(n,!0),k.j.startY=n.Ze,k.j.endY=n.Ye,k.j.stateZIndex=1-n.Ye/1E6,i5(this,{zi:n.zi,bj:n.bj,Ze:-n.Ye,Ye:-n.Ze});for(v=r.length-1;0<=v;v--)n=r[v],k=n.dH,l.add(n),
k=n.bd.data[k],k.j.minLength=n.Ze+(n.Ye-n.Ze)/2,i5(this,{zi:n.zi,bj:n.bj,Ze:-n.Ye,Ye:-n.Ze});f/=2;this.f.Ze-=f;this.f.Ye+=f;q=$.hq(this,"scroller");l=r=0;if(q&&q.enabled())switch(m=q.i("orientation"),q=q.i("height"),m){case "top":r=q;break;case "bottom":l=q}this.Ja&&(this.f.Ze>-(this.xb.height/2)&&this.f.Ye>this.xb.height/2?(this.o=this.f.Ze+this.xb.height/2-f-l,$.$p(this,"timelinechart","scroll",1)):this.f.Ye<this.xb.height/2&&this.f.Ze<-(this.xb.height/2)&&(this.o=this.f.Ye-this.xb.height/2+f+r,
$.$p(this,"timelinechart","scroll",1)));this.eb=t;this.Ea=u}};
$.g.Ji=function(a){if(!this.zf()){this.G||(this.G=this.Ua.Nd(),this.G.zIndex(1));this.N||(this.N=this.Ua.Nd(),this.N.zIndex(.5));this.P||(this.P=this.Ua.Nd(),this.P.zIndex(1));this.J(4)&&(this.xb=a.clone(),this.u(543195136),$.$p(this,"timelinechart","scroll"),this.I(4));this.mb();var b=$.hq(this,"scroller");a=$.hq(this,"axis");this.J(536870912)&&(b&&(b.O(this.Ua),b.fa(this.xb),b.X()),this.I(536870912));if($.cq(this,"timelinechart","scroll")){var c=this.G.Ao();this.f&&this.wj+this.xb.$a()>this.f.bj+
this.xb.left?this.wj=this.f.bj-this.xb.$a()+this.xb.left:this.f&&this.wj+this.xb.tb()<this.f.zi+this.xb.left&&(this.wj=this.f.zi-this.xb.tb()+this.xb.left);this.f&&this.o+this.xb.height/2>Math.max(this.f.Ye,this.xb.height/2)?this.o=Math.max(this.f.Ye-this.xb.height/2,0):this.f&&this.o-this.xb.height/2<Math.min(this.f.Ze,-(this.xb.height/2))&&(this.o=Math.min(this.f.Ze+this.xb.height/2,0));c[4]=-this.wj;c[5]=this.o;this.G.nc.apply(this.G,c);var d=this.xb.clone();d.left+=this.wj;d.top-=this.o;this.G.clip(d);
c[5]=0;this.N.nc.apply(this.N,c);d.top=this.xb.top;this.N.clip(d);var e=this.o,f=0;a&&(f=a.i("height")/2);var h=0,k=0;b&&b.enabled()&&(d=b.i("height"),b=b.i("orientation"),"top"==b?h=d:"bottom"==b&&(k=d));d=this.xb.clone();d.left+=this.wj;this.o>this.xb.height/2-f-k?e=this.xb.height/2-f-k:this.o<-(this.xb.height/2)+f+h&&(e=-(this.xb.height/2)+f+h);c[5]=e;this.P.nc.apply(this.P,c);this.P.clip(d);for(c=0;c<this.Ea.length;c++)e=this.Ea[c],e.u(256),e.fa(this.xb),e.O(this.G),e.X();$.bq(this,"timelinechart",
"scroll")}this.J(65536)&&(a&&a.scale(this.scale()),this.u(6324224),this.I(65536));if(this.J(32768)){for(c=0;c<this.hb.length;c++)e=this.hb[c],e.fa(this.xb),e.O(this.G),e.X();this.I(32768)}this.J(2097152)&&(a&&(a.fa(this.xb),a.O(this.P),a.X()),this.I(2097152));if(this.J(4194304)){a=$.Fa(this.Sf,this.Uf,this.Zf,[this.D]);for(c=0;c<a.length;c++)if(e=a[c])e.u(4),$.U(e),e.scale()||e.SI(this.cb),e.fa(this.xb),e.O(this.N),e.X(),e.da(!1);this.I(4194304)}this.ym||(this.ym=new $.Yv(this.O().Ga().ol(),!1),this.ym.wa("mousewheel",
this.L9,!1,this))}};$.g.L9=function(a){var b=this.scale().ik(),c=this.scale().Qi();if(!a.shiftKey&&this.Zc().i("zoomOnMouseWheel")){a.preventDefault();var d=0>a.deltaY;b.min<=c.min&&b.max>=c.max&&!d||(a=a.clientX,this.scale().Kc((a+this.wj)/this.xb.width),this.scale().Kc(this.wj/this.xb.width),this.scale().Kc((this.wj+this.xb.width)/this.xb.width),$.U(this),a=(a-this.xb.left)/this.xb.width,d?this.zs(1.2,a):this.As(1.2,a),this.da(!0))}};$.g.move=function(a,b){this.moveTo(this.wj+a,this.o-b)};
$.g.moveTo=function(a,b){var c=this.scale().ik(),d=this.scale().Qi(),e=a-this.wj,f=b-this.o;if(this.G){this.wj=a;this.o=b;0!=e&&(this.wj+this.xb.$a()>this.f.bj+this.xb.left?this.wj=this.f.bj-this.xb.$a()+this.xb.left:this.wj+this.xb.tb()<this.f.zi+this.xb.left&&(this.wj=this.f.zi-this.xb.tb()+this.xb.left));0!=f&&(this.o+this.xb.height/2>Math.max(this.f.Ye,this.xb.height/2)?this.o=Math.max(this.f.Ye,this.xb.height/2)-this.xb.height/2:this.o-this.xb.height/2<Math.min(this.f.Ze,-(this.xb.height/2))&&
(this.o=Math.min(this.f.Ze,-(this.xb.height/2))+this.xb.height/2));e=this.scale().Kc(this.wj/this.xb.width);f=this.scale().Kc((this.wj+this.xb.width)/this.xb.width);c=e-c.min;var h=d.max-d.min;this.VO();$.Nz(this.VO(),(e-d.min)/h,(f-d.min)/h);$.U(this);this.u(2097152);this.axis().offset(c);$.$p(this,"timelinechart","scroll",1);this.da(!0)}};
$.g.$da=function(a){var b=this.xb,c=$.hq(this,"scroller");c&&c.enabled()&&(b=c.nd());c=$.Ii(this.O().Ga());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.ga=a.clientX,this.la=a.clientY,$.yd(window.document,"mousemove",this.GC,!0,this),$.yd(window.document,"mouseup",this.HC,!0,this))};$.g.GC=function(a){this.Ja=!1;this.move(this.ga-a.clientX,this.la-a.clientY);this.ga=a.clientX;this.la=a.clientY};
$.g.HC=function(){$.Gd(window.document,"mousemove",this.GC,!0,this);$.Gd(window.document,"mouseup",this.HC,!0,this)};$.g.axis=function(a){this.b||(this.b=new Y4,$.L(this.b,this.tX,this),$.gk(this.b),$.V(this,"axis",this.b));return $.p(a)?(this.b.K(a),this):this.b};$.g.Wa=function(){return this.scale()};$.g.tX=function(a){var b=2097152;$.W(a,32772)&&(b|=32772);this.u(b,1)};$.g.scale=function(a){return $.p(a)?(this.cb.K(a),this):this.cb};
$.g.Nh=function(a){$.W(a,4)&&(a=this.scale(),a.Qi(),a.ik(),this.moveTo(0,this.o),this.u(2162688,1))};$.g.Os=function(a,b){return"moment"==a?new e5(this,this,a,b,!0):new g5(this,this,a,b,!0)};$.g.mx=function(){return null};$.g.kx=function(){return null};$.g.bb=function(){this.tc||(this.tc=new $.js);return this.tc};$.g.sa=function(){return!1};
$.g.oj=function(a,b){$.U(this);var c=$.Cj(a),d=$.Cj(b);this.scale().oj(c,d);var e=$.hq(this,"scroller");if(e){var f=this.scale().Qi(),h=f.max-f.min;$.Nz(e,(c-f.min)/h,(d-f.min)/h)}this.da(!0);return this};$.g.yo=function(){$.U(this);this.Ja=!0;this.scroll(0);this.scale().yo();this.u(65536,1);this.da(!0);return this};$.g.scroll=function(a){return $.p(a)&&(a=+a,this.U!=a)?(this.U=a,this.o=0<this.U?-this.xb.height/2:0>this.U?this.xb.height/2:0,$.$p(this,"timelinechart","scroll",1),this):this.U};
$.g.Qa=function(){return"timeline"};$.g.VO=function(a){this.g||(this.g=new $.$z,this.g.qb(this),$.L(this.g,this.M9,this),this.Ac.wa(this.g,"scrollerchange",this.uX),this.Ac.wa(this.g,"scrollerchangefinish",this.uX),$.V(this,"scroller",this.g),this.u(536870916,1));return $.p(a)?(this.g.K(a),this):this.g};$.g.M9=function(a){var b=536870912,c=1;$.W(a,8)&&(b|=4,c|=8);this.u(b,c)};$.g.uX=function(a){var b=this.scale().Qi(),c=b.max-b.min;this.oj(b.min+a.startRatio*c,b.min+a.endRatio*c)};$.g.fh=function(){return this};
$.g.zs=function(a,b){var c=this.scale(),d=c.ik(),e=$.p(b)?b:.5,f=c.Qi().max-c.Qi().min,h=c.Kc(this.wj/this.xb.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.oj(f,h);return this};
$.g.As=function(a,b){a=a||1.6;var c=this.scale(),d=c.ik(),e=$.p(b)?b:.5,f=c.Kc(this.wj/this.xb.width);d={min:f,max:f+(d.max-d.min)};f=Math.round((d.max-d.min)*(a-1));c.oj(d.min-f*e,d.max+f*(1-e));return this};$.g.Y=function(a,b){h5.B.Y.call(this,a,b);a.scale&&this.scale(a.scale);a.axis&&this.axis(a.axis);this.scroll(a.scroll);this.eg(a.lineAxesMarkers,this.um);this.eg(a.textAxesMarkers,this.Gm);this.eg(a.rangeAxesMarkers,this.Cm);this.HM(a)};
$.g.HM=function(a){for(var b=a.series,c=0;c<b.length;c++){a=b[c];var d=a.seriesType||this.i("defaultSeriesType");(d=this.de(d,a))&&d.K(a)}};$.g.eg=function(a,b){for(var c=0;c<a.length;c++)b.call(this,c).K(a[c])};
$.g.F=function(){var a=h5.B.F.call(this);a.scale=this.scale().F();a.axis=this.axis().F();var b;a.lineAxesMarkers=[];for(b=0;b<this.Sf.length;b++)a.lineAxesMarkers.push(this.Sf[b].F());a.textAxesMarkers=[];for(b=0;b<this.Zf.length;b++)a.textAxesMarkers.push(this.Zf[b].F());a.rangeAxesMarkers=[];for(b=0;b<this.Uf.length;b++)a.rangeAxesMarkers.push(this.Uf[b].F());this.BM(a);a.type=this.Qa();$.p(this.U)&&(a.scroll=this.U);return{chart:a}};
$.g.BM=function(a){var b,c=[];for(b=0;b<this.hb.length;b++){var d=this.hb[b].F();c.push(d)}c.length&&(a.series=c)};$.g.R=function(){$.Xp(this.cb,this.Nh,this);$.Xp(this.b,this.tX,this);$.jd(this.b,this.cb,this.tc,this.Sf,this.Zf,this.Uf,this.G,this.D,this.N);this.tc=this.cb=this.b=null;this.Sf.length=0;this.Zf.length=0;this.Uf.length=0;this.N=this.G=this.D=null;h5.B.R.call(this)};var l5=h5.prototype;l5.axis=l5.axis;l5.scale=l5.scale;l5.fitAll=l5.yo;l5.fit=l5.yo;l5.zoomTo=l5.oj;l5.getType=l5.Qa;
l5.getCurrentScene=l5.fh;l5.zoomIn=l5.zs;l5.zoomOut=l5.As;l5.getSeries=l5.Oe;l5.addSeries=l5.Ak;l5.getSeriesAt=l5.Zh;l5.getSeriesCount=l5.jk;l5.removeSeries=l5.Vn;l5.removeSeriesAt=l5.nn;l5.removeAllSeries=l5.Ro;l5.scroll=l5.scroll;l5.lineMarker=l5.um;l5.textMarker=l5.Gm;l5.rangeMarker=l5.Cm;l5.todayMarker=l5.fha;l5.scroller=l5.VO;$.Fo.timeline=fia;$.F("anychart.timeline",fia);}).call(this,$)}
