if(!_.gantt_base){_.gantt_base=1;(function($){var LF,MF,aea,NF;$.IF=function(){$.Wp.call(this);this.u(4294967295);$.R(this.xa,[["id"],["className"]])};$.JF=function(){$.Wp.call(this);this.Oa=new $.dt;$.L(this.Oa,this.dk,this);this.Ub=this.$=null;this.I(4294967295);$.pp(this.xa,0,0,9,1);$.R(this.xa,[["fill",0,1],["format",20,9]])};
$.KF=function(){$.X.call(this);this.Xa=this.b=null;this.G=new $.IF;$.L(this.G,this.A7,this);this.Ha=new $.Ws;$.L(this.Ha,this.u7,this);this.Oa=new $.dt;$.L(this.Oa,this.Cl,this);this.D=new $.JF;this.D.parent(this);$.L(this.D,this.Mca,this);this.Ub=this.$=this.cb=null;this.Ca=[];this.N=[];$.pp(this.xa,20,20,9,1);$.R(this.xa,[["format",20,9],["stroke",16,1],["fill",16,1],["levelHeight",16,1],["drawTopLine",256,1],["drawRightLine",256,1],["drawBottomLine",256,1],["drawLeftLine",256,1]])};
LF=function(a,b,c){var d=a.Ca[b]||null;if(!d&&c){a.iz();c=$.cl("defaultLabelFactory.format");var e=$.cl("defaultLabelFactory.positionFormatter");d=new $.kt;d.format(c);d.positionFormatter(e);d.Me();d.enabled(!0);d.O(a.vh);a.Ca[b]=d}return d};MF=function(a,b,c){return(a=a.N[b])?a.md(c):void 0};aea=function(a,b,c,d,e,f){for(var h=0,k=f.length;h<k;h++){var l=f[h];d.width=null;d.height=null;if(c.measure(a.Tl(b,l),void 0,d).width<e.width)return h}return k-1};
NF=function(a,b){$.Wp.call(this);this.mk=a;this.he=b;$.pp(this.xa,20,20,9,1);$.R(this.xa,[["format",20,9],["enabled",512,1],["stroke",16,1],["fill",16,1],["height",16,1]])};$.H($.IF,$.Wp);$.IF.prototype.qa=23;$.IF.prototype.ra=$.Wp.prototype.ra|1;var OF={};$.dp(OF,0,"id",$.kp);$.dp(OF,0,"className",$.kp);$.S($.IF,OF);$.g=$.IF.prototype;$.g.enabled=function(a){return $.p(a)?(this.La.enabled!=a&&(a=this.La.enabled=a,this.u(1,1),a?this.da(!0):(0,window.isNaN)(this.eo)&&$.U(this)),this):this.i("enabled")};
$.g.target=function(a){return $.p(a)?(this.b!=a&&(this.b=a,this.u(2)),this):this.b};$.g.Sa=function(){return this.yd};$.g.nf=function(a){this.ub=a;this.u(4)};$.g.jh=function(a){return null!=this.La[a]};$.g.nK=function(){return 16};$.g.Ir=function(){return 1};$.g.xc=function(){if(this.zf()||this.Ed)return!1;if(!this.enabled())return this.J(1)&&(this.remove(),this.I(1),this.u(2)),!1;if(!this.target())return this.remove(),this.u(2),$.Sj(1),!1;this.I(1);return!0};
$.g.X=function(){if(!this.xc())return this;this.yd||(this.yd=$.re("DIV"),$.Te(this.yd,{position:"absolute","pointer-events":"none"}));this.J(2)&&(this.b.appendChild(this.yd),this.I(2));if(this.J(16)){var a=this.i("id");$.p(a)&&this.yd.setAttribute("id",a);a=this.i("className");$.p(a)&&(this.yd.className=a);this.I(16)}this.J(4)&&($.df(this.yd,this.ub.left,this.ub.top),$.kf(this.yd,this.ub.width,this.ub.height),this.I(4));return this};$.g.remove=function(){this.yd&&$.Ae(this.yd)};
$.g.Fe=function(a,b){return $.da(b)||null===b?(a?this.ma.enabled=!!b:this.enabled(!!b),!0):!1};$.g.F=function(){var a=$.IF.B.F.call(this);$.Bp(this,OF,a,"Overlay ui element");var b=$.Wp.prototype.i.call(this,"enabled");a.enabled=$.p(b)?b:null;return a};$.g.Y=function(a,b){$.IF.B.Y.call(this,a,b);b?($.sp(this.ma,OF,a),"enabled"in a&&(this.ma.enabled=a.enabled)):($.tp(this,OF,a),this.enabled(a.enabled))};$.g.R=function(){$.IF.B.R.call(this)};var PF=$.IF.prototype;PF.getElement=PF.Sa;PF.enabled=PF.enabled;$.H($.JF,$.Wp);$.g=$.JF.prototype;$.g.ra=$.Wp.prototype.ra|9;$.g.i=$.Vp;$.g.dg=function(a){$.p(a)&&(this.Ub=a);return this.Ub};$.g.Og=$.Up;$.g.Sd=function(){var a=[this.ma];this.$&&(a=$.Fa(a,this.$.Sd()));return a};$.g.Rd=function(){var a=[this.La];this.$&&(a=$.Fa(a,this.$.Rd()));return a};$.g.parent=function(a){return $.p(a)?(this.$!=a&&(this.$&&$.Xp(this.$,this.Nc,this),(this.$=a)&&$.L(this.$,this.Nc,this),this.Oa.parent(this.$.padding())),this):this.$};
$.g.Nc=function(a){var b=0,c=0;$.W(a,1)&&(b|=16,c|=1);$.W(a,8)&&(c|=8);$.W(a,32768)&&(b|=1,c|=9);this.u(b,c)};var QF=$.hp();$.dp(QF,0,"format",$.Np);$.S($.JF,QF);var RF={};$.dp(RF,1,"fill",$.yp);$.S($.JF,RF);$.g=$.JF.prototype;$.g.padding=function(a,b,c,d){return $.p(a)?(this.Oa.K.apply(this.Oa,arguments),this):this.Oa};$.g.dk=function(a){$.W(a,2)&&this.u(4,9)};$.g.Y=function(a,b){b?($.sp(this.ma,RF,a),$.sp(this.ma,QF,a)):($.tp(this,QF,a),$.tp(this,RF,a));this.padding().ja(!!b,a.padding)};
$.g.F=function(){var a={};a.padding=this.padding().F();$.Bp(this,QF,a,"Time line holidays settings text props");$.Bp(this,RF,a,"Time line holidays settings props");return a};$.g.R=function(){$.JF.B.R.call(this);$.hd(this.Oa);this.Oa=null};var SF=$.JF.prototype;SF.padding=SF.padding;$.H($.KF,$.Us);$.KF.prototype.qa=$.Us.prototype.qa|2E3;$.KF.prototype.ra=$.Us.prototype.ra;var TF=$.hp();$.dp(TF,0,"format",$.Np);$.S($.KF,TF);var UF={};$.ep(UF,[[1,"stroke",$.xp],[1,"fill",$.yp],[0,"levelHeight",$.Op],[0,"drawTopLine",$.op],[0,"drawRightLine",$.op],[0,"drawBottomLine",$.op],[0,"drawLeftLine",$.op]]);$.S($.KF,UF);$.g=$.KF.prototype;$.g.Wa=function(a){return $.p(a)?(this.cb!=a&&(this.cb&&$.Xp(this.cb,this.UW,this),(this.cb=a)&&$.L(this.cb,this.UW,this),this.u(128,1)),this):this.cb};
$.g.IU=function(a){this.f=a;this.u(512,1)};$.g.level=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.N[c];e||(this.N[c]=e=new NF(this,c));return $.p(d)?(e.K(d),this):e};$.g.B7=function(a){$.Uj(405,null,["topLevel()","level(2)"],!0);var b=this.level(2);return $.p(a)?(b.K(a),this):b};$.g.y7=function(a){$.Uj(405,null,["midLevel()","level(1)"],!0);var b=this.level(1);return $.p(a)?(b.K(a),this):b};
$.g.x7=function(a){$.Uj(405,null,["lowLevel()","level(0)"],!0);var b=this.level(0);return $.p(a)?(b.K(a),this):b};$.g.background=function(a){return $.p(a)?(this.Ha.K(a),this):this.Ha};$.g.t7=function(a){$.Uj(405,null,["backgroundFill()","background().fill()"],!0);return $.p(a)?(this.Ha.enabled(!0).fill(a),this):this.Ha.fill()};$.g.w7=function(a){$.Uj(405,null,["levelsSeparationStroke()","stroke()"],!0);return this.stroke(a)};
$.g.padding=function(a,b,c,d){return $.p(a)?(this.Oa.K.apply(this.Oa,arguments),this):this.Oa};$.g.v7=function(a){return $.p(a)?(this.D.K(a),this):this.D};$.g.z7=function(a){return $.p(a)?(this.G.K(a),this.u(1024,1),this):this.G};$.g.jh=function(a){return null!=this.La[a]};$.g.dg=function(a){$.p(a)&&(this.Ub=a);return this.Ub};$.g.Og=$.Up;$.g.Sd=function(){var a=[this.ma];this.$&&(a=$.Fa(a,this.$.Sd()));return a};$.g.Rd=function(){var a=[this.La];this.$&&(a=$.Fa(a,this.$.Rd()));return a};
$.g.parent=function(a){return $.p(a)?(this.$!=a&&(this.$&&$.Xp(this.$,this.Nc,this),(this.$=a)&&$.L(this.$,this.Nc,this)),this):this.$};$.g.Nc=function(a){var b=0,c=0;$.W(a,1)&&(b|=16,c|=1);$.W(a,8)&&(c|=8);$.W(a,32768)&&(b|=1,c|=9);this.u(b,c)};$.g.UW=function(a){var b=0;$.W(a,4)&&(b|=512);$.W(a,2)&&(b|=384);this.u(b,1)};$.g.u7=function(){this.u(64,1)};$.g.Cl=function(a){$.W(a,2)&&this.u(4,9)};$.g.Mca=function(){this.u(16,1)};$.g.A7=function(){this.u(1024,1)};
$.g.Tl=function(a,b){var c=$.gr(a,b);return $.Lt(new $.$u({value:{value:c,type:"string"},tickValue:{value:a,type:"number"},scale:{value:this.cb,type:""}}))};
$.g.Ki=function(a){var b=this.Ca[a];a=this.ba[a]?this.ba[a]:this.ba[a]=this.la[a][this.va];for(var c=0,d=b.nL();c<d;c++){var e=b.Wd(c),f=e.Nf().tickValue;e.Nf(this.Tl(f,a));f=b.measure(e);var h=e.Bc("hAlign");"left"==h||"start"==h?f.left=e.D.left:"right"==h||"end"==h?f.left=e.D.$a()-f.width:f.left=e.D.left+(e.D.width-f.width)/2;h=e.Bc("vAlign");"top"==h?f.top=e.D.top:"bottom"==h?f.top=e.D.Ra()-f.height:f.top=e.D.top+(e.D.height-f.height)/2;f.left=Math.max(e.N.left,Math.min(f.left,e.N.$a()-f.width));
f.top=Math.max(e.N.top,Math.min(f.top,e.N.Ra()-f.height));e.Cc({value:{x:f.left,y:f.top}})}$.wt(b);b.X()};
$.g.X=function(){if(this.xc()){var a=!1,b=!1,c;this.iz();this.J(2)&&(this.b.parent(this.O()),this.I(2));this.J(8)&&(this.b.zIndex(this.zIndex()),this.Ha.zIndex(0),this.o.zIndex(1),this.vh.zIndex(2),this.I(8));this.J(4)&&(this.Xa=this.sb(),$.Mn(this.Xa,0),this.Hf.shape(this.Xa),this.ba.length=0,this.u(1472),this.I(4));if(this.J(512)){var d=this.f.length;var e=this.U.length;this.ba.length=0;this.la.length=0;this.eb.length=0;this.Ma.length=0;var f=this.g.length=0,h=0;d=Math.max(d,e);for(c=0;c<d;c++){var k=
this.f[c];var l=this.U[c];e=this.ga[c];var m=this.Ja[c];var n=this.Ea[c];var q=MF(this,c,"enabled");if(!k||!q&&$.p(q)){l&&l.clear().parent(null);e&&e.clear().parent(null);m&&m.clear().parent(null);n&&n.clear().parent(null);var r=LF(this,c,!1)}else{var t=$.On(MF(this,c,"height"),k.height,this.i("levelHeight"),null);null===t?(this.g[c]=null,h++):(this.g[c]=$.M(t,this.Xa.height),f+=this.g[c]);if("formats"in k)this.la[c]=k.formats;else{t=k.unit;var u=void 0;this.f[c+1]&&(u=this.f[c+1].unit,u!=t&&(u=$.oo(u,
-1)));this.la[c]=$.fr($.dr(k.unit,u,"timeline"))}l?l.clear().parent(this.o):(l=this.o.path(),this.U[c]=l);e?e.clear().parent(this.o):(e=this.o.path(),this.ga[c]=e);m?m.clear().parent(this.o):(m=this.o.path(),this.Ja[c]=m);n?n.clear().parent(this.o):(n=this.o.path(),this.Ea[c]=n);r=LF(this,c,!0)}r&&r.clear()}this.P=(this.Xa.height-f)/h;this.u(400);this.I(512)}if(this.J(16)){f=$.cl("defaultLabelFactory");h={};$.Bp(this,TF,h);h.format=this.i("format");h.padding=this.padding();t={};$.Bp(this.D,TF,t);
t.padding=this.D.padding();d=this.f.length;for(c=0;c<d;c++)if(k=this.f[c],q=MF(this,c,"enabled"),k&&(q||!$.p(q))){l=this.U[c];e=this.ga[c];m=this.Ja[c];n=this.Ea[c];var v={};$.Kc(v,f);$.Kc(v,h);u={};$.sp(u,TF,k);"padding"in k&&(u.padding=k.padding);$.Kc(v,u);this.N[c]&&$.sp(v,TF,this.N[c].La);v.enabled=!0;v.width=null;v.height=null;this.eb[c]=v;v={};$.Kc(v,f);$.Kc(v,h);$.Kc(v,t);$.Kc(v,u);if(u=k.holiday)$.sp(v,TF,u),"padding"in u&&(v.padding=u.padding);v.enabled=!0;v.width=null;v.height=null;this.Ma[c]=
v;v=$.On(MF(this,c,"stroke"),k.stroke,this.i("stroke"));q=$.On(MF(this,c,"fill"),k.fill,this.i("fill"));m.fill(null).stroke(v);l.fill(q).stroke(null);(l=$.On(MF(this,c,"fill"),u&&u.fill,this.D.md("fill")))||(l=q);n.fill(null).stroke(v);e.fill(l).stroke(null)}this.u(256);this.I(16)}this.J(64)&&(this.Ha.fa(this.Xa),this.Ha.O(this.b),this.Ha.X(),this.I(64));this.J(128)&&(a=!0,this.I(128));this.J(256)&&(b=!0,this.I(256));this.J(1024)&&(this.G.target(this.O().Ga().ol()),this.G.nf(this.sb()),this.G.X(),
this.I(1024));if(this.cb&&(a||b))for(d=this.f.length,a=d-1,c=this.Xa.height+this.Xa.top,f=!!this.i("drawTopLine"),h=!!this.i("drawRightLine"),t=!!this.i("drawBottomLine"),u=!!this.i("drawLeftLine"),v=0;v<d;v++)if(k=this.f[v],q=MF(this,v,"enabled"),k&&(q||!$.p(q))){q=v==a;var w=null===this.g[v]?this.g[v]=this.P:this.g[v];l=this.U[v].clear();e=this.ga[v].clear();m=this.Ja[v].clear();n=this.Ea[v].clear();b&&(r=this.Ca[v],r.clear());k=this.cb.an(0,this.Xa.width,k.unit,k.count);r=k.length;var x=r-1,y=
$.Xb(m.stroke());var A=!v&&t?y/2:v?Math.ceil(y/2):0;c=$.O(c-A,y);var G=q&&f?y/2:q?0:Math.floor(y/2);w-=(v?A/2:A)+(q?G:G/2);w=$.O(c-w,y,!0);for(A=this.va=0;A<r;A++){var C=A==x,J=k[A],P=J.holiday,Q=P?n:m;y=$.Xb(Q.stroke());G=$.O(this.Qm(J.start),y);y=$.O(this.Qm(J.end),y);var T=Math.floor(G),wa=Math.ceil(y),Aa=f||!q?Math.ceil(w):Math.floor(w),Sa=t&&!v?Math.floor(c):Math.ceil(c);u&&!A&&Q.moveTo(G,Aa).lineTo(G,Sa);!h&&C||Q.moveTo(y,Aa).lineTo(y,Sa);!f&&q||Q.moveTo(T,w).lineTo(wa,w);t&&!v&&Q.moveTo(T,
c).lineTo(wa,c);(P?e:l).moveTo(T,Sa).lineTo(wa,Sa).lineTo(wa,Aa).lineTo(T,Aa).close();b&&(C=v,P=P?this.Ma[C]:this.eb[C],wa=this.g[C],Q=this.Ca[C],T=$.Zl(G,w,y-G,wa),G=Math.max(G,this.Xa.left),G=$.Zl(G,w,Math.min(y,this.Xa.$a())-G,wa),y=Q.add({tickValue:J.start},null,A),(wa=P.padding)?($.K(wa,$.dt)||(this.Za||(this.Za=new $.dt),this.Za.K(P.padding),wa=this.Za),y.N=wa.Wi(G),y.D=wa.Wi(T)):(y.N=G,y.D=T),P.anchor="left-top",y.si().clip(y.N),y.gd(P),y.padding(0),this.ba[C]||this.va==this.la[C].length-1||
(this.va=Math.max(this.va,aea(this,J.start,Q,P,y.D,this.la[C]))))}b&&this.Ki(v);c=w}}};$.g.iz=function(){this.b||(this.b=$.Zi(),this.Hf=$.dj(),this.b.clip(this.Hf),this.o=this.b.Nd(),this.U=[],this.ga=[],this.Ja=[],this.Ea=[],this.vh=this.b.Nd(),this.g=[],this.eb=[],this.Ma=[],this.la=[],this.ba=[])};$.g.Qm=function(a){return(this.cb.Qm?this.cb.Qm(a):this.cb.transform(a)*this.Xa.width)+this.Xa.left};$.g.remove=function(){this.b&&this.b.parent(null)};
$.g.F=function(){var a=$.KF.B.F.call(this);$.Bp(this,UF,a,"Resource Timeline");$.Bp(this,TF,a,"Resource Timeline text settings");a.background=this.Ha.F();a.padding=this.Oa.F();a.holidays=this.D.F();a.overlay=this.G.F();this.N.length&&(a.levels=(0,$.Va)(this.N,function(a){return a?a.F():{}}));return a};
$.g.Y=function(a,b){$.KF.B.Y.call(this,a,b);b?($.sp(this.ma,UF,a),$.sp(this.ma,TF,a)):($.tp(this,UF,a),$.tp(this,TF,a));"levelsSeparationStroke"in a&&(this.stroke(a.levelsSeparationStroke),b||$.Uj(405,null,["levelsSeparationStroke()","stroke()"],!0));"backgroundFill"in a&&(this.Ha.enabled(!0).fill(a.backgroundFill),b||$.Uj(405,null,["backgroundFill()","background().fill()"],!0));var c=a.topLevel;c&&(this.level(2,c),b||$.Uj(405,null,["topLevel()","level(2)"],!0));if(c=a.midLevel)this.level(1,c),b||
$.Uj(405,null,["midLevel()","level(1)"],!0);if(c=a.lowLevel)this.level(0,c),b||$.Uj(405,null,["lowLevel()","level(0)"],!0);"background"in a&&this.Ha.ja(!!b,a.background);"padding"in a&&this.Oa.ja(!!b,a.padding);"holidays"in a&&this.D.Y(a.holidays,b);"overlay"in a&&this.G.ja(!!b,a.overlay);c=a.levels;if($.B(c))for(var d=0;d<c.length;d++)this.level(d,c[d])};
$.g.R=function(){$.hd(this.b);this.b=null;$.hd(this.Ha);this.Ha=null;$.hd(this.Oa);this.Oa=null;$.hd(this.Hf);this.Hf=null;$.hd(this.D);this.D=null;$.jd(this.U);this.U=null;$.jd(this.ga);this.ga=null;$.jd(this.Ca);this.Ca=null;$.hd(this.G);this.G=null;$.jd(this.N);this.vh=this.o=this.N=null;$.KF.B.R.call(this)};$.H(NF,$.Wp);$.S(NF,TF);var VF={};$.ep(VF,[[0,"enabled",$.op],[1,"stroke",$.xp],[1,"fill",$.yp],[0,"height",$.Op]]);$.S(NF,VF);$.g=NF.prototype;
$.g.labels=function(a){$.Uj(405,null,["level.labels().*()","level.*()"],!0);$.p(a)&&this.K(a);return this};$.g.u=function(a,b){return this.mk.u(a,b)};$.g.ef=function(a){return"enabled"==a?!0:this.mk.i("height"==a?"levelHeight":a)};$.g.Xga=function(a,b,c,d,e,f,h){$.Uj(405,null,["tileFill()","fill()"],!0);return this.fill(a,b,c,d,e,f,h)};$.g.Yga=function(a,b,c,d,e){$.Uj(405,null,["tilesSeparationStroke()","stroke()"],!0);return this.stroke(a,b,c,d,e)};
$.g.F=function(){var a=NF.B.F.call(this);$.Bp(this,VF,a,"TimeLine Header Level",void 0,!0);$.Bp(this,TF,a,"TimeLine Header Level text settings",void 0,!0);return a};$.g.Fe=function(a,b){return $.da(b)||null===b?(this.enabled(!!b),!0):!1};$.g.Y=function(a){NF.B.Y.call(this,a);$.tp(this,VF,a);if($.D(a.labels)){var b=this.md("enabled");$.tp(this,TF,a.labels);this.pa("enabled",b)}$.tp(this,TF,a)};$.g.R=function(){this.mk=null;NF.B.R.call(this)};var WF=$.KF.prototype;WF.background=WF.background;
WF.padding=WF.padding;WF.holidays=WF.v7;WF.overlay=WF.z7;WF.level=WF.level;WF.backgroundFill=WF.t7;WF.levelsSeparationStroke=WF.w7;WF.topLevel=WF.B7;WF.midLevel=WF.y7;WF.lowLevel=WF.x7;WF=NF.prototype;WF.labels=WF.labels;WF.tileFill=WF.Xga;WF.tilesSeparationStroke=WF.Yga;}).call(this,$)}
